diff --git a/README.md b/README.md index e756c5a2..31ebf277 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ found at the end of this document. ## Status -* Current bwip-js version is 2.1.1 (2021-02-24) +* Current bwip-js version is 2.1.2 (2021-04-06) * Current BWIPP version is 2021-02-06 * Node.js compatibility: 0.12+ * Browser compatibility: Edge, Firefox, Chrome @@ -443,6 +443,112 @@ and adding scalable barcodes to a [pdfkit](https://pdfkit.org/) document. See the examples [README](https://github.com/metafloor/bwip-js/tree/master/examples) for more details. + ## Supported Barcode Types -• auspost : AusPost 4 State Customer Code • azteccode : Aztec Code • azteccodecompact : Compact Aztec Code • aztecrune : Aztec Runes • bc412 : BC412 • channelcode : Channel Code • codablockf : Codablock F • code11 : Code 11 • code128 : Code 128 • code16k : Code 16K • code2of5 : Code 25 • code32 : Italian Pharmacode • code39 : Code 39 • code39ext : Code 39 Extended • code49 : Code 49 • code93 : Code 93 • code93ext : Code 93 Extended • codeone : Code One • coop2of5 : COOP 2 of 5 • daft : Custom 4 state symbology • databarexpanded : GS1 DataBar Expanded • databarexpandedcomposite : GS1 DataBar Expanded Composite • databarexpandedstacked : GS1 DataBar Expanded Stacked • databarexpandedstackedcomposite : GS1 DataBar Expanded Stacked Composite • databarlimited : GS1 DataBar Limited • databarlimitedcomposite : GS1 DataBar Limited Composite • databaromni : GS1 DataBar Omnidirectional • databaromnicomposite : GS1 DataBar Omnidirectional Composite • databarstacked : GS1 DataBar Stacked • databarstackedcomposite : GS1 DataBar Stacked Composite • databarstackedomni : GS1 DataBar Stacked Omnidirectional • databarstackedomnicomposite : GS1 DataBar Stacked Omnidirectional Composite • databartruncated : GS1 DataBar Truncated • databartruncatedcomposite : GS1 DataBar Truncated Composite • datalogic2of5 : Datalogic 2 of 5 • datamatrix : Data Matrix • datamatrixrectangular : Data Matrix Rectangular • datamatrixrectangularextension : Data Matrix Rectangular Extension • dotcode : DotCode • ean13 : EAN-13 • ean13composite : EAN-13 Composite • ean14 : GS1-14 • ean2 : EAN-2 (2 digit addon) • ean5 : EAN-5 (5 digit addon) • ean8 : EAN-8 • ean8composite : EAN-8 Composite • flattermarken : Flattermarken • gs1-128 : GS1-128 • gs1-128composite : GS1-128 Composite • gs1-cc : GS1 Composite 2D Component • gs1datamatrix : GS1 Data Matrix • gs1datamatrixrectangular : GS1 Data Matrix Rectangular • gs1dotcode : GS1 DotCode • gs1northamericancoupon : GS1 North American Coupon • gs1qrcode : GS1 QR Code • hanxin : Han Xin Code • hibcazteccode : HIBC Aztec Code • hibccodablockf : HIBC Codablock F • hibccode128 : HIBC Code 128 • hibccode39 : HIBC Code 39 • hibcdatamatrix : HIBC Data Matrix • hibcdatamatrixrectangular : HIBC Data Matrix Rectangular • hibcmicropdf417 : HIBC MicroPDF417 • hibcpdf417 : HIBC PDF417 • hibcqrcode : HIBC QR Code • iata2of5 : IATA 2 of 5 • identcode : Deutsche Post Identcode • industrial2of5 : Industrial 2 of 5 • interleaved2of5 : Interleaved 2 of 5 (ITF) • isbn : ISBN • ismn : ISMN • issn : ISSN • itf14 : ITF-14 • japanpost : Japan Post 4 State Customer Code • kix : Royal Dutch TPG Post KIX • leitcode : Deutsche Post Leitcode • mailmark : Royal Mail Mailmark • matrix2of5 : Matrix 2 of 5 • maxicode : MaxiCode • micropdf417 : MicroPDF417 • microqrcode : Micro QR Code • msi : MSI Modified Plessey • onecode : USPS Intelligent Mail • pdf417 : PDF417 • pdf417compact : Compact PDF417 • pharmacode : Pharmaceutical Binary Code • pharmacode2 : Two-track Pharmacode • planet : USPS PLANET • plessey : Plessey UK • posicode : PosiCode • postnet : USPS POSTNET • pzn : Pharmazentralnummer (PZN) • qrcode : QR Code • rationalizedCodabar : Codabar • raw : Custom 1D symbology • rectangularmicroqrcode : Rectangular Micro QR Code • royalmail : Royal Mail 4 State Customer Code • sscc18 : SSCC-18 • swissqrcode : Swiss QR Code • symbol : Miscellaneous symbols • telepen : Telepen • telepennumeric : Telepen Numeric • ultracode : Ultracode • upca : UPC-A • upcacomposite : UPC-A Composite • upce : UPC-E • upcecomposite : UPC-E Composite \ No newline at end of file + * auspost • AusPost 4 State Customer Code + * azteccode • Aztec Code + * azteccodecompact • Compact Aztec Code + * aztecrune • Aztec Runes + * bc412 • BC412 + * channelcode • Channel Code + * codablockf • Codablock F + * code11 • Code 11 + * code128 • Code 128 + * code16k • Code 16K + * code2of5 • Code 25 + * code32 • Italian Pharmacode + * code39 • Code 39 + * code39ext • Code 39 Extended + * code49 • Code 49 + * code93 • Code 93 + * code93ext • Code 93 Extended + * codeone • Code One + * coop2of5 • COOP 2 of 5 + * daft • Custom 4 state symbology + * databarexpanded • GS1 DataBar Expanded + * databarexpandedcomposite • GS1 DataBar Expanded Composite + * databarexpandedstacked • GS1 DataBar Expanded Stacked + * databarexpandedstackedcomposite • GS1 DataBar Expanded Stacked Composite + * databarlimited • GS1 DataBar Limited + * databarlimitedcomposite • GS1 DataBar Limited Composite + * databaromni • GS1 DataBar Omnidirectional + * databaromnicomposite • GS1 DataBar Omnidirectional Composite + * databarstacked • GS1 DataBar Stacked + * databarstackedcomposite • GS1 DataBar Stacked Composite + * databarstackedomni • GS1 DataBar Stacked Omnidirectional + * databarstackedomnicomposite • GS1 DataBar Stacked Omnidirectional Composite + * databartruncated • GS1 DataBar Truncated + * databartruncatedcomposite • GS1 DataBar Truncated Composite + * datalogic2of5 • Datalogic 2 of 5 + * datamatrix • Data Matrix + * datamatrixrectangular • Data Matrix Rectangular + * datamatrixrectangularextension • Data Matrix Rectangular Extension + * dotcode • DotCode + * ean13 • EAN-13 + * ean13composite • EAN-13 Composite + * ean14 • GS1-14 + * ean2 • EAN-2 (2 digit addon) + * ean5 • EAN-5 (5 digit addon) + * ean8 • EAN-8 + * ean8composite • EAN-8 Composite + * flattermarken • Flattermarken + * gs1-128 • GS1-128 + * gs1-128composite • GS1-128 Composite + * gs1-cc • GS1 Composite 2D Component + * gs1datamatrix • GS1 Data Matrix + * gs1datamatrixrectangular • GS1 Data Matrix Rectangular + * gs1dotcode • GS1 DotCode + * gs1northamericancoupon • GS1 North American Coupon + * gs1qrcode • GS1 QR Code + * hanxin • Han Xin Code + * hibcazteccode • HIBC Aztec Code + * hibccodablockf • HIBC Codablock F + * hibccode128 • HIBC Code 128 + * hibccode39 • HIBC Code 39 + * hibcdatamatrix • HIBC Data Matrix + * hibcdatamatrixrectangular • HIBC Data Matrix Rectangular + * hibcmicropdf417 • HIBC MicroPDF417 + * hibcpdf417 • HIBC PDF417 + * hibcqrcode • HIBC QR Code + * iata2of5 • IATA 2 of 5 + * identcode • Deutsche Post Identcode + * industrial2of5 • Industrial 2 of 5 + * interleaved2of5 • Interleaved 2 of 5 (ITF) + * isbn • ISBN + * ismn • ISMN + * issn • ISSN + * itf14 • ITF-14 + * japanpost • Japan Post 4 State Customer Code + * kix • Royal Dutch TPG Post KIX + * leitcode • Deutsche Post Leitcode + * mailmark • Royal Mail Mailmark + * matrix2of5 • Matrix 2 of 5 + * maxicode • MaxiCode + * micropdf417 • MicroPDF417 + * microqrcode • Micro QR Code + * msi • MSI Modified Plessey + * onecode • USPS Intelligent Mail + * pdf417 • PDF417 + * pdf417compact • Compact PDF417 + * pharmacode • Pharmaceutical Binary Code + * pharmacode2 • Two-track Pharmacode + * planet • USPS PLANET + * plessey • Plessey UK + * posicode • PosiCode + * postnet • USPS POSTNET + * pzn • Pharmazentralnummer (PZN) + * qrcode • QR Code + * rationalizedCodabar • Codabar + * raw • Custom 1D symbology + * rectangularmicroqrcode • Rectangular Micro QR Code + * royalmail • Royal Mail 4 State Customer Code + * sscc18 • SSCC-18 + * symbol • Miscellaneous symbols + * telepen • Telepen + * telepennumeric • Telepen Numeric + * ultracode • Ultracode + * upca • UPC-A + * upcacomposite • UPC-A Composite + * upce • UPC-E + * upcecomposite • UPC-E Composite diff --git a/dist/bwip-js-min.js b/dist/bwip-js-min.js index e236d197..e3cdab4f 100644 --- a/dist/bwip-js-min.js +++ b/dist/bwip-js-min.js @@ -38,8 +38,8 @@ } }(typeof self !== 'undefined' ? self : this, function () { "use strict"; -function BWIPP(){"use strict";var $$=null;var $0={$error:new Map};var $j=0;var $k=[];function $a(a){if(!arguments.length){for(var i=$j-1;i>=0&&$k[i]!==Infinity;i--);if(i<0){throw new Error("array-marker-not-found")}a=$k.splice(i+1,$j-1-i);$j=i}else if(!(a instanceof Array)){a=new Array(+arguments[0]);for(var i=0,l=a.length;i=0&&$k[mark]!==Infinity;mark-=2){if($k[mark-1]===Infinity){throw new Error("dict-malformed-stack")}}if(mark<0){throw"dict-marker-not-found"}var d=new Map;for(var i=mark+1;i<$j;i+=2){var k=$k[i];var t=typeof k;if(t=="number"||t=="string"){d.set(k,$k[i+1])}else if(k instanceof Uint8Array){d.set($z(k),$k[i+1])}else{throw"dict-not-a-valid-key("+k+")"}}$j=mark;return d}function $s(v){var t=typeof v;if(t==="number"){return new Uint8Array(v)}if(t!=="string"){v=""+v}var s=new Uint8Array(v.length);for(var i=0;i=0;i--){d[o+i]=s[i]}}}else if(d instanceof Array){var darr=d.b;var doff=o+d.o;var sarr=s.b;var soff=s.o;for(var i=0,l=s.length;i0&&$k[--$j]!==Infinity);}function $m(){for(var i=$j-1;i>=0&&$k[i]!==Infinity;i--);return $j-i-1}function $q(a){for(var i=0,l=a.length,b=a.b,o=a.o;ib}function $ge(a,b){if(a instanceof Uint8Array){a=$z(a)}if(b instanceof Uint8Array){b=$z(b)}return a>=b}function $an(a,b){return typeof a==="boolean"?a&&b:a&b}function $or(a,b){return typeof a==="boolean"?a||b:a|b}function $xo(a,b){return typeof a==="boolean"?!a&&b||a&&!b:a^b}function $nt(a){return typeof a=="boolean"?!a:~a}var $f=function(fa){return function(v){return Number.isInteger(v)?v:(fa[0]=v,fa[0])}}(new Float32Array(1));function $stack(){console.log("[[[");for(var i=$j-1;i>=0;i--){console.log(tostring($k[i]))}console.log("]]]");function tostring(v){if(v===null){return"null"}else if(v===undefined){return""}else if(v instanceof Array){var s="[";for(var j=v.o,a=v.b,l=v.length+v.o;j>"}else if(typeof v==="string"){return'"'+v+'"'}else{return""+v}}}$0.raiseerror=function(){$p($0.$error,"errorinfo",$k[--$j]);$p($0.$error,"errorname",$k[--$j]);$p($0.$error,"command",null);$p($0.$error,"newerror",true);throw new Error($z($0.$error.get("errorname"))+": "+$z($0.$error.get("errorinfo")))};$0.parseinput=function(){var $1={};$1.fncvals=$k[--$j];$1.barcode=$k[--$j];var _2="parse";$1[_2]=$g($1.fncvals,_2);delete $1.fncvals[_2];var _6="parsefnc";$1[_6]=$g($1.fncvals,_6);delete $1.fncvals[_6];var _A="parseonly";var _C=$g($1.fncvals,_A)!==undefined;$1[_A]=_C;delete $1.fncvals[_A];var _E="eci";var _G=$g($1.fncvals,_E)!==undefined;$1[_E]=_G;delete $1.fncvals[_E];$1.msg=$a($1.barcode.length);$1.j=0;$k[$j++]=$1.barcode;for(;;){$x($k[--$j],"^");var _M=$k[--$j];var _N=$k[--$j];$k[$j++]=_M;$k[$j++]=_N.length;$k[$j++]=$1.msg;$k[$j++]=$1.j;$k[$j++]=Infinity;var _R=_N;$F(_R);var _S=$a();var _T=$k[--$j];$P($k[--$j],_T,_S);$1.j=$f($k[--$j]+$1.j);if($k[--$j]){$j--;for(var _Y=0,_Z=1;_Y<_Z;_Y++){if($an($nt($1.parse),$nt($1.parsefnc))){$p($1.msg,$1.j,94);$1.j=$f($1.j+1);break}$p($1.msg,$1.j,94);$1.j=$f($1.j+1);if($1.parse){var _j=$k[--$j];$k[$j++]=_j;if(_j.length>=3){var _k=$k[--$j];var _l=$G(_k,0,3);$k[$j++]=_k;$k[$j++]=true;for(var _m=0,_n=_l.length;_m<_n;_m++){var _o=$g(_l,_m);if(_o<48||_o>57){$j--;$k[$j++]=false}}if($k[--$j]){var _q=$k[--$j];var _s=~~$z($G(_q,0,3));$k[$j++]=_q;$k[$j++]=_s;if(_s>255){$j-=2;$k[$j++]="bwipp.invalidOrdinal";$k[$j++]="Ordinal must be 000 to 255";$0.raiseerror()}$1.j=$f($1.j-1);$p($1.msg,$1.j,$k[--$j]);$1.j=$f($1.j+1);var _y=$k[--$j];$k[$j++]=$G(_y,3,_y.length-3)}}}if($or($1.parseonly,$nt($1.parsefnc))||$g($1.msg,$f($1.j-1))!=94){break}$1.j=$f($1.j-1);var _16=$k[--$j];$k[$j++]=_16;if(_16.length<3){$j--;$k[$j++]="bwipp.truncatedFNC";$k[$j++]="Function character truncated";$0.raiseerror()}var _17=$k[--$j];$k[$j++]=_17;if($g(_17,0)==94){$p($1.msg,$1.j,94);$1.j=$f($1.j+1);var _1C=$k[--$j];$k[$j++]=$G(_1C,1,_1C.length-1);break}var _1E=$k[--$j];$k[$j++]=_1E;if($eq($G(_1E,0,3),"ECI")&&$1.eci){var _1H=$k[--$j];$k[$j++]=_1H;if(_1H.length<9){$j--;$k[$j++]="bwipp.truncatedECI";$k[$j++]="ECI truncated";$0.raiseerror()}var _1I=$k[--$j];var _1J=$G(_1I,3,6);$k[$j++]=_1I;$k[$j++]=_1J;for(var _1K=0,_1L=_1J.length;_1K<_1L;_1K++){var _1M=$g(_1J,_1K);if(_1M<48||_1M>57){$j-=2;$k[$j++]="bwipp.invalidECI";$k[$j++]="ECI must be 000000 to 999999";$0.raiseerror()}}var _1N=$k[--$j];$k[$j++]=0;$F(_1N,function(){var _1O=$k[--$j];var _1P=$k[--$j];$k[$j++]=$f(_1P-$f(_1O-48))*10});$p($1.msg,$1.j,~~($k[--$j]/10)-1e6);$1.j=$f($1.j+1);var _1U=$k[--$j];$k[$j++]=$G(_1U,9,_1U.length-9);break}var _1W=$k[--$j];$k[$j++]=_1W;if(_1W.length<4){$j--;$k[$j++]="bwipp.truncatedFNC";$k[$j++]="Function character truncated";$0.raiseerror()}var _1X=$k[--$j];var _1Y=$G(_1X,0,4);var _1a=$g($1.fncvals,_1Y)!==undefined;$k[$j++]=_1X;$k[$j++]=_1Y;if(!_1a){var _1b=$k[--$j];var _1c=$s(_1b.length+28);$P(_1c,28,_1b);$P(_1c,0,"Unknown function character: ");var _1d=$k[--$j];$k[$j++]=_1c;$k[$j++]=_1d;$j--;var _1e=$k[--$j];$k[$j++]="bwipp.unknownFNC";$k[$j++]=_1e;$0.raiseerror()}$p($1.msg,$1.j,$g($1.fncvals,$k[--$j]));$1.j=$f($1.j+1);var _1l=$k[--$j];$k[$j++]=$G(_1l,4,_1l.length-4);break}}else{break}}if($nt($1.parseonly)){$k[$j++]=$G($1.msg,0,$1.j)}else{$k[$j++]=$s($1.j);for(var _1v=0,_1u=$f($1.j-1);_1v<=_1u;_1v+=1){var _1w=$k[--$j];$p(_1w,_1v,$g($1.msg,_1v));$k[$j++]=_1w}}};$0.gs1lint=function(){var $1={};$1.vals=$k[--$j];$1.ais=$k[--$j];$1.lintnumeric=function(){var _2=$k[--$j];$k[$j++]=true;$F(_2,function(){var _3=$k[--$j];if(_3<48||_3>57){$j--;$k[$j++]=false;return true}});if($nt($k[--$j])){$j--;$k[$j++]="bwipp.GS1notNumeric";$k[$j++]="Not numeric";$k[$j++]=false;return true}};$1.lintcset82=function(){var _5=$k[--$j];$k[$j++]=true;$F(_5,function(){var _6=$s(1);$p(_6,0,$k[--$j]);$x("!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",_6);if($nt($k[--$j])){$j-=2;$k[$j++]=false;return true}$j-=3});if($nt($k[--$j])){$j--;$k[$j++]="bwipp.GS1badCSET82character";$k[$j++]="Invalid CSET 82 character";$k[$j++]=false;return true}};$1.lintcset39=function(){var _A=$k[--$j];$k[$j++]=true;$F(_A,function(){var _B=$s(1);$p(_B,0,$k[--$j]);$x("#-/0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",_B);if($nt($k[--$j])){$j-=2;$k[$j++]=false;return true}$j-=3});if($nt($k[--$j])){$j--;$k[$j++]="bwipp.GS1badCSET39character";$k[$j++]="Invalid CSET 39 character";$k[$j++]=false;return true}};$1.lintkey=function(){var _F=$k[--$j];$k[$j++]=_F;if(_F.length<2){$j-=2;$k[$j++]="bwipp.GS1keyTooShort";$k[$j++]="Key is too short";$k[$j++]=false;return true}var _G=$k[--$j];var _H=$g(_G,0);var _I=$g(_G,1);if(_H<48||_H>57||(_I<48||_I>57)){$j--;$k[$j++]="bwipp.GS1badGCP";$k[$j++]="Non-numeric company prefix";$k[$j++]=false;return true}};$1.lintimporteridx=function(){$x("-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",$k[--$j]);if($nt($k[--$j])){$j-=2;$k[$j++]="bwipp.GS1badImporterIndex";$k[$j++]="Invalid importer index";$k[$j++]=false;return true}$j-=3};$1.lintcsum=function(){$k[$j++]=Infinity;var _L=$k[--$j];var _M=$k[--$j];var _N=_M.length%2==0?3:1;$k[$j++]=_L;$k[$j++]=_N;$F(_M,function(){var _O=$k[--$j];var _P=$k[--$j];$k[$j++]=$f(_O-48)*_P;$k[$j++]=$f(4-_P)});$j--;var _Q=$m()+1;$k[$j++]=0;for(var _R=0,_S=_Q-1;_R<_S;_R++){var _T=$k[--$j];var _U=$k[--$j];$k[$j++]=$f(_U+_T)}var _V=$k[--$j];var _W=$k[--$j];$k[$j++]=_V;$k[$j++]=_W;$j--;if($k[--$j]%10!=0){$j--;$k[$j++]="bwipp.GS1badChecksum";$k[$j++]="Bad checksum";$k[$j++]=false;return true}};$k[$j++]=Infinity;$k[$j++]=0;for(var _Y=0,_Z="!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".length;_Y<_Z;_Y++){var _b=$k[--$j];$k[$j++]=$g("!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",_Y);$k[$j++]=_b;$k[$j++]=$f(_b+1)}$j--;$1.cset82=$d();$k[$j++]=Infinity;$k[$j++]=0;for(var _d=0,_e="23456789ABCDEFGHJKLMNPQRSTUVWXYZ".length;_d<_e;_d++){var _g=$k[--$j];$k[$j++]=$g("23456789ABCDEFGHJKLMNPQRSTUVWXYZ",_d);$k[$j++]=_g;$k[$j++]=$f(_g+1)}$j--;$1.cset32=$d();$1.lintcsumalpha=function(){var _i=$k[--$j];$k[$j++]=_i;if(_i.length<2){$j-=2;$k[$j++]="bwipp.GS1alphaTooShort";$k[$j++]="Alphanumeric string is too short to check";$k[$j++]=false;return true}var _j=$k[--$j];$k[$j++]=_j;$k[$j++]=_j.length-2;$k[$j++]=Infinity;var _m=$G(_j,0,_j.length-2);$F(_m,function(){var _n=$k[--$j];var _p=$g($1.cset82,_n)!==undefined;$k[$j++]=_n;if(_p){var _s=$g($1.cset82,$k[--$j]);$k[$j++]=_s}else{$k[$j++]=-1;return true}});var _t=$k[--$j];$k[$j++]=_t;if(_t==-1){$l();$j-=3;$k[$j++]="bwipp.GS1UnknownCSET82Character";$k[$j++]="Unknown CSET 82 character";$k[$j++]=false;return true}$r($a($m()));var _w=$k[--$j];var _x=$k[--$j];$k[$j++]=_w;$k[$j++]=_x;$j--;var _y=$k[--$j];var _z=$k[--$j];var _11=$G($k[--$j],_z,2);$k[$j++]=_y;$k[$j++]=Infinity;var _13=_11;$F(_13,function(){var _14=$k[--$j];var _16=$g($1.cset32,_14)!==undefined;$k[$j++]=_14;if(_16){var _19=$g($1.cset32,$k[--$j]);$k[$j++]=_19}else{$k[$j++]=-1;return true}});var _1A=$k[--$j];$k[$j++]=_1A;if(_1A==-1){$l();$j-=2;$k[$j++]="bwipp.GS1UnknownCSET32Character";$k[$j++]="Unknown CSET 32 character";$k[$j++]=false;return true}$r($a($m()));var _1D=$k[--$j];var _1E=$k[--$j];$k[$j++]=_1D;$k[$j++]=_1E;$j--;var _1F=$k[--$j];var _1I=$k[--$j];var _1J=$a([2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83]);var _1K=_1I.length;$k[$j++]=$f(($g(_1F,0)<<5)+$g(_1F,1));$k[$j++]=_1I;$k[$j++]=_1J;$k[$j++]=_1K;if(_1K>_1J.length){$j-=5;$k[$j++]="bwipp.GS1alphaTooLong";$k[$j++]="Alphanumeric string is too long to check";$k[$j++]=false;return true}var _1L=$k[--$j];var _1N=$G($k[--$j],0,_1L);for(var _1O=0,_1P=_1N.length;_1O<_1P;_1O++){var _1R=$k[--$j];$k[$j++]=$g(_1N,_1O);$k[$j++]=_1R}var _1S=$k[--$j];$k[$j++]=0;$F(_1S,function(){var _1T=$k[--$j];var _1U=$k[--$j];var _1V=$k[--$j];$k[$j++]=$f(_1U+_1V*_1T)});var _1W=$k[--$j];if($k[--$j]!=_1W%1021){$j--;$k[$j++]="bwipp.GS1badAlphaCheckCharacters";$k[$j++]="Bad alphanumeric check characters";$k[$j++]=false;return true}};$k[$j++]=Infinity;var _1Y=$a(["004","008","010","012","016","020","024","028","031","032","036","040","044","048","050","051","052","056","060","064","068","070","072","074","076","084","086","090","092","096","100","104","108","112","116","120","124","132","136","140","144","148","152","156","158","162","166","170","174","175","178","180","184","188","191","192","196","203","204","208","212","214","218","222","226","231","232","233","234","238","239","242","246","248","250","254","258","260","262","266","268","270","275","276","288","292","296","300","304","308","312","316","320","324","328","332","334","336","340","344","348","352","356","360","364","368","372","376","380","384","388","392","398","400","404","408","410","414","417","418","422","426","428","430","434","438","440","442","446","450","454","458","462","466","470","474","478","480","484","492","496","498","499","500","504","508","512","516","520","524","528","531","533","534","535","540","548","554","558","562","566","570","574","578","580","581","583","584","585","586","591","598","600","604","608","612","616","620","624","626","630","634","638","642","643","646","652","654","659","660","662","663","666","670","674","678","682","686","688","690","694","702","703","704","705","706","710","716","724","728","729","732","740","744","748","752","756","760","762","764","768","772","776","780","784","788","792","795","796","798","800","804","807","818","826","831","832","833","834","840","850","854","858","860","862","876","882","887","894"]);for(var _1Z=0,_1a=_1Y.length;_1Z<_1a;_1Z++){var _1b=$g(_1Y,_1Z);$k[$j++]=_1b;$k[$j++]=_1b}$1.iso3166=$d();$1.lintiso3166=function(){var _1f=$g($1.iso3166,$k[--$j])!==undefined;if(!_1f){$j--;$k[$j++]="bwipp.GS1UnknownCountry";$k[$j++]="Unknown country code";$k[$j++]=false;return true}};$1.lintiso3166999=function(){var _1g=$k[--$j];$k[$j++]=_1g;if($ne(_1g,"999")){var _1j=$g($1.iso3166,$k[--$j])!==undefined;if(!_1j){$j--;$k[$j++]="bwipp.GS1UnknownCountryOr999";$k[$j++]="Unknown country code or not 999";$k[$j++]=false;return true}}else{$j--}};$1.lintiso3166list=function(){var _1k=$k[--$j];$k[$j++]=_1k;if(_1k.length%3!=0){$j-=2;$k[$j++]="bwipp.GS1BadCountryListLength";$k[$j++]="Not a group of three-digit country codes";$k[$j++]=false;return true}var _1l=$k[--$j];$k[$j++]=_1l;$k[$j++]=true;for(var _1n=0,_1m=_1l.length-1;_1n<=_1m;_1n+=3){var _1o=$k[--$j];var _1p=$k[--$j];var _1s=$g($1.iso3166,$G(_1p,_1n,3))!==undefined;$k[$j++]=_1p;$k[$j++]=_1o;if(!_1s){$j-=2;$k[$j++]=false;break}}if($nt($k[--$j])){$j--;$k[$j++]="bwipp.GS1UnknownCountry";$k[$j++]="Unknown country code";$k[$j++]=false;return true}$j--};$k[$j++]=Infinity;var _1u=$a(["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]);for(var _1v=0,_1w=_1u.length;_1v<_1w;_1v++){var _1x=$g(_1u,_1v);$k[$j++]=_1x;$k[$j++]=_1x}$1.iso3166alpha2=$d();$1.lintiso3166alpha2=function(){var _21=$g($1.iso3166alpha2,$k[--$j])!==undefined;if(!_21){$j--;$k[$j++]="bwipp.GS1UnknownCountryAlpha";$k[$j++]="Unknown country alpha code";$k[$j++]=false;return true}};$k[$j++]=Infinity;var _22=$a(["008","012","032","036","044","048","050","051","052","060","064","068","072","084","090","096","104","108","116","124","132","136","144","152","156","170","174","188","191","192","203","208","214","222","230","232","238","242","262","270","292","320","324","328","332","340","344","348","352","356","360","364","368","376","388","392","398","400","404","408","410","414","417","418","422","426","430","434","446","454","458","462","480","484","496","498","504","512","516","524","532","533","548","554","558","566","578","586","590","598","600","604","608","634","643","646","654","682","690","694","702","704","706","710","728","748","752","756","760","764","776","780","784","788","800","807","818","826","834","840","858","860","882","886","901","927","928","929","930","931","932","933","934","936","938","940","941","943","944","946","947","948","949","950","951","952","953","955","956","957","958","959","960","961","962","963","964","965","967","968","969","970","971","972","973","975","976","977","978","979","980","981","984","985","986","990","994","997","999"]);for(var _23=0,_24=_22.length;_23<_24;_23++){var _25=$g(_22,_23);$k[$j++]=_25;$k[$j++]=_25}$1.iso4217=$d();$1.lintiso4217=function(){var _29=$g($1.iso4217,$k[--$j])!==undefined;if(!_29){$j--;$k[$j++]="bwipp.GS1UnknownCurrency";$k[$j++]="Unknown currency code";$k[$j++]=false;return true}};$1.lintiban=function(){var _2A=$k[--$j];$k[$j++]=_2A;if(_2A.length<4){$j-=2;$k[$j++]="bwipp.GS1tooShort";$k[$j++]="IBAN too short";$k[$j++]=false;return true}var _2B=$k[--$j];$k[$j++]=_2B;$k[$j++]=true;$F(_2B,function(){var _2C=$s(1);$p(_2C,0,$k[--$j]);$x("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",_2C);if($nt($k[--$j])){$j-=2;$k[$j++]=false;return true}$j-=3});if($nt($k[--$j])){$j--;$k[$j++]="bwipp.GS1badIBANcharacter";$k[$j++]="Invalid IBAN character";$k[$j++]=false;return true}var _2G=$k[--$j];$k[$j++]=_2G;$k[$j++]=Infinity;$k[$j++]=_2G;$k[$j++]=Infinity;var _2J=$k[--$j];var _2K=$k[--$j];$k[$j++]=_2J;$F(_2K);$r($m(),-4);$r($a($m()));var _2O=$k[--$j];var _2P=$k[--$j];$k[$j++]=_2O;$k[$j++]=_2P;$j--;$F($k[--$j],function(){var _2S=$f($k[--$j]-48);$k[$j++]=_2S;if(_2S>9){var _2U=$f($k[--$j]-7);$k[$j++]=~~(_2U/10);$k[$j++]=_2U%10}});$r($a($m()));var _2X=$k[--$j];var _2Y=$k[--$j];$k[$j++]=_2X;$k[$j++]=_2Y;$j--;var _2Z=$k[--$j];$k[$j++]=0;$F(_2Z,function(){var _2a=$k[--$j];var _2b=$k[--$j];$k[$j++]=$f(_2a+_2b*10)%97});if($k[--$j]!=1){$j-=2;$k[$j++]="bwipp.GS1badIBANchecksum";$k[$j++]="IBAN checksum incorrect";$k[$j++]=false;return true}var _2e=$G($k[--$j],0,2);$k[$j++]=_2e;$1.lintiso3166alpha2()};$1.lintzero=function(){if($ne($k[--$j],"0")){$j--;$k[$j++]="bwipp.GS1zeroRequired";$k[$j++]="Zero is required";$k[$j++]=false;return true}};$1.lintnonzero=function(){var _2g=$k[--$j];$k[$j++]=false;$F(_2g,function(){if($k[--$j]!=48){$j--;$k[$j++]=true}});if($nt($k[--$j])){$j--;$k[$j++]="bwipp.GS1zeroNotPermitted";$k[$j++]="Zero not permitted";$k[$j++]=false;return true}};$1.lintnozeroprefix=function(){var _2j=$k[--$j];if(_2j.length>1&&$g(_2j,0)==48){$j--;$k[$j++]="bwipp.GS1badZeroPrefix";$k[$j++]="Zero prefix is not permitted";$k[$j++]=false;return true}};$1.lintyymmd0=function(){var _2l=$k[--$j];var _2n=~~$z($G(_2l,2,2));$k[$j++]=_2l;if(_2n<1||_2n>12){$j--;$k[$j++]="bwipp.GS1badMonth";$k[$j++]="Invalid month";$k[$j++]=false;return true}var _2o=$k[--$j];var _2q=~~$z($G(_2o,0,2));var _2r=_2q-21;$k[$j++]=_2o;$k[$j++]=_2q;$k[$j++]=_2r;if(_2r>=51){$j--;var _2s=$k[--$j];$k[$j++]=$f(_2s+1900)}else{if($k[--$j]<=-50){var _2u=$k[--$j];$k[$j++]=$f(_2u+2100)}else{var _2v=$k[--$j];$k[$j++]=$f(_2v+2e3)}}var _2w=$k[--$j];$k[$j++]=_2w%400==0||_2w%4==0&&_2w%100!=0;$k[$j++]=Infinity;var _2x=$k[--$j];var _2z=$k[--$j]?29:28;$k[$j++]=_2x;$k[$j++]=31;$k[$j++]=_2z;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;var _30=$a();var _31=$k[--$j];if($g(_30,~~$z($G(_31,2,2))-1)<~~$z($G(_31,4,2))){$j--;$k[$j++]="bwipp.GS1badDay";$k[$j++]="Invalid day of month";$k[$j++]=false;return true}};$1.lintyymmdd=function(){var _35=$k[--$j];$k[$j++]=_35;if(_35.length!=6){$j--;$k[$j++]="bwipp.GS1badDateLength";$k[$j++]="Invalid length for date";$k[$j++]=false;return true}var _36=$k[--$j];$k[$j++]=_36;if(~~$z($G(_36,4,2))<1){$j--;$k[$j++]="bwipp.GS1badDay";$k[$j++]="Invalid day of month";$k[$j++]=false;return true}$1.lintyymmd0()};$1.lintyymmddhh=function(){var _38=$k[--$j];$k[$j++]=_38;if(_38.length!=8){$j--;$k[$j++]="bwipp.GS1badYYMMDDHHLength";$k[$j++]="Invalid length for date with hour";$k[$j++]=false;return true}var _39=$k[--$j];$k[$j++]=_39;if(~~$z($G(_39,6,2))>23){$j-=2;$k[$j++]="bwipp.GS1badHour";$k[$j++]="Invalid hour of day";$k[$j++]=false;return true}var _3C=$G($k[--$j],0,6);$k[$j++]=_3C;$1.lintyymmdd()};$1.linthhmm=function(){var _3D=$k[--$j];$k[$j++]=_3D;if(~~$z($G(_3D,0,2))>23){$j-=2;$k[$j++]="bwipp.GS1badHour";$k[$j++]="Invalid hour of day";$k[$j++]=false;return true}if(~~$z($G($k[--$j],2,2))>59){$j--;$k[$j++]="bwipp.GS1badMinute";$k[$j++]="Invalid minute in the hour";$k[$j++]=false;return true}};$1.lintmmoptss=function(){var _3H=$k[--$j];var _3I=_3H.length;$k[$j++]=_3H;if(_3I!=2&&_3I!=4){$j--;$k[$j++]="bwipp.GS1badTimeLength";$k[$j++]="Invalid length for optional minutes and seconds";$k[$j++]=false;return true}var _3J=$k[--$j];$k[$j++]=_3J;if(~~$z($G(_3J,0,2))>59){$j-=2;$k[$j++]="bwipp.GS1badMinute";$k[$j++]="Invalid minute in the hour";$k[$j++]=false;return true}var _3L=$k[--$j];$k[$j++]=_3L;if(_3L.length>=4){var _3M=$k[--$j];$k[$j++]=_3M;if(~~$z($G(_3M,2,2))>59){$j-=2;$k[$j++]="bwipp.GS1badSecond";$k[$j++]="Invalid second in the minute";$k[$j++]=false;return true}}$j--};$1.lintyesno=function(){var _3O=$k[--$j];if($ne(_3O,"0")&&$ne(_3O,"1")){$j--;$k[$j++]="bwipp.GS1badBoolean";$k[$j++]="Neither 0 nor 1 for yes or no";$k[$j++]=false;return true}};$1.lintwinding=function(){var _3P=$k[--$j];if($ne(_3P,"0")&&($ne(_3P,"1")&&$ne(_3P,"9"))){$j--;$k[$j++]="bwipp.GS1badWinding";$k[$j++]="Invalid winding direction";$k[$j++]=false;return true}};$1.lintpieceoftotal=function(){var _3Q=$k[--$j];$k[$j++]=_3Q;if(_3Q.length%2!=0){$j-=2;$k[$j++]="bwipp.GS1badPieceTotalLength";$k[$j++]="Invalid piece/total length";$k[$j++]=false;return true}var _3R=$k[--$j];var _3T=~~$z($G(_3R,0,~~(_3R.length/2)));$k[$j++]=_3R;$k[$j++]=_3T;if(_3T==0){$j-=3;$k[$j++]="bwipp.GS1badPieceNumber";$k[$j++]="Invalid piece number";$k[$j++]=false;return true}var _3U=$k[--$j];var _3V=$k[--$j];var _3W=~~(_3V.length/2);var _3Y=~~$z($G(_3V,_3W,_3W));$k[$j++]=_3U;$k[$j++]=_3Y;if(_3Y==0){$j-=3;$k[$j++]="bwipp.GS1badPieceTotal";$k[$j++]="Invalid total number";$k[$j++]=false;return true}var _3Z=$k[--$j];if($gt($k[--$j],_3Z)){$j--;$k[$j++]="bwipp.GS1pieceExceedsTotal";$k[$j++]="Piece number exceeds total";$k[$j++]=false;return true}};$1.lintpcenc=function(){for(;;){$x($k[--$j],"%");if($nt($k[--$j])){$j--;break}$j-=2;var _3d=$k[--$j];$k[$j++]=_3d;if(_3d.length<2){$j-=2;$k[$j++]="bwipp.GS1badPercentEscape";$k[$j++]="Invalid % escape";$k[$j++]=false;break}var _3e=$k[--$j];var _3f=$G(_3e,0,2);$k[$j++]=_3e;$k[$j++]=true;for(var _3g=0,_3h=_3f.length;_3g<_3h;_3g++){var _3j=$s(1);$p(_3j,0,$g(_3f,_3g));$x("0123456789ABCDEFabcdef",_3j);if($nt($k[--$j])){$j-=2;$k[$j++]=false;return true}$j-=3}if($nt($k[--$j])){$j-=2;$k[$j++]="bwipp.GS1badPercentChars";$k[$j++]="Invalid characters for percent encoding";$k[$j++]=false;break}}};$1.lintcouponcode=function(){var _3m=$k[--$j];$k[$j++]=_3m;$k[$j++]=true;$F(_3m,function(){var _3n=$k[--$j];if(_3n<48||_3n>57){$j--;$k[$j++]=false;return true}});if($nt($k[--$j])){$j-=2;$k[$j++]="bwipp.GS1couponNotNumeric";$k[$j++]="Coupon not numeric";$k[$j++]=false;return true}var _3p=$k[--$j];$k[$j++]=_3p;if(_3p.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortGCPVLI";$k[$j++]="Coupon too short: Missing GCP VLI";$k[$j++]=false;return true}var _3q=$k[--$j];var _3s=~~$z($G(_3q,0,1));$k[$j++]=_3q;$k[$j++]=_3s;if(_3s>6){$j-=2;$k[$j++]="bwipp.GS1couponBadGCPVLI";$k[$j++]="Coupon GCP length indicator must be 0-6";$k[$j++]=false;return true}var _3t=$k[--$j];var _3u=$k[--$j];$k[$j++]=_3u;$k[$j++]=$f($f(_3t+6)+1);if($f($f(_3t+6)+1)>_3u.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShortGCP";$k[$j++]="Coupon too short: GCP truncated";$k[$j++]=false;return true}var _3v=$k[--$j];var _3w=$k[--$j];var _3x=$G(_3w,_3v,$f(_3w.length-_3v));$k[$j++]=_3x;if(_3x.length<6){$j-=2;$k[$j++]="bwipp.GS1couponTooShortOfferCode";$k[$j++]="Coupon too short: Offer Code truncated";$k[$j++]=false;return true}var _3y=$k[--$j];var _3z=$G(_3y,6,_3y.length-6);$k[$j++]=_3z;if(_3z.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortSaveValueVLI";$k[$j++]="Coupon too short: Missing Save Value VLI";$k[$j++]=false;return true}var _40=$k[--$j];var _42=~~$z($G(_40,0,1));$k[$j++]=_40;$k[$j++]=_42;if(_42<1||_42>5){$j-=2;$k[$j++]="bwipp.GS1couponBadSaveValueVLI";$k[$j++]="Coupon Save Value length indicator must be 1-5";$k[$j++]=false;return true}var _43=$k[--$j];var _44=$k[--$j];$k[$j++]=_44;$k[$j++]=$f(_43+1);if($f(_43+1)>_44.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShortSaveValue";$k[$j++]="Coupon too short: Save Value truncated";$k[$j++]=false;return true}var _45=$k[--$j];var _46=$k[--$j];var _47=$G(_46,_45,$f(_46.length-_45));$k[$j++]=_47;if(_47.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShort1stPurchaseRequirementVLI";$k[$j++]="Coupon too short: Missing 1st Purchase Requirement VLI";$k[$j++]=false;return true}var _48=$k[--$j];var _4A=~~$z($G(_48,0,1));$k[$j++]=_48;$k[$j++]=_4A;if(_4A<1||_4A>5){$j-=2;$k[$j++]="bwipp.GS1couponBad1stPurchaseRequirementVLI";$k[$j++]="Coupon 1st Purchase Requirement length indicator must be 1-5";$k[$j++]=false;return true}var _4B=$k[--$j];var _4C=$k[--$j];$k[$j++]=_4C;$k[$j++]=$f(_4B+1);if($f(_4B+1)>_4C.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShort1stPurchaseRequirement";$k[$j++]="Coupon too short: 1st Purchase Requirement truncated";$k[$j++]=false;return true}var _4D=$k[--$j];var _4E=$k[--$j];var _4F=$G(_4E,_4D,$f(_4E.length-_4D));$k[$j++]=_4F;if(_4F.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShort1stPurchaseRequirementCode";$k[$j++]="Coupon too short: Missing 1st Purchase Requirement Code";$k[$j++]=false;return true}var _4G=$k[--$j];var _4I=~~$z($G(_4G,0,1));$k[$j++]=_4G;if(_4I>4&&_4I!=9){$j-=2;$k[$j++]="bwipp.GS1couponBad1stPurchaseRequirementCode";$k[$j++]="Coupon 1st Purchase Requirement Code must be 0-4 or 9";$k[$j++]=false;return true}var _4J=$k[--$j];var _4K=$G(_4J,1,_4J.length-1);$k[$j++]=_4K;if(_4K.length<3){$j-=2;$k[$j++]="bwipp.GS1couponTooShort1stPurchaseFamilyCode";$k[$j++]="Coupon too short: 1st Purchase Family Code truncated";$k[$j++]=false;return true}var _4L=$k[--$j];var _4M=$G(_4L,3,_4L.length-3);$k[$j++]=_4M;if(_4M.length>=1){var _4N=$k[--$j];$k[$j++]=_4N;if(~~$z($G(_4N,0,1))==1){var _4P=$k[--$j];var _4Q=$G(_4P,1,_4P.length-1);$k[$j++]=_4Q;if(_4Q.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortAdditionalPurchaseRulesCode";$k[$j++]="Coupon too short: Missing Additional Purchase Rules Code";$k[$j++]=false;return true}var _4R=$k[--$j];$k[$j++]=_4R;if(~~$z($G(_4R,0,1))>3){$j-=2;$k[$j++]="bwipp.GS1couponBadAdditionalPurchaseRulesCode";$k[$j++]="Coupon Additional Purchase Rules Code must be 0-3";$k[$j++]=false;return true}var _4T=$k[--$j];var _4U=$G(_4T,1,_4T.length-1);$k[$j++]=_4U;if(_4U.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShort2ndPurchaseRequirementVLI";$k[$j++]="Coupon too short: Missing 2nd Purchase Requirement VLI";$k[$j++]=false;return true}var _4V=$k[--$j];var _4X=~~$z($G(_4V,0,1));$k[$j++]=_4V;$k[$j++]=_4X;if(_4X<1||_4X>5){$j-=2;$k[$j++]="bwipp.GS1couponBad2ndPurchaseRequirementVLI";$k[$j++]="Coupon 2nd Purchase Requirement length indicator must be 1-5";$k[$j++]=false;return true}var _4Y=$k[--$j];var _4Z=$k[--$j];$k[$j++]=_4Z;$k[$j++]=$f(_4Y+1);if($f(_4Y+1)>_4Z.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShort2ndPurchaseRequirement";$k[$j++]="Coupon too short: 2nd Purchase Requirement truncated";$k[$j++]=false;return true}var _4a=$k[--$j];var _4b=$k[--$j];var _4c=$G(_4b,_4a,$f(_4b.length-_4a));$k[$j++]=_4c;if(_4c.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShort2ndPurchaseRequirementCode";$k[$j++]="Coupon too short: Missing 2nd Purchase Requirement Code";$k[$j++]=false;return true}var _4d=$k[--$j];var _4f=~~$z($G(_4d,0,1));$k[$j++]=_4d;if(_4f>4&&_4f!=9){$j-=2;$k[$j++]="bwipp.GS1couponBad2ndPurchaseRequirementCode";$k[$j++]="Coupon 2nd Purchase Requirement Code must be 0-4 or 9";$k[$j++]=false;return true}var _4g=$k[--$j];var _4h=$G(_4g,1,_4g.length-1);$k[$j++]=_4h;if(_4h.length<3){$j-=2;$k[$j++]="bwipp.GS1couponTooShort2ndPurchaseFamilyCode";$k[$j++]="Coupon too short: 2nd Purchase Family Code truncated";$k[$j++]=false;return true}var _4i=$k[--$j];var _4j=$G(_4i,3,_4i.length-3);$k[$j++]=_4j;if(_4j.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShort2ndPurchaseGCPVLI";$k[$j++]="Coupon too short: Missing 2nd Purchase GCP VLI";$k[$j++]=false;return true}var _4k=$k[--$j];var _4m=~~$z($G(_4k,0,1));$k[$j++]=_4k;$k[$j++]=_4m;if(_4m>6&&_4m!=9){$j-=2;$k[$j++]="bwipp.GS1couponBad2ndPurchaseGCPVLI";$k[$j++]="Coupon 2nd Purchase GCP length indicator must be 0-6 or 9";$k[$j++]=false;return true}var _4n=$k[--$j];$k[$j++]=_4n;if(_4n!=9){var _4o=$k[--$j];$k[$j++]=$f(_4o+6)}else{$j--;$k[$j++]=0}var _4p=$k[--$j];var _4q=$k[--$j];$k[$j++]=_4q;$k[$j++]=$f(_4p+1);if($f(_4p+1)>_4q.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShort2ndPurchaseGCP";$k[$j++]="Coupon too short: 2nd Purchase GCP truncated";$k[$j++]=false;return true}var _4r=$k[--$j];var _4s=$k[--$j];$k[$j++]=$G(_4s,_4r,$f(_4s.length-_4r))}}var _4u=$k[--$j];$k[$j++]=_4u;if(_4u.length>=1){var _4v=$k[--$j];$k[$j++]=_4v;if(~~$z($G(_4v,0,1))==2){var _4x=$k[--$j];var _4y=$G(_4x,1,_4x.length-1);$k[$j++]=_4y;if(_4y.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShort3rdPurchaseRequirementVLI";$k[$j++]="Coupon too short: Missing 3rd Purchase Requirement VLI";$k[$j++]=false;return true}var _4z=$k[--$j];var _51=~~$z($G(_4z,0,1));$k[$j++]=_4z;$k[$j++]=_51;if(_51<1||_51>5){$j-=2;$k[$j++]="bwipp.GS1couponBad3rdPurchaseRequirementVLI";$k[$j++]="Coupon 3rd Purchase Requirement length indicator must be 1-5";$k[$j++]=false;return true}var _52=$k[--$j];var _53=$k[--$j];$k[$j++]=_53;$k[$j++]=$f(_52+1);if($f(_52+1)>_53.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShort3rdPurchaseRequirement";$k[$j++]="Coupon too short: 3rd Purchase Requirement truncated";$k[$j++]=false;return true}var _54=$k[--$j];var _55=$k[--$j];var _56=$G(_55,_54,$f(_55.length-_54));$k[$j++]=_56;if(_56.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShort3rdPurchaseRequirementCode";$k[$j++]="Coupon too short: Missing 3rd Purchase Requirement Code";$k[$j++]=false;return true}var _57=$k[--$j];var _59=~~$z($G(_57,0,1));$k[$j++]=_57;if(_59>4&&_59!=9){$j-=2;$k[$j++]="bwipp.GS1couponBad3rdPurchaseRequirementCode";$k[$j++]="Coupon 3rd Purchase Requirement Code must be 0-4 or 9";$k[$j++]=false;return true}var _5A=$k[--$j];var _5B=$G(_5A,1,_5A.length-1);$k[$j++]=_5B;if(_5B.length<3){$j-=2;$k[$j++]="bwipp.GS1couponTooShort3rdPurchaseFamilyCode";$k[$j++]="Coupon too short: 3rd Purchase Family Code truncated";$k[$j++]=false;return true}var _5C=$k[--$j];var _5D=$G(_5C,3,_5C.length-3);$k[$j++]=_5D;if(_5D.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShort3rdPurchaseGCPVLI";$k[$j++]="Coupon too short: Missing 3rd Purchase GCP VLI";$k[$j++]=false;return true}var _5E=$k[--$j];var _5G=~~$z($G(_5E,0,1));$k[$j++]=_5E;$k[$j++]=_5G;if(_5G>6&&_5G!=9){$j-=2;$k[$j++]="bwipp.GS1couponBad3rdPurchaseGCPVLI";$k[$j++]="Coupon 3rd Purchase GCP length indicator must be 0-6 or 9";$k[$j++]=false;return true}var _5H=$k[--$j];$k[$j++]=_5H;if(_5H!=9){var _5I=$k[--$j];$k[$j++]=$f(_5I+6)}else{$j--;$k[$j++]=0}var _5J=$k[--$j];var _5K=$k[--$j];$k[$j++]=_5K;$k[$j++]=$f(_5J+1);if($f(_5J+1)>_5K.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShort3rdPurchaseGCP";$k[$j++]="Coupon too short: 3rd Purchase GCP truncated";$k[$j++]=false;return true}var _5L=$k[--$j];var _5M=$k[--$j];$k[$j++]=$G(_5M,_5L,$f(_5M.length-_5L))}}$1.couponexpire=-1;var _5O=$k[--$j];$k[$j++]=_5O;if(_5O.length>=1){var _5P=$k[--$j];$k[$j++]=_5P;if(~~$z($G(_5P,0,1))==3){var _5R=$k[--$j];var _5S=$G(_5R,1,_5R.length-1);$k[$j++]=_5S;if(_5S.length<6){$j-=2;$k[$j++]="bwipp.GS1couponTooShortExpirationDate";$k[$j++]="Coupon too short: Expiration date";$k[$j++]=false;return true}var _5T=$k[--$j];var _5V=~~$z($G(_5T,2,2));$k[$j++]=_5T;if(_5V<1||_5V>12){$j-=2;$k[$j++]="bwipp.GS1couponExpirationDateBadMonth";$k[$j++]="Invalid month in expiration date";$k[$j++]=false;return true}var _5W=$k[--$j];var _5Y=~~$z($G(_5W,0,2));var _5Z=_5Y-21;$k[$j++]=_5W;$k[$j++]=_5Y;$k[$j++]=_5Z;if(_5Z>=51){$j--;var _5a=$k[--$j];$k[$j++]=$f(_5a+1900)}else{if($k[--$j]<=-50){var _5c=$k[--$j];$k[$j++]=$f(_5c+2100)}else{var _5d=$k[--$j];$k[$j++]=$f(_5d+2e3)}}var _5e=$k[--$j];$k[$j++]=_5e%400==0||_5e%4==0&&_5e%100!=0;$k[$j++]=Infinity;var _5f=$k[--$j];var _5h=$k[--$j]?29:28;$k[$j++]=_5f;$k[$j++]=31;$k[$j++]=_5h;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;var _5i=$a();var _5j=$k[--$j];var _5n=~~$z($G(_5j,4,2));$k[$j++]=_5j;if($g(_5i,~~$z($G(_5j,2,2))-1)<_5n||_5n<1){$j-=2;$k[$j++]="bwipp.GS1couponExpirationDateBadDay";$k[$j++]="Invalid day of month in expiration date";$k[$j++]=false;return true}var _5o=$k[--$j];$1.couponexpire=~~$z($G(_5o,0,6));$k[$j++]=$G(_5o,6,_5o.length-6)}}var _5r=$k[--$j];$k[$j++]=_5r;if(_5r.length>=1){var _5s=$k[--$j];$k[$j++]=_5s;if(~~$z($G(_5s,0,1))==4){var _5u=$k[--$j];var _5v=$G(_5u,1,_5u.length-1);$k[$j++]=_5v;if(_5v.length<6){$j-=2;$k[$j++]="bwipp.GS1couponTooShortStartDate";$k[$j++]="Coupon too short: Start date";$k[$j++]=false;return true}var _5w=$k[--$j];var _5y=~~$z($G(_5w,2,2));$k[$j++]=_5w;if(_5y<1||_5y>12){$j-=2;$k[$j++]="bwipp.GS1couponStartDateBadMonth";$k[$j++]="Invalid month in start date";$k[$j++]=false;return true}var _5z=$k[--$j];var _61=~~$z($G(_5z,0,2));var _62=_61-21;$k[$j++]=_5z;$k[$j++]=_61;$k[$j++]=_62;if(_62>=51){$j--;var _63=$k[--$j];$k[$j++]=$f(_63+1900)}else{if($k[--$j]<=-50){var _65=$k[--$j];$k[$j++]=$f(_65+2100)}else{var _66=$k[--$j];$k[$j++]=$f(_66+2e3)}}var _67=$k[--$j];$k[$j++]=_67%400==0||_67%4==0&&_67%100!=0;$k[$j++]=Infinity;var _68=$k[--$j];var _6A=$k[--$j]?29:28;$k[$j++]=_68;$k[$j++]=31;$k[$j++]=_6A;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;var _6B=$a();var _6C=$k[--$j];var _6G=~~$z($G(_6C,4,2));$k[$j++]=_6C;if($g(_6B,~~$z($G(_6C,2,2))-1)<_6G||_6G<1){$j-=2;$k[$j++]="bwipp.GS1couponStartDateBadDay";$k[$j++]="Invalid day of month in start date";$k[$j++]=false;return true}var _6H=$k[--$j];$1.couponstart=~~$z($G(_6H,0,6));$k[$j++]=_6H;if($1.couponexpire!=-1&&$1.couponexpire<$1.couponstart){$j-=2;$k[$j++]="bwipp.GS1couponExpireDateBeforeStartDate";$k[$j++]="Coupon expires before it starts";$k[$j++]=false;return true}var _6M=$k[--$j];$k[$j++]=$G(_6M,6,_6M.length-6)}}var _6O=$k[--$j];$k[$j++]=_6O;if(_6O.length>=1){var _6P=$k[--$j];$k[$j++]=_6P;if(~~$z($G(_6P,0,1))==5){var _6R=$k[--$j];var _6S=$G(_6R,1,_6R.length-1);$k[$j++]=_6S;if(_6S.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortSerialNumberVLI";$k[$j++]="Coupon too short: Missing Serial Number VLI";$k[$j++]=false;return true}var _6T=$k[--$j];var _6U=$G(_6T,0,1);$k[$j++]=_6T;$k[$j++]=~~$z(_6U)+6+1;if(~~$z(_6U)+6+1>_6T.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShortSerialNumber";$k[$j++]="Coupon too short: Serial Number truncated";$k[$j++]=false;return true}var _6V=$k[--$j];var _6W=$k[--$j];$k[$j++]=$G(_6W,_6V,$f(_6W.length-_6V))}}var _6Y=$k[--$j];$k[$j++]=_6Y;if(_6Y.length>=1){var _6Z=$k[--$j];$k[$j++]=_6Z;if(~~$z($G(_6Z,0,1))==6){var _6b=$k[--$j];var _6c=$G(_6b,1,_6b.length-1);$k[$j++]=_6c;if(_6c.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortRetailerGCPGLNVLI";$k[$j++]="Coupon too short: Missing Retailer GCP/GLN VLI";$k[$j++]=false;return true}var _6d=$k[--$j];var _6f=~~$z($G(_6d,0,1));$k[$j++]=_6d;$k[$j++]=_6f;if(_6f<1||_6f>7){$j-=2;$k[$j++]="bwipp.GS1couponBadRetailerGCPGLNVLI";$k[$j++]="Coupon Retailer GCP/GLN length indicator must be 1-7";$k[$j++]=false;return true}var _6g=$k[--$j];var _6h=$k[--$j];$k[$j++]=_6h;$k[$j++]=$f($f(_6g+6)+1);if($f($f(_6g+6)+1)>_6h.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShortRetailerGCPGLN";$k[$j++]="Coupon too short: Retailer GCP/GLN truncated";$k[$j++]=false;return true}var _6i=$k[--$j];var _6j=$k[--$j];$k[$j++]=$G(_6j,_6i,$f(_6j.length-_6i))}}var _6l=$k[--$j];$k[$j++]=_6l;if(_6l.length>=1){var _6m=$k[--$j];$k[$j++]=_6m;if(~~$z($G(_6m,0,1))==9){var _6o=$k[--$j];var _6p=$G(_6o,1,_6o.length-1);$k[$j++]=_6p;if(_6p.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortSaveValueCode";$k[$j++]="Coupon too short: Missing Save Value Code";$k[$j++]=false;return true}var _6q=$k[--$j];var _6s=~~$z($G(_6q,0,1));$k[$j++]=_6q;if(_6s>6||(_6s==3||_6s==4)){$j-=2;$k[$j++]="bwipp.GS1couponBadSaveValueCode";$k[$j++]="Coupon Save Value Code must be 0,1,2,5 or 6";$k[$j++]=false;return true}var _6t=$k[--$j];var _6u=$G(_6t,1,_6t.length-1);$k[$j++]=_6u;if(_6u.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortSaveValueAppliesToItem";$k[$j++]="Coupon too short: Missing Save Value Applies to Item";$k[$j++]=false;return true}var _6v=$k[--$j];$k[$j++]=_6v;if(~~$z($G(_6v,0,1))>2){$j-=2;$k[$j++]="bwipp.GS1couponBadSaveValueAppliesToItem";$k[$j++]="Coupon Save Value Applies to Item must be 0-2";$k[$j++]=false;return true}var _6x=$k[--$j];var _6y=$G(_6x,1,_6x.length-1);$k[$j++]=_6y;if(_6y.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortStoreCouponFlag";$k[$j++]="Coupon too short: Missing Store Coupon Flag";$k[$j++]=false;return true}var _6z=$k[--$j];var _70=$G(_6z,1,_6z.length-1);$k[$j++]=_70;if(_70.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortDontMultiplyFlag";$k[$j++]="Coupon too short: Missing Don't Multiply Flag";$k[$j++]=false;return true}var _71=$k[--$j];$k[$j++]=_71;if(~~$z($G(_71,0,1))>1){$j-=2;$k[$j++]="bwipp.GS1couponBadDontMultiplyFlag";$k[$j++]="Don't Multiply Flag must be 0 or 1";$k[$j++]=false;return true}var _73=$k[--$j];$k[$j++]=$G(_73,1,_73.length-1)}}var _75=$k[--$j];$k[$j++]=_75;if(_75.length!=0){$j-=2;$k[$j++]="bwipp.GS1couponUnrecognisedOptionalField";$k[$j++]="Coupon fields must be 1,2,3,4,5,6 or 9, increasing order";$k[$j++]=false;return true}$j--};$1.lintcouponposoffer=function(){var _76=$k[--$j];$k[$j++]=_76;$k[$j++]=true;$F(_76,function(){var _77=$k[--$j];if(_77<48||_77>57){$j--;$k[$j++]=false;return true}});if($nt($k[--$j])){$j-=2;$k[$j++]="bwipp.GS1couponNotNumeric";$k[$j++]="Coupon not numeric";$k[$j++]=false;return true}var _79=$k[--$j];$k[$j++]=_79;if(_79.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortFormatCode";$k[$j++]="Coupon too short: Missing Format Code";$k[$j++]=false;return true}var _7A=$k[--$j];var _7B=$G(_7A,0,1);$k[$j++]=_7A;if($ne(_7B,"0")&&$ne(_7B,"1")){$j-=2;$k[$j++]="bwipp.GS1couponBadFormatCode";$k[$j++]="Coupon format must be 0 or 1";$k[$j++]=false;return true}var _7C=$k[--$j];var _7D=$G(_7C,1,_7C.length-1);$k[$j++]=_7D;if(_7D.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortFunderVLI";$k[$j++]="Coupon too short: Missing Funder VLI";$k[$j++]=false;return true}var _7E=$k[--$j];var _7G=~~$z($G(_7E,0,1));$k[$j++]=_7E;$k[$j++]=_7G;if(_7G>6){$j-=3;$k[$j++]="bwipp.GS1couponBadFunderVLI";$k[$j++]="Coupon Funder length indicator must be 0-6";$k[$j++]=false;return true}var _7H=$k[--$j];var _7I=$k[--$j];$k[$j++]=_7I;$k[$j++]=$f($f(_7H+6)+1);if($f($f(_7H+6)+1)>_7I.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShortFunder";$k[$j++]="Coupon too short: Truncated Funder ID";$k[$j++]=false;return true}var _7J=$k[--$j];var _7K=$k[--$j];var _7L=$G(_7K,_7J,$f(_7K.length-_7J));$k[$j++]=_7L;if(_7L.length<6){$j-=2;$k[$j++]="bwipp.GS1couponTooShortOfferCode";$k[$j++]="Coupon too short: Truncated Offer Code";$k[$j++]=false;return true}var _7M=$k[--$j];var _7N=$G(_7M,6,_7M.length-6);$k[$j++]=_7N;if(_7N.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortSnVLI";$k[$j++]="Coupon too short: Missing SN VLI";$k[$j++]=false;return true}var _7O=$k[--$j];var _7P=$G(_7O,0,1);$k[$j++]=_7O;$k[$j++]=~~$z(_7P)+6+1;if(~~$z(_7P)+6+1>_7O.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShortSn";$k[$j++]="Coupon too short: Truncated SN";$k[$j++]=false;return true}var _7Q=$k[--$j];var _7R=$k[--$j];var _7S=$G(_7R,_7Q,$f(_7R.length-_7Q));$k[$j++]=_7S;if(_7S.length!=0){$j-=2;$k[$j++]="bwipp.GS1couponTooLong";$k[$j++]="Coupon too long";$k[$j++]=false;return true}$j--};var _7U=new Map([["cset","N"],["min",18],["max",18],["check",$a(["lintcsum","lintkey"])]]);var _7X=new Map([["cset","N"],["min",14],["max",14],["check",$a(["lintcsum","lintkey"])]]);var _7Y=$a([_7X]);var _7a=new Map([["cset","X"],["min",1],["max",20],["check",$a([])]]);var _7d=new Map([["cset","N"],["min",6],["max",6],["check",$a(["lintyymmd0"])]]);var _7e=$a([_7d]);var _7g=new Map([["cset","N"],["min",2],["max",2],["check",$a([])]]);var _7j=new Map([["cset","X"],["min",1],["max",20],["check",$a([])]]);var _7k=$a([_7j]);var _7m=new Map([["cset","X"],["min",1],["max",28],["check",$a([])]]);var _7p=new Map([["cset","X"],["min",1],["max",30],["check",$a([])]]);var _7q=$a([_7p]);var _7s=new Map([["cset","N"],["min",1],["max",6],["check",$a([])]]);var _7v=new Map([["cset","X"],["min",1],["max",20],["check",$a([])]]);var _7y=new Map([["cset","X"],["min",1],["max",30],["check",$a([])]]);var _7z=$a([_7y]);var _81=new Map([["cset","N"],["min",13],["max",13],["check",$a(["lintcsum","lintkey"])]]);var _83=new Map([["cset","X"],["min",0],["max",17],["check",$a([])]]);var _86=new Map([["cset","X"],["min",1],["max",20],["check",$a([])]]);var _89=new Map([["cset","N"],["min",13],["max",13],["check",$a(["lintcsum","lintkey"])]]);var _8B=new Map([["cset","N"],["min",0],["max",12],["check",$a([])]]);var _8E=new Map([["cset","N"],["min",1],["max",8],["check",$a([])]]);var _8H=new Map([["cset","N"],["min",6],["max",6],["check",$a([])]]);var _8I=$a([_8H]);var _8K=new Map([["cset","N"],["min",1],["max",8],["check",$a([])]]);var _8N=new Map([["cset","N"],["min",1],["max",15],["check",$a([])]]);var _8O=$a([_8N]);var _8Q=new Map([["cset","N"],["min",3],["max",3],["check",$a(["lintiso4217"])]]);var _8S=new Map([["cset","N"],["min",1],["max",15],["check",$a([])]]);var _8T=$a([_8Q,_8S]);var _8V=new Map([["cset","N"],["min",1],["max",15],["check",$a([])]]);var _8W=$a([_8V]);var _8Y=new Map([["cset","N"],["min",3],["max",3],["check",$a(["lintiso4217"])]]);var _8a=new Map([["cset","N"],["min",1],["max",15],["check",$a([])]]);var _8b=$a([_8Y,_8a]);var _8d=new Map([["cset","N"],["min",4],["max",4],["check",$a([])]]);var _8e=$a([_8d]);var _8g=new Map([["cset","N"],["min",6],["max",6],["check",$a([])]]);var _8h=$a([_8g]);var _8j=new Map([["cset","X"],["min",1],["max",30],["check",$a([])]]);var _8m=new Map([["cset","X"],["min",1],["max",30],["check",$a(["lintkey"])]]);var _8p=new Map([["cset","N"],["min",17],["max",17],["check",$a(["lintcsum","lintkey"])]]);var _8s=new Map([["cset","X"],["min",1],["max",30],["check",$a([])]]);var _8v=new Map([["cset","N"],["min",13],["max",13],["check",$a(["lintcsum","lintkey"])]]);var _8w=$a([_8v]);var _8y=new Map([["cset","X"],["min",1],["max",20],["check",$a([])]]);var _91=new Map([["cset","N"],["min",3],["max",3],["check",$a(["lintiso3166"])]]);var _93=new Map([["cset","X"],["min",1],["max",9],["check",$a([])]]);var _96=new Map([["cset","N"],["min",3],["max",3],["check",$a(["lintiso3166"])]]);var _99=new Map([["cset","N"],["min",1],["max",15],["check",$a(["lintiso3166list"])]]);var _9C=new Map([["cset","N"],["min",3],["max",3],["check",$a(["lintiso3166"])]]);var _9F=new Map([["cset","N"],["min",1],["max",15],["check",$a(["lintiso3166list"])]]);var _9I=new Map([["cset","N"],["min",3],["max",3],["check",$a(["lintiso3166"])]]);var _9L=new Map([["cset","X"],["min",1],["max",3],["check",$a([])]]);var _9O=new Map([["cset","X"],["min",1],["max",35],["check",$a(["lintpcenc"])]]);var _9P=$a([_9O]);var _9R=new Map([["cset","X"],["min",1],["max",70],["check",$a(["lintpcenc"])]]);var _9S=$a([_9R]);var _9U=new Map([["cset","X"],["min",2],["max",2],["check",$a(["lintiso3166alpha2"])]]);var _9X=new Map([["cset","X"],["min",1],["max",30],["check",$a([])]]);var _9a=new Map([["cset","X"],["min",1],["max",35],["check",$a(["lintpcenc"])]]);var _9b=$a([_9a]);var _9d=new Map([["cset","X"],["min",1],["max",70],["check",$a(["lintpcenc"])]]);var _9e=$a([_9d]);var _9g=new Map([["cset","X"],["min",2],["max",2],["check",$a(["lintiso3166alpha2"])]]);var _9j=new Map([["cset","X"],["min",1],["max",20],["check",$a([])]]);var _9m=new Map([["cset","X"],["min",1],["max",30],["check",$a([])]]);var _9p=new Map([["cset","X"],["min",1],["max",35],["check",$a(["lintpcenc"])]]);var _9s=new Map([["cset","N"],["min",1],["max",1],["check",$a(["lintyesno"])]]);var _9t=$a([_9s]);var _9v=new Map([["cset","N"],["min",6],["max",6],["check",$a(["lintyymmd0"])]]);var _9x=new Map([["cset","N"],["min",4],["max",4],["check",$a(["linthhmm"])]]);var _9y=$a([_9v,_9x]);var _A0=new Map([["cset","N"],["min",6],["max",6],["check",$a(["lintyymmdd"])]]);var _A3=new Map([["cset","N"],["min",13],["max",13],["check",$a([])]]);var _A6=new Map([["cset","X"],["min",1],["max",30],["check",$a([])]]);var _A9=new Map([["cset","N"],["min",6],["max",6],["check",$a(["lintyymmdd"])]]);var _AB=new Map([["cset","N"],["min",4],["max",4],["check",$a(["linthhmm"])]]);var _AE=new Map([["cset","N"],["min",1],["max",4],["check",$a([])]]);var _AH=new Map([["cset","X"],["min",1],["max",12],["check",$a([])]]);var _AK=new Map([["cset","N"],["min",6],["max",6],["check",$a(["lintyymmdd"])]]);var _AN=new Map([["cset","N"],["min",6],["max",6],["check",$a(["lintyymmdd"])]]);var _AP=new Map([["cset","N"],["min",0],["max",6],["check",$a(["lintyymmdd"])]]);var _AS=new Map([["cset","X"],["min",1],["max",3],["check",$a([])]]);var _AV=new Map([["cset","X"],["min",1],["max",10],["check",$a([])]]);var _AY=new Map([["cset","X"],["min",1],["max",2],["check",$a([])]]);var _Ab=new Map([["cset","X"],["min",1],["max",20],["check",$a([])]]);var _Ac=$a([_Ab]);var _Ae=new Map([["cset","X"],["min",1],["max",30],["check",$a(["lintkey"])]]);var _Ah=new Map([["cset","N"],["min",3],["max",3],["check",$a(["lintiso3166999"])]]);var _Aj=new Map([["cset","X"],["min",1],["max",27],["check",$a([])]]);var _Ak=$a([_Ah,_Aj]);var _Am=new Map([["cset","N"],["min",1],["max",1],["check",$a([])]]);var _Ao=new Map([["cset","X"],["min",1],["max",1],["check",$a([])]]);var _Aq=new Map([["cset","X"],["min",1],["max",1],["check",$a([])]]);var _As=new Map([["cset","X"],["min",1],["max",1],["check",$a(["lintimporteridx"])]]);var _Av=new Map([["cset","X"],["min",1],["max",20],["check",$a([])]]);var _Aw=$a([_Av]);var _Ay=new Map([["cset","X"],["min",2],["max",2],["check",$a([])]]);var _B0=new Map([["cset","X"],["min",1],["max",28],["check",$a([])]]);var _B1=$a([_Ay,_B0]);var _B3=new Map([["cset","X"],["min",1],["max",20],["check",$a([])]]);var _B6=new Map([["cset","N"],["min",4],["max",4],["check",$a(["lintnonzero"])]]);var _B8=new Map([["cset","N"],["min",5],["max",5],["check",$a(["lintnonzero"])]]);var _BA=new Map([["cset","N"],["min",3],["max",3],["check",$a(["lintnonzero"])]]);var _BC=new Map([["cset","N"],["min",1],["max",1],["check",$a(["lintwinding"])]]);var _BE=new Map([["cset","N"],["min",1],["max",1],["check",$a([])]]);var _BH=new Map([["cset","X"],["min",1],["max",20],["check",$a([])]]);var _BK=new Map([["cset","N"],["min",1],["max",1],["check",$a(["lintzero"])]]);var _BM=new Map([["cset","N"],["min",13],["max",13],["check",$a(["lintcsum","lintkey"])]]);var _BO=new Map([["cset","X"],["min",0],["max",16],["check",$a([])]]);var _BR=new Map([["cset","X"],["min",1],["max",30],["check",$a(["lintkey"])]]);var _BU=new Map([["cset","N"],["min",6],["max",6],["check",$a([])]]);var _BX=new Map([["cset","N"],["min",14],["max",14],["check",$a(["lintcsum"])]]);var _BZ=new Map([["cset","N"],["min",4],["max",4],["check",$a(["lintpieceoftotal"])]]);var _Bc=new Map([["cset","X"],["min",1],["max",34],["check",$a(["lintiban"])]]);var _Bf=new Map([["cset","N"],["min",8],["max",8],["check",$a(["lintyymmddhh"])]]);var _Bh=new Map([["cset","N"],["min",0],["max",4],["check",$a(["lintmmoptss"])]]);var _Bk=new Map([["cset","X"],["min",1],["max",50],["check",$a([])]]);var _Bn=new Map([["cset","C"],["min",1],["max",30],["check",$a(["lintkey"])]]);var _Bq=new Map([["cset","N"],["min",1],["max",12],["check",$a(["lintnozeroprefix"])]]);var _Bt=new Map([["cset","X"],["min",1],["max",20],["check",$a([])]]);var _Bw=new Map([["cset","X"],["min",1],["max",25],["check",$a(["lintcsumalpha","lintkey"])]]);var _Bz=new Map([["cset","N"],["min",18],["max",18],["check",$a(["lintcsum"])]]);var _C0=$a([_Bz]);var _C2=new Map([["cset","N"],["min",1],["max",10],["check",$a([])]]);var _C5=new Map([["cset","X"],["min",1],["max",25],["check",$a([])]]);var _C8=new Map([["cset","N"],["min",14],["max",14],["check",$a(["lintcsum"])]]);var _CA=new Map([["cset","N"],["min",4],["max",4],["check",$a(["lintpieceoftotal"])]]);var _CD=new Map([["cset","X"],["min",1],["max",70],["check",$a(["lintcouponcode"])]]);var _CG=new Map([["cset","N"],["min",4],["max",4],["check",$a([])]]);var _CJ=new Map([["cset","X"],["min",1],["max",70],["check",$a(["lintcouponposoffer"])]]);var _CM=new Map([["cset","X"],["min",1],["max",70],["check",$a([])]]);var _CP=new Map([["cset","X"],["min",1],["max",30],["check",$a([])]]);var _CS=new Map([["cset","X"],["min",1],["max",90],["check",$a([])]]);var _CT=$a([_CS]);var _CU=new Map([["00",$a([_7U])],["01",_7Y],["02",_7Y],["10",$a([_7a])],["11",_7e],["12",_7e],["13",_7e],["14",_7e],["15",_7e],["16",_7e],["17",_7e],["20",$a([_7g])],["21",_7k],["22",_7k],["235",$a([_7m])],["240",_7q],["241",_7q],["242",$a([_7s])],["243",$a([_7v])],["250",_7z],["251",_7z],["253",$a([_81,_83])],["254",$a([_86])],["255",$a([_89,_8B])],["30",$a([_8E])],["3100",_8I],["3101",_8I],["3102",_8I],["3103",_8I],["3104",_8I],["3105",_8I],["3110",_8I],["3111",_8I],["3112",_8I],["3113",_8I],["3114",_8I],["3115",_8I],["3120",_8I],["3121",_8I],["3122",_8I],["3123",_8I],["3124",_8I],["3125",_8I],["3130",_8I],["3131",_8I],["3132",_8I],["3133",_8I],["3134",_8I],["3135",_8I],["3140",_8I],["3141",_8I],["3142",_8I],["3143",_8I],["3144",_8I],["3145",_8I],["3150",_8I],["3151",_8I],["3152",_8I],["3153",_8I],["3154",_8I],["3155",_8I],["3160",_8I],["3161",_8I],["3162",_8I],["3163",_8I],["3164",_8I],["3165",_8I],["3200",_8I],["3201",_8I],["3202",_8I],["3203",_8I],["3204",_8I],["3205",_8I],["3210",_8I],["3211",_8I],["3212",_8I],["3213",_8I],["3214",_8I],["3215",_8I],["3220",_8I],["3221",_8I],["3222",_8I],["3223",_8I],["3224",_8I],["3225",_8I],["3230",_8I],["3231",_8I],["3232",_8I],["3233",_8I],["3234",_8I],["3235",_8I],["3240",_8I],["3241",_8I],["3242",_8I],["3243",_8I],["3244",_8I],["3245",_8I],["3250",_8I],["3251",_8I],["3252",_8I],["3253",_8I],["3254",_8I],["3255",_8I],["3260",_8I],["3261",_8I],["3262",_8I],["3263",_8I],["3264",_8I],["3265",_8I],["3270",_8I],["3271",_8I],["3272",_8I],["3273",_8I],["3274",_8I],["3275",_8I],["3280",_8I],["3281",_8I],["3282",_8I],["3283",_8I],["3284",_8I],["3285",_8I],["3290",_8I],["3291",_8I],["3292",_8I],["3293",_8I],["3294",_8I],["3295",_8I],["3300",_8I],["3301",_8I],["3302",_8I],["3303",_8I],["3304",_8I],["3305",_8I],["3310",_8I],["3311",_8I],["3312",_8I],["3313",_8I],["3314",_8I],["3315",_8I],["3320",_8I],["3321",_8I],["3322",_8I],["3323",_8I],["3324",_8I],["3325",_8I],["3330",_8I],["3331",_8I],["3332",_8I],["3333",_8I],["3334",_8I],["3335",_8I],["3340",_8I],["3341",_8I],["3342",_8I],["3343",_8I],["3344",_8I],["3345",_8I],["3350",_8I],["3351",_8I],["3352",_8I],["3353",_8I],["3354",_8I],["3355",_8I],["3360",_8I],["3361",_8I],["3362",_8I],["3363",_8I],["3364",_8I],["3365",_8I],["3370",_8I],["3371",_8I],["3372",_8I],["3373",_8I],["3374",_8I],["3375",_8I],["3400",_8I],["3401",_8I],["3402",_8I],["3403",_8I],["3404",_8I],["3405",_8I],["3410",_8I],["3411",_8I],["3412",_8I],["3413",_8I],["3414",_8I],["3415",_8I],["3420",_8I],["3421",_8I],["3422",_8I],["3423",_8I],["3424",_8I],["3425",_8I],["3430",_8I],["3431",_8I],["3432",_8I],["3433",_8I],["3434",_8I],["3435",_8I],["3440",_8I],["3441",_8I],["3442",_8I],["3443",_8I],["3444",_8I],["3445",_8I],["3450",_8I],["3451",_8I],["3452",_8I],["3453",_8I],["3454",_8I],["3455",_8I],["3460",_8I],["3461",_8I],["3462",_8I],["3463",_8I],["3464",_8I],["3465",_8I],["3470",_8I],["3471",_8I],["3472",_8I],["3473",_8I],["3474",_8I],["3475",_8I],["3480",_8I],["3481",_8I],["3482",_8I],["3483",_8I],["3484",_8I],["3485",_8I],["3490",_8I],["3491",_8I],["3492",_8I],["3493",_8I],["3494",_8I],["3495",_8I],["3500",_8I],["3501",_8I],["3502",_8I],["3503",_8I],["3504",_8I],["3505",_8I],["3510",_8I],["3511",_8I],["3512",_8I],["3513",_8I],["3514",_8I],["3515",_8I],["3520",_8I],["3521",_8I],["3522",_8I],["3523",_8I],["3524",_8I],["3525",_8I],["3530",_8I],["3531",_8I],["3532",_8I],["3533",_8I],["3534",_8I],["3535",_8I],["3540",_8I],["3541",_8I],["3542",_8I],["3543",_8I],["3544",_8I],["3545",_8I],["3550",_8I],["3551",_8I],["3552",_8I],["3553",_8I],["3554",_8I],["3555",_8I],["3560",_8I],["3561",_8I],["3562",_8I],["3563",_8I],["3564",_8I],["3565",_8I],["3570",_8I],["3571",_8I],["3572",_8I],["3573",_8I],["3574",_8I],["3575",_8I],["3600",_8I],["3601",_8I],["3602",_8I],["3603",_8I],["3604",_8I],["3605",_8I],["3610",_8I],["3611",_8I],["3612",_8I],["3613",_8I],["3614",_8I],["3615",_8I],["3620",_8I],["3621",_8I],["3622",_8I],["3623",_8I],["3624",_8I],["3625",_8I],["3630",_8I],["3631",_8I],["3632",_8I],["3633",_8I],["3634",_8I],["3635",_8I],["3640",_8I],["3641",_8I],["3642",_8I],["3643",_8I],["3644",_8I],["3645",_8I],["3650",_8I],["3651",_8I],["3652",_8I],["3653",_8I],["3654",_8I],["3655",_8I],["3660",_8I],["3661",_8I],["3662",_8I],["3663",_8I],["3664",_8I],["3665",_8I],["3670",_8I],["3671",_8I],["3672",_8I],["3673",_8I],["3674",_8I],["3675",_8I],["3680",_8I],["3681",_8I],["3682",_8I],["3683",_8I],["3684",_8I],["3685",_8I],["3690",_8I],["3691",_8I],["3692",_8I],["3693",_8I],["3694",_8I],["3695",_8I],["37",$a([_8K])],["3900",_8O],["3901",_8O],["3902",_8O],["3903",_8O],["3904",_8O],["3905",_8O],["3906",_8O],["3907",_8O],["3908",_8O],["3909",_8O],["3910",_8T],["3911",_8T],["3912",_8T],["3913",_8T],["3914",_8T],["3915",_8T],["3916",_8T],["3917",_8T],["3918",_8T],["3919",_8T],["3920",_8W],["3921",_8W],["3922",_8W],["3923",_8W],["3924",_8W],["3925",_8W],["3926",_8W],["3927",_8W],["3928",_8W],["3929",_8W],["3930",_8b],["3931",_8b],["3932",_8b],["3933",_8b],["3934",_8b],["3935",_8b],["3936",_8b],["3937",_8b],["3938",_8b],["3939",_8b],["3940",_8e],["3941",_8e],["3942",_8e],["3943",_8e],["3950",_8h],["3951",_8h],["3952",_8h],["3953",_8h],["3954",_8h],["3955",_8h],["400",$a([_8j])],["401",$a([_8m])],["402",$a([_8p])],["403",$a([_8s])],["410",_8w],["411",_8w],["412",_8w],["413",_8w],["414",_8w],["415",_8w],["416",_8w],["417",_8w],["420",$a([_8y])],["421",$a([_91,_93])],["422",$a([_96])],["423",$a([_99])],["424",$a([_9C])],["425",$a([_9F])],["426",$a([_9I])],["427",$a([_9L])],["4300",_9P],["4301",_9P],["4302",_9S],["4303",_9S],["4304",_9S],["4305",_9S],["4306",_9S],["4307",$a([_9U])],["4308",$a([_9X])],["4310",_9b],["4311",_9b],["4312",_9e],["4313",_9e],["4314",_9e],["4315",_9e],["4316",_9e],["4317",$a([_9g])],["4318",$a([_9j])],["4319",$a([_9m])],["4320",$a([_9p])],["4321",_9t],["4322",_9t],["4323",_9t],["4324",_9y],["4325",_9y],["4326",$a([_A0])],["7001",$a([_A3])],["7002",$a([_A6])],["7003",$a([_A9,_AB])],["7004",$a([_AE])],["7005",$a([_AH])],["7006",$a([_AK])],["7007",$a([_AN,_AP])],["7008",$a([_AS])],["7009",$a([_AV])],["7010",$a([_AY])],["7020",_Ac],["7021",_Ac],["7022",_Ac],["7023",$a([_Ae])],["7030",_Ak],["7031",_Ak],["7032",_Ak],["7033",_Ak],["7034",_Ak],["7035",_Ak],["7036",_Ak],["7037",_Ak],["7038",_Ak],["7039",_Ak],["7040",$a([_Am,_Ao,_Aq,_As])],["710",_Aw],["711",_Aw],["712",_Aw],["713",_Aw],["714",_Aw],["7230",_B1],["7231",_B1],["7232",_B1],["7233",_B1],["7234",_B1],["7235",_B1],["7236",_B1],["7237",_B1],["7238",_B1],["7239",_B1],["7240",$a([_B3])],["8001",$a([_B6,_B8,_BA,_BC,_BE])],["8002",$a([_BH])],["8003",$a([_BK,_BM,_BO])],["8004",$a([_BR])],["8005",$a([_BU])],["8006",$a([_BX,_BZ])],["8007",$a([_Bc])],["8008",$a([_Bf,_Bh])],["8009",$a([_Bk])],["8010",$a([_Bn])],["8011",$a([_Bq])],["8012",$a([_Bt])],["8013",$a([_Bw])],["8017",_C0],["8018",_C0],["8019",$a([_C2])],["8020",$a([_C5])],["8026",$a([_C8,_CA])],["8110",$a([_CD])],["8111",$a([_CG])],["8112",$a([_CJ])],["8200",$a([_CM])],["90",$a([_CP])],["91",_CT],["92",_CT],["93",_CT],["94",_CT],["95",_CT],["96",_CT],["97",_CT],["98",_CT],["99",_CT]]);$1.gs1syntax=_CU;$k[$j++]=true;for(var _CX=0,_CW=$1.vals.length-1;_CX<=_CW;_CX+=1){$1.ai=$g($1.ais,_CX);$1.val=$g($1.vals,_CX);var _Ce=$g($1.gs1syntax,$1.ai)!==undefined;if(_Ce){$F($g($1.gs1syntax,$1.ai),function(){$1.props=$k[--$j];var _Ck=$g($1.props,"max");var _Cl=$1.val;var _Cm=_Cl.length;if(_Ck>_Cl.length){var _=_Cm;_Cm=_Ck;_Ck=_}$1.eval=$G($1.val,0,_Ck);var _Cr=$1.eval.length;$1.val=$G($1.val,_Cr,$1.val.length-_Cr);if($1.eval.length<$g($1.props,"min")){$j--;$k[$j++]="bwipp.GS1valueTooShort";$k[$j++]="Too short";$k[$j++]=false;return true}var _Cx=new Map([["N","lintnumeric"],["X","lintcset82"],["C","lintcset39"]]);$k[$j++]=$1.eval;if($1[$g(_Cx,$g($1.props,"cset"))]()===true){return true}if($1.eval.length>0){$F($g($1.props,"check"),function(){var _D8=$1[$k[--$j]];$k[$j++]=$1.eval;if(_D8()===true){return true}})}});var _D9=$k[--$j];$k[$j++]=_D9;if($nt(_D9)){break}if($1.val.length!=0){$j--;$k[$j++]="bwipp.GS1valueTooLong";$k[$j++]="Too long";$k[$j++]=false;break}}else{$j--;$k[$j++]="bwipp.GS1unknownAI";$k[$j++]="Unrecognised AI";$k[$j++]=false;break}}if($nt($k[--$j])){var _DC=$k[--$j];var _DE=$s(_DC.length+$1.ai.length+5);$P(_DE,0,"AI ");$P(_DE,3,$1.ai);$P(_DE,3+$1.ai.length,": ");$P(_DE,5+$1.ai.length,_DC);$k[$j++]=_DE;$0.raiseerror()}$k[$j++]=true};$0.renmatrix=function(){if($0.bwipjs_dontdraw){return}var $1={};$1.args=$k[--$j];$1.width=1;$1.height=1;$1.barcolor="unset";$1.backgroundcolor="unset";$1.colormap="unset";$1.dotty=false;$1.inkspread=0;$1.inkspreadh=0;$1.inkspreadv=0;$1.includetext=false;$1.txt=$a([]);$1.textcolor="unset";$1.textxalign="unset";$1.textyalign="unset";$1.textfont="OCR-B";$1.textsize=10;$1.textxoffset=0;$1.textyoffset=0;$1.textgaps=0;$1.alttext="";$F($1.args,function(){var _4=$k[--$j];$1[$k[--$j]]=_4});var _6=$1.opt;for(var _B=_6.size,_A=_6.keys(),_9=0;_9<_B;_9++){var _7=_A.next().value;$1[_7]=_6.get(_7)}$1.width=+$1.width;$1.height=+$1.height;$1.barcolor=""+$1.barcolor;$1.backgroundcolor=""+$1.backgroundcolor;$1.inkspread=+$1.inkspread;$1.inkspreadh=+$1.inkspreadh;$1.inkspreadv=+$1.inkspreadv;$1.textcolor=""+$1.textcolor;$1.textxalign=""+$1.textxalign;$1.textyalign=""+$1.textyalign;$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.textgaps=+$1.textgaps;$1.alttext=""+$1.alttext;if($1.inkspread!=0){$1.inkspreadh=$1.inkspread}if($1.inkspread!=0){$1.inkspreadv=$1.inkspread}$1.xyget=function(){var _X=$k[--$j];var _a=$g($1.pixs,$f($k[--$j]+_X*$1.pixx));$k[$j++]=_a};$1.cget=function(){var _c=$k[--$j];var _f=$g($1.cache,$f($k[--$j]+_c*$1.pixx));var _g=$k[--$j];$k[$j++]=$an(_g,_f)};$1.cput=function(){var _h=$k[--$j];$k[$j++]=_h;if(_h%4==0){var _i=$k[--$j];var _j=$k[--$j];var _k=$k[--$j];var _l=$1.pixx;var _m=$1.cache;$p(_m,$f(_k+_j*_l),$or($g(_m,$f(_k+_j*_l)),_i))}else{$j-=3}};$1.abcd=function(){$k[$j++]=$s(4);$k[$j++]=0;$k[$j++]=Infinity;var _p=$k[--$j];var _q=$k[--$j];var _r=$k[--$j];var _s=$k[--$j];var _v=$f($k[--$j]+_s*$1.pixx);$k[$j++]=_r;$k[$j++]=_q;$k[$j++]=_p;$k[$j++]=_v;$q($G($1.pixs,_v,2));var _y=$k[--$j];var _z=$k[--$j];var _13=$G($1.pixs,$f($k[--$j]+$1.pixx),2);$k[$j++]=_z;$k[$j++]=_y;$q(_13);var _14=$a();for(var _15=0,_16=_14.length;_15<_16;_15++){var _18=$k[--$j];var _19=$k[--$j];$p(_19,_18,$f($g(_14,_15)+48));$k[$j++]=_19;$k[$j++]=$f(_18+1)}$j--};$1.right=function(){if($1.dir!=1){$k[$j++]=$1.x;$k[$j++]=$1.y;$k[$j++]=$1.dir;$1.cput();$k[$j++]=$a([$1.x,$1.y])}$1.x=$1.x+1;$1.dir=1};$1.down=function(){if($1.dir!=2){$k[$j++]=$1.x;$k[$j++]=$1.y;$k[$j++]=$1.dir;$1.cput();$k[$j++]=$a([$1.x,$1.y])}$1.y=$1.y+1;$1.dir=2};$1.left=function(){if($1.dir!=4){$k[$j++]=$1.x;$k[$j++]=$1.y;$k[$j++]=$1.dir;$1.cput();$k[$j++]=$a([$1.x,$1.y])}$1.x=$1.x-1;$1.dir=4};$1.up=function(){if($1.dir!=8){$k[$j++]=$1.x;$k[$j++]=$1.y;$k[$j++]=$1.dir;$1.cput();$k[$j++]=$a([$1.x,$1.y])}$1.y=$1.y-1;$1.dir=8};$1.trace=function(){$1.y=$k[--$j];$1.x=$k[--$j];$k[$j++]="dir";$k[$j++]=$f($1.x+1);$k[$j++]=$f($1.y+1);$1.xyget();var _1l=$k[--$j]==1?8:4;$1[$k[--$j]]=_1l;$1.sx=$1.x;$1.sy=$1.y;$1.sdir=$1.dir;$k[$j++]=Infinity;for(;;){$k[$j++]=$1.x;$k[$j++]=$1.y;$1.abcd();for(var _1s=0,_1t=1;_1s<_1t;_1s++){var _1u=$k[--$j];$k[$j++]=_1u;if($eq(_1u,"0001")||($eq(_1u,"0011")||$eq(_1u,"1011"))){$j--;$1.right();break}var _1v=$k[--$j];$k[$j++]=_1v;if($eq(_1v,"0010")||($eq(_1v,"1010")||$eq(_1v,"1110"))){$j--;$1.down();break}var _1w=$k[--$j];$k[$j++]=_1w;if($eq(_1w,"1000")||($eq(_1w,"1100")||$eq(_1w,"1101"))){$j--;$1.left();break}var _1x=$k[--$j];$k[$j++]=_1x;if($eq(_1x,"0100")||($eq(_1x,"0101")||$eq(_1x,"0111"))){$j--;$1.up();break}var _1y=$k[--$j];$k[$j++]=_1y;if($eq(_1y,"1001")){if($1.dir==2){$j--;$1.left();break}else{$j--;$1.right();break}}else{if($1.dir==1){$j--;$1.down();break}else{$j--;$1.up();break}}}if($eq($1.x,$1.sx)&&$eq($1.y,$1.sy)&&$1.dir==$1.sdir){break}}$r($a($m()));var _29=$k[--$j];var _2A=$k[--$j];$k[$j++]=_29;$k[$j++]=_2A;$j--};$1.drawlayer=function(){$1.pixsorig=$1.pixs;$1.pixs=$k[--$j];$k[$j++]=Infinity;for(var _2E=0,_2F=$1.pixx+2;_2E<_2F;_2E++){$k[$j++]=0}for(var _2J=0,_2K=$1.pixx,_2I=$1.pixs.length-1;_2K<0?_2J>=_2I:_2J<=_2I;_2J+=_2K){$k[$j++]=0;$q($G($1.pixs,_2J,$1.pixx));$k[$j++]=0}for(var _2P=0,_2Q=$1.pixx+2;_2P<_2Q;_2P++){$k[$j++]=0}$1.pixs=$a();$1.pixx=$1.pixx+2;$1.pixy=$1.pixy+2;$k[$j++]=Infinity;for(var _2V=0,_2W=$1.pixs.length;_2V<_2W;_2V++){$k[$j++]=0}$1.cache=$a();$k[$j++]=Infinity;for(var _2a=0,_2Z=$1.pixy-2;_2a<=_2Z;_2a+=1){$1.j=_2a;for(var _2d=0,_2c=$1.pixx-2;_2d<=_2c;_2d+=1){$1.i=_2d;$k[$j++]="k";$k[$j++]=$1.i;$k[$j++]=$1.j;$1.abcd();var _2g=$k[--$j];$1[$k[--$j]]=_2g;if($eq($1.k,"0001")||$eq($1.k,"1001")){$k[$j++]=8;$k[$j++]=$1.i;$k[$j++]=$1.j;$1.cget();if($k[--$j]==0){$k[$j++]=$1.i;$k[$j++]=$1.j;$1.trace()}}if($eq($1.k,"1110")){$k[$j++]=4;$k[$j++]=$1.i;$k[$j++]=$1.j;$1.cget();if($k[--$j]==0){$k[$j++]=$1.i;$k[$j++]=$1.j;$1.trace()}}}}$1.paths=$a();$1.pixx=$1.pixx-2;$1.pixy=$1.pixy-2;$$.newpath();var _2y=$1.paths;for(var _2z=0,_30=_2y.length;_2z<_30;_2z++){$1.p=$g(_2y,_2z);$1.len=$1.p.length;$q($g($1.p,$1.len-1));$q($g($1.p,0));for(var _3A=0,_39=$1.len-1;_3A<=_39;_3A+=1){$1.i=_3A;$q($g($1.p,($1.i+1)%$1.len));var _3F=$k[--$j];var _3G=$k[--$j];var _3H=$k[--$j];var _3I=$k[--$j];var _3J=$k[--$j];var _3K=$k[--$j];$k[$j++]=_3I;$k[$j++]=_3H;$k[$j++]=_3G;$k[$j++]=_3F;$k[$j++]=_3K;$k[$j++]=_3I;$k[$j++]=$1.inkspreadh;if($lt(_3F,_3J)){var _3M=$k[--$j];var _3N=$k[--$j];$k[$j++]=$f(_3N+_3M)}else{var _3O=$k[--$j];var _3P=$k[--$j];$k[$j++]=$f(_3P-_3O)}var _3Q=$k[--$j];var _3R=$k[--$j];var _3S=$k[--$j];var _3T=$k[--$j];var _3U=$k[--$j];$k[$j++]=_3U;$k[$j++]=_3Q;$k[$j++]=_3T;$k[$j++]=_3S;$k[$j++]=_3U;$k[$j++]=$1.inkspreadv;if($gt(_3T,_3R)){var _3W=$k[--$j];var _3X=$k[--$j];$k[$j++]=$f(_3X+_3W)}else{var _3Y=$k[--$j];var _3Z=$k[--$j];$k[$j++]=$f(_3Z-_3Y)}var _3a=$k[--$j];var _3b=$k[--$j];var _3c=$k[--$j];var _3d=$k[--$j];$k[$j++]=_3c;$k[$j++]=_3b;$k[$j++]=_3d;$k[$j++]=$f($1.pixy-_3a);if($1.i==0){var _3g=$k[--$j];$$.moveto($k[--$j],_3g)}else{var _3i=$k[--$j];$$.lineto($k[--$j],_3i)}}$$.closepath();$j-=4}$$.fill();$1.pixs=$1.pixsorig};$1.drawlayerdots=function(){$1.pixsorig=$1.pixs;$1.pixs=$k[--$j];$$.newpath();for(var _3p=0,_3o=$1.pixs.length-1;_3p<=_3o;_3p+=1){$1.x=_3p%$1.pixx;$1.y=~~(_3p/$1.pixx);$k[$j++]=$1.x;$k[$j++]=$1.y;$1.xyget();if($k[--$j]==1){$$.moveto($f($1.x+.5),$f($1.pixy-$1.y-.5));$$.arc($f($1.x+.5),$f($1.pixy-$1.y-.5),$f(.5-$1.inkspread),0,360,1)}}$$.fill();$1.pixs=$1.pixsorig};$$.save();$1.inkspread=$1.inkspread/2;$1.inkspreadh=$1.inkspreadh/2;$1.inkspreadv=$1.inkspreadv/2;var _46=$$.currpos();$$.translate(_46.x,_46.y);$$.scale($1.width/$1.pixx*72,$1.height/$1.pixy*72);$$.moveto(0,0);$$.lineto($1.pixx,0);$$.lineto($1.pixx,$1.pixy);$$.lineto(0,$1.pixy);$$.closepath();if($eq($1.colormap,"unset")){var _4H=new Map([[1,$1.barcolor]]);$1.colormap=_4H}var _4I=$1.colormap;for(var _4N=_4I.size,_4M=_4I.keys(),_4L=0;_4L<_4N;_4L++){var _4J=_4M.next().value;$$.setcolor(_4I.get(_4J));$1.key=_4J;$k[$j++]=Infinity;var _4O=$1.pixs;for(var _4P=0,_4Q=_4O.length;_4P<_4Q;_4P++){var _4T=$eq($g(_4O,_4P),$1.key)?1:0;$k[$j++]=_4T}var _4U=$a();$k[$j++]=_4U;if($1.dotty){$1.drawlayerdots()}else{$1.drawlayer()}}if($ne($1.textcolor,"unset")){$$.setcolor($1.textcolor)}if($1.includetext){if($eq($1.textxalign,"unset")&&$eq($1.textyalign,"unset")&&$eq($1.alttext,"")){$1.s=0;$1.fn="";var _4c=$1.txt;for(var _4d=0,_4e=_4c.length;_4d<_4e;_4d++){$F($g(_4c,_4d));var _4g=$k[--$j];var _4h=$k[--$j];$k[$j++]=_4h;$k[$j++]=_4g;if(_4g!=$1.s||$ne(_4h,$1.fn)){var _4k=$k[--$j];var _4l=$k[--$j];$1.s=_4k;$1.fn=_4l;$$.selectfont(_4l,_4k)}else{$j-=2}var _4m=$k[--$j];$$.moveto($k[--$j],_4m);$$.show($k[--$j],0,0)}}else{$$.selectfont($1.textfont,$1.textsize);if($eq($1.alttext,"")){$k[$j++]=Infinity;var _4s=$1.txt;for(var _4t=0,_4u=_4s.length;_4t<_4u;_4t++){$F($g($g(_4s,_4t),0))}$1.txt=$a();$1.tstr=$s($1.txt.length);for(var _52=0,_51=$1.txt.length-1;_52<=_51;_52+=1){$p($1.tstr,_52,$g($1.txt,_52))}}else{$1.tstr=$1.alttext}if($1.tstr.length==0){$k[$j++]=0}else{$$.save();$$.newpath();$$.moveto(0,0);$$.charpath("0",false);var _58=$$.pathbbox();$$.restore();$k[$j++]=_58.ury}$1.textascent=$k[--$j];var _5B=$$.stringwidth($1.tstr);$1.textwidth=$f(_5B.w+($1.tstr.length-1)*$1.textgaps);$1.textxpos=$f($1.textxoffset+$f($1.x-$1.textwidth)/2);if($eq($1.textxalign,"left")){$1.textxpos=$1.textxoffset}if($eq($1.textxalign,"right")){$1.textxpos=$f($f($1.x-$1.textxoffset)-$1.textwidth)}if($eq($1.textxalign,"offleft")){$1.textxpos=-$f($1.textwidth+$1.textxoffset)}if($eq($1.textxalign,"offright")){$1.textxpos=$f($1.x+$1.textxoffset)}if($eq($1.textxalign,"justify")&&$1.textwidth<$1.x){$1.textxpos=0;$1.textgaps=$f($1.x-$1.textwidth)/($1.tstr.length-1)}$1.textypos=-$f($f($1.textyoffset+$1.textascent)+1);if($eq($1.textyalign,"above")){$1.textypos=$f($f($1.textyoffset+$1.pixy)+1)}if($eq($1.textyalign,"center")){$1.textypos=$f($1.textyoffset+$f($1.pixy-$1.textascent)/2)}$$.moveto($1.textxpos,$1.textypos);$$.show($1.tstr,$1.textgaps,0)}}$$.restore()};$0.ean5=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=12;$1.textxoffset=0;$1.textyoffset="unset";$1.height=.7;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.height=+$1.height;$1.textxoffset=+$1.textxoffset;if($eq($1.textyoffset,"unset")){$1.textyoffset=$f($1.height*72+1)}else{$1.textyoffset=+$1.textyoffset}if($1.barcode.length!=5){$k[$j++]="bwipp.ean5badLength";$k[$j++]="EAN-5 add-on must be 5 digits";$0.raiseerror()}$F($1.barcode,function(){var _E=$k[--$j];if(_E<48||_E>57){$k[$j++]="bwipp.ean5badCharacter";$k[$j++]="EAN-5 add-on must contain only digits";$0.raiseerror()}});$1.encs=$a(["3211","2221","2122","1411","1132","1231","1114","1312","1213","3112","112","11"]);$1.barchars="0123456789";$1.mirrormaps=$a(["11000","10100","10010","10001","01100","00110","00011","01010","01001","00101"]);$1.checksum=0;for(var _H=0;_H<=4;_H+=1){$1.i=_H;$1.barchar=$f($g($1.barcode,$1.i)-48);if($1.i%2==0){$1.checksum=$f($1.barchar*3+$1.checksum)}else{$1.checksum=$f($1.barchar*9+$1.checksum)}}$1.checksum=$1.checksum%10;$1.mirrormap=$g($1.mirrormaps,$1.checksum);$1.sbs=$s(31);$1.txt=$a(5);for(var _W=0;_W<=4;_W+=1){$1.i=_W;if($1.i==0){$P($1.sbs,0,$g($1.encs,10))}else{$P($1.sbs,($1.i-1)*6+7,$g($1.encs,11))}$x($1.barchars,$G($1.barcode,$1.i,1));$j--;$1.indx=$k[--$j].length;$j-=2;$1.enc=$g($1.encs,$1.indx);if($g($1.mirrormap,$1.i)==49){$1.enclen=$1.enc.length;$1.revenc=$s($1.enclen);for(var _v=0,_u=$1.enclen-1;_v<=_u;_v+=1){$1.j=_v;$1.char=$g($1.enc,$1.j);$p($1.revenc,$1.enclen-$1.j-1,$1.char)}$1.enc=$1.revenc}$P($1.sbs,$1.i*6+3,$1.enc);$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),$f(($1.i-1)*9+13+$1.textxoffset),$1.textyoffset,$1.textfont,$1.textsize]))}$k[$j++]=Infinity;$k[$j++]=Infinity;var _1I=$1.sbs;for(var _1J=0,_1K=_1I.length;_1J<_1K;_1J++){$k[$j++]=$g(_1I,_1J)-48}var _1M=$a();$k[$j++]=Infinity;for(var _1N=0,_1O=16;_1N<_1O;_1N++){$k[$j++]=$1.height}var _1Q=$a();$k[$j++]=Infinity;for(var _1R=0,_1S=16;_1R<_1S;_1R++){$k[$j++]=0}var _1T=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_1M;$k[$j++]="bhs";$k[$j++]=_1Q;$k[$j++]="bbs";$k[$j++]=_1T;if($1.includetext){$k[$j++]="txt";$k[$j++]=$1.txt}$k[$j++]="opt";$k[$j++]=$1.options;$k[$j++]="guardrightpos";$k[$j++]=10;$k[$j++]="guardrightypos";$k[$j++]=$f($1.textyoffset+4);$k[$j++]="bordertop";$k[$j++]=10;var _1Y=$d();$k[$j++]=_1Y;if(!$1.dontdraw){$0.renlinear()}};$0.ean2=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=12;$1.textxoffset=0;$1.textyoffset="unset";$1.height=.7;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.height=+$1.height;$1.textxoffset=+$1.textxoffset;if($eq($1.textyoffset,"unset")){$1.textyoffset=$f($1.height*72+1)}else{$1.textyoffset=+$1.textyoffset}if($1.barcode.length!=2){$k[$j++]="bwipp.ean2badLength";$k[$j++]="EAN-2 add-on must be 2 digits";$0.raiseerror()}$F($1.barcode,function(){var _E=$k[--$j];if(_E<48||_E>57){$k[$j++]="bwipp.ean2badCharacter";$k[$j++]="EAN-2 add-on must contain only digits";$0.raiseerror()}});$1.encs=$a(["3211","2221","2122","1411","1132","1231","1114","1312","1213","3112","112","11"]);$1.barchars="0123456789";$1.mirrormap=$g($a(["00","01","10","11"]),~~$z($G($1.barcode,0,2))%4);$1.sbs=$s(13);$1.txt=$a(2);for(var _M=0;_M<=1;_M+=1){$1.i=_M;if($1.i==0){$P($1.sbs,0,$g($1.encs,10))}else{$P($1.sbs,($1.i-1)*6+7,$g($1.encs,11))}$x($1.barchars,$G($1.barcode,$1.i,1));$j--;$1.indx=$k[--$j].length;$j-=2;$1.enc=$g($1.encs,$1.indx);if($g($1.mirrormap,$1.i)==49){$1.enclen=$1.enc.length;$1.revenc=$s($1.enclen);for(var _l=0,_k=$1.enclen-1;_l<=_k;_l+=1){$1.j=_l;$1.char=$g($1.enc,$1.j);$p($1.revenc,$1.enclen-$1.j-1,$1.char)}$1.enc=$1.revenc}$P($1.sbs,$1.i*6+3,$1.enc);$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),$f(($1.i-1)*9+13+$1.textxoffset),$1.textyoffset,$1.textfont,$1.textsize]))}$k[$j++]=Infinity;$k[$j++]=Infinity;var _18=$1.sbs;for(var _19=0,_1A=_18.length;_19<_1A;_19++){$k[$j++]=$g(_18,_19)-48}var _1C=$a();$k[$j++]=Infinity;for(var _1D=0,_1E=12;_1D<_1E;_1D++){$k[$j++]=$1.height}var _1G=$a();$k[$j++]=Infinity;for(var _1H=0,_1I=12;_1H<_1I;_1H++){$k[$j++]=0}var _1J=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_1C;$k[$j++]="bhs";$k[$j++]=_1G;$k[$j++]="bbs";$k[$j++]=_1J;if($1.includetext){$k[$j++]="txt";$k[$j++]=$1.txt}$k[$j++]="opt";$k[$j++]=$1.options;$k[$j++]="guardrightpos";$k[$j++]=10;$k[$j++]="guardrightypos";$k[$j++]=$f($1.textyoffset+4);$k[$j++]="bordertop";$k[$j++]=10;var _1O=$d();$k[$j++]=_1O;if(!$1.dontdraw){$0.renlinear()}};$0.ean13=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=12;$1.textxoffset=-10;$1.textyoffset=-4;$1.height=1;$1.addongap=12;$1.addontextfont="unset";$1.addontextsize="unset";$1.addontextxoffset="unset";$1.addontextyoffset="unset";$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.addongap=+$1.addongap;if($ne($1.addontextfont,"unset")){$1.addontextfont=""+$1.addontextfont}if($ne($1.addontextsize,"unset")){$1.addontextsize=+$1.addontextsize}if($ne($1.addontextxoffset,"unset")){$1.addontextxoffset=+$1.addontextxoffset}if($ne($1.addontextyoffset,"unset")){$1.addontextyoffset=+$1.addontextyoffset}$x($1.barcode," ");if($k[--$j]){$1.barcode=$k[--$j];$j--;$1.addon=$k[--$j]}else{$j--;$1.addon=""}if($1.barcode.length!=12&&$1.barcode.length!=13){$k[$j++]="bwipp.ean13badLength";$k[$j++]="EAN-13 must be 12 or 13 digits";$0.raiseerror()}$F($1.barcode,function(){var _Q=$k[--$j];if(_Q<48||_Q>57){$k[$j++]="bwipp.ean13badCharacter";$k[$j++]="EAN-13 must contain only digits";$0.raiseerror()}});if($1.addon.length!=0&&$1.addon.length!=2&&$1.addon.length!=5){$k[$j++]="bwipp.ean13badAddOnLength";$k[$j++]="Add-on for EAN-13 must be 2 or 5 digits";$0.raiseerror()}$1.pad=$s(13);$1.checksum=0;for(var _V=0;_V<=11;_V+=1){$1.i=_V;$1.barchar=$f($g($1.barcode,$1.i)-48);if($1.i%2==0){$1.checksum=$f($1.barchar+$1.checksum)}else{$1.checksum=$f($1.barchar*3+$1.checksum)}}$1.checksum=$f(10-$1.checksum%10)%10;if($1.barcode.length==13){if($g($1.barcode,12)!=$f($1.checksum+48)){$k[$j++]="bwipp.ean13badCheckDigit";$k[$j++]="Incorrect EAN-13 check digit provided";$0.raiseerror()}}$P($1.pad,0,$1.barcode);$p($1.pad,12,$f($1.checksum+48));$1.barcode=$1.pad;$1.encs=$a(["3211","2221","2122","1411","1132","1231","1114","1312","1213","3112","111","11111","111"]);$1.barchars="0123456789";$1.mirrormaps=$a(["000000","001011","001101","001110","010011","011001","011100","010101","010110","011010"]);$1.sbs=$s(59);$1.txt=$a(13);$P($1.sbs,0,$g($1.encs,10));$1.mirrormap=$g($1.mirrormaps,$g($1.barcode,0)-48);$p($1.txt,0,$a([$G($1.barcode,0,1),$1.textxoffset,$1.textyoffset,$1.textfont,$1.textsize]));for(var _17=1;_17<=6;_17+=1){$1.i=_17;$x($1.barchars,$G($1.barcode,$1.i,1));$j--;$1.indx=$k[--$j].length;$j-=2;$1.enc=$g($1.encs,$1.indx);if($g($1.mirrormap,$1.i-1)==49){$1.enclen=$1.enc.length;$1.revenc=$s($1.enclen);for(var _1O=0,_1N=$1.enclen-1;_1O<=_1N;_1O+=1){$1.j=_1O;$1.char=$g($1.enc,$1.j);$p($1.revenc,$1.enclen-$1.j-1,$1.char)}$1.enc=$1.revenc}$P($1.sbs,($1.i-1)*4+3,$1.enc);$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),$f(($1.i-1)*7+14+$1.textxoffset),$1.textyoffset,$1.textfont,$1.textsize]))}$P($1.sbs,(7-1)*4+3,$g($1.encs,11));for(var _1o=7;_1o<=12;_1o+=1){$1.i=_1o;$x($1.barchars,$G($1.barcode,$1.i,1));$j--;$1.indx=$k[--$j].length;$j-=2;$1.enc=$g($1.encs,$1.indx);$P($1.sbs,($1.i-1)*4+8,$1.enc);$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),$f(($1.i-1)*7+18+$1.textxoffset),$1.textyoffset,$1.textfont,$1.textsize]))}$P($1.sbs,56,$g($1.encs,12));$k[$j++]=Infinity;var _2E=$1.sbs;for(var _2F=0,_2G=_2E.length;_2F<_2G;_2F++){$k[$j++]=$g(_2E,_2F)-48}$1.sbs=$a();if($1.includetext){$k[$j++]=Infinity;$k[$j++]=$1.height;$k[$j++]=$1.height;for(var _2M=0,_2N=12;_2M<_2N;_2M++){$k[$j++]=$f($1.height-.075)}$k[$j++]=$1.height;$k[$j++]=$1.height;for(var _2R=0,_2S=12;_2R<_2S;_2R++){$k[$j++]=$f($1.height-.075)}$k[$j++]=$1.height;$k[$j++]=$1.height;$1.bhs=$a();$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=0;for(var _2X=0,_2Y=12;_2X<_2Y;_2X++){$k[$j++]=.075}$k[$j++]=0;$k[$j++]=0;for(var _2Z=0,_2a=12;_2Z<_2a;_2Z++){$k[$j++]=.075}$k[$j++]=0;$k[$j++]=0;$1.bbs=$a()}else{$k[$j++]=Infinity;for(var _2c=0,_2d=30;_2c<_2d;_2c++){$k[$j++]=$1.height}$1.bhs=$a();$k[$j++]=Infinity;for(var _2g=0,_2h=30;_2g<_2h;_2g++){$k[$j++]=0}$1.bbs=$a();$1.txt=$a([])}$1.guardrightypos=0;if($ne($1.addon,"")){$k[$j++]=Infinity;$k[$j++]="dontdraw";$k[$j++]=true;$k[$j++]="includetext";$k[$j++]=true;$k[$j++]="height";$k[$j++]=$f($1.height-.15);$k[$j++]="textxoffset";if($1.addontextxoffset!="unset"){$k[$j++]=$1.addontextxoffset}else{$k[$j++]=$f(95+$1.addongap)}if($1.addontextyoffset!="unset"){$k[$j++]="textyoffset";$k[$j++]=$1.addontextyoffset}var _2s=$1.addontextsize!="unset"?$1.addontextsize:$1.textsize;var _2u=$ne($1.addontextfont,"unset")?$1.addontextfont:$1.textfont;$k[$j++]="textsize";$k[$j++]=_2s;$k[$j++]="textfont";$k[$j++]=_2u;$1.addopts=$d();if($1.addon.length==2){$k[$j++]=$1.addon;$k[$j++]=$1.addopts;$0.ean2()}if($1.addon.length==5){$k[$j++]=$1.addon;$k[$j++]=$1.addopts;$0.ean5()}$1.addcode=$k[--$j];$k[$j++]=Infinity;$q($1.sbs);$k[$j++]=$1.addongap;$q($g($1.addcode,"sbs"));$1.sbs=$a();$k[$j++]=Infinity;$q($1.bhs);$F($g($1.addcode,"bhs"),function(){var _3B=$k[--$j];$k[$j++]=$f(_3B-.075)});$1.bhs=$a();$k[$j++]=Infinity;$q($1.bbs);$F($g($1.addcode,"bbs"),function(){var _3G=$k[--$j];$k[$j++]=$f(_3G+.075)});$1.bbs=$a();$k[$j++]=Infinity;$q($1.txt);$q($g($1.addcode,"txt"));$1.txt=$a();$1.guardrightypos=$f($1.height*72-6)}var _3T=new Map([["ren",$0.renlinear],["sbs",$1.sbs],["bhs",$1.bhs],["bbs",$1.bbs],["txt",$1.txt],["opt",$1.options],["guardrightpos",10],["guardrightypos",$1.guardrightypos],["borderbottom",5]]);$k[$j++]=_3T;if(!$1.dontdraw){$0.renlinear()}};$0.ean8=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=12;$1.textxoffset=4;$1.textyoffset=-4;$1.height=1;$1.addongap=12;$1.addontextfont="unset";$1.addontextsize="unset";$1.addontextxoffset="unset";$1.addontextyoffset="unset";$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.addongap=+$1.addongap;if($ne($1.addontextfont,"unset")){$1.addontextfont=""+$1.addontextfont}if($ne($1.addontextsize,"unset")){$1.addontextsize=+$1.addontextsize}if($ne($1.addontextxoffset,"unset")){$1.addontextxoffset=+$1.addontextxoffset}if($ne($1.addontextyoffset,"unset")){$1.addontextyoffset=+$1.addontextyoffset}$x($1.barcode," ");if($k[--$j]){$1.barcode=$k[--$j];$j--;$1.addon=$k[--$j]}else{$j--;$1.addon=""}if($1.barcode.length!=7&&$1.barcode.length!=8){$k[$j++]="bwipp.ean8badLength";$k[$j++]="EAN-8 must be 7 or 8 digits";$0.raiseerror()}$F($1.barcode,function(){var _Q=$k[--$j];if(_Q<48||_Q>57){$k[$j++]="bwipp.ean8badCharacter";$k[$j++]="EAN-8 must contain only digits";$0.raiseerror()}});if($1.addon.length!=0&&$1.addon.length!=2&&$1.addon.length!=5){$k[$j++]="bwipp.ean8badAddOnLength";$k[$j++]="Add-on for EAN-8 must be 2 or 5 digits";$0.raiseerror()}$1.pad=$s(8);$1.checksum=0;for(var _V=0;_V<=6;_V+=1){$1.i=_V;$1.barchar=$f($g($1.barcode,$1.i)-48);if($1.i%2!=0){$1.checksum=$f($1.barchar+$1.checksum)}else{$1.checksum=$f($1.barchar*3+$1.checksum)}}$1.checksum=$f(10-$1.checksum%10)%10;if($1.barcode.length==8){if($g($1.barcode,7)!=$f($1.checksum+48)){$k[$j++]="bwipp.ean8badCheckDigit";$k[$j++]="Incorrect EAN-8 check digit provided";$0.raiseerror()}}$P($1.pad,0,$1.barcode);$p($1.pad,7,$f($1.checksum+48));$1.barcode=$1.pad;$1.encs=$a(["3211","2221","2122","1411","1132","1231","1114","1312","1213","3112","111","11111","111"]);$1.barchars="0123456789";$1.sbs=$s(43);$1.txt=$a(8);$P($1.sbs,0,$g($1.encs,10));for(var _u=0;_u<=3;_u+=1){$1.i=_u;$x($1.barchars,$G($1.barcode,$1.i,1));$j--;$1.indx=$k[--$j].length;$j-=2;$1.enc=$g($1.encs,$1.indx);$P($1.sbs,$1.i*4+3,$1.enc);$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),$f($1.i*7+$1.textxoffset),$1.textyoffset,$1.textfont,$1.textsize]))}$P($1.sbs,4*4+3,$g($1.encs,11));for(var _1K=4;_1K<=7;_1K+=1){$1.i=_1K;$x($1.barchars,$G($1.barcode,$1.i,1));$j--;$1.indx=$k[--$j].length;$j-=2;$1.enc=$g($1.encs,$1.indx);$P($1.sbs,$1.i*4+8,$1.enc);$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),$f($f($1.i*7+$1.textxoffset)+4),$1.textyoffset,$1.textfont,$1.textsize]))}$P($1.sbs,40,$g($1.encs,12));$k[$j++]=Infinity;var _1k=$1.sbs;for(var _1l=0,_1m=_1k.length;_1l<_1m;_1l++){$k[$j++]=$g(_1k,_1l)-48}$1.sbs=$a();if($1.includetext){$k[$j++]=Infinity;$k[$j++]=$1.height;$k[$j++]=$1.height;for(var _1s=0,_1t=8;_1s<_1t;_1s++){$k[$j++]=$f($1.height-.075)}$k[$j++]=$1.height;$k[$j++]=$1.height;for(var _1x=0,_1y=8;_1x<_1y;_1x++){$k[$j++]=$f($1.height-.075)}$k[$j++]=$1.height;$k[$j++]=$1.height;$1.bhs=$a();$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=0;for(var _23=0,_24=8;_23<_24;_23++){$k[$j++]=.075}$k[$j++]=0;$k[$j++]=0;for(var _25=0,_26=8;_25<_26;_25++){$k[$j++]=.075}$k[$j++]=0;$k[$j++]=0;$1.bbs=$a()}else{$k[$j++]=Infinity;for(var _28=0,_29=22;_28<_29;_28++){$k[$j++]=$1.height}$1.bhs=$a();$k[$j++]=Infinity;for(var _2C=0,_2D=22;_2C<_2D;_2C++){$k[$j++]=0}$1.bbs=$a();$1.txt=$a([])}$1.guardrightypos=0;if($ne($1.addon,"")){$k[$j++]=Infinity;$k[$j++]="dontdraw";$k[$j++]=true;$k[$j++]="includetext";$k[$j++]=true;$k[$j++]="height";$k[$j++]=$f($1.height-.15);$k[$j++]="textxoffset";if($1.addontextxoffset!="unset"){$k[$j++]=$1.addontextxoffset}else{$k[$j++]=$f(67+$1.addongap)}if($1.addontextyoffset!="unset"){$k[$j++]="textyoffset";$k[$j++]=$1.addontextyoffset}var _2O=$1.addontextsize!="unset"?$1.addontextsize:$1.textsize;var _2Q=$ne($1.addontextfont,"unset")?$1.addontextfont:$1.textfont;$k[$j++]="textsize";$k[$j++]=_2O;$k[$j++]="textfont";$k[$j++]=_2Q;$1.addopts=$d();if($1.addon.length==2){$k[$j++]=$1.addon;$k[$j++]=$1.addopts;$0.ean2()}if($1.addon.length==5){$k[$j++]=$1.addon;$k[$j++]=$1.addopts;$0.ean5()}$1.addcode=$k[--$j];$k[$j++]=Infinity;$q($1.sbs);$k[$j++]=$1.addongap;$q($g($1.addcode,"sbs"));$1.sbs=$a();$k[$j++]=Infinity;$q($1.bhs);$F($g($1.addcode,"bhs"),function(){var _2h=$k[--$j];$k[$j++]=$f(_2h-.075)});$1.bhs=$a();$k[$j++]=Infinity;$q($1.bbs);$F($g($1.addcode,"bbs"),function(){var _2m=$k[--$j];$k[$j++]=$f(_2m+.075)});$1.bbs=$a();$k[$j++]=Infinity;$q($1.txt);$q($g($1.addcode,"txt"));$1.txt=$a();$1.guardrightypos=$f($1.height*72-6)}var _2z=new Map([["ren",$0.renlinear],["sbs",$1.sbs],["bhs",$1.bhs],["bbs",$1.bbs],["txt",$1.txt],["opt",$1.options],["guardleftpos",10],["guardrightpos",10],["guardrightypos",$1.guardrightypos],["borderbottom",5]]);$k[$j++]=_2z;if(!$1.dontdraw){$0.renlinear()}};$0.upca=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=12;$1.textxoffset=-7;$1.textyoffset=-4;$1.height=1;$1.addongap=12;$1.addontextfont="unset";$1.addontextsize="unset";$1.addontextxoffset="unset";$1.addontextyoffset="unset";$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.addongap=+$1.addongap;if($ne($1.addontextfont,"unset")){$1.addontextfont=""+$1.addontextfont}if($ne($1.addontextsize,"unset")){$1.addontextsize=+$1.addontextsize}if($ne($1.addontextxoffset,"unset")){$1.addontextxoffset=+$1.addontextxoffset}if($ne($1.addontextyoffset,"unset")){$1.addontextyoffset=+$1.addontextyoffset}$x($1.barcode," ");if($k[--$j]){$1.barcode=$k[--$j];$j--;$1.addon=$k[--$j]}else{$j--;$1.addon=""}if($1.barcode.length==7||$1.barcode.length==8){$F($1.barcode,function(){var _Q=$k[--$j];if(_Q<48||_Q>57){$k[$j++]="bwipp.upcAupcEbadCharacter";$k[$j++]="UPC-E must contain only digits";$0.raiseerror()}});var _S=$g($1.barcode,0);if(_S!=48&&_S!=49){$k[$j++]="bwipp.upcAupcEbadNumberSystem";$k[$j++]="UPC-E must have number system 0 or 1";$0.raiseerror()}for(var _T=0,_U=1;_T<_U;_T++){var _W=$1.barcode.length==8?12:11;$1.upcacode=$s(_W);if($f($g($1.barcode,6)-48)<=2){$P($1.upcacode,0,$G($1.barcode,0,3));$P($1.upcacode,3,$G($1.barcode,6,1));$P($1.upcacode,4,"0000");$P($1.upcacode,8,$G($1.barcode,3,3));break}if($f($g($1.barcode,6)-48)==3){$P($1.upcacode,0,$G($1.barcode,0,4));$P($1.upcacode,4,"00000");$P($1.upcacode,9,$G($1.barcode,4,2));break}if($f($g($1.barcode,6)-48)==4){$P($1.upcacode,0,$G($1.barcode,0,5));$P($1.upcacode,5,"00000");$P($1.upcacode,10,$G($1.barcode,5,1));break}if($f($g($1.barcode,6)-48)>=5){$P($1.upcacode,0,$G($1.barcode,0,6));$P($1.upcacode,6,"0000");$P($1.upcacode,10,$G($1.barcode,6,1));break}}if($1.barcode.length==8){$P($1.upcacode,11,$G($1.barcode,7,1))}$1.barcode=$1.upcacode}if($1.barcode.length!=11&&$1.barcode.length!=12){$k[$j++]="bwipp.upcAbadLength";$k[$j++]="UPC-A must be 11 or 12 digits";$0.raiseerror()}var _1I=$1.barcode;for(var _1J=0,_1K=_1I.length;_1J<_1K;_1J++){var _1L=$g(_1I,_1J);if(_1L<48||_1L>57){$k[$j++]="bwipp.upcAbadCharacter";$k[$j++]="UPC-A must contain only digits";$0.raiseerror()}}if($1.addon.length!=0&&$1.addon.length!=2&&$1.addon.length!=5){$k[$j++]="bwipp.upcAbadAddOnLength";$k[$j++]="Add-on for UPC-A must be 2 or 5 digits";$0.raiseerror()}$1.pad=$s(12);$1.checksum=0;for(var _1Q=0;_1Q<=10;_1Q+=1){$1.i=_1Q;$1.barchar=$g($1.barcode,$1.i)-48;if($1.i%2!=0){$1.checksum=$1.checksum+$1.barchar}else{$1.checksum=$1.checksum+$1.barchar*3}}$1.checksum=(10-$1.checksum%10)%10;if($1.barcode.length==12){if($g($1.barcode,11)!=$1.checksum+48){$k[$j++]="bwipp.upcAbadCheckDigit";$k[$j++]="Incorrect UPC check digit provided";$0.raiseerror()}}$P($1.pad,0,$1.barcode);$p($1.pad,11,$1.checksum+48);$1.barcode=$1.pad;$1.encs=$a(["3211","2221","2122","1411","1132","1231","1114","1312","1213","3112","111","11111","111"]);$1.barchars="0123456789";$1.sbs=$s(59);$1.txt=$a(12);$P($1.sbs,0,$g($1.encs,10));for(var _1p=0;_1p<=5;_1p+=1){$1.i=_1p;$x($1.barchars,$G($1.barcode,$1.i,1));$j--;$1.indx=$k[--$j].length;$j-=2;$1.enc=$g($1.encs,$1.indx);$P($1.sbs,$1.i*4+3,$1.enc);if($1.i==0){$p($1.txt,0,$a([$G($1.barcode,0,1),$1.textxoffset,$1.textyoffset,$1.textfont,$f($1.textsize-2)]))}else{$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),$f($1.i*7+11+$1.textxoffset),$1.textyoffset,$1.textfont,$1.textsize]))}}$P($1.sbs,6*4+3,$g($1.encs,11));for(var _2O=6;_2O<=11;_2O+=1){$1.i=_2O;$x($1.barchars,$G($1.barcode,$1.i,1));$j--;$1.indx=$k[--$j].length;$j-=2;$1.enc=$g($1.encs,$1.indx);$P($1.sbs,$1.i*4+8,$1.enc);if($1.i==11){$p($1.txt,11,$a([$G($1.barcode,11,1),$f($1.textxoffset+104),$1.textyoffset,$1.textfont,$f($1.textsize-2)]))}else{$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),$f($f($1.i*7+$1.textxoffset)+15),$1.textyoffset,$1.textfont,$1.textsize]))}}$P($1.sbs,56,$g($1.encs,12));$k[$j++]=Infinity;var _2x=$1.sbs;for(var _2y=0,_2z=_2x.length;_2y<_2z;_2y++){$k[$j++]=$g(_2x,_2y)-48}$1.sbs=$a();if($1.includetext){$k[$j++]=Infinity;for(var _33=0,_34=4;_33<_34;_33++){$k[$j++]=$1.height}for(var _36=0,_37=10;_36<_37;_36++){$k[$j++]=$f($1.height-.075)}$k[$j++]=$1.height;$k[$j++]=$1.height;for(var _3B=0,_3C=10;_3B<_3C;_3B++){$k[$j++]=$f($1.height-.075)}for(var _3E=0,_3F=4;_3E<_3F;_3E++){$k[$j++]=$1.height}$1.bhs=$a();$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;for(var _3I=0,_3J=10;_3I<_3J;_3I++){$k[$j++]=.075}$k[$j++]=0;$k[$j++]=0;for(var _3K=0,_3L=10;_3K<_3L;_3K++){$k[$j++]=.075}$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$1.bbs=$a()}else{$k[$j++]=Infinity;for(var _3N=0,_3O=30;_3N<_3O;_3N++){$k[$j++]=$1.height}$1.bhs=$a();$k[$j++]=Infinity;for(var _3R=0,_3S=30;_3R<_3S;_3R++){$k[$j++]=0}$1.bbs=$a();$1.txt=$a([])}$1.guardrightypos=0;if($ne($1.addon,"")){$k[$j++]=Infinity;$k[$j++]="dontdraw";$k[$j++]=true;$k[$j++]="includetext";$k[$j++]=true;$k[$j++]="height";$k[$j++]=$f($1.height-.15);$k[$j++]="textxoffset";if($1.addontextxoffset!="unset"){$k[$j++]=$1.addontextxoffset}else{$k[$j++]=$f(95+$1.addongap)}if($1.addontextyoffset!="unset"){$k[$j++]="textyoffset";$k[$j++]=$1.addontextyoffset}var _3d=$1.addontextsize!="unset"?$1.addontextsize:$1.textsize;var _3f=$ne($1.addontextfont,"unset")?$1.addontextfont:$1.textfont;$k[$j++]="textsize";$k[$j++]=_3d;$k[$j++]="textfont";$k[$j++]=_3f;$1.addopts=$d();if($1.addon.length==2){$k[$j++]=$1.addon;$k[$j++]=$1.addopts;$0.ean2()}if($1.addon.length==5){$k[$j++]=$1.addon;$k[$j++]=$1.addopts;$0.ean5()}$1.addcode=$k[--$j];$k[$j++]=Infinity;$q($1.sbs);$k[$j++]=$1.addongap;$q($g($1.addcode,"sbs"));$1.sbs=$a();$k[$j++]=Infinity;$q($1.bhs);$F($g($1.addcode,"bhs"),function(){var _3w=$k[--$j];$k[$j++]=$f(_3w-.075)});$1.bhs=$a();$k[$j++]=Infinity;$q($1.bbs);$F($g($1.addcode,"bbs"),function(){var _41=$k[--$j];$k[$j++]=$f(_41+.075)});$1.bbs=$a();$k[$j++]=Infinity;$q($1.txt);$q($g($1.addcode,"txt"));$1.txt=$a();$1.guardrightypos=$f($1.height*72-6)}var _4E=new Map([["ren",$0.renlinear],["sbs",$1.sbs],["bhs",$1.bhs],["bbs",$1.bbs],["txt",$1.txt],["opt",$1.options],["guardrightpos",10],["guardrightypos",$1.guardrightypos],["borderbottom",5]]);$k[$j++]=_4E;if(!$1.dontdraw){$0.renlinear()}};$0.upce=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=12;$1.textxoffset=-7;$1.textyoffset=-4;$1.height=1;$1.addongap=12;$1.addontextfont="unset";$1.addontextsize="unset";$1.addontextxoffset="unset";$1.addontextyoffset="unset";$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.addongap=+$1.addongap;if($ne($1.addontextfont,"unset")){$1.addontextfont=""+$1.addontextfont}if($ne($1.addontextsize,"unset")){$1.addontextsize=+$1.addontextsize}if($ne($1.addontextxoffset,"unset")){$1.addontextxoffset=+$1.addontextxoffset}if($ne($1.addontextyoffset,"unset")){$1.addontextyoffset=+$1.addontextyoffset}$x($1.barcode," ");if($k[--$j]){$1.barcode=$k[--$j];$j--;$1.addon=$k[--$j]}else{$j--;$1.addon=""}if($1.barcode.length==11||$1.barcode.length==12){$F($1.barcode,function(){var _Q=$k[--$j];if(_Q<48||_Q>57){$k[$j++]="bwipp.upcEupcAbadCharacter";$k[$j++]="UPC-A must contain only digits";$0.raiseerror()}});for(var _R=0,_S=1;_R<_S;_R++){var _U=$1.barcode.length==12?8:7;$1.upcecode=$s(_U);if($f($g($1.barcode,3)-48)<=2&&$eq($G($1.barcode,4,4),"0000")){$P($1.upcecode,0,$G($1.barcode,0,3));$P($1.upcecode,3,$G($1.barcode,8,3));$P($1.upcecode,6,$G($1.barcode,3,1));break}if($eq($G($1.barcode,4,5),"00000")){$P($1.upcecode,0,$G($1.barcode,0,4));$P($1.upcecode,4,$G($1.barcode,9,2));$P($1.upcecode,6,"3");break}if($eq($G($1.barcode,5,5),"00000")){$P($1.upcecode,0,$G($1.barcode,0,5));$P($1.upcecode,5,$G($1.barcode,10,1));$P($1.upcecode,6,"4");break}if($f($g($1.barcode,10)-48)>=5&&$eq($G($1.barcode,6,4),"0000")){$P($1.upcecode,0,$G($1.barcode,0,6));$P($1.upcecode,6,$G($1.barcode,10,1));break}$k[$j++]="bwipp.upcEupcAnotCompressible";$k[$j++]="UPC-A cannot be converted to a UPC-E";$0.raiseerror()}if($1.barcode.length==12){$P($1.upcecode,7,$G($1.barcode,11,1))}$1.barcode=$1.upcecode}if($1.barcode.length!=7&&$1.barcode.length!=8){$k[$j++]="bwipp.upcEbadLength";$k[$j++]="UPC-E must be 7 or 8 digits";$0.raiseerror()}var _1I=$1.barcode;for(var _1J=0,_1K=_1I.length;_1J<_1K;_1J++){var _1L=$g(_1I,_1J);if(_1L<48||_1L>57){$k[$j++]="bwipp.upcEbadCharacter";$k[$j++]="UPC-E must contain only digits";$0.raiseerror()}}if($1.addon.length!=0&&$1.addon.length!=2&&$1.addon.length!=5){$k[$j++]="bwipp.upcEbadAddOnLength";$k[$j++]="Add-on for UPC-E must be 2 or 5 digits";$0.raiseerror()}var _1Q=$g($1.barcode,0);if(_1Q!=48&&_1Q!=49){$k[$j++]="bwipp.upcEbadNumberSystem";$k[$j++]="UPC-E must have number system 0 or 1";$0.raiseerror()}$1.encs=$a(["3211","2221","2122","1411","1132","1231","1114","1312","1213","3112","111","111111"]);$1.barchars="0123456789";$1.mirrormaps=$a(["000111","001011","001101","001110","010011","011001","011100","010101","010110","011010"]);for(var _1T=0,_1U=1;_1T<_1U;_1T++){$1.upcacode=$s(11);if($g($1.barcode,6)-48<=2){$P($1.upcacode,0,$G($1.barcode,0,3));$P($1.upcacode,3,$G($1.barcode,6,1));$P($1.upcacode,4,"0000");$P($1.upcacode,8,$G($1.barcode,3,3));break}if($g($1.barcode,6)-48==3){$P($1.upcacode,0,$G($1.barcode,0,4));$P($1.upcacode,4,"00000");$P($1.upcacode,9,$G($1.barcode,4,2));break}if($g($1.barcode,6)-48==4){$P($1.upcacode,0,$G($1.barcode,0,5));$P($1.upcacode,5,"00000");$P($1.upcacode,10,$G($1.barcode,5,1));break}if($g($1.barcode,6)-48>=5){$P($1.upcacode,0,$G($1.barcode,0,6));$P($1.upcacode,6,"0000");$P($1.upcacode,10,$G($1.barcode,6,1));break}}$1.checksum=0;for(var _29=0;_29<=10;_29+=1){$1.i=_29;$1.barchar=$g($1.upcacode,$1.i)-48;if($1.i%2!=0){$1.checksum=$1.checksum+$1.barchar}else{$1.checksum=$1.checksum+$1.barchar*3}}$1.checksum=(10-$1.checksum%10)%10;if($1.barcode.length==8){if($g($1.barcode,7)!=$1.checksum+48){$k[$j++]="bwipp.upcEbadCheckDigit";$k[$j++]="Incorrect UPC check digit provided";$0.raiseerror()}}$1.pad=$s(8);$P($1.pad,0,$1.barcode);$p($1.pad,7,$1.checksum+48);$1.barcode=$1.pad;$1.txt=$a(8);$p($1.txt,0,$a([$G($1.barcode,0,1),$1.textxoffset,$1.textyoffset,$1.textfont,$f($1.textsize-2)]));$1.mirrormap=$g($1.mirrormaps,$1.checksum);if($g($1.barcode,0)==48){$1.invt=$s($1.mirrormap.length);for(var _2l=0,_2k=$1.mirrormap.length-1;_2l<=_2k;_2l+=1){$1.i=_2l;if($g($1.mirrormap,$1.i)==48){$p($1.invt,$1.i,49)}else{$p($1.invt,$1.i,48)}}$1.mirrormap=$1.invt}$1.sbs=$s(33);$P($1.sbs,0,$g($1.encs,10));for(var _2y=1;_2y<=6;_2y+=1){$1.i=_2y;$x($1.barchars,$G($1.barcode,$1.i,1));$j--;$1.indx=$k[--$j].length;$j-=2;$1.enc=$g($1.encs,$1.indx);if($g($1.mirrormap,$1.i-1)==49){$1.enclen=$1.enc.length;$1.revenc=$s($1.enclen);for(var _3F=0,_3E=$1.enclen-1;_3F<=_3E;_3F+=1){$1.j=_3F;$1.char=$g($1.enc,$1.j);$p($1.revenc,$1.enclen-$1.j-1,$1.char)}$1.enc=$1.revenc}$P($1.sbs,($1.i-1)*4+3,$1.enc);$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),$f(($1.i-1)*7+11+$1.textxoffset),$1.textyoffset,$1.textfont,$1.textsize]))}$p($1.txt,7,$a([$G($1.barcode,7,1),$f(6*7+18+$1.textxoffset),$1.textyoffset,$1.textfont,$f($1.textsize-2)]));$P($1.sbs,27,$g($1.encs,11));$k[$j++]=Infinity;var _3n=$1.sbs;for(var _3o=0,_3p=_3n.length;_3o<_3p;_3o++){$k[$j++]=$g(_3n,_3o)-48}$1.sbs=$a();if($1.includetext){$k[$j++]=Infinity;$k[$j++]=$1.height;$k[$j++]=$1.height;for(var _3v=0,_3w=12;_3v<_3w;_3v++){$k[$j++]=$f($1.height-.075)}$k[$j++]=$1.height;$k[$j++]=$1.height;$k[$j++]=$1.height;$1.bhs=$a();$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=0;for(var _42=0,_43=12;_42<_43;_42++){$k[$j++]=.075}$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$1.bbs=$a()}else{$k[$j++]=Infinity;for(var _45=0,_46=17;_45<_46;_45++){$k[$j++]=$1.height}$1.bhs=$a();$k[$j++]=Infinity;for(var _49=0,_4A=17;_49<_4A;_49++){$k[$j++]=0}$1.bbs=$a();$1.txt=$a([])}$1.guardrightypos=0;if($ne($1.addon,"")){$k[$j++]=Infinity;$k[$j++]="dontdraw";$k[$j++]=true;$k[$j++]="includetext";$k[$j++]=true;$k[$j++]="height";$k[$j++]=$f($1.height-.15);$k[$j++]="textxoffset";if($1.addontextxoffset!="unset"){$k[$j++]=$1.addontextxoffset}else{$k[$j++]=$f(51+$1.addongap)}if($1.addontextyoffset!="unset"){$k[$j++]="textyoffset";$k[$j++]=$1.addontextyoffset}var _4L=$1.addontextsize!="unset"?$1.addontextsize:$1.textsize;var _4N=$ne($1.addontextfont,"unset")?$1.addontextfont:$1.textfont;$k[$j++]="textsize";$k[$j++]=_4L;$k[$j++]="textfont";$k[$j++]=_4N;$1.addopts=$d();if($1.addon.length==2){$k[$j++]=$1.addon;$k[$j++]=$1.addopts;$0.ean2()}if($1.addon.length==5){$k[$j++]=$1.addon;$k[$j++]=$1.addopts;$0.ean5()}$1.addcode=$k[--$j];$k[$j++]=Infinity;$q($1.sbs);$k[$j++]=$1.addongap;$q($g($1.addcode,"sbs"));$1.sbs=$a();$k[$j++]=Infinity;$q($1.bhs);$F($g($1.addcode,"bhs"),function(){var _4e=$k[--$j];$k[$j++]=$f(_4e-.075)});$1.bhs=$a();$k[$j++]=Infinity;$q($1.bbs);$F($g($1.addcode,"bbs"),function(){var _4j=$k[--$j];$k[$j++]=$f(_4j+.075)});$1.bbs=$a();$k[$j++]=Infinity;$q($1.txt);$q($g($1.addcode,"txt"));$1.txt=$a();$1.guardrightypos=$f($1.height*72-6)}var _4w=new Map([["ren",$0.renlinear],["sbs",$1.sbs],["bhs",$1.bhs],["bbs",$1.bbs],["txt",$1.txt],["opt",$1.options],["guardrightpos",10],["guardrightypos",$1.guardrightypos],["borderbottom",5]]);$k[$j++]=_4w;if(!$1.dontdraw){$0.renlinear()}};$0.isbn=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.isbntextfont="OCR-A";$1.isbntextsize=8;$1.isbntextxoffset="unset";$1.isbntextyoffset="unset";$1.height=1;$1.addongap=12;$1.legacy=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.isbntextfont=""+$1.isbntextfont;$1.isbntextsize=+$1.isbntextsize;if($ne($1.isbntextxoffset,"unset")){$1.isbntextxoffset=+$1.isbntextxoffset}if($ne($1.isbntextyoffset,"unset")){$1.isbntextyoffset=+$1.isbntextyoffset}$1.height=+$1.height;$1.addongap=+$1.addongap;$x($1.barcode," ");if($k[--$j]){$1.barcode=$k[--$j];$j--;$1.addon=$k[--$j]}else{$j--;$1.addon=""}if($1.barcode.length!=15&&$1.barcode.length!=17&&($1.barcode.length!=11&&$1.barcode.length!=13)){$k[$j++]="bwipp.isbnBadLength";$k[$j++]="ISBN-13 must be 15 or 17 characters including dashes. ISBN-10 must be 11 or 13 characters including dashes";$0.raiseerror()}if($1.addon.length!=0&&$1.addon.length!=2&&$1.addon.length!=5){$k[$j++]="bwipp.isbnBadAddOnLength";$k[$j++]="Add-on for ISBN must be 2 or 5 digits";$0.raiseerror()}if($1.barcode.length>=15){var _Q=$G($1.barcode,0,4);if($ne(_Q,"978-")&&$ne(_Q,"979-")){$k[$j++]="bwipp.isbn13badPrefix";$k[$j++]="ISBN-13 prefix must be 978- or 979-";$0.raiseerror()}$1.wasdash=false;$1.numdash=0;$1.numdigit=0;var _S=$G($1.barcode,5,9);for(var _T=0,_U=_S.length;_T<_U;_T++){var _V=$g(_S,_T);$k[$j++]=_V;if(_V==45){if($1.wasdash){$k[$j++]="bwipp.isbn13adjacentDashes";$k[$j++]="ISBN-13 does not permit adjacent dashes";$0.raiseerror()}$1.wasdash=true;$1.numdash=$1.numdash+1}var _Y=$k[--$j];if(_Y>=48&&_Y<=57){$1.wasdash=false;$1.numdigit=$1.numdigit+1}}if($1.numdash!=2||$1.numdigit!=7){$k[$j++]="bwipp.isbn13numDashesDigits";$k[$j++]="Incorrect number of dashes and digits for ISBN-13";$0.raiseerror()}var _d=$g($1.barcode,14);if(_d<48||_d>57){$k[$j++]="bwipp.isbn13character15";$k[$j++]="ISBN-13 character 15 must be a digit";$0.raiseerror()}if($1.barcode.length==17){if($ne($G($1.barcode,15,1),"-")){$k[$j++]="bwipp.isbn13character16";$k[$j++]="ISBN-13 penultimate character must be a dash";$0.raiseerror()}var _i=$g($1.barcode,16);if(_i<48||_i>57){$k[$j++]="bwipp.isbn13character17";$k[$j++]="ISBN-13 final character must be a digit";$0.raiseerror()}}}else{var _k=$g($1.barcode,0);if(_k<48||_k>57){$k[$j++]="bwipp.isbn10FirstDigit";$k[$j++]="ISBN-10 first character must be a digit";$0.raiseerror()}$1.wasdash=false;$1.numdash=0;$1.numdigit=0;var _m=$G($1.barcode,1,9);for(var _n=0,_o=_m.length;_n<_o;_n++){var _p=$g(_m,_n);$k[$j++]=_p;if(_p==45){if($1.wasdash){$k[$j++]="bwipp.isbn10adjacentDashes";$k[$j++]="ISBN-10 does not permit adjacent dashes";$0.raiseerror()}$1.wasdash=true;$1.numdash=$1.numdash+1}var _s=$k[--$j];if(_s>=48&&_s<=57){$1.wasdash=false;$1.numdigit=$1.numdigit+1}}if($1.numdash!=2||$1.numdigit!=7){$k[$j++]="bwipp.isbn10numDashesDigits";$k[$j++]="Incorrect number of dashes and digits for ISBN-10";$0.raiseerror()}var _x=$g($1.barcode,10);if(_x<48||_x>57){$k[$j++]="bwipp.isbn10character11";$k[$j++]="ISBN-10 character 11 must be a digit";$0.raiseerror()}if($1.barcode.length==13){if($ne($G($1.barcode,11,1),"-")){$k[$j++]="bwipp.isbn10character12";$k[$j++]="ISBN-10 penultimate character must be a dash";$0.raiseerror()}var _12=$g($1.barcode,12);if((_12<48||_12>57)&&_12!=88){$k[$j++]="bwipp.isbn10character13";$k[$j++]="ISBN-10 final character must be a digit or X";$0.raiseerror()}}}$1.isbntxt=$1.barcode;if($1.isbntxt.length<=13){$1.isbn=$s(10);$1.checksum=0;$1.i=0;$1.n=0;for(;;){$1.isbnchar=$f($g($1.isbntxt,$1.i)-48);if($1.isbnchar!=-3){$p($1.isbn,$1.n,$f($1.isbnchar+48));if($1.n<9){$1.checksum=$f($1.checksum+(10-$1.n)*$1.isbnchar)}$1.n=$1.n+1}$1.i=$1.i+1;if($1.i==$1.isbntxt.length){break}}var _1M=$f(11-$1.checksum%11)%11;$k[$j++]="checksum";$k[$j++]=_1M;if(_1M==10){$j--;$k[$j++]=40}var _1N=$k[--$j];$1[$k[--$j]]=$f(_1N+48);$1.isbn=$G($1.isbn,0,9);if($1.isbntxt.length==13){if($g($1.isbntxt,12)!=$1.checksum){$k[$j++]="bwipp.isbn10badCheckDigit";$k[$j++]="Incorrect ISBN-10 check digit provided";$0.raiseerror()}}}if(!$1.legacy||$1.isbntxt.length>=15){if($1.isbntxt.length<=13){$1.pad=$s(15);$P($1.pad,0,"978-");$P($1.pad,4,$G($1.isbntxt,0,11));$1.isbntxt=$1.pad}$1.isbn=$s(13);$1.checksum=0;$1.i=0;$1.n=0;for(;;){$1.isbnchar=$g($1.isbntxt,$1.i)-48;if($1.isbnchar!=-3){$p($1.isbn,$1.n,$1.isbnchar+48);if($1.n<12){$k[$j++]="checksum";$k[$j++]=$1.isbnchar;if($1.n%2!=0){var _1p=$k[--$j];$k[$j++]=_1p*3}var _1r=$k[--$j];$1[$k[--$j]]=$f(_1r+$1.checksum)}$1.n=$1.n+1}$1.i=$1.i+1;if($1.i==$1.isbntxt.length){break}}$1.checksum=(10-$1.checksum%10)%10+48;$1.isbn=$G($1.isbn,0,12);if($1.isbntxt.length==17){if($g($1.isbntxt,16)!=$1.checksum){$k[$j++]="bwipp.isbn13badCheckDigit";$k[$j++]="Incorrect ISBN-13 check digit provided";$0.raiseerror()}}}var _25=$1.isbn.length==12?22:18;$1.pad=$s(_25);$P($1.pad,0,"ISBN ");$P($1.pad,5,$1.isbntxt);$p($1.pad,$1.pad.length-2,45);$p($1.pad,$1.pad.length-1,$1.checksum);$1.isbntxt=$1.pad;$1.barcode=$s(12);if($1.isbn.length==9){$P($1.barcode,0,"978");$P($1.barcode,3,$1.isbn)}else{$P($1.barcode,0,$1.isbn)}if($ne($1.addon,"")){var _2P=$s(12+$1.addon.length+1);$P(_2P,0,$1.barcode);$P(_2P,12," ");$P(_2P,13,$1.addon);$1.barcode=_2P}$p($1.options,"dontdraw",true);$p($1.options,"addongap",$1.addongap);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.ean13();var _2X=$k[--$j];$1[$k[--$j]]=_2X;if($1.includetext){if($1.isbntextxoffset=="unset"){$k[$j++]="isbntextxoffset";if($1.isbn.length==9){$k[$j++]=-1}else{$k[$j++]=-12}var _2c=$k[--$j];$1[$k[--$j]]=_2c}if($1.isbntextyoffset=="unset"){$1.isbntextyoffset=$f($1.height*72+3)}var _2h=$g($1.args,"txt")!==undefined;if(_2h){$1.txt=$g($1.args,"txt");$1.newtxt=$a($1.txt.length+1);$P($1.newtxt,0,$1.txt);$p($1.newtxt,$1.newtxt.length-1,$a([$1.isbntxt,$1.isbntextxoffset,$1.isbntextyoffset,$1.isbntextfont,$1.isbntextsize]));$p($1.args,"txt",$1.newtxt)}else{$p($1.args,"txt",$a([$a([$1.isbntxt,$1.isbntextxoffset,$1.isbntextyoffset,$1.isbntextfont,$1.isbntextsize])]))}}$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.ismn=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.ismntextfont="OCR-A";$1.ismntextsize=8;$1.ismntextxoffset="unset";$1.ismntextyoffset="unset";$1.height=1;$1.addongap=12;$1.legacy=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.ismntextfont=""+$1.ismntextfont;$1.ismntextsize=+$1.ismntextsize;if($ne($1.ismntextxoffset,"unset")){$1.ismntextxoffset=+$1.ismntextxoffset}if($ne($1.ismntextyoffset,"unset")){$1.ismntextyoffset=+$1.ismntextyoffset}$1.height=+$1.height;$1.addongap=+$1.addongap;$x($1.barcode," ");if($k[--$j]){$1.barcode=$k[--$j];$j--;$1.addon=$k[--$j]}else{$j--;$1.addon=""}if($1.barcode.length!=15&&$1.barcode.length!=17&&($1.barcode.length!=11&&$1.barcode.length!=13)){$k[$j++]="bwipp.ismnBadLength";$k[$j++]="ISMN-13 must be 15 or 17 characters including dashes. ISMN-10 must be 11 or 13 characters including dashes";$0.raiseerror()}if($1.addon.length!=0&&$1.addon.length!=2&&$1.addon.length!=5){$k[$j++]="bwipp.ismnBadAddOnLength";$k[$j++]="Add-on for ISMN must be 2 or 5 digits";$0.raiseerror()}if($1.barcode.length>=15){if($ne($G($1.barcode,0,4),"979-")){$k[$j++]="bwipp.ismn13badPrefix";$k[$j++]="ISMN-13 prefix must be 979-";$0.raiseerror()}$1.wasdash=false;$1.numdash=0;$1.numdigit=0;var _S=$G($1.barcode,5,9);for(var _T=0,_U=_S.length;_T<_U;_T++){var _V=$g(_S,_T);$k[$j++]=_V;if(_V==45){if($1.wasdash){$k[$j++]="bwipp.ismn13adjacentDashes";$k[$j++]="ISMN-13 does not permit adjacent dashes";$0.raiseerror()}$1.wasdash=true;$1.numdash=$1.numdash+1}var _Y=$k[--$j];if(_Y>=48&&_Y<=57){$1.wasdash=false;$1.numdigit=$1.numdigit+1}}if($1.numdash!=2||$1.numdigit!=7){$k[$j++]="bwipp.ismn13numDashesDigits";$k[$j++]="Incorrect number of dashes and digits for ISMN-13";$0.raiseerror()}var _d=$g($1.barcode,14);if(_d<48||_d>57){$k[$j++]="bwipp.ismn13character15";$k[$j++]="ISMN-13 character 15 must be a digit";$0.raiseerror()}if($1.barcode.length==17){if($ne($G($1.barcode,15,1),"-")){$k[$j++]="bwipp.ismn13character16";$k[$j++]="ISMN-13 penultimate character must be a dash";$0.raiseerror()}var _i=$g($1.barcode,16);if(_i<48||_i>57){$k[$j++]="bwipp.ismn13character17";$k[$j++]="ISMN-13 final character must be a digit";$0.raiseerror()}}}else{if($ne($G($1.barcode,0,2),"M-")){$k[$j++]="bwipp.ismn10badPrefix";$k[$j++]="ISMN-10 prefix must be M-";$0.raiseerror()}var _m=$g($1.barcode,2);if(_m<48||_m>57){$k[$j++]="bwipp.ismn10character3";$k[$j++]="ISMN-10 character 3 must be a digit";$0.raiseerror()}$1.wasdash=false;$1.numdash=0;$1.numdigit=0;var _o=$G($1.barcode,3,7);for(var _p=0,_q=_o.length;_p<_q;_p++){var _r=$g(_o,_p);$k[$j++]=_r;if(_r==45){if($1.wasdash){$k[$j++]="bwipp.ismn10adjacentDashes";$k[$j++]="ISMN-10 does not permit adjacent dashes";$0.raiseerror()}$1.wasdash=true;$1.numdash=$1.numdash+1}var _u=$k[--$j];if(_u>=48&&_u<=57){$1.wasdash=false;$1.numdigit=$1.numdigit+1}}if($1.numdash!=1||$1.numdigit!=6){$k[$j++]="bwipp.ismn10numDashesDigits";$k[$j++]="Incorrect number of dashes and digits for ISMN-10";$0.raiseerror()}var _z=$g($1.barcode,10);if(_z<48||_z>57){$k[$j++]="bwipp.ismn10character11";$k[$j++]="ISMN-10 character 11 must be a digit";$0.raiseerror()}if($1.barcode.length==13){if($ne($G($1.barcode,11,1),"-")){$k[$j++]="bwipp.ismn10character12";$k[$j++]="ISMN-10 penultimate character must be a dash";$0.raiseerror()}var _14=$g($1.barcode,12);if((_14<48||_14>57)&&_14!=88){$k[$j++]="bwipp.ismn10character13";$k[$j++]="ISMN-10 final character must be a digit or X";$0.raiseerror()}}}$1.ismntxt=$1.barcode;$1.legacytxt="";if($1.ismntxt.length<=13){$1.legacytxt=$1.ismntxt;$1.pad=$s($1.ismntxt.length+4);$P($1.pad,0,"979-0-");$P($1.pad,6,$G($1.ismntxt,2,$1.ismntxt.length-2));$1.ismntxt=$1.pad}$1.ismn=$s(13);$1.checksum=0;$1.i=0;$1.n=0;for(;;){$1.ismnchar=$g($1.ismntxt,$1.i)-48;if($1.ismnchar!=-3){$p($1.ismn,$1.n,$1.ismnchar+48);if($1.n<12){if($1.n%2==0){$1.checksum=$1.ismnchar+$1.checksum}else{$1.checksum=$1.ismnchar*3+$1.checksum}}$1.n=$1.n+1}$1.i=$1.i+1;if($1.i==$1.ismntxt.length){break}}$1.checksum=(10-$1.checksum%10)%10+48;if($1.barcode.length==13||$1.barcode.length==17){var _1b=$1.barcode;if($g(_1b,_1b.length-1)!=$1.checksum){$k[$j++]="bwipp.ismnBadCheckDigit";$k[$j++]="Incorrect ISMN check digit provided";$0.raiseerror()}}if($1.legacy&&$ne($1.legacytxt,"")){$1.ismntxt=$1.legacytxt;$1.pad=$s(18)}else{$1.pad=$s(22)}$P($1.pad,0,"ISMN ");$P($1.pad,5,$1.ismntxt);$p($1.pad,$1.pad.length-2,45);$p($1.pad,$1.pad.length-1,$1.checksum);$1.ismntxt=$1.pad;$1.barcode=$G($1.ismn,0,12);if($ne($1.addon,"")){var _1w=$s(12+$1.addon.length+1);$P(_1w,0,$1.barcode);$P(_1w,12," ");$P(_1w,13,$1.addon);$1.barcode=_1w}$p($1.options,"dontdraw",true);$p($1.options,"addongap",$1.addongap);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.ean13();var _24=$k[--$j];$1[$k[--$j]]=_24;if($1.includetext){if($1.ismntextxoffset=="unset"){$k[$j++]="ismntextxoffset";if($1.ismntxt.length==18){$k[$j++]=-1}else{$k[$j++]=-12}var _29=$k[--$j];$1[$k[--$j]]=_29}if($1.ismntextyoffset=="unset"){$1.ismntextyoffset=$f($1.height*72+3)}var _2E=$g($1.args,"txt")!==undefined;if(_2E){$1.txt=$g($1.args,"txt");$1.newtxt=$a($1.txt.length+1);$P($1.newtxt,0,$1.txt);$p($1.newtxt,$1.newtxt.length-1,$a([$1.ismntxt,$1.ismntextxoffset,$1.ismntextyoffset,$1.ismntextfont,$1.ismntextsize]));$p($1.args,"txt",$1.newtxt)}else{$p($1.args,"txt",$a([$a([$1.ismntxt,$1.ismntextxoffset,$1.ismntextyoffset,$1.ismntextfont,$1.ismntextsize])]))}}$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.issn=function(){var $1={};$1.options=$k[--$j];$1.issntxt=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.issntextfont="OCR-A";$1.issntextsize=8;$1.issntextxoffset="unset";$1.issntextyoffset="unset";$1.height=1;$1.addongap=12;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.issntextfont=""+$1.issntextfont;$1.issntextsize=+$1.issntextsize;if($ne($1.issntextxoffset,"unset")){$1.issntextxoffset=+$1.issntextxoffset}if($ne($1.issntextyoffset,"unset")){$1.issntextyoffset=+$1.issntextyoffset}$1.height=+$1.height;$1.addongap=+$1.addongap;$x($1.issntxt," ");if($k[--$j]){$1.issntxt=$k[--$j];$j--;$1.seqvar=$k[--$j]}else{$j--;$1.seqvar="00"}$x($1.seqvar," ");if($k[--$j]){$1.seqvar=$k[--$j];$j--;$1.addon=$k[--$j]}else{$j--;$1.addon=""}if($1.issntxt.length!=8&&$1.issntxt.length!=9){$k[$j++]="bwipp.issnBadLength";$k[$j++]="ISSN must be 8 or 9 characters including dash, in the format XXXX-XXXX";$0.raiseerror()}var _O=$G($1.issntxt,0,4);for(var _P=0,_Q=_O.length;_P<_Q;_P++){var _R=$g(_O,_P);if(_R<48||_R>57){$k[$j++]="bwipp.issnFirstThroughFourthNotNumeric";$k[$j++]="ISSN first four characters must be numeral characters";$0.raiseerror()}}if($ne($G($1.issntxt,4,1),"-")){$k[$j++]="bwipp.issnNeedsDash";$k[$j++]="ISSN fifth character must be a dash";$0.raiseerror()}var _V=$G($1.issntxt,5,3);for(var _W=0,_X=_V.length;_W<_X;_W++){var _Y=$g(_V,_W);if(_Y<48||_Y>57){$k[$j++]="bwipp.issnSixthThroughEighthNotNumeric";$k[$j++]="ISSN sixth through eighth characters must be numerals";$0.raiseerror()}}if($1.issntxt.length==9){var _b=$g($1.issntxt,8);if((_b<48||_b>57)&&_b!=88){$k[$j++]="bwipp.issnNinthCharacterBadFormat";$k[$j++]="ISSN ninth character must be a number or the character X";$0.raiseerror()}}if($1.seqvar.length!=2){$k[$j++]="bwipp.issnBadSequenceVariantLength";$k[$j++]="Sequence variant for ISSN must be 2 digits";$0.raiseerror()}$F($1.seqvar,function(){var _e=$k[--$j];if(_e<48||_e>57){$k[$j++]="bwipp.issnSequenceVariantBadCharacter";$k[$j++]="Sequence variant for ISSN must contain only digits";$0.raiseerror()}});if($1.addon.length!=0&&$1.addon.length!=2&&$1.addon.length!=5){$k[$j++]="bwipp.issnBadAddOnLength";$k[$j++]="Add-on for ISSN must be 2 or 5 digits";$0.raiseerror()}$1.issn=$s(8);$1.checksum=0;$1.i=0;$1.n=0;for(;;){$1.issnchar=$f($g($1.issntxt,$1.i)-48);if($1.issnchar!=-3){$p($1.issn,$1.n,$f($1.issnchar+48));if($1.n<7){$1.checksum=$f($1.checksum+$1.issnchar*(8-$1.n))}$1.n=$1.n+1}$1.i=$1.i+1;if($1.i==$1.issntxt.length){break}}$1.checksum=$f(11-$1.checksum%11)%11;var _10=$f($1.checksum+48);$k[$j++]="checksum";$k[$j++]=_10;if(_10==58){$j--;$k[$j++]=88}var _11=$k[--$j];$1[$k[--$j]]=_11;if($1.issntxt.length==9){if($g($1.issntxt,8)!=$1.checksum){$k[$j++]="bwipp.issnBadCheckDigit";$k[$j++]="Incorrect ISSN check digit provided";$0.raiseerror()}}$1.pad=$s(14);$P($1.pad,0,"ISSN ");$P($1.pad,5,$1.issntxt);$p($1.pad,13,$1.checksum);$1.issntxt=$1.pad;$1.barcode=$G($1.issn,0,7);$1.barcode=$s(12);$P($1.barcode,0,"977");$P($1.barcode,3,$1.issn);$P($1.barcode,10,$1.seqvar);if($ne($1.addon,"")){var _1O=$s(12+$1.addon.length+1);$P(_1O,0,$1.barcode);$P(_1O,12," ");$P(_1O,13,$1.addon);$1.barcode=_1O}$p($1.options,"dontdraw",true);$p($1.options,"addongap",$1.addongap);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.ean13();var _1W=$k[--$j];$1[$k[--$j]]=_1W;if($1.includetext){if($1.issntextxoffset=="unset"){$1.issntextxoffset=10}if($1.issntextyoffset=="unset"){$1.issntextyoffset=$f($1.height*72+3)}var _1d=$g($1.args,"txt")!==undefined;if(_1d){$1.txt=$g($1.args,"txt");$1.newtxt=$a($1.txt.length+1);$P($1.newtxt,0,$1.txt);$p($1.newtxt,$1.newtxt.length-1,$a([$1.issntxt,$1.issntextxoffset,$1.issntextyoffset,$1.issntextfont,$1.issntextsize]));$p($1.args,"txt",$1.newtxt)}else{$p($1.args,"txt",$a([$a([$1.issntxt,$1.issntextxoffset,$1.issntextyoffset,$1.issntextfont,$1.issntextsize])]))}}$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.code128=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textxoffset=0;$1.textyoffset=-8;$1.height=1;$1.encoding="auto";$1.raw=false;$1.parse=false;$1.parsefnc=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.sta=-1;$1.stb=-2;$1.stc=-3;$1.swa=-4;$1.swb=-5;$1.swc=-6;$1.fn1=-7;$1.fn2=-8;$1.fn3=-9;$1.fn4=-10;$1.sft=-11;$1.stp=-12;$1.lka=-13;$1.lkc=-14;var _I=new Map([["parse",$1.parse],["parsefnc",$1.parsefnc],["FNC1",$1.fn1],["FNC1",$1.fn1],["FNC2",$1.fn2],["FNC3",$1.fn3],["LNKA",$1.lka],["LNKC",$1.lkc]]);$1.fncvals=_I;$k[$j++]="msg";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _L=$k[--$j];$1[$k[--$j]]=_L;$1.msglen=$1.msg.length;$1.charmaps=$a([$a([32,32,"00"]),$a(["!","!","01"]),$a(['"','"',"02"]),$a(["#","#","03"]),$a(["$","$","04"]),$a(["%","%","05"]),$a(["&","&","06"]),$a(["'","'","07"]),$a([40,40,"08"]),$a([41,41,"09"]),$a(["*","*","10"]),$a(["+","+","11"]),$a([",",",","12"]),$a(["-","-","13"]),$a([".",".","14"]),$a(["/","/","15"]),$a(["0","0","16"]),$a(["1","1","17"]),$a(["2","2","18"]),$a(["3","3","19"]),$a(["4","4","20"]),$a(["5","5","21"]),$a(["6","6","22"]),$a(["7","7","23"]),$a(["8","8","24"]),$a(["9","9","25"]),$a([":",":","26"]),$a([";",";","27"]),$a(["<","<","28"]),$a(["=","=","29"]),$a([">",">","30"]),$a(["?","?","31"]),$a(["@","@","32"]),$a(["A","A","33"]),$a(["B","B","34"]),$a(["C","C","35"]),$a(["D","D","36"]),$a(["E","E","37"]),$a(["F","F","38"]),$a(["G","G","39"]),$a(["H","H","40"]),$a(["I","I","41"]),$a(["J","J","42"]),$a(["K","K","43"]),$a(["L","L","44"]),$a(["M","M","45"]),$a(["N","N","46"]),$a(["O","O","47"]),$a(["P","P","48"]),$a(["Q","Q","49"]),$a(["R","R","50"]),$a(["S","S","51"]),$a(["T","T","52"]),$a(["U","U","53"]),$a(["V","V","54"]),$a(["W","W","55"]),$a(["X","X","56"]),$a(["Y","Y","57"]),$a(["Z","Z","58"]),$a(["[","[","59"]),$a([92,92,"60"]),$a(["]","]","61"]),$a(["^","^","62"]),$a(["_","_","63"]),$a([0,"`","64"]),$a([1,"a","65"]),$a([2,"b","66"]),$a([3,"c","67"]),$a([4,"d","68"]),$a([5,"e","69"]),$a([6,"f","70"]),$a([7,"g","71"]),$a([8,"h","72"]),$a([9,"i","73"]),$a([10,"j","74"]),$a([11,"k","75"]),$a([12,"l","76"]),$a([13,"m","77"]),$a([14,"n","78"]),$a([15,"o","79"]),$a([16,"p","80"]),$a([17,"q","81"]),$a([18,"r","82"]),$a([19,"s","83"]),$a([20,"t","84"]),$a([21,"u","85"]),$a([22,"v","86"]),$a([23,"w","87"]),$a([24,"x","88"]),$a([25,"y","89"]),$a([26,"z","90"]),$a([27,"{","91"]),$a([28,"|","92"]),$a([29,"}","93"]),$a([30,"~","94"]),$a([31,127,"95"]),$a([$1.fn3,$1.fn3,"96"]),$a([$1.fn2,$1.fn2,"97"]),$a([$1.sft,$1.sft,"98"]),$a([$1.swc,$1.swc,"99"]),$a([$1.swb,$1.fn4,$1.swb]),$a([$1.fn4,$1.swa,$1.swa]),$a([$1.fn1,$1.fn1,$1.fn1]),$a([$1.sta,$1.sta,$1.sta]),$a([$1.stb,$1.stb,$1.stb]),$a([$1.stc,$1.stc,$1.stc]),$a([$1.stp,$1.stp,$1.stp])]);$1.charvals=$a([new Map,new Map,new Map]);for(var _2e=0,_2d=$1.charmaps.length-1;_2e<=_2d;_2e+=1){$1.i=_2e;$1.encs=$g($1.charmaps,$1.i);for(var _2i=0;_2i<=2;_2i+=1){$1.j=_2i;var _2l=$g($1.encs,$1.j);$k[$j++]=_2l;if($eq($t(_2l),"stringtype")){var _2o=$g($k[--$j],0);$k[$j++]=_2o}$p($g($1.charvals,$1.j),$k[--$j],$1.i)}}$1.seta=$g($1.charvals,0);$1.setb=$g($1.charvals,1);$1.setc=$g($1.charvals,2);$p($1.seta,$1.lka,$g($1.seta,$1.swb));$p($1.seta,$1.lkc,$g($1.seta,$1.swc));$p($1.setb,$1.lka,$g($1.setb,$1.swc));$p($1.setb,$1.lkc,$g($1.setb,$1.swa));$p($1.setc,$1.lka,$g($1.setc,$1.swa));$p($1.setc,$1.lkc,$g($1.setc,$1.swb));if($1.raw){$1.encoding="raw"}if($eq($1.encoding,"raw")){$1.cws=$a($1.barcode.length);$1.i=0;$1.j=0;for(;;){if($1.i==$1.barcode.length){break}$1.cw=~~$z($G($1.barcode,$1.i+1,3));$p($1.cws,$1.j,$1.cw);$1.i=$1.i+4;$1.j=$1.j+1}$1.cws=$G($1.cws,0,$1.j);$1.text=""}if($eq($1.encoding,"auto")){$1.text=$s($1.msglen);for(var _3q=0,_3p=$1.msglen-1;_3q<=_3p;_3q+=1){$1.i=_3q;var _3v=$g($1.msg,$1.i);$k[$j++]=$1.text;$k[$j++]=$1.i;$k[$j++]=_3v;if(_3v<0){$j--;$k[$j++]=32}var _3w=$k[--$j];var _3x=$k[--$j];$p($k[--$j],_3x,_3w)}$k[$j++]=Infinity;for(var _40=0,_41=$1.msglen;_40<_41;_40++){$k[$j++]=0}$k[$j++]=0;$1.numSA=$a();$k[$j++]=Infinity;for(var _44=0,_45=$1.msglen;_44<_45;_44++){$k[$j++]=0}$k[$j++]=0;$1.numEA=$a();for(var _48=$1.msglen-1;_48>=0;_48-=1){$1.i=_48;if($g($1.msg,$1.i)>=0){if($g($1.msg,$1.i)>=128){$p($1.numEA,$1.i,$f($g($1.numEA,$1.i+1)+1))}else{$p($1.numSA,$1.i,$f($g($1.numSA,$1.i+1)+1))}}}$1.ea=false;$1.msgtmp=$a([]);for(var _4S=0,_4R=$1.msglen-1;_4S<=_4R;_4S+=1){$1.i=_4S;$1.c=$g($1.msg,$1.i);if(!$xo($1.ea,$1.c<128)&&$1.c>=0){if($1.ea){$k[$j++]=$1.numSA}else{$k[$j++]=$1.numEA}var _4e=$g($k[--$j],$1.i);var _4h=$f(_4e+$1.i)==$1.msglen?3:5;if(_4e<_4h){$k[$j++]=Infinity;$q($1.msgtmp);$k[$j++]=$1.fn4;$1.msgtmp=$a()}else{$k[$j++]=Infinity;$q($1.msgtmp);$k[$j++]=$1.fn4;$k[$j++]=$1.fn4;$1.msgtmp=$a();$1.ea=!$1.ea}}$k[$j++]=Infinity;$q($1.msgtmp);if($1.c>=0){$k[$j++]=$1.c&127}else{$k[$j++]=$1.c}$1.msgtmp=$a()}$1.msg=$1.msgtmp;$1.msglen=$1.msg.length;$1.numsscr=function(){$1.n=0;$1.s=0;$1.p=$k[--$j];for(;;){if($1.p>=$1.msglen){break}var _52=$g($1.msg,$1.p);var _54=$g($1.setc,_52)!==undefined;$k[$j++]=_52;if(!_54){$j--;break}var _55=$k[--$j];$k[$j++]=_55;if(_55<=-1){var _57=$k[--$j];if(_57==$1.fn1&&$1.s%2==0){$1.s=$1.s+1}else{break}}else{$j--}$1.n=$1.n+1;$1.s=$1.s+1;$1.p=$f($1.p+1)}$k[$j++]=$1.n;$k[$j++]=$1.s};$1.enca=function(){$p($1.cws,$1.j,$g($1.seta,$k[--$j]));$1.j=$1.j+1};$1.encb=function(){$p($1.cws,$1.j,$g($1.setb,$k[--$j]));$1.j=$1.j+1};$1.encc=function(){var _5R=$k[--$j];$k[$j++]=_5R;if($ne($t(_5R),"arraytype")){var _5V=$g($1.setc,$k[--$j]);$k[$j++]=_5V}else{$q($k[--$j]);var _5X=$k[--$j];var _5Y=$k[--$j];$k[$j++]=$f($f(_5X-48)+$f(_5Y-48)*10)}$p($1.cws,$1.j,$k[--$j]);$1.j=$1.j+1};$1.anotb=function(){var _5d=$k[--$j];var _5f=$g($1.seta,_5d)!==undefined;var _5h=$g($1.setb,_5d)!==undefined;$k[$j++]=_5f&&!_5h};$1.bnota=function(){var _5i=$k[--$j];var _5k=$g($1.setb,_5i)!==undefined;var _5m=$g($1.seta,_5i)!==undefined;$k[$j++]=_5k&&!_5m};$k[$j++]=Infinity;for(var _5o=0,_5p=$1.msg.length;_5o<_5p;_5o++){$k[$j++]=0}$k[$j++]=9999;$1.nextanotb=$a();$k[$j++]=Infinity;for(var _5s=0,_5t=$1.msg.length;_5s<_5t;_5s++){$k[$j++]=0}$k[$j++]=9999;$1.nextbnota=$a();for(var _5w=$1.msg.length-1;_5w>=0;_5w-=1){$1.i=_5w;$k[$j++]=$g($1.msg,$1.i);$1.anotb();if($k[--$j]){$p($1.nextanotb,$1.i,0)}else{$p($1.nextanotb,$1.i,$f($g($1.nextanotb,$1.i+1)+1))}$k[$j++]=$g($1.msg,$1.i);$1.bnota();if($k[--$j]){$p($1.nextbnota,$1.i,0)}else{$p($1.nextbnota,$1.i,$f($g($1.nextbnota,$1.i+1)+1))}}$1.abeforeb=function(){var _6J=$k[--$j];$k[$j++]=$lt($g($1.nextanotb,_6J),$g($1.nextbnota,_6J))};$1.bbeforea=function(){var _6O=$k[--$j];$k[$j++]=$lt($g($1.nextbnota,_6O),$g($1.nextanotb,_6O))};$1.cws=$a($1.barcode.length*2+3);$1.j=0;if($1.msglen>0){$k[$j++]=0;$1.numsscr()}else{$k[$j++]=-1;$k[$j++]=-1}$1.nums=$k[--$j];$1.nchars=$k[--$j];for(;;){if($1.msglen==0){$k[$j++]=$1.stb;$1.enca();$1.cset="setb";break}if($1.msglen==2&&$1.nums==2){$k[$j++]=$1.stc;$1.enca();$1.cset="setc";break}if($1.nums>=4){$k[$j++]=$1.stc;$1.enca();$1.cset="setc";break}$k[$j++]=0;$1.abeforeb();if($k[--$j]){$k[$j++]=$1.sta;$1.enca();$1.cset="seta";break}$k[$j++]=$1.stb;$1.enca();$1.cset="setb";break}$1.i=0;for(;;){if($1.i==$1.msglen){break}$k[$j++]=$1.i;$1.numsscr();$1.nums=$k[--$j];$1.nchars=$k[--$j];for(;;){if(($eq($1.cset,"seta")||$eq($1.cset,"setb"))&&$1.nums>=4&&$g($1.msg,$1.i)!=$1.fn1){if($1.nums%2==0){$k[$j++]=$1.swc;if($eq($1.cset,"seta")){$1.enca()}else{$1.encb()}$1.cset="setc";break}else{$k[$j++]=$g($1.msg,$1.i);if($eq($1.cset,"seta")){$1.enca()}else{$1.encb()}$1.i=$1.i+1;$k[$j++]=$1.swc;if($eq($1.cset,"seta")){$1.enca()}else{$1.encb()}$1.cset="setc";break}}$k[$j++]=$eq($1.cset,"setb");$k[$j++]=$g($1.msg,$1.i);$1.anotb();var _78=$k[--$j];var _79=$k[--$j];if(_79&&_78){if($1.i<$1.msglen-1){$k[$j++]=$1.i+1;$1.bbeforea();if($k[--$j]){$k[$j++]=$1.sft;$1.encb();$k[$j++]=$g($1.msg,$1.i);$1.enca();$1.i=$1.i+1;break}}$k[$j++]=$1.swa;$1.encb();$1.cset="seta";break}$k[$j++]=$eq($1.cset,"seta");$k[$j++]=$g($1.msg,$1.i);$1.bnota();var _7O=$k[--$j];var _7P=$k[--$j];if(_7P&&_7O){if($1.i<$1.msglen-1){$k[$j++]=$1.i+1;$1.abeforeb();if($k[--$j]){$k[$j++]=$1.sft;$1.enca();$k[$j++]=$g($1.msg,$1.i);$1.encb();$1.i=$1.i+1;break}}$k[$j++]=$1.swb;$1.enca();$1.cset="setb";break}if($eq($1.cset,"setc")&&$1.nums<2&&$g($1.msg,$1.i)>-1){$k[$j++]=$1.i;$1.abeforeb();if($k[--$j]){$k[$j++]=$1.swa;$1.encc();$1.cset="seta";break}$k[$j++]=$1.swb;$1.encc();$1.cset="setb";break}if($eq($1.cset,"seta")){$k[$j++]=$g($1.msg,$1.i);$1.enca();$1.i=$1.i+1;break}if($eq($1.cset,"setb")){$k[$j++]=$g($1.msg,$1.i);$1.encb();$1.i=$1.i+1;break}if($eq($1.cset,"setc")){if($g($1.msg,$1.i)<=-1){$k[$j++]=$g($1.msg,$1.i);$1.encc();$1.i=$1.i+1}else{$k[$j++]=$G($1.msg,$1.i,2);$1.encc();$1.i=$1.i+2}break}break}}$1.cws=$G($1.cws,0,$1.j)}var _89=$a($1.j+2);$P(_89,0,$1.cws);$1.cws=_89;$1.csum=$g($1.cws,0);for(var _8F=1,_8E=$1.j-1;_8F<=_8E;_8F+=1){$1.i=_8F;$1.csum=$f($1.csum+$g($1.cws,$1.i)*$1.i)}$1.csum=$1.csum%103;$p($1.cws,$1.j,$1.csum);$p($1.cws,$1.j+1,$g($1.seta,$1.stp));$1.encs=$a(["212222","222122","222221","121223","121322","131222","122213","122312","132212","221213","221312","231212","112232","122132","122231","113222","123122","123221","223211","221132","221231","213212","223112","312131","311222","321122","321221","312212","322112","322211","212123","212321","232121","111323","131123","131321","112313","132113","132311","211313","231113","231311","112133","112331","132131","113123","113321","133121","313121","211331","231131","213113","213311","213131","311123","311321","331121","312113","312311","332111","314111","221411","431111","111224","111422","121124","121421","141122","141221","112214","112412","122114","122411","142112","142211","241211","221114","413111","241112","134111","111242","121142","121241","114212","124112","124211","411212","421112","421211","212141","214121","412121","111143","111341","131141","114113","114311","411113","411311","113141","114131","311141","411131","211412","211214","211232","2331112"]);$1.sbs=$s($1.cws.length*6+1);for(var _8Z=0,_8Y=$1.cws.length-1;_8Z<=_8Y;_8Z+=1){$1.i=_8Z;$P($1.sbs,$1.i*6,$g($1.encs,$g($1.cws,$1.i)))}$k[$j++]=Infinity;$k[$j++]=Infinity;var _8h=$1.sbs;for(var _8i=0,_8j=_8h.length;_8i<_8j;_8i++){$k[$j++]=$g(_8h,_8i)-48}var _8l=$a();$k[$j++]=Infinity;for(var _8n=0,_8o=~~(($1.sbs.length+1)/2);_8n<_8o;_8n++){$k[$j++]=$1.height}var _8q=$a();$k[$j++]=Infinity;for(var _8s=0,_8t=~~(($1.sbs.length+1)/2);_8s<_8t;_8s++){$k[$j++]=0}var _8u=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_8l;$k[$j++]="bhs";$k[$j++]=_8q;$k[$j++]="bbs";$k[$j++]=_8u;$k[$j++]="txt";$k[$j++]=$a([$a([$1.text,$1.textxoffset,$1.textyoffset,$1.textfont,$1.textsize])]);$k[$j++]="textxalign";$k[$j++]="center";$k[$j++]="opt";$k[$j++]=$1.options;var _93=$d();$k[$j++]=_93;if(!$1.dontdraw){$0.renlinear()}};$0["gs1-128"]=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textxoffset=0;$1.textyoffset=-8;$1.height=.5;$1.linkagea=false;$1.linkagec=false;$1.parse=false;$1.dontlint=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.text=$1.barcode;$1.expand=function(){var _C=new Map([["parse",$1.parse],["parseonly",true],["parsefnc",false]]);$1.fncvals=_C;$k[$j++]=$1.fncvals;$0.parseinput()};$1.ais=$a([]);$1.vals=$a([]);var _G=$1.barcode;$k[$j++]=$G(_G,1,_G.length-1);for(;;){var _I=$k[--$j];$k[$j++]=_I;if($eq(_I,"")){break}$x($k[--$j],")");$j--;var _K=$k[--$j];var _L=$k[--$j];$k[$j++]=_K;$k[$j++]=_L;$j--;var _M=$k[--$j];var _N=$k[--$j];$k[$j++]=_M;$x(_N,"(");if($k[--$j]){var _P=$k[--$j];var _Q=$k[--$j];$k[$j++]=_P;$k[$j++]=_Q;$j--;var _R=$k[--$j];var _S=$k[--$j];var _T=$k[--$j];$k[$j++]=_S;$k[$j++]=_T;$k[$j++]=_R}else{var _U=$k[--$j];var _V=$k[--$j];$k[$j++]="";$k[$j++]=_V;$k[$j++]=_U}$k[$j++]=Infinity;$q($1.ais);var _Y=$k[$j-1-($m()+2)];$k[$j++]=_Y;$1.ais=$a();$k[$j++]=Infinity;$q($1.vals);var _c=$k[$j-1-($m()+1)];$k[$j++]=_c;$1.expand();$1.vals=$a();$j-=2}$j--;if(!$1.dontlint){$k[$j++]=$1.ais;$k[$j++]=$1.vals;$0.gs1lint();$j--}$1.aifixed=new Map;$k[$j++]=Infinity;for(var _h=0;_h<=4;_h+=1){$k[$j++]=_h}var _i=$a();for(var _j=0,_k=_i.length;_j<_k;_j++){var _n=$Z($s(2),"00");$p(_n,1,$f($g(_i,_j)+48));$p($1.aifixed,_n,_n)}$k[$j++]=Infinity;for(var _p=11;_p<=20;_p+=1){$k[$j++]=_p}$k[$j++]=23;for(var _q=31;_q<=36;_q+=1){$k[$j++]=_q}$k[$j++]=41;var _r=$a();for(var _s=0,_t=_r.length;_s<_t;_s++){var _w=$R($s(2),$g(_r,_s),10);$p($1.aifixed,_w,_w)}$1.fnc1=-1;$1.c128=$a([$1.fnc1]);for(var _12=0,_11=$1.ais.length-1;_12<=_11;_12+=1){$1.i=_12;$1.ai=$g($1.ais,$1.i);$1.val=$g($1.vals,$1.i);var _1C=$a($1.c128.length+$1.ai.length+$1.val.length);$P(_1C,0,$1.c128);$k[$j++]=_1C;$k[$j++]=_1C;$k[$j++]=$1.c128.length;$k[$j++]=Infinity;var _1H=$1.ai;$F(_1H);var _1I=$a();var _1J=$k[--$j];$P($k[--$j],_1J,_1I);var _1L=$k[--$j];$k[$j++]=_1L;$k[$j++]=_1L;$k[$j++]=$1.c128.length+$1.ai.length;$k[$j++]=Infinity;var _1Q=$1.val;$F(_1Q);var _1R=$a();var _1S=$k[--$j];$P($k[--$j],_1S,_1R);$1.c128=$k[--$j];var _1a=$g($1.aifixed,$G($1.ai,0,2))!==undefined;if($1.i!=$1.ais.length-1&&!_1a){var _1c=$a($1.c128.length+1);$P(_1c,0,$1.c128);$p(_1c,$1.c128.length,$1.fnc1);$1.c128=_1c}}$1.barcode=$s(($1.c128.length+1)*5);$1.i=0;$1.j=0;for(;;){if($1.i==$1.c128.length){break}var _1m=$g($1.c128,$1.i);$k[$j++]=_1m;if(_1m==$1.fnc1){$j--;$P($1.barcode,$1.j,"^FNC1");$1.j=$1.j+4}else{$p($1.barcode,$1.j,$k[--$j])}$1.i=$1.i+1;$1.j=$1.j+1}if($1.linkagea||$1.linkagec){$k[$j++]=$1.barcode;$k[$j++]=$1.j;if($1.linkagea){$k[$j++]="^LNKA"}else{$k[$j++]="^LNKC"}var _21=$k[--$j];var _22=$k[--$j];$P($k[--$j],_22,_21);$1.j=$1.j+5}$1.barcode=$G($1.barcode,0,$1.j);delete $1.options["parse"];$p($1.options,"height",$1.height);$p($1.options,"dontdraw",true);$p($1.options,"parsefnc",true);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.code128();var _2F=$k[--$j];$1[$k[--$j]]=_2F;$p($1.args,"txt",$a([$a([$1.text,$1.textxoffset,$1.textyoffset,$1.textfont,$1.textsize])]));$p($1.args,"textxalign","center");$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.ean14=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textxoffset=0;$1.textyoffset=-8;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.text=$1.barcode;var _B=$1.barcode;$k[$j++]=$s(_B.length);$k[$j++]=0;$F(_B,function(){var _D=$k[--$j];$k[$j++]=_D;if(_D!=32){var _E=$k[--$j];var _F=$k[--$j];var _G=$k[--$j];$p(_G,_F,_E);$k[$j++]=_G;$k[$j++]=$f(_F+1)}else{$j--}});var _H=$k[--$j];$1.barcode=$G($k[--$j],0,_H);$1.hasspace=$1.text.length!=$1.barcode.length;if($ne($G($1.barcode,0,4),"(01)")){$k[$j++]="bwipp.ean14badAI";$k[$j++]="GS1-14 must begin with (01) application identifier";$0.raiseerror()}if($1.barcode.length!=17&&$1.barcode.length!=18){$k[$j++]="bwipp.ean14badLength";$k[$j++]="GS1-14 must be 13 or 14 digits";$0.raiseerror()}var _S=$G($1.barcode,4,$1.barcode.length-4);for(var _T=0,_U=_S.length;_T<_U;_T++){var _V=$g(_S,_T);if(_V<48||_V>57){$k[$j++]="bwipp.ean14badCharacter";$k[$j++]="GS1-14 must contain only digits";$0.raiseerror()}}$1.checksum=0;for(var _W=0;_W<=12;_W+=1){$1.i=_W;$k[$j++]="checksum";$k[$j++]=$1.checksum;$k[$j++]=$f($g($1.barcode,$1.i+4)-48);if($1.i%2==0){var _c=$k[--$j];$k[$j++]=_c*3}var _d=$k[--$j];var _e=$k[--$j];$1[$k[--$j]]=$f(_e+_d)}$1.checksum=(10-$1.checksum%10)%10;if($1.barcode.length==18){if($g($1.barcode,17)!=$1.checksum+48){$k[$j++]="bwipp.ean14badCheckDigit";$k[$j++]="Incorrect GS1-14 check digit provided";$0.raiseerror()}}else{var _l=$s(18);$P(_l,0,$1.barcode);$p(_l,17,$1.checksum+48);$1.barcode=_l;var _q=$1.hasspace?2:1;var _r=$s($1.text.length+_q);$P(_r,_r.length-2," ");$p(_r,_r.length-1,$1.checksum+48);$P(_r,0,$1.text);$1.text=_r}$1.gtin=$G($1.barcode,4,14);$1.barcode=$s(21);$P($1.barcode,0,"^FNC101");$P($1.barcode,7,$1.gtin);$p($1.options,"dontdraw",true);$p($1.options,"parsefnc",true);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.code128();var _14=$k[--$j];$1[$k[--$j]]=_14;$p($1.args,"txt",$a([$a([$1.text,$1.textxoffset,$1.textyoffset,$1.textfont,$1.textsize])]));$p($1.args,"textxalign","center");$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.sscc18=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textxoffset=0;$1.textyoffset=-8;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.text=$1.barcode;var _B=$1.barcode;$k[$j++]=$s(_B.length);$k[$j++]=0;$F(_B,function(){var _D=$k[--$j];$k[$j++]=_D;if(_D!=32){var _E=$k[--$j];var _F=$k[--$j];var _G=$k[--$j];$p(_G,_F,_E);$k[$j++]=_G;$k[$j++]=$f(_F+1)}else{$j--}});var _H=$k[--$j];$1.barcode=$G($k[--$j],0,_H);$1.hasspace=$1.text.length!=$1.barcode.length;if($ne($G($1.barcode,0,4),"(00)")){$k[$j++]="bwipp.sscc18badAI";$k[$j++]="SSCC-18 must begin with (00) application identifier";$0.raiseerror()}if($1.barcode.length!=21&&$1.barcode.length!=22){$k[$j++]="bwipp.sscc18badLength";$k[$j++]="SSCC-18 must be 17 or 18 digits";$0.raiseerror()}var _S=$G($1.barcode,4,$1.barcode.length-4);for(var _T=0,_U=_S.length;_T<_U;_T++){var _V=$g(_S,_T);if(_V<48||_V>57){$k[$j++]="bwipp.sscc18badCharacter";$k[$j++]="SSCC-18 must contain only digits";$0.raiseerror()}}$1.checksum=0;for(var _W=0;_W<=16;_W+=1){$1.i=_W;$k[$j++]="checksum";$k[$j++]=$1.checksum;$k[$j++]=$f($g($1.barcode,$1.i+4)-48);if($1.i%2==0){var _c=$k[--$j];$k[$j++]=_c*3}var _d=$k[--$j];var _e=$k[--$j];$1[$k[--$j]]=$f(_e+_d)}$1.checksum=(10-$1.checksum%10)%10;if($1.barcode.length==22){if($g($1.barcode,21)!=$1.checksum+48){$k[$j++]="bwipp.sscc18badCheckDigit";$k[$j++]="Incorrect SSCC-18 check digit provided";$0.raiseerror()}}else{var _l=$s(22);$P(_l,0,$1.barcode);$p(_l,21,$1.checksum+48);$1.barcode=_l;var _q=$1.hasspace?2:1;var _r=$s($1.text.length+_q);$P(_r,_r.length-2," ");$p(_r,_r.length-1,$1.checksum+48);$P(_r,0,$1.text);$1.text=_r}$1.sscc=$G($1.barcode,4,18);$1.barcode=$s(25);$P($1.barcode,0,"^FNC100");$P($1.barcode,7,$1.sscc);$p($1.options,"dontdraw",true);$p($1.options,"parsefnc",true);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.code128();var _14=$k[--$j];$1[$k[--$j]]=_14;$p($1.args,"txt",$a([$a([$1.text,$1.textxoffset,$1.textyoffset,$1.textfont,$1.textsize])]));$p($1.args,"textxalign","center");$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.code39=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includecheck=false;$1.validatecheck=false;$1.includetext=false;$1.includecheckintext=false;$1.hidestars=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$1.charvals=new Map;for(var _9=0;_9<=42;_9+=1){$p($1.charvals,$G($1.barchars,_9,1),_9)}for(var _F=0,_E=$1.barcode.length-1;_F<=_E;_F+=1){var _J=$g($1.charvals,$G($1.barcode,_F,1))!==undefined;if(!_J){$k[$j++]="bwipp.code39badCharacter";$k[$j++]="Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%";$0.raiseerror()}}$k[$j++]="barlen";$k[$j++]=$1.barcode.length;if($1.validatecheck){var _M=$k[--$j];$k[$j++]=$f(_M-1)}var _N=$k[--$j];$1[$k[--$j]]=_N;$1.checksum=0;for(var _R=0,_Q=$f($1.barlen-1);_R<=_Q;_R+=1){$1.checksum=$f($g($1.charvals,$G($1.barcode,_R,1))+$1.checksum)}$1.checksum=$1.checksum%43;if($1.validatecheck){if($g($1.barcode,$1.barlen)!=$g($1.barchars,$1.checksum)){$k[$j++]="bwipp.code39badCheckDigit";$k[$j++]="Incorrect Code 39 check digit provided";$0.raiseerror()}$1.barcode=$G($1.barcode,0,$1.barlen);$1.includecheck=true}$1.encs=$a(["1113313111","3113111131","1133111131","3133111111","1113311131","3113311111","1133311111","1113113131","3113113111","1133113111","3111131131","1131131131","3131131111","1111331131","3111331111","1131331111","1111133131","3111133111","1131133111","1111333111","3111111331","1131111331","3131111311","1111311331","3111311311","1131311311","1111113331","3111113311","1131113311","1111313311","3311111131","1331111131","3331111111","1311311131","3311311111","1331311111","1311113131","3311113111","1331113111","1313131111","1313111311","1311131311","1113131311","1311313111"]);var _l=$1.includecheck?3:2;$1.sbs=$s($f($1.barlen+_l)*10);var _p=$1.includecheck?3:2;$1.txt=$a($f($1.barlen+_p));$P($1.sbs,0,$g($1.encs,43));if(!$1.hidestars){$p($1.txt,0,$a(["*",0,$1.textyoffset,$1.textfont,$1.textsize]))}else{$p($1.txt,0,$a(["",0,$1.textyoffset,$1.textfont,$1.textsize]))}for(var _17=0,_16=$f($1.barlen-1);_17<=_16;_17+=1){$1.i=_17;$1.indx=$g($1.charvals,$G($1.barcode,$1.i,1));$P($1.sbs,$1.i*10+10,$g($1.encs,$1.indx));$p($1.txt,$1.i+1,$a([$G($1.barcode,$1.i,1),($1.i+1)*16,$1.textyoffset,$1.textfont,$1.textsize]))}if($1.includecheck){$P($1.sbs,$f($1.barlen*10+10),$g($1.encs,$1.checksum));if($1.includecheckintext){$p($1.txt,$f($1.barlen+1),$a([$G($1.barchars,$1.checksum,1),$f($1.barlen+1)*16,$1.textyoffset,$1.textfont,$1.textsize]))}else{$p($1.txt,$f($1.barlen+1),$a(["",$f($1.barlen+1)*16,$1.textyoffset,$1.textfont,$1.textsize]))}$P($1.sbs,$f($1.barlen*10+20),$g($1.encs,43));if(!$1.hidestars){$p($1.txt,$f($1.barlen+2),$a(["*",$f($1.barlen+2)*16,$1.textyoffset,$1.textfont,$1.textsize]))}else{$p($1.txt,$f($1.barlen+2),$a(["",$f($1.barlen+2)*16,$1.textyoffset,$1.textfont,$1.textsize]))}}else{$P($1.sbs,$f($1.barlen*10+10),$g($1.encs,43));if(!$1.hidestars){$p($1.txt,$f($1.barlen+1),$a(["*",$f($1.barlen+1)*16,$1.textyoffset,$1.textfont,$1.textsize]))}else{$p($1.txt,$f($1.barlen+1),$a(["",$f($1.barlen+1)*16,$1.textyoffset,$1.textfont,$1.textsize]))}}$k[$j++]=Infinity;$k[$j++]=Infinity;var _2S=$1.sbs;for(var _2T=0,_2U=_2S.length;_2T<_2U;_2T++){$k[$j++]=$g(_2S,_2T)-48}var _2W=$a();$k[$j++]=Infinity;for(var _2Y=0,_2Z=~~(($1.sbs.length+1)/2);_2Y<_2Z;_2Y++){$k[$j++]=$1.height}var _2b=$a();$k[$j++]=Infinity;for(var _2d=0,_2e=~~(($1.sbs.length+1)/2);_2d<_2e;_2d++){$k[$j++]=0}var _2f=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_2W;$k[$j++]="bhs";$k[$j++]=_2b;$k[$j++]="bbs";$k[$j++]=_2f;if($1.includetext){$k[$j++]="txt";$k[$j++]=$1.txt}$k[$j++]="opt";$k[$j++]=$1.options;var _2j=$d();$k[$j++]=_2j;if(!$1.dontdraw){$0.renlinear()}};$0.code39ext=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.parse=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});var _6=new Map([["parse",$1.parse],["parseonly",true],["parsefnc",false]]);$1.fncvals=_6;$k[$j++]="barcode";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _9=$k[--$j];$1[$k[--$j]]=_9;$1.barlen=$1.barcode.length;delete $1.options["parse"];$F($1.barcode,function(){if($k[--$j]>=128){$k[$j++]="bwipp.code39extBadCharacter";$k[$j++]="Code 39 Extended must contain only ASCII characters";$0.raiseerror()}});$1.extencs=$a(["%U","$A","$B","$C","$D","$E","$F","$G","$H","$I","$J","$K","$L","$M","$N","$O","$P","$Q","$R","$S","$T","$U","$V","$W","$X","$Y","$Z","%A","%B","%C","%D","%E"," ","/A","/B","/C","/D","/E","/F","/G","/H","/I","/J","/K","/L","-",".","/O","0","1","2","3","4","5","6","7","8","9","/Z","%F","%G","%H","%I","%J","%V","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","%K","%L","%M","%N","%O","%W","+A","+B","+C","+D","+E","+F","+G","+H","+I","+J","+K","+L","+M","+N","+O","+P","+Q","+R","+S","+T","+U","+V","+W","+X","+Y","+Z","%P","%Q","%R","%S","%T"]);$1.newcode=$s($1.barlen*2);$1.newtext=$s($1.barlen*2);$1.j=0;for(var _M=0,_L=$1.barlen-1;_M<=_L;_M+=1){$1.i=_M;$1.extchar=$g($1.extencs,$g($1.barcode,$1.i));$P($1.newcode,$1.j,$1.extchar);$p($1.newtext,$1.j,$g($1.barcode,$1.i));if($1.extchar.length!=1){$P($1.newtext,$1.j+1," ")}$1.j=$1.j+$1.extchar.length}$1.newcode=$G($1.newcode,0,$1.j);$1.newtext=$G($1.newtext,0,$1.j);$p($1.options,"dontdraw",true);$k[$j++]="args";$k[$j++]=$1.newcode;$k[$j++]=$1.options;$0.code39();var _o=$k[--$j];$1[$k[--$j]]=_o;if($1.includetext){$1.txt=$g($1.args,"txt");for(var _v=0,_u=$1.newtext.length-1;_v<=_u;_v+=1){$1.i=_v;$1.txtentry=$g($1.txt,$1.i+1);$p($1.txtentry,0,$G($1.newtext,$1.i,1));$p($1.txt,$1.i+1,$1.txtentry)}$p($1.args,"txt",$1.txt)}$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.code32=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.textxoffset=0;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;if($1.barcode.length!=8&&$1.barcode.length!=9){$k[$j++]="bwipp.code32badLength";$k[$j++]="Italian Pharmacode must be 8 or 9 digits";$0.raiseerror()}$F($1.barcode,function(){var _C=$k[--$j];if(_C<48||_C>57){$k[$j++]="bwipp.code32badCharacter";$k[$j++]="Italian Pharmacode must contain only digits";$0.raiseerror()}});$1.checksum=0;for(var _D=0;_D<=7;_D+=1){$1.i=_D;$k[$j++]=$f($g($1.barcode,$1.i)-48);if($1.i%2!=0){var _I=$k[--$j];$k[$j++]=_I*2}var _J=$k[--$j];$k[$j++]=_J;if(_J>9){var _K=$k[--$j];$k[$j++]=$f(_K-9)}$1.checksum=$f($k[--$j]+$1.checksum)}$1.checksum=$1.checksum%10;if($1.barcode.length==9){if($g($1.barcode,8)!=$f($1.checksum+48)){$k[$j++]="bwipp.code32badCheckDigit";$k[$j++]="Incorrect Italian Pharmacode check digit provided";$0.raiseerror()}}var _S=$s(10);$P(_S,0,$1.barcode);$p(_S,8,$f($1.checksum+48));$1.text=_S;$1.val=$R($s(6),~~$z($1.text),32);$1.barcode=$s(6);for(var _Z=0;_Z<=5;_Z+=1){$p($1.barcode,_Z,48)}$P($1.barcode,6-$1.val.length,$1.val);for(var _e=0;_e<=5;_e+=1){var _g=$g($1.barcode,_e);$k[$j++]=_e;$k[$j++]=_g;$k[$j++]=_g;for(var _h=0,_i="AEIO".length;_h<_i;_h++){if($k[--$j]>=$g("AEIO",_h)){var _l=$k[--$j];$k[$j++]=$f(_l+1)}var _m=$k[--$j];$k[$j++]=_m;$k[$j++]=_m}$j--;var _o=$k[--$j];$p($1.barcode,$k[--$j],_o)}$P($1.text,1,$G($1.text,0,9));$p($1.text,0,65);$p($1.options,"dontdraw",true);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.code39();var _x=$k[--$j];$1[$k[--$j]]=_x;$p($1.args,"txt",$a([$a([$1.text,$1.textxoffset,$1.textyoffset,$1.textfont,$1.textsize])]));$p($1.args,"textxalign","center");$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.pzn=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.textxoffset=0;$1.height=1;$1.pzn8=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.textxoffset=+$1.textxoffset;$1.height=+$1.height;if($1.pzn8){if($1.barcode.length!=7&&$1.barcode.length!=8){$k[$j++]="bwipp.pzn8badLength";$k[$j++]="PZN8 must be 7 or 8 digits";$0.raiseerror()}}else{if($1.barcode.length!=6&&$1.barcode.length!=7){$k[$j++]="bwipp.pzn7badLength";$k[$j++]="PZN7 must be 6 or 7 digits";$0.raiseerror()}}$F($1.barcode,function(){var _G=$k[--$j];if(_G<48||_G>57){$k[$j++]="bwipp.pznBadCharacter";$k[$j++]="PZN must contain only digits";$0.raiseerror()}});var _I=$1.pzn8?9:8;$1.msglen=_I;$1.checksum=0;for(var _L=0,_K=$1.msglen-3;_L<=_K;_L+=1){$1.i=_L;var _R=$1.pzn8?1:2;$1.checksum=$f($f($g($1.barcode,$1.i)-48)*($1.i+_R)+$1.checksum)}$1.checksum=$1.checksum%11;if($1.checksum==10){$k[$j++]="bwipp.pznBadInputSequence";$k[$j++]="Incorrect PZN input sequence provided";$0.raiseerror()}if($1.barcode.length==$1.msglen-1){if($g($1.barcode,$1.msglen-2)!=$f($1.checksum+48)){$k[$j++]="bwipp.pznBadCheckDigit";$k[$j++]="Incorrect PZN check digit provided";$0.raiseerror()}}var _c=$s($1.msglen);$p(_c,0,45);$P(_c,1,$1.barcode);$p(_c,$1.msglen-1,$f($1.checksum+48));$1.msg=_c;$p($1.options,"dontdraw",true);$k[$j++]="args";$k[$j++]=$1.msg;$k[$j++]=$1.options;$0.code39();var _j=$k[--$j];$1[$k[--$j]]=_j;$1.text=$s($1.msglen+5);$P($1.text,0,"PZN - ");$P($1.text,6,$G($1.msg,1,$1.msglen-1));$p($1.args,"txt",$a([$a([$1.text,$1.textxoffset,$1.textyoffset,$1.textfont,$1.textsize])]));$p($1.args,"textxalign","center");$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.code93=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includecheck=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.height=1;$1.parse=false;$1.parsefnc=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.encs=$a(["131112","111213","111312","111411","121113","121212","121311","111114","131211","141111","211113","211212","211311","221112","221211","231111","112113","112212","112311","122112","132111","111123","111222","111321","121122","131121","212112","212211","211122","211221","221121","222111","112122","112221","122121","123111","121131","311112","311211","321111","112131","113121","211131","121221","312111","311121","122211","111141","1111411"]);$1.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$1.sft1=-1;$1.sft2=-2;$1.sft3=-3;$1.sft4=-4;var _G=new Map([["parse",$1.parse],["parsefnc",$1.parsefnc],["SFT$",$1.sft1],["SFT%",$1.sft2],["SFT/",$1.sft3],["SFT+",$1.sft4]]);$1.fncvals=_G;$k[$j++]="msg";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _J=$k[--$j];$1[$k[--$j]]=_J;$1.msglen=$1.msg.length;if($1.includecheck){$1.sbs=$s($1.msglen*6+25)}else{$1.sbs=$s($1.msglen*6+13)}$1.txt=$a($1.msglen);$P($1.sbs,0,$g($1.encs,47));$1.checksum1=0;$1.checksum2=0;for(var _Y=0,_X=$1.msglen-1;_Y<=_X;_Y+=1){$1.i=_Y;var _b=$g($1.msg,$1.i);$k[$j++]=_b;if(_b<0){$1.indx=$f(42-$k[--$j]);$1.char=" "}else{var _d=$s(1);$p(_d,0,$k[--$j]);$1.char=_d;$x($1.barchars,$1.char);$j--;$1.indx=$k[--$j].length;$j-=2}$1.enc=$g($1.encs,$1.indx);$P($1.sbs,$1.i*6+6,$1.enc);$p($1.txt,$1.i,$a([$1.char,$1.i*9+9,$1.textyoffset,$1.textfont,$1.textsize]));$1.checksum1=$1.checksum1+(($1.msglen-$1.i-1)%20+1)*$1.indx;$1.checksum2=$1.checksum2+(($1.msglen-$1.i)%15+1)*$1.indx}if($1.includecheck){$1.checksum1=$1.checksum1%47;$1.checksum2=($1.checksum2+$1.checksum1)%47;$P($1.sbs,$1.msglen*6+6,$g($1.encs,$1.checksum1));$P($1.sbs,$1.msglen*6+12,$g($1.encs,$1.checksum2));$P($1.sbs,$1.msglen*6+18,$g($1.encs,48))}else{$P($1.sbs,$1.msglen*6+6,$g($1.encs,48))}$k[$j++]=Infinity;$k[$j++]=Infinity;var _1Q=$1.sbs;for(var _1R=0,_1S=_1Q.length;_1R<_1S;_1R++){$k[$j++]=$g(_1Q,_1R)-48}var _1U=$a();$k[$j++]=Infinity;for(var _1W=0,_1X=~~(($1.sbs.length+1)/2);_1W<_1X;_1W++){$k[$j++]=$1.height}var _1Z=$a();$k[$j++]=Infinity;for(var _1b=0,_1c=~~(($1.sbs.length+1)/2);_1b<_1c;_1b++){$k[$j++]=0}var _1d=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_1U;$k[$j++]="bhs";$k[$j++]=_1Z;$k[$j++]="bbs";$k[$j++]=_1d;if($1.includetext){$k[$j++]="txt";$k[$j++]=$1.txt}$k[$j++]="opt";$k[$j++]=$1.options;var _1h=$d();$k[$j++]=_1h;if(!$1.dontdraw){$0.renlinear()}};$0.code93ext=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.parse=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});var _6=new Map([["parse",$1.parse],["parseonly",true],["parsefnc",false]]);$1.fncvals=_6;$k[$j++]="barcode";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _9=$k[--$j];$1[$k[--$j]]=_9;$1.barlen=$1.barcode.length;delete $1.options["parse"];$1.extencs=$a(["^SFT%U","^SFT$A","^SFT$B","^SFT$C","^SFT$D","^SFT$E","^SFT$F","^SFT$G","^SFT$H","^SFT$I","^SFT$J","^SFT$K","^SFT$L","^SFT$M","^SFT$N","^SFT$O","^SFT$P","^SFT$Q","^SFT$R","^SFT$S","^SFT$T","^SFT$U","^SFT$V","^SFT$W","^SFT$X","^SFT$Y","^SFT$Z","^SFT%A","^SFT%B","^SFT%C","^SFT%D","^SFT%E"," ","^SFT/A","^SFT/B","^SFT/C","^SFT/D","^SFT/E","^SFT/F","^SFT/G","^SFT/H","^SFT/I","^SFT/J","^SFT/K","^SFT/L","-",".","^SFT/O","0","1","2","3","4","5","6","7","8","9","^SFT/Z","^SFT%F","^SFT%G","^SFT%H","^SFT%I","^SFT%J","^SFT%V","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","^SFT%K","^SFT%L","^SFT%M","^SFT%N","^SFT%O","^SFT%W","^SFT+A","^SFT+B","^SFT+C","^SFT+D","^SFT+E","^SFT+F","^SFT+G","^SFT+H","^SFT+I","^SFT+J","^SFT+K","^SFT+L","^SFT+M","^SFT+N","^SFT+O","^SFT+P","^SFT+Q","^SFT+R","^SFT+S","^SFT+T","^SFT+U","^SFT+V","^SFT+W","^SFT+X","^SFT+Y","^SFT+Z","^SFT%P","^SFT%Q","^SFT%R","^SFT%S","^SFT%T"]);$1.newcode=$s($1.barlen*6);$1.newtext=$s($1.barlen*6);$1.j=0;$1.k=0;for(var _K=0,_J=$1.barlen-1;_K<=_J;_K+=1){$1.i=_K;$1.extchar=$g($1.extencs,$g($1.barcode,$1.i));$1.extlen=$1.extchar.length;$P($1.newcode,$1.j,$1.extchar);$p($1.newtext,$1.k,$g($1.barcode,$1.i));if($1.extlen!=1){$P($1.newtext,$1.k+1," ")}$1.j=$1.j+$1.extlen;var _g=$1.extlen==1?1:2;$1.k=$1.k+_g}$1.newcode=$G($1.newcode,0,$1.j);$1.newtext=$G($1.newtext,0,$1.k);$p($1.options,"dontdraw",true);$p($1.options,"parsefnc",true);$k[$j++]="args";$k[$j++]=$1.newcode;$k[$j++]=$1.options;$0.code93();var _r=$k[--$j];$1[$k[--$j]]=_r;if($1.includetext){$1.txt=$g($1.args,"txt");for(var _y=0,_x=$1.newtext.length-1;_y<=_x;_y+=1){$1.i=_y;$1.txtentry=$g($1.txt,$1.i);$p($1.txtentry,0,$G($1.newtext,$1.i,1));$p($1.txt,$1.i,$1.txtentry)}$p($1.args,"txt",$1.txt)}$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.interleaved2of5=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includecheck=false;$1.includetext=false;$1.includecheckintext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$F($1.barcode,function(){var _A=$k[--$j];if(_A<48||_A>57){$k[$j++]="bwipp.interleaved2of5badCharacter";$k[$j++]="Interleaved 2 of 5 must contain only digits";$0.raiseerror()}});$1.barlen=$1.barcode.length;if($1.barlen%2==0&&$1.includecheck||$1.barlen%2!=0&&!$1.includecheck){$1.pad=$s($1.barlen+1);$p($1.pad,0,48);$P($1.pad,1,$1.barcode);$1.barcode=$1.pad;$1.barlen=$1.barlen+1}if($1.includecheck){$1.checksum=0;for(var _Q=0,_P=$1.barlen-1;_Q<=_P;_Q+=1){$1.i=_Q;if($1.i%2==0){$1.checksum=$1.checksum+($g($1.barcode,$1.i)-48)*3}else{$1.checksum=$1.checksum+($g($1.barcode,$1.i)-48)}}$1.checksum=(10-$1.checksum%10)%10;$1.pad=$s($1.barlen+1);$P($1.pad,0,$1.barcode);$p($1.pad,$1.barlen,$1.checksum+48);$1.barcode=$1.pad;$1.barlen=$1.barlen+1}$1.encs=$a(["11221","21112","12112","22111","11212","21211","12211","11122","21121","12121","1111","2111"]);$1.barchars="0123456789";$1.sbs=$s($1.barlen*5+8);$1.txt=$a($1.barlen);$P($1.sbs,0,$g($1.encs,10));for(var _u=0,_t=$1.barlen-1;_u<=_t;_u+=2){$1.i=_u;$x($1.barchars,$G($1.barcode,$1.i,1));$j--;$1.indx=$k[--$j].length;$j-=2;$1.enca=$g($1.encs,$1.indx);$x($1.barchars,$G($1.barcode,$1.i+1,1));$j--;$1.indx=$k[--$j].length;$j-=2;$1.encb=$g($1.encs,$1.indx);$1.intl=$s($1.enca.length*2);for(var _1F=0,_1E=$1.enca.length-1;_1F<=_1E;_1F+=1){$1.j=_1F;$1.achar=$g($1.enca,$1.j);$1.bchar=$g($1.encb,$1.j);$p($1.intl,$1.j*2,$1.achar);$p($1.intl,$1.j*2+1,$1.bchar)}$P($1.sbs,$1.i*5+4,$1.intl);$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),$1.i*9+4,$1.textyoffset,$1.textfont,$1.textsize]));if($1.includecheck&&!$1.includecheckintext&&$1.barlen-2==$1.i){$p($1.txt,$1.i+1,$a([" ",($1.i+1)*9+4,$1.textyoffset,$1.textfont,$1.textsize]))}else{$p($1.txt,$1.i+1,$a([$G($1.barcode,$1.i+1,1),($1.i+1)*9+4,$1.textyoffset,$1.textfont,$1.textsize]))}}$P($1.sbs,$1.barlen*5+4,$g($1.encs,11));$k[$j++]=Infinity;$k[$j++]=Infinity;var _24=$1.sbs;for(var _25=0,_26=_24.length;_25<_26;_25++){$k[$j++]=$g(_24,_25)-48}var _28=$a();$k[$j++]=Infinity;for(var _2A=0,_2B=~~(($1.sbs.length+1)/2);_2A<_2B;_2A++){$k[$j++]=$1.height}var _2D=$a();$k[$j++]=Infinity;for(var _2F=0,_2G=~~(($1.sbs.length+1)/2);_2F<_2G;_2F++){$k[$j++]=0}var _2H=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_28;$k[$j++]="bhs";$k[$j++]=_2D;$k[$j++]="bbs";$k[$j++]=_2H;if($1.includetext){$k[$j++]="txt";$k[$j++]=$1.txt}$k[$j++]="barratio";$k[$j++]=2;$k[$j++]="spaceratio";$k[$j++]=2;$k[$j++]="opt";$k[$j++]=$1.options;var _2L=$d();$k[$j++]=_2L;if(!$1.dontdraw){$0.renlinear()}};$0.itf14=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.includecheckintext=true;$1.textfont="OCR-B";$1.textsize=10;$1.textxoffset=0;$1.textyoffset=3;$1.height=.5;$1.showborder=true;$1.borderwidth=4;$1.borderleft=15;$1.borderright=15;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.borderwidth=+$1.borderwidth;$1.borderleft=+$1.borderleft;$1.borderright=+$1.borderright;$1.text=$1.barcode;var _E=$1.barcode;$k[$j++]=$s(_E.length);$k[$j++]=0;$F(_E,function(){var _G=$k[--$j];$k[$j++]=_G;if(_G!=32){var _H=$k[--$j];var _I=$k[--$j];var _J=$k[--$j];$p(_J,_I,_H);$k[$j++]=_J;$k[$j++]=$f(_I+1)}else{$j--}});var _K=$k[--$j];$1.barcode=$G($k[--$j],0,_K);$1.hasspace=$1.text.length!=$1.barcode.length;if($1.barcode.length!=13&&$1.barcode.length!=14){$k[$j++]="bwipp.itf14badLength";$k[$j++]="ITF-14 must be 13 or 14 digits";$0.raiseerror()}var _R=$1.barcode;for(var _S=0,_T=_R.length;_S<_T;_S++){var _U=$g(_R,_S);if(_U<48||_U>57){$k[$j++]="bwipp.itf14badCharacter";$k[$j++]="ITF-14 must contain only digits";$0.raiseerror()}}$1.checksum=0;for(var _V=0;_V<=12;_V+=1){$1.i=_V;$k[$j++]="checksum";$k[$j++]=$1.checksum;$k[$j++]=$f($g($1.barcode,$1.i)-48);if($1.i%2==0){var _b=$k[--$j];$k[$j++]=_b*3}var _c=$k[--$j];var _d=$k[--$j];$1[$k[--$j]]=$f(_d+_c)}$1.checksum=(10-$1.checksum%10)%10;if($1.barcode.length==14){if($g($1.barcode,13)!=$1.checksum+48){$k[$j++]="bwipp.itf14badCheckDigit";$k[$j++]="Incorrect ITF-14 check digit provided";$0.raiseerror()}}else{var _k=$s(14);$P(_k,0,$1.barcode);$p(_k,13,$1.checksum+48);$1.barcode=_k;var _p=$1.hasspace?2:1;var _q=$s($1.text.length+_p);$P(_q,_q.length-2," ");$p(_q,_q.length-1,$1.checksum+48);$P(_q,0,$1.text);$1.text=_q}$p($1.options,"dontdraw",true);$p($1.options,"showborder",$1.showborder);$p($1.options,"borderwidth",$1.borderwidth);$p($1.options,"borderleft",$1.borderleft);$p($1.options,"borderright",$1.borderright);$p($1.options,"height",$1.height);$p($1.options,"textyoffset",$1.textyoffset);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.interleaved2of5();var _18=$k[--$j];$1[$k[--$j]]=_18;$p($1.args,"txt",$a([$a([$1.text,$1.textxoffset,$1.textyoffset,$1.textfont,$1.textsize])]));$p($1.args,"textxalign","center");$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.identcode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textxoffset=0;$1.textyoffset=-8;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;if($1.barcode.length!=11&&$1.barcode.length!=12){$k[$j++]="bwipp.identcodeBadLength";$k[$j++]="Deutsche Post Identcode must be 11 or 12 digits";$0.raiseerror()}$F($1.barcode,function(){var _D=$k[--$j];if(_D<48||_D>57){$k[$j++]="bwipp.identcodeBadCharacter";$k[$j++]="Deutsche Post Identcode must contain only digits";$0.raiseerror()}});$1.checksum=0;for(var _E=0;_E<=10;_E+=1){$1.i=_E;$k[$j++]="checksum";$k[$j++]=$1.checksum;$k[$j++]=$f($g($1.barcode,$1.i)-48);if($1.i%2==0){var _K=$k[--$j];$k[$j++]=_K*4}else{var _L=$k[--$j];$k[$j++]=_L*9}var _M=$k[--$j];var _N=$k[--$j];$1[$k[--$j]]=$f(_N+_M)}$1.checksum=(10-$1.checksum%10)%10;if($1.barcode.length==12){if($g($1.barcode,11)!=$1.checksum+48){$k[$j++]="bwipp.identcodeBadCheckDigit";$k[$j++]="Incorrect Deutsche Post Identcode check digit provided";$0.raiseerror()}}var _U=$s(12);$P(_U,0,$1.barcode);$p(_U,11,$1.checksum+48);$1.barcode=_U;$1.text=$Z($s(16)," . . ");$P($1.text,0,$G($1.barcode,0,2));$P($1.text,3,$G($1.barcode,2,3));$P($1.text,7,$G($1.barcode,5,3));$P($1.text,11,$G($1.barcode,8,3));$P($1.text,15,$G($1.barcode,11,1));$p($1.options,"dontdraw",true);$p($1.options,"includecheck",false);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.interleaved2of5();var _s=$k[--$j];$1[$k[--$j]]=_s;$p($1.args,"txt",$a([$a([$1.text,$1.textxoffset,$1.textyoffset,$1.textfont,$1.textsize])]));$p($1.args,"textxalign","center");$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.leitcode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textxoffset=0;$1.textyoffset=-8;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;if($1.barcode.length!=13&&$1.barcode.length!=14){$k[$j++]="bwipp.leitcodeBadLength";$k[$j++]="Deutsche Post Leitcode must be 13 or 14 digits";$0.raiseerror()}$F($1.barcode,function(){var _D=$k[--$j];if(_D<48||_D>57){$k[$j++]="bwipp.leitcodeBadCharacter";$k[$j++]="Deutsche Post Leitcode must contain only digits";$0.raiseerror()}});$1.checksum=0;for(var _E=0;_E<=12;_E+=1){$1.i=_E;$k[$j++]="checksum";$k[$j++]=$1.checksum;$k[$j++]=$f($g($1.barcode,$1.i)-48);if($1.i%2==0){var _K=$k[--$j];$k[$j++]=_K*4}else{var _L=$k[--$j];$k[$j++]=_L*9}var _M=$k[--$j];var _N=$k[--$j];$1[$k[--$j]]=$f(_N+_M)}$1.checksum=(10-$1.checksum%10)%10;if($1.barcode.length==14){if($g($1.barcode,13)!=$1.checksum+48){$k[$j++]="bwipp.leitcodeBadCheckDigit";$k[$j++]="Incorrect Deutsche Post Leitcode check digit provided";$0.raiseerror()}}var _U=$s(14);$P(_U,0,$1.barcode);$p(_U,13,$1.checksum+48);$1.barcode=_U;$1.text=$Z($s(18)," . . . ");$P($1.text,0,$G($1.barcode,0,5));$P($1.text,6,$G($1.barcode,5,3));$P($1.text,10,$G($1.barcode,8,3));$P($1.text,14,$G($1.barcode,11,2));$P($1.text,17,$G($1.barcode,13,1));$p($1.options,"dontdraw",true);$p($1.options,"includecheck",false);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.interleaved2of5();var _s=$k[--$j];$1[$k[--$j]]=_s;$p($1.args,"txt",$a([$a([$1.text,$1.textxoffset,$1.textyoffset,$1.textfont,$1.textsize])]));$p($1.args,"textxalign","center");$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.databaromni=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.height=33/72;$1.linkage=false;$1.format="omni";$1.barxmult=33;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});if($eq($1.format,"truncated")){$1.height=13/72}$1.height=+$1.height;$1.barxmult=~~$1.barxmult;if($ne($G($1.barcode,0,4),"(01)")){$k[$j++]="bwipp.databaromniBadAI";$k[$j++]="GS1 DataBar Omnidirectional must begin with (01) application identifier";$0.raiseerror()}if($1.barcode.length!=17&&$1.barcode.length!=18){$k[$j++]="bwipp.databaromniBadLength";$k[$j++]="GS1 DataBar Omnidirectional must be 13 or 14 digits";$0.raiseerror()}var _E=$G($1.barcode,4,$1.barcode.length-4);for(var _F=0,_G=_E.length;_F<_G;_F++){var _H=$g(_E,_F);if(_H<48||_H>57){$k[$j++]="bwipp.databaromniBadCharacter";$k[$j++]="GS1 DataBar Omnidirectional must contain only digits";$0.raiseerror()}}$1.checksum=0;for(var _I=0;_I<=12;_I+=1){$1.i=_I;$k[$j++]="checksum";$k[$j++]=$1.checksum;$k[$j++]=$f($g($1.barcode,$1.i+4)-48);if($1.i%2==0){var _O=$k[--$j];$k[$j++]=_O*3}var _P=$k[--$j];var _Q=$k[--$j];$1[$k[--$j]]=$f(_Q+_P)}$1.checksum=(10-$1.checksum%10)%10;if($1.barcode.length==18){if($g($1.barcode,17)!=$1.checksum+48){$k[$j++]="bwipp.databaromniBadCheckDigit";$k[$j++]="Incorrect GS1 DataBar Omnidirectional check digit provided";$0.raiseerror()}}var _X=$s(18);$P(_X,0,$1.barcode);$p(_X,17,$1.checksum+48);$1.barcode=_X;$1.txt=$a($1.barcode.length);for(var _e=0,_d=$1.barcode.length-1;_e<=_d;_e+=1){$1.i=_e;$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),0,0,"",0]))}$1.ncr=function(){var _l=$k[--$j];var _m=$k[--$j];var _n=$f(_m-_l);if(_l<$f(_m-_l)){var _=_n;_n=_l;_l=_}$k[$j++]=_n;$k[$j++]=1;$k[$j++]=1;for(var _p=_m,_o=$f(_l+1);_p>=_o;_p-=1){var _q=$k[--$j];var _r=$k[--$j];var _s=$k[--$j];$k[$j++]=_s;$k[$j++]=_r;$k[$j++]=_q*_p;if($le(_r,_s)){var _t=$k[--$j];var _u=$k[--$j];$k[$j++]=$f(_u+1);$k[$j++]=~~(_t/_u)}}for(;;){var _v=$k[--$j];var _w=$k[--$j];var _x=$k[--$j];$k[$j++]=_x;$k[$j++]=_w;$k[$j++]=_v;if($gt(_w,_x)){break}var _y=$k[--$j];var _z=$k[--$j];$k[$j++]=$f(_z+1);$k[$j++]=~~(_y/_z)}var _10=$k[--$j];var _11=$k[--$j];$k[$j++]=_10;$k[$j++]=_11;$j--;var _12=$k[--$j];var _13=$k[--$j];$k[$j++]=_12;$k[$j++]=_13;$j--};$1.getRSSwidths=function(){$1.oe=$k[--$j];$1.el=$k[--$j];$1.mw=$k[--$j];$1.nm=$k[--$j];$1.val=$k[--$j];$1.out=$a($1.el);$1.mask=0;for(var _1D=0,_1C=$f($1.el-2);_1D<=_1C;_1D+=1){$1.bar=_1D;$1.ew=1;var _1F=$1.bar;$1.mask=$1.mask|(_1F<0?1>>>-_1F:1<<_1F);for(;;){$k[$j++]="sval";$k[$j++]=$f($f($1.nm-$1.ew)-1);$k[$j++]=$f($f($1.el-$1.bar)-2);$1.ncr();var _1K=$k[--$j];$1[$k[--$j]]=_1K;if($1.oe&&$1.mask==0&&$f($f($f($1.nm-$1.ew)-$1.el*2)+$1.bar*2)>=-2){$k[$j++]="sval";$k[$j++]=$1.sval;$k[$j++]=$f($f($f($1.nm-$1.ew)-$1.el)+$1.bar);$k[$j++]=$f($f($1.el-$1.bar)-2);$1.ncr();var _1Z=$k[--$j];var _1a=$k[--$j];$1[$k[--$j]]=$f(_1a-_1Z)}if($f($1.el-$1.bar)>2){$1.lval=0;for(var _1k=$f($f($f($f($1.nm-$1.ew)-$1.el)+$1.bar)+2),_1j=$f($1.mw+1);_1k>=_1j;_1k-=1){$k[$j++]=$f($f($f($1.nm-_1k)-$1.ew)-1);$k[$j++]=$f($f($1.el-$1.bar)-3);$1.ncr();$1.lval=$f($k[--$j]+$1.lval)}$1.sval=$f($1.sval-$1.lval*$f($f($1.el-$1.bar)-1))}else{if($f($1.nm-$1.ew)>$1.mw){$1.sval=$f($1.sval-1)}}$1.val=$f($1.val-$1.sval);if($1.val<0){break}$1.ew=$1.ew+1;var _24=$1.bar;$1.mask=$1.mask&~(_24<0?1>>>-_24:1<<_24)}$1.val=$f($1.val+$1.sval);$1.nm=$f($1.nm-$1.ew);$p($1.out,$1.bar,$1.ew)}$p($1.out,$f($1.el-1),$1.nm);$k[$j++]=$1.out};$k[$j++]=Infinity;var _2H=$1.linkage?1:0;var _2J=$G($1.barcode,4,13);$k[$j++]=_2H;for(var _2K=0,_2L=_2J.length;_2K<_2L;_2K++){$k[$j++]=$f($g(_2J,_2K)-48)}$1.binval=$a();for(var _2O=0;_2O<=12;_2O+=1){$1.i=_2O;var _2P=$1.binval;var _2Q=$1.i;$p(_2P,_2Q+1,$f($g(_2P,_2Q+1)+$g($1.binval,$1.i)%4537077*10));$p($1.binval,$1.i,~~($g($1.binval,$1.i)/4537077))}$1.right=$g($1.binval,13)%4537077;var _2c=$1.binval;$p(_2c,13,~~($g(_2c,13)/4537077));$1.left=0;$1.i=true;for(var _2e=0;_2e<=13;_2e+=1){$1.j=_2e;var _2h=$g($1.binval,$1.j);$k[$j++]=_2h;if(_2h==0&&$1.i){$j--}else{$1.i=false;$1.left=$f($1.left+$k[--$j]*~~Math.pow(10,13-$1.j))}}$1.d1=~~($1.left/1597);$1.d2=$1.left%1597;$1.d3=~~($1.right/1597);$1.d4=$1.right%1597;$1.tab164=$a([160,0,12,4,8,1,161,1,960,161,10,6,6,3,80,10,2014,961,8,8,4,5,31,34,2714,2015,6,10,3,6,10,70,2840,2715,4,12,1,8,1,126]);$1.tab154=$a([335,0,5,10,2,7,4,84,1035,336,7,8,4,5,20,35,1515,1036,9,6,6,3,48,10,1596,1516,11,4,8,1,81,1]);$1.i=0;for(;;){if($1.d1<=$g($1.tab164,$1.i)){var _2y=$G($1.tab164,$1.i+1,7);for(var _2z=0,_30=_2y.length;_2z<_30;_2z++){$k[$j++]=$g(_2y,_2z)}$1.d1te=$k[--$j];$1.d1to=$k[--$j];$1.d1mwe=$k[--$j];$1.d1mwo=$k[--$j];$1.d1ele=$k[--$j];$1.d1elo=$k[--$j];$1.d1gs=$k[--$j];break}$1.i=$1.i+8}$1.i=0;for(;;){if($1.d2<=$g($1.tab154,$1.i)){var _3G=$G($1.tab154,$1.i+1,7);for(var _3H=0,_3I=_3G.length;_3H<_3I;_3H++){$k[$j++]=$g(_3G,_3H)}$1.d2te=$k[--$j];$1.d2to=$k[--$j];$1.d2mwe=$k[--$j];$1.d2mwo=$k[--$j];$1.d2ele=$k[--$j];$1.d2elo=$k[--$j];$1.d2gs=$k[--$j];break}$1.i=$1.i+8}$1.i=0;for(;;){if($1.d3<=$g($1.tab164,$1.i)){var _3Y=$G($1.tab164,$1.i+1,7);for(var _3Z=0,_3a=_3Y.length;_3Z<_3a;_3Z++){$k[$j++]=$g(_3Y,_3Z)}$1.d3te=$k[--$j];$1.d3to=$k[--$j];$1.d3mwe=$k[--$j];$1.d3mwo=$k[--$j];$1.d3ele=$k[--$j];$1.d3elo=$k[--$j];$1.d3gs=$k[--$j];break}$1.i=$1.i+8}$1.i=0;for(;;){if($1.d4<=$g($1.tab154,$1.i)){var _3q=$G($1.tab154,$1.i+1,7);for(var _3r=0,_3s=_3q.length;_3r<_3s;_3r++){$k[$j++]=$g(_3q,_3r)}$1.d4te=$k[--$j];$1.d4to=$k[--$j];$1.d4mwe=$k[--$j];$1.d4mwo=$k[--$j];$1.d4ele=$k[--$j];$1.d4elo=$k[--$j];$1.d4gs=$k[--$j];break}$1.i=$1.i+8}$k[$j++]="d1wo";$k[$j++]=~~($f($1.d1-$1.d1gs)/$1.d1te);$k[$j++]=$1.d1elo;$k[$j++]=$1.d1mwo;$k[$j++]=4;$k[$j++]=false;$1.getRSSwidths();var _47=$k[--$j];$1[$k[--$j]]=_47;$k[$j++]="d1we";$k[$j++]=$f($1.d1-$1.d1gs)%$1.d1te;$k[$j++]=$1.d1ele;$k[$j++]=$1.d1mwe;$k[$j++]=4;$k[$j++]=true;$1.getRSSwidths();var _4E=$k[--$j];$1[$k[--$j]]=_4E;$k[$j++]="d2wo";$k[$j++]=$f($1.d2-$1.d2gs)%$1.d2to;$k[$j++]=$1.d2elo;$k[$j++]=$1.d2mwo;$k[$j++]=4;$k[$j++]=true;$1.getRSSwidths();var _4L=$k[--$j];$1[$k[--$j]]=_4L;$k[$j++]="d2we";$k[$j++]=~~($f($1.d2-$1.d2gs)/$1.d2to);$k[$j++]=$1.d2ele;$k[$j++]=$1.d2mwe;$k[$j++]=4;$k[$j++]=false;$1.getRSSwidths();var _4S=$k[--$j];$1[$k[--$j]]=_4S;$k[$j++]="d3wo";$k[$j++]=~~($f($1.d3-$1.d3gs)/$1.d3te);$k[$j++]=$1.d3elo;$k[$j++]=$1.d3mwo;$k[$j++]=4;$k[$j++]=false;$1.getRSSwidths();var _4Z=$k[--$j];$1[$k[--$j]]=_4Z;$k[$j++]="d3we";$k[$j++]=$f($1.d3-$1.d3gs)%$1.d3te;$k[$j++]=$1.d3ele;$k[$j++]=$1.d3mwe;$k[$j++]=4;$k[$j++]=true;$1.getRSSwidths();var _4g=$k[--$j];$1[$k[--$j]]=_4g;$k[$j++]="d4wo";$k[$j++]=$f($1.d4-$1.d4gs)%$1.d4to;$k[$j++]=$1.d4elo;$k[$j++]=$1.d4mwo;$k[$j++]=4;$k[$j++]=true;$1.getRSSwidths();var _4n=$k[--$j];$1[$k[--$j]]=_4n;$k[$j++]="d4we";$k[$j++]=~~($f($1.d4-$1.d4gs)/$1.d4to);$k[$j++]=$1.d4ele;$k[$j++]=$1.d4mwe;$k[$j++]=4;$k[$j++]=false;$1.getRSSwidths();var _4u=$k[--$j];$1[$k[--$j]]=_4u;$1.d1w=$a(8);for(var _4x=0;_4x<=3;_4x+=1){$1.i=_4x;$p($1.d1w,$1.i*2,$g($1.d1wo,$1.i));$p($1.d1w,$1.i*2+1,$g($1.d1we,$1.i))}$1.d2w=$a(8);for(var _59=0;_59<=3;_59+=1){$1.i=_59;$p($1.d2w,7-$1.i*2,$g($1.d2wo,$1.i));$p($1.d2w,6-$1.i*2,$g($1.d2we,$1.i))}$1.d3w=$a(8);for(var _5L=0;_5L<=3;_5L+=1){$1.i=_5L;$p($1.d3w,7-$1.i*2,$g($1.d3wo,$1.i));$p($1.d3w,6-$1.i*2,$g($1.d3we,$1.i))}$1.d4w=$a(8);for(var _5X=0;_5X<=3;_5X+=1){$1.i=_5X;$p($1.d4w,$1.i*2,$g($1.d4wo,$1.i));$p($1.d4w,$1.i*2+1,$g($1.d4we,$1.i))}$k[$j++]=Infinity;var _5i=$1.d1w;for(var _5j=0,_5k=_5i.length;_5j<_5k;_5j++){$k[$j++]=$g(_5i,_5j)}var _5m=$1.d2w;for(var _5n=0,_5o=_5m.length;_5n<_5o;_5n++){$k[$j++]=$g(_5m,_5n)}var _5q=$1.d3w;for(var _5r=0,_5s=_5q.length;_5r<_5s;_5r++){$k[$j++]=$g(_5q,_5r)}var _5u=$1.d4w;for(var _5v=0,_5w=_5u.length;_5v<_5w;_5v++){$k[$j++]=$g(_5u,_5v)}$1.widths=$a();$1.checkweights=$a([1,3,9,27,2,6,18,54,58,72,24,8,29,36,12,4,74,51,17,32,37,65,48,16,64,34,23,69,49,68,46,59]);$1.checkwidths=$a([3,8,2,1,1,3,5,5,1,1,3,3,7,1,1,3,1,9,1,1,2,7,4,1,1,2,5,6,1,1,2,3,8,1,1,1,5,7,1,1,1,3,9,1,1]);$1.checksum=0;for(var _61=0;_61<=31;_61+=1){$1.i=_61;$1.checksum=$f($1.checksum+$g($1.widths,$1.i)*$g($1.checkweights,$1.i))}$1.checksum=$1.checksum%79;if($1.checksum>=8){$1.checksum=$f($1.checksum+1)}if($1.checksum>=72){$1.checksum=$f($1.checksum+1)}$1.checklt=$G($1.checkwidths,~~($1.checksum/9)*5,5);$1.checkrtrev=$G($1.checkwidths,$1.checksum%9*5,5);$1.checkrt=$a(5);for(var _6L=0;_6L<=4;_6L+=1){$1.i=_6L;$p($1.checkrt,$1.i,$g($1.checkrtrev,4-$1.i))}if($eq($1.format,"omni")||$eq($1.format,"truncated")){$k[$j++]=Infinity;var _6T=$1.d1w;$k[$j++]=1;for(var _6U=0,_6V=_6T.length;_6U<_6V;_6U++){$k[$j++]=$g(_6T,_6U)}var _6X=$1.checklt;for(var _6Y=0,_6Z=_6X.length;_6Y<_6Z;_6Y++){$k[$j++]=$g(_6X,_6Y)}var _6b=$1.d2w;for(var _6c=0,_6d=_6b.length;_6c<_6d;_6c++){$k[$j++]=$g(_6b,_6c)}var _6f=$1.d4w;for(var _6g=0,_6h=_6f.length;_6g<_6h;_6g++){$k[$j++]=$g(_6f,_6g)}var _6j=$1.checkrt;for(var _6k=0,_6l=_6j.length;_6k<_6l;_6k++){$k[$j++]=$g(_6j,_6k)}var _6n=$1.d3w;for(var _6o=0,_6p=_6n.length;_6o<_6p;_6o++){$k[$j++]=$g(_6n,_6o)}$k[$j++]=1;$k[$j++]=1;$1.sbs=$a();$k[$j++]=Infinity;var _6s=$1.sbs;$k[$j++]=Infinity;for(var _6u=0,_6v=~~(($1.sbs.length+1)/2);_6u<_6v;_6u++){$k[$j++]=$1.height}var _6x=$a();$k[$j++]=Infinity;for(var _6z=0,_70=~~(($1.sbs.length+1)/2);_6z<_70;_6z++){$k[$j++]=0}var _71=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_6s;$k[$j++]="bhs";$k[$j++]=_6x;$k[$j++]="bbs";$k[$j++]=_71;$k[$j++]="txt";$k[$j++]=$1.txt;$k[$j++]="textxalign";$k[$j++]="center";$k[$j++]="opt";$k[$j++]=$1.options;var _74=$d();$k[$j++]=_74;if(!$1.dontdraw){$0.renlinear()}}else{$k[$j++]=Infinity;var _76=$1.d1w;$k[$j++]=1;$k[$j++]=1;for(var _77=0,_78=_76.length;_77<_78;_77++){$k[$j++]=$g(_76,_77)}var _7A=$1.checklt;for(var _7B=0,_7C=_7A.length;_7B<_7C;_7B++){$k[$j++]=$g(_7A,_7B)}var _7E=$1.d2w;for(var _7F=0,_7G=_7E.length;_7F<_7G;_7F++){$k[$j++]=$g(_7E,_7F)}$k[$j++]=1;$k[$j++]=1;$k[$j++]=0;$1.top=$a();$k[$j++]=Infinity;var _7J=$1.d4w;$k[$j++]=1;$k[$j++]=1;for(var _7K=0,_7L=_7J.length;_7K<_7L;_7K++){$k[$j++]=$g(_7J,_7K)}var _7N=$1.checkrt;for(var _7O=0,_7P=_7N.length;_7O<_7P;_7O++){$k[$j++]=$g(_7N,_7O)}var _7R=$1.d3w;for(var _7S=0,_7T=_7R.length;_7S<_7T;_7S++){$k[$j++]=$g(_7R,_7S)}$k[$j++]=1;$k[$j++]=1;$k[$j++]=0;$1.bot=$a();for(var _7W=0;_7W<=24;_7W+=2){$1.i=_7W;for(var _7a=0,_7b=$g($1.top,$1.i);_7a<_7b;_7a++){$k[$j++]=0}for(var _7f=0,_7g=$g($1.top,$1.i+1);_7f<_7g;_7f++){$k[$j++]=1}}$r($a(50));$1.top=$k[--$j];for(var _7j=0;_7j<=24;_7j+=2){$1.i=_7j;for(var _7n=0,_7o=$g($1.bot,$1.i);_7n<_7o;_7n++){$k[$j++]=1}for(var _7s=0,_7t=$g($1.bot,$1.i+1);_7s<_7t;_7s++){$k[$j++]=0}}$r($a(50));$1.bot=$k[--$j];if($eq($1.format,"stacked")){$1.sep=$a(50);$p($1.sep,0,0);for(var _7z=1;_7z<=49;_7z+=1){$1.i=_7z;if($eq($g($1.top,$1.i),$g($1.bot,$1.i))){$p($1.sep,$1.i,$f(1-$g($1.top,$1.i)))}else{$p($1.sep,$1.i,$f(1-$g($1.sep,$1.i-1)))}}$P($1.sep,0,$a([0,0,0,0]));$P($1.sep,46,$a([0,0,0,0]));$k[$j++]=Infinity;for(var _8K=0,_8L=5;_8K<_8L;_8K++){$q($1.top)}$q($1.sep);for(var _8O=0,_8P=7;_8O<_8P;_8O++){$q($1.bot)}$1.pixs=$a();$1.pixy=~~($1.pixs.length/50)}if($eq($1.format,"stackedomni")){$k[$j++]=Infinity;$F($1.top,function(){var _8V=$k[--$j];$k[$j++]=$f(1-_8V)});$1.sep1=$a();$P($1.sep1,0,$a([0,0,0,0]));$P($1.sep1,46,$a([0,0,0,0]));for(var _8b=18;_8b<=30;_8b+=1){$1.i=_8b;if($g($1.top,$1.i)==0){if($g($1.top,$1.i-1)==1){$k[$j++]=1}else{var _8l=$g($1.sep1,$1.i-1)==0?1:0;$k[$j++]=_8l}}else{$k[$j++]=0}$p($1.sep1,$1.i,$k[--$j])}$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;for(var _8p=0,_8q=21;_8p<_8q;_8p++){$k[$j++]=0;$k[$j++]=1}$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$1.sep2=$a();$k[$j++]=Infinity;$F($1.bot,function(){var _8t=$k[--$j];$k[$j++]=$f(1-_8t)});$1.sep3=$a();$P($1.sep3,0,$a([0,0,0,0]));$P($1.sep3,46,$a([0,0,0,0]));for(var _8z=19;_8z<=31;_8z+=1){$1.i=_8z;if($g($1.bot,$1.i)==0){if($g($1.bot,$1.i-1)==1){$k[$j++]=1}else{var _99=$g($1.sep3,$1.i-1)==0?1:0;$k[$j++]=_99}}else{$k[$j++]=0}$p($1.sep3,$1.i,$k[--$j])}$1.f3=$a([1,1,1,1,1,1,1,1,1,0,1,1,1]);$k[$j++]=true;for(var _9E=0;_9E<=12;_9E+=1){var _9J=$k[--$j];$k[$j++]=_9J&&$eq($g($1.bot,_9E+19),$g($1.f3,_9E))}if($k[--$j]){$P($1.sep3,19,$a([0,0,0,0,0,0,0,0,0,0,1,0,0]))}$k[$j++]=Infinity;for(var _9O=0,_9P=$1.barxmult;_9O<_9P;_9O++){$q($1.top)}$q($1.sep1);$q($1.sep2);$q($1.sep3);for(var _9V=0,_9W=$1.barxmult;_9V<_9W;_9V++){$q($1.bot)}$1.pixs=$a();$1.pixy=~~($1.pixs.length/50)}var _9e=new Map([["ren",$0.renmatrix],["pixs",$1.pixs],["pixx",50],["pixy",$1.pixy],["height",$1.pixy/72],["width",50/72],["opt",$1.options]]);$k[$j++]=_9e;if(!$1.dontdraw){$0.renmatrix()}}};$0.databarstacked=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});if($ne($G($1.barcode,0,4),"(01)")){$k[$j++]="bwipp.databarstackedBadAI";$k[$j++]="GS1 DataBar Stacked must begin with (01) application identifier";$0.raiseerror()}if($1.barcode.length!=17&&$1.barcode.length!=18){$k[$j++]="bwipp.databarstackedBadLength";$k[$j++]="GS1 DataBar Stacked must be 13 or 14 digits";$0.raiseerror()}var _B=$G($1.barcode,4,$1.barcode.length-4);for(var _C=0,_D=_B.length;_C<_D;_C++){var _E=$g(_B,_C);if(_E<48||_E>57){$k[$j++]="bwipp.databarstackedBadCharacter";$k[$j++]="GS1 DataBar Stacked must contain only digits";$0.raiseerror()}}$1.checksum=0;for(var _F=0;_F<=12;_F+=1){$1.i=_F;$k[$j++]="checksum";$k[$j++]=$1.checksum;$k[$j++]=$f($g($1.barcode,$1.i+4)-48);if($1.i%2==0){var _L=$k[--$j];$k[$j++]=_L*3}var _M=$k[--$j];var _N=$k[--$j];$1[$k[--$j]]=$f(_N+_M)}$1.checksum=(10-$1.checksum%10)%10;if($1.barcode.length==18){if($g($1.barcode,17)!=$1.checksum+48){$k[$j++]="bwipp.databarstackedBadCheckDigit";$k[$j++]="Incorrect GS1 DataBar Stacked check digit provided";$0.raiseerror()}}var _U=$s(18);$P(_U,0,$1.barcode);$p(_U,17,$1.checksum+48);$1.barcode=_U;$p($1.options,"dontdraw",true);$p($1.options,"format","stacked");$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.databaromni();var _b=$k[--$j];$1[$k[--$j]]=_b;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.databarstackedomni=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});if($ne($G($1.barcode,0,4),"(01)")){$k[$j++]="bwipp.databarstackedomniBadAI";$k[$j++]="GS1 DataBar Stacked Omnidirectional must begin with (01) application identifier";$0.raiseerror()}if($1.barcode.length!=17&&$1.barcode.length!=18){$k[$j++]="bwipp.databarstackedomniBadLength";$k[$j++]="GS1 DataBar Stacked Omnidirectional must be 13 or 14 digits";$0.raiseerror()}var _B=$G($1.barcode,4,$1.barcode.length-4);for(var _C=0,_D=_B.length;_C<_D;_C++){var _E=$g(_B,_C);if(_E<48||_E>57){$k[$j++]="bwipp.databarstackedomniBadCharacter";$k[$j++]="GS1 DataBar Stacked Omnidirectional must contain only digits";$0.raiseerror()}}$1.checksum=0;for(var _F=0;_F<=12;_F+=1){$1.i=_F;$k[$j++]="checksum";$k[$j++]=$1.checksum;$k[$j++]=$f($g($1.barcode,$1.i+4)-48);if($1.i%2==0){var _L=$k[--$j];$k[$j++]=_L*3}var _M=$k[--$j];var _N=$k[--$j];$1[$k[--$j]]=$f(_N+_M)}$1.checksum=(10-$1.checksum%10)%10;if($1.barcode.length==18){if($g($1.barcode,17)!=$1.checksum+48){$k[$j++]="bwipp.databarstackedomniBadCheckDigit";$k[$j++]="Incorrect GS1 DataBar Stacked Omnidirectional check digit provided";$0.raiseerror()}}var _U=$s(18);$P(_U,0,$1.barcode);$p(_U,17,$1.checksum+48);$1.barcode=_U;$p($1.options,"dontdraw",true);$p($1.options,"format","stackedomni");$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.databaromni();var _b=$k[--$j];$1[$k[--$j]]=_b;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.databartruncated=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});if($ne($G($1.barcode,0,4),"(01)")){$k[$j++]="bwipp.databartruncatedBadAI";$k[$j++]="GS1 DataBar Truncated must begin with (01) application identifier";$0.raiseerror()}if($1.barcode.length!=17&&$1.barcode.length!=18){$k[$j++]="bwipp.databartruncatedBadLength";$k[$j++]="GS1 DataBar Truncated must be 13 or 14 digits";$0.raiseerror()}var _B=$G($1.barcode,4,$1.barcode.length-4);for(var _C=0,_D=_B.length;_C<_D;_C++){var _E=$g(_B,_C);if(_E<48||_E>57){$k[$j++]="bwipp.databartruncatedBadCharacter";$k[$j++]="GS1 DataBar Truncated must contain only digits";$0.raiseerror()}}$1.checksum=0;for(var _F=0;_F<=12;_F+=1){$1.i=_F;$k[$j++]="checksum";$k[$j++]=$1.checksum;$k[$j++]=$f($g($1.barcode,$1.i+4)-48);if($1.i%2==0){var _L=$k[--$j];$k[$j++]=_L*3}var _M=$k[--$j];var _N=$k[--$j];$1[$k[--$j]]=$f(_N+_M)}$1.checksum=(10-$1.checksum%10)%10;if($1.barcode.length==18){if($g($1.barcode,17)!=$1.checksum+48){$k[$j++]="bwipp.databartruncatedBadCheckDigit";$k[$j++]="Incorrect GS1 DataBar Truncated check digit provided";$0.raiseerror()}}var _U=$s(18);$P(_U,0,$1.barcode);$p(_U,17,$1.checksum+48);$1.barcode=_U;$p($1.options,"dontdraw",true);$p($1.options,"format","truncated");$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.databaromni();var _b=$k[--$j];$1[$k[--$j]]=_b;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.databarlimited=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.height=10/72;$1.linkage=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.height=+$1.height;if($ne($G($1.barcode,0,4),"(01)")){$k[$j++]="bwipp.databarlimitedBadAI";$k[$j++]="GS1 DataBar Limited must begin with (01) application identifier";$0.raiseerror()}if($1.barcode.length!=17&&$1.barcode.length!=18){$k[$j++]="bwipp.databarlimitedBadLength";$k[$j++]="GS1 DataBar Limited must be 13 or 14 digits";$0.raiseerror()}var _B=$g($1.barcode,4);if(_B<48||_B>49){$k[$j++]="bwipp.databarlimitedBadStartDigit";$k[$j++]="GS1 DataBar Limited must begin with 0 or 1";$0.raiseerror()}var _E=$G($1.barcode,5,$1.barcode.length-5);for(var _F=0,_G=_E.length;_F<_G;_F++){var _H=$g(_E,_F);if(_H<48||_H>57){$k[$j++]="bwipp.databarlimitedBadCharacter";$k[$j++]="GS1 DataBar Limited must contain only digits";$0.raiseerror()}}$1.checksum=0;for(var _I=0;_I<=12;_I+=1){$1.i=_I;$k[$j++]="checksum";$k[$j++]=$1.checksum;$k[$j++]=$f($g($1.barcode,$1.i+4)-48);if($1.i%2==0){var _O=$k[--$j];$k[$j++]=_O*3}var _P=$k[--$j];var _Q=$k[--$j];$1[$k[--$j]]=$f(_Q+_P)}$1.checksum=(10-$1.checksum%10)%10;if($1.barcode.length==18){if($g($1.barcode,17)!=$1.checksum+48){$k[$j++]="bwipp.databarlimitedBadCheckDigit";$k[$j++]="Incorrect GS1 DataBar Limited check digit provided";$0.raiseerror()}}var _X=$s(18);$P(_X,0,$1.barcode);$p(_X,17,$1.checksum+48);$1.barcode=_X;$k[$j++]=Infinity;var _b=$G($1.barcode,4,13);for(var _c=0,_d=_b.length;_c<_d;_c++){$k[$j++]=$f($g(_b,_c)-48)}$1.binval=$a();if($1.linkage){$1.linkval=$a([2,0,1,5,1,3,3,5,3,1,0,9,6]);for(var _k=0,_j=$1.binval.length-1;_k<=_j;_k+=1){$1.i=_k;$p($1.binval,$1.i,$f($g($1.binval,$1.i)+$g($1.linkval,$1.i)))}}$1.txt=$a($1.barcode.length);for(var _x=0,_w=$1.barcode.length-1;_x<=_w;_x+=1){$1.i=_x;$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),0,0,"",0]))}$1.ncr=function(){var _14=$k[--$j];var _15=$k[--$j];var _16=$f(_15-_14);if(_14<$f(_15-_14)){var _=_16;_16=_14;_14=_}$k[$j++]=_16;$k[$j++]=1;$k[$j++]=1;for(var _18=_15,_17=$f(_14+1);_18>=_17;_18-=1){var _19=$k[--$j];var _1A=$k[--$j];var _1B=$k[--$j];$k[$j++]=_1B;$k[$j++]=_1A;$k[$j++]=_19*_18;if($le(_1A,_1B)){var _1C=$k[--$j];var _1D=$k[--$j];$k[$j++]=$f(_1D+1);$k[$j++]=~~(_1C/_1D)}}for(;;){var _1E=$k[--$j];var _1F=$k[--$j];var _1G=$k[--$j];$k[$j++]=_1G;$k[$j++]=_1F;$k[$j++]=_1E;if($gt(_1F,_1G)){break}var _1H=$k[--$j];var _1I=$k[--$j];$k[$j++]=$f(_1I+1);$k[$j++]=~~(_1H/_1I)}var _1J=$k[--$j];var _1K=$k[--$j];$k[$j++]=_1J;$k[$j++]=_1K;$j--;var _1L=$k[--$j];var _1M=$k[--$j];$k[$j++]=_1L;$k[$j++]=_1M;$j--};$1.getRSSwidths=function(){$1.oe=$k[--$j];$1.el=$k[--$j];$1.mw=$k[--$j];$1.nm=$k[--$j];$1.val=$k[--$j];$1.out=$a($1.el);$1.mask=0;for(var _1W=0,_1V=$f($1.el-2);_1W<=_1V;_1W+=1){$1.bar=_1W;$1.ew=1;var _1Y=$1.bar;$1.mask=$1.mask|(_1Y<0?1>>>-_1Y:1<<_1Y);for(;;){$k[$j++]="sval";$k[$j++]=$f($f($1.nm-$1.ew)-1);$k[$j++]=$f($f($1.el-$1.bar)-2);$1.ncr();var _1d=$k[--$j];$1[$k[--$j]]=_1d;if($1.oe&&$1.mask==0&&$f($f($f($1.nm-$1.ew)-$1.el*2)+$1.bar*2)>=-2){$k[$j++]="sval";$k[$j++]=$1.sval;$k[$j++]=$f($f($f($1.nm-$1.ew)-$1.el)+$1.bar);$k[$j++]=$f($f($1.el-$1.bar)-2);$1.ncr();var _1s=$k[--$j];var _1t=$k[--$j];$1[$k[--$j]]=$f(_1t-_1s)}if($f($1.el-$1.bar)>2){$1.lval=0;for(var _23=$f($f($f($f($1.nm-$1.ew)-$1.el)+$1.bar)+2),_22=$f($1.mw+1);_23>=_22;_23-=1){$k[$j++]=$f($f($f($1.nm-_23)-$1.ew)-1);$k[$j++]=$f($f($1.el-$1.bar)-3);$1.ncr();$1.lval=$f($k[--$j]+$1.lval)}$1.sval=$f($1.sval-$1.lval*$f($f($1.el-$1.bar)-1))}else{if($f($1.nm-$1.ew)>$1.mw){$1.sval=$f($1.sval-1)}}$1.val=$f($1.val-$1.sval);if($1.val<0){break}$1.ew=$1.ew+1;var _2N=$1.bar;$1.mask=$1.mask&~(_2N<0?1>>>-_2N:1<<_2N)}$1.val=$f($1.val+$1.sval);$1.nm=$f($1.nm-$1.ew);$p($1.out,$1.bar,$1.ew)}$p($1.out,$f($1.el-1),$1.nm);$k[$j++]=$1.out};for(var _2Z=0;_2Z<=11;_2Z+=1){$1.i=_2Z;var _2a=$1.binval;var _2b=$1.i;$p(_2a,_2b+1,$f($g(_2a,_2b+1)+$g($1.binval,$1.i)%2013571*10));$p($1.binval,$1.i,~~($g($1.binval,$1.i)/2013571))}$1.d2=$g($1.binval,12)%2013571;var _2n=$1.binval;$p(_2n,12,~~($g(_2n,12)/2013571));$1.d1=0;$1.i=true;for(var _2p=0;_2p<=12;_2p+=1){$1.j=_2p;var _2s=$g($1.binval,$1.j);$k[$j++]=_2s;if(_2s==0&&$1.i){$j--}else{$1.i=false;$1.d1=$f($1.d1+$k[--$j]*~~Math.pow(10,12-$1.j))}}$1.tab267=$a([183063,0,17,9,6,3,6538,28,820063,183064,13,13,5,4,875,728,1000775,820064,9,17,3,6,28,6454,1491020,1000776,15,11,5,4,2415,203,1979844,1491021,11,15,4,5,203,2408,1996938,1979845,19,7,8,1,17094,1,2013570,1996939,7,19,1,8,1,16632]);$1.i=0;for(;;){if($1.d1<=$g($1.tab267,$1.i)){var _34=$G($1.tab267,$1.i+1,7);for(var _35=0,_36=_34.length;_35<_36;_35++){$k[$j++]=$g(_34,_35)}$1.d1te=$k[--$j];$1.d1to=$k[--$j];$1.d1mwe=$k[--$j];$1.d1mwo=$k[--$j];$1.d1ele=$k[--$j];$1.d1elo=$k[--$j];$1.d1gs=$k[--$j];break}$1.i=$1.i+8}$1.i=0;for(;;){if($1.d2<=$g($1.tab267,$1.i)){var _3M=$G($1.tab267,$1.i+1,7);for(var _3N=0,_3O=_3M.length;_3N<_3O;_3N++){$k[$j++]=$g(_3M,_3N)}$1.d2te=$k[--$j];$1.d2to=$k[--$j];$1.d2mwe=$k[--$j];$1.d2mwo=$k[--$j];$1.d2ele=$k[--$j];$1.d2elo=$k[--$j];$1.d2gs=$k[--$j];break}$1.i=$1.i+8}$k[$j++]="d1wo";$k[$j++]=~~($f($1.d1-$1.d1gs)/$1.d1te);$k[$j++]=$1.d1elo;$k[$j++]=$1.d1mwo;$k[$j++]=7;$k[$j++]=false;$1.getRSSwidths();var _3d=$k[--$j];$1[$k[--$j]]=_3d;$k[$j++]="d1we";$k[$j++]=$f($1.d1-$1.d1gs)%$1.d1te;$k[$j++]=$1.d1ele;$k[$j++]=$1.d1mwe;$k[$j++]=7;$k[$j++]=true;$1.getRSSwidths();var _3k=$k[--$j];$1[$k[--$j]]=_3k;$k[$j++]="d2wo";$k[$j++]=~~($f($1.d2-$1.d2gs)/$1.d2te);$k[$j++]=$1.d2elo;$k[$j++]=$1.d2mwo;$k[$j++]=7;$k[$j++]=false;$1.getRSSwidths();var _3r=$k[--$j];$1[$k[--$j]]=_3r;$k[$j++]="d2we";$k[$j++]=$f($1.d2-$1.d2gs)%$1.d2te;$k[$j++]=$1.d2ele;$k[$j++]=$1.d2mwe;$k[$j++]=7;$k[$j++]=true;$1.getRSSwidths();var _3y=$k[--$j];$1[$k[--$j]]=_3y;$1.d1w=$a(14);for(var _41=0;_41<=6;_41+=1){$1.i=_41;$p($1.d1w,$1.i*2,$g($1.d1wo,$1.i));$p($1.d1w,$1.i*2+1,$g($1.d1we,$1.i))}$1.d2w=$a(14);for(var _4D=0;_4D<=6;_4D+=1){$1.i=_4D;$p($1.d2w,$1.i*2,$g($1.d2wo,$1.i));$p($1.d2w,$1.i*2+1,$g($1.d2we,$1.i))}$k[$j++]=Infinity;var _4O=$1.d1w;for(var _4P=0,_4Q=_4O.length;_4P<_4Q;_4P++){$k[$j++]=$g(_4O,_4P)}var _4S=$1.d2w;for(var _4T=0,_4U=_4S.length;_4T<_4U;_4T++){$k[$j++]=$g(_4S,_4T)}$1.widths=$a();$1.checkweights=$a([1,3,9,27,81,65,17,51,64,14,42,37,22,66,20,60,2,6,18,54,73,41,34,13,39,28,84,74]);$k[$j++]=Infinity;for(var _4Y=0;_4Y<=43;_4Y+=1){$k[$j++]=_4Y}$k[$j++]=45;$k[$j++]=52;$k[$j++]=57;for(var _4Z=63;_4Z<=66;_4Z+=1){$k[$j++]=_4Z}for(var _4a=73;_4a<=79;_4a+=1){$k[$j++]=_4a}$k[$j++]=82;for(var _4b=126;_4b<=130;_4b+=1){$k[$j++]=_4b}$k[$j++]=132;for(var _4c=141;_4c<=146;_4c+=1){$k[$j++]=_4c}for(var _4d=210;_4d<=217;_4d+=1){$k[$j++]=_4d}$k[$j++]=220;for(var _4e=316;_4e<=320;_4e+=1){$k[$j++]=_4e}$k[$j++]=322;$k[$j++]=323;$k[$j++]=326;$k[$j++]=337;$1.checkseq=$a();$1.checksum=0;for(var _4g=0;_4g<=27;_4g+=1){$1.i=_4g;$1.checksum=$f($1.checksum+$g($1.widths,$1.i)*$g($1.checkweights,$1.i))}$1.checksum=$1.checksum%89;$1.seq=$g($1.checkseq,$1.checksum);$k[$j++]="swidths";$k[$j++]=~~($1.seq/21);$k[$j++]=8;$k[$j++]=3;$k[$j++]=6;$k[$j++]=false;$1.getRSSwidths();var _4t=$k[--$j];$1[$k[--$j]]=_4t;$k[$j++]="bwidths";$k[$j++]=$1.seq%21;$k[$j++]=8;$k[$j++]=3;$k[$j++]=6;$k[$j++]=false;$1.getRSSwidths();var _4w=$k[--$j];$1[$k[--$j]]=_4w;$1.checkwidths=$a([0,0,0,0,0,0,0,0,0,0,0,0,1,1]);for(var _4z=0;_4z<=5;_4z+=1){$1.i=_4z;$p($1.checkwidths,$1.i*2,$g($1.swidths,$1.i));$p($1.checkwidths,$1.i*2+1,$g($1.bwidths,$1.i))}$k[$j++]=Infinity;var _5A=$1.d1w;$k[$j++]=1;for(var _5B=0,_5C=_5A.length;_5B<_5C;_5B++){$k[$j++]=$g(_5A,_5B)}var _5E=$1.checkwidths;for(var _5F=0,_5G=_5E.length;_5F<_5G;_5F++){$k[$j++]=$g(_5E,_5F)}var _5I=$1.d2w;for(var _5J=0,_5K=_5I.length;_5J<_5K;_5J++){$k[$j++]=$g(_5I,_5J)}$k[$j++]=1;$k[$j++]=1;$k[$j++]=5;$1.sbs=$a();$k[$j++]=Infinity;var _5N=$1.sbs;$k[$j++]=Infinity;for(var _5P=0,_5Q=~~(($1.sbs.length+1)/2);_5P<_5Q;_5P++){$k[$j++]=$1.height}var _5S=$a();$k[$j++]=Infinity;for(var _5U=0,_5V=~~(($1.sbs.length+1)/2);_5U<_5V;_5U++){$k[$j++]=0}var _5W=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_5N;$k[$j++]="bhs";$k[$j++]=_5S;$k[$j++]="bbs";$k[$j++]=_5W;$k[$j++]="txt";$k[$j++]=$1.txt;$k[$j++]="textxalign";$k[$j++]="center";$k[$j++]="opt";$k[$j++]=$1.options;var _5Z=$d();$k[$j++]=_5Z;if(!$1.dontdraw){$0.renlinear()}};$0.databarexpanded=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.parse=false;$1.dontlint=false;$1.dontdraw=false;$1.height=34/72;$1.format="expanded";$1.segments=-1;$1.linkage=false;$1.barxmult=34;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.height=+$1.height;$1.segments=~~$1.segments;$1.barxmult=~~$1.barxmult;if($1.segments==-1){var _A=$eq($1.format,"expandedstacked")?4:22;$1.segments=_A}else{if($1.segments<2||$1.segments>22||$1.segments%2!=0){$k[$j++]="bwipp.gs1databarexpandedBadSegments";$k[$j++]="The number of segments must be even from 2 to 22";$0.raiseerror()}}$1.expand=function(){var _F=new Map([["parse",$1.parse],["parseonly",true],["parsefnc",false]]);$1.fncvals=_F;$k[$j++]=$1.fncvals;$0.parseinput()};$1.ais=$a([]);$1.vals=$a([]);var _J=$1.barcode;$k[$j++]=$G(_J,1,_J.length-1);for(;;){var _L=$k[--$j];$k[$j++]=_L;if($eq(_L,"")){break}$x($k[--$j],")");$j--;var _N=$k[--$j];var _O=$k[--$j];$k[$j++]=_N;$k[$j++]=_O;$j--;var _P=$k[--$j];var _Q=$k[--$j];$k[$j++]=_P;$x(_Q,"(");if($k[--$j]){var _S=$k[--$j];var _T=$k[--$j];$k[$j++]=_S;$k[$j++]=_T;$j--;var _U=$k[--$j];var _V=$k[--$j];var _W=$k[--$j];$k[$j++]=_V;$k[$j++]=_W;$k[$j++]=_U}else{var _X=$k[--$j];var _Y=$k[--$j];$k[$j++]="";$k[$j++]=_Y;$k[$j++]=_X}$k[$j++]=Infinity;$q($1.ais);var _b=$k[$j-1-($m()+2)];$k[$j++]=_b;$1.ais=$a();$k[$j++]=Infinity;$q($1.vals);var _f=$k[$j-1-($m()+1)];$k[$j++]=_f;$1.expand();$1.vals=$a();$j-=2}$j--;if(!$1.dontlint){$k[$j++]=$1.ais;$k[$j++]=$1.vals;$0.gs1lint();$j--}for(;;){if($1.ais.length==2){if($eq($g($1.ais,0),"01")&&$eq($g($1.ais,1),"3103")){if($eq($G($g($1.vals,0),0,1),"9")&&~~$z($g($1.vals,1))<=32767){$k[$j++]="0100";$k[$j++]=false;break}}}if($1.ais.length==2){if($eq($g($1.ais,0),"01")&&$eq($g($1.ais,1),"3202")){if($eq($G($g($1.vals,0),0,1),"9")&&~~$z($g($1.vals,1))<=9999){$k[$j++]="0101";$k[$j++]=false;break}}}if($1.ais.length==2){if($eq($g($1.ais,0),"01")&&$eq($g($1.ais,1),"3203")){if($eq($G($g($1.vals,0),0,1),"9")&&~~$z($g($1.vals,1))<=22767){$k[$j++]="0101";$k[$j++]=false;break}}}var _1F=$1.ais.length;if(_1F==2||_1F==3){$k[$j++]="ai310x";$k[$j++]=false;for(var _1G=3100;_1G<=3109;_1G+=1){var _1L=$k[--$j];$k[$j++]=_1L||$eq($R($s(4),_1G,10),$g($1.ais,1))}var _1M=$k[--$j];$1[$k[--$j]]=_1M;$k[$j++]="ai320x";$k[$j++]=false;for(var _1O=3200;_1O<=3209;_1O+=1){var _1T=$k[--$j];$k[$j++]=_1T||$eq($R($s(4),_1O,10),$g($1.ais,1))}var _1U=$k[--$j];$1[$k[--$j]]=_1U;if($1.ais.length==3){var _1X=$a(["11","13","15","17"]);$k[$j++]="aibad";$k[$j++]=true;for(var _1Y=0,_1Z=_1X.length;_1Y<_1Z;_1Y++){var _1d=$k[--$j];$k[$j++]=_1d&&$ne($g(_1X,_1Y),$g($1.ais,2))}var _1e=$k[--$j];$1[$k[--$j]]=_1e}else{$1.aibad=false}if($eq($g($1.ais,0),"01")&&($1.ai310x||$1.ai320x)&&!$1.aibad){if($1.ais.length==3){var _1u=~~$z($G($g($1.vals,2),2,2));var _1y=~~$z($G($g($1.vals,2),4,2));if($eq($G($g($1.vals,0),0,1),"9")&&~~$z($g($1.vals,1))<=99999&&(_1u>=1&&_1u<=12)&&(_1y>=0&&_1y<=31)){if($1.ai310x&&$eq($g($1.ais,2),"11")){$k[$j++]="0111000";$k[$j++]=false;break}if($1.ai320x&&$eq($g($1.ais,2),"11")){$k[$j++]="0111001";$k[$j++]=false;break}if($1.ai310x&&$eq($g($1.ais,2),"13")){$k[$j++]="0111010";$k[$j++]=false;break}if($1.ai320x&&$eq($g($1.ais,2),"13")){$k[$j++]="0111011";$k[$j++]=false;break}if($1.ai310x&&$eq($g($1.ais,2),"15")){$k[$j++]="0111100";$k[$j++]=false;break}if($1.ai320x&&$eq($g($1.ais,2),"15")){$k[$j++]="0111101";$k[$j++]=false;break}if($1.ai310x&&$eq($g($1.ais,2),"17")){$k[$j++]="0111110";$k[$j++]=false;break}if($1.ai320x&&$eq($g($1.ais,2),"17")){$k[$j++]="0111111";$k[$j++]=false;break}}}else{if($eq($G($g($1.vals,0),0,1),"9")&&~~$z($g($1.vals,1))<=99999){if($1.ai310x){$k[$j++]="0111000";$k[$j++]=false;break}if($1.ai320x){$k[$j++]="0111001";$k[$j++]=false;break}}}}}if($1.ais.length>=2){$k[$j++]="ai392x";$k[$j++]=false;for(var _2V=3920;_2V<=3923;_2V+=1){var _2a=$k[--$j];$k[$j++]=_2a||$eq($R($s(4),_2V,10),$g($1.ais,1))}var _2b=$k[--$j];$1[$k[--$j]]=_2b;if($eq($g($1.ais,0),"01")&&$1.ai392x){if($eq($G($g($1.vals,0),0,1),"9")){$k[$j++]="01100";$k[$j++]=true;break}}}if($1.ais.length>=2){$k[$j++]="ai393x";$k[$j++]=false;for(var _2k=3930;_2k<=3933;_2k+=1){var _2p=$k[--$j];$k[$j++]=_2p||$eq($R($s(4),_2k,10),$g($1.ais,1))}var _2q=$k[--$j];$1[$k[--$j]]=_2q;if($eq($g($1.ais,0),"01")&&$1.ai393x){if($eq($G($g($1.vals,0),0,1),"9")){$k[$j++]="01101";$k[$j++]=true;break}}}if($eq($g($1.ais,0),"01")){$k[$j++]="1";$k[$j++]=true;break}$k[$j++]="00";$k[$j++]=true;break}$1.gpfallow=$k[--$j];$1.method=$k[--$j];$1.conv12to40=function(){var _33=$Z($s(40),"0000000000000000000000000000000000000000");var _34=$k[--$j];var _38=$R($s(10),~~$z($G(_34,0,3)),2);$P($G(_33,0,10),10-_38.length,_38);var _3C=$R($s(10),~~$z($G(_34,3,3)),2);$P($G(_33,10,10),10-_3C.length,_3C);var _3G=$R($s(10),~~$z($G(_34,6,3)),2);$P($G(_33,20,10),10-_3G.length,_3G);var _3K=$R($s(10),~~$z($G(_34,9,3)),2);$P($G(_33,30,10),10-_3K.length,_3K);$k[$j++]=_33;$k[$j++]=_34;$j--};$1.conv13to44=function(){var _3M=$Z($s(44),"00000000000000000000000000000000000000000000");var _3N=$k[--$j];var _3R=$R($s(4),~~$z($G(_3N,0,1)),2);$P($G(_3M,0,4),4-_3R.length,_3R);$k[$j++]=_3M;$k[$j++]=_3M;$k[$j++]=$G(_3N,1,12);$1.conv12to40();var _3T=$k[--$j];$P($k[--$j],4,_3T)};$1.tobin=function(){var _3W=$s($k[--$j]);$k[$j++]=_3W;for(var _3Y=0,_3X=_3W.length-1;_3Y<=_3X;_3Y+=1){var _3Z=$k[--$j];$p(_3Z,_3Y,48);$k[$j++]=_3Z}var _3a=$k[--$j];var _3d=$R($s(_3a.length),$k[--$j],2);$P(_3a,_3a.length-_3d.length,_3d);$k[$j++]=_3a};$1.fnc1=-1;$1.lnumeric=-2;$1.lalphanumeric=-3;$1.liso646=-4;if($eq($1.method,"00")){$1.cdf=$a([]);$1.gpf=$a([])}if($eq($1.method,"1")){$k[$j++]="cdf";$k[$j++]=$G($g($1.vals,0),0,13);$1.conv13to44();var _3l=$k[--$j];$1[$k[--$j]]=_3l;$k[$j++]=Infinity;var _3n=$1.cdf;for(var _3o=0,_3p=_3n.length;_3o<_3p;_3o++){$k[$j++]=$f($g(_3n,_3o)-48)}$1.cdf=$a();$1.gpf=$a([]);$1.ais=$G($1.ais,1,$1.ais.length-1);$1.vals=$G($1.vals,1,$1.vals.length-1)}if($eq($1.method,"0100")){$1.cdf=$s(55);$k[$j++]=$1.cdf;$k[$j++]=0;$k[$j++]=$G($g($1.vals,0),1,12);$1.conv12to40();var _45=$k[--$j];var _46=$k[--$j];$P($k[--$j],_46,_45);$k[$j++]=$1.cdf;$k[$j++]=40;$k[$j++]=~~$z($g($1.vals,1));$k[$j++]=15;$1.tobin();var _4B=$k[--$j];var _4C=$k[--$j];$P($k[--$j],_4C,_4B);$k[$j++]=Infinity;var _4E=$1.cdf;for(var _4F=0,_4G=_4E.length;_4F<_4G;_4F++){$k[$j++]=$g(_4E,_4F)-48}$1.cdf=$a();$1.gpf=$a([]);$1.ais=$a([]);$1.vals=$a([])}if($eq($1.method,"0101")){$1.cdf=$s(55);$k[$j++]=$1.cdf;$k[$j++]=0;$k[$j++]=$G($g($1.vals,0),1,12);$1.conv12to40();var _4S=$k[--$j];var _4T=$k[--$j];$P($k[--$j],_4T,_4S);if($eq($g($1.ais,1),"3202")){$k[$j++]=~~$z($g($1.vals,1));$k[$j++]=15;$1.tobin()}else{$k[$j++]=~~$z($g($1.vals,1))+1e4;$k[$j++]=15;$1.tobin()}$P($1.cdf,40,$k[--$j]);$k[$j++]=Infinity;var _4d=$1.cdf;for(var _4e=0,_4f=_4d.length;_4e<_4f;_4e++){$k[$j++]=$g(_4d,_4e)-48}$1.cdf=$a();$1.gpf=$a([]);$1.ais=$a([]);$1.vals=$a([])}if($1.method.length==7){$1.cdf=$s(76);$k[$j++]=$1.cdf;$k[$j++]=0;$k[$j++]=$G($g($1.vals,0),1,12);$1.conv12to40();var _4r=$k[--$j];var _4s=$k[--$j];$P($k[--$j],_4s,_4r);var _4u=$s(6);$P(_4u,0,$G($g($1.ais,1),3,1));$P(_4u,1,$G($g($1.vals,1),1,5));$k[$j++]=~~$z(_4u);$k[$j++]=20;$1.tobin();$P($1.cdf,40,$k[--$j]);if($1.ais.length==3){var _55=$g($1.vals,2);$k[$j++]=~~$z($G(_55,0,2))*384+((~~$z($G(_55,2,2))-1)*32+~~$z($G(_55,4,2)))}else{$k[$j++]=38400}$k[$j++]=16;$1.tobin();$P($1.cdf,60,$k[--$j]);$k[$j++]=Infinity;var _5B=$1.cdf;for(var _5C=0,_5D=_5B.length;_5C<_5D;_5C++){$k[$j++]=$g(_5B,_5C)-48}$1.cdf=$a();$1.gpf=$a([]);$1.ais=$a([]);$1.vals=$a([])}if($eq($1.method,"01100")){$1.cdf=$s(42);$k[$j++]=$1.cdf;$k[$j++]=0;$k[$j++]=$G($g($1.vals,0),1,12);$1.conv12to40();var _5P=$k[--$j];var _5Q=$k[--$j];$P($k[--$j],_5Q,_5P);$k[$j++]=$1.cdf;$k[$j++]=40;$k[$j++]=~~$z($G($g($1.ais,1),3,1));$k[$j++]=2;$1.tobin();var _5W=$k[--$j];var _5X=$k[--$j];$P($k[--$j],_5X,_5W);$k[$j++]=Infinity;var _5Z=$1.cdf;for(var _5a=0,_5b=_5Z.length;_5a<_5b;_5a++){$k[$j++]=$g(_5Z,_5a)-48}$1.cdf=$a();$k[$j++]=Infinity;$F($g($1.vals,1));if($1.ais.length>2){$k[$j++]=$1.fnc1}$1.gpf=$a();$1.ais=$G($1.ais,2,$1.ais.length-2);$1.vals=$G($1.vals,2,$1.vals.length-2)}if($eq($1.method,"01101")){$1.cdf=$s(52);$k[$j++]=$1.cdf;$k[$j++]=0;$k[$j++]=$G($g($1.vals,0),1,12);$1.conv12to40();var _5v=$k[--$j];var _5w=$k[--$j];$P($k[--$j],_5w,_5v);$k[$j++]=$1.cdf;$k[$j++]=40;$k[$j++]=~~$z($G($g($1.ais,1),3,1));$k[$j++]=2;$1.tobin();var _62=$k[--$j];var _63=$k[--$j];$P($k[--$j],_63,_62);$k[$j++]=$1.cdf;$k[$j++]=42;$k[$j++]=~~$z($G($g($1.vals,1),0,3));$k[$j++]=10;$1.tobin();var _69=$k[--$j];var _6A=$k[--$j];$P($k[--$j],_6A,_69);$k[$j++]=Infinity;var _6C=$1.cdf;for(var _6D=0,_6E=_6C.length;_6D<_6E;_6D++){$k[$j++]=$g(_6C,_6D)-48}$1.cdf=$a();$k[$j++]=Infinity;var _6I=$g($1.vals,1);var _6J=$G(_6I,3,_6I.length-3);for(var _6K=0,_6L=_6J.length;_6K<_6L;_6K++){$k[$j++]=$g(_6J,_6K)}if($1.ais.length>2){$k[$j++]=$1.fnc1}$1.gpf=$a();$1.ais=$G($1.ais,2,$1.ais.length-2);$1.vals=$G($1.vals,2,$1.vals.length-2)}if($1.gpfallow){$1.vlf=$a(2)}else{$1.vlf=$a([])}$1.aifixed=new Map;$k[$j++]=Infinity;for(var _6Z=0;_6Z<=4;_6Z+=1){$k[$j++]=_6Z}var _6a=$a();for(var _6b=0,_6c=_6a.length;_6b<_6c;_6b++){var _6f=$Z($s(2),"00");$p(_6f,1,$f($g(_6a,_6b)+48));$p($1.aifixed,_6f,_6f)}$k[$j++]=Infinity;for(var _6h=11;_6h<=20;_6h+=1){$k[$j++]=_6h}$k[$j++]=23;for(var _6i=31;_6i<=36;_6i+=1){$k[$j++]=_6i}$k[$j++]=41;var _6j=$a();for(var _6k=0,_6l=_6j.length;_6k<_6l;_6k++){var _6o=$R($s(2),$g(_6j,_6k),10);$p($1.aifixed,_6o,_6o)}$k[$j++]=Infinity;for(var _6q=0;_6q<=119;_6q+=1){var _6s=$Z($s(2),"00");var _6u=$R($s(2),_6q,11);$P(_6s,2-_6u.length,_6u);$k[$j++]=_6q;$k[$j++]=_6s;if($g(_6s,0)==65){var _6w=$k[--$j];$p(_6w,0,94);$k[$j++]=_6w}var _6x=$k[--$j];$k[$j++]=_6x;if($g(_6x,1)==65){var _6z=$k[--$j];$p(_6z,1,94);$k[$j++]=_6z}var _70=$k[--$j];var _73=$Z($s(7),"0000000");var _75=$R($s(7),$f($k[--$j]+8),2);$P(_73,7-_75.length,_75);$k[$j++]=_70;$k[$j++]=_73}$k[$j++]=$1.lalphanumeric;$k[$j++]="0000";$1.numeric=$d();$k[$j++]=Infinity;for(var _78=48;_78<=57;_78+=1){$k[$j++]=_78;$k[$j++]=_78-43;$k[$j++]=5;$1.tobin()}$k[$j++]=$1.fnc1;$k[$j++]="01111";for(var _7A=65;_7A<=90;_7A+=1){$k[$j++]=_7A;$k[$j++]=_7A-33;$k[$j++]=6;$1.tobin()}$k[$j++]=42;$k[$j++]="111010";for(var _7B=44;_7B<=47;_7B+=1){$k[$j++]=_7B;$k[$j++]=_7B+15;$k[$j++]=6;$1.tobin()}$k[$j++]=$1.lnumeric;$k[$j++]="000";$k[$j++]=$1.liso646;$k[$j++]="00100";$1.alphanumeric=$d();$k[$j++]=Infinity;for(var _7F=48;_7F<=57;_7F+=1){$k[$j++]=_7F;$k[$j++]=_7F-43;$k[$j++]=5;$1.tobin()}$k[$j++]=$1.fnc1;$k[$j++]="01111";for(var _7H=65;_7H<=90;_7H+=1){$k[$j++]=_7H;$k[$j++]=_7H-1;$k[$j++]=7;$1.tobin()}for(var _7I=97;_7I<=122;_7I+=1){$k[$j++]=_7I;$k[$j++]=_7I-7;$k[$j++]=7;$1.tobin()}$k[$j++]=33;$k[$j++]="11101000";$k[$j++]=34;$k[$j++]="11101001";for(var _7J=37;_7J<=47;_7J+=1){$k[$j++]=_7J;$k[$j++]=_7J+197;$k[$j++]=8;$1.tobin()}for(var _7K=58;_7K<=63;_7K+=1){$k[$j++]=_7K;$k[$j++]=_7K+187;$k[$j++]=8;$1.tobin()}$k[$j++]=95;$k[$j++]="11111011";$k[$j++]=32;$k[$j++]="11111100";$k[$j++]=$1.lnumeric;$k[$j++]="000";$k[$j++]=$1.lalphanumeric;$k[$j++]="00100";$1.iso646=$d();for(var _7Q=0,_7P=$1.ais.length-1;_7Q<=_7P;_7Q+=1){$1.i=_7Q;$1.ai=$g($1.ais,$1.i);$1.val=$g($1.vals,$1.i);var _7a=$a($1.gpf.length+$1.ai.length+$1.val.length);$P(_7a,0,$1.gpf);$k[$j++]=_7a;$k[$j++]=_7a;$k[$j++]=$1.gpf.length;$k[$j++]=Infinity;var _7f=$1.ai;$F(_7f);var _7g=$a();var _7h=$k[--$j];$P($k[--$j],_7h,_7g);var _7j=$k[--$j];$k[$j++]=_7j;$k[$j++]=_7j;$k[$j++]=$1.gpf.length+$1.ai.length;$k[$j++]=Infinity;var _7o=$1.val;$F(_7o);var _7p=$a();var _7q=$k[--$j];$P($k[--$j],_7q,_7p);$1.gpf=$k[--$j];var _7y=$g($1.aifixed,$G($1.ai,0,2))!==undefined;if($1.i!=$1.ais.length-1&&!_7y){var _80=$a($1.gpf.length+1);$P(_80,0,$1.gpf);$p(_80,$1.gpf.length,$1.fnc1);$1.gpf=_80}}$1.rembits=function(){var _84=$k[--$j];var _85=48;var _86=~~Math.ceil(_84/12)*12;if(~~Math.ceil(_84/12)*12<48){var _=_85;_85=_86;_86=_}var _87=~~(_86/12);$k[$j++]=_84;$k[$j++]=_86;$k[$j++]=_87;if(_87%$1.segments==1){var _89=$k[--$j];var _8A=$k[--$j];$k[$j++]=$f(_89+1)*12;$k[$j++]=_8A;$j--}else{$j--}var _8B=$k[--$j];var _8C=$k[--$j];$k[$j++]=$f(_8B-_8C)};$1.encode=function(){var _8D=$k[--$j];$k[$j++]=_8D;if($ne(_8D,"raw")){var _8E=$k[--$j];var _8G=$g(_8E,$k[--$j]);$k[$j++]=_8G}else{$j--}$k[$j++]=Infinity;var _8H=$k[--$j];var _8I=$k[--$j];$k[$j++]=_8H;$F(_8I,function(){var _8J=$k[--$j];$k[$j++]=$f(_8J-48)});var _8K=$a();$P($1.gpfenc,$1.j,_8K);$1.j=_8K.length+$1.j};$k[$j++]=Infinity;for(var _8P=0,_8Q=$1.gpf.length;_8P<_8Q;_8P++){$k[$j++]=0}$k[$j++]=0;$k[$j++]=-1;$1.numericruns=$a();$k[$j++]=Infinity;for(var _8T=0,_8U=$1.gpf.length;_8T<_8U;_8T++){$k[$j++]=0}$k[$j++]=0;$1.alphanumericruns=$a();$k[$j++]=Infinity;for(var _8X=0,_8Y=$1.gpf.length;_8X<_8Y;_8X++){$k[$j++]=0}$k[$j++]=9999;$1.nextiso646only=$a();for(var _8b=$1.gpf.length-1;_8b>=0;_8b-=1){$1.i=_8b;var _8g=$Z($s(2),"00");var _8j=$g($1.gpf,$1.i);$k[$j++]=$g($1.gpf,$1.i);$k[$j++]=_8g;$k[$j++]=_8g;$k[$j++]=0;$k[$j++]=_8j;if(_8j==$1.fnc1){$j--;$k[$j++]=94}var _8l=$k[--$j];var _8m=$k[--$j];$p($k[--$j],_8m,_8l);if($1.i<$1.gpf.length-1){var _8q=$k[--$j];var _8t=$g($1.gpf,$1.i+1);$k[$j++]=_8q;$k[$j++]=_8q;$k[$j++]=1;$k[$j++]=_8t;if(_8t==$1.fnc1){$j--;$k[$j++]=94}var _8v=$k[--$j];var _8w=$k[--$j];$p($k[--$j],_8w,_8v)}var _90=$g($1.numeric,$k[--$j])!==undefined;if(_90){$p($1.numericruns,$1.i,$f($g($1.numericruns,$1.i+2)+2))}else{$p($1.numericruns,$1.i,0)}var _98=$k[--$j];var _9A=$g($1.alphanumeric,_98)!==undefined;$k[$j++]=_98;if(_9A){$p($1.alphanumericruns,$1.i,$f($g($1.alphanumericruns,$1.i+1)+1))}else{$p($1.alphanumericruns,$1.i,0)}var _9I=$k[--$j];var _9K=$g($1.iso646,_9I)!==undefined;var _9M=$g($1.alphanumeric,_9I)!==undefined;if(_9K&&!_9M){$p($1.nextiso646only,$1.i,0)}else{$p($1.nextiso646only,$1.i,$f($g($1.nextiso646only,$1.i+1)+1))}}$1.gpfenc=$a(252);$1.i=0;$1.j=0;$1.mode="numeric";for(;;){if($1.i==$1.gpf.length){break}for(;;){if($eq($1.mode,"numeric")){if($1.i<=$1.gpf.length-2){var _9a=$s(2);var _9d=$g($1.gpf,$1.i);$k[$j++]=_9a;$k[$j++]=_9a;$k[$j++]=0;$k[$j++]=_9d;if(_9d==$1.fnc1){$j--;$k[$j++]=94}var _9f=$k[--$j];var _9g=$k[--$j];$p($k[--$j],_9g,_9f);var _9i=$k[--$j];var _9l=$g($1.gpf,$1.i+1);$k[$j++]=_9i;$k[$j++]=_9i;$k[$j++]=1;$k[$j++]=_9l;if(_9l==$1.fnc1){$j--;$k[$j++]=94}var _9n=$k[--$j];var _9o=$k[--$j];$p($k[--$j],_9o,_9n);var _9q=$k[--$j];var _9s=$g($1.numeric,_9q)!==undefined;$k[$j++]=_9q;if(_9s){$k[$j++]=$1.numeric;$1.encode();$1.i=$1.i+2;break}$j--;$k[$j++]=$1.lalphanumeric;$k[$j++]=$1.numeric;$1.encode();$1.mode="alphanumeric";break}else{var _9z=$g($1.gpf,$1.i);if(_9z<48||_9z>57){$k[$j++]=$1.lalphanumeric;$k[$j++]=$1.numeric;$1.encode();$1.mode="alphanumeric";break}$k[$j++]="rem";$k[$j++]=12+1+$1.method.length+$1.vlf.length+$1.cdf.length+$1.j;$1.rembits();var _A6=$k[--$j];$1[$k[--$j]]=_A6;if($1.rem>=4&&$1.rem<=6){var _AD=$G($Z($s(6),"000000"),0,$1.rem);var _AI=$R($s(4),$f($g($1.gpf,$1.i)-47),2);$P(_AD,4-_AI.length,_AI);$k[$j++]=_AD;$k[$j++]="raw";$1.encode();$1.i=$1.i+1;break}else{var _AK=$s(2);$p(_AK,0,$g($1.gpf,$1.i));$p(_AK,1,94);$k[$j++]=_AK;$k[$j++]=$1.numeric;$1.encode();$1.i=$1.i+1;break}}}if($eq($1.mode,"alphanumeric")){if($g($1.gpf,$1.i)==$1.fnc1){$k[$j++]=$1.fnc1;$k[$j++]=$1.alphanumeric;$1.encode();$1.mode="numeric";$1.i=$1.i+1;break}var _Aa=$g($1.gpf,$1.i);var _Ac=$g($1.iso646,_Aa)!==undefined;var _Ae=$g($1.alphanumeric,_Aa)!==undefined;if(_Ac&&!_Ae){$k[$j++]=$1.liso646;$k[$j++]=$1.alphanumeric;$1.encode();$1.mode="iso646";break}if($g($1.numericruns,$1.i)>=6){$k[$j++]=$1.lnumeric;$k[$j++]=$1.alphanumeric;$1.encode();$1.mode="numeric";break}var _Ao=$g($1.numericruns,$1.i);if(_Ao>=4&&$f(_Ao+$1.i)==$1.gpf.length){$k[$j++]=$1.lnumeric;$k[$j++]=$1.alphanumeric;$1.encode();$1.mode="numeric";break}$k[$j++]=$g($1.gpf,$1.i);$k[$j++]=$1.alphanumeric;$1.encode();$1.i=$1.i+1;break}if($eq($1.mode,"iso646")){if($g($1.gpf,$1.i)==$1.fnc1){$k[$j++]=$1.fnc1;$k[$j++]=$1.iso646;$1.encode();$1.mode="numeric";$1.i=$1.i+1;break}if($g($1.numericruns,$1.i)>=4&&$g($1.nextiso646only,$1.i)>=10){$k[$j++]=$1.lnumeric;$k[$j++]=$1.iso646;$1.encode();$1.mode="numeric";break}if($g($1.alphanumericruns,$1.i)>=5&&$g($1.nextiso646only,$1.i)>=10){$k[$j++]=$1.lalphanumeric;$k[$j++]=$1.iso646;$1.encode();$1.mode="alphanumeric";break}$k[$j++]=$g($1.gpf,$1.i);$k[$j++]=$1.iso646;$1.encode();$1.i=$1.i+1;break}}}$1.gpf=$G($1.gpfenc,0,$1.j);var _BY=1+12+$1.method.length+$1.vlf.length+$1.cdf.length+$1.gpf.length;$k[$j++]=_BY;$k[$j++]=_BY;$1.rembits();var _BZ=$k[--$j];$1.pad=$a(_BZ);$k[$j++]=_BZ;if($1.vlf.length!=0){var _Bc=$k[--$j];var _Be=~~($f($k[--$j]+_Bc)/12);$p($1.vlf,0,_Be%2);var _Bg=_Be<=14?0:1;$p($1.vlf,1,_Bg)}else{$j-=2}if($1.pad.length>0){for(var _Bl=0,_Bk=$1.pad.length-1;_Bl<=_Bk;_Bl+=5){$1.i=_Bl;var _Bm=$1.pad;var _Bn=$1.i;var _Bo=$a([0,0,1,0,0]);var _Bp=$1.pad;var _Bq=$1.i;var _Br=5;var _Bs=_Bp.length-_Bq;if(_Bp.length-_Bq>5){var _=_Br;_Br=_Bs;_Bs=_}$P(_Bm,_Bn,$G(_Bo,0,_Bs))}if($eq($1.mode,"numeric")){$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$q($1.pad);$1.pad=$G($a(),0,$1.pad.length)}}$k[$j++]=Infinity;var _C0=$1.linkage?1:0;$k[$j++]=_C0;$F($1.method,function(){var _C2=$k[--$j];$k[$j++]=$f(_C2-48)});$q($1.vlf);$q($1.cdf);$q($1.gpf);$q($1.pad);$1.binval=$a();$1.datalen=~~($1.binval.length/12);$1.ncr=function(){var _C9=$k[--$j];var _CA=$k[--$j];var _CB=$f(_CA-_C9);if(_C9<$f(_CA-_C9)){var _=_CB;_CB=_C9;_C9=_}$k[$j++]=_CB;$k[$j++]=1;$k[$j++]=1;for(var _CD=_CA,_CC=$f(_C9+1);_CD>=_CC;_CD-=1){var _CE=$k[--$j];var _CF=$k[--$j];var _CG=$k[--$j];$k[$j++]=_CG;$k[$j++]=_CF;$k[$j++]=_CE*_CD;if($le(_CF,_CG)){var _CH=$k[--$j];var _CI=$k[--$j];$k[$j++]=$f(_CI+1);$k[$j++]=~~(_CH/_CI)}}for(;;){var _CJ=$k[--$j];var _CK=$k[--$j];var _CL=$k[--$j];$k[$j++]=_CL;$k[$j++]=_CK;$k[$j++]=_CJ;if($gt(_CK,_CL)){break}var _CM=$k[--$j];var _CN=$k[--$j];$k[$j++]=$f(_CN+1);$k[$j++]=~~(_CM/_CN)}var _CO=$k[--$j];var _CP=$k[--$j];$k[$j++]=_CO;$k[$j++]=_CP;$j--;var _CQ=$k[--$j];var _CR=$k[--$j];$k[$j++]=_CQ;$k[$j++]=_CR;$j--};$1.getRSSwidths=function(){$1.oe=$k[--$j];$1.el=$k[--$j];$1.mw=$k[--$j];$1.nm=$k[--$j];$1.val=$k[--$j];$1.out=$a($1.el);$1.mask=0;for(var _Cb=0,_Ca=$f($1.el-2);_Cb<=_Ca;_Cb+=1){$1.bar=_Cb;$1.ew=1;var _Cd=$1.bar;$1.mask=$1.mask|(_Cd<0?1>>>-_Cd:1<<_Cd);for(;;){$k[$j++]="sval";$k[$j++]=$f($f($1.nm-$1.ew)-1);$k[$j++]=$f($f($1.el-$1.bar)-2);$1.ncr();var _Ci=$k[--$j];$1[$k[--$j]]=_Ci;if($1.oe&&$1.mask==0&&$f($f($f($1.nm-$1.ew)-$1.el*2)+$1.bar*2)>=-2){$k[$j++]="sval";$k[$j++]=$1.sval;$k[$j++]=$f($f($f($1.nm-$1.ew)-$1.el)+$1.bar);$k[$j++]=$f($f($1.el-$1.bar)-2);$1.ncr();var _Cx=$k[--$j];var _Cy=$k[--$j];$1[$k[--$j]]=$f(_Cy-_Cx)}if($f($1.el-$1.bar)>2){$1.lval=0;for(var _D8=$f($f($f($f($1.nm-$1.ew)-$1.el)+$1.bar)+2),_D7=$f($1.mw+1);_D8>=_D7;_D8-=1){$k[$j++]=$f($f($f($1.nm-_D8)-$1.ew)-1);$k[$j++]=$f($f($1.el-$1.bar)-3);$1.ncr();$1.lval=$f($k[--$j]+$1.lval)}$1.sval=$f($1.sval-$1.lval*$f($f($1.el-$1.bar)-1))}else{if($f($1.nm-$1.ew)>$1.mw){$1.sval=$f($1.sval-1)}}$1.val=$f($1.val-$1.sval);if($1.val<0){break}$1.ew=$1.ew+1;var _DS=$1.bar;$1.mask=$1.mask&~(_DS<0?1>>>-_DS:1<<_DS)}$1.val=$f($1.val+$1.sval);$1.nm=$f($1.nm-$1.ew);$p($1.out,$1.bar,$1.ew)}$p($1.out,$f($1.el-1),$1.nm);$k[$j++]=$1.out};$1.tab174=$a([347,0,12,5,7,2,87,4,1387,348,10,7,5,4,52,20,2947,1388,8,9,4,5,30,52,3987,2948,6,11,3,6,10,104,4191,3988,4,13,1,8,1,204]);$1.dxw=$a($1.datalen);for(var _Dj=0,_Di=$1.datalen-1;_Dj<=_Di;_Dj+=1){$1.x=_Dj;$1.d=$G($1.binval,$1.x*12,12);$k[$j++]="d";$k[$j++]=0;for(var _Dn=0;_Dn<=11;_Dn+=1){$1.j=_Dn;var _Ds=$k[--$j];$k[$j++]=$f(_Ds+~~Math.pow(2,11-$1.j)*$g($1.d,$1.j))}var _Dt=$k[--$j];$1[$k[--$j]]=_Dt;$1.j=0;for(;;){if($le($1.d,$g($1.tab174,$1.j))){var _E1=$G($1.tab174,$1.j+1,7);for(var _E2=0,_E3=_E1.length;_E2<_E3;_E2++){$k[$j++]=$g(_E1,_E2)}$1.dte=$k[--$j];$1.dto=$k[--$j];$1.dmwe=$k[--$j];$1.dmwo=$k[--$j];$1.dele=$k[--$j];$1.delo=$k[--$j];$1.dgs=$k[--$j];break}$1.j=$1.j+8}$k[$j++]="dwo";$k[$j++]=~~($f($1.d-$1.dgs)/$1.dte);$k[$j++]=$1.delo;$k[$j++]=$1.dmwo;$k[$j++]=4;$k[$j++]=true;$1.getRSSwidths();var _EI=$k[--$j];$1[$k[--$j]]=_EI;$k[$j++]="dwe";$k[$j++]=$f($1.d-$1.dgs)%$1.dte;$k[$j++]=$1.dele;$k[$j++]=$1.dmwe;$k[$j++]=4;$k[$j++]=false;$1.getRSSwidths();var _EP=$k[--$j];$1[$k[--$j]]=_EP;$1.dw=$a(8);if($1.x%2==0){for(var _ET=0;_ET<=3;_ET+=1){$1.j=_ET;$p($1.dw,7-$1.j*2,$g($1.dwo,$1.j));$p($1.dw,6-$1.j*2,$g($1.dwe,$1.j))}}else{for(var _Ee=0;_Ee<=3;_Ee+=1){$1.j=_Ee;$p($1.dw,$1.j*2,$g($1.dwo,$1.j));$p($1.dw,$1.j*2+1,$g($1.dwe,$1.j))}}$p($1.dxw,$1.x,$1.dw)}$1.finderwidths=$a([1,8,4,1,1,1,1,4,8,1,3,6,4,1,1,1,1,4,6,3,3,4,6,1,1,1,1,6,4,3,3,2,8,1,1,1,1,8,2,3,2,6,5,1,1,1,1,5,6,2,2,2,9,1,1,1,1,9,2,2]);$1.finderseq=$a([$a([0,1]),$a([0,3,2]),$a([0,5,2,7]),$a([0,9,2,7,4]),$a([0,9,2,7,6,11]),$a([0,9,2,7,8,11,10]),$a([0,1,2,3,4,5,6,7]),$a([0,1,2,3,4,5,6,9,8]),$a([0,1,2,3,4,5,6,9,10,11]),$a([0,1,2,3,4,7,6,9,8,11,10])]);$1.seq=$g($1.finderseq,~~(($1.datalen-2)/2));$1.fxw=$a($1.seq.length);for(var _FB=0,_FA=$1.seq.length-1;_FB<=_FA;_FB+=1){$1.x=_FB;$p($1.fxw,$1.x,$G($1.finderwidths,$g($1.seq,$1.x)*5,5))}$1.checkweights=$a([-1,-1,-1,-1,-1,-1,-1,-1,77,96,32,81,27,9,3,1,20,60,180,118,143,7,21,63,205,209,140,117,39,13,145,189,193,157,49,147,19,57,171,91,132,44,85,169,197,136,186,62,185,133,188,142,4,12,36,108,50,87,29,80,97,173,128,113,150,28,84,41,123,158,52,156,166,196,206,139,187,203,138,46,76,17,51,153,37,111,122,155,146,119,110,107,106,176,129,43,16,48,144,10,30,90,59,177,164,125,112,178,200,137,116,109,70,210,208,202,184,130,179,115,190,204,68,93,31,151,191,134,148,22,66,198,172,94,71,2,40,154,192,64,162,54,18,6,120,149,25,75,14,42,126,167,175,199,207,69,23,78,26,79,103,98,83,38,114,131,182,124,159,53,88,170,127,183,61,161,55,165,73,8,24,72,5,15,89,100,174,58,160,194,135,45]);$k[$j++]=Infinity;$F($1.seq,function(){$q($G($1.checkweights,$k[--$j]*16,16))});var _FO=$a();$1.checkweightseq=$G(_FO,8,_FO.length-8);$k[$j++]=Infinity;var _FQ=$1.dxw;for(var _FR=0,_FS=_FQ.length;_FR<_FS;_FR++){$F($g(_FQ,_FR))}$1.widths=$a();$1.checksum=0;for(var _FX=0,_FW=$1.widths.length-1;_FX<=_FW;_FX+=1){$1.i=_FX;$1.checksum=$f($1.checksum+$g($1.widths,$1.i)*$g($1.checkweightseq,$1.i))}$1.checksum=$f($1.checksum%211+($1.datalen-3)*211);$1.i=0;for(;;){if($1.checksum<=$g($1.tab174,$1.i)){var _Fn=$G($1.tab174,$1.i+1,7);for(var _Fo=0,_Fp=_Fn.length;_Fo<_Fp;_Fo++){$k[$j++]=$g(_Fn,_Fo)}$1.cte=$k[--$j];$1.cto=$k[--$j];$1.cmwe=$k[--$j];$1.cmwo=$k[--$j];$1.cele=$k[--$j];$1.celo=$k[--$j];$1.cgs=$k[--$j];break}$1.i=$1.i+8}$k[$j++]="cwo";$k[$j++]=~~($f($1.checksum-$1.cgs)/$1.cte);$k[$j++]=$1.celo;$k[$j++]=$1.cmwo;$k[$j++]=4;$k[$j++]=true;$1.getRSSwidths();var _G4=$k[--$j];$1[$k[--$j]]=_G4;$k[$j++]="cwe";$k[$j++]=$f($1.checksum-$1.cgs)%$1.cte;$k[$j++]=$1.cele;$k[$j++]=$1.cmwe;$k[$j++]=4;$k[$j++]=false;$1.getRSSwidths();var _GB=$k[--$j];$1[$k[--$j]]=_GB;$1.cw=$a(8);for(var _GE=0;_GE<=3;_GE+=1){$1.i=_GE;$p($1.cw,$1.i*2,$g($1.cwo,$1.i));$p($1.cw,$1.i*2+1,$g($1.cwe,$1.i))}var _GP=$a(22);$p(_GP,0,$1.cw);$P(_GP,1,$1.dxw);$1.dxw=$G(_GP,0,$1.datalen+1);$1.datalen=$1.dxw.length;$1.rows=$a(~~Math.ceil($1.datalen/$1.segments));$1.numrows=$1.rows.length;for(var _Gb=0,_Ga=$1.numrows-1;_Gb<=_Ga;_Gb+=1){$1.r=_Gb;$k[$j++]=Infinity;if($1.segments%4!=0&&$1.r%2==1){$k[$j++]=0}$k[$j++]=1;$k[$j++]=1;for(var _Gg=0,_Gf=$1.segments-1;_Gg<=_Gf;_Gg+=1){$1.pos=_Gg+$1.r*$1.segments;if($1.pos<$1.datalen){$F($g($1.dxw,$1.pos));if($1.pos%2==0){$F($g($1.fxw,~~($1.pos/2)))}}}var _Gs=$m()+2;$k[$j++]=1;$k[$j++]=1;$r($a(_Gs));$p($1.rows,$1.r,$k[--$j]);$j--}if($ne($1.format,"expandedstacked")){var _Gz=$g($1.rows,0);$1.sbs=$G(_Gz,1,_Gz.length-1);$k[$j++]=Infinity;$k[$j++]=1;for(var _H3=0,_H2=$1.datalen-1;_H3<=_H2;_H3+=1){$1.i=_H3;$F($g($1.dxw,$1.i));if($1.i%2==0){$F($g($1.fxw,~~($1.i/2)))}}$k[$j++]=1;$k[$j++]=1;$1.sbs=$a();delete $1.options["parse"];$k[$j++]=Infinity;var _HD=$1.sbs;$k[$j++]=Infinity;for(var _HF=0,_HG=~~(($1.sbs.length+1)/2);_HF<_HG;_HF++){$k[$j++]=$1.height}var _HI=$a();$k[$j++]=Infinity;for(var _HK=0,_HL=~~(($1.sbs.length+1)/2);_HK<_HL;_HK++){$k[$j++]=0}var _HM=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_HD;$k[$j++]="bhs";$k[$j++]=_HI;$k[$j++]="bbs";$k[$j++]=_HM;$k[$j++]="opt";$k[$j++]=$1.options;var _HO=$d();$k[$j++]=_HO;if(!$1.dontdraw){$0.renlinear()}}else{$1.seps=$a($1.numrows);for(var _HU=0,_HT=$1.numrows-1;_HU<=_HT;_HU+=1){$1.r=_HU;$1.row=$g($1.rows,$1.r);$k[$j++]=Infinity;for(var _Ha=0,_HZ=$1.row.length-1;_Ha<=_HZ;_Ha+=2){$1.i=_Ha;for(var _He=0,_Hf=$g($1.row,$1.i);_He<_Hf;_He++){$k[$j++]=0}if($1.i<$1.row.length-1){for(var _Hl=0,_Hm=$g($1.row,$1.i+1);_Hl<_Hm;_Hl++){$k[$j++]=1}}}$r($a($m()));$1.row=$k[--$j];$j--;$k[$j++]=Infinity;$F($1.row,function(){var _Hr=$k[--$j];$k[$j++]=$f(1-_Hr)});$1.sep=$a();$k[$j++]=Infinity;for(var _Hv=19,_Hu=$1.row.length-13;_Hv<=_Hu;_Hv+=98){$k[$j++]=_Hv}for(var _Hy=68,_Hx=$1.row.length-13;_Hy<=_Hx;_Hy+=98){$k[$j++]=_Hy}$1.finderpos=$a();var _I0=$1.finderpos;for(var _I1=0,_I2=_I0.length;_I1<_I2;_I1++){var _I3=$g(_I0,_I1);for(var _I5=_I3,_I4=$f(_I3+14);_I5<=_I4;_I5+=1){$1.i=_I5;if($g($1.row,$1.i)==0){if($g($1.row,$1.i-1)==1){$k[$j++]=1}else{var _IF=$g($1.sep,$1.i-1)==0?1:0;$k[$j++]=_IF}}else{$k[$j++]=0}$p($1.sep,$1.i,$k[--$j])}}$P($1.sep,0,$a([0,0,0,0]));$P($1.sep,$1.row.length-4,$a([0,0,0,0]));if($1.segments%4==0&&$1.r%2==1){if($g($1.rows,$1.r).length!=$g($1.rows,0).length&&$1.finderpos.length%2==1){$k[$j++]=Infinity;$k[$j++]=0;$q($1.row);$1.row=$a();$k[$j++]=Infinity;$k[$j++]=0;$q($1.sep);$1.sep=$a()}else{for(var _Ib=$1.row.length-1;_Ib>=0;_Ib-=1){$k[$j++]=$g($1.row,_Ib)}$r($1.row);$j--;for(var _Ig=$1.sep.length-1;_Ig>=0;_Ig-=1){$k[$j++]=$g($1.sep,_Ig)}$r($1.sep);$j--}}$p($1.rows,$1.r,$1.row);$p($1.seps,$1.r,$1.sep)}$1.pixx=$g($1.rows,0).length;$k[$j++]=Infinity;for(var _It=0,_Iu=$1.pixx;_It<_Iu;_It++){$k[$j++]=0}var _Iv=$a();$P(_Iv,0,$g($1.rows,$1.numrows-1));$p($1.rows,$1.numrows-1,_Iv);$k[$j++]=Infinity;for(var _J2=0,_J3=$1.pixx;_J2<_J3;_J2++){$k[$j++]=0}var _J4=$a();$P(_J4,0,$g($1.seps,$1.numrows-1));$p($1.seps,$1.numrows-1,_J4);$k[$j++]=Infinity;for(var _JB=0,_JC=~~($1.pixx/2)+1;_JB<_JC;_JB++){$k[$j++]=0;$k[$j++]=1}$1.sep=$G($a(),0,$1.pixx);$P($1.sep,0,$a([0,0,0,0]));$P($1.sep,$1.pixx-4,$a([0,0,0,0]));$k[$j++]=Infinity;for(var _JN=0,_JM=$1.numrows-1;_JN<=_JM;_JN+=1){$1.r=_JN;if($1.r!=0){$q($g($1.seps,$1.r))}for(var _JT=0,_JU=$1.barxmult;_JT<_JU;_JT++){$q($g($1.rows,$1.r))}if($1.r!=$1.numrows-1){$q($g($1.seps,$1.r));$q($1.sep)}}$1.pixs=$a();delete $1.options["parse"];var _Jo=new Map([["ren",$0.renmatrix],["pixs",$1.pixs],["pixx",$1.pixx],["pixy",~~($1.pixs.length/$1.pixx)],["height",~~($1.pixs.length/$1.pixx)/72],["width",$1.pixx/72],["opt",$1.options]]);$k[$j++]=_Jo;if(!$1.dontdraw){$0.renmatrix()}}};$0.databarexpandedstacked=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$p($1.options,"dontdraw",true);$p($1.options,"format","expandedstacked");$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.databarexpanded();var _9=$k[--$j];$1[$k[--$j]]=_9;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.gs1northamericancoupon=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.coupontextfont="OCR-B";$1.coupontextsize=9;$1.coupontextxoffset="unset";$1.coupontextyoffset="unset";$1.parse=false;$1.dontlint=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.coupontextfont=""+$1.coupontextfont;$1.coupontextsize=+$1.coupontextsize;if($ne($1.coupontextxoffset,"unset")){$1.coupontextxoffset=+$1.coupontextxoffset}if($ne($1.coupontextyoffset,"unset")){$1.coupontextyoffset=+$1.coupontextyoffset}$1.expand=function(){var _C=new Map([["parse",$1.parse],["parseonly",true],["parsefnc",false]]);$1.fncvals=_C;$k[$j++]=$1.fncvals;$0.parseinput()};$1.ais=$a([]);$1.vals=$a([]);var _G=$1.barcode;$k[$j++]=$G(_G,1,_G.length-1);for(;;){var _I=$k[--$j];$k[$j++]=_I;if($eq(_I,"")){break}$x($k[--$j],")");$j--;var _K=$k[--$j];var _L=$k[--$j];$k[$j++]=_K;$k[$j++]=_L;$j--;var _M=$k[--$j];var _N=$k[--$j];$k[$j++]=_M;$x(_N,"(");if($k[--$j]){var _P=$k[--$j];var _Q=$k[--$j];$k[$j++]=_P;$k[$j++]=_Q;$j--;var _R=$k[--$j];var _S=$k[--$j];var _T=$k[--$j];$k[$j++]=_S;$k[$j++]=_T;$k[$j++]=_R}else{var _U=$k[--$j];var _V=$k[--$j];$k[$j++]="";$k[$j++]=_V;$k[$j++]=_U}$k[$j++]=Infinity;$q($1.ais);var _Y=$k[$j-1-($m()+2)];$k[$j++]=_Y;$1.ais=$a();$k[$j++]=Infinity;$q($1.vals);var _c=$k[$j-1-($m()+1)];$k[$j++]=_c;$1.expand();$1.vals=$a();$j-=2}$j--;if($1.ais.length!=1){$k[$j++]="bwipp.gs1northamericancouponBadAIStructure";$k[$j++]="A GS1 North American Coupon should consist of a single AI (8110)";$0.raiseerror()}if($ne($g($1.ais,0),"8110")){$k[$j++]="bwipp.gs1northamericancouponBadAIStructure";$k[$j++]="A GS1 North American Coupon should consist of a single AI (8110)";$0.raiseerror()}if(!$1.dontlint){$k[$j++]=$1.ais;$k[$j++]=$1.vals;$0.gs1lint();$j--}$1.val=$g($1.vals,0);$1.vli=$f($g($1.val,0)-48);if($1.vli<0||$1.vli>6){$k[$j++]="bwipp.gs1northamericancouponBadVLI";$k[$j++]="The AI (8110) data should start with a Company Prefix length indicator in the range 0 to 6";$0.raiseerror()}$1.gcp=$G($1.val,1,$f($1.vli+6));$1.cod=$G($1.val,$f($1.vli+7),6);$1.coupontext=$s($1.gcp.length+7);$P($1.coupontext,0,$1.gcp);$P($1.coupontext,$1.gcp.length,"-");$P($1.coupontext,$1.gcp.length+1,$1.cod);delete $1.options["parse"];$p($1.options,"dontdraw",true);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.databarexpandedstacked();var _19=$k[--$j];$1[$k[--$j]]=_19;if($1.includetext){if($1.coupontextxoffset=="unset"){$1.coupontextxoffset=0}if($1.coupontextyoffset=="unset"){$1.coupontextyoffset=$f($g($1.args,"height")*72+3)}var _1H=$g($1.args,"txt")!==undefined;if(_1H){$1.txt=$g($1.args,"txt");$1.newtxt=$a($1.txt.length+1);$P($1.newtxt,0,$1.txt);$p($1.newtxt,$1.newtxt.length-1,$a([$1.coupontext,$1.coupontextxoffset,$1.coupontextyoffset,$1.coupontextfont,$1.coupontextsize]));$p($1.args,"txt",$1.newtxt)}else{$p($1.args,"txt",$a([$a([$1.coupontext,$1.coupontextxoffset,$1.coupontextyoffset,$1.coupontextfont,$1.coupontextsize])]))}}$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.pharmacode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.height=8*2.835/72;$1.nwidth=.5*2.835;$1.wwidth=1.5*2.835;$1.swidth=1*2.835;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.height=+$1.height;$1.nwidth=+$1.nwidth;$1.wwidth=+$1.wwidth;$1.swidth=+$1.swidth;if($1.barcode.length<1||$1.barcode.length>6){$k[$j++]="bwipp.pharmacodeBadLength";$k[$j++]="Pharmacode must be 1 to 6 digits";$0.raiseerror()}$F($1.barcode,function(){var _C=$k[--$j];if(_C<48||_C>57){$k[$j++]="bwipp.pharmacodeBadCharacter";$k[$j++]="Pharmacode must contain only digits";$0.raiseerror()}});var _E=~~$z($1.barcode);if(_E<3||_E>131070){$k[$j++]="bwipp.pharmacodeBadValue";$k[$j++]="Pharmacode value must be between 3 and 131070";$0.raiseerror()}$1.txt=$a($1.barcode.length);for(var _J=0,_I=$1.barcode.length-1;_J<=_I;_J+=1){$1.i=_J;$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),0,0,"",0]))}$1.barcode=$R($s(17),~~$z($1.barcode)+1,2);$1.barcode=$G($1.barcode,1,$1.barcode.length-1);$1.barlen=$1.barcode.length;$1.sbs=$a($1.barlen*2);for(var _b=0,_a=$1.barlen-1;_b<=_a;_b+=1){$1.i=_b;$1.enc=$G($1.barcode,$1.i,1);if($eq($1.enc,"0")){$p($1.sbs,$1.i*2,$1.nwidth)}else{$p($1.sbs,$1.i*2,$1.wwidth)}$p($1.sbs,$1.i*2+1,$1.swidth)}$k[$j++]=Infinity;var _p=$1.sbs;$k[$j++]=Infinity;for(var _r=0,_s=~~(($1.sbs.length+1)/2);_r<_s;_r++){$k[$j++]=$1.height}var _u=$a();$k[$j++]=Infinity;for(var _w=0,_x=~~(($1.sbs.length+1)/2);_w<_x;_w++){$k[$j++]=0}var _y=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_p;$k[$j++]="bhs";$k[$j++]=_u;$k[$j++]="bbs";$k[$j++]=_y;$k[$j++]="txt";$k[$j++]=$1.txt;$k[$j++]="textxalign";$k[$j++]="center";$k[$j++]="opt";$k[$j++]=$1.options;var _11=$d();$k[$j++]=_11;if(!$1.dontdraw){$0.renlinear()}};$0.pharmacode2=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.height=4;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.height=+$1.height;if($1.barcode.length<1||$1.barcode.length>8){$k[$j++]="bwipp.pharmacode2BadLength";$k[$j++]="Two-track Pharmacode must be 1 to 6 digits";$0.raiseerror()}$F($1.barcode,function(){var _9=$k[--$j];if(_9<48||_9>57){$k[$j++]="bwipp.pharmacode2badCharacter";$k[$j++]="Two-track Pharmacode must contain only digits";$0.raiseerror()}});var _B=~~$z($1.barcode);if(_B<4||_B>64570080){$k[$j++]="bwipp.pharmacode2badValue";$k[$j++]="Two-track Pharmacode value must be between 4 and 64570080";$0.raiseerror()}$1.txt=$a($1.barcode.length);for(var _G=0,_F=$1.barcode.length-1;_G<=_F;_G+=1){$1.i=_G;$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),0,0,"",0]))}$1.encstr=$s(16);$1.sbs=$a(32);$1.bar=1/25.4*$1.height;$1.spc=1/25.4*72;$1.i=15;$1.val=~~$z($1.barcode);for(;;){if($1.val==0){break}var _T=$1.val%3;$1.val=~~($f($1.val-$g($a([3,1,2]),_T))/3);$p($1.encstr,$1.i,$g($a([2,0,1]),_T));$1.i=$1.i-1}$1.encstr=$G($1.encstr,$1.i+1,15-$1.i);$1.bhs=$a($1.encstr.length);$1.bbs=$a($1.encstr.length);for(var _m=0,_l=$1.encstr.length-1;_m<=_l;_m+=1){$1.i=_m;var _p=$g($1.encstr,$1.i);$p($1.bhs,$1.i,$1.bar*$g($a([1,1,2]),_p));$p($1.bbs,$1.i,$g($a([0,$1.bar,0]),_p))}$k[$j++]=Infinity;var _10=$1.bhs;var _11=$1.bbs;$k[$j++]=Infinity;for(var _13=0,_14=$1.encstr.length*2;_13<_14;_13++){$k[$j++]=$1.spc}var _16=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="bhs";$k[$j++]=_10;$k[$j++]="bbs";$k[$j++]=_11;$k[$j++]="sbs";$k[$j++]=_16;$k[$j++]="txt";$k[$j++]=$1.txt;$k[$j++]="textxalign";$k[$j++]="center";$k[$j++]="textyoffset";$k[$j++]=4;$k[$j++]="opt";$k[$j++]=$1.options;var _19=$d();$k[$j++]=_19;if(!$1.dontdraw){$0.renlinear()}};$0.code2of5=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includecheck=false;$1.validatecheck=false;$1.includetext=false;$1.includecheckintext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.height=1;$1.version="industrial";$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$F($1.barcode,function(){var _A=$k[--$j];if(_A<48||_A>57){$k[$j++]="bwipp.code2of5badCharacter";$k[$j++]="Code 25 must contain only digits";$0.raiseerror()}});$k[$j++]="barlen";$k[$j++]=$1.barcode.length;if($1.validatecheck){var _D=$k[--$j];$k[$j++]=$f(_D-1)}var _E=$k[--$j];$1[$k[--$j]]=_E;$1.checksum=0;for(var _I=0,_H=$f($1.barlen-1);_I<=_H;_I+=1){$1.i=_I;$k[$j++]="checksum";$k[$j++]=$1.checksum;$k[$j++]=$f($g($1.barcode,$1.i)-48);if($f($1.barlen-$1.i)%2!=0){var _P=$k[--$j];$k[$j++]=_P*3}var _Q=$k[--$j];var _R=$k[--$j];$1[$k[--$j]]=$f(_R+_Q)}$1.checksum=(10-$1.checksum%10)%10;if($1.validatecheck){if($g($1.barcode,$1.barlen)!=$1.checksum+48){$k[$j++]="bwipp.code2of5badCheckDigit";$k[$j++]="Incorrect Code 25 check digit provided";$0.raiseerror()}$1.barcode=$G($1.barcode,0,$1.barlen);$1.includecheck=true}var _h=new Map([["industrial",$a(["1111313111","3111111131","1131111131","3131111111","1111311131","3111311111","1131311111","1111113131","3111113111","1131113111","313111","31113"])],["iata",$a(["1111313111","3111111131","1131111131","3131111111","1111311131","3111311111","1131311111","1111113131","3111113111","1131113111","1111","311"])],["matrix",$a(["113311","311131","131131","331111","113131","313111","133111","111331","311311","131311","311111","31111"])],["coop",$a(["331111","111331","113131","113311","131131","131311","133111","311131","311311","313111","3131","133"])],["datalogic",$a(["113311","311131","131131","331111","113131","313111","133111","111331","311311","131311","1111","311"])]]);$1.versions=_h;var _k=$g($1.versions,$1.version)!==undefined;if(!_k){$k[$j++]="bwipp.code2of5badVersion";$k[$j++]="Unrecognised Code 25 version";$0.raiseerror()}$1.encs=$g($1.versions,$1.version);$1.cs=$g($1.encs,0).length;$k[$j++]="cw";$k[$j++]=0;$F($g($1.encs,0),function(){var _s=$k[--$j];var _t=$k[--$j];$k[$j++]=$f(_t+$f(_s-48))});var _u=$k[--$j];$1[$k[--$j]]=_u;$1.ss=$g($1.encs,10).length;$k[$j++]="sw";$k[$j++]=0;$F($g($1.encs,10),function(){var _10=$k[--$j];var _11=$k[--$j];$k[$j++]=$f(_11+$f(_10-48))});var _12=$k[--$j];$1[$k[--$j]]=_12;$1.es=$g($1.encs,11).length;$1.barchars="0123456789";$k[$j++]="sbs";$k[$j++]=$1.barlen;if($1.includecheck){var _18=$k[--$j];$k[$j++]=$f(_18+1)}var _1D=$s($f($f($k[--$j]*$1.cs+$1.ss)+$1.es));$1[$k[--$j]]=_1D;$k[$j++]="txt";$k[$j++]=$1.barlen;if($1.includecheck){var _1H=$k[--$j];$k[$j++]=$f(_1H+1)}var _1J=$a($k[--$j]);$1[$k[--$j]]=_1J;$P($1.sbs,0,$g($1.encs,10));for(var _1Q=0,_1P=$f($1.barlen-1);_1Q<=_1P;_1Q+=1){$1.i=_1Q;$x($1.barchars,$G($1.barcode,$1.i,1));$j--;$1.indx=$k[--$j].length;$j-=2;$1.enc=$g($1.encs,$1.indx);$P($1.sbs,$1.i*$1.cs+$1.ss,$1.enc);$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),$f($1.i*$1.cw+$1.sw),$1.textyoffset,$1.textfont,$1.textsize]))}if($1.includecheck){$P($1.sbs,$f($1.barlen*$1.cs+$1.ss),$g($1.encs,$1.checksum));$P($1.sbs,$f($f($1.barlen*$1.cs+$1.cs)+$1.ss),$g($1.encs,11));if($1.includecheckintext){$p($1.txt,$1.barlen,$a([$G($1.barchars,$1.checksum,1),$f($1.barlen*$1.cw+$1.sw),$1.textyoffset,$1.textfont,$1.textsize]))}else{$p($1.txt,$1.barlen,$a([" ",$f($1.barlen*$1.cw+$1.sw),$1.textyoffset,$1.textfont,$1.textsize]))}}else{$P($1.sbs,$f($1.barlen*$1.cs+$1.ss),$g($1.encs,11))}$k[$j++]=Infinity;$k[$j++]=Infinity;$F($1.sbs,function(){var _2Y=$k[--$j];$k[$j++]=$f(_2Y-48)});var _2Z=$a();$k[$j++]=Infinity;for(var _2b=0,_2c=~~(($1.sbs.length+1)/2);_2b<_2c;_2b++){$k[$j++]=$1.height}var _2e=$a();$k[$j++]=Infinity;for(var _2g=0,_2h=~~(($1.sbs.length+1)/2);_2g<_2h;_2g++){$k[$j++]=0}var _2i=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_2Z;$k[$j++]="bhs";$k[$j++]=_2e;$k[$j++]="bbs";$k[$j++]=_2i;if($1.includetext){$k[$j++]="txt";$k[$j++]=$1.txt}$k[$j++]="opt";$k[$j++]=$1.options;var _2m=$d();$k[$j++]=_2m;if(!$1.dontdraw){$0.renlinear()}};$0.industrial2of5=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textxoffset=0;$1.textyoffset=-8;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$p($1.options,"dontdraw",true);$p($1.options,"version","industrial");$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.code2of5();var _E=$k[--$j];$1[$k[--$j]]=_E;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.iata2of5=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textxoffset=0;$1.textyoffset=-8;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$p($1.options,"dontdraw",true);$p($1.options,"version","iata");$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.code2of5();var _E=$k[--$j];$1[$k[--$j]]=_E;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.matrix2of5=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textxoffset=0;$1.textyoffset=-8;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$p($1.options,"dontdraw",true);$p($1.options,"version","matrix");$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.code2of5();var _E=$k[--$j];$1[$k[--$j]]=_E;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.coop2of5=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textxoffset=0;$1.textyoffset=-8;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$p($1.options,"dontdraw",true);$p($1.options,"version","coop");$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.code2of5();var _E=$k[--$j];$1[$k[--$j]]=_E;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.datalogic2of5=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textxoffset=0;$1.textyoffset=-8;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$p($1.options,"dontdraw",true);$p($1.options,"version","datalogic");$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.code2of5();var _E=$k[--$j];$1[$k[--$j]]=_E;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.code11=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includecheck=false;$1.validatecheck=false;$1.includetext=false;$1.includecheckintext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.encs=$a(["111131","311131","131131","331111","113131","313111","133111","111331","311311","311111","113111","113311"]);$1.barchars="0123456789-";$1.charvals=new Map;for(var _A=0;_A<=10;_A+=1){$p($1.charvals,$G($1.barchars,_A,1),_A)}for(var _G=0,_F=$1.barcode.length-1;_G<=_F;_G+=1){var _K=$g($1.charvals,$G($1.barcode,_G,1))!==undefined;if(!_K){$k[$j++]="bwipp.code11badCharacter";$k[$j++]="Code 11 must contain only digits and dashes";$0.raiseerror()}}$1.barlen=$1.barcode.length;if($1.validatecheck){if($1.barlen==11){$k[$j++]="bwipp.code11badLength";$k[$j++]="Code 11 cannot be 11 characters using check digits";$0.raiseerror()}var _Q=$1.barlen<=10?1:2;$1.barlen=$1.barlen-_Q}$k[$j++]="numchecks";if($1.includecheck||$1.validatecheck){var _U=$1.barlen>=10?2:1;$k[$j++]=_U}else{$k[$j++]=0}var _V=$k[--$j];$1[$k[--$j]]=_V;$1.checksum1=0;$1.checksum2=0;for(var _Z=0,_Y=$1.barlen-1;_Z<=_Y;_Z+=1){$1.i=_Z;$1.indx=$g($1.charvals,$G($1.barcode,$1.i,1));$1.checksum1=$f($1.checksum1+(($1.barlen-$1.i-1)%10+1)*$1.indx);$1.checksum2=$f($1.checksum2+(($1.barlen-$1.i)%9+1)*$1.indx)}$1.checksum1=$1.checksum1%11;$1.checksum2=$f($1.checksum2+$1.checksum1)%11;if($1.validatecheck){if($1.numchecks==1){if($g($1.barcode,$1.barlen)!=$g($1.barchars,$1.checksum1)){$k[$j++]="bwipp.code11badCheckDigit";$k[$j++]="Incorrect Code 11 check digit provided";$0.raiseerror()}}else{if($g($1.barcode,$1.barlen)!=$g($1.barchars,$1.checksum1)||$g($1.barcode,$1.barlen+1)!=$g($1.barchars,$1.checksum2)){$k[$j++]="bwipp.code11badCheckDigits";$k[$j++]="Incorrect Code 11 check digits provided";$0.raiseerror()}}$1.barcode=$G($1.barcode,0,$1.barlen);$1.includecheck=true}$1.sbs=$s($f($f($1.barlen+$1.numchecks)*6+12));$1.txt=$a($f($1.barlen+$1.numchecks));$P($1.sbs,0,$g($1.encs,11));$1.xpos=8;for(var _1O=0,_1N=$1.barlen-1;_1O<=_1N;_1O+=1){$1.i=_1O;$1.indx=$g($1.charvals,$G($1.barcode,$1.i,1));$1.enc=$g($1.encs,$1.indx);$P($1.sbs,$1.i*6+6,$1.enc);$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),$1.xpos,$1.textyoffset,$1.textfont,$1.textsize]));for(var _1k=0;_1k<=5;_1k+=1){$1.xpos=$f($f($g($1.enc,_1k)-48)+$1.xpos)}}if($1.includecheck){if($1.barlen>=10){$P($1.sbs,$1.barlen*6+6,$g($1.encs,$1.checksum1));$P($1.sbs,$1.barlen*6+12,$g($1.encs,$1.checksum2));if($1.includecheckintext){$p($1.txt,$1.barlen,$a([$G($1.barchars,$1.checksum1,1),$1.xpos,$1.textyoffset,$1.textfont,$1.textsize]));$1.enc=$g($1.encs,$1.checksum1);for(var _2E=0;_2E<=5;_2E+=1){$1.xpos=$f($f($g($1.enc,_2E)-48)+$1.xpos)}$p($1.txt,$1.barlen+1,$a([$G($1.barchars,$1.checksum2,1),$1.xpos,$1.textyoffset,$1.textfont,$1.textsize]))}else{$p($1.txt,$1.barlen,$a(["",$1.xpos,$1.textyoffset,$1.textfont,$1.textsize]));$p($1.txt,$1.barlen+1,$a(["",$1.xpos,$1.textyoffset,$1.textfont,$1.textsize]))}$P($1.sbs,$1.barlen*6+18,$g($1.encs,11))}else{$P($1.sbs,$1.barlen*6+6,$g($1.encs,$1.checksum1));if($1.includecheckintext){$p($1.txt,$1.barlen,$a([$G($1.barchars,$1.checksum1,1),$1.xpos,$1.textyoffset,$1.textfont,$1.textsize]))}else{$p($1.txt,$1.barlen,$a(["",$1.xpos,$1.textyoffset,$1.textfont,$1.textsize]))}$P($1.sbs,$1.barlen*6+12,$g($1.encs,11))}}else{$P($1.sbs,$1.barlen*6+6,$g($1.encs,11))}$k[$j++]=Infinity;$k[$j++]=Infinity;var _3F=$1.sbs;for(var _3G=0,_3H=_3F.length;_3G<_3H;_3G++){$k[$j++]=$g(_3F,_3G)-48}var _3J=$a();$k[$j++]=Infinity;for(var _3L=0,_3M=~~(($1.sbs.length+1)/2);_3L<_3M;_3L++){$k[$j++]=$1.height}var _3O=$a();$k[$j++]=Infinity;for(var _3Q=0,_3R=~~(($1.sbs.length+1)/2);_3Q<_3R;_3Q++){$k[$j++]=0}var _3S=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_3J;$k[$j++]="bhs";$k[$j++]=_3O;$k[$j++]="bbs";$k[$j++]=_3S;if($1.includetext){$k[$j++]="txt";$k[$j++]=$1.txt}$k[$j++]="opt";$k[$j++]=$1.options;var _3W=$d();$k[$j++]=_3W;if(!$1.dontdraw){$0.renlinear()}};$0.bc412=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includecheck=false;$1.validatecheck=false;$1.includetext=false;$1.includecheckintext=false;$1.includestartstop=false;$1.semi=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;if($1.semi){$1.includecheck=true;$1.includestartstop=true}$1.barchars="0R9GLVHA8EZ4NTS1J2Q6C7DYKBUIX3FWP5M";$1.charvals=new Map;for(var _A=0;_A<=34;_A+=1){$p($1.charvals,$G($1.barchars,_A,1),_A)}for(var _G=0,_F=$1.barcode.length-1;_G<=_F;_G+=1){var _K=$g($1.charvals,$G($1.barcode,_G,1))!==undefined;if(!_K){$k[$j++]="bwipp.bc412badCharacter";$k[$j++]="BC412 must contain only digits and capital letters except O";$0.raiseerror()}}$k[$j++]="barlen";$k[$j++]=$1.barcode.length;if($1.validatecheck){var _N=$k[--$j];$k[$j++]=$f(_N-1)}var _O=$k[--$j];$1[$k[--$j]]=_O;$1.checksum=0;for(var _S=0,_R=$f($1.barlen-1);_S<=_R;_S+=1){$1.checksum=$f($g($1.charvals,$G($1.barcode,_S,1))+$1.checksum)}$1.checksum=$1.checksum%35;if($1.validatecheck){if($g($1.barcode,$1.barlen)!=$g($1.barchars,$1.checksum)){$k[$j++]="bwipp.bc412badCheckDigit";$k[$j++]="Incorrect BC412 check digit provided";$0.raiseerror()}$1.barcode=$G($1.barcode,0,$1.barlen);$1.includecheck=true}$1.encs=$a(["11111115","13111212","11131113","12111213","12121311","13131111","12111312","11131212","11121411","11151111","15111111","11111511","12131211","13121112","13111212","11111214","12121113","11111313","13111113","11121213","11141112","11121312","11141211","14121111","12121212","11131311","13121211","12111411","14111211","11111412","12111114","14111112","12141111","11121114","12131112","12","111"]);$1.sbs=$s($f($f($1.barlen+1)*8+5));if($1.includecheck){$1.txt=$a($f($1.barlen+1))}else{$1.txt=$a($1.barlen)}if($1.includestartstop){$P($1.sbs,0,$g($1.encs,35));$1.pos=2;$1.txtpos=3}else{$1.pos=0;$1.txtpos=0}for(var _x=0,_w=$f($1.barlen-1);_x<=_w;_x+=1){$1.i=_x;$1.indx=$g($1.charvals,$G($1.barcode,$1.i,1));$P($1.sbs,$1.pos,$g($1.encs,$1.indx));$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),$1.i*12+$1.txtpos,$1.textyoffset,$1.textfont,$1.textsize]));$1.pos=$1.pos+8}if($1.includecheck){$P($1.sbs,$1.pos,$g($1.encs,$1.checksum));if($1.includecheckintext){$p($1.txt,$1.barlen,$a([$G($1.barchars,$1.checksum,1),$f($1.barlen*12+$1.txtpos),$1.textyoffset,$1.textfont,$1.textsize]))}else{$p($1.txt,$1.barlen,$a(["",$f($1.barlen*12+$1.txtpos),$1.textyoffset,$1.textfont,$1.textsize]))}$1.pos=$1.pos+8}if($1.includestartstop){$P($1.sbs,$1.pos,$g($1.encs,36));$1.pos=$1.pos+2}$1.sbs=$G($1.sbs,0,$1.pos);$k[$j++]=Infinity;$k[$j++]=Infinity;var _1u=$1.sbs;for(var _1v=0,_1w=_1u.length;_1v<_1w;_1v++){$k[$j++]=$f($g(_1u,_1v)-48)}var _1y=$a();$k[$j++]=Infinity;for(var _20=0,_21=~~(($1.sbs.length+1)/2);_20<_21;_20++){$k[$j++]=$1.height}var _23=$a();$k[$j++]=Infinity;for(var _25=0,_26=~~(($1.sbs.length+1)/2);_25<_26;_25++){$k[$j++]=0}var _27=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_1y;$k[$j++]="bhs";$k[$j++]=_23;$k[$j++]="bbs";$k[$j++]=_27;if($1.includetext){$k[$j++]="txt";$k[$j++]=$1.txt}$k[$j++]="opt";$k[$j++]=$1.options;var _2B=$d();$k[$j++]=_2B;if(!$1.dontdraw){$0.renlinear()}};$0.rationalizedCodabar=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.altstartstop=false;$1.includecheck=false;$1.validatecheck=false;$1.includetext=false;$1.includecheckintext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.encs=$a(["11111331","11113311","11131131","33111111","11311311","31111311","13111131","13113111","13311111","31131111","11133111","11331111","31113131","31311131","31313111","11313131","11331311","13131131","11131331","11133311"]);if($1.altstartstop){$1.barchars="0123456789-$:/.+TN*E"}else{$1.barchars="0123456789-$:/.+ABCD"}$1.charvals=new Map;for(var _B=0;_B<=19;_B+=1){$p($1.charvals,$G($1.barchars,_B,1),_B)}$1.bodyvals=new Map;for(var _F=0;_F<=15;_F+=1){$p($1.bodyvals,$G($1.barchars,_F,1),_F)}$1.ssvals=new Map;for(var _J=16;_J<=19;_J+=1){$p($1.ssvals,$G($1.barchars,_J,1),_J)}var _Q=$g($1.ssvals,$G($1.barcode,0,1))!==undefined;var _V=$g($1.ssvals,$G($1.barcode,$1.barcode.length-1,1))!==undefined;if(!_Q||!_V){if($1.altstartstop){$k[$j++]="bwipp.rationalizedCodabarBadAltStartStop";$k[$j++]="Codabar start and stop characters must be one of E N T or *";$0.raiseerror()}else{$k[$j++]="bwipp.rationalizedCodabarBadStartStop";$k[$j++]="Codabar start and stop characters must be one of A B C or D";$0.raiseerror()}}for(var _Z=1,_Y=$1.barcode.length-2;_Z<=_Y;_Z+=1){var _d=$g($1.bodyvals,$G($1.barcode,_Z,1))!==undefined;if(!_d){$k[$j++]="bwipp.rationalizedCodabarBadCharacter";$k[$j++]="Codabar body must contain only digits and symbols - $ : / . +";$0.raiseerror()}}$k[$j++]="barlen";$k[$j++]=$1.barcode.length;if($1.validatecheck){var _g=$k[--$j];$k[$j++]=$f(_g-1)}var _h=$k[--$j];$1[$k[--$j]]=_h;$1.checksum=0;for(var _l=0,_k=$f($1.barlen-2);_l<=_k;_l+=1){$1.checksum=$f($g($1.charvals,$G($1.barcode,_l,1))+$1.checksum)}$1.checksum=$f($g($1.charvals,$G($1.barcode,$1.barcode.length-1,1))+$1.checksum);$1.checksum=$f(16-$1.checksum%16)%16;if($1.validatecheck){if($g($1.barcode,$f($1.barlen-1))!=$g($1.barchars,$1.checksum)){$k[$j++]="bwipp.rationalizedCodabarBadCheckDigit";$k[$j++]="Incorrect Codabar check digit provided";$0.raiseerror()}var _16=$s($1.barlen);$P(_16,0,$G($1.barcode,0,$f($1.barlen-1)));$P(_16,$f($1.barlen-1),$G($1.barcode,$1.barlen,1));$1.barcode=_16;$1.includecheck=true}$k[$j++]="sbs";$k[$j++]=$1.barlen;if($1.includecheck){var _1G=$k[--$j];$k[$j++]=$f(_1G+1)}var _1I=$s($k[--$j]*8);$1[$k[--$j]]=_1I;$k[$j++]="txt";$k[$j++]=$1.barlen;if($1.includecheck){var _1M=$k[--$j];$k[$j++]=$f(_1M+1)}var _1O=$a($k[--$j]);$1[$k[--$j]]=_1O;$1.xpos=0;for(var _1S=0,_1R=$f($1.barlen-2);_1S<=_1R;_1S+=1){$1.i=_1S;$1.indx=$g($1.charvals,$G($1.barcode,$1.i,1));$1.enc=$g($1.encs,$1.indx);$P($1.sbs,$1.i*8,$1.enc);$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),$1.xpos,$1.textyoffset,$1.textfont,$1.textsize]));for(var _1o=0;_1o<=7;_1o+=1){$1.xpos=$f($f($g($1.enc,_1o)-48)+$1.xpos)}}if($1.includecheck){$P($1.sbs,$f($1.barlen*8-8),$g($1.encs,$1.checksum));if($1.includecheckintext){$p($1.txt,$f($1.barlen-1),$a([$G($1.barchars,$1.checksum,1),$1.xpos,$1.textyoffset,$1.textfont,$1.textsize]))}else{$p($1.txt,$f($1.barlen-1),$a([" ",$1.xpos,$1.textyoffset,$1.textfont,$1.textsize]))}for(var _2G=0;_2G<=7;_2G+=1){$1.xpos=$f($f($g($g($1.encs,$1.checksum),_2G)-48)+$1.xpos)}$1.indx=$g($1.charvals,$G($1.barcode,$f($1.barlen-1),1));$1.enc=$g($1.encs,$1.indx);$P($1.sbs,$1.barlen*8,$1.enc);$p($1.txt,$1.barlen,$a([$G($1.barcode,$f($1.barlen-1),1),$1.xpos,$1.textyoffset,$1.textfont,$1.textsize]))}else{$1.indx=$g($1.charvals,$G($1.barcode,$f($1.barlen-1),1));$1.enc=$g($1.encs,$1.indx);$P($1.sbs,$f($1.barlen*8-8),$1.enc);$p($1.txt,$f($1.barlen-1),$a([$G($1.barcode,$f($1.barlen-1),1),$1.xpos,$1.textyoffset,$1.textfont,$1.textsize]))}$k[$j++]=Infinity;$k[$j++]=Infinity;$F($1.sbs,function(){var _33=$k[--$j];$k[$j++]=$f(_33-48)});var _34=$a();$k[$j++]=Infinity;for(var _36=0,_37=~~(($1.sbs.length+1)/2);_36<_37;_36++){$k[$j++]=$1.height}var _39=$a();$k[$j++]=Infinity;for(var _3B=0,_3C=~~(($1.sbs.length+1)/2);_3B<_3C;_3B++){$k[$j++]=0}var _3D=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_34;$k[$j++]="bhs";$k[$j++]=_39;$k[$j++]="bbs";$k[$j++]=_3D;if($1.includetext){$k[$j++]="txt";$k[$j++]=$1.txt}$k[$j++]="opt";$k[$j++]=$1.options;var _3H=$d();$k[$j++]=_3H;if(!$1.dontdraw){$0.renlinear()}};$0.onecode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.height=.15;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.height=+$1.height;$1.barlen=$1.barcode.length;$k[$j++]=Infinity;var _9=$eq($G($1.barcode,5,1),"9")?14:11;$k[$j++]=2;$k[$j++]=2;$k[$j++]=5;$k[$j++]=5;$k[$j++]=_9;$k[$j++]=_9;$k[$j++]=20;$k[$j++]=20;$k[$j++]=25;$k[$j++]=25;$k[$j++]=29;$k[$j++]=29;$1.txtdict=$d();$1.txt=$a($1.barlen+6);$1.spacecnt=0;for(var _F=0,_E=$1.barlen-1;_F<=_E;_F+=1){$1.i=_F;var _I=$g($1.txtdict,$1.i)!==undefined;if(_I){$p($1.txt,$1.i+$1.spacecnt,$a([" ",0,0,"",0]));$1.spacecnt=$1.spacecnt+1}$p($1.txt,$1.i+$1.spacecnt,$a([$G($1.barcode,$1.i,1),0,0,"",0]))}$1.txt=$G($1.txt,0,$1.barcode.length+$1.spacecnt);$1.normalize=function(){$1.base=$k[--$j];$1.num=$k[--$j];for(var _c=$1.num.length-1;_c>=1;_c-=1){$1.i=_c;var _d=$1.num;var _e=$1.i;$p(_d,_e-1,$f($g(_d,_e-1)+~~($g($1.num,$1.i)/$1.base)));$p($1.num,$1.i,$g($1.num,$1.i)%$1.base)}for(;;){if($lt($g($1.num,0),$1.base)){break}$k[$j++]=Infinity;$k[$j++]=0;$F($1.num);$1.num=$a();$p($1.num,0,$f($g($1.num,0)+~~($g($1.num,1)/$1.base)));$p($1.num,1,$g($1.num,1)%$1.base)}$k[$j++]=Infinity;$1.i=true;var _15=$1.num;for(var _16=0,_17=_15.length;_16<_17;_16++){var _18=$g(_15,_16);$k[$j++]=_18;if(_18==0&&$1.i){$j--}else{$1.i=false}}$1.num=$a();if($1.num.length==0){$1.num=$a([0])}$k[$j++]=$1.num};$1.bigadd=function(){var _1E=$k[--$j];var _1F=$k[--$j];$1.offset=Math.abs(_1E.length-_1F.length);if(_1E.length<_1F.length){var _=_1E;_1E=_1F;_1F=_}$1.a=_1E;$1.b=_1F;for(var _1I=0,_1H=$1.b.length-1;_1I<=_1H;_1I+=1){var _1J=$1.a;var _1K=$1.offset;$p(_1J,_1I+_1K,$f($g(_1J,_1I+_1K)+$g($1.b,_1I)))}$k[$j++]=$1.a};if($1.barlen==20){$k[$j++]=$a([0])}if($1.barlen==25){$k[$j++]=$a([1])}if($1.barlen==29){$k[$j++]=$a([1,0,0,0,0,1])}if($1.barlen==31){$k[$j++]=$a([1,0,0,0,1,0,0,0,0,1])}var _1X=$k[--$j];$k[$j++]="binval";$k[$j++]=_1X;$k[$j++]=Infinity;var _1a=$G($1.barcode,20,$1.barlen-20);for(var _1b=0,_1c=_1a.length;_1b<_1c;_1b++){$k[$j++]=$f($g(_1a,_1b)-48)}var _1e=$a();$k[$j++]=_1e;$1.bigadd();var _1f=$k[--$j];$1[$k[--$j]]=_1f;$k[$j++]=Infinity;var _1h=$1.binval;for(var _1i=0,_1j=_1h.length;_1i<_1j;_1i++){$k[$j++]=$g(_1h,_1i)}$k[$j++]=$f($g($1.barcode,0)-48);$1.binval=$a();$k[$j++]=Infinity;var _1o=$1.binval;for(var _1p=0,_1q=_1o.length;_1p<_1q;_1p++){$k[$j++]=$g(_1o,_1p)*5}var _1s=$a();$k[$j++]="binval";$k[$j++]=_1s;$k[$j++]=$a([$f($g($1.barcode,1)-48)]);$1.bigadd();$k[$j++]=10;$1.normalize();var _1w=$k[--$j];$1[$k[--$j]]=_1w;$k[$j++]=Infinity;var _1y=$1.binval;for(var _1z=0,_20=_1y.length;_1z<_20;_1z++){$k[$j++]=$g(_1y,_1z)}var _23=$G($1.barcode,2,18);for(var _24=0,_25=_23.length;_24<_25;_24++){$k[$j++]=$f($g(_23,_24)-48)}$1.binval=$a();$1.bytes=$a(13);$k[$j++]=Infinity;var _29=$1.binval;for(var _2A=0,_2B=_29.length;_2A<_2B;_2A++){$k[$j++]=$g(_29,_2A)}$1.bintmp=$a();for(var _2E=12;_2E>=0;_2E-=1){$1.i=_2E;for(var _2H=0,_2G=$1.bintmp.length-2;_2H<=_2G;_2H+=1){$1.j=_2H;var _2I=$1.bintmp;var _2J=$1.j;$p(_2I,_2J+1,$f($g(_2I,_2J+1)+$g($1.bintmp,$1.j)%256*10));$p($1.bintmp,$1.j,~~($g($1.bintmp,$1.j)/256))}$p($1.bytes,$1.i,$g($1.bintmp,$1.bintmp.length-1)%256);var _2Y=$1.bintmp;var _2Z=$1.bintmp;$p(_2Y,_2Z.length-1,~~($g(_2Y,_2Z.length-1)/256))}$1.fcs=2047;$1.dat=$g($1.bytes,0)<<5;for(var _2d=0,_2e=6;_2d<_2e;_2d++){if((($1.fcs^$1.dat)&1024)!=0){$1.fcs=$1.fcs<<1^3893}else{$1.fcs=$1.fcs<<1}$1.fcs=$1.fcs&2047;$1.dat=$1.dat<<1}for(var _2l=1;_2l<=12;_2l+=1){$1.dat=$g($1.bytes,_2l)<<3;for(var _2o=0,_2p=8;_2o<_2p;_2o++){if((($1.fcs^$1.dat)&1024)!=0){$1.fcs=$1.fcs<<1^3893}else{$1.fcs=$1.fcs<<1}$1.fcs=$1.fcs&2047;$1.dat=$1.dat<<1}}$1.codewords=$a(10);for(var _2x=9;_2x>=0;_2x-=1){$1.i=_2x;if($1.i==9){$1.b=636}else{$1.b=1365}for(var _31=0,_30=$1.binval.length-2;_31<=_30;_31+=1){$1.j=_31;var _32=$1.binval;var _33=$1.j;$p(_32,_33+1,$f($g(_32,_33+1)+$g($1.binval,$1.j)%$1.b*10));$p($1.binval,$1.j,~~($g($1.binval,$1.j)/$1.b))}$p($1.codewords,$1.i,$g($1.binval,$1.binval.length-1)%$1.b);var _3L=$1.binval;var _3M=$1.binval;$p(_3L,_3M.length-1,~~($g(_3L,_3M.length-1)/$1.b))}$p($1.codewords,9,$g($1.codewords,9)*2);if(($1.fcs&1024)!=0){$p($1.codewords,0,$f($g($1.codewords,0)+659))}$1.tab513=$a([31,7936,47,7808,55,7552,59,7040,61,6016,62,3968,79,7744,87,7488,91,6976,93,5952,94,3904,103,7360,107,6848,109,5824,110,3776,115,6592,117,5568,118,3520,121,5056,122,3008,124,1984,143,7712,151,7456,155,6944,157,5920,158,3872,167,7328,171,6816,173,5792,174,3744,179,6560,181,5536,182,3488,185,5024,186,2976,188,1952,199,7264,203,6752,205,5728,206,3680,211,6496,213,5472,214,3424,217,4960,218,2912,220,1888,227,6368,229,5344,230,3296,233,4832,234,2784,236,1760,241,4576,242,2528,244,1504,248,992,271,7696,279,7440,283,6928,285,5904,286,3856,295,7312,299,6800,301,5776,302,3728,307,6544,309,5520,310,3472,313,5008,314,2960,316,1936,327,7248,331,6736,333,5712,334,3664,339,6480,341,5456,342,3408,345,4944,346,2896,348,1872,355,6352,357,5328,358,3280,361,4816,362,2768,364,1744,369,4560,370,2512,372,1488,376,976,391,7216,395,6704,397,5680,398,3632,403,6448,405,5424,406,3376,409,4912,410,2864,412,1840,419,6320,421,5296,422,3248,425,4784,426,2736,428,1712,433,4528,434,2480,436,1456,440,944,451,6256,453,5232,454,3184,457,4720,458,2672,460,1648,465,4464,466,2416,468,1392,472,880,481,4336,482,2288,484,1264,488,752,527,7688,535,7432,539,6920,541,5896,542,3848,551,7304,555,6792,557,5768,558,3720,563,6536,565,5512,566,3464,569,5e3,570,2952,572,1928,583,7240,587,6728,589,5704,590,3656,595,6472,597,5448,598,3400,601,4936,602,2888,604,1864,611,6344,613,5320,614,3272,617,4808,618,2760,620,1736,625,4552,626,2504,628,1480,632,968,647,7208,651,6696,653,5672,654,3624,659,6440,661,5416,662,3368,665,4904,666,2856,668,1832,675,6312,677,5288,678,3240,681,4776,682,2728,684,1704,689,4520,690,2472,692,1448,696,936,707,6248,709,5224,710,3176,713,4712,714,2664,716,1640,721,4456,722,2408,724,1384,728,872,737,4328,738,2280,740,1256,775,7192,779,6680,781,5656,782,3608,787,6424,789,5400,790,3352,793,4888,794,2840,796,1816,803,6296,805,5272,806,3224,809,4760,810,2712,812,1688,817,4504,818,2456,820,1432,824,920,835,6232,837,5208,838,3160,841,4696,842,2648,844,1624,849,4440,850,2392,852,1368,865,4312,866,2264,868,1240,899,6200,901,5176,902,3128,905,4664,906,2616,908,1592,913,4408,914,2360,916,1336,929,4280,930,2232,932,1208,961,4216,962,2168,964,1144,1039,7684,1047,7428,1051,6916,1053,5892,1054,3844,1063,7300,1067,6788,1069,5764,1070,3716,1075,6532,1077,5508,1078,3460,1081,4996,1082,2948,1084,1924,1095,7236,1099,6724,1101,5700,1102,3652,1107,6468,1109,5444,1110,3396,1113,4932,1114,2884,1116,1860,1123,6340,1125,5316,1126,3268,1129,4804,1130,2756,1132,1732,1137,4548,1138,2500,1140,1476,1159,7204,1163,6692,1165,5668,1166,3620,1171,6436,1173,5412,1174,3364,1177,4900,1178,2852,1180,1828,1187,6308,1189,5284,1190,3236,1193,4772,1194,2724,1196,1700,1201,4516,1202,2468,1204,1444,1219,6244,1221,5220,1222,3172,1225,4708,1226,2660,1228,1636,1233,4452,1234,2404,1236,1380,1249,4324,1250,2276,1287,7188,1291,6676,1293,5652,1294,3604,1299,6420,1301,5396,1302,3348,1305,4884,1306,2836,1308,1812,1315,6292,1317,5268,1318,3220,1321,4756,1322,2708,1324,1684,1329,4500,1330,2452,1332,1428,1347,6228,1349,5204,1350,3156,1353,4692,1354,2644,1356,1620,1361,4436,1362,2388,1377,4308,1378,2260,1411,6196,1413,5172,1414,3124,1417,4660,1418,2612,1420,1588,1425,4404,1426,2356,1441,4276,1442,2228,1473,4212,1474,2164,1543,7180,1547,6668,1549,5644,1550,3596,1555,6412,1557,5388,1558,3340,1561,4876,1562,2828,1564,1804,1571,6284,1573,5260,1574,3212,1577,4748,1578,2700,1580,1676,1585,4492,1586,2444,1603,6220,1605,5196,1606,3148,1609,4684,1610,2636,1617,4428,1618,2380,1633,4300,1634,2252,1667,6188,1669,5164,1670,3116,1673,4652,1674,2604,1681,4396,1682,2348,1697,4268,1698,2220,1729,4204,1730,2156,1795,6172,1797,5148,1798,3100,1801,4636,1802,2588,1809,4380,1810,2332,1825,4252,1826,2204,1857,4188,1858,2140,1921,4156,1922,2108,2063,7682,2071,7426,2075,6914,2077,5890,2078,3842,2087,7298,2091,6786,2093,5762,2094,3714,2099,6530,2101,5506,2102,3458,2105,4994,2106,2946,2119,7234,2123,6722,2125,5698,2126,3650,2131,6466,2133,5442,2134,3394,2137,4930,2138,2882,2147,6338,2149,5314,2150,3266,2153,4802,2154,2754,2161,4546,2162,2498,2183,7202,2187,6690,2189,5666,2190,3618,2195,6434,2197,5410,2198,3362,2201,4898,2202,2850,2211,6306,2213,5282,2214,3234,2217,4770,2218,2722,2225,4514,2226,2466,2243,6242,2245,5218,2246,3170,2249,4706,2250,2658,2257,4450,2258,2402,2273,4322,2311,7186,2315,6674,2317,5650,2318,3602,2323,6418,2325,5394,2326,3346,2329,4882,2330,2834,2339,6290,2341,5266,2342,3218,2345,4754,2346,2706,2353,4498,2354,2450,2371,6226,2373,5202,2374,3154,2377,4690,2378,2642,2385,4434,2401,4306,2435,6194,2437,5170,2438,3122,2441,4658,2442,2610,2449,4402,2465,4274,2497,4210,2567,7178,2571,6666,2573,5642,2574,3594,2579,6410,2581,5386,2582,3338,2585,4874,2586,2826,2595,6282,2597,5258,2598,3210,2601,4746,2602,2698,2609,4490,2627,6218,2629,5194,2630,3146,2633,4682,2641,4426,2657,4298,2691,6186,2693,5162,2694,3114,2697,4650,2705,4394,2721,4266,2753,4202,2819,6170,2821,5146,2822,3098,2825,4634,2833,4378,2849,4250,2881,4186,2945,4154,3079,7174,3083,6662,3085,5638,3086,3590,3091,6406,3093,5382,3094,3334,3097,4870,3107,6278,3109,5254,3110,3206,3113,4742,3121,4486,3139,6214,3141,5190,3145,4678,3153,4422,3169,4294,3203,6182,3205,5158,3209,4646,3217,4390,3233,4262,3265,4198,3331,6166,3333,5142,3337,4630,3345,4374,3361,4246,3393,4182,3457,4150,3587,6158,3589,5134,3593,4622,3601,4366,3617,4238,3649,4174,3713,4142,3841,4126,4111,7681,4119,7425,4123,6913,4125,5889,4135,7297,4139,6785,4141,5761,4147,6529,4149,5505,4153,4993,4167,7233,4171,6721,4173,5697,4179,6465,4181,5441,4185,4929,4195,6337,4197,5313,4201,4801,4209,4545,4231,7201,4235,6689,4237,5665,4243,6433,4245,5409,4249,4897,4259,6305,4261,5281,4265,4769,4273,4513,4291,6241,4293,5217,4297,4705,4305,4449,4359,7185,4363,6673,4365,5649,4371,6417,4373,5393,4377,4881,4387,6289,4389,5265,4393,4753,4401,4497,4419,6225,4421,5201,4425,4689,4483,6193,4485,5169,4489,4657,4615,7177,4619,6665,4621,5641,4627,6409,4629,5385,4633,4873,4643,6281,4645,5257,4649,4745,4675,6217,4677,5193,4739,6185,4741,5161,4867,6169,4869,5145,5127,7173,5131,6661,5133,5637,5139,6405,5141,5381,5155,6277,5157,5253,5187,6213,5251,6181,5379,6165,5635,6157,6151,7171,6155,6659,6163,6403,6179,6275,6211,5189,4681,4433,4321,3142,2634,2386,2274,1612,1364,1252,856,744,496]);$1.tab213=$a([3,6144,5,5120,6,3072,9,4608,10,2560,12,1536,17,4352,18,2304,20,1280,24,768,33,4224,34,2176,36,1152,40,640,48,384,65,4160,66,2112,68,1088,72,576,80,320,96,192,129,4128,130,2080,132,1056,136,544,144,288,257,4112,258,2064,260,1040,264,528,513,4104,514,2056,516,1032,1025,4100,1026,2052,2049,4098,4097,2050,1028,520,272,160]);$1.chars=$a(10);for(var _3Z=0;_3Z<=9;_3Z+=1){$1.i=_3Z;var _3c=$g($1.codewords,$1.i);$k[$j++]=_3c;if(_3c<=1286){var _3f=$g($1.tab513,$k[--$j]);$k[$j++]=_3f}else{var _3i=$g($1.tab213,$f($k[--$j]-1287));$k[$j++]=_3i}$p($1.chars,$1.i,$k[--$j])}for(var _3m=9;_3m>=0;_3m-=1){$1.i=_3m;if((~~Math.pow(2,$1.i)&$1.fcs)!=0){$p($1.chars,$1.i,$g($1.chars,$1.i)^8191)}}$1.barmap=$a([7,2,4,3,1,10,0,0,9,12,2,8,5,5,6,11,8,9,3,1,0,1,5,12,2,5,1,8,4,4,9,11,6,3,8,10,3,9,7,6,5,11,1,4,8,5,2,12,9,10,0,2,7,1,6,7,3,6,4,9,0,3,8,6,6,4,2,7,1,1,9,9,7,10,5,2,4,0,3,8,6,2,0,4,8,11,1,0,9,8,3,12,2,6,7,7,5,1,4,10,1,12,6,9,7,3,8,0,5,8,9,7,4,6,2,10,3,4,0,5,8,4,5,7,7,11,1,9,6,0,9,6,0,6,4,8,2,1,3,2,5,9,8,12,4,11,6,1,9,5,7,4,3,3,1,2,0,7,2,0,1,3,4,1,6,10,3,5,8,7,9,4,2,11,5,6,0,8,7,12,4,2,8,1,5,10,3,0,9,3,0,9,6,5,2,4,7,8,1,7,5,0,4,5,2,3,0,10,6,12,9,2,3,11,1,6,8,8,7,9,5,4,0,11,1,5,2,2,9,1,4,12,8,3,6,6,7,0,3,7,4,7,7,5,0,12,1,11,2,9,9,0,6,8,5,3,3,10,8,2]);$1.bbs=$a(65);$1.bhs=$a(65);for(var _3x=0;_3x<=64;_3x+=1){$1.i=_3x;$1.dec=($g($1.chars,$g($1.barmap,$1.i*4))&~~Math.pow(2,$g($1.barmap,$1.i*4+1)))!=0;$1.asc=($g($1.chars,$g($1.barmap,$1.i*4+2))&~~Math.pow(2,$g($1.barmap,$1.i*4+3)))!=0;if(!$1.dec&&!$1.asc){$p($1.bbs,$1.i,3*$1.height/8);$p($1.bhs,$1.i,2*$1.height/8)}if(!$1.dec&&$1.asc){$p($1.bbs,$1.i,3*$1.height/8);$p($1.bhs,$1.i,5*$1.height/8)}if($1.dec&&!$1.asc){$p($1.bbs,$1.i,0*$1.height/8);$p($1.bhs,$1.i,5*$1.height/8)}if($1.dec&&$1.asc){$p($1.bbs,$1.i,0*$1.height/8);$p($1.bhs,$1.i,8*$1.height/8)}}$k[$j++]=Infinity;var _4k=$1.bbs;var _4l=$1.bhs;$k[$j++]=Infinity;for(var _4n=0,_4o=$1.bhs.length-1;_4n<_4o;_4n++){$k[$j++]=1.44;$k[$j++]=1.872}$k[$j++]=1.44;var _4p=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="bbs";$k[$j++]=_4k;$k[$j++]="bhs";$k[$j++]=_4l;$k[$j++]="sbs";$k[$j++]=_4p;$k[$j++]="txt";$k[$j++]=$1.txt;$k[$j++]="textxalign";$k[$j++]="left";$k[$j++]="textfont";$k[$j++]="OCR-B";$k[$j++]="textyoffset";$k[$j++]=1;$k[$j++]="textxoffset";$k[$j++]=-.3;$k[$j++]="opt";$k[$j++]=$1.options;var _4s=$d();$k[$j++]=_4s;if(!$1.dontdraw){$0.renlinear()}};$0.postnet=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.validatecheck=false;$1.includecheckintext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.height=.125;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$k[$j++]="barlen";$k[$j++]=$1.barcode.length;if($1.validatecheck){var _B=$k[--$j];$k[$j++]=$f(_B-1)}var _C=$k[--$j];$1[$k[--$j]]=_C;if($1.barlen!=5&&$1.barlen!=9&&$1.barlen!=11){$k[$j++]="bwipp.postnetBadLength";$k[$j++]="USPS POSTNET must be 5, 9 or 11 digits excluding check digit";$0.raiseerror()}$F($1.barcode,function(){var _I=$k[--$j];if(_I<48||_I>57){$k[$j++]="bwipp.postnetBadCharacter";$k[$j++]="USPS POSTNET must contain only digits";$0.raiseerror()}});$1.barchars="0123456789";$1.checksum=0;for(var _L=0,_K=$f($1.barlen-1);_L<=_K;_L+=1){$1.i=_L;$1.checksum=$f($1.checksum+$f($g($1.barcode,$1.i)-48))}$1.checksum=$f(10-$1.checksum%10)%10;if($1.validatecheck){if($g($1.barcode,$1.barlen)!=$g($1.barchars,$1.checksum)){$k[$j++]="bwipp.postnetBadCheckDigit";$k[$j++]="Incorrect USPS POSTNET check digit provided";$0.raiseerror()}$1.barcode=$G($1.barcode,0,$1.barlen)}$1.encs=$a(["55222","22255","22525","22552","25225","25252","25522","52225","52252","52522","5","5"]);$1.bhs=$a($f($1.barlen*5+7));$1.txt=$a($f($1.barlen+1));$1.enc=$g($1.encs,10);$1.heights=$a($1.enc.length);for(var _m=0,_l=$1.enc.length-1;_m<=_l;_m+=1){$1.j=_m;$p($1.heights,$1.j,~~$z($G($1.enc,$1.j,1))*$1.height/5)}$P($1.bhs,0,$1.heights);for(var _x=0,_w=$f($1.barlen-1);_x<=_w;_x+=1){$1.i=_x;$1.enc=$g($1.encs,$f($g($1.barcode,$1.i)-48));$1.heights=$a($1.enc.length);for(var _17=0,_16=$1.enc.length-1;_17<=_16;_17+=1){$1.j=_17;$p($1.heights,$1.j,~~$z($G($1.enc,$1.j,1))*$1.height/5)}$P($1.bhs,$1.i*5+1,$1.heights);$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),($1.i*5+1)*3.312,$1.textyoffset,$1.textfont,$1.textsize]))}$1.enc=$g($1.encs,$1.checksum);$1.heights=$a($1.enc.length);for(var _1Y=0,_1X=$1.enc.length-1;_1Y<=_1X;_1Y+=1){$1.j=_1Y;$p($1.heights,$1.j,~~$z($G($1.enc,$1.j,1))*$1.height/5)}$P($1.bhs,$f($1.barlen*5+1),$1.heights);if($1.includecheckintext){$p($1.txt,$1.barlen,$a([$G($1.barchars,$1.checksum,1),$f($1.barlen*5+1)*3.312,$1.textyoffset,$1.textfont,$1.textsize]))}else{$p($1.txt,$1.barlen,$a([" ",$f($1.barlen*5+1)*72/25,$1.textyoffset,$1.textfont,$1.textsize]))}$1.enc=$g($1.encs,11);$1.heights=$a($1.enc.length);for(var _26=0,_25=$1.enc.length-1;_26<=_25;_26+=1){$1.j=_26;$p($1.heights,$1.j,~~$z($G($1.enc,$1.j,1))*$1.height/5)}$P($1.bhs,$f($1.barlen*5+6),$1.heights);$k[$j++]=Infinity;var _2G=$1.bhs;$k[$j++]=Infinity;for(var _2I=0,_2J=$1.bhs.length;_2I<_2J;_2I++){$k[$j++]=0}var _2K=$a();$k[$j++]=Infinity;for(var _2M=0,_2N=$1.bhs.length-1;_2M<_2N;_2M++){$k[$j++]=1.44;$k[$j++]=1.872}$k[$j++]=1.44;var _2O=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="bhs";$k[$j++]=_2G;$k[$j++]="bbs";$k[$j++]=_2K;$k[$j++]="sbs";$k[$j++]=_2O;if($1.includetext){$k[$j++]="txt";$k[$j++]=$1.txt}$k[$j++]="opt";$k[$j++]=$1.options;var _2S=$d();$k[$j++]=_2S;if(!$1.dontdraw){$0.renlinear()}};$0.planet=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.validatecheck=false;$1.includecheckintext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.height=.125;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$k[$j++]="barlen";$k[$j++]=$1.barcode.length;if($1.validatecheck){var _B=$k[--$j];$k[$j++]=$f(_B-1)}var _C=$k[--$j];$1[$k[--$j]]=_C;if($1.barlen!=11&&$1.barlen!=13){$k[$j++]="bwipp.planetBadLength";$k[$j++]="USPS PLANET must be 11 or 13 digits excluding check digit";$0.raiseerror()}$F($1.barcode,function(){var _H=$k[--$j];if(_H<48||_H>57){$k[$j++]="bwipp.planetBadCharacter";$k[$j++]="USPS PLANET must contain only digits";$0.raiseerror()}});$1.barchars="0123456789";$1.checksum=0;for(var _K=0,_J=$f($1.barlen-1);_K<=_J;_K+=1){$1.i=_K;$1.checksum=$f($1.checksum+$f($g($1.barcode,$1.i)-48))}$1.checksum=$f(10-$1.checksum%10)%10;if($1.validatecheck){if($g($1.barcode,$1.barlen)!=$g($1.barchars,$1.checksum)){$k[$j++]="bwipp.planetBadCheckDigit";$k[$j++]="Incorrect USPS PLANET check digit provided";$0.raiseerror()}$1.barcode=$G($1.barcode,0,$1.barlen)}$1.encs=$a(["22555","55522","55252","55225","52552","52525","52255","25552","25525","25255","5","5"]);$1.bhs=$a($f($1.barlen*5+7));$1.txt=$a($f($1.barlen+1));$1.enc=$g($1.encs,10);$1.heights=$a($1.enc.length);for(var _l=0,_k=$1.enc.length-1;_l<=_k;_l+=1){$1.j=_l;$p($1.heights,$1.j,~~$z($G($1.enc,$1.j,1))*$1.height/5)}$P($1.bhs,0,$1.heights);for(var _w=0,_v=$f($1.barlen-1);_w<=_v;_w+=1){$1.i=_w;$1.enc=$g($1.encs,$f($g($1.barcode,$1.i)-48));$1.heights=$a($1.enc.length);for(var _16=0,_15=$1.enc.length-1;_16<=_15;_16+=1){$1.j=_16;$p($1.heights,$1.j,~~$z($G($1.enc,$1.j,1))*$1.height/5)}$P($1.bhs,$1.i*5+1,$1.heights);$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),($1.i*5+1)*3.312,$1.textyoffset,$1.textfont,$1.textsize]))}$1.enc=$g($1.encs,$1.checksum);$1.heights=$a($1.enc.length);for(var _1X=0,_1W=$1.enc.length-1;_1X<=_1W;_1X+=1){$1.j=_1X;$p($1.heights,$1.j,~~$z($G($1.enc,$1.j,1))*$1.height/5)}$P($1.bhs,$f($1.barlen*5+1),$1.heights);if($1.includecheckintext){$p($1.txt,$1.barlen,$a([$G($1.barchars,$1.checksum,1),$f($1.barlen*5+1)*3.312,$1.textyoffset,$1.textfont,$1.textsize]))}else{$p($1.txt,$1.barlen,$a([" ",$f($1.barlen*5+1)*72/25,$1.textyoffset,$1.textfont,$1.textsize]))}$1.enc=$g($1.encs,11);$1.heights=$a($1.enc.length);for(var _25=0,_24=$1.enc.length-1;_25<=_24;_25+=1){$1.j=_25;$p($1.heights,$1.j,~~$z($G($1.enc,$1.j,1))*$1.height/5)}$P($1.bhs,$f($1.barlen*5+6),$1.heights);$k[$j++]=Infinity;var _2F=$1.bhs;$k[$j++]=Infinity;for(var _2H=0,_2I=$1.bhs.length;_2H<_2I;_2H++){$k[$j++]=0}var _2J=$a();$k[$j++]=Infinity;for(var _2L=0,_2M=$1.bhs.length-1;_2L<_2M;_2L++){$k[$j++]=1.44;$k[$j++]=1.872}$k[$j++]=1.44;var _2N=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="bhs";$k[$j++]=_2F;$k[$j++]="bbs";$k[$j++]=_2J;$k[$j++]="sbs";$k[$j++]=_2N;if($1.includetext){$k[$j++]="txt";$k[$j++]=$1.txt}$k[$j++]="opt";$k[$j++]=$1.options;var _2R=$d();$k[$j++]=_2R;if(!$1.dontdraw){$0.renlinear()}};$0.royalmail=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.validatecheck=false;$1.includecheckintext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.height=.175;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.barchars="ZUVWXY501234B6789AHCDEFGNIJKLMTOPQRS";$1.charvals=new Map;for(var _9=0;_9<=35;_9+=1){$p($1.charvals,$G($1.barchars,_9,1),_9)}for(var _F=0,_E=$1.barcode.length-1;_F<=_E;_F+=1){var _J=$g($1.charvals,$G($1.barcode,_F,1))!==undefined;if(!_J){$k[$j++]="bwipp.royalmailBadCharacter";$k[$j++]="RM4SCC must contain only capital letters and digits";$0.raiseerror()}}$k[$j++]="barlen";$k[$j++]=$1.barcode.length;if($1.validatecheck){var _M=$k[--$j];$k[$j++]=$f(_M-1)}var _N=$k[--$j];$1[$k[--$j]]=_N;$1.checksumrow=0;$1.checksumcol=0;for(var _R=0,_Q=$f($1.barlen-1);_R<=_Q;_R+=1){$1.i=_R;$1.indx=$g($1.charvals,$G($1.barcode,$1.i,1));$1.checksumrow=$1.checksumrow+~~($1.indx/6);$1.checksumcol=$f($1.checksumcol+$1.indx%6)}$1.checksum=$f($1.checksumrow%6*6+$1.checksumcol%6);if($1.validatecheck){if($g($1.barcode,$1.barlen)!=$g($1.barchars,$1.checksum)){$k[$j++]="bwipp.royalmailBadCheckDigit";$k[$j++]="Incorrect RM4SCC check digit provided";$0.raiseerror()}$1.barcode=$G($1.barcode,0,$1.barlen)}$1.encs=$a(["3300","2211","2301","2310","3201","3210","1122","0033","0123","0132","1023","1032","1302","0213","0303","0312","1203","1212","1320","0231","0321","0330","1221","1230","3102","2013","2103","2112","3003","3012","3120","2031","2121","2130","3021","3030","2","3"]);$1.encstr=$s($f($1.barlen*4+6));$1.txt=$a($f($1.barlen+1));$P($1.encstr,0,$g($1.encs,36));for(var _x=0,_w=$f($1.barlen-1);_x<=_w;_x+=1){$1.i=_x;$1.indx=$g($1.charvals,$G($1.barcode,$1.i,1));$P($1.encstr,$1.i*4+1,$g($1.encs,$1.indx));$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),($1.i*4+1)*3.312,$1.textyoffset,$1.textfont,$1.textsize]))}$P($1.encstr,$f($1.barlen*4+1),$g($1.encs,$1.checksum));if($1.includecheckintext){$p($1.txt,$1.barlen,$a([$G($1.barchars,$1.checksum,1),$f($1.barlen*4+1)*3.312,$1.textyoffset,$1.textfont,$1.textsize]))}else{$p($1.txt,$1.barlen,$a([" ",$f($1.barlen*4+1)*3.312,$1.textyoffset,$1.textfont,$1.textsize]))}$P($1.encstr,$f($1.barlen*4+5),$g($1.encs,37));$1.bbs=$a($1.encstr.length);$1.bhs=$a($1.encstr.length);for(var _1p=0,_1o=$1.encstr.length-1;_1p<=_1o;_1p+=1){$1.i=_1p;$1.enc=$G($1.encstr,$1.i,1);if($eq($1.enc,"0")){$p($1.bbs,$1.i,3*$1.height/8);$p($1.bhs,$1.i,2*$1.height/8)}if($eq($1.enc,"1")){$p($1.bbs,$1.i,0*$1.height/8);$p($1.bhs,$1.i,5*$1.height/8)}if($eq($1.enc,"2")){$p($1.bbs,$1.i,3*$1.height/8);$p($1.bhs,$1.i,5*$1.height/8)}if($eq($1.enc,"3")){$p($1.bbs,$1.i,0*$1.height/8);$p($1.bhs,$1.i,8*$1.height/8)}}$k[$j++]=Infinity;var _2L=$1.bbs;var _2M=$1.bhs;$k[$j++]=Infinity;for(var _2O=0,_2P=$1.bhs.length-1;_2O<_2P;_2O++){$k[$j++]=1.44;$k[$j++]=1.872}$k[$j++]=1.44;var _2Q=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="bbs";$k[$j++]=_2L;$k[$j++]="bhs";$k[$j++]=_2M;$k[$j++]="sbs";$k[$j++]=_2Q;if($1.includetext){$k[$j++]="txt";$k[$j++]=$1.txt}$k[$j++]="opt";$k[$j++]=$1.options;var _2U=$d();$k[$j++]=_2U;if(!$1.dontdraw){$0.renlinear()}};$0.auspost=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.height=.175;$1.custinfoenc="character";$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.encs=$a(["000","001","002","010","011","012","020","021","022","100","101","102","110","111","112","120","121","122","200","201","202","210","211","212","220","221","222","300","301","302","310","311","312","320","321","322","023","030","031","032","033","103","113","123","130","131","132","133","203","213","223","230","231","232","233","303","313","323","330","331","332","333","003","013","00","01","02","10","11","12","20","21","22","30","13","3"]);$1.barchars="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz #";$1.barlen=$1.barcode.length;if($eq($G($1.barcode,0,2),"11")){$k[$j++]=37}if($eq($G($1.barcode,0,2),"45")){$k[$j++]=37}if($eq($G($1.barcode,0,2),"59")){$k[$j++]=52}if($eq($G($1.barcode,0,2),"62")){$k[$j++]=67}$1.encstr=$s($k[--$j]);$1.txt=$a($1.barlen-2);$P($1.encstr,0,$g($1.encs,74));for(var _Q=0;_Q<=1;_Q+=1){$1.i=_Q;$P($1.encstr,$1.i*2+2,$g($1.encs,~~$z($G($1.barcode,$1.i,1))+64))}for(var _Y=2;_Y<=9;_Y+=1){$1.i=_Y;$P($1.encstr,$1.i*2+2,$g($1.encs,~~$z($G($1.barcode,$1.i,1))+64));$p($1.txt,$1.i-2,$a([$G($1.barcode,$1.i,1),(($1.i-2)*2+6)*3.312,$1.textyoffset,$1.textfont,$1.textsize]))}if($eq($1.custinfoenc,"numeric")){for(var _t=0,_s=$1.barlen-11;_t<=_s;_t+=1){$1.i=_t;$P($1.encstr,$1.i*2+22,$g($1.encs,~~$z($G($1.barcode,$1.i+10,1))+64));$p($1.txt,$1.i+8,$a([$G($1.barcode,$1.i+10,1),($1.i*2+22)*3.312,$1.textyoffset,$1.textfont,$1.textsize]))}$1.ciflen=($1.barlen-10)*2}else{for(var _1E=0,_1D=$1.barlen-11;_1E<=_1D;_1E+=1){$1.i=_1E;$x($1.barchars,$G($1.barcode,$1.i+10,1));$j--;$1.indx=$k[--$j].length;$j-=2;$1.enc=$g($1.encs,$1.indx);$P($1.encstr,$1.i*3+22,$1.enc);$p($1.txt,$1.i+8,$a([$G($1.barcode,$1.i+10,1),($1.i*3+22)*3.312,$1.textyoffset,$1.textfont,$1.textsize]))}$1.ciflen=($1.barlen-10)*3}for(var _1e=22+$1.ciflen,_1d=$1.encstr.length-14;_1e<=_1d;_1e+=1){$P($1.encstr,_1e,$g($1.encs,75))}$1.rstable=$a(64*64);$k[$j++]=$1.rstable;$k[$j++]=0;$k[$j++]=Infinity;for(var _1k=0,_1l=64;_1k<_1l;_1k++){$k[$j++]=0}var _1m=$a();var _1n=$k[--$j];$P($k[--$j],_1n,_1m);$k[$j++]=$1.rstable;$k[$j++]=64;$k[$j++]=Infinity;for(var _1q=0;_1q<=63;_1q+=1){$k[$j++]=_1q}var _1r=$a();var _1s=$k[--$j];$P($k[--$j],_1s,_1r);$1.prev=1;for(var _1u=0,_1v=64;_1u<_1v;_1u++){$1.next=$1.prev<<1;if(($1.next&64)!=0){$1.next=$1.next^67}for(var _1z=0;_1z<=63;_1z+=1){$1.j=_1z;$1.nextcell=function(){$k[$j++]=$1.rstable;$k[$j++]=64*$1.next+$1.j};$1.nextcell();var _27=$k[--$j];$p($k[--$j],_27,$g($1.rstable,64*$1.prev+$1.j)<<1);$1.nextcell();var _29=$k[--$j];if(($g($k[--$j],_29)&64)!=0){$1.nextcell();$1.nextcell();var _2C=$k[--$j];var _2E=$g($k[--$j],_2C);var _2F=$k[--$j];$p($k[--$j],_2F,_2E^67)}}$1.prev=$1.next}$1.rscodes=$a(~~(($1.encstr.length-16)/3)+4);$k[$j++]=$1.rscodes;$k[$j++]=0;$k[$j++]=Infinity;for(var _2L=0,_2M=4;_2L<_2M;_2L++){$k[$j++]=0}var _2N=$a();var _2O=$k[--$j];$P($k[--$j],_2O,_2N);for(var _2S=2,_2R=$1.encstr.length-16;_2S<=_2R;_2S+=3){$1.i=_2S;$p($1.rscodes,$1.rscodes.length-~~(($1.i-2)/3)-1,~~$z($G($1.encstr,$1.i,1))*16+~~$z($G($1.encstr,$1.i+1,1))*4+~~$z($G($1.encstr,$1.i+2,1)))}for(var _2g=$1.rscodes.length-5;_2g>=0;_2g-=1){$1.i=_2g;for(var _2h=0;_2h<=4;_2h+=1){$1.j=_2h;$p($1.rscodes,$1.i+$1.j,$xo($g($1.rscodes,$1.i+$1.j),$g($1.rstable,$f(64*$g($a([48,17,29,30,1]),$1.j)+$g($1.rscodes,$1.i+4)))))}}$1.checkcode=$Z($s(12),"000000000000");for(var _2z=0;_2z<=3;_2z+=1){$1.i=_2z;$1.enc=$R($s(3),$g($1.rscodes,3-$1.i),4);$P($1.checkcode,$1.i*3+(3-$1.enc.length),$1.enc)}$P($1.encstr,$1.encstr.length-14,$1.checkcode);$P($1.encstr,$1.encstr.length-2,$g($1.encs,74));$1.bbs=$a($1.encstr.length);$1.bhs=$a($1.encstr.length);for(var _3M=0,_3L=$1.encstr.length-1;_3M<=_3L;_3M+=1){$1.i=_3M;$1.enc=$G($1.encstr,$1.i,1);if($eq($1.enc,"0")){$p($1.bbs,$1.i,0*$1.height/8);$p($1.bhs,$1.i,8*$1.height/8)}if($eq($1.enc,"1")){$p($1.bbs,$1.i,3*$1.height/8);$p($1.bhs,$1.i,5*$1.height/8)}if($eq($1.enc,"2")){$p($1.bbs,$1.i,0*$1.height/8);$p($1.bhs,$1.i,5*$1.height/8)}if($eq($1.enc,"3")){$p($1.bbs,$1.i,3*$1.height/8);$p($1.bhs,$1.i,2*$1.height/8)}}$k[$j++]=Infinity;var _3s=$1.bbs;var _3t=$1.bhs;$k[$j++]=Infinity;for(var _3v=0,_3w=$1.bhs.length-1;_3v<_3w;_3v++){$k[$j++]=1.44;$k[$j++]=1.872}$k[$j++]=1.44;var _3x=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="bbs";$k[$j++]=_3s;$k[$j++]="bhs";$k[$j++]=_3t;$k[$j++]="sbs";$k[$j++]=_3x;if($1.includetext){$k[$j++]="txt";$k[$j++]=$1.txt}$k[$j++]="opt";$k[$j++]=$1.options;var _41=$d();$k[$j++]=_41;if(!$1.dontdraw){$0.renlinear()}};$0.kix=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.height=.175;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.encs=$a(["0033","0123","0132","1023","1032","1122","0213","0303","0312","1203","1212","1302","0231","0321","0330","1221","1230","1320","2013","2103","2112","3003","3012","3102","2031","2121","2130","3021","3030","3120","2211","2301","2310","3201","3210","3300"]);$1.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";$1.charvals=new Map;for(var _A=0;_A<=35;_A+=1){$p($1.charvals,$G($1.barchars,_A,1),_A)}for(var _G=0,_F=$1.barcode.length-1;_G<=_F;_G+=1){var _K=$g($1.charvals,$G($1.barcode,_G,1))!==undefined;if(!_K){$k[$j++]="bwipp.kixBadCharacter";$k[$j++]="KIX must contain only capital letters and digits";$0.raiseerror()}}$1.barlen=$1.barcode.length;$1.encstr=$s($1.barlen*4);$1.txt=$a($1.barlen);for(var _S=0,_R=$1.barlen-1;_S<=_R;_S+=1){$1.i=_S;$1.indx=$g($1.charvals,$G($1.barcode,$1.i,1));$P($1.encstr,$1.i*4,$g($1.encs,$1.indx));$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),$1.i*4*3.312,$1.textyoffset,$1.textfont,$1.textsize]))}$1.bbs=$a($1.encstr.length);$1.bhs=$a($1.encstr.length);for(var _t=0,_s=$1.encstr.length-1;_t<=_s;_t+=1){$1.i=_t;$1.enc=$G($1.encstr,$1.i,1);if($eq($1.enc,"0")){$p($1.bbs,$1.i,3*$1.height/8);$p($1.bhs,$1.i,2*$1.height/8)}if($eq($1.enc,"1")){$p($1.bbs,$1.i,0*$1.height/8);$p($1.bhs,$1.i,5*$1.height/8)}if($eq($1.enc,"2")){$p($1.bbs,$1.i,3*$1.height/8);$p($1.bhs,$1.i,5*$1.height/8)}if($eq($1.enc,"3")){$p($1.bbs,$1.i,0*$1.height/8);$p($1.bhs,$1.i,8*$1.height/8)}}$k[$j++]=Infinity;var _1P=$1.bbs;var _1Q=$1.bhs;$k[$j++]=Infinity;for(var _1S=0,_1T=$1.bhs.length-1;_1S<_1T;_1S++){$k[$j++]=1.44;$k[$j++]=1.872}$k[$j++]=1.44;var _1U=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="bbs";$k[$j++]=_1P;$k[$j++]="bhs";$k[$j++]=_1Q;$k[$j++]="sbs";$k[$j++]=_1U;if($1.includetext){$k[$j++]="txt";$k[$j++]=$1.txt}$k[$j++]="opt";$k[$j++]=$1.options;var _1Y=$d();$k[$j++]=_1Y;if(!$1.dontdraw){$0.renlinear()}};$0.japanpost=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.includecheckintext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.height=.175;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.encs=$a(["300","330","312","132","321","303","123","231","213","033","030","120","102","210","012","201","021","003","333","31","13"]);$1.barchars="0123456789-ABCDEFGHIJKLMNOPQRSTUVWXYZ";$1.barlen=$1.barcode.length;$1.encstr=$s((20+1)*3+4);$1.digits=$a(20);$1.txt=$a($1.barlen+1);$P($1.encstr,0,$g($1.encs,19));$1.checksum=0;$1.j=0;$1.i=0;for(var _K=0,_J=$1.barlen-1;_K<=_J;_K+=1){$1.i=_K;$x($1.barchars,$G($1.barcode,$1.i,1));$j--;$1.indx=$k[--$j].length;$j-=2;if($1.indx>=11&&$1.indx<37){if($1.j>18){break}$1.digit=~~(($1.indx-1)/10)+10;$P($1.encstr,$1.j*3+2,$g($1.encs,$1.digit));$1.checksum=$1.checksum+$1.digit;$p($1.digits,$1.j,$1.digit);$1.j=$1.j+1}if($1.j>19){break}$1.digit=0;if($1.indx==37){$1.digit=14}if($1.indx>=11&&$1.indx<37){$1.digit=($1.indx-1)%10}if($1.indx<11){$1.digit=$1.indx}$P($1.encstr,$1.j*3+2,$g($1.encs,$1.digit));$1.checksum=$1.checksum+$1.digit;$p($1.digits,$1.j,$1.digit);$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),($1.j*3+2)*3.312,$1.textyoffset,$1.textfont,$1.textsize]));$1.j=$1.j+1}for(var _19=$1.j,_18=20-1;_19<=_18;_19+=1){$1.k=_19;$P($1.encstr,$1.k*3+2,$g($1.encs,14));$1.checksum=$1.checksum+14;$p($1.digits,$1.k,14)}$1.checksum=19-$1.checksum%19;$P($1.encstr,2+20*3,$g($1.encs,$1.checksum));$P($1.encstr,2+21*3,$g($1.encs,20));$1.checkdigit=" ";if($1.includecheckintext){$1.checkdigit=$G($1.barchars,$1.checksum,1)}$p($1.txt,$1.i+1,$a([$1.checkdigit,(20*3+2)*3.312,$1.textyoffset,$1.textfont,$1.textsize]));$P($1.encstr,(20+1)*3+2,$g($1.encs,20));$1.bbs=$a(21*3+4);$1.bhs=$a($1.bbs.length);for(var _1i=0,_1h=$1.bbs.length-1;_1i<=_1h;_1i+=1){$1.i=_1i;$1.enc=$G($1.encstr,$1.i,1);$1.bunit=0;$1.hunit=0;if($eq($1.enc,"0")){$1.bunit=3;$1.hunit=2}if($eq($1.enc,"1")){$1.bunit=0;$1.hunit=5}if($eq($1.enc,"2")){$1.bunit=3;$1.hunit=5}if($eq($1.enc,"3")){$1.bunit=0;$1.hunit=8}$p($1.bbs,$1.i,$1.bunit*$1.height/8);$p($1.bhs,$1.i,$1.hunit*$1.height/8)}$k[$j++]=Infinity;var _1y=$1.bbs;var _1z=$1.bhs;$k[$j++]=Infinity;for(var _21=0,_22=$1.bhs.length-1;_21<_22;_21++){$k[$j++]=1.44;$k[$j++]=1.872}$k[$j++]=1.44;var _23=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="bbs";$k[$j++]=_1y;$k[$j++]="bhs";$k[$j++]=_1z;$k[$j++]="sbs";$k[$j++]=_23;if($1.includetext){$k[$j++]="txt";$k[$j++]=$1.txt}$k[$j++]="opt";$k[$j++]=$1.options;var _27=$d();$k[$j++]=_27;if(!$1.dontdraw){$0.renlinear()}};$0.msi=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includecheck=false;$1.includetext=false;$1.includecheckintext=false;$1.checktype="mod10";$1.badmod11=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.encs=$a(["12121212","12121221","12122112","12122121","12211212","12211221","12212112","12212121","21121212","21121221","21","121"]);$1.barchars="0123456789";$1.barlen=$1.barcode.length;$1.txtlen=$1.barlen;$1.mod10=function(){$1.code=$k[--$j];$k[$j++]=0;$k[$j++]=0;$F($1.code,function(){var _E=$k[--$j];var _F=$k[--$j];var _G=$k[--$j];$k[$j++]=$f($f(_E-48)+_F*10);$k[$j++]=_G});$j--;var _H=$k[--$j];$k[$j++]=_H*2;$k[$j++]=0;for(;;){var _I=$k[--$j];var _J=$k[--$j];var _K=~~(_J/10);$k[$j++]=$f(_I+_J%10);$k[$j++]=_K;if(_K==0){$j--;break}var _L=$k[--$j];var _M=$k[--$j];$k[$j++]=_L;$k[$j++]=_M}$k[$j++]=0;$k[$j++]=0;$F($1.code,function(){var _O=$k[--$j];var _P=$k[--$j];var _Q=$k[--$j];$k[$j++]=$f(_P+$f(_O-48));$k[$j++]=_Q});var _R=$k[--$j];var _S=$k[--$j];$k[$j++]=_R;$k[$j++]=_S;$j--;var _T=$k[--$j];var _W=$s($1.code.length+1);$P(_W,0,$1.code);$p(_W,$1.code.length,$f($f(10-$f($k[--$j]+_T)%10)%10+48));$k[$j++]=_W};$1.mod11=function(){$1.code=$k[--$j];$k[$j++]=$1.code.length-1;$F($1.code,function(){var _c=$k[--$j];var _d=$k[--$j];$k[$j++]=$f(_c-48);$k[$j++]=$f(_d%6+2);$k[$j++]=$f(_d-1)});$j--;$k[$j++]=0;for(var _f=0,_g=$1.code.length;_f<_g;_f++){var _h=$k[--$j];var _i=$k[--$j];var _j=$k[--$j];$k[$j++]=$f(_h+_j*_i)}var _l=$f(11-$k[--$j]%11)%11;$k[$j++]=_l;if(_l==10&&$1.badmod11){$j--;var _o=$s($1.code.length+2);$P(_o,0,$1.code);$P(_o,$1.code.length,"10");$k[$j++]=_o}else{var _s=$s($1.code.length+1);$P(_s,0,$1.code);$p(_s,$1.code.length,$f($k[--$j]+48));$k[$j++]=_s}};$1.ncrmod11=function(){$1.code=$k[--$j];$k[$j++]=$1.code.length-1;$F($1.code,function(){var _z=$k[--$j];var _10=$k[--$j];$k[$j++]=$f(_z-48);$k[$j++]=$f(_10%8+2);$k[$j++]=$f(_10-1)});$j--;$k[$j++]=0;for(var _12=0,_13=$1.code.length;_12<_13;_12++){var _14=$k[--$j];var _15=$k[--$j];var _16=$k[--$j];$k[$j++]=$f(_14+_16*_15)}var _18=$f(11-$k[--$j]%11)%11;$k[$j++]=_18;if(_18==10&&$1.badmod11){$j--;var _1B=$s($1.code.length+2);$P(_1B,0,$1.code);$P(_1B,$1.code.length,"10");$k[$j++]=_1B}else{var _1F=$s($1.code.length+1);$P(_1F,0,$1.code);$p(_1F,$1.code.length,$f($k[--$j]+48));$k[$j++]=_1F}};if($1.includecheck){if($eq($1.checktype,"mod10")){$k[$j++]=$1.barcode;$1.mod10()}if($eq($1.checktype,"mod1010")){$k[$j++]=$1.barcode;$1.mod10();$1.mod10()}if($eq($1.checktype,"mod11")){$k[$j++]=$1.barcode;$1.mod11()}if($eq($1.checktype,"ncrmod11")){$k[$j++]=$1.barcode;$1.ncrmod11()}if($eq($1.checktype,"mod1110")){$k[$j++]=$1.barcode;$1.mod11();$1.mod10()}if($eq($1.checktype,"ncrmod1110")){$k[$j++]=$1.barcode;$1.ncrmod11();$1.mod10()}$1.barcode=$k[--$j];$1.barlen=$1.barcode.length;if($1.includecheckintext){$1.txtlen=$1.barlen}}$1.sbs=$s($1.barlen*8+5);$1.txt=$a($1.barlen);$P($1.sbs,0,$g($1.encs,10));for(var _1j=0,_1i=$1.barlen-1;_1j<=_1i;_1j+=1){$1.i=_1j;$x($1.barchars,$G($1.barcode,$1.i,1));$j--;$1.indx=$k[--$j].length;$j-=2;$1.enc=$g($1.encs,$1.indx);$P($1.sbs,$1.i*8+2,$1.enc);$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),$1.i*12+3,$1.textyoffset,$1.textfont,$1.textsize]))}$P($1.sbs,$1.barlen*8+2,$g($1.encs,11));$k[$j++]=Infinity;$k[$j++]=Infinity;var _29=$1.sbs;for(var _2A=0,_2B=_29.length;_2A<_2B;_2A++){$k[$j++]=$g(_29,_2A)-48}var _2D=$a();$k[$j++]=Infinity;for(var _2F=0,_2G=~~(($1.sbs.length+1)/2);_2F<_2G;_2F++){$k[$j++]=$1.height}var _2I=$a();$k[$j++]=Infinity;for(var _2K=0,_2L=~~(($1.sbs.length+1)/2);_2K<_2L;_2K++){$k[$j++]=0}var _2M=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_2D;$k[$j++]="bhs";$k[$j++]=_2I;$k[$j++]="bbs";$k[$j++]=_2M;if($1.includetext){$k[$j++]="txt";$k[$j++]=$G($1.txt,0,$1.txtlen)}$k[$j++]="opt";$k[$j++]=$1.options;var _2S=$d();$k[$j++]=_2S;if(!$1.dontdraw){$0.renlinear()}};$0.plessey=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.validatecheck=false;$1.includecheckintext=false;$1.unidirectional=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.barchars="0123456789ABCDEF";$1.charvals=new Map;for(var _9=0;_9<=15;_9+=1){$p($1.charvals,$G($1.barchars,_9,1),_9)}for(var _F=0,_E=$1.barcode.length-1;_F<=_E;_F+=1){var _J=$g($1.charvals,$G($1.barcode,_F,1))!==undefined;if(!_J){$k[$j++]="bwipp.plesseyBadCharacter";$k[$j++]="Plessey must contain only digits and letters A B C D E F";$0.raiseerror()}}$k[$j++]="barlen";$k[$j++]=$1.barcode.length;if($1.validatecheck){var _M=$k[--$j];$k[$j++]=$f(_M-2)}var _N=$k[--$j];$1[$k[--$j]]=_N;$1.checkbits=$a($f($1.barlen*4+8));$P($1.checkbits,$1.barlen*4,$a([0,0,0,0,0,0,0,0]));for(var _W=0,_V=$f($1.barlen-1);_W<=_V;_W+=1){$1.i=_W;$1.indx=$g($1.charvals,$G($1.barcode,$1.i,1));$P($1.checkbits,$1.i*4,$a([$1.indx&1,$1.indx>>>1&1,$1.indx>>>2&1,$1.indx>>>3]))}$1.checksalt=$a([1,1,1,1,0,1,0,0,1]);for(var _m=0,_l=$f($1.barlen*4-1);_m<=_l;_m+=1){$1.i=_m;if($g($1.checkbits,$1.i)==1){for(var _q=0;_q<=8;_q+=1){$1.j=_q;$p($1.checkbits,$1.i+$1.j,$xo($g($1.checkbits,$1.i+$1.j),$g($1.checksalt,$1.j)))}}}$1.checkval=0;for(var _11=0;_11<=7;_11+=1){$1.i=_11;$1.checkval=$f($1.checkval+~~Math.pow(2,$1.i)*$g($1.checkbits,$f($1.barlen*4+$1.i)))}$1.checksum1=$1.checkval&15;$1.checksum2=$1.checkval>>>4;if($1.validatecheck){if($g($1.barcode,$1.barlen)!=$g($1.barchars,$1.checksum1)||$g($1.barcode,$f($1.barlen+1))!=$g($1.barchars,$1.checksum2)){$k[$j++]="bwipp.plesseyBadCheckDigits";$k[$j++]="Incorrect Plessey check digits provided";$0.raiseerror()}$1.barcode=$G($1.barcode,0,$1.barlen)}$1.encs=$a(["14141414","32141414","14321414","32321414","14143214","32143214","14323214","32323214","14141432","32141432","14321432","32321432","14143232","32143232","14323232","32323232","32321432","541412323","323"]);var _1T=$1.unidirectional?27:33;$1.sbs=$s($f($1.barlen*8+_1T));$1.txt=$a($f($1.barlen+2));$P($1.sbs,0,$g($1.encs,16));for(var _1c=0,_1b=$f($1.barlen-1);_1c<=_1b;_1c+=1){$1.i=_1c;$1.indx=$g($1.charvals,$G($1.barcode,$1.i,1));$P($1.sbs,$1.i*8+8,$g($1.encs,$1.indx));$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),$1.i*20+20,$1.textyoffset,$1.textfont,$1.textsize]))}$P($1.sbs,$f($1.barlen*8+8),$g($1.encs,$1.checksum1));$P($1.sbs,$f($1.barlen*8+16),$g($1.encs,$1.checksum2));if($1.includecheckintext){$p($1.txt,$1.barlen,$a([$G($1.barchars,$1.checksum1,1),$f($1.barlen*20+20),$1.textyoffset,$1.textfont,$1.textsize]));$p($1.txt,$f($1.barlen+1),$a([$G($1.barchars,$1.checksum2,1),$f($f($1.barlen+1)*20+20),$1.textyoffset,$1.textfont,$1.textsize]))}else{$p($1.txt,$1.barlen,$a([" ",$f($1.barlen*20+20),$1.textyoffset,$1.textfont,$1.textsize]));$p($1.txt,$f($1.barlen+1),$a([" ",$f($f($1.barlen+1)*20+20),$1.textyoffset,$1.textfont,$1.textsize]))}var _2k=$1.unidirectional?18:17;$P($1.sbs,$f($1.barlen*8+24),$g($1.encs,_2k));$k[$j++]=Infinity;$k[$j++]=Infinity;var _2m=$1.sbs;for(var _2n=0,_2o=_2m.length;_2n<_2o;_2n++){$k[$j++]=$g(_2m,_2n)-48}var _2q=$a();$k[$j++]=Infinity;for(var _2s=0,_2t=~~(($1.sbs.length+1)/2);_2s<_2t;_2s++){$k[$j++]=$1.height}var _2v=$a();$k[$j++]=Infinity;for(var _2x=0,_2y=~~(($1.sbs.length+1)/2);_2x<_2y;_2x++){$k[$j++]=0}var _2z=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_2q;$k[$j++]="bhs";$k[$j++]=_2v;$k[$j++]="bbs";$k[$j++]=_2z;if($1.includetext){$k[$j++]="txt";$k[$j++]=$1.txt}$k[$j++]="opt";$k[$j++]=$1.options;var _33=$d();$k[$j++]=_33;if(!$1.dontdraw){$0.renlinear()}};$0.telepen=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.numeric=false;$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.height=1;$1.parse=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;var _A=new Map([["parse",$1.parse],["parseonly",true],["parsefnc",false]]);$1.fncvals=_A;$k[$j++]="barcode";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _D=$k[--$j];$1[$k[--$j]]=_D;$1.barlen=$1.barcode.length;delete $1.options["parse"];$1.encs=$a(["31313131","1131313111","33313111","1111313131","3111313111","11333131","13133131","111111313111","31333111","1131113131","33113131","1111333111","3111113131","1113133111","1311133111","111111113131","3131113111","11313331","333331","111131113111","31113331","1133113111","1313113111","1111113331","31131331","113111113111","3311113111","1111131331","311111113111","1113111331","1311111331","11111111113111","31313311","1131311131","33311131","1111313311","3111311131","11333311","13133311","111111311131","31331131","1131113311","33113311","1111331131","3111113311","1113131131","1311131131","111111113311","3131111131","1131131311","33131311","111131111131","3111131311","1133111131","1313111131","111111131311","3113111311","113111111131","3311111131","111113111311","311111111131","111311111311","131111111311","11111111111131","3131311111","11313133","333133","111131311111","31113133","1133311111","1313311111","1111113133","313333","113111311111","3311311111","11113333","311111311111","11131333","13111333","11111111311111","31311133","1131331111","33331111","1111311133","3111331111","11331133","13131133","111111331111","3113131111","1131111133","33111133","111113131111","3111111133","111311131111","131111131111","111111111133","31311313","113131111111","3331111111","1111311313","311131111111","11331313","13131313","11111131111111","3133111111","1131111313","33111313","111133111111","3111111313","111313111111","131113111111","111111111313","313111111111","1131131113","33131113","11113111111111","3111131113","113311111111","131311111111","111111131113","3113111113","11311111111111","331111111111","111113111113","31111111111111","111311111113","131111111113","1111111111111111"]);$1.barlen=$1.barcode.length;$1.sbs=$s($1.barlen*16+48);$1.txt=$a($1.barlen);$1.enc=$g($1.encs,95);$P($1.sbs,0,$1.enc);$1.l=$1.enc.length;$1.checksum=0;$1.i=0;$1.j=0;for(;;){if($1.i==$1.barlen){break}if($1.numeric){if($g($1.barcode,$1.i)>16){$1.np=$G($1.barcode,$1.i,2);if($eq($G($1.np,1,1),"X")){$1.indx=~~$z($G($1.np,0,1))+17}else{$1.indx=~~$z($1.np)+27}$p($1.txt,$1.j,$a([$1.np,$1.j*16+16,$1.textyoffset,$1.textfont,$1.textsize]));$1.i=$1.i+2}else{$1.indx=$g($1.barcode,$1.i);$p($1.txt,$1.j,$a([" ",$1.j*16+16,$1.textyoffset,$1.textfont,$1.textsize]));$1.i=$1.i+1}}else{$1.indx=$g($1.barcode,$1.i);if($1.indx>=32&&$1.indx<=126){$p($1.txt,$1.j,$a([$G($1.barcode,$1.i,1),$1.j*16+16,$1.textyoffset,$1.textfont,$1.textsize]))}else{$p($1.txt,$1.j,$a([" ",$1.j*16+16,$1.textyoffset,$1.textfont,$1.textsize]))}$1.i=$1.i+1}$1.checksum=$f($1.checksum+$1.indx);$1.enc=$g($1.encs,$1.indx);$P($1.sbs,$1.l,$1.enc);$1.l=$1.l+$1.enc.length;$1.j=$1.j+1}$1.checksum=$f(127-$1.checksum%127)%127;$1.enc=$g($1.encs,$1.checksum);$P($1.sbs,$1.l,$1.enc);$1.l=$1.l+$1.enc.length;$1.enc=$g($1.encs,122);$P($1.sbs,$1.l,$1.enc);$1.l=$1.l+$1.enc.length;$1.sbs=$G($1.sbs,0,$1.l);$1.txt=$G($1.txt,0,$1.j);$k[$j++]=Infinity;$k[$j++]=Infinity;var _1u=$1.sbs;for(var _1v=0,_1w=_1u.length;_1v<_1w;_1v++){$k[$j++]=$f($g(_1u,_1v)-48)}var _1y=$a();$k[$j++]=Infinity;for(var _20=0,_21=~~(($1.sbs.length+1)/2);_20<_21;_20++){$k[$j++]=$1.height}var _23=$a();$k[$j++]=Infinity;for(var _25=0,_26=~~(($1.sbs.length+1)/2);_25<_26;_25++){$k[$j++]=0}var _27=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_1y;$k[$j++]="bhs";$k[$j++]=_23;$k[$j++]="bbs";$k[$j++]=_27;if($1.includetext){$k[$j++]="txt";$k[$j++]=$1.txt}$k[$j++]="opt";$k[$j++]=$1.options;var _2B=$d();$k[$j++]=_2B;if(!$1.dontdraw){$0.renlinear()}};$0.telepennumeric=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textxoffset=0;$1.textyoffset=-8;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$p($1.options,"dontdraw",true);$p($1.options,"numeric",true);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.telepen();var _E=$k[--$j];$1[$k[--$j]]=_E;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.posicode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textxoffset=0;$1.textyoffset=-8;$1.height=1;$1.encoding="auto";$1.version="a";$1.checkoffset=0;$1.raw=false;$1.parse=false;$1.parsefnc=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.encoding=""+$1.encoding;$1.version=""+$1.version;$1.checkoffset=~~$1.checkoffset;$1.height=+$1.height;$1.la0=-1;$1.la1=-2;$1.la2=-3;$1.sf0=-4;$1.sf1=-5;$1.sf2=-6;$1.fn1=-7;$1.fn2=-8;$1.fn3=-9;$1.fn4=-10;var _1l=new Map([["normal",$a([$a(["0","^","'"]),$a(["1",";",27]),$a(["2","<",28]),$a(["3","=",29]),$a(["4",">",30]),$a(["5","?",31]),$a(["6","@","!"]),$a(["7","[",'"']),$a(["8",92,"#"]),$a(["9","]","&"]),$a(["A","a",1]),$a(["B","b",2]),$a(["C","c",3]),$a(["D","d",4]),$a(["E","e",5]),$a(["F","f",6]),$a(["G","g",7]),$a(["H","h",8]),$a(["I","i",9]),$a(["J","j",10]),$a(["K","k",11]),$a(["L","l",12]),$a(["M","m",13]),$a(["N","n",14]),$a(["O","o",15]),$a(["P","p",16]),$a(["Q","q",17]),$a(["R","r",18]),$a(["S","s",19]),$a(["T","t",20]),$a(["U","u",21]),$a(["V","v",22]),$a(["W","w",23]),$a(["X","x",24]),$a(["Y","y",25]),$a(["Z","z",26]),$a(["-","_",40]),$a([".","`",41]),$a([" ",127,0]),$a(["$","{","*"]),$a(["/","|",","]),$a(["+","}",":"]),$a(["%","~",$1.fn1]),$a([$1.la1,$1.la0,$1.fn2]),$a([$1.sf1,$1.sf0,$1.fn3]),$a([$1.sf2,$1.sf2,$1.fn4])])],["limited",$a([$a(["0",-98,-98]),$a(["1",-98,-98]),$a(["2",-98,-98]),$a(["3",-98,-98]),$a(["4",-98,-98]),$a(["5",-98,-98]),$a(["6",-98,-98]),$a(["7",-98,-98]),$a(["8",-98,-98]),$a(["9",-98,-98]),$a(["A",-98,-98]),$a(["B",-98,-98]),$a(["C",-98,-98]),$a(["D",-98,-98]),$a(["E",-98,-98]),$a(["F",-98,-98]),$a(["G",-98,-98]),$a(["H",-98,-98]),$a(["I",-98,-98]),$a(["J",-98,-98]),$a(["K",-98,-98]),$a(["L",-98,-98]),$a(["M",-98,-98]),$a(["N",-98,-98]),$a(["O",-98,-98]),$a(["P",-98,-98]),$a(["Q",-98,-98]),$a(["R",-98,-98]),$a(["S",-98,-98]),$a(["T",-98,-98]),$a(["U",-98,-98]),$a(["V",-98,-98]),$a(["W",-98,-98]),$a(["X",-98,-98]),$a(["Y",-98,-98]),$a(["Z",-98,-98]),$a(["-",-98,-98]),$a([".",-98,-98])])]]);$k[$j++]=_1l;if($eq($1.version,"a")||$eq($1.version,"b")){$k[$j++]="normal"}else{$k[$j++]="limited"}var _1o=$k[--$j];$1.charmaps=$g($k[--$j],_1o);var _1r=$1.charmaps;var _1s=$1.charmaps;var _1t=$1.charmaps;$1.charvals=$a([new Map,new Map,new Map]);for(var _1x=0,_1w=$1.charmaps.length-1;_1x<=_1w;_1x+=1){$1.i=_1x;$1.encs=$g($1.charmaps,$1.i);for(var _21=0;_21<=2;_21+=1){$1.j=_21;var _24=$g($1.encs,$1.j);$k[$j++]=_24;if($eq($t(_24),"stringtype")){var _27=$g($k[--$j],0);$k[$j++]=_27}$p($g($1.charvals,$1.j),$k[--$j],$1.i)}}$1.set0=$g($1.charvals,0);$1.set1=$g($1.charvals,1);$1.set2=$g($1.charvals,2);if($1.raw){$1.encoding="raw"}if($eq($1.encoding,"raw")){$1.cws=$a($1.barcode.length);$1.i=0;$1.j=0;for(;;){if($1.i==$1.barcode.length){break}$1.cw=~~$z($G($1.barcode,$1.i+1,3));$p($1.cws,$1.j,$1.cw);$1.i=$1.i+4;$1.j=$1.j+1}$1.cws=$G($1.cws,0,$1.j);$1.text=""}if($eq($1.encoding,"auto")){var _2g=new Map([["parse",$1.parse],["parsefnc",$1.parsefnc],["FNC1",$1.fn1],["FNC2",$1.fn2],["FNC3",$1.fn3]]);$1.fncvals=_2g;$k[$j++]="msg";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _2j=$k[--$j];$1[$k[--$j]]=_2j;$1.msglen=$1.msg.length;$1.text=$s($1.msglen);for(var _2q=0,_2p=$1.msglen-1;_2q<=_2p;_2q+=1){$1.i=_2q;var _2v=$g($1.msg,$1.i);$k[$j++]=$1.text;$k[$j++]=$1.i;$k[$j++]=_2v;if(_2v<0){$j--;$k[$j++]=32}var _2w=$k[--$j];var _2x=$k[--$j];$p($k[--$j],_2x,_2w)}$k[$j++]=Infinity;for(var _30=0,_31=$1.msglen;_30<_31;_30++){$k[$j++]=0}$k[$j++]=0;$1.numSA=$a();$k[$j++]=Infinity;for(var _34=0,_35=$1.msglen;_34<_35;_34++){$k[$j++]=0}$k[$j++]=0;$1.numEA=$a();for(var _38=$1.msglen-1;_38>=0;_38-=1){$1.i=_38;if($g($1.msg,$1.i)>=0){if($g($1.msg,$1.i)>=128){$p($1.numEA,$1.i,$f($g($1.numEA,$1.i+1)+1))}else{$p($1.numSA,$1.i,$f($g($1.numSA,$1.i+1)+1))}}}$1.ea=false;$1.msgtmp=$a([]);for(var _3S=0,_3R=$1.msglen-1;_3S<=_3R;_3S+=1){$1.i=_3S;$1.c=$g($1.msg,$1.i);if(!$xo($1.ea,$1.c<128)&&$1.c>=0){if($1.ea){$k[$j++]=$1.numSA}else{$k[$j++]=$1.numEA}var _3e=$g($k[--$j],$1.i);var _3h=$f(_3e+$1.i)==$1.msglen?3:5;if(_3e<_3h){$k[$j++]=Infinity;$q($1.msgtmp);$k[$j++]=$1.fn4;$1.msgtmp=$a()}else{$k[$j++]=Infinity;$q($1.msgtmp);$k[$j++]=$1.fn4;$k[$j++]=$1.fn4;$1.msgtmp=$a();$1.ea=!$1.ea}}$k[$j++]=Infinity;$q($1.msgtmp);if($1.c>=0){$k[$j++]=$1.c&127}else{$k[$j++]=$1.c}$1.msgtmp=$a()}$1.msg=$1.msgtmp;$1.msglen=$1.msg.length;$1.enc=function(){var _3x=$k[--$j];$p($1.cws,$1.j,$g(_3x,$k[--$j]));$1.j=$1.j+1};$1.cws=$a($1.msglen*2);$1.i=0;$1.j=0;$1.cset="set0";for(;;){if($1.i==$1.msglen){break}for(;;){$1.char1=$g($1.msg,$1.i);$k[$j++]="char2";if($1.i+1<$1.msglen){$k[$j++]=$g($1.msg,$1.i+1)}else{$k[$j++]=-99}var _4F=$k[--$j];$1[$k[--$j]]=_4F;var _4K=$g($1[$1.cset],$1.char1)!==undefined;if(_4K){$k[$j++]=$1.char1;$k[$j++]=$1[$1.cset];$1.enc();$1.i=$1.i+1;break}var _4R=$g($1.set2,$1.char1)!==undefined;if(_4R){$k[$j++]=$1.sf2;$k[$j++]=$1[$1.cset];$1.enc();$k[$j++]=$1.char1;$k[$j++]=$1.set2;$1.enc();$1.i=$1.i+1;break}var _4b=$g($1[$1.cset],$1.char2)!==undefined;if(!_4b){if($eq($1.cset,"set0")){$k[$j++]=$1.la1;$k[$j++]=$1[$1.cset];$1.enc();$1.cset="set1"}else{$k[$j++]=$1.la0;$k[$j++]=$1[$1.cset];$1.enc();$1.cset="set0"}break}else{if($eq($1.cset,"set0")){$k[$j++]=$1.sf1;$k[$j++]=$1[$1.cset];$1.enc();$k[$j++]=$1.char1;$k[$j++]=$1.set1;$1.enc()}else{$k[$j++]=$1.sf0;$k[$j++]=$1[$1.cset];$1.enc();$k[$j++]=$1.char1;$k[$j++]=$1.set0;$1.enc()}$1.i=$1.i+1;break}break}}$1.cws=$G($1.cws,0,$1.j)}var _52=new Map([["a",$a(["141112","131212","121312","111412","131113","121213","111313","121114","111214","111115","181111","171211","161311","151411","141511","131611","121711","111811","171112","161212","151312","141412","131512","121612","111712","161113","151213","141313","131413","121513","111613","151114","141214","131314","121414","111514","141115","131215","121315","111415","131116","121216","111316","121117","111217","111118","1<111112","111111111;1"])],["b",$a(["151213","141313","131413","121513","141214","131314","121414","131215","121315","121216","191212","181312","171412","161512","151612","141712","131812","121912","181213","171313","161413","151513","141613","131713","121813","171214","161314","151414","141514","131614","121714","161215","151315","141415","131515","121615","151216","141316","131416","121516","141217","131317","121417","131218","121318","121219","1<121312","121212121<1"])],["limiteda",$a(["111411","111312","111213","111114","121311","121212","121113","141111","131211","131112","171111","161211","151311","141411","131511","121611","111711","161112","151212","141312","131412","121512","111612","151113","141213","131313","121413","111513","141114","131214","121314","111414","131115","121215","111315","121116","111216","111117","151111","1"])],["limitedb",$a(["121512","121413","121314","121215","131412","131313","131214","151212","141312","141213","181212","171312","161412","151512","141612","131712","121812","171213","161313","151413","141513","131613","121713","161214","151314","141414","131514","121614","151215","141315","131415","121515","141216","131316","121416","131217","121317","121218","141212","1"])]]);$1.encs=$g(_52,$1.version);$1.c2w=$a([$a([495,330,210,126,70,35,15,5]),$a([165,120,84,56,35,20,10,4]),$a([45,36,28,21,15,10,6,3]),$a([9,8,7,6,5,4,3,2]),$a([1,1,1,1,1,1,1,1])]);$1.v=0;var _5B=$1.cws;for(var _5C=0,_5D=_5B.length;_5C<_5D;_5C++){$1.cw=$g(_5B,_5C);for(var _5F=0,_5G=6;_5F<_5G;_5F++){if((($1.cw^$1.v)&1)!=0){$1.v=$1.v^7682}$1.v=$1.v>>>1;$1.cw=$1.cw>>>1}}$1.v=$1.v+$1.checkoffset;if($eq($1.version,"limiteda")||$eq($1.version,"limitedb")){$1.v=$1.v&1023;if($1.v>824&&$1.v<853){$1.v=$1.v+292}}else{$1.v=($1.v&1023)+45}$1.d=$a([2,2,2,2,2,2]);$1.r=0;$1.c=0;$1.w=0;$1.sum=0;for(;;){if($1.sum==$1.v){break}$1.t=$f($1.sum+$g($g($1.c2w,$1.r),$1.c));if($1.t==$1.v){$1.w=$1.w+1;$p($1.d,$1.r,$1.w+2);$1.sum=$1.t}if($1.t>$1.v){$p($1.d,$1.r,$1.w+2);$1.r=$1.r+1;$1.w=0}if($1.t<$1.v){$1.c=$1.c+1;$1.w=$1.w+1;$1.sum=$1.t}}$k[$j++]=20;for(var _5w=0;_5w<=4;_5w+=1){var _5z=$k[--$j];$k[$j++]=$f(_5z-$g($1.d,_5w))}$p($1.d,5,$k[--$j]);if($eq($1.version,"b")||$eq($1.version,"limitedb")){$k[$j++]=Infinity;var _64=$1.d;for(var _65=0,_66=_64.length;_65<_66;_65++){$k[$j++]=$f($g(_64,_65)+1)}$1.d=$a()}$1.cbs=$Z($s(12),"111111111111");for(var _6B=5;_6B>=0;_6B-=1){$1.i=_6B;$p($1.cbs,(5-$1.i)*2+1,$f($g($1.d,$1.i)+47))}$1.sbs=$s($1.cws.length*6+31);var _6L=$g($1.encs,$1.encs.length-2);$P($1.sbs,0,_6L);$1.j=_6L.length;for(var _6P=0,_6O=$1.cws.length-1;_6P<=_6O;_6P+=1){$1.i=_6P;$P($1.sbs,$1.j,$g($1.encs,$g($1.cws,$1.i)));$1.j=$1.j+6}$P($1.sbs,$1.j,$1.cbs);$1.j=$1.j+12;var _6e=$g($1.encs,$1.encs.length-1);$P($1.sbs,$1.j,_6e);$1.j=_6e.length+$1.j;$1.sbs=$G($1.sbs,0,$1.j);$k[$j++]=Infinity;$k[$j++]=Infinity;var _6l=$1.sbs;for(var _6m=0,_6n=_6l.length;_6m<_6n;_6m++){$k[$j++]=$f($g(_6l,_6m)-48)}var _6p=$a();$k[$j++]=Infinity;for(var _6r=0,_6s=~~(($1.sbs.length+1)/2);_6r<_6s;_6r++){$k[$j++]=$1.height}var _6u=$a();$k[$j++]=Infinity;for(var _6w=0,_6x=~~(($1.sbs.length+1)/2);_6w<_6x;_6w++){$k[$j++]=0}var _6y=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_6p;$k[$j++]="bhs";$k[$j++]=_6u;$k[$j++]="bbs";$k[$j++]=_6y;$k[$j++]="txt";$k[$j++]=$a([$a([$1.text,$1.textxoffset,$1.textyoffset,$1.textfont,$1.textsize])]);$k[$j++]="textxalign";$k[$j++]="center";$k[$j++]="opt";$k[$j++]=$1.options;var _77=$d();$k[$j++]=_77;if(!$1.dontdraw){$0.renlinear()}};$0.codablockf=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.rows=-1;$1.columns=8;$1.rowheight=10;$1.sepheight=1;$1.parse=false;$1.parsefnc=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.rows=~~$1.rows;$1.columns=~~$1.columns;$1.rowheight=~~$1.rowheight;$1.sepheight=~~$1.sepheight;$k[$j++]="c";if($1.columns>=4&&$1.columns<=62){$k[$j++]=$1.columns}else{$k[$j++]=8}var _C=$k[--$j];$1[$k[--$j]]=_C;$k[$j++]="rows";if($1.rows>=2&&$1.rows<=44){$k[$j++]=$1.rows}else{$k[$j++]=-1}var _H=$k[--$j];$1[$k[--$j]]=_H;$1.swa=-1;$1.swb=-2;$1.swc=-3;$1.sft=-4;$1.fn1=-5;$1.fn2=-6;$1.fn3=-7;$1.fn4=-8;$1.sta=-9;$1.stp=-10;var _N=new Map([["parse",$1.parse],["parsefnc",$1.parsefnc],["FNC1",$1.fn1],["FNC3",$1.fn3]]);$1.fncvals=_N;$k[$j++]="msg";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _Q=$k[--$j];$1[$k[--$j]]=_Q;$1.msglen=$1.msg.length;$1.msgtmp=$a([]);var _U=$1.msg;for(var _V=0,_W=_U.length;_V<_W;_V++){$1.char=$g(_U,_V);$k[$j++]=Infinity;$q($1.msgtmp);if($1.char<128){$k[$j++]=$1.char}else{$k[$j++]=$1.fn4;$k[$j++]=$1.char&127}$1.msgtmp=$a()}$1.msg=$1.msgtmp;$1.msglen=$1.msg.length;$1.charmaps=$a([$a([32,32,"00"]),$a(["!","!","01"]),$a(['"','"',"02"]),$a(["#","#","03"]),$a(["$","$","04"]),$a(["%","%","05"]),$a(["&","&","06"]),$a(["'","'","07"]),$a([40,40,"08"]),$a([41,41,"09"]),$a(["*","*","10"]),$a(["+","+","11"]),$a([",",",","12"]),$a(["-","-","13"]),$a([".",".","14"]),$a(["/","/","15"]),$a(["0","0","16"]),$a(["1","1","17"]),$a(["2","2","18"]),$a(["3","3","19"]),$a(["4","4","20"]),$a(["5","5","21"]),$a(["6","6","22"]),$a(["7","7","23"]),$a(["8","8","24"]),$a(["9","9","25"]),$a([":",":","26"]),$a([";",";","27"]),$a(["<","<","28"]),$a(["=","=","29"]),$a([">",">","30"]),$a(["?","?","31"]),$a(["@","@","32"]),$a(["A","A","33"]),$a(["B","B","34"]),$a(["C","C","35"]),$a(["D","D","36"]),$a(["E","E","37"]),$a(["F","F","38"]),$a(["G","G","39"]),$a(["H","H","40"]),$a(["I","I","41"]),$a(["J","J","42"]),$a(["K","K","43"]),$a(["L","L","44"]),$a(["M","M","45"]),$a(["N","N","46"]),$a(["O","O","47"]),$a(["P","P","48"]),$a(["Q","Q","49"]),$a(["R","R","50"]),$a(["S","S","51"]),$a(["T","T","52"]),$a(["U","U","53"]),$a(["V","V","54"]),$a(["W","W","55"]),$a(["X","X","56"]),$a(["Y","Y","57"]),$a(["Z","Z","58"]),$a(["[","[","59"]),$a([92,92,"60"]),$a(["]","]","61"]),$a(["^","^","62"]),$a(["_","_","63"]),$a([0,"`","64"]),$a([1,"a","65"]),$a([2,"b","66"]),$a([3,"c","67"]),$a([4,"d","68"]),$a([5,"e","69"]),$a([6,"f","70"]),$a([7,"g","71"]),$a([8,"h","72"]),$a([9,"i","73"]),$a([10,"j","74"]),$a([11,"k","75"]),$a([12,"l","76"]),$a([13,"m","77"]),$a([14,"n","78"]),$a([15,"o","79"]),$a([16,"p","80"]),$a([17,"q","81"]),$a([18,"r","82"]),$a([19,"s","83"]),$a([20,"t","84"]),$a([21,"u","85"]),$a([22,"v","86"]),$a([23,"w","87"]),$a([24,"x","88"]),$a([25,"y","89"]),$a([26,"z","90"]),$a([27,"{","91"]),$a([28,"|","92"]),$a([29,"}","93"]),$a([30,"~","94"]),$a([31,127,"95"]),$a([$1.fn3,$1.fn3,"96"]),$a([$1.fn2,$1.fn2,"97"]),$a([$1.sft,$1.sft,"98"]),$a([$1.swc,$1.swc,"99"]),$a([$1.swb,$1.fn4,$1.swb]),$a([$1.fn4,$1.swa,$1.swa]),$a([$1.fn1,$1.fn1,$1.fn1]),$a([$1.sta,$1.sta,$1.sta]),$a([$1.stp,$1.stp,$1.stp])]);$1.charvals=$a([new Map,new Map,new Map]);for(var _2o=0,_2n=$1.charmaps.length-1;_2o<=_2n;_2o+=1){$1.i=_2o;$1.encs=$g($1.charmaps,$1.i);for(var _2s=0;_2s<=2;_2s+=1){$1.j=_2s;var _2v=$g($1.encs,$1.j);$k[$j++]=_2v;if($eq($t(_2v),"stringtype")){var _2y=$g($k[--$j],0);$k[$j++]=_2y}$p($g($1.charvals,$1.j),$k[--$j],$1.i)}}$1.seta=$g($1.charvals,0);$1.setb=$g($1.charvals,1);$1.setc=$g($1.charvals,2);$1.numsscr=function(){$1.n=0;$1.s=0;$1.p=$k[--$j];for(;;){if($1.p>=$1.msglen){break}var _3F=$g($1.msg,$1.p);var _3H=$g($1.setc,_3F)!==undefined;$k[$j++]=_3F;if(!_3H){$j--;break}if($k[--$j]==$1.fn1){if($1.s%2==0){$1.s=$1.s+1}else{break}}$1.n=$1.n+1;$1.s=$1.s+1;$1.p=$f($1.p+1)}$k[$j++]=$1.n;$k[$j++]=$1.s};$1.enca=function(){$p($1.cws,$1.j,$g($1.seta,$k[--$j]));$1.j=$1.j+1};$1.encb=function(){$p($1.cws,$1.j,$g($1.setb,$k[--$j]));$1.j=$1.j+1};$1.encc=function(){var _3d=$k[--$j];$k[$j++]=_3d;if($ne($t(_3d),"arraytype")){var _3h=$g($1.setc,$k[--$j]);$k[$j++]=_3h}else{$q($k[--$j]);var _3j=$k[--$j];var _3k=$k[--$j];$k[$j++]=$f($f(_3j-48)+$f(_3k-48)*10)}$p($1.cws,$1.j,$k[--$j]);$1.j=$1.j+1};$1.anotb=function(){var _3p=$k[--$j];var _3r=$g($1.seta,_3p)!==undefined;var _3t=$g($1.setb,_3p)!==undefined;$k[$j++]=_3r&&!_3t};$1.bnota=function(){var _3u=$k[--$j];var _3w=$g($1.setb,_3u)!==undefined;var _3y=$g($1.seta,_3u)!==undefined;$k[$j++]=_3w&&!_3y};$k[$j++]=Infinity;for(var _40=0,_41=$1.msg.length;_40<_41;_40++){$k[$j++]=0}$k[$j++]=9999;$1.nextanotb=$a();$k[$j++]=Infinity;for(var _44=0,_45=$1.msg.length;_44<_45;_44++){$k[$j++]=0}$k[$j++]=9999;$1.nextbnota=$a();for(var _48=$1.msg.length-1;_48>=0;_48-=1){$1.i=_48;$k[$j++]=$g($1.msg,$1.i);$1.anotb();if($k[--$j]){$p($1.nextanotb,$1.i,0)}else{$p($1.nextanotb,$1.i,$f($g($1.nextanotb,$1.i+1)+1))}$k[$j++]=$g($1.msg,$1.i);$1.bnota();if($k[--$j]){$p($1.nextbnota,$1.i,0)}else{$p($1.nextbnota,$1.i,$f($g($1.nextbnota,$1.i+1)+1))}}$1.abeforeb=function(){var _4V=$k[--$j];$k[$j++]=$lt($g($1.nextanotb,_4V),$g($1.nextbnota,_4V))};$1.bbeforea=function(){var _4a=$k[--$j];$k[$j++]=$lt($g($1.nextbnota,_4a),$g($1.nextanotb,_4a))};$1.padrow=function(){for(var _4g=0,_4h=$k[--$j];_4g<_4h;_4g++){for(;;){if($eq($1.cset,"seta")){$k[$j++]=$1.swc;$1.enca();$1.cset="setc";break}if($eq($1.cset,"setb")){$k[$j++]=$1.swc;$1.encb();$1.cset="setc";break}if($eq($1.cset,"setc")){$k[$j++]=$1.swb;$1.encc();$1.cset="setb";break}}}};$1.cws=$a($f($1.c+5)*44);$1.i=0;$1.j=0;$1.r=1;$1.lastrow=false;for(;;){if($1.lastrow){break}$k[$j++]=$1.sta;$1.enca();if($1.i<$1.msglen){$k[$j++]=$1.i;$1.numsscr()}else{$k[$j++]=-1;$k[$j++]=-1}$1.nums=$k[--$j];$1.nchars=$k[--$j];for(;;){if($1.msglen==0){$k[$j++]=$1.swb;$1.enca();$1.cset="setb";break}if($1.nums>=2){$k[$j++]=$1.swc;$1.enca();$1.cset="setc";break}$k[$j++]=$1.i;$1.abeforeb();if($k[--$j]){$k[$j++]=$1.sft;$1.enca();$1.cset="seta";break}$k[$j++]=$1.swb;$1.enca();$1.cset="setb";break}$1.j=$1.j+1;$1.endofrow=false;for(;;){$1.rem=$f($f($1.c+3)-$1.j%$f($1.c+5));if($1.i==$1.msglen||$1.endofrow){break}$k[$j++]=$1.i;$1.numsscr();$1.nums=$k[--$j];$1.nchars=$k[--$j];$k[$j++]="remnums";if($1.nums>$1.rem*2){$k[$j++]=$1.rem*2}else{$k[$j++]=$1.nums}var _5J=$k[--$j];$1[$k[--$j]]=_5J;for(;;){if(($eq($1.cset,"seta")||$eq($1.cset,"setb"))&&$1.remnums>=4&&$g($1.msg,$1.i)!=$1.fn1){if($1.remnums%2==0&&$1.rem>=3){$k[$j++]=$1.swc;if($eq($1.cset,"seta")){$1.enca()}else{$1.encb()}$1.cset="setc";for(var _5W=0,_5X=2;_5W<_5X;_5W++){if($g($1.msg,$1.i)==$1.fn1){$k[$j++]=$1.fn1;$1.encc();$1.i=$1.i+1}else{$k[$j++]=$G($1.msg,$1.i,2);$1.encc();$1.i=$1.i+2}}break}if($1.remnums%2!=0&&$1.rem>=4){$k[$j++]=$g($1.msg,$1.i);if($eq($1.cset,"seta")){$1.enca()}else{$1.encb()}$1.i=$1.i+1;$k[$j++]=$1.swc;if($eq($1.cset,"seta")){$1.enca()}else{$1.encb()}$1.cset="setc";for(var _5r=0,_5s=2;_5r<_5s;_5r++){if($g($1.msg,$1.i)==$1.fn1){$k[$j++]=$1.fn1;$1.encc();$1.i=$1.i+1}else{$k[$j++]=$G($1.msg,$1.i,2);$1.encc();$1.i=$1.i+2}}break}}$k[$j++]=$eq($1.cset,"setb");$k[$j++]=$g($1.msg,$1.i);$1.anotb();var _67=$k[--$j];var _68=$k[--$j];if(_68&&_67&&$1.rem>=2){if($1.i<$1.msglen-1){$k[$j++]=$1.i+1;$1.bbeforea();if($k[--$j]){$k[$j++]=$1.sft;$1.encb();$k[$j++]=$g($1.msg,$1.i);$1.enca();$1.i=$1.i+1;break}}$k[$j++]=$1.swa;$1.encb();$1.cset="seta";$k[$j++]=$g($1.msg,$1.i);$1.enca();$1.i=$1.i+1;break}$k[$j++]=$eq($1.cset,"seta");$k[$j++]=$g($1.msg,$1.i);$1.bnota();var _6S=$k[--$j];var _6T=$k[--$j];if(_6T&&_6S&&$1.rem>=2){if($1.i<$1.msglen-1){$k[$j++]=$1.i+1;$1.abeforeb();if($k[--$j]){$k[$j++]=$1.sft;$1.enca();$k[$j++]=$g($1.msg,$1.i);$1.encb();$1.i=$1.i+1;break}}$k[$j++]=$1.swb;$1.enca();$1.cset="setb";$k[$j++]=$g($1.msg,$1.i);$1.encb();$1.i=$1.i+1;break}if($eq($1.cset,"setc")&&$1.remnums<2&&$1.rem>=2){$k[$j++]=$1.i;$1.abeforeb();if($k[--$j]){$k[$j++]=$1.swa;$1.encc();$1.cset="seta";$k[$j++]=$g($1.msg,$1.i);$1.enca();$1.i=$1.i+1;break}$k[$j++]=$1.swb;$1.encc();$1.cset="setb";$k[$j++]=$g($1.msg,$1.i);$1.encb();$1.i=$1.i+1;break}var _73=$g($1.seta,$g($1.msg,$1.i))!==undefined;if($eq($1.cset,"seta")&&_73&&$1.rem>=1){$k[$j++]=$g($1.msg,$1.i);$1.enca();$1.i=$1.i+1;break}var _7E=$g($1.setb,$g($1.msg,$1.i))!==undefined;if($eq($1.cset,"setb")&&_7E&&$1.rem>=1){$k[$j++]=$g($1.msg,$1.i);$1.encb();$1.i=$1.i+1;break}if($eq($1.cset,"setc")&&$1.remnums>=2&&$1.rem>=1){if($g($1.msg,$1.i)==$1.fn1){$k[$j++]=$1.fn1;$1.encc();$1.i=$1.i+1}else{$k[$j++]=$G($1.msg,$1.i,2);$1.encc();$1.i=$1.i+2}break}$1.endofrow=true;break}}if(($1.r>=$1.rows||$1.rows==-1)&&$1.r>1&&$1.i==$1.msglen&&$1.rem>=2){$k[$j++]=$f($1.rem-2);$1.padrow();$1.j=$1.j+3;$k[$j++]=$1.stp;$1.enca();$1.lastrow=true}else{$k[$j++]=$1.rem;$1.padrow();$1.j=$1.j+1;$k[$j++]=$1.stp;$1.enca();$1.r=$1.r+1}}$1.cws=$G($1.cws,0,$1.j);$k[$j++]=Infinity;for(var _7o=64;_7o<=95;_7o+=1){$k[$j++]=_7o}for(var _7p=0;_7p<=15;_7p+=1){$k[$j++]=_7p}for(var _7q=26;_7q<=63;_7q+=1){$k[$j++]=_7q}$1.abmap=$a();$k[$j++]=Infinity;for(var _7s=0;_7s<=85;_7s+=1){$k[$j++]=_7s}$1.cmap=$a();$1.chkmsg=$a($1.msglen);$1.j=0;for(var _7y=0,_7x=$1.msglen-1;_7y<=_7x;_7y+=1){$1.i=_7y;$1.char=$g($1.msg,$1.i);if($1.char>=0){$p($1.chkmsg,$1.j,$1.char);$1.j=$1.j+1}if($1.char==$1.fn1&&$1.i!=0){$p($1.chkmsg,$1.j,29);$1.j=$1.j+1}}$1.t1=0;$1.t2=0;$1.k1=0;$1.k2=0;for(var _8F=0,_8E=$1.j-1;_8F<=_8E;_8F+=1){$1.i=_8F;$1.t1=$g($1.chkmsg,$1.i)*$1.i%86;$1.t2=$f($1.t1+$g($1.chkmsg,$1.i))%86;$1.k1=$f($1.k1+$1.t2)%86;$1.k2=$f($1.k2+$1.t1)%86}$k[$j++]=$1.cws;$k[$j++]=$1.cws.length-4;if($ne($1.cset,"setc")){$k[$j++]=$1.abmap}else{$k[$j++]=$1.cmap}var _8Z=$g($k[--$j],$1.k1);var _8a=$k[--$j];$p($k[--$j],_8a,_8Z);$k[$j++]=$1.cws;$k[$j++]=$1.cws.length-3;if($ne($1.cset,"setc")){$k[$j++]=$1.abmap}else{$k[$j++]=$1.cmap}var _8j=$g($k[--$j],$1.k2);var _8k=$k[--$j];$p($k[--$j],_8k,_8j);var _8m=$1.cws;$k[$j++]=_8m;$k[$j++]=2;if($g(_8m,2-1)!=99){$k[$j++]=$1.abmap}else{$k[$j++]=$1.cmap}var _8s=$g($k[--$j],$1.r-2);var _8t=$k[--$j];$p($k[--$j],_8t,_8s);for(var _8x=1,_8w=$1.r-1;_8x<=_8w;_8x+=1){$1.i=_8x;var _8y=$1.cws;var _8z=$1.i;var _90=$1.c;$k[$j++]=_8y;$k[$j++]=$f(_8z*$f(_90+5)+2);if($g(_8y,$f($f(_8z*$f(_90+5)+2)-1))!=99){$k[$j++]=$1.abmap}else{$k[$j++]=$1.cmap}var _96=$g($k[--$j],$1.i+42);var _97=$k[--$j];$p($k[--$j],_97,_96)}for(var _9B=0,_9A=$1.r-1;_9B<=_9A;_9B+=1){$1.rcws=$G($1.cws,_9B*$f($1.c+5),$f($1.c+4));$1.csum=$g($1.rcws,0);for(var _9K=1,_9J=$1.rcws.length-2;_9K<=_9J;_9K+=1){$1.i=_9K;$1.csum=$f($1.csum+$g($1.rcws,$1.i)*$1.i)}$p($1.rcws,$1.rcws.length-1,$1.csum%103)}$1.encs=$a(["212222","222122","222221","121223","121322","131222","122213","122312","132212","221213","221312","231212","112232","122132","122231","113222","123122","123221","223211","221132","221231","213212","223112","312131","311222","321122","321221","312212","322112","322211","212123","212321","232121","111323","131123","131321","112313","132113","132311","211313","231113","231311","112133","112331","132131","113123","113321","133121","313121","211331","231131","213113","213311","213131","311123","311321","331121","312113","312311","332111","314111","221411","431111","111224","111422","121124","121421","141122","141221","112214","112412","122114","122411","142112","142211","241211","221114","413111","241112","134111","111242","121142","121241","114212","124112","124211","411212","421112","421211","212141","214121","412121","111143","111341","131141","114113","114311","411113","411311","113141","114131","311141","411131","211412","2331112"]);$1.rowbits=$a($1.r);for(var _9Y=0,_9X=$1.r-1;_9Y<=_9X;_9Y+=1){$1.i=_9Y;$k[$j++]=Infinity;var _9d=$G($1.cws,$1.i*$f($1.c+5),$f($1.c+5));for(var _9e=0,_9f=_9d.length;_9e<_9f;_9e++){$F($g($1.encs,$g(_9d,_9e)),function(){var _9j=$k[--$j];$k[$j++]=$f(_9j-48)})}$1.sbs=$a();$k[$j++]=Infinity;var _9l=$1.sbs;$k[$j++]=0;for(var _9m=0,_9n=_9l.length;_9m<_9n;_9m++){var _9p=$k[--$j];var _9q=_9p==1?0:1;$k[$j++]=_9p;for(var _9r=0,_9s=$g(_9l,_9m);_9r<_9s;_9r++){$k[$j++]=_9q}}$r($a($m()-1));var _9v=$k[--$j];var _9w=$k[--$j];$k[$j++]=_9v;$k[$j++]=_9w;$j--;var _9x=$k[--$j];var _9y=$k[--$j];$k[$j++]=_9x;$k[$j++]=_9y;$j--;$p($1.rowbits,$1.i,$k[--$j])}$1.symwid=$f($1.c*11+57);$k[$j++]=Infinity;for(var _A5=0,_A6=$1.symwid*$1.sepheight;_A5<_A6;_A5++){$k[$j++]=1}for(var _A9=0,_A8=$1.r-2;_A9<=_A8;_A9+=1){$1.i=_A9;for(var _AB=0,_AC=$1.rowheight;_AB<_AC;_AB++){$q($g($1.rowbits,$1.i))}for(var _AH=0,_AI=$1.sepheight;_AH<_AI;_AH++){$k[$j++]=1;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=0;for(var _AK=0,_AL=$f($1.symwid-24);_AK<_AL;_AK++){$k[$j++]=1}$k[$j++]=1;$k[$j++]=1;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=1}}for(var _AN=0,_AO=$1.rowheight;_AN<_AO;_AN++){$q($g($1.rowbits,$1.r-1))}for(var _AU=0,_AV=$1.symwid*$1.sepheight;_AU<_AV;_AU++){$k[$j++]=1}$1.pixs=$a();var _Af=new Map([["ren",$0.renmatrix],["pixs",$1.pixs],["pixx",$1.symwid],["pixy",~~($1.pixs.length/$1.symwid)],["height",~~($1.pixs.length/$1.symwid)/72],["width",$1.symwid/72],["opt",$1.options]]);$k[$j++]=_Af;if(!$1.dontdraw){$0.renmatrix()}};$0.code16k=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.mode=-1;$1.pos=-1;$1.rows=0;$1.rowheight=8;$1.sepheight=1;$1.encoding="auto";$1.raw=false;$1.parse=false;$1.parsefnc=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.mode=~~$1.mode;$1.pos=~~$1.pos;$1.rows=~~$1.rows;$1.rowheight=~~$1.rowheight;$1.sepheight=~~$1.sepheight;if($1.pos!=-1){$1.rows=16}$1.swa=-1;$1.swb=-2;$1.swc=-3;$1.sa1=-4;$1.sb1=-5;$1.sc1=-6;$1.sa2=-7;$1.sb2=-8;$1.sc2=-9;$1.pad=-10;$1.sb3=-11;$1.sc3=-12;$1.fn1=-13;$1.fn2=-14;$1.fn3=-15;$1.fn4=-16;$1.charmaps=$a([$a([32,32,"00"]),$a(["!","!","01"]),$a(['"','"',"02"]),$a(["#","#","03"]),$a(["$","$","04"]),$a(["%","%","05"]),$a(["&","&","06"]),$a(["'","'","07"]),$a([40,40,"08"]),$a([41,41,"09"]),$a(["*","*","10"]),$a(["+","+","11"]),$a([",",",","12"]),$a(["-","-","13"]),$a([".",".","14"]),$a(["/","/","15"]),$a(["0","0","16"]),$a(["1","1","17"]),$a(["2","2","18"]),$a(["3","3","19"]),$a(["4","4","20"]),$a(["5","5","21"]),$a(["6","6","22"]),$a(["7","7","23"]),$a(["8","8","24"]),$a(["9","9","25"]),$a([":",":","26"]),$a([";",";","27"]),$a(["<","<","28"]),$a(["=","=","29"]),$a([">",">","30"]),$a(["?","?","31"]),$a(["@","@","32"]),$a(["A","A","33"]),$a(["B","B","34"]),$a(["C","C","35"]),$a(["D","D","36"]),$a(["E","E","37"]),$a(["F","F","38"]),$a(["G","G","39"]),$a(["H","H","40"]),$a(["I","I","41"]),$a(["J","J","42"]),$a(["K","K","43"]),$a(["L","L","44"]),$a(["M","M","45"]),$a(["N","N","46"]),$a(["O","O","47"]),$a(["P","P","48"]),$a(["Q","Q","49"]),$a(["R","R","50"]),$a(["S","S","51"]),$a(["T","T","52"]),$a(["U","U","53"]),$a(["V","V","54"]),$a(["W","W","55"]),$a(["X","X","56"]),$a(["Y","Y","57"]),$a(["Z","Z","58"]),$a(["[","[","59"]),$a([92,92,"60"]),$a(["]","]","61"]),$a(["^","^","62"]),$a(["_","_","63"]),$a([0,"`","64"]),$a([1,"a","65"]),$a([2,"b","66"]),$a([3,"c","67"]),$a([4,"d","68"]),$a([5,"e","69"]),$a([6,"f","70"]),$a([7,"g","71"]),$a([8,"h","72"]),$a([9,"i","73"]),$a([10,"j","74"]),$a([11,"k","75"]),$a([12,"l","76"]),$a([13,"m","77"]),$a([14,"n","78"]),$a([15,"o","79"]),$a([16,"p","80"]),$a([17,"q","81"]),$a([18,"r","82"]),$a([19,"s","83"]),$a([20,"t","84"]),$a([21,"u","85"]),$a([22,"v","86"]),$a([23,"w","87"]),$a([24,"x","88"]),$a([25,"y","89"]),$a([26,"z","90"]),$a([27,"{","91"]),$a([28,"|","92"]),$a([29,"}","93"]),$a([30,"~","94"]),$a([31,127,"95"]),$a([$1.fn3,$1.fn3,"96"]),$a([$1.fn2,$1.fn2,"97"]),$a([$1.sb1,$1.sa1,"98"]),$a([$1.swc,$1.swc,"99"]),$a([$1.swb,$1.fn4,$1.swb]),$a([$1.fn4,$1.swa,$1.swa]),$a([$1.fn1,$1.fn1,$1.fn1]),$a([$1.pad,$1.pad,$1.pad]),$a([$1.sb2,$1.sa2,$1.sb1]),$a([$1.sc2,$1.sc2,$1.sb2]),$a([$1.sc3,$1.sc3,$1.sb3])]);$1.charvals=$a([new Map,new Map,new Map]);for(var _2R=0,_2Q=$1.charmaps.length-1;_2R<=_2Q;_2R+=1){$1.i=_2R;$1.encs=$g($1.charmaps,$1.i);for(var _2V=0;_2V<=2;_2V+=1){$1.j=_2V;var _2Y=$g($1.encs,$1.j);$k[$j++]=_2Y;if($eq($t(_2Y),"stringtype")){var _2b=$g($k[--$j],0);$k[$j++]=_2b}$p($g($1.charvals,$1.j),$k[--$j],$1.i)}}$1.seta=$g($1.charvals,0);$1.setb=$g($1.charvals,1);$1.setc=$g($1.charvals,2);if($1.raw){$1.encoding="raw"}if($eq($1.encoding,"raw")){$1.cws=$a($1.barcode.length);$1.i=0;$1.j=0;for(;;){if($1.i==$1.barcode.length){break}$1.cw=~~$z($G($1.barcode,$1.i+1,3));$p($1.cws,$1.j,$1.cw);$1.i=$1.i+4;$1.j=$1.j+1}$1.cws=$G($1.cws,0,$1.j)}if($eq($1.encoding,"auto")){var _3A=new Map([["parse",$1.parse],["parsefnc",$1.parsefnc],["eci",true],["FNC1",$1.fn1],["FNC2",$1.fn2],["FNC3",$1.fn3]]);$1.fncvals=_3A;$k[$j++]="msg";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _3D=$k[--$j];$1[$k[--$j]]=_3D;$1.msglen=$1.msg.length;$k[$j++]=Infinity;for(var _3H=0,_3I=$1.msglen;_3H<_3I;_3H++){$k[$j++]=0}$k[$j++]=0;$1.numSA=$a();$k[$j++]=Infinity;for(var _3L=0,_3M=$1.msglen;_3L<_3M;_3L++){$k[$j++]=0}$k[$j++]=0;$1.numEA=$a();for(var _3P=$1.msglen-1;_3P>=0;_3P-=1){$1.i=_3P;if($g($1.msg,$1.i)>=0){if($g($1.msg,$1.i)>=128){$p($1.numEA,$1.i,$f($g($1.numEA,$1.i+1)+1))}else{$p($1.numSA,$1.i,$f($g($1.numSA,$1.i+1)+1))}}}$1.ea=false;$1.msgtmp=$a([]);for(var _3j=0,_3i=$1.msglen-1;_3j<=_3i;_3j+=1){$1.i=_3j;$1.c=$g($1.msg,$1.i);if(!$xo($1.ea,$1.c<128)&&$1.c>=0){if($1.ea){$k[$j++]=$1.numSA}else{$k[$j++]=$1.numEA}var _3v=$g($k[--$j],$1.i);var _3y=$f(_3v+$1.i)==$1.msglen?3:5;if(_3v<_3y){$k[$j++]=Infinity;$q($1.msgtmp);$k[$j++]=$1.fn4;$1.msgtmp=$a()}else{$k[$j++]=Infinity;$q($1.msgtmp);$k[$j++]=$1.fn4;$k[$j++]=$1.fn4;$1.msgtmp=$a();$1.ea=!$1.ea}}$k[$j++]=Infinity;$q($1.msgtmp);if($1.c>=0){$k[$j++]=$1.c&127}else{$k[$j++]=$1.c}$1.msgtmp=$a()}$1.msg=$1.msgtmp;$1.msglen=$1.msg.length;$1.numsscr=function(){$1.n=0;$1.s=0;$1.p=$k[--$j];for(;;){if($1.p>=$1.msglen){break}var _4J=$g($1.msg,$1.p);var _4L=$g($1.setc,_4J)!==undefined;$k[$j++]=_4J;if(!_4L){$j--;break}if($k[--$j]==$1.fn1){if($1.s%2==0){$1.s=$1.s+1}else{break}}$1.n=$1.n+1;$1.s=$1.s+1;$1.p=$f($1.p+1)}$k[$j++]=$1.n;$k[$j++]=$1.s};$1.enca=function(){$p($1.cws,$1.j,$g($1.seta,$k[--$j]));$1.j=$1.j+1};$1.encb=function(){$p($1.cws,$1.j,$g($1.setb,$k[--$j]));$1.j=$1.j+1};$1.encc=function(){var _4h=$k[--$j];$k[$j++]=_4h;if($ne($t(_4h),"arraytype")){var _4l=$g($1.setc,$k[--$j]);$k[$j++]=_4l}else{$q($k[--$j]);var _4n=$k[--$j];var _4o=$k[--$j];$k[$j++]=$f($f(_4n-48)+$f(_4o-48)*10)}$p($1.cws,$1.j,$k[--$j]);$1.j=$1.j+1};$1.anotb=function(){var _4t=$k[--$j];var _4v=$g($1.seta,_4t)!==undefined;var _4x=$g($1.setb,_4t)!==undefined;$k[$j++]=_4v&&!_4x};$1.bnota=function(){var _4y=$k[--$j];var _50=$g($1.setb,_4y)!==undefined;var _52=$g($1.seta,_4y)!==undefined;$k[$j++]=_50&&!_52};$k[$j++]=Infinity;for(var _54=0,_55=$1.msg.length;_54<_55;_54++){$k[$j++]=0}$k[$j++]=9999;$1.nextanotb=$a();$k[$j++]=Infinity;for(var _58=0,_59=$1.msg.length;_58<_59;_58++){$k[$j++]=0}$k[$j++]=9999;$1.nextbnota=$a();for(var _5C=$1.msg.length-1;_5C>=0;_5C-=1){$1.i=_5C;$k[$j++]=$g($1.msg,$1.i);$1.anotb();if($k[--$j]){$p($1.nextanotb,$1.i,0)}else{$p($1.nextanotb,$1.i,$f($g($1.nextanotb,$1.i+1)+1))}$k[$j++]=$g($1.msg,$1.i);$1.bnota();if($k[--$j]){$p($1.nextbnota,$1.i,0)}else{$p($1.nextbnota,$1.i,$f($g($1.nextbnota,$1.i+1)+1))}}$1.abeforeb=function(){var _5Z=$k[--$j];$k[$j++]=$lt($g($1.nextanotb,_5Z),$g($1.nextbnota,_5Z))};$1.bbeforea=function(){var _5e=$k[--$j];$k[$j++]=$lt($g($1.nextbnota,_5e),$g($1.nextanotb,_5e))};$1.cws=$a($1.barcode.length*2+3);$1.i=0;$1.j=0;for(;;){if($1.pos!=-1){$p($1.cws,0,~~($1.pos/10)-1);$p($1.cws,1,$1.pos%10-1);$1.j=2;$1.cset="setb";$1.mode=7;break}if($1.msglen==0){$1.cset="setb";$1.mode=1;break}if($1.msglen>=2){$k[$j++]=$g($1.msg,0)==$1.fn1;$k[$j++]=1;$1.numsscr();var _5v=$k[--$j];var _5w=$k[--$j];$k[$j++]=_5v;$k[$j++]=_5w;$j--;var _5x=$k[--$j];var _5y=$k[--$j];if(_5y&&_5x>=2){$1.cset="setc";$1.mode=4;$1.i=1;break}}if($g($1.msg,0)==$1.fn1){$1.cset="setb";$1.mode=3;$1.i=1;break}if($1.msglen>=2){$k[$j++]=0;$1.numsscr();var _63=$k[--$j];var _64=$k[--$j];$k[$j++]=_63;$k[$j++]=_64;$j--;var _65=$k[--$j];if(_65>=2&&_65%2==0){$1.cset="setc";$1.mode=2;break}$k[$j++]=0;$1.numsscr();var _66=$k[--$j];var _67=$k[--$j];$k[$j++]=_66;$k[$j++]=_67;$j--;var _68=$k[--$j];if(_68>=3&&_68%2==1){$k[$j++]=$g($1.msg,0);$1.encb();$1.cset="setc";$1.mode=5;$1.i=1;break}var _6E=$g($1.setb,$g($1.msg,0))!==undefined;$k[$j++]=_6E;$k[$j++]=1;$1.numsscr();var _6F=$k[--$j];var _6G=$k[--$j];$k[$j++]=_6F;$k[$j++]=_6G;$j--;var _6H=$k[--$j];var _6I=$k[--$j];if(_6I&&(_6H>=2&&_6H%2==0)){$k[$j++]=$g($1.msg,0);$1.encb();$1.cset="setc";$1.mode=5;$1.i=1;break}var _6O=$g($1.setb,$g($1.msg,0))!==undefined;$k[$j++]=_6O;$k[$j++]=1;$1.numsscr();var _6P=$k[--$j];var _6Q=$k[--$j];$k[$j++]=_6P;$k[$j++]=_6Q;$j--;var _6R=$k[--$j];var _6S=$k[--$j];if(_6S&&(_6R>=3&&_6R%2==1)){$k[$j++]=$g($1.msg,0);$1.encb();$k[$j++]=$g($1.msg,1);$1.encb();$1.cset="setc";$1.mode=6;$1.i=2;break}var _6a=$g($1.setb,$g($1.msg,0))!==undefined;var _6e=$g($1.setb,$g($1.msg,1))!==undefined;$k[$j++]=_6a&&_6e;$k[$j++]=2;$1.numsscr();var _6f=$k[--$j];var _6g=$k[--$j];$k[$j++]=_6f;$k[$j++]=_6g;$j--;var _6h=$k[--$j];var _6i=$k[--$j];if(_6i&&(_6h>=2&&_6h%2==0)){$k[$j++]=$g($1.msg,0);$1.encb();$k[$j++]=$g($1.msg,1);$1.encb();$1.cset="setc";$1.mode=6;$1.i=2;break}}$k[$j++]=0;$1.abeforeb();if($k[--$j]){$1.cset="seta";$1.mode=0;break}$1.cset="setb";$1.mode=1;break}for(;;){if($1.i==$1.msglen){break}$k[$j++]=$1.i;$1.numsscr();$1.nums=$k[--$j];$1.nchars=$k[--$j];for(;;){if($eq($1.cset,"seta")){if($1.i<$1.msglen-1){$k[$j++]=$g($1.msg,$1.i);$1.bnota();$k[$j++]=$1.i+1;$1.abeforeb();var _70=$k[--$j];var _71=$k[--$j];if(_71&&_70){$k[$j++]=$1.sb1;$1.enca();$k[$j++]=$g($1.msg,$1.i);$1.encb();$1.i=$1.i+1;break}}if($1.i<$1.msglen-2){$k[$j++]=$g($1.msg,$1.i);$1.bnota();$k[$j++]=$g($1.msg,$1.i+1);$1.bnota();var _7F=$k[--$j];var _7G=$k[--$j];$k[$j++]=$an(_7G,_7F);$k[$j++]=$1.i+2;$1.abeforeb();var _7I=$k[--$j];var _7J=$k[--$j];if(_7J&&_7I){$k[$j++]=$1.sb2;$1.enca();$k[$j++]=$g($1.msg,$1.i);$1.encb();$k[$j++]=$g($1.msg,$1.i+1);$1.encb();$1.i=$1.i+2;break}}$k[$j++]=$g($1.msg,$1.i);$1.bnota();if($k[--$j]){$k[$j++]=$1.swb;$1.enca();$1.cset="setb";break}if($1.i<$1.msglen-4){var _7e=$g($1.seta,$g($1.msg,$1.i+4))!==undefined;if($1.nums==4&&_7e){$k[$j++]=$1.sc2;$1.enca();for(var _7g=0,_7h=2;_7g<_7h;_7g++){if($g($1.msg,$1.i)==$1.fn1){$k[$j++]=$1.fn1;$1.encc();$1.i=$1.i+1}else{$k[$j++]=$G($1.msg,$1.i,2);$1.encc();$1.i=$1.i+2}}break}}if($1.i<$1.msglen-6){var _7z=$g($1.seta,$g($1.msg,$1.i+6))!==undefined;if($1.nums==6&&_7z){$k[$j++]=$1.sc3;$1.enca();for(var _81=0,_82=3;_81<_82;_81++){if($g($1.msg,$1.i)==$1.fn1){$k[$j++]=$1.fn1;$1.encc();$1.i=$1.i+1}else{$k[$j++]=$G($1.msg,$1.i,2);$1.encc();$1.i=$1.i+2}}break}}if($1.nums>=4&&$1.nums%2==0){$k[$j++]=$1.swc;$1.enca();$1.cset="setc";break}$k[$j++]=$g($1.msg,$1.i);$1.enca();$1.i=$1.i+1;break}if($eq($1.cset,"setb")){if($1.i<$1.msglen-1){$k[$j++]=$g($1.msg,$1.i);$1.anotb();$k[$j++]=$1.i+1;$1.bbeforea();var _8R=$k[--$j];var _8S=$k[--$j];if(_8S&&_8R){$k[$j++]=$1.sa1;$1.encb();$k[$j++]=$g($1.msg,$1.i);$1.enca();$1.i=$1.i+1;break}}if($1.i<$1.msglen-2){$k[$j++]=$g($1.msg,$1.i);$1.anotb();$k[$j++]=$g($1.msg,$1.i+1);$1.anotb();var _8g=$k[--$j];var _8h=$k[--$j];$k[$j++]=$an(_8h,_8g);$k[$j++]=$1.i+2;$1.bbeforea();var _8j=$k[--$j];var _8k=$k[--$j];if(_8k&&_8j){$k[$j++]=$1.sa2;$1.encb();$k[$j++]=$g($1.msg,$1.i);$1.enca();$k[$j++]=$g($1.msg,$1.i+1);$1.enca();$1.i=$1.i+2;break}}$k[$j++]=$g($1.msg,$1.i);$1.anotb();if($k[--$j]){$k[$j++]=$1.swa;$1.encb();$1.cset="seta";break}if($1.i<$1.msglen-4){var _95=$g($1.setb,$g($1.msg,$1.i+4))!==undefined;if($1.nums==4&&_95){$k[$j++]=$1.sc2;$1.encb();for(var _97=0,_98=2;_97<_98;_97++){if($g($1.msg,$1.i)==$1.fn1){$k[$j++]=$1.fn1;$1.encc();$1.i=$1.i+1}else{$k[$j++]=$G($1.msg,$1.i,2);$1.encc();$1.i=$1.i+2}}break}}if($1.i<$1.msglen-6){var _9Q=$g($1.setb,$g($1.msg,$1.i+6))!==undefined;if($1.nums==6&&_9Q){$k[$j++]=$1.sc3;$1.encb();for(var _9S=0,_9T=3;_9S<_9T;_9S++){if($g($1.msg,$1.i)==$1.fn1){$k[$j++]=$1.fn1;$1.encc();$1.i=$1.i+1}else{$k[$j++]=$G($1.msg,$1.i,2);$1.encc();$1.i=$1.i+2}}break}}if($1.nums>=4&&$1.nums%2==0){$k[$j++]=$1.swc;$1.encb();$1.cset="setc";break}$k[$j++]=$g($1.msg,$1.i);$1.encb();$1.i=$1.i+1;break}if($eq($1.cset,"setc")){if($1.nums>=2){if($g($1.msg,$1.i)==$1.fn1){$k[$j++]=$1.fn1;$1.encc();$1.i=$1.i+1}else{$k[$j++]=$G($1.msg,$1.i,2);$1.encc();$1.i=$1.i+2}break}if($1.i<$1.msglen-1){var _A3=$g($1.setb,$g($1.msg,$1.i))!==undefined;$k[$j++]=_A3;$k[$j++]=$1.i+1;$1.numsscr();var _A5=$k[--$j];var _A6=$k[--$j];$k[$j++]=_A5;$k[$j++]=_A6;$j--;var _A7=$k[--$j];var _A8=$k[--$j];if(_A8&&(_A7>=2&&_A7%2==0)){$k[$j++]=$1.sb1;$1.encc();$k[$j++]=$g($1.msg,$1.i);$1.encb();$1.i=$1.i+1;break}}if($1.i<$1.msglen-1){var _AK=$g($1.setb,$g($1.msg,$1.i))!==undefined;$k[$j++]=_AK;$k[$j++]=$1.i+1;$1.numsscr();var _AM=$k[--$j];var _AN=$k[--$j];$k[$j++]=_AM;$k[$j++]=_AN;$j--;var _AO=$k[--$j];var _AP=$k[--$j];if(_AP&&(_AO>=3&&_AO%2==1)){$k[$j++]=$1.sb2;$1.encc();$k[$j++]=$g($1.msg,$1.i);$1.encb();$k[$j++]=$g($1.msg,$1.i+1);$1.encb();$1.i=$1.i+2;break}}if($1.i<$1.msglen-2){var _Ae=$g($1.setb,$g($1.msg,$1.i))!==undefined;var _Aj=$g($1.setb,$g($1.msg,$1.i+1))!==undefined;$k[$j++]=_Ae&&_Aj;$k[$j++]=$1.i+2;$1.numsscr();var _Al=$k[--$j];var _Am=$k[--$j];$k[$j++]=_Al;$k[$j++]=_Am;$j--;var _An=$k[--$j];var _Ao=$k[--$j];if(_Ao&&(_An>=2&&_An%2==0)){$k[$j++]=$1.sb2;$1.encc();$k[$j++]=$g($1.msg,$1.i);$1.encb();$k[$j++]=$g($1.msg,$1.i+1);$1.encb();$1.i=$1.i+2;break}}if($1.i<$1.msglen-3){var _B3=$g($1.setb,$g($1.msg,$1.i))!==undefined;var _B8=$g($1.setb,$g($1.msg,$1.i+1))!==undefined;$k[$j++]=_B3&&_B8;$k[$j++]=$1.i+2;$1.numsscr();var _BA=$k[--$j];var _BB=$k[--$j];$k[$j++]=_BA;$k[$j++]=_BB;$j--;var _BC=$k[--$j];var _BD=$k[--$j];if(_BD&&(_BC>=3&&_BC%2==1)){$k[$j++]=$1.sb3;$1.encc();$k[$j++]=$g($1.msg,$1.i);$1.encb();$k[$j++]=$g($1.msg,$1.i+1);$1.encb();$k[$j++]=$g($1.msg,$1.i+2);$1.encb();$1.i=$1.i+3;break}}if($1.i<$1.msglen-3){var _BV=$g($1.setb,$g($1.msg,$1.i))!==undefined;var _Ba=$g($1.setb,$g($1.msg,$1.i+1))!==undefined;var _Bf=$g($1.setb,$g($1.msg,$1.i+2))!==undefined;$k[$j++]=_BV&&_Ba&&_Bf;$k[$j++]=$1.i+3;$1.numsscr();var _Bh=$k[--$j];var _Bi=$k[--$j];$k[$j++]=_Bh;$k[$j++]=_Bi;$j--;var _Bj=$k[--$j];var _Bk=$k[--$j];if(_Bk&&(_Bj>=2&&_Bj%2==0)){$k[$j++]=$1.sb3;$1.encc();$k[$j++]=$g($1.msg,$1.i);$1.encb();$k[$j++]=$g($1.msg,$1.i+1);$1.encb();$k[$j++]=$g($1.msg,$1.i+2);$1.encb();$1.i=$1.i+3;break}}$k[$j++]=$1.i;$1.abeforeb();if($k[--$j]){$k[$j++]=$1.swa;$1.encc();$1.cset="seta";break}$k[$j++]=$1.swb;$1.encc();$1.cset="setb";break}break}}$1.cws=$G($1.cws,0,$1.j)}$1.metrics=$a([$a([2,7]),$a([3,12]),$a([4,17]),$a([5,22]),$a([6,27]),$a([7,32]),$a([8,37]),$a([9,42]),$a([10,47]),$a([11,52]),$a([12,57]),$a([13,62]),$a([14,67]),$a([15,72]),$a([16,77])]);$1.urows=$1.rows;$1.i=0;for(;;){$1.m=$g($1.metrics,$1.i);$1.r=$g($1.m,0);$1.dcws=$g($1.m,1);$1.okay=true;if($1.urows!=0&&$1.urows!=$1.r){$1.okay=false}if($1.cws.length>$1.dcws){$1.okay=false}if($1.okay){break}$1.i=$1.i+1}$k[$j++]=Infinity;$q($1.cws);for(var _Cb=0,_Cc=$f($1.dcws-$1.cws.length);_Cb<_Cc;_Cb++){$k[$j++]=103}$1.cws=$a();$k[$j++]=Infinity;$k[$j++]=$f($f($1.r-2)*7+$1.mode);$q($1.cws);$1.cws=$a();$k[$j++]=0;for(var _Ck=0,_Cj=$1.dcws;_Ck<=_Cj;_Ck+=1){var _Cn=$k[--$j];$k[$j++]=$f(_Cn+(_Ck+2)*$g($1.cws,_Ck))}$1.c1=$k[--$j]%107;$k[$j++]=0;for(var _Cr=0,_Cq=$1.dcws;_Cr<=_Cq;_Cr+=1){var _Cu=$k[--$j];$k[$j++]=$f(_Cu+(_Cr+1)*$g($1.cws,_Cr))}$1.c2=$f($k[--$j]+$1.c1*$f($1.dcws+2))%107;$k[$j++]=Infinity;$q($1.cws);$k[$j++]=$1.c1;$k[$j++]=$1.c2;$1.cws=$a();$1.encs=$a(["212222","222122","222221","121223","121322","131222","122213","122312","132212","221213","221312","231212","112232","122132","122231","113222","123122","123221","223211","221132","221231","213212","223112","312131","311222","321122","321221","312212","322112","322211","212123","212321","232121","111323","131123","131321","112313","132113","132311","211313","231113","231311","112133","112331","132131","113123","113321","133121","313121","211331","231131","213113","213311","213131","311123","311321","331121","312113","312311","332111","314111","221411","431111","111224","111422","121124","121421","141122","141221","112214","112412","122114","122411","142112","142211","241211","221114","413111","241112","134111","111242","121142","121241","114212","124112","124211","411212","421112","421211","212141","214121","412121","111143","111341","131141","114113","114311","411113","411311","113141","114131","311141","411131","211412","211214","211232","211133"]);$1.startencs=$a(["3211","2221","2122","1411","1132","1231","1114","3112","3211","2221","2122","1411","1132","1231","1114","3112"]);$1.stopencsodd=$a(["3211","2221","2122","1411","1132","1231","1114","3112","1132","1231","1114","3112","3211","2221","2122","1411"]);$1.stopencseven=$a(["2122","1411","1132","1231","1114","3112","1132","1231","1114","3112","3211","2221","2122","1411","3211","2221"]);if($1.pos==-1||~~($1.pos/10)%2==1){$1.stopencs=$1.stopencsodd}else{$1.stopencs=$1.stopencseven}$1.rowbits=$a($1.r);for(var _DE=0,_DD=$f($1.r-1);_DE<=_DD;_DE+=1){$1.i=_DE;$k[$j++]=Infinity;$k[$j++]=10;$F($g($1.startencs,$1.i),function(){var _DI=$k[--$j];$k[$j++]=$f(_DI-48)});var _DL=$G($1.cws,$1.i*5,5);$k[$j++]=1;for(var _DM=0,_DN=_DL.length;_DM<_DN;_DM++){$F($g($1.encs,$g(_DL,_DM)),function(){var _DR=$k[--$j];$k[$j++]=$f(_DR-48)})}$F($g($1.stopencs,$1.i),function(){var _DV=$k[--$j];$k[$j++]=$f(_DV-48)});$k[$j++]=1;$1.sbs=$a();$k[$j++]=Infinity;var _DX=$1.sbs;$k[$j++]=1;for(var _DY=0,_DZ=_DX.length;_DY<_DZ;_DY++){var _Db=$k[--$j];var _Dc=_Db==0?1:0;$k[$j++]=_Db;for(var _Dd=0,_De=$g(_DX,_DY);_Dd<_De;_Dd++){$k[$j++]=_Dc}}$r($a($m()-1));var _Dh=$k[--$j];var _Di=$k[--$j];$k[$j++]=_Dh;$k[$j++]=_Di;$j--;var _Dj=$k[--$j];var _Dk=$k[--$j];$k[$j++]=_Dj;$k[$j++]=_Dk;$j--;$p($1.rowbits,$1.i,$k[--$j])}$k[$j++]=Infinity;for(var _Dp=0,_Dq=81*$1.sepheight;_Dp<_Dq;_Dp++){$k[$j++]=1}for(var _Dt=0,_Ds=$f($1.r-2);_Dt<=_Ds;_Dt+=1){$1.i=_Dt;for(var _Dv=0,_Dw=$1.rowheight;_Dv<_Dw;_Dv++){$q($g($1.rowbits,$1.i))}for(var _E1=0,_E2=$1.sepheight;_E1<_E2;_E1++){for(var _E3=0,_E4=10;_E3<_E4;_E3++){$k[$j++]=0}for(var _E5=0,_E6=70;_E5<_E6;_E5++){$k[$j++]=1}$k[$j++]=0}}for(var _E8=0,_E9=$1.rowheight;_E8<_E9;_E8++){$q($g($1.rowbits,$f($1.r-1)))}for(var _EE=0,_EF=81*$1.sepheight;_EE<_EF;_EE++){$k[$j++]=1}$1.pixs=$a();var _EL=new Map([["ren",$0.renmatrix],["pixs",$1.pixs],["pixx",81],["pixy",~~($1.pixs.length/81)],["height",~~($1.pixs.length/81)/72],["width",81/72],["opt",$1.options]]);$k[$j++]=_EL;if(!$1.dontdraw){$0.renmatrix()}};$0.code49=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.mode=-1;$1.pos=-1;$1.rows=0;$1.rowheight=8;$1.sepheight=1;$1.parse=false;$1.parsefnc=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.mode=~~$1.mode;$1.pos=~~$1.pos;$1.rows=~~$1.rows;$1.rowheight=~~$1.rowheight;$1.sepheight=~~$1.sepheight;$1.s1=-1;$1.s2=-2;$1.fn1=-3;$1.fn2=-4;$1.fn3=-5;$1.ns=-6;var _F=new Map([["parse",$1.parse],["parsefnc",$1.parsefnc],["FNC1",$1.fn1],["FNC2",$1.fn2],["FNC3",$1.fn3]]);$1.fncvals=_F;$k[$j++]="msg";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _I=$k[--$j];$1[$k[--$j]]=_I;$1.msglen=$1.msg.length;$1.charmap=$a(["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%",$1.s1,$1.s2,$1.fn1,$1.fn2,$1.fn3,$1.ns]);$1.charvals=new Map;for(var _S=0;_S<=48;_S+=1){$1.i=_S;var _V=$g($1.charmap,$1.i);$k[$j++]=_V;if($eq($t(_V),"stringtype")){var _Y=$g($k[--$j],0);$k[$j++]=_Y}$p($1.charvals,$k[--$j],$1.i)}$1.combos=$a(["1 ","1A","1B","1C","1D","1E","1F","1G","1H","1I","1J","1K","1L","1M","1N","1O","1P","1Q","1R","1S","1T","1U","1V","1W","1X","1Y","1Z","11","12","13","14","15"," ","16","17","18"," $"," %","19","10","1-","1.","1$"," +","1/"," -"," ."," /"," 0"," 1"," 2"," 3"," 4"," 5"," 6"," 7"," 8"," 9","1+","21","22","23","24","25","26"," A"," B"," C"," D"," E"," F"," G"," H"," I"," J"," K"," L"," M"," N"," O"," P"," Q"," R"," S"," T"," U"," V"," W"," X"," Y"," Z","27","28","29","20","2-","2.","2A","2B","2C","2D","2E","2F","2G","2H","2I","2J","2K","2L","2M","2N","2O","2P","2Q","2R","2S","2T","2U","2V","2W","2X","2Y","2Z","2$","2/","2+","2%","2 "]);for(var _d=0;_d<=127;_d+=1){$1.i=_d;var _g=$g($1.combos,$1.i);$1.c1=$g(_g,0);$1.c2=$g(_g,1);if($1.c1==49){$p($1.charvals,$1.i,$a([$g($1.charvals,$1.s1),$g($1.charvals,$1.c2)]))}if($1.c1==50){$p($1.charvals,$1.i,$a([$g($1.charvals,$1.s2),$g($1.charvals,$1.c2)]))}}$1.encodealpha=function(){var _15=$g($1.charvals,$k[--$j]);$k[$j++]=_15;if($ne($t(_15),"arraytype")){$r($a(1))}var _18=$k[--$j];$P($1.cws,$1.j,_18);$1.j=_18.length+$1.j};$1.base48=function(){var _1C=$k[--$j];$k[$j++]=0;$F(_1C,function(){var _1D=$k[--$j];var _1E=$k[--$j];$k[$j++]=$f($f(_1D-48)+_1E*10)});$k[$j++]=Infinity;var _1F=$k[--$j];var _1G=$k[--$j];var _1H=$k[--$j];$k[$j++]=_1F;$k[$j++]=_1G;for(var _1I=0,_1J=$f(_1H-1);_1I<_1J;_1I++){var _1K=$k[--$j];$k[$j++]=_1K%48;$k[$j++]=~~(_1K/48)}var _1L=$a();$k[$j++]=Infinity;$k[$j++]=_1L;for(var _1O=_1N.length-1;_1O>=0;_1O-=1){var _1P=$k[--$j];$k[$j++]=$g(_1P,_1O);$k[$j++]=_1P}$j--;var _1R=$a();$P($1.cws,$1.j,_1R);$1.j=_1R.length+$1.j};$1.encodenumeric=function(){$1.nums=$k[--$j];var _1X=$1.nums.length;var _1Y=_1X%5;$k[$j++]="pre";$k[$j++]=_1X;$k[$j++]=_1Y;if(_1Y!=2){var _1Z=$k[--$j];var _1a=$k[--$j];$k[$j++]=$f(_1a-_1Z)}else{var _1b=$k[--$j];var _1c=$k[--$j];$k[$j++]=$f($f(_1c-_1b)-5)}var _1d=$k[--$j];$1[$k[--$j]]=_1d;for(var _1h=0,_1g=$f($1.pre-1);_1h<=_1g;_1h+=5){$k[$j++]=3;$k[$j++]=$G($1.nums,_1h,5);$1.base48()}$1.nums=$G($1.nums,$1.pre,$f($1.nums.length-$1.pre));var _1q=$1.nums.length;$k[$j++]=_1q;if(_1q==1){$k[$j++]=$g($1.nums,$1.i);$1.encodealpha()}var _1u=$k[--$j];$k[$j++]=_1u;if(_1u==3){$k[$j++]=2;$k[$j++]=$1.nums;$1.base48()}var _1w=$k[--$j];$k[$j++]=_1w;if(_1w==4){$k[$j++]=3;$k[$j++]=Infinity;$k[$j++]=49;$k[$j++]=48;$q($1.nums);var _1y=$a();$k[$j++]=_1y;$1.base48()}if($k[--$j]==7){$k[$j++]=3;$k[$j++]=Infinity;$k[$j++]=49;$k[$j++]=48;$q($G($1.nums,0,4));var _22=$a();$k[$j++]=_22;$1.base48();$k[$j++]=2;$k[$j++]=$G($1.nums,4,3);$1.base48()}};$k[$j++]=Infinity;for(var _26=0,_27=$1.msglen;_26<_27;_26++){$k[$j++]=0}$k[$j++]=0;$1.numericruns=$a();for(var _2A=$1.msglen-1;_2A>=0;_2A-=1){$1.i=_2A;var _2D=$g($1.msg,$1.i);if(_2D>=48&&_2D<=57){$p($1.numericruns,$1.i,$f($g($1.numericruns,$1.i+1)+1))}else{$p($1.numericruns,$1.i,0)}}if($1.mode==-1){for(;;){if($1.pos!=-1){$1.mode=3;break}if($g($1.numericruns,0)>=5){$1.mode=2;break}var _2S=$g($1.charvals,$g($1.msg,0));$k[$j++]=_2S;if($ne($t(_2S),"arraytype")){$j--;$1.mode=0;break}var _2W=$g($k[--$j],0)==43?4:5;$1.mode=_2W;break}}$1.cws=$a($1.msglen*2+1);$1.method="alpha";$1.i=-1;$1.j=-1;if($1.mode==0||$1.mode==1){$1.method="alpha";$1.i=0;$1.j=0}if($1.mode==2){$1.method="numeric";$1.i=0;$1.j=0}if($1.mode==3){$1.posval=$a([12,22,13,23,33,14,24,34,44,15,25,35,45,55,16,26,36,46,56,66,17,27,37,47,57,67,77,18,28,38,48,58,68,78,88,19,29,39,49,59,69,79,89,99]);$k[$j++]=$1.cws;$k[$j++]=0;for(var _2f=0;_2f<=43;_2f+=1){$k[$j++]=_2f;if($g($1.posval,_2f)!=$1.pos){$j--}}var _2j=$k[--$j];var _2k=$k[--$j];$p($k[--$j],_2k,$f(_2j+1));$1.method="alpha";$1.i=0;$1.j=1}if($1.mode==4||$1.mode==5){$p($1.cws,0,$g($g($1.charvals,$g($1.msg,0)),1));$1.method="alpha";$1.i=1;$1.j=1}for(;;){if($1.i==$1.msglen){break}for(;;){if($eq($1.method,"alpha")){if($g($1.numericruns,$1.i)>=5){$k[$j++]=$1.ns;$1.encodealpha();$1.method="numeric";break}$k[$j++]=$g($1.msg,$1.i);$1.encodealpha();$1.i=$1.i+1;break}if($eq($1.method,"numeric")){if($g($1.numericruns,$1.i)<5){$k[$j++]=$1.ns;$1.encodealpha();$1.method="alpha";break}$k[$j++]=$G($1.msg,$1.i,$g($1.numericruns,$1.i));$1.encodenumeric();$1.i=$f($1.i+$g($1.numericruns,$1.i));break}}}$1.cws=$G($1.cws,0,$1.j);$1.metrics=$a([$a([2,9]),$a([3,16]),$a([4,23]),$a([5,30]),$a([6,37]),$a([7,42]),$a([8,49])]);$1.urows=$1.rows;$1.i=0;for(;;){$1.m=$g($1.metrics,$1.i);$1.r=$g($1.m,0);$1.dcws=$g($1.m,1);$1.okay=true;if($1.urows!=0&&$1.urows!=$1.r){$1.okay=false}if($1.cws.length>$1.dcws){$1.okay=false}if($1.okay){break}$1.i=$1.i+1}$k[$j++]=Infinity;$q($1.cws);for(var _3n=0,_3o=$f($1.dcws-$1.cws.length);_3n<_3o;_3n++){$k[$j++]=48}$1.cws=$a();$1.ccs=$a($1.r*8);$1.j=0;for(var _3u=0,_3t=$f($1.r-2);_3u<=_3t;_3u+=1){$1.i=_3u;$1.cc=$G($1.cws,$1.j,7);$P($1.ccs,$1.i*8,$1.cc);var _43=$1.cc;$k[$j++]=$1.ccs;$k[$j++]=$1.i*8+7;$k[$j++]=0;for(var _44=0,_45=_43.length;_44<_45;_44++){var _47=$k[--$j];$k[$j++]=$f(_47+$g(_43,_44))}var _48=$k[--$j];var _49=$k[--$j];$p($k[--$j],_49,_48%49);$1.j=$1.j+7}if($1.j<$1.dcws){$P($1.ccs,$1.ccs.length-8,$G($1.cws,$1.j,$f($1.dcws-$1.j)))}$1.cr7=$f($f($1.r-2)*7+$1.mode);$p($1.ccs,$1.ccs.length-2,$1.cr7);var _4Q=$a([1,9,31,26,2,12,17,23,37,18,22,6,27,44,15,43,39,11,13,5,41,33,36,8,4,32,3,19,40,25,29,10,24,30]);$k[$j++]=_4Q;$k[$j++]=_4Q;$k[$j++]=Infinity;var _4R=$k[--$j];var _4T=$G($k[--$j],0,32);$k[$j++]=_4R;$k[$j++]=20;$q(_4T);$1.weightx=$a();var _4V=$k[--$j];$k[$j++]=_4V;$k[$j++]=_4V;$k[$j++]=Infinity;var _4W=$k[--$j];var _4Y=$G($k[--$j],1,32);$k[$j++]=_4W;$k[$j++]=16;$q(_4Y);$1.weighty=$a();$k[$j++]=Infinity;var _4a=$k[--$j];var _4c=$G($k[--$j],2,32);$k[$j++]=_4a;$k[$j++]=38;$q(_4c);$1.weightz=$a();$1.calccheck=function(){$1.weights=$k[--$j];$1.score=0;for(var _4h=0,_4g=~~($f($1.r-1)*8/2)-1;_4h<=_4g;_4h+=1){$1.i=_4h;$1.score=$f($f($g($1.ccs,$1.i*2)*49+$g($1.ccs,$1.i*2+1))*$g($1.weights,$1.i+1)+$1.score)}$k[$j++]=$1.score};$1.lastrow=$G($1.ccs,$1.ccs.length-8,8);if($1.r>=7){$k[$j++]=$1.cr7*$g($1.weightz,0);$k[$j++]=$1.weightz;$1.calccheck();var _51=$k[--$j];var _53=$f($k[--$j]+_51)%2401;$k[$j++]=~~(_53/49);$k[$j++]=_53%49;$r($a(2));$P($1.lastrow,0,$k[--$j])}$1.wr1=$f($g($1.lastrow,0)*49+$g($1.lastrow,1));$k[$j++]=$1.cr7*$g($1.weighty,0);$k[$j++]=$1.weighty;$1.calccheck();var _5F=$k[--$j];var _5L=$f($f($k[--$j]+_5F)+$1.wr1*$g($1.weighty,$f($1.r*4-3)))%2401;$1.wr2=_5L;$k[$j++]=~~(_5L/49);$k[$j++]=_5L%49;$r($a(2));$P($1.lastrow,2,$k[--$j]);$k[$j++]=$1.cr7*$g($1.weightx,0);$k[$j++]=$1.weightx;$1.calccheck();var _5T=$k[--$j];var _5d=$f($f($f($k[--$j]+_5T)+$1.wr1*$g($1.weightx,$f($1.r*4-3)))+$1.wr2*$g($1.weightx,$f($1.r*4-2)))%2401;$k[$j++]=~~(_5d/49);$k[$j++]=_5d%49;$r($a(2));$P($1.lastrow,4,$k[--$j]);var _5j=$G($1.ccs,$1.ccs.length-8,7);$k[$j++]=0;for(var _5k=0,_5l=_5j.length;_5k<_5l;_5k++){var _5n=$k[--$j];$k[$j++]=$f(_5n+$g(_5j,_5k))}$p($1.ccs,$1.ccs.length-1,$k[--$j]%49);$1.patterns=$a([$a(["11521132","25112131","14212132","25121221","14221222","12412132","23321221","12421222","21521221","15112222","15121312","13312222","24221311","13321312","11512222","22421311","11521312","25112311","14212312","23312311","12412312","21512311","16121131","14321131","12521131","15212131","15221221","13412131","13421221","11612131","16112221","16121311","14312221","14321311","12512221","12521311","15212311","13412311","11612311","11131135","31131133","51131131","21122134","41122132","21131224","41131222","11113135","31113133","51113131","11122225","31122223","51122221","11131315","31131313","51131311","21113224","41113222","21122314","41122312","11113315","31113313","51113311","12131134","32131132","21231133","41231131","22122133","42122131","11222134","22131223","42131221","11231224","31231222","12113134","32113132","12122224","32122222","12131314","32131312","21231313","41231311","22113223","42113221","11213224","22122313","42122311","11222314","31222312","12113314","32113312","21213313","41213311","13131133","33131131","22231132","11331133","31331131","23122132","12222133","23131222","12231223","32231221","21331222","13113133","33113131","13122223","33122221","11313133","13131313","33131311","11322223","22231312","11331313","31331311","23113222","12213223","23122312","12222313","32222311","21322312","13113313","33113311","22213312","11313313","31313311","14131132","23231131","12331132","21431131","24122131","13222132","24131221","13231222","11422132","22331221","11431222","14113132","14122222","12313132","14131312","12322222","23231311","12331312","21431311","24113221","13213222","24122311","13222312","11413222","22322311","11422312","14113312","23213311","12313312","21413311","15131131","13331131","14222131","14231221","12422131","12431221","15113131","15122221","13313131","15131311","13322221","11513131","13331311","11522221","14213221","14222311","12413221","12422311","15113311","13313311","11513311","11141134","31141132","21132133","41132131","21141223","41141221","11123134","31123132","11132224","31132222","11141314","31141312","21114133","41114131","21123223","41123221","21132313","41132311","11114224","31114222","11123314","31123312","21114313","41114311","12141133","32141131","21241132","22132132","11232133","22141222","11241223","31241221","12123133","32123131","12132223","32132221","12141313","32141311","21241312","22114132","11214133","22123222","11223223","22132312","11232313","31232311","12114223","32114221","12123313","32123311","21223312","22114312","11214313","31214311","13141132","22241131","11341132","23132131","12232132","23141221","12241222","21341221","13123132","13132222","11323132","13141312","11332222","22241311","11341312","23114131","12214132","23123221","12223222","23132311","12232312","21332311","13114222","13123312","11314222","22223311","11323312","23114311","12214312","21314311","14141131","12341131","13232131","13241221","11432131","14123131","14132221","12323131","14141311","12332221","12341311","13214131","13223221","11414131","13232311","11423221","11432311","14114221","14123311","12314221","12323311","13214311","11414311","11151133","31151131","21142132","21151222","11133133","31133131","11142223","31142221","11151313","31151311","21124132","21133222","21142312","11115133","31115131","11124223","31124221","11133313","31133311","21115222","21124312","12151132","21251131","22142131","11242132","22151221","11251222","12133132","12142222","12151312","21251311","22124131","11224132","22133221","11233222","22142311","11242312","12115132","12124222","12133312","21233311","22115221","11215222","22124311","11224312","13151131","12242131","12251221","13133131","13142221","11333131","13151311","11342221","12224131","12233221","12242311","13115131","13124221","11315131","13133311","11324221","11333311","12215221","12224311","11161132","21152131","21161221","11143132","11152222","11161312","21134131","21143221","21152311","11125132","11134222","11143312","21116131","21125221","21134311","12161131","11252131","12143131","12152221","12161311","11234131","11243221","11252311","12125131","12134221","12143311","11216131","11225221","11234311","11111236","31111234","51111232","21111325","41111323","61111321","11111416","31111414","51111412","31211143","51211141","12111235","32111233","52111231","21211234","41211232","22111324","42111322","11211325","31211323","51211321","12111415","32111413","52111411","21211414","41211412","12211144","32211142","21311143","41311141","13111234","33111232","22211233","42211231","11311234","31311232","23111323","43111321","12211324","32211322","21311323","41311321","13111414","33111412","22211413","42211411","11311414","31311412","13211143","33211141","22311142","11411143","31411141","14111233","34111231","23211232","12311233","32311231","21411232","24111322","13211323","33211321","22311322","11411323","31411321","14111413","34111411","23211412","12311413","32311411","21411412","14211142","23311141","12411142","21511141","15111232","24211231","13311232","22411231","11511232","25111321","14211322","23311321","12411322","21511321","15111412","24211411","13311412","22411411","11511412","15211141","13411141","11611141","16111231","14311231","12511231","15211321","13411321","11611321","16111411","14311411","12511411","21121144","41121142","11112145","31112143","51112141","11121235","31121233","51121231","21112234","41112232","21121324","41121322","11112325","31112323","51112321","11121415","31121413","51121411","21112414","41112412","22121143","42121141","11221144","31221142","12112144","32112142","12121234","32121232","21221233","41221231","22112233","42112231","11212234","22121323","42121321","11221324","31221322","12112324","32112322","12121414","32121412","21221413","41221411","22112413","42112411","11212414","31212412","23121142","12221143","32221141","21321142","13112143","33112141","13121233","33121231","11312143","22221232","11321233","31321231","23112232","12212233","23121322","12221323","32221321","21321322","13112323","33112321","13121413","33121411","11312323","22221412","11321413","31321411","23112412","12212413","32212411","21312412","24121141","13221142","22321141","11421142","14112142","14121232","12312142","23221231","12321232","21421231","24112231","13212232","24121321","13221322","11412232","22321321","11421322","14112322","14121412","12312322","23221411","12321412","21421411","24112411","13212412","22312411","11412412","14221141","12421141","15112141","15121231","13312141","13321231","11512141","11521231","14212231","14221321","12412231","12421321","15112321","15121411","13312321","13321411","11512321","11521411","14212411","12412411","21131143","41131141","11122144","31122142","11131234","31131232","21113143","41113141","21122233","41122231","21131323","41131321","11113234","31113232","11122324","31122322","11131414","31131412","21113323","41113321","21122413","41122411","11113414","31113412","22131142","11231143","31231141","12122143","32122141","12131233","32131231","21231232","22113142","11213143","22122232","11222233","22131322","11231323","31231321","12113233","32113231","12122323","32122321","12131413","32131411","21231412","22113322","11213323","22122412","11222413","31222411","12113413","32113411","21213412","23131141","12231142","21331141","13122142","13131232","11322142","22231231","11331232","23113141","12213142","23122231","12222232","23131321","12231322","21331321","13113232","13122322","11313232","13131412","11322322","22231411","11331412","23113321","12213322","23122411","12222412","21322411","13113412","22213411","11313412","13231141","11431141","14122141","14131231","12322141","12331231","13213141","13222231","11413141","13231321","11422231","11431321","14113231","14122321","12313231","14131411","12322321","12331411","13213321","13222411","11413321","11422411","14113411","12313411","21141142","11132143","31132141","11141233","31141231","21123142","21132232","21141322","11114143","31114141","11123233","31123231","11132323","31132321","11141413","31141411","21114232","21123322","21132412","11114323","31114321","11123413","31123411","22141141","11241142","12132142","12141232","21241231","22123141","11223142","22132231","11232232","22141321","11241322","12114142","12123232","12132322","12141412","21241411","22114231","11214232","22123321","11223322","22132411","11232412","12114322","12123412","21223411","12241141","13132141","13141231","11332141","11341231","12223141","12232231","12241321","13114141","13123231","11314141","13132321","11323231","13141411","11332321","11341411","12214231","12223321","12232411","13114321","13123411","11314321","11323411","21151141","11142142","11151232","21133141","21142231","21151321","11124142","11133232","11142322","11151412","21115141","21124231","21133321","21142411","11115232","11124322","11133412","11251141","12142141","12151231","11233141","11242231","11251321","12124141","12133231","12142321","12151411","11215141","11224231","11233321","11242411","12115231","12124321","12133411","11152141","11161231","11134141","11143231","11152321","11161411","11116141","11125231","11134321","11143411","21111244","41111242","11111335","31111333","51111331","21111424","41111422","11111515","31111513","51111511","21211153","41211151","22111243","42111241","11211244","31211242","12111334","32111332","21211333","41211331","22111423","42111421","11211424","31211422","12111514","32111512","21211513","41211511","22211152","11311153","31311151","23111242","12211243","32211241","21311242","13111333","33111331","22211332","11311333","31311331","23111422","12211423","32211421","21311422","13111513","33111511","22211512","11311513","31311511","23211151","12311152","21411151","24111241","13211242","22311241","11411242","14111332","23211331","12311332","21411331","24111421","13211422","22311421","11411422","14111512","23211511","12311512","21411511","13311151","11511151","14211241","12411241","15111331","13311331","11511331","14211421","12411421","15111511","13311511","11511511","31121152","21112153","41112151","21121243","41121241","11112244","31112242","11121334","31121332","21112333","41112331","21121423","41121421","11112424","31112422","11121514","31121512","21112513","41112511","12121153","32121151","21221152","22112152","11212153","22121242","11221243","31221241","12112243","32112241","12121333","32121331","21221332","22112332","11212333","22121422","11221423","31221421","12112423","32112421","12121513","32121511","21221512","22112512","11212513","31212511","13121152","22221151","11321152","23112151","12212152","23121241","12221242","21321241","13112242","13121332","11312242","22221331","11321332","23112331","12212332","23121421","12221422","21321421","13112422","13121512","11312422","22221511","11321512","23112511","12212512","21312511","14121151","12321151","13212151","13221241","11412151","11421241","14112241","14121331","12312241","12321331","13212331","13221421","11412331","11421421","14112421","14121511","12312421","12321511","13212511","11412511","11131153","31131151","21122152","21131242","11113153","31113151","11122243","31122241","11131333","31131331","21113242","21122332","21131422","11113333","31113331","11122423","31122421","11131513","31131511","21113422","21122512","12131152","21231151","22122151","11222152","22131241","11231242","12113152","12122242","12131332","21231331","22113241","11213242","22122331","11222332","22131421","11231422","12113332","12122422","12131512","21231511","22113421","11213422","22122511","11222512","13131151","11331151","12222151","12231241","13113151","13122241","11313151","13131331","11322241","11331331","12213241","12222331","12231421","13113331","13122421","11313331","13131511","11322421","11331511","12213421","12222511","11141152","21132151","21141241","11123152","11132242","11141332","21114151","21123241","21132331","21141421","11114242","11123332","11132422","11141512","21114331","21123421","21132511","12141151","11232151","11241241","12123151","12132241","12141331","11214151","11223241","11232331","11241421","12114241","12123331","12132421","12141511","11214331","11223421","11232511","11151151","11133151","11142241","11151331","11115151","11124241","11133331","11142421","11151511","11111254","31111252","21111343","41111341","11111434","31111432","21111523","41111521","11111614","31111612","31211161","12111253","32111251","21211252","22111342","11211343","31211341","12111433","32111431","21211432","22111522","11211523","31211521","12111613","32111611","21211612","12211162","21311161","13111252","22211251","11311252","23111341","12211342","21311341","13111432","22211431","11311432","23111521","12211522","21311521","13111612","22211611","11311612","13211161","11411161","14111251","12311251","13211341","11411341","14111431","12311431","13211521","11411521","14111611","12311611","21121162","11112163","31112161","11121253","31121251","21112252","21121342","11112343","31112341","11121433","31121431","21112432","21121522","11112523","31112521","11121613","31121611","22121161","11221162","12112162","12121252","21221251","22112251","11212252","22121341","11221342","12112342","12121432","21221431","22112431","11212432","22121521","11221522","12112522","12121612","21221611","12221161","13112161","13121251","11312161","11321251","32121115","52121113","21221116","41221114","61221112","22112116","42112114","31212115","51212113","13121116","33121114","22221115","42221113","11321116","31321114","51321112","23112115","43112113","12212116","32212114","52212112","21312115","41312113","61312111","14121115","34121113","23221114","43221112","12321115","32321113","52321111","21421114","41421112","24112114","13212115","33212113","22312114","42312112","11412115","31412113","51412111","15121114","24221113","13321114","33321112","22421113","42421111","11521114","31521112","25112113","14212114","34212112","23312113","43312111","12412114","32412112","21512113","41512111","16121113","25221112","14321113","34321111","23421112","12521113","32521111","15212113","24312112","13412113","33412111","22512112","11612113","31612111","31131115","51131113","21122116","41122114","61122112","31113115","51113113","12131116","32131114","52131112","21231115","41231113","61231111","22122115","42122113","11222116","31222114","51222112","12113116","32113114","52113112","21213115","41213113","61213111","13131115","33131113","22231114","42231112","11331115","31331113","51331111","23122114","43122112","12222115","32222113","52222111","21322114","41322112","13113115","33113113","22213114","42213112","11313115","31313113","51313111","14131114","34131112","23231113","43231111","12331114","32331112","21431113","41431111","24122113","13222114","33222112","22322113","42322111","11422114","31422112","14113114","34113112","23213113","43213111","12313114","32313112","21413113","41413111","15131113","24231112","13331113","33331111","22431112","25122112","14222113","34222111","23322112","12422113","32422111","21522112","15113113","24213112","13313113","33313111","22413112","11513113","31513111","16131112","25231111","14331112","23431111","15222112","24322111","13422112","22522111","16113112","25213111","14313112","23413111","12513112","21613111","11141116","31141114","51141112","21132115","41132113","61132111","11123116","31123114","51123112","21114115","41114113","61114111","12141115","32141113","52141111","21241114","41241112","22132114","42132112","11232115","31232113","51232111","12123115","32123113","52123111","21223114","41223112","22114114","42114112","11214115","31214113","51214111","13141114","33141112","22241113","42241111","11341114","31341112","23132113","43132111","12232114","32232112","21332113","41332111","13123114","33123112","22223113","42223111","11323114","31323112","23114113","43114111","12214114","32214112","21314113","41314111","14141113","34141111","23241112","12341113","32341111","24132112","13232113","33232111","22332112","11432113","31432111","14123113","34123111","23223112","12323113","32323111","21423112","24114112","13214113","33214111","22314112","11414113","31414111","15141112","24241111","13341112","25132111","14232112","23332111","12432112","15123112","24223111","13323112","22423111","11523112","25114111","14214112","23314111","12414112","21514111","16141111","14341111","15232111","13432111","16123111","14323111","12523111","15214111","13414111","11614111","11151115","31151113","51151111","21142114","41142112","11133115","31133113","51133111","21124114","41124112","11115115","31115113","51115111","12151114","32151112","21251113","41251111","22142113","42142111","11242114","31242112","12133114","32133112","21233113","41233111","22124113","42124111","11224114","31224112","12115114","32115112","21215113","41215111","13151113","33151111","22251112","23142112","12242113","32242111","21342112","13133113","33133111","22233112","11333113","31333111","23124112","12224113","32224111","21324112","13115113","33115111","22215112","11315113","31315111","14151112","23251111","24142111","13242112","22342111","14133112","23233111","12333112","21433111","24124111","13224112","22324111","11424112","14115112","23215111","12315112","21415111","15151111","14242111","15133111","13333111","14224111","12424111","15115111","13315111","11515111","11161114","31161112","21152113","41152111","11143114","31143112","21134113","41134111","11125114","31125112","21116113","41116111","12161113","32161111","22152112","11252113","31252111","12143113","32143111","21243112","22134112","11234113","31234111","12125113","32125111","21225112","22116112","11216113","31216111","13161112","23152111","12252112","13143112","22243111","11343112","23134111","12234112","21334111","13125112","22225111","11325112","23116111","12216112","21316111","14161111","13252111","14143111","12343111","13234111","11434111","14125111","12325111","13216111","11416111","31111216","51111214","31211125","51211123","32111215","52111213","21211216","41211214","61211212","12211126","32211124","52211122","21311125","41311123","61311121","13111216","33111214","22211215","42211213","11311216","31311214","51311212","13211125","33211123","22311124","42311122","11411125","31411123","51411121","14111215","34111213","23211214","43211212","12311215","32311213","52311211","21411214","41411212","14211124","34211122","23311123","43311121","12411124","32411122","21511123","41511121","15111214","24211213","13311214","33311212","22411213","42411211","11511214","31511212","15211123","24311122","13411123","33411121","22511122","11611123","31611121","16111213","25211212","14311213","34311211","23411212","12511213","32511211","21611212","21121126","41121124","61121122","31112125","51112123","31121215","51121213","21112216","41112214","61112212","22121125","42121123","11221126","31221124","51221122","12112126","32112124","52112122","12121216","32121214","52121212","21221215","41221213","61221211","22112215","42112213","11212216","31212214","51212212","23121124","43121122","12221125","32221123","52221121","21321124","41321122","13112125","33112123","13121215","33121213","11312125","22221214","42221212","11321215","31321213","51321211","23112214","43112212","12212215","32212213","52212211","21312214","41312212","24121123","13221124","33221122","22321123","42321121","11421124","31421122","14112124","34112122","14121214","34121212","12312124","23221213","43221211","12321214","32321212","21421213","41421211","24112213","13212214","33212212","22312213","42312211","11412214","31412212","25121122","14221123","34221121","23321122","12421123","32421121","21521122","15112123","15121213","13312123","24221212","13321213","33321211","11512123","22421212","11521213","31521211","25112212","14212213","34212211","23312212","12412213","32412211","21512212","15221122","24321121","13421122","22521121","16112122","16121212","14312122","25221211","14321212","12512122","23421211","12521212","15212212","24312211","13412212","22512211","11612212","21131125","41131123","61131121","11122126","31122124","51122122","11131216","31131214","51131212","21113125","41113123","61113121","21122215","41122213","61122211","11113216","31113214","51113212","22131124","42131122","11231125","31231123","51231121","12122125","32122123","52122121","12131215","32131213","52131211","21231214","41231212","22113124","42113122","11213125","22122214","42122212","11222215","31222213","51222211","12113215","32113213","52113211","21213214","41213212","23131123","43131121","12231124","32231122","21331123","41331121","13122124","33122122","13131214","33131212","11322124","22231213","42231211","11331214","31331212","23113123","43113121","12213124","23122213","43122211","12222214","32222212","21322213","41322211","13113214","33113212","22213213","42213211","11313214","31313212","24131122","13231123","33231121","22331122","11431123","31431121","14122123","34122121","14131213","34131211","12322123","23231212","12331213","32331211","21431212","24113122","13213123","24122212","13222213","33222211","11413123","22322212","11422213","31422211","14113213","34113211","23213212","12313213","32313211","21413212","25131121","14231122","23331121","12431122","15122122","15131212","13322122","24231211","13331212","11522122","22431211","25113121","14213122","25122211","14222212","12413122","23322211","12422212","21522211","15113212","24213211","13313212","22413211","11513212","15231121","13431121","16122121","16131211","14322121","14331211","12522121","15213121","15222211","13413121","13422211","11613121","16113211","14313211","12513211","21141124","41141122","11132125","31132123","51132121","11141215","31141213","51141211","21123124","41123122","21132214","41132212","11114125","31114123","51114121","11123215","31123213","51123211","21114214","41114212","22141123","42141121","11241124","31241122","12132124","32132122","12141214","32141212","21241213","41241211","22123123","42123121","11223124","22132213","42132211","11232214","31232212","12114124","32114122","12123214","32123212","21223213","41223211","22114213","42114211","11214214","31214212","23141122","12241123","32241121","21341122","13132123","33132121","13141213","33141211","11332123","22241212","11341213","31341211","23123122","12223123","23132212","12232213","32232211","21332212","13114123","33114121","13123213","33123211","11314123","22223212","11323213","31323211","23114212","12214213","32214211","21314212","24141121","13241122","22341121","14132122","14141212","12332122","23241211","12341212","24123121","13223122","24132211","13232212","11423122","22332211","11432212","14114122","14123212","12314122","23223211","12323212","21423211","24114211","13214212","22314211","11414212","14241121","15132121","15141211","13332121","13341211","14223121","14232211","12423121","12432211","15114121","15123211","13314121","13323211","11514121","11523211","14214211","12414211","21151123","41151121","11142124","31142122","11151214","31151212","21133123","41133121","21142213","41142211","11124124","31124122","11133214","31133212","21115123","41115121","21124213","41124211","11115214","31115212","22151122","11251123","31251121","12142123","32142121","12151213","32151211","21251212","22133122","11233123","22142212","11242213","31242211","12124123","32124121","12133213","32133211","21233212","22115122","11215123","22124212","11224213","31224211","12115213","32115211","21215212","23151121","12251122","13142122","13151212","11342122","22251211","23133121","12233122","23142211","12242212","21342211","13124122","13133212","11324122","22233211","11333212","23115121","12215122","23124211","12224212","21324211","13115212","22215211","11315212","13251121","14142121","14151211","12342121","13233121","13242211","11433121","14124121","14133211","12324121","12333211","13215121","13224211","11415121","11424211","14115211","12315211","21161122","11152123","31152121","11161213","31161211","21143122","21152212","11134123","31134121","11143213","31143211","21125122","21134212","11116123","31116121","11125213","31125211","22161121","12152122","12161212","22143121","11243122","22152211","11252212","12134122","12143212","21243211","22125121","11225122","22134211","11234212","12116122","12125212","21225211","13152121","13161211","12243121","12252211","13134121","13143211","11334121","11343211","12225121","12234211","13116121","13125211","11316121","11325211","21111226","41111224","61111222","31111315","51111313","21211135","41211133","61211131","22111225","42111223","11211226","31211224","51211222","12111316","32111314","52111312","21211315","41211313","61211311","22211134","42211132","11311135","31311133","51311131","23111224","43111222","12211225","32211223","52211221","21311224","41311222","13111315","33111313","22211314","42211312","11311315","31311313","51311311","23211133","43211131","12311134","32311132","21411133","41411131","24111223","13211224","33211222","22311223","42311221","11411224","31411222","14111314","34111312","23211313","43211311","12311314","32311312","21411313","41411311","24211132","13311133","33311131","22411132","11511133","31511131","25111222","14211223","34211221","23311222","12411223","32411221","21511222","15111313","24211312","13311313","33311311","22411312","11511313","31511311","25211131","14311132","23411131","12511132","21611131","15211222","24311221","13411222","22511221","11611222","16111312","25211311","14311312","23411311","12511312","21611311","31121134","51121132","21112135","41112133","61112131","21121225","41121223","61121221","11112226","31112224","51112222","11121316","31121314","51121312","21112315","41112313","61112311","12121135","32121133","52121131","21221134","41221132","22112134","42112132","11212135","22121224","42121222","11221225","31221223","51221221","12112225","32112223","52112221","12121315","32121313","52121311","21221314","41221312","22112314","42112312","11212315","31212313","51212311","13121134","33121132","22221133","42221131","11321134","31321132","23112133","43112131","12212134","23121223","43121221","12221224","32221222","21321223","41321221","13112224","33112222","13121314","33121312","11312224","22221313","42221311","11321314","31321312","23112313","43112311","12212314","32212312","21312313","41312311","14121133","34121131","23221132","12321133","32321131","21421132","24112132","13212133","24121222","13221223","33221221","11412133","22321222","11421223","31421221","14112223","34112221","14121313","34121311","12312223","23221312","12321313","32321311","21421312","24112312","13212313","33212311","22312312","11412313","31412311","15121132","24221131","13321132","22421131"]),$a(["22121116","42121114","31221115","51221113","32112115","52112113","21212116","41212114","61212112","23121115","43121113","12221116","32221114","52221112","21321115","41321113","61321111","13112116","33112114","22212115","42212113","11312116","31312114","51312112","24121114","13221115","33221113","22321114","42321112","11421115","31421113","51421111","14112115","34112113","23212114","43212112","12312115","32312113","52312111","21412114","41412112","25121113","14221114","34221112","23321113","43321111","12421114","32421112","21521113","41521111","15112114","24212113","13312114","33312112","22412113","42412111","11512114","31512112","15221113","24321112","13421113","33421111","22521112","16112113","25212112","14312113","34312111","23412112","12512113","32512111","21612112","21131116","41131114","61131112","31122115","51122113","21113116","41113114","61113112","22131115","42131113","11231116","31231114","51231112","12122116","32122114","52122112","21222115","41222113","61222111","22113115","42113113","11213116","31213114","51213112","23131114","43131112","12231115","32231113","52231111","21331114","41331112","13122115","33122113","22222114","42222112","11322115","31322113","51322111","23113114","43113112","12213115","32213113","52213111","21313114","41313112","24131113","13231114","33231112","22331113","42331111","11431114","31431112","14122114","34122112","23222113","43222111","12322114","32322112","21422113","41422111","24113113","13213114","33213112","22313113","42313111","11413114","31413112","25131112","14231113","34231111","23331112","12431113","32431111","15122113","24222112","13322113","33322111","22422112","11522113","31522111","25113112","14213113","34213111","23313112","12413113","32413111","21513112","15231112","24331111","13431112","16122112","25222111","14322112","23422111","12522112","15213112","24313111","13413112","22513111","11613112","21141115","41141113","61141111","11132116","31132114","51132112","21123115","41123113","61123111","11114116","31114114","51114112","22141114","42141112","11241115","31241113","51241111","12132115","32132113","52132111","21232114","41232112","22123114","42123112","11223115","31223113","51223111","12114115","32114113","52114111","21214114","41214112","23141113","43141111","12241114","32241112","21341113","41341111","13132114","33132112","22232113","42232111","11332114","31332112","23123113","43123111","12223114","32223112","21323113","41323111","13114114","33114112","22214113","42214111","11314114","31314112","24141112","13241113","33241111","22341112","14132113","34132111","23232112","12332113","32332111","21432112","24123112","13223113","33223111","22323112","11423113","31423111","14114113","34114111","23214112","12314113","32314111","21414112","25141111","14241112","23341111","15132112","24232111","13332112","22432111","25123111","14223112","23323111","12423112","21523111","15114112","24214111","13314112","22414111","11514112","15241111","16132111","14332111","15223111","13423111","16114111","14314111","12514111","21151114","41151112","11142115","31142113","51142111","21133114","41133112","11124115","31124113","51124111","21115114","41115112","22151113","42151111","11251114","31251112","12142114","32142112","21242113","41242111","22133113","42133111","11233114","31233112","12124114","32124112","21224113","41224111","22115113","42115111","11215114","31215112","23151112","12251113","32251111","13142113","33142111","22242112","11342113","31342111","23133112","12233113","32233111","21333112","13124113","33124111","22224112","11324113","31324111","23115112","12215113","32215111","21315112","24151111","13251112","14142112","23242111","12342112","24133111","13233112","22333111","11433112","14124112","23224111","12324112","21424111","24115111","13215112","22315111","11415112","14251111","15142111","13342111","14233111","12433111","15124111","13324111","11524111","14215111","12415111","21161113","41161111","11152114","31152112","21143113","41143111","11134114","31134112","21125113","41125111","11116114","31116112","22161112","12152113","32152111","21252112","22143112","11243113","31243111","12134113","32134111","21234112","22125112","11225113","31225111","12116113","32116111","21216112","23161111","13152112","22252111","23143111","12243112","21343111","13134112","22234111","11334112","23125111","12225112","21325111","13116112","22216111","11316112","14152111","13243111","14134111","12334111","13225111","11425111","14116111","12316111","41111215","61111213","21211126","41211124","61211122","22111216","42111214","31211215","51211213","22211125","42211123","11311126","31311124","51311122","23111215","43111213","12211216","32211214","52211212","21311215","41311213","61311211","23211124","43211122","12311125","32311123","52311121","21411124","41411122","24111214","13211215","33211213","22311214","42311212","11411215","31411213","51411211","24211123","13311124","33311122","22411123","42411121","11511124","31511122","25111213","14211214","34211212","23311213","43311211","12411214","32411212","21511213","41511211","25211122","14311123","34311121","23411122","12511123","32511121","21611122","15211213","24311212","13411213","33411211","22511212","11611213","31611211","31121125","51121123","21112126","41112124","61112122","21121216","41121214","61121212","31112215","51112213","12121126","32121124","52121122","21221125","41221123","61221121","22112125","42112123","11212126","22121215","42121213","11221216","31221214","51221212","12112216","32112214","52112212","21212215","41212213","61212211","13121125","33121123","22221124","42221122","11321125","31321123","51321121","23112124","43112122","12212125","23121214","43121212","12221215","32221213","52221211","21321214","41321212","13112215","33112213","22212214","42212212","11312215","31312213","51312211","14121124","34121122","23221123","43221121","12321124","32321122","21421123","41421121","24112123","13212124","24121213","13221214","33221212","11412124","22321213","42321211","11421214","31421212","14112214","34112212","23212213","43212211","12312214","32312212","21412213","41412211","15121123","24221122","13321123","33321121","22421122","11521123","31521121","25112122","14212123","25121212","14221213","34221211","12412123","23321212","12421213","32421211","21521212","15112213","24212212","13312213","33312211","22412212","11512213","31512211","16121122","25221121","14321122","23421121","12521122","15212122","15221212","13412122","24321211","13421212","11612122","22521211","16112212","25212211","14312212","23412211","12512212","21612211","11131126","31131124","51131122","21122125","41122123","61122121","21131215","41131213","61131211","11113126","31113124","51113122","11122216","31122214","51122212","21113215","41113213","61113211","12131125","32131123","52131121","21231124","41231122","22122124","42122122","11222125","22131214","42131212","11231215","31231213","51231211","12113125","32113123","52113121","12122215","32122213","52122211","21222214","41222212","22113214","42113212","11213215","31213213","51213211","13131124","33131122","22231123","42231121","11331124","31331122","23122123","43122121","12222124","23131213","43131211","12231214","32231212","21331213","41331211","13113124","33113122","13122214","33122212","11313124","22222213","42222211","11322214","31322212","23113213","43113211","12213214","32213212","21313213","41313211","14131123","34131121","23231122","12331123","32331121","21431122","24122122","13222123","24131212","13231213","33231211","11422123","22331212","11431213","31431211","14113123","34113121","14122213","34122211","12313123","23222212","12322213","32322211","21422212","24113212","13213213","33213211","22313212","11413213","31413211","15131122","24231121","13331122","22431121","25122121","14222122","25131211","14231212","12422122","23331211","12431212","15113122","15122212","13313122","24222211","13322212","11513122","22422211","11522212","25113211","14213212","23313211","12413212","21513211","16131121","14331121","15222121","15231211","13422121","13431211","16113121","16122211","14313121","14322211","12513121","12522211","15213211","13413211","11613211","11141125","31141123","51141121","21132124","41132122","21141214","41141212","11123125","31123123","51123121","11132215","31132213","51132211","21114124","41114122","21123214","41123212","11114215","31114213","51114211","12141124","32141122","21241123","41241121","22132123","42132121","11232124","22141213","42141211","11241214","31241212","12123124","32123122","12132214","32132212","21232213","41232211","22114123","42114121","11214124","22123213","42123211","11223214","31223212","12114214","32114212","21214213","41214211","13141123","33141121","22241122","11341123","31341121","23132122","12232123","23141212","12241213","32241211","21341212","13123123","33123121","13132213","33132211","11323123","22232212","11332213","31332211","23114122","12214123","23123212","12223213","32223211","21323212","13114213","33114211","22214212","11314213","31314211","14141122","23241121","12341122","24132121","13232122","24141211","13241212","11432122","22341211","14123122","14132212","12323122","23232211","12332212","21432211","24114121","13214122","24123211","13223212","11414122","22323211","11423212","14114212","23214211","12314212","21414211","15141121","13341121","14232121","14241211","12432121","15123121","15132211","13323121","13332211","11523121","14214121","14223211","12414121","12423211","15114211","13314211","11514211","11151124","31151122","21142123","41142121","21151213","41151211","11133124","31133122","11142214","31142212","21124123","41124121","21133213","41133211","11115124","31115122","11124214","31124212","21115213","41115211","12151123","32151121","21251122","22142122","11242123","22151212","11251213","31251211","12133123","32133121","12142213","32142211","21242212","22124122","11224123","22133212","11233213","31233211","12115123","32115121","12124213","32124211","21224212","22115212","11215213","31215211","13151122","22251121","23142121","12242122","23151211","12251212","13133122","13142212","11333122","22242211","11342212","23124121","12224122","23133211","12233212","21333211","13115122","13124212","11315122","22224211","11324212","23115211","12215212","21315211","14151121","13242121","13251211","14133121","14142211","12333121","12342211","13224121","13233211","11424121","11433211","14115121","14124211","12315121","12324211","13215211","11415211","11161123","31161121","21152122","21161212","11143123","31143121","11152213","31152211","21134122","21143212","11125123","31125121","11134213","31134211","21116122","21125212","12161122","22152121","11252122","22161211","12143122","12152212","21252211","22134121","11234122","22143211","11243212","12125122","12134212","21234211","22116121","11216122","22125211","11225212","13161121","12252121","13143121","13152211","11343121","12234121","12243211","13125121","13134211","11325121","11334211","12216121","12225211","31111225","51111223","21111316","41111314","61111312","31211134","51211132","12111226","32111224","52111222","21211225","41211223","61211221","22111315","42111313","11211316","31211314","51211312","12211135","32211133","52211131","21311134","41311132","13111225","33111223","22211224","42211222","11311225","31311223","51311221","23111314","43111312","12211315","32211313","52211311","21311314","41311312","13211134","33211132","22311133","42311131","11411134","31411132","14111224","34111222","23211223","43211221","12311224","32311222","21411223","41411221","24111313","13211314","33211312","22311313","42311311","11411314","31411312","14211133","34211131","23311132","12411133","32411131","21511132","15111223","24211222","13311223","33311221","22411222","11511223","31511221","25111312","14211313","34211311","23311312","12411313","32411311","21511312","15211132","24311131","13411132","22511131","11611132","16111222","25211221","14311222","23411221","12511222","21611221","15211312","24311311","13411312","22511311","11611312","21121135","41121133","61121131","11112136","31112134","51112132","11121226","31121224","51121222","21112225","41112223","61112221","21121315","41121313","61121311","11112316","31112314","51112312","22121134","42121132","11221135","31221133","51221131","12112135","32112133","52112131","12121225","32121223","52121221","21221224","41221222","22112224","42112222","11212225","22121314","42121312","11221315","31221313","51221311","12112315","32112313","52112311","21212314","41212312","23121133","43121131","12221134","32221132","21321133","41321131","13112134","33112132","13121224","33121222","11312134","22221223","42221221","11321224","31321222","23112223","43112221","12212224","23121313","43121311","12221314","32221312","21321313","41321311","13112314","33112312","22212313","42212311","11312314","31312312","24121132","13221133","33221131","22321132","11421133","31421131","14112133","34112131","14121223","34121221","12312133","23221222","12321223","32321221","21421222","24112222","13212223","24121312","13221313","33221311","11412223","22321312","11421313","31421311","14112313","34112311","23212312","12312313","32312311","21412312","25121131","14221132","23321131","12421132","21521131","15112132","15121222","13312132","24221221","13321222","11512132","22421221","11521222","25112221","14212222","25121311","14221312","12412222","23321311","12421312","21521311","15112312","24212311","13312312","22412311","11512312","15221131","13421131","16112131","16121221","14312131","14321221","12512131","12521221","15212221","15221311","13412221","13421311","11612221","16112311","14312311","12512311","21131134","41131132","11122135","31122133","51122131","11131225","31131223","51131221","21113134","41113132","21122224","41122222","21131314","41131312","11113225","31113223","51113221","11122315","31122313","51122311","21113314","41113312","22131133","42131131","11231134","31231132","12122134","32122132","12131224","32131222","21231223","41231221","22113133","42113131","11213134","22122223","42122221","11222224","22131313","42131311","11231314","31231312","12113224","32113222","12122314","32122312","21222313","41222311","22113313","42113311","11213314","31213312","23131132","12231133","32231131","21331132","13122133","33122131","13131223","33131221","11322133","22231222","11331223","31331221","23113132","12213133","23122222","12222223","23131312","12231313","32231311","21331312","13113223","33113221","13122313","33122311","11313223","22222312","11322313","31322311","23113312","12213313","32213311","21313312","24131131","13231132","22331131","11431132","14122132","14131222","12322132","23231221","12331222","21431221","24113131","13213132","24122221","13222222","24131311","11413132","13231312","11422222","22331311","11431312","14113222","14122312","12313222","23222311","12322312","21422311","24113311","13213312","22313311","11413312","14231131","12431131","15122131","15131221","13322131","13331221","11522131","14213131","14222221","12413131","14231311","12422221","12431311","15113221","15122311","13313221","13322311","11513221","11522311","14213311","12413311","21141133","41141131","11132134","31132132","11141224","31141222","21123133","41123131","21132223","41132221","21141313","41141311","11114134","31114132","11123224","31123222","11132314","31132312","21114223","41114221","21123313","41123311","11114314","31114312","22141132","11241133","31241131","12132133","32132131","12141223","32141221","21241222","22123132","11223133","22132222","11232223","22141312","11241313","31241311","12114133","32114131","12123223","32123221","12132313","32132311","21232312","22114222","11214223","22123312","11223313","31223311","12114313","32114311","21214312","23141131","12241132","21341131","13132132","13141222","11332132","22241221","11341222","23123131","12223132","23132221","12232222","23141311","12241312","21341311","13114132","13123222","11314132","13132312","11323222","22232311","11332312","23114221","12214222","23123311","12223312","21323311","13114312","22214311","11314312","13241131","14132131","14141221","12332131","12341221","13223131","13232221","11423131","13241311","11432221","14114131","14123221","12314131","14132311","12323221","12332311","13214221","13223311","11414221","11423311","14114311","12314311","21151132","11142133","31142131","11151223","31151221","21133132","21142222","21151312","11124133","31124131","11133223","31133221","11142313","31142311","21115132","21124222","21133312","11115223","31115221","11124313","31124311","22151131","11251132","12142132","12151222","21251221","22133131","11233132","22142221","11242222","22151311","11251312","12124132","12133222","12142312","21242311","22115131","11215132","22124221","11224222","22133311","11233312","12115222","12124312","21224311","12251131","13142131","13151221","11342131","12233131","12242221","12251311","13124131","13133221","11324131","13142311","11333221","11342311","12215131","12224221","12233311","13115221","13124311","11315221","11324311","21161131","11152132","11161222","21143131","21152221","21161311","11134132","11143222","11152312","21125131","21134221","21143311","11116132","11125222","11134312","12152131","12161221","11243131","11252221","12134131","12143221","12152311","11225131","11234221","11243311","12116131","12125221","12134311","21111235","41111233","61111231","11111326","31111324","51111322","21111415","41111413","61111411","21211144","41211142","22111234","42111232","11211235","31211233","51211231","12111325","32111323","52111321","21211324","41211322","22111414","42111412","11211415","31211413","51211411","22211143","42211141","11311144","31311142","23111233","43111231","12211234","32211232","21311233","41311231","13111324","33111322","22211323","42211321","11311324","31311322","23111413","43111411","12211414","32211412","21311413","41311411","23211142","12311143","32311141","21411142","24111232","13211233","33211231","22311232","11411233","31411231","14111323","34111321","23211322","12311323","32311321","21411322","24111412","13211413","33211411","22311412","11411413","31411411","24211141","13311142","22411141","11511142","25111231","14211232","23311231","12411232","21511231","15111322","24211321","13311322","22411321","11511322","25111411","14211412","23311411","12411412","21511411","14311141","12511141","15211231","13411231","11611231","16111321","14311321","12511321","15211411","13411411","11611411","31121143","51121141","21112144","41112142","21121234","41121232","11112235","31112233","51112231","11121325","31121323","51121321","21112324","41112322","21121414","41121412","11112415","31112413","51112411","12121144","32121142","21221143","41221141","22112143","42112141","11212144","22121233","42121231","11221234","31221232","12112234","32112232","12121324","32121322","21221323","41221321","22112323","42112321","11212324","22121413","42121411","11221414","31221412","12112414","32112412","21212413","41212411","13121143","33121141","22221142","11321143","31321141","23112142","12212143","23121232","12221233","32221231","21321232","13112233","33112231","13121323","33121321","11312233","22221322","11321323","31321321","23112322","12212323","23121412","12221413","32221411","21321412","13112413","33112411","22212412","11312413","31312411","14121142","23221141","12321142","21421141","24112141","13212142","24121231","13221232","11412142","22321231","11421232","14112232","14121322","12312232","23221321","12321322","21421321","24112321","13212322","24121411","13221412","11412322","22321411","11421412","14112412","23212411","12312412","21412411","15121141","13321141","11521141","14212141","14221231","12412141","12421231","15112231","15121321","13312231","13321321","11512231","11521321","14212321","14221411","12412321","12421411","15112411","13312411","11512411","11131144","31131142","21122143","41122141","21131233","41131231","11113144","31113142","11122234","31122232","11131324","31131322","21113233","41113231","21122323","41122321","21131413","41131411","11113324","31113322","11122414","31122412","21113413","41113411","12131143","32131141","21231142","22122142","11222143","22131232","11231233","31231231","12113143","32113141","12122233","32122231","12131323","32131321","21231322","22113232","11213233","22122322","11222323","22131412","11231413","31231411","12113323","32113321","12122413","32122411","21222412","22113412","11213413","31213411","13131142","22231141","11331142","23122141","12222142","23131231","12231232","21331231","13113142","13122232","11313142","13131322","11322232","22231321","11331322","23113231","12213232","23122321","12222322","23131411","12231412","21331411","13113322","13122412","11313322","22222411","11322412","23113411","12213412","21313411","14131141","12331141","13222141","13231231","11422141","11431231","14113141","14122231","12313141","14131321","12322231","12331321","13213231","13222321","11413231","13231411","11422321","11431411","14113321","14122411","12313321","12322411","13213411","11413411","11141143","31141141","21132142","21141232","11123143","31123141","11132233","31132231","11141323","31141321","21114142","21123232","21132322","21141412","11114233","31114231","11123323","31123321","11132413","31132411","21114322","21123412","12141142","21241141","22132141","11232142","22141231","11241232","12123142","12132232","12141322","21241321","22114141","11214142","22123231","11223232","22132321","11232322","22141411","11241412","12114232","12123322","12132412","21232411","22114321","11214322","22123411","11223412","13141141","11341141","12232141","12241231","13123141","13132231","11323141","13141321","11332231","11341321","12214141","12223231","12232321","12241411","13114231","13123321","11314231","13132411","11323321","11332411","12214321","12223411","11151142","21142141","21151231","11133142","11142232","11151322","21124141","21133231","21142321","21151411","11115142","11124232","11133322","11142412","21115231","21124321","21133411","12151141","11242141","11251231","12133141","12142231","12151321","11224141","11233231","11242321","11251411","12115141","12124231","12133321","12142411","11215231","11224321","11233411","11161141","11143141","11152231","11161321","11125141","11134231","11143321","11152411","11111245","31111243","51111241","21111334","41111332","11111425","31111423","51111421","21111514","41111512","31211152","12111244","32111242","21211243","41211241","22111333","42111331","11211334","31211332","12111424","32111422","21211423","41211421","22111513","42111511","11211514","31211512","12211153","32211151","21311152","13111243","33111241","22211242","11311243","31311241","23111332","12211333","32211331","21311332","13111423","33111421","22211422","11311423","31311421","23111512","12211513","32211511","21311512","13211152","22311151","11411152","14111242","23211241","12311242","21411241","24111331","13211332","22311331","11411332","14111422","23211421","12311422","21411421","24111511","13211512","22311511","11411512","14211151","12411151","15111241","13311241","11511241","14211331","12411331","15111421","13311421","11511421","14211511","12411511","21121153","41121151","11112154","31112152","11121244","31121242","21112243","41112241","21121333","41121331","11112334","31112332","11121424","31121422","21112423","41112421","21121513","41121511","11112514","31112512","22121152","11221153","31221151","12112153","32112151","12121243","32121241","21221242","22112242","11212243","22121332","11221333","31221331","12112333","32112331","12121423","32121421","21221422","22112422","11212423","22121512","11221513","31221511","12112513","32112511","21212512","23121151","12221152","21321151","13112152","13121242","11312152","22221241","11321242","23112241","12212242","23121331","12221332","21321331","13112332","13121422","11312332","22221421","11321422","23112421","12212422","23121511","12221512","21321511","13112512","22212511","11312512","13221151","11421151","14112151","14121241","12312151","12321241","13212241","13221331","11412241","11421331","14112331","14121421","12312331","12321421","13212421","13221511","11412421","11421511","14112511","12312511","21131152","11122153","31122151","11131243","31131241","21113152","21122242","21131332","11113243","31113241","11122333","31122331","11131423","31131421","21113332","21122422","21131512","11113423","31113421","11122513","31122511","22131151","11231152","12122152","12131242","21231241","22113151","11213152","22122241","11222242","22131331","11231332","12113242","12122332","12131422","21231421","22113331","11213332","22122421","11222422","22131511","11231512","12113422","12122512","21222511","12231151","13122151","13131241","11322151","11331241","12213151","12222241","12231331","13113241","13122331","11313241","13131421","11322331","11331421","12213331","12222421","12231511","13113421","13122511","11313421","11322511","21141151","11132152","11141242","21123151","21132241","21141331","11114152","11123242","11132332","11141422","21114241","21123331","21132421","21141511","11114332","11123422","11132512","11241151","12132151","12141241","11223151","11232241","11241331","12114151","12123241","12132331","12141421","11214241","11223331","11232421","11241511","12114331","12123421","12132511","11142151","11151241","11124151","11133241","11142331","11151421","11115241","11124331","11133421","11142511","21111253","41111251","11111344","31111342","21111433","41111431","11111524","31111522","21111613","41111611","21211162","22111252","11211253","31211251","12111343","32111341","21211342","22111432","11211433","31211431","12111523","32111521","21211522","22111612","11211613","31211611","22211161","11311162","23111251","12211252","21311251","13111342","22211341","11311342","23111431","12211432","21311431","13111522","22211521","11311522","23111611","12211612","21311611","12311161","13211251","11411251","14111341","12311341","13211431","11411431","14111521","12311521","13211611","11411611","31121161","21112162","21121252","11112253","31112251","11121343","31121341","21112342","21121432","11112433","31112431","11121523","31121521","21112522","21121612","12121162","21221161","22112161","11212162","22121251","11221252","12112252","12121342","21221341","22112341","11212342","22121431","11221432","12112432","12121522","21221521","22112521","11212522","22121611","11221612","13121161","11321161","12212161","12221251","13112251","13121341","11312251","11321341","12212341","12221431","13112431","13121521","11312431","11321521","12212521","12221611","11131162","21122161","21131251","11113162"])]);$1.parity=$a(["1001","0101","1100","0011","1010","0110","1111","0000"]);$1.rowbits=$a($1.r);for(var _5z=0,_5y=$f($1.r-1);_5z<=_5y;_5z+=1){$1.i=_5z;$k[$j++]="p";if($1.i!=$f($1.r-1)){$k[$j++]=$g($1.parity,$1.i)}else{$k[$j++]="0000"}var _65=$k[--$j];$1[$k[--$j]]=_65;$1.ccrow=$G($1.ccs,$1.i*8,8);$k[$j++]=Infinity;for(var _6A=0;_6A<=7;_6A+=2){$q($G($1.ccrow,_6A,2));var _6D=$k[--$j];var _6E=$k[--$j];$k[$j++]=$f(_6D+_6E*49)}$1.scrow=$a();$k[$j++]=Infinity;$k[$j++]=10;$k[$j++]=1;$k[$j++]=1;for(var _6G=0;_6G<=3;_6G+=1){$1.j=_6G;$F($g($g($1.patterns,$f($g($1.p,$1.j)-48)),$g($1.scrow,$1.j)),function(){var _6Q=$k[--$j];$k[$j++]=$f(_6Q-48)})}$k[$j++]=4;$k[$j++]=1;$1.sbs=$a();$k[$j++]=Infinity;var _6S=$1.sbs;$k[$j++]=1;for(var _6T=0,_6U=_6S.length;_6T<_6U;_6T++){var _6W=$k[--$j];var _6X=_6W==0?1:0;$k[$j++]=_6W;for(var _6Y=0,_6Z=$g(_6S,_6T);_6Y<_6Z;_6Y++){$k[$j++]=_6X}}$r($a($m()-1));var _6c=$k[--$j];var _6d=$k[--$j];$k[$j++]=_6c;$k[$j++]=_6d;$j--;var _6e=$k[--$j];var _6f=$k[--$j];$k[$j++]=_6e;$k[$j++]=_6f;$j--;$p($1.rowbits,$1.i,$k[--$j])}$k[$j++]=Infinity;for(var _6k=0,_6l=81*$1.sepheight;_6k<_6l;_6k++){$k[$j++]=1}for(var _6o=0,_6n=$f($1.r-2);_6o<=_6n;_6o+=1){$1.i=_6o;for(var _6q=0,_6r=$1.rowheight;_6q<_6r;_6q++){$q($g($1.rowbits,$1.i))}for(var _6w=0,_6x=$1.sepheight;_6w<_6x;_6w++){for(var _6y=0,_6z=10;_6y<_6z;_6y++){$k[$j++]=0}for(var _70=0,_71=70;_70<_71;_70++){$k[$j++]=1}$k[$j++]=0}}for(var _73=0,_74=$1.rowheight;_73<_74;_73++){$q($g($1.rowbits,$f($1.r-1)))}for(var _79=0,_7A=81*$1.sepheight;_79<_7A;_79++){$k[$j++]=1}$1.pixs=$a();var _7G=new Map([["ren",$0.renmatrix],["pixs",$1.pixs],["pixx",81],["pixy",~~($1.pixs.length/81)],["height",~~($1.pixs.length/81)/72],["width",81/72],["opt",$1.options]]);$k[$j++]=_7G;if(!$1.dontdraw){$0.renmatrix()}};$0.flattermarken=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.height=.3;$F($1.barcode,function(){var _3=$k[--$j];if(_3<48||_3>57){$k[$j++]="bwipp.flattermarkenBadCharacter";$k[$j++]="Flattermarken must contain only digits";$0.raiseerror()}});$F($1.options,function(){var _5=$k[--$j];$1[$k[--$j]]=_5});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$F($1.barcode,function(){var _C=$k[--$j];if(_C<48||_C>57){$k[$j++]="bwipp.flattermarkenBadCharacter";$k[$j++]="Flattermarken must contain only digits";$0.raiseerror()}});$1.encs=$a(["0018","0117","0216","0315","0414","0513","0612","0711","0810","0900"]);$1.barchars="1234567890";$1.barlen=$1.barcode.length;$1.sbs=$s($1.barlen*4);$1.txt=$a($1.barlen);for(var _L=0,_K=$1.barlen-1;_L<=_K;_L+=1){$1.i=_L;$x($1.barchars,$G($1.barcode,$1.i,1));$j--;$1.indx=$k[--$j].length;$j-=2;$1.enc=$g($1.encs,$1.indx);$P($1.sbs,$1.i*4,$1.enc);$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),$1.i*9,$1.textyoffset,$1.textfont,$1.textsize]))}$k[$j++]=Infinity;$k[$j++]=Infinity;var _h=$1.sbs;for(var _i=0,_j=_h.length;_i<_j;_i++){$k[$j++]=$g(_h,_i)-48}var _l=$a();$k[$j++]=Infinity;for(var _n=0,_o=~~(($1.sbs.length+1)/2);_n<_o;_n++){$k[$j++]=$1.height}var _q=$a();$k[$j++]=Infinity;for(var _s=0,_t=~~(($1.sbs.length+1)/2);_s<_t;_s++){$k[$j++]=0}var _u=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_l;$k[$j++]="bhs";$k[$j++]=_q;$k[$j++]="bbs";$k[$j++]=_u;$k[$j++]="txt";$k[$j++]=$1.txt;$k[$j++]="opt";$k[$j++]=$1.options;var _x=$d();$k[$j++]=_x;if(!$1.dontdraw){$0.renlinear()}};$0.raw=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.height=+$1.height;$F($1.barcode,function(){var _7=$k[--$j];if(_7<49||_7>57){$k[$j++]="bwipp.rawBadCharacter";$k[$j++]="Raw must contain only digits 1 to 9";$0.raiseerror()}});$k[$j++]=Infinity;$k[$j++]=Infinity;$F($1.barcode,function(){var _9=$k[--$j];$k[$j++]=$f(_9-48)});var _A=$a();$k[$j++]=Infinity;for(var _C=0,_D=~~(($1.barcode.length+1)/2);_C<_D;_C++){$k[$j++]=$1.height}var _F=$a();$k[$j++]=Infinity;for(var _H=0,_I=~~(($1.barcode.length+1)/2);_H<_I;_H++){$k[$j++]=0}var _J=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_A;$k[$j++]="bhs";$k[$j++]=_F;$k[$j++]="bbs";$k[$j++]=_J;$k[$j++]="opt";$k[$j++]=$1.options;var _L=$d();$k[$j++]=_L;if(!$1.dontdraw){$0.renlinear()}};$0.daft=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.height=.175;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.height=+$1.height;$F($1.barcode,function(){var _7=$k[--$j];if(_7!=68&&(_7!=65&&(_7!=70&&_7!=84))){$k[$j++]="bwipp.daftBadCharacter";$k[$j++]="DAFT must contain only characters D, A, F and T";$0.raiseerror()}});$1.barlen=$1.barcode.length;$1.bbs=$a($1.barlen);$1.bhs=$a($1.barlen);for(var _F=0,_E=$1.barlen-1;_F<=_E;_F+=1){$1.i=_F;$1.enc=$G($1.barcode,$1.i,1);if($eq($1.enc,"D")){$p($1.bbs,$1.i,0*$1.height/8);$p($1.bhs,$1.i,5*$1.height/8)}if($eq($1.enc,"A")){$p($1.bbs,$1.i,3*$1.height/8);$p($1.bhs,$1.i,5*$1.height/8)}if($eq($1.enc,"F")){$p($1.bbs,$1.i,0*$1.height/8);$p($1.bhs,$1.i,8*$1.height/8)}if($eq($1.enc,"T")){$p($1.bbs,$1.i,3*$1.height/8);$p($1.bhs,$1.i,2*$1.height/8)}}$k[$j++]=Infinity;var _l=$1.bbs;var _m=$1.bhs;$k[$j++]=Infinity;for(var _o=0,_p=$1.bhs.length-1;_o<_p;_o++){$k[$j++]=1.44;$k[$j++]=1.872}$k[$j++]=1.44;var _q=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="bbs";$k[$j++]=_l;$k[$j++]="bhs";$k[$j++]=_m;$k[$j++]="sbs";$k[$j++]=_q;$k[$j++]="opt";$k[$j++]=$1.options;var _s=$d();$k[$j++]=_s;if(!$1.dontdraw){$0.renlinear()}};$0.symbol=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});var _H=new Map([["fima",function(){$1.sbs=$a([2.25,2.25,2.25,11.25,2.25,11.25,2.25,2.25,2.25]);$1.bhs=$a([.625,.625,.625,.625,.625]);$1.bbs=$a([0,0,0,0,0])}],["fimb",function(){$1.sbs=$a([2.25,6.75,2.25,2.25,2.25,6.25,2.25,2.25,2.25,6.75,2.25]);$1.bhs=$a([.625,.625,.625,.625,.625,.625]);$1.bbs=$a([0,0,0,0,0,0])}],["fimc",function(){$1.sbs=$a([2.25,2.25,2.25,6.75,2.25,6.75,2.25,6.75,2.25,2.25,2.25]);$1.bhs=$a([.625,.625,.625,.625,.625,.625]);$1.bbs=$a([0,0,0,0,0,0])}],["fimd",function(){$1.sbs=$a([2.25,2.25,2.25,2.25,2.25,6.75,2.25,6.75,2.25,2.25,2.25,2.25,2.25]);$1.bhs=$a([.625,.625,.625,.625,.625,.625,.625]);$1.bbs=$a([0,0,0,0,0,0,0])}]]);$1.symbols=_H;var _K=$g($1.symbols,$1.barcode)!==undefined;if(!_K){$k[$j++]="bwipp.symbolUnknownSymbol";$k[$j++]="Unknown symbol name provided";$0.raiseerror()}if($g($1.symbols,$1.barcode)()===true){return true}var _S=new Map([["ren",$0.renlinear],["sbs",$1.sbs],["bhs",$1.bhs],["bbs",$1.bbs],["opt",$1.options]]);$k[$j++]=_S;if(!$1.dontdraw){$0.renlinear()}};$0.pdf417=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.compact=false;$1.eclevel=-1;$1.columns=0;$1.rows=0;$1.rowmult=3;$1.encoding="auto";$1.ccc=false;$1.raw=false;$1.parse=false;$1.parsefnc=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.eclevel=~~$1.eclevel;$1.columns=~~$1.columns;$1.rows=~~$1.rows;$1.rowmult=+$1.rowmult;if($1.raw){$1.encoding="raw"}if($eq($1.encoding,"raw")){$1.datcws=$a($1.barcode.length);$1.i=0;$1.j=0;for(;;){if($1.i==$1.barcode.length){break}$1.cw=~~$z($G($1.barcode,$1.i+1,3));$p($1.datcws,$1.j,$1.cw);$1.i=$1.i+4;$1.j=$1.j+1}$1.datcws=$G($1.datcws,0,$1.j)}if($1.ccc){$1.encoding="ccc"}$1.encb=function(){$1.in=$k[--$j];$1.inlen=$1.in.length;$1.out=$a(~~($1.inlen/6)*5+$1.inlen%6);for(var _Y=0,_X=~~($1.inlen/6)-1;_Y<=_X;_Y+=1){$1.k=_Y;$k[$j++]=Infinity;$q($G($1.in,$1.k*6,3));$1.msbs=$a();$k[$j++]=Infinity;$q($1.msbs);var _e=$k[--$j];var _f=$k[--$j];var _g=$k[--$j];$k[$j++]=$f($f(_e+_f*256)+_g*65536);for(var _h=0,_i=3;_h<_i;_h++){var _j=$k[--$j];$k[$j++]=_j%900;$k[$j++]=~~(_j/900)}$1.mscs=$a();$k[$j++]=Infinity;$q($G($1.in,$1.k*6+3,3));$1.lsbs=$a();$k[$j++]=Infinity;$q($1.lsbs);var _q=$k[--$j];var _r=$k[--$j];var _s=$k[--$j];$k[$j++]=$f($f(_q+_r*256)+_s*65536);for(var _t=0,_u=3;_t<_u;_t++){var _v=$k[--$j];$k[$j++]=_v%900;$k[$j++]=~~(_v/900)}$1.lscs=$a();var _y=$g($1.lscs,0);var _10=$g($1.mscs,0);$p($1.out,$1.k*5+4,$f(_y+_10*316)%900);var _14=$g($1.lscs,1);var _16=$g($1.mscs,0);var _18=$g($1.mscs,1);$p($1.out,$1.k*5+3,$f($f($f(~~($f(_y+_10*316)/900)+_14)+_16*641)+_18*316)%900);var _1C=$g($1.lscs,2);var _1E=$g($1.mscs,0);var _1G=$g($1.mscs,1);var _1I=$g($1.mscs,2);$p($1.out,$1.k*5+2,$f($f($f($f(~~($f($f($f(~~($f(_y+_10*316)/900)+_14)+_16*641)+_18*316)/900)+_1C)+_1E*20)+_1G*641)+_1I*316)%900);var _1M=$g($1.lscs,3);var _1O=$g($1.mscs,1);var _1Q=$g($1.mscs,2);$p($1.out,$1.k*5+1,$f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_y+_10*316)/900)+_14)+_16*641)+_18*316)/900)+_1C)+_1E*20)+_1G*641)+_1I*316)/900)+_1M)+_1O*20)+_1Q*641)%900);$p($1.out,$1.k*5,$f(~~($f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_y+_10*316)/900)+_14)+_16*641)+_18*316)/900)+_1C)+_1E*20)+_1G*641)+_1I*316)/900)+_1M)+_1O*20)+_1Q*641)/900)+$g($1.mscs,2)*20)%900)}$1.rem=$1.inlen%6;if($1.rem!=0){$k[$j++]=$1.out;$k[$j++]=$1.out.length-$1.rem;$k[$j++]=Infinity;$q($G($1.in,$1.inlen-$1.rem,$1.rem));var _1h=$a();var _1i=$k[--$j];$P($k[--$j],_1i,_1h)}$k[$j++]=$1.out};if($eq($1.encoding,"byte")||$eq($1.encoding,"ccc")){$1.barlen=$1.barcode.length;$1.datcws=$a(~~($1.barlen/6)*5+$1.barlen%6+1);var _1t=$1.barlen%6==0?924:901;$p($1.datcws,0,_1t);$k[$j++]=$1.datcws;$k[$j++]=1;$k[$j++]=Infinity;$F($1.barcode);var _1w=$a();$k[$j++]=_1w;$1.encb();var _1x=$k[--$j];var _1y=$k[--$j];$P($k[--$j],_1y,_1x);if($eq($1.encoding,"ccc")){$k[$j++]=Infinity;$k[$j++]=920;$q($1.datcws);$1.datcws=$a()}}if($eq($1.encoding,"auto")){var _26=new Map([["parse",$1.parse],["parsefnc",$1.parsefnc],["eci",true]]);$1.fncvals=_26;$k[$j++]="msg";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _29=$k[--$j];$1[$k[--$j]]=_29;$1.msglen=$1.msg.length;$1.T=0;$1.N=1;$1.B=2;$1.A=0;$1.L=1;$1.M=2;$1.P=3;$1.tl=-1;$1.nl=-2;$1.bl=-3;$1.bl6=-4;$1.bs=-5;$1.al=-6;$1.ll=-7;$1.ml=-8;$1.pl=-9;$1.as=-10;$1.ps=-11;$1.charmaps=$a([$a(["A","a","0",";"]),$a(["B","b","1","<"]),$a(["C","c","2",">"]),$a(["D","d","3","@"]),$a(["E","e","4","["]),$a(["F","f","5",92]),$a(["G","g","6","]"]),$a(["H","h","7","_"]),$a(["I","i","8","`"]),$a(["J","j","9","~"]),$a(["K","k","&","!"]),$a(["L","l",13,13]),$a(["M","m",9,9]),$a(["N","n",",",","]),$a(["O","o",":",":"]),$a(["P","p","#",10]),$a(["Q","q","-","-"]),$a(["R","r",".","."]),$a(["S","s","$","$"]),$a(["T","t","/","/"]),$a(["U","u","+",'"']),$a(["V","v","%","|"]),$a(["W","w","*","*"]),$a(["X","x","=",40]),$a(["Y","y","^",41]),$a(["Z","z",$1.pl,"?"]),$a([" "," "," ","{"]),$a([$1.ll,$1.as,$1.ll,"}"]),$a([$1.ml,$1.ml,$1.al,"'"]),$a([$1.ps,$1.ps,$1.ps,$1.al])]);$1.charvals=$a([new Map,new Map,new Map,new Map]);$1.alltext=new Map;for(var _2v=0,_2u=$1.charmaps.length-1;_2v<=_2u;_2v+=1){$1.i=_2v;$1.encs=$g($1.charmaps,$1.i);for(var _2z=0;_2z<=3;_2z+=1){$1.j=_2z;var _32=$g($1.encs,$1.j);$k[$j++]=_32;if($eq($t(_32),"stringtype")){var _35=$g($k[--$j],0);$k[$j++]=_35}var _36=$k[--$j];$p($g($1.charvals,$1.j),_36,$1.i);$p($1.alltext,_36,-1)}}$1.e=1e4;$1.latlen=$a([$a([0,1,1,2]),$a([2,0,1,2]),$a([1,1,0,1]),$a([1,2,2,0])]);$1.latseq=$a([$a([$a([]),$a([$1.ll]),$a([$1.ml]),$a([$1.ml,$1.pl])]),$a([$a([$1.ml,$1.al]),$a([]),$a([$1.ml]),$a([$1.ml,$1.pl])]),$a([$a([$1.al]),$a([$1.ll]),$a([]),$a([$1.pl])]),$a([$a([$1.al]),$a([$1.al,$1.ll]),$a([$1.al,$1.ml]),$a([])])]);$1.shftlen=$a([$a([$1.e,$1.e,$1.e,1]),$a([1,$1.e,$1.e,1]),$a([$1.e,$1.e,$1.e,1]),$a([$1.e,$1.e,$1.e,$1.e])]);$k[$j++]=Infinity;for(var _4B=0,_4C=$1.msglen;_4B<_4C;_4B++){$k[$j++]=0}$k[$j++]=0;$1.numdigits=$a();$k[$j++]=Infinity;for(var _4F=0,_4G=$1.msglen;_4F<_4G;_4F++){$k[$j++]=0}$k[$j++]=0;$1.numtext=$a();$k[$j++]=Infinity;for(var _4J=0,_4K=$1.msglen;_4J<_4K;_4J++){$k[$j++]=0}$k[$j++]=0;$1.numbytes=$a();$k[$j++]=Infinity;for(var _4N=0,_4O=$1.msglen;_4N<_4O;_4N++){$k[$j++]=0}$k[$j++]=0;$1.iseci=$a();for(var _4R=$1.msglen-1;_4R>=0;_4R-=1){$1.i=_4R;var _4U=$g($1.msg,$1.i);if(_4U>=48&&_4U<=57){$p($1.numdigits,$1.i,$f($g($1.numdigits,$1.i+1)+1))}var _4e=$g($1.alltext,$g($1.msg,$1.i))!==undefined;if(_4e&&$g($1.numdigits,$1.i)<13){$p($1.numtext,$1.i,$f($g($1.numtext,$1.i+1)+1))}if($g($1.msg,$1.i)>=0&&$g($1.numtext,$1.i)<5&&$g($1.numdigits,$1.i)<13){$p($1.numbytes,$1.i,$f($g($1.numbytes,$1.i+1)+1))}$p($1.iseci,$1.i,$g($1.msg,$1.i)<=-1e6)}$1.numdigits=$G($1.numdigits,0,$1.msglen);$1.numtext=$G($1.numtext,0,$1.msglen);$1.numbytes=$G($1.numbytes,0,$1.msglen);$1.seq=$a([]);$1.seqlen=0;$1.state=$1.T;$1.p=0;for(;;){if($1.p==$1.msglen){break}if($g($1.iseci,$1.p)){$1.eci=$g($1.msg,$1.p);$k[$j++]=Infinity;$q($1.seq);$k[$j++]=$a([$1.eci]);$1.seq=$a();$1.p=$1.p+1;$k[$j++]="seqlen";$k[$j++]=$1.seqlen;if($1.eci<=-1810900){$k[$j++]=2}else{var _5X=$1.eci<=-1000900?3:2;$k[$j++]=_5X}var _5Y=$k[--$j];var _5Z=$k[--$j];$1[$k[--$j]]=$f(_5Z+_5Y)}else{$1.n=$g($1.numdigits,$1.p);if($1.n>=13){$k[$j++]=Infinity;$q($1.seq);$k[$j++]=$1.nl;$k[$j++]=Infinity;$q($G($1.msg,$1.p,$1.n));var _5l=$a();$k[$j++]=_5l;$1.seq=$a();$1.state=$1.N;$1.p=$f($1.p+$1.n);$1.seqlen=$f($1.seqlen+1+$1.n)}else{$1.t=$g($1.numtext,$1.p);if($1.t>=5){$k[$j++]=Infinity;$q($1.seq);if($1.state!=$1.T){$k[$j++]=$1.tl}$k[$j++]=Infinity;$q($G($1.msg,$1.p,$1.t));var _64=$a();$k[$j++]=_64;$1.seq=$a();$1.state=$1.T;$1.p=$f($1.p+$1.t);$1.seqlen=$f($f($1.seqlen+1)+$1.t)}else{$1.b=$g($1.numbytes,$1.p);if($1.b==1&&$1.state==$1.T){$k[$j++]=Infinity;$q($1.seq);$k[$j++]=$1.bs;$k[$j++]=$a([$g($1.msg,$1.p)]);$1.seq=$a();$1.p=$f($1.p+$1.b);$1.seqlen=$f($1.seqlen+2)}else{$k[$j++]=Infinity;$q($1.seq);var _6T=$1.b%6!=0?$1.bl:$1.bl6;$k[$j++]=_6T;$k[$j++]=Infinity;$q($G($1.msg,$1.p,$1.b));var _6Y=$a();$k[$j++]=_6Y;$1.seq=$a();$1.state=$1.B;$1.p=$f($1.p+$1.b);$1.seqlen=$f($f($1.seqlen+1)+$1.b)}}}}}$k[$j++]=Infinity;$k[$j++]=$1.tl;$k[$j++]=900;$k[$j++]=$1.bl;$k[$j++]=901;$k[$j++]=$1.bl6;$k[$j++]=924;$k[$j++]=$1.nl;$k[$j++]=902;$k[$j++]=$1.bs;$k[$j++]=913;$1.latchcws=$d();$1.enca=function(){var _6p=$g($g($1.charvals,$1.A),$k[--$j]);$k[$j++]=_6p};$1.encl=function(){var _6u=$g($g($1.charvals,$1.L),$k[--$j]);$k[$j++]=_6u};$1.encm=function(){var _6z=$g($g($1.charvals,$1.M),$k[--$j]);$k[$j++]=_6z};$1.encp=function(){var _74=$g($g($1.charvals,$1.P),$k[--$j]);$k[$j++]=_74};$1.textencfuncs=$a(["enca","encl","encm","encp"]);$1.addtotext=function(){$p($1.text,$1.l,$k[--$j]);$1.l=$1.l+1};$1.enct=function(){$1.in=$k[--$j];$1.curlen=$a([$1.e,$1.e,$1.e,$1.e]);$p($1.curlen,$1.submode,0);$1.curseq=$a([$a([]),$a([]),$a([]),$a([])]);$F($1.in,function(){$1.char=$k[--$j];for(;;){$1.imp=false;var _7T=$a([$1.A,$1.L,$1.M,$1.P]);for(var _7U=0,_7V=_7T.length;_7U<_7V;_7U++){$1.x=$g(_7T,_7U);var _7b=$a([$1.A,$1.L,$1.M,$1.P]);for(var _7c=0,_7d=_7b.length;_7c<_7d;_7c++){$1.y=$g(_7b,_7c);$1.cost=$f($g($1.curlen,$1.x)+$g($g($1.latlen,$1.x),$1.y));if($1.cost<$g($1.curlen,$1.y)){$p($1.curlen,$1.y,$1.cost);$k[$j++]=$1.curseq;$k[$j++]=$1.y;$k[$j++]=Infinity;$q($g($1.curseq,$1.x));$q($g($g($1.latseq,$1.x),$1.y));var _84=$a();var _85=$k[--$j];$p($k[--$j],_85,_84);$1.imp=true}}}if(!$1.imp){break}}$1.nxtlen=$a([$1.e,$1.e,$1.e,$1.e]);$1.nxtseq=$a(4);var _8I=$a([$1.A,$1.L,$1.M,$1.P]);for(var _8J=0,_8K=_8I.length;_8J<_8K;_8J++){$1.x=$g(_8I,_8J);for(;;){var _8Q=$g($g($1.charvals,$1.x),$1.char)!==undefined;if(!_8Q){break}$1.cost=$f($g($1.curlen,$1.x)+1);if($1.cost<$g($1.nxtlen,$1.x)){$p($1.nxtlen,$1.x,$1.cost);$k[$j++]=$1.nxtseq;$k[$j++]=$1.x;$k[$j++]=Infinity;$q($g($1.curseq,$1.x));$k[$j++]=$1.char;var _8h=$a();var _8i=$k[--$j];$p($k[--$j],_8i,_8h)}var _8o=$a([$1.A,$1.L,$1.M,$1.P]);for(var _8p=0,_8q=_8o.length;_8p<_8q;_8p++){$1.y=$g(_8o,_8p);if($ne($1.x,$1.y)){$1.cost=$f($f($g($1.curlen,$1.y)+$g($g($1.shftlen,$1.y),$1.x))+1);if($1.cost<$g($1.nxtlen,$1.y)){$p($1.nxtlen,$1.y,$1.cost);$k[$j++]=$1.nxtseq;$k[$j++]=$1.y;$k[$j++]=Infinity;$q($g($1.curseq,$1.y));var _9G=$1.x==$1.A?$1.as:$1.ps;$k[$j++]=_9G;$k[$j++]=$1.char;var _9I=$a();var _9J=$k[--$j];$p($k[--$j],_9J,_9I)}}}break}}$1.curlen=$1.nxtlen;$1.curseq=$1.nxtseq});$1.minseq=$1.e;var _9S=$a([$1.A,$1.L,$1.M,$1.P]);for(var _9T=0,_9U=_9S.length;_9T<_9U;_9T++){$1.k=$g(_9S,_9T);if($g($1.curlen,$1.k)<$1.minseq){$1.minseq=$g($1.curlen,$1.k);$1.txtseq=$g($1.curseq,$1.k)}}$1.text=$a($1.minseq);$1.k=0;$1.l=0;for(;;){if($1.k>=$1.txtseq.length){break}$1.char=$g($1.txtseq,$1.k);$k[$j++]=$1.char;if($1[$g($1.textencfuncs,$1.submode)]()===true){break}$1.addtotext();$1.k=$1.k+1;if($1.char==$1.as||$1.char==$1.ps){$k[$j++]=$g($1.txtseq,$1.k);if($1.char==$1.as){$1.enca()}else{$1.encp()}$1.addtotext();$1.k=$1.k+1}if($1.char==$1.al){$1.submode=$1.A}if($1.char==$1.ll){$1.submode=$1.L}if($1.char==$1.ml){$1.submode=$1.M}if($1.char==$1.pl){$1.submode=$1.P}}if($1.text.length%2==1){if($1.submode==$1.P){$k[$j++]="pad";$k[$j++]=$1.al;$1.encp();var _AJ=$k[--$j];$1[$k[--$j]]=_AJ;$1.submode=$1.A}else{$k[$j++]="pad";$k[$j++]=$1.ps;if($1[$g($1.textencfuncs,$1.submode)]()===true){return true}var _AR=$k[--$j];$1[$k[--$j]]=_AR}$k[$j++]=Infinity;$q($1.text);$k[$j++]=$1.pad;$1.text=$a()}$1.out=$a(~~($1.text.length/2));for(var _Aa=0,_AZ=$1.out.length-1;_Aa<=_AZ;_Aa+=1){$1.k=_Aa;$p($1.out,$1.k,$f($g($1.text,$1.k*2)*30+$g($1.text,$1.k*2+1)))}$k[$j++]=$1.out};$1.encn=function(){$1.in=$k[--$j];$1.out=$a([]);for(var _Ao=0,_An=$1.in.length-1;_Ao<=_An;_Ao+=44){$1.k=_Ao;$k[$j++]=Infinity;var _At=$1.in.length-$1.k;$k[$j++]=1;$k[$j++]=$1.in;$k[$j++]=$1.k;$k[$j++]=_At;if(_At>44){$j--;$k[$j++]=44}var _Au=$k[--$j];var _Av=$k[--$j];var _Ax=$G($k[--$j],_Av,_Au);for(var _Ay=0,_Az=_Ax.length;_Ay<_Az;_Ay++){$k[$j++]=$f($g(_Ax,_Ay)-48)}$1.gmod=$a();$1.cwn=$a([]);for(;;){$1.dv=900;$1.gmul=$a([]);$1.val=0;for(;;){if($1.gmod.length==0){break}$1.val=$f($1.val*10+$g($1.gmod,0));$1.gmod=$G($1.gmod,1,$1.gmod.length-1);if($1.val<$1.dv){if($1.gmul.length!=0){$k[$j++]=Infinity;$q($1.gmul);$k[$j++]=0;$1.gmul=$a()}}else{$k[$j++]=Infinity;$q($1.gmul);$k[$j++]=~~($1.val/$1.dv);$1.gmul=$a()}$1.val=$1.val%$1.dv}$1.dv=$1.val;$k[$j++]=Infinity;$k[$j++]=$1.dv;$q($1.cwn);$1.cwn=$a();$1.gmod=$1.gmul;if($1.gmul.length==0){break}}$k[$j++]=Infinity;$q($1.out);$q($1.cwn);$1.out=$a()}$k[$j++]=$1.out};$1.ence=function(){var _BY=$f(-$g($k[--$j],0)-1e6);$k[$j++]=_BY;if(_BY<=899){var _BZ=$k[--$j];$k[$j++]=927;$k[$j++]=_BZ;$r($a(2))}else{var _Bb=$k[--$j];$k[$j++]=_Bb;if(_Bb<=810899){var _Bc=$k[--$j];$k[$j++]=926;$k[$j++]=~~(_Bc/900)-1;$k[$j++]=_Bc%900;$r($a(3))}else{var _Be=$k[--$j];$k[$j++]=_Be;if(_Be<=811799){var _Bf=$k[--$j];$k[$j++]=925;$k[$j++]=$f(_Bf-810900);$r($a(2))}else{$k[$j++]="bwipp.pdf417badECI";$k[$j++]="PDF417 supports ECIs 000000 to 811799";$0.raiseerror()}}}};$1.encfuncs=$a(["enct","encn","encb"]);$1.addtocws=function(){var _Bi=$k[--$j];$P($1.datcws,$1.j,_Bi);$1.j=_Bi.length+$1.j};$1.state=$1.T;$1.submode=$1.A;$1.datcws=$a($1.seqlen);$1.i=0;$1.j=0;for(;;){if($1.i>=$1.seq.length){break}$1.chars=$g($1.seq,$1.i);if($eq($t($1.chars),"arraytype")){if($g($1.chars,0)<=-1e6){$k[$j++]=$1.chars;$1.ence();$1.addtocws()}else{$k[$j++]=$1.chars;if($1[$g($1.encfuncs,$1.state)]()===true){break}$1.addtocws()}}else{$k[$j++]=$a([$g($1.latchcws,$1.chars)]);$1.addtocws();if($1.chars==$1.tl){$1.state=$1.T;$1.submode=$1.A}if($1.chars==$1.nl){$1.state=$1.N}if($1.chars==$1.bl||$1.chars==$1.bl6){$1.state=$1.B}if($1.chars==$1.bs){$1.i=$1.i+1;$k[$j++]=$g($1.seq,$1.i);$1.encb();$1.addtocws()}}$1.i=$1.i+1}$1.datcws=$G($1.datcws,0,$1.j)}$1.m=$1.datcws.length;if($1.eclevel==-1){if($1.m<=40){$1.eclevel=2}if($1.m>=41&&$1.m<=160){$1.eclevel=3}if($1.m>=161&&$1.m<=320){$1.eclevel=4}if($1.m>=321){$1.eclevel=5}}$1.maxeclevel=~~(Math.log(928-1-$1.m)/Math.log(2))-1;if($1.eclevel>$1.maxeclevel){$1.eclevel=$1.maxeclevel}$1.k=~~Math.pow(2,$1.eclevel+1);if($1.columns==0){$1.columns=~~Math.round(Math.sqrt(($1.m+$1.k)/3))}$k[$j++]="c";if($1.columns>=1){$k[$j++]=$1.columns}else{$k[$j++]=1}var _Cn=$k[--$j];$1[$k[--$j]]=_Cn;$1.r=~~Math.ceil(($1.m+$1.k+1)/$1.columns);if($1.r<$1.rows&&$1.rows<=90){$1.r=$1.rows}if($1.r<3){$1.r=3}var _Cx=$1.c;var _Cy=$1.r;var _Cz=$1.m;var _D0=8;var _D1=~~(Math.log($f($f(_Cx*_Cy-1)-_Cz))/Math.log(2))-1;if(~~(Math.log($f($f(_Cx*_Cy-1)-_Cz))/Math.log(2))-1>8){var _=_D0;_D0=_D1;_D1=_}$1.maxeclevel=_D1;if($1.maxeclevel>$1.eclevel){$1.eclevel=$1.maxeclevel;$1.k=~~Math.pow(2,$1.eclevel+1)}$1.n=$f($1.c*$1.r-$1.k);$1.cws=$a($f($1.c*$1.r+1));$p($1.cws,0,$1.n);$P($1.cws,1,$1.datcws);$k[$j++]=$1.cws;$k[$j++]=$1.m+1;$k[$j++]=Infinity;for(var _DK=0,_DL=$f($f($1.n-$1.m)-1);_DK<_DL;_DK++){$k[$j++]=900}var _DM=$a();var _DN=$k[--$j];$P($k[--$j],_DN,_DM);$k[$j++]=$1.cws;$k[$j++]=$1.n;$k[$j++]=Infinity;for(var _DS=0,_DT=$1.k;_DS<_DT;_DS++){$k[$j++]=0}$k[$j++]=0;var _DU=$a();var _DV=$k[--$j];$P($k[--$j],_DV,_DU);$k[$j++]=Infinity;$k[$j++]=1;for(var _DX=0,_DY=928;_DX<_DY;_DX++){var _DZ=$k[--$j];$k[$j++]=_DZ;$k[$j++]=_DZ*3%929}$1.rsalog=$a();$1.rslog=$a(929);for(var _Dc=1;_Dc<=928;_Dc+=1){$p($1.rslog,$g($1.rsalog,_Dc),_Dc)}$1.rsprod=function(){var _Dg=$k[--$j];var _Dh=$k[--$j];$k[$j++]=_Dh;$k[$j++]=_Dg;if(_Dg!=0&&_Dh!=0){var _Dk=$g($1.rslog,$k[--$j]);var _Dp=$g($1.rsalog,$f(_Dk+$g($1.rslog,$k[--$j]))%928);$k[$j++]=_Dp}else{$j-=2;$k[$j++]=0}};$k[$j++]=Infinity;$k[$j++]=1;for(var _Dr=0,_Ds=$1.k;_Dr<_Ds;_Dr++){$k[$j++]=0}$1.coeffs=$a();for(var _Dw=1,_Dv=$1.k;_Dw<=_Dv;_Dw+=1){$1.i=_Dw;$p($1.coeffs,$1.i,$g($1.coeffs,$1.i-1));for(var _E3=$1.i-1;_E3>=1;_E3-=1){$1.j=_E3;$k[$j++]=$1.coeffs;$k[$j++]=$1.j;$k[$j++]=$g($1.coeffs,$1.j-1);$k[$j++]=$g($1.coeffs,$1.j);$k[$j++]=$g($1.rsalog,$1.i);$1.rsprod();var _EF=$k[--$j];var _EG=$k[--$j];var _EH=$k[--$j];$p($k[--$j],_EH,$f(_EG+_EF)%929)}$k[$j++]=$1.coeffs;$k[$j++]=0;$k[$j++]=$g($1.coeffs,0);$k[$j++]=$g($1.rsalog,$1.i);$1.rsprod();var _EP=$k[--$j];var _EQ=$k[--$j];$p($k[--$j],_EQ,_EP)}$1.coeffs=$G($1.coeffs,0,$1.coeffs.length-1);for(var _EW=$1.coeffs.length-1;_EW>=0;_EW-=2){var _EX=$1.coeffs;$p(_EX,_EW,$f(929-$g(_EX,_EW)))}for(var _Eb=0,_Ea=$f($1.n-1);_Eb<=_Ea;_Eb+=1){$1.t=$f($g($1.cws,_Eb)+$g($1.cws,$1.n))%929;for(var _Ej=0,_Ei=$1.k-1;_Ej<=_Ei;_Ej+=1){$1.j=_Ej;$p($1.cws,$f($1.n+$1.j),$f($g($1.cws,$f($f($1.n+$1.j)+1))+$f(929-$1.t*$g($1.coeffs,$1.k-$1.j-1)%929))%929)}}for(var _F0=$1.n,_Ez=$f($1.n+$1.k);_F0<=_Ez;_F0+=1){$p($1.cws,_F0,$f(929-$g($1.cws,_F0))%929)}$1.cws=$G($1.cws,0,$1.cws.length-1);$1.clusters=$a([$a([120256,125680,128380,120032,125560,128318,108736,119920,108640,86080,108592,86048,110016,120560,125820,109792,120440,125758,88256,109680,88160,89536,110320,120700,89312,110200,120638,89200,110140,89840,110460,89720,110398,89980,128506,119520,125304,128190,107712,119408,125244,107616,119352,84032,107568,119324,84e3,107544,83984,108256,119672,125374,85184,108144,119612,85088,108088,119582,85040,108060,85728,108408,119742,85616,108348,85560,108318,85880,108478,85820,85790,107200,119152,125116,107104,119096,125086,83008,107056,119068,82976,107032,82960,82952,83648,107376,119228,83552,107320,119198,83504,107292,83480,83468,83824,107452,83768,107422,83740,83900,106848,118968,125022,82496,106800,118940,82464,106776,118926,82448,106764,82440,106758,82784,106936,119006,82736,106908,82712,106894,82700,82694,106974,82830,82240,106672,118876,82208,106648,118862,82192,106636,82184,106630,82180,82352,82328,82316,82080,118830,106572,106566,82050,117472,124280,127678,103616,117360,124220,103520,117304,124190,75840,103472,75808,104160,117624,124350,76992,104048,117564,76896,103992,76848,76824,77536,104312,117694,77424,104252,77368,77340,77688,104382,77628,77758,121536,126320,128700,121440,126264,128670,111680,121392,126236,111648,121368,126222,111632,121356,103104,117104,124092,112320,103008,117048,124062,112224,121656,126366,93248,74784,102936,117006,93216,112152,93200,75456,103280,117180,93888,75360,103224,117150,93792,112440,121758,93744,75288,93720,75632,103356,94064,75576,103326,94008,112542,93980,75708,94140,75678,94110,121184,126136,128606,111168,121136,126108,111136,121112,126094,111120,121100,111112,111108,102752,116920,123998,111456,102704,116892,91712,74272,121244,116878,91680,74256,102668,91664,111372,102662,74244,74592,102840,116958,92e3,74544,102812,91952,111516,102798,91928,74508,74502,74680,102878,92088,74652,92060,74638,92046,92126,110912,121008,126044,110880,120984,126030,110864,120972,110856,120966,110852,110850,74048,102576,116828,90944,74016,102552,116814,90912,111e3,121038,90896,73992,102534,90888,110982,90884,74160,102620,91056,74136,102606,91032,111054,91020,74118,91014,91100,91086,110752,120920,125998,110736,120908,110728,120902,110724,110722,73888,102488,116782,90528,73872,102476,90512,110796,102470,90504,73860,90500,73858,73944,90584,90572,90566,120876,120870,110658,102444,73800,90312,90308,90306,101056,116080,123580,100960,116024,70720,100912,115996,70688,100888,70672,70664,71360,101232,116156,71264,101176,116126,71216,101148,71192,71180,71536,101308,71480,101278,71452,71612,71582,118112,124600,127838,105024,118064,124572,104992,118040,124558,104976,118028,104968,118022,100704,115896,123486,105312,100656,115868,79424,70176,118172,115854,79392,105240,100620,79376,70152,79368,70496,100792,115934,79712,70448,118238,79664,105372,100750,79640,70412,79628,70584,100830,79800,70556,79772,70542,70622,79838,122176,126640,128860,122144,126616,128846,122128,126604,122120,126598,122116,104768,117936,124508,113472,104736,126684,124494,113440,122264,126670,113424,104712,117894,113416,122246,104706,69952,100528,115804,78656,69920,100504,115790,96064,78624,104856,117966,96032,113560,122318,100486,96016,78600,104838,96008,69890,70064,100572,78768,70040,100558,96176,78744,104910,96152,113614,70022,78726,70108,78812,70094,96220,78798,122016,126552,128814,122e3,126540,121992,126534,121988,121986,104608,117848,124462,113056,104592,126574,113040,122060,117830,113032,104580,113028,104578,113026,69792,100440,115758,78240,69776,100428,95136,78224,104652,100422,95120,113100,69764,95112,78212,69762,78210,69848,100462,78296,69836,95192,78284,69830,95180,78278,69870,95214,121936,126508,121928,126502,121924,121922,104528,117804,112848,104520,117798,112840,121958,112836,104514,112834,69712,100396,78032,69704,100390,94672,78024,104550,94664,112870,69698,94660,78018,94658,78060,94700,94694,126486,121890,117782,104484,104482,69672,77928,94440,69666,77922,99680,68160,99632,68128,99608,115342,68112,99596,68104,99590,68448,99768,115422,68400,99740,68376,99726,68364,68358,68536,99806,68508,68494,68574,101696,116400,123740,101664,116376,101648,116364,101640,116358,101636,67904,99504,115292,72512,67872,116444,115278,72480,101784,116430,72464,67848,99462,72456,101766,67842,68016,99548,72624,67992,99534,72600,101838,72588,67974,68060,72668,68046,72654,118432,124760,127918,118416,124748,118408,124742,118404,118402,101536,116312,105888,101520,116300,105872,118476,116294,105864,101508,105860,101506,105858,67744,99416,72096,67728,116334,80800,72080,101580,99398,80784,105932,67716,80776,72068,67714,72066,67800,99438,72152,67788,80856,72140,67782,80844,72134,67822,72174,80878,126800,128940,126792,128934,126788,126786,118352,124716,122576,126828,124710,122568,126822,122564,118338,122562,101456,116268,105680,101448,116262,114128,105672,118374,114120,122598,101442,114116,105666,114114,67664,99372,71888,67656,99366,80336,71880,101478,97232,80328,105702,67650,97224,114150,71874,97220,67692,71916,67686,80364,71910,97260,80358,97254,126760,128918,126756,126754,118312,124694,122472,126774,122468,118306,122466,101416,116246,105576,101412,113896,105572,101410,113892,105570,113890,67624,99350,71784,101430,80104,71780,67618,96744,80100,71778,96740,80098,96738,71798,96758,126738,122420,122418,105524,113780,113778,71732,79988,96500,96498,66880,66848,98968,66832,66824,66820,66992,66968,66956,66950,67036,67022,1e5,99984,115532,99976,115526,99972,99970,66720,98904,69024,100056,98892,69008,100044,69e3,100038,68996,66690,68994,66776,98926,69080,100078,69068,66758,69062,66798,69102,116560,116552,116548,116546,99920,102096,116588,115494,102088,116582,102084,99906,102082,66640,68816,66632,98854,73168,68808,66628,73160,68804,66626,73156,68802,66668,68844,66662,73196,68838,73190,124840,124836,124834,116520,118632,124854,118628,116514,118626,99880,115478,101992,116534,106216,101988,99874,106212,101986,106210,66600,98838,68712,99894,72936,68708,66594,81384,72932,68706,81380,72930,66614,68726,72950,81398,128980,128978,124820,126900,124818,126898,116500,118580,116498,122740,118578,122738,99860,101940,99858,106100,101938,114420]),$a([128352,129720,125504,128304,129692,125472,128280,129678,125456,128268,125448,128262,125444,125792,128440,129758,120384,125744,128412,120352,125720,128398,120336,125708,120328,125702,120324,120672,125880,128478,110144,120624,125852,110112,120600,125838,110096,120588,110088,120582,110084,110432,120760,125918,89664,110384,120732,89632,110360,120718,89616,110348,89608,110342,89952,110520,120798,89904,110492,89880,110478,89868,90040,110558,90012,89998,125248,128176,129628,125216,128152,129614,125200,128140,125192,128134,125188,125186,119616,125360,128220,119584,125336,128206,119568,125324,119560,125318,119556,119554,108352,119728,125404,108320,119704,125390,108304,119692,108296,119686,108292,108290,85824,108464,119772,85792,108440,119758,85776,108428,85768,108422,85764,85936,108508,85912,108494,85900,85894,85980,85966,125088,128088,129582,125072,128076,125064,128070,125060,125058,119200,125144,128110,119184,125132,119176,125126,119172,119170,107424,119256,125166,107408,119244,107400,119238,107396,107394,83872,107480,119278,83856,107468,83848,107462,83844,83842,83928,107502,83916,83910,83950,125008,128044,125e3,128038,124996,124994,118992,125036,118984,125030,118980,118978,106960,119020,106952,119014,106948,106946,82896,106988,82888,106982,82884,82882,82924,82918,124968,128022,124964,124962,118888,124982,118884,118882,106728,118902,106724,106722,82408,106742,82404,82402,124948,124946,118836,118834,106612,106610,124224,127664,129372,124192,127640,129358,124176,127628,124168,127622,124164,124162,117568,124336,127708,117536,124312,127694,117520,124300,117512,124294,117508,117506,104256,117680,124380,104224,117656,124366,104208,117644,104200,117638,104196,104194,77632,104368,117724,77600,104344,117710,77584,104332,77576,104326,77572,77744,104412,77720,104398,77708,77702,77788,77774,128672,129880,93168,128656,129868,92664,128648,129862,92412,128644,128642,124064,127576,129326,126368,124048,129902,126352,128716,127558,126344,124036,126340,124034,126338,117152,124120,127598,121760,117136,124108,121744,126412,124102,121736,117124,121732,117122,121730,103328,117208,124142,112544,103312,117196,112528,121804,117190,112520,103300,112516,103298,112514,75680,103384,117230,94112,75664,103372,94096,112588,103366,94088,75652,94084,75650,75736,103406,94168,75724,94156,75718,94150,75758,128592,129836,91640,128584,129830,91388,128580,91262,128578,123984,127532,126160,123976,127526,126152,128614,126148,123970,126146,116944,124012,121296,116936,124006,121288,126182,121284,116930,121282,102864,116972,111568,102856,116966,111560,121318,111556,102850,111554,74704,102892,92112,74696,102886,92104,111590,92100,74690,92098,74732,92140,74726,92134,128552,129814,90876,128548,90750,128546,123944,127510,126056,128566,126052,123938,126050,116840,123958,121064,116836,121060,116834,121058,102632,116854,111080,121078,111076,102626,111074,74216,102646,91112,74212,91108,74210,91106,74230,91126,128532,90494,128530,123924,126004,123922,126002,116788,120948,116786,120946,102516,110836,102514,110834,73972,90612,73970,90610,128522,123914,125978,116762,120890,102458,110714,123552,127320,129198,123536,127308,123528,127302,123524,123522,116128,123608,127342,116112,123596,116104,123590,116100,116098,101280,116184,123630,101264,116172,101256,116166,101252,101250,71584,101336,116206,71568,101324,71560,101318,71556,71554,71640,101358,71628,71622,71662,127824,129452,79352,127816,129446,79100,127812,78974,127810,123472,127276,124624,123464,127270,124616,127846,124612,123458,124610,115920,123500,118224,115912,123494,118216,124646,118212,115906,118210,100816,115948,105424,100808,115942,105416,118246,105412,100802,105410,70608,100844,79824,70600,100838,79816,105446,79812,70594,79810,70636,79852,70630,79846,129960,95728,113404,129956,95480,113278,129954,95356,95294,127784,129430,78588,128872,129974,95996,78462,128868,127778,95870,128866,123432,127254,124520,123428,126696,128886,123426,126692,124514,126690,115816,123446,117992,115812,122344,117988,115810,122340,117986,122338,100584,115830,104936,100580,113640,104932,100578,113636,104930,113634,70120,100598,78824,70116,96232,78820,70114,96228,78818,96226,70134,78838,129940,94968,113022,129938,94844,94782,127764,78206,128820,127762,95102,128818,123412,124468,123410,126580,124466,126578,115764,117876,115762,122100,117874,122098,100468,104692,100466,113140,104690,113138,69876,78324,69874,95220,78322,95218,129930,94588,94526,127754,128794,123402,124442,126522,115738,117818,121978,100410,104570,112890,69754,78074,94714,94398,123216,127148,123208,127142,123204,123202,115408,123244,115400,123238,115396,115394,99792,115436,99784,115430,99780,99778,68560,99820,68552,99814,68548,68546,68588,68582,127400,129238,72444,127396,72318,127394,123176,127126,123752,123172,123748,123170,123746,115304,123190,116456,115300,116452,115298,116450,99560,115318,101864,99556,101860,99554,101858,68072,99574,72680,68068,72676,68066,72674,68086,72694,129492,80632,105854,129490,80508,80446,127380,72062,127924,127378,80766,127922,123156,123700,123154,124788,123698,124786,115252,116340,115250,118516,116338,118514,99444,101620,99442,105972,101618,105970,67828,72180,67826,80884,72178,80882,97008,114044,96888,113982,96828,96798,129482,80252,130010,97148,80190,97086,127370,127898,128954,123146,123674,124730,126842,115226,116282,118394,122618,99386,101498,105722,114170,67706,71930,80378,96632,113854,96572,96542,80062,96702,96444,96414,96350,123048,123044,123042,115048,123062,115044,115042,99048,115062,99044,99042,67048,99062,67044,67042,67062,127188,68990,127186,123028,123316,123026,123314,114996,115572,114994,115570,98932,100084,98930,100082,66804,69108,66802,69106,129258,73084,73022,127178,127450,123018,123290,123834,114970,115514,116602,98874,99962,102138,66682,68858,73210,81272,106174,81212,81182,72894,81342,97648,114364,97592,114334,97564,97550,81084,97724,81054,97694,97464,114270,97436,97422,80990,97502,97372,97358,97326,114868,114866,98676,98674,66292,66290,123098,114842,115130,98618,99194,66170,67322,69310,73404,73374,81592,106334,81564,81550,73310,81630,97968,114524,97944,114510,97932,97926,81500,98012,81486,97998,97880,114478,97868,97862,81454,97902,97836,97830,69470,73564,73550,81752,106414,81740,81734,73518,81774,81708,81702]),$a([109536,120312,86976,109040,120060,86496,108792,119934,86256,108668,86136,129744,89056,110072,129736,88560,109820,129732,88312,109694,129730,88188,128464,129772,89592,128456,129766,89340,128452,89214,128450,125904,128492,125896,128486,125892,125890,120784,125932,120776,125926,120772,120770,110544,120812,110536,120806,110532,84928,108016,119548,84448,107768,119422,84208,107644,84088,107582,84028,129640,85488,108284,129636,85240,108158,129634,85116,85054,128232,129654,85756,128228,85630,128226,125416,128246,125412,125410,119784,125430,119780,119778,108520,119798,108516,108514,83424,107256,119166,83184,107132,83064,107070,83004,82974,129588,83704,107390,129586,83580,83518,128116,83838,128114,125172,125170,119284,119282,107508,107506,82672,106876,82552,106814,82492,82462,129562,82812,82750,128058,125050,119034,82296,106686,82236,82206,82366,82108,82078,76736,103920,117500,76256,103672,117374,76016,103548,75896,103486,75836,129384,77296,104188,129380,77048,104062,129378,76924,76862,127720,129398,77564,127716,77438,127714,124392,127734,124388,124386,117736,124406,117732,117730,104424,117750,104420,104418,112096,121592,126334,92608,111856,121468,92384,111736,121406,92272,111676,92216,111646,92188,75232,103160,117118,93664,74992,103036,93424,112252,102974,93304,74812,93244,74782,93214,129332,75512,103294,129908,129330,93944,75388,129906,93820,75326,93758,127604,75646,128756,127602,94078,128754,124148,126452,124146,126450,117236,121844,117234,121842,103412,103410,91584,111344,121212,91360,111224,121150,91248,111164,91192,111134,91164,91150,74480,102780,91888,74360,102718,91768,111422,91708,74270,91678,129306,74620,129850,92028,74558,91966,127546,128634,124026,126202,116986,121338,102906,90848,110968,121022,90736,110908,90680,110878,90652,90638,74104,102590,91e3,74044,90940,74014,90910,74174,91070,90480,110780,90424,110750,90396,90382,73916,90556,73886,90526,90296,110686,90268,90254,73822,90334,90204,90190,71136,101112,116094,70896,100988,70776,100926,70716,70686,129204,71416,101246,129202,71292,71230,127348,71550,127346,123636,123634,116212,116210,101364,101362,79296,105200,118140,79072,105080,118078,78960,105020,78904,104990,78876,78862,70384,100732,79600,70264,100670,79480,105278,79420,70174,79390,129178,70524,129466,79740,70462,79678,127290,127866,123514,124666,115962,118266,100858,113376,122232,126654,95424,113264,122172,95328,113208,122142,95280,113180,95256,113166,95244,78560,104824,117950,95968,78448,104764,95856,113468,104734,95800,78364,95772,78350,95758,70008,100542,78712,69948,96120,78652,69918,96060,78622,96030,70078,78782,96190,94912,113008,122044,94816,112952,122014,94768,112924,94744,112910,94732,94726,78192,104636,95088,78136,104606,95032,113054,95004,78094,94990,69820,78268,69790,95164,78238,95134,94560,112824,121950,94512,112796,94488,112782,94476,94470,78008,104542,94648,77980,94620,77966,94606,69726,78046,94686,94384,112732,94360,112718,94348,94342,77916,94428,77902,94414,94296,112686,94284,94278,77870,94318,94252,94246,68336,99708,68216,99646,68156,68126,68476,68414,127162,123258,115450,99834,72416,101752,116414,72304,101692,72248,101662,72220,72206,67960,99518,72568,67900,72508,67870,72478,68030,72638,80576,105840,118460,80480,105784,118430,80432,105756,80408,105742,80396,80390,72048,101564,80752,71992,101534,80696,71964,80668,71950,80654,67772,72124,67742,80828,72094,80798,114016,122552,126814,96832,113968,122524,96800,113944,122510,96784,113932,96776,113926,96772,80224,105656,118366,97120,80176,105628,97072,114076,105614,97048,80140,97036,80134,97030,71864,101470,80312,71836,97208,80284,71822,97180,80270,97166,67678,71902,80350,97246,96576,113840,122460,96544,113816,122446,96528,113804,96520,113798,96516,96514,80048,105564,96688,80024,105550,96664,113870,96652,80006,96646,71772,80092,71758,96732,80078,96718,96416,113752,122414,96400,113740,96392,113734,96388,96386,79960,105518,96472,79948,96460,79942,96454,71726,79982,96494,96336,113708,96328,113702,96324,96322,79916,96364,79910,96358,96296,113686,96292,96290,79894,96310,66936,99006,66876,66846,67006,68976,100028,68920,99998,68892,68878,66748,69052,66718,69022,73056,102072,116574,73008,102044,72984,102030,72972,72966,68792,99934,73144,68764,73116,68750,73102,66654,68830,73182,81216,106160,118620,81184,106136,118606,81168,106124,81160,106118,81156,81154,72880,101980,81328,72856,101966,81304,106190,81292,72838,81286,68700,72924,68686,81372,72910,81358,114336,122712,126894,114320,122700,114312,122694,114308,114306,81056,106072,118574,97696,81040,106060,97680,114380,106054,97672,81028,97668,81026,97666,72792,101934,81112,72780,97752,81100,72774,97740,81094,97734,68654,72814,81134,97774,114256,122668,114248,122662,114244,114242,80976,106028,97488,80968,106022,97480,114278,97476,80962,97474,72748,81004,72742,97516,80998,97510,114216,122646,114212,114210,80936,106006,97384,80932,97380,80930,97378,72726,80950,97398,114196,114194,80916,97332,80914,97330,66236,66206,67256,99166,67228,67214,66142,67294,69296,100188,69272,100174,69260,69254,67164,69340,67150,69326,73376,102232,116654,73360,102220,73352,102214,73348,73346,69208,100142,73432,102254,73420,69190,73414,67118,69230,73454,106320,118700,106312,118694,106308,106306,73296,102188,81616,106348,102182,81608,73284,81604,73282,81602,69164,73324,69158,81644,73318,81638,122792,126934,122788,122786,106280,118678,114536,106276,114532,106274,114530,73256,102166,81512,73252,98024,81508,73250,98020,81506,98018,69142,73270,81526,98038,122772,122770,106260,114484,106258,114482,73236,81460,73234,97908,81458,97906,122762,106250,114458,73226,81434,97850,66396,66382,67416,99246,67404,67398,66350,67438,69456,100268,69448,100262,69444,69442,67372,69484,67366,69478,102312,116694,102308,102306,69416,100246,73576,102326,73572,69410,73570,67350,69430,73590,118740,118738,102292,106420,102290,106418,69396,73524,69394,81780,73522,81778,118730,102282,106394,69386,73498,81722,66476,66470,67496,99286,67492,67490,66454,67510,100308,100306,67476,69556,67474,69554,116714])]);$1.cwtobits=function(){var _FD=$g($1.clusters,$k[--$j]);$1.v=$g(_FD,$k[--$j]);$k[$j++]=Infinity;for(var _FG=0,_FH=17;_FG<_FH;_FG++){$k[$j++]=0}var _FK=$R($s(17),$1.v,2);for(var _FL=0,_FM=_FK.length;_FL<_FM;_FL++){$k[$j++]=$g(_FK,_FL)-48}var _FO=$a();$k[$j++]=$G(_FO,_FO.length-17,17)};if($1.compact){$1.rwid=$f($f($f(17*$1.c+17)+17)+1)}else{$1.rwid=$f($f($f($f(17*$1.c+17)+17)+17)+18)}$1.pixs=$a($1.rwid*$1.r);for(var _FY=0,_FX=$1.r-1;_FY<=_FX;_FY+=1){$1.i=_FY;if($1.i%3==0){$1.lcw=~~($1.i/3)*30+~~(($1.r-1)/3);$1.rcw=$f($f(~~($1.i/3)*30+$1.c)-1)}if($1.i%3==1){$1.lcw=~~($1.i/3)*30+$1.eclevel*3+($1.r-1)%3;$1.rcw=~~($1.i/3)*30+~~(($1.r-1)/3)}if($1.i%3==2){$1.lcw=$f($f(~~($1.i/3)*30+$1.c)-1);$1.rcw=~~($1.i/3)*30+$1.eclevel*3+($1.r-1)%3}$k[$j++]=$1.pixs;$k[$j++]=$1.rwid*$1.i;$k[$j++]=Infinity;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=$1.lcw;$k[$j++]=$1.i%3;$1.cwtobits();$F($k[--$j]);var _G0=$G($1.cws,$1.c*$1.i,$1.c);for(var _G1=0,_G2=_G0.length;_G1<_G2;_G1++){$k[$j++]=$g(_G0,_G1);$k[$j++]=$1.i%3;$1.cwtobits();$F($k[--$j])}if($1.compact){$k[$j++]=1}else{$k[$j++]=$1.rcw;$k[$j++]=$1.i%3;$1.cwtobits();$F($k[--$j]);$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=0;$k[$j++]=1}var _GA=$a();var _GB=$k[--$j];$P($k[--$j],_GB,_GA)}var _GK=new Map([["ren",$0.renmatrix],["pixs",$1.pixs],["pixx",$1.rwid],["pixy",$1.r],["height",$1.r/72*$1.rowmult],["width",$1.rwid/72],["opt",$1.options]]);$k[$j++]=_GK;if(!$1.dontdraw){$0.renmatrix()}};$0.pdf417compact=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$p($1.options,"dontdraw",true);$p($1.options,"compact",true);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.pdf417();var _9=$k[--$j];$1[$k[--$j]]=_9;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.micropdf417=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.version="unset";$1.columns=0;$1.rows=0;$1.rowmult=2;$1.encoding="auto";$1.cca=false;$1.ccb=false;$1.raw=false;$1.parse=false;$1.parsefnc=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});if($ne($1.version,"unset")){$x($1.version,"x");$j--;$1.columns=$k[--$j];$j--;$1.rows=$k[--$j]}$1.columns=~~$z($1.columns);$1.rows=~~$z($1.rows);$1.rowmult=+$1.rowmult;if($1.raw){$1.encoding="raw"}if($1.cca){$1.encoding="cca"}if($eq($1.encoding,"raw")||$eq($1.encoding,"cca")){$1.datcws=$a($1.barcode.length);$1.i=0;$1.j=0;for(;;){if($1.i==$1.barcode.length){break}$1.cw=~~$z($G($1.barcode,$1.i+1,3));$p($1.datcws,$1.j,$1.cw);$1.i=$1.i+4;$1.j=$1.j+1}$1.datcws=$G($1.datcws,0,$1.j)}if($1.ccb){$1.encoding="ccb"}$1.encb=function(){$1.in=$k[--$j];$1.inlen=$1.in.length;$1.out=$a(~~($1.inlen/6)*5+$1.inlen%6);for(var _d=0,_c=~~($1.inlen/6)-1;_d<=_c;_d+=1){$1.k=_d;$k[$j++]=Infinity;$q($G($1.in,$1.k*6,3));$1.msbs=$a();$k[$j++]=Infinity;$q($1.msbs);var _j=$k[--$j];var _k=$k[--$j];var _l=$k[--$j];$k[$j++]=$f($f(_j+_k*256)+_l*65536);for(var _m=0,_n=3;_m<_n;_m++){var _o=$k[--$j];$k[$j++]=_o%900;$k[$j++]=~~(_o/900)}$1.mscs=$a();$k[$j++]=Infinity;$q($G($1.in,$1.k*6+3,3));$1.lsbs=$a();$k[$j++]=Infinity;$q($1.lsbs);var _v=$k[--$j];var _w=$k[--$j];var _x=$k[--$j];$k[$j++]=$f($f(_v+_w*256)+_x*65536);for(var _y=0,_z=3;_y<_z;_y++){var _10=$k[--$j];$k[$j++]=_10%900;$k[$j++]=~~(_10/900)}$1.lscs=$a();var _13=$g($1.lscs,0);var _15=$g($1.mscs,0);$p($1.out,$1.k*5+4,$f(_13+_15*316)%900);var _19=$g($1.lscs,1);var _1B=$g($1.mscs,0);var _1D=$g($1.mscs,1);$p($1.out,$1.k*5+3,$f($f($f(~~($f(_13+_15*316)/900)+_19)+_1B*641)+_1D*316)%900);var _1H=$g($1.lscs,2);var _1J=$g($1.mscs,0);var _1L=$g($1.mscs,1);var _1N=$g($1.mscs,2);$p($1.out,$1.k*5+2,$f($f($f($f(~~($f($f($f(~~($f(_13+_15*316)/900)+_19)+_1B*641)+_1D*316)/900)+_1H)+_1J*20)+_1L*641)+_1N*316)%900);var _1R=$g($1.lscs,3);var _1T=$g($1.mscs,1);var _1V=$g($1.mscs,2);$p($1.out,$1.k*5+1,$f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_13+_15*316)/900)+_19)+_1B*641)+_1D*316)/900)+_1H)+_1J*20)+_1L*641)+_1N*316)/900)+_1R)+_1T*20)+_1V*641)%900);$p($1.out,$1.k*5,$f(~~($f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_13+_15*316)/900)+_19)+_1B*641)+_1D*316)/900)+_1H)+_1J*20)+_1L*641)+_1N*316)/900)+_1R)+_1T*20)+_1V*641)/900)+$g($1.mscs,2)*20)%900)}$1.rem=$1.inlen%6;if($1.rem!=0){$k[$j++]=$1.out;$k[$j++]=$1.out.length-$1.rem;$k[$j++]=Infinity;$q($G($1.in,$1.inlen-$1.rem,$1.rem));var _1m=$a();var _1n=$k[--$j];$P($k[--$j],_1n,_1m)}$k[$j++]=$1.out};if($eq($1.encoding,"byte")||$eq($1.encoding,"ccb")){$1.barlen=$1.barcode.length;$1.datcws=$a(~~($1.barlen/6)*5+$1.barlen%6+1);var _1y=$1.barlen%6==0?924:901;$p($1.datcws,0,_1y);$k[$j++]=$1.datcws;$k[$j++]=1;$k[$j++]=Infinity;$F($1.barcode);var _21=$a();$k[$j++]=_21;$1.encb();var _22=$k[--$j];var _23=$k[--$j];$P($k[--$j],_23,_22);if($eq($1.encoding,"ccb")){$k[$j++]=Infinity;$k[$j++]=920;$q($1.datcws);$1.datcws=$a()}}if($eq($1.encoding,"auto")){var _2B=new Map([["parse",$1.parse],["parsefnc",$1.parsefnc],["eci",true]]);$1.fncvals=_2B;$k[$j++]="msg";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _2E=$k[--$j];$1[$k[--$j]]=_2E;$1.msglen=$1.msg.length;$1.T=0;$1.N=1;$1.B=2;$1.A=0;$1.L=1;$1.M=2;$1.P=3;$1.tl=-1;$1.nl=-2;$1.bl=-3;$1.bl6=-4;$1.bs=-5;$1.al=-6;$1.ll=-7;$1.ml=-8;$1.pl=-9;$1.as=-10;$1.ps=-11;$1.charmaps=$a([$a(["A","a","0",";"]),$a(["B","b","1","<"]),$a(["C","c","2",">"]),$a(["D","d","3","@"]),$a(["E","e","4","["]),$a(["F","f","5",92]),$a(["G","g","6","]"]),$a(["H","h","7","_"]),$a(["I","i","8","`"]),$a(["J","j","9","~"]),$a(["K","k","&","!"]),$a(["L","l",13,13]),$a(["M","m",9,9]),$a(["N","n",",",","]),$a(["O","o",":",":"]),$a(["P","p","#",10]),$a(["Q","q","-","-"]),$a(["R","r",".","."]),$a(["S","s","$","$"]),$a(["T","t","/","/"]),$a(["U","u","+",'"']),$a(["V","v","%","|"]),$a(["W","w","*","*"]),$a(["X","x","=",40]),$a(["Y","y","^",41]),$a(["Z","z",$1.pl,"?"]),$a([" "," "," ","{"]),$a([$1.ll,$1.as,$1.ll,"}"]),$a([$1.ml,$1.ml,$1.al,"'"]),$a([$1.ps,$1.ps,$1.ps,$1.al])]);$1.charvals=$a([new Map,new Map,new Map,new Map]);$1.alltext=new Map;for(var _30=0,_2z=$1.charmaps.length-1;_30<=_2z;_30+=1){$1.i=_30;$1.encs=$g($1.charmaps,$1.i);for(var _34=0;_34<=3;_34+=1){$1.j=_34;var _37=$g($1.encs,$1.j);$k[$j++]=_37;if($eq($t(_37),"stringtype")){var _3A=$g($k[--$j],0);$k[$j++]=_3A}var _3B=$k[--$j];$p($g($1.charvals,$1.j),_3B,$1.i);$p($1.alltext,_3B,-1)}}$1.e=1e4;$1.latlen=$a([$a([0,1,1,2]),$a([2,0,1,2]),$a([1,1,0,1]),$a([1,2,2,0])]);$1.latseq=$a([$a([$a([]),$a([$1.ll]),$a([$1.ml]),$a([$1.ml,$1.pl])]),$a([$a([$1.ml,$1.al]),$a([]),$a([$1.ml]),$a([$1.ml,$1.pl])]),$a([$a([$1.al]),$a([$1.ll]),$a([]),$a([$1.pl])]),$a([$a([$1.al]),$a([$1.al,$1.ll]),$a([$1.al,$1.ml]),$a([])])]);$1.shftlen=$a([$a([$1.e,$1.e,$1.e,1]),$a([1,$1.e,$1.e,1]),$a([$1.e,$1.e,$1.e,1]),$a([$1.e,$1.e,$1.e,$1.e])]);$k[$j++]=Infinity;for(var _4G=0,_4H=$1.msglen;_4G<_4H;_4G++){$k[$j++]=0}$k[$j++]=0;$1.numdigits=$a();$k[$j++]=Infinity;for(var _4K=0,_4L=$1.msglen;_4K<_4L;_4K++){$k[$j++]=0}$k[$j++]=0;$1.numtext=$a();$k[$j++]=Infinity;for(var _4O=0,_4P=$1.msglen;_4O<_4P;_4O++){$k[$j++]=0}$k[$j++]=0;$1.numbytes=$a();$k[$j++]=Infinity;for(var _4S=0,_4T=$1.msglen;_4S<_4T;_4S++){$k[$j++]=0}$1.iseci=$a();for(var _4W=$1.msglen-1;_4W>=0;_4W-=1){$1.i=_4W;var _4Z=$g($1.msg,$1.i);if(_4Z>=48&&_4Z<=57){$p($1.numdigits,$1.i,$f($g($1.numdigits,$1.i+1)+1))}var _4j=$g($1.alltext,$g($1.msg,$1.i))!==undefined;if(_4j&&$g($1.numdigits,$1.i)<13){$p($1.numtext,$1.i,$f($g($1.numtext,$1.i+1)+1))}if($g($1.msg,$1.i)>=0&&$g($1.numtext,$1.i)<5&&$g($1.numdigits,$1.i)<13){$p($1.numbytes,$1.i,$f($g($1.numbytes,$1.i+1)+1))}$p($1.iseci,$1.i,$g($1.msg,$1.i)<=-1e6)}$1.numdigits=$G($1.numdigits,0,$1.msglen);$1.numtext=$G($1.numtext,0,$1.msglen);$1.numbytes=$G($1.numbytes,0,$1.msglen);$1.seq=$a([]);$1.seqlen=0;$1.state=$1.B;$1.p=0;for(;;){if($1.p==$1.msglen){break}if($g($1.iseci,$1.p)){$1.eci=$g($1.msg,$1.p);$k[$j++]=Infinity;$q($1.seq);$k[$j++]=$a([$1.eci]);$1.seq=$a();$1.p=$1.p+1;$k[$j++]="seqlen";$k[$j++]=$1.seqlen;if($1.eci<=-1810900){$k[$j++]=2}else{var _5c=$1.eci<=-1000900?3:2;$k[$j++]=_5c}var _5d=$k[--$j];var _5e=$k[--$j];$1[$k[--$j]]=$f(_5e+_5d)}else{$1.n=$g($1.numdigits,$1.p);if($1.n>=13){$k[$j++]=Infinity;$q($1.seq);$k[$j++]=$1.nl;$k[$j++]=Infinity;$q($G($1.msg,$1.p,$1.n));var _5q=$a();$k[$j++]=_5q;$1.seq=$a();$1.state=$1.N;$1.p=$f($1.p+$1.n);$1.seqlen=$f($1.seqlen+1+$1.n)}else{$1.t=$g($1.numtext,$1.p);if($1.t>=5){$k[$j++]=Infinity;$q($1.seq);if($1.state!=$1.T){$k[$j++]=$1.tl}$k[$j++]=Infinity;$q($G($1.msg,$1.p,$1.t));var _69=$a();$k[$j++]=_69;$1.seq=$a();$1.state=$1.T;$1.p=$f($1.p+$1.t);$1.seqlen=$f($f($1.seqlen+1)+$1.t)}else{$1.b=$g($1.numbytes,$1.p);if($1.b==1&&$1.state==$1.T){$k[$j++]=Infinity;$q($1.seq);$k[$j++]=$1.bs;$k[$j++]=$a([$g($1.msg,$1.p)]);$1.seq=$a();$1.p=$f($1.p+$1.b);$1.seqlen=$f($1.seqlen+2)}else{$k[$j++]=Infinity;$q($1.seq);var _6Y=$1.b%6!=0?$1.bl:$1.bl6;$k[$j++]=_6Y;$k[$j++]=Infinity;$q($G($1.msg,$1.p,$1.b));var _6d=$a();$k[$j++]=_6d;$1.seq=$a();$1.state=$1.B;$1.p=$f($1.p+$1.b);$1.seqlen=$f($f($1.seqlen+1)+$1.b)}}}}}$k[$j++]=Infinity;$k[$j++]=$1.tl;$k[$j++]=900;$k[$j++]=$1.bl;$k[$j++]=901;$k[$j++]=$1.bl6;$k[$j++]=924;$k[$j++]=$1.nl;$k[$j++]=902;$k[$j++]=$1.bs;$k[$j++]=913;$1.latchcws=$d();$1.enca=function(){var _6u=$g($g($1.charvals,$1.A),$k[--$j]);$k[$j++]=_6u};$1.encl=function(){var _6z=$g($g($1.charvals,$1.L),$k[--$j]);$k[$j++]=_6z};$1.encm=function(){var _74=$g($g($1.charvals,$1.M),$k[--$j]);$k[$j++]=_74};$1.encp=function(){var _79=$g($g($1.charvals,$1.P),$k[--$j]);$k[$j++]=_79};$1.textencfuncs=$a(["enca","encl","encm","encp"]);$1.addtotext=function(){$p($1.text,$1.l,$k[--$j]);$1.l=$1.l+1};$1.enct=function(){$1.in=$k[--$j];$1.curlen=$a([$1.e,$1.e,$1.e,$1.e]);$p($1.curlen,$1.submode,0);$1.curseq=$a([$a([]),$a([]),$a([]),$a([])]);$F($1.in,function(){$1.char=$k[--$j];for(;;){$1.imp=false;var _7Y=$a([$1.A,$1.L,$1.M,$1.P]);for(var _7Z=0,_7a=_7Y.length;_7Z<_7a;_7Z++){$1.x=$g(_7Y,_7Z);var _7g=$a([$1.A,$1.L,$1.M,$1.P]);for(var _7h=0,_7i=_7g.length;_7h<_7i;_7h++){$1.y=$g(_7g,_7h);$1.cost=$f($g($1.curlen,$1.x)+$g($g($1.latlen,$1.x),$1.y));if($1.cost<$g($1.curlen,$1.y)){$p($1.curlen,$1.y,$1.cost);$k[$j++]=$1.curseq;$k[$j++]=$1.y;$k[$j++]=Infinity;$q($g($1.curseq,$1.x));$q($g($g($1.latseq,$1.x),$1.y));var _89=$a();var _8A=$k[--$j];$p($k[--$j],_8A,_89);$1.imp=true}}}if(!$1.imp){break}}$1.nxtlen=$a([$1.e,$1.e,$1.e,$1.e]);$1.nxtseq=$a(4);var _8N=$a([$1.A,$1.L,$1.M,$1.P]);for(var _8O=0,_8P=_8N.length;_8O<_8P;_8O++){$1.x=$g(_8N,_8O);for(;;){var _8V=$g($g($1.charvals,$1.x),$1.char)!==undefined;if(!_8V){break}$1.cost=$f($g($1.curlen,$1.x)+1);if($1.cost<$g($1.nxtlen,$1.x)){$p($1.nxtlen,$1.x,$1.cost);$k[$j++]=$1.nxtseq;$k[$j++]=$1.x;$k[$j++]=Infinity;$q($g($1.curseq,$1.x));$k[$j++]=$1.char;var _8m=$a();var _8n=$k[--$j];$p($k[--$j],_8n,_8m)}var _8t=$a([$1.A,$1.L,$1.M,$1.P]);for(var _8u=0,_8v=_8t.length;_8u<_8v;_8u++){$1.y=$g(_8t,_8u);if($ne($1.x,$1.y)){$1.cost=$f($f($g($1.curlen,$1.y)+$g($g($1.shftlen,$1.y),$1.x))+1);if($1.cost<$g($1.nxtlen,$1.y)){$p($1.nxtlen,$1.y,$1.cost);$k[$j++]=$1.nxtseq;$k[$j++]=$1.y;$k[$j++]=Infinity;$q($g($1.curseq,$1.y));var _9L=$1.x==$1.A?$1.as:$1.ps;$k[$j++]=_9L;$k[$j++]=$1.char;var _9N=$a();var _9O=$k[--$j];$p($k[--$j],_9O,_9N)}}}break}}$1.curlen=$1.nxtlen;$1.curseq=$1.nxtseq});$1.minseq=$1.e;var _9X=$a([$1.A,$1.L,$1.M,$1.P]);for(var _9Y=0,_9Z=_9X.length;_9Y<_9Z;_9Y++){$1.k=$g(_9X,_9Y);if($g($1.curlen,$1.k)<$1.minseq){$1.minseq=$g($1.curlen,$1.k);$1.txtseq=$g($1.curseq,$1.k)}}$1.text=$a($1.minseq);$1.k=0;$1.l=0;for(;;){if($1.k>=$1.txtseq.length){break}$1.char=$g($1.txtseq,$1.k);$k[$j++]=$1.char;if($1[$g($1.textencfuncs,$1.submode)]()===true){break}$1.addtotext();$1.k=$1.k+1;if($1.char==$1.as||$1.char==$1.ps){$k[$j++]=$g($1.txtseq,$1.k);if($1.char==$1.as){$1.enca()}else{$1.encp()}$1.addtotext();$1.k=$1.k+1}if($1.char==$1.al){$1.submode=$1.A}if($1.char==$1.ll){$1.submode=$1.L}if($1.char==$1.ml){$1.submode=$1.M}if($1.char==$1.pl){$1.submode=$1.P}}if($1.text.length%2==1){if($1.submode==$1.P){$k[$j++]="pad";$k[$j++]=$1.al;$1.encp();var _AO=$k[--$j];$1[$k[--$j]]=_AO;$1.submode=$1.A}else{$k[$j++]="pad";$k[$j++]=$1.ps;if($1[$g($1.textencfuncs,$1.submode)]()===true){return true}var _AW=$k[--$j];$1[$k[--$j]]=_AW}$k[$j++]=Infinity;$q($1.text);$k[$j++]=$1.pad;$1.text=$a()}$1.out=$a(~~($1.text.length/2));for(var _Af=0,_Ae=$1.out.length-1;_Af<=_Ae;_Af+=1){$1.k=_Af;$p($1.out,$1.k,$f($g($1.text,$1.k*2)*30+$g($1.text,$1.k*2+1)))}$k[$j++]=$1.out};$1.encn=function(){$1.in=$k[--$j];$1.out=$a([]);for(var _At=0,_As=$1.in.length-1;_At<=_As;_At+=44){$1.k=_At;$k[$j++]=Infinity;var _Ay=$1.in.length-$1.k;$k[$j++]=1;$k[$j++]=$1.in;$k[$j++]=$1.k;$k[$j++]=_Ay;if(_Ay>44){$j--;$k[$j++]=44}var _Az=$k[--$j];var _B0=$k[--$j];var _B2=$G($k[--$j],_B0,_Az);for(var _B3=0,_B4=_B2.length;_B3<_B4;_B3++){$k[$j++]=$f($g(_B2,_B3)-48)}$1.gmod=$a();$1.cwn=$a([]);for(;;){$1.dv=900;$1.gmul=$a([]);$1.val=0;for(;;){if($1.gmod.length==0){break}$1.val=$f($1.val*10+$g($1.gmod,0));$1.gmod=$G($1.gmod,1,$1.gmod.length-1);if($1.val<$1.dv){if($1.gmul.length!=0){$k[$j++]=Infinity;$q($1.gmul);$k[$j++]=0;$1.gmul=$a()}}else{$k[$j++]=Infinity;$q($1.gmul);$k[$j++]=~~($1.val/$1.dv);$1.gmul=$a()}$1.val=$1.val%$1.dv}$1.dv=$1.val;$k[$j++]=Infinity;$k[$j++]=$1.dv;$q($1.cwn);$1.cwn=$a();$1.gmod=$1.gmul;if($1.gmul.length==0){break}}$k[$j++]=Infinity;$q($1.out);$q($1.cwn);$1.out=$a()}$k[$j++]=$1.out};$1.ence=function(){var _Bd=$f(-$g($k[--$j],0)-1e6);$k[$j++]=_Bd;if(_Bd<=899){var _Be=$k[--$j];$k[$j++]=927;$k[$j++]=_Be;$r($a(2))}else{var _Bg=$k[--$j];$k[$j++]=_Bg;if(_Bg<=810899){var _Bh=$k[--$j];$k[$j++]=926;$k[$j++]=~~(_Bh/900)-1;$k[$j++]=_Bh%900;$r($a(3))}else{var _Bj=$k[--$j];$k[$j++]=_Bj;if(_Bj<=811799){var _Bk=$k[--$j];$k[$j++]=925;$k[$j++]=$f(_Bk-810900);$r($a(2))}else{$k[$j++]="bwipp.pdf417badECI";$k[$j++]="PDF417 supports ECIs 000000 to 811799";$0.raiseerror()}}}};$1.encfuncs=$a(["enct","encn","encb"]);$1.addtocws=function(){var _Bn=$k[--$j];$P($1.datcws,$1.j,_Bn);$1.j=_Bn.length+$1.j};$1.datcws=$a($1.seqlen);$1.i=0;$1.j=0;for(;;){if($1.i>=$1.seq.length){break}$1.chars=$g($1.seq,$1.i);if($eq($t($1.chars),"arraytype")){if($g($1.chars,0)<=-1e6){$k[$j++]=$1.chars;$1.ence();$1.addtocws()}else{$k[$j++]=$1.chars;if($1[$g($1.encfuncs,$1.state)]()===true){break}$1.addtocws()}}else{$k[$j++]=$a([$g($1.latchcws,$1.chars)]);$1.addtocws();if($1.chars==$1.tl){$1.state=$1.T;$1.submode=$1.A}if($1.chars==$1.nl){$1.state=$1.N}if($1.chars==$1.bl||$1.chars==$1.bl6){$1.state=$1.B}if($1.chars==$1.bs){$1.i=$1.i+1;$k[$j++]=$g($1.seq,$1.i);$1.encb();$1.addtocws()}}$1.i=$1.i+1}$1.datcws=$G($1.datcws,0,$1.j)}$1.metrics=$a([$a([1,11,7,1,0,9]),$a([1,14,7,8,0,8]),$a([1,17,7,36,0,36]),$a([1,20,8,19,0,19]),$a([1,24,8,9,0,17]),$a([1,28,8,25,0,33]),$a([2,8,8,1,0,1]),$a([2,11,9,1,0,9]),$a([2,14,9,8,0,8]),$a([2,17,10,36,0,36]),$a([2,20,11,19,0,19]),$a([2,23,13,9,0,17]),$a([2,26,15,27,0,35]),$a([3,6,12,1,1,1]),$a([3,8,14,7,7,7]),$a([3,10,16,15,15,15]),$a([3,12,18,25,25,25]),$a([3,15,21,37,37,37]),$a([3,20,26,1,17,33]),$a([3,26,32,1,9,17]),$a([3,32,38,21,29,37]),$a([3,38,44,15,31,47]),$a([3,44,50,1,25,49]),$a([4,4,8,47,19,43]),$a([4,6,12,1,1,1]),$a([4,8,14,7,7,7]),$a([4,10,16,15,15,15]),$a([4,12,18,25,25,25]),$a([4,15,21,37,37,37]),$a([4,20,26,1,17,33]),$a([4,26,32,1,9,17]),$a([4,32,38,21,29,37]),$a([4,38,44,15,31,47]),$a([4,44,50,1,25,49])]);$1.ccametrics=$a([$a([2,5,4,39,0,19]),$a([2,6,4,1,0,33]),$a([2,7,5,32,0,12]),$a([2,8,5,8,0,40]),$a([2,9,6,14,0,46]),$a([2,10,6,43,0,23]),$a([2,12,7,20,0,52]),$a([3,4,4,11,43,23]),$a([3,5,5,1,33,13]),$a([3,6,6,5,37,17]),$a([3,7,7,15,47,27]),$a([3,8,7,21,1,33]),$a([4,3,4,40,20,52]),$a([4,4,5,43,23,3]),$a([4,5,6,46,26,6]),$a([4,6,7,34,14,46]),$a([4,7,8,29,9,41])]);if($1.cca){$1.metrics=$1.ccametrics}$1.urows=$1.rows;$1.ucols=$1.columns;$1.i=0;for(;;){$1.m=$g($1.metrics,$1.i);$1.c=$g($1.m,0);$1.r=$g($1.m,1);$1.k=$g($1.m,2);$1.rapl=$g($1.m,3);$1.rapc=$g($1.m,4);$1.rapr=$g($1.m,5);$1.ncws=$f($1.r*$1.c-$1.k);$1.okay=true;if($1.datcws.length>$1.ncws){$1.okay=false}if($1.urows!=0&&$1.urows!=$1.r){$1.okay=false}if($1.ucols!=0&&$1.ucols!=$1.c){$1.okay=false}if($1.okay){break}$1.i=$1.i+1}$1.m=$1.datcws.length;$1.n=$f($1.c*$1.r-$1.k);$1.cws=$a($f($1.c*$1.r+1));$P($1.cws,0,$1.datcws);$k[$j++]=$1.cws;$k[$j++]=$1.m;$k[$j++]=Infinity;for(var _E8=0,_E9=$f($1.n-$1.m);_E8<_E9;_E8++){$k[$j++]=900}var _EA=$a();var _EB=$k[--$j];$P($k[--$j],_EB,_EA);$k[$j++]=$1.cws;$k[$j++]=$1.n;$k[$j++]=Infinity;for(var _EG=0,_EH=$1.k;_EG<_EH;_EG++){$k[$j++]=0}$k[$j++]=0;var _EI=$a();var _EJ=$k[--$j];$P($k[--$j],_EJ,_EI);$k[$j++]=Infinity;$k[$j++]=1;for(var _EL=0,_EM=928;_EL<_EM;_EL++){var _EN=$k[--$j];$k[$j++]=_EN;$k[$j++]=_EN*3%929}$1.rsalog=$a();$1.rslog=$a(929);for(var _EQ=1;_EQ<=928;_EQ+=1){$p($1.rslog,$g($1.rsalog,_EQ),_EQ)}$1.rsprod=function(){var _EU=$k[--$j];var _EV=$k[--$j];$k[$j++]=_EV;$k[$j++]=_EU;if(_EU!=0&&_EV!=0){var _EY=$g($1.rslog,$k[--$j]);var _Ed=$g($1.rsalog,$f(_EY+$g($1.rslog,$k[--$j]))%928);$k[$j++]=_Ed}else{$j-=2;$k[$j++]=0}};$k[$j++]=Infinity;$k[$j++]=1;for(var _Ef=0,_Eg=$1.k;_Ef<_Eg;_Ef++){$k[$j++]=0}$1.coeffs=$a();for(var _Ek=1,_Ej=$1.k;_Ek<=_Ej;_Ek+=1){$1.i=_Ek;$p($1.coeffs,$1.i,$g($1.coeffs,$1.i-1));for(var _Er=$1.i-1;_Er>=1;_Er-=1){$1.j=_Er;$k[$j++]=$1.coeffs;$k[$j++]=$1.j;$k[$j++]=$g($1.coeffs,$1.j-1);$k[$j++]=$g($1.coeffs,$1.j);$k[$j++]=$g($1.rsalog,$1.i);$1.rsprod();var _F3=$k[--$j];var _F4=$k[--$j];var _F5=$k[--$j];$p($k[--$j],_F5,$f(_F4+_F3)%929)}$k[$j++]=$1.coeffs;$k[$j++]=0;$k[$j++]=$g($1.coeffs,0);$k[$j++]=$g($1.rsalog,$1.i);$1.rsprod();var _FD=$k[--$j];var _FE=$k[--$j];$p($k[--$j],_FE,_FD)}$1.coeffs=$G($1.coeffs,0,$1.coeffs.length-1);for(var _FK=$1.coeffs.length-1;_FK>=0;_FK-=2){var _FL=$1.coeffs;$p(_FL,_FK,$f(929-$g(_FL,_FK)))}for(var _FP=0,_FO=$f($1.n-1);_FP<=_FO;_FP+=1){$1.t=$f($g($1.cws,_FP)+$g($1.cws,$1.n))%929;for(var _FX=0,_FW=$f($1.k-1);_FX<=_FW;_FX+=1){$1.j=_FX;$p($1.cws,$f($1.n+$1.j),$f($g($1.cws,$f($f($1.n+$1.j)+1))+$f(929-$1.t*$g($1.coeffs,$f($f($1.k-$1.j)-1))%929))%929)}}for(var _Fo=$1.n,_Fn=$f($1.n+$1.k);_Fo<=_Fn;_Fo+=1){$p($1.cws,_Fo,$f(929-$g($1.cws,_Fo))%929)}$1.cws=$G($1.cws,0,$1.cws.length-1);$1.clusters=$a([$a([120256,125680,128380,120032,125560,128318,108736,119920,108640,86080,108592,86048,110016,120560,125820,109792,120440,125758,88256,109680,88160,89536,110320,120700,89312,110200,120638,89200,110140,89840,110460,89720,110398,89980,128506,119520,125304,128190,107712,119408,125244,107616,119352,84032,107568,119324,84e3,107544,83984,108256,119672,125374,85184,108144,119612,85088,108088,119582,85040,108060,85728,108408,119742,85616,108348,85560,108318,85880,108478,85820,85790,107200,119152,125116,107104,119096,125086,83008,107056,119068,82976,107032,82960,82952,83648,107376,119228,83552,107320,119198,83504,107292,83480,83468,83824,107452,83768,107422,83740,83900,106848,118968,125022,82496,106800,118940,82464,106776,118926,82448,106764,82440,106758,82784,106936,119006,82736,106908,82712,106894,82700,82694,106974,82830,82240,106672,118876,82208,106648,118862,82192,106636,82184,106630,82180,82352,82328,82316,82080,118830,106572,106566,82050,117472,124280,127678,103616,117360,124220,103520,117304,124190,75840,103472,75808,104160,117624,124350,76992,104048,117564,76896,103992,76848,76824,77536,104312,117694,77424,104252,77368,77340,77688,104382,77628,77758,121536,126320,128700,121440,126264,128670,111680,121392,126236,111648,121368,126222,111632,121356,103104,117104,124092,112320,103008,117048,124062,112224,121656,126366,93248,74784,102936,117006,93216,112152,93200,75456,103280,117180,93888,75360,103224,117150,93792,112440,121758,93744,75288,93720,75632,103356,94064,75576,103326,94008,112542,93980,75708,94140,75678,94110,121184,126136,128606,111168,121136,126108,111136,121112,126094,111120,121100,111112,111108,102752,116920,123998,111456,102704,116892,91712,74272,121244,116878,91680,74256,102668,91664,111372,102662,74244,74592,102840,116958,92e3,74544,102812,91952,111516,102798,91928,74508,74502,74680,102878,92088,74652,92060,74638,92046,92126,110912,121008,126044,110880,120984,126030,110864,120972,110856,120966,110852,110850,74048,102576,116828,90944,74016,102552,116814,90912,111e3,121038,90896,73992,102534,90888,110982,90884,74160,102620,91056,74136,102606,91032,111054,91020,74118,91014,91100,91086,110752,120920,125998,110736,120908,110728,120902,110724,110722,73888,102488,116782,90528,73872,102476,90512,110796,102470,90504,73860,90500,73858,73944,90584,90572,90566,120876,120870,110658,102444,73800,90312,90308,90306,101056,116080,123580,100960,116024,70720,100912,115996,70688,100888,70672,70664,71360,101232,116156,71264,101176,116126,71216,101148,71192,71180,71536,101308,71480,101278,71452,71612,71582,118112,124600,127838,105024,118064,124572,104992,118040,124558,104976,118028,104968,118022,100704,115896,123486,105312,100656,115868,79424,70176,118172,115854,79392,105240,100620,79376,70152,79368,70496,100792,115934,79712,70448,118238,79664,105372,100750,79640,70412,79628,70584,100830,79800,70556,79772,70542,70622,79838,122176,126640,128860,122144,126616,128846,122128,126604,122120,126598,122116,104768,117936,124508,113472,104736,126684,124494,113440,122264,126670,113424,104712,117894,113416,122246,104706,69952,100528,115804,78656,69920,100504,115790,96064,78624,104856,117966,96032,113560,122318,100486,96016,78600,104838,96008,69890,70064,100572,78768,70040,100558,96176,78744,104910,96152,113614,70022,78726,70108,78812,70094,96220,78798,122016,126552,128814,122e3,126540,121992,126534,121988,121986,104608,117848,124462,113056,104592,126574,113040,122060,117830,113032,104580,113028,104578,113026,69792,100440,115758,78240,69776,100428,95136,78224,104652,100422,95120,113100,69764,95112,78212,69762,78210,69848,100462,78296,69836,95192,78284,69830,95180,78278,69870,95214,121936,126508,121928,126502,121924,121922,104528,117804,112848,104520,117798,112840,121958,112836,104514,112834,69712,100396,78032,69704,100390,94672,78024,104550,94664,112870,69698,94660,78018,94658,78060,94700,94694,126486,121890,117782,104484,104482,69672,77928,94440,69666,77922,99680,68160,99632,68128,99608,115342,68112,99596,68104,99590,68448,99768,115422,68400,99740,68376,99726,68364,68358,68536,99806,68508,68494,68574,101696,116400,123740,101664,116376,101648,116364,101640,116358,101636,67904,99504,115292,72512,67872,116444,115278,72480,101784,116430,72464,67848,99462,72456,101766,67842,68016,99548,72624,67992,99534,72600,101838,72588,67974,68060,72668,68046,72654,118432,124760,127918,118416,124748,118408,124742,118404,118402,101536,116312,105888,101520,116300,105872,118476,116294,105864,101508,105860,101506,105858,67744,99416,72096,67728,116334,80800,72080,101580,99398,80784,105932,67716,80776,72068,67714,72066,67800,99438,72152,67788,80856,72140,67782,80844,72134,67822,72174,80878,126800,128940,126792,128934,126788,126786,118352,124716,122576,126828,124710,122568,126822,122564,118338,122562,101456,116268,105680,101448,116262,114128,105672,118374,114120,122598,101442,114116,105666,114114,67664,99372,71888,67656,99366,80336,71880,101478,97232,80328,105702,67650,97224,114150,71874,97220,67692,71916,67686,80364,71910,97260,80358,97254,126760,128918,126756,126754,118312,124694,122472,126774,122468,118306,122466,101416,116246,105576,101412,113896,105572,101410,113892,105570,113890,67624,99350,71784,101430,80104,71780,67618,96744,80100,71778,96740,80098,96738,71798,96758,126738,122420,122418,105524,113780,113778,71732,79988,96500,96498,66880,66848,98968,66832,66824,66820,66992,66968,66956,66950,67036,67022,1e5,99984,115532,99976,115526,99972,99970,66720,98904,69024,100056,98892,69008,100044,69e3,100038,68996,66690,68994,66776,98926,69080,100078,69068,66758,69062,66798,69102,116560,116552,116548,116546,99920,102096,116588,115494,102088,116582,102084,99906,102082,66640,68816,66632,98854,73168,68808,66628,73160,68804,66626,73156,68802,66668,68844,66662,73196,68838,73190,124840,124836,124834,116520,118632,124854,118628,116514,118626,99880,115478,101992,116534,106216,101988,99874,106212,101986,106210,66600,98838,68712,99894,72936,68708,66594,81384,72932,68706,81380,72930,66614,68726,72950,81398,128980,128978,124820,126900,124818,126898,116500,118580,116498,122740,118578,122738,99860,101940,99858,106100,101938,114420]),$a([128352,129720,125504,128304,129692,125472,128280,129678,125456,128268,125448,128262,125444,125792,128440,129758,120384,125744,128412,120352,125720,128398,120336,125708,120328,125702,120324,120672,125880,128478,110144,120624,125852,110112,120600,125838,110096,120588,110088,120582,110084,110432,120760,125918,89664,110384,120732,89632,110360,120718,89616,110348,89608,110342,89952,110520,120798,89904,110492,89880,110478,89868,90040,110558,90012,89998,125248,128176,129628,125216,128152,129614,125200,128140,125192,128134,125188,125186,119616,125360,128220,119584,125336,128206,119568,125324,119560,125318,119556,119554,108352,119728,125404,108320,119704,125390,108304,119692,108296,119686,108292,108290,85824,108464,119772,85792,108440,119758,85776,108428,85768,108422,85764,85936,108508,85912,108494,85900,85894,85980,85966,125088,128088,129582,125072,128076,125064,128070,125060,125058,119200,125144,128110,119184,125132,119176,125126,119172,119170,107424,119256,125166,107408,119244,107400,119238,107396,107394,83872,107480,119278,83856,107468,83848,107462,83844,83842,83928,107502,83916,83910,83950,125008,128044,125e3,128038,124996,124994,118992,125036,118984,125030,118980,118978,106960,119020,106952,119014,106948,106946,82896,106988,82888,106982,82884,82882,82924,82918,124968,128022,124964,124962,118888,124982,118884,118882,106728,118902,106724,106722,82408,106742,82404,82402,124948,124946,118836,118834,106612,106610,124224,127664,129372,124192,127640,129358,124176,127628,124168,127622,124164,124162,117568,124336,127708,117536,124312,127694,117520,124300,117512,124294,117508,117506,104256,117680,124380,104224,117656,124366,104208,117644,104200,117638,104196,104194,77632,104368,117724,77600,104344,117710,77584,104332,77576,104326,77572,77744,104412,77720,104398,77708,77702,77788,77774,128672,129880,93168,128656,129868,92664,128648,129862,92412,128644,128642,124064,127576,129326,126368,124048,129902,126352,128716,127558,126344,124036,126340,124034,126338,117152,124120,127598,121760,117136,124108,121744,126412,124102,121736,117124,121732,117122,121730,103328,117208,124142,112544,103312,117196,112528,121804,117190,112520,103300,112516,103298,112514,75680,103384,117230,94112,75664,103372,94096,112588,103366,94088,75652,94084,75650,75736,103406,94168,75724,94156,75718,94150,75758,128592,129836,91640,128584,129830,91388,128580,91262,128578,123984,127532,126160,123976,127526,126152,128614,126148,123970,126146,116944,124012,121296,116936,124006,121288,126182,121284,116930,121282,102864,116972,111568,102856,116966,111560,121318,111556,102850,111554,74704,102892,92112,74696,102886,92104,111590,92100,74690,92098,74732,92140,74726,92134,128552,129814,90876,128548,90750,128546,123944,127510,126056,128566,126052,123938,126050,116840,123958,121064,116836,121060,116834,121058,102632,116854,111080,121078,111076,102626,111074,74216,102646,91112,74212,91108,74210,91106,74230,91126,128532,90494,128530,123924,126004,123922,126002,116788,120948,116786,120946,102516,110836,102514,110834,73972,90612,73970,90610,128522,123914,125978,116762,120890,102458,110714,123552,127320,129198,123536,127308,123528,127302,123524,123522,116128,123608,127342,116112,123596,116104,123590,116100,116098,101280,116184,123630,101264,116172,101256,116166,101252,101250,71584,101336,116206,71568,101324,71560,101318,71556,71554,71640,101358,71628,71622,71662,127824,129452,79352,127816,129446,79100,127812,78974,127810,123472,127276,124624,123464,127270,124616,127846,124612,123458,124610,115920,123500,118224,115912,123494,118216,124646,118212,115906,118210,100816,115948,105424,100808,115942,105416,118246,105412,100802,105410,70608,100844,79824,70600,100838,79816,105446,79812,70594,79810,70636,79852,70630,79846,129960,95728,113404,129956,95480,113278,129954,95356,95294,127784,129430,78588,128872,129974,95996,78462,128868,127778,95870,128866,123432,127254,124520,123428,126696,128886,123426,126692,124514,126690,115816,123446,117992,115812,122344,117988,115810,122340,117986,122338,100584,115830,104936,100580,113640,104932,100578,113636,104930,113634,70120,100598,78824,70116,96232,78820,70114,96228,78818,96226,70134,78838,129940,94968,113022,129938,94844,94782,127764,78206,128820,127762,95102,128818,123412,124468,123410,126580,124466,126578,115764,117876,115762,122100,117874,122098,100468,104692,100466,113140,104690,113138,69876,78324,69874,95220,78322,95218,129930,94588,94526,127754,128794,123402,124442,126522,115738,117818,121978,100410,104570,112890,69754,78074,94714,94398,123216,127148,123208,127142,123204,123202,115408,123244,115400,123238,115396,115394,99792,115436,99784,115430,99780,99778,68560,99820,68552,99814,68548,68546,68588,68582,127400,129238,72444,127396,72318,127394,123176,127126,123752,123172,123748,123170,123746,115304,123190,116456,115300,116452,115298,116450,99560,115318,101864,99556,101860,99554,101858,68072,99574,72680,68068,72676,68066,72674,68086,72694,129492,80632,105854,129490,80508,80446,127380,72062,127924,127378,80766,127922,123156,123700,123154,124788,123698,124786,115252,116340,115250,118516,116338,118514,99444,101620,99442,105972,101618,105970,67828,72180,67826,80884,72178,80882,97008,114044,96888,113982,96828,96798,129482,80252,130010,97148,80190,97086,127370,127898,128954,123146,123674,124730,126842,115226,116282,118394,122618,99386,101498,105722,114170,67706,71930,80378,96632,113854,96572,96542,80062,96702,96444,96414,96350,123048,123044,123042,115048,123062,115044,115042,99048,115062,99044,99042,67048,99062,67044,67042,67062,127188,68990,127186,123028,123316,123026,123314,114996,115572,114994,115570,98932,100084,98930,100082,66804,69108,66802,69106,129258,73084,73022,127178,127450,123018,123290,123834,114970,115514,116602,98874,99962,102138,66682,68858,73210,81272,106174,81212,81182,72894,81342,97648,114364,97592,114334,97564,97550,81084,97724,81054,97694,97464,114270,97436,97422,80990,97502,97372,97358,97326,114868,114866,98676,98674,66292,66290,123098,114842,115130,98618,99194,66170,67322,69310,73404,73374,81592,106334,81564,81550,73310,81630,97968,114524,97944,114510,97932,97926,81500,98012,81486,97998,97880,114478,97868,97862,81454,97902,97836,97830,69470,73564,73550,81752,106414,81740,81734,73518,81774,81708,81702]),$a([109536,120312,86976,109040,120060,86496,108792,119934,86256,108668,86136,129744,89056,110072,129736,88560,109820,129732,88312,109694,129730,88188,128464,129772,89592,128456,129766,89340,128452,89214,128450,125904,128492,125896,128486,125892,125890,120784,125932,120776,125926,120772,120770,110544,120812,110536,120806,110532,84928,108016,119548,84448,107768,119422,84208,107644,84088,107582,84028,129640,85488,108284,129636,85240,108158,129634,85116,85054,128232,129654,85756,128228,85630,128226,125416,128246,125412,125410,119784,125430,119780,119778,108520,119798,108516,108514,83424,107256,119166,83184,107132,83064,107070,83004,82974,129588,83704,107390,129586,83580,83518,128116,83838,128114,125172,125170,119284,119282,107508,107506,82672,106876,82552,106814,82492,82462,129562,82812,82750,128058,125050,119034,82296,106686,82236,82206,82366,82108,82078,76736,103920,117500,76256,103672,117374,76016,103548,75896,103486,75836,129384,77296,104188,129380,77048,104062,129378,76924,76862,127720,129398,77564,127716,77438,127714,124392,127734,124388,124386,117736,124406,117732,117730,104424,117750,104420,104418,112096,121592,126334,92608,111856,121468,92384,111736,121406,92272,111676,92216,111646,92188,75232,103160,117118,93664,74992,103036,93424,112252,102974,93304,74812,93244,74782,93214,129332,75512,103294,129908,129330,93944,75388,129906,93820,75326,93758,127604,75646,128756,127602,94078,128754,124148,126452,124146,126450,117236,121844,117234,121842,103412,103410,91584,111344,121212,91360,111224,121150,91248,111164,91192,111134,91164,91150,74480,102780,91888,74360,102718,91768,111422,91708,74270,91678,129306,74620,129850,92028,74558,91966,127546,128634,124026,126202,116986,121338,102906,90848,110968,121022,90736,110908,90680,110878,90652,90638,74104,102590,91e3,74044,90940,74014,90910,74174,91070,90480,110780,90424,110750,90396,90382,73916,90556,73886,90526,90296,110686,90268,90254,73822,90334,90204,90190,71136,101112,116094,70896,100988,70776,100926,70716,70686,129204,71416,101246,129202,71292,71230,127348,71550,127346,123636,123634,116212,116210,101364,101362,79296,105200,118140,79072,105080,118078,78960,105020,78904,104990,78876,78862,70384,100732,79600,70264,100670,79480,105278,79420,70174,79390,129178,70524,129466,79740,70462,79678,127290,127866,123514,124666,115962,118266,100858,113376,122232,126654,95424,113264,122172,95328,113208,122142,95280,113180,95256,113166,95244,78560,104824,117950,95968,78448,104764,95856,113468,104734,95800,78364,95772,78350,95758,70008,100542,78712,69948,96120,78652,69918,96060,78622,96030,70078,78782,96190,94912,113008,122044,94816,112952,122014,94768,112924,94744,112910,94732,94726,78192,104636,95088,78136,104606,95032,113054,95004,78094,94990,69820,78268,69790,95164,78238,95134,94560,112824,121950,94512,112796,94488,112782,94476,94470,78008,104542,94648,77980,94620,77966,94606,69726,78046,94686,94384,112732,94360,112718,94348,94342,77916,94428,77902,94414,94296,112686,94284,94278,77870,94318,94252,94246,68336,99708,68216,99646,68156,68126,68476,68414,127162,123258,115450,99834,72416,101752,116414,72304,101692,72248,101662,72220,72206,67960,99518,72568,67900,72508,67870,72478,68030,72638,80576,105840,118460,80480,105784,118430,80432,105756,80408,105742,80396,80390,72048,101564,80752,71992,101534,80696,71964,80668,71950,80654,67772,72124,67742,80828,72094,80798,114016,122552,126814,96832,113968,122524,96800,113944,122510,96784,113932,96776,113926,96772,80224,105656,118366,97120,80176,105628,97072,114076,105614,97048,80140,97036,80134,97030,71864,101470,80312,71836,97208,80284,71822,97180,80270,97166,67678,71902,80350,97246,96576,113840,122460,96544,113816,122446,96528,113804,96520,113798,96516,96514,80048,105564,96688,80024,105550,96664,113870,96652,80006,96646,71772,80092,71758,96732,80078,96718,96416,113752,122414,96400,113740,96392,113734,96388,96386,79960,105518,96472,79948,96460,79942,96454,71726,79982,96494,96336,113708,96328,113702,96324,96322,79916,96364,79910,96358,96296,113686,96292,96290,79894,96310,66936,99006,66876,66846,67006,68976,100028,68920,99998,68892,68878,66748,69052,66718,69022,73056,102072,116574,73008,102044,72984,102030,72972,72966,68792,99934,73144,68764,73116,68750,73102,66654,68830,73182,81216,106160,118620,81184,106136,118606,81168,106124,81160,106118,81156,81154,72880,101980,81328,72856,101966,81304,106190,81292,72838,81286,68700,72924,68686,81372,72910,81358,114336,122712,126894,114320,122700,114312,122694,114308,114306,81056,106072,118574,97696,81040,106060,97680,114380,106054,97672,81028,97668,81026,97666,72792,101934,81112,72780,97752,81100,72774,97740,81094,97734,68654,72814,81134,97774,114256,122668,114248,122662,114244,114242,80976,106028,97488,80968,106022,97480,114278,97476,80962,97474,72748,81004,72742,97516,80998,97510,114216,122646,114212,114210,80936,106006,97384,80932,97380,80930,97378,72726,80950,97398,114196,114194,80916,97332,80914,97330,66236,66206,67256,99166,67228,67214,66142,67294,69296,100188,69272,100174,69260,69254,67164,69340,67150,69326,73376,102232,116654,73360,102220,73352,102214,73348,73346,69208,100142,73432,102254,73420,69190,73414,67118,69230,73454,106320,118700,106312,118694,106308,106306,73296,102188,81616,106348,102182,81608,73284,81604,73282,81602,69164,73324,69158,81644,73318,81638,122792,126934,122788,122786,106280,118678,114536,106276,114532,106274,114530,73256,102166,81512,73252,98024,81508,73250,98020,81506,98018,69142,73270,81526,98038,122772,122770,106260,114484,106258,114482,73236,81460,73234,97908,81458,97906,122762,106250,114458,73226,81434,97850,66396,66382,67416,99246,67404,67398,66350,67438,69456,100268,69448,100262,69444,69442,67372,69484,67366,69478,102312,116694,102308,102306,69416,100246,73576,102326,73572,69410,73570,67350,69430,73590,118740,118738,102292,106420,102290,106418,69396,73524,69394,81780,73522,81778,118730,102282,106394,69386,73498,81722,66476,66470,67496,99286,67492,67490,66454,67510,100308,100306,67476,69556,67474,69554,116714])]);$1.raps=$a([$a([802,930,946,818,882,890,826,954,922,986,970,906,778,794,786,914,978,982,980,916,948,932,934,942,940,936,808,812,814,806,822,950,918,790,788,820,884,868,870,878,876,872,840,856,860,862,846,844,836,838,834,866]),$a([718,590,622,558,550,566,534,530,538,570,562,546,610,626,634,762,754,758,630,628,612,614,582,578,706,738,742,740,748,620,556,552,616,744,712,716,708,710,646,654,652,668,664,696,688,656,720,592,600,604,732,734])]);$1.cwtobits=function(){var _G4=$g($1.clusters,$k[--$j]);$1.v=$g(_G4,$k[--$j]);$k[$j++]=Infinity;for(var _G7=0,_G8=17;_G7<_G8;_G7++){$k[$j++]=0}var _GB=$R($s(17),$1.v,2);for(var _GC=0,_GD=_GB.length;_GC<_GD;_GC++){$k[$j++]=$g(_GB,_GC)-48}var _GF=$a();$k[$j++]=$G(_GF,_GF.length-17,17)};$1.raptobits=function(){var _GJ=$g($1.raps,$k[--$j]);$1.v=$g(_GJ,$k[--$j]);$k[$j++]=Infinity;for(var _GM=0,_GN=10;_GM<_GN;_GM++){$k[$j++]=0}var _GQ=$R($s(10),$1.v,2);for(var _GR=0,_GS=_GQ.length;_GR<_GS;_GR++){$k[$j++]=$g(_GQ,_GR)-48}var _GU=$a();$k[$j++]=$G(_GU,_GU.length-10,10)};$1.rwid=$g($a([38,55,82,99]),$f($1.c-1));if($1.c==3&&$1.cca){$1.rwid=72}$1.pixs=$a($1.rwid*$1.r);for(var _Gg=0,_Gf=$f($1.r-1);_Gg<=_Gf;_Gg+=1){$1.i=_Gg;$1.clst=$f($f($1.i+$1.rapl)-1)%3;$k[$j++]=$1.pixs;$k[$j++]=$1.rwid*$1.i;$k[$j++]=Infinity;if($1.c==1){$k[$j++]=$f($f($1.i+$1.rapl)-1)%52;$k[$j++]=0;$1.raptobits();$q($k[--$j]);$k[$j++]=$g($1.cws,$1.i);$k[$j++]=$1.clst;$1.cwtobits();$q($k[--$j]);$k[$j++]=$f($f($1.i+$1.rapr)-1)%52;$k[$j++]=0;$1.raptobits();$q($k[--$j])}if($1.c==2){$k[$j++]=$f($f($1.i+$1.rapl)-1)%52;$k[$j++]=0;$1.raptobits();$q($k[--$j]);$k[$j++]=$g($1.cws,$1.i*2);$k[$j++]=$1.clst;$1.cwtobits();$q($k[--$j]);$k[$j++]=$g($1.cws,$1.i*2+1);$k[$j++]=$1.clst;$1.cwtobits();$q($k[--$j]);$k[$j++]=$f($f($1.i+$1.rapr)-1)%52;$k[$j++]=0;$1.raptobits();$q($k[--$j])}if($1.c==3){if(!$1.cca){$k[$j++]=$f($f($1.i+$1.rapl)-1)%52;$k[$j++]=0;$1.raptobits();$q($k[--$j])}$k[$j++]=$g($1.cws,$1.i*3);$k[$j++]=$1.clst;$1.cwtobits();$q($k[--$j]);$k[$j++]=$f($f($1.i+$1.rapc)-1)%52;$k[$j++]=1;$1.raptobits();$q($k[--$j]);$k[$j++]=$g($1.cws,$1.i*3+1);$k[$j++]=$1.clst;$1.cwtobits();$q($k[--$j]);$k[$j++]=$g($1.cws,$1.i*3+2);$k[$j++]=$1.clst;$1.cwtobits();$q($k[--$j]);$k[$j++]=$f($f($1.i+$1.rapr)-1)%52;$k[$j++]=0;$1.raptobits();$q($k[--$j])}if($1.c==4){$k[$j++]=$f($f($1.i+$1.rapl)-1)%52;$k[$j++]=0;$1.raptobits();$q($k[--$j]);$k[$j++]=$g($1.cws,$1.i*4);$k[$j++]=$1.clst;$1.cwtobits();$q($k[--$j]);$k[$j++]=$g($1.cws,$1.i*4+1);$k[$j++]=$1.clst;$1.cwtobits();$q($k[--$j]);$k[$j++]=$f($f($1.i+$1.rapc)-1)%52;$k[$j++]=1;$1.raptobits();$q($k[--$j]);$k[$j++]=$g($1.cws,$1.i*4+2);$k[$j++]=$1.clst;$1.cwtobits();$q($k[--$j]);$k[$j++]=$g($1.cws,$1.i*4+3);$k[$j++]=$1.clst;$1.cwtobits();$q($k[--$j]);$k[$j++]=$f($f($1.i+$1.rapr)-1)%52;$k[$j++]=0;$1.raptobits();$q($k[--$j])}$k[$j++]=1;var _I9=$a();var _IA=$k[--$j];$P($k[--$j],_IA,_I9)}var _IJ=new Map([["ren",$0.renmatrix],["pixs",$1.pixs],["pixx",$1.rwid],["pixy",$1.r],["height",$1.r/72*$1.rowmult],["width",$1.rwid/72],["opt",$1.options]]);$k[$j++]=_IJ;if(!$1.dontdraw){$0.renmatrix()}};$0.datamatrix=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.columns=0;$1.rows=0;$1.format="square";$1.version="unset";$1.parse=false;$1.parsefnc=false;$1.encoding="auto";$1.mailmark=false;$1.raw=false;$1.dmre=false;$1.dindmre=false;$1.isodmre=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});if($ne($1.version,"unset")){$x($1.version,"x");$j--;$1.rows=$k[--$j];$j--;$1.columns=$k[--$j]}$1.columns=~~$z($1.columns);$1.rows=~~$z($1.rows);$1.isodmre=$1.dmre;$k[$j++]=Infinity;$k[$j++]=$a([10,10,1,1,5,1]);$k[$j++]=$a([12,12,1,1,7,1]);$k[$j++]=$a([14,14,1,1,10,1]);$k[$j++]=$a([16,16,1,1,12,1]);$k[$j++]=$a([18,18,1,1,14,1]);$k[$j++]=$a([20,20,1,1,18,1]);$k[$j++]=$a([22,22,1,1,20,1]);$k[$j++]=$a([24,24,1,1,24,1]);$k[$j++]=$a([26,26,1,1,28,1]);$k[$j++]=$a([32,32,2,2,36,1]);$k[$j++]=$a([36,36,2,2,42,1]);$k[$j++]=$a([40,40,2,2,48,1]);$k[$j++]=$a([44,44,2,2,56,1]);$k[$j++]=$a([48,48,2,2,68,1]);$k[$j++]=$a([52,52,2,2,84,2]);$k[$j++]=$a([64,64,4,4,112,2]);$k[$j++]=$a([72,72,4,4,144,4]);$k[$j++]=$a([80,80,4,4,192,4]);$k[$j++]=$a([88,88,4,4,224,4]);$k[$j++]=$a([96,96,4,4,272,4]);$k[$j++]=$a([104,104,4,4,336,6]);$k[$j++]=$a([120,120,6,6,408,6]);$k[$j++]=$a([132,132,6,6,496,8]);$k[$j++]=$a([144,144,6,6,620,10]);$k[$j++]=$a([8,18,1,1,7,1]);$k[$j++]=$a([8,32,1,2,11,1]);if($1.dindmre||$1.isodmre){$k[$j++]=$a([8,48,1,2,15,1])}if($1.dindmre||$1.isodmre){$k[$j++]=$a([8,64,1,4,18,1])}if($1.isodmre){$k[$j++]=$a([8,80,1,4,22,1])}if($1.isodmre){$k[$j++]=$a([8,96,1,4,28,1])}if($1.isodmre){$k[$j++]=$a([8,120,1,6,32,1])}if($1.isodmre){$k[$j++]=$a([8,144,1,6,36,1])}$k[$j++]=$a([12,26,1,1,14,1]);$k[$j++]=$a([12,36,1,2,18,1]);if($1.dindmre||$1.isodmre){$k[$j++]=$a([12,64,1,4,27,1])}if($1.isodmre){$k[$j++]=$a([12,88,1,4,36,1])}$k[$j++]=$a([16,36,1,2,24,1]);$k[$j++]=$a([16,48,1,2,28,1]);if($1.dindmre||$1.isodmre){$k[$j++]=$a([16,64,1,4,36,1])}if($1.isodmre){$k[$j++]=$a([20,36,1,2,28,1])}if($1.isodmre){$k[$j++]=$a([20,44,1,2,34,1])}if($1.isodmre){$k[$j++]=$a([20,64,1,4,42,1])}if($1.isodmre){$k[$j++]=$a([22,48,1,2,38,1])}if($1.dindmre){$k[$j++]=$a([24,32,1,2,28,1])}if($1.dindmre){$k[$j++]=$a([24,36,1,2,33,1])}if($1.dindmre||$1.isodmre){$k[$j++]=$a([24,48,1,2,41,1])}if($1.dindmre||$1.isodmre){$k[$j++]=$a([24,64,1,4,46,1])}if($1.dindmre){$k[$j++]=$a([26,32,1,2,32,1])}if($1.dindmre||$1.isodmre){$k[$j++]=$a([26,40,1,2,38,1])}if($1.dindmre||$1.isodmre){$k[$j++]=$a([26,48,1,2,42,1])}if($1.dindmre||$1.isodmre){$k[$j++]=$a([26,64,1,4,50,1])}$1.metrics=$a();$1.urows=$1.rows;$1.ucols=$1.columns;$1.fullcws=$a([]);var _1Z=$1.metrics;for(var _1a=0,_1b=_1Z.length;_1a<_1b;_1a++){$1.m=$g(_1Z,_1a);$1.rows=$g($1.m,0);$1.cols=$g($1.m,1);$1.regh=$g($1.m,2);$1.regv=$g($1.m,3);$1.rscw=$g($1.m,4);$1.rsbl=$g($1.m,5);$1.mrows=$f($1.rows-2*$1.regh);$1.mcols=$f($1.cols-2*$1.regv);$1.ncws=$f(~~($1.mrows*$1.mcols/8)-$1.rscw);$1.okay=true;if($1.urows!=0&&$1.urows!=$1.rows){$1.okay=false}if($1.ucols!=0&&$1.ucols!=$1.cols){$1.okay=false}if($eq($1.format,"square")&&$ne($1.rows,$1.cols)){$1.okay=false}if($eq($1.format,"rectangle")&&$eq($1.rows,$1.cols)){$1.okay=false}if($1.okay){$k[$j++]=Infinity;$q($1.fullcws);$k[$j++]=$1.ncws;$1.fullcws=$a()}}$k[$j++]=Infinity;for(var _2C=0,_2D=1558;_2C<_2D;_2C++){$k[$j++]=1e4}$1.numremcws=$a();var _2F=$1.fullcws;for(var _2G=0,_2H=_2F.length;_2G<_2H;_2G++){$p($1.numremcws,$f($g(_2F,_2G)-1),1)}for(var _2K=1556;_2K>=0;_2K-=1){$1.i=_2K;if($g($1.numremcws,$1.i)!=1){$p($1.numremcws,$1.i,$f($g($1.numremcws,$1.i+1)+1))}}if($1.raw){$1.encoding="raw"}if($eq($1.encoding,"raw")){$1.cws=$a($1.barcode.length);$1.i=0;$1.j=0;for(;;){if($1.i==$1.barcode.length){break}$1.cw=~~$z($G($1.barcode,$1.i+1,3));$p($1.cws,$1.j,$1.cw);$1.i=$1.i+4;$1.j=$1.j+1}$1.cws=$G($1.cws,0,$1.j)}if($eq($1.encoding,"auto")){$1.fnc1=-1;$1.prog=-2;$1.m05=-3;$1.m06=-4;$1.lC=-5;$1.lB=-6;$1.lX=-7;$1.lT=-8;$1.lE=-9;$1.unl=-10;$1.sapp=-11;$1.usft=-12;$1.sft1=-13;$1.sft2=-14;$1.sft3=-15;$1.eci=-16;$1.pad=-17;$1.unlcw=254;var _2p=new Map([["parse",$1.parse],["parsefnc",$1.parsefnc],["eci",true],["FNC1",$1.fnc1],["PROG",$1.prog]]);$1.fncvals=_2p;$k[$j++]="msg";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _2s=$k[--$j];$1[$k[--$j]]=_2s;$1.msglen=$1.msg.length;if($1.msglen>=9){$q($G($1.msg,0,7));var _2y=$k[--$j];var _2z=$k[--$j];$k[$j++]=_2y==29;$k[$j++]=_2z;$j--;var _30=$k[--$j];var _31=$k[--$j];var _32=$k[--$j];var _33=$k[--$j];var _34=$k[--$j];var _35=$k[--$j];if(_30&&_31==48&&_32==30&&_33==62&&_34==41&&_35==91){$q($G($1.msg,$1.msglen-2,2));var _39=$k[--$j];var _3A=$k[--$j];if(_39==4&&_3A==30){if($g($1.msg,5)==53){$k[$j++]=Infinity;$k[$j++]=$1.m05;$q($G($1.msg,7,$1.msg.length-9));$1.msg=$a()}if($g($1.msg,5)==54){$k[$j++]=Infinity;$k[$j++]=$1.m06;$q($G($1.msg,7,$1.msg.length-9));$1.msg=$a()}}}}$1.msglen=$1.msg.length;$k[$j++]=Infinity;for(var _3Q=0;_3Q<=128;_3Q+=1){$k[$j++]=_3Q;$k[$j++]=_3Q+1}$k[$j++]=$1.pad;$k[$j++]=129;for(var _3S=0;_3S<=99;_3S+=1){var _3U=$R($s(2),_3S,10);var _3W=$Z($s(2),"00");$P(_3W,2-_3U.length,_3U);$k[$j++]=_3W;$k[$j++]=_3S+130}var _3j=$a([$1.lC,$1.lB,$1.fnc1,$1.sapp,$1.prog,$1.usft,$1.m05,$1.m06,$1.lX,$1.lT,$1.lE,$1.eci]);$k[$j++]=229;for(var _3k=0,_3l=_3j.length;_3k<_3l;_3k++){var _3o=$f($k[--$j]+1);$k[$j++]=$g(_3j,_3k);$k[$j++]=_3o;$k[$j++]=_3o}$j--;$1.Avals=$d();$k[$j++]=Infinity;var _3q=$1.Avals;for(var _3v=_3q.size,_3u=_3q.keys(),_3t=0;_3t<_3v;_3t++){var _3r=_3u.next().value;$k[$j++]=_3r;$k[$j++]=Infinity;$k[$j++]=_3q.get(_3r);var _3y=$a();$k[$j++]=_3y}$1.Avals=$d();$k[$j++]=Infinity;$k[$j++]=$1.sft1;$k[$j++]=0;$k[$j++]=$1.sft2;$k[$j++]=1;$k[$j++]=$1.sft3;$k[$j++]=2;$k[$j++]=32;$k[$j++]=3;for(var _43=48;_43<=57;_43+=1){$k[$j++]=_43;$k[$j++]=_43-44}for(var _44=65;_44<=90;_44+=1){$k[$j++]=_44;$k[$j++]=_44-51}$1.CNvals=$d();$k[$j++]=Infinity;for(var _46=0;_46<=31;_46+=1){$k[$j++]=_46;$k[$j++]=_46}$1.C1vals=$d();$k[$j++]=Infinity;for(var _48=33;_48<=47;_48+=1){$k[$j++]=_48;$k[$j++]=_48-33}for(var _49=58;_49<=64;_49+=1){$k[$j++]=_49;$k[$j++]=_49-43}for(var _4A=91;_4A<=95;_4A+=1){$k[$j++]=_4A;$k[$j++]=_4A-69}$k[$j++]=$1.fnc1;$k[$j++]=27;$k[$j++]=$1.usft;$k[$j++]=30;$1.C2vals=$d();$k[$j++]=Infinity;for(var _4E=96;_4E<=127;_4E+=1){$k[$j++]=_4E;$k[$j++]=_4E-96}$1.C3vals=$d();$k[$j++]=Infinity;var _4G=$1.CNvals;for(var _4L=_4G.size,_4K=_4G.keys(),_4J=0;_4J<_4L;_4J++){var _4H=_4K.next().value;$k[$j++]=_4H;$k[$j++]=Infinity;$k[$j++]=_4G.get(_4H);var _4O=$a();$k[$j++]=_4O}var _4P=$1.C1vals;for(var _4U=_4P.size,_4T=_4P.keys(),_4S=0;_4S<_4U;_4S++){var _4Q=_4T.next().value;$k[$j++]=_4Q;$k[$j++]=Infinity;$k[$j++]=$g($1.CNvals,$1.sft1);$k[$j++]=_4P.get(_4Q);var _4a=$a();$k[$j++]=_4a}var _4b=$1.C2vals;for(var _4g=_4b.size,_4f=_4b.keys(),_4e=0;_4e<_4g;_4e++){var _4c=_4f.next().value;$k[$j++]=_4c;$k[$j++]=Infinity;$k[$j++]=$g($1.CNvals,$1.sft2);$k[$j++]=_4b.get(_4c);var _4m=$a();$k[$j++]=_4m}var _4n=$1.C3vals;for(var _4s=_4n.size,_4r=_4n.keys(),_4q=0;_4q<_4s;_4q++){var _4o=_4r.next().value;$k[$j++]=_4o;$k[$j++]=Infinity;$k[$j++]=$g($1.CNvals,$1.sft3);$k[$j++]=_4n.get(_4o);var _4y=$a();$k[$j++]=_4y}$1.Cvals=$d();$k[$j++]=Infinity;$k[$j++]=$1.sft1;$k[$j++]=0;$k[$j++]=$1.sft2;$k[$j++]=1;$k[$j++]=$1.sft3;$k[$j++]=2;$k[$j++]=32;$k[$j++]=3;for(var _53=48;_53<=57;_53+=1){$k[$j++]=_53;$k[$j++]=_53-44}for(var _54=97;_54<=122;_54+=1){$k[$j++]=_54;$k[$j++]=_54-83}$1.TNvals=$d();$k[$j++]=Infinity;for(var _56=0;_56<=31;_56+=1){$k[$j++]=_56;$k[$j++]=_56}$1.T1vals=$d();$k[$j++]=Infinity;for(var _58=33;_58<=47;_58+=1){$k[$j++]=_58;$k[$j++]=_58-33}for(var _59=58;_59<=64;_59+=1){$k[$j++]=_59;$k[$j++]=_59-43}for(var _5A=91;_5A<=95;_5A+=1){$k[$j++]=_5A;$k[$j++]=_5A-69}$k[$j++]=$1.fnc1;$k[$j++]=27;$k[$j++]=$1.usft;$k[$j++]=30;$1.T2vals=$d();$k[$j++]=Infinity;$k[$j++]=96;$k[$j++]=0;for(var _5E=65;_5E<=90;_5E+=1){$k[$j++]=_5E;$k[$j++]=_5E-64}for(var _5F=123;_5F<=127;_5F+=1){$k[$j++]=_5F;$k[$j++]=_5F-96}$1.T3vals=$d();$k[$j++]=Infinity;var _5H=$1.TNvals;for(var _5M=_5H.size,_5L=_5H.keys(),_5K=0;_5K<_5M;_5K++){var _5I=_5L.next().value;$k[$j++]=_5I;$k[$j++]=Infinity;$k[$j++]=_5H.get(_5I);var _5P=$a();$k[$j++]=_5P}var _5Q=$1.T1vals;for(var _5V=_5Q.size,_5U=_5Q.keys(),_5T=0;_5T<_5V;_5T++){var _5R=_5U.next().value;$k[$j++]=_5R;$k[$j++]=Infinity;$k[$j++]=$g($1.TNvals,$1.sft1);$k[$j++]=_5Q.get(_5R);var _5b=$a();$k[$j++]=_5b}var _5c=$1.T2vals;for(var _5h=_5c.size,_5g=_5c.keys(),_5f=0;_5f<_5h;_5f++){var _5d=_5g.next().value;$k[$j++]=_5d;$k[$j++]=Infinity;$k[$j++]=$g($1.TNvals,$1.sft2);$k[$j++]=_5c.get(_5d);var _5n=$a();$k[$j++]=_5n}var _5o=$1.T3vals;for(var _5t=_5o.size,_5s=_5o.keys(),_5r=0;_5r<_5t;_5r++){var _5p=_5s.next().value;$k[$j++]=_5p;$k[$j++]=Infinity;$k[$j++]=$g($1.TNvals,$1.sft3);$k[$j++]=_5o.get(_5p);var _5z=$a();$k[$j++]=_5z}$1.Tvals=$d();for(var _61=128;_61<=255;_61+=1){$1.i=_61;$k[$j++]=$1.Avals;$k[$j++]=$1.i;$k[$j++]=Infinity;$q($g($1.Avals,$1.usft));$q($g($1.Avals,$1.i-128));var _6A=$a();var _6B=$k[--$j];$p($k[--$j],_6B,_6A);$k[$j++]=$1.Cvals;$k[$j++]=$1.i;$k[$j++]=Infinity;$q($g($1.Cvals,$1.usft));$q($g($1.Cvals,$1.i-128));var _6L=$a();var _6M=$k[--$j];$p($k[--$j],_6M,_6L);$k[$j++]=$1.Tvals;$k[$j++]=$1.i;$k[$j++]=Infinity;$q($g($1.Tvals,$1.usft));$q($g($1.Tvals,$1.i-128));var _6W=$a();var _6X=$k[--$j];$p($k[--$j],_6X,_6W)}$k[$j++]=Infinity;$k[$j++]=13;$k[$j++]=0;$k[$j++]=42;$k[$j++]=1;$k[$j++]=62;$k[$j++]=2;$k[$j++]=32;$k[$j++]=3;for(var _6Z=48;_6Z<=57;_6Z+=1){$k[$j++]=_6Z;$k[$j++]=_6Z-44}for(var _6a=65;_6a<=90;_6a+=1){$k[$j++]=_6a;$k[$j++]=_6a-51}$1.Xvals=$d();$k[$j++]=Infinity;var _6c=$1.Xvals;for(var _6h=_6c.size,_6g=_6c.keys(),_6f=0;_6f<_6h;_6f++){var _6d=_6g.next().value;$k[$j++]=_6d;$k[$j++]=Infinity;$k[$j++]=_6c.get(_6d);var _6k=$a();$k[$j++]=_6k}$1.Xvals=$d();$k[$j++]=Infinity;for(var _6m=64;_6m<=94;_6m+=1){$k[$j++]=_6m;$k[$j++]=_6m-64}$k[$j++]=$1.unl;$k[$j++]=31;for(var _6o=32;_6o<=63;_6o+=1){$k[$j++]=_6o;$k[$j++]=_6o}$1.Evals=$d();$k[$j++]=Infinity;var _6q=$1.Evals;for(var _6v=_6q.size,_6u=_6q.keys(),_6t=0;_6t<_6v;_6t++){var _6r=_6u.next().value;$k[$j++]=_6r;$k[$j++]=Infinity;$k[$j++]=_6q.get(_6r);var _6y=$a();$k[$j++]=_6y}$1.Evals=$d();$k[$j++]=Infinity;for(var _70=0;_70<=255;_70+=1){$k[$j++]=_70;$k[$j++]=_70}$1.Bvals=$d();$k[$j++]=Infinity;var _72=$1.Bvals;for(var _77=_72.size,_76=_72.keys(),_75=0;_75<_77;_75++){var _73=_76.next().value;$k[$j++]=_73;$k[$j++]=Infinity;$k[$j++]=_72.get(_73);var _7A=$a();$k[$j++]=_7A}$1.Bvals=$d();$1.encvals=$a([$1.Avals,$1.Cvals,$1.Tvals,$1.Xvals,$1.Evals,$1.Bvals]);$k[$j++]=Infinity;for(var _7K=0,_7L=$1.msglen;_7K<_7L;_7K++){$k[$j++]=0}$k[$j++]=0;$1.numD=$a();$k[$j++]=Infinity;for(var _7O=0,_7P=$1.msglen;_7O<_7P;_7O++){$k[$j++]=0}$k[$j++]=9999;$1.nextXterm=$a();$k[$j++]=Infinity;for(var _7S=0,_7T=$1.msglen;_7S<_7T;_7S++){$k[$j++]=0}$k[$j++]=9999;$1.nextNonX=$a();$k[$j++]=Infinity;for(var _7W=0,_7X=$1.msglen;_7W<_7X;_7W++){$k[$j++]=false}$k[$j++]=false;$1.isECI=$a();for(var _7a=$1.msglen-1;_7a>=0;_7a-=1){$1.i=_7a;$1.barchar=$g($1.msg,$1.i);if($1.barchar>=48&&$1.barchar<=57){$p($1.numD,$1.i,$f($g($1.numD,$1.i+1)+1))}if($1.barchar==13||$1.barchar==42||$1.barchar==62){$p($1.nextXterm,$1.i,0)}else{$p($1.nextXterm,$1.i,$f($g($1.nextXterm,$1.i+1)+1))}var _7x=$g($1.Xvals,$1.barchar)!==undefined;if(!_7x){$p($1.nextNonX,$1.i,0)}else{$p($1.nextNonX,$1.i,$f($g($1.nextNonX,$1.i+1)+1))}$p($1.isECI,$1.i,$1.barchar<=-1e6)}$k[$j++]=Infinity;var _88=$1.nextXterm;for(var _89=0,_8A=_88.length;_89<_8A;_89++){var _8B=$g(_88,_89);$k[$j++]=_8B;if(_8B>1e4){$j--;$k[$j++]=1e4}}$1.nextXterm=$a();$k[$j++]=Infinity;var _8D=$1.nextNonX;for(var _8E=0,_8F=_8D.length;_8E<_8F;_8E++){var _8G=$g(_8D,_8E);$k[$j++]=_8G;if(_8G>1e4){$j--;$k[$j++]=1e4}}$1.nextNonX=$a();$1.isD=function(){$k[$j++]=$1.char>=48&&$1.char<=57};$1.isC=function(){var _8M=$g($1.CNvals,$1.char)!==undefined;$k[$j++]=_8M};$1.isT=function(){var _8P=$g($1.TNvals,$1.char)!==undefined;$k[$j++]=_8P};$1.isX=function(){var _8S=$g($1.Xvals,$1.char)!==undefined;$k[$j++]=_8S};$1.isE=function(){var _8V=$g($1.Evals,$1.char)!==undefined;$k[$j++]=_8V};$1.isEA=function(){$k[$j++]=$1.char>127};$1.isFN=function(){$k[$j++]=$1.char<0};$1.XtermFirst=function(){var _8Y=$k[--$j];$k[$j++]=$lt($g($1.nextXterm,_8Y),$g($1.nextNonX,_8Y))};$1.A=0;$1.C=1;$1.T=2;$1.X=3;$1.E=4;$1.B=5;$1.lookup=function(){$1.ac=1;$1.cc=2;$1.tc=2;$1.xc=2;$1.ec=2;$1.bc=2.25;if($1.mode==$1.A){$1.ac=0;$1.cc=1;$1.tc=1;$1.xc=1;$1.ec=1;$1.bc=1.25}if($1.mode==$1.C){$1.cc=0}if($1.mode==$1.T){$1.tc=0}if($1.mode==$1.X){$1.xc=0}if($1.mode==$1.E){$1.ec=0}if($1.mode==$1.B){$1.bc=0}for(var _8p=0,_8q=1;_8p<_8q;_8p++){if($g($1.isECI,$1.i)){$k[$j++]=$1.A;break}if($1.mailmark&&$1.i<45){$k[$j++]=$1.C;break}$1.k=0;for(;;){if($1.i+$1.k==$1.msglen){var _91=$a(["ac","cc","tc","xc","ec","bc"]);for(var _92=0,_93=_91.length;_92<_93;_92++){var _94=$g(_91,_92);$1[_94]=Math.ceil($1[_94])}var _9B=$a([$1.cc,$1.tc,$1.xc,$1.ec,$1.bc]);$k[$j++]=true;for(var _9C=0,_9D=_9B.length;_9C<_9D;_9C++){var _9G=$k[--$j];$k[$j++]=_9G&&$1.ac<=$g(_9B,_9C)}if($k[--$j]){$k[$j++]=$1.A;break}var _9O=$a([$1.ac,$1.cc,$1.tc,$1.xc,$1.ec]);$k[$j++]=true;for(var _9P=0,_9Q=_9O.length;_9P<_9Q;_9P++){var _9T=$k[--$j];$k[$j++]=_9T&&$1.bc<$g(_9O,_9P)}if($k[--$j]){$k[$j++]=$1.B;break}var _9b=$a([$1.ac,$1.cc,$1.tc,$1.xc,$1.bc]);$k[$j++]=true;for(var _9c=0,_9d=_9b.length;_9c<_9d;_9c++){var _9g=$k[--$j];$k[$j++]=_9g&&$1.ec<$g(_9b,_9c)}if($k[--$j]){$k[$j++]=$1.E;break}var _9o=$a([$1.ac,$1.cc,$1.xc,$1.ec,$1.bc]);$k[$j++]=true;for(var _9p=0,_9q=_9o.length;_9p<_9q;_9p++){var _9t=$k[--$j];$k[$j++]=_9t&&$1.tc<$g(_9o,_9p)}if($k[--$j]){$k[$j++]=$1.T;break}var _A1=$a([$1.ac,$1.cc,$1.tc,$1.ec,$1.bc]);$k[$j++]=true;for(var _A2=0,_A3=_A1.length;_A2<_A3;_A2++){var _A6=$k[--$j];$k[$j++]=_A6&&$1.xc<$g(_A1,_A2)}if($k[--$j]){$k[$j++]=$1.X;break}$k[$j++]=$1.C;break}$1.char=$g($1.msg,$1.i+$1.k);$k[$j++]="ac";$k[$j++]=$1.ac;$1.isD();if($k[--$j]){var _AG=$k[--$j];$k[$j++]=$f(_AG+1/2)}else{$1.isEA();if($k[--$j]){var _AI=$k[--$j];$k[$j++]=Math.ceil(_AI)+2}else{var _AJ=$k[--$j];$k[$j++]=Math.ceil(_AJ)+1}}var _AK=$k[--$j];$1[$k[--$j]]=_AK;$k[$j++]="cc";$k[$j++]=$1.cc;$1.isC();if($k[--$j]){var _AO=$k[--$j];$k[$j++]=$f(_AO+.66666667)}else{$1.isEA();if($k[--$j]){var _AQ=$k[--$j];$k[$j++]=$f(_AQ+2.66666667)}else{var _AR=$k[--$j];$k[$j++]=$f(_AR+1.33333334)}}var _AS=$k[--$j];$1[$k[--$j]]=_AS;$k[$j++]="tc";$k[$j++]=$1.tc;$1.isT();if($k[--$j]){var _AW=$k[--$j];$k[$j++]=$f(_AW+.66666667)}else{$1.isEA();if($k[--$j]){var _AY=$k[--$j];$k[$j++]=$f(_AY+2.66666667)}else{var _AZ=$k[--$j];$k[$j++]=$f(_AZ+1.33333334)}}var _Aa=$k[--$j];$1[$k[--$j]]=_Aa;$k[$j++]="xc";$k[$j++]=$1.xc;$1.isX();if($k[--$j]){var _Ae=$k[--$j];$k[$j++]=$f(_Ae+.66666667)}else{$1.isEA();if($k[--$j]){var _Ag=$k[--$j];$k[$j++]=$f(_Ag+4.33333334)}else{var _Ah=$k[--$j];$k[$j++]=$f(_Ah+3.33333334)}}var _Ai=$k[--$j];$1[$k[--$j]]=_Ai;$k[$j++]="ec";$k[$j++]=$1.ec;$1.isE();if($k[--$j]){var _Am=$k[--$j];$k[$j++]=$f(_Am+3/4)}else{$1.isEA();if($k[--$j]){var _Ao=$k[--$j];$k[$j++]=$f(_Ao+17/4)}else{var _Ap=$k[--$j];$k[$j++]=$f(_Ap+13/4)}}var _Aq=$k[--$j];$1[$k[--$j]]=_Aq;$k[$j++]="bc";$k[$j++]=$1.bc;$1.isFN();if($k[--$j]){var _Au=$k[--$j];$k[$j++]=$f(_Au+4)}else{var _Av=$k[--$j];$k[$j++]=$f(_Av+1)}var _Aw=$k[--$j];$1[$k[--$j]]=_Aw;if($1.k>=4){var _B4=$a([$1.cc,$1.tc,$1.xc,$1.ec,$1.bc]);$k[$j++]=true;for(var _B5=0,_B6=_B4.length;_B5<_B6;_B5++){var _B9=$k[--$j];$k[$j++]=_B9&&$1.ac+1<=$g(_B4,_B5)}if($k[--$j]){$k[$j++]=$1.A;break}if($1.bc+1<=$1.ac){$k[$j++]=$1.B;break}var _BJ=$a([$1.cc,$1.tc,$1.xc,$1.ec]);$k[$j++]=true;for(var _BK=0,_BL=_BJ.length;_BK<_BL;_BK++){var _BO=$k[--$j];$k[$j++]=_BO&&$1.bc+1<$g(_BJ,_BK)}if($k[--$j]){$k[$j++]=$1.B;break}var _BW=$a([$1.ac,$1.cc,$1.tc,$1.xc,$1.bc]);$k[$j++]=true;for(var _BX=0,_BY=_BW.length;_BX<_BY;_BX++){var _Bb=$k[--$j];$k[$j++]=_Bb&&$1.ec+1<$g(_BW,_BX)}if($k[--$j]){$k[$j++]=$1.E;break}var _Bj=$a([$1.ac,$1.cc,$1.xc,$1.ec,$1.bc]);$k[$j++]=true;for(var _Bk=0,_Bl=_Bj.length;_Bk<_Bl;_Bk++){var _Bo=$k[--$j];$k[$j++]=_Bo&&$1.tc+1<$g(_Bj,_Bk)}if($k[--$j]){$k[$j++]=$1.T;break}var _Bw=$a([$1.ac,$1.cc,$1.tc,$1.ec,$1.bc]);$k[$j++]=true;for(var _Bx=0,_By=_Bw.length;_Bx<_By;_Bx++){var _C1=$k[--$j];$k[$j++]=_C1&&$1.xc+1<$g(_Bw,_Bx)}if($k[--$j]){$k[$j++]=$1.X;break}var _C8=$a([$1.ac,$1.tc,$1.ec,$1.bc]);$k[$j++]=true;for(var _C9=0,_CA=_C8.length;_C9<_CA;_C9++){var _CD=$k[--$j];$k[$j++]=_CD&&$1.cc+1<$g(_C8,_C9)}if($k[--$j]){if($1.cc<$1.xc){$k[$j++]=$1.C;break}if($1.cc==$1.xc){$k[$j++]=$1.i+$1.k+1;$1.XtermFirst();if($k[--$j]){$k[$j++]=$1.X;break}else{$k[$j++]=$1.C;break}}}}$1.k=$1.k+1}}};$1.addtocws=function(){var _CQ=$k[--$j];$P($1.cws,$1.j,_CQ);$1.j=_CQ.length+$1.j};$1.ECItocws=function(){var _CV=$f(-$k[--$j]-1e6);$k[$j++]=_CV;if(_CV<=126){var _CW=$k[--$j];$k[$j++]=$f(_CW+1);$r($a(1))}else{var _CY=$k[--$j];$k[$j++]=_CY;if(_CY<=16382){var _Ca=$f($k[--$j]-127);$k[$j++]=~~(_Ca/254)+128;$k[$j++]=$f(_Ca%254+1);$r($a(2))}else{var _Cd=$f($k[--$j]-16383);$k[$j++]=~~(_Cd/64516)+192;$k[$j++]=~~(_Cd/254)%254+1;$k[$j++]=$f(_Cd%254+1);$r($a(3))}}};$1.encA=function(){for(var _Cf=0,_Cg=1;_Cf<_Cg;_Cf++){if($g($1.isECI,$1.i)){$k[$j++]=$g($1.Avals,$1.eci);$1.addtocws();$k[$j++]=$g($1.msg,$1.i);$1.ECItocws();$1.addtocws();$1.i=$1.i+1;break}if($g($1.numD,$1.i)>=2){var _Cu=$s(2);$p(_Cu,0,$g($1.msg,$1.i));$p(_Cu,1,$g($1.msg,$1.i+1));$k[$j++]=$g($1.Avals,_Cu);$1.addtocws();$1.i=$1.i+2;break}$k[$j++]="newmode";$1.lookup();var _D4=$k[--$j];$1[$k[--$j]]=_D4;if($1.newmode!=$1.mode){$k[$j++]=$g($1.Avals,$g($a([-1,$1.lC,$1.lT,$1.lX,$1.lE,$1.lB]),$1.newmode));$1.addtocws();$1.mode=$1.newmode;break}$k[$j++]=$g($1.Avals,$g($1.msg,$1.i));$1.addtocws();$1.i=$1.i+1;break}};$1.CTXvalstocws=function(){$1.in=$k[--$j];$k[$j++]=Infinity;for(var _DS=0,_DR=$1.in.length-1;_DS<=_DR;_DS+=3){var _DU=$G($1.in,_DS,3);$k[$j++]=0;for(var _DV=0,_DW=_DU.length;_DV<_DW;_DV++){var _DY=$k[--$j];$k[$j++]=$f(_DY+$g(_DU,_DV))*40}var _Da=~~($k[--$j]/40)+1;$k[$j++]=~~(_Da/256);$k[$j++]=_Da%256}$r($a($m()));var _Dd=$k[--$j];var _De=$k[--$j];$k[$j++]=_Dd;$k[$j++]=_De;$j--};$1.encCTX=function(){$1.p=0;$1.ctxvals=$a(2500);$1.done=false;for(;;){if($1.i==$1.msglen){break}var _Do=$g($g($1.encvals,$1.mode),$g($1.msg,$1.i))!==undefined;if(!_Do){break}if($1.p%3==0){$k[$j++]="newmode";$1.lookup();var _Dq=$k[--$j];$1[$k[--$j]]=_Dq;if($ne($1.newmode,$1.mode)){$k[$j++]=$G($1.ctxvals,0,$1.p);$1.CTXvalstocws();$1.addtocws();$k[$j++]=$a([$1.unlcw]);$1.addtocws();if($1.newmode!=$1.A){$k[$j++]=$g($1.Avals,$g($a([-1,$1.lC,$1.lT,$1.lX,$1.lE,$1.lB]),$1.newmode));$1.addtocws()}$1.mode=$1.newmode;$1.done=true;break}if($1.msglen-$1.i<=3){$1.remcws=$g($1.numremcws,$1.j+~~($1.p/3)*2);$k[$j++]=Infinity;var _EM=$G($1.msg,$1.i,$1.msglen-$1.i);for(var _EN=0,_EO=_EM.length;_EN<_EO;_EN++){var _EP=$g(_EM,_EN);var _ET=$g($g($1.encvals,$1.mode),_EP)!==undefined;$k[$j++]=_EP;if(_ET){$q($g($g($1.encvals,$1.mode),$k[--$j]))}else{$j--;$k[$j++]=-1;$k[$j++]=-1;$k[$j++]=-1;$k[$j++]=-1}}$1.remvals=$a();if($1.remcws==2&&$1.remvals.length==3){$k[$j++]=Infinity;$q($G($1.ctxvals,0,$1.p));$q($1.remvals);var _Eg=$a();$k[$j++]=_Eg;$1.CTXvalstocws();$1.addtocws();$1.mode=$1.A;$1.i=$1.msglen;$1.done=true;break}if($1.remcws==2&&$1.remvals.length==2&&$1.mode!=$1.X){$k[$j++]=Infinity;$q($G($1.ctxvals,0,$1.p));$q($1.remvals);$q($g($g($1.encvals,$1.mode),$1.sft1));var _Ew=$a();$k[$j++]=_Ew;$1.CTXvalstocws();$1.addtocws();$1.mode=$1.A;$1.i=$1.msglen;$1.done=true;break}if($1.remcws==2&&$1.remvals.length==1){$k[$j++]=$G($1.ctxvals,0,$1.p);$1.CTXvalstocws();$1.addtocws();$k[$j++]=$a([$1.unlcw]);$1.addtocws();$k[$j++]=$g($1.Avals,$g($1.msg,$1.i));$1.addtocws();$1.mode=$1.A;$1.i=$1.msglen;$1.done=true;break}if($1.remcws==1&&$1.remvals.length==1){$k[$j++]=$G($1.ctxvals,0,$1.p);$1.CTXvalstocws();$1.addtocws();$k[$j++]=$g($1.Avals,$g($1.msg,$1.i));$1.addtocws();$1.mode=$1.A;$1.i=$1.msglen;$1.done=true;break}}}var _FV=$g($g($1.encvals,$1.mode),$g($1.msg,$1.i));$P($1.ctxvals,$1.p,_FV);$1.p=_FV.length+$1.p;$1.i=$1.i+1}if(!$1.done){for(;;){if($1.p%3==0){break}$1.i=$1.i-1;$1.p=$1.p-$g($g($1.encvals,$1.mode),$g($1.msg,$1.i)).length}$k[$j++]=Infinity;$q($G($1.ctxvals,0,$1.p));var _Fo=$a();$k[$j++]=_Fo;$1.CTXvalstocws();$1.addtocws();$k[$j++]=$a([$1.unlcw]);$1.addtocws();$1.mode=$1.A;if($1.i!=$1.msglen&&$nt($g($1.isECI,$1.i))){if($g($1.numD,$1.i)>=2){var _G0=$s(2);$p(_G0,0,$g($1.msg,$1.i));$p(_G0,1,$g($1.msg,$1.i+1));$k[$j++]=$g($1.Avals,_G0);$1.addtocws();$1.i=$1.i+2}else{$k[$j++]=$g($1.Avals,$g($1.msg,$1.i));$1.addtocws();$1.i=$1.i+1}}}};$1.Evalstocws=function(){$1.in=$k[--$j];$1.inlen=$1.in.length;$1.outlen=~~Math.ceil($1.in.length/4*3);$k[$j++]=Infinity;$q($1.in);$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$1.in=$a();$k[$j++]=Infinity;for(var _GN=0,_GM=$1.inlen-1;_GN<=_GM;_GN+=4){var _GP=$G($1.in,_GN,4);$k[$j++]=0;for(var _GQ=0,_GR=_GP.length;_GQ<_GR;_GQ++){var _GT=$k[--$j];$k[$j++]=$or(_GT,$g(_GP,_GQ))<<6}var _GV=$k[--$j]>>>6;$k[$j++]=_GV>>>16&255;$k[$j++]=_GV>>>8&255;$k[$j++]=_GV&255}$r($a($m()));var _GY=$k[--$j];var _GZ=$k[--$j];$k[$j++]=_GY;$k[$j++]=_GZ;$j--;var _Gc=$G($k[--$j],0,$1.outlen);$k[$j++]=_Gc};$1.encE=function(){$1.p=0;$1.edifactvals=$a(2100);for(;;){if($1.i==$1.msglen){break}var _Gk=$g($1.Evals,$g($1.msg,$1.i))!==undefined;if(!_Gk){break}if($1.p%4==0){if($1.msglen-$1.i<=2){$1.remcws=$g($1.numremcws,$1.j+~~($1.p/4)*3);$k[$j++]=Infinity;var _Gw=$G($1.msg,$1.i,$1.msglen-$1.i);for(var _Gx=0,_Gy=_Gw.length;_Gx<_Gy;_Gx++){$q($g($1.Avals,$g(_Gw,_Gx)))}$1.remvals=$a();if(($1.remcws==1||$1.remcws==2)&&$1.remvals.length<=$1.remcws){$k[$j++]=$G($1.edifactvals,0,$1.p);$1.Evalstocws();$1.addtocws();$k[$j++]=$1.remvals;$1.addtocws();$1.mode=$1.A;$1.i=$1.msglen;break}}$1.lookup();if($k[--$j]!=$1.mode){break}}var _HJ=$g($1.Evals,$g($1.msg,$1.i));$P($1.edifactvals,$1.p,_HJ);$1.p=_HJ.length+$1.p;$1.i=$1.i+1}if($1.mode!=$1.A){$1.remcws=$f($g($1.numremcws,$1.j+~~($1.p/4)*3-1)-1);if($1.p%4!=0||$1.i!=$1.msglen||$1.remcws>=3){var _Ha=$g($1.Evals,$1.unl);$P($1.edifactvals,$1.p,_Ha);$1.p=_Ha.length+$1.p}$k[$j++]=$G($1.edifactvals,0,$1.p);$1.Evalstocws();$1.addtocws();$1.mode=$1.A;if($1.i!=$1.msglen&&$nt($g($1.isECI,$1.i))){if($g($1.numD,$1.i)>=2){var _Hq=$s(2);$p(_Hq,0,$g($1.msg,$1.i));$p(_Hq,1,$g($1.msg,$1.i+1));$k[$j++]=$g($1.Avals,_Hq);$1.addtocws();$1.i=$1.i+2}else{$k[$j++]=$g($1.Avals,$g($1.msg,$1.i));$1.addtocws();$1.i=$1.i+1}}}};$1.encB=function(){$1.p=0;$1.bvals=$a(1558);for(;;){if($1.i==$1.msglen){break}$1.lookup();if($k[--$j]!=$1.mode){break}$p($1.bvals,$1.p,$g($1.msg,$1.i));$1.p=$1.p+1;$1.i=$1.i+1}$1.remcws=$f($g($1.numremcws,$1.j+$1.p)-1);$k[$j++]=Infinity;if($1.remcws==0&&$1.i==$1.msglen){$k[$j++]=0}else{if($1.p<250){$k[$j++]=$1.p}else{$k[$j++]=~~($1.p/250)+249;$k[$j++]=$1.p%250}}$q($G($1.bvals,0,$1.p));$1.bvals=$a();for(var _IZ=0,_IY=$1.bvals.length-1;_IZ<=_IY;_IZ+=1){$1.p=_IZ;var _If=$f(($1.j+$1.p+1)*149%255+1+$g($1.bvals,$1.p));$k[$j++]=_If;if(_If>=256){var _Ig=$k[--$j];$k[$j++]=$f(_Ig-256)}$p($1.bvals,$1.p,$k[--$j])}$k[$j++]=$1.bvals;$1.addtocws();$1.mode=$1.A};$1.cws=$a(1558);$1.mode=$1.A;$1.i=0;$1.j=0;for(;;){if($1.i>=$1.msglen){break}if($1[$g($a(["encA","encCTX","encCTX","encCTX","encE","encB"]),$1.mode)]()===true){break}}$1.cws=$G($1.cws,0,$1.j)}$1.datlen=$1.cws.length;$1.remcws=$f($g($1.numremcws,$1.j-1)-1);if($1.remcws>0){$k[$j++]=Infinity;$q($1.cws);for(var _J4=0,_J5=$1.remcws;_J4<_J5;_J4++){$k[$j++]=129}$1.cws=$a();for(var _JB=$1.datlen+1,_JA=$f($f($1.datlen+$1.remcws)-1);_JB<=_JA;_JB+=1){$1.i=_JB;var _JD=($1.i+1)*149%253+1+129;$k[$j++]=_JD;if(_JD>254){var _JE=$k[--$j];$k[$j++]=$f(_JE-254)}$p($1.cws,$1.i,$k[--$j])}}$1.i=0;for(;;){$1.m=$g($1.metrics,$1.i);$1.rows=$g($1.m,0);$1.cols=$g($1.m,1);$1.regh=$g($1.m,2);$1.regv=$g($1.m,3);$1.rscw=$g($1.m,4);$1.rsbl=$g($1.m,5);$1.mrows=$f($1.rows-2*$1.regh);$1.mcols=$f($1.cols-2*$1.regv);$1.rrows=~~($1.mrows/$1.regh);$1.rcols=~~($1.mcols/$1.regv);$1.ncws=$f(~~($1.mrows*$1.mcols/8)-$1.rscw);$1.okay=true;if($1.cws.length!=$1.ncws){$1.okay=false}if($1.urows!=0&&$1.urows!=$1.rows){$1.okay=false}if($1.ucols!=0&&$1.ucols!=$1.cols){$1.okay=false}if($eq($1.format,"square")&&$ne($1.rows,$1.cols)){$1.okay=false}if($eq($1.format,"rectangle")&&$eq($1.rows,$1.cols)){$1.okay=false}if($1.okay){break}$1.i=$1.i+1}$1.cwbs=$a($1.rsbl);$1.ecbs=$a($1.rsbl);for(var _K4=0,_K3=$f($1.rsbl-1);_K4<=_K3;_K4+=1){$1.i=_K4;if($1.cws.length!=1558){$1.cwbsize=~~($1.cws.length/$1.rsbl)}else{if($1.i<=7){$1.cwbsize=156}else{$1.cwbsize=155}}$1.cwb=$a($1.cwbsize);for(var _KD=0,_KC=$1.cwbsize-1;_KD<=_KC;_KD+=1){$1.j=_KD;$p($1.cwb,$1.j,$g($1.cws,$f($1.j*$1.rsbl+$1.i)))}$p($1.cwbs,$1.i,$1.cwb);$k[$j++]=$1.ecbs;$k[$j++]=$1.i;$k[$j++]=Infinity;for(var _KS=0,_KT=~~($1.rscw/$1.rsbl);_KS<_KT;_KS++){$k[$j++]=0}var _KU=$a();var _KV=$k[--$j];$p($k[--$j],_KV,_KU)}$k[$j++]=Infinity;$k[$j++]=1;for(var _KX=0,_KY=255;_KX<_KY;_KX++){var _KZ=$k[--$j];var _Ka=_KZ*2;$k[$j++]=_KZ;$k[$j++]=_Ka;if(_Ka>=256){var _Kb=$k[--$j];$k[$j++]=_Kb^301}}$1.rsalog=$a();$1.rslog=$a(256);for(var _Ke=1;_Ke<=255;_Ke+=1){$p($1.rslog,$g($1.rsalog,_Ke),_Ke)}$1.rsprod=function(){var _Ki=$k[--$j];var _Kj=$k[--$j];$k[$j++]=_Kj;$k[$j++]=_Ki;if(_Ki!=0&&_Kj!=0){var _Km=$g($1.rslog,$k[--$j]);var _Kr=$g($1.rsalog,$f(_Km+$g($1.rslog,$k[--$j]))%255);$k[$j++]=_Kr}else{$j-=2;$k[$j++]=0}};$k[$j++]=Infinity;$k[$j++]=1;for(var _Ku=0,_Kv=~~($1.rscw/$1.rsbl);_Ku<_Kv;_Ku++){$k[$j++]=0}$1.coeffs=$a();for(var _L0=1,_Kz=~~($1.rscw/$1.rsbl);_L0<=_Kz;_L0+=1){$1.i=_L0;$p($1.coeffs,$1.i,$g($1.coeffs,$1.i-1));for(var _L7=$1.i-1;_L7>=1;_L7-=1){$1.j=_L7;$k[$j++]=$1.coeffs;$k[$j++]=$1.j;$k[$j++]=$g($1.coeffs,$1.j-1);$k[$j++]=$g($1.coeffs,$1.j);$k[$j++]=$g($1.rsalog,$1.i);$1.rsprod();var _LJ=$k[--$j];var _LK=$k[--$j];var _LL=$k[--$j];$p($k[--$j],_LL,$xo(_LK,_LJ))}$k[$j++]=$1.coeffs;$k[$j++]=0;$k[$j++]=$g($1.coeffs,0);$k[$j++]=$g($1.rsalog,$1.i);$1.rsprod();var _LT=$k[--$j];var _LU=$k[--$j];$p($k[--$j],_LU,_LT)}$1.coeffs=$G($1.coeffs,0,$1.coeffs.length-1);for(var _Lb=0,_La=$1.cwbs.length-1;_Lb<=_La;_Lb+=1){$1.i=_Lb;$1.cwb=$g($1.cwbs,$1.i);$1.ecb=$g($1.ecbs,$1.i);for(var _Lk=0,_Lj=$1.cwb.length-1;_Lk<=_Lj;_Lk+=1){$1.t=$xo($g($1.cwb,_Lk),$g($1.ecb,0));for(var _Lq=$1.ecb.length-1;_Lq>=0;_Lq-=1){$1.j=_Lq;$1.p=$1.ecb.length-$1.j-1;$k[$j++]=$1.ecb;$k[$j++]=$1.p;$k[$j++]=$1.t;$k[$j++]=$g($1.coeffs,$1.j);$1.rsprod();var _Lz=$k[--$j];var _M0=$k[--$j];$p($k[--$j],_M0,_Lz);if($1.j>0){$p($1.ecb,$1.p,$xo($g($1.ecb,$1.p+1),$g($1.ecb,$1.p)))}}}}if($1.ncws==1558){$k[$j++]=Infinity;var _MD=$G($1.ecbs,8,2);for(var _ME=0,_MF=_MD.length;_ME<_MF;_ME++){$k[$j++]=$g(_MD,_ME)}var _MI=$G($1.ecbs,0,8);for(var _MJ=0,_MK=_MI.length;_MJ<_MK;_MJ++){$k[$j++]=$g(_MI,_MJ)}$1.ecbs=$a()}$k[$j++]=Infinity;var _MN=$1.cws;for(var _MO=0,_MP=_MN.length;_MO<_MP;_MO++){$k[$j++]=$g(_MN,_MO)}for(var _MS=0,_MT=$1.rscw;_MS<_MT;_MS++){$k[$j++]=0}$1.cws=$a();for(var _MX=0,_MW=$f($1.rscw-1);_MX<=_MW;_MX+=1){$1.i=_MX;$p($1.cws,$f($1.ncws+$1.i),$g($g($1.ecbs,$1.i%$1.rsbl),~~($1.i/$1.rsbl)))}$1.module=function(){var _Mi=$k[--$j];var _Mj=$k[--$j];var _Mk=$k[--$j];var _Mn=$Z($s(8),"00000000");var _Mp=$R($s(8),$k[--$j],2);$P(_Mn,8-_Mp.length,_Mp);$k[$j++]=_Mk;$k[$j++]=_Mj;$k[$j++]=_Mi;$k[$j++]=_Mn;for(var _Mq=7;_Mq>=0;_Mq-=1){var _Mr=$k[--$j];$k[$j++]=$f($g(_Mr,_Mq)-48);$k[$j++]=_Mr}$j--;var _Mt=$k[--$j];var _Mu=$k[--$j];var _Mv=$k[--$j];var _Mw=$k[--$j];var _Mx=$k[--$j];var _My=$k[--$j];var _Mz=$k[--$j];var _N0=$k[--$j];var _N1=$k[--$j];var _N2=$k[--$j];var _N3=$k[--$j];$k[$j++]=_N0;$k[$j++]=_Mz;$k[$j++]=_My;$k[$j++]=_Mx;$k[$j++]=_Mw;$k[$j++]=_Mv;$k[$j++]=_Mu;$k[$j++]=_Mt;$k[$j++]=_N3;$k[$j++]=_N2;$F(_N1,function(){if($k[--$j]()===true){return true}var _N5=$k[--$j];var _N6=$k[--$j];$k[$j++]=_N6;$k[$j++]=_N5;if(_N6<0){var _N7=$k[--$j];var _N8=$k[--$j];$k[$j++]=$f(_N8+$1.mrows);$k[$j++]=$f(_N7+$f(4-$f($1.mrows+4)%8))}var _NB=$k[--$j];$k[$j++]=_NB;if(_NB<0){var _ND=$k[--$j];var _NE=$k[--$j];$k[$j++]=$f(_NE+$f(4-$f($1.mcols+4)%8));$k[$j++]=$f(_ND+$1.mcols)}var _NG=$k[--$j];var _NH=$k[--$j];$k[$j++]=_NH;$k[$j++]=_NG;if(_NH>=$1.mrows){var _NJ=$k[--$j];var _NK=$k[--$j];$k[$j++]=$f(_NK-$1.mrows);$k[$j++]=_NJ}var _NM=$k[--$j];var _NN=$k[--$j];var _NQ=$k[--$j];var _NR=$k[--$j];$p($1.mmat,$f(_NM+_NN*$1.mcols),$k[--$j]);$k[$j++]=_NR;$k[$j++]=_NQ})};var _Nj=$a([function(){var _NT=$k[--$j];var _NU=$k[--$j];$k[$j++]=_NU;$k[$j++]=_NT;$k[$j++]=$f(_NU-2);$k[$j++]=$f(_NT-2)},function(){var _NV=$k[--$j];var _NW=$k[--$j];$k[$j++]=_NW;$k[$j++]=_NV;$k[$j++]=$f(_NW-2);$k[$j++]=$f(_NV-1)},function(){var _NX=$k[--$j];var _NY=$k[--$j];$k[$j++]=_NY;$k[$j++]=_NX;$k[$j++]=$f(_NY-1);$k[$j++]=$f(_NX-2)},function(){var _NZ=$k[--$j];var _Na=$k[--$j];$k[$j++]=_Na;$k[$j++]=_NZ;$k[$j++]=$f(_Na-1);$k[$j++]=$f(_NZ-1)},function(){var _Nb=$k[--$j];var _Nc=$k[--$j];$k[$j++]=_Nc;$k[$j++]=_Nb;$k[$j++]=$f(_Nc-1);$k[$j++]=_Nb},function(){var _Nd=$k[--$j];var _Ne=$k[--$j];$k[$j++]=_Ne;$k[$j++]=_Nd;$k[$j++]=_Ne;$k[$j++]=$f(_Nd-2)},function(){var _Nf=$k[--$j];var _Ng=$k[--$j];$k[$j++]=_Ng;$k[$j++]=_Nf;$k[$j++]=_Ng;$k[$j++]=$f(_Nf-1)},function(){var _Nh=$k[--$j];var _Ni=$k[--$j];$k[$j++]=_Ni;$k[$j++]=_Nh;$k[$j++]=_Ni;$k[$j++]=_Nh}]);$1.dmn=_Nj;var _Ns=$a([function(){$k[$j++]=$f($1.mrows-1);$k[$j++]=0},function(){$k[$j++]=$f($1.mrows-1);$k[$j++]=1},function(){$k[$j++]=$f($1.mrows-1);$k[$j++]=2},function(){$k[$j++]=0;$k[$j++]=$f($1.mcols-2)},function(){$k[$j++]=0;$k[$j++]=$f($1.mcols-1)},function(){$k[$j++]=1;$k[$j++]=$f($1.mcols-1)},function(){$k[$j++]=2;$k[$j++]=$f($1.mcols-1)},function(){$k[$j++]=3;$k[$j++]=$f($1.mcols-1)}]);$1.dmc1=_Ns;var _O1=$a([function(){$k[$j++]=$f($1.mrows-3);$k[$j++]=0},function(){$k[$j++]=$f($1.mrows-2);$k[$j++]=0},function(){$k[$j++]=$f($1.mrows-1);$k[$j++]=0},function(){$k[$j++]=0;$k[$j++]=$f($1.mcols-4)},function(){$k[$j++]=0;$k[$j++]=$f($1.mcols-3)},function(){$k[$j++]=0;$k[$j++]=$f($1.mcols-2)},function(){$k[$j++]=0;$k[$j++]=$f($1.mcols-1)},function(){$k[$j++]=1;$k[$j++]=$f($1.mcols-1)}]);$1.dmc2=_O1;var _OA=$a([function(){$k[$j++]=$f($1.mrows-3);$k[$j++]=0},function(){$k[$j++]=$f($1.mrows-2);$k[$j++]=0},function(){$k[$j++]=$f($1.mrows-1);$k[$j++]=0},function(){$k[$j++]=0;$k[$j++]=$f($1.mcols-2)},function(){$k[$j++]=0;$k[$j++]=$f($1.mcols-1)},function(){$k[$j++]=1;$k[$j++]=$f($1.mcols-1)},function(){$k[$j++]=2;$k[$j++]=$f($1.mcols-1)},function(){$k[$j++]=3;$k[$j++]=$f($1.mcols-1)}]);$1.dmc3=_OA;var _OK=$a([function(){$k[$j++]=$f($1.mrows-1);$k[$j++]=0},function(){$k[$j++]=$f($1.mrows-1);$k[$j++]=$f($1.mcols-1)},function(){$k[$j++]=0;$k[$j++]=$f($1.mcols-3)},function(){$k[$j++]=0;$k[$j++]=$f($1.mcols-2)},function(){$k[$j++]=0;$k[$j++]=$f($1.mcols-1)},function(){$k[$j++]=1;$k[$j++]=$f($1.mcols-3)},function(){$k[$j++]=1;$k[$j++]=$f($1.mcols-2)},function(){$k[$j++]=1;$k[$j++]=$f($1.mcols-1)}]);$1.dmc4=_OK;$k[$j++]=Infinity;for(var _ON=0,_OO=$1.mrows*$1.mcols;_ON<_OO;_ON++){$k[$j++]=-1}$1.mmat=$a();for(var _OR=$1.cws.length-1;_OR>=0;_OR-=1){$k[$j++]=$g($1.cws,_OR)}$k[$j++]=4;$k[$j++]=0;for(;;){var _OU=$k[--$j];var _OV=$k[--$j];$k[$j++]=_OV;$k[$j++]=_OU;if(_OU==0&&_OV==$1.mrows){$k[$j++]=$1.dmc1;$1.module()}var _OY=$k[--$j];var _OZ=$k[--$j];$k[$j++]=_OZ;$k[$j++]=_OY;if(_OY==0&&_OZ==$f($1.mrows-2)&&$1.mcols%4!=0){$k[$j++]=$1.dmc2;$1.module()}var _Od=$k[--$j];var _Oe=$k[--$j];$k[$j++]=_Oe;$k[$j++]=_Od;if(_Od==0&&_Oe==$f($1.mrows-2)&&$1.mcols%8==4){$k[$j++]=$1.dmc3;$1.module()}var _Oi=$k[--$j];var _Oj=$k[--$j];$k[$j++]=_Oj;$k[$j++]=_Oi;if(_Oi==2&&_Oj==$f($1.mrows+4)&&$1.mcols%8==0){$k[$j++]=$1.dmc4;$1.module()}for(;;){var _On=$k[--$j];var _Oo=$k[--$j];$k[$j++]=_Oo;$k[$j++]=_On;if(_On>=0&&_Oo<$1.mrows){var _Oq=$k[--$j];var _Or=$k[--$j];$k[$j++]=_Or;$k[$j++]=_Oq;if($g($1.mmat,$f(_Oq+_Or*$1.mcols))==-1){$k[$j++]=$1.dmn;$1.module()}}var _Ow=$k[--$j];var _Ox=$k[--$j];$k[$j++]=$f(_Ox-2);$k[$j++]=$f(_Ow+2);if(!($f(_Ow+2)<$1.mcols&&$f(_Ox-2)>=0)){break}}var _Oz=$k[--$j];var _P0=$k[--$j];$k[$j++]=$f(_P0+1);$k[$j++]=$f(_Oz+3);for(;;){var _P1=$k[--$j];var _P2=$k[--$j];$k[$j++]=_P2;$k[$j++]=_P1;if(_P1<$1.mcols&&_P2>=0){var _P4=$k[--$j];var _P5=$k[--$j];$k[$j++]=_P5;$k[$j++]=_P4;if($g($1.mmat,$f(_P4+_P5*$1.mcols))==-1){$k[$j++]=$1.dmn;$1.module()}}var _PA=$k[--$j];var _PB=$k[--$j];$k[$j++]=$f(_PB+2);$k[$j++]=$f(_PA-2);if(!($f(_PA-2)>=0&&$f(_PB+2)<$1.mrows)){break}}var _PD=$k[--$j];var _PE=$k[--$j];$k[$j++]=$f(_PE+3);$k[$j++]=$f(_PD+1);if(!($f(_PD+1)<$1.mcols||$f(_PE+3)<$1.mrows)){$j-=2;break}}if($g($1.mmat,$f($1.mrows*$1.mcols-1))==-1){$P($1.mmat,$f($1.mrows*$f($1.mcols-1)-2),$a([1,0]));$P($1.mmat,$f($1.mrows*$1.mcols-2),$a([0,1]))}$1.pixs=$a($1.rows*$1.cols);$1.cwpos=0;for(var _PY=0,_PX=$f($1.rows-1);_PY<=_PX;_PY+=1){$1.i=_PY;if($1.i%($1.rrows+2)==0){$k[$j++]=$1.pixs;$k[$j++]=$1.i*$1.cols;$k[$j++]=Infinity;for(var _Pf=0,_Pg=~~($1.cols/2);_Pf<_Pg;_Pf++){$k[$j++]=1;$k[$j++]=0}var _Ph=$a();var _Pi=$k[--$j];$P($k[--$j],_Pi,_Ph)}if($1.i%($1.rrows+2)==$1.rrows+1){$k[$j++]=$1.pixs;$k[$j++]=$1.i*$1.cols;$k[$j++]=Infinity;for(var _Pr=0,_Ps=$1.cols;_Pr<_Ps;_Pr++){$k[$j++]=1}var _Pt=$a();var _Pu=$k[--$j];$P($k[--$j],_Pu,_Pt)}if($1.i%($1.rrows+2)!=0&&$1.i%($1.rrows+2)!=$1.rrows+1){for(var _Q3=0,_Q2=$f($1.cols-1);_Q3<=_Q2;_Q3+=1){$1.j=_Q3;if($1.j%($1.rcols+2)==0){$p($1.pixs,$f($1.i*$1.cols+$1.j),1)}if($1.j%($1.rcols+2)==$1.rcols+1){$p($1.pixs,$f($1.i*$1.cols+$1.j),$1.i%2)}if($1.j%($1.rcols+2)!=0&&$1.j%($1.rcols+2)!=$1.rcols+1){$p($1.pixs,$f($1.i*$1.cols+$1.j),$g($1.mmat,$1.cwpos));$1.cwpos=$1.cwpos+1}}}}var _Qb=new Map([["ren",$0.renmatrix],["pixs",$1.pixs],["pixx",$1.cols],["pixy",$1.rows],["height",$1.rows*2/72],["width",$1.cols*2/72],["opt",$1.options]]);$k[$j++]=_Qb;if(!$1.dontdraw){$0.renmatrix()}};$0.datamatrixrectangular=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$p($1.options,"dontdraw",true);$p($1.options,"format","rectangle");$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.datamatrix();var _9=$k[--$j];$1[$k[--$j]]=_9;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.datamatrixrectangularextension=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.dmre=false;$1.dindmre=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$p($1.options,"dontdraw",true);$p($1.options,"format","rectangle");if(!($1.dindmre||$1.dmre)){$p($1.options,"dmre",true)}else{$p($1.options,"dmre",$1.dmre);$p($1.options,"dindmre",$1.dindmre)}$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.datamatrix();var _G=$k[--$j];$1[$k[--$j]]=_G;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.mailmark=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.type="unset";$1.parse=false;$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});var _6=new Map([["parse",$1.parse],["parseonly",true],["parsefnc",false]]);$1.fncvals=_6;$k[$j++]="barcode";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _9=$k[--$j];$1[$k[--$j]]=_9;$1.barlen=$1.barcode.length;delete $1.options["parse"];var _D=new Map([["7","24x24"],["9","32x32"],["29","16x48"]]);$1.version=$g(_D,$1["type"]);var _G=new Map([["7","square"],["9","square"],["29","rectangle"]]);$1.format=$g(_G,$1["type"]);if($1.barcode.length<45){$k[$j++]="bwipp.mailmarkBadLength";$k[$j++]="Royal Mail Mailmark must contain at least 45 characters of Mailmark formatted data, including any required space padding";$0.raiseerror()}if($ne($G($1.barcode,0,4),"JGB ")){$k[$j++]="bwipp.mailmarkBadIndicator";$k[$j++]="Royal Mail Mailmark must begin with JGB identifier";$0.raiseerror()}$p($1.options,"dontdraw",true);$p($1.options,"version",$1.version);$p($1.options,"format",$1.format);$p($1.options,"mailmark",true);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.datamatrix();var _U=$k[--$j];$1[$k[--$j]]=_U;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.qrcode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.format="unset";$1.version="unset";$1.eclevel="unset";$1.parse=false;$1.parsefnc=false;$1.mask=-1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.mask=~~$1.mask;if($ne($1.version,"unset")){if($eq($1.format,"unset")){$k[$j++]="full";if($eq($G($1.version,0,1),"M")){$j--;$k[$j++]="micro"}if($eq($G($1.version,0,1),"R")){$j--;$k[$j++]="rmqr"}$1.format=$k[--$j]}}else{if($eq($1.format,"unset")){$1.format="full"}}if($eq($1.eclevel,"unset")){$k[$j++]="eclevel";if($ne($1.format,"micro")){$k[$j++]="M"}else{$k[$j++]="L"}var _G=$k[--$j];$1[$k[--$j]]=_G}$1.fn1=-1;var _L=new Map([["parse",$1.parse],["parsefnc",$1.parsefnc],["eci",true],["FNC1",$1.fn1]]);$1.fncvals=_L;$k[$j++]="msg";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _O=$k[--$j];$1[$k[--$j]]=_O;$1.msglen=$1.msg.length;$1.fnc1first=false;if($1.msglen>0){if($g($1.msg,0)==$1.fn1){$1.fnc1first=true;$k[$j++]=Infinity;var _X=$G($1.msg,1,$1.msglen-1);for(var _Y=0,_Z=_X.length;_Y<_Z;_Y++){var _a=$g(_X,_Y);$k[$j++]=_a;if(_a==37){var _b=$k[--$j];$k[$j++]=_b;$k[$j++]=_b}}$1.msg=$a();$1.msglen=$1.msg.length}}var _e=$a(["v1to9","v10to26","v27to40","vM1","vM2","vM3","vM4","vR7x43","vR7x59","vR7x77","vR7x99","vR7x139","vR9x43","vR9x59","vR9x77","vR9x99","vR9x139","vR11x27","vR11x43","vR11x59","vR11x77","vR11x99","vR11x139","vR13x27","vR13x43","vR13x59","vR13x77","vR13x99","vR13x139","vR15x43","vR15x59","vR15x77","vR15x99","vR15x139","vR17x43","vR17x59","vR17x77","vR17x99","vR17x139"]);$k[$j++]=0;for(var _f=0,_g=_e.length;_f<_g;_f++){var _i=$k[--$j];$1[$g(_e,_f)]=_i;$k[$j++]=$f(_i+1)}$j--;$1.N=0;$1.A=1;$1.B=2;$1.K=3;$1.E=4;$k[$j++]=Infinity;$k[$j++]=Infinity;for(var _j=48;_j<=57;_j+=1){$k[$j++]=_j}var _k=$a();for(var _l=0,_m=_k.length;_l<_m;_l++){$k[$j++]=$g(_k,_l);$k[$j++]=-1}$1.Nexcl=$d();$k[$j++]=Infinity;$k[$j++]=Infinity;$k[$j++]=32;$k[$j++]=36;$k[$j++]=37;$k[$j++]=42;$k[$j++]=43;$k[$j++]=45;$k[$j++]=46;$k[$j++]=47;$k[$j++]=58;for(var _p=65;_p<=90;_p+=1){$k[$j++]=_p}$k[$j++]=$1.fn1;var _r=$a();for(var _s=0,_t=_r.length;_s<_t;_s++){$k[$j++]=$g(_r,_s);$k[$j++]=-1}$1.Aexcl=$d();$k[$j++]=Infinity;$k[$j++]=Infinity;for(var _w=0;_w<=31;_w+=1){$k[$j++]=_w}$k[$j++]=33;$k[$j++]=34;$k[$j++]=35;$k[$j++]=38;$k[$j++]=39;$k[$j++]=40;$k[$j++]=41;$k[$j++]=44;for(var _x=59;_x<=64;_x+=1){$k[$j++]=_x}for(var _y=91;_y<=127;_y+=1){$k[$j++]=_y}for(var _z=160;_z<=223;_z+=1){$k[$j++]=_z}var _10=$a();for(var _11=0,_12=_10.length;_11<_12;_11++){$k[$j++]=$g(_10,_11);$k[$j++]=-1}$1.Bexcl=$d();$k[$j++]=Infinity;$k[$j++]=Infinity;for(var _15=129;_15<=159;_15+=1){$k[$j++]=_15}for(var _16=224;_16<=235;_16+=1){$k[$j++]=_16}var _17=$a();for(var _18=0,_19=_17.length;_18<_19;_18++){$k[$j++]=$g(_17,_18);$k[$j++]=-1}$1.Kexcl=$d();$k[$j++]=Infinity;$k[$j++]=$a(["0001","0010","0100","1000","0111"]);$k[$j++]=$a(["0001","0010","0100","1000","0111"]);$k[$j++]=$a(["0001","0010","0100","1000","0111"]);$k[$j++]=$a(["",-1,-1,-1,-1]);$k[$j++]=$a(["0","1",-1,-1,-1]);$k[$j++]=$a(["00","01","10","11",-1]);$k[$j++]=$a(["000","001","010","011",-1]);for(var _1J=0,_1K=32;_1J<_1K;_1J++){$k[$j++]=$a(["001","010","011","100",-1])}$1.mids=$a();$1.cclens=$a([$a([10,9,8,8]),$a([12,11,16,10]),$a([14,13,16,12]),$a([3,-1,-1,-1]),$a([4,3,-1,-1]),$a([5,4,4,3]),$a([6,5,5,4]),$a([4,3,3,2]),$a([5,5,4,3]),$a([6,5,5,4]),$a([7,6,5,5]),$a([7,6,6,5]),$a([5,5,4,3]),$a([6,5,5,4]),$a([7,6,5,5]),$a([7,6,6,5]),$a([8,7,6,6]),$a([4,4,3,2]),$a([6,5,5,4]),$a([7,6,5,5]),$a([7,6,6,5]),$a([8,7,6,6]),$a([8,7,7,6]),$a([5,5,4,3]),$a([6,6,5,5]),$a([7,6,6,5]),$a([8,7,6,6]),$a([8,7,7,6]),$a([8,8,7,7]),$a([7,6,6,5]),$a([7,7,6,5]),$a([8,7,7,6]),$a([8,7,7,6]),$a([9,8,7,7]),$a([7,6,6,5]),$a([8,7,6,6]),$a([8,7,7,6]),$a([8,8,7,6]),$a([9,8,8,7])]);$k[$j++]=Infinity;for(var _21=0,_22=3;_21<_22;_21++){$k[$j++]=4}$k[$j++]=3;$k[$j++]=5;$k[$j++]=7;$k[$j++]=9;for(var _23=0,_24=32;_23<_24;_23++){$k[$j++]=3}$1.termlens=$a();$1.tobin=function(){var _27=$s($k[--$j]);$k[$j++]=_27;for(var _29=0,_28=_27.length-1;_29<=_28;_29+=1){var _2A=$k[--$j];$p(_2A,_29,48);$k[$j++]=_2A}var _2B=$k[--$j];var _2E=$R($s(_2B.length),$k[--$j],2);$P(_2B,_2B.length-_2E.length,_2E);$k[$j++]=_2B};$1.charmap="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";$1.charvals=new Map;for(var _2F=0;_2F<=44;_2F+=1){$p($1.charvals,$g($1.charmap,_2F),_2F)}$1.encA=function(){$1.in=$k[--$j];if($1.fnc1first){$k[$j++]=Infinity;$F($1.in,function(){var _2M=$k[--$j];$k[$j++]=_2M;if(_2M==$1.fn1){$j--;$k[$j++]=37}});$1.in=$a()}$1.out=$s(~~($1.in.length*11/2)+1);$1.k=0;$1.m=0;for(;;){if($1.k==$1.in.length){break}if($1.k<$1.in.length-1){$k[$j++]=$f($g($1.charvals,$g($1.in,$1.k))*45+$g($1.charvals,$g($1.in,$1.k+1)));$k[$j++]=11;$1.tobin();$1.k=$1.k+2}else{$k[$j++]=$g($1.charvals,$g($1.in,$1.k));$k[$j++]=6;$1.tobin();$1.k=$1.k+1}var _2m=$k[--$j];$P($1.out,$1.m,_2m);$1.m=_2m.length+$1.m}$k[$j++]=$G($1.out,0,$1.m)};$1.encN=function(){$1.in=$k[--$j];$1.out=$s(~~($1.in.length*10/3)+1);$1.k=0;$1.m=0;for(;;){if($1.k==$1.in.length){break}if($1.k<$1.in.length-2){var _32=$G($1.in,$1.k,3);$k[$j++]=0;for(var _33=0,_34=_32.length;_33<_34;_33++){var _36=$k[--$j];$k[$j++]=$f($g(_32,_33)+$f(_36*10-48))}$k[$j++]=10;$1.tobin();$1.k=$1.k+3}else{if($1.k==$1.in.length-2){var _3C=$G($1.in,$1.k,2);$k[$j++]=0;for(var _3D=0,_3E=_3C.length;_3D<_3E;_3D++){var _3G=$k[--$j];$k[$j++]=$f($g(_3C,_3D)+$f(_3G*10-48))}$k[$j++]=7;$1.tobin();$1.k=$1.k+2}else{var _3K=$G($1.in,$1.k,1);$k[$j++]=0;for(var _3L=0,_3M=_3K.length;_3L<_3M;_3L++){var _3O=$k[--$j];$k[$j++]=$f($g(_3K,_3L)+$f(_3O*10-48))}$k[$j++]=4;$1.tobin();$1.k=$1.k+1}}var _3Q=$k[--$j];$P($1.out,$1.m,_3Q);$1.m=_3Q.length+$1.m}$k[$j++]=$G($1.out,0,$1.m)};$1.encB=function(){$1.in=$k[--$j];if($1.fnc1first){$k[$j++]=Infinity;$F($1.in,function(){var _3a=$k[--$j];$k[$j++]=_3a;if(_3a==$1.fn1){$j--;$k[$j++]=29}});$1.in=$a()}$1.out=$s($1.in.length*8);for(var _3h=0,_3g=$1.in.length-1;_3h<=_3g;_3h+=1){$1.k=_3h;$k[$j++]=~~$z($g($1.in,$1.k));$k[$j++]=8;$1.tobin();$P($1.out,$1.k*8,$k[--$j])}$k[$j++]=$1.out};$1.encK=function(){$1.in=$k[--$j];$1.out=$s(~~($1.in.length/2)*13);$1.k=0;$1.m=0;for(;;){if($1.k==$1.in.length){break}var _40=$f($g($1.in,$1.k)*256+$g($1.in,$1.k+1));$k[$j++]=_40;if(_40<57408){$k[$j++]=33088}else{$k[$j++]=49472}var _41=$k[--$j];var _43=$f($k[--$j]-_41);$k[$j++]=$f((_43>>>8)*192+(_43&255));$k[$j++]=13;$1.tobin();var _44=$k[--$j];$P($1.out,$1.m,_44);$1.m=_44.length+$1.m;$1.k=$1.k+2}$k[$j++]=$1.out};$1.encE=function(){var _4C=$f(-$g($k[--$j],0)-1e6);$k[$j++]=_4C;if(_4C<=127){$k[$j++]=8;$1.tobin()}else{var _4D=$k[--$j];$k[$j++]=_4D;if(_4D<=16383){var _4E=$k[--$j];$k[$j++]=$f(_4E+32768);$k[$j++]=16;$1.tobin()}else{var _4F=$k[--$j];$k[$j++]=$f(_4F+12582912);$k[$j++]=24;$1.tobin()}}};$1.encfuncs=$a(["encN","encA","encB","encK","encE"]);$1.addtobits=function(){var _4H=$k[--$j];$P($1.bits,$1.j,_4H);$1.j=_4H.length+$1.j};$k[$j++]=Infinity;for(var _4M=0,_4N=$1.msglen;_4M<_4N;_4M++){$k[$j++]=0}$k[$j++]=0;$1.numNs=$a();$k[$j++]=Infinity;for(var _4Q=0,_4R=$1.msglen;_4Q<_4R;_4Q++){$k[$j++]=0}$k[$j++]=0;$1.numAs=$a();$k[$j++]=Infinity;for(var _4U=0,_4V=$1.msglen;_4U<_4V;_4U++){$k[$j++]=0}$k[$j++]=0;$1.numBs=$a();$k[$j++]=Infinity;for(var _4Y=0,_4Z=$1.msglen;_4Y<_4Z;_4Y++){$k[$j++]=0}$k[$j++]=-1;$1.numKs=$a();$k[$j++]=Infinity;for(var _4c=0,_4d=$1.msglen;_4c<_4d;_4c++){$k[$j++]=0}$k[$j++]=9999;$1.nextNs=$a();$k[$j++]=Infinity;for(var _4g=0,_4h=$1.msglen;_4g<_4h;_4g++){$k[$j++]=0}$k[$j++]=9999;$1.nextBs=$a();$k[$j++]=Infinity;for(var _4k=0,_4l=$1.msglen;_4k<_4l;_4k++){$k[$j++]=0}$k[$j++]=9999;$1.nextAs=$a();$k[$j++]=Infinity;for(var _4o=0,_4p=$1.msglen;_4o<_4p;_4o++){$k[$j++]=0}$k[$j++]=9999;$1.nextKs=$a();$1.isECI=$a($1.msglen);for(var _4u=$1.msglen-1;_4u>=0;_4u-=1){$1.i=_4u;$1.barchar=$g($1.msg,$1.i);var _50=$g($1.Kexcl,$1.barchar)!==undefined;if(_50){$p($1.nextKs,$1.i,0);$p($1.numKs,$1.i,$f($g($1.numKs,$1.i+1)+1))}else{$p($1.nextKs,$1.i,$f($g($1.nextKs,$1.i+1)+1))}var _5F=$g($1.Nexcl,$1.barchar)!==undefined;if(_5F){$p($1.nextNs,$1.i,0);$p($1.numNs,$1.i,$f($g($1.numNs,$1.i+1)+1))}else{$p($1.nextNs,$1.i,$f($g($1.nextNs,$1.i+1)+1))}var _5U=$g($1.Bexcl,$1.barchar)!==undefined;if(_5U){$p($1.nextBs,$1.i,0);$p($1.numBs,$1.i,$f($g($1.numBs,$1.i+1)+1))}else{$p($1.nextBs,$1.i,$f($g($1.nextBs,$1.i+1)+1))}var _5j=$g($1.Aexcl,$1.barchar)!==undefined;if(_5j){$p($1.nextAs,$1.i,0);$p($1.numAs,$1.i,$f($g($1.numAs,$1.i+1)+1))}else{$p($1.nextAs,$1.i,$f($g($1.nextAs,$1.i+1)+1))}$p($1.isECI,$1.i,$1.barchar<=-1e6)}$k[$j++]=Infinity;var _5z=$1.numKs;for(var _60=0,_61=_5z.length;_60<_61;_60++){$k[$j++]=~~($f($g(_5z,_60)+1)/2)}$1.numKs=$a();$1.KbeforeB=function(){var _67=$g($k[--$j],$1.ver);$k[$j++]=$ge($1.numK,_67)&&$g($1.nextBs,$f($1.numK*2+$1.i))==0};$1.KbeforeA=function(){var _6F=$g($k[--$j],$1.ver);$k[$j++]=$ge($1.numK,_6F)&&$g($1.nextAs,$f($1.numK*2+$1.i))==0};$1.KbeforeN=function(){var _6N=$g($k[--$j],$1.ver);$k[$j++]=$ge($1.numK,_6N)&&$g($1.nextNs,$f($1.numK*2+$1.i))==0};$1.KbeforeE=function(){var _6V=$g($k[--$j],$1.ver);$k[$j++]=$ge($1.numK,_6V)&&$f($1.numK*2+$1.i)==$1.msglen};$1.AbeforeK=function(){var _6c=$g($k[--$j],$1.ver);$k[$j++]=$ge($1.numA,_6c)&&$g($1.nextKs,$f($1.numA+$1.i))==0};$1.AbeforeB=function(){var _6k=$g($k[--$j],$1.ver);$k[$j++]=$ge($1.numA,_6k)&&$g($1.nextBs,$f($1.numA+$1.i))==0};$1.AbeforeN=function(){var _6s=$g($k[--$j],$1.ver);$k[$j++]=$ge($1.numA,_6s)&&$g($1.nextNs,$f($1.numA+$1.i))==0};$1.AbeforeE=function(){var _70=$g($k[--$j],$1.ver);$k[$j++]=$ge($1.numA,_70)&&$f($1.numA+$1.i)==$1.msglen};$1.NbeforeK=function(){var _77=$g($k[--$j],$1.ver);$k[$j++]=$ge($1.numN,_77)&&$g($1.nextKs,$f($1.numN+$1.i))==0};$1.NbeforeB=function(){var _7F=$g($k[--$j],$1.ver);$k[$j++]=$ge($1.numN,_7F)&&$g($1.nextBs,$f($1.numN+$1.i))==0};$1.NbeforeA=function(){var _7N=$g($k[--$j],$1.ver);$k[$j++]=$ge($1.numN,_7N)&&$g($1.nextAs,$f($1.numN+$1.i))==0};$1.NbeforeE=function(){var _7V=$g($k[--$j],$1.ver);$k[$j++]=$ge($1.numN,_7V)&&$f($1.numN+$1.i)==$1.msglen};if($ne($1.version,"unset")){$k[$j++]=Infinity;for(var _7a=0;_7a<=9;_7a+=1){$k[$j++]=$R($s(2),_7a,10);$k[$j++]=$1.v1to9}for(var _7e=10;_7e<=26;_7e+=1){$k[$j++]=$R($s(2),_7e,10);$k[$j++]=$1.v10to26}for(var _7i=27;_7i<=40;_7i+=1){$k[$j++]=$R($s(2),_7i,10);$k[$j++]=$1.v27to40}$k[$j++]="M1";$k[$j++]=$1.vM1;$k[$j++]="M2";$k[$j++]=$1.vM2;$k[$j++]="M3";$k[$j++]=$1.vM3;$k[$j++]="M4";$k[$j++]=$1.vM4;$k[$j++]="R7x43";$k[$j++]=$1.vR7x43;$k[$j++]="R7x59";$k[$j++]=$1.vR7x59;$k[$j++]="R7x77";$k[$j++]=$1.vR7x77;$k[$j++]="R7x99";$k[$j++]=$1.vR7x99;$k[$j++]="R7x139";$k[$j++]=$1.vR7x139;$k[$j++]="R9x43";$k[$j++]=$1.vR9x43;$k[$j++]="R9x59";$k[$j++]=$1.vR9x59;$k[$j++]="R9x77";$k[$j++]=$1.vR9x77;$k[$j++]="R9x99";$k[$j++]=$1.vR9x99;$k[$j++]="R9x139";$k[$j++]=$1.vR9x139;$k[$j++]="R11x27";$k[$j++]=$1.vR11x27;$k[$j++]="R11x43";$k[$j++]=$1.vR11x43;$k[$j++]="R11x59";$k[$j++]=$1.vR11x59;$k[$j++]="R11x77";$k[$j++]=$1.vR11x77;$k[$j++]="R11x99";$k[$j++]=$1.vR11x99;$k[$j++]="R11x139";$k[$j++]=$1.vR11x139;$k[$j++]="R13x27";$k[$j++]=$1.vR13x27;$k[$j++]="R13x43";$k[$j++]=$1.vR13x43;$k[$j++]="R13x59";$k[$j++]=$1.vR13x59;$k[$j++]="R13x77";$k[$j++]=$1.vR13x77;$k[$j++]="R13x99";$k[$j++]=$1.vR13x99;$k[$j++]="R13x139";$k[$j++]=$1.vR13x139;$k[$j++]="R15x43";$k[$j++]=$1.vR15x43;$k[$j++]="R15x59";$k[$j++]=$1.vR15x59;$k[$j++]="R15x77";$k[$j++]=$1.vR15x77;$k[$j++]="R15x99";$k[$j++]=$1.vR15x99;$k[$j++]="R15x139";$k[$j++]=$1.vR15x139;$k[$j++]="R17x43";$k[$j++]=$1.vR17x43;$k[$j++]="R17x59";$k[$j++]=$1.vR17x59;$k[$j++]="R17x77";$k[$j++]=$1.vR17x77;$k[$j++]="R17x99";$k[$j++]=$1.vR17x99;$k[$j++]="R17x139";$k[$j++]=$1.vR17x139;var _8O=$g($d(),$1.version);$k[$j++]="verset";$k[$j++]=Infinity;$k[$j++]=_8O;var _8R=$a();$1[$k[--$j]]=_8R}else{if($eq($1.format,"full")){$1.verset=$a([$1.v1to9,$1.v10to26,$1.v27to40])}if($eq($1.format,"micro")){$1.verset=$a([$1.vM1,$1.vM2,$1.vM3,$1.vM4])}}$k[$j++]=Infinity;for(var _8e=0,_8f=39;_8e<_8f;_8e++){$k[$j++]=-1}$1.msgbits=$a();$1.e=1e4;var _8h=$1.verset;for(var _8i=0,_8j=_8h.length;_8i<_8j;_8i++){$1.ver=$g(_8h,_8i);$1.mode=-1;$1.seq=$a([]);$1.i=0;for(;;){if($1.i>=$1.msglen){break}$1.numK=$g($1.numKs,$1.i);$1.numB=$g($1.numBs,$1.i);$1.numA=$g($1.numAs,$1.i);$1.numN=$g($1.numNs,$1.i);$1.eci=$g($1.isECI,$1.i);if($eq($1.ver,$1.vM1)&&$1.numA>=1){$1.seq=-1;break}if($eq($1.ver,$1.vM1)&&$1.numB>=1){$1.seq=-1;break}if($eq($1.ver,$1.vM1)&&$1.numK>=1){$1.seq=-1;break}if($eq($1.ver,$1.vM1)&&$1.eci){$1.seq=-1;break}if($eq($1.ver,$1.vM2)&&$1.numB>=1){$1.seq=-1;break}if($eq($1.ver,$1.vM2)&&$1.numK>=1){$1.seq=-1;break}if($eq($1.ver,$1.vM2)&&$1.eci){$1.seq=-1;break}if($eq($1.ver,$1.vM3)&&$1.eci){$1.seq=-1;break}if($eq($1.ver,$1.vM4)&&$1.eci){$1.seq=-1;break}if($ge($1.ver,$1.vR7x43)&&$1.eci){$1.seq=-1;break}for(;;){if($1.eci){$k[$j++]=$1.E;break}if($ge($1.ver,$1.vR7x43)){$k[$j++]=$1.B;break}if($1.mode==-1){$k[$j++]=$a([1,1,1,$1.e,$1.e,1,1]);$1.KbeforeA();if($k[--$j]){$k[$j++]=$1.K;break}$k[$j++]=$a([1,1,1,$1.e,$1.e,1,1]);$1.KbeforeN();if($k[--$j]){$k[$j++]=$1.K;break}$k[$j++]=$a([5,5,6,$1.e,$1.e,2,3]);$1.KbeforeB();if($k[--$j]){$k[$j++]=$1.K;break}$k[$j++]=$a([1,1,1,$1.e,$1.e,1,1]);$1.KbeforeE();if($k[--$j]){$k[$j++]=$1.K;break}if($1.numK>=1){$k[$j++]=$1.B;break}$k[$j++]=$a([6,7,8,$1.e,$1.e,3,4]);$1.AbeforeB();if($k[--$j]){$k[$j++]=$1.A;break}$k[$j++]=$a([1,1,1,$1.e,1,1,1]);$1.AbeforeN();if($k[--$j]){$k[$j++]=$1.A;break}$k[$j++]=$a([1,1,1,$1.e,1,1,1]);$1.AbeforeE();if($k[--$j]){$k[$j++]=$1.A;break}if($1.numA>=1){var _AF=$ne($1.ver,$1.vM2)?$1.B:$1.A;$k[$j++]=_AF;break}$k[$j++]=$a([4,4,5,$1.e,$1.e,2,3]);$1.NbeforeB();if($k[--$j]){$k[$j++]=$1.N;break}$k[$j++]=$a([1,1,1,$1.e,$1.e,1,1]);$1.NbeforeB();if($k[--$j]){$k[$j++]=$1.B;break}$k[$j++]=$a([7,8,9,$1.e,3,4,5]);$1.NbeforeA();if($k[--$j]){$k[$j++]=$1.N;break}$k[$j++]=$a([1,1,1,$1.e,1,1,1]);$1.NbeforeA();if($k[--$j]){$k[$j++]=$1.A;break}if($1.numN>=1){$k[$j++]=$1.N;break}$k[$j++]=$1.B;break}if($1.mode==$1.B){$k[$j++]=$a([9,12,13,$1.e,$1.e,4,5]);$1.KbeforeB();if($k[--$j]){$k[$j++]=$1.K;break}$k[$j++]=$a([9,10,12,$1.e,$1.e,4,5]);$1.KbeforeA();if($k[--$j]){$k[$j++]=$1.K;break}$k[$j++]=$a([9,10,11,$1.e,$1.e,5,6]);$1.KbeforeN();if($k[--$j]){$k[$j++]=$1.K;break}$k[$j++]=$a([4,5,6,$1.e,$1.e,2,3]);$1.KbeforeE();if($k[--$j]){$k[$j++]=$1.K;break}$k[$j++]=$a([11,12,14,$1.e,$1.e,5,7]);$1.AbeforeK();if($k[--$j]){$k[$j++]=$1.A;break}$k[$j++]=$a([11,15,16,$1.e,$1.e,6,7]);$1.AbeforeB();if($k[--$j]){$k[$j++]=$1.A;break}$k[$j++]=$a([12,13,15,$1.e,$1.e,6,8]);$1.AbeforeN();if($k[--$j]){$k[$j++]=$1.A;break}$k[$j++]=$a([6,7,8,$1.e,$1.e,3,4]);$1.AbeforeE();if($k[--$j]){$k[$j++]=$1.A;break}$k[$j++]=$a([6,7,8,$1.e,$1.e,3,4]);$1.NbeforeK();if($k[--$j]){$k[$j++]=$1.N;break}$k[$j++]=$a([6,8,9,$1.e,$1.e,3,4]);$1.NbeforeB();if($k[--$j]){$k[$j++]=$1.N;break}$k[$j++]=$a([6,7,8,$1.e,$1.e,3,4]);$1.NbeforeA();if($k[--$j]){$k[$j++]=$1.N;break}$k[$j++]=$a([3,4,5,$1.e,$1.e,2,3]);$1.NbeforeE();if($k[--$j]){$k[$j++]=$1.N;break}$k[$j++]=$1.B;break}if($1.mode==$1.A){if($1.numK>=1){$k[$j++]=$1.K;break}if($1.numB>=1){$k[$j++]=$1.B;break}$k[$j++]=$a([13,15,17,$1.e,5,7,9]);$1.NbeforeA();if($k[--$j]){$k[$j++]=$1.N;break}$k[$j++]=$a([13,17,18,$1.e,$1.e,7,9]);$1.NbeforeB();if($k[--$j]){$k[$j++]=$1.N;break}$k[$j++]=$a([7,8,9,$1.e,3,4,5]);$1.NbeforeE();if($k[--$j]){$k[$j++]=$1.N;break}if($1.numA>=1||$1.numN>=1){$k[$j++]=$1.A;break}$k[$j++]=$1.B;break}if($1.mode==$1.N){if($1.numK>=1){$k[$j++]=$1.K;break}if($1.numB>=1){$k[$j++]=$1.B;break}if($1.numA>=1){$k[$j++]=$1.A;break}if($1.numN>=1){$k[$j++]=$1.N;break}$k[$j++]=$1.B;break}if($1.mode==$1.K){if($1.numB>=1){$k[$j++]=$1.B;break}if($1.numA>=1){$k[$j++]=$1.A;break}if($1.numN>=1){$k[$j++]=$1.N;break}if($1.numK>=1){$k[$j++]=$1.K;break}$k[$j++]=$1.B;break}}var _CL=$k[--$j];$k[$j++]=_CL;if(_CL==$1.K&&$1.fnc1first){$j--;$k[$j++]=$1.B}var _CP=$k[--$j];$k[$j++]=_CP;if(_CP==$1.mode){$j--;var _CV=$1.mode==$1.K?2:1;$1.dat=$G($1.msg,$1.i,_CV);$k[$j++]=Infinity;$q($1.seq);$k[$j++]=Infinity;var _CY=$k[--$j];var _CZ=$k[--$j];$k[$j++]=_CY;$q(_CZ);$q($1.dat);var _Cb=$a();$k[$j++]=_Cb;$1.seq=$a()}else{$1.mode=$k[--$j];if($1.mode==$1.K){$k[$j++]=$1.K;$k[$j++]=$G($1.msg,$1.i,$1.numK*2)}if($1.mode==$1.B){$k[$j++]=$1.B;$k[$j++]=$G($1.msg,$1.i,$1.numB)}if($1.mode==$1.A){$k[$j++]=$1.A;$k[$j++]=$G($1.msg,$1.i,$1.numA)}if($1.mode==$1.N){$k[$j++]=$1.N;$k[$j++]=$G($1.msg,$1.i,$1.numN)}if($1.mode==$1.E){$1.mode=-1;$k[$j++]=$1.E;$k[$j++]=$G($1.msg,$1.i,1)}$1.dat=$k[--$j];$1.sw=$k[--$j];$k[$j++]=Infinity;$q($1.seq);$k[$j++]=$1.sw;$k[$j++]=$1.dat;$1.seq=$a()}$1.i=$1.i+$1.dat.length}for(;;){if($1.seq==-1){break}$1.bits=$s(23648);$1.j=0;if($1.fnc1first){if($lt($1.ver,$1.vR7x43)){$k[$j++]="0101"}else{$k[$j++]="101"}$1.addtobits()}$1.abort=false;for(var _DR=0,_DQ=$1.seq.length-1;_DR<=_DQ;_DR+=2){$1.i=_DR;$1.mode=$g($1.seq,$1.i);$k[$j++]=$g($g($1.mids,$1.ver),$1.mode);$1.addtobits();$1.chars=$g($1.seq,$1.i+1);if($1.mode!=$1.E){$1.cclen=$g($g($1.cclens,$1.ver),$1.mode);if($1.chars.length>=~~Math.pow(2,$1.cclen)){$1.abort=true;break}$k[$j++]=$1.chars.length;if($1.mode==$1.K){var _Dp=$k[--$j];$k[$j++]=~~(_Dp/2)}$k[$j++]=$1.cclen;$1.tobin();$1.addtobits()}$k[$j++]=$1.chars;if($1[$g($1.encfuncs,$1.mode)]()===true){break}$1.addtobits()}if($1.abort){break}$1.bits=$G($1.bits,0,$1.j);$p($1.msgbits,$1.ver,$1.bits);break}}$1.metrics=$a([$a(["micro","M1",$1.vM1,11,11,98,99,36,$a([2,99,99,99]),$a([1,0,-1,-1,-1,-1,-1,-1])]),$a(["micro","M2",$1.vM2,13,13,98,99,80,$a([5,6,99,99]),$a([1,0,1,0,-1,-1,-1,-1])]),$a(["micro","M3",$1.vM3,15,15,98,99,132,$a([6,8,99,99]),$a([1,0,1,0,-1,-1,-1,-1])]),$a(["micro","M4",$1.vM4,17,17,98,99,192,$a([8,10,14,99]),$a([1,0,1,0,1,0,-1,-1])]),$a(["full","1",$1.v1to9,21,21,98,99,208,$a([7,10,13,17]),$a([1,0,1,0,1,0,1,0])]),$a(["full","2",$1.v1to9,25,25,18,99,359,$a([10,16,22,28]),$a([1,0,1,0,1,0,1,0])]),$a(["full","3",$1.v1to9,29,29,22,99,567,$a([15,26,36,44]),$a([1,0,1,0,2,0,2,0])]),$a(["full","4",$1.v1to9,33,33,26,99,807,$a([20,36,52,64]),$a([1,0,2,0,2,0,4,0])]),$a(["full","5",$1.v1to9,37,37,30,99,1079,$a([26,48,72,88]),$a([1,0,2,0,2,2,2,2])]),$a(["full","6",$1.v1to9,41,41,34,99,1383,$a([36,64,96,112]),$a([2,0,4,0,4,0,4,0])]),$a(["full","7",$1.v1to9,45,45,22,38,1568,$a([40,72,108,130]),$a([2,0,4,0,2,4,4,1])]),$a(["full","8",$1.v1to9,49,49,24,42,1936,$a([48,88,132,156]),$a([2,0,2,2,4,2,4,2])]),$a(["full","9",$1.v1to9,53,53,26,46,2336,$a([60,110,160,192]),$a([2,0,3,2,4,4,4,4])]),$a(["full","10",$1.v10to26,57,57,28,50,2768,$a([72,130,192,224]),$a([2,2,4,1,6,2,6,2])]),$a(["full","11",$1.v10to26,61,61,30,54,3232,$a([80,150,224,264]),$a([4,0,1,4,4,4,3,8])]),$a(["full","12",$1.v10to26,65,65,32,58,3728,$a([96,176,260,308]),$a([2,2,6,2,4,6,7,4])]),$a(["full","13",$1.v10to26,69,69,34,62,4256,$a([104,198,288,352]),$a([4,0,8,1,8,4,12,4])]),$a(["full","14",$1.v10to26,73,73,26,46,4651,$a([120,216,320,384]),$a([3,1,4,5,11,5,11,5])]),$a(["full","15",$1.v10to26,77,77,26,48,5243,$a([132,240,360,432]),$a([5,1,5,5,5,7,11,7])]),$a(["full","16",$1.v10to26,81,81,26,50,5867,$a([144,280,408,480]),$a([5,1,7,3,15,2,3,13])]),$a(["full","17",$1.v10to26,85,85,30,54,6523,$a([168,308,448,532]),$a([1,5,10,1,1,15,2,17])]),$a(["full","18",$1.v10to26,89,89,30,56,7211,$a([180,338,504,588]),$a([5,1,9,4,17,1,2,19])]),$a(["full","19",$1.v10to26,93,93,30,58,7931,$a([196,364,546,650]),$a([3,4,3,11,17,4,9,16])]),$a(["full","20",$1.v10to26,97,97,34,62,8683,$a([224,416,600,700]),$a([3,5,3,13,15,5,15,10])]),$a(["full","21",$1.v10to26,101,101,28,50,9252,$a([224,442,644,750]),$a([4,4,17,0,17,6,19,6])]),$a(["full","22",$1.v10to26,105,105,26,50,10068,$a([252,476,690,816]),$a([2,7,17,0,7,16,34,0])]),$a(["full","23",$1.v10to26,109,109,30,54,10916,$a([270,504,750,900]),$a([4,5,4,14,11,14,16,14])]),$a(["full","24",$1.v10to26,113,113,28,54,11796,$a([300,560,810,960]),$a([6,4,6,14,11,16,30,2])]),$a(["full","25",$1.v10to26,117,117,32,58,12708,$a([312,588,870,1050]),$a([8,4,8,13,7,22,22,13])]),$a(["full","26",$1.v10to26,121,121,30,58,13652,$a([336,644,952,1110]),$a([10,2,19,4,28,6,33,4])]),$a(["full","27",$1.v27to40,125,125,34,62,14628,$a([360,700,1020,1200]),$a([8,4,22,3,8,26,12,28])]),$a(["full","28",$1.v27to40,129,129,26,50,15371,$a([390,728,1050,1260]),$a([3,10,3,23,4,31,11,31])]),$a(["full","29",$1.v27to40,133,133,30,54,16411,$a([420,784,1140,1350]),$a([7,7,21,7,1,37,19,26])]),$a(["full","30",$1.v27to40,137,137,26,52,17483,$a([450,812,1200,1440]),$a([5,10,19,10,15,25,23,25])]),$a(["full","31",$1.v27to40,141,141,30,56,18587,$a([480,868,1290,1530]),$a([13,3,2,29,42,1,23,28])]),$a(["full","32",$1.v27to40,145,145,34,60,19723,$a([510,924,1350,1620]),$a([17,0,10,23,10,35,19,35])]),$a(["full","33",$1.v27to40,149,149,30,58,20891,$a([540,980,1440,1710]),$a([17,1,14,21,29,19,11,46])]),$a(["full","34",$1.v27to40,153,153,34,62,22091,$a([570,1036,1530,1800]),$a([13,6,14,23,44,7,59,1])]),$a(["full","35",$1.v27to40,157,157,30,54,23008,$a([570,1064,1590,1890]),$a([12,7,12,26,39,14,22,41])]),$a(["full","36",$1.v27to40,161,161,24,50,24272,$a([600,1120,1680,1980]),$a([6,14,6,34,46,10,2,64])]),$a(["full","37",$1.v27to40,165,165,28,54,25568,$a([630,1204,1770,2100]),$a([17,4,29,14,49,10,24,46])]),$a(["full","38",$1.v27to40,169,169,32,58,26896,$a([660,1260,1860,2220]),$a([4,18,13,32,48,14,42,32])]),$a(["full","39",$1.v27to40,173,173,26,54,28256,$a([720,1316,1950,2310]),$a([20,4,40,7,43,22,10,67])]),$a(["full","40",$1.v27to40,177,177,30,58,29648,$a([750,1372,2040,2430]),$a([19,6,18,31,34,34,20,61])]),$a(["rmqr","R7x43",$1.vR7x43,7,43,22,99,104,$a([99,7,99,10]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R7x59",$1.vR7x59,7,59,20,40,171,$a([99,9,99,14]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R7x77",$1.vR7x77,7,77,26,52,261,$a([99,12,99,22]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R7x99",$1.vR7x99,7,99,24,50,358,$a([99,16,99,30]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R7x139",$1.vR7x139,7,139,28,56,545,$a([99,24,99,44]),$a([-1,-1,1,0,-1,-1,2,0])]),$a(["rmqr","R9x43",$1.vR9x43,9,43,22,99,170,$a([99,9,99,14]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R9x59",$1.vR9x59,9,59,20,40,267,$a([99,12,99,22]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R9x77",$1.vR9x77,9,77,26,52,393,$a([99,18,99,32]),$a([-1,-1,1,0,-1,-1,1,1])]),$a(["rmqr","R9x99",$1.vR9x99,9,99,24,50,532,$a([99,24,99,44]),$a([-1,-1,1,0,-1,-1,2,0])]),$a(["rmqr","R9x139",$1.vR9x139,9,139,28,56,797,$a([99,36,99,66]),$a([-1,-1,1,1,-1,-1,3,0])]),$a(["rmqr","R11x27",$1.vR11x27,11,27,98,99,122,$a([99,8,99,10]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R11x43",$1.vR11x43,11,43,22,99,249,$a([99,12,99,20]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R11x59",$1.vR11x59,11,59,20,40,376,$a([99,16,99,32]),$a([-1,-1,1,0,-1,-1,1,1])]),$a(["rmqr","R11x77",$1.vR11x77,11,77,26,52,538,$a([99,24,99,44]),$a([-1,-1,1,0,-1,-1,1,1])]),$a(["rmqr","R11x99",$1.vR11x99,11,99,24,50,719,$a([99,32,99,60]),$a([-1,-1,1,1,-1,-1,1,1])]),$a(["rmqr","R11x139",$1.vR11x139,11,139,28,56,1062,$a([99,48,99,90]),$a([-1,-1,2,0,-1,-1,3,0])]),$a(["rmqr","R13x27",$1.vR13x27,13,27,98,99,172,$a([99,9,99,14]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R13x43",$1.vR13x43,13,43,22,99,329,$a([99,14,99,28]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R13x59",$1.vR13x59,13,59,20,40,486,$a([99,22,99,40]),$a([-1,-1,1,0,-1,-1,2,0])]),$a(["rmqr","R13x77",$1.vR13x77,13,77,26,52,684,$a([99,32,99,56]),$a([-1,-1,1,1,-1,-1,1,1])]),$a(["rmqr","R13x99",$1.vR13x99,13,99,24,50,907,$a([99,40,99,78]),$a([-1,-1,1,1,-1,-1,1,2])]),$a(["rmqr","R13x139",$1.vR13x139,13,139,28,56,1328,$a([99,60,99,112]),$a([-1,-1,2,1,-1,-1,2,2])]),$a(["rmqr","R15x43",$1.vR15x43,15,43,22,99,409,$a([99,18,99,36]),$a([-1,-1,1,0,-1,-1,1,1])]),$a(["rmqr","R15x59",$1.vR15x59,15,59,20,40,596,$a([99,26,99,48]),$a([-1,-1,1,0,-1,-1,2,0])]),$a(["rmqr","R15x77",$1.vR15x77,15,77,26,52,830,$a([99,36,99,72]),$a([-1,-1,1,1,-1,-1,2,1])]),$a(["rmqr","R15x99",$1.vR15x99,15,99,24,50,1095,$a([99,48,99,88]),$a([-1,-1,2,0,-1,-1,4,0])]),$a(["rmqr","R15x139",$1.vR15x139,15,139,28,56,1594,$a([99,72,99,130]),$a([-1,-1,2,1,-1,-1,1,4])]),$a(["rmqr","R17x43",$1.vR17x43,17,43,22,99,489,$a([99,22,99,40]),$a([-1,-1,1,0,-1,-1,1,1])]),$a(["rmqr","R17x59",$1.vR17x59,17,59,20,40,706,$a([99,32,99,60]),$a([-1,-1,2,0,-1,-1,2,0])]),$a(["rmqr","R17x77",$1.vR17x77,17,77,26,52,976,$a([99,44,99,84]),$a([-1,-1,2,0,-1,-1,1,2])]),$a(["rmqr","R17x99",$1.vR17x99,17,99,24,50,1283,$a([99,60,99,104]),$a([-1,-1,2,1,-1,-1,4,0])]),$a(["rmqr","R17x139",$1.vR17x139,17,139,28,56,1860,$a([99,80,99,156]),$a([-1,-1,4,0,-1,-1,2,4])])]);$k[$j++]="eclval";$x("LMQH",$1.eclevel);$j--;var _Iz=$k[--$j];var _J0=$k[--$j];$k[$j++]=_Iz.length;$k[$j++]=_J0;$j--;var _J1=$k[--$j];var _J2=$k[--$j];$k[$j++]=_J1;$k[$j++]=_J2;$j--;var _J3=$k[--$j];$1[$k[--$j]]=_J3;for(var _J7=0,_J6=$1.metrics.length-1;_J7<=_J6;_J7+=1){$1.i=_J7;$1.m=$g($1.metrics,$1.i);$1.frmt=$g($1.m,0);$1.vers=$g($1.m,1);$1.vergrp=$g($1.m,2);$1.verind=$1.i-44;$1.rows=$g($1.m,3);$1.cols=$g($1.m,4);$1.asp2=$g($1.m,5);$1.asp3=$g($1.m,6);$1.nmod=$g($1.m,7);$1.ncws=~~($1.nmod/8);$1.rbit=$1.nmod%8;$1.lc4b=false;if($eq($1.vers,"M1")||$eq($1.vers,"M3")){$1.ncws=$1.ncws+1;$1.rbit=0;$1.lc4b=true}$1.ecws=$g($g($1.m,8),$1.eclval);$1.dcws=$f($1.ncws-$1.ecws);var _Jf=$1.lc4b?4:0;$1.dmod=$f($1.dcws*8-_Jf);$1.ecb1=$g($g($1.m,9),$1.eclval*2);$1.ecb2=$g($g($1.m,9),$f($1.eclval*2+1));$1.okay=true;if($ne($1.format,$1.frmt)){$1.okay=false}if($eq($1.frmt,"micro")&&$1.fnc1first){$1.okay=false}if($ne($1.version,"unset")&&$ne($1.version,$1.vers)){$1.okay=false}if($1.ecb1==-1||$1.ecb2==-1){$1.okay=false}$1.verbits=$g($1.msgbits,$1.vergrp);if($1.verbits==-1){$1.okay=false}else{if($1.verbits.length>$1.dmod){$1.okay=false}}$1.term=$G("000000000",0,$g($1.termlens,$1.vergrp));if($1.okay){break}}if(!$1.okay){$k[$j++]="bwipp.qrcodeNoValidSymbol";$k[$j++]="No valid symbol available";$0.raiseerror()}$1.format=$1.frmt;$1.version=$1.vers;$1.msgbits=$1.verbits;$1.dcpb=~~($1.dcws/$f($1.ecb1+$1.ecb2));$1.ecpb=~~($1.ncws/$f($1.ecb1+$1.ecb2))-$1.dcpb;var _KJ=$1.term;var _KK=$1.dmod;var _KL=$1.msgbits;var _KM=$1.term;var _KN=_KM.length;var _KO=$f(_KK-_KL.length);if($f(_KK-_KL.length)>_KM.length){var _=_KN;_KN=_KO;_KO=_}$1.term=$G(_KJ,0,_KO);var _KS=$s($1.msgbits.length+$1.term.length);$P(_KS,0,$1.msgbits);$P(_KS,$1.msgbits.length,$1.term);$1.msgbits=_KS;$1.pad=$s($1.dmod);for(var _Ka=0,_KZ=$1.pad.length-1;_Ka<=_KZ;_Ka+=1){$p($1.pad,_Ka,48)}$P($1.pad,0,$1.msgbits);$1.padstrs=$a(["11101100","00010001"]);$1.padnum=0;var _Ki=$1.lc4b?5:1;for(var _Kk=~~(Math.ceil($1.msgbits.length/8)*8),_Kj=$f($1.dmod-_Ki);_Kk<=_Kj;_Kk+=8){$P($1.pad,_Kk,$g($1.padstrs,$1.padnum));$1.padnum=($1.padnum+1)%2}$1.cws=$a($1.dcws);for(var _Ku=0,_Kt=$1.cws.length-1;_Ku<=_Kt;_Ku+=1){$1.c=_Ku;$1.bpcw=8;if($1.lc4b&&$1.c==$1.cws.length-1){$1.bpcw=4}$1.cwb=$G($1.pad,$1.c*8,$1.bpcw);$1.cw=0;for(var _L4=0,_L3=$1.bpcw-1;_L4<=_L3;_L4+=1){$1.i=_L4;$1.cw=$f($1.cw+~~Math.pow(2,$1.bpcw-$1.i-1)*$f($g($1.cwb,$1.i)-48))}$p($1.cws,$1.c,$1.cw)}if($1.lc4b){var _LF=$1.cws;var _LG=$1.cws;$p(_LF,_LG.length-1,$g(_LF,_LG.length-1)<<4)}var _LJ=$g($1.options,"debugcws")!==undefined;if(_LJ){$k[$j++]="bwipp.debugcws";$k[$j++]=$1.cws;$0.raiseerror()}$k[$j++]=Infinity;$k[$j++]=1;for(var _LL=0,_LM=255;_LL<_LM;_LL++){var _LN=$k[--$j];var _LO=_LN*2;$k[$j++]=_LN;$k[$j++]=_LO;if(_LO>=256){var _LP=$k[--$j];$k[$j++]=_LP^285}}$1.rsalog=$a();$1.rslog=$a(256);for(var _LS=1;_LS<=255;_LS+=1){$p($1.rslog,$g($1.rsalog,_LS),_LS)}$1.rsprod=function(){var _LW=$k[--$j];var _LX=$k[--$j];$k[$j++]=_LX;$k[$j++]=_LW;if(_LW!=0&&_LX!=0){var _La=$g($1.rslog,$k[--$j]);var _Lf=$g($1.rsalog,$f(_La+$g($1.rslog,$k[--$j]))%255);$k[$j++]=_Lf}else{$j-=2;$k[$j++]=0}};$k[$j++]=Infinity;$k[$j++]=1;for(var _Lh=0,_Li=$1.ecpb;_Lh<_Li;_Lh++){$k[$j++]=0}$1.coeffs=$a();for(var _Lm=0,_Ll=$1.ecpb-1;_Lm<=_Ll;_Lm+=1){$1.i=_Lm;$p($1.coeffs,$1.i+1,$g($1.coeffs,$1.i));for(var _Lt=$1.i;_Lt>=1;_Lt-=1){$1.j=_Lt;$k[$j++]=$1.coeffs;$k[$j++]=$1.j;$k[$j++]=$g($1.coeffs,$1.j-1);$k[$j++]=$g($1.coeffs,$1.j);$k[$j++]=$g($1.rsalog,$1.i);$1.rsprod();var _M5=$k[--$j];var _M6=$k[--$j];var _M7=$k[--$j];$p($k[--$j],_M7,$xo(_M6,_M5))}$k[$j++]=$1.coeffs;$k[$j++]=0;$k[$j++]=$g($1.coeffs,0);$k[$j++]=$g($1.rsalog,$1.i);$1.rsprod();var _MF=$k[--$j];var _MG=$k[--$j];$p($k[--$j],_MG,_MF)}$1.coeffs=$G($1.coeffs,0,$1.coeffs.length-1);$1.rscodes=function(){$1.rscws=$k[--$j];$1.rsnd=$1.rscws.length;$k[$j++]=Infinity;$F($1.rscws);for(var _MP=0,_MQ=$1.ecpb;_MP<_MQ;_MP++){$k[$j++]=0}$1.rscws=$a();for(var _MU=0,_MT=$1.rsnd-1;_MU<=_MT;_MU+=1){$1.m=_MU;$1.k=$g($1.rscws,$1.m);for(var _Ma=0,_MZ=$1.ecpb-1;_Ma<=_MZ;_Ma+=1){$1.j=_Ma;$k[$j++]=$1.rscws;$k[$j++]=$1.m+$1.j+1;$k[$j++]=$g($1.coeffs,$1.ecpb-$1.j-1);$k[$j++]=$1.k;$1.rsprod();var _Mn=$k[--$j];var _Mo=$k[--$j];$p($k[--$j],_Mo,$xo(_Mn,$g($1.rscws,$1.m+$1.j+1)))}}$k[$j++]=$G($1.rscws,$1.rsnd,$1.ecpb)};$1.dcwsb=$a($f($1.ecb1+$1.ecb2));$1.ecwsb=$a($f($1.ecb1+$1.ecb2));for(var _N2=0,_N1=$f($1.ecb1-1);_N2<=_N1;_N2+=1){$1.i=_N2;$p($1.dcwsb,$1.i,$G($1.cws,$1.i*$1.dcpb,$1.dcpb));$k[$j++]=$1.ecwsb;$k[$j++]=$1.i;$k[$j++]=$g($1.dcwsb,$1.i);$1.rscodes();var _NF=$k[--$j];var _NG=$k[--$j];$p($k[--$j],_NG,_NF)}for(var _NK=0,_NJ=$f($1.ecb2-1);_NK<=_NJ;_NK+=1){$1.i=_NK;$p($1.dcwsb,$f($1.ecb1+$1.i),$G($1.cws,$f($1.ecb1*$1.dcpb+$1.i*($1.dcpb+1)),$1.dcpb+1));$k[$j++]=$1.ecwsb;$k[$j++]=$f($1.ecb1+$1.i);$k[$j++]=$g($1.dcwsb,$f($1.ecb1+$1.i));$1.rscodes();var _Nc=$k[--$j];var _Nd=$k[--$j];$p($k[--$j],_Nd,_Nc)}$1.cws=$a($1.ncws);$1.cw=0;for(var _Nj=0,_Ni=$1.dcpb;_Nj<=_Ni;_Nj+=1){$1.i=_Nj;for(var _Nn=0,_Nm=$f($f($1.ecb1+$1.ecb2)-1);_Nn<=_Nm;_Nn+=1){$1.j=_Nn;if($1.i<$g($1.dcwsb,$1.j).length){$p($1.cws,$1.cw,$g($g($1.dcwsb,$1.j),$1.i));$1.cw=$1.cw+1}}}for(var _O2=0,_O1=$1.ecpb-1;_O2<=_O1;_O2+=1){$1.i=_O2;for(var _O6=0,_O5=$f($f($1.ecb1+$1.ecb2)-1);_O6<=_O5;_O6+=1){$1.j=_O6;$p($1.cws,$1.cw,$g($g($1.ecwsb,$1.j),$1.i));$1.cw=$1.cw+1}}if($1.rbit>0){$1.pad=$a($1.cws.length+1);$P($1.pad,0,$1.cws);$p($1.pad,$1.pad.length-1,0);$1.cws=$1.pad}if($1.lc4b){var _OO=$1.cws;var _OP=$1.dcws;$p(_OO,$f(_OP-1),$g(_OO,$f(_OP-1))>>>4);for(var _OU=$f($1.dcws-1),_OT=$1.ncws-2;_OU<=_OT;_OU+=1){$1.i=_OU;$p($1.cws,$1.i,($g($1.cws,$1.i)&15)<<4);$p($1.cws,$1.i,$g($1.cws,$1.i+1)>>>4&15|$g($1.cws,$1.i))}$p($1.cws,$1.ncws-1,($g($1.cws,$1.ncws-1)&15)<<4)}var _Oo=$g($1.options,"debugecc")!==undefined;if(_Oo){$k[$j++]="bwipp.debugecc";$k[$j++]=$1.cws;$0.raiseerror()}$k[$j++]=Infinity;for(var _Os=0,_Ot=$1.rows*$1.cols;_Os<_Ot;_Os++){$k[$j++]=-1}$1.pixs=$a();$1.qmv=function(){var _Ow=$k[--$j];var _Ox=$k[--$j];$k[$j++]=$f(_Ox+_Ow*$1.cols)};if($eq($1.format,"full")){for(var _P1=8,_P0=$f($1.cols-9);_P1<=_P0;_P1+=1){$1.i=_P1;$k[$j++]=$1.pixs;$k[$j++]=$1.i;$k[$j++]=6;$1.qmv();var _P5=$k[--$j];$p($k[--$j],_P5,($1.i+1)%2);$k[$j++]=$1.pixs;$k[$j++]=6;$k[$j++]=$1.i;$1.qmv();var _PA=$k[--$j];$p($k[--$j],_PA,($1.i+1)%2)}}if($eq($1.format,"micro")){for(var _PF=8,_PE=$f($1.cols-1);_PF<=_PE;_PF+=1){$1.i=_PF;$k[$j++]=$1.pixs;$k[$j++]=$1.i;$k[$j++]=0;$1.qmv();var _PJ=$k[--$j];$p($k[--$j],_PJ,($1.i+1)%2);$k[$j++]=$1.pixs;$k[$j++]=0;$k[$j++]=$1.i;$1.qmv();var _PO=$k[--$j];$p($k[--$j],_PO,($1.i+1)%2)}}if($eq($1.format,"rmqr")){for(var _PT=3,_PS=$f($1.cols-4);_PT<=_PS;_PT+=1){$1.i=_PT;$k[$j++]=$1.pixs;$k[$j++]=$1.i;$k[$j++]=0;$1.qmv();var _PX=$k[--$j];$p($k[--$j],_PX,($1.i+1)%2);$k[$j++]=$1.pixs;$k[$j++]=$1.i;$k[$j++]=$f($1.rows-1);$1.qmv();var _Pd=$k[--$j];$p($k[--$j],_Pd,($1.i+1)%2)}for(var _Ph=3,_Pg=$f($1.rows-4);_Ph<=_Pg;_Ph+=1){$1.i=_Ph;$k[$j++]=$1.pixs;$k[$j++]=0;$k[$j++]=$1.i;$1.qmv();var _Pl=$k[--$j];$p($k[--$j],_Pl,($1.i+1)%2);$k[$j++]=$1.pixs;$k[$j++]=$f($1.cols-1);$k[$j++]=$1.i;$1.qmv();var _Pr=$k[--$j];$p($k[--$j],_Pr,($1.i+1)%2)}for(var _Py=$f($1.asp2-1),_Pz=$f($1.asp3-$1.asp2),_Px=$f($1.cols-13);_Pz<0?_Py>=_Px:_Py<=_Px;_Py+=_Pz){$1.i=_Py;for(var _Q2=3,_Q1=$f($1.rows-4);_Q2<=_Q1;_Q2+=1){$1.j=_Q2;$k[$j++]=$1.pixs;$k[$j++]=$1.i;$k[$j++]=$1.j;$1.qmv();var _Q7=$k[--$j];$p($k[--$j],_Q7,($1.j+1)%2)}}}$1.fpat=$a([$a([1,1,1,1,1,1,1,0]),$a([1,0,0,0,0,0,1,0]),$a([1,0,1,1,1,0,1,0]),$a([1,0,1,1,1,0,1,0]),$a([1,0,1,1,1,0,1,0]),$a([1,0,0,0,0,0,1,0]),$a([1,1,1,1,1,1,1,0]),$a([0,0,0,0,0,0,0,0])]);$1.fsubpat=$a([$a([1,1,1,1,1,9,9,9]),$a([1,0,0,0,1,9,9,9]),$a([1,0,1,0,1,9,9,9]),$a([1,0,0,0,1,9,9,9]),$a([1,1,1,1,1,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9])]);$1.fcorpat=$a([$a([1,1,1,9,9,9,9,9]),$a([1,0,9,9,9,9,9,9]),$a([1,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9])]);$1.fnullpat=$a([$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9])]);var _Qy=new Map([["full",$a([$1.fpat,$1.fpat,$1.fpat,$1.fnullpat])],["micro",$a([$1.fpat,$1.fnullpat,$1.fnullpat,$1.fnullpat])],["rmqr",$a([$1.fpat,$1.fcorpat,$1.fcorpat,$1.fsubpat])]]);$1.fpats=$g(_Qy,$1.format);for(var _R1=0;_R1<=7;_R1+=1){$1.y=_R1;for(var _R2=0;_R2<=7;_R2+=1){$1.x=_R2;$1.fpb0=$g($g($g($1.fpats,0),$1.y),$1.x);$1.fpb1=$g($g($g($1.fpats,1),$1.y),$1.x);$1.fpb2=$g($g($g($1.fpats,2),$1.y),$1.x);$1.fpb3=$g($g($g($1.fpats,3),$1.y),$1.x);if($1.fpb0!=9&&$1.y<$1.rows){$k[$j++]=$1.pixs;$k[$j++]=$1.x;$k[$j++]=$1.y;$1.qmv();var _RY=$k[--$j];$p($k[--$j],_RY,$1.fpb0)}if($1.fpb1!=9){$k[$j++]=$1.pixs;$k[$j++]=$f($f($1.cols-$1.x)-1);$k[$j++]=$1.y;$1.qmv();var _Rg=$k[--$j];$p($k[--$j],_Rg,$1.fpb1)}if($1.fpb2!=9){$k[$j++]=$1.pixs;$k[$j++]=$1.x;$k[$j++]=$f($f($1.rows-$1.y)-1);$1.qmv();var _Ro=$k[--$j];$p($k[--$j],_Ro,$1.fpb2)}if($1.fpb3!=9){$k[$j++]=$1.pixs;$k[$j++]=$f($f($1.cols-$1.x)-1);$k[$j++]=$f($f($1.rows-$1.y)-1);$1.qmv();var _Rx=$k[--$j];$p($k[--$j],_Rx,$1.fpb3)}}}$1.putalgnpat=function(){$1.py=$k[--$j];$1.px=$k[--$j];for(var _S1=0;_S1<=4;_S1+=1){$1.pb=_S1;for(var _S2=0;_S2<=4;_S2+=1){$1.pa=_S2;$1.algnb=$g($g($1.algnpat,$1.pb),$1.pa);if($1.algnb!=9){$k[$j++]=$1.pixs;$k[$j++]=$f($1.px+$1.pa);$k[$j++]=$f($1.py+$1.pb);$1.qmv();var _SF=$k[--$j];$p($k[--$j],_SF,$1.algnb)}}}};if($eq($1.format,"full")){$1.algnpat=$a([$a([1,1,1,1,1]),$a([1,0,0,0,1]),$a([1,0,1,0,1]),$a([1,0,0,0,1]),$a([1,1,1,1,1])]);for(var _ST=$f($1.asp2-2),_SU=$f($1.asp3-$1.asp2),_SS=$f($1.cols-13);_SU<0?_ST>=_SS:_ST<=_SS;_ST+=_SU){$1.i=_ST;$k[$j++]=$1.i;$k[$j++]=4;$1.putalgnpat();$k[$j++]=4;$k[$j++]=$1.i;$1.putalgnpat()}for(var _Sc=$f($1.asp2-2),_Sd=$f($1.asp3-$1.asp2),_Sb=$f($1.cols-9);_Sd<0?_Sc>=_Sb:_Sc<=_Sb;_Sc+=_Sd){$1.x=_Sc;for(var _Sj=$f($1.asp2-2),_Sk=$f($1.asp3-$1.asp2),_Si=$f($1.rows-9);_Sk<0?_Sj>=_Si:_Sj<=_Si;_Sj+=_Sk){$1.y=_Sj;$k[$j++]=$1.x;$k[$j++]=$1.y;$1.putalgnpat()}}}if($eq($1.format,"rmqr")){$1.algnpat=$a([$a([1,1,1,9,9]),$a([1,0,1,9,9]),$a([1,1,1,9,9]),$a([9,9,9,9,9]),$a([9,9,9,9,9])]);for(var _Sz=$f($1.asp2-2),_T0=$f($1.asp3-$1.asp2),_Sy=$f($1.cols-13);_T0<0?_Sz>=_Sy:_Sz<=_Sy;_Sz+=_T0){$1.i=_Sz;$k[$j++]=$1.i;$k[$j++]=0;$1.putalgnpat();$k[$j++]=$1.i;$k[$j++]=$f($1.rows-3);$1.putalgnpat()}}var _W1=new Map([["full",$a([$a([$a([0,8]),$a([8,$f($1.cols-1)])]),$a([$a([1,8]),$a([8,$f($1.cols-2)])]),$a([$a([2,8]),$a([8,$f($1.cols-3)])]),$a([$a([3,8]),$a([8,$f($1.cols-4)])]),$a([$a([4,8]),$a([8,$f($1.cols-5)])]),$a([$a([5,8]),$a([8,$f($1.cols-6)])]),$a([$a([7,8]),$a([8,$f($1.cols-7)])]),$a([$a([8,8]),$a([$f($1.cols-8),8])]),$a([$a([8,7]),$a([$f($1.cols-7),8])]),$a([$a([8,5]),$a([$f($1.cols-6),8])]),$a([$a([8,4]),$a([$f($1.cols-5),8])]),$a([$a([8,3]),$a([$f($1.cols-4),8])]),$a([$a([8,2]),$a([$f($1.cols-3),8])]),$a([$a([8,1]),$a([$f($1.cols-2),8])]),$a([$a([8,0]),$a([$f($1.cols-1),8])])])],["micro",$a([$a([$a([1,8])]),$a([$a([2,8])]),$a([$a([3,8])]),$a([$a([4,8])]),$a([$a([5,8])]),$a([$a([6,8])]),$a([$a([7,8])]),$a([$a([8,8])]),$a([$a([8,7])]),$a([$a([8,6])]),$a([$a([8,5])]),$a([$a([8,4])]),$a([$a([8,3])]),$a([$a([8,2])]),$a([$a([8,1])])])],["rmqr",$a([$a([$a([11,3]),$a([$f($1.cols-3),$f($1.rows-6)])]),$a([$a([11,2]),$a([$f($1.cols-4),$f($1.rows-6)])]),$a([$a([11,1]),$a([$f($1.cols-5),$f($1.rows-6)])]),$a([$a([10,5]),$a([$f($1.cols-6),$f($1.rows-2)])]),$a([$a([10,4]),$a([$f($1.cols-6),$f($1.rows-3)])]),$a([$a([10,3]),$a([$f($1.cols-6),$f($1.rows-4)])]),$a([$a([10,2]),$a([$f($1.cols-6),$f($1.rows-5)])]),$a([$a([10,1]),$a([$f($1.cols-6),$f($1.rows-6)])]),$a([$a([9,5]),$a([$f($1.cols-7),$f($1.rows-2)])]),$a([$a([9,4]),$a([$f($1.cols-7),$f($1.rows-3)])]),$a([$a([9,3]),$a([$f($1.cols-7),$f($1.rows-4)])]),$a([$a([9,2]),$a([$f($1.cols-7),$f($1.rows-5)])]),$a([$a([9,1]),$a([$f($1.cols-7),$f($1.rows-6)])]),$a([$a([8,5]),$a([$f($1.cols-8),$f($1.rows-2)])]),$a([$a([8,4]),$a([$f($1.cols-8),$f($1.rows-3)])]),$a([$a([8,3]),$a([$f($1.cols-8),$f($1.rows-4)])]),$a([$a([8,2]),$a([$f($1.cols-8),$f($1.rows-5)])]),$a([$a([8,1]),$a([$f($1.cols-8),$f($1.rows-6)])])])]]);$1.formatmap=$g(_W1,$1.format);$F($1.formatmap,function(){$F($k[--$j],function(){$F($k[--$j]);$1.qmv();$p($1.pixs,$k[--$j],1)})});if($eq($1.format,"full")&&$1.cols>=45){$1.versionmap=$a([$a([$a([$f($1.cols-9),5]),$a([5,$f($1.cols-9)])]),$a([$a([$f($1.cols-10),5]),$a([5,$f($1.cols-10)])]),$a([$a([$f($1.cols-11),5]),$a([5,$f($1.cols-11)])]),$a([$a([$f($1.cols-9),4]),$a([4,$f($1.cols-9)])]),$a([$a([$f($1.cols-10),4]),$a([4,$f($1.cols-10)])]),$a([$a([$f($1.cols-11),4]),$a([4,$f($1.cols-11)])]),$a([$a([$f($1.cols-9),3]),$a([3,$f($1.cols-9)])]),$a([$a([$f($1.cols-10),3]),$a([3,$f($1.cols-10)])]),$a([$a([$f($1.cols-11),3]),$a([3,$f($1.cols-11)])]),$a([$a([$f($1.cols-9),2]),$a([2,$f($1.cols-9)])]),$a([$a([$f($1.cols-10),2]),$a([2,$f($1.cols-10)])]),$a([$a([$f($1.cols-11),2]),$a([2,$f($1.cols-11)])]),$a([$a([$f($1.cols-9),1]),$a([1,$f($1.cols-9)])]),$a([$a([$f($1.cols-10),1]),$a([1,$f($1.cols-10)])]),$a([$a([$f($1.cols-11),1]),$a([1,$f($1.cols-11)])]),$a([$a([$f($1.cols-9),0]),$a([0,$f($1.cols-9)])]),$a([$a([$f($1.cols-10),0]),$a([0,$f($1.cols-10)])]),$a([$a([$f($1.cols-11),0]),$a([0,$f($1.cols-11)])])])}else{$1.versionmap=$a([])}var _Xf=$1.versionmap;for(var _Xg=0,_Xh=_Xf.length;_Xg<_Xh;_Xg++){$F($g(_Xf,_Xg),function(){$F($k[--$j]);$1.qmv();$p($1.pixs,$k[--$j],0)})}if($eq($1.format,"full")){$k[$j++]=$1.pixs;$k[$j++]=8;$k[$j++]=$f($1.rows-8);$1.qmv();var _Xp=$k[--$j];$p($k[--$j],_Xp,0)}var _Y9=$a([function(){var _Xr=$k[--$j];var _Xs=$k[--$j];$k[$j++]=$f(_Xs+_Xr)%2},function(){var _Xt=$k[--$j];var _Xu=$k[--$j];$k[$j++]=_Xt;$k[$j++]=_Xu;$j--;var _Xv=$k[--$j];$k[$j++]=_Xv%2},function(){$j--;var _Xw=$k[--$j];$k[$j++]=_Xw%3},function(){var _Xx=$k[--$j];var _Xy=$k[--$j];$k[$j++]=$f(_Xy+_Xx)%3},function(){var _Xz=$k[--$j];var _Y0=$k[--$j];$k[$j++]=(~~(_Xz/2)+~~(_Y0/3))%2},function(){var _Y1=$k[--$j];var _Y3=$k[--$j]*_Y1;$k[$j++]=$f(_Y3%2+_Y3%3)},function(){var _Y4=$k[--$j];var _Y6=$k[--$j]*_Y4;$k[$j++]=$f(_Y6%2+_Y6%3)%2},function(){var _Y7=$k[--$j];var _Y8=$k[--$j];$k[$j++]=$f(_Y8*_Y7%3+$f(_Y8+_Y7)%2)%2}]);var _YK=$a([function(){var _YA=$k[--$j];var _YB=$k[--$j];$k[$j++]=_YA;$k[$j++]=_YB;$j--;var _YC=$k[--$j];$k[$j++]=_YC%2},function(){var _YD=$k[--$j];var _YE=$k[--$j];$k[$j++]=(~~(_YD/2)+~~(_YE/3))%2},function(){var _YF=$k[--$j];var _YH=$k[--$j]*_YF;$k[$j++]=$f(_YH%2+_YH%3)%2},function(){var _YI=$k[--$j];var _YJ=$k[--$j];$k[$j++]=$f(_YJ*_YI%3+$f(_YJ+_YI)%2)%2}]);var _YN=$a([function(){var _YL=$k[--$j];var _YM=$k[--$j];$k[$j++]=(~~(_YL/2)+~~(_YM/3))%2}]);var _YO=new Map([["full",_Y9],["micro",_YK],["rmqr",_YN]]);$1.maskfuncs=$g(_YO,$1.format);if($1.mask!=-1){$1.maskfuncs=$a([$g($1.maskfuncs,$1.mask-1)]);$1.bestmaskval=$1.mask-1}$1.masks=$a($1.maskfuncs.length);for(var _Yb=0,_Ya=$1.masks.length-1;_Yb<=_Ya;_Yb+=1){$1.m=_Yb;$1.mask=$a($1.rows*$1.cols);for(var _Yh=0,_Yg=$f($1.rows-1);_Yh<=_Yg;_Yh+=1){$1.j=_Yh;for(var _Yk=0,_Yj=$f($1.cols-1);_Yk<=_Yj;_Yk+=1){$1.i=_Yk;$k[$j++]=$1.i;$k[$j++]=$1.j;if($g($1.maskfuncs,$1.m)()===true){break}var _Yq=$k[--$j];$k[$j++]=_Yq==0;$k[$j++]=$1.pixs;$k[$j++]=$1.i;$k[$j++]=$1.j;$1.qmv();var _Yu=$k[--$j];var _Yw=$g($k[--$j],_Yu);var _Yx=$k[--$j];var _Yy=_Yx&&_Yw==-1?1:0;$k[$j++]=_Yy;$k[$j++]=$1.mask;$k[$j++]=$1.i;$k[$j++]=$1.j;$1.qmv();var _Z2=$k[--$j];var _Z3=$k[--$j];$p(_Z3,_Z2,$k[--$j])}}$p($1.masks,$1.m,$1.mask)}var _ZA=$ne($1.format,"rmqr")?1:2;$1.posx=$f($1.cols-_ZA);$1.posy=$f($1.rows-1);$1.dir=-1;$1.col=1;$1.num=0;for(;;){if($1.posx<0){break}$k[$j++]=$1.pixs;$k[$j++]=$1.posx;$k[$j++]=$1.posy;$1.qmv();var _ZG=$k[--$j];if($g($k[--$j],_ZG)==-1){var _ZL=$g($1.cws,~~($1.num/8));var _ZN=-(7-$1.num%8);$k[$j++]=(_ZN<0?_ZL>>>-_ZN:_ZL<<_ZN)&1;$k[$j++]=$1.pixs;$k[$j++]=$1.posx;$k[$j++]=$1.posy;$1.qmv();var _ZR=$k[--$j];var _ZS=$k[--$j];$p(_ZS,_ZR,$k[--$j]);$1.num=$1.num+1}if($1.col==1){$1.col=0;$1.posx=$f($1.posx-1)}else{$1.col=1;$1.posx=$f($1.posx+1);$1.posy=$f($1.posy+$1.dir);if($1.posy<0||$1.posy>=$1.rows){$1.dir=$1.dir*-1;$1.posy=$f($1.posy+$1.dir);$1.posx=$f($1.posx-2);if($eq($1.format,"full")&&$1.posx==6){$1.posx=$f($1.posx-1)}}}}$1.evalfulln1n3=function(){$1.scrle=$k[--$j];$k[$j++]="scr1";$k[$j++]=0;$F($1.scrle,function(){var _Zm=$k[--$j];$k[$j++]=_Zm;if(_Zm>=5){var _Zn=$k[--$j];var _Zp=$f($f($k[--$j]+_Zn)-2);$k[$j++]=_Zp;$k[$j++]=_Zp}$j--});var _Zq=$k[--$j];$1[$k[--$j]]=_Zq;$1.scr3=0;for(var _Zu=3,_Zt=$1.scrle.length-3;_Zu<=_Zt;_Zu+=2){$1.j=_Zu;if($g($1.scrle,$1.j)%3==0){$1.fact=~~($g($1.scrle,$1.j)/3);var _a3=$G($1.scrle,$1.j-2,5);for(var _a4=0,_a5=_a3.length;_a4<_a5;_a4++){$k[$j++]=$g(_a3,_a4)==$1.fact}var _a8=$k[--$j];var _a9=$k[--$j];var _aA=$k[--$j];$k[$j++]=$an(_a9,_a8);$k[$j++]=_aA;$j--;var _aB=$k[--$j];var _aC=$k[--$j];var _aD=$k[--$j];if(_aD&&(_aC&&_aB)){if($1.j==3||$1.j+4>=$1.scrle.length){$1.scr3=$1.scr3+40}else{if($g($1.scrle,$1.j-3)>=4||$g($1.scrle,$1.j+3)>=4){$1.scr3=$1.scr3+40}}}}}$k[$j++]=$1.scr1;$k[$j++]=$1.scr3};$1.evalfull=function(){$1.sym=$k[--$j];$1.n1=0;$1.n2=0;$1.n3=0;$1.rle=$a($f($1.cols+1));$1.lastpairs=$a($1.cols);$1.thispairs=$a($1.cols);$1.colsadd1=$f($1.cols+1);for(var _ab=0,_aa=$f($1.cols-1);_ab<=_aa;_ab+=1){$1.i=_ab;$k[$j++]=Infinity;var _ad=$1.cols;$k[$j++]=0;$k[$j++]=0;for(var _af=$1.i,_ag=_ad,_ae=$f(_ad*_ad-1);_ag<0?_af>=_ae:_af<=_ae;_af+=_ag){var _ai=$g($1.sym,_af);var _aj=$k[--$j];$k[$j++]=_ai;if($eq(_aj,_ai)){var _ak=$k[--$j];var _al=$k[--$j];$k[$j++]=$f(_al+1);$k[$j++]=_ak}else{var _am=$k[--$j];$k[$j++]=1;$k[$j++]=_am}}$j--;var _ao=$m()+2;$r($G($1.rle,0,_ao-2));$1.evalfulln1n3();$1.n3=$f($k[--$j]+$1.n3);$1.n1=$f($k[--$j]+$1.n1);$j--;$1.symrow=$G($1.sym,$1.i*$1.cols,$1.cols);$k[$j++]=Infinity;var _az=$1.symrow;$k[$j++]=0;$k[$j++]=0;for(var _b0=0,_b1=_az.length;_b0<_b1;_b0++){var _b2=$g(_az,_b0);var _b3=$k[--$j];$k[$j++]=_b2;if($eq(_b3,_b2)){var _b4=$k[--$j];var _b5=$k[--$j];$k[$j++]=$f(_b5+1);$k[$j++]=_b4}else{var _b6=$k[--$j];$k[$j++]=1;$k[$j++]=_b6}}$j--;var _b8=$m()+2;$r($G($1.rle,0,_b8-2));$1.evalfulln1n3();$1.n3=$f($k[--$j]+$1.n3);$1.n1=$f($k[--$j]+$1.n1);$j--;var _bE=$1.thispairs;$1.thispairs=$1.lastpairs;$1.lastpairs=_bE;var _bI=$g($1.symrow,0)==1?0:1;var _bJ=$1.symrow;$k[$j++]=_bI;for(var _bK=0,_bL=_bJ.length;_bK<_bL;_bK++){var _bM=$g(_bJ,_bK);var _bN=$k[--$j];$k[$j++]=$f(_bN+_bM);$k[$j++]=_bM}$j--;$r($1.thispairs);$j--;if($1.i>0){$k[$j++]=Infinity;$q($1.lastpairs);$q($1.thispairs);$k[$j++]=$1.n2;for(var _bU=0,_bV=$1.cols;_bU<_bV;_bU++){var _bW=$k[--$j];var _bX=$k[--$j];$k[$j++]=_bW;$k[$j++]=_bX;var _bZ=$k[$j-1-$1.colsadd1];if(($f($k[--$j]+_bZ)&3)==0){var _bb=$k[--$j];$k[$j++]=$f(_bb+3)}}$1.n2=$k[--$j];$l()}}$k[$j++]="dark";$k[$j++]=0;$F($1.sym,function(){var _be=$k[--$j];var _bf=$k[--$j];$k[$j++]=$f(_bf+_be)});var _bg=$k[--$j];$1[$k[--$j]]=_bg;var _bj=$1.cols;$1.n4=~~(Math.abs($f($1.dark*100/(_bj*_bj)-50))/5)*10;$k[$j++]=$f($f($f($1.n1+$1.n2)+$1.n3)+$1.n4)};$1.evalmicro=function(){$1.sym=$k[--$j];$1.dkrhs=0;$1.dkbot=0;for(var _br=1,_bq=$f($1.cols-1);_br<=_bq;_br+=1){$1.i=_br;$k[$j++]="dkrhs";$k[$j++]=$1.dkrhs;$k[$j++]=$1.sym;$k[$j++]=$f($1.cols-1);$k[$j++]=$1.i;$1.qmv();var _bw=$k[--$j];var _by=$g($k[--$j],_bw);var _bz=$k[--$j];$1[$k[--$j]]=$f(_bz+_by);$k[$j++]="dkbot";$k[$j++]=$1.dkbot;$k[$j++]=$1.sym;$k[$j++]=$1.i;$k[$j++]=$f($1.cols-1);$1.qmv();var _c5=$k[--$j];var _c7=$g($k[--$j],_c5);var _c8=$k[--$j];$1[$k[--$j]]=$f(_c8+_c7)}if($1.dkrhs<=$1.dkbot){$k[$j++]=-($1.dkrhs*16+$1.dkbot)}else{$k[$j++]=-($1.dkbot*16+$1.dkrhs)}};$1.bestscore=999999999;for(var _cI=0,_cH=$1.masks.length-1;_cI<=_cH;_cI+=1){$1.m=_cI;$1.masksym=$a($1.rows*$1.cols);for(var _cP=0,_cO=$f($1.rows*$1.cols-1);_cP<=_cO;_cP+=1){$1.i=_cP;$p($1.masksym,$1.i,$xo($g($1.pixs,$1.i),$g($g($1.masks,$1.m),$1.i)))}if($1.masks.length!=1){if($eq($1.format,"full")){$k[$j++]=$1.masksym;$1.evalfull();$1.score=$k[--$j]}else{$k[$j++]=$1.masksym;$1.evalmicro();$1.score=$k[--$j]}if($1.score<$1.bestscore){$1.bestsym=$1.masksym;$1.bestmaskval=$1.m;$1.bestscore=$1.score}}else{$1.bestsym=$1.masksym}}$1.pixs=$1.bestsym;if($eq($1.format,"full")){$k[$j++]=$1.pixs;$k[$j++]=8;$k[$j++]=$f($1.cols-8);$1.qmv();var _cq=$k[--$j];$p($k[--$j],_cq,1)}if($eq($1.format,"full")){$1.fmtvals=$a([21522,20773,24188,23371,17913,16590,20375,19104,30660,29427,32170,30877,26159,25368,27713,26998,5769,5054,7399,6608,1890,597,3340,2107,13663,12392,16177,14854,9396,8579,11994,11245]);$k[$j++]="ecid";$x("MLHQ",$1.eclevel);$j--;var _cv=$k[--$j];var _cw=$k[--$j];$k[$j++]=_cv.length;$k[$j++]=_cw;$j--;var _cx=$k[--$j];var _cy=$k[--$j];$k[$j++]=_cx;$k[$j++]=_cy;$j--;var _cz=$k[--$j];$1[$k[--$j]]=_cz;$1.fmtval=$g($1.fmtvals,($1.ecid<<3)+$1.bestmaskval);for(var _d7=0,_d6=$1.formatmap.length-1;_d7<=_d6;_d7+=1){$1.i=_d7;$F($g($1.formatmap,$1.i),function(){var _dC=$k[--$j];$k[$j++]=$1.pixs;$q(_dC);$1.qmv();var _dD=$1.fmtval;var _dF=-(14-$1.i);var _dG=$k[--$j];$p($k[--$j],_dG,(_dF<0?_dD>>>-_dF:_dD<<_dF)&1)})}}if($eq($1.format,"micro")){$1.fmtvals=$a([17477,16754,20011,19228,21934,20633,24512,23287,26515,25252,28157,26826,30328,29519,31766,31009,1758,1001,3248,2439,5941,4610,7515,6252,9480,8255,12134,10833,13539,12756,16013,15290]);$1.symid=$g($g($a([$a([0]),$a([1,2]),$a([3,4]),$a([5,6,7])]),~~($f($1.cols-11)/2)),$1.eclval);$1.fmtval=$g($1.fmtvals,($1.symid<<2)+$1.bestmaskval);for(var _dZ=0,_dY=$1.formatmap.length-1;_dZ<=_dY;_dZ+=1){$1.i=_dZ;$k[$j++]=$1.pixs;$q($g($g($1.formatmap,$1.i),0));$1.qmv();var _df=$1.fmtval;var _dh=-(14-$1.i);var _di=$k[--$j];$p($k[--$j],_di,(_dh<0?_df>>>-_dh:_df<<_dh)&1)}}if($eq($1.format,"rmqr")){$1.fmtvals1=$a([129714,124311,121821,115960,112748,108361,104707,99878,98062,90155,89697,82244,81360,74485,72895,66458,61898,61167,53413,53120,45844,44081,37499,36190,29814,27475,21785,19004,13992,10637,6087,2274,258919,257090,250376,249133,242105,241308,233686,233459,227035,223742,219060,215185,209925,207648,202090,199247,194591,190266,186736,181845,178881,173540,170926,165003,163235,156294,154828,148457,147325,139352,138770,131383]);$1.fmtvals2=$a([133755,136542,142100,144433,149669,153472,158154,161519,167879,168162,175784,176525,183577,184892,191606,193363,196867,204326,204908,212809,213981,220408,221874,228759,230591,236442,239056,244469,247393,252228,255758,260139,942,7307,8897,15844,16752,24149,24607,32570,34322,39223,42877,47192,50380,56297,58787,64134,67798,71667,76217,79516,84488,87341,93031,95298,101738,102991,109573,111392,118708,118929,126683,127486]);$k[$j++]="fmtvalu";$x("MH",$1.eclevel);$j--;var _do=$k[--$j];var _dp=$k[--$j];$k[$j++]=_do.length;$k[$j++]=_dp;$j--;var _dq=$k[--$j];var _dr=$k[--$j];$k[$j++]=_dq;$k[$j++]=_dr;$j--;var _ds=$k[--$j];$1[$k[--$j]]=(_ds<<5)+$1.verind;$1.fmtval1=$g($1.fmtvals1,$1.fmtvalu);$1.fmtval2=$g($1.fmtvals2,$1.fmtvalu);for(var _e3=0,_e2=$1.formatmap.length-1;_e3<=_e2;_e3+=1){$1.i=_e3;$k[$j++]=$1.pixs;$q($g($g($1.formatmap,$1.i),0));$1.qmv();var _e9=$1.fmtval1;var _eB=-(17-$1.i);var _eC=$k[--$j];$p($k[--$j],_eC,(_eB<0?_e9>>>-_eB:_e9<<_eB)&1);$k[$j++]=$1.pixs;$q($g($g($1.formatmap,$1.i),1));$1.qmv();var _eJ=$1.fmtval2;var _eL=-(17-$1.i);var _eM=$k[--$j];$p($k[--$j],_eM,(_eL<0?_eJ>>>-_eL:_eJ<<_eL)&1)}}if($eq($1.format,"full")&&$1.cols>=45){$1.vervals=$a([31892,34236,39577,42195,48118,51042,55367,58893,63784,68472,70749,76311,79154,84390,87683,92361,96236,102084,102881,110507,110734,117786,119615,126325,127568,133589,136957,141498,145311,150283,152622,158308,161089,167017]);$1.verval=$g($1.vervals,~~($f($1.cols-17)/4)-7);for(var _eW=0,_eV=$1.versionmap.length-1;_eW<=_eV;_eW+=1){$1.i=_eW;$F($g($1.versionmap,$1.i),function(){var _eb=$k[--$j];$k[$j++]=$1.pixs;$F(_eb);$1.qmv();var _ec=$1.verval;var _ee=-(17-$1.i);var _ef=$k[--$j];$p($k[--$j],_ef,(_ee<0?_ec>>>-_ee:_ec<<_ee)&1)})}}var _en=new Map([["ren",$0.renmatrix],["pixs",$1.pixs],["pixx",$1.cols],["pixy",$1.rows],["height",$1.rows*2/72],["width",$1.cols*2/72],["opt",$1.options]]);$k[$j++]=_en;if(!$1.dontdraw){$0.renmatrix()}};$0.swissqrcode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.parse=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});var _6=new Map([["parse",$1.parse],["parseonly",true],["parsefnc",false]]);$1.fncvals=_6;$k[$j++]="barcode";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _9=$k[--$j];$1[$k[--$j]]=_9;$1.barlen=$1.barcode.length;delete $1.options["parse"];if($1.barcode.length>997){$k[$j++]="bwipp.swissqrcodeBadLength";$k[$j++]="Swiss QR Code input must not exceed 997 digits";$0.raiseerror()}$p($1.options,"dontdraw",true);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.qrcode();var _H=$k[--$j];$1[$k[--$j]]=_H;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$$.save();var _N=$$.currpos();$$.translate(_N.x,_N.y);var _O=72/25.4;$$.scale(_O,_O);$$.save();$$.newpath();$$.moveto(0,0);$$.lineto(46,0);$$.lineto(46,46);$$.lineto(0,46);$$.closepath();$$.moveto(19.5,19.5);$$.lineto(19.5,26.5);$$.lineto(26.5,26.5);$$.lineto(26.5,19.5);$$.closepath();$$.clip();$$.save();$$.moveto(0,0);var _R=46/$g($1.args,"pixx")/2;$$.scale(_R,_R);$0.renmatrix();$$.restore();$$.restore();$$.translate(19.5,19.5);var _S=7/83;$$.scale(_S,_S);$$.newpath();$$.moveto(6,6);$$.lineto(6,77);$$.lineto(77,77);$$.lineto(77,6);$$.closepath();$$.moveto(49,18);$$.lineto(49,34);$$.lineto(65,34);$$.lineto(65,49);$$.lineto(49,49);$$.lineto(49,65);$$.lineto(34,65);$$.lineto(34,49);$$.lineto(18,49);$$.lineto(18,34);$$.lineto(34,34);$$.lineto(34,18);$$.closepath();$$.setrgbcolor(0,0,0);$$.fill();$$.restore()}};$0.microqrcode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$p($1.options,"dontdraw",true);$p($1.options,"format","micro");$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.qrcode();var _9=$k[--$j];$1[$k[--$j]]=_9;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.rectangularmicroqrcode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$p($1.options,"dontdraw",true);$p($1.options,"format","rmqr");$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.qrcode();var _9=$k[--$j];$1[$k[--$j]]=_9;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.maxicode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.mode=-1;$1.sam=-1;$1.parse=false;$1.parsefnc=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.mode=~~$1.mode;$1.sam=~~$1.sam;var _9=new Map([["parse",$1.parse],["parsefnc",$1.parsefnc],["eci",true]]);$1.fncvals=_9;$k[$j++]="msg";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _C=$k[--$j];$1[$k[--$j]]=_C;$1.msglen=$1.msg.length;if($1.mode==2||$1.mode==3){$1.barcode=$s($1.msglen);for(var _L=0,_K=$1.msglen-1;_L<=_K;_L+=1){$1.i=_L;if($g($1.msg,$1.i)>0){$p($1.barcode,$1.i,$g($1.msg,$1.i))}}$1.barlen=$1.barcode.length;if($eq($G($1.barcode,0,7),"[)>01")){$1.fid=$G($1.barcode,0,9);$1.barcode=$G($1.barcode,9,$1.barlen-9)}else{$1.fid=""}$x($1.barcode,"");$j--;$1.pcode=$k[--$j];$j--;$x($k[--$j],"");$j--;$1.ccode=$k[--$j];$j--;$x($k[--$j],"");$j--;$1.scode=$k[--$j];$j--;$1.barcode=$k[--$j];var _l=$s($1.barcode.length+$1.fid.length);$P(_l,0,$1.fid);$P(_l,$1.fid.length,$1.barcode);$1.barcode=_l;$1.barlen=$1.barcode.length;$k[$j++]=Infinity;var _q=$1.barcode;for(var _r=0,_s=_q.length;_r<_s;_r++){$k[$j++]=$g(_q,_r)}$1.msg=$a();$1.msglen=$1.msg.length}$1.eci=-1;$1.pad=-2;$1.ns=-3;$1.la=-4;$1.lb=-5;$1.sa=-6;$1.sb=-7;$1.sc=-8;$1.sd=-9;$1.se=-10;$1.sa2=-11;$1.sa3=-12;$1.lkc=-13;$1.lkd=-14;$1.lke=-15;$1.pd2=-16;$1.pd3=-17;$1.charmaps=$a([$a([13,"`",192,224,0]),$a(["A","a",193,225,1]),$a(["B","b",194,226,2]),$a(["C","c",195,227,3]),$a(["D","d",196,228,4]),$a(["E","e",197,229,5]),$a(["F","f",198,230,6]),$a(["G","g",199,231,7]),$a(["H","h",200,232,8]),$a(["I","i",201,233,9]),$a(["J","j",202,234,10]),$a(["K","k",203,235,11]),$a(["L","l",204,236,12]),$a(["M","m",205,237,13]),$a(["N","n",206,238,14]),$a(["O","o",207,239,15]),$a(["P","p",208,240,16]),$a(["Q","q",209,241,17]),$a(["R","r",210,242,18]),$a(["S","s",211,243,19]),$a(["T","t",212,244,20]),$a(["U","u",213,245,21]),$a(["V","v",214,246,22]),$a(["W","w",215,247,23]),$a(["X","x",216,248,24]),$a(["Y","y",217,249,25]),$a(["Z","z",218,250,26]),$a([$1.eci,$1.eci,$1.eci,$1.eci,$1.eci]),$a([28,28,28,28,$1.pad]),$a([29,29,29,29,$1.pad]),$a([30,30,30,30,27]),$a([$1.ns,$1.ns,$1.ns,$1.ns,$1.ns]),$a([" ","{",219,251,28]),$a([$1.pad,$1.pad,220,252,29]),$a(['"',"}",221,253,30]),$a(["#","~",222,254,31]),$a(["$",127,223,255,159]),$a(["%",";",170,161,160]),$a(["&","<",172,168,162]),$a(["'","=",177,171,163]),$a([40,">",178,175,164]),$a([41,"?",179,176,165]),$a(["*","[",181,180,166]),$a(["+",92,185,183,167]),$a([",","]",186,184,169]),$a(["-","^",188,187,173]),$a([".","_",189,191,174]),$a(["/"," ",190,138,182]),$a(["0",",",128,139,149]),$a(["1",".",129,140,150]),$a(["2","/",130,141,151]),$a(["3",":",131,142,152]),$a(["4","@",132,143,153]),$a(["5","!",133,144,154]),$a(["6","|",134,145,155]),$a(["7",$1.pd2,135,146,156]),$a(["8",$1.sa2,136,147,157]),$a(["9",$1.sa3,137,148,158]),$a([":",$1.pd3,$1.la,$1.la,$1.la]),$a([$1.sb,$1.sa," "," "," "]),$a([$1.sc,$1.sc,$1.lkc,$1.sc,$1.sc]),$a([$1.sd,$1.sd,$1.sd,$1.lkd,$1.sd]),$a([$1.se,$1.se,$1.se,$1.se,$1.lke]),$a([$1.lb,$1.la,$1.lb,$1.lb,$1.lb])]);$1.charvals=$a([new Map,new Map,new Map,new Map,new Map]);for(var _2j=0,_2i=$1.charmaps.length-1;_2j<=_2i;_2j+=1){$1.i=_2j;$1.encs=$g($1.charmaps,$1.i);for(var _2n=0;_2n<=4;_2n+=1){$1.j=_2n;var _2q=$g($1.encs,$1.j);$k[$j++]=_2q;if($eq($t(_2q),"stringtype")){var _2t=$g($k[--$j],0);$k[$j++]=_2t}$p($g($1.charvals,$1.j),$k[--$j],$1.i)}}$1.seta=$g($1.charvals,0);$1.setb=$g($1.charvals,1);$1.setc=$g($1.charvals,2);$1.setd=$g($1.charvals,3);$1.sete=$g($1.charvals,4);$k[$j++]=Infinity;for(var _3A=0,_3B=$1.msglen+1;_3A<_3B;_3A++){$k[$j++]=0}$1.nseq=$a();for(var _3E=$1.msglen-1;_3E>=0;_3E-=1){$1.i=_3E;var _3H=$g($1.msg,$1.i);if(_3H>=48&&_3H<=57){$p($1.nseq,$1.i,$f($g($1.nseq,$1.i+1)+1))}else{$p($1.nseq,$1.i,0)}}$1.nseq=$G($1.nseq,0,$1.msglen);$1.prefixinset=function(){$k[$j++]=0;for(;;){var _3S=$k[--$j];var _3T=$k[--$j];$k[$j++]=_3T;$k[$j++]=_3S;if(_3S>=_3T.length){break}var _3U=$k[--$j];var _3V=$k[--$j];var _3X=$k[--$j];var _3Y=$g(_3X,$g(_3V,_3U))!==undefined;$k[$j++]=_3X;$k[$j++]=_3V;$k[$j++]=_3U;if(_3Y){var _3Z=$k[--$j];$k[$j++]=$f(_3Z+1)}else{break}}var _3a=$k[--$j];var _3b=$k[--$j];$k[$j++]=_3a;$k[$j++]=_3b;$j--;var _3c=$k[--$j];var _3d=$k[--$j];$k[$j++]=_3c;$k[$j++]=_3d;$j--};$1.enc=function(){var _3e=$k[--$j];$p($1.out,$1.j,$g(_3e,$k[--$j]));$1.j=$1.j+1};$1.out=$a(144);$1.i=0;$1.j=0;$1.cset="seta";for(;;){if($1.i==$1.msglen){if($ne($1.cset,"seta")&&$ne($1.cset,"setb")){$k[$j++]=$1.la;$k[$j++]=$1[$1.cset];$1.enc();$1.cset="seta"}break}for(;;){if($g($1.msg,$1.i)<=-1e6){$k[$j++]=$1.eci;$k[$j++]=$1[$1.cset];$1.enc();var _41=$f(-$g($1.msg,$1.i)-1e6);$k[$j++]=_41;if(_41<=31){var _42=$k[--$j];$k[$j++]=_42&63;$r($a(1))}else{var _44=$k[--$j];$k[$j++]=_44;if(_44<=1023){var _45=$k[--$j];$k[$j++]=_45>>>6&31|32;$k[$j++]=_45&63;$r($a(2))}else{var _47=$k[--$j];$k[$j++]=_47;if(_47<=32767){var _48=$k[--$j];$k[$j++]=_48>>>12&47|48;$k[$j++]=_48>>>6&63;$k[$j++]=_48&63;$r($a(3))}else{var _4A=$k[--$j];$k[$j++]=_4A>>>18&55|56;$k[$j++]=_4A>>>12&63;$k[$j++]=_4A>>>6&63;$k[$j++]=_4A&63;$r($a(4))}}}var _4C=$k[--$j];$P($1.out,$1.j,_4C);$1.j=_4C.length+$1.j;$1.i=$1.i+1;break}if($g($1.nseq,$1.i)>=9){var _4M=$G($1.msg,$1.i,9);$k[$j++]=0;for(var _4N=0,_4O=_4M.length;_4N<_4O;_4N++){var _4Q=$k[--$j];$k[$j++]=$f(_4Q+$f($g(_4M,_4N)-48))*10}var _4R=$k[--$j];$k[$j++]=~~(_4R/10);for(var _4S=0,_4T=4;_4S<_4T;_4S++){var _4U=$k[--$j];$k[$j++]=_4U&63;$k[$j++]=_4U>>>6}$k[$j++]=$g($1[$1.cset],$1.ns);for(var _4Z=0;_4Z<=10;_4Z+=2){var _4a=$k[$j-1-_4Z];$k[$j++]=_4a}$r($a(6));var _4c=$k[--$j];var _4d=$k[--$j];var _4e=$k[--$j];var _4f=$k[--$j];var _4g=$k[--$j];var _4h=$k[--$j];var _4i=$k[--$j];$k[$j++]=_4c;$k[$j++]=_4i;$k[$j++]=_4h;$k[$j++]=_4g;$k[$j++]=_4f;$k[$j++]=_4e;$k[$j++]=_4d;for(var _4j=0,_4k=6;_4j<_4k;_4j++){$j--}$P($1.out,$1.j,$k[--$j]);$1.i=$1.i+9;$1.j=$1.j+6;break}$1.char1=$g($1.msg,$1.i);$k[$j++]="char2";if($1.i+1<$1.msglen){$k[$j++]=$g($1.msg,$1.i+1)}else{$k[$j++]=-99}var _4y=$k[--$j];$1[$k[--$j]]=_4y;$k[$j++]="char3";if($1.i+2<$1.msglen){$k[$j++]=$g($1.msg,$1.i+2)}else{$k[$j++]=-99}var _55=$k[--$j];$1[$k[--$j]]=_55;var _5A=$g($1[$1.cset],$1.char1)!==undefined;if(_5A){$k[$j++]=$1.char1;$k[$j++]=$1[$1.cset];$1.enc();$1.i=$1.i+1;break}var _5I=$g($1.setb,$1.char1)!==undefined;if($eq($1.cset,"seta")&&_5I){var _5L=$g($1.setb,$1.char2)!==undefined;if(_5L){$k[$j++]=$1.lb;$k[$j++]=$1.seta;$1.enc();$1.cset="setb"}else{$k[$j++]=$1.sb;$k[$j++]=$1.seta;$1.enc();$k[$j++]=$1.char1;$k[$j++]=$1.setb;$1.enc();$1.i=$1.i+1}break}var _5W=$g($1.seta,$1.char1)!==undefined;if($eq($1.cset,"setb")&&_5W){var _5X=$1.seta;var _5Y=$1.msg;var _5Z=$1.i;var _5a=$1.msglen;var _5b=$1.i;var _5c=_5a-_5b;var _5d=4;if(4>_5a-_5b){var _=_5c;_5c=_5d;_5d=_}$k[$j++]="p";$k[$j++]=_5X;$k[$j++]=$G(_5Y,_5Z,_5d);$1.prefixinset();var _5f=$k[--$j];$1[$k[--$j]]=_5f;if($1.p==1){$k[$j++]=$1.sa;$k[$j++]=$1.setb;$1.enc();$k[$j++]=$1.char1;$k[$j++]=$1.seta;$1.enc();$1.i=$1.i+1}if($1.p==2){$k[$j++]=$1.sa2;$k[$j++]=$1.setb;$1.enc();$k[$j++]=$1.char1;$k[$j++]=$1.seta;$1.enc();$k[$j++]=$1.char2;$k[$j++]=$1.seta;$1.enc();$1.i=$1.i+2}if($1.p==3){$k[$j++]=$1.sa3;$k[$j++]=$1.setb;$1.enc();$k[$j++]=$1.char1;$k[$j++]=$1.seta;$1.enc();$k[$j++]=$1.char2;$k[$j++]=$1.seta;$1.enc();$k[$j++]=$1.char3;$k[$j++]=$1.seta;$1.enc();$1.i=$1.i+3}if($1.p>=4){$k[$j++]=$1.la;$k[$j++]=$1.setb;$1.enc();$1.cset="seta"}break}var _6A=$g($1.seta,$1.char1)!==undefined;if(_6A){$k[$j++]=$1.la;$k[$j++]=$1[$1.cset];$1.enc();$1.cset="seta";break}var _6G=$g($1.setb,$1.char1)!==undefined;if(_6G){$k[$j++]=$1.lb;$k[$j++]=$1[$1.cset];$1.enc();$1.cset="setb";break}var _6M=$g($1.setc,$1.char1)!==undefined;if(_6M){$1.setx="setc";$1.sx=$1.sc;$1.lkx=$1.lkc}var _6R=$g($1.setd,$1.char1)!==undefined;if(_6R){$1.setx="setd";$1.sx=$1.sd;$1.lkx=$1.lkd}var _6W=$g($1.sete,$1.char1)!==undefined;if(_6W){$1.setx="sete";$1.sx=$1.se;$1.lkx=$1.lke}var _6a=$1[$1.setx];var _6b=$1.msg;var _6c=$1.i;var _6d=$1.msglen;var _6e=$1.i;var _6f=_6d-_6e;var _6g=4;if(4>_6d-_6e){var _=_6f;_6f=_6g;_6g=_}$k[$j++]="p";$k[$j++]=_6a;$k[$j++]=$G(_6b,_6c,_6g);$1.prefixinset();var _6i=$k[--$j];$1[$k[--$j]]=_6i;if($1.p==1){$k[$j++]=$1.sx;$k[$j++]=$1[$1.cset];$1.enc();$k[$j++]=$1.char1;$k[$j++]=$1[$1.setx];$1.enc();$1.i=$1.i+1}if($1.p==2){$k[$j++]=$1.sx;$k[$j++]=$1[$1.cset];$1.enc();$k[$j++]=$1.char1;$k[$j++]=$1[$1.setx];$1.enc();$k[$j++]=$1.sx;$k[$j++]=$1[$1.cset];$1.enc();$k[$j++]=$1.char2;$k[$j++]=$1[$1.setx];$1.enc();$1.i=$1.i+2}if($1.p==3){$k[$j++]=$1.sx;$k[$j++]=$1[$1.cset];$1.enc();$k[$j++]=$1.char1;$k[$j++]=$1[$1.setx];$1.enc();$k[$j++]=$1.sx;$k[$j++]=$1[$1.cset];$1.enc();$k[$j++]=$1.char2;$k[$j++]=$1[$1.setx];$1.enc();$k[$j++]=$1.sx;$k[$j++]=$1[$1.cset];$1.enc();$k[$j++]=$1.char3;$k[$j++]=$1[$1.setx];$1.enc();$1.i=$1.i+3}if($1.p>=4){$k[$j++]=$1.sx;$k[$j++]=$1[$1.cset];$1.enc();$k[$j++]=$1.lkx;$k[$j++]=$1[$1.setx];$1.enc();$1.cset=$1.setx}break}}$1.encmsg=$G($1.out,0,$1.j);$1.padval=$g($1[$1.cset],$1.pad);$1.sami=$a([]);if($1.sam!=-1){$1.sami=$a(2);$p($1.sami,0,$g($1.seta,$1.pad));$p($1.sami,1,(~~($1.sam/10)-1)*8+($1.sam%10-1))}$k[$j++]=Infinity;$q($1.sami);$q($1.encmsg);$1.encmsg=$a();if($1.mode==2||$1.mode==3){var _7v=$Z($s(4),"0000");var _7y=$R($s(4),~~$1.mode,2);$P(_7v,4-_7y.length,_7y);$1.mdb=_7v;var _80=$Z($s(10),"0000000000");var _83=$R($s(10),~~$z($1.ccode),2);$P(_80,10-_83.length,_83);$1.ccb=_80;var _85=$Z($s(10),"0000000000");var _88=$R($s(10),~~$z($1.scode),2);$P(_85,10-_88.length,_88);$1.scb=_85;$1.pcb=$Z($s(36),"000000000000000000000000000000000000");if($1.mode==2){var _8F=$R($s(6),$1.pcode.length,2);$P($1.pcb,6-_8F.length,_8F);var _8J=$R($s(30),~~$z($1.pcode),2);$P($1.pcb,36-_8J.length,_8J)}else{$k[$j++]=Infinity;var _8L=$Z($s(6)," ");$k[$j++]=_8L;$k[$j++]=_8L;$k[$j++]=0;if($1.pcode.length>6){$k[$j++]=$G($1.pcode,0,6)}else{$k[$j++]=$1.pcode}var _8Q=$k[--$j];var _8R=$k[--$j];$P($k[--$j],_8R,_8Q);$F($k[--$j],function(){var _8W=$g($1.seta,$k[--$j]);$k[$j++]=_8W});$1.pccw=$a();for(var _8Y=0;_8Y<=5;_8Y+=1){$1.i=_8Y;var _8e=$R($s(6),$g($1.pccw,$1.i),2);$P($1.pcb,6*$1.i+6-_8e.length,_8e)}}$1.scm=$s(60);$P($1.scm,2,$1.mdb);$P($1.scm,38,$G($1.pcb,0,4));$P($1.scm,30,$G($1.pcb,4,6));$P($1.scm,24,$G($1.pcb,10,6));$P($1.scm,18,$G($1.pcb,16,6));$P($1.scm,12,$G($1.pcb,22,6));$P($1.scm,6,$G($1.pcb,28,6));$P($1.scm,0,$G($1.pcb,34,2));$P($1.scm,52,$G($1.ccb,0,2));$P($1.scm,42,$G($1.ccb,2,6));$P($1.scm,36,$G($1.ccb,8,2));$P($1.scm,54,$G($1.scb,0,6));$P($1.scm,48,$G($1.scb,6,4));$1.pri=$a([0,0,0,0,0,0,0,0,0,0]);for(var _9K=0;_9K<=59;_9K+=1){$1.i=_9K;$1.ps=~~($1.i/6);$1.ep=~~Math.pow(2,5-$1.i%6)*($g($1.scm,$1.i)-48);$p($1.pri,$1.ps,$f($g($1.pri,$1.ps)+$1.ep))}$k[$j++]=Infinity;for(var _9W=0,_9X=84;_9W<_9X;_9W++){$k[$j++]=$1.padval}$1.sec=$a();$P($1.sec,0,$1.encmsg)}if($1.mode==4||$1.mode==5||$1.mode==6||$1.mode==-1){if($1.mode==-1){var _9i=$1.encmsg.length<=77?5:4;$1.mode=_9i}$k[$j++]=Infinity;var _9k=$1.mode==5?78:94;for(var _9l=0,_9m=_9k;_9l<_9m;_9l++){$k[$j++]=$1.padval}$1.cws=$a();$p($1.cws,0,$1.mode);$P($1.cws,1,$1.encmsg);$1.pri=$G($1.cws,0,10);$1.sec=$G($1.cws,10,$1.cws.length-10)}$k[$j++]=Infinity;$k[$j++]=1;for(var _9y=0,_9z=63;_9y<_9z;_9y++){var _A0=$k[--$j];var _A1=_A0*2;$k[$j++]=_A0;$k[$j++]=_A1;if(_A1>=64){var _A2=$k[--$j];$k[$j++]=_A2^67}}$1.rsalog=$a();$1.rslog=$a(64);for(var _A5=1;_A5<=63;_A5+=1){$p($1.rslog,$g($1.rsalog,_A5),_A5)}$1.rsprod=function(){var _A9=$k[--$j];var _AA=$k[--$j];$k[$j++]=_AA;$k[$j++]=_A9;if(_A9!=0&&_AA!=0){var _AD=$g($1.rslog,$k[--$j]);var _AI=$g($1.rsalog,$f(_AD+$g($1.rslog,$k[--$j]))%63);$k[$j++]=_AI}else{$j-=2;$k[$j++]=0}};$1.rscodes=function(){$1.rsnum=$k[--$j];$1.cwb=$k[--$j];$k[$j++]=Infinity;$k[$j++]=1;for(var _AM=0,_AN=$1.rsnum;_AM<_AN;_AM++){$k[$j++]=0}$1.coeffs=$a();for(var _AR=1,_AQ=$1.rsnum;_AR<=_AQ;_AR+=1){$1.i=_AR;$p($1.coeffs,$1.i,$g($1.coeffs,$1.i-1));for(var _AY=$1.i-1;_AY>=1;_AY-=1){$1.j=_AY;$k[$j++]=$1.coeffs;$k[$j++]=$1.j;$k[$j++]=$g($1.coeffs,$1.j-1);$k[$j++]=$g($1.coeffs,$1.j);$k[$j++]=$g($1.rsalog,$1.i);$1.rsprod();var _Ak=$k[--$j];var _Al=$k[--$j];var _Am=$k[--$j];$p($k[--$j],_Am,$xo(_Al,_Ak))}$k[$j++]=$1.coeffs;$k[$j++]=0;$k[$j++]=$g($1.coeffs,0);$k[$j++]=$g($1.rsalog,$1.i);$1.rsprod();var _Au=$k[--$j];var _Av=$k[--$j];$p($k[--$j],_Av,_Au)}$1.coeffs=$G($1.coeffs,0,$1.coeffs.length-1);$k[$j++]=Infinity;for(var _B1=0,_B2=$1.rsnum;_B1<_B2;_B1++){$k[$j++]=0}$1.ecb=$a();for(var _B6=0,_B5=$1.cwb.length-1;_B6<=_B5;_B6+=1){$1.t=$xo($g($1.cwb,_B6),$g($1.ecb,0));for(var _BC=$1.ecb.length-1;_BC>=0;_BC-=1){$1.i=_BC;$1.p=$1.ecb.length-$1.i-1;$k[$j++]=$1.ecb;$k[$j++]=$1.p;$k[$j++]=$1.t;$k[$j++]=$g($1.coeffs,$1.i);$1.rsprod();var _BL=$k[--$j];var _BM=$k[--$j];$p($k[--$j],_BM,_BL);if($1.i>0){$p($1.ecb,$1.p,$xo($g($1.ecb,$1.p+1),$g($1.ecb,$1.p)))}}}$k[$j++]=$1.ecb};$k[$j++]=Infinity;for(var _Ba=0,_BZ=$1.sec.length-1;_Ba<=_BZ;_Ba+=2){$k[$j++]=$g($1.sec,_Ba)}$1.seco=$a();$k[$j++]=Infinity;for(var _Bg=1,_Bf=$1.sec.length-1;_Bg<=_Bf;_Bg+=2){$k[$j++]=$g($1.sec,_Bg)}$1.sece=$a();var _Bl=$1.sec.length==84?20:28;$1.scodes=_Bl;$k[$j++]="secochk";$k[$j++]=$1.seco;$k[$j++]=$1.scodes;$1.rscodes();var _Bo=$k[--$j];$1[$k[--$j]]=_Bo;$k[$j++]="secechk";$k[$j++]=$1.sece;$k[$j++]=$1.scodes;$1.rscodes();var _Bs=$k[--$j];$1[$k[--$j]]=_Bs;$k[$j++]=Infinity;for(var _Bw=0,_Bv=$1.scodes-1;_Bw<=_Bv;_Bw+=1){$k[$j++]=$g($1.secochk,_Bw);$k[$j++]=$g($1.secechk,_Bw)}$1.secchk=$a();$k[$j++]=Infinity;$q($1.pri);$k[$j++]=$1.pri;$k[$j++]=10;$1.rscodes();$q($k[--$j]);$q($1.sec);$q($1.secchk);$1.codewords=$a();$k[$j++]=Infinity;for(var _C8=0,_C9=864;_C8<_C9;_C8++){$k[$j++]=0}$1.mods=$a();for(var _CB=0;_CB<=143;_CB+=1){$1.i=_CB;$k[$j++]=Infinity;var _CG=$R($s(6),$g($1.codewords,$1.i),2);for(var _CH=0,_CI=_CG.length;_CH<_CI;_CH++){$k[$j++]=$g(_CG,_CH)-48}$1.cw=$a();$P($1.mods,6*$1.i+(6-$1.cw.length),$1.cw)}$1.modmap=$a([469,529,286,316,347,346,673,672,703,702,647,676,283,282,313,312,370,610,618,379,378,409,408,439,705,704,559,589,588,619,458,518,640,701,675,674,285,284,315,314,310,340,531,289,288,319,349,348,456,486,517,516,471,470,369,368,399,398,429,428,549,548,579,578,609,608,649,648,679,678,709,708,639,638,669,668,699,698,279,278,309,308,339,338,381,380,411,410,441,440,561,560,591,590,621,620,547,546,577,576,607,606,367,366,397,396,427,426,291,290,321,320,351,350,651,650,681,680,711,710,1,0,31,30,61,60,3,2,33,32,63,62,5,4,35,34,65,64,7,6,37,36,67,66,9,8,39,38,69,68,11,10,41,40,71,70,13,12,43,42,73,72,15,14,45,44,75,74,17,16,47,46,77,76,19,18,49,48,79,78,21,20,51,50,81,80,23,22,53,52,83,82,25,24,55,54,85,84,27,26,57,56,87,86,117,116,147,146,177,176,115,114,145,144,175,174,113,112,143,142,173,172,111,110,141,140,171,170,109,108,139,138,169,168,107,106,137,136,167,166,105,104,135,134,165,164,103,102,133,132,163,162,101,100,131,130,161,160,99,98,129,128,159,158,97,96,127,126,157,156,95,94,125,124,155,154,93,92,123,122,153,152,91,90,121,120,151,150,181,180,211,210,241,240,183,182,213,212,243,242,185,184,215,214,245,244,187,186,217,216,247,246,189,188,219,218,249,248,191,190,221,220,251,250,193,192,223,222,253,252,195,194,225,224,255,254,197,196,227,226,257,256,199,198,229,228,259,258,201,200,231,230,261,260,203,202,233,232,263,262,205,204,235,234,265,264,207,206,237,236,267,266,297,296,327,326,357,356,295,294,325,324,355,354,293,292,323,322,353,352,277,276,307,306,337,336,275,274,305,304,335,334,273,272,303,302,333,332,271,270,301,300,331,330,361,360,391,390,421,420,363,362,393,392,423,422,365,364,395,394,425,424,383,382,413,412,443,442,385,384,415,414,445,444,387,386,417,416,447,446,477,476,507,506,537,536,475,474,505,504,535,534,473,472,503,502,533,532,455,454,485,484,515,514,453,452,483,482,513,512,451,450,481,480,511,510,541,540,571,570,601,600,543,542,573,572,603,602,545,544,575,574,605,604,563,562,593,592,623,622,565,564,595,594,625,624,567,566,597,596,627,626,657,656,687,686,717,716,655,654,685,684,715,714,653,652,683,682,713,712,637,636,667,666,697,696,635,634,665,664,695,694,633,632,663,662,693,692,631,630,661,660,691,690,721,720,751,750,781,780,723,722,753,752,783,782,725,724,755,754,785,784,727,726,757,756,787,786,729,728,759,758,789,788,731,730,761,760,791,790,733,732,763,762,793,792,735,734,765,764,795,794,737,736,767,766,797,796,739,738,769,768,799,798,741,740,771,770,801,800,743,742,773,772,803,802,745,744,775,774,805,804,747,746,777,776,807,806,837,836,867,866,897,896,835,834,865,864,895,894,833,832,863,862,893,892,831,830,861,860,891,890,829,828,859,858,889,888,827,826,857,856,887,886,825,824,855,854,885,884,823,822,853,852,883,882,821,820,851,850,881,880,819,818,849,848,879,878,817,816,847,846,877,876,815,814,845,844,875,874,813,812,843,842,873,872,811,810,841,840,871,870,901,900,931,930,961,960,903,902,933,932,963,962,905,904,935,934,965,964,907,906,937,936,967,966,909,908,939,938,969,968,911,910,941,940,971,970,913,912,943,942,973,972,915,914,945,944,975,974,917,916,947,946,977,976,919,918,949,948,979,978,921,920,951,950,981,980,923,922,953,952,983,982,925,924,955,954,985,984,927,926,957,956,987,986,58,89,88,118,149,148,178,209,208,238,269,268,298,329,328,358,389,388,418,449,448,478,509,508,538,569,568,598,629,628,658,689,688,718,749,748,778,809,808,838,869,868,898,929,928,958,989,988]);$1.pixs=$a(864);$1.j=0;for(var _CT=0,_CS=$1.mods.length-1;_CT<=_CS;_CT+=1){$1.i=_CT;if($g($1.mods,$1.i)==1){$p($1.pixs,$1.j,$g($1.modmap,$1.i));$1.j=$1.j+1}}$k[$j++]=Infinity;var _Cf=$G($1.pixs,0,$1.j);for(var _Cg=0,_Ch=_Cf.length;_Cg<_Ch;_Cg++){$k[$j++]=$g(_Cf,_Cg)}$k[$j++]=28;$k[$j++]=29;$k[$j++]=280;$k[$j++]=281;$k[$j++]=311;$k[$j++]=457;$k[$j++]=488;$k[$j++]=500;$k[$j++]=530;$k[$j++]=670;$k[$j++]=700;$k[$j++]=677;$k[$j++]=707;$1.pixs=$a();var _Cm=new Map([["ren",$0.renmaximatrix],["pixs",$1.pixs],["opt",$1.options]]);$k[$j++]=_Cm;if(!$1.dontdraw){$0.renmaximatrix()}};$0.azteccode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.format="unset";$1.readerinit=false;$1.layers=-1;$1.eclevel=23;$1.ecaddchars=3;$1.raw=false;$1.parse=false;$1.parsefnc=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.layers=~~$1.layers;$1.eclevel=+$1.eclevel;$1.ecaddchars=~~$1.ecaddchars;$1.fn1=-1;var _B=new Map([["parse",$1.parse],["parsefnc",$1.parsefnc],["eci",true],["FNC1",$1.fn1]]);$1.fncvals=_B;$k[$j++]="msg";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _E=$k[--$j];$1[$k[--$j]]=_E;$1.msglen=$1.msg.length;$1.msgbits="";if($ne($1.format,"rune")&&$1.raw){$1.msgbits=$1.barcode}if($ne($1.format,"rune")&&!$1.raw){$1.U=0;$1.L=1;$1.M=2;$1.P=3;$1.D=4;$1.B=5;$1.lu=-2;$1.ll=-3;$1.lm=-4;$1.lp=-5;$1.ld=-6;$1.su=-7;$1.sp=-8;$1.sb=-9;$1.fl=-10;$1.p2=-11;$1.p3=-12;$1.p4=-13;$1.p5=-14;$1.charmaps=$a([$a([$1.sp,$1.sp,$1.sp,$1.fl,$1.sp]),$a([32,32,32,13,32]),$a(["A","a",1,$1.p2,"0"]),$a(["B","b",2,$1.p3,"1"]),$a(["C","c",3,$1.p4,"2"]),$a(["D","d",4,$1.p5,"3"]),$a(["E","e",5,"!","4"]),$a(["F","f",6,'"',"5"]),$a(["G","g",7,"#","6"]),$a(["H","h",8,"$","7"]),$a(["I","i",9,"%","8"]),$a(["J","j",10,"&","9"]),$a(["K","k",11,"'",","]),$a(["L","l",12,40,"."]),$a(["M","m",13,41,$1.lu]),$a(["N","n",27,"*",$1.su]),$a(["O","o",28,"+",-99]),$a(["P","p",29,",",-99]),$a(["Q","q",30,"-",-99]),$a(["R","r",31,".",-99]),$a(["S","s","@","/",-99]),$a(["T","t",92,":",-99]),$a(["U","u","^",";",-99]),$a(["V","v","_","<",-99]),$a(["W","w","`","=",-99]),$a(["X","x","|",">",-99]),$a(["Y","y","~","?",-99]),$a(["Z","z",127,"[",-99]),$a([$1.ll,$1.su,$1.ll,"]",-99]),$a([$1.lm,$1.lm,$1.lu,"{",-99]),$a([$1.ld,$1.ld,$1.lp,"}",-99]),$a([$1.sb,$1.sb,$1.sb,$1.lu,-99])]);$1.charvals=$a([new Map,new Map,new Map,new Map,new Map]);for(var _1K=0,_1J=$1.charmaps.length-1;_1K<=_1J;_1K+=1){$1.i=_1K;$1.encs=$g($1.charmaps,$1.i);for(var _1O=0;_1O<=4;_1O+=1){$1.j=_1O;var _1R=$g($1.encs,$1.j);$k[$j++]=_1R;if($eq($t(_1R),"stringtype")){var _1U=$g($k[--$j],0);$k[$j++]=_1U}$p($g($1.charvals,$1.j),$k[--$j],$1.i)}}var _1e=new Map([["\r\n",$1.p2],[". ",$1.p3],[", ",$1.p4],[": ",$1.p5]]);$1.pcomp=_1e;$1.e=1e4;$1.latlen=$a([$a([0,5,5,10,5,10]),$a([9,0,5,10,5,10]),$a([5,5,0,5,10,10]),$a([5,10,10,0,10,15]),$a([4,9,9,14,0,14]),$a([0,0,0,0,0,0])]);$1.latseq=$a([$a([$a([]),$a([$1.ll]),$a([$1.lm]),$a([$1.lm,$1.lp]),$a([$1.ld]),$a([$1.sb])]),$a([$a([$1.ld,$1.lu]),$a([]),$a([$1.lm]),$a([$1.lm,$1.lp]),$a([$1.ld]),$a([$1.sb])]),$a([$a([$1.lu]),$a([$1.ll]),$a([]),$a([$1.lp]),$a([$1.lu,$1.ld]),$a([$1.sb])]),$a([$a([$1.lu]),$a([$1.lu,$1.ll]),$a([$1.lu,$1.lm]),$a([]),$a([$1.lu,$1.ld]),$a([$1.lu,$1.sb])]),$a([$a([$1.lu]),$a([$1.lu,$1.ll]),$a([$1.lu,$1.lm]),$a([$1.lu,$1.lm,$1.lp]),$a([]),$a([$1.lu,$1.sb])]),$a([$a([$1.lu]),$a([$1.ll]),$a([$1.lm]),$a([]),$a([]),$a([])])]);$1.shftlen=$a([$a([$1.e,$1.e,$1.e,5,$1.e]),$a([5,$1.e,$1.e,5,$1.e]),$a([$1.e,$1.e,$1.e,5,$1.e]),$a([$1.e,$1.e,$1.e,$1.e,$1.e]),$a([4,$1.e,$1.e,4,$1.e])]);$1.charsize=function(){var _3X=$k[--$j];$k[$j++]=_3X;if(_3X>=0){$j--;var _3a=$g($a([5,5,5,5,4,8]),$k[--$j]);$k[$j++]=_3a}else{var _3b=$k[--$j];var _3c=$k[--$j];$k[$j++]=_3b;$k[$j++]=_3c;$j--;var _3d=$k[--$j];$k[$j++]=_3d;if(_3d==$1.fn1){$j--;$k[$j++]=8}else{var _3g=$f(-$k[--$j]-1e6);$k[$j++]=_3g;if(_3g==0){$j--;$k[$j++]=1}var _3h=$k[--$j];$k[$j++]=(~~(Math.log(_3h)/Math.log(10))+1)*4+8}}};$1.curlen=$a([0,$1.e,$1.e,$1.e,$1.e,$1.e]);$1.curseq=$a([$a([]),$a([]),$a([]),$a([]),$a([]),$a([])]);$1.backto=$1.U;$1.lastchar="";$F($1.msg,function(){$1.char=$k[--$j];for(;;){$1.imp=false;var _44=$a([$1.U,$1.L,$1.M,$1.P,$1.D,$1.B]);for(var _45=0,_46=_44.length;_45<_46;_45++){$1.x=$g(_44,_45);var _4E=$a([$1.U,$1.L,$1.M,$1.P,$1.D,$1.B]);for(var _4F=0,_4G=_4E.length;_4F<_4G;_4F++){$1.y=$g(_4E,_4F);if($1.x!=$1.B||$1.y==$1.backto){$1.cost=$f($g($1.curlen,$1.x)+$g($g($1.latlen,$1.x),$1.y));if($1.cost<$g($1.curlen,$1.y)){$p($1.curlen,$1.y,$1.cost);$k[$j++]=$1.curseq;$k[$j++]=$1.y;$k[$j++]=Infinity;$q($g($1.curseq,$1.x));$q($g($g($1.latseq,$1.x),$1.y));var _4l=$a();var _4m=$k[--$j];$p($k[--$j],_4m,_4l);if($1.y==$1.B){$k[$j++]="backto";if($1.x==$1.P||$1.x==$1.D){$k[$j++]=$1.U}else{$k[$j++]=$1.x}var _4w=$k[--$j];$1[$k[--$j]]=_4w}$1.imp=true}}}}if(!$1.imp){break}}$1.nxtlen=$a([$1.e,$1.e,$1.e,$1.e,$1.e,$1.e]);$1.nxtseq=$a(6);var _5D=$a([$1.U,$1.L,$1.M,$1.P,$1.D,$1.B]);for(var _5E=0,_5F=_5D.length;_5E<_5F;_5E++){$1.x=$g(_5D,_5E);for(;;){if($1.char>=0){if($1.x!=$1.B){var _5O=$g($g($1.charvals,$1.x),$1.char)!==undefined;if(!_5O){break}}}else{if($1.x!=$1.P){break}}$k[$j++]="cost";$k[$j++]=$g($1.curlen,$1.x);$k[$j++]=$1.x;$k[$j++]=$1.char;$1.charsize();var _5W=$k[--$j];var _5X=$k[--$j];$1[$k[--$j]]=$f(_5X+_5W);if($1.cost<$g($1.nxtlen,$1.x)){$p($1.nxtlen,$1.x,$1.cost);$k[$j++]=$1.nxtseq;$k[$j++]=$1.x;$k[$j++]=Infinity;$q($g($1.curseq,$1.x));$k[$j++]=$1.char;var _5m=$a();var _5n=$k[--$j];$p($k[--$j],_5n,_5m)}if($1.x==$1.B){break}var _5w=$a([$1.U,$1.L,$1.M,$1.P,$1.D]);for(var _5x=0,_5y=_5w.length;_5x<_5y;_5x++){$1.y=$g(_5w,_5x);if($ne($1.x,$1.y)){$k[$j++]="cost";$k[$j++]=$f($g($1.curlen,$1.y)+$g($g($1.shftlen,$1.y),$1.x));$k[$j++]=$1.x;$k[$j++]=$1.char;$1.charsize();var _6C=$k[--$j];var _6D=$k[--$j];$1[$k[--$j]]=$f(_6D+_6C);if($1.cost<$g($1.nxtlen,$1.y)){$p($1.nxtlen,$1.y,$1.cost);$k[$j++]=$1.nxtseq;$k[$j++]=$1.y;$k[$j++]=Infinity;$q($g($1.curseq,$1.y));var _6T=$1.x==$1.U?$1.su:$1.sp;$k[$j++]=_6T;$k[$j++]=$1.char;var _6V=$a();var _6W=$k[--$j];$p($k[--$j],_6W,_6V)}}}break}}if($ne($1.lastchar,"")&&$1.char>=0){var _6a=$s(2);$p(_6a,0,$1.lastchar);$p(_6a,1,$1.char);$1.pchars=_6a;var _6f=$g($1.pcomp,$1.pchars)!==undefined;if(_6f){if($lt($g($1.curlen,$1.P),$g($1.nxtlen,$1.P))){$p($1.nxtlen,$1.P,$g($1.curlen,$1.P));$k[$j++]=$1.nxtseq;$k[$j++]=$1.P;$k[$j++]=Infinity;$q($g($1.curseq,$1.P));$j--;$k[$j++]=$g($1.pcomp,$1.pchars);var _6z=$a();var _70=$k[--$j];$p($k[--$j],_70,_6z)}}}if($ne($g($1.nxtseq,$1.B),null)){$1.numbytes=0;$F($g($1.nxtseq,$1.B),function(){if($k[--$j]==$1.sb){$k[$j++]=0}else{$k[$j++]=$1.numbytes+1}$1.numbytes=$k[--$j]});if($1.numbytes==32){$p($1.nxtlen,$1.B,$f($g($1.nxtlen,$1.B)+11))}}$1.curlen=$1.nxtlen;$1.curseq=$1.nxtseq;$k[$j++]="lastchar";if($1.char>=0){$k[$j++]=$1.char}else{$k[$j++]=""}var _7M=$k[--$j];$1[$k[--$j]]=_7M});$1.minseq=$1.e;var _7V=$a([$1.U,$1.L,$1.M,$1.P,$1.D,$1.B]);for(var _7W=0,_7X=_7V.length;_7W<_7X;_7W++){$1.i=$g(_7V,_7W);if($g($1.curlen,$1.i)<$1.minseq){$1.minseq=$g($1.curlen,$1.i);$1.seq=$g($1.curseq,$1.i)}}$1.tobin=function(){var _7k=$s($k[--$j]);$k[$j++]=_7k;for(var _7m=0,_7l=_7k.length-1;_7m<=_7l;_7m+=1){var _7n=$k[--$j];$p(_7n,_7m,48);$k[$j++]=_7n}var _7o=$k[--$j];var _7r=$R($s(_7o.length),$k[--$j],2);$P(_7o,_7o.length-_7r.length,_7r);$k[$j++]=_7o};$1.encu=function(){var _7w=$g($g($1.charvals,$1.U),$k[--$j]);$k[$j++]=_7w;$k[$j++]=5;$1.tobin()};$1.encl=function(){var _81=$g($g($1.charvals,$1.L),$k[--$j]);$k[$j++]=_81;$k[$j++]=5;$1.tobin()};$1.encm=function(){var _86=$g($g($1.charvals,$1.M),$k[--$j]);$k[$j++]=_86;$k[$j++]=5;$1.tobin()};$1.encd=function(){var _8B=$g($g($1.charvals,$1.D),$k[--$j]);$k[$j++]=_8B;$k[$j++]=4;$1.tobin()};$1.encp=function(){var _8C=$k[--$j];$k[$j++]=_8C;if(_8C==$1.fn1){$j--;$k[$j++]="00000000"}else{var _8E=$k[--$j];$k[$j++]=_8E;if(_8E<=-1e6){var _8G=$f(-$k[--$j]-1e6);$k[$j++]=_8G;$k[$j++]=_8G;if(_8G==0){$j--;$k[$j++]=1}var _8I=~~(Math.log($k[--$j])/Math.log(10));var _8J=$s((_8I+1)*4+8);$P(_8J,0,"00000");$k[$j++]=_8I;$k[$j++]=_8J;$k[$j++]=_8J;$k[$j++]=_8I+1;$k[$j++]=3;$1.tobin();var _8K=$k[--$j];$P($k[--$j],5,_8K);var _8M=$k[--$j];var _8N=$k[--$j];var _8O=$k[--$j];$k[$j++]=_8M;$k[$j++]=_8O;for(var _8P=_8N;_8P>=0;_8P-=1){var _8Q=$k[--$j];var _8R=$k[--$j];$k[$j++]=_8R;$k[$j++]=~~(_8Q/10);$k[$j++]=_8R;$k[$j++]=_8P*4+8;$k[$j++]=$f(_8Q%10+2);$k[$j++]=4;$1.tobin();var _8S=$k[--$j];var _8T=$k[--$j];$P($k[--$j],_8T,_8S)}$j--}else{var _8Z=$g($g($1.charvals,$1.P),$k[--$j]);$k[$j++]=_8Z;$k[$j++]=5;$1.tobin()}}};$1.encfuncs=$a(["encu","encl","encm","encp","encd"]);$1.addtomsgbits=function(){$1.v=$k[--$j];$P($1.msgbits,$1.j,$1.v);$1.j=$1.j+$1.v.length};$1.state=$1.U;$1.msgbits=$s($1.minseq);$1.i=0;$1.j=0;for(;;){if($1.i>=$1.seq.length){break}if($1.state!=$1.B){$1.char=$g($1.seq,$1.i);$k[$j++]=$1.char;if($1[$g($1.encfuncs,$1.state)]()===true){break}$1.addtomsgbits();$1.i=$1.i+1;if($1.char==$1.su||$1.char==$1.sp){$k[$j++]=$g($1.seq,$1.i);if($1.char==$1.su){$1.encu()}else{$1.encp()}$1.addtomsgbits();$1.i=$1.i+1}if($1.char==$1.lu){$1.state=$1.U}if($1.char==$1.ll){$1.state=$1.L}if($1.char==$1.lm){$1.state=$1.M}if($1.char==$1.lp){$1.state=$1.P}if($1.char==$1.ld){$1.state=$1.D}if($1.char==$1.sb){$1.state=$1.B}}else{$1.numbytes=0;for(;;){if($1.i+$1.numbytes>=$1.seq.length){break}if($g($1.seq,$1.i+$1.numbytes)<0){break}$1.numbytes=$1.numbytes+1}if($1.numbytes<=31){$k[$j++]=$1.numbytes;$k[$j++]=5;$1.tobin();$1.addtomsgbits()}else{$k[$j++]=0;$k[$j++]=5;$1.tobin();$1.addtomsgbits();$k[$j++]=$1.numbytes-31;$k[$j++]=11;$1.tobin();$1.addtomsgbits()}for(var _9b=0,_9c=$1.numbytes;_9b<_9c;_9b++){$k[$j++]=$g($1.seq,$1.i);$k[$j++]=8;$1.tobin();$1.addtomsgbits();$1.i=$1.i+1}if($1.i<$1.seq.length){$1.char=$g($1.seq,$1.i);$1.i=$1.i+1;if($1.char==$1.lu){$1.state=$1.U}if($1.char==$1.ll){$1.state=$1.L}if($1.char==$1.lm){$1.state=$1.M}}}}}$1.metrics=$a([$a(["rune",0,0,0,6]),$a(["compact",1,1,17,6]),$a(["full",1,1,21,6]),$a(["compact",2,0,40,6]),$a(["full",2,1,48,6]),$a(["compact",3,0,51,8]),$a(["full",3,1,60,8]),$a(["compact",4,0,76,8]),$a(["full",4,1,88,8]),$a(["full",5,1,120,8]),$a(["full",6,1,156,8]),$a(["full",7,1,196,8]),$a(["full",8,1,240,8]),$a(["full",9,1,230,10]),$a(["full",10,1,272,10]),$a(["full",11,1,316,10]),$a(["full",12,1,364,10]),$a(["full",13,1,416,10]),$a(["full",14,1,470,10]),$a(["full",15,1,528,10]),$a(["full",16,1,588,10]),$a(["full",17,1,652,10]),$a(["full",18,1,720,10]),$a(["full",19,1,790,10]),$a(["full",20,1,864,10]),$a(["full",21,1,940,10]),$a(["full",22,1,1020,10]),$a(["full",23,0,920,12]),$a(["full",24,0,992,12]),$a(["full",25,0,1066,12]),$a(["full",26,0,1144,12]),$a(["full",27,0,1224,12]),$a(["full",28,0,1306,12]),$a(["full",29,0,1392,12]),$a(["full",30,0,1480,12]),$a(["full",31,0,1570,12]),$a(["full",32,0,1664,12])]);$1.i=0;for(;;){$1.m=$g($1.metrics,$1.i);$1.frmt=$g($1.m,0);$1.mlyr=$g($1.m,1);$1.icap=$g($1.m,2);$1.ncws=$g($1.m,3);$1.bpcw=$g($1.m,4);$1.numecw=~~Math.ceil($f($1.ncws*$1.eclevel/100+$1.ecaddchars));if($1.msgbits.length==0){$1.numecw=0}$1.numdcw=$f($1.ncws-$1.numecw);$1.okay=true;if($ne($1.format,"unset")&&$ne($1.format,$1.frmt)){$1.okay=false}if($1.readerinit&&$1.icap!=1){$1.okay=false}if($1.layers!=-1&&$1.layers!=$1.mlyr){$1.okay=false}if(~~Math.ceil($1.msgbits.length/$1.bpcw)>$1.numdcw){$1.okay=false}if($1.okay){break}$1.i=$1.i+1}$1.layers=$1.mlyr;$1.format=$1.frmt;$1.allzero=function(){var _B6=$k[--$j];$k[$j++]=$eq(_B6,$G("000000000000",0,_B6.length))};$1.allones=function(){var _B8=$k[--$j];$k[$j++]=$eq(_B8,$G("111111111111",0,_B8.length))};$1.cws=$a($1.ncws);$1.m=0;$1.c=0;for(;;){if($1.msgbits.length<=$1.m){break}if($1.msgbits.length-$1.m>=$1.bpcw){$1.cwb=$G($1.msgbits,$1.m,$f($1.bpcw-1));$1.cwf=$G($1.msgbits,$f($f($1.m+$1.bpcw)-1),1);$k[$j++]=$1.cwb;$1.allzero();if($k[--$j]){$1.cwf="1";$1.m=$1.m-1}$k[$j++]=$1.cwb;$1.allones();if($k[--$j]){$1.cwf="0";$1.m=$1.m-1}var _BV=$s(12);$P(_BV,0,$1.cwb);$P(_BV,$f($1.bpcw-1),$1.cwf);$1.cwb=$G(_BV,0,$1.bpcw)}else{$1.cwb=$G($1.msgbits,$1.m,$1.msgbits.length-$1.m);var _Bh=$Z($s(12),"111111111111");$P(_Bh,0,$1.cwb);$1.cwb=$G(_Bh,0,$1.bpcw);$k[$j++]=$1.cwb;$1.allones();if($k[--$j]){$P($1.cwb,$1.cwb.length-1,"0")}}$1.cw=0;for(var _Br=0,_Bq=$f($1.bpcw-1);_Br<=_Bq;_Br+=1){$1.i=_Br;$1.cw=$f($1.cw+~~Math.pow(2,$f($f($1.bpcw-$1.i)-1))*$f($g($1.cwb,$1.i)-48))}$p($1.cws,$1.c,$1.cw);$1.m=$f($1.m+$1.bpcw);$1.c=$1.c+1}$1.cws=$G($1.cws,0,$1.c);$1.rscodes=function(){$1.rspm=$k[--$j];$1.rsgf=$k[--$j];$1.rsnc=$k[--$j];$1.rscws=$k[--$j];$k[$j++]=Infinity;$k[$j++]=1;for(var _CC=0,_CD=$f($1.rsgf-1);_CC<_CD;_CC++){var _CE=$k[--$j];var _CF=_CE*2;$k[$j++]=_CE;$k[$j++]=_CF;if(_CF>=$1.rsgf){var _CI=$k[--$j];$k[$j++]=$xo(_CI,$1.rspm)}}$1.rsalog=$a();$1.rslog=$a($1.rsgf);for(var _CO=1,_CN=$f($1.rsgf-1);_CO<=_CN;_CO+=1){$p($1.rslog,$g($1.rsalog,_CO),_CO)}$1.rsprod=function(){var _CS=$k[--$j];var _CT=$k[--$j];$k[$j++]=_CT;$k[$j++]=_CS;if(_CS!=0&&_CT!=0){var _CW=$g($1.rslog,$k[--$j]);var _Cc=$g($1.rsalog,$f(_CW+$g($1.rslog,$k[--$j]))%$f($1.rsgf-1));$k[$j++]=_Cc}else{$j-=2;$k[$j++]=0}};$k[$j++]=Infinity;$k[$j++]=1;for(var _Ce=0,_Cf=$1.rsnc;_Ce<_Cf;_Ce++){$k[$j++]=0}$1.coeffs=$a();for(var _Cj=1,_Ci=$1.rsnc;_Cj<=_Ci;_Cj+=1){$1.i=_Cj;$p($1.coeffs,$1.i,$g($1.coeffs,$1.i-1));for(var _Cq=$1.i-1;_Cq>=1;_Cq-=1){$1.j=_Cq;$k[$j++]=$1.coeffs;$k[$j++]=$1.j;$k[$j++]=$g($1.coeffs,$1.j-1);$k[$j++]=$g($1.coeffs,$1.j);$k[$j++]=$g($1.rsalog,$1.i);$1.rsprod();var _D2=$k[--$j];var _D3=$k[--$j];var _D4=$k[--$j];$p($k[--$j],_D4,$xo(_D3,_D2))}$k[$j++]=$1.coeffs;$k[$j++]=0;$k[$j++]=$g($1.coeffs,0);$k[$j++]=$g($1.rsalog,$1.i);$1.rsprod();var _DC=$k[--$j];var _DD=$k[--$j];$p($k[--$j],_DD,_DC)}$1.nd=$1.rscws.length;$k[$j++]=Infinity;$F($1.rscws);for(var _DI=0,_DJ=$1.rsnc;_DI<_DJ;_DI++){$k[$j++]=0}$k[$j++]=0;$1.rscws=$a();for(var _DN=0,_DM=$1.nd-1;_DN<=_DM;_DN+=1){$1.k=$xo($g($1.rscws,_DN),$g($1.rscws,$1.nd));for(var _DV=0,_DU=$f($1.rsnc-1);_DV<=_DU;_DV+=1){$1.j=_DV;$k[$j++]=$1.rscws;$k[$j++]=$1.nd+$1.j;$k[$j++]=$g($1.rscws,$1.nd+$1.j+1);$k[$j++]=$1.k;$k[$j++]=$g($1.coeffs,$f($f($1.rsnc-$1.j)-1));$1.rsprod();var _Di=$k[--$j];var _Dj=$k[--$j];var _Dk=$k[--$j];$p($k[--$j],_Dk,$xo(_Dj,_Di))}}$k[$j++]=$G($1.rscws,0,$1.rscws.length-1)};if($eq($1.format,"full")){$1.mode=($f($1.layers-1)<<11)+($1.cws.length-1);if($1.readerinit){$1.mode=$1.mode|1024}$1.mode=$a([($1.mode&61440)>>>12,($1.mode&3840)>>>8,($1.mode&240)>>>4,$1.mode&15]);$k[$j++]="mode";$k[$j++]=$1.mode;$k[$j++]=6;$k[$j++]=16;$k[$j++]=19;$1.rscodes();var _E0=$k[--$j];$1[$k[--$j]]=_E0}if($eq($1.format,"compact")){$1.mode=($f($1.layers-1)<<6)+($1.cws.length-1);if($1.readerinit){$1.mode=$1.mode|32}$1.mode=$a([($1.mode&240)>>>4,$1.mode&15]);$k[$j++]="mode";$k[$j++]=$1.mode;$k[$j++]=5;$k[$j++]=16;$k[$j++]=19;$1.rscodes();var _EB=$k[--$j];$1[$k[--$j]]=_EB}if($eq($1.format,"rune")){$1.mode=~~$z($1.barcode);$1.mode=$a([($1.mode&240)>>>4,$1.mode&15]);$k[$j++]="mode";$k[$j++]=$1.mode;$k[$j++]=5;$k[$j++]=16;$k[$j++]=19;$1.rscodes();var _EJ=$k[--$j];$1[$k[--$j]]=_EJ;$k[$j++]=Infinity;var _EL=$1.mode;for(var _EM=0,_EN=_EL.length;_EM<_EN;_EM++){$k[$j++]=$g(_EL,_EM)^10}$1.mode=$a()}$1.modebits=$s($1.mode.length*4);for(var _EU=0,_ET=$1.modebits.length-1;_EU<=_ET;_EU+=1){$P($1.modebits,_EU,"0")}for(var _EY=0,_EX=$1.mode.length-1;_EY<=_EX;_EY+=1){$1.i=_EY;var _Ee=$R($s(4),$g($1.mode,$1.i),2);$P($1.modebits,4-_Ee.length+4*$1.i,_Ee)}$1.rsparams=$a([$a([]),$a([]),$a([]),$a([]),$a([]),$a([]),$a([64,67]),$a([]),$a([256,301]),$a([]),$a([1024,1033]),$a([]),$a([4096,4201])]);$k[$j++]="cws";$k[$j++]=$1.cws;$k[$j++]=$f($1.ncws-$1.cws.length);$F($g($1.rsparams,$1.bpcw));$1.rscodes();var _F0=$k[--$j];$1[$k[--$j]]=_F0;if($eq($1.format,"full")){$1.databits=$s($f($1.layers*$1.layers*16+$1.layers*112))}else{$1.databits=$s($f($1.layers*$1.layers*16+$1.layers*88))}for(var _FD=0,_FC=$1.databits.length-1;_FD<=_FC;_FD+=1){$P($1.databits,_FD,"0")}for(var _FH=0,_FG=$f($1.ncws-1);_FH<=_FG;_FH+=1){$1.i=_FH;var _FO=$R($s($1.bpcw),$g($1.cws,$1.i),2);$P($1.databits,$f($f($f($1.bpcw-_FO.length)+$1.bpcw*$1.i)+$f($1.databits.length-$1.ncws*$1.bpcw)),_FO)}$1.cmv=function(){var _FW=$k[--$j];var _FX=$k[--$j];$k[$j++]=$f($f(_FX-_FW*$1.size)+$1.mid)};$1.lmv=function(){$1.lbit=$k[--$j];$1.llyr=$k[--$j];$1.lwid=$f($1.fw+$1.llyr*4);$1.ldir=~~(~~($1.lbit/2)/$1.lwid);if($1.ldir==0){$k[$j++]=$f(-~~($f($1.lwid-1)/2)+1+~~($1.lbit/2)%$1.lwid);$k[$j++]=$f($f(~~(($1.fw-1)/2)+$1.llyr*2)+$1.lbit%2);$1.cmv()}if($1.ldir==1){$k[$j++]=$f($f(~~($1.fw/2)+$1.llyr*2)+$1.lbit%2);$k[$j++]=$f(~~($f($1.lwid-1)/2)-1-~~($1.lbit/2)%$1.lwid);$1.cmv()}if($1.ldir==2){$k[$j++]=-$f(-~~($1.lwid/2)+1+~~($1.lbit/2)%$1.lwid);$k[$j++]=-$f($f(~~($1.fw/2)+$1.llyr*2)+$1.lbit%2);$1.cmv()}if($1.ldir==3){$k[$j++]=-$f($f(~~(($1.fw-1)/2)+$1.llyr*2)+$1.lbit%2);$k[$j++]=-$f(~~($1.lwid/2)-1-~~($1.lbit/2)%$1.lwid);$1.cmv()}};if($eq($1.format,"full")){$1.fw=12}else{$1.fw=9}$1.size=$f($f($1.fw+$1.layers*4)+2);$k[$j++]=Infinity;for(var _GC=0,_GD=$1.size*$1.size;_GC<_GD;_GC++){$k[$j++]=-1}$1.pixs=$a();$1.mid=$f(~~($f($1.size-1)/2)*$1.size+~~($f($1.size-1)/2));$1.i=0;for(var _GK=1,_GJ=$1.layers;_GK<=_GJ;_GK+=1){$1.layer=_GK;for(var _GO=0,_GN=($1.fw+$1.layer*4)*8-1;_GO<=_GN;_GO+=1){$1.pos=_GO;$k[$j++]=$1.pixs;$k[$j++]=$1.layer;$k[$j++]=$1.pos;$1.lmv();var _GW=$k[--$j];$p($k[--$j],_GW,$g($1.databits,$1.databits.length-$1.i-1)-48);$1.i=$1.i+1}}if($eq($1.format,"full")){$1.fw=13;$1.size=$f($f($f($1.fw+$1.layers*4)+2)+~~$f($f($1.layers+10.5)/7.5-1)*2);$1.mid=~~($1.size*$1.size/2);$k[$j++]=Infinity;for(var _Gh=0,_Gi=$1.size*$1.size;_Gh<_Gi;_Gh++){$k[$j++]=-2}$1.npixs=$a();for(var _Gm=0,_Gl=~~($1.size/2);_Gm<=_Gl;_Gm+=16){$1.i=_Gm;for(var _Gp=0,_Go=$f($1.size-1);_Gp<=_Go;_Gp+=1){$1.j=_Gp;$k[$j++]=$1.npixs;$k[$j++]=-~~($1.size/2)+$1.j;$k[$j++]=$1.i;$1.cmv();var _Gy=$k[--$j];$P($k[--$j],_Gy,$a([(~~($1.size/2)+$1.j+$1.i+1)%2]));$k[$j++]=$1.npixs;$k[$j++]=-~~($1.size/2)+$1.j;$k[$j++]=-$1.i;$1.cmv();var _H8=$k[--$j];$P($k[--$j],_H8,$a([(~~($1.size/2)+$1.j+$1.i+1)%2]));$k[$j++]=$1.npixs;$k[$j++]=$1.i;$k[$j++]=-~~($1.size/2)+$1.j;$1.cmv();var _HI=$k[--$j];$P($k[--$j],_HI,$a([(~~($1.size/2)+$1.j+$1.i+1)%2]));$k[$j++]=$1.npixs;$k[$j++]=-$1.i;$k[$j++]=-~~($1.size/2)+$1.j;$1.cmv();var _HS=$k[--$j];$P($k[--$j],_HS,$a([(~~($1.size/2)+$1.j+$1.i+1)%2]))}}$1.j=0;for(var _HW=0,_HV=$1.npixs.length-1;_HW<=_HV;_HW+=1){$1.i=_HW;if($g($1.npixs,$1.i)==-2){$p($1.npixs,$1.i,$g($1.pixs,$1.j));$1.j=$1.j+1}}$1.pixs=$1.npixs}$1.fw=~~($1.fw/2);for(var _Hl=-$1.fw,_Hk=$1.fw;_Hl<=_Hk;_Hl+=1){$1.i=_Hl;for(var _Hp=-$1.fw,_Ho=$1.fw;_Hp<=_Ho;_Hp+=1){$1.j=_Hp;$k[$j++]=$1.pixs;$k[$j++]=$1.i;$k[$j++]=$1.j;$1.cmv();if(Math.abs($1.i)>Math.abs($1.j)){$k[$j++]=Math.abs($1.i)}else{$k[$j++]=Math.abs($1.j)}var _Hx=$k[--$j];var _Hy=$k[--$j];$p($k[--$j],_Hy,$f(_Hx+1)%2)}}var _Ia=$a([$a([-($1.fw+1),$1.fw,1]),$a([-($1.fw+1),$1.fw+1,1]),$a([-$1.fw,$1.fw+1,1]),$a([$1.fw+1,$1.fw+1,1]),$a([$1.fw+1,$1.fw,1]),$a([$1.fw+1,-$1.fw,1]),$a([$1.fw,$1.fw+1,0]),$a([$1.fw+1,-($1.fw+1),0]),$a([$1.fw,-($1.fw+1),0]),$a([-$1.fw,-($1.fw+1),0]),$a([-($1.fw+1),-($1.fw+1),0]),$a([-($1.fw+1),-$1.fw,0])]);for(var _Ib=0,_Ic=_Ia.length;_Ib<_Ic;_Ib++){$k[$j++]=$1.pixs;$F($g(_Ia,_Ib));var _If=$k[--$j];var _Ig=$k[--$j];var _Ih=$k[--$j];$k[$j++]=_If;$k[$j++]=_Ih;$k[$j++]=_Ig;$1.cmv();var _Ii=$k[--$j];var _Ij=$k[--$j];$p($k[--$j],_Ii,_Ij)}if($eq($1.format,"full")){$1.modemap=$a([$a([-5,7]),$a([-4,7]),$a([-3,7]),$a([-2,7]),$a([-1,7]),$a([1,7]),$a([2,7]),$a([3,7]),$a([4,7]),$a([5,7]),$a([7,5]),$a([7,4]),$a([7,3]),$a([7,2]),$a([7,1]),$a([7,-1]),$a([7,-2]),$a([7,-3]),$a([7,-4]),$a([7,-5]),$a([5,-7]),$a([4,-7]),$a([3,-7]),$a([2,-7]),$a([1,-7]),$a([-1,-7]),$a([-2,-7]),$a([-3,-7]),$a([-4,-7]),$a([-5,-7]),$a([-7,-5]),$a([-7,-4]),$a([-7,-3]),$a([-7,-2]),$a([-7,-1]),$a([-7,1]),$a([-7,2]),$a([-7,3]),$a([-7,4]),$a([-7,5])])}else{$1.modemap=$a([$a([-3,5]),$a([-2,5]),$a([-1,5]),$a([0,5]),$a([1,5]),$a([2,5]),$a([3,5]),$a([5,3]),$a([5,2]),$a([5,1]),$a([5,0]),$a([5,-1]),$a([5,-2]),$a([5,-3]),$a([3,-5]),$a([2,-5]),$a([1,-5]),$a([0,-5]),$a([-1,-5]),$a([-2,-5]),$a([-3,-5]),$a([-5,-3]),$a([-5,-2]),$a([-5,-1]),$a([-5,0]),$a([-5,1]),$a([-5,2]),$a([-5,3])])}for(var _Jw=0,_Jv=$1.modemap.length-1;_Jw<=_Jv;_Jw+=1){$1.i=_Jw;$k[$j++]=$1.pixs;$F($g($1.modemap,$1.i));$1.cmv();var _K4=$k[--$j];$p($k[--$j],_K4,$g($1.modebits,$1.i)-48)}var _KC=new Map([["ren",$0.renmatrix],["pixs",$1.pixs],["pixx",$1.size],["pixy",$1.size],["height",$1.size*2/72],["width",$1.size*2/72],["opt",$1.options]]);$k[$j++]=_KC;if(!$1.dontdraw){$0.renmatrix()}};$0.azteccodecompact=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$p($1.options,"dontdraw",true);$p($1.options,"format","compact");$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.azteccode();var _9=$k[--$j];$1[$k[--$j]]=_9;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.aztecrune=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$p($1.options,"dontdraw",true);$p($1.options,"format","rune");$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.azteccode();var _9=$k[--$j];$1[$k[--$j]]=_9;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.codeone=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.version="unset";$1.parse=false;$1.parsefnc=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.stype=$eq($G($1.version,0,1),"S");if($1.stype){$1.vals=$a(["1","1010","1100100","1111101000","10011100010000","11000011010100000","11110100001001000000","100110001001011010000000","101111101011110000100000000","111011100110101100101000000000","1001010100000010111110010000000000","1011101001000011101101110100000000000","1110100011010100101001010001000000000000","10010001100001001110011100101010000000000000","10110101111001100010000011110100100000000000000","11100011010111111010100100110001101000000000000000","100011100001101111001001101111110000010000000000000000","101100011010001010111100001011101100010100000000000000000"]);$1.normalize=function(){$1.base=$k[--$j];$1.num=$k[--$j];for(var _C=$1.num.length-1;_C>=1;_C-=1){$1.i=_C;var _D=$1.num;var _E=$1.i;$p(_D,_E-1,$f($g(_D,_E-1)+~~($g($1.num,$1.i)/$1.base)));$p($1.num,$1.i,$g($1.num,$1.i)%$1.base)}for(;;){if($lt($g($1.num,0),$1.base)){break}$k[$j++]=Infinity;$k[$j++]=0;$F($1.num);$1.num=$a();$p($1.num,0,$f($g($1.num,0)+~~($g($1.num,1)/$1.base)));$p($1.num,1,$g($1.num,1)%$1.base)}$k[$j++]=Infinity;$1.i=true;var _f=$1.num;for(var _g=0,_h=_f.length;_g<_h;_g++){var _i=$g(_f,_g);$k[$j++]=_i;if(_i==0&&$1.i){$j--}else{$1.i=false}}$1.num=$a();if($1.num.length==0){$1.num=$a([0])}$k[$j++]=$1.num};$1.bigadd=function(){var _o=$k[--$j];var _p=$k[--$j];$1.offset=Math.abs(_o.length-_p.length);if(_o.length<_p.length){var _=_o;_o=_p;_p=_}$1.a=_o;$1.b=_p;for(var _s=0,_r=$1.b.length-1;_s<=_r;_s+=1){var _t=$1.a;var _u=$1.offset;$p(_t,_s+_u,$f($g(_t,_s+_u)+$g($1.b,_s)))}$k[$j++]=$1.a};$1.barlen=$1.barcode.length;$1.v=$a([1]);for(var _13=0,_12=$1.barlen-1;_13<=_12;_13+=1){$1.i=_13;$k[$j++]=Infinity;$F($g($1.vals,$1.i),function(){var _17=$k[--$j];$k[$j++]=$f(_17-48)*$f($g($1.barcode,$1.barlen-$1.i-1)-48)});var _1C=$a();$k[$j++]=_1C;$k[$j++]=$1.v;$1.bigadd();$1.v=$k[--$j]}$k[$j++]="v";$k[$j++]=$1.v;$k[$j++]=2;$1.normalize();var _1G=$k[--$j];$1[$k[--$j]]=_1G;$k[$j++]=Infinity;for(var _1J=0,_1K=(5-$1.v.length%5)%5;_1J<_1K;_1J++){$k[$j++]=0}$q($1.v);$1.v=$a();$1.cws=$a(~~($1.v.length/5));for(var _1R=0,_1Q=$1.cws.length-1;_1R<=_1Q;_1R+=1){$1.i=_1R;var _1U=$G($1.v,$1.i*5,5);$k[$j++]=0;for(var _1V=0,_1W=_1U.length;_1V<_1W;_1V++){var _1Y=$k[--$j];$k[$j++]=$f(_1Y+$g(_1U,_1V))*2}$p($1.cws,$1.i,~~($k[--$j]/2))}$1.metrics=$a([$a(["S-10",8,11,10,4,4,1,99,99,99]),$a(["S-20",8,21,20,8,8,1,99,99,99]),$a(["S-30",8,31,30,12,12,1,99,99,99])])}else{$1.fnc1=-1;$1.fnc3=-2;var _1k=new Map([["parse",$1.parse],["parsefnc",$1.parsefnc],["eci",true],["FNC1",$1.fnc1],["FNC3",$1.fnc3]]);$1.fncvals=_1k;$k[$j++]="msg";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _1n=$k[--$j];$1[$k[--$j]]=_1n;$1.msglen=$1.msg.length;$1.lC=-5;$1.lB=-6;$1.lX=-7;$1.lT=-8;$1.lD=-9;$1.unl=-10;$1.fnc2=-11;$1.fnc4=-12;$1.sft1=-13;$1.sft2=-14;$1.sft3=-15;$1.eci=-16;$1.pad=-17;$1.fnc1lD=-18;$1.unlcw=255;$1.eciesc=92;var _1q=$1.msg;$k[$j++]="numecis";$k[$j++]=0;for(var _1r=0,_1s=_1q.length;_1r<_1s;_1r++){if($g(_1q,_1r)<=-1e6){var _1u=$k[--$j];$k[$j++]=$f(_1u+1)}}var _1v=$k[--$j];$1[$k[--$j]]=_1v;if($1.numecis>0){$1.msgtmp=$a($f($f($1.msg.length*2+$1.numecis*6)+2));$p($1.msgtmp,0,$1.pad);$p($1.msgtmp,1,$1.eciesc);$1.j=2;for(var _27=0,_26=$1.msg.length-1;_27<=_26;_27+=1){var _29=$g($1.msg,_27);$k[$j++]=_29;if(_29<=-1e6){var _2D=$G($R($s(7),-$k[--$j],10),1,6);for(var _2E=0,_2F=_2D.length;_2E<_2F;_2E++){$k[$j++]=$g(_2D,_2E)}$r($a(6));$P($1.msgtmp,$1.j+1,$k[--$j]);$p($1.msgtmp,$1.j,$1.eciesc);$1.j=$1.j+7}else{var _2P=$k[--$j];$k[$j++]=_2P;if(_2P!=$1.eciesc){$p($1.msgtmp,$1.j,$k[--$j]);$1.j=$1.j+1}else{$j--;$p($1.msgtmp,$1.j,$1.eciesc);$p($1.msgtmp,$1.j+1,$1.eciesc);$1.j=$1.j+2}}}$1.msg=$G($1.msgtmp,0,$1.j);$1.msglen=$1.msg.length}$1.metrics=$a([$a(["A",16,18,16,10,10,1,4,99,6]),$a(["B",22,22,20,19,16,1,4,99,8]),$a(["C",28,32,28,44,26,1,4,22,11]),$a(["D",40,42,36,91,44,1,4,16,16]),$a(["E",52,54,48,182,70,1,4,22,22]),$a(["F",70,76,68,370,140,2,4,22,31]),$a(["G",104,98,88,732,280,4,6,21,47]),$a(["H",148,134,120,1480,560,8,6,20,69]),$a(["T-16",16,17,16,10,10,1,99,99,99]),$a(["T-32",16,33,32,24,16,1,99,99,99]),$a(["T-48",16,49,48,38,22,1,99,99,99])]);$1.fullcws=$a([]);var _2t=$1.metrics;for(var _2u=0,_2v=_2t.length;_2u<_2v;_2u++){$1.m=$g(_2t,_2u);$1.vers=$g($1.m,0);$1.dcws=$g($1.m,4);$1.okay=true;if($eq($1.version,"unset")){if($1.vers.length!=1){$1.okay=false}}else{if($ne($1.version,$1.vers)){$1.okay=false}}if($1.okay){$k[$j++]=Infinity;$q($1.fullcws);$k[$j++]=$1.dcws;$1.fullcws=$a()}}$k[$j++]=Infinity;for(var _39=0,_3A=1480;_39<_3A;_39++){$k[$j++]=1e4}$1.numremcws=$a();var _3C=$1.fullcws;for(var _3D=0,_3E=_3C.length;_3D<_3E;_3D++){$p($1.numremcws,$f($g(_3C,_3D)-1),1)}for(var _3H=1478;_3H>=0;_3H-=1){$1.i=_3H;if($g($1.numremcws,$1.i)!=1){$p($1.numremcws,$1.i,$f($g($1.numremcws,$1.i+1)+1))}}$k[$j++]=Infinity;for(var _3Q=0;_3Q<=128;_3Q+=1){$k[$j++]=_3Q;$k[$j++]=_3Q+1}$k[$j++]=$1.pad;$k[$j++]=129;for(var _3S=0;_3S<=99;_3S+=1){var _3U=$R($s(2),_3S,10);var _3W=$Z($s(2),"00");$P(_3W,2-_3U.length,_3U);$k[$j++]=_3W;$k[$j++]=_3S+130}var _3e=$a([$1.lC,$1.lB,$1.fnc1,$1.fnc2,$1.fnc3,$1.fnc4,$1.fnc1lD]);$k[$j++]=229;for(var _3f=0,_3g=_3e.length;_3f<_3g;_3f++){var _3j=$f($k[--$j]+1);$k[$j++]=$g(_3e,_3f);$k[$j++]=_3j;$k[$j++]=_3j}$j--;$k[$j++]=$1.lX;$k[$j++]=238;$k[$j++]=$1.lT;$k[$j++]=239;$1.Avals=$d();$k[$j++]=Infinity;var _3n=$1.Avals;for(var _3s=_3n.size,_3r=_3n.keys(),_3q=0;_3q<_3s;_3q++){var _3o=_3r.next().value;$k[$j++]=_3o;$k[$j++]=Infinity;$k[$j++]=_3n.get(_3o);var _3v=$a();$k[$j++]=_3v}$1.Avals=$d();$k[$j++]=Infinity;$k[$j++]=$1.sft1;$k[$j++]=0;$k[$j++]=$1.sft2;$k[$j++]=1;$k[$j++]=$1.sft3;$k[$j++]=2;$k[$j++]=32;$k[$j++]=3;for(var _40=48;_40<=57;_40+=1){$k[$j++]=_40;$k[$j++]=_40-44}for(var _41=65;_41<=90;_41+=1){$k[$j++]=_41;$k[$j++]=_41-51}$1.CNvals=$d();$k[$j++]=Infinity;for(var _43=0;_43<=31;_43+=1){$k[$j++]=_43;$k[$j++]=_43}$1.C1vals=$d();$k[$j++]=Infinity;for(var _45=33;_45<=47;_45+=1){$k[$j++]=_45;$k[$j++]=_45-33}for(var _46=58;_46<=64;_46+=1){$k[$j++]=_46;$k[$j++]=_46-43}for(var _47=91;_47<=95;_47+=1){$k[$j++]=_47;$k[$j++]=_47-69}$k[$j++]=$1.fnc1;$k[$j++]=27;$k[$j++]=$1.fnc2;$k[$j++]=28;$k[$j++]=$1.fnc3;$k[$j++]=29;$k[$j++]=$1.fnc4;$k[$j++]=30;$k[$j++]=$1.pad;$k[$j++]=31;$1.C2vals=$d();$k[$j++]=Infinity;for(var _4E=96;_4E<=127;_4E+=1){$k[$j++]=_4E;$k[$j++]=_4E-96}$1.C3vals=$d();$k[$j++]=Infinity;var _4G=$1.CNvals;for(var _4L=_4G.size,_4K=_4G.keys(),_4J=0;_4J<_4L;_4J++){var _4H=_4K.next().value;$k[$j++]=_4H;$k[$j++]=Infinity;$k[$j++]=_4G.get(_4H);var _4O=$a();$k[$j++]=_4O}var _4P=$1.C1vals;for(var _4U=_4P.size,_4T=_4P.keys(),_4S=0;_4S<_4U;_4S++){var _4Q=_4T.next().value;$k[$j++]=_4Q;$k[$j++]=Infinity;$k[$j++]=$g($1.CNvals,$1.sft1);$k[$j++]=_4P.get(_4Q);var _4a=$a();$k[$j++]=_4a}var _4b=$1.C2vals;for(var _4g=_4b.size,_4f=_4b.keys(),_4e=0;_4e<_4g;_4e++){var _4c=_4f.next().value;$k[$j++]=_4c;$k[$j++]=Infinity;$k[$j++]=$g($1.CNvals,$1.sft2);$k[$j++]=_4b.get(_4c);var _4m=$a();$k[$j++]=_4m}var _4n=$1.C3vals;for(var _4s=_4n.size,_4r=_4n.keys(),_4q=0;_4q<_4s;_4q++){var _4o=_4r.next().value;$k[$j++]=_4o;$k[$j++]=Infinity;$k[$j++]=$g($1.CNvals,$1.sft3);$k[$j++]=_4n.get(_4o);var _4y=$a();$k[$j++]=_4y}$1.Cvals=$d();$k[$j++]=Infinity;$k[$j++]=$1.sft1;$k[$j++]=0;$k[$j++]=$1.sft2;$k[$j++]=1;$k[$j++]=$1.sft3;$k[$j++]=2;$k[$j++]=32;$k[$j++]=3;for(var _53=48;_53<=57;_53+=1){$k[$j++]=_53;$k[$j++]=_53-44}for(var _54=97;_54<=122;_54+=1){$k[$j++]=_54;$k[$j++]=_54-83}$1.TNvals=$d();$k[$j++]=Infinity;for(var _56=0;_56<=31;_56+=1){$k[$j++]=_56;$k[$j++]=_56}$1.T1vals=$d();$k[$j++]=Infinity;for(var _58=33;_58<=47;_58+=1){$k[$j++]=_58;$k[$j++]=_58-33}for(var _59=58;_59<=64;_59+=1){$k[$j++]=_59;$k[$j++]=_59-43}for(var _5A=91;_5A<=95;_5A+=1){$k[$j++]=_5A;$k[$j++]=_5A-69}$k[$j++]=$1.fnc1;$k[$j++]=27;$k[$j++]=$1.fnc2;$k[$j++]=28;$k[$j++]=$1.fnc3;$k[$j++]=29;$k[$j++]=$1.fnc4;$k[$j++]=30;$k[$j++]=$1.pad;$k[$j++]=31;$1.T2vals=$d();$k[$j++]=Infinity;$k[$j++]=96;$k[$j++]=0;for(var _5H=65;_5H<=90;_5H+=1){$k[$j++]=_5H;$k[$j++]=_5H-64}for(var _5I=123;_5I<=127;_5I+=1){$k[$j++]=_5I;$k[$j++]=_5I-96}$1.T3vals=$d();$k[$j++]=Infinity;var _5K=$1.TNvals;for(var _5P=_5K.size,_5O=_5K.keys(),_5N=0;_5N<_5P;_5N++){var _5L=_5O.next().value;$k[$j++]=_5L;$k[$j++]=Infinity;$k[$j++]=_5K.get(_5L);var _5S=$a();$k[$j++]=_5S}var _5T=$1.T1vals;for(var _5Y=_5T.size,_5X=_5T.keys(),_5W=0;_5W<_5Y;_5W++){var _5U=_5X.next().value;$k[$j++]=_5U;$k[$j++]=Infinity;$k[$j++]=$g($1.TNvals,$1.sft1);$k[$j++]=_5T.get(_5U);var _5e=$a();$k[$j++]=_5e}var _5f=$1.T2vals;for(var _5k=_5f.size,_5j=_5f.keys(),_5i=0;_5i<_5k;_5i++){var _5g=_5j.next().value;$k[$j++]=_5g;$k[$j++]=Infinity;$k[$j++]=$g($1.TNvals,$1.sft2);$k[$j++]=_5f.get(_5g);var _5q=$a();$k[$j++]=_5q}var _5r=$1.T3vals;for(var _5w=_5r.size,_5v=_5r.keys(),_5u=0;_5u<_5w;_5u++){var _5s=_5v.next().value;$k[$j++]=_5s;$k[$j++]=Infinity;$k[$j++]=$g($1.TNvals,$1.sft3);$k[$j++]=_5r.get(_5s);var _62=$a();$k[$j++]=_62}$1.Tvals=$d();for(var _64=128;_64<=255;_64+=1){$1.i=_64;$k[$j++]=$1.Avals;$k[$j++]=$1.i;$k[$j++]=Infinity;$q($g($1.Avals,$1.fnc4));$q($g($1.Avals,$1.i-128));var _6D=$a();var _6E=$k[--$j];$p($k[--$j],_6E,_6D);$k[$j++]=$1.Cvals;$k[$j++]=$1.i;$k[$j++]=Infinity;$q($g($1.Cvals,$1.fnc4));$q($g($1.Cvals,$1.i-128));var _6O=$a();var _6P=$k[--$j];$p($k[--$j],_6P,_6O);$k[$j++]=$1.Tvals;$k[$j++]=$1.i;$k[$j++]=Infinity;$q($g($1.Tvals,$1.fnc4));$q($g($1.Tvals,$1.i-128));var _6Z=$a();var _6a=$k[--$j];$p($k[--$j],_6a,_6Z)}$k[$j++]=Infinity;$k[$j++]=13;$k[$j++]=0;$k[$j++]=42;$k[$j++]=1;$k[$j++]=62;$k[$j++]=2;$k[$j++]=32;$k[$j++]=3;for(var _6c=48;_6c<=57;_6c+=1){$k[$j++]=_6c;$k[$j++]=_6c-44}for(var _6d=65;_6d<=90;_6d+=1){$k[$j++]=_6d;$k[$j++]=_6d-51}$1.Xvals=$d();$k[$j++]=Infinity;var _6f=$1.Xvals;for(var _6k=_6f.size,_6j=_6f.keys(),_6i=0;_6i<_6k;_6i++){var _6g=_6j.next().value;$k[$j++]=_6g;$k[$j++]=Infinity;$k[$j++]=_6f.get(_6g);var _6n=$a();$k[$j++]=_6n}$1.Xvals=$d();$k[$j++]=Infinity;for(var _6p=0;_6p<=255;_6p+=1){$k[$j++]=_6p;$k[$j++]=_6p}$1.Bvals=$d();$k[$j++]=Infinity;var _6r=$1.Bvals;for(var _6w=_6r.size,_6v=_6r.keys(),_6u=0;_6u<_6w;_6u++){var _6s=_6v.next().value;$k[$j++]=_6s;$k[$j++]=Infinity;$k[$j++]=_6r.get(_6s);var _6z=$a();$k[$j++]=_6z}$1.Bvals=$d();$1.encvals=$a([$1.Avals,$1.Cvals,$1.Tvals,$1.Xvals,-1,$1.Bvals]);$k[$j++]=Infinity;for(var _78=0,_79=$1.msglen;_78<_79;_78++){$k[$j++]=0}$k[$j++]=0;$1.numD=$a();$k[$j++]=Infinity;for(var _7C=0,_7D=$1.msglen;_7C<_7D;_7C++){$k[$j++]=0}$k[$j++]=9999;$1.nextXterm=$a();$k[$j++]=Infinity;for(var _7G=0,_7H=$1.msglen;_7G<_7H;_7G++){$k[$j++]=0}$k[$j++]=9999;$1.nextNonX=$a();for(var _7K=$1.msglen-1;_7K>=0;_7K-=1){$1.i=_7K;$1.barchar=$g($1.msg,$1.i);if($1.barchar>=48&&$1.barchar<=57){$p($1.numD,$1.i,$f($g($1.numD,$1.i+1)+1))}if($1.barchar==13||$1.barchar==42||$1.barchar==62){$p($1.nextXterm,$1.i,0)}else{$p($1.nextXterm,$1.i,$f($g($1.nextXterm,$1.i+1)+1))}var _7h=$g($1.Xvals,$1.barchar)!==undefined;if(!_7h){$p($1.nextNonX,$1.i,0)}else{$p($1.nextNonX,$1.i,$f($g($1.nextNonX,$1.i+1)+1))}}$k[$j++]=Infinity;var _7p=$1.nextXterm;for(var _7q=0,_7r=_7p.length;_7q<_7r;_7q++){var _7s=$g(_7p,_7q);$k[$j++]=_7s;if(_7s>1e4){$j--;$k[$j++]=1e4}}$1.nextXterm=$a();$k[$j++]=Infinity;var _7u=$1.nextNonX;for(var _7v=0,_7w=_7u.length;_7v<_7w;_7v++){var _7x=$g(_7u,_7v);$k[$j++]=_7x;if(_7x>1e4){$j--;$k[$j++]=1e4}}$1.nextNonX=$a();$1.isD=function(){$k[$j++]=$1.char>=48&&$1.char<=57};$1.isC=function(){var _83=$g($1.CNvals,$1.char)!==undefined;$k[$j++]=_83};$1.isT=function(){var _86=$g($1.TNvals,$1.char)!==undefined;$k[$j++]=_86};$1.isX=function(){var _89=$g($1.Xvals,$1.char)!==undefined;$k[$j++]=_89};$1.isEA=function(){$k[$j++]=$1.char>127};$1.isFN=function(){$k[$j++]=$1.char<0};$1.XtermFirst=function(){var _8C=$k[--$j];$k[$j++]=$lt($g($1.nextXterm,_8C),$g($1.nextNonX,_8C))};$1.A=0;$1.C=1;$1.T=2;$1.X=3;$1.D=4;$1.B=5;$1.lookup=function(){$1.ac=1;$1.cc=2;$1.tc=2;$1.xc=2;$1.bc=3;if($1.mode==$1.A){$1.ac=0;$1.cc=1;$1.tc=1;$1.xc=1;$1.bc=2}if($1.mode==$1.C){$1.cc=0}if($1.mode==$1.T){$1.tc=0}if($1.mode==$1.X){$1.xc=0}if($1.mode==$1.B){$1.bc=0}for(var _8R=0,_8S=1;_8R<_8S;_8R++){$1.k=0;for(;;){if($1.i+$1.k==$1.msglen){var _8a=$a([$1.ac,$1.cc,$1.tc,$1.xc]);$k[$j++]=true;for(var _8b=0,_8c=_8a.length;_8b<_8c;_8b++){var _8f=$k[--$j];$k[$j++]=_8f&&$1.bc<=Math.ceil($g(_8a,_8b))}if($k[--$j]){$k[$j++]=$1.B;break}var _8m=$a([$1.cc,$1.tc,$1.xc,$1.bc]);$k[$j++]=true;for(var _8n=0,_8o=_8m.length;_8n<_8o;_8n++){var _8r=$k[--$j];$k[$j++]=_8r&&$1.ac<=Math.ceil($g(_8m,_8n))}if($k[--$j]){$k[$j++]=$1.A;break}var _8w=$a([$1.tc,$1.xc]);$k[$j++]=true;for(var _8x=0,_8y=_8w.length;_8x<_8y;_8x++){var _91=$k[--$j];$k[$j++]=_91&&Math.ceil($1.cc)<=Math.ceil($g(_8w,_8x))}if($k[--$j]){$k[$j++]=$1.C;break}var _95=$a([$1.xc]);$k[$j++]=true;for(var _96=0,_97=_95.length;_96<_97;_96++){var _9A=$k[--$j];$k[$j++]=_9A&&Math.ceil($1.tc)<=Math.ceil($g(_95,_96))}if($k[--$j]){$k[$j++]=$1.T;break}$k[$j++]=$1.X;break}$1.char=$g($1.msg,$1.i+$1.k);$k[$j++]="ac";$k[$j++]=$1.ac;$1.isD();if($k[--$j]){var _9K=$k[--$j];$k[$j++]=$f(_9K+1/2)}else{$1.isEA();if($k[--$j]){var _9M=$k[--$j];$k[$j++]=Math.ceil(_9M)+2}else{var _9N=$k[--$j];$k[$j++]=Math.ceil(_9N)+1}}var _9O=$k[--$j];$1[$k[--$j]]=_9O;$k[$j++]="cc";$k[$j++]=$1.cc;$1.isC();if($k[--$j]){var _9S=$k[--$j];$k[$j++]=$f(_9S+.66666667)}else{$1.isEA();if($k[--$j]){var _9U=$k[--$j];$k[$j++]=$f(_9U+2.66666667)}else{var _9V=$k[--$j];$k[$j++]=$f(_9V+1.33333334)}}var _9W=$k[--$j];$1[$k[--$j]]=_9W;$k[$j++]="tc";$k[$j++]=$1.tc;$1.isT();if($k[--$j]){var _9a=$k[--$j];$k[$j++]=$f(_9a+.66666667)}else{$1.isEA();if($k[--$j]){var _9c=$k[--$j];$k[$j++]=$f(_9c+2.66666667)}else{var _9d=$k[--$j];$k[$j++]=$f(_9d+1.33333334)}}var _9e=$k[--$j];$1[$k[--$j]]=_9e;$k[$j++]="xc";$k[$j++]=$1.xc;$1.isX();if($k[--$j]){var _9i=$k[--$j];$k[$j++]=$f(_9i+.66666667)}else{$1.isEA();if($k[--$j]){var _9k=$k[--$j];$k[$j++]=$f(_9k+4.33333334)}else{var _9l=$k[--$j];$k[$j++]=$f(_9l+3.33333334)}}var _9m=$k[--$j];$1[$k[--$j]]=_9m;$k[$j++]="bc";$k[$j++]=$1.bc;$1.isFN();if($k[--$j]){var _9q=$k[--$j];$k[$j++]=$f(_9q+3)}else{var _9r=$k[--$j];$k[$j++]=$f(_9r+1)}var _9s=$k[--$j];$1[$k[--$j]]=_9s;if($1.k>=3){var _9z=$a([$1.ac,$1.cc,$1.tc,$1.xc]);$k[$j++]=true;for(var _A0=0,_A1=_9z.length;_A0<_A1;_A0++){var _A4=$k[--$j];$k[$j++]=_A4&&$1.bc+1<=Math.ceil($g(_9z,_A0))}if($k[--$j]){$k[$j++]=$1.B;break}var _AB=$a([$1.cc,$1.tc,$1.xc,$1.bc]);$k[$j++]=true;for(var _AC=0,_AD=_AB.length;_AC<_AD;_AC++){var _AG=$k[--$j];$k[$j++]=_AG&&$1.ac+1<=Math.ceil($g(_AB,_AC))}if($k[--$j]){$k[$j++]=$1.A;break}var _AN=$a([$1.ac,$1.cc,$1.xc,$1.bc]);$k[$j++]=true;for(var _AO=0,_AP=_AN.length;_AO<_AP;_AO++){var _AS=$k[--$j];$k[$j++]=_AS&&Math.ceil($1.tc)+1<=Math.ceil($g(_AN,_AO))}if($k[--$j]){$k[$j++]=$1.T;break}var _AX=$a([$1.ac,$1.tc]);$k[$j++]=true;for(var _AY=0,_AZ=_AX.length;_AY<_AZ;_AY++){var _Ac=$k[--$j];$k[$j++]=_Ac&&Math.ceil($1.cc)+1<=Math.ceil($g(_AX,_AY))}if($k[--$j]){if(Math.ceil($1.cc)=21){$1.Dbits=$a([1,1,1,1]);$1.mode=$1.D;break}var _BR=$g($1.numD,$1.i);if(_BR>=13&&$f(_BR+$1.i)==$1.msglen){$1.Dbits=$a([1,1,1,1]);$1.mode=$1.D;break}if($g($1.numD,$1.i)>=2){var _BZ=$s(2);$p(_BZ,0,$g($1.msg,$1.i));$p(_BZ,1,$g($1.msg,$1.i+1));$k[$j++]=$g($1.Avals,_BZ);$1.addtocws();$1.i=$1.i+2;break}if($g($1.msg,$1.i)==$1.fnc1){if($g($1.numD,$1.i+1)>=15){$k[$j++]=$g($1.Avals,$1.fnc1lD);$1.addtocws();$1.i=$1.i+1;$1.Dbits=$a([]);$1.mode=$1.D;break}var _By=$g($1.numD,$1.i+1);if(_By>=7&&$f($f(_By+$1.i)+1)==$1.msglen){$k[$j++]=$g($1.Avals,$1.fnc1lD);$1.addtocws();$1.i=$1.i+1;$1.Dbits=$a([]);$1.mode=$1.D;break}}$k[$j++]="newmode";$1.lookup();var _C7=$k[--$j];$1[$k[--$j]]=_C7;if($1.newmode!=$1.mode){$k[$j++]=$g($1.Avals,$g($a([-1,$1.lC,$1.lT,$1.lX,$1.lD,$1.lB]),$1.newmode));$1.addtocws();$1.mode=$1.newmode;break}$k[$j++]=$g($1.Avals,$g($1.msg,$1.i));$1.addtocws();$1.i=$1.i+1;break}};$1.CTXvalstocws=function(){$1.in=$k[--$j];$k[$j++]=Infinity;for(var _CV=0,_CU=$1.in.length-1;_CV<=_CU;_CV+=3){var _CX=$G($1.in,_CV,3);$k[$j++]=0;for(var _CY=0,_CZ=_CX.length;_CY<_CZ;_CY++){var _Cb=$k[--$j];$k[$j++]=$f(_Cb+$g(_CX,_CY))*40}var _Cd=~~($k[--$j]/40)+1;$k[$j++]=~~(_Cd/256);$k[$j++]=_Cd%256}$r($a($m()));var _Cg=$k[--$j];var _Ch=$k[--$j];$k[$j++]=_Cg;$k[$j++]=_Ch;$j--};$1.encCTX=function(){$1.p=0;$1.ctxvals=$a(2220);for(;;){if($1.i==$1.msglen){break}if($1.p%3==0){if($g($1.numD,$1.i)>=12){$k[$j++]=$G($1.ctxvals,0,$1.p);$1.CTXvalstocws();$1.addtocws();$k[$j++]=$a([$1.unlcw]);$1.addtocws();$1.mode=$1.A;break}var _Cx=$g($1.numD,$1.i);if(_Cx>=8&&$f(_Cx+$1.i)==$1.msglen){$k[$j++]=$G($1.ctxvals,0,$1.p);$1.CTXvalstocws();$1.addtocws();$k[$j++]=$a([$1.unlcw]);$1.addtocws();$1.mode=$1.A;break}if($1.mode==$1.X){var _DC=$g($1.Xvals,$g($1.msg,$1.i))!==undefined;if(!_DC){$k[$j++]=$G($1.ctxvals,0,$1.p);$1.CTXvalstocws();$1.addtocws();if($g($1.numremcws,$1.j)!=1||$g($1.msg,$1.i)>127){$k[$j++]=$a([$1.unlcw]);$1.addtocws()}$1.mode=$1.A;break}if($1.i+1<$1.msglen){var _DV=$g($1.Xvals,$g($1.msg,$1.i+1))!==undefined;if(!_DV){break}if($1.i+2<$1.msglen){var _Dc=$g($1.Xvals,$g($1.msg,$1.i+2))!==undefined;if(!_Dc){break}}}}else{$1.lookup();if($k[--$j]!=$1.mode){$k[$j++]=$G($1.ctxvals,0,$1.p);$1.CTXvalstocws();$1.addtocws();$k[$j++]=$a([$1.unlcw]);$1.addtocws();$1.mode=$1.A;break}}if($1.msglen-$1.i<=3){$1.remcws=$g($1.numremcws,$1.j+~~($1.p/3)*2);$k[$j++]=Infinity;var _Dv=$G($1.msg,$1.i,$1.msglen-$1.i);for(var _Dw=0,_Dx=_Dv.length;_Dw<_Dx;_Dw++){var _Dy=$g(_Dv,_Dw);var _E2=$g($g($1.encvals,$1.mode),_Dy)!==undefined;$k[$j++]=_Dy;if(_E2){$q($g($g($1.encvals,$1.mode),$k[--$j]))}else{$j--;$k[$j++]=-1;$k[$j++]=-1;$k[$j++]=-1;$k[$j++]=-1}}$1.remvals=$a();if($1.remcws==2&&$1.remvals.length==3){$k[$j++]=Infinity;$q($G($1.ctxvals,0,$1.p));$q($1.remvals);var _EF=$a();$k[$j++]=_EF;$1.CTXvalstocws();$1.addtocws();$1.mode=$1.A;$1.i=$1.msglen;break}if($1.remcws==2&&$1.remvals.length==2&&$1.mode!=$1.X){$k[$j++]=Infinity;$q($G($1.ctxvals,0,$1.p));$q($1.remvals);$q($g($g($1.encvals,$1.mode),$1.sft1));var _EV=$a();$k[$j++]=_EV;$1.CTXvalstocws();$1.addtocws();$1.mode=$1.A;$1.i=$1.msglen;break}if($1.remcws==2&&$1.remvals.length==1){$k[$j++]=$G($1.ctxvals,0,$1.p);$1.CTXvalstocws();$1.addtocws();$k[$j++]=$a([$1.unlcw]);$1.addtocws();$k[$j++]=$g($1.Avals,$g($1.msg,$1.i));$1.addtocws();$1.mode=$1.A;$1.i=$1.msglen;break}if($1.remcws==1&&$1.remvals.length==1){$k[$j++]=$G($1.ctxvals,0,$1.p);$1.CTXvalstocws();$1.addtocws();$k[$j++]=$g($1.Avals,$g($1.msg,$1.i));$1.addtocws();$1.mode=$1.A;$1.i=$1.msglen;break}}}var _F4=$g($g($1.encvals,$1.mode),$g($1.msg,$1.i));$P($1.ctxvals,$1.p,_F4);$1.p=_F4.length+$1.p;$1.i=$1.i+1}if($1.mode!=$1.A){for(;;){if($1.p%3==0){break}$1.i=$1.i-1;$1.p=$1.p-$g($g($1.encvals,$1.mode),$g($1.msg,$1.i)).length}$k[$j++]=Infinity;$q($G($1.ctxvals,0,$1.p));var _FO=$a();$k[$j++]=_FO;$1.CTXvalstocws();$1.addtocws();$k[$j++]=$a([$1.unlcw]);$1.addtocws();$1.mode=$1.A;if($1.i!=$1.msglen){if($g($1.numD,$1.i)>=2){var _FX=$s(2);$p(_FX,0,$g($1.msg,$1.i));$p(_FX,1,$g($1.msg,$1.i+1));$k[$j++]=$g($1.Avals,_FX);$1.addtocws();$1.i=$1.i+2}else{$k[$j++]=$g($1.Avals,$g($1.msg,$1.i));$1.addtocws();$1.i=$1.i+1}}}};$1.encD=function(){for(;;){if($g($1.numD,$1.i)<3){$1.Drem=(8-$1.Dbits.length%8)%8;$1.remcws=$g($1.numremcws,$1.j+~~($1.Dbits.length/8));if(($f($g($1.numremcws,$1.j+~~($1.Dbits.length/8)-1)-1)==0&&$1.Drem==0||$1.remcws==1&&$1.Drem!=0)&&$1.i==$1.msglen){if($1.Drem==4||$1.Drem==6){$k[$j++]=Infinity;$q($1.Dbits);$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$1.Dbits=$a()}if($1.Drem==2||$1.Drem==6){$k[$j++]=Infinity;$q($1.Dbits);$k[$j++]=0;$k[$j++]=1;$1.Dbits=$a()}break}if(($1.i==$1.msglen-1&&$g($1.numD,$1.i)==1||$1.i==$1.msglen-2&&$g($1.numD,$1.i)==2)&&$1.remcws==1&&$1.Drem==0){break}if(!($1.i==$1.msglen-1&&$g($1.numD,$1.i)==1&&$1.remcws==1&&($1.Drem==4||$1.Drem==6))){$k[$j++]=Infinity;$q($1.Dbits);$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$1.Dbits=$a();$1.Drem=(8-$1.Dbits.length%8)%8}if($1.Drem==4||$1.Drem==6){if($g($1.numD,$1.i)>=1){$k[$j++]=Infinity;$q($1.Dbits);$k[$j++]=$f($f($g($1.msg,$1.i)-48)+1);$k[$j++]=4;$1.tobin();$q($k[--$j]);$1.Dbits=$a();$1.i=$1.i+1}else{$k[$j++]=Infinity;$q($1.Dbits);$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$1.Dbits=$a()}$1.Drem=$1.Drem-4}if($1.Drem==2){$k[$j++]=Infinity;$q($1.Dbits);$k[$j++]=0;$k[$j++]=1;$1.Dbits=$a();$1.Drem=0}break}$k[$j++]=Infinity;$q($1.Dbits);var _Gu=$G($1.msg,$1.i,3);$k[$j++]=0;for(var _Gv=0,_Gw=_Gu.length;_Gv<_Gw;_Gv++){var _Gy=$k[--$j];$k[$j++]=$f(_Gy+$f($g(_Gu,_Gv)-48))*10}var _Gz=$k[--$j];$k[$j++]=~~(_Gz/10)+1;$k[$j++]=10;$1.tobin();$q($k[--$j]);$1.Dbits=$a();$1.i=$1.i+3}$k[$j++]=Infinity;for(var _H5=0,_H4=$1.Dbits.length-1;_H5<=_H4;_H5+=8){var _H7=$G($1.Dbits,_H5,8);$k[$j++]=0;for(var _H8=0,_H9=_H7.length;_H8<_H9;_H8++){var _HB=$k[--$j];$k[$j++]=$f(_HB+$g(_H7,_H8))*2}var _HC=$k[--$j];$k[$j++]=~~(_HC/2)}$r($a($m()));var _HF=$k[--$j];var _HG=$k[--$j];$k[$j++]=_HF;$k[$j++]=_HG;$j--;$1.addtocws();$1.mode=$1.A};$1.encB=function(){$1.p=0;$1.bvals=$a(1480);for(;;){if($1.i==$1.msglen){break}if($g($1.msg,$1.i)<0){break}$1.lookup();if($k[--$j]!=$1.mode){break}$p($1.bvals,$1.p,$g($1.msg,$1.i));$1.p=$1.p+1;$1.i=$1.i+1}$1.remcws=$f($g($1.numremcws,$1.j+$1.p)-1);$k[$j++]=Infinity;if($1.remcws==0&&$1.i==$1.msglen){$k[$j++]=0}else{if($1.p<250){$k[$j++]=$1.p}else{$k[$j++]=~~($1.p/250)+249;$k[$j++]=$1.p%250}}$q($G($1.bvals,0,$1.p));$1.bvals=$a();$k[$j++]=$1.bvals;$1.addtocws();$1.mode=$1.A};$1.cws=$a(1480);$1.mode=$1.A;$1.i=0;$1.j=0;for(;;){if($1.i>=$1.msglen){break}if($1[$g($a(["encA","encCTX","encCTX","encCTX","encD","encB"]),$1.mode)]()===true){break}}$1.cws=$G($1.cws,0,$1.j)}$1.i=0;for(;;){$1.m=$g($1.metrics,$1.i);$1.vers=$g($1.m,0);$1.rows=$g($1.m,1);$1.cols=$g($1.m,2);$1.dcol=$g($1.m,3);$1.dcws=$g($1.m,4);$1.rscw=$g($1.m,5);$1.rsbl=$g($1.m,6);$1.riso=$g($1.m,7);$1.risi=$g($1.m,8);$1.risl=$g($1.m,9);$1.dcpb=~~($1.dcws/$1.rsbl);$1.ecpb=~~($1.rscw/$1.rsbl);$1.okay=true;if($ne($1.version,"unset")&&$ne($1.version,$1.vers)){$1.okay=false}if($1.cws.length>$1.dcws){$1.okay=false}if($1.okay){break}$1.i=$1.i+1}if(!$1.stype){$k[$j++]=Infinity;$q($1.cws);for(var _Ib=0,_Ic=$f($1.dcws-$1.cws.length);_Ib<_Ic;_Ib++){$k[$j++]=129}$1.cws=$a()}else{$k[$j++]=Infinity;for(var _Ig=0,_Ih=$f($1.dcws-$1.cws.length);_Ig<_Ih;_Ig++){$k[$j++]=0}$q($1.cws);$1.cws=$a()}var _Il=$g($1.options,"debugcws")!==undefined;if(_Il){$k[$j++]="bwipp.debugcws";$k[$j++]=$1.cws;$0.raiseerror()}$1.cwbs=$a($1.rsbl);$1.ecbs=$a($1.rsbl);for(var _It=0,_Is=$f($1.rsbl-1);_It<=_Is;_It+=1){$1.i=_It;$1.cwb=$a($1.dcpb);for(var _Iy=0,_Ix=$1.dcpb-1;_Iy<=_Ix;_Iy+=1){$1.j=_Iy;$p($1.cwb,$1.j,$g($1.cws,$f($1.j*$1.rsbl+$1.i)))}$p($1.cwbs,$1.i,$1.cwb)}var _JA=$1.stype?32:256;$1.gf=_JA;$1["gf-1"]=$1.gf-1;var _JD=$1.stype?37:301;$1.pm=_JD;$k[$j++]=Infinity;$k[$j++]=1;for(var _JF=0,_JG=$1["gf-1"];_JF<_JG;_JF++){var _JH=$k[--$j];var _JI=_JH*2;$k[$j++]=_JH;$k[$j++]=_JI;if(_JI>=$1.gf){var _JL=$k[--$j];$k[$j++]=_JL^$1.pm}}$1.rsalog=$a();$1.rslog=$a($1.gf);for(var _JR=1,_JQ=$1["gf-1"];_JR<=_JQ;_JR+=1){$p($1.rslog,$g($1.rsalog,_JR),_JR)}$1.rsprod=function(){var _JV=$k[--$j];var _JW=$k[--$j];$k[$j++]=_JW;$k[$j++]=_JV;if(_JV!=0&&_JW!=0){var _JZ=$g($1.rslog,$k[--$j]);var _Jf=$g($1.rsalog,$f(_JZ+$g($1.rslog,$k[--$j]))%$1["gf-1"]);$k[$j++]=_Jf}else{$j-=2;$k[$j++]=0}};$k[$j++]=Infinity;$k[$j++]=1;for(var _Jh=0,_Ji=$1.ecpb;_Jh<_Ji;_Jh++){$k[$j++]=0}$1.coeffs=$a();for(var _Jm=0,_Jl=$1.ecpb-1;_Jm<=_Jl;_Jm+=1){$1.i=_Jm;$p($1.coeffs,$1.i+1,$g($1.coeffs,$1.i));for(var _Jt=$1.i;_Jt>=1;_Jt-=1){$1.j=_Jt;$k[$j++]=$1.coeffs;$k[$j++]=$1.j;$k[$j++]=$g($1.coeffs,$1.j-1);$k[$j++]=$g($1.coeffs,$1.j);$k[$j++]=$g($1.rsalog,$1.i);$1.rsprod();var _K5=$k[--$j];var _K6=$k[--$j];var _K7=$k[--$j];$p($k[--$j],_K7,$xo(_K6,_K5))}$k[$j++]=$1.coeffs;$k[$j++]=0;$k[$j++]=$g($1.coeffs,0);$k[$j++]=$g($1.rsalog,$1.i);$1.rsprod();var _KF=$k[--$j];var _KG=$k[--$j];$p($k[--$j],_KG,_KF)}$1.coeffs=$G($1.coeffs,0,$1.coeffs.length-1);for(var _KN=0,_KM=$1.cwbs.length-1;_KN<=_KM;_KN+=1){$1.i=_KN;$k[$j++]=Infinity;$q($g($1.cwbs,$1.i));for(var _KS=0,_KT=$1.ecpb;_KS<_KT;_KS++){$k[$j++]=0}$1.rscws=$a();for(var _KX=0,_KW=$1.dcpb-1;_KX<=_KW;_KX+=1){$1.m=_KX;$1.k=$g($1.rscws,$1.m);for(var _Kd=0,_Kc=$1.ecpb-1;_Kd<=_Kc;_Kd+=1){$1.j=_Kd;$k[$j++]=$1.rscws;$k[$j++]=$1.m+$1.j+1;$k[$j++]=$g($1.coeffs,$1.ecpb-$1.j-1);$k[$j++]=$1.k;$1.rsprod();var _Kq=$k[--$j];var _Kr=$k[--$j];$p($k[--$j],_Kr,$xo(_Kq,$g($1.rscws,$1.m+$1.j+1)))}}$p($1.ecbs,$1.i,$G($1.rscws,$1.dcpb,$1.ecpb))}$k[$j++]=Infinity;$q($1.cws);for(var _L1=0,_L2=$1.rscw;_L1<_L2;_L1++){$k[$j++]=0}$1.cws=$a();for(var _L6=0,_L5=$f($1.rscw-1);_L6<=_L5;_L6+=1){$1.i=_L6;$p($1.cws,$f($1.dcws+$1.i),$g($g($1.ecbs,$1.i%$1.rsbl),~~($1.i/$1.rsbl)))}var _LK=$1.stype?5:8;$1.mmat=$a($f($1.dcws+$1.rscw)*_LK);$1.r=0;$1.c=0;var _LN=$1.stype?2:1;for(var _LQ=0,_LR=_LN,_LP=$1.cws.length-1;_LR<0?_LQ>=_LP:_LQ<=_LP;_LQ+=_LR){$1.i=_LQ;if(!$1.stype){var _LU=$Z($s(8),"00000000");var _LZ=$R($s(8),$g($1.cws,$1.i),2);$P(_LU,8-_LZ.length,_LZ);$k[$j++]=Infinity;var _Lb=_LU;$F(_Lb,function(){var _Lc=$k[--$j];$k[$j++]=$f(_Lc-48)});var _Ld=$a();$1.top=$G(_Ld,0,4);$1.bot=$G(_Ld,4,4)}else{var _Lh=$Z($s(5),"00000");var _Lm=$R($s(5),$g($1.cws,$1.i),2);$P(_Lh,5-_Lm.length,_Lm);$k[$j++]=Infinity;var _Lo=_Lh;$F(_Lo,function(){var _Lp=$k[--$j];$k[$j++]=$f(_Lp-48)});$1.c1=$a();var _Ls=$Z($s(5),"00000");var _Lx=$R($s(5),$g($1.cws,$1.i+1),2);$P(_Ls,5-_Lx.length,_Lx);$k[$j++]=Infinity;var _Lz=_Ls;$F(_Lz,function(){var _M0=$k[--$j];$k[$j++]=$f(_M0-48)});$1.c2=$a();$k[$j++]=Infinity;$q($G($1.c1,0,3));$q($G($1.c2,0,2));$1.top=$a();$k[$j++]=Infinity;$q($G($1.c1,3,2));$q($G($1.c2,2,3));$1.bot=$a()}$P($1.mmat,$f($1.r*$1.dcol+$1.c),$1.top);$P($1.mmat,$f(($1.r+1)*$1.dcol+$1.c),$1.bot);$1.c=$1.c+$1.top.length;if($1.c==$1.dcol){$1.c=0;$1.r=$1.r+2}}$1.mmv=function(){var _MS=$k[--$j];var _MT=$k[--$j];$k[$j++]=$f(_MT+_MS*$1.cols)};$k[$j++]=Infinity;for(var _MW=0,_MX=$1.rows*$1.cols;_MW<_MX;_MW++){$k[$j++]=-1}$1.pixs=$a();var _N3=$a([function(){for(var _Ma=0,_Mb=$1.cols;_Ma<_Mb;_Ma++){$k[$j++]=0}},function(){for(var _Md=0,_Me=$1.cols;_Md<_Me;_Md++){$k[$j++]=1}},function(){$k[$j++]=0;for(var _Mg=0,_Mh=$f($1.cols-2);_Mg<_Mh;_Mg++){$k[$j++]=1}$k[$j++]=0},function(){$k[$j++]=0;$k[$j++]=1;for(var _Mj=0,_Mk=$f($1.cols-4);_Mj<_Mk;_Mj++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0},function(){for(var _Mm=0,_Mn=~~($f($1.cols-1)/2);_Mm<_Mn;_Mm++){$k[$j++]=-1}$k[$j++]=1;for(var _Mp=0,_Mq=~~($f($1.cols-1)/2);_Mp<_Mq;_Mp++){$k[$j++]=-1}},function(){for(var _Ms=0,_Mt=~~($f($1.cols-1)/2);_Ms<_Mt;_Ms++){$k[$j++]=-1}$k[$j++]=0;for(var _Mv=0,_Mw=~~($f($1.cols-1)/2);_Mv<_Mw;_Mv++){$k[$j++]=-1}},function(){$k[$j++]=1;for(var _My=0,_Mz=$f($1.cols-2);_My<_Mz;_My++){$k[$j++]=0}$k[$j++]=1},function(){$k[$j++]=1;$k[$j++]=0;for(var _N1=0,_N2=$f($1.cols-4);_N1<_N2;_N1++){$k[$j++]=1}$k[$j++]=0;$k[$j++]=1}]);$1.artifact=_N3;var _N4=new Map([["A","121343"],["B","12134343"],["C","12121343"],["D","1213434343"],["E","1212134343"],["F","1212121343"],["G","121213434343"],["H","121212134343"],["S","56661278"],["T","5666666666127878"]]);$1.cpat=$g(_N4,$G($1.vers,0,1));$k[$j++]=$1.pixs;$k[$j++]=0;$k[$j++]=~~($f($1.rows-$1.cpat.length)/2);$1.mmv();$k[$j++]=Infinity;$F($1.cpat,function(){if($g($1.artifact,$f($k[--$j]-49))()===true){return true}});var _NF=$a();var _NG=$k[--$j];$P($k[--$j],_NG,_NF);for(var _NK=0,_NJ=$f($1.risl-1);_NK<=_NJ;_NK+=1){$1.i=_NK;for(var _NP=$1.riso,_NQ=$1.risi,_NO=$f($1.cols-1);_NQ<0?_NP>=_NO:_NP<=_NO;_NP+=_NQ){$1.j=_NP;var _NS=$1.i%12==0?1:0;var _NT=$a([1,_NS]);$k[$j++]=_NT;$k[$j++]=_NT;$k[$j++]=$1.pixs;$k[$j++]=$1.j;$k[$j++]=$1.i;$1.mmv();var _NX=$k[--$j];var _NY=$k[--$j];$P(_NY,_NX,$k[--$j]);if($1.i!=$f($1.risl-1)){$k[$j++]=$1.pixs;$k[$j++]=$f($f($1.cols-$1.j)-2);$k[$j++]=$f($f($1.rows-$1.i)-1);$1.mmv();var _Nh=$k[--$j];var _Ni=$k[--$j];$P(_Ni,_Nh,$k[--$j])}else{$j--}}}var _ON=new Map([["A",$a([$a([12,5])])],["B",$a([$a([16,7])])],["C",$a([$a([26,12])])],["D",$a([])],["E",$a([$a([26,23])])],["F",$a([$a([26,32]),$a([70,32]),$a([26,34]),$a([70,34])])],["G",$a([$a([27,48]),$a([69,48])])],["H",$a([$a([26,70]),$a([66,70]),$a([106,70]),$a([26,72]),$a([66,72]),$a([106,72])])],["S-10",$a([])],["S-20",$a([$a([10,4])])],["S-30",$a([$a([15,4]),$a([15,6])])],["T-16",$a([$a([8,10])])],["T-32",$a([$a([16,10]),$a([16,12])])],["T-48",$a([$a([24,10]),$a([24,12]),$a([24,14])])]]);$F($g(_ON,$1.vers),function(){var _OR=$k[--$j];$k[$j++]=$1.pixs;$q(_OR);$1.mmv();var _OS=$k[--$j];$p($k[--$j],_OS,1)});$1.j=0;for(var _OW=0,_OV=$1.pixs.length-1;_OW<=_OV;_OW+=1){$1.i=_OW;if($g($1.pixs,$1.i)==-1){$p($1.pixs,$1.i,$g($1.mmat,$1.j));$1.j=$1.j+1}}var _Om=new Map([["ren",$0.renmatrix],["pixs",$1.pixs],["pixx",$1.cols],["pixy",$1.rows],["height",$1.rows/72*2],["width",$1.cols/72*2],["opt",$1.options]]);$k[$j++]=_Om;if(!$1.dontdraw){$0.renmatrix()}};$0.hanxin=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.version="unset";$1.eclevel="unset";$1.parse=false;$1.parsefnc=false;$1.mask=-1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.mask=~~$1.mask;var _8=new Map([["parse",$1.parse],["parsefnc",$1.parsefnc]]);$1.fncvals=_8;$k[$j++]="msg";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _B=$k[--$j];$1[$k[--$j]]=_B;$1.msglen=$1.msg.length;if($eq($1.eclevel,"unset")){$1.eclevel="L2"}$1.tobin=function(){var _G=$s($k[--$j]);$k[$j++]=_G;for(var _I=0,_H=_G.length-1;_I<=_H;_I+=1){var _J=$k[--$j];$p(_J,_I,48);$k[$j++]=_J}var _K=$k[--$j];var _N=$R($s(_K.length),$k[--$j],2);$P(_K,_K.length-_N.length,_N);$k[$j++]=_K};$1.bits=$s(4+13+$1.msglen*8);$P($1.bits,0,"0011");$k[$j++]=$1.bits;$k[$j++]=4;$k[$j++]=$1.msglen;$k[$j++]=13;$1.tobin();var _T=$k[--$j];var _U=$k[--$j];$P($k[--$j],_U,_T);for(var _Y=0,_X=$1.msglen-1;_Y<=_X;_Y+=1){$1.i=_Y;$k[$j++]=$1.bits;$k[$j++]=17+$1.i*8;$k[$j++]=$g($1.msg,$1.i);$k[$j++]=8;$1.tobin();var _e=$k[--$j];var _f=$k[--$j];$P($k[--$j],_f,_e)}$1.metrics=$a([$a(["1",23,-1,0,205,$a([1,21,4]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,17,8]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,13,12]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,9,16]),$a([0,-1,-1]),$a([0,-1,-1])]),$a(["2",25,-1,0,301,$a([1,31,6]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,25,12]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,19,18]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,15,22]),$a([0,-1,-1]),$a([0,-1,-1])]),$a(["3",27,-1,0,405,$a([1,42,8]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,34,16]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,26,24]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,20,30]),$a([0,-1,-1]),$a([0,-1,-1])]),$a(["4",29,14,1,439,$a([1,46,8]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,38,16]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,30,24]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,22,32]),$a([0,-1,-1]),$a([0,-1,-1])]),$a(["5",31,16,1,555,$a([1,57,12]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,49,20]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,37,32]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,14,20]),$a([1,13,22]),$a([0,-1,-1])]),$a(["6",33,16,1,675,$a([1,70,14]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,58,26]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,24,20]),$a([1,22,18]),$a([0,-1,-1]),$a([1,16,24]),$a([1,18,26]),$a([0,-1,-1])]),$a(["7",35,17,1,805,$a([1,84,16]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,70,30]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,26,22]),$a([1,28,24]),$a([0,-1,-1]),$a([2,14,20]),$a([1,12,20]),$a([0,-1,-1])]),$a(["8",37,18,1,943,$a([1,99,18]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,40,18]),$a([1,41,18]),$a([0,-1,-1]),$a([1,31,26]),$a([1,32,28]),$a([0,-1,-1]),$a([2,16,24]),$a([1,15,22]),$a([0,-1,-1])]),$a(["9",39,19,1,1089,$a([1,114,22]),$a([0,-1,-1]),$a([0,-1,-1]),$a([2,48,20]),$a([0,-1,-1]),$a([0,-1,-1]),$a([2,24,20]),$a([1,26,22]),$a([0,-1,-1]),$a([2,18,28]),$a([1,18,26]),$a([0,-1,-1])]),$a(["10",41,20,1,1243,$a([1,131,24]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,52,22]),$a([1,57,24]),$a([0,-1,-1]),$a([2,27,24]),$a([1,29,24]),$a([0,-1,-1]),$a([2,21,32]),$a([1,19,30]),$a([0,-1,-1])]),$a(["11",43,14,2,1289,$a([1,135,26]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,56,24]),$a([1,57,24]),$a([0,-1,-1]),$a([2,28,24]),$a([1,31,26]),$a([0,-1,-1]),$a([2,22,32]),$a([1,21,32]),$a([0,-1,-1])]),$a(["12",45,15,2,1455,$a([1,153,28]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,62,26]),$a([1,65,28]),$a([0,-1,-1]),$a([2,32,28]),$a([1,33,28]),$a([0,-1,-1]),$a([3,17,26]),$a([1,22,30]),$a([0,-1,-1])]),$a(["13",47,16,2,1629,$a([1,86,16]),$a([1,85,16]),$a([0,-1,-1]),$a([1,71,30]),$a([1,72,30]),$a([0,-1,-1]),$a([2,37,32]),$a([1,35,30]),$a([0,-1,-1]),$a([3,20,30]),$a([1,21,32]),$a([0,-1,-1])]),$a(["14",49,16,2,1805,$a([1,94,18]),$a([1,95,18]),$a([0,-1,-1]),$a([2,51,22]),$a([1,55,24]),$a([0,-1,-1]),$a([3,30,26]),$a([1,31,26]),$a([0,-1,-1]),$a([4,18,28]),$a([1,17,24]),$a([0,-1,-1])]),$a(["15",51,17,2,1995,$a([1,104,20]),$a([1,105,20]),$a([0,-1,-1]),$a([2,57,24]),$a([1,61,26]),$a([0,-1,-1]),$a([3,33,28]),$a([1,36,30]),$a([0,-1,-1]),$a([4,20,30]),$a([1,19,30]),$a([0,-1,-1])]),$a(["16",53,17,2,2187,$a([1,115,22]),$a([1,114,22]),$a([0,-1,-1]),$a([2,65,28]),$a([1,61,26]),$a([0,-1,-1]),$a([3,38,32]),$a([1,33,30]),$a([0,-1,-1]),$a([5,19,28]),$a([1,14,24]),$a([0,-1,-1])]),$a(["17",55,18,2,2393,$a([1,126,24]),$a([1,125,24]),$a([0,-1,-1]),$a([2,70,30]),$a([1,69,30]),$a([0,-1,-1]),$a([4,33,28]),$a([1,29,26]),$a([0,-1,-1]),$a([5,20,30]),$a([1,19,30]),$a([0,-1,-1])]),$a(["18",57,19,2,2607,$a([1,136,26]),$a([1,137,26]),$a([0,-1,-1]),$a([3,56,24]),$a([1,59,26]),$a([0,-1,-1]),$a([5,35,30]),$a([0,-1,-1]),$a([0,-1,-1]),$a([6,18,28]),$a([1,21,28]),$a([0,-1,-1])]),$a(["19",59,20,2,2829,$a([1,148,28]),$a([1,149,28]),$a([0,-1,-1]),$a([3,61,26]),$a([1,64,28]),$a([0,-1,-1]),$a([7,24,20]),$a([1,23,22]),$a([0,-1,-1]),$a([6,20,30]),$a([1,21,32]),$a([0,-1,-1])]),$a(["20",61,20,2,3053,$a([3,107,20]),$a([0,-1,-1]),$a([0,-1,-1]),$a([3,65,28]),$a([1,72,30]),$a([0,-1,-1]),$a([7,26,22]),$a([1,23,22]),$a([0,-1,-1]),$a([7,19,28]),$a([1,20,32]),$a([0,-1,-1])]),$a(["21",63,21,2,3291,$a([3,115,22]),$a([0,-1,-1]),$a([0,-1,-1]),$a([4,56,24]),$a([1,63,28]),$a([0,-1,-1]),$a([7,28,24]),$a([1,25,22]),$a([0,-1,-1]),$a([8,18,28]),$a([1,21,22]),$a([0,-1,-1])]),$a(["22",65,16,3,3383,$a([2,116,22]),$a([1,122,24]),$a([0,-1,-1]),$a([4,56,24]),$a([1,72,30]),$a([0,-1,-1]),$a([7,28,24]),$a([1,32,26]),$a([0,-1,-1]),$a([8,18,28]),$a([1,24,30]),$a([0,-1,-1])]),$a(["23",67,17,3,3631,$a([3,127,24]),$a([0,-1,-1]),$a([0,-1,-1]),$a([5,51,22]),$a([1,62,26]),$a([0,-1,-1]),$a([7,30,26]),$a([1,35,26]),$a([0,-1,-1]),$a([8,20,30]),$a([1,21,32]),$a([0,-1,-1])]),$a(["24",69,17,3,3887,$a([2,135,26]),$a([1,137,26]),$a([0,-1,-1]),$a([5,56,24]),$a([1,59,26]),$a([0,-1,-1]),$a([7,33,28]),$a([1,30,28]),$a([0,-1,-1]),$a([11,16,24]),$a([1,19,26]),$a([0,-1,-1])]),$a(["25",71,18,3,4151,$a([3,105,20]),$a([1,121,22]),$a([0,-1,-1]),$a([5,61,26]),$a([1,57,26]),$a([0,-1,-1]),$a([9,28,24]),$a([1,28,22]),$a([0,-1,-1]),$a([10,19,28]),$a([1,18,30]),$a([0,-1,-1])]),$a(["26",73,18,3,4423,$a([2,157,30]),$a([1,150,28]),$a([0,-1,-1]),$a([5,65,28]),$a([1,61,26]),$a([0,-1,-1]),$a([8,33,28]),$a([1,34,30]),$a([0,-1,-1]),$a([10,19,28]),$a([2,15,26]),$a([0,-1,-1])]),$a(["27",75,19,3,4703,$a([3,126,24]),$a([1,115,22]),$a([0,-1,-1]),$a([7,51,22]),$a([1,54,22]),$a([0,-1,-1]),$a([8,35,30]),$a([1,37,30]),$a([0,-1,-1]),$a([15,15,22]),$a([1,10,22]),$a([0,-1,-1])]),$a(["28",77,19,3,4991,$a([4,105,20]),$a([1,103,20]),$a([0,-1,-1]),$a([7,56,24]),$a([1,45,18]),$a([0,-1,-1]),$a([10,31,26]),$a([1,27,26]),$a([0,-1,-1]),$a([10,17,26]),$a([3,20,28]),$a([1,21,28])]),$a(["29",79,20,3,5287,$a([3,139,26]),$a([1,137,28]),$a([0,-1,-1]),$a([6,66,28]),$a([1,66,30]),$a([0,-1,-1]),$a([9,36,30]),$a([1,34,32]),$a([0,-1,-1]),$a([13,19,28]),$a([1,17,32]),$a([0,-1,-1])]),$a(["30",81,20,3,5591,$a([6,84,16]),$a([1,82,16]),$a([0,-1,-1]),$a([6,70,30]),$a([1,68,30]),$a([0,-1,-1]),$a([7,35,30]),$a([3,33,28]),$a([1,32,28]),$a([13,20,30]),$a([1,20,28]),$a([0,-1,-1])]),$a(["31",83,21,3,5903,$a([5,105,20]),$a([1,94,18]),$a([0,-1,-1]),$a([6,74,32]),$a([1,71,30]),$a([0,-1,-1]),$a([11,33,28]),$a([1,34,32]),$a([0,-1,-1]),$a([13,19,28]),$a([3,16,26]),$a([0,-1,-1])]),$a(["32",85,17,4,6033,$a([4,127,24]),$a([1,126,24]),$a([0,-1,-1]),$a([7,66,28]),$a([1,66,30]),$a([0,-1,-1]),$a([12,30,24]),$a([1,24,28]),$a([1,24,30]),$a([15,19,28]),$a([1,17,32]),$a([0,-1,-1])]),$a(["33",87,17,4,6353,$a([7,84,16]),$a([1,78,16]),$a([0,-1,-1]),$a([7,70,30]),$a([1,66,28]),$a([0,-1,-1]),$a([12,33,28]),$a([1,32,30]),$a([0,-1,-1]),$a([14,21,32]),$a([1,24,28]),$a([0,-1,-1])]),$a(["34",89,18,4,6689,$a([5,117,22]),$a([1,117,24]),$a([0,-1,-1]),$a([8,66,28]),$a([1,58,26]),$a([0,-1,-1]),$a([11,38,32]),$a([1,34,32]),$a([0,-1,-1]),$a([15,20,30]),$a([2,17,26]),$a([0,-1,-1])]),$a(["35",91,18,4,7025,$a([4,148,28]),$a([1,146,28]),$a([0,-1,-1]),$a([8,68,30]),$a([1,70,24]),$a([0,-1,-1]),$a([10,36,32]),$a([3,38,28]),$a([0,-1,-1]),$a([16,19,28]),$a([3,16,26]),$a([0,-1,-1])]),$a(["36",93,19,4,7377,$a([4,126,24]),$a([2,135,26]),$a([0,-1,-1]),$a([8,70,28]),$a([2,43,26]),$a([0,-1,-1]),$a([13,32,28]),$a([2,41,30]),$a([0,-1,-1]),$a([17,19,28]),$a([3,15,26]),$a([0,-1,-1])]),$a(["37",95,19,4,7729,$a([5,136,26]),$a([1,132,24]),$a([0,-1,-1]),$a([5,67,30]),$a([4,68,28]),$a([1,69,28]),$a([14,35,30]),$a([1,32,24]),$a([0,-1,-1]),$a([18,18,26]),$a([3,16,28]),$a([1,14,28])]),$a(["38",97,19,4,8089,$a([3,142,26]),$a([3,141,28]),$a([0,-1,-1]),$a([8,70,30]),$a([1,73,32]),$a([1,74,32]),$a([12,34,30]),$a([3,34,26]),$a([1,35,28]),$a([18,21,32]),$a([1,27,30]),$a([0,-1,-1])]),$a(["39",99,20,4,8465,$a([5,116,22]),$a([2,103,20]),$a([1,102,20]),$a([9,74,32]),$a([1,74,30]),$a([0,-1,-1]),$a([14,34,28]),$a([2,32,32]),$a([1,32,30]),$a([19,21,32]),$a([1,25,26]),$a([0,-1,-1])]),$a(["40",101,20,4,8841,$a([7,116,22]),$a([1,117,22]),$a([0,-1,-1]),$a([11,65,28]),$a([1,58,24]),$a([0,-1,-1]),$a([15,38,32]),$a([1,27,28]),$a([0,-1,-1]),$a([20,20,30]),$a([1,20,32]),$a([1,21,32])]),$a(["41",103,17,5,9009,$a([6,136,26]),$a([1,130,24]),$a([0,-1,-1]),$a([11,66,28]),$a([1,62,30]),$a([0,-1,-1]),$a([14,34,28]),$a([3,34,32]),$a([1,30,30]),$a([18,20,30]),$a([3,20,28]),$a([2,15,26])]),$a(["42",105,17,5,9401,$a([5,105,20]),$a([2,115,22]),$a([2,116,22]),$a([10,75,32]),$a([1,73,32]),$a([0,-1,-1]),$a([16,38,32]),$a([1,27,28]),$a([0,-1,-1]),$a([22,19,28]),$a([2,16,30]),$a([1,19,30])]),$a(["43",107,18,5,9799,$a([6,147,28]),$a([1,146,28]),$a([0,-1,-1]),$a([11,66,28]),$a([2,65,30]),$a([0,-1,-1]),$a([18,33,28]),$a([2,33,30]),$a([0,-1,-1]),$a([22,21,32]),$a([1,28,30]),$a([0,-1,-1])]),$a(["44",109,18,5,10207,$a([6,116,22]),$a([3,125,24]),$a([0,-1,-1]),$a([11,75,32]),$a([1,68,30]),$a([0,-1,-1]),$a([13,35,28]),$a([6,34,32]),$a([1,30,30]),$a([23,21,32]),$a([1,26,30]),$a([0,-1,-1])]),$a(["45",111,18,5,10623,$a([7,105,20]),$a([4,95,18]),$a([0,-1,-1]),$a([12,67,28]),$a([1,63,30]),$a([1,62,32]),$a([21,31,26]),$a([2,33,32]),$a([0,-1,-1]),$a([23,21,32]),$a([2,24,30]),$a([0,-1,-1])]),$a(["46",113,19,5,11045,$a([10,116,22]),$a([0,-1,-1]),$a([0,-1,-1]),$a([12,74,32]),$a([1,78,30]),$a([0,-1,-1]),$a([18,37,32]),$a([1,39,30]),$a([1,41,28]),$a([25,21,32]),$a([1,27,28]),$a([0,-1,-1])]),$a(["47",115,19,5,11477,$a([5,126,24]),$a([4,115,22]),$a([1,114,22]),$a([12,67,28]),$a([2,66,32]),$a([1,68,30]),$a([21,35,30]),$a([1,39,30]),$a([0,-1,-1]),$a([26,21,32]),$a([1,28,28]),$a([0,-1,-1])]),$a(["48",117,19,5,11917,$a([9,126,24]),$a([1,117,22]),$a([0,-1,-1]),$a([13,75,32]),$a([1,68,30]),$a([0,-1,-1]),$a([20,35,30]),$a([3,35,28]),$a([0,-1,-1]),$a([27,21,32]),$a([1,28,30]),$a([0,-1,-1])]),$a(["49",119,17,6,12111,$a([9,126,24]),$a([1,137,26]),$a([0,-1,-1]),$a([13,71,30]),$a([2,68,32]),$a([0,-1,-1]),$a([20,37,32]),$a([1,39,28]),$a([1,38,28]),$a([24,20,32]),$a([5,25,28]),$a([0,-1,-1])]),$a(["50",121,17,6,12559,$a([8,147,28]),$a([1,141,28]),$a([0,-1,-1]),$a([10,73,32]),$a([4,74,30]),$a([1,73,30]),$a([16,36,32]),$a([6,39,30]),$a([1,37,30]),$a([27,21,32]),$a([3,20,26]),$a([0,-1,-1])]),$a(["51",123,18,6,13025,$a([9,137,26]),$a([1,135,26]),$a([0,-1,-1]),$a([12,70,30]),$a([4,75,32]),$a([0,-1,-1]),$a([24,35,30]),$a([1,40,28]),$a([0,-1,-1]),$a([23,20,32]),$a([8,24,30]),$a([0,-1,-1])]),$a(["52",125,18,6,13489,$a([14,95,18]),$a([1,86,18]),$a([0,-1,-1]),$a([13,73,32]),$a([3,77,30]),$a([0,-1,-1]),$a([24,35,30]),$a([2,35,28]),$a([0,-1,-1]),$a([26,21,32]),$a([5,21,30]),$a([1,23,30])]),$a(["53",127,18,6,13961,$a([9,147,28]),$a([1,142,28]),$a([0,-1,-1]),$a([10,73,30]),$a([6,70,32]),$a([1,71,32]),$a([25,35,30]),$a([2,34,26]),$a([0,-1,-1]),$a([29,21,32]),$a([4,22,30]),$a([0,-1,-1])]),$a(["54",129,18,6,14441,$a([11,126,24]),$a([1,131,24]),$a([0,-1,-1]),$a([16,74,32]),$a([1,79,30]),$a([0,-1,-1]),$a([25,38,32]),$a([1,25,30]),$a([0,-1,-1]),$a([33,21,32]),$a([1,28,28]),$a([0,-1,-1])]),$a(["55",131,19,6,14939,$a([14,105,20]),$a([1,99,18]),$a([0,-1,-1]),$a([19,65,28]),$a([1,72,28]),$a([0,-1,-1]),$a([24,37,32]),$a([2,40,30]),$a([1,41,30]),$a([31,21,32]),$a([4,24,32]),$a([0,-1,-1])]),$a(["56",133,19,6,15435,$a([10,147,28]),$a([1,151,28]),$a([0,-1,-1]),$a([15,71,30]),$a([3,71,32]),$a([1,73,32]),$a([24,37,32]),$a([3,38,30]),$a([1,39,30]),$a([36,19,30]),$a([3,29,26]),$a([0,-1,-1])]),$a(["57",135,19,6,15939,$a([15,105,20]),$a([1,99,18]),$a([0,-1,-1]),$a([19,70,30]),$a([1,64,28]),$a([0,-1,-1]),$a([27,38,32]),$a([2,25,26]),$a([0,-1,-1]),$a([38,20,30]),$a([2,18,28]),$a([0,-1,-1])]),$a(["58",137,17,7,16171,$a([14,105,20]),$a([1,113,22]),$a([1,114,22]),$a([17,67,30]),$a([3,92,32]),$a([0,-1,-1]),$a([30,35,30]),$a([1,41,30]),$a([0,-1,-1]),$a([36,21,32]),$a([1,26,30]),$a([1,27,30])]),$a(["59",139,17,7,16691,$a([11,146,28]),$a([1,146,26]),$a([0,-1,-1]),$a([20,70,30]),$a([1,60,26]),$a([0,-1,-1]),$a([29,38,32]),$a([1,24,32]),$a([0,-1,-1]),$a([40,20,30]),$a([2,17,26]),$a([0,-1,-1])]),$a(["60",141,18,7,17215,$a([3,137,26]),$a([1,136,26]),$a([10,126,24]),$a([22,65,28]),$a([1,75,30]),$a([0,-1,-1]),$a([30,37,32]),$a([1,51,30]),$a([0,-1,-1]),$a([42,20,30]),$a([1,21,30]),$a([0,-1,-1])]),$a(["61",143,18,7,17751,$a([12,126,24]),$a([2,118,22]),$a([1,116,22]),$a([19,74,32]),$a([1,74,30]),$a([1,72,28]),$a([30,38,32]),$a([2,29,30]),$a([0,-1,-1]),$a([39,20,32]),$a([2,37,26]),$a([1,38,26])]),$a(["62",145,18,7,18295,$a([12,126,24]),$a([3,136,26]),$a([0,-1,-1]),$a([21,70,30]),$a([2,65,28]),$a([0,-1,-1]),$a([34,35,30]),$a([1,44,32]),$a([0,-1,-1]),$a([42,20,30]),$a([2,19,28]),$a([2,18,28])]),$a(["63",147,18,7,18847,$a([12,126,24]),$a([3,117,22]),$a([1,116,22]),$a([25,61,26]),$a([2,62,28]),$a([0,-1,-1]),$a([34,35,30]),$a([1,40,32]),$a([1,41,32]),$a([45,20,30]),$a([1,20,32]),$a([1,21,32])]),$a(["64",149,19,7,19403,$a([15,105,20]),$a([2,115,22]),$a([2,116,22]),$a([25,65,28]),$a([1,72,28]),$a([0,-1,-1]),$a([18,35,30]),$a([17,37,32]),$a([1,50,32]),$a([42,20,30]),$a([6,19,28]),$a([1,15,28])]),$a(["65",151,19,7,19971,$a([19,105,20]),$a([1,101,20]),$a([0,-1,-1]),$a([33,51,22]),$a([1,65,22]),$a([0,-1,-1]),$a([40,33,28]),$a([1,28,28]),$a([0,-1,-1]),$a([49,20,30]),$a([1,18,28]),$a([0,-1,-1])]),$a(["66",153,17,8,20229,$a([18,105,20]),$a([2,117,22]),$a([0,-1,-1]),$a([26,65,28]),$a([1,80,30]),$a([0,-1,-1]),$a([35,35,30]),$a([3,35,28]),$a([1,36,28]),$a([52,18,28]),$a([2,38,30]),$a([0,-1,-1])]),$a(["67",155,17,8,20805,$a([26,84,16]),$a([0,-1,-1]),$a([0,-1,-1]),$a([26,70,30]),$a([0,-1,-1]),$a([0,-1,-1]),$a([45,31,26]),$a([1,9,26]),$a([0,-1,-1]),$a([52,20,30]),$a([0,-1,-1]),$a([0,-1,-1])]),$a(["68",157,17,8,21389,$a([16,126,24]),$a([1,114,22]),$a([1,115,22]),$a([23,70,30]),$a([3,65,28]),$a([1,66,28]),$a([40,35,30]),$a([1,43,30]),$a([0,-1,-1]),$a([46,20,30]),$a([7,19,28]),$a([1,16,28])]),$a(["69",159,18,8,21993,$a([19,116,22]),$a([1,105,22]),$a([0,-1,-1]),$a([20,70,30]),$a([7,66,28]),$a([1,63,28]),$a([40,35,30]),$a([1,42,32]),$a([1,43,32]),$a([54,20,30]),$a([1,19,30]),$a([0,-1,-1])]),$a(["70",161,18,8,22593,$a([17,126,24]),$a([2,115,22]),$a([0,-1,-1]),$a([24,70,30]),$a([4,74,32]),$a([0,-1,-1]),$a([48,31,26]),$a([2,18,26]),$a([0,-1,-1]),$a([54,19,28]),$a([6,15,26]),$a([1,14,26])]),$a(["71",163,18,8,23201,$a([29,84,16]),$a([0,-1,-1]),$a([0,-1,-1]),$a([29,70,30]),$a([0,-1,-1]),$a([0,-1,-1]),$a([6,34,30]),$a([3,36,30]),$a([38,33,28]),$a([58,20,30]),$a([0,-1,-1]),$a([0,-1,-1])]),$a(["72",165,18,8,23817,$a([16,147,28]),$a([1,149,28]),$a([0,-1,-1]),$a([31,66,28]),$a([1,37,26]),$a([0,-1,-1]),$a([48,33,28]),$a([1,23,26]),$a([0,-1,-1]),$a([53,20,30]),$a([6,19,28]),$a([1,17,28])]),$a(["73",167,19,8,24453,$a([20,115,22]),$a([2,134,24]),$a([0,-1,-1]),$a([29,66,28]),$a([2,56,26]),$a([2,57,26]),$a([45,36,30]),$a([2,15,28]),$a([0,-1,-1]),$a([59,20,30]),$a([2,21,32]),$a([0,-1,-1])]),$a(["74",169,19,8,25085,$a([17,147,28]),$a([1,134,26]),$a([0,-1,-1]),$a([26,70,30]),$a([5,75,32]),$a([0,-1,-1]),$a([47,35,30]),$a([1,48,32]),$a([0,-1,-1]),$a([64,18,28]),$a([2,33,30]),$a([1,35,30])]),$a(["75",171,17,9,25373,$a([22,115,22]),$a([1,133,24]),$a([0,-1,-1]),$a([33,65,28]),$a([1,74,28]),$a([0,-1,-1]),$a([43,36,30]),$a([5,27,28]),$a([1,30,28]),$a([57,20,30]),$a([5,21,32]),$a([1,24,32])]),$a(["76",173,17,9,26021,$a([18,136,26]),$a([2,142,26]),$a([0,-1,-1]),$a([33,66,28]),$a([2,49,26]),$a([0,-1,-1]),$a([48,35,30]),$a([2,38,28]),$a([0,-1,-1]),$a([64,20,30]),$a([1,20,32]),$a([0,-1,-1])]),$a(["77",175,17,9,26677,$a([19,126,24]),$a([2,135,26]),$a([1,136,26]),$a([32,66,28]),$a([2,55,26]),$a([2,56,26]),$a([49,36,30]),$a([2,18,32]),$a([0,-1,-1]),$a([65,18,28]),$a([5,27,30]),$a([1,29,30])]),$a(["78",177,18,9,27335,$a([20,137,26]),$a([1,130,26]),$a([0,-1,-1]),$a([30,75,32]),$a([2,71,32]),$a([0,-1,-1]),$a([46,35,30]),$a([6,39,32]),$a([0,-1,-1]),$a([3,12,30]),$a([70,19,28]),$a([0,-1,-1])]),$a(["79",179,18,9,28007,$a([20,147,28]),$a([0,-1,-1]),$a([0,-1,-1]),$a([35,70,30]),$a([0,-1,-1]),$a([0,-1,-1]),$a([49,35,30]),$a([5,35,28]),$a([0,-1,-1]),$a([70,20,30]),$a([0,-1,-1]),$a([0,-1,-1])]),$a(["80",181,18,9,28687,$a([21,136,26]),$a([1,155,28]),$a([0,-1,-1]),$a([34,70,30]),$a([1,64,28]),$a([1,65,28]),$a([54,35,30]),$a([1,45,30]),$a([0,-1,-1]),$a([68,20,30]),$a([3,18,28]),$a([1,19,28])]),$a(["81",183,18,9,29375,$a([19,126,24]),$a([5,115,22]),$a([1,114,22]),$a([33,70,30]),$a([3,65,28]),$a([1,64,28]),$a([52,35,30]),$a([3,41,32]),$a([1,40,32]),$a([67,20,30]),$a([5,21,32]),$a([1,24,32])]),$a(["82",185,18,9,30071,$a([2,150,28]),$a([21,136,26]),$a([0,-1,-1]),$a([32,70,30]),$a([6,65,28]),$a([0,-1,-1]),$a([52,38,32]),$a([2,27,32]),$a([0,-1,-1]),$a([73,20,30]),$a([2,22,32]),$a([0,-1,-1])]),$a(["83",187,17,10,30387,$a([21,126,24]),$a([4,136,26]),$a([0,-1,-1]),$a([30,74,32]),$a([6,73,30]),$a([0,-1,-1]),$a([54,35,30]),$a([4,40,32]),$a([0,-1,-1]),$a([75,20,30]),$a([1,20,28]),$a([0,-1,-1])]),$a(["84",189,17,10,31091,$a([30,105,20]),$a([1,114,22]),$a([0,-1,-1]),$a([3,45,22]),$a([55,47,20]),$a([0,-1,-1]),$a([2,26,26]),$a([62,33,28]),$a([0,-1,-1]),$a([79,18,28]),$a([4,33,30]),$a([0,-1,-1])])]);$1.eclval=$g($1.eclevel,1)-49;for(var _IM=0;_IM<=83;_IM+=1){$1.i=_IM;$1.m=$g($1.metrics,$1.i);$1.vers=$g($1.m,0);$1.size=$g($1.m,1);$1.alnk=$g($1.m,2);$1.alnn=$g($1.m,3);$1.alnr=$f($1.size-$1.alnk*$1.alnn);$1.nmod=$g($1.m,4);$1.ncws=~~($1.nmod/8);$1.rbit=$1.nmod%8;$1.ecbs=$G($1.m,5+$1.eclval*3,3);var _Ii=$1.ecbs;$k[$j++]="ecws";$k[$j++]=0;for(var _Ij=0,_Ik=_Ii.length;_Ij<_Ik;_Ij++){var _Il=$g(_Ii,_Ij);var _Io=$k[--$j];$k[$j++]=$f(_Io+$g(_Il,0)*$g(_Il,2))}var _Ip=$k[--$j];$1[$k[--$j]]=_Ip;$1.dcws=$f($1.ncws-$1.ecws);$1.dmod=$1.dcws*8;$1.okay=true;if($ne($1.version,"unset")&&$ne($1.version,$1.vers)){$1.okay=false}if($1.bits.length>$1.dmod){$1.okay=false}if($1.okay){break}}if(!$1.okay){$k[$j++]="bwipp.hanxinNoValidSymbol";$k[$j++]="No valid symbol available";$0.raiseerror()}$1.version=$1.vers;$1.msgbits=$1.bits;$1.e1nb=$g($g($1.ecbs,0),0);$1.e2nb=$g($g($1.ecbs,1),0);$1.e3nb=$g($g($1.ecbs,2),0);$1.e1dcws=$g($g($1.ecbs,0),1);$1.e2dcws=$g($g($1.ecbs,1),1);$1.e3dcws=$g($g($1.ecbs,2),1);$1.e1ecws=$g($g($1.ecbs,0),2);$1.e2ecws=$g($g($1.ecbs,1),2);$1.e3ecws=$g($g($1.ecbs,2),2);$1.pad=$s($1.dmod);for(var _JY=0,_JX=$1.pad.length-1;_JY<=_JX;_JY+=1){$p($1.pad,_JY,48)}$P($1.pad,0,$1.msgbits);$1.cws=$a($1.dcws);for(var _Jg=0,_Jf=$1.cws.length-1;_Jg<=_Jf;_Jg+=1){$1.c=_Jg;$1.cwb=$G($1.pad,$1.c*8,8);$1.cw=0;for(var _Jk=0;_Jk<=7;_Jk+=1){$1.i=_Jk;$1.cw=$f($1.cw+~~Math.pow(2,8-$1.i-1)*$f($g($1.cwb,$1.i)-48))}$p($1.cws,$1.c,$1.cw)}$1.rscodes=function(){$1.rspm=$k[--$j];$1.rsgf=$k[--$j];$1.rsnc=$k[--$j];$1.rscws=$k[--$j];$k[$j++]=Infinity;$k[$j++]=1;for(var _Jy=0,_Jz=$f($1.rsgf-1);_Jy<_Jz;_Jy++){var _K0=$k[--$j];var _K1=_K0*2;$k[$j++]=_K0;$k[$j++]=_K1;if(_K1>=$1.rsgf){var _K4=$k[--$j];$k[$j++]=$xo(_K4,$1.rspm)}}$1.rsalog=$a();$1.rslog=$a($1.rsgf);for(var _KA=1,_K9=$f($1.rsgf-1);_KA<=_K9;_KA+=1){$p($1.rslog,$g($1.rsalog,_KA),_KA)}$1.rsprod=function(){var _KE=$k[--$j];var _KF=$k[--$j];$k[$j++]=_KF;$k[$j++]=_KE;if(_KE!=0&&_KF!=0){var _KI=$g($1.rslog,$k[--$j]);var _KO=$g($1.rsalog,$f(_KI+$g($1.rslog,$k[--$j]))%$f($1.rsgf-1));$k[$j++]=_KO}else{$j-=2;$k[$j++]=0}};$k[$j++]=Infinity;$k[$j++]=1;for(var _KQ=0,_KR=$1.rsnc;_KQ<_KR;_KQ++){$k[$j++]=0}$1.coeffs=$a();for(var _KV=1,_KU=$1.rsnc;_KV<=_KU;_KV+=1){$1.i=_KV;$p($1.coeffs,$1.i,$g($1.coeffs,$1.i-1));for(var _Kc=$1.i-1;_Kc>=1;_Kc-=1){$1.j=_Kc;$k[$j++]=$1.coeffs;$k[$j++]=$1.j;$k[$j++]=$g($1.coeffs,$1.j-1);$k[$j++]=$g($1.coeffs,$1.j);$k[$j++]=$g($1.rsalog,$1.i);$1.rsprod();var _Ko=$k[--$j];var _Kp=$k[--$j];var _Kq=$k[--$j];$p($k[--$j],_Kq,$xo(_Kp,_Ko))}$k[$j++]=$1.coeffs;$k[$j++]=0;$k[$j++]=$g($1.coeffs,0);$k[$j++]=$g($1.rsalog,$1.i);$1.rsprod();var _Ky=$k[--$j];var _Kz=$k[--$j];$p($k[--$j],_Kz,_Ky)}$1.nd=$1.rscws.length;$k[$j++]=Infinity;$F($1.rscws);for(var _L4=0,_L5=$1.rsnc;_L4<_L5;_L4++){$k[$j++]=0}$k[$j++]=0;$1.rscws=$a();for(var _L9=0,_L8=$1.nd-1;_L9<=_L8;_L9+=1){$1.k=$xo($g($1.rscws,_L9),$g($1.rscws,$1.nd));for(var _LH=0,_LG=$f($1.rsnc-1);_LH<=_LG;_LH+=1){$1.j=_LH;$k[$j++]=$1.rscws;$k[$j++]=$1.nd+$1.j;$k[$j++]=$g($1.rscws,$1.nd+$1.j+1);$k[$j++]=$1.k;$k[$j++]=$g($1.coeffs,$f($f($1.rsnc-$1.j)-1));$1.rsprod();var _LU=$k[--$j];var _LV=$k[--$j];var _LW=$k[--$j];$p($k[--$j],_LW,$xo(_LV,_LU))}}$k[$j++]=$G($1.rscws,0,$1.rscws.length-1)};$1.dcwsb=$a($f($f($1.e1nb+$1.e2nb)+$1.e3nb));$1.ecwsb=$a($1.dcwsb.length);$1.in=0;$1.out=0;for(var _Li=0,_Lj=$1.e1nb;_Li<_Lj;_Li++){$k[$j++]=$G($1.cws,$1.in,$1.e1dcws);$k[$j++]=$1.e1ecws;$k[$j++]=256;$k[$j++]=355;$1.rscodes();var _Lp=$k[--$j];$p($1.dcwsb,$1.out,$G(_Lp,0,$1.e1dcws));$p($1.ecwsb,$1.out,$G(_Lp,$1.e1dcws,$1.e1ecws));$1.in=$f($1.in+$1.e1dcws);$1.out=$1.out+1}for(var _M3=0,_M4=$1.e2nb;_M3<_M4;_M3++){$k[$j++]=$G($1.cws,$1.in,$1.e2dcws);$k[$j++]=$1.e2ecws;$k[$j++]=256;$k[$j++]=355;$1.rscodes();var _MA=$k[--$j];$p($1.dcwsb,$1.out,$G(_MA,0,$1.e2dcws));$p($1.ecwsb,$1.out,$G(_MA,$1.e2dcws,$1.e2ecws));$1.in=$f($1.in+$1.e2dcws);$1.out=$1.out+1}for(var _MO=0,_MP=$1.e3nb;_MO<_MP;_MO++){$k[$j++]=$G($1.cws,$1.in,$1.e3dcws);$k[$j++]=$1.e3ecws;$k[$j++]=256;$k[$j++]=355;$1.rscodes();var _MV=$k[--$j];$p($1.dcwsb,$1.out,$G(_MV,0,$1.e3dcws));$p($1.ecwsb,$1.out,$G(_MV,$1.e3dcws,$1.e3ecws));$1.in=$f($1.in+$1.e3dcws);$1.out=$1.out+1}$1.cws=$a($1.ncws);$1.cw=0;for(var _Mm=0,_Ml=$1.dcwsb.length-1;_Mm<=_Ml;_Mm+=1){$1.i=_Mm;var _Mp=$g($1.dcwsb,$1.i);$P($1.cws,$1.cw,_Mp);$1.cw=_Mp.length+$1.cw;var _Mv=$g($1.ecwsb,$1.i);$P($1.cws,$1.cw,_Mv);$1.cw=_Mv.length+$1.cw}$k[$j++]=Infinity;var _Mz=$1.ncws;var _N0=12;var _N1=_Mz-1;if(_Mz-1>12){var _=_N0;_N0=_N1;_N1=_}for(var _N3=0,_N2=_N1;_N3<=_N2;_N3+=1){for(var _N6=_N3,_N5=$1.ncws-1;_N6<=_N5;_N6+=13){$k[$j++]=_N6;if(_N6<$1.ncws){var _NA=$g($1.cws,$k[--$j]);$k[$j++]=_NA}else{$j--}}}$1.cws=$a();if($1.rbit>0){$1.pad=$a($1.cws.length+1);$P($1.pad,0,$1.cws);$p($1.pad,$1.pad.length-1,0);$1.cws=$1.pad}$k[$j++]=Infinity;for(var _NM=0,_NN=$1.size*$1.size;_NM<_NN;_NM++){$k[$j++]=-1}$1.pixs=$a();$1.qmv=function(){var _NQ=$k[--$j];var _NR=$k[--$j];$k[$j++]=$f(_NR+_NQ*$1.size)};if($1.alnn!=0){$1.trmv=function(){var _NU=$k[--$j];var _NW=$k[--$j];$k[$j++]=$f($f($f(_NU*$1.size+$1.size)-1)-_NW)};$1.aplot=function(){var _NX=$k[--$j];var _NY=$k[--$j];var _NZ=$k[--$j];$k[$j++]=_NX;$k[$j++]=_NZ;$k[$j++]=_NY;$k[$j++]=_NX;$k[$j++]=_NY;$k[$j++]=_NZ;$1.trmv();var _Nb=$k[--$j];$p($1.pixs,_Nb,$k[--$j]);$1.trmv();var _Ne=$k[--$j];$p($1.pixs,_Ne,$k[--$j])};$1.i=0;$1.stag=0;for(;;){if($1.i>=$1.size){break}for(var _Nk=0,_Nj=$f($1.size-1);_Nk<=_Nj;_Nk+=1){$1.j=_Nk;if($f($1.j+$1.alnr)<$1.size){$k[$j++]=(~~($1.j/$1.alnk)+$1.stag)%2==0&&!($1.i==0&&$1.j<$1.alnk)||$1.j%$1.alnk==0}else{$k[$j++]=$f($1.alnn+$1.stag)%2==0}if($k[--$j]){$k[$j++]=$1.j;$k[$j++]=$1.i;$k[$j++]=1;$1.aplot();var _O1=$1.j;var _O2=$1.i;$k[$j++]=_O1+1;$k[$j++]=_O2+1;if(_O2+1<$1.size&&_O1+1<$1.size){$k[$j++]=0;$1.aplot()}else{$j-=2}}}if($f($1.i+$1.alnr)==$1.size){$1.i=$f($f($1.i+$1.alnr)-1)}else{$1.i=$f($1.i+$1.alnk)}$1.stag=1-$1.stag}for(var _OH=$1.alnk,_OI=$1.alnk,_OG=$f($1.size-2);_OI<0?_OH>=_OG:_OH<=_OG;_OH+=_OI){$1.i=_OH;if(~~($1.i/$1.alnk)%2!=0){$k[$j++]=$1.pixs;$k[$j++]=0;$k[$j++]=$1.i-1;$1.trmv();var _ON=$k[--$j];$p($k[--$j],_ON,0);$k[$j++]=$1.pixs;$k[$j++]=0;$k[$j++]=$1.i+1;$1.trmv();var _OR=$k[--$j];$p($k[--$j],_OR,0);$k[$j++]=$1.pixs;$k[$j++]=1;$k[$j++]=$1.i-1;$1.trmv();var _OV=$k[--$j];$p($k[--$j],_OV,0);$k[$j++]=$1.pixs;$k[$j++]=1;$k[$j++]=$1.i;$1.trmv();var _OZ=$k[--$j];$p($k[--$j],_OZ,0);$k[$j++]=$1.pixs;$k[$j++]=1;$k[$j++]=$1.i+1;$1.trmv();var _Od=$k[--$j];$p($k[--$j],_Od,0);$k[$j++]=$1.pixs;$k[$j++]=$1.i-1;$k[$j++]=0;$1.trmv();var _Oh=$k[--$j];$p($k[--$j],_Oh,0);$k[$j++]=$1.pixs;$k[$j++]=$1.i+1;$k[$j++]=0;$1.trmv();var _Ol=$k[--$j];$p($k[--$j],_Ol,0);$k[$j++]=$1.pixs;$k[$j++]=$1.i-1;$k[$j++]=1;$1.trmv();var _Op=$k[--$j];$p($k[--$j],_Op,0);$k[$j++]=$1.pixs;$k[$j++]=$1.i;$k[$j++]=1;$1.trmv();var _Ot=$k[--$j];$p($k[--$j],_Ot,0);$k[$j++]=$1.pixs;$k[$j++]=$1.i+1;$k[$j++]=1;$1.trmv();var _Ox=$k[--$j];$p($k[--$j],_Ox,0)}$k[$j++]=$1.pixs;$k[$j++]=$f($1.size-1);$k[$j++]=$1.i-1;$1.trmv();var _P2=$k[--$j];if($g($k[--$j],_P2)!=1){$k[$j++]=$1.pixs;$k[$j++]=$f($1.size-1);$k[$j++]=$1.i-1;$1.trmv();var _P8=$k[--$j];$p($k[--$j],_P8,0);$k[$j++]=$1.pixs;$k[$j++]=$f($1.size-2);$k[$j++]=$1.i-1;$1.trmv();var _PD=$k[--$j];$p($k[--$j],_PD,0);$k[$j++]=$1.pixs;$k[$j++]=$f($1.size-2);$k[$j++]=$1.i;$1.trmv();var _PI=$k[--$j];$p($k[--$j],_PI,0);$k[$j++]=$1.pixs;$k[$j++]=$f($1.size-2);$k[$j++]=$1.i+1;$1.trmv();var _PN=$k[--$j];$p($k[--$j],_PN,0);$k[$j++]=$1.pixs;$k[$j++]=$f($1.size-1);$k[$j++]=$1.i+1;$1.trmv();var _PS=$k[--$j];$p($k[--$j],_PS,0);$k[$j++]=$1.pixs;$k[$j++]=$1.i-1;$k[$j++]=$f($1.size-1);$1.trmv();var _PX=$k[--$j];$p($k[--$j],_PX,0);$k[$j++]=$1.pixs;$k[$j++]=$1.i-1;$k[$j++]=$f($1.size-2);$1.trmv();var _Pc=$k[--$j];$p($k[--$j],_Pc,0);$k[$j++]=$1.pixs;$k[$j++]=$1.i;$k[$j++]=$f($1.size-2);$1.trmv();var _Ph=$k[--$j];$p($k[--$j],_Ph,0);$k[$j++]=$1.pixs;$k[$j++]=$1.i+1;$k[$j++]=$f($1.size-2);$1.trmv();var _Pm=$k[--$j];$p($k[--$j],_Pm,0);$k[$j++]=$1.pixs;$k[$j++]=$1.i+1;$k[$j++]=$f($1.size-1);$1.trmv();var _Pr=$k[--$j];$p($k[--$j],_Pr,0)}}}$1.fpat=$a([$a([1,1,1,1,1,1,1,0]),$a([1,0,0,0,0,0,0,0]),$a([1,0,1,1,1,1,1,0]),$a([1,0,1,0,0,0,0,0]),$a([1,0,1,0,1,1,1,0]),$a([1,0,1,0,1,1,1,0]),$a([1,0,1,0,1,1,1,0]),$a([0,0,0,0,0,0,0,0])]);$1.fpat2=$a([$a([1,1,1,0,1,0,1,0]),$a([1,1,1,0,1,0,1,0]),$a([1,1,1,0,1,0,1,0]),$a([0,0,0,0,1,0,1,0]),$a([1,1,1,1,1,0,1,0]),$a([0,0,0,0,0,0,1,0]),$a([1,1,1,1,1,1,1,0]),$a([0,0,0,0,0,0,0,0])]);for(var _QD=0,_QC=$1.fpat.length-1;_QD<=_QC;_QD+=1){$1.y=_QD;for(var _QH=0,_QG=$g($1.fpat,0).length-1;_QH<=_QG;_QH+=1){$1.x=_QH;$1.fpb=$g($g($1.fpat,$1.y),$1.x);$1.fpb2=$g($g($1.fpat2,$1.y),$1.x);$k[$j++]=$1.pixs;$k[$j++]=$1.x;$k[$j++]=$1.y;$1.qmv();var _QW=$k[--$j];$p($k[--$j],_QW,$1.fpb);$k[$j++]=$1.pixs;$k[$j++]=$f($f($1.size-$1.x)-1);$k[$j++]=$1.y;$1.qmv();var _Qd=$k[--$j];$p($k[--$j],_Qd,$1.fpb);$k[$j++]=$1.pixs;$k[$j++]=$f($f($1.size-$1.x)-1);$k[$j++]=$f($f($1.size-$1.y)-1);$1.qmv();var _Ql=$k[--$j];$p($k[--$j],_Ql,$1.fpb);$k[$j++]=$1.pixs;$k[$j++]=$1.x;$k[$j++]=$f($f($1.size-$1.y)-1);$1.qmv();var _Qs=$k[--$j];$p($k[--$j],_Qs,$1.fpb2)}}$1.functionmap=$a([$a([$a([0,8]),$a([$f($1.size-1),$f($1.size-9)])]),$a([$a([1,8]),$a([$f($1.size-2),$f($1.size-9)])]),$a([$a([2,8]),$a([$f($1.size-3),$f($1.size-9)])]),$a([$a([3,8]),$a([$f($1.size-4),$f($1.size-9)])]),$a([$a([4,8]),$a([$f($1.size-5),$f($1.size-9)])]),$a([$a([5,8]),$a([$f($1.size-6),$f($1.size-9)])]),$a([$a([6,8]),$a([$f($1.size-7),$f($1.size-9)])]),$a([$a([7,8]),$a([$f($1.size-8),$f($1.size-9)])]),$a([$a([8,8]),$a([$f($1.size-9),$f($1.size-9)])]),$a([$a([8,7]),$a([$f($1.size-9),$f($1.size-8)])]),$a([$a([8,6]),$a([$f($1.size-9),$f($1.size-7)])]),$a([$a([8,5]),$a([$f($1.size-9),$f($1.size-6)])]),$a([$a([8,4]),$a([$f($1.size-9),$f($1.size-5)])]),$a([$a([8,3]),$a([$f($1.size-9),$f($1.size-4)])]),$a([$a([8,2]),$a([$f($1.size-9),$f($1.size-3)])]),$a([$a([8,1]),$a([$f($1.size-9),$f($1.size-2)])]),$a([$a([8,0]),$a([$f($1.size-9),$f($1.size-1)])]),$a([$a([$f($1.size-9),0]),$a([8,$f($1.size-1)])]),$a([$a([$f($1.size-9),1]),$a([8,$f($1.size-2)])]),$a([$a([$f($1.size-9),2]),$a([8,$f($1.size-3)])]),$a([$a([$f($1.size-9),3]),$a([8,$f($1.size-4)])]),$a([$a([$f($1.size-9),4]),$a([8,$f($1.size-5)])]),$a([$a([$f($1.size-9),5]),$a([8,$f($1.size-6)])]),$a([$a([$f($1.size-9),6]),$a([8,$f($1.size-7)])]),$a([$a([$f($1.size-9),7]),$a([8,$f($1.size-8)])]),$a([$a([$f($1.size-9),8]),$a([8,$f($1.size-9)])]),$a([$a([$f($1.size-8),8]),$a([7,$f($1.size-9)])]),$a([$a([$f($1.size-7),8]),$a([6,$f($1.size-9)])]),$a([$a([$f($1.size-6),8]),$a([5,$f($1.size-9)])]),$a([$a([$f($1.size-5),8]),$a([4,$f($1.size-9)])]),$a([$a([$f($1.size-4),8]),$a([3,$f($1.size-9)])]),$a([$a([$f($1.size-3),8]),$a([2,$f($1.size-9)])]),$a([$a([$f($1.size-2),8]),$a([1,$f($1.size-9)])]),$a([$a([$f($1.size-1),8]),$a([0,$f($1.size-9)])])]);var _Tf=$1.functionmap;for(var _Tg=0,_Th=_Tf.length;_Tg<_Th;_Tg++){$F($g(_Tf,_Tg),function(){$F($k[--$j]);$1.qmv();$p($1.pixs,$k[--$j],0)})}var _Ts=$a([function(){$j-=2;$k[$j++]=1},function(){var _Tm=$k[--$j];var _Tn=$k[--$j];$k[$j++]=$f(_Tn+_Tm)%2},function(){var _To=$k[--$j];var _Tp=$k[--$j];$k[$j++]=$f($f(_To+_Tp)%3+_Tp%3)%2},function(){var _Tq=$k[--$j];var _Tr=$k[--$j];$k[$j++]=$f(_Tr%_Tq+$f(_Tq%_Tr+$f(_Tq%3+_Tr%3)))%2}]);$1.maskfuncs=_Ts;if($1.mask!=-1){$1.maskfuncs=$a([$g($1.maskfuncs,$1.mask-1)]);$1.bestmaskval=$1.mask-1}$1.masks=$a($1.maskfuncs.length);for(var _U3=0,_U2=$1.masks.length-1;_U3<=_U2;_U3+=1){$1.m=_U3;$1.mask=$a($1.size*$1.size);for(var _U9=0,_U8=$f($1.size-1);_U9<=_U8;_U9+=1){$1.j=_U9;for(var _UC=0,_UB=$f($1.size-1);_UC<=_UB;_UC+=1){$1.i=_UC;$k[$j++]=$1.i+1;$k[$j++]=$1.j+1;if($g($1.maskfuncs,$1.m)()===true){break}var _UI=$k[--$j];$k[$j++]=_UI==0;$k[$j++]=$1.pixs;$k[$j++]=$1.i;$k[$j++]=$1.j;$1.qmv();var _UM=$k[--$j];var _UO=$g($k[--$j],_UM);var _UP=$k[--$j];var _UQ=_UP&&_UO==-1?1:0;$k[$j++]=_UQ;$k[$j++]=$1.mask;$k[$j++]=$1.i;$k[$j++]=$1.j;$1.qmv();var _UU=$k[--$j];var _UV=$k[--$j];$p(_UV,_UU,$k[--$j])}}$p($1.masks,$1.m,$1.mask)}$1.posx=0;$1.posy=0;$1.num=0;for(;;){if($1.posy==$1.size){break}$k[$j++]=$1.pixs;$k[$j++]=$1.posx;$k[$j++]=$1.posy;$1.qmv();var _Uf=$k[--$j];if($g($k[--$j],_Uf)==-1){var _Uk=$g($1.cws,~~($1.num/8));var _Um=-(7-$1.num%8);$k[$j++]=(_Um<0?_Uk>>>-_Um:_Uk<<_Um)&1;$k[$j++]=$1.pixs;$k[$j++]=$1.posx;$k[$j++]=$1.posy;$1.qmv();var _Uq=$k[--$j];var _Ur=$k[--$j];$p(_Ur,_Uq,$k[--$j]);$1.num=$1.num+1}$1.posx=$1.posx+1;if($1.posx==$1.size){$1.posx=0;$1.posy=$1.posy+1}}$1.evalfulln1n3=function(){$1.scrle=$k[--$j];$k[$j++]="scr1";$k[$j++]=0;$F($1.scrle,function(){var _V0=$k[--$j];$k[$j++]=_V0;if(_V0>=3){var _V1=$k[--$j];var _V3=$f($k[--$j]+_V1*4);$k[$j++]=_V3;$k[$j++]=_V3}$j--});var _V4=$k[--$j];$1[$k[--$j]]=_V4;$1.scr3=0;for(var _V8=5,_V7=$1.scrle.length-1;_V8<=_V7;_V8+=2){$1.j=_V8;if($g($1.scrle,$1.j)%3==0){$1.fact=~~($g($1.scrle,$1.j)/3);var _VH=$G($1.scrle,$1.j-4,4);for(var _VI=0,_VJ=_VH.length;_VI<_VJ;_VI++){$k[$j++]=$g(_VH,_VI)==$1.fact}var _VM=$k[--$j];var _VN=$k[--$j];var _VO=$k[--$j];var _VP=$k[--$j];if(_VP&&(_VO&&(_VN&&_VM))){if($1.j==5||$1.j+2>=$1.scrle.length){$1.scr3=$1.scr3+50}else{if($g($1.scrle,$1.j-5)>=3||$g($1.scrle,$1.j+1)>=3){$1.scr3=$1.scr3+50}}}}}for(var _Vd=1,_Vc=$1.scrle.length-5;_Vd<=_Vc;_Vd+=2){$1.j=_Vd;if($g($1.scrle,$1.j)%3==0){$1.fact=~~($g($1.scrle,$1.j)/3);var _Vm=$G($1.scrle,$1.j+1,4);for(var _Vn=0,_Vo=_Vm.length;_Vn<_Vo;_Vn++){$k[$j++]=$g(_Vm,_Vn)==$1.fact}var _Vr=$k[--$j];var _Vs=$k[--$j];var _Vt=$k[--$j];var _Vu=$k[--$j];if(_Vu&&(_Vt&&(_Vs&&_Vr))){if($1.j==1||$1.j+6>=$1.scrle.length){$1.scr3=$1.scr3+50}else{if($g($1.scrle,$1.j-1)>=3||$g($1.scrle,$1.j+5)>=3){$1.scr3=$1.scr3+50}}}}}$k[$j++]=$1.scr1;$k[$j++]=$1.scr3};$1.evalfull=function(){$1.sym=$k[--$j];$1.n1=0;$1.n3=0;$1.rle=$a($f($1.size+1));$1.lastpairs=$a($1.size);$1.thispairs=$a($1.size);$1.sizeadd1=$f($1.size+1);for(var _WI=0,_WH=$f($1.size-1);_WI<=_WH;_WI+=1){$1.i=_WI;$k[$j++]=Infinity;var _WK=$1.size;$k[$j++]=0;$k[$j++]=0;for(var _WM=$1.i,_WN=_WK,_WL=$f(_WK*_WK-1);_WN<0?_WM>=_WL:_WM<=_WL;_WM+=_WN){var _WP=$g($1.sym,_WM);var _WQ=$k[--$j];$k[$j++]=_WP;if($eq(_WQ,_WP)){var _WR=$k[--$j];var _WS=$k[--$j];$k[$j++]=$f(_WS+1);$k[$j++]=_WR}else{var _WT=$k[--$j];$k[$j++]=1;$k[$j++]=_WT}}$j--;var _WV=$m()+2;$r($G($1.rle,0,_WV-2));$1.evalfulln1n3();$1.n3=$f($k[--$j]+$1.n3);$1.n1=$f($k[--$j]+$1.n1);$j--;$1.symrow=$G($1.sym,$1.i*$1.size,$1.size);$k[$j++]=Infinity;var _Wg=$1.symrow;$k[$j++]=0;$k[$j++]=0;for(var _Wh=0,_Wi=_Wg.length;_Wh<_Wi;_Wh++){var _Wj=$g(_Wg,_Wh);var _Wk=$k[--$j];$k[$j++]=_Wj;if($eq(_Wk,_Wj)){var _Wl=$k[--$j];var _Wm=$k[--$j];$k[$j++]=$f(_Wm+1);$k[$j++]=_Wl}else{var _Wn=$k[--$j];$k[$j++]=1;$k[$j++]=_Wn}}$j--;var _Wp=$m()+2;$r($G($1.rle,0,_Wp-2));$1.evalfulln1n3();$1.n3=$f($k[--$j]+$1.n3);$1.n1=$f($k[--$j]+$1.n1);$j--}$k[$j++]=$f($1.n1+$1.n3)};$1.bestscore=999999999;for(var _Wz=0,_Wy=$1.masks.length-1;_Wz<=_Wy;_Wz+=1){$1.m=_Wz;$1.masksym=$a($1.size*$1.size);for(var _X6=0,_X5=$f($1.size*$1.size-1);_X6<=_X5;_X6+=1){$1.i=_X6;$p($1.masksym,$1.i,$xo($g($1.pixs,$1.i),$g($g($1.masks,$1.m),$1.i)))}if($1.masks.length!=1){$k[$j++]=$1.masksym;$1.evalfull();$1.score=$k[--$j];if($1.score<$1.bestscore){$1.bestsym=$1.masksym;$1.bestmaskval=$1.m;$1.bestscore=$1.score}}else{$1.bestsym=$1.masksym}}$1.pixs=$1.bestsym;$1.funval=((~~($f($1.size-21)/2)+20)*4+$1.eclval)*4+$1.bestmaskval;$k[$j++]=$a([($1.funval&3840)>>>8,($1.funval&240)>>>4,$1.funval&15]);$k[$j++]=4;$k[$j++]=16;$k[$j++]=19;$1.rscodes();$1.funvals=$k[--$j];$k[$j++]=Infinity;$F($1.funvals,function(){$k[$j++]=4;$1.tobin();$F($k[--$j],function(){var _Xb=$k[--$j];$k[$j++]=$f(_Xb-48)})});$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$1.funbits=$a();for(var _Xf=0,_Xe=$1.functionmap.length-1;_Xf<=_Xe;_Xf+=1){$1.i=_Xf;$F($g($1.functionmap,$1.i),function(){var _Xk=$k[--$j];$k[$j++]=$1.pixs;$q(_Xk);$1.qmv();var _Xo=$k[--$j];$p($k[--$j],_Xo,$g($1.funbits,$1.i))})}var _Xw=new Map([["ren",$0.renmatrix],["pixs",$1.pixs],["pixx",$1.size],["pixy",$1.size],["height",$1.size*2/72],["width",$1.size*2/72],["opt",$1.options]]);$k[$j++]=_Xw;if(!$1.dontdraw){$0.renmatrix()}};$0.dotcode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.rows=-1;$1.columns=-1;$1.ratio=-1;$1.parse=false;$1.parsefnc=false;$1.raw=false;$1.fast=false;$1.mask=-1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.rows=~~$1.rows;$1.columns=~~$1.columns;$1.ratio=+$1.ratio;$1.mask=~~$1.mask;if($1.ratio==-1&&$1.rows==-1&&$1.columns==-1){$1.ratio=3/2}$1.laa=-1;$1.lab=-2;$1.lac=-3;$1.bin=-4;$1.sfa=-5;$1.sfb=-6;$1.sb2=-7;$1.sb3=-8;$1.sb4=-9;$1.sb5=-10;$1.sb6=-11;$1.sfc=-12;$1.sc2=-13;$1.sc3=-14;$1.sc4=-15;$1.sc5=-16;$1.sc6=-17;$1.sc7=-18;$1.bsa=-19;$1.bsb=-20;$1.tma=-21;$1.tmb=-22;$1.tmc=-23;$1.tms=-24;$1.fn1=-25;$1.fn2=-26;$1.fn3=-27;$1.crl=-28;$1.aim=-29;$1.m05=-30;$1.m06=-31;$1.m12=-32;$1.mac=-33;var _G=new Map([["parse",$1.parse],["parsefnc",$1.parsefnc],["eci",true],["FNC1",$1.fn1],["FNC3",$1.fn3]]);$1.fncvals=_G;$k[$j++]="msg";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _J=$k[--$j];$1[$k[--$j]]=_J;$1.msglen=$1.msg.length;var _M=$1.msg;$k[$j++]="numecis";$k[$j++]=0;for(var _N=0,_O=_M.length;_N<_O;_N++){if($g(_M,_N)<=-1e6){var _Q=$k[--$j];$k[$j++]=$f(_Q+1)}}var _R=$k[--$j];$1[$k[--$j]]=_R;$1.msgtmp=$a($f($1.msg.length+$1.numecis*6));$1.j=0;for(var _Y=0,_X=$1.msg.length-1;_Y<=_X;_Y+=1){var _a=$g($1.msg,_Y);$k[$j++]=_a;if(_a<=-1e6){var _e=$G($R($s(7),-$k[--$j],10),1,6);for(var _f=0,_g=_e.length;_f<_g;_f++){$k[$j++]=$g(_e,_f)}$r($a(6));$P($1.msgtmp,$1.j+1,$k[--$j]);$p($1.msgtmp,$1.j,$1.fn2);$1.j=$1.j+7}else{$p($1.msgtmp,$1.j,$k[--$j]);$1.j=$1.j+1}}$1.msg=$1.msgtmp;$1.msglen=$1.msg.length;$1.charmaps=$a([$a([32,32,"00"]),$a(["!","!","01"]),$a(['"','"',"02"]),$a(["#","#","03"]),$a(["$","$","04"]),$a(["%","%","05"]),$a(["&","&","06"]),$a(["'","'","07"]),$a([40,40,"08"]),$a([41,41,"09"]),$a(["*","*","10"]),$a(["+","+","11"]),$a([",",",","12"]),$a(["-","-","13"]),$a([".",".","14"]),$a(["/","/","15"]),$a(["0","0","16"]),$a(["1","1","17"]),$a(["2","2","18"]),$a(["3","3","19"]),$a(["4","4","20"]),$a(["5","5","21"]),$a(["6","6","22"]),$a(["7","7","23"]),$a(["8","8","24"]),$a(["9","9","25"]),$a([":",":","26"]),$a([";",";","27"]),$a(["<","<","28"]),$a(["=","=","29"]),$a([">",">","30"]),$a(["?","?","31"]),$a(["@","@","32"]),$a(["A","A","33"]),$a(["B","B","34"]),$a(["C","C","35"]),$a(["D","D","36"]),$a(["E","E","37"]),$a(["F","F","38"]),$a(["G","G","39"]),$a(["H","H","40"]),$a(["I","I","41"]),$a(["J","J","42"]),$a(["K","K","43"]),$a(["L","L","44"]),$a(["M","M","45"]),$a(["N","N","46"]),$a(["O","O","47"]),$a(["P","P","48"]),$a(["Q","Q","49"]),$a(["R","R","50"]),$a(["S","S","51"]),$a(["T","T","52"]),$a(["U","U","53"]),$a(["V","V","54"]),$a(["W","W","55"]),$a(["X","X","56"]),$a(["Y","Y","57"]),$a(["Z","Z","58"]),$a(["[","[","59"]),$a([92,92,"60"]),$a(["]","]","61"]),$a(["^","^","62"]),$a(["_","_","63"]),$a([0,"`","64"]),$a([1,"a","65"]),$a([2,"b","66"]),$a([3,"c","67"]),$a([4,"d","68"]),$a([5,"e","69"]),$a([6,"f","70"]),$a([7,"g","71"]),$a([8,"h","72"]),$a([9,"i","73"]),$a([10,"j","74"]),$a([11,"k","75"]),$a([12,"l","76"]),$a([13,"m","77"]),$a([14,"n","78"]),$a([15,"o","79"]),$a([16,"p","80"]),$a([17,"q","81"]),$a([18,"r","82"]),$a([19,"s","83"]),$a([20,"t","84"]),$a([21,"u","85"]),$a([22,"v","86"]),$a([23,"w","87"]),$a([24,"x","88"]),$a([25,"y","89"]),$a([26,"z","90"]),$a([27,"{","91"]),$a([28,"|","92"]),$a([29,"}","93"]),$a([30,"~","94"]),$a([31,127,"95"]),$a([$1.sfb,$1.crl,"96"]),$a([$1.sb2,9,"97"]),$a([$1.sb3,28,"98"]),$a([$1.sb4,29,"99"]),$a([$1.sb5,30,$1.aim]),$a([$1.sb6,$1.sfa,$1.laa]),$a([$1.lab,$1.laa,$1.sfb]),$a([$1.sc2,$1.sc2,$1.sb2]),$a([$1.sc3,$1.sc3,$1.sb3]),$a([$1.sc4,$1.sc4,$1.sb4]),$a([$1.lac,$1.lac,$1.lab]),$a([$1.fn1,$1.fn1,$1.fn1]),$a([$1.fn2,$1.fn2,$1.fn2]),$a([$1.fn3,$1.fn3,$1.fn3]),$a([$1.bsa,$1.bsa,$1.bsa]),$a([$1.bsb,$1.bsb,$1.bsb]),$a([$1.bin,$1.bin,$1.bin])]);$1.charvals=$a([new Map,new Map,new Map]);for(var _3W=0,_3V=$1.charmaps.length-1;_3W<=_3V;_3W+=1){$1.i=_3W;$1.encs=$g($1.charmaps,$1.i);for(var _3a=0;_3a<=2;_3a+=1){$1.j=_3a;var _3d=$g($1.encs,$1.j);$k[$j++]=_3d;if($eq($t(_3d),"stringtype")){var _3g=$g($k[--$j],0);$k[$j++]=_3g}$p($g($1.charvals,$1.j),$k[--$j],$1.i)}}$1.Avals=$g($1.charvals,0);$1.Bvals=$g($1.charvals,1);$p($1.Bvals,$1.m05,97);$p($1.Bvals,$1.m06,98);$p($1.Bvals,$1.m12,99);$p($1.Bvals,$1.mac,100);$1.Cvals=$g($1.charvals,2);$k[$j++]=Infinity;var _4A=$a([$1.sc2,$1.sc3,$1.sc4,$1.sc5,$1.sc6,$1.sc7,$1.tma,$1.tmb,$1.tmc,$1.tms]);$k[$j++]=102;for(var _4B=0,_4C=_4A.length;_4B<_4C;_4B++){var _4F=$f($k[--$j]+1);$k[$j++]=$g(_4A,_4B);$k[$j++]=_4F;$k[$j++]=_4F}$j--;$1.BINvals=$d();$k[$j++]=Infinity;for(var _4I=0,_4J=$1.msglen+1;_4I<_4J;_4I++){$k[$j++]=0}$1.nDigits=$a();$k[$j++]=Infinity;for(var _4M=0,_4N=$1.msglen+1;_4M<_4N;_4M++){$k[$j++]=false}$1.SeventeenTen=$a();$k[$j++]=Infinity;for(var _4Q=0,_4R=$1.msglen+1;_4Q<_4R;_4Q++){$k[$j++]=false}$1.ECI=$a();$k[$j++]=Infinity;for(var _4U=0,_4V=$1.msglen+1;_4U<_4V;_4U++){$k[$j++]=false}$1.DatumA=$a();$k[$j++]=Infinity;for(var _4Y=0,_4Z=$1.msglen+1;_4Y<_4Z;_4Y++){$k[$j++]=false}$1.DatumB=$a();$k[$j++]=Infinity;for(var _4c=0,_4d=$1.msglen+1;_4c<_4d;_4c++){$k[$j++]=false}$1.DatumC=$a();$k[$j++]=Infinity;for(var _4g=0,_4h=$1.msglen+8;_4g<_4h;_4g++){$k[$j++]=false}$1.Binary=$a();$k[$j++]=Infinity;for(var _4k=0,_4l=$1.msglen+1;_4k<_4l;_4k++){$k[$j++]=0}$1.AheadC=$a();$k[$j++]=Infinity;for(var _4o=0,_4p=$1.msglen+1;_4o<_4p;_4o++){$k[$j++]=0}$1.TryC=$a();$k[$j++]=Infinity;for(var _4s=0,_4t=$1.msglen+1;_4s<_4t;_4s++){$k[$j++]=0}$1.AheadA=$a();$k[$j++]=Infinity;for(var _4w=0,_4x=$1.msglen+1;_4w<_4x;_4w++){$k[$j++]=0}$1.AheadB=$a();$k[$j++]=Infinity;for(var _50=0,_51=$1.msglen+1;_50<_51;_50++){$k[$j++]=0}$1.UntilEndSeg=$a();for(var _54=$1.msglen-1;_54>=0;_54-=1){$1.i=_54;$1.barchar=$g($1.msg,$1.i);if($1.barchar>=48&&$1.barchar<=57){$p($1.nDigits,$1.i,$f($g($1.nDigits,$1.i+1)+1))}var _5H=$g($1.Avals,$1.barchar)!==undefined;if(_5H){$p($1.DatumA,$1.i,true)}var _5M=$g($1.Bvals,$1.barchar)!==undefined;if(_5M){$p($1.DatumB,$1.i,true)}$1.CRLF=false;if($1.barchar==13&&$1.i<$1.msglen-1){if($g($1.msg,$1.i+1)==10){$1.CRLF=true}}if($1.CRLF){$p($1.DatumB,$1.i,true)}if($g($1.nDigits,$1.i)>=2){$p($1.DatumC,$1.i,true)}if($1.barchar<0){$p($1.DatumC,$1.i,true)}if($1.barchar>=128){$p($1.Binary,$1.i,true)}if($g($1.nDigits,$1.i)>=10){$k[$j++]=Infinity;$q($G($1.msg,$1.i,10));for(var _5p=0,_5q=1;_5p<_5q;_5p++){if($k[--$j]!=48){$k[$j++]=false;break}if($k[--$j]!=49){$k[$j++]=false;break}$j-=6;if($k[--$j]!=55){$k[$j++]=false;break}if($k[--$j]!=49){$k[$j++]=false;break}$k[$j++]=true}$p($1.SeventeenTen,$1.i,$k[--$j]);$l()}if($g($1.nDigits,$1.i+1)>=6&&$g($1.msg,$1.i)==$1.fn2){$p($1.ECI,$1.i,true)}if($1.barchar<0&&$1.barchar!=$1.fn3){$p($1.AheadC,$1.i,$f($g($1.AheadC,$1.i+1)+1))}else{if($g($1.nDigits,$1.i)<=1){$p($1.AheadC,$1.i,0)}else{$p($1.AheadC,$1.i,$f($g($1.AheadC,$1.i+2)+1))}}if($g($1.nDigits,$1.i)>0&&$gt($g($1.AheadC,$1.i),$g($1.AheadC,$1.i+1))){$p($1.TryC,$1.i,$g($1.AheadC,$1.i))}if($g($1.DatumA,$1.i)&&$g($1.TryC,$1.i)<2&&$1.barchar!=$1.fn3){$p($1.AheadA,$1.i,$f($g($1.AheadA,$1.i+1)+1))}if($g($1.DatumB,$1.i)&&$g($1.TryC,$1.i)<2&&$1.barchar!=$1.fn3){$k[$j++]=$1.AheadB;$k[$j++]=$1.i;$k[$j++]=$1.AheadB;$k[$j++]=$1.i+1;if($1.CRLF){var _73=$k[--$j];$k[$j++]=$f(_73+1)}var _74=$k[--$j];var _76=$g($k[--$j],_74);var _77=$k[--$j];$p($k[--$j],_77,$f(_76+1))}if($1.barchar!=$1.fn3){$p($1.UntilEndSeg,$1.i,$f($g($1.UntilEndSeg,$1.i+1)+1))}}$1.A=0;$1.B=1;$1.C=2;$1.BIN=3;$1.addtocws=function(){var _7G=$k[--$j];$P($1.cws,$1.j,_7G);$1.j=_7G.length+$1.j};$1.base259to103=function(){$1.in=$k[--$j];$1.inlen=$1.in.length;$k[$j++]=Infinity;for(var _7N=0,_7O=5-$1.inlen;_7N<_7O;_7N++){$k[$j++]=0}$q($1.in);$1.in=$a();$1.out=$a(6);$k[$j++]=Infinity;$q($G($1.in,0,2));$1.msbs=$a();$k[$j++]=Infinity;$q($1.msbs);var _7W=$k[--$j];var _7X=$k[--$j];$k[$j++]=$f(_7W+_7X*259);for(var _7Y=0,_7Z=2;_7Y<_7Z;_7Y++){var _7a=$k[--$j];$k[$j++]=_7a%103;$k[$j++]=~~(_7a/103)}$1.mscs=$a();$k[$j++]=Infinity;$q($G($1.in,2,3));$1.lsbs=$a();$k[$j++]=Infinity;$q($1.lsbs);var _7g=$k[--$j];var _7h=$k[--$j];var _7i=$k[--$j];$k[$j++]=$f($f(_7g+_7h*259)+_7i*67081);for(var _7j=0,_7k=3;_7j<_7k;_7j++){var _7l=$k[--$j];$k[$j++]=_7l%103;$k[$j++]=~~(_7l/103)}$1.lscs=$a();var _7o=$g($1.lscs,0);var _7q=$g($1.mscs,0);$p($1.out,5,$f(_7o+_7q*42)%103);var _7t=$g($1.lscs,1);var _7v=$g($1.mscs,0);var _7x=$g($1.mscs,1);$p($1.out,4,$f($f($f(~~($f(_7o+_7q*42)/103)+_7t)+_7v*68)+_7x*42)%103);var _80=$g($1.lscs,2);var _82=$g($1.mscs,0);var _84=$g($1.mscs,1);var _86=$g($1.mscs,2);$p($1.out,3,$f($f($f($f(~~($f($f($f(~~($f(_7o+_7q*42)/103)+_7t)+_7v*68)+_7x*42)/103)+_80)+_82*92)+_84*68)+_86*42)%103);var _89=$g($1.lscs,3);var _8B=$g($1.mscs,0);var _8D=$g($1.mscs,1);var _8F=$g($1.mscs,2);$p($1.out,2,$f($f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_7o+_7q*42)/103)+_7t)+_7v*68)+_7x*42)/103)+_80)+_82*92)+_84*68)+_86*42)/103)+_89)+_8B*15)+_8D*92)+_8F*68)%103);var _8I=$g($1.mscs,1);var _8K=$g($1.mscs,2);$p($1.out,1,$f($f(~~($f($f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_7o+_7q*42)/103)+_7t)+_7v*68)+_7x*42)/103)+_80)+_82*92)+_84*68)+_86*42)/103)+_89)+_8B*15)+_8D*92)+_8F*68)/103)+_8I*15)+_8K*92)%103);$p($1.out,0,$f(~~($f($f(~~($f($f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_7o+_7q*42)/103)+_7t)+_7v*68)+_7x*42)/103)+_80)+_82*92)+_84*68)+_86*42)/103)+_89)+_8B*15)+_8D*92)+_8F*68)/103)+_8I*15)+_8K*92)/103)+$g($1.mscs,2)*15)%103);$k[$j++]=$G($1.out,6-$1.inlen-1,$1.inlen+1)};$1.finaliseBIN=function(){if($1.bpos!=0){$k[$j++]=$G($1.bvals,0,$1.bpos);$1.base259to103();$q($k[--$j]);$1.bpos=0}};$1.addtobin=function(){$p($1.bvals,$1.bpos,$k[--$j]);$1.bpos=$1.bpos+1;if($1.bpos==5){$1.finaliseBIN()}};$1.ECIabc=function(){var _8f=$G($1.msg,$1.i+1,6);$k[$j++]=0;for(var _8g=0,_8h=_8f.length;_8g<_8h;_8g++){var _8j=$k[--$j];$k[$j++]=$f(_8j+$f($g(_8f,_8g)-48))*10}var _8l=~~($k[--$j]/10);$k[$j++]=_8l;if(_8l>=40){var _8n=$f($k[--$j]-40);var _8o=_8n%12769;$k[$j++]=~~(_8n/12769)+40;$k[$j++]=~~(_8o/113);$k[$j++]=_8o%113}};$1.ECIbin=function(){$k[$j++]=Infinity;var _8r=$G($1.msg,$1.i+1,6);$k[$j++]=0;for(var _8s=0,_8t=_8r.length;_8s<_8t;_8s++){var _8v=$k[--$j];$k[$j++]=$f(_8v+$f($g(_8r,_8s)-48))*10}var _8x=~~($k[--$j]/10);$k[$j++]=_8x;if(_8x>=65536){var _8y=$k[--$j];var _8z=_8y%65536;$k[$j++]=258;$k[$j++]=~~(_8y/65536);$k[$j++]=~~(_8z/256);$k[$j++]=_8z%256}else{var _90=$k[--$j];$k[$j++]=_90;if(_90>=256){var _91=$k[--$j];$k[$j++]=257;$k[$j++]=~~(_91/256);$k[$j++]=_91%256}else{var _92=$k[--$j];$k[$j++]=256;$k[$j++]=_92}}var _93=$a();for(var _94=0,_95=_93.length;_94<_95;_94++){$k[$j++]=$g(_93,_94);$1.addtobin()}};$1.encC=function(){for(var _97=0,_98=1;_97<_98;_97++){if($1.i==$1.segstart){for(var _9B=0,_9C=1;_9B<_9C;_9B++){if($1.i>$f($1.segend-7)){$k[$j++]=0;break}if($g($1.msg,$1.segstart)!=91){$k[$j++]=0;break}if($g($1.msg,$1.segstart+1)!=41){$k[$j++]=0;break}if($g($1.msg,$1.segstart+2)!=62){$k[$j++]=0;break}if($g($1.msg,$1.segstart+3)!=30){$k[$j++]=0;break}var _9T=$g($1.msg,$1.segstart+4);if(_9T<48||_9T>57){$k[$j++]=0;break}var _9W=$g($1.msg,$1.segstart+5);if(_9W<48||_9W>57){$k[$j++]=0;break}if($g($1.msg,$f($1.segend-1))!=4){$k[$j++]=0;break}var _9g=$f($f($g($1.msg,$1.segstart+4)-48)*10+$f($g($1.msg,$1.segstart+5)-48));$k[$j++]=_9g;if(_9g!=5&&(_9g!=6&&_9g!=12)){$j--;$k[$j++]=$1.mac;break}if($g($1.msg,$1.segstart+6)!=29){$j--;$k[$j++]=0;break}if($g($1.msg,$f($1.segend-2))!=30){$j--;$k[$j++]=0;break}var _9o=$k[--$j];$k[$j++]=_9o;if(_9o==5){$j--;$k[$j++]=$1.m05;break}if($k[--$j]==6){$k[$j++]=$1.m06;break}$k[$j++]=$1.m12;break}$1.inmac=$k[--$j];if($1.inmac!=0){$1.mode=$1.B;$k[$j++]=$a([$g($1.Bvals,$1.inmac)]);$1.addtocws();var _A3=$1.inmac!=$1.mac?7:6;$1.i=$1.i+_A3;break}}if($1.i==$1.segstart){if($g($1.nDigits,$1.i)>=2){$k[$j++]=$a([$g($1.Cvals,$1.fn1)]);$1.addtocws()}if($g($1.msg,$1.i)==$1.fn1&&$g($1.nDigits,$1.i+1)>=2){$1.i=$1.i+1}}if($g($1.SeventeenTen,$1.i)){$k[$j++]=$a([$g($1.Cvals,$1.aim),$f($f($g($1.msg,$1.i+2)-48)*10+$f($g($1.msg,$1.i+3)-48)),$f($f($g($1.msg,$1.i+4)-48)*10+$f($g($1.msg,$1.i+5)-48)),$f($f($g($1.msg,$1.i+6)-48)*10+$f($g($1.msg,$1.i+7)-48))]);$1.addtocws();$1.i=$1.i+10;break}if($g($1.DatumC,$1.i)){var _Aq=$g($1.msg,$1.i);if(_Aq==$1.fn1||(_Aq==$1.fn2||_Aq==$1.fn3)){$k[$j++]=$a([$g($1.Cvals,$g($1.msg,$1.i))]);$1.addtocws();if($g($1.ECI,$1.i)){$k[$j++]=Infinity;$1.ECIabc();var _B3=$a();$k[$j++]=_B3;$1.addtocws();$1.i=$1.i+7;break}if($g($1.msg,$1.i)==$1.fn3&&$1.segstart!=$1.i){$1.i=$1.i+1;$1.inmac=0;$1.segstart=$1.i;$1.segend=$f($1.i+$g($1.UntilEndSeg,$1.i));break}$1.i=$1.i+1;break}$k[$j++]=$a([$f($f($g($1.msg,$1.i)-48)*10+$f($g($1.msg,$1.i+1)-48))]);$1.addtocws();$1.i=$1.i+2;break}if($g($1.Binary,$1.i)){if($g($1.nDigits,$1.i+1)>0){if($g($1.msg,$1.i)<160){$k[$j++]=$a([$g($1.Cvals,$1.bsa),$g($1.Avals,$f($g($1.msg,$1.i)-128))]);$1.addtocws()}else{$k[$j++]=$a([$g($1.Cvals,$1.bsb),$g($1.Bvals,$f($g($1.msg,$1.i)-128))]);$1.addtocws()}$1.i=$1.i+1;break}$k[$j++]=$a([$g($1.Cvals,$1.bin)]);$1.addtocws();$1.mode=$1.BIN;break}$1.m=$g($1.AheadA,$1.i);$1.n=$g($1.AheadB,$1.i);if($gt($1.m,$1.n)){$k[$j++]=$a([$g($1.Cvals,$1.laa)]);$1.addtocws();$1.mode=$1.A;break}if($1.i==$1.segstart){var _CE=$g($1.msg,$1.i);if(_CE==9||(_CE==28||(_CE==29||_CE==30))){$k[$j++]=$a([$g($1.Cvals,$1.laa)]);$1.addtocws();$1.mode=$1.A;break}}if($1.n>4){$k[$j++]=$a([$g($1.Cvals,$1.lab)]);$1.addtocws();$1.mode=$1.B;break}$k[$j++]=$a([$g($1.Cvals,$g($a([$1.sfb,$1.sb2,$1.sb3,$1.sb4]),$f($1.n-1)))]);$1.addtocws();for(var _Cb=0,_Cc=$1.n;_Cb<_Cc;_Cb++){$k[$j++]=$a([$g($1.Bvals,$g($1.msg,$1.i))]);$1.addtocws();$1.i=$1.i+1}break}};$1.encB=function(){for(var _Ck=0,_Cl=1;_Ck<_Cl;_Ck++){$1.n=$g($1.TryC,$1.i);if($1.n>=2){if($1.n>4){$k[$j++]=$a([$g($1.Bvals,$1.lac)]);$1.addtocws();$1.mode=$1.C;break}$k[$j++]=$a([$g($1.Bvals,$g($a([$1.sfc,$1.sc2,$1.sc3,$1.sc4]),$f($1.n-1)))]);$1.addtocws();for(var _D7=0,_D8=$1.n;_D7<_D8;_D7++){if($g($1.msg,$1.i)<0){$k[$j++]=$a([$g($1.Cvals,$g($1.msg,$1.i))]);$1.addtocws();$1.i=$1.i+1}else{$k[$j++]=$a([$f($f($g($1.msg,$1.i)-48)*10+$f($g($1.msg,$1.i+1)-48))]);$1.addtocws();$1.i=$1.i+2}}break}if($g($1.DatumB,$1.i)){var _DW=$g($1.msg,$1.i);if(_DW==$1.fn1||(_DW==$1.fn2||_DW==$1.fn3)){$k[$j++]=$a([$g($1.Bvals,$g($1.msg,$1.i))]);$1.addtocws();if($g($1.ECI,$1.i)){$k[$j++]=Infinity;$1.ECIabc();var _Dj=$a();$k[$j++]=_Dj;$1.addtocws();$1.i=$1.i+7;break}if($g($1.msg,$1.i)==$1.fn3&&$1.i!=$1.segstart){$1.i=$1.i+1;$1.mode=$1.C;$1.inmac=0;$1.segstart=$1.i;$1.segend=$f($1.i+$g($1.UntilEndSeg,$1.i));break}$1.i=$1.i+1;break}if($g($1.msg,$1.i)==13&&$1.i<$1.msglen-1){if($g($1.msg,$1.i+1)==10){$k[$j++]=$a([$g($1.Bvals,$1.crl)]);$1.addtocws();$1.i=$1.i+2;break}}$k[$j++]=$a([$g($1.Bvals,$g($1.msg,$1.i))]);$1.addtocws();$1.i=$1.i+1;break}if($g($1.Binary,$1.i)){if($g($1.DatumB,$1.i+1)){if($g($1.msg,$1.i)<160){$k[$j++]=$a([$g($1.Bvals,$1.bsa),$g($1.Avals,$f($g($1.msg,$1.i)-128))]);$1.addtocws()}else{$k[$j++]=$a([$g($1.Bvals,$1.bsb),$g($1.Bvals,$f($g($1.msg,$1.i)-128))]);$1.addtocws()}$1.i=$1.i+1;break}$k[$j++]=$a([$g($1.Bvals,$1.bin)]);$1.addtocws();$1.mode=$1.BIN;break}if($g($1.AheadA,$1.i)==1){$k[$j++]=$a([$g($1.Bvals,$1.sfa),$g($1.Avals,$g($1.msg,$1.i))]);$1.addtocws();$1.i=$1.i+1;break}$k[$j++]=$a([$g($1.Bvals,$1.laa)]);$1.addtocws();$1.mode=$1.A;break}};$1.encA=function(){for(var _F8=0,_F9=1;_F8<_F9;_F8++){$1.n=$g($1.TryC,$1.i);if($1.n>=2){if($1.n>4){$k[$j++]=$a([$g($1.Avals,$1.lac)]);$1.addtocws();$1.mode=$1.C;break}$k[$j++]=$a([$g($1.Avals,$g($a([$1.sfc,$1.sc2,$1.sc3,$1.sc4]),$f($1.n-1)))]);$1.addtocws();for(var _FV=0,_FW=$1.n;_FV<_FW;_FV++){if($g($1.msg,$1.i)<0){$k[$j++]=$a([$g($1.Cvals,$g($1.msg,$1.i))]);$1.addtocws();$1.i=$1.i+1}else{$k[$j++]=$a([$f($f($g($1.msg,$1.i)-48)*10+$f($g($1.msg,$1.i+1)-48))]);$1.addtocws();$1.i=$1.i+2}}break}if($g($1.DatumA,$1.i)){var _Fu=$g($1.msg,$1.i);if(_Fu==$1.fn1||(_Fu==$1.fn2||_Fu==$1.fn3)){$k[$j++]=$a([$g($1.Avals,$g($1.msg,$1.i))]);$1.addtocws();if($g($1.ECI,$1.i)){$k[$j++]=Infinity;$1.ECIabc();var _G7=$a();$k[$j++]=_G7;$1.addtocws();$1.i=$1.i+7;break}if($g($1.msg,$1.i)==$1.fn3&&$1.i!=$1.segstart){$1.i=$1.i+1;$1.mode=$1.C;$1.inmac=0;$1.segstart=$1.i;$1.segend=$f($1.i+$g($1.UntilEndSeg,$1.i));break}$1.i=$1.i+1;break}$k[$j++]=$a([$g($1.Avals,$g($1.msg,$1.i))]);$1.addtocws();$1.i=$1.i+1;break}if($g($1.Binary,$1.i)){if($g($1.DatumA,$1.i+1)){if($g($1.msg,$1.i)<160){$k[$j++]=$a([$g($1.Avals,$1.bsa),$g($1.Avals,$f($g($1.msg,$1.i)-128))]);$1.addtocws()}else{$k[$j++]=$a([$g($1.Avals,$1.bsb),$g($1.Bvals,$f($g($1.msg,$1.i)-128))]);$1.addtocws()}$1.i=$1.i+1;break}$k[$j++]=$a([$g($1.Avals,$1.bin)]);$1.addtocws();$1.mode=$1.BIN;break}$1.n=$g($1.AheadB,$1.i);if($1.n>6){$k[$j++]=$a([$g($1.Avals,$1.lab)]);$1.addtocws();$1.mode=$1.B;break}$k[$j++]=$a([$g($1.Avals,$g($a([$1.sfb,$1.sb2,$1.sb3,$1.sb4,$1.sb5,$1.sb6]),$f($1.n-1)))]);$1.addtocws();for(var _HN=0,_HO=$1.n;_HN<_HO;_HN++){$k[$j++]=$a([$g($1.Bvals,$g($1.msg,$1.i))]);$1.addtocws();$1.i=$1.i+1}break}};$1.encBIN=function(){for(var _HW=0,_HX=1;_HW<_HX;_HW++){$1.n=$g($1.TryC,$1.i);if($1.n>=2){$k[$j++]=Infinity;$1.finaliseBIN();var _Hc=$a();$k[$j++]=_Hc;$1.addtocws();if($1.n>7){var _Hi=$k[--$j];$1.mode=$1.C;$k[$j++]=$f(_Hi+$a([$g($1.BINvals,$1.tmc)]));break}$k[$j++]=$a([$g($1.BINvals,$g($a([$1.sc2,$1.sc3,$1.sc4,$1.sc5,$1.sc6,$1.sc7]),$f($1.n-2)))]);$1.addtocws();for(var _Hx=0,_Hy=$1.n;_Hx<_Hy;_Hx++){if($g($1.msg,$1.i)<0){$k[$j++]=$a([$g($1.Cvals,$g($1.msg,$1.i))]);$1.addtocws();$1.i=$1.i+1}else{$k[$j++]=$a([$f($f($g($1.msg,$1.i)-48)*10+$f($g($1.msg,$1.i+1)-48))]);$1.addtocws();$1.i=$1.i+2}}break}if($g($1.ECI,$1.i)&&$g($1.Binary,$1.i+7)){$k[$j++]=Infinity;$1.ECIbin();var _IN=$a();$k[$j++]=_IN;$1.addtocws();$1.i=$1.i+7;if($1.i==$1.msglen){$k[$j++]=Infinity;$1.finaliseBIN();var _IR=$a();$k[$j++]=_IR;$1.addtocws()}break}if($g($1.msg,$1.i)>=0){if($g($1.Binary,$1.i)||$g($1.Binary,$1.i+1)||$g($1.Binary,$1.i+2)||$g($1.Binary,$1.i+3)||$g($1.ECI,$1.i+1)&&$g($1.Binary,$1.i+8)){$k[$j++]=Infinity;$k[$j++]=$g($1.msg,$1.i);$1.addtobin();var _Iq=$a();$k[$j++]=_Iq;$1.addtocws();$1.i=$1.i+1;if($1.i==$1.msglen){$k[$j++]=Infinity;$1.finaliseBIN();var _Iu=$a();$k[$j++]=_Iu;$1.addtocws()}break}}$k[$j++]=Infinity;$1.finaliseBIN();var _Iv=$a();$k[$j++]=_Iv;$1.addtocws();if($1.i!=$1.msglen-1){if($g($1.msg,$1.i)==$1.fn3&&$1.i!=$1.segstart){$k[$j++]=$a([$g($1.BINvals,$1.tms)]);$1.addtocws();$1.i=$1.i+1;$1.mode=$1.C;$1.inmac=0;$1.segstart=$1.i;$1.segend=$f($1.i+$g($1.UntilEndSeg,$1.i));break}if($gt($g($1.AheadA,$1.i),$g($1.AheadB,$1.i))){$k[$j++]=$a([$g($1.BINvals,$1.tma)]);$1.addtocws();$1.mode=$1.A}else{$k[$j++]=$a([$g($1.BINvals,$1.tmb)]);$1.addtocws();$1.mode=$1.B}break}break}};$1.cws=$a($1.msglen*2+1);$1.mode=$1.C;$1.bvals=$a(5);$1.bpos=0;$1.inmac=0;$1.segstart=0;$1.segend=$g($1.UntilEndSeg,0);$1.i=0;$1.j=0;for(;;){if($1.i>=$1.msglen){break}if($1.inmac!=0){if($1.inmac!=$1.mac&&$1.i==$f($1.segend-2)){$1.i=$1.i+2;if($1.i>=$1.msglen){break}}if($1.inmac==$1.mac&&$1.i==$f($1.segend-1)){$1.i=$1.i+1;if($1.i>=$1.msglen){break}}}if($1[$g($a(["encA","encB","encC","encBIN"]),$1.mode)]()===true){break}}$1.cws=$G($1.cws,0,$1.j);$1.nd=$1.cws.length;$1.minarea=(($1.nd+3+~~($1.nd/2))*9+2)*2;if($1.ratio!=-1){$1.hgt=Math.sqrt($1.minarea/$1.ratio);$1.wid=Math.sqrt($1.minarea*$1.ratio);$1.h=~~$1.hgt;$1.w=~~$1.wid;if(($1.h+$1.w)%2==1){if($1.h*$1.w<$1.minarea){$1.h=$1.h+1;$1.w=$1.w+1}}else{if($1.hgt*$1.w<$1.wid*$1.h){$1.w=$1.w+1;if($1.h*$1.w<$1.minarea){$1.w=$1.w-1;$1.h=$1.h+1;if($1.h*$1.w<$1.minarea){$1.w=$1.w+2}}}else{$1.h=$1.h+1;if($1.h*$1.w<$1.minarea){$1.h=$1.h-1;$1.w=$1.w+1;if($1.h*$1.w<$1.minarea){$1.h=$1.h+2}}}}$1.rows=$1.h;$1.columns=$1.w}else{if($1.columns==-1){var _Kk=~~(($1.minarea+$1.rows-1)/$1.rows);$k[$j++]="columns";$k[$j++]=_Kk;if((_Kk+$1.rows)%2==0){var _Km=$k[--$j];$k[$j++]=$f(_Km+1)}var _Kn=$k[--$j];$1[$k[--$j]]=_Kn}if($1.rows==-1){var _Kt=~~(($1.minarea+$1.columns-1)/$1.columns);$k[$j++]="rows";$k[$j++]=_Kt;if((_Kt+$1.columns)%2==0){var _Kv=$k[--$j];$k[$j++]=$f(_Kv+1)}var _Kw=$k[--$j];$1[$k[--$j]]=_Kw}}$1.ndots=~~($1.rows*$1.columns/2);for(;;){var _L1=$1.nd+1;if((_L1+(~~(_L1/2)+3))*9+2>$1.ndots){break}$1.nd=$1.nd+1}$1.nc=~~($1.nd/2)+3;$1.nw=$1.nd+$1.nc;$1.rembits=$1.ndots-($1.nw*9+2);if($1.nd>$1.cws.length){$k[$j++]=Infinity;$q($1.cws);var _LE=$1.mode==$1.BIN?109:106;$k[$j++]=_LE;for(var _LH=0,_LI=$1.nd-$1.cws.length-1;_LH<_LI;_LH++){$k[$j++]=106}$1.cws=$a()}$1.encs=$a(["101010101","010101011","010101101","010110101","011010101","101010110","101011010","101101010","110101010","010101110","010110110","010111010","011010110","011011010","011101010","100101011","100101101","100110101","101001011","101001101","101010011","101011001","101100101","101101001","110010101","110100101","110101001","001010111","001011011","001011101","001101011","001101101","001110101","010010111","010011011","010011101","010100111","010110011","010111001","011001011","011001101","011010011","011011001","011100101","011101001","100101110","100110110","100111010","101001110","101011100","101100110","101101100","101110010","101110100","110010110","110011010","110100110","110101100","110110010","110110100","111001010","111010010","111010100","001011110","001101110","001110110","001111010","010011110","010111100","011001110","011011100","011100110","011101100","011110010","011110100","100010111","100011011","100011101","100100111","100110011","100111001","101000111","101100011","101110001","110001011","110001101","110010011","110011001","110100011","110110001","111000101","111001001","111010001","000101111","000110111","000111011","000111101","001001111","001100111","001110011","001111001","010001111","011000111","011100011","011110001","100011110","100111100","101111000","110001110","110011100","110111000","111000110","111001100"]);if($1.rows%2==0){$1.sixedges=$a([$a([$1.columns-1,$1.rows-2]),$a([0,$1.rows-2]),$a([$1.columns-2,$1.rows-1]),$a([1,$1.rows-1]),$a([$1.columns-1,0]),$a([0,0])])}else{$1.sixedges=$a([$a([$1.columns-2,0]),$a([$1.columns-2,$1.rows-1]),$a([$1.columns-1,1]),$a([$1.columns-1,$1.rows-2]),$a([0,0]),$a([0,$1.rows-1])])}$1.dmv=function(){var _Lp=$k[--$j];var _Lq=$k[--$j];$k[$j++]=$f(_Lq+_Lp*$1.columns)};$1.outline=$a($1.rows*$1.columns);for(var _Lw=0,_Lv=$1.rows-1;_Lw<=_Lv;_Lw+=1){$1.y=_Lw;for(var _Lz=0,_Ly=$1.columns-1;_Lz<=_Ly;_Lz+=1){$1.x=_Lz;$k[$j++]=$1.outline;$k[$j++]=$1.x;$k[$j++]=$1.y;$1.dmv();var _M5=$k[--$j];$p($k[--$j],_M5,($1.x+$1.y)%2-1)}}var _M7=$1.sixedges;for(var _M8=0,_M9=_M7.length;_M8<_M9;_M8++){$k[$j++]=$1.outline;$q($g(_M7,_M8));$1.dmv();var _MC=$k[--$j];$p($k[--$j],_MC,1)}$1.clearcol=function(){$1.x=$k[--$j];$k[$j++]=true;for(var _MI=$1.x&1,_MH=$1.rows-1;_MI<=_MH;_MI+=2){$k[$j++]=$1.x;$k[$j++]=_MI;$1.dmv();if($g($1.sym,$k[--$j])==1){$j--;$k[$j++]=false;break}}};$1.clearrow=function(){$1.y=$k[--$j];$k[$j++]=true;for(var _MR=$1.y&1,_MQ=$1.columns-1;_MR<=_MQ;_MR+=2){$k[$j++]=_MR;$k[$j++]=$1.y;$1.dmv();if($g($1.sym,$k[--$j])==1){$j--;$k[$j++]=false;break}}};$1.evalsymbol=function(){$1.sym=$k[--$j];$1.worst=9999999;var _Mb=$a([$a(["x",0]),$a(["x",1]),$a(["y",0]),$a(["y",1])]);for(var _Mc=0,_Md=_Mb.length;_Mc<_Md;_Mc++){$q($g(_Mb,_Mc));$1.fl=$k[--$j];$1.dir=$k[--$j];$1.sum=0;$1.first=-1;$1.last=-1;var _Mi=$eq($1.dir,"x")?$1.columns:$1.rows;for(var _Mk=0,_Mj=_Mi-1;_Mk<=_Mj;_Mk+=1){$1[$1.dir]=_Mk;var _Mm=$1.sym;var _Mo=$1[$1.dir];var _Mq=$eq($1.dir,"x")?$1.rows:$1.columns;var _Mt=(_Mq-1)*$1.fl;if($eq($1.dir,"y")){var _=_Mt;_Mt=_Mo;_Mo=_}$k[$j++]=_Mm;$k[$j++]=_Mo;$k[$j++]=_Mt;$1.dmv();var _Mu=$k[--$j];if($g($k[--$j],_Mu)==1){if($1.first==-1){$1.first=$1[$1.dir]}$1.last=$1[$1.dir];$1.sum=$1.sum+1}}var _N7=$eq($1.dir,"x")?$1.rows:$1.columns;var _N8=$f($f($1.sum+$1.last)-$1.first)*_N7;$k[$j++]=_N8;if(_N8<$1.worst){$1.worst=$k[--$j]}else{$j--}}$1.pen=0;if($1.rows%2==1||$1.rows<=12){$1.sum=0;$1.p=0;for(var _NF=1,_NE=$1.columns-2;_NF<=_NE;_NF+=1){$k[$j++]=_NF;$1.clearcol();if($k[--$j]){$1.sum=$1.sum+1;$k[$j++]="p";if($1.sum==1){$k[$j++]=$1.rows}else{$k[$j++]=$1.p*$1.rows}var _NM=$k[--$j];$1[$k[--$j]]=_NM}else{$1.sum=0;$1.pen=$1.pen+$1.p;$1.p=0}}$1.pen=$1.pen+$1.p}if($1.rows%2==0||$1.columns<=12){$1.sum=0;$1.p=0;for(var _NW=1,_NV=$1.rows-2;_NW<=_NV;_NW+=1){$k[$j++]=_NW;$1.clearrow();if($k[--$j]){$1.sum=$1.sum+1;$k[$j++]="p";if($1.sum==1){$k[$j++]=$1.columns}else{$k[$j++]=$1.p*$1.columns}var _Nd=$k[--$j];$1[$k[--$j]]=_Nd}else{$1.sum=0;$1.pen=$1.pen+$1.p;$1.p=0}}$1.pen=$1.pen+$1.p}$k[$j++]=Infinity;for(var _Nk=0,_Nl=($1.columns+4)*2;_Nk<_Nl;_Nk++){$k[$j++]=0}for(var _Np=0,_Nq=$1.columns,_No=$1.sym.length-1;_Nq<0?_Np>=_No:_Np<=_No;_Np+=_Nq){$k[$j++]=0;$k[$j++]=0;$q($G($1.sym,_Np,$1.columns));$k[$j++]=0;$k[$j++]=0}for(var _Nv=0,_Nw=($1.columns+4)*2;_Nv<_Nw;_Nv++){$k[$j++]=0}$1.symp=$a();$1.columns=$1.columns+4;$1.rows=$1.rows+4;$1.sum=0;for(var _O2=2,_O1=$1.rows-3;_O2<=_O1;_O2+=1){$1.y=_O2;for(var _O6=($1.y&1)+2,_O5=$1.columns-3;_O6<=_O5;_O6+=2){$1.x=_O6;for(var _O7=0,_O8=1;_O7<_O8;_O7++){$k[$j++]=$1.symp;$k[$j++]=$1.x-1;$k[$j++]=$1.y-1;$1.dmv();var _OC=$k[--$j];if($g($k[--$j],_OC)==1){break}$k[$j++]=$1.symp;$k[$j++]=$1.x+1;$k[$j++]=$1.y-1;$1.dmv();var _OI=$k[--$j];if($g($k[--$j],_OI)==1){break}$k[$j++]=$1.symp;$k[$j++]=$1.x-1;$k[$j++]=$1.y+1;$1.dmv();var _OO=$k[--$j];if($g($k[--$j],_OO)==1){break}$k[$j++]=$1.symp;$k[$j++]=$1.x+1;$k[$j++]=$1.y+1;$1.dmv();var _OU=$k[--$j];if($g($k[--$j],_OU)==1){break}$k[$j++]=$1.symp;$k[$j++]=$1.x;$k[$j++]=$1.y;$1.dmv();var _Oa=$k[--$j];if($g($k[--$j],_Oa)==0){$1.sum=$1.sum+1;break}$k[$j++]=$1.symp;$k[$j++]=$1.x-2;$k[$j++]=$1.y;$1.dmv();var _Oh=$k[--$j];if($g($k[--$j],_Oh)==1){break}$k[$j++]=$1.symp;$k[$j++]=$1.x;$k[$j++]=$1.y-2;$1.dmv();var _On=$k[--$j];if($g($k[--$j],_On)==1){break}$k[$j++]=$1.symp;$k[$j++]=$1.x+2;$k[$j++]=$1.y;$1.dmv();var _Ot=$k[--$j];if($g($k[--$j],_Ot)==1){break}$k[$j++]=$1.symp;$k[$j++]=$1.x;$k[$j++]=$1.y+2;$1.dmv();var _Oz=$k[--$j];if($g($k[--$j],_Oz)==1){break}$1.sum=$1.sum+1}}}$1.columns=$1.columns-4;$1.rows=$1.rows-4;if($1.worst==0){$k[$j++]=-99999}else{$k[$j++]=$f($f($1.worst-$1.sum*$1.sum)-$1.pen)}};$k[$j++]=Infinity;$k[$j++]=1;for(var _PA=0,_PB=112;_PA<_PB;_PA++){var _PC=$k[--$j];$k[$j++]=_PC;$k[$j++]=_PC*3%113}$1.rsalog=$a();$1.step=~~($1.nw/112)+1;$1.offset=function(){var _PG=$k[--$j];$k[$j++]=$f(_PG*$1.step+$1.start)};$1.bestscore=-99999999;$k[$j++]="masks";if($1.mask!=-1){$k[$j++]=$a([$1.mask])}else{if($1.fast){$k[$j++]=$a([3,2,1,0])}else{$k[$j++]=$a([0,1,2,3])}}var _PO=$k[--$j];$1[$k[--$j]]=_PO;$1.litmasks=$a(4);$F($1.masks,function(){$1.mask=$k[--$j];$k[$j++]=Infinity;var _PX=$1.cws;$k[$j++]=$1.mask;$k[$j++]=$g($a([0,3,7,17]),$1.mask);$k[$j++]=0;for(var _PY=0,_PZ=_PX.length;_PY<_PZ;_PY++){var _Pb=$k[--$j];var _Pc=$k[--$j];$k[$j++]=$f($g(_PX,_PY)+_Pb)%113;$k[$j++]=_Pc;$k[$j++]=$f(_Pb+_Pc)}$j-=2;for(var _Pe=0,_Pf=$1.nc;_Pe<_Pf;_Pe++){$k[$j++]=0}$1.rscws=$a();for(var _Pj=0,_Pi=$1.step-1;_Pj<=_Pi;_Pj+=1){$1.start=_Pj;$1.ND=~~(($1.nd+1-$1.start+$1.step-1)/$1.step);$1.NW=~~(($1.nw+1-$1.start+$1.step-1)/$1.step);$1.NC=$1.NW-$1.ND;$k[$j++]=Infinity;$k[$j++]=1;for(var _Pv=0,_Pw=$1.NC;_Pv<_Pw;_Pv++){$k[$j++]=0}$1.coeffs=$a();for(var _Q0=1,_Pz=$1.NC;_Q0<=_Pz;_Q0+=1){$1.i=_Q0;for(var _Q2=$1.NC;_Q2>=1;_Q2-=1){$1.j=_Q2;$p($1.coeffs,$1.j,$f($f($g($1.coeffs,$1.j)+113)-$g($1.rsalog,$1.i)*$g($1.coeffs,$1.j-1)%113)%113)}}for(var _QG=0,_QF=$1.ND-1;_QG<=_QF;_QG+=1){$k[$j++]="t";$k[$j++]=$1.rscws;$k[$j++]=_QG;$1.offset();var _QI=$k[--$j];var _QK=$g($k[--$j],_QI);$k[$j++]=_QK;$k[$j++]=$1.rscws;$k[$j++]=$1.ND;$1.offset();var _QN=$k[--$j];var _QP=$g($k[--$j],_QN);var _QQ=$k[--$j];$1[$k[--$j]]=$f(_QQ+_QP)%113;for(var _QU=0,_QT=$1.NC-2;_QU<=_QT;_QU+=1){$1.j=_QU;$k[$j++]=$1.rscws;$k[$j++]=$1.ND+$1.j;$1.offset();$k[$j++]=$1.rscws;$k[$j++]=$1.ND+$1.j+1;$1.offset();var _Qb=$k[--$j];var _Qd=$g($k[--$j],_Qb);var _Qi=$k[--$j];$p($k[--$j],_Qi,$f($f(_Qd+113)-$1.t*$g($1.coeffs,$1.j+1)%113)%113)}$k[$j++]=$1.rscws;$k[$j++]=$1.ND+$1.NC-1;$1.offset();var _Qr=$k[--$j];$p($k[--$j],_Qr,$f(113-$1.t*$g($1.coeffs,$1.NC)%113)%113)}for(var _Qw=$1.ND,_Qv=$1.NW-1;_Qw<=_Qv;_Qw+=1){$k[$j++]=_Qw;$k[$j++]=$1.rscws;$k[$j++]=_Qw;$1.offset();var _Qz=$k[--$j];var _R0=$k[--$j];var _R1=$k[--$j];$k[$j++]=_R0;$k[$j++]=_Qz;$k[$j++]=113;$k[$j++]=$1.rscws;$k[$j++]=_R1;$1.offset();var _R2=$k[--$j];var _R4=$g($k[--$j],_R2);var _R5=$k[--$j];var _R6=$k[--$j];$p($k[--$j],_R6,$f(_R5-_R4)%113)}}$1.bits=$s($1.ndots);$P($1.bits,0,$g($a(["00","01","10","11"]),$1.mask));for(var _RG=1,_RF=$1.nw;_RG<=_RF;_RG+=1){$1.i=_RG;$P($1.bits,($1.i-1)*9+2,$g($1.encs,$g($1.rscws,$1.i)))}if($1.rembits>0){$P($1.bits,$1.nw*9+2,$G("11111111111111111",0,$1.rembits))}var _RT=$1.outline;$1.pixs=$A($a(_RT.length),_RT);$1.posx=0;$k[$j++]="posy";if($1.rows%2==0){$k[$j++]=0}else{$k[$j++]=$1.rows-1}var _RY=$k[--$j];$1[$k[--$j]]=_RY;var _Rc=$G($1.bits,0,$1.bits.length-6);for(var _Rd=0,_Re=_Rc.length;_Rd<_Re;_Rd++){$k[$j++]=$g(_Rc,_Rd);for(;;){$k[$j++]=$1.pixs;$k[$j++]=$1.posx;$k[$j++]=$1.posy;$1.dmv();var _Rj=$k[--$j];if($g($k[--$j],_Rj)==-1){break}if($1.rows%2==0){$1.posy=$1.posy+1;if($1.posy==$1.rows){$1.posy=0;$1.posx=$1.posx+1}}else{$1.posx=$1.posx+1;if($1.posx==$1.columns){$1.posx=0;$1.posy=$1.posy-1}}}$k[$j++]=$1.pixs;$k[$j++]=$1.posx;$k[$j++]=$1.posy;$1.dmv();var _Ry=$k[--$j];var _Rz=$k[--$j];$p(_Rz,_Ry,$f($k[--$j]-48))}for(var _S1=0;_S1<=5;_S1+=1){$1.i=_S1;$k[$j++]=$1.pixs;$q($g($1.sixedges,$1.i));$1.dmv();var _SA=$k[--$j];$p($k[--$j],_SA,$g($1.bits,$1.bits.length-6+$1.i)-48)}$k[$j++]="score";$k[$j++]=$1.pixs;$1.evalsymbol();var _SD=$k[--$j];$1[$k[--$j]]=_SD;if($1.score>$1.bestscore){$1.bestsym=$1.pixs;$1.bestscore=$1.score;if($1.fast&&$1.bestscore>~~($1.rows*$1.columns/2)){return true}}var _SN=$1.pixs;$1.litmask=$A($a(_SN.length),_SN);for(var _SQ=0;_SQ<=5;_SQ+=1){$1.i=_SQ;$k[$j++]=$1.litmask;$q($g($1.sixedges,$1.i));$1.dmv();var _SV=$k[--$j];$p($k[--$j],_SV,1)}$p($1.litmasks,$1.mask,$1.litmask);if($1.fast){$k[$j++]="score";$k[$j++]=$1.litmask;$1.evalsymbol();var _Sc=$k[--$j];$1[$k[--$j]]=_Sc;if($gt($1.score,$1.bestscore)){$1.bestsym=$1.litmask;$1.bestscore=$1.score;if($1.bestscore>~~($1.rows*$1.columns/2)){return true}}}});$1.pixs=$1.bestsym;if(!$1.fast&&$1.bestscore<=~~($1.rows*$1.columns/2)){$1.bestscore=-99999999;$F($1.masks,function(){$1.litmask=$g($1.litmasks,$k[--$j]);$k[$j++]="score";$k[$j++]=$1.litmask;$1.evalsymbol();var _Sv=$k[--$j];$1[$k[--$j]]=_Sv;if($1.score>$1.bestscore){$1.bestsym=$1.litmask;$1.bestscore=$1.score}});$1.pixs=$1.bestsym}var _T8=new Map([["ren",$0.renmatrix],["dotty",true],["pixs",$1.pixs],["pixx",$1.columns],["pixy",$1.rows],["height",$1.rows*2/72],["width",$1.columns*2/72],["opt",$1.options]]);$k[$j++]=_T8;if(!$1.dontdraw){$0.renmatrix()}};$0.ultracode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.eclevel="EC2";$1.parse=false;$1.parsefnc=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.fn1=-1;$1.fn3=-2;var _9=new Map([["parse",$1.parse],["parsefnc",$1.parsefnc],["FNC1",$1.fn1],["FNC3",$1.fn3]]);$1.fncvals=_9;$k[$j++]="msg";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _C=$k[--$j];$1[$k[--$j]]=_C;$1.msglen=$1.msg.length;$1.start=257;$1.scr=$a([]);$1.link1=0;$1.scp=$a([]);$k[$j++]=Infinity;$q($1.scr);$q($1.scp);$F($1.msg,function(){var _K=$k[--$j];$k[$j++]=_K;if(_K==$1.fn1){$j--;$k[$j++]=268}var _M=$k[--$j];$k[$j++]=_M;if(_M==$1.fn3){$j--;$k[$j++]=269}});$1.dcws=$a();$1.mcc=$1.dcws.length+3;$1.eclval=$g($1.eclevel,2)-48;if($1.eclval!=0){$k[$j++]="qcc";$k[$j++]=$g($a([0,1,2,4,6,8]),$1.eclval);$k[$j++]=~~($1.mcc/25);if($1.mcc%25!=0){var _Y=$k[--$j];$k[$j++]=$f(_Y+1)}var _Z=$k[--$j];var _a=$k[--$j];$1[$k[--$j]]=$f(_a*_Z+5)}else{$1.qcc=3}$1.acc=$1.qcc-3+78*$1.link1;$1.tcc=$1.mcc+$1.qcc;$1.metrics=$a([$a([2,4,34,5]),$a([3,33,82,13]),$a([4,82,158,23]),$a([5,134,282,30])]);for(var _l=0;_l<=3;_l+=1){$1.i=_l;$1.m=$g($1.metrics,$1.i);$1.rows=$g($1.m,0);$1.minc=$g($1.m,1);$1.maxc=$g($1.m,2);$1.mcol=$g($1.m,3);$1.okay=true;if($1.tcc<$1.minc||$1.tcc>$1.maxc){$1.okay=false}if($1.okay){break}}if(!$1.okay){$k[$j++]="bwipp.ultracodeNoValidSymbol";$k[$j++]="No valid symbol available";$0.raiseerror()}for(var _14=$1.mcol;_14<=61;_14+=1){$1.columns=_14;$k[$j++]=$1.columns;if($1.columns>=15){var _17=$k[--$j];$k[$j++]=$f(_17-1)}if($1.columns>=31){var _19=$k[--$j];$k[$j++]=$f(_19-1)}if($1.columns>=47){var _1B=$k[--$j];$k[$j++]=$f(_1B-1)}var _1F=$f($f($k[--$j]*$1.rows-3)-$1.tcc);$k[$j++]=_1F;if(_1F>=0){$1.pads=$k[--$j];break}$j--}$1.dcc=$f($1.columns-$1.mcol);$k[$j++]=Infinity;$k[$j++]=$1.start;$k[$j++]=$1.mcc;$k[$j++]=$1.acc;$q($1.scr);$q($1.dcws);for(var _1P=0,_1Q=$1.qcc;_1P<_1Q;_1P++){$k[$j++]=0}$k[$j++]=0;$1.rsseq=$a();$k[$j++]=Infinity;$k[$j++]=1;for(var _1S=0,_1T=282;_1S<_1T;_1S++){var _1U=$k[--$j];$k[$j++]=_1U;$k[$j++]=_1U*3%283}$1.rsalog=$a();$1.rslog=$a(283);for(var _1X=1;_1X<=282;_1X+=1){$p($1.rslog,$g($1.rsalog,_1X),_1X)}$1.rsprod=function(){var _1b=$k[--$j];var _1c=$k[--$j];$k[$j++]=_1c;$k[$j++]=_1b;if(_1b!=0&&_1c!=0){var _1f=$g($1.rslog,$k[--$j]);var _1k=$g($1.rsalog,$f(_1f+$g($1.rslog,$k[--$j]))%282);$k[$j++]=_1k}else{$j-=2;$k[$j++]=0}};$1.n=$1.mcc;$1.k=$1.qcc;$k[$j++]=Infinity;$k[$j++]=1;for(var _1o=0,_1p=$1.k;_1o<_1p;_1o++){$k[$j++]=0}$1.coeffs=$a();for(var _1t=1,_1s=$1.k;_1t<=_1s;_1t+=1){$1.i=_1t;$p($1.coeffs,$1.i,$g($1.coeffs,$1.i-1));for(var _20=$1.i-1;_20>=1;_20-=1){$1.j=_20;$k[$j++]=$1.coeffs;$k[$j++]=$1.j;$k[$j++]=$g($1.coeffs,$1.j-1);$k[$j++]=$g($1.coeffs,$1.j);$k[$j++]=$g($1.rsalog,$1.i);$1.rsprod();var _2C=$k[--$j];var _2D=$k[--$j];var _2E=$k[--$j];$p($k[--$j],_2E,$f(_2D+_2C)%283)}$k[$j++]=$1.coeffs;$k[$j++]=0;$k[$j++]=$g($1.coeffs,0);$k[$j++]=$g($1.rsalog,$1.i);$1.rsprod();var _2M=$k[--$j];var _2N=$k[--$j];$p($k[--$j],_2N,_2M)}$1.coeffs=$G($1.coeffs,0,$1.coeffs.length-1);for(var _2T=$1.coeffs.length-1;_2T>=0;_2T-=2){var _2U=$1.coeffs;$p(_2U,_2T,$f(283-$g(_2U,_2T)))}for(var _2Y=0,_2X=$1.n-1;_2Y<=_2X;_2Y+=1){$1.t=$f($g($1.rsseq,_2Y)+$g($1.rsseq,$1.n))%283;for(var _2g=0,_2f=$1.k-1;_2g<=_2f;_2g+=1){$1.j=_2g;$p($1.rsseq,$1.n+$1.j,$f($g($1.rsseq,$1.n+$1.j+1)+$f(283-$1.t*$g($1.coeffs,$1.k-$1.j-1)%283))%283)}}for(var _2x=$1.n,_2w=$1.n+$1.k;_2x<=_2w;_2x+=1){$p($1.rsseq,_2x,$f(283-$g($1.rsseq,_2x))%283)}$1.ecws=$G($1.rsseq,$1.n,$1.k);$1.dccu=$a([51363,51563,51653,53153,53163,53513,53563,53613,53653,56153,56163,56313,56353,56363,56513,56563,51316,51356,51536,51616,53156,53516,53536,53616,53636,53656,56136,56156,56316,56356,56516,56536]);$1.dccl=$a([61351,61361,61531,61561,61631,61651,63131,63151,63161,63531,63561,63631,65131,65161,65351,65631,31351,31361,31531,31561,31631,31651,35131,35151,35161,35361,35631,35651,36131,36151,36351,36531]);$1.tiles=$a([13135,13136,13153,13156,13163,13165,13513,13515,13516,13531,13535,13536,13561,13563,13565,13613,13615,13616,13631,13635,13636,13651,13653,13656,15135,15136,15153,15163,15165,15313,15315,15316,15351,15353,15356,15361,15363,15365,15613,15615,15616,15631,15635,15636,15651,15653,15656,16135,16136,16153,16156,16165,16313,16315,16316,16351,16353,16356,16361,16363,16365,16513,16515,16516,16531,16535,16536,16561,16563,16565,31315,31316,31351,31356,31361,31365,31513,31515,31516,31531,31535,31536,31561,31563,31565,31613,31615,31631,31635,31636,31651,31653,31656,35131,35135,35136,35151,35153,35156,35161,35163,35165,35315,35316,35351,35356,35361,35365,35613,35615,35616,35631,35635,35636,35651,35653,35656,36131,36135,36136,36151,36153,36156,36163,36165,36315,36316,36351,36356,36361,36365,36513,36515,36516,36531,36535,36536,36561,36563,36565,51313,51315,51316,51351,51353,51356,51361,51363,51365,51513,51516,51531,51536,51561,51563,51613,51615,51616,51631,51635,51636,51651,51653,51656,53131,53135,53136,53151,53153,53156,53161,53163,53165,53513,53516,53531,53536,53561,53563,53613,53615,53616,53631,53635,53636,53651,53653,53656,56131,56135,56136,56151,56153,56156,56161,56163,56165,56313,56315,56316,56351,56353,56356,56361,56363,56365,56513,56516,56531,56536,56561,56563,61313,61315,61316,61351,61353,61356,61361,61363,61365,61513,61515,61516,61531,61535,61536,61561,61563,61565,61615,61631,61635,61651,61653,63131,63135,63136,63151,63153,63156,63161,63163,63165,63513,63515,63516,63531,63535,63536,63561,63563,63565,63613,63615,63631,63635,63651,63653,65131,65135,65136,65151,65153,65156,65161,65163,65165,65313,65315,65316,65351,65353,65356,65361,65363,65365,65613,65615,65631,65635,65651,65653,56565,51515]);$1.rows=$f($1.rows*6+1);$1.columns=$1.columns+6;$k[$j++]=Infinity;for(var _3C=0,_3D=$1.rows*$1.columns;_3C<_3D;_3C++){$k[$j++]=-1}$1.pixs=$a();$1.qmv=function(){var _3G=$k[--$j];var _3H=$k[--$j];$k[$j++]=$f(_3H+_3G*$1.columns)};for(var _3K=0,_3J=$1.columns-1;_3K<=_3J;_3K+=1){$1.i=_3K;for(var _3N=0,_3M=$f($1.rows-1);_3N<=_3M;_3N+=6){$1.j=_3N;if($1.i>=5){$k[$j++]=$1.pixs;$k[$j++]=$1.i;$k[$j++]=$1.j;$1.qmv();var _3T=$k[--$j];$p($k[--$j],_3T,$1.i%2*9)}}$k[$j++]=$1.pixs;$k[$j++]=$1.i;$k[$j++]=0;$1.qmv();var _3X=$k[--$j];$p($k[--$j],_3X,9);$k[$j++]=$1.pixs;$k[$j++]=$1.i;$k[$j++]=$f($1.rows-1);$1.qmv();var _3c=$k[--$j];$p($k[--$j],_3c,9)}for(var _3g=1,_3f=$f($1.rows-2);_3g<=_3f;_3g+=1){$1.i=_3g;for(var _3j=3,_3i=$1.columns-1;_3j<=_3i;_3j+=16){$1.j=_3j;$k[$j++]=$1.pixs;$k[$j++]=$1.j;$k[$j++]=$1.i;$1.qmv();var _3o=$k[--$j];$p($k[--$j],_3o,(1-$1.i%2)*9)}$k[$j++]=$1.pixs;$k[$j++]=0;$k[$j++]=$1.i;$1.qmv();var _3s=$k[--$j];$p($k[--$j],_3s,9);$k[$j++]=$1.pixs;$k[$j++]=1;$k[$j++]=$1.i;$1.qmv();var _3x=$k[--$j];$p($k[--$j],_3x,(1-$1.i%2)*9);$k[$j++]=$1.pixs;$k[$j++]=2;$k[$j++]=$1.i;$1.qmv();var _41=$k[--$j];$p($k[--$j],_41,0);$k[$j++]=$1.pixs;$k[$j++]=3;$k[$j++]=$1.i;$1.qmv();var _45=$k[--$j];$p($k[--$j],_45,9);$k[$j++]=$1.pixs;$k[$j++]=4;$k[$j++]=$1.i;$1.qmv();var _49=$k[--$j];$p($k[--$j],_49,0);$k[$j++]=$1.pixs;$k[$j++]=$1.columns-1;$k[$j++]=$1.i;$1.qmv();var _4E=$k[--$j];$p($k[--$j],_4E,9)}$1.i=~~($1.rows/2)-5;$k[$j++]=Infinity;var _4L=$R($s(5),$g($1.dccu,$1.dcc),10);for(var _4M=0,_4N=_4L.length;_4M<_4N;_4M++){$k[$j++]=$g(_4L,_4M)-48}var _4T=$R($s(5),$g($1.dccl,$1.dcc),10);$k[$j++]=0;for(var _4U=0,_4V=_4T.length;_4U<_4V;_4U++){$k[$j++]=$g(_4T,_4U)-48}var _4X=$a();for(var _4Y=0,_4Z=_4X.length;_4Y<_4Z;_4Y++){$k[$j++]=$g(_4X,_4Y);$k[$j++]=$1.pixs;$k[$j++]=2;$k[$j++]=$1.i;$1.qmv();var _4d=$k[--$j];var _4e=$k[--$j];$p(_4e,_4d,$k[--$j]);$1.i=$1.i+1}$k[$j++]=Infinity;$k[$j++]=$1.start;$k[$j++]=$1.mcc;$q($1.ecws);$k[$j++]=$1.tcc;$k[$j++]=283;$k[$j++]=$1.acc;$q($1.scr);$q($1.dcws);for(var _4p=0,_4q=$1.pads;_4p<_4q;_4p++){$k[$j++]=284}$k[$j++]=$1.qcc;$1.tileseq=$a();$1.x=5;$1.y=1;var _4t=$1.tileseq;for(var _4u=0,_4v=_4t.length;_4u<_4v;_4u++){var _50=$R($s(5),$g($1.tiles,$g(_4t,_4u)),10);for(var _51=0,_52=_50.length;_51<_52;_51++){$k[$j++]=$g(_50,_51);$k[$j++]=$1.pixs;$k[$j++]=$1.x;$k[$j++]=$1.y;$1.qmv();var _57=$k[--$j];var _58=$k[--$j];$p(_58,_57,$f($k[--$j]-48));$1.y=$1.y+1}if($1.y!=$f($1.rows-1)){$1.y=$1.y+1}else{$1.x=$1.x+1;$1.y=1;$k[$j++]=$1.pixs;$k[$j++]=$1.x;$k[$j++]=$1.y;$1.qmv();var _5I=$k[--$j];if($g($k[--$j],_5I)!=-1){$1.x=$1.x+1}}}var _5R=new Map([[0,"00000000"],[9,"000000FF"],[1,"FF000000"],[3,"00FF0000"],[5,"0000FF00"],[6,"7F00FF00"]]);var _5T=new Map([["ren",$0.renmatrix],["pixs",$1.pixs],["pixx",$1.columns],["pixy",$1.rows],["height",$1.rows/72*2],["width",$1.columns/72*2],["colormap",_5R],["opt",$1.options]]);$k[$j++]=_5T;if(!$1.dontdraw){$0.renmatrix()}};$0.jabcode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.rows=-1;$1.columns=-1;$1.slave=false;$1.colors=16;$1.eclevel=6;$1.raw=false;$1.parse=false;$1.parsefnc=false;$1.mask=-1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.rows=~~$1.rows;$1.columns=~~$1.columns;$1.colors=~~$1.colors;$1.eclevel=~~$1.eclevel;$1.mask=~~$1.mask;$1.databpm=~~Math.round(Math.log($1.colors)/Math.log(2));var _B=$1.colors;$k[$j++]="metabpm";$k[$j++]=_B;if(_B>8){$j--;$k[$j++]=8}var _C=$k[--$j];$1[$k[--$j]]=~~Math.round(Math.log(_C)/Math.log(2));$1.fn1=-1;var _H=new Map([["parse",$1.parse],["parsefnc",$1.parsefnc],["FNC1",$1.fn1]]);$1.fncvals=_H;$k[$j++]="msg";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _K=$k[--$j];$1[$k[--$j]]=_K;$1.msglen=$1.msg.length;$1.addtobits=function(){var _N=$k[--$j];$P($1.bits,$1.j,_N);$1.j=_N.length+$1.j};$1.tofixedbits=function(){var _S=$Z($s(13),"0000000000000");var _T=$k[--$j];var _W=$R($s(13),$k[--$j],2);$P(_S,$f(_T-_W.length),_W);$k[$j++]=$G(_S,0,_T)};var _Z=$1.msglen<=15?4:17;$1.bits=$s(7+_Z+$1.msglen*8+12);$1.j=0;$k[$j++]=31;$k[$j++]=5;$1.tofixedbits();$1.addtobits();$k[$j++]="00";$1.addtobits();if($1.msglen<=15){$k[$j++]=$1.msglen;$k[$j++]=4;$1.tofixedbits();$1.addtobits()}else{$k[$j++]="0000";$1.addtobits();$k[$j++]=$1.msglen-16;$k[$j++]=13;$1.tofixedbits();$1.addtobits()}for(var _h=0,_g=$1.msglen-1;_h<=_g;_h+=1){$k[$j++]=$g($1.msg,_h);$k[$j++]=8;$1.tofixedbits();$1.addtobits()}$k[$j++]=28;$k[$j++]=5;$1.tofixedbits();$1.addtobits();$k[$j++]=31;$k[$j++]=5;$1.tofixedbits();$1.addtobits();$k[$j++]="11";$1.addtobits();$1.diffside=21;$1.sameshape=false;$1.sameecc=false;$1.hasslaves=false;$1.metrics=function(){$1.mc=$k[--$j];$1.mr=$k[--$j];var _m=$1.mc;var _n=$1.mr;var _o=$1.mc;var _p=$1.mr;var _q=$1.colors;var _r=64;if(64>_q){var _=_q;_q=_r;_r=_}var _t=$1.slave?7:17;$k[$j++]=_m*_n;$k[$j++]=((~~($f(_o-25)/16)+2)*(~~($f(_p-25)/16)+2)-4)*7;$k[$j++]=_r*2;$k[$j++]=_t*4;if(!$1.slave){var _x=$eq($1.mr,$1.mc)?0:1;$1.metass=_x;var _y=$1.mr;var _z=$1.mc;if($lt(_y,_z)){var _=_z;_z=_y;_y=_}$1.metavf=$g($a([0,1,2,2,3,3,3,3]),~~($f(_y-21)/16));$k[$j++]="metavlen";if($1.metass==0){$k[$j++]=$a([2,2,3,4])}else{$k[$j++]=$a([4,6,8,10])}var _17=$g($k[--$j],$1.metavf);$1[$k[--$j]]=_17;$1.metaelen=$f($1.metavf*2+10);$k[$j++]=$f($f(7+$1.metavlen)+$1.metaelen);if($1.hasslaves){var _1D=$k[--$j];$k[$j++]=$f(_1D+4)}var _1G=~~Math.ceil($k[--$j]*2/$1.metabpm);$1.nummetabits=$f(_1G*$1.metabpm+6);$k[$j++]=_1G+6}else{$k[$j++]=3;if(!$1.sameshape){var _1J=$k[--$j];$k[$j++]=$f(_1J+5)}if($1.hasslaves){var _1L=$k[--$j];$k[$j++]=$f(_1L+3)}if(!$1.sameecc){var _1N=$1.mr;var _1O=$1.mc;if($lt(_1N,_1O)){var _=_1O;_1O=_1N;_1N=_}var _1R=$k[--$j];$k[$j++]=$f(_1R+$g($a([10,12,14,14,16,16,16,16]),~~($f(_1N-21)/16)))}var _1U=~~Math.ceil($k[--$j]*2/$1.metabpm);$1.nummetabits=_1U*$1.metabpm;$k[$j++]=_1U}var _1W=$k[--$j];$1.nummetamodules=_1W;var _1X=$k[--$j];var _1Y=$k[--$j];var _1Z=$k[--$j];$1.numdatamodules=$f($k[--$j]-$f(_1Z+$f(_1Y+$f(_1X+_1W))));$1.numdatabits=$1.numdatamodules*$1.databpm};$1.coderate=$g($a([.67,.63,.57,.55,.5,.43,.34,.25,.2,.17,.14]),$1.eclevel);$1.grosslen=~~Math.ceil($1.bits.length/$1.coderate);$1.snapsize=function(){var _1j=~~Math.ceil($k[--$j])-18;$k[$j++]=_1j;if(_1j<0){$j--;$k[$j++]=0}var _1k=$k[--$j];$k[$j++]=~~(_1k/4)*4+21};if($1.rows==-1&&$1.columns==-1){$k[$j++]="size";$k[$j++]=Math.sqrt($1.grosslen);$1.snapsize();var _1o=$k[--$j];$1[$k[--$j]]=_1o;for(;;){$k[$j++]=$1.size;$k[$j++]=$1.size;$1.metrics();if($1.grosslen<=$1.numdatabits){break}$1.size=$f($1.size+4)}$1.rows=$1.size;$1.columns=$1.size}else{if($1.columns==-1&&$1.rows!=-1){$k[$j++]="columns";$k[$j++]=$1.grosslen/$1.rows;$1.snapsize();var _21=$k[--$j];$1[$k[--$j]]=_21;for(;;){$k[$j++]=$1.rows;$k[$j++]=$1.columns;$1.metrics();if($1.grosslen<=$1.numdatabits){break}$1.columns=$f($1.columns+4)}}if($1.rows==-1&&$1.columns!=-1){$k[$j++]="rows";$k[$j++]=$1.grosslen/$1.columns;$1.snapsize();var _2C=$k[--$j];$1[$k[--$j]]=_2C;for(;;){$k[$j++]=$1.rows;$k[$j++]=$1.columns;$1.metrics();if($1.grosslen<=$1.numdatabits){break}$1.rows=$f($1.rows+4)}}if($1.rows!=-1&&$1.columns!=-1){$k[$j++]=$1.rows;$k[$j++]=$1.columns;$1.metrics()}}$1.C=$1.numdatabits;$1.cols=$1.columns;if($1.rows>145||$1.cols>145){$k[$j++]="bwipp.jabcodeNoValidSymbol";$k[$j++]="No valid symbol available";$0.raiseerror()}$1.min=$1.C;for(var _2S=3;_2S<=8;_2S+=1){$1.i=_2S;for(var _2U=$1.i+1;_2U<=9;_2U+=1){$1.j=_2U;$1.dist=~~($1.C/$1.j)*$1.j-~~($1.C/$1.j)*$1.i-$1.bits.length;if($1.dist<$1.min&&$1.dist>=0){$1.datawc=$1.i;$1.datawr=$1.j;$1.min=$1.dist}}}$1.tmpbits=$s(~~($1.C/$1.datawr)*$1.datawr-~~($1.C/$1.datawr)*$1.datawc);$P($1.tmpbits,0,$1.bits);for(var _2u=$1.bits.length,_2t=$1.tmpbits.length-1;_2u<=_2t;_2u+=1){var _2w=$g($1.tmpbits,_2u-1);$k[$j++]=_2u;$k[$j++]=_2w;if(_2w%2==0){var _2x=$k[--$j];$k[$j++]=$f(_2x+1)}else{var _2y=$k[--$j];$k[$j++]=$f(_2y-1)}var _30=$k[--$j];$p($1.tmpbits,$k[--$j],_30)}$1.bits=$1.tmpbits;$1.m0=22609+1;$1.m1=62509-65536;$1.m2=19605;$1.m3=32557;$1.lcg64_temper=function(){$1.p00=$1.m0*$1.s0;$1.p01=$1.m0*$1.s1;$1.p02=$1.m0*$1.s2;$1.p03=$1.m0*$1.s3;$1.p10=$1.m1*$1.s0;$1.p11=$1.m1*$1.s1;$1.p12=$1.m1*$1.s2;$1.p13=$1.m1*$1.s3;$1.p20=$1.m2*$1.s0;$1.p21=$1.m2*$1.s1;$1.p22=$1.m2*$1.s2;$1.p23=$1.m2*$1.s3;$1.p30=$1.m3*$1.s0;$1.p31=$1.m3*$1.s1;$1.p32=$1.m3*$1.s2;$1.p33=$1.m3*$1.s3;$1.s3=$1.p33%65536+1;$1.s2=$1.p32%65536+~~($1.p33/65536)+$1.p23%65536;$1.s1=$1.p31%65536+~~($1.p32/65536)+($1.p22%65536+~~($1.p23/65536))+$1.p13%65536;$1.s0=$1.p30%65536+~~($1.p31/65536)+($1.p21%65536+~~($1.p22/65536))+($1.p12%65536+~~($1.p13/65536))+$1.p03%65536;$1.s3=$1.s3+65536;$1.s2=$1.s2+65535;$1.s1=$1.s1+65535;$1.s0=$1.s0+65535;$1.s2=~~($1.s3/65536)+$1.s2;$1.s3=$1.s3%65536;$1.s1=~~($1.s2/65536)+$1.s1;$1.s2=$1.s2%65536;$1.s0=~~($1.s1/65536)+$1.s0;$1.s1=$1.s1%65536;$1.s0=$1.s0%65536;var _45=(($1.s0-32768)*65536+$1.s1^2147483648)&4294967295;var _46=_45^_45>>>11;var _47=_46^_46<<7&-1658038656;var _48=(_47^_47<<15&-272236544)&4294967295;$k[$j++]=_48^_48>>>18};$1.createMatrixA=function(){$k[$j++]="nb_pcb";if($1.wr<4){$k[$j++]=~~($1.Pg_sub_block/2)}else{$k[$j++]=~~($1.Pg_sub_block/$1.wr)*$1.wc}var _4E=$k[--$j];$1[$k[--$j]]=_4E;$1.offset=~~Math.ceil($1.Pg_sub_block/32);$1.effwidth=$1.offset*32;$1.matrixA=$a($1.offset*$1.nb_pcb);for(var _4O=0,_4N=$1.offset*$1.nb_pcb-1;_4O<=_4N;_4O+=1){$p($1.matrixA,_4O,0)}$1.permutation=$a($1.Pg_sub_block);for(var _4U=0,_4T=$1.Pg_sub_block-1;_4U<=_4T;_4U+=1){$p($1.permutation,_4U,_4U)}for(var _4Z=0,_4Y=~~($1.Pg_sub_block/$1.wr)-1;_4Z<=_4Y;_4Z+=1){$1.i=_4Z;for(var _4c=0,_4b=$f($1.wr-1);_4c<=_4b;_4c+=1){$1.j=_4c;var _4d=$1.matrixA;var _4e=$1.i;var _4f=$1.effwidth;var _4g=$1.wr;var _4h=$1.j;var _4n=$f(31-$f($1.i*$f($1.effwidth+$1.wr)+$1.j)%32);$p(_4d,~~($f(_4e*$f(_4f+_4g)+_4h)/32),$g(_4d,~~($f(_4e*$f(_4f+_4g)+_4h)/32))|(_4n<0?1>>>-_4n:1<<_4n))}}$1.s0=0;$1.s1=0;$1.s2=11;$1.s3=64569;for(var _4q=1,_4p=$f($1.wc-1);_4q<=_4p;_4q+=1){$1.i=_4q;$1.off_index=~~($1.Pg_sub_block/$1.wr)*$1.i;for(var _4w=0,_4v=$1.Pg_sub_block-1;_4w<=_4v;_4w+=1){$1.j=_4w;$1.lcg64_temper();var _4x=$k[--$j];$k[$j++]=_4x;if(_4x<0){var _4y=$k[--$j];$k[$j++]=$f((_4y^2147483648)+2147483648)}$1.pos=~~($k[--$j]/4294967296*($1.Pg_sub_block-$1.j));for(var _55=0,_54=~~($1.Pg_sub_block/$1.wr)-1;_55<=_54;_55+=1){$1.k=_55;var _56=$1.matrixA;var _57=$1.off_index;var _58=$1.k;var _59=$1.offset;var _5A=$1.j;var _5I=$g($1.matrixA,~~($g($1.permutation,$1.pos)/32)+$1.k*$1.offset);var _5M=-$f(31-$g($1.permutation,$1.pos)%32);var _5O=31-$1.j%32;$p(_56,(_57+_58)*_59+~~(_5A/32),$g(_56,(_57+_58)*_59+~~(_5A/32))|(_5O<0?((_5M<0?_5I>>>-_5M:_5I<<_5M)&1)>>>-_5O:((_5M<0?_5I>>>-_5M:_5I<<_5M)&1)<<_5O))}var _5R=$1.permutation;var _5S=$1.Pg_sub_block;var _5T=$1.j;$p(_5R,_5S-1-_5T,$g($1.permutation,$1.pos));$p($1.permutation,$1.pos,$g(_5R,_5S-1-_5T))}}};$1.createMetadataMatrixA=function(){$1.nb_pcb=~~($1.Pg_sub_block/2);$1.offset=~~Math.ceil($1.Pg_sub_block/32);$1.matrixA=$a($1.offset*$1.nb_pcb);for(var _5g=0,_5f=$1.offset*$1.nb_pcb-1;_5g<=_5f;_5g+=1){$p($1.matrixA,_5g,0)}$1.permutation=$a($1.Pg_sub_block);for(var _5m=0,_5l=$1.Pg_sub_block-1;_5m<=_5l;_5m+=1){$p($1.permutation,_5m,_5m)}$1.s0=0;$1.s1=0;$1.s2=0;$1.s3=38545;$1.nb_once=~~(~~$f($1.nb_pcb/$1.wc*$1.Pg_sub_block+3)/$1.nb_pcb);for(var _5u=0,_5t=$1.nb_pcb-1;_5u<=_5t;_5u+=1){$1.i=_5u;for(var _5x=0,_5w=$1.nb_once-1;_5x<=_5w;_5x+=1){$1.j=_5x;$1.lcg64_temper();var _5y=$k[--$j];$k[$j++]=_5y;if(_5y<0){var _5z=$k[--$j];$k[$j++]=$f((_5z^2147483648)+2147483648)}$1.pos=~~($k[--$j]/4294967296*($1.Pg_sub_block-$1.j));var _63=$1.matrixA;var _64=$1.i;var _65=$1.offset;var _68=$g($1.permutation,$1.pos);var _6D=$f(31-$g($1.permutation,$1.pos)%32);$p(_63,_64*_65+~~(_68/32),$g(_63,_64*_65+~~(_68/32))|(_6D<0?1>>>-_6D:1<<_6D));var _6G=$1.permutation;var _6H=$1.Pg_sub_block;var _6I=$1.j;$p(_6G,_6H-1-_6I,$g($1.permutation,$1.pos));$p($1.permutation,$1.pos,$g(_6G,_6H-1-_6I))}}};$1.GaussJordan=function(){$k[$j++]="nb_pcb";if($1.wr<4){$k[$j++]=~~($1.Pg_sub_block/2)}else{$k[$j++]=~~($1.Pg_sub_block/$1.wr)*$1.wc}var _6S=$k[--$j];$1[$k[--$j]]=_6S;$1.offset=~~Math.ceil($1.Pg_sub_block/32);var _6V=$1.matrixA;$1.matrixH=$A($a(_6V.length),_6V);$k[$j++]=Infinity;for(var _6Z=0,_6a=$1.Pg_sub_block;_6Z<_6a;_6Z++){$k[$j++]=0}$1.column_arrangement=$a();$k[$j++]=Infinity;for(var _6d=0,_6e=$1.Pg_sub_block;_6d<_6e;_6d++){$k[$j++]=false}$1.processed_column=$a();$k[$j++]=Infinity;for(var _6h=0,_6i=$1.nb_pcb;_6h<_6i;_6h++){$k[$j++]=0}$1.zero_lines_nb=$a();$k[$j++]=Infinity;for(var _6l=0,_6m=$1.Pg_sub_block*2;_6l<_6m;_6l++){$k[$j++]=0}$1.swap_col=$a();$1.zero_lines=0;$1.loop0=0;for(var _6q=0,_6p=$1.nb_pcb-1;_6q<=_6p;_6q+=1){$1.i=_6q;$1.pivot_column=$1.Pg_sub_block+1;for(var _6u=0,_6t=$1.Pg_sub_block-1;_6u<=_6t;_6u+=1){$1.j=_6u;var _6z=$g($1.matrixH,~~(($1.offset*32*$1.i+$1.j)/32));var _73=-(31-($1.offset*32*$1.i+$1.j)%32);if(((_73<0?_6z>>>-_73:_6z<<_73)&1)==1){$1.pivot_column=$1.j;break}}if($1.pivot_column<$1.Pg_sub_block){$p($1.processed_column,$1.pivot_column,true);$p($1.column_arrangement,$1.pivot_column,$1.i);if($1.pivot_column>=$1.nb_pcb){$p($1.swap_col,$1.loop0*2,$1.pivot_column);$1.loop0=$1.loop0+1}$1.off_index=~~($1.pivot_column/32);$1.off_index1=$1.pivot_column%32;for(var _7M=0,_7L=$1.nb_pcb-1;_7M<=_7L;_7M+=1){$1.j=_7M;if($1.i!=$1.j){var _7T=$g($1.matrixH,$1.off_index+$1.j*$1.offset);var _7V=-(31-$1.off_index1);if(((_7V<0?_7T>>>-_7V:_7T<<_7V)&1)==1){for(var _7Y=0,_7X=$1.offset-1;_7Y<=_7X;_7Y+=1){$1.k=_7Y;var _7Z=$1.matrixH;var _7a=$1.offset;var _7b=$1.j;var _7c=$1.k;$p(_7Z,_7a*_7b+_7c,$xo($g(_7Z,_7a*_7b+_7c),$g($1.matrixH,$1.offset*$1.i+$1.k)))}}}}}else{$p($1.zero_lines_nb,$1.zero_lines,$1.i);$1.zero_lines=$1.zero_lines+1}}$1.matrix_rank=$1.nb_pcb-$1.zero_lines;$1.loop2=0;for(var _7s=$1.matrix_rank,_7r=$1.nb_pcb-1;_7s<=_7r;_7s+=1){$1.i=_7s;if($g($1.column_arrangement,$1.i)>0){for(var _7y=0,_7x=$1.nb_pcb-1;_7y<=_7x;_7y+=1){$1.j=_7y;if($nt($g($1.processed_column,$1.j))){$p($1.column_arrangement,$1.j,$g($1.column_arrangement,$1.i));$p($1.column_arrangement,$1.i,0);$p($1.processed_column,$1.j,true);$p($1.processed_column,$1.i,false);$p($1.swap_col,$1.loop0*2,$1.i);$p($1.swap_col,$1.loop0*2+1,$1.j);$p($1.column_arrangement,$1.i,$1.j);$1.loop0=$1.loop0+1;$1.loop2=$1.loop2+1;break}}}}$1.loop1=0;for(var _8Q=0,_8P=$1.nb_pcb-1;_8Q<=_8P;_8Q+=1){$1.kl=_8Q;if($nt($g($1.processed_column,$1.kl))&&$1.loop1<$1.loop0-$1.loop2){$p($1.column_arrangement,$1.kl,$g($1.column_arrangement,$g($1.swap_col,$1.loop1*2)));$p($1.processed_column,$1.kl,true);$p($1.swap_col,$1.loop1*2+1,$1.kl);$1.loop1=$1.loop1+1}}$1.loop1=0;for(var _8m=0,_8l=$1.nb_pcb-1;_8m<=_8l;_8m+=1){$1.kl=_8m;if($nt($g($1.processed_column,$1.kl))){$p($1.column_arrangement,$1.kl,$g($1.zero_lines_nb,$1.loop1));$1.loop1=$1.loop1+1}}for(var _8y=0,_8x=$1.nb_pcb-1;_8y<=_8x;_8y+=1){$1.i=_8y;for(var _91=0,_90=$1.offset-1;_91<=_90;_91+=1){$1.j=_91;$p($1.matrixA,$1.i*$1.offset+$1.j,$g($1.matrixH,$f($g($1.column_arrangement,$1.i)*$1.offset+$1.j)))}}$1.tmp=0;for(var _9F=0,_9E=$1.loop0-1;_9F<=_9E;_9F+=1){$1.i=_9F;for(var _9I=0,_9H=$1.nb_pcb-1;_9I<=_9H;_9I+=1){$1.j=_9I;var _9P=$g($1.matrixA,~~($g($1.swap_col,$1.i*2)/32)+$1.j*$1.offset);var _9T=-$f(31-$g($1.swap_col,$1.i*2)%32);$1.tmp=(-((_9T<0?_9P>>>-_9T:_9P<<_9T)&1)^$1.tmp)&1^$1.tmp;var _9W=$1.matrixA;var _9Z=$g($1.swap_col,$1.i*2);var _9a=$1.j;var _9b=$1.offset;var _9j=$g($1.matrixA,~~($g($1.swap_col,$1.i*2+1)/32)+$1.j*$1.offset);var _9n=-$f(31-$g($1.swap_col,$1.i*2+1)%32);var _9y=$f(31-$g($1.swap_col,$1.i*2)%32);$p(_9W,~~(_9Z/32)+_9a*_9b,$g(_9W,~~(_9Z/32)+_9a*_9b)^(-((_9n<0?_9j>>>-_9n:_9j<<_9n)&1)^$g($1.matrixA,~~($g($1.swap_col,$1.i*2)/32)+$1.j*$1.offset))&(_9y<0?1>>>-_9y:1<<_9y));var _9z=$1.matrixA;var _A2=$g($1.swap_col,$1.i*2+1);var _A3=$1.j;var _A4=$1.offset;var _AH=$f(31-$g($1.swap_col,$1.i*2+1)%32);$p(_9z,~~(_A2/32)+_A3*_A4,$g(_9z,~~(_A2/32)+_A3*_A4)^(-($1.tmp&1)^$g($1.matrixA,~~($g($1.swap_col,$1.i*2+1)/32)+$1.j*$1.offset))&(_AH<0?1>>>-_AH:1<<_AH))}}};$1.createGeneratorMatrix=function(){$1.pn=$1.Pg_sub_block-$1.matrix_rank;$1.offset=~~Math.ceil($1.pn/32);$1.effwidth=$1.offset*32;$1.offset_cap=~~Math.ceil($1.Pg_sub_block/32);$1.G=$a($1.offset*$1.Pg_sub_block);for(var _AT=0,_AS=$1.offset*$1.Pg_sub_block-1;_AT<=_AS;_AT+=1){$p($1.G,_AT,0)}for(var _AX=0,_AW=$1.pn-1;_AX<=_AW;_AX+=1){$1.i=_AX;var _AY=$1.G;var _AZ=$1.Pg_sub_block;var _Aa=$1.pn;var _Ab=$1.i;var _Ac=$1.offset;var _Ad=$1.i;var _Ag=31-$1.i%32;$p(_AY,(_AZ-_Aa+_Ab)*_Ac+~~(_Ad/32),$g(_AY,(_AZ-_Aa+_Ab)*_Ac+~~(_Ad/32))|(_Ag<0?1>>>-_Ag:1<<_Ag))}$1.matrix_index=$1.Pg_sub_block-$1.pn;$1.loop0=0;for(var _An=0,_Am=($1.Pg_sub_block-$1.pn)*$1.effwidth-1;_An<=_Am;_An+=1){$1.i=_An;if($1.matrix_index>=$1.Pg_sub_block){$1.loop0=$1.loop0+1;$1.matrix_index=$1.Pg_sub_block-$1.pn}if($1.i%$1.effwidth<$1.pn){var _Aw=$1.G;var _Ax=$1.i;var _B3=$g($1.matrixA,~~($1.matrix_index/32)+$1.offset_cap*$1.loop0);var _B5=-(31-$1.matrix_index%32);var _BA=31-$1.i%32;$p(_Aw,~~(_Ax/32),$g(_Aw,~~(_Ax/32))^(-((_B5<0?_B3>>>-_B5:_B3<<_B5)&1)^$g($1.G,~~($1.i/32)))&(_BA<0?1>>>-_BA:1<<_BA));$1.matrix_index=$1.matrix_index+1}}};$1.ldpc=function(){$1.wr=$k[--$j];$1.wc=$k[--$j];$k[$j++]=Infinity;var _BE=$k[--$j];var _BF=$k[--$j];$k[$j++]=_BE;$F(_BF,function(){var _BG=$k[--$j];$k[$j++]=$f(_BG-48)});$1.data=$a();$1.Pn=$1.data.length;if($1.wr!=-1){$1.Pg=~~(Math.ceil(Math.ceil($1.Pn*$1.wr/$f($1.wr-$1.wc))/$1.wr)*$1.wr);$1.nb_sub_blocks=~~($1.Pg/2700)+1;$1.Pg_sub_block=~~(~~($1.Pg/$1.nb_sub_blocks)/$1.wr)*$1.wr;$1.Pn_sub_block=~~($1.Pg_sub_block*$f($1.wr-$1.wc)/$1.wr);$1.nb_sub_blocks=~~($1.Pg/$1.Pg_sub_block);$k[$j++]="encoding_iterations";$k[$j++]=~~($1.Pg/$1.Pg_sub_block);if($1.Pn_sub_block*$1.nb_sub_blocks<$1.Pn){var _Bg=$k[--$j];$k[$j++]=$f(_Bg-1)}var _Bh=$k[--$j];$1[$k[--$j]]=_Bh;$1.createMatrixA()}else{$1.Pg=$1.Pn*2;$1.nb_sub_blocks=1;$1.Pg_sub_block=$1.Pg;$1.Pn_sub_block=$1.Pn;$1.encoding_iterations=1;$1.createMetadataMatrixA()}$1.GaussJordan();$1.createGeneratorMatrix();$1.ecc_encoded_data=$a($1.Pg);$1.offset=~~Math.ceil(($1.Pg_sub_block-$1.matrix_rank)/32);for(var _Bs=0,_Br=$1.encoding_iterations-1;_Bs<=_Br;_Bs+=1){$1.iter=_Bs;for(var _Bv=0,_Bu=$1.Pg_sub_block-1;_Bv<=_Bu;_Bv+=1){$1.i=_Bv;$1.temp=0;$1.loop0=0;$1.offset_index=$1.offset*$1.i;for(var _C3=$1.iter*$1.Pn_sub_block,_C2=($1.iter+1)*$1.Pn_sub_block-1;_C3<=_C2;_C3+=1){var _C9=$g($1.G,$1.offset_index+~~($1.loop0/32));var _CB=-(31-$1.loop0%32);$1.temp=$g($1.data,_C3)&((_CB<0?_C9>>>-_CB:_C9<<_CB)&1)^$1.temp;$1.loop0=$1.loop0+1}$p($1.ecc_encoded_data,$1.i+$1.iter*$1.Pg_sub_block,$1.temp)}}if($1.encoding_iterations!=$1.nb_sub_blocks){$1.start=$1.encoding_iterations*$1.Pn_sub_block;$1.last_index=$1.encoding_iterations*$1.Pg_sub_block;$1.Pg_sub_block=$1.Pg-$1.encoding_iterations*$1.Pg_sub_block;$1.Pn_sub_block=~~($1.Pg_sub_block*$f($1.wr-$1.wc)/$1.wr);$1.createMatrixA();$1.GaussJordan();$1.createGeneratorMatrix();$1.offset=~~Math.ceil(($1.Pg_sub_block-$1.matrix_rank)/32);for(var _Ca=0,_CZ=$1.Pg_sub_block-1;_Ca<=_CZ;_Ca+=1){$1.i=_Ca;$1.temp=0;$1.loop0=0;$1.offset_index=$1.offset*$1.i;for(var _Cg=$1.start,_Cf=$1.Pn-1;_Cg<=_Cf;_Cg+=1){var _Cm=$g($1.G,$1.offset_index+~~($1.loop0/32));var _Co=-(31-$1.loop0%32);$1.temp=$g($1.data,_Cg)&((_Co<0?_Cm>>>-_Co:_Cm<<_Co)&1)^$1.temp;$1.loop0=$1.loop0+1}$p($1.ecc_encoded_data,$1.i+$1.last_index,$1.temp)}}$1.out=$s($1.Pg);for(var _Cz=0,_Cy=$1.Pg-1;_Cz<=_Cy;_Cz+=1){$p($1.out,_Cz,$f($g($1.ecc_encoded_data,_Cz)+48))}$k[$j++]=$1.out};$k[$j++]="bits";$k[$j++]=$1.bits;$k[$j++]=$1.datawc;$k[$j++]=$1.datawr;$1.ldpc();var _D7=$k[--$j];$1[$k[--$j]]=_D7;$1.s0=0;$1.s1=0;$1.s2=3;$1.s3=30151;for(var _DA=$1.bits.length-1;_DA>=1;_DA-=1){$1.l=_DA;$1.lcg64_temper();var _DB=$k[--$j];$k[$j++]=_DB;if(_DB<0){var _DC=$k[--$j];$k[$j++]=$f((_DC^2147483648)+2147483648)}$1.r=~~($k[--$j]/4294967296*($1.l+1));$p($1.bits,$1.l,$g($1.bits,$1.r));$p($1.bits,$1.r,$g($1.bits,$1.l))}$1.tmpbits=$s($1.C);$P($1.tmpbits,0,$1.bits);$1.j=$1.bits.length;for(var _DW=0,_DX=~~($f($f($1.C-$1.j)+1)/2);_DW<_DX;_DW++){$p($1.tmpbits,$1.j,48);if($1.j+1<$1.C){$p($1.tmpbits,$1.j+1,49)}$1.j=$1.j+2}$1.bits=$1.tmpbits;if($1.colors==4){$1.bi=0;$1.gi=1;$1.mi=2;$1.yi=3;$1.ki=4;$1.wi=5;$k[$j++]=Infinity;$k[$j++]=$1.bi;$k[$j++]="0000FF";$k[$j++]=$1.gi;$k[$j++]="00FF00";$k[$j++]=$1.mi;$k[$j++]="FF00FF";$k[$j++]=$1.yi;$k[$j++]="FFFF00";$k[$j++]=$1.ki;$k[$j++]="000000";$k[$j++]=$1.wi;$k[$j++]="FFFFFF";$1.palette=$d();$1.metacolorindex=$a([$1.bi,$1.gi,$1.mi,$1.yi]);$1.palettelayout=$a([$1.bi,$1.gi,$1.mi,$1.yi])}else{var _E4=new Map([[8,$a([2,2,2])],[16,$a([4,2,2])],[32,$a([4,4,2])],[64,$a([4,4,4])],[128,$a([8,4,4])],[256,$a([8,8,4])]]);$1.rgbres=$g(_E4,$1.colors);$k[$j++]="rvals";$k[$j++]=$g($1.rgbres,0);$k[$j++]=Infinity;var _E9=$k[--$j];var _EB=$f($k[--$j]-1);$k[$j++]=_E9;$k[$j++]=_EB;for(var _ED=0,_EC=_EB;_ED<=_EC;_ED+=1){var _EE=$k[--$j];$k[$j++]=~~Math.round(_ED*(255/_EE));$k[$j++]=_EE}$j--;var _EF=$a();$1[$k[--$j]]=_EF;$k[$j++]="gvals";$k[$j++]=$g($1.rgbres,1);$k[$j++]=Infinity;var _EJ=$k[--$j];var _EL=$f($k[--$j]-1);$k[$j++]=_EJ;$k[$j++]=_EL;for(var _EN=0,_EM=_EL;_EN<=_EM;_EN+=1){var _EO=$k[--$j];$k[$j++]=~~Math.round(_EN*(255/_EO));$k[$j++]=_EO}$j--;var _EP=$a();$1[$k[--$j]]=_EP;$k[$j++]="bvals";$k[$j++]=$g($1.rgbres,2);$k[$j++]=Infinity;var _ET=$k[--$j];var _EV=$f($k[--$j]-1);$k[$j++]=_ET;$k[$j++]=_EV;for(var _EX=0,_EW=_EV;_EX<=_EW;_EX+=1){var _EY=$k[--$j];$k[$j++]=~~Math.round(_EX*(255/_EY));$k[$j++]=_EY}$j--;var _EZ=$a();$1[$k[--$j]]=_EZ;var _Eb=$1.colors;$1.palette=new Map;var _Ec=$1.colors;var _Ed=64;if(64>_Ec){var _=_Ec;_Ec=_Ed;_Ed=_}$1.palettelayout=$a(_Ed);$1.i=0;$1.j=8;$F($1.rvals,function(){$1.r=$k[--$j];$F($1.gvals,function(){$1.g=$k[--$j];$F($1.bvals,function(){$1.b=$k[--$j];var _Ep=$Z($s(6),"000000");var _Er=$R($s(6),$1.r<<16|$1.g<<8|$1.b,16);$P(_Ep,6-_Er.length,_Er);$k[$j++]=_Ep;$k[$j++]=false;if($eq(_Ep,"000000")){$1.ki=$1.i;$j--;$k[$j++]=true}var _Et=$k[--$j];var _Eu=$k[--$j];$k[$j++]=_Eu;$k[$j++]=_Et;if($eq(_Eu,"0000FF")){$1.bi=$1.i;$j--;$k[$j++]=true}var _Ew=$k[--$j];var _Ex=$k[--$j];$k[$j++]=_Ex;$k[$j++]=_Ew;if($eq(_Ex,"00FF00")){$1.gi=$1.i;$j--;$k[$j++]=true}var _Ez=$k[--$j];var _F0=$k[--$j];$k[$j++]=_F0;$k[$j++]=_Ez;if($eq(_F0,"00FFFF")){$1.ci=$1.i;$j--;$k[$j++]=true}var _F2=$k[--$j];var _F3=$k[--$j];$k[$j++]=_F3;$k[$j++]=_F2;if($eq(_F3,"FF0000")){$1.ri=$1.i;$j--;$k[$j++]=true}var _F5=$k[--$j];var _F6=$k[--$j];$k[$j++]=_F6;$k[$j++]=_F5;if($eq(_F6,"FF00FF")){$1.mi=$1.i;$j--;$k[$j++]=true}var _F8=$k[--$j];var _F9=$k[--$j];$k[$j++]=_F9;$k[$j++]=_F8;if($eq(_F9,"FFFF00")){$1.yi=$1.i;$j--;$k[$j++]=true}var _FB=$k[--$j];var _FC=$k[--$j];$k[$j++]=_FC;$k[$j++]=_FB;if($eq(_FC,"FFFFFF")){$1.wi=$1.i;$j--;$k[$j++]=true}if($nt($k[--$j])){if($1.colors<=64||($1.colors==128&&($1.r==0||$1.r==73||$1.r==182||$1.r==255)||$1.colors==256&&($1.r==0||$1.r==73||$1.r==182||$1.r==255)&&($1.g==0||$1.g==73||$1.g==182||$1.g==255))){$p($1.palettelayout,$1.j,$1.i);$1.j=$1.j+1}}$p($1.palette,$1.i,$k[--$j]);$1.i=$1.i+1})})});$P($1.palettelayout,0,$a([$1.ki,$1.bi,$1.gi,$1.ci,$1.ri,$1.mi,$1.yi,$1.wi]));$1.metacolorindex=$a([$1.ki,$1.bi,$1.gi,$1.ci,$1.ri,$1.mi,$1.yi,$1.wi])}$k[$j++]=Infinity;for(var _Fx=0,_Fy=$1.rows*$1.cols;_Fx<_Fy;_Fx++){$k[$j++]=-1}$1.pixs=$a();$1.jmv=function(){var _G1=$k[--$j];var _G2=$k[--$j];$k[$j++]=$f(_G2+_G1*$1.cols)};if(!$1.slave){$1.fpat=$a([$a([1,1,1,0,0]),$a([1,2,2,0,0]),$a([1,2,1,2,1]),$a([0,0,2,2,1]),$a([0,0,1,1,1])]);$1.fmap=$a([$a([-1,$1.bi,$1.yi]),$a([-1,$1.yi,$1.bi]),$a([-1,$1.gi,$1.mi]),$a([-1,$1.mi,$1.gi])])}else{$1.fpat=$a([$a([0,0,0,0,0]),$a([0,2,2,0,0]),$a([0,2,1,2,0]),$a([0,0,2,2,0]),$a([0,0,0,0,0])]);$1.fmap=$a([$a([-1,$1.ki,$1.wi]),$a([-1,$1.ki,$1.wi]),$a([-1,$1.ki,$1.wi]),$a([-1,$1.ki,$1.wi])])}for(var _Gg=0;_Gg<=4;_Gg+=1){$1.y=_Gg;for(var _Gh=0;_Gh<=4;_Gh+=1){$1.x=_Gh;$1.fpb=$g($g($1.fpat,$1.y),$1.x);$k[$j++]=$1.pixs;$k[$j++]=$1.x+1;$k[$j++]=$1.y+1;$1.jmv();var _Gu=$k[--$j];$p($k[--$j],_Gu,$g($g($1.fmap,0),$1.fpb));$k[$j++]=$1.pixs;$k[$j++]=$1.x+1;$k[$j++]=$f($f($1.rows-$1.y)-2);$1.jmv();var _H4=$k[--$j];$p($k[--$j],_H4,$g($g($1.fmap,1),$1.fpb));$k[$j++]=$1.pixs;$k[$j++]=$f($f($1.x+$1.cols)-6);$k[$j++]=$1.y+1;$1.jmv();var _HE=$k[--$j];$p($k[--$j],_HE,$g($g($1.fmap,2),$1.fpb));$k[$j++]=$1.pixs;$k[$j++]=$f($f($1.x+$1.cols)-6);$k[$j++]=$f($f($1.rows-$1.y)-2);$1.jmv();var _HP=$k[--$j];$p($k[--$j],_HP,$g($g($1.fmap,3),$1.fpb))}}$1.algnpat0=$a([$a([$1.ki,$1.ki,-1]),$a([$1.ki,$1.wi,$1.ki]),$a([-1,$1.ki,$1.ki])]);$1.algnpat1=$a([$a([-1,$1.ki,$1.ki]),$a([$1.ki,$1.wi,$1.ki]),$a([$1.ki,$1.ki,-1])]);$1.num=~~Math.round($1.cols/16)-1;$1.algnrpos=$a([3,17]);if($1.num>0){$k[$j++]=Infinity;for(var _Hs=0,_Hr=$1.num;_Hs<=_Hr;_Hs+=1){$k[$j++]=~~(_Hs*($f($1.cols-7)/$1.num))+3}$1.algnrpos=$a()}$1.num=~~Math.round($1.rows/16)-1;$1.algncpos=$a([3,17]);if($1.num>0){$k[$j++]=Infinity;for(var _I1=0,_I0=$1.num;_I1<=_I0;_I1+=1){$k[$j++]=~~(_I1*($f($1.rows-7)/$1.num))+3}$1.algncpos=$a()}$1.putalgnpat=function(){$1.pp=$k[--$j];$1.py=$k[--$j];$1.px=$k[--$j];for(var _I8=0;_I8<=2;_I8+=1){$1.pb=_I8;for(var _I9=0;_I9<=2;_I9+=1){$1.pa=_I9;$k[$j++]=$1.pixs;$k[$j++]=$f($1.px+$1.pa);$k[$j++]=$f($1.py+$1.pb);$1.jmv();var _IK=$k[--$j];$p($k[--$j],_IK,$g($g($1.pp,$1.pb),$1.pa))}}};for(var _IO=0,_IN=$1.algncpos.length-1;_IO<=_IN;_IO+=1){$1.j=_IO;$1.y=$g($1.algncpos,$1.j);for(var _IU=0,_IT=$1.algnrpos.length-1;_IU<=_IT;_IU+=1){$1.i=_IU;$1.x=$g($1.algnrpos,$1.i);$k[$j++]=$1.pixs;$k[$j++]=$1.x;$k[$j++]=$1.y;$1.jmv();var _Ib=$k[--$j];if($g($k[--$j],_Ib)==-1){$k[$j++]=$f($1.x-1);$k[$j++]=$f($1.y-1);if(($1.i+$1.j)%2==0){$k[$j++]=$1.algnpat0}else{$k[$j++]=$1.algnpat1}$1.putalgnpat()}}}if(!$1.slave){var _JT=$a([$a([6,1]),$a([6,2]),$a([6,3]),$a([6,4]),$a([6,5]),$a([6,6]),$a([5,6]),$a([4,6]),$a([3,6]),$a([2,6]),$a([1,6]),$a([7,1]),$a([7,2]),$a([7,3]),$a([7,4]),$a([7,5]),$a([7,6]),$a([7,7]),$a([6,7]),$a([5,7]),$a([4,7]),$a([3,7]),$a([2,7]),$a([1,7]),$a([8,1]),$a([8,2]),$a([8,3]),$a([8,4]),$a([8,5]),$a([8,6]),$a([8,7]),$a([8,8]),$a([7,8]),$a([6,8]),$a([5,8]),$a([4,8]),$a([3,8]),$a([2,8]),$a([1,8]),$a([9,1]),$a([9,2]),$a([9,3]),$a([9,4]),$a([9,5])]);for(var _JU=0,_JV=_JT.length;_JU<_JV;_JU++){$q($g(_JT,_JU));$1.y=$k[--$j];$1.x=$k[--$j];$k[$j++]=$a([$1.x,$1.y]);$k[$j++]=$a([-$1.x,$1.y]);$k[$j++]=$a([-$1.x,-$1.y]);$k[$j++]=$a([$1.x,-$1.y])}$r($a(176));$1.metadatamap=$k[--$j];$1.palettemap1=$a([$a([4,1]),$a([4,2]),$a([5,1]),$a([5,2]),$a([2,4]),$a([2,5]),$a([1,4]),$a([1,5]),$a([-2,1]),$a([-2,2]),$a([-1,1]),$a([-1,2]),$a([-4,4]),$a([-4,5]),$a([-5,4]),$a([-5,5])]);$1.palettemap2=$a([$a([-4,-5]),$a([-4,-4]),$a([-5,-5]),$a([-5,-4]),$a([-2,-2]),$a([-2,-1]),$a([-1,-2]),$a([-1,-1]),$a([2,-5]),$a([2,-4]),$a([1,-5]),$a([1,-4]),$a([4,-2]),$a([4,-1]),$a([5,-2]),$a([5,-1])])}else{$k[$j++]=Infinity;for(var _KL=1;_KL<=19;_KL+=1){$1.i=_KL;$k[$j++]=$a([0,$1.i]);$k[$j++]=$a([1,$1.i])}for(var _KQ=5;_KQ<=12;_KQ+=1){$1.i=_KQ;$k[$j++]=$a([2,$1.i]);$k[$j++]=$a([3,$1.i])}$1.metadatamap=$a();$k[$j++]=Infinity;for(var _KW=5;_KW<=12;_KW+=1){$k[$j++]=Infinity;$k[$j++]=4;$k[$j++]=_KW;var _KZ=$a();$k[$j++]=_KZ}for(var _Ka=12;_Ka>=5;_Ka-=1){$k[$j++]=Infinity;$k[$j++]=5;$k[$j++]=_Ka;var _Kd=$a();$k[$j++]=_Kd}for(var _Ke=5;_Ke<=12;_Ke+=1){$k[$j++]=Infinity;$k[$j++]=6;$k[$j++]=_Ke;var _Kh=$a();$k[$j++]=_Kh}for(var _Ki=12;_Ki>=5;_Ki-=1){$k[$j++]=Infinity;$k[$j++]=7;$k[$j++]=_Ki;var _Kl=$a();$k[$j++]=_Kl}$1.palettemap1=$a();$k[$j++]=Infinity;var _Kn=$1.palettemap1;for(var _Ko=0,_Kp=_Kn.length;_Ko<_Kp;_Ko++){$k[$j++]=Infinity;var _Ks=$g(_Kn,_Ko);$q(_Ks);var _Kt=$k[--$j];var _Ku=$k[--$j];$k[$j++]=-_Ku;$k[$j++]=-_Kt;var _Kv=$a();$k[$j++]=_Kv}$1.palettemap2=$a()}var _Kx=$1.metadatamap;for(var _Ky=0,_Kz=_Kx.length;_Ky<_Kz;_Ky++){var _L0=$g(_Kx,_Ky);var _L1=$g(_L0,0);$k[$j++]=_L0;$k[$j++]=_L1;if(_L1<0){var _L3=$k[--$j];var _L4=$k[--$j];$p(_L4,0,$f($f(_L3+$1.cols)-1));$k[$j++]=_L4}else{$j--}var _L5=$k[--$j];var _L6=$g(_L5,1);$k[$j++]=_L5;$k[$j++]=_L6;if(_L6<0){var _L8=$k[--$j];var _L9=$k[--$j];$p(_L9,1,$f($f(_L8+$1.rows)-1));$k[$j++]=_L9}else{$j--}$j--}var _LA=$1.palettemap1;for(var _LB=0,_LC=_LA.length;_LB<_LC;_LB++){var _LD=$g(_LA,_LB);var _LE=$g(_LD,0);$k[$j++]=_LD;$k[$j++]=_LE;if(_LE<0){var _LG=$k[--$j];var _LH=$k[--$j];$p(_LH,0,$f($f(_LG+$1.cols)-1));$k[$j++]=_LH}else{$j--}var _LI=$k[--$j];var _LJ=$g(_LI,1);$k[$j++]=_LI;$k[$j++]=_LJ;if(_LJ<0){var _LL=$k[--$j];var _LM=$k[--$j];$p(_LM,1,$f($f(_LL+$1.rows)-1));$k[$j++]=_LM}else{$j--}$j--}var _LN=$1.palettemap2;for(var _LO=0,_LP=_LN.length;_LO<_LP;_LO++){var _LQ=$g(_LN,_LO);var _LR=$g(_LQ,0);$k[$j++]=_LQ;$k[$j++]=_LR;if(_LR<0){var _LT=$k[--$j];var _LU=$k[--$j];$p(_LU,0,$f($f(_LT+$1.cols)-1));$k[$j++]=_LU}else{$j--}var _LV=$k[--$j];var _LW=$g(_LV,1);$k[$j++]=_LV;$k[$j++]=_LW;if(_LW<0){var _LY=$k[--$j];var _LZ=$k[--$j];$p(_LZ,1,$f($f(_LY+$1.rows)-1));$k[$j++]=_LZ}else{$j--}$j--}for(var _Lc=0,_Lb=$f($1.nummetamodules-1);_Lc<=_Lb;_Lc+=1){$k[$j++]=$1.pixs;$q($g($1.metadatamap,_Lc));$1.jmv();var _Lg=$k[--$j];$p($k[--$j],_Lg,0)}if(!$1.slave){var _Lj=$1.colors;var _Lk=16;if(16>_Lj){var _=_Lj;_Lj=_Lk;_Lk=_}for(var _Lm=0,_Ll=_Lk-1;_Lm<=_Ll;_Lm+=1){$1.i=_Lm;var _Lp=$g($1.palettelayout,$1.i);$k[$j++]=_Lp;$k[$j++]=$1.pixs;$k[$j++]=_Lp;$q($g($1.palettemap1,$1.i));$1.jmv();var _Lu=$k[--$j];var _Lv=$k[--$j];$p($k[--$j],_Lu,_Lv);var _Ly=$k[--$j];$k[$j++]=$1.pixs;$k[$j++]=_Ly;$q($g($1.palettemap2,$1.i));$1.jmv();var _M2=$k[--$j];var _M3=$k[--$j];$p($k[--$j],_M2,_M3)}$1.i=16}else{$1.i=0}$1.j=$1.nummetamodules;for(var _M9=$1.i,_M8=$1.palettelayout.length-1;_M9<=_M8;_M9+=2){$1.i=_M9;var _MC=$g($1.palettelayout,$1.i);$k[$j++]=_MC;$k[$j++]=$1.pixs;$k[$j++]=_MC;$q($g($1.metadatamap,$1.j));$1.jmv();var _MH=$k[--$j];var _MI=$k[--$j];$p($k[--$j],_MH,_MI);var _ML=$k[--$j];$k[$j++]=$1.pixs;$k[$j++]=_ML;$q($g($1.metadatamap,$f($1.j+2)));$1.jmv();var _MP=$k[--$j];var _MQ=$k[--$j];$p($k[--$j],_MP,_MQ);var _MU=$g($1.palettelayout,$1.i+1);$k[$j++]=_MU;$k[$j++]=$1.pixs;$k[$j++]=_MU;$q($g($1.metadatamap,$f($1.j+1)));$1.jmv();var _MZ=$k[--$j];var _Ma=$k[--$j];$p($k[--$j],_MZ,_Ma);var _Md=$k[--$j];$k[$j++]=$1.pixs;$k[$j++]=_Md;$q($g($1.metadatamap,$f($1.j+3)));$1.jmv();var _Mh=$k[--$j];var _Mi=$k[--$j];$p($k[--$j],_Mh,_Mi);$1.j=$f($1.j+4)}var _NA=$a([function(){var _Ml=$k[--$j];var _Mm=$k[--$j];$k[$j++]=$f(_Mm+_Ml)%$1.colors},function(){$j--;var _Mp=$k[--$j];$k[$j++]=_Mp%$1.colors},function(){var _Mq=$k[--$j];var _Mr=$k[--$j];$k[$j++]=_Mq;$k[$j++]=_Mr;$j--;var _Mt=$k[--$j];$k[$j++]=_Mt%$1.colors},function(){var _Mu=$k[--$j];var _Mv=$k[--$j];$k[$j++]=(~~(_Mu/3)+~~(_Mv/2))%$1.colors},function(){var _Mx=$k[--$j];var _My=$k[--$j];$k[$j++]=(~~(_Mx/2)+~~(_My/3))%$1.colors},function(){var _N0=$k[--$j];var _N2=$f($k[--$j]+_N0);$k[$j++]=(~~(_N2/2)+~~(_N2/3))%$1.colors},function(){var _N4=$k[--$j];var _N5=$k[--$j];$k[$j++]=$f(_N4*(_N5*_N5)%7+$f(_N4+_N5*_N5)*2%19)%$1.colors},function(){var _N7=$k[--$j];var _N8=$k[--$j];$k[$j++]=$f(_N8*(_N7*_N7)%5+$f(_N7*_N7+_N8*2)%13)%$1.colors}]);$1.maskfuncs=_NA;if($1.mask!=-1){$1.maskfuncs=$a([$g($1.maskfuncs,$1.mask)]);$1.bestmaskval=$1.mask}$1.masks=$a($1.maskfuncs.length);for(var _NL=0,_NK=$1.masks.length-1;_NL<=_NK;_NL+=1){$1.m=_NL;$1.mask=$a($1.rows*$1.cols);for(var _NR=0,_NQ=$f($1.rows-1);_NR<=_NQ;_NR+=1){$1.j=_NR;for(var _NU=0,_NT=$f($1.cols-1);_NU<=_NT;_NU+=1){$1.i=_NU;$k[$j++]=$1.pixs;$k[$j++]=$1.i;$k[$j++]=$1.j;$1.jmv();var _NY=$k[--$j];if($g($k[--$j],_NY)==-1){$k[$j++]=$1.i;$k[$j++]=$1.j;if($g($1.maskfuncs,$1.m)()===true){break}}else{$k[$j++]=0}$k[$j++]=$1.mask;$k[$j++]=$1.i;$k[$j++]=$1.j;$1.jmv();var _Nj=$k[--$j];var _Nk=$k[--$j];$p(_Nk,_Nj,$k[--$j])}}$p($1.masks,$1.m,$1.mask)}$1.posx=0;$1.posy=0;$1.i=0;for(;;){if($1.posx==$1.cols){break}$k[$j++]=$1.pixs;$k[$j++]=$1.posx;$k[$j++]=$1.posy;$1.jmv();var _Nu=$k[--$j];if($g($k[--$j],_Nu)==-1){var _O0=$G($1.bits,$1.i,$1.databpm);$k[$j++]=0;for(var _O1=0,_O2=_O0.length;_O1<_O2;_O1++){var _O4=$k[--$j];$k[$j++]=$f(_O4+$f($g(_O0,_O1)-48))*2}var _O5=$k[--$j];$k[$j++]=~~(_O5/2);$k[$j++]=$1.pixs;$k[$j++]=$1.posx;$k[$j++]=$1.posy;$1.jmv();var _O9=$k[--$j];var _OA=$k[--$j];$p(_OA,_O9,$k[--$j]);$1.i=$1.i+$1.databpm}$1.posy=$1.posy+1;if($1.posy==$1.rows){$1.posy=0;$1.posx=$1.posx+1}}$1.evalrle=function(){$1.scrle=$k[--$j];$1.scr1=0;$1.scr3=0;for(var _OL=0,_OK=$1.scrle.length-2;_OL<=_OK;_OL+=2){$1.j=_OL;if($g($1.scrle,$1.j+1)!=-1){var _OR=$g($1.scrle,$1.j);$k[$j++]=_OR;if(_OR>=5){$1.scr1=$f($f($k[--$j]-2)+$1.scr1)}else{$j--}if($1.j>=4&&$1.j<=$1.scrle.length-5){var _OZ=$G($1.scrle,$1.j-4,10);$k[$j++]=_OZ;for(var _Oa=0,_Ob=_OZ.length;_Oa<_Ob;_Oa++){$k[$j++]=$g(_OZ,_Oa)==1}$j--;for(var _Od=0,_Oe=4;_Od<_Oe;_Od++){var _Of=$k[--$j];var _Og=$k[--$j];$k[$j++]=_Of;$k[$j++]=_Og;$j--;var _Oh=$k[--$j];var _Oi=$k[--$j];$k[$j++]=$an(_Oi,_Oh)}if($k[--$j]){$k[$j++]=Infinity;var _Ok=$k[--$j];var _Ol=$k[--$j];$k[$j++]=_Ok;$q(_Ol);var _Om=$k[--$j];var _On=$k[--$j];var _Oo=$k[--$j];var _Op=$k[--$j];var _Oq=$k[--$j];var _Or=$k[--$j];var _Os=$k[--$j];var _Ot=$k[--$j];var _Ou=$k[--$j];$k[$j++]=_Ou;$k[$j++]=_Ot;$k[$j++]=_Os;$k[$j++]=_Or;$k[$j++]=_Oq;$k[$j++]=_Op;$k[$j++]=_Oo;$k[$j++]=_On;$k[$j++]=_Om;if($eq(_Ou,_Oq)&&$eq(_Ou,_Om)&&$eq(_Os,_Oo)){var _Ov=$k[--$j];var _Ow=$k[--$j];var _Ox=$k[--$j];$1.c4=_Ox;$1.c5=_Ov;$k[$j++]=_Ox;$k[$j++]=_Ow;if($1.c4==$1.bi&&$1.c5==$1.yi||($1.c4==$1.yi&&$1.c5==$1.bi||($1.c4==$1.gi&&$1.c5==$1.mi||$1.c4==$1.mi&&$1.c5==$1.gi))){$1.scr3=$1.scr3+100}}$l()}else{$j--}}}}$k[$j++]=$1.scr1;$k[$j++]=$1.scr3};$1.evalmask=function(){$1.sym=$k[--$j];$1.n1=0;$1.n2=0;$1.n3=0;var _PI=$1.rows;var _PJ=$1.cols;if(_PI<_PJ){var _=_PJ;_PJ=_PI;_PI=_}$1.rle=$a($f(_PI*2+2));$1.lastpairs=$a($1.cols);$1.thispairs=$a($1.cols);for(var _PR=0,_PQ=$f($1.cols-1);_PR<=_PQ;_PR+=1){$1.i=_PR;$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=-1;for(var _PX=$1.i,_PY=$1.cols,_PW=$f($1.rows*$1.cols-1);_PY<0?_PX>=_PW:_PX<=_PW;_PX+=_PY){var _Pa=$g($1.sym,_PX);var _Pb=$k[--$j];$k[$j++]=_Pb;$k[$j++]=_Pa;if($eq(_Pb,_Pa)){$j--;var _Pc=$k[--$j];var _Pd=$k[--$j];$k[$j++]=$f(_Pd+1);$k[$j++]=_Pc}else{var _Pe=$k[--$j];$k[$j++]=1;$k[$j++]=_Pe}}var _Pg=$m()+2;$r($G($1.rle,0,_Pg-2));$1.evalrle();$1.n3=$f($k[--$j]+$1.n3);$1.n1=$f($k[--$j]+$1.n1);$j--}for(var _Po=0,_Pn=$f($1.rows-1);_Po<=_Pn;_Po+=1){$1.i=_Po;$1.symrow=$G($1.sym,$1.i*$1.cols,$1.cols);$k[$j++]=Infinity;var _Pu=$1.symrow;$k[$j++]=0;$k[$j++]=-1;for(var _Pv=0,_Pw=_Pu.length;_Pv<_Pw;_Pv++){var _Px=$g(_Pu,_Pv);var _Py=$k[--$j];$k[$j++]=_Py;$k[$j++]=_Px;if($eq(_Py,_Px)){$j--;var _Pz=$k[--$j];var _Q0=$k[--$j];$k[$j++]=$f(_Q0+1);$k[$j++]=_Pz}else{var _Q1=$k[--$j];$k[$j++]=1;$k[$j++]=_Q1}}var _Q3=$m()+2;$r($G($1.rle,0,_Q3-2));$1.evalrle();$1.n3=$f($k[--$j]+$1.n3);$1.n1=$f($k[--$j]+$1.n1);$j--;var _Q9=$1.thispairs;$1.thispairs=$1.lastpairs;$1.lastpairs=_Q9;var _QB=$1.symrow;$k[$j++]=-1;for(var _QC=0,_QD=_QB.length;_QC<_QD;_QC++){var _QE=$g(_QB,_QC);var _QF=$k[--$j];$k[$j++]=_QE;$k[$j++]=_QF;if($ne(_QE,_QF)){$j--;var _QG=$k[--$j];$k[$j++]=-1;$k[$j++]=_QG}}$j--;$r($1.thispairs);$j--;if($1.i>0){$k[$j++]=Infinity;$q($1.lastpairs);$q($1.thispairs);$k[$j++]=$1.n2;for(var _QN=0,_QO=$1.cols;_QN<_QO;_QN++){var _QP=$k[--$j];var _QQ=$k[--$j];$k[$j++]=_QP;$k[$j++]=_QQ;if(_QQ!=-1){var _QS=$k[$j-1-$f($1.cols+1)];if($eq($k[--$j],_QS)){var _QU=$k[--$j];$k[$j++]=$f(_QU+3)}}else{$j--}}$1.n2=$k[--$j];$l()}}$k[$j++]=$f($f($1.n1+$1.n2)+$1.n3)};$1.bestscore=999999999;for(var _Qb=0,_Qa=$1.masks.length-1;_Qb<=_Qa;_Qb+=1){$1.m=_Qb;$1.masksym=$a($1.rows*$1.cols);for(var _Qi=0,_Qh=$f($1.rows*$1.cols-1);_Qi<=_Qh;_Qi+=1){$1.i=_Qi;$p($1.masksym,$1.i,$xo($g($1.pixs,$1.i),$g($g($1.masks,$1.m),$1.i)))}if($1.masks.length!=1){$k[$j++]=$1.masksym;$1.evalmask();$1.score=$k[--$j];if($1.score<$1.bestscore){$1.bestsym=$1.masksym;$1.bestmaskval=$1.m;$1.bestscore=$1.score}}else{$1.bestsym=$1.masksym}}$1.pixs=$1.bestsym;$1.metamask=$1.bestmaskval;$1.addtometapart=function(){var _R4=$k[--$j];$P($1.metapart,$1.p,_R4);$1.p=_R4.length+$1.p};$1.addtometabits=function(){var _R8=$k[--$j];$P($1.metabits,$1.q,_R8);$1.q=_R8.length+$1.q};$1.metapart=$s(40);$1.metabits=$s($1.nummetabits);$1.p=0;$1.q=0;if(!$1.slave){$k[$j++]=~~Math.round(Math.log($1.colors)/Math.log(2))-1;$k[$j++]=3;$1.tofixedbits();$1.addtometapart();$k[$j++]=$G($1.metapart,0,$1.p);$k[$j++]=2;$k[$j++]=-1;$1.ldpc();$1.addtometabits();$1.p=0;$k[$j++]=$1.metass;$k[$j++]=1;$1.tofixedbits();$1.addtometapart();$k[$j++]=$1.metavf;$k[$j++]=2;$1.tofixedbits();$1.addtometapart();$k[$j++]=$1.metamask;$k[$j++]=3;$1.tofixedbits();$1.addtometapart();if($1.hasslaves){$k[$j++]="1"}else{$k[$j++]="0"}$1.addtometapart();$k[$j++]=$G($1.metapart,0,$1.p);$k[$j++]=2;$k[$j++]=-1;$1.ldpc();$1.addtometabits();$1.p=0;if($1.metass==0){$k[$j++]=$f($f(~~($f($1.cols-17)/4)-$g($a([0,4,8,16]),$1.metavf))-1);$k[$j++]=$1.metavlen;$1.tofixedbits();$1.addtometapart()}else{$k[$j++]=~~($f($1.cols-17)/4)-1;$k[$j++]=~~($1.metavlen/2);$1.tofixedbits();$1.addtometapart();$k[$j++]=~~($f($1.rows-17)/4)-1;$k[$j++]=~~($1.metavlen/2);$1.tofixedbits();$1.addtometapart()}$k[$j++]=$1.datawc-3;$k[$j++]=~~($1.metaelen/2);$1.tofixedbits();$1.addtometapart();$k[$j++]=$1.datawr-4;$k[$j++]=~~($1.metaelen/2);$1.tofixedbits();$1.addtometapart();if($1.hasslaves){$k[$j++]=0;$k[$j++]=4;$1.tofixedbits();$1.addtometapart()}$k[$j++]=$G($1.metapart,0,$1.p);$k[$j++]=2;$k[$j++]=-1;$1.ldpc();$1.addtometabits();$1.p=0}else{var _Rk=$1.sameshape?0:1;$k[$j++]=_Rk;$k[$j++]=1;$1.tofixedbits();$1.addtometapart();var _Rm=$1.sameecc?0:1;$k[$j++]=_Rm;$k[$j++]=1;$1.tofixedbits();$1.addtometapart();var _Ro=$1.hasslaves?1:0;$k[$j++]=_Ro;$k[$j++]=1;$1.tofixedbits();$1.addtometapart();$k[$j++]=$G($1.metapart,0,$1.p);$k[$j++]=2;$k[$j++]=-1;$1.ldpc();$1.addtometabits();$1.p=0;if(!$1.sameshape){$k[$j++]=~~(($1.diffside-17)/4)-1;$k[$j++]=5;$1.tofixedbits();$1.addtometapart()}if($1.hasslaves){$k[$j++]=0;$k[$j++]=3;$1.tofixedbits();$1.addtometapart()}$k[$j++]=$G($1.metapart,0,$1.p);$k[$j++]=2;$k[$j++]=-1;$1.ldpc();$1.addtometabits();$1.p=0;if(!$1.sameecc){$k[$j++]=$1.datawc-3;$k[$j++]=~~($1.metaelen/2);$1.tofixedbits();$1.addtometapart();$k[$j++]=$1.datawr-4;$k[$j++]=~~($1.metaelen/2);$1.tofixedbits();$1.addtometapart()}$k[$j++]=$G($1.metapart,0,$1.p);$k[$j++]=2;$k[$j++]=-1;$1.ldpc();$1.addtometabits();$1.p=0}for(var _S9=$1.q,_S8=$f($1.nummetabits-1);_S9<=_S8;_S9+=1){$p($1.metabits,_S9,48)}$1.i=0;$1.j=0;if(!$1.slave){var _SE=$G($1.metabits,$1.i,6);for(var _SF=0,_SG=_SE.length;_SF<_SG;_SF++){$k[$j++]=$g(_SE,_SF);if($1.colors==4){$k[$j++]=$a([$1.bi,$1.yi])}else{$k[$j++]=$a([$1.ki,$1.wi])}var _SP=$k[--$j];var _SR=$g(_SP,$f($k[--$j]-48));$k[$j++]=_SR;$k[$j++]=$1.pixs;$q($g($1.metadatamap,$1.j));$1.jmv();var _SW=$k[--$j];var _SX=$k[--$j];$p(_SX,_SW,$k[--$j]);$1.j=$1.j+1}$1.i=$1.i+6}for(var _Se=0,_Sf=~~($f($1.nummetabits-$1.i)/$1.metabpm);_Se<_Sf;_Se++){var _Sj=$G($1.metabits,$1.i,$1.metabpm);$k[$j++]=0;for(var _Sk=0,_Sl=_Sj.length;_Sk<_Sl;_Sk++){var _Sn=$k[--$j];$k[$j++]=$f(_Sn+$f($g(_Sj,_Sk)-48))*2}var _Sq=$g($1.metacolorindex,~~($k[--$j]/2));$k[$j++]=_Sq;$k[$j++]=$1.pixs;$q($g($1.metadatamap,$1.j));$1.jmv();var _Sv=$k[--$j];var _Sw=$k[--$j];$p(_Sw,_Sv,$k[--$j]);$1.i=$f($1.i+$1.metabpm);$1.j=$1.j+1}var _T8=new Map([["ren",$0.renmatrix],["pixs",$1.pixs],["pixx",$1.cols],["pixy",$1.rows],["colormap",$1.palette],["height",$1.rows*2/72],["width",$1.cols*2/72],["opt",$1.options]]);$k[$j++]=_T8;if(!$1.dontdraw){$0.renmatrix()}};$0["gs1-cc"]=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.parse=false;$1.dontlint=false;$1.dontdraw=false;$1.ccversion="a";$1.cccolumns=-1;$1.lintype="";$1.linwidth=-1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.cccolumns=~~$1.cccolumns;$1.linwidth=~~$1.linwidth;if($1.cccolumns==-1){$k[$j++]=Infinity;$k[$j++]="ean13";$k[$j++]=4;$k[$j++]="upca";$k[$j++]=4;$k[$j++]="ean8";$k[$j++]=3;$k[$j++]="upce";$k[$j++]=2;$k[$j++]="gs1-128";if($ne($1.ccversion,"c")){$k[$j++]=4}else{$k[$j++]=~~(($1.linwidth-52)/17)}$k[$j++]="databaromni";$k[$j++]=4;$k[$j++]="databarstacked";$k[$j++]=2;$k[$j++]="databarstackedomni";$k[$j++]=2;$k[$j++]="databartruncated";$k[$j++]=4;$k[$j++]="databarlimited";$k[$j++]=3;$k[$j++]="databarexpanded";$k[$j++]=4;$k[$j++]="databarexpandedstacked";$k[$j++]=4;$1.cccolumns=$g($d(),$1.lintype)}$1.expand=function(){var _E=new Map([["parse",$1.parse],["parseonly",true],["parsefnc",false]]);$1.fncvals=_E;$k[$j++]=$1.fncvals;$0.parseinput()};$1.ais=$a([]);$1.vals=$a([]);var _I=$1.barcode;$k[$j++]=$G(_I,1,_I.length-1);for(;;){var _K=$k[--$j];$k[$j++]=_K;if($eq(_K,"")){break}$x($k[--$j],")");$j--;var _M=$k[--$j];var _N=$k[--$j];$k[$j++]=_M;$k[$j++]=_N;$j--;var _O=$k[--$j];var _P=$k[--$j];$k[$j++]=_O;$x(_P,"(");if($k[--$j]){var _R=$k[--$j];var _S=$k[--$j];$k[$j++]=_R;$k[$j++]=_S;$j--;var _T=$k[--$j];var _U=$k[--$j];var _V=$k[--$j];$k[$j++]=_U;$k[$j++]=_V;$k[$j++]=_T}else{var _W=$k[--$j];var _X=$k[--$j];$k[$j++]="";$k[$j++]=_X;$k[$j++]=_W}$k[$j++]=Infinity;$q($1.ais);var _a=$k[$j-1-($m()+2)];$k[$j++]=_a;$1.ais=$a();$k[$j++]=Infinity;$q($1.vals);var _e=$k[$j-1-($m()+1)];$k[$j++]=_e;$1.expand();$1.vals=$a();$j-=2}$j--;if(!$1.dontlint){$k[$j++]=$1.ais;$k[$j++]=$1.vals;$0.gs1lint();$j--}$1.isupper=function(){var _j=$k[--$j];$k[$j++]=_j>=65&&_j<=90};$1.isnum0=function(){var _k=$k[--$j];$k[$j++]=_k>=48&&_k<=57};$1.isnum1=function(){var _l=$k[--$j];$k[$j++]=_l>=49&&_l<=57};for(;;){if($1.ais.length>=1){if($eq($g($1.ais,0),"10")||$eq($g($1.ais,0),"11")||$eq($g($1.ais,0),"17")){$k[$j++]=-1;$k[$j++]="10";break}}if($1.ais.length>=1){if($eq($g($1.ais,0),"90")){$1.v=$g($1.vals,0);if($1.v.length>=1){$k[$j++]=$g($1.v,0);$1.isupper();if($k[--$j]){$k[$j++]=0;$k[$j++]="11";break}}if($1.v.length>=2){$k[$j++]=$g($1.v,0);$1.isnum1();$k[$j++]=$g($1.v,1);$1.isupper();var _17=$k[--$j];var _18=$k[--$j];if(_18&&_17){$k[$j++]=1;$k[$j++]="11";break}}if($1.v.length>=3){$k[$j++]=$g($1.v,0);$1.isnum1();$k[$j++]=$g($1.v,1);$1.isnum0();var _1E=$k[--$j];var _1F=$k[--$j];$k[$j++]=$an(_1F,_1E);$k[$j++]=$g($1.v,2);$1.isupper();var _1I=$k[--$j];var _1J=$k[--$j];if(_1J&&_1I){$k[$j++]=2;$k[$j++]="11";break}}if($1.v.length>=4){$k[$j++]=$g($1.v,0);$1.isnum1();$k[$j++]=$g($1.v,1);$1.isnum0();var _1P=$k[--$j];var _1Q=$k[--$j];$k[$j++]=$an(_1Q,_1P);$k[$j++]=$g($1.v,2);$1.isnum0();var _1T=$k[--$j];var _1U=$k[--$j];$k[$j++]=$an(_1U,_1T);$k[$j++]=$g($1.v,3);$1.isupper();var _1X=$k[--$j];var _1Y=$k[--$j];if(_1Y&&_1X){$k[$j++]=3;$k[$j++]="11";break}}}}$k[$j++]=-1;$k[$j++]="0";break}$1.method=$k[--$j];$1.npre=$k[--$j];$1.fnc1=-1;$1.lnumeric=-2;$1.lalphanumeric=-3;$1.liso646=-4;$1.tobin=function(){var _1c=$s($k[--$j]);$k[$j++]=_1c;for(var _1e=0,_1d=_1c.length-1;_1e<=_1d;_1e+=1){var _1f=$k[--$j];$p(_1f,_1e,48);$k[$j++]=_1f}var _1g=$k[--$j];var _1j=$R($s(_1g.length),$k[--$j],2);$P(_1g,_1g.length-_1j.length,_1j);$k[$j++]=_1g};$k[$j++]=Infinity;for(var _1k=65;_1k<=90;_1k+=1){$k[$j++]=_1k;$k[$j++]=_1k-65;$k[$j++]=5;$1.tobin()}for(var _1l=48;_1l<=57;_1l+=1){$k[$j++]=_1l;$k[$j++]=_1l+4;$k[$j++]=6;$1.tobin()}$k[$j++]=$1.fnc1;$k[$j++]="11111";$1.alpha=$d();$k[$j++]=Infinity;for(var _1o=0;_1o<=119;_1o+=1){var _1q=$Z($s(2),"00");var _1s=$R($s(2),_1o,11);$P(_1q,2-_1s.length,_1s);$k[$j++]=_1o;$k[$j++]=_1q;if($g(_1q,0)==65){var _1u=$k[--$j];$p(_1u,0,94);$k[$j++]=_1u}var _1v=$k[--$j];$k[$j++]=_1v;if($g(_1v,1)==65){var _1x=$k[--$j];$p(_1x,1,94);$k[$j++]=_1x}var _1y=$k[--$j];var _21=$Z($s(7),"0000000");var _23=$R($s(7),$f($k[--$j]+8),2);$P(_21,7-_23.length,_23);$k[$j++]=_1y;$k[$j++]=_21}$k[$j++]=$1.lalphanumeric;$k[$j++]="0000";$1.numeric=$d();$k[$j++]=Infinity;for(var _26=48;_26<=57;_26+=1){$k[$j++]=_26;$k[$j++]=_26-43;$k[$j++]=5;$1.tobin()}$k[$j++]=$1.fnc1;$k[$j++]="01111";for(var _28=65;_28<=90;_28+=1){$k[$j++]=_28;$k[$j++]=_28-33;$k[$j++]=6;$1.tobin()}$k[$j++]=42;$k[$j++]="111010";for(var _29=44;_29<=47;_29+=1){$k[$j++]=_29;$k[$j++]=_29+15;$k[$j++]=6;$1.tobin()}$k[$j++]=$1.lnumeric;$k[$j++]="000";$k[$j++]=$1.liso646;$k[$j++]="00100";$1.alphanumeric=$d();$k[$j++]=Infinity;for(var _2D=48;_2D<=57;_2D+=1){$k[$j++]=_2D;$k[$j++]=_2D-43;$k[$j++]=5;$1.tobin()}$k[$j++]=$1.fnc1;$k[$j++]="01111";for(var _2F=65;_2F<=90;_2F+=1){$k[$j++]=_2F;$k[$j++]=_2F-1;$k[$j++]=7;$1.tobin()}for(var _2G=97;_2G<=122;_2G+=1){$k[$j++]=_2G;$k[$j++]=_2G-7;$k[$j++]=7;$1.tobin()}$k[$j++]=33;$k[$j++]="11101000";$k[$j++]=34;$k[$j++]="11101001";for(var _2H=37;_2H<=47;_2H+=1){$k[$j++]=_2H;$k[$j++]=_2H+197;$k[$j++]=8;$1.tobin()}for(var _2I=58;_2I<=63;_2I+=1){$k[$j++]=_2I;$k[$j++]=_2I+187;$k[$j++]=8;$1.tobin()}$k[$j++]=95;$k[$j++]="11111011";$k[$j++]=32;$k[$j++]="11111100";$k[$j++]=$1.lnumeric;$k[$j++]="000";$k[$j++]=$1.lalphanumeric;$k[$j++]="00100";$1.iso646=$d();if($eq($1.method,"10")){if($eq($g($1.ais,0),"11")||$eq($g($1.ais,0),"17")){var _2S=$g($1.vals,0);var _2X=$Z($s(16),"0000000000000000");var _2Z=$R($s(16),~~$z($G(_2S,0,2))*384+((~~$z($G(_2S,2,2))-1)*32+~~$z($G(_2S,4,2))),2);$P(_2X,16-_2Z.length,_2Z);$k[$j++]=_2X;$k[$j++]=Infinity;var _2a=$k[--$j];var _2b=$k[--$j];$k[$j++]=_2a;$k[$j++]=1;$k[$j++]=0;$F(_2b,function(){var _2c=$k[--$j];$k[$j++]=$f(_2c-48)});var _2f=$eq($g($1.ais,0),"11")?0:1;$k[$j++]=_2f;$1.cdf=$a();$1.ais=$G($1.ais,1,$1.ais.length-1);$1.vals=$G($1.vals,1,$1.vals.length-1)}else{$1.cdf=$a([1,0,1,1])}if($1.ais.length!=0){if($eq($g($1.ais,0),"10")){$k[$j++]=Infinity;$F($g($1.vals,0));$1.gpf=$a();if($1.ais.length>1){$k[$j++]=Infinity;$q($1.gpf);$k[$j++]=$1.fnc1;$1.gpf=$a()}$1.ais=$G($1.ais,1,$1.ais.length-1);$1.vals=$G($1.vals,1,$1.vals.length-1)}else{$1.gpf=$a([$1.fnc1])}}else{$k[$j++]=Infinity;$q($1.cdf);$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$1.cdf=$a();$1.gpf=$a([])}$1.mode="numeric"}if($eq($1.method,"11")){$1.cdf=$a([1,1]);$1.ai90=$g($1.vals,0);if($f($1.npre+1)!=$1.ai90.length){$k[$j++]=$G($1.ai90,$f($1.npre+1),$f($f($1.ai90.length-$1.npre)-1))}else{$k[$j++]=""}$1.ai90rem=$k[--$j];$k[$j++]="nalpha";$k[$j++]=0;$F($1.ai90rem,function(){var _3M=$k[--$j];if(_3M>=65&&_3M<=90){var _3N=$k[--$j];$k[$j++]=$f(_3N+1)}});var _3O=$k[--$j];$1[$k[--$j]]=_3O;$k[$j++]="nnums";$k[$j++]=0;$F($1.ai90rem,function(){var _3R=$k[--$j];if(_3R>=48&&_3R<=57){var _3S=$k[--$j];$k[$j++]=$f(_3S+1)}});var _3T=$k[--$j];$1[$k[--$j]]=_3T;$k[$j++]="mode";if($gt($1.nalpha,$1.nnums)){$k[$j++]="alpha"}else{if($1.nalpha==0){$k[$j++]="numeric"}else{$k[$j++]="alphanumeric"}}var _3Y=$k[--$j];$1[$k[--$j]]=_3Y;if($f($1.nalpha+$1.nnums)!=$1.ai90rem.length){$1.mode="alphanumeric"}$k[$j++]=Infinity;$q($1.cdf);if($eq($1.mode,"alphanumeric")){$k[$j++]=0}if($eq($1.mode,"numeric")){$k[$j++]=1;$k[$j++]=0}if($eq($1.mode,"alpha")){$k[$j++]=1;$k[$j++]=1}$1.cdf=$a();$k[$j++]="ais1";if($1.ais.length>1){$k[$j++]=$g($1.ais,1)}else{$k[$j++]=-1}var _3l=$k[--$j];$1[$k[--$j]]=_3l;$k[$j++]="vals1";if($1.vals.length>1){$k[$j++]=$g($1.vals,1)}else{$k[$j++]=-1}var _3q=$k[--$j];$1[$k[--$j]]=_3q;if($eq($1.ais1,"21")||$eq($1.ais1,"8004")){$k[$j++]=Infinity;$q($1.cdf);if($eq($1.ais1,"21")){$k[$j++]=1;$k[$j++]=0}else{$k[$j++]=1;$k[$j++]=1}$1.cdf=$a()}else{$k[$j++]=Infinity;$q($1.cdf);$k[$j++]=0;$1.cdf=$a()}$k[$j++]="nval";if($1.npre!=0){$k[$j++]=~~$z($G($1.ai90,0,$1.npre))}else{$k[$j++]=0}var _43=$k[--$j];$1[$k[--$j]]=_43;$x("BDHIJKLNPQRSTVXZ",$G($1.ai90,$1.npre,1));if($k[--$j]){var _49=$k[--$j];var _4A=$k[--$j];$k[$j++]=_49.length;$k[$j++]=_4A;$j--;var _4B=$k[--$j];var _4C=$k[--$j];$k[$j++]=_4B;$k[$j++]=_4C;$j--;$1.aval=$k[--$j]}else{$j--;$1.aval=-1}if($1.nval<31&&$1.aval!=-1){var _4H=$Z($s(5),"00000");var _4K=$R($s(5),$1.nval,2);$P(_4H,5-_4K.length,_4K);$k[$j++]=Infinity;var _4M=_4H;$F(_4M,function(){var _4N=$k[--$j];$k[$j++]=$f(_4N-48)});$1.nbits=$a();var _4Q=$Z($s(4),"0000");var _4T=$R($s(4),$1.aval,2);$P(_4Q,4-_4T.length,_4T);$k[$j++]=Infinity;var _4V=_4Q;$F(_4V,function(){var _4W=$k[--$j];$k[$j++]=$f(_4W-48)});$1.abits=$a();$k[$j++]=Infinity;$q($1.cdf);$q($1.nbits);$q($1.abits);$1.cdf=$a()}else{var _4d=$Z($s(10),"0000000000");var _4g=$R($s(10),$1.nval,2);$P(_4d,10-_4g.length,_4g);$k[$j++]=Infinity;var _4i=_4d;$F(_4i,function(){var _4j=$k[--$j];$k[$j++]=$f(_4j-48)});$1.nbits=$a();var _4m=$Z($s(5),"00000");var _4r=$R($s(5),$f($g($1.ai90,$1.npre)-65),2);$P(_4m,5-_4r.length,_4r);$k[$j++]=Infinity;var _4t=_4m;$F(_4t,function(){var _4u=$k[--$j];$k[$j++]=$f(_4u-48)});$1.abits=$a();$k[$j++]=Infinity;$q($1.cdf);$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$q($1.nbits);$q($1.abits);$1.cdf=$a()}if($ne($1.mode,"alpha")){$k[$j++]=Infinity;$F($1.ai90rem);if($1.ais.length>1){$k[$j++]=$1.fnc1}$1.gpf=$a()}else{$k[$j++]=Infinity;$F($1.ai90rem);if($1.ais.length>1){$k[$j++]=$1.fnc1}$1.in=$a();$1.out=$a($1.in.length*6);$1.j=0;for(var _5D=0,_5C=$1.in.length-1;_5D<=_5C;_5D+=1){var _5H=$g($1.alpha,$g($1.in,_5D));$k[$j++]=_5H;$k[$j++]=Infinity;var _5J=_5H;$F(_5J,function(){var _5K=$k[--$j];$k[$j++]=$f(_5K-48)});$P($1.out,$1.j,$a());$1.j=$k[--$j].length+$1.j}$k[$j++]=Infinity;$q($1.cdf);$q($G($1.out,0,$1.j));$1.cdf=$a();$1.gpf=$a([]);if($1.ais.length>1){$1.mode="numeric"}}$1.ais=$G($1.ais,1,$1.ais.length-1);$1.vals=$G($1.vals,1,$1.vals.length-1);if($1.ais.length!=0){if($eq($1.ais1,"21")||$eq($1.ais1,"8004")){$k[$j++]=Infinity;$q($1.gpf);$F($1.vals1);$1.gpf=$a();$1.ais=$G($1.ais,1,$1.ais.length-1);$1.vals=$G($1.vals,1,$1.vals.length-1);if($1.ais.length!=0){$k[$j++]=Infinity;$q($1.gpf);$k[$j++]=$1.fnc1;$1.gpf=$a()}}}}if($eq($1.method,"0")){$1.cdf=$a([0]);$1.gpf=$a([]);$1.mode="numeric"}$1.aifixed=new Map;$k[$j++]=Infinity;for(var _5w=0;_5w<=4;_5w+=1){$k[$j++]=_5w}var _5x=$a();for(var _5y=0,_5z=_5x.length;_5y<_5z;_5y++){var _62=$Z($s(2),"00");$p(_62,1,$f($g(_5x,_5y)+48));$p($1.aifixed,_62,_62)}$k[$j++]=Infinity;for(var _64=11;_64<=20;_64+=1){$k[$j++]=_64}$k[$j++]=23;for(var _65=31;_65<=36;_65+=1){$k[$j++]=_65}$k[$j++]=41;var _66=$a();for(var _67=0,_68=_66.length;_67<_68;_67++){var _6B=$R($s(2),$g(_66,_67),10);$p($1.aifixed,_6B,_6B)}for(var _6F=0,_6E=$1.ais.length-1;_6F<=_6E;_6F+=1){$1.i=_6F;$1.ai=$g($1.ais,$1.i);$1.val=$g($1.vals,$1.i);var _6P=$a($1.gpf.length+$1.ai.length+$1.val.length);$P(_6P,0,$1.gpf);$k[$j++]=_6P;$k[$j++]=_6P;$k[$j++]=$1.gpf.length;$k[$j++]=Infinity;var _6U=$1.ai;$F(_6U);var _6V=$a();var _6W=$k[--$j];$P($k[--$j],_6W,_6V);var _6Y=$k[--$j];$k[$j++]=_6Y;$k[$j++]=_6Y;$k[$j++]=$1.gpf.length+$1.ai.length;$k[$j++]=Infinity;var _6d=$1.val;$F(_6d);var _6e=$a();var _6f=$k[--$j];$P($k[--$j],_6f,_6e);$1.gpf=$k[--$j];var _6n=$g($1.aifixed,$G($1.ai,0,2))!==undefined;if($1.i!=$1.ais.length-1&&!_6n){var _6p=$a($1.gpf.length+1);$P(_6p,0,$1.gpf);$p(_6p,$1.gpf.length,$1.fnc1);$1.gpf=_6p}}$1.rembits=function(){$1.used=$k[--$j];if($ne($1.ccversion,"c")){var _73=new Map([["a",$a([$a([167,138,118,108,88,78,59]),$a([167,138,118,98,78]),$a([197,167,138,108,78])])],["b",$a([$a([336,296,256,208,160,104,56]),$a([768,648,536,416,304,208,152,112,72,32]),$a([1184,1016,840,672,496,352,264,208,152,96,56])])]]);$1.bitcaps=$g($g(_73,$1.ccversion),$f($1.cccolumns-2));$k[$j++]=-1;$F($1.bitcaps,function(){var _79=$k[--$j];$k[$j++]=_79;if($ge(_79,$1.used)){var _7B=$k[--$j];var _7C=$k[--$j];$k[$j++]=_7B;$k[$j++]=_7C}$j--});var _7D=$k[--$j];$k[$j++]=_7D;if(_7D!=-1){var _7F=$k[--$j];$k[$j++]=$f(_7F-$1.used)}}else{var _7G=new Map([["c",-1]]);var _7I=$g(_7G,$1.ccversion);var _7K=~~Math.ceil($1.used/8);$1.m=~~(_7K/6)*5+_7K%6;if($1.m<=40){$k[$j++]=8}if($1.m>=41&&$1.m<=160){$k[$j++]=16}if($1.m>=161&&$1.m<=320){$k[$j++]=32}if($1.m>=321&&$1.m<=833){$k[$j++]=64}if($1.m>=834){$k[$j++]=32}$1.eccws=$k[--$j];$1.m=$f($f($1.m+$1.eccws)+3);for(;;){if(~~Math.ceil($1.m/$1.cccolumns)<=30||$1.cccolumns>=30){break}$1.cccolumns=$f($1.cccolumns+1)}$1.r=~~Math.ceil($1.m/$1.cccolumns);var _7f=$f($f($1.cccolumns*$1.r-$1.eccws)-3);$1.tgt=$f(~~(_7f/5)*6+_7f%5)*8;if($1.used<=8304){$k[$j++]=$f($1.tgt-$1.used)}else{$k[$j++]=-1}}var _7j=$k[--$j];$k[$j++]=_7j;if(_7j==-1){$j--;if($eq($1.ccversion,"a")){$1.ccversion="b"}else{if($eq($1.ccversion,"b")&&$eq($1.lintype,"gs1-128")){$1.ccversion="c";$1.cccolumns=~~(($1.linwidth-52)/17)}else{$1.ccversion=-1}}$k[$j++]=$1.used;$1.rembits()}};$1.encode=function(){var _7p=$k[--$j];$k[$j++]=_7p;if($ne(_7p,"raw")){var _7q=$k[--$j];var _7s=$g(_7q,$k[--$j]);$k[$j++]=_7s}else{$j--}$k[$j++]=Infinity;var _7t=$k[--$j];var _7u=$k[--$j];$k[$j++]=_7t;$F(_7u,function(){var _7v=$k[--$j];$k[$j++]=$f(_7v-48)});var _7w=$a();$P($1.gpfenc,$1.j,_7w);$1.j=_7w.length+$1.j};$k[$j++]=Infinity;for(var _81=0,_82=$1.gpf.length;_81<_82;_81++){$k[$j++]=0}$k[$j++]=0;$k[$j++]=-1;$1.numericruns=$a();$k[$j++]=Infinity;for(var _85=0,_86=$1.gpf.length;_85<_86;_85++){$k[$j++]=0}$k[$j++]=0;$1.alphanumericruns=$a();$k[$j++]=Infinity;for(var _89=0,_8A=$1.gpf.length;_89<_8A;_89++){$k[$j++]=0}$k[$j++]=9999;$1.nextiso646only=$a();for(var _8D=$1.gpf.length-1;_8D>=0;_8D-=1){$1.i=_8D;var _8I=$Z($s(2),"00");var _8L=$g($1.gpf,$1.i);$k[$j++]=$g($1.gpf,$1.i);$k[$j++]=_8I;$k[$j++]=_8I;$k[$j++]=0;$k[$j++]=_8L;if(_8L==$1.fnc1){$j--;$k[$j++]=94}var _8N=$k[--$j];var _8O=$k[--$j];$p($k[--$j],_8O,_8N);if($1.i<$1.gpf.length-1){var _8S=$k[--$j];var _8V=$g($1.gpf,$1.i+1);$k[$j++]=_8S;$k[$j++]=_8S;$k[$j++]=1;$k[$j++]=_8V;if(_8V==$1.fnc1){$j--;$k[$j++]=94}var _8X=$k[--$j];var _8Y=$k[--$j];$p($k[--$j],_8Y,_8X)}var _8c=$g($1.numeric,$k[--$j])!==undefined;if(_8c){$p($1.numericruns,$1.i,$f($g($1.numericruns,$1.i+2)+2))}else{$p($1.numericruns,$1.i,0)}var _8k=$k[--$j];var _8m=$g($1.alphanumeric,_8k)!==undefined;$k[$j++]=_8k;if(_8m){$p($1.alphanumericruns,$1.i,$f($g($1.alphanumericruns,$1.i+1)+1))}else{$p($1.alphanumericruns,$1.i,0)}var _8u=$k[--$j];var _8w=$g($1.iso646,_8u)!==undefined;var _8y=$g($1.alphanumeric,_8u)!==undefined;if(_8w&&!_8y){$p($1.nextiso646only,$1.i,0)}else{$p($1.nextiso646only,$1.i,$f($g($1.nextiso646only,$1.i+1)+1))}}$1.gpfenc=$a(8304);$1.i=0;$1.j=0;for(;;){if($1.i==$1.gpf.length){break}for(;;){if($eq($1.mode,"numeric")){if($1.i<=$1.gpf.length-2){var _9C=$s(2);var _9F=$g($1.gpf,$1.i);$k[$j++]=_9C;$k[$j++]=_9C;$k[$j++]=0;$k[$j++]=_9F;if(_9F==$1.fnc1){$j--;$k[$j++]=94}var _9H=$k[--$j];var _9I=$k[--$j];$p($k[--$j],_9I,_9H);var _9K=$k[--$j];var _9N=$g($1.gpf,$1.i+1);$k[$j++]=_9K;$k[$j++]=_9K;$k[$j++]=1;$k[$j++]=_9N;if(_9N==$1.fnc1){$j--;$k[$j++]=94}var _9P=$k[--$j];var _9Q=$k[--$j];$p($k[--$j],_9Q,_9P);var _9S=$k[--$j];var _9U=$g($1.numeric,_9S)!==undefined;$k[$j++]=_9S;if(_9U){$k[$j++]=$1.numeric;$1.encode();$1.i=$1.i+2;break}$j--;$k[$j++]=$1.lalphanumeric;$k[$j++]=$1.numeric;$1.encode();$1.mode="alphanumeric";break}else{var _9b=$g($1.gpf,$1.i);if(_9b<48||_9b>57){$k[$j++]=$1.lalphanumeric;$k[$j++]=$1.numeric;$1.encode();$1.mode="alphanumeric";break}$k[$j++]="rem";$k[$j++]=$1.cdf.length+$1.j;$1.rembits();var _9g=$k[--$j];$1[$k[--$j]]=_9g;if($1.rem>=4&&$1.rem<=6){var _9n=$G($Z($s(6),"000000"),0,$1.rem);var _9s=$R($s(4),$f($g($1.gpf,$1.i)-47),2);$P(_9n,4-_9s.length,_9s);$k[$j++]=_9n;$k[$j++]="raw";$1.encode();$1.i=$1.i+1;break}else{var _9u=$s(2);$p(_9u,0,$g($1.gpf,$1.i));$p(_9u,1,94);$k[$j++]=_9u;$k[$j++]=$1.numeric;$1.encode();$1.i=$1.i+1;break}}}if($eq($1.mode,"alphanumeric")){if($g($1.gpf,$1.i)==$1.fnc1){$k[$j++]=$1.fnc1;$k[$j++]=$1.alphanumeric;$1.encode();$1.mode="numeric";$1.i=$1.i+1;break}var _AA=$g($1.gpf,$1.i);var _AC=$g($1.iso646,_AA)!==undefined;var _AE=$g($1.alphanumeric,_AA)!==undefined;if(_AC&&!_AE){$k[$j++]=$1.liso646;$k[$j++]=$1.alphanumeric;$1.encode();$1.mode="iso646";break}if($g($1.numericruns,$1.i)>=6){$k[$j++]=$1.lnumeric;$k[$j++]=$1.alphanumeric;$1.encode();$1.mode="numeric";break}var _AO=$g($1.numericruns,$1.i);if(_AO>=4&&$f(_AO+$1.i)==$1.gpf.length){$k[$j++]=$1.lnumeric;$k[$j++]=$1.alphanumeric;$1.encode();$1.mode="numeric";break}$k[$j++]=$g($1.gpf,$1.i);$k[$j++]=$1.alphanumeric;$1.encode();$1.i=$1.i+1;break}if($eq($1.mode,"iso646")){if($g($1.gpf,$1.i)==$1.fnc1){$k[$j++]=$1.fnc1;$k[$j++]=$1.iso646;$1.encode();$1.mode="numeric";$1.i=$1.i+1;break}if($g($1.numericruns,$1.i)>=4&&$g($1.nextiso646only,$1.i)>=10){$k[$j++]=$1.lnumeric;$k[$j++]=$1.iso646;$1.encode();$1.mode="numeric";break}if($g($1.alphanumericruns,$1.i)>=5&&$g($1.nextiso646only,$1.i)>=10){$k[$j++]=$1.lalphanumeric;$k[$j++]=$1.iso646;$1.encode();$1.mode="alphanumeric";break}$k[$j++]=$g($1.gpf,$1.i);$k[$j++]=$1.iso646;$1.encode();$1.i=$1.i+1;break}}}$1.gpf=$G($1.gpfenc,0,$1.j);$k[$j++]="pad";$k[$j++]=$1.cdf.length+$1.gpf.length;$1.rembits();var _B7=$a($k[--$j]);$1[$k[--$j]]=_B7;if($1.pad.length>0){for(var _BC=0,_BB=$1.pad.length-1;_BC<=_BB;_BC+=5){$1.i=_BC;var _BD=$1.pad;var _BE=$1.i;var _BF=$a([0,0,1,0,0]);var _BG=$1.pad;var _BH=$1.i;var _BI=5;var _BJ=_BG.length-_BH;if(_BG.length-_BH>5){var _=_BI;_BI=_BJ;_BJ=_}$P(_BD,_BE,$G(_BF,0,_BJ))}if($eq($1.mode,"numeric")){$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$q($1.pad);$1.pad=$G($a(),0,$1.pad.length)}if($eq($1.mode,"alpha")){$k[$j++]=Infinity;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$q($1.pad);$1.pad=$G($a(),0,$1.pad.length)}}$k[$j++]=Infinity;$q($1.cdf);$q($1.gpf);$q($1.pad);$1.bits=$a();if($1.ccversion=="a"){$k[$j++]=Infinity;$k[$j++]=$a([0,0,0,0,0,0,1]);for(var _Bb=0,_Bc=68;_Bb<_Bc;_Bb++){$k[$j++]=$a(7)}$1.pwr928=$a();for(var _Bf=1;_Bf<=68;_Bf+=1){$1.j=_Bf;$1.v=0;for(var _Bg=6;_Bg>=1;_Bg-=1){$1.i=_Bg;$1.v=$f($g($g($1.pwr928,$1.j-1),$1.i)*2+~~($1.v/928));$p($g($1.pwr928,$1.j),$1.i,$1.v%928)}$p($g($1.pwr928,$1.j),0,$f($g($g($1.pwr928,$1.j-1),0)*2+~~($1.v/928)))}$k[$j++]=Infinity;for(var _C0=0,_C1=28;_C0<_C1;_C0++){$k[$j++]=0}$1.cws=$a();$1.b=0;$1.c=0;for(;;){if($1.b==$1.bits.length){break}var _C5=$1.bits;var _C6=$1.b;var _C7=$1.bits;var _C8=$1.b;var _C9=_C7.length-_C8;var _CA=69;if(69>_C7.length-_C8){var _=_C9;_C9=_CA;_CA=_}$1.bs=$G(_C5,_C6,_CA);$1.bsl=$1.bs.length;$1.cs=$G($1.cws,$1.c,~~($1.bsl/10)+1);$1.csl=$1.cs.length;for(var _CK=0,_CJ=$1.bsl-1;_CK<=_CJ;_CK+=1){$1.i=_CK;for(var _CN=0,_CM=$1.csl-1;_CN<=_CM;_CN+=1){$1.j=_CN;var _CO=$1.cs;var _CP=$1.j;$p(_CO,_CP,$f($g(_CO,_CP)+$g($g($1.pwr928,$1.i),$1.j+7-$1.csl)*$g($1.bs,$1.bsl-$1.i-1)))}}for(var _Cc=$1.csl-1;_Cc>=1;_Cc-=1){$1.i=_Cc;var _Cd=$1.cs;var _Ce=$1.i;$p(_Cd,_Ce-1,$f($g(_Cd,_Ce-1)+~~($g($1.cs,$1.i)/928)));var _Cj=$1.cs;var _Ck=$1.i;$p(_Cj,_Ck,$g(_Cj,_Ck)%928)}$1.b=$1.b+$1.bsl;$1.c=$1.c+$1.csl}$1.cws=$G($1.cws,0,$1.c);$1.barcode=$s($1.cws.length*4);for(var _Cx=0,_Cw=$1.cws.length-1;_Cx<=_Cw;_Cx+=1){$1.i=_Cx;var _Cz=$Z($s(4),"^ ");var _D4=$R($s(4),$g($1.cws,$1.i),10);$P(_Cz,4-_D4.length,_D4);$P($1.barcode,$1.i*4,_Cz)}delete $1.options["parse"];$p($1.options,"dontdraw",true);$p($1.options,"cca",true);$p($1.options,"columns",$1.cccolumns);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.micropdf417();var _DE=$k[--$j];$1[$k[--$j]]=_DE}if($1.ccversion=="b"){$1.barcode=$s(~~($1.bits.length/8));for(var _DL=0,_DK=$1.barcode.length-1;_DL<=_DK;_DL+=1){$1.i=_DL;var _DO=$G($1.bits,$1.i*8,8);$k[$j++]=0;for(var _DP=0,_DQ=_DO.length;_DP<_DQ;_DP++){var _DS=$k[--$j];$k[$j++]=$f(_DS+$g(_DO,_DP))*2}$p($1.barcode,$1.i,~~($k[--$j]/2))}delete $1.options["parse"];$p($1.options,"dontdraw",true);$p($1.options,"ccb",true);$p($1.options,"columns",$1.cccolumns);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.micropdf417();var _Dd=$k[--$j];$1[$k[--$j]]=_Dd}if($1.ccversion=="c"){$1.barcode=$s(~~($1.bits.length/8));for(var _Dk=0,_Dj=$1.barcode.length-1;_Dk<=_Dj;_Dk+=1){$1.i=_Dk;var _Dn=$G($1.bits,$1.i*8,8);$k[$j++]=0;for(var _Do=0,_Dp=_Dn.length;_Do<_Dp;_Do++){var _Dr=$k[--$j];$k[$j++]=$f(_Dr+$g(_Dn,_Do))*2}$p($1.barcode,$1.i,~~($k[--$j]/2))}delete $1.options["parse"];$p($1.options,"dontdraw",true);$p($1.options,"ccc",true);$p($1.options,"columns",$1.cccolumns);$p($1.options,"eclevel",~~(Math.log($1.eccws)/Math.log(2))-1);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.pdf417();var _E4=$k[--$j];$1[$k[--$j]]=_E4}$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.ean13composite=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$x($1.barcode,"|");if($k[--$j]){$1.linear=$k[--$j];$j--;$1.comp=$k[--$j]}else{$j--}$$.save();$p($1.options,"lintype","ean13");$p($1.options,"inkspread","0");$p($1.options,"dontdraw",true);$k[$j++]=$1.linear;$k[$j++]=$1.options;$0.ean13();$0.renlinear();$$.rmoveto(-1,72);$k[$j++]=Infinity;$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=1;for(var _E=0,_F=93;_E<_F;_E++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;for(var _G=0,_H=93;_G<_H;_G++){$k[$j++]=0}$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;for(var _I=0,_J=93;_I<_J;_I++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;var _K=$a();$k[$j++]="ren";$k[$j++]=$0.renmatrix;$k[$j++]="pixs";$k[$j++]=_K;$k[$j++]="pixx";$k[$j++]=97;$k[$j++]="pixy";$k[$j++]=3;$k[$j++]="height";$k[$j++]=6/72;$k[$j++]="width";$k[$j++]=97/72;$k[$j++]="opt";$k[$j++]=$1.options;var _M=$d();$k[$j++]=_M;$0.renmatrix();$$.rmoveto(-2,6);$k[$j++]=$1.comp;$k[$j++]=$1.options;$0["gs1-cc"]();$0.renmatrix();$$.restore()};$0.ean8composite=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$x($1.barcode,"|");if($k[--$j]){$1.linear=$k[--$j];$j--;$1.comp=$k[--$j]}else{$j--}$$.save();$p($1.options,"lintype","ean8");$p($1.options,"inkspread","0");$p($1.options,"dontdraw",true);$k[$j++]=$1.linear;$k[$j++]=$1.options;$0.ean8();$0.renlinear();$$.rmoveto(-1,72);$k[$j++]=Infinity;$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=1;for(var _E=0,_F=65;_E<_F;_E++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;for(var _G=0,_H=65;_G<_H;_G++){$k[$j++]=0}$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;for(var _I=0,_J=65;_I<_J;_I++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;var _K=$a();$k[$j++]="ren";$k[$j++]=$0.renmatrix;$k[$j++]="pixs";$k[$j++]=_K;$k[$j++]="pixx";$k[$j++]=69;$k[$j++]="pixy";$k[$j++]=3;$k[$j++]="height";$k[$j++]=6/72;$k[$j++]="width";$k[$j++]=69/72;$k[$j++]="opt";$k[$j++]=$1.options;var _M=$d();$k[$j++]=_M;$0.renmatrix();$k[$j++]=$1.comp;$k[$j++]=$1.options;$0["gs1-cc"]();var _P=$k[--$j];$$.rmoveto($f(69-$g(_P,"pixx")),6);$k[$j++]=_P;$0.renmatrix();$$.restore()};$0.upcacomposite=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$x($1.barcode,"|");if($k[--$j]){$1.linear=$k[--$j];$j--;$1.comp=$k[--$j]}else{$j--}$$.save();$p($1.options,"lintype","ean13");$p($1.options,"inkspread","0");$p($1.options,"dontdraw",true);$k[$j++]=$1.linear;$k[$j++]=$1.options;$0.upca();$0.renlinear();$$.rmoveto(-1,72);$k[$j++]=Infinity;$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=1;for(var _E=0,_F=93;_E<_F;_E++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;for(var _G=0,_H=93;_G<_H;_G++){$k[$j++]=0}$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;for(var _I=0,_J=93;_I<_J;_I++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;var _K=$a();$k[$j++]="ren";$k[$j++]=$0.renmatrix;$k[$j++]="pixs";$k[$j++]=_K;$k[$j++]="pixx";$k[$j++]=97;$k[$j++]="pixy";$k[$j++]=3;$k[$j++]="height";$k[$j++]=6/72;$k[$j++]="width";$k[$j++]=97/72;$k[$j++]="opt";$k[$j++]=$1.options;var _M=$d();$k[$j++]=_M;$0.renmatrix();$$.rmoveto(-2,6);$k[$j++]=$1.comp;$k[$j++]=$1.options;$0["gs1-cc"]();$0.renmatrix();$$.restore()};$0.upcecomposite=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$x($1.barcode,"|");if($k[--$j]){$1.linear=$k[--$j];$j--;$1.comp=$k[--$j]}else{$j--}$k[$j++]=Infinity;$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=1;for(var _9=0,_A=49;_9<_A;_9++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;for(var _B=0,_C=49;_B<_C;_B++){$k[$j++]=0}$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;for(var _D=0,_E=49;_D<_E;_D++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;var _F=$a();$k[$j++]="ren";$k[$j++]=$0.renmatrix;$k[$j++]="pixs";$k[$j++]=_F;$k[$j++]="pixx";$k[$j++]=53;$k[$j++]="pixy";$k[$j++]=3;$k[$j++]="height";$k[$j++]=6/72;$k[$j++]="width";$k[$j++]=53/72;$k[$j++]="opt";$k[$j++]=$1.options;$1.sep=$d();$$.save();$p($1.options,"lintype","upce");$p($1.options,"inkspread","0");$p($1.options,"dontdraw",true);$k[$j++]=$1.linear;$k[$j++]=$1.options;$0.upce();$0.renlinear();$$.rmoveto(-1,72);$k[$j++]=Infinity;$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=1;for(var _N=0,_O=49;_N<_O;_N++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;for(var _P=0,_Q=49;_P<_Q;_P++){$k[$j++]=0}$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;for(var _R=0,_S=49;_R<_S;_R++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;var _T=$a();$k[$j++]="ren";$k[$j++]=$0.renmatrix;$k[$j++]="pixs";$k[$j++]=_T;$k[$j++]="pixx";$k[$j++]=53;$k[$j++]="pixy";$k[$j++]=3;$k[$j++]="height";$k[$j++]=6/72;$k[$j++]="width";$k[$j++]=53/72;$k[$j++]="opt";$k[$j++]=$1.options;var _V=$d();$k[$j++]=_V;$0.renmatrix();$$.rmoveto(-2,6);$k[$j++]=$1.comp;$k[$j++]=$1.options;$0["gs1-cc"]();$0.renmatrix();$$.restore()};$0.databaromnicomposite=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$x($1.barcode,"|");if($k[--$j]){$1.linear=$k[--$j];$j--;$1.comp=$k[--$j]}else{$j--}$$.save();$p($1.options,"lintype","databaromni");$p($1.options,"linkage",true);$p($1.options,"inkspread","0");$p($1.options,"dontdraw",true);$k[$j++]=$1.linear;$k[$j++]=$1.options;$0.databaromni();var _F=$k[--$j];$1.linsbs=$g(_F,"sbs");$1.linheight=$g($g(_F,"bhs"),0)*72;$k[$j++]=_F;$0.renlinear();$1.sepfinder=function(){$1.fp=$k[--$j];for(var _N=$1.fp,_M=$f($1.fp+12);_N<=_M;_N+=1){$1.i=_N;if($g($1.bot,$1.i)==0){if($g($1.bot,$1.i-1)==1){$k[$j++]=1}else{var _X=$g($1.sep,$1.i-1)==0?1:0;$k[$j++]=_X}}else{$k[$j++]=0}$p($1.sep,$1.i,$k[--$j])}$1.f3=$a([1,1,1,1,1,1,1,1,1,0,1,1,1]);$k[$j++]=true;for(var _c=0;_c<=12;_c+=1){var _i=$k[--$j];$k[$j++]=_i&&$eq($g($1.bot,$f(_c+$1.fp)),$g($1.f3,_c))}if($k[--$j]){$P($1.sep,$1.fp,$a([0,0,0,0,0,0,0,0,0,0,1,0,0]))}};$k[$j++]=Infinity;$k[$j++]=0;$F($1.linsbs,function(){var _o=$k[--$j];var _p=$k[--$j];var _q=_p==1?0:1;$k[$j++]=_p;for(var _r=0,_s=_o;_r<_s;_r++){$k[$j++]=_q}});$r($a($m()-1));$1.bot=$k[--$j];$j-=2;$k[$j++]=Infinity;$F($1.bot,function(){var _x=$k[--$j];$k[$j++]=$f(1-_x)});$1.sep=$a();$P($1.sep,0,$a([0,0,0]));$P($1.sep,$1.sep.length-4,$a([0,0,0,0]));$k[$j++]=18;$1.sepfinder();$k[$j++]=64;$1.sepfinder();$$.rmoveto(0,$1.linheight);var _19=new Map([["ren",$0.renmatrix],["pixs",$1.sep],["pixx",$1.sep.length],["pixy",1],["height",1/72],["width",$1.sep.length/72],["opt",$1.options]]);$k[$j++]=_19;$0.renmatrix();$$.rmoveto(-5,1);$k[$j++]=$1.comp;$k[$j++]=$1.options;$0["gs1-cc"]();$0.renmatrix();$$.restore()};$0.databarstackedcomposite=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$x($1.barcode,"|");if($k[--$j]){$1.linear=$k[--$j];$j--;$1.comp=$k[--$j]}else{$j--}$$.save();$p($1.options,"lintype","databarstacked");$p($1.options,"linkage",true);$p($1.options,"inkspread","0");$p($1.options,"dontdraw",true);$k[$j++]=$1.linear;$k[$j++]=$1.options;$0.databarstacked();var _F=$k[--$j];$1.bot=$G($g(_F,"pixs"),0,$g(_F,"pixx"));$1.linheight=$g(_F,"pixy");$k[$j++]=_F;$0.renmatrix();$1.sepfinder=function(){$1.fp=$k[--$j];for(var _O=$1.fp,_N=$f($1.fp+12);_O<=_N;_O+=1){$1.i=_O;if($g($1.bot,$1.i)==0){if($g($1.bot,$1.i-1)==1){$k[$j++]=1}else{var _Y=$g($1.sep,$1.i-1)==0?1:0;$k[$j++]=_Y}}else{$k[$j++]=0}$p($1.sep,$1.i,$k[--$j])}$1.f3=$a([1,1,1,1,1,1,1,1,1,0,1,1,1]);$k[$j++]=true;for(var _d=0;_d<=12;_d+=1){var _j=$k[--$j];$k[$j++]=_j&&$eq($g($1.bot,$f(_d+$1.fp)),$g($1.f3,_d))}if($k[--$j]){$P($1.sep,$1.fp,$a([0,0,0,0,0,0,0,0,0,0,1,0,0]))}};$k[$j++]=Infinity;var _o=$1.bot;for(var _p=0,_q=_o.length;_p<_q;_p++){$k[$j++]=$f(1-$g(_o,_p))}$1.sep=$a();$P($1.sep,0,$a([0,0,0,0]));$P($1.sep,$1.sep.length-4,$a([0,0,0,0]));$k[$j++]=18;$1.sepfinder();$$.rmoveto(0,$1.linheight);var _13=new Map([["ren",$0.renmatrix],["pixs",$1.sep],["pixx",$1.sep.length],["pixy",1],["height",1/72],["width",$1.sep.length/72],["opt",$1.options]]);$k[$j++]=_13;$0.renmatrix();$$.rmoveto(1,1);$k[$j++]=$1.comp;$k[$j++]=$1.options;$0["gs1-cc"]();$0.renmatrix();$$.restore()};$0.databarstackedomnicomposite=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$x($1.barcode,"|");if($k[--$j]){$1.linear=$k[--$j];$j--;$1.comp=$k[--$j]}else{$j--}$$.save();$p($1.options,"lintype","databarstackedomni");$p($1.options,"linkage",true);$p($1.options,"inkspread","0");$p($1.options,"dontdraw",true);$k[$j++]=$1.linear;$k[$j++]=$1.options;$0.databarstackedomni();var _F=$k[--$j];$1.bot=$G($g(_F,"pixs"),0,$g(_F,"pixx"));$1.linheight=$g(_F,"pixy");$k[$j++]=_F;$0.renmatrix();$1.sepfinder=function(){$1.fp=$k[--$j];for(var _O=$1.fp,_N=$f($1.fp+12);_O<=_N;_O+=1){$1.i=_O;if($g($1.bot,$1.i)==0){if($g($1.bot,$1.i-1)==1){$k[$j++]=1}else{var _Y=$g($1.sep,$1.i-1)==0?1:0;$k[$j++]=_Y}}else{$k[$j++]=0}$p($1.sep,$1.i,$k[--$j])}$1.f3=$a([1,1,1,1,1,1,1,1,1,0,1,1,1]);$k[$j++]=true;for(var _d=0;_d<=12;_d+=1){var _j=$k[--$j];$k[$j++]=_j&&$eq($g($1.bot,$f(_d+$1.fp)),$g($1.f3,_d))}if($k[--$j]){$P($1.sep,$1.fp,$a([0,0,0,0,0,0,0,0,0,0,1,0,0]))}};$k[$j++]=Infinity;var _o=$1.bot;for(var _p=0,_q=_o.length;_p<_q;_p++){$k[$j++]=$f(1-$g(_o,_p))}$1.sep=$a();$P($1.sep,0,$a([0,0,0,0]));$P($1.sep,$1.sep.length-4,$a([0,0,0,0]));$k[$j++]=18;$1.sepfinder();$$.rmoveto(0,$1.linheight);var _13=new Map([["ren",$0.renmatrix],["pixs",$1.sep],["pixx",$1.sep.length],["pixy",1],["height",1/72],["width",$1.sep.length/72],["opt",$1.options]]);$k[$j++]=_13;$0.renmatrix();$$.rmoveto(1,1);$k[$j++]=$1.comp;$k[$j++]=$1.options;$0["gs1-cc"]();$0.renmatrix();$$.restore()};$0.databartruncatedcomposite=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$x($1.barcode,"|");if($k[--$j]){$1.linear=$k[--$j];$j--;$1.comp=$k[--$j]}else{$j--}$$.save();$p($1.options,"lintype","databartruncated");$p($1.options,"linkage",true);$p($1.options,"inkspread","0");$p($1.options,"dontdraw",true);$k[$j++]=$1.linear;$k[$j++]=$1.options;$0.databartruncated();var _F=$k[--$j];$1.linsbs=$g(_F,"sbs");$1.linheight=$g($g(_F,"bhs"),0)*72;$k[$j++]=_F;$0.renlinear();$1.sepfinder=function(){$1.fp=$k[--$j];for(var _N=$1.fp,_M=$f($1.fp+12);_N<=_M;_N+=1){$1.i=_N;if($g($1.bot,$1.i)==0){if($g($1.bot,$1.i-1)==1){$k[$j++]=1}else{var _X=$g($1.sep,$1.i-1)==0?1:0;$k[$j++]=_X}}else{$k[$j++]=0}$p($1.sep,$1.i,$k[--$j])}$1.f3=$a([1,1,1,1,1,1,1,1,1,0,1,1,1]);$k[$j++]=true;for(var _c=0;_c<=12;_c+=1){var _i=$k[--$j];$k[$j++]=_i&&$eq($g($1.bot,$f(_c+$1.fp)),$g($1.f3,_c))}if($k[--$j]){$P($1.sep,$1.fp,$a([0,0,0,0,0,0,0,0,0,0,1,0,0]))}};$k[$j++]=Infinity;$k[$j++]=0;$F($1.linsbs,function(){var _o=$k[--$j];var _p=$k[--$j];var _q=_p==1?0:1;$k[$j++]=_p;for(var _r=0,_s=_o;_r<_s;_r++){$k[$j++]=_q}});$r($a($m()-1));$1.bot=$k[--$j];$j-=2;$k[$j++]=Infinity;$F($1.bot,function(){var _x=$k[--$j];$k[$j++]=$f(1-_x)});$1.sep=$a();$P($1.sep,0,$a([0,0,0]));$P($1.sep,$1.sep.length-4,$a([0,0,0,0]));$k[$j++]=18;$1.sepfinder();$k[$j++]=64;$1.sepfinder();$$.rmoveto(0,$1.linheight);var _19=new Map([["ren",$0.renmatrix],["pixs",$1.sep],["pixx",$1.sep.length],["pixy",1],["height",1/72],["width",$1.sep.length/72],["opt",$1.options]]);$k[$j++]=_19;$0.renmatrix();$$.rmoveto(-5,1);$k[$j++]=$1.comp;$k[$j++]=$1.options;$0["gs1-cc"]();$0.renmatrix();$$.restore()};$0.databarlimitedcomposite=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$x($1.barcode,"|");if($k[--$j]){$1.linear=$k[--$j];$j--;$1.comp=$k[--$j]}else{$j--}$$.save();$p($1.options,"lintype","databarlimited");$p($1.options,"linkage",true);$p($1.options,"inkspread","0");$p($1.options,"dontdraw",true);$k[$j++]=$1.linear;$k[$j++]=$1.options;$0.databarlimited();var _F=$k[--$j];$1.linsbs=$g(_F,"sbs");$1.linheight=$g($g(_F,"bhs"),0)*72;$k[$j++]=_F;$0.renlinear();$k[$j++]=Infinity;$k[$j++]=1;$F($1.linsbs,function(){var _K=$k[--$j];var _L=$k[--$j];var _M=_L==0?1:0;$k[$j++]=_L;for(var _N=0,_O=_K;_N<_O;_N++){$k[$j++]=_M}});$r($a($m()-1));$1.sep=$k[--$j];$j-=2;$P($1.sep,0,$a([0,0,0]));$P($1.sep,$1.sep.length-9,$a([0,0,0,0,0,0,0,0,0]));$$.rmoveto(0,$1.linheight);var _c=new Map([["ren",$0.renmatrix],["pixs",$1.sep],["pixx",$1.sep.length],["pixy",1],["height",1/72],["width",$1.sep.length/72],["opt",$1.options]]);$k[$j++]=_c;$0.renmatrix();$k[$j++]=$1.comp;$k[$j++]=$1.options;$0["gs1-cc"]();var _f=$k[--$j];$$.rmoveto($f(72-$g(_f,"pixx")),1);$k[$j++]=_f;$0.renmatrix();$$.restore()};$0.databarexpandedcomposite=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$x($1.barcode,"|");if($k[--$j]){$1.linear=$k[--$j];$j--;$1.comp=$k[--$j]}else{$j--}$$.save();$p($1.options,"lintype","databarexpanded");$p($1.options,"linkage",true);$p($1.options,"inkspread","0");$p($1.options,"dontdraw",true);$k[$j++]=$1.linear;$k[$j++]=$1.options;$0.databarexpanded();var _F=$k[--$j];$1.linsbs=$g(_F,"sbs");$1.linheight=$g($g(_F,"bhs"),0)*72;$k[$j++]=_F;$0.renlinear();$1.sepfinder=function(){$1.fp=$k[--$j];for(var _N=$1.fp,_M=$f($1.fp+12);_N<=_M;_N+=1){$1.i=_N;if($g($1.bot,$1.i)==0){if($g($1.bot,$1.i-1)==1){$k[$j++]=1}else{var _X=$g($1.sep,$1.i-1)==0?1:0;$k[$j++]=_X}}else{$k[$j++]=0}$p($1.sep,$1.i,$k[--$j])}};$k[$j++]=Infinity;$k[$j++]=0;$F($1.linsbs,function(){var _c=$k[--$j];var _d=$k[--$j];var _e=_d==1?0:1;$k[$j++]=_d;for(var _f=0,_g=_c;_f<_g;_f++){$k[$j++]=_e}});$r($a($m()-1));$1.bot=$k[--$j];$j-=2;$k[$j++]=Infinity;$F($1.bot,function(){var _l=$k[--$j];$k[$j++]=$f(1-_l)});$1.sep=$a();$P($1.sep,0,$a([0,0,0]));$P($1.sep,$1.sep.length-4,$a([0,0,0,0]));$k[$j++]=Infinity;for(var _u=18,_t=$1.bot.length-13;_u<=_t;_u+=98){$k[$j++]=_u}for(var _x=69,_w=$1.bot.length-13;_x<=_w;_x+=98){$k[$j++]=_x}var _y=$a();for(var _z=0,_10=_y.length;_z<_10;_z++){$k[$j++]=$g(_y,_z);$1.sepfinder()}$$.rmoveto(0,$1.linheight);var _17=new Map([["ren",$0.renmatrix],["pixs",$1.sep],["pixx",$1.sep.length],["pixy",1],["height",1/72],["width",$1.sep.length/72],["opt",$1.options]]);$k[$j++]=_17;$0.renmatrix();$$.rmoveto(1,1);$k[$j++]=$1.comp;$k[$j++]=$1.options;$0["gs1-cc"]();$0.renmatrix();$$.restore()};$0.databarexpandedstackedcomposite=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$x($1.barcode,"|");if($k[--$j]){$1.linear=$k[--$j];$j--;$1.comp=$k[--$j]}else{$j--}$$.save();$p($1.options,"lintype","databarexpandedstacked");$p($1.options,"linkage",true);$p($1.options,"inkspread","0");$p($1.options,"dontdraw",true);$k[$j++]=$1.linear;$k[$j++]=$1.options;$0.databarexpandedstacked();var _F=$k[--$j];$1.bot=$G($g(_F,"pixs"),0,$g(_F,"pixx"));$1.linheight=$g(_F,"pixy");$k[$j++]=_F;$0.renmatrix();$1.sepfinder=function(){$1.fp=$k[--$j];for(var _O=$1.fp,_N=$f($1.fp+12);_O<=_N;_O+=1){$1.i=_O;if($g($1.bot,$1.i)==0){if($g($1.bot,$1.i-1)==1){$k[$j++]=1}else{var _Y=$g($1.sep,$1.i-1)==0?1:0;$k[$j++]=_Y}}else{$k[$j++]=0}$p($1.sep,$1.i,$k[--$j])}};$k[$j++]=Infinity;var _c=$1.bot;for(var _d=0,_e=_c.length;_d<_e;_d++){$k[$j++]=$f(1-$g(_c,_d))}$1.sep=$a();$P($1.sep,0,$a([0,0,0,0]));$P($1.sep,$1.sep.length-4,$a([0,0,0,0]));$k[$j++]=Infinity;for(var _o=19,_n=$1.bot.length-13;_o<=_n;_o+=98){$k[$j++]=_o}for(var _r=70,_q=$1.bot.length-13;_r<=_q;_r+=98){$k[$j++]=_r}var _s=$a();for(var _t=0,_u=_s.length;_t<_u;_t++){$k[$j++]=$g(_s,_t);$1.sepfinder()}$$.rmoveto(0,$1.linheight);var _11=new Map([["ren",$0.renmatrix],["pixs",$1.sep],["pixx",$1.sep.length],["pixy",1],["height",1/72],["width",$1.sep.length/72],["opt",$1.options]]);$k[$j++]=_11;$0.renmatrix();var _14=$g($1.bot,0)==0?2:0;$$.rmoveto(_14,1);$k[$j++]=$1.comp;$k[$j++]=$1.options;$0["gs1-cc"]();$0.renmatrix();$$.restore()};$0["gs1-128composite"]=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$x($1.barcode,"|");if($k[--$j]){$1.linear=$k[--$j];$j--;$1.comp=$k[--$j]}else{$j--}$$.save();$p($1.options,"inkspread","0");$p($1.options,"dontdraw",true);$p($1.options,"linkagea",true);$k[$j++]=$1.linear;$k[$j++]=Infinity;$F($1.options);var _E=$d();$k[$j++]=_E;$0["gs1-128"]();var _G=$g($k[--$j],"sbs");$k[$j++]=0;$F(_G,function(){var _H=$k[--$j];var _I=$k[--$j];$k[$j++]=$f(_I+_H)});$1.linwidth=$k[--$j];$p($1.options,"lintype","gs1-128");$p($1.options,"linwidth",$1.linwidth);$k[$j++]=$1.comp;$k[$j++]=$1.options;$0["gs1-cc"]();$1.compsym=$k[--$j];if($g($1.compsym,"pixx")==99){$k[$j++]="a"}else{$k[$j++]="c"}$1.linktype=$k[--$j];if($eq($1.linktype,"a")){$p($1.options,"linkagea",true);$p($1.options,"linkagec",false)}else{$p($1.options,"linkagea",false);$p($1.options,"linkagec",true)}$k[$j++]=$1.linear;$k[$j++]=Infinity;$F($1.options);var _a=$d();$k[$j++]=_a;$0["gs1-128"]();var _b=$k[--$j];$1.linsbs=$g(_b,"sbs");$1.linheight=$g($g(_b,"bhs"),0)*72;$k[$j++]=_b;$0.renlinear();$k[$j++]=Infinity;$k[$j++]=1;$F($1.linsbs,function(){var _g=$k[--$j];var _h=$k[--$j];var _i=_h==0?1:0;$k[$j++]=_h;for(var _j=0,_k=_g;_j<_k;_j++){$k[$j++]=_i}});$r($a($m()-1));$1.sep=$k[--$j];$j-=2;$$.rmoveto(0,$1.linheight);var _t=new Map([["ren",$0.renmatrix],["pixs",$1.sep],["pixx",$1.sep.length],["pixy",1],["height",1/72],["width",$1.sep.length/72],["opt",$1.options]]);$k[$j++]=_t;$0.renmatrix();if($eq($1.linktype,"a")){$1.s=~~($f($1.linwidth-2)/11);$1.p=~~(($1.s-9)/2);$k[$j++]="x";$k[$j++]=($1.s-$1.p-1)*11+10;if($1.p==0){var _10=$k[--$j];$k[$j++]=$f(_10+2)}var _11=$k[--$j];$1[$k[--$j]]=$f(_11-99);$$.rmoveto($1.x,1)}else{$$.rmoveto(-7,1)}$k[$j++]=$1.compsym;$0.renmatrix();$$.restore()};$0.gs1datamatrix=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.parse=false;$1.dontlint=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.expand=function(){var _6=new Map([["parse",$1.parse],["parseonly",true],["parsefnc",false]]);$1.fncvals=_6;$k[$j++]=$1.fncvals;$0.parseinput()};$1.ais=$a([]);$1.vals=$a([]);var _A=$1.barcode;$k[$j++]=$G(_A,1,_A.length-1);for(;;){var _C=$k[--$j];$k[$j++]=_C;if($eq(_C,"")){break}$x($k[--$j],")");$j--;var _E=$k[--$j];var _F=$k[--$j];$k[$j++]=_E;$k[$j++]=_F;$j--;var _G=$k[--$j];var _H=$k[--$j];$k[$j++]=_G;$x(_H,"(");if($k[--$j]){var _J=$k[--$j];var _K=$k[--$j];$k[$j++]=_J;$k[$j++]=_K;$j--;var _L=$k[--$j];var _M=$k[--$j];var _N=$k[--$j];$k[$j++]=_M;$k[$j++]=_N;$k[$j++]=_L}else{var _O=$k[--$j];var _P=$k[--$j];$k[$j++]="";$k[$j++]=_P;$k[$j++]=_O}$k[$j++]=Infinity;$q($1.ais);var _S=$k[$j-1-($m()+2)];$k[$j++]=_S;$1.ais=$a();$k[$j++]=Infinity;$q($1.vals);var _W=$k[$j-1-($m()+1)];$k[$j++]=_W;$1.expand();$1.vals=$a();$j-=2}$j--;if(!$1.dontlint){$k[$j++]=$1.ais;$k[$j++]=$1.vals;$0.gs1lint();$j--}$1.aifixed=new Map;$k[$j++]=Infinity;for(var _b=0;_b<=4;_b+=1){$k[$j++]=_b}var _c=$a();for(var _d=0,_e=_c.length;_d<_e;_d++){var _h=$Z($s(2),"00");$p(_h,1,$f($g(_c,_d)+48));$p($1.aifixed,_h,_h)}$k[$j++]=Infinity;for(var _j=11;_j<=20;_j+=1){$k[$j++]=_j}$k[$j++]=23;for(var _k=31;_k<=36;_k+=1){$k[$j++]=_k}$k[$j++]=41;var _l=$a();for(var _m=0,_n=_l.length;_m<_n;_m++){var _q=$R($s(2),$g(_l,_m),10);$p($1.aifixed,_q,_q)}$1.fnc1=-1;$1.dmtx=$a([$1.fnc1]);for(var _w=0,_v=$1.ais.length-1;_w<=_v;_w+=1){$1.i=_w;$1.ai=$g($1.ais,$1.i);$1.val=$g($1.vals,$1.i);var _16=$a($1.dmtx.length+$1.ai.length+$1.val.length);$P(_16,0,$1.dmtx);$k[$j++]=_16;$k[$j++]=_16;$k[$j++]=$1.dmtx.length;$k[$j++]=Infinity;var _1B=$1.ai;$F(_1B);var _1C=$a();var _1D=$k[--$j];$P($k[--$j],_1D,_1C);var _1F=$k[--$j];$k[$j++]=_1F;$k[$j++]=_1F;$k[$j++]=$1.dmtx.length+$1.ai.length;$k[$j++]=Infinity;var _1K=$1.val;$F(_1K);var _1L=$a();var _1M=$k[--$j];$P($k[--$j],_1M,_1L);$1.dmtx=$k[--$j];var _1U=$g($1.aifixed,$G($1.ai,0,2))!==undefined;if($1.i!=$1.ais.length-1&&!_1U){var _1W=$a($1.dmtx.length+1);$P(_1W,0,$1.dmtx);$p(_1W,$1.dmtx.length,$1.fnc1);$1.dmtx=_1W}}$1.barcode=$s(($1.dmtx.length+1)*5);$1.i=0;$1.j=0;for(;;){if($1.i==$1.dmtx.length){break}var _1g=$g($1.dmtx,$1.i);$k[$j++]=_1g;if(_1g==$1.fnc1){$j--;$P($1.barcode,$1.j,"^FNC1");$1.j=$1.j+4}else{$p($1.barcode,$1.j,$k[--$j])}$1.i=$1.i+1;$1.j=$1.j+1}$1.barcode=$G($1.barcode,0,$1.j);delete $1.options["parse"];$p($1.options,"dontdraw",true);$p($1.options,"parsefnc",true);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.datamatrix();var _1y=$k[--$j];$1[$k[--$j]]=_1y;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.gs1datamatrixrectangular=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.parse=false;$1.dontlint=false;$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.expand=function(){var _6=new Map([["parse",$1.parse],["parseonly",true],["parsefnc",false]]);$1.fncvals=_6;$k[$j++]=$1.fncvals;$0.parseinput()};$1.ais=$a([]);$1.vals=$a([]);var _A=$1.barcode;$k[$j++]=$G(_A,1,_A.length-1);for(;;){var _C=$k[--$j];$k[$j++]=_C;if($eq(_C,"")){break}$x($k[--$j],")");$j--;var _E=$k[--$j];var _F=$k[--$j];$k[$j++]=_E;$k[$j++]=_F;$j--;var _G=$k[--$j];var _H=$k[--$j];$k[$j++]=_G;$x(_H,"(");if($k[--$j]){var _J=$k[--$j];var _K=$k[--$j];$k[$j++]=_J;$k[$j++]=_K;$j--;var _L=$k[--$j];var _M=$k[--$j];var _N=$k[--$j];$k[$j++]=_M;$k[$j++]=_N;$k[$j++]=_L}else{var _O=$k[--$j];var _P=$k[--$j];$k[$j++]="";$k[$j++]=_P;$k[$j++]=_O}$k[$j++]=Infinity;$q($1.ais);var _S=$k[$j-1-($m()+2)];$k[$j++]=_S;$1.ais=$a();$k[$j++]=Infinity;$q($1.vals);var _W=$k[$j-1-($m()+1)];$k[$j++]=_W;$1.expand();$1.vals=$a();$j-=2}$j--;if(!$1.dontlint){$k[$j++]=$1.ais;$k[$j++]=$1.vals;$0.gs1lint();$j--}$1.aifixed=new Map;$k[$j++]=Infinity;for(var _b=0;_b<=4;_b+=1){$k[$j++]=_b}var _c=$a();for(var _d=0,_e=_c.length;_d<_e;_d++){var _h=$Z($s(2),"00");$p(_h,1,$f($g(_c,_d)+48));$p($1.aifixed,_h,_h)}$k[$j++]=Infinity;for(var _j=11;_j<=20;_j+=1){$k[$j++]=_j}$k[$j++]=23;for(var _k=31;_k<=36;_k+=1){$k[$j++]=_k}$k[$j++]=41;var _l=$a();for(var _m=0,_n=_l.length;_m<_n;_m++){var _q=$R($s(2),$g(_l,_m),10);$p($1.aifixed,_q,_q)}$1.fnc1=-1;$1.dmtx=$a([$1.fnc1]);for(var _w=0,_v=$1.ais.length-1;_w<=_v;_w+=1){$1.i=_w;$1.ai=$g($1.ais,$1.i);$1.val=$g($1.vals,$1.i);var _16=$a($1.dmtx.length+$1.ai.length+$1.val.length);$P(_16,0,$1.dmtx);$k[$j++]=_16;$k[$j++]=_16;$k[$j++]=$1.dmtx.length;$k[$j++]=Infinity;var _1B=$1.ai;$F(_1B);var _1C=$a();var _1D=$k[--$j];$P($k[--$j],_1D,_1C);var _1F=$k[--$j];$k[$j++]=_1F;$k[$j++]=_1F;$k[$j++]=$1.dmtx.length+$1.ai.length;$k[$j++]=Infinity;var _1K=$1.val;$F(_1K);var _1L=$a();var _1M=$k[--$j];$P($k[--$j],_1M,_1L);$1.dmtx=$k[--$j];var _1U=$g($1.aifixed,$G($1.ai,0,2))!==undefined;if($1.i!=$1.ais.length-1&&!_1U){var _1W=$a($1.dmtx.length+1);$P(_1W,0,$1.dmtx);$p(_1W,$1.dmtx.length,$1.fnc1);$1.dmtx=_1W}}$1.barcode=$s(($1.dmtx.length+1)*5);$1.i=0;$1.j=0;for(;;){if($1.i==$1.dmtx.length){break}var _1g=$g($1.dmtx,$1.i);$k[$j++]=_1g;if(_1g==$1.fnc1){$j--;$P($1.barcode,$1.j,"^FNC1");$1.j=$1.j+4}else{$p($1.barcode,$1.j,$k[--$j])}$1.i=$1.i+1;$1.j=$1.j+1}$1.barcode=$G($1.barcode,0,$1.j);delete $1.options["parse"];$p($1.options,"dontdraw",true);$p($1.options,"parsefnc",true);$p($1.options,"format","rectangle");$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.datamatrix();var _1z=$k[--$j];$1[$k[--$j]]=_1z;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.gs1qrcode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.parse=false;$1.dontlint=false;$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.expand=function(){var _6=new Map([["parse",$1.parse],["parseonly",true],["parsefnc",false]]);$1.fncvals=_6;$k[$j++]=$1.fncvals;$0.parseinput()};$1.ais=$a([]);$1.vals=$a([]);var _A=$1.barcode;$k[$j++]=$G(_A,1,_A.length-1);for(;;){var _C=$k[--$j];$k[$j++]=_C;if($eq(_C,"")){break}$x($k[--$j],")");$j--;var _E=$k[--$j];var _F=$k[--$j];$k[$j++]=_E;$k[$j++]=_F;$j--;var _G=$k[--$j];var _H=$k[--$j];$k[$j++]=_G;$x(_H,"(");if($k[--$j]){var _J=$k[--$j];var _K=$k[--$j];$k[$j++]=_J;$k[$j++]=_K;$j--;var _L=$k[--$j];var _M=$k[--$j];var _N=$k[--$j];$k[$j++]=_M;$k[$j++]=_N;$k[$j++]=_L}else{var _O=$k[--$j];var _P=$k[--$j];$k[$j++]="";$k[$j++]=_P;$k[$j++]=_O}$k[$j++]=Infinity;$q($1.ais);var _S=$k[$j-1-($m()+2)];$k[$j++]=_S;$1.ais=$a();$k[$j++]=Infinity;$q($1.vals);var _W=$k[$j-1-($m()+1)];$k[$j++]=_W;$1.expand();$1.vals=$a();$j-=2}$j--;if(!$1.dontlint){$k[$j++]=$1.ais;$k[$j++]=$1.vals;$0.gs1lint();$j--}$1.aifixed=new Map;$k[$j++]=Infinity;for(var _b=0;_b<=4;_b+=1){$k[$j++]=_b}var _c=$a();for(var _d=0,_e=_c.length;_d<_e;_d++){var _h=$Z($s(2),"00");$p(_h,1,$f($g(_c,_d)+48));$p($1.aifixed,_h,_h)}$k[$j++]=Infinity;for(var _j=11;_j<=20;_j+=1){$k[$j++]=_j}$k[$j++]=23;for(var _k=31;_k<=36;_k+=1){$k[$j++]=_k}$k[$j++]=41;var _l=$a();for(var _m=0,_n=_l.length;_m<_n;_m++){var _q=$R($s(2),$g(_l,_m),10);$p($1.aifixed,_q,_q)}$1.fnc1=-1;$1.qrc=$a([$1.fnc1]);for(var _w=0,_v=$1.ais.length-1;_w<=_v;_w+=1){$1.i=_w;$1.ai=$g($1.ais,$1.i);$1.val=$g($1.vals,$1.i);var _16=$a($1.qrc.length+$1.ai.length+$1.val.length);$P(_16,0,$1.qrc);$k[$j++]=_16;$k[$j++]=_16;$k[$j++]=$1.qrc.length;$k[$j++]=Infinity;var _1B=$1.ai;$F(_1B);var _1C=$a();var _1D=$k[--$j];$P($k[--$j],_1D,_1C);var _1F=$k[--$j];$k[$j++]=_1F;$k[$j++]=_1F;$k[$j++]=$1.qrc.length+$1.ai.length;$k[$j++]=Infinity;var _1K=$1.val;$F(_1K);var _1L=$a();var _1M=$k[--$j];$P($k[--$j],_1M,_1L);$1.qrc=$k[--$j];var _1U=$g($1.aifixed,$G($1.ai,0,2))!==undefined;if($1.i!=$1.ais.length-1&&!_1U){var _1W=$a($1.qrc.length+1);$P(_1W,0,$1.qrc);$p(_1W,$1.qrc.length,$1.fnc1);$1.qrc=_1W}}$1.barcode=$s(($1.qrc.length+1)*5);$1.i=0;$1.j=0;for(;;){if($1.i==$1.qrc.length){break}var _1g=$g($1.qrc,$1.i);$k[$j++]=_1g;if(_1g==$1.fnc1){$j--;$P($1.barcode,$1.j,"^FNC1");$1.j=$1.j+4}else{$p($1.barcode,$1.j,$k[--$j])}$1.i=$1.i+1;$1.j=$1.j+1}$1.barcode=$G($1.barcode,0,$1.j);delete $1.options["parse"];$p($1.options,"dontdraw",true);$p($1.options,"parsefnc",true);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.qrcode();var _1y=$k[--$j];$1[$k[--$j]]=_1y;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.gs1dotcode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.parse=false;$1.dontlint=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.expand=function(){var _6=new Map([["parse",$1.parse],["parseonly",true],["parsefnc",false]]);$1.fncvals=_6;$k[$j++]=$1.fncvals;$0.parseinput()};$1.ais=$a([]);$1.vals=$a([]);var _A=$1.barcode;$k[$j++]=$G(_A,1,_A.length-1);for(;;){var _C=$k[--$j];$k[$j++]=_C;if($eq(_C,"")){break}$x($k[--$j],")");$j--;var _E=$k[--$j];var _F=$k[--$j];$k[$j++]=_E;$k[$j++]=_F;$j--;var _G=$k[--$j];var _H=$k[--$j];$k[$j++]=_G;$x(_H,"(");if($k[--$j]){var _J=$k[--$j];var _K=$k[--$j];$k[$j++]=_J;$k[$j++]=_K;$j--;var _L=$k[--$j];var _M=$k[--$j];var _N=$k[--$j];$k[$j++]=_M;$k[$j++]=_N;$k[$j++]=_L}else{var _O=$k[--$j];var _P=$k[--$j];$k[$j++]="";$k[$j++]=_P;$k[$j++]=_O}$k[$j++]=Infinity;$q($1.ais);var _S=$k[$j-1-($m()+2)];$k[$j++]=_S;$1.ais=$a();$k[$j++]=Infinity;$q($1.vals);var _W=$k[$j-1-($m()+1)];$k[$j++]=_W;$1.expand();$1.vals=$a();$j-=2}$j--;if(!$1.dontlint){$k[$j++]=$1.ais;$k[$j++]=$1.vals;$0.gs1lint();$j--}$1.aifixed=new Map;$k[$j++]=Infinity;for(var _b=0;_b<=4;_b+=1){$k[$j++]=_b}var _c=$a();for(var _d=0,_e=_c.length;_d<_e;_d++){var _h=$Z($s(2),"00");$p(_h,1,$f($g(_c,_d)+48));$p($1.aifixed,_h,_h)}$k[$j++]=Infinity;for(var _j=11;_j<=20;_j+=1){$k[$j++]=_j}$k[$j++]=23;for(var _k=31;_k<=36;_k+=1){$k[$j++]=_k}$k[$j++]=41;var _l=$a();for(var _m=0,_n=_l.length;_m<_n;_m++){var _q=$R($s(2),$g(_l,_m),10);$p($1.aifixed,_q,_q)}$1.fnc1=-1;$1.dmtx=$a([$1.fnc1]);for(var _w=0,_v=$1.ais.length-1;_w<=_v;_w+=1){$1.i=_w;$1.ai=$g($1.ais,$1.i);$1.val=$g($1.vals,$1.i);var _16=$a($1.dmtx.length+$1.ai.length+$1.val.length);$P(_16,0,$1.dmtx);$k[$j++]=_16;$k[$j++]=_16;$k[$j++]=$1.dmtx.length;$k[$j++]=Infinity;var _1B=$1.ai;$F(_1B);var _1C=$a();var _1D=$k[--$j];$P($k[--$j],_1D,_1C);var _1F=$k[--$j];$k[$j++]=_1F;$k[$j++]=_1F;$k[$j++]=$1.dmtx.length+$1.ai.length;$k[$j++]=Infinity;var _1K=$1.val;$F(_1K);var _1L=$a();var _1M=$k[--$j];$P($k[--$j],_1M,_1L);$1.dmtx=$k[--$j];var _1U=$g($1.aifixed,$G($1.ai,0,2))!==undefined;if($1.i!=$1.ais.length-1&&!_1U){var _1W=$a($1.dmtx.length+1);$P(_1W,0,$1.dmtx);$p(_1W,$1.dmtx.length,$1.fnc1);$1.dmtx=_1W}}$1.barcode=$s(($1.dmtx.length+1)*5);$1.i=0;$1.j=0;for(;;){if($1.i==$1.dmtx.length){break}var _1g=$g($1.dmtx,$1.i);$k[$j++]=_1g;if(_1g==$1.fnc1){$j--;$P($1.barcode,$1.j,"^FNC1");$1.j=$1.j+4}else{$p($1.barcode,$1.j,$k[--$j])}$1.i=$1.i+1;$1.j=$1.j+1}$1.barcode=$G($1.barcode,0,$1.j);delete $1.options["parse"];$p($1.options,"dontdraw",true);$p($1.options,"parsefnc",true);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.dotcode();var _1y=$k[--$j];$1[$k[--$j]]=_1y;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.hibccode39=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.textxoffset=0;$1.validatecheck=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.textxoffset=+$1.textxoffset;$1.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$1.charvals=new Map;for(var _9=0;_9<=42;_9+=1){$p($1.charvals,$G($1.barchars,_9,1),_9)}for(var _F=0,_E=$1.barcode.length-1;_F<=_E;_F+=1){var _J=$g($1.charvals,$G($1.barcode,_F,1))!==undefined;if(!_J){$k[$j++]="bwipp.hibccode39badCharacter";$k[$j++]="HIBC Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%";$0.raiseerror()}}$k[$j++]="barlen";$k[$j++]=$1.barcode.length;if($1.validatecheck){var _M=$k[--$j];$k[$j++]=$f(_M-1)}var _N=$k[--$j];$1[$k[--$j]]=_N;$1.checksum=41;for(var _R=0,_Q=$f($1.barlen-1);_R<=_Q;_R+=1){$1.checksum=$f($g($1.charvals,$G($1.barcode,_R,1))+$1.checksum)}$1.checksum=$1.checksum%43;if($1.validatecheck){if($g($1.barcode,$1.barlen)!=$g($1.barchars,$1.checksum)){$k[$j++]="bwipp.hibccode39badCheckDigit";$k[$j++]="Incorrect HIBC Code 39 check digit provided";$0.raiseerror()}$1.barcode=$G($1.barcode,0,$1.barlen)}var _j=$s($f($1.barlen+2));$P(_j,1,$1.barcode);$1.barcode=_j;$p($1.barcode,0,43);$p($1.barcode,$f($1.barlen+1),$g($1.barchars,$1.checksum));$1.text=$s($f($1.barlen+4));$p($1.text,0,42);$P($1.text,1,$1.barcode);var _10=$g($1.barcode,$f($1.barlen+1));$k[$j++]=$1.text;$k[$j++]=$f($1.barlen+2);$k[$j++]=_10;if(_10==32){$j--;$k[$j++]=95}var _11=$k[--$j];var _12=$k[--$j];$p($k[--$j],_12,_11);$p($1.text,$f($1.barlen+3),42);$p($1.options,"dontdraw",true);$p($1.options,"includecheck",false);$p($1.options,"validatecheck",false);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.code39();var _1B=$k[--$j];$1[$k[--$j]]=_1B;$p($1.args,"txt",$a([$a([$1.text,$1.textxoffset,$1.textyoffset,$1.textfont,$1.textsize])]));$p($1.args,"textxalign","center");$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.hibccode128=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.textxoffset=0;$1.validatecheck=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.textxoffset=+$1.textxoffset;$1.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$1.charvals=new Map;for(var _9=0;_9<=42;_9+=1){$p($1.charvals,$G($1.barchars,_9,1),_9)}for(var _F=0,_E=$1.barcode.length-1;_F<=_E;_F+=1){var _J=$g($1.charvals,$G($1.barcode,_F,1))!==undefined;if(!_J){$k[$j++]="bwipp.hibccode128badCharacter";$k[$j++]="HIBC Code 128 must contain only digits, capital letters, spaces and the symbols -.$/+%";$0.raiseerror()}}$k[$j++]="barlen";$k[$j++]=$1.barcode.length;if($1.validatecheck){var _M=$k[--$j];$k[$j++]=$f(_M-1)}var _N=$k[--$j];$1[$k[--$j]]=_N;$1.checksum=41;for(var _R=0,_Q=$f($1.barlen-1);_R<=_Q;_R+=1){$1.checksum=$f($g($1.charvals,$G($1.barcode,_R,1))+$1.checksum)}$1.checksum=$1.checksum%43;if($1.validatecheck){if($g($1.barcode,$1.barlen)!=$g($1.barchars,$1.checksum)){$k[$j++]="bwipp.hibccode128badCheckDigit";$k[$j++]="Incorrect HIBC Code 128 check digit provided";$0.raiseerror()}$1.barcode=$G($1.barcode,0,$1.barlen)}var _j=$s($f($1.barlen+2));$P(_j,1,$1.barcode);$1.barcode=_j;$p($1.barcode,0,43);$p($1.barcode,$f($1.barlen+1),$g($1.barchars,$1.checksum));$1.text=$s($f($1.barlen+4));$p($1.text,0,42);$P($1.text,1,$1.barcode);var _10=$g($1.barcode,$f($1.barlen+1));$k[$j++]=$1.text;$k[$j++]=$f($1.barlen+2);$k[$j++]=_10;if(_10==32){$j--;$k[$j++]=95}var _11=$k[--$j];var _12=$k[--$j];$p($k[--$j],_12,_11);$p($1.text,$f($1.barlen+3),42);$p($1.options,"dontdraw",true);$p($1.options,"validatecheck",false);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.code128();var _1A=$k[--$j];$1[$k[--$j]]=_1A;$p($1.args,"txt",$a([$a([$1.text,$1.textxoffset,$1.textyoffset,$1.textfont,$1.textsize])]));$p($1.args,"textxalign","center");$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.hibcdatamatrix=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.validatecheck=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$1.charvals=new Map;for(var _5=0;_5<=42;_5+=1){$p($1.charvals,$G($1.barchars,_5,1),_5)}for(var _B=0,_A=$1.barcode.length-1;_B<=_A;_B+=1){var _F=$g($1.charvals,$G($1.barcode,_B,1))!==undefined;if(!_F){$k[$j++]="bwipp.hibcdatamatrixBadCharacter";$k[$j++]="HIBC Data Matrix must contain only digits, capital letters, spaces and the symbols -.$/+%";$0.raiseerror()}}$k[$j++]="barlen";$k[$j++]=$1.barcode.length;if($1.validatecheck){var _I=$k[--$j];$k[$j++]=$f(_I-1)}var _J=$k[--$j];$1[$k[--$j]]=_J;$1.checksum=41;for(var _N=0,_M=$f($1.barlen-1);_N<=_M;_N+=1){$1.checksum=$f($g($1.charvals,$G($1.barcode,_N,1))+$1.checksum)}$1.checksum=$1.checksum%43;if($1.validatecheck){if($g($1.barcode,$1.barlen)!=$g($1.barchars,$1.checksum)){$k[$j++]="bwipp.hibcdatamatrixBadCheckDigit";$k[$j++]="Incorrect HIBC Data Matrix check digit provided";$0.raiseerror()}$1.barcode=$G($1.barcode,0,$1.barlen)}var _f=$s($f($1.barlen+2));$P(_f,1,$1.barcode);$1.barcode=_f;$p($1.barcode,0,43);$p($1.barcode,$f($1.barlen+1),$g($1.barchars,$1.checksum));$p($1.options,"dontdraw",true);$p($1.options,"validatecheck",false);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.datamatrix();var _r=$k[--$j];$1[$k[--$j]]=_r;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.hibcdatamatrixrectangular=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.validatecheck=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$1.charvals=new Map;for(var _5=0;_5<=42;_5+=1){$p($1.charvals,$G($1.barchars,_5,1),_5)}for(var _B=0,_A=$1.barcode.length-1;_B<=_A;_B+=1){var _F=$g($1.charvals,$G($1.barcode,_B,1))!==undefined;if(!_F){$k[$j++]="bwipp.hibcdatamatrixrectangularBadCharacter";$k[$j++]="HIBC Data Matrix Rectangular must contain only digits, capital letters, spaces and the symbols -.$/+%";$0.raiseerror()}}$k[$j++]="barlen";$k[$j++]=$1.barcode.length;if($1.validatecheck){var _I=$k[--$j];$k[$j++]=$f(_I-1)}var _J=$k[--$j];$1[$k[--$j]]=_J;$1.checksum=41;for(var _N=0,_M=$f($1.barlen-1);_N<=_M;_N+=1){$1.checksum=$f($g($1.charvals,$G($1.barcode,_N,1))+$1.checksum)}$1.checksum=$1.checksum%43;if($1.validatecheck){if($g($1.barcode,$1.barlen)!=$g($1.barchars,$1.checksum)){$k[$j++]="bwipp.hibcdatamatrixrectangularBadCheckDigit";$k[$j++]="Incorrect HIBC Data Matrix Rectangular check digit provided";$0.raiseerror()}$1.barcode=$G($1.barcode,0,$1.barlen)}var _f=$s($f($1.barlen+2));$P(_f,1,$1.barcode);$1.barcode=_f;$p($1.barcode,0,43);$p($1.barcode,$f($1.barlen+1),$g($1.barchars,$1.checksum));$p($1.options,"dontdraw",true);$p($1.options,"validatecheck",false);$p($1.options,"format","rectangle");$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.datamatrix();var _s=$k[--$j];$1[$k[--$j]]=_s;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.hibcpdf417=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.columns=2;$1.validatecheck=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.columns=~~$1.columns;$1.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$1.charvals=new Map;for(var _6=0;_6<=42;_6+=1){$p($1.charvals,$G($1.barchars,_6,1),_6)}for(var _C=0,_B=$1.barcode.length-1;_C<=_B;_C+=1){var _G=$g($1.charvals,$G($1.barcode,_C,1))!==undefined;if(!_G){$k[$j++]="bwipp.hibcpdf417BadCharacter";$k[$j++]="HIBC PDF417 must contain only digits, capital letters, spaces and the symbols -.$/+%";$0.raiseerror()}}$k[$j++]="barlen";$k[$j++]=$1.barcode.length;if($1.validatecheck){var _J=$k[--$j];$k[$j++]=$f(_J-1)}var _K=$k[--$j];$1[$k[--$j]]=_K;$1.checksum=41;for(var _O=0,_N=$f($1.barlen-1);_O<=_N;_O+=1){$1.checksum=$f($g($1.charvals,$G($1.barcode,_O,1))+$1.checksum)}$1.checksum=$1.checksum%43;if($1.validatecheck){if($g($1.barcode,$1.barlen)!=$g($1.barchars,$1.checksum)){$k[$j++]="bwipp.hibcpdf417BadCheckDigit";$k[$j++]="Incorrect HIBC PDF417 check digit provided";$0.raiseerror()}$1.barcode=$G($1.barcode,0,$1.barlen)}var _g=$s($f($1.barlen+2));$P(_g,1,$1.barcode);$1.barcode=_g;$p($1.barcode,0,43);$p($1.barcode,$f($1.barlen+1),$g($1.barchars,$1.checksum));$p($1.options,"dontdraw",true);$p($1.options,"columns",$1.columns);$p($1.options,"validatecheck",false);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.pdf417();var _u=$k[--$j];$1[$k[--$j]]=_u;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.hibcmicropdf417=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.columns=2;$1.validatecheck=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.columns=~~$1.columns;$1.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$1.charvals=new Map;for(var _6=0;_6<=42;_6+=1){$p($1.charvals,$G($1.barchars,_6,1),_6)}for(var _C=0,_B=$1.barcode.length-1;_C<=_B;_C+=1){var _G=$g($1.charvals,$G($1.barcode,_C,1))!==undefined;if(!_G){$k[$j++]="bwipp.hibcmicropdf417BadCharacter";$k[$j++]="HIBC MicroPDF417 must contain only digits, capital letters, spaces and the symbols -.$/+%";$0.raiseerror()}}$k[$j++]="barlen";$k[$j++]=$1.barcode.length;if($1.validatecheck){var _J=$k[--$j];$k[$j++]=$f(_J-1)}var _K=$k[--$j];$1[$k[--$j]]=_K;$1.checksum=41;for(var _O=0,_N=$f($1.barlen-1);_O<=_N;_O+=1){$1.checksum=$f($g($1.charvals,$G($1.barcode,_O,1))+$1.checksum)}$1.checksum=$1.checksum%43;if($1.validatecheck){if($g($1.barcode,$1.barlen)!=$g($1.barchars,$1.checksum)){$k[$j++]="bwipp.hibcmicropdf417BadCheckDigit";$k[$j++]="Incorrect HIBC MicroPDF417 check digit provided";$0.raiseerror()}$1.barcode=$G($1.barcode,0,$1.barlen)}var _g=$s($f($1.barlen+2));$P(_g,1,$1.barcode);$1.barcode=_g;$p($1.barcode,0,43);$p($1.barcode,$f($1.barlen+1),$g($1.barchars,$1.checksum));$p($1.options,"dontdraw",true);$p($1.options,"columns",$1.columns);$p($1.options,"validatecheck",false);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.micropdf417();var _u=$k[--$j];$1[$k[--$j]]=_u;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.hibcqrcode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.validatecheck=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$1.charvals=new Map;for(var _5=0;_5<=42;_5+=1){$p($1.charvals,$G($1.barchars,_5,1),_5)}for(var _B=0,_A=$1.barcode.length-1;_B<=_A;_B+=1){var _F=$g($1.charvals,$G($1.barcode,_B,1))!==undefined;if(!_F){$k[$j++]="bwipp.hibcqrcodeBadCharacter";$k[$j++]="HIBC QR Code must contain only digits, capital letters, spaces and the symbols -.$/+%";$0.raiseerror()}}$k[$j++]="barlen";$k[$j++]=$1.barcode.length;if($1.validatecheck){var _I=$k[--$j];$k[$j++]=$f(_I-1)}var _J=$k[--$j];$1[$k[--$j]]=_J;$1.checksum=41;for(var _N=0,_M=$f($1.barlen-1);_N<=_M;_N+=1){$1.checksum=$f($g($1.charvals,$G($1.barcode,_N,1))+$1.checksum)}$1.checksum=$1.checksum%43;if($1.validatecheck){if($g($1.barcode,$1.barlen)!=$g($1.barchars,$1.checksum)){$k[$j++]="bwipp.hibcqrcodeBadCheckDigit";$k[$j++]="Incorrect HIBC QR Code check digit provided";$0.raiseerror()}$1.barcode=$G($1.barcode,0,$1.barlen)}var _f=$s($f($1.barlen+2));$P(_f,1,$1.barcode);$1.barcode=_f;$p($1.barcode,0,43);$p($1.barcode,$f($1.barlen+1),$g($1.barchars,$1.checksum));$p($1.options,"dontdraw",true);$p($1.options,"validatecheck",false);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.qrcode();var _r=$k[--$j];$1[$k[--$j]]=_r;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.hibccodablockf=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.validatecheck=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$1.charvals=new Map;for(var _5=0;_5<=42;_5+=1){$p($1.charvals,$G($1.barchars,_5,1),_5)}for(var _B=0,_A=$1.barcode.length-1;_B<=_A;_B+=1){var _F=$g($1.charvals,$G($1.barcode,_B,1))!==undefined;if(!_F){$k[$j++]="bwipp.codablockfBadCharacter";$k[$j++]="HIBC Codablock F must contain only digits, capital letters, spaces and the symbols -.$/+%";$0.raiseerror()}}$k[$j++]="barlen";$k[$j++]=$1.barcode.length;if($1.validatecheck){var _I=$k[--$j];$k[$j++]=$f(_I-1)}var _J=$k[--$j];$1[$k[--$j]]=_J;$1.checksum=41;for(var _N=0,_M=$f($1.barlen-1);_N<=_M;_N+=1){$1.checksum=$f($g($1.charvals,$G($1.barcode,_N,1))+$1.checksum)}$1.checksum=$1.checksum%43;if($1.validatecheck){if($g($1.barcode,$1.barlen)!=$g($1.barchars,$1.checksum)){$k[$j++]="bwipp.hibccodablockfBadCheckDigit";$k[$j++]="Incorrect HIBC Codablock F check digit provided";$0.raiseerror()}$1.barcode=$G($1.barcode,0,$1.barlen)}var _f=$s($f($1.barlen+2));$P(_f,1,$1.barcode);$1.barcode=_f;$p($1.barcode,0,43);$p($1.barcode,$f($1.barlen+1),$g($1.barchars,$1.checksum));$p($1.options,"dontdraw",true);$p($1.options,"validatecheck",false);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.codablockf();var _r=$k[--$j];$1[$k[--$j]]=_r;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.hibcazteccode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.validatecheck=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$1.charvals=new Map;for(var _5=0;_5<=42;_5+=1){$p($1.charvals,$G($1.barchars,_5,1),_5)}for(var _B=0,_A=$1.barcode.length-1;_B<=_A;_B+=1){var _F=$g($1.charvals,$G($1.barcode,_B,1))!==undefined;if(!_F){$k[$j++]="bwipp.hibcazteccodeBadCharacter";$k[$j++]="HIBC Aztec Code must contain only digits, capital letters, spaces and the symbols -.$/+%";$0.raiseerror()}}$k[$j++]="barlen";$k[$j++]=$1.barcode.length;if($1.validatecheck){var _I=$k[--$j];$k[$j++]=$f(_I-1)}var _J=$k[--$j];$1[$k[--$j]]=_J;$1.checksum=41;for(var _N=0,_M=$f($1.barlen-1);_N<=_M;_N+=1){$1.checksum=$f($g($1.charvals,$G($1.barcode,_N,1))+$1.checksum)}$1.checksum=$1.checksum%43;if($1.validatecheck){if($g($1.barcode,$1.barlen)!=$g($1.barchars,$1.checksum)){$k[$j++]="bwipp.hibcazteccodeBadCheckDigit";$k[$j++]="Incorrect HIBC Aztec Code check digit provided";$0.raiseerror()}$1.barcode=$G($1.barcode,0,$1.barlen)}var _f=$s($f($1.barlen+2));$P(_f,1,$1.barcode);$1.barcode=_f;$p($1.barcode,0,43);$p($1.barcode,$f($1.barlen+1),$g($1.barchars,$1.checksum));$p($1.options,"dontdraw",true);$p($1.options,"validatecheck",false);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.azteccode();var _r=$k[--$j];$1[$k[--$j]]=_r;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.channelcode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.shortfinder=false;$1.includetext=false;$1.includecheck=false;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.height=+$1.height;if($1.barcode.length<2||$1.barcode.length>7){$k[$j++]="bwipp.channelcodeBadLength";$k[$j++]="Channel Code must be 2 to 7 digits";$0.raiseerror()}$F($1.barcode,function(){var _9=$k[--$j];if(_9<48||_9>57){$k[$j++]="bwipp.channelcodeBadCharacter";$k[$j++]="Channel Code must contain only digits";$0.raiseerror()}});if(~~$z($1.barcode)>$g($a([26,292,3493,44072,576688,7742862]),$1.barcode.length-2)){$k[$j++]="bwipp.channelcodeTooBig";$k[$j++]="The Channel Code value is too big for the number of channels";$0.raiseerror()}$1.nextb=function(){var _E=$k[--$j];var _N=$f($g($1.s,_E)+$f($g($1.b,$f(_E-1))+$f($g($1.b,$f(_E-2))+$g($1.s,$f(_E-1)))))>4?1:2;$k[$j++]=_E;$k[$j++]=_N;if(_E<$f($1.chan+2)){var _P=$k[--$j];var _Q=$k[--$j];var _R=$k[--$j];$k[$j++]=_R;$k[$j++]=_Q;$k[$j++]=_P;for(var _T=_P,_S=_R;_T<=_S;_T+=1){var _V=$k[--$j];var _W=$k[--$j];$p($1.b,_W,_T);var _X=$k[--$j];var _Y=$k[--$j];$k[$j++]=_Y;$k[$j++]=_X;$k[$j++]=_W;$k[$j++]=_V;$k[$j++]=$f($f(_X-_T)+1);$k[$j++]=_Y;$k[$j++]=$f(_W+1);$1.nexts()}}else{var _Z=$k[--$j];var _a=$k[--$j];var _b=$k[--$j];$k[$j++]=_b;$k[$j++]=_a;$k[$j++]=_Z;if($le(_Z,_b)){var _d=$k[--$j];var _e=$k[--$j];var _f=$k[--$j];$p($1.b,_e,_f);$k[$j++]=_f;$k[$j++]=_e;$k[$j++]=_d;if($1.value==$1.target){$k[$j++]=Infinity;for(var _i=3;_i<=10;_i+=1){$k[$j++]=$g($1.s,_i);$k[$j++]=$g($1.b,_i)}$1.out=$G($a(),0,$1.chan*2)}$1.value=$1.value+1}}$j-=4};$1.nexts=function(){var _r=$k[--$j];$k[$j++]=_r;if(_r<$f($1.chan+2)){$k[$j++]=1}else{var _t=$k[--$j];var _u=$k[--$j];$k[$j++]=_u;$k[$j++]=_t;$k[$j++]=_u}var _v=$k[--$j];var _w=$k[--$j];var _x=$k[--$j];$k[$j++]=_x;$k[$j++]=_w;for(var _z=_v,_y=_x;_z<=_y;_z+=1){var _11=$k[--$j];$p($1.s,_11,_z);var _12=$k[--$j];var _13=$k[--$j];$k[$j++]=_13;$k[$j++]=_12;$k[$j++]=_11;$k[$j++]=$f($f(_12-_z)+1);$k[$j++]=_13;$k[$j++]=_11;$1.nextb()}$j-=3};$1.encode=function(){$1.chan=$k[--$j];$1.target=$k[--$j];$1.value=0;$1.out=-1;$1.b=$a([1,1,1,0,0,0,0,0,0,0,0]);$1.s=$a([0,1,1,0,0,0,0,0,0,0,0]);var _18=$1.chan;$k[$j++]=_18;$k[$j++]=_18;$k[$j++]=3;$1.nexts();$k[$j++]=$1.out};$1.barlen=$1.barcode.length;$k[$j++]="finder";if($1.shortfinder){$k[$j++]=$a([1,1,1,1,1])}else{$k[$j++]=$a([1,1,1,1,1,1,1,1,1])}var _1E=$k[--$j];$1[$k[--$j]]=_1E;$k[$j++]="data";$k[$j++]=~~$z($1.barcode);$k[$j++]=$1.barlen+1;$1.encode();var _1I=$k[--$j];$1[$k[--$j]]=_1I;$1.check=$a([]);if($1.includecheck){$1.mod23=$g($a([$a([]),$a([]),$a([13,12,4,9,3,1]),$a([13,2,12,3,18,16,4,1]),$a([11,16,17,8,20,4,10,2,5,1]),$a([1,4,16,18,3,12,2,8,9,13,6,1]),$a([20,16,22,13,15,12,5,4,8,9,21,3,7,1]),$a([2,6,18,8,1,3,9,4,12,13,16,2,6,18,8,1])]),$1.barlen);$k[$j++]=0;for(var _1Z=0,_1Y=$1.data.length-1;_1Z<=_1Y;_1Z+=1){var _1e=$k[--$j];$k[$j++]=$f(_1e+$f($g($1.data,_1Z)-1)*$g($1.mod23,_1Z))}var _1f=$k[--$j];$k[$j++]=_1f%23;$k[$j++]=3;$1.encode();$1.check=$k[--$j]}$k[$j++]=Infinity;$q($1.finder);$q($1.data);$q($1.check);$1.sbs=$a();$1.txt=$a($1.barlen);for(var _1p=0,_1o=$1.barlen-1;_1p<=_1o;_1p+=1){$1.i=_1p;$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),0,0,"",0]))}$k[$j++]=Infinity;var _1w=$1.sbs;$k[$j++]=Infinity;for(var _1y=0,_1z=~~(($1.sbs.length+1)/2);_1y<_1z;_1y++){$k[$j++]=$1.height}var _21=$a();$k[$j++]=Infinity;for(var _23=0,_24=~~(($1.sbs.length+1)/2);_23<_24;_23++){$k[$j++]=0}var _25=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_1w;$k[$j++]="bhs";$k[$j++]=_21;$k[$j++]="bbs";$k[$j++]=_25;$k[$j++]="txt";$k[$j++]=$1.txt;$k[$j++]="textxalign";$k[$j++]="center";$k[$j++]="opt";$k[$j++]=$1.options;var _28=$d();$k[$j++]=_28;if(!$1.dontdraw){$0.renlinear()}};$0.renlinear=function(){if($0.bwipjs_dontdraw){return}var $1={};$1.args=$k[--$j];$1.sbs=$a([]);$1.bhs=$a([]);$1.bbs=$a([]);$1.txt=$a([]);$1.barcolor="unset";$1.includetext=false;$1.textcolor="unset";$1.textxalign="unset";$1.textyalign="unset";$1.textfont="OCR-B";$1.textsize=10;$1.textxoffset=0;$1.textyoffset=0;$1.textgaps=0;$1.alttext="";$1.bordercolor="unset";$1.backgroundcolor="unset";$1.inkspread=0;$1.width=0;$1.barratio=1;$1.spaceratio=1;$1.showborder=false;$1.borderleft=10;$1.borderright=10;$1.bordertop=1;$1.borderbottom=1;$1.borderwidth=.5;$1.guardwhitespace=false;$1.guardleftpos=0;$1.guardleftypos=0;$1.guardrightpos=0;$1.guardrightypos=0;$1.guardwidth=7;$1.guardheight=7;$F($1.args,function(){var _7=$k[--$j];$1[$k[--$j]]=_7});var _9=$1.opt;for(var _E=_9.size,_D=_9.keys(),_C=0;_C<_E;_C++){var _A=_D.next().value;$1[_A]=_9.get(_A)}$1.barcolor=""+$1.barcolor;$1.textcolor=""+$1.textcolor;$1.textxalign=""+$1.textxalign;$1.textyalign=""+$1.textyalign;$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.textgaps=+$1.textgaps;$1.alttext=""+$1.alttext;$1.bordercolor=""+$1.bordercolor;$1.backgroundcolor=""+$1.backgroundcolor;$1.inkspread=+$1.inkspread;$1.width=+$1.width;$1.barratio=+$1.barratio;$1.spaceratio=+$1.spaceratio;$1.borderleft=+$1.borderleft;$1.borderright=+$1.borderright;$1.bordertop=+$1.bordertop;$1.borderbottom=+$1.borderbottom;$1.borderwidth=+$1.borderwidth;$1.guardleftpos=+$1.guardleftpos;$1.guardleftypos=+$1.guardleftypos;$1.guardrightpos=+$1.guardrightpos;$1.guardrightypos=+$1.guardrightypos;$1.guardwidth=+$1.guardwidth;$1.guardheight=+$1.guardheight;$1.bars=$a(~~(($1.sbs.length+1)/2));$1.x=0;$1.maxh=0;for(var _k=0,_j=~~(($1.sbs.length+1)/2)*2-2;_k<=_j;_k+=1){$1.i=_k;if($1.i%2==0){$1.d=$f($f($g($1.sbs,$1.i)*$1.barratio-$1.barratio)+1);if($g($1.sbs,$1.i)!=0){$1.h=$g($1.bhs,~~($1.i/2))*72;$1.c=$f($1.d/2+$1.x);$1.y=$g($1.bbs,~~($1.i/2))*72;$1.w=$f($1.d-$1.inkspread);$p($1.bars,~~($1.i/2),$a([$1.h,$1.c,$1.y,$1.w]));if($f($1.h+$1.y)>$1.maxh){$1.maxh=$f($1.h+$1.y)}}else{$p($1.bars,~~($1.i/2),-1)}}else{$1.d=$f($f($g($1.sbs,$1.i)*$1.spaceratio-$1.spaceratio)+1)}$1.x=$f($1.x+$1.d)}$$.save();var _1P=$$.currpos();$$.translate(_1P.x,_1P.y);if($1.width!=0){$$.scale($1.width*72/$1.x,1)}$$.newpath();$$.moveto(-$1.borderleft,-$1.borderbottom);$$.rlineto($f($f($1.x+$1.borderleft)+$1.borderright),0);$$.rlineto(0,$f($f($1.maxh+$1.borderbottom)+$1.bordertop));$$.rlineto(-$f($f($1.x+$1.borderleft)+$1.borderright),0);$$.rlineto(0,-$f($f($1.maxh+$1.borderbottom)+$1.bordertop));$$.closepath();if($1.showborder){$$.save();if($ne($1.bordercolor,"unset")){$$.setcolor($1.bordercolor)}$$.setlinewidth($1.borderwidth);$$.stroke();$$.restore()}$$.save();if($ne($1.barcolor,"unset")){$$.setcolor($1.barcolor)}var _1n=$1.bars;for(var _1o=0,_1p=_1n.length;_1o<_1p;_1o++){var _1q=$g(_1n,_1o);$k[$j++]=_1q;if(_1q!=-1){$q($k[--$j]);$$.newpath();$$.setlinewidth($k[--$j]);var _1t=$k[--$j];$$.moveto($k[--$j],_1t);$$.rlineto(0,$k[--$j]);$$.stroke()}else{$j--}}$$.restore();if($ne($1.textcolor,"unset")){$$.setcolor($1.textcolor)}if($1.includetext){if($eq($1.textxalign,"unset")&&$eq($1.textyalign,"unset")&&$eq($1.alttext,"")){$1.s=0;$1.fn="";var _22=$1.txt;for(var _23=0,_24=_22.length;_23<_24;_23++){$F($g(_22,_23));var _26=$k[--$j];var _27=$k[--$j];$k[$j++]=_27;$k[$j++]=_26;if(_26!=$1.s||$ne(_27,$1.fn)){var _2A=$k[--$j];var _2B=$k[--$j];$1.s=_2A;$1.fn=_2B;$$.selectfont(_2B,_2A)}else{$j-=2}var _2C=$k[--$j];$$.moveto($k[--$j],_2C);$$.show($k[--$j],0,0)}}else{$$.selectfont($1.textfont,$1.textsize);if($eq($1.alttext,"")){$k[$j++]=Infinity;var _2I=$1.txt;for(var _2J=0,_2K=_2I.length;_2J<_2K;_2J++){$F($g($g(_2I,_2J),0))}$1.txt=$a();$1.tstr=$s($1.txt.length);for(var _2S=0,_2R=$1.txt.length-1;_2S<=_2R;_2S+=1){$p($1.tstr,_2S,$g($1.txt,_2S))}}else{$1.tstr=$1.alttext}if($1.tstr.length==0){$k[$j++]=0}else{$$.save();$$.newpath();$$.moveto(0,0);$$.charpath("0",false);var _2Y=$$.pathbbox();$$.restore();$k[$j++]=_2Y.ury}$1.textascent=$k[--$j];var _2b=$$.stringwidth($1.tstr);$1.textwidth=$f(_2b.w+($1.tstr.length-1)*$1.textgaps);$1.textxpos=$f($1.textxoffset+$f($1.x-$1.textwidth)/2);if($eq($1.textxalign,"left")){$1.textxpos=$1.textxoffset}if($eq($1.textxalign,"right")){$1.textxpos=$f($f($1.x-$1.textxoffset)-$1.textwidth)}if($eq($1.textxalign,"offleft")){$1.textxpos=-$f($1.textwidth+$1.textxoffset)}if($eq($1.textxalign,"offright")){$1.textxpos=$f($1.x+$1.textxoffset)}if($eq($1.textxalign,"justify")&&$1.textwidth<$1.x){$1.textxpos=0;$1.textgaps=$f($1.x-$1.textwidth)/($1.tstr.length-1)}$1.textypos=-$f($f($1.textyoffset+$1.textascent)+1);if($eq($1.textyalign,"above")){$1.textypos=$f($f($1.textyoffset+$1.maxh)+1)}if($eq($1.textyalign,"center")){$1.textypos=$f($1.textyoffset+$f($1.maxh-$1.textascent)/2)}$$.moveto($1.textxpos,$1.textypos);$$.show($1.tstr,$1.textgaps,0)}}if($1.guardwhitespace){$$.selectfont("OCR-B",$1.guardheight*2);if($1.guardleftpos!=0){$$.moveto($f(-$1.guardleftpos-1),$f($f($1.guardleftypos-$1.guardheight/2)-1.5));$$.show("<",0,0)}if($1.guardrightpos!=0){$$.moveto($f($f($f($1.guardrightpos+$1.x)-$1.guardwidth)+1),$f($f($1.guardrightypos-$1.guardheight/2)-1.5));$$.show(">",0,0)}}$$.restore()};$0.renmaximatrix=function(){if($0.bwipjs_dontdraw){return}var $1={};$1.args=$k[--$j];$1.barcolor="unset";$1.backgroundcolor="unset";$F($1.args,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});var _5=$1.opt;for(var _A=_5.size,_9=_5.keys(),_8=0;_8<_A;_8++){var _6=_9.next().value;$1[_6]=_5.get(_6)}$1.barcolor=""+$1.barcolor;$1.backgroundcolor=""+$1.backgroundcolor;$$.save();if($ne($1.barcolor,"unset")){$$.setcolor($1.barcolor)}$$.maxicode($1.pixs);$$.restore()};return function(bwipjs,encoder,text,opts,dontdraw){if(!$0[encoder]){throw new Error("bwipp.unknownEncoder: "+encoder)}if(typeof text!=="string"){throw new Error("bwipp.typeError: barcode text not a string ("+text+")")}opts=opts||{};if(typeof opts==="string"){var tmp=opts.split(" ");opts={};for(var i=0;i255){throw new Error("bwipp.rangeError:"+" ^NNN out-of-range ("+$0+")")}return String.fromCharCode(v)});delete opts.parse}$0.bwipjs_dontdraw=opts.dontdraw||dontdraw||false;var map=new Map;for(var id in opts){if(opts.hasOwnProperty(id)){map.set(id,opts[id])}}$$=bwipjs;$k=[text,map];$j=2;$0[encoder]();if($j){return $k.splice(0,$j)}return true}}BWIPP.VERSION="2021-02-06"; -function ToCanvas(r,t){if(typeof t=="string"){t=document.getElementById(t)||document.querySelector(t)}else if(typeof r=="string"){r=document.getElementById(r)||document.querySelector(r)}if(r instanceof HTMLCanvasElement){var i=r;r=t;t=i}else if(!(t instanceof HTMLCanvasElement)){throw"bwipjs: Not a canvas"}FixupOptions(r);Render(r,DrawingCanvas(r,t));return t}function FixupOptions(r){var t=r.scale||2;var i=+r.scaleX||t;var e=+r.scaleY||i;r.paddingleft=l(r.paddingleft,r.paddingwidth,r.padding,i);r.paddingright=l(r.paddingright,r.paddingwidth,r.padding,i);r.paddingtop=l(r.paddingtop,r.paddingheight,r.padding,e);r.paddingbottom=l(r.paddingbottom,r.paddingheight,r.padding,e);if(/^[0-9a-fA-F]{8}$/.test(""+r.backgroundcolor)){var n=r.backgroundcolor;var a=parseInt(n.substr(0,2),16)/255;var s=parseInt(n.substr(2,2),16)/255;var f=parseInt(n.substr(4,2),16)/255;var o=parseInt(n.substr(6,2),16)/255;var v=Math.floor((1-a)*(1-o)*255).toString(16);var u=Math.floor((1-s)*(1-o)*255).toString(16);var h=Math.floor((1-f)*(1-o)*255).toString(16);r.backgroundcolor=(v.length==1?"0":"")+v+(u.length==1?"0":"")+u+(h.length==1?"0":"")+h}return r;function l(r,t,i,e){if(r!=null){return r*e}if(t!=null){return t*e}return i*e||0}}var BWIPJS_OPTIONS={bcid:1,text:1,scale:1,scaleX:1,scaleY:1,rotate:1,padding:1,paddingwidth:1,paddingheight:1,paddingtop:1,paddingleft:1,paddingright:1,paddingbottom:1,backgroundcolor:1};function Render(r,t){var i=r.scale||2;var e=+r.scaleX||i;var n=+r.scaleY||e;var a=r.rotate||"N";var s=r.bcid;var f=r.text;if(!f){throw new ReferenceError("bwip-js: bar code text not specified.")}if(!s){throw new ReferenceError("bwip-js: bar code type not specified.")}var o=new BWIPJS(t);var v={};for(var u in r){if(!BWIPJS_OPTIONS[u]){v[u]=r[u]}}if(v.alttext){v.includetext=true}if(+v.height&&s!="pharmacode2"){v.height=v.height/25.4||.5}if(+v.width){v.width=v.width/25.4||0}o.scale(e,n);BWIPP()(o,s,f,v);return o.render()}function Raw(r,t,i){if(arguments.length==1){i=r;r=i.bcid;t=i.text}var e=new BWIPJS(DrawingBuiltin({}));var n=BWIPP()(e,r,t,i,true);var a={pixs:1,pixx:1,pixy:1,sbs:1,bbs:1,bhs:1,width:1,height:1};for(var s=0;s=0&&r[i].op=="l";i--);i++;if(iv.x0)n=v.x0;if(sv.y0)a=v.y0;if(fv.x1)n=v.x1;if(sv.y1)a=v.y1;if(fs.x0)t=s.x0;if(es.x1)t=s.x1;if(es.y0)i=s.y0;if(ns.y1)i=s.y1;if(no){var p=s;s=o;o=p}if(f>v){var p=f;f=v;v=p}if(s==o){this.bbox(s-u,f,s+c-u-1,v)}else{this.bbox(s,f-y+g+1,o,v+g)}i++}else if(a.op=="p"){var x=Infinity;var d=Infinity;var b=-Infinity;var _=-Infinity;var w=a.poly;if(w.length!=4){throw new Error("stroke: --not-a-rect--")}for(var n=0,m=w.length-1;nb)b=S;if(B_)_=B}var u=T(c/2);var g=T(y/2);this.bbox(x-u,d-g,b+u,_+g);e++}else{throw new Error("stroke: --not-a-line--")}}var F=this;this.cmds.push(function(){var r=T(c/2);var t=T(y/2);var i=c-r;var e=y-t;for(var n=0;ns)s=u;if(hf)f=h}this.bbox(i,a+1,s-1,f)}else if(t.op=="e"){this.bbox(t.x-t.rx,t.y-t.ry,t.x+t.rx,t.y+t.ry)}else{throw new Error("fill: --not-a-polygon--")}}var l=this;this.cmds.push(function(){for(var r=0;r9){v++}var t,u,i,e;i=s/2|0;e=f/2|0;t=v-i;if(t&1){t--}u=(4*f|0)-e;var h=t/2-1;var l=(h+1)/2|0;var c=u-2-2*l;this.bbox(0,0,v*30-i,f*3*32+f*4-e);var y=this;this.cmds.push(function(){for(var r=0;ri){var n=r;r=i;i=n}if(t>e){var n=t;t=e;e=n}r=M(r);t=M(t);i=T(i);e=T(e);if(this.minx>r)this.minx=r;if(this.maxxt)this.miny=t;if(this.maxys){for(var f=s+1;fa){T(n,a)}if(u>a){T(o,a)}}else{var v=r[e==t-1?0:e+1][1];var u=r[i==0?t-1:i-1][1];if(v>a){T(o,a)}if(u>a){T(n,a)}}}}},hexagon:function(r,t){var i=r[0][0]|0;var e=r[0][1]|0;var n=r[1][1]-r[0][1];var a=r[2][1]-r[1][1]-1;var s=r[2][0];var f=r[4][0];I=parseInt(t.substr(0,2),16);S=parseInt(t.substr(2,2),16);B=parseInt(t.substr(4,2),16);E(i,i+1,e++);for(var o=1;o=1;o--){E(i-2*o,i+1+2*o,e++)}E(i,i+1,e)},ellipse:function(r,t,i,e,n){a(r-i,t-e,r+i,t+e,n)},fill:function(r){I=parseInt(r.substr(0,2),16);S=parseInt(r.substr(2,2),16);B=parseInt(r.substr(4,2),16);t();F=[];F.min=Infinity},text:function(r,t,i,e,n){r=r|0;t=t|0;I=parseInt(e.substr(0,2),16);S=parseInt(e.substr(2,2),16);B=parseInt(e.substr(4,2),16);var a=FontLib.lookup(n.name);var s=n.width|0;var f=n.height|0;var o=n.dx|0;for(var v=0;vt)F.min=t;if(!F[t]){F[t]=[r]}else{F[t].push(r)}}function E(r,t,i){while(r<=t){M(r++,i,255)}}function t(){var r=F.min;var t=F.length-1;for(var i=r;i<=t;i++){var e=F[i];if(!e){continue}e.sort(function(r,t){return r-t});var n=false;var a=0;for(var s=0,f=e.length;si){r=i;i+=a}if(t>e)t=e;t+=(s+1)/2|0;e=t-f;a*=8*a;f=8*s*s;do{x(c,i,t);p(l,r,t);p(l,r,e);x(c,i,e);h=2*u;if(h>=o){r++;i--;o+=f;u+=o}if(h<=v){t++;e--;v+=a;u+=v}}while(r<=i);while(t-ei)r.min=i;var e=r[i];if(e==null||e>t){r[i]=t}}function x(r,t,i){if(r.min>i)r.min=i;var e=r[i];if(e==null||e0?1:-1}}function DrawingCanvas(i,e){if(typeof window==null){throw new Error("DrawingCanvas: not a browser")}var n;var a=e.getContext("2d");var r=DrawingBuiltin(i);r.image=t;r.end=s;return r;function t(r,t){e.width=r;e.height=t;a.setTransform(1,0,0,1,0,0);if(/^[0-9a-fA-F]{6}$/.test(""+i.backgroundcolor)){a.fillStyle="#"+i.backgroundcolor;a.fillRect(0,0,r,t)}else{a.clearRect(0,0,r,t)}n=a.getImageData(0,0,r,t);return{buffer:n.data,ispng:false}}function s(){a.putImageData(n,0,0)}}var FontLib=function(){var v=[];var s={};var u={};var h={};var l=0;h.next=h;h.prev=h;return{lookup:t,monochrome:i,getglyph:e,getpaths:n,loadFont:r};function r(r){var t=100;var i=100;var e=null;if(arguments.length==2){e=arguments[1]}else if(arguments.length==3){t=i=+arguments[1]||100;e=arguments[2]}else if(arguments.length==4){i=+arguments[1]||100;t=+arguments[2]||100;e=arguments[3]}else{throw new Error("loadFont(): invalid number of arguments")}var n=STBTT.InitFont(toUint8Array(e));n.bwipjs_name=r;n.bwipjs_multx=t;n.bwipjs_multy=i;var a=v.push(n)-1;s[r.toUpperCase()]=a;return a}function t(r){var t=s[r.toUpperCase()];return t===undefined?1:t}function i(r){if(r){throw new Error("fontlib: monochrome not implemented")}}function e(r,t,i,e){r=r|0;t=t|0;i=+i;e=+e;if(!i||i<8){i=8}if(!e||e<8){e=i}if(r<0||r>=v.length){r=1}if(!t||t<32){t=32}var n=""+r+"c"+t+"w"+i+"h"+e;var a=u[n];if(a){a.prev.next=a.next;a.next.prev=a.prev;var s=h;s.next.prev=a;a.next=s.next;a.prev=s;s.next=a;return a}var f=v[r];var a=STBTT.GetGlyph(f,t,i*f.bwipjs_multx/100,e*f.bwipjs_multy/100);a.bytes=a.pixels;a.cachekey=n;a.offset=0;if(l>250){var s=h;var o=s.prev;o.prev.next=s;s.prev=o.prev;o.next=o.prev=null;delete u[o.cachekey]}else{l++}u[n]=a;var s=h;s.next.prev=a;a.next=s.next;a.prev=s;s.next=a;return a}function n(r,t,i,e){r=r|0;t=t|0;i=+i;e=+e;if(!i||i<8){i=8}if(!e||e<8){e=i}if(r<0||r>=v.length){r=1}if(!t||t<32){t=32}var n=v[r];return STBTT.GetPaths(n,t,i*n.bwipjs_multx/100,e*n.bwipjs_multy/100)}}();var STBTT=function(){"use strict";var W=1,N=2,O=3,p=4,x=0,r=1,t=2,d=3,i=0,e=1,n=2,a=3,s=4,f=0,b=1,o=2,_=10;var D=Math.floor;var v=Math.ceil;var z=Math.sqrt;var j=Math.abs;function U(r){var t=[];for(var i=0;ir.length||t<0?r.length:t}function R(r,t){w(r,r.cursor+t)}function G(r,t){var i=0;for(var e=0;er.length||i>r.length-t){return m()}var e=r.subarray(t,t+i);e.cursor=0;return e}function I(r){var t=r.cursor;var i=G(r,2);if(i){var e=J(r);R(r,e*i);R(r,G(r,e)-1)}return k(r,t,r.cursor-t)}function P(r){var t=J(r);if(t>=32&&t<=246){return t-139}else if(t>=247&&t<=250){return(t-247)*256+J(r)+108}else if(t>=251&&t<=254){return-(t-251)*256-J(r)-108}else if(t==28){return G(r,2)}else if(t==29){return G(r,4)}return 0}function h(r){var t=u(r);if(t==30){R(r,1);while(r.cursor>4==15){break}}}else{P(r)}}function l(r,t){w(r,0);while(r.cursor=28){h(r)}e=r.cursor;n=J(r);if(n==12){n=J(r)|256}if(n==t){return k(r,i,e-i)}}return k(r,0,0)}function c(r,t,i,e){var n=l(r,t);for(var a=0;a>0:r}function X(r,t){return r[t]*256+r[t+1]}function Y(r,t){var i=r[t]*256+r[t+1];return i&32768?(4294901760|i)>>0:i}function B(r,t){return(r[t]<<24)+(r[t+1]<<16)+(r[t+2]<<8)+r[t+3]}function F(r,t,i){var e=X(r,t+4);var n=t+12;for(var a=0;a=s&&t>1,v=X(i,e+8)>>1,u=X(i,e+10),h=X(i,e+12)>>1,l=e+14,c=l;if(t>65535){return 0}if(t>=X(i,c+h*2)){c+=h*2}c-=2;while(u){v>>=1;var y=X(i,c+v*2);if(t>y){c+=v*2}--u}c+=2;var g,p,x=c-l>>>1;p=X(i,e+14+o*2+2+2*x);if(t>1);var m=B(i,e+16+w*12);var k=B(i,e+16+w*12+4);if(tk){b=w+1}else{var I=B(i,e+16+w*12+8);if(n==12){return I+t-m}else{return I}}}return 0}return 0}function H(r,t,i,e,n,a){r.type=t;r.x=i;r.y=e;r.cx=n;r.cy=a}function $(r,t){var i,e;if(t>=r.numGlyphs){return-1}if(r.indexToLocFormat>=2){return-1}if(r.indexToLocFormat==0){i=r.glyf+X(r.data,r.loca+t*2)*2;e=r.glyf+X(r.data,r.loca+t*2+2)*2}else{i=r.glyf+B(r.data,r.loca+t*4);e=r.glyf+B(r.data,r.loca+t*4+4)}return i==e?-1:i}function E(r,t,i){if(r.cff.length){fr(r,t,i)}else{var e=$(r,t);if(e<0){return 0}i.x0=Y(r.data,e+2);i.y0=Y(r.data,e+4);i.x1=Y(r.data,e+6);i.y1=Y(r.data,e+8)}return 1}function Q(r,t,i,e,n,a,s,f,o,v){if(e){if(i){H(r[t++],O,o+s>>1,v+f>>1,o,v)}H(r[t++],O,n,a,s,f)}else{if(i){H(r[t++],O,n,a,o,v)}else{H(r[t++],N,n,a,0,0)}}return t}function C(r,t){var i=r.data,e=$(r,t);if(e<0){return null}var n=[];var a=Y(i,e);if(a>0){var s=0,f,o,v=0,u,h,l,c=0,y,g=0,p,x,d,b,_,w,m,k;var I=e+10;var S=X(i,e+10+a*2);var B=i.subarray(e+10+a*2+2+S);var F=0;h=1+X(i,I+a*2-2);u=h+2*a;n=U(u);l=0;f=0;y=u-h;for(o=0;o>1;w=x+n[y+o+1].y>>1}else{_=n[y+o+1].x;w=n[y+o+1].y;++o}}else{_=p;w=x}H(n[E++],W,_,w,0,0);c=0;l=1+X(i,I+v*2);++v}else{if(!(s&1)){if(c){H(n[E++],O,d+p>>1,b+x>>1,d,b)}d=p;b=x;c=1}else{if(c){H(n[E++],O,p,x,d,b)}else{H(n[E++],N,p,x,0,0)}c=0}}}n.length=Q(n,E,c,g,_,w,m,k,d,b)}else if(a==-1){var C=1;var j=e+10;while(C){var s,R,G=[1,0,0,1,0,0];s=Y(i,j);j+=2;R=Y(i,j);j+=2;if(s&2){if(s&1){G[4]=Y(i,j);j+=2;G[5]=Y(i,j);j+=2}else{G[4]=J(i,j);j+=1;G[5]=J(i,j);j+=1}}if(s&1<<3){G[0]=G[3]=Y(i,j)/16384;j+=2;G[1]=G[2]=0}else if(s&1<<6){G[0]=Y(i,j)/16384;j+=2;G[1]=G[2]=0;G[3]=Y(i,j)/16384;j+=2}else if(s&1<<7){G[0]=Y(i,j)/16384;j+=2;G[1]=Y(i,j)/16384;j+=2;G[2]=Y(i,j)/16384;j+=2;G[3]=Y(i,j)/16384;j+=2}var u=z(G[0]*G[0]+G[1]*G[1]);var h=z(G[2]*G[2]+G[3]*G[3]);var P=or(r,R);if(P.length>0){for(var o=0,L=P.length;or.max_x||!r.started){r.max_x=t}if(i>r.max_y||!r.started){r.max_y=i}if(t=33900){e=32768}else if(i>=1240){e=1131}t+=e;if(t<0||t>=i){return m()}return L(r,t)}function er(r,t){var i=r.fdselect;var e,n,a,s,f,o=-1,v;w(i,0);f=J(i);if(f==0){R(i,t);o=J(i)}else if(f==3){e=G(i,2);n=G(i,2);for(v=0;v=n&&t=s){break}rr(i,0,l[o]);o++;if(o>=s){break}rr(i,l[o],0);o++}break;case 6:if(s<1){return 0}for(;;){if(o>=s){break}rr(i,l[o],0);o++;if(o>=s){break}rr(i,0,l[o]);o++}break;case 31:if(s<4){return 0}for(;;){if(o+3>=s){break}tr(i,l[o],0,l[o+1],l[o+2],s-o==5?l[o+4]:0,l[o+3]);o+=4;if(o+3>=s){break}tr(i,0,l[o],l[o+1],l[o+2],l[o+3],s-o==5?l[o+4]:0);o+=4}break;case 30:if(s<4){return 0}for(;;){if(o+3>=s){break}tr(i,0,l[o],l[o+1],l[o+2],l[o+3],s-o==5?l[o+4]:0);o+=4;if(o+3>=s){break}tr(i,l[o],0,l[o+1],l[o+2],s-o==5?l[o+4]:0,l[o+3]);o+=4}break;case 8:if(s<6){return 0}for(;o+5=s){return 0}rr(i,l[o],l[o+1]);break;case 25:if(s<8){return 0}for(;o+1=s){return 0}tr(i,l[o],l[o+1],l[o+2],l[o+3],l[o+4],l[o+5]);break;case 26:case 27:if(s<4){return 0}p=0;if(s&1){p=l[o];o++}for(;o+3=10){return 0}c[a++]=g;g=ir(v==10?y:r.gsubrs,f);if(g.length==0){return 0}g.cursor=0;h=0;break;case 11:if(a<=0){return 0}g=c[--a];h=0;break;case 14:V(i);return 1;case 12:var x,d,b,_,w,m,k,I,S,B,F,M,T,E,C=J(g);switch(C){case 34:if(s<7){return 0}x=l[0];d=l[1];I=l[2];b=l[3];_=l[4];w=l[5];m=l[6];tr(i,x,0,d,I,b,0);tr(i,_,0,w,-I,m,0);break;case 35:if(s<13){return 0}x=l[0];k=l[1];d=l[2];I=l[3];b=l[4];S=l[5];_=l[6];B=l[7];w=l[8];F=l[9];m=l[10];M=l[11];tr(i,x,k,d,I,b,S);tr(i,_,B,w,F,m,M);break;case 36:if(s<9){return 0}x=l[0];k=l[1];d=l[2];I=l[3];b=l[4];_=l[5];w=l[6];F=l[7];m=l[8];tr(i,x,k,d,I,b,0);tr(i,_,0,w,F,m,-(k+I+F));break;case 37:if(s<11){return 0}x=l[0];k=l[1];d=l[2];I=l[3];b=l[4];S=l[5];_=l[6];B=l[7];w=l[8];F=l[9];m=M=l[10];T=x+d+b+_+w;E=k+I+S+B+F;if(j(T)>j(E)){M=-E}else{m=-T}tr(i,x,k,d,I,b,S);tr(i,_,B,w,F,m,M);break;default:return 0}break;default:if(v!=255&&v!=28&&(v<32||v>254)){return 0}if(v==255){p=G(g,4)/65536}else{R(g,-1);p=P(g)}if(s>=48){return 0}l[s++]=p;h=0;break}if(h){s=0}}return 0}function ar(){return{started:0,first_x:0,first_y:0,x:0,y:0,min_x:0,max_x:0,min_y:0,max_y:0,vertices:[]}}function sr(r,t){var i=ar();if(nr(r,t,i)){return i.vertices}return null}function fr(r,t,i){var e=ar();var n=nr(r,t,e);i.x0=n?e.min_x:0;i.y0=n?e.min_y:0;i.x1=n?e.max_x:0;i.y1=n?e.max_y:0;return n&&e.vertices?e.vertices.length:0}function or(r,t){if(!r.cff.length){return C(r,t)}else{return sr(r,t)}}function vr(r,t){var i=X(r.data,r.hhea+34);if(ti.ey){return}if(si.ey){a+=(a-e)*(i.ey-s)/(s-n);s=i.ey}if(e<=t&&a<=t){r[t]+=i.direction*(s-n)}else if(e>=t+1&&a>=t+1){}else{r[t]+=i.direction*(s-n)*(1-(e-t+(a-t))/2)}}function xr(r,t,i,e,n){var a=n+1;while(e){if(e.fdx==0){var s=e.fx;if(s=0){pr(r,s,e,s,n,s,a);pr(t,s+1,e,s,n,s,a)}else{pr(t,0,e,s,n,s,a)}}}else{var s=e.fx,f=e.fdx,o=s+f,v,u,h,l,c=e.fdy;if(e.sy>n){v=s+f*(e.sy-n);h=e.sy}else{v=s;h=n}if(e.ey=0&&u>=0&&vu){h=a-(h-n);l=a-(l-n);p=h,h=l,l=p;p=u,u=v,v=p;f=-f;c=-c;p=s,s=o,o=p}x=v|0;d=u|0;b=(x+1-s)*c+n;w=e.direction;m=w*(b-h);r[x]+=m*(1-(v-x+(x+1-x))/2);_=w*c;for(g=x+1;gd){pr(r,g,e,s,k,x,B);pr(r,g,e,x,B,d,F);pr(r,g,e,d,F,I,S)}else if(Id){pr(r,g,e,s,k,d,F);pr(r,g,e,d,F,x,B);pr(r,g,e,x,B,I,S)}else if(sx){pr(r,g,e,s,k,x,B);pr(r,g,e,x,B,I,S)}else if(Ix){pr(r,g,e,s,k,x,B);pr(r,g,e,x,B,I,S)}else if(sd){pr(r,g,e,s,k,d,F);pr(r,g,e,d,F,I,S)}else if(Id){pr(r,g,e,s,k,d,F);pr(r,g,e,d,F,I,S)}else{pr(r,g,e,s,k,I,S)}}}}e=e.next}}function dr(r,t,i,e,n,a){e|=0,n|=0,a|=0;var s=null,f;var o=a,v=0,u;var h=new Float32Array(r.w*2+1);var l=h.subarray(r.w);var c=0;t[i].y0=a+r.h+1;while(v>>0;if(w>255){w=255}r.pixels[v*r.stride+u]=w}p=s;while(p){f=p;f.fx+=f.fdx;p=f.next}++o;++v}}function br(r,t){for(var i=1;i0&&e.y012){var e,n,a,s,f,o=i>>1,v=r[t].y0=s){break}e=r[t+a];r[t+a]=r[t+s];r[t+s]=e;++a;--s}if(st[d+g].y:t[d+y].y16){return 1}if(h*h+l*l>f){kr(r,t,i,(t+e)/2,(i+n)/2,v,u,f,o+1);kr(r,v,u,(e+a)/2,(n+s)/2,a,s,f,o+1)}else{r.push({x:a,y:s})}return 1}function Ir(r,t,i,e,n,a,s,f,o,v,u){var h=e-t,l=n-i,c=a-e,y=s-n,g=f-a,p=o-s,x=f-t,d=o-i,b=z(h*h+l*l)+z(c*c+y*y)+z(g*g+p*p),_=z(x*x+d*d),w=b*b-_*_;if(u>16){return}if(w>v){var m=(t+e)/2,k=(i+n)/2,I=(e+a)/2,S=(n+s)/2,B=(a+f)/2,F=(s+o)/2,M=(m+I)/2,T=(k+S)/2,E=(I+B)/2,C=(S+F)/2,j=(M+E)/2,R=(T+C)/2;Ir(r,t,i,m,k,M,T,j,R,v,u+1);Ir(r,j,R,E,C,B,F,f,o,v,u+1)}else{r.push({x:f,y:o})}}function Sr(r,t,i){var e=[],n=t*t,a=-1,s=0,f=0,o=0;for(var v=0,u=r.length;v=0){i[a]=e.length-s}++a;s=e.length;f=r[v].x,o=r[v].y;e.push({x:f,y:o});break;case N:f=r[v].x,o=r[v].y;e.push({x:f,y:o});break;case O:kr(e,f,o,r[v].cx,r[v].cy,r[v].x,r[v].y,n,0);f=r[v].x,o=r[v].y;break;case p:Ir(e,f,o,r[v].cx,r[v].cy,r[v].cx1,r[v].cy1,r[v].x,r[v].y,n,0);f=r[v].x,o=r[v].y;break}}i[a]=e.length-s;return e}function Br(r,t,i,e,n,a,s,f,o,v){f|=0,o|=0;var u=e>n?n:e,h=[],l=Sr(i,t/u,h);if(l){mr(r,l,h,e,n,a,s,f,o,v)}}function Fr(r,t,i,e,n,a,s,f,o,v){var u=or(r,v);var h={};var l=lr(r,v,a,s,f,o);h.pixels=t;h.w=i|0;h.h=e|0;h.stride=n|0;if(h.w&&h.h){Br(h,.35,u,a,s,f,o,l.x0,l.y0,1)}}function Mr(r,t,i,e,n,a,s,f,o,v){Fr(r,t,i,e,n,a,s,f,o,T(r,v))}function Tr(r,t,i){return g(r,t,i)}function Er(r){var t={};if(!g(t,r,0)){return null}var i=hr(t);t.ascent=i.ascent;t.descent=i.descent;t.linegap=i.linegap;return t}function Cr(r,t,i,e){e=e||i;var n=i/r.ascent;var a=e/r.ascent;var s=T(r,t);if(!s&&t){return null}var f=or(r,s);var o=lr(r,s,n,a,0,0);var v=o.x1-o.x0;var u=o.y1-o.y0;var h=null;if(v&&u){var l={pixels:h=new Uint8Array(v*u),w:v,h:u,stride:v};Br(l,.35,f,n,a,0,0,o.x0,o.y0,1)}var c=vr(r,s);return{glyph:s,pixels:h,width:v,height:u,top:-o.y0,left:o.x0,advance:D(c.advanceWidth*n)}}function jr(r,t,i,e){e=e||i;var n=i/r.ascent;var a=e/r.ascent;var s=T(r,t);if(!s&&t){return null}var f=or(r,s);var o=vr(r,s);var v=0;var u=0;var h=[];if(f){for(var l=0,c=f.length;lv)v=g.y;if(g.y=0&&$k[i]!==Infinity;i--);if(i<0){throw new Error("array-marker-not-found")}a=$k.splice(i+1,$j-1-i);$j=i}else if(!(a instanceof Array)){a=new Array(+arguments[0]);for(var i=0,l=a.length;i=0&&$k[mark]!==Infinity;mark-=2){if($k[mark-1]===Infinity){throw new Error("dict-malformed-stack")}}if(mark<0){throw"dict-marker-not-found"}var d=new Map;for(var i=mark+1;i<$j;i+=2){var k=$k[i];var t=typeof k;if(t=="number"||t=="string"){d.set(k,$k[i+1])}else if(k instanceof Uint8Array){d.set($z(k),$k[i+1])}else{throw"dict-not-a-valid-key("+k+")"}}$j=mark;return d}function $s(v){var t=typeof v;if(t==="number"){return new Uint8Array(v)}if(t!=="string"){v=""+v}var s=new Uint8Array(v.length);for(var i=0;i=0;i--){d[o+i]=s[i]}}}else if(d instanceof Array){var darr=d.b;var doff=o+d.o;var sarr=s.b;var soff=s.o;for(var i=0,l=s.length;i0&&$k[--$j]!==Infinity);}function $m(){for(var i=$j-1;i>=0&&$k[i]!==Infinity;i--);return $j-i-1}function $q(a){for(var i=0,l=a.length,b=a.b,o=a.o;ib}function $ge(a,b){if(a instanceof Uint8Array){a=$z(a)}if(b instanceof Uint8Array){b=$z(b)}return a>=b}function $an(a,b){return typeof a==="boolean"?a&&b:a&b}function $or(a,b){return typeof a==="boolean"?a||b:a|b}function $xo(a,b){return typeof a==="boolean"?!a&&b||a&&!b:a^b}function $nt(a){return typeof a=="boolean"?!a:~a}var $f=function(fa){return function(v){return Number.isInteger(v)?v:(fa[0]=v,fa[0])}}(new Float32Array(1));function $stack(){console.log("[[[");for(var i=$j-1;i>=0;i--){console.log(tostring($k[i]))}console.log("]]]");function tostring(v){if(v===null){return"null"}else if(v===undefined){return""}else if(v instanceof Array){var s="[";for(var j=v.o,a=v.b,l=v.length+v.o;j>"}else if(typeof v==="string"){return'"'+v+'"'}else{return""+v}}}$0.raiseerror=function(){$p($0.$error,"errorinfo",$k[--$j]);$p($0.$error,"errorname",$k[--$j]);$p($0.$error,"command",null);$p($0.$error,"newerror",true);throw new Error($z($0.$error.get("errorname"))+": "+$z($0.$error.get("errorinfo")))};$0.parseinput=function(){var $1={};$1.fncvals=$k[--$j];$1.barcode=$k[--$j];var _2="parse";$1[_2]=$g($1.fncvals,_2);delete $1.fncvals[_2];var _6="parsefnc";$1[_6]=$g($1.fncvals,_6);delete $1.fncvals[_6];var _A="parseonly";var _C=$g($1.fncvals,_A)!==undefined;$1[_A]=_C;delete $1.fncvals[_A];var _E="eci";var _G=$g($1.fncvals,_E)!==undefined;$1[_E]=_G;delete $1.fncvals[_E];$1.msg=$a($1.barcode.length);$1.j=0;$k[$j++]=$1.barcode;for(;;){$x($k[--$j],"^");var _M=$k[--$j];var _N=$k[--$j];$k[$j++]=_M;$k[$j++]=_N.length;$k[$j++]=$1.msg;$k[$j++]=$1.j;$k[$j++]=_N;$k[$j++]=Infinity;var _Q=$k[--$j];var _R=$k[--$j];$k[$j++]=_Q;$F(_R);var _S=$a();var _T=$k[--$j];$P($k[--$j],_T,_S);$1.j=$f($k[--$j]+$1.j);if($k[--$j]){$j--;for(var _Y=0,_Z=1;_Y<_Z;_Y++){if($an($nt($1.parse),$nt($1.parsefnc))){$p($1.msg,$1.j,94);$1.j=$f($1.j+1);break}$p($1.msg,$1.j,94);$1.j=$f($1.j+1);if($1.parse){var _j=$k[--$j];$k[$j++]=_j;if(_j.length>=3){var _k=$k[--$j];var _l=$G(_k,0,3);$k[$j++]=_k;$k[$j++]=true;for(var _m=0,_n=_l.length;_m<_n;_m++){var _o=$g(_l,_m);if(_o<48||_o>57){$j--;$k[$j++]=false}}if($k[--$j]){var _q=$k[--$j];var _s=~~$z($G(_q,0,3));$k[$j++]=_q;$k[$j++]=_s;if(_s>255){$j-=2;$k[$j++]="bwipp.invalidOrdinal";$k[$j++]="Ordinal must be 000 to 255";$0.raiseerror()}$1.j=$f($1.j-1);$p($1.msg,$1.j,$k[--$j]);$1.j=$f($1.j+1);var _y=$k[--$j];$k[$j++]=$G(_y,3,_y.length-3)}}}if($or($1.parseonly,$nt($1.parsefnc))||$g($1.msg,$f($1.j-1))!=94){break}$1.j=$f($1.j-1);var _16=$k[--$j];$k[$j++]=_16;if(_16.length<3){$j--;$k[$j++]="bwipp.truncatedFNC";$k[$j++]="Function character truncated";$0.raiseerror()}var _17=$k[--$j];$k[$j++]=_17;if($g(_17,0)==94){$p($1.msg,$1.j,94);$1.j=$f($1.j+1);var _1C=$k[--$j];$k[$j++]=$G(_1C,1,_1C.length-1);break}var _1E=$k[--$j];$k[$j++]=_1E;if($eq($G(_1E,0,3),"ECI")&&$1.eci){var _1H=$k[--$j];$k[$j++]=_1H;if(_1H.length<9){$j--;$k[$j++]="bwipp.truncatedECI";$k[$j++]="ECI truncated";$0.raiseerror()}var _1I=$k[--$j];var _1J=$G(_1I,3,6);$k[$j++]=_1I;$k[$j++]=_1J;for(var _1K=0,_1L=_1J.length;_1K<_1L;_1K++){var _1M=$g(_1J,_1K);if(_1M<48||_1M>57){$j-=2;$k[$j++]="bwipp.invalidECI";$k[$j++]="ECI must be 000000 to 999999";$0.raiseerror()}}var _1N=$k[--$j];$k[$j++]=0;$F(_1N,function(){var _1O=$k[--$j];var _1P=$k[--$j];$k[$j++]=$f(_1P-$f(_1O-48))*10});$p($1.msg,$1.j,~~($k[--$j]/10)-1e6);$1.j=$f($1.j+1);var _1U=$k[--$j];$k[$j++]=$G(_1U,9,_1U.length-9);break}var _1W=$k[--$j];$k[$j++]=_1W;if(_1W.length<4){$j--;$k[$j++]="bwipp.truncatedFNC";$k[$j++]="Function character truncated";$0.raiseerror()}var _1X=$k[--$j];var _1Y=$G(_1X,0,4);var _1a=$g($1.fncvals,_1Y)!==undefined;$k[$j++]=_1X;$k[$j++]=_1Y;if(!_1a){var _1b=$k[--$j];var _1c=$s(_1b.length+28);$P(_1c,28,_1b);$P(_1c,0,"Unknown function character: ");var _1d=$k[--$j];$k[$j++]=_1c;$k[$j++]=_1d;$j--;var _1e=$k[--$j];$k[$j++]="bwipp.unknownFNC";$k[$j++]=_1e;$0.raiseerror()}$p($1.msg,$1.j,$g($1.fncvals,$k[--$j]));$1.j=$f($1.j+1);var _1l=$k[--$j];$k[$j++]=$G(_1l,4,_1l.length-4);break}}else{break}}if($nt($1.parseonly)){$k[$j++]=$G($1.msg,0,$1.j)}else{$k[$j++]=$s($1.j);for(var _1v=0,_1u=$f($1.j-1);_1v<=_1u;_1v+=1){var _1w=$k[--$j];$p(_1w,_1v,$g($1.msg,_1v));$k[$j++]=_1w}}};$0.gs1lint=function(){var $1={};$1.vals=$k[--$j];$1.ais=$k[--$j];$1.lintnumeric=function(){var _2=$k[--$j];$k[$j++]=true;$F(_2,function(){var _3=$k[--$j];if(_3<48||_3>57){$j--;$k[$j++]=false;return true}});if($nt($k[--$j])){$j--;$k[$j++]="bwipp.GS1notNumeric";$k[$j++]="Not numeric";$k[$j++]=false;return true}};$1.lintcset82=function(){var _5=$k[--$j];$k[$j++]=true;$F(_5,function(){var _6=$s(1);$p(_6,0,$k[--$j]);$x("!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",_6);if($nt($k[--$j])){$j-=2;$k[$j++]=false;return true}$j-=3});if($nt($k[--$j])){$j--;$k[$j++]="bwipp.GS1badCSET82character";$k[$j++]="Invalid CSET 82 character";$k[$j++]=false;return true}};$1.lintcset39=function(){var _A=$k[--$j];$k[$j++]=true;$F(_A,function(){var _B=$s(1);$p(_B,0,$k[--$j]);$x("#-/0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",_B);if($nt($k[--$j])){$j-=2;$k[$j++]=false;return true}$j-=3});if($nt($k[--$j])){$j--;$k[$j++]="bwipp.GS1badCSET39character";$k[$j++]="Invalid CSET 39 character";$k[$j++]=false;return true}};$1.lintkey=function(){var _F=$k[--$j];$k[$j++]=_F;if(_F.length<2){$j-=2;$k[$j++]="bwipp.GS1keyTooShort";$k[$j++]="Key is too short";$k[$j++]=false;return true}var _G=$k[--$j];var _H=$g(_G,0);var _I=$g(_G,1);if(_H<48||_H>57||(_I<48||_I>57)){$j--;$k[$j++]="bwipp.GS1badGCP";$k[$j++]="Non-numeric company prefix";$k[$j++]=false;return true}};$1.lintimporteridx=function(){$x("-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",$k[--$j]);if($nt($k[--$j])){$j-=2;$k[$j++]="bwipp.GS1badImporterIndex";$k[$j++]="Invalid importer index";$k[$j++]=false;return true}$j-=3};$1.lintcsum=function(){$k[$j++]=Infinity;var _L=$k[--$j];var _M=$k[--$j];var _N=_M.length%2==0?3:1;$k[$j++]=_L;$k[$j++]=_N;$F(_M,function(){var _O=$k[--$j];var _P=$k[--$j];$k[$j++]=$f(_O-48)*_P;$k[$j++]=$f(4-_P)});$j--;var _Q=$m()+1;$k[$j++]=0;for(var _R=0,_S=_Q-1;_R<_S;_R++){var _T=$k[--$j];var _U=$k[--$j];$k[$j++]=$f(_U+_T)}var _V=$k[--$j];var _W=$k[--$j];$k[$j++]=_V;$k[$j++]=_W;$j--;if($k[--$j]%10!=0){$j--;$k[$j++]="bwipp.GS1badChecksum";$k[$j++]="Bad checksum";$k[$j++]=false;return true}};$k[$j++]=Infinity;$k[$j++]=0;for(var _Y=0,_Z="!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".length;_Y<_Z;_Y++){var _b=$k[--$j];$k[$j++]=$g("!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",_Y);$k[$j++]=_b;$k[$j++]=$f(_b+1)}$j--;$1.cset82=$d();$k[$j++]=Infinity;$k[$j++]=0;for(var _d=0,_e="23456789ABCDEFGHJKLMNPQRSTUVWXYZ".length;_d<_e;_d++){var _g=$k[--$j];$k[$j++]=$g("23456789ABCDEFGHJKLMNPQRSTUVWXYZ",_d);$k[$j++]=_g;$k[$j++]=$f(_g+1)}$j--;$1.cset32=$d();$1.lintcsumalpha=function(){var _i=$k[--$j];$k[$j++]=_i;if(_i.length<2){$j-=2;$k[$j++]="bwipp.GS1alphaTooShort";$k[$j++]="Alphanumeric string is too short to check";$k[$j++]=false;return true}var _j=$k[--$j];$k[$j++]=_j;$k[$j++]=_j.length-2;$k[$j++]=$G(_j,0,_j.length-2);$k[$j++]=Infinity;var _l=$k[--$j];var _m=$k[--$j];$k[$j++]=_l;$F(_m,function(){var _n=$k[--$j];var _p=$g($1.cset82,_n)!==undefined;$k[$j++]=_n;if(_p){var _s=$g($1.cset82,$k[--$j]);$k[$j++]=_s}else{$k[$j++]=-1;return true}});var _t=$k[--$j];$k[$j++]=_t;if(_t==-1){$l();$j-=3;$k[$j++]="bwipp.GS1UnknownCSET82Character";$k[$j++]="Unknown CSET 82 character";$k[$j++]=false;return true}$r($a($m()));var _w=$k[--$j];var _x=$k[--$j];$k[$j++]=_w;$k[$j++]=_x;$j--;var _y=$k[--$j];var _z=$k[--$j];var _11=$G($k[--$j],_z,2);$k[$j++]=_y;$k[$j++]=_11;$k[$j++]=Infinity;var _12=$k[--$j];var _13=$k[--$j];$k[$j++]=_12;$F(_13,function(){var _14=$k[--$j];var _16=$g($1.cset32,_14)!==undefined;$k[$j++]=_14;if(_16){var _19=$g($1.cset32,$k[--$j]);$k[$j++]=_19}else{$k[$j++]=-1;return true}});var _1A=$k[--$j];$k[$j++]=_1A;if(_1A==-1){$l();$j-=2;$k[$j++]="bwipp.GS1UnknownCSET32Character";$k[$j++]="Unknown CSET 32 character";$k[$j++]=false;return true}$r($a($m()));var _1D=$k[--$j];var _1E=$k[--$j];$k[$j++]=_1D;$k[$j++]=_1E;$j--;var _1F=$k[--$j];var _1I=$k[--$j];var _1J=$a([2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83]);var _1K=_1I.length;$k[$j++]=$f(($g(_1F,0)<<5)+$g(_1F,1));$k[$j++]=_1I;$k[$j++]=_1J;$k[$j++]=_1K;if(_1K>_1J.length){$j-=5;$k[$j++]="bwipp.GS1alphaTooLong";$k[$j++]="Alphanumeric string is too long to check";$k[$j++]=false;return true}var _1L=$k[--$j];var _1N=$G($k[--$j],0,_1L);for(var _1O=0,_1P=_1N.length;_1O<_1P;_1O++){var _1R=$k[--$j];$k[$j++]=$g(_1N,_1O);$k[$j++]=_1R}var _1S=$k[--$j];$k[$j++]=0;$F(_1S,function(){var _1T=$k[--$j];var _1U=$k[--$j];var _1V=$k[--$j];$k[$j++]=$f(_1U+_1V*_1T)});var _1W=$k[--$j];if($k[--$j]!=_1W%1021){$j--;$k[$j++]="bwipp.GS1badAlphaCheckCharacters";$k[$j++]="Bad alphanumeric check characters";$k[$j++]=false;return true}};$k[$j++]=Infinity;var _1Y=$a(["004","008","010","012","016","020","024","028","031","032","036","040","044","048","050","051","052","056","060","064","068","070","072","074","076","084","086","090","092","096","100","104","108","112","116","120","124","132","136","140","144","148","152","156","158","162","166","170","174","175","178","180","184","188","191","192","196","203","204","208","212","214","218","222","226","231","232","233","234","238","239","242","246","248","250","254","258","260","262","266","268","270","275","276","288","292","296","300","304","308","312","316","320","324","328","332","334","336","340","344","348","352","356","360","364","368","372","376","380","384","388","392","398","400","404","408","410","414","417","418","422","426","428","430","434","438","440","442","446","450","454","458","462","466","470","474","478","480","484","492","496","498","499","500","504","508","512","516","520","524","528","531","533","534","535","540","548","554","558","562","566","570","574","578","580","581","583","584","585","586","591","598","600","604","608","612","616","620","624","626","630","634","638","642","643","646","652","654","659","660","662","663","666","670","674","678","682","686","688","690","694","702","703","704","705","706","710","716","724","728","729","732","740","744","748","752","756","760","762","764","768","772","776","780","784","788","792","795","796","798","800","804","807","818","826","831","832","833","834","840","850","854","858","860","862","876","882","887","894"]);for(var _1Z=0,_1a=_1Y.length;_1Z<_1a;_1Z++){var _1b=$g(_1Y,_1Z);$k[$j++]=_1b;$k[$j++]=_1b}$1.iso3166=$d();$1.lintiso3166=function(){var _1f=$g($1.iso3166,$k[--$j])!==undefined;if(!_1f){$j--;$k[$j++]="bwipp.GS1UnknownCountry";$k[$j++]="Unknown country code";$k[$j++]=false;return true}};$1.lintiso3166999=function(){var _1g=$k[--$j];$k[$j++]=_1g;if($ne(_1g,"999")){var _1j=$g($1.iso3166,$k[--$j])!==undefined;if(!_1j){$j--;$k[$j++]="bwipp.GS1UnknownCountryOr999";$k[$j++]="Unknown country code or not 999";$k[$j++]=false;return true}}else{$j--}};$1.lintiso3166list=function(){var _1k=$k[--$j];$k[$j++]=_1k;if(_1k.length%3!=0){$j-=2;$k[$j++]="bwipp.GS1BadCountryListLength";$k[$j++]="Not a group of three-digit country codes";$k[$j++]=false;return true}var _1l=$k[--$j];$k[$j++]=_1l;$k[$j++]=true;for(var _1n=0,_1m=_1l.length-1;_1n<=_1m;_1n+=3){var _1o=$k[--$j];var _1p=$k[--$j];var _1s=$g($1.iso3166,$G(_1p,_1n,3))!==undefined;$k[$j++]=_1p;$k[$j++]=_1o;if(!_1s){$j-=2;$k[$j++]=false;break}}if($nt($k[--$j])){$j--;$k[$j++]="bwipp.GS1UnknownCountry";$k[$j++]="Unknown country code";$k[$j++]=false;return true}$j--};$k[$j++]=Infinity;var _1u=$a(["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]);for(var _1v=0,_1w=_1u.length;_1v<_1w;_1v++){var _1x=$g(_1u,_1v);$k[$j++]=_1x;$k[$j++]=_1x}$1.iso3166alpha2=$d();$1.lintiso3166alpha2=function(){var _21=$g($1.iso3166alpha2,$k[--$j])!==undefined;if(!_21){$j--;$k[$j++]="bwipp.GS1UnknownCountryAlpha";$k[$j++]="Unknown country alpha code";$k[$j++]=false;return true}};$k[$j++]=Infinity;var _22=$a(["008","012","032","036","044","048","050","051","052","060","064","068","072","084","090","096","104","108","116","124","132","136","144","152","156","170","174","188","191","192","203","208","214","222","230","232","238","242","262","270","292","320","324","328","332","340","344","348","352","356","360","364","368","376","388","392","398","400","404","408","410","414","417","418","422","426","430","434","446","454","458","462","480","484","496","498","504","512","516","524","532","533","548","554","558","566","578","586","590","598","600","604","608","634","643","646","654","682","690","694","702","704","706","710","728","748","752","756","760","764","776","780","784","788","800","807","818","826","834","840","858","860","882","886","901","927","928","929","930","931","932","933","934","936","938","940","941","943","944","946","947","948","949","950","951","952","953","955","956","957","958","959","960","961","962","963","964","965","967","968","969","970","971","972","973","975","976","977","978","979","980","981","984","985","986","990","994","997","999"]);for(var _23=0,_24=_22.length;_23<_24;_23++){var _25=$g(_22,_23);$k[$j++]=_25;$k[$j++]=_25}$1.iso4217=$d();$1.lintiso4217=function(){var _29=$g($1.iso4217,$k[--$j])!==undefined;if(!_29){$j--;$k[$j++]="bwipp.GS1UnknownCurrency";$k[$j++]="Unknown currency code";$k[$j++]=false;return true}};$1.lintiban=function(){var _2A=$k[--$j];$k[$j++]=_2A;if(_2A.length<4){$j-=2;$k[$j++]="bwipp.GS1tooShort";$k[$j++]="IBAN too short";$k[$j++]=false;return true}var _2B=$k[--$j];$k[$j++]=_2B;$k[$j++]=true;$F(_2B,function(){var _2C=$s(1);$p(_2C,0,$k[--$j]);$x("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",_2C);if($nt($k[--$j])){$j-=2;$k[$j++]=false;return true}$j-=3});if($nt($k[--$j])){$j--;$k[$j++]="bwipp.GS1badIBANcharacter";$k[$j++]="Invalid IBAN character";$k[$j++]=false;return true}var _2G=$k[--$j];$k[$j++]=_2G;$k[$j++]=_2G;$k[$j++]=Infinity;var _2H=$k[--$j];var _2I=$k[--$j];$k[$j++]=_2H;$k[$j++]=_2I;$k[$j++]=Infinity;var _2J=$k[--$j];var _2K=$k[--$j];$k[$j++]=_2J;$F(_2K);$r($m(),-4);$r($a($m()));var _2O=$k[--$j];var _2P=$k[--$j];$k[$j++]=_2O;$k[$j++]=_2P;$j--;$F($k[--$j],function(){var _2S=$f($k[--$j]-48);$k[$j++]=_2S;if(_2S>9){var _2U=$f($k[--$j]-7);$k[$j++]=~~(_2U/10);$k[$j++]=_2U%10}});$r($a($m()));var _2X=$k[--$j];var _2Y=$k[--$j];$k[$j++]=_2X;$k[$j++]=_2Y;$j--;var _2Z=$k[--$j];$k[$j++]=0;$F(_2Z,function(){var _2a=$k[--$j];var _2b=$k[--$j];$k[$j++]=$f(_2a+_2b*10)%97});if($k[--$j]!=1){$j-=2;$k[$j++]="bwipp.GS1badIBANchecksum";$k[$j++]="IBAN checksum incorrect";$k[$j++]=false;return true}var _2e=$G($k[--$j],0,2);$k[$j++]=_2e;$1.lintiso3166alpha2()};$1.lintzero=function(){if($ne($k[--$j],"0")){$j--;$k[$j++]="bwipp.GS1zeroRequired";$k[$j++]="Zero is required";$k[$j++]=false;return true}};$1.lintnonzero=function(){var _2g=$k[--$j];$k[$j++]=false;$F(_2g,function(){if($k[--$j]!=48){$j--;$k[$j++]=true}});if($nt($k[--$j])){$j--;$k[$j++]="bwipp.GS1zeroNotPermitted";$k[$j++]="Zero not permitted";$k[$j++]=false;return true}};$1.lintnozeroprefix=function(){var _2j=$k[--$j];if(_2j.length>1&&$g(_2j,0)==48){$j--;$k[$j++]="bwipp.GS1badZeroPrefix";$k[$j++]="Zero prefix is not permitted";$k[$j++]=false;return true}};$1.lintyymmd0=function(){var _2l=$k[--$j];var _2n=~~$z($G(_2l,2,2));$k[$j++]=_2l;if(_2n<1||_2n>12){$j--;$k[$j++]="bwipp.GS1badMonth";$k[$j++]="Invalid month";$k[$j++]=false;return true}var _2o=$k[--$j];var _2q=~~$z($G(_2o,0,2));var _2r=_2q-21;$k[$j++]=_2o;$k[$j++]=_2q;$k[$j++]=_2r;if(_2r>=51){$j--;var _2s=$k[--$j];$k[$j++]=$f(_2s+1900)}else{if($k[--$j]<=-50){var _2u=$k[--$j];$k[$j++]=$f(_2u+2100)}else{var _2v=$k[--$j];$k[$j++]=$f(_2v+2e3)}}var _2w=$k[--$j];$k[$j++]=_2w%400==0||_2w%4==0&&_2w%100!=0;$k[$j++]=Infinity;var _2x=$k[--$j];var _2z=$k[--$j]?29:28;$k[$j++]=_2x;$k[$j++]=31;$k[$j++]=_2z;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;var _30=$a();var _31=$k[--$j];if($g(_30,~~$z($G(_31,2,2))-1)<~~$z($G(_31,4,2))){$j--;$k[$j++]="bwipp.GS1badDay";$k[$j++]="Invalid day of month";$k[$j++]=false;return true}};$1.lintyymmdd=function(){var _35=$k[--$j];$k[$j++]=_35;if(_35.length!=6){$j--;$k[$j++]="bwipp.GS1badDateLength";$k[$j++]="Invalid length for date";$k[$j++]=false;return true}var _36=$k[--$j];$k[$j++]=_36;if(~~$z($G(_36,4,2))<1){$j--;$k[$j++]="bwipp.GS1badDay";$k[$j++]="Invalid day of month";$k[$j++]=false;return true}$1.lintyymmd0()};$1.lintyymmddhh=function(){var _38=$k[--$j];$k[$j++]=_38;if(_38.length!=8){$j--;$k[$j++]="bwipp.GS1badYYMMDDHHLength";$k[$j++]="Invalid length for date with hour";$k[$j++]=false;return true}var _39=$k[--$j];$k[$j++]=_39;if(~~$z($G(_39,6,2))>23){$j-=2;$k[$j++]="bwipp.GS1badHour";$k[$j++]="Invalid hour of day";$k[$j++]=false;return true}var _3C=$G($k[--$j],0,6);$k[$j++]=_3C;$1.lintyymmdd()};$1.linthhmm=function(){var _3D=$k[--$j];$k[$j++]=_3D;if(~~$z($G(_3D,0,2))>23){$j-=2;$k[$j++]="bwipp.GS1badHour";$k[$j++]="Invalid hour of day";$k[$j++]=false;return true}if(~~$z($G($k[--$j],2,2))>59){$j--;$k[$j++]="bwipp.GS1badMinute";$k[$j++]="Invalid minute in the hour";$k[$j++]=false;return true}};$1.lintmmoptss=function(){var _3H=$k[--$j];var _3I=_3H.length;$k[$j++]=_3H;if(_3I!=2&&_3I!=4){$j--;$k[$j++]="bwipp.GS1badTimeLength";$k[$j++]="Invalid length for optional minutes and seconds";$k[$j++]=false;return true}var _3J=$k[--$j];$k[$j++]=_3J;if(~~$z($G(_3J,0,2))>59){$j-=2;$k[$j++]="bwipp.GS1badMinute";$k[$j++]="Invalid minute in the hour";$k[$j++]=false;return true}var _3L=$k[--$j];$k[$j++]=_3L;if(_3L.length>=4){var _3M=$k[--$j];$k[$j++]=_3M;if(~~$z($G(_3M,2,2))>59){$j-=2;$k[$j++]="bwipp.GS1badSecond";$k[$j++]="Invalid second in the minute";$k[$j++]=false;return true}}$j--};$1.lintyesno=function(){var _3O=$k[--$j];if($ne(_3O,"0")&&$ne(_3O,"1")){$j--;$k[$j++]="bwipp.GS1badBoolean";$k[$j++]="Neither 0 nor 1 for yes or no";$k[$j++]=false;return true}};$1.lintwinding=function(){var _3P=$k[--$j];if($ne(_3P,"0")&&($ne(_3P,"1")&&$ne(_3P,"9"))){$j--;$k[$j++]="bwipp.GS1badWinding";$k[$j++]="Invalid winding direction";$k[$j++]=false;return true}};$1.lintpieceoftotal=function(){var _3Q=$k[--$j];$k[$j++]=_3Q;if(_3Q.length%2!=0){$j-=2;$k[$j++]="bwipp.GS1badPieceTotalLength";$k[$j++]="Invalid piece/total length";$k[$j++]=false;return true}var _3R=$k[--$j];var _3T=~~$z($G(_3R,0,~~(_3R.length/2)));$k[$j++]=_3R;$k[$j++]=_3T;if(_3T==0){$j-=3;$k[$j++]="bwipp.GS1badPieceNumber";$k[$j++]="Invalid piece number";$k[$j++]=false;return true}var _3U=$k[--$j];var _3V=$k[--$j];var _3W=~~(_3V.length/2);var _3Y=~~$z($G(_3V,_3W,_3W));$k[$j++]=_3U;$k[$j++]=_3Y;if(_3Y==0){$j-=3;$k[$j++]="bwipp.GS1badPieceTotal";$k[$j++]="Invalid total number";$k[$j++]=false;return true}var _3Z=$k[--$j];if($gt($k[--$j],_3Z)){$j--;$k[$j++]="bwipp.GS1pieceExceedsTotal";$k[$j++]="Piece number exceeds total";$k[$j++]=false;return true}};$1.lintpcenc=function(){for(;;){$x($k[--$j],"%");if($nt($k[--$j])){$j--;break}$j-=2;var _3d=$k[--$j];$k[$j++]=_3d;if(_3d.length<2){$j-=2;$k[$j++]="bwipp.GS1badPercentEscape";$k[$j++]="Invalid % escape";$k[$j++]=false;break}var _3e=$k[--$j];var _3f=$G(_3e,0,2);$k[$j++]=_3e;$k[$j++]=true;for(var _3g=0,_3h=_3f.length;_3g<_3h;_3g++){var _3j=$s(1);$p(_3j,0,$g(_3f,_3g));$x("0123456789ABCDEFabcdef",_3j);if($nt($k[--$j])){$j-=2;$k[$j++]=false;return true}$j-=3}if($nt($k[--$j])){$j-=2;$k[$j++]="bwipp.GS1badPercentChars";$k[$j++]="Invalid characters for percent encoding";$k[$j++]=false;break}}};$1.lintcouponcode=function(){var _3m=$k[--$j];$k[$j++]=_3m;$k[$j++]=true;$F(_3m,function(){var _3n=$k[--$j];if(_3n<48||_3n>57){$j--;$k[$j++]=false;return true}});if($nt($k[--$j])){$j-=2;$k[$j++]="bwipp.GS1couponNotNumeric";$k[$j++]="Coupon not numeric";$k[$j++]=false;return true}var _3p=$k[--$j];$k[$j++]=_3p;if(_3p.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortGCPVLI";$k[$j++]="Coupon too short: Missing GCP VLI";$k[$j++]=false;return true}var _3q=$k[--$j];var _3s=~~$z($G(_3q,0,1));$k[$j++]=_3q;$k[$j++]=_3s;if(_3s>6){$j-=2;$k[$j++]="bwipp.GS1couponBadGCPVLI";$k[$j++]="Coupon GCP length indicator must be 0-6";$k[$j++]=false;return true}var _3t=$k[--$j];var _3u=$k[--$j];$k[$j++]=_3u;$k[$j++]=$f($f(_3t+6)+1);if($f($f(_3t+6)+1)>_3u.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShortGCP";$k[$j++]="Coupon too short: GCP truncated";$k[$j++]=false;return true}var _3v=$k[--$j];var _3w=$k[--$j];var _3x=$G(_3w,_3v,$f(_3w.length-_3v));$k[$j++]=_3x;if(_3x.length<6){$j-=2;$k[$j++]="bwipp.GS1couponTooShortOfferCode";$k[$j++]="Coupon too short: Offer Code truncated";$k[$j++]=false;return true}var _3y=$k[--$j];var _3z=$G(_3y,6,_3y.length-6);$k[$j++]=_3z;if(_3z.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortSaveValueVLI";$k[$j++]="Coupon too short: Missing Save Value VLI";$k[$j++]=false;return true}var _40=$k[--$j];var _42=~~$z($G(_40,0,1));$k[$j++]=_40;$k[$j++]=_42;if(_42<1||_42>5){$j-=2;$k[$j++]="bwipp.GS1couponBadSaveValueVLI";$k[$j++]="Coupon Save Value length indicator must be 1-5";$k[$j++]=false;return true}var _43=$k[--$j];var _44=$k[--$j];$k[$j++]=_44;$k[$j++]=$f(_43+1);if($f(_43+1)>_44.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShortSaveValue";$k[$j++]="Coupon too short: Save Value truncated";$k[$j++]=false;return true}var _45=$k[--$j];var _46=$k[--$j];var _47=$G(_46,_45,$f(_46.length-_45));$k[$j++]=_47;if(_47.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShort1stPurchaseRequirementVLI";$k[$j++]="Coupon too short: Missing 1st Purchase Requirement VLI";$k[$j++]=false;return true}var _48=$k[--$j];var _4A=~~$z($G(_48,0,1));$k[$j++]=_48;$k[$j++]=_4A;if(_4A<1||_4A>5){$j-=2;$k[$j++]="bwipp.GS1couponBad1stPurchaseRequirementVLI";$k[$j++]="Coupon 1st Purchase Requirement length indicator must be 1-5";$k[$j++]=false;return true}var _4B=$k[--$j];var _4C=$k[--$j];$k[$j++]=_4C;$k[$j++]=$f(_4B+1);if($f(_4B+1)>_4C.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShort1stPurchaseRequirement";$k[$j++]="Coupon too short: 1st Purchase Requirement truncated";$k[$j++]=false;return true}var _4D=$k[--$j];var _4E=$k[--$j];var _4F=$G(_4E,_4D,$f(_4E.length-_4D));$k[$j++]=_4F;if(_4F.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShort1stPurchaseRequirementCode";$k[$j++]="Coupon too short: Missing 1st Purchase Requirement Code";$k[$j++]=false;return true}var _4G=$k[--$j];var _4I=~~$z($G(_4G,0,1));$k[$j++]=_4G;if(_4I>4&&_4I!=9){$j-=2;$k[$j++]="bwipp.GS1couponBad1stPurchaseRequirementCode";$k[$j++]="Coupon 1st Purchase Requirement Code must be 0-4 or 9";$k[$j++]=false;return true}var _4J=$k[--$j];var _4K=$G(_4J,1,_4J.length-1);$k[$j++]=_4K;if(_4K.length<3){$j-=2;$k[$j++]="bwipp.GS1couponTooShort1stPurchaseFamilyCode";$k[$j++]="Coupon too short: 1st Purchase Family Code truncated";$k[$j++]=false;return true}var _4L=$k[--$j];var _4M=$G(_4L,3,_4L.length-3);$k[$j++]=_4M;if(_4M.length>=1){var _4N=$k[--$j];$k[$j++]=_4N;if(~~$z($G(_4N,0,1))==1){var _4P=$k[--$j];var _4Q=$G(_4P,1,_4P.length-1);$k[$j++]=_4Q;if(_4Q.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortAdditionalPurchaseRulesCode";$k[$j++]="Coupon too short: Missing Additional Purchase Rules Code";$k[$j++]=false;return true}var _4R=$k[--$j];$k[$j++]=_4R;if(~~$z($G(_4R,0,1))>3){$j-=2;$k[$j++]="bwipp.GS1couponBadAdditionalPurchaseRulesCode";$k[$j++]="Coupon Additional Purchase Rules Code must be 0-3";$k[$j++]=false;return true}var _4T=$k[--$j];var _4U=$G(_4T,1,_4T.length-1);$k[$j++]=_4U;if(_4U.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShort2ndPurchaseRequirementVLI";$k[$j++]="Coupon too short: Missing 2nd Purchase Requirement VLI";$k[$j++]=false;return true}var _4V=$k[--$j];var _4X=~~$z($G(_4V,0,1));$k[$j++]=_4V;$k[$j++]=_4X;if(_4X<1||_4X>5){$j-=2;$k[$j++]="bwipp.GS1couponBad2ndPurchaseRequirementVLI";$k[$j++]="Coupon 2nd Purchase Requirement length indicator must be 1-5";$k[$j++]=false;return true}var _4Y=$k[--$j];var _4Z=$k[--$j];$k[$j++]=_4Z;$k[$j++]=$f(_4Y+1);if($f(_4Y+1)>_4Z.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShort2ndPurchaseRequirement";$k[$j++]="Coupon too short: 2nd Purchase Requirement truncated";$k[$j++]=false;return true}var _4a=$k[--$j];var _4b=$k[--$j];var _4c=$G(_4b,_4a,$f(_4b.length-_4a));$k[$j++]=_4c;if(_4c.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShort2ndPurchaseRequirementCode";$k[$j++]="Coupon too short: Missing 2nd Purchase Requirement Code";$k[$j++]=false;return true}var _4d=$k[--$j];var _4f=~~$z($G(_4d,0,1));$k[$j++]=_4d;if(_4f>4&&_4f!=9){$j-=2;$k[$j++]="bwipp.GS1couponBad2ndPurchaseRequirementCode";$k[$j++]="Coupon 2nd Purchase Requirement Code must be 0-4 or 9";$k[$j++]=false;return true}var _4g=$k[--$j];var _4h=$G(_4g,1,_4g.length-1);$k[$j++]=_4h;if(_4h.length<3){$j-=2;$k[$j++]="bwipp.GS1couponTooShort2ndPurchaseFamilyCode";$k[$j++]="Coupon too short: 2nd Purchase Family Code truncated";$k[$j++]=false;return true}var _4i=$k[--$j];var _4j=$G(_4i,3,_4i.length-3);$k[$j++]=_4j;if(_4j.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShort2ndPurchaseGCPVLI";$k[$j++]="Coupon too short: Missing 2nd Purchase GCP VLI";$k[$j++]=false;return true}var _4k=$k[--$j];var _4m=~~$z($G(_4k,0,1));$k[$j++]=_4k;$k[$j++]=_4m;if(_4m>6&&_4m!=9){$j-=2;$k[$j++]="bwipp.GS1couponBad2ndPurchaseGCPVLI";$k[$j++]="Coupon 2nd Purchase GCP length indicator must be 0-6 or 9";$k[$j++]=false;return true}var _4n=$k[--$j];$k[$j++]=_4n;if(_4n!=9){var _4o=$k[--$j];$k[$j++]=$f(_4o+6)}else{$j--;$k[$j++]=0}var _4p=$k[--$j];var _4q=$k[--$j];$k[$j++]=_4q;$k[$j++]=$f(_4p+1);if($f(_4p+1)>_4q.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShort2ndPurchaseGCP";$k[$j++]="Coupon too short: 2nd Purchase GCP truncated";$k[$j++]=false;return true}var _4r=$k[--$j];var _4s=$k[--$j];$k[$j++]=$G(_4s,_4r,$f(_4s.length-_4r))}}var _4u=$k[--$j];$k[$j++]=_4u;if(_4u.length>=1){var _4v=$k[--$j];$k[$j++]=_4v;if(~~$z($G(_4v,0,1))==2){var _4x=$k[--$j];var _4y=$G(_4x,1,_4x.length-1);$k[$j++]=_4y;if(_4y.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShort3rdPurchaseRequirementVLI";$k[$j++]="Coupon too short: Missing 3rd Purchase Requirement VLI";$k[$j++]=false;return true}var _4z=$k[--$j];var _51=~~$z($G(_4z,0,1));$k[$j++]=_4z;$k[$j++]=_51;if(_51<1||_51>5){$j-=2;$k[$j++]="bwipp.GS1couponBad3rdPurchaseRequirementVLI";$k[$j++]="Coupon 3rd Purchase Requirement length indicator must be 1-5";$k[$j++]=false;return true}var _52=$k[--$j];var _53=$k[--$j];$k[$j++]=_53;$k[$j++]=$f(_52+1);if($f(_52+1)>_53.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShort3rdPurchaseRequirement";$k[$j++]="Coupon too short: 3rd Purchase Requirement truncated";$k[$j++]=false;return true}var _54=$k[--$j];var _55=$k[--$j];var _56=$G(_55,_54,$f(_55.length-_54));$k[$j++]=_56;if(_56.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShort3rdPurchaseRequirementCode";$k[$j++]="Coupon too short: Missing 3rd Purchase Requirement Code";$k[$j++]=false;return true}var _57=$k[--$j];var _59=~~$z($G(_57,0,1));$k[$j++]=_57;if(_59>4&&_59!=9){$j-=2;$k[$j++]="bwipp.GS1couponBad3rdPurchaseRequirementCode";$k[$j++]="Coupon 3rd Purchase Requirement Code must be 0-4 or 9";$k[$j++]=false;return true}var _5A=$k[--$j];var _5B=$G(_5A,1,_5A.length-1);$k[$j++]=_5B;if(_5B.length<3){$j-=2;$k[$j++]="bwipp.GS1couponTooShort3rdPurchaseFamilyCode";$k[$j++]="Coupon too short: 3rd Purchase Family Code truncated";$k[$j++]=false;return true}var _5C=$k[--$j];var _5D=$G(_5C,3,_5C.length-3);$k[$j++]=_5D;if(_5D.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShort3rdPurchaseGCPVLI";$k[$j++]="Coupon too short: Missing 3rd Purchase GCP VLI";$k[$j++]=false;return true}var _5E=$k[--$j];var _5G=~~$z($G(_5E,0,1));$k[$j++]=_5E;$k[$j++]=_5G;if(_5G>6&&_5G!=9){$j-=2;$k[$j++]="bwipp.GS1couponBad3rdPurchaseGCPVLI";$k[$j++]="Coupon 3rd Purchase GCP length indicator must be 0-6 or 9";$k[$j++]=false;return true}var _5H=$k[--$j];$k[$j++]=_5H;if(_5H!=9){var _5I=$k[--$j];$k[$j++]=$f(_5I+6)}else{$j--;$k[$j++]=0}var _5J=$k[--$j];var _5K=$k[--$j];$k[$j++]=_5K;$k[$j++]=$f(_5J+1);if($f(_5J+1)>_5K.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShort3rdPurchaseGCP";$k[$j++]="Coupon too short: 3rd Purchase GCP truncated";$k[$j++]=false;return true}var _5L=$k[--$j];var _5M=$k[--$j];$k[$j++]=$G(_5M,_5L,$f(_5M.length-_5L))}}$1.couponexpire=-1;var _5O=$k[--$j];$k[$j++]=_5O;if(_5O.length>=1){var _5P=$k[--$j];$k[$j++]=_5P;if(~~$z($G(_5P,0,1))==3){var _5R=$k[--$j];var _5S=$G(_5R,1,_5R.length-1);$k[$j++]=_5S;if(_5S.length<6){$j-=2;$k[$j++]="bwipp.GS1couponTooShortExpirationDate";$k[$j++]="Coupon too short: Expiration date";$k[$j++]=false;return true}var _5T=$k[--$j];var _5V=~~$z($G(_5T,2,2));$k[$j++]=_5T;if(_5V<1||_5V>12){$j-=2;$k[$j++]="bwipp.GS1couponExpirationDateBadMonth";$k[$j++]="Invalid month in expiration date";$k[$j++]=false;return true}var _5W=$k[--$j];var _5Y=~~$z($G(_5W,0,2));var _5Z=_5Y-21;$k[$j++]=_5W;$k[$j++]=_5Y;$k[$j++]=_5Z;if(_5Z>=51){$j--;var _5a=$k[--$j];$k[$j++]=$f(_5a+1900)}else{if($k[--$j]<=-50){var _5c=$k[--$j];$k[$j++]=$f(_5c+2100)}else{var _5d=$k[--$j];$k[$j++]=$f(_5d+2e3)}}var _5e=$k[--$j];$k[$j++]=_5e%400==0||_5e%4==0&&_5e%100!=0;$k[$j++]=Infinity;var _5f=$k[--$j];var _5h=$k[--$j]?29:28;$k[$j++]=_5f;$k[$j++]=31;$k[$j++]=_5h;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;var _5i=$a();var _5j=$k[--$j];var _5n=~~$z($G(_5j,4,2));$k[$j++]=_5j;if($g(_5i,~~$z($G(_5j,2,2))-1)<_5n||_5n<1){$j-=2;$k[$j++]="bwipp.GS1couponExpirationDateBadDay";$k[$j++]="Invalid day of month in expiration date";$k[$j++]=false;return true}var _5o=$k[--$j];$1.couponexpire=~~$z($G(_5o,0,6));$k[$j++]=$G(_5o,6,_5o.length-6)}}var _5r=$k[--$j];$k[$j++]=_5r;if(_5r.length>=1){var _5s=$k[--$j];$k[$j++]=_5s;if(~~$z($G(_5s,0,1))==4){var _5u=$k[--$j];var _5v=$G(_5u,1,_5u.length-1);$k[$j++]=_5v;if(_5v.length<6){$j-=2;$k[$j++]="bwipp.GS1couponTooShortStartDate";$k[$j++]="Coupon too short: Start date";$k[$j++]=false;return true}var _5w=$k[--$j];var _5y=~~$z($G(_5w,2,2));$k[$j++]=_5w;if(_5y<1||_5y>12){$j-=2;$k[$j++]="bwipp.GS1couponStartDateBadMonth";$k[$j++]="Invalid month in start date";$k[$j++]=false;return true}var _5z=$k[--$j];var _61=~~$z($G(_5z,0,2));var _62=_61-21;$k[$j++]=_5z;$k[$j++]=_61;$k[$j++]=_62;if(_62>=51){$j--;var _63=$k[--$j];$k[$j++]=$f(_63+1900)}else{if($k[--$j]<=-50){var _65=$k[--$j];$k[$j++]=$f(_65+2100)}else{var _66=$k[--$j];$k[$j++]=$f(_66+2e3)}}var _67=$k[--$j];$k[$j++]=_67%400==0||_67%4==0&&_67%100!=0;$k[$j++]=Infinity;var _68=$k[--$j];var _6A=$k[--$j]?29:28;$k[$j++]=_68;$k[$j++]=31;$k[$j++]=_6A;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;$k[$j++]=30;$k[$j++]=31;var _6B=$a();var _6C=$k[--$j];var _6G=~~$z($G(_6C,4,2));$k[$j++]=_6C;if($g(_6B,~~$z($G(_6C,2,2))-1)<_6G||_6G<1){$j-=2;$k[$j++]="bwipp.GS1couponStartDateBadDay";$k[$j++]="Invalid day of month in start date";$k[$j++]=false;return true}var _6H=$k[--$j];$1.couponstart=~~$z($G(_6H,0,6));$k[$j++]=_6H;if($1.couponexpire!=-1&&$1.couponexpire<$1.couponstart){$j-=2;$k[$j++]="bwipp.GS1couponExpireDateBeforeStartDate";$k[$j++]="Coupon expires before it starts";$k[$j++]=false;return true}var _6M=$k[--$j];$k[$j++]=$G(_6M,6,_6M.length-6)}}var _6O=$k[--$j];$k[$j++]=_6O;if(_6O.length>=1){var _6P=$k[--$j];$k[$j++]=_6P;if(~~$z($G(_6P,0,1))==5){var _6R=$k[--$j];var _6S=$G(_6R,1,_6R.length-1);$k[$j++]=_6S;if(_6S.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortSerialNumberVLI";$k[$j++]="Coupon too short: Missing Serial Number VLI";$k[$j++]=false;return true}var _6T=$k[--$j];var _6U=$G(_6T,0,1);$k[$j++]=_6T;$k[$j++]=~~$z(_6U)+6+1;if(~~$z(_6U)+6+1>_6T.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShortSerialNumber";$k[$j++]="Coupon too short: Serial Number truncated";$k[$j++]=false;return true}var _6V=$k[--$j];var _6W=$k[--$j];$k[$j++]=$G(_6W,_6V,$f(_6W.length-_6V))}}var _6Y=$k[--$j];$k[$j++]=_6Y;if(_6Y.length>=1){var _6Z=$k[--$j];$k[$j++]=_6Z;if(~~$z($G(_6Z,0,1))==6){var _6b=$k[--$j];var _6c=$G(_6b,1,_6b.length-1);$k[$j++]=_6c;if(_6c.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortRetailerGCPGLNVLI";$k[$j++]="Coupon too short: Missing Retailer GCP/GLN VLI";$k[$j++]=false;return true}var _6d=$k[--$j];var _6f=~~$z($G(_6d,0,1));$k[$j++]=_6d;$k[$j++]=_6f;if(_6f<1||_6f>7){$j-=2;$k[$j++]="bwipp.GS1couponBadRetailerGCPGLNVLI";$k[$j++]="Coupon Retailer GCP/GLN length indicator must be 1-7";$k[$j++]=false;return true}var _6g=$k[--$j];var _6h=$k[--$j];$k[$j++]=_6h;$k[$j++]=$f($f(_6g+6)+1);if($f($f(_6g+6)+1)>_6h.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShortRetailerGCPGLN";$k[$j++]="Coupon too short: Retailer GCP/GLN truncated";$k[$j++]=false;return true}var _6i=$k[--$j];var _6j=$k[--$j];$k[$j++]=$G(_6j,_6i,$f(_6j.length-_6i))}}var _6l=$k[--$j];$k[$j++]=_6l;if(_6l.length>=1){var _6m=$k[--$j];$k[$j++]=_6m;if(~~$z($G(_6m,0,1))==9){var _6o=$k[--$j];var _6p=$G(_6o,1,_6o.length-1);$k[$j++]=_6p;if(_6p.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortSaveValueCode";$k[$j++]="Coupon too short: Missing Save Value Code";$k[$j++]=false;return true}var _6q=$k[--$j];var _6s=~~$z($G(_6q,0,1));$k[$j++]=_6q;if(_6s>6||(_6s==3||_6s==4)){$j-=2;$k[$j++]="bwipp.GS1couponBadSaveValueCode";$k[$j++]="Coupon Save Value Code must be 0,1,2,5 or 6";$k[$j++]=false;return true}var _6t=$k[--$j];var _6u=$G(_6t,1,_6t.length-1);$k[$j++]=_6u;if(_6u.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortSaveValueAppliesToItem";$k[$j++]="Coupon too short: Missing Save Value Applies to Item";$k[$j++]=false;return true}var _6v=$k[--$j];$k[$j++]=_6v;if(~~$z($G(_6v,0,1))>2){$j-=2;$k[$j++]="bwipp.GS1couponBadSaveValueAppliesToItem";$k[$j++]="Coupon Save Value Applies to Item must be 0-2";$k[$j++]=false;return true}var _6x=$k[--$j];var _6y=$G(_6x,1,_6x.length-1);$k[$j++]=_6y;if(_6y.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortStoreCouponFlag";$k[$j++]="Coupon too short: Missing Store Coupon Flag";$k[$j++]=false;return true}var _6z=$k[--$j];var _70=$G(_6z,1,_6z.length-1);$k[$j++]=_70;if(_70.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortDontMultiplyFlag";$k[$j++]="Coupon too short: Missing Don't Multiply Flag";$k[$j++]=false;return true}var _71=$k[--$j];$k[$j++]=_71;if(~~$z($G(_71,0,1))>1){$j-=2;$k[$j++]="bwipp.GS1couponBadDontMultiplyFlag";$k[$j++]="Don't Multiply Flag must be 0 or 1";$k[$j++]=false;return true}var _73=$k[--$j];$k[$j++]=$G(_73,1,_73.length-1)}}var _75=$k[--$j];$k[$j++]=_75;if(_75.length!=0){$j-=2;$k[$j++]="bwipp.GS1couponUnrecognisedOptionalField";$k[$j++]="Coupon fields must be 1,2,3,4,5,6 or 9, increasing order";$k[$j++]=false;return true}$j--};$1.lintcouponposoffer=function(){var _76=$k[--$j];$k[$j++]=_76;$k[$j++]=true;$F(_76,function(){var _77=$k[--$j];if(_77<48||_77>57){$j--;$k[$j++]=false;return true}});if($nt($k[--$j])){$j-=2;$k[$j++]="bwipp.GS1couponNotNumeric";$k[$j++]="Coupon not numeric";$k[$j++]=false;return true}var _79=$k[--$j];$k[$j++]=_79;if(_79.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortFormatCode";$k[$j++]="Coupon too short: Missing Format Code";$k[$j++]=false;return true}var _7A=$k[--$j];var _7B=$G(_7A,0,1);$k[$j++]=_7A;if($ne(_7B,"0")&&$ne(_7B,"1")){$j-=2;$k[$j++]="bwipp.GS1couponBadFormatCode";$k[$j++]="Coupon format must be 0 or 1";$k[$j++]=false;return true}var _7C=$k[--$j];var _7D=$G(_7C,1,_7C.length-1);$k[$j++]=_7D;if(_7D.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortFunderVLI";$k[$j++]="Coupon too short: Missing Funder VLI";$k[$j++]=false;return true}var _7E=$k[--$j];var _7G=~~$z($G(_7E,0,1));$k[$j++]=_7E;$k[$j++]=_7G;if(_7G>6){$j-=3;$k[$j++]="bwipp.GS1couponBadFunderVLI";$k[$j++]="Coupon Funder length indicator must be 0-6";$k[$j++]=false;return true}var _7H=$k[--$j];var _7I=$k[--$j];$k[$j++]=_7I;$k[$j++]=$f($f(_7H+6)+1);if($f($f(_7H+6)+1)>_7I.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShortFunder";$k[$j++]="Coupon too short: Truncated Funder ID";$k[$j++]=false;return true}var _7J=$k[--$j];var _7K=$k[--$j];var _7L=$G(_7K,_7J,$f(_7K.length-_7J));$k[$j++]=_7L;if(_7L.length<6){$j-=2;$k[$j++]="bwipp.GS1couponTooShortOfferCode";$k[$j++]="Coupon too short: Truncated Offer Code";$k[$j++]=false;return true}var _7M=$k[--$j];var _7N=$G(_7M,6,_7M.length-6);$k[$j++]=_7N;if(_7N.length<1){$j-=2;$k[$j++]="bwipp.GS1couponTooShortSnVLI";$k[$j++]="Coupon too short: Missing SN VLI";$k[$j++]=false;return true}var _7O=$k[--$j];var _7P=$G(_7O,0,1);$k[$j++]=_7O;$k[$j++]=~~$z(_7P)+6+1;if(~~$z(_7P)+6+1>_7O.length){$j-=3;$k[$j++]="bwipp.GS1couponTooShortSn";$k[$j++]="Coupon too short: Truncated SN";$k[$j++]=false;return true}var _7Q=$k[--$j];var _7R=$k[--$j];var _7S=$G(_7R,_7Q,$f(_7R.length-_7Q));$k[$j++]=_7S;if(_7S.length!=0){$j-=2;$k[$j++]="bwipp.GS1couponTooLong";$k[$j++]="Coupon too long";$k[$j++]=false;return true}$j--};var _7U=new Map([["cset","N"],["min",18],["max",18],["check",$a(["lintcsum","lintkey"])]]);var _7X=new Map([["cset","N"],["min",14],["max",14],["check",$a(["lintcsum","lintkey"])]]);var _7Y=$a([_7X]);var _7a=new Map([["cset","X"],["min",1],["max",20],["check",$a([])]]);var _7d=new Map([["cset","N"],["min",6],["max",6],["check",$a(["lintyymmd0"])]]);var _7e=$a([_7d]);var _7g=new Map([["cset","N"],["min",2],["max",2],["check",$a([])]]);var _7j=new Map([["cset","X"],["min",1],["max",20],["check",$a([])]]);var _7k=$a([_7j]);var _7m=new Map([["cset","X"],["min",1],["max",28],["check",$a([])]]);var _7p=new Map([["cset","X"],["min",1],["max",30],["check",$a([])]]);var _7q=$a([_7p]);var _7s=new Map([["cset","N"],["min",1],["max",6],["check",$a([])]]);var _7v=new Map([["cset","X"],["min",1],["max",20],["check",$a([])]]);var _7y=new Map([["cset","X"],["min",1],["max",30],["check",$a([])]]);var _7z=$a([_7y]);var _81=new Map([["cset","N"],["min",13],["max",13],["check",$a(["lintcsum","lintkey"])]]);var _83=new Map([["cset","X"],["min",0],["max",17],["check",$a([])]]);var _86=new Map([["cset","X"],["min",1],["max",20],["check",$a([])]]);var _89=new Map([["cset","N"],["min",13],["max",13],["check",$a(["lintcsum","lintkey"])]]);var _8B=new Map([["cset","N"],["min",0],["max",12],["check",$a([])]]);var _8E=new Map([["cset","N"],["min",1],["max",8],["check",$a([])]]);var _8H=new Map([["cset","N"],["min",6],["max",6],["check",$a([])]]);var _8I=$a([_8H]);var _8K=new Map([["cset","N"],["min",1],["max",8],["check",$a([])]]);var _8N=new Map([["cset","N"],["min",1],["max",15],["check",$a([])]]);var _8O=$a([_8N]);var _8Q=new Map([["cset","N"],["min",3],["max",3],["check",$a(["lintiso4217"])]]);var _8S=new Map([["cset","N"],["min",1],["max",15],["check",$a([])]]);var _8T=$a([_8Q,_8S]);var _8V=new Map([["cset","N"],["min",1],["max",15],["check",$a([])]]);var _8W=$a([_8V]);var _8Y=new Map([["cset","N"],["min",3],["max",3],["check",$a(["lintiso4217"])]]);var _8a=new Map([["cset","N"],["min",1],["max",15],["check",$a([])]]);var _8b=$a([_8Y,_8a]);var _8d=new Map([["cset","N"],["min",4],["max",4],["check",$a([])]]);var _8e=$a([_8d]);var _8g=new Map([["cset","N"],["min",6],["max",6],["check",$a([])]]);var _8h=$a([_8g]);var _8j=new Map([["cset","X"],["min",1],["max",30],["check",$a([])]]);var _8m=new Map([["cset","X"],["min",1],["max",30],["check",$a(["lintkey"])]]);var _8p=new Map([["cset","N"],["min",17],["max",17],["check",$a(["lintcsum","lintkey"])]]);var _8s=new Map([["cset","X"],["min",1],["max",30],["check",$a([])]]);var _8v=new Map([["cset","N"],["min",13],["max",13],["check",$a(["lintcsum","lintkey"])]]);var _8w=$a([_8v]);var _8y=new Map([["cset","X"],["min",1],["max",20],["check",$a([])]]);var _91=new Map([["cset","N"],["min",3],["max",3],["check",$a(["lintiso3166"])]]);var _93=new Map([["cset","X"],["min",1],["max",9],["check",$a([])]]);var _96=new Map([["cset","N"],["min",3],["max",3],["check",$a(["lintiso3166"])]]);var _99=new Map([["cset","N"],["min",1],["max",15],["check",$a(["lintiso3166list"])]]);var _9C=new Map([["cset","N"],["min",3],["max",3],["check",$a(["lintiso3166"])]]);var _9F=new Map([["cset","N"],["min",1],["max",15],["check",$a(["lintiso3166list"])]]);var _9I=new Map([["cset","N"],["min",3],["max",3],["check",$a(["lintiso3166"])]]);var _9L=new Map([["cset","X"],["min",1],["max",3],["check",$a([])]]);var _9O=new Map([["cset","X"],["min",1],["max",35],["check",$a(["lintpcenc"])]]);var _9P=$a([_9O]);var _9R=new Map([["cset","X"],["min",1],["max",70],["check",$a(["lintpcenc"])]]);var _9S=$a([_9R]);var _9U=new Map([["cset","X"],["min",2],["max",2],["check",$a(["lintiso3166alpha2"])]]);var _9X=new Map([["cset","X"],["min",1],["max",30],["check",$a([])]]);var _9a=new Map([["cset","X"],["min",1],["max",35],["check",$a(["lintpcenc"])]]);var _9b=$a([_9a]);var _9d=new Map([["cset","X"],["min",1],["max",70],["check",$a(["lintpcenc"])]]);var _9e=$a([_9d]);var _9g=new Map([["cset","X"],["min",2],["max",2],["check",$a(["lintiso3166alpha2"])]]);var _9j=new Map([["cset","X"],["min",1],["max",20],["check",$a([])]]);var _9m=new Map([["cset","X"],["min",1],["max",30],["check",$a([])]]);var _9p=new Map([["cset","X"],["min",1],["max",35],["check",$a(["lintpcenc"])]]);var _9s=new Map([["cset","N"],["min",1],["max",1],["check",$a(["lintyesno"])]]);var _9t=$a([_9s]);var _9v=new Map([["cset","N"],["min",6],["max",6],["check",$a(["lintyymmd0"])]]);var _9x=new Map([["cset","N"],["min",4],["max",4],["check",$a(["linthhmm"])]]);var _9y=$a([_9v,_9x]);var _A0=new Map([["cset","N"],["min",6],["max",6],["check",$a(["lintyymmdd"])]]);var _A3=new Map([["cset","N"],["min",13],["max",13],["check",$a([])]]);var _A6=new Map([["cset","X"],["min",1],["max",30],["check",$a([])]]);var _A9=new Map([["cset","N"],["min",6],["max",6],["check",$a(["lintyymmdd"])]]);var _AB=new Map([["cset","N"],["min",4],["max",4],["check",$a(["linthhmm"])]]);var _AE=new Map([["cset","N"],["min",1],["max",4],["check",$a([])]]);var _AH=new Map([["cset","X"],["min",1],["max",12],["check",$a([])]]);var _AK=new Map([["cset","N"],["min",6],["max",6],["check",$a(["lintyymmdd"])]]);var _AN=new Map([["cset","N"],["min",6],["max",6],["check",$a(["lintyymmdd"])]]);var _AP=new Map([["cset","N"],["min",0],["max",6],["check",$a(["lintyymmdd"])]]);var _AS=new Map([["cset","X"],["min",1],["max",3],["check",$a([])]]);var _AV=new Map([["cset","X"],["min",1],["max",10],["check",$a([])]]);var _AY=new Map([["cset","X"],["min",1],["max",2],["check",$a([])]]);var _Ab=new Map([["cset","X"],["min",1],["max",20],["check",$a([])]]);var _Ac=$a([_Ab]);var _Ae=new Map([["cset","X"],["min",1],["max",30],["check",$a(["lintkey"])]]);var _Ah=new Map([["cset","N"],["min",3],["max",3],["check",$a(["lintiso3166999"])]]);var _Aj=new Map([["cset","X"],["min",1],["max",27],["check",$a([])]]);var _Ak=$a([_Ah,_Aj]);var _Am=new Map([["cset","N"],["min",1],["max",1],["check",$a([])]]);var _Ao=new Map([["cset","X"],["min",1],["max",1],["check",$a([])]]);var _Aq=new Map([["cset","X"],["min",1],["max",1],["check",$a([])]]);var _As=new Map([["cset","X"],["min",1],["max",1],["check",$a(["lintimporteridx"])]]);var _Av=new Map([["cset","X"],["min",1],["max",20],["check",$a([])]]);var _Aw=$a([_Av]);var _Ay=new Map([["cset","X"],["min",2],["max",2],["check",$a([])]]);var _B0=new Map([["cset","X"],["min",1],["max",28],["check",$a([])]]);var _B1=$a([_Ay,_B0]);var _B3=new Map([["cset","X"],["min",1],["max",20],["check",$a([])]]);var _B6=new Map([["cset","N"],["min",4],["max",4],["check",$a(["lintnonzero"])]]);var _B8=new Map([["cset","N"],["min",5],["max",5],["check",$a(["lintnonzero"])]]);var _BA=new Map([["cset","N"],["min",3],["max",3],["check",$a(["lintnonzero"])]]);var _BC=new Map([["cset","N"],["min",1],["max",1],["check",$a(["lintwinding"])]]);var _BE=new Map([["cset","N"],["min",1],["max",1],["check",$a([])]]);var _BH=new Map([["cset","X"],["min",1],["max",20],["check",$a([])]]);var _BK=new Map([["cset","N"],["min",1],["max",1],["check",$a(["lintzero"])]]);var _BM=new Map([["cset","N"],["min",13],["max",13],["check",$a(["lintcsum","lintkey"])]]);var _BO=new Map([["cset","X"],["min",0],["max",16],["check",$a([])]]);var _BR=new Map([["cset","X"],["min",1],["max",30],["check",$a(["lintkey"])]]);var _BU=new Map([["cset","N"],["min",6],["max",6],["check",$a([])]]);var _BX=new Map([["cset","N"],["min",14],["max",14],["check",$a(["lintcsum"])]]);var _BZ=new Map([["cset","N"],["min",4],["max",4],["check",$a(["lintpieceoftotal"])]]);var _Bc=new Map([["cset","X"],["min",1],["max",34],["check",$a(["lintiban"])]]);var _Bf=new Map([["cset","N"],["min",8],["max",8],["check",$a(["lintyymmddhh"])]]);var _Bh=new Map([["cset","N"],["min",0],["max",4],["check",$a(["lintmmoptss"])]]);var _Bk=new Map([["cset","X"],["min",1],["max",50],["check",$a([])]]);var _Bn=new Map([["cset","C"],["min",1],["max",30],["check",$a(["lintkey"])]]);var _Bq=new Map([["cset","N"],["min",1],["max",12],["check",$a(["lintnozeroprefix"])]]);var _Bt=new Map([["cset","X"],["min",1],["max",20],["check",$a([])]]);var _Bw=new Map([["cset","X"],["min",1],["max",25],["check",$a(["lintcsumalpha","lintkey"])]]);var _Bz=new Map([["cset","N"],["min",18],["max",18],["check",$a(["lintcsum"])]]);var _C0=$a([_Bz]);var _C2=new Map([["cset","N"],["min",1],["max",10],["check",$a([])]]);var _C5=new Map([["cset","X"],["min",1],["max",25],["check",$a([])]]);var _C8=new Map([["cset","N"],["min",14],["max",14],["check",$a(["lintcsum"])]]);var _CA=new Map([["cset","N"],["min",4],["max",4],["check",$a(["lintpieceoftotal"])]]);var _CD=new Map([["cset","X"],["min",1],["max",70],["check",$a(["lintcouponcode"])]]);var _CG=new Map([["cset","N"],["min",4],["max",4],["check",$a([])]]);var _CJ=new Map([["cset","X"],["min",1],["max",70],["check",$a(["lintcouponposoffer"])]]);var _CM=new Map([["cset","X"],["min",1],["max",70],["check",$a([])]]);var _CP=new Map([["cset","X"],["min",1],["max",30],["check",$a([])]]);var _CS=new Map([["cset","X"],["min",1],["max",90],["check",$a([])]]);var _CT=$a([_CS]);var _CU=new Map([["00",$a([_7U])],["01",_7Y],["02",_7Y],["10",$a([_7a])],["11",_7e],["12",_7e],["13",_7e],["14",_7e],["15",_7e],["16",_7e],["17",_7e],["20",$a([_7g])],["21",_7k],["22",_7k],["235",$a([_7m])],["240",_7q],["241",_7q],["242",$a([_7s])],["243",$a([_7v])],["250",_7z],["251",_7z],["253",$a([_81,_83])],["254",$a([_86])],["255",$a([_89,_8B])],["30",$a([_8E])],["3100",_8I],["3101",_8I],["3102",_8I],["3103",_8I],["3104",_8I],["3105",_8I],["3110",_8I],["3111",_8I],["3112",_8I],["3113",_8I],["3114",_8I],["3115",_8I],["3120",_8I],["3121",_8I],["3122",_8I],["3123",_8I],["3124",_8I],["3125",_8I],["3130",_8I],["3131",_8I],["3132",_8I],["3133",_8I],["3134",_8I],["3135",_8I],["3140",_8I],["3141",_8I],["3142",_8I],["3143",_8I],["3144",_8I],["3145",_8I],["3150",_8I],["3151",_8I],["3152",_8I],["3153",_8I],["3154",_8I],["3155",_8I],["3160",_8I],["3161",_8I],["3162",_8I],["3163",_8I],["3164",_8I],["3165",_8I],["3200",_8I],["3201",_8I],["3202",_8I],["3203",_8I],["3204",_8I],["3205",_8I],["3210",_8I],["3211",_8I],["3212",_8I],["3213",_8I],["3214",_8I],["3215",_8I],["3220",_8I],["3221",_8I],["3222",_8I],["3223",_8I],["3224",_8I],["3225",_8I],["3230",_8I],["3231",_8I],["3232",_8I],["3233",_8I],["3234",_8I],["3235",_8I],["3240",_8I],["3241",_8I],["3242",_8I],["3243",_8I],["3244",_8I],["3245",_8I],["3250",_8I],["3251",_8I],["3252",_8I],["3253",_8I],["3254",_8I],["3255",_8I],["3260",_8I],["3261",_8I],["3262",_8I],["3263",_8I],["3264",_8I],["3265",_8I],["3270",_8I],["3271",_8I],["3272",_8I],["3273",_8I],["3274",_8I],["3275",_8I],["3280",_8I],["3281",_8I],["3282",_8I],["3283",_8I],["3284",_8I],["3285",_8I],["3290",_8I],["3291",_8I],["3292",_8I],["3293",_8I],["3294",_8I],["3295",_8I],["3300",_8I],["3301",_8I],["3302",_8I],["3303",_8I],["3304",_8I],["3305",_8I],["3310",_8I],["3311",_8I],["3312",_8I],["3313",_8I],["3314",_8I],["3315",_8I],["3320",_8I],["3321",_8I],["3322",_8I],["3323",_8I],["3324",_8I],["3325",_8I],["3330",_8I],["3331",_8I],["3332",_8I],["3333",_8I],["3334",_8I],["3335",_8I],["3340",_8I],["3341",_8I],["3342",_8I],["3343",_8I],["3344",_8I],["3345",_8I],["3350",_8I],["3351",_8I],["3352",_8I],["3353",_8I],["3354",_8I],["3355",_8I],["3360",_8I],["3361",_8I],["3362",_8I],["3363",_8I],["3364",_8I],["3365",_8I],["3370",_8I],["3371",_8I],["3372",_8I],["3373",_8I],["3374",_8I],["3375",_8I],["3400",_8I],["3401",_8I],["3402",_8I],["3403",_8I],["3404",_8I],["3405",_8I],["3410",_8I],["3411",_8I],["3412",_8I],["3413",_8I],["3414",_8I],["3415",_8I],["3420",_8I],["3421",_8I],["3422",_8I],["3423",_8I],["3424",_8I],["3425",_8I],["3430",_8I],["3431",_8I],["3432",_8I],["3433",_8I],["3434",_8I],["3435",_8I],["3440",_8I],["3441",_8I],["3442",_8I],["3443",_8I],["3444",_8I],["3445",_8I],["3450",_8I],["3451",_8I],["3452",_8I],["3453",_8I],["3454",_8I],["3455",_8I],["3460",_8I],["3461",_8I],["3462",_8I],["3463",_8I],["3464",_8I],["3465",_8I],["3470",_8I],["3471",_8I],["3472",_8I],["3473",_8I],["3474",_8I],["3475",_8I],["3480",_8I],["3481",_8I],["3482",_8I],["3483",_8I],["3484",_8I],["3485",_8I],["3490",_8I],["3491",_8I],["3492",_8I],["3493",_8I],["3494",_8I],["3495",_8I],["3500",_8I],["3501",_8I],["3502",_8I],["3503",_8I],["3504",_8I],["3505",_8I],["3510",_8I],["3511",_8I],["3512",_8I],["3513",_8I],["3514",_8I],["3515",_8I],["3520",_8I],["3521",_8I],["3522",_8I],["3523",_8I],["3524",_8I],["3525",_8I],["3530",_8I],["3531",_8I],["3532",_8I],["3533",_8I],["3534",_8I],["3535",_8I],["3540",_8I],["3541",_8I],["3542",_8I],["3543",_8I],["3544",_8I],["3545",_8I],["3550",_8I],["3551",_8I],["3552",_8I],["3553",_8I],["3554",_8I],["3555",_8I],["3560",_8I],["3561",_8I],["3562",_8I],["3563",_8I],["3564",_8I],["3565",_8I],["3570",_8I],["3571",_8I],["3572",_8I],["3573",_8I],["3574",_8I],["3575",_8I],["3600",_8I],["3601",_8I],["3602",_8I],["3603",_8I],["3604",_8I],["3605",_8I],["3610",_8I],["3611",_8I],["3612",_8I],["3613",_8I],["3614",_8I],["3615",_8I],["3620",_8I],["3621",_8I],["3622",_8I],["3623",_8I],["3624",_8I],["3625",_8I],["3630",_8I],["3631",_8I],["3632",_8I],["3633",_8I],["3634",_8I],["3635",_8I],["3640",_8I],["3641",_8I],["3642",_8I],["3643",_8I],["3644",_8I],["3645",_8I],["3650",_8I],["3651",_8I],["3652",_8I],["3653",_8I],["3654",_8I],["3655",_8I],["3660",_8I],["3661",_8I],["3662",_8I],["3663",_8I],["3664",_8I],["3665",_8I],["3670",_8I],["3671",_8I],["3672",_8I],["3673",_8I],["3674",_8I],["3675",_8I],["3680",_8I],["3681",_8I],["3682",_8I],["3683",_8I],["3684",_8I],["3685",_8I],["3690",_8I],["3691",_8I],["3692",_8I],["3693",_8I],["3694",_8I],["3695",_8I],["37",$a([_8K])],["3900",_8O],["3901",_8O],["3902",_8O],["3903",_8O],["3904",_8O],["3905",_8O],["3906",_8O],["3907",_8O],["3908",_8O],["3909",_8O],["3910",_8T],["3911",_8T],["3912",_8T],["3913",_8T],["3914",_8T],["3915",_8T],["3916",_8T],["3917",_8T],["3918",_8T],["3919",_8T],["3920",_8W],["3921",_8W],["3922",_8W],["3923",_8W],["3924",_8W],["3925",_8W],["3926",_8W],["3927",_8W],["3928",_8W],["3929",_8W],["3930",_8b],["3931",_8b],["3932",_8b],["3933",_8b],["3934",_8b],["3935",_8b],["3936",_8b],["3937",_8b],["3938",_8b],["3939",_8b],["3940",_8e],["3941",_8e],["3942",_8e],["3943",_8e],["3950",_8h],["3951",_8h],["3952",_8h],["3953",_8h],["3954",_8h],["3955",_8h],["400",$a([_8j])],["401",$a([_8m])],["402",$a([_8p])],["403",$a([_8s])],["410",_8w],["411",_8w],["412",_8w],["413",_8w],["414",_8w],["415",_8w],["416",_8w],["417",_8w],["420",$a([_8y])],["421",$a([_91,_93])],["422",$a([_96])],["423",$a([_99])],["424",$a([_9C])],["425",$a([_9F])],["426",$a([_9I])],["427",$a([_9L])],["4300",_9P],["4301",_9P],["4302",_9S],["4303",_9S],["4304",_9S],["4305",_9S],["4306",_9S],["4307",$a([_9U])],["4308",$a([_9X])],["4310",_9b],["4311",_9b],["4312",_9e],["4313",_9e],["4314",_9e],["4315",_9e],["4316",_9e],["4317",$a([_9g])],["4318",$a([_9j])],["4319",$a([_9m])],["4320",$a([_9p])],["4321",_9t],["4322",_9t],["4323",_9t],["4324",_9y],["4325",_9y],["4326",$a([_A0])],["7001",$a([_A3])],["7002",$a([_A6])],["7003",$a([_A9,_AB])],["7004",$a([_AE])],["7005",$a([_AH])],["7006",$a([_AK])],["7007",$a([_AN,_AP])],["7008",$a([_AS])],["7009",$a([_AV])],["7010",$a([_AY])],["7020",_Ac],["7021",_Ac],["7022",_Ac],["7023",$a([_Ae])],["7030",_Ak],["7031",_Ak],["7032",_Ak],["7033",_Ak],["7034",_Ak],["7035",_Ak],["7036",_Ak],["7037",_Ak],["7038",_Ak],["7039",_Ak],["7040",$a([_Am,_Ao,_Aq,_As])],["710",_Aw],["711",_Aw],["712",_Aw],["713",_Aw],["714",_Aw],["7230",_B1],["7231",_B1],["7232",_B1],["7233",_B1],["7234",_B1],["7235",_B1],["7236",_B1],["7237",_B1],["7238",_B1],["7239",_B1],["7240",$a([_B3])],["8001",$a([_B6,_B8,_BA,_BC,_BE])],["8002",$a([_BH])],["8003",$a([_BK,_BM,_BO])],["8004",$a([_BR])],["8005",$a([_BU])],["8006",$a([_BX,_BZ])],["8007",$a([_Bc])],["8008",$a([_Bf,_Bh])],["8009",$a([_Bk])],["8010",$a([_Bn])],["8011",$a([_Bq])],["8012",$a([_Bt])],["8013",$a([_Bw])],["8017",_C0],["8018",_C0],["8019",$a([_C2])],["8020",$a([_C5])],["8026",$a([_C8,_CA])],["8110",$a([_CD])],["8111",$a([_CG])],["8112",$a([_CJ])],["8200",$a([_CM])],["90",$a([_CP])],["91",_CT],["92",_CT],["93",_CT],["94",_CT],["95",_CT],["96",_CT],["97",_CT],["98",_CT],["99",_CT]]);$1.gs1syntax=_CU;$k[$j++]=true;for(var _CX=0,_CW=$1.vals.length-1;_CX<=_CW;_CX+=1){$1.ai=$g($1.ais,_CX);$1.val=$g($1.vals,_CX);var _Ce=$g($1.gs1syntax,$1.ai)!==undefined;if(_Ce){$F($g($1.gs1syntax,$1.ai),function(){$1.props=$k[--$j];var _Ck=$g($1.props,"max");var _Cl=$1.val;var _Cm=_Cl.length;if(_Ck>_Cl.length){var _=_Cm;_Cm=_Ck;_Ck=_}$1.eval=$G($1.val,0,_Ck);var _Cr=$1.eval.length;$1.val=$G($1.val,_Cr,$1.val.length-_Cr);if($1.eval.length<$g($1.props,"min")){$j--;$k[$j++]="bwipp.GS1valueTooShort";$k[$j++]="Too short";$k[$j++]=false;return true}var _Cx=new Map([["N","lintnumeric"],["X","lintcset82"],["C","lintcset39"]]);$k[$j++]=$1.eval;if($1[$g(_Cx,$g($1.props,"cset"))]()===true){return true}if($1.eval.length>0){$F($g($1.props,"check"),function(){var _D8=$1[$k[--$j]];$k[$j++]=$1.eval;if(_D8()===true){return true}})}});var _D9=$k[--$j];$k[$j++]=_D9;if($nt(_D9)){break}if($1.val.length!=0){$j--;$k[$j++]="bwipp.GS1valueTooLong";$k[$j++]="Too long";$k[$j++]=false;break}}else{$j--;$k[$j++]="bwipp.GS1unknownAI";$k[$j++]="Unrecognised AI";$k[$j++]=false;break}}if($nt($k[--$j])){var _DC=$k[--$j];var _DE=$s(_DC.length+$1.ai.length+5);$P(_DE,0,"AI ");$P(_DE,3,$1.ai);$P(_DE,3+$1.ai.length,": ");$P(_DE,5+$1.ai.length,_DC);$k[$j++]=_DE;$0.raiseerror()}$k[$j++]=true};$0.renmatrix=function(){if($0.bwipjs_dontdraw){return}var $1={};$1.args=$k[--$j];$1.width=1;$1.height=1;$1.barcolor="unset";$1.backgroundcolor="unset";$1.colormap="unset";$1.dotty=false;$1.inkspread=0;$1.inkspreadh=0;$1.inkspreadv=0;$1.includetext=false;$1.txt=$a([]);$1.textcolor="unset";$1.textxalign="unset";$1.textyalign="unset";$1.textfont="OCR-B";$1.textsize=10;$1.textxoffset=0;$1.textyoffset=0;$1.textgaps=0;$1.alttext="";$F($1.args,function(){var _4=$k[--$j];$1[$k[--$j]]=_4});var _6=$1.opt;for(var _B=_6.size,_A=_6.keys(),_9=0;_9<_B;_9++){var _7=_A.next().value;$1[_7]=_6.get(_7)}$1.width=+$1.width;$1.height=+$1.height;$1.barcolor=""+$1.barcolor;$1.backgroundcolor=""+$1.backgroundcolor;$1.inkspread=+$1.inkspread;$1.inkspreadh=+$1.inkspreadh;$1.inkspreadv=+$1.inkspreadv;$1.textcolor=""+$1.textcolor;$1.textxalign=""+$1.textxalign;$1.textyalign=""+$1.textyalign;$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.textgaps=+$1.textgaps;$1.alttext=""+$1.alttext;if($1.inkspread!=0){$1.inkspreadh=$1.inkspread}if($1.inkspread!=0){$1.inkspreadv=$1.inkspread}$1.xyget=function(){var _X=$k[--$j];var _a=$g($1.pixs,$f($k[--$j]+_X*$1.pixx));$k[$j++]=_a};$1.cget=function(){var _c=$k[--$j];var _f=$g($1.cache,$f($k[--$j]+_c*$1.pixx));var _g=$k[--$j];$k[$j++]=$an(_g,_f)};$1.cput=function(){var _h=$k[--$j];$k[$j++]=_h;if(_h%4==0){var _i=$k[--$j];var _j=$k[--$j];var _k=$k[--$j];var _l=$1.pixx;var _m=$1.cache;$p(_m,$f(_k+_j*_l),$or($g(_m,$f(_k+_j*_l)),_i))}else{$j-=3}};$1.abcd=function(){$k[$j++]=$s(4);$k[$j++]=0;$k[$j++]=Infinity;var _p=$k[--$j];var _q=$k[--$j];var _r=$k[--$j];var _s=$k[--$j];var _v=$f($k[--$j]+_s*$1.pixx);$k[$j++]=_r;$k[$j++]=_q;$k[$j++]=_p;$k[$j++]=_v;$q($G($1.pixs,_v,2));var _y=$k[--$j];var _z=$k[--$j];var _13=$G($1.pixs,$f($k[--$j]+$1.pixx),2);$k[$j++]=_z;$k[$j++]=_y;$q(_13);var _14=$a();for(var _15=0,_16=_14.length;_15<_16;_15++){var _18=$k[--$j];var _19=$k[--$j];$p(_19,_18,$f($g(_14,_15)+48));$k[$j++]=_19;$k[$j++]=$f(_18+1)}$j--};$1.right=function(){if($1.dir!=1){$k[$j++]=$1.x;$k[$j++]=$1.y;$k[$j++]=$1.dir;$1.cput();$k[$j++]=$a([$1.x,$1.y])}$1.x=$1.x+1;$1.dir=1};$1.down=function(){if($1.dir!=2){$k[$j++]=$1.x;$k[$j++]=$1.y;$k[$j++]=$1.dir;$1.cput();$k[$j++]=$a([$1.x,$1.y])}$1.y=$1.y+1;$1.dir=2};$1.left=function(){if($1.dir!=4){$k[$j++]=$1.x;$k[$j++]=$1.y;$k[$j++]=$1.dir;$1.cput();$k[$j++]=$a([$1.x,$1.y])}$1.x=$1.x-1;$1.dir=4};$1.up=function(){if($1.dir!=8){$k[$j++]=$1.x;$k[$j++]=$1.y;$k[$j++]=$1.dir;$1.cput();$k[$j++]=$a([$1.x,$1.y])}$1.y=$1.y-1;$1.dir=8};$1.trace=function(){$1.y=$k[--$j];$1.x=$k[--$j];$k[$j++]="dir";$k[$j++]=$f($1.x+1);$k[$j++]=$f($1.y+1);$1.xyget();var _1l=$k[--$j]==1?8:4;$1[$k[--$j]]=_1l;$1.sx=$1.x;$1.sy=$1.y;$1.sdir=$1.dir;$k[$j++]=Infinity;for(;;){$k[$j++]=$1.x;$k[$j++]=$1.y;$1.abcd();for(var _1s=0,_1t=1;_1s<_1t;_1s++){var _1u=$k[--$j];$k[$j++]=_1u;if($eq(_1u,"0001")||($eq(_1u,"0011")||$eq(_1u,"1011"))){$j--;$1.right();break}var _1v=$k[--$j];$k[$j++]=_1v;if($eq(_1v,"0010")||($eq(_1v,"1010")||$eq(_1v,"1110"))){$j--;$1.down();break}var _1w=$k[--$j];$k[$j++]=_1w;if($eq(_1w,"1000")||($eq(_1w,"1100")||$eq(_1w,"1101"))){$j--;$1.left();break}var _1x=$k[--$j];$k[$j++]=_1x;if($eq(_1x,"0100")||($eq(_1x,"0101")||$eq(_1x,"0111"))){$j--;$1.up();break}var _1y=$k[--$j];$k[$j++]=_1y;if($eq(_1y,"1001")){if($1.dir==2){$j--;$1.left();break}else{$j--;$1.right();break}}else{if($1.dir==1){$j--;$1.down();break}else{$j--;$1.up();break}}}if($eq($1.x,$1.sx)&&$eq($1.y,$1.sy)&&$1.dir==$1.sdir){break}}$r($a($m()));var _29=$k[--$j];var _2A=$k[--$j];$k[$j++]=_29;$k[$j++]=_2A;$j--};$1.drawlayer=function(){$1.pixsorig=$1.pixs;$1.pixs=$k[--$j];$k[$j++]=Infinity;for(var _2E=0,_2F=$1.pixx+2;_2E<_2F;_2E++){$k[$j++]=0}for(var _2J=0,_2K=$1.pixx,_2I=$1.pixs.length-1;_2K<0?_2J>=_2I:_2J<=_2I;_2J+=_2K){$k[$j++]=0;$q($G($1.pixs,_2J,$1.pixx));$k[$j++]=0}for(var _2P=0,_2Q=$1.pixx+2;_2P<_2Q;_2P++){$k[$j++]=0}$1.pixs=$a();$1.pixx=$1.pixx+2;$1.pixy=$1.pixy+2;$k[$j++]=Infinity;for(var _2V=0,_2W=$1.pixs.length;_2V<_2W;_2V++){$k[$j++]=0}$1.cache=$a();$k[$j++]=Infinity;for(var _2a=0,_2Z=$1.pixy-2;_2a<=_2Z;_2a+=1){$1.j=_2a;for(var _2d=0,_2c=$1.pixx-2;_2d<=_2c;_2d+=1){$1.i=_2d;$k[$j++]="k";$k[$j++]=$1.i;$k[$j++]=$1.j;$1.abcd();var _2g=$k[--$j];$1[$k[--$j]]=_2g;if($eq($1.k,"0001")||$eq($1.k,"1001")){$k[$j++]=8;$k[$j++]=$1.i;$k[$j++]=$1.j;$1.cget();if($k[--$j]==0){$k[$j++]=$1.i;$k[$j++]=$1.j;$1.trace()}}if($eq($1.k,"1110")){$k[$j++]=4;$k[$j++]=$1.i;$k[$j++]=$1.j;$1.cget();if($k[--$j]==0){$k[$j++]=$1.i;$k[$j++]=$1.j;$1.trace()}}}}$1.paths=$a();$1.pixx=$1.pixx-2;$1.pixy=$1.pixy-2;$$.newpath();var _2y=$1.paths;for(var _2z=0,_30=_2y.length;_2z<_30;_2z++){$1.p=$g(_2y,_2z);$1.len=$1.p.length;$q($g($1.p,$1.len-1));$q($g($1.p,0));for(var _3A=0,_39=$1.len-1;_3A<=_39;_3A+=1){$1.i=_3A;$q($g($1.p,($1.i+1)%$1.len));var _3F=$k[--$j];var _3G=$k[--$j];var _3H=$k[--$j];var _3I=$k[--$j];var _3J=$k[--$j];var _3K=$k[--$j];$k[$j++]=_3I;$k[$j++]=_3H;$k[$j++]=_3G;$k[$j++]=_3F;$k[$j++]=_3K;$k[$j++]=_3I;$k[$j++]=$1.inkspreadh;if($lt(_3F,_3J)){var _3M=$k[--$j];var _3N=$k[--$j];$k[$j++]=$f(_3N+_3M)}else{var _3O=$k[--$j];var _3P=$k[--$j];$k[$j++]=$f(_3P-_3O)}var _3Q=$k[--$j];var _3R=$k[--$j];var _3S=$k[--$j];var _3T=$k[--$j];var _3U=$k[--$j];$k[$j++]=_3U;$k[$j++]=_3Q;$k[$j++]=_3T;$k[$j++]=_3S;$k[$j++]=_3U;$k[$j++]=$1.inkspreadv;if($gt(_3T,_3R)){var _3W=$k[--$j];var _3X=$k[--$j];$k[$j++]=$f(_3X+_3W)}else{var _3Y=$k[--$j];var _3Z=$k[--$j];$k[$j++]=$f(_3Z-_3Y)}var _3a=$k[--$j];var _3b=$k[--$j];var _3c=$k[--$j];var _3d=$k[--$j];$k[$j++]=_3c;$k[$j++]=_3b;$k[$j++]=_3d;$k[$j++]=$f($1.pixy-_3a);if($1.i==0){var _3g=$k[--$j];$$.moveto($k[--$j],_3g)}else{var _3i=$k[--$j];$$.lineto($k[--$j],_3i)}}$$.closepath();$j-=4}$$.fill();$1.pixs=$1.pixsorig};$1.drawlayerdots=function(){$1.pixsorig=$1.pixs;$1.pixs=$k[--$j];$$.newpath();for(var _3p=0,_3o=$1.pixs.length-1;_3p<=_3o;_3p+=1){$1.x=_3p%$1.pixx;$1.y=~~(_3p/$1.pixx);$k[$j++]=$1.x;$k[$j++]=$1.y;$1.xyget();if($k[--$j]==1){$$.moveto($f($1.x+.5),$f($1.pixy-$1.y-.5));$$.arc($f($1.x+.5),$f($1.pixy-$1.y-.5),$f(.5-$1.inkspread),0,360,1)}}$$.fill();$1.pixs=$1.pixsorig};$$.save();$1.inkspread=$1.inkspread/2;$1.inkspreadh=$1.inkspreadh/2;$1.inkspreadv=$1.inkspreadv/2;var _46=$$.currpos();$$.translate(_46.x,_46.y);$$.scale($1.width/$1.pixx*72,$1.height/$1.pixy*72);$$.moveto(0,0);$$.lineto($1.pixx,0);$$.lineto($1.pixx,$1.pixy);$$.lineto(0,$1.pixy);$$.closepath();if($eq($1.colormap,"unset")){var _4H=new Map([[1,$1.barcolor]]);$1.colormap=_4H}var _4I=$1.colormap;for(var _4N=_4I.size,_4M=_4I.keys(),_4L=0;_4L<_4N;_4L++){var _4J=_4M.next().value;$$.setcolor(_4I.get(_4J));$1.key=_4J;$k[$j++]=Infinity;var _4O=$1.pixs;for(var _4P=0,_4Q=_4O.length;_4P<_4Q;_4P++){var _4T=$eq($g(_4O,_4P),$1.key)?1:0;$k[$j++]=_4T}var _4U=$a();$k[$j++]=_4U;if($1.dotty){$1.drawlayerdots()}else{$1.drawlayer()}}if($ne($1.textcolor,"unset")){$$.setcolor($1.textcolor)}if($1.includetext){if($eq($1.textxalign,"unset")&&$eq($1.textyalign,"unset")&&$eq($1.alttext,"")){$1.s=0;$1.fn="";var _4c=$1.txt;for(var _4d=0,_4e=_4c.length;_4d<_4e;_4d++){$F($g(_4c,_4d));var _4g=$k[--$j];var _4h=$k[--$j];$k[$j++]=_4h;$k[$j++]=_4g;if(_4g!=$1.s||$ne(_4h,$1.fn)){var _4k=$k[--$j];var _4l=$k[--$j];$1.s=_4k;$1.fn=_4l;$$.selectfont(_4l,_4k)}else{$j-=2}var _4m=$k[--$j];$$.moveto($k[--$j],_4m);$$.show($k[--$j],0,0)}}else{$$.selectfont($1.textfont,$1.textsize);if($eq($1.alttext,"")){$k[$j++]=Infinity;var _4s=$1.txt;for(var _4t=0,_4u=_4s.length;_4t<_4u;_4t++){$F($g($g(_4s,_4t),0))}$1.txt=$a();$1.tstr=$s($1.txt.length);for(var _52=0,_51=$1.txt.length-1;_52<=_51;_52+=1){$p($1.tstr,_52,$g($1.txt,_52))}}else{$1.tstr=$1.alttext}if($1.tstr.length==0){$k[$j++]=0}else{$$.save();$$.newpath();$$.moveto(0,0);$$.charpath("0",false);var _58=$$.pathbbox();$$.restore();$k[$j++]=_58.ury}$1.textascent=$k[--$j];var _5B=$$.stringwidth($1.tstr);$1.textwidth=$f(_5B.w+($1.tstr.length-1)*$1.textgaps);$1.textxpos=$f($1.textxoffset+$f($1.x-$1.textwidth)/2);if($eq($1.textxalign,"left")){$1.textxpos=$1.textxoffset}if($eq($1.textxalign,"right")){$1.textxpos=$f($f($1.x-$1.textxoffset)-$1.textwidth)}if($eq($1.textxalign,"offleft")){$1.textxpos=-$f($1.textwidth+$1.textxoffset)}if($eq($1.textxalign,"offright")){$1.textxpos=$f($1.x+$1.textxoffset)}if($eq($1.textxalign,"justify")&&$1.textwidth<$1.x){$1.textxpos=0;$1.textgaps=$f($1.x-$1.textwidth)/($1.tstr.length-1)}$1.textypos=-$f($f($1.textyoffset+$1.textascent)+1);if($eq($1.textyalign,"above")){$1.textypos=$f($f($1.textyoffset+$1.pixy)+1)}if($eq($1.textyalign,"center")){$1.textypos=$f($1.textyoffset+$f($1.pixy-$1.textascent)/2)}$$.moveto($1.textxpos,$1.textypos);$$.show($1.tstr,$1.textgaps,0)}}$$.restore()};$0.ean5=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=12;$1.textxoffset=0;$1.textyoffset="unset";$1.height=.7;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.height=+$1.height;$1.textxoffset=+$1.textxoffset;if($eq($1.textyoffset,"unset")){$1.textyoffset=$f($1.height*72+1)}else{$1.textyoffset=+$1.textyoffset}if($1.barcode.length!=5){$k[$j++]="bwipp.ean5badLength";$k[$j++]="EAN-5 add-on must be 5 digits";$0.raiseerror()}$F($1.barcode,function(){var _E=$k[--$j];if(_E<48||_E>57){$k[$j++]="bwipp.ean5badCharacter";$k[$j++]="EAN-5 add-on must contain only digits";$0.raiseerror()}});$1.encs=$a(["3211","2221","2122","1411","1132","1231","1114","1312","1213","3112","112","11"]);$1.barchars="0123456789";$1.mirrormaps=$a(["11000","10100","10010","10001","01100","00110","00011","01010","01001","00101"]);$1.checksum=0;for(var _H=0;_H<=4;_H+=1){$1.i=_H;$1.barchar=$f($g($1.barcode,$1.i)-48);if($1.i%2==0){$1.checksum=$f($1.barchar*3+$1.checksum)}else{$1.checksum=$f($1.barchar*9+$1.checksum)}}$1.checksum=$1.checksum%10;$1.mirrormap=$g($1.mirrormaps,$1.checksum);$1.sbs=$s(31);$1.txt=$a(5);for(var _W=0;_W<=4;_W+=1){$1.i=_W;if($1.i==0){$P($1.sbs,0,$g($1.encs,10))}else{$P($1.sbs,($1.i-1)*6+7,$g($1.encs,11))}$x($1.barchars,$G($1.barcode,$1.i,1));$j--;$1.indx=$k[--$j].length;$j-=2;$1.enc=$g($1.encs,$1.indx);if($g($1.mirrormap,$1.i)==49){$1.enclen=$1.enc.length;$1.revenc=$s($1.enclen);for(var _v=0,_u=$1.enclen-1;_v<=_u;_v+=1){$1.j=_v;$1.char=$g($1.enc,$1.j);$p($1.revenc,$1.enclen-$1.j-1,$1.char)}$1.enc=$1.revenc}$P($1.sbs,$1.i*6+3,$1.enc);$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),$f(($1.i-1)*9+13+$1.textxoffset),$1.textyoffset,$1.textfont,$1.textsize]))}$k[$j++]=Infinity;$k[$j++]=Infinity;var _1I=$1.sbs;for(var _1J=0,_1K=_1I.length;_1J<_1K;_1J++){$k[$j++]=$g(_1I,_1J)-48}var _1M=$a();$k[$j++]=Infinity;for(var _1N=0,_1O=16;_1N<_1O;_1N++){$k[$j++]=$1.height}var _1Q=$a();$k[$j++]=Infinity;for(var _1R=0,_1S=16;_1R<_1S;_1R++){$k[$j++]=0}var _1T=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_1M;$k[$j++]="bhs";$k[$j++]=_1Q;$k[$j++]="bbs";$k[$j++]=_1T;if($1.includetext){$k[$j++]="txt";$k[$j++]=$1.txt}$k[$j++]="opt";$k[$j++]=$1.options;$k[$j++]="guardrightpos";$k[$j++]=10;$k[$j++]="guardrightypos";$k[$j++]=$f($1.textyoffset+4);$k[$j++]="bordertop";$k[$j++]=10;var _1Y=$d();$k[$j++]=_1Y;if(!$1.dontdraw){$0.renlinear()}};$0.ean2=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=12;$1.textxoffset=0;$1.textyoffset="unset";$1.height=.7;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.height=+$1.height;$1.textxoffset=+$1.textxoffset;if($eq($1.textyoffset,"unset")){$1.textyoffset=$f($1.height*72+1)}else{$1.textyoffset=+$1.textyoffset}if($1.barcode.length!=2){$k[$j++]="bwipp.ean2badLength";$k[$j++]="EAN-2 add-on must be 2 digits";$0.raiseerror()}$F($1.barcode,function(){var _E=$k[--$j];if(_E<48||_E>57){$k[$j++]="bwipp.ean2badCharacter";$k[$j++]="EAN-2 add-on must contain only digits";$0.raiseerror()}});$1.encs=$a(["3211","2221","2122","1411","1132","1231","1114","1312","1213","3112","112","11"]);$1.barchars="0123456789";$1.mirrormap=$g($a(["00","01","10","11"]),~~$z($G($1.barcode,0,2))%4);$1.sbs=$s(13);$1.txt=$a(2);for(var _M=0;_M<=1;_M+=1){$1.i=_M;if($1.i==0){$P($1.sbs,0,$g($1.encs,10))}else{$P($1.sbs,($1.i-1)*6+7,$g($1.encs,11))}$x($1.barchars,$G($1.barcode,$1.i,1));$j--;$1.indx=$k[--$j].length;$j-=2;$1.enc=$g($1.encs,$1.indx);if($g($1.mirrormap,$1.i)==49){$1.enclen=$1.enc.length;$1.revenc=$s($1.enclen);for(var _l=0,_k=$1.enclen-1;_l<=_k;_l+=1){$1.j=_l;$1.char=$g($1.enc,$1.j);$p($1.revenc,$1.enclen-$1.j-1,$1.char)}$1.enc=$1.revenc}$P($1.sbs,$1.i*6+3,$1.enc);$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),$f(($1.i-1)*9+13+$1.textxoffset),$1.textyoffset,$1.textfont,$1.textsize]))}$k[$j++]=Infinity;$k[$j++]=Infinity;var _18=$1.sbs;for(var _19=0,_1A=_18.length;_19<_1A;_19++){$k[$j++]=$g(_18,_19)-48}var _1C=$a();$k[$j++]=Infinity;for(var _1D=0,_1E=12;_1D<_1E;_1D++){$k[$j++]=$1.height}var _1G=$a();$k[$j++]=Infinity;for(var _1H=0,_1I=12;_1H<_1I;_1H++){$k[$j++]=0}var _1J=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_1C;$k[$j++]="bhs";$k[$j++]=_1G;$k[$j++]="bbs";$k[$j++]=_1J;if($1.includetext){$k[$j++]="txt";$k[$j++]=$1.txt}$k[$j++]="opt";$k[$j++]=$1.options;$k[$j++]="guardrightpos";$k[$j++]=10;$k[$j++]="guardrightypos";$k[$j++]=$f($1.textyoffset+4);$k[$j++]="bordertop";$k[$j++]=10;var _1O=$d();$k[$j++]=_1O;if(!$1.dontdraw){$0.renlinear()}};$0.ean13=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=12;$1.textxoffset=-10;$1.textyoffset=-4;$1.height=1;$1.addongap=12;$1.addontextfont="unset";$1.addontextsize="unset";$1.addontextxoffset="unset";$1.addontextyoffset="unset";$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.addongap=+$1.addongap;if($ne($1.addontextfont,"unset")){$1.addontextfont=""+$1.addontextfont}if($ne($1.addontextsize,"unset")){$1.addontextsize=+$1.addontextsize}if($ne($1.addontextxoffset,"unset")){$1.addontextxoffset=+$1.addontextxoffset}if($ne($1.addontextyoffset,"unset")){$1.addontextyoffset=+$1.addontextyoffset}$x($1.barcode," ");if($k[--$j]){$1.barcode=$k[--$j];$j--;$1.addon=$k[--$j]}else{$j--;$1.addon=""}if($1.barcode.length!=12&&$1.barcode.length!=13){$k[$j++]="bwipp.ean13badLength";$k[$j++]="EAN-13 must be 12 or 13 digits";$0.raiseerror()}$F($1.barcode,function(){var _Q=$k[--$j];if(_Q<48||_Q>57){$k[$j++]="bwipp.ean13badCharacter";$k[$j++]="EAN-13 must contain only digits";$0.raiseerror()}});if($1.addon.length!=0&&$1.addon.length!=2&&$1.addon.length!=5){$k[$j++]="bwipp.ean13badAddOnLength";$k[$j++]="Add-on for EAN-13 must be 2 or 5 digits";$0.raiseerror()}$1.pad=$s(13);$1.checksum=0;for(var _V=0;_V<=11;_V+=1){$1.i=_V;$1.barchar=$f($g($1.barcode,$1.i)-48);if($1.i%2==0){$1.checksum=$f($1.barchar+$1.checksum)}else{$1.checksum=$f($1.barchar*3+$1.checksum)}}$1.checksum=$f(10-$1.checksum%10)%10;if($1.barcode.length==13){if($g($1.barcode,12)!=$f($1.checksum+48)){$k[$j++]="bwipp.ean13badCheckDigit";$k[$j++]="Incorrect EAN-13 check digit provided";$0.raiseerror()}}$P($1.pad,0,$1.barcode);$p($1.pad,12,$f($1.checksum+48));$1.barcode=$1.pad;$1.encs=$a(["3211","2221","2122","1411","1132","1231","1114","1312","1213","3112","111","11111","111"]);$1.barchars="0123456789";$1.mirrormaps=$a(["000000","001011","001101","001110","010011","011001","011100","010101","010110","011010"]);$1.sbs=$s(59);$1.txt=$a(13);$P($1.sbs,0,$g($1.encs,10));$1.mirrormap=$g($1.mirrormaps,$g($1.barcode,0)-48);$p($1.txt,0,$a([$G($1.barcode,0,1),$1.textxoffset,$1.textyoffset,$1.textfont,$1.textsize]));for(var _17=1;_17<=6;_17+=1){$1.i=_17;$x($1.barchars,$G($1.barcode,$1.i,1));$j--;$1.indx=$k[--$j].length;$j-=2;$1.enc=$g($1.encs,$1.indx);if($g($1.mirrormap,$1.i-1)==49){$1.enclen=$1.enc.length;$1.revenc=$s($1.enclen);for(var _1O=0,_1N=$1.enclen-1;_1O<=_1N;_1O+=1){$1.j=_1O;$1.char=$g($1.enc,$1.j);$p($1.revenc,$1.enclen-$1.j-1,$1.char)}$1.enc=$1.revenc}$P($1.sbs,($1.i-1)*4+3,$1.enc);$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),$f(($1.i-1)*7+14+$1.textxoffset),$1.textyoffset,$1.textfont,$1.textsize]))}$P($1.sbs,(7-1)*4+3,$g($1.encs,11));for(var _1o=7;_1o<=12;_1o+=1){$1.i=_1o;$x($1.barchars,$G($1.barcode,$1.i,1));$j--;$1.indx=$k[--$j].length;$j-=2;$1.enc=$g($1.encs,$1.indx);$P($1.sbs,($1.i-1)*4+8,$1.enc);$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),$f(($1.i-1)*7+18+$1.textxoffset),$1.textyoffset,$1.textfont,$1.textsize]))}$P($1.sbs,56,$g($1.encs,12));$k[$j++]=Infinity;var _2E=$1.sbs;for(var _2F=0,_2G=_2E.length;_2F<_2G;_2F++){$k[$j++]=$g(_2E,_2F)-48}$1.sbs=$a();if($1.includetext){$k[$j++]=Infinity;$k[$j++]=$1.height;$k[$j++]=$1.height;for(var _2M=0,_2N=12;_2M<_2N;_2M++){$k[$j++]=$f($1.height-.075)}$k[$j++]=$1.height;$k[$j++]=$1.height;for(var _2R=0,_2S=12;_2R<_2S;_2R++){$k[$j++]=$f($1.height-.075)}$k[$j++]=$1.height;$k[$j++]=$1.height;$1.bhs=$a();$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=0;for(var _2X=0,_2Y=12;_2X<_2Y;_2X++){$k[$j++]=.075}$k[$j++]=0;$k[$j++]=0;for(var _2Z=0,_2a=12;_2Z<_2a;_2Z++){$k[$j++]=.075}$k[$j++]=0;$k[$j++]=0;$1.bbs=$a()}else{$k[$j++]=Infinity;for(var _2c=0,_2d=30;_2c<_2d;_2c++){$k[$j++]=$1.height}$1.bhs=$a();$k[$j++]=Infinity;for(var _2g=0,_2h=30;_2g<_2h;_2g++){$k[$j++]=0}$1.bbs=$a();$1.txt=$a([])}$1.guardrightypos=0;if($ne($1.addon,"")){$k[$j++]=Infinity;$k[$j++]="dontdraw";$k[$j++]=true;$k[$j++]="includetext";$k[$j++]=true;$k[$j++]="height";$k[$j++]=$f($1.height-.15);$k[$j++]="textxoffset";if($1.addontextxoffset!="unset"){$k[$j++]=$1.addontextxoffset}else{$k[$j++]=$f(95+$1.addongap)}if($1.addontextyoffset!="unset"){$k[$j++]="textyoffset";$k[$j++]=$1.addontextyoffset}var _2s=$1.addontextsize!="unset"?$1.addontextsize:$1.textsize;var _2u=$ne($1.addontextfont,"unset")?$1.addontextfont:$1.textfont;$k[$j++]="textsize";$k[$j++]=_2s;$k[$j++]="textfont";$k[$j++]=_2u;$1.addopts=$d();if($1.addon.length==2){$k[$j++]=$1.addon;$k[$j++]=$1.addopts;$0.ean2()}if($1.addon.length==5){$k[$j++]=$1.addon;$k[$j++]=$1.addopts;$0.ean5()}$1.addcode=$k[--$j];$k[$j++]=Infinity;$q($1.sbs);$k[$j++]=$1.addongap;$q($g($1.addcode,"sbs"));$1.sbs=$a();$k[$j++]=Infinity;$q($1.bhs);$F($g($1.addcode,"bhs"),function(){var _3B=$k[--$j];$k[$j++]=$f(_3B-.075)});$1.bhs=$a();$k[$j++]=Infinity;$q($1.bbs);$F($g($1.addcode,"bbs"),function(){var _3G=$k[--$j];$k[$j++]=$f(_3G+.075)});$1.bbs=$a();$k[$j++]=Infinity;$q($1.txt);$q($g($1.addcode,"txt"));$1.txt=$a();$1.guardrightypos=$f($1.height*72-6)}var _3T=new Map([["ren",$0.renlinear],["sbs",$1.sbs],["bhs",$1.bhs],["bbs",$1.bbs],["txt",$1.txt],["opt",$1.options],["guardrightpos",10],["guardrightypos",$1.guardrightypos],["borderbottom",5]]);$k[$j++]=_3T;if(!$1.dontdraw){$0.renlinear()}};$0.ean8=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=12;$1.textxoffset=4;$1.textyoffset=-4;$1.height=1;$1.addongap=12;$1.addontextfont="unset";$1.addontextsize="unset";$1.addontextxoffset="unset";$1.addontextyoffset="unset";$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.addongap=+$1.addongap;if($ne($1.addontextfont,"unset")){$1.addontextfont=""+$1.addontextfont}if($ne($1.addontextsize,"unset")){$1.addontextsize=+$1.addontextsize}if($ne($1.addontextxoffset,"unset")){$1.addontextxoffset=+$1.addontextxoffset}if($ne($1.addontextyoffset,"unset")){$1.addontextyoffset=+$1.addontextyoffset}$x($1.barcode," ");if($k[--$j]){$1.barcode=$k[--$j];$j--;$1.addon=$k[--$j]}else{$j--;$1.addon=""}if($1.barcode.length!=7&&$1.barcode.length!=8){$k[$j++]="bwipp.ean8badLength";$k[$j++]="EAN-8 must be 7 or 8 digits";$0.raiseerror()}$F($1.barcode,function(){var _Q=$k[--$j];if(_Q<48||_Q>57){$k[$j++]="bwipp.ean8badCharacter";$k[$j++]="EAN-8 must contain only digits";$0.raiseerror()}});if($1.addon.length!=0&&$1.addon.length!=2&&$1.addon.length!=5){$k[$j++]="bwipp.ean8badAddOnLength";$k[$j++]="Add-on for EAN-8 must be 2 or 5 digits";$0.raiseerror()}$1.pad=$s(8);$1.checksum=0;for(var _V=0;_V<=6;_V+=1){$1.i=_V;$1.barchar=$f($g($1.barcode,$1.i)-48);if($1.i%2!=0){$1.checksum=$f($1.barchar+$1.checksum)}else{$1.checksum=$f($1.barchar*3+$1.checksum)}}$1.checksum=$f(10-$1.checksum%10)%10;if($1.barcode.length==8){if($g($1.barcode,7)!=$f($1.checksum+48)){$k[$j++]="bwipp.ean8badCheckDigit";$k[$j++]="Incorrect EAN-8 check digit provided";$0.raiseerror()}}$P($1.pad,0,$1.barcode);$p($1.pad,7,$f($1.checksum+48));$1.barcode=$1.pad;$1.encs=$a(["3211","2221","2122","1411","1132","1231","1114","1312","1213","3112","111","11111","111"]);$1.barchars="0123456789";$1.sbs=$s(43);$1.txt=$a(8);$P($1.sbs,0,$g($1.encs,10));for(var _u=0;_u<=3;_u+=1){$1.i=_u;$x($1.barchars,$G($1.barcode,$1.i,1));$j--;$1.indx=$k[--$j].length;$j-=2;$1.enc=$g($1.encs,$1.indx);$P($1.sbs,$1.i*4+3,$1.enc);$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),$f($1.i*7+$1.textxoffset),$1.textyoffset,$1.textfont,$1.textsize]))}$P($1.sbs,4*4+3,$g($1.encs,11));for(var _1K=4;_1K<=7;_1K+=1){$1.i=_1K;$x($1.barchars,$G($1.barcode,$1.i,1));$j--;$1.indx=$k[--$j].length;$j-=2;$1.enc=$g($1.encs,$1.indx);$P($1.sbs,$1.i*4+8,$1.enc);$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),$f($f($1.i*7+$1.textxoffset)+4),$1.textyoffset,$1.textfont,$1.textsize]))}$P($1.sbs,40,$g($1.encs,12));$k[$j++]=Infinity;var _1k=$1.sbs;for(var _1l=0,_1m=_1k.length;_1l<_1m;_1l++){$k[$j++]=$g(_1k,_1l)-48}$1.sbs=$a();if($1.includetext){$k[$j++]=Infinity;$k[$j++]=$1.height;$k[$j++]=$1.height;for(var _1s=0,_1t=8;_1s<_1t;_1s++){$k[$j++]=$f($1.height-.075)}$k[$j++]=$1.height;$k[$j++]=$1.height;for(var _1x=0,_1y=8;_1x<_1y;_1x++){$k[$j++]=$f($1.height-.075)}$k[$j++]=$1.height;$k[$j++]=$1.height;$1.bhs=$a();$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=0;for(var _23=0,_24=8;_23<_24;_23++){$k[$j++]=.075}$k[$j++]=0;$k[$j++]=0;for(var _25=0,_26=8;_25<_26;_25++){$k[$j++]=.075}$k[$j++]=0;$k[$j++]=0;$1.bbs=$a()}else{$k[$j++]=Infinity;for(var _28=0,_29=22;_28<_29;_28++){$k[$j++]=$1.height}$1.bhs=$a();$k[$j++]=Infinity;for(var _2C=0,_2D=22;_2C<_2D;_2C++){$k[$j++]=0}$1.bbs=$a();$1.txt=$a([])}$1.guardrightypos=0;if($ne($1.addon,"")){$k[$j++]=Infinity;$k[$j++]="dontdraw";$k[$j++]=true;$k[$j++]="includetext";$k[$j++]=true;$k[$j++]="height";$k[$j++]=$f($1.height-.15);$k[$j++]="textxoffset";if($1.addontextxoffset!="unset"){$k[$j++]=$1.addontextxoffset}else{$k[$j++]=$f(67+$1.addongap)}if($1.addontextyoffset!="unset"){$k[$j++]="textyoffset";$k[$j++]=$1.addontextyoffset}var _2O=$1.addontextsize!="unset"?$1.addontextsize:$1.textsize;var _2Q=$ne($1.addontextfont,"unset")?$1.addontextfont:$1.textfont;$k[$j++]="textsize";$k[$j++]=_2O;$k[$j++]="textfont";$k[$j++]=_2Q;$1.addopts=$d();if($1.addon.length==2){$k[$j++]=$1.addon;$k[$j++]=$1.addopts;$0.ean2()}if($1.addon.length==5){$k[$j++]=$1.addon;$k[$j++]=$1.addopts;$0.ean5()}$1.addcode=$k[--$j];$k[$j++]=Infinity;$q($1.sbs);$k[$j++]=$1.addongap;$q($g($1.addcode,"sbs"));$1.sbs=$a();$k[$j++]=Infinity;$q($1.bhs);$F($g($1.addcode,"bhs"),function(){var _2h=$k[--$j];$k[$j++]=$f(_2h-.075)});$1.bhs=$a();$k[$j++]=Infinity;$q($1.bbs);$F($g($1.addcode,"bbs"),function(){var _2m=$k[--$j];$k[$j++]=$f(_2m+.075)});$1.bbs=$a();$k[$j++]=Infinity;$q($1.txt);$q($g($1.addcode,"txt"));$1.txt=$a();$1.guardrightypos=$f($1.height*72-6)}var _2z=new Map([["ren",$0.renlinear],["sbs",$1.sbs],["bhs",$1.bhs],["bbs",$1.bbs],["txt",$1.txt],["opt",$1.options],["guardleftpos",10],["guardrightpos",10],["guardrightypos",$1.guardrightypos],["borderbottom",5]]);$k[$j++]=_2z;if(!$1.dontdraw){$0.renlinear()}};$0.upca=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=12;$1.textxoffset=-7;$1.textyoffset=-4;$1.height=1;$1.addongap=12;$1.addontextfont="unset";$1.addontextsize="unset";$1.addontextxoffset="unset";$1.addontextyoffset="unset";$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.addongap=+$1.addongap;if($ne($1.addontextfont,"unset")){$1.addontextfont=""+$1.addontextfont}if($ne($1.addontextsize,"unset")){$1.addontextsize=+$1.addontextsize}if($ne($1.addontextxoffset,"unset")){$1.addontextxoffset=+$1.addontextxoffset}if($ne($1.addontextyoffset,"unset")){$1.addontextyoffset=+$1.addontextyoffset}$x($1.barcode," ");if($k[--$j]){$1.barcode=$k[--$j];$j--;$1.addon=$k[--$j]}else{$j--;$1.addon=""}if($1.barcode.length==7||$1.barcode.length==8){$F($1.barcode,function(){var _Q=$k[--$j];if(_Q<48||_Q>57){$k[$j++]="bwipp.upcAupcEbadCharacter";$k[$j++]="UPC-E must contain only digits";$0.raiseerror()}});var _S=$g($1.barcode,0);if(_S!=48&&_S!=49){$k[$j++]="bwipp.upcAupcEbadNumberSystem";$k[$j++]="UPC-E must have number system 0 or 1";$0.raiseerror()}for(var _T=0,_U=1;_T<_U;_T++){var _W=$1.barcode.length==8?12:11;$1.upcacode=$s(_W);if($f($g($1.barcode,6)-48)<=2){$P($1.upcacode,0,$G($1.barcode,0,3));$P($1.upcacode,3,$G($1.barcode,6,1));$P($1.upcacode,4,"0000");$P($1.upcacode,8,$G($1.barcode,3,3));break}if($f($g($1.barcode,6)-48)==3){$P($1.upcacode,0,$G($1.barcode,0,4));$P($1.upcacode,4,"00000");$P($1.upcacode,9,$G($1.barcode,4,2));break}if($f($g($1.barcode,6)-48)==4){$P($1.upcacode,0,$G($1.barcode,0,5));$P($1.upcacode,5,"00000");$P($1.upcacode,10,$G($1.barcode,5,1));break}if($f($g($1.barcode,6)-48)>=5){$P($1.upcacode,0,$G($1.barcode,0,6));$P($1.upcacode,6,"0000");$P($1.upcacode,10,$G($1.barcode,6,1));break}}if($1.barcode.length==8){$P($1.upcacode,11,$G($1.barcode,7,1))}$1.barcode=$1.upcacode}if($1.barcode.length!=11&&$1.barcode.length!=12){$k[$j++]="bwipp.upcAbadLength";$k[$j++]="UPC-A must be 11 or 12 digits";$0.raiseerror()}var _1I=$1.barcode;for(var _1J=0,_1K=_1I.length;_1J<_1K;_1J++){var _1L=$g(_1I,_1J);if(_1L<48||_1L>57){$k[$j++]="bwipp.upcAbadCharacter";$k[$j++]="UPC-A must contain only digits";$0.raiseerror()}}if($1.addon.length!=0&&$1.addon.length!=2&&$1.addon.length!=5){$k[$j++]="bwipp.upcAbadAddOnLength";$k[$j++]="Add-on for UPC-A must be 2 or 5 digits";$0.raiseerror()}$1.pad=$s(12);$1.checksum=0;for(var _1Q=0;_1Q<=10;_1Q+=1){$1.i=_1Q;$1.barchar=$g($1.barcode,$1.i)-48;if($1.i%2!=0){$1.checksum=$1.checksum+$1.barchar}else{$1.checksum=$1.checksum+$1.barchar*3}}$1.checksum=(10-$1.checksum%10)%10;if($1.barcode.length==12){if($g($1.barcode,11)!=$1.checksum+48){$k[$j++]="bwipp.upcAbadCheckDigit";$k[$j++]="Incorrect UPC check digit provided";$0.raiseerror()}}$P($1.pad,0,$1.barcode);$p($1.pad,11,$1.checksum+48);$1.barcode=$1.pad;$1.encs=$a(["3211","2221","2122","1411","1132","1231","1114","1312","1213","3112","111","11111","111"]);$1.barchars="0123456789";$1.sbs=$s(59);$1.txt=$a(12);$P($1.sbs,0,$g($1.encs,10));for(var _1p=0;_1p<=5;_1p+=1){$1.i=_1p;$x($1.barchars,$G($1.barcode,$1.i,1));$j--;$1.indx=$k[--$j].length;$j-=2;$1.enc=$g($1.encs,$1.indx);$P($1.sbs,$1.i*4+3,$1.enc);if($1.i==0){$p($1.txt,0,$a([$G($1.barcode,0,1),$1.textxoffset,$1.textyoffset,$1.textfont,$f($1.textsize-2)]))}else{$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),$f($1.i*7+11+$1.textxoffset),$1.textyoffset,$1.textfont,$1.textsize]))}}$P($1.sbs,6*4+3,$g($1.encs,11));for(var _2O=6;_2O<=11;_2O+=1){$1.i=_2O;$x($1.barchars,$G($1.barcode,$1.i,1));$j--;$1.indx=$k[--$j].length;$j-=2;$1.enc=$g($1.encs,$1.indx);$P($1.sbs,$1.i*4+8,$1.enc);if($1.i==11){$p($1.txt,11,$a([$G($1.barcode,11,1),$f($1.textxoffset+104),$1.textyoffset,$1.textfont,$f($1.textsize-2)]))}else{$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),$f($f($1.i*7+$1.textxoffset)+15),$1.textyoffset,$1.textfont,$1.textsize]))}}$P($1.sbs,56,$g($1.encs,12));$k[$j++]=Infinity;var _2x=$1.sbs;for(var _2y=0,_2z=_2x.length;_2y<_2z;_2y++){$k[$j++]=$g(_2x,_2y)-48}$1.sbs=$a();if($1.includetext){$k[$j++]=Infinity;for(var _33=0,_34=4;_33<_34;_33++){$k[$j++]=$1.height}for(var _36=0,_37=10;_36<_37;_36++){$k[$j++]=$f($1.height-.075)}$k[$j++]=$1.height;$k[$j++]=$1.height;for(var _3B=0,_3C=10;_3B<_3C;_3B++){$k[$j++]=$f($1.height-.075)}for(var _3E=0,_3F=4;_3E<_3F;_3E++){$k[$j++]=$1.height}$1.bhs=$a();$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;for(var _3I=0,_3J=10;_3I<_3J;_3I++){$k[$j++]=.075}$k[$j++]=0;$k[$j++]=0;for(var _3K=0,_3L=10;_3K<_3L;_3K++){$k[$j++]=.075}$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$1.bbs=$a()}else{$k[$j++]=Infinity;for(var _3N=0,_3O=30;_3N<_3O;_3N++){$k[$j++]=$1.height}$1.bhs=$a();$k[$j++]=Infinity;for(var _3R=0,_3S=30;_3R<_3S;_3R++){$k[$j++]=0}$1.bbs=$a();$1.txt=$a([])}$1.guardrightypos=0;if($ne($1.addon,"")){$k[$j++]=Infinity;$k[$j++]="dontdraw";$k[$j++]=true;$k[$j++]="includetext";$k[$j++]=true;$k[$j++]="height";$k[$j++]=$f($1.height-.15);$k[$j++]="textxoffset";if($1.addontextxoffset!="unset"){$k[$j++]=$1.addontextxoffset}else{$k[$j++]=$f(95+$1.addongap)}if($1.addontextyoffset!="unset"){$k[$j++]="textyoffset";$k[$j++]=$1.addontextyoffset}var _3d=$1.addontextsize!="unset"?$1.addontextsize:$1.textsize;var _3f=$ne($1.addontextfont,"unset")?$1.addontextfont:$1.textfont;$k[$j++]="textsize";$k[$j++]=_3d;$k[$j++]="textfont";$k[$j++]=_3f;$1.addopts=$d();if($1.addon.length==2){$k[$j++]=$1.addon;$k[$j++]=$1.addopts;$0.ean2()}if($1.addon.length==5){$k[$j++]=$1.addon;$k[$j++]=$1.addopts;$0.ean5()}$1.addcode=$k[--$j];$k[$j++]=Infinity;$q($1.sbs);$k[$j++]=$1.addongap;$q($g($1.addcode,"sbs"));$1.sbs=$a();$k[$j++]=Infinity;$q($1.bhs);$F($g($1.addcode,"bhs"),function(){var _3w=$k[--$j];$k[$j++]=$f(_3w-.075)});$1.bhs=$a();$k[$j++]=Infinity;$q($1.bbs);$F($g($1.addcode,"bbs"),function(){var _41=$k[--$j];$k[$j++]=$f(_41+.075)});$1.bbs=$a();$k[$j++]=Infinity;$q($1.txt);$q($g($1.addcode,"txt"));$1.txt=$a();$1.guardrightypos=$f($1.height*72-6)}var _4E=new Map([["ren",$0.renlinear],["sbs",$1.sbs],["bhs",$1.bhs],["bbs",$1.bbs],["txt",$1.txt],["opt",$1.options],["guardrightpos",10],["guardrightypos",$1.guardrightypos],["borderbottom",5]]);$k[$j++]=_4E;if(!$1.dontdraw){$0.renlinear()}};$0.upce=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=12;$1.textxoffset=-7;$1.textyoffset=-4;$1.height=1;$1.addongap=12;$1.addontextfont="unset";$1.addontextsize="unset";$1.addontextxoffset="unset";$1.addontextyoffset="unset";$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.addongap=+$1.addongap;if($ne($1.addontextfont,"unset")){$1.addontextfont=""+$1.addontextfont}if($ne($1.addontextsize,"unset")){$1.addontextsize=+$1.addontextsize}if($ne($1.addontextxoffset,"unset")){$1.addontextxoffset=+$1.addontextxoffset}if($ne($1.addontextyoffset,"unset")){$1.addontextyoffset=+$1.addontextyoffset}$x($1.barcode," ");if($k[--$j]){$1.barcode=$k[--$j];$j--;$1.addon=$k[--$j]}else{$j--;$1.addon=""}if($1.barcode.length==11||$1.barcode.length==12){$F($1.barcode,function(){var _Q=$k[--$j];if(_Q<48||_Q>57){$k[$j++]="bwipp.upcEupcAbadCharacter";$k[$j++]="UPC-A must contain only digits";$0.raiseerror()}});for(var _R=0,_S=1;_R<_S;_R++){var _U=$1.barcode.length==12?8:7;$1.upcecode=$s(_U);if($f($g($1.barcode,3)-48)<=2&&$eq($G($1.barcode,4,4),"0000")){$P($1.upcecode,0,$G($1.barcode,0,3));$P($1.upcecode,3,$G($1.barcode,8,3));$P($1.upcecode,6,$G($1.barcode,3,1));break}if($eq($G($1.barcode,4,5),"00000")){$P($1.upcecode,0,$G($1.barcode,0,4));$P($1.upcecode,4,$G($1.barcode,9,2));$P($1.upcecode,6,"3");break}if($eq($G($1.barcode,5,5),"00000")){$P($1.upcecode,0,$G($1.barcode,0,5));$P($1.upcecode,5,$G($1.barcode,10,1));$P($1.upcecode,6,"4");break}if($f($g($1.barcode,10)-48)>=5&&$eq($G($1.barcode,6,4),"0000")){$P($1.upcecode,0,$G($1.barcode,0,6));$P($1.upcecode,6,$G($1.barcode,10,1));break}$k[$j++]="bwipp.upcEupcAnotCompressible";$k[$j++]="UPC-A cannot be converted to a UPC-E";$0.raiseerror()}if($1.barcode.length==12){$P($1.upcecode,7,$G($1.barcode,11,1))}$1.barcode=$1.upcecode}if($1.barcode.length!=7&&$1.barcode.length!=8){$k[$j++]="bwipp.upcEbadLength";$k[$j++]="UPC-E must be 7 or 8 digits";$0.raiseerror()}var _1I=$1.barcode;for(var _1J=0,_1K=_1I.length;_1J<_1K;_1J++){var _1L=$g(_1I,_1J);if(_1L<48||_1L>57){$k[$j++]="bwipp.upcEbadCharacter";$k[$j++]="UPC-E must contain only digits";$0.raiseerror()}}if($1.addon.length!=0&&$1.addon.length!=2&&$1.addon.length!=5){$k[$j++]="bwipp.upcEbadAddOnLength";$k[$j++]="Add-on for UPC-E must be 2 or 5 digits";$0.raiseerror()}var _1Q=$g($1.barcode,0);if(_1Q!=48&&_1Q!=49){$k[$j++]="bwipp.upcEbadNumberSystem";$k[$j++]="UPC-E must have number system 0 or 1";$0.raiseerror()}$1.encs=$a(["3211","2221","2122","1411","1132","1231","1114","1312","1213","3112","111","111111"]);$1.barchars="0123456789";$1.mirrormaps=$a(["000111","001011","001101","001110","010011","011001","011100","010101","010110","011010"]);for(var _1T=0,_1U=1;_1T<_1U;_1T++){$1.upcacode=$s(11);if($g($1.barcode,6)-48<=2){$P($1.upcacode,0,$G($1.barcode,0,3));$P($1.upcacode,3,$G($1.barcode,6,1));$P($1.upcacode,4,"0000");$P($1.upcacode,8,$G($1.barcode,3,3));break}if($g($1.barcode,6)-48==3){$P($1.upcacode,0,$G($1.barcode,0,4));$P($1.upcacode,4,"00000");$P($1.upcacode,9,$G($1.barcode,4,2));break}if($g($1.barcode,6)-48==4){$P($1.upcacode,0,$G($1.barcode,0,5));$P($1.upcacode,5,"00000");$P($1.upcacode,10,$G($1.barcode,5,1));break}if($g($1.barcode,6)-48>=5){$P($1.upcacode,0,$G($1.barcode,0,6));$P($1.upcacode,6,"0000");$P($1.upcacode,10,$G($1.barcode,6,1));break}}$1.checksum=0;for(var _29=0;_29<=10;_29+=1){$1.i=_29;$1.barchar=$g($1.upcacode,$1.i)-48;if($1.i%2!=0){$1.checksum=$1.checksum+$1.barchar}else{$1.checksum=$1.checksum+$1.barchar*3}}$1.checksum=(10-$1.checksum%10)%10;if($1.barcode.length==8){if($g($1.barcode,7)!=$1.checksum+48){$k[$j++]="bwipp.upcEbadCheckDigit";$k[$j++]="Incorrect UPC check digit provided";$0.raiseerror()}}$1.pad=$s(8);$P($1.pad,0,$1.barcode);$p($1.pad,7,$1.checksum+48);$1.barcode=$1.pad;$1.txt=$a(8);$p($1.txt,0,$a([$G($1.barcode,0,1),$1.textxoffset,$1.textyoffset,$1.textfont,$f($1.textsize-2)]));$1.mirrormap=$g($1.mirrormaps,$1.checksum);if($g($1.barcode,0)==48){$1.invt=$s($1.mirrormap.length);for(var _2l=0,_2k=$1.mirrormap.length-1;_2l<=_2k;_2l+=1){$1.i=_2l;if($g($1.mirrormap,$1.i)==48){$p($1.invt,$1.i,49)}else{$p($1.invt,$1.i,48)}}$1.mirrormap=$1.invt}$1.sbs=$s(33);$P($1.sbs,0,$g($1.encs,10));for(var _2y=1;_2y<=6;_2y+=1){$1.i=_2y;$x($1.barchars,$G($1.barcode,$1.i,1));$j--;$1.indx=$k[--$j].length;$j-=2;$1.enc=$g($1.encs,$1.indx);if($g($1.mirrormap,$1.i-1)==49){$1.enclen=$1.enc.length;$1.revenc=$s($1.enclen);for(var _3F=0,_3E=$1.enclen-1;_3F<=_3E;_3F+=1){$1.j=_3F;$1.char=$g($1.enc,$1.j);$p($1.revenc,$1.enclen-$1.j-1,$1.char)}$1.enc=$1.revenc}$P($1.sbs,($1.i-1)*4+3,$1.enc);$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),$f(($1.i-1)*7+11+$1.textxoffset),$1.textyoffset,$1.textfont,$1.textsize]))}$p($1.txt,7,$a([$G($1.barcode,7,1),$f(6*7+18+$1.textxoffset),$1.textyoffset,$1.textfont,$f($1.textsize-2)]));$P($1.sbs,27,$g($1.encs,11));$k[$j++]=Infinity;var _3n=$1.sbs;for(var _3o=0,_3p=_3n.length;_3o<_3p;_3o++){$k[$j++]=$g(_3n,_3o)-48}$1.sbs=$a();if($1.includetext){$k[$j++]=Infinity;$k[$j++]=$1.height;$k[$j++]=$1.height;for(var _3v=0,_3w=12;_3v<_3w;_3v++){$k[$j++]=$f($1.height-.075)}$k[$j++]=$1.height;$k[$j++]=$1.height;$k[$j++]=$1.height;$1.bhs=$a();$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=0;for(var _42=0,_43=12;_42<_43;_42++){$k[$j++]=.075}$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$1.bbs=$a()}else{$k[$j++]=Infinity;for(var _45=0,_46=17;_45<_46;_45++){$k[$j++]=$1.height}$1.bhs=$a();$k[$j++]=Infinity;for(var _49=0,_4A=17;_49<_4A;_49++){$k[$j++]=0}$1.bbs=$a();$1.txt=$a([])}$1.guardrightypos=0;if($ne($1.addon,"")){$k[$j++]=Infinity;$k[$j++]="dontdraw";$k[$j++]=true;$k[$j++]="includetext";$k[$j++]=true;$k[$j++]="height";$k[$j++]=$f($1.height-.15);$k[$j++]="textxoffset";if($1.addontextxoffset!="unset"){$k[$j++]=$1.addontextxoffset}else{$k[$j++]=$f(51+$1.addongap)}if($1.addontextyoffset!="unset"){$k[$j++]="textyoffset";$k[$j++]=$1.addontextyoffset}var _4L=$1.addontextsize!="unset"?$1.addontextsize:$1.textsize;var _4N=$ne($1.addontextfont,"unset")?$1.addontextfont:$1.textfont;$k[$j++]="textsize";$k[$j++]=_4L;$k[$j++]="textfont";$k[$j++]=_4N;$1.addopts=$d();if($1.addon.length==2){$k[$j++]=$1.addon;$k[$j++]=$1.addopts;$0.ean2()}if($1.addon.length==5){$k[$j++]=$1.addon;$k[$j++]=$1.addopts;$0.ean5()}$1.addcode=$k[--$j];$k[$j++]=Infinity;$q($1.sbs);$k[$j++]=$1.addongap;$q($g($1.addcode,"sbs"));$1.sbs=$a();$k[$j++]=Infinity;$q($1.bhs);$F($g($1.addcode,"bhs"),function(){var _4e=$k[--$j];$k[$j++]=$f(_4e-.075)});$1.bhs=$a();$k[$j++]=Infinity;$q($1.bbs);$F($g($1.addcode,"bbs"),function(){var _4j=$k[--$j];$k[$j++]=$f(_4j+.075)});$1.bbs=$a();$k[$j++]=Infinity;$q($1.txt);$q($g($1.addcode,"txt"));$1.txt=$a();$1.guardrightypos=$f($1.height*72-6)}var _4w=new Map([["ren",$0.renlinear],["sbs",$1.sbs],["bhs",$1.bhs],["bbs",$1.bbs],["txt",$1.txt],["opt",$1.options],["guardrightpos",10],["guardrightypos",$1.guardrightypos],["borderbottom",5]]);$k[$j++]=_4w;if(!$1.dontdraw){$0.renlinear()}};$0.isbn=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.isbntextfont="OCR-A";$1.isbntextsize=8;$1.isbntextxoffset="unset";$1.isbntextyoffset="unset";$1.height=1;$1.addongap=12;$1.legacy=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.isbntextfont=""+$1.isbntextfont;$1.isbntextsize=+$1.isbntextsize;if($ne($1.isbntextxoffset,"unset")){$1.isbntextxoffset=+$1.isbntextxoffset}if($ne($1.isbntextyoffset,"unset")){$1.isbntextyoffset=+$1.isbntextyoffset}$1.height=+$1.height;$1.addongap=+$1.addongap;$x($1.barcode," ");if($k[--$j]){$1.barcode=$k[--$j];$j--;$1.addon=$k[--$j]}else{$j--;$1.addon=""}if($1.barcode.length!=15&&$1.barcode.length!=17&&($1.barcode.length!=11&&$1.barcode.length!=13)){$k[$j++]="bwipp.isbnBadLength";$k[$j++]="ISBN-13 must be 15 or 17 characters including dashes. ISBN-10 must be 11 or 13 characters including dashes";$0.raiseerror()}if($1.addon.length!=0&&$1.addon.length!=2&&$1.addon.length!=5){$k[$j++]="bwipp.isbnBadAddOnLength";$k[$j++]="Add-on for ISBN must be 2 or 5 digits";$0.raiseerror()}if($1.barcode.length>=15){var _Q=$G($1.barcode,0,4);if($ne(_Q,"978-")&&$ne(_Q,"979-")){$k[$j++]="bwipp.isbn13badPrefix";$k[$j++]="ISBN-13 prefix must be 978- or 979-";$0.raiseerror()}$1.wasdash=false;$1.numdash=0;$1.numdigit=0;var _S=$G($1.barcode,5,9);for(var _T=0,_U=_S.length;_T<_U;_T++){var _V=$g(_S,_T);$k[$j++]=_V;if(_V==45){if($1.wasdash){$k[$j++]="bwipp.isbn13adjacentDashes";$k[$j++]="ISBN-13 does not permit adjacent dashes";$0.raiseerror()}$1.wasdash=true;$1.numdash=$1.numdash+1}var _Y=$k[--$j];if(_Y>=48&&_Y<=57){$1.wasdash=false;$1.numdigit=$1.numdigit+1}}if($1.numdash!=2||$1.numdigit!=7){$k[$j++]="bwipp.isbn13numDashesDigits";$k[$j++]="Incorrect number of dashes and digits for ISBN-13";$0.raiseerror()}var _d=$g($1.barcode,14);if(_d<48||_d>57){$k[$j++]="bwipp.isbn13character15";$k[$j++]="ISBN-13 character 15 must be a digit";$0.raiseerror()}if($1.barcode.length==17){if($ne($G($1.barcode,15,1),"-")){$k[$j++]="bwipp.isbn13character16";$k[$j++]="ISBN-13 penultimate character must be a dash";$0.raiseerror()}var _i=$g($1.barcode,16);if(_i<48||_i>57){$k[$j++]="bwipp.isbn13character17";$k[$j++]="ISBN-13 final character must be a digit";$0.raiseerror()}}}else{var _k=$g($1.barcode,0);if(_k<48||_k>57){$k[$j++]="bwipp.isbn10FirstDigit";$k[$j++]="ISBN-10 first character must be a digit";$0.raiseerror()}$1.wasdash=false;$1.numdash=0;$1.numdigit=0;var _m=$G($1.barcode,1,9);for(var _n=0,_o=_m.length;_n<_o;_n++){var _p=$g(_m,_n);$k[$j++]=_p;if(_p==45){if($1.wasdash){$k[$j++]="bwipp.isbn10adjacentDashes";$k[$j++]="ISBN-10 does not permit adjacent dashes";$0.raiseerror()}$1.wasdash=true;$1.numdash=$1.numdash+1}var _s=$k[--$j];if(_s>=48&&_s<=57){$1.wasdash=false;$1.numdigit=$1.numdigit+1}}if($1.numdash!=2||$1.numdigit!=7){$k[$j++]="bwipp.isbn10numDashesDigits";$k[$j++]="Incorrect number of dashes and digits for ISBN-10";$0.raiseerror()}var _x=$g($1.barcode,10);if(_x<48||_x>57){$k[$j++]="bwipp.isbn10character11";$k[$j++]="ISBN-10 character 11 must be a digit";$0.raiseerror()}if($1.barcode.length==13){if($ne($G($1.barcode,11,1),"-")){$k[$j++]="bwipp.isbn10character12";$k[$j++]="ISBN-10 penultimate character must be a dash";$0.raiseerror()}var _12=$g($1.barcode,12);if((_12<48||_12>57)&&_12!=88){$k[$j++]="bwipp.isbn10character13";$k[$j++]="ISBN-10 final character must be a digit or X";$0.raiseerror()}}}$1.isbntxt=$1.barcode;if($1.isbntxt.length<=13){$1.isbn=$s(10);$1.checksum=0;$1.i=0;$1.n=0;for(;;){$1.isbnchar=$f($g($1.isbntxt,$1.i)-48);if($1.isbnchar!=-3){$p($1.isbn,$1.n,$f($1.isbnchar+48));if($1.n<9){$1.checksum=$f($1.checksum+(10-$1.n)*$1.isbnchar)}$1.n=$1.n+1}$1.i=$1.i+1;if($1.i==$1.isbntxt.length){break}}var _1M=$f(11-$1.checksum%11)%11;$k[$j++]="checksum";$k[$j++]=_1M;if(_1M==10){$j--;$k[$j++]=40}var _1N=$k[--$j];$1[$k[--$j]]=$f(_1N+48);$1.isbn=$G($1.isbn,0,9);if($1.isbntxt.length==13){if($g($1.isbntxt,12)!=$1.checksum){$k[$j++]="bwipp.isbn10badCheckDigit";$k[$j++]="Incorrect ISBN-10 check digit provided";$0.raiseerror()}}}if(!$1.legacy||$1.isbntxt.length>=15){if($1.isbntxt.length<=13){$1.pad=$s(15);$P($1.pad,0,"978-");$P($1.pad,4,$G($1.isbntxt,0,11));$1.isbntxt=$1.pad}$1.isbn=$s(13);$1.checksum=0;$1.i=0;$1.n=0;for(;;){$1.isbnchar=$g($1.isbntxt,$1.i)-48;if($1.isbnchar!=-3){$p($1.isbn,$1.n,$1.isbnchar+48);if($1.n<12){$k[$j++]="checksum";$k[$j++]=$1.isbnchar;if($1.n%2!=0){var _1p=$k[--$j];$k[$j++]=_1p*3}var _1r=$k[--$j];$1[$k[--$j]]=$f(_1r+$1.checksum)}$1.n=$1.n+1}$1.i=$1.i+1;if($1.i==$1.isbntxt.length){break}}$1.checksum=(10-$1.checksum%10)%10+48;$1.isbn=$G($1.isbn,0,12);if($1.isbntxt.length==17){if($g($1.isbntxt,16)!=$1.checksum){$k[$j++]="bwipp.isbn13badCheckDigit";$k[$j++]="Incorrect ISBN-13 check digit provided";$0.raiseerror()}}}var _25=$1.isbn.length==12?22:18;$1.pad=$s(_25);$P($1.pad,0,"ISBN ");$P($1.pad,5,$1.isbntxt);$p($1.pad,$1.pad.length-2,45);$p($1.pad,$1.pad.length-1,$1.checksum);$1.isbntxt=$1.pad;$1.barcode=$s(12);if($1.isbn.length==9){$P($1.barcode,0,"978");$P($1.barcode,3,$1.isbn)}else{$P($1.barcode,0,$1.isbn)}if($ne($1.addon,"")){var _2P=$s(12+$1.addon.length+1);$P(_2P,0,$1.barcode);$P(_2P,12," ");$P(_2P,13,$1.addon);$1.barcode=_2P}$p($1.options,"dontdraw",true);$p($1.options,"addongap",$1.addongap);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.ean13();var _2X=$k[--$j];$1[$k[--$j]]=_2X;if($1.includetext){if($1.isbntextxoffset=="unset"){$k[$j++]="isbntextxoffset";if($1.isbn.length==9){$k[$j++]=-1}else{$k[$j++]=-12}var _2c=$k[--$j];$1[$k[--$j]]=_2c}if($1.isbntextyoffset=="unset"){$1.isbntextyoffset=$f($1.height*72+3)}var _2h=$g($1.args,"txt")!==undefined;if(_2h){$1.txt=$g($1.args,"txt");$1.newtxt=$a($1.txt.length+1);$P($1.newtxt,0,$1.txt);$p($1.newtxt,$1.newtxt.length-1,$a([$1.isbntxt,$1.isbntextxoffset,$1.isbntextyoffset,$1.isbntextfont,$1.isbntextsize]));$p($1.args,"txt",$1.newtxt)}else{$p($1.args,"txt",$a([$a([$1.isbntxt,$1.isbntextxoffset,$1.isbntextyoffset,$1.isbntextfont,$1.isbntextsize])]))}}$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.ismn=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.ismntextfont="OCR-A";$1.ismntextsize=8;$1.ismntextxoffset="unset";$1.ismntextyoffset="unset";$1.height=1;$1.addongap=12;$1.legacy=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.ismntextfont=""+$1.ismntextfont;$1.ismntextsize=+$1.ismntextsize;if($ne($1.ismntextxoffset,"unset")){$1.ismntextxoffset=+$1.ismntextxoffset}if($ne($1.ismntextyoffset,"unset")){$1.ismntextyoffset=+$1.ismntextyoffset}$1.height=+$1.height;$1.addongap=+$1.addongap;$x($1.barcode," ");if($k[--$j]){$1.barcode=$k[--$j];$j--;$1.addon=$k[--$j]}else{$j--;$1.addon=""}if($1.barcode.length!=15&&$1.barcode.length!=17&&($1.barcode.length!=11&&$1.barcode.length!=13)){$k[$j++]="bwipp.ismnBadLength";$k[$j++]="ISMN-13 must be 15 or 17 characters including dashes. ISMN-10 must be 11 or 13 characters including dashes";$0.raiseerror()}if($1.addon.length!=0&&$1.addon.length!=2&&$1.addon.length!=5){$k[$j++]="bwipp.ismnBadAddOnLength";$k[$j++]="Add-on for ISMN must be 2 or 5 digits";$0.raiseerror()}if($1.barcode.length>=15){if($ne($G($1.barcode,0,4),"979-")){$k[$j++]="bwipp.ismn13badPrefix";$k[$j++]="ISMN-13 prefix must be 979-";$0.raiseerror()}$1.wasdash=false;$1.numdash=0;$1.numdigit=0;var _S=$G($1.barcode,5,9);for(var _T=0,_U=_S.length;_T<_U;_T++){var _V=$g(_S,_T);$k[$j++]=_V;if(_V==45){if($1.wasdash){$k[$j++]="bwipp.ismn13adjacentDashes";$k[$j++]="ISMN-13 does not permit adjacent dashes";$0.raiseerror()}$1.wasdash=true;$1.numdash=$1.numdash+1}var _Y=$k[--$j];if(_Y>=48&&_Y<=57){$1.wasdash=false;$1.numdigit=$1.numdigit+1}}if($1.numdash!=2||$1.numdigit!=7){$k[$j++]="bwipp.ismn13numDashesDigits";$k[$j++]="Incorrect number of dashes and digits for ISMN-13";$0.raiseerror()}var _d=$g($1.barcode,14);if(_d<48||_d>57){$k[$j++]="bwipp.ismn13character15";$k[$j++]="ISMN-13 character 15 must be a digit";$0.raiseerror()}if($1.barcode.length==17){if($ne($G($1.barcode,15,1),"-")){$k[$j++]="bwipp.ismn13character16";$k[$j++]="ISMN-13 penultimate character must be a dash";$0.raiseerror()}var _i=$g($1.barcode,16);if(_i<48||_i>57){$k[$j++]="bwipp.ismn13character17";$k[$j++]="ISMN-13 final character must be a digit";$0.raiseerror()}}}else{if($ne($G($1.barcode,0,2),"M-")){$k[$j++]="bwipp.ismn10badPrefix";$k[$j++]="ISMN-10 prefix must be M-";$0.raiseerror()}var _m=$g($1.barcode,2);if(_m<48||_m>57){$k[$j++]="bwipp.ismn10character3";$k[$j++]="ISMN-10 character 3 must be a digit";$0.raiseerror()}$1.wasdash=false;$1.numdash=0;$1.numdigit=0;var _o=$G($1.barcode,3,7);for(var _p=0,_q=_o.length;_p<_q;_p++){var _r=$g(_o,_p);$k[$j++]=_r;if(_r==45){if($1.wasdash){$k[$j++]="bwipp.ismn10adjacentDashes";$k[$j++]="ISMN-10 does not permit adjacent dashes";$0.raiseerror()}$1.wasdash=true;$1.numdash=$1.numdash+1}var _u=$k[--$j];if(_u>=48&&_u<=57){$1.wasdash=false;$1.numdigit=$1.numdigit+1}}if($1.numdash!=1||$1.numdigit!=6){$k[$j++]="bwipp.ismn10numDashesDigits";$k[$j++]="Incorrect number of dashes and digits for ISMN-10";$0.raiseerror()}var _z=$g($1.barcode,10);if(_z<48||_z>57){$k[$j++]="bwipp.ismn10character11";$k[$j++]="ISMN-10 character 11 must be a digit";$0.raiseerror()}if($1.barcode.length==13){if($ne($G($1.barcode,11,1),"-")){$k[$j++]="bwipp.ismn10character12";$k[$j++]="ISMN-10 penultimate character must be a dash";$0.raiseerror()}var _14=$g($1.barcode,12);if((_14<48||_14>57)&&_14!=88){$k[$j++]="bwipp.ismn10character13";$k[$j++]="ISMN-10 final character must be a digit or X";$0.raiseerror()}}}$1.ismntxt=$1.barcode;$1.legacytxt="";if($1.ismntxt.length<=13){$1.legacytxt=$1.ismntxt;$1.pad=$s($1.ismntxt.length+4);$P($1.pad,0,"979-0-");$P($1.pad,6,$G($1.ismntxt,2,$1.ismntxt.length-2));$1.ismntxt=$1.pad}$1.ismn=$s(13);$1.checksum=0;$1.i=0;$1.n=0;for(;;){$1.ismnchar=$g($1.ismntxt,$1.i)-48;if($1.ismnchar!=-3){$p($1.ismn,$1.n,$1.ismnchar+48);if($1.n<12){if($1.n%2==0){$1.checksum=$1.ismnchar+$1.checksum}else{$1.checksum=$1.ismnchar*3+$1.checksum}}$1.n=$1.n+1}$1.i=$1.i+1;if($1.i==$1.ismntxt.length){break}}$1.checksum=(10-$1.checksum%10)%10+48;if($1.barcode.length==13||$1.barcode.length==17){var _1b=$1.barcode;if($g(_1b,_1b.length-1)!=$1.checksum){$k[$j++]="bwipp.ismnBadCheckDigit";$k[$j++]="Incorrect ISMN check digit provided";$0.raiseerror()}}if($1.legacy&&$ne($1.legacytxt,"")){$1.ismntxt=$1.legacytxt;$1.pad=$s(18)}else{$1.pad=$s(22)}$P($1.pad,0,"ISMN ");$P($1.pad,5,$1.ismntxt);$p($1.pad,$1.pad.length-2,45);$p($1.pad,$1.pad.length-1,$1.checksum);$1.ismntxt=$1.pad;$1.barcode=$G($1.ismn,0,12);if($ne($1.addon,"")){var _1w=$s(12+$1.addon.length+1);$P(_1w,0,$1.barcode);$P(_1w,12," ");$P(_1w,13,$1.addon);$1.barcode=_1w}$p($1.options,"dontdraw",true);$p($1.options,"addongap",$1.addongap);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.ean13();var _24=$k[--$j];$1[$k[--$j]]=_24;if($1.includetext){if($1.ismntextxoffset=="unset"){$k[$j++]="ismntextxoffset";if($1.ismntxt.length==18){$k[$j++]=-1}else{$k[$j++]=-12}var _29=$k[--$j];$1[$k[--$j]]=_29}if($1.ismntextyoffset=="unset"){$1.ismntextyoffset=$f($1.height*72+3)}var _2E=$g($1.args,"txt")!==undefined;if(_2E){$1.txt=$g($1.args,"txt");$1.newtxt=$a($1.txt.length+1);$P($1.newtxt,0,$1.txt);$p($1.newtxt,$1.newtxt.length-1,$a([$1.ismntxt,$1.ismntextxoffset,$1.ismntextyoffset,$1.ismntextfont,$1.ismntextsize]));$p($1.args,"txt",$1.newtxt)}else{$p($1.args,"txt",$a([$a([$1.ismntxt,$1.ismntextxoffset,$1.ismntextyoffset,$1.ismntextfont,$1.ismntextsize])]))}}$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.issn=function(){var $1={};$1.options=$k[--$j];$1.issntxt=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.issntextfont="OCR-A";$1.issntextsize=8;$1.issntextxoffset="unset";$1.issntextyoffset="unset";$1.height=1;$1.addongap=12;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.issntextfont=""+$1.issntextfont;$1.issntextsize=+$1.issntextsize;if($ne($1.issntextxoffset,"unset")){$1.issntextxoffset=+$1.issntextxoffset}if($ne($1.issntextyoffset,"unset")){$1.issntextyoffset=+$1.issntextyoffset}$1.height=+$1.height;$1.addongap=+$1.addongap;$x($1.issntxt," ");if($k[--$j]){$1.issntxt=$k[--$j];$j--;$1.seqvar=$k[--$j]}else{$j--;$1.seqvar="00"}$x($1.seqvar," ");if($k[--$j]){$1.seqvar=$k[--$j];$j--;$1.addon=$k[--$j]}else{$j--;$1.addon=""}if($1.issntxt.length!=8&&$1.issntxt.length!=9){$k[$j++]="bwipp.issnBadLength";$k[$j++]="ISSN must be 8 or 9 characters including dash, in the format XXXX-XXXX";$0.raiseerror()}var _O=$G($1.issntxt,0,4);for(var _P=0,_Q=_O.length;_P<_Q;_P++){var _R=$g(_O,_P);if(_R<48||_R>57){$k[$j++]="bwipp.issnFirstThroughFourthNotNumeric";$k[$j++]="ISSN first four characters must be numeral characters";$0.raiseerror()}}if($ne($G($1.issntxt,4,1),"-")){$k[$j++]="bwipp.issnNeedsDash";$k[$j++]="ISSN fifth character must be a dash";$0.raiseerror()}var _V=$G($1.issntxt,5,3);for(var _W=0,_X=_V.length;_W<_X;_W++){var _Y=$g(_V,_W);if(_Y<48||_Y>57){$k[$j++]="bwipp.issnSixthThroughEighthNotNumeric";$k[$j++]="ISSN sixth through eighth characters must be numerals";$0.raiseerror()}}if($1.issntxt.length==9){var _b=$g($1.issntxt,8);if((_b<48||_b>57)&&_b!=88){$k[$j++]="bwipp.issnNinthCharacterBadFormat";$k[$j++]="ISSN ninth character must be a number or the character X";$0.raiseerror()}}if($1.seqvar.length!=2){$k[$j++]="bwipp.issnBadSequenceVariantLength";$k[$j++]="Sequence variant for ISSN must be 2 digits";$0.raiseerror()}$F($1.seqvar,function(){var _e=$k[--$j];if(_e<48||_e>57){$k[$j++]="bwipp.issnSequenceVariantBadCharacter";$k[$j++]="Sequence variant for ISSN must contain only digits";$0.raiseerror()}});if($1.addon.length!=0&&$1.addon.length!=2&&$1.addon.length!=5){$k[$j++]="bwipp.issnBadAddOnLength";$k[$j++]="Add-on for ISSN must be 2 or 5 digits";$0.raiseerror()}$1.issn=$s(8);$1.checksum=0;$1.i=0;$1.n=0;for(;;){$1.issnchar=$f($g($1.issntxt,$1.i)-48);if($1.issnchar!=-3){$p($1.issn,$1.n,$f($1.issnchar+48));if($1.n<7){$1.checksum=$f($1.checksum+$1.issnchar*(8-$1.n))}$1.n=$1.n+1}$1.i=$1.i+1;if($1.i==$1.issntxt.length){break}}$1.checksum=$f(11-$1.checksum%11)%11;var _10=$f($1.checksum+48);$k[$j++]="checksum";$k[$j++]=_10;if(_10==58){$j--;$k[$j++]=88}var _11=$k[--$j];$1[$k[--$j]]=_11;if($1.issntxt.length==9){if($g($1.issntxt,8)!=$1.checksum){$k[$j++]="bwipp.issnBadCheckDigit";$k[$j++]="Incorrect ISSN check digit provided";$0.raiseerror()}}$1.pad=$s(14);$P($1.pad,0,"ISSN ");$P($1.pad,5,$1.issntxt);$p($1.pad,13,$1.checksum);$1.issntxt=$1.pad;$1.barcode=$G($1.issn,0,7);$1.barcode=$s(12);$P($1.barcode,0,"977");$P($1.barcode,3,$1.issn);$P($1.barcode,10,$1.seqvar);if($ne($1.addon,"")){var _1O=$s(12+$1.addon.length+1);$P(_1O,0,$1.barcode);$P(_1O,12," ");$P(_1O,13,$1.addon);$1.barcode=_1O}$p($1.options,"dontdraw",true);$p($1.options,"addongap",$1.addongap);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.ean13();var _1W=$k[--$j];$1[$k[--$j]]=_1W;if($1.includetext){if($1.issntextxoffset=="unset"){$1.issntextxoffset=10}if($1.issntextyoffset=="unset"){$1.issntextyoffset=$f($1.height*72+3)}var _1d=$g($1.args,"txt")!==undefined;if(_1d){$1.txt=$g($1.args,"txt");$1.newtxt=$a($1.txt.length+1);$P($1.newtxt,0,$1.txt);$p($1.newtxt,$1.newtxt.length-1,$a([$1.issntxt,$1.issntextxoffset,$1.issntextyoffset,$1.issntextfont,$1.issntextsize]));$p($1.args,"txt",$1.newtxt)}else{$p($1.args,"txt",$a([$a([$1.issntxt,$1.issntextxoffset,$1.issntextyoffset,$1.issntextfont,$1.issntextsize])]))}}$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.code128=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textxoffset=0;$1.textyoffset=-8;$1.height=1;$1.encoding="auto";$1.raw=false;$1.parse=false;$1.parsefnc=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.sta=-1;$1.stb=-2;$1.stc=-3;$1.swa=-4;$1.swb=-5;$1.swc=-6;$1.fn1=-7;$1.fn2=-8;$1.fn3=-9;$1.fn4=-10;$1.sft=-11;$1.stp=-12;$1.lka=-13;$1.lkc=-14;var _I=new Map([["parse",$1.parse],["parsefnc",$1.parsefnc],["FNC1",$1.fn1],["FNC1",$1.fn1],["FNC2",$1.fn2],["FNC3",$1.fn3],["LNKA",$1.lka],["LNKC",$1.lkc]]);$1.fncvals=_I;$k[$j++]="msg";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _L=$k[--$j];$1[$k[--$j]]=_L;$1.msglen=$1.msg.length;$1.charmaps=$a([$a([32,32,"00"]),$a(["!","!","01"]),$a(['"','"',"02"]),$a(["#","#","03"]),$a(["$","$","04"]),$a(["%","%","05"]),$a(["&","&","06"]),$a(["'","'","07"]),$a([40,40,"08"]),$a([41,41,"09"]),$a(["*","*","10"]),$a(["+","+","11"]),$a([",",",","12"]),$a(["-","-","13"]),$a([".",".","14"]),$a(["/","/","15"]),$a(["0","0","16"]),$a(["1","1","17"]),$a(["2","2","18"]),$a(["3","3","19"]),$a(["4","4","20"]),$a(["5","5","21"]),$a(["6","6","22"]),$a(["7","7","23"]),$a(["8","8","24"]),$a(["9","9","25"]),$a([":",":","26"]),$a([";",";","27"]),$a(["<","<","28"]),$a(["=","=","29"]),$a([">",">","30"]),$a(["?","?","31"]),$a(["@","@","32"]),$a(["A","A","33"]),$a(["B","B","34"]),$a(["C","C","35"]),$a(["D","D","36"]),$a(["E","E","37"]),$a(["F","F","38"]),$a(["G","G","39"]),$a(["H","H","40"]),$a(["I","I","41"]),$a(["J","J","42"]),$a(["K","K","43"]),$a(["L","L","44"]),$a(["M","M","45"]),$a(["N","N","46"]),$a(["O","O","47"]),$a(["P","P","48"]),$a(["Q","Q","49"]),$a(["R","R","50"]),$a(["S","S","51"]),$a(["T","T","52"]),$a(["U","U","53"]),$a(["V","V","54"]),$a(["W","W","55"]),$a(["X","X","56"]),$a(["Y","Y","57"]),$a(["Z","Z","58"]),$a(["[","[","59"]),$a([92,92,"60"]),$a(["]","]","61"]),$a(["^","^","62"]),$a(["_","_","63"]),$a([0,"`","64"]),$a([1,"a","65"]),$a([2,"b","66"]),$a([3,"c","67"]),$a([4,"d","68"]),$a([5,"e","69"]),$a([6,"f","70"]),$a([7,"g","71"]),$a([8,"h","72"]),$a([9,"i","73"]),$a([10,"j","74"]),$a([11,"k","75"]),$a([12,"l","76"]),$a([13,"m","77"]),$a([14,"n","78"]),$a([15,"o","79"]),$a([16,"p","80"]),$a([17,"q","81"]),$a([18,"r","82"]),$a([19,"s","83"]),$a([20,"t","84"]),$a([21,"u","85"]),$a([22,"v","86"]),$a([23,"w","87"]),$a([24,"x","88"]),$a([25,"y","89"]),$a([26,"z","90"]),$a([27,"{","91"]),$a([28,"|","92"]),$a([29,"}","93"]),$a([30,"~","94"]),$a([31,127,"95"]),$a([$1.fn3,$1.fn3,"96"]),$a([$1.fn2,$1.fn2,"97"]),$a([$1.sft,$1.sft,"98"]),$a([$1.swc,$1.swc,"99"]),$a([$1.swb,$1.fn4,$1.swb]),$a([$1.fn4,$1.swa,$1.swa]),$a([$1.fn1,$1.fn1,$1.fn1]),$a([$1.sta,$1.sta,$1.sta]),$a([$1.stb,$1.stb,$1.stb]),$a([$1.stc,$1.stc,$1.stc]),$a([$1.stp,$1.stp,$1.stp])]);$1.charvals=$a([new Map,new Map,new Map]);for(var _2e=0,_2d=$1.charmaps.length-1;_2e<=_2d;_2e+=1){$1.i=_2e;$1.encs=$g($1.charmaps,$1.i);for(var _2i=0;_2i<=2;_2i+=1){$1.j=_2i;var _2l=$g($1.encs,$1.j);$k[$j++]=_2l;if($eq($t(_2l),"stringtype")){var _2o=$g($k[--$j],0);$k[$j++]=_2o}$p($g($1.charvals,$1.j),$k[--$j],$1.i)}}$1.seta=$g($1.charvals,0);$1.setb=$g($1.charvals,1);$1.setc=$g($1.charvals,2);$p($1.seta,$1.lka,$g($1.seta,$1.swb));$p($1.seta,$1.lkc,$g($1.seta,$1.swc));$p($1.setb,$1.lka,$g($1.setb,$1.swc));$p($1.setb,$1.lkc,$g($1.setb,$1.swa));$p($1.setc,$1.lka,$g($1.setc,$1.swa));$p($1.setc,$1.lkc,$g($1.setc,$1.swb));if($1.raw){$1.encoding="raw"}if($eq($1.encoding,"raw")){$1.cws=$a($1.barcode.length);$1.i=0;$1.j=0;for(;;){if($1.i==$1.barcode.length){break}$1.cw=~~$z($G($1.barcode,$1.i+1,3));$p($1.cws,$1.j,$1.cw);$1.i=$1.i+4;$1.j=$1.j+1}$1.cws=$G($1.cws,0,$1.j);$1.text=""}if($eq($1.encoding,"auto")){$1.text=$s($1.msglen);for(var _3q=0,_3p=$1.msglen-1;_3q<=_3p;_3q+=1){$1.i=_3q;var _3v=$g($1.msg,$1.i);$k[$j++]=$1.text;$k[$j++]=$1.i;$k[$j++]=_3v;if(_3v<0){$j--;$k[$j++]=32}var _3w=$k[--$j];var _3x=$k[--$j];$p($k[--$j],_3x,_3w)}$k[$j++]=Infinity;for(var _40=0,_41=$1.msglen;_40<_41;_40++){$k[$j++]=0}$k[$j++]=0;$1.numSA=$a();$k[$j++]=Infinity;for(var _44=0,_45=$1.msglen;_44<_45;_44++){$k[$j++]=0}$k[$j++]=0;$1.numEA=$a();for(var _48=$1.msglen-1;_48>=0;_48-=1){$1.i=_48;if($g($1.msg,$1.i)>=0){if($g($1.msg,$1.i)>=128){$p($1.numEA,$1.i,$f($g($1.numEA,$1.i+1)+1))}else{$p($1.numSA,$1.i,$f($g($1.numSA,$1.i+1)+1))}}}$1.ea=false;$1.msgtmp=$a([]);for(var _4S=0,_4R=$1.msglen-1;_4S<=_4R;_4S+=1){$1.i=_4S;$1.c=$g($1.msg,$1.i);if(!$xo($1.ea,$1.c<128)&&$1.c>=0){if($1.ea){$k[$j++]=$1.numSA}else{$k[$j++]=$1.numEA}var _4e=$g($k[--$j],$1.i);var _4h=$f(_4e+$1.i)==$1.msglen?3:5;if(_4e<_4h){$k[$j++]=Infinity;$q($1.msgtmp);$k[$j++]=$1.fn4;$1.msgtmp=$a()}else{$k[$j++]=Infinity;$q($1.msgtmp);$k[$j++]=$1.fn4;$k[$j++]=$1.fn4;$1.msgtmp=$a();$1.ea=!$1.ea}}$k[$j++]=Infinity;$q($1.msgtmp);if($1.c>=0){$k[$j++]=$1.c&127}else{$k[$j++]=$1.c}$1.msgtmp=$a()}$1.msg=$1.msgtmp;$1.msglen=$1.msg.length;$1.numsscr=function(){$1.n=0;$1.s=0;$1.p=$k[--$j];for(;;){if($1.p>=$1.msglen){break}var _52=$g($1.msg,$1.p);var _54=$g($1.setc,_52)!==undefined;$k[$j++]=_52;if(!_54){$j--;break}var _55=$k[--$j];$k[$j++]=_55;if(_55<=-1){var _57=$k[--$j];if(_57==$1.fn1&&$1.s%2==0){$1.s=$1.s+1}else{break}}else{$j--}$1.n=$1.n+1;$1.s=$1.s+1;$1.p=$f($1.p+1)}$k[$j++]=$1.n;$k[$j++]=$1.s};$1.enca=function(){$p($1.cws,$1.j,$g($1.seta,$k[--$j]));$1.j=$1.j+1};$1.encb=function(){$p($1.cws,$1.j,$g($1.setb,$k[--$j]));$1.j=$1.j+1};$1.encc=function(){var _5R=$k[--$j];$k[$j++]=_5R;if($ne($t(_5R),"arraytype")){var _5V=$g($1.setc,$k[--$j]);$k[$j++]=_5V}else{$q($k[--$j]);var _5X=$k[--$j];var _5Y=$k[--$j];$k[$j++]=$f($f(_5X-48)+$f(_5Y-48)*10)}$p($1.cws,$1.j,$k[--$j]);$1.j=$1.j+1};$1.anotb=function(){var _5d=$k[--$j];var _5f=$g($1.seta,_5d)!==undefined;var _5h=$g($1.setb,_5d)!==undefined;$k[$j++]=_5f&&!_5h};$1.bnota=function(){var _5i=$k[--$j];var _5k=$g($1.setb,_5i)!==undefined;var _5m=$g($1.seta,_5i)!==undefined;$k[$j++]=_5k&&!_5m};$k[$j++]=Infinity;for(var _5o=0,_5p=$1.msg.length;_5o<_5p;_5o++){$k[$j++]=0}$k[$j++]=9999;$1.nextanotb=$a();$k[$j++]=Infinity;for(var _5s=0,_5t=$1.msg.length;_5s<_5t;_5s++){$k[$j++]=0}$k[$j++]=9999;$1.nextbnota=$a();for(var _5w=$1.msg.length-1;_5w>=0;_5w-=1){$1.i=_5w;$k[$j++]=$g($1.msg,$1.i);$1.anotb();if($k[--$j]){$p($1.nextanotb,$1.i,0)}else{$p($1.nextanotb,$1.i,$f($g($1.nextanotb,$1.i+1)+1))}$k[$j++]=$g($1.msg,$1.i);$1.bnota();if($k[--$j]){$p($1.nextbnota,$1.i,0)}else{$p($1.nextbnota,$1.i,$f($g($1.nextbnota,$1.i+1)+1))}}$1.abeforeb=function(){var _6J=$k[--$j];$k[$j++]=$lt($g($1.nextanotb,_6J),$g($1.nextbnota,_6J))};$1.bbeforea=function(){var _6O=$k[--$j];$k[$j++]=$lt($g($1.nextbnota,_6O),$g($1.nextanotb,_6O))};$1.cws=$a($1.barcode.length*2+3);$1.j=0;if($1.msglen>0){$k[$j++]=0;$1.numsscr()}else{$k[$j++]=-1;$k[$j++]=-1}$1.nums=$k[--$j];$1.nchars=$k[--$j];for(;;){if($1.msglen==0){$k[$j++]=$1.stb;$1.enca();$1.cset="setb";break}if($1.msglen==2&&$1.nums==2){$k[$j++]=$1.stc;$1.enca();$1.cset="setc";break}if($1.nums>=4){$k[$j++]=$1.stc;$1.enca();$1.cset="setc";break}$k[$j++]=0;$1.abeforeb();if($k[--$j]){$k[$j++]=$1.sta;$1.enca();$1.cset="seta";break}$k[$j++]=$1.stb;$1.enca();$1.cset="setb";break}$1.i=0;for(;;){if($1.i==$1.msglen){break}$k[$j++]=$1.i;$1.numsscr();$1.nums=$k[--$j];$1.nchars=$k[--$j];for(;;){if(($eq($1.cset,"seta")||$eq($1.cset,"setb"))&&$1.nums>=4&&$g($1.msg,$1.i)!=$1.fn1){if($1.nums%2==0){$k[$j++]=$1.swc;if($eq($1.cset,"seta")){$1.enca()}else{$1.encb()}$1.cset="setc";break}else{$k[$j++]=$g($1.msg,$1.i);if($eq($1.cset,"seta")){$1.enca()}else{$1.encb()}$1.i=$1.i+1;$k[$j++]=$1.swc;if($eq($1.cset,"seta")){$1.enca()}else{$1.encb()}$1.cset="setc";break}}$k[$j++]=$eq($1.cset,"setb");$k[$j++]=$g($1.msg,$1.i);$1.anotb();var _78=$k[--$j];var _79=$k[--$j];if(_79&&_78){if($1.i<$1.msglen-1){$k[$j++]=$1.i+1;$1.bbeforea();if($k[--$j]){$k[$j++]=$1.sft;$1.encb();$k[$j++]=$g($1.msg,$1.i);$1.enca();$1.i=$1.i+1;break}}$k[$j++]=$1.swa;$1.encb();$1.cset="seta";break}$k[$j++]=$eq($1.cset,"seta");$k[$j++]=$g($1.msg,$1.i);$1.bnota();var _7O=$k[--$j];var _7P=$k[--$j];if(_7P&&_7O){if($1.i<$1.msglen-1){$k[$j++]=$1.i+1;$1.abeforeb();if($k[--$j]){$k[$j++]=$1.sft;$1.enca();$k[$j++]=$g($1.msg,$1.i);$1.encb();$1.i=$1.i+1;break}}$k[$j++]=$1.swb;$1.enca();$1.cset="setb";break}if($eq($1.cset,"setc")&&$1.nums<2&&$g($1.msg,$1.i)>-1){$k[$j++]=$1.i;$1.abeforeb();if($k[--$j]){$k[$j++]=$1.swa;$1.encc();$1.cset="seta";break}$k[$j++]=$1.swb;$1.encc();$1.cset="setb";break}if($eq($1.cset,"seta")){$k[$j++]=$g($1.msg,$1.i);$1.enca();$1.i=$1.i+1;break}if($eq($1.cset,"setb")){$k[$j++]=$g($1.msg,$1.i);$1.encb();$1.i=$1.i+1;break}if($eq($1.cset,"setc")){if($g($1.msg,$1.i)<=-1){$k[$j++]=$g($1.msg,$1.i);$1.encc();$1.i=$1.i+1}else{$k[$j++]=$G($1.msg,$1.i,2);$1.encc();$1.i=$1.i+2}break}break}}$1.cws=$G($1.cws,0,$1.j)}var _89=$a($1.j+2);$P(_89,0,$1.cws);$1.cws=_89;$1.csum=$g($1.cws,0);for(var _8F=1,_8E=$1.j-1;_8F<=_8E;_8F+=1){$1.i=_8F;$1.csum=$f($1.csum+$g($1.cws,$1.i)*$1.i)}$1.csum=$1.csum%103;$p($1.cws,$1.j,$1.csum);$p($1.cws,$1.j+1,$g($1.seta,$1.stp));$1.encs=$a(["212222","222122","222221","121223","121322","131222","122213","122312","132212","221213","221312","231212","112232","122132","122231","113222","123122","123221","223211","221132","221231","213212","223112","312131","311222","321122","321221","312212","322112","322211","212123","212321","232121","111323","131123","131321","112313","132113","132311","211313","231113","231311","112133","112331","132131","113123","113321","133121","313121","211331","231131","213113","213311","213131","311123","311321","331121","312113","312311","332111","314111","221411","431111","111224","111422","121124","121421","141122","141221","112214","112412","122114","122411","142112","142211","241211","221114","413111","241112","134111","111242","121142","121241","114212","124112","124211","411212","421112","421211","212141","214121","412121","111143","111341","131141","114113","114311","411113","411311","113141","114131","311141","411131","211412","211214","211232","2331112"]);$1.sbs=$s($1.cws.length*6+1);for(var _8Z=0,_8Y=$1.cws.length-1;_8Z<=_8Y;_8Z+=1){$1.i=_8Z;$P($1.sbs,$1.i*6,$g($1.encs,$g($1.cws,$1.i)))}$k[$j++]=Infinity;$k[$j++]=Infinity;var _8h=$1.sbs;for(var _8i=0,_8j=_8h.length;_8i<_8j;_8i++){$k[$j++]=$g(_8h,_8i)-48}var _8l=$a();$k[$j++]=Infinity;for(var _8n=0,_8o=~~(($1.sbs.length+1)/2);_8n<_8o;_8n++){$k[$j++]=$1.height}var _8q=$a();$k[$j++]=Infinity;for(var _8s=0,_8t=~~(($1.sbs.length+1)/2);_8s<_8t;_8s++){$k[$j++]=0}var _8u=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_8l;$k[$j++]="bhs";$k[$j++]=_8q;$k[$j++]="bbs";$k[$j++]=_8u;$k[$j++]="txt";$k[$j++]=$a([$a([$1.text,$1.textxoffset,$1.textyoffset,$1.textfont,$1.textsize])]);$k[$j++]="textxalign";$k[$j++]="center";$k[$j++]="opt";$k[$j++]=$1.options;var _93=$d();$k[$j++]=_93;if(!$1.dontdraw){$0.renlinear()}};$0["gs1-128"]=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textxoffset=0;$1.textyoffset=-8;$1.height=.5;$1.linkagea=false;$1.linkagec=false;$1.parse=false;$1.dontlint=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.text=$1.barcode;$1.expand=function(){var _C=new Map([["parse",$1.parse],["parseonly",true],["parsefnc",false]]);$1.fncvals=_C;$k[$j++]=$1.fncvals;$0.parseinput()};$1.ais=$a([]);$1.vals=$a([]);var _G=$1.barcode;$k[$j++]=$G(_G,1,_G.length-1);for(;;){var _I=$k[--$j];$k[$j++]=_I;if($eq(_I,"")){break}$x($k[--$j],")");$j--;var _K=$k[--$j];var _L=$k[--$j];$k[$j++]=_K;$k[$j++]=_L;$j--;var _M=$k[--$j];var _N=$k[--$j];$k[$j++]=_M;$x(_N,"(");if($k[--$j]){var _P=$k[--$j];var _Q=$k[--$j];$k[$j++]=_P;$k[$j++]=_Q;$j--;var _R=$k[--$j];var _S=$k[--$j];var _T=$k[--$j];$k[$j++]=_S;$k[$j++]=_T;$k[$j++]=_R}else{var _U=$k[--$j];var _V=$k[--$j];$k[$j++]="";$k[$j++]=_V;$k[$j++]=_U}$k[$j++]=Infinity;$q($1.ais);var _Y=$k[$j-1-($m()+2)];$k[$j++]=_Y;$1.ais=$a();$k[$j++]=Infinity;$q($1.vals);var _c=$k[$j-1-($m()+1)];$k[$j++]=_c;$1.expand();$1.vals=$a();$j-=2}$j--;if(!$1.dontlint){$k[$j++]=$1.ais;$k[$j++]=$1.vals;$0.gs1lint();$j--}$1.aifixed=new Map;$k[$j++]=Infinity;for(var _h=0;_h<=4;_h+=1){$k[$j++]=_h}var _i=$a();for(var _j=0,_k=_i.length;_j<_k;_j++){var _n=$Z($s(2),"00");$p(_n,1,$f($g(_i,_j)+48));$p($1.aifixed,_n,_n)}$k[$j++]=Infinity;for(var _p=11;_p<=20;_p+=1){$k[$j++]=_p}$k[$j++]=23;for(var _q=31;_q<=36;_q+=1){$k[$j++]=_q}$k[$j++]=41;var _r=$a();for(var _s=0,_t=_r.length;_s<_t;_s++){var _w=$R($s(2),$g(_r,_s),10);$p($1.aifixed,_w,_w)}$1.fnc1=-1;$1.c128=$a([$1.fnc1]);for(var _12=0,_11=$1.ais.length-1;_12<=_11;_12+=1){$1.i=_12;$1.ai=$g($1.ais,$1.i);$1.val=$g($1.vals,$1.i);var _1C=$a($1.c128.length+$1.ai.length+$1.val.length);$P(_1C,0,$1.c128);$k[$j++]=_1C;$k[$j++]=_1C;$k[$j++]=$1.c128.length;$k[$j++]=$1.ai;$k[$j++]=Infinity;var _1G=$k[--$j];var _1H=$k[--$j];$k[$j++]=_1G;$F(_1H);var _1I=$a();var _1J=$k[--$j];$P($k[--$j],_1J,_1I);var _1L=$k[--$j];$k[$j++]=_1L;$k[$j++]=_1L;$k[$j++]=$1.c128.length+$1.ai.length;$k[$j++]=$1.val;$k[$j++]=Infinity;var _1P=$k[--$j];var _1Q=$k[--$j];$k[$j++]=_1P;$F(_1Q);var _1R=$a();var _1S=$k[--$j];$P($k[--$j],_1S,_1R);$1.c128=$k[--$j];var _1a=$g($1.aifixed,$G($1.ai,0,2))!==undefined;if($1.i!=$1.ais.length-1&&!_1a){var _1c=$a($1.c128.length+1);$P(_1c,0,$1.c128);$p(_1c,$1.c128.length,$1.fnc1);$1.c128=_1c}}$1.barcode=$s(($1.c128.length+1)*5);$1.i=0;$1.j=0;for(;;){if($1.i==$1.c128.length){break}var _1m=$g($1.c128,$1.i);$k[$j++]=_1m;if(_1m==$1.fnc1){$j--;$P($1.barcode,$1.j,"^FNC1");$1.j=$1.j+4}else{$p($1.barcode,$1.j,$k[--$j])}$1.i=$1.i+1;$1.j=$1.j+1}if($1.linkagea||$1.linkagec){$k[$j++]=$1.barcode;$k[$j++]=$1.j;if($1.linkagea){$k[$j++]="^LNKA"}else{$k[$j++]="^LNKC"}var _21=$k[--$j];var _22=$k[--$j];$P($k[--$j],_22,_21);$1.j=$1.j+5}$1.barcode=$G($1.barcode,0,$1.j);delete $1.options["parse"];$p($1.options,"height",$1.height);$p($1.options,"dontdraw",true);$p($1.options,"parsefnc",true);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.code128();var _2F=$k[--$j];$1[$k[--$j]]=_2F;$p($1.args,"txt",$a([$a([$1.text,$1.textxoffset,$1.textyoffset,$1.textfont,$1.textsize])]));$p($1.args,"textxalign","center");$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.ean14=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textxoffset=0;$1.textyoffset=-8;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.text=$1.barcode;var _B=$1.barcode;$k[$j++]=$s(_B.length);$k[$j++]=0;$F(_B,function(){var _D=$k[--$j];$k[$j++]=_D;if(_D!=32){var _E=$k[--$j];var _F=$k[--$j];var _G=$k[--$j];$p(_G,_F,_E);$k[$j++]=_G;$k[$j++]=$f(_F+1)}else{$j--}});var _H=$k[--$j];$1.barcode=$G($k[--$j],0,_H);$1.hasspace=$1.text.length!=$1.barcode.length;if($ne($G($1.barcode,0,4),"(01)")){$k[$j++]="bwipp.ean14badAI";$k[$j++]="GS1-14 must begin with (01) application identifier";$0.raiseerror()}if($1.barcode.length!=17&&$1.barcode.length!=18){$k[$j++]="bwipp.ean14badLength";$k[$j++]="GS1-14 must be 13 or 14 digits";$0.raiseerror()}var _S=$G($1.barcode,4,$1.barcode.length-4);for(var _T=0,_U=_S.length;_T<_U;_T++){var _V=$g(_S,_T);if(_V<48||_V>57){$k[$j++]="bwipp.ean14badCharacter";$k[$j++]="GS1-14 must contain only digits";$0.raiseerror()}}$1.checksum=0;for(var _W=0;_W<=12;_W+=1){$1.i=_W;$k[$j++]="checksum";$k[$j++]=$1.checksum;$k[$j++]=$f($g($1.barcode,$1.i+4)-48);if($1.i%2==0){var _c=$k[--$j];$k[$j++]=_c*3}var _d=$k[--$j];var _e=$k[--$j];$1[$k[--$j]]=$f(_e+_d)}$1.checksum=(10-$1.checksum%10)%10;if($1.barcode.length==18){if($g($1.barcode,17)!=$1.checksum+48){$k[$j++]="bwipp.ean14badCheckDigit";$k[$j++]="Incorrect GS1-14 check digit provided";$0.raiseerror()}}else{var _l=$s(18);$P(_l,0,$1.barcode);$p(_l,17,$1.checksum+48);$1.barcode=_l;var _q=$1.hasspace?2:1;var _r=$s($1.text.length+_q);$P(_r,_r.length-2," ");$p(_r,_r.length-1,$1.checksum+48);$P(_r,0,$1.text);$1.text=_r}$1.gtin=$G($1.barcode,4,14);$1.barcode=$s(21);$P($1.barcode,0,"^FNC101");$P($1.barcode,7,$1.gtin);$p($1.options,"dontdraw",true);$p($1.options,"parsefnc",true);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.code128();var _14=$k[--$j];$1[$k[--$j]]=_14;$p($1.args,"txt",$a([$a([$1.text,$1.textxoffset,$1.textyoffset,$1.textfont,$1.textsize])]));$p($1.args,"textxalign","center");$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.sscc18=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textxoffset=0;$1.textyoffset=-8;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.text=$1.barcode;var _B=$1.barcode;$k[$j++]=$s(_B.length);$k[$j++]=0;$F(_B,function(){var _D=$k[--$j];$k[$j++]=_D;if(_D!=32){var _E=$k[--$j];var _F=$k[--$j];var _G=$k[--$j];$p(_G,_F,_E);$k[$j++]=_G;$k[$j++]=$f(_F+1)}else{$j--}});var _H=$k[--$j];$1.barcode=$G($k[--$j],0,_H);$1.hasspace=$1.text.length!=$1.barcode.length;if($ne($G($1.barcode,0,4),"(00)")){$k[$j++]="bwipp.sscc18badAI";$k[$j++]="SSCC-18 must begin with (00) application identifier";$0.raiseerror()}if($1.barcode.length!=21&&$1.barcode.length!=22){$k[$j++]="bwipp.sscc18badLength";$k[$j++]="SSCC-18 must be 17 or 18 digits";$0.raiseerror()}var _S=$G($1.barcode,4,$1.barcode.length-4);for(var _T=0,_U=_S.length;_T<_U;_T++){var _V=$g(_S,_T);if(_V<48||_V>57){$k[$j++]="bwipp.sscc18badCharacter";$k[$j++]="SSCC-18 must contain only digits";$0.raiseerror()}}$1.checksum=0;for(var _W=0;_W<=16;_W+=1){$1.i=_W;$k[$j++]="checksum";$k[$j++]=$1.checksum;$k[$j++]=$f($g($1.barcode,$1.i+4)-48);if($1.i%2==0){var _c=$k[--$j];$k[$j++]=_c*3}var _d=$k[--$j];var _e=$k[--$j];$1[$k[--$j]]=$f(_e+_d)}$1.checksum=(10-$1.checksum%10)%10;if($1.barcode.length==22){if($g($1.barcode,21)!=$1.checksum+48){$k[$j++]="bwipp.sscc18badCheckDigit";$k[$j++]="Incorrect SSCC-18 check digit provided";$0.raiseerror()}}else{var _l=$s(22);$P(_l,0,$1.barcode);$p(_l,21,$1.checksum+48);$1.barcode=_l;var _q=$1.hasspace?2:1;var _r=$s($1.text.length+_q);$P(_r,_r.length-2," ");$p(_r,_r.length-1,$1.checksum+48);$P(_r,0,$1.text);$1.text=_r}$1.sscc=$G($1.barcode,4,18);$1.barcode=$s(25);$P($1.barcode,0,"^FNC100");$P($1.barcode,7,$1.sscc);$p($1.options,"dontdraw",true);$p($1.options,"parsefnc",true);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.code128();var _14=$k[--$j];$1[$k[--$j]]=_14;$p($1.args,"txt",$a([$a([$1.text,$1.textxoffset,$1.textyoffset,$1.textfont,$1.textsize])]));$p($1.args,"textxalign","center");$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.code39=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includecheck=false;$1.validatecheck=false;$1.includetext=false;$1.includecheckintext=false;$1.hidestars=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$1.charvals=new Map;for(var _9=0;_9<=42;_9+=1){$p($1.charvals,$G($1.barchars,_9,1),_9)}for(var _F=0,_E=$1.barcode.length-1;_F<=_E;_F+=1){var _J=$g($1.charvals,$G($1.barcode,_F,1))!==undefined;if(!_J){$k[$j++]="bwipp.code39badCharacter";$k[$j++]="Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%";$0.raiseerror()}}$k[$j++]="barlen";$k[$j++]=$1.barcode.length;if($1.validatecheck){var _M=$k[--$j];$k[$j++]=$f(_M-1)}var _N=$k[--$j];$1[$k[--$j]]=_N;$1.checksum=0;for(var _R=0,_Q=$f($1.barlen-1);_R<=_Q;_R+=1){$1.checksum=$f($g($1.charvals,$G($1.barcode,_R,1))+$1.checksum)}$1.checksum=$1.checksum%43;if($1.validatecheck){if($g($1.barcode,$1.barlen)!=$g($1.barchars,$1.checksum)){$k[$j++]="bwipp.code39badCheckDigit";$k[$j++]="Incorrect Code 39 check digit provided";$0.raiseerror()}$1.barcode=$G($1.barcode,0,$1.barlen);$1.includecheck=true}$1.encs=$a(["1113313111","3113111131","1133111131","3133111111","1113311131","3113311111","1133311111","1113113131","3113113111","1133113111","3111131131","1131131131","3131131111","1111331131","3111331111","1131331111","1111133131","3111133111","1131133111","1111333111","3111111331","1131111331","3131111311","1111311331","3111311311","1131311311","1111113331","3111113311","1131113311","1111313311","3311111131","1331111131","3331111111","1311311131","3311311111","1331311111","1311113131","3311113111","1331113111","1313131111","1313111311","1311131311","1113131311","1311313111"]);var _l=$1.includecheck?3:2;$1.sbs=$s($f($1.barlen+_l)*10);var _p=$1.includecheck?3:2;$1.txt=$a($f($1.barlen+_p));$P($1.sbs,0,$g($1.encs,43));if(!$1.hidestars){$p($1.txt,0,$a(["*",0,$1.textyoffset,$1.textfont,$1.textsize]))}else{$p($1.txt,0,$a(["",0,$1.textyoffset,$1.textfont,$1.textsize]))}for(var _17=0,_16=$f($1.barlen-1);_17<=_16;_17+=1){$1.i=_17;$1.indx=$g($1.charvals,$G($1.barcode,$1.i,1));$P($1.sbs,$1.i*10+10,$g($1.encs,$1.indx));$p($1.txt,$1.i+1,$a([$G($1.barcode,$1.i,1),($1.i+1)*16,$1.textyoffset,$1.textfont,$1.textsize]))}if($1.includecheck){$P($1.sbs,$f($1.barlen*10+10),$g($1.encs,$1.checksum));if($1.includecheckintext){$p($1.txt,$f($1.barlen+1),$a([$G($1.barchars,$1.checksum,1),$f($1.barlen+1)*16,$1.textyoffset,$1.textfont,$1.textsize]))}else{$p($1.txt,$f($1.barlen+1),$a(["",$f($1.barlen+1)*16,$1.textyoffset,$1.textfont,$1.textsize]))}$P($1.sbs,$f($1.barlen*10+20),$g($1.encs,43));if(!$1.hidestars){$p($1.txt,$f($1.barlen+2),$a(["*",$f($1.barlen+2)*16,$1.textyoffset,$1.textfont,$1.textsize]))}else{$p($1.txt,$f($1.barlen+2),$a(["",$f($1.barlen+2)*16,$1.textyoffset,$1.textfont,$1.textsize]))}}else{$P($1.sbs,$f($1.barlen*10+10),$g($1.encs,43));if(!$1.hidestars){$p($1.txt,$f($1.barlen+1),$a(["*",$f($1.barlen+1)*16,$1.textyoffset,$1.textfont,$1.textsize]))}else{$p($1.txt,$f($1.barlen+1),$a(["",$f($1.barlen+1)*16,$1.textyoffset,$1.textfont,$1.textsize]))}}$k[$j++]=Infinity;$k[$j++]=Infinity;var _2S=$1.sbs;for(var _2T=0,_2U=_2S.length;_2T<_2U;_2T++){$k[$j++]=$g(_2S,_2T)-48}var _2W=$a();$k[$j++]=Infinity;for(var _2Y=0,_2Z=~~(($1.sbs.length+1)/2);_2Y<_2Z;_2Y++){$k[$j++]=$1.height}var _2b=$a();$k[$j++]=Infinity;for(var _2d=0,_2e=~~(($1.sbs.length+1)/2);_2d<_2e;_2d++){$k[$j++]=0}var _2f=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_2W;$k[$j++]="bhs";$k[$j++]=_2b;$k[$j++]="bbs";$k[$j++]=_2f;if($1.includetext){$k[$j++]="txt";$k[$j++]=$1.txt}$k[$j++]="opt";$k[$j++]=$1.options;var _2j=$d();$k[$j++]=_2j;if(!$1.dontdraw){$0.renlinear()}};$0.code39ext=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.parse=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});var _6=new Map([["parse",$1.parse],["parseonly",true],["parsefnc",false]]);$1.fncvals=_6;$k[$j++]="barcode";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _9=$k[--$j];$1[$k[--$j]]=_9;$1.barlen=$1.barcode.length;delete $1.options["parse"];$F($1.barcode,function(){if($k[--$j]>=128){$k[$j++]="bwipp.code39extBadCharacter";$k[$j++]="Code 39 Extended must contain only ASCII characters";$0.raiseerror()}});$1.extencs=$a(["%U","$A","$B","$C","$D","$E","$F","$G","$H","$I","$J","$K","$L","$M","$N","$O","$P","$Q","$R","$S","$T","$U","$V","$W","$X","$Y","$Z","%A","%B","%C","%D","%E"," ","/A","/B","/C","/D","/E","/F","/G","/H","/I","/J","/K","/L","-",".","/O","0","1","2","3","4","5","6","7","8","9","/Z","%F","%G","%H","%I","%J","%V","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","%K","%L","%M","%N","%O","%W","+A","+B","+C","+D","+E","+F","+G","+H","+I","+J","+K","+L","+M","+N","+O","+P","+Q","+R","+S","+T","+U","+V","+W","+X","+Y","+Z","%P","%Q","%R","%S","%T"]);$1.newcode=$s($1.barlen*2);$1.newtext=$s($1.barlen*2);$1.j=0;for(var _M=0,_L=$1.barlen-1;_M<=_L;_M+=1){$1.i=_M;$1.extchar=$g($1.extencs,$g($1.barcode,$1.i));$P($1.newcode,$1.j,$1.extchar);$p($1.newtext,$1.j,$g($1.barcode,$1.i));if($1.extchar.length!=1){$P($1.newtext,$1.j+1," ")}$1.j=$1.j+$1.extchar.length}$1.newcode=$G($1.newcode,0,$1.j);$1.newtext=$G($1.newtext,0,$1.j);$p($1.options,"dontdraw",true);$k[$j++]="args";$k[$j++]=$1.newcode;$k[$j++]=$1.options;$0.code39();var _o=$k[--$j];$1[$k[--$j]]=_o;if($1.includetext){$1.txt=$g($1.args,"txt");for(var _v=0,_u=$1.newtext.length-1;_v<=_u;_v+=1){$1.i=_v;$1.txtentry=$g($1.txt,$1.i+1);$p($1.txtentry,0,$G($1.newtext,$1.i,1));$p($1.txt,$1.i+1,$1.txtentry)}$p($1.args,"txt",$1.txt)}$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.code32=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.textxoffset=0;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;if($1.barcode.length!=8&&$1.barcode.length!=9){$k[$j++]="bwipp.code32badLength";$k[$j++]="Italian Pharmacode must be 8 or 9 digits";$0.raiseerror()}$F($1.barcode,function(){var _C=$k[--$j];if(_C<48||_C>57){$k[$j++]="bwipp.code32badCharacter";$k[$j++]="Italian Pharmacode must contain only digits";$0.raiseerror()}});$1.checksum=0;for(var _D=0;_D<=7;_D+=1){$1.i=_D;$k[$j++]=$f($g($1.barcode,$1.i)-48);if($1.i%2!=0){var _I=$k[--$j];$k[$j++]=_I*2}var _J=$k[--$j];$k[$j++]=_J;if(_J>9){var _K=$k[--$j];$k[$j++]=$f(_K-9)}$1.checksum=$f($k[--$j]+$1.checksum)}$1.checksum=$1.checksum%10;if($1.barcode.length==9){if($g($1.barcode,8)!=$f($1.checksum+48)){$k[$j++]="bwipp.code32badCheckDigit";$k[$j++]="Incorrect Italian Pharmacode check digit provided";$0.raiseerror()}}var _S=$s(10);$P(_S,0,$1.barcode);$p(_S,8,$f($1.checksum+48));$1.text=_S;$1.val=$R($s(6),~~$z($1.text),32);$1.barcode=$s(6);for(var _Z=0;_Z<=5;_Z+=1){$p($1.barcode,_Z,48)}$P($1.barcode,6-$1.val.length,$1.val);for(var _e=0;_e<=5;_e+=1){var _g=$g($1.barcode,_e);$k[$j++]=_e;$k[$j++]=_g;$k[$j++]=_g;for(var _h=0,_i="AEIO".length;_h<_i;_h++){if($k[--$j]>=$g("AEIO",_h)){var _l=$k[--$j];$k[$j++]=$f(_l+1)}var _m=$k[--$j];$k[$j++]=_m;$k[$j++]=_m}$j--;var _o=$k[--$j];$p($1.barcode,$k[--$j],_o)}$P($1.text,1,$G($1.text,0,9));$p($1.text,0,65);$p($1.options,"dontdraw",true);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.code39();var _x=$k[--$j];$1[$k[--$j]]=_x;$p($1.args,"txt",$a([$a([$1.text,$1.textxoffset,$1.textyoffset,$1.textfont,$1.textsize])]));$p($1.args,"textxalign","center");$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.pzn=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.textxoffset=0;$1.height=1;$1.pzn8=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.textxoffset=+$1.textxoffset;$1.height=+$1.height;if($1.pzn8){if($1.barcode.length!=7&&$1.barcode.length!=8){$k[$j++]="bwipp.pzn8badLength";$k[$j++]="PZN8 must be 7 or 8 digits";$0.raiseerror()}}else{if($1.barcode.length!=6&&$1.barcode.length!=7){$k[$j++]="bwipp.pzn7badLength";$k[$j++]="PZN7 must be 6 or 7 digits";$0.raiseerror()}}$F($1.barcode,function(){var _G=$k[--$j];if(_G<48||_G>57){$k[$j++]="bwipp.pznBadCharacter";$k[$j++]="PZN must contain only digits";$0.raiseerror()}});var _I=$1.pzn8?9:8;$1.msglen=_I;$1.checksum=0;for(var _L=0,_K=$1.msglen-3;_L<=_K;_L+=1){$1.i=_L;var _R=$1.pzn8?1:2;$1.checksum=$f($f($g($1.barcode,$1.i)-48)*($1.i+_R)+$1.checksum)}$1.checksum=$1.checksum%11;if($1.checksum==10){$k[$j++]="bwipp.pznBadInputSequence";$k[$j++]="Incorrect PZN input sequence provided";$0.raiseerror()}if($1.barcode.length==$1.msglen-1){if($g($1.barcode,$1.msglen-2)!=$f($1.checksum+48)){$k[$j++]="bwipp.pznBadCheckDigit";$k[$j++]="Incorrect PZN check digit provided";$0.raiseerror()}}var _c=$s($1.msglen);$p(_c,0,45);$P(_c,1,$1.barcode);$p(_c,$1.msglen-1,$f($1.checksum+48));$1.msg=_c;$p($1.options,"dontdraw",true);$k[$j++]="args";$k[$j++]=$1.msg;$k[$j++]=$1.options;$0.code39();var _j=$k[--$j];$1[$k[--$j]]=_j;$1.text=$s($1.msglen+5);$P($1.text,0,"PZN - ");$P($1.text,6,$G($1.msg,1,$1.msglen-1));$p($1.args,"txt",$a([$a([$1.text,$1.textxoffset,$1.textyoffset,$1.textfont,$1.textsize])]));$p($1.args,"textxalign","center");$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.code93=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includecheck=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.height=1;$1.parse=false;$1.parsefnc=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.encs=$a(["131112","111213","111312","111411","121113","121212","121311","111114","131211","141111","211113","211212","211311","221112","221211","231111","112113","112212","112311","122112","132111","111123","111222","111321","121122","131121","212112","212211","211122","211221","221121","222111","112122","112221","122121","123111","121131","311112","311211","321111","112131","113121","211131","121221","312111","311121","122211","111141","1111411"]);$1.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$1.sft1=-1;$1.sft2=-2;$1.sft3=-3;$1.sft4=-4;var _G=new Map([["parse",$1.parse],["parsefnc",$1.parsefnc],["SFT$",$1.sft1],["SFT%",$1.sft2],["SFT/",$1.sft3],["SFT+",$1.sft4]]);$1.fncvals=_G;$k[$j++]="msg";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _J=$k[--$j];$1[$k[--$j]]=_J;$1.msglen=$1.msg.length;if($1.includecheck){$1.sbs=$s($1.msglen*6+25)}else{$1.sbs=$s($1.msglen*6+13)}$1.txt=$a($1.msglen);$P($1.sbs,0,$g($1.encs,47));$1.checksum1=0;$1.checksum2=0;for(var _Y=0,_X=$1.msglen-1;_Y<=_X;_Y+=1){$1.i=_Y;var _b=$g($1.msg,$1.i);$k[$j++]=_b;if(_b<0){$1.indx=$f(42-$k[--$j]);$1.char=" "}else{var _d=$s(1);$p(_d,0,$k[--$j]);$1.char=_d;$x($1.barchars,$1.char);$j--;$1.indx=$k[--$j].length;$j-=2}$1.enc=$g($1.encs,$1.indx);$P($1.sbs,$1.i*6+6,$1.enc);$p($1.txt,$1.i,$a([$1.char,$1.i*9+9,$1.textyoffset,$1.textfont,$1.textsize]));$1.checksum1=$1.checksum1+(($1.msglen-$1.i-1)%20+1)*$1.indx;$1.checksum2=$1.checksum2+(($1.msglen-$1.i)%15+1)*$1.indx}if($1.includecheck){$1.checksum1=$1.checksum1%47;$1.checksum2=($1.checksum2+$1.checksum1)%47;$P($1.sbs,$1.msglen*6+6,$g($1.encs,$1.checksum1));$P($1.sbs,$1.msglen*6+12,$g($1.encs,$1.checksum2));$P($1.sbs,$1.msglen*6+18,$g($1.encs,48))}else{$P($1.sbs,$1.msglen*6+6,$g($1.encs,48))}$k[$j++]=Infinity;$k[$j++]=Infinity;var _1Q=$1.sbs;for(var _1R=0,_1S=_1Q.length;_1R<_1S;_1R++){$k[$j++]=$g(_1Q,_1R)-48}var _1U=$a();$k[$j++]=Infinity;for(var _1W=0,_1X=~~(($1.sbs.length+1)/2);_1W<_1X;_1W++){$k[$j++]=$1.height}var _1Z=$a();$k[$j++]=Infinity;for(var _1b=0,_1c=~~(($1.sbs.length+1)/2);_1b<_1c;_1b++){$k[$j++]=0}var _1d=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_1U;$k[$j++]="bhs";$k[$j++]=_1Z;$k[$j++]="bbs";$k[$j++]=_1d;if($1.includetext){$k[$j++]="txt";$k[$j++]=$1.txt}$k[$j++]="opt";$k[$j++]=$1.options;var _1h=$d();$k[$j++]=_1h;if(!$1.dontdraw){$0.renlinear()}};$0.code93ext=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.parse=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});var _6=new Map([["parse",$1.parse],["parseonly",true],["parsefnc",false]]);$1.fncvals=_6;$k[$j++]="barcode";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _9=$k[--$j];$1[$k[--$j]]=_9;$1.barlen=$1.barcode.length;delete $1.options["parse"];$1.extencs=$a(["^SFT%U","^SFT$A","^SFT$B","^SFT$C","^SFT$D","^SFT$E","^SFT$F","^SFT$G","^SFT$H","^SFT$I","^SFT$J","^SFT$K","^SFT$L","^SFT$M","^SFT$N","^SFT$O","^SFT$P","^SFT$Q","^SFT$R","^SFT$S","^SFT$T","^SFT$U","^SFT$V","^SFT$W","^SFT$X","^SFT$Y","^SFT$Z","^SFT%A","^SFT%B","^SFT%C","^SFT%D","^SFT%E"," ","^SFT/A","^SFT/B","^SFT/C","^SFT/D","^SFT/E","^SFT/F","^SFT/G","^SFT/H","^SFT/I","^SFT/J","^SFT/K","^SFT/L","-",".","^SFT/O","0","1","2","3","4","5","6","7","8","9","^SFT/Z","^SFT%F","^SFT%G","^SFT%H","^SFT%I","^SFT%J","^SFT%V","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","^SFT%K","^SFT%L","^SFT%M","^SFT%N","^SFT%O","^SFT%W","^SFT+A","^SFT+B","^SFT+C","^SFT+D","^SFT+E","^SFT+F","^SFT+G","^SFT+H","^SFT+I","^SFT+J","^SFT+K","^SFT+L","^SFT+M","^SFT+N","^SFT+O","^SFT+P","^SFT+Q","^SFT+R","^SFT+S","^SFT+T","^SFT+U","^SFT+V","^SFT+W","^SFT+X","^SFT+Y","^SFT+Z","^SFT%P","^SFT%Q","^SFT%R","^SFT%S","^SFT%T"]);$1.newcode=$s($1.barlen*6);$1.newtext=$s($1.barlen*6);$1.j=0;$1.k=0;for(var _K=0,_J=$1.barlen-1;_K<=_J;_K+=1){$1.i=_K;$1.extchar=$g($1.extencs,$g($1.barcode,$1.i));$1.extlen=$1.extchar.length;$P($1.newcode,$1.j,$1.extchar);$p($1.newtext,$1.k,$g($1.barcode,$1.i));if($1.extlen!=1){$P($1.newtext,$1.k+1," ")}$1.j=$1.j+$1.extlen;var _g=$1.extlen==1?1:2;$1.k=$1.k+_g}$1.newcode=$G($1.newcode,0,$1.j);$1.newtext=$G($1.newtext,0,$1.k);$p($1.options,"dontdraw",true);$p($1.options,"parsefnc",true);$k[$j++]="args";$k[$j++]=$1.newcode;$k[$j++]=$1.options;$0.code93();var _r=$k[--$j];$1[$k[--$j]]=_r;if($1.includetext){$1.txt=$g($1.args,"txt");for(var _y=0,_x=$1.newtext.length-1;_y<=_x;_y+=1){$1.i=_y;$1.txtentry=$g($1.txt,$1.i);$p($1.txtentry,0,$G($1.newtext,$1.i,1));$p($1.txt,$1.i,$1.txtentry)}$p($1.args,"txt",$1.txt)}$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.interleaved2of5=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includecheck=false;$1.includetext=false;$1.includecheckintext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$F($1.barcode,function(){var _A=$k[--$j];if(_A<48||_A>57){$k[$j++]="bwipp.interleaved2of5badCharacter";$k[$j++]="Interleaved 2 of 5 must contain only digits";$0.raiseerror()}});$1.barlen=$1.barcode.length;if($1.barlen%2==0&&$1.includecheck||$1.barlen%2!=0&&!$1.includecheck){$1.pad=$s($1.barlen+1);$p($1.pad,0,48);$P($1.pad,1,$1.barcode);$1.barcode=$1.pad;$1.barlen=$1.barlen+1}if($1.includecheck){$1.checksum=0;for(var _Q=0,_P=$1.barlen-1;_Q<=_P;_Q+=1){$1.i=_Q;if($1.i%2==0){$1.checksum=$1.checksum+($g($1.barcode,$1.i)-48)*3}else{$1.checksum=$1.checksum+($g($1.barcode,$1.i)-48)}}$1.checksum=(10-$1.checksum%10)%10;$1.pad=$s($1.barlen+1);$P($1.pad,0,$1.barcode);$p($1.pad,$1.barlen,$1.checksum+48);$1.barcode=$1.pad;$1.barlen=$1.barlen+1}$1.encs=$a(["11221","21112","12112","22111","11212","21211","12211","11122","21121","12121","1111","2111"]);$1.barchars="0123456789";$1.sbs=$s($1.barlen*5+8);$1.txt=$a($1.barlen);$P($1.sbs,0,$g($1.encs,10));for(var _u=0,_t=$1.barlen-1;_u<=_t;_u+=2){$1.i=_u;$x($1.barchars,$G($1.barcode,$1.i,1));$j--;$1.indx=$k[--$j].length;$j-=2;$1.enca=$g($1.encs,$1.indx);$x($1.barchars,$G($1.barcode,$1.i+1,1));$j--;$1.indx=$k[--$j].length;$j-=2;$1.encb=$g($1.encs,$1.indx);$1.intl=$s($1.enca.length*2);for(var _1F=0,_1E=$1.enca.length-1;_1F<=_1E;_1F+=1){$1.j=_1F;$1.achar=$g($1.enca,$1.j);$1.bchar=$g($1.encb,$1.j);$p($1.intl,$1.j*2,$1.achar);$p($1.intl,$1.j*2+1,$1.bchar)}$P($1.sbs,$1.i*5+4,$1.intl);$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),$1.i*9+4,$1.textyoffset,$1.textfont,$1.textsize]));if($1.includecheck&&!$1.includecheckintext&&$1.barlen-2==$1.i){$p($1.txt,$1.i+1,$a([" ",($1.i+1)*9+4,$1.textyoffset,$1.textfont,$1.textsize]))}else{$p($1.txt,$1.i+1,$a([$G($1.barcode,$1.i+1,1),($1.i+1)*9+4,$1.textyoffset,$1.textfont,$1.textsize]))}}$P($1.sbs,$1.barlen*5+4,$g($1.encs,11));$k[$j++]=Infinity;$k[$j++]=Infinity;var _24=$1.sbs;for(var _25=0,_26=_24.length;_25<_26;_25++){$k[$j++]=$g(_24,_25)-48}var _28=$a();$k[$j++]=Infinity;for(var _2A=0,_2B=~~(($1.sbs.length+1)/2);_2A<_2B;_2A++){$k[$j++]=$1.height}var _2D=$a();$k[$j++]=Infinity;for(var _2F=0,_2G=~~(($1.sbs.length+1)/2);_2F<_2G;_2F++){$k[$j++]=0}var _2H=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_28;$k[$j++]="bhs";$k[$j++]=_2D;$k[$j++]="bbs";$k[$j++]=_2H;if($1.includetext){$k[$j++]="txt";$k[$j++]=$1.txt}$k[$j++]="barratio";$k[$j++]=2;$k[$j++]="spaceratio";$k[$j++]=2;$k[$j++]="opt";$k[$j++]=$1.options;var _2L=$d();$k[$j++]=_2L;if(!$1.dontdraw){$0.renlinear()}};$0.itf14=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.includecheckintext=true;$1.textfont="OCR-B";$1.textsize=10;$1.textxoffset=0;$1.textyoffset=3;$1.height=.5;$1.showborder=true;$1.borderwidth=4;$1.borderleft=15;$1.borderright=15;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.borderwidth=+$1.borderwidth;$1.borderleft=+$1.borderleft;$1.borderright=+$1.borderright;$1.text=$1.barcode;var _E=$1.barcode;$k[$j++]=$s(_E.length);$k[$j++]=0;$F(_E,function(){var _G=$k[--$j];$k[$j++]=_G;if(_G!=32){var _H=$k[--$j];var _I=$k[--$j];var _J=$k[--$j];$p(_J,_I,_H);$k[$j++]=_J;$k[$j++]=$f(_I+1)}else{$j--}});var _K=$k[--$j];$1.barcode=$G($k[--$j],0,_K);$1.hasspace=$1.text.length!=$1.barcode.length;if($1.barcode.length!=13&&$1.barcode.length!=14){$k[$j++]="bwipp.itf14badLength";$k[$j++]="ITF-14 must be 13 or 14 digits";$0.raiseerror()}var _R=$1.barcode;for(var _S=0,_T=_R.length;_S<_T;_S++){var _U=$g(_R,_S);if(_U<48||_U>57){$k[$j++]="bwipp.itf14badCharacter";$k[$j++]="ITF-14 must contain only digits";$0.raiseerror()}}$1.checksum=0;for(var _V=0;_V<=12;_V+=1){$1.i=_V;$k[$j++]="checksum";$k[$j++]=$1.checksum;$k[$j++]=$f($g($1.barcode,$1.i)-48);if($1.i%2==0){var _b=$k[--$j];$k[$j++]=_b*3}var _c=$k[--$j];var _d=$k[--$j];$1[$k[--$j]]=$f(_d+_c)}$1.checksum=(10-$1.checksum%10)%10;if($1.barcode.length==14){if($g($1.barcode,13)!=$1.checksum+48){$k[$j++]="bwipp.itf14badCheckDigit";$k[$j++]="Incorrect ITF-14 check digit provided";$0.raiseerror()}}else{var _k=$s(14);$P(_k,0,$1.barcode);$p(_k,13,$1.checksum+48);$1.barcode=_k;var _p=$1.hasspace?2:1;var _q=$s($1.text.length+_p);$P(_q,_q.length-2," ");$p(_q,_q.length-1,$1.checksum+48);$P(_q,0,$1.text);$1.text=_q}$p($1.options,"dontdraw",true);$p($1.options,"showborder",$1.showborder);$p($1.options,"borderwidth",$1.borderwidth);$p($1.options,"borderleft",$1.borderleft);$p($1.options,"borderright",$1.borderright);$p($1.options,"height",$1.height);$p($1.options,"textyoffset",$1.textyoffset);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.interleaved2of5();var _18=$k[--$j];$1[$k[--$j]]=_18;$p($1.args,"txt",$a([$a([$1.text,$1.textxoffset,$1.textyoffset,$1.textfont,$1.textsize])]));$p($1.args,"textxalign","center");$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.identcode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textxoffset=0;$1.textyoffset=-8;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;if($1.barcode.length!=11&&$1.barcode.length!=12){$k[$j++]="bwipp.identcodeBadLength";$k[$j++]="Deutsche Post Identcode must be 11 or 12 digits";$0.raiseerror()}$F($1.barcode,function(){var _D=$k[--$j];if(_D<48||_D>57){$k[$j++]="bwipp.identcodeBadCharacter";$k[$j++]="Deutsche Post Identcode must contain only digits";$0.raiseerror()}});$1.checksum=0;for(var _E=0;_E<=10;_E+=1){$1.i=_E;$k[$j++]="checksum";$k[$j++]=$1.checksum;$k[$j++]=$f($g($1.barcode,$1.i)-48);if($1.i%2==0){var _K=$k[--$j];$k[$j++]=_K*4}else{var _L=$k[--$j];$k[$j++]=_L*9}var _M=$k[--$j];var _N=$k[--$j];$1[$k[--$j]]=$f(_N+_M)}$1.checksum=(10-$1.checksum%10)%10;if($1.barcode.length==12){if($g($1.barcode,11)!=$1.checksum+48){$k[$j++]="bwipp.identcodeBadCheckDigit";$k[$j++]="Incorrect Deutsche Post Identcode check digit provided";$0.raiseerror()}}var _U=$s(12);$P(_U,0,$1.barcode);$p(_U,11,$1.checksum+48);$1.barcode=_U;$1.text=$Z($s(16)," . . ");$P($1.text,0,$G($1.barcode,0,2));$P($1.text,3,$G($1.barcode,2,3));$P($1.text,7,$G($1.barcode,5,3));$P($1.text,11,$G($1.barcode,8,3));$P($1.text,15,$G($1.barcode,11,1));$p($1.options,"dontdraw",true);$p($1.options,"includecheck",false);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.interleaved2of5();var _s=$k[--$j];$1[$k[--$j]]=_s;$p($1.args,"txt",$a([$a([$1.text,$1.textxoffset,$1.textyoffset,$1.textfont,$1.textsize])]));$p($1.args,"textxalign","center");$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.leitcode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textxoffset=0;$1.textyoffset=-8;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;if($1.barcode.length!=13&&$1.barcode.length!=14){$k[$j++]="bwipp.leitcodeBadLength";$k[$j++]="Deutsche Post Leitcode must be 13 or 14 digits";$0.raiseerror()}$F($1.barcode,function(){var _D=$k[--$j];if(_D<48||_D>57){$k[$j++]="bwipp.leitcodeBadCharacter";$k[$j++]="Deutsche Post Leitcode must contain only digits";$0.raiseerror()}});$1.checksum=0;for(var _E=0;_E<=12;_E+=1){$1.i=_E;$k[$j++]="checksum";$k[$j++]=$1.checksum;$k[$j++]=$f($g($1.barcode,$1.i)-48);if($1.i%2==0){var _K=$k[--$j];$k[$j++]=_K*4}else{var _L=$k[--$j];$k[$j++]=_L*9}var _M=$k[--$j];var _N=$k[--$j];$1[$k[--$j]]=$f(_N+_M)}$1.checksum=(10-$1.checksum%10)%10;if($1.barcode.length==14){if($g($1.barcode,13)!=$1.checksum+48){$k[$j++]="bwipp.leitcodeBadCheckDigit";$k[$j++]="Incorrect Deutsche Post Leitcode check digit provided";$0.raiseerror()}}var _U=$s(14);$P(_U,0,$1.barcode);$p(_U,13,$1.checksum+48);$1.barcode=_U;$1.text=$Z($s(18)," . . . ");$P($1.text,0,$G($1.barcode,0,5));$P($1.text,6,$G($1.barcode,5,3));$P($1.text,10,$G($1.barcode,8,3));$P($1.text,14,$G($1.barcode,11,2));$P($1.text,17,$G($1.barcode,13,1));$p($1.options,"dontdraw",true);$p($1.options,"includecheck",false);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.interleaved2of5();var _s=$k[--$j];$1[$k[--$j]]=_s;$p($1.args,"txt",$a([$a([$1.text,$1.textxoffset,$1.textyoffset,$1.textfont,$1.textsize])]));$p($1.args,"textxalign","center");$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.databaromni=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.height=33/72;$1.linkage=false;$1.format="omni";$1.barxmult=33;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});if($eq($1.format,"truncated")){$1.height=13/72}$1.height=+$1.height;$1.barxmult=~~$1.barxmult;if($ne($G($1.barcode,0,4),"(01)")){$k[$j++]="bwipp.databaromniBadAI";$k[$j++]="GS1 DataBar Omnidirectional must begin with (01) application identifier";$0.raiseerror()}if($1.barcode.length!=17&&$1.barcode.length!=18){$k[$j++]="bwipp.databaromniBadLength";$k[$j++]="GS1 DataBar Omnidirectional must be 13 or 14 digits";$0.raiseerror()}var _E=$G($1.barcode,4,$1.barcode.length-4);for(var _F=0,_G=_E.length;_F<_G;_F++){var _H=$g(_E,_F);if(_H<48||_H>57){$k[$j++]="bwipp.databaromniBadCharacter";$k[$j++]="GS1 DataBar Omnidirectional must contain only digits";$0.raiseerror()}}$1.checksum=0;for(var _I=0;_I<=12;_I+=1){$1.i=_I;$k[$j++]="checksum";$k[$j++]=$1.checksum;$k[$j++]=$f($g($1.barcode,$1.i+4)-48);if($1.i%2==0){var _O=$k[--$j];$k[$j++]=_O*3}var _P=$k[--$j];var _Q=$k[--$j];$1[$k[--$j]]=$f(_Q+_P)}$1.checksum=(10-$1.checksum%10)%10;if($1.barcode.length==18){if($g($1.barcode,17)!=$1.checksum+48){$k[$j++]="bwipp.databaromniBadCheckDigit";$k[$j++]="Incorrect GS1 DataBar Omnidirectional check digit provided";$0.raiseerror()}}var _X=$s(18);$P(_X,0,$1.barcode);$p(_X,17,$1.checksum+48);$1.barcode=_X;$1.txt=$a($1.barcode.length);for(var _e=0,_d=$1.barcode.length-1;_e<=_d;_e+=1){$1.i=_e;$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),0,0,"",0]))}$1.ncr=function(){var _l=$k[--$j];var _m=$k[--$j];var _n=$f(_m-_l);if(_l<$f(_m-_l)){var _=_n;_n=_l;_l=_}$k[$j++]=_n;$k[$j++]=1;$k[$j++]=1;for(var _p=_m,_o=$f(_l+1);_p>=_o;_p-=1){var _q=$k[--$j];var _r=$k[--$j];var _s=$k[--$j];$k[$j++]=_s;$k[$j++]=_r;$k[$j++]=_q*_p;if($le(_r,_s)){var _t=$k[--$j];var _u=$k[--$j];$k[$j++]=$f(_u+1);$k[$j++]=~~(_t/_u)}}for(;;){var _v=$k[--$j];var _w=$k[--$j];var _x=$k[--$j];$k[$j++]=_x;$k[$j++]=_w;$k[$j++]=_v;if($gt(_w,_x)){break}var _y=$k[--$j];var _z=$k[--$j];$k[$j++]=$f(_z+1);$k[$j++]=~~(_y/_z)}var _10=$k[--$j];var _11=$k[--$j];$k[$j++]=_10;$k[$j++]=_11;$j--;var _12=$k[--$j];var _13=$k[--$j];$k[$j++]=_12;$k[$j++]=_13;$j--};$1.getRSSwidths=function(){$1.oe=$k[--$j];$1.el=$k[--$j];$1.mw=$k[--$j];$1.nm=$k[--$j];$1.val=$k[--$j];$1.out=$a($1.el);$1.mask=0;for(var _1D=0,_1C=$f($1.el-2);_1D<=_1C;_1D+=1){$1.bar=_1D;$1.ew=1;var _1F=$1.bar;$1.mask=$1.mask|(_1F<0?1>>>-_1F:1<<_1F);for(;;){$k[$j++]="sval";$k[$j++]=$f($f($1.nm-$1.ew)-1);$k[$j++]=$f($f($1.el-$1.bar)-2);$1.ncr();var _1K=$k[--$j];$1[$k[--$j]]=_1K;if($1.oe&&$1.mask==0&&$f($f($f($1.nm-$1.ew)-$1.el*2)+$1.bar*2)>=-2){$k[$j++]="sval";$k[$j++]=$1.sval;$k[$j++]=$f($f($f($1.nm-$1.ew)-$1.el)+$1.bar);$k[$j++]=$f($f($1.el-$1.bar)-2);$1.ncr();var _1Z=$k[--$j];var _1a=$k[--$j];$1[$k[--$j]]=$f(_1a-_1Z)}if($f($1.el-$1.bar)>2){$1.lval=0;for(var _1k=$f($f($f($f($1.nm-$1.ew)-$1.el)+$1.bar)+2),_1j=$f($1.mw+1);_1k>=_1j;_1k-=1){$k[$j++]=$f($f($f($1.nm-_1k)-$1.ew)-1);$k[$j++]=$f($f($1.el-$1.bar)-3);$1.ncr();$1.lval=$f($k[--$j]+$1.lval)}$1.sval=$f($1.sval-$1.lval*$f($f($1.el-$1.bar)-1))}else{if($f($1.nm-$1.ew)>$1.mw){$1.sval=$f($1.sval-1)}}$1.val=$f($1.val-$1.sval);if($1.val<0){break}$1.ew=$1.ew+1;var _24=$1.bar;$1.mask=$1.mask&~(_24<0?1>>>-_24:1<<_24)}$1.val=$f($1.val+$1.sval);$1.nm=$f($1.nm-$1.ew);$p($1.out,$1.bar,$1.ew)}$p($1.out,$f($1.el-1),$1.nm);$k[$j++]=$1.out};$k[$j++]=Infinity;var _2H=$1.linkage?1:0;var _2J=$G($1.barcode,4,13);$k[$j++]=_2H;for(var _2K=0,_2L=_2J.length;_2K<_2L;_2K++){$k[$j++]=$f($g(_2J,_2K)-48)}$1.binval=$a();for(var _2O=0;_2O<=12;_2O+=1){$1.i=_2O;var _2P=$1.binval;var _2Q=$1.i;$p(_2P,_2Q+1,$f($g(_2P,_2Q+1)+$g($1.binval,$1.i)%4537077*10));$p($1.binval,$1.i,~~($g($1.binval,$1.i)/4537077))}$1.right=$g($1.binval,13)%4537077;var _2c=$1.binval;$p(_2c,13,~~($g(_2c,13)/4537077));$1.left=0;$1.i=true;for(var _2e=0;_2e<=13;_2e+=1){$1.j=_2e;var _2h=$g($1.binval,$1.j);$k[$j++]=_2h;if(_2h==0&&$1.i){$j--}else{$1.i=false;$1.left=$f($1.left+$k[--$j]*~~Math.pow(10,13-$1.j))}}$1.d1=~~($1.left/1597);$1.d2=$1.left%1597;$1.d3=~~($1.right/1597);$1.d4=$1.right%1597;$1.tab164=$a([160,0,12,4,8,1,161,1,960,161,10,6,6,3,80,10,2014,961,8,8,4,5,31,34,2714,2015,6,10,3,6,10,70,2840,2715,4,12,1,8,1,126]);$1.tab154=$a([335,0,5,10,2,7,4,84,1035,336,7,8,4,5,20,35,1515,1036,9,6,6,3,48,10,1596,1516,11,4,8,1,81,1]);$1.i=0;for(;;){if($1.d1<=$g($1.tab164,$1.i)){var _2y=$G($1.tab164,$1.i+1,7);for(var _2z=0,_30=_2y.length;_2z<_30;_2z++){$k[$j++]=$g(_2y,_2z)}$1.d1te=$k[--$j];$1.d1to=$k[--$j];$1.d1mwe=$k[--$j];$1.d1mwo=$k[--$j];$1.d1ele=$k[--$j];$1.d1elo=$k[--$j];$1.d1gs=$k[--$j];break}$1.i=$1.i+8}$1.i=0;for(;;){if($1.d2<=$g($1.tab154,$1.i)){var _3G=$G($1.tab154,$1.i+1,7);for(var _3H=0,_3I=_3G.length;_3H<_3I;_3H++){$k[$j++]=$g(_3G,_3H)}$1.d2te=$k[--$j];$1.d2to=$k[--$j];$1.d2mwe=$k[--$j];$1.d2mwo=$k[--$j];$1.d2ele=$k[--$j];$1.d2elo=$k[--$j];$1.d2gs=$k[--$j];break}$1.i=$1.i+8}$1.i=0;for(;;){if($1.d3<=$g($1.tab164,$1.i)){var _3Y=$G($1.tab164,$1.i+1,7);for(var _3Z=0,_3a=_3Y.length;_3Z<_3a;_3Z++){$k[$j++]=$g(_3Y,_3Z)}$1.d3te=$k[--$j];$1.d3to=$k[--$j];$1.d3mwe=$k[--$j];$1.d3mwo=$k[--$j];$1.d3ele=$k[--$j];$1.d3elo=$k[--$j];$1.d3gs=$k[--$j];break}$1.i=$1.i+8}$1.i=0;for(;;){if($1.d4<=$g($1.tab154,$1.i)){var _3q=$G($1.tab154,$1.i+1,7);for(var _3r=0,_3s=_3q.length;_3r<_3s;_3r++){$k[$j++]=$g(_3q,_3r)}$1.d4te=$k[--$j];$1.d4to=$k[--$j];$1.d4mwe=$k[--$j];$1.d4mwo=$k[--$j];$1.d4ele=$k[--$j];$1.d4elo=$k[--$j];$1.d4gs=$k[--$j];break}$1.i=$1.i+8}$k[$j++]="d1wo";$k[$j++]=~~($f($1.d1-$1.d1gs)/$1.d1te);$k[$j++]=$1.d1elo;$k[$j++]=$1.d1mwo;$k[$j++]=4;$k[$j++]=false;$1.getRSSwidths();var _47=$k[--$j];$1[$k[--$j]]=_47;$k[$j++]="d1we";$k[$j++]=$f($1.d1-$1.d1gs)%$1.d1te;$k[$j++]=$1.d1ele;$k[$j++]=$1.d1mwe;$k[$j++]=4;$k[$j++]=true;$1.getRSSwidths();var _4E=$k[--$j];$1[$k[--$j]]=_4E;$k[$j++]="d2wo";$k[$j++]=$f($1.d2-$1.d2gs)%$1.d2to;$k[$j++]=$1.d2elo;$k[$j++]=$1.d2mwo;$k[$j++]=4;$k[$j++]=true;$1.getRSSwidths();var _4L=$k[--$j];$1[$k[--$j]]=_4L;$k[$j++]="d2we";$k[$j++]=~~($f($1.d2-$1.d2gs)/$1.d2to);$k[$j++]=$1.d2ele;$k[$j++]=$1.d2mwe;$k[$j++]=4;$k[$j++]=false;$1.getRSSwidths();var _4S=$k[--$j];$1[$k[--$j]]=_4S;$k[$j++]="d3wo";$k[$j++]=~~($f($1.d3-$1.d3gs)/$1.d3te);$k[$j++]=$1.d3elo;$k[$j++]=$1.d3mwo;$k[$j++]=4;$k[$j++]=false;$1.getRSSwidths();var _4Z=$k[--$j];$1[$k[--$j]]=_4Z;$k[$j++]="d3we";$k[$j++]=$f($1.d3-$1.d3gs)%$1.d3te;$k[$j++]=$1.d3ele;$k[$j++]=$1.d3mwe;$k[$j++]=4;$k[$j++]=true;$1.getRSSwidths();var _4g=$k[--$j];$1[$k[--$j]]=_4g;$k[$j++]="d4wo";$k[$j++]=$f($1.d4-$1.d4gs)%$1.d4to;$k[$j++]=$1.d4elo;$k[$j++]=$1.d4mwo;$k[$j++]=4;$k[$j++]=true;$1.getRSSwidths();var _4n=$k[--$j];$1[$k[--$j]]=_4n;$k[$j++]="d4we";$k[$j++]=~~($f($1.d4-$1.d4gs)/$1.d4to);$k[$j++]=$1.d4ele;$k[$j++]=$1.d4mwe;$k[$j++]=4;$k[$j++]=false;$1.getRSSwidths();var _4u=$k[--$j];$1[$k[--$j]]=_4u;$1.d1w=$a(8);for(var _4x=0;_4x<=3;_4x+=1){$1.i=_4x;$p($1.d1w,$1.i*2,$g($1.d1wo,$1.i));$p($1.d1w,$1.i*2+1,$g($1.d1we,$1.i))}$1.d2w=$a(8);for(var _59=0;_59<=3;_59+=1){$1.i=_59;$p($1.d2w,7-$1.i*2,$g($1.d2wo,$1.i));$p($1.d2w,6-$1.i*2,$g($1.d2we,$1.i))}$1.d3w=$a(8);for(var _5L=0;_5L<=3;_5L+=1){$1.i=_5L;$p($1.d3w,7-$1.i*2,$g($1.d3wo,$1.i));$p($1.d3w,6-$1.i*2,$g($1.d3we,$1.i))}$1.d4w=$a(8);for(var _5X=0;_5X<=3;_5X+=1){$1.i=_5X;$p($1.d4w,$1.i*2,$g($1.d4wo,$1.i));$p($1.d4w,$1.i*2+1,$g($1.d4we,$1.i))}$k[$j++]=Infinity;var _5i=$1.d1w;for(var _5j=0,_5k=_5i.length;_5j<_5k;_5j++){$k[$j++]=$g(_5i,_5j)}var _5m=$1.d2w;for(var _5n=0,_5o=_5m.length;_5n<_5o;_5n++){$k[$j++]=$g(_5m,_5n)}var _5q=$1.d3w;for(var _5r=0,_5s=_5q.length;_5r<_5s;_5r++){$k[$j++]=$g(_5q,_5r)}var _5u=$1.d4w;for(var _5v=0,_5w=_5u.length;_5v<_5w;_5v++){$k[$j++]=$g(_5u,_5v)}$1.widths=$a();$1.checkweights=$a([1,3,9,27,2,6,18,54,58,72,24,8,29,36,12,4,74,51,17,32,37,65,48,16,64,34,23,69,49,68,46,59]);$1.checkwidths=$a([3,8,2,1,1,3,5,5,1,1,3,3,7,1,1,3,1,9,1,1,2,7,4,1,1,2,5,6,1,1,2,3,8,1,1,1,5,7,1,1,1,3,9,1,1]);$1.checksum=0;for(var _61=0;_61<=31;_61+=1){$1.i=_61;$1.checksum=$f($1.checksum+$g($1.widths,$1.i)*$g($1.checkweights,$1.i))}$1.checksum=$1.checksum%79;if($1.checksum>=8){$1.checksum=$f($1.checksum+1)}if($1.checksum>=72){$1.checksum=$f($1.checksum+1)}$1.checklt=$G($1.checkwidths,~~($1.checksum/9)*5,5);$1.checkrtrev=$G($1.checkwidths,$1.checksum%9*5,5);$1.checkrt=$a(5);for(var _6L=0;_6L<=4;_6L+=1){$1.i=_6L;$p($1.checkrt,$1.i,$g($1.checkrtrev,4-$1.i))}if($eq($1.format,"omni")||$eq($1.format,"truncated")){$k[$j++]=Infinity;var _6T=$1.d1w;$k[$j++]=1;for(var _6U=0,_6V=_6T.length;_6U<_6V;_6U++){$k[$j++]=$g(_6T,_6U)}var _6X=$1.checklt;for(var _6Y=0,_6Z=_6X.length;_6Y<_6Z;_6Y++){$k[$j++]=$g(_6X,_6Y)}var _6b=$1.d2w;for(var _6c=0,_6d=_6b.length;_6c<_6d;_6c++){$k[$j++]=$g(_6b,_6c)}var _6f=$1.d4w;for(var _6g=0,_6h=_6f.length;_6g<_6h;_6g++){$k[$j++]=$g(_6f,_6g)}var _6j=$1.checkrt;for(var _6k=0,_6l=_6j.length;_6k<_6l;_6k++){$k[$j++]=$g(_6j,_6k)}var _6n=$1.d3w;for(var _6o=0,_6p=_6n.length;_6o<_6p;_6o++){$k[$j++]=$g(_6n,_6o)}$k[$j++]=1;$k[$j++]=1;$1.sbs=$a();$k[$j++]=Infinity;var _6s=$1.sbs;$k[$j++]=Infinity;for(var _6u=0,_6v=~~(($1.sbs.length+1)/2);_6u<_6v;_6u++){$k[$j++]=$1.height}var _6x=$a();$k[$j++]=Infinity;for(var _6z=0,_70=~~(($1.sbs.length+1)/2);_6z<_70;_6z++){$k[$j++]=0}var _71=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_6s;$k[$j++]="bhs";$k[$j++]=_6x;$k[$j++]="bbs";$k[$j++]=_71;$k[$j++]="txt";$k[$j++]=$1.txt;$k[$j++]="textxalign";$k[$j++]="center";$k[$j++]="opt";$k[$j++]=$1.options;var _74=$d();$k[$j++]=_74;if(!$1.dontdraw){$0.renlinear()}}else{$k[$j++]=Infinity;var _76=$1.d1w;$k[$j++]=1;$k[$j++]=1;for(var _77=0,_78=_76.length;_77<_78;_77++){$k[$j++]=$g(_76,_77)}var _7A=$1.checklt;for(var _7B=0,_7C=_7A.length;_7B<_7C;_7B++){$k[$j++]=$g(_7A,_7B)}var _7E=$1.d2w;for(var _7F=0,_7G=_7E.length;_7F<_7G;_7F++){$k[$j++]=$g(_7E,_7F)}$k[$j++]=1;$k[$j++]=1;$k[$j++]=0;$1.top=$a();$k[$j++]=Infinity;var _7J=$1.d4w;$k[$j++]=1;$k[$j++]=1;for(var _7K=0,_7L=_7J.length;_7K<_7L;_7K++){$k[$j++]=$g(_7J,_7K)}var _7N=$1.checkrt;for(var _7O=0,_7P=_7N.length;_7O<_7P;_7O++){$k[$j++]=$g(_7N,_7O)}var _7R=$1.d3w;for(var _7S=0,_7T=_7R.length;_7S<_7T;_7S++){$k[$j++]=$g(_7R,_7S)}$k[$j++]=1;$k[$j++]=1;$k[$j++]=0;$1.bot=$a();for(var _7W=0;_7W<=24;_7W+=2){$1.i=_7W;for(var _7a=0,_7b=$g($1.top,$1.i);_7a<_7b;_7a++){$k[$j++]=0}for(var _7f=0,_7g=$g($1.top,$1.i+1);_7f<_7g;_7f++){$k[$j++]=1}}$r($a(50));$1.top=$k[--$j];for(var _7j=0;_7j<=24;_7j+=2){$1.i=_7j;for(var _7n=0,_7o=$g($1.bot,$1.i);_7n<_7o;_7n++){$k[$j++]=1}for(var _7s=0,_7t=$g($1.bot,$1.i+1);_7s<_7t;_7s++){$k[$j++]=0}}$r($a(50));$1.bot=$k[--$j];if($eq($1.format,"stacked")){$1.sep=$a(50);$p($1.sep,0,0);for(var _7z=1;_7z<=49;_7z+=1){$1.i=_7z;if($eq($g($1.top,$1.i),$g($1.bot,$1.i))){$p($1.sep,$1.i,$f(1-$g($1.top,$1.i)))}else{$p($1.sep,$1.i,$f(1-$g($1.sep,$1.i-1)))}}$P($1.sep,0,$a([0,0,0,0]));$P($1.sep,46,$a([0,0,0,0]));$k[$j++]=Infinity;for(var _8K=0,_8L=5;_8K<_8L;_8K++){$q($1.top)}$q($1.sep);for(var _8O=0,_8P=7;_8O<_8P;_8O++){$q($1.bot)}$1.pixs=$a();$1.pixy=~~($1.pixs.length/50)}if($eq($1.format,"stackedomni")){$k[$j++]=Infinity;$F($1.top,function(){var _8V=$k[--$j];$k[$j++]=$f(1-_8V)});$1.sep1=$a();$P($1.sep1,0,$a([0,0,0,0]));$P($1.sep1,46,$a([0,0,0,0]));for(var _8b=18;_8b<=30;_8b+=1){$1.i=_8b;if($g($1.top,$1.i)==0){if($g($1.top,$1.i-1)==1){$k[$j++]=1}else{var _8l=$g($1.sep1,$1.i-1)==0?1:0;$k[$j++]=_8l}}else{$k[$j++]=0}$p($1.sep1,$1.i,$k[--$j])}$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;for(var _8p=0,_8q=21;_8p<_8q;_8p++){$k[$j++]=0;$k[$j++]=1}$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$1.sep2=$a();$k[$j++]=Infinity;$F($1.bot,function(){var _8t=$k[--$j];$k[$j++]=$f(1-_8t)});$1.sep3=$a();$P($1.sep3,0,$a([0,0,0,0]));$P($1.sep3,46,$a([0,0,0,0]));for(var _8z=19;_8z<=31;_8z+=1){$1.i=_8z;if($g($1.bot,$1.i)==0){if($g($1.bot,$1.i-1)==1){$k[$j++]=1}else{var _99=$g($1.sep3,$1.i-1)==0?1:0;$k[$j++]=_99}}else{$k[$j++]=0}$p($1.sep3,$1.i,$k[--$j])}$1.f3=$a([1,1,1,1,1,1,1,1,1,0,1,1,1]);$k[$j++]=true;for(var _9E=0;_9E<=12;_9E+=1){var _9J=$k[--$j];$k[$j++]=_9J&&$eq($g($1.bot,_9E+19),$g($1.f3,_9E))}if($k[--$j]){$P($1.sep3,19,$a([0,0,0,0,0,0,0,0,0,0,1,0,0]))}$k[$j++]=Infinity;for(var _9O=0,_9P=$1.barxmult;_9O<_9P;_9O++){$q($1.top)}$q($1.sep1);$q($1.sep2);$q($1.sep3);for(var _9V=0,_9W=$1.barxmult;_9V<_9W;_9V++){$q($1.bot)}$1.pixs=$a();$1.pixy=~~($1.pixs.length/50)}var _9e=new Map([["ren",$0.renmatrix],["pixs",$1.pixs],["pixx",50],["pixy",$1.pixy],["height",$1.pixy/72],["width",50/72],["opt",$1.options]]);$k[$j++]=_9e;if(!$1.dontdraw){$0.renmatrix()}}};$0.databarstacked=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});if($ne($G($1.barcode,0,4),"(01)")){$k[$j++]="bwipp.databarstackedBadAI";$k[$j++]="GS1 DataBar Stacked must begin with (01) application identifier";$0.raiseerror()}if($1.barcode.length!=17&&$1.barcode.length!=18){$k[$j++]="bwipp.databarstackedBadLength";$k[$j++]="GS1 DataBar Stacked must be 13 or 14 digits";$0.raiseerror()}var _B=$G($1.barcode,4,$1.barcode.length-4);for(var _C=0,_D=_B.length;_C<_D;_C++){var _E=$g(_B,_C);if(_E<48||_E>57){$k[$j++]="bwipp.databarstackedBadCharacter";$k[$j++]="GS1 DataBar Stacked must contain only digits";$0.raiseerror()}}$1.checksum=0;for(var _F=0;_F<=12;_F+=1){$1.i=_F;$k[$j++]="checksum";$k[$j++]=$1.checksum;$k[$j++]=$f($g($1.barcode,$1.i+4)-48);if($1.i%2==0){var _L=$k[--$j];$k[$j++]=_L*3}var _M=$k[--$j];var _N=$k[--$j];$1[$k[--$j]]=$f(_N+_M)}$1.checksum=(10-$1.checksum%10)%10;if($1.barcode.length==18){if($g($1.barcode,17)!=$1.checksum+48){$k[$j++]="bwipp.databarstackedBadCheckDigit";$k[$j++]="Incorrect GS1 DataBar Stacked check digit provided";$0.raiseerror()}}var _U=$s(18);$P(_U,0,$1.barcode);$p(_U,17,$1.checksum+48);$1.barcode=_U;$p($1.options,"dontdraw",true);$p($1.options,"format","stacked");$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.databaromni();var _b=$k[--$j];$1[$k[--$j]]=_b;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.databarstackedomni=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});if($ne($G($1.barcode,0,4),"(01)")){$k[$j++]="bwipp.databarstackedomniBadAI";$k[$j++]="GS1 DataBar Stacked Omnidirectional must begin with (01) application identifier";$0.raiseerror()}if($1.barcode.length!=17&&$1.barcode.length!=18){$k[$j++]="bwipp.databarstackedomniBadLength";$k[$j++]="GS1 DataBar Stacked Omnidirectional must be 13 or 14 digits";$0.raiseerror()}var _B=$G($1.barcode,4,$1.barcode.length-4);for(var _C=0,_D=_B.length;_C<_D;_C++){var _E=$g(_B,_C);if(_E<48||_E>57){$k[$j++]="bwipp.databarstackedomniBadCharacter";$k[$j++]="GS1 DataBar Stacked Omnidirectional must contain only digits";$0.raiseerror()}}$1.checksum=0;for(var _F=0;_F<=12;_F+=1){$1.i=_F;$k[$j++]="checksum";$k[$j++]=$1.checksum;$k[$j++]=$f($g($1.barcode,$1.i+4)-48);if($1.i%2==0){var _L=$k[--$j];$k[$j++]=_L*3}var _M=$k[--$j];var _N=$k[--$j];$1[$k[--$j]]=$f(_N+_M)}$1.checksum=(10-$1.checksum%10)%10;if($1.barcode.length==18){if($g($1.barcode,17)!=$1.checksum+48){$k[$j++]="bwipp.databarstackedomniBadCheckDigit";$k[$j++]="Incorrect GS1 DataBar Stacked Omnidirectional check digit provided";$0.raiseerror()}}var _U=$s(18);$P(_U,0,$1.barcode);$p(_U,17,$1.checksum+48);$1.barcode=_U;$p($1.options,"dontdraw",true);$p($1.options,"format","stackedomni");$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.databaromni();var _b=$k[--$j];$1[$k[--$j]]=_b;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.databartruncated=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});if($ne($G($1.barcode,0,4),"(01)")){$k[$j++]="bwipp.databartruncatedBadAI";$k[$j++]="GS1 DataBar Truncated must begin with (01) application identifier";$0.raiseerror()}if($1.barcode.length!=17&&$1.barcode.length!=18){$k[$j++]="bwipp.databartruncatedBadLength";$k[$j++]="GS1 DataBar Truncated must be 13 or 14 digits";$0.raiseerror()}var _B=$G($1.barcode,4,$1.barcode.length-4);for(var _C=0,_D=_B.length;_C<_D;_C++){var _E=$g(_B,_C);if(_E<48||_E>57){$k[$j++]="bwipp.databartruncatedBadCharacter";$k[$j++]="GS1 DataBar Truncated must contain only digits";$0.raiseerror()}}$1.checksum=0;for(var _F=0;_F<=12;_F+=1){$1.i=_F;$k[$j++]="checksum";$k[$j++]=$1.checksum;$k[$j++]=$f($g($1.barcode,$1.i+4)-48);if($1.i%2==0){var _L=$k[--$j];$k[$j++]=_L*3}var _M=$k[--$j];var _N=$k[--$j];$1[$k[--$j]]=$f(_N+_M)}$1.checksum=(10-$1.checksum%10)%10;if($1.barcode.length==18){if($g($1.barcode,17)!=$1.checksum+48){$k[$j++]="bwipp.databartruncatedBadCheckDigit";$k[$j++]="Incorrect GS1 DataBar Truncated check digit provided";$0.raiseerror()}}var _U=$s(18);$P(_U,0,$1.barcode);$p(_U,17,$1.checksum+48);$1.barcode=_U;$p($1.options,"dontdraw",true);$p($1.options,"format","truncated");$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.databaromni();var _b=$k[--$j];$1[$k[--$j]]=_b;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.databarlimited=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.height=10/72;$1.linkage=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.height=+$1.height;if($ne($G($1.barcode,0,4),"(01)")){$k[$j++]="bwipp.databarlimitedBadAI";$k[$j++]="GS1 DataBar Limited must begin with (01) application identifier";$0.raiseerror()}if($1.barcode.length!=17&&$1.barcode.length!=18){$k[$j++]="bwipp.databarlimitedBadLength";$k[$j++]="GS1 DataBar Limited must be 13 or 14 digits";$0.raiseerror()}var _B=$g($1.barcode,4);if(_B<48||_B>49){$k[$j++]="bwipp.databarlimitedBadStartDigit";$k[$j++]="GS1 DataBar Limited must begin with 0 or 1";$0.raiseerror()}var _E=$G($1.barcode,5,$1.barcode.length-5);for(var _F=0,_G=_E.length;_F<_G;_F++){var _H=$g(_E,_F);if(_H<48||_H>57){$k[$j++]="bwipp.databarlimitedBadCharacter";$k[$j++]="GS1 DataBar Limited must contain only digits";$0.raiseerror()}}$1.checksum=0;for(var _I=0;_I<=12;_I+=1){$1.i=_I;$k[$j++]="checksum";$k[$j++]=$1.checksum;$k[$j++]=$f($g($1.barcode,$1.i+4)-48);if($1.i%2==0){var _O=$k[--$j];$k[$j++]=_O*3}var _P=$k[--$j];var _Q=$k[--$j];$1[$k[--$j]]=$f(_Q+_P)}$1.checksum=(10-$1.checksum%10)%10;if($1.barcode.length==18){if($g($1.barcode,17)!=$1.checksum+48){$k[$j++]="bwipp.databarlimitedBadCheckDigit";$k[$j++]="Incorrect GS1 DataBar Limited check digit provided";$0.raiseerror()}}var _X=$s(18);$P(_X,0,$1.barcode);$p(_X,17,$1.checksum+48);$1.barcode=_X;$k[$j++]=Infinity;var _b=$G($1.barcode,4,13);for(var _c=0,_d=_b.length;_c<_d;_c++){$k[$j++]=$f($g(_b,_c)-48)}$1.binval=$a();if($1.linkage){$1.linkval=$a([2,0,1,5,1,3,3,5,3,1,0,9,6]);for(var _k=0,_j=$1.binval.length-1;_k<=_j;_k+=1){$1.i=_k;$p($1.binval,$1.i,$f($g($1.binval,$1.i)+$g($1.linkval,$1.i)))}}$1.txt=$a($1.barcode.length);for(var _x=0,_w=$1.barcode.length-1;_x<=_w;_x+=1){$1.i=_x;$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),0,0,"",0]))}$1.ncr=function(){var _14=$k[--$j];var _15=$k[--$j];var _16=$f(_15-_14);if(_14<$f(_15-_14)){var _=_16;_16=_14;_14=_}$k[$j++]=_16;$k[$j++]=1;$k[$j++]=1;for(var _18=_15,_17=$f(_14+1);_18>=_17;_18-=1){var _19=$k[--$j];var _1A=$k[--$j];var _1B=$k[--$j];$k[$j++]=_1B;$k[$j++]=_1A;$k[$j++]=_19*_18;if($le(_1A,_1B)){var _1C=$k[--$j];var _1D=$k[--$j];$k[$j++]=$f(_1D+1);$k[$j++]=~~(_1C/_1D)}}for(;;){var _1E=$k[--$j];var _1F=$k[--$j];var _1G=$k[--$j];$k[$j++]=_1G;$k[$j++]=_1F;$k[$j++]=_1E;if($gt(_1F,_1G)){break}var _1H=$k[--$j];var _1I=$k[--$j];$k[$j++]=$f(_1I+1);$k[$j++]=~~(_1H/_1I)}var _1J=$k[--$j];var _1K=$k[--$j];$k[$j++]=_1J;$k[$j++]=_1K;$j--;var _1L=$k[--$j];var _1M=$k[--$j];$k[$j++]=_1L;$k[$j++]=_1M;$j--};$1.getRSSwidths=function(){$1.oe=$k[--$j];$1.el=$k[--$j];$1.mw=$k[--$j];$1.nm=$k[--$j];$1.val=$k[--$j];$1.out=$a($1.el);$1.mask=0;for(var _1W=0,_1V=$f($1.el-2);_1W<=_1V;_1W+=1){$1.bar=_1W;$1.ew=1;var _1Y=$1.bar;$1.mask=$1.mask|(_1Y<0?1>>>-_1Y:1<<_1Y);for(;;){$k[$j++]="sval";$k[$j++]=$f($f($1.nm-$1.ew)-1);$k[$j++]=$f($f($1.el-$1.bar)-2);$1.ncr();var _1d=$k[--$j];$1[$k[--$j]]=_1d;if($1.oe&&$1.mask==0&&$f($f($f($1.nm-$1.ew)-$1.el*2)+$1.bar*2)>=-2){$k[$j++]="sval";$k[$j++]=$1.sval;$k[$j++]=$f($f($f($1.nm-$1.ew)-$1.el)+$1.bar);$k[$j++]=$f($f($1.el-$1.bar)-2);$1.ncr();var _1s=$k[--$j];var _1t=$k[--$j];$1[$k[--$j]]=$f(_1t-_1s)}if($f($1.el-$1.bar)>2){$1.lval=0;for(var _23=$f($f($f($f($1.nm-$1.ew)-$1.el)+$1.bar)+2),_22=$f($1.mw+1);_23>=_22;_23-=1){$k[$j++]=$f($f($f($1.nm-_23)-$1.ew)-1);$k[$j++]=$f($f($1.el-$1.bar)-3);$1.ncr();$1.lval=$f($k[--$j]+$1.lval)}$1.sval=$f($1.sval-$1.lval*$f($f($1.el-$1.bar)-1))}else{if($f($1.nm-$1.ew)>$1.mw){$1.sval=$f($1.sval-1)}}$1.val=$f($1.val-$1.sval);if($1.val<0){break}$1.ew=$1.ew+1;var _2N=$1.bar;$1.mask=$1.mask&~(_2N<0?1>>>-_2N:1<<_2N)}$1.val=$f($1.val+$1.sval);$1.nm=$f($1.nm-$1.ew);$p($1.out,$1.bar,$1.ew)}$p($1.out,$f($1.el-1),$1.nm);$k[$j++]=$1.out};for(var _2Z=0;_2Z<=11;_2Z+=1){$1.i=_2Z;var _2a=$1.binval;var _2b=$1.i;$p(_2a,_2b+1,$f($g(_2a,_2b+1)+$g($1.binval,$1.i)%2013571*10));$p($1.binval,$1.i,~~($g($1.binval,$1.i)/2013571))}$1.d2=$g($1.binval,12)%2013571;var _2n=$1.binval;$p(_2n,12,~~($g(_2n,12)/2013571));$1.d1=0;$1.i=true;for(var _2p=0;_2p<=12;_2p+=1){$1.j=_2p;var _2s=$g($1.binval,$1.j);$k[$j++]=_2s;if(_2s==0&&$1.i){$j--}else{$1.i=false;$1.d1=$f($1.d1+$k[--$j]*~~Math.pow(10,12-$1.j))}}$1.tab267=$a([183063,0,17,9,6,3,6538,28,820063,183064,13,13,5,4,875,728,1000775,820064,9,17,3,6,28,6454,1491020,1000776,15,11,5,4,2415,203,1979844,1491021,11,15,4,5,203,2408,1996938,1979845,19,7,8,1,17094,1,2013570,1996939,7,19,1,8,1,16632]);$1.i=0;for(;;){if($1.d1<=$g($1.tab267,$1.i)){var _34=$G($1.tab267,$1.i+1,7);for(var _35=0,_36=_34.length;_35<_36;_35++){$k[$j++]=$g(_34,_35)}$1.d1te=$k[--$j];$1.d1to=$k[--$j];$1.d1mwe=$k[--$j];$1.d1mwo=$k[--$j];$1.d1ele=$k[--$j];$1.d1elo=$k[--$j];$1.d1gs=$k[--$j];break}$1.i=$1.i+8}$1.i=0;for(;;){if($1.d2<=$g($1.tab267,$1.i)){var _3M=$G($1.tab267,$1.i+1,7);for(var _3N=0,_3O=_3M.length;_3N<_3O;_3N++){$k[$j++]=$g(_3M,_3N)}$1.d2te=$k[--$j];$1.d2to=$k[--$j];$1.d2mwe=$k[--$j];$1.d2mwo=$k[--$j];$1.d2ele=$k[--$j];$1.d2elo=$k[--$j];$1.d2gs=$k[--$j];break}$1.i=$1.i+8}$k[$j++]="d1wo";$k[$j++]=~~($f($1.d1-$1.d1gs)/$1.d1te);$k[$j++]=$1.d1elo;$k[$j++]=$1.d1mwo;$k[$j++]=7;$k[$j++]=false;$1.getRSSwidths();var _3d=$k[--$j];$1[$k[--$j]]=_3d;$k[$j++]="d1we";$k[$j++]=$f($1.d1-$1.d1gs)%$1.d1te;$k[$j++]=$1.d1ele;$k[$j++]=$1.d1mwe;$k[$j++]=7;$k[$j++]=true;$1.getRSSwidths();var _3k=$k[--$j];$1[$k[--$j]]=_3k;$k[$j++]="d2wo";$k[$j++]=~~($f($1.d2-$1.d2gs)/$1.d2te);$k[$j++]=$1.d2elo;$k[$j++]=$1.d2mwo;$k[$j++]=7;$k[$j++]=false;$1.getRSSwidths();var _3r=$k[--$j];$1[$k[--$j]]=_3r;$k[$j++]="d2we";$k[$j++]=$f($1.d2-$1.d2gs)%$1.d2te;$k[$j++]=$1.d2ele;$k[$j++]=$1.d2mwe;$k[$j++]=7;$k[$j++]=true;$1.getRSSwidths();var _3y=$k[--$j];$1[$k[--$j]]=_3y;$1.d1w=$a(14);for(var _41=0;_41<=6;_41+=1){$1.i=_41;$p($1.d1w,$1.i*2,$g($1.d1wo,$1.i));$p($1.d1w,$1.i*2+1,$g($1.d1we,$1.i))}$1.d2w=$a(14);for(var _4D=0;_4D<=6;_4D+=1){$1.i=_4D;$p($1.d2w,$1.i*2,$g($1.d2wo,$1.i));$p($1.d2w,$1.i*2+1,$g($1.d2we,$1.i))}$k[$j++]=Infinity;var _4O=$1.d1w;for(var _4P=0,_4Q=_4O.length;_4P<_4Q;_4P++){$k[$j++]=$g(_4O,_4P)}var _4S=$1.d2w;for(var _4T=0,_4U=_4S.length;_4T<_4U;_4T++){$k[$j++]=$g(_4S,_4T)}$1.widths=$a();$1.checkweights=$a([1,3,9,27,81,65,17,51,64,14,42,37,22,66,20,60,2,6,18,54,73,41,34,13,39,28,84,74]);$k[$j++]=Infinity;for(var _4Y=0;_4Y<=43;_4Y+=1){$k[$j++]=_4Y}$k[$j++]=45;$k[$j++]=52;$k[$j++]=57;for(var _4Z=63;_4Z<=66;_4Z+=1){$k[$j++]=_4Z}for(var _4a=73;_4a<=79;_4a+=1){$k[$j++]=_4a}$k[$j++]=82;for(var _4b=126;_4b<=130;_4b+=1){$k[$j++]=_4b}$k[$j++]=132;for(var _4c=141;_4c<=146;_4c+=1){$k[$j++]=_4c}for(var _4d=210;_4d<=217;_4d+=1){$k[$j++]=_4d}$k[$j++]=220;for(var _4e=316;_4e<=320;_4e+=1){$k[$j++]=_4e}$k[$j++]=322;$k[$j++]=323;$k[$j++]=326;$k[$j++]=337;$1.checkseq=$a();$1.checksum=0;for(var _4g=0;_4g<=27;_4g+=1){$1.i=_4g;$1.checksum=$f($1.checksum+$g($1.widths,$1.i)*$g($1.checkweights,$1.i))}$1.checksum=$1.checksum%89;$1.seq=$g($1.checkseq,$1.checksum);$k[$j++]="swidths";$k[$j++]=~~($1.seq/21);$k[$j++]=8;$k[$j++]=3;$k[$j++]=6;$k[$j++]=false;$1.getRSSwidths();var _4t=$k[--$j];$1[$k[--$j]]=_4t;$k[$j++]="bwidths";$k[$j++]=$1.seq%21;$k[$j++]=8;$k[$j++]=3;$k[$j++]=6;$k[$j++]=false;$1.getRSSwidths();var _4w=$k[--$j];$1[$k[--$j]]=_4w;$1.checkwidths=$a([0,0,0,0,0,0,0,0,0,0,0,0,1,1]);for(var _4z=0;_4z<=5;_4z+=1){$1.i=_4z;$p($1.checkwidths,$1.i*2,$g($1.swidths,$1.i));$p($1.checkwidths,$1.i*2+1,$g($1.bwidths,$1.i))}$k[$j++]=Infinity;var _5A=$1.d1w;$k[$j++]=1;for(var _5B=0,_5C=_5A.length;_5B<_5C;_5B++){$k[$j++]=$g(_5A,_5B)}var _5E=$1.checkwidths;for(var _5F=0,_5G=_5E.length;_5F<_5G;_5F++){$k[$j++]=$g(_5E,_5F)}var _5I=$1.d2w;for(var _5J=0,_5K=_5I.length;_5J<_5K;_5J++){$k[$j++]=$g(_5I,_5J)}$k[$j++]=1;$k[$j++]=1;$k[$j++]=5;$1.sbs=$a();$k[$j++]=Infinity;var _5N=$1.sbs;$k[$j++]=Infinity;for(var _5P=0,_5Q=~~(($1.sbs.length+1)/2);_5P<_5Q;_5P++){$k[$j++]=$1.height}var _5S=$a();$k[$j++]=Infinity;for(var _5U=0,_5V=~~(($1.sbs.length+1)/2);_5U<_5V;_5U++){$k[$j++]=0}var _5W=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_5N;$k[$j++]="bhs";$k[$j++]=_5S;$k[$j++]="bbs";$k[$j++]=_5W;$k[$j++]="txt";$k[$j++]=$1.txt;$k[$j++]="textxalign";$k[$j++]="center";$k[$j++]="opt";$k[$j++]=$1.options;var _5Z=$d();$k[$j++]=_5Z;if(!$1.dontdraw){$0.renlinear()}};$0.databarexpanded=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.parse=false;$1.dontlint=false;$1.dontdraw=false;$1.height=34/72;$1.format="expanded";$1.segments=-1;$1.linkage=false;$1.barxmult=34;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.height=+$1.height;$1.segments=~~$1.segments;$1.barxmult=~~$1.barxmult;if($1.segments==-1){var _A=$eq($1.format,"expandedstacked")?4:22;$1.segments=_A}else{if($1.segments<2||$1.segments>22||$1.segments%2!=0){$k[$j++]="bwipp.gs1databarexpandedBadSegments";$k[$j++]="The number of segments must be even from 2 to 22";$0.raiseerror()}}$1.expand=function(){var _F=new Map([["parse",$1.parse],["parseonly",true],["parsefnc",false]]);$1.fncvals=_F;$k[$j++]=$1.fncvals;$0.parseinput()};$1.ais=$a([]);$1.vals=$a([]);var _J=$1.barcode;$k[$j++]=$G(_J,1,_J.length-1);for(;;){var _L=$k[--$j];$k[$j++]=_L;if($eq(_L,"")){break}$x($k[--$j],")");$j--;var _N=$k[--$j];var _O=$k[--$j];$k[$j++]=_N;$k[$j++]=_O;$j--;var _P=$k[--$j];var _Q=$k[--$j];$k[$j++]=_P;$x(_Q,"(");if($k[--$j]){var _S=$k[--$j];var _T=$k[--$j];$k[$j++]=_S;$k[$j++]=_T;$j--;var _U=$k[--$j];var _V=$k[--$j];var _W=$k[--$j];$k[$j++]=_V;$k[$j++]=_W;$k[$j++]=_U}else{var _X=$k[--$j];var _Y=$k[--$j];$k[$j++]="";$k[$j++]=_Y;$k[$j++]=_X}$k[$j++]=Infinity;$q($1.ais);var _b=$k[$j-1-($m()+2)];$k[$j++]=_b;$1.ais=$a();$k[$j++]=Infinity;$q($1.vals);var _f=$k[$j-1-($m()+1)];$k[$j++]=_f;$1.expand();$1.vals=$a();$j-=2}$j--;if(!$1.dontlint){$k[$j++]=$1.ais;$k[$j++]=$1.vals;$0.gs1lint();$j--}for(;;){if($1.ais.length==2){if($eq($g($1.ais,0),"01")&&$eq($g($1.ais,1),"3103")){if($eq($G($g($1.vals,0),0,1),"9")&&~~$z($g($1.vals,1))<=32767){$k[$j++]="0100";$k[$j++]=false;break}}}if($1.ais.length==2){if($eq($g($1.ais,0),"01")&&$eq($g($1.ais,1),"3202")){if($eq($G($g($1.vals,0),0,1),"9")&&~~$z($g($1.vals,1))<=9999){$k[$j++]="0101";$k[$j++]=false;break}}}if($1.ais.length==2){if($eq($g($1.ais,0),"01")&&$eq($g($1.ais,1),"3203")){if($eq($G($g($1.vals,0),0,1),"9")&&~~$z($g($1.vals,1))<=22767){$k[$j++]="0101";$k[$j++]=false;break}}}var _1F=$1.ais.length;if(_1F==2||_1F==3){$k[$j++]="ai310x";$k[$j++]=false;for(var _1G=3100;_1G<=3109;_1G+=1){var _1L=$k[--$j];$k[$j++]=_1L||$eq($R($s(4),_1G,10),$g($1.ais,1))}var _1M=$k[--$j];$1[$k[--$j]]=_1M;$k[$j++]="ai320x";$k[$j++]=false;for(var _1O=3200;_1O<=3209;_1O+=1){var _1T=$k[--$j];$k[$j++]=_1T||$eq($R($s(4),_1O,10),$g($1.ais,1))}var _1U=$k[--$j];$1[$k[--$j]]=_1U;if($1.ais.length==3){var _1X=$a(["11","13","15","17"]);$k[$j++]="aibad";$k[$j++]=true;for(var _1Y=0,_1Z=_1X.length;_1Y<_1Z;_1Y++){var _1d=$k[--$j];$k[$j++]=_1d&&$ne($g(_1X,_1Y),$g($1.ais,2))}var _1e=$k[--$j];$1[$k[--$j]]=_1e}else{$1.aibad=false}if($eq($g($1.ais,0),"01")&&($1.ai310x||$1.ai320x)&&!$1.aibad){if($1.ais.length==3){var _1u=~~$z($G($g($1.vals,2),2,2));var _1y=~~$z($G($g($1.vals,2),4,2));if($eq($G($g($1.vals,0),0,1),"9")&&~~$z($g($1.vals,1))<=99999&&(_1u>=1&&_1u<=12)&&(_1y>=0&&_1y<=31)){if($1.ai310x&&$eq($g($1.ais,2),"11")){$k[$j++]="0111000";$k[$j++]=false;break}if($1.ai320x&&$eq($g($1.ais,2),"11")){$k[$j++]="0111001";$k[$j++]=false;break}if($1.ai310x&&$eq($g($1.ais,2),"13")){$k[$j++]="0111010";$k[$j++]=false;break}if($1.ai320x&&$eq($g($1.ais,2),"13")){$k[$j++]="0111011";$k[$j++]=false;break}if($1.ai310x&&$eq($g($1.ais,2),"15")){$k[$j++]="0111100";$k[$j++]=false;break}if($1.ai320x&&$eq($g($1.ais,2),"15")){$k[$j++]="0111101";$k[$j++]=false;break}if($1.ai310x&&$eq($g($1.ais,2),"17")){$k[$j++]="0111110";$k[$j++]=false;break}if($1.ai320x&&$eq($g($1.ais,2),"17")){$k[$j++]="0111111";$k[$j++]=false;break}}}else{if($eq($G($g($1.vals,0),0,1),"9")&&~~$z($g($1.vals,1))<=99999){if($1.ai310x){$k[$j++]="0111000";$k[$j++]=false;break}if($1.ai320x){$k[$j++]="0111001";$k[$j++]=false;break}}}}}if($1.ais.length>=2){$k[$j++]="ai392x";$k[$j++]=false;for(var _2V=3920;_2V<=3923;_2V+=1){var _2a=$k[--$j];$k[$j++]=_2a||$eq($R($s(4),_2V,10),$g($1.ais,1))}var _2b=$k[--$j];$1[$k[--$j]]=_2b;if($eq($g($1.ais,0),"01")&&$1.ai392x){if($eq($G($g($1.vals,0),0,1),"9")){$k[$j++]="01100";$k[$j++]=true;break}}}if($1.ais.length>=2){$k[$j++]="ai393x";$k[$j++]=false;for(var _2k=3930;_2k<=3933;_2k+=1){var _2p=$k[--$j];$k[$j++]=_2p||$eq($R($s(4),_2k,10),$g($1.ais,1))}var _2q=$k[--$j];$1[$k[--$j]]=_2q;if($eq($g($1.ais,0),"01")&&$1.ai393x){if($eq($G($g($1.vals,0),0,1),"9")){$k[$j++]="01101";$k[$j++]=true;break}}}if($eq($g($1.ais,0),"01")){$k[$j++]="1";$k[$j++]=true;break}$k[$j++]="00";$k[$j++]=true;break}$1.gpfallow=$k[--$j];$1.method=$k[--$j];$1.conv12to40=function(){var _33=$Z($s(40),"0000000000000000000000000000000000000000");var _34=$k[--$j];var _38=$R($s(10),~~$z($G(_34,0,3)),2);$P($G(_33,0,10),10-_38.length,_38);var _3C=$R($s(10),~~$z($G(_34,3,3)),2);$P($G(_33,10,10),10-_3C.length,_3C);var _3G=$R($s(10),~~$z($G(_34,6,3)),2);$P($G(_33,20,10),10-_3G.length,_3G);var _3K=$R($s(10),~~$z($G(_34,9,3)),2);$P($G(_33,30,10),10-_3K.length,_3K);$k[$j++]=_33;$k[$j++]=_34;$j--};$1.conv13to44=function(){var _3M=$Z($s(44),"00000000000000000000000000000000000000000000");var _3N=$k[--$j];var _3R=$R($s(4),~~$z($G(_3N,0,1)),2);$P($G(_3M,0,4),4-_3R.length,_3R);$k[$j++]=_3M;$k[$j++]=_3M;$k[$j++]=$G(_3N,1,12);$1.conv12to40();var _3T=$k[--$j];$P($k[--$j],4,_3T)};$1.tobin=function(){var _3W=$s($k[--$j]);$k[$j++]=_3W;for(var _3Y=0,_3X=_3W.length-1;_3Y<=_3X;_3Y+=1){var _3Z=$k[--$j];$p(_3Z,_3Y,48);$k[$j++]=_3Z}var _3a=$k[--$j];var _3d=$R($s(_3a.length),$k[--$j],2);$P(_3a,_3a.length-_3d.length,_3d);$k[$j++]=_3a};$1.fnc1=-1;$1.lnumeric=-2;$1.lalphanumeric=-3;$1.liso646=-4;if($eq($1.method,"00")){$1.cdf=$a([]);$1.gpf=$a([])}if($eq($1.method,"1")){$k[$j++]="cdf";$k[$j++]=$G($g($1.vals,0),0,13);$1.conv13to44();var _3l=$k[--$j];$1[$k[--$j]]=_3l;$k[$j++]=Infinity;var _3n=$1.cdf;for(var _3o=0,_3p=_3n.length;_3o<_3p;_3o++){$k[$j++]=$f($g(_3n,_3o)-48)}$1.cdf=$a();$1.gpf=$a([]);$1.ais=$G($1.ais,1,$1.ais.length-1);$1.vals=$G($1.vals,1,$1.vals.length-1)}if($eq($1.method,"0100")){$1.cdf=$s(55);$k[$j++]=$1.cdf;$k[$j++]=0;$k[$j++]=$G($g($1.vals,0),1,12);$1.conv12to40();var _45=$k[--$j];var _46=$k[--$j];$P($k[--$j],_46,_45);$k[$j++]=$1.cdf;$k[$j++]=40;$k[$j++]=~~$z($g($1.vals,1));$k[$j++]=15;$1.tobin();var _4B=$k[--$j];var _4C=$k[--$j];$P($k[--$j],_4C,_4B);$k[$j++]=Infinity;var _4E=$1.cdf;for(var _4F=0,_4G=_4E.length;_4F<_4G;_4F++){$k[$j++]=$g(_4E,_4F)-48}$1.cdf=$a();$1.gpf=$a([]);$1.ais=$a([]);$1.vals=$a([])}if($eq($1.method,"0101")){$1.cdf=$s(55);$k[$j++]=$1.cdf;$k[$j++]=0;$k[$j++]=$G($g($1.vals,0),1,12);$1.conv12to40();var _4S=$k[--$j];var _4T=$k[--$j];$P($k[--$j],_4T,_4S);if($eq($g($1.ais,1),"3202")){$k[$j++]=~~$z($g($1.vals,1));$k[$j++]=15;$1.tobin()}else{$k[$j++]=~~$z($g($1.vals,1))+1e4;$k[$j++]=15;$1.tobin()}$P($1.cdf,40,$k[--$j]);$k[$j++]=Infinity;var _4d=$1.cdf;for(var _4e=0,_4f=_4d.length;_4e<_4f;_4e++){$k[$j++]=$g(_4d,_4e)-48}$1.cdf=$a();$1.gpf=$a([]);$1.ais=$a([]);$1.vals=$a([])}if($1.method.length==7){$1.cdf=$s(76);$k[$j++]=$1.cdf;$k[$j++]=0;$k[$j++]=$G($g($1.vals,0),1,12);$1.conv12to40();var _4r=$k[--$j];var _4s=$k[--$j];$P($k[--$j],_4s,_4r);var _4u=$s(6);$P(_4u,0,$G($g($1.ais,1),3,1));$P(_4u,1,$G($g($1.vals,1),1,5));$k[$j++]=~~$z(_4u);$k[$j++]=20;$1.tobin();$P($1.cdf,40,$k[--$j]);if($1.ais.length==3){var _55=$g($1.vals,2);$k[$j++]=~~$z($G(_55,0,2))*384+((~~$z($G(_55,2,2))-1)*32+~~$z($G(_55,4,2)))}else{$k[$j++]=38400}$k[$j++]=16;$1.tobin();$P($1.cdf,60,$k[--$j]);$k[$j++]=Infinity;var _5B=$1.cdf;for(var _5C=0,_5D=_5B.length;_5C<_5D;_5C++){$k[$j++]=$g(_5B,_5C)-48}$1.cdf=$a();$1.gpf=$a([]);$1.ais=$a([]);$1.vals=$a([])}if($eq($1.method,"01100")){$1.cdf=$s(42);$k[$j++]=$1.cdf;$k[$j++]=0;$k[$j++]=$G($g($1.vals,0),1,12);$1.conv12to40();var _5P=$k[--$j];var _5Q=$k[--$j];$P($k[--$j],_5Q,_5P);$k[$j++]=$1.cdf;$k[$j++]=40;$k[$j++]=~~$z($G($g($1.ais,1),3,1));$k[$j++]=2;$1.tobin();var _5W=$k[--$j];var _5X=$k[--$j];$P($k[--$j],_5X,_5W);$k[$j++]=Infinity;var _5Z=$1.cdf;for(var _5a=0,_5b=_5Z.length;_5a<_5b;_5a++){$k[$j++]=$g(_5Z,_5a)-48}$1.cdf=$a();$k[$j++]=Infinity;$F($g($1.vals,1));if($1.ais.length>2){$k[$j++]=$1.fnc1}$1.gpf=$a();$1.ais=$G($1.ais,2,$1.ais.length-2);$1.vals=$G($1.vals,2,$1.vals.length-2)}if($eq($1.method,"01101")){$1.cdf=$s(52);$k[$j++]=$1.cdf;$k[$j++]=0;$k[$j++]=$G($g($1.vals,0),1,12);$1.conv12to40();var _5v=$k[--$j];var _5w=$k[--$j];$P($k[--$j],_5w,_5v);$k[$j++]=$1.cdf;$k[$j++]=40;$k[$j++]=~~$z($G($g($1.ais,1),3,1));$k[$j++]=2;$1.tobin();var _62=$k[--$j];var _63=$k[--$j];$P($k[--$j],_63,_62);$k[$j++]=$1.cdf;$k[$j++]=42;$k[$j++]=~~$z($G($g($1.vals,1),0,3));$k[$j++]=10;$1.tobin();var _69=$k[--$j];var _6A=$k[--$j];$P($k[--$j],_6A,_69);$k[$j++]=Infinity;var _6C=$1.cdf;for(var _6D=0,_6E=_6C.length;_6D<_6E;_6D++){$k[$j++]=$g(_6C,_6D)-48}$1.cdf=$a();$k[$j++]=Infinity;var _6I=$g($1.vals,1);var _6J=$G(_6I,3,_6I.length-3);for(var _6K=0,_6L=_6J.length;_6K<_6L;_6K++){$k[$j++]=$g(_6J,_6K)}if($1.ais.length>2){$k[$j++]=$1.fnc1}$1.gpf=$a();$1.ais=$G($1.ais,2,$1.ais.length-2);$1.vals=$G($1.vals,2,$1.vals.length-2)}if($1.gpfallow){$1.vlf=$a(2)}else{$1.vlf=$a([])}$1.aifixed=new Map;$k[$j++]=Infinity;for(var _6Z=0;_6Z<=4;_6Z+=1){$k[$j++]=_6Z}var _6a=$a();for(var _6b=0,_6c=_6a.length;_6b<_6c;_6b++){var _6f=$Z($s(2),"00");$p(_6f,1,$f($g(_6a,_6b)+48));$p($1.aifixed,_6f,_6f)}$k[$j++]=Infinity;for(var _6h=11;_6h<=20;_6h+=1){$k[$j++]=_6h}$k[$j++]=23;for(var _6i=31;_6i<=36;_6i+=1){$k[$j++]=_6i}$k[$j++]=41;var _6j=$a();for(var _6k=0,_6l=_6j.length;_6k<_6l;_6k++){var _6o=$R($s(2),$g(_6j,_6k),10);$p($1.aifixed,_6o,_6o)}$k[$j++]=Infinity;for(var _6q=0;_6q<=119;_6q+=1){var _6s=$Z($s(2),"00");var _6u=$R($s(2),_6q,11);$P(_6s,2-_6u.length,_6u);$k[$j++]=_6q;$k[$j++]=_6s;if($g(_6s,0)==65){var _6w=$k[--$j];$p(_6w,0,94);$k[$j++]=_6w}var _6x=$k[--$j];$k[$j++]=_6x;if($g(_6x,1)==65){var _6z=$k[--$j];$p(_6z,1,94);$k[$j++]=_6z}var _70=$k[--$j];var _73=$Z($s(7),"0000000");var _75=$R($s(7),$f($k[--$j]+8),2);$P(_73,7-_75.length,_75);$k[$j++]=_70;$k[$j++]=_73}$k[$j++]=$1.lalphanumeric;$k[$j++]="0000";$1.numeric=$d();$k[$j++]=Infinity;for(var _78=48;_78<=57;_78+=1){$k[$j++]=_78;$k[$j++]=_78-43;$k[$j++]=5;$1.tobin()}$k[$j++]=$1.fnc1;$k[$j++]="01111";for(var _7A=65;_7A<=90;_7A+=1){$k[$j++]=_7A;$k[$j++]=_7A-33;$k[$j++]=6;$1.tobin()}$k[$j++]=42;$k[$j++]="111010";for(var _7B=44;_7B<=47;_7B+=1){$k[$j++]=_7B;$k[$j++]=_7B+15;$k[$j++]=6;$1.tobin()}$k[$j++]=$1.lnumeric;$k[$j++]="000";$k[$j++]=$1.liso646;$k[$j++]="00100";$1.alphanumeric=$d();$k[$j++]=Infinity;for(var _7F=48;_7F<=57;_7F+=1){$k[$j++]=_7F;$k[$j++]=_7F-43;$k[$j++]=5;$1.tobin()}$k[$j++]=$1.fnc1;$k[$j++]="01111";for(var _7H=65;_7H<=90;_7H+=1){$k[$j++]=_7H;$k[$j++]=_7H-1;$k[$j++]=7;$1.tobin()}for(var _7I=97;_7I<=122;_7I+=1){$k[$j++]=_7I;$k[$j++]=_7I-7;$k[$j++]=7;$1.tobin()}$k[$j++]=33;$k[$j++]="11101000";$k[$j++]=34;$k[$j++]="11101001";for(var _7J=37;_7J<=47;_7J+=1){$k[$j++]=_7J;$k[$j++]=_7J+197;$k[$j++]=8;$1.tobin()}for(var _7K=58;_7K<=63;_7K+=1){$k[$j++]=_7K;$k[$j++]=_7K+187;$k[$j++]=8;$1.tobin()}$k[$j++]=95;$k[$j++]="11111011";$k[$j++]=32;$k[$j++]="11111100";$k[$j++]=$1.lnumeric;$k[$j++]="000";$k[$j++]=$1.lalphanumeric;$k[$j++]="00100";$1.iso646=$d();for(var _7Q=0,_7P=$1.ais.length-1;_7Q<=_7P;_7Q+=1){$1.i=_7Q;$1.ai=$g($1.ais,$1.i);$1.val=$g($1.vals,$1.i);var _7a=$a($1.gpf.length+$1.ai.length+$1.val.length);$P(_7a,0,$1.gpf);$k[$j++]=_7a;$k[$j++]=_7a;$k[$j++]=$1.gpf.length;$k[$j++]=$1.ai;$k[$j++]=Infinity;var _7e=$k[--$j];var _7f=$k[--$j];$k[$j++]=_7e;$F(_7f);var _7g=$a();var _7h=$k[--$j];$P($k[--$j],_7h,_7g);var _7j=$k[--$j];$k[$j++]=_7j;$k[$j++]=_7j;$k[$j++]=$1.gpf.length+$1.ai.length;$k[$j++]=$1.val;$k[$j++]=Infinity;var _7n=$k[--$j];var _7o=$k[--$j];$k[$j++]=_7n;$F(_7o);var _7p=$a();var _7q=$k[--$j];$P($k[--$j],_7q,_7p);$1.gpf=$k[--$j];var _7y=$g($1.aifixed,$G($1.ai,0,2))!==undefined;if($1.i!=$1.ais.length-1&&!_7y){var _80=$a($1.gpf.length+1);$P(_80,0,$1.gpf);$p(_80,$1.gpf.length,$1.fnc1);$1.gpf=_80}}$1.rembits=function(){var _84=$k[--$j];var _85=48;var _86=~~Math.ceil(_84/12)*12;if(~~Math.ceil(_84/12)*12<48){var _=_85;_85=_86;_86=_}var _87=~~(_86/12);$k[$j++]=_84;$k[$j++]=_86;$k[$j++]=_87;if(_87%$1.segments==1){var _89=$k[--$j];var _8A=$k[--$j];$k[$j++]=$f(_89+1)*12;$k[$j++]=_8A;$j--}else{$j--}var _8B=$k[--$j];var _8C=$k[--$j];$k[$j++]=$f(_8B-_8C)};$1.encode=function(){var _8D=$k[--$j];$k[$j++]=_8D;if($ne(_8D,"raw")){var _8E=$k[--$j];var _8G=$g(_8E,$k[--$j]);$k[$j++]=_8G}else{$j--}$k[$j++]=Infinity;var _8H=$k[--$j];var _8I=$k[--$j];$k[$j++]=_8H;$F(_8I,function(){var _8J=$k[--$j];$k[$j++]=$f(_8J-48)});var _8K=$a();$P($1.gpfenc,$1.j,_8K);$1.j=_8K.length+$1.j};$k[$j++]=Infinity;for(var _8P=0,_8Q=$1.gpf.length;_8P<_8Q;_8P++){$k[$j++]=0}$k[$j++]=0;$k[$j++]=-1;$1.numericruns=$a();$k[$j++]=Infinity;for(var _8T=0,_8U=$1.gpf.length;_8T<_8U;_8T++){$k[$j++]=0}$k[$j++]=0;$1.alphanumericruns=$a();$k[$j++]=Infinity;for(var _8X=0,_8Y=$1.gpf.length;_8X<_8Y;_8X++){$k[$j++]=0}$k[$j++]=9999;$1.nextiso646only=$a();for(var _8b=$1.gpf.length-1;_8b>=0;_8b-=1){$1.i=_8b;var _8g=$Z($s(2),"00");var _8j=$g($1.gpf,$1.i);$k[$j++]=$g($1.gpf,$1.i);$k[$j++]=_8g;$k[$j++]=_8g;$k[$j++]=0;$k[$j++]=_8j;if(_8j==$1.fnc1){$j--;$k[$j++]=94}var _8l=$k[--$j];var _8m=$k[--$j];$p($k[--$j],_8m,_8l);if($1.i<$1.gpf.length-1){var _8q=$k[--$j];var _8t=$g($1.gpf,$1.i+1);$k[$j++]=_8q;$k[$j++]=_8q;$k[$j++]=1;$k[$j++]=_8t;if(_8t==$1.fnc1){$j--;$k[$j++]=94}var _8v=$k[--$j];var _8w=$k[--$j];$p($k[--$j],_8w,_8v)}var _90=$g($1.numeric,$k[--$j])!==undefined;if(_90){$p($1.numericruns,$1.i,$f($g($1.numericruns,$1.i+2)+2))}else{$p($1.numericruns,$1.i,0)}var _98=$k[--$j];var _9A=$g($1.alphanumeric,_98)!==undefined;$k[$j++]=_98;if(_9A){$p($1.alphanumericruns,$1.i,$f($g($1.alphanumericruns,$1.i+1)+1))}else{$p($1.alphanumericruns,$1.i,0)}var _9I=$k[--$j];var _9K=$g($1.iso646,_9I)!==undefined;var _9M=$g($1.alphanumeric,_9I)!==undefined;if(_9K&&!_9M){$p($1.nextiso646only,$1.i,0)}else{$p($1.nextiso646only,$1.i,$f($g($1.nextiso646only,$1.i+1)+1))}}$1.gpfenc=$a(252);$1.i=0;$1.j=0;$1.mode="numeric";for(;;){if($1.i==$1.gpf.length){break}for(;;){if($eq($1.mode,"numeric")){if($1.i<=$1.gpf.length-2){var _9a=$s(2);var _9d=$g($1.gpf,$1.i);$k[$j++]=_9a;$k[$j++]=_9a;$k[$j++]=0;$k[$j++]=_9d;if(_9d==$1.fnc1){$j--;$k[$j++]=94}var _9f=$k[--$j];var _9g=$k[--$j];$p($k[--$j],_9g,_9f);var _9i=$k[--$j];var _9l=$g($1.gpf,$1.i+1);$k[$j++]=_9i;$k[$j++]=_9i;$k[$j++]=1;$k[$j++]=_9l;if(_9l==$1.fnc1){$j--;$k[$j++]=94}var _9n=$k[--$j];var _9o=$k[--$j];$p($k[--$j],_9o,_9n);var _9q=$k[--$j];var _9s=$g($1.numeric,_9q)!==undefined;$k[$j++]=_9q;if(_9s){$k[$j++]=$1.numeric;$1.encode();$1.i=$1.i+2;break}$j--;$k[$j++]=$1.lalphanumeric;$k[$j++]=$1.numeric;$1.encode();$1.mode="alphanumeric";break}else{var _9z=$g($1.gpf,$1.i);if(_9z<48||_9z>57){$k[$j++]=$1.lalphanumeric;$k[$j++]=$1.numeric;$1.encode();$1.mode="alphanumeric";break}$k[$j++]="rem";$k[$j++]=12+1+$1.method.length+$1.vlf.length+$1.cdf.length+$1.j;$1.rembits();var _A6=$k[--$j];$1[$k[--$j]]=_A6;if($1.rem>=4&&$1.rem<=6){var _AD=$G($Z($s(6),"000000"),0,$1.rem);var _AI=$R($s(4),$f($g($1.gpf,$1.i)-47),2);$P(_AD,4-_AI.length,_AI);$k[$j++]=_AD;$k[$j++]="raw";$1.encode();$1.i=$1.i+1;break}else{var _AK=$s(2);$p(_AK,0,$g($1.gpf,$1.i));$p(_AK,1,94);$k[$j++]=_AK;$k[$j++]=$1.numeric;$1.encode();$1.i=$1.i+1;break}}}if($eq($1.mode,"alphanumeric")){if($g($1.gpf,$1.i)==$1.fnc1){$k[$j++]=$1.fnc1;$k[$j++]=$1.alphanumeric;$1.encode();$1.mode="numeric";$1.i=$1.i+1;break}var _Aa=$g($1.gpf,$1.i);var _Ac=$g($1.iso646,_Aa)!==undefined;var _Ae=$g($1.alphanumeric,_Aa)!==undefined;if(_Ac&&!_Ae){$k[$j++]=$1.liso646;$k[$j++]=$1.alphanumeric;$1.encode();$1.mode="iso646";break}if($g($1.numericruns,$1.i)>=6){$k[$j++]=$1.lnumeric;$k[$j++]=$1.alphanumeric;$1.encode();$1.mode="numeric";break}var _Ao=$g($1.numericruns,$1.i);if(_Ao>=4&&$f(_Ao+$1.i)==$1.gpf.length){$k[$j++]=$1.lnumeric;$k[$j++]=$1.alphanumeric;$1.encode();$1.mode="numeric";break}$k[$j++]=$g($1.gpf,$1.i);$k[$j++]=$1.alphanumeric;$1.encode();$1.i=$1.i+1;break}if($eq($1.mode,"iso646")){if($g($1.gpf,$1.i)==$1.fnc1){$k[$j++]=$1.fnc1;$k[$j++]=$1.iso646;$1.encode();$1.mode="numeric";$1.i=$1.i+1;break}if($g($1.numericruns,$1.i)>=4&&$g($1.nextiso646only,$1.i)>=10){$k[$j++]=$1.lnumeric;$k[$j++]=$1.iso646;$1.encode();$1.mode="numeric";break}if($g($1.alphanumericruns,$1.i)>=5&&$g($1.nextiso646only,$1.i)>=10){$k[$j++]=$1.lalphanumeric;$k[$j++]=$1.iso646;$1.encode();$1.mode="alphanumeric";break}$k[$j++]=$g($1.gpf,$1.i);$k[$j++]=$1.iso646;$1.encode();$1.i=$1.i+1;break}}}$1.gpf=$G($1.gpfenc,0,$1.j);var _BY=1+12+$1.method.length+$1.vlf.length+$1.cdf.length+$1.gpf.length;$k[$j++]=_BY;$k[$j++]=_BY;$1.rembits();var _BZ=$k[--$j];$1.pad=$a(_BZ);$k[$j++]=_BZ;if($1.vlf.length!=0){var _Bc=$k[--$j];var _Be=~~($f($k[--$j]+_Bc)/12);$p($1.vlf,0,_Be%2);var _Bg=_Be<=14?0:1;$p($1.vlf,1,_Bg)}else{$j-=2}if($1.pad.length>0){for(var _Bl=0,_Bk=$1.pad.length-1;_Bl<=_Bk;_Bl+=5){$1.i=_Bl;var _Bm=$1.pad;var _Bn=$1.i;var _Bo=$a([0,0,1,0,0]);var _Bp=$1.pad;var _Bq=$1.i;var _Br=5;var _Bs=_Bp.length-_Bq;if(_Bp.length-_Bq>5){var _=_Br;_Br=_Bs;_Bs=_}$P(_Bm,_Bn,$G(_Bo,0,_Bs))}if($eq($1.mode,"numeric")){$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$q($1.pad);$1.pad=$G($a(),0,$1.pad.length)}}$k[$j++]=Infinity;var _C0=$1.linkage?1:0;$k[$j++]=_C0;$F($1.method,function(){var _C2=$k[--$j];$k[$j++]=$f(_C2-48)});$q($1.vlf);$q($1.cdf);$q($1.gpf);$q($1.pad);$1.binval=$a();$1.datalen=~~($1.binval.length/12);$1.ncr=function(){var _C9=$k[--$j];var _CA=$k[--$j];var _CB=$f(_CA-_C9);if(_C9<$f(_CA-_C9)){var _=_CB;_CB=_C9;_C9=_}$k[$j++]=_CB;$k[$j++]=1;$k[$j++]=1;for(var _CD=_CA,_CC=$f(_C9+1);_CD>=_CC;_CD-=1){var _CE=$k[--$j];var _CF=$k[--$j];var _CG=$k[--$j];$k[$j++]=_CG;$k[$j++]=_CF;$k[$j++]=_CE*_CD;if($le(_CF,_CG)){var _CH=$k[--$j];var _CI=$k[--$j];$k[$j++]=$f(_CI+1);$k[$j++]=~~(_CH/_CI)}}for(;;){var _CJ=$k[--$j];var _CK=$k[--$j];var _CL=$k[--$j];$k[$j++]=_CL;$k[$j++]=_CK;$k[$j++]=_CJ;if($gt(_CK,_CL)){break}var _CM=$k[--$j];var _CN=$k[--$j];$k[$j++]=$f(_CN+1);$k[$j++]=~~(_CM/_CN)}var _CO=$k[--$j];var _CP=$k[--$j];$k[$j++]=_CO;$k[$j++]=_CP;$j--;var _CQ=$k[--$j];var _CR=$k[--$j];$k[$j++]=_CQ;$k[$j++]=_CR;$j--};$1.getRSSwidths=function(){$1.oe=$k[--$j];$1.el=$k[--$j];$1.mw=$k[--$j];$1.nm=$k[--$j];$1.val=$k[--$j];$1.out=$a($1.el);$1.mask=0;for(var _Cb=0,_Ca=$f($1.el-2);_Cb<=_Ca;_Cb+=1){$1.bar=_Cb;$1.ew=1;var _Cd=$1.bar;$1.mask=$1.mask|(_Cd<0?1>>>-_Cd:1<<_Cd);for(;;){$k[$j++]="sval";$k[$j++]=$f($f($1.nm-$1.ew)-1);$k[$j++]=$f($f($1.el-$1.bar)-2);$1.ncr();var _Ci=$k[--$j];$1[$k[--$j]]=_Ci;if($1.oe&&$1.mask==0&&$f($f($f($1.nm-$1.ew)-$1.el*2)+$1.bar*2)>=-2){$k[$j++]="sval";$k[$j++]=$1.sval;$k[$j++]=$f($f($f($1.nm-$1.ew)-$1.el)+$1.bar);$k[$j++]=$f($f($1.el-$1.bar)-2);$1.ncr();var _Cx=$k[--$j];var _Cy=$k[--$j];$1[$k[--$j]]=$f(_Cy-_Cx)}if($f($1.el-$1.bar)>2){$1.lval=0;for(var _D8=$f($f($f($f($1.nm-$1.ew)-$1.el)+$1.bar)+2),_D7=$f($1.mw+1);_D8>=_D7;_D8-=1){$k[$j++]=$f($f($f($1.nm-_D8)-$1.ew)-1);$k[$j++]=$f($f($1.el-$1.bar)-3);$1.ncr();$1.lval=$f($k[--$j]+$1.lval)}$1.sval=$f($1.sval-$1.lval*$f($f($1.el-$1.bar)-1))}else{if($f($1.nm-$1.ew)>$1.mw){$1.sval=$f($1.sval-1)}}$1.val=$f($1.val-$1.sval);if($1.val<0){break}$1.ew=$1.ew+1;var _DS=$1.bar;$1.mask=$1.mask&~(_DS<0?1>>>-_DS:1<<_DS)}$1.val=$f($1.val+$1.sval);$1.nm=$f($1.nm-$1.ew);$p($1.out,$1.bar,$1.ew)}$p($1.out,$f($1.el-1),$1.nm);$k[$j++]=$1.out};$1.tab174=$a([347,0,12,5,7,2,87,4,1387,348,10,7,5,4,52,20,2947,1388,8,9,4,5,30,52,3987,2948,6,11,3,6,10,104,4191,3988,4,13,1,8,1,204]);$1.dxw=$a($1.datalen);for(var _Dj=0,_Di=$1.datalen-1;_Dj<=_Di;_Dj+=1){$1.x=_Dj;$1.d=$G($1.binval,$1.x*12,12);$k[$j++]="d";$k[$j++]=0;for(var _Dn=0;_Dn<=11;_Dn+=1){$1.j=_Dn;var _Ds=$k[--$j];$k[$j++]=$f(_Ds+~~Math.pow(2,11-$1.j)*$g($1.d,$1.j))}var _Dt=$k[--$j];$1[$k[--$j]]=_Dt;$1.j=0;for(;;){if($le($1.d,$g($1.tab174,$1.j))){var _E1=$G($1.tab174,$1.j+1,7);for(var _E2=0,_E3=_E1.length;_E2<_E3;_E2++){$k[$j++]=$g(_E1,_E2)}$1.dte=$k[--$j];$1.dto=$k[--$j];$1.dmwe=$k[--$j];$1.dmwo=$k[--$j];$1.dele=$k[--$j];$1.delo=$k[--$j];$1.dgs=$k[--$j];break}$1.j=$1.j+8}$k[$j++]="dwo";$k[$j++]=~~($f($1.d-$1.dgs)/$1.dte);$k[$j++]=$1.delo;$k[$j++]=$1.dmwo;$k[$j++]=4;$k[$j++]=true;$1.getRSSwidths();var _EI=$k[--$j];$1[$k[--$j]]=_EI;$k[$j++]="dwe";$k[$j++]=$f($1.d-$1.dgs)%$1.dte;$k[$j++]=$1.dele;$k[$j++]=$1.dmwe;$k[$j++]=4;$k[$j++]=false;$1.getRSSwidths();var _EP=$k[--$j];$1[$k[--$j]]=_EP;$1.dw=$a(8);if($1.x%2==0){for(var _ET=0;_ET<=3;_ET+=1){$1.j=_ET;$p($1.dw,7-$1.j*2,$g($1.dwo,$1.j));$p($1.dw,6-$1.j*2,$g($1.dwe,$1.j))}}else{for(var _Ee=0;_Ee<=3;_Ee+=1){$1.j=_Ee;$p($1.dw,$1.j*2,$g($1.dwo,$1.j));$p($1.dw,$1.j*2+1,$g($1.dwe,$1.j))}}$p($1.dxw,$1.x,$1.dw)}$1.finderwidths=$a([1,8,4,1,1,1,1,4,8,1,3,6,4,1,1,1,1,4,6,3,3,4,6,1,1,1,1,6,4,3,3,2,8,1,1,1,1,8,2,3,2,6,5,1,1,1,1,5,6,2,2,2,9,1,1,1,1,9,2,2]);$1.finderseq=$a([$a([0,1]),$a([0,3,2]),$a([0,5,2,7]),$a([0,9,2,7,4]),$a([0,9,2,7,6,11]),$a([0,9,2,7,8,11,10]),$a([0,1,2,3,4,5,6,7]),$a([0,1,2,3,4,5,6,9,8]),$a([0,1,2,3,4,5,6,9,10,11]),$a([0,1,2,3,4,7,6,9,8,11,10])]);$1.seq=$g($1.finderseq,~~(($1.datalen-2)/2));$1.fxw=$a($1.seq.length);for(var _FB=0,_FA=$1.seq.length-1;_FB<=_FA;_FB+=1){$1.x=_FB;$p($1.fxw,$1.x,$G($1.finderwidths,$g($1.seq,$1.x)*5,5))}$1.checkweights=$a([-1,-1,-1,-1,-1,-1,-1,-1,77,96,32,81,27,9,3,1,20,60,180,118,143,7,21,63,205,209,140,117,39,13,145,189,193,157,49,147,19,57,171,91,132,44,85,169,197,136,186,62,185,133,188,142,4,12,36,108,50,87,29,80,97,173,128,113,150,28,84,41,123,158,52,156,166,196,206,139,187,203,138,46,76,17,51,153,37,111,122,155,146,119,110,107,106,176,129,43,16,48,144,10,30,90,59,177,164,125,112,178,200,137,116,109,70,210,208,202,184,130,179,115,190,204,68,93,31,151,191,134,148,22,66,198,172,94,71,2,40,154,192,64,162,54,18,6,120,149,25,75,14,42,126,167,175,199,207,69,23,78,26,79,103,98,83,38,114,131,182,124,159,53,88,170,127,183,61,161,55,165,73,8,24,72,5,15,89,100,174,58,160,194,135,45]);$k[$j++]=Infinity;$F($1.seq,function(){$q($G($1.checkweights,$k[--$j]*16,16))});var _FO=$a();$1.checkweightseq=$G(_FO,8,_FO.length-8);$k[$j++]=Infinity;var _FQ=$1.dxw;for(var _FR=0,_FS=_FQ.length;_FR<_FS;_FR++){$F($g(_FQ,_FR))}$1.widths=$a();$1.checksum=0;for(var _FX=0,_FW=$1.widths.length-1;_FX<=_FW;_FX+=1){$1.i=_FX;$1.checksum=$f($1.checksum+$g($1.widths,$1.i)*$g($1.checkweightseq,$1.i))}$1.checksum=$f($1.checksum%211+($1.datalen-3)*211);$1.i=0;for(;;){if($1.checksum<=$g($1.tab174,$1.i)){var _Fn=$G($1.tab174,$1.i+1,7);for(var _Fo=0,_Fp=_Fn.length;_Fo<_Fp;_Fo++){$k[$j++]=$g(_Fn,_Fo)}$1.cte=$k[--$j];$1.cto=$k[--$j];$1.cmwe=$k[--$j];$1.cmwo=$k[--$j];$1.cele=$k[--$j];$1.celo=$k[--$j];$1.cgs=$k[--$j];break}$1.i=$1.i+8}$k[$j++]="cwo";$k[$j++]=~~($f($1.checksum-$1.cgs)/$1.cte);$k[$j++]=$1.celo;$k[$j++]=$1.cmwo;$k[$j++]=4;$k[$j++]=true;$1.getRSSwidths();var _G4=$k[--$j];$1[$k[--$j]]=_G4;$k[$j++]="cwe";$k[$j++]=$f($1.checksum-$1.cgs)%$1.cte;$k[$j++]=$1.cele;$k[$j++]=$1.cmwe;$k[$j++]=4;$k[$j++]=false;$1.getRSSwidths();var _GB=$k[--$j];$1[$k[--$j]]=_GB;$1.cw=$a(8);for(var _GE=0;_GE<=3;_GE+=1){$1.i=_GE;$p($1.cw,$1.i*2,$g($1.cwo,$1.i));$p($1.cw,$1.i*2+1,$g($1.cwe,$1.i))}var _GP=$a(22);$p(_GP,0,$1.cw);$P(_GP,1,$1.dxw);$1.dxw=$G(_GP,0,$1.datalen+1);$1.datalen=$1.dxw.length;$1.rows=$a(~~Math.ceil($1.datalen/$1.segments));$1.numrows=$1.rows.length;for(var _Gb=0,_Ga=$1.numrows-1;_Gb<=_Ga;_Gb+=1){$1.r=_Gb;$k[$j++]=Infinity;if($1.segments%4!=0&&$1.r%2==1){$k[$j++]=0}$k[$j++]=1;$k[$j++]=1;for(var _Gg=0,_Gf=$1.segments-1;_Gg<=_Gf;_Gg+=1){$1.pos=_Gg+$1.r*$1.segments;if($1.pos<$1.datalen){$F($g($1.dxw,$1.pos));if($1.pos%2==0){$F($g($1.fxw,~~($1.pos/2)))}}}var _Gs=$m()+2;$k[$j++]=1;$k[$j++]=1;$r($a(_Gs));$p($1.rows,$1.r,$k[--$j]);$j--}if($ne($1.format,"expandedstacked")){var _Gz=$g($1.rows,0);$1.sbs=$G(_Gz,1,_Gz.length-1);$k[$j++]=Infinity;$k[$j++]=1;for(var _H3=0,_H2=$1.datalen-1;_H3<=_H2;_H3+=1){$1.i=_H3;$F($g($1.dxw,$1.i));if($1.i%2==0){$F($g($1.fxw,~~($1.i/2)))}}$k[$j++]=1;$k[$j++]=1;$1.sbs=$a();delete $1.options["parse"];$k[$j++]=Infinity;var _HD=$1.sbs;$k[$j++]=Infinity;for(var _HF=0,_HG=~~(($1.sbs.length+1)/2);_HF<_HG;_HF++){$k[$j++]=$1.height}var _HI=$a();$k[$j++]=Infinity;for(var _HK=0,_HL=~~(($1.sbs.length+1)/2);_HK<_HL;_HK++){$k[$j++]=0}var _HM=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_HD;$k[$j++]="bhs";$k[$j++]=_HI;$k[$j++]="bbs";$k[$j++]=_HM;$k[$j++]="opt";$k[$j++]=$1.options;var _HO=$d();$k[$j++]=_HO;if(!$1.dontdraw){$0.renlinear()}}else{$1.seps=$a($1.numrows);for(var _HU=0,_HT=$1.numrows-1;_HU<=_HT;_HU+=1){$1.r=_HU;$1.row=$g($1.rows,$1.r);$k[$j++]=Infinity;for(var _Ha=0,_HZ=$1.row.length-1;_Ha<=_HZ;_Ha+=2){$1.i=_Ha;for(var _He=0,_Hf=$g($1.row,$1.i);_He<_Hf;_He++){$k[$j++]=0}if($1.i<$1.row.length-1){for(var _Hl=0,_Hm=$g($1.row,$1.i+1);_Hl<_Hm;_Hl++){$k[$j++]=1}}}$r($a($m()));$1.row=$k[--$j];$j--;$k[$j++]=Infinity;$F($1.row,function(){var _Hr=$k[--$j];$k[$j++]=$f(1-_Hr)});$1.sep=$a();$k[$j++]=Infinity;for(var _Hv=19,_Hu=$1.row.length-13;_Hv<=_Hu;_Hv+=98){$k[$j++]=_Hv}for(var _Hy=68,_Hx=$1.row.length-13;_Hy<=_Hx;_Hy+=98){$k[$j++]=_Hy}$1.finderpos=$a();var _I0=$1.finderpos;for(var _I1=0,_I2=_I0.length;_I1<_I2;_I1++){var _I3=$g(_I0,_I1);for(var _I5=_I3,_I4=$f(_I3+14);_I5<=_I4;_I5+=1){$1.i=_I5;if($g($1.row,$1.i)==0){if($g($1.row,$1.i-1)==1){$k[$j++]=1}else{var _IF=$g($1.sep,$1.i-1)==0?1:0;$k[$j++]=_IF}}else{$k[$j++]=0}$p($1.sep,$1.i,$k[--$j])}}$P($1.sep,0,$a([0,0,0,0]));$P($1.sep,$1.row.length-4,$a([0,0,0,0]));if($1.segments%4==0&&$1.r%2==1){if($g($1.rows,$1.r).length!=$g($1.rows,0).length&&$1.finderpos.length%2==1){$k[$j++]=Infinity;$k[$j++]=0;$q($1.row);$1.row=$a();$k[$j++]=Infinity;$k[$j++]=0;$q($1.sep);$1.sep=$a()}else{for(var _Ib=$1.row.length-1;_Ib>=0;_Ib-=1){$k[$j++]=$g($1.row,_Ib)}$r($1.row);$j--;for(var _Ig=$1.sep.length-1;_Ig>=0;_Ig-=1){$k[$j++]=$g($1.sep,_Ig)}$r($1.sep);$j--}}$p($1.rows,$1.r,$1.row);$p($1.seps,$1.r,$1.sep)}$1.pixx=$g($1.rows,0).length;$k[$j++]=Infinity;for(var _It=0,_Iu=$1.pixx;_It<_Iu;_It++){$k[$j++]=0}var _Iv=$a();$P(_Iv,0,$g($1.rows,$1.numrows-1));$p($1.rows,$1.numrows-1,_Iv);$k[$j++]=Infinity;for(var _J2=0,_J3=$1.pixx;_J2<_J3;_J2++){$k[$j++]=0}var _J4=$a();$P(_J4,0,$g($1.seps,$1.numrows-1));$p($1.seps,$1.numrows-1,_J4);$k[$j++]=Infinity;for(var _JB=0,_JC=~~($1.pixx/2)+1;_JB<_JC;_JB++){$k[$j++]=0;$k[$j++]=1}$1.sep=$G($a(),0,$1.pixx);$P($1.sep,0,$a([0,0,0,0]));$P($1.sep,$1.pixx-4,$a([0,0,0,0]));$k[$j++]=Infinity;for(var _JN=0,_JM=$1.numrows-1;_JN<=_JM;_JN+=1){$1.r=_JN;if($1.r!=0){$q($g($1.seps,$1.r))}for(var _JT=0,_JU=$1.barxmult;_JT<_JU;_JT++){$q($g($1.rows,$1.r))}if($1.r!=$1.numrows-1){$q($g($1.seps,$1.r));$q($1.sep)}}$1.pixs=$a();delete $1.options["parse"];var _Jo=new Map([["ren",$0.renmatrix],["pixs",$1.pixs],["pixx",$1.pixx],["pixy",~~($1.pixs.length/$1.pixx)],["height",~~($1.pixs.length/$1.pixx)/72],["width",$1.pixx/72],["opt",$1.options]]);$k[$j++]=_Jo;if(!$1.dontdraw){$0.renmatrix()}}};$0.databarexpandedstacked=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$p($1.options,"dontdraw",true);$p($1.options,"format","expandedstacked");$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.databarexpanded();var _9=$k[--$j];$1[$k[--$j]]=_9;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.gs1northamericancoupon=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.coupontextfont="OCR-B";$1.coupontextsize=9;$1.coupontextxoffset="unset";$1.coupontextyoffset="unset";$1.parse=false;$1.dontlint=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.coupontextfont=""+$1.coupontextfont;$1.coupontextsize=+$1.coupontextsize;if($ne($1.coupontextxoffset,"unset")){$1.coupontextxoffset=+$1.coupontextxoffset}if($ne($1.coupontextyoffset,"unset")){$1.coupontextyoffset=+$1.coupontextyoffset}$1.expand=function(){var _C=new Map([["parse",$1.parse],["parseonly",true],["parsefnc",false]]);$1.fncvals=_C;$k[$j++]=$1.fncvals;$0.parseinput()};$1.ais=$a([]);$1.vals=$a([]);var _G=$1.barcode;$k[$j++]=$G(_G,1,_G.length-1);for(;;){var _I=$k[--$j];$k[$j++]=_I;if($eq(_I,"")){break}$x($k[--$j],")");$j--;var _K=$k[--$j];var _L=$k[--$j];$k[$j++]=_K;$k[$j++]=_L;$j--;var _M=$k[--$j];var _N=$k[--$j];$k[$j++]=_M;$x(_N,"(");if($k[--$j]){var _P=$k[--$j];var _Q=$k[--$j];$k[$j++]=_P;$k[$j++]=_Q;$j--;var _R=$k[--$j];var _S=$k[--$j];var _T=$k[--$j];$k[$j++]=_S;$k[$j++]=_T;$k[$j++]=_R}else{var _U=$k[--$j];var _V=$k[--$j];$k[$j++]="";$k[$j++]=_V;$k[$j++]=_U}$k[$j++]=Infinity;$q($1.ais);var _Y=$k[$j-1-($m()+2)];$k[$j++]=_Y;$1.ais=$a();$k[$j++]=Infinity;$q($1.vals);var _c=$k[$j-1-($m()+1)];$k[$j++]=_c;$1.expand();$1.vals=$a();$j-=2}$j--;if($1.ais.length!=1){$k[$j++]="bwipp.gs1northamericancouponBadAIStructure";$k[$j++]="A GS1 North American Coupon should consist of a single AI (8110)";$0.raiseerror()}if($ne($g($1.ais,0),"8110")){$k[$j++]="bwipp.gs1northamericancouponBadAIStructure";$k[$j++]="A GS1 North American Coupon should consist of a single AI (8110)";$0.raiseerror()}if(!$1.dontlint){$k[$j++]=$1.ais;$k[$j++]=$1.vals;$0.gs1lint();$j--}$1.val=$g($1.vals,0);$1.vli=$f($g($1.val,0)-48);if($1.vli<0||$1.vli>6){$k[$j++]="bwipp.gs1northamericancouponBadVLI";$k[$j++]="The AI (8110) data should start with a Company Prefix length indicator in the range 0 to 6";$0.raiseerror()}$1.gcp=$G($1.val,1,$f($1.vli+6));$1.cod=$G($1.val,$f($1.vli+7),6);$1.coupontext=$s($1.gcp.length+7);$P($1.coupontext,0,$1.gcp);$P($1.coupontext,$1.gcp.length,"-");$P($1.coupontext,$1.gcp.length+1,$1.cod);delete $1.options["parse"];$p($1.options,"dontdraw",true);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.databarexpandedstacked();var _19=$k[--$j];$1[$k[--$j]]=_19;if($1.includetext){if($1.coupontextxoffset=="unset"){$1.coupontextxoffset=0}if($1.coupontextyoffset=="unset"){$1.coupontextyoffset=$f($g($1.args,"height")*72+3)}var _1H=$g($1.args,"txt")!==undefined;if(_1H){$1.txt=$g($1.args,"txt");$1.newtxt=$a($1.txt.length+1);$P($1.newtxt,0,$1.txt);$p($1.newtxt,$1.newtxt.length-1,$a([$1.coupontext,$1.coupontextxoffset,$1.coupontextyoffset,$1.coupontextfont,$1.coupontextsize]));$p($1.args,"txt",$1.newtxt)}else{$p($1.args,"txt",$a([$a([$1.coupontext,$1.coupontextxoffset,$1.coupontextyoffset,$1.coupontextfont,$1.coupontextsize])]))}}$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.pharmacode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.height=8*2.835/72;$1.nwidth=.5*2.835;$1.wwidth=1.5*2.835;$1.swidth=1*2.835;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.height=+$1.height;$1.nwidth=+$1.nwidth;$1.wwidth=+$1.wwidth;$1.swidth=+$1.swidth;if($1.barcode.length<1||$1.barcode.length>6){$k[$j++]="bwipp.pharmacodeBadLength";$k[$j++]="Pharmacode must be 1 to 6 digits";$0.raiseerror()}$F($1.barcode,function(){var _C=$k[--$j];if(_C<48||_C>57){$k[$j++]="bwipp.pharmacodeBadCharacter";$k[$j++]="Pharmacode must contain only digits";$0.raiseerror()}});var _E=~~$z($1.barcode);if(_E<3||_E>131070){$k[$j++]="bwipp.pharmacodeBadValue";$k[$j++]="Pharmacode value must be between 3 and 131070";$0.raiseerror()}$1.txt=$a($1.barcode.length);for(var _J=0,_I=$1.barcode.length-1;_J<=_I;_J+=1){$1.i=_J;$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),0,0,"",0]))}$1.barcode=$R($s(17),~~$z($1.barcode)+1,2);$1.barcode=$G($1.barcode,1,$1.barcode.length-1);$1.barlen=$1.barcode.length;$1.sbs=$a($1.barlen*2);for(var _b=0,_a=$1.barlen-1;_b<=_a;_b+=1){$1.i=_b;$1.enc=$G($1.barcode,$1.i,1);if($eq($1.enc,"0")){$p($1.sbs,$1.i*2,$1.nwidth)}else{$p($1.sbs,$1.i*2,$1.wwidth)}$p($1.sbs,$1.i*2+1,$1.swidth)}$k[$j++]=Infinity;var _p=$1.sbs;$k[$j++]=Infinity;for(var _r=0,_s=~~(($1.sbs.length+1)/2);_r<_s;_r++){$k[$j++]=$1.height}var _u=$a();$k[$j++]=Infinity;for(var _w=0,_x=~~(($1.sbs.length+1)/2);_w<_x;_w++){$k[$j++]=0}var _y=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_p;$k[$j++]="bhs";$k[$j++]=_u;$k[$j++]="bbs";$k[$j++]=_y;$k[$j++]="txt";$k[$j++]=$1.txt;$k[$j++]="textxalign";$k[$j++]="center";$k[$j++]="opt";$k[$j++]=$1.options;var _11=$d();$k[$j++]=_11;if(!$1.dontdraw){$0.renlinear()}};$0.pharmacode2=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.height=4;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.height=+$1.height;if($1.barcode.length<1||$1.barcode.length>8){$k[$j++]="bwipp.pharmacode2BadLength";$k[$j++]="Two-track Pharmacode must be 1 to 6 digits";$0.raiseerror()}$F($1.barcode,function(){var _9=$k[--$j];if(_9<48||_9>57){$k[$j++]="bwipp.pharmacode2badCharacter";$k[$j++]="Two-track Pharmacode must contain only digits";$0.raiseerror()}});var _B=~~$z($1.barcode);if(_B<4||_B>64570080){$k[$j++]="bwipp.pharmacode2badValue";$k[$j++]="Two-track Pharmacode value must be between 4 and 64570080";$0.raiseerror()}$1.txt=$a($1.barcode.length);for(var _G=0,_F=$1.barcode.length-1;_G<=_F;_G+=1){$1.i=_G;$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),0,0,"",0]))}$1.encstr=$s(16);$1.sbs=$a(32);$1.bar=1/25.4*$1.height;$1.spc=1/25.4*72;$1.i=15;$1.val=~~$z($1.barcode);for(;;){if($1.val==0){break}var _T=$1.val%3;$1.val=~~($f($1.val-$g($a([3,1,2]),_T))/3);$p($1.encstr,$1.i,$g($a([2,0,1]),_T));$1.i=$1.i-1}$1.encstr=$G($1.encstr,$1.i+1,15-$1.i);$1.bhs=$a($1.encstr.length);$1.bbs=$a($1.encstr.length);for(var _m=0,_l=$1.encstr.length-1;_m<=_l;_m+=1){$1.i=_m;var _p=$g($1.encstr,$1.i);$p($1.bhs,$1.i,$1.bar*$g($a([1,1,2]),_p));$p($1.bbs,$1.i,$g($a([0,$1.bar,0]),_p))}$k[$j++]=Infinity;var _10=$1.bhs;var _11=$1.bbs;$k[$j++]=Infinity;for(var _13=0,_14=$1.encstr.length*2;_13<_14;_13++){$k[$j++]=$1.spc}var _16=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="bhs";$k[$j++]=_10;$k[$j++]="bbs";$k[$j++]=_11;$k[$j++]="sbs";$k[$j++]=_16;$k[$j++]="txt";$k[$j++]=$1.txt;$k[$j++]="textxalign";$k[$j++]="center";$k[$j++]="textyoffset";$k[$j++]=4;$k[$j++]="opt";$k[$j++]=$1.options;var _19=$d();$k[$j++]=_19;if(!$1.dontdraw){$0.renlinear()}};$0.code2of5=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includecheck=false;$1.validatecheck=false;$1.includetext=false;$1.includecheckintext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.height=1;$1.version="industrial";$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$F($1.barcode,function(){var _A=$k[--$j];if(_A<48||_A>57){$k[$j++]="bwipp.code2of5badCharacter";$k[$j++]="Code 25 must contain only digits";$0.raiseerror()}});$k[$j++]="barlen";$k[$j++]=$1.barcode.length;if($1.validatecheck){var _D=$k[--$j];$k[$j++]=$f(_D-1)}var _E=$k[--$j];$1[$k[--$j]]=_E;$1.checksum=0;for(var _I=0,_H=$f($1.barlen-1);_I<=_H;_I+=1){$1.i=_I;$k[$j++]="checksum";$k[$j++]=$1.checksum;$k[$j++]=$f($g($1.barcode,$1.i)-48);if($f($1.barlen-$1.i)%2!=0){var _P=$k[--$j];$k[$j++]=_P*3}var _Q=$k[--$j];var _R=$k[--$j];$1[$k[--$j]]=$f(_R+_Q)}$1.checksum=(10-$1.checksum%10)%10;if($1.validatecheck){if($g($1.barcode,$1.barlen)!=$1.checksum+48){$k[$j++]="bwipp.code2of5badCheckDigit";$k[$j++]="Incorrect Code 25 check digit provided";$0.raiseerror()}$1.barcode=$G($1.barcode,0,$1.barlen);$1.includecheck=true}var _h=new Map([["industrial",$a(["1111313111","3111111131","1131111131","3131111111","1111311131","3111311111","1131311111","1111113131","3111113111","1131113111","313111","31113"])],["iata",$a(["1111313111","3111111131","1131111131","3131111111","1111311131","3111311111","1131311111","1111113131","3111113111","1131113111","1111","311"])],["matrix",$a(["113311","311131","131131","331111","113131","313111","133111","111331","311311","131311","311111","31111"])],["coop",$a(["331111","111331","113131","113311","131131","131311","133111","311131","311311","313111","3131","133"])],["datalogic",$a(["113311","311131","131131","331111","113131","313111","133111","111331","311311","131311","1111","311"])]]);$1.versions=_h;var _k=$g($1.versions,$1.version)!==undefined;if(!_k){$k[$j++]="bwipp.code2of5badVersion";$k[$j++]="Unrecognised Code 25 version";$0.raiseerror()}$1.encs=$g($1.versions,$1.version);$1.cs=$g($1.encs,0).length;$k[$j++]="cw";$k[$j++]=0;$F($g($1.encs,0),function(){var _s=$k[--$j];var _t=$k[--$j];$k[$j++]=$f(_t+$f(_s-48))});var _u=$k[--$j];$1[$k[--$j]]=_u;$1.ss=$g($1.encs,10).length;$k[$j++]="sw";$k[$j++]=0;$F($g($1.encs,10),function(){var _10=$k[--$j];var _11=$k[--$j];$k[$j++]=$f(_11+$f(_10-48))});var _12=$k[--$j];$1[$k[--$j]]=_12;$1.es=$g($1.encs,11).length;$1.barchars="0123456789";$k[$j++]="sbs";$k[$j++]=$1.barlen;if($1.includecheck){var _18=$k[--$j];$k[$j++]=$f(_18+1)}var _1D=$s($f($f($k[--$j]*$1.cs+$1.ss)+$1.es));$1[$k[--$j]]=_1D;$k[$j++]="txt";$k[$j++]=$1.barlen;if($1.includecheck){var _1H=$k[--$j];$k[$j++]=$f(_1H+1)}var _1J=$a($k[--$j]);$1[$k[--$j]]=_1J;$P($1.sbs,0,$g($1.encs,10));for(var _1Q=0,_1P=$f($1.barlen-1);_1Q<=_1P;_1Q+=1){$1.i=_1Q;$x($1.barchars,$G($1.barcode,$1.i,1));$j--;$1.indx=$k[--$j].length;$j-=2;$1.enc=$g($1.encs,$1.indx);$P($1.sbs,$1.i*$1.cs+$1.ss,$1.enc);$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),$f($1.i*$1.cw+$1.sw),$1.textyoffset,$1.textfont,$1.textsize]))}if($1.includecheck){$P($1.sbs,$f($1.barlen*$1.cs+$1.ss),$g($1.encs,$1.checksum));$P($1.sbs,$f($f($1.barlen*$1.cs+$1.cs)+$1.ss),$g($1.encs,11));if($1.includecheckintext){$p($1.txt,$1.barlen,$a([$G($1.barchars,$1.checksum,1),$f($1.barlen*$1.cw+$1.sw),$1.textyoffset,$1.textfont,$1.textsize]))}else{$p($1.txt,$1.barlen,$a([" ",$f($1.barlen*$1.cw+$1.sw),$1.textyoffset,$1.textfont,$1.textsize]))}}else{$P($1.sbs,$f($1.barlen*$1.cs+$1.ss),$g($1.encs,11))}$k[$j++]=Infinity;$k[$j++]=Infinity;$F($1.sbs,function(){var _2Y=$k[--$j];$k[$j++]=$f(_2Y-48)});var _2Z=$a();$k[$j++]=Infinity;for(var _2b=0,_2c=~~(($1.sbs.length+1)/2);_2b<_2c;_2b++){$k[$j++]=$1.height}var _2e=$a();$k[$j++]=Infinity;for(var _2g=0,_2h=~~(($1.sbs.length+1)/2);_2g<_2h;_2g++){$k[$j++]=0}var _2i=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_2Z;$k[$j++]="bhs";$k[$j++]=_2e;$k[$j++]="bbs";$k[$j++]=_2i;if($1.includetext){$k[$j++]="txt";$k[$j++]=$1.txt}$k[$j++]="opt";$k[$j++]=$1.options;var _2m=$d();$k[$j++]=_2m;if(!$1.dontdraw){$0.renlinear()}};$0.industrial2of5=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textxoffset=0;$1.textyoffset=-8;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$p($1.options,"dontdraw",true);$p($1.options,"version","industrial");$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.code2of5();var _E=$k[--$j];$1[$k[--$j]]=_E;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.iata2of5=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textxoffset=0;$1.textyoffset=-8;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$p($1.options,"dontdraw",true);$p($1.options,"version","iata");$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.code2of5();var _E=$k[--$j];$1[$k[--$j]]=_E;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.matrix2of5=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textxoffset=0;$1.textyoffset=-8;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$p($1.options,"dontdraw",true);$p($1.options,"version","matrix");$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.code2of5();var _E=$k[--$j];$1[$k[--$j]]=_E;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.coop2of5=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textxoffset=0;$1.textyoffset=-8;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$p($1.options,"dontdraw",true);$p($1.options,"version","coop");$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.code2of5();var _E=$k[--$j];$1[$k[--$j]]=_E;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.datalogic2of5=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textxoffset=0;$1.textyoffset=-8;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$p($1.options,"dontdraw",true);$p($1.options,"version","datalogic");$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.code2of5();var _E=$k[--$j];$1[$k[--$j]]=_E;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.code11=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includecheck=false;$1.validatecheck=false;$1.includetext=false;$1.includecheckintext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.encs=$a(["111131","311131","131131","331111","113131","313111","133111","111331","311311","311111","113111","113311"]);$1.barchars="0123456789-";$1.charvals=new Map;for(var _A=0;_A<=10;_A+=1){$p($1.charvals,$G($1.barchars,_A,1),_A)}for(var _G=0,_F=$1.barcode.length-1;_G<=_F;_G+=1){var _K=$g($1.charvals,$G($1.barcode,_G,1))!==undefined;if(!_K){$k[$j++]="bwipp.code11badCharacter";$k[$j++]="Code 11 must contain only digits and dashes";$0.raiseerror()}}$1.barlen=$1.barcode.length;if($1.validatecheck){if($1.barlen==11){$k[$j++]="bwipp.code11badLength";$k[$j++]="Code 11 cannot be 11 characters using check digits";$0.raiseerror()}var _Q=$1.barlen<=10?1:2;$1.barlen=$1.barlen-_Q}$k[$j++]="numchecks";if($1.includecheck||$1.validatecheck){var _U=$1.barlen>=10?2:1;$k[$j++]=_U}else{$k[$j++]=0}var _V=$k[--$j];$1[$k[--$j]]=_V;$1.checksum1=0;$1.checksum2=0;for(var _Z=0,_Y=$1.barlen-1;_Z<=_Y;_Z+=1){$1.i=_Z;$1.indx=$g($1.charvals,$G($1.barcode,$1.i,1));$1.checksum1=$f($1.checksum1+(($1.barlen-$1.i-1)%10+1)*$1.indx);$1.checksum2=$f($1.checksum2+(($1.barlen-$1.i)%9+1)*$1.indx)}$1.checksum1=$1.checksum1%11;$1.checksum2=$f($1.checksum2+$1.checksum1)%11;if($1.validatecheck){if($1.numchecks==1){if($g($1.barcode,$1.barlen)!=$g($1.barchars,$1.checksum1)){$k[$j++]="bwipp.code11badCheckDigit";$k[$j++]="Incorrect Code 11 check digit provided";$0.raiseerror()}}else{if($g($1.barcode,$1.barlen)!=$g($1.barchars,$1.checksum1)||$g($1.barcode,$1.barlen+1)!=$g($1.barchars,$1.checksum2)){$k[$j++]="bwipp.code11badCheckDigits";$k[$j++]="Incorrect Code 11 check digits provided";$0.raiseerror()}}$1.barcode=$G($1.barcode,0,$1.barlen);$1.includecheck=true}$1.sbs=$s($f($f($1.barlen+$1.numchecks)*6+12));$1.txt=$a($f($1.barlen+$1.numchecks));$P($1.sbs,0,$g($1.encs,11));$1.xpos=8;for(var _1O=0,_1N=$1.barlen-1;_1O<=_1N;_1O+=1){$1.i=_1O;$1.indx=$g($1.charvals,$G($1.barcode,$1.i,1));$1.enc=$g($1.encs,$1.indx);$P($1.sbs,$1.i*6+6,$1.enc);$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),$1.xpos,$1.textyoffset,$1.textfont,$1.textsize]));for(var _1k=0;_1k<=5;_1k+=1){$1.xpos=$f($f($g($1.enc,_1k)-48)+$1.xpos)}}if($1.includecheck){if($1.barlen>=10){$P($1.sbs,$1.barlen*6+6,$g($1.encs,$1.checksum1));$P($1.sbs,$1.barlen*6+12,$g($1.encs,$1.checksum2));if($1.includecheckintext){$p($1.txt,$1.barlen,$a([$G($1.barchars,$1.checksum1,1),$1.xpos,$1.textyoffset,$1.textfont,$1.textsize]));$1.enc=$g($1.encs,$1.checksum1);for(var _2E=0;_2E<=5;_2E+=1){$1.xpos=$f($f($g($1.enc,_2E)-48)+$1.xpos)}$p($1.txt,$1.barlen+1,$a([$G($1.barchars,$1.checksum2,1),$1.xpos,$1.textyoffset,$1.textfont,$1.textsize]))}else{$p($1.txt,$1.barlen,$a(["",$1.xpos,$1.textyoffset,$1.textfont,$1.textsize]));$p($1.txt,$1.barlen+1,$a(["",$1.xpos,$1.textyoffset,$1.textfont,$1.textsize]))}$P($1.sbs,$1.barlen*6+18,$g($1.encs,11))}else{$P($1.sbs,$1.barlen*6+6,$g($1.encs,$1.checksum1));if($1.includecheckintext){$p($1.txt,$1.barlen,$a([$G($1.barchars,$1.checksum1,1),$1.xpos,$1.textyoffset,$1.textfont,$1.textsize]))}else{$p($1.txt,$1.barlen,$a(["",$1.xpos,$1.textyoffset,$1.textfont,$1.textsize]))}$P($1.sbs,$1.barlen*6+12,$g($1.encs,11))}}else{$P($1.sbs,$1.barlen*6+6,$g($1.encs,11))}$k[$j++]=Infinity;$k[$j++]=Infinity;var _3F=$1.sbs;for(var _3G=0,_3H=_3F.length;_3G<_3H;_3G++){$k[$j++]=$g(_3F,_3G)-48}var _3J=$a();$k[$j++]=Infinity;for(var _3L=0,_3M=~~(($1.sbs.length+1)/2);_3L<_3M;_3L++){$k[$j++]=$1.height}var _3O=$a();$k[$j++]=Infinity;for(var _3Q=0,_3R=~~(($1.sbs.length+1)/2);_3Q<_3R;_3Q++){$k[$j++]=0}var _3S=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_3J;$k[$j++]="bhs";$k[$j++]=_3O;$k[$j++]="bbs";$k[$j++]=_3S;if($1.includetext){$k[$j++]="txt";$k[$j++]=$1.txt}$k[$j++]="opt";$k[$j++]=$1.options;var _3W=$d();$k[$j++]=_3W;if(!$1.dontdraw){$0.renlinear()}};$0.bc412=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includecheck=false;$1.validatecheck=false;$1.includetext=false;$1.includecheckintext=false;$1.includestartstop=false;$1.semi=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;if($1.semi){$1.includecheck=true;$1.includestartstop=true}$1.barchars="0R9GLVHA8EZ4NTS1J2Q6C7DYKBUIX3FWP5M";$1.charvals=new Map;for(var _A=0;_A<=34;_A+=1){$p($1.charvals,$G($1.barchars,_A,1),_A)}for(var _G=0,_F=$1.barcode.length-1;_G<=_F;_G+=1){var _K=$g($1.charvals,$G($1.barcode,_G,1))!==undefined;if(!_K){$k[$j++]="bwipp.bc412badCharacter";$k[$j++]="BC412 must contain only digits and capital letters except O";$0.raiseerror()}}$k[$j++]="barlen";$k[$j++]=$1.barcode.length;if($1.validatecheck){var _N=$k[--$j];$k[$j++]=$f(_N-1)}var _O=$k[--$j];$1[$k[--$j]]=_O;$1.checksum=0;for(var _S=0,_R=$f($1.barlen-1);_S<=_R;_S+=1){$1.checksum=$f($g($1.charvals,$G($1.barcode,_S,1))+$1.checksum)}$1.checksum=$1.checksum%35;if($1.validatecheck){if($g($1.barcode,$1.barlen)!=$g($1.barchars,$1.checksum)){$k[$j++]="bwipp.bc412badCheckDigit";$k[$j++]="Incorrect BC412 check digit provided";$0.raiseerror()}$1.barcode=$G($1.barcode,0,$1.barlen);$1.includecheck=true}$1.encs=$a(["11111115","13111212","11131113","12111213","12121311","13131111","12111312","11131212","11121411","11151111","15111111","11111511","12131211","13121112","13111212","11111214","12121113","11111313","13111113","11121213","11141112","11121312","11141211","14121111","12121212","11131311","13121211","12111411","14111211","11111412","12111114","14111112","12141111","11121114","12131112","12","111"]);$1.sbs=$s($f($f($1.barlen+1)*8+5));if($1.includecheck){$1.txt=$a($f($1.barlen+1))}else{$1.txt=$a($1.barlen)}if($1.includestartstop){$P($1.sbs,0,$g($1.encs,35));$1.pos=2;$1.txtpos=3}else{$1.pos=0;$1.txtpos=0}for(var _x=0,_w=$f($1.barlen-1);_x<=_w;_x+=1){$1.i=_x;$1.indx=$g($1.charvals,$G($1.barcode,$1.i,1));$P($1.sbs,$1.pos,$g($1.encs,$1.indx));$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),$1.i*12+$1.txtpos,$1.textyoffset,$1.textfont,$1.textsize]));$1.pos=$1.pos+8}if($1.includecheck){$P($1.sbs,$1.pos,$g($1.encs,$1.checksum));if($1.includecheckintext){$p($1.txt,$1.barlen,$a([$G($1.barchars,$1.checksum,1),$f($1.barlen*12+$1.txtpos),$1.textyoffset,$1.textfont,$1.textsize]))}else{$p($1.txt,$1.barlen,$a(["",$f($1.barlen*12+$1.txtpos),$1.textyoffset,$1.textfont,$1.textsize]))}$1.pos=$1.pos+8}if($1.includestartstop){$P($1.sbs,$1.pos,$g($1.encs,36));$1.pos=$1.pos+2}$1.sbs=$G($1.sbs,0,$1.pos);$k[$j++]=Infinity;$k[$j++]=Infinity;var _1u=$1.sbs;for(var _1v=0,_1w=_1u.length;_1v<_1w;_1v++){$k[$j++]=$f($g(_1u,_1v)-48)}var _1y=$a();$k[$j++]=Infinity;for(var _20=0,_21=~~(($1.sbs.length+1)/2);_20<_21;_20++){$k[$j++]=$1.height}var _23=$a();$k[$j++]=Infinity;for(var _25=0,_26=~~(($1.sbs.length+1)/2);_25<_26;_25++){$k[$j++]=0}var _27=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_1y;$k[$j++]="bhs";$k[$j++]=_23;$k[$j++]="bbs";$k[$j++]=_27;if($1.includetext){$k[$j++]="txt";$k[$j++]=$1.txt}$k[$j++]="opt";$k[$j++]=$1.options;var _2B=$d();$k[$j++]=_2B;if(!$1.dontdraw){$0.renlinear()}};$0.rationalizedCodabar=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.altstartstop=false;$1.includecheck=false;$1.validatecheck=false;$1.includetext=false;$1.includecheckintext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.encs=$a(["11111331","11113311","11131131","33111111","11311311","31111311","13111131","13113111","13311111","31131111","11133111","11331111","31113131","31311131","31313111","11313131","11331311","13131131","11131331","11133311"]);if($1.altstartstop){$1.barchars="0123456789-$:/.+TN*E"}else{$1.barchars="0123456789-$:/.+ABCD"}$1.charvals=new Map;for(var _B=0;_B<=19;_B+=1){$p($1.charvals,$G($1.barchars,_B,1),_B)}$1.bodyvals=new Map;for(var _F=0;_F<=15;_F+=1){$p($1.bodyvals,$G($1.barchars,_F,1),_F)}$1.ssvals=new Map;for(var _J=16;_J<=19;_J+=1){$p($1.ssvals,$G($1.barchars,_J,1),_J)}var _Q=$g($1.ssvals,$G($1.barcode,0,1))!==undefined;var _V=$g($1.ssvals,$G($1.barcode,$1.barcode.length-1,1))!==undefined;if(!_Q||!_V){if($1.altstartstop){$k[$j++]="bwipp.rationalizedCodabarBadAltStartStop";$k[$j++]="Codabar start and stop characters must be one of E N T or *";$0.raiseerror()}else{$k[$j++]="bwipp.rationalizedCodabarBadStartStop";$k[$j++]="Codabar start and stop characters must be one of A B C or D";$0.raiseerror()}}for(var _Z=1,_Y=$1.barcode.length-2;_Z<=_Y;_Z+=1){var _d=$g($1.bodyvals,$G($1.barcode,_Z,1))!==undefined;if(!_d){$k[$j++]="bwipp.rationalizedCodabarBadCharacter";$k[$j++]="Codabar body must contain only digits and symbols - $ : / . +";$0.raiseerror()}}$k[$j++]="barlen";$k[$j++]=$1.barcode.length;if($1.validatecheck){var _g=$k[--$j];$k[$j++]=$f(_g-1)}var _h=$k[--$j];$1[$k[--$j]]=_h;$1.checksum=0;for(var _l=0,_k=$f($1.barlen-2);_l<=_k;_l+=1){$1.checksum=$f($g($1.charvals,$G($1.barcode,_l,1))+$1.checksum)}$1.checksum=$f($g($1.charvals,$G($1.barcode,$1.barcode.length-1,1))+$1.checksum);$1.checksum=$f(16-$1.checksum%16)%16;if($1.validatecheck){if($g($1.barcode,$f($1.barlen-1))!=$g($1.barchars,$1.checksum)){$k[$j++]="bwipp.rationalizedCodabarBadCheckDigit";$k[$j++]="Incorrect Codabar check digit provided";$0.raiseerror()}var _16=$s($1.barlen);$P(_16,0,$G($1.barcode,0,$f($1.barlen-1)));$P(_16,$f($1.barlen-1),$G($1.barcode,$1.barlen,1));$1.barcode=_16;$1.includecheck=true}$k[$j++]="sbs";$k[$j++]=$1.barlen;if($1.includecheck){var _1G=$k[--$j];$k[$j++]=$f(_1G+1)}var _1I=$s($k[--$j]*8);$1[$k[--$j]]=_1I;$k[$j++]="txt";$k[$j++]=$1.barlen;if($1.includecheck){var _1M=$k[--$j];$k[$j++]=$f(_1M+1)}var _1O=$a($k[--$j]);$1[$k[--$j]]=_1O;$1.xpos=0;for(var _1S=0,_1R=$f($1.barlen-2);_1S<=_1R;_1S+=1){$1.i=_1S;$1.indx=$g($1.charvals,$G($1.barcode,$1.i,1));$1.enc=$g($1.encs,$1.indx);$P($1.sbs,$1.i*8,$1.enc);$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),$1.xpos,$1.textyoffset,$1.textfont,$1.textsize]));for(var _1o=0;_1o<=7;_1o+=1){$1.xpos=$f($f($g($1.enc,_1o)-48)+$1.xpos)}}if($1.includecheck){$P($1.sbs,$f($1.barlen*8-8),$g($1.encs,$1.checksum));if($1.includecheckintext){$p($1.txt,$f($1.barlen-1),$a([$G($1.barchars,$1.checksum,1),$1.xpos,$1.textyoffset,$1.textfont,$1.textsize]))}else{$p($1.txt,$f($1.barlen-1),$a([" ",$1.xpos,$1.textyoffset,$1.textfont,$1.textsize]))}for(var _2G=0;_2G<=7;_2G+=1){$1.xpos=$f($f($g($g($1.encs,$1.checksum),_2G)-48)+$1.xpos)}$1.indx=$g($1.charvals,$G($1.barcode,$f($1.barlen-1),1));$1.enc=$g($1.encs,$1.indx);$P($1.sbs,$1.barlen*8,$1.enc);$p($1.txt,$1.barlen,$a([$G($1.barcode,$f($1.barlen-1),1),$1.xpos,$1.textyoffset,$1.textfont,$1.textsize]))}else{$1.indx=$g($1.charvals,$G($1.barcode,$f($1.barlen-1),1));$1.enc=$g($1.encs,$1.indx);$P($1.sbs,$f($1.barlen*8-8),$1.enc);$p($1.txt,$f($1.barlen-1),$a([$G($1.barcode,$f($1.barlen-1),1),$1.xpos,$1.textyoffset,$1.textfont,$1.textsize]))}$k[$j++]=Infinity;$k[$j++]=Infinity;$F($1.sbs,function(){var _33=$k[--$j];$k[$j++]=$f(_33-48)});var _34=$a();$k[$j++]=Infinity;for(var _36=0,_37=~~(($1.sbs.length+1)/2);_36<_37;_36++){$k[$j++]=$1.height}var _39=$a();$k[$j++]=Infinity;for(var _3B=0,_3C=~~(($1.sbs.length+1)/2);_3B<_3C;_3B++){$k[$j++]=0}var _3D=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_34;$k[$j++]="bhs";$k[$j++]=_39;$k[$j++]="bbs";$k[$j++]=_3D;if($1.includetext){$k[$j++]="txt";$k[$j++]=$1.txt}$k[$j++]="opt";$k[$j++]=$1.options;var _3H=$d();$k[$j++]=_3H;if(!$1.dontdraw){$0.renlinear()}};$0.onecode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.height=.15;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.height=+$1.height;$1.barlen=$1.barcode.length;$k[$j++]=Infinity;var _9=$eq($G($1.barcode,5,1),"9")?14:11;$k[$j++]=2;$k[$j++]=2;$k[$j++]=5;$k[$j++]=5;$k[$j++]=_9;$k[$j++]=_9;$k[$j++]=20;$k[$j++]=20;$k[$j++]=25;$k[$j++]=25;$k[$j++]=29;$k[$j++]=29;$1.txtdict=$d();$1.txt=$a($1.barlen+6);$1.spacecnt=0;for(var _F=0,_E=$1.barlen-1;_F<=_E;_F+=1){$1.i=_F;var _I=$g($1.txtdict,$1.i)!==undefined;if(_I){$p($1.txt,$1.i+$1.spacecnt,$a([" ",0,0,"",0]));$1.spacecnt=$1.spacecnt+1}$p($1.txt,$1.i+$1.spacecnt,$a([$G($1.barcode,$1.i,1),0,0,"",0]))}$1.txt=$G($1.txt,0,$1.barcode.length+$1.spacecnt);$1.normalize=function(){$1.base=$k[--$j];$1.num=$k[--$j];for(var _c=$1.num.length-1;_c>=1;_c-=1){$1.i=_c;var _d=$1.num;var _e=$1.i;$p(_d,_e-1,$f($g(_d,_e-1)+~~($g($1.num,$1.i)/$1.base)));$p($1.num,$1.i,$g($1.num,$1.i)%$1.base)}for(;;){if($lt($g($1.num,0),$1.base)){break}$k[$j++]=Infinity;$k[$j++]=0;$F($1.num);$1.num=$a();$p($1.num,0,$f($g($1.num,0)+~~($g($1.num,1)/$1.base)));$p($1.num,1,$g($1.num,1)%$1.base)}$k[$j++]=Infinity;$1.i=true;var _15=$1.num;for(var _16=0,_17=_15.length;_16<_17;_16++){var _18=$g(_15,_16);$k[$j++]=_18;if(_18==0&&$1.i){$j--}else{$1.i=false}}$1.num=$a();if($1.num.length==0){$1.num=$a([0])}$k[$j++]=$1.num};$1.bigadd=function(){var _1E=$k[--$j];var _1F=$k[--$j];$1.offset=Math.abs(_1E.length-_1F.length);if(_1E.length<_1F.length){var _=_1E;_1E=_1F;_1F=_}$1.a=_1E;$1.b=_1F;for(var _1I=0,_1H=$1.b.length-1;_1I<=_1H;_1I+=1){var _1J=$1.a;var _1K=$1.offset;$p(_1J,_1I+_1K,$f($g(_1J,_1I+_1K)+$g($1.b,_1I)))}$k[$j++]=$1.a};if($1.barlen==20){$k[$j++]=$a([0])}if($1.barlen==25){$k[$j++]=$a([1])}if($1.barlen==29){$k[$j++]=$a([1,0,0,0,0,1])}if($1.barlen==31){$k[$j++]=$a([1,0,0,0,1,0,0,0,0,1])}var _1X=$k[--$j];$k[$j++]="binval";$k[$j++]=_1X;$k[$j++]=Infinity;var _1a=$G($1.barcode,20,$1.barlen-20);for(var _1b=0,_1c=_1a.length;_1b<_1c;_1b++){$k[$j++]=$f($g(_1a,_1b)-48)}var _1e=$a();$k[$j++]=_1e;$1.bigadd();var _1f=$k[--$j];$1[$k[--$j]]=_1f;$k[$j++]=Infinity;var _1h=$1.binval;for(var _1i=0,_1j=_1h.length;_1i<_1j;_1i++){$k[$j++]=$g(_1h,_1i)}$k[$j++]=$f($g($1.barcode,0)-48);$1.binval=$a();$k[$j++]=Infinity;var _1o=$1.binval;for(var _1p=0,_1q=_1o.length;_1p<_1q;_1p++){$k[$j++]=$g(_1o,_1p)*5}var _1s=$a();$k[$j++]="binval";$k[$j++]=_1s;$k[$j++]=$a([$f($g($1.barcode,1)-48)]);$1.bigadd();$k[$j++]=10;$1.normalize();var _1w=$k[--$j];$1[$k[--$j]]=_1w;$k[$j++]=Infinity;var _1y=$1.binval;for(var _1z=0,_20=_1y.length;_1z<_20;_1z++){$k[$j++]=$g(_1y,_1z)}var _23=$G($1.barcode,2,18);for(var _24=0,_25=_23.length;_24<_25;_24++){$k[$j++]=$f($g(_23,_24)-48)}$1.binval=$a();$1.bytes=$a(13);$k[$j++]=Infinity;var _29=$1.binval;for(var _2A=0,_2B=_29.length;_2A<_2B;_2A++){$k[$j++]=$g(_29,_2A)}$1.bintmp=$a();for(var _2E=12;_2E>=0;_2E-=1){$1.i=_2E;for(var _2H=0,_2G=$1.bintmp.length-2;_2H<=_2G;_2H+=1){$1.j=_2H;var _2I=$1.bintmp;var _2J=$1.j;$p(_2I,_2J+1,$f($g(_2I,_2J+1)+$g($1.bintmp,$1.j)%256*10));$p($1.bintmp,$1.j,~~($g($1.bintmp,$1.j)/256))}$p($1.bytes,$1.i,$g($1.bintmp,$1.bintmp.length-1)%256);var _2Y=$1.bintmp;var _2Z=$1.bintmp;$p(_2Y,_2Z.length-1,~~($g(_2Y,_2Z.length-1)/256))}$1.fcs=2047;$1.dat=$g($1.bytes,0)<<5;for(var _2d=0,_2e=6;_2d<_2e;_2d++){if((($1.fcs^$1.dat)&1024)!=0){$1.fcs=$1.fcs<<1^3893}else{$1.fcs=$1.fcs<<1}$1.fcs=$1.fcs&2047;$1.dat=$1.dat<<1}for(var _2l=1;_2l<=12;_2l+=1){$1.dat=$g($1.bytes,_2l)<<3;for(var _2o=0,_2p=8;_2o<_2p;_2o++){if((($1.fcs^$1.dat)&1024)!=0){$1.fcs=$1.fcs<<1^3893}else{$1.fcs=$1.fcs<<1}$1.fcs=$1.fcs&2047;$1.dat=$1.dat<<1}}$1.codewords=$a(10);for(var _2x=9;_2x>=0;_2x-=1){$1.i=_2x;if($1.i==9){$1.b=636}else{$1.b=1365}for(var _31=0,_30=$1.binval.length-2;_31<=_30;_31+=1){$1.j=_31;var _32=$1.binval;var _33=$1.j;$p(_32,_33+1,$f($g(_32,_33+1)+$g($1.binval,$1.j)%$1.b*10));$p($1.binval,$1.j,~~($g($1.binval,$1.j)/$1.b))}$p($1.codewords,$1.i,$g($1.binval,$1.binval.length-1)%$1.b);var _3L=$1.binval;var _3M=$1.binval;$p(_3L,_3M.length-1,~~($g(_3L,_3M.length-1)/$1.b))}$p($1.codewords,9,$g($1.codewords,9)*2);if(($1.fcs&1024)!=0){$p($1.codewords,0,$f($g($1.codewords,0)+659))}$1.tab513=$a([31,7936,47,7808,55,7552,59,7040,61,6016,62,3968,79,7744,87,7488,91,6976,93,5952,94,3904,103,7360,107,6848,109,5824,110,3776,115,6592,117,5568,118,3520,121,5056,122,3008,124,1984,143,7712,151,7456,155,6944,157,5920,158,3872,167,7328,171,6816,173,5792,174,3744,179,6560,181,5536,182,3488,185,5024,186,2976,188,1952,199,7264,203,6752,205,5728,206,3680,211,6496,213,5472,214,3424,217,4960,218,2912,220,1888,227,6368,229,5344,230,3296,233,4832,234,2784,236,1760,241,4576,242,2528,244,1504,248,992,271,7696,279,7440,283,6928,285,5904,286,3856,295,7312,299,6800,301,5776,302,3728,307,6544,309,5520,310,3472,313,5008,314,2960,316,1936,327,7248,331,6736,333,5712,334,3664,339,6480,341,5456,342,3408,345,4944,346,2896,348,1872,355,6352,357,5328,358,3280,361,4816,362,2768,364,1744,369,4560,370,2512,372,1488,376,976,391,7216,395,6704,397,5680,398,3632,403,6448,405,5424,406,3376,409,4912,410,2864,412,1840,419,6320,421,5296,422,3248,425,4784,426,2736,428,1712,433,4528,434,2480,436,1456,440,944,451,6256,453,5232,454,3184,457,4720,458,2672,460,1648,465,4464,466,2416,468,1392,472,880,481,4336,482,2288,484,1264,488,752,527,7688,535,7432,539,6920,541,5896,542,3848,551,7304,555,6792,557,5768,558,3720,563,6536,565,5512,566,3464,569,5e3,570,2952,572,1928,583,7240,587,6728,589,5704,590,3656,595,6472,597,5448,598,3400,601,4936,602,2888,604,1864,611,6344,613,5320,614,3272,617,4808,618,2760,620,1736,625,4552,626,2504,628,1480,632,968,647,7208,651,6696,653,5672,654,3624,659,6440,661,5416,662,3368,665,4904,666,2856,668,1832,675,6312,677,5288,678,3240,681,4776,682,2728,684,1704,689,4520,690,2472,692,1448,696,936,707,6248,709,5224,710,3176,713,4712,714,2664,716,1640,721,4456,722,2408,724,1384,728,872,737,4328,738,2280,740,1256,775,7192,779,6680,781,5656,782,3608,787,6424,789,5400,790,3352,793,4888,794,2840,796,1816,803,6296,805,5272,806,3224,809,4760,810,2712,812,1688,817,4504,818,2456,820,1432,824,920,835,6232,837,5208,838,3160,841,4696,842,2648,844,1624,849,4440,850,2392,852,1368,865,4312,866,2264,868,1240,899,6200,901,5176,902,3128,905,4664,906,2616,908,1592,913,4408,914,2360,916,1336,929,4280,930,2232,932,1208,961,4216,962,2168,964,1144,1039,7684,1047,7428,1051,6916,1053,5892,1054,3844,1063,7300,1067,6788,1069,5764,1070,3716,1075,6532,1077,5508,1078,3460,1081,4996,1082,2948,1084,1924,1095,7236,1099,6724,1101,5700,1102,3652,1107,6468,1109,5444,1110,3396,1113,4932,1114,2884,1116,1860,1123,6340,1125,5316,1126,3268,1129,4804,1130,2756,1132,1732,1137,4548,1138,2500,1140,1476,1159,7204,1163,6692,1165,5668,1166,3620,1171,6436,1173,5412,1174,3364,1177,4900,1178,2852,1180,1828,1187,6308,1189,5284,1190,3236,1193,4772,1194,2724,1196,1700,1201,4516,1202,2468,1204,1444,1219,6244,1221,5220,1222,3172,1225,4708,1226,2660,1228,1636,1233,4452,1234,2404,1236,1380,1249,4324,1250,2276,1287,7188,1291,6676,1293,5652,1294,3604,1299,6420,1301,5396,1302,3348,1305,4884,1306,2836,1308,1812,1315,6292,1317,5268,1318,3220,1321,4756,1322,2708,1324,1684,1329,4500,1330,2452,1332,1428,1347,6228,1349,5204,1350,3156,1353,4692,1354,2644,1356,1620,1361,4436,1362,2388,1377,4308,1378,2260,1411,6196,1413,5172,1414,3124,1417,4660,1418,2612,1420,1588,1425,4404,1426,2356,1441,4276,1442,2228,1473,4212,1474,2164,1543,7180,1547,6668,1549,5644,1550,3596,1555,6412,1557,5388,1558,3340,1561,4876,1562,2828,1564,1804,1571,6284,1573,5260,1574,3212,1577,4748,1578,2700,1580,1676,1585,4492,1586,2444,1603,6220,1605,5196,1606,3148,1609,4684,1610,2636,1617,4428,1618,2380,1633,4300,1634,2252,1667,6188,1669,5164,1670,3116,1673,4652,1674,2604,1681,4396,1682,2348,1697,4268,1698,2220,1729,4204,1730,2156,1795,6172,1797,5148,1798,3100,1801,4636,1802,2588,1809,4380,1810,2332,1825,4252,1826,2204,1857,4188,1858,2140,1921,4156,1922,2108,2063,7682,2071,7426,2075,6914,2077,5890,2078,3842,2087,7298,2091,6786,2093,5762,2094,3714,2099,6530,2101,5506,2102,3458,2105,4994,2106,2946,2119,7234,2123,6722,2125,5698,2126,3650,2131,6466,2133,5442,2134,3394,2137,4930,2138,2882,2147,6338,2149,5314,2150,3266,2153,4802,2154,2754,2161,4546,2162,2498,2183,7202,2187,6690,2189,5666,2190,3618,2195,6434,2197,5410,2198,3362,2201,4898,2202,2850,2211,6306,2213,5282,2214,3234,2217,4770,2218,2722,2225,4514,2226,2466,2243,6242,2245,5218,2246,3170,2249,4706,2250,2658,2257,4450,2258,2402,2273,4322,2311,7186,2315,6674,2317,5650,2318,3602,2323,6418,2325,5394,2326,3346,2329,4882,2330,2834,2339,6290,2341,5266,2342,3218,2345,4754,2346,2706,2353,4498,2354,2450,2371,6226,2373,5202,2374,3154,2377,4690,2378,2642,2385,4434,2401,4306,2435,6194,2437,5170,2438,3122,2441,4658,2442,2610,2449,4402,2465,4274,2497,4210,2567,7178,2571,6666,2573,5642,2574,3594,2579,6410,2581,5386,2582,3338,2585,4874,2586,2826,2595,6282,2597,5258,2598,3210,2601,4746,2602,2698,2609,4490,2627,6218,2629,5194,2630,3146,2633,4682,2641,4426,2657,4298,2691,6186,2693,5162,2694,3114,2697,4650,2705,4394,2721,4266,2753,4202,2819,6170,2821,5146,2822,3098,2825,4634,2833,4378,2849,4250,2881,4186,2945,4154,3079,7174,3083,6662,3085,5638,3086,3590,3091,6406,3093,5382,3094,3334,3097,4870,3107,6278,3109,5254,3110,3206,3113,4742,3121,4486,3139,6214,3141,5190,3145,4678,3153,4422,3169,4294,3203,6182,3205,5158,3209,4646,3217,4390,3233,4262,3265,4198,3331,6166,3333,5142,3337,4630,3345,4374,3361,4246,3393,4182,3457,4150,3587,6158,3589,5134,3593,4622,3601,4366,3617,4238,3649,4174,3713,4142,3841,4126,4111,7681,4119,7425,4123,6913,4125,5889,4135,7297,4139,6785,4141,5761,4147,6529,4149,5505,4153,4993,4167,7233,4171,6721,4173,5697,4179,6465,4181,5441,4185,4929,4195,6337,4197,5313,4201,4801,4209,4545,4231,7201,4235,6689,4237,5665,4243,6433,4245,5409,4249,4897,4259,6305,4261,5281,4265,4769,4273,4513,4291,6241,4293,5217,4297,4705,4305,4449,4359,7185,4363,6673,4365,5649,4371,6417,4373,5393,4377,4881,4387,6289,4389,5265,4393,4753,4401,4497,4419,6225,4421,5201,4425,4689,4483,6193,4485,5169,4489,4657,4615,7177,4619,6665,4621,5641,4627,6409,4629,5385,4633,4873,4643,6281,4645,5257,4649,4745,4675,6217,4677,5193,4739,6185,4741,5161,4867,6169,4869,5145,5127,7173,5131,6661,5133,5637,5139,6405,5141,5381,5155,6277,5157,5253,5187,6213,5251,6181,5379,6165,5635,6157,6151,7171,6155,6659,6163,6403,6179,6275,6211,5189,4681,4433,4321,3142,2634,2386,2274,1612,1364,1252,856,744,496]);$1.tab213=$a([3,6144,5,5120,6,3072,9,4608,10,2560,12,1536,17,4352,18,2304,20,1280,24,768,33,4224,34,2176,36,1152,40,640,48,384,65,4160,66,2112,68,1088,72,576,80,320,96,192,129,4128,130,2080,132,1056,136,544,144,288,257,4112,258,2064,260,1040,264,528,513,4104,514,2056,516,1032,1025,4100,1026,2052,2049,4098,4097,2050,1028,520,272,160]);$1.chars=$a(10);for(var _3Z=0;_3Z<=9;_3Z+=1){$1.i=_3Z;var _3c=$g($1.codewords,$1.i);$k[$j++]=_3c;if(_3c<=1286){var _3f=$g($1.tab513,$k[--$j]);$k[$j++]=_3f}else{var _3i=$g($1.tab213,$f($k[--$j]-1287));$k[$j++]=_3i}$p($1.chars,$1.i,$k[--$j])}for(var _3m=9;_3m>=0;_3m-=1){$1.i=_3m;if((~~Math.pow(2,$1.i)&$1.fcs)!=0){$p($1.chars,$1.i,$g($1.chars,$1.i)^8191)}}$1.barmap=$a([7,2,4,3,1,10,0,0,9,12,2,8,5,5,6,11,8,9,3,1,0,1,5,12,2,5,1,8,4,4,9,11,6,3,8,10,3,9,7,6,5,11,1,4,8,5,2,12,9,10,0,2,7,1,6,7,3,6,4,9,0,3,8,6,6,4,2,7,1,1,9,9,7,10,5,2,4,0,3,8,6,2,0,4,8,11,1,0,9,8,3,12,2,6,7,7,5,1,4,10,1,12,6,9,7,3,8,0,5,8,9,7,4,6,2,10,3,4,0,5,8,4,5,7,7,11,1,9,6,0,9,6,0,6,4,8,2,1,3,2,5,9,8,12,4,11,6,1,9,5,7,4,3,3,1,2,0,7,2,0,1,3,4,1,6,10,3,5,8,7,9,4,2,11,5,6,0,8,7,12,4,2,8,1,5,10,3,0,9,3,0,9,6,5,2,4,7,8,1,7,5,0,4,5,2,3,0,10,6,12,9,2,3,11,1,6,8,8,7,9,5,4,0,11,1,5,2,2,9,1,4,12,8,3,6,6,7,0,3,7,4,7,7,5,0,12,1,11,2,9,9,0,6,8,5,3,3,10,8,2]);$1.bbs=$a(65);$1.bhs=$a(65);for(var _3x=0;_3x<=64;_3x+=1){$1.i=_3x;$1.dec=($g($1.chars,$g($1.barmap,$1.i*4))&~~Math.pow(2,$g($1.barmap,$1.i*4+1)))!=0;$1.asc=($g($1.chars,$g($1.barmap,$1.i*4+2))&~~Math.pow(2,$g($1.barmap,$1.i*4+3)))!=0;if(!$1.dec&&!$1.asc){$p($1.bbs,$1.i,3*$1.height/8);$p($1.bhs,$1.i,2*$1.height/8)}if(!$1.dec&&$1.asc){$p($1.bbs,$1.i,3*$1.height/8);$p($1.bhs,$1.i,5*$1.height/8)}if($1.dec&&!$1.asc){$p($1.bbs,$1.i,0*$1.height/8);$p($1.bhs,$1.i,5*$1.height/8)}if($1.dec&&$1.asc){$p($1.bbs,$1.i,0*$1.height/8);$p($1.bhs,$1.i,8*$1.height/8)}}$k[$j++]=Infinity;var _4k=$1.bbs;var _4l=$1.bhs;$k[$j++]=Infinity;for(var _4n=0,_4o=$1.bhs.length-1;_4n<_4o;_4n++){$k[$j++]=1.44;$k[$j++]=1.872}$k[$j++]=1.44;var _4p=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="bbs";$k[$j++]=_4k;$k[$j++]="bhs";$k[$j++]=_4l;$k[$j++]="sbs";$k[$j++]=_4p;$k[$j++]="txt";$k[$j++]=$1.txt;$k[$j++]="textxalign";$k[$j++]="left";$k[$j++]="textfont";$k[$j++]="OCR-B";$k[$j++]="textyoffset";$k[$j++]=1;$k[$j++]="textxoffset";$k[$j++]=-.3;$k[$j++]="opt";$k[$j++]=$1.options;var _4s=$d();$k[$j++]=_4s;if(!$1.dontdraw){$0.renlinear()}};$0.postnet=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.validatecheck=false;$1.includecheckintext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.height=.125;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$k[$j++]="barlen";$k[$j++]=$1.barcode.length;if($1.validatecheck){var _B=$k[--$j];$k[$j++]=$f(_B-1)}var _C=$k[--$j];$1[$k[--$j]]=_C;if($1.barlen!=5&&$1.barlen!=9&&$1.barlen!=11){$k[$j++]="bwipp.postnetBadLength";$k[$j++]="USPS POSTNET must be 5, 9 or 11 digits excluding check digit";$0.raiseerror()}$F($1.barcode,function(){var _I=$k[--$j];if(_I<48||_I>57){$k[$j++]="bwipp.postnetBadCharacter";$k[$j++]="USPS POSTNET must contain only digits";$0.raiseerror()}});$1.barchars="0123456789";$1.checksum=0;for(var _L=0,_K=$f($1.barlen-1);_L<=_K;_L+=1){$1.i=_L;$1.checksum=$f($1.checksum+$f($g($1.barcode,$1.i)-48))}$1.checksum=$f(10-$1.checksum%10)%10;if($1.validatecheck){if($g($1.barcode,$1.barlen)!=$g($1.barchars,$1.checksum)){$k[$j++]="bwipp.postnetBadCheckDigit";$k[$j++]="Incorrect USPS POSTNET check digit provided";$0.raiseerror()}$1.barcode=$G($1.barcode,0,$1.barlen)}$1.encs=$a(["55222","22255","22525","22552","25225","25252","25522","52225","52252","52522","5","5"]);$1.bhs=$a($f($1.barlen*5+7));$1.txt=$a($f($1.barlen+1));$1.enc=$g($1.encs,10);$1.heights=$a($1.enc.length);for(var _m=0,_l=$1.enc.length-1;_m<=_l;_m+=1){$1.j=_m;$p($1.heights,$1.j,~~$z($G($1.enc,$1.j,1))*$1.height/5)}$P($1.bhs,0,$1.heights);for(var _x=0,_w=$f($1.barlen-1);_x<=_w;_x+=1){$1.i=_x;$1.enc=$g($1.encs,$f($g($1.barcode,$1.i)-48));$1.heights=$a($1.enc.length);for(var _17=0,_16=$1.enc.length-1;_17<=_16;_17+=1){$1.j=_17;$p($1.heights,$1.j,~~$z($G($1.enc,$1.j,1))*$1.height/5)}$P($1.bhs,$1.i*5+1,$1.heights);$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),($1.i*5+1)*3.312,$1.textyoffset,$1.textfont,$1.textsize]))}$1.enc=$g($1.encs,$1.checksum);$1.heights=$a($1.enc.length);for(var _1Y=0,_1X=$1.enc.length-1;_1Y<=_1X;_1Y+=1){$1.j=_1Y;$p($1.heights,$1.j,~~$z($G($1.enc,$1.j,1))*$1.height/5)}$P($1.bhs,$f($1.barlen*5+1),$1.heights);if($1.includecheckintext){$p($1.txt,$1.barlen,$a([$G($1.barchars,$1.checksum,1),$f($1.barlen*5+1)*3.312,$1.textyoffset,$1.textfont,$1.textsize]))}else{$p($1.txt,$1.barlen,$a([" ",$f($1.barlen*5+1)*72/25,$1.textyoffset,$1.textfont,$1.textsize]))}$1.enc=$g($1.encs,11);$1.heights=$a($1.enc.length);for(var _26=0,_25=$1.enc.length-1;_26<=_25;_26+=1){$1.j=_26;$p($1.heights,$1.j,~~$z($G($1.enc,$1.j,1))*$1.height/5)}$P($1.bhs,$f($1.barlen*5+6),$1.heights);$k[$j++]=Infinity;var _2G=$1.bhs;$k[$j++]=Infinity;for(var _2I=0,_2J=$1.bhs.length;_2I<_2J;_2I++){$k[$j++]=0}var _2K=$a();$k[$j++]=Infinity;for(var _2M=0,_2N=$1.bhs.length-1;_2M<_2N;_2M++){$k[$j++]=1.44;$k[$j++]=1.872}$k[$j++]=1.44;var _2O=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="bhs";$k[$j++]=_2G;$k[$j++]="bbs";$k[$j++]=_2K;$k[$j++]="sbs";$k[$j++]=_2O;if($1.includetext){$k[$j++]="txt";$k[$j++]=$1.txt}$k[$j++]="opt";$k[$j++]=$1.options;var _2S=$d();$k[$j++]=_2S;if(!$1.dontdraw){$0.renlinear()}};$0.planet=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.validatecheck=false;$1.includecheckintext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.height=.125;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$k[$j++]="barlen";$k[$j++]=$1.barcode.length;if($1.validatecheck){var _B=$k[--$j];$k[$j++]=$f(_B-1)}var _C=$k[--$j];$1[$k[--$j]]=_C;if($1.barlen!=11&&$1.barlen!=13){$k[$j++]="bwipp.planetBadLength";$k[$j++]="USPS PLANET must be 11 or 13 digits excluding check digit";$0.raiseerror()}$F($1.barcode,function(){var _H=$k[--$j];if(_H<48||_H>57){$k[$j++]="bwipp.planetBadCharacter";$k[$j++]="USPS PLANET must contain only digits";$0.raiseerror()}});$1.barchars="0123456789";$1.checksum=0;for(var _K=0,_J=$f($1.barlen-1);_K<=_J;_K+=1){$1.i=_K;$1.checksum=$f($1.checksum+$f($g($1.barcode,$1.i)-48))}$1.checksum=$f(10-$1.checksum%10)%10;if($1.validatecheck){if($g($1.barcode,$1.barlen)!=$g($1.barchars,$1.checksum)){$k[$j++]="bwipp.planetBadCheckDigit";$k[$j++]="Incorrect USPS PLANET check digit provided";$0.raiseerror()}$1.barcode=$G($1.barcode,0,$1.barlen)}$1.encs=$a(["22555","55522","55252","55225","52552","52525","52255","25552","25525","25255","5","5"]);$1.bhs=$a($f($1.barlen*5+7));$1.txt=$a($f($1.barlen+1));$1.enc=$g($1.encs,10);$1.heights=$a($1.enc.length);for(var _l=0,_k=$1.enc.length-1;_l<=_k;_l+=1){$1.j=_l;$p($1.heights,$1.j,~~$z($G($1.enc,$1.j,1))*$1.height/5)}$P($1.bhs,0,$1.heights);for(var _w=0,_v=$f($1.barlen-1);_w<=_v;_w+=1){$1.i=_w;$1.enc=$g($1.encs,$f($g($1.barcode,$1.i)-48));$1.heights=$a($1.enc.length);for(var _16=0,_15=$1.enc.length-1;_16<=_15;_16+=1){$1.j=_16;$p($1.heights,$1.j,~~$z($G($1.enc,$1.j,1))*$1.height/5)}$P($1.bhs,$1.i*5+1,$1.heights);$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),($1.i*5+1)*3.312,$1.textyoffset,$1.textfont,$1.textsize]))}$1.enc=$g($1.encs,$1.checksum);$1.heights=$a($1.enc.length);for(var _1X=0,_1W=$1.enc.length-1;_1X<=_1W;_1X+=1){$1.j=_1X;$p($1.heights,$1.j,~~$z($G($1.enc,$1.j,1))*$1.height/5)}$P($1.bhs,$f($1.barlen*5+1),$1.heights);if($1.includecheckintext){$p($1.txt,$1.barlen,$a([$G($1.barchars,$1.checksum,1),$f($1.barlen*5+1)*3.312,$1.textyoffset,$1.textfont,$1.textsize]))}else{$p($1.txt,$1.barlen,$a([" ",$f($1.barlen*5+1)*72/25,$1.textyoffset,$1.textfont,$1.textsize]))}$1.enc=$g($1.encs,11);$1.heights=$a($1.enc.length);for(var _25=0,_24=$1.enc.length-1;_25<=_24;_25+=1){$1.j=_25;$p($1.heights,$1.j,~~$z($G($1.enc,$1.j,1))*$1.height/5)}$P($1.bhs,$f($1.barlen*5+6),$1.heights);$k[$j++]=Infinity;var _2F=$1.bhs;$k[$j++]=Infinity;for(var _2H=0,_2I=$1.bhs.length;_2H<_2I;_2H++){$k[$j++]=0}var _2J=$a();$k[$j++]=Infinity;for(var _2L=0,_2M=$1.bhs.length-1;_2L<_2M;_2L++){$k[$j++]=1.44;$k[$j++]=1.872}$k[$j++]=1.44;var _2N=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="bhs";$k[$j++]=_2F;$k[$j++]="bbs";$k[$j++]=_2J;$k[$j++]="sbs";$k[$j++]=_2N;if($1.includetext){$k[$j++]="txt";$k[$j++]=$1.txt}$k[$j++]="opt";$k[$j++]=$1.options;var _2R=$d();$k[$j++]=_2R;if(!$1.dontdraw){$0.renlinear()}};$0.royalmail=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.validatecheck=false;$1.includecheckintext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.height=.175;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.barchars="ZUVWXY501234B6789AHCDEFGNIJKLMTOPQRS";$1.charvals=new Map;for(var _9=0;_9<=35;_9+=1){$p($1.charvals,$G($1.barchars,_9,1),_9)}for(var _F=0,_E=$1.barcode.length-1;_F<=_E;_F+=1){var _J=$g($1.charvals,$G($1.barcode,_F,1))!==undefined;if(!_J){$k[$j++]="bwipp.royalmailBadCharacter";$k[$j++]="RM4SCC must contain only capital letters and digits";$0.raiseerror()}}$k[$j++]="barlen";$k[$j++]=$1.barcode.length;if($1.validatecheck){var _M=$k[--$j];$k[$j++]=$f(_M-1)}var _N=$k[--$j];$1[$k[--$j]]=_N;$1.checksumrow=0;$1.checksumcol=0;for(var _R=0,_Q=$f($1.barlen-1);_R<=_Q;_R+=1){$1.i=_R;$1.indx=$g($1.charvals,$G($1.barcode,$1.i,1));$1.checksumrow=$1.checksumrow+~~($1.indx/6);$1.checksumcol=$f($1.checksumcol+$1.indx%6)}$1.checksum=$f($1.checksumrow%6*6+$1.checksumcol%6);if($1.validatecheck){if($g($1.barcode,$1.barlen)!=$g($1.barchars,$1.checksum)){$k[$j++]="bwipp.royalmailBadCheckDigit";$k[$j++]="Incorrect RM4SCC check digit provided";$0.raiseerror()}$1.barcode=$G($1.barcode,0,$1.barlen)}$1.encs=$a(["3300","2211","2301","2310","3201","3210","1122","0033","0123","0132","1023","1032","1302","0213","0303","0312","1203","1212","1320","0231","0321","0330","1221","1230","3102","2013","2103","2112","3003","3012","3120","2031","2121","2130","3021","3030","2","3"]);$1.encstr=$s($f($1.barlen*4+6));$1.txt=$a($f($1.barlen+1));$P($1.encstr,0,$g($1.encs,36));for(var _x=0,_w=$f($1.barlen-1);_x<=_w;_x+=1){$1.i=_x;$1.indx=$g($1.charvals,$G($1.barcode,$1.i,1));$P($1.encstr,$1.i*4+1,$g($1.encs,$1.indx));$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),($1.i*4+1)*3.312,$1.textyoffset,$1.textfont,$1.textsize]))}$P($1.encstr,$f($1.barlen*4+1),$g($1.encs,$1.checksum));if($1.includecheckintext){$p($1.txt,$1.barlen,$a([$G($1.barchars,$1.checksum,1),$f($1.barlen*4+1)*3.312,$1.textyoffset,$1.textfont,$1.textsize]))}else{$p($1.txt,$1.barlen,$a([" ",$f($1.barlen*4+1)*3.312,$1.textyoffset,$1.textfont,$1.textsize]))}$P($1.encstr,$f($1.barlen*4+5),$g($1.encs,37));$1.bbs=$a($1.encstr.length);$1.bhs=$a($1.encstr.length);for(var _1p=0,_1o=$1.encstr.length-1;_1p<=_1o;_1p+=1){$1.i=_1p;$1.enc=$G($1.encstr,$1.i,1);if($eq($1.enc,"0")){$p($1.bbs,$1.i,3*$1.height/8);$p($1.bhs,$1.i,2*$1.height/8)}if($eq($1.enc,"1")){$p($1.bbs,$1.i,0*$1.height/8);$p($1.bhs,$1.i,5*$1.height/8)}if($eq($1.enc,"2")){$p($1.bbs,$1.i,3*$1.height/8);$p($1.bhs,$1.i,5*$1.height/8)}if($eq($1.enc,"3")){$p($1.bbs,$1.i,0*$1.height/8);$p($1.bhs,$1.i,8*$1.height/8)}}$k[$j++]=Infinity;var _2L=$1.bbs;var _2M=$1.bhs;$k[$j++]=Infinity;for(var _2O=0,_2P=$1.bhs.length-1;_2O<_2P;_2O++){$k[$j++]=1.44;$k[$j++]=1.872}$k[$j++]=1.44;var _2Q=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="bbs";$k[$j++]=_2L;$k[$j++]="bhs";$k[$j++]=_2M;$k[$j++]="sbs";$k[$j++]=_2Q;if($1.includetext){$k[$j++]="txt";$k[$j++]=$1.txt}$k[$j++]="opt";$k[$j++]=$1.options;var _2U=$d();$k[$j++]=_2U;if(!$1.dontdraw){$0.renlinear()}};$0.auspost=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.height=.175;$1.custinfoenc="character";$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.encs=$a(["000","001","002","010","011","012","020","021","022","100","101","102","110","111","112","120","121","122","200","201","202","210","211","212","220","221","222","300","301","302","310","311","312","320","321","322","023","030","031","032","033","103","113","123","130","131","132","133","203","213","223","230","231","232","233","303","313","323","330","331","332","333","003","013","00","01","02","10","11","12","20","21","22","30","13","3"]);$1.barchars="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz #";$1.barlen=$1.barcode.length;if($eq($G($1.barcode,0,2),"11")){$k[$j++]=37}if($eq($G($1.barcode,0,2),"45")){$k[$j++]=37}if($eq($G($1.barcode,0,2),"59")){$k[$j++]=52}if($eq($G($1.barcode,0,2),"62")){$k[$j++]=67}$1.encstr=$s($k[--$j]);$1.txt=$a($1.barlen-2);$P($1.encstr,0,$g($1.encs,74));for(var _Q=0;_Q<=1;_Q+=1){$1.i=_Q;$P($1.encstr,$1.i*2+2,$g($1.encs,~~$z($G($1.barcode,$1.i,1))+64))}for(var _Y=2;_Y<=9;_Y+=1){$1.i=_Y;$P($1.encstr,$1.i*2+2,$g($1.encs,~~$z($G($1.barcode,$1.i,1))+64));$p($1.txt,$1.i-2,$a([$G($1.barcode,$1.i,1),(($1.i-2)*2+6)*3.312,$1.textyoffset,$1.textfont,$1.textsize]))}if($eq($1.custinfoenc,"numeric")){for(var _t=0,_s=$1.barlen-11;_t<=_s;_t+=1){$1.i=_t;$P($1.encstr,$1.i*2+22,$g($1.encs,~~$z($G($1.barcode,$1.i+10,1))+64));$p($1.txt,$1.i+8,$a([$G($1.barcode,$1.i+10,1),($1.i*2+22)*3.312,$1.textyoffset,$1.textfont,$1.textsize]))}$1.ciflen=($1.barlen-10)*2}else{for(var _1E=0,_1D=$1.barlen-11;_1E<=_1D;_1E+=1){$1.i=_1E;$x($1.barchars,$G($1.barcode,$1.i+10,1));$j--;$1.indx=$k[--$j].length;$j-=2;$1.enc=$g($1.encs,$1.indx);$P($1.encstr,$1.i*3+22,$1.enc);$p($1.txt,$1.i+8,$a([$G($1.barcode,$1.i+10,1),($1.i*3+22)*3.312,$1.textyoffset,$1.textfont,$1.textsize]))}$1.ciflen=($1.barlen-10)*3}for(var _1e=22+$1.ciflen,_1d=$1.encstr.length-14;_1e<=_1d;_1e+=1){$P($1.encstr,_1e,$g($1.encs,75))}$1.rstable=$a(64*64);$k[$j++]=$1.rstable;$k[$j++]=0;$k[$j++]=Infinity;for(var _1k=0,_1l=64;_1k<_1l;_1k++){$k[$j++]=0}var _1m=$a();var _1n=$k[--$j];$P($k[--$j],_1n,_1m);$k[$j++]=$1.rstable;$k[$j++]=64;$k[$j++]=Infinity;for(var _1q=0;_1q<=63;_1q+=1){$k[$j++]=_1q}var _1r=$a();var _1s=$k[--$j];$P($k[--$j],_1s,_1r);$1.prev=1;for(var _1u=0,_1v=64;_1u<_1v;_1u++){$1.next=$1.prev<<1;if(($1.next&64)!=0){$1.next=$1.next^67}for(var _1z=0;_1z<=63;_1z+=1){$1.j=_1z;$1.nextcell=function(){$k[$j++]=$1.rstable;$k[$j++]=64*$1.next+$1.j};$1.nextcell();var _27=$k[--$j];$p($k[--$j],_27,$g($1.rstable,64*$1.prev+$1.j)<<1);$1.nextcell();var _29=$k[--$j];if(($g($k[--$j],_29)&64)!=0){$1.nextcell();$1.nextcell();var _2C=$k[--$j];var _2E=$g($k[--$j],_2C);var _2F=$k[--$j];$p($k[--$j],_2F,_2E^67)}}$1.prev=$1.next}$1.rscodes=$a(~~(($1.encstr.length-16)/3)+4);$k[$j++]=$1.rscodes;$k[$j++]=0;$k[$j++]=Infinity;for(var _2L=0,_2M=4;_2L<_2M;_2L++){$k[$j++]=0}var _2N=$a();var _2O=$k[--$j];$P($k[--$j],_2O,_2N);for(var _2S=2,_2R=$1.encstr.length-16;_2S<=_2R;_2S+=3){$1.i=_2S;$p($1.rscodes,$1.rscodes.length-~~(($1.i-2)/3)-1,~~$z($G($1.encstr,$1.i,1))*16+~~$z($G($1.encstr,$1.i+1,1))*4+~~$z($G($1.encstr,$1.i+2,1)))}for(var _2g=$1.rscodes.length-5;_2g>=0;_2g-=1){$1.i=_2g;for(var _2h=0;_2h<=4;_2h+=1){$1.j=_2h;$p($1.rscodes,$1.i+$1.j,$xo($g($1.rscodes,$1.i+$1.j),$g($1.rstable,$f(64*$g($a([48,17,29,30,1]),$1.j)+$g($1.rscodes,$1.i+4)))))}}$1.checkcode=$Z($s(12),"000000000000");for(var _2z=0;_2z<=3;_2z+=1){$1.i=_2z;$1.enc=$R($s(3),$g($1.rscodes,3-$1.i),4);$P($1.checkcode,$1.i*3+(3-$1.enc.length),$1.enc)}$P($1.encstr,$1.encstr.length-14,$1.checkcode);$P($1.encstr,$1.encstr.length-2,$g($1.encs,74));$1.bbs=$a($1.encstr.length);$1.bhs=$a($1.encstr.length);for(var _3M=0,_3L=$1.encstr.length-1;_3M<=_3L;_3M+=1){$1.i=_3M;$1.enc=$G($1.encstr,$1.i,1);if($eq($1.enc,"0")){$p($1.bbs,$1.i,0*$1.height/8);$p($1.bhs,$1.i,8*$1.height/8)}if($eq($1.enc,"1")){$p($1.bbs,$1.i,3*$1.height/8);$p($1.bhs,$1.i,5*$1.height/8)}if($eq($1.enc,"2")){$p($1.bbs,$1.i,0*$1.height/8);$p($1.bhs,$1.i,5*$1.height/8)}if($eq($1.enc,"3")){$p($1.bbs,$1.i,3*$1.height/8);$p($1.bhs,$1.i,2*$1.height/8)}}$k[$j++]=Infinity;var _3s=$1.bbs;var _3t=$1.bhs;$k[$j++]=Infinity;for(var _3v=0,_3w=$1.bhs.length-1;_3v<_3w;_3v++){$k[$j++]=1.44;$k[$j++]=1.872}$k[$j++]=1.44;var _3x=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="bbs";$k[$j++]=_3s;$k[$j++]="bhs";$k[$j++]=_3t;$k[$j++]="sbs";$k[$j++]=_3x;if($1.includetext){$k[$j++]="txt";$k[$j++]=$1.txt}$k[$j++]="opt";$k[$j++]=$1.options;var _41=$d();$k[$j++]=_41;if(!$1.dontdraw){$0.renlinear()}};$0.kix=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.height=.175;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.encs=$a(["0033","0123","0132","1023","1032","1122","0213","0303","0312","1203","1212","1302","0231","0321","0330","1221","1230","1320","2013","2103","2112","3003","3012","3102","2031","2121","2130","3021","3030","3120","2211","2301","2310","3201","3210","3300"]);$1.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";$1.charvals=new Map;for(var _A=0;_A<=35;_A+=1){$p($1.charvals,$G($1.barchars,_A,1),_A)}for(var _G=0,_F=$1.barcode.length-1;_G<=_F;_G+=1){var _K=$g($1.charvals,$G($1.barcode,_G,1))!==undefined;if(!_K){$k[$j++]="bwipp.kixBadCharacter";$k[$j++]="KIX must contain only capital letters and digits";$0.raiseerror()}}$1.barlen=$1.barcode.length;$1.encstr=$s($1.barlen*4);$1.txt=$a($1.barlen);for(var _S=0,_R=$1.barlen-1;_S<=_R;_S+=1){$1.i=_S;$1.indx=$g($1.charvals,$G($1.barcode,$1.i,1));$P($1.encstr,$1.i*4,$g($1.encs,$1.indx));$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),$1.i*4*3.312,$1.textyoffset,$1.textfont,$1.textsize]))}$1.bbs=$a($1.encstr.length);$1.bhs=$a($1.encstr.length);for(var _t=0,_s=$1.encstr.length-1;_t<=_s;_t+=1){$1.i=_t;$1.enc=$G($1.encstr,$1.i,1);if($eq($1.enc,"0")){$p($1.bbs,$1.i,3*$1.height/8);$p($1.bhs,$1.i,2*$1.height/8)}if($eq($1.enc,"1")){$p($1.bbs,$1.i,0*$1.height/8);$p($1.bhs,$1.i,5*$1.height/8)}if($eq($1.enc,"2")){$p($1.bbs,$1.i,3*$1.height/8);$p($1.bhs,$1.i,5*$1.height/8)}if($eq($1.enc,"3")){$p($1.bbs,$1.i,0*$1.height/8);$p($1.bhs,$1.i,8*$1.height/8)}}$k[$j++]=Infinity;var _1P=$1.bbs;var _1Q=$1.bhs;$k[$j++]=Infinity;for(var _1S=0,_1T=$1.bhs.length-1;_1S<_1T;_1S++){$k[$j++]=1.44;$k[$j++]=1.872}$k[$j++]=1.44;var _1U=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="bbs";$k[$j++]=_1P;$k[$j++]="bhs";$k[$j++]=_1Q;$k[$j++]="sbs";$k[$j++]=_1U;if($1.includetext){$k[$j++]="txt";$k[$j++]=$1.txt}$k[$j++]="opt";$k[$j++]=$1.options;var _1Y=$d();$k[$j++]=_1Y;if(!$1.dontdraw){$0.renlinear()}};$0.japanpost=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.includecheckintext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.height=.175;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.encs=$a(["300","330","312","132","321","303","123","231","213","033","030","120","102","210","012","201","021","003","333","31","13"]);$1.barchars="0123456789-ABCDEFGHIJKLMNOPQRSTUVWXYZ";$1.barlen=$1.barcode.length;$1.encstr=$s((20+1)*3+4);$1.digits=$a(20);$1.txt=$a($1.barlen+1);$P($1.encstr,0,$g($1.encs,19));$1.checksum=0;$1.j=0;$1.i=0;for(var _K=0,_J=$1.barlen-1;_K<=_J;_K+=1){$1.i=_K;$x($1.barchars,$G($1.barcode,$1.i,1));$j--;$1.indx=$k[--$j].length;$j-=2;if($1.indx>=11&&$1.indx<37){if($1.j>18){break}$1.digit=~~(($1.indx-1)/10)+10;$P($1.encstr,$1.j*3+2,$g($1.encs,$1.digit));$1.checksum=$1.checksum+$1.digit;$p($1.digits,$1.j,$1.digit);$1.j=$1.j+1}if($1.j>19){break}$1.digit=0;if($1.indx==37){$1.digit=14}if($1.indx>=11&&$1.indx<37){$1.digit=($1.indx-1)%10}if($1.indx<11){$1.digit=$1.indx}$P($1.encstr,$1.j*3+2,$g($1.encs,$1.digit));$1.checksum=$1.checksum+$1.digit;$p($1.digits,$1.j,$1.digit);$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),($1.j*3+2)*3.312,$1.textyoffset,$1.textfont,$1.textsize]));$1.j=$1.j+1}for(var _19=$1.j,_18=20-1;_19<=_18;_19+=1){$1.k=_19;$P($1.encstr,$1.k*3+2,$g($1.encs,14));$1.checksum=$1.checksum+14;$p($1.digits,$1.k,14)}$1.checksum=19-$1.checksum%19;$P($1.encstr,2+20*3,$g($1.encs,$1.checksum));$P($1.encstr,2+21*3,$g($1.encs,20));$1.checkdigit=" ";if($1.includecheckintext){$1.checkdigit=$G($1.barchars,$1.checksum,1)}$p($1.txt,$1.i+1,$a([$1.checkdigit,(20*3+2)*3.312,$1.textyoffset,$1.textfont,$1.textsize]));$P($1.encstr,(20+1)*3+2,$g($1.encs,20));$1.bbs=$a(21*3+4);$1.bhs=$a($1.bbs.length);for(var _1i=0,_1h=$1.bbs.length-1;_1i<=_1h;_1i+=1){$1.i=_1i;$1.enc=$G($1.encstr,$1.i,1);$1.bunit=0;$1.hunit=0;if($eq($1.enc,"0")){$1.bunit=3;$1.hunit=2}if($eq($1.enc,"1")){$1.bunit=0;$1.hunit=5}if($eq($1.enc,"2")){$1.bunit=3;$1.hunit=5}if($eq($1.enc,"3")){$1.bunit=0;$1.hunit=8}$p($1.bbs,$1.i,$1.bunit*$1.height/8);$p($1.bhs,$1.i,$1.hunit*$1.height/8)}$k[$j++]=Infinity;var _1y=$1.bbs;var _1z=$1.bhs;$k[$j++]=Infinity;for(var _21=0,_22=$1.bhs.length-1;_21<_22;_21++){$k[$j++]=1.44;$k[$j++]=1.872}$k[$j++]=1.44;var _23=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="bbs";$k[$j++]=_1y;$k[$j++]="bhs";$k[$j++]=_1z;$k[$j++]="sbs";$k[$j++]=_23;if($1.includetext){$k[$j++]="txt";$k[$j++]=$1.txt}$k[$j++]="opt";$k[$j++]=$1.options;var _27=$d();$k[$j++]=_27;if(!$1.dontdraw){$0.renlinear()}};$0.msi=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includecheck=false;$1.includetext=false;$1.includecheckintext=false;$1.checktype="mod10";$1.badmod11=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.encs=$a(["12121212","12121221","12122112","12122121","12211212","12211221","12212112","12212121","21121212","21121221","21","121"]);$1.barchars="0123456789";$1.barlen=$1.barcode.length;$1.txtlen=$1.barlen;$1.mod10=function(){$1.code=$k[--$j];$k[$j++]=0;$k[$j++]=0;$F($1.code,function(){var _E=$k[--$j];var _F=$k[--$j];var _G=$k[--$j];$k[$j++]=$f($f(_E-48)+_F*10);$k[$j++]=_G});$j--;var _H=$k[--$j];$k[$j++]=_H*2;$k[$j++]=0;for(;;){var _I=$k[--$j];var _J=$k[--$j];var _K=~~(_J/10);$k[$j++]=$f(_I+_J%10);$k[$j++]=_K;if(_K==0){$j--;break}var _L=$k[--$j];var _M=$k[--$j];$k[$j++]=_L;$k[$j++]=_M}$k[$j++]=0;$k[$j++]=0;$F($1.code,function(){var _O=$k[--$j];var _P=$k[--$j];var _Q=$k[--$j];$k[$j++]=$f(_P+$f(_O-48));$k[$j++]=_Q});var _R=$k[--$j];var _S=$k[--$j];$k[$j++]=_R;$k[$j++]=_S;$j--;var _T=$k[--$j];var _W=$s($1.code.length+1);$P(_W,0,$1.code);$p(_W,$1.code.length,$f($f(10-$f($k[--$j]+_T)%10)%10+48));$k[$j++]=_W};$1.mod11=function(){$1.code=$k[--$j];$k[$j++]=$1.code.length-1;$F($1.code,function(){var _c=$k[--$j];var _d=$k[--$j];$k[$j++]=$f(_c-48);$k[$j++]=$f(_d%6+2);$k[$j++]=$f(_d-1)});$j--;$k[$j++]=0;for(var _f=0,_g=$1.code.length;_f<_g;_f++){var _h=$k[--$j];var _i=$k[--$j];var _j=$k[--$j];$k[$j++]=$f(_h+_j*_i)}var _l=$f(11-$k[--$j]%11)%11;$k[$j++]=_l;if(_l==10&&$1.badmod11){$j--;var _o=$s($1.code.length+2);$P(_o,0,$1.code);$P(_o,$1.code.length,"10");$k[$j++]=_o}else{var _s=$s($1.code.length+1);$P(_s,0,$1.code);$p(_s,$1.code.length,$f($k[--$j]+48));$k[$j++]=_s}};$1.ncrmod11=function(){$1.code=$k[--$j];$k[$j++]=$1.code.length-1;$F($1.code,function(){var _z=$k[--$j];var _10=$k[--$j];$k[$j++]=$f(_z-48);$k[$j++]=$f(_10%8+2);$k[$j++]=$f(_10-1)});$j--;$k[$j++]=0;for(var _12=0,_13=$1.code.length;_12<_13;_12++){var _14=$k[--$j];var _15=$k[--$j];var _16=$k[--$j];$k[$j++]=$f(_14+_16*_15)}var _18=$f(11-$k[--$j]%11)%11;$k[$j++]=_18;if(_18==10&&$1.badmod11){$j--;var _1B=$s($1.code.length+2);$P(_1B,0,$1.code);$P(_1B,$1.code.length,"10");$k[$j++]=_1B}else{var _1F=$s($1.code.length+1);$P(_1F,0,$1.code);$p(_1F,$1.code.length,$f($k[--$j]+48));$k[$j++]=_1F}};if($1.includecheck){if($eq($1.checktype,"mod10")){$k[$j++]=$1.barcode;$1.mod10()}if($eq($1.checktype,"mod1010")){$k[$j++]=$1.barcode;$1.mod10();$1.mod10()}if($eq($1.checktype,"mod11")){$k[$j++]=$1.barcode;$1.mod11()}if($eq($1.checktype,"ncrmod11")){$k[$j++]=$1.barcode;$1.ncrmod11()}if($eq($1.checktype,"mod1110")){$k[$j++]=$1.barcode;$1.mod11();$1.mod10()}if($eq($1.checktype,"ncrmod1110")){$k[$j++]=$1.barcode;$1.ncrmod11();$1.mod10()}$1.barcode=$k[--$j];$1.barlen=$1.barcode.length;if($1.includecheckintext){$1.txtlen=$1.barlen}}$1.sbs=$s($1.barlen*8+5);$1.txt=$a($1.barlen);$P($1.sbs,0,$g($1.encs,10));for(var _1j=0,_1i=$1.barlen-1;_1j<=_1i;_1j+=1){$1.i=_1j;$x($1.barchars,$G($1.barcode,$1.i,1));$j--;$1.indx=$k[--$j].length;$j-=2;$1.enc=$g($1.encs,$1.indx);$P($1.sbs,$1.i*8+2,$1.enc);$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),$1.i*12+3,$1.textyoffset,$1.textfont,$1.textsize]))}$P($1.sbs,$1.barlen*8+2,$g($1.encs,11));$k[$j++]=Infinity;$k[$j++]=Infinity;var _29=$1.sbs;for(var _2A=0,_2B=_29.length;_2A<_2B;_2A++){$k[$j++]=$g(_29,_2A)-48}var _2D=$a();$k[$j++]=Infinity;for(var _2F=0,_2G=~~(($1.sbs.length+1)/2);_2F<_2G;_2F++){$k[$j++]=$1.height}var _2I=$a();$k[$j++]=Infinity;for(var _2K=0,_2L=~~(($1.sbs.length+1)/2);_2K<_2L;_2K++){$k[$j++]=0}var _2M=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_2D;$k[$j++]="bhs";$k[$j++]=_2I;$k[$j++]="bbs";$k[$j++]=_2M;if($1.includetext){$k[$j++]="txt";$k[$j++]=$G($1.txt,0,$1.txtlen)}$k[$j++]="opt";$k[$j++]=$1.options;var _2S=$d();$k[$j++]=_2S;if(!$1.dontdraw){$0.renlinear()}};$0.plessey=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.validatecheck=false;$1.includecheckintext=false;$1.unidirectional=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$1.barchars="0123456789ABCDEF";$1.charvals=new Map;for(var _9=0;_9<=15;_9+=1){$p($1.charvals,$G($1.barchars,_9,1),_9)}for(var _F=0,_E=$1.barcode.length-1;_F<=_E;_F+=1){var _J=$g($1.charvals,$G($1.barcode,_F,1))!==undefined;if(!_J){$k[$j++]="bwipp.plesseyBadCharacter";$k[$j++]="Plessey must contain only digits and letters A B C D E F";$0.raiseerror()}}$k[$j++]="barlen";$k[$j++]=$1.barcode.length;if($1.validatecheck){var _M=$k[--$j];$k[$j++]=$f(_M-2)}var _N=$k[--$j];$1[$k[--$j]]=_N;$1.checkbits=$a($f($1.barlen*4+8));$P($1.checkbits,$1.barlen*4,$a([0,0,0,0,0,0,0,0]));for(var _W=0,_V=$f($1.barlen-1);_W<=_V;_W+=1){$1.i=_W;$1.indx=$g($1.charvals,$G($1.barcode,$1.i,1));$P($1.checkbits,$1.i*4,$a([$1.indx&1,$1.indx>>>1&1,$1.indx>>>2&1,$1.indx>>>3]))}$1.checksalt=$a([1,1,1,1,0,1,0,0,1]);for(var _m=0,_l=$f($1.barlen*4-1);_m<=_l;_m+=1){$1.i=_m;if($g($1.checkbits,$1.i)==1){for(var _q=0;_q<=8;_q+=1){$1.j=_q;$p($1.checkbits,$1.i+$1.j,$xo($g($1.checkbits,$1.i+$1.j),$g($1.checksalt,$1.j)))}}}$1.checkval=0;for(var _11=0;_11<=7;_11+=1){$1.i=_11;$1.checkval=$f($1.checkval+~~Math.pow(2,$1.i)*$g($1.checkbits,$f($1.barlen*4+$1.i)))}$1.checksum1=$1.checkval&15;$1.checksum2=$1.checkval>>>4;if($1.validatecheck){if($g($1.barcode,$1.barlen)!=$g($1.barchars,$1.checksum1)||$g($1.barcode,$f($1.barlen+1))!=$g($1.barchars,$1.checksum2)){$k[$j++]="bwipp.plesseyBadCheckDigits";$k[$j++]="Incorrect Plessey check digits provided";$0.raiseerror()}$1.barcode=$G($1.barcode,0,$1.barlen)}$1.encs=$a(["14141414","32141414","14321414","32321414","14143214","32143214","14323214","32323214","14141432","32141432","14321432","32321432","14143232","32143232","14323232","32323232","32321432","541412323","323"]);var _1T=$1.unidirectional?27:33;$1.sbs=$s($f($1.barlen*8+_1T));$1.txt=$a($f($1.barlen+2));$P($1.sbs,0,$g($1.encs,16));for(var _1c=0,_1b=$f($1.barlen-1);_1c<=_1b;_1c+=1){$1.i=_1c;$1.indx=$g($1.charvals,$G($1.barcode,$1.i,1));$P($1.sbs,$1.i*8+8,$g($1.encs,$1.indx));$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),$1.i*20+20,$1.textyoffset,$1.textfont,$1.textsize]))}$P($1.sbs,$f($1.barlen*8+8),$g($1.encs,$1.checksum1));$P($1.sbs,$f($1.barlen*8+16),$g($1.encs,$1.checksum2));if($1.includecheckintext){$p($1.txt,$1.barlen,$a([$G($1.barchars,$1.checksum1,1),$f($1.barlen*20+20),$1.textyoffset,$1.textfont,$1.textsize]));$p($1.txt,$f($1.barlen+1),$a([$G($1.barchars,$1.checksum2,1),$f($f($1.barlen+1)*20+20),$1.textyoffset,$1.textfont,$1.textsize]))}else{$p($1.txt,$1.barlen,$a([" ",$f($1.barlen*20+20),$1.textyoffset,$1.textfont,$1.textsize]));$p($1.txt,$f($1.barlen+1),$a([" ",$f($f($1.barlen+1)*20+20),$1.textyoffset,$1.textfont,$1.textsize]))}var _2k=$1.unidirectional?18:17;$P($1.sbs,$f($1.barlen*8+24),$g($1.encs,_2k));$k[$j++]=Infinity;$k[$j++]=Infinity;var _2m=$1.sbs;for(var _2n=0,_2o=_2m.length;_2n<_2o;_2n++){$k[$j++]=$g(_2m,_2n)-48}var _2q=$a();$k[$j++]=Infinity;for(var _2s=0,_2t=~~(($1.sbs.length+1)/2);_2s<_2t;_2s++){$k[$j++]=$1.height}var _2v=$a();$k[$j++]=Infinity;for(var _2x=0,_2y=~~(($1.sbs.length+1)/2);_2x<_2y;_2x++){$k[$j++]=0}var _2z=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_2q;$k[$j++]="bhs";$k[$j++]=_2v;$k[$j++]="bbs";$k[$j++]=_2z;if($1.includetext){$k[$j++]="txt";$k[$j++]=$1.txt}$k[$j++]="opt";$k[$j++]=$1.options;var _33=$d();$k[$j++]=_33;if(!$1.dontdraw){$0.renlinear()}};$0.telepen=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.numeric=false;$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.height=1;$1.parse=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;var _A=new Map([["parse",$1.parse],["parseonly",true],["parsefnc",false]]);$1.fncvals=_A;$k[$j++]="barcode";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _D=$k[--$j];$1[$k[--$j]]=_D;$1.barlen=$1.barcode.length;delete $1.options["parse"];$1.encs=$a(["31313131","1131313111","33313111","1111313131","3111313111","11333131","13133131","111111313111","31333111","1131113131","33113131","1111333111","3111113131","1113133111","1311133111","111111113131","3131113111","11313331","333331","111131113111","31113331","1133113111","1313113111","1111113331","31131331","113111113111","3311113111","1111131331","311111113111","1113111331","1311111331","11111111113111","31313311","1131311131","33311131","1111313311","3111311131","11333311","13133311","111111311131","31331131","1131113311","33113311","1111331131","3111113311","1113131131","1311131131","111111113311","3131111131","1131131311","33131311","111131111131","3111131311","1133111131","1313111131","111111131311","3113111311","113111111131","3311111131","111113111311","311111111131","111311111311","131111111311","11111111111131","3131311111","11313133","333133","111131311111","31113133","1133311111","1313311111","1111113133","313333","113111311111","3311311111","11113333","311111311111","11131333","13111333","11111111311111","31311133","1131331111","33331111","1111311133","3111331111","11331133","13131133","111111331111","3113131111","1131111133","33111133","111113131111","3111111133","111311131111","131111131111","111111111133","31311313","113131111111","3331111111","1111311313","311131111111","11331313","13131313","11111131111111","3133111111","1131111313","33111313","111133111111","3111111313","111313111111","131113111111","111111111313","313111111111","1131131113","33131113","11113111111111","3111131113","113311111111","131311111111","111111131113","3113111113","11311111111111","331111111111","111113111113","31111111111111","111311111113","131111111113","1111111111111111"]);$1.barlen=$1.barcode.length;$1.sbs=$s($1.barlen*16+48);$1.txt=$a($1.barlen);$1.enc=$g($1.encs,95);$P($1.sbs,0,$1.enc);$1.l=$1.enc.length;$1.checksum=0;$1.i=0;$1.j=0;for(;;){if($1.i==$1.barlen){break}if($1.numeric){if($g($1.barcode,$1.i)>16){$1.np=$G($1.barcode,$1.i,2);if($eq($G($1.np,1,1),"X")){$1.indx=~~$z($G($1.np,0,1))+17}else{$1.indx=~~$z($1.np)+27}$p($1.txt,$1.j,$a([$1.np,$1.j*16+16,$1.textyoffset,$1.textfont,$1.textsize]));$1.i=$1.i+2}else{$1.indx=$g($1.barcode,$1.i);$p($1.txt,$1.j,$a([" ",$1.j*16+16,$1.textyoffset,$1.textfont,$1.textsize]));$1.i=$1.i+1}}else{$1.indx=$g($1.barcode,$1.i);if($1.indx>=32&&$1.indx<=126){$p($1.txt,$1.j,$a([$G($1.barcode,$1.i,1),$1.j*16+16,$1.textyoffset,$1.textfont,$1.textsize]))}else{$p($1.txt,$1.j,$a([" ",$1.j*16+16,$1.textyoffset,$1.textfont,$1.textsize]))}$1.i=$1.i+1}$1.checksum=$f($1.checksum+$1.indx);$1.enc=$g($1.encs,$1.indx);$P($1.sbs,$1.l,$1.enc);$1.l=$1.l+$1.enc.length;$1.j=$1.j+1}$1.checksum=$f(127-$1.checksum%127)%127;$1.enc=$g($1.encs,$1.checksum);$P($1.sbs,$1.l,$1.enc);$1.l=$1.l+$1.enc.length;$1.enc=$g($1.encs,122);$P($1.sbs,$1.l,$1.enc);$1.l=$1.l+$1.enc.length;$1.sbs=$G($1.sbs,0,$1.l);$1.txt=$G($1.txt,0,$1.j);$k[$j++]=Infinity;$k[$j++]=Infinity;var _1u=$1.sbs;for(var _1v=0,_1w=_1u.length;_1v<_1w;_1v++){$k[$j++]=$f($g(_1u,_1v)-48)}var _1y=$a();$k[$j++]=Infinity;for(var _20=0,_21=~~(($1.sbs.length+1)/2);_20<_21;_20++){$k[$j++]=$1.height}var _23=$a();$k[$j++]=Infinity;for(var _25=0,_26=~~(($1.sbs.length+1)/2);_25<_26;_25++){$k[$j++]=0}var _27=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_1y;$k[$j++]="bhs";$k[$j++]=_23;$k[$j++]="bbs";$k[$j++]=_27;if($1.includetext){$k[$j++]="txt";$k[$j++]=$1.txt}$k[$j++]="opt";$k[$j++]=$1.options;var _2B=$d();$k[$j++]=_2B;if(!$1.dontdraw){$0.renlinear()}};$0.telepennumeric=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textxoffset=0;$1.textyoffset=-8;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$p($1.options,"dontdraw",true);$p($1.options,"numeric",true);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.telepen();var _E=$k[--$j];$1[$k[--$j]]=_E;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.posicode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textxoffset=0;$1.textyoffset=-8;$1.height=1;$1.encoding="auto";$1.version="a";$1.checkoffset=0;$1.raw=false;$1.parse=false;$1.parsefnc=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.encoding=""+$1.encoding;$1.version=""+$1.version;$1.checkoffset=~~$1.checkoffset;$1.height=+$1.height;$1.la0=-1;$1.la1=-2;$1.la2=-3;$1.sf0=-4;$1.sf1=-5;$1.sf2=-6;$1.fn1=-7;$1.fn2=-8;$1.fn3=-9;$1.fn4=-10;var _1l=new Map([["normal",$a([$a(["0","^","'"]),$a(["1",";",27]),$a(["2","<",28]),$a(["3","=",29]),$a(["4",">",30]),$a(["5","?",31]),$a(["6","@","!"]),$a(["7","[",'"']),$a(["8",92,"#"]),$a(["9","]","&"]),$a(["A","a",1]),$a(["B","b",2]),$a(["C","c",3]),$a(["D","d",4]),$a(["E","e",5]),$a(["F","f",6]),$a(["G","g",7]),$a(["H","h",8]),$a(["I","i",9]),$a(["J","j",10]),$a(["K","k",11]),$a(["L","l",12]),$a(["M","m",13]),$a(["N","n",14]),$a(["O","o",15]),$a(["P","p",16]),$a(["Q","q",17]),$a(["R","r",18]),$a(["S","s",19]),$a(["T","t",20]),$a(["U","u",21]),$a(["V","v",22]),$a(["W","w",23]),$a(["X","x",24]),$a(["Y","y",25]),$a(["Z","z",26]),$a(["-","_",40]),$a([".","`",41]),$a([" ",127,0]),$a(["$","{","*"]),$a(["/","|",","]),$a(["+","}",":"]),$a(["%","~",$1.fn1]),$a([$1.la1,$1.la0,$1.fn2]),$a([$1.sf1,$1.sf0,$1.fn3]),$a([$1.sf2,$1.sf2,$1.fn4])])],["limited",$a([$a(["0",-98,-98]),$a(["1",-98,-98]),$a(["2",-98,-98]),$a(["3",-98,-98]),$a(["4",-98,-98]),$a(["5",-98,-98]),$a(["6",-98,-98]),$a(["7",-98,-98]),$a(["8",-98,-98]),$a(["9",-98,-98]),$a(["A",-98,-98]),$a(["B",-98,-98]),$a(["C",-98,-98]),$a(["D",-98,-98]),$a(["E",-98,-98]),$a(["F",-98,-98]),$a(["G",-98,-98]),$a(["H",-98,-98]),$a(["I",-98,-98]),$a(["J",-98,-98]),$a(["K",-98,-98]),$a(["L",-98,-98]),$a(["M",-98,-98]),$a(["N",-98,-98]),$a(["O",-98,-98]),$a(["P",-98,-98]),$a(["Q",-98,-98]),$a(["R",-98,-98]),$a(["S",-98,-98]),$a(["T",-98,-98]),$a(["U",-98,-98]),$a(["V",-98,-98]),$a(["W",-98,-98]),$a(["X",-98,-98]),$a(["Y",-98,-98]),$a(["Z",-98,-98]),$a(["-",-98,-98]),$a([".",-98,-98])])]]);$k[$j++]=_1l;if($eq($1.version,"a")||$eq($1.version,"b")){$k[$j++]="normal"}else{$k[$j++]="limited"}var _1o=$k[--$j];$1.charmaps=$g($k[--$j],_1o);var _1r=$1.charmaps;var _1s=$1.charmaps;var _1t=$1.charmaps;$1.charvals=$a([new Map,new Map,new Map]);for(var _1x=0,_1w=$1.charmaps.length-1;_1x<=_1w;_1x+=1){$1.i=_1x;$1.encs=$g($1.charmaps,$1.i);for(var _21=0;_21<=2;_21+=1){$1.j=_21;var _24=$g($1.encs,$1.j);$k[$j++]=_24;if($eq($t(_24),"stringtype")){var _27=$g($k[--$j],0);$k[$j++]=_27}$p($g($1.charvals,$1.j),$k[--$j],$1.i)}}$1.set0=$g($1.charvals,0);$1.set1=$g($1.charvals,1);$1.set2=$g($1.charvals,2);if($1.raw){$1.encoding="raw"}if($eq($1.encoding,"raw")){$1.cws=$a($1.barcode.length);$1.i=0;$1.j=0;for(;;){if($1.i==$1.barcode.length){break}$1.cw=~~$z($G($1.barcode,$1.i+1,3));$p($1.cws,$1.j,$1.cw);$1.i=$1.i+4;$1.j=$1.j+1}$1.cws=$G($1.cws,0,$1.j);$1.text=""}if($eq($1.encoding,"auto")){var _2g=new Map([["parse",$1.parse],["parsefnc",$1.parsefnc],["FNC1",$1.fn1],["FNC2",$1.fn2],["FNC3",$1.fn3]]);$1.fncvals=_2g;$k[$j++]="msg";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _2j=$k[--$j];$1[$k[--$j]]=_2j;$1.msglen=$1.msg.length;$1.text=$s($1.msglen);for(var _2q=0,_2p=$1.msglen-1;_2q<=_2p;_2q+=1){$1.i=_2q;var _2v=$g($1.msg,$1.i);$k[$j++]=$1.text;$k[$j++]=$1.i;$k[$j++]=_2v;if(_2v<0){$j--;$k[$j++]=32}var _2w=$k[--$j];var _2x=$k[--$j];$p($k[--$j],_2x,_2w)}$k[$j++]=Infinity;for(var _30=0,_31=$1.msglen;_30<_31;_30++){$k[$j++]=0}$k[$j++]=0;$1.numSA=$a();$k[$j++]=Infinity;for(var _34=0,_35=$1.msglen;_34<_35;_34++){$k[$j++]=0}$k[$j++]=0;$1.numEA=$a();for(var _38=$1.msglen-1;_38>=0;_38-=1){$1.i=_38;if($g($1.msg,$1.i)>=0){if($g($1.msg,$1.i)>=128){$p($1.numEA,$1.i,$f($g($1.numEA,$1.i+1)+1))}else{$p($1.numSA,$1.i,$f($g($1.numSA,$1.i+1)+1))}}}$1.ea=false;$1.msgtmp=$a([]);for(var _3S=0,_3R=$1.msglen-1;_3S<=_3R;_3S+=1){$1.i=_3S;$1.c=$g($1.msg,$1.i);if(!$xo($1.ea,$1.c<128)&&$1.c>=0){if($1.ea){$k[$j++]=$1.numSA}else{$k[$j++]=$1.numEA}var _3e=$g($k[--$j],$1.i);var _3h=$f(_3e+$1.i)==$1.msglen?3:5;if(_3e<_3h){$k[$j++]=Infinity;$q($1.msgtmp);$k[$j++]=$1.fn4;$1.msgtmp=$a()}else{$k[$j++]=Infinity;$q($1.msgtmp);$k[$j++]=$1.fn4;$k[$j++]=$1.fn4;$1.msgtmp=$a();$1.ea=!$1.ea}}$k[$j++]=Infinity;$q($1.msgtmp);if($1.c>=0){$k[$j++]=$1.c&127}else{$k[$j++]=$1.c}$1.msgtmp=$a()}$1.msg=$1.msgtmp;$1.msglen=$1.msg.length;$1.enc=function(){var _3x=$k[--$j];$p($1.cws,$1.j,$g(_3x,$k[--$j]));$1.j=$1.j+1};$1.cws=$a($1.msglen*2);$1.i=0;$1.j=0;$1.cset="set0";for(;;){if($1.i==$1.msglen){break}for(;;){$1.char1=$g($1.msg,$1.i);$k[$j++]="char2";if($1.i+1<$1.msglen){$k[$j++]=$g($1.msg,$1.i+1)}else{$k[$j++]=-99}var _4F=$k[--$j];$1[$k[--$j]]=_4F;var _4K=$g($1[$1.cset],$1.char1)!==undefined;if(_4K){$k[$j++]=$1.char1;$k[$j++]=$1[$1.cset];$1.enc();$1.i=$1.i+1;break}var _4R=$g($1.set2,$1.char1)!==undefined;if(_4R){$k[$j++]=$1.sf2;$k[$j++]=$1[$1.cset];$1.enc();$k[$j++]=$1.char1;$k[$j++]=$1.set2;$1.enc();$1.i=$1.i+1;break}var _4b=$g($1[$1.cset],$1.char2)!==undefined;if(!_4b){if($eq($1.cset,"set0")){$k[$j++]=$1.la1;$k[$j++]=$1[$1.cset];$1.enc();$1.cset="set1"}else{$k[$j++]=$1.la0;$k[$j++]=$1[$1.cset];$1.enc();$1.cset="set0"}break}else{if($eq($1.cset,"set0")){$k[$j++]=$1.sf1;$k[$j++]=$1[$1.cset];$1.enc();$k[$j++]=$1.char1;$k[$j++]=$1.set1;$1.enc()}else{$k[$j++]=$1.sf0;$k[$j++]=$1[$1.cset];$1.enc();$k[$j++]=$1.char1;$k[$j++]=$1.set0;$1.enc()}$1.i=$1.i+1;break}break}}$1.cws=$G($1.cws,0,$1.j)}var _52=new Map([["a",$a(["141112","131212","121312","111412","131113","121213","111313","121114","111214","111115","181111","171211","161311","151411","141511","131611","121711","111811","171112","161212","151312","141412","131512","121612","111712","161113","151213","141313","131413","121513","111613","151114","141214","131314","121414","111514","141115","131215","121315","111415","131116","121216","111316","121117","111217","111118","1<111112","111111111;1"])],["b",$a(["151213","141313","131413","121513","141214","131314","121414","131215","121315","121216","191212","181312","171412","161512","151612","141712","131812","121912","181213","171313","161413","151513","141613","131713","121813","171214","161314","151414","141514","131614","121714","161215","151315","141415","131515","121615","151216","141316","131416","121516","141217","131317","121417","131218","121318","121219","1<121312","121212121<1"])],["limiteda",$a(["111411","111312","111213","111114","121311","121212","121113","141111","131211","131112","171111","161211","151311","141411","131511","121611","111711","161112","151212","141312","131412","121512","111612","151113","141213","131313","121413","111513","141114","131214","121314","111414","131115","121215","111315","121116","111216","111117","151111","1"])],["limitedb",$a(["121512","121413","121314","121215","131412","131313","131214","151212","141312","141213","181212","171312","161412","151512","141612","131712","121812","171213","161313","151413","141513","131613","121713","161214","151314","141414","131514","121614","151215","141315","131415","121515","141216","131316","121416","131217","121317","121218","141212","1"])]]);$1.encs=$g(_52,$1.version);$1.c2w=$a([$a([495,330,210,126,70,35,15,5]),$a([165,120,84,56,35,20,10,4]),$a([45,36,28,21,15,10,6,3]),$a([9,8,7,6,5,4,3,2]),$a([1,1,1,1,1,1,1,1])]);$1.v=0;var _5B=$1.cws;for(var _5C=0,_5D=_5B.length;_5C<_5D;_5C++){$1.cw=$g(_5B,_5C);for(var _5F=0,_5G=6;_5F<_5G;_5F++){if((($1.cw^$1.v)&1)!=0){$1.v=$1.v^7682}$1.v=$1.v>>>1;$1.cw=$1.cw>>>1}}$1.v=$1.v+$1.checkoffset;if($eq($1.version,"limiteda")||$eq($1.version,"limitedb")){$1.v=$1.v&1023;if($1.v>824&&$1.v<853){$1.v=$1.v+292}}else{$1.v=($1.v&1023)+45}$1.d=$a([2,2,2,2,2,2]);$1.r=0;$1.c=0;$1.w=0;$1.sum=0;for(;;){if($1.sum==$1.v){break}$1.t=$f($1.sum+$g($g($1.c2w,$1.r),$1.c));if($1.t==$1.v){$1.w=$1.w+1;$p($1.d,$1.r,$1.w+2);$1.sum=$1.t}if($1.t>$1.v){$p($1.d,$1.r,$1.w+2);$1.r=$1.r+1;$1.w=0}if($1.t<$1.v){$1.c=$1.c+1;$1.w=$1.w+1;$1.sum=$1.t}}$k[$j++]=20;for(var _5w=0;_5w<=4;_5w+=1){var _5z=$k[--$j];$k[$j++]=$f(_5z-$g($1.d,_5w))}$p($1.d,5,$k[--$j]);if($eq($1.version,"b")||$eq($1.version,"limitedb")){$k[$j++]=Infinity;var _64=$1.d;for(var _65=0,_66=_64.length;_65<_66;_65++){$k[$j++]=$f($g(_64,_65)+1)}$1.d=$a()}$1.cbs=$Z($s(12),"111111111111");for(var _6B=5;_6B>=0;_6B-=1){$1.i=_6B;$p($1.cbs,(5-$1.i)*2+1,$f($g($1.d,$1.i)+47))}$1.sbs=$s($1.cws.length*6+31);var _6L=$g($1.encs,$1.encs.length-2);$P($1.sbs,0,_6L);$1.j=_6L.length;for(var _6P=0,_6O=$1.cws.length-1;_6P<=_6O;_6P+=1){$1.i=_6P;$P($1.sbs,$1.j,$g($1.encs,$g($1.cws,$1.i)));$1.j=$1.j+6}$P($1.sbs,$1.j,$1.cbs);$1.j=$1.j+12;var _6e=$g($1.encs,$1.encs.length-1);$P($1.sbs,$1.j,_6e);$1.j=_6e.length+$1.j;$1.sbs=$G($1.sbs,0,$1.j);$k[$j++]=Infinity;$k[$j++]=Infinity;var _6l=$1.sbs;for(var _6m=0,_6n=_6l.length;_6m<_6n;_6m++){$k[$j++]=$f($g(_6l,_6m)-48)}var _6p=$a();$k[$j++]=Infinity;for(var _6r=0,_6s=~~(($1.sbs.length+1)/2);_6r<_6s;_6r++){$k[$j++]=$1.height}var _6u=$a();$k[$j++]=Infinity;for(var _6w=0,_6x=~~(($1.sbs.length+1)/2);_6w<_6x;_6w++){$k[$j++]=0}var _6y=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_6p;$k[$j++]="bhs";$k[$j++]=_6u;$k[$j++]="bbs";$k[$j++]=_6y;$k[$j++]="txt";$k[$j++]=$a([$a([$1.text,$1.textxoffset,$1.textyoffset,$1.textfont,$1.textsize])]);$k[$j++]="textxalign";$k[$j++]="center";$k[$j++]="opt";$k[$j++]=$1.options;var _77=$d();$k[$j++]=_77;if(!$1.dontdraw){$0.renlinear()}};$0.codablockf=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.rows=-1;$1.columns=8;$1.rowheight=10;$1.sepheight=1;$1.parse=false;$1.parsefnc=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.rows=~~$1.rows;$1.columns=~~$1.columns;$1.rowheight=~~$1.rowheight;$1.sepheight=~~$1.sepheight;$k[$j++]="c";if($1.columns>=4&&$1.columns<=62){$k[$j++]=$1.columns}else{$k[$j++]=8}var _C=$k[--$j];$1[$k[--$j]]=_C;$k[$j++]="rows";if($1.rows>=2&&$1.rows<=44){$k[$j++]=$1.rows}else{$k[$j++]=-1}var _H=$k[--$j];$1[$k[--$j]]=_H;$1.swa=-1;$1.swb=-2;$1.swc=-3;$1.sft=-4;$1.fn1=-5;$1.fn2=-6;$1.fn3=-7;$1.fn4=-8;$1.sta=-9;$1.stp=-10;var _N=new Map([["parse",$1.parse],["parsefnc",$1.parsefnc],["FNC1",$1.fn1],["FNC3",$1.fn3]]);$1.fncvals=_N;$k[$j++]="msg";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _Q=$k[--$j];$1[$k[--$j]]=_Q;$1.msglen=$1.msg.length;$1.msgtmp=$a([]);var _U=$1.msg;for(var _V=0,_W=_U.length;_V<_W;_V++){$1.char=$g(_U,_V);$k[$j++]=Infinity;$q($1.msgtmp);if($1.char<128){$k[$j++]=$1.char}else{$k[$j++]=$1.fn4;$k[$j++]=$1.char&127}$1.msgtmp=$a()}$1.msg=$1.msgtmp;$1.msglen=$1.msg.length;$1.charmaps=$a([$a([32,32,"00"]),$a(["!","!","01"]),$a(['"','"',"02"]),$a(["#","#","03"]),$a(["$","$","04"]),$a(["%","%","05"]),$a(["&","&","06"]),$a(["'","'","07"]),$a([40,40,"08"]),$a([41,41,"09"]),$a(["*","*","10"]),$a(["+","+","11"]),$a([",",",","12"]),$a(["-","-","13"]),$a([".",".","14"]),$a(["/","/","15"]),$a(["0","0","16"]),$a(["1","1","17"]),$a(["2","2","18"]),$a(["3","3","19"]),$a(["4","4","20"]),$a(["5","5","21"]),$a(["6","6","22"]),$a(["7","7","23"]),$a(["8","8","24"]),$a(["9","9","25"]),$a([":",":","26"]),$a([";",";","27"]),$a(["<","<","28"]),$a(["=","=","29"]),$a([">",">","30"]),$a(["?","?","31"]),$a(["@","@","32"]),$a(["A","A","33"]),$a(["B","B","34"]),$a(["C","C","35"]),$a(["D","D","36"]),$a(["E","E","37"]),$a(["F","F","38"]),$a(["G","G","39"]),$a(["H","H","40"]),$a(["I","I","41"]),$a(["J","J","42"]),$a(["K","K","43"]),$a(["L","L","44"]),$a(["M","M","45"]),$a(["N","N","46"]),$a(["O","O","47"]),$a(["P","P","48"]),$a(["Q","Q","49"]),$a(["R","R","50"]),$a(["S","S","51"]),$a(["T","T","52"]),$a(["U","U","53"]),$a(["V","V","54"]),$a(["W","W","55"]),$a(["X","X","56"]),$a(["Y","Y","57"]),$a(["Z","Z","58"]),$a(["[","[","59"]),$a([92,92,"60"]),$a(["]","]","61"]),$a(["^","^","62"]),$a(["_","_","63"]),$a([0,"`","64"]),$a([1,"a","65"]),$a([2,"b","66"]),$a([3,"c","67"]),$a([4,"d","68"]),$a([5,"e","69"]),$a([6,"f","70"]),$a([7,"g","71"]),$a([8,"h","72"]),$a([9,"i","73"]),$a([10,"j","74"]),$a([11,"k","75"]),$a([12,"l","76"]),$a([13,"m","77"]),$a([14,"n","78"]),$a([15,"o","79"]),$a([16,"p","80"]),$a([17,"q","81"]),$a([18,"r","82"]),$a([19,"s","83"]),$a([20,"t","84"]),$a([21,"u","85"]),$a([22,"v","86"]),$a([23,"w","87"]),$a([24,"x","88"]),$a([25,"y","89"]),$a([26,"z","90"]),$a([27,"{","91"]),$a([28,"|","92"]),$a([29,"}","93"]),$a([30,"~","94"]),$a([31,127,"95"]),$a([$1.fn3,$1.fn3,"96"]),$a([$1.fn2,$1.fn2,"97"]),$a([$1.sft,$1.sft,"98"]),$a([$1.swc,$1.swc,"99"]),$a([$1.swb,$1.fn4,$1.swb]),$a([$1.fn4,$1.swa,$1.swa]),$a([$1.fn1,$1.fn1,$1.fn1]),$a([$1.sta,$1.sta,$1.sta]),$a([$1.stp,$1.stp,$1.stp])]);$1.charvals=$a([new Map,new Map,new Map]);for(var _2o=0,_2n=$1.charmaps.length-1;_2o<=_2n;_2o+=1){$1.i=_2o;$1.encs=$g($1.charmaps,$1.i);for(var _2s=0;_2s<=2;_2s+=1){$1.j=_2s;var _2v=$g($1.encs,$1.j);$k[$j++]=_2v;if($eq($t(_2v),"stringtype")){var _2y=$g($k[--$j],0);$k[$j++]=_2y}$p($g($1.charvals,$1.j),$k[--$j],$1.i)}}$1.seta=$g($1.charvals,0);$1.setb=$g($1.charvals,1);$1.setc=$g($1.charvals,2);$1.numsscr=function(){$1.n=0;$1.s=0;$1.p=$k[--$j];for(;;){if($1.p>=$1.msglen){break}var _3F=$g($1.msg,$1.p);var _3H=$g($1.setc,_3F)!==undefined;$k[$j++]=_3F;if(!_3H){$j--;break}if($k[--$j]==$1.fn1){if($1.s%2==0){$1.s=$1.s+1}else{break}}$1.n=$1.n+1;$1.s=$1.s+1;$1.p=$f($1.p+1)}$k[$j++]=$1.n;$k[$j++]=$1.s};$1.enca=function(){$p($1.cws,$1.j,$g($1.seta,$k[--$j]));$1.j=$1.j+1};$1.encb=function(){$p($1.cws,$1.j,$g($1.setb,$k[--$j]));$1.j=$1.j+1};$1.encc=function(){var _3d=$k[--$j];$k[$j++]=_3d;if($ne($t(_3d),"arraytype")){var _3h=$g($1.setc,$k[--$j]);$k[$j++]=_3h}else{$q($k[--$j]);var _3j=$k[--$j];var _3k=$k[--$j];$k[$j++]=$f($f(_3j-48)+$f(_3k-48)*10)}$p($1.cws,$1.j,$k[--$j]);$1.j=$1.j+1};$1.anotb=function(){var _3p=$k[--$j];var _3r=$g($1.seta,_3p)!==undefined;var _3t=$g($1.setb,_3p)!==undefined;$k[$j++]=_3r&&!_3t};$1.bnota=function(){var _3u=$k[--$j];var _3w=$g($1.setb,_3u)!==undefined;var _3y=$g($1.seta,_3u)!==undefined;$k[$j++]=_3w&&!_3y};$k[$j++]=Infinity;for(var _40=0,_41=$1.msg.length;_40<_41;_40++){$k[$j++]=0}$k[$j++]=9999;$1.nextanotb=$a();$k[$j++]=Infinity;for(var _44=0,_45=$1.msg.length;_44<_45;_44++){$k[$j++]=0}$k[$j++]=9999;$1.nextbnota=$a();for(var _48=$1.msg.length-1;_48>=0;_48-=1){$1.i=_48;$k[$j++]=$g($1.msg,$1.i);$1.anotb();if($k[--$j]){$p($1.nextanotb,$1.i,0)}else{$p($1.nextanotb,$1.i,$f($g($1.nextanotb,$1.i+1)+1))}$k[$j++]=$g($1.msg,$1.i);$1.bnota();if($k[--$j]){$p($1.nextbnota,$1.i,0)}else{$p($1.nextbnota,$1.i,$f($g($1.nextbnota,$1.i+1)+1))}}$1.abeforeb=function(){var _4V=$k[--$j];$k[$j++]=$lt($g($1.nextanotb,_4V),$g($1.nextbnota,_4V))};$1.bbeforea=function(){var _4a=$k[--$j];$k[$j++]=$lt($g($1.nextbnota,_4a),$g($1.nextanotb,_4a))};$1.padrow=function(){for(var _4g=0,_4h=$k[--$j];_4g<_4h;_4g++){for(;;){if($eq($1.cset,"seta")){$k[$j++]=$1.swc;$1.enca();$1.cset="setc";break}if($eq($1.cset,"setb")){$k[$j++]=$1.swc;$1.encb();$1.cset="setc";break}if($eq($1.cset,"setc")){$k[$j++]=$1.swb;$1.encc();$1.cset="setb";break}}}};$1.cws=$a($f($1.c+5)*44);$1.i=0;$1.j=0;$1.r=1;$1.lastrow=false;for(;;){if($1.lastrow){break}$k[$j++]=$1.sta;$1.enca();if($1.i<$1.msglen){$k[$j++]=$1.i;$1.numsscr()}else{$k[$j++]=-1;$k[$j++]=-1}$1.nums=$k[--$j];$1.nchars=$k[--$j];for(;;){if($1.msglen==0){$k[$j++]=$1.swb;$1.enca();$1.cset="setb";break}if($1.nums>=2){$k[$j++]=$1.swc;$1.enca();$1.cset="setc";break}$k[$j++]=$1.i;$1.abeforeb();if($k[--$j]){$k[$j++]=$1.sft;$1.enca();$1.cset="seta";break}$k[$j++]=$1.swb;$1.enca();$1.cset="setb";break}$1.j=$1.j+1;$1.endofrow=false;for(;;){$1.rem=$f($f($1.c+3)-$1.j%$f($1.c+5));if($1.i==$1.msglen||$1.endofrow){break}$k[$j++]=$1.i;$1.numsscr();$1.nums=$k[--$j];$1.nchars=$k[--$j];$k[$j++]="remnums";if($1.nums>$1.rem*2){$k[$j++]=$1.rem*2}else{$k[$j++]=$1.nums}var _5J=$k[--$j];$1[$k[--$j]]=_5J;for(;;){if(($eq($1.cset,"seta")||$eq($1.cset,"setb"))&&$1.remnums>=4&&$g($1.msg,$1.i)!=$1.fn1){if($1.remnums%2==0&&$1.rem>=3){$k[$j++]=$1.swc;if($eq($1.cset,"seta")){$1.enca()}else{$1.encb()}$1.cset="setc";for(var _5W=0,_5X=2;_5W<_5X;_5W++){if($g($1.msg,$1.i)==$1.fn1){$k[$j++]=$1.fn1;$1.encc();$1.i=$1.i+1}else{$k[$j++]=$G($1.msg,$1.i,2);$1.encc();$1.i=$1.i+2}}break}if($1.remnums%2!=0&&$1.rem>=4){$k[$j++]=$g($1.msg,$1.i);if($eq($1.cset,"seta")){$1.enca()}else{$1.encb()}$1.i=$1.i+1;$k[$j++]=$1.swc;if($eq($1.cset,"seta")){$1.enca()}else{$1.encb()}$1.cset="setc";for(var _5r=0,_5s=2;_5r<_5s;_5r++){if($g($1.msg,$1.i)==$1.fn1){$k[$j++]=$1.fn1;$1.encc();$1.i=$1.i+1}else{$k[$j++]=$G($1.msg,$1.i,2);$1.encc();$1.i=$1.i+2}}break}}$k[$j++]=$eq($1.cset,"setb");$k[$j++]=$g($1.msg,$1.i);$1.anotb();var _67=$k[--$j];var _68=$k[--$j];if(_68&&_67&&$1.rem>=2){if($1.i<$1.msglen-1){$k[$j++]=$1.i+1;$1.bbeforea();if($k[--$j]){$k[$j++]=$1.sft;$1.encb();$k[$j++]=$g($1.msg,$1.i);$1.enca();$1.i=$1.i+1;break}}$k[$j++]=$1.swa;$1.encb();$1.cset="seta";$k[$j++]=$g($1.msg,$1.i);$1.enca();$1.i=$1.i+1;break}$k[$j++]=$eq($1.cset,"seta");$k[$j++]=$g($1.msg,$1.i);$1.bnota();var _6S=$k[--$j];var _6T=$k[--$j];if(_6T&&_6S&&$1.rem>=2){if($1.i<$1.msglen-1){$k[$j++]=$1.i+1;$1.abeforeb();if($k[--$j]){$k[$j++]=$1.sft;$1.enca();$k[$j++]=$g($1.msg,$1.i);$1.encb();$1.i=$1.i+1;break}}$k[$j++]=$1.swb;$1.enca();$1.cset="setb";$k[$j++]=$g($1.msg,$1.i);$1.encb();$1.i=$1.i+1;break}if($eq($1.cset,"setc")&&$1.remnums<2&&$1.rem>=2){$k[$j++]=$1.i;$1.abeforeb();if($k[--$j]){$k[$j++]=$1.swa;$1.encc();$1.cset="seta";$k[$j++]=$g($1.msg,$1.i);$1.enca();$1.i=$1.i+1;break}$k[$j++]=$1.swb;$1.encc();$1.cset="setb";$k[$j++]=$g($1.msg,$1.i);$1.encb();$1.i=$1.i+1;break}var _73=$g($1.seta,$g($1.msg,$1.i))!==undefined;if($eq($1.cset,"seta")&&_73&&$1.rem>=1){$k[$j++]=$g($1.msg,$1.i);$1.enca();$1.i=$1.i+1;break}var _7E=$g($1.setb,$g($1.msg,$1.i))!==undefined;if($eq($1.cset,"setb")&&_7E&&$1.rem>=1){$k[$j++]=$g($1.msg,$1.i);$1.encb();$1.i=$1.i+1;break}if($eq($1.cset,"setc")&&$1.remnums>=2&&$1.rem>=1){if($g($1.msg,$1.i)==$1.fn1){$k[$j++]=$1.fn1;$1.encc();$1.i=$1.i+1}else{$k[$j++]=$G($1.msg,$1.i,2);$1.encc();$1.i=$1.i+2}break}$1.endofrow=true;break}}if(($1.r>=$1.rows||$1.rows==-1)&&$1.r>1&&$1.i==$1.msglen&&$1.rem>=2){$k[$j++]=$f($1.rem-2);$1.padrow();$1.j=$1.j+3;$k[$j++]=$1.stp;$1.enca();$1.lastrow=true}else{$k[$j++]=$1.rem;$1.padrow();$1.j=$1.j+1;$k[$j++]=$1.stp;$1.enca();$1.r=$1.r+1}}$1.cws=$G($1.cws,0,$1.j);$k[$j++]=Infinity;for(var _7o=64;_7o<=95;_7o+=1){$k[$j++]=_7o}for(var _7p=0;_7p<=15;_7p+=1){$k[$j++]=_7p}for(var _7q=26;_7q<=63;_7q+=1){$k[$j++]=_7q}$1.abmap=$a();$k[$j++]=Infinity;for(var _7s=0;_7s<=85;_7s+=1){$k[$j++]=_7s}$1.cmap=$a();$1.chkmsg=$a($1.msglen);$1.j=0;for(var _7y=0,_7x=$1.msglen-1;_7y<=_7x;_7y+=1){$1.i=_7y;$1.char=$g($1.msg,$1.i);if($1.char>=0){$p($1.chkmsg,$1.j,$1.char);$1.j=$1.j+1}if($1.char==$1.fn1&&$1.i!=0){$p($1.chkmsg,$1.j,29);$1.j=$1.j+1}}$1.t1=0;$1.t2=0;$1.k1=0;$1.k2=0;for(var _8F=0,_8E=$1.j-1;_8F<=_8E;_8F+=1){$1.i=_8F;$1.t1=$g($1.chkmsg,$1.i)*$1.i%86;$1.t2=$f($1.t1+$g($1.chkmsg,$1.i))%86;$1.k1=$f($1.k1+$1.t2)%86;$1.k2=$f($1.k2+$1.t1)%86}$k[$j++]=$1.cws;$k[$j++]=$1.cws.length-4;if($ne($1.cset,"setc")){$k[$j++]=$1.abmap}else{$k[$j++]=$1.cmap}var _8Z=$g($k[--$j],$1.k1);var _8a=$k[--$j];$p($k[--$j],_8a,_8Z);$k[$j++]=$1.cws;$k[$j++]=$1.cws.length-3;if($ne($1.cset,"setc")){$k[$j++]=$1.abmap}else{$k[$j++]=$1.cmap}var _8j=$g($k[--$j],$1.k2);var _8k=$k[--$j];$p($k[--$j],_8k,_8j);var _8m=$1.cws;$k[$j++]=_8m;$k[$j++]=2;if($g(_8m,2-1)!=99){$k[$j++]=$1.abmap}else{$k[$j++]=$1.cmap}var _8s=$g($k[--$j],$1.r-2);var _8t=$k[--$j];$p($k[--$j],_8t,_8s);for(var _8x=1,_8w=$1.r-1;_8x<=_8w;_8x+=1){$1.i=_8x;var _8y=$1.cws;var _8z=$1.i;var _90=$1.c;$k[$j++]=_8y;$k[$j++]=$f(_8z*$f(_90+5)+2);if($g(_8y,$f($f(_8z*$f(_90+5)+2)-1))!=99){$k[$j++]=$1.abmap}else{$k[$j++]=$1.cmap}var _96=$g($k[--$j],$1.i+42);var _97=$k[--$j];$p($k[--$j],_97,_96)}for(var _9B=0,_9A=$1.r-1;_9B<=_9A;_9B+=1){$1.rcws=$G($1.cws,_9B*$f($1.c+5),$f($1.c+4));$1.csum=$g($1.rcws,0);for(var _9K=1,_9J=$1.rcws.length-2;_9K<=_9J;_9K+=1){$1.i=_9K;$1.csum=$f($1.csum+$g($1.rcws,$1.i)*$1.i)}$p($1.rcws,$1.rcws.length-1,$1.csum%103)}$1.encs=$a(["212222","222122","222221","121223","121322","131222","122213","122312","132212","221213","221312","231212","112232","122132","122231","113222","123122","123221","223211","221132","221231","213212","223112","312131","311222","321122","321221","312212","322112","322211","212123","212321","232121","111323","131123","131321","112313","132113","132311","211313","231113","231311","112133","112331","132131","113123","113321","133121","313121","211331","231131","213113","213311","213131","311123","311321","331121","312113","312311","332111","314111","221411","431111","111224","111422","121124","121421","141122","141221","112214","112412","122114","122411","142112","142211","241211","221114","413111","241112","134111","111242","121142","121241","114212","124112","124211","411212","421112","421211","212141","214121","412121","111143","111341","131141","114113","114311","411113","411311","113141","114131","311141","411131","211412","2331112"]);$1.rowbits=$a($1.r);for(var _9Y=0,_9X=$1.r-1;_9Y<=_9X;_9Y+=1){$1.i=_9Y;$k[$j++]=Infinity;var _9d=$G($1.cws,$1.i*$f($1.c+5),$f($1.c+5));for(var _9e=0,_9f=_9d.length;_9e<_9f;_9e++){$F($g($1.encs,$g(_9d,_9e)),function(){var _9j=$k[--$j];$k[$j++]=$f(_9j-48)})}$1.sbs=$a();$k[$j++]=Infinity;var _9l=$1.sbs;$k[$j++]=0;for(var _9m=0,_9n=_9l.length;_9m<_9n;_9m++){var _9p=$k[--$j];var _9q=_9p==1?0:1;$k[$j++]=_9p;for(var _9r=0,_9s=$g(_9l,_9m);_9r<_9s;_9r++){$k[$j++]=_9q}}$r($a($m()-1));var _9v=$k[--$j];var _9w=$k[--$j];$k[$j++]=_9v;$k[$j++]=_9w;$j--;var _9x=$k[--$j];var _9y=$k[--$j];$k[$j++]=_9x;$k[$j++]=_9y;$j--;$p($1.rowbits,$1.i,$k[--$j])}$1.symwid=$f($1.c*11+57);$k[$j++]=Infinity;for(var _A5=0,_A6=$1.symwid*$1.sepheight;_A5<_A6;_A5++){$k[$j++]=1}for(var _A9=0,_A8=$1.r-2;_A9<=_A8;_A9+=1){$1.i=_A9;for(var _AB=0,_AC=$1.rowheight;_AB<_AC;_AB++){$q($g($1.rowbits,$1.i))}for(var _AH=0,_AI=$1.sepheight;_AH<_AI;_AH++){$k[$j++]=1;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=0;for(var _AK=0,_AL=$f($1.symwid-24);_AK<_AL;_AK++){$k[$j++]=1}$k[$j++]=1;$k[$j++]=1;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=1}}for(var _AN=0,_AO=$1.rowheight;_AN<_AO;_AN++){$q($g($1.rowbits,$1.r-1))}for(var _AU=0,_AV=$1.symwid*$1.sepheight;_AU<_AV;_AU++){$k[$j++]=1}$1.pixs=$a();var _Af=new Map([["ren",$0.renmatrix],["pixs",$1.pixs],["pixx",$1.symwid],["pixy",~~($1.pixs.length/$1.symwid)],["height",~~($1.pixs.length/$1.symwid)/72],["width",$1.symwid/72],["opt",$1.options]]);$k[$j++]=_Af;if(!$1.dontdraw){$0.renmatrix()}};$0.code16k=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.mode=-1;$1.pos=-1;$1.rows=0;$1.rowheight=8;$1.sepheight=1;$1.encoding="auto";$1.raw=false;$1.parse=false;$1.parsefnc=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.mode=~~$1.mode;$1.pos=~~$1.pos;$1.rows=~~$1.rows;$1.rowheight=~~$1.rowheight;$1.sepheight=~~$1.sepheight;if($1.pos!=-1){$1.rows=16}$1.swa=-1;$1.swb=-2;$1.swc=-3;$1.sa1=-4;$1.sb1=-5;$1.sc1=-6;$1.sa2=-7;$1.sb2=-8;$1.sc2=-9;$1.pad=-10;$1.sb3=-11;$1.sc3=-12;$1.fn1=-13;$1.fn2=-14;$1.fn3=-15;$1.fn4=-16;$1.charmaps=$a([$a([32,32,"00"]),$a(["!","!","01"]),$a(['"','"',"02"]),$a(["#","#","03"]),$a(["$","$","04"]),$a(["%","%","05"]),$a(["&","&","06"]),$a(["'","'","07"]),$a([40,40,"08"]),$a([41,41,"09"]),$a(["*","*","10"]),$a(["+","+","11"]),$a([",",",","12"]),$a(["-","-","13"]),$a([".",".","14"]),$a(["/","/","15"]),$a(["0","0","16"]),$a(["1","1","17"]),$a(["2","2","18"]),$a(["3","3","19"]),$a(["4","4","20"]),$a(["5","5","21"]),$a(["6","6","22"]),$a(["7","7","23"]),$a(["8","8","24"]),$a(["9","9","25"]),$a([":",":","26"]),$a([";",";","27"]),$a(["<","<","28"]),$a(["=","=","29"]),$a([">",">","30"]),$a(["?","?","31"]),$a(["@","@","32"]),$a(["A","A","33"]),$a(["B","B","34"]),$a(["C","C","35"]),$a(["D","D","36"]),$a(["E","E","37"]),$a(["F","F","38"]),$a(["G","G","39"]),$a(["H","H","40"]),$a(["I","I","41"]),$a(["J","J","42"]),$a(["K","K","43"]),$a(["L","L","44"]),$a(["M","M","45"]),$a(["N","N","46"]),$a(["O","O","47"]),$a(["P","P","48"]),$a(["Q","Q","49"]),$a(["R","R","50"]),$a(["S","S","51"]),$a(["T","T","52"]),$a(["U","U","53"]),$a(["V","V","54"]),$a(["W","W","55"]),$a(["X","X","56"]),$a(["Y","Y","57"]),$a(["Z","Z","58"]),$a(["[","[","59"]),$a([92,92,"60"]),$a(["]","]","61"]),$a(["^","^","62"]),$a(["_","_","63"]),$a([0,"`","64"]),$a([1,"a","65"]),$a([2,"b","66"]),$a([3,"c","67"]),$a([4,"d","68"]),$a([5,"e","69"]),$a([6,"f","70"]),$a([7,"g","71"]),$a([8,"h","72"]),$a([9,"i","73"]),$a([10,"j","74"]),$a([11,"k","75"]),$a([12,"l","76"]),$a([13,"m","77"]),$a([14,"n","78"]),$a([15,"o","79"]),$a([16,"p","80"]),$a([17,"q","81"]),$a([18,"r","82"]),$a([19,"s","83"]),$a([20,"t","84"]),$a([21,"u","85"]),$a([22,"v","86"]),$a([23,"w","87"]),$a([24,"x","88"]),$a([25,"y","89"]),$a([26,"z","90"]),$a([27,"{","91"]),$a([28,"|","92"]),$a([29,"}","93"]),$a([30,"~","94"]),$a([31,127,"95"]),$a([$1.fn3,$1.fn3,"96"]),$a([$1.fn2,$1.fn2,"97"]),$a([$1.sb1,$1.sa1,"98"]),$a([$1.swc,$1.swc,"99"]),$a([$1.swb,$1.fn4,$1.swb]),$a([$1.fn4,$1.swa,$1.swa]),$a([$1.fn1,$1.fn1,$1.fn1]),$a([$1.pad,$1.pad,$1.pad]),$a([$1.sb2,$1.sa2,$1.sb1]),$a([$1.sc2,$1.sc2,$1.sb2]),$a([$1.sc3,$1.sc3,$1.sb3])]);$1.charvals=$a([new Map,new Map,new Map]);for(var _2R=0,_2Q=$1.charmaps.length-1;_2R<=_2Q;_2R+=1){$1.i=_2R;$1.encs=$g($1.charmaps,$1.i);for(var _2V=0;_2V<=2;_2V+=1){$1.j=_2V;var _2Y=$g($1.encs,$1.j);$k[$j++]=_2Y;if($eq($t(_2Y),"stringtype")){var _2b=$g($k[--$j],0);$k[$j++]=_2b}$p($g($1.charvals,$1.j),$k[--$j],$1.i)}}$1.seta=$g($1.charvals,0);$1.setb=$g($1.charvals,1);$1.setc=$g($1.charvals,2);if($1.raw){$1.encoding="raw"}if($eq($1.encoding,"raw")){$1.cws=$a($1.barcode.length);$1.i=0;$1.j=0;for(;;){if($1.i==$1.barcode.length){break}$1.cw=~~$z($G($1.barcode,$1.i+1,3));$p($1.cws,$1.j,$1.cw);$1.i=$1.i+4;$1.j=$1.j+1}$1.cws=$G($1.cws,0,$1.j)}if($eq($1.encoding,"auto")){var _3A=new Map([["parse",$1.parse],["parsefnc",$1.parsefnc],["eci",true],["FNC1",$1.fn1],["FNC2",$1.fn2],["FNC3",$1.fn3]]);$1.fncvals=_3A;$k[$j++]="msg";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _3D=$k[--$j];$1[$k[--$j]]=_3D;$1.msglen=$1.msg.length;$k[$j++]=Infinity;for(var _3H=0,_3I=$1.msglen;_3H<_3I;_3H++){$k[$j++]=0}$k[$j++]=0;$1.numSA=$a();$k[$j++]=Infinity;for(var _3L=0,_3M=$1.msglen;_3L<_3M;_3L++){$k[$j++]=0}$k[$j++]=0;$1.numEA=$a();for(var _3P=$1.msglen-1;_3P>=0;_3P-=1){$1.i=_3P;if($g($1.msg,$1.i)>=0){if($g($1.msg,$1.i)>=128){$p($1.numEA,$1.i,$f($g($1.numEA,$1.i+1)+1))}else{$p($1.numSA,$1.i,$f($g($1.numSA,$1.i+1)+1))}}}$1.ea=false;$1.msgtmp=$a([]);for(var _3j=0,_3i=$1.msglen-1;_3j<=_3i;_3j+=1){$1.i=_3j;$1.c=$g($1.msg,$1.i);if(!$xo($1.ea,$1.c<128)&&$1.c>=0){if($1.ea){$k[$j++]=$1.numSA}else{$k[$j++]=$1.numEA}var _3v=$g($k[--$j],$1.i);var _3y=$f(_3v+$1.i)==$1.msglen?3:5;if(_3v<_3y){$k[$j++]=Infinity;$q($1.msgtmp);$k[$j++]=$1.fn4;$1.msgtmp=$a()}else{$k[$j++]=Infinity;$q($1.msgtmp);$k[$j++]=$1.fn4;$k[$j++]=$1.fn4;$1.msgtmp=$a();$1.ea=!$1.ea}}$k[$j++]=Infinity;$q($1.msgtmp);if($1.c>=0){$k[$j++]=$1.c&127}else{$k[$j++]=$1.c}$1.msgtmp=$a()}$1.msg=$1.msgtmp;$1.msglen=$1.msg.length;$1.numsscr=function(){$1.n=0;$1.s=0;$1.p=$k[--$j];for(;;){if($1.p>=$1.msglen){break}var _4J=$g($1.msg,$1.p);var _4L=$g($1.setc,_4J)!==undefined;$k[$j++]=_4J;if(!_4L){$j--;break}if($k[--$j]==$1.fn1){if($1.s%2==0){$1.s=$1.s+1}else{break}}$1.n=$1.n+1;$1.s=$1.s+1;$1.p=$f($1.p+1)}$k[$j++]=$1.n;$k[$j++]=$1.s};$1.enca=function(){$p($1.cws,$1.j,$g($1.seta,$k[--$j]));$1.j=$1.j+1};$1.encb=function(){$p($1.cws,$1.j,$g($1.setb,$k[--$j]));$1.j=$1.j+1};$1.encc=function(){var _4h=$k[--$j];$k[$j++]=_4h;if($ne($t(_4h),"arraytype")){var _4l=$g($1.setc,$k[--$j]);$k[$j++]=_4l}else{$q($k[--$j]);var _4n=$k[--$j];var _4o=$k[--$j];$k[$j++]=$f($f(_4n-48)+$f(_4o-48)*10)}$p($1.cws,$1.j,$k[--$j]);$1.j=$1.j+1};$1.anotb=function(){var _4t=$k[--$j];var _4v=$g($1.seta,_4t)!==undefined;var _4x=$g($1.setb,_4t)!==undefined;$k[$j++]=_4v&&!_4x};$1.bnota=function(){var _4y=$k[--$j];var _50=$g($1.setb,_4y)!==undefined;var _52=$g($1.seta,_4y)!==undefined;$k[$j++]=_50&&!_52};$k[$j++]=Infinity;for(var _54=0,_55=$1.msg.length;_54<_55;_54++){$k[$j++]=0}$k[$j++]=9999;$1.nextanotb=$a();$k[$j++]=Infinity;for(var _58=0,_59=$1.msg.length;_58<_59;_58++){$k[$j++]=0}$k[$j++]=9999;$1.nextbnota=$a();for(var _5C=$1.msg.length-1;_5C>=0;_5C-=1){$1.i=_5C;$k[$j++]=$g($1.msg,$1.i);$1.anotb();if($k[--$j]){$p($1.nextanotb,$1.i,0)}else{$p($1.nextanotb,$1.i,$f($g($1.nextanotb,$1.i+1)+1))}$k[$j++]=$g($1.msg,$1.i);$1.bnota();if($k[--$j]){$p($1.nextbnota,$1.i,0)}else{$p($1.nextbnota,$1.i,$f($g($1.nextbnota,$1.i+1)+1))}}$1.abeforeb=function(){var _5Z=$k[--$j];$k[$j++]=$lt($g($1.nextanotb,_5Z),$g($1.nextbnota,_5Z))};$1.bbeforea=function(){var _5e=$k[--$j];$k[$j++]=$lt($g($1.nextbnota,_5e),$g($1.nextanotb,_5e))};$1.cws=$a($1.barcode.length*2+3);$1.i=0;$1.j=0;for(;;){if($1.pos!=-1){$p($1.cws,0,~~($1.pos/10)-1);$p($1.cws,1,$1.pos%10-1);$1.j=2;$1.cset="setb";$1.mode=7;break}if($1.msglen==0){$1.cset="setb";$1.mode=1;break}if($1.msglen>=2){$k[$j++]=$g($1.msg,0)==$1.fn1;$k[$j++]=1;$1.numsscr();var _5v=$k[--$j];var _5w=$k[--$j];$k[$j++]=_5v;$k[$j++]=_5w;$j--;var _5x=$k[--$j];var _5y=$k[--$j];if(_5y&&_5x>=2){$1.cset="setc";$1.mode=4;$1.i=1;break}}if($g($1.msg,0)==$1.fn1){$1.cset="setb";$1.mode=3;$1.i=1;break}if($1.msglen>=2){$k[$j++]=0;$1.numsscr();var _63=$k[--$j];var _64=$k[--$j];$k[$j++]=_63;$k[$j++]=_64;$j--;var _65=$k[--$j];if(_65>=2&&_65%2==0){$1.cset="setc";$1.mode=2;break}$k[$j++]=0;$1.numsscr();var _66=$k[--$j];var _67=$k[--$j];$k[$j++]=_66;$k[$j++]=_67;$j--;var _68=$k[--$j];if(_68>=3&&_68%2==1){$k[$j++]=$g($1.msg,0);$1.encb();$1.cset="setc";$1.mode=5;$1.i=1;break}var _6E=$g($1.setb,$g($1.msg,0))!==undefined;$k[$j++]=_6E;$k[$j++]=1;$1.numsscr();var _6F=$k[--$j];var _6G=$k[--$j];$k[$j++]=_6F;$k[$j++]=_6G;$j--;var _6H=$k[--$j];var _6I=$k[--$j];if(_6I&&(_6H>=2&&_6H%2==0)){$k[$j++]=$g($1.msg,0);$1.encb();$1.cset="setc";$1.mode=5;$1.i=1;break}var _6O=$g($1.setb,$g($1.msg,0))!==undefined;$k[$j++]=_6O;$k[$j++]=1;$1.numsscr();var _6P=$k[--$j];var _6Q=$k[--$j];$k[$j++]=_6P;$k[$j++]=_6Q;$j--;var _6R=$k[--$j];var _6S=$k[--$j];if(_6S&&(_6R>=3&&_6R%2==1)){$k[$j++]=$g($1.msg,0);$1.encb();$k[$j++]=$g($1.msg,1);$1.encb();$1.cset="setc";$1.mode=6;$1.i=2;break}var _6a=$g($1.setb,$g($1.msg,0))!==undefined;var _6e=$g($1.setb,$g($1.msg,1))!==undefined;$k[$j++]=_6a&&_6e;$k[$j++]=2;$1.numsscr();var _6f=$k[--$j];var _6g=$k[--$j];$k[$j++]=_6f;$k[$j++]=_6g;$j--;var _6h=$k[--$j];var _6i=$k[--$j];if(_6i&&(_6h>=2&&_6h%2==0)){$k[$j++]=$g($1.msg,0);$1.encb();$k[$j++]=$g($1.msg,1);$1.encb();$1.cset="setc";$1.mode=6;$1.i=2;break}}$k[$j++]=0;$1.abeforeb();if($k[--$j]){$1.cset="seta";$1.mode=0;break}$1.cset="setb";$1.mode=1;break}for(;;){if($1.i==$1.msglen){break}$k[$j++]=$1.i;$1.numsscr();$1.nums=$k[--$j];$1.nchars=$k[--$j];for(;;){if($eq($1.cset,"seta")){if($1.i<$1.msglen-1){$k[$j++]=$g($1.msg,$1.i);$1.bnota();$k[$j++]=$1.i+1;$1.abeforeb();var _70=$k[--$j];var _71=$k[--$j];if(_71&&_70){$k[$j++]=$1.sb1;$1.enca();$k[$j++]=$g($1.msg,$1.i);$1.encb();$1.i=$1.i+1;break}}if($1.i<$1.msglen-2){$k[$j++]=$g($1.msg,$1.i);$1.bnota();$k[$j++]=$g($1.msg,$1.i+1);$1.bnota();var _7F=$k[--$j];var _7G=$k[--$j];$k[$j++]=$an(_7G,_7F);$k[$j++]=$1.i+2;$1.abeforeb();var _7I=$k[--$j];var _7J=$k[--$j];if(_7J&&_7I){$k[$j++]=$1.sb2;$1.enca();$k[$j++]=$g($1.msg,$1.i);$1.encb();$k[$j++]=$g($1.msg,$1.i+1);$1.encb();$1.i=$1.i+2;break}}$k[$j++]=$g($1.msg,$1.i);$1.bnota();if($k[--$j]){$k[$j++]=$1.swb;$1.enca();$1.cset="setb";break}if($1.i<$1.msglen-4){var _7e=$g($1.seta,$g($1.msg,$1.i+4))!==undefined;if($1.nums==4&&_7e){$k[$j++]=$1.sc2;$1.enca();for(var _7g=0,_7h=2;_7g<_7h;_7g++){if($g($1.msg,$1.i)==$1.fn1){$k[$j++]=$1.fn1;$1.encc();$1.i=$1.i+1}else{$k[$j++]=$G($1.msg,$1.i,2);$1.encc();$1.i=$1.i+2}}break}}if($1.i<$1.msglen-6){var _7z=$g($1.seta,$g($1.msg,$1.i+6))!==undefined;if($1.nums==6&&_7z){$k[$j++]=$1.sc3;$1.enca();for(var _81=0,_82=3;_81<_82;_81++){if($g($1.msg,$1.i)==$1.fn1){$k[$j++]=$1.fn1;$1.encc();$1.i=$1.i+1}else{$k[$j++]=$G($1.msg,$1.i,2);$1.encc();$1.i=$1.i+2}}break}}if($1.nums>=4&&$1.nums%2==0){$k[$j++]=$1.swc;$1.enca();$1.cset="setc";break}$k[$j++]=$g($1.msg,$1.i);$1.enca();$1.i=$1.i+1;break}if($eq($1.cset,"setb")){if($1.i<$1.msglen-1){$k[$j++]=$g($1.msg,$1.i);$1.anotb();$k[$j++]=$1.i+1;$1.bbeforea();var _8R=$k[--$j];var _8S=$k[--$j];if(_8S&&_8R){$k[$j++]=$1.sa1;$1.encb();$k[$j++]=$g($1.msg,$1.i);$1.enca();$1.i=$1.i+1;break}}if($1.i<$1.msglen-2){$k[$j++]=$g($1.msg,$1.i);$1.anotb();$k[$j++]=$g($1.msg,$1.i+1);$1.anotb();var _8g=$k[--$j];var _8h=$k[--$j];$k[$j++]=$an(_8h,_8g);$k[$j++]=$1.i+2;$1.bbeforea();var _8j=$k[--$j];var _8k=$k[--$j];if(_8k&&_8j){$k[$j++]=$1.sa2;$1.encb();$k[$j++]=$g($1.msg,$1.i);$1.enca();$k[$j++]=$g($1.msg,$1.i+1);$1.enca();$1.i=$1.i+2;break}}$k[$j++]=$g($1.msg,$1.i);$1.anotb();if($k[--$j]){$k[$j++]=$1.swa;$1.encb();$1.cset="seta";break}if($1.i<$1.msglen-4){var _95=$g($1.setb,$g($1.msg,$1.i+4))!==undefined;if($1.nums==4&&_95){$k[$j++]=$1.sc2;$1.encb();for(var _97=0,_98=2;_97<_98;_97++){if($g($1.msg,$1.i)==$1.fn1){$k[$j++]=$1.fn1;$1.encc();$1.i=$1.i+1}else{$k[$j++]=$G($1.msg,$1.i,2);$1.encc();$1.i=$1.i+2}}break}}if($1.i<$1.msglen-6){var _9Q=$g($1.setb,$g($1.msg,$1.i+6))!==undefined;if($1.nums==6&&_9Q){$k[$j++]=$1.sc3;$1.encb();for(var _9S=0,_9T=3;_9S<_9T;_9S++){if($g($1.msg,$1.i)==$1.fn1){$k[$j++]=$1.fn1;$1.encc();$1.i=$1.i+1}else{$k[$j++]=$G($1.msg,$1.i,2);$1.encc();$1.i=$1.i+2}}break}}if($1.nums>=4&&$1.nums%2==0){$k[$j++]=$1.swc;$1.encb();$1.cset="setc";break}$k[$j++]=$g($1.msg,$1.i);$1.encb();$1.i=$1.i+1;break}if($eq($1.cset,"setc")){if($1.nums>=2){if($g($1.msg,$1.i)==$1.fn1){$k[$j++]=$1.fn1;$1.encc();$1.i=$1.i+1}else{$k[$j++]=$G($1.msg,$1.i,2);$1.encc();$1.i=$1.i+2}break}if($1.i<$1.msglen-1){var _A3=$g($1.setb,$g($1.msg,$1.i))!==undefined;$k[$j++]=_A3;$k[$j++]=$1.i+1;$1.numsscr();var _A5=$k[--$j];var _A6=$k[--$j];$k[$j++]=_A5;$k[$j++]=_A6;$j--;var _A7=$k[--$j];var _A8=$k[--$j];if(_A8&&(_A7>=2&&_A7%2==0)){$k[$j++]=$1.sb1;$1.encc();$k[$j++]=$g($1.msg,$1.i);$1.encb();$1.i=$1.i+1;break}}if($1.i<$1.msglen-1){var _AK=$g($1.setb,$g($1.msg,$1.i))!==undefined;$k[$j++]=_AK;$k[$j++]=$1.i+1;$1.numsscr();var _AM=$k[--$j];var _AN=$k[--$j];$k[$j++]=_AM;$k[$j++]=_AN;$j--;var _AO=$k[--$j];var _AP=$k[--$j];if(_AP&&(_AO>=3&&_AO%2==1)){$k[$j++]=$1.sb2;$1.encc();$k[$j++]=$g($1.msg,$1.i);$1.encb();$k[$j++]=$g($1.msg,$1.i+1);$1.encb();$1.i=$1.i+2;break}}if($1.i<$1.msglen-2){var _Ae=$g($1.setb,$g($1.msg,$1.i))!==undefined;var _Aj=$g($1.setb,$g($1.msg,$1.i+1))!==undefined;$k[$j++]=_Ae&&_Aj;$k[$j++]=$1.i+2;$1.numsscr();var _Al=$k[--$j];var _Am=$k[--$j];$k[$j++]=_Al;$k[$j++]=_Am;$j--;var _An=$k[--$j];var _Ao=$k[--$j];if(_Ao&&(_An>=2&&_An%2==0)){$k[$j++]=$1.sb2;$1.encc();$k[$j++]=$g($1.msg,$1.i);$1.encb();$k[$j++]=$g($1.msg,$1.i+1);$1.encb();$1.i=$1.i+2;break}}if($1.i<$1.msglen-3){var _B3=$g($1.setb,$g($1.msg,$1.i))!==undefined;var _B8=$g($1.setb,$g($1.msg,$1.i+1))!==undefined;$k[$j++]=_B3&&_B8;$k[$j++]=$1.i+2;$1.numsscr();var _BA=$k[--$j];var _BB=$k[--$j];$k[$j++]=_BA;$k[$j++]=_BB;$j--;var _BC=$k[--$j];var _BD=$k[--$j];if(_BD&&(_BC>=3&&_BC%2==1)){$k[$j++]=$1.sb3;$1.encc();$k[$j++]=$g($1.msg,$1.i);$1.encb();$k[$j++]=$g($1.msg,$1.i+1);$1.encb();$k[$j++]=$g($1.msg,$1.i+2);$1.encb();$1.i=$1.i+3;break}}if($1.i<$1.msglen-3){var _BV=$g($1.setb,$g($1.msg,$1.i))!==undefined;var _Ba=$g($1.setb,$g($1.msg,$1.i+1))!==undefined;var _Bf=$g($1.setb,$g($1.msg,$1.i+2))!==undefined;$k[$j++]=_BV&&_Ba&&_Bf;$k[$j++]=$1.i+3;$1.numsscr();var _Bh=$k[--$j];var _Bi=$k[--$j];$k[$j++]=_Bh;$k[$j++]=_Bi;$j--;var _Bj=$k[--$j];var _Bk=$k[--$j];if(_Bk&&(_Bj>=2&&_Bj%2==0)){$k[$j++]=$1.sb3;$1.encc();$k[$j++]=$g($1.msg,$1.i);$1.encb();$k[$j++]=$g($1.msg,$1.i+1);$1.encb();$k[$j++]=$g($1.msg,$1.i+2);$1.encb();$1.i=$1.i+3;break}}$k[$j++]=$1.i;$1.abeforeb();if($k[--$j]){$k[$j++]=$1.swa;$1.encc();$1.cset="seta";break}$k[$j++]=$1.swb;$1.encc();$1.cset="setb";break}break}}$1.cws=$G($1.cws,0,$1.j)}$1.metrics=$a([$a([2,7]),$a([3,12]),$a([4,17]),$a([5,22]),$a([6,27]),$a([7,32]),$a([8,37]),$a([9,42]),$a([10,47]),$a([11,52]),$a([12,57]),$a([13,62]),$a([14,67]),$a([15,72]),$a([16,77])]);$1.urows=$1.rows;$1.i=0;for(;;){$1.m=$g($1.metrics,$1.i);$1.r=$g($1.m,0);$1.dcws=$g($1.m,1);$1.okay=true;if($1.urows!=0&&$1.urows!=$1.r){$1.okay=false}if($1.cws.length>$1.dcws){$1.okay=false}if($1.okay){break}$1.i=$1.i+1}$k[$j++]=Infinity;$q($1.cws);for(var _Cb=0,_Cc=$f($1.dcws-$1.cws.length);_Cb<_Cc;_Cb++){$k[$j++]=103}$1.cws=$a();$k[$j++]=Infinity;$k[$j++]=$f($f($1.r-2)*7+$1.mode);$q($1.cws);$1.cws=$a();$k[$j++]=0;for(var _Ck=0,_Cj=$1.dcws;_Ck<=_Cj;_Ck+=1){var _Cn=$k[--$j];$k[$j++]=$f(_Cn+(_Ck+2)*$g($1.cws,_Ck))}$1.c1=$k[--$j]%107;$k[$j++]=0;for(var _Cr=0,_Cq=$1.dcws;_Cr<=_Cq;_Cr+=1){var _Cu=$k[--$j];$k[$j++]=$f(_Cu+(_Cr+1)*$g($1.cws,_Cr))}$1.c2=$f($k[--$j]+$1.c1*$f($1.dcws+2))%107;$k[$j++]=Infinity;$q($1.cws);$k[$j++]=$1.c1;$k[$j++]=$1.c2;$1.cws=$a();$1.encs=$a(["212222","222122","222221","121223","121322","131222","122213","122312","132212","221213","221312","231212","112232","122132","122231","113222","123122","123221","223211","221132","221231","213212","223112","312131","311222","321122","321221","312212","322112","322211","212123","212321","232121","111323","131123","131321","112313","132113","132311","211313","231113","231311","112133","112331","132131","113123","113321","133121","313121","211331","231131","213113","213311","213131","311123","311321","331121","312113","312311","332111","314111","221411","431111","111224","111422","121124","121421","141122","141221","112214","112412","122114","122411","142112","142211","241211","221114","413111","241112","134111","111242","121142","121241","114212","124112","124211","411212","421112","421211","212141","214121","412121","111143","111341","131141","114113","114311","411113","411311","113141","114131","311141","411131","211412","211214","211232","211133"]);$1.startencs=$a(["3211","2221","2122","1411","1132","1231","1114","3112","3211","2221","2122","1411","1132","1231","1114","3112"]);$1.stopencsodd=$a(["3211","2221","2122","1411","1132","1231","1114","3112","1132","1231","1114","3112","3211","2221","2122","1411"]);$1.stopencseven=$a(["2122","1411","1132","1231","1114","3112","1132","1231","1114","3112","3211","2221","2122","1411","3211","2221"]);if($1.pos==-1||~~($1.pos/10)%2==1){$1.stopencs=$1.stopencsodd}else{$1.stopencs=$1.stopencseven}$1.rowbits=$a($1.r);for(var _DE=0,_DD=$f($1.r-1);_DE<=_DD;_DE+=1){$1.i=_DE;$k[$j++]=Infinity;$k[$j++]=10;$F($g($1.startencs,$1.i),function(){var _DI=$k[--$j];$k[$j++]=$f(_DI-48)});var _DL=$G($1.cws,$1.i*5,5);$k[$j++]=1;for(var _DM=0,_DN=_DL.length;_DM<_DN;_DM++){$F($g($1.encs,$g(_DL,_DM)),function(){var _DR=$k[--$j];$k[$j++]=$f(_DR-48)})}$F($g($1.stopencs,$1.i),function(){var _DV=$k[--$j];$k[$j++]=$f(_DV-48)});$k[$j++]=1;$1.sbs=$a();$k[$j++]=Infinity;var _DX=$1.sbs;$k[$j++]=1;for(var _DY=0,_DZ=_DX.length;_DY<_DZ;_DY++){var _Db=$k[--$j];var _Dc=_Db==0?1:0;$k[$j++]=_Db;for(var _Dd=0,_De=$g(_DX,_DY);_Dd<_De;_Dd++){$k[$j++]=_Dc}}$r($a($m()-1));var _Dh=$k[--$j];var _Di=$k[--$j];$k[$j++]=_Dh;$k[$j++]=_Di;$j--;var _Dj=$k[--$j];var _Dk=$k[--$j];$k[$j++]=_Dj;$k[$j++]=_Dk;$j--;$p($1.rowbits,$1.i,$k[--$j])}$k[$j++]=Infinity;for(var _Dp=0,_Dq=81*$1.sepheight;_Dp<_Dq;_Dp++){$k[$j++]=1}for(var _Dt=0,_Ds=$f($1.r-2);_Dt<=_Ds;_Dt+=1){$1.i=_Dt;for(var _Dv=0,_Dw=$1.rowheight;_Dv<_Dw;_Dv++){$q($g($1.rowbits,$1.i))}for(var _E1=0,_E2=$1.sepheight;_E1<_E2;_E1++){for(var _E3=0,_E4=10;_E3<_E4;_E3++){$k[$j++]=0}for(var _E5=0,_E6=70;_E5<_E6;_E5++){$k[$j++]=1}$k[$j++]=0}}for(var _E8=0,_E9=$1.rowheight;_E8<_E9;_E8++){$q($g($1.rowbits,$f($1.r-1)))}for(var _EE=0,_EF=81*$1.sepheight;_EE<_EF;_EE++){$k[$j++]=1}$1.pixs=$a();var _EL=new Map([["ren",$0.renmatrix],["pixs",$1.pixs],["pixx",81],["pixy",~~($1.pixs.length/81)],["height",~~($1.pixs.length/81)/72],["width",81/72],["opt",$1.options]]);$k[$j++]=_EL;if(!$1.dontdraw){$0.renmatrix()}};$0.code49=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.mode=-1;$1.pos=-1;$1.rows=0;$1.rowheight=8;$1.sepheight=1;$1.parse=false;$1.parsefnc=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.mode=~~$1.mode;$1.pos=~~$1.pos;$1.rows=~~$1.rows;$1.rowheight=~~$1.rowheight;$1.sepheight=~~$1.sepheight;$1.s1=-1;$1.s2=-2;$1.fn1=-3;$1.fn2=-4;$1.fn3=-5;$1.ns=-6;var _F=new Map([["parse",$1.parse],["parsefnc",$1.parsefnc],["FNC1",$1.fn1],["FNC2",$1.fn2],["FNC3",$1.fn3]]);$1.fncvals=_F;$k[$j++]="msg";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _I=$k[--$j];$1[$k[--$j]]=_I;$1.msglen=$1.msg.length;$1.charmap=$a(["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%",$1.s1,$1.s2,$1.fn1,$1.fn2,$1.fn3,$1.ns]);$1.charvals=new Map;for(var _S=0;_S<=48;_S+=1){$1.i=_S;var _V=$g($1.charmap,$1.i);$k[$j++]=_V;if($eq($t(_V),"stringtype")){var _Y=$g($k[--$j],0);$k[$j++]=_Y}$p($1.charvals,$k[--$j],$1.i)}$1.combos=$a(["1 ","1A","1B","1C","1D","1E","1F","1G","1H","1I","1J","1K","1L","1M","1N","1O","1P","1Q","1R","1S","1T","1U","1V","1W","1X","1Y","1Z","11","12","13","14","15"," ","16","17","18"," $"," %","19","10","1-","1.","1$"," +","1/"," -"," ."," /"," 0"," 1"," 2"," 3"," 4"," 5"," 6"," 7"," 8"," 9","1+","21","22","23","24","25","26"," A"," B"," C"," D"," E"," F"," G"," H"," I"," J"," K"," L"," M"," N"," O"," P"," Q"," R"," S"," T"," U"," V"," W"," X"," Y"," Z","27","28","29","20","2-","2.","2A","2B","2C","2D","2E","2F","2G","2H","2I","2J","2K","2L","2M","2N","2O","2P","2Q","2R","2S","2T","2U","2V","2W","2X","2Y","2Z","2$","2/","2+","2%","2 "]);for(var _d=0;_d<=127;_d+=1){$1.i=_d;var _g=$g($1.combos,$1.i);$1.c1=$g(_g,0);$1.c2=$g(_g,1);if($1.c1==49){$p($1.charvals,$1.i,$a([$g($1.charvals,$1.s1),$g($1.charvals,$1.c2)]))}if($1.c1==50){$p($1.charvals,$1.i,$a([$g($1.charvals,$1.s2),$g($1.charvals,$1.c2)]))}}$1.encodealpha=function(){var _15=$g($1.charvals,$k[--$j]);$k[$j++]=_15;if($ne($t(_15),"arraytype")){$r($a(1))}var _18=$k[--$j];$P($1.cws,$1.j,_18);$1.j=_18.length+$1.j};$1.base48=function(){var _1C=$k[--$j];$k[$j++]=0;$F(_1C,function(){var _1D=$k[--$j];var _1E=$k[--$j];$k[$j++]=$f($f(_1D-48)+_1E*10)});$k[$j++]=Infinity;var _1F=$k[--$j];var _1G=$k[--$j];var _1H=$k[--$j];$k[$j++]=_1F;$k[$j++]=_1G;for(var _1I=0,_1J=$f(_1H-1);_1I<_1J;_1I++){var _1K=$k[--$j];$k[$j++]=_1K%48;$k[$j++]=~~(_1K/48)}var _1L=$a();$k[$j++]=_1L;$k[$j++]=Infinity;var _1M=$k[--$j];var _1N=$k[--$j];$k[$j++]=_1M;$k[$j++]=_1N;for(var _1O=_1N.length-1;_1O>=0;_1O-=1){var _1P=$k[--$j];$k[$j++]=$g(_1P,_1O);$k[$j++]=_1P}$j--;var _1R=$a();$P($1.cws,$1.j,_1R);$1.j=_1R.length+$1.j};$1.encodenumeric=function(){$1.nums=$k[--$j];var _1X=$1.nums.length;var _1Y=_1X%5;$k[$j++]="pre";$k[$j++]=_1X;$k[$j++]=_1Y;if(_1Y!=2){var _1Z=$k[--$j];var _1a=$k[--$j];$k[$j++]=$f(_1a-_1Z)}else{var _1b=$k[--$j];var _1c=$k[--$j];$k[$j++]=$f($f(_1c-_1b)-5)}var _1d=$k[--$j];$1[$k[--$j]]=_1d;for(var _1h=0,_1g=$f($1.pre-1);_1h<=_1g;_1h+=5){$k[$j++]=3;$k[$j++]=$G($1.nums,_1h,5);$1.base48()}$1.nums=$G($1.nums,$1.pre,$f($1.nums.length-$1.pre));var _1q=$1.nums.length;$k[$j++]=_1q;if(_1q==1){$k[$j++]=$g($1.nums,$1.i);$1.encodealpha()}var _1u=$k[--$j];$k[$j++]=_1u;if(_1u==3){$k[$j++]=2;$k[$j++]=$1.nums;$1.base48()}var _1w=$k[--$j];$k[$j++]=_1w;if(_1w==4){$k[$j++]=3;$k[$j++]=Infinity;$k[$j++]=49;$k[$j++]=48;$q($1.nums);var _1y=$a();$k[$j++]=_1y;$1.base48()}if($k[--$j]==7){$k[$j++]=3;$k[$j++]=Infinity;$k[$j++]=49;$k[$j++]=48;$q($G($1.nums,0,4));var _22=$a();$k[$j++]=_22;$1.base48();$k[$j++]=2;$k[$j++]=$G($1.nums,4,3);$1.base48()}};$k[$j++]=Infinity;for(var _26=0,_27=$1.msglen;_26<_27;_26++){$k[$j++]=0}$k[$j++]=0;$1.numericruns=$a();for(var _2A=$1.msglen-1;_2A>=0;_2A-=1){$1.i=_2A;var _2D=$g($1.msg,$1.i);if(_2D>=48&&_2D<=57){$p($1.numericruns,$1.i,$f($g($1.numericruns,$1.i+1)+1))}else{$p($1.numericruns,$1.i,0)}}if($1.mode==-1){for(;;){if($1.pos!=-1){$1.mode=3;break}if($g($1.numericruns,0)>=5){$1.mode=2;break}var _2S=$g($1.charvals,$g($1.msg,0));$k[$j++]=_2S;if($ne($t(_2S),"arraytype")){$j--;$1.mode=0;break}var _2W=$g($k[--$j],0)==43?4:5;$1.mode=_2W;break}}$1.cws=$a($1.msglen*2+1);$1.method="alpha";$1.i=-1;$1.j=-1;if($1.mode==0||$1.mode==1){$1.method="alpha";$1.i=0;$1.j=0}if($1.mode==2){$1.method="numeric";$1.i=0;$1.j=0}if($1.mode==3){$1.posval=$a([12,22,13,23,33,14,24,34,44,15,25,35,45,55,16,26,36,46,56,66,17,27,37,47,57,67,77,18,28,38,48,58,68,78,88,19,29,39,49,59,69,79,89,99]);$k[$j++]=$1.cws;$k[$j++]=0;for(var _2f=0;_2f<=43;_2f+=1){$k[$j++]=_2f;if($g($1.posval,_2f)!=$1.pos){$j--}}var _2j=$k[--$j];var _2k=$k[--$j];$p($k[--$j],_2k,$f(_2j+1));$1.method="alpha";$1.i=0;$1.j=1}if($1.mode==4||$1.mode==5){$p($1.cws,0,$g($g($1.charvals,$g($1.msg,0)),1));$1.method="alpha";$1.i=1;$1.j=1}for(;;){if($1.i==$1.msglen){break}for(;;){if($eq($1.method,"alpha")){if($g($1.numericruns,$1.i)>=5){$k[$j++]=$1.ns;$1.encodealpha();$1.method="numeric";break}$k[$j++]=$g($1.msg,$1.i);$1.encodealpha();$1.i=$1.i+1;break}if($eq($1.method,"numeric")){if($g($1.numericruns,$1.i)<5){$k[$j++]=$1.ns;$1.encodealpha();$1.method="alpha";break}$k[$j++]=$G($1.msg,$1.i,$g($1.numericruns,$1.i));$1.encodenumeric();$1.i=$f($1.i+$g($1.numericruns,$1.i));break}}}$1.cws=$G($1.cws,0,$1.j);$1.metrics=$a([$a([2,9]),$a([3,16]),$a([4,23]),$a([5,30]),$a([6,37]),$a([7,42]),$a([8,49])]);$1.urows=$1.rows;$1.i=0;for(;;){$1.m=$g($1.metrics,$1.i);$1.r=$g($1.m,0);$1.dcws=$g($1.m,1);$1.okay=true;if($1.urows!=0&&$1.urows!=$1.r){$1.okay=false}if($1.cws.length>$1.dcws){$1.okay=false}if($1.okay){break}$1.i=$1.i+1}$k[$j++]=Infinity;$q($1.cws);for(var _3n=0,_3o=$f($1.dcws-$1.cws.length);_3n<_3o;_3n++){$k[$j++]=48}$1.cws=$a();$1.ccs=$a($1.r*8);$1.j=0;for(var _3u=0,_3t=$f($1.r-2);_3u<=_3t;_3u+=1){$1.i=_3u;$1.cc=$G($1.cws,$1.j,7);$P($1.ccs,$1.i*8,$1.cc);var _43=$1.cc;$k[$j++]=$1.ccs;$k[$j++]=$1.i*8+7;$k[$j++]=0;for(var _44=0,_45=_43.length;_44<_45;_44++){var _47=$k[--$j];$k[$j++]=$f(_47+$g(_43,_44))}var _48=$k[--$j];var _49=$k[--$j];$p($k[--$j],_49,_48%49);$1.j=$1.j+7}if($1.j<$1.dcws){$P($1.ccs,$1.ccs.length-8,$G($1.cws,$1.j,$f($1.dcws-$1.j)))}$1.cr7=$f($f($1.r-2)*7+$1.mode);$p($1.ccs,$1.ccs.length-2,$1.cr7);var _4Q=$a([1,9,31,26,2,12,17,23,37,18,22,6,27,44,15,43,39,11,13,5,41,33,36,8,4,32,3,19,40,25,29,10,24,30]);$k[$j++]=_4Q;$k[$j++]=_4Q;$k[$j++]=Infinity;var _4R=$k[--$j];var _4T=$G($k[--$j],0,32);$k[$j++]=_4R;$k[$j++]=20;$q(_4T);$1.weightx=$a();var _4V=$k[--$j];$k[$j++]=_4V;$k[$j++]=_4V;$k[$j++]=Infinity;var _4W=$k[--$j];var _4Y=$G($k[--$j],1,32);$k[$j++]=_4W;$k[$j++]=16;$q(_4Y);$1.weighty=$a();$k[$j++]=Infinity;var _4a=$k[--$j];var _4c=$G($k[--$j],2,32);$k[$j++]=_4a;$k[$j++]=38;$q(_4c);$1.weightz=$a();$1.calccheck=function(){$1.weights=$k[--$j];$1.score=0;for(var _4h=0,_4g=~~($f($1.r-1)*8/2)-1;_4h<=_4g;_4h+=1){$1.i=_4h;$1.score=$f($f($g($1.ccs,$1.i*2)*49+$g($1.ccs,$1.i*2+1))*$g($1.weights,$1.i+1)+$1.score)}$k[$j++]=$1.score};$1.lastrow=$G($1.ccs,$1.ccs.length-8,8);if($1.r>=7){$k[$j++]=$1.cr7*$g($1.weightz,0);$k[$j++]=$1.weightz;$1.calccheck();var _51=$k[--$j];var _53=$f($k[--$j]+_51)%2401;$k[$j++]=~~(_53/49);$k[$j++]=_53%49;$r($a(2));$P($1.lastrow,0,$k[--$j])}$1.wr1=$f($g($1.lastrow,0)*49+$g($1.lastrow,1));$k[$j++]=$1.cr7*$g($1.weighty,0);$k[$j++]=$1.weighty;$1.calccheck();var _5F=$k[--$j];var _5L=$f($f($k[--$j]+_5F)+$1.wr1*$g($1.weighty,$f($1.r*4-3)))%2401;$1.wr2=_5L;$k[$j++]=~~(_5L/49);$k[$j++]=_5L%49;$r($a(2));$P($1.lastrow,2,$k[--$j]);$k[$j++]=$1.cr7*$g($1.weightx,0);$k[$j++]=$1.weightx;$1.calccheck();var _5T=$k[--$j];var _5d=$f($f($f($k[--$j]+_5T)+$1.wr1*$g($1.weightx,$f($1.r*4-3)))+$1.wr2*$g($1.weightx,$f($1.r*4-2)))%2401;$k[$j++]=~~(_5d/49);$k[$j++]=_5d%49;$r($a(2));$P($1.lastrow,4,$k[--$j]);var _5j=$G($1.ccs,$1.ccs.length-8,7);$k[$j++]=0;for(var _5k=0,_5l=_5j.length;_5k<_5l;_5k++){var _5n=$k[--$j];$k[$j++]=$f(_5n+$g(_5j,_5k))}$p($1.ccs,$1.ccs.length-1,$k[--$j]%49);$1.patterns=$a([$a(["11521132","25112131","14212132","25121221","14221222","12412132","23321221","12421222","21521221","15112222","15121312","13312222","24221311","13321312","11512222","22421311","11521312","25112311","14212312","23312311","12412312","21512311","16121131","14321131","12521131","15212131","15221221","13412131","13421221","11612131","16112221","16121311","14312221","14321311","12512221","12521311","15212311","13412311","11612311","11131135","31131133","51131131","21122134","41122132","21131224","41131222","11113135","31113133","51113131","11122225","31122223","51122221","11131315","31131313","51131311","21113224","41113222","21122314","41122312","11113315","31113313","51113311","12131134","32131132","21231133","41231131","22122133","42122131","11222134","22131223","42131221","11231224","31231222","12113134","32113132","12122224","32122222","12131314","32131312","21231313","41231311","22113223","42113221","11213224","22122313","42122311","11222314","31222312","12113314","32113312","21213313","41213311","13131133","33131131","22231132","11331133","31331131","23122132","12222133","23131222","12231223","32231221","21331222","13113133","33113131","13122223","33122221","11313133","13131313","33131311","11322223","22231312","11331313","31331311","23113222","12213223","23122312","12222313","32222311","21322312","13113313","33113311","22213312","11313313","31313311","14131132","23231131","12331132","21431131","24122131","13222132","24131221","13231222","11422132","22331221","11431222","14113132","14122222","12313132","14131312","12322222","23231311","12331312","21431311","24113221","13213222","24122311","13222312","11413222","22322311","11422312","14113312","23213311","12313312","21413311","15131131","13331131","14222131","14231221","12422131","12431221","15113131","15122221","13313131","15131311","13322221","11513131","13331311","11522221","14213221","14222311","12413221","12422311","15113311","13313311","11513311","11141134","31141132","21132133","41132131","21141223","41141221","11123134","31123132","11132224","31132222","11141314","31141312","21114133","41114131","21123223","41123221","21132313","41132311","11114224","31114222","11123314","31123312","21114313","41114311","12141133","32141131","21241132","22132132","11232133","22141222","11241223","31241221","12123133","32123131","12132223","32132221","12141313","32141311","21241312","22114132","11214133","22123222","11223223","22132312","11232313","31232311","12114223","32114221","12123313","32123311","21223312","22114312","11214313","31214311","13141132","22241131","11341132","23132131","12232132","23141221","12241222","21341221","13123132","13132222","11323132","13141312","11332222","22241311","11341312","23114131","12214132","23123221","12223222","23132311","12232312","21332311","13114222","13123312","11314222","22223311","11323312","23114311","12214312","21314311","14141131","12341131","13232131","13241221","11432131","14123131","14132221","12323131","14141311","12332221","12341311","13214131","13223221","11414131","13232311","11423221","11432311","14114221","14123311","12314221","12323311","13214311","11414311","11151133","31151131","21142132","21151222","11133133","31133131","11142223","31142221","11151313","31151311","21124132","21133222","21142312","11115133","31115131","11124223","31124221","11133313","31133311","21115222","21124312","12151132","21251131","22142131","11242132","22151221","11251222","12133132","12142222","12151312","21251311","22124131","11224132","22133221","11233222","22142311","11242312","12115132","12124222","12133312","21233311","22115221","11215222","22124311","11224312","13151131","12242131","12251221","13133131","13142221","11333131","13151311","11342221","12224131","12233221","12242311","13115131","13124221","11315131","13133311","11324221","11333311","12215221","12224311","11161132","21152131","21161221","11143132","11152222","11161312","21134131","21143221","21152311","11125132","11134222","11143312","21116131","21125221","21134311","12161131","11252131","12143131","12152221","12161311","11234131","11243221","11252311","12125131","12134221","12143311","11216131","11225221","11234311","11111236","31111234","51111232","21111325","41111323","61111321","11111416","31111414","51111412","31211143","51211141","12111235","32111233","52111231","21211234","41211232","22111324","42111322","11211325","31211323","51211321","12111415","32111413","52111411","21211414","41211412","12211144","32211142","21311143","41311141","13111234","33111232","22211233","42211231","11311234","31311232","23111323","43111321","12211324","32211322","21311323","41311321","13111414","33111412","22211413","42211411","11311414","31311412","13211143","33211141","22311142","11411143","31411141","14111233","34111231","23211232","12311233","32311231","21411232","24111322","13211323","33211321","22311322","11411323","31411321","14111413","34111411","23211412","12311413","32311411","21411412","14211142","23311141","12411142","21511141","15111232","24211231","13311232","22411231","11511232","25111321","14211322","23311321","12411322","21511321","15111412","24211411","13311412","22411411","11511412","15211141","13411141","11611141","16111231","14311231","12511231","15211321","13411321","11611321","16111411","14311411","12511411","21121144","41121142","11112145","31112143","51112141","11121235","31121233","51121231","21112234","41112232","21121324","41121322","11112325","31112323","51112321","11121415","31121413","51121411","21112414","41112412","22121143","42121141","11221144","31221142","12112144","32112142","12121234","32121232","21221233","41221231","22112233","42112231","11212234","22121323","42121321","11221324","31221322","12112324","32112322","12121414","32121412","21221413","41221411","22112413","42112411","11212414","31212412","23121142","12221143","32221141","21321142","13112143","33112141","13121233","33121231","11312143","22221232","11321233","31321231","23112232","12212233","23121322","12221323","32221321","21321322","13112323","33112321","13121413","33121411","11312323","22221412","11321413","31321411","23112412","12212413","32212411","21312412","24121141","13221142","22321141","11421142","14112142","14121232","12312142","23221231","12321232","21421231","24112231","13212232","24121321","13221322","11412232","22321321","11421322","14112322","14121412","12312322","23221411","12321412","21421411","24112411","13212412","22312411","11412412","14221141","12421141","15112141","15121231","13312141","13321231","11512141","11521231","14212231","14221321","12412231","12421321","15112321","15121411","13312321","13321411","11512321","11521411","14212411","12412411","21131143","41131141","11122144","31122142","11131234","31131232","21113143","41113141","21122233","41122231","21131323","41131321","11113234","31113232","11122324","31122322","11131414","31131412","21113323","41113321","21122413","41122411","11113414","31113412","22131142","11231143","31231141","12122143","32122141","12131233","32131231","21231232","22113142","11213143","22122232","11222233","22131322","11231323","31231321","12113233","32113231","12122323","32122321","12131413","32131411","21231412","22113322","11213323","22122412","11222413","31222411","12113413","32113411","21213412","23131141","12231142","21331141","13122142","13131232","11322142","22231231","11331232","23113141","12213142","23122231","12222232","23131321","12231322","21331321","13113232","13122322","11313232","13131412","11322322","22231411","11331412","23113321","12213322","23122411","12222412","21322411","13113412","22213411","11313412","13231141","11431141","14122141","14131231","12322141","12331231","13213141","13222231","11413141","13231321","11422231","11431321","14113231","14122321","12313231","14131411","12322321","12331411","13213321","13222411","11413321","11422411","14113411","12313411","21141142","11132143","31132141","11141233","31141231","21123142","21132232","21141322","11114143","31114141","11123233","31123231","11132323","31132321","11141413","31141411","21114232","21123322","21132412","11114323","31114321","11123413","31123411","22141141","11241142","12132142","12141232","21241231","22123141","11223142","22132231","11232232","22141321","11241322","12114142","12123232","12132322","12141412","21241411","22114231","11214232","22123321","11223322","22132411","11232412","12114322","12123412","21223411","12241141","13132141","13141231","11332141","11341231","12223141","12232231","12241321","13114141","13123231","11314141","13132321","11323231","13141411","11332321","11341411","12214231","12223321","12232411","13114321","13123411","11314321","11323411","21151141","11142142","11151232","21133141","21142231","21151321","11124142","11133232","11142322","11151412","21115141","21124231","21133321","21142411","11115232","11124322","11133412","11251141","12142141","12151231","11233141","11242231","11251321","12124141","12133231","12142321","12151411","11215141","11224231","11233321","11242411","12115231","12124321","12133411","11152141","11161231","11134141","11143231","11152321","11161411","11116141","11125231","11134321","11143411","21111244","41111242","11111335","31111333","51111331","21111424","41111422","11111515","31111513","51111511","21211153","41211151","22111243","42111241","11211244","31211242","12111334","32111332","21211333","41211331","22111423","42111421","11211424","31211422","12111514","32111512","21211513","41211511","22211152","11311153","31311151","23111242","12211243","32211241","21311242","13111333","33111331","22211332","11311333","31311331","23111422","12211423","32211421","21311422","13111513","33111511","22211512","11311513","31311511","23211151","12311152","21411151","24111241","13211242","22311241","11411242","14111332","23211331","12311332","21411331","24111421","13211422","22311421","11411422","14111512","23211511","12311512","21411511","13311151","11511151","14211241","12411241","15111331","13311331","11511331","14211421","12411421","15111511","13311511","11511511","31121152","21112153","41112151","21121243","41121241","11112244","31112242","11121334","31121332","21112333","41112331","21121423","41121421","11112424","31112422","11121514","31121512","21112513","41112511","12121153","32121151","21221152","22112152","11212153","22121242","11221243","31221241","12112243","32112241","12121333","32121331","21221332","22112332","11212333","22121422","11221423","31221421","12112423","32112421","12121513","32121511","21221512","22112512","11212513","31212511","13121152","22221151","11321152","23112151","12212152","23121241","12221242","21321241","13112242","13121332","11312242","22221331","11321332","23112331","12212332","23121421","12221422","21321421","13112422","13121512","11312422","22221511","11321512","23112511","12212512","21312511","14121151","12321151","13212151","13221241","11412151","11421241","14112241","14121331","12312241","12321331","13212331","13221421","11412331","11421421","14112421","14121511","12312421","12321511","13212511","11412511","11131153","31131151","21122152","21131242","11113153","31113151","11122243","31122241","11131333","31131331","21113242","21122332","21131422","11113333","31113331","11122423","31122421","11131513","31131511","21113422","21122512","12131152","21231151","22122151","11222152","22131241","11231242","12113152","12122242","12131332","21231331","22113241","11213242","22122331","11222332","22131421","11231422","12113332","12122422","12131512","21231511","22113421","11213422","22122511","11222512","13131151","11331151","12222151","12231241","13113151","13122241","11313151","13131331","11322241","11331331","12213241","12222331","12231421","13113331","13122421","11313331","13131511","11322421","11331511","12213421","12222511","11141152","21132151","21141241","11123152","11132242","11141332","21114151","21123241","21132331","21141421","11114242","11123332","11132422","11141512","21114331","21123421","21132511","12141151","11232151","11241241","12123151","12132241","12141331","11214151","11223241","11232331","11241421","12114241","12123331","12132421","12141511","11214331","11223421","11232511","11151151","11133151","11142241","11151331","11115151","11124241","11133331","11142421","11151511","11111254","31111252","21111343","41111341","11111434","31111432","21111523","41111521","11111614","31111612","31211161","12111253","32111251","21211252","22111342","11211343","31211341","12111433","32111431","21211432","22111522","11211523","31211521","12111613","32111611","21211612","12211162","21311161","13111252","22211251","11311252","23111341","12211342","21311341","13111432","22211431","11311432","23111521","12211522","21311521","13111612","22211611","11311612","13211161","11411161","14111251","12311251","13211341","11411341","14111431","12311431","13211521","11411521","14111611","12311611","21121162","11112163","31112161","11121253","31121251","21112252","21121342","11112343","31112341","11121433","31121431","21112432","21121522","11112523","31112521","11121613","31121611","22121161","11221162","12112162","12121252","21221251","22112251","11212252","22121341","11221342","12112342","12121432","21221431","22112431","11212432","22121521","11221522","12112522","12121612","21221611","12221161","13112161","13121251","11312161","11321251","32121115","52121113","21221116","41221114","61221112","22112116","42112114","31212115","51212113","13121116","33121114","22221115","42221113","11321116","31321114","51321112","23112115","43112113","12212116","32212114","52212112","21312115","41312113","61312111","14121115","34121113","23221114","43221112","12321115","32321113","52321111","21421114","41421112","24112114","13212115","33212113","22312114","42312112","11412115","31412113","51412111","15121114","24221113","13321114","33321112","22421113","42421111","11521114","31521112","25112113","14212114","34212112","23312113","43312111","12412114","32412112","21512113","41512111","16121113","25221112","14321113","34321111","23421112","12521113","32521111","15212113","24312112","13412113","33412111","22512112","11612113","31612111","31131115","51131113","21122116","41122114","61122112","31113115","51113113","12131116","32131114","52131112","21231115","41231113","61231111","22122115","42122113","11222116","31222114","51222112","12113116","32113114","52113112","21213115","41213113","61213111","13131115","33131113","22231114","42231112","11331115","31331113","51331111","23122114","43122112","12222115","32222113","52222111","21322114","41322112","13113115","33113113","22213114","42213112","11313115","31313113","51313111","14131114","34131112","23231113","43231111","12331114","32331112","21431113","41431111","24122113","13222114","33222112","22322113","42322111","11422114","31422112","14113114","34113112","23213113","43213111","12313114","32313112","21413113","41413111","15131113","24231112","13331113","33331111","22431112","25122112","14222113","34222111","23322112","12422113","32422111","21522112","15113113","24213112","13313113","33313111","22413112","11513113","31513111","16131112","25231111","14331112","23431111","15222112","24322111","13422112","22522111","16113112","25213111","14313112","23413111","12513112","21613111","11141116","31141114","51141112","21132115","41132113","61132111","11123116","31123114","51123112","21114115","41114113","61114111","12141115","32141113","52141111","21241114","41241112","22132114","42132112","11232115","31232113","51232111","12123115","32123113","52123111","21223114","41223112","22114114","42114112","11214115","31214113","51214111","13141114","33141112","22241113","42241111","11341114","31341112","23132113","43132111","12232114","32232112","21332113","41332111","13123114","33123112","22223113","42223111","11323114","31323112","23114113","43114111","12214114","32214112","21314113","41314111","14141113","34141111","23241112","12341113","32341111","24132112","13232113","33232111","22332112","11432113","31432111","14123113","34123111","23223112","12323113","32323111","21423112","24114112","13214113","33214111","22314112","11414113","31414111","15141112","24241111","13341112","25132111","14232112","23332111","12432112","15123112","24223111","13323112","22423111","11523112","25114111","14214112","23314111","12414112","21514111","16141111","14341111","15232111","13432111","16123111","14323111","12523111","15214111","13414111","11614111","11151115","31151113","51151111","21142114","41142112","11133115","31133113","51133111","21124114","41124112","11115115","31115113","51115111","12151114","32151112","21251113","41251111","22142113","42142111","11242114","31242112","12133114","32133112","21233113","41233111","22124113","42124111","11224114","31224112","12115114","32115112","21215113","41215111","13151113","33151111","22251112","23142112","12242113","32242111","21342112","13133113","33133111","22233112","11333113","31333111","23124112","12224113","32224111","21324112","13115113","33115111","22215112","11315113","31315111","14151112","23251111","24142111","13242112","22342111","14133112","23233111","12333112","21433111","24124111","13224112","22324111","11424112","14115112","23215111","12315112","21415111","15151111","14242111","15133111","13333111","14224111","12424111","15115111","13315111","11515111","11161114","31161112","21152113","41152111","11143114","31143112","21134113","41134111","11125114","31125112","21116113","41116111","12161113","32161111","22152112","11252113","31252111","12143113","32143111","21243112","22134112","11234113","31234111","12125113","32125111","21225112","22116112","11216113","31216111","13161112","23152111","12252112","13143112","22243111","11343112","23134111","12234112","21334111","13125112","22225111","11325112","23116111","12216112","21316111","14161111","13252111","14143111","12343111","13234111","11434111","14125111","12325111","13216111","11416111","31111216","51111214","31211125","51211123","32111215","52111213","21211216","41211214","61211212","12211126","32211124","52211122","21311125","41311123","61311121","13111216","33111214","22211215","42211213","11311216","31311214","51311212","13211125","33211123","22311124","42311122","11411125","31411123","51411121","14111215","34111213","23211214","43211212","12311215","32311213","52311211","21411214","41411212","14211124","34211122","23311123","43311121","12411124","32411122","21511123","41511121","15111214","24211213","13311214","33311212","22411213","42411211","11511214","31511212","15211123","24311122","13411123","33411121","22511122","11611123","31611121","16111213","25211212","14311213","34311211","23411212","12511213","32511211","21611212","21121126","41121124","61121122","31112125","51112123","31121215","51121213","21112216","41112214","61112212","22121125","42121123","11221126","31221124","51221122","12112126","32112124","52112122","12121216","32121214","52121212","21221215","41221213","61221211","22112215","42112213","11212216","31212214","51212212","23121124","43121122","12221125","32221123","52221121","21321124","41321122","13112125","33112123","13121215","33121213","11312125","22221214","42221212","11321215","31321213","51321211","23112214","43112212","12212215","32212213","52212211","21312214","41312212","24121123","13221124","33221122","22321123","42321121","11421124","31421122","14112124","34112122","14121214","34121212","12312124","23221213","43221211","12321214","32321212","21421213","41421211","24112213","13212214","33212212","22312213","42312211","11412214","31412212","25121122","14221123","34221121","23321122","12421123","32421121","21521122","15112123","15121213","13312123","24221212","13321213","33321211","11512123","22421212","11521213","31521211","25112212","14212213","34212211","23312212","12412213","32412211","21512212","15221122","24321121","13421122","22521121","16112122","16121212","14312122","25221211","14321212","12512122","23421211","12521212","15212212","24312211","13412212","22512211","11612212","21131125","41131123","61131121","11122126","31122124","51122122","11131216","31131214","51131212","21113125","41113123","61113121","21122215","41122213","61122211","11113216","31113214","51113212","22131124","42131122","11231125","31231123","51231121","12122125","32122123","52122121","12131215","32131213","52131211","21231214","41231212","22113124","42113122","11213125","22122214","42122212","11222215","31222213","51222211","12113215","32113213","52113211","21213214","41213212","23131123","43131121","12231124","32231122","21331123","41331121","13122124","33122122","13131214","33131212","11322124","22231213","42231211","11331214","31331212","23113123","43113121","12213124","23122213","43122211","12222214","32222212","21322213","41322211","13113214","33113212","22213213","42213211","11313214","31313212","24131122","13231123","33231121","22331122","11431123","31431121","14122123","34122121","14131213","34131211","12322123","23231212","12331213","32331211","21431212","24113122","13213123","24122212","13222213","33222211","11413123","22322212","11422213","31422211","14113213","34113211","23213212","12313213","32313211","21413212","25131121","14231122","23331121","12431122","15122122","15131212","13322122","24231211","13331212","11522122","22431211","25113121","14213122","25122211","14222212","12413122","23322211","12422212","21522211","15113212","24213211","13313212","22413211","11513212","15231121","13431121","16122121","16131211","14322121","14331211","12522121","15213121","15222211","13413121","13422211","11613121","16113211","14313211","12513211","21141124","41141122","11132125","31132123","51132121","11141215","31141213","51141211","21123124","41123122","21132214","41132212","11114125","31114123","51114121","11123215","31123213","51123211","21114214","41114212","22141123","42141121","11241124","31241122","12132124","32132122","12141214","32141212","21241213","41241211","22123123","42123121","11223124","22132213","42132211","11232214","31232212","12114124","32114122","12123214","32123212","21223213","41223211","22114213","42114211","11214214","31214212","23141122","12241123","32241121","21341122","13132123","33132121","13141213","33141211","11332123","22241212","11341213","31341211","23123122","12223123","23132212","12232213","32232211","21332212","13114123","33114121","13123213","33123211","11314123","22223212","11323213","31323211","23114212","12214213","32214211","21314212","24141121","13241122","22341121","14132122","14141212","12332122","23241211","12341212","24123121","13223122","24132211","13232212","11423122","22332211","11432212","14114122","14123212","12314122","23223211","12323212","21423211","24114211","13214212","22314211","11414212","14241121","15132121","15141211","13332121","13341211","14223121","14232211","12423121","12432211","15114121","15123211","13314121","13323211","11514121","11523211","14214211","12414211","21151123","41151121","11142124","31142122","11151214","31151212","21133123","41133121","21142213","41142211","11124124","31124122","11133214","31133212","21115123","41115121","21124213","41124211","11115214","31115212","22151122","11251123","31251121","12142123","32142121","12151213","32151211","21251212","22133122","11233123","22142212","11242213","31242211","12124123","32124121","12133213","32133211","21233212","22115122","11215123","22124212","11224213","31224211","12115213","32115211","21215212","23151121","12251122","13142122","13151212","11342122","22251211","23133121","12233122","23142211","12242212","21342211","13124122","13133212","11324122","22233211","11333212","23115121","12215122","23124211","12224212","21324211","13115212","22215211","11315212","13251121","14142121","14151211","12342121","13233121","13242211","11433121","14124121","14133211","12324121","12333211","13215121","13224211","11415121","11424211","14115211","12315211","21161122","11152123","31152121","11161213","31161211","21143122","21152212","11134123","31134121","11143213","31143211","21125122","21134212","11116123","31116121","11125213","31125211","22161121","12152122","12161212","22143121","11243122","22152211","11252212","12134122","12143212","21243211","22125121","11225122","22134211","11234212","12116122","12125212","21225211","13152121","13161211","12243121","12252211","13134121","13143211","11334121","11343211","12225121","12234211","13116121","13125211","11316121","11325211","21111226","41111224","61111222","31111315","51111313","21211135","41211133","61211131","22111225","42111223","11211226","31211224","51211222","12111316","32111314","52111312","21211315","41211313","61211311","22211134","42211132","11311135","31311133","51311131","23111224","43111222","12211225","32211223","52211221","21311224","41311222","13111315","33111313","22211314","42211312","11311315","31311313","51311311","23211133","43211131","12311134","32311132","21411133","41411131","24111223","13211224","33211222","22311223","42311221","11411224","31411222","14111314","34111312","23211313","43211311","12311314","32311312","21411313","41411311","24211132","13311133","33311131","22411132","11511133","31511131","25111222","14211223","34211221","23311222","12411223","32411221","21511222","15111313","24211312","13311313","33311311","22411312","11511313","31511311","25211131","14311132","23411131","12511132","21611131","15211222","24311221","13411222","22511221","11611222","16111312","25211311","14311312","23411311","12511312","21611311","31121134","51121132","21112135","41112133","61112131","21121225","41121223","61121221","11112226","31112224","51112222","11121316","31121314","51121312","21112315","41112313","61112311","12121135","32121133","52121131","21221134","41221132","22112134","42112132","11212135","22121224","42121222","11221225","31221223","51221221","12112225","32112223","52112221","12121315","32121313","52121311","21221314","41221312","22112314","42112312","11212315","31212313","51212311","13121134","33121132","22221133","42221131","11321134","31321132","23112133","43112131","12212134","23121223","43121221","12221224","32221222","21321223","41321221","13112224","33112222","13121314","33121312","11312224","22221313","42221311","11321314","31321312","23112313","43112311","12212314","32212312","21312313","41312311","14121133","34121131","23221132","12321133","32321131","21421132","24112132","13212133","24121222","13221223","33221221","11412133","22321222","11421223","31421221","14112223","34112221","14121313","34121311","12312223","23221312","12321313","32321311","21421312","24112312","13212313","33212311","22312312","11412313","31412311","15121132","24221131","13321132","22421131"]),$a(["22121116","42121114","31221115","51221113","32112115","52112113","21212116","41212114","61212112","23121115","43121113","12221116","32221114","52221112","21321115","41321113","61321111","13112116","33112114","22212115","42212113","11312116","31312114","51312112","24121114","13221115","33221113","22321114","42321112","11421115","31421113","51421111","14112115","34112113","23212114","43212112","12312115","32312113","52312111","21412114","41412112","25121113","14221114","34221112","23321113","43321111","12421114","32421112","21521113","41521111","15112114","24212113","13312114","33312112","22412113","42412111","11512114","31512112","15221113","24321112","13421113","33421111","22521112","16112113","25212112","14312113","34312111","23412112","12512113","32512111","21612112","21131116","41131114","61131112","31122115","51122113","21113116","41113114","61113112","22131115","42131113","11231116","31231114","51231112","12122116","32122114","52122112","21222115","41222113","61222111","22113115","42113113","11213116","31213114","51213112","23131114","43131112","12231115","32231113","52231111","21331114","41331112","13122115","33122113","22222114","42222112","11322115","31322113","51322111","23113114","43113112","12213115","32213113","52213111","21313114","41313112","24131113","13231114","33231112","22331113","42331111","11431114","31431112","14122114","34122112","23222113","43222111","12322114","32322112","21422113","41422111","24113113","13213114","33213112","22313113","42313111","11413114","31413112","25131112","14231113","34231111","23331112","12431113","32431111","15122113","24222112","13322113","33322111","22422112","11522113","31522111","25113112","14213113","34213111","23313112","12413113","32413111","21513112","15231112","24331111","13431112","16122112","25222111","14322112","23422111","12522112","15213112","24313111","13413112","22513111","11613112","21141115","41141113","61141111","11132116","31132114","51132112","21123115","41123113","61123111","11114116","31114114","51114112","22141114","42141112","11241115","31241113","51241111","12132115","32132113","52132111","21232114","41232112","22123114","42123112","11223115","31223113","51223111","12114115","32114113","52114111","21214114","41214112","23141113","43141111","12241114","32241112","21341113","41341111","13132114","33132112","22232113","42232111","11332114","31332112","23123113","43123111","12223114","32223112","21323113","41323111","13114114","33114112","22214113","42214111","11314114","31314112","24141112","13241113","33241111","22341112","14132113","34132111","23232112","12332113","32332111","21432112","24123112","13223113","33223111","22323112","11423113","31423111","14114113","34114111","23214112","12314113","32314111","21414112","25141111","14241112","23341111","15132112","24232111","13332112","22432111","25123111","14223112","23323111","12423112","21523111","15114112","24214111","13314112","22414111","11514112","15241111","16132111","14332111","15223111","13423111","16114111","14314111","12514111","21151114","41151112","11142115","31142113","51142111","21133114","41133112","11124115","31124113","51124111","21115114","41115112","22151113","42151111","11251114","31251112","12142114","32142112","21242113","41242111","22133113","42133111","11233114","31233112","12124114","32124112","21224113","41224111","22115113","42115111","11215114","31215112","23151112","12251113","32251111","13142113","33142111","22242112","11342113","31342111","23133112","12233113","32233111","21333112","13124113","33124111","22224112","11324113","31324111","23115112","12215113","32215111","21315112","24151111","13251112","14142112","23242111","12342112","24133111","13233112","22333111","11433112","14124112","23224111","12324112","21424111","24115111","13215112","22315111","11415112","14251111","15142111","13342111","14233111","12433111","15124111","13324111","11524111","14215111","12415111","21161113","41161111","11152114","31152112","21143113","41143111","11134114","31134112","21125113","41125111","11116114","31116112","22161112","12152113","32152111","21252112","22143112","11243113","31243111","12134113","32134111","21234112","22125112","11225113","31225111","12116113","32116111","21216112","23161111","13152112","22252111","23143111","12243112","21343111","13134112","22234111","11334112","23125111","12225112","21325111","13116112","22216111","11316112","14152111","13243111","14134111","12334111","13225111","11425111","14116111","12316111","41111215","61111213","21211126","41211124","61211122","22111216","42111214","31211215","51211213","22211125","42211123","11311126","31311124","51311122","23111215","43111213","12211216","32211214","52211212","21311215","41311213","61311211","23211124","43211122","12311125","32311123","52311121","21411124","41411122","24111214","13211215","33211213","22311214","42311212","11411215","31411213","51411211","24211123","13311124","33311122","22411123","42411121","11511124","31511122","25111213","14211214","34211212","23311213","43311211","12411214","32411212","21511213","41511211","25211122","14311123","34311121","23411122","12511123","32511121","21611122","15211213","24311212","13411213","33411211","22511212","11611213","31611211","31121125","51121123","21112126","41112124","61112122","21121216","41121214","61121212","31112215","51112213","12121126","32121124","52121122","21221125","41221123","61221121","22112125","42112123","11212126","22121215","42121213","11221216","31221214","51221212","12112216","32112214","52112212","21212215","41212213","61212211","13121125","33121123","22221124","42221122","11321125","31321123","51321121","23112124","43112122","12212125","23121214","43121212","12221215","32221213","52221211","21321214","41321212","13112215","33112213","22212214","42212212","11312215","31312213","51312211","14121124","34121122","23221123","43221121","12321124","32321122","21421123","41421121","24112123","13212124","24121213","13221214","33221212","11412124","22321213","42321211","11421214","31421212","14112214","34112212","23212213","43212211","12312214","32312212","21412213","41412211","15121123","24221122","13321123","33321121","22421122","11521123","31521121","25112122","14212123","25121212","14221213","34221211","12412123","23321212","12421213","32421211","21521212","15112213","24212212","13312213","33312211","22412212","11512213","31512211","16121122","25221121","14321122","23421121","12521122","15212122","15221212","13412122","24321211","13421212","11612122","22521211","16112212","25212211","14312212","23412211","12512212","21612211","11131126","31131124","51131122","21122125","41122123","61122121","21131215","41131213","61131211","11113126","31113124","51113122","11122216","31122214","51122212","21113215","41113213","61113211","12131125","32131123","52131121","21231124","41231122","22122124","42122122","11222125","22131214","42131212","11231215","31231213","51231211","12113125","32113123","52113121","12122215","32122213","52122211","21222214","41222212","22113214","42113212","11213215","31213213","51213211","13131124","33131122","22231123","42231121","11331124","31331122","23122123","43122121","12222124","23131213","43131211","12231214","32231212","21331213","41331211","13113124","33113122","13122214","33122212","11313124","22222213","42222211","11322214","31322212","23113213","43113211","12213214","32213212","21313213","41313211","14131123","34131121","23231122","12331123","32331121","21431122","24122122","13222123","24131212","13231213","33231211","11422123","22331212","11431213","31431211","14113123","34113121","14122213","34122211","12313123","23222212","12322213","32322211","21422212","24113212","13213213","33213211","22313212","11413213","31413211","15131122","24231121","13331122","22431121","25122121","14222122","25131211","14231212","12422122","23331211","12431212","15113122","15122212","13313122","24222211","13322212","11513122","22422211","11522212","25113211","14213212","23313211","12413212","21513211","16131121","14331121","15222121","15231211","13422121","13431211","16113121","16122211","14313121","14322211","12513121","12522211","15213211","13413211","11613211","11141125","31141123","51141121","21132124","41132122","21141214","41141212","11123125","31123123","51123121","11132215","31132213","51132211","21114124","41114122","21123214","41123212","11114215","31114213","51114211","12141124","32141122","21241123","41241121","22132123","42132121","11232124","22141213","42141211","11241214","31241212","12123124","32123122","12132214","32132212","21232213","41232211","22114123","42114121","11214124","22123213","42123211","11223214","31223212","12114214","32114212","21214213","41214211","13141123","33141121","22241122","11341123","31341121","23132122","12232123","23141212","12241213","32241211","21341212","13123123","33123121","13132213","33132211","11323123","22232212","11332213","31332211","23114122","12214123","23123212","12223213","32223211","21323212","13114213","33114211","22214212","11314213","31314211","14141122","23241121","12341122","24132121","13232122","24141211","13241212","11432122","22341211","14123122","14132212","12323122","23232211","12332212","21432211","24114121","13214122","24123211","13223212","11414122","22323211","11423212","14114212","23214211","12314212","21414211","15141121","13341121","14232121","14241211","12432121","15123121","15132211","13323121","13332211","11523121","14214121","14223211","12414121","12423211","15114211","13314211","11514211","11151124","31151122","21142123","41142121","21151213","41151211","11133124","31133122","11142214","31142212","21124123","41124121","21133213","41133211","11115124","31115122","11124214","31124212","21115213","41115211","12151123","32151121","21251122","22142122","11242123","22151212","11251213","31251211","12133123","32133121","12142213","32142211","21242212","22124122","11224123","22133212","11233213","31233211","12115123","32115121","12124213","32124211","21224212","22115212","11215213","31215211","13151122","22251121","23142121","12242122","23151211","12251212","13133122","13142212","11333122","22242211","11342212","23124121","12224122","23133211","12233212","21333211","13115122","13124212","11315122","22224211","11324212","23115211","12215212","21315211","14151121","13242121","13251211","14133121","14142211","12333121","12342211","13224121","13233211","11424121","11433211","14115121","14124211","12315121","12324211","13215211","11415211","11161123","31161121","21152122","21161212","11143123","31143121","11152213","31152211","21134122","21143212","11125123","31125121","11134213","31134211","21116122","21125212","12161122","22152121","11252122","22161211","12143122","12152212","21252211","22134121","11234122","22143211","11243212","12125122","12134212","21234211","22116121","11216122","22125211","11225212","13161121","12252121","13143121","13152211","11343121","12234121","12243211","13125121","13134211","11325121","11334211","12216121","12225211","31111225","51111223","21111316","41111314","61111312","31211134","51211132","12111226","32111224","52111222","21211225","41211223","61211221","22111315","42111313","11211316","31211314","51211312","12211135","32211133","52211131","21311134","41311132","13111225","33111223","22211224","42211222","11311225","31311223","51311221","23111314","43111312","12211315","32211313","52211311","21311314","41311312","13211134","33211132","22311133","42311131","11411134","31411132","14111224","34111222","23211223","43211221","12311224","32311222","21411223","41411221","24111313","13211314","33211312","22311313","42311311","11411314","31411312","14211133","34211131","23311132","12411133","32411131","21511132","15111223","24211222","13311223","33311221","22411222","11511223","31511221","25111312","14211313","34211311","23311312","12411313","32411311","21511312","15211132","24311131","13411132","22511131","11611132","16111222","25211221","14311222","23411221","12511222","21611221","15211312","24311311","13411312","22511311","11611312","21121135","41121133","61121131","11112136","31112134","51112132","11121226","31121224","51121222","21112225","41112223","61112221","21121315","41121313","61121311","11112316","31112314","51112312","22121134","42121132","11221135","31221133","51221131","12112135","32112133","52112131","12121225","32121223","52121221","21221224","41221222","22112224","42112222","11212225","22121314","42121312","11221315","31221313","51221311","12112315","32112313","52112311","21212314","41212312","23121133","43121131","12221134","32221132","21321133","41321131","13112134","33112132","13121224","33121222","11312134","22221223","42221221","11321224","31321222","23112223","43112221","12212224","23121313","43121311","12221314","32221312","21321313","41321311","13112314","33112312","22212313","42212311","11312314","31312312","24121132","13221133","33221131","22321132","11421133","31421131","14112133","34112131","14121223","34121221","12312133","23221222","12321223","32321221","21421222","24112222","13212223","24121312","13221313","33221311","11412223","22321312","11421313","31421311","14112313","34112311","23212312","12312313","32312311","21412312","25121131","14221132","23321131","12421132","21521131","15112132","15121222","13312132","24221221","13321222","11512132","22421221","11521222","25112221","14212222","25121311","14221312","12412222","23321311","12421312","21521311","15112312","24212311","13312312","22412311","11512312","15221131","13421131","16112131","16121221","14312131","14321221","12512131","12521221","15212221","15221311","13412221","13421311","11612221","16112311","14312311","12512311","21131134","41131132","11122135","31122133","51122131","11131225","31131223","51131221","21113134","41113132","21122224","41122222","21131314","41131312","11113225","31113223","51113221","11122315","31122313","51122311","21113314","41113312","22131133","42131131","11231134","31231132","12122134","32122132","12131224","32131222","21231223","41231221","22113133","42113131","11213134","22122223","42122221","11222224","22131313","42131311","11231314","31231312","12113224","32113222","12122314","32122312","21222313","41222311","22113313","42113311","11213314","31213312","23131132","12231133","32231131","21331132","13122133","33122131","13131223","33131221","11322133","22231222","11331223","31331221","23113132","12213133","23122222","12222223","23131312","12231313","32231311","21331312","13113223","33113221","13122313","33122311","11313223","22222312","11322313","31322311","23113312","12213313","32213311","21313312","24131131","13231132","22331131","11431132","14122132","14131222","12322132","23231221","12331222","21431221","24113131","13213132","24122221","13222222","24131311","11413132","13231312","11422222","22331311","11431312","14113222","14122312","12313222","23222311","12322312","21422311","24113311","13213312","22313311","11413312","14231131","12431131","15122131","15131221","13322131","13331221","11522131","14213131","14222221","12413131","14231311","12422221","12431311","15113221","15122311","13313221","13322311","11513221","11522311","14213311","12413311","21141133","41141131","11132134","31132132","11141224","31141222","21123133","41123131","21132223","41132221","21141313","41141311","11114134","31114132","11123224","31123222","11132314","31132312","21114223","41114221","21123313","41123311","11114314","31114312","22141132","11241133","31241131","12132133","32132131","12141223","32141221","21241222","22123132","11223133","22132222","11232223","22141312","11241313","31241311","12114133","32114131","12123223","32123221","12132313","32132311","21232312","22114222","11214223","22123312","11223313","31223311","12114313","32114311","21214312","23141131","12241132","21341131","13132132","13141222","11332132","22241221","11341222","23123131","12223132","23132221","12232222","23141311","12241312","21341311","13114132","13123222","11314132","13132312","11323222","22232311","11332312","23114221","12214222","23123311","12223312","21323311","13114312","22214311","11314312","13241131","14132131","14141221","12332131","12341221","13223131","13232221","11423131","13241311","11432221","14114131","14123221","12314131","14132311","12323221","12332311","13214221","13223311","11414221","11423311","14114311","12314311","21151132","11142133","31142131","11151223","31151221","21133132","21142222","21151312","11124133","31124131","11133223","31133221","11142313","31142311","21115132","21124222","21133312","11115223","31115221","11124313","31124311","22151131","11251132","12142132","12151222","21251221","22133131","11233132","22142221","11242222","22151311","11251312","12124132","12133222","12142312","21242311","22115131","11215132","22124221","11224222","22133311","11233312","12115222","12124312","21224311","12251131","13142131","13151221","11342131","12233131","12242221","12251311","13124131","13133221","11324131","13142311","11333221","11342311","12215131","12224221","12233311","13115221","13124311","11315221","11324311","21161131","11152132","11161222","21143131","21152221","21161311","11134132","11143222","11152312","21125131","21134221","21143311","11116132","11125222","11134312","12152131","12161221","11243131","11252221","12134131","12143221","12152311","11225131","11234221","11243311","12116131","12125221","12134311","21111235","41111233","61111231","11111326","31111324","51111322","21111415","41111413","61111411","21211144","41211142","22111234","42111232","11211235","31211233","51211231","12111325","32111323","52111321","21211324","41211322","22111414","42111412","11211415","31211413","51211411","22211143","42211141","11311144","31311142","23111233","43111231","12211234","32211232","21311233","41311231","13111324","33111322","22211323","42211321","11311324","31311322","23111413","43111411","12211414","32211412","21311413","41311411","23211142","12311143","32311141","21411142","24111232","13211233","33211231","22311232","11411233","31411231","14111323","34111321","23211322","12311323","32311321","21411322","24111412","13211413","33211411","22311412","11411413","31411411","24211141","13311142","22411141","11511142","25111231","14211232","23311231","12411232","21511231","15111322","24211321","13311322","22411321","11511322","25111411","14211412","23311411","12411412","21511411","14311141","12511141","15211231","13411231","11611231","16111321","14311321","12511321","15211411","13411411","11611411","31121143","51121141","21112144","41112142","21121234","41121232","11112235","31112233","51112231","11121325","31121323","51121321","21112324","41112322","21121414","41121412","11112415","31112413","51112411","12121144","32121142","21221143","41221141","22112143","42112141","11212144","22121233","42121231","11221234","31221232","12112234","32112232","12121324","32121322","21221323","41221321","22112323","42112321","11212324","22121413","42121411","11221414","31221412","12112414","32112412","21212413","41212411","13121143","33121141","22221142","11321143","31321141","23112142","12212143","23121232","12221233","32221231","21321232","13112233","33112231","13121323","33121321","11312233","22221322","11321323","31321321","23112322","12212323","23121412","12221413","32221411","21321412","13112413","33112411","22212412","11312413","31312411","14121142","23221141","12321142","21421141","24112141","13212142","24121231","13221232","11412142","22321231","11421232","14112232","14121322","12312232","23221321","12321322","21421321","24112321","13212322","24121411","13221412","11412322","22321411","11421412","14112412","23212411","12312412","21412411","15121141","13321141","11521141","14212141","14221231","12412141","12421231","15112231","15121321","13312231","13321321","11512231","11521321","14212321","14221411","12412321","12421411","15112411","13312411","11512411","11131144","31131142","21122143","41122141","21131233","41131231","11113144","31113142","11122234","31122232","11131324","31131322","21113233","41113231","21122323","41122321","21131413","41131411","11113324","31113322","11122414","31122412","21113413","41113411","12131143","32131141","21231142","22122142","11222143","22131232","11231233","31231231","12113143","32113141","12122233","32122231","12131323","32131321","21231322","22113232","11213233","22122322","11222323","22131412","11231413","31231411","12113323","32113321","12122413","32122411","21222412","22113412","11213413","31213411","13131142","22231141","11331142","23122141","12222142","23131231","12231232","21331231","13113142","13122232","11313142","13131322","11322232","22231321","11331322","23113231","12213232","23122321","12222322","23131411","12231412","21331411","13113322","13122412","11313322","22222411","11322412","23113411","12213412","21313411","14131141","12331141","13222141","13231231","11422141","11431231","14113141","14122231","12313141","14131321","12322231","12331321","13213231","13222321","11413231","13231411","11422321","11431411","14113321","14122411","12313321","12322411","13213411","11413411","11141143","31141141","21132142","21141232","11123143","31123141","11132233","31132231","11141323","31141321","21114142","21123232","21132322","21141412","11114233","31114231","11123323","31123321","11132413","31132411","21114322","21123412","12141142","21241141","22132141","11232142","22141231","11241232","12123142","12132232","12141322","21241321","22114141","11214142","22123231","11223232","22132321","11232322","22141411","11241412","12114232","12123322","12132412","21232411","22114321","11214322","22123411","11223412","13141141","11341141","12232141","12241231","13123141","13132231","11323141","13141321","11332231","11341321","12214141","12223231","12232321","12241411","13114231","13123321","11314231","13132411","11323321","11332411","12214321","12223411","11151142","21142141","21151231","11133142","11142232","11151322","21124141","21133231","21142321","21151411","11115142","11124232","11133322","11142412","21115231","21124321","21133411","12151141","11242141","11251231","12133141","12142231","12151321","11224141","11233231","11242321","11251411","12115141","12124231","12133321","12142411","11215231","11224321","11233411","11161141","11143141","11152231","11161321","11125141","11134231","11143321","11152411","11111245","31111243","51111241","21111334","41111332","11111425","31111423","51111421","21111514","41111512","31211152","12111244","32111242","21211243","41211241","22111333","42111331","11211334","31211332","12111424","32111422","21211423","41211421","22111513","42111511","11211514","31211512","12211153","32211151","21311152","13111243","33111241","22211242","11311243","31311241","23111332","12211333","32211331","21311332","13111423","33111421","22211422","11311423","31311421","23111512","12211513","32211511","21311512","13211152","22311151","11411152","14111242","23211241","12311242","21411241","24111331","13211332","22311331","11411332","14111422","23211421","12311422","21411421","24111511","13211512","22311511","11411512","14211151","12411151","15111241","13311241","11511241","14211331","12411331","15111421","13311421","11511421","14211511","12411511","21121153","41121151","11112154","31112152","11121244","31121242","21112243","41112241","21121333","41121331","11112334","31112332","11121424","31121422","21112423","41112421","21121513","41121511","11112514","31112512","22121152","11221153","31221151","12112153","32112151","12121243","32121241","21221242","22112242","11212243","22121332","11221333","31221331","12112333","32112331","12121423","32121421","21221422","22112422","11212423","22121512","11221513","31221511","12112513","32112511","21212512","23121151","12221152","21321151","13112152","13121242","11312152","22221241","11321242","23112241","12212242","23121331","12221332","21321331","13112332","13121422","11312332","22221421","11321422","23112421","12212422","23121511","12221512","21321511","13112512","22212511","11312512","13221151","11421151","14112151","14121241","12312151","12321241","13212241","13221331","11412241","11421331","14112331","14121421","12312331","12321421","13212421","13221511","11412421","11421511","14112511","12312511","21131152","11122153","31122151","11131243","31131241","21113152","21122242","21131332","11113243","31113241","11122333","31122331","11131423","31131421","21113332","21122422","21131512","11113423","31113421","11122513","31122511","22131151","11231152","12122152","12131242","21231241","22113151","11213152","22122241","11222242","22131331","11231332","12113242","12122332","12131422","21231421","22113331","11213332","22122421","11222422","22131511","11231512","12113422","12122512","21222511","12231151","13122151","13131241","11322151","11331241","12213151","12222241","12231331","13113241","13122331","11313241","13131421","11322331","11331421","12213331","12222421","12231511","13113421","13122511","11313421","11322511","21141151","11132152","11141242","21123151","21132241","21141331","11114152","11123242","11132332","11141422","21114241","21123331","21132421","21141511","11114332","11123422","11132512","11241151","12132151","12141241","11223151","11232241","11241331","12114151","12123241","12132331","12141421","11214241","11223331","11232421","11241511","12114331","12123421","12132511","11142151","11151241","11124151","11133241","11142331","11151421","11115241","11124331","11133421","11142511","21111253","41111251","11111344","31111342","21111433","41111431","11111524","31111522","21111613","41111611","21211162","22111252","11211253","31211251","12111343","32111341","21211342","22111432","11211433","31211431","12111523","32111521","21211522","22111612","11211613","31211611","22211161","11311162","23111251","12211252","21311251","13111342","22211341","11311342","23111431","12211432","21311431","13111522","22211521","11311522","23111611","12211612","21311611","12311161","13211251","11411251","14111341","12311341","13211431","11411431","14111521","12311521","13211611","11411611","31121161","21112162","21121252","11112253","31112251","11121343","31121341","21112342","21121432","11112433","31112431","11121523","31121521","21112522","21121612","12121162","21221161","22112161","11212162","22121251","11221252","12112252","12121342","21221341","22112341","11212342","22121431","11221432","12112432","12121522","21221521","22112521","11212522","22121611","11221612","13121161","11321161","12212161","12221251","13112251","13121341","11312251","11321341","12212341","12221431","13112431","13121521","11312431","11321521","12212521","12221611","11131162","21122161","21131251","11113162"])]);$1.parity=$a(["1001","0101","1100","0011","1010","0110","1111","0000"]);$1.rowbits=$a($1.r);for(var _5z=0,_5y=$f($1.r-1);_5z<=_5y;_5z+=1){$1.i=_5z;$k[$j++]="p";if($1.i!=$f($1.r-1)){$k[$j++]=$g($1.parity,$1.i)}else{$k[$j++]="0000"}var _65=$k[--$j];$1[$k[--$j]]=_65;$1.ccrow=$G($1.ccs,$1.i*8,8);$k[$j++]=Infinity;for(var _6A=0;_6A<=7;_6A+=2){$q($G($1.ccrow,_6A,2));var _6D=$k[--$j];var _6E=$k[--$j];$k[$j++]=$f(_6D+_6E*49)}$1.scrow=$a();$k[$j++]=Infinity;$k[$j++]=10;$k[$j++]=1;$k[$j++]=1;for(var _6G=0;_6G<=3;_6G+=1){$1.j=_6G;$F($g($g($1.patterns,$f($g($1.p,$1.j)-48)),$g($1.scrow,$1.j)),function(){var _6Q=$k[--$j];$k[$j++]=$f(_6Q-48)})}$k[$j++]=4;$k[$j++]=1;$1.sbs=$a();$k[$j++]=Infinity;var _6S=$1.sbs;$k[$j++]=1;for(var _6T=0,_6U=_6S.length;_6T<_6U;_6T++){var _6W=$k[--$j];var _6X=_6W==0?1:0;$k[$j++]=_6W;for(var _6Y=0,_6Z=$g(_6S,_6T);_6Y<_6Z;_6Y++){$k[$j++]=_6X}}$r($a($m()-1));var _6c=$k[--$j];var _6d=$k[--$j];$k[$j++]=_6c;$k[$j++]=_6d;$j--;var _6e=$k[--$j];var _6f=$k[--$j];$k[$j++]=_6e;$k[$j++]=_6f;$j--;$p($1.rowbits,$1.i,$k[--$j])}$k[$j++]=Infinity;for(var _6k=0,_6l=81*$1.sepheight;_6k<_6l;_6k++){$k[$j++]=1}for(var _6o=0,_6n=$f($1.r-2);_6o<=_6n;_6o+=1){$1.i=_6o;for(var _6q=0,_6r=$1.rowheight;_6q<_6r;_6q++){$q($g($1.rowbits,$1.i))}for(var _6w=0,_6x=$1.sepheight;_6w<_6x;_6w++){for(var _6y=0,_6z=10;_6y<_6z;_6y++){$k[$j++]=0}for(var _70=0,_71=70;_70<_71;_70++){$k[$j++]=1}$k[$j++]=0}}for(var _73=0,_74=$1.rowheight;_73<_74;_73++){$q($g($1.rowbits,$f($1.r-1)))}for(var _79=0,_7A=81*$1.sepheight;_79<_7A;_79++){$k[$j++]=1}$1.pixs=$a();var _7G=new Map([["ren",$0.renmatrix],["pixs",$1.pixs],["pixx",81],["pixy",~~($1.pixs.length/81)],["height",~~($1.pixs.length/81)/72],["width",81/72],["opt",$1.options]]);$k[$j++]=_7G;if(!$1.dontdraw){$0.renmatrix()}};$0.flattermarken=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.includetext=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.height=.3;$F($1.barcode,function(){var _3=$k[--$j];if(_3<48||_3>57){$k[$j++]="bwipp.flattermarkenBadCharacter";$k[$j++]="Flattermarken must contain only digits";$0.raiseerror()}});$F($1.options,function(){var _5=$k[--$j];$1[$k[--$j]]=_5});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.height=+$1.height;$F($1.barcode,function(){var _C=$k[--$j];if(_C<48||_C>57){$k[$j++]="bwipp.flattermarkenBadCharacter";$k[$j++]="Flattermarken must contain only digits";$0.raiseerror()}});$1.encs=$a(["0018","0117","0216","0315","0414","0513","0612","0711","0810","0900"]);$1.barchars="1234567890";$1.barlen=$1.barcode.length;$1.sbs=$s($1.barlen*4);$1.txt=$a($1.barlen);for(var _L=0,_K=$1.barlen-1;_L<=_K;_L+=1){$1.i=_L;$x($1.barchars,$G($1.barcode,$1.i,1));$j--;$1.indx=$k[--$j].length;$j-=2;$1.enc=$g($1.encs,$1.indx);$P($1.sbs,$1.i*4,$1.enc);$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),$1.i*9,$1.textyoffset,$1.textfont,$1.textsize]))}$k[$j++]=Infinity;$k[$j++]=Infinity;var _h=$1.sbs;for(var _i=0,_j=_h.length;_i<_j;_i++){$k[$j++]=$g(_h,_i)-48}var _l=$a();$k[$j++]=Infinity;for(var _n=0,_o=~~(($1.sbs.length+1)/2);_n<_o;_n++){$k[$j++]=$1.height}var _q=$a();$k[$j++]=Infinity;for(var _s=0,_t=~~(($1.sbs.length+1)/2);_s<_t;_s++){$k[$j++]=0}var _u=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_l;$k[$j++]="bhs";$k[$j++]=_q;$k[$j++]="bbs";$k[$j++]=_u;$k[$j++]="txt";$k[$j++]=$1.txt;$k[$j++]="opt";$k[$j++]=$1.options;var _x=$d();$k[$j++]=_x;if(!$1.dontdraw){$0.renlinear()}};$0.raw=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.height=+$1.height;$F($1.barcode,function(){var _7=$k[--$j];if(_7<49||_7>57){$k[$j++]="bwipp.rawBadCharacter";$k[$j++]="Raw must contain only digits 1 to 9";$0.raiseerror()}});$k[$j++]=Infinity;$k[$j++]=Infinity;$F($1.barcode,function(){var _9=$k[--$j];$k[$j++]=$f(_9-48)});var _A=$a();$k[$j++]=Infinity;for(var _C=0,_D=~~(($1.barcode.length+1)/2);_C<_D;_C++){$k[$j++]=$1.height}var _F=$a();$k[$j++]=Infinity;for(var _H=0,_I=~~(($1.barcode.length+1)/2);_H<_I;_H++){$k[$j++]=0}var _J=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_A;$k[$j++]="bhs";$k[$j++]=_F;$k[$j++]="bbs";$k[$j++]=_J;$k[$j++]="opt";$k[$j++]=$1.options;var _L=$d();$k[$j++]=_L;if(!$1.dontdraw){$0.renlinear()}};$0.daft=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.height=.175;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.height=+$1.height;$F($1.barcode,function(){var _7=$k[--$j];if(_7!=68&&(_7!=65&&(_7!=70&&_7!=84))){$k[$j++]="bwipp.daftBadCharacter";$k[$j++]="DAFT must contain only characters D, A, F and T";$0.raiseerror()}});$1.barlen=$1.barcode.length;$1.bbs=$a($1.barlen);$1.bhs=$a($1.barlen);for(var _F=0,_E=$1.barlen-1;_F<=_E;_F+=1){$1.i=_F;$1.enc=$G($1.barcode,$1.i,1);if($eq($1.enc,"D")){$p($1.bbs,$1.i,0*$1.height/8);$p($1.bhs,$1.i,5*$1.height/8)}if($eq($1.enc,"A")){$p($1.bbs,$1.i,3*$1.height/8);$p($1.bhs,$1.i,5*$1.height/8)}if($eq($1.enc,"F")){$p($1.bbs,$1.i,0*$1.height/8);$p($1.bhs,$1.i,8*$1.height/8)}if($eq($1.enc,"T")){$p($1.bbs,$1.i,3*$1.height/8);$p($1.bhs,$1.i,2*$1.height/8)}}$k[$j++]=Infinity;var _l=$1.bbs;var _m=$1.bhs;$k[$j++]=Infinity;for(var _o=0,_p=$1.bhs.length-1;_o<_p;_o++){$k[$j++]=1.44;$k[$j++]=1.872}$k[$j++]=1.44;var _q=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="bbs";$k[$j++]=_l;$k[$j++]="bhs";$k[$j++]=_m;$k[$j++]="sbs";$k[$j++]=_q;$k[$j++]="opt";$k[$j++]=$1.options;var _s=$d();$k[$j++]=_s;if(!$1.dontdraw){$0.renlinear()}};$0.symbol=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});var _H=new Map([["fima",function(){$1.sbs=$a([2.25,2.25,2.25,11.25,2.25,11.25,2.25,2.25,2.25]);$1.bhs=$a([.625,.625,.625,.625,.625]);$1.bbs=$a([0,0,0,0,0])}],["fimb",function(){$1.sbs=$a([2.25,6.75,2.25,2.25,2.25,6.25,2.25,2.25,2.25,6.75,2.25]);$1.bhs=$a([.625,.625,.625,.625,.625,.625]);$1.bbs=$a([0,0,0,0,0,0])}],["fimc",function(){$1.sbs=$a([2.25,2.25,2.25,6.75,2.25,6.75,2.25,6.75,2.25,2.25,2.25]);$1.bhs=$a([.625,.625,.625,.625,.625,.625]);$1.bbs=$a([0,0,0,0,0,0])}],["fimd",function(){$1.sbs=$a([2.25,2.25,2.25,2.25,2.25,6.75,2.25,6.75,2.25,2.25,2.25,2.25,2.25]);$1.bhs=$a([.625,.625,.625,.625,.625,.625,.625]);$1.bbs=$a([0,0,0,0,0,0,0])}]]);$1.symbols=_H;var _K=$g($1.symbols,$1.barcode)!==undefined;if(!_K){$k[$j++]="bwipp.symbolUnknownSymbol";$k[$j++]="Unknown symbol name provided";$0.raiseerror()}if($g($1.symbols,$1.barcode)()===true){return true}var _S=new Map([["ren",$0.renlinear],["sbs",$1.sbs],["bhs",$1.bhs],["bbs",$1.bbs],["opt",$1.options]]);$k[$j++]=_S;if(!$1.dontdraw){$0.renlinear()}};$0.pdf417=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.compact=false;$1.eclevel=-1;$1.columns=0;$1.rows=0;$1.rowmult=3;$1.encoding="auto";$1.ccc=false;$1.raw=false;$1.parse=false;$1.parsefnc=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.eclevel=~~$1.eclevel;$1.columns=~~$1.columns;$1.rows=~~$1.rows;$1.rowmult=+$1.rowmult;if($1.raw){$1.encoding="raw"}if($eq($1.encoding,"raw")){$1.datcws=$a($1.barcode.length);$1.i=0;$1.j=0;for(;;){if($1.i==$1.barcode.length){break}$1.cw=~~$z($G($1.barcode,$1.i+1,3));$p($1.datcws,$1.j,$1.cw);$1.i=$1.i+4;$1.j=$1.j+1}$1.datcws=$G($1.datcws,0,$1.j)}if($1.ccc){$1.encoding="ccc"}$1.encb=function(){$1.in=$k[--$j];$1.inlen=$1.in.length;$1.out=$a(~~($1.inlen/6)*5+$1.inlen%6);for(var _Y=0,_X=~~($1.inlen/6)-1;_Y<=_X;_Y+=1){$1.k=_Y;$k[$j++]=Infinity;$q($G($1.in,$1.k*6,3));$1.msbs=$a();$k[$j++]=Infinity;$q($1.msbs);var _e=$k[--$j];var _f=$k[--$j];var _g=$k[--$j];$k[$j++]=$f($f(_e+_f*256)+_g*65536);for(var _h=0,_i=3;_h<_i;_h++){var _j=$k[--$j];$k[$j++]=_j%900;$k[$j++]=~~(_j/900)}$1.mscs=$a();$k[$j++]=Infinity;$q($G($1.in,$1.k*6+3,3));$1.lsbs=$a();$k[$j++]=Infinity;$q($1.lsbs);var _q=$k[--$j];var _r=$k[--$j];var _s=$k[--$j];$k[$j++]=$f($f(_q+_r*256)+_s*65536);for(var _t=0,_u=3;_t<_u;_t++){var _v=$k[--$j];$k[$j++]=_v%900;$k[$j++]=~~(_v/900)}$1.lscs=$a();var _y=$g($1.lscs,0);var _10=$g($1.mscs,0);$p($1.out,$1.k*5+4,$f(_y+_10*316)%900);var _14=$g($1.lscs,1);var _16=$g($1.mscs,0);var _18=$g($1.mscs,1);$p($1.out,$1.k*5+3,$f($f($f(~~($f(_y+_10*316)/900)+_14)+_16*641)+_18*316)%900);var _1C=$g($1.lscs,2);var _1E=$g($1.mscs,0);var _1G=$g($1.mscs,1);var _1I=$g($1.mscs,2);$p($1.out,$1.k*5+2,$f($f($f($f(~~($f($f($f(~~($f(_y+_10*316)/900)+_14)+_16*641)+_18*316)/900)+_1C)+_1E*20)+_1G*641)+_1I*316)%900);var _1M=$g($1.lscs,3);var _1O=$g($1.mscs,1);var _1Q=$g($1.mscs,2);$p($1.out,$1.k*5+1,$f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_y+_10*316)/900)+_14)+_16*641)+_18*316)/900)+_1C)+_1E*20)+_1G*641)+_1I*316)/900)+_1M)+_1O*20)+_1Q*641)%900);$p($1.out,$1.k*5,$f(~~($f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_y+_10*316)/900)+_14)+_16*641)+_18*316)/900)+_1C)+_1E*20)+_1G*641)+_1I*316)/900)+_1M)+_1O*20)+_1Q*641)/900)+$g($1.mscs,2)*20)%900)}$1.rem=$1.inlen%6;if($1.rem!=0){$k[$j++]=$1.out;$k[$j++]=$1.out.length-$1.rem;$k[$j++]=Infinity;$q($G($1.in,$1.inlen-$1.rem,$1.rem));var _1h=$a();var _1i=$k[--$j];$P($k[--$j],_1i,_1h)}$k[$j++]=$1.out};if($eq($1.encoding,"byte")||$eq($1.encoding,"ccc")){$1.barlen=$1.barcode.length;$1.datcws=$a(~~($1.barlen/6)*5+$1.barlen%6+1);var _1t=$1.barlen%6==0?924:901;$p($1.datcws,0,_1t);$k[$j++]=$1.datcws;$k[$j++]=1;$k[$j++]=Infinity;$F($1.barcode);var _1w=$a();$k[$j++]=_1w;$1.encb();var _1x=$k[--$j];var _1y=$k[--$j];$P($k[--$j],_1y,_1x);if($eq($1.encoding,"ccc")){$k[$j++]=Infinity;$k[$j++]=920;$q($1.datcws);$1.datcws=$a()}}if($eq($1.encoding,"auto")){var _26=new Map([["parse",$1.parse],["parsefnc",$1.parsefnc],["eci",true]]);$1.fncvals=_26;$k[$j++]="msg";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _29=$k[--$j];$1[$k[--$j]]=_29;$1.msglen=$1.msg.length;$1.T=0;$1.N=1;$1.B=2;$1.A=0;$1.L=1;$1.M=2;$1.P=3;$1.tl=-1;$1.nl=-2;$1.bl=-3;$1.bl6=-4;$1.bs=-5;$1.al=-6;$1.ll=-7;$1.ml=-8;$1.pl=-9;$1.as=-10;$1.ps=-11;$1.charmaps=$a([$a(["A","a","0",";"]),$a(["B","b","1","<"]),$a(["C","c","2",">"]),$a(["D","d","3","@"]),$a(["E","e","4","["]),$a(["F","f","5",92]),$a(["G","g","6","]"]),$a(["H","h","7","_"]),$a(["I","i","8","`"]),$a(["J","j","9","~"]),$a(["K","k","&","!"]),$a(["L","l",13,13]),$a(["M","m",9,9]),$a(["N","n",",",","]),$a(["O","o",":",":"]),$a(["P","p","#",10]),$a(["Q","q","-","-"]),$a(["R","r",".","."]),$a(["S","s","$","$"]),$a(["T","t","/","/"]),$a(["U","u","+",'"']),$a(["V","v","%","|"]),$a(["W","w","*","*"]),$a(["X","x","=",40]),$a(["Y","y","^",41]),$a(["Z","z",$1.pl,"?"]),$a([" "," "," ","{"]),$a([$1.ll,$1.as,$1.ll,"}"]),$a([$1.ml,$1.ml,$1.al,"'"]),$a([$1.ps,$1.ps,$1.ps,$1.al])]);$1.charvals=$a([new Map,new Map,new Map,new Map]);$1.alltext=new Map;for(var _2v=0,_2u=$1.charmaps.length-1;_2v<=_2u;_2v+=1){$1.i=_2v;$1.encs=$g($1.charmaps,$1.i);for(var _2z=0;_2z<=3;_2z+=1){$1.j=_2z;var _32=$g($1.encs,$1.j);$k[$j++]=_32;if($eq($t(_32),"stringtype")){var _35=$g($k[--$j],0);$k[$j++]=_35}var _36=$k[--$j];$p($g($1.charvals,$1.j),_36,$1.i);$p($1.alltext,_36,-1)}}$1.e=1e4;$1.latlen=$a([$a([0,1,1,2]),$a([2,0,1,2]),$a([1,1,0,1]),$a([1,2,2,0])]);$1.latseq=$a([$a([$a([]),$a([$1.ll]),$a([$1.ml]),$a([$1.ml,$1.pl])]),$a([$a([$1.ml,$1.al]),$a([]),$a([$1.ml]),$a([$1.ml,$1.pl])]),$a([$a([$1.al]),$a([$1.ll]),$a([]),$a([$1.pl])]),$a([$a([$1.al]),$a([$1.al,$1.ll]),$a([$1.al,$1.ml]),$a([])])]);$1.shftlen=$a([$a([$1.e,$1.e,$1.e,1]),$a([1,$1.e,$1.e,1]),$a([$1.e,$1.e,$1.e,1]),$a([$1.e,$1.e,$1.e,$1.e])]);$k[$j++]=Infinity;for(var _4B=0,_4C=$1.msglen;_4B<_4C;_4B++){$k[$j++]=0}$k[$j++]=0;$1.numdigits=$a();$k[$j++]=Infinity;for(var _4F=0,_4G=$1.msglen;_4F<_4G;_4F++){$k[$j++]=0}$k[$j++]=0;$1.numtext=$a();$k[$j++]=Infinity;for(var _4J=0,_4K=$1.msglen;_4J<_4K;_4J++){$k[$j++]=0}$k[$j++]=0;$1.numbytes=$a();$k[$j++]=Infinity;for(var _4N=0,_4O=$1.msglen;_4N<_4O;_4N++){$k[$j++]=0}$k[$j++]=0;$1.iseci=$a();for(var _4R=$1.msglen-1;_4R>=0;_4R-=1){$1.i=_4R;var _4U=$g($1.msg,$1.i);if(_4U>=48&&_4U<=57){$p($1.numdigits,$1.i,$f($g($1.numdigits,$1.i+1)+1))}var _4e=$g($1.alltext,$g($1.msg,$1.i))!==undefined;if(_4e&&$g($1.numdigits,$1.i)<13){$p($1.numtext,$1.i,$f($g($1.numtext,$1.i+1)+1))}if($g($1.msg,$1.i)>=0&&$g($1.numtext,$1.i)<5&&$g($1.numdigits,$1.i)<13){$p($1.numbytes,$1.i,$f($g($1.numbytes,$1.i+1)+1))}$p($1.iseci,$1.i,$g($1.msg,$1.i)<=-1e6)}$1.numdigits=$G($1.numdigits,0,$1.msglen);$1.numtext=$G($1.numtext,0,$1.msglen);$1.numbytes=$G($1.numbytes,0,$1.msglen);$1.seq=$a([]);$1.seqlen=0;$1.state=$1.T;$1.p=0;for(;;){if($1.p==$1.msglen){break}if($g($1.iseci,$1.p)){$1.eci=$g($1.msg,$1.p);$k[$j++]=Infinity;$q($1.seq);$k[$j++]=$a([$1.eci]);$1.seq=$a();$1.p=$1.p+1;$k[$j++]="seqlen";$k[$j++]=$1.seqlen;if($1.eci<=-1810900){$k[$j++]=2}else{var _5X=$1.eci<=-1000900?3:2;$k[$j++]=_5X}var _5Y=$k[--$j];var _5Z=$k[--$j];$1[$k[--$j]]=$f(_5Z+_5Y)}else{$1.n=$g($1.numdigits,$1.p);if($1.n>=13){$k[$j++]=Infinity;$q($1.seq);$k[$j++]=$1.nl;$k[$j++]=Infinity;$q($G($1.msg,$1.p,$1.n));var _5l=$a();$k[$j++]=_5l;$1.seq=$a();$1.state=$1.N;$1.p=$f($1.p+$1.n);$1.seqlen=$f($1.seqlen+1+$1.n)}else{$1.t=$g($1.numtext,$1.p);if($1.t>=5){$k[$j++]=Infinity;$q($1.seq);if($1.state!=$1.T){$k[$j++]=$1.tl}$k[$j++]=Infinity;$q($G($1.msg,$1.p,$1.t));var _64=$a();$k[$j++]=_64;$1.seq=$a();$1.state=$1.T;$1.p=$f($1.p+$1.t);$1.seqlen=$f($f($1.seqlen+1)+$1.t)}else{$1.b=$g($1.numbytes,$1.p);if($1.b==1&&$1.state==$1.T){$k[$j++]=Infinity;$q($1.seq);$k[$j++]=$1.bs;$k[$j++]=$a([$g($1.msg,$1.p)]);$1.seq=$a();$1.p=$f($1.p+$1.b);$1.seqlen=$f($1.seqlen+2)}else{$k[$j++]=Infinity;$q($1.seq);var _6T=$1.b%6!=0?$1.bl:$1.bl6;$k[$j++]=_6T;$k[$j++]=Infinity;$q($G($1.msg,$1.p,$1.b));var _6Y=$a();$k[$j++]=_6Y;$1.seq=$a();$1.state=$1.B;$1.p=$f($1.p+$1.b);$1.seqlen=$f($f($1.seqlen+1)+$1.b)}}}}}$k[$j++]=Infinity;$k[$j++]=$1.tl;$k[$j++]=900;$k[$j++]=$1.bl;$k[$j++]=901;$k[$j++]=$1.bl6;$k[$j++]=924;$k[$j++]=$1.nl;$k[$j++]=902;$k[$j++]=$1.bs;$k[$j++]=913;$1.latchcws=$d();$1.enca=function(){var _6p=$g($g($1.charvals,$1.A),$k[--$j]);$k[$j++]=_6p};$1.encl=function(){var _6u=$g($g($1.charvals,$1.L),$k[--$j]);$k[$j++]=_6u};$1.encm=function(){var _6z=$g($g($1.charvals,$1.M),$k[--$j]);$k[$j++]=_6z};$1.encp=function(){var _74=$g($g($1.charvals,$1.P),$k[--$j]);$k[$j++]=_74};$1.textencfuncs=$a(["enca","encl","encm","encp"]);$1.addtotext=function(){$p($1.text,$1.l,$k[--$j]);$1.l=$1.l+1};$1.enct=function(){$1.in=$k[--$j];$1.curlen=$a([$1.e,$1.e,$1.e,$1.e]);$p($1.curlen,$1.submode,0);$1.curseq=$a([$a([]),$a([]),$a([]),$a([])]);$F($1.in,function(){$1.char=$k[--$j];for(;;){$1.imp=false;var _7T=$a([$1.A,$1.L,$1.M,$1.P]);for(var _7U=0,_7V=_7T.length;_7U<_7V;_7U++){$1.x=$g(_7T,_7U);var _7b=$a([$1.A,$1.L,$1.M,$1.P]);for(var _7c=0,_7d=_7b.length;_7c<_7d;_7c++){$1.y=$g(_7b,_7c);$1.cost=$f($g($1.curlen,$1.x)+$g($g($1.latlen,$1.x),$1.y));if($1.cost<$g($1.curlen,$1.y)){$p($1.curlen,$1.y,$1.cost);$k[$j++]=$1.curseq;$k[$j++]=$1.y;$k[$j++]=Infinity;$q($g($1.curseq,$1.x));$q($g($g($1.latseq,$1.x),$1.y));var _84=$a();var _85=$k[--$j];$p($k[--$j],_85,_84);$1.imp=true}}}if(!$1.imp){break}}$1.nxtlen=$a([$1.e,$1.e,$1.e,$1.e]);$1.nxtseq=$a(4);var _8I=$a([$1.A,$1.L,$1.M,$1.P]);for(var _8J=0,_8K=_8I.length;_8J<_8K;_8J++){$1.x=$g(_8I,_8J);for(;;){var _8Q=$g($g($1.charvals,$1.x),$1.char)!==undefined;if(!_8Q){break}$1.cost=$f($g($1.curlen,$1.x)+1);if($1.cost<$g($1.nxtlen,$1.x)){$p($1.nxtlen,$1.x,$1.cost);$k[$j++]=$1.nxtseq;$k[$j++]=$1.x;$k[$j++]=Infinity;$q($g($1.curseq,$1.x));$k[$j++]=$1.char;var _8h=$a();var _8i=$k[--$j];$p($k[--$j],_8i,_8h)}var _8o=$a([$1.A,$1.L,$1.M,$1.P]);for(var _8p=0,_8q=_8o.length;_8p<_8q;_8p++){$1.y=$g(_8o,_8p);if($ne($1.x,$1.y)){$1.cost=$f($f($g($1.curlen,$1.y)+$g($g($1.shftlen,$1.y),$1.x))+1);if($1.cost<$g($1.nxtlen,$1.y)){$p($1.nxtlen,$1.y,$1.cost);$k[$j++]=$1.nxtseq;$k[$j++]=$1.y;$k[$j++]=Infinity;$q($g($1.curseq,$1.y));var _9G=$1.x==$1.A?$1.as:$1.ps;$k[$j++]=_9G;$k[$j++]=$1.char;var _9I=$a();var _9J=$k[--$j];$p($k[--$j],_9J,_9I)}}}break}}$1.curlen=$1.nxtlen;$1.curseq=$1.nxtseq});$1.minseq=$1.e;var _9S=$a([$1.A,$1.L,$1.M,$1.P]);for(var _9T=0,_9U=_9S.length;_9T<_9U;_9T++){$1.k=$g(_9S,_9T);if($g($1.curlen,$1.k)<$1.minseq){$1.minseq=$g($1.curlen,$1.k);$1.txtseq=$g($1.curseq,$1.k)}}$1.text=$a($1.minseq);$1.k=0;$1.l=0;for(;;){if($1.k>=$1.txtseq.length){break}$1.char=$g($1.txtseq,$1.k);$k[$j++]=$1.char;if($1[$g($1.textencfuncs,$1.submode)]()===true){break}$1.addtotext();$1.k=$1.k+1;if($1.char==$1.as||$1.char==$1.ps){$k[$j++]=$g($1.txtseq,$1.k);if($1.char==$1.as){$1.enca()}else{$1.encp()}$1.addtotext();$1.k=$1.k+1}if($1.char==$1.al){$1.submode=$1.A}if($1.char==$1.ll){$1.submode=$1.L}if($1.char==$1.ml){$1.submode=$1.M}if($1.char==$1.pl){$1.submode=$1.P}}if($1.text.length%2==1){if($1.submode==$1.P){$k[$j++]="pad";$k[$j++]=$1.al;$1.encp();var _AJ=$k[--$j];$1[$k[--$j]]=_AJ;$1.submode=$1.A}else{$k[$j++]="pad";$k[$j++]=$1.ps;if($1[$g($1.textencfuncs,$1.submode)]()===true){return true}var _AR=$k[--$j];$1[$k[--$j]]=_AR}$k[$j++]=Infinity;$q($1.text);$k[$j++]=$1.pad;$1.text=$a()}$1.out=$a(~~($1.text.length/2));for(var _Aa=0,_AZ=$1.out.length-1;_Aa<=_AZ;_Aa+=1){$1.k=_Aa;$p($1.out,$1.k,$f($g($1.text,$1.k*2)*30+$g($1.text,$1.k*2+1)))}$k[$j++]=$1.out};$1.encn=function(){$1.in=$k[--$j];$1.out=$a([]);for(var _Ao=0,_An=$1.in.length-1;_Ao<=_An;_Ao+=44){$1.k=_Ao;$k[$j++]=Infinity;var _At=$1.in.length-$1.k;$k[$j++]=1;$k[$j++]=$1.in;$k[$j++]=$1.k;$k[$j++]=_At;if(_At>44){$j--;$k[$j++]=44}var _Au=$k[--$j];var _Av=$k[--$j];var _Ax=$G($k[--$j],_Av,_Au);for(var _Ay=0,_Az=_Ax.length;_Ay<_Az;_Ay++){$k[$j++]=$f($g(_Ax,_Ay)-48)}$1.gmod=$a();$1.cwn=$a([]);for(;;){$1.dv=900;$1.gmul=$a([]);$1.val=0;for(;;){if($1.gmod.length==0){break}$1.val=$f($1.val*10+$g($1.gmod,0));$1.gmod=$G($1.gmod,1,$1.gmod.length-1);if($1.val<$1.dv){if($1.gmul.length!=0){$k[$j++]=Infinity;$q($1.gmul);$k[$j++]=0;$1.gmul=$a()}}else{$k[$j++]=Infinity;$q($1.gmul);$k[$j++]=~~($1.val/$1.dv);$1.gmul=$a()}$1.val=$1.val%$1.dv}$1.dv=$1.val;$k[$j++]=Infinity;$k[$j++]=$1.dv;$q($1.cwn);$1.cwn=$a();$1.gmod=$1.gmul;if($1.gmul.length==0){break}}$k[$j++]=Infinity;$q($1.out);$q($1.cwn);$1.out=$a()}$k[$j++]=$1.out};$1.ence=function(){var _BY=$f(-$g($k[--$j],0)-1e6);$k[$j++]=_BY;if(_BY<=899){var _BZ=$k[--$j];$k[$j++]=927;$k[$j++]=_BZ;$r($a(2))}else{var _Bb=$k[--$j];$k[$j++]=_Bb;if(_Bb<=810899){var _Bc=$k[--$j];$k[$j++]=926;$k[$j++]=~~(_Bc/900)-1;$k[$j++]=_Bc%900;$r($a(3))}else{var _Be=$k[--$j];$k[$j++]=_Be;if(_Be<=811799){var _Bf=$k[--$j];$k[$j++]=925;$k[$j++]=$f(_Bf-810900);$r($a(2))}else{$k[$j++]="bwipp.pdf417badECI";$k[$j++]="PDF417 supports ECIs 000000 to 811799";$0.raiseerror()}}}};$1.encfuncs=$a(["enct","encn","encb"]);$1.addtocws=function(){var _Bi=$k[--$j];$P($1.datcws,$1.j,_Bi);$1.j=_Bi.length+$1.j};$1.state=$1.T;$1.submode=$1.A;$1.datcws=$a($1.seqlen);$1.i=0;$1.j=0;for(;;){if($1.i>=$1.seq.length){break}$1.chars=$g($1.seq,$1.i);if($eq($t($1.chars),"arraytype")){if($g($1.chars,0)<=-1e6){$k[$j++]=$1.chars;$1.ence();$1.addtocws()}else{$k[$j++]=$1.chars;if($1[$g($1.encfuncs,$1.state)]()===true){break}$1.addtocws()}}else{$k[$j++]=$a([$g($1.latchcws,$1.chars)]);$1.addtocws();if($1.chars==$1.tl){$1.state=$1.T;$1.submode=$1.A}if($1.chars==$1.nl){$1.state=$1.N}if($1.chars==$1.bl||$1.chars==$1.bl6){$1.state=$1.B}if($1.chars==$1.bs){$1.i=$1.i+1;$k[$j++]=$g($1.seq,$1.i);$1.encb();$1.addtocws()}}$1.i=$1.i+1}$1.datcws=$G($1.datcws,0,$1.j)}$1.m=$1.datcws.length;if($1.eclevel==-1){if($1.m<=40){$1.eclevel=2}if($1.m>=41&&$1.m<=160){$1.eclevel=3}if($1.m>=161&&$1.m<=320){$1.eclevel=4}if($1.m>=321){$1.eclevel=5}}$1.maxeclevel=~~(Math.log(928-1-$1.m)/Math.log(2))-1;if($1.eclevel>$1.maxeclevel){$1.eclevel=$1.maxeclevel}$1.k=~~Math.pow(2,$1.eclevel+1);if($1.columns==0){$1.columns=~~Math.round(Math.sqrt(($1.m+$1.k)/3))}$k[$j++]="c";if($1.columns>=1){$k[$j++]=$1.columns}else{$k[$j++]=1}var _Cn=$k[--$j];$1[$k[--$j]]=_Cn;$1.r=~~Math.ceil(($1.m+$1.k+1)/$1.columns);if($1.r<$1.rows&&$1.rows<=90){$1.r=$1.rows}if($1.r<3){$1.r=3}var _Cx=$1.c;var _Cy=$1.r;var _Cz=$1.m;var _D0=8;var _D1=~~(Math.log($f($f(_Cx*_Cy-1)-_Cz))/Math.log(2))-1;if(~~(Math.log($f($f(_Cx*_Cy-1)-_Cz))/Math.log(2))-1>8){var _=_D0;_D0=_D1;_D1=_}$1.maxeclevel=_D1;if($1.maxeclevel>$1.eclevel){$1.eclevel=$1.maxeclevel;$1.k=~~Math.pow(2,$1.eclevel+1)}$1.n=$f($1.c*$1.r-$1.k);$1.cws=$a($f($1.c*$1.r+1));$p($1.cws,0,$1.n);$P($1.cws,1,$1.datcws);$k[$j++]=$1.cws;$k[$j++]=$1.m+1;$k[$j++]=Infinity;for(var _DK=0,_DL=$f($f($1.n-$1.m)-1);_DK<_DL;_DK++){$k[$j++]=900}var _DM=$a();var _DN=$k[--$j];$P($k[--$j],_DN,_DM);$k[$j++]=$1.cws;$k[$j++]=$1.n;$k[$j++]=Infinity;for(var _DS=0,_DT=$1.k;_DS<_DT;_DS++){$k[$j++]=0}$k[$j++]=0;var _DU=$a();var _DV=$k[--$j];$P($k[--$j],_DV,_DU);$k[$j++]=Infinity;$k[$j++]=1;for(var _DX=0,_DY=928;_DX<_DY;_DX++){var _DZ=$k[--$j];$k[$j++]=_DZ;$k[$j++]=_DZ*3%929}$1.rsalog=$a();$1.rslog=$a(929);for(var _Dc=1;_Dc<=928;_Dc+=1){$p($1.rslog,$g($1.rsalog,_Dc),_Dc)}$1.rsprod=function(){var _Dg=$k[--$j];var _Dh=$k[--$j];$k[$j++]=_Dh;$k[$j++]=_Dg;if(_Dg!=0&&_Dh!=0){var _Dk=$g($1.rslog,$k[--$j]);var _Dp=$g($1.rsalog,$f(_Dk+$g($1.rslog,$k[--$j]))%928);$k[$j++]=_Dp}else{$j-=2;$k[$j++]=0}};$k[$j++]=Infinity;$k[$j++]=1;for(var _Dr=0,_Ds=$1.k;_Dr<_Ds;_Dr++){$k[$j++]=0}$1.coeffs=$a();for(var _Dw=1,_Dv=$1.k;_Dw<=_Dv;_Dw+=1){$1.i=_Dw;$p($1.coeffs,$1.i,$g($1.coeffs,$1.i-1));for(var _E3=$1.i-1;_E3>=1;_E3-=1){$1.j=_E3;$k[$j++]=$1.coeffs;$k[$j++]=$1.j;$k[$j++]=$g($1.coeffs,$1.j-1);$k[$j++]=$g($1.coeffs,$1.j);$k[$j++]=$g($1.rsalog,$1.i);$1.rsprod();var _EF=$k[--$j];var _EG=$k[--$j];var _EH=$k[--$j];$p($k[--$j],_EH,$f(_EG+_EF)%929)}$k[$j++]=$1.coeffs;$k[$j++]=0;$k[$j++]=$g($1.coeffs,0);$k[$j++]=$g($1.rsalog,$1.i);$1.rsprod();var _EP=$k[--$j];var _EQ=$k[--$j];$p($k[--$j],_EQ,_EP)}$1.coeffs=$G($1.coeffs,0,$1.coeffs.length-1);for(var _EW=$1.coeffs.length-1;_EW>=0;_EW-=2){var _EX=$1.coeffs;$p(_EX,_EW,$f(929-$g(_EX,_EW)))}for(var _Eb=0,_Ea=$f($1.n-1);_Eb<=_Ea;_Eb+=1){$1.t=$f($g($1.cws,_Eb)+$g($1.cws,$1.n))%929;for(var _Ej=0,_Ei=$1.k-1;_Ej<=_Ei;_Ej+=1){$1.j=_Ej;$p($1.cws,$f($1.n+$1.j),$f($g($1.cws,$f($f($1.n+$1.j)+1))+$f(929-$1.t*$g($1.coeffs,$1.k-$1.j-1)%929))%929)}}for(var _F0=$1.n,_Ez=$f($1.n+$1.k);_F0<=_Ez;_F0+=1){$p($1.cws,_F0,$f(929-$g($1.cws,_F0))%929)}$1.cws=$G($1.cws,0,$1.cws.length-1);$1.clusters=$a([$a([120256,125680,128380,120032,125560,128318,108736,119920,108640,86080,108592,86048,110016,120560,125820,109792,120440,125758,88256,109680,88160,89536,110320,120700,89312,110200,120638,89200,110140,89840,110460,89720,110398,89980,128506,119520,125304,128190,107712,119408,125244,107616,119352,84032,107568,119324,84e3,107544,83984,108256,119672,125374,85184,108144,119612,85088,108088,119582,85040,108060,85728,108408,119742,85616,108348,85560,108318,85880,108478,85820,85790,107200,119152,125116,107104,119096,125086,83008,107056,119068,82976,107032,82960,82952,83648,107376,119228,83552,107320,119198,83504,107292,83480,83468,83824,107452,83768,107422,83740,83900,106848,118968,125022,82496,106800,118940,82464,106776,118926,82448,106764,82440,106758,82784,106936,119006,82736,106908,82712,106894,82700,82694,106974,82830,82240,106672,118876,82208,106648,118862,82192,106636,82184,106630,82180,82352,82328,82316,82080,118830,106572,106566,82050,117472,124280,127678,103616,117360,124220,103520,117304,124190,75840,103472,75808,104160,117624,124350,76992,104048,117564,76896,103992,76848,76824,77536,104312,117694,77424,104252,77368,77340,77688,104382,77628,77758,121536,126320,128700,121440,126264,128670,111680,121392,126236,111648,121368,126222,111632,121356,103104,117104,124092,112320,103008,117048,124062,112224,121656,126366,93248,74784,102936,117006,93216,112152,93200,75456,103280,117180,93888,75360,103224,117150,93792,112440,121758,93744,75288,93720,75632,103356,94064,75576,103326,94008,112542,93980,75708,94140,75678,94110,121184,126136,128606,111168,121136,126108,111136,121112,126094,111120,121100,111112,111108,102752,116920,123998,111456,102704,116892,91712,74272,121244,116878,91680,74256,102668,91664,111372,102662,74244,74592,102840,116958,92e3,74544,102812,91952,111516,102798,91928,74508,74502,74680,102878,92088,74652,92060,74638,92046,92126,110912,121008,126044,110880,120984,126030,110864,120972,110856,120966,110852,110850,74048,102576,116828,90944,74016,102552,116814,90912,111e3,121038,90896,73992,102534,90888,110982,90884,74160,102620,91056,74136,102606,91032,111054,91020,74118,91014,91100,91086,110752,120920,125998,110736,120908,110728,120902,110724,110722,73888,102488,116782,90528,73872,102476,90512,110796,102470,90504,73860,90500,73858,73944,90584,90572,90566,120876,120870,110658,102444,73800,90312,90308,90306,101056,116080,123580,100960,116024,70720,100912,115996,70688,100888,70672,70664,71360,101232,116156,71264,101176,116126,71216,101148,71192,71180,71536,101308,71480,101278,71452,71612,71582,118112,124600,127838,105024,118064,124572,104992,118040,124558,104976,118028,104968,118022,100704,115896,123486,105312,100656,115868,79424,70176,118172,115854,79392,105240,100620,79376,70152,79368,70496,100792,115934,79712,70448,118238,79664,105372,100750,79640,70412,79628,70584,100830,79800,70556,79772,70542,70622,79838,122176,126640,128860,122144,126616,128846,122128,126604,122120,126598,122116,104768,117936,124508,113472,104736,126684,124494,113440,122264,126670,113424,104712,117894,113416,122246,104706,69952,100528,115804,78656,69920,100504,115790,96064,78624,104856,117966,96032,113560,122318,100486,96016,78600,104838,96008,69890,70064,100572,78768,70040,100558,96176,78744,104910,96152,113614,70022,78726,70108,78812,70094,96220,78798,122016,126552,128814,122e3,126540,121992,126534,121988,121986,104608,117848,124462,113056,104592,126574,113040,122060,117830,113032,104580,113028,104578,113026,69792,100440,115758,78240,69776,100428,95136,78224,104652,100422,95120,113100,69764,95112,78212,69762,78210,69848,100462,78296,69836,95192,78284,69830,95180,78278,69870,95214,121936,126508,121928,126502,121924,121922,104528,117804,112848,104520,117798,112840,121958,112836,104514,112834,69712,100396,78032,69704,100390,94672,78024,104550,94664,112870,69698,94660,78018,94658,78060,94700,94694,126486,121890,117782,104484,104482,69672,77928,94440,69666,77922,99680,68160,99632,68128,99608,115342,68112,99596,68104,99590,68448,99768,115422,68400,99740,68376,99726,68364,68358,68536,99806,68508,68494,68574,101696,116400,123740,101664,116376,101648,116364,101640,116358,101636,67904,99504,115292,72512,67872,116444,115278,72480,101784,116430,72464,67848,99462,72456,101766,67842,68016,99548,72624,67992,99534,72600,101838,72588,67974,68060,72668,68046,72654,118432,124760,127918,118416,124748,118408,124742,118404,118402,101536,116312,105888,101520,116300,105872,118476,116294,105864,101508,105860,101506,105858,67744,99416,72096,67728,116334,80800,72080,101580,99398,80784,105932,67716,80776,72068,67714,72066,67800,99438,72152,67788,80856,72140,67782,80844,72134,67822,72174,80878,126800,128940,126792,128934,126788,126786,118352,124716,122576,126828,124710,122568,126822,122564,118338,122562,101456,116268,105680,101448,116262,114128,105672,118374,114120,122598,101442,114116,105666,114114,67664,99372,71888,67656,99366,80336,71880,101478,97232,80328,105702,67650,97224,114150,71874,97220,67692,71916,67686,80364,71910,97260,80358,97254,126760,128918,126756,126754,118312,124694,122472,126774,122468,118306,122466,101416,116246,105576,101412,113896,105572,101410,113892,105570,113890,67624,99350,71784,101430,80104,71780,67618,96744,80100,71778,96740,80098,96738,71798,96758,126738,122420,122418,105524,113780,113778,71732,79988,96500,96498,66880,66848,98968,66832,66824,66820,66992,66968,66956,66950,67036,67022,1e5,99984,115532,99976,115526,99972,99970,66720,98904,69024,100056,98892,69008,100044,69e3,100038,68996,66690,68994,66776,98926,69080,100078,69068,66758,69062,66798,69102,116560,116552,116548,116546,99920,102096,116588,115494,102088,116582,102084,99906,102082,66640,68816,66632,98854,73168,68808,66628,73160,68804,66626,73156,68802,66668,68844,66662,73196,68838,73190,124840,124836,124834,116520,118632,124854,118628,116514,118626,99880,115478,101992,116534,106216,101988,99874,106212,101986,106210,66600,98838,68712,99894,72936,68708,66594,81384,72932,68706,81380,72930,66614,68726,72950,81398,128980,128978,124820,126900,124818,126898,116500,118580,116498,122740,118578,122738,99860,101940,99858,106100,101938,114420]),$a([128352,129720,125504,128304,129692,125472,128280,129678,125456,128268,125448,128262,125444,125792,128440,129758,120384,125744,128412,120352,125720,128398,120336,125708,120328,125702,120324,120672,125880,128478,110144,120624,125852,110112,120600,125838,110096,120588,110088,120582,110084,110432,120760,125918,89664,110384,120732,89632,110360,120718,89616,110348,89608,110342,89952,110520,120798,89904,110492,89880,110478,89868,90040,110558,90012,89998,125248,128176,129628,125216,128152,129614,125200,128140,125192,128134,125188,125186,119616,125360,128220,119584,125336,128206,119568,125324,119560,125318,119556,119554,108352,119728,125404,108320,119704,125390,108304,119692,108296,119686,108292,108290,85824,108464,119772,85792,108440,119758,85776,108428,85768,108422,85764,85936,108508,85912,108494,85900,85894,85980,85966,125088,128088,129582,125072,128076,125064,128070,125060,125058,119200,125144,128110,119184,125132,119176,125126,119172,119170,107424,119256,125166,107408,119244,107400,119238,107396,107394,83872,107480,119278,83856,107468,83848,107462,83844,83842,83928,107502,83916,83910,83950,125008,128044,125e3,128038,124996,124994,118992,125036,118984,125030,118980,118978,106960,119020,106952,119014,106948,106946,82896,106988,82888,106982,82884,82882,82924,82918,124968,128022,124964,124962,118888,124982,118884,118882,106728,118902,106724,106722,82408,106742,82404,82402,124948,124946,118836,118834,106612,106610,124224,127664,129372,124192,127640,129358,124176,127628,124168,127622,124164,124162,117568,124336,127708,117536,124312,127694,117520,124300,117512,124294,117508,117506,104256,117680,124380,104224,117656,124366,104208,117644,104200,117638,104196,104194,77632,104368,117724,77600,104344,117710,77584,104332,77576,104326,77572,77744,104412,77720,104398,77708,77702,77788,77774,128672,129880,93168,128656,129868,92664,128648,129862,92412,128644,128642,124064,127576,129326,126368,124048,129902,126352,128716,127558,126344,124036,126340,124034,126338,117152,124120,127598,121760,117136,124108,121744,126412,124102,121736,117124,121732,117122,121730,103328,117208,124142,112544,103312,117196,112528,121804,117190,112520,103300,112516,103298,112514,75680,103384,117230,94112,75664,103372,94096,112588,103366,94088,75652,94084,75650,75736,103406,94168,75724,94156,75718,94150,75758,128592,129836,91640,128584,129830,91388,128580,91262,128578,123984,127532,126160,123976,127526,126152,128614,126148,123970,126146,116944,124012,121296,116936,124006,121288,126182,121284,116930,121282,102864,116972,111568,102856,116966,111560,121318,111556,102850,111554,74704,102892,92112,74696,102886,92104,111590,92100,74690,92098,74732,92140,74726,92134,128552,129814,90876,128548,90750,128546,123944,127510,126056,128566,126052,123938,126050,116840,123958,121064,116836,121060,116834,121058,102632,116854,111080,121078,111076,102626,111074,74216,102646,91112,74212,91108,74210,91106,74230,91126,128532,90494,128530,123924,126004,123922,126002,116788,120948,116786,120946,102516,110836,102514,110834,73972,90612,73970,90610,128522,123914,125978,116762,120890,102458,110714,123552,127320,129198,123536,127308,123528,127302,123524,123522,116128,123608,127342,116112,123596,116104,123590,116100,116098,101280,116184,123630,101264,116172,101256,116166,101252,101250,71584,101336,116206,71568,101324,71560,101318,71556,71554,71640,101358,71628,71622,71662,127824,129452,79352,127816,129446,79100,127812,78974,127810,123472,127276,124624,123464,127270,124616,127846,124612,123458,124610,115920,123500,118224,115912,123494,118216,124646,118212,115906,118210,100816,115948,105424,100808,115942,105416,118246,105412,100802,105410,70608,100844,79824,70600,100838,79816,105446,79812,70594,79810,70636,79852,70630,79846,129960,95728,113404,129956,95480,113278,129954,95356,95294,127784,129430,78588,128872,129974,95996,78462,128868,127778,95870,128866,123432,127254,124520,123428,126696,128886,123426,126692,124514,126690,115816,123446,117992,115812,122344,117988,115810,122340,117986,122338,100584,115830,104936,100580,113640,104932,100578,113636,104930,113634,70120,100598,78824,70116,96232,78820,70114,96228,78818,96226,70134,78838,129940,94968,113022,129938,94844,94782,127764,78206,128820,127762,95102,128818,123412,124468,123410,126580,124466,126578,115764,117876,115762,122100,117874,122098,100468,104692,100466,113140,104690,113138,69876,78324,69874,95220,78322,95218,129930,94588,94526,127754,128794,123402,124442,126522,115738,117818,121978,100410,104570,112890,69754,78074,94714,94398,123216,127148,123208,127142,123204,123202,115408,123244,115400,123238,115396,115394,99792,115436,99784,115430,99780,99778,68560,99820,68552,99814,68548,68546,68588,68582,127400,129238,72444,127396,72318,127394,123176,127126,123752,123172,123748,123170,123746,115304,123190,116456,115300,116452,115298,116450,99560,115318,101864,99556,101860,99554,101858,68072,99574,72680,68068,72676,68066,72674,68086,72694,129492,80632,105854,129490,80508,80446,127380,72062,127924,127378,80766,127922,123156,123700,123154,124788,123698,124786,115252,116340,115250,118516,116338,118514,99444,101620,99442,105972,101618,105970,67828,72180,67826,80884,72178,80882,97008,114044,96888,113982,96828,96798,129482,80252,130010,97148,80190,97086,127370,127898,128954,123146,123674,124730,126842,115226,116282,118394,122618,99386,101498,105722,114170,67706,71930,80378,96632,113854,96572,96542,80062,96702,96444,96414,96350,123048,123044,123042,115048,123062,115044,115042,99048,115062,99044,99042,67048,99062,67044,67042,67062,127188,68990,127186,123028,123316,123026,123314,114996,115572,114994,115570,98932,100084,98930,100082,66804,69108,66802,69106,129258,73084,73022,127178,127450,123018,123290,123834,114970,115514,116602,98874,99962,102138,66682,68858,73210,81272,106174,81212,81182,72894,81342,97648,114364,97592,114334,97564,97550,81084,97724,81054,97694,97464,114270,97436,97422,80990,97502,97372,97358,97326,114868,114866,98676,98674,66292,66290,123098,114842,115130,98618,99194,66170,67322,69310,73404,73374,81592,106334,81564,81550,73310,81630,97968,114524,97944,114510,97932,97926,81500,98012,81486,97998,97880,114478,97868,97862,81454,97902,97836,97830,69470,73564,73550,81752,106414,81740,81734,73518,81774,81708,81702]),$a([109536,120312,86976,109040,120060,86496,108792,119934,86256,108668,86136,129744,89056,110072,129736,88560,109820,129732,88312,109694,129730,88188,128464,129772,89592,128456,129766,89340,128452,89214,128450,125904,128492,125896,128486,125892,125890,120784,125932,120776,125926,120772,120770,110544,120812,110536,120806,110532,84928,108016,119548,84448,107768,119422,84208,107644,84088,107582,84028,129640,85488,108284,129636,85240,108158,129634,85116,85054,128232,129654,85756,128228,85630,128226,125416,128246,125412,125410,119784,125430,119780,119778,108520,119798,108516,108514,83424,107256,119166,83184,107132,83064,107070,83004,82974,129588,83704,107390,129586,83580,83518,128116,83838,128114,125172,125170,119284,119282,107508,107506,82672,106876,82552,106814,82492,82462,129562,82812,82750,128058,125050,119034,82296,106686,82236,82206,82366,82108,82078,76736,103920,117500,76256,103672,117374,76016,103548,75896,103486,75836,129384,77296,104188,129380,77048,104062,129378,76924,76862,127720,129398,77564,127716,77438,127714,124392,127734,124388,124386,117736,124406,117732,117730,104424,117750,104420,104418,112096,121592,126334,92608,111856,121468,92384,111736,121406,92272,111676,92216,111646,92188,75232,103160,117118,93664,74992,103036,93424,112252,102974,93304,74812,93244,74782,93214,129332,75512,103294,129908,129330,93944,75388,129906,93820,75326,93758,127604,75646,128756,127602,94078,128754,124148,126452,124146,126450,117236,121844,117234,121842,103412,103410,91584,111344,121212,91360,111224,121150,91248,111164,91192,111134,91164,91150,74480,102780,91888,74360,102718,91768,111422,91708,74270,91678,129306,74620,129850,92028,74558,91966,127546,128634,124026,126202,116986,121338,102906,90848,110968,121022,90736,110908,90680,110878,90652,90638,74104,102590,91e3,74044,90940,74014,90910,74174,91070,90480,110780,90424,110750,90396,90382,73916,90556,73886,90526,90296,110686,90268,90254,73822,90334,90204,90190,71136,101112,116094,70896,100988,70776,100926,70716,70686,129204,71416,101246,129202,71292,71230,127348,71550,127346,123636,123634,116212,116210,101364,101362,79296,105200,118140,79072,105080,118078,78960,105020,78904,104990,78876,78862,70384,100732,79600,70264,100670,79480,105278,79420,70174,79390,129178,70524,129466,79740,70462,79678,127290,127866,123514,124666,115962,118266,100858,113376,122232,126654,95424,113264,122172,95328,113208,122142,95280,113180,95256,113166,95244,78560,104824,117950,95968,78448,104764,95856,113468,104734,95800,78364,95772,78350,95758,70008,100542,78712,69948,96120,78652,69918,96060,78622,96030,70078,78782,96190,94912,113008,122044,94816,112952,122014,94768,112924,94744,112910,94732,94726,78192,104636,95088,78136,104606,95032,113054,95004,78094,94990,69820,78268,69790,95164,78238,95134,94560,112824,121950,94512,112796,94488,112782,94476,94470,78008,104542,94648,77980,94620,77966,94606,69726,78046,94686,94384,112732,94360,112718,94348,94342,77916,94428,77902,94414,94296,112686,94284,94278,77870,94318,94252,94246,68336,99708,68216,99646,68156,68126,68476,68414,127162,123258,115450,99834,72416,101752,116414,72304,101692,72248,101662,72220,72206,67960,99518,72568,67900,72508,67870,72478,68030,72638,80576,105840,118460,80480,105784,118430,80432,105756,80408,105742,80396,80390,72048,101564,80752,71992,101534,80696,71964,80668,71950,80654,67772,72124,67742,80828,72094,80798,114016,122552,126814,96832,113968,122524,96800,113944,122510,96784,113932,96776,113926,96772,80224,105656,118366,97120,80176,105628,97072,114076,105614,97048,80140,97036,80134,97030,71864,101470,80312,71836,97208,80284,71822,97180,80270,97166,67678,71902,80350,97246,96576,113840,122460,96544,113816,122446,96528,113804,96520,113798,96516,96514,80048,105564,96688,80024,105550,96664,113870,96652,80006,96646,71772,80092,71758,96732,80078,96718,96416,113752,122414,96400,113740,96392,113734,96388,96386,79960,105518,96472,79948,96460,79942,96454,71726,79982,96494,96336,113708,96328,113702,96324,96322,79916,96364,79910,96358,96296,113686,96292,96290,79894,96310,66936,99006,66876,66846,67006,68976,100028,68920,99998,68892,68878,66748,69052,66718,69022,73056,102072,116574,73008,102044,72984,102030,72972,72966,68792,99934,73144,68764,73116,68750,73102,66654,68830,73182,81216,106160,118620,81184,106136,118606,81168,106124,81160,106118,81156,81154,72880,101980,81328,72856,101966,81304,106190,81292,72838,81286,68700,72924,68686,81372,72910,81358,114336,122712,126894,114320,122700,114312,122694,114308,114306,81056,106072,118574,97696,81040,106060,97680,114380,106054,97672,81028,97668,81026,97666,72792,101934,81112,72780,97752,81100,72774,97740,81094,97734,68654,72814,81134,97774,114256,122668,114248,122662,114244,114242,80976,106028,97488,80968,106022,97480,114278,97476,80962,97474,72748,81004,72742,97516,80998,97510,114216,122646,114212,114210,80936,106006,97384,80932,97380,80930,97378,72726,80950,97398,114196,114194,80916,97332,80914,97330,66236,66206,67256,99166,67228,67214,66142,67294,69296,100188,69272,100174,69260,69254,67164,69340,67150,69326,73376,102232,116654,73360,102220,73352,102214,73348,73346,69208,100142,73432,102254,73420,69190,73414,67118,69230,73454,106320,118700,106312,118694,106308,106306,73296,102188,81616,106348,102182,81608,73284,81604,73282,81602,69164,73324,69158,81644,73318,81638,122792,126934,122788,122786,106280,118678,114536,106276,114532,106274,114530,73256,102166,81512,73252,98024,81508,73250,98020,81506,98018,69142,73270,81526,98038,122772,122770,106260,114484,106258,114482,73236,81460,73234,97908,81458,97906,122762,106250,114458,73226,81434,97850,66396,66382,67416,99246,67404,67398,66350,67438,69456,100268,69448,100262,69444,69442,67372,69484,67366,69478,102312,116694,102308,102306,69416,100246,73576,102326,73572,69410,73570,67350,69430,73590,118740,118738,102292,106420,102290,106418,69396,73524,69394,81780,73522,81778,118730,102282,106394,69386,73498,81722,66476,66470,67496,99286,67492,67490,66454,67510,100308,100306,67476,69556,67474,69554,116714])]);$1.cwtobits=function(){var _FD=$g($1.clusters,$k[--$j]);$1.v=$g(_FD,$k[--$j]);$k[$j++]=Infinity;for(var _FG=0,_FH=17;_FG<_FH;_FG++){$k[$j++]=0}var _FK=$R($s(17),$1.v,2);for(var _FL=0,_FM=_FK.length;_FL<_FM;_FL++){$k[$j++]=$g(_FK,_FL)-48}var _FO=$a();$k[$j++]=$G(_FO,_FO.length-17,17)};if($1.compact){$1.rwid=$f($f($f(17*$1.c+17)+17)+1)}else{$1.rwid=$f($f($f($f(17*$1.c+17)+17)+17)+18)}$1.pixs=$a($1.rwid*$1.r);for(var _FY=0,_FX=$1.r-1;_FY<=_FX;_FY+=1){$1.i=_FY;if($1.i%3==0){$1.lcw=~~($1.i/3)*30+~~(($1.r-1)/3);$1.rcw=$f($f(~~($1.i/3)*30+$1.c)-1)}if($1.i%3==1){$1.lcw=~~($1.i/3)*30+$1.eclevel*3+($1.r-1)%3;$1.rcw=~~($1.i/3)*30+~~(($1.r-1)/3)}if($1.i%3==2){$1.lcw=$f($f(~~($1.i/3)*30+$1.c)-1);$1.rcw=~~($1.i/3)*30+$1.eclevel*3+($1.r-1)%3}$k[$j++]=$1.pixs;$k[$j++]=$1.rwid*$1.i;$k[$j++]=Infinity;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=$1.lcw;$k[$j++]=$1.i%3;$1.cwtobits();$F($k[--$j]);var _G0=$G($1.cws,$1.c*$1.i,$1.c);for(var _G1=0,_G2=_G0.length;_G1<_G2;_G1++){$k[$j++]=$g(_G0,_G1);$k[$j++]=$1.i%3;$1.cwtobits();$F($k[--$j])}if($1.compact){$k[$j++]=1}else{$k[$j++]=$1.rcw;$k[$j++]=$1.i%3;$1.cwtobits();$F($k[--$j]);$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=0;$k[$j++]=1}var _GA=$a();var _GB=$k[--$j];$P($k[--$j],_GB,_GA)}var _GK=new Map([["ren",$0.renmatrix],["pixs",$1.pixs],["pixx",$1.rwid],["pixy",$1.r],["height",$1.r/72*$1.rowmult],["width",$1.rwid/72],["opt",$1.options]]);$k[$j++]=_GK;if(!$1.dontdraw){$0.renmatrix()}};$0.pdf417compact=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$p($1.options,"dontdraw",true);$p($1.options,"compact",true);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.pdf417();var _9=$k[--$j];$1[$k[--$j]]=_9;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.micropdf417=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.version="unset";$1.columns=0;$1.rows=0;$1.rowmult=2;$1.encoding="auto";$1.cca=false;$1.ccb=false;$1.raw=false;$1.parse=false;$1.parsefnc=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});if($ne($1.version,"unset")){$x($1.version,"x");$j--;$1.columns=$k[--$j];$j--;$1.rows=$k[--$j]}$1.columns=~~$z($1.columns);$1.rows=~~$z($1.rows);$1.rowmult=+$1.rowmult;if($1.raw){$1.encoding="raw"}if($1.cca){$1.encoding="cca"}if($eq($1.encoding,"raw")||$eq($1.encoding,"cca")){$1.datcws=$a($1.barcode.length);$1.i=0;$1.j=0;for(;;){if($1.i==$1.barcode.length){break}$1.cw=~~$z($G($1.barcode,$1.i+1,3));$p($1.datcws,$1.j,$1.cw);$1.i=$1.i+4;$1.j=$1.j+1}$1.datcws=$G($1.datcws,0,$1.j)}if($1.ccb){$1.encoding="ccb"}$1.encb=function(){$1.in=$k[--$j];$1.inlen=$1.in.length;$1.out=$a(~~($1.inlen/6)*5+$1.inlen%6);for(var _d=0,_c=~~($1.inlen/6)-1;_d<=_c;_d+=1){$1.k=_d;$k[$j++]=Infinity;$q($G($1.in,$1.k*6,3));$1.msbs=$a();$k[$j++]=Infinity;$q($1.msbs);var _j=$k[--$j];var _k=$k[--$j];var _l=$k[--$j];$k[$j++]=$f($f(_j+_k*256)+_l*65536);for(var _m=0,_n=3;_m<_n;_m++){var _o=$k[--$j];$k[$j++]=_o%900;$k[$j++]=~~(_o/900)}$1.mscs=$a();$k[$j++]=Infinity;$q($G($1.in,$1.k*6+3,3));$1.lsbs=$a();$k[$j++]=Infinity;$q($1.lsbs);var _v=$k[--$j];var _w=$k[--$j];var _x=$k[--$j];$k[$j++]=$f($f(_v+_w*256)+_x*65536);for(var _y=0,_z=3;_y<_z;_y++){var _10=$k[--$j];$k[$j++]=_10%900;$k[$j++]=~~(_10/900)}$1.lscs=$a();var _13=$g($1.lscs,0);var _15=$g($1.mscs,0);$p($1.out,$1.k*5+4,$f(_13+_15*316)%900);var _19=$g($1.lscs,1);var _1B=$g($1.mscs,0);var _1D=$g($1.mscs,1);$p($1.out,$1.k*5+3,$f($f($f(~~($f(_13+_15*316)/900)+_19)+_1B*641)+_1D*316)%900);var _1H=$g($1.lscs,2);var _1J=$g($1.mscs,0);var _1L=$g($1.mscs,1);var _1N=$g($1.mscs,2);$p($1.out,$1.k*5+2,$f($f($f($f(~~($f($f($f(~~($f(_13+_15*316)/900)+_19)+_1B*641)+_1D*316)/900)+_1H)+_1J*20)+_1L*641)+_1N*316)%900);var _1R=$g($1.lscs,3);var _1T=$g($1.mscs,1);var _1V=$g($1.mscs,2);$p($1.out,$1.k*5+1,$f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_13+_15*316)/900)+_19)+_1B*641)+_1D*316)/900)+_1H)+_1J*20)+_1L*641)+_1N*316)/900)+_1R)+_1T*20)+_1V*641)%900);$p($1.out,$1.k*5,$f(~~($f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_13+_15*316)/900)+_19)+_1B*641)+_1D*316)/900)+_1H)+_1J*20)+_1L*641)+_1N*316)/900)+_1R)+_1T*20)+_1V*641)/900)+$g($1.mscs,2)*20)%900)}$1.rem=$1.inlen%6;if($1.rem!=0){$k[$j++]=$1.out;$k[$j++]=$1.out.length-$1.rem;$k[$j++]=Infinity;$q($G($1.in,$1.inlen-$1.rem,$1.rem));var _1m=$a();var _1n=$k[--$j];$P($k[--$j],_1n,_1m)}$k[$j++]=$1.out};if($eq($1.encoding,"byte")||$eq($1.encoding,"ccb")){$1.barlen=$1.barcode.length;$1.datcws=$a(~~($1.barlen/6)*5+$1.barlen%6+1);var _1y=$1.barlen%6==0?924:901;$p($1.datcws,0,_1y);$k[$j++]=$1.datcws;$k[$j++]=1;$k[$j++]=Infinity;$F($1.barcode);var _21=$a();$k[$j++]=_21;$1.encb();var _22=$k[--$j];var _23=$k[--$j];$P($k[--$j],_23,_22);if($eq($1.encoding,"ccb")){$k[$j++]=Infinity;$k[$j++]=920;$q($1.datcws);$1.datcws=$a()}}if($eq($1.encoding,"auto")){var _2B=new Map([["parse",$1.parse],["parsefnc",$1.parsefnc],["eci",true]]);$1.fncvals=_2B;$k[$j++]="msg";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _2E=$k[--$j];$1[$k[--$j]]=_2E;$1.msglen=$1.msg.length;$1.T=0;$1.N=1;$1.B=2;$1.A=0;$1.L=1;$1.M=2;$1.P=3;$1.tl=-1;$1.nl=-2;$1.bl=-3;$1.bl6=-4;$1.bs=-5;$1.al=-6;$1.ll=-7;$1.ml=-8;$1.pl=-9;$1.as=-10;$1.ps=-11;$1.charmaps=$a([$a(["A","a","0",";"]),$a(["B","b","1","<"]),$a(["C","c","2",">"]),$a(["D","d","3","@"]),$a(["E","e","4","["]),$a(["F","f","5",92]),$a(["G","g","6","]"]),$a(["H","h","7","_"]),$a(["I","i","8","`"]),$a(["J","j","9","~"]),$a(["K","k","&","!"]),$a(["L","l",13,13]),$a(["M","m",9,9]),$a(["N","n",",",","]),$a(["O","o",":",":"]),$a(["P","p","#",10]),$a(["Q","q","-","-"]),$a(["R","r",".","."]),$a(["S","s","$","$"]),$a(["T","t","/","/"]),$a(["U","u","+",'"']),$a(["V","v","%","|"]),$a(["W","w","*","*"]),$a(["X","x","=",40]),$a(["Y","y","^",41]),$a(["Z","z",$1.pl,"?"]),$a([" "," "," ","{"]),$a([$1.ll,$1.as,$1.ll,"}"]),$a([$1.ml,$1.ml,$1.al,"'"]),$a([$1.ps,$1.ps,$1.ps,$1.al])]);$1.charvals=$a([new Map,new Map,new Map,new Map]);$1.alltext=new Map;for(var _30=0,_2z=$1.charmaps.length-1;_30<=_2z;_30+=1){$1.i=_30;$1.encs=$g($1.charmaps,$1.i);for(var _34=0;_34<=3;_34+=1){$1.j=_34;var _37=$g($1.encs,$1.j);$k[$j++]=_37;if($eq($t(_37),"stringtype")){var _3A=$g($k[--$j],0);$k[$j++]=_3A}var _3B=$k[--$j];$p($g($1.charvals,$1.j),_3B,$1.i);$p($1.alltext,_3B,-1)}}$1.e=1e4;$1.latlen=$a([$a([0,1,1,2]),$a([2,0,1,2]),$a([1,1,0,1]),$a([1,2,2,0])]);$1.latseq=$a([$a([$a([]),$a([$1.ll]),$a([$1.ml]),$a([$1.ml,$1.pl])]),$a([$a([$1.ml,$1.al]),$a([]),$a([$1.ml]),$a([$1.ml,$1.pl])]),$a([$a([$1.al]),$a([$1.ll]),$a([]),$a([$1.pl])]),$a([$a([$1.al]),$a([$1.al,$1.ll]),$a([$1.al,$1.ml]),$a([])])]);$1.shftlen=$a([$a([$1.e,$1.e,$1.e,1]),$a([1,$1.e,$1.e,1]),$a([$1.e,$1.e,$1.e,1]),$a([$1.e,$1.e,$1.e,$1.e])]);$k[$j++]=Infinity;for(var _4G=0,_4H=$1.msglen;_4G<_4H;_4G++){$k[$j++]=0}$k[$j++]=0;$1.numdigits=$a();$k[$j++]=Infinity;for(var _4K=0,_4L=$1.msglen;_4K<_4L;_4K++){$k[$j++]=0}$k[$j++]=0;$1.numtext=$a();$k[$j++]=Infinity;for(var _4O=0,_4P=$1.msglen;_4O<_4P;_4O++){$k[$j++]=0}$k[$j++]=0;$1.numbytes=$a();$k[$j++]=Infinity;for(var _4S=0,_4T=$1.msglen;_4S<_4T;_4S++){$k[$j++]=0}$1.iseci=$a();for(var _4W=$1.msglen-1;_4W>=0;_4W-=1){$1.i=_4W;var _4Z=$g($1.msg,$1.i);if(_4Z>=48&&_4Z<=57){$p($1.numdigits,$1.i,$f($g($1.numdigits,$1.i+1)+1))}var _4j=$g($1.alltext,$g($1.msg,$1.i))!==undefined;if(_4j&&$g($1.numdigits,$1.i)<13){$p($1.numtext,$1.i,$f($g($1.numtext,$1.i+1)+1))}if($g($1.msg,$1.i)>=0&&$g($1.numtext,$1.i)<5&&$g($1.numdigits,$1.i)<13){$p($1.numbytes,$1.i,$f($g($1.numbytes,$1.i+1)+1))}$p($1.iseci,$1.i,$g($1.msg,$1.i)<=-1e6)}$1.numdigits=$G($1.numdigits,0,$1.msglen);$1.numtext=$G($1.numtext,0,$1.msglen);$1.numbytes=$G($1.numbytes,0,$1.msglen);$1.seq=$a([]);$1.seqlen=0;$1.state=$1.B;$1.p=0;for(;;){if($1.p==$1.msglen){break}if($g($1.iseci,$1.p)){$1.eci=$g($1.msg,$1.p);$k[$j++]=Infinity;$q($1.seq);$k[$j++]=$a([$1.eci]);$1.seq=$a();$1.p=$1.p+1;$k[$j++]="seqlen";$k[$j++]=$1.seqlen;if($1.eci<=-1810900){$k[$j++]=2}else{var _5c=$1.eci<=-1000900?3:2;$k[$j++]=_5c}var _5d=$k[--$j];var _5e=$k[--$j];$1[$k[--$j]]=$f(_5e+_5d)}else{$1.n=$g($1.numdigits,$1.p);if($1.n>=13){$k[$j++]=Infinity;$q($1.seq);$k[$j++]=$1.nl;$k[$j++]=Infinity;$q($G($1.msg,$1.p,$1.n));var _5q=$a();$k[$j++]=_5q;$1.seq=$a();$1.state=$1.N;$1.p=$f($1.p+$1.n);$1.seqlen=$f($1.seqlen+1+$1.n)}else{$1.t=$g($1.numtext,$1.p);if($1.t>=5){$k[$j++]=Infinity;$q($1.seq);if($1.state!=$1.T){$k[$j++]=$1.tl}$k[$j++]=Infinity;$q($G($1.msg,$1.p,$1.t));var _69=$a();$k[$j++]=_69;$1.seq=$a();$1.state=$1.T;$1.p=$f($1.p+$1.t);$1.seqlen=$f($f($1.seqlen+1)+$1.t)}else{$1.b=$g($1.numbytes,$1.p);if($1.b==1&&$1.state==$1.T){$k[$j++]=Infinity;$q($1.seq);$k[$j++]=$1.bs;$k[$j++]=$a([$g($1.msg,$1.p)]);$1.seq=$a();$1.p=$f($1.p+$1.b);$1.seqlen=$f($1.seqlen+2)}else{$k[$j++]=Infinity;$q($1.seq);var _6Y=$1.b%6!=0?$1.bl:$1.bl6;$k[$j++]=_6Y;$k[$j++]=Infinity;$q($G($1.msg,$1.p,$1.b));var _6d=$a();$k[$j++]=_6d;$1.seq=$a();$1.state=$1.B;$1.p=$f($1.p+$1.b);$1.seqlen=$f($f($1.seqlen+1)+$1.b)}}}}}$k[$j++]=Infinity;$k[$j++]=$1.tl;$k[$j++]=900;$k[$j++]=$1.bl;$k[$j++]=901;$k[$j++]=$1.bl6;$k[$j++]=924;$k[$j++]=$1.nl;$k[$j++]=902;$k[$j++]=$1.bs;$k[$j++]=913;$1.latchcws=$d();$1.enca=function(){var _6u=$g($g($1.charvals,$1.A),$k[--$j]);$k[$j++]=_6u};$1.encl=function(){var _6z=$g($g($1.charvals,$1.L),$k[--$j]);$k[$j++]=_6z};$1.encm=function(){var _74=$g($g($1.charvals,$1.M),$k[--$j]);$k[$j++]=_74};$1.encp=function(){var _79=$g($g($1.charvals,$1.P),$k[--$j]);$k[$j++]=_79};$1.textencfuncs=$a(["enca","encl","encm","encp"]);$1.addtotext=function(){$p($1.text,$1.l,$k[--$j]);$1.l=$1.l+1};$1.enct=function(){$1.in=$k[--$j];$1.curlen=$a([$1.e,$1.e,$1.e,$1.e]);$p($1.curlen,$1.submode,0);$1.curseq=$a([$a([]),$a([]),$a([]),$a([])]);$F($1.in,function(){$1.char=$k[--$j];for(;;){$1.imp=false;var _7Y=$a([$1.A,$1.L,$1.M,$1.P]);for(var _7Z=0,_7a=_7Y.length;_7Z<_7a;_7Z++){$1.x=$g(_7Y,_7Z);var _7g=$a([$1.A,$1.L,$1.M,$1.P]);for(var _7h=0,_7i=_7g.length;_7h<_7i;_7h++){$1.y=$g(_7g,_7h);$1.cost=$f($g($1.curlen,$1.x)+$g($g($1.latlen,$1.x),$1.y));if($1.cost<$g($1.curlen,$1.y)){$p($1.curlen,$1.y,$1.cost);$k[$j++]=$1.curseq;$k[$j++]=$1.y;$k[$j++]=Infinity;$q($g($1.curseq,$1.x));$q($g($g($1.latseq,$1.x),$1.y));var _89=$a();var _8A=$k[--$j];$p($k[--$j],_8A,_89);$1.imp=true}}}if(!$1.imp){break}}$1.nxtlen=$a([$1.e,$1.e,$1.e,$1.e]);$1.nxtseq=$a(4);var _8N=$a([$1.A,$1.L,$1.M,$1.P]);for(var _8O=0,_8P=_8N.length;_8O<_8P;_8O++){$1.x=$g(_8N,_8O);for(;;){var _8V=$g($g($1.charvals,$1.x),$1.char)!==undefined;if(!_8V){break}$1.cost=$f($g($1.curlen,$1.x)+1);if($1.cost<$g($1.nxtlen,$1.x)){$p($1.nxtlen,$1.x,$1.cost);$k[$j++]=$1.nxtseq;$k[$j++]=$1.x;$k[$j++]=Infinity;$q($g($1.curseq,$1.x));$k[$j++]=$1.char;var _8m=$a();var _8n=$k[--$j];$p($k[--$j],_8n,_8m)}var _8t=$a([$1.A,$1.L,$1.M,$1.P]);for(var _8u=0,_8v=_8t.length;_8u<_8v;_8u++){$1.y=$g(_8t,_8u);if($ne($1.x,$1.y)){$1.cost=$f($f($g($1.curlen,$1.y)+$g($g($1.shftlen,$1.y),$1.x))+1);if($1.cost<$g($1.nxtlen,$1.y)){$p($1.nxtlen,$1.y,$1.cost);$k[$j++]=$1.nxtseq;$k[$j++]=$1.y;$k[$j++]=Infinity;$q($g($1.curseq,$1.y));var _9L=$1.x==$1.A?$1.as:$1.ps;$k[$j++]=_9L;$k[$j++]=$1.char;var _9N=$a();var _9O=$k[--$j];$p($k[--$j],_9O,_9N)}}}break}}$1.curlen=$1.nxtlen;$1.curseq=$1.nxtseq});$1.minseq=$1.e;var _9X=$a([$1.A,$1.L,$1.M,$1.P]);for(var _9Y=0,_9Z=_9X.length;_9Y<_9Z;_9Y++){$1.k=$g(_9X,_9Y);if($g($1.curlen,$1.k)<$1.minseq){$1.minseq=$g($1.curlen,$1.k);$1.txtseq=$g($1.curseq,$1.k)}}$1.text=$a($1.minseq);$1.k=0;$1.l=0;for(;;){if($1.k>=$1.txtseq.length){break}$1.char=$g($1.txtseq,$1.k);$k[$j++]=$1.char;if($1[$g($1.textencfuncs,$1.submode)]()===true){break}$1.addtotext();$1.k=$1.k+1;if($1.char==$1.as||$1.char==$1.ps){$k[$j++]=$g($1.txtseq,$1.k);if($1.char==$1.as){$1.enca()}else{$1.encp()}$1.addtotext();$1.k=$1.k+1}if($1.char==$1.al){$1.submode=$1.A}if($1.char==$1.ll){$1.submode=$1.L}if($1.char==$1.ml){$1.submode=$1.M}if($1.char==$1.pl){$1.submode=$1.P}}if($1.text.length%2==1){if($1.submode==$1.P){$k[$j++]="pad";$k[$j++]=$1.al;$1.encp();var _AO=$k[--$j];$1[$k[--$j]]=_AO;$1.submode=$1.A}else{$k[$j++]="pad";$k[$j++]=$1.ps;if($1[$g($1.textencfuncs,$1.submode)]()===true){return true}var _AW=$k[--$j];$1[$k[--$j]]=_AW}$k[$j++]=Infinity;$q($1.text);$k[$j++]=$1.pad;$1.text=$a()}$1.out=$a(~~($1.text.length/2));for(var _Af=0,_Ae=$1.out.length-1;_Af<=_Ae;_Af+=1){$1.k=_Af;$p($1.out,$1.k,$f($g($1.text,$1.k*2)*30+$g($1.text,$1.k*2+1)))}$k[$j++]=$1.out};$1.encn=function(){$1.in=$k[--$j];$1.out=$a([]);for(var _At=0,_As=$1.in.length-1;_At<=_As;_At+=44){$1.k=_At;$k[$j++]=Infinity;var _Ay=$1.in.length-$1.k;$k[$j++]=1;$k[$j++]=$1.in;$k[$j++]=$1.k;$k[$j++]=_Ay;if(_Ay>44){$j--;$k[$j++]=44}var _Az=$k[--$j];var _B0=$k[--$j];var _B2=$G($k[--$j],_B0,_Az);for(var _B3=0,_B4=_B2.length;_B3<_B4;_B3++){$k[$j++]=$f($g(_B2,_B3)-48)}$1.gmod=$a();$1.cwn=$a([]);for(;;){$1.dv=900;$1.gmul=$a([]);$1.val=0;for(;;){if($1.gmod.length==0){break}$1.val=$f($1.val*10+$g($1.gmod,0));$1.gmod=$G($1.gmod,1,$1.gmod.length-1);if($1.val<$1.dv){if($1.gmul.length!=0){$k[$j++]=Infinity;$q($1.gmul);$k[$j++]=0;$1.gmul=$a()}}else{$k[$j++]=Infinity;$q($1.gmul);$k[$j++]=~~($1.val/$1.dv);$1.gmul=$a()}$1.val=$1.val%$1.dv}$1.dv=$1.val;$k[$j++]=Infinity;$k[$j++]=$1.dv;$q($1.cwn);$1.cwn=$a();$1.gmod=$1.gmul;if($1.gmul.length==0){break}}$k[$j++]=Infinity;$q($1.out);$q($1.cwn);$1.out=$a()}$k[$j++]=$1.out};$1.ence=function(){var _Bd=$f(-$g($k[--$j],0)-1e6);$k[$j++]=_Bd;if(_Bd<=899){var _Be=$k[--$j];$k[$j++]=927;$k[$j++]=_Be;$r($a(2))}else{var _Bg=$k[--$j];$k[$j++]=_Bg;if(_Bg<=810899){var _Bh=$k[--$j];$k[$j++]=926;$k[$j++]=~~(_Bh/900)-1;$k[$j++]=_Bh%900;$r($a(3))}else{var _Bj=$k[--$j];$k[$j++]=_Bj;if(_Bj<=811799){var _Bk=$k[--$j];$k[$j++]=925;$k[$j++]=$f(_Bk-810900);$r($a(2))}else{$k[$j++]="bwipp.pdf417badECI";$k[$j++]="PDF417 supports ECIs 000000 to 811799";$0.raiseerror()}}}};$1.encfuncs=$a(["enct","encn","encb"]);$1.addtocws=function(){var _Bn=$k[--$j];$P($1.datcws,$1.j,_Bn);$1.j=_Bn.length+$1.j};$1.datcws=$a($1.seqlen);$1.i=0;$1.j=0;for(;;){if($1.i>=$1.seq.length){break}$1.chars=$g($1.seq,$1.i);if($eq($t($1.chars),"arraytype")){if($g($1.chars,0)<=-1e6){$k[$j++]=$1.chars;$1.ence();$1.addtocws()}else{$k[$j++]=$1.chars;if($1[$g($1.encfuncs,$1.state)]()===true){break}$1.addtocws()}}else{$k[$j++]=$a([$g($1.latchcws,$1.chars)]);$1.addtocws();if($1.chars==$1.tl){$1.state=$1.T;$1.submode=$1.A}if($1.chars==$1.nl){$1.state=$1.N}if($1.chars==$1.bl||$1.chars==$1.bl6){$1.state=$1.B}if($1.chars==$1.bs){$1.i=$1.i+1;$k[$j++]=$g($1.seq,$1.i);$1.encb();$1.addtocws()}}$1.i=$1.i+1}$1.datcws=$G($1.datcws,0,$1.j)}$1.metrics=$a([$a([1,11,7,1,0,9]),$a([1,14,7,8,0,8]),$a([1,17,7,36,0,36]),$a([1,20,8,19,0,19]),$a([1,24,8,9,0,17]),$a([1,28,8,25,0,33]),$a([2,8,8,1,0,1]),$a([2,11,9,1,0,9]),$a([2,14,9,8,0,8]),$a([2,17,10,36,0,36]),$a([2,20,11,19,0,19]),$a([2,23,13,9,0,17]),$a([2,26,15,27,0,35]),$a([3,6,12,1,1,1]),$a([3,8,14,7,7,7]),$a([3,10,16,15,15,15]),$a([3,12,18,25,25,25]),$a([3,15,21,37,37,37]),$a([3,20,26,1,17,33]),$a([3,26,32,1,9,17]),$a([3,32,38,21,29,37]),$a([3,38,44,15,31,47]),$a([3,44,50,1,25,49]),$a([4,4,8,47,19,43]),$a([4,6,12,1,1,1]),$a([4,8,14,7,7,7]),$a([4,10,16,15,15,15]),$a([4,12,18,25,25,25]),$a([4,15,21,37,37,37]),$a([4,20,26,1,17,33]),$a([4,26,32,1,9,17]),$a([4,32,38,21,29,37]),$a([4,38,44,15,31,47]),$a([4,44,50,1,25,49])]);$1.ccametrics=$a([$a([2,5,4,39,0,19]),$a([2,6,4,1,0,33]),$a([2,7,5,32,0,12]),$a([2,8,5,8,0,40]),$a([2,9,6,14,0,46]),$a([2,10,6,43,0,23]),$a([2,12,7,20,0,52]),$a([3,4,4,11,43,23]),$a([3,5,5,1,33,13]),$a([3,6,6,5,37,17]),$a([3,7,7,15,47,27]),$a([3,8,7,21,1,33]),$a([4,3,4,40,20,52]),$a([4,4,5,43,23,3]),$a([4,5,6,46,26,6]),$a([4,6,7,34,14,46]),$a([4,7,8,29,9,41])]);if($1.cca){$1.metrics=$1.ccametrics}$1.urows=$1.rows;$1.ucols=$1.columns;$1.i=0;for(;;){$1.m=$g($1.metrics,$1.i);$1.c=$g($1.m,0);$1.r=$g($1.m,1);$1.k=$g($1.m,2);$1.rapl=$g($1.m,3);$1.rapc=$g($1.m,4);$1.rapr=$g($1.m,5);$1.ncws=$f($1.r*$1.c-$1.k);$1.okay=true;if($1.datcws.length>$1.ncws){$1.okay=false}if($1.urows!=0&&$1.urows!=$1.r){$1.okay=false}if($1.ucols!=0&&$1.ucols!=$1.c){$1.okay=false}if($1.okay){break}$1.i=$1.i+1}$1.m=$1.datcws.length;$1.n=$f($1.c*$1.r-$1.k);$1.cws=$a($f($1.c*$1.r+1));$P($1.cws,0,$1.datcws);$k[$j++]=$1.cws;$k[$j++]=$1.m;$k[$j++]=Infinity;for(var _E8=0,_E9=$f($1.n-$1.m);_E8<_E9;_E8++){$k[$j++]=900}var _EA=$a();var _EB=$k[--$j];$P($k[--$j],_EB,_EA);$k[$j++]=$1.cws;$k[$j++]=$1.n;$k[$j++]=Infinity;for(var _EG=0,_EH=$1.k;_EG<_EH;_EG++){$k[$j++]=0}$k[$j++]=0;var _EI=$a();var _EJ=$k[--$j];$P($k[--$j],_EJ,_EI);$k[$j++]=Infinity;$k[$j++]=1;for(var _EL=0,_EM=928;_EL<_EM;_EL++){var _EN=$k[--$j];$k[$j++]=_EN;$k[$j++]=_EN*3%929}$1.rsalog=$a();$1.rslog=$a(929);for(var _EQ=1;_EQ<=928;_EQ+=1){$p($1.rslog,$g($1.rsalog,_EQ),_EQ)}$1.rsprod=function(){var _EU=$k[--$j];var _EV=$k[--$j];$k[$j++]=_EV;$k[$j++]=_EU;if(_EU!=0&&_EV!=0){var _EY=$g($1.rslog,$k[--$j]);var _Ed=$g($1.rsalog,$f(_EY+$g($1.rslog,$k[--$j]))%928);$k[$j++]=_Ed}else{$j-=2;$k[$j++]=0}};$k[$j++]=Infinity;$k[$j++]=1;for(var _Ef=0,_Eg=$1.k;_Ef<_Eg;_Ef++){$k[$j++]=0}$1.coeffs=$a();for(var _Ek=1,_Ej=$1.k;_Ek<=_Ej;_Ek+=1){$1.i=_Ek;$p($1.coeffs,$1.i,$g($1.coeffs,$1.i-1));for(var _Er=$1.i-1;_Er>=1;_Er-=1){$1.j=_Er;$k[$j++]=$1.coeffs;$k[$j++]=$1.j;$k[$j++]=$g($1.coeffs,$1.j-1);$k[$j++]=$g($1.coeffs,$1.j);$k[$j++]=$g($1.rsalog,$1.i);$1.rsprod();var _F3=$k[--$j];var _F4=$k[--$j];var _F5=$k[--$j];$p($k[--$j],_F5,$f(_F4+_F3)%929)}$k[$j++]=$1.coeffs;$k[$j++]=0;$k[$j++]=$g($1.coeffs,0);$k[$j++]=$g($1.rsalog,$1.i);$1.rsprod();var _FD=$k[--$j];var _FE=$k[--$j];$p($k[--$j],_FE,_FD)}$1.coeffs=$G($1.coeffs,0,$1.coeffs.length-1);for(var _FK=$1.coeffs.length-1;_FK>=0;_FK-=2){var _FL=$1.coeffs;$p(_FL,_FK,$f(929-$g(_FL,_FK)))}for(var _FP=0,_FO=$f($1.n-1);_FP<=_FO;_FP+=1){$1.t=$f($g($1.cws,_FP)+$g($1.cws,$1.n))%929;for(var _FX=0,_FW=$f($1.k-1);_FX<=_FW;_FX+=1){$1.j=_FX;$p($1.cws,$f($1.n+$1.j),$f($g($1.cws,$f($f($1.n+$1.j)+1))+$f(929-$1.t*$g($1.coeffs,$f($f($1.k-$1.j)-1))%929))%929)}}for(var _Fo=$1.n,_Fn=$f($1.n+$1.k);_Fo<=_Fn;_Fo+=1){$p($1.cws,_Fo,$f(929-$g($1.cws,_Fo))%929)}$1.cws=$G($1.cws,0,$1.cws.length-1);$1.clusters=$a([$a([120256,125680,128380,120032,125560,128318,108736,119920,108640,86080,108592,86048,110016,120560,125820,109792,120440,125758,88256,109680,88160,89536,110320,120700,89312,110200,120638,89200,110140,89840,110460,89720,110398,89980,128506,119520,125304,128190,107712,119408,125244,107616,119352,84032,107568,119324,84e3,107544,83984,108256,119672,125374,85184,108144,119612,85088,108088,119582,85040,108060,85728,108408,119742,85616,108348,85560,108318,85880,108478,85820,85790,107200,119152,125116,107104,119096,125086,83008,107056,119068,82976,107032,82960,82952,83648,107376,119228,83552,107320,119198,83504,107292,83480,83468,83824,107452,83768,107422,83740,83900,106848,118968,125022,82496,106800,118940,82464,106776,118926,82448,106764,82440,106758,82784,106936,119006,82736,106908,82712,106894,82700,82694,106974,82830,82240,106672,118876,82208,106648,118862,82192,106636,82184,106630,82180,82352,82328,82316,82080,118830,106572,106566,82050,117472,124280,127678,103616,117360,124220,103520,117304,124190,75840,103472,75808,104160,117624,124350,76992,104048,117564,76896,103992,76848,76824,77536,104312,117694,77424,104252,77368,77340,77688,104382,77628,77758,121536,126320,128700,121440,126264,128670,111680,121392,126236,111648,121368,126222,111632,121356,103104,117104,124092,112320,103008,117048,124062,112224,121656,126366,93248,74784,102936,117006,93216,112152,93200,75456,103280,117180,93888,75360,103224,117150,93792,112440,121758,93744,75288,93720,75632,103356,94064,75576,103326,94008,112542,93980,75708,94140,75678,94110,121184,126136,128606,111168,121136,126108,111136,121112,126094,111120,121100,111112,111108,102752,116920,123998,111456,102704,116892,91712,74272,121244,116878,91680,74256,102668,91664,111372,102662,74244,74592,102840,116958,92e3,74544,102812,91952,111516,102798,91928,74508,74502,74680,102878,92088,74652,92060,74638,92046,92126,110912,121008,126044,110880,120984,126030,110864,120972,110856,120966,110852,110850,74048,102576,116828,90944,74016,102552,116814,90912,111e3,121038,90896,73992,102534,90888,110982,90884,74160,102620,91056,74136,102606,91032,111054,91020,74118,91014,91100,91086,110752,120920,125998,110736,120908,110728,120902,110724,110722,73888,102488,116782,90528,73872,102476,90512,110796,102470,90504,73860,90500,73858,73944,90584,90572,90566,120876,120870,110658,102444,73800,90312,90308,90306,101056,116080,123580,100960,116024,70720,100912,115996,70688,100888,70672,70664,71360,101232,116156,71264,101176,116126,71216,101148,71192,71180,71536,101308,71480,101278,71452,71612,71582,118112,124600,127838,105024,118064,124572,104992,118040,124558,104976,118028,104968,118022,100704,115896,123486,105312,100656,115868,79424,70176,118172,115854,79392,105240,100620,79376,70152,79368,70496,100792,115934,79712,70448,118238,79664,105372,100750,79640,70412,79628,70584,100830,79800,70556,79772,70542,70622,79838,122176,126640,128860,122144,126616,128846,122128,126604,122120,126598,122116,104768,117936,124508,113472,104736,126684,124494,113440,122264,126670,113424,104712,117894,113416,122246,104706,69952,100528,115804,78656,69920,100504,115790,96064,78624,104856,117966,96032,113560,122318,100486,96016,78600,104838,96008,69890,70064,100572,78768,70040,100558,96176,78744,104910,96152,113614,70022,78726,70108,78812,70094,96220,78798,122016,126552,128814,122e3,126540,121992,126534,121988,121986,104608,117848,124462,113056,104592,126574,113040,122060,117830,113032,104580,113028,104578,113026,69792,100440,115758,78240,69776,100428,95136,78224,104652,100422,95120,113100,69764,95112,78212,69762,78210,69848,100462,78296,69836,95192,78284,69830,95180,78278,69870,95214,121936,126508,121928,126502,121924,121922,104528,117804,112848,104520,117798,112840,121958,112836,104514,112834,69712,100396,78032,69704,100390,94672,78024,104550,94664,112870,69698,94660,78018,94658,78060,94700,94694,126486,121890,117782,104484,104482,69672,77928,94440,69666,77922,99680,68160,99632,68128,99608,115342,68112,99596,68104,99590,68448,99768,115422,68400,99740,68376,99726,68364,68358,68536,99806,68508,68494,68574,101696,116400,123740,101664,116376,101648,116364,101640,116358,101636,67904,99504,115292,72512,67872,116444,115278,72480,101784,116430,72464,67848,99462,72456,101766,67842,68016,99548,72624,67992,99534,72600,101838,72588,67974,68060,72668,68046,72654,118432,124760,127918,118416,124748,118408,124742,118404,118402,101536,116312,105888,101520,116300,105872,118476,116294,105864,101508,105860,101506,105858,67744,99416,72096,67728,116334,80800,72080,101580,99398,80784,105932,67716,80776,72068,67714,72066,67800,99438,72152,67788,80856,72140,67782,80844,72134,67822,72174,80878,126800,128940,126792,128934,126788,126786,118352,124716,122576,126828,124710,122568,126822,122564,118338,122562,101456,116268,105680,101448,116262,114128,105672,118374,114120,122598,101442,114116,105666,114114,67664,99372,71888,67656,99366,80336,71880,101478,97232,80328,105702,67650,97224,114150,71874,97220,67692,71916,67686,80364,71910,97260,80358,97254,126760,128918,126756,126754,118312,124694,122472,126774,122468,118306,122466,101416,116246,105576,101412,113896,105572,101410,113892,105570,113890,67624,99350,71784,101430,80104,71780,67618,96744,80100,71778,96740,80098,96738,71798,96758,126738,122420,122418,105524,113780,113778,71732,79988,96500,96498,66880,66848,98968,66832,66824,66820,66992,66968,66956,66950,67036,67022,1e5,99984,115532,99976,115526,99972,99970,66720,98904,69024,100056,98892,69008,100044,69e3,100038,68996,66690,68994,66776,98926,69080,100078,69068,66758,69062,66798,69102,116560,116552,116548,116546,99920,102096,116588,115494,102088,116582,102084,99906,102082,66640,68816,66632,98854,73168,68808,66628,73160,68804,66626,73156,68802,66668,68844,66662,73196,68838,73190,124840,124836,124834,116520,118632,124854,118628,116514,118626,99880,115478,101992,116534,106216,101988,99874,106212,101986,106210,66600,98838,68712,99894,72936,68708,66594,81384,72932,68706,81380,72930,66614,68726,72950,81398,128980,128978,124820,126900,124818,126898,116500,118580,116498,122740,118578,122738,99860,101940,99858,106100,101938,114420]),$a([128352,129720,125504,128304,129692,125472,128280,129678,125456,128268,125448,128262,125444,125792,128440,129758,120384,125744,128412,120352,125720,128398,120336,125708,120328,125702,120324,120672,125880,128478,110144,120624,125852,110112,120600,125838,110096,120588,110088,120582,110084,110432,120760,125918,89664,110384,120732,89632,110360,120718,89616,110348,89608,110342,89952,110520,120798,89904,110492,89880,110478,89868,90040,110558,90012,89998,125248,128176,129628,125216,128152,129614,125200,128140,125192,128134,125188,125186,119616,125360,128220,119584,125336,128206,119568,125324,119560,125318,119556,119554,108352,119728,125404,108320,119704,125390,108304,119692,108296,119686,108292,108290,85824,108464,119772,85792,108440,119758,85776,108428,85768,108422,85764,85936,108508,85912,108494,85900,85894,85980,85966,125088,128088,129582,125072,128076,125064,128070,125060,125058,119200,125144,128110,119184,125132,119176,125126,119172,119170,107424,119256,125166,107408,119244,107400,119238,107396,107394,83872,107480,119278,83856,107468,83848,107462,83844,83842,83928,107502,83916,83910,83950,125008,128044,125e3,128038,124996,124994,118992,125036,118984,125030,118980,118978,106960,119020,106952,119014,106948,106946,82896,106988,82888,106982,82884,82882,82924,82918,124968,128022,124964,124962,118888,124982,118884,118882,106728,118902,106724,106722,82408,106742,82404,82402,124948,124946,118836,118834,106612,106610,124224,127664,129372,124192,127640,129358,124176,127628,124168,127622,124164,124162,117568,124336,127708,117536,124312,127694,117520,124300,117512,124294,117508,117506,104256,117680,124380,104224,117656,124366,104208,117644,104200,117638,104196,104194,77632,104368,117724,77600,104344,117710,77584,104332,77576,104326,77572,77744,104412,77720,104398,77708,77702,77788,77774,128672,129880,93168,128656,129868,92664,128648,129862,92412,128644,128642,124064,127576,129326,126368,124048,129902,126352,128716,127558,126344,124036,126340,124034,126338,117152,124120,127598,121760,117136,124108,121744,126412,124102,121736,117124,121732,117122,121730,103328,117208,124142,112544,103312,117196,112528,121804,117190,112520,103300,112516,103298,112514,75680,103384,117230,94112,75664,103372,94096,112588,103366,94088,75652,94084,75650,75736,103406,94168,75724,94156,75718,94150,75758,128592,129836,91640,128584,129830,91388,128580,91262,128578,123984,127532,126160,123976,127526,126152,128614,126148,123970,126146,116944,124012,121296,116936,124006,121288,126182,121284,116930,121282,102864,116972,111568,102856,116966,111560,121318,111556,102850,111554,74704,102892,92112,74696,102886,92104,111590,92100,74690,92098,74732,92140,74726,92134,128552,129814,90876,128548,90750,128546,123944,127510,126056,128566,126052,123938,126050,116840,123958,121064,116836,121060,116834,121058,102632,116854,111080,121078,111076,102626,111074,74216,102646,91112,74212,91108,74210,91106,74230,91126,128532,90494,128530,123924,126004,123922,126002,116788,120948,116786,120946,102516,110836,102514,110834,73972,90612,73970,90610,128522,123914,125978,116762,120890,102458,110714,123552,127320,129198,123536,127308,123528,127302,123524,123522,116128,123608,127342,116112,123596,116104,123590,116100,116098,101280,116184,123630,101264,116172,101256,116166,101252,101250,71584,101336,116206,71568,101324,71560,101318,71556,71554,71640,101358,71628,71622,71662,127824,129452,79352,127816,129446,79100,127812,78974,127810,123472,127276,124624,123464,127270,124616,127846,124612,123458,124610,115920,123500,118224,115912,123494,118216,124646,118212,115906,118210,100816,115948,105424,100808,115942,105416,118246,105412,100802,105410,70608,100844,79824,70600,100838,79816,105446,79812,70594,79810,70636,79852,70630,79846,129960,95728,113404,129956,95480,113278,129954,95356,95294,127784,129430,78588,128872,129974,95996,78462,128868,127778,95870,128866,123432,127254,124520,123428,126696,128886,123426,126692,124514,126690,115816,123446,117992,115812,122344,117988,115810,122340,117986,122338,100584,115830,104936,100580,113640,104932,100578,113636,104930,113634,70120,100598,78824,70116,96232,78820,70114,96228,78818,96226,70134,78838,129940,94968,113022,129938,94844,94782,127764,78206,128820,127762,95102,128818,123412,124468,123410,126580,124466,126578,115764,117876,115762,122100,117874,122098,100468,104692,100466,113140,104690,113138,69876,78324,69874,95220,78322,95218,129930,94588,94526,127754,128794,123402,124442,126522,115738,117818,121978,100410,104570,112890,69754,78074,94714,94398,123216,127148,123208,127142,123204,123202,115408,123244,115400,123238,115396,115394,99792,115436,99784,115430,99780,99778,68560,99820,68552,99814,68548,68546,68588,68582,127400,129238,72444,127396,72318,127394,123176,127126,123752,123172,123748,123170,123746,115304,123190,116456,115300,116452,115298,116450,99560,115318,101864,99556,101860,99554,101858,68072,99574,72680,68068,72676,68066,72674,68086,72694,129492,80632,105854,129490,80508,80446,127380,72062,127924,127378,80766,127922,123156,123700,123154,124788,123698,124786,115252,116340,115250,118516,116338,118514,99444,101620,99442,105972,101618,105970,67828,72180,67826,80884,72178,80882,97008,114044,96888,113982,96828,96798,129482,80252,130010,97148,80190,97086,127370,127898,128954,123146,123674,124730,126842,115226,116282,118394,122618,99386,101498,105722,114170,67706,71930,80378,96632,113854,96572,96542,80062,96702,96444,96414,96350,123048,123044,123042,115048,123062,115044,115042,99048,115062,99044,99042,67048,99062,67044,67042,67062,127188,68990,127186,123028,123316,123026,123314,114996,115572,114994,115570,98932,100084,98930,100082,66804,69108,66802,69106,129258,73084,73022,127178,127450,123018,123290,123834,114970,115514,116602,98874,99962,102138,66682,68858,73210,81272,106174,81212,81182,72894,81342,97648,114364,97592,114334,97564,97550,81084,97724,81054,97694,97464,114270,97436,97422,80990,97502,97372,97358,97326,114868,114866,98676,98674,66292,66290,123098,114842,115130,98618,99194,66170,67322,69310,73404,73374,81592,106334,81564,81550,73310,81630,97968,114524,97944,114510,97932,97926,81500,98012,81486,97998,97880,114478,97868,97862,81454,97902,97836,97830,69470,73564,73550,81752,106414,81740,81734,73518,81774,81708,81702]),$a([109536,120312,86976,109040,120060,86496,108792,119934,86256,108668,86136,129744,89056,110072,129736,88560,109820,129732,88312,109694,129730,88188,128464,129772,89592,128456,129766,89340,128452,89214,128450,125904,128492,125896,128486,125892,125890,120784,125932,120776,125926,120772,120770,110544,120812,110536,120806,110532,84928,108016,119548,84448,107768,119422,84208,107644,84088,107582,84028,129640,85488,108284,129636,85240,108158,129634,85116,85054,128232,129654,85756,128228,85630,128226,125416,128246,125412,125410,119784,125430,119780,119778,108520,119798,108516,108514,83424,107256,119166,83184,107132,83064,107070,83004,82974,129588,83704,107390,129586,83580,83518,128116,83838,128114,125172,125170,119284,119282,107508,107506,82672,106876,82552,106814,82492,82462,129562,82812,82750,128058,125050,119034,82296,106686,82236,82206,82366,82108,82078,76736,103920,117500,76256,103672,117374,76016,103548,75896,103486,75836,129384,77296,104188,129380,77048,104062,129378,76924,76862,127720,129398,77564,127716,77438,127714,124392,127734,124388,124386,117736,124406,117732,117730,104424,117750,104420,104418,112096,121592,126334,92608,111856,121468,92384,111736,121406,92272,111676,92216,111646,92188,75232,103160,117118,93664,74992,103036,93424,112252,102974,93304,74812,93244,74782,93214,129332,75512,103294,129908,129330,93944,75388,129906,93820,75326,93758,127604,75646,128756,127602,94078,128754,124148,126452,124146,126450,117236,121844,117234,121842,103412,103410,91584,111344,121212,91360,111224,121150,91248,111164,91192,111134,91164,91150,74480,102780,91888,74360,102718,91768,111422,91708,74270,91678,129306,74620,129850,92028,74558,91966,127546,128634,124026,126202,116986,121338,102906,90848,110968,121022,90736,110908,90680,110878,90652,90638,74104,102590,91e3,74044,90940,74014,90910,74174,91070,90480,110780,90424,110750,90396,90382,73916,90556,73886,90526,90296,110686,90268,90254,73822,90334,90204,90190,71136,101112,116094,70896,100988,70776,100926,70716,70686,129204,71416,101246,129202,71292,71230,127348,71550,127346,123636,123634,116212,116210,101364,101362,79296,105200,118140,79072,105080,118078,78960,105020,78904,104990,78876,78862,70384,100732,79600,70264,100670,79480,105278,79420,70174,79390,129178,70524,129466,79740,70462,79678,127290,127866,123514,124666,115962,118266,100858,113376,122232,126654,95424,113264,122172,95328,113208,122142,95280,113180,95256,113166,95244,78560,104824,117950,95968,78448,104764,95856,113468,104734,95800,78364,95772,78350,95758,70008,100542,78712,69948,96120,78652,69918,96060,78622,96030,70078,78782,96190,94912,113008,122044,94816,112952,122014,94768,112924,94744,112910,94732,94726,78192,104636,95088,78136,104606,95032,113054,95004,78094,94990,69820,78268,69790,95164,78238,95134,94560,112824,121950,94512,112796,94488,112782,94476,94470,78008,104542,94648,77980,94620,77966,94606,69726,78046,94686,94384,112732,94360,112718,94348,94342,77916,94428,77902,94414,94296,112686,94284,94278,77870,94318,94252,94246,68336,99708,68216,99646,68156,68126,68476,68414,127162,123258,115450,99834,72416,101752,116414,72304,101692,72248,101662,72220,72206,67960,99518,72568,67900,72508,67870,72478,68030,72638,80576,105840,118460,80480,105784,118430,80432,105756,80408,105742,80396,80390,72048,101564,80752,71992,101534,80696,71964,80668,71950,80654,67772,72124,67742,80828,72094,80798,114016,122552,126814,96832,113968,122524,96800,113944,122510,96784,113932,96776,113926,96772,80224,105656,118366,97120,80176,105628,97072,114076,105614,97048,80140,97036,80134,97030,71864,101470,80312,71836,97208,80284,71822,97180,80270,97166,67678,71902,80350,97246,96576,113840,122460,96544,113816,122446,96528,113804,96520,113798,96516,96514,80048,105564,96688,80024,105550,96664,113870,96652,80006,96646,71772,80092,71758,96732,80078,96718,96416,113752,122414,96400,113740,96392,113734,96388,96386,79960,105518,96472,79948,96460,79942,96454,71726,79982,96494,96336,113708,96328,113702,96324,96322,79916,96364,79910,96358,96296,113686,96292,96290,79894,96310,66936,99006,66876,66846,67006,68976,100028,68920,99998,68892,68878,66748,69052,66718,69022,73056,102072,116574,73008,102044,72984,102030,72972,72966,68792,99934,73144,68764,73116,68750,73102,66654,68830,73182,81216,106160,118620,81184,106136,118606,81168,106124,81160,106118,81156,81154,72880,101980,81328,72856,101966,81304,106190,81292,72838,81286,68700,72924,68686,81372,72910,81358,114336,122712,126894,114320,122700,114312,122694,114308,114306,81056,106072,118574,97696,81040,106060,97680,114380,106054,97672,81028,97668,81026,97666,72792,101934,81112,72780,97752,81100,72774,97740,81094,97734,68654,72814,81134,97774,114256,122668,114248,122662,114244,114242,80976,106028,97488,80968,106022,97480,114278,97476,80962,97474,72748,81004,72742,97516,80998,97510,114216,122646,114212,114210,80936,106006,97384,80932,97380,80930,97378,72726,80950,97398,114196,114194,80916,97332,80914,97330,66236,66206,67256,99166,67228,67214,66142,67294,69296,100188,69272,100174,69260,69254,67164,69340,67150,69326,73376,102232,116654,73360,102220,73352,102214,73348,73346,69208,100142,73432,102254,73420,69190,73414,67118,69230,73454,106320,118700,106312,118694,106308,106306,73296,102188,81616,106348,102182,81608,73284,81604,73282,81602,69164,73324,69158,81644,73318,81638,122792,126934,122788,122786,106280,118678,114536,106276,114532,106274,114530,73256,102166,81512,73252,98024,81508,73250,98020,81506,98018,69142,73270,81526,98038,122772,122770,106260,114484,106258,114482,73236,81460,73234,97908,81458,97906,122762,106250,114458,73226,81434,97850,66396,66382,67416,99246,67404,67398,66350,67438,69456,100268,69448,100262,69444,69442,67372,69484,67366,69478,102312,116694,102308,102306,69416,100246,73576,102326,73572,69410,73570,67350,69430,73590,118740,118738,102292,106420,102290,106418,69396,73524,69394,81780,73522,81778,118730,102282,106394,69386,73498,81722,66476,66470,67496,99286,67492,67490,66454,67510,100308,100306,67476,69556,67474,69554,116714])]);$1.raps=$a([$a([802,930,946,818,882,890,826,954,922,986,970,906,778,794,786,914,978,982,980,916,948,932,934,942,940,936,808,812,814,806,822,950,918,790,788,820,884,868,870,878,876,872,840,856,860,862,846,844,836,838,834,866]),$a([718,590,622,558,550,566,534,530,538,570,562,546,610,626,634,762,754,758,630,628,612,614,582,578,706,738,742,740,748,620,556,552,616,744,712,716,708,710,646,654,652,668,664,696,688,656,720,592,600,604,732,734])]);$1.cwtobits=function(){var _G4=$g($1.clusters,$k[--$j]);$1.v=$g(_G4,$k[--$j]);$k[$j++]=Infinity;for(var _G7=0,_G8=17;_G7<_G8;_G7++){$k[$j++]=0}var _GB=$R($s(17),$1.v,2);for(var _GC=0,_GD=_GB.length;_GC<_GD;_GC++){$k[$j++]=$g(_GB,_GC)-48}var _GF=$a();$k[$j++]=$G(_GF,_GF.length-17,17)};$1.raptobits=function(){var _GJ=$g($1.raps,$k[--$j]);$1.v=$g(_GJ,$k[--$j]);$k[$j++]=Infinity;for(var _GM=0,_GN=10;_GM<_GN;_GM++){$k[$j++]=0}var _GQ=$R($s(10),$1.v,2);for(var _GR=0,_GS=_GQ.length;_GR<_GS;_GR++){$k[$j++]=$g(_GQ,_GR)-48}var _GU=$a();$k[$j++]=$G(_GU,_GU.length-10,10)};$1.rwid=$g($a([38,55,82,99]),$f($1.c-1));if($1.c==3&&$1.cca){$1.rwid=72}$1.pixs=$a($1.rwid*$1.r);for(var _Gg=0,_Gf=$f($1.r-1);_Gg<=_Gf;_Gg+=1){$1.i=_Gg;$1.clst=$f($f($1.i+$1.rapl)-1)%3;$k[$j++]=$1.pixs;$k[$j++]=$1.rwid*$1.i;$k[$j++]=Infinity;if($1.c==1){$k[$j++]=$f($f($1.i+$1.rapl)-1)%52;$k[$j++]=0;$1.raptobits();$q($k[--$j]);$k[$j++]=$g($1.cws,$1.i);$k[$j++]=$1.clst;$1.cwtobits();$q($k[--$j]);$k[$j++]=$f($f($1.i+$1.rapr)-1)%52;$k[$j++]=0;$1.raptobits();$q($k[--$j])}if($1.c==2){$k[$j++]=$f($f($1.i+$1.rapl)-1)%52;$k[$j++]=0;$1.raptobits();$q($k[--$j]);$k[$j++]=$g($1.cws,$1.i*2);$k[$j++]=$1.clst;$1.cwtobits();$q($k[--$j]);$k[$j++]=$g($1.cws,$1.i*2+1);$k[$j++]=$1.clst;$1.cwtobits();$q($k[--$j]);$k[$j++]=$f($f($1.i+$1.rapr)-1)%52;$k[$j++]=0;$1.raptobits();$q($k[--$j])}if($1.c==3){if(!$1.cca){$k[$j++]=$f($f($1.i+$1.rapl)-1)%52;$k[$j++]=0;$1.raptobits();$q($k[--$j])}$k[$j++]=$g($1.cws,$1.i*3);$k[$j++]=$1.clst;$1.cwtobits();$q($k[--$j]);$k[$j++]=$f($f($1.i+$1.rapc)-1)%52;$k[$j++]=1;$1.raptobits();$q($k[--$j]);$k[$j++]=$g($1.cws,$1.i*3+1);$k[$j++]=$1.clst;$1.cwtobits();$q($k[--$j]);$k[$j++]=$g($1.cws,$1.i*3+2);$k[$j++]=$1.clst;$1.cwtobits();$q($k[--$j]);$k[$j++]=$f($f($1.i+$1.rapr)-1)%52;$k[$j++]=0;$1.raptobits();$q($k[--$j])}if($1.c==4){$k[$j++]=$f($f($1.i+$1.rapl)-1)%52;$k[$j++]=0;$1.raptobits();$q($k[--$j]);$k[$j++]=$g($1.cws,$1.i*4);$k[$j++]=$1.clst;$1.cwtobits();$q($k[--$j]);$k[$j++]=$g($1.cws,$1.i*4+1);$k[$j++]=$1.clst;$1.cwtobits();$q($k[--$j]);$k[$j++]=$f($f($1.i+$1.rapc)-1)%52;$k[$j++]=1;$1.raptobits();$q($k[--$j]);$k[$j++]=$g($1.cws,$1.i*4+2);$k[$j++]=$1.clst;$1.cwtobits();$q($k[--$j]);$k[$j++]=$g($1.cws,$1.i*4+3);$k[$j++]=$1.clst;$1.cwtobits();$q($k[--$j]);$k[$j++]=$f($f($1.i+$1.rapr)-1)%52;$k[$j++]=0;$1.raptobits();$q($k[--$j])}$k[$j++]=1;var _I9=$a();var _IA=$k[--$j];$P($k[--$j],_IA,_I9)}var _IJ=new Map([["ren",$0.renmatrix],["pixs",$1.pixs],["pixx",$1.rwid],["pixy",$1.r],["height",$1.r/72*$1.rowmult],["width",$1.rwid/72],["opt",$1.options]]);$k[$j++]=_IJ;if(!$1.dontdraw){$0.renmatrix()}};$0.datamatrix=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.columns=0;$1.rows=0;$1.format="square";$1.version="unset";$1.parse=false;$1.parsefnc=false;$1.encoding="auto";$1.mailmark=false;$1.raw=false;$1.dmre=false;$1.dindmre=false;$1.isodmre=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});if($ne($1.version,"unset")){$x($1.version,"x");$j--;$1.rows=$k[--$j];$j--;$1.columns=$k[--$j]}$1.columns=~~$z($1.columns);$1.rows=~~$z($1.rows);$1.isodmre=$1.dmre;$k[$j++]=Infinity;$k[$j++]=$a([10,10,1,1,5,1]);$k[$j++]=$a([12,12,1,1,7,1]);$k[$j++]=$a([14,14,1,1,10,1]);$k[$j++]=$a([16,16,1,1,12,1]);$k[$j++]=$a([18,18,1,1,14,1]);$k[$j++]=$a([20,20,1,1,18,1]);$k[$j++]=$a([22,22,1,1,20,1]);$k[$j++]=$a([24,24,1,1,24,1]);$k[$j++]=$a([26,26,1,1,28,1]);$k[$j++]=$a([32,32,2,2,36,1]);$k[$j++]=$a([36,36,2,2,42,1]);$k[$j++]=$a([40,40,2,2,48,1]);$k[$j++]=$a([44,44,2,2,56,1]);$k[$j++]=$a([48,48,2,2,68,1]);$k[$j++]=$a([52,52,2,2,84,2]);$k[$j++]=$a([64,64,4,4,112,2]);$k[$j++]=$a([72,72,4,4,144,4]);$k[$j++]=$a([80,80,4,4,192,4]);$k[$j++]=$a([88,88,4,4,224,4]);$k[$j++]=$a([96,96,4,4,272,4]);$k[$j++]=$a([104,104,4,4,336,6]);$k[$j++]=$a([120,120,6,6,408,6]);$k[$j++]=$a([132,132,6,6,496,8]);$k[$j++]=$a([144,144,6,6,620,10]);$k[$j++]=$a([8,18,1,1,7,1]);$k[$j++]=$a([8,32,1,2,11,1]);if($1.dindmre||$1.isodmre){$k[$j++]=$a([8,48,1,2,15,1])}if($1.dindmre||$1.isodmre){$k[$j++]=$a([8,64,1,4,18,1])}if($1.isodmre){$k[$j++]=$a([8,80,1,4,22,1])}if($1.isodmre){$k[$j++]=$a([8,96,1,4,28,1])}if($1.isodmre){$k[$j++]=$a([8,120,1,6,32,1])}if($1.isodmre){$k[$j++]=$a([8,144,1,6,36,1])}$k[$j++]=$a([12,26,1,1,14,1]);$k[$j++]=$a([12,36,1,2,18,1]);if($1.dindmre||$1.isodmre){$k[$j++]=$a([12,64,1,4,27,1])}if($1.isodmre){$k[$j++]=$a([12,88,1,4,36,1])}$k[$j++]=$a([16,36,1,2,24,1]);$k[$j++]=$a([16,48,1,2,28,1]);if($1.dindmre||$1.isodmre){$k[$j++]=$a([16,64,1,4,36,1])}if($1.isodmre){$k[$j++]=$a([20,36,1,2,28,1])}if($1.isodmre){$k[$j++]=$a([20,44,1,2,34,1])}if($1.isodmre){$k[$j++]=$a([20,64,1,4,42,1])}if($1.isodmre){$k[$j++]=$a([22,48,1,2,38,1])}if($1.dindmre){$k[$j++]=$a([24,32,1,2,28,1])}if($1.dindmre){$k[$j++]=$a([24,36,1,2,33,1])}if($1.dindmre||$1.isodmre){$k[$j++]=$a([24,48,1,2,41,1])}if($1.dindmre||$1.isodmre){$k[$j++]=$a([24,64,1,4,46,1])}if($1.dindmre){$k[$j++]=$a([26,32,1,2,32,1])}if($1.dindmre||$1.isodmre){$k[$j++]=$a([26,40,1,2,38,1])}if($1.dindmre||$1.isodmre){$k[$j++]=$a([26,48,1,2,42,1])}if($1.dindmre||$1.isodmre){$k[$j++]=$a([26,64,1,4,50,1])}$1.metrics=$a();$1.urows=$1.rows;$1.ucols=$1.columns;$1.fullcws=$a([]);var _1Z=$1.metrics;for(var _1a=0,_1b=_1Z.length;_1a<_1b;_1a++){$1.m=$g(_1Z,_1a);$1.rows=$g($1.m,0);$1.cols=$g($1.m,1);$1.regh=$g($1.m,2);$1.regv=$g($1.m,3);$1.rscw=$g($1.m,4);$1.rsbl=$g($1.m,5);$1.mrows=$f($1.rows-2*$1.regh);$1.mcols=$f($1.cols-2*$1.regv);$1.ncws=$f(~~($1.mrows*$1.mcols/8)-$1.rscw);$1.okay=true;if($1.urows!=0&&$1.urows!=$1.rows){$1.okay=false}if($1.ucols!=0&&$1.ucols!=$1.cols){$1.okay=false}if($eq($1.format,"square")&&$ne($1.rows,$1.cols)){$1.okay=false}if($eq($1.format,"rectangle")&&$eq($1.rows,$1.cols)){$1.okay=false}if($1.okay){$k[$j++]=Infinity;$q($1.fullcws);$k[$j++]=$1.ncws;$1.fullcws=$a()}}$k[$j++]=Infinity;for(var _2C=0,_2D=1558;_2C<_2D;_2C++){$k[$j++]=1e4}$1.numremcws=$a();var _2F=$1.fullcws;for(var _2G=0,_2H=_2F.length;_2G<_2H;_2G++){$p($1.numremcws,$f($g(_2F,_2G)-1),1)}for(var _2K=1556;_2K>=0;_2K-=1){$1.i=_2K;if($g($1.numremcws,$1.i)!=1){$p($1.numremcws,$1.i,$f($g($1.numremcws,$1.i+1)+1))}}if($1.raw){$1.encoding="raw"}if($eq($1.encoding,"raw")){$1.cws=$a($1.barcode.length);$1.i=0;$1.j=0;for(;;){if($1.i==$1.barcode.length){break}$1.cw=~~$z($G($1.barcode,$1.i+1,3));$p($1.cws,$1.j,$1.cw);$1.i=$1.i+4;$1.j=$1.j+1}$1.cws=$G($1.cws,0,$1.j)}if($eq($1.encoding,"auto")){$1.fnc1=-1;$1.prog=-2;$1.m05=-3;$1.m06=-4;$1.lC=-5;$1.lB=-6;$1.lX=-7;$1.lT=-8;$1.lE=-9;$1.unl=-10;$1.sapp=-11;$1.usft=-12;$1.sft1=-13;$1.sft2=-14;$1.sft3=-15;$1.eci=-16;$1.pad=-17;$1.unlcw=254;var _2p=new Map([["parse",$1.parse],["parsefnc",$1.parsefnc],["eci",true],["FNC1",$1.fnc1],["PROG",$1.prog]]);$1.fncvals=_2p;$k[$j++]="msg";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _2s=$k[--$j];$1[$k[--$j]]=_2s;$1.msglen=$1.msg.length;if($1.msglen>=9){$q($G($1.msg,0,7));var _2y=$k[--$j];var _2z=$k[--$j];$k[$j++]=_2y==29;$k[$j++]=_2z;$j--;var _30=$k[--$j];var _31=$k[--$j];var _32=$k[--$j];var _33=$k[--$j];var _34=$k[--$j];var _35=$k[--$j];if(_30&&_31==48&&_32==30&&_33==62&&_34==41&&_35==91){$q($G($1.msg,$1.msglen-2,2));var _39=$k[--$j];var _3A=$k[--$j];if(_39==4&&_3A==30){if($g($1.msg,5)==53){$k[$j++]=Infinity;$k[$j++]=$1.m05;$q($G($1.msg,7,$1.msg.length-9));$1.msg=$a()}if($g($1.msg,5)==54){$k[$j++]=Infinity;$k[$j++]=$1.m06;$q($G($1.msg,7,$1.msg.length-9));$1.msg=$a()}}}}$1.msglen=$1.msg.length;$k[$j++]=Infinity;for(var _3Q=0;_3Q<=128;_3Q+=1){$k[$j++]=_3Q;$k[$j++]=_3Q+1}$k[$j++]=$1.pad;$k[$j++]=129;for(var _3S=0;_3S<=99;_3S+=1){var _3U=$R($s(2),_3S,10);var _3W=$Z($s(2),"00");$P(_3W,2-_3U.length,_3U);$k[$j++]=_3W;$k[$j++]=_3S+130}var _3j=$a([$1.lC,$1.lB,$1.fnc1,$1.sapp,$1.prog,$1.usft,$1.m05,$1.m06,$1.lX,$1.lT,$1.lE,$1.eci]);$k[$j++]=229;for(var _3k=0,_3l=_3j.length;_3k<_3l;_3k++){var _3o=$f($k[--$j]+1);$k[$j++]=$g(_3j,_3k);$k[$j++]=_3o;$k[$j++]=_3o}$j--;$1.Avals=$d();$k[$j++]=Infinity;var _3q=$1.Avals;for(var _3v=_3q.size,_3u=_3q.keys(),_3t=0;_3t<_3v;_3t++){var _3r=_3u.next().value;$k[$j++]=_3r;$k[$j++]=_3q.get(_3r);$k[$j++]=Infinity;var _3w=$k[--$j];var _3x=$k[--$j];$k[$j++]=_3w;$k[$j++]=_3x;var _3y=$a();$k[$j++]=_3y}$1.Avals=$d();$k[$j++]=Infinity;$k[$j++]=$1.sft1;$k[$j++]=0;$k[$j++]=$1.sft2;$k[$j++]=1;$k[$j++]=$1.sft3;$k[$j++]=2;$k[$j++]=32;$k[$j++]=3;for(var _43=48;_43<=57;_43+=1){$k[$j++]=_43;$k[$j++]=_43-44}for(var _44=65;_44<=90;_44+=1){$k[$j++]=_44;$k[$j++]=_44-51}$1.CNvals=$d();$k[$j++]=Infinity;for(var _46=0;_46<=31;_46+=1){$k[$j++]=_46;$k[$j++]=_46}$1.C1vals=$d();$k[$j++]=Infinity;for(var _48=33;_48<=47;_48+=1){$k[$j++]=_48;$k[$j++]=_48-33}for(var _49=58;_49<=64;_49+=1){$k[$j++]=_49;$k[$j++]=_49-43}for(var _4A=91;_4A<=95;_4A+=1){$k[$j++]=_4A;$k[$j++]=_4A-69}$k[$j++]=$1.fnc1;$k[$j++]=27;$k[$j++]=$1.usft;$k[$j++]=30;$1.C2vals=$d();$k[$j++]=Infinity;for(var _4E=96;_4E<=127;_4E+=1){$k[$j++]=_4E;$k[$j++]=_4E-96}$1.C3vals=$d();$k[$j++]=Infinity;var _4G=$1.CNvals;for(var _4L=_4G.size,_4K=_4G.keys(),_4J=0;_4J<_4L;_4J++){var _4H=_4K.next().value;$k[$j++]=_4H;$k[$j++]=_4G.get(_4H);$k[$j++]=Infinity;var _4M=$k[--$j];var _4N=$k[--$j];$k[$j++]=_4M;$k[$j++]=_4N;var _4O=$a();$k[$j++]=_4O}var _4P=$1.C1vals;for(var _4U=_4P.size,_4T=_4P.keys(),_4S=0;_4S<_4U;_4S++){var _4Q=_4T.next().value;$k[$j++]=_4Q;$k[$j++]=_4P.get(_4Q);$k[$j++]=Infinity;var _4V=$k[--$j];var _4W=$k[--$j];$k[$j++]=_4V;$k[$j++]=$g($1.CNvals,$1.sft1);$k[$j++]=_4W;var _4a=$a();$k[$j++]=_4a}var _4b=$1.C2vals;for(var _4g=_4b.size,_4f=_4b.keys(),_4e=0;_4e<_4g;_4e++){var _4c=_4f.next().value;$k[$j++]=_4c;$k[$j++]=_4b.get(_4c);$k[$j++]=Infinity;var _4h=$k[--$j];var _4i=$k[--$j];$k[$j++]=_4h;$k[$j++]=$g($1.CNvals,$1.sft2);$k[$j++]=_4i;var _4m=$a();$k[$j++]=_4m}var _4n=$1.C3vals;for(var _4s=_4n.size,_4r=_4n.keys(),_4q=0;_4q<_4s;_4q++){var _4o=_4r.next().value;$k[$j++]=_4o;$k[$j++]=_4n.get(_4o);$k[$j++]=Infinity;var _4t=$k[--$j];var _4u=$k[--$j];$k[$j++]=_4t;$k[$j++]=$g($1.CNvals,$1.sft3);$k[$j++]=_4u;var _4y=$a();$k[$j++]=_4y}$1.Cvals=$d();$k[$j++]=Infinity;$k[$j++]=$1.sft1;$k[$j++]=0;$k[$j++]=$1.sft2;$k[$j++]=1;$k[$j++]=$1.sft3;$k[$j++]=2;$k[$j++]=32;$k[$j++]=3;for(var _53=48;_53<=57;_53+=1){$k[$j++]=_53;$k[$j++]=_53-44}for(var _54=97;_54<=122;_54+=1){$k[$j++]=_54;$k[$j++]=_54-83}$1.TNvals=$d();$k[$j++]=Infinity;for(var _56=0;_56<=31;_56+=1){$k[$j++]=_56;$k[$j++]=_56}$1.T1vals=$d();$k[$j++]=Infinity;for(var _58=33;_58<=47;_58+=1){$k[$j++]=_58;$k[$j++]=_58-33}for(var _59=58;_59<=64;_59+=1){$k[$j++]=_59;$k[$j++]=_59-43}for(var _5A=91;_5A<=95;_5A+=1){$k[$j++]=_5A;$k[$j++]=_5A-69}$k[$j++]=$1.fnc1;$k[$j++]=27;$k[$j++]=$1.usft;$k[$j++]=30;$1.T2vals=$d();$k[$j++]=Infinity;$k[$j++]=96;$k[$j++]=0;for(var _5E=65;_5E<=90;_5E+=1){$k[$j++]=_5E;$k[$j++]=_5E-64}for(var _5F=123;_5F<=127;_5F+=1){$k[$j++]=_5F;$k[$j++]=_5F-96}$1.T3vals=$d();$k[$j++]=Infinity;var _5H=$1.TNvals;for(var _5M=_5H.size,_5L=_5H.keys(),_5K=0;_5K<_5M;_5K++){var _5I=_5L.next().value;$k[$j++]=_5I;$k[$j++]=_5H.get(_5I);$k[$j++]=Infinity;var _5N=$k[--$j];var _5O=$k[--$j];$k[$j++]=_5N;$k[$j++]=_5O;var _5P=$a();$k[$j++]=_5P}var _5Q=$1.T1vals;for(var _5V=_5Q.size,_5U=_5Q.keys(),_5T=0;_5T<_5V;_5T++){var _5R=_5U.next().value;$k[$j++]=_5R;$k[$j++]=_5Q.get(_5R);$k[$j++]=Infinity;var _5W=$k[--$j];var _5X=$k[--$j];$k[$j++]=_5W;$k[$j++]=$g($1.TNvals,$1.sft1);$k[$j++]=_5X;var _5b=$a();$k[$j++]=_5b}var _5c=$1.T2vals;for(var _5h=_5c.size,_5g=_5c.keys(),_5f=0;_5f<_5h;_5f++){var _5d=_5g.next().value;$k[$j++]=_5d;$k[$j++]=_5c.get(_5d);$k[$j++]=Infinity;var _5i=$k[--$j];var _5j=$k[--$j];$k[$j++]=_5i;$k[$j++]=$g($1.TNvals,$1.sft2);$k[$j++]=_5j;var _5n=$a();$k[$j++]=_5n}var _5o=$1.T3vals;for(var _5t=_5o.size,_5s=_5o.keys(),_5r=0;_5r<_5t;_5r++){var _5p=_5s.next().value;$k[$j++]=_5p;$k[$j++]=_5o.get(_5p);$k[$j++]=Infinity;var _5u=$k[--$j];var _5v=$k[--$j];$k[$j++]=_5u;$k[$j++]=$g($1.TNvals,$1.sft3);$k[$j++]=_5v;var _5z=$a();$k[$j++]=_5z}$1.Tvals=$d();for(var _61=128;_61<=255;_61+=1){$1.i=_61;$k[$j++]=$1.Avals;$k[$j++]=$1.i;$k[$j++]=Infinity;$q($g($1.Avals,$1.usft));$q($g($1.Avals,$1.i-128));var _6A=$a();var _6B=$k[--$j];$p($k[--$j],_6B,_6A);$k[$j++]=$1.Cvals;$k[$j++]=$1.i;$k[$j++]=Infinity;$q($g($1.Cvals,$1.usft));$q($g($1.Cvals,$1.i-128));var _6L=$a();var _6M=$k[--$j];$p($k[--$j],_6M,_6L);$k[$j++]=$1.Tvals;$k[$j++]=$1.i;$k[$j++]=Infinity;$q($g($1.Tvals,$1.usft));$q($g($1.Tvals,$1.i-128));var _6W=$a();var _6X=$k[--$j];$p($k[--$j],_6X,_6W)}$k[$j++]=Infinity;$k[$j++]=13;$k[$j++]=0;$k[$j++]=42;$k[$j++]=1;$k[$j++]=62;$k[$j++]=2;$k[$j++]=32;$k[$j++]=3;for(var _6Z=48;_6Z<=57;_6Z+=1){$k[$j++]=_6Z;$k[$j++]=_6Z-44}for(var _6a=65;_6a<=90;_6a+=1){$k[$j++]=_6a;$k[$j++]=_6a-51}$1.Xvals=$d();$k[$j++]=Infinity;var _6c=$1.Xvals;for(var _6h=_6c.size,_6g=_6c.keys(),_6f=0;_6f<_6h;_6f++){var _6d=_6g.next().value;$k[$j++]=_6d;$k[$j++]=_6c.get(_6d);$k[$j++]=Infinity;var _6i=$k[--$j];var _6j=$k[--$j];$k[$j++]=_6i;$k[$j++]=_6j;var _6k=$a();$k[$j++]=_6k}$1.Xvals=$d();$k[$j++]=Infinity;for(var _6m=64;_6m<=94;_6m+=1){$k[$j++]=_6m;$k[$j++]=_6m-64}$k[$j++]=$1.unl;$k[$j++]=31;for(var _6o=32;_6o<=63;_6o+=1){$k[$j++]=_6o;$k[$j++]=_6o}$1.Evals=$d();$k[$j++]=Infinity;var _6q=$1.Evals;for(var _6v=_6q.size,_6u=_6q.keys(),_6t=0;_6t<_6v;_6t++){var _6r=_6u.next().value;$k[$j++]=_6r;$k[$j++]=_6q.get(_6r);$k[$j++]=Infinity;var _6w=$k[--$j];var _6x=$k[--$j];$k[$j++]=_6w;$k[$j++]=_6x;var _6y=$a();$k[$j++]=_6y}$1.Evals=$d();$k[$j++]=Infinity;for(var _70=0;_70<=255;_70+=1){$k[$j++]=_70;$k[$j++]=_70}$1.Bvals=$d();$k[$j++]=Infinity;var _72=$1.Bvals;for(var _77=_72.size,_76=_72.keys(),_75=0;_75<_77;_75++){var _73=_76.next().value;$k[$j++]=_73;$k[$j++]=_72.get(_73);$k[$j++]=Infinity;var _78=$k[--$j];var _79=$k[--$j];$k[$j++]=_78;$k[$j++]=_79;var _7A=$a();$k[$j++]=_7A}$1.Bvals=$d();$1.encvals=$a([$1.Avals,$1.Cvals,$1.Tvals,$1.Xvals,$1.Evals,$1.Bvals]);$k[$j++]=Infinity;for(var _7K=0,_7L=$1.msglen;_7K<_7L;_7K++){$k[$j++]=0}$k[$j++]=0;$1.numD=$a();$k[$j++]=Infinity;for(var _7O=0,_7P=$1.msglen;_7O<_7P;_7O++){$k[$j++]=0}$k[$j++]=9999;$1.nextXterm=$a();$k[$j++]=Infinity;for(var _7S=0,_7T=$1.msglen;_7S<_7T;_7S++){$k[$j++]=0}$k[$j++]=9999;$1.nextNonX=$a();$k[$j++]=Infinity;for(var _7W=0,_7X=$1.msglen;_7W<_7X;_7W++){$k[$j++]=false}$k[$j++]=false;$1.isECI=$a();for(var _7a=$1.msglen-1;_7a>=0;_7a-=1){$1.i=_7a;$1.barchar=$g($1.msg,$1.i);if($1.barchar>=48&&$1.barchar<=57){$p($1.numD,$1.i,$f($g($1.numD,$1.i+1)+1))}if($1.barchar==13||$1.barchar==42||$1.barchar==62){$p($1.nextXterm,$1.i,0)}else{$p($1.nextXterm,$1.i,$f($g($1.nextXterm,$1.i+1)+1))}var _7x=$g($1.Xvals,$1.barchar)!==undefined;if(!_7x){$p($1.nextNonX,$1.i,0)}else{$p($1.nextNonX,$1.i,$f($g($1.nextNonX,$1.i+1)+1))}$p($1.isECI,$1.i,$1.barchar<=-1e6)}$k[$j++]=Infinity;var _88=$1.nextXterm;for(var _89=0,_8A=_88.length;_89<_8A;_89++){var _8B=$g(_88,_89);$k[$j++]=_8B;if(_8B>1e4){$j--;$k[$j++]=1e4}}$1.nextXterm=$a();$k[$j++]=Infinity;var _8D=$1.nextNonX;for(var _8E=0,_8F=_8D.length;_8E<_8F;_8E++){var _8G=$g(_8D,_8E);$k[$j++]=_8G;if(_8G>1e4){$j--;$k[$j++]=1e4}}$1.nextNonX=$a();$1.isD=function(){$k[$j++]=$1.char>=48&&$1.char<=57};$1.isC=function(){var _8M=$g($1.CNvals,$1.char)!==undefined;$k[$j++]=_8M};$1.isT=function(){var _8P=$g($1.TNvals,$1.char)!==undefined;$k[$j++]=_8P};$1.isX=function(){var _8S=$g($1.Xvals,$1.char)!==undefined;$k[$j++]=_8S};$1.isE=function(){var _8V=$g($1.Evals,$1.char)!==undefined;$k[$j++]=_8V};$1.isEA=function(){$k[$j++]=$1.char>127};$1.isFN=function(){$k[$j++]=$1.char<0};$1.XtermFirst=function(){var _8Y=$k[--$j];$k[$j++]=$lt($g($1.nextXterm,_8Y),$g($1.nextNonX,_8Y))};$1.A=0;$1.C=1;$1.T=2;$1.X=3;$1.E=4;$1.B=5;$1.lookup=function(){$1.ac=1;$1.cc=2;$1.tc=2;$1.xc=2;$1.ec=2;$1.bc=2.25;if($1.mode==$1.A){$1.ac=0;$1.cc=1;$1.tc=1;$1.xc=1;$1.ec=1;$1.bc=1.25}if($1.mode==$1.C){$1.cc=0}if($1.mode==$1.T){$1.tc=0}if($1.mode==$1.X){$1.xc=0}if($1.mode==$1.E){$1.ec=0}if($1.mode==$1.B){$1.bc=0}for(var _8p=0,_8q=1;_8p<_8q;_8p++){if($g($1.isECI,$1.i)){$k[$j++]=$1.A;break}if($1.mailmark&&$1.i<45){$k[$j++]=$1.C;break}$1.k=0;for(;;){if($1.i+$1.k==$1.msglen){var _91=$a(["ac","cc","tc","xc","ec","bc"]);for(var _92=0,_93=_91.length;_92<_93;_92++){var _94=$g(_91,_92);$1[_94]=Math.ceil($1[_94])}var _9B=$a([$1.cc,$1.tc,$1.xc,$1.ec,$1.bc]);$k[$j++]=true;for(var _9C=0,_9D=_9B.length;_9C<_9D;_9C++){var _9G=$k[--$j];$k[$j++]=_9G&&$1.ac<=$g(_9B,_9C)}if($k[--$j]){$k[$j++]=$1.A;break}var _9O=$a([$1.ac,$1.cc,$1.tc,$1.xc,$1.ec]);$k[$j++]=true;for(var _9P=0,_9Q=_9O.length;_9P<_9Q;_9P++){var _9T=$k[--$j];$k[$j++]=_9T&&$1.bc<$g(_9O,_9P)}if($k[--$j]){$k[$j++]=$1.B;break}var _9b=$a([$1.ac,$1.cc,$1.tc,$1.xc,$1.bc]);$k[$j++]=true;for(var _9c=0,_9d=_9b.length;_9c<_9d;_9c++){var _9g=$k[--$j];$k[$j++]=_9g&&$1.ec<$g(_9b,_9c)}if($k[--$j]){$k[$j++]=$1.E;break}var _9o=$a([$1.ac,$1.cc,$1.xc,$1.ec,$1.bc]);$k[$j++]=true;for(var _9p=0,_9q=_9o.length;_9p<_9q;_9p++){var _9t=$k[--$j];$k[$j++]=_9t&&$1.tc<$g(_9o,_9p)}if($k[--$j]){$k[$j++]=$1.T;break}var _A1=$a([$1.ac,$1.cc,$1.tc,$1.ec,$1.bc]);$k[$j++]=true;for(var _A2=0,_A3=_A1.length;_A2<_A3;_A2++){var _A6=$k[--$j];$k[$j++]=_A6&&$1.xc<$g(_A1,_A2)}if($k[--$j]){$k[$j++]=$1.X;break}$k[$j++]=$1.C;break}$1.char=$g($1.msg,$1.i+$1.k);$k[$j++]="ac";$k[$j++]=$1.ac;$1.isD();if($k[--$j]){var _AG=$k[--$j];$k[$j++]=$f(_AG+1/2)}else{$1.isEA();if($k[--$j]){var _AI=$k[--$j];$k[$j++]=Math.ceil(_AI)+2}else{var _AJ=$k[--$j];$k[$j++]=Math.ceil(_AJ)+1}}var _AK=$k[--$j];$1[$k[--$j]]=_AK;$k[$j++]="cc";$k[$j++]=$1.cc;$1.isC();if($k[--$j]){var _AO=$k[--$j];$k[$j++]=$f(_AO+.66666667)}else{$1.isEA();if($k[--$j]){var _AQ=$k[--$j];$k[$j++]=$f(_AQ+2.66666667)}else{var _AR=$k[--$j];$k[$j++]=$f(_AR+1.33333334)}}var _AS=$k[--$j];$1[$k[--$j]]=_AS;$k[$j++]="tc";$k[$j++]=$1.tc;$1.isT();if($k[--$j]){var _AW=$k[--$j];$k[$j++]=$f(_AW+.66666667)}else{$1.isEA();if($k[--$j]){var _AY=$k[--$j];$k[$j++]=$f(_AY+2.66666667)}else{var _AZ=$k[--$j];$k[$j++]=$f(_AZ+1.33333334)}}var _Aa=$k[--$j];$1[$k[--$j]]=_Aa;$k[$j++]="xc";$k[$j++]=$1.xc;$1.isX();if($k[--$j]){var _Ae=$k[--$j];$k[$j++]=$f(_Ae+.66666667)}else{$1.isEA();if($k[--$j]){var _Ag=$k[--$j];$k[$j++]=$f(_Ag+4.33333334)}else{var _Ah=$k[--$j];$k[$j++]=$f(_Ah+3.33333334)}}var _Ai=$k[--$j];$1[$k[--$j]]=_Ai;$k[$j++]="ec";$k[$j++]=$1.ec;$1.isE();if($k[--$j]){var _Am=$k[--$j];$k[$j++]=$f(_Am+3/4)}else{$1.isEA();if($k[--$j]){var _Ao=$k[--$j];$k[$j++]=$f(_Ao+17/4)}else{var _Ap=$k[--$j];$k[$j++]=$f(_Ap+13/4)}}var _Aq=$k[--$j];$1[$k[--$j]]=_Aq;$k[$j++]="bc";$k[$j++]=$1.bc;$1.isFN();if($k[--$j]){var _Au=$k[--$j];$k[$j++]=$f(_Au+4)}else{var _Av=$k[--$j];$k[$j++]=$f(_Av+1)}var _Aw=$k[--$j];$1[$k[--$j]]=_Aw;if($1.k>=4){var _B4=$a([$1.cc,$1.tc,$1.xc,$1.ec,$1.bc]);$k[$j++]=true;for(var _B5=0,_B6=_B4.length;_B5<_B6;_B5++){var _B9=$k[--$j];$k[$j++]=_B9&&$1.ac+1<=$g(_B4,_B5)}if($k[--$j]){$k[$j++]=$1.A;break}if($1.bc+1<=$1.ac){$k[$j++]=$1.B;break}var _BJ=$a([$1.cc,$1.tc,$1.xc,$1.ec]);$k[$j++]=true;for(var _BK=0,_BL=_BJ.length;_BK<_BL;_BK++){var _BO=$k[--$j];$k[$j++]=_BO&&$1.bc+1<$g(_BJ,_BK)}if($k[--$j]){$k[$j++]=$1.B;break}var _BW=$a([$1.ac,$1.cc,$1.tc,$1.xc,$1.bc]);$k[$j++]=true;for(var _BX=0,_BY=_BW.length;_BX<_BY;_BX++){var _Bb=$k[--$j];$k[$j++]=_Bb&&$1.ec+1<$g(_BW,_BX)}if($k[--$j]){$k[$j++]=$1.E;break}var _Bj=$a([$1.ac,$1.cc,$1.xc,$1.ec,$1.bc]);$k[$j++]=true;for(var _Bk=0,_Bl=_Bj.length;_Bk<_Bl;_Bk++){var _Bo=$k[--$j];$k[$j++]=_Bo&&$1.tc+1<$g(_Bj,_Bk)}if($k[--$j]){$k[$j++]=$1.T;break}var _Bw=$a([$1.ac,$1.cc,$1.tc,$1.ec,$1.bc]);$k[$j++]=true;for(var _Bx=0,_By=_Bw.length;_Bx<_By;_Bx++){var _C1=$k[--$j];$k[$j++]=_C1&&$1.xc+1<$g(_Bw,_Bx)}if($k[--$j]){$k[$j++]=$1.X;break}var _C8=$a([$1.ac,$1.tc,$1.ec,$1.bc]);$k[$j++]=true;for(var _C9=0,_CA=_C8.length;_C9<_CA;_C9++){var _CD=$k[--$j];$k[$j++]=_CD&&$1.cc+1<$g(_C8,_C9)}if($k[--$j]){if($1.cc<$1.xc){$k[$j++]=$1.C;break}if($1.cc==$1.xc){$k[$j++]=$1.i+$1.k+1;$1.XtermFirst();if($k[--$j]){$k[$j++]=$1.X;break}else{$k[$j++]=$1.C;break}}}}$1.k=$1.k+1}}};$1.addtocws=function(){var _CQ=$k[--$j];$P($1.cws,$1.j,_CQ);$1.j=_CQ.length+$1.j};$1.ECItocws=function(){var _CV=$f(-$k[--$j]-1e6);$k[$j++]=_CV;if(_CV<=126){var _CW=$k[--$j];$k[$j++]=$f(_CW+1);$r($a(1))}else{var _CY=$k[--$j];$k[$j++]=_CY;if(_CY<=16382){var _Ca=$f($k[--$j]-127);$k[$j++]=~~(_Ca/254)+128;$k[$j++]=$f(_Ca%254+1);$r($a(2))}else{var _Cd=$f($k[--$j]-16383);$k[$j++]=~~(_Cd/64516)+192;$k[$j++]=~~(_Cd/254)%254+1;$k[$j++]=$f(_Cd%254+1);$r($a(3))}}};$1.encA=function(){for(var _Cf=0,_Cg=1;_Cf<_Cg;_Cf++){if($g($1.isECI,$1.i)){$k[$j++]=$g($1.Avals,$1.eci);$1.addtocws();$k[$j++]=$g($1.msg,$1.i);$1.ECItocws();$1.addtocws();$1.i=$1.i+1;break}if($g($1.numD,$1.i)>=2){var _Cu=$s(2);$p(_Cu,0,$g($1.msg,$1.i));$p(_Cu,1,$g($1.msg,$1.i+1));$k[$j++]=$g($1.Avals,_Cu);$1.addtocws();$1.i=$1.i+2;break}$k[$j++]="newmode";$1.lookup();var _D4=$k[--$j];$1[$k[--$j]]=_D4;if($1.newmode!=$1.mode){$k[$j++]=$g($1.Avals,$g($a([-1,$1.lC,$1.lT,$1.lX,$1.lE,$1.lB]),$1.newmode));$1.addtocws();$1.mode=$1.newmode;break}$k[$j++]=$g($1.Avals,$g($1.msg,$1.i));$1.addtocws();$1.i=$1.i+1;break}};$1.CTXvalstocws=function(){$1.in=$k[--$j];$k[$j++]=Infinity;for(var _DS=0,_DR=$1.in.length-1;_DS<=_DR;_DS+=3){var _DU=$G($1.in,_DS,3);$k[$j++]=0;for(var _DV=0,_DW=_DU.length;_DV<_DW;_DV++){var _DY=$k[--$j];$k[$j++]=$f(_DY+$g(_DU,_DV))*40}var _Da=~~($k[--$j]/40)+1;$k[$j++]=~~(_Da/256);$k[$j++]=_Da%256}$r($a($m()));var _Dd=$k[--$j];var _De=$k[--$j];$k[$j++]=_Dd;$k[$j++]=_De;$j--};$1.encCTX=function(){$1.p=0;$1.ctxvals=$a(2500);$1.done=false;for(;;){if($1.i==$1.msglen){break}var _Do=$g($g($1.encvals,$1.mode),$g($1.msg,$1.i))!==undefined;if(!_Do){break}if($1.p%3==0){$k[$j++]="newmode";$1.lookup();var _Dq=$k[--$j];$1[$k[--$j]]=_Dq;if($ne($1.newmode,$1.mode)){$k[$j++]=$G($1.ctxvals,0,$1.p);$1.CTXvalstocws();$1.addtocws();$k[$j++]=$a([$1.unlcw]);$1.addtocws();if($1.newmode!=$1.A){$k[$j++]=$g($1.Avals,$g($a([-1,$1.lC,$1.lT,$1.lX,$1.lE,$1.lB]),$1.newmode));$1.addtocws()}$1.mode=$1.newmode;$1.done=true;break}if($1.msglen-$1.i<=3){$1.remcws=$g($1.numremcws,$1.j+~~($1.p/3)*2);$k[$j++]=Infinity;var _EM=$G($1.msg,$1.i,$1.msglen-$1.i);for(var _EN=0,_EO=_EM.length;_EN<_EO;_EN++){var _EP=$g(_EM,_EN);var _ET=$g($g($1.encvals,$1.mode),_EP)!==undefined;$k[$j++]=_EP;if(_ET){$q($g($g($1.encvals,$1.mode),$k[--$j]))}else{$j--;$k[$j++]=-1;$k[$j++]=-1;$k[$j++]=-1;$k[$j++]=-1}}$1.remvals=$a();if($1.remcws==2&&$1.remvals.length==3){$k[$j++]=Infinity;$q($G($1.ctxvals,0,$1.p));$q($1.remvals);var _Eg=$a();$k[$j++]=_Eg;$1.CTXvalstocws();$1.addtocws();$1.mode=$1.A;$1.i=$1.msglen;$1.done=true;break}if($1.remcws==2&&$1.remvals.length==2&&$1.mode!=$1.X){$k[$j++]=Infinity;$q($G($1.ctxvals,0,$1.p));$q($1.remvals);$q($g($g($1.encvals,$1.mode),$1.sft1));var _Ew=$a();$k[$j++]=_Ew;$1.CTXvalstocws();$1.addtocws();$1.mode=$1.A;$1.i=$1.msglen;$1.done=true;break}if($1.remcws==2&&$1.remvals.length==1){$k[$j++]=$G($1.ctxvals,0,$1.p);$1.CTXvalstocws();$1.addtocws();$k[$j++]=$a([$1.unlcw]);$1.addtocws();$k[$j++]=$g($1.Avals,$g($1.msg,$1.i));$1.addtocws();$1.mode=$1.A;$1.i=$1.msglen;$1.done=true;break}if($1.remcws==1&&$1.remvals.length==1){$k[$j++]=$G($1.ctxvals,0,$1.p);$1.CTXvalstocws();$1.addtocws();$k[$j++]=$g($1.Avals,$g($1.msg,$1.i));$1.addtocws();$1.mode=$1.A;$1.i=$1.msglen;$1.done=true;break}}}var _FV=$g($g($1.encvals,$1.mode),$g($1.msg,$1.i));$P($1.ctxvals,$1.p,_FV);$1.p=_FV.length+$1.p;$1.i=$1.i+1}if(!$1.done){for(;;){if($1.p%3==0){break}$1.i=$1.i-1;$1.p=$1.p-$g($g($1.encvals,$1.mode),$g($1.msg,$1.i)).length}$k[$j++]=Infinity;$q($G($1.ctxvals,0,$1.p));var _Fo=$a();$k[$j++]=_Fo;$1.CTXvalstocws();$1.addtocws();$k[$j++]=$a([$1.unlcw]);$1.addtocws();$1.mode=$1.A;if($1.i!=$1.msglen&&$nt($g($1.isECI,$1.i))){if($g($1.numD,$1.i)>=2){var _G0=$s(2);$p(_G0,0,$g($1.msg,$1.i));$p(_G0,1,$g($1.msg,$1.i+1));$k[$j++]=$g($1.Avals,_G0);$1.addtocws();$1.i=$1.i+2}else{$k[$j++]=$g($1.Avals,$g($1.msg,$1.i));$1.addtocws();$1.i=$1.i+1}}}};$1.Evalstocws=function(){$1.in=$k[--$j];$1.inlen=$1.in.length;$1.outlen=~~Math.ceil($1.in.length/4*3);$k[$j++]=Infinity;$q($1.in);$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$1.in=$a();$k[$j++]=Infinity;for(var _GN=0,_GM=$1.inlen-1;_GN<=_GM;_GN+=4){var _GP=$G($1.in,_GN,4);$k[$j++]=0;for(var _GQ=0,_GR=_GP.length;_GQ<_GR;_GQ++){var _GT=$k[--$j];$k[$j++]=$or(_GT,$g(_GP,_GQ))<<6}var _GV=$k[--$j]>>>6;$k[$j++]=_GV>>>16&255;$k[$j++]=_GV>>>8&255;$k[$j++]=_GV&255}$r($a($m()));var _GY=$k[--$j];var _GZ=$k[--$j];$k[$j++]=_GY;$k[$j++]=_GZ;$j--;var _Gc=$G($k[--$j],0,$1.outlen);$k[$j++]=_Gc};$1.encE=function(){$1.p=0;$1.edifactvals=$a(2100);for(;;){if($1.i==$1.msglen){break}var _Gk=$g($1.Evals,$g($1.msg,$1.i))!==undefined;if(!_Gk){break}if($1.p%4==0){if($1.msglen-$1.i<=2){$1.remcws=$g($1.numremcws,$1.j+~~($1.p/4)*3);$k[$j++]=Infinity;var _Gw=$G($1.msg,$1.i,$1.msglen-$1.i);for(var _Gx=0,_Gy=_Gw.length;_Gx<_Gy;_Gx++){$q($g($1.Avals,$g(_Gw,_Gx)))}$1.remvals=$a();if(($1.remcws==1||$1.remcws==2)&&$1.remvals.length<=$1.remcws){$k[$j++]=$G($1.edifactvals,0,$1.p);$1.Evalstocws();$1.addtocws();$k[$j++]=$1.remvals;$1.addtocws();$1.mode=$1.A;$1.i=$1.msglen;break}}$1.lookup();if($k[--$j]!=$1.mode){break}}var _HJ=$g($1.Evals,$g($1.msg,$1.i));$P($1.edifactvals,$1.p,_HJ);$1.p=_HJ.length+$1.p;$1.i=$1.i+1}if($1.mode!=$1.A){$1.remcws=$f($g($1.numremcws,$1.j+~~($1.p/4)*3-1)-1);if($1.p%4!=0||$1.i!=$1.msglen||$1.remcws>=3){var _Ha=$g($1.Evals,$1.unl);$P($1.edifactvals,$1.p,_Ha);$1.p=_Ha.length+$1.p}$k[$j++]=$G($1.edifactvals,0,$1.p);$1.Evalstocws();$1.addtocws();$1.mode=$1.A;if($1.i!=$1.msglen&&$nt($g($1.isECI,$1.i))){if($g($1.numD,$1.i)>=2){var _Hq=$s(2);$p(_Hq,0,$g($1.msg,$1.i));$p(_Hq,1,$g($1.msg,$1.i+1));$k[$j++]=$g($1.Avals,_Hq);$1.addtocws();$1.i=$1.i+2}else{$k[$j++]=$g($1.Avals,$g($1.msg,$1.i));$1.addtocws();$1.i=$1.i+1}}}};$1.encB=function(){$1.p=0;$1.bvals=$a(1558);for(;;){if($1.i==$1.msglen){break}$1.lookup();if($k[--$j]!=$1.mode){break}$p($1.bvals,$1.p,$g($1.msg,$1.i));$1.p=$1.p+1;$1.i=$1.i+1}$1.remcws=$f($g($1.numremcws,$1.j+$1.p)-1);$k[$j++]=Infinity;if($1.remcws==0&&$1.i==$1.msglen){$k[$j++]=0}else{if($1.p<250){$k[$j++]=$1.p}else{$k[$j++]=~~($1.p/250)+249;$k[$j++]=$1.p%250}}$q($G($1.bvals,0,$1.p));$1.bvals=$a();for(var _IZ=0,_IY=$1.bvals.length-1;_IZ<=_IY;_IZ+=1){$1.p=_IZ;var _If=$f(($1.j+$1.p+1)*149%255+1+$g($1.bvals,$1.p));$k[$j++]=_If;if(_If>=256){var _Ig=$k[--$j];$k[$j++]=$f(_Ig-256)}$p($1.bvals,$1.p,$k[--$j])}$k[$j++]=$1.bvals;$1.addtocws();$1.mode=$1.A};$1.cws=$a(1558);$1.mode=$1.A;$1.i=0;$1.j=0;for(;;){if($1.i>=$1.msglen){break}if($1[$g($a(["encA","encCTX","encCTX","encCTX","encE","encB"]),$1.mode)]()===true){break}}$1.cws=$G($1.cws,0,$1.j)}$1.datlen=$1.cws.length;$1.remcws=$f($g($1.numremcws,$1.j-1)-1);if($1.remcws>0){$k[$j++]=Infinity;$q($1.cws);for(var _J4=0,_J5=$1.remcws;_J4<_J5;_J4++){$k[$j++]=129}$1.cws=$a();for(var _JB=$1.datlen+1,_JA=$f($f($1.datlen+$1.remcws)-1);_JB<=_JA;_JB+=1){$1.i=_JB;var _JD=($1.i+1)*149%253+1+129;$k[$j++]=_JD;if(_JD>254){var _JE=$k[--$j];$k[$j++]=$f(_JE-254)}$p($1.cws,$1.i,$k[--$j])}}$1.i=0;for(;;){$1.m=$g($1.metrics,$1.i);$1.rows=$g($1.m,0);$1.cols=$g($1.m,1);$1.regh=$g($1.m,2);$1.regv=$g($1.m,3);$1.rscw=$g($1.m,4);$1.rsbl=$g($1.m,5);$1.mrows=$f($1.rows-2*$1.regh);$1.mcols=$f($1.cols-2*$1.regv);$1.rrows=~~($1.mrows/$1.regh);$1.rcols=~~($1.mcols/$1.regv);$1.ncws=$f(~~($1.mrows*$1.mcols/8)-$1.rscw);$1.okay=true;if($1.cws.length!=$1.ncws){$1.okay=false}if($1.urows!=0&&$1.urows!=$1.rows){$1.okay=false}if($1.ucols!=0&&$1.ucols!=$1.cols){$1.okay=false}if($eq($1.format,"square")&&$ne($1.rows,$1.cols)){$1.okay=false}if($eq($1.format,"rectangle")&&$eq($1.rows,$1.cols)){$1.okay=false}if($1.okay){break}$1.i=$1.i+1}$1.cwbs=$a($1.rsbl);$1.ecbs=$a($1.rsbl);for(var _K4=0,_K3=$f($1.rsbl-1);_K4<=_K3;_K4+=1){$1.i=_K4;if($1.cws.length!=1558){$1.cwbsize=~~($1.cws.length/$1.rsbl)}else{if($1.i<=7){$1.cwbsize=156}else{$1.cwbsize=155}}$1.cwb=$a($1.cwbsize);for(var _KD=0,_KC=$1.cwbsize-1;_KD<=_KC;_KD+=1){$1.j=_KD;$p($1.cwb,$1.j,$g($1.cws,$f($1.j*$1.rsbl+$1.i)))}$p($1.cwbs,$1.i,$1.cwb);$k[$j++]=$1.ecbs;$k[$j++]=$1.i;$k[$j++]=Infinity;for(var _KS=0,_KT=~~($1.rscw/$1.rsbl);_KS<_KT;_KS++){$k[$j++]=0}var _KU=$a();var _KV=$k[--$j];$p($k[--$j],_KV,_KU)}$k[$j++]=Infinity;$k[$j++]=1;for(var _KX=0,_KY=255;_KX<_KY;_KX++){var _KZ=$k[--$j];var _Ka=_KZ*2;$k[$j++]=_KZ;$k[$j++]=_Ka;if(_Ka>=256){var _Kb=$k[--$j];$k[$j++]=_Kb^301}}$1.rsalog=$a();$1.rslog=$a(256);for(var _Ke=1;_Ke<=255;_Ke+=1){$p($1.rslog,$g($1.rsalog,_Ke),_Ke)}$1.rsprod=function(){var _Ki=$k[--$j];var _Kj=$k[--$j];$k[$j++]=_Kj;$k[$j++]=_Ki;if(_Ki!=0&&_Kj!=0){var _Km=$g($1.rslog,$k[--$j]);var _Kr=$g($1.rsalog,$f(_Km+$g($1.rslog,$k[--$j]))%255);$k[$j++]=_Kr}else{$j-=2;$k[$j++]=0}};$k[$j++]=Infinity;$k[$j++]=1;for(var _Ku=0,_Kv=~~($1.rscw/$1.rsbl);_Ku<_Kv;_Ku++){$k[$j++]=0}$1.coeffs=$a();for(var _L0=1,_Kz=~~($1.rscw/$1.rsbl);_L0<=_Kz;_L0+=1){$1.i=_L0;$p($1.coeffs,$1.i,$g($1.coeffs,$1.i-1));for(var _L7=$1.i-1;_L7>=1;_L7-=1){$1.j=_L7;$k[$j++]=$1.coeffs;$k[$j++]=$1.j;$k[$j++]=$g($1.coeffs,$1.j-1);$k[$j++]=$g($1.coeffs,$1.j);$k[$j++]=$g($1.rsalog,$1.i);$1.rsprod();var _LJ=$k[--$j];var _LK=$k[--$j];var _LL=$k[--$j];$p($k[--$j],_LL,$xo(_LK,_LJ))}$k[$j++]=$1.coeffs;$k[$j++]=0;$k[$j++]=$g($1.coeffs,0);$k[$j++]=$g($1.rsalog,$1.i);$1.rsprod();var _LT=$k[--$j];var _LU=$k[--$j];$p($k[--$j],_LU,_LT)}$1.coeffs=$G($1.coeffs,0,$1.coeffs.length-1);for(var _Lb=0,_La=$1.cwbs.length-1;_Lb<=_La;_Lb+=1){$1.i=_Lb;$1.cwb=$g($1.cwbs,$1.i);$1.ecb=$g($1.ecbs,$1.i);for(var _Lk=0,_Lj=$1.cwb.length-1;_Lk<=_Lj;_Lk+=1){$1.t=$xo($g($1.cwb,_Lk),$g($1.ecb,0));for(var _Lq=$1.ecb.length-1;_Lq>=0;_Lq-=1){$1.j=_Lq;$1.p=$1.ecb.length-$1.j-1;$k[$j++]=$1.ecb;$k[$j++]=$1.p;$k[$j++]=$1.t;$k[$j++]=$g($1.coeffs,$1.j);$1.rsprod();var _Lz=$k[--$j];var _M0=$k[--$j];$p($k[--$j],_M0,_Lz);if($1.j>0){$p($1.ecb,$1.p,$xo($g($1.ecb,$1.p+1),$g($1.ecb,$1.p)))}}}}if($1.ncws==1558){$k[$j++]=Infinity;var _MD=$G($1.ecbs,8,2);for(var _ME=0,_MF=_MD.length;_ME<_MF;_ME++){$k[$j++]=$g(_MD,_ME)}var _MI=$G($1.ecbs,0,8);for(var _MJ=0,_MK=_MI.length;_MJ<_MK;_MJ++){$k[$j++]=$g(_MI,_MJ)}$1.ecbs=$a()}$k[$j++]=Infinity;var _MN=$1.cws;for(var _MO=0,_MP=_MN.length;_MO<_MP;_MO++){$k[$j++]=$g(_MN,_MO)}for(var _MS=0,_MT=$1.rscw;_MS<_MT;_MS++){$k[$j++]=0}$1.cws=$a();for(var _MX=0,_MW=$f($1.rscw-1);_MX<=_MW;_MX+=1){$1.i=_MX;$p($1.cws,$f($1.ncws+$1.i),$g($g($1.ecbs,$1.i%$1.rsbl),~~($1.i/$1.rsbl)))}$1.module=function(){var _Mi=$k[--$j];var _Mj=$k[--$j];var _Mk=$k[--$j];var _Mn=$Z($s(8),"00000000");var _Mp=$R($s(8),$k[--$j],2);$P(_Mn,8-_Mp.length,_Mp);$k[$j++]=_Mk;$k[$j++]=_Mj;$k[$j++]=_Mi;$k[$j++]=_Mn;for(var _Mq=7;_Mq>=0;_Mq-=1){var _Mr=$k[--$j];$k[$j++]=$f($g(_Mr,_Mq)-48);$k[$j++]=_Mr}$j--;var _Mt=$k[--$j];var _Mu=$k[--$j];var _Mv=$k[--$j];var _Mw=$k[--$j];var _Mx=$k[--$j];var _My=$k[--$j];var _Mz=$k[--$j];var _N0=$k[--$j];var _N1=$k[--$j];var _N2=$k[--$j];var _N3=$k[--$j];$k[$j++]=_N0;$k[$j++]=_Mz;$k[$j++]=_My;$k[$j++]=_Mx;$k[$j++]=_Mw;$k[$j++]=_Mv;$k[$j++]=_Mu;$k[$j++]=_Mt;$k[$j++]=_N3;$k[$j++]=_N2;$F(_N1,function(){if($k[--$j]()===true){return true}var _N5=$k[--$j];var _N6=$k[--$j];$k[$j++]=_N6;$k[$j++]=_N5;if(_N6<0){var _N7=$k[--$j];var _N8=$k[--$j];$k[$j++]=$f(_N8+$1.mrows);$k[$j++]=$f(_N7+$f(4-$f($1.mrows+4)%8))}var _NB=$k[--$j];$k[$j++]=_NB;if(_NB<0){var _ND=$k[--$j];var _NE=$k[--$j];$k[$j++]=$f(_NE+$f(4-$f($1.mcols+4)%8));$k[$j++]=$f(_ND+$1.mcols)}var _NG=$k[--$j];var _NH=$k[--$j];$k[$j++]=_NH;$k[$j++]=_NG;if(_NH>=$1.mrows){var _NJ=$k[--$j];var _NK=$k[--$j];$k[$j++]=$f(_NK-$1.mrows);$k[$j++]=_NJ}var _NM=$k[--$j];var _NN=$k[--$j];var _NQ=$k[--$j];var _NR=$k[--$j];$p($1.mmat,$f(_NM+_NN*$1.mcols),$k[--$j]);$k[$j++]=_NR;$k[$j++]=_NQ})};var _Nj=$a([function(){var _NT=$k[--$j];var _NU=$k[--$j];$k[$j++]=_NU;$k[$j++]=_NT;$k[$j++]=$f(_NU-2);$k[$j++]=$f(_NT-2)},function(){var _NV=$k[--$j];var _NW=$k[--$j];$k[$j++]=_NW;$k[$j++]=_NV;$k[$j++]=$f(_NW-2);$k[$j++]=$f(_NV-1)},function(){var _NX=$k[--$j];var _NY=$k[--$j];$k[$j++]=_NY;$k[$j++]=_NX;$k[$j++]=$f(_NY-1);$k[$j++]=$f(_NX-2)},function(){var _NZ=$k[--$j];var _Na=$k[--$j];$k[$j++]=_Na;$k[$j++]=_NZ;$k[$j++]=$f(_Na-1);$k[$j++]=$f(_NZ-1)},function(){var _Nb=$k[--$j];var _Nc=$k[--$j];$k[$j++]=_Nc;$k[$j++]=_Nb;$k[$j++]=$f(_Nc-1);$k[$j++]=_Nb},function(){var _Nd=$k[--$j];var _Ne=$k[--$j];$k[$j++]=_Ne;$k[$j++]=_Nd;$k[$j++]=_Ne;$k[$j++]=$f(_Nd-2)},function(){var _Nf=$k[--$j];var _Ng=$k[--$j];$k[$j++]=_Ng;$k[$j++]=_Nf;$k[$j++]=_Ng;$k[$j++]=$f(_Nf-1)},function(){var _Nh=$k[--$j];var _Ni=$k[--$j];$k[$j++]=_Ni;$k[$j++]=_Nh;$k[$j++]=_Ni;$k[$j++]=_Nh}]);$1.dmn=_Nj;var _Ns=$a([function(){$k[$j++]=$f($1.mrows-1);$k[$j++]=0},function(){$k[$j++]=$f($1.mrows-1);$k[$j++]=1},function(){$k[$j++]=$f($1.mrows-1);$k[$j++]=2},function(){$k[$j++]=0;$k[$j++]=$f($1.mcols-2)},function(){$k[$j++]=0;$k[$j++]=$f($1.mcols-1)},function(){$k[$j++]=1;$k[$j++]=$f($1.mcols-1)},function(){$k[$j++]=2;$k[$j++]=$f($1.mcols-1)},function(){$k[$j++]=3;$k[$j++]=$f($1.mcols-1)}]);$1.dmc1=_Ns;var _O1=$a([function(){$k[$j++]=$f($1.mrows-3);$k[$j++]=0},function(){$k[$j++]=$f($1.mrows-2);$k[$j++]=0},function(){$k[$j++]=$f($1.mrows-1);$k[$j++]=0},function(){$k[$j++]=0;$k[$j++]=$f($1.mcols-4)},function(){$k[$j++]=0;$k[$j++]=$f($1.mcols-3)},function(){$k[$j++]=0;$k[$j++]=$f($1.mcols-2)},function(){$k[$j++]=0;$k[$j++]=$f($1.mcols-1)},function(){$k[$j++]=1;$k[$j++]=$f($1.mcols-1)}]);$1.dmc2=_O1;var _OA=$a([function(){$k[$j++]=$f($1.mrows-3);$k[$j++]=0},function(){$k[$j++]=$f($1.mrows-2);$k[$j++]=0},function(){$k[$j++]=$f($1.mrows-1);$k[$j++]=0},function(){$k[$j++]=0;$k[$j++]=$f($1.mcols-2)},function(){$k[$j++]=0;$k[$j++]=$f($1.mcols-1)},function(){$k[$j++]=1;$k[$j++]=$f($1.mcols-1)},function(){$k[$j++]=2;$k[$j++]=$f($1.mcols-1)},function(){$k[$j++]=3;$k[$j++]=$f($1.mcols-1)}]);$1.dmc3=_OA;var _OK=$a([function(){$k[$j++]=$f($1.mrows-1);$k[$j++]=0},function(){$k[$j++]=$f($1.mrows-1);$k[$j++]=$f($1.mcols-1)},function(){$k[$j++]=0;$k[$j++]=$f($1.mcols-3)},function(){$k[$j++]=0;$k[$j++]=$f($1.mcols-2)},function(){$k[$j++]=0;$k[$j++]=$f($1.mcols-1)},function(){$k[$j++]=1;$k[$j++]=$f($1.mcols-3)},function(){$k[$j++]=1;$k[$j++]=$f($1.mcols-2)},function(){$k[$j++]=1;$k[$j++]=$f($1.mcols-1)}]);$1.dmc4=_OK;$k[$j++]=Infinity;for(var _ON=0,_OO=$1.mrows*$1.mcols;_ON<_OO;_ON++){$k[$j++]=-1}$1.mmat=$a();for(var _OR=$1.cws.length-1;_OR>=0;_OR-=1){$k[$j++]=$g($1.cws,_OR)}$k[$j++]=4;$k[$j++]=0;for(;;){var _OU=$k[--$j];var _OV=$k[--$j];$k[$j++]=_OV;$k[$j++]=_OU;if(_OU==0&&_OV==$1.mrows){$k[$j++]=$1.dmc1;$1.module()}var _OY=$k[--$j];var _OZ=$k[--$j];$k[$j++]=_OZ;$k[$j++]=_OY;if(_OY==0&&_OZ==$f($1.mrows-2)&&$1.mcols%4!=0){$k[$j++]=$1.dmc2;$1.module()}var _Od=$k[--$j];var _Oe=$k[--$j];$k[$j++]=_Oe;$k[$j++]=_Od;if(_Od==0&&_Oe==$f($1.mrows-2)&&$1.mcols%8==4){$k[$j++]=$1.dmc3;$1.module()}var _Oi=$k[--$j];var _Oj=$k[--$j];$k[$j++]=_Oj;$k[$j++]=_Oi;if(_Oi==2&&_Oj==$f($1.mrows+4)&&$1.mcols%8==0){$k[$j++]=$1.dmc4;$1.module()}for(;;){var _On=$k[--$j];var _Oo=$k[--$j];$k[$j++]=_Oo;$k[$j++]=_On;if(_On>=0&&_Oo<$1.mrows){var _Oq=$k[--$j];var _Or=$k[--$j];$k[$j++]=_Or;$k[$j++]=_Oq;if($g($1.mmat,$f(_Oq+_Or*$1.mcols))==-1){$k[$j++]=$1.dmn;$1.module()}}var _Ow=$k[--$j];var _Ox=$k[--$j];$k[$j++]=$f(_Ox-2);$k[$j++]=$f(_Ow+2);if(!($f(_Ow+2)<$1.mcols&&$f(_Ox-2)>=0)){break}}var _Oz=$k[--$j];var _P0=$k[--$j];$k[$j++]=$f(_P0+1);$k[$j++]=$f(_Oz+3);for(;;){var _P1=$k[--$j];var _P2=$k[--$j];$k[$j++]=_P2;$k[$j++]=_P1;if(_P1<$1.mcols&&_P2>=0){var _P4=$k[--$j];var _P5=$k[--$j];$k[$j++]=_P5;$k[$j++]=_P4;if($g($1.mmat,$f(_P4+_P5*$1.mcols))==-1){$k[$j++]=$1.dmn;$1.module()}}var _PA=$k[--$j];var _PB=$k[--$j];$k[$j++]=$f(_PB+2);$k[$j++]=$f(_PA-2);if(!($f(_PA-2)>=0&&$f(_PB+2)<$1.mrows)){break}}var _PD=$k[--$j];var _PE=$k[--$j];$k[$j++]=$f(_PE+3);$k[$j++]=$f(_PD+1);if(!($f(_PD+1)<$1.mcols||$f(_PE+3)<$1.mrows)){$j-=2;break}}if($g($1.mmat,$f($1.mrows*$1.mcols-1))==-1){$P($1.mmat,$f($1.mrows*$f($1.mcols-1)-2),$a([1,0]));$P($1.mmat,$f($1.mrows*$1.mcols-2),$a([0,1]))}$1.pixs=$a($1.rows*$1.cols);$1.cwpos=0;for(var _PY=0,_PX=$f($1.rows-1);_PY<=_PX;_PY+=1){$1.i=_PY;if($1.i%($1.rrows+2)==0){$k[$j++]=$1.pixs;$k[$j++]=$1.i*$1.cols;$k[$j++]=Infinity;for(var _Pf=0,_Pg=~~($1.cols/2);_Pf<_Pg;_Pf++){$k[$j++]=1;$k[$j++]=0}var _Ph=$a();var _Pi=$k[--$j];$P($k[--$j],_Pi,_Ph)}if($1.i%($1.rrows+2)==$1.rrows+1){$k[$j++]=$1.pixs;$k[$j++]=$1.i*$1.cols;$k[$j++]=Infinity;for(var _Pr=0,_Ps=$1.cols;_Pr<_Ps;_Pr++){$k[$j++]=1}var _Pt=$a();var _Pu=$k[--$j];$P($k[--$j],_Pu,_Pt)}if($1.i%($1.rrows+2)!=0&&$1.i%($1.rrows+2)!=$1.rrows+1){for(var _Q3=0,_Q2=$f($1.cols-1);_Q3<=_Q2;_Q3+=1){$1.j=_Q3;if($1.j%($1.rcols+2)==0){$p($1.pixs,$f($1.i*$1.cols+$1.j),1)}if($1.j%($1.rcols+2)==$1.rcols+1){$p($1.pixs,$f($1.i*$1.cols+$1.j),$1.i%2)}if($1.j%($1.rcols+2)!=0&&$1.j%($1.rcols+2)!=$1.rcols+1){$p($1.pixs,$f($1.i*$1.cols+$1.j),$g($1.mmat,$1.cwpos));$1.cwpos=$1.cwpos+1}}}}var _Qb=new Map([["ren",$0.renmatrix],["pixs",$1.pixs],["pixx",$1.cols],["pixy",$1.rows],["height",$1.rows*2/72],["width",$1.cols*2/72],["opt",$1.options]]);$k[$j++]=_Qb;if(!$1.dontdraw){$0.renmatrix()}};$0.datamatrixrectangular=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$p($1.options,"dontdraw",true);$p($1.options,"format","rectangle");$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.datamatrix();var _9=$k[--$j];$1[$k[--$j]]=_9;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.datamatrixrectangularextension=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.dmre=false;$1.dindmre=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$p($1.options,"dontdraw",true);$p($1.options,"format","rectangle");if(!($1.dindmre||$1.dmre)){$p($1.options,"dmre",true)}else{$p($1.options,"dmre",$1.dmre);$p($1.options,"dindmre",$1.dindmre)}$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.datamatrix();var _G=$k[--$j];$1[$k[--$j]]=_G;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.mailmark=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.type="unset";$1.parse=false;$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});var _6=new Map([["parse",$1.parse],["parseonly",true],["parsefnc",false]]);$1.fncvals=_6;$k[$j++]="barcode";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _9=$k[--$j];$1[$k[--$j]]=_9;$1.barlen=$1.barcode.length;delete $1.options["parse"];var _D=new Map([["7","24x24"],["9","32x32"],["29","16x48"]]);$1.version=$g(_D,$1["type"]);var _G=new Map([["7","square"],["9","square"],["29","rectangle"]]);$1.format=$g(_G,$1["type"]);if($1.barcode.length<45){$k[$j++]="bwipp.mailmarkBadLength";$k[$j++]="Royal Mail Mailmark must contain at least 45 characters of Mailmark formatted data, including any required space padding";$0.raiseerror()}if($ne($G($1.barcode,0,4),"JGB ")){$k[$j++]="bwipp.mailmarkBadIndicator";$k[$j++]="Royal Mail Mailmark must begin with JGB identifier";$0.raiseerror()}$p($1.options,"dontdraw",true);$p($1.options,"version",$1.version);$p($1.options,"format",$1.format);$p($1.options,"mailmark",true);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.datamatrix();var _U=$k[--$j];$1[$k[--$j]]=_U;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.qrcode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.format="unset";$1.version="unset";$1.eclevel="unset";$1.parse=false;$1.parsefnc=false;$1.mask=-1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.mask=~~$1.mask;if($ne($1.version,"unset")){if($eq($1.format,"unset")){$k[$j++]="full";if($eq($G($1.version,0,1),"M")){$j--;$k[$j++]="micro"}if($eq($G($1.version,0,1),"R")){$j--;$k[$j++]="rmqr"}$1.format=$k[--$j]}}else{if($eq($1.format,"unset")){$1.format="full"}}if($eq($1.eclevel,"unset")){$k[$j++]="eclevel";if($ne($1.format,"micro")){$k[$j++]="M"}else{$k[$j++]="L"}var _G=$k[--$j];$1[$k[--$j]]=_G}$1.fn1=-1;var _L=new Map([["parse",$1.parse],["parsefnc",$1.parsefnc],["eci",true],["FNC1",$1.fn1]]);$1.fncvals=_L;$k[$j++]="msg";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _O=$k[--$j];$1[$k[--$j]]=_O;$1.msglen=$1.msg.length;$1.fnc1first=false;if($1.msglen>0){if($g($1.msg,0)==$1.fn1){$1.fnc1first=true;$k[$j++]=Infinity;var _X=$G($1.msg,1,$1.msglen-1);for(var _Y=0,_Z=_X.length;_Y<_Z;_Y++){var _a=$g(_X,_Y);$k[$j++]=_a;if(_a==37){var _b=$k[--$j];$k[$j++]=_b;$k[$j++]=_b}}$1.msg=$a();$1.msglen=$1.msg.length}}var _e=$a(["v1to9","v10to26","v27to40","vM1","vM2","vM3","vM4","vR7x43","vR7x59","vR7x77","vR7x99","vR7x139","vR9x43","vR9x59","vR9x77","vR9x99","vR9x139","vR11x27","vR11x43","vR11x59","vR11x77","vR11x99","vR11x139","vR13x27","vR13x43","vR13x59","vR13x77","vR13x99","vR13x139","vR15x43","vR15x59","vR15x77","vR15x99","vR15x139","vR17x43","vR17x59","vR17x77","vR17x99","vR17x139"]);$k[$j++]=0;for(var _f=0,_g=_e.length;_f<_g;_f++){var _i=$k[--$j];$1[$g(_e,_f)]=_i;$k[$j++]=$f(_i+1)}$j--;$1.N=0;$1.A=1;$1.B=2;$1.K=3;$1.E=4;$k[$j++]=Infinity;$k[$j++]=Infinity;for(var _j=48;_j<=57;_j+=1){$k[$j++]=_j}var _k=$a();for(var _l=0,_m=_k.length;_l<_m;_l++){$k[$j++]=$g(_k,_l);$k[$j++]=-1}$1.Nexcl=$d();$k[$j++]=Infinity;$k[$j++]=Infinity;$k[$j++]=32;$k[$j++]=36;$k[$j++]=37;$k[$j++]=42;$k[$j++]=43;$k[$j++]=45;$k[$j++]=46;$k[$j++]=47;$k[$j++]=58;for(var _p=65;_p<=90;_p+=1){$k[$j++]=_p}$k[$j++]=$1.fn1;var _r=$a();for(var _s=0,_t=_r.length;_s<_t;_s++){$k[$j++]=$g(_r,_s);$k[$j++]=-1}$1.Aexcl=$d();$k[$j++]=Infinity;$k[$j++]=Infinity;for(var _w=0;_w<=31;_w+=1){$k[$j++]=_w}$k[$j++]=33;$k[$j++]=34;$k[$j++]=35;$k[$j++]=38;$k[$j++]=39;$k[$j++]=40;$k[$j++]=41;$k[$j++]=44;for(var _x=59;_x<=64;_x+=1){$k[$j++]=_x}for(var _y=91;_y<=127;_y+=1){$k[$j++]=_y}for(var _z=160;_z<=223;_z+=1){$k[$j++]=_z}var _10=$a();for(var _11=0,_12=_10.length;_11<_12;_11++){$k[$j++]=$g(_10,_11);$k[$j++]=-1}$1.Bexcl=$d();$k[$j++]=Infinity;$k[$j++]=Infinity;for(var _15=129;_15<=159;_15+=1){$k[$j++]=_15}for(var _16=224;_16<=235;_16+=1){$k[$j++]=_16}var _17=$a();for(var _18=0,_19=_17.length;_18<_19;_18++){$k[$j++]=$g(_17,_18);$k[$j++]=-1}$1.Kexcl=$d();$k[$j++]=Infinity;$k[$j++]=$a(["0001","0010","0100","1000","0111"]);$k[$j++]=$a(["0001","0010","0100","1000","0111"]);$k[$j++]=$a(["0001","0010","0100","1000","0111"]);$k[$j++]=$a(["",-1,-1,-1,-1]);$k[$j++]=$a(["0","1",-1,-1,-1]);$k[$j++]=$a(["00","01","10","11",-1]);$k[$j++]=$a(["000","001","010","011",-1]);for(var _1J=0,_1K=32;_1J<_1K;_1J++){$k[$j++]=$a(["001","010","011","100",-1])}$1.mids=$a();$1.cclens=$a([$a([10,9,8,8]),$a([12,11,16,10]),$a([14,13,16,12]),$a([3,-1,-1,-1]),$a([4,3,-1,-1]),$a([5,4,4,3]),$a([6,5,5,4]),$a([4,3,3,2]),$a([5,5,4,3]),$a([6,5,5,4]),$a([7,6,5,5]),$a([7,6,6,5]),$a([5,5,4,3]),$a([6,5,5,4]),$a([7,6,5,5]),$a([7,6,6,5]),$a([8,7,6,6]),$a([4,4,3,2]),$a([6,5,5,4]),$a([7,6,5,5]),$a([7,6,6,5]),$a([8,7,6,6]),$a([8,7,7,6]),$a([5,5,4,3]),$a([6,6,5,5]),$a([7,6,6,5]),$a([8,7,6,6]),$a([8,7,7,6]),$a([8,8,7,7]),$a([7,6,6,5]),$a([7,7,6,5]),$a([8,7,7,6]),$a([8,7,7,6]),$a([9,8,7,7]),$a([7,6,6,5]),$a([8,7,6,6]),$a([8,7,7,6]),$a([8,8,7,6]),$a([9,8,8,7])]);$k[$j++]=Infinity;for(var _21=0,_22=3;_21<_22;_21++){$k[$j++]=4}$k[$j++]=3;$k[$j++]=5;$k[$j++]=7;$k[$j++]=9;for(var _23=0,_24=32;_23<_24;_23++){$k[$j++]=3}$1.termlens=$a();$1.tobin=function(){var _27=$s($k[--$j]);$k[$j++]=_27;for(var _29=0,_28=_27.length-1;_29<=_28;_29+=1){var _2A=$k[--$j];$p(_2A,_29,48);$k[$j++]=_2A}var _2B=$k[--$j];var _2E=$R($s(_2B.length),$k[--$j],2);$P(_2B,_2B.length-_2E.length,_2E);$k[$j++]=_2B};$1.charmap="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";$1.charvals=new Map;for(var _2F=0;_2F<=44;_2F+=1){$p($1.charvals,$g($1.charmap,_2F),_2F)}$1.encA=function(){$1.in=$k[--$j];if($1.fnc1first){$k[$j++]=Infinity;$F($1.in,function(){var _2M=$k[--$j];$k[$j++]=_2M;if(_2M==$1.fn1){$j--;$k[$j++]=37}});$1.in=$a()}$1.out=$s(~~($1.in.length*11/2)+1);$1.k=0;$1.m=0;for(;;){if($1.k==$1.in.length){break}if($1.k<$1.in.length-1){$k[$j++]=$f($g($1.charvals,$g($1.in,$1.k))*45+$g($1.charvals,$g($1.in,$1.k+1)));$k[$j++]=11;$1.tobin();$1.k=$1.k+2}else{$k[$j++]=$g($1.charvals,$g($1.in,$1.k));$k[$j++]=6;$1.tobin();$1.k=$1.k+1}var _2m=$k[--$j];$P($1.out,$1.m,_2m);$1.m=_2m.length+$1.m}$k[$j++]=$G($1.out,0,$1.m)};$1.encN=function(){$1.in=$k[--$j];$1.out=$s(~~($1.in.length*10/3)+1);$1.k=0;$1.m=0;for(;;){if($1.k==$1.in.length){break}if($1.k<$1.in.length-2){var _32=$G($1.in,$1.k,3);$k[$j++]=0;for(var _33=0,_34=_32.length;_33<_34;_33++){var _36=$k[--$j];$k[$j++]=$f($g(_32,_33)+$f(_36*10-48))}$k[$j++]=10;$1.tobin();$1.k=$1.k+3}else{if($1.k==$1.in.length-2){var _3C=$G($1.in,$1.k,2);$k[$j++]=0;for(var _3D=0,_3E=_3C.length;_3D<_3E;_3D++){var _3G=$k[--$j];$k[$j++]=$f($g(_3C,_3D)+$f(_3G*10-48))}$k[$j++]=7;$1.tobin();$1.k=$1.k+2}else{var _3K=$G($1.in,$1.k,1);$k[$j++]=0;for(var _3L=0,_3M=_3K.length;_3L<_3M;_3L++){var _3O=$k[--$j];$k[$j++]=$f($g(_3K,_3L)+$f(_3O*10-48))}$k[$j++]=4;$1.tobin();$1.k=$1.k+1}}var _3Q=$k[--$j];$P($1.out,$1.m,_3Q);$1.m=_3Q.length+$1.m}$k[$j++]=$G($1.out,0,$1.m)};$1.encB=function(){$1.in=$k[--$j];if($1.fnc1first){$k[$j++]=Infinity;$F($1.in,function(){var _3a=$k[--$j];$k[$j++]=_3a;if(_3a==$1.fn1){$j--;$k[$j++]=29}});$1.in=$a()}$1.out=$s($1.in.length*8);for(var _3h=0,_3g=$1.in.length-1;_3h<=_3g;_3h+=1){$1.k=_3h;$k[$j++]=~~$z($g($1.in,$1.k));$k[$j++]=8;$1.tobin();$P($1.out,$1.k*8,$k[--$j])}$k[$j++]=$1.out};$1.encK=function(){$1.in=$k[--$j];$1.out=$s(~~($1.in.length/2)*13);$1.k=0;$1.m=0;for(;;){if($1.k==$1.in.length){break}var _40=$f($g($1.in,$1.k)*256+$g($1.in,$1.k+1));$k[$j++]=_40;if(_40<57408){$k[$j++]=33088}else{$k[$j++]=49472}var _41=$k[--$j];var _43=$f($k[--$j]-_41);$k[$j++]=$f((_43>>>8)*192+(_43&255));$k[$j++]=13;$1.tobin();var _44=$k[--$j];$P($1.out,$1.m,_44);$1.m=_44.length+$1.m;$1.k=$1.k+2}$k[$j++]=$1.out};$1.encE=function(){var _4C=$f(-$g($k[--$j],0)-1e6);$k[$j++]=_4C;if(_4C<=127){$k[$j++]=8;$1.tobin()}else{var _4D=$k[--$j];$k[$j++]=_4D;if(_4D<=16383){var _4E=$k[--$j];$k[$j++]=$f(_4E+32768);$k[$j++]=16;$1.tobin()}else{var _4F=$k[--$j];$k[$j++]=$f(_4F+12582912);$k[$j++]=24;$1.tobin()}}};$1.encfuncs=$a(["encN","encA","encB","encK","encE"]);$1.addtobits=function(){var _4H=$k[--$j];$P($1.bits,$1.j,_4H);$1.j=_4H.length+$1.j};$k[$j++]=Infinity;for(var _4M=0,_4N=$1.msglen;_4M<_4N;_4M++){$k[$j++]=0}$k[$j++]=0;$1.numNs=$a();$k[$j++]=Infinity;for(var _4Q=0,_4R=$1.msglen;_4Q<_4R;_4Q++){$k[$j++]=0}$k[$j++]=0;$1.numAs=$a();$k[$j++]=Infinity;for(var _4U=0,_4V=$1.msglen;_4U<_4V;_4U++){$k[$j++]=0}$k[$j++]=0;$1.numBs=$a();$k[$j++]=Infinity;for(var _4Y=0,_4Z=$1.msglen;_4Y<_4Z;_4Y++){$k[$j++]=0}$k[$j++]=-1;$1.numKs=$a();$k[$j++]=Infinity;for(var _4c=0,_4d=$1.msglen;_4c<_4d;_4c++){$k[$j++]=0}$k[$j++]=9999;$1.nextNs=$a();$k[$j++]=Infinity;for(var _4g=0,_4h=$1.msglen;_4g<_4h;_4g++){$k[$j++]=0}$k[$j++]=9999;$1.nextBs=$a();$k[$j++]=Infinity;for(var _4k=0,_4l=$1.msglen;_4k<_4l;_4k++){$k[$j++]=0}$k[$j++]=9999;$1.nextAs=$a();$k[$j++]=Infinity;for(var _4o=0,_4p=$1.msglen;_4o<_4p;_4o++){$k[$j++]=0}$k[$j++]=9999;$1.nextKs=$a();$1.isECI=$a($1.msglen);for(var _4u=$1.msglen-1;_4u>=0;_4u-=1){$1.i=_4u;$1.barchar=$g($1.msg,$1.i);var _50=$g($1.Kexcl,$1.barchar)!==undefined;if(_50){$p($1.nextKs,$1.i,0);$p($1.numKs,$1.i,$f($g($1.numKs,$1.i+1)+1))}else{$p($1.nextKs,$1.i,$f($g($1.nextKs,$1.i+1)+1))}var _5F=$g($1.Nexcl,$1.barchar)!==undefined;if(_5F){$p($1.nextNs,$1.i,0);$p($1.numNs,$1.i,$f($g($1.numNs,$1.i+1)+1))}else{$p($1.nextNs,$1.i,$f($g($1.nextNs,$1.i+1)+1))}var _5U=$g($1.Bexcl,$1.barchar)!==undefined;if(_5U){$p($1.nextBs,$1.i,0);$p($1.numBs,$1.i,$f($g($1.numBs,$1.i+1)+1))}else{$p($1.nextBs,$1.i,$f($g($1.nextBs,$1.i+1)+1))}var _5j=$g($1.Aexcl,$1.barchar)!==undefined;if(_5j){$p($1.nextAs,$1.i,0);$p($1.numAs,$1.i,$f($g($1.numAs,$1.i+1)+1))}else{$p($1.nextAs,$1.i,$f($g($1.nextAs,$1.i+1)+1))}$p($1.isECI,$1.i,$1.barchar<=-1e6)}$k[$j++]=Infinity;var _5z=$1.numKs;for(var _60=0,_61=_5z.length;_60<_61;_60++){$k[$j++]=~~($f($g(_5z,_60)+1)/2)}$1.numKs=$a();$1.KbeforeB=function(){var _67=$g($k[--$j],$1.ver);$k[$j++]=$ge($1.numK,_67)&&$g($1.nextBs,$f($1.numK*2+$1.i))==0};$1.KbeforeA=function(){var _6F=$g($k[--$j],$1.ver);$k[$j++]=$ge($1.numK,_6F)&&$g($1.nextAs,$f($1.numK*2+$1.i))==0};$1.KbeforeN=function(){var _6N=$g($k[--$j],$1.ver);$k[$j++]=$ge($1.numK,_6N)&&$g($1.nextNs,$f($1.numK*2+$1.i))==0};$1.KbeforeE=function(){var _6V=$g($k[--$j],$1.ver);$k[$j++]=$ge($1.numK,_6V)&&$f($1.numK*2+$1.i)==$1.msglen};$1.AbeforeK=function(){var _6c=$g($k[--$j],$1.ver);$k[$j++]=$ge($1.numA,_6c)&&$g($1.nextKs,$f($1.numA+$1.i))==0};$1.AbeforeB=function(){var _6k=$g($k[--$j],$1.ver);$k[$j++]=$ge($1.numA,_6k)&&$g($1.nextBs,$f($1.numA+$1.i))==0};$1.AbeforeN=function(){var _6s=$g($k[--$j],$1.ver);$k[$j++]=$ge($1.numA,_6s)&&$g($1.nextNs,$f($1.numA+$1.i))==0};$1.AbeforeE=function(){var _70=$g($k[--$j],$1.ver);$k[$j++]=$ge($1.numA,_70)&&$f($1.numA+$1.i)==$1.msglen};$1.NbeforeK=function(){var _77=$g($k[--$j],$1.ver);$k[$j++]=$ge($1.numN,_77)&&$g($1.nextKs,$f($1.numN+$1.i))==0};$1.NbeforeB=function(){var _7F=$g($k[--$j],$1.ver);$k[$j++]=$ge($1.numN,_7F)&&$g($1.nextBs,$f($1.numN+$1.i))==0};$1.NbeforeA=function(){var _7N=$g($k[--$j],$1.ver);$k[$j++]=$ge($1.numN,_7N)&&$g($1.nextAs,$f($1.numN+$1.i))==0};$1.NbeforeE=function(){var _7V=$g($k[--$j],$1.ver);$k[$j++]=$ge($1.numN,_7V)&&$f($1.numN+$1.i)==$1.msglen};if($ne($1.version,"unset")){$k[$j++]=Infinity;for(var _7a=0;_7a<=9;_7a+=1){$k[$j++]=$R($s(2),_7a,10);$k[$j++]=$1.v1to9}for(var _7e=10;_7e<=26;_7e+=1){$k[$j++]=$R($s(2),_7e,10);$k[$j++]=$1.v10to26}for(var _7i=27;_7i<=40;_7i+=1){$k[$j++]=$R($s(2),_7i,10);$k[$j++]=$1.v27to40}$k[$j++]="M1";$k[$j++]=$1.vM1;$k[$j++]="M2";$k[$j++]=$1.vM2;$k[$j++]="M3";$k[$j++]=$1.vM3;$k[$j++]="M4";$k[$j++]=$1.vM4;$k[$j++]="R7x43";$k[$j++]=$1.vR7x43;$k[$j++]="R7x59";$k[$j++]=$1.vR7x59;$k[$j++]="R7x77";$k[$j++]=$1.vR7x77;$k[$j++]="R7x99";$k[$j++]=$1.vR7x99;$k[$j++]="R7x139";$k[$j++]=$1.vR7x139;$k[$j++]="R9x43";$k[$j++]=$1.vR9x43;$k[$j++]="R9x59";$k[$j++]=$1.vR9x59;$k[$j++]="R9x77";$k[$j++]=$1.vR9x77;$k[$j++]="R9x99";$k[$j++]=$1.vR9x99;$k[$j++]="R9x139";$k[$j++]=$1.vR9x139;$k[$j++]="R11x27";$k[$j++]=$1.vR11x27;$k[$j++]="R11x43";$k[$j++]=$1.vR11x43;$k[$j++]="R11x59";$k[$j++]=$1.vR11x59;$k[$j++]="R11x77";$k[$j++]=$1.vR11x77;$k[$j++]="R11x99";$k[$j++]=$1.vR11x99;$k[$j++]="R11x139";$k[$j++]=$1.vR11x139;$k[$j++]="R13x27";$k[$j++]=$1.vR13x27;$k[$j++]="R13x43";$k[$j++]=$1.vR13x43;$k[$j++]="R13x59";$k[$j++]=$1.vR13x59;$k[$j++]="R13x77";$k[$j++]=$1.vR13x77;$k[$j++]="R13x99";$k[$j++]=$1.vR13x99;$k[$j++]="R13x139";$k[$j++]=$1.vR13x139;$k[$j++]="R15x43";$k[$j++]=$1.vR15x43;$k[$j++]="R15x59";$k[$j++]=$1.vR15x59;$k[$j++]="R15x77";$k[$j++]=$1.vR15x77;$k[$j++]="R15x99";$k[$j++]=$1.vR15x99;$k[$j++]="R15x139";$k[$j++]=$1.vR15x139;$k[$j++]="R17x43";$k[$j++]=$1.vR17x43;$k[$j++]="R17x59";$k[$j++]=$1.vR17x59;$k[$j++]="R17x77";$k[$j++]=$1.vR17x77;$k[$j++]="R17x99";$k[$j++]=$1.vR17x99;$k[$j++]="R17x139";$k[$j++]=$1.vR17x139;var _8O=$g($d(),$1.version);$k[$j++]="verset";$k[$j++]=_8O;$k[$j++]=Infinity;var _8P=$k[--$j];var _8Q=$k[--$j];$k[$j++]=_8P;$k[$j++]=_8Q;var _8R=$a();$1[$k[--$j]]=_8R}else{if($eq($1.format,"full")){$1.verset=$a([$1.v1to9,$1.v10to26,$1.v27to40])}if($eq($1.format,"micro")){$1.verset=$a([$1.vM1,$1.vM2,$1.vM3,$1.vM4])}}$k[$j++]=Infinity;for(var _8e=0,_8f=39;_8e<_8f;_8e++){$k[$j++]=-1}$1.msgbits=$a();$1.e=1e4;var _8h=$1.verset;for(var _8i=0,_8j=_8h.length;_8i<_8j;_8i++){$1.ver=$g(_8h,_8i);$1.mode=-1;$1.seq=$a([]);$1.i=0;for(;;){if($1.i>=$1.msglen){break}$1.numK=$g($1.numKs,$1.i);$1.numB=$g($1.numBs,$1.i);$1.numA=$g($1.numAs,$1.i);$1.numN=$g($1.numNs,$1.i);$1.eci=$g($1.isECI,$1.i);if($eq($1.ver,$1.vM1)&&$1.numA>=1){$1.seq=-1;break}if($eq($1.ver,$1.vM1)&&$1.numB>=1){$1.seq=-1;break}if($eq($1.ver,$1.vM1)&&$1.numK>=1){$1.seq=-1;break}if($eq($1.ver,$1.vM1)&&$1.eci){$1.seq=-1;break}if($eq($1.ver,$1.vM2)&&$1.numB>=1){$1.seq=-1;break}if($eq($1.ver,$1.vM2)&&$1.numK>=1){$1.seq=-1;break}if($eq($1.ver,$1.vM2)&&$1.eci){$1.seq=-1;break}if($eq($1.ver,$1.vM3)&&$1.eci){$1.seq=-1;break}if($eq($1.ver,$1.vM4)&&$1.eci){$1.seq=-1;break}if($ge($1.ver,$1.vR7x43)&&$1.eci){$1.seq=-1;break}for(;;){if($1.eci){$k[$j++]=$1.E;break}if($ge($1.ver,$1.vR7x43)){$k[$j++]=$1.B;break}if($1.mode==-1){$k[$j++]=$a([1,1,1,$1.e,$1.e,1,1]);$1.KbeforeA();if($k[--$j]){$k[$j++]=$1.K;break}$k[$j++]=$a([1,1,1,$1.e,$1.e,1,1]);$1.KbeforeN();if($k[--$j]){$k[$j++]=$1.K;break}$k[$j++]=$a([5,5,6,$1.e,$1.e,2,3]);$1.KbeforeB();if($k[--$j]){$k[$j++]=$1.K;break}$k[$j++]=$a([1,1,1,$1.e,$1.e,1,1]);$1.KbeforeE();if($k[--$j]){$k[$j++]=$1.K;break}if($1.numK>=1){$k[$j++]=$1.B;break}$k[$j++]=$a([6,7,8,$1.e,$1.e,3,4]);$1.AbeforeB();if($k[--$j]){$k[$j++]=$1.A;break}$k[$j++]=$a([1,1,1,$1.e,1,1,1]);$1.AbeforeN();if($k[--$j]){$k[$j++]=$1.A;break}$k[$j++]=$a([1,1,1,$1.e,1,1,1]);$1.AbeforeE();if($k[--$j]){$k[$j++]=$1.A;break}if($1.numA>=1){var _AF=$ne($1.ver,$1.vM2)?$1.B:$1.A;$k[$j++]=_AF;break}$k[$j++]=$a([4,4,5,$1.e,$1.e,2,3]);$1.NbeforeB();if($k[--$j]){$k[$j++]=$1.N;break}$k[$j++]=$a([1,1,1,$1.e,$1.e,1,1]);$1.NbeforeB();if($k[--$j]){$k[$j++]=$1.B;break}$k[$j++]=$a([7,8,9,$1.e,3,4,5]);$1.NbeforeA();if($k[--$j]){$k[$j++]=$1.N;break}$k[$j++]=$a([1,1,1,$1.e,1,1,1]);$1.NbeforeA();if($k[--$j]){$k[$j++]=$1.A;break}if($1.numN>=1){$k[$j++]=$1.N;break}$k[$j++]=$1.B;break}if($1.mode==$1.B){$k[$j++]=$a([9,12,13,$1.e,$1.e,4,5]);$1.KbeforeB();if($k[--$j]){$k[$j++]=$1.K;break}$k[$j++]=$a([9,10,12,$1.e,$1.e,4,5]);$1.KbeforeA();if($k[--$j]){$k[$j++]=$1.K;break}$k[$j++]=$a([9,10,11,$1.e,$1.e,5,6]);$1.KbeforeN();if($k[--$j]){$k[$j++]=$1.K;break}$k[$j++]=$a([4,5,6,$1.e,$1.e,2,3]);$1.KbeforeE();if($k[--$j]){$k[$j++]=$1.K;break}$k[$j++]=$a([11,12,14,$1.e,$1.e,5,7]);$1.AbeforeK();if($k[--$j]){$k[$j++]=$1.A;break}$k[$j++]=$a([11,15,16,$1.e,$1.e,6,7]);$1.AbeforeB();if($k[--$j]){$k[$j++]=$1.A;break}$k[$j++]=$a([12,13,15,$1.e,$1.e,6,8]);$1.AbeforeN();if($k[--$j]){$k[$j++]=$1.A;break}$k[$j++]=$a([6,7,8,$1.e,$1.e,3,4]);$1.AbeforeE();if($k[--$j]){$k[$j++]=$1.A;break}$k[$j++]=$a([6,7,8,$1.e,$1.e,3,4]);$1.NbeforeK();if($k[--$j]){$k[$j++]=$1.N;break}$k[$j++]=$a([6,8,9,$1.e,$1.e,3,4]);$1.NbeforeB();if($k[--$j]){$k[$j++]=$1.N;break}$k[$j++]=$a([6,7,8,$1.e,$1.e,3,4]);$1.NbeforeA();if($k[--$j]){$k[$j++]=$1.N;break}$k[$j++]=$a([3,4,5,$1.e,$1.e,2,3]);$1.NbeforeE();if($k[--$j]){$k[$j++]=$1.N;break}$k[$j++]=$1.B;break}if($1.mode==$1.A){if($1.numK>=1){$k[$j++]=$1.K;break}if($1.numB>=1){$k[$j++]=$1.B;break}$k[$j++]=$a([13,15,17,$1.e,5,7,9]);$1.NbeforeA();if($k[--$j]){$k[$j++]=$1.N;break}$k[$j++]=$a([13,17,18,$1.e,$1.e,7,9]);$1.NbeforeB();if($k[--$j]){$k[$j++]=$1.N;break}$k[$j++]=$a([7,8,9,$1.e,3,4,5]);$1.NbeforeE();if($k[--$j]){$k[$j++]=$1.N;break}if($1.numA>=1||$1.numN>=1){$k[$j++]=$1.A;break}$k[$j++]=$1.B;break}if($1.mode==$1.N){if($1.numK>=1){$k[$j++]=$1.K;break}if($1.numB>=1){$k[$j++]=$1.B;break}if($1.numA>=1){$k[$j++]=$1.A;break}if($1.numN>=1){$k[$j++]=$1.N;break}$k[$j++]=$1.B;break}if($1.mode==$1.K){if($1.numB>=1){$k[$j++]=$1.B;break}if($1.numA>=1){$k[$j++]=$1.A;break}if($1.numN>=1){$k[$j++]=$1.N;break}if($1.numK>=1){$k[$j++]=$1.K;break}$k[$j++]=$1.B;break}}var _CL=$k[--$j];$k[$j++]=_CL;if(_CL==$1.K&&$1.fnc1first){$j--;$k[$j++]=$1.B}var _CP=$k[--$j];$k[$j++]=_CP;if(_CP==$1.mode){$j--;var _CV=$1.mode==$1.K?2:1;$1.dat=$G($1.msg,$1.i,_CV);$k[$j++]=Infinity;$q($1.seq);$k[$j++]=Infinity;var _CY=$k[--$j];var _CZ=$k[--$j];$k[$j++]=_CY;$q(_CZ);$q($1.dat);var _Cb=$a();$k[$j++]=_Cb;$1.seq=$a()}else{$1.mode=$k[--$j];if($1.mode==$1.K){$k[$j++]=$1.K;$k[$j++]=$G($1.msg,$1.i,$1.numK*2)}if($1.mode==$1.B){$k[$j++]=$1.B;$k[$j++]=$G($1.msg,$1.i,$1.numB)}if($1.mode==$1.A){$k[$j++]=$1.A;$k[$j++]=$G($1.msg,$1.i,$1.numA)}if($1.mode==$1.N){$k[$j++]=$1.N;$k[$j++]=$G($1.msg,$1.i,$1.numN)}if($1.mode==$1.E){$1.mode=-1;$k[$j++]=$1.E;$k[$j++]=$G($1.msg,$1.i,1)}$1.dat=$k[--$j];$1.sw=$k[--$j];$k[$j++]=Infinity;$q($1.seq);$k[$j++]=$1.sw;$k[$j++]=$1.dat;$1.seq=$a()}$1.i=$1.i+$1.dat.length}for(;;){if($1.seq==-1){break}$1.bits=$s(23648);$1.j=0;if($1.fnc1first){if($lt($1.ver,$1.vR7x43)){$k[$j++]="0101"}else{$k[$j++]="101"}$1.addtobits()}$1.abort=false;for(var _DR=0,_DQ=$1.seq.length-1;_DR<=_DQ;_DR+=2){$1.i=_DR;$1.mode=$g($1.seq,$1.i);$k[$j++]=$g($g($1.mids,$1.ver),$1.mode);$1.addtobits();$1.chars=$g($1.seq,$1.i+1);if($1.mode!=$1.E){$1.cclen=$g($g($1.cclens,$1.ver),$1.mode);if($1.chars.length>=~~Math.pow(2,$1.cclen)){$1.abort=true;break}$k[$j++]=$1.chars.length;if($1.mode==$1.K){var _Dp=$k[--$j];$k[$j++]=~~(_Dp/2)}$k[$j++]=$1.cclen;$1.tobin();$1.addtobits()}$k[$j++]=$1.chars;if($1[$g($1.encfuncs,$1.mode)]()===true){break}$1.addtobits()}if($1.abort){break}$1.bits=$G($1.bits,0,$1.j);$p($1.msgbits,$1.ver,$1.bits);break}}$1.metrics=$a([$a(["micro","M1",$1.vM1,11,11,98,99,36,$a([2,99,99,99]),$a([1,0,-1,-1,-1,-1,-1,-1])]),$a(["micro","M2",$1.vM2,13,13,98,99,80,$a([5,6,99,99]),$a([1,0,1,0,-1,-1,-1,-1])]),$a(["micro","M3",$1.vM3,15,15,98,99,132,$a([6,8,99,99]),$a([1,0,1,0,-1,-1,-1,-1])]),$a(["micro","M4",$1.vM4,17,17,98,99,192,$a([8,10,14,99]),$a([1,0,1,0,1,0,-1,-1])]),$a(["full","1",$1.v1to9,21,21,98,99,208,$a([7,10,13,17]),$a([1,0,1,0,1,0,1,0])]),$a(["full","2",$1.v1to9,25,25,18,99,359,$a([10,16,22,28]),$a([1,0,1,0,1,0,1,0])]),$a(["full","3",$1.v1to9,29,29,22,99,567,$a([15,26,36,44]),$a([1,0,1,0,2,0,2,0])]),$a(["full","4",$1.v1to9,33,33,26,99,807,$a([20,36,52,64]),$a([1,0,2,0,2,0,4,0])]),$a(["full","5",$1.v1to9,37,37,30,99,1079,$a([26,48,72,88]),$a([1,0,2,0,2,2,2,2])]),$a(["full","6",$1.v1to9,41,41,34,99,1383,$a([36,64,96,112]),$a([2,0,4,0,4,0,4,0])]),$a(["full","7",$1.v1to9,45,45,22,38,1568,$a([40,72,108,130]),$a([2,0,4,0,2,4,4,1])]),$a(["full","8",$1.v1to9,49,49,24,42,1936,$a([48,88,132,156]),$a([2,0,2,2,4,2,4,2])]),$a(["full","9",$1.v1to9,53,53,26,46,2336,$a([60,110,160,192]),$a([2,0,3,2,4,4,4,4])]),$a(["full","10",$1.v10to26,57,57,28,50,2768,$a([72,130,192,224]),$a([2,2,4,1,6,2,6,2])]),$a(["full","11",$1.v10to26,61,61,30,54,3232,$a([80,150,224,264]),$a([4,0,1,4,4,4,3,8])]),$a(["full","12",$1.v10to26,65,65,32,58,3728,$a([96,176,260,308]),$a([2,2,6,2,4,6,7,4])]),$a(["full","13",$1.v10to26,69,69,34,62,4256,$a([104,198,288,352]),$a([4,0,8,1,8,4,12,4])]),$a(["full","14",$1.v10to26,73,73,26,46,4651,$a([120,216,320,384]),$a([3,1,4,5,11,5,11,5])]),$a(["full","15",$1.v10to26,77,77,26,48,5243,$a([132,240,360,432]),$a([5,1,5,5,5,7,11,7])]),$a(["full","16",$1.v10to26,81,81,26,50,5867,$a([144,280,408,480]),$a([5,1,7,3,15,2,3,13])]),$a(["full","17",$1.v10to26,85,85,30,54,6523,$a([168,308,448,532]),$a([1,5,10,1,1,15,2,17])]),$a(["full","18",$1.v10to26,89,89,30,56,7211,$a([180,338,504,588]),$a([5,1,9,4,17,1,2,19])]),$a(["full","19",$1.v10to26,93,93,30,58,7931,$a([196,364,546,650]),$a([3,4,3,11,17,4,9,16])]),$a(["full","20",$1.v10to26,97,97,34,62,8683,$a([224,416,600,700]),$a([3,5,3,13,15,5,15,10])]),$a(["full","21",$1.v10to26,101,101,28,50,9252,$a([224,442,644,750]),$a([4,4,17,0,17,6,19,6])]),$a(["full","22",$1.v10to26,105,105,26,50,10068,$a([252,476,690,816]),$a([2,7,17,0,7,16,34,0])]),$a(["full","23",$1.v10to26,109,109,30,54,10916,$a([270,504,750,900]),$a([4,5,4,14,11,14,16,14])]),$a(["full","24",$1.v10to26,113,113,28,54,11796,$a([300,560,810,960]),$a([6,4,6,14,11,16,30,2])]),$a(["full","25",$1.v10to26,117,117,32,58,12708,$a([312,588,870,1050]),$a([8,4,8,13,7,22,22,13])]),$a(["full","26",$1.v10to26,121,121,30,58,13652,$a([336,644,952,1110]),$a([10,2,19,4,28,6,33,4])]),$a(["full","27",$1.v27to40,125,125,34,62,14628,$a([360,700,1020,1200]),$a([8,4,22,3,8,26,12,28])]),$a(["full","28",$1.v27to40,129,129,26,50,15371,$a([390,728,1050,1260]),$a([3,10,3,23,4,31,11,31])]),$a(["full","29",$1.v27to40,133,133,30,54,16411,$a([420,784,1140,1350]),$a([7,7,21,7,1,37,19,26])]),$a(["full","30",$1.v27to40,137,137,26,52,17483,$a([450,812,1200,1440]),$a([5,10,19,10,15,25,23,25])]),$a(["full","31",$1.v27to40,141,141,30,56,18587,$a([480,868,1290,1530]),$a([13,3,2,29,42,1,23,28])]),$a(["full","32",$1.v27to40,145,145,34,60,19723,$a([510,924,1350,1620]),$a([17,0,10,23,10,35,19,35])]),$a(["full","33",$1.v27to40,149,149,30,58,20891,$a([540,980,1440,1710]),$a([17,1,14,21,29,19,11,46])]),$a(["full","34",$1.v27to40,153,153,34,62,22091,$a([570,1036,1530,1800]),$a([13,6,14,23,44,7,59,1])]),$a(["full","35",$1.v27to40,157,157,30,54,23008,$a([570,1064,1590,1890]),$a([12,7,12,26,39,14,22,41])]),$a(["full","36",$1.v27to40,161,161,24,50,24272,$a([600,1120,1680,1980]),$a([6,14,6,34,46,10,2,64])]),$a(["full","37",$1.v27to40,165,165,28,54,25568,$a([630,1204,1770,2100]),$a([17,4,29,14,49,10,24,46])]),$a(["full","38",$1.v27to40,169,169,32,58,26896,$a([660,1260,1860,2220]),$a([4,18,13,32,48,14,42,32])]),$a(["full","39",$1.v27to40,173,173,26,54,28256,$a([720,1316,1950,2310]),$a([20,4,40,7,43,22,10,67])]),$a(["full","40",$1.v27to40,177,177,30,58,29648,$a([750,1372,2040,2430]),$a([19,6,18,31,34,34,20,61])]),$a(["rmqr","R7x43",$1.vR7x43,7,43,22,99,104,$a([99,7,99,10]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R7x59",$1.vR7x59,7,59,20,40,171,$a([99,9,99,14]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R7x77",$1.vR7x77,7,77,26,52,261,$a([99,12,99,22]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R7x99",$1.vR7x99,7,99,24,50,358,$a([99,16,99,30]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R7x139",$1.vR7x139,7,139,28,56,545,$a([99,24,99,44]),$a([-1,-1,1,0,-1,-1,2,0])]),$a(["rmqr","R9x43",$1.vR9x43,9,43,22,99,170,$a([99,9,99,14]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R9x59",$1.vR9x59,9,59,20,40,267,$a([99,12,99,22]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R9x77",$1.vR9x77,9,77,26,52,393,$a([99,18,99,32]),$a([-1,-1,1,0,-1,-1,1,1])]),$a(["rmqr","R9x99",$1.vR9x99,9,99,24,50,532,$a([99,24,99,44]),$a([-1,-1,1,0,-1,-1,2,0])]),$a(["rmqr","R9x139",$1.vR9x139,9,139,28,56,797,$a([99,36,99,66]),$a([-1,-1,1,1,-1,-1,3,0])]),$a(["rmqr","R11x27",$1.vR11x27,11,27,98,99,122,$a([99,8,99,10]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R11x43",$1.vR11x43,11,43,22,99,249,$a([99,12,99,20]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R11x59",$1.vR11x59,11,59,20,40,376,$a([99,16,99,32]),$a([-1,-1,1,0,-1,-1,1,1])]),$a(["rmqr","R11x77",$1.vR11x77,11,77,26,52,538,$a([99,24,99,44]),$a([-1,-1,1,0,-1,-1,1,1])]),$a(["rmqr","R11x99",$1.vR11x99,11,99,24,50,719,$a([99,32,99,60]),$a([-1,-1,1,1,-1,-1,1,1])]),$a(["rmqr","R11x139",$1.vR11x139,11,139,28,56,1062,$a([99,48,99,90]),$a([-1,-1,2,0,-1,-1,3,0])]),$a(["rmqr","R13x27",$1.vR13x27,13,27,98,99,172,$a([99,9,99,14]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R13x43",$1.vR13x43,13,43,22,99,329,$a([99,14,99,28]),$a([-1,-1,1,0,-1,-1,1,0])]),$a(["rmqr","R13x59",$1.vR13x59,13,59,20,40,486,$a([99,22,99,40]),$a([-1,-1,1,0,-1,-1,2,0])]),$a(["rmqr","R13x77",$1.vR13x77,13,77,26,52,684,$a([99,32,99,56]),$a([-1,-1,1,1,-1,-1,1,1])]),$a(["rmqr","R13x99",$1.vR13x99,13,99,24,50,907,$a([99,40,99,78]),$a([-1,-1,1,1,-1,-1,1,2])]),$a(["rmqr","R13x139",$1.vR13x139,13,139,28,56,1328,$a([99,60,99,112]),$a([-1,-1,2,1,-1,-1,2,2])]),$a(["rmqr","R15x43",$1.vR15x43,15,43,22,99,409,$a([99,18,99,36]),$a([-1,-1,1,0,-1,-1,1,1])]),$a(["rmqr","R15x59",$1.vR15x59,15,59,20,40,596,$a([99,26,99,48]),$a([-1,-1,1,0,-1,-1,2,0])]),$a(["rmqr","R15x77",$1.vR15x77,15,77,26,52,830,$a([99,36,99,72]),$a([-1,-1,1,1,-1,-1,2,1])]),$a(["rmqr","R15x99",$1.vR15x99,15,99,24,50,1095,$a([99,48,99,88]),$a([-1,-1,2,0,-1,-1,4,0])]),$a(["rmqr","R15x139",$1.vR15x139,15,139,28,56,1594,$a([99,72,99,130]),$a([-1,-1,2,1,-1,-1,1,4])]),$a(["rmqr","R17x43",$1.vR17x43,17,43,22,99,489,$a([99,22,99,40]),$a([-1,-1,1,0,-1,-1,1,1])]),$a(["rmqr","R17x59",$1.vR17x59,17,59,20,40,706,$a([99,32,99,60]),$a([-1,-1,2,0,-1,-1,2,0])]),$a(["rmqr","R17x77",$1.vR17x77,17,77,26,52,976,$a([99,44,99,84]),$a([-1,-1,2,0,-1,-1,1,2])]),$a(["rmqr","R17x99",$1.vR17x99,17,99,24,50,1283,$a([99,60,99,104]),$a([-1,-1,2,1,-1,-1,4,0])]),$a(["rmqr","R17x139",$1.vR17x139,17,139,28,56,1860,$a([99,80,99,156]),$a([-1,-1,4,0,-1,-1,2,4])])]);$k[$j++]="eclval";$x("LMQH",$1.eclevel);$j--;var _Iz=$k[--$j];var _J0=$k[--$j];$k[$j++]=_Iz.length;$k[$j++]=_J0;$j--;var _J1=$k[--$j];var _J2=$k[--$j];$k[$j++]=_J1;$k[$j++]=_J2;$j--;var _J3=$k[--$j];$1[$k[--$j]]=_J3;for(var _J7=0,_J6=$1.metrics.length-1;_J7<=_J6;_J7+=1){$1.i=_J7;$1.m=$g($1.metrics,$1.i);$1.frmt=$g($1.m,0);$1.vers=$g($1.m,1);$1.vergrp=$g($1.m,2);$1.verind=$1.i-44;$1.rows=$g($1.m,3);$1.cols=$g($1.m,4);$1.asp2=$g($1.m,5);$1.asp3=$g($1.m,6);$1.nmod=$g($1.m,7);$1.ncws=~~($1.nmod/8);$1.rbit=$1.nmod%8;$1.lc4b=false;if($eq($1.vers,"M1")||$eq($1.vers,"M3")){$1.ncws=$1.ncws+1;$1.rbit=0;$1.lc4b=true}$1.ecws=$g($g($1.m,8),$1.eclval);$1.dcws=$f($1.ncws-$1.ecws);var _Jf=$1.lc4b?4:0;$1.dmod=$f($1.dcws*8-_Jf);$1.ecb1=$g($g($1.m,9),$1.eclval*2);$1.ecb2=$g($g($1.m,9),$f($1.eclval*2+1));$1.okay=true;if($ne($1.format,$1.frmt)){$1.okay=false}if($eq($1.frmt,"micro")&&$1.fnc1first){$1.okay=false}if($ne($1.version,"unset")&&$ne($1.version,$1.vers)){$1.okay=false}if($1.ecb1==-1||$1.ecb2==-1){$1.okay=false}$1.verbits=$g($1.msgbits,$1.vergrp);if($1.verbits==-1){$1.okay=false}else{if($1.verbits.length>$1.dmod){$1.okay=false}}$1.term=$G("000000000",0,$g($1.termlens,$1.vergrp));if($1.okay){break}}if(!$1.okay){$k[$j++]="bwipp.qrcodeNoValidSymbol";$k[$j++]="No valid symbol available";$0.raiseerror()}$1.format=$1.frmt;$1.version=$1.vers;$1.msgbits=$1.verbits;$1.dcpb=~~($1.dcws/$f($1.ecb1+$1.ecb2));$1.ecpb=~~($1.ncws/$f($1.ecb1+$1.ecb2))-$1.dcpb;var _KJ=$1.term;var _KK=$1.dmod;var _KL=$1.msgbits;var _KM=$1.term;var _KN=_KM.length;var _KO=$f(_KK-_KL.length);if($f(_KK-_KL.length)>_KM.length){var _=_KN;_KN=_KO;_KO=_}$1.term=$G(_KJ,0,_KO);var _KS=$s($1.msgbits.length+$1.term.length);$P(_KS,0,$1.msgbits);$P(_KS,$1.msgbits.length,$1.term);$1.msgbits=_KS;$1.pad=$s($1.dmod);for(var _Ka=0,_KZ=$1.pad.length-1;_Ka<=_KZ;_Ka+=1){$p($1.pad,_Ka,48)}$P($1.pad,0,$1.msgbits);$1.padstrs=$a(["11101100","00010001"]);$1.padnum=0;var _Ki=$1.lc4b?5:1;for(var _Kk=~~(Math.ceil($1.msgbits.length/8)*8),_Kj=$f($1.dmod-_Ki);_Kk<=_Kj;_Kk+=8){$P($1.pad,_Kk,$g($1.padstrs,$1.padnum));$1.padnum=($1.padnum+1)%2}$1.cws=$a($1.dcws);for(var _Ku=0,_Kt=$1.cws.length-1;_Ku<=_Kt;_Ku+=1){$1.c=_Ku;$1.bpcw=8;if($1.lc4b&&$1.c==$1.cws.length-1){$1.bpcw=4}$1.cwb=$G($1.pad,$1.c*8,$1.bpcw);$1.cw=0;for(var _L4=0,_L3=$1.bpcw-1;_L4<=_L3;_L4+=1){$1.i=_L4;$1.cw=$f($1.cw+~~Math.pow(2,$1.bpcw-$1.i-1)*$f($g($1.cwb,$1.i)-48))}$p($1.cws,$1.c,$1.cw)}if($1.lc4b){var _LF=$1.cws;var _LG=$1.cws;$p(_LF,_LG.length-1,$g(_LF,_LG.length-1)<<4)}var _LJ=$g($1.options,"debugcws")!==undefined;if(_LJ){$k[$j++]="bwipp.debugcws";$k[$j++]=$1.cws;$0.raiseerror()}$k[$j++]=Infinity;$k[$j++]=1;for(var _LL=0,_LM=255;_LL<_LM;_LL++){var _LN=$k[--$j];var _LO=_LN*2;$k[$j++]=_LN;$k[$j++]=_LO;if(_LO>=256){var _LP=$k[--$j];$k[$j++]=_LP^285}}$1.rsalog=$a();$1.rslog=$a(256);for(var _LS=1;_LS<=255;_LS+=1){$p($1.rslog,$g($1.rsalog,_LS),_LS)}$1.rsprod=function(){var _LW=$k[--$j];var _LX=$k[--$j];$k[$j++]=_LX;$k[$j++]=_LW;if(_LW!=0&&_LX!=0){var _La=$g($1.rslog,$k[--$j]);var _Lf=$g($1.rsalog,$f(_La+$g($1.rslog,$k[--$j]))%255);$k[$j++]=_Lf}else{$j-=2;$k[$j++]=0}};$k[$j++]=Infinity;$k[$j++]=1;for(var _Lh=0,_Li=$1.ecpb;_Lh<_Li;_Lh++){$k[$j++]=0}$1.coeffs=$a();for(var _Lm=0,_Ll=$1.ecpb-1;_Lm<=_Ll;_Lm+=1){$1.i=_Lm;$p($1.coeffs,$1.i+1,$g($1.coeffs,$1.i));for(var _Lt=$1.i;_Lt>=1;_Lt-=1){$1.j=_Lt;$k[$j++]=$1.coeffs;$k[$j++]=$1.j;$k[$j++]=$g($1.coeffs,$1.j-1);$k[$j++]=$g($1.coeffs,$1.j);$k[$j++]=$g($1.rsalog,$1.i);$1.rsprod();var _M5=$k[--$j];var _M6=$k[--$j];var _M7=$k[--$j];$p($k[--$j],_M7,$xo(_M6,_M5))}$k[$j++]=$1.coeffs;$k[$j++]=0;$k[$j++]=$g($1.coeffs,0);$k[$j++]=$g($1.rsalog,$1.i);$1.rsprod();var _MF=$k[--$j];var _MG=$k[--$j];$p($k[--$j],_MG,_MF)}$1.coeffs=$G($1.coeffs,0,$1.coeffs.length-1);$1.rscodes=function(){$1.rscws=$k[--$j];$1.rsnd=$1.rscws.length;$k[$j++]=Infinity;$F($1.rscws);for(var _MP=0,_MQ=$1.ecpb;_MP<_MQ;_MP++){$k[$j++]=0}$1.rscws=$a();for(var _MU=0,_MT=$1.rsnd-1;_MU<=_MT;_MU+=1){$1.m=_MU;$1.k=$g($1.rscws,$1.m);for(var _Ma=0,_MZ=$1.ecpb-1;_Ma<=_MZ;_Ma+=1){$1.j=_Ma;$k[$j++]=$1.rscws;$k[$j++]=$1.m+$1.j+1;$k[$j++]=$g($1.coeffs,$1.ecpb-$1.j-1);$k[$j++]=$1.k;$1.rsprod();var _Mn=$k[--$j];var _Mo=$k[--$j];$p($k[--$j],_Mo,$xo(_Mn,$g($1.rscws,$1.m+$1.j+1)))}}$k[$j++]=$G($1.rscws,$1.rsnd,$1.ecpb)};$1.dcwsb=$a($f($1.ecb1+$1.ecb2));$1.ecwsb=$a($f($1.ecb1+$1.ecb2));for(var _N2=0,_N1=$f($1.ecb1-1);_N2<=_N1;_N2+=1){$1.i=_N2;$p($1.dcwsb,$1.i,$G($1.cws,$1.i*$1.dcpb,$1.dcpb));$k[$j++]=$1.ecwsb;$k[$j++]=$1.i;$k[$j++]=$g($1.dcwsb,$1.i);$1.rscodes();var _NF=$k[--$j];var _NG=$k[--$j];$p($k[--$j],_NG,_NF)}for(var _NK=0,_NJ=$f($1.ecb2-1);_NK<=_NJ;_NK+=1){$1.i=_NK;$p($1.dcwsb,$f($1.ecb1+$1.i),$G($1.cws,$f($1.ecb1*$1.dcpb+$1.i*($1.dcpb+1)),$1.dcpb+1));$k[$j++]=$1.ecwsb;$k[$j++]=$f($1.ecb1+$1.i);$k[$j++]=$g($1.dcwsb,$f($1.ecb1+$1.i));$1.rscodes();var _Nc=$k[--$j];var _Nd=$k[--$j];$p($k[--$j],_Nd,_Nc)}$1.cws=$a($1.ncws);$1.cw=0;for(var _Nj=0,_Ni=$1.dcpb;_Nj<=_Ni;_Nj+=1){$1.i=_Nj;for(var _Nn=0,_Nm=$f($f($1.ecb1+$1.ecb2)-1);_Nn<=_Nm;_Nn+=1){$1.j=_Nn;if($1.i<$g($1.dcwsb,$1.j).length){$p($1.cws,$1.cw,$g($g($1.dcwsb,$1.j),$1.i));$1.cw=$1.cw+1}}}for(var _O2=0,_O1=$1.ecpb-1;_O2<=_O1;_O2+=1){$1.i=_O2;for(var _O6=0,_O5=$f($f($1.ecb1+$1.ecb2)-1);_O6<=_O5;_O6+=1){$1.j=_O6;$p($1.cws,$1.cw,$g($g($1.ecwsb,$1.j),$1.i));$1.cw=$1.cw+1}}if($1.rbit>0){$1.pad=$a($1.cws.length+1);$P($1.pad,0,$1.cws);$p($1.pad,$1.pad.length-1,0);$1.cws=$1.pad}if($1.lc4b){var _OO=$1.cws;var _OP=$1.dcws;$p(_OO,$f(_OP-1),$g(_OO,$f(_OP-1))>>>4);for(var _OU=$f($1.dcws-1),_OT=$1.ncws-2;_OU<=_OT;_OU+=1){$1.i=_OU;$p($1.cws,$1.i,($g($1.cws,$1.i)&15)<<4);$p($1.cws,$1.i,$g($1.cws,$1.i+1)>>>4&15|$g($1.cws,$1.i))}$p($1.cws,$1.ncws-1,($g($1.cws,$1.ncws-1)&15)<<4)}var _Oo=$g($1.options,"debugecc")!==undefined;if(_Oo){$k[$j++]="bwipp.debugecc";$k[$j++]=$1.cws;$0.raiseerror()}$k[$j++]=Infinity;for(var _Os=0,_Ot=$1.rows*$1.cols;_Os<_Ot;_Os++){$k[$j++]=-1}$1.pixs=$a();$1.qmv=function(){var _Ow=$k[--$j];var _Ox=$k[--$j];$k[$j++]=$f(_Ox+_Ow*$1.cols)};if($eq($1.format,"full")){for(var _P1=8,_P0=$f($1.cols-9);_P1<=_P0;_P1+=1){$1.i=_P1;$k[$j++]=$1.pixs;$k[$j++]=$1.i;$k[$j++]=6;$1.qmv();var _P5=$k[--$j];$p($k[--$j],_P5,($1.i+1)%2);$k[$j++]=$1.pixs;$k[$j++]=6;$k[$j++]=$1.i;$1.qmv();var _PA=$k[--$j];$p($k[--$j],_PA,($1.i+1)%2)}}if($eq($1.format,"micro")){for(var _PF=8,_PE=$f($1.cols-1);_PF<=_PE;_PF+=1){$1.i=_PF;$k[$j++]=$1.pixs;$k[$j++]=$1.i;$k[$j++]=0;$1.qmv();var _PJ=$k[--$j];$p($k[--$j],_PJ,($1.i+1)%2);$k[$j++]=$1.pixs;$k[$j++]=0;$k[$j++]=$1.i;$1.qmv();var _PO=$k[--$j];$p($k[--$j],_PO,($1.i+1)%2)}}if($eq($1.format,"rmqr")){for(var _PT=3,_PS=$f($1.cols-4);_PT<=_PS;_PT+=1){$1.i=_PT;$k[$j++]=$1.pixs;$k[$j++]=$1.i;$k[$j++]=0;$1.qmv();var _PX=$k[--$j];$p($k[--$j],_PX,($1.i+1)%2);$k[$j++]=$1.pixs;$k[$j++]=$1.i;$k[$j++]=$f($1.rows-1);$1.qmv();var _Pd=$k[--$j];$p($k[--$j],_Pd,($1.i+1)%2)}for(var _Ph=3,_Pg=$f($1.rows-4);_Ph<=_Pg;_Ph+=1){$1.i=_Ph;$k[$j++]=$1.pixs;$k[$j++]=0;$k[$j++]=$1.i;$1.qmv();var _Pl=$k[--$j];$p($k[--$j],_Pl,($1.i+1)%2);$k[$j++]=$1.pixs;$k[$j++]=$f($1.cols-1);$k[$j++]=$1.i;$1.qmv();var _Pr=$k[--$j];$p($k[--$j],_Pr,($1.i+1)%2)}for(var _Py=$f($1.asp2-1),_Pz=$f($1.asp3-$1.asp2),_Px=$f($1.cols-13);_Pz<0?_Py>=_Px:_Py<=_Px;_Py+=_Pz){$1.i=_Py;for(var _Q2=3,_Q1=$f($1.rows-4);_Q2<=_Q1;_Q2+=1){$1.j=_Q2;$k[$j++]=$1.pixs;$k[$j++]=$1.i;$k[$j++]=$1.j;$1.qmv();var _Q7=$k[--$j];$p($k[--$j],_Q7,($1.j+1)%2)}}}$1.fpat=$a([$a([1,1,1,1,1,1,1,0]),$a([1,0,0,0,0,0,1,0]),$a([1,0,1,1,1,0,1,0]),$a([1,0,1,1,1,0,1,0]),$a([1,0,1,1,1,0,1,0]),$a([1,0,0,0,0,0,1,0]),$a([1,1,1,1,1,1,1,0]),$a([0,0,0,0,0,0,0,0])]);$1.fsubpat=$a([$a([1,1,1,1,1,9,9,9]),$a([1,0,0,0,1,9,9,9]),$a([1,0,1,0,1,9,9,9]),$a([1,0,0,0,1,9,9,9]),$a([1,1,1,1,1,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9])]);$1.fcorpat=$a([$a([1,1,1,9,9,9,9,9]),$a([1,0,9,9,9,9,9,9]),$a([1,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9])]);$1.fnullpat=$a([$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9]),$a([9,9,9,9,9,9,9,9])]);var _Qy=new Map([["full",$a([$1.fpat,$1.fpat,$1.fpat,$1.fnullpat])],["micro",$a([$1.fpat,$1.fnullpat,$1.fnullpat,$1.fnullpat])],["rmqr",$a([$1.fpat,$1.fcorpat,$1.fcorpat,$1.fsubpat])]]);$1.fpats=$g(_Qy,$1.format);for(var _R1=0;_R1<=7;_R1+=1){$1.y=_R1;for(var _R2=0;_R2<=7;_R2+=1){$1.x=_R2;$1.fpb0=$g($g($g($1.fpats,0),$1.y),$1.x);$1.fpb1=$g($g($g($1.fpats,1),$1.y),$1.x);$1.fpb2=$g($g($g($1.fpats,2),$1.y),$1.x);$1.fpb3=$g($g($g($1.fpats,3),$1.y),$1.x);if($1.fpb0!=9&&$1.y<$1.rows){$k[$j++]=$1.pixs;$k[$j++]=$1.x;$k[$j++]=$1.y;$1.qmv();var _RY=$k[--$j];$p($k[--$j],_RY,$1.fpb0)}if($1.fpb1!=9){$k[$j++]=$1.pixs;$k[$j++]=$f($f($1.cols-$1.x)-1);$k[$j++]=$1.y;$1.qmv();var _Rg=$k[--$j];$p($k[--$j],_Rg,$1.fpb1)}if($1.fpb2!=9){$k[$j++]=$1.pixs;$k[$j++]=$1.x;$k[$j++]=$f($f($1.rows-$1.y)-1);$1.qmv();var _Ro=$k[--$j];$p($k[--$j],_Ro,$1.fpb2)}if($1.fpb3!=9){$k[$j++]=$1.pixs;$k[$j++]=$f($f($1.cols-$1.x)-1);$k[$j++]=$f($f($1.rows-$1.y)-1);$1.qmv();var _Rx=$k[--$j];$p($k[--$j],_Rx,$1.fpb3)}}}$1.putalgnpat=function(){$1.py=$k[--$j];$1.px=$k[--$j];for(var _S1=0;_S1<=4;_S1+=1){$1.pb=_S1;for(var _S2=0;_S2<=4;_S2+=1){$1.pa=_S2;$1.algnb=$g($g($1.algnpat,$1.pb),$1.pa);if($1.algnb!=9){$k[$j++]=$1.pixs;$k[$j++]=$f($1.px+$1.pa);$k[$j++]=$f($1.py+$1.pb);$1.qmv();var _SF=$k[--$j];$p($k[--$j],_SF,$1.algnb)}}}};if($eq($1.format,"full")){$1.algnpat=$a([$a([1,1,1,1,1]),$a([1,0,0,0,1]),$a([1,0,1,0,1]),$a([1,0,0,0,1]),$a([1,1,1,1,1])]);for(var _ST=$f($1.asp2-2),_SU=$f($1.asp3-$1.asp2),_SS=$f($1.cols-13);_SU<0?_ST>=_SS:_ST<=_SS;_ST+=_SU){$1.i=_ST;$k[$j++]=$1.i;$k[$j++]=4;$1.putalgnpat();$k[$j++]=4;$k[$j++]=$1.i;$1.putalgnpat()}for(var _Sc=$f($1.asp2-2),_Sd=$f($1.asp3-$1.asp2),_Sb=$f($1.cols-9);_Sd<0?_Sc>=_Sb:_Sc<=_Sb;_Sc+=_Sd){$1.x=_Sc;for(var _Sj=$f($1.asp2-2),_Sk=$f($1.asp3-$1.asp2),_Si=$f($1.rows-9);_Sk<0?_Sj>=_Si:_Sj<=_Si;_Sj+=_Sk){$1.y=_Sj;$k[$j++]=$1.x;$k[$j++]=$1.y;$1.putalgnpat()}}}if($eq($1.format,"rmqr")){$1.algnpat=$a([$a([1,1,1,9,9]),$a([1,0,1,9,9]),$a([1,1,1,9,9]),$a([9,9,9,9,9]),$a([9,9,9,9,9])]);for(var _Sz=$f($1.asp2-2),_T0=$f($1.asp3-$1.asp2),_Sy=$f($1.cols-13);_T0<0?_Sz>=_Sy:_Sz<=_Sy;_Sz+=_T0){$1.i=_Sz;$k[$j++]=$1.i;$k[$j++]=0;$1.putalgnpat();$k[$j++]=$1.i;$k[$j++]=$f($1.rows-3);$1.putalgnpat()}}var _W1=new Map([["full",$a([$a([$a([0,8]),$a([8,$f($1.cols-1)])]),$a([$a([1,8]),$a([8,$f($1.cols-2)])]),$a([$a([2,8]),$a([8,$f($1.cols-3)])]),$a([$a([3,8]),$a([8,$f($1.cols-4)])]),$a([$a([4,8]),$a([8,$f($1.cols-5)])]),$a([$a([5,8]),$a([8,$f($1.cols-6)])]),$a([$a([7,8]),$a([8,$f($1.cols-7)])]),$a([$a([8,8]),$a([$f($1.cols-8),8])]),$a([$a([8,7]),$a([$f($1.cols-7),8])]),$a([$a([8,5]),$a([$f($1.cols-6),8])]),$a([$a([8,4]),$a([$f($1.cols-5),8])]),$a([$a([8,3]),$a([$f($1.cols-4),8])]),$a([$a([8,2]),$a([$f($1.cols-3),8])]),$a([$a([8,1]),$a([$f($1.cols-2),8])]),$a([$a([8,0]),$a([$f($1.cols-1),8])])])],["micro",$a([$a([$a([1,8])]),$a([$a([2,8])]),$a([$a([3,8])]),$a([$a([4,8])]),$a([$a([5,8])]),$a([$a([6,8])]),$a([$a([7,8])]),$a([$a([8,8])]),$a([$a([8,7])]),$a([$a([8,6])]),$a([$a([8,5])]),$a([$a([8,4])]),$a([$a([8,3])]),$a([$a([8,2])]),$a([$a([8,1])])])],["rmqr",$a([$a([$a([11,3]),$a([$f($1.cols-3),$f($1.rows-6)])]),$a([$a([11,2]),$a([$f($1.cols-4),$f($1.rows-6)])]),$a([$a([11,1]),$a([$f($1.cols-5),$f($1.rows-6)])]),$a([$a([10,5]),$a([$f($1.cols-6),$f($1.rows-2)])]),$a([$a([10,4]),$a([$f($1.cols-6),$f($1.rows-3)])]),$a([$a([10,3]),$a([$f($1.cols-6),$f($1.rows-4)])]),$a([$a([10,2]),$a([$f($1.cols-6),$f($1.rows-5)])]),$a([$a([10,1]),$a([$f($1.cols-6),$f($1.rows-6)])]),$a([$a([9,5]),$a([$f($1.cols-7),$f($1.rows-2)])]),$a([$a([9,4]),$a([$f($1.cols-7),$f($1.rows-3)])]),$a([$a([9,3]),$a([$f($1.cols-7),$f($1.rows-4)])]),$a([$a([9,2]),$a([$f($1.cols-7),$f($1.rows-5)])]),$a([$a([9,1]),$a([$f($1.cols-7),$f($1.rows-6)])]),$a([$a([8,5]),$a([$f($1.cols-8),$f($1.rows-2)])]),$a([$a([8,4]),$a([$f($1.cols-8),$f($1.rows-3)])]),$a([$a([8,3]),$a([$f($1.cols-8),$f($1.rows-4)])]),$a([$a([8,2]),$a([$f($1.cols-8),$f($1.rows-5)])]),$a([$a([8,1]),$a([$f($1.cols-8),$f($1.rows-6)])])])]]);$1.formatmap=$g(_W1,$1.format);$F($1.formatmap,function(){$F($k[--$j],function(){$F($k[--$j]);$1.qmv();$p($1.pixs,$k[--$j],1)})});if($eq($1.format,"full")&&$1.cols>=45){$1.versionmap=$a([$a([$a([$f($1.cols-9),5]),$a([5,$f($1.cols-9)])]),$a([$a([$f($1.cols-10),5]),$a([5,$f($1.cols-10)])]),$a([$a([$f($1.cols-11),5]),$a([5,$f($1.cols-11)])]),$a([$a([$f($1.cols-9),4]),$a([4,$f($1.cols-9)])]),$a([$a([$f($1.cols-10),4]),$a([4,$f($1.cols-10)])]),$a([$a([$f($1.cols-11),4]),$a([4,$f($1.cols-11)])]),$a([$a([$f($1.cols-9),3]),$a([3,$f($1.cols-9)])]),$a([$a([$f($1.cols-10),3]),$a([3,$f($1.cols-10)])]),$a([$a([$f($1.cols-11),3]),$a([3,$f($1.cols-11)])]),$a([$a([$f($1.cols-9),2]),$a([2,$f($1.cols-9)])]),$a([$a([$f($1.cols-10),2]),$a([2,$f($1.cols-10)])]),$a([$a([$f($1.cols-11),2]),$a([2,$f($1.cols-11)])]),$a([$a([$f($1.cols-9),1]),$a([1,$f($1.cols-9)])]),$a([$a([$f($1.cols-10),1]),$a([1,$f($1.cols-10)])]),$a([$a([$f($1.cols-11),1]),$a([1,$f($1.cols-11)])]),$a([$a([$f($1.cols-9),0]),$a([0,$f($1.cols-9)])]),$a([$a([$f($1.cols-10),0]),$a([0,$f($1.cols-10)])]),$a([$a([$f($1.cols-11),0]),$a([0,$f($1.cols-11)])])])}else{$1.versionmap=$a([])}var _Xf=$1.versionmap;for(var _Xg=0,_Xh=_Xf.length;_Xg<_Xh;_Xg++){$F($g(_Xf,_Xg),function(){$F($k[--$j]);$1.qmv();$p($1.pixs,$k[--$j],0)})}if($eq($1.format,"full")){$k[$j++]=$1.pixs;$k[$j++]=8;$k[$j++]=$f($1.rows-8);$1.qmv();var _Xp=$k[--$j];$p($k[--$j],_Xp,0)}var _Y9=$a([function(){var _Xr=$k[--$j];var _Xs=$k[--$j];$k[$j++]=$f(_Xs+_Xr)%2},function(){var _Xt=$k[--$j];var _Xu=$k[--$j];$k[$j++]=_Xt;$k[$j++]=_Xu;$j--;var _Xv=$k[--$j];$k[$j++]=_Xv%2},function(){$j--;var _Xw=$k[--$j];$k[$j++]=_Xw%3},function(){var _Xx=$k[--$j];var _Xy=$k[--$j];$k[$j++]=$f(_Xy+_Xx)%3},function(){var _Xz=$k[--$j];var _Y0=$k[--$j];$k[$j++]=(~~(_Xz/2)+~~(_Y0/3))%2},function(){var _Y1=$k[--$j];var _Y3=$k[--$j]*_Y1;$k[$j++]=$f(_Y3%2+_Y3%3)},function(){var _Y4=$k[--$j];var _Y6=$k[--$j]*_Y4;$k[$j++]=$f(_Y6%2+_Y6%3)%2},function(){var _Y7=$k[--$j];var _Y8=$k[--$j];$k[$j++]=$f(_Y8*_Y7%3+$f(_Y8+_Y7)%2)%2}]);var _YK=$a([function(){var _YA=$k[--$j];var _YB=$k[--$j];$k[$j++]=_YA;$k[$j++]=_YB;$j--;var _YC=$k[--$j];$k[$j++]=_YC%2},function(){var _YD=$k[--$j];var _YE=$k[--$j];$k[$j++]=(~~(_YD/2)+~~(_YE/3))%2},function(){var _YF=$k[--$j];var _YH=$k[--$j]*_YF;$k[$j++]=$f(_YH%2+_YH%3)%2},function(){var _YI=$k[--$j];var _YJ=$k[--$j];$k[$j++]=$f(_YJ*_YI%3+$f(_YJ+_YI)%2)%2}]);var _YN=$a([function(){var _YL=$k[--$j];var _YM=$k[--$j];$k[$j++]=(~~(_YL/2)+~~(_YM/3))%2}]);var _YO=new Map([["full",_Y9],["micro",_YK],["rmqr",_YN]]);$1.maskfuncs=$g(_YO,$1.format);if($1.mask!=-1){$1.maskfuncs=$a([$g($1.maskfuncs,$1.mask-1)]);$1.bestmaskval=$1.mask-1}$1.masks=$a($1.maskfuncs.length);for(var _Yb=0,_Ya=$1.masks.length-1;_Yb<=_Ya;_Yb+=1){$1.m=_Yb;$1.mask=$a($1.rows*$1.cols);for(var _Yh=0,_Yg=$f($1.rows-1);_Yh<=_Yg;_Yh+=1){$1.j=_Yh;for(var _Yk=0,_Yj=$f($1.cols-1);_Yk<=_Yj;_Yk+=1){$1.i=_Yk;$k[$j++]=$1.i;$k[$j++]=$1.j;if($g($1.maskfuncs,$1.m)()===true){break}var _Yq=$k[--$j];$k[$j++]=_Yq==0;$k[$j++]=$1.pixs;$k[$j++]=$1.i;$k[$j++]=$1.j;$1.qmv();var _Yu=$k[--$j];var _Yw=$g($k[--$j],_Yu);var _Yx=$k[--$j];var _Yy=_Yx&&_Yw==-1?1:0;$k[$j++]=_Yy;$k[$j++]=$1.mask;$k[$j++]=$1.i;$k[$j++]=$1.j;$1.qmv();var _Z2=$k[--$j];var _Z3=$k[--$j];$p(_Z3,_Z2,$k[--$j])}}$p($1.masks,$1.m,$1.mask)}var _ZA=$ne($1.format,"rmqr")?1:2;$1.posx=$f($1.cols-_ZA);$1.posy=$f($1.rows-1);$1.dir=-1;$1.col=1;$1.num=0;for(;;){if($1.posx<0){break}$k[$j++]=$1.pixs;$k[$j++]=$1.posx;$k[$j++]=$1.posy;$1.qmv();var _ZG=$k[--$j];if($g($k[--$j],_ZG)==-1){var _ZL=$g($1.cws,~~($1.num/8));var _ZN=-(7-$1.num%8);$k[$j++]=(_ZN<0?_ZL>>>-_ZN:_ZL<<_ZN)&1;$k[$j++]=$1.pixs;$k[$j++]=$1.posx;$k[$j++]=$1.posy;$1.qmv();var _ZR=$k[--$j];var _ZS=$k[--$j];$p(_ZS,_ZR,$k[--$j]);$1.num=$1.num+1}if($1.col==1){$1.col=0;$1.posx=$f($1.posx-1)}else{$1.col=1;$1.posx=$f($1.posx+1);$1.posy=$f($1.posy+$1.dir);if($1.posy<0||$1.posy>=$1.rows){$1.dir=$1.dir*-1;$1.posy=$f($1.posy+$1.dir);$1.posx=$f($1.posx-2);if($eq($1.format,"full")&&$1.posx==6){$1.posx=$f($1.posx-1)}}}}$1.evalfulln1n3=function(){$1.scrle=$k[--$j];$k[$j++]="scr1";$k[$j++]=0;$F($1.scrle,function(){var _Zm=$k[--$j];$k[$j++]=_Zm;if(_Zm>=5){var _Zn=$k[--$j];var _Zp=$f($f($k[--$j]+_Zn)-2);$k[$j++]=_Zp;$k[$j++]=_Zp}$j--});var _Zq=$k[--$j];$1[$k[--$j]]=_Zq;$1.scr3=0;for(var _Zu=3,_Zt=$1.scrle.length-3;_Zu<=_Zt;_Zu+=2){$1.j=_Zu;if($g($1.scrle,$1.j)%3==0){$1.fact=~~($g($1.scrle,$1.j)/3);var _a3=$G($1.scrle,$1.j-2,5);for(var _a4=0,_a5=_a3.length;_a4<_a5;_a4++){$k[$j++]=$g(_a3,_a4)==$1.fact}var _a8=$k[--$j];var _a9=$k[--$j];var _aA=$k[--$j];$k[$j++]=$an(_a9,_a8);$k[$j++]=_aA;$j--;var _aB=$k[--$j];var _aC=$k[--$j];var _aD=$k[--$j];if(_aD&&(_aC&&_aB)){if($1.j==3||$1.j+4>=$1.scrle.length){$1.scr3=$1.scr3+40}else{if($g($1.scrle,$1.j-3)>=4||$g($1.scrle,$1.j+3)>=4){$1.scr3=$1.scr3+40}}}}}$k[$j++]=$1.scr1;$k[$j++]=$1.scr3};$1.evalfull=function(){$1.sym=$k[--$j];$1.n1=0;$1.n2=0;$1.n3=0;$1.rle=$a($f($1.cols+1));$1.lastpairs=$a($1.cols);$1.thispairs=$a($1.cols);$1.colsadd1=$f($1.cols+1);for(var _ab=0,_aa=$f($1.cols-1);_ab<=_aa;_ab+=1){$1.i=_ab;$k[$j++]=Infinity;var _ad=$1.cols;$k[$j++]=0;$k[$j++]=0;for(var _af=$1.i,_ag=_ad,_ae=$f(_ad*_ad-1);_ag<0?_af>=_ae:_af<=_ae;_af+=_ag){var _ai=$g($1.sym,_af);var _aj=$k[--$j];$k[$j++]=_ai;if($eq(_aj,_ai)){var _ak=$k[--$j];var _al=$k[--$j];$k[$j++]=$f(_al+1);$k[$j++]=_ak}else{var _am=$k[--$j];$k[$j++]=1;$k[$j++]=_am}}$j--;var _ao=$m()+2;$r($G($1.rle,0,_ao-2));$1.evalfulln1n3();$1.n3=$f($k[--$j]+$1.n3);$1.n1=$f($k[--$j]+$1.n1);$j--;$1.symrow=$G($1.sym,$1.i*$1.cols,$1.cols);$k[$j++]=Infinity;var _az=$1.symrow;$k[$j++]=0;$k[$j++]=0;for(var _b0=0,_b1=_az.length;_b0<_b1;_b0++){var _b2=$g(_az,_b0);var _b3=$k[--$j];$k[$j++]=_b2;if($eq(_b3,_b2)){var _b4=$k[--$j];var _b5=$k[--$j];$k[$j++]=$f(_b5+1);$k[$j++]=_b4}else{var _b6=$k[--$j];$k[$j++]=1;$k[$j++]=_b6}}$j--;var _b8=$m()+2;$r($G($1.rle,0,_b8-2));$1.evalfulln1n3();$1.n3=$f($k[--$j]+$1.n3);$1.n1=$f($k[--$j]+$1.n1);$j--;var _bE=$1.thispairs;$1.thispairs=$1.lastpairs;$1.lastpairs=_bE;var _bI=$g($1.symrow,0)==1?0:1;var _bJ=$1.symrow;$k[$j++]=_bI;for(var _bK=0,_bL=_bJ.length;_bK<_bL;_bK++){var _bM=$g(_bJ,_bK);var _bN=$k[--$j];$k[$j++]=$f(_bN+_bM);$k[$j++]=_bM}$j--;$r($1.thispairs);$j--;if($1.i>0){$k[$j++]=Infinity;$q($1.lastpairs);$q($1.thispairs);$k[$j++]=$1.n2;for(var _bU=0,_bV=$1.cols;_bU<_bV;_bU++){var _bW=$k[--$j];var _bX=$k[--$j];$k[$j++]=_bW;$k[$j++]=_bX;var _bZ=$k[$j-1-$1.colsadd1];if(($f($k[--$j]+_bZ)&3)==0){var _bb=$k[--$j];$k[$j++]=$f(_bb+3)}}$1.n2=$k[--$j];$l()}}$k[$j++]="dark";$k[$j++]=0;$F($1.sym,function(){var _be=$k[--$j];var _bf=$k[--$j];$k[$j++]=$f(_bf+_be)});var _bg=$k[--$j];$1[$k[--$j]]=_bg;var _bj=$1.cols;$1.n4=~~(Math.abs($f($1.dark*100/(_bj*_bj)-50))/5)*10;$k[$j++]=$f($f($f($1.n1+$1.n2)+$1.n3)+$1.n4)};$1.evalmicro=function(){$1.sym=$k[--$j];$1.dkrhs=0;$1.dkbot=0;for(var _br=1,_bq=$f($1.cols-1);_br<=_bq;_br+=1){$1.i=_br;$k[$j++]="dkrhs";$k[$j++]=$1.dkrhs;$k[$j++]=$1.sym;$k[$j++]=$f($1.cols-1);$k[$j++]=$1.i;$1.qmv();var _bw=$k[--$j];var _by=$g($k[--$j],_bw);var _bz=$k[--$j];$1[$k[--$j]]=$f(_bz+_by);$k[$j++]="dkbot";$k[$j++]=$1.dkbot;$k[$j++]=$1.sym;$k[$j++]=$1.i;$k[$j++]=$f($1.cols-1);$1.qmv();var _c5=$k[--$j];var _c7=$g($k[--$j],_c5);var _c8=$k[--$j];$1[$k[--$j]]=$f(_c8+_c7)}if($1.dkrhs<=$1.dkbot){$k[$j++]=-($1.dkrhs*16+$1.dkbot)}else{$k[$j++]=-($1.dkbot*16+$1.dkrhs)}};$1.bestscore=999999999;for(var _cI=0,_cH=$1.masks.length-1;_cI<=_cH;_cI+=1){$1.m=_cI;$1.masksym=$a($1.rows*$1.cols);for(var _cP=0,_cO=$f($1.rows*$1.cols-1);_cP<=_cO;_cP+=1){$1.i=_cP;$p($1.masksym,$1.i,$xo($g($1.pixs,$1.i),$g($g($1.masks,$1.m),$1.i)))}if($1.masks.length!=1){if($eq($1.format,"full")){$k[$j++]=$1.masksym;$1.evalfull();$1.score=$k[--$j]}else{$k[$j++]=$1.masksym;$1.evalmicro();$1.score=$k[--$j]}if($1.score<$1.bestscore){$1.bestsym=$1.masksym;$1.bestmaskval=$1.m;$1.bestscore=$1.score}}else{$1.bestsym=$1.masksym}}$1.pixs=$1.bestsym;if($eq($1.format,"full")){$k[$j++]=$1.pixs;$k[$j++]=8;$k[$j++]=$f($1.cols-8);$1.qmv();var _cq=$k[--$j];$p($k[--$j],_cq,1)}if($eq($1.format,"full")){$1.fmtvals=$a([21522,20773,24188,23371,17913,16590,20375,19104,30660,29427,32170,30877,26159,25368,27713,26998,5769,5054,7399,6608,1890,597,3340,2107,13663,12392,16177,14854,9396,8579,11994,11245]);$k[$j++]="ecid";$x("MLHQ",$1.eclevel);$j--;var _cv=$k[--$j];var _cw=$k[--$j];$k[$j++]=_cv.length;$k[$j++]=_cw;$j--;var _cx=$k[--$j];var _cy=$k[--$j];$k[$j++]=_cx;$k[$j++]=_cy;$j--;var _cz=$k[--$j];$1[$k[--$j]]=_cz;$1.fmtval=$g($1.fmtvals,($1.ecid<<3)+$1.bestmaskval);for(var _d7=0,_d6=$1.formatmap.length-1;_d7<=_d6;_d7+=1){$1.i=_d7;$F($g($1.formatmap,$1.i),function(){var _dC=$k[--$j];$k[$j++]=$1.pixs;$q(_dC);$1.qmv();var _dD=$1.fmtval;var _dF=-(14-$1.i);var _dG=$k[--$j];$p($k[--$j],_dG,(_dF<0?_dD>>>-_dF:_dD<<_dF)&1)})}}if($eq($1.format,"micro")){$1.fmtvals=$a([17477,16754,20011,19228,21934,20633,24512,23287,26515,25252,28157,26826,30328,29519,31766,31009,1758,1001,3248,2439,5941,4610,7515,6252,9480,8255,12134,10833,13539,12756,16013,15290]);$1.symid=$g($g($a([$a([0]),$a([1,2]),$a([3,4]),$a([5,6,7])]),~~($f($1.cols-11)/2)),$1.eclval);$1.fmtval=$g($1.fmtvals,($1.symid<<2)+$1.bestmaskval);for(var _dZ=0,_dY=$1.formatmap.length-1;_dZ<=_dY;_dZ+=1){$1.i=_dZ;$k[$j++]=$1.pixs;$q($g($g($1.formatmap,$1.i),0));$1.qmv();var _df=$1.fmtval;var _dh=-(14-$1.i);var _di=$k[--$j];$p($k[--$j],_di,(_dh<0?_df>>>-_dh:_df<<_dh)&1)}}if($eq($1.format,"rmqr")){$1.fmtvals1=$a([129714,124311,121821,115960,112748,108361,104707,99878,98062,90155,89697,82244,81360,74485,72895,66458,61898,61167,53413,53120,45844,44081,37499,36190,29814,27475,21785,19004,13992,10637,6087,2274,258919,257090,250376,249133,242105,241308,233686,233459,227035,223742,219060,215185,209925,207648,202090,199247,194591,190266,186736,181845,178881,173540,170926,165003,163235,156294,154828,148457,147325,139352,138770,131383]);$1.fmtvals2=$a([133755,136542,142100,144433,149669,153472,158154,161519,167879,168162,175784,176525,183577,184892,191606,193363,196867,204326,204908,212809,213981,220408,221874,228759,230591,236442,239056,244469,247393,252228,255758,260139,942,7307,8897,15844,16752,24149,24607,32570,34322,39223,42877,47192,50380,56297,58787,64134,67798,71667,76217,79516,84488,87341,93031,95298,101738,102991,109573,111392,118708,118929,126683,127486]);$k[$j++]="fmtvalu";$x("MH",$1.eclevel);$j--;var _do=$k[--$j];var _dp=$k[--$j];$k[$j++]=_do.length;$k[$j++]=_dp;$j--;var _dq=$k[--$j];var _dr=$k[--$j];$k[$j++]=_dq;$k[$j++]=_dr;$j--;var _ds=$k[--$j];$1[$k[--$j]]=(_ds<<5)+$1.verind;$1.fmtval1=$g($1.fmtvals1,$1.fmtvalu);$1.fmtval2=$g($1.fmtvals2,$1.fmtvalu);for(var _e3=0,_e2=$1.formatmap.length-1;_e3<=_e2;_e3+=1){$1.i=_e3;$k[$j++]=$1.pixs;$q($g($g($1.formatmap,$1.i),0));$1.qmv();var _e9=$1.fmtval1;var _eB=-(17-$1.i);var _eC=$k[--$j];$p($k[--$j],_eC,(_eB<0?_e9>>>-_eB:_e9<<_eB)&1);$k[$j++]=$1.pixs;$q($g($g($1.formatmap,$1.i),1));$1.qmv();var _eJ=$1.fmtval2;var _eL=-(17-$1.i);var _eM=$k[--$j];$p($k[--$j],_eM,(_eL<0?_eJ>>>-_eL:_eJ<<_eL)&1)}}if($eq($1.format,"full")&&$1.cols>=45){$1.vervals=$a([31892,34236,39577,42195,48118,51042,55367,58893,63784,68472,70749,76311,79154,84390,87683,92361,96236,102084,102881,110507,110734,117786,119615,126325,127568,133589,136957,141498,145311,150283,152622,158308,161089,167017]);$1.verval=$g($1.vervals,~~($f($1.cols-17)/4)-7);for(var _eW=0,_eV=$1.versionmap.length-1;_eW<=_eV;_eW+=1){$1.i=_eW;$F($g($1.versionmap,$1.i),function(){var _eb=$k[--$j];$k[$j++]=$1.pixs;$F(_eb);$1.qmv();var _ec=$1.verval;var _ee=-(17-$1.i);var _ef=$k[--$j];$p($k[--$j],_ef,(_ee<0?_ec>>>-_ee:_ec<<_ee)&1)})}}var _en=new Map([["ren",$0.renmatrix],["pixs",$1.pixs],["pixx",$1.cols],["pixy",$1.rows],["height",$1.rows*2/72],["width",$1.cols*2/72],["opt",$1.options]]);$k[$j++]=_en;if(!$1.dontdraw){$0.renmatrix()}};$0.swissqrcode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.parse=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});var _6=new Map([["parse",$1.parse],["parseonly",true],["parsefnc",false]]);$1.fncvals=_6;$k[$j++]="barcode";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _9=$k[--$j];$1[$k[--$j]]=_9;$1.barlen=$1.barcode.length;delete $1.options["parse"];if($1.barcode.length>997){$k[$j++]="bwipp.swissqrcodeBadLength";$k[$j++]="Swiss QR Code input must not exceed 997 digits";$0.raiseerror()}$p($1.options,"dontdraw",true);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.qrcode();var _H=$k[--$j];$1[$k[--$j]]=_H;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$$.save();var _N=$$.currpos();$$.translate(_N.x,_N.y);var _O=72/25.4;$$.scale(_O,_O);$$.save();$$.newpath();$$.moveto(0,0);$$.lineto(46,0);$$.lineto(46,46);$$.lineto(0,46);$$.closepath();$$.moveto(19.5,19.5);$$.lineto(19.5,26.5);$$.lineto(26.5,26.5);$$.lineto(26.5,19.5);$$.closepath();$$.clip();$$.save();$$.moveto(0,0);var _R=46/$g($1.args,"pixx")/2;$$.scale(_R,_R);$0.renmatrix();$$.restore();$$.restore();$$.translate(19.5,19.5);var _S=7/83;$$.scale(_S,_S);$$.newpath();$$.moveto(6,6);$$.lineto(6,77);$$.lineto(77,77);$$.lineto(77,6);$$.closepath();$$.moveto(49,18);$$.lineto(49,34);$$.lineto(65,34);$$.lineto(65,49);$$.lineto(49,49);$$.lineto(49,65);$$.lineto(34,65);$$.lineto(34,49);$$.lineto(18,49);$$.lineto(18,34);$$.lineto(34,34);$$.lineto(34,18);$$.closepath();$$.setrgbcolor(0,0,0);$$.fill();$$.restore()}};$0.microqrcode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$p($1.options,"dontdraw",true);$p($1.options,"format","micro");$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.qrcode();var _9=$k[--$j];$1[$k[--$j]]=_9;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.rectangularmicroqrcode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$p($1.options,"dontdraw",true);$p($1.options,"format","rmqr");$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.qrcode();var _9=$k[--$j];$1[$k[--$j]]=_9;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.maxicode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.mode=-1;$1.sam=-1;$1.parse=false;$1.parsefnc=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.mode=~~$1.mode;$1.sam=~~$1.sam;var _9=new Map([["parse",$1.parse],["parsefnc",$1.parsefnc],["eci",true]]);$1.fncvals=_9;$k[$j++]="msg";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _C=$k[--$j];$1[$k[--$j]]=_C;$1.msglen=$1.msg.length;if($1.mode==2||$1.mode==3){$1.barcode=$s($1.msglen);for(var _L=0,_K=$1.msglen-1;_L<=_K;_L+=1){$1.i=_L;if($g($1.msg,$1.i)>0){$p($1.barcode,$1.i,$g($1.msg,$1.i))}}$1.barlen=$1.barcode.length;if($eq($G($1.barcode,0,7),"[)>01")){$1.fid=$G($1.barcode,0,9);$1.barcode=$G($1.barcode,9,$1.barlen-9)}else{$1.fid=""}$x($1.barcode,"");$j--;$1.pcode=$k[--$j];$j--;$x($k[--$j],"");$j--;$1.ccode=$k[--$j];$j--;$x($k[--$j],"");$j--;$1.scode=$k[--$j];$j--;$1.barcode=$k[--$j];var _l=$s($1.barcode.length+$1.fid.length);$P(_l,0,$1.fid);$P(_l,$1.fid.length,$1.barcode);$1.barcode=_l;$1.barlen=$1.barcode.length;$k[$j++]=Infinity;var _q=$1.barcode;for(var _r=0,_s=_q.length;_r<_s;_r++){$k[$j++]=$g(_q,_r)}$1.msg=$a();$1.msglen=$1.msg.length}$1.eci=-1;$1.pad=-2;$1.ns=-3;$1.la=-4;$1.lb=-5;$1.sa=-6;$1.sb=-7;$1.sc=-8;$1.sd=-9;$1.se=-10;$1.sa2=-11;$1.sa3=-12;$1.lkc=-13;$1.lkd=-14;$1.lke=-15;$1.pd2=-16;$1.pd3=-17;$1.charmaps=$a([$a([13,"`",192,224,0]),$a(["A","a",193,225,1]),$a(["B","b",194,226,2]),$a(["C","c",195,227,3]),$a(["D","d",196,228,4]),$a(["E","e",197,229,5]),$a(["F","f",198,230,6]),$a(["G","g",199,231,7]),$a(["H","h",200,232,8]),$a(["I","i",201,233,9]),$a(["J","j",202,234,10]),$a(["K","k",203,235,11]),$a(["L","l",204,236,12]),$a(["M","m",205,237,13]),$a(["N","n",206,238,14]),$a(["O","o",207,239,15]),$a(["P","p",208,240,16]),$a(["Q","q",209,241,17]),$a(["R","r",210,242,18]),$a(["S","s",211,243,19]),$a(["T","t",212,244,20]),$a(["U","u",213,245,21]),$a(["V","v",214,246,22]),$a(["W","w",215,247,23]),$a(["X","x",216,248,24]),$a(["Y","y",217,249,25]),$a(["Z","z",218,250,26]),$a([$1.eci,$1.eci,$1.eci,$1.eci,$1.eci]),$a([28,28,28,28,$1.pad]),$a([29,29,29,29,$1.pad]),$a([30,30,30,30,27]),$a([$1.ns,$1.ns,$1.ns,$1.ns,$1.ns]),$a([" ","{",219,251,28]),$a([$1.pad,$1.pad,220,252,29]),$a(['"',"}",221,253,30]),$a(["#","~",222,254,31]),$a(["$",127,223,255,159]),$a(["%",";",170,161,160]),$a(["&","<",172,168,162]),$a(["'","=",177,171,163]),$a([40,">",178,175,164]),$a([41,"?",179,176,165]),$a(["*","[",181,180,166]),$a(["+",92,185,183,167]),$a([",","]",186,184,169]),$a(["-","^",188,187,173]),$a([".","_",189,191,174]),$a(["/"," ",190,138,182]),$a(["0",",",128,139,149]),$a(["1",".",129,140,150]),$a(["2","/",130,141,151]),$a(["3",":",131,142,152]),$a(["4","@",132,143,153]),$a(["5","!",133,144,154]),$a(["6","|",134,145,155]),$a(["7",$1.pd2,135,146,156]),$a(["8",$1.sa2,136,147,157]),$a(["9",$1.sa3,137,148,158]),$a([":",$1.pd3,$1.la,$1.la,$1.la]),$a([$1.sb,$1.sa," "," "," "]),$a([$1.sc,$1.sc,$1.lkc,$1.sc,$1.sc]),$a([$1.sd,$1.sd,$1.sd,$1.lkd,$1.sd]),$a([$1.se,$1.se,$1.se,$1.se,$1.lke]),$a([$1.lb,$1.la,$1.lb,$1.lb,$1.lb])]);$1.charvals=$a([new Map,new Map,new Map,new Map,new Map]);for(var _2j=0,_2i=$1.charmaps.length-1;_2j<=_2i;_2j+=1){$1.i=_2j;$1.encs=$g($1.charmaps,$1.i);for(var _2n=0;_2n<=4;_2n+=1){$1.j=_2n;var _2q=$g($1.encs,$1.j);$k[$j++]=_2q;if($eq($t(_2q),"stringtype")){var _2t=$g($k[--$j],0);$k[$j++]=_2t}$p($g($1.charvals,$1.j),$k[--$j],$1.i)}}$1.seta=$g($1.charvals,0);$1.setb=$g($1.charvals,1);$1.setc=$g($1.charvals,2);$1.setd=$g($1.charvals,3);$1.sete=$g($1.charvals,4);$k[$j++]=Infinity;for(var _3A=0,_3B=$1.msglen+1;_3A<_3B;_3A++){$k[$j++]=0}$1.nseq=$a();for(var _3E=$1.msglen-1;_3E>=0;_3E-=1){$1.i=_3E;var _3H=$g($1.msg,$1.i);if(_3H>=48&&_3H<=57){$p($1.nseq,$1.i,$f($g($1.nseq,$1.i+1)+1))}else{$p($1.nseq,$1.i,0)}}$1.nseq=$G($1.nseq,0,$1.msglen);$1.prefixinset=function(){$k[$j++]=0;for(;;){var _3S=$k[--$j];var _3T=$k[--$j];$k[$j++]=_3T;$k[$j++]=_3S;if(_3S>=_3T.length){break}var _3U=$k[--$j];var _3V=$k[--$j];var _3X=$k[--$j];var _3Y=$g(_3X,$g(_3V,_3U))!==undefined;$k[$j++]=_3X;$k[$j++]=_3V;$k[$j++]=_3U;if(_3Y){var _3Z=$k[--$j];$k[$j++]=$f(_3Z+1)}else{break}}var _3a=$k[--$j];var _3b=$k[--$j];$k[$j++]=_3a;$k[$j++]=_3b;$j--;var _3c=$k[--$j];var _3d=$k[--$j];$k[$j++]=_3c;$k[$j++]=_3d;$j--};$1.enc=function(){var _3e=$k[--$j];$p($1.out,$1.j,$g(_3e,$k[--$j]));$1.j=$1.j+1};$1.out=$a(144);$1.i=0;$1.j=0;$1.cset="seta";for(;;){if($1.i==$1.msglen){if($ne($1.cset,"seta")&&$ne($1.cset,"setb")){$k[$j++]=$1.la;$k[$j++]=$1[$1.cset];$1.enc();$1.cset="seta"}break}for(;;){if($g($1.msg,$1.i)<=-1e6){$k[$j++]=$1.eci;$k[$j++]=$1[$1.cset];$1.enc();var _41=$f(-$g($1.msg,$1.i)-1e6);$k[$j++]=_41;if(_41<=31){var _42=$k[--$j];$k[$j++]=_42&63;$r($a(1))}else{var _44=$k[--$j];$k[$j++]=_44;if(_44<=1023){var _45=$k[--$j];$k[$j++]=_45>>>6&31|32;$k[$j++]=_45&63;$r($a(2))}else{var _47=$k[--$j];$k[$j++]=_47;if(_47<=32767){var _48=$k[--$j];$k[$j++]=_48>>>12&47|48;$k[$j++]=_48>>>6&63;$k[$j++]=_48&63;$r($a(3))}else{var _4A=$k[--$j];$k[$j++]=_4A>>>18&55|56;$k[$j++]=_4A>>>12&63;$k[$j++]=_4A>>>6&63;$k[$j++]=_4A&63;$r($a(4))}}}var _4C=$k[--$j];$P($1.out,$1.j,_4C);$1.j=_4C.length+$1.j;$1.i=$1.i+1;break}if($g($1.nseq,$1.i)>=9){var _4M=$G($1.msg,$1.i,9);$k[$j++]=0;for(var _4N=0,_4O=_4M.length;_4N<_4O;_4N++){var _4Q=$k[--$j];$k[$j++]=$f(_4Q+$f($g(_4M,_4N)-48))*10}var _4R=$k[--$j];$k[$j++]=~~(_4R/10);for(var _4S=0,_4T=4;_4S<_4T;_4S++){var _4U=$k[--$j];$k[$j++]=_4U&63;$k[$j++]=_4U>>>6}$k[$j++]=$g($1[$1.cset],$1.ns);for(var _4Z=0;_4Z<=10;_4Z+=2){var _4a=$k[$j-1-_4Z];$k[$j++]=_4a}$r($a(6));var _4c=$k[--$j];var _4d=$k[--$j];var _4e=$k[--$j];var _4f=$k[--$j];var _4g=$k[--$j];var _4h=$k[--$j];var _4i=$k[--$j];$k[$j++]=_4c;$k[$j++]=_4i;$k[$j++]=_4h;$k[$j++]=_4g;$k[$j++]=_4f;$k[$j++]=_4e;$k[$j++]=_4d;for(var _4j=0,_4k=6;_4j<_4k;_4j++){$j--}$P($1.out,$1.j,$k[--$j]);$1.i=$1.i+9;$1.j=$1.j+6;break}$1.char1=$g($1.msg,$1.i);$k[$j++]="char2";if($1.i+1<$1.msglen){$k[$j++]=$g($1.msg,$1.i+1)}else{$k[$j++]=-99}var _4y=$k[--$j];$1[$k[--$j]]=_4y;$k[$j++]="char3";if($1.i+2<$1.msglen){$k[$j++]=$g($1.msg,$1.i+2)}else{$k[$j++]=-99}var _55=$k[--$j];$1[$k[--$j]]=_55;var _5A=$g($1[$1.cset],$1.char1)!==undefined;if(_5A){$k[$j++]=$1.char1;$k[$j++]=$1[$1.cset];$1.enc();$1.i=$1.i+1;break}var _5I=$g($1.setb,$1.char1)!==undefined;if($eq($1.cset,"seta")&&_5I){var _5L=$g($1.setb,$1.char2)!==undefined;if(_5L){$k[$j++]=$1.lb;$k[$j++]=$1.seta;$1.enc();$1.cset="setb"}else{$k[$j++]=$1.sb;$k[$j++]=$1.seta;$1.enc();$k[$j++]=$1.char1;$k[$j++]=$1.setb;$1.enc();$1.i=$1.i+1}break}var _5W=$g($1.seta,$1.char1)!==undefined;if($eq($1.cset,"setb")&&_5W){var _5X=$1.seta;var _5Y=$1.msg;var _5Z=$1.i;var _5a=$1.msglen;var _5b=$1.i;var _5c=_5a-_5b;var _5d=4;if(4>_5a-_5b){var _=_5c;_5c=_5d;_5d=_}$k[$j++]="p";$k[$j++]=_5X;$k[$j++]=$G(_5Y,_5Z,_5d);$1.prefixinset();var _5f=$k[--$j];$1[$k[--$j]]=_5f;if($1.p==1){$k[$j++]=$1.sa;$k[$j++]=$1.setb;$1.enc();$k[$j++]=$1.char1;$k[$j++]=$1.seta;$1.enc();$1.i=$1.i+1}if($1.p==2){$k[$j++]=$1.sa2;$k[$j++]=$1.setb;$1.enc();$k[$j++]=$1.char1;$k[$j++]=$1.seta;$1.enc();$k[$j++]=$1.char2;$k[$j++]=$1.seta;$1.enc();$1.i=$1.i+2}if($1.p==3){$k[$j++]=$1.sa3;$k[$j++]=$1.setb;$1.enc();$k[$j++]=$1.char1;$k[$j++]=$1.seta;$1.enc();$k[$j++]=$1.char2;$k[$j++]=$1.seta;$1.enc();$k[$j++]=$1.char3;$k[$j++]=$1.seta;$1.enc();$1.i=$1.i+3}if($1.p>=4){$k[$j++]=$1.la;$k[$j++]=$1.setb;$1.enc();$1.cset="seta"}break}var _6A=$g($1.seta,$1.char1)!==undefined;if(_6A){$k[$j++]=$1.la;$k[$j++]=$1[$1.cset];$1.enc();$1.cset="seta";break}var _6G=$g($1.setb,$1.char1)!==undefined;if(_6G){$k[$j++]=$1.lb;$k[$j++]=$1[$1.cset];$1.enc();$1.cset="setb";break}var _6M=$g($1.setc,$1.char1)!==undefined;if(_6M){$1.setx="setc";$1.sx=$1.sc;$1.lkx=$1.lkc}var _6R=$g($1.setd,$1.char1)!==undefined;if(_6R){$1.setx="setd";$1.sx=$1.sd;$1.lkx=$1.lkd}var _6W=$g($1.sete,$1.char1)!==undefined;if(_6W){$1.setx="sete";$1.sx=$1.se;$1.lkx=$1.lke}var _6a=$1[$1.setx];var _6b=$1.msg;var _6c=$1.i;var _6d=$1.msglen;var _6e=$1.i;var _6f=_6d-_6e;var _6g=4;if(4>_6d-_6e){var _=_6f;_6f=_6g;_6g=_}$k[$j++]="p";$k[$j++]=_6a;$k[$j++]=$G(_6b,_6c,_6g);$1.prefixinset();var _6i=$k[--$j];$1[$k[--$j]]=_6i;if($1.p==1){$k[$j++]=$1.sx;$k[$j++]=$1[$1.cset];$1.enc();$k[$j++]=$1.char1;$k[$j++]=$1[$1.setx];$1.enc();$1.i=$1.i+1}if($1.p==2){$k[$j++]=$1.sx;$k[$j++]=$1[$1.cset];$1.enc();$k[$j++]=$1.char1;$k[$j++]=$1[$1.setx];$1.enc();$k[$j++]=$1.sx;$k[$j++]=$1[$1.cset];$1.enc();$k[$j++]=$1.char2;$k[$j++]=$1[$1.setx];$1.enc();$1.i=$1.i+2}if($1.p==3){$k[$j++]=$1.sx;$k[$j++]=$1[$1.cset];$1.enc();$k[$j++]=$1.char1;$k[$j++]=$1[$1.setx];$1.enc();$k[$j++]=$1.sx;$k[$j++]=$1[$1.cset];$1.enc();$k[$j++]=$1.char2;$k[$j++]=$1[$1.setx];$1.enc();$k[$j++]=$1.sx;$k[$j++]=$1[$1.cset];$1.enc();$k[$j++]=$1.char3;$k[$j++]=$1[$1.setx];$1.enc();$1.i=$1.i+3}if($1.p>=4){$k[$j++]=$1.sx;$k[$j++]=$1[$1.cset];$1.enc();$k[$j++]=$1.lkx;$k[$j++]=$1[$1.setx];$1.enc();$1.cset=$1.setx}break}}$1.encmsg=$G($1.out,0,$1.j);$1.padval=$g($1[$1.cset],$1.pad);$1.sami=$a([]);if($1.sam!=-1){$1.sami=$a(2);$p($1.sami,0,$g($1.seta,$1.pad));$p($1.sami,1,(~~($1.sam/10)-1)*8+($1.sam%10-1))}$k[$j++]=Infinity;$q($1.sami);$q($1.encmsg);$1.encmsg=$a();if($1.mode==2||$1.mode==3){var _7v=$Z($s(4),"0000");var _7y=$R($s(4),~~$1.mode,2);$P(_7v,4-_7y.length,_7y);$1.mdb=_7v;var _80=$Z($s(10),"0000000000");var _83=$R($s(10),~~$z($1.ccode),2);$P(_80,10-_83.length,_83);$1.ccb=_80;var _85=$Z($s(10),"0000000000");var _88=$R($s(10),~~$z($1.scode),2);$P(_85,10-_88.length,_88);$1.scb=_85;$1.pcb=$Z($s(36),"000000000000000000000000000000000000");if($1.mode==2){var _8F=$R($s(6),$1.pcode.length,2);$P($1.pcb,6-_8F.length,_8F);var _8J=$R($s(30),~~$z($1.pcode),2);$P($1.pcb,36-_8J.length,_8J)}else{$k[$j++]=Infinity;var _8L=$Z($s(6)," ");$k[$j++]=_8L;$k[$j++]=_8L;$k[$j++]=0;if($1.pcode.length>6){$k[$j++]=$G($1.pcode,0,6)}else{$k[$j++]=$1.pcode}var _8Q=$k[--$j];var _8R=$k[--$j];$P($k[--$j],_8R,_8Q);$F($k[--$j],function(){var _8W=$g($1.seta,$k[--$j]);$k[$j++]=_8W});$1.pccw=$a();for(var _8Y=0;_8Y<=5;_8Y+=1){$1.i=_8Y;var _8e=$R($s(6),$g($1.pccw,$1.i),2);$P($1.pcb,6*$1.i+6-_8e.length,_8e)}}$1.scm=$s(60);$P($1.scm,2,$1.mdb);$P($1.scm,38,$G($1.pcb,0,4));$P($1.scm,30,$G($1.pcb,4,6));$P($1.scm,24,$G($1.pcb,10,6));$P($1.scm,18,$G($1.pcb,16,6));$P($1.scm,12,$G($1.pcb,22,6));$P($1.scm,6,$G($1.pcb,28,6));$P($1.scm,0,$G($1.pcb,34,2));$P($1.scm,52,$G($1.ccb,0,2));$P($1.scm,42,$G($1.ccb,2,6));$P($1.scm,36,$G($1.ccb,8,2));$P($1.scm,54,$G($1.scb,0,6));$P($1.scm,48,$G($1.scb,6,4));$1.pri=$a([0,0,0,0,0,0,0,0,0,0]);for(var _9K=0;_9K<=59;_9K+=1){$1.i=_9K;$1.ps=~~($1.i/6);$1.ep=~~Math.pow(2,5-$1.i%6)*($g($1.scm,$1.i)-48);$p($1.pri,$1.ps,$f($g($1.pri,$1.ps)+$1.ep))}$k[$j++]=Infinity;for(var _9W=0,_9X=84;_9W<_9X;_9W++){$k[$j++]=$1.padval}$1.sec=$a();$P($1.sec,0,$1.encmsg)}if($1.mode==4||$1.mode==5||$1.mode==6||$1.mode==-1){if($1.mode==-1){var _9i=$1.encmsg.length<=77?5:4;$1.mode=_9i}$k[$j++]=Infinity;var _9k=$1.mode==5?78:94;for(var _9l=0,_9m=_9k;_9l<_9m;_9l++){$k[$j++]=$1.padval}$1.cws=$a();$p($1.cws,0,$1.mode);$P($1.cws,1,$1.encmsg);$1.pri=$G($1.cws,0,10);$1.sec=$G($1.cws,10,$1.cws.length-10)}$k[$j++]=Infinity;$k[$j++]=1;for(var _9y=0,_9z=63;_9y<_9z;_9y++){var _A0=$k[--$j];var _A1=_A0*2;$k[$j++]=_A0;$k[$j++]=_A1;if(_A1>=64){var _A2=$k[--$j];$k[$j++]=_A2^67}}$1.rsalog=$a();$1.rslog=$a(64);for(var _A5=1;_A5<=63;_A5+=1){$p($1.rslog,$g($1.rsalog,_A5),_A5)}$1.rsprod=function(){var _A9=$k[--$j];var _AA=$k[--$j];$k[$j++]=_AA;$k[$j++]=_A9;if(_A9!=0&&_AA!=0){var _AD=$g($1.rslog,$k[--$j]);var _AI=$g($1.rsalog,$f(_AD+$g($1.rslog,$k[--$j]))%63);$k[$j++]=_AI}else{$j-=2;$k[$j++]=0}};$1.rscodes=function(){$1.rsnum=$k[--$j];$1.cwb=$k[--$j];$k[$j++]=Infinity;$k[$j++]=1;for(var _AM=0,_AN=$1.rsnum;_AM<_AN;_AM++){$k[$j++]=0}$1.coeffs=$a();for(var _AR=1,_AQ=$1.rsnum;_AR<=_AQ;_AR+=1){$1.i=_AR;$p($1.coeffs,$1.i,$g($1.coeffs,$1.i-1));for(var _AY=$1.i-1;_AY>=1;_AY-=1){$1.j=_AY;$k[$j++]=$1.coeffs;$k[$j++]=$1.j;$k[$j++]=$g($1.coeffs,$1.j-1);$k[$j++]=$g($1.coeffs,$1.j);$k[$j++]=$g($1.rsalog,$1.i);$1.rsprod();var _Ak=$k[--$j];var _Al=$k[--$j];var _Am=$k[--$j];$p($k[--$j],_Am,$xo(_Al,_Ak))}$k[$j++]=$1.coeffs;$k[$j++]=0;$k[$j++]=$g($1.coeffs,0);$k[$j++]=$g($1.rsalog,$1.i);$1.rsprod();var _Au=$k[--$j];var _Av=$k[--$j];$p($k[--$j],_Av,_Au)}$1.coeffs=$G($1.coeffs,0,$1.coeffs.length-1);$k[$j++]=Infinity;for(var _B1=0,_B2=$1.rsnum;_B1<_B2;_B1++){$k[$j++]=0}$1.ecb=$a();for(var _B6=0,_B5=$1.cwb.length-1;_B6<=_B5;_B6+=1){$1.t=$xo($g($1.cwb,_B6),$g($1.ecb,0));for(var _BC=$1.ecb.length-1;_BC>=0;_BC-=1){$1.i=_BC;$1.p=$1.ecb.length-$1.i-1;$k[$j++]=$1.ecb;$k[$j++]=$1.p;$k[$j++]=$1.t;$k[$j++]=$g($1.coeffs,$1.i);$1.rsprod();var _BL=$k[--$j];var _BM=$k[--$j];$p($k[--$j],_BM,_BL);if($1.i>0){$p($1.ecb,$1.p,$xo($g($1.ecb,$1.p+1),$g($1.ecb,$1.p)))}}}$k[$j++]=$1.ecb};$k[$j++]=Infinity;for(var _Ba=0,_BZ=$1.sec.length-1;_Ba<=_BZ;_Ba+=2){$k[$j++]=$g($1.sec,_Ba)}$1.seco=$a();$k[$j++]=Infinity;for(var _Bg=1,_Bf=$1.sec.length-1;_Bg<=_Bf;_Bg+=2){$k[$j++]=$g($1.sec,_Bg)}$1.sece=$a();var _Bl=$1.sec.length==84?20:28;$1.scodes=_Bl;$k[$j++]="secochk";$k[$j++]=$1.seco;$k[$j++]=$1.scodes;$1.rscodes();var _Bo=$k[--$j];$1[$k[--$j]]=_Bo;$k[$j++]="secechk";$k[$j++]=$1.sece;$k[$j++]=$1.scodes;$1.rscodes();var _Bs=$k[--$j];$1[$k[--$j]]=_Bs;$k[$j++]=Infinity;for(var _Bw=0,_Bv=$1.scodes-1;_Bw<=_Bv;_Bw+=1){$k[$j++]=$g($1.secochk,_Bw);$k[$j++]=$g($1.secechk,_Bw)}$1.secchk=$a();$k[$j++]=Infinity;$q($1.pri);$k[$j++]=$1.pri;$k[$j++]=10;$1.rscodes();$q($k[--$j]);$q($1.sec);$q($1.secchk);$1.codewords=$a();$k[$j++]=Infinity;for(var _C8=0,_C9=864;_C8<_C9;_C8++){$k[$j++]=0}$1.mods=$a();for(var _CB=0;_CB<=143;_CB+=1){$1.i=_CB;$k[$j++]=Infinity;var _CG=$R($s(6),$g($1.codewords,$1.i),2);for(var _CH=0,_CI=_CG.length;_CH<_CI;_CH++){$k[$j++]=$g(_CG,_CH)-48}$1.cw=$a();$P($1.mods,6*$1.i+(6-$1.cw.length),$1.cw)}$1.modmap=$a([469,529,286,316,347,346,673,672,703,702,647,676,283,282,313,312,370,610,618,379,378,409,408,439,705,704,559,589,588,619,458,518,640,701,675,674,285,284,315,314,310,340,531,289,288,319,349,348,456,486,517,516,471,470,369,368,399,398,429,428,549,548,579,578,609,608,649,648,679,678,709,708,639,638,669,668,699,698,279,278,309,308,339,338,381,380,411,410,441,440,561,560,591,590,621,620,547,546,577,576,607,606,367,366,397,396,427,426,291,290,321,320,351,350,651,650,681,680,711,710,1,0,31,30,61,60,3,2,33,32,63,62,5,4,35,34,65,64,7,6,37,36,67,66,9,8,39,38,69,68,11,10,41,40,71,70,13,12,43,42,73,72,15,14,45,44,75,74,17,16,47,46,77,76,19,18,49,48,79,78,21,20,51,50,81,80,23,22,53,52,83,82,25,24,55,54,85,84,27,26,57,56,87,86,117,116,147,146,177,176,115,114,145,144,175,174,113,112,143,142,173,172,111,110,141,140,171,170,109,108,139,138,169,168,107,106,137,136,167,166,105,104,135,134,165,164,103,102,133,132,163,162,101,100,131,130,161,160,99,98,129,128,159,158,97,96,127,126,157,156,95,94,125,124,155,154,93,92,123,122,153,152,91,90,121,120,151,150,181,180,211,210,241,240,183,182,213,212,243,242,185,184,215,214,245,244,187,186,217,216,247,246,189,188,219,218,249,248,191,190,221,220,251,250,193,192,223,222,253,252,195,194,225,224,255,254,197,196,227,226,257,256,199,198,229,228,259,258,201,200,231,230,261,260,203,202,233,232,263,262,205,204,235,234,265,264,207,206,237,236,267,266,297,296,327,326,357,356,295,294,325,324,355,354,293,292,323,322,353,352,277,276,307,306,337,336,275,274,305,304,335,334,273,272,303,302,333,332,271,270,301,300,331,330,361,360,391,390,421,420,363,362,393,392,423,422,365,364,395,394,425,424,383,382,413,412,443,442,385,384,415,414,445,444,387,386,417,416,447,446,477,476,507,506,537,536,475,474,505,504,535,534,473,472,503,502,533,532,455,454,485,484,515,514,453,452,483,482,513,512,451,450,481,480,511,510,541,540,571,570,601,600,543,542,573,572,603,602,545,544,575,574,605,604,563,562,593,592,623,622,565,564,595,594,625,624,567,566,597,596,627,626,657,656,687,686,717,716,655,654,685,684,715,714,653,652,683,682,713,712,637,636,667,666,697,696,635,634,665,664,695,694,633,632,663,662,693,692,631,630,661,660,691,690,721,720,751,750,781,780,723,722,753,752,783,782,725,724,755,754,785,784,727,726,757,756,787,786,729,728,759,758,789,788,731,730,761,760,791,790,733,732,763,762,793,792,735,734,765,764,795,794,737,736,767,766,797,796,739,738,769,768,799,798,741,740,771,770,801,800,743,742,773,772,803,802,745,744,775,774,805,804,747,746,777,776,807,806,837,836,867,866,897,896,835,834,865,864,895,894,833,832,863,862,893,892,831,830,861,860,891,890,829,828,859,858,889,888,827,826,857,856,887,886,825,824,855,854,885,884,823,822,853,852,883,882,821,820,851,850,881,880,819,818,849,848,879,878,817,816,847,846,877,876,815,814,845,844,875,874,813,812,843,842,873,872,811,810,841,840,871,870,901,900,931,930,961,960,903,902,933,932,963,962,905,904,935,934,965,964,907,906,937,936,967,966,909,908,939,938,969,968,911,910,941,940,971,970,913,912,943,942,973,972,915,914,945,944,975,974,917,916,947,946,977,976,919,918,949,948,979,978,921,920,951,950,981,980,923,922,953,952,983,982,925,924,955,954,985,984,927,926,957,956,987,986,58,89,88,118,149,148,178,209,208,238,269,268,298,329,328,358,389,388,418,449,448,478,509,508,538,569,568,598,629,628,658,689,688,718,749,748,778,809,808,838,869,868,898,929,928,958,989,988]);$1.pixs=$a(864);$1.j=0;for(var _CT=0,_CS=$1.mods.length-1;_CT<=_CS;_CT+=1){$1.i=_CT;if($g($1.mods,$1.i)==1){$p($1.pixs,$1.j,$g($1.modmap,$1.i));$1.j=$1.j+1}}$k[$j++]=Infinity;var _Cf=$G($1.pixs,0,$1.j);for(var _Cg=0,_Ch=_Cf.length;_Cg<_Ch;_Cg++){$k[$j++]=$g(_Cf,_Cg)}$k[$j++]=28;$k[$j++]=29;$k[$j++]=280;$k[$j++]=281;$k[$j++]=311;$k[$j++]=457;$k[$j++]=488;$k[$j++]=500;$k[$j++]=530;$k[$j++]=670;$k[$j++]=700;$k[$j++]=677;$k[$j++]=707;$1.pixs=$a();var _Cm=new Map([["ren",$0.renmaximatrix],["pixs",$1.pixs],["opt",$1.options]]);$k[$j++]=_Cm;if(!$1.dontdraw){$0.renmaximatrix()}};$0.azteccode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.format="unset";$1.readerinit=false;$1.layers=-1;$1.eclevel=23;$1.ecaddchars=3;$1.raw=false;$1.parse=false;$1.parsefnc=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.layers=~~$1.layers;$1.eclevel=+$1.eclevel;$1.ecaddchars=~~$1.ecaddchars;$1.fn1=-1;var _B=new Map([["parse",$1.parse],["parsefnc",$1.parsefnc],["eci",true],["FNC1",$1.fn1]]);$1.fncvals=_B;$k[$j++]="msg";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _E=$k[--$j];$1[$k[--$j]]=_E;$1.msglen=$1.msg.length;$1.msgbits="";if($ne($1.format,"rune")&&$1.raw){$1.msgbits=$1.barcode}if($ne($1.format,"rune")&&!$1.raw){$1.U=0;$1.L=1;$1.M=2;$1.P=3;$1.D=4;$1.B=5;$1.lu=-2;$1.ll=-3;$1.lm=-4;$1.lp=-5;$1.ld=-6;$1.su=-7;$1.sp=-8;$1.sb=-9;$1.fl=-10;$1.p2=-11;$1.p3=-12;$1.p4=-13;$1.p5=-14;$1.charmaps=$a([$a([$1.sp,$1.sp,$1.sp,$1.fl,$1.sp]),$a([32,32,32,13,32]),$a(["A","a",1,$1.p2,"0"]),$a(["B","b",2,$1.p3,"1"]),$a(["C","c",3,$1.p4,"2"]),$a(["D","d",4,$1.p5,"3"]),$a(["E","e",5,"!","4"]),$a(["F","f",6,'"',"5"]),$a(["G","g",7,"#","6"]),$a(["H","h",8,"$","7"]),$a(["I","i",9,"%","8"]),$a(["J","j",10,"&","9"]),$a(["K","k",11,"'",","]),$a(["L","l",12,40,"."]),$a(["M","m",13,41,$1.lu]),$a(["N","n",27,"*",$1.su]),$a(["O","o",28,"+",-99]),$a(["P","p",29,",",-99]),$a(["Q","q",30,"-",-99]),$a(["R","r",31,".",-99]),$a(["S","s","@","/",-99]),$a(["T","t",92,":",-99]),$a(["U","u","^",";",-99]),$a(["V","v","_","<",-99]),$a(["W","w","`","=",-99]),$a(["X","x","|",">",-99]),$a(["Y","y","~","?",-99]),$a(["Z","z",127,"[",-99]),$a([$1.ll,$1.su,$1.ll,"]",-99]),$a([$1.lm,$1.lm,$1.lu,"{",-99]),$a([$1.ld,$1.ld,$1.lp,"}",-99]),$a([$1.sb,$1.sb,$1.sb,$1.lu,-99])]);$1.charvals=$a([new Map,new Map,new Map,new Map,new Map]);for(var _1K=0,_1J=$1.charmaps.length-1;_1K<=_1J;_1K+=1){$1.i=_1K;$1.encs=$g($1.charmaps,$1.i);for(var _1O=0;_1O<=4;_1O+=1){$1.j=_1O;var _1R=$g($1.encs,$1.j);$k[$j++]=_1R;if($eq($t(_1R),"stringtype")){var _1U=$g($k[--$j],0);$k[$j++]=_1U}$p($g($1.charvals,$1.j),$k[--$j],$1.i)}}var _1e=new Map([["\r\n",$1.p2],[". ",$1.p3],[", ",$1.p4],[": ",$1.p5]]);$1.pcomp=_1e;$1.e=1e4;$1.latlen=$a([$a([0,5,5,10,5,10]),$a([9,0,5,10,5,10]),$a([5,5,0,5,10,10]),$a([5,10,10,0,10,15]),$a([4,9,9,14,0,14]),$a([0,0,0,0,0,0])]);$1.latseq=$a([$a([$a([]),$a([$1.ll]),$a([$1.lm]),$a([$1.lm,$1.lp]),$a([$1.ld]),$a([$1.sb])]),$a([$a([$1.ld,$1.lu]),$a([]),$a([$1.lm]),$a([$1.lm,$1.lp]),$a([$1.ld]),$a([$1.sb])]),$a([$a([$1.lu]),$a([$1.ll]),$a([]),$a([$1.lp]),$a([$1.lu,$1.ld]),$a([$1.sb])]),$a([$a([$1.lu]),$a([$1.lu,$1.ll]),$a([$1.lu,$1.lm]),$a([]),$a([$1.lu,$1.ld]),$a([$1.lu,$1.sb])]),$a([$a([$1.lu]),$a([$1.lu,$1.ll]),$a([$1.lu,$1.lm]),$a([$1.lu,$1.lm,$1.lp]),$a([]),$a([$1.lu,$1.sb])]),$a([$a([$1.lu]),$a([$1.ll]),$a([$1.lm]),$a([]),$a([]),$a([])])]);$1.shftlen=$a([$a([$1.e,$1.e,$1.e,5,$1.e]),$a([5,$1.e,$1.e,5,$1.e]),$a([$1.e,$1.e,$1.e,5,$1.e]),$a([$1.e,$1.e,$1.e,$1.e,$1.e]),$a([4,$1.e,$1.e,4,$1.e])]);$1.charsize=function(){var _3X=$k[--$j];$k[$j++]=_3X;if(_3X>=0){$j--;var _3a=$g($a([5,5,5,5,4,8]),$k[--$j]);$k[$j++]=_3a}else{var _3b=$k[--$j];var _3c=$k[--$j];$k[$j++]=_3b;$k[$j++]=_3c;$j--;var _3d=$k[--$j];$k[$j++]=_3d;if(_3d==$1.fn1){$j--;$k[$j++]=8}else{var _3g=$f(-$k[--$j]-1e6);$k[$j++]=_3g;if(_3g==0){$j--;$k[$j++]=1}var _3h=$k[--$j];$k[$j++]=(~~(Math.log(_3h)/Math.log(10))+1)*4+8}}};$1.curlen=$a([0,$1.e,$1.e,$1.e,$1.e,$1.e]);$1.curseq=$a([$a([]),$a([]),$a([]),$a([]),$a([]),$a([])]);$1.backto=$1.U;$1.lastchar="";$F($1.msg,function(){$1.char=$k[--$j];for(;;){$1.imp=false;var _44=$a([$1.U,$1.L,$1.M,$1.P,$1.D,$1.B]);for(var _45=0,_46=_44.length;_45<_46;_45++){$1.x=$g(_44,_45);var _4E=$a([$1.U,$1.L,$1.M,$1.P,$1.D,$1.B]);for(var _4F=0,_4G=_4E.length;_4F<_4G;_4F++){$1.y=$g(_4E,_4F);if($1.x!=$1.B||$1.y==$1.backto){$1.cost=$f($g($1.curlen,$1.x)+$g($g($1.latlen,$1.x),$1.y));if($1.cost<$g($1.curlen,$1.y)){$p($1.curlen,$1.y,$1.cost);$k[$j++]=$1.curseq;$k[$j++]=$1.y;$k[$j++]=Infinity;$q($g($1.curseq,$1.x));$q($g($g($1.latseq,$1.x),$1.y));var _4l=$a();var _4m=$k[--$j];$p($k[--$j],_4m,_4l);if($1.y==$1.B){$k[$j++]="backto";if($1.x==$1.P||$1.x==$1.D){$k[$j++]=$1.U}else{$k[$j++]=$1.x}var _4w=$k[--$j];$1[$k[--$j]]=_4w}$1.imp=true}}}}if(!$1.imp){break}}$1.nxtlen=$a([$1.e,$1.e,$1.e,$1.e,$1.e,$1.e]);$1.nxtseq=$a(6);var _5D=$a([$1.U,$1.L,$1.M,$1.P,$1.D,$1.B]);for(var _5E=0,_5F=_5D.length;_5E<_5F;_5E++){$1.x=$g(_5D,_5E);for(;;){if($1.char>=0){if($1.x!=$1.B){var _5O=$g($g($1.charvals,$1.x),$1.char)!==undefined;if(!_5O){break}}}else{if($1.x!=$1.P){break}}$k[$j++]="cost";$k[$j++]=$g($1.curlen,$1.x);$k[$j++]=$1.x;$k[$j++]=$1.char;$1.charsize();var _5W=$k[--$j];var _5X=$k[--$j];$1[$k[--$j]]=$f(_5X+_5W);if($1.cost<$g($1.nxtlen,$1.x)){$p($1.nxtlen,$1.x,$1.cost);$k[$j++]=$1.nxtseq;$k[$j++]=$1.x;$k[$j++]=Infinity;$q($g($1.curseq,$1.x));$k[$j++]=$1.char;var _5m=$a();var _5n=$k[--$j];$p($k[--$j],_5n,_5m)}if($1.x==$1.B){break}var _5w=$a([$1.U,$1.L,$1.M,$1.P,$1.D]);for(var _5x=0,_5y=_5w.length;_5x<_5y;_5x++){$1.y=$g(_5w,_5x);if($ne($1.x,$1.y)){$k[$j++]="cost";$k[$j++]=$f($g($1.curlen,$1.y)+$g($g($1.shftlen,$1.y),$1.x));$k[$j++]=$1.x;$k[$j++]=$1.char;$1.charsize();var _6C=$k[--$j];var _6D=$k[--$j];$1[$k[--$j]]=$f(_6D+_6C);if($1.cost<$g($1.nxtlen,$1.y)){$p($1.nxtlen,$1.y,$1.cost);$k[$j++]=$1.nxtseq;$k[$j++]=$1.y;$k[$j++]=Infinity;$q($g($1.curseq,$1.y));var _6T=$1.x==$1.U?$1.su:$1.sp;$k[$j++]=_6T;$k[$j++]=$1.char;var _6V=$a();var _6W=$k[--$j];$p($k[--$j],_6W,_6V)}}}break}}if($ne($1.lastchar,"")&&$1.char>=0){var _6a=$s(2);$p(_6a,0,$1.lastchar);$p(_6a,1,$1.char);$1.pchars=_6a;var _6f=$g($1.pcomp,$1.pchars)!==undefined;if(_6f){if($lt($g($1.curlen,$1.P),$g($1.nxtlen,$1.P))){$p($1.nxtlen,$1.P,$g($1.curlen,$1.P));$k[$j++]=$1.nxtseq;$k[$j++]=$1.P;$k[$j++]=Infinity;$q($g($1.curseq,$1.P));$j--;$k[$j++]=$g($1.pcomp,$1.pchars);var _6z=$a();var _70=$k[--$j];$p($k[--$j],_70,_6z)}}}if($ne($g($1.nxtseq,$1.B),null)){$1.numbytes=0;$F($g($1.nxtseq,$1.B),function(){if($k[--$j]==$1.sb){$k[$j++]=0}else{$k[$j++]=$1.numbytes+1}$1.numbytes=$k[--$j]});if($1.numbytes==32){$p($1.nxtlen,$1.B,$f($g($1.nxtlen,$1.B)+11))}}$1.curlen=$1.nxtlen;$1.curseq=$1.nxtseq;$k[$j++]="lastchar";if($1.char>=0){$k[$j++]=$1.char}else{$k[$j++]=""}var _7M=$k[--$j];$1[$k[--$j]]=_7M});$1.minseq=$1.e;var _7V=$a([$1.U,$1.L,$1.M,$1.P,$1.D,$1.B]);for(var _7W=0,_7X=_7V.length;_7W<_7X;_7W++){$1.i=$g(_7V,_7W);if($g($1.curlen,$1.i)<$1.minseq){$1.minseq=$g($1.curlen,$1.i);$1.seq=$g($1.curseq,$1.i)}}$1.tobin=function(){var _7k=$s($k[--$j]);$k[$j++]=_7k;for(var _7m=0,_7l=_7k.length-1;_7m<=_7l;_7m+=1){var _7n=$k[--$j];$p(_7n,_7m,48);$k[$j++]=_7n}var _7o=$k[--$j];var _7r=$R($s(_7o.length),$k[--$j],2);$P(_7o,_7o.length-_7r.length,_7r);$k[$j++]=_7o};$1.encu=function(){var _7w=$g($g($1.charvals,$1.U),$k[--$j]);$k[$j++]=_7w;$k[$j++]=5;$1.tobin()};$1.encl=function(){var _81=$g($g($1.charvals,$1.L),$k[--$j]);$k[$j++]=_81;$k[$j++]=5;$1.tobin()};$1.encm=function(){var _86=$g($g($1.charvals,$1.M),$k[--$j]);$k[$j++]=_86;$k[$j++]=5;$1.tobin()};$1.encd=function(){var _8B=$g($g($1.charvals,$1.D),$k[--$j]);$k[$j++]=_8B;$k[$j++]=4;$1.tobin()};$1.encp=function(){var _8C=$k[--$j];$k[$j++]=_8C;if(_8C==$1.fn1){$j--;$k[$j++]="00000000"}else{var _8E=$k[--$j];$k[$j++]=_8E;if(_8E<=-1e6){var _8G=$f(-$k[--$j]-1e6);$k[$j++]=_8G;$k[$j++]=_8G;if(_8G==0){$j--;$k[$j++]=1}var _8I=~~(Math.log($k[--$j])/Math.log(10));var _8J=$s((_8I+1)*4+8);$P(_8J,0,"00000");$k[$j++]=_8I;$k[$j++]=_8J;$k[$j++]=_8J;$k[$j++]=_8I+1;$k[$j++]=3;$1.tobin();var _8K=$k[--$j];$P($k[--$j],5,_8K);var _8M=$k[--$j];var _8N=$k[--$j];var _8O=$k[--$j];$k[$j++]=_8M;$k[$j++]=_8O;for(var _8P=_8N;_8P>=0;_8P-=1){var _8Q=$k[--$j];var _8R=$k[--$j];$k[$j++]=_8R;$k[$j++]=~~(_8Q/10);$k[$j++]=_8R;$k[$j++]=_8P*4+8;$k[$j++]=$f(_8Q%10+2);$k[$j++]=4;$1.tobin();var _8S=$k[--$j];var _8T=$k[--$j];$P($k[--$j],_8T,_8S)}$j--}else{var _8Z=$g($g($1.charvals,$1.P),$k[--$j]);$k[$j++]=_8Z;$k[$j++]=5;$1.tobin()}}};$1.encfuncs=$a(["encu","encl","encm","encp","encd"]);$1.addtomsgbits=function(){$1.v=$k[--$j];$P($1.msgbits,$1.j,$1.v);$1.j=$1.j+$1.v.length};$1.state=$1.U;$1.msgbits=$s($1.minseq);$1.i=0;$1.j=0;for(;;){if($1.i>=$1.seq.length){break}if($1.state!=$1.B){$1.char=$g($1.seq,$1.i);$k[$j++]=$1.char;if($1[$g($1.encfuncs,$1.state)]()===true){break}$1.addtomsgbits();$1.i=$1.i+1;if($1.char==$1.su||$1.char==$1.sp){$k[$j++]=$g($1.seq,$1.i);if($1.char==$1.su){$1.encu()}else{$1.encp()}$1.addtomsgbits();$1.i=$1.i+1}if($1.char==$1.lu){$1.state=$1.U}if($1.char==$1.ll){$1.state=$1.L}if($1.char==$1.lm){$1.state=$1.M}if($1.char==$1.lp){$1.state=$1.P}if($1.char==$1.ld){$1.state=$1.D}if($1.char==$1.sb){$1.state=$1.B}}else{$1.numbytes=0;for(;;){if($1.i+$1.numbytes>=$1.seq.length){break}if($g($1.seq,$1.i+$1.numbytes)<0){break}$1.numbytes=$1.numbytes+1}if($1.numbytes<=31){$k[$j++]=$1.numbytes;$k[$j++]=5;$1.tobin();$1.addtomsgbits()}else{$k[$j++]=0;$k[$j++]=5;$1.tobin();$1.addtomsgbits();$k[$j++]=$1.numbytes-31;$k[$j++]=11;$1.tobin();$1.addtomsgbits()}for(var _9b=0,_9c=$1.numbytes;_9b<_9c;_9b++){$k[$j++]=$g($1.seq,$1.i);$k[$j++]=8;$1.tobin();$1.addtomsgbits();$1.i=$1.i+1}if($1.i<$1.seq.length){$1.char=$g($1.seq,$1.i);$1.i=$1.i+1;if($1.char==$1.lu){$1.state=$1.U}if($1.char==$1.ll){$1.state=$1.L}if($1.char==$1.lm){$1.state=$1.M}}}}}$1.metrics=$a([$a(["rune",0,0,0,6]),$a(["compact",1,1,17,6]),$a(["full",1,1,21,6]),$a(["compact",2,0,40,6]),$a(["full",2,1,48,6]),$a(["compact",3,0,51,8]),$a(["full",3,1,60,8]),$a(["compact",4,0,76,8]),$a(["full",4,1,88,8]),$a(["full",5,1,120,8]),$a(["full",6,1,156,8]),$a(["full",7,1,196,8]),$a(["full",8,1,240,8]),$a(["full",9,1,230,10]),$a(["full",10,1,272,10]),$a(["full",11,1,316,10]),$a(["full",12,1,364,10]),$a(["full",13,1,416,10]),$a(["full",14,1,470,10]),$a(["full",15,1,528,10]),$a(["full",16,1,588,10]),$a(["full",17,1,652,10]),$a(["full",18,1,720,10]),$a(["full",19,1,790,10]),$a(["full",20,1,864,10]),$a(["full",21,1,940,10]),$a(["full",22,1,1020,10]),$a(["full",23,0,920,12]),$a(["full",24,0,992,12]),$a(["full",25,0,1066,12]),$a(["full",26,0,1144,12]),$a(["full",27,0,1224,12]),$a(["full",28,0,1306,12]),$a(["full",29,0,1392,12]),$a(["full",30,0,1480,12]),$a(["full",31,0,1570,12]),$a(["full",32,0,1664,12])]);$1.i=0;for(;;){$1.m=$g($1.metrics,$1.i);$1.frmt=$g($1.m,0);$1.mlyr=$g($1.m,1);$1.icap=$g($1.m,2);$1.ncws=$g($1.m,3);$1.bpcw=$g($1.m,4);$1.numecw=~~Math.ceil($f($1.ncws*$1.eclevel/100+$1.ecaddchars));if($1.msgbits.length==0){$1.numecw=0}$1.numdcw=$f($1.ncws-$1.numecw);$1.okay=true;if($ne($1.format,"unset")&&$ne($1.format,$1.frmt)){$1.okay=false}if($1.readerinit&&$1.icap!=1){$1.okay=false}if($1.layers!=-1&&$1.layers!=$1.mlyr){$1.okay=false}if(~~Math.ceil($1.msgbits.length/$1.bpcw)>$1.numdcw){$1.okay=false}if($1.okay){break}$1.i=$1.i+1}$1.layers=$1.mlyr;$1.format=$1.frmt;$1.allzero=function(){var _B6=$k[--$j];$k[$j++]=$eq(_B6,$G("000000000000",0,_B6.length))};$1.allones=function(){var _B8=$k[--$j];$k[$j++]=$eq(_B8,$G("111111111111",0,_B8.length))};$1.cws=$a($1.ncws);$1.m=0;$1.c=0;for(;;){if($1.msgbits.length<=$1.m){break}if($1.msgbits.length-$1.m>=$1.bpcw){$1.cwb=$G($1.msgbits,$1.m,$f($1.bpcw-1));$1.cwf=$G($1.msgbits,$f($f($1.m+$1.bpcw)-1),1);$k[$j++]=$1.cwb;$1.allzero();if($k[--$j]){$1.cwf="1";$1.m=$1.m-1}$k[$j++]=$1.cwb;$1.allones();if($k[--$j]){$1.cwf="0";$1.m=$1.m-1}var _BV=$s(12);$P(_BV,0,$1.cwb);$P(_BV,$f($1.bpcw-1),$1.cwf);$1.cwb=$G(_BV,0,$1.bpcw)}else{$1.cwb=$G($1.msgbits,$1.m,$1.msgbits.length-$1.m);var _Bh=$Z($s(12),"111111111111");$P(_Bh,0,$1.cwb);$1.cwb=$G(_Bh,0,$1.bpcw);$k[$j++]=$1.cwb;$1.allones();if($k[--$j]){$P($1.cwb,$1.cwb.length-1,"0")}}$1.cw=0;for(var _Br=0,_Bq=$f($1.bpcw-1);_Br<=_Bq;_Br+=1){$1.i=_Br;$1.cw=$f($1.cw+~~Math.pow(2,$f($f($1.bpcw-$1.i)-1))*$f($g($1.cwb,$1.i)-48))}$p($1.cws,$1.c,$1.cw);$1.m=$f($1.m+$1.bpcw);$1.c=$1.c+1}$1.cws=$G($1.cws,0,$1.c);$1.rscodes=function(){$1.rspm=$k[--$j];$1.rsgf=$k[--$j];$1.rsnc=$k[--$j];$1.rscws=$k[--$j];$k[$j++]=Infinity;$k[$j++]=1;for(var _CC=0,_CD=$f($1.rsgf-1);_CC<_CD;_CC++){var _CE=$k[--$j];var _CF=_CE*2;$k[$j++]=_CE;$k[$j++]=_CF;if(_CF>=$1.rsgf){var _CI=$k[--$j];$k[$j++]=$xo(_CI,$1.rspm)}}$1.rsalog=$a();$1.rslog=$a($1.rsgf);for(var _CO=1,_CN=$f($1.rsgf-1);_CO<=_CN;_CO+=1){$p($1.rslog,$g($1.rsalog,_CO),_CO)}$1.rsprod=function(){var _CS=$k[--$j];var _CT=$k[--$j];$k[$j++]=_CT;$k[$j++]=_CS;if(_CS!=0&&_CT!=0){var _CW=$g($1.rslog,$k[--$j]);var _Cc=$g($1.rsalog,$f(_CW+$g($1.rslog,$k[--$j]))%$f($1.rsgf-1));$k[$j++]=_Cc}else{$j-=2;$k[$j++]=0}};$k[$j++]=Infinity;$k[$j++]=1;for(var _Ce=0,_Cf=$1.rsnc;_Ce<_Cf;_Ce++){$k[$j++]=0}$1.coeffs=$a();for(var _Cj=1,_Ci=$1.rsnc;_Cj<=_Ci;_Cj+=1){$1.i=_Cj;$p($1.coeffs,$1.i,$g($1.coeffs,$1.i-1));for(var _Cq=$1.i-1;_Cq>=1;_Cq-=1){$1.j=_Cq;$k[$j++]=$1.coeffs;$k[$j++]=$1.j;$k[$j++]=$g($1.coeffs,$1.j-1);$k[$j++]=$g($1.coeffs,$1.j);$k[$j++]=$g($1.rsalog,$1.i);$1.rsprod();var _D2=$k[--$j];var _D3=$k[--$j];var _D4=$k[--$j];$p($k[--$j],_D4,$xo(_D3,_D2))}$k[$j++]=$1.coeffs;$k[$j++]=0;$k[$j++]=$g($1.coeffs,0);$k[$j++]=$g($1.rsalog,$1.i);$1.rsprod();var _DC=$k[--$j];var _DD=$k[--$j];$p($k[--$j],_DD,_DC)}$1.nd=$1.rscws.length;$k[$j++]=Infinity;$F($1.rscws);for(var _DI=0,_DJ=$1.rsnc;_DI<_DJ;_DI++){$k[$j++]=0}$k[$j++]=0;$1.rscws=$a();for(var _DN=0,_DM=$1.nd-1;_DN<=_DM;_DN+=1){$1.k=$xo($g($1.rscws,_DN),$g($1.rscws,$1.nd));for(var _DV=0,_DU=$f($1.rsnc-1);_DV<=_DU;_DV+=1){$1.j=_DV;$k[$j++]=$1.rscws;$k[$j++]=$1.nd+$1.j;$k[$j++]=$g($1.rscws,$1.nd+$1.j+1);$k[$j++]=$1.k;$k[$j++]=$g($1.coeffs,$f($f($1.rsnc-$1.j)-1));$1.rsprod();var _Di=$k[--$j];var _Dj=$k[--$j];var _Dk=$k[--$j];$p($k[--$j],_Dk,$xo(_Dj,_Di))}}$k[$j++]=$G($1.rscws,0,$1.rscws.length-1)};if($eq($1.format,"full")){$1.mode=($f($1.layers-1)<<11)+($1.cws.length-1);if($1.readerinit){$1.mode=$1.mode|1024}$1.mode=$a([($1.mode&61440)>>>12,($1.mode&3840)>>>8,($1.mode&240)>>>4,$1.mode&15]);$k[$j++]="mode";$k[$j++]=$1.mode;$k[$j++]=6;$k[$j++]=16;$k[$j++]=19;$1.rscodes();var _E0=$k[--$j];$1[$k[--$j]]=_E0}if($eq($1.format,"compact")){$1.mode=($f($1.layers-1)<<6)+($1.cws.length-1);if($1.readerinit){$1.mode=$1.mode|32}$1.mode=$a([($1.mode&240)>>>4,$1.mode&15]);$k[$j++]="mode";$k[$j++]=$1.mode;$k[$j++]=5;$k[$j++]=16;$k[$j++]=19;$1.rscodes();var _EB=$k[--$j];$1[$k[--$j]]=_EB}if($eq($1.format,"rune")){$1.mode=~~$z($1.barcode);$1.mode=$a([($1.mode&240)>>>4,$1.mode&15]);$k[$j++]="mode";$k[$j++]=$1.mode;$k[$j++]=5;$k[$j++]=16;$k[$j++]=19;$1.rscodes();var _EJ=$k[--$j];$1[$k[--$j]]=_EJ;$k[$j++]=Infinity;var _EL=$1.mode;for(var _EM=0,_EN=_EL.length;_EM<_EN;_EM++){$k[$j++]=$g(_EL,_EM)^10}$1.mode=$a()}$1.modebits=$s($1.mode.length*4);for(var _EU=0,_ET=$1.modebits.length-1;_EU<=_ET;_EU+=1){$P($1.modebits,_EU,"0")}for(var _EY=0,_EX=$1.mode.length-1;_EY<=_EX;_EY+=1){$1.i=_EY;var _Ee=$R($s(4),$g($1.mode,$1.i),2);$P($1.modebits,4-_Ee.length+4*$1.i,_Ee)}$1.rsparams=$a([$a([]),$a([]),$a([]),$a([]),$a([]),$a([]),$a([64,67]),$a([]),$a([256,301]),$a([]),$a([1024,1033]),$a([]),$a([4096,4201])]);$k[$j++]="cws";$k[$j++]=$1.cws;$k[$j++]=$f($1.ncws-$1.cws.length);$F($g($1.rsparams,$1.bpcw));$1.rscodes();var _F0=$k[--$j];$1[$k[--$j]]=_F0;if($eq($1.format,"full")){$1.databits=$s($f($1.layers*$1.layers*16+$1.layers*112))}else{$1.databits=$s($f($1.layers*$1.layers*16+$1.layers*88))}for(var _FD=0,_FC=$1.databits.length-1;_FD<=_FC;_FD+=1){$P($1.databits,_FD,"0")}for(var _FH=0,_FG=$f($1.ncws-1);_FH<=_FG;_FH+=1){$1.i=_FH;var _FO=$R($s($1.bpcw),$g($1.cws,$1.i),2);$P($1.databits,$f($f($f($1.bpcw-_FO.length)+$1.bpcw*$1.i)+$f($1.databits.length-$1.ncws*$1.bpcw)),_FO)}$1.cmv=function(){var _FW=$k[--$j];var _FX=$k[--$j];$k[$j++]=$f($f(_FX-_FW*$1.size)+$1.mid)};$1.lmv=function(){$1.lbit=$k[--$j];$1.llyr=$k[--$j];$1.lwid=$f($1.fw+$1.llyr*4);$1.ldir=~~(~~($1.lbit/2)/$1.lwid);if($1.ldir==0){$k[$j++]=$f(-~~($f($1.lwid-1)/2)+1+~~($1.lbit/2)%$1.lwid);$k[$j++]=$f($f(~~(($1.fw-1)/2)+$1.llyr*2)+$1.lbit%2);$1.cmv()}if($1.ldir==1){$k[$j++]=$f($f(~~($1.fw/2)+$1.llyr*2)+$1.lbit%2);$k[$j++]=$f(~~($f($1.lwid-1)/2)-1-~~($1.lbit/2)%$1.lwid);$1.cmv()}if($1.ldir==2){$k[$j++]=-$f(-~~($1.lwid/2)+1+~~($1.lbit/2)%$1.lwid);$k[$j++]=-$f($f(~~($1.fw/2)+$1.llyr*2)+$1.lbit%2);$1.cmv()}if($1.ldir==3){$k[$j++]=-$f($f(~~(($1.fw-1)/2)+$1.llyr*2)+$1.lbit%2);$k[$j++]=-$f(~~($1.lwid/2)-1-~~($1.lbit/2)%$1.lwid);$1.cmv()}};if($eq($1.format,"full")){$1.fw=12}else{$1.fw=9}$1.size=$f($f($1.fw+$1.layers*4)+2);$k[$j++]=Infinity;for(var _GC=0,_GD=$1.size*$1.size;_GC<_GD;_GC++){$k[$j++]=-1}$1.pixs=$a();$1.mid=$f(~~($f($1.size-1)/2)*$1.size+~~($f($1.size-1)/2));$1.i=0;for(var _GK=1,_GJ=$1.layers;_GK<=_GJ;_GK+=1){$1.layer=_GK;for(var _GO=0,_GN=($1.fw+$1.layer*4)*8-1;_GO<=_GN;_GO+=1){$1.pos=_GO;$k[$j++]=$1.pixs;$k[$j++]=$1.layer;$k[$j++]=$1.pos;$1.lmv();var _GW=$k[--$j];$p($k[--$j],_GW,$g($1.databits,$1.databits.length-$1.i-1)-48);$1.i=$1.i+1}}if($eq($1.format,"full")){$1.fw=13;$1.size=$f($f($f($1.fw+$1.layers*4)+2)+~~$f($f($1.layers+10.5)/7.5-1)*2);$1.mid=~~($1.size*$1.size/2);$k[$j++]=Infinity;for(var _Gh=0,_Gi=$1.size*$1.size;_Gh<_Gi;_Gh++){$k[$j++]=-2}$1.npixs=$a();for(var _Gm=0,_Gl=~~($1.size/2);_Gm<=_Gl;_Gm+=16){$1.i=_Gm;for(var _Gp=0,_Go=$f($1.size-1);_Gp<=_Go;_Gp+=1){$1.j=_Gp;$k[$j++]=$1.npixs;$k[$j++]=-~~($1.size/2)+$1.j;$k[$j++]=$1.i;$1.cmv();var _Gy=$k[--$j];$P($k[--$j],_Gy,$a([(~~($1.size/2)+$1.j+$1.i+1)%2]));$k[$j++]=$1.npixs;$k[$j++]=-~~($1.size/2)+$1.j;$k[$j++]=-$1.i;$1.cmv();var _H8=$k[--$j];$P($k[--$j],_H8,$a([(~~($1.size/2)+$1.j+$1.i+1)%2]));$k[$j++]=$1.npixs;$k[$j++]=$1.i;$k[$j++]=-~~($1.size/2)+$1.j;$1.cmv();var _HI=$k[--$j];$P($k[--$j],_HI,$a([(~~($1.size/2)+$1.j+$1.i+1)%2]));$k[$j++]=$1.npixs;$k[$j++]=-$1.i;$k[$j++]=-~~($1.size/2)+$1.j;$1.cmv();var _HS=$k[--$j];$P($k[--$j],_HS,$a([(~~($1.size/2)+$1.j+$1.i+1)%2]))}}$1.j=0;for(var _HW=0,_HV=$1.npixs.length-1;_HW<=_HV;_HW+=1){$1.i=_HW;if($g($1.npixs,$1.i)==-2){$p($1.npixs,$1.i,$g($1.pixs,$1.j));$1.j=$1.j+1}}$1.pixs=$1.npixs}$1.fw=~~($1.fw/2);for(var _Hl=-$1.fw,_Hk=$1.fw;_Hl<=_Hk;_Hl+=1){$1.i=_Hl;for(var _Hp=-$1.fw,_Ho=$1.fw;_Hp<=_Ho;_Hp+=1){$1.j=_Hp;$k[$j++]=$1.pixs;$k[$j++]=$1.i;$k[$j++]=$1.j;$1.cmv();if(Math.abs($1.i)>Math.abs($1.j)){$k[$j++]=Math.abs($1.i)}else{$k[$j++]=Math.abs($1.j)}var _Hx=$k[--$j];var _Hy=$k[--$j];$p($k[--$j],_Hy,$f(_Hx+1)%2)}}var _Ia=$a([$a([-($1.fw+1),$1.fw,1]),$a([-($1.fw+1),$1.fw+1,1]),$a([-$1.fw,$1.fw+1,1]),$a([$1.fw+1,$1.fw+1,1]),$a([$1.fw+1,$1.fw,1]),$a([$1.fw+1,-$1.fw,1]),$a([$1.fw,$1.fw+1,0]),$a([$1.fw+1,-($1.fw+1),0]),$a([$1.fw,-($1.fw+1),0]),$a([-$1.fw,-($1.fw+1),0]),$a([-($1.fw+1),-($1.fw+1),0]),$a([-($1.fw+1),-$1.fw,0])]);for(var _Ib=0,_Ic=_Ia.length;_Ib<_Ic;_Ib++){$k[$j++]=$1.pixs;$F($g(_Ia,_Ib));var _If=$k[--$j];var _Ig=$k[--$j];var _Ih=$k[--$j];$k[$j++]=_If;$k[$j++]=_Ih;$k[$j++]=_Ig;$1.cmv();var _Ii=$k[--$j];var _Ij=$k[--$j];$p($k[--$j],_Ii,_Ij)}if($eq($1.format,"full")){$1.modemap=$a([$a([-5,7]),$a([-4,7]),$a([-3,7]),$a([-2,7]),$a([-1,7]),$a([1,7]),$a([2,7]),$a([3,7]),$a([4,7]),$a([5,7]),$a([7,5]),$a([7,4]),$a([7,3]),$a([7,2]),$a([7,1]),$a([7,-1]),$a([7,-2]),$a([7,-3]),$a([7,-4]),$a([7,-5]),$a([5,-7]),$a([4,-7]),$a([3,-7]),$a([2,-7]),$a([1,-7]),$a([-1,-7]),$a([-2,-7]),$a([-3,-7]),$a([-4,-7]),$a([-5,-7]),$a([-7,-5]),$a([-7,-4]),$a([-7,-3]),$a([-7,-2]),$a([-7,-1]),$a([-7,1]),$a([-7,2]),$a([-7,3]),$a([-7,4]),$a([-7,5])])}else{$1.modemap=$a([$a([-3,5]),$a([-2,5]),$a([-1,5]),$a([0,5]),$a([1,5]),$a([2,5]),$a([3,5]),$a([5,3]),$a([5,2]),$a([5,1]),$a([5,0]),$a([5,-1]),$a([5,-2]),$a([5,-3]),$a([3,-5]),$a([2,-5]),$a([1,-5]),$a([0,-5]),$a([-1,-5]),$a([-2,-5]),$a([-3,-5]),$a([-5,-3]),$a([-5,-2]),$a([-5,-1]),$a([-5,0]),$a([-5,1]),$a([-5,2]),$a([-5,3])])}for(var _Jw=0,_Jv=$1.modemap.length-1;_Jw<=_Jv;_Jw+=1){$1.i=_Jw;$k[$j++]=$1.pixs;$F($g($1.modemap,$1.i));$1.cmv();var _K4=$k[--$j];$p($k[--$j],_K4,$g($1.modebits,$1.i)-48)}var _KC=new Map([["ren",$0.renmatrix],["pixs",$1.pixs],["pixx",$1.size],["pixy",$1.size],["height",$1.size*2/72],["width",$1.size*2/72],["opt",$1.options]]);$k[$j++]=_KC;if(!$1.dontdraw){$0.renmatrix()}};$0.azteccodecompact=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$p($1.options,"dontdraw",true);$p($1.options,"format","compact");$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.azteccode();var _9=$k[--$j];$1[$k[--$j]]=_9;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.aztecrune=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$p($1.options,"dontdraw",true);$p($1.options,"format","rune");$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.azteccode();var _9=$k[--$j];$1[$k[--$j]]=_9;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.codeone=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.version="unset";$1.parse=false;$1.parsefnc=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.stype=$eq($G($1.version,0,1),"S");if($1.stype){$1.vals=$a(["1","1010","1100100","1111101000","10011100010000","11000011010100000","11110100001001000000","100110001001011010000000","101111101011110000100000000","111011100110101100101000000000","1001010100000010111110010000000000","1011101001000011101101110100000000000","1110100011010100101001010001000000000000","10010001100001001110011100101010000000000000","10110101111001100010000011110100100000000000000","11100011010111111010100100110001101000000000000000","100011100001101111001001101111110000010000000000000000","101100011010001010111100001011101100010100000000000000000"]);$1.normalize=function(){$1.base=$k[--$j];$1.num=$k[--$j];for(var _C=$1.num.length-1;_C>=1;_C-=1){$1.i=_C;var _D=$1.num;var _E=$1.i;$p(_D,_E-1,$f($g(_D,_E-1)+~~($g($1.num,$1.i)/$1.base)));$p($1.num,$1.i,$g($1.num,$1.i)%$1.base)}for(;;){if($lt($g($1.num,0),$1.base)){break}$k[$j++]=Infinity;$k[$j++]=0;$F($1.num);$1.num=$a();$p($1.num,0,$f($g($1.num,0)+~~($g($1.num,1)/$1.base)));$p($1.num,1,$g($1.num,1)%$1.base)}$k[$j++]=Infinity;$1.i=true;var _f=$1.num;for(var _g=0,_h=_f.length;_g<_h;_g++){var _i=$g(_f,_g);$k[$j++]=_i;if(_i==0&&$1.i){$j--}else{$1.i=false}}$1.num=$a();if($1.num.length==0){$1.num=$a([0])}$k[$j++]=$1.num};$1.bigadd=function(){var _o=$k[--$j];var _p=$k[--$j];$1.offset=Math.abs(_o.length-_p.length);if(_o.length<_p.length){var _=_o;_o=_p;_p=_}$1.a=_o;$1.b=_p;for(var _s=0,_r=$1.b.length-1;_s<=_r;_s+=1){var _t=$1.a;var _u=$1.offset;$p(_t,_s+_u,$f($g(_t,_s+_u)+$g($1.b,_s)))}$k[$j++]=$1.a};$1.barlen=$1.barcode.length;$1.v=$a([1]);for(var _13=0,_12=$1.barlen-1;_13<=_12;_13+=1){$1.i=_13;$k[$j++]=Infinity;$F($g($1.vals,$1.i),function(){var _17=$k[--$j];$k[$j++]=$f(_17-48)*$f($g($1.barcode,$1.barlen-$1.i-1)-48)});var _1C=$a();$k[$j++]=_1C;$k[$j++]=$1.v;$1.bigadd();$1.v=$k[--$j]}$k[$j++]="v";$k[$j++]=$1.v;$k[$j++]=2;$1.normalize();var _1G=$k[--$j];$1[$k[--$j]]=_1G;$k[$j++]=Infinity;for(var _1J=0,_1K=(5-$1.v.length%5)%5;_1J<_1K;_1J++){$k[$j++]=0}$q($1.v);$1.v=$a();$1.cws=$a(~~($1.v.length/5));for(var _1R=0,_1Q=$1.cws.length-1;_1R<=_1Q;_1R+=1){$1.i=_1R;var _1U=$G($1.v,$1.i*5,5);$k[$j++]=0;for(var _1V=0,_1W=_1U.length;_1V<_1W;_1V++){var _1Y=$k[--$j];$k[$j++]=$f(_1Y+$g(_1U,_1V))*2}$p($1.cws,$1.i,~~($k[--$j]/2))}$1.metrics=$a([$a(["S-10",8,11,10,4,4,1,99,99,99]),$a(["S-20",8,21,20,8,8,1,99,99,99]),$a(["S-30",8,31,30,12,12,1,99,99,99])])}else{$1.fnc1=-1;$1.fnc3=-2;var _1k=new Map([["parse",$1.parse],["parsefnc",$1.parsefnc],["eci",true],["FNC1",$1.fnc1],["FNC3",$1.fnc3]]);$1.fncvals=_1k;$k[$j++]="msg";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _1n=$k[--$j];$1[$k[--$j]]=_1n;$1.msglen=$1.msg.length;$1.lC=-5;$1.lB=-6;$1.lX=-7;$1.lT=-8;$1.lD=-9;$1.unl=-10;$1.fnc2=-11;$1.fnc4=-12;$1.sft1=-13;$1.sft2=-14;$1.sft3=-15;$1.eci=-16;$1.pad=-17;$1.fnc1lD=-18;$1.unlcw=255;$1.eciesc=92;var _1q=$1.msg;$k[$j++]="numecis";$k[$j++]=0;for(var _1r=0,_1s=_1q.length;_1r<_1s;_1r++){if($g(_1q,_1r)<=-1e6){var _1u=$k[--$j];$k[$j++]=$f(_1u+1)}}var _1v=$k[--$j];$1[$k[--$j]]=_1v;if($1.numecis>0){$1.msgtmp=$a($f($f($1.msg.length*2+$1.numecis*6)+2));$p($1.msgtmp,0,$1.pad);$p($1.msgtmp,1,$1.eciesc);$1.j=2;for(var _27=0,_26=$1.msg.length-1;_27<=_26;_27+=1){var _29=$g($1.msg,_27);$k[$j++]=_29;if(_29<=-1e6){var _2D=$G($R($s(7),-$k[--$j],10),1,6);for(var _2E=0,_2F=_2D.length;_2E<_2F;_2E++){$k[$j++]=$g(_2D,_2E)}$r($a(6));$P($1.msgtmp,$1.j+1,$k[--$j]);$p($1.msgtmp,$1.j,$1.eciesc);$1.j=$1.j+7}else{var _2P=$k[--$j];$k[$j++]=_2P;if(_2P!=$1.eciesc){$p($1.msgtmp,$1.j,$k[--$j]);$1.j=$1.j+1}else{$j--;$p($1.msgtmp,$1.j,$1.eciesc);$p($1.msgtmp,$1.j+1,$1.eciesc);$1.j=$1.j+2}}}$1.msg=$G($1.msgtmp,0,$1.j);$1.msglen=$1.msg.length}$1.metrics=$a([$a(["A",16,18,16,10,10,1,4,99,6]),$a(["B",22,22,20,19,16,1,4,99,8]),$a(["C",28,32,28,44,26,1,4,22,11]),$a(["D",40,42,36,91,44,1,4,16,16]),$a(["E",52,54,48,182,70,1,4,22,22]),$a(["F",70,76,68,370,140,2,4,22,31]),$a(["G",104,98,88,732,280,4,6,21,47]),$a(["H",148,134,120,1480,560,8,6,20,69]),$a(["T-16",16,17,16,10,10,1,99,99,99]),$a(["T-32",16,33,32,24,16,1,99,99,99]),$a(["T-48",16,49,48,38,22,1,99,99,99])]);$1.fullcws=$a([]);var _2t=$1.metrics;for(var _2u=0,_2v=_2t.length;_2u<_2v;_2u++){$1.m=$g(_2t,_2u);$1.vers=$g($1.m,0);$1.dcws=$g($1.m,4);$1.okay=true;if($eq($1.version,"unset")){if($1.vers.length!=1){$1.okay=false}}else{if($ne($1.version,$1.vers)){$1.okay=false}}if($1.okay){$k[$j++]=Infinity;$q($1.fullcws);$k[$j++]=$1.dcws;$1.fullcws=$a()}}$k[$j++]=Infinity;for(var _39=0,_3A=1480;_39<_3A;_39++){$k[$j++]=1e4}$1.numremcws=$a();var _3C=$1.fullcws;for(var _3D=0,_3E=_3C.length;_3D<_3E;_3D++){$p($1.numremcws,$f($g(_3C,_3D)-1),1)}for(var _3H=1478;_3H>=0;_3H-=1){$1.i=_3H;if($g($1.numremcws,$1.i)!=1){$p($1.numremcws,$1.i,$f($g($1.numremcws,$1.i+1)+1))}}$k[$j++]=Infinity;for(var _3Q=0;_3Q<=128;_3Q+=1){$k[$j++]=_3Q;$k[$j++]=_3Q+1}$k[$j++]=$1.pad;$k[$j++]=129;for(var _3S=0;_3S<=99;_3S+=1){var _3U=$R($s(2),_3S,10);var _3W=$Z($s(2),"00");$P(_3W,2-_3U.length,_3U);$k[$j++]=_3W;$k[$j++]=_3S+130}var _3e=$a([$1.lC,$1.lB,$1.fnc1,$1.fnc2,$1.fnc3,$1.fnc4,$1.fnc1lD]);$k[$j++]=229;for(var _3f=0,_3g=_3e.length;_3f<_3g;_3f++){var _3j=$f($k[--$j]+1);$k[$j++]=$g(_3e,_3f);$k[$j++]=_3j;$k[$j++]=_3j}$j--;$k[$j++]=$1.lX;$k[$j++]=238;$k[$j++]=$1.lT;$k[$j++]=239;$1.Avals=$d();$k[$j++]=Infinity;var _3n=$1.Avals;for(var _3s=_3n.size,_3r=_3n.keys(),_3q=0;_3q<_3s;_3q++){var _3o=_3r.next().value;$k[$j++]=_3o;$k[$j++]=_3n.get(_3o);$k[$j++]=Infinity;var _3t=$k[--$j];var _3u=$k[--$j];$k[$j++]=_3t;$k[$j++]=_3u;var _3v=$a();$k[$j++]=_3v}$1.Avals=$d();$k[$j++]=Infinity;$k[$j++]=$1.sft1;$k[$j++]=0;$k[$j++]=$1.sft2;$k[$j++]=1;$k[$j++]=$1.sft3;$k[$j++]=2;$k[$j++]=32;$k[$j++]=3;for(var _40=48;_40<=57;_40+=1){$k[$j++]=_40;$k[$j++]=_40-44}for(var _41=65;_41<=90;_41+=1){$k[$j++]=_41;$k[$j++]=_41-51}$1.CNvals=$d();$k[$j++]=Infinity;for(var _43=0;_43<=31;_43+=1){$k[$j++]=_43;$k[$j++]=_43}$1.C1vals=$d();$k[$j++]=Infinity;for(var _45=33;_45<=47;_45+=1){$k[$j++]=_45;$k[$j++]=_45-33}for(var _46=58;_46<=64;_46+=1){$k[$j++]=_46;$k[$j++]=_46-43}for(var _47=91;_47<=95;_47+=1){$k[$j++]=_47;$k[$j++]=_47-69}$k[$j++]=$1.fnc1;$k[$j++]=27;$k[$j++]=$1.fnc2;$k[$j++]=28;$k[$j++]=$1.fnc3;$k[$j++]=29;$k[$j++]=$1.fnc4;$k[$j++]=30;$k[$j++]=$1.pad;$k[$j++]=31;$1.C2vals=$d();$k[$j++]=Infinity;for(var _4E=96;_4E<=127;_4E+=1){$k[$j++]=_4E;$k[$j++]=_4E-96}$1.C3vals=$d();$k[$j++]=Infinity;var _4G=$1.CNvals;for(var _4L=_4G.size,_4K=_4G.keys(),_4J=0;_4J<_4L;_4J++){var _4H=_4K.next().value;$k[$j++]=_4H;$k[$j++]=_4G.get(_4H);$k[$j++]=Infinity;var _4M=$k[--$j];var _4N=$k[--$j];$k[$j++]=_4M;$k[$j++]=_4N;var _4O=$a();$k[$j++]=_4O}var _4P=$1.C1vals;for(var _4U=_4P.size,_4T=_4P.keys(),_4S=0;_4S<_4U;_4S++){var _4Q=_4T.next().value;$k[$j++]=_4Q;$k[$j++]=_4P.get(_4Q);$k[$j++]=Infinity;var _4V=$k[--$j];var _4W=$k[--$j];$k[$j++]=_4V;$k[$j++]=$g($1.CNvals,$1.sft1);$k[$j++]=_4W;var _4a=$a();$k[$j++]=_4a}var _4b=$1.C2vals;for(var _4g=_4b.size,_4f=_4b.keys(),_4e=0;_4e<_4g;_4e++){var _4c=_4f.next().value;$k[$j++]=_4c;$k[$j++]=_4b.get(_4c);$k[$j++]=Infinity;var _4h=$k[--$j];var _4i=$k[--$j];$k[$j++]=_4h;$k[$j++]=$g($1.CNvals,$1.sft2);$k[$j++]=_4i;var _4m=$a();$k[$j++]=_4m}var _4n=$1.C3vals;for(var _4s=_4n.size,_4r=_4n.keys(),_4q=0;_4q<_4s;_4q++){var _4o=_4r.next().value;$k[$j++]=_4o;$k[$j++]=_4n.get(_4o);$k[$j++]=Infinity;var _4t=$k[--$j];var _4u=$k[--$j];$k[$j++]=_4t;$k[$j++]=$g($1.CNvals,$1.sft3);$k[$j++]=_4u;var _4y=$a();$k[$j++]=_4y}$1.Cvals=$d();$k[$j++]=Infinity;$k[$j++]=$1.sft1;$k[$j++]=0;$k[$j++]=$1.sft2;$k[$j++]=1;$k[$j++]=$1.sft3;$k[$j++]=2;$k[$j++]=32;$k[$j++]=3;for(var _53=48;_53<=57;_53+=1){$k[$j++]=_53;$k[$j++]=_53-44}for(var _54=97;_54<=122;_54+=1){$k[$j++]=_54;$k[$j++]=_54-83}$1.TNvals=$d();$k[$j++]=Infinity;for(var _56=0;_56<=31;_56+=1){$k[$j++]=_56;$k[$j++]=_56}$1.T1vals=$d();$k[$j++]=Infinity;for(var _58=33;_58<=47;_58+=1){$k[$j++]=_58;$k[$j++]=_58-33}for(var _59=58;_59<=64;_59+=1){$k[$j++]=_59;$k[$j++]=_59-43}for(var _5A=91;_5A<=95;_5A+=1){$k[$j++]=_5A;$k[$j++]=_5A-69}$k[$j++]=$1.fnc1;$k[$j++]=27;$k[$j++]=$1.fnc2;$k[$j++]=28;$k[$j++]=$1.fnc3;$k[$j++]=29;$k[$j++]=$1.fnc4;$k[$j++]=30;$k[$j++]=$1.pad;$k[$j++]=31;$1.T2vals=$d();$k[$j++]=Infinity;$k[$j++]=96;$k[$j++]=0;for(var _5H=65;_5H<=90;_5H+=1){$k[$j++]=_5H;$k[$j++]=_5H-64}for(var _5I=123;_5I<=127;_5I+=1){$k[$j++]=_5I;$k[$j++]=_5I-96}$1.T3vals=$d();$k[$j++]=Infinity;var _5K=$1.TNvals;for(var _5P=_5K.size,_5O=_5K.keys(),_5N=0;_5N<_5P;_5N++){var _5L=_5O.next().value;$k[$j++]=_5L;$k[$j++]=_5K.get(_5L);$k[$j++]=Infinity;var _5Q=$k[--$j];var _5R=$k[--$j];$k[$j++]=_5Q;$k[$j++]=_5R;var _5S=$a();$k[$j++]=_5S}var _5T=$1.T1vals;for(var _5Y=_5T.size,_5X=_5T.keys(),_5W=0;_5W<_5Y;_5W++){var _5U=_5X.next().value;$k[$j++]=_5U;$k[$j++]=_5T.get(_5U);$k[$j++]=Infinity;var _5Z=$k[--$j];var _5a=$k[--$j];$k[$j++]=_5Z;$k[$j++]=$g($1.TNvals,$1.sft1);$k[$j++]=_5a;var _5e=$a();$k[$j++]=_5e}var _5f=$1.T2vals;for(var _5k=_5f.size,_5j=_5f.keys(),_5i=0;_5i<_5k;_5i++){var _5g=_5j.next().value;$k[$j++]=_5g;$k[$j++]=_5f.get(_5g);$k[$j++]=Infinity;var _5l=$k[--$j];var _5m=$k[--$j];$k[$j++]=_5l;$k[$j++]=$g($1.TNvals,$1.sft2);$k[$j++]=_5m;var _5q=$a();$k[$j++]=_5q}var _5r=$1.T3vals;for(var _5w=_5r.size,_5v=_5r.keys(),_5u=0;_5u<_5w;_5u++){var _5s=_5v.next().value;$k[$j++]=_5s;$k[$j++]=_5r.get(_5s);$k[$j++]=Infinity;var _5x=$k[--$j];var _5y=$k[--$j];$k[$j++]=_5x;$k[$j++]=$g($1.TNvals,$1.sft3);$k[$j++]=_5y;var _62=$a();$k[$j++]=_62}$1.Tvals=$d();for(var _64=128;_64<=255;_64+=1){$1.i=_64;$k[$j++]=$1.Avals;$k[$j++]=$1.i;$k[$j++]=Infinity;$q($g($1.Avals,$1.fnc4));$q($g($1.Avals,$1.i-128));var _6D=$a();var _6E=$k[--$j];$p($k[--$j],_6E,_6D);$k[$j++]=$1.Cvals;$k[$j++]=$1.i;$k[$j++]=Infinity;$q($g($1.Cvals,$1.fnc4));$q($g($1.Cvals,$1.i-128));var _6O=$a();var _6P=$k[--$j];$p($k[--$j],_6P,_6O);$k[$j++]=$1.Tvals;$k[$j++]=$1.i;$k[$j++]=Infinity;$q($g($1.Tvals,$1.fnc4));$q($g($1.Tvals,$1.i-128));var _6Z=$a();var _6a=$k[--$j];$p($k[--$j],_6a,_6Z)}$k[$j++]=Infinity;$k[$j++]=13;$k[$j++]=0;$k[$j++]=42;$k[$j++]=1;$k[$j++]=62;$k[$j++]=2;$k[$j++]=32;$k[$j++]=3;for(var _6c=48;_6c<=57;_6c+=1){$k[$j++]=_6c;$k[$j++]=_6c-44}for(var _6d=65;_6d<=90;_6d+=1){$k[$j++]=_6d;$k[$j++]=_6d-51}$1.Xvals=$d();$k[$j++]=Infinity;var _6f=$1.Xvals;for(var _6k=_6f.size,_6j=_6f.keys(),_6i=0;_6i<_6k;_6i++){var _6g=_6j.next().value;$k[$j++]=_6g;$k[$j++]=_6f.get(_6g);$k[$j++]=Infinity;var _6l=$k[--$j];var _6m=$k[--$j];$k[$j++]=_6l;$k[$j++]=_6m;var _6n=$a();$k[$j++]=_6n}$1.Xvals=$d();$k[$j++]=Infinity;for(var _6p=0;_6p<=255;_6p+=1){$k[$j++]=_6p;$k[$j++]=_6p}$1.Bvals=$d();$k[$j++]=Infinity;var _6r=$1.Bvals;for(var _6w=_6r.size,_6v=_6r.keys(),_6u=0;_6u<_6w;_6u++){var _6s=_6v.next().value;$k[$j++]=_6s;$k[$j++]=_6r.get(_6s);$k[$j++]=Infinity;var _6x=$k[--$j];var _6y=$k[--$j];$k[$j++]=_6x;$k[$j++]=_6y;var _6z=$a();$k[$j++]=_6z}$1.Bvals=$d();$1.encvals=$a([$1.Avals,$1.Cvals,$1.Tvals,$1.Xvals,-1,$1.Bvals]);$k[$j++]=Infinity;for(var _78=0,_79=$1.msglen;_78<_79;_78++){$k[$j++]=0}$k[$j++]=0;$1.numD=$a();$k[$j++]=Infinity;for(var _7C=0,_7D=$1.msglen;_7C<_7D;_7C++){$k[$j++]=0}$k[$j++]=9999;$1.nextXterm=$a();$k[$j++]=Infinity;for(var _7G=0,_7H=$1.msglen;_7G<_7H;_7G++){$k[$j++]=0}$k[$j++]=9999;$1.nextNonX=$a();for(var _7K=$1.msglen-1;_7K>=0;_7K-=1){$1.i=_7K;$1.barchar=$g($1.msg,$1.i);if($1.barchar>=48&&$1.barchar<=57){$p($1.numD,$1.i,$f($g($1.numD,$1.i+1)+1))}if($1.barchar==13||$1.barchar==42||$1.barchar==62){$p($1.nextXterm,$1.i,0)}else{$p($1.nextXterm,$1.i,$f($g($1.nextXterm,$1.i+1)+1))}var _7h=$g($1.Xvals,$1.barchar)!==undefined;if(!_7h){$p($1.nextNonX,$1.i,0)}else{$p($1.nextNonX,$1.i,$f($g($1.nextNonX,$1.i+1)+1))}}$k[$j++]=Infinity;var _7p=$1.nextXterm;for(var _7q=0,_7r=_7p.length;_7q<_7r;_7q++){var _7s=$g(_7p,_7q);$k[$j++]=_7s;if(_7s>1e4){$j--;$k[$j++]=1e4}}$1.nextXterm=$a();$k[$j++]=Infinity;var _7u=$1.nextNonX;for(var _7v=0,_7w=_7u.length;_7v<_7w;_7v++){var _7x=$g(_7u,_7v);$k[$j++]=_7x;if(_7x>1e4){$j--;$k[$j++]=1e4}}$1.nextNonX=$a();$1.isD=function(){$k[$j++]=$1.char>=48&&$1.char<=57};$1.isC=function(){var _83=$g($1.CNvals,$1.char)!==undefined;$k[$j++]=_83};$1.isT=function(){var _86=$g($1.TNvals,$1.char)!==undefined;$k[$j++]=_86};$1.isX=function(){var _89=$g($1.Xvals,$1.char)!==undefined;$k[$j++]=_89};$1.isEA=function(){$k[$j++]=$1.char>127};$1.isFN=function(){$k[$j++]=$1.char<0};$1.XtermFirst=function(){var _8C=$k[--$j];$k[$j++]=$lt($g($1.nextXterm,_8C),$g($1.nextNonX,_8C))};$1.A=0;$1.C=1;$1.T=2;$1.X=3;$1.D=4;$1.B=5;$1.lookup=function(){$1.ac=1;$1.cc=2;$1.tc=2;$1.xc=2;$1.bc=3;if($1.mode==$1.A){$1.ac=0;$1.cc=1;$1.tc=1;$1.xc=1;$1.bc=2}if($1.mode==$1.C){$1.cc=0}if($1.mode==$1.T){$1.tc=0}if($1.mode==$1.X){$1.xc=0}if($1.mode==$1.B){$1.bc=0}for(var _8R=0,_8S=1;_8R<_8S;_8R++){$1.k=0;for(;;){if($1.i+$1.k==$1.msglen){var _8a=$a([$1.ac,$1.cc,$1.tc,$1.xc]);$k[$j++]=true;for(var _8b=0,_8c=_8a.length;_8b<_8c;_8b++){var _8f=$k[--$j];$k[$j++]=_8f&&$1.bc<=Math.ceil($g(_8a,_8b))}if($k[--$j]){$k[$j++]=$1.B;break}var _8m=$a([$1.cc,$1.tc,$1.xc,$1.bc]);$k[$j++]=true;for(var _8n=0,_8o=_8m.length;_8n<_8o;_8n++){var _8r=$k[--$j];$k[$j++]=_8r&&$1.ac<=Math.ceil($g(_8m,_8n))}if($k[--$j]){$k[$j++]=$1.A;break}var _8w=$a([$1.tc,$1.xc]);$k[$j++]=true;for(var _8x=0,_8y=_8w.length;_8x<_8y;_8x++){var _91=$k[--$j];$k[$j++]=_91&&Math.ceil($1.cc)<=Math.ceil($g(_8w,_8x))}if($k[--$j]){$k[$j++]=$1.C;break}var _95=$a([$1.xc]);$k[$j++]=true;for(var _96=0,_97=_95.length;_96<_97;_96++){var _9A=$k[--$j];$k[$j++]=_9A&&Math.ceil($1.tc)<=Math.ceil($g(_95,_96))}if($k[--$j]){$k[$j++]=$1.T;break}$k[$j++]=$1.X;break}$1.char=$g($1.msg,$1.i+$1.k);$k[$j++]="ac";$k[$j++]=$1.ac;$1.isD();if($k[--$j]){var _9K=$k[--$j];$k[$j++]=$f(_9K+1/2)}else{$1.isEA();if($k[--$j]){var _9M=$k[--$j];$k[$j++]=Math.ceil(_9M)+2}else{var _9N=$k[--$j];$k[$j++]=Math.ceil(_9N)+1}}var _9O=$k[--$j];$1[$k[--$j]]=_9O;$k[$j++]="cc";$k[$j++]=$1.cc;$1.isC();if($k[--$j]){var _9S=$k[--$j];$k[$j++]=$f(_9S+.66666667)}else{$1.isEA();if($k[--$j]){var _9U=$k[--$j];$k[$j++]=$f(_9U+2.66666667)}else{var _9V=$k[--$j];$k[$j++]=$f(_9V+1.33333334)}}var _9W=$k[--$j];$1[$k[--$j]]=_9W;$k[$j++]="tc";$k[$j++]=$1.tc;$1.isT();if($k[--$j]){var _9a=$k[--$j];$k[$j++]=$f(_9a+.66666667)}else{$1.isEA();if($k[--$j]){var _9c=$k[--$j];$k[$j++]=$f(_9c+2.66666667)}else{var _9d=$k[--$j];$k[$j++]=$f(_9d+1.33333334)}}var _9e=$k[--$j];$1[$k[--$j]]=_9e;$k[$j++]="xc";$k[$j++]=$1.xc;$1.isX();if($k[--$j]){var _9i=$k[--$j];$k[$j++]=$f(_9i+.66666667)}else{$1.isEA();if($k[--$j]){var _9k=$k[--$j];$k[$j++]=$f(_9k+4.33333334)}else{var _9l=$k[--$j];$k[$j++]=$f(_9l+3.33333334)}}var _9m=$k[--$j];$1[$k[--$j]]=_9m;$k[$j++]="bc";$k[$j++]=$1.bc;$1.isFN();if($k[--$j]){var _9q=$k[--$j];$k[$j++]=$f(_9q+3)}else{var _9r=$k[--$j];$k[$j++]=$f(_9r+1)}var _9s=$k[--$j];$1[$k[--$j]]=_9s;if($1.k>=3){var _9z=$a([$1.ac,$1.cc,$1.tc,$1.xc]);$k[$j++]=true;for(var _A0=0,_A1=_9z.length;_A0<_A1;_A0++){var _A4=$k[--$j];$k[$j++]=_A4&&$1.bc+1<=Math.ceil($g(_9z,_A0))}if($k[--$j]){$k[$j++]=$1.B;break}var _AB=$a([$1.cc,$1.tc,$1.xc,$1.bc]);$k[$j++]=true;for(var _AC=0,_AD=_AB.length;_AC<_AD;_AC++){var _AG=$k[--$j];$k[$j++]=_AG&&$1.ac+1<=Math.ceil($g(_AB,_AC))}if($k[--$j]){$k[$j++]=$1.A;break}var _AN=$a([$1.ac,$1.cc,$1.xc,$1.bc]);$k[$j++]=true;for(var _AO=0,_AP=_AN.length;_AO<_AP;_AO++){var _AS=$k[--$j];$k[$j++]=_AS&&Math.ceil($1.tc)+1<=Math.ceil($g(_AN,_AO))}if($k[--$j]){$k[$j++]=$1.T;break}var _AX=$a([$1.ac,$1.tc]);$k[$j++]=true;for(var _AY=0,_AZ=_AX.length;_AY<_AZ;_AY++){var _Ac=$k[--$j];$k[$j++]=_Ac&&Math.ceil($1.cc)+1<=Math.ceil($g(_AX,_AY))}if($k[--$j]){if(Math.ceil($1.cc)=21){$1.Dbits=$a([1,1,1,1]);$1.mode=$1.D;break}var _BR=$g($1.numD,$1.i);if(_BR>=13&&$f(_BR+$1.i)==$1.msglen){$1.Dbits=$a([1,1,1,1]);$1.mode=$1.D;break}if($g($1.numD,$1.i)>=2){var _BZ=$s(2);$p(_BZ,0,$g($1.msg,$1.i));$p(_BZ,1,$g($1.msg,$1.i+1));$k[$j++]=$g($1.Avals,_BZ);$1.addtocws();$1.i=$1.i+2;break}if($g($1.msg,$1.i)==$1.fnc1){if($g($1.numD,$1.i+1)>=15){$k[$j++]=$g($1.Avals,$1.fnc1lD);$1.addtocws();$1.i=$1.i+1;$1.Dbits=$a([]);$1.mode=$1.D;break}var _By=$g($1.numD,$1.i+1);if(_By>=7&&$f($f(_By+$1.i)+1)==$1.msglen){$k[$j++]=$g($1.Avals,$1.fnc1lD);$1.addtocws();$1.i=$1.i+1;$1.Dbits=$a([]);$1.mode=$1.D;break}}$k[$j++]="newmode";$1.lookup();var _C7=$k[--$j];$1[$k[--$j]]=_C7;if($1.newmode!=$1.mode){$k[$j++]=$g($1.Avals,$g($a([-1,$1.lC,$1.lT,$1.lX,$1.lD,$1.lB]),$1.newmode));$1.addtocws();$1.mode=$1.newmode;break}$k[$j++]=$g($1.Avals,$g($1.msg,$1.i));$1.addtocws();$1.i=$1.i+1;break}};$1.CTXvalstocws=function(){$1.in=$k[--$j];$k[$j++]=Infinity;for(var _CV=0,_CU=$1.in.length-1;_CV<=_CU;_CV+=3){var _CX=$G($1.in,_CV,3);$k[$j++]=0;for(var _CY=0,_CZ=_CX.length;_CY<_CZ;_CY++){var _Cb=$k[--$j];$k[$j++]=$f(_Cb+$g(_CX,_CY))*40}var _Cd=~~($k[--$j]/40)+1;$k[$j++]=~~(_Cd/256);$k[$j++]=_Cd%256}$r($a($m()));var _Cg=$k[--$j];var _Ch=$k[--$j];$k[$j++]=_Cg;$k[$j++]=_Ch;$j--};$1.encCTX=function(){$1.p=0;$1.ctxvals=$a(2220);for(;;){if($1.i==$1.msglen){break}if($1.p%3==0){if($g($1.numD,$1.i)>=12){$k[$j++]=$G($1.ctxvals,0,$1.p);$1.CTXvalstocws();$1.addtocws();$k[$j++]=$a([$1.unlcw]);$1.addtocws();$1.mode=$1.A;break}var _Cx=$g($1.numD,$1.i);if(_Cx>=8&&$f(_Cx+$1.i)==$1.msglen){$k[$j++]=$G($1.ctxvals,0,$1.p);$1.CTXvalstocws();$1.addtocws();$k[$j++]=$a([$1.unlcw]);$1.addtocws();$1.mode=$1.A;break}if($1.mode==$1.X){var _DC=$g($1.Xvals,$g($1.msg,$1.i))!==undefined;if(!_DC){$k[$j++]=$G($1.ctxvals,0,$1.p);$1.CTXvalstocws();$1.addtocws();if($g($1.numremcws,$1.j)!=1||$g($1.msg,$1.i)>127){$k[$j++]=$a([$1.unlcw]);$1.addtocws()}$1.mode=$1.A;break}if($1.i+1<$1.msglen){var _DV=$g($1.Xvals,$g($1.msg,$1.i+1))!==undefined;if(!_DV){break}if($1.i+2<$1.msglen){var _Dc=$g($1.Xvals,$g($1.msg,$1.i+2))!==undefined;if(!_Dc){break}}}}else{$1.lookup();if($k[--$j]!=$1.mode){$k[$j++]=$G($1.ctxvals,0,$1.p);$1.CTXvalstocws();$1.addtocws();$k[$j++]=$a([$1.unlcw]);$1.addtocws();$1.mode=$1.A;break}}if($1.msglen-$1.i<=3){$1.remcws=$g($1.numremcws,$1.j+~~($1.p/3)*2);$k[$j++]=Infinity;var _Dv=$G($1.msg,$1.i,$1.msglen-$1.i);for(var _Dw=0,_Dx=_Dv.length;_Dw<_Dx;_Dw++){var _Dy=$g(_Dv,_Dw);var _E2=$g($g($1.encvals,$1.mode),_Dy)!==undefined;$k[$j++]=_Dy;if(_E2){$q($g($g($1.encvals,$1.mode),$k[--$j]))}else{$j--;$k[$j++]=-1;$k[$j++]=-1;$k[$j++]=-1;$k[$j++]=-1}}$1.remvals=$a();if($1.remcws==2&&$1.remvals.length==3){$k[$j++]=Infinity;$q($G($1.ctxvals,0,$1.p));$q($1.remvals);var _EF=$a();$k[$j++]=_EF;$1.CTXvalstocws();$1.addtocws();$1.mode=$1.A;$1.i=$1.msglen;break}if($1.remcws==2&&$1.remvals.length==2&&$1.mode!=$1.X){$k[$j++]=Infinity;$q($G($1.ctxvals,0,$1.p));$q($1.remvals);$q($g($g($1.encvals,$1.mode),$1.sft1));var _EV=$a();$k[$j++]=_EV;$1.CTXvalstocws();$1.addtocws();$1.mode=$1.A;$1.i=$1.msglen;break}if($1.remcws==2&&$1.remvals.length==1){$k[$j++]=$G($1.ctxvals,0,$1.p);$1.CTXvalstocws();$1.addtocws();$k[$j++]=$a([$1.unlcw]);$1.addtocws();$k[$j++]=$g($1.Avals,$g($1.msg,$1.i));$1.addtocws();$1.mode=$1.A;$1.i=$1.msglen;break}if($1.remcws==1&&$1.remvals.length==1){$k[$j++]=$G($1.ctxvals,0,$1.p);$1.CTXvalstocws();$1.addtocws();$k[$j++]=$g($1.Avals,$g($1.msg,$1.i));$1.addtocws();$1.mode=$1.A;$1.i=$1.msglen;break}}}var _F4=$g($g($1.encvals,$1.mode),$g($1.msg,$1.i));$P($1.ctxvals,$1.p,_F4);$1.p=_F4.length+$1.p;$1.i=$1.i+1}if($1.mode!=$1.A){for(;;){if($1.p%3==0){break}$1.i=$1.i-1;$1.p=$1.p-$g($g($1.encvals,$1.mode),$g($1.msg,$1.i)).length}$k[$j++]=Infinity;$q($G($1.ctxvals,0,$1.p));var _FO=$a();$k[$j++]=_FO;$1.CTXvalstocws();$1.addtocws();$k[$j++]=$a([$1.unlcw]);$1.addtocws();$1.mode=$1.A;if($1.i!=$1.msglen){if($g($1.numD,$1.i)>=2){var _FX=$s(2);$p(_FX,0,$g($1.msg,$1.i));$p(_FX,1,$g($1.msg,$1.i+1));$k[$j++]=$g($1.Avals,_FX);$1.addtocws();$1.i=$1.i+2}else{$k[$j++]=$g($1.Avals,$g($1.msg,$1.i));$1.addtocws();$1.i=$1.i+1}}}};$1.encD=function(){for(;;){if($g($1.numD,$1.i)<3){$1.Drem=(8-$1.Dbits.length%8)%8;$1.remcws=$g($1.numremcws,$1.j+~~($1.Dbits.length/8));if(($f($g($1.numremcws,$1.j+~~($1.Dbits.length/8)-1)-1)==0&&$1.Drem==0||$1.remcws==1&&$1.Drem!=0)&&$1.i==$1.msglen){if($1.Drem==4||$1.Drem==6){$k[$j++]=Infinity;$q($1.Dbits);$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$1.Dbits=$a()}if($1.Drem==2||$1.Drem==6){$k[$j++]=Infinity;$q($1.Dbits);$k[$j++]=0;$k[$j++]=1;$1.Dbits=$a()}break}if(($1.i==$1.msglen-1&&$g($1.numD,$1.i)==1||$1.i==$1.msglen-2&&$g($1.numD,$1.i)==2)&&$1.remcws==1&&$1.Drem==0){break}if(!($1.i==$1.msglen-1&&$g($1.numD,$1.i)==1&&$1.remcws==1&&($1.Drem==4||$1.Drem==6))){$k[$j++]=Infinity;$q($1.Dbits);$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$1.Dbits=$a();$1.Drem=(8-$1.Dbits.length%8)%8}if($1.Drem==4||$1.Drem==6){if($g($1.numD,$1.i)>=1){$k[$j++]=Infinity;$q($1.Dbits);$k[$j++]=$f($f($g($1.msg,$1.i)-48)+1);$k[$j++]=4;$1.tobin();$q($k[--$j]);$1.Dbits=$a();$1.i=$1.i+1}else{$k[$j++]=Infinity;$q($1.Dbits);$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$1.Dbits=$a()}$1.Drem=$1.Drem-4}if($1.Drem==2){$k[$j++]=Infinity;$q($1.Dbits);$k[$j++]=0;$k[$j++]=1;$1.Dbits=$a();$1.Drem=0}break}$k[$j++]=Infinity;$q($1.Dbits);var _Gu=$G($1.msg,$1.i,3);$k[$j++]=0;for(var _Gv=0,_Gw=_Gu.length;_Gv<_Gw;_Gv++){var _Gy=$k[--$j];$k[$j++]=$f(_Gy+$f($g(_Gu,_Gv)-48))*10}var _Gz=$k[--$j];$k[$j++]=~~(_Gz/10)+1;$k[$j++]=10;$1.tobin();$q($k[--$j]);$1.Dbits=$a();$1.i=$1.i+3}$k[$j++]=Infinity;for(var _H5=0,_H4=$1.Dbits.length-1;_H5<=_H4;_H5+=8){var _H7=$G($1.Dbits,_H5,8);$k[$j++]=0;for(var _H8=0,_H9=_H7.length;_H8<_H9;_H8++){var _HB=$k[--$j];$k[$j++]=$f(_HB+$g(_H7,_H8))*2}var _HC=$k[--$j];$k[$j++]=~~(_HC/2)}$r($a($m()));var _HF=$k[--$j];var _HG=$k[--$j];$k[$j++]=_HF;$k[$j++]=_HG;$j--;$1.addtocws();$1.mode=$1.A};$1.encB=function(){$1.p=0;$1.bvals=$a(1480);for(;;){if($1.i==$1.msglen){break}if($g($1.msg,$1.i)<0){break}$1.lookup();if($k[--$j]!=$1.mode){break}$p($1.bvals,$1.p,$g($1.msg,$1.i));$1.p=$1.p+1;$1.i=$1.i+1}$1.remcws=$f($g($1.numremcws,$1.j+$1.p)-1);$k[$j++]=Infinity;if($1.remcws==0&&$1.i==$1.msglen){$k[$j++]=0}else{if($1.p<250){$k[$j++]=$1.p}else{$k[$j++]=~~($1.p/250)+249;$k[$j++]=$1.p%250}}$q($G($1.bvals,0,$1.p));$1.bvals=$a();$k[$j++]=$1.bvals;$1.addtocws();$1.mode=$1.A};$1.cws=$a(1480);$1.mode=$1.A;$1.i=0;$1.j=0;for(;;){if($1.i>=$1.msglen){break}if($1[$g($a(["encA","encCTX","encCTX","encCTX","encD","encB"]),$1.mode)]()===true){break}}$1.cws=$G($1.cws,0,$1.j)}$1.i=0;for(;;){$1.m=$g($1.metrics,$1.i);$1.vers=$g($1.m,0);$1.rows=$g($1.m,1);$1.cols=$g($1.m,2);$1.dcol=$g($1.m,3);$1.dcws=$g($1.m,4);$1.rscw=$g($1.m,5);$1.rsbl=$g($1.m,6);$1.riso=$g($1.m,7);$1.risi=$g($1.m,8);$1.risl=$g($1.m,9);$1.dcpb=~~($1.dcws/$1.rsbl);$1.ecpb=~~($1.rscw/$1.rsbl);$1.okay=true;if($ne($1.version,"unset")&&$ne($1.version,$1.vers)){$1.okay=false}if($1.cws.length>$1.dcws){$1.okay=false}if($1.okay){break}$1.i=$1.i+1}if(!$1.stype){$k[$j++]=Infinity;$q($1.cws);for(var _Ib=0,_Ic=$f($1.dcws-$1.cws.length);_Ib<_Ic;_Ib++){$k[$j++]=129}$1.cws=$a()}else{$k[$j++]=Infinity;for(var _Ig=0,_Ih=$f($1.dcws-$1.cws.length);_Ig<_Ih;_Ig++){$k[$j++]=0}$q($1.cws);$1.cws=$a()}var _Il=$g($1.options,"debugcws")!==undefined;if(_Il){$k[$j++]="bwipp.debugcws";$k[$j++]=$1.cws;$0.raiseerror()}$1.cwbs=$a($1.rsbl);$1.ecbs=$a($1.rsbl);for(var _It=0,_Is=$f($1.rsbl-1);_It<=_Is;_It+=1){$1.i=_It;$1.cwb=$a($1.dcpb);for(var _Iy=0,_Ix=$1.dcpb-1;_Iy<=_Ix;_Iy+=1){$1.j=_Iy;$p($1.cwb,$1.j,$g($1.cws,$f($1.j*$1.rsbl+$1.i)))}$p($1.cwbs,$1.i,$1.cwb)}var _JA=$1.stype?32:256;$1.gf=_JA;$1["gf-1"]=$1.gf-1;var _JD=$1.stype?37:301;$1.pm=_JD;$k[$j++]=Infinity;$k[$j++]=1;for(var _JF=0,_JG=$1["gf-1"];_JF<_JG;_JF++){var _JH=$k[--$j];var _JI=_JH*2;$k[$j++]=_JH;$k[$j++]=_JI;if(_JI>=$1.gf){var _JL=$k[--$j];$k[$j++]=_JL^$1.pm}}$1.rsalog=$a();$1.rslog=$a($1.gf);for(var _JR=1,_JQ=$1["gf-1"];_JR<=_JQ;_JR+=1){$p($1.rslog,$g($1.rsalog,_JR),_JR)}$1.rsprod=function(){var _JV=$k[--$j];var _JW=$k[--$j];$k[$j++]=_JW;$k[$j++]=_JV;if(_JV!=0&&_JW!=0){var _JZ=$g($1.rslog,$k[--$j]);var _Jf=$g($1.rsalog,$f(_JZ+$g($1.rslog,$k[--$j]))%$1["gf-1"]);$k[$j++]=_Jf}else{$j-=2;$k[$j++]=0}};$k[$j++]=Infinity;$k[$j++]=1;for(var _Jh=0,_Ji=$1.ecpb;_Jh<_Ji;_Jh++){$k[$j++]=0}$1.coeffs=$a();for(var _Jm=0,_Jl=$1.ecpb-1;_Jm<=_Jl;_Jm+=1){$1.i=_Jm;$p($1.coeffs,$1.i+1,$g($1.coeffs,$1.i));for(var _Jt=$1.i;_Jt>=1;_Jt-=1){$1.j=_Jt;$k[$j++]=$1.coeffs;$k[$j++]=$1.j;$k[$j++]=$g($1.coeffs,$1.j-1);$k[$j++]=$g($1.coeffs,$1.j);$k[$j++]=$g($1.rsalog,$1.i);$1.rsprod();var _K5=$k[--$j];var _K6=$k[--$j];var _K7=$k[--$j];$p($k[--$j],_K7,$xo(_K6,_K5))}$k[$j++]=$1.coeffs;$k[$j++]=0;$k[$j++]=$g($1.coeffs,0);$k[$j++]=$g($1.rsalog,$1.i);$1.rsprod();var _KF=$k[--$j];var _KG=$k[--$j];$p($k[--$j],_KG,_KF)}$1.coeffs=$G($1.coeffs,0,$1.coeffs.length-1);for(var _KN=0,_KM=$1.cwbs.length-1;_KN<=_KM;_KN+=1){$1.i=_KN;$k[$j++]=Infinity;$q($g($1.cwbs,$1.i));for(var _KS=0,_KT=$1.ecpb;_KS<_KT;_KS++){$k[$j++]=0}$1.rscws=$a();for(var _KX=0,_KW=$1.dcpb-1;_KX<=_KW;_KX+=1){$1.m=_KX;$1.k=$g($1.rscws,$1.m);for(var _Kd=0,_Kc=$1.ecpb-1;_Kd<=_Kc;_Kd+=1){$1.j=_Kd;$k[$j++]=$1.rscws;$k[$j++]=$1.m+$1.j+1;$k[$j++]=$g($1.coeffs,$1.ecpb-$1.j-1);$k[$j++]=$1.k;$1.rsprod();var _Kq=$k[--$j];var _Kr=$k[--$j];$p($k[--$j],_Kr,$xo(_Kq,$g($1.rscws,$1.m+$1.j+1)))}}$p($1.ecbs,$1.i,$G($1.rscws,$1.dcpb,$1.ecpb))}$k[$j++]=Infinity;$q($1.cws);for(var _L1=0,_L2=$1.rscw;_L1<_L2;_L1++){$k[$j++]=0}$1.cws=$a();for(var _L6=0,_L5=$f($1.rscw-1);_L6<=_L5;_L6+=1){$1.i=_L6;$p($1.cws,$f($1.dcws+$1.i),$g($g($1.ecbs,$1.i%$1.rsbl),~~($1.i/$1.rsbl)))}var _LK=$1.stype?5:8;$1.mmat=$a($f($1.dcws+$1.rscw)*_LK);$1.r=0;$1.c=0;var _LN=$1.stype?2:1;for(var _LQ=0,_LR=_LN,_LP=$1.cws.length-1;_LR<0?_LQ>=_LP:_LQ<=_LP;_LQ+=_LR){$1.i=_LQ;if(!$1.stype){var _LU=$Z($s(8),"00000000");var _LZ=$R($s(8),$g($1.cws,$1.i),2);$P(_LU,8-_LZ.length,_LZ);$k[$j++]=_LU;$k[$j++]=Infinity;var _La=$k[--$j];var _Lb=$k[--$j];$k[$j++]=_La;$F(_Lb,function(){var _Lc=$k[--$j];$k[$j++]=$f(_Lc-48)});var _Ld=$a();$1.top=$G(_Ld,0,4);$1.bot=$G(_Ld,4,4)}else{var _Lh=$Z($s(5),"00000");var _Lm=$R($s(5),$g($1.cws,$1.i),2);$P(_Lh,5-_Lm.length,_Lm);$k[$j++]=_Lh;$k[$j++]=Infinity;var _Ln=$k[--$j];var _Lo=$k[--$j];$k[$j++]=_Ln;$F(_Lo,function(){var _Lp=$k[--$j];$k[$j++]=$f(_Lp-48)});$1.c1=$a();var _Ls=$Z($s(5),"00000");var _Lx=$R($s(5),$g($1.cws,$1.i+1),2);$P(_Ls,5-_Lx.length,_Lx);$k[$j++]=_Ls;$k[$j++]=Infinity;var _Ly=$k[--$j];var _Lz=$k[--$j];$k[$j++]=_Ly;$F(_Lz,function(){var _M0=$k[--$j];$k[$j++]=$f(_M0-48)});$1.c2=$a();$k[$j++]=Infinity;$q($G($1.c1,0,3));$q($G($1.c2,0,2));$1.top=$a();$k[$j++]=Infinity;$q($G($1.c1,3,2));$q($G($1.c2,2,3));$1.bot=$a()}$P($1.mmat,$f($1.r*$1.dcol+$1.c),$1.top);$P($1.mmat,$f(($1.r+1)*$1.dcol+$1.c),$1.bot);$1.c=$1.c+$1.top.length;if($1.c==$1.dcol){$1.c=0;$1.r=$1.r+2}}$1.mmv=function(){var _MS=$k[--$j];var _MT=$k[--$j];$k[$j++]=$f(_MT+_MS*$1.cols)};$k[$j++]=Infinity;for(var _MW=0,_MX=$1.rows*$1.cols;_MW<_MX;_MW++){$k[$j++]=-1}$1.pixs=$a();var _N3=$a([function(){for(var _Ma=0,_Mb=$1.cols;_Ma<_Mb;_Ma++){$k[$j++]=0}},function(){for(var _Md=0,_Me=$1.cols;_Md<_Me;_Md++){$k[$j++]=1}},function(){$k[$j++]=0;for(var _Mg=0,_Mh=$f($1.cols-2);_Mg<_Mh;_Mg++){$k[$j++]=1}$k[$j++]=0},function(){$k[$j++]=0;$k[$j++]=1;for(var _Mj=0,_Mk=$f($1.cols-4);_Mj<_Mk;_Mj++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0},function(){for(var _Mm=0,_Mn=~~($f($1.cols-1)/2);_Mm<_Mn;_Mm++){$k[$j++]=-1}$k[$j++]=1;for(var _Mp=0,_Mq=~~($f($1.cols-1)/2);_Mp<_Mq;_Mp++){$k[$j++]=-1}},function(){for(var _Ms=0,_Mt=~~($f($1.cols-1)/2);_Ms<_Mt;_Ms++){$k[$j++]=-1}$k[$j++]=0;for(var _Mv=0,_Mw=~~($f($1.cols-1)/2);_Mv<_Mw;_Mv++){$k[$j++]=-1}},function(){$k[$j++]=1;for(var _My=0,_Mz=$f($1.cols-2);_My<_Mz;_My++){$k[$j++]=0}$k[$j++]=1},function(){$k[$j++]=1;$k[$j++]=0;for(var _N1=0,_N2=$f($1.cols-4);_N1<_N2;_N1++){$k[$j++]=1}$k[$j++]=0;$k[$j++]=1}]);$1.artifact=_N3;var _N4=new Map([["A","121343"],["B","12134343"],["C","12121343"],["D","1213434343"],["E","1212134343"],["F","1212121343"],["G","121213434343"],["H","121212134343"],["S","56661278"],["T","5666666666127878"]]);$1.cpat=$g(_N4,$G($1.vers,0,1));$k[$j++]=$1.pixs;$k[$j++]=0;$k[$j++]=~~($f($1.rows-$1.cpat.length)/2);$1.mmv();$k[$j++]=Infinity;$F($1.cpat,function(){if($g($1.artifact,$f($k[--$j]-49))()===true){return true}});var _NF=$a();var _NG=$k[--$j];$P($k[--$j],_NG,_NF);for(var _NK=0,_NJ=$f($1.risl-1);_NK<=_NJ;_NK+=1){$1.i=_NK;for(var _NP=$1.riso,_NQ=$1.risi,_NO=$f($1.cols-1);_NQ<0?_NP>=_NO:_NP<=_NO;_NP+=_NQ){$1.j=_NP;var _NS=$1.i%12==0?1:0;var _NT=$a([1,_NS]);$k[$j++]=_NT;$k[$j++]=_NT;$k[$j++]=$1.pixs;$k[$j++]=$1.j;$k[$j++]=$1.i;$1.mmv();var _NX=$k[--$j];var _NY=$k[--$j];$P(_NY,_NX,$k[--$j]);if($1.i!=$f($1.risl-1)){$k[$j++]=$1.pixs;$k[$j++]=$f($f($1.cols-$1.j)-2);$k[$j++]=$f($f($1.rows-$1.i)-1);$1.mmv();var _Nh=$k[--$j];var _Ni=$k[--$j];$P(_Ni,_Nh,$k[--$j])}else{$j--}}}var _ON=new Map([["A",$a([$a([12,5])])],["B",$a([$a([16,7])])],["C",$a([$a([26,12])])],["D",$a([])],["E",$a([$a([26,23])])],["F",$a([$a([26,32]),$a([70,32]),$a([26,34]),$a([70,34])])],["G",$a([$a([27,48]),$a([69,48])])],["H",$a([$a([26,70]),$a([66,70]),$a([106,70]),$a([26,72]),$a([66,72]),$a([106,72])])],["S-10",$a([])],["S-20",$a([$a([10,4])])],["S-30",$a([$a([15,4]),$a([15,6])])],["T-16",$a([$a([8,10])])],["T-32",$a([$a([16,10]),$a([16,12])])],["T-48",$a([$a([24,10]),$a([24,12]),$a([24,14])])]]);$F($g(_ON,$1.vers),function(){var _OR=$k[--$j];$k[$j++]=$1.pixs;$q(_OR);$1.mmv();var _OS=$k[--$j];$p($k[--$j],_OS,1)});$1.j=0;for(var _OW=0,_OV=$1.pixs.length-1;_OW<=_OV;_OW+=1){$1.i=_OW;if($g($1.pixs,$1.i)==-1){$p($1.pixs,$1.i,$g($1.mmat,$1.j));$1.j=$1.j+1}}var _Om=new Map([["ren",$0.renmatrix],["pixs",$1.pixs],["pixx",$1.cols],["pixy",$1.rows],["height",$1.rows/72*2],["width",$1.cols/72*2],["opt",$1.options]]);$k[$j++]=_Om;if(!$1.dontdraw){$0.renmatrix()}};$0.hanxin=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.version="unset";$1.eclevel="unset";$1.parse=false;$1.parsefnc=false;$1.mask=-1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.mask=~~$1.mask;var _8=new Map([["parse",$1.parse],["parsefnc",$1.parsefnc]]);$1.fncvals=_8;$k[$j++]="msg";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _B=$k[--$j];$1[$k[--$j]]=_B;$1.msglen=$1.msg.length;if($eq($1.eclevel,"unset")){$1.eclevel="L2"}$1.tobin=function(){var _G=$s($k[--$j]);$k[$j++]=_G;for(var _I=0,_H=_G.length-1;_I<=_H;_I+=1){var _J=$k[--$j];$p(_J,_I,48);$k[$j++]=_J}var _K=$k[--$j];var _N=$R($s(_K.length),$k[--$j],2);$P(_K,_K.length-_N.length,_N);$k[$j++]=_K};$1.bits=$s(4+13+$1.msglen*8);$P($1.bits,0,"0011");$k[$j++]=$1.bits;$k[$j++]=4;$k[$j++]=$1.msglen;$k[$j++]=13;$1.tobin();var _T=$k[--$j];var _U=$k[--$j];$P($k[--$j],_U,_T);for(var _Y=0,_X=$1.msglen-1;_Y<=_X;_Y+=1){$1.i=_Y;$k[$j++]=$1.bits;$k[$j++]=17+$1.i*8;$k[$j++]=$g($1.msg,$1.i);$k[$j++]=8;$1.tobin();var _e=$k[--$j];var _f=$k[--$j];$P($k[--$j],_f,_e)}$1.metrics=$a([$a(["1",23,-1,0,205,$a([1,21,4]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,17,8]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,13,12]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,9,16]),$a([0,-1,-1]),$a([0,-1,-1])]),$a(["2",25,-1,0,301,$a([1,31,6]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,25,12]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,19,18]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,15,22]),$a([0,-1,-1]),$a([0,-1,-1])]),$a(["3",27,-1,0,405,$a([1,42,8]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,34,16]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,26,24]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,20,30]),$a([0,-1,-1]),$a([0,-1,-1])]),$a(["4",29,14,1,439,$a([1,46,8]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,38,16]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,30,24]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,22,32]),$a([0,-1,-1]),$a([0,-1,-1])]),$a(["5",31,16,1,555,$a([1,57,12]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,49,20]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,37,32]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,14,20]),$a([1,13,22]),$a([0,-1,-1])]),$a(["6",33,16,1,675,$a([1,70,14]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,58,26]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,24,20]),$a([1,22,18]),$a([0,-1,-1]),$a([1,16,24]),$a([1,18,26]),$a([0,-1,-1])]),$a(["7",35,17,1,805,$a([1,84,16]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,70,30]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,26,22]),$a([1,28,24]),$a([0,-1,-1]),$a([2,14,20]),$a([1,12,20]),$a([0,-1,-1])]),$a(["8",37,18,1,943,$a([1,99,18]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,40,18]),$a([1,41,18]),$a([0,-1,-1]),$a([1,31,26]),$a([1,32,28]),$a([0,-1,-1]),$a([2,16,24]),$a([1,15,22]),$a([0,-1,-1])]),$a(["9",39,19,1,1089,$a([1,114,22]),$a([0,-1,-1]),$a([0,-1,-1]),$a([2,48,20]),$a([0,-1,-1]),$a([0,-1,-1]),$a([2,24,20]),$a([1,26,22]),$a([0,-1,-1]),$a([2,18,28]),$a([1,18,26]),$a([0,-1,-1])]),$a(["10",41,20,1,1243,$a([1,131,24]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,52,22]),$a([1,57,24]),$a([0,-1,-1]),$a([2,27,24]),$a([1,29,24]),$a([0,-1,-1]),$a([2,21,32]),$a([1,19,30]),$a([0,-1,-1])]),$a(["11",43,14,2,1289,$a([1,135,26]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,56,24]),$a([1,57,24]),$a([0,-1,-1]),$a([2,28,24]),$a([1,31,26]),$a([0,-1,-1]),$a([2,22,32]),$a([1,21,32]),$a([0,-1,-1])]),$a(["12",45,15,2,1455,$a([1,153,28]),$a([0,-1,-1]),$a([0,-1,-1]),$a([1,62,26]),$a([1,65,28]),$a([0,-1,-1]),$a([2,32,28]),$a([1,33,28]),$a([0,-1,-1]),$a([3,17,26]),$a([1,22,30]),$a([0,-1,-1])]),$a(["13",47,16,2,1629,$a([1,86,16]),$a([1,85,16]),$a([0,-1,-1]),$a([1,71,30]),$a([1,72,30]),$a([0,-1,-1]),$a([2,37,32]),$a([1,35,30]),$a([0,-1,-1]),$a([3,20,30]),$a([1,21,32]),$a([0,-1,-1])]),$a(["14",49,16,2,1805,$a([1,94,18]),$a([1,95,18]),$a([0,-1,-1]),$a([2,51,22]),$a([1,55,24]),$a([0,-1,-1]),$a([3,30,26]),$a([1,31,26]),$a([0,-1,-1]),$a([4,18,28]),$a([1,17,24]),$a([0,-1,-1])]),$a(["15",51,17,2,1995,$a([1,104,20]),$a([1,105,20]),$a([0,-1,-1]),$a([2,57,24]),$a([1,61,26]),$a([0,-1,-1]),$a([3,33,28]),$a([1,36,30]),$a([0,-1,-1]),$a([4,20,30]),$a([1,19,30]),$a([0,-1,-1])]),$a(["16",53,17,2,2187,$a([1,115,22]),$a([1,114,22]),$a([0,-1,-1]),$a([2,65,28]),$a([1,61,26]),$a([0,-1,-1]),$a([3,38,32]),$a([1,33,30]),$a([0,-1,-1]),$a([5,19,28]),$a([1,14,24]),$a([0,-1,-1])]),$a(["17",55,18,2,2393,$a([1,126,24]),$a([1,125,24]),$a([0,-1,-1]),$a([2,70,30]),$a([1,69,30]),$a([0,-1,-1]),$a([4,33,28]),$a([1,29,26]),$a([0,-1,-1]),$a([5,20,30]),$a([1,19,30]),$a([0,-1,-1])]),$a(["18",57,19,2,2607,$a([1,136,26]),$a([1,137,26]),$a([0,-1,-1]),$a([3,56,24]),$a([1,59,26]),$a([0,-1,-1]),$a([5,35,30]),$a([0,-1,-1]),$a([0,-1,-1]),$a([6,18,28]),$a([1,21,28]),$a([0,-1,-1])]),$a(["19",59,20,2,2829,$a([1,148,28]),$a([1,149,28]),$a([0,-1,-1]),$a([3,61,26]),$a([1,64,28]),$a([0,-1,-1]),$a([7,24,20]),$a([1,23,22]),$a([0,-1,-1]),$a([6,20,30]),$a([1,21,32]),$a([0,-1,-1])]),$a(["20",61,20,2,3053,$a([3,107,20]),$a([0,-1,-1]),$a([0,-1,-1]),$a([3,65,28]),$a([1,72,30]),$a([0,-1,-1]),$a([7,26,22]),$a([1,23,22]),$a([0,-1,-1]),$a([7,19,28]),$a([1,20,32]),$a([0,-1,-1])]),$a(["21",63,21,2,3291,$a([3,115,22]),$a([0,-1,-1]),$a([0,-1,-1]),$a([4,56,24]),$a([1,63,28]),$a([0,-1,-1]),$a([7,28,24]),$a([1,25,22]),$a([0,-1,-1]),$a([8,18,28]),$a([1,21,22]),$a([0,-1,-1])]),$a(["22",65,16,3,3383,$a([2,116,22]),$a([1,122,24]),$a([0,-1,-1]),$a([4,56,24]),$a([1,72,30]),$a([0,-1,-1]),$a([7,28,24]),$a([1,32,26]),$a([0,-1,-1]),$a([8,18,28]),$a([1,24,30]),$a([0,-1,-1])]),$a(["23",67,17,3,3631,$a([3,127,24]),$a([0,-1,-1]),$a([0,-1,-1]),$a([5,51,22]),$a([1,62,26]),$a([0,-1,-1]),$a([7,30,26]),$a([1,35,26]),$a([0,-1,-1]),$a([8,20,30]),$a([1,21,32]),$a([0,-1,-1])]),$a(["24",69,17,3,3887,$a([2,135,26]),$a([1,137,26]),$a([0,-1,-1]),$a([5,56,24]),$a([1,59,26]),$a([0,-1,-1]),$a([7,33,28]),$a([1,30,28]),$a([0,-1,-1]),$a([11,16,24]),$a([1,19,26]),$a([0,-1,-1])]),$a(["25",71,18,3,4151,$a([3,105,20]),$a([1,121,22]),$a([0,-1,-1]),$a([5,61,26]),$a([1,57,26]),$a([0,-1,-1]),$a([9,28,24]),$a([1,28,22]),$a([0,-1,-1]),$a([10,19,28]),$a([1,18,30]),$a([0,-1,-1])]),$a(["26",73,18,3,4423,$a([2,157,30]),$a([1,150,28]),$a([0,-1,-1]),$a([5,65,28]),$a([1,61,26]),$a([0,-1,-1]),$a([8,33,28]),$a([1,34,30]),$a([0,-1,-1]),$a([10,19,28]),$a([2,15,26]),$a([0,-1,-1])]),$a(["27",75,19,3,4703,$a([3,126,24]),$a([1,115,22]),$a([0,-1,-1]),$a([7,51,22]),$a([1,54,22]),$a([0,-1,-1]),$a([8,35,30]),$a([1,37,30]),$a([0,-1,-1]),$a([15,15,22]),$a([1,10,22]),$a([0,-1,-1])]),$a(["28",77,19,3,4991,$a([4,105,20]),$a([1,103,20]),$a([0,-1,-1]),$a([7,56,24]),$a([1,45,18]),$a([0,-1,-1]),$a([10,31,26]),$a([1,27,26]),$a([0,-1,-1]),$a([10,17,26]),$a([3,20,28]),$a([1,21,28])]),$a(["29",79,20,3,5287,$a([3,139,26]),$a([1,137,28]),$a([0,-1,-1]),$a([6,66,28]),$a([1,66,30]),$a([0,-1,-1]),$a([9,36,30]),$a([1,34,32]),$a([0,-1,-1]),$a([13,19,28]),$a([1,17,32]),$a([0,-1,-1])]),$a(["30",81,20,3,5591,$a([6,84,16]),$a([1,82,16]),$a([0,-1,-1]),$a([6,70,30]),$a([1,68,30]),$a([0,-1,-1]),$a([7,35,30]),$a([3,33,28]),$a([1,32,28]),$a([13,20,30]),$a([1,20,28]),$a([0,-1,-1])]),$a(["31",83,21,3,5903,$a([5,105,20]),$a([1,94,18]),$a([0,-1,-1]),$a([6,74,32]),$a([1,71,30]),$a([0,-1,-1]),$a([11,33,28]),$a([1,34,32]),$a([0,-1,-1]),$a([13,19,28]),$a([3,16,26]),$a([0,-1,-1])]),$a(["32",85,17,4,6033,$a([4,127,24]),$a([1,126,24]),$a([0,-1,-1]),$a([7,66,28]),$a([1,66,30]),$a([0,-1,-1]),$a([12,30,24]),$a([1,24,28]),$a([1,24,30]),$a([15,19,28]),$a([1,17,32]),$a([0,-1,-1])]),$a(["33",87,17,4,6353,$a([7,84,16]),$a([1,78,16]),$a([0,-1,-1]),$a([7,70,30]),$a([1,66,28]),$a([0,-1,-1]),$a([12,33,28]),$a([1,32,30]),$a([0,-1,-1]),$a([14,21,32]),$a([1,24,28]),$a([0,-1,-1])]),$a(["34",89,18,4,6689,$a([5,117,22]),$a([1,117,24]),$a([0,-1,-1]),$a([8,66,28]),$a([1,58,26]),$a([0,-1,-1]),$a([11,38,32]),$a([1,34,32]),$a([0,-1,-1]),$a([15,20,30]),$a([2,17,26]),$a([0,-1,-1])]),$a(["35",91,18,4,7025,$a([4,148,28]),$a([1,146,28]),$a([0,-1,-1]),$a([8,68,30]),$a([1,70,24]),$a([0,-1,-1]),$a([10,36,32]),$a([3,38,28]),$a([0,-1,-1]),$a([16,19,28]),$a([3,16,26]),$a([0,-1,-1])]),$a(["36",93,19,4,7377,$a([4,126,24]),$a([2,135,26]),$a([0,-1,-1]),$a([8,70,28]),$a([2,43,26]),$a([0,-1,-1]),$a([13,32,28]),$a([2,41,30]),$a([0,-1,-1]),$a([17,19,28]),$a([3,15,26]),$a([0,-1,-1])]),$a(["37",95,19,4,7729,$a([5,136,26]),$a([1,132,24]),$a([0,-1,-1]),$a([5,67,30]),$a([4,68,28]),$a([1,69,28]),$a([14,35,30]),$a([1,32,24]),$a([0,-1,-1]),$a([18,18,26]),$a([3,16,28]),$a([1,14,28])]),$a(["38",97,19,4,8089,$a([3,142,26]),$a([3,141,28]),$a([0,-1,-1]),$a([8,70,30]),$a([1,73,32]),$a([1,74,32]),$a([12,34,30]),$a([3,34,26]),$a([1,35,28]),$a([18,21,32]),$a([1,27,30]),$a([0,-1,-1])]),$a(["39",99,20,4,8465,$a([5,116,22]),$a([2,103,20]),$a([1,102,20]),$a([9,74,32]),$a([1,74,30]),$a([0,-1,-1]),$a([14,34,28]),$a([2,32,32]),$a([1,32,30]),$a([19,21,32]),$a([1,25,26]),$a([0,-1,-1])]),$a(["40",101,20,4,8841,$a([7,116,22]),$a([1,117,22]),$a([0,-1,-1]),$a([11,65,28]),$a([1,58,24]),$a([0,-1,-1]),$a([15,38,32]),$a([1,27,28]),$a([0,-1,-1]),$a([20,20,30]),$a([1,20,32]),$a([1,21,32])]),$a(["41",103,17,5,9009,$a([6,136,26]),$a([1,130,24]),$a([0,-1,-1]),$a([11,66,28]),$a([1,62,30]),$a([0,-1,-1]),$a([14,34,28]),$a([3,34,32]),$a([1,30,30]),$a([18,20,30]),$a([3,20,28]),$a([2,15,26])]),$a(["42",105,17,5,9401,$a([5,105,20]),$a([2,115,22]),$a([2,116,22]),$a([10,75,32]),$a([1,73,32]),$a([0,-1,-1]),$a([16,38,32]),$a([1,27,28]),$a([0,-1,-1]),$a([22,19,28]),$a([2,16,30]),$a([1,19,30])]),$a(["43",107,18,5,9799,$a([6,147,28]),$a([1,146,28]),$a([0,-1,-1]),$a([11,66,28]),$a([2,65,30]),$a([0,-1,-1]),$a([18,33,28]),$a([2,33,30]),$a([0,-1,-1]),$a([22,21,32]),$a([1,28,30]),$a([0,-1,-1])]),$a(["44",109,18,5,10207,$a([6,116,22]),$a([3,125,24]),$a([0,-1,-1]),$a([11,75,32]),$a([1,68,30]),$a([0,-1,-1]),$a([13,35,28]),$a([6,34,32]),$a([1,30,30]),$a([23,21,32]),$a([1,26,30]),$a([0,-1,-1])]),$a(["45",111,18,5,10623,$a([7,105,20]),$a([4,95,18]),$a([0,-1,-1]),$a([12,67,28]),$a([1,63,30]),$a([1,62,32]),$a([21,31,26]),$a([2,33,32]),$a([0,-1,-1]),$a([23,21,32]),$a([2,24,30]),$a([0,-1,-1])]),$a(["46",113,19,5,11045,$a([10,116,22]),$a([0,-1,-1]),$a([0,-1,-1]),$a([12,74,32]),$a([1,78,30]),$a([0,-1,-1]),$a([18,37,32]),$a([1,39,30]),$a([1,41,28]),$a([25,21,32]),$a([1,27,28]),$a([0,-1,-1])]),$a(["47",115,19,5,11477,$a([5,126,24]),$a([4,115,22]),$a([1,114,22]),$a([12,67,28]),$a([2,66,32]),$a([1,68,30]),$a([21,35,30]),$a([1,39,30]),$a([0,-1,-1]),$a([26,21,32]),$a([1,28,28]),$a([0,-1,-1])]),$a(["48",117,19,5,11917,$a([9,126,24]),$a([1,117,22]),$a([0,-1,-1]),$a([13,75,32]),$a([1,68,30]),$a([0,-1,-1]),$a([20,35,30]),$a([3,35,28]),$a([0,-1,-1]),$a([27,21,32]),$a([1,28,30]),$a([0,-1,-1])]),$a(["49",119,17,6,12111,$a([9,126,24]),$a([1,137,26]),$a([0,-1,-1]),$a([13,71,30]),$a([2,68,32]),$a([0,-1,-1]),$a([20,37,32]),$a([1,39,28]),$a([1,38,28]),$a([24,20,32]),$a([5,25,28]),$a([0,-1,-1])]),$a(["50",121,17,6,12559,$a([8,147,28]),$a([1,141,28]),$a([0,-1,-1]),$a([10,73,32]),$a([4,74,30]),$a([1,73,30]),$a([16,36,32]),$a([6,39,30]),$a([1,37,30]),$a([27,21,32]),$a([3,20,26]),$a([0,-1,-1])]),$a(["51",123,18,6,13025,$a([9,137,26]),$a([1,135,26]),$a([0,-1,-1]),$a([12,70,30]),$a([4,75,32]),$a([0,-1,-1]),$a([24,35,30]),$a([1,40,28]),$a([0,-1,-1]),$a([23,20,32]),$a([8,24,30]),$a([0,-1,-1])]),$a(["52",125,18,6,13489,$a([14,95,18]),$a([1,86,18]),$a([0,-1,-1]),$a([13,73,32]),$a([3,77,30]),$a([0,-1,-1]),$a([24,35,30]),$a([2,35,28]),$a([0,-1,-1]),$a([26,21,32]),$a([5,21,30]),$a([1,23,30])]),$a(["53",127,18,6,13961,$a([9,147,28]),$a([1,142,28]),$a([0,-1,-1]),$a([10,73,30]),$a([6,70,32]),$a([1,71,32]),$a([25,35,30]),$a([2,34,26]),$a([0,-1,-1]),$a([29,21,32]),$a([4,22,30]),$a([0,-1,-1])]),$a(["54",129,18,6,14441,$a([11,126,24]),$a([1,131,24]),$a([0,-1,-1]),$a([16,74,32]),$a([1,79,30]),$a([0,-1,-1]),$a([25,38,32]),$a([1,25,30]),$a([0,-1,-1]),$a([33,21,32]),$a([1,28,28]),$a([0,-1,-1])]),$a(["55",131,19,6,14939,$a([14,105,20]),$a([1,99,18]),$a([0,-1,-1]),$a([19,65,28]),$a([1,72,28]),$a([0,-1,-1]),$a([24,37,32]),$a([2,40,30]),$a([1,41,30]),$a([31,21,32]),$a([4,24,32]),$a([0,-1,-1])]),$a(["56",133,19,6,15435,$a([10,147,28]),$a([1,151,28]),$a([0,-1,-1]),$a([15,71,30]),$a([3,71,32]),$a([1,73,32]),$a([24,37,32]),$a([3,38,30]),$a([1,39,30]),$a([36,19,30]),$a([3,29,26]),$a([0,-1,-1])]),$a(["57",135,19,6,15939,$a([15,105,20]),$a([1,99,18]),$a([0,-1,-1]),$a([19,70,30]),$a([1,64,28]),$a([0,-1,-1]),$a([27,38,32]),$a([2,25,26]),$a([0,-1,-1]),$a([38,20,30]),$a([2,18,28]),$a([0,-1,-1])]),$a(["58",137,17,7,16171,$a([14,105,20]),$a([1,113,22]),$a([1,114,22]),$a([17,67,30]),$a([3,92,32]),$a([0,-1,-1]),$a([30,35,30]),$a([1,41,30]),$a([0,-1,-1]),$a([36,21,32]),$a([1,26,30]),$a([1,27,30])]),$a(["59",139,17,7,16691,$a([11,146,28]),$a([1,146,26]),$a([0,-1,-1]),$a([20,70,30]),$a([1,60,26]),$a([0,-1,-1]),$a([29,38,32]),$a([1,24,32]),$a([0,-1,-1]),$a([40,20,30]),$a([2,17,26]),$a([0,-1,-1])]),$a(["60",141,18,7,17215,$a([3,137,26]),$a([1,136,26]),$a([10,126,24]),$a([22,65,28]),$a([1,75,30]),$a([0,-1,-1]),$a([30,37,32]),$a([1,51,30]),$a([0,-1,-1]),$a([42,20,30]),$a([1,21,30]),$a([0,-1,-1])]),$a(["61",143,18,7,17751,$a([12,126,24]),$a([2,118,22]),$a([1,116,22]),$a([19,74,32]),$a([1,74,30]),$a([1,72,28]),$a([30,38,32]),$a([2,29,30]),$a([0,-1,-1]),$a([39,20,32]),$a([2,37,26]),$a([1,38,26])]),$a(["62",145,18,7,18295,$a([12,126,24]),$a([3,136,26]),$a([0,-1,-1]),$a([21,70,30]),$a([2,65,28]),$a([0,-1,-1]),$a([34,35,30]),$a([1,44,32]),$a([0,-1,-1]),$a([42,20,30]),$a([2,19,28]),$a([2,18,28])]),$a(["63",147,18,7,18847,$a([12,126,24]),$a([3,117,22]),$a([1,116,22]),$a([25,61,26]),$a([2,62,28]),$a([0,-1,-1]),$a([34,35,30]),$a([1,40,32]),$a([1,41,32]),$a([45,20,30]),$a([1,20,32]),$a([1,21,32])]),$a(["64",149,19,7,19403,$a([15,105,20]),$a([2,115,22]),$a([2,116,22]),$a([25,65,28]),$a([1,72,28]),$a([0,-1,-1]),$a([18,35,30]),$a([17,37,32]),$a([1,50,32]),$a([42,20,30]),$a([6,19,28]),$a([1,15,28])]),$a(["65",151,19,7,19971,$a([19,105,20]),$a([1,101,20]),$a([0,-1,-1]),$a([33,51,22]),$a([1,65,22]),$a([0,-1,-1]),$a([40,33,28]),$a([1,28,28]),$a([0,-1,-1]),$a([49,20,30]),$a([1,18,28]),$a([0,-1,-1])]),$a(["66",153,17,8,20229,$a([18,105,20]),$a([2,117,22]),$a([0,-1,-1]),$a([26,65,28]),$a([1,80,30]),$a([0,-1,-1]),$a([35,35,30]),$a([3,35,28]),$a([1,36,28]),$a([52,18,28]),$a([2,38,30]),$a([0,-1,-1])]),$a(["67",155,17,8,20805,$a([26,84,16]),$a([0,-1,-1]),$a([0,-1,-1]),$a([26,70,30]),$a([0,-1,-1]),$a([0,-1,-1]),$a([45,31,26]),$a([1,9,26]),$a([0,-1,-1]),$a([52,20,30]),$a([0,-1,-1]),$a([0,-1,-1])]),$a(["68",157,17,8,21389,$a([16,126,24]),$a([1,114,22]),$a([1,115,22]),$a([23,70,30]),$a([3,65,28]),$a([1,66,28]),$a([40,35,30]),$a([1,43,30]),$a([0,-1,-1]),$a([46,20,30]),$a([7,19,28]),$a([1,16,28])]),$a(["69",159,18,8,21993,$a([19,116,22]),$a([1,105,22]),$a([0,-1,-1]),$a([20,70,30]),$a([7,66,28]),$a([1,63,28]),$a([40,35,30]),$a([1,42,32]),$a([1,43,32]),$a([54,20,30]),$a([1,19,30]),$a([0,-1,-1])]),$a(["70",161,18,8,22593,$a([17,126,24]),$a([2,115,22]),$a([0,-1,-1]),$a([24,70,30]),$a([4,74,32]),$a([0,-1,-1]),$a([48,31,26]),$a([2,18,26]),$a([0,-1,-1]),$a([54,19,28]),$a([6,15,26]),$a([1,14,26])]),$a(["71",163,18,8,23201,$a([29,84,16]),$a([0,-1,-1]),$a([0,-1,-1]),$a([29,70,30]),$a([0,-1,-1]),$a([0,-1,-1]),$a([6,34,30]),$a([3,36,30]),$a([38,33,28]),$a([58,20,30]),$a([0,-1,-1]),$a([0,-1,-1])]),$a(["72",165,18,8,23817,$a([16,147,28]),$a([1,149,28]),$a([0,-1,-1]),$a([31,66,28]),$a([1,37,26]),$a([0,-1,-1]),$a([48,33,28]),$a([1,23,26]),$a([0,-1,-1]),$a([53,20,30]),$a([6,19,28]),$a([1,17,28])]),$a(["73",167,19,8,24453,$a([20,115,22]),$a([2,134,24]),$a([0,-1,-1]),$a([29,66,28]),$a([2,56,26]),$a([2,57,26]),$a([45,36,30]),$a([2,15,28]),$a([0,-1,-1]),$a([59,20,30]),$a([2,21,32]),$a([0,-1,-1])]),$a(["74",169,19,8,25085,$a([17,147,28]),$a([1,134,26]),$a([0,-1,-1]),$a([26,70,30]),$a([5,75,32]),$a([0,-1,-1]),$a([47,35,30]),$a([1,48,32]),$a([0,-1,-1]),$a([64,18,28]),$a([2,33,30]),$a([1,35,30])]),$a(["75",171,17,9,25373,$a([22,115,22]),$a([1,133,24]),$a([0,-1,-1]),$a([33,65,28]),$a([1,74,28]),$a([0,-1,-1]),$a([43,36,30]),$a([5,27,28]),$a([1,30,28]),$a([57,20,30]),$a([5,21,32]),$a([1,24,32])]),$a(["76",173,17,9,26021,$a([18,136,26]),$a([2,142,26]),$a([0,-1,-1]),$a([33,66,28]),$a([2,49,26]),$a([0,-1,-1]),$a([48,35,30]),$a([2,38,28]),$a([0,-1,-1]),$a([64,20,30]),$a([1,20,32]),$a([0,-1,-1])]),$a(["77",175,17,9,26677,$a([19,126,24]),$a([2,135,26]),$a([1,136,26]),$a([32,66,28]),$a([2,55,26]),$a([2,56,26]),$a([49,36,30]),$a([2,18,32]),$a([0,-1,-1]),$a([65,18,28]),$a([5,27,30]),$a([1,29,30])]),$a(["78",177,18,9,27335,$a([20,137,26]),$a([1,130,26]),$a([0,-1,-1]),$a([30,75,32]),$a([2,71,32]),$a([0,-1,-1]),$a([46,35,30]),$a([6,39,32]),$a([0,-1,-1]),$a([3,12,30]),$a([70,19,28]),$a([0,-1,-1])]),$a(["79",179,18,9,28007,$a([20,147,28]),$a([0,-1,-1]),$a([0,-1,-1]),$a([35,70,30]),$a([0,-1,-1]),$a([0,-1,-1]),$a([49,35,30]),$a([5,35,28]),$a([0,-1,-1]),$a([70,20,30]),$a([0,-1,-1]),$a([0,-1,-1])]),$a(["80",181,18,9,28687,$a([21,136,26]),$a([1,155,28]),$a([0,-1,-1]),$a([34,70,30]),$a([1,64,28]),$a([1,65,28]),$a([54,35,30]),$a([1,45,30]),$a([0,-1,-1]),$a([68,20,30]),$a([3,18,28]),$a([1,19,28])]),$a(["81",183,18,9,29375,$a([19,126,24]),$a([5,115,22]),$a([1,114,22]),$a([33,70,30]),$a([3,65,28]),$a([1,64,28]),$a([52,35,30]),$a([3,41,32]),$a([1,40,32]),$a([67,20,30]),$a([5,21,32]),$a([1,24,32])]),$a(["82",185,18,9,30071,$a([2,150,28]),$a([21,136,26]),$a([0,-1,-1]),$a([32,70,30]),$a([6,65,28]),$a([0,-1,-1]),$a([52,38,32]),$a([2,27,32]),$a([0,-1,-1]),$a([73,20,30]),$a([2,22,32]),$a([0,-1,-1])]),$a(["83",187,17,10,30387,$a([21,126,24]),$a([4,136,26]),$a([0,-1,-1]),$a([30,74,32]),$a([6,73,30]),$a([0,-1,-1]),$a([54,35,30]),$a([4,40,32]),$a([0,-1,-1]),$a([75,20,30]),$a([1,20,28]),$a([0,-1,-1])]),$a(["84",189,17,10,31091,$a([30,105,20]),$a([1,114,22]),$a([0,-1,-1]),$a([3,45,22]),$a([55,47,20]),$a([0,-1,-1]),$a([2,26,26]),$a([62,33,28]),$a([0,-1,-1]),$a([79,18,28]),$a([4,33,30]),$a([0,-1,-1])])]);$1.eclval=$g($1.eclevel,1)-49;for(var _IM=0;_IM<=83;_IM+=1){$1.i=_IM;$1.m=$g($1.metrics,$1.i);$1.vers=$g($1.m,0);$1.size=$g($1.m,1);$1.alnk=$g($1.m,2);$1.alnn=$g($1.m,3);$1.alnr=$f($1.size-$1.alnk*$1.alnn);$1.nmod=$g($1.m,4);$1.ncws=~~($1.nmod/8);$1.rbit=$1.nmod%8;$1.ecbs=$G($1.m,5+$1.eclval*3,3);var _Ii=$1.ecbs;$k[$j++]="ecws";$k[$j++]=0;for(var _Ij=0,_Ik=_Ii.length;_Ij<_Ik;_Ij++){var _Il=$g(_Ii,_Ij);var _Io=$k[--$j];$k[$j++]=$f(_Io+$g(_Il,0)*$g(_Il,2))}var _Ip=$k[--$j];$1[$k[--$j]]=_Ip;$1.dcws=$f($1.ncws-$1.ecws);$1.dmod=$1.dcws*8;$1.okay=true;if($ne($1.version,"unset")&&$ne($1.version,$1.vers)){$1.okay=false}if($1.bits.length>$1.dmod){$1.okay=false}if($1.okay){break}}if(!$1.okay){$k[$j++]="bwipp.hanxinNoValidSymbol";$k[$j++]="No valid symbol available";$0.raiseerror()}$1.version=$1.vers;$1.msgbits=$1.bits;$1.e1nb=$g($g($1.ecbs,0),0);$1.e2nb=$g($g($1.ecbs,1),0);$1.e3nb=$g($g($1.ecbs,2),0);$1.e1dcws=$g($g($1.ecbs,0),1);$1.e2dcws=$g($g($1.ecbs,1),1);$1.e3dcws=$g($g($1.ecbs,2),1);$1.e1ecws=$g($g($1.ecbs,0),2);$1.e2ecws=$g($g($1.ecbs,1),2);$1.e3ecws=$g($g($1.ecbs,2),2);$1.pad=$s($1.dmod);for(var _JY=0,_JX=$1.pad.length-1;_JY<=_JX;_JY+=1){$p($1.pad,_JY,48)}$P($1.pad,0,$1.msgbits);$1.cws=$a($1.dcws);for(var _Jg=0,_Jf=$1.cws.length-1;_Jg<=_Jf;_Jg+=1){$1.c=_Jg;$1.cwb=$G($1.pad,$1.c*8,8);$1.cw=0;for(var _Jk=0;_Jk<=7;_Jk+=1){$1.i=_Jk;$1.cw=$f($1.cw+~~Math.pow(2,8-$1.i-1)*$f($g($1.cwb,$1.i)-48))}$p($1.cws,$1.c,$1.cw)}$1.rscodes=function(){$1.rspm=$k[--$j];$1.rsgf=$k[--$j];$1.rsnc=$k[--$j];$1.rscws=$k[--$j];$k[$j++]=Infinity;$k[$j++]=1;for(var _Jy=0,_Jz=$f($1.rsgf-1);_Jy<_Jz;_Jy++){var _K0=$k[--$j];var _K1=_K0*2;$k[$j++]=_K0;$k[$j++]=_K1;if(_K1>=$1.rsgf){var _K4=$k[--$j];$k[$j++]=$xo(_K4,$1.rspm)}}$1.rsalog=$a();$1.rslog=$a($1.rsgf);for(var _KA=1,_K9=$f($1.rsgf-1);_KA<=_K9;_KA+=1){$p($1.rslog,$g($1.rsalog,_KA),_KA)}$1.rsprod=function(){var _KE=$k[--$j];var _KF=$k[--$j];$k[$j++]=_KF;$k[$j++]=_KE;if(_KE!=0&&_KF!=0){var _KI=$g($1.rslog,$k[--$j]);var _KO=$g($1.rsalog,$f(_KI+$g($1.rslog,$k[--$j]))%$f($1.rsgf-1));$k[$j++]=_KO}else{$j-=2;$k[$j++]=0}};$k[$j++]=Infinity;$k[$j++]=1;for(var _KQ=0,_KR=$1.rsnc;_KQ<_KR;_KQ++){$k[$j++]=0}$1.coeffs=$a();for(var _KV=1,_KU=$1.rsnc;_KV<=_KU;_KV+=1){$1.i=_KV;$p($1.coeffs,$1.i,$g($1.coeffs,$1.i-1));for(var _Kc=$1.i-1;_Kc>=1;_Kc-=1){$1.j=_Kc;$k[$j++]=$1.coeffs;$k[$j++]=$1.j;$k[$j++]=$g($1.coeffs,$1.j-1);$k[$j++]=$g($1.coeffs,$1.j);$k[$j++]=$g($1.rsalog,$1.i);$1.rsprod();var _Ko=$k[--$j];var _Kp=$k[--$j];var _Kq=$k[--$j];$p($k[--$j],_Kq,$xo(_Kp,_Ko))}$k[$j++]=$1.coeffs;$k[$j++]=0;$k[$j++]=$g($1.coeffs,0);$k[$j++]=$g($1.rsalog,$1.i);$1.rsprod();var _Ky=$k[--$j];var _Kz=$k[--$j];$p($k[--$j],_Kz,_Ky)}$1.nd=$1.rscws.length;$k[$j++]=Infinity;$F($1.rscws);for(var _L4=0,_L5=$1.rsnc;_L4<_L5;_L4++){$k[$j++]=0}$k[$j++]=0;$1.rscws=$a();for(var _L9=0,_L8=$1.nd-1;_L9<=_L8;_L9+=1){$1.k=$xo($g($1.rscws,_L9),$g($1.rscws,$1.nd));for(var _LH=0,_LG=$f($1.rsnc-1);_LH<=_LG;_LH+=1){$1.j=_LH;$k[$j++]=$1.rscws;$k[$j++]=$1.nd+$1.j;$k[$j++]=$g($1.rscws,$1.nd+$1.j+1);$k[$j++]=$1.k;$k[$j++]=$g($1.coeffs,$f($f($1.rsnc-$1.j)-1));$1.rsprod();var _LU=$k[--$j];var _LV=$k[--$j];var _LW=$k[--$j];$p($k[--$j],_LW,$xo(_LV,_LU))}}$k[$j++]=$G($1.rscws,0,$1.rscws.length-1)};$1.dcwsb=$a($f($f($1.e1nb+$1.e2nb)+$1.e3nb));$1.ecwsb=$a($1.dcwsb.length);$1.in=0;$1.out=0;for(var _Li=0,_Lj=$1.e1nb;_Li<_Lj;_Li++){$k[$j++]=$G($1.cws,$1.in,$1.e1dcws);$k[$j++]=$1.e1ecws;$k[$j++]=256;$k[$j++]=355;$1.rscodes();var _Lp=$k[--$j];$p($1.dcwsb,$1.out,$G(_Lp,0,$1.e1dcws));$p($1.ecwsb,$1.out,$G(_Lp,$1.e1dcws,$1.e1ecws));$1.in=$f($1.in+$1.e1dcws);$1.out=$1.out+1}for(var _M3=0,_M4=$1.e2nb;_M3<_M4;_M3++){$k[$j++]=$G($1.cws,$1.in,$1.e2dcws);$k[$j++]=$1.e2ecws;$k[$j++]=256;$k[$j++]=355;$1.rscodes();var _MA=$k[--$j];$p($1.dcwsb,$1.out,$G(_MA,0,$1.e2dcws));$p($1.ecwsb,$1.out,$G(_MA,$1.e2dcws,$1.e2ecws));$1.in=$f($1.in+$1.e2dcws);$1.out=$1.out+1}for(var _MO=0,_MP=$1.e3nb;_MO<_MP;_MO++){$k[$j++]=$G($1.cws,$1.in,$1.e3dcws);$k[$j++]=$1.e3ecws;$k[$j++]=256;$k[$j++]=355;$1.rscodes();var _MV=$k[--$j];$p($1.dcwsb,$1.out,$G(_MV,0,$1.e3dcws));$p($1.ecwsb,$1.out,$G(_MV,$1.e3dcws,$1.e3ecws));$1.in=$f($1.in+$1.e3dcws);$1.out=$1.out+1}$1.cws=$a($1.ncws);$1.cw=0;for(var _Mm=0,_Ml=$1.dcwsb.length-1;_Mm<=_Ml;_Mm+=1){$1.i=_Mm;var _Mp=$g($1.dcwsb,$1.i);$P($1.cws,$1.cw,_Mp);$1.cw=_Mp.length+$1.cw;var _Mv=$g($1.ecwsb,$1.i);$P($1.cws,$1.cw,_Mv);$1.cw=_Mv.length+$1.cw}$k[$j++]=Infinity;var _Mz=$1.ncws;var _N0=12;var _N1=_Mz-1;if(_Mz-1>12){var _=_N0;_N0=_N1;_N1=_}for(var _N3=0,_N2=_N1;_N3<=_N2;_N3+=1){for(var _N6=_N3,_N5=$1.ncws-1;_N6<=_N5;_N6+=13){$k[$j++]=_N6;if(_N6<$1.ncws){var _NA=$g($1.cws,$k[--$j]);$k[$j++]=_NA}else{$j--}}}$1.cws=$a();if($1.rbit>0){$1.pad=$a($1.cws.length+1);$P($1.pad,0,$1.cws);$p($1.pad,$1.pad.length-1,0);$1.cws=$1.pad}$k[$j++]=Infinity;for(var _NM=0,_NN=$1.size*$1.size;_NM<_NN;_NM++){$k[$j++]=-1}$1.pixs=$a();$1.qmv=function(){var _NQ=$k[--$j];var _NR=$k[--$j];$k[$j++]=$f(_NR+_NQ*$1.size)};if($1.alnn!=0){$1.trmv=function(){var _NU=$k[--$j];var _NW=$k[--$j];$k[$j++]=$f($f($f(_NU*$1.size+$1.size)-1)-_NW)};$1.aplot=function(){var _NX=$k[--$j];var _NY=$k[--$j];var _NZ=$k[--$j];$k[$j++]=_NX;$k[$j++]=_NZ;$k[$j++]=_NY;$k[$j++]=_NX;$k[$j++]=_NY;$k[$j++]=_NZ;$1.trmv();var _Nb=$k[--$j];$p($1.pixs,_Nb,$k[--$j]);$1.trmv();var _Ne=$k[--$j];$p($1.pixs,_Ne,$k[--$j])};$1.i=0;$1.stag=0;for(;;){if($1.i>=$1.size){break}for(var _Nk=0,_Nj=$f($1.size-1);_Nk<=_Nj;_Nk+=1){$1.j=_Nk;if($f($1.j+$1.alnr)<$1.size){$k[$j++]=(~~($1.j/$1.alnk)+$1.stag)%2==0&&!($1.i==0&&$1.j<$1.alnk)||$1.j%$1.alnk==0}else{$k[$j++]=$f($1.alnn+$1.stag)%2==0}if($k[--$j]){$k[$j++]=$1.j;$k[$j++]=$1.i;$k[$j++]=1;$1.aplot();var _O1=$1.j;var _O2=$1.i;$k[$j++]=_O1+1;$k[$j++]=_O2+1;if(_O2+1<$1.size&&_O1+1<$1.size){$k[$j++]=0;$1.aplot()}else{$j-=2}}}if($f($1.i+$1.alnr)==$1.size){$1.i=$f($f($1.i+$1.alnr)-1)}else{$1.i=$f($1.i+$1.alnk)}$1.stag=1-$1.stag}for(var _OH=$1.alnk,_OI=$1.alnk,_OG=$f($1.size-2);_OI<0?_OH>=_OG:_OH<=_OG;_OH+=_OI){$1.i=_OH;if(~~($1.i/$1.alnk)%2!=0){$k[$j++]=$1.pixs;$k[$j++]=0;$k[$j++]=$1.i-1;$1.trmv();var _ON=$k[--$j];$p($k[--$j],_ON,0);$k[$j++]=$1.pixs;$k[$j++]=0;$k[$j++]=$1.i+1;$1.trmv();var _OR=$k[--$j];$p($k[--$j],_OR,0);$k[$j++]=$1.pixs;$k[$j++]=1;$k[$j++]=$1.i-1;$1.trmv();var _OV=$k[--$j];$p($k[--$j],_OV,0);$k[$j++]=$1.pixs;$k[$j++]=1;$k[$j++]=$1.i;$1.trmv();var _OZ=$k[--$j];$p($k[--$j],_OZ,0);$k[$j++]=$1.pixs;$k[$j++]=1;$k[$j++]=$1.i+1;$1.trmv();var _Od=$k[--$j];$p($k[--$j],_Od,0);$k[$j++]=$1.pixs;$k[$j++]=$1.i-1;$k[$j++]=0;$1.trmv();var _Oh=$k[--$j];$p($k[--$j],_Oh,0);$k[$j++]=$1.pixs;$k[$j++]=$1.i+1;$k[$j++]=0;$1.trmv();var _Ol=$k[--$j];$p($k[--$j],_Ol,0);$k[$j++]=$1.pixs;$k[$j++]=$1.i-1;$k[$j++]=1;$1.trmv();var _Op=$k[--$j];$p($k[--$j],_Op,0);$k[$j++]=$1.pixs;$k[$j++]=$1.i;$k[$j++]=1;$1.trmv();var _Ot=$k[--$j];$p($k[--$j],_Ot,0);$k[$j++]=$1.pixs;$k[$j++]=$1.i+1;$k[$j++]=1;$1.trmv();var _Ox=$k[--$j];$p($k[--$j],_Ox,0)}$k[$j++]=$1.pixs;$k[$j++]=$f($1.size-1);$k[$j++]=$1.i-1;$1.trmv();var _P2=$k[--$j];if($g($k[--$j],_P2)!=1){$k[$j++]=$1.pixs;$k[$j++]=$f($1.size-1);$k[$j++]=$1.i-1;$1.trmv();var _P8=$k[--$j];$p($k[--$j],_P8,0);$k[$j++]=$1.pixs;$k[$j++]=$f($1.size-2);$k[$j++]=$1.i-1;$1.trmv();var _PD=$k[--$j];$p($k[--$j],_PD,0);$k[$j++]=$1.pixs;$k[$j++]=$f($1.size-2);$k[$j++]=$1.i;$1.trmv();var _PI=$k[--$j];$p($k[--$j],_PI,0);$k[$j++]=$1.pixs;$k[$j++]=$f($1.size-2);$k[$j++]=$1.i+1;$1.trmv();var _PN=$k[--$j];$p($k[--$j],_PN,0);$k[$j++]=$1.pixs;$k[$j++]=$f($1.size-1);$k[$j++]=$1.i+1;$1.trmv();var _PS=$k[--$j];$p($k[--$j],_PS,0);$k[$j++]=$1.pixs;$k[$j++]=$1.i-1;$k[$j++]=$f($1.size-1);$1.trmv();var _PX=$k[--$j];$p($k[--$j],_PX,0);$k[$j++]=$1.pixs;$k[$j++]=$1.i-1;$k[$j++]=$f($1.size-2);$1.trmv();var _Pc=$k[--$j];$p($k[--$j],_Pc,0);$k[$j++]=$1.pixs;$k[$j++]=$1.i;$k[$j++]=$f($1.size-2);$1.trmv();var _Ph=$k[--$j];$p($k[--$j],_Ph,0);$k[$j++]=$1.pixs;$k[$j++]=$1.i+1;$k[$j++]=$f($1.size-2);$1.trmv();var _Pm=$k[--$j];$p($k[--$j],_Pm,0);$k[$j++]=$1.pixs;$k[$j++]=$1.i+1;$k[$j++]=$f($1.size-1);$1.trmv();var _Pr=$k[--$j];$p($k[--$j],_Pr,0)}}}$1.fpat=$a([$a([1,1,1,1,1,1,1,0]),$a([1,0,0,0,0,0,0,0]),$a([1,0,1,1,1,1,1,0]),$a([1,0,1,0,0,0,0,0]),$a([1,0,1,0,1,1,1,0]),$a([1,0,1,0,1,1,1,0]),$a([1,0,1,0,1,1,1,0]),$a([0,0,0,0,0,0,0,0])]);$1.fpat2=$a([$a([1,1,1,0,1,0,1,0]),$a([1,1,1,0,1,0,1,0]),$a([1,1,1,0,1,0,1,0]),$a([0,0,0,0,1,0,1,0]),$a([1,1,1,1,1,0,1,0]),$a([0,0,0,0,0,0,1,0]),$a([1,1,1,1,1,1,1,0]),$a([0,0,0,0,0,0,0,0])]);for(var _QD=0,_QC=$1.fpat.length-1;_QD<=_QC;_QD+=1){$1.y=_QD;for(var _QH=0,_QG=$g($1.fpat,0).length-1;_QH<=_QG;_QH+=1){$1.x=_QH;$1.fpb=$g($g($1.fpat,$1.y),$1.x);$1.fpb2=$g($g($1.fpat2,$1.y),$1.x);$k[$j++]=$1.pixs;$k[$j++]=$1.x;$k[$j++]=$1.y;$1.qmv();var _QW=$k[--$j];$p($k[--$j],_QW,$1.fpb);$k[$j++]=$1.pixs;$k[$j++]=$f($f($1.size-$1.x)-1);$k[$j++]=$1.y;$1.qmv();var _Qd=$k[--$j];$p($k[--$j],_Qd,$1.fpb);$k[$j++]=$1.pixs;$k[$j++]=$f($f($1.size-$1.x)-1);$k[$j++]=$f($f($1.size-$1.y)-1);$1.qmv();var _Ql=$k[--$j];$p($k[--$j],_Ql,$1.fpb);$k[$j++]=$1.pixs;$k[$j++]=$1.x;$k[$j++]=$f($f($1.size-$1.y)-1);$1.qmv();var _Qs=$k[--$j];$p($k[--$j],_Qs,$1.fpb2)}}$1.functionmap=$a([$a([$a([0,8]),$a([$f($1.size-1),$f($1.size-9)])]),$a([$a([1,8]),$a([$f($1.size-2),$f($1.size-9)])]),$a([$a([2,8]),$a([$f($1.size-3),$f($1.size-9)])]),$a([$a([3,8]),$a([$f($1.size-4),$f($1.size-9)])]),$a([$a([4,8]),$a([$f($1.size-5),$f($1.size-9)])]),$a([$a([5,8]),$a([$f($1.size-6),$f($1.size-9)])]),$a([$a([6,8]),$a([$f($1.size-7),$f($1.size-9)])]),$a([$a([7,8]),$a([$f($1.size-8),$f($1.size-9)])]),$a([$a([8,8]),$a([$f($1.size-9),$f($1.size-9)])]),$a([$a([8,7]),$a([$f($1.size-9),$f($1.size-8)])]),$a([$a([8,6]),$a([$f($1.size-9),$f($1.size-7)])]),$a([$a([8,5]),$a([$f($1.size-9),$f($1.size-6)])]),$a([$a([8,4]),$a([$f($1.size-9),$f($1.size-5)])]),$a([$a([8,3]),$a([$f($1.size-9),$f($1.size-4)])]),$a([$a([8,2]),$a([$f($1.size-9),$f($1.size-3)])]),$a([$a([8,1]),$a([$f($1.size-9),$f($1.size-2)])]),$a([$a([8,0]),$a([$f($1.size-9),$f($1.size-1)])]),$a([$a([$f($1.size-9),0]),$a([8,$f($1.size-1)])]),$a([$a([$f($1.size-9),1]),$a([8,$f($1.size-2)])]),$a([$a([$f($1.size-9),2]),$a([8,$f($1.size-3)])]),$a([$a([$f($1.size-9),3]),$a([8,$f($1.size-4)])]),$a([$a([$f($1.size-9),4]),$a([8,$f($1.size-5)])]),$a([$a([$f($1.size-9),5]),$a([8,$f($1.size-6)])]),$a([$a([$f($1.size-9),6]),$a([8,$f($1.size-7)])]),$a([$a([$f($1.size-9),7]),$a([8,$f($1.size-8)])]),$a([$a([$f($1.size-9),8]),$a([8,$f($1.size-9)])]),$a([$a([$f($1.size-8),8]),$a([7,$f($1.size-9)])]),$a([$a([$f($1.size-7),8]),$a([6,$f($1.size-9)])]),$a([$a([$f($1.size-6),8]),$a([5,$f($1.size-9)])]),$a([$a([$f($1.size-5),8]),$a([4,$f($1.size-9)])]),$a([$a([$f($1.size-4),8]),$a([3,$f($1.size-9)])]),$a([$a([$f($1.size-3),8]),$a([2,$f($1.size-9)])]),$a([$a([$f($1.size-2),8]),$a([1,$f($1.size-9)])]),$a([$a([$f($1.size-1),8]),$a([0,$f($1.size-9)])])]);var _Tf=$1.functionmap;for(var _Tg=0,_Th=_Tf.length;_Tg<_Th;_Tg++){$F($g(_Tf,_Tg),function(){$F($k[--$j]);$1.qmv();$p($1.pixs,$k[--$j],0)})}var _Ts=$a([function(){$j-=2;$k[$j++]=1},function(){var _Tm=$k[--$j];var _Tn=$k[--$j];$k[$j++]=$f(_Tn+_Tm)%2},function(){var _To=$k[--$j];var _Tp=$k[--$j];$k[$j++]=$f($f(_To+_Tp)%3+_Tp%3)%2},function(){var _Tq=$k[--$j];var _Tr=$k[--$j];$k[$j++]=$f(_Tr%_Tq+$f(_Tq%_Tr+$f(_Tq%3+_Tr%3)))%2}]);$1.maskfuncs=_Ts;if($1.mask!=-1){$1.maskfuncs=$a([$g($1.maskfuncs,$1.mask-1)]);$1.bestmaskval=$1.mask-1}$1.masks=$a($1.maskfuncs.length);for(var _U3=0,_U2=$1.masks.length-1;_U3<=_U2;_U3+=1){$1.m=_U3;$1.mask=$a($1.size*$1.size);for(var _U9=0,_U8=$f($1.size-1);_U9<=_U8;_U9+=1){$1.j=_U9;for(var _UC=0,_UB=$f($1.size-1);_UC<=_UB;_UC+=1){$1.i=_UC;$k[$j++]=$1.i+1;$k[$j++]=$1.j+1;if($g($1.maskfuncs,$1.m)()===true){break}var _UI=$k[--$j];$k[$j++]=_UI==0;$k[$j++]=$1.pixs;$k[$j++]=$1.i;$k[$j++]=$1.j;$1.qmv();var _UM=$k[--$j];var _UO=$g($k[--$j],_UM);var _UP=$k[--$j];var _UQ=_UP&&_UO==-1?1:0;$k[$j++]=_UQ;$k[$j++]=$1.mask;$k[$j++]=$1.i;$k[$j++]=$1.j;$1.qmv();var _UU=$k[--$j];var _UV=$k[--$j];$p(_UV,_UU,$k[--$j])}}$p($1.masks,$1.m,$1.mask)}$1.posx=0;$1.posy=0;$1.num=0;for(;;){if($1.posy==$1.size){break}$k[$j++]=$1.pixs;$k[$j++]=$1.posx;$k[$j++]=$1.posy;$1.qmv();var _Uf=$k[--$j];if($g($k[--$j],_Uf)==-1){var _Uk=$g($1.cws,~~($1.num/8));var _Um=-(7-$1.num%8);$k[$j++]=(_Um<0?_Uk>>>-_Um:_Uk<<_Um)&1;$k[$j++]=$1.pixs;$k[$j++]=$1.posx;$k[$j++]=$1.posy;$1.qmv();var _Uq=$k[--$j];var _Ur=$k[--$j];$p(_Ur,_Uq,$k[--$j]);$1.num=$1.num+1}$1.posx=$1.posx+1;if($1.posx==$1.size){$1.posx=0;$1.posy=$1.posy+1}}$1.evalfulln1n3=function(){$1.scrle=$k[--$j];$k[$j++]="scr1";$k[$j++]=0;$F($1.scrle,function(){var _V0=$k[--$j];$k[$j++]=_V0;if(_V0>=3){var _V1=$k[--$j];var _V3=$f($k[--$j]+_V1*4);$k[$j++]=_V3;$k[$j++]=_V3}$j--});var _V4=$k[--$j];$1[$k[--$j]]=_V4;$1.scr3=0;for(var _V8=5,_V7=$1.scrle.length-1;_V8<=_V7;_V8+=2){$1.j=_V8;if($g($1.scrle,$1.j)%3==0){$1.fact=~~($g($1.scrle,$1.j)/3);var _VH=$G($1.scrle,$1.j-4,4);for(var _VI=0,_VJ=_VH.length;_VI<_VJ;_VI++){$k[$j++]=$g(_VH,_VI)==$1.fact}var _VM=$k[--$j];var _VN=$k[--$j];var _VO=$k[--$j];var _VP=$k[--$j];if(_VP&&(_VO&&(_VN&&_VM))){if($1.j==5||$1.j+2>=$1.scrle.length){$1.scr3=$1.scr3+50}else{if($g($1.scrle,$1.j-5)>=3||$g($1.scrle,$1.j+1)>=3){$1.scr3=$1.scr3+50}}}}}for(var _Vd=1,_Vc=$1.scrle.length-5;_Vd<=_Vc;_Vd+=2){$1.j=_Vd;if($g($1.scrle,$1.j)%3==0){$1.fact=~~($g($1.scrle,$1.j)/3);var _Vm=$G($1.scrle,$1.j+1,4);for(var _Vn=0,_Vo=_Vm.length;_Vn<_Vo;_Vn++){$k[$j++]=$g(_Vm,_Vn)==$1.fact}var _Vr=$k[--$j];var _Vs=$k[--$j];var _Vt=$k[--$j];var _Vu=$k[--$j];if(_Vu&&(_Vt&&(_Vs&&_Vr))){if($1.j==1||$1.j+6>=$1.scrle.length){$1.scr3=$1.scr3+50}else{if($g($1.scrle,$1.j-1)>=3||$g($1.scrle,$1.j+5)>=3){$1.scr3=$1.scr3+50}}}}}$k[$j++]=$1.scr1;$k[$j++]=$1.scr3};$1.evalfull=function(){$1.sym=$k[--$j];$1.n1=0;$1.n3=0;$1.rle=$a($f($1.size+1));$1.lastpairs=$a($1.size);$1.thispairs=$a($1.size);$1.sizeadd1=$f($1.size+1);for(var _WI=0,_WH=$f($1.size-1);_WI<=_WH;_WI+=1){$1.i=_WI;$k[$j++]=Infinity;var _WK=$1.size;$k[$j++]=0;$k[$j++]=0;for(var _WM=$1.i,_WN=_WK,_WL=$f(_WK*_WK-1);_WN<0?_WM>=_WL:_WM<=_WL;_WM+=_WN){var _WP=$g($1.sym,_WM);var _WQ=$k[--$j];$k[$j++]=_WP;if($eq(_WQ,_WP)){var _WR=$k[--$j];var _WS=$k[--$j];$k[$j++]=$f(_WS+1);$k[$j++]=_WR}else{var _WT=$k[--$j];$k[$j++]=1;$k[$j++]=_WT}}$j--;var _WV=$m()+2;$r($G($1.rle,0,_WV-2));$1.evalfulln1n3();$1.n3=$f($k[--$j]+$1.n3);$1.n1=$f($k[--$j]+$1.n1);$j--;$1.symrow=$G($1.sym,$1.i*$1.size,$1.size);$k[$j++]=Infinity;var _Wg=$1.symrow;$k[$j++]=0;$k[$j++]=0;for(var _Wh=0,_Wi=_Wg.length;_Wh<_Wi;_Wh++){var _Wj=$g(_Wg,_Wh);var _Wk=$k[--$j];$k[$j++]=_Wj;if($eq(_Wk,_Wj)){var _Wl=$k[--$j];var _Wm=$k[--$j];$k[$j++]=$f(_Wm+1);$k[$j++]=_Wl}else{var _Wn=$k[--$j];$k[$j++]=1;$k[$j++]=_Wn}}$j--;var _Wp=$m()+2;$r($G($1.rle,0,_Wp-2));$1.evalfulln1n3();$1.n3=$f($k[--$j]+$1.n3);$1.n1=$f($k[--$j]+$1.n1);$j--}$k[$j++]=$f($1.n1+$1.n3)};$1.bestscore=999999999;for(var _Wz=0,_Wy=$1.masks.length-1;_Wz<=_Wy;_Wz+=1){$1.m=_Wz;$1.masksym=$a($1.size*$1.size);for(var _X6=0,_X5=$f($1.size*$1.size-1);_X6<=_X5;_X6+=1){$1.i=_X6;$p($1.masksym,$1.i,$xo($g($1.pixs,$1.i),$g($g($1.masks,$1.m),$1.i)))}if($1.masks.length!=1){$k[$j++]=$1.masksym;$1.evalfull();$1.score=$k[--$j];if($1.score<$1.bestscore){$1.bestsym=$1.masksym;$1.bestmaskval=$1.m;$1.bestscore=$1.score}}else{$1.bestsym=$1.masksym}}$1.pixs=$1.bestsym;$1.funval=((~~($f($1.size-21)/2)+20)*4+$1.eclval)*4+$1.bestmaskval;$k[$j++]=$a([($1.funval&3840)>>>8,($1.funval&240)>>>4,$1.funval&15]);$k[$j++]=4;$k[$j++]=16;$k[$j++]=19;$1.rscodes();$1.funvals=$k[--$j];$k[$j++]=Infinity;$F($1.funvals,function(){$k[$j++]=4;$1.tobin();$F($k[--$j],function(){var _Xb=$k[--$j];$k[$j++]=$f(_Xb-48)})});$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$1.funbits=$a();for(var _Xf=0,_Xe=$1.functionmap.length-1;_Xf<=_Xe;_Xf+=1){$1.i=_Xf;$F($g($1.functionmap,$1.i),function(){var _Xk=$k[--$j];$k[$j++]=$1.pixs;$q(_Xk);$1.qmv();var _Xo=$k[--$j];$p($k[--$j],_Xo,$g($1.funbits,$1.i))})}var _Xw=new Map([["ren",$0.renmatrix],["pixs",$1.pixs],["pixx",$1.size],["pixy",$1.size],["height",$1.size*2/72],["width",$1.size*2/72],["opt",$1.options]]);$k[$j++]=_Xw;if(!$1.dontdraw){$0.renmatrix()}};$0.dotcode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.rows=-1;$1.columns=-1;$1.ratio=-1;$1.parse=false;$1.parsefnc=false;$1.raw=false;$1.fast=false;$1.mask=-1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.rows=~~$1.rows;$1.columns=~~$1.columns;$1.ratio=+$1.ratio;$1.mask=~~$1.mask;if($1.ratio==-1&&$1.rows==-1&&$1.columns==-1){$1.ratio=3/2}$1.laa=-1;$1.lab=-2;$1.lac=-3;$1.bin=-4;$1.sfa=-5;$1.sfb=-6;$1.sb2=-7;$1.sb3=-8;$1.sb4=-9;$1.sb5=-10;$1.sb6=-11;$1.sfc=-12;$1.sc2=-13;$1.sc3=-14;$1.sc4=-15;$1.sc5=-16;$1.sc6=-17;$1.sc7=-18;$1.bsa=-19;$1.bsb=-20;$1.tma=-21;$1.tmb=-22;$1.tmc=-23;$1.tms=-24;$1.fn1=-25;$1.fn2=-26;$1.fn3=-27;$1.crl=-28;$1.aim=-29;$1.m05=-30;$1.m06=-31;$1.m12=-32;$1.mac=-33;var _G=new Map([["parse",$1.parse],["parsefnc",$1.parsefnc],["eci",true],["FNC1",$1.fn1],["FNC3",$1.fn3]]);$1.fncvals=_G;$k[$j++]="msg";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _J=$k[--$j];$1[$k[--$j]]=_J;$1.msglen=$1.msg.length;var _M=$1.msg;$k[$j++]="numecis";$k[$j++]=0;for(var _N=0,_O=_M.length;_N<_O;_N++){if($g(_M,_N)<=-1e6){var _Q=$k[--$j];$k[$j++]=$f(_Q+1)}}var _R=$k[--$j];$1[$k[--$j]]=_R;$1.msgtmp=$a($f($1.msg.length+$1.numecis*6));$1.j=0;for(var _Y=0,_X=$1.msg.length-1;_Y<=_X;_Y+=1){var _a=$g($1.msg,_Y);$k[$j++]=_a;if(_a<=-1e6){var _e=$G($R($s(7),-$k[--$j],10),1,6);for(var _f=0,_g=_e.length;_f<_g;_f++){$k[$j++]=$g(_e,_f)}$r($a(6));$P($1.msgtmp,$1.j+1,$k[--$j]);$p($1.msgtmp,$1.j,$1.fn2);$1.j=$1.j+7}else{$p($1.msgtmp,$1.j,$k[--$j]);$1.j=$1.j+1}}$1.msg=$1.msgtmp;$1.msglen=$1.msg.length;$1.charmaps=$a([$a([32,32,"00"]),$a(["!","!","01"]),$a(['"','"',"02"]),$a(["#","#","03"]),$a(["$","$","04"]),$a(["%","%","05"]),$a(["&","&","06"]),$a(["'","'","07"]),$a([40,40,"08"]),$a([41,41,"09"]),$a(["*","*","10"]),$a(["+","+","11"]),$a([",",",","12"]),$a(["-","-","13"]),$a([".",".","14"]),$a(["/","/","15"]),$a(["0","0","16"]),$a(["1","1","17"]),$a(["2","2","18"]),$a(["3","3","19"]),$a(["4","4","20"]),$a(["5","5","21"]),$a(["6","6","22"]),$a(["7","7","23"]),$a(["8","8","24"]),$a(["9","9","25"]),$a([":",":","26"]),$a([";",";","27"]),$a(["<","<","28"]),$a(["=","=","29"]),$a([">",">","30"]),$a(["?","?","31"]),$a(["@","@","32"]),$a(["A","A","33"]),$a(["B","B","34"]),$a(["C","C","35"]),$a(["D","D","36"]),$a(["E","E","37"]),$a(["F","F","38"]),$a(["G","G","39"]),$a(["H","H","40"]),$a(["I","I","41"]),$a(["J","J","42"]),$a(["K","K","43"]),$a(["L","L","44"]),$a(["M","M","45"]),$a(["N","N","46"]),$a(["O","O","47"]),$a(["P","P","48"]),$a(["Q","Q","49"]),$a(["R","R","50"]),$a(["S","S","51"]),$a(["T","T","52"]),$a(["U","U","53"]),$a(["V","V","54"]),$a(["W","W","55"]),$a(["X","X","56"]),$a(["Y","Y","57"]),$a(["Z","Z","58"]),$a(["[","[","59"]),$a([92,92,"60"]),$a(["]","]","61"]),$a(["^","^","62"]),$a(["_","_","63"]),$a([0,"`","64"]),$a([1,"a","65"]),$a([2,"b","66"]),$a([3,"c","67"]),$a([4,"d","68"]),$a([5,"e","69"]),$a([6,"f","70"]),$a([7,"g","71"]),$a([8,"h","72"]),$a([9,"i","73"]),$a([10,"j","74"]),$a([11,"k","75"]),$a([12,"l","76"]),$a([13,"m","77"]),$a([14,"n","78"]),$a([15,"o","79"]),$a([16,"p","80"]),$a([17,"q","81"]),$a([18,"r","82"]),$a([19,"s","83"]),$a([20,"t","84"]),$a([21,"u","85"]),$a([22,"v","86"]),$a([23,"w","87"]),$a([24,"x","88"]),$a([25,"y","89"]),$a([26,"z","90"]),$a([27,"{","91"]),$a([28,"|","92"]),$a([29,"}","93"]),$a([30,"~","94"]),$a([31,127,"95"]),$a([$1.sfb,$1.crl,"96"]),$a([$1.sb2,9,"97"]),$a([$1.sb3,28,"98"]),$a([$1.sb4,29,"99"]),$a([$1.sb5,30,$1.aim]),$a([$1.sb6,$1.sfa,$1.laa]),$a([$1.lab,$1.laa,$1.sfb]),$a([$1.sc2,$1.sc2,$1.sb2]),$a([$1.sc3,$1.sc3,$1.sb3]),$a([$1.sc4,$1.sc4,$1.sb4]),$a([$1.lac,$1.lac,$1.lab]),$a([$1.fn1,$1.fn1,$1.fn1]),$a([$1.fn2,$1.fn2,$1.fn2]),$a([$1.fn3,$1.fn3,$1.fn3]),$a([$1.bsa,$1.bsa,$1.bsa]),$a([$1.bsb,$1.bsb,$1.bsb]),$a([$1.bin,$1.bin,$1.bin])]);$1.charvals=$a([new Map,new Map,new Map]);for(var _3W=0,_3V=$1.charmaps.length-1;_3W<=_3V;_3W+=1){$1.i=_3W;$1.encs=$g($1.charmaps,$1.i);for(var _3a=0;_3a<=2;_3a+=1){$1.j=_3a;var _3d=$g($1.encs,$1.j);$k[$j++]=_3d;if($eq($t(_3d),"stringtype")){var _3g=$g($k[--$j],0);$k[$j++]=_3g}$p($g($1.charvals,$1.j),$k[--$j],$1.i)}}$1.Avals=$g($1.charvals,0);$1.Bvals=$g($1.charvals,1);$p($1.Bvals,$1.m05,97);$p($1.Bvals,$1.m06,98);$p($1.Bvals,$1.m12,99);$p($1.Bvals,$1.mac,100);$1.Cvals=$g($1.charvals,2);$k[$j++]=Infinity;var _4A=$a([$1.sc2,$1.sc3,$1.sc4,$1.sc5,$1.sc6,$1.sc7,$1.tma,$1.tmb,$1.tmc,$1.tms]);$k[$j++]=102;for(var _4B=0,_4C=_4A.length;_4B<_4C;_4B++){var _4F=$f($k[--$j]+1);$k[$j++]=$g(_4A,_4B);$k[$j++]=_4F;$k[$j++]=_4F}$j--;$1.BINvals=$d();$k[$j++]=Infinity;for(var _4I=0,_4J=$1.msglen+1;_4I<_4J;_4I++){$k[$j++]=0}$1.nDigits=$a();$k[$j++]=Infinity;for(var _4M=0,_4N=$1.msglen+1;_4M<_4N;_4M++){$k[$j++]=false}$1.SeventeenTen=$a();$k[$j++]=Infinity;for(var _4Q=0,_4R=$1.msglen+1;_4Q<_4R;_4Q++){$k[$j++]=false}$1.ECI=$a();$k[$j++]=Infinity;for(var _4U=0,_4V=$1.msglen+1;_4U<_4V;_4U++){$k[$j++]=false}$1.DatumA=$a();$k[$j++]=Infinity;for(var _4Y=0,_4Z=$1.msglen+1;_4Y<_4Z;_4Y++){$k[$j++]=false}$1.DatumB=$a();$k[$j++]=Infinity;for(var _4c=0,_4d=$1.msglen+1;_4c<_4d;_4c++){$k[$j++]=false}$1.DatumC=$a();$k[$j++]=Infinity;for(var _4g=0,_4h=$1.msglen+8;_4g<_4h;_4g++){$k[$j++]=false}$1.Binary=$a();$k[$j++]=Infinity;for(var _4k=0,_4l=$1.msglen+1;_4k<_4l;_4k++){$k[$j++]=0}$1.AheadC=$a();$k[$j++]=Infinity;for(var _4o=0,_4p=$1.msglen+1;_4o<_4p;_4o++){$k[$j++]=0}$1.TryC=$a();$k[$j++]=Infinity;for(var _4s=0,_4t=$1.msglen+1;_4s<_4t;_4s++){$k[$j++]=0}$1.AheadA=$a();$k[$j++]=Infinity;for(var _4w=0,_4x=$1.msglen+1;_4w<_4x;_4w++){$k[$j++]=0}$1.AheadB=$a();$k[$j++]=Infinity;for(var _50=0,_51=$1.msglen+1;_50<_51;_50++){$k[$j++]=0}$1.UntilEndSeg=$a();for(var _54=$1.msglen-1;_54>=0;_54-=1){$1.i=_54;$1.barchar=$g($1.msg,$1.i);if($1.barchar>=48&&$1.barchar<=57){$p($1.nDigits,$1.i,$f($g($1.nDigits,$1.i+1)+1))}var _5H=$g($1.Avals,$1.barchar)!==undefined;if(_5H){$p($1.DatumA,$1.i,true)}var _5M=$g($1.Bvals,$1.barchar)!==undefined;if(_5M){$p($1.DatumB,$1.i,true)}$1.CRLF=false;if($1.barchar==13&&$1.i<$1.msglen-1){if($g($1.msg,$1.i+1)==10){$1.CRLF=true}}if($1.CRLF){$p($1.DatumB,$1.i,true)}if($g($1.nDigits,$1.i)>=2){$p($1.DatumC,$1.i,true)}if($1.barchar<0){$p($1.DatumC,$1.i,true)}if($1.barchar>=128){$p($1.Binary,$1.i,true)}if($g($1.nDigits,$1.i)>=10){$k[$j++]=Infinity;$q($G($1.msg,$1.i,10));for(var _5p=0,_5q=1;_5p<_5q;_5p++){if($k[--$j]!=48){$k[$j++]=false;break}if($k[--$j]!=49){$k[$j++]=false;break}$j-=6;if($k[--$j]!=55){$k[$j++]=false;break}if($k[--$j]!=49){$k[$j++]=false;break}$k[$j++]=true}$p($1.SeventeenTen,$1.i,$k[--$j]);$l()}if($g($1.nDigits,$1.i+1)>=6&&$g($1.msg,$1.i)==$1.fn2){$p($1.ECI,$1.i,true)}if($1.barchar<0&&$1.barchar!=$1.fn3){$p($1.AheadC,$1.i,$f($g($1.AheadC,$1.i+1)+1))}else{if($g($1.nDigits,$1.i)<=1){$p($1.AheadC,$1.i,0)}else{$p($1.AheadC,$1.i,$f($g($1.AheadC,$1.i+2)+1))}}if($g($1.nDigits,$1.i)>0&&$gt($g($1.AheadC,$1.i),$g($1.AheadC,$1.i+1))){$p($1.TryC,$1.i,$g($1.AheadC,$1.i))}if($g($1.DatumA,$1.i)&&$g($1.TryC,$1.i)<2&&$1.barchar!=$1.fn3){$p($1.AheadA,$1.i,$f($g($1.AheadA,$1.i+1)+1))}if($g($1.DatumB,$1.i)&&$g($1.TryC,$1.i)<2&&$1.barchar!=$1.fn3){$k[$j++]=$1.AheadB;$k[$j++]=$1.i;$k[$j++]=$1.AheadB;$k[$j++]=$1.i+1;if($1.CRLF){var _73=$k[--$j];$k[$j++]=$f(_73+1)}var _74=$k[--$j];var _76=$g($k[--$j],_74);var _77=$k[--$j];$p($k[--$j],_77,$f(_76+1))}if($1.barchar!=$1.fn3){$p($1.UntilEndSeg,$1.i,$f($g($1.UntilEndSeg,$1.i+1)+1))}}$1.A=0;$1.B=1;$1.C=2;$1.BIN=3;$1.addtocws=function(){var _7G=$k[--$j];$P($1.cws,$1.j,_7G);$1.j=_7G.length+$1.j};$1.base259to103=function(){$1.in=$k[--$j];$1.inlen=$1.in.length;$k[$j++]=Infinity;for(var _7N=0,_7O=5-$1.inlen;_7N<_7O;_7N++){$k[$j++]=0}$q($1.in);$1.in=$a();$1.out=$a(6);$k[$j++]=Infinity;$q($G($1.in,0,2));$1.msbs=$a();$k[$j++]=Infinity;$q($1.msbs);var _7W=$k[--$j];var _7X=$k[--$j];$k[$j++]=$f(_7W+_7X*259);for(var _7Y=0,_7Z=2;_7Y<_7Z;_7Y++){var _7a=$k[--$j];$k[$j++]=_7a%103;$k[$j++]=~~(_7a/103)}$1.mscs=$a();$k[$j++]=Infinity;$q($G($1.in,2,3));$1.lsbs=$a();$k[$j++]=Infinity;$q($1.lsbs);var _7g=$k[--$j];var _7h=$k[--$j];var _7i=$k[--$j];$k[$j++]=$f($f(_7g+_7h*259)+_7i*67081);for(var _7j=0,_7k=3;_7j<_7k;_7j++){var _7l=$k[--$j];$k[$j++]=_7l%103;$k[$j++]=~~(_7l/103)}$1.lscs=$a();var _7o=$g($1.lscs,0);var _7q=$g($1.mscs,0);$p($1.out,5,$f(_7o+_7q*42)%103);var _7t=$g($1.lscs,1);var _7v=$g($1.mscs,0);var _7x=$g($1.mscs,1);$p($1.out,4,$f($f($f(~~($f(_7o+_7q*42)/103)+_7t)+_7v*68)+_7x*42)%103);var _80=$g($1.lscs,2);var _82=$g($1.mscs,0);var _84=$g($1.mscs,1);var _86=$g($1.mscs,2);$p($1.out,3,$f($f($f($f(~~($f($f($f(~~($f(_7o+_7q*42)/103)+_7t)+_7v*68)+_7x*42)/103)+_80)+_82*92)+_84*68)+_86*42)%103);var _89=$g($1.lscs,3);var _8B=$g($1.mscs,0);var _8D=$g($1.mscs,1);var _8F=$g($1.mscs,2);$p($1.out,2,$f($f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_7o+_7q*42)/103)+_7t)+_7v*68)+_7x*42)/103)+_80)+_82*92)+_84*68)+_86*42)/103)+_89)+_8B*15)+_8D*92)+_8F*68)%103);var _8I=$g($1.mscs,1);var _8K=$g($1.mscs,2);$p($1.out,1,$f($f(~~($f($f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_7o+_7q*42)/103)+_7t)+_7v*68)+_7x*42)/103)+_80)+_82*92)+_84*68)+_86*42)/103)+_89)+_8B*15)+_8D*92)+_8F*68)/103)+_8I*15)+_8K*92)%103);$p($1.out,0,$f(~~($f($f(~~($f($f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_7o+_7q*42)/103)+_7t)+_7v*68)+_7x*42)/103)+_80)+_82*92)+_84*68)+_86*42)/103)+_89)+_8B*15)+_8D*92)+_8F*68)/103)+_8I*15)+_8K*92)/103)+$g($1.mscs,2)*15)%103);$k[$j++]=$G($1.out,6-$1.inlen-1,$1.inlen+1)};$1.finaliseBIN=function(){if($1.bpos!=0){$k[$j++]=$G($1.bvals,0,$1.bpos);$1.base259to103();$q($k[--$j]);$1.bpos=0}};$1.addtobin=function(){$p($1.bvals,$1.bpos,$k[--$j]);$1.bpos=$1.bpos+1;if($1.bpos==5){$1.finaliseBIN()}};$1.ECIabc=function(){var _8f=$G($1.msg,$1.i+1,6);$k[$j++]=0;for(var _8g=0,_8h=_8f.length;_8g<_8h;_8g++){var _8j=$k[--$j];$k[$j++]=$f(_8j+$f($g(_8f,_8g)-48))*10}var _8l=~~($k[--$j]/10);$k[$j++]=_8l;if(_8l>=40){var _8n=$f($k[--$j]-40);var _8o=_8n%12769;$k[$j++]=~~(_8n/12769)+40;$k[$j++]=~~(_8o/113);$k[$j++]=_8o%113}};$1.ECIbin=function(){$k[$j++]=Infinity;var _8r=$G($1.msg,$1.i+1,6);$k[$j++]=0;for(var _8s=0,_8t=_8r.length;_8s<_8t;_8s++){var _8v=$k[--$j];$k[$j++]=$f(_8v+$f($g(_8r,_8s)-48))*10}var _8x=~~($k[--$j]/10);$k[$j++]=_8x;if(_8x>=65536){var _8y=$k[--$j];var _8z=_8y%65536;$k[$j++]=258;$k[$j++]=~~(_8y/65536);$k[$j++]=~~(_8z/256);$k[$j++]=_8z%256}else{var _90=$k[--$j];$k[$j++]=_90;if(_90>=256){var _91=$k[--$j];$k[$j++]=257;$k[$j++]=~~(_91/256);$k[$j++]=_91%256}else{var _92=$k[--$j];$k[$j++]=256;$k[$j++]=_92}}var _93=$a();for(var _94=0,_95=_93.length;_94<_95;_94++){$k[$j++]=$g(_93,_94);$1.addtobin()}};$1.encC=function(){for(var _97=0,_98=1;_97<_98;_97++){if($1.i==$1.segstart){for(var _9B=0,_9C=1;_9B<_9C;_9B++){if($1.i>$f($1.segend-7)){$k[$j++]=0;break}if($g($1.msg,$1.segstart)!=91){$k[$j++]=0;break}if($g($1.msg,$1.segstart+1)!=41){$k[$j++]=0;break}if($g($1.msg,$1.segstart+2)!=62){$k[$j++]=0;break}if($g($1.msg,$1.segstart+3)!=30){$k[$j++]=0;break}var _9T=$g($1.msg,$1.segstart+4);if(_9T<48||_9T>57){$k[$j++]=0;break}var _9W=$g($1.msg,$1.segstart+5);if(_9W<48||_9W>57){$k[$j++]=0;break}if($g($1.msg,$f($1.segend-1))!=4){$k[$j++]=0;break}var _9g=$f($f($g($1.msg,$1.segstart+4)-48)*10+$f($g($1.msg,$1.segstart+5)-48));$k[$j++]=_9g;if(_9g!=5&&(_9g!=6&&_9g!=12)){$j--;$k[$j++]=$1.mac;break}if($g($1.msg,$1.segstart+6)!=29){$j--;$k[$j++]=0;break}if($g($1.msg,$f($1.segend-2))!=30){$j--;$k[$j++]=0;break}var _9o=$k[--$j];$k[$j++]=_9o;if(_9o==5){$j--;$k[$j++]=$1.m05;break}if($k[--$j]==6){$k[$j++]=$1.m06;break}$k[$j++]=$1.m12;break}$1.inmac=$k[--$j];if($1.inmac!=0){$1.mode=$1.B;$k[$j++]=$a([$g($1.Bvals,$1.inmac)]);$1.addtocws();var _A3=$1.inmac!=$1.mac?7:6;$1.i=$1.i+_A3;break}}if($1.i==$1.segstart){if($g($1.nDigits,$1.i)>=2){$k[$j++]=$a([$g($1.Cvals,$1.fn1)]);$1.addtocws()}if($g($1.msg,$1.i)==$1.fn1&&$g($1.nDigits,$1.i+1)>=2){$1.i=$1.i+1}}if($g($1.SeventeenTen,$1.i)){$k[$j++]=$a([$g($1.Cvals,$1.aim),$f($f($g($1.msg,$1.i+2)-48)*10+$f($g($1.msg,$1.i+3)-48)),$f($f($g($1.msg,$1.i+4)-48)*10+$f($g($1.msg,$1.i+5)-48)),$f($f($g($1.msg,$1.i+6)-48)*10+$f($g($1.msg,$1.i+7)-48))]);$1.addtocws();$1.i=$1.i+10;break}if($g($1.DatumC,$1.i)){var _Aq=$g($1.msg,$1.i);if(_Aq==$1.fn1||(_Aq==$1.fn2||_Aq==$1.fn3)){$k[$j++]=$a([$g($1.Cvals,$g($1.msg,$1.i))]);$1.addtocws();if($g($1.ECI,$1.i)){$k[$j++]=Infinity;$1.ECIabc();var _B3=$a();$k[$j++]=_B3;$1.addtocws();$1.i=$1.i+7;break}if($g($1.msg,$1.i)==$1.fn3&&$1.segstart!=$1.i){$1.i=$1.i+1;$1.inmac=0;$1.segstart=$1.i;$1.segend=$f($1.i+$g($1.UntilEndSeg,$1.i));break}$1.i=$1.i+1;break}$k[$j++]=$a([$f($f($g($1.msg,$1.i)-48)*10+$f($g($1.msg,$1.i+1)-48))]);$1.addtocws();$1.i=$1.i+2;break}if($g($1.Binary,$1.i)){if($g($1.nDigits,$1.i+1)>0){if($g($1.msg,$1.i)<160){$k[$j++]=$a([$g($1.Cvals,$1.bsa),$g($1.Avals,$f($g($1.msg,$1.i)-128))]);$1.addtocws()}else{$k[$j++]=$a([$g($1.Cvals,$1.bsb),$g($1.Bvals,$f($g($1.msg,$1.i)-128))]);$1.addtocws()}$1.i=$1.i+1;break}$k[$j++]=$a([$g($1.Cvals,$1.bin)]);$1.addtocws();$1.mode=$1.BIN;break}$1.m=$g($1.AheadA,$1.i);$1.n=$g($1.AheadB,$1.i);if($gt($1.m,$1.n)){$k[$j++]=$a([$g($1.Cvals,$1.laa)]);$1.addtocws();$1.mode=$1.A;break}if($1.i==$1.segstart){var _CE=$g($1.msg,$1.i);if(_CE==9||(_CE==28||(_CE==29||_CE==30))){$k[$j++]=$a([$g($1.Cvals,$1.laa)]);$1.addtocws();$1.mode=$1.A;break}}if($1.n>4){$k[$j++]=$a([$g($1.Cvals,$1.lab)]);$1.addtocws();$1.mode=$1.B;break}$k[$j++]=$a([$g($1.Cvals,$g($a([$1.sfb,$1.sb2,$1.sb3,$1.sb4]),$f($1.n-1)))]);$1.addtocws();for(var _Cb=0,_Cc=$1.n;_Cb<_Cc;_Cb++){$k[$j++]=$a([$g($1.Bvals,$g($1.msg,$1.i))]);$1.addtocws();$1.i=$1.i+1}break}};$1.encB=function(){for(var _Ck=0,_Cl=1;_Ck<_Cl;_Ck++){$1.n=$g($1.TryC,$1.i);if($1.n>=2){if($1.n>4){$k[$j++]=$a([$g($1.Bvals,$1.lac)]);$1.addtocws();$1.mode=$1.C;break}$k[$j++]=$a([$g($1.Bvals,$g($a([$1.sfc,$1.sc2,$1.sc3,$1.sc4]),$f($1.n-1)))]);$1.addtocws();for(var _D7=0,_D8=$1.n;_D7<_D8;_D7++){if($g($1.msg,$1.i)<0){$k[$j++]=$a([$g($1.Cvals,$g($1.msg,$1.i))]);$1.addtocws();$1.i=$1.i+1}else{$k[$j++]=$a([$f($f($g($1.msg,$1.i)-48)*10+$f($g($1.msg,$1.i+1)-48))]);$1.addtocws();$1.i=$1.i+2}}break}if($g($1.DatumB,$1.i)){var _DW=$g($1.msg,$1.i);if(_DW==$1.fn1||(_DW==$1.fn2||_DW==$1.fn3)){$k[$j++]=$a([$g($1.Bvals,$g($1.msg,$1.i))]);$1.addtocws();if($g($1.ECI,$1.i)){$k[$j++]=Infinity;$1.ECIabc();var _Dj=$a();$k[$j++]=_Dj;$1.addtocws();$1.i=$1.i+7;break}if($g($1.msg,$1.i)==$1.fn3&&$1.i!=$1.segstart){$1.i=$1.i+1;$1.mode=$1.C;$1.inmac=0;$1.segstart=$1.i;$1.segend=$f($1.i+$g($1.UntilEndSeg,$1.i));break}$1.i=$1.i+1;break}if($g($1.msg,$1.i)==13&&$1.i<$1.msglen-1){if($g($1.msg,$1.i+1)==10){$k[$j++]=$a([$g($1.Bvals,$1.crl)]);$1.addtocws();$1.i=$1.i+2;break}}$k[$j++]=$a([$g($1.Bvals,$g($1.msg,$1.i))]);$1.addtocws();$1.i=$1.i+1;break}if($g($1.Binary,$1.i)){if($g($1.DatumB,$1.i+1)){if($g($1.msg,$1.i)<160){$k[$j++]=$a([$g($1.Bvals,$1.bsa),$g($1.Avals,$f($g($1.msg,$1.i)-128))]);$1.addtocws()}else{$k[$j++]=$a([$g($1.Bvals,$1.bsb),$g($1.Bvals,$f($g($1.msg,$1.i)-128))]);$1.addtocws()}$1.i=$1.i+1;break}$k[$j++]=$a([$g($1.Bvals,$1.bin)]);$1.addtocws();$1.mode=$1.BIN;break}if($g($1.AheadA,$1.i)==1){$k[$j++]=$a([$g($1.Bvals,$1.sfa),$g($1.Avals,$g($1.msg,$1.i))]);$1.addtocws();$1.i=$1.i+1;break}$k[$j++]=$a([$g($1.Bvals,$1.laa)]);$1.addtocws();$1.mode=$1.A;break}};$1.encA=function(){for(var _F8=0,_F9=1;_F8<_F9;_F8++){$1.n=$g($1.TryC,$1.i);if($1.n>=2){if($1.n>4){$k[$j++]=$a([$g($1.Avals,$1.lac)]);$1.addtocws();$1.mode=$1.C;break}$k[$j++]=$a([$g($1.Avals,$g($a([$1.sfc,$1.sc2,$1.sc3,$1.sc4]),$f($1.n-1)))]);$1.addtocws();for(var _FV=0,_FW=$1.n;_FV<_FW;_FV++){if($g($1.msg,$1.i)<0){$k[$j++]=$a([$g($1.Cvals,$g($1.msg,$1.i))]);$1.addtocws();$1.i=$1.i+1}else{$k[$j++]=$a([$f($f($g($1.msg,$1.i)-48)*10+$f($g($1.msg,$1.i+1)-48))]);$1.addtocws();$1.i=$1.i+2}}break}if($g($1.DatumA,$1.i)){var _Fu=$g($1.msg,$1.i);if(_Fu==$1.fn1||(_Fu==$1.fn2||_Fu==$1.fn3)){$k[$j++]=$a([$g($1.Avals,$g($1.msg,$1.i))]);$1.addtocws();if($g($1.ECI,$1.i)){$k[$j++]=Infinity;$1.ECIabc();var _G7=$a();$k[$j++]=_G7;$1.addtocws();$1.i=$1.i+7;break}if($g($1.msg,$1.i)==$1.fn3&&$1.i!=$1.segstart){$1.i=$1.i+1;$1.mode=$1.C;$1.inmac=0;$1.segstart=$1.i;$1.segend=$f($1.i+$g($1.UntilEndSeg,$1.i));break}$1.i=$1.i+1;break}$k[$j++]=$a([$g($1.Avals,$g($1.msg,$1.i))]);$1.addtocws();$1.i=$1.i+1;break}if($g($1.Binary,$1.i)){if($g($1.DatumA,$1.i+1)){if($g($1.msg,$1.i)<160){$k[$j++]=$a([$g($1.Avals,$1.bsa),$g($1.Avals,$f($g($1.msg,$1.i)-128))]);$1.addtocws()}else{$k[$j++]=$a([$g($1.Avals,$1.bsb),$g($1.Bvals,$f($g($1.msg,$1.i)-128))]);$1.addtocws()}$1.i=$1.i+1;break}$k[$j++]=$a([$g($1.Avals,$1.bin)]);$1.addtocws();$1.mode=$1.BIN;break}$1.n=$g($1.AheadB,$1.i);if($1.n>6){$k[$j++]=$a([$g($1.Avals,$1.lab)]);$1.addtocws();$1.mode=$1.B;break}$k[$j++]=$a([$g($1.Avals,$g($a([$1.sfb,$1.sb2,$1.sb3,$1.sb4,$1.sb5,$1.sb6]),$f($1.n-1)))]);$1.addtocws();for(var _HN=0,_HO=$1.n;_HN<_HO;_HN++){$k[$j++]=$a([$g($1.Bvals,$g($1.msg,$1.i))]);$1.addtocws();$1.i=$1.i+1}break}};$1.encBIN=function(){for(var _HW=0,_HX=1;_HW<_HX;_HW++){$1.n=$g($1.TryC,$1.i);if($1.n>=2){$k[$j++]=Infinity;$1.finaliseBIN();var _Hc=$a();$k[$j++]=_Hc;$1.addtocws();if($1.n>7){var _Hi=$k[--$j];$1.mode=$1.C;$k[$j++]=$f(_Hi+$a([$g($1.BINvals,$1.tmc)]));break}$k[$j++]=$a([$g($1.BINvals,$g($a([$1.sc2,$1.sc3,$1.sc4,$1.sc5,$1.sc6,$1.sc7]),$f($1.n-2)))]);$1.addtocws();for(var _Hx=0,_Hy=$1.n;_Hx<_Hy;_Hx++){if($g($1.msg,$1.i)<0){$k[$j++]=$a([$g($1.Cvals,$g($1.msg,$1.i))]);$1.addtocws();$1.i=$1.i+1}else{$k[$j++]=$a([$f($f($g($1.msg,$1.i)-48)*10+$f($g($1.msg,$1.i+1)-48))]);$1.addtocws();$1.i=$1.i+2}}break}if($g($1.ECI,$1.i)&&$g($1.Binary,$1.i+7)){$k[$j++]=Infinity;$1.ECIbin();var _IN=$a();$k[$j++]=_IN;$1.addtocws();$1.i=$1.i+7;if($1.i==$1.msglen){$k[$j++]=Infinity;$1.finaliseBIN();var _IR=$a();$k[$j++]=_IR;$1.addtocws()}break}if($g($1.msg,$1.i)>=0){if($g($1.Binary,$1.i)||$g($1.Binary,$1.i+1)||$g($1.Binary,$1.i+2)||$g($1.Binary,$1.i+3)||$g($1.ECI,$1.i+1)&&$g($1.Binary,$1.i+8)){$k[$j++]=Infinity;$k[$j++]=$g($1.msg,$1.i);$1.addtobin();var _Iq=$a();$k[$j++]=_Iq;$1.addtocws();$1.i=$1.i+1;if($1.i==$1.msglen){$k[$j++]=Infinity;$1.finaliseBIN();var _Iu=$a();$k[$j++]=_Iu;$1.addtocws()}break}}$k[$j++]=Infinity;$1.finaliseBIN();var _Iv=$a();$k[$j++]=_Iv;$1.addtocws();if($1.i!=$1.msglen-1){if($g($1.msg,$1.i)==$1.fn3&&$1.i!=$1.segstart){$k[$j++]=$a([$g($1.BINvals,$1.tms)]);$1.addtocws();$1.i=$1.i+1;$1.mode=$1.C;$1.inmac=0;$1.segstart=$1.i;$1.segend=$f($1.i+$g($1.UntilEndSeg,$1.i));break}if($gt($g($1.AheadA,$1.i),$g($1.AheadB,$1.i))){$k[$j++]=$a([$g($1.BINvals,$1.tma)]);$1.addtocws();$1.mode=$1.A}else{$k[$j++]=$a([$g($1.BINvals,$1.tmb)]);$1.addtocws();$1.mode=$1.B}break}break}};$1.cws=$a($1.msglen*2+1);$1.mode=$1.C;$1.bvals=$a(5);$1.bpos=0;$1.inmac=0;$1.segstart=0;$1.segend=$g($1.UntilEndSeg,0);$1.i=0;$1.j=0;for(;;){if($1.i>=$1.msglen){break}if($1.inmac!=0){if($1.inmac!=$1.mac&&$1.i==$f($1.segend-2)){$1.i=$1.i+2;if($1.i>=$1.msglen){break}}if($1.inmac==$1.mac&&$1.i==$f($1.segend-1)){$1.i=$1.i+1;if($1.i>=$1.msglen){break}}}if($1[$g($a(["encA","encB","encC","encBIN"]),$1.mode)]()===true){break}}$1.cws=$G($1.cws,0,$1.j);$1.nd=$1.cws.length;$1.minarea=(($1.nd+3+~~($1.nd/2))*9+2)*2;if($1.ratio!=-1){$1.hgt=Math.sqrt($1.minarea/$1.ratio);$1.wid=Math.sqrt($1.minarea*$1.ratio);$1.h=~~$1.hgt;$1.w=~~$1.wid;if(($1.h+$1.w)%2==1){if($1.h*$1.w<$1.minarea){$1.h=$1.h+1;$1.w=$1.w+1}}else{if($1.hgt*$1.w<$1.wid*$1.h){$1.w=$1.w+1;if($1.h*$1.w<$1.minarea){$1.w=$1.w-1;$1.h=$1.h+1;if($1.h*$1.w<$1.minarea){$1.w=$1.w+2}}}else{$1.h=$1.h+1;if($1.h*$1.w<$1.minarea){$1.h=$1.h-1;$1.w=$1.w+1;if($1.h*$1.w<$1.minarea){$1.h=$1.h+2}}}}$1.rows=$1.h;$1.columns=$1.w}else{if($1.columns==-1){var _Kk=~~(($1.minarea+$1.rows-1)/$1.rows);$k[$j++]="columns";$k[$j++]=_Kk;if((_Kk+$1.rows)%2==0){var _Km=$k[--$j];$k[$j++]=$f(_Km+1)}var _Kn=$k[--$j];$1[$k[--$j]]=_Kn}if($1.rows==-1){var _Kt=~~(($1.minarea+$1.columns-1)/$1.columns);$k[$j++]="rows";$k[$j++]=_Kt;if((_Kt+$1.columns)%2==0){var _Kv=$k[--$j];$k[$j++]=$f(_Kv+1)}var _Kw=$k[--$j];$1[$k[--$j]]=_Kw}}$1.ndots=~~($1.rows*$1.columns/2);for(;;){var _L1=$1.nd+1;if((_L1+(~~(_L1/2)+3))*9+2>$1.ndots){break}$1.nd=$1.nd+1}$1.nc=~~($1.nd/2)+3;$1.nw=$1.nd+$1.nc;$1.rembits=$1.ndots-($1.nw*9+2);if($1.nd>$1.cws.length){$k[$j++]=Infinity;$q($1.cws);var _LE=$1.mode==$1.BIN?109:106;$k[$j++]=_LE;for(var _LH=0,_LI=$1.nd-$1.cws.length-1;_LH<_LI;_LH++){$k[$j++]=106}$1.cws=$a()}$1.encs=$a(["101010101","010101011","010101101","010110101","011010101","101010110","101011010","101101010","110101010","010101110","010110110","010111010","011010110","011011010","011101010","100101011","100101101","100110101","101001011","101001101","101010011","101011001","101100101","101101001","110010101","110100101","110101001","001010111","001011011","001011101","001101011","001101101","001110101","010010111","010011011","010011101","010100111","010110011","010111001","011001011","011001101","011010011","011011001","011100101","011101001","100101110","100110110","100111010","101001110","101011100","101100110","101101100","101110010","101110100","110010110","110011010","110100110","110101100","110110010","110110100","111001010","111010010","111010100","001011110","001101110","001110110","001111010","010011110","010111100","011001110","011011100","011100110","011101100","011110010","011110100","100010111","100011011","100011101","100100111","100110011","100111001","101000111","101100011","101110001","110001011","110001101","110010011","110011001","110100011","110110001","111000101","111001001","111010001","000101111","000110111","000111011","000111101","001001111","001100111","001110011","001111001","010001111","011000111","011100011","011110001","100011110","100111100","101111000","110001110","110011100","110111000","111000110","111001100"]);if($1.rows%2==0){$1.sixedges=$a([$a([$1.columns-1,$1.rows-2]),$a([0,$1.rows-2]),$a([$1.columns-2,$1.rows-1]),$a([1,$1.rows-1]),$a([$1.columns-1,0]),$a([0,0])])}else{$1.sixedges=$a([$a([$1.columns-2,0]),$a([$1.columns-2,$1.rows-1]),$a([$1.columns-1,1]),$a([$1.columns-1,$1.rows-2]),$a([0,0]),$a([0,$1.rows-1])])}$1.dmv=function(){var _Lp=$k[--$j];var _Lq=$k[--$j];$k[$j++]=$f(_Lq+_Lp*$1.columns)};$1.outline=$a($1.rows*$1.columns);for(var _Lw=0,_Lv=$1.rows-1;_Lw<=_Lv;_Lw+=1){$1.y=_Lw;for(var _Lz=0,_Ly=$1.columns-1;_Lz<=_Ly;_Lz+=1){$1.x=_Lz;$k[$j++]=$1.outline;$k[$j++]=$1.x;$k[$j++]=$1.y;$1.dmv();var _M5=$k[--$j];$p($k[--$j],_M5,($1.x+$1.y)%2-1)}}var _M7=$1.sixedges;for(var _M8=0,_M9=_M7.length;_M8<_M9;_M8++){$k[$j++]=$1.outline;$q($g(_M7,_M8));$1.dmv();var _MC=$k[--$j];$p($k[--$j],_MC,1)}$1.clearcol=function(){$1.x=$k[--$j];$k[$j++]=true;for(var _MI=$1.x&1,_MH=$1.rows-1;_MI<=_MH;_MI+=2){$k[$j++]=$1.x;$k[$j++]=_MI;$1.dmv();if($g($1.sym,$k[--$j])==1){$j--;$k[$j++]=false;break}}};$1.clearrow=function(){$1.y=$k[--$j];$k[$j++]=true;for(var _MR=$1.y&1,_MQ=$1.columns-1;_MR<=_MQ;_MR+=2){$k[$j++]=_MR;$k[$j++]=$1.y;$1.dmv();if($g($1.sym,$k[--$j])==1){$j--;$k[$j++]=false;break}}};$1.evalsymbol=function(){$1.sym=$k[--$j];$1.worst=9999999;var _Mb=$a([$a(["x",0]),$a(["x",1]),$a(["y",0]),$a(["y",1])]);for(var _Mc=0,_Md=_Mb.length;_Mc<_Md;_Mc++){$q($g(_Mb,_Mc));$1.fl=$k[--$j];$1.dir=$k[--$j];$1.sum=0;$1.first=-1;$1.last=-1;var _Mi=$eq($1.dir,"x")?$1.columns:$1.rows;for(var _Mk=0,_Mj=_Mi-1;_Mk<=_Mj;_Mk+=1){$1[$1.dir]=_Mk;var _Mm=$1.sym;var _Mo=$1[$1.dir];var _Mq=$eq($1.dir,"x")?$1.rows:$1.columns;var _Mt=(_Mq-1)*$1.fl;if($eq($1.dir,"y")){var _=_Mt;_Mt=_Mo;_Mo=_}$k[$j++]=_Mm;$k[$j++]=_Mo;$k[$j++]=_Mt;$1.dmv();var _Mu=$k[--$j];if($g($k[--$j],_Mu)==1){if($1.first==-1){$1.first=$1[$1.dir]}$1.last=$1[$1.dir];$1.sum=$1.sum+1}}var _N7=$eq($1.dir,"x")?$1.rows:$1.columns;var _N8=$f($f($1.sum+$1.last)-$1.first)*_N7;$k[$j++]=_N8;if(_N8<$1.worst){$1.worst=$k[--$j]}else{$j--}}$1.pen=0;if($1.rows%2==1||$1.rows<=12){$1.sum=0;$1.p=0;for(var _NF=1,_NE=$1.columns-2;_NF<=_NE;_NF+=1){$k[$j++]=_NF;$1.clearcol();if($k[--$j]){$1.sum=$1.sum+1;$k[$j++]="p";if($1.sum==1){$k[$j++]=$1.rows}else{$k[$j++]=$1.p*$1.rows}var _NM=$k[--$j];$1[$k[--$j]]=_NM}else{$1.sum=0;$1.pen=$1.pen+$1.p;$1.p=0}}$1.pen=$1.pen+$1.p}if($1.rows%2==0||$1.columns<=12){$1.sum=0;$1.p=0;for(var _NW=1,_NV=$1.rows-2;_NW<=_NV;_NW+=1){$k[$j++]=_NW;$1.clearrow();if($k[--$j]){$1.sum=$1.sum+1;$k[$j++]="p";if($1.sum==1){$k[$j++]=$1.columns}else{$k[$j++]=$1.p*$1.columns}var _Nd=$k[--$j];$1[$k[--$j]]=_Nd}else{$1.sum=0;$1.pen=$1.pen+$1.p;$1.p=0}}$1.pen=$1.pen+$1.p}$k[$j++]=Infinity;for(var _Nk=0,_Nl=($1.columns+4)*2;_Nk<_Nl;_Nk++){$k[$j++]=0}for(var _Np=0,_Nq=$1.columns,_No=$1.sym.length-1;_Nq<0?_Np>=_No:_Np<=_No;_Np+=_Nq){$k[$j++]=0;$k[$j++]=0;$q($G($1.sym,_Np,$1.columns));$k[$j++]=0;$k[$j++]=0}for(var _Nv=0,_Nw=($1.columns+4)*2;_Nv<_Nw;_Nv++){$k[$j++]=0}$1.symp=$a();$1.columns=$1.columns+4;$1.rows=$1.rows+4;$1.sum=0;for(var _O2=2,_O1=$1.rows-3;_O2<=_O1;_O2+=1){$1.y=_O2;for(var _O6=($1.y&1)+2,_O5=$1.columns-3;_O6<=_O5;_O6+=2){$1.x=_O6;for(var _O7=0,_O8=1;_O7<_O8;_O7++){$k[$j++]=$1.symp;$k[$j++]=$1.x-1;$k[$j++]=$1.y-1;$1.dmv();var _OC=$k[--$j];if($g($k[--$j],_OC)==1){break}$k[$j++]=$1.symp;$k[$j++]=$1.x+1;$k[$j++]=$1.y-1;$1.dmv();var _OI=$k[--$j];if($g($k[--$j],_OI)==1){break}$k[$j++]=$1.symp;$k[$j++]=$1.x-1;$k[$j++]=$1.y+1;$1.dmv();var _OO=$k[--$j];if($g($k[--$j],_OO)==1){break}$k[$j++]=$1.symp;$k[$j++]=$1.x+1;$k[$j++]=$1.y+1;$1.dmv();var _OU=$k[--$j];if($g($k[--$j],_OU)==1){break}$k[$j++]=$1.symp;$k[$j++]=$1.x;$k[$j++]=$1.y;$1.dmv();var _Oa=$k[--$j];if($g($k[--$j],_Oa)==0){$1.sum=$1.sum+1;break}$k[$j++]=$1.symp;$k[$j++]=$1.x-2;$k[$j++]=$1.y;$1.dmv();var _Oh=$k[--$j];if($g($k[--$j],_Oh)==1){break}$k[$j++]=$1.symp;$k[$j++]=$1.x;$k[$j++]=$1.y-2;$1.dmv();var _On=$k[--$j];if($g($k[--$j],_On)==1){break}$k[$j++]=$1.symp;$k[$j++]=$1.x+2;$k[$j++]=$1.y;$1.dmv();var _Ot=$k[--$j];if($g($k[--$j],_Ot)==1){break}$k[$j++]=$1.symp;$k[$j++]=$1.x;$k[$j++]=$1.y+2;$1.dmv();var _Oz=$k[--$j];if($g($k[--$j],_Oz)==1){break}$1.sum=$1.sum+1}}}$1.columns=$1.columns-4;$1.rows=$1.rows-4;if($1.worst==0){$k[$j++]=-99999}else{$k[$j++]=$f($f($1.worst-$1.sum*$1.sum)-$1.pen)}};$k[$j++]=Infinity;$k[$j++]=1;for(var _PA=0,_PB=112;_PA<_PB;_PA++){var _PC=$k[--$j];$k[$j++]=_PC;$k[$j++]=_PC*3%113}$1.rsalog=$a();$1.step=~~($1.nw/112)+1;$1.offset=function(){var _PG=$k[--$j];$k[$j++]=$f(_PG*$1.step+$1.start)};$1.bestscore=-99999999;$k[$j++]="masks";if($1.mask!=-1){$k[$j++]=$a([$1.mask])}else{if($1.fast){$k[$j++]=$a([3,2,1,0])}else{$k[$j++]=$a([0,1,2,3])}}var _PO=$k[--$j];$1[$k[--$j]]=_PO;$1.litmasks=$a(4);$F($1.masks,function(){$1.mask=$k[--$j];$k[$j++]=Infinity;var _PX=$1.cws;$k[$j++]=$1.mask;$k[$j++]=$g($a([0,3,7,17]),$1.mask);$k[$j++]=0;for(var _PY=0,_PZ=_PX.length;_PY<_PZ;_PY++){var _Pb=$k[--$j];var _Pc=$k[--$j];$k[$j++]=$f($g(_PX,_PY)+_Pb)%113;$k[$j++]=_Pc;$k[$j++]=$f(_Pb+_Pc)}$j-=2;for(var _Pe=0,_Pf=$1.nc;_Pe<_Pf;_Pe++){$k[$j++]=0}$1.rscws=$a();for(var _Pj=0,_Pi=$1.step-1;_Pj<=_Pi;_Pj+=1){$1.start=_Pj;$1.ND=~~(($1.nd+1-$1.start+$1.step-1)/$1.step);$1.NW=~~(($1.nw+1-$1.start+$1.step-1)/$1.step);$1.NC=$1.NW-$1.ND;$k[$j++]=Infinity;$k[$j++]=1;for(var _Pv=0,_Pw=$1.NC;_Pv<_Pw;_Pv++){$k[$j++]=0}$1.coeffs=$a();for(var _Q0=1,_Pz=$1.NC;_Q0<=_Pz;_Q0+=1){$1.i=_Q0;for(var _Q2=$1.NC;_Q2>=1;_Q2-=1){$1.j=_Q2;$p($1.coeffs,$1.j,$f($f($g($1.coeffs,$1.j)+113)-$g($1.rsalog,$1.i)*$g($1.coeffs,$1.j-1)%113)%113)}}for(var _QG=0,_QF=$1.ND-1;_QG<=_QF;_QG+=1){$k[$j++]="t";$k[$j++]=$1.rscws;$k[$j++]=_QG;$1.offset();var _QI=$k[--$j];var _QK=$g($k[--$j],_QI);$k[$j++]=_QK;$k[$j++]=$1.rscws;$k[$j++]=$1.ND;$1.offset();var _QN=$k[--$j];var _QP=$g($k[--$j],_QN);var _QQ=$k[--$j];$1[$k[--$j]]=$f(_QQ+_QP)%113;for(var _QU=0,_QT=$1.NC-2;_QU<=_QT;_QU+=1){$1.j=_QU;$k[$j++]=$1.rscws;$k[$j++]=$1.ND+$1.j;$1.offset();$k[$j++]=$1.rscws;$k[$j++]=$1.ND+$1.j+1;$1.offset();var _Qb=$k[--$j];var _Qd=$g($k[--$j],_Qb);var _Qi=$k[--$j];$p($k[--$j],_Qi,$f($f(_Qd+113)-$1.t*$g($1.coeffs,$1.j+1)%113)%113)}$k[$j++]=$1.rscws;$k[$j++]=$1.ND+$1.NC-1;$1.offset();var _Qr=$k[--$j];$p($k[--$j],_Qr,$f(113-$1.t*$g($1.coeffs,$1.NC)%113)%113)}for(var _Qw=$1.ND,_Qv=$1.NW-1;_Qw<=_Qv;_Qw+=1){$k[$j++]=_Qw;$k[$j++]=$1.rscws;$k[$j++]=_Qw;$1.offset();var _Qz=$k[--$j];var _R0=$k[--$j];var _R1=$k[--$j];$k[$j++]=_R0;$k[$j++]=_Qz;$k[$j++]=113;$k[$j++]=$1.rscws;$k[$j++]=_R1;$1.offset();var _R2=$k[--$j];var _R4=$g($k[--$j],_R2);var _R5=$k[--$j];var _R6=$k[--$j];$p($k[--$j],_R6,$f(_R5-_R4)%113)}}$1.bits=$s($1.ndots);$P($1.bits,0,$g($a(["00","01","10","11"]),$1.mask));for(var _RG=1,_RF=$1.nw;_RG<=_RF;_RG+=1){$1.i=_RG;$P($1.bits,($1.i-1)*9+2,$g($1.encs,$g($1.rscws,$1.i)))}if($1.rembits>0){$P($1.bits,$1.nw*9+2,$G("11111111111111111",0,$1.rembits))}var _RT=$1.outline;$1.pixs=$A($a(_RT.length),_RT);$1.posx=0;$k[$j++]="posy";if($1.rows%2==0){$k[$j++]=0}else{$k[$j++]=$1.rows-1}var _RY=$k[--$j];$1[$k[--$j]]=_RY;var _Rc=$G($1.bits,0,$1.bits.length-6);for(var _Rd=0,_Re=_Rc.length;_Rd<_Re;_Rd++){$k[$j++]=$g(_Rc,_Rd);for(;;){$k[$j++]=$1.pixs;$k[$j++]=$1.posx;$k[$j++]=$1.posy;$1.dmv();var _Rj=$k[--$j];if($g($k[--$j],_Rj)==-1){break}if($1.rows%2==0){$1.posy=$1.posy+1;if($1.posy==$1.rows){$1.posy=0;$1.posx=$1.posx+1}}else{$1.posx=$1.posx+1;if($1.posx==$1.columns){$1.posx=0;$1.posy=$1.posy-1}}}$k[$j++]=$1.pixs;$k[$j++]=$1.posx;$k[$j++]=$1.posy;$1.dmv();var _Ry=$k[--$j];var _Rz=$k[--$j];$p(_Rz,_Ry,$f($k[--$j]-48))}for(var _S1=0;_S1<=5;_S1+=1){$1.i=_S1;$k[$j++]=$1.pixs;$q($g($1.sixedges,$1.i));$1.dmv();var _SA=$k[--$j];$p($k[--$j],_SA,$g($1.bits,$1.bits.length-6+$1.i)-48)}$k[$j++]="score";$k[$j++]=$1.pixs;$1.evalsymbol();var _SD=$k[--$j];$1[$k[--$j]]=_SD;if($1.score>$1.bestscore){$1.bestsym=$1.pixs;$1.bestscore=$1.score;if($1.fast&&$1.bestscore>~~($1.rows*$1.columns/2)){return true}}var _SN=$1.pixs;$1.litmask=$A($a(_SN.length),_SN);for(var _SQ=0;_SQ<=5;_SQ+=1){$1.i=_SQ;$k[$j++]=$1.litmask;$q($g($1.sixedges,$1.i));$1.dmv();var _SV=$k[--$j];$p($k[--$j],_SV,1)}$p($1.litmasks,$1.mask,$1.litmask);if($1.fast){$k[$j++]="score";$k[$j++]=$1.litmask;$1.evalsymbol();var _Sc=$k[--$j];$1[$k[--$j]]=_Sc;if($gt($1.score,$1.bestscore)){$1.bestsym=$1.litmask;$1.bestscore=$1.score;if($1.bestscore>~~($1.rows*$1.columns/2)){return true}}}});$1.pixs=$1.bestsym;if(!$1.fast&&$1.bestscore<=~~($1.rows*$1.columns/2)){$1.bestscore=-99999999;$F($1.masks,function(){$1.litmask=$g($1.litmasks,$k[--$j]);$k[$j++]="score";$k[$j++]=$1.litmask;$1.evalsymbol();var _Sv=$k[--$j];$1[$k[--$j]]=_Sv;if($1.score>$1.bestscore){$1.bestsym=$1.litmask;$1.bestscore=$1.score}});$1.pixs=$1.bestsym}var _T8=new Map([["ren",$0.renmatrix],["dotty",true],["pixs",$1.pixs],["pixx",$1.columns],["pixy",$1.rows],["height",$1.rows*2/72],["width",$1.columns*2/72],["opt",$1.options]]);$k[$j++]=_T8;if(!$1.dontdraw){$0.renmatrix()}};$0.ultracode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.eclevel="EC2";$1.parse=false;$1.parsefnc=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.fn1=-1;$1.fn3=-2;var _9=new Map([["parse",$1.parse],["parsefnc",$1.parsefnc],["FNC1",$1.fn1],["FNC3",$1.fn3]]);$1.fncvals=_9;$k[$j++]="msg";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _C=$k[--$j];$1[$k[--$j]]=_C;$1.msglen=$1.msg.length;$1.start=257;$1.scr=$a([]);$1.link1=0;$1.scp=$a([]);$k[$j++]=Infinity;$q($1.scr);$q($1.scp);$F($1.msg,function(){var _K=$k[--$j];$k[$j++]=_K;if(_K==$1.fn1){$j--;$k[$j++]=268}var _M=$k[--$j];$k[$j++]=_M;if(_M==$1.fn3){$j--;$k[$j++]=269}});$1.dcws=$a();$1.mcc=$1.dcws.length+3;$1.eclval=$g($1.eclevel,2)-48;if($1.eclval!=0){$k[$j++]="qcc";$k[$j++]=$g($a([0,1,2,4,6,8]),$1.eclval);$k[$j++]=~~($1.mcc/25);if($1.mcc%25!=0){var _Y=$k[--$j];$k[$j++]=$f(_Y+1)}var _Z=$k[--$j];var _a=$k[--$j];$1[$k[--$j]]=$f(_a*_Z+5)}else{$1.qcc=3}$1.acc=$1.qcc-3+78*$1.link1;$1.tcc=$1.mcc+$1.qcc;$1.metrics=$a([$a([2,4,34,5]),$a([3,33,82,13]),$a([4,82,158,23]),$a([5,134,282,30])]);for(var _l=0;_l<=3;_l+=1){$1.i=_l;$1.m=$g($1.metrics,$1.i);$1.rows=$g($1.m,0);$1.minc=$g($1.m,1);$1.maxc=$g($1.m,2);$1.mcol=$g($1.m,3);$1.okay=true;if($1.tcc<$1.minc||$1.tcc>$1.maxc){$1.okay=false}if($1.okay){break}}if(!$1.okay){$k[$j++]="bwipp.ultracodeNoValidSymbol";$k[$j++]="No valid symbol available";$0.raiseerror()}for(var _14=$1.mcol;_14<=61;_14+=1){$1.columns=_14;$k[$j++]=$1.columns;if($1.columns>=15){var _17=$k[--$j];$k[$j++]=$f(_17-1)}if($1.columns>=31){var _19=$k[--$j];$k[$j++]=$f(_19-1)}if($1.columns>=47){var _1B=$k[--$j];$k[$j++]=$f(_1B-1)}var _1F=$f($f($k[--$j]*$1.rows-3)-$1.tcc);$k[$j++]=_1F;if(_1F>=0){$1.pads=$k[--$j];break}$j--}$1.dcc=$f($1.columns-$1.mcol);$k[$j++]=Infinity;$k[$j++]=$1.start;$k[$j++]=$1.mcc;$k[$j++]=$1.acc;$q($1.scr);$q($1.dcws);for(var _1P=0,_1Q=$1.qcc;_1P<_1Q;_1P++){$k[$j++]=0}$k[$j++]=0;$1.rsseq=$a();$k[$j++]=Infinity;$k[$j++]=1;for(var _1S=0,_1T=282;_1S<_1T;_1S++){var _1U=$k[--$j];$k[$j++]=_1U;$k[$j++]=_1U*3%283}$1.rsalog=$a();$1.rslog=$a(283);for(var _1X=1;_1X<=282;_1X+=1){$p($1.rslog,$g($1.rsalog,_1X),_1X)}$1.rsprod=function(){var _1b=$k[--$j];var _1c=$k[--$j];$k[$j++]=_1c;$k[$j++]=_1b;if(_1b!=0&&_1c!=0){var _1f=$g($1.rslog,$k[--$j]);var _1k=$g($1.rsalog,$f(_1f+$g($1.rslog,$k[--$j]))%282);$k[$j++]=_1k}else{$j-=2;$k[$j++]=0}};$1.n=$1.mcc;$1.k=$1.qcc;$k[$j++]=Infinity;$k[$j++]=1;for(var _1o=0,_1p=$1.k;_1o<_1p;_1o++){$k[$j++]=0}$1.coeffs=$a();for(var _1t=1,_1s=$1.k;_1t<=_1s;_1t+=1){$1.i=_1t;$p($1.coeffs,$1.i,$g($1.coeffs,$1.i-1));for(var _20=$1.i-1;_20>=1;_20-=1){$1.j=_20;$k[$j++]=$1.coeffs;$k[$j++]=$1.j;$k[$j++]=$g($1.coeffs,$1.j-1);$k[$j++]=$g($1.coeffs,$1.j);$k[$j++]=$g($1.rsalog,$1.i);$1.rsprod();var _2C=$k[--$j];var _2D=$k[--$j];var _2E=$k[--$j];$p($k[--$j],_2E,$f(_2D+_2C)%283)}$k[$j++]=$1.coeffs;$k[$j++]=0;$k[$j++]=$g($1.coeffs,0);$k[$j++]=$g($1.rsalog,$1.i);$1.rsprod();var _2M=$k[--$j];var _2N=$k[--$j];$p($k[--$j],_2N,_2M)}$1.coeffs=$G($1.coeffs,0,$1.coeffs.length-1);for(var _2T=$1.coeffs.length-1;_2T>=0;_2T-=2){var _2U=$1.coeffs;$p(_2U,_2T,$f(283-$g(_2U,_2T)))}for(var _2Y=0,_2X=$1.n-1;_2Y<=_2X;_2Y+=1){$1.t=$f($g($1.rsseq,_2Y)+$g($1.rsseq,$1.n))%283;for(var _2g=0,_2f=$1.k-1;_2g<=_2f;_2g+=1){$1.j=_2g;$p($1.rsseq,$1.n+$1.j,$f($g($1.rsseq,$1.n+$1.j+1)+$f(283-$1.t*$g($1.coeffs,$1.k-$1.j-1)%283))%283)}}for(var _2x=$1.n,_2w=$1.n+$1.k;_2x<=_2w;_2x+=1){$p($1.rsseq,_2x,$f(283-$g($1.rsseq,_2x))%283)}$1.ecws=$G($1.rsseq,$1.n,$1.k);$1.dccu=$a([51363,51563,51653,53153,53163,53513,53563,53613,53653,56153,56163,56313,56353,56363,56513,56563,51316,51356,51536,51616,53156,53516,53536,53616,53636,53656,56136,56156,56316,56356,56516,56536]);$1.dccl=$a([61351,61361,61531,61561,61631,61651,63131,63151,63161,63531,63561,63631,65131,65161,65351,65631,31351,31361,31531,31561,31631,31651,35131,35151,35161,35361,35631,35651,36131,36151,36351,36531]);$1.tiles=$a([13135,13136,13153,13156,13163,13165,13513,13515,13516,13531,13535,13536,13561,13563,13565,13613,13615,13616,13631,13635,13636,13651,13653,13656,15135,15136,15153,15163,15165,15313,15315,15316,15351,15353,15356,15361,15363,15365,15613,15615,15616,15631,15635,15636,15651,15653,15656,16135,16136,16153,16156,16165,16313,16315,16316,16351,16353,16356,16361,16363,16365,16513,16515,16516,16531,16535,16536,16561,16563,16565,31315,31316,31351,31356,31361,31365,31513,31515,31516,31531,31535,31536,31561,31563,31565,31613,31615,31631,31635,31636,31651,31653,31656,35131,35135,35136,35151,35153,35156,35161,35163,35165,35315,35316,35351,35356,35361,35365,35613,35615,35616,35631,35635,35636,35651,35653,35656,36131,36135,36136,36151,36153,36156,36163,36165,36315,36316,36351,36356,36361,36365,36513,36515,36516,36531,36535,36536,36561,36563,36565,51313,51315,51316,51351,51353,51356,51361,51363,51365,51513,51516,51531,51536,51561,51563,51613,51615,51616,51631,51635,51636,51651,51653,51656,53131,53135,53136,53151,53153,53156,53161,53163,53165,53513,53516,53531,53536,53561,53563,53613,53615,53616,53631,53635,53636,53651,53653,53656,56131,56135,56136,56151,56153,56156,56161,56163,56165,56313,56315,56316,56351,56353,56356,56361,56363,56365,56513,56516,56531,56536,56561,56563,61313,61315,61316,61351,61353,61356,61361,61363,61365,61513,61515,61516,61531,61535,61536,61561,61563,61565,61615,61631,61635,61651,61653,63131,63135,63136,63151,63153,63156,63161,63163,63165,63513,63515,63516,63531,63535,63536,63561,63563,63565,63613,63615,63631,63635,63651,63653,65131,65135,65136,65151,65153,65156,65161,65163,65165,65313,65315,65316,65351,65353,65356,65361,65363,65365,65613,65615,65631,65635,65651,65653,56565,51515]);$1.rows=$f($1.rows*6+1);$1.columns=$1.columns+6;$k[$j++]=Infinity;for(var _3C=0,_3D=$1.rows*$1.columns;_3C<_3D;_3C++){$k[$j++]=-1}$1.pixs=$a();$1.qmv=function(){var _3G=$k[--$j];var _3H=$k[--$j];$k[$j++]=$f(_3H+_3G*$1.columns)};for(var _3K=0,_3J=$1.columns-1;_3K<=_3J;_3K+=1){$1.i=_3K;for(var _3N=0,_3M=$f($1.rows-1);_3N<=_3M;_3N+=6){$1.j=_3N;if($1.i>=5){$k[$j++]=$1.pixs;$k[$j++]=$1.i;$k[$j++]=$1.j;$1.qmv();var _3T=$k[--$j];$p($k[--$j],_3T,$1.i%2*9)}}$k[$j++]=$1.pixs;$k[$j++]=$1.i;$k[$j++]=0;$1.qmv();var _3X=$k[--$j];$p($k[--$j],_3X,9);$k[$j++]=$1.pixs;$k[$j++]=$1.i;$k[$j++]=$f($1.rows-1);$1.qmv();var _3c=$k[--$j];$p($k[--$j],_3c,9)}for(var _3g=1,_3f=$f($1.rows-2);_3g<=_3f;_3g+=1){$1.i=_3g;for(var _3j=3,_3i=$1.columns-1;_3j<=_3i;_3j+=16){$1.j=_3j;$k[$j++]=$1.pixs;$k[$j++]=$1.j;$k[$j++]=$1.i;$1.qmv();var _3o=$k[--$j];$p($k[--$j],_3o,(1-$1.i%2)*9)}$k[$j++]=$1.pixs;$k[$j++]=0;$k[$j++]=$1.i;$1.qmv();var _3s=$k[--$j];$p($k[--$j],_3s,9);$k[$j++]=$1.pixs;$k[$j++]=1;$k[$j++]=$1.i;$1.qmv();var _3x=$k[--$j];$p($k[--$j],_3x,(1-$1.i%2)*9);$k[$j++]=$1.pixs;$k[$j++]=2;$k[$j++]=$1.i;$1.qmv();var _41=$k[--$j];$p($k[--$j],_41,0);$k[$j++]=$1.pixs;$k[$j++]=3;$k[$j++]=$1.i;$1.qmv();var _45=$k[--$j];$p($k[--$j],_45,9);$k[$j++]=$1.pixs;$k[$j++]=4;$k[$j++]=$1.i;$1.qmv();var _49=$k[--$j];$p($k[--$j],_49,0);$k[$j++]=$1.pixs;$k[$j++]=$1.columns-1;$k[$j++]=$1.i;$1.qmv();var _4E=$k[--$j];$p($k[--$j],_4E,9)}$1.i=~~($1.rows/2)-5;$k[$j++]=Infinity;var _4L=$R($s(5),$g($1.dccu,$1.dcc),10);for(var _4M=0,_4N=_4L.length;_4M<_4N;_4M++){$k[$j++]=$g(_4L,_4M)-48}var _4T=$R($s(5),$g($1.dccl,$1.dcc),10);$k[$j++]=0;for(var _4U=0,_4V=_4T.length;_4U<_4V;_4U++){$k[$j++]=$g(_4T,_4U)-48}var _4X=$a();for(var _4Y=0,_4Z=_4X.length;_4Y<_4Z;_4Y++){$k[$j++]=$g(_4X,_4Y);$k[$j++]=$1.pixs;$k[$j++]=2;$k[$j++]=$1.i;$1.qmv();var _4d=$k[--$j];var _4e=$k[--$j];$p(_4e,_4d,$k[--$j]);$1.i=$1.i+1}$k[$j++]=Infinity;$k[$j++]=$1.start;$k[$j++]=$1.mcc;$q($1.ecws);$k[$j++]=$1.tcc;$k[$j++]=283;$k[$j++]=$1.acc;$q($1.scr);$q($1.dcws);for(var _4p=0,_4q=$1.pads;_4p<_4q;_4p++){$k[$j++]=284}$k[$j++]=$1.qcc;$1.tileseq=$a();$1.x=5;$1.y=1;var _4t=$1.tileseq;for(var _4u=0,_4v=_4t.length;_4u<_4v;_4u++){var _50=$R($s(5),$g($1.tiles,$g(_4t,_4u)),10);for(var _51=0,_52=_50.length;_51<_52;_51++){$k[$j++]=$g(_50,_51);$k[$j++]=$1.pixs;$k[$j++]=$1.x;$k[$j++]=$1.y;$1.qmv();var _57=$k[--$j];var _58=$k[--$j];$p(_58,_57,$f($k[--$j]-48));$1.y=$1.y+1}if($1.y!=$f($1.rows-1)){$1.y=$1.y+1}else{$1.x=$1.x+1;$1.y=1;$k[$j++]=$1.pixs;$k[$j++]=$1.x;$k[$j++]=$1.y;$1.qmv();var _5I=$k[--$j];if($g($k[--$j],_5I)!=-1){$1.x=$1.x+1}}}var _5R=new Map([[0,"00000000"],[9,"000000FF"],[1,"FF000000"],[3,"00FF0000"],[5,"0000FF00"],[6,"7F00FF00"]]);var _5T=new Map([["ren",$0.renmatrix],["pixs",$1.pixs],["pixx",$1.columns],["pixy",$1.rows],["height",$1.rows/72*2],["width",$1.columns/72*2],["colormap",_5R],["opt",$1.options]]);$k[$j++]=_5T;if(!$1.dontdraw){$0.renmatrix()}};$0.jabcode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.rows=-1;$1.columns=-1;$1.slave=false;$1.colors=16;$1.eclevel=6;$1.raw=false;$1.parse=false;$1.parsefnc=false;$1.mask=-1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.rows=~~$1.rows;$1.columns=~~$1.columns;$1.colors=~~$1.colors;$1.eclevel=~~$1.eclevel;$1.mask=~~$1.mask;$1.databpm=~~Math.round(Math.log($1.colors)/Math.log(2));var _B=$1.colors;$k[$j++]="metabpm";$k[$j++]=_B;if(_B>8){$j--;$k[$j++]=8}var _C=$k[--$j];$1[$k[--$j]]=~~Math.round(Math.log(_C)/Math.log(2));$1.fn1=-1;var _H=new Map([["parse",$1.parse],["parsefnc",$1.parsefnc],["FNC1",$1.fn1]]);$1.fncvals=_H;$k[$j++]="msg";$k[$j++]=$1.barcode;$k[$j++]=$1.fncvals;$0.parseinput();var _K=$k[--$j];$1[$k[--$j]]=_K;$1.msglen=$1.msg.length;$1.addtobits=function(){var _N=$k[--$j];$P($1.bits,$1.j,_N);$1.j=_N.length+$1.j};$1.tofixedbits=function(){var _S=$Z($s(13),"0000000000000");var _T=$k[--$j];var _W=$R($s(13),$k[--$j],2);$P(_S,$f(_T-_W.length),_W);$k[$j++]=$G(_S,0,_T)};var _Z=$1.msglen<=15?4:17;$1.bits=$s(7+_Z+$1.msglen*8+12);$1.j=0;$k[$j++]=31;$k[$j++]=5;$1.tofixedbits();$1.addtobits();$k[$j++]="00";$1.addtobits();if($1.msglen<=15){$k[$j++]=$1.msglen;$k[$j++]=4;$1.tofixedbits();$1.addtobits()}else{$k[$j++]="0000";$1.addtobits();$k[$j++]=$1.msglen-16;$k[$j++]=13;$1.tofixedbits();$1.addtobits()}for(var _h=0,_g=$1.msglen-1;_h<=_g;_h+=1){$k[$j++]=$g($1.msg,_h);$k[$j++]=8;$1.tofixedbits();$1.addtobits()}$k[$j++]=28;$k[$j++]=5;$1.tofixedbits();$1.addtobits();$k[$j++]=31;$k[$j++]=5;$1.tofixedbits();$1.addtobits();$k[$j++]="11";$1.addtobits();$1.diffside=21;$1.sameshape=false;$1.sameecc=false;$1.hasslaves=false;$1.metrics=function(){$1.mc=$k[--$j];$1.mr=$k[--$j];var _m=$1.mc;var _n=$1.mr;var _o=$1.mc;var _p=$1.mr;var _q=$1.colors;var _r=64;if(64>_q){var _=_q;_q=_r;_r=_}var _t=$1.slave?7:17;$k[$j++]=_m*_n;$k[$j++]=((~~($f(_o-25)/16)+2)*(~~($f(_p-25)/16)+2)-4)*7;$k[$j++]=_r*2;$k[$j++]=_t*4;if(!$1.slave){var _x=$eq($1.mr,$1.mc)?0:1;$1.metass=_x;var _y=$1.mr;var _z=$1.mc;if($lt(_y,_z)){var _=_z;_z=_y;_y=_}$1.metavf=$g($a([0,1,2,2,3,3,3,3]),~~($f(_y-21)/16));$k[$j++]="metavlen";if($1.metass==0){$k[$j++]=$a([2,2,3,4])}else{$k[$j++]=$a([4,6,8,10])}var _17=$g($k[--$j],$1.metavf);$1[$k[--$j]]=_17;$1.metaelen=$f($1.metavf*2+10);$k[$j++]=$f($f(7+$1.metavlen)+$1.metaelen);if($1.hasslaves){var _1D=$k[--$j];$k[$j++]=$f(_1D+4)}var _1G=~~Math.ceil($k[--$j]*2/$1.metabpm);$1.nummetabits=$f(_1G*$1.metabpm+6);$k[$j++]=_1G+6}else{$k[$j++]=3;if(!$1.sameshape){var _1J=$k[--$j];$k[$j++]=$f(_1J+5)}if($1.hasslaves){var _1L=$k[--$j];$k[$j++]=$f(_1L+3)}if(!$1.sameecc){var _1N=$1.mr;var _1O=$1.mc;if($lt(_1N,_1O)){var _=_1O;_1O=_1N;_1N=_}var _1R=$k[--$j];$k[$j++]=$f(_1R+$g($a([10,12,14,14,16,16,16,16]),~~($f(_1N-21)/16)))}var _1U=~~Math.ceil($k[--$j]*2/$1.metabpm);$1.nummetabits=_1U*$1.metabpm;$k[$j++]=_1U}var _1W=$k[--$j];$1.nummetamodules=_1W;var _1X=$k[--$j];var _1Y=$k[--$j];var _1Z=$k[--$j];$1.numdatamodules=$f($k[--$j]-$f(_1Z+$f(_1Y+$f(_1X+_1W))));$1.numdatabits=$1.numdatamodules*$1.databpm};$1.coderate=$g($a([.67,.63,.57,.55,.5,.43,.34,.25,.2,.17,.14]),$1.eclevel);$1.grosslen=~~Math.ceil($1.bits.length/$1.coderate);$1.snapsize=function(){var _1j=~~Math.ceil($k[--$j])-18;$k[$j++]=_1j;if(_1j<0){$j--;$k[$j++]=0}var _1k=$k[--$j];$k[$j++]=~~(_1k/4)*4+21};if($1.rows==-1&&$1.columns==-1){$k[$j++]="size";$k[$j++]=Math.sqrt($1.grosslen);$1.snapsize();var _1o=$k[--$j];$1[$k[--$j]]=_1o;for(;;){$k[$j++]=$1.size;$k[$j++]=$1.size;$1.metrics();if($1.grosslen<=$1.numdatabits){break}$1.size=$f($1.size+4)}$1.rows=$1.size;$1.columns=$1.size}else{if($1.columns==-1&&$1.rows!=-1){$k[$j++]="columns";$k[$j++]=$1.grosslen/$1.rows;$1.snapsize();var _21=$k[--$j];$1[$k[--$j]]=_21;for(;;){$k[$j++]=$1.rows;$k[$j++]=$1.columns;$1.metrics();if($1.grosslen<=$1.numdatabits){break}$1.columns=$f($1.columns+4)}}if($1.rows==-1&&$1.columns!=-1){$k[$j++]="rows";$k[$j++]=$1.grosslen/$1.columns;$1.snapsize();var _2C=$k[--$j];$1[$k[--$j]]=_2C;for(;;){$k[$j++]=$1.rows;$k[$j++]=$1.columns;$1.metrics();if($1.grosslen<=$1.numdatabits){break}$1.rows=$f($1.rows+4)}}if($1.rows!=-1&&$1.columns!=-1){$k[$j++]=$1.rows;$k[$j++]=$1.columns;$1.metrics()}}$1.C=$1.numdatabits;$1.cols=$1.columns;if($1.rows>145||$1.cols>145){$k[$j++]="bwipp.jabcodeNoValidSymbol";$k[$j++]="No valid symbol available";$0.raiseerror()}$1.min=$1.C;for(var _2S=3;_2S<=8;_2S+=1){$1.i=_2S;for(var _2U=$1.i+1;_2U<=9;_2U+=1){$1.j=_2U;$1.dist=~~($1.C/$1.j)*$1.j-~~($1.C/$1.j)*$1.i-$1.bits.length;if($1.dist<$1.min&&$1.dist>=0){$1.datawc=$1.i;$1.datawr=$1.j;$1.min=$1.dist}}}$1.tmpbits=$s(~~($1.C/$1.datawr)*$1.datawr-~~($1.C/$1.datawr)*$1.datawc);$P($1.tmpbits,0,$1.bits);for(var _2u=$1.bits.length,_2t=$1.tmpbits.length-1;_2u<=_2t;_2u+=1){var _2w=$g($1.tmpbits,_2u-1);$k[$j++]=_2u;$k[$j++]=_2w;if(_2w%2==0){var _2x=$k[--$j];$k[$j++]=$f(_2x+1)}else{var _2y=$k[--$j];$k[$j++]=$f(_2y-1)}var _30=$k[--$j];$p($1.tmpbits,$k[--$j],_30)}$1.bits=$1.tmpbits;$1.m0=22609+1;$1.m1=62509-65536;$1.m2=19605;$1.m3=32557;$1.lcg64_temper=function(){$1.p00=$1.m0*$1.s0;$1.p01=$1.m0*$1.s1;$1.p02=$1.m0*$1.s2;$1.p03=$1.m0*$1.s3;$1.p10=$1.m1*$1.s0;$1.p11=$1.m1*$1.s1;$1.p12=$1.m1*$1.s2;$1.p13=$1.m1*$1.s3;$1.p20=$1.m2*$1.s0;$1.p21=$1.m2*$1.s1;$1.p22=$1.m2*$1.s2;$1.p23=$1.m2*$1.s3;$1.p30=$1.m3*$1.s0;$1.p31=$1.m3*$1.s1;$1.p32=$1.m3*$1.s2;$1.p33=$1.m3*$1.s3;$1.s3=$1.p33%65536+1;$1.s2=$1.p32%65536+~~($1.p33/65536)+$1.p23%65536;$1.s1=$1.p31%65536+~~($1.p32/65536)+($1.p22%65536+~~($1.p23/65536))+$1.p13%65536;$1.s0=$1.p30%65536+~~($1.p31/65536)+($1.p21%65536+~~($1.p22/65536))+($1.p12%65536+~~($1.p13/65536))+$1.p03%65536;$1.s3=$1.s3+65536;$1.s2=$1.s2+65535;$1.s1=$1.s1+65535;$1.s0=$1.s0+65535;$1.s2=~~($1.s3/65536)+$1.s2;$1.s3=$1.s3%65536;$1.s1=~~($1.s2/65536)+$1.s1;$1.s2=$1.s2%65536;$1.s0=~~($1.s1/65536)+$1.s0;$1.s1=$1.s1%65536;$1.s0=$1.s0%65536;var _45=(($1.s0-32768)*65536+$1.s1^2147483648)&4294967295;var _46=_45^_45>>>11;var _47=_46^_46<<7&-1658038656;var _48=(_47^_47<<15&-272236544)&4294967295;$k[$j++]=_48^_48>>>18};$1.createMatrixA=function(){$k[$j++]="nb_pcb";if($1.wr<4){$k[$j++]=~~($1.Pg_sub_block/2)}else{$k[$j++]=~~($1.Pg_sub_block/$1.wr)*$1.wc}var _4E=$k[--$j];$1[$k[--$j]]=_4E;$1.offset=~~Math.ceil($1.Pg_sub_block/32);$1.effwidth=$1.offset*32;$1.matrixA=$a($1.offset*$1.nb_pcb);for(var _4O=0,_4N=$1.offset*$1.nb_pcb-1;_4O<=_4N;_4O+=1){$p($1.matrixA,_4O,0)}$1.permutation=$a($1.Pg_sub_block);for(var _4U=0,_4T=$1.Pg_sub_block-1;_4U<=_4T;_4U+=1){$p($1.permutation,_4U,_4U)}for(var _4Z=0,_4Y=~~($1.Pg_sub_block/$1.wr)-1;_4Z<=_4Y;_4Z+=1){$1.i=_4Z;for(var _4c=0,_4b=$f($1.wr-1);_4c<=_4b;_4c+=1){$1.j=_4c;var _4d=$1.matrixA;var _4e=$1.i;var _4f=$1.effwidth;var _4g=$1.wr;var _4h=$1.j;var _4n=$f(31-$f($1.i*$f($1.effwidth+$1.wr)+$1.j)%32);$p(_4d,~~($f(_4e*$f(_4f+_4g)+_4h)/32),$g(_4d,~~($f(_4e*$f(_4f+_4g)+_4h)/32))|(_4n<0?1>>>-_4n:1<<_4n))}}$1.s0=0;$1.s1=0;$1.s2=11;$1.s3=64569;for(var _4q=1,_4p=$f($1.wc-1);_4q<=_4p;_4q+=1){$1.i=_4q;$1.off_index=~~($1.Pg_sub_block/$1.wr)*$1.i;for(var _4w=0,_4v=$1.Pg_sub_block-1;_4w<=_4v;_4w+=1){$1.j=_4w;$1.lcg64_temper();var _4x=$k[--$j];$k[$j++]=_4x;if(_4x<0){var _4y=$k[--$j];$k[$j++]=$f((_4y^2147483648)+2147483648)}$1.pos=~~($k[--$j]/4294967296*($1.Pg_sub_block-$1.j));for(var _55=0,_54=~~($1.Pg_sub_block/$1.wr)-1;_55<=_54;_55+=1){$1.k=_55;var _56=$1.matrixA;var _57=$1.off_index;var _58=$1.k;var _59=$1.offset;var _5A=$1.j;var _5I=$g($1.matrixA,~~($g($1.permutation,$1.pos)/32)+$1.k*$1.offset);var _5M=-$f(31-$g($1.permutation,$1.pos)%32);var _5O=31-$1.j%32;$p(_56,(_57+_58)*_59+~~(_5A/32),$g(_56,(_57+_58)*_59+~~(_5A/32))|(_5O<0?((_5M<0?_5I>>>-_5M:_5I<<_5M)&1)>>>-_5O:((_5M<0?_5I>>>-_5M:_5I<<_5M)&1)<<_5O))}var _5R=$1.permutation;var _5S=$1.Pg_sub_block;var _5T=$1.j;$p(_5R,_5S-1-_5T,$g($1.permutation,$1.pos));$p($1.permutation,$1.pos,$g(_5R,_5S-1-_5T))}}};$1.createMetadataMatrixA=function(){$1.nb_pcb=~~($1.Pg_sub_block/2);$1.offset=~~Math.ceil($1.Pg_sub_block/32);$1.matrixA=$a($1.offset*$1.nb_pcb);for(var _5g=0,_5f=$1.offset*$1.nb_pcb-1;_5g<=_5f;_5g+=1){$p($1.matrixA,_5g,0)}$1.permutation=$a($1.Pg_sub_block);for(var _5m=0,_5l=$1.Pg_sub_block-1;_5m<=_5l;_5m+=1){$p($1.permutation,_5m,_5m)}$1.s0=0;$1.s1=0;$1.s2=0;$1.s3=38545;$1.nb_once=~~(~~$f($1.nb_pcb/$1.wc*$1.Pg_sub_block+3)/$1.nb_pcb);for(var _5u=0,_5t=$1.nb_pcb-1;_5u<=_5t;_5u+=1){$1.i=_5u;for(var _5x=0,_5w=$1.nb_once-1;_5x<=_5w;_5x+=1){$1.j=_5x;$1.lcg64_temper();var _5y=$k[--$j];$k[$j++]=_5y;if(_5y<0){var _5z=$k[--$j];$k[$j++]=$f((_5z^2147483648)+2147483648)}$1.pos=~~($k[--$j]/4294967296*($1.Pg_sub_block-$1.j));var _63=$1.matrixA;var _64=$1.i;var _65=$1.offset;var _68=$g($1.permutation,$1.pos);var _6D=$f(31-$g($1.permutation,$1.pos)%32);$p(_63,_64*_65+~~(_68/32),$g(_63,_64*_65+~~(_68/32))|(_6D<0?1>>>-_6D:1<<_6D));var _6G=$1.permutation;var _6H=$1.Pg_sub_block;var _6I=$1.j;$p(_6G,_6H-1-_6I,$g($1.permutation,$1.pos));$p($1.permutation,$1.pos,$g(_6G,_6H-1-_6I))}}};$1.GaussJordan=function(){$k[$j++]="nb_pcb";if($1.wr<4){$k[$j++]=~~($1.Pg_sub_block/2)}else{$k[$j++]=~~($1.Pg_sub_block/$1.wr)*$1.wc}var _6S=$k[--$j];$1[$k[--$j]]=_6S;$1.offset=~~Math.ceil($1.Pg_sub_block/32);var _6V=$1.matrixA;$1.matrixH=$A($a(_6V.length),_6V);$k[$j++]=Infinity;for(var _6Z=0,_6a=$1.Pg_sub_block;_6Z<_6a;_6Z++){$k[$j++]=0}$1.column_arrangement=$a();$k[$j++]=Infinity;for(var _6d=0,_6e=$1.Pg_sub_block;_6d<_6e;_6d++){$k[$j++]=false}$1.processed_column=$a();$k[$j++]=Infinity;for(var _6h=0,_6i=$1.nb_pcb;_6h<_6i;_6h++){$k[$j++]=0}$1.zero_lines_nb=$a();$k[$j++]=Infinity;for(var _6l=0,_6m=$1.Pg_sub_block*2;_6l<_6m;_6l++){$k[$j++]=0}$1.swap_col=$a();$1.zero_lines=0;$1.loop0=0;for(var _6q=0,_6p=$1.nb_pcb-1;_6q<=_6p;_6q+=1){$1.i=_6q;$1.pivot_column=$1.Pg_sub_block+1;for(var _6u=0,_6t=$1.Pg_sub_block-1;_6u<=_6t;_6u+=1){$1.j=_6u;var _6z=$g($1.matrixH,~~(($1.offset*32*$1.i+$1.j)/32));var _73=-(31-($1.offset*32*$1.i+$1.j)%32);if(((_73<0?_6z>>>-_73:_6z<<_73)&1)==1){$1.pivot_column=$1.j;break}}if($1.pivot_column<$1.Pg_sub_block){$p($1.processed_column,$1.pivot_column,true);$p($1.column_arrangement,$1.pivot_column,$1.i);if($1.pivot_column>=$1.nb_pcb){$p($1.swap_col,$1.loop0*2,$1.pivot_column);$1.loop0=$1.loop0+1}$1.off_index=~~($1.pivot_column/32);$1.off_index1=$1.pivot_column%32;for(var _7M=0,_7L=$1.nb_pcb-1;_7M<=_7L;_7M+=1){$1.j=_7M;if($1.i!=$1.j){var _7T=$g($1.matrixH,$1.off_index+$1.j*$1.offset);var _7V=-(31-$1.off_index1);if(((_7V<0?_7T>>>-_7V:_7T<<_7V)&1)==1){for(var _7Y=0,_7X=$1.offset-1;_7Y<=_7X;_7Y+=1){$1.k=_7Y;var _7Z=$1.matrixH;var _7a=$1.offset;var _7b=$1.j;var _7c=$1.k;$p(_7Z,_7a*_7b+_7c,$xo($g(_7Z,_7a*_7b+_7c),$g($1.matrixH,$1.offset*$1.i+$1.k)))}}}}}else{$p($1.zero_lines_nb,$1.zero_lines,$1.i);$1.zero_lines=$1.zero_lines+1}}$1.matrix_rank=$1.nb_pcb-$1.zero_lines;$1.loop2=0;for(var _7s=$1.matrix_rank,_7r=$1.nb_pcb-1;_7s<=_7r;_7s+=1){$1.i=_7s;if($g($1.column_arrangement,$1.i)>0){for(var _7y=0,_7x=$1.nb_pcb-1;_7y<=_7x;_7y+=1){$1.j=_7y;if($nt($g($1.processed_column,$1.j))){$p($1.column_arrangement,$1.j,$g($1.column_arrangement,$1.i));$p($1.column_arrangement,$1.i,0);$p($1.processed_column,$1.j,true);$p($1.processed_column,$1.i,false);$p($1.swap_col,$1.loop0*2,$1.i);$p($1.swap_col,$1.loop0*2+1,$1.j);$p($1.column_arrangement,$1.i,$1.j);$1.loop0=$1.loop0+1;$1.loop2=$1.loop2+1;break}}}}$1.loop1=0;for(var _8Q=0,_8P=$1.nb_pcb-1;_8Q<=_8P;_8Q+=1){$1.kl=_8Q;if($nt($g($1.processed_column,$1.kl))&&$1.loop1<$1.loop0-$1.loop2){$p($1.column_arrangement,$1.kl,$g($1.column_arrangement,$g($1.swap_col,$1.loop1*2)));$p($1.processed_column,$1.kl,true);$p($1.swap_col,$1.loop1*2+1,$1.kl);$1.loop1=$1.loop1+1}}$1.loop1=0;for(var _8m=0,_8l=$1.nb_pcb-1;_8m<=_8l;_8m+=1){$1.kl=_8m;if($nt($g($1.processed_column,$1.kl))){$p($1.column_arrangement,$1.kl,$g($1.zero_lines_nb,$1.loop1));$1.loop1=$1.loop1+1}}for(var _8y=0,_8x=$1.nb_pcb-1;_8y<=_8x;_8y+=1){$1.i=_8y;for(var _91=0,_90=$1.offset-1;_91<=_90;_91+=1){$1.j=_91;$p($1.matrixA,$1.i*$1.offset+$1.j,$g($1.matrixH,$f($g($1.column_arrangement,$1.i)*$1.offset+$1.j)))}}$1.tmp=0;for(var _9F=0,_9E=$1.loop0-1;_9F<=_9E;_9F+=1){$1.i=_9F;for(var _9I=0,_9H=$1.nb_pcb-1;_9I<=_9H;_9I+=1){$1.j=_9I;var _9P=$g($1.matrixA,~~($g($1.swap_col,$1.i*2)/32)+$1.j*$1.offset);var _9T=-$f(31-$g($1.swap_col,$1.i*2)%32);$1.tmp=(-((_9T<0?_9P>>>-_9T:_9P<<_9T)&1)^$1.tmp)&1^$1.tmp;var _9W=$1.matrixA;var _9Z=$g($1.swap_col,$1.i*2);var _9a=$1.j;var _9b=$1.offset;var _9j=$g($1.matrixA,~~($g($1.swap_col,$1.i*2+1)/32)+$1.j*$1.offset);var _9n=-$f(31-$g($1.swap_col,$1.i*2+1)%32);var _9y=$f(31-$g($1.swap_col,$1.i*2)%32);$p(_9W,~~(_9Z/32)+_9a*_9b,$g(_9W,~~(_9Z/32)+_9a*_9b)^(-((_9n<0?_9j>>>-_9n:_9j<<_9n)&1)^$g($1.matrixA,~~($g($1.swap_col,$1.i*2)/32)+$1.j*$1.offset))&(_9y<0?1>>>-_9y:1<<_9y));var _9z=$1.matrixA;var _A2=$g($1.swap_col,$1.i*2+1);var _A3=$1.j;var _A4=$1.offset;var _AH=$f(31-$g($1.swap_col,$1.i*2+1)%32);$p(_9z,~~(_A2/32)+_A3*_A4,$g(_9z,~~(_A2/32)+_A3*_A4)^(-($1.tmp&1)^$g($1.matrixA,~~($g($1.swap_col,$1.i*2+1)/32)+$1.j*$1.offset))&(_AH<0?1>>>-_AH:1<<_AH))}}};$1.createGeneratorMatrix=function(){$1.pn=$1.Pg_sub_block-$1.matrix_rank;$1.offset=~~Math.ceil($1.pn/32);$1.effwidth=$1.offset*32;$1.offset_cap=~~Math.ceil($1.Pg_sub_block/32);$1.G=$a($1.offset*$1.Pg_sub_block);for(var _AT=0,_AS=$1.offset*$1.Pg_sub_block-1;_AT<=_AS;_AT+=1){$p($1.G,_AT,0)}for(var _AX=0,_AW=$1.pn-1;_AX<=_AW;_AX+=1){$1.i=_AX;var _AY=$1.G;var _AZ=$1.Pg_sub_block;var _Aa=$1.pn;var _Ab=$1.i;var _Ac=$1.offset;var _Ad=$1.i;var _Ag=31-$1.i%32;$p(_AY,(_AZ-_Aa+_Ab)*_Ac+~~(_Ad/32),$g(_AY,(_AZ-_Aa+_Ab)*_Ac+~~(_Ad/32))|(_Ag<0?1>>>-_Ag:1<<_Ag))}$1.matrix_index=$1.Pg_sub_block-$1.pn;$1.loop0=0;for(var _An=0,_Am=($1.Pg_sub_block-$1.pn)*$1.effwidth-1;_An<=_Am;_An+=1){$1.i=_An;if($1.matrix_index>=$1.Pg_sub_block){$1.loop0=$1.loop0+1;$1.matrix_index=$1.Pg_sub_block-$1.pn}if($1.i%$1.effwidth<$1.pn){var _Aw=$1.G;var _Ax=$1.i;var _B3=$g($1.matrixA,~~($1.matrix_index/32)+$1.offset_cap*$1.loop0);var _B5=-(31-$1.matrix_index%32);var _BA=31-$1.i%32;$p(_Aw,~~(_Ax/32),$g(_Aw,~~(_Ax/32))^(-((_B5<0?_B3>>>-_B5:_B3<<_B5)&1)^$g($1.G,~~($1.i/32)))&(_BA<0?1>>>-_BA:1<<_BA));$1.matrix_index=$1.matrix_index+1}}};$1.ldpc=function(){$1.wr=$k[--$j];$1.wc=$k[--$j];$k[$j++]=Infinity;var _BE=$k[--$j];var _BF=$k[--$j];$k[$j++]=_BE;$F(_BF,function(){var _BG=$k[--$j];$k[$j++]=$f(_BG-48)});$1.data=$a();$1.Pn=$1.data.length;if($1.wr!=-1){$1.Pg=~~(Math.ceil(Math.ceil($1.Pn*$1.wr/$f($1.wr-$1.wc))/$1.wr)*$1.wr);$1.nb_sub_blocks=~~($1.Pg/2700)+1;$1.Pg_sub_block=~~(~~($1.Pg/$1.nb_sub_blocks)/$1.wr)*$1.wr;$1.Pn_sub_block=~~($1.Pg_sub_block*$f($1.wr-$1.wc)/$1.wr);$1.nb_sub_blocks=~~($1.Pg/$1.Pg_sub_block);$k[$j++]="encoding_iterations";$k[$j++]=~~($1.Pg/$1.Pg_sub_block);if($1.Pn_sub_block*$1.nb_sub_blocks<$1.Pn){var _Bg=$k[--$j];$k[$j++]=$f(_Bg-1)}var _Bh=$k[--$j];$1[$k[--$j]]=_Bh;$1.createMatrixA()}else{$1.Pg=$1.Pn*2;$1.nb_sub_blocks=1;$1.Pg_sub_block=$1.Pg;$1.Pn_sub_block=$1.Pn;$1.encoding_iterations=1;$1.createMetadataMatrixA()}$1.GaussJordan();$1.createGeneratorMatrix();$1.ecc_encoded_data=$a($1.Pg);$1.offset=~~Math.ceil(($1.Pg_sub_block-$1.matrix_rank)/32);for(var _Bs=0,_Br=$1.encoding_iterations-1;_Bs<=_Br;_Bs+=1){$1.iter=_Bs;for(var _Bv=0,_Bu=$1.Pg_sub_block-1;_Bv<=_Bu;_Bv+=1){$1.i=_Bv;$1.temp=0;$1.loop0=0;$1.offset_index=$1.offset*$1.i;for(var _C3=$1.iter*$1.Pn_sub_block,_C2=($1.iter+1)*$1.Pn_sub_block-1;_C3<=_C2;_C3+=1){var _C9=$g($1.G,$1.offset_index+~~($1.loop0/32));var _CB=-(31-$1.loop0%32);$1.temp=$g($1.data,_C3)&((_CB<0?_C9>>>-_CB:_C9<<_CB)&1)^$1.temp;$1.loop0=$1.loop0+1}$p($1.ecc_encoded_data,$1.i+$1.iter*$1.Pg_sub_block,$1.temp)}}if($1.encoding_iterations!=$1.nb_sub_blocks){$1.start=$1.encoding_iterations*$1.Pn_sub_block;$1.last_index=$1.encoding_iterations*$1.Pg_sub_block;$1.Pg_sub_block=$1.Pg-$1.encoding_iterations*$1.Pg_sub_block;$1.Pn_sub_block=~~($1.Pg_sub_block*$f($1.wr-$1.wc)/$1.wr);$1.createMatrixA();$1.GaussJordan();$1.createGeneratorMatrix();$1.offset=~~Math.ceil(($1.Pg_sub_block-$1.matrix_rank)/32);for(var _Ca=0,_CZ=$1.Pg_sub_block-1;_Ca<=_CZ;_Ca+=1){$1.i=_Ca;$1.temp=0;$1.loop0=0;$1.offset_index=$1.offset*$1.i;for(var _Cg=$1.start,_Cf=$1.Pn-1;_Cg<=_Cf;_Cg+=1){var _Cm=$g($1.G,$1.offset_index+~~($1.loop0/32));var _Co=-(31-$1.loop0%32);$1.temp=$g($1.data,_Cg)&((_Co<0?_Cm>>>-_Co:_Cm<<_Co)&1)^$1.temp;$1.loop0=$1.loop0+1}$p($1.ecc_encoded_data,$1.i+$1.last_index,$1.temp)}}$1.out=$s($1.Pg);for(var _Cz=0,_Cy=$1.Pg-1;_Cz<=_Cy;_Cz+=1){$p($1.out,_Cz,$f($g($1.ecc_encoded_data,_Cz)+48))}$k[$j++]=$1.out};$k[$j++]="bits";$k[$j++]=$1.bits;$k[$j++]=$1.datawc;$k[$j++]=$1.datawr;$1.ldpc();var _D7=$k[--$j];$1[$k[--$j]]=_D7;$1.s0=0;$1.s1=0;$1.s2=3;$1.s3=30151;for(var _DA=$1.bits.length-1;_DA>=1;_DA-=1){$1.l=_DA;$1.lcg64_temper();var _DB=$k[--$j];$k[$j++]=_DB;if(_DB<0){var _DC=$k[--$j];$k[$j++]=$f((_DC^2147483648)+2147483648)}$1.r=~~($k[--$j]/4294967296*($1.l+1));$p($1.bits,$1.l,$g($1.bits,$1.r));$p($1.bits,$1.r,$g($1.bits,$1.l))}$1.tmpbits=$s($1.C);$P($1.tmpbits,0,$1.bits);$1.j=$1.bits.length;for(var _DW=0,_DX=~~($f($f($1.C-$1.j)+1)/2);_DW<_DX;_DW++){$p($1.tmpbits,$1.j,48);if($1.j+1<$1.C){$p($1.tmpbits,$1.j+1,49)}$1.j=$1.j+2}$1.bits=$1.tmpbits;if($1.colors==4){$1.bi=0;$1.gi=1;$1.mi=2;$1.yi=3;$1.ki=4;$1.wi=5;$k[$j++]=Infinity;$k[$j++]=$1.bi;$k[$j++]="0000FF";$k[$j++]=$1.gi;$k[$j++]="00FF00";$k[$j++]=$1.mi;$k[$j++]="FF00FF";$k[$j++]=$1.yi;$k[$j++]="FFFF00";$k[$j++]=$1.ki;$k[$j++]="000000";$k[$j++]=$1.wi;$k[$j++]="FFFFFF";$1.palette=$d();$1.metacolorindex=$a([$1.bi,$1.gi,$1.mi,$1.yi]);$1.palettelayout=$a([$1.bi,$1.gi,$1.mi,$1.yi])}else{var _E4=new Map([[8,$a([2,2,2])],[16,$a([4,2,2])],[32,$a([4,4,2])],[64,$a([4,4,4])],[128,$a([8,4,4])],[256,$a([8,8,4])]]);$1.rgbres=$g(_E4,$1.colors);$k[$j++]="rvals";$k[$j++]=$g($1.rgbres,0);$k[$j++]=Infinity;var _E9=$k[--$j];var _EB=$f($k[--$j]-1);$k[$j++]=_E9;$k[$j++]=_EB;for(var _ED=0,_EC=_EB;_ED<=_EC;_ED+=1){var _EE=$k[--$j];$k[$j++]=~~Math.round(_ED*(255/_EE));$k[$j++]=_EE}$j--;var _EF=$a();$1[$k[--$j]]=_EF;$k[$j++]="gvals";$k[$j++]=$g($1.rgbres,1);$k[$j++]=Infinity;var _EJ=$k[--$j];var _EL=$f($k[--$j]-1);$k[$j++]=_EJ;$k[$j++]=_EL;for(var _EN=0,_EM=_EL;_EN<=_EM;_EN+=1){var _EO=$k[--$j];$k[$j++]=~~Math.round(_EN*(255/_EO));$k[$j++]=_EO}$j--;var _EP=$a();$1[$k[--$j]]=_EP;$k[$j++]="bvals";$k[$j++]=$g($1.rgbres,2);$k[$j++]=Infinity;var _ET=$k[--$j];var _EV=$f($k[--$j]-1);$k[$j++]=_ET;$k[$j++]=_EV;for(var _EX=0,_EW=_EV;_EX<=_EW;_EX+=1){var _EY=$k[--$j];$k[$j++]=~~Math.round(_EX*(255/_EY));$k[$j++]=_EY}$j--;var _EZ=$a();$1[$k[--$j]]=_EZ;var _Eb=$1.colors;$1.palette=new Map;var _Ec=$1.colors;var _Ed=64;if(64>_Ec){var _=_Ec;_Ec=_Ed;_Ed=_}$1.palettelayout=$a(_Ed);$1.i=0;$1.j=8;$F($1.rvals,function(){$1.r=$k[--$j];$F($1.gvals,function(){$1.g=$k[--$j];$F($1.bvals,function(){$1.b=$k[--$j];var _Ep=$Z($s(6),"000000");var _Er=$R($s(6),$1.r<<16|$1.g<<8|$1.b,16);$P(_Ep,6-_Er.length,_Er);$k[$j++]=_Ep;$k[$j++]=false;if($eq(_Ep,"000000")){$1.ki=$1.i;$j--;$k[$j++]=true}var _Et=$k[--$j];var _Eu=$k[--$j];$k[$j++]=_Eu;$k[$j++]=_Et;if($eq(_Eu,"0000FF")){$1.bi=$1.i;$j--;$k[$j++]=true}var _Ew=$k[--$j];var _Ex=$k[--$j];$k[$j++]=_Ex;$k[$j++]=_Ew;if($eq(_Ex,"00FF00")){$1.gi=$1.i;$j--;$k[$j++]=true}var _Ez=$k[--$j];var _F0=$k[--$j];$k[$j++]=_F0;$k[$j++]=_Ez;if($eq(_F0,"00FFFF")){$1.ci=$1.i;$j--;$k[$j++]=true}var _F2=$k[--$j];var _F3=$k[--$j];$k[$j++]=_F3;$k[$j++]=_F2;if($eq(_F3,"FF0000")){$1.ri=$1.i;$j--;$k[$j++]=true}var _F5=$k[--$j];var _F6=$k[--$j];$k[$j++]=_F6;$k[$j++]=_F5;if($eq(_F6,"FF00FF")){$1.mi=$1.i;$j--;$k[$j++]=true}var _F8=$k[--$j];var _F9=$k[--$j];$k[$j++]=_F9;$k[$j++]=_F8;if($eq(_F9,"FFFF00")){$1.yi=$1.i;$j--;$k[$j++]=true}var _FB=$k[--$j];var _FC=$k[--$j];$k[$j++]=_FC;$k[$j++]=_FB;if($eq(_FC,"FFFFFF")){$1.wi=$1.i;$j--;$k[$j++]=true}if($nt($k[--$j])){if($1.colors<=64||($1.colors==128&&($1.r==0||$1.r==73||$1.r==182||$1.r==255)||$1.colors==256&&($1.r==0||$1.r==73||$1.r==182||$1.r==255)&&($1.g==0||$1.g==73||$1.g==182||$1.g==255))){$p($1.palettelayout,$1.j,$1.i);$1.j=$1.j+1}}$p($1.palette,$1.i,$k[--$j]);$1.i=$1.i+1})})});$P($1.palettelayout,0,$a([$1.ki,$1.bi,$1.gi,$1.ci,$1.ri,$1.mi,$1.yi,$1.wi]));$1.metacolorindex=$a([$1.ki,$1.bi,$1.gi,$1.ci,$1.ri,$1.mi,$1.yi,$1.wi])}$k[$j++]=Infinity;for(var _Fx=0,_Fy=$1.rows*$1.cols;_Fx<_Fy;_Fx++){$k[$j++]=-1}$1.pixs=$a();$1.jmv=function(){var _G1=$k[--$j];var _G2=$k[--$j];$k[$j++]=$f(_G2+_G1*$1.cols)};if(!$1.slave){$1.fpat=$a([$a([1,1,1,0,0]),$a([1,2,2,0,0]),$a([1,2,1,2,1]),$a([0,0,2,2,1]),$a([0,0,1,1,1])]);$1.fmap=$a([$a([-1,$1.bi,$1.yi]),$a([-1,$1.yi,$1.bi]),$a([-1,$1.gi,$1.mi]),$a([-1,$1.mi,$1.gi])])}else{$1.fpat=$a([$a([0,0,0,0,0]),$a([0,2,2,0,0]),$a([0,2,1,2,0]),$a([0,0,2,2,0]),$a([0,0,0,0,0])]);$1.fmap=$a([$a([-1,$1.ki,$1.wi]),$a([-1,$1.ki,$1.wi]),$a([-1,$1.ki,$1.wi]),$a([-1,$1.ki,$1.wi])])}for(var _Gg=0;_Gg<=4;_Gg+=1){$1.y=_Gg;for(var _Gh=0;_Gh<=4;_Gh+=1){$1.x=_Gh;$1.fpb=$g($g($1.fpat,$1.y),$1.x);$k[$j++]=$1.pixs;$k[$j++]=$1.x+1;$k[$j++]=$1.y+1;$1.jmv();var _Gu=$k[--$j];$p($k[--$j],_Gu,$g($g($1.fmap,0),$1.fpb));$k[$j++]=$1.pixs;$k[$j++]=$1.x+1;$k[$j++]=$f($f($1.rows-$1.y)-2);$1.jmv();var _H4=$k[--$j];$p($k[--$j],_H4,$g($g($1.fmap,1),$1.fpb));$k[$j++]=$1.pixs;$k[$j++]=$f($f($1.x+$1.cols)-6);$k[$j++]=$1.y+1;$1.jmv();var _HE=$k[--$j];$p($k[--$j],_HE,$g($g($1.fmap,2),$1.fpb));$k[$j++]=$1.pixs;$k[$j++]=$f($f($1.x+$1.cols)-6);$k[$j++]=$f($f($1.rows-$1.y)-2);$1.jmv();var _HP=$k[--$j];$p($k[--$j],_HP,$g($g($1.fmap,3),$1.fpb))}}$1.algnpat0=$a([$a([$1.ki,$1.ki,-1]),$a([$1.ki,$1.wi,$1.ki]),$a([-1,$1.ki,$1.ki])]);$1.algnpat1=$a([$a([-1,$1.ki,$1.ki]),$a([$1.ki,$1.wi,$1.ki]),$a([$1.ki,$1.ki,-1])]);$1.num=~~Math.round($1.cols/16)-1;$1.algnrpos=$a([3,17]);if($1.num>0){$k[$j++]=Infinity;for(var _Hs=0,_Hr=$1.num;_Hs<=_Hr;_Hs+=1){$k[$j++]=~~(_Hs*($f($1.cols-7)/$1.num))+3}$1.algnrpos=$a()}$1.num=~~Math.round($1.rows/16)-1;$1.algncpos=$a([3,17]);if($1.num>0){$k[$j++]=Infinity;for(var _I1=0,_I0=$1.num;_I1<=_I0;_I1+=1){$k[$j++]=~~(_I1*($f($1.rows-7)/$1.num))+3}$1.algncpos=$a()}$1.putalgnpat=function(){$1.pp=$k[--$j];$1.py=$k[--$j];$1.px=$k[--$j];for(var _I8=0;_I8<=2;_I8+=1){$1.pb=_I8;for(var _I9=0;_I9<=2;_I9+=1){$1.pa=_I9;$k[$j++]=$1.pixs;$k[$j++]=$f($1.px+$1.pa);$k[$j++]=$f($1.py+$1.pb);$1.jmv();var _IK=$k[--$j];$p($k[--$j],_IK,$g($g($1.pp,$1.pb),$1.pa))}}};for(var _IO=0,_IN=$1.algncpos.length-1;_IO<=_IN;_IO+=1){$1.j=_IO;$1.y=$g($1.algncpos,$1.j);for(var _IU=0,_IT=$1.algnrpos.length-1;_IU<=_IT;_IU+=1){$1.i=_IU;$1.x=$g($1.algnrpos,$1.i);$k[$j++]=$1.pixs;$k[$j++]=$1.x;$k[$j++]=$1.y;$1.jmv();var _Ib=$k[--$j];if($g($k[--$j],_Ib)==-1){$k[$j++]=$f($1.x-1);$k[$j++]=$f($1.y-1);if(($1.i+$1.j)%2==0){$k[$j++]=$1.algnpat0}else{$k[$j++]=$1.algnpat1}$1.putalgnpat()}}}if(!$1.slave){var _JT=$a([$a([6,1]),$a([6,2]),$a([6,3]),$a([6,4]),$a([6,5]),$a([6,6]),$a([5,6]),$a([4,6]),$a([3,6]),$a([2,6]),$a([1,6]),$a([7,1]),$a([7,2]),$a([7,3]),$a([7,4]),$a([7,5]),$a([7,6]),$a([7,7]),$a([6,7]),$a([5,7]),$a([4,7]),$a([3,7]),$a([2,7]),$a([1,7]),$a([8,1]),$a([8,2]),$a([8,3]),$a([8,4]),$a([8,5]),$a([8,6]),$a([8,7]),$a([8,8]),$a([7,8]),$a([6,8]),$a([5,8]),$a([4,8]),$a([3,8]),$a([2,8]),$a([1,8]),$a([9,1]),$a([9,2]),$a([9,3]),$a([9,4]),$a([9,5])]);for(var _JU=0,_JV=_JT.length;_JU<_JV;_JU++){$q($g(_JT,_JU));$1.y=$k[--$j];$1.x=$k[--$j];$k[$j++]=$a([$1.x,$1.y]);$k[$j++]=$a([-$1.x,$1.y]);$k[$j++]=$a([-$1.x,-$1.y]);$k[$j++]=$a([$1.x,-$1.y])}$r($a(176));$1.metadatamap=$k[--$j];$1.palettemap1=$a([$a([4,1]),$a([4,2]),$a([5,1]),$a([5,2]),$a([2,4]),$a([2,5]),$a([1,4]),$a([1,5]),$a([-2,1]),$a([-2,2]),$a([-1,1]),$a([-1,2]),$a([-4,4]),$a([-4,5]),$a([-5,4]),$a([-5,5])]);$1.palettemap2=$a([$a([-4,-5]),$a([-4,-4]),$a([-5,-5]),$a([-5,-4]),$a([-2,-2]),$a([-2,-1]),$a([-1,-2]),$a([-1,-1]),$a([2,-5]),$a([2,-4]),$a([1,-5]),$a([1,-4]),$a([4,-2]),$a([4,-1]),$a([5,-2]),$a([5,-1])])}else{$k[$j++]=Infinity;for(var _KL=1;_KL<=19;_KL+=1){$1.i=_KL;$k[$j++]=$a([0,$1.i]);$k[$j++]=$a([1,$1.i])}for(var _KQ=5;_KQ<=12;_KQ+=1){$1.i=_KQ;$k[$j++]=$a([2,$1.i]);$k[$j++]=$a([3,$1.i])}$1.metadatamap=$a();$k[$j++]=Infinity;for(var _KW=5;_KW<=12;_KW+=1){$k[$j++]=_KW;$k[$j++]=Infinity;var _KX=$k[--$j];var _KY=$k[--$j];$k[$j++]=_KX;$k[$j++]=4;$k[$j++]=_KY;var _KZ=$a();$k[$j++]=_KZ}for(var _Ka=12;_Ka>=5;_Ka-=1){$k[$j++]=_Ka;$k[$j++]=Infinity;var _Kb=$k[--$j];var _Kc=$k[--$j];$k[$j++]=_Kb;$k[$j++]=5;$k[$j++]=_Kc;var _Kd=$a();$k[$j++]=_Kd}for(var _Ke=5;_Ke<=12;_Ke+=1){$k[$j++]=_Ke;$k[$j++]=Infinity;var _Kf=$k[--$j];var _Kg=$k[--$j];$k[$j++]=_Kf;$k[$j++]=6;$k[$j++]=_Kg;var _Kh=$a();$k[$j++]=_Kh}for(var _Ki=12;_Ki>=5;_Ki-=1){$k[$j++]=_Ki;$k[$j++]=Infinity;var _Kj=$k[--$j];var _Kk=$k[--$j];$k[$j++]=_Kj;$k[$j++]=7;$k[$j++]=_Kk;var _Kl=$a();$k[$j++]=_Kl}$1.palettemap1=$a();$k[$j++]=Infinity;var _Kn=$1.palettemap1;for(var _Ko=0,_Kp=_Kn.length;_Ko<_Kp;_Ko++){$k[$j++]=$g(_Kn,_Ko);$k[$j++]=Infinity;var _Kr=$k[--$j];var _Ks=$k[--$j];$k[$j++]=_Kr;$q(_Ks);var _Kt=$k[--$j];var _Ku=$k[--$j];$k[$j++]=-_Ku;$k[$j++]=-_Kt;var _Kv=$a();$k[$j++]=_Kv}$1.palettemap2=$a()}var _Kx=$1.metadatamap;for(var _Ky=0,_Kz=_Kx.length;_Ky<_Kz;_Ky++){var _L0=$g(_Kx,_Ky);var _L1=$g(_L0,0);$k[$j++]=_L0;$k[$j++]=_L1;if(_L1<0){var _L3=$k[--$j];var _L4=$k[--$j];$p(_L4,0,$f($f(_L3+$1.cols)-1));$k[$j++]=_L4}else{$j--}var _L5=$k[--$j];var _L6=$g(_L5,1);$k[$j++]=_L5;$k[$j++]=_L6;if(_L6<0){var _L8=$k[--$j];var _L9=$k[--$j];$p(_L9,1,$f($f(_L8+$1.rows)-1));$k[$j++]=_L9}else{$j--}$j--}var _LA=$1.palettemap1;for(var _LB=0,_LC=_LA.length;_LB<_LC;_LB++){var _LD=$g(_LA,_LB);var _LE=$g(_LD,0);$k[$j++]=_LD;$k[$j++]=_LE;if(_LE<0){var _LG=$k[--$j];var _LH=$k[--$j];$p(_LH,0,$f($f(_LG+$1.cols)-1));$k[$j++]=_LH}else{$j--}var _LI=$k[--$j];var _LJ=$g(_LI,1);$k[$j++]=_LI;$k[$j++]=_LJ;if(_LJ<0){var _LL=$k[--$j];var _LM=$k[--$j];$p(_LM,1,$f($f(_LL+$1.rows)-1));$k[$j++]=_LM}else{$j--}$j--}var _LN=$1.palettemap2;for(var _LO=0,_LP=_LN.length;_LO<_LP;_LO++){var _LQ=$g(_LN,_LO);var _LR=$g(_LQ,0);$k[$j++]=_LQ;$k[$j++]=_LR;if(_LR<0){var _LT=$k[--$j];var _LU=$k[--$j];$p(_LU,0,$f($f(_LT+$1.cols)-1));$k[$j++]=_LU}else{$j--}var _LV=$k[--$j];var _LW=$g(_LV,1);$k[$j++]=_LV;$k[$j++]=_LW;if(_LW<0){var _LY=$k[--$j];var _LZ=$k[--$j];$p(_LZ,1,$f($f(_LY+$1.rows)-1));$k[$j++]=_LZ}else{$j--}$j--}for(var _Lc=0,_Lb=$f($1.nummetamodules-1);_Lc<=_Lb;_Lc+=1){$k[$j++]=$1.pixs;$q($g($1.metadatamap,_Lc));$1.jmv();var _Lg=$k[--$j];$p($k[--$j],_Lg,0)}if(!$1.slave){var _Lj=$1.colors;var _Lk=16;if(16>_Lj){var _=_Lj;_Lj=_Lk;_Lk=_}for(var _Lm=0,_Ll=_Lk-1;_Lm<=_Ll;_Lm+=1){$1.i=_Lm;var _Lp=$g($1.palettelayout,$1.i);$k[$j++]=_Lp;$k[$j++]=$1.pixs;$k[$j++]=_Lp;$q($g($1.palettemap1,$1.i));$1.jmv();var _Lu=$k[--$j];var _Lv=$k[--$j];$p($k[--$j],_Lu,_Lv);var _Ly=$k[--$j];$k[$j++]=$1.pixs;$k[$j++]=_Ly;$q($g($1.palettemap2,$1.i));$1.jmv();var _M2=$k[--$j];var _M3=$k[--$j];$p($k[--$j],_M2,_M3)}$1.i=16}else{$1.i=0}$1.j=$1.nummetamodules;for(var _M9=$1.i,_M8=$1.palettelayout.length-1;_M9<=_M8;_M9+=2){$1.i=_M9;var _MC=$g($1.palettelayout,$1.i);$k[$j++]=_MC;$k[$j++]=$1.pixs;$k[$j++]=_MC;$q($g($1.metadatamap,$1.j));$1.jmv();var _MH=$k[--$j];var _MI=$k[--$j];$p($k[--$j],_MH,_MI);var _ML=$k[--$j];$k[$j++]=$1.pixs;$k[$j++]=_ML;$q($g($1.metadatamap,$f($1.j+2)));$1.jmv();var _MP=$k[--$j];var _MQ=$k[--$j];$p($k[--$j],_MP,_MQ);var _MU=$g($1.palettelayout,$1.i+1);$k[$j++]=_MU;$k[$j++]=$1.pixs;$k[$j++]=_MU;$q($g($1.metadatamap,$f($1.j+1)));$1.jmv();var _MZ=$k[--$j];var _Ma=$k[--$j];$p($k[--$j],_MZ,_Ma);var _Md=$k[--$j];$k[$j++]=$1.pixs;$k[$j++]=_Md;$q($g($1.metadatamap,$f($1.j+3)));$1.jmv();var _Mh=$k[--$j];var _Mi=$k[--$j];$p($k[--$j],_Mh,_Mi);$1.j=$f($1.j+4)}var _NA=$a([function(){var _Ml=$k[--$j];var _Mm=$k[--$j];$k[$j++]=$f(_Mm+_Ml)%$1.colors},function(){$j--;var _Mp=$k[--$j];$k[$j++]=_Mp%$1.colors},function(){var _Mq=$k[--$j];var _Mr=$k[--$j];$k[$j++]=_Mq;$k[$j++]=_Mr;$j--;var _Mt=$k[--$j];$k[$j++]=_Mt%$1.colors},function(){var _Mu=$k[--$j];var _Mv=$k[--$j];$k[$j++]=(~~(_Mu/3)+~~(_Mv/2))%$1.colors},function(){var _Mx=$k[--$j];var _My=$k[--$j];$k[$j++]=(~~(_Mx/2)+~~(_My/3))%$1.colors},function(){var _N0=$k[--$j];var _N2=$f($k[--$j]+_N0);$k[$j++]=(~~(_N2/2)+~~(_N2/3))%$1.colors},function(){var _N4=$k[--$j];var _N5=$k[--$j];$k[$j++]=$f(_N4*(_N5*_N5)%7+$f(_N4+_N5*_N5)*2%19)%$1.colors},function(){var _N7=$k[--$j];var _N8=$k[--$j];$k[$j++]=$f(_N8*(_N7*_N7)%5+$f(_N7*_N7+_N8*2)%13)%$1.colors}]);$1.maskfuncs=_NA;if($1.mask!=-1){$1.maskfuncs=$a([$g($1.maskfuncs,$1.mask)]);$1.bestmaskval=$1.mask}$1.masks=$a($1.maskfuncs.length);for(var _NL=0,_NK=$1.masks.length-1;_NL<=_NK;_NL+=1){$1.m=_NL;$1.mask=$a($1.rows*$1.cols);for(var _NR=0,_NQ=$f($1.rows-1);_NR<=_NQ;_NR+=1){$1.j=_NR;for(var _NU=0,_NT=$f($1.cols-1);_NU<=_NT;_NU+=1){$1.i=_NU;$k[$j++]=$1.pixs;$k[$j++]=$1.i;$k[$j++]=$1.j;$1.jmv();var _NY=$k[--$j];if($g($k[--$j],_NY)==-1){$k[$j++]=$1.i;$k[$j++]=$1.j;if($g($1.maskfuncs,$1.m)()===true){break}}else{$k[$j++]=0}$k[$j++]=$1.mask;$k[$j++]=$1.i;$k[$j++]=$1.j;$1.jmv();var _Nj=$k[--$j];var _Nk=$k[--$j];$p(_Nk,_Nj,$k[--$j])}}$p($1.masks,$1.m,$1.mask)}$1.posx=0;$1.posy=0;$1.i=0;for(;;){if($1.posx==$1.cols){break}$k[$j++]=$1.pixs;$k[$j++]=$1.posx;$k[$j++]=$1.posy;$1.jmv();var _Nu=$k[--$j];if($g($k[--$j],_Nu)==-1){var _O0=$G($1.bits,$1.i,$1.databpm);$k[$j++]=0;for(var _O1=0,_O2=_O0.length;_O1<_O2;_O1++){var _O4=$k[--$j];$k[$j++]=$f(_O4+$f($g(_O0,_O1)-48))*2}var _O5=$k[--$j];$k[$j++]=~~(_O5/2);$k[$j++]=$1.pixs;$k[$j++]=$1.posx;$k[$j++]=$1.posy;$1.jmv();var _O9=$k[--$j];var _OA=$k[--$j];$p(_OA,_O9,$k[--$j]);$1.i=$1.i+$1.databpm}$1.posy=$1.posy+1;if($1.posy==$1.rows){$1.posy=0;$1.posx=$1.posx+1}}$1.evalrle=function(){$1.scrle=$k[--$j];$1.scr1=0;$1.scr3=0;for(var _OL=0,_OK=$1.scrle.length-2;_OL<=_OK;_OL+=2){$1.j=_OL;if($g($1.scrle,$1.j+1)!=-1){var _OR=$g($1.scrle,$1.j);$k[$j++]=_OR;if(_OR>=5){$1.scr1=$f($f($k[--$j]-2)+$1.scr1)}else{$j--}if($1.j>=4&&$1.j<=$1.scrle.length-5){var _OZ=$G($1.scrle,$1.j-4,10);$k[$j++]=_OZ;for(var _Oa=0,_Ob=_OZ.length;_Oa<_Ob;_Oa++){$k[$j++]=$g(_OZ,_Oa)==1}$j--;for(var _Od=0,_Oe=4;_Od<_Oe;_Od++){var _Of=$k[--$j];var _Og=$k[--$j];$k[$j++]=_Of;$k[$j++]=_Og;$j--;var _Oh=$k[--$j];var _Oi=$k[--$j];$k[$j++]=$an(_Oi,_Oh)}if($k[--$j]){$k[$j++]=Infinity;var _Ok=$k[--$j];var _Ol=$k[--$j];$k[$j++]=_Ok;$q(_Ol);var _Om=$k[--$j];var _On=$k[--$j];var _Oo=$k[--$j];var _Op=$k[--$j];var _Oq=$k[--$j];var _Or=$k[--$j];var _Os=$k[--$j];var _Ot=$k[--$j];var _Ou=$k[--$j];$k[$j++]=_Ou;$k[$j++]=_Ot;$k[$j++]=_Os;$k[$j++]=_Or;$k[$j++]=_Oq;$k[$j++]=_Op;$k[$j++]=_Oo;$k[$j++]=_On;$k[$j++]=_Om;if($eq(_Ou,_Oq)&&$eq(_Ou,_Om)&&$eq(_Os,_Oo)){var _Ov=$k[--$j];var _Ow=$k[--$j];var _Ox=$k[--$j];$1.c4=_Ox;$1.c5=_Ov;$k[$j++]=_Ox;$k[$j++]=_Ow;if($1.c4==$1.bi&&$1.c5==$1.yi||($1.c4==$1.yi&&$1.c5==$1.bi||($1.c4==$1.gi&&$1.c5==$1.mi||$1.c4==$1.mi&&$1.c5==$1.gi))){$1.scr3=$1.scr3+100}}$l()}else{$j--}}}}$k[$j++]=$1.scr1;$k[$j++]=$1.scr3};$1.evalmask=function(){$1.sym=$k[--$j];$1.n1=0;$1.n2=0;$1.n3=0;var _PI=$1.rows;var _PJ=$1.cols;if(_PI<_PJ){var _=_PJ;_PJ=_PI;_PI=_}$1.rle=$a($f(_PI*2+2));$1.lastpairs=$a($1.cols);$1.thispairs=$a($1.cols);for(var _PR=0,_PQ=$f($1.cols-1);_PR<=_PQ;_PR+=1){$1.i=_PR;$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=-1;for(var _PX=$1.i,_PY=$1.cols,_PW=$f($1.rows*$1.cols-1);_PY<0?_PX>=_PW:_PX<=_PW;_PX+=_PY){var _Pa=$g($1.sym,_PX);var _Pb=$k[--$j];$k[$j++]=_Pb;$k[$j++]=_Pa;if($eq(_Pb,_Pa)){$j--;var _Pc=$k[--$j];var _Pd=$k[--$j];$k[$j++]=$f(_Pd+1);$k[$j++]=_Pc}else{var _Pe=$k[--$j];$k[$j++]=1;$k[$j++]=_Pe}}var _Pg=$m()+2;$r($G($1.rle,0,_Pg-2));$1.evalrle();$1.n3=$f($k[--$j]+$1.n3);$1.n1=$f($k[--$j]+$1.n1);$j--}for(var _Po=0,_Pn=$f($1.rows-1);_Po<=_Pn;_Po+=1){$1.i=_Po;$1.symrow=$G($1.sym,$1.i*$1.cols,$1.cols);$k[$j++]=Infinity;var _Pu=$1.symrow;$k[$j++]=0;$k[$j++]=-1;for(var _Pv=0,_Pw=_Pu.length;_Pv<_Pw;_Pv++){var _Px=$g(_Pu,_Pv);var _Py=$k[--$j];$k[$j++]=_Py;$k[$j++]=_Px;if($eq(_Py,_Px)){$j--;var _Pz=$k[--$j];var _Q0=$k[--$j];$k[$j++]=$f(_Q0+1);$k[$j++]=_Pz}else{var _Q1=$k[--$j];$k[$j++]=1;$k[$j++]=_Q1}}var _Q3=$m()+2;$r($G($1.rle,0,_Q3-2));$1.evalrle();$1.n3=$f($k[--$j]+$1.n3);$1.n1=$f($k[--$j]+$1.n1);$j--;var _Q9=$1.thispairs;$1.thispairs=$1.lastpairs;$1.lastpairs=_Q9;var _QB=$1.symrow;$k[$j++]=-1;for(var _QC=0,_QD=_QB.length;_QC<_QD;_QC++){var _QE=$g(_QB,_QC);var _QF=$k[--$j];$k[$j++]=_QE;$k[$j++]=_QF;if($ne(_QE,_QF)){$j--;var _QG=$k[--$j];$k[$j++]=-1;$k[$j++]=_QG}}$j--;$r($1.thispairs);$j--;if($1.i>0){$k[$j++]=Infinity;$q($1.lastpairs);$q($1.thispairs);$k[$j++]=$1.n2;for(var _QN=0,_QO=$1.cols;_QN<_QO;_QN++){var _QP=$k[--$j];var _QQ=$k[--$j];$k[$j++]=_QP;$k[$j++]=_QQ;if(_QQ!=-1){var _QS=$k[$j-1-$f($1.cols+1)];if($eq($k[--$j],_QS)){var _QU=$k[--$j];$k[$j++]=$f(_QU+3)}}else{$j--}}$1.n2=$k[--$j];$l()}}$k[$j++]=$f($f($1.n1+$1.n2)+$1.n3)};$1.bestscore=999999999;for(var _Qb=0,_Qa=$1.masks.length-1;_Qb<=_Qa;_Qb+=1){$1.m=_Qb;$1.masksym=$a($1.rows*$1.cols);for(var _Qi=0,_Qh=$f($1.rows*$1.cols-1);_Qi<=_Qh;_Qi+=1){$1.i=_Qi;$p($1.masksym,$1.i,$xo($g($1.pixs,$1.i),$g($g($1.masks,$1.m),$1.i)))}if($1.masks.length!=1){$k[$j++]=$1.masksym;$1.evalmask();$1.score=$k[--$j];if($1.score<$1.bestscore){$1.bestsym=$1.masksym;$1.bestmaskval=$1.m;$1.bestscore=$1.score}}else{$1.bestsym=$1.masksym}}$1.pixs=$1.bestsym;$1.metamask=$1.bestmaskval;$1.addtometapart=function(){var _R4=$k[--$j];$P($1.metapart,$1.p,_R4);$1.p=_R4.length+$1.p};$1.addtometabits=function(){var _R8=$k[--$j];$P($1.metabits,$1.q,_R8);$1.q=_R8.length+$1.q};$1.metapart=$s(40);$1.metabits=$s($1.nummetabits);$1.p=0;$1.q=0;if(!$1.slave){$k[$j++]=~~Math.round(Math.log($1.colors)/Math.log(2))-1;$k[$j++]=3;$1.tofixedbits();$1.addtometapart();$k[$j++]=$G($1.metapart,0,$1.p);$k[$j++]=2;$k[$j++]=-1;$1.ldpc();$1.addtometabits();$1.p=0;$k[$j++]=$1.metass;$k[$j++]=1;$1.tofixedbits();$1.addtometapart();$k[$j++]=$1.metavf;$k[$j++]=2;$1.tofixedbits();$1.addtometapart();$k[$j++]=$1.metamask;$k[$j++]=3;$1.tofixedbits();$1.addtometapart();if($1.hasslaves){$k[$j++]="1"}else{$k[$j++]="0"}$1.addtometapart();$k[$j++]=$G($1.metapart,0,$1.p);$k[$j++]=2;$k[$j++]=-1;$1.ldpc();$1.addtometabits();$1.p=0;if($1.metass==0){$k[$j++]=$f($f(~~($f($1.cols-17)/4)-$g($a([0,4,8,16]),$1.metavf))-1);$k[$j++]=$1.metavlen;$1.tofixedbits();$1.addtometapart()}else{$k[$j++]=~~($f($1.cols-17)/4)-1;$k[$j++]=~~($1.metavlen/2);$1.tofixedbits();$1.addtometapart();$k[$j++]=~~($f($1.rows-17)/4)-1;$k[$j++]=~~($1.metavlen/2);$1.tofixedbits();$1.addtometapart()}$k[$j++]=$1.datawc-3;$k[$j++]=~~($1.metaelen/2);$1.tofixedbits();$1.addtometapart();$k[$j++]=$1.datawr-4;$k[$j++]=~~($1.metaelen/2);$1.tofixedbits();$1.addtometapart();if($1.hasslaves){$k[$j++]=0;$k[$j++]=4;$1.tofixedbits();$1.addtometapart()}$k[$j++]=$G($1.metapart,0,$1.p);$k[$j++]=2;$k[$j++]=-1;$1.ldpc();$1.addtometabits();$1.p=0}else{var _Rk=$1.sameshape?0:1;$k[$j++]=_Rk;$k[$j++]=1;$1.tofixedbits();$1.addtometapart();var _Rm=$1.sameecc?0:1;$k[$j++]=_Rm;$k[$j++]=1;$1.tofixedbits();$1.addtometapart();var _Ro=$1.hasslaves?1:0;$k[$j++]=_Ro;$k[$j++]=1;$1.tofixedbits();$1.addtometapart();$k[$j++]=$G($1.metapart,0,$1.p);$k[$j++]=2;$k[$j++]=-1;$1.ldpc();$1.addtometabits();$1.p=0;if(!$1.sameshape){$k[$j++]=~~(($1.diffside-17)/4)-1;$k[$j++]=5;$1.tofixedbits();$1.addtometapart()}if($1.hasslaves){$k[$j++]=0;$k[$j++]=3;$1.tofixedbits();$1.addtometapart()}$k[$j++]=$G($1.metapart,0,$1.p);$k[$j++]=2;$k[$j++]=-1;$1.ldpc();$1.addtometabits();$1.p=0;if(!$1.sameecc){$k[$j++]=$1.datawc-3;$k[$j++]=~~($1.metaelen/2);$1.tofixedbits();$1.addtometapart();$k[$j++]=$1.datawr-4;$k[$j++]=~~($1.metaelen/2);$1.tofixedbits();$1.addtometapart()}$k[$j++]=$G($1.metapart,0,$1.p);$k[$j++]=2;$k[$j++]=-1;$1.ldpc();$1.addtometabits();$1.p=0}for(var _S9=$1.q,_S8=$f($1.nummetabits-1);_S9<=_S8;_S9+=1){$p($1.metabits,_S9,48)}$1.i=0;$1.j=0;if(!$1.slave){var _SE=$G($1.metabits,$1.i,6);for(var _SF=0,_SG=_SE.length;_SF<_SG;_SF++){$k[$j++]=$g(_SE,_SF);if($1.colors==4){$k[$j++]=$a([$1.bi,$1.yi])}else{$k[$j++]=$a([$1.ki,$1.wi])}var _SP=$k[--$j];var _SR=$g(_SP,$f($k[--$j]-48));$k[$j++]=_SR;$k[$j++]=$1.pixs;$q($g($1.metadatamap,$1.j));$1.jmv();var _SW=$k[--$j];var _SX=$k[--$j];$p(_SX,_SW,$k[--$j]);$1.j=$1.j+1}$1.i=$1.i+6}for(var _Se=0,_Sf=~~($f($1.nummetabits-$1.i)/$1.metabpm);_Se<_Sf;_Se++){var _Sj=$G($1.metabits,$1.i,$1.metabpm);$k[$j++]=0;for(var _Sk=0,_Sl=_Sj.length;_Sk<_Sl;_Sk++){var _Sn=$k[--$j];$k[$j++]=$f(_Sn+$f($g(_Sj,_Sk)-48))*2}var _Sq=$g($1.metacolorindex,~~($k[--$j]/2));$k[$j++]=_Sq;$k[$j++]=$1.pixs;$q($g($1.metadatamap,$1.j));$1.jmv();var _Sv=$k[--$j];var _Sw=$k[--$j];$p(_Sw,_Sv,$k[--$j]);$1.i=$f($1.i+$1.metabpm);$1.j=$1.j+1}var _T8=new Map([["ren",$0.renmatrix],["pixs",$1.pixs],["pixx",$1.cols],["pixy",$1.rows],["colormap",$1.palette],["height",$1.rows*2/72],["width",$1.cols*2/72],["opt",$1.options]]);$k[$j++]=_T8;if(!$1.dontdraw){$0.renmatrix()}};$0["gs1-cc"]=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.parse=false;$1.dontlint=false;$1.dontdraw=false;$1.ccversion="a";$1.cccolumns=-1;$1.lintype="";$1.linwidth=-1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.cccolumns=~~$1.cccolumns;$1.linwidth=~~$1.linwidth;if($1.cccolumns==-1){$k[$j++]=Infinity;$k[$j++]="ean13";$k[$j++]=4;$k[$j++]="upca";$k[$j++]=4;$k[$j++]="ean8";$k[$j++]=3;$k[$j++]="upce";$k[$j++]=2;$k[$j++]="gs1-128";if($ne($1.ccversion,"c")){$k[$j++]=4}else{$k[$j++]=~~(($1.linwidth-52)/17)}$k[$j++]="databaromni";$k[$j++]=4;$k[$j++]="databarstacked";$k[$j++]=2;$k[$j++]="databarstackedomni";$k[$j++]=2;$k[$j++]="databartruncated";$k[$j++]=4;$k[$j++]="databarlimited";$k[$j++]=3;$k[$j++]="databarexpanded";$k[$j++]=4;$k[$j++]="databarexpandedstacked";$k[$j++]=4;$1.cccolumns=$g($d(),$1.lintype)}$1.expand=function(){var _E=new Map([["parse",$1.parse],["parseonly",true],["parsefnc",false]]);$1.fncvals=_E;$k[$j++]=$1.fncvals;$0.parseinput()};$1.ais=$a([]);$1.vals=$a([]);var _I=$1.barcode;$k[$j++]=$G(_I,1,_I.length-1);for(;;){var _K=$k[--$j];$k[$j++]=_K;if($eq(_K,"")){break}$x($k[--$j],")");$j--;var _M=$k[--$j];var _N=$k[--$j];$k[$j++]=_M;$k[$j++]=_N;$j--;var _O=$k[--$j];var _P=$k[--$j];$k[$j++]=_O;$x(_P,"(");if($k[--$j]){var _R=$k[--$j];var _S=$k[--$j];$k[$j++]=_R;$k[$j++]=_S;$j--;var _T=$k[--$j];var _U=$k[--$j];var _V=$k[--$j];$k[$j++]=_U;$k[$j++]=_V;$k[$j++]=_T}else{var _W=$k[--$j];var _X=$k[--$j];$k[$j++]="";$k[$j++]=_X;$k[$j++]=_W}$k[$j++]=Infinity;$q($1.ais);var _a=$k[$j-1-($m()+2)];$k[$j++]=_a;$1.ais=$a();$k[$j++]=Infinity;$q($1.vals);var _e=$k[$j-1-($m()+1)];$k[$j++]=_e;$1.expand();$1.vals=$a();$j-=2}$j--;if(!$1.dontlint){$k[$j++]=$1.ais;$k[$j++]=$1.vals;$0.gs1lint();$j--}$1.isupper=function(){var _j=$k[--$j];$k[$j++]=_j>=65&&_j<=90};$1.isnum0=function(){var _k=$k[--$j];$k[$j++]=_k>=48&&_k<=57};$1.isnum1=function(){var _l=$k[--$j];$k[$j++]=_l>=49&&_l<=57};for(;;){if($1.ais.length>=1){if($eq($g($1.ais,0),"10")||$eq($g($1.ais,0),"11")||$eq($g($1.ais,0),"17")){$k[$j++]=-1;$k[$j++]="10";break}}if($1.ais.length>=1){if($eq($g($1.ais,0),"90")){$1.v=$g($1.vals,0);if($1.v.length>=1){$k[$j++]=$g($1.v,0);$1.isupper();if($k[--$j]){$k[$j++]=0;$k[$j++]="11";break}}if($1.v.length>=2){$k[$j++]=$g($1.v,0);$1.isnum1();$k[$j++]=$g($1.v,1);$1.isupper();var _17=$k[--$j];var _18=$k[--$j];if(_18&&_17){$k[$j++]=1;$k[$j++]="11";break}}if($1.v.length>=3){$k[$j++]=$g($1.v,0);$1.isnum1();$k[$j++]=$g($1.v,1);$1.isnum0();var _1E=$k[--$j];var _1F=$k[--$j];$k[$j++]=$an(_1F,_1E);$k[$j++]=$g($1.v,2);$1.isupper();var _1I=$k[--$j];var _1J=$k[--$j];if(_1J&&_1I){$k[$j++]=2;$k[$j++]="11";break}}if($1.v.length>=4){$k[$j++]=$g($1.v,0);$1.isnum1();$k[$j++]=$g($1.v,1);$1.isnum0();var _1P=$k[--$j];var _1Q=$k[--$j];$k[$j++]=$an(_1Q,_1P);$k[$j++]=$g($1.v,2);$1.isnum0();var _1T=$k[--$j];var _1U=$k[--$j];$k[$j++]=$an(_1U,_1T);$k[$j++]=$g($1.v,3);$1.isupper();var _1X=$k[--$j];var _1Y=$k[--$j];if(_1Y&&_1X){$k[$j++]=3;$k[$j++]="11";break}}}}$k[$j++]=-1;$k[$j++]="0";break}$1.method=$k[--$j];$1.npre=$k[--$j];$1.fnc1=-1;$1.lnumeric=-2;$1.lalphanumeric=-3;$1.liso646=-4;$1.tobin=function(){var _1c=$s($k[--$j]);$k[$j++]=_1c;for(var _1e=0,_1d=_1c.length-1;_1e<=_1d;_1e+=1){var _1f=$k[--$j];$p(_1f,_1e,48);$k[$j++]=_1f}var _1g=$k[--$j];var _1j=$R($s(_1g.length),$k[--$j],2);$P(_1g,_1g.length-_1j.length,_1j);$k[$j++]=_1g};$k[$j++]=Infinity;for(var _1k=65;_1k<=90;_1k+=1){$k[$j++]=_1k;$k[$j++]=_1k-65;$k[$j++]=5;$1.tobin()}for(var _1l=48;_1l<=57;_1l+=1){$k[$j++]=_1l;$k[$j++]=_1l+4;$k[$j++]=6;$1.tobin()}$k[$j++]=$1.fnc1;$k[$j++]="11111";$1.alpha=$d();$k[$j++]=Infinity;for(var _1o=0;_1o<=119;_1o+=1){var _1q=$Z($s(2),"00");var _1s=$R($s(2),_1o,11);$P(_1q,2-_1s.length,_1s);$k[$j++]=_1o;$k[$j++]=_1q;if($g(_1q,0)==65){var _1u=$k[--$j];$p(_1u,0,94);$k[$j++]=_1u}var _1v=$k[--$j];$k[$j++]=_1v;if($g(_1v,1)==65){var _1x=$k[--$j];$p(_1x,1,94);$k[$j++]=_1x}var _1y=$k[--$j];var _21=$Z($s(7),"0000000");var _23=$R($s(7),$f($k[--$j]+8),2);$P(_21,7-_23.length,_23);$k[$j++]=_1y;$k[$j++]=_21}$k[$j++]=$1.lalphanumeric;$k[$j++]="0000";$1.numeric=$d();$k[$j++]=Infinity;for(var _26=48;_26<=57;_26+=1){$k[$j++]=_26;$k[$j++]=_26-43;$k[$j++]=5;$1.tobin()}$k[$j++]=$1.fnc1;$k[$j++]="01111";for(var _28=65;_28<=90;_28+=1){$k[$j++]=_28;$k[$j++]=_28-33;$k[$j++]=6;$1.tobin()}$k[$j++]=42;$k[$j++]="111010";for(var _29=44;_29<=47;_29+=1){$k[$j++]=_29;$k[$j++]=_29+15;$k[$j++]=6;$1.tobin()}$k[$j++]=$1.lnumeric;$k[$j++]="000";$k[$j++]=$1.liso646;$k[$j++]="00100";$1.alphanumeric=$d();$k[$j++]=Infinity;for(var _2D=48;_2D<=57;_2D+=1){$k[$j++]=_2D;$k[$j++]=_2D-43;$k[$j++]=5;$1.tobin()}$k[$j++]=$1.fnc1;$k[$j++]="01111";for(var _2F=65;_2F<=90;_2F+=1){$k[$j++]=_2F;$k[$j++]=_2F-1;$k[$j++]=7;$1.tobin()}for(var _2G=97;_2G<=122;_2G+=1){$k[$j++]=_2G;$k[$j++]=_2G-7;$k[$j++]=7;$1.tobin()}$k[$j++]=33;$k[$j++]="11101000";$k[$j++]=34;$k[$j++]="11101001";for(var _2H=37;_2H<=47;_2H+=1){$k[$j++]=_2H;$k[$j++]=_2H+197;$k[$j++]=8;$1.tobin()}for(var _2I=58;_2I<=63;_2I+=1){$k[$j++]=_2I;$k[$j++]=_2I+187;$k[$j++]=8;$1.tobin()}$k[$j++]=95;$k[$j++]="11111011";$k[$j++]=32;$k[$j++]="11111100";$k[$j++]=$1.lnumeric;$k[$j++]="000";$k[$j++]=$1.lalphanumeric;$k[$j++]="00100";$1.iso646=$d();if($eq($1.method,"10")){if($eq($g($1.ais,0),"11")||$eq($g($1.ais,0),"17")){var _2S=$g($1.vals,0);var _2X=$Z($s(16),"0000000000000000");var _2Z=$R($s(16),~~$z($G(_2S,0,2))*384+((~~$z($G(_2S,2,2))-1)*32+~~$z($G(_2S,4,2))),2);$P(_2X,16-_2Z.length,_2Z);$k[$j++]=_2X;$k[$j++]=Infinity;var _2a=$k[--$j];var _2b=$k[--$j];$k[$j++]=_2a;$k[$j++]=1;$k[$j++]=0;$F(_2b,function(){var _2c=$k[--$j];$k[$j++]=$f(_2c-48)});var _2f=$eq($g($1.ais,0),"11")?0:1;$k[$j++]=_2f;$1.cdf=$a();$1.ais=$G($1.ais,1,$1.ais.length-1);$1.vals=$G($1.vals,1,$1.vals.length-1)}else{$1.cdf=$a([1,0,1,1])}if($1.ais.length!=0){if($eq($g($1.ais,0),"10")){$k[$j++]=Infinity;$F($g($1.vals,0));$1.gpf=$a();if($1.ais.length>1){$k[$j++]=Infinity;$q($1.gpf);$k[$j++]=$1.fnc1;$1.gpf=$a()}$1.ais=$G($1.ais,1,$1.ais.length-1);$1.vals=$G($1.vals,1,$1.vals.length-1)}else{$1.gpf=$a([$1.fnc1])}}else{$k[$j++]=Infinity;$q($1.cdf);$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$1.cdf=$a();$1.gpf=$a([])}$1.mode="numeric"}if($eq($1.method,"11")){$1.cdf=$a([1,1]);$1.ai90=$g($1.vals,0);if($f($1.npre+1)!=$1.ai90.length){$k[$j++]=$G($1.ai90,$f($1.npre+1),$f($f($1.ai90.length-$1.npre)-1))}else{$k[$j++]=""}$1.ai90rem=$k[--$j];$k[$j++]="nalpha";$k[$j++]=0;$F($1.ai90rem,function(){var _3M=$k[--$j];if(_3M>=65&&_3M<=90){var _3N=$k[--$j];$k[$j++]=$f(_3N+1)}});var _3O=$k[--$j];$1[$k[--$j]]=_3O;$k[$j++]="nnums";$k[$j++]=0;$F($1.ai90rem,function(){var _3R=$k[--$j];if(_3R>=48&&_3R<=57){var _3S=$k[--$j];$k[$j++]=$f(_3S+1)}});var _3T=$k[--$j];$1[$k[--$j]]=_3T;$k[$j++]="mode";if($gt($1.nalpha,$1.nnums)){$k[$j++]="alpha"}else{if($1.nalpha==0){$k[$j++]="numeric"}else{$k[$j++]="alphanumeric"}}var _3Y=$k[--$j];$1[$k[--$j]]=_3Y;if($f($1.nalpha+$1.nnums)!=$1.ai90rem.length){$1.mode="alphanumeric"}$k[$j++]=Infinity;$q($1.cdf);if($eq($1.mode,"alphanumeric")){$k[$j++]=0}if($eq($1.mode,"numeric")){$k[$j++]=1;$k[$j++]=0}if($eq($1.mode,"alpha")){$k[$j++]=1;$k[$j++]=1}$1.cdf=$a();$k[$j++]="ais1";if($1.ais.length>1){$k[$j++]=$g($1.ais,1)}else{$k[$j++]=-1}var _3l=$k[--$j];$1[$k[--$j]]=_3l;$k[$j++]="vals1";if($1.vals.length>1){$k[$j++]=$g($1.vals,1)}else{$k[$j++]=-1}var _3q=$k[--$j];$1[$k[--$j]]=_3q;if($eq($1.ais1,"21")||$eq($1.ais1,"8004")){$k[$j++]=Infinity;$q($1.cdf);if($eq($1.ais1,"21")){$k[$j++]=1;$k[$j++]=0}else{$k[$j++]=1;$k[$j++]=1}$1.cdf=$a()}else{$k[$j++]=Infinity;$q($1.cdf);$k[$j++]=0;$1.cdf=$a()}$k[$j++]="nval";if($1.npre!=0){$k[$j++]=~~$z($G($1.ai90,0,$1.npre))}else{$k[$j++]=0}var _43=$k[--$j];$1[$k[--$j]]=_43;$x("BDHIJKLNPQRSTVXZ",$G($1.ai90,$1.npre,1));if($k[--$j]){var _49=$k[--$j];var _4A=$k[--$j];$k[$j++]=_49.length;$k[$j++]=_4A;$j--;var _4B=$k[--$j];var _4C=$k[--$j];$k[$j++]=_4B;$k[$j++]=_4C;$j--;$1.aval=$k[--$j]}else{$j--;$1.aval=-1}if($1.nval<31&&$1.aval!=-1){var _4H=$Z($s(5),"00000");var _4K=$R($s(5),$1.nval,2);$P(_4H,5-_4K.length,_4K);$k[$j++]=_4H;$k[$j++]=Infinity;var _4L=$k[--$j];var _4M=$k[--$j];$k[$j++]=_4L;$F(_4M,function(){var _4N=$k[--$j];$k[$j++]=$f(_4N-48)});$1.nbits=$a();var _4Q=$Z($s(4),"0000");var _4T=$R($s(4),$1.aval,2);$P(_4Q,4-_4T.length,_4T);$k[$j++]=_4Q;$k[$j++]=Infinity;var _4U=$k[--$j];var _4V=$k[--$j];$k[$j++]=_4U;$F(_4V,function(){var _4W=$k[--$j];$k[$j++]=$f(_4W-48)});$1.abits=$a();$k[$j++]=Infinity;$q($1.cdf);$q($1.nbits);$q($1.abits);$1.cdf=$a()}else{var _4d=$Z($s(10),"0000000000");var _4g=$R($s(10),$1.nval,2);$P(_4d,10-_4g.length,_4g);$k[$j++]=_4d;$k[$j++]=Infinity;var _4h=$k[--$j];var _4i=$k[--$j];$k[$j++]=_4h;$F(_4i,function(){var _4j=$k[--$j];$k[$j++]=$f(_4j-48)});$1.nbits=$a();var _4m=$Z($s(5),"00000");var _4r=$R($s(5),$f($g($1.ai90,$1.npre)-65),2);$P(_4m,5-_4r.length,_4r);$k[$j++]=_4m;$k[$j++]=Infinity;var _4s=$k[--$j];var _4t=$k[--$j];$k[$j++]=_4s;$F(_4t,function(){var _4u=$k[--$j];$k[$j++]=$f(_4u-48)});$1.abits=$a();$k[$j++]=Infinity;$q($1.cdf);$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$q($1.nbits);$q($1.abits);$1.cdf=$a()}if($ne($1.mode,"alpha")){$k[$j++]=Infinity;$F($1.ai90rem);if($1.ais.length>1){$k[$j++]=$1.fnc1}$1.gpf=$a()}else{$k[$j++]=Infinity;$F($1.ai90rem);if($1.ais.length>1){$k[$j++]=$1.fnc1}$1.in=$a();$1.out=$a($1.in.length*6);$1.j=0;for(var _5D=0,_5C=$1.in.length-1;_5D<=_5C;_5D+=1){var _5H=$g($1.alpha,$g($1.in,_5D));$k[$j++]=_5H;$k[$j++]=_5H;$k[$j++]=Infinity;var _5I=$k[--$j];var _5J=$k[--$j];$k[$j++]=_5I;$F(_5J,function(){var _5K=$k[--$j];$k[$j++]=$f(_5K-48)});$P($1.out,$1.j,$a());$1.j=$k[--$j].length+$1.j}$k[$j++]=Infinity;$q($1.cdf);$q($G($1.out,0,$1.j));$1.cdf=$a();$1.gpf=$a([]);if($1.ais.length>1){$1.mode="numeric"}}$1.ais=$G($1.ais,1,$1.ais.length-1);$1.vals=$G($1.vals,1,$1.vals.length-1);if($1.ais.length!=0){if($eq($1.ais1,"21")||$eq($1.ais1,"8004")){$k[$j++]=Infinity;$q($1.gpf);$F($1.vals1);$1.gpf=$a();$1.ais=$G($1.ais,1,$1.ais.length-1);$1.vals=$G($1.vals,1,$1.vals.length-1);if($1.ais.length!=0){$k[$j++]=Infinity;$q($1.gpf);$k[$j++]=$1.fnc1;$1.gpf=$a()}}}}if($eq($1.method,"0")){$1.cdf=$a([0]);$1.gpf=$a([]);$1.mode="numeric"}$1.aifixed=new Map;$k[$j++]=Infinity;for(var _5w=0;_5w<=4;_5w+=1){$k[$j++]=_5w}var _5x=$a();for(var _5y=0,_5z=_5x.length;_5y<_5z;_5y++){var _62=$Z($s(2),"00");$p(_62,1,$f($g(_5x,_5y)+48));$p($1.aifixed,_62,_62)}$k[$j++]=Infinity;for(var _64=11;_64<=20;_64+=1){$k[$j++]=_64}$k[$j++]=23;for(var _65=31;_65<=36;_65+=1){$k[$j++]=_65}$k[$j++]=41;var _66=$a();for(var _67=0,_68=_66.length;_67<_68;_67++){var _6B=$R($s(2),$g(_66,_67),10);$p($1.aifixed,_6B,_6B)}for(var _6F=0,_6E=$1.ais.length-1;_6F<=_6E;_6F+=1){$1.i=_6F;$1.ai=$g($1.ais,$1.i);$1.val=$g($1.vals,$1.i);var _6P=$a($1.gpf.length+$1.ai.length+$1.val.length);$P(_6P,0,$1.gpf);$k[$j++]=_6P;$k[$j++]=_6P;$k[$j++]=$1.gpf.length;$k[$j++]=$1.ai;$k[$j++]=Infinity;var _6T=$k[--$j];var _6U=$k[--$j];$k[$j++]=_6T;$F(_6U);var _6V=$a();var _6W=$k[--$j];$P($k[--$j],_6W,_6V);var _6Y=$k[--$j];$k[$j++]=_6Y;$k[$j++]=_6Y;$k[$j++]=$1.gpf.length+$1.ai.length;$k[$j++]=$1.val;$k[$j++]=Infinity;var _6c=$k[--$j];var _6d=$k[--$j];$k[$j++]=_6c;$F(_6d);var _6e=$a();var _6f=$k[--$j];$P($k[--$j],_6f,_6e);$1.gpf=$k[--$j];var _6n=$g($1.aifixed,$G($1.ai,0,2))!==undefined;if($1.i!=$1.ais.length-1&&!_6n){var _6p=$a($1.gpf.length+1);$P(_6p,0,$1.gpf);$p(_6p,$1.gpf.length,$1.fnc1);$1.gpf=_6p}}$1.rembits=function(){$1.used=$k[--$j];if($ne($1.ccversion,"c")){var _73=new Map([["a",$a([$a([167,138,118,108,88,78,59]),$a([167,138,118,98,78]),$a([197,167,138,108,78])])],["b",$a([$a([336,296,256,208,160,104,56]),$a([768,648,536,416,304,208,152,112,72,32]),$a([1184,1016,840,672,496,352,264,208,152,96,56])])]]);$1.bitcaps=$g($g(_73,$1.ccversion),$f($1.cccolumns-2));$k[$j++]=-1;$F($1.bitcaps,function(){var _79=$k[--$j];$k[$j++]=_79;if($ge(_79,$1.used)){var _7B=$k[--$j];var _7C=$k[--$j];$k[$j++]=_7B;$k[$j++]=_7C}$j--});var _7D=$k[--$j];$k[$j++]=_7D;if(_7D!=-1){var _7F=$k[--$j];$k[$j++]=$f(_7F-$1.used)}}else{var _7G=new Map([["c",-1]]);var _7I=$g(_7G,$1.ccversion);var _7K=~~Math.ceil($1.used/8);$1.m=~~(_7K/6)*5+_7K%6;if($1.m<=40){$k[$j++]=8}if($1.m>=41&&$1.m<=160){$k[$j++]=16}if($1.m>=161&&$1.m<=320){$k[$j++]=32}if($1.m>=321&&$1.m<=833){$k[$j++]=64}if($1.m>=834){$k[$j++]=32}$1.eccws=$k[--$j];$1.m=$f($f($1.m+$1.eccws)+3);for(;;){if(~~Math.ceil($1.m/$1.cccolumns)<=30||$1.cccolumns>=30){break}$1.cccolumns=$f($1.cccolumns+1)}$1.r=~~Math.ceil($1.m/$1.cccolumns);var _7f=$f($f($1.cccolumns*$1.r-$1.eccws)-3);$1.tgt=$f(~~(_7f/5)*6+_7f%5)*8;if($1.used<=8304){$k[$j++]=$f($1.tgt-$1.used)}else{$k[$j++]=-1}}var _7j=$k[--$j];$k[$j++]=_7j;if(_7j==-1){$j--;if($eq($1.ccversion,"a")){$1.ccversion="b"}else{if($eq($1.ccversion,"b")&&$eq($1.lintype,"gs1-128")){$1.ccversion="c";$1.cccolumns=~~(($1.linwidth-52)/17)}else{$1.ccversion=-1}}$k[$j++]=$1.used;$1.rembits()}};$1.encode=function(){var _7p=$k[--$j];$k[$j++]=_7p;if($ne(_7p,"raw")){var _7q=$k[--$j];var _7s=$g(_7q,$k[--$j]);$k[$j++]=_7s}else{$j--}$k[$j++]=Infinity;var _7t=$k[--$j];var _7u=$k[--$j];$k[$j++]=_7t;$F(_7u,function(){var _7v=$k[--$j];$k[$j++]=$f(_7v-48)});var _7w=$a();$P($1.gpfenc,$1.j,_7w);$1.j=_7w.length+$1.j};$k[$j++]=Infinity;for(var _81=0,_82=$1.gpf.length;_81<_82;_81++){$k[$j++]=0}$k[$j++]=0;$k[$j++]=-1;$1.numericruns=$a();$k[$j++]=Infinity;for(var _85=0,_86=$1.gpf.length;_85<_86;_85++){$k[$j++]=0}$k[$j++]=0;$1.alphanumericruns=$a();$k[$j++]=Infinity;for(var _89=0,_8A=$1.gpf.length;_89<_8A;_89++){$k[$j++]=0}$k[$j++]=9999;$1.nextiso646only=$a();for(var _8D=$1.gpf.length-1;_8D>=0;_8D-=1){$1.i=_8D;var _8I=$Z($s(2),"00");var _8L=$g($1.gpf,$1.i);$k[$j++]=$g($1.gpf,$1.i);$k[$j++]=_8I;$k[$j++]=_8I;$k[$j++]=0;$k[$j++]=_8L;if(_8L==$1.fnc1){$j--;$k[$j++]=94}var _8N=$k[--$j];var _8O=$k[--$j];$p($k[--$j],_8O,_8N);if($1.i<$1.gpf.length-1){var _8S=$k[--$j];var _8V=$g($1.gpf,$1.i+1);$k[$j++]=_8S;$k[$j++]=_8S;$k[$j++]=1;$k[$j++]=_8V;if(_8V==$1.fnc1){$j--;$k[$j++]=94}var _8X=$k[--$j];var _8Y=$k[--$j];$p($k[--$j],_8Y,_8X)}var _8c=$g($1.numeric,$k[--$j])!==undefined;if(_8c){$p($1.numericruns,$1.i,$f($g($1.numericruns,$1.i+2)+2))}else{$p($1.numericruns,$1.i,0)}var _8k=$k[--$j];var _8m=$g($1.alphanumeric,_8k)!==undefined;$k[$j++]=_8k;if(_8m){$p($1.alphanumericruns,$1.i,$f($g($1.alphanumericruns,$1.i+1)+1))}else{$p($1.alphanumericruns,$1.i,0)}var _8u=$k[--$j];var _8w=$g($1.iso646,_8u)!==undefined;var _8y=$g($1.alphanumeric,_8u)!==undefined;if(_8w&&!_8y){$p($1.nextiso646only,$1.i,0)}else{$p($1.nextiso646only,$1.i,$f($g($1.nextiso646only,$1.i+1)+1))}}$1.gpfenc=$a(8304);$1.i=0;$1.j=0;for(;;){if($1.i==$1.gpf.length){break}for(;;){if($eq($1.mode,"numeric")){if($1.i<=$1.gpf.length-2){var _9C=$s(2);var _9F=$g($1.gpf,$1.i);$k[$j++]=_9C;$k[$j++]=_9C;$k[$j++]=0;$k[$j++]=_9F;if(_9F==$1.fnc1){$j--;$k[$j++]=94}var _9H=$k[--$j];var _9I=$k[--$j];$p($k[--$j],_9I,_9H);var _9K=$k[--$j];var _9N=$g($1.gpf,$1.i+1);$k[$j++]=_9K;$k[$j++]=_9K;$k[$j++]=1;$k[$j++]=_9N;if(_9N==$1.fnc1){$j--;$k[$j++]=94}var _9P=$k[--$j];var _9Q=$k[--$j];$p($k[--$j],_9Q,_9P);var _9S=$k[--$j];var _9U=$g($1.numeric,_9S)!==undefined;$k[$j++]=_9S;if(_9U){$k[$j++]=$1.numeric;$1.encode();$1.i=$1.i+2;break}$j--;$k[$j++]=$1.lalphanumeric;$k[$j++]=$1.numeric;$1.encode();$1.mode="alphanumeric";break}else{var _9b=$g($1.gpf,$1.i);if(_9b<48||_9b>57){$k[$j++]=$1.lalphanumeric;$k[$j++]=$1.numeric;$1.encode();$1.mode="alphanumeric";break}$k[$j++]="rem";$k[$j++]=$1.cdf.length+$1.j;$1.rembits();var _9g=$k[--$j];$1[$k[--$j]]=_9g;if($1.rem>=4&&$1.rem<=6){var _9n=$G($Z($s(6),"000000"),0,$1.rem);var _9s=$R($s(4),$f($g($1.gpf,$1.i)-47),2);$P(_9n,4-_9s.length,_9s);$k[$j++]=_9n;$k[$j++]="raw";$1.encode();$1.i=$1.i+1;break}else{var _9u=$s(2);$p(_9u,0,$g($1.gpf,$1.i));$p(_9u,1,94);$k[$j++]=_9u;$k[$j++]=$1.numeric;$1.encode();$1.i=$1.i+1;break}}}if($eq($1.mode,"alphanumeric")){if($g($1.gpf,$1.i)==$1.fnc1){$k[$j++]=$1.fnc1;$k[$j++]=$1.alphanumeric;$1.encode();$1.mode="numeric";$1.i=$1.i+1;break}var _AA=$g($1.gpf,$1.i);var _AC=$g($1.iso646,_AA)!==undefined;var _AE=$g($1.alphanumeric,_AA)!==undefined;if(_AC&&!_AE){$k[$j++]=$1.liso646;$k[$j++]=$1.alphanumeric;$1.encode();$1.mode="iso646";break}if($g($1.numericruns,$1.i)>=6){$k[$j++]=$1.lnumeric;$k[$j++]=$1.alphanumeric;$1.encode();$1.mode="numeric";break}var _AO=$g($1.numericruns,$1.i);if(_AO>=4&&$f(_AO+$1.i)==$1.gpf.length){$k[$j++]=$1.lnumeric;$k[$j++]=$1.alphanumeric;$1.encode();$1.mode="numeric";break}$k[$j++]=$g($1.gpf,$1.i);$k[$j++]=$1.alphanumeric;$1.encode();$1.i=$1.i+1;break}if($eq($1.mode,"iso646")){if($g($1.gpf,$1.i)==$1.fnc1){$k[$j++]=$1.fnc1;$k[$j++]=$1.iso646;$1.encode();$1.mode="numeric";$1.i=$1.i+1;break}if($g($1.numericruns,$1.i)>=4&&$g($1.nextiso646only,$1.i)>=10){$k[$j++]=$1.lnumeric;$k[$j++]=$1.iso646;$1.encode();$1.mode="numeric";break}if($g($1.alphanumericruns,$1.i)>=5&&$g($1.nextiso646only,$1.i)>=10){$k[$j++]=$1.lalphanumeric;$k[$j++]=$1.iso646;$1.encode();$1.mode="alphanumeric";break}$k[$j++]=$g($1.gpf,$1.i);$k[$j++]=$1.iso646;$1.encode();$1.i=$1.i+1;break}}}$1.gpf=$G($1.gpfenc,0,$1.j);$k[$j++]="pad";$k[$j++]=$1.cdf.length+$1.gpf.length;$1.rembits();var _B7=$a($k[--$j]);$1[$k[--$j]]=_B7;if($1.pad.length>0){for(var _BC=0,_BB=$1.pad.length-1;_BC<=_BB;_BC+=5){$1.i=_BC;var _BD=$1.pad;var _BE=$1.i;var _BF=$a([0,0,1,0,0]);var _BG=$1.pad;var _BH=$1.i;var _BI=5;var _BJ=_BG.length-_BH;if(_BG.length-_BH>5){var _=_BI;_BI=_BJ;_BJ=_}$P(_BD,_BE,$G(_BF,0,_BJ))}if($eq($1.mode,"numeric")){$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$q($1.pad);$1.pad=$G($a(),0,$1.pad.length)}if($eq($1.mode,"alpha")){$k[$j++]=Infinity;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=1;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$k[$j++]=0;$q($1.pad);$1.pad=$G($a(),0,$1.pad.length)}}$k[$j++]=Infinity;$q($1.cdf);$q($1.gpf);$q($1.pad);$1.bits=$a();if($1.ccversion=="a"){$k[$j++]=Infinity;$k[$j++]=$a([0,0,0,0,0,0,1]);for(var _Bb=0,_Bc=68;_Bb<_Bc;_Bb++){$k[$j++]=$a(7)}$1.pwr928=$a();for(var _Bf=1;_Bf<=68;_Bf+=1){$1.j=_Bf;$1.v=0;for(var _Bg=6;_Bg>=1;_Bg-=1){$1.i=_Bg;$1.v=$f($g($g($1.pwr928,$1.j-1),$1.i)*2+~~($1.v/928));$p($g($1.pwr928,$1.j),$1.i,$1.v%928)}$p($g($1.pwr928,$1.j),0,$f($g($g($1.pwr928,$1.j-1),0)*2+~~($1.v/928)))}$k[$j++]=Infinity;for(var _C0=0,_C1=28;_C0<_C1;_C0++){$k[$j++]=0}$1.cws=$a();$1.b=0;$1.c=0;for(;;){if($1.b==$1.bits.length){break}var _C5=$1.bits;var _C6=$1.b;var _C7=$1.bits;var _C8=$1.b;var _C9=_C7.length-_C8;var _CA=69;if(69>_C7.length-_C8){var _=_C9;_C9=_CA;_CA=_}$1.bs=$G(_C5,_C6,_CA);$1.bsl=$1.bs.length;$1.cs=$G($1.cws,$1.c,~~($1.bsl/10)+1);$1.csl=$1.cs.length;for(var _CK=0,_CJ=$1.bsl-1;_CK<=_CJ;_CK+=1){$1.i=_CK;for(var _CN=0,_CM=$1.csl-1;_CN<=_CM;_CN+=1){$1.j=_CN;var _CO=$1.cs;var _CP=$1.j;$p(_CO,_CP,$f($g(_CO,_CP)+$g($g($1.pwr928,$1.i),$1.j+7-$1.csl)*$g($1.bs,$1.bsl-$1.i-1)))}}for(var _Cc=$1.csl-1;_Cc>=1;_Cc-=1){$1.i=_Cc;var _Cd=$1.cs;var _Ce=$1.i;$p(_Cd,_Ce-1,$f($g(_Cd,_Ce-1)+~~($g($1.cs,$1.i)/928)));var _Cj=$1.cs;var _Ck=$1.i;$p(_Cj,_Ck,$g(_Cj,_Ck)%928)}$1.b=$1.b+$1.bsl;$1.c=$1.c+$1.csl}$1.cws=$G($1.cws,0,$1.c);$1.barcode=$s($1.cws.length*4);for(var _Cx=0,_Cw=$1.cws.length-1;_Cx<=_Cw;_Cx+=1){$1.i=_Cx;var _Cz=$Z($s(4),"^ ");var _D4=$R($s(4),$g($1.cws,$1.i),10);$P(_Cz,4-_D4.length,_D4);$P($1.barcode,$1.i*4,_Cz)}delete $1.options["parse"];$p($1.options,"dontdraw",true);$p($1.options,"cca",true);$p($1.options,"columns",$1.cccolumns);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.micropdf417();var _DE=$k[--$j];$1[$k[--$j]]=_DE}if($1.ccversion=="b"){$1.barcode=$s(~~($1.bits.length/8));for(var _DL=0,_DK=$1.barcode.length-1;_DL<=_DK;_DL+=1){$1.i=_DL;var _DO=$G($1.bits,$1.i*8,8);$k[$j++]=0;for(var _DP=0,_DQ=_DO.length;_DP<_DQ;_DP++){var _DS=$k[--$j];$k[$j++]=$f(_DS+$g(_DO,_DP))*2}$p($1.barcode,$1.i,~~($k[--$j]/2))}delete $1.options["parse"];$p($1.options,"dontdraw",true);$p($1.options,"ccb",true);$p($1.options,"columns",$1.cccolumns);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.micropdf417();var _Dd=$k[--$j];$1[$k[--$j]]=_Dd}if($1.ccversion=="c"){$1.barcode=$s(~~($1.bits.length/8));for(var _Dk=0,_Dj=$1.barcode.length-1;_Dk<=_Dj;_Dk+=1){$1.i=_Dk;var _Dn=$G($1.bits,$1.i*8,8);$k[$j++]=0;for(var _Do=0,_Dp=_Dn.length;_Do<_Dp;_Do++){var _Dr=$k[--$j];$k[$j++]=$f(_Dr+$g(_Dn,_Do))*2}$p($1.barcode,$1.i,~~($k[--$j]/2))}delete $1.options["parse"];$p($1.options,"dontdraw",true);$p($1.options,"ccc",true);$p($1.options,"columns",$1.cccolumns);$p($1.options,"eclevel",~~(Math.log($1.eccws)/Math.log(2))-1);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.pdf417();var _E4=$k[--$j];$1[$k[--$j]]=_E4}$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.ean13composite=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$x($1.barcode,"|");if($k[--$j]){$1.linear=$k[--$j];$j--;$1.comp=$k[--$j]}else{$j--}$$.save();$p($1.options,"lintype","ean13");$p($1.options,"inkspread","0");$p($1.options,"dontdraw",true);$k[$j++]=$1.linear;$k[$j++]=$1.options;$0.ean13();$0.renlinear();$$.rmoveto(-1,72);$k[$j++]=Infinity;$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=1;for(var _E=0,_F=93;_E<_F;_E++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;for(var _G=0,_H=93;_G<_H;_G++){$k[$j++]=0}$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;for(var _I=0,_J=93;_I<_J;_I++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;var _K=$a();$k[$j++]="ren";$k[$j++]=$0.renmatrix;$k[$j++]="pixs";$k[$j++]=_K;$k[$j++]="pixx";$k[$j++]=97;$k[$j++]="pixy";$k[$j++]=3;$k[$j++]="height";$k[$j++]=6/72;$k[$j++]="width";$k[$j++]=97/72;$k[$j++]="opt";$k[$j++]=$1.options;var _M=$d();$k[$j++]=_M;$0.renmatrix();$$.rmoveto(-2,6);$k[$j++]=$1.comp;$k[$j++]=$1.options;$0["gs1-cc"]();$0.renmatrix();$$.restore()};$0.ean8composite=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$x($1.barcode,"|");if($k[--$j]){$1.linear=$k[--$j];$j--;$1.comp=$k[--$j]}else{$j--}$$.save();$p($1.options,"lintype","ean8");$p($1.options,"inkspread","0");$p($1.options,"dontdraw",true);$k[$j++]=$1.linear;$k[$j++]=$1.options;$0.ean8();$0.renlinear();$$.rmoveto(-1,72);$k[$j++]=Infinity;$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=1;for(var _E=0,_F=65;_E<_F;_E++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;for(var _G=0,_H=65;_G<_H;_G++){$k[$j++]=0}$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;for(var _I=0,_J=65;_I<_J;_I++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;var _K=$a();$k[$j++]="ren";$k[$j++]=$0.renmatrix;$k[$j++]="pixs";$k[$j++]=_K;$k[$j++]="pixx";$k[$j++]=69;$k[$j++]="pixy";$k[$j++]=3;$k[$j++]="height";$k[$j++]=6/72;$k[$j++]="width";$k[$j++]=69/72;$k[$j++]="opt";$k[$j++]=$1.options;var _M=$d();$k[$j++]=_M;$0.renmatrix();$k[$j++]=$1.comp;$k[$j++]=$1.options;$0["gs1-cc"]();var _P=$k[--$j];$$.rmoveto($f(69-$g(_P,"pixx")),6);$k[$j++]=_P;$0.renmatrix();$$.restore()};$0.upcacomposite=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$x($1.barcode,"|");if($k[--$j]){$1.linear=$k[--$j];$j--;$1.comp=$k[--$j]}else{$j--}$$.save();$p($1.options,"lintype","ean13");$p($1.options,"inkspread","0");$p($1.options,"dontdraw",true);$k[$j++]=$1.linear;$k[$j++]=$1.options;$0.upca();$0.renlinear();$$.rmoveto(-1,72);$k[$j++]=Infinity;$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=1;for(var _E=0,_F=93;_E<_F;_E++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;for(var _G=0,_H=93;_G<_H;_G++){$k[$j++]=0}$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;for(var _I=0,_J=93;_I<_J;_I++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;var _K=$a();$k[$j++]="ren";$k[$j++]=$0.renmatrix;$k[$j++]="pixs";$k[$j++]=_K;$k[$j++]="pixx";$k[$j++]=97;$k[$j++]="pixy";$k[$j++]=3;$k[$j++]="height";$k[$j++]=6/72;$k[$j++]="width";$k[$j++]=97/72;$k[$j++]="opt";$k[$j++]=$1.options;var _M=$d();$k[$j++]=_M;$0.renmatrix();$$.rmoveto(-2,6);$k[$j++]=$1.comp;$k[$j++]=$1.options;$0["gs1-cc"]();$0.renmatrix();$$.restore()};$0.upcecomposite=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$x($1.barcode,"|");if($k[--$j]){$1.linear=$k[--$j];$j--;$1.comp=$k[--$j]}else{$j--}$k[$j++]=Infinity;$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=1;for(var _9=0,_A=49;_9<_A;_9++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;for(var _B=0,_C=49;_B<_C;_B++){$k[$j++]=0}$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;for(var _D=0,_E=49;_D<_E;_D++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;var _F=$a();$k[$j++]="ren";$k[$j++]=$0.renmatrix;$k[$j++]="pixs";$k[$j++]=_F;$k[$j++]="pixx";$k[$j++]=53;$k[$j++]="pixy";$k[$j++]=3;$k[$j++]="height";$k[$j++]=6/72;$k[$j++]="width";$k[$j++]=53/72;$k[$j++]="opt";$k[$j++]=$1.options;$1.sep=$d();$$.save();$p($1.options,"lintype","upce");$p($1.options,"inkspread","0");$p($1.options,"dontdraw",true);$k[$j++]=$1.linear;$k[$j++]=$1.options;$0.upce();$0.renlinear();$$.rmoveto(-1,72);$k[$j++]=Infinity;$k[$j++]=Infinity;$k[$j++]=0;$k[$j++]=1;for(var _N=0,_O=49;_N<_O;_N++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;for(var _P=0,_Q=49;_P<_Q;_P++){$k[$j++]=0}$k[$j++]=0;$k[$j++]=1;$k[$j++]=0;$k[$j++]=1;for(var _R=0,_S=49;_R<_S;_R++){$k[$j++]=0}$k[$j++]=1;$k[$j++]=0;var _T=$a();$k[$j++]="ren";$k[$j++]=$0.renmatrix;$k[$j++]="pixs";$k[$j++]=_T;$k[$j++]="pixx";$k[$j++]=53;$k[$j++]="pixy";$k[$j++]=3;$k[$j++]="height";$k[$j++]=6/72;$k[$j++]="width";$k[$j++]=53/72;$k[$j++]="opt";$k[$j++]=$1.options;var _V=$d();$k[$j++]=_V;$0.renmatrix();$$.rmoveto(-2,6);$k[$j++]=$1.comp;$k[$j++]=$1.options;$0["gs1-cc"]();$0.renmatrix();$$.restore()};$0.databaromnicomposite=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$x($1.barcode,"|");if($k[--$j]){$1.linear=$k[--$j];$j--;$1.comp=$k[--$j]}else{$j--}$$.save();$p($1.options,"lintype","databaromni");$p($1.options,"linkage",true);$p($1.options,"inkspread","0");$p($1.options,"dontdraw",true);$k[$j++]=$1.linear;$k[$j++]=$1.options;$0.databaromni();var _F=$k[--$j];$1.linsbs=$g(_F,"sbs");$1.linheight=$g($g(_F,"bhs"),0)*72;$k[$j++]=_F;$0.renlinear();$1.sepfinder=function(){$1.fp=$k[--$j];for(var _N=$1.fp,_M=$f($1.fp+12);_N<=_M;_N+=1){$1.i=_N;if($g($1.bot,$1.i)==0){if($g($1.bot,$1.i-1)==1){$k[$j++]=1}else{var _X=$g($1.sep,$1.i-1)==0?1:0;$k[$j++]=_X}}else{$k[$j++]=0}$p($1.sep,$1.i,$k[--$j])}$1.f3=$a([1,1,1,1,1,1,1,1,1,0,1,1,1]);$k[$j++]=true;for(var _c=0;_c<=12;_c+=1){var _i=$k[--$j];$k[$j++]=_i&&$eq($g($1.bot,$f(_c+$1.fp)),$g($1.f3,_c))}if($k[--$j]){$P($1.sep,$1.fp,$a([0,0,0,0,0,0,0,0,0,0,1,0,0]))}};$k[$j++]=Infinity;$k[$j++]=0;$F($1.linsbs,function(){var _o=$k[--$j];var _p=$k[--$j];var _q=_p==1?0:1;$k[$j++]=_p;for(var _r=0,_s=_o;_r<_s;_r++){$k[$j++]=_q}});$r($a($m()-1));$1.bot=$k[--$j];$j-=2;$k[$j++]=Infinity;$F($1.bot,function(){var _x=$k[--$j];$k[$j++]=$f(1-_x)});$1.sep=$a();$P($1.sep,0,$a([0,0,0]));$P($1.sep,$1.sep.length-4,$a([0,0,0,0]));$k[$j++]=18;$1.sepfinder();$k[$j++]=64;$1.sepfinder();$$.rmoveto(0,$1.linheight);var _19=new Map([["ren",$0.renmatrix],["pixs",$1.sep],["pixx",$1.sep.length],["pixy",1],["height",1/72],["width",$1.sep.length/72],["opt",$1.options]]);$k[$j++]=_19;$0.renmatrix();$$.rmoveto(-5,1);$k[$j++]=$1.comp;$k[$j++]=$1.options;$0["gs1-cc"]();$0.renmatrix();$$.restore()};$0.databarstackedcomposite=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$x($1.barcode,"|");if($k[--$j]){$1.linear=$k[--$j];$j--;$1.comp=$k[--$j]}else{$j--}$$.save();$p($1.options,"lintype","databarstacked");$p($1.options,"linkage",true);$p($1.options,"inkspread","0");$p($1.options,"dontdraw",true);$k[$j++]=$1.linear;$k[$j++]=$1.options;$0.databarstacked();var _F=$k[--$j];$1.bot=$G($g(_F,"pixs"),0,$g(_F,"pixx"));$1.linheight=$g(_F,"pixy");$k[$j++]=_F;$0.renmatrix();$1.sepfinder=function(){$1.fp=$k[--$j];for(var _O=$1.fp,_N=$f($1.fp+12);_O<=_N;_O+=1){$1.i=_O;if($g($1.bot,$1.i)==0){if($g($1.bot,$1.i-1)==1){$k[$j++]=1}else{var _Y=$g($1.sep,$1.i-1)==0?1:0;$k[$j++]=_Y}}else{$k[$j++]=0}$p($1.sep,$1.i,$k[--$j])}$1.f3=$a([1,1,1,1,1,1,1,1,1,0,1,1,1]);$k[$j++]=true;for(var _d=0;_d<=12;_d+=1){var _j=$k[--$j];$k[$j++]=_j&&$eq($g($1.bot,$f(_d+$1.fp)),$g($1.f3,_d))}if($k[--$j]){$P($1.sep,$1.fp,$a([0,0,0,0,0,0,0,0,0,0,1,0,0]))}};$k[$j++]=Infinity;var _o=$1.bot;for(var _p=0,_q=_o.length;_p<_q;_p++){$k[$j++]=$f(1-$g(_o,_p))}$1.sep=$a();$P($1.sep,0,$a([0,0,0,0]));$P($1.sep,$1.sep.length-4,$a([0,0,0,0]));$k[$j++]=18;$1.sepfinder();$$.rmoveto(0,$1.linheight);var _13=new Map([["ren",$0.renmatrix],["pixs",$1.sep],["pixx",$1.sep.length],["pixy",1],["height",1/72],["width",$1.sep.length/72],["opt",$1.options]]);$k[$j++]=_13;$0.renmatrix();$$.rmoveto(1,1);$k[$j++]=$1.comp;$k[$j++]=$1.options;$0["gs1-cc"]();$0.renmatrix();$$.restore()};$0.databarstackedomnicomposite=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$x($1.barcode,"|");if($k[--$j]){$1.linear=$k[--$j];$j--;$1.comp=$k[--$j]}else{$j--}$$.save();$p($1.options,"lintype","databarstackedomni");$p($1.options,"linkage",true);$p($1.options,"inkspread","0");$p($1.options,"dontdraw",true);$k[$j++]=$1.linear;$k[$j++]=$1.options;$0.databarstackedomni();var _F=$k[--$j];$1.bot=$G($g(_F,"pixs"),0,$g(_F,"pixx"));$1.linheight=$g(_F,"pixy");$k[$j++]=_F;$0.renmatrix();$1.sepfinder=function(){$1.fp=$k[--$j];for(var _O=$1.fp,_N=$f($1.fp+12);_O<=_N;_O+=1){$1.i=_O;if($g($1.bot,$1.i)==0){if($g($1.bot,$1.i-1)==1){$k[$j++]=1}else{var _Y=$g($1.sep,$1.i-1)==0?1:0;$k[$j++]=_Y}}else{$k[$j++]=0}$p($1.sep,$1.i,$k[--$j])}$1.f3=$a([1,1,1,1,1,1,1,1,1,0,1,1,1]);$k[$j++]=true;for(var _d=0;_d<=12;_d+=1){var _j=$k[--$j];$k[$j++]=_j&&$eq($g($1.bot,$f(_d+$1.fp)),$g($1.f3,_d))}if($k[--$j]){$P($1.sep,$1.fp,$a([0,0,0,0,0,0,0,0,0,0,1,0,0]))}};$k[$j++]=Infinity;var _o=$1.bot;for(var _p=0,_q=_o.length;_p<_q;_p++){$k[$j++]=$f(1-$g(_o,_p))}$1.sep=$a();$P($1.sep,0,$a([0,0,0,0]));$P($1.sep,$1.sep.length-4,$a([0,0,0,0]));$k[$j++]=18;$1.sepfinder();$$.rmoveto(0,$1.linheight);var _13=new Map([["ren",$0.renmatrix],["pixs",$1.sep],["pixx",$1.sep.length],["pixy",1],["height",1/72],["width",$1.sep.length/72],["opt",$1.options]]);$k[$j++]=_13;$0.renmatrix();$$.rmoveto(1,1);$k[$j++]=$1.comp;$k[$j++]=$1.options;$0["gs1-cc"]();$0.renmatrix();$$.restore()};$0.databartruncatedcomposite=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$x($1.barcode,"|");if($k[--$j]){$1.linear=$k[--$j];$j--;$1.comp=$k[--$j]}else{$j--}$$.save();$p($1.options,"lintype","databartruncated");$p($1.options,"linkage",true);$p($1.options,"inkspread","0");$p($1.options,"dontdraw",true);$k[$j++]=$1.linear;$k[$j++]=$1.options;$0.databartruncated();var _F=$k[--$j];$1.linsbs=$g(_F,"sbs");$1.linheight=$g($g(_F,"bhs"),0)*72;$k[$j++]=_F;$0.renlinear();$1.sepfinder=function(){$1.fp=$k[--$j];for(var _N=$1.fp,_M=$f($1.fp+12);_N<=_M;_N+=1){$1.i=_N;if($g($1.bot,$1.i)==0){if($g($1.bot,$1.i-1)==1){$k[$j++]=1}else{var _X=$g($1.sep,$1.i-1)==0?1:0;$k[$j++]=_X}}else{$k[$j++]=0}$p($1.sep,$1.i,$k[--$j])}$1.f3=$a([1,1,1,1,1,1,1,1,1,0,1,1,1]);$k[$j++]=true;for(var _c=0;_c<=12;_c+=1){var _i=$k[--$j];$k[$j++]=_i&&$eq($g($1.bot,$f(_c+$1.fp)),$g($1.f3,_c))}if($k[--$j]){$P($1.sep,$1.fp,$a([0,0,0,0,0,0,0,0,0,0,1,0,0]))}};$k[$j++]=Infinity;$k[$j++]=0;$F($1.linsbs,function(){var _o=$k[--$j];var _p=$k[--$j];var _q=_p==1?0:1;$k[$j++]=_p;for(var _r=0,_s=_o;_r<_s;_r++){$k[$j++]=_q}});$r($a($m()-1));$1.bot=$k[--$j];$j-=2;$k[$j++]=Infinity;$F($1.bot,function(){var _x=$k[--$j];$k[$j++]=$f(1-_x)});$1.sep=$a();$P($1.sep,0,$a([0,0,0]));$P($1.sep,$1.sep.length-4,$a([0,0,0,0]));$k[$j++]=18;$1.sepfinder();$k[$j++]=64;$1.sepfinder();$$.rmoveto(0,$1.linheight);var _19=new Map([["ren",$0.renmatrix],["pixs",$1.sep],["pixx",$1.sep.length],["pixy",1],["height",1/72],["width",$1.sep.length/72],["opt",$1.options]]);$k[$j++]=_19;$0.renmatrix();$$.rmoveto(-5,1);$k[$j++]=$1.comp;$k[$j++]=$1.options;$0["gs1-cc"]();$0.renmatrix();$$.restore()};$0.databarlimitedcomposite=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$x($1.barcode,"|");if($k[--$j]){$1.linear=$k[--$j];$j--;$1.comp=$k[--$j]}else{$j--}$$.save();$p($1.options,"lintype","databarlimited");$p($1.options,"linkage",true);$p($1.options,"inkspread","0");$p($1.options,"dontdraw",true);$k[$j++]=$1.linear;$k[$j++]=$1.options;$0.databarlimited();var _F=$k[--$j];$1.linsbs=$g(_F,"sbs");$1.linheight=$g($g(_F,"bhs"),0)*72;$k[$j++]=_F;$0.renlinear();$k[$j++]=Infinity;$k[$j++]=1;$F($1.linsbs,function(){var _K=$k[--$j];var _L=$k[--$j];var _M=_L==0?1:0;$k[$j++]=_L;for(var _N=0,_O=_K;_N<_O;_N++){$k[$j++]=_M}});$r($a($m()-1));$1.sep=$k[--$j];$j-=2;$P($1.sep,0,$a([0,0,0]));$P($1.sep,$1.sep.length-9,$a([0,0,0,0,0,0,0,0,0]));$$.rmoveto(0,$1.linheight);var _c=new Map([["ren",$0.renmatrix],["pixs",$1.sep],["pixx",$1.sep.length],["pixy",1],["height",1/72],["width",$1.sep.length/72],["opt",$1.options]]);$k[$j++]=_c;$0.renmatrix();$k[$j++]=$1.comp;$k[$j++]=$1.options;$0["gs1-cc"]();var _f=$k[--$j];$$.rmoveto($f(72-$g(_f,"pixx")),1);$k[$j++]=_f;$0.renmatrix();$$.restore()};$0.databarexpandedcomposite=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$x($1.barcode,"|");if($k[--$j]){$1.linear=$k[--$j];$j--;$1.comp=$k[--$j]}else{$j--}$$.save();$p($1.options,"lintype","databarexpanded");$p($1.options,"linkage",true);$p($1.options,"inkspread","0");$p($1.options,"dontdraw",true);$k[$j++]=$1.linear;$k[$j++]=$1.options;$0.databarexpanded();var _F=$k[--$j];$1.linsbs=$g(_F,"sbs");$1.linheight=$g($g(_F,"bhs"),0)*72;$k[$j++]=_F;$0.renlinear();$1.sepfinder=function(){$1.fp=$k[--$j];for(var _N=$1.fp,_M=$f($1.fp+12);_N<=_M;_N+=1){$1.i=_N;if($g($1.bot,$1.i)==0){if($g($1.bot,$1.i-1)==1){$k[$j++]=1}else{var _X=$g($1.sep,$1.i-1)==0?1:0;$k[$j++]=_X}}else{$k[$j++]=0}$p($1.sep,$1.i,$k[--$j])}};$k[$j++]=Infinity;$k[$j++]=0;$F($1.linsbs,function(){var _c=$k[--$j];var _d=$k[--$j];var _e=_d==1?0:1;$k[$j++]=_d;for(var _f=0,_g=_c;_f<_g;_f++){$k[$j++]=_e}});$r($a($m()-1));$1.bot=$k[--$j];$j-=2;$k[$j++]=Infinity;$F($1.bot,function(){var _l=$k[--$j];$k[$j++]=$f(1-_l)});$1.sep=$a();$P($1.sep,0,$a([0,0,0]));$P($1.sep,$1.sep.length-4,$a([0,0,0,0]));$k[$j++]=Infinity;for(var _u=18,_t=$1.bot.length-13;_u<=_t;_u+=98){$k[$j++]=_u}for(var _x=69,_w=$1.bot.length-13;_x<=_w;_x+=98){$k[$j++]=_x}var _y=$a();for(var _z=0,_10=_y.length;_z<_10;_z++){$k[$j++]=$g(_y,_z);$1.sepfinder()}$$.rmoveto(0,$1.linheight);var _17=new Map([["ren",$0.renmatrix],["pixs",$1.sep],["pixx",$1.sep.length],["pixy",1],["height",1/72],["width",$1.sep.length/72],["opt",$1.options]]);$k[$j++]=_17;$0.renmatrix();$$.rmoveto(1,1);$k[$j++]=$1.comp;$k[$j++]=$1.options;$0["gs1-cc"]();$0.renmatrix();$$.restore()};$0.databarexpandedstackedcomposite=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$x($1.barcode,"|");if($k[--$j]){$1.linear=$k[--$j];$j--;$1.comp=$k[--$j]}else{$j--}$$.save();$p($1.options,"lintype","databarexpandedstacked");$p($1.options,"linkage",true);$p($1.options,"inkspread","0");$p($1.options,"dontdraw",true);$k[$j++]=$1.linear;$k[$j++]=$1.options;$0.databarexpandedstacked();var _F=$k[--$j];$1.bot=$G($g(_F,"pixs"),0,$g(_F,"pixx"));$1.linheight=$g(_F,"pixy");$k[$j++]=_F;$0.renmatrix();$1.sepfinder=function(){$1.fp=$k[--$j];for(var _O=$1.fp,_N=$f($1.fp+12);_O<=_N;_O+=1){$1.i=_O;if($g($1.bot,$1.i)==0){if($g($1.bot,$1.i-1)==1){$k[$j++]=1}else{var _Y=$g($1.sep,$1.i-1)==0?1:0;$k[$j++]=_Y}}else{$k[$j++]=0}$p($1.sep,$1.i,$k[--$j])}};$k[$j++]=Infinity;var _c=$1.bot;for(var _d=0,_e=_c.length;_d<_e;_d++){$k[$j++]=$f(1-$g(_c,_d))}$1.sep=$a();$P($1.sep,0,$a([0,0,0,0]));$P($1.sep,$1.sep.length-4,$a([0,0,0,0]));$k[$j++]=Infinity;for(var _o=19,_n=$1.bot.length-13;_o<=_n;_o+=98){$k[$j++]=_o}for(var _r=70,_q=$1.bot.length-13;_r<=_q;_r+=98){$k[$j++]=_r}var _s=$a();for(var _t=0,_u=_s.length;_t<_u;_t++){$k[$j++]=$g(_s,_t);$1.sepfinder()}$$.rmoveto(0,$1.linheight);var _11=new Map([["ren",$0.renmatrix],["pixs",$1.sep],["pixx",$1.sep.length],["pixy",1],["height",1/72],["width",$1.sep.length/72],["opt",$1.options]]);$k[$j++]=_11;$0.renmatrix();var _14=$g($1.bot,0)==0?2:0;$$.rmoveto(_14,1);$k[$j++]=$1.comp;$k[$j++]=$1.options;$0["gs1-cc"]();$0.renmatrix();$$.restore()};$0["gs1-128composite"]=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$x($1.barcode,"|");if($k[--$j]){$1.linear=$k[--$j];$j--;$1.comp=$k[--$j]}else{$j--}$$.save();$p($1.options,"inkspread","0");$p($1.options,"dontdraw",true);$p($1.options,"linkagea",true);$k[$j++]=$1.linear;$k[$j++]=Infinity;$F($1.options);var _E=$d();$k[$j++]=_E;$0["gs1-128"]();var _G=$g($k[--$j],"sbs");$k[$j++]=0;$F(_G,function(){var _H=$k[--$j];var _I=$k[--$j];$k[$j++]=$f(_I+_H)});$1.linwidth=$k[--$j];$p($1.options,"lintype","gs1-128");$p($1.options,"linwidth",$1.linwidth);$k[$j++]=$1.comp;$k[$j++]=$1.options;$0["gs1-cc"]();$1.compsym=$k[--$j];if($g($1.compsym,"pixx")==99){$k[$j++]="a"}else{$k[$j++]="c"}$1.linktype=$k[--$j];if($eq($1.linktype,"a")){$p($1.options,"linkagea",true);$p($1.options,"linkagec",false)}else{$p($1.options,"linkagea",false);$p($1.options,"linkagec",true)}$k[$j++]=$1.linear;$k[$j++]=Infinity;$F($1.options);var _a=$d();$k[$j++]=_a;$0["gs1-128"]();var _b=$k[--$j];$1.linsbs=$g(_b,"sbs");$1.linheight=$g($g(_b,"bhs"),0)*72;$k[$j++]=_b;$0.renlinear();$k[$j++]=Infinity;$k[$j++]=1;$F($1.linsbs,function(){var _g=$k[--$j];var _h=$k[--$j];var _i=_h==0?1:0;$k[$j++]=_h;for(var _j=0,_k=_g;_j<_k;_j++){$k[$j++]=_i}});$r($a($m()-1));$1.sep=$k[--$j];$j-=2;$$.rmoveto(0,$1.linheight);var _t=new Map([["ren",$0.renmatrix],["pixs",$1.sep],["pixx",$1.sep.length],["pixy",1],["height",1/72],["width",$1.sep.length/72],["opt",$1.options]]);$k[$j++]=_t;$0.renmatrix();if($eq($1.linktype,"a")){$1.s=~~($f($1.linwidth-2)/11);$1.p=~~(($1.s-9)/2);$k[$j++]="x";$k[$j++]=($1.s-$1.p-1)*11+10;if($1.p==0){var _10=$k[--$j];$k[$j++]=$f(_10+2)}var _11=$k[--$j];$1[$k[--$j]]=$f(_11-99);$$.rmoveto($1.x,1)}else{$$.rmoveto(-7,1)}$k[$j++]=$1.compsym;$0.renmatrix();$$.restore()};$0.gs1datamatrix=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.parse=false;$1.dontlint=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.expand=function(){var _6=new Map([["parse",$1.parse],["parseonly",true],["parsefnc",false]]);$1.fncvals=_6;$k[$j++]=$1.fncvals;$0.parseinput()};$1.ais=$a([]);$1.vals=$a([]);var _A=$1.barcode;$k[$j++]=$G(_A,1,_A.length-1);for(;;){var _C=$k[--$j];$k[$j++]=_C;if($eq(_C,"")){break}$x($k[--$j],")");$j--;var _E=$k[--$j];var _F=$k[--$j];$k[$j++]=_E;$k[$j++]=_F;$j--;var _G=$k[--$j];var _H=$k[--$j];$k[$j++]=_G;$x(_H,"(");if($k[--$j]){var _J=$k[--$j];var _K=$k[--$j];$k[$j++]=_J;$k[$j++]=_K;$j--;var _L=$k[--$j];var _M=$k[--$j];var _N=$k[--$j];$k[$j++]=_M;$k[$j++]=_N;$k[$j++]=_L}else{var _O=$k[--$j];var _P=$k[--$j];$k[$j++]="";$k[$j++]=_P;$k[$j++]=_O}$k[$j++]=Infinity;$q($1.ais);var _S=$k[$j-1-($m()+2)];$k[$j++]=_S;$1.ais=$a();$k[$j++]=Infinity;$q($1.vals);var _W=$k[$j-1-($m()+1)];$k[$j++]=_W;$1.expand();$1.vals=$a();$j-=2}$j--;if(!$1.dontlint){$k[$j++]=$1.ais;$k[$j++]=$1.vals;$0.gs1lint();$j--}$1.aifixed=new Map;$k[$j++]=Infinity;for(var _b=0;_b<=4;_b+=1){$k[$j++]=_b}var _c=$a();for(var _d=0,_e=_c.length;_d<_e;_d++){var _h=$Z($s(2),"00");$p(_h,1,$f($g(_c,_d)+48));$p($1.aifixed,_h,_h)}$k[$j++]=Infinity;for(var _j=11;_j<=20;_j+=1){$k[$j++]=_j}$k[$j++]=23;for(var _k=31;_k<=36;_k+=1){$k[$j++]=_k}$k[$j++]=41;var _l=$a();for(var _m=0,_n=_l.length;_m<_n;_m++){var _q=$R($s(2),$g(_l,_m),10);$p($1.aifixed,_q,_q)}$1.fnc1=-1;$1.dmtx=$a([$1.fnc1]);for(var _w=0,_v=$1.ais.length-1;_w<=_v;_w+=1){$1.i=_w;$1.ai=$g($1.ais,$1.i);$1.val=$g($1.vals,$1.i);var _16=$a($1.dmtx.length+$1.ai.length+$1.val.length);$P(_16,0,$1.dmtx);$k[$j++]=_16;$k[$j++]=_16;$k[$j++]=$1.dmtx.length;$k[$j++]=$1.ai;$k[$j++]=Infinity;var _1A=$k[--$j];var _1B=$k[--$j];$k[$j++]=_1A;$F(_1B);var _1C=$a();var _1D=$k[--$j];$P($k[--$j],_1D,_1C);var _1F=$k[--$j];$k[$j++]=_1F;$k[$j++]=_1F;$k[$j++]=$1.dmtx.length+$1.ai.length;$k[$j++]=$1.val;$k[$j++]=Infinity;var _1J=$k[--$j];var _1K=$k[--$j];$k[$j++]=_1J;$F(_1K);var _1L=$a();var _1M=$k[--$j];$P($k[--$j],_1M,_1L);$1.dmtx=$k[--$j];var _1U=$g($1.aifixed,$G($1.ai,0,2))!==undefined;if($1.i!=$1.ais.length-1&&!_1U){var _1W=$a($1.dmtx.length+1);$P(_1W,0,$1.dmtx);$p(_1W,$1.dmtx.length,$1.fnc1);$1.dmtx=_1W}}$1.barcode=$s(($1.dmtx.length+1)*5);$1.i=0;$1.j=0;for(;;){if($1.i==$1.dmtx.length){break}var _1g=$g($1.dmtx,$1.i);$k[$j++]=_1g;if(_1g==$1.fnc1){$j--;$P($1.barcode,$1.j,"^FNC1");$1.j=$1.j+4}else{$p($1.barcode,$1.j,$k[--$j])}$1.i=$1.i+1;$1.j=$1.j+1}$1.barcode=$G($1.barcode,0,$1.j);delete $1.options["parse"];$p($1.options,"dontdraw",true);$p($1.options,"parsefnc",true);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.datamatrix();var _1y=$k[--$j];$1[$k[--$j]]=_1y;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.gs1datamatrixrectangular=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.parse=false;$1.dontlint=false;$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.expand=function(){var _6=new Map([["parse",$1.parse],["parseonly",true],["parsefnc",false]]);$1.fncvals=_6;$k[$j++]=$1.fncvals;$0.parseinput()};$1.ais=$a([]);$1.vals=$a([]);var _A=$1.barcode;$k[$j++]=$G(_A,1,_A.length-1);for(;;){var _C=$k[--$j];$k[$j++]=_C;if($eq(_C,"")){break}$x($k[--$j],")");$j--;var _E=$k[--$j];var _F=$k[--$j];$k[$j++]=_E;$k[$j++]=_F;$j--;var _G=$k[--$j];var _H=$k[--$j];$k[$j++]=_G;$x(_H,"(");if($k[--$j]){var _J=$k[--$j];var _K=$k[--$j];$k[$j++]=_J;$k[$j++]=_K;$j--;var _L=$k[--$j];var _M=$k[--$j];var _N=$k[--$j];$k[$j++]=_M;$k[$j++]=_N;$k[$j++]=_L}else{var _O=$k[--$j];var _P=$k[--$j];$k[$j++]="";$k[$j++]=_P;$k[$j++]=_O}$k[$j++]=Infinity;$q($1.ais);var _S=$k[$j-1-($m()+2)];$k[$j++]=_S;$1.ais=$a();$k[$j++]=Infinity;$q($1.vals);var _W=$k[$j-1-($m()+1)];$k[$j++]=_W;$1.expand();$1.vals=$a();$j-=2}$j--;if(!$1.dontlint){$k[$j++]=$1.ais;$k[$j++]=$1.vals;$0.gs1lint();$j--}$1.aifixed=new Map;$k[$j++]=Infinity;for(var _b=0;_b<=4;_b+=1){$k[$j++]=_b}var _c=$a();for(var _d=0,_e=_c.length;_d<_e;_d++){var _h=$Z($s(2),"00");$p(_h,1,$f($g(_c,_d)+48));$p($1.aifixed,_h,_h)}$k[$j++]=Infinity;for(var _j=11;_j<=20;_j+=1){$k[$j++]=_j}$k[$j++]=23;for(var _k=31;_k<=36;_k+=1){$k[$j++]=_k}$k[$j++]=41;var _l=$a();for(var _m=0,_n=_l.length;_m<_n;_m++){var _q=$R($s(2),$g(_l,_m),10);$p($1.aifixed,_q,_q)}$1.fnc1=-1;$1.dmtx=$a([$1.fnc1]);for(var _w=0,_v=$1.ais.length-1;_w<=_v;_w+=1){$1.i=_w;$1.ai=$g($1.ais,$1.i);$1.val=$g($1.vals,$1.i);var _16=$a($1.dmtx.length+$1.ai.length+$1.val.length);$P(_16,0,$1.dmtx);$k[$j++]=_16;$k[$j++]=_16;$k[$j++]=$1.dmtx.length;$k[$j++]=$1.ai;$k[$j++]=Infinity;var _1A=$k[--$j];var _1B=$k[--$j];$k[$j++]=_1A;$F(_1B);var _1C=$a();var _1D=$k[--$j];$P($k[--$j],_1D,_1C);var _1F=$k[--$j];$k[$j++]=_1F;$k[$j++]=_1F;$k[$j++]=$1.dmtx.length+$1.ai.length;$k[$j++]=$1.val;$k[$j++]=Infinity;var _1J=$k[--$j];var _1K=$k[--$j];$k[$j++]=_1J;$F(_1K);var _1L=$a();var _1M=$k[--$j];$P($k[--$j],_1M,_1L);$1.dmtx=$k[--$j];var _1U=$g($1.aifixed,$G($1.ai,0,2))!==undefined;if($1.i!=$1.ais.length-1&&!_1U){var _1W=$a($1.dmtx.length+1);$P(_1W,0,$1.dmtx);$p(_1W,$1.dmtx.length,$1.fnc1);$1.dmtx=_1W}}$1.barcode=$s(($1.dmtx.length+1)*5);$1.i=0;$1.j=0;for(;;){if($1.i==$1.dmtx.length){break}var _1g=$g($1.dmtx,$1.i);$k[$j++]=_1g;if(_1g==$1.fnc1){$j--;$P($1.barcode,$1.j,"^FNC1");$1.j=$1.j+4}else{$p($1.barcode,$1.j,$k[--$j])}$1.i=$1.i+1;$1.j=$1.j+1}$1.barcode=$G($1.barcode,0,$1.j);delete $1.options["parse"];$p($1.options,"dontdraw",true);$p($1.options,"parsefnc",true);$p($1.options,"format","rectangle");$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.datamatrix();var _1z=$k[--$j];$1[$k[--$j]]=_1z;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.gs1qrcode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.parse=false;$1.dontlint=false;$1.dontdraw=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.expand=function(){var _6=new Map([["parse",$1.parse],["parseonly",true],["parsefnc",false]]);$1.fncvals=_6;$k[$j++]=$1.fncvals;$0.parseinput()};$1.ais=$a([]);$1.vals=$a([]);var _A=$1.barcode;$k[$j++]=$G(_A,1,_A.length-1);for(;;){var _C=$k[--$j];$k[$j++]=_C;if($eq(_C,"")){break}$x($k[--$j],")");$j--;var _E=$k[--$j];var _F=$k[--$j];$k[$j++]=_E;$k[$j++]=_F;$j--;var _G=$k[--$j];var _H=$k[--$j];$k[$j++]=_G;$x(_H,"(");if($k[--$j]){var _J=$k[--$j];var _K=$k[--$j];$k[$j++]=_J;$k[$j++]=_K;$j--;var _L=$k[--$j];var _M=$k[--$j];var _N=$k[--$j];$k[$j++]=_M;$k[$j++]=_N;$k[$j++]=_L}else{var _O=$k[--$j];var _P=$k[--$j];$k[$j++]="";$k[$j++]=_P;$k[$j++]=_O}$k[$j++]=Infinity;$q($1.ais);var _S=$k[$j-1-($m()+2)];$k[$j++]=_S;$1.ais=$a();$k[$j++]=Infinity;$q($1.vals);var _W=$k[$j-1-($m()+1)];$k[$j++]=_W;$1.expand();$1.vals=$a();$j-=2}$j--;if(!$1.dontlint){$k[$j++]=$1.ais;$k[$j++]=$1.vals;$0.gs1lint();$j--}$1.aifixed=new Map;$k[$j++]=Infinity;for(var _b=0;_b<=4;_b+=1){$k[$j++]=_b}var _c=$a();for(var _d=0,_e=_c.length;_d<_e;_d++){var _h=$Z($s(2),"00");$p(_h,1,$f($g(_c,_d)+48));$p($1.aifixed,_h,_h)}$k[$j++]=Infinity;for(var _j=11;_j<=20;_j+=1){$k[$j++]=_j}$k[$j++]=23;for(var _k=31;_k<=36;_k+=1){$k[$j++]=_k}$k[$j++]=41;var _l=$a();for(var _m=0,_n=_l.length;_m<_n;_m++){var _q=$R($s(2),$g(_l,_m),10);$p($1.aifixed,_q,_q)}$1.fnc1=-1;$1.qrc=$a([$1.fnc1]);for(var _w=0,_v=$1.ais.length-1;_w<=_v;_w+=1){$1.i=_w;$1.ai=$g($1.ais,$1.i);$1.val=$g($1.vals,$1.i);var _16=$a($1.qrc.length+$1.ai.length+$1.val.length);$P(_16,0,$1.qrc);$k[$j++]=_16;$k[$j++]=_16;$k[$j++]=$1.qrc.length;$k[$j++]=$1.ai;$k[$j++]=Infinity;var _1A=$k[--$j];var _1B=$k[--$j];$k[$j++]=_1A;$F(_1B);var _1C=$a();var _1D=$k[--$j];$P($k[--$j],_1D,_1C);var _1F=$k[--$j];$k[$j++]=_1F;$k[$j++]=_1F;$k[$j++]=$1.qrc.length+$1.ai.length;$k[$j++]=$1.val;$k[$j++]=Infinity;var _1J=$k[--$j];var _1K=$k[--$j];$k[$j++]=_1J;$F(_1K);var _1L=$a();var _1M=$k[--$j];$P($k[--$j],_1M,_1L);$1.qrc=$k[--$j];var _1U=$g($1.aifixed,$G($1.ai,0,2))!==undefined;if($1.i!=$1.ais.length-1&&!_1U){var _1W=$a($1.qrc.length+1);$P(_1W,0,$1.qrc);$p(_1W,$1.qrc.length,$1.fnc1);$1.qrc=_1W}}$1.barcode=$s(($1.qrc.length+1)*5);$1.i=0;$1.j=0;for(;;){if($1.i==$1.qrc.length){break}var _1g=$g($1.qrc,$1.i);$k[$j++]=_1g;if(_1g==$1.fnc1){$j--;$P($1.barcode,$1.j,"^FNC1");$1.j=$1.j+4}else{$p($1.barcode,$1.j,$k[--$j])}$1.i=$1.i+1;$1.j=$1.j+1}$1.barcode=$G($1.barcode,0,$1.j);delete $1.options["parse"];$p($1.options,"dontdraw",true);$p($1.options,"parsefnc",true);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.qrcode();var _1y=$k[--$j];$1[$k[--$j]]=_1y;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.gs1dotcode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.parse=false;$1.dontlint=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.expand=function(){var _6=new Map([["parse",$1.parse],["parseonly",true],["parsefnc",false]]);$1.fncvals=_6;$k[$j++]=$1.fncvals;$0.parseinput()};$1.ais=$a([]);$1.vals=$a([]);var _A=$1.barcode;$k[$j++]=$G(_A,1,_A.length-1);for(;;){var _C=$k[--$j];$k[$j++]=_C;if($eq(_C,"")){break}$x($k[--$j],")");$j--;var _E=$k[--$j];var _F=$k[--$j];$k[$j++]=_E;$k[$j++]=_F;$j--;var _G=$k[--$j];var _H=$k[--$j];$k[$j++]=_G;$x(_H,"(");if($k[--$j]){var _J=$k[--$j];var _K=$k[--$j];$k[$j++]=_J;$k[$j++]=_K;$j--;var _L=$k[--$j];var _M=$k[--$j];var _N=$k[--$j];$k[$j++]=_M;$k[$j++]=_N;$k[$j++]=_L}else{var _O=$k[--$j];var _P=$k[--$j];$k[$j++]="";$k[$j++]=_P;$k[$j++]=_O}$k[$j++]=Infinity;$q($1.ais);var _S=$k[$j-1-($m()+2)];$k[$j++]=_S;$1.ais=$a();$k[$j++]=Infinity;$q($1.vals);var _W=$k[$j-1-($m()+1)];$k[$j++]=_W;$1.expand();$1.vals=$a();$j-=2}$j--;if(!$1.dontlint){$k[$j++]=$1.ais;$k[$j++]=$1.vals;$0.gs1lint();$j--}$1.aifixed=new Map;$k[$j++]=Infinity;for(var _b=0;_b<=4;_b+=1){$k[$j++]=_b}var _c=$a();for(var _d=0,_e=_c.length;_d<_e;_d++){var _h=$Z($s(2),"00");$p(_h,1,$f($g(_c,_d)+48));$p($1.aifixed,_h,_h)}$k[$j++]=Infinity;for(var _j=11;_j<=20;_j+=1){$k[$j++]=_j}$k[$j++]=23;for(var _k=31;_k<=36;_k+=1){$k[$j++]=_k}$k[$j++]=41;var _l=$a();for(var _m=0,_n=_l.length;_m<_n;_m++){var _q=$R($s(2),$g(_l,_m),10);$p($1.aifixed,_q,_q)}$1.fnc1=-1;$1.dmtx=$a([$1.fnc1]);for(var _w=0,_v=$1.ais.length-1;_w<=_v;_w+=1){$1.i=_w;$1.ai=$g($1.ais,$1.i);$1.val=$g($1.vals,$1.i);var _16=$a($1.dmtx.length+$1.ai.length+$1.val.length);$P(_16,0,$1.dmtx);$k[$j++]=_16;$k[$j++]=_16;$k[$j++]=$1.dmtx.length;$k[$j++]=$1.ai;$k[$j++]=Infinity;var _1A=$k[--$j];var _1B=$k[--$j];$k[$j++]=_1A;$F(_1B);var _1C=$a();var _1D=$k[--$j];$P($k[--$j],_1D,_1C);var _1F=$k[--$j];$k[$j++]=_1F;$k[$j++]=_1F;$k[$j++]=$1.dmtx.length+$1.ai.length;$k[$j++]=$1.val;$k[$j++]=Infinity;var _1J=$k[--$j];var _1K=$k[--$j];$k[$j++]=_1J;$F(_1K);var _1L=$a();var _1M=$k[--$j];$P($k[--$j],_1M,_1L);$1.dmtx=$k[--$j];var _1U=$g($1.aifixed,$G($1.ai,0,2))!==undefined;if($1.i!=$1.ais.length-1&&!_1U){var _1W=$a($1.dmtx.length+1);$P(_1W,0,$1.dmtx);$p(_1W,$1.dmtx.length,$1.fnc1);$1.dmtx=_1W}}$1.barcode=$s(($1.dmtx.length+1)*5);$1.i=0;$1.j=0;for(;;){if($1.i==$1.dmtx.length){break}var _1g=$g($1.dmtx,$1.i);$k[$j++]=_1g;if(_1g==$1.fnc1){$j--;$P($1.barcode,$1.j,"^FNC1");$1.j=$1.j+4}else{$p($1.barcode,$1.j,$k[--$j])}$1.i=$1.i+1;$1.j=$1.j+1}$1.barcode=$G($1.barcode,0,$1.j);delete $1.options["parse"];$p($1.options,"dontdraw",true);$p($1.options,"parsefnc",true);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.dotcode();var _1y=$k[--$j];$1[$k[--$j]]=_1y;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.hibccode39=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.textxoffset=0;$1.validatecheck=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.textxoffset=+$1.textxoffset;$1.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$1.charvals=new Map;for(var _9=0;_9<=42;_9+=1){$p($1.charvals,$G($1.barchars,_9,1),_9)}for(var _F=0,_E=$1.barcode.length-1;_F<=_E;_F+=1){var _J=$g($1.charvals,$G($1.barcode,_F,1))!==undefined;if(!_J){$k[$j++]="bwipp.hibccode39badCharacter";$k[$j++]="HIBC Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%";$0.raiseerror()}}$k[$j++]="barlen";$k[$j++]=$1.barcode.length;if($1.validatecheck){var _M=$k[--$j];$k[$j++]=$f(_M-1)}var _N=$k[--$j];$1[$k[--$j]]=_N;$1.checksum=41;for(var _R=0,_Q=$f($1.barlen-1);_R<=_Q;_R+=1){$1.checksum=$f($g($1.charvals,$G($1.barcode,_R,1))+$1.checksum)}$1.checksum=$1.checksum%43;if($1.validatecheck){if($g($1.barcode,$1.barlen)!=$g($1.barchars,$1.checksum)){$k[$j++]="bwipp.hibccode39badCheckDigit";$k[$j++]="Incorrect HIBC Code 39 check digit provided";$0.raiseerror()}$1.barcode=$G($1.barcode,0,$1.barlen)}var _j=$s($f($1.barlen+2));$P(_j,1,$1.barcode);$1.barcode=_j;$p($1.barcode,0,43);$p($1.barcode,$f($1.barlen+1),$g($1.barchars,$1.checksum));$1.text=$s($f($1.barlen+4));$p($1.text,0,42);$P($1.text,1,$1.barcode);var _10=$g($1.barcode,$f($1.barlen+1));$k[$j++]=$1.text;$k[$j++]=$f($1.barlen+2);$k[$j++]=_10;if(_10==32){$j--;$k[$j++]=95}var _11=$k[--$j];var _12=$k[--$j];$p($k[--$j],_12,_11);$p($1.text,$f($1.barlen+3),42);$p($1.options,"dontdraw",true);$p($1.options,"includecheck",false);$p($1.options,"validatecheck",false);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.code39();var _1B=$k[--$j];$1[$k[--$j]]=_1B;$p($1.args,"txt",$a([$a([$1.text,$1.textxoffset,$1.textyoffset,$1.textfont,$1.textsize])]));$p($1.args,"textxalign","center");$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.hibccode128=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.textfont="OCR-B";$1.textsize=10;$1.textyoffset=-8;$1.textxoffset=0;$1.validatecheck=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textyoffset=+$1.textyoffset;$1.textxoffset=+$1.textxoffset;$1.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$1.charvals=new Map;for(var _9=0;_9<=42;_9+=1){$p($1.charvals,$G($1.barchars,_9,1),_9)}for(var _F=0,_E=$1.barcode.length-1;_F<=_E;_F+=1){var _J=$g($1.charvals,$G($1.barcode,_F,1))!==undefined;if(!_J){$k[$j++]="bwipp.hibccode128badCharacter";$k[$j++]="HIBC Code 128 must contain only digits, capital letters, spaces and the symbols -.$/+%";$0.raiseerror()}}$k[$j++]="barlen";$k[$j++]=$1.barcode.length;if($1.validatecheck){var _M=$k[--$j];$k[$j++]=$f(_M-1)}var _N=$k[--$j];$1[$k[--$j]]=_N;$1.checksum=41;for(var _R=0,_Q=$f($1.barlen-1);_R<=_Q;_R+=1){$1.checksum=$f($g($1.charvals,$G($1.barcode,_R,1))+$1.checksum)}$1.checksum=$1.checksum%43;if($1.validatecheck){if($g($1.barcode,$1.barlen)!=$g($1.barchars,$1.checksum)){$k[$j++]="bwipp.hibccode128badCheckDigit";$k[$j++]="Incorrect HIBC Code 128 check digit provided";$0.raiseerror()}$1.barcode=$G($1.barcode,0,$1.barlen)}var _j=$s($f($1.barlen+2));$P(_j,1,$1.barcode);$1.barcode=_j;$p($1.barcode,0,43);$p($1.barcode,$f($1.barlen+1),$g($1.barchars,$1.checksum));$1.text=$s($f($1.barlen+4));$p($1.text,0,42);$P($1.text,1,$1.barcode);var _10=$g($1.barcode,$f($1.barlen+1));$k[$j++]=$1.text;$k[$j++]=$f($1.barlen+2);$k[$j++]=_10;if(_10==32){$j--;$k[$j++]=95}var _11=$k[--$j];var _12=$k[--$j];$p($k[--$j],_12,_11);$p($1.text,$f($1.barlen+3),42);$p($1.options,"dontdraw",true);$p($1.options,"validatecheck",false);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.code128();var _1A=$k[--$j];$1[$k[--$j]]=_1A;$p($1.args,"txt",$a([$a([$1.text,$1.textxoffset,$1.textyoffset,$1.textfont,$1.textsize])]));$p($1.args,"textxalign","center");$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renlinear()}};$0.hibcdatamatrix=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.validatecheck=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$1.charvals=new Map;for(var _5=0;_5<=42;_5+=1){$p($1.charvals,$G($1.barchars,_5,1),_5)}for(var _B=0,_A=$1.barcode.length-1;_B<=_A;_B+=1){var _F=$g($1.charvals,$G($1.barcode,_B,1))!==undefined;if(!_F){$k[$j++]="bwipp.hibcdatamatrixBadCharacter";$k[$j++]="HIBC Data Matrix must contain only digits, capital letters, spaces and the symbols -.$/+%";$0.raiseerror()}}$k[$j++]="barlen";$k[$j++]=$1.barcode.length;if($1.validatecheck){var _I=$k[--$j];$k[$j++]=$f(_I-1)}var _J=$k[--$j];$1[$k[--$j]]=_J;$1.checksum=41;for(var _N=0,_M=$f($1.barlen-1);_N<=_M;_N+=1){$1.checksum=$f($g($1.charvals,$G($1.barcode,_N,1))+$1.checksum)}$1.checksum=$1.checksum%43;if($1.validatecheck){if($g($1.barcode,$1.barlen)!=$g($1.barchars,$1.checksum)){$k[$j++]="bwipp.hibcdatamatrixBadCheckDigit";$k[$j++]="Incorrect HIBC Data Matrix check digit provided";$0.raiseerror()}$1.barcode=$G($1.barcode,0,$1.barlen)}var _f=$s($f($1.barlen+2));$P(_f,1,$1.barcode);$1.barcode=_f;$p($1.barcode,0,43);$p($1.barcode,$f($1.barlen+1),$g($1.barchars,$1.checksum));$p($1.options,"dontdraw",true);$p($1.options,"validatecheck",false);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.datamatrix();var _r=$k[--$j];$1[$k[--$j]]=_r;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.hibcdatamatrixrectangular=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.validatecheck=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$1.charvals=new Map;for(var _5=0;_5<=42;_5+=1){$p($1.charvals,$G($1.barchars,_5,1),_5)}for(var _B=0,_A=$1.barcode.length-1;_B<=_A;_B+=1){var _F=$g($1.charvals,$G($1.barcode,_B,1))!==undefined;if(!_F){$k[$j++]="bwipp.hibcdatamatrixrectangularBadCharacter";$k[$j++]="HIBC Data Matrix Rectangular must contain only digits, capital letters, spaces and the symbols -.$/+%";$0.raiseerror()}}$k[$j++]="barlen";$k[$j++]=$1.barcode.length;if($1.validatecheck){var _I=$k[--$j];$k[$j++]=$f(_I-1)}var _J=$k[--$j];$1[$k[--$j]]=_J;$1.checksum=41;for(var _N=0,_M=$f($1.barlen-1);_N<=_M;_N+=1){$1.checksum=$f($g($1.charvals,$G($1.barcode,_N,1))+$1.checksum)}$1.checksum=$1.checksum%43;if($1.validatecheck){if($g($1.barcode,$1.barlen)!=$g($1.barchars,$1.checksum)){$k[$j++]="bwipp.hibcdatamatrixrectangularBadCheckDigit";$k[$j++]="Incorrect HIBC Data Matrix Rectangular check digit provided";$0.raiseerror()}$1.barcode=$G($1.barcode,0,$1.barlen)}var _f=$s($f($1.barlen+2));$P(_f,1,$1.barcode);$1.barcode=_f;$p($1.barcode,0,43);$p($1.barcode,$f($1.barlen+1),$g($1.barchars,$1.checksum));$p($1.options,"dontdraw",true);$p($1.options,"validatecheck",false);$p($1.options,"format","rectangle");$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.datamatrix();var _s=$k[--$j];$1[$k[--$j]]=_s;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.hibcpdf417=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.columns=2;$1.validatecheck=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.columns=~~$1.columns;$1.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$1.charvals=new Map;for(var _6=0;_6<=42;_6+=1){$p($1.charvals,$G($1.barchars,_6,1),_6)}for(var _C=0,_B=$1.barcode.length-1;_C<=_B;_C+=1){var _G=$g($1.charvals,$G($1.barcode,_C,1))!==undefined;if(!_G){$k[$j++]="bwipp.hibcpdf417BadCharacter";$k[$j++]="HIBC PDF417 must contain only digits, capital letters, spaces and the symbols -.$/+%";$0.raiseerror()}}$k[$j++]="barlen";$k[$j++]=$1.barcode.length;if($1.validatecheck){var _J=$k[--$j];$k[$j++]=$f(_J-1)}var _K=$k[--$j];$1[$k[--$j]]=_K;$1.checksum=41;for(var _O=0,_N=$f($1.barlen-1);_O<=_N;_O+=1){$1.checksum=$f($g($1.charvals,$G($1.barcode,_O,1))+$1.checksum)}$1.checksum=$1.checksum%43;if($1.validatecheck){if($g($1.barcode,$1.barlen)!=$g($1.barchars,$1.checksum)){$k[$j++]="bwipp.hibcpdf417BadCheckDigit";$k[$j++]="Incorrect HIBC PDF417 check digit provided";$0.raiseerror()}$1.barcode=$G($1.barcode,0,$1.barlen)}var _g=$s($f($1.barlen+2));$P(_g,1,$1.barcode);$1.barcode=_g;$p($1.barcode,0,43);$p($1.barcode,$f($1.barlen+1),$g($1.barchars,$1.checksum));$p($1.options,"dontdraw",true);$p($1.options,"columns",$1.columns);$p($1.options,"validatecheck",false);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.pdf417();var _u=$k[--$j];$1[$k[--$j]]=_u;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.hibcmicropdf417=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.columns=2;$1.validatecheck=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.columns=~~$1.columns;$1.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$1.charvals=new Map;for(var _6=0;_6<=42;_6+=1){$p($1.charvals,$G($1.barchars,_6,1),_6)}for(var _C=0,_B=$1.barcode.length-1;_C<=_B;_C+=1){var _G=$g($1.charvals,$G($1.barcode,_C,1))!==undefined;if(!_G){$k[$j++]="bwipp.hibcmicropdf417BadCharacter";$k[$j++]="HIBC MicroPDF417 must contain only digits, capital letters, spaces and the symbols -.$/+%";$0.raiseerror()}}$k[$j++]="barlen";$k[$j++]=$1.barcode.length;if($1.validatecheck){var _J=$k[--$j];$k[$j++]=$f(_J-1)}var _K=$k[--$j];$1[$k[--$j]]=_K;$1.checksum=41;for(var _O=0,_N=$f($1.barlen-1);_O<=_N;_O+=1){$1.checksum=$f($g($1.charvals,$G($1.barcode,_O,1))+$1.checksum)}$1.checksum=$1.checksum%43;if($1.validatecheck){if($g($1.barcode,$1.barlen)!=$g($1.barchars,$1.checksum)){$k[$j++]="bwipp.hibcmicropdf417BadCheckDigit";$k[$j++]="Incorrect HIBC MicroPDF417 check digit provided";$0.raiseerror()}$1.barcode=$G($1.barcode,0,$1.barlen)}var _g=$s($f($1.barlen+2));$P(_g,1,$1.barcode);$1.barcode=_g;$p($1.barcode,0,43);$p($1.barcode,$f($1.barlen+1),$g($1.barchars,$1.checksum));$p($1.options,"dontdraw",true);$p($1.options,"columns",$1.columns);$p($1.options,"validatecheck",false);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.micropdf417();var _u=$k[--$j];$1[$k[--$j]]=_u;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.hibcqrcode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.validatecheck=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$1.charvals=new Map;for(var _5=0;_5<=42;_5+=1){$p($1.charvals,$G($1.barchars,_5,1),_5)}for(var _B=0,_A=$1.barcode.length-1;_B<=_A;_B+=1){var _F=$g($1.charvals,$G($1.barcode,_B,1))!==undefined;if(!_F){$k[$j++]="bwipp.hibcqrcodeBadCharacter";$k[$j++]="HIBC QR Code must contain only digits, capital letters, spaces and the symbols -.$/+%";$0.raiseerror()}}$k[$j++]="barlen";$k[$j++]=$1.barcode.length;if($1.validatecheck){var _I=$k[--$j];$k[$j++]=$f(_I-1)}var _J=$k[--$j];$1[$k[--$j]]=_J;$1.checksum=41;for(var _N=0,_M=$f($1.barlen-1);_N<=_M;_N+=1){$1.checksum=$f($g($1.charvals,$G($1.barcode,_N,1))+$1.checksum)}$1.checksum=$1.checksum%43;if($1.validatecheck){if($g($1.barcode,$1.barlen)!=$g($1.barchars,$1.checksum)){$k[$j++]="bwipp.hibcqrcodeBadCheckDigit";$k[$j++]="Incorrect HIBC QR Code check digit provided";$0.raiseerror()}$1.barcode=$G($1.barcode,0,$1.barlen)}var _f=$s($f($1.barlen+2));$P(_f,1,$1.barcode);$1.barcode=_f;$p($1.barcode,0,43);$p($1.barcode,$f($1.barlen+1),$g($1.barchars,$1.checksum));$p($1.options,"dontdraw",true);$p($1.options,"validatecheck",false);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.qrcode();var _r=$k[--$j];$1[$k[--$j]]=_r;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.hibccodablockf=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.validatecheck=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$1.charvals=new Map;for(var _5=0;_5<=42;_5+=1){$p($1.charvals,$G($1.barchars,_5,1),_5)}for(var _B=0,_A=$1.barcode.length-1;_B<=_A;_B+=1){var _F=$g($1.charvals,$G($1.barcode,_B,1))!==undefined;if(!_F){$k[$j++]="bwipp.codablockfBadCharacter";$k[$j++]="HIBC Codablock F must contain only digits, capital letters, spaces and the symbols -.$/+%";$0.raiseerror()}}$k[$j++]="barlen";$k[$j++]=$1.barcode.length;if($1.validatecheck){var _I=$k[--$j];$k[$j++]=$f(_I-1)}var _J=$k[--$j];$1[$k[--$j]]=_J;$1.checksum=41;for(var _N=0,_M=$f($1.barlen-1);_N<=_M;_N+=1){$1.checksum=$f($g($1.charvals,$G($1.barcode,_N,1))+$1.checksum)}$1.checksum=$1.checksum%43;if($1.validatecheck){if($g($1.barcode,$1.barlen)!=$g($1.barchars,$1.checksum)){$k[$j++]="bwipp.hibccodablockfBadCheckDigit";$k[$j++]="Incorrect HIBC Codablock F check digit provided";$0.raiseerror()}$1.barcode=$G($1.barcode,0,$1.barlen)}var _f=$s($f($1.barlen+2));$P(_f,1,$1.barcode);$1.barcode=_f;$p($1.barcode,0,43);$p($1.barcode,$f($1.barlen+1),$g($1.barchars,$1.checksum));$p($1.options,"dontdraw",true);$p($1.options,"validatecheck",false);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.codablockf();var _r=$k[--$j];$1[$k[--$j]]=_r;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.hibcazteccode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.validatecheck=false;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.barchars="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%";$1.charvals=new Map;for(var _5=0;_5<=42;_5+=1){$p($1.charvals,$G($1.barchars,_5,1),_5)}for(var _B=0,_A=$1.barcode.length-1;_B<=_A;_B+=1){var _F=$g($1.charvals,$G($1.barcode,_B,1))!==undefined;if(!_F){$k[$j++]="bwipp.hibcazteccodeBadCharacter";$k[$j++]="HIBC Aztec Code must contain only digits, capital letters, spaces and the symbols -.$/+%";$0.raiseerror()}}$k[$j++]="barlen";$k[$j++]=$1.barcode.length;if($1.validatecheck){var _I=$k[--$j];$k[$j++]=$f(_I-1)}var _J=$k[--$j];$1[$k[--$j]]=_J;$1.checksum=41;for(var _N=0,_M=$f($1.barlen-1);_N<=_M;_N+=1){$1.checksum=$f($g($1.charvals,$G($1.barcode,_N,1))+$1.checksum)}$1.checksum=$1.checksum%43;if($1.validatecheck){if($g($1.barcode,$1.barlen)!=$g($1.barchars,$1.checksum)){$k[$j++]="bwipp.hibcazteccodeBadCheckDigit";$k[$j++]="Incorrect HIBC Aztec Code check digit provided";$0.raiseerror()}$1.barcode=$G($1.barcode,0,$1.barlen)}var _f=$s($f($1.barlen+2));$P(_f,1,$1.barcode);$1.barcode=_f;$p($1.barcode,0,43);$p($1.barcode,$f($1.barlen+1),$g($1.barchars,$1.checksum));$p($1.options,"dontdraw",true);$p($1.options,"validatecheck",false);$k[$j++]="args";$k[$j++]=$1.barcode;$k[$j++]=$1.options;$0.azteccode();var _r=$k[--$j];$1[$k[--$j]]=_r;$p($1.args,"opt",$1.options);$k[$j++]=$1.args;if(!$1.dontdraw){$0.renmatrix()}};$0.channelcode=function(){var $1={};$1.options=$k[--$j];$1.barcode=$k[--$j];$1.dontdraw=false;$1.shortfinder=false;$1.includetext=false;$1.includecheck=false;$1.height=1;$F($1.options,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});$1.height=+$1.height;if($1.barcode.length<2||$1.barcode.length>7){$k[$j++]="bwipp.channelcodeBadLength";$k[$j++]="Channel Code must be 2 to 7 digits";$0.raiseerror()}$F($1.barcode,function(){var _9=$k[--$j];if(_9<48||_9>57){$k[$j++]="bwipp.channelcodeBadCharacter";$k[$j++]="Channel Code must contain only digits";$0.raiseerror()}});if(~~$z($1.barcode)>$g($a([26,292,3493,44072,576688,7742862]),$1.barcode.length-2)){$k[$j++]="bwipp.channelcodeTooBig";$k[$j++]="The Channel Code value is too big for the number of channels";$0.raiseerror()}$1.nextb=function(){var _E=$k[--$j];var _N=$f($g($1.s,_E)+$f($g($1.b,$f(_E-1))+$f($g($1.b,$f(_E-2))+$g($1.s,$f(_E-1)))))>4?1:2;$k[$j++]=_E;$k[$j++]=_N;if(_E<$f($1.chan+2)){var _P=$k[--$j];var _Q=$k[--$j];var _R=$k[--$j];$k[$j++]=_R;$k[$j++]=_Q;$k[$j++]=_P;for(var _T=_P,_S=_R;_T<=_S;_T+=1){var _V=$k[--$j];var _W=$k[--$j];$p($1.b,_W,_T);var _X=$k[--$j];var _Y=$k[--$j];$k[$j++]=_Y;$k[$j++]=_X;$k[$j++]=_W;$k[$j++]=_V;$k[$j++]=$f($f(_X-_T)+1);$k[$j++]=_Y;$k[$j++]=$f(_W+1);$1.nexts()}}else{var _Z=$k[--$j];var _a=$k[--$j];var _b=$k[--$j];$k[$j++]=_b;$k[$j++]=_a;$k[$j++]=_Z;if($le(_Z,_b)){var _d=$k[--$j];var _e=$k[--$j];var _f=$k[--$j];$p($1.b,_e,_f);$k[$j++]=_f;$k[$j++]=_e;$k[$j++]=_d;if($1.value==$1.target){$k[$j++]=Infinity;for(var _i=3;_i<=10;_i+=1){$k[$j++]=$g($1.s,_i);$k[$j++]=$g($1.b,_i)}$1.out=$G($a(),0,$1.chan*2)}$1.value=$1.value+1}}$j-=4};$1.nexts=function(){var _r=$k[--$j];$k[$j++]=_r;if(_r<$f($1.chan+2)){$k[$j++]=1}else{var _t=$k[--$j];var _u=$k[--$j];$k[$j++]=_u;$k[$j++]=_t;$k[$j++]=_u}var _v=$k[--$j];var _w=$k[--$j];var _x=$k[--$j];$k[$j++]=_x;$k[$j++]=_w;for(var _z=_v,_y=_x;_z<=_y;_z+=1){var _11=$k[--$j];$p($1.s,_11,_z);var _12=$k[--$j];var _13=$k[--$j];$k[$j++]=_13;$k[$j++]=_12;$k[$j++]=_11;$k[$j++]=$f($f(_12-_z)+1);$k[$j++]=_13;$k[$j++]=_11;$1.nextb()}$j-=3};$1.encode=function(){$1.chan=$k[--$j];$1.target=$k[--$j];$1.value=0;$1.out=-1;$1.b=$a([1,1,1,0,0,0,0,0,0,0,0]);$1.s=$a([0,1,1,0,0,0,0,0,0,0,0]);var _18=$1.chan;$k[$j++]=_18;$k[$j++]=_18;$k[$j++]=3;$1.nexts();$k[$j++]=$1.out};$1.barlen=$1.barcode.length;$k[$j++]="finder";if($1.shortfinder){$k[$j++]=$a([1,1,1,1,1])}else{$k[$j++]=$a([1,1,1,1,1,1,1,1,1])}var _1E=$k[--$j];$1[$k[--$j]]=_1E;$k[$j++]="data";$k[$j++]=~~$z($1.barcode);$k[$j++]=$1.barlen+1;$1.encode();var _1I=$k[--$j];$1[$k[--$j]]=_1I;$1.check=$a([]);if($1.includecheck){$1.mod23=$g($a([$a([]),$a([]),$a([13,12,4,9,3,1]),$a([13,2,12,3,18,16,4,1]),$a([11,16,17,8,20,4,10,2,5,1]),$a([1,4,16,18,3,12,2,8,9,13,6,1]),$a([20,16,22,13,15,12,5,4,8,9,21,3,7,1]),$a([2,6,18,8,1,3,9,4,12,13,16,2,6,18,8,1])]),$1.barlen);$k[$j++]=0;for(var _1Z=0,_1Y=$1.data.length-1;_1Z<=_1Y;_1Z+=1){var _1e=$k[--$j];$k[$j++]=$f(_1e+$f($g($1.data,_1Z)-1)*$g($1.mod23,_1Z))}var _1f=$k[--$j];$k[$j++]=_1f%23;$k[$j++]=3;$1.encode();$1.check=$k[--$j]}$k[$j++]=Infinity;$q($1.finder);$q($1.data);$q($1.check);$1.sbs=$a();$1.txt=$a($1.barlen);for(var _1p=0,_1o=$1.barlen-1;_1p<=_1o;_1p+=1){$1.i=_1p;$p($1.txt,$1.i,$a([$G($1.barcode,$1.i,1),0,0,"",0]))}$k[$j++]=Infinity;var _1w=$1.sbs;$k[$j++]=Infinity;for(var _1y=0,_1z=~~(($1.sbs.length+1)/2);_1y<_1z;_1y++){$k[$j++]=$1.height}var _21=$a();$k[$j++]=Infinity;for(var _23=0,_24=~~(($1.sbs.length+1)/2);_23<_24;_23++){$k[$j++]=0}var _25=$a();$k[$j++]="ren";$k[$j++]=$0.renlinear;$k[$j++]="sbs";$k[$j++]=_1w;$k[$j++]="bhs";$k[$j++]=_21;$k[$j++]="bbs";$k[$j++]=_25;$k[$j++]="txt";$k[$j++]=$1.txt;$k[$j++]="textxalign";$k[$j++]="center";$k[$j++]="opt";$k[$j++]=$1.options;var _28=$d();$k[$j++]=_28;if(!$1.dontdraw){$0.renlinear()}};$0.renlinear=function(){if($0.bwipjs_dontdraw){return}var $1={};$1.args=$k[--$j];$1.sbs=$a([]);$1.bhs=$a([]);$1.bbs=$a([]);$1.txt=$a([]);$1.barcolor="unset";$1.includetext=false;$1.textcolor="unset";$1.textxalign="unset";$1.textyalign="unset";$1.textfont="OCR-B";$1.textsize=10;$1.textxoffset=0;$1.textyoffset=0;$1.textgaps=0;$1.alttext="";$1.bordercolor="unset";$1.backgroundcolor="unset";$1.inkspread=0;$1.width=0;$1.barratio=1;$1.spaceratio=1;$1.showborder=false;$1.borderleft=10;$1.borderright=10;$1.bordertop=1;$1.borderbottom=1;$1.borderwidth=.5;$1.guardwhitespace=false;$1.guardleftpos=0;$1.guardleftypos=0;$1.guardrightpos=0;$1.guardrightypos=0;$1.guardwidth=7;$1.guardheight=7;$F($1.args,function(){var _7=$k[--$j];$1[$k[--$j]]=_7});var _9=$1.opt;for(var _E=_9.size,_D=_9.keys(),_C=0;_C<_E;_C++){var _A=_D.next().value;$1[_A]=_9.get(_A)}$1.barcolor=""+$1.barcolor;$1.textcolor=""+$1.textcolor;$1.textxalign=""+$1.textxalign;$1.textyalign=""+$1.textyalign;$1.textfont=""+$1.textfont;$1.textsize=+$1.textsize;$1.textxoffset=+$1.textxoffset;$1.textyoffset=+$1.textyoffset;$1.textgaps=+$1.textgaps;$1.alttext=""+$1.alttext;$1.bordercolor=""+$1.bordercolor;$1.backgroundcolor=""+$1.backgroundcolor;$1.inkspread=+$1.inkspread;$1.width=+$1.width;$1.barratio=+$1.barratio;$1.spaceratio=+$1.spaceratio;$1.borderleft=+$1.borderleft;$1.borderright=+$1.borderright;$1.bordertop=+$1.bordertop;$1.borderbottom=+$1.borderbottom;$1.borderwidth=+$1.borderwidth;$1.guardleftpos=+$1.guardleftpos;$1.guardleftypos=+$1.guardleftypos;$1.guardrightpos=+$1.guardrightpos;$1.guardrightypos=+$1.guardrightypos;$1.guardwidth=+$1.guardwidth;$1.guardheight=+$1.guardheight;$1.bars=$a(~~(($1.sbs.length+1)/2));$1.x=0;$1.maxh=0;for(var _k=0,_j=~~(($1.sbs.length+1)/2)*2-2;_k<=_j;_k+=1){$1.i=_k;if($1.i%2==0){$1.d=$f($f($g($1.sbs,$1.i)*$1.barratio-$1.barratio)+1);if($g($1.sbs,$1.i)!=0){$1.h=$g($1.bhs,~~($1.i/2))*72;$1.c=$f($1.d/2+$1.x);$1.y=$g($1.bbs,~~($1.i/2))*72;$1.w=$f($1.d-$1.inkspread);$p($1.bars,~~($1.i/2),$a([$1.h,$1.c,$1.y,$1.w]));if($f($1.h+$1.y)>$1.maxh){$1.maxh=$f($1.h+$1.y)}}else{$p($1.bars,~~($1.i/2),-1)}}else{$1.d=$f($f($g($1.sbs,$1.i)*$1.spaceratio-$1.spaceratio)+1)}$1.x=$f($1.x+$1.d)}$$.save();var _1P=$$.currpos();$$.translate(_1P.x,_1P.y);if($1.width!=0){$$.scale($1.width*72/$1.x,1)}$$.newpath();$$.moveto(-$1.borderleft,-$1.borderbottom);$$.rlineto($f($f($1.x+$1.borderleft)+$1.borderright),0);$$.rlineto(0,$f($f($1.maxh+$1.borderbottom)+$1.bordertop));$$.rlineto(-$f($f($1.x+$1.borderleft)+$1.borderright),0);$$.rlineto(0,-$f($f($1.maxh+$1.borderbottom)+$1.bordertop));$$.closepath();if($1.showborder){$$.save();if($ne($1.bordercolor,"unset")){$$.setcolor($1.bordercolor)}$$.setlinewidth($1.borderwidth);$$.stroke();$$.restore()}$$.save();if($ne($1.barcolor,"unset")){$$.setcolor($1.barcolor)}var _1n=$1.bars;for(var _1o=0,_1p=_1n.length;_1o<_1p;_1o++){var _1q=$g(_1n,_1o);$k[$j++]=_1q;if(_1q!=-1){$q($k[--$j]);$$.newpath();$$.setlinewidth($k[--$j]);var _1t=$k[--$j];$$.moveto($k[--$j],_1t);$$.rlineto(0,$k[--$j]);$$.stroke()}else{$j--}}$$.restore();if($ne($1.textcolor,"unset")){$$.setcolor($1.textcolor)}if($1.includetext){if($eq($1.textxalign,"unset")&&$eq($1.textyalign,"unset")&&$eq($1.alttext,"")){$1.s=0;$1.fn="";var _22=$1.txt;for(var _23=0,_24=_22.length;_23<_24;_23++){$F($g(_22,_23));var _26=$k[--$j];var _27=$k[--$j];$k[$j++]=_27;$k[$j++]=_26;if(_26!=$1.s||$ne(_27,$1.fn)){var _2A=$k[--$j];var _2B=$k[--$j];$1.s=_2A;$1.fn=_2B;$$.selectfont(_2B,_2A)}else{$j-=2}var _2C=$k[--$j];$$.moveto($k[--$j],_2C);$$.show($k[--$j],0,0)}}else{$$.selectfont($1.textfont,$1.textsize);if($eq($1.alttext,"")){$k[$j++]=Infinity;var _2I=$1.txt;for(var _2J=0,_2K=_2I.length;_2J<_2K;_2J++){$F($g($g(_2I,_2J),0))}$1.txt=$a();$1.tstr=$s($1.txt.length);for(var _2S=0,_2R=$1.txt.length-1;_2S<=_2R;_2S+=1){$p($1.tstr,_2S,$g($1.txt,_2S))}}else{$1.tstr=$1.alttext}if($1.tstr.length==0){$k[$j++]=0}else{$$.save();$$.newpath();$$.moveto(0,0);$$.charpath("0",false);var _2Y=$$.pathbbox();$$.restore();$k[$j++]=_2Y.ury}$1.textascent=$k[--$j];var _2b=$$.stringwidth($1.tstr);$1.textwidth=$f(_2b.w+($1.tstr.length-1)*$1.textgaps);$1.textxpos=$f($1.textxoffset+$f($1.x-$1.textwidth)/2);if($eq($1.textxalign,"left")){$1.textxpos=$1.textxoffset}if($eq($1.textxalign,"right")){$1.textxpos=$f($f($1.x-$1.textxoffset)-$1.textwidth)}if($eq($1.textxalign,"offleft")){$1.textxpos=-$f($1.textwidth+$1.textxoffset)}if($eq($1.textxalign,"offright")){$1.textxpos=$f($1.x+$1.textxoffset)}if($eq($1.textxalign,"justify")&&$1.textwidth<$1.x){$1.textxpos=0;$1.textgaps=$f($1.x-$1.textwidth)/($1.tstr.length-1)}$1.textypos=-$f($f($1.textyoffset+$1.textascent)+1);if($eq($1.textyalign,"above")){$1.textypos=$f($f($1.textyoffset+$1.maxh)+1)}if($eq($1.textyalign,"center")){$1.textypos=$f($1.textyoffset+$f($1.maxh-$1.textascent)/2)}$$.moveto($1.textxpos,$1.textypos);$$.show($1.tstr,$1.textgaps,0)}}if($1.guardwhitespace){$$.selectfont("OCR-B",$1.guardheight*2);if($1.guardleftpos!=0){$$.moveto($f(-$1.guardleftpos-1),$f($f($1.guardleftypos-$1.guardheight/2)-1.5));$$.show("<",0,0)}if($1.guardrightpos!=0){$$.moveto($f($f($f($1.guardrightpos+$1.x)-$1.guardwidth)+1),$f($f($1.guardrightypos-$1.guardheight/2)-1.5));$$.show(">",0,0)}}$$.restore()};$0.renmaximatrix=function(){if($0.bwipjs_dontdraw){return}var $1={};$1.args=$k[--$j];$1.barcolor="unset";$1.backgroundcolor="unset";$F($1.args,function(){var _3=$k[--$j];$1[$k[--$j]]=_3});var _5=$1.opt;for(var _A=_5.size,_9=_5.keys(),_8=0;_8<_A;_8++){var _6=_9.next().value;$1[_6]=_5.get(_6)}$1.barcolor=""+$1.barcolor;$1.backgroundcolor=""+$1.backgroundcolor;$$.save();if($ne($1.barcolor,"unset")){$$.setcolor($1.barcolor)}$$.maxicode($1.pixs);$$.restore()};return function(bwipjs,encoder,text,opts,dontdraw){if(!$0[encoder]){throw new Error("bwipp.unknownEncoder: "+encoder)}if(typeof text!=="string"){throw new Error("bwipp.typeError: barcode text not a string ("+text+")")}opts=opts||{};if(typeof opts==="string"){var tmp=opts.split(" ");opts={};for(var i=0;i255){throw new Error("bwipp.rangeError:"+" ^NNN out-of-range ("+$0+")")}return String.fromCharCode(v)});delete opts.parse}$0.bwipjs_dontdraw=opts.dontdraw||dontdraw||false;var map=new Map;for(var id in opts){if(opts.hasOwnProperty(id)){map.set(id,opts[id])}}$$=bwipjs;$k=[text,map];$j=2;$0[encoder]();if($j){return $k.splice(0,$j)}return true}}BWIPP.VERSION="2021-02-06"; +function ToCanvas(r,t){if(typeof t=="string"){t=document.getElementById(t)||document.querySelector(t)}else if(typeof r=="string"){r=document.getElementById(r)||document.querySelector(r)}if(r instanceof HTMLCanvasElement){var i=r;r=t;t=i}else if(!(t instanceof HTMLCanvasElement)){throw"bwipjs: Not a canvas"}FixupOptions(r);Render(r,DrawingCanvas(r,t));return t}function FixupOptions(r){var t=r.scale||2;var i=+r.scaleX||t;var e=+r.scaleY||i;r.paddingleft=l(r.paddingleft,r.paddingwidth,r.padding,i);r.paddingright=l(r.paddingright,r.paddingwidth,r.padding,i);r.paddingtop=l(r.paddingtop,r.paddingheight,r.padding,e);r.paddingbottom=l(r.paddingbottom,r.paddingheight,r.padding,e);if(/^[0-9a-fA-F]{8}$/.test(""+r.backgroundcolor)){var n=r.backgroundcolor;var a=parseInt(n.substr(0,2),16)/255;var s=parseInt(n.substr(2,2),16)/255;var f=parseInt(n.substr(4,2),16)/255;var o=parseInt(n.substr(6,2),16)/255;var v=Math.floor((1-a)*(1-o)*255).toString(16);var u=Math.floor((1-s)*(1-o)*255).toString(16);var h=Math.floor((1-f)*(1-o)*255).toString(16);r.backgroundcolor=(v.length==1?"0":"")+v+(u.length==1?"0":"")+u+(h.length==1?"0":"")+h}return r;function l(r,t,i,e){if(r!=null){return r*e}if(t!=null){return t*e}return i*e||0}}var BWIPJS_OPTIONS={bcid:1,text:1,scale:1,scaleX:1,scaleY:1,rotate:1,padding:1,paddingwidth:1,paddingheight:1,paddingtop:1,paddingleft:1,paddingright:1,paddingbottom:1,backgroundcolor:1};function Render(r,t){var i=r.scale||2;var e=+r.scaleX||i;var n=+r.scaleY||e;var a=r.rotate||"N";var s=r.bcid;var f=r.text;if(!f){throw new ReferenceError("bwip-js: bar code text not specified.")}if(!s){throw new ReferenceError("bwip-js: bar code type not specified.")}var o=new BWIPJS(t);var v={};for(var u in r){if(!BWIPJS_OPTIONS[u]){v[u]=r[u]}}if(v.alttext){v.includetext=true}if(+v.height&&s!="pharmacode2"){v.height=v.height/25.4||.5}if(+v.width){v.width=v.width/25.4||0}o.scale(e,n);BWIPP()(o,s,f,v);return o.render()}function Raw(r,t,i){if(arguments.length==1){i=r;r=i.bcid;t=i.text}var e=new BWIPJS(DrawingBuiltin({}));var n=BWIPP()(e,r,t,i,true);var a={pixs:1,pixx:1,pixy:1,sbs:1,bbs:1,bhs:1,width:1,height:1};for(var s=0;s=0&&r[i].op=="l";i--);i++;if(iv.x0)n=v.x0;if(sv.y0)a=v.y0;if(fv.x1)n=v.x1;if(sv.y1)a=v.y1;if(fs.x0)t=s.x0;if(es.x1)t=s.x1;if(es.y0)i=s.y0;if(ns.y1)i=s.y1;if(no){var p=s;s=o;o=p}if(f>v){var p=f;f=v;v=p}if(s==o){this.bbox(s-u,f,s+c-u-1,v)}else{this.bbox(s,f-y+g+1,o,v+g)}i++}else if(a.op=="p"){var x=Infinity;var d=Infinity;var b=-Infinity;var _=-Infinity;var w=a.poly;if(w.length!=4){throw new Error("stroke: --not-a-rect--")}for(var n=0,m=w.length-1;nb)b=S;if(B_)_=B}var u=T(c/2);var g=T(y/2);this.bbox(x-u,d-g,b+u,_+g);e++}else{throw new Error("stroke: --not-a-line--")}}var F=this;this.cmds.push(function(){var r=T(c/2);var t=T(y/2);var i=c-r;var e=y-t;for(var n=0;ns)s=u;if(hf)f=h}this.bbox(i,a+1,s-1,f)}else if(t.op=="e"){this.bbox(t.x-t.rx,t.y-t.ry,t.x+t.rx,t.y+t.ry)}else{throw new Error("fill: --not-a-polygon--")}}var l=this;this.cmds.push(function(){for(var r=0;r9){v++}var t,u,i,e;i=s/2|0;e=f/2|0;t=v-i;if(t&1){t--}u=(4*f|0)-e;var h=t/2-1;var l=(h+1)/2|0;var c=u-2-2*l;this.bbox(0,0,v*30-i,f*3*32+f*4-e);var y=this;this.cmds.push(function(){for(var r=0;ri){var n=r;r=i;i=n}if(t>e){var n=t;t=e;e=n}r=M(r);t=M(t);i=T(i);e=T(e);if(this.minx>r)this.minx=r;if(this.maxxt)this.miny=t;if(this.maxys){for(var f=s+1;fa){T(n,a)}if(u>a){T(o,a)}}else{var v=r[e==t-1?0:e+1][1];var u=r[i==0?t-1:i-1][1];if(v>a){T(o,a)}if(u>a){T(n,a)}}}}},hexagon:function(r,t){var i=r[0][0]|0;var e=r[0][1]|0;var n=r[1][1]-r[0][1];var a=r[2][1]-r[1][1]-1;var s=r[2][0];var f=r[4][0];I=parseInt(t.substr(0,2),16);S=parseInt(t.substr(2,2),16);B=parseInt(t.substr(4,2),16);E(i,i+1,e++);for(var o=1;o=1;o--){E(i-2*o,i+1+2*o,e++)}E(i,i+1,e)},ellipse:function(r,t,i,e,n){a(r-i,t-e,r+i,t+e,n)},fill:function(r){I=parseInt(r.substr(0,2),16);S=parseInt(r.substr(2,2),16);B=parseInt(r.substr(4,2),16);t();F=[];F.min=Infinity},text:function(r,t,i,e,n){r=r|0;t=t|0;I=parseInt(e.substr(0,2),16);S=parseInt(e.substr(2,2),16);B=parseInt(e.substr(4,2),16);var a=FontLib.lookup(n.name);var s=n.width|0;var f=n.height|0;var o=n.dx|0;for(var v=0;vt)F.min=t;if(!F[t]){F[t]=[r]}else{F[t].push(r)}}function E(r,t,i){while(r<=t){M(r++,i,255)}}function t(){var r=F.min;var t=F.length-1;for(var i=r;i<=t;i++){var e=F[i];if(!e){continue}e.sort(function(r,t){return r-t});var n=false;var a=0;for(var s=0,f=e.length;si){r=i;i+=a}if(t>e)t=e;t+=(s+1)/2|0;e=t-f;a*=8*a;f=8*s*s;do{x(c,i,t);p(l,r,t);p(l,r,e);x(c,i,e);h=2*u;if(h>=o){r++;i--;o+=f;u+=o}if(h<=v){t++;e--;v+=a;u+=v}}while(r<=i);while(t-ei)r.min=i;var e=r[i];if(e==null||e>t){r[i]=t}}function x(r,t,i){if(r.min>i)r.min=i;var e=r[i];if(e==null||e0?1:-1}}function DrawingCanvas(i,e){if(typeof window==null){throw new Error("DrawingCanvas: not a browser")}var n;var a=e.getContext("2d");var r=DrawingBuiltin(i);r.image=t;r.end=s;return r;function t(r,t){e.width=r;e.height=t;a.setTransform(1,0,0,1,0,0);if(/^[0-9a-fA-F]{6}$/.test(""+i.backgroundcolor)){a.fillStyle="#"+i.backgroundcolor;a.fillRect(0,0,r,t)}else{a.clearRect(0,0,r,t)}n=a.getImageData(0,0,r,t);return{buffer:n.data,ispng:false}}function s(){a.putImageData(n,0,0)}}var FontLib=function(){var v=[];var s={};var u={};var h={};var l=0;h.next=h;h.prev=h;return{lookup:t,monochrome:i,getglyph:e,getpaths:n,loadFont:r};function r(r){var t=100;var i=100;var e=null;if(arguments.length==2){e=arguments[1]}else if(arguments.length==3){t=i=+arguments[1]||100;e=arguments[2]}else if(arguments.length==4){i=+arguments[1]||100;t=+arguments[2]||100;e=arguments[3]}else{throw new Error("loadFont(): invalid number of arguments")}var n=STBTT.InitFont(toUint8Array(e));n.bwipjs_name=r;n.bwipjs_multx=t;n.bwipjs_multy=i;var a=v.push(n)-1;s[r.toUpperCase()]=a;return a}function t(r){var t=s[r.toUpperCase()];return t===undefined?1:t}function i(r){if(r){throw new Error("fontlib: monochrome not implemented")}}function e(r,t,i,e){r=r|0;t=t|0;i=+i;e=+e;if(!i||i<8){i=8}if(!e||e<8){e=i}if(r<0||r>=v.length){r=1}if(!t||t<32){t=32}var n=""+r+"c"+t+"w"+i+"h"+e;var a=u[n];if(a){a.prev.next=a.next;a.next.prev=a.prev;var s=h;s.next.prev=a;a.next=s.next;a.prev=s;s.next=a;return a}var f=v[r];var a=STBTT.GetGlyph(f,t,i*f.bwipjs_multx/100,e*f.bwipjs_multy/100);a.bytes=a.pixels;a.cachekey=n;a.offset=0;if(l>250){var s=h;var o=s.prev;o.prev.next=s;s.prev=o.prev;o.next=o.prev=null;delete u[o.cachekey]}else{l++}u[n]=a;var s=h;s.next.prev=a;a.next=s.next;a.prev=s;s.next=a;return a}function n(r,t,i,e){r=r|0;t=t|0;i=+i;e=+e;if(!i||i<8){i=8}if(!e||e<8){e=i}if(r<0||r>=v.length){r=1}if(!t||t<32){t=32}var n=v[r];return STBTT.GetPaths(n,t,i*n.bwipjs_multx/100,e*n.bwipjs_multy/100)}}();var STBTT=function(){"use strict";var W=1,N=2,O=3,p=4,x=0,r=1,t=2,d=3,i=0,e=1,n=2,a=3,s=4,f=0,b=1,o=2,_=10;var D=Math.floor;var v=Math.ceil;var z=Math.sqrt;var j=Math.abs;function U(r){var t=[];for(var i=0;ir.length||t<0?r.length:t}function R(r,t){w(r,r.cursor+t)}function G(r,t){var i=0;for(var e=0;er.length||i>r.length-t){return m()}var e=r.subarray(t,t+i);e.cursor=0;return e}function I(r){var t=r.cursor;var i=G(r,2);if(i){var e=J(r);R(r,e*i);R(r,G(r,e)-1)}return k(r,t,r.cursor-t)}function P(r){var t=J(r);if(t>=32&&t<=246){return t-139}else if(t>=247&&t<=250){return(t-247)*256+J(r)+108}else if(t>=251&&t<=254){return-(t-251)*256-J(r)-108}else if(t==28){return G(r,2)}else if(t==29){return G(r,4)}return 0}function h(r){var t=u(r);if(t==30){R(r,1);while(r.cursor>4==15){break}}}else{P(r)}}function l(r,t){w(r,0);while(r.cursor=28){h(r)}e=r.cursor;n=J(r);if(n==12){n=J(r)|256}if(n==t){return k(r,i,e-i)}}return k(r,0,0)}function c(r,t,i,e){var n=l(r,t);for(var a=0;a>0:r}function X(r,t){return r[t]*256+r[t+1]}function Y(r,t){var i=r[t]*256+r[t+1];return i&32768?(4294901760|i)>>0:i}function B(r,t){return(r[t]<<24)+(r[t+1]<<16)+(r[t+2]<<8)+r[t+3]}function F(r,t,i){var e=X(r,t+4);var n=t+12;for(var a=0;a=s&&t>1,v=X(i,e+8)>>1,u=X(i,e+10),h=X(i,e+12)>>1,l=e+14,c=l;if(t>65535){return 0}if(t>=X(i,c+h*2)){c+=h*2}c-=2;while(u){v>>=1;var y=X(i,c+v*2);if(t>y){c+=v*2}--u}c+=2;var g,p,x=c-l>>>1;p=X(i,e+14+o*2+2+2*x);if(t>1);var m=B(i,e+16+w*12);var k=B(i,e+16+w*12+4);if(tk){b=w+1}else{var I=B(i,e+16+w*12+8);if(n==12){return I+t-m}else{return I}}}return 0}return 0}function H(r,t,i,e,n,a){r.type=t;r.x=i;r.y=e;r.cx=n;r.cy=a}function $(r,t){var i,e;if(t>=r.numGlyphs){return-1}if(r.indexToLocFormat>=2){return-1}if(r.indexToLocFormat==0){i=r.glyf+X(r.data,r.loca+t*2)*2;e=r.glyf+X(r.data,r.loca+t*2+2)*2}else{i=r.glyf+B(r.data,r.loca+t*4);e=r.glyf+B(r.data,r.loca+t*4+4)}return i==e?-1:i}function E(r,t,i){if(r.cff.length){fr(r,t,i)}else{var e=$(r,t);if(e<0){return 0}i.x0=Y(r.data,e+2);i.y0=Y(r.data,e+4);i.x1=Y(r.data,e+6);i.y1=Y(r.data,e+8)}return 1}function Q(r,t,i,e,n,a,s,f,o,v){if(e){if(i){H(r[t++],O,o+s>>1,v+f>>1,o,v)}H(r[t++],O,n,a,s,f)}else{if(i){H(r[t++],O,n,a,o,v)}else{H(r[t++],N,n,a,0,0)}}return t}function C(r,t){var i=r.data,e=$(r,t);if(e<0){return null}var n=[];var a=Y(i,e);if(a>0){var s=0,f,o,v=0,u,h,l,c=0,y,g=0,p,x,d,b,_,w,m,k;var I=e+10;var S=X(i,e+10+a*2);var B=i.subarray(e+10+a*2+2+S);var F=0;h=1+X(i,I+a*2-2);u=h+2*a;n=U(u);l=0;f=0;y=u-h;for(o=0;o>1;w=x+n[y+o+1].y>>1}else{_=n[y+o+1].x;w=n[y+o+1].y;++o}}else{_=p;w=x}H(n[E++],W,_,w,0,0);c=0;l=1+X(i,I+v*2);++v}else{if(!(s&1)){if(c){H(n[E++],O,d+p>>1,b+x>>1,d,b)}d=p;b=x;c=1}else{if(c){H(n[E++],O,p,x,d,b)}else{H(n[E++],N,p,x,0,0)}c=0}}}n.length=Q(n,E,c,g,_,w,m,k,d,b)}else if(a==-1){var C=1;var j=e+10;while(C){var s,R,G=[1,0,0,1,0,0];s=Y(i,j);j+=2;R=Y(i,j);j+=2;if(s&2){if(s&1){G[4]=Y(i,j);j+=2;G[5]=Y(i,j);j+=2}else{G[4]=J(i,j);j+=1;G[5]=J(i,j);j+=1}}if(s&1<<3){G[0]=G[3]=Y(i,j)/16384;j+=2;G[1]=G[2]=0}else if(s&1<<6){G[0]=Y(i,j)/16384;j+=2;G[1]=G[2]=0;G[3]=Y(i,j)/16384;j+=2}else if(s&1<<7){G[0]=Y(i,j)/16384;j+=2;G[1]=Y(i,j)/16384;j+=2;G[2]=Y(i,j)/16384;j+=2;G[3]=Y(i,j)/16384;j+=2}var u=z(G[0]*G[0]+G[1]*G[1]);var h=z(G[2]*G[2]+G[3]*G[3]);var P=or(r,R);if(P.length>0){for(var o=0,L=P.length;or.max_x||!r.started){r.max_x=t}if(i>r.max_y||!r.started){r.max_y=i}if(t=33900){e=32768}else if(i>=1240){e=1131}t+=e;if(t<0||t>=i){return m()}return L(r,t)}function er(r,t){var i=r.fdselect;var e,n,a,s,f,o=-1,v;w(i,0);f=J(i);if(f==0){R(i,t);o=J(i)}else if(f==3){e=G(i,2);n=G(i,2);for(v=0;v=n&&t=s){break}rr(i,0,l[o]);o++;if(o>=s){break}rr(i,l[o],0);o++}break;case 6:if(s<1){return 0}for(;;){if(o>=s){break}rr(i,l[o],0);o++;if(o>=s){break}rr(i,0,l[o]);o++}break;case 31:if(s<4){return 0}for(;;){if(o+3>=s){break}tr(i,l[o],0,l[o+1],l[o+2],s-o==5?l[o+4]:0,l[o+3]);o+=4;if(o+3>=s){break}tr(i,0,l[o],l[o+1],l[o+2],l[o+3],s-o==5?l[o+4]:0);o+=4}break;case 30:if(s<4){return 0}for(;;){if(o+3>=s){break}tr(i,0,l[o],l[o+1],l[o+2],l[o+3],s-o==5?l[o+4]:0);o+=4;if(o+3>=s){break}tr(i,l[o],0,l[o+1],l[o+2],s-o==5?l[o+4]:0,l[o+3]);o+=4}break;case 8:if(s<6){return 0}for(;o+5=s){return 0}rr(i,l[o],l[o+1]);break;case 25:if(s<8){return 0}for(;o+1=s){return 0}tr(i,l[o],l[o+1],l[o+2],l[o+3],l[o+4],l[o+5]);break;case 26:case 27:if(s<4){return 0}p=0;if(s&1){p=l[o];o++}for(;o+3=10){return 0}c[a++]=g;g=ir(v==10?y:r.gsubrs,f);if(g.length==0){return 0}g.cursor=0;h=0;break;case 11:if(a<=0){return 0}g=c[--a];h=0;break;case 14:V(i);return 1;case 12:var x,d,b,_,w,m,k,I,S,B,F,M,T,E,C=J(g);switch(C){case 34:if(s<7){return 0}x=l[0];d=l[1];I=l[2];b=l[3];_=l[4];w=l[5];m=l[6];tr(i,x,0,d,I,b,0);tr(i,_,0,w,-I,m,0);break;case 35:if(s<13){return 0}x=l[0];k=l[1];d=l[2];I=l[3];b=l[4];S=l[5];_=l[6];B=l[7];w=l[8];F=l[9];m=l[10];M=l[11];tr(i,x,k,d,I,b,S);tr(i,_,B,w,F,m,M);break;case 36:if(s<9){return 0}x=l[0];k=l[1];d=l[2];I=l[3];b=l[4];_=l[5];w=l[6];F=l[7];m=l[8];tr(i,x,k,d,I,b,0);tr(i,_,0,w,F,m,-(k+I+F));break;case 37:if(s<11){return 0}x=l[0];k=l[1];d=l[2];I=l[3];b=l[4];S=l[5];_=l[6];B=l[7];w=l[8];F=l[9];m=M=l[10];T=x+d+b+_+w;E=k+I+S+B+F;if(j(T)>j(E)){M=-E}else{m=-T}tr(i,x,k,d,I,b,S);tr(i,_,B,w,F,m,M);break;default:return 0}break;default:if(v!=255&&v!=28&&(v<32||v>254)){return 0}if(v==255){p=G(g,4)/65536}else{R(g,-1);p=P(g)}if(s>=48){return 0}l[s++]=p;h=0;break}if(h){s=0}}return 0}function ar(){return{started:0,first_x:0,first_y:0,x:0,y:0,min_x:0,max_x:0,min_y:0,max_y:0,vertices:[]}}function sr(r,t){var i=ar();if(nr(r,t,i)){return i.vertices}return null}function fr(r,t,i){var e=ar();var n=nr(r,t,e);i.x0=n?e.min_x:0;i.y0=n?e.min_y:0;i.x1=n?e.max_x:0;i.y1=n?e.max_y:0;return n&&e.vertices?e.vertices.length:0}function or(r,t){if(!r.cff.length){return C(r,t)}else{return sr(r,t)}}function vr(r,t){var i=X(r.data,r.hhea+34);if(ti.ey){return}if(si.ey){a+=(a-e)*(i.ey-s)/(s-n);s=i.ey}if(e<=t&&a<=t){r[t]+=i.direction*(s-n)}else if(e>=t+1&&a>=t+1){}else{r[t]+=i.direction*(s-n)*(1-(e-t+(a-t))/2)}}function xr(r,t,i,e,n){var a=n+1;while(e){if(e.fdx==0){var s=e.fx;if(s=0){pr(r,s,e,s,n,s,a);pr(t,s+1,e,s,n,s,a)}else{pr(t,0,e,s,n,s,a)}}}else{var s=e.fx,f=e.fdx,o=s+f,v,u,h,l,c=e.fdy;if(e.sy>n){v=s+f*(e.sy-n);h=e.sy}else{v=s;h=n}if(e.ey=0&&u>=0&&vu){h=a-(h-n);l=a-(l-n);p=h,h=l,l=p;p=u,u=v,v=p;f=-f;c=-c;p=s,s=o,o=p}x=v|0;d=u|0;b=(x+1-s)*c+n;w=e.direction;m=w*(b-h);r[x]+=m*(1-(v-x+(x+1-x))/2);_=w*c;for(g=x+1;gd){pr(r,g,e,s,k,x,B);pr(r,g,e,x,B,d,F);pr(r,g,e,d,F,I,S)}else if(Id){pr(r,g,e,s,k,d,F);pr(r,g,e,d,F,x,B);pr(r,g,e,x,B,I,S)}else if(sx){pr(r,g,e,s,k,x,B);pr(r,g,e,x,B,I,S)}else if(Ix){pr(r,g,e,s,k,x,B);pr(r,g,e,x,B,I,S)}else if(sd){pr(r,g,e,s,k,d,F);pr(r,g,e,d,F,I,S)}else if(Id){pr(r,g,e,s,k,d,F);pr(r,g,e,d,F,I,S)}else{pr(r,g,e,s,k,I,S)}}}}e=e.next}}function dr(r,t,i,e,n,a){e|=0,n|=0,a|=0;var s=null,f;var o=a,v=0,u;var h=new Float32Array(r.w*2+1);var l=h.subarray(r.w);var c=0;t[i].y0=a+r.h+1;while(v>>0;if(w>255){w=255}r.pixels[v*r.stride+u]=w}p=s;while(p){f=p;f.fx+=f.fdx;p=f.next}++o;++v}}function br(r,t){for(var i=1;i0&&e.y012){var e,n,a,s,f,o=i>>1,v=r[t].y0=s){break}e=r[t+a];r[t+a]=r[t+s];r[t+s]=e;++a;--s}if(st[d+g].y:t[d+y].y16){return 1}if(h*h+l*l>f){kr(r,t,i,(t+e)/2,(i+n)/2,v,u,f,o+1);kr(r,v,u,(e+a)/2,(n+s)/2,a,s,f,o+1)}else{r.push({x:a,y:s})}return 1}function Ir(r,t,i,e,n,a,s,f,o,v,u){var h=e-t,l=n-i,c=a-e,y=s-n,g=f-a,p=o-s,x=f-t,d=o-i,b=z(h*h+l*l)+z(c*c+y*y)+z(g*g+p*p),_=z(x*x+d*d),w=b*b-_*_;if(u>16){return}if(w>v){var m=(t+e)/2,k=(i+n)/2,I=(e+a)/2,S=(n+s)/2,B=(a+f)/2,F=(s+o)/2,M=(m+I)/2,T=(k+S)/2,E=(I+B)/2,C=(S+F)/2,j=(M+E)/2,R=(T+C)/2;Ir(r,t,i,m,k,M,T,j,R,v,u+1);Ir(r,j,R,E,C,B,F,f,o,v,u+1)}else{r.push({x:f,y:o})}}function Sr(r,t,i){var e=[],n=t*t,a=-1,s=0,f=0,o=0;for(var v=0,u=r.length;v=0){i[a]=e.length-s}++a;s=e.length;f=r[v].x,o=r[v].y;e.push({x:f,y:o});break;case N:f=r[v].x,o=r[v].y;e.push({x:f,y:o});break;case O:kr(e,f,o,r[v].cx,r[v].cy,r[v].x,r[v].y,n,0);f=r[v].x,o=r[v].y;break;case p:Ir(e,f,o,r[v].cx,r[v].cy,r[v].cx1,r[v].cy1,r[v].x,r[v].y,n,0);f=r[v].x,o=r[v].y;break}}i[a]=e.length-s;return e}function Br(r,t,i,e,n,a,s,f,o,v){f|=0,o|=0;var u=e>n?n:e,h=[],l=Sr(i,t/u,h);if(l){mr(r,l,h,e,n,a,s,f,o,v)}}function Fr(r,t,i,e,n,a,s,f,o,v){var u=or(r,v);var h={};var l=lr(r,v,a,s,f,o);h.pixels=t;h.w=i|0;h.h=e|0;h.stride=n|0;if(h.w&&h.h){Br(h,.35,u,a,s,f,o,l.x0,l.y0,1)}}function Mr(r,t,i,e,n,a,s,f,o,v){Fr(r,t,i,e,n,a,s,f,o,T(r,v))}function Tr(r,t,i){return g(r,t,i)}function Er(r){var t={};if(!g(t,r,0)){return null}var i=hr(t);t.ascent=i.ascent;t.descent=i.descent;t.linegap=i.linegap;return t}function Cr(r,t,i,e){e=e||i;var n=i/r.ascent;var a=e/r.ascent;var s=T(r,t);if(!s&&t){return null}var f=or(r,s);var o=lr(r,s,n,a,0,0);var v=o.x1-o.x0;var u=o.y1-o.y0;var h=null;if(v&&u){var l={pixels:h=new Uint8Array(v*u),w:v,h:u,stride:v};Br(l,.35,f,n,a,0,0,o.x0,o.y0,1)}var c=vr(r,s);return{glyph:s,pixels:h,width:v,height:u,top:-o.y0,left:o.x0,advance:D(c.advanceWidth*n)}}function jr(r,t,i,e){e=e||i;var n=i/r.ascent;var a=e/r.ascent;var s=T(r,t);if(!s&&t){return null}var f=or(r,s);var o=vr(r,s);var v=0;var u=0;var h=[];if(f){for(var l=0,c=f.length;lv)v=g.y;if(g.y= 0 && $k[i] !== Infinity; i--) ; + for (var i = $j - 1; i >= 0 && $k[i] !== Infinity; i--); if (i < 0) { - throw new Error("array-marker-not-found"); + throw new Error('array-marker-not-found'); } a = $k.splice(i + 1, $j - 1 - i); $j = i; @@ -263,41 +287,55 @@ function BWIPP() { a[i] = null; } } - a.b = a; - a.o = 0; + a.b = a; // base array + a.o = 0; // offset into base return a; } + + // dict ctor + // $d() : look for the Infinity marker on the stack function $d() { + // Build the dictionary in the order the keys/values were pushed so enumeration + // occurs in the correct sequence. for (var mark = $j - 1; mark >= 0 && $k[mark] !== Infinity; mark -= 2) { if ($k[mark - 1] === Infinity) { - throw new Error("dict-malformed-stack"); + throw new Error('dict-malformed-stack'); } } if (mark < 0) { - throw "dict-marker-not-found"; + throw 'dict-marker-not-found'; } - var d = new Map(); + var d = new Map; for (var i = mark + 1; i < $j; i += 2) { - var k = $k[i]; + // Unlike javascript, postscript dict keys differentiate between + // numbers and the string representation of a number. + var k = $k[i]; // "key" into the dict entry var t = typeof k; - if (t == "number" || t == "string") { + if (t == 'number' || t == 'string') { d.set(k, $k[i + 1]); } else if (k instanceof Uint8Array) { d.set($z(k), $k[i + 1]); } else { - throw "dict-not-a-valid-key(" + k + ")"; + throw 'dict-not-a-valid-key(' + k + ')'; } } $j = mark; return d; } + + // string ctor + // s(number) : create zero-filled string of number-length + // s(string) : make a copy of the string + // s(uint8[]) : make a copy of the string + // + // Returns a Uint8Array-string. function $s(v) { var t = typeof v; - if (t === "number") { + if (t === 'number') { return new Uint8Array(v); } - if (t !== "string") { - v = "" + v; + if (t !== 'string') { + v = '' + v; } var s = new Uint8Array(v.length); for (var i = 0; i < v.length; i++) { @@ -305,9 +343,11 @@ function BWIPP() { } return s; } + + // ... n c roll function $r(n, c) { if ($j < n) { - throw "roll: --stack-underflow--"; + throw 'roll: --stack-underflow--'; } if (!c) { return; @@ -317,20 +357,27 @@ function BWIPP() { } else { var t = $k.splice($j - n, n - c); } - $k.splice.apply($k, [ $j - t.length, 0 ].concat(t)); + $k.splice.apply($k, [$j - t.length, 0].concat(t)); } + + // Primarily designed to convert uint8-string to string, but will call the + // the toString() method on any value. function $z(s) { if (s instanceof Uint8Array) { - for (var i = 0, l = s.length; i < l && s[i]; i++) ; + // Postscript treats nul-char as end of string, even if string is + // longer. + for (var i = 0, l = s.length; i < l && s[i]; i++); if (i < l) { return String.fromCharCode.apply(null, s.subarray(0, i)); } - return String.fromCharCode.apply(null, s); + return String.fromCharCode.apply(null, s) } - return "" + s; + return '' + s; } + + // Copies source to dest and returns a view of just the copied characters function $strcpy(dst, src) { - if (typeof dst === "string") { + if (typeof dst === 'string') { dst = $s(dst); } if (src instanceof Uint8Array) { @@ -344,6 +391,8 @@ function BWIPP() { } return src.length < dst.length ? dst.subarray(0, src.length) : dst; } + + // Copies source to dest and should (but doesn't) return a view of just the copied elements function $arrcpy(dst, src) { for (var i = 0, l = src.length; i < l; i++) { dst[i] = src[i]; @@ -351,26 +400,38 @@ function BWIPP() { dst.length = src.length; return dst; } + + // cvs operator - convert a value to its string representation + // s : string to store into + // v : any value function $cvs(s, v) { var t = typeof v; - if (t == "number" || t == "boolean" || v === null) { - v = "" + v; - } else if (t !== "string") { - v = "--nostringval--"; + if (t == 'number' || t == 'boolean' || v === null) { + v = '' + v; + } else if (t !== 'string') { + v = '--nostringval--'; } for (var i = 0, l = v.length; i < l; i++) { s[i] = v.charCodeAt(i); } $k[$j++] = i < s.length ? s.subarray(0, i) : s; } + // cvrs operator - convert a number to a radix string + // s : string to store into + // n : number + // r : radix function $cvrs(s, n, r) { return $strcpy(s, (~~n).toString(r).toUpperCase()); } + + // get operator + // s : source + // k : key function $get(s, k) { if (s instanceof Uint8Array) { return s[k]; } - if (typeof s === "string") { + if (typeof s === 'string') { return s.charCodeAt(k); } if (s instanceof Array) { @@ -381,100 +442,137 @@ function BWIPP() { } return s.get(k); } + + // put operator + // d : dest + // k : key + // v : value function $put(d, k, v) { if (d instanceof Uint8Array) { d[k] = v; } else if (d instanceof Array) { d.b[d.o + k] = v; - } else if (typeof d == "object") { + } else if (typeof d == 'object') { if (k instanceof Uint8Array) { d.set($z(k), v); } else { d.set(k, v); } } else { - throw "put-not-writable-" + typeof d; + throw 'put-not-writable-' + (typeof d); } } + + // getinterval operator + // s : src + // o : offset + // l : length function $geti(s, o, l) { if (s instanceof Uint8Array) { return s.subarray(o, o + l); } if (s instanceof Array) { var a = new Array(l); - a.b = s.b; - a.o = s.o + o; + a.b = s.b; // base array + a.o = s.o + o; // offset into base return a; } + // Must be a string return s.substr(o, l); } + + // putinterval operator + // d : dst + // o : offset + // s : src function $puti(d, o, s) { if (d instanceof Uint8Array) { - if (typeof s == "string") { + if (typeof s == 'string') { for (var i = 0, l = s.length; i < l; i++) { d[o + i] = s.charCodeAt(i); } } else { + // When both d and s are the same, we want to copy + // backwards, which works for the general case as well. for (var i = s.length - 1; i >= 0; i--) { d[o + i] = s[i]; } } } else if (d instanceof Array) { + // Operate on the base arrays var darr = d.b; var doff = o + d.o; var sarr = s.b; var soff = s.o; + for (var i = 0, l = s.length; i < l; i++) { darr[doff + i] = sarr[soff + i]; } } else { - throw "putinterval-not-writable-" + typeof d; + throw 'putinterval-not-writable-' + (typeof d); } } + + // type operator function $type(v) { + // null can be mis-typed - get it out of the way if (v === null || v === undefined) { - return "nulltype"; + return 'nulltype'; } var t = typeof v; - if (t == "number") { - return v % 1 ? "realtype" : "integertype"; + if (t == 'number') { + return v % 1 ? 'realtype' : 'integertype'; } - if (t == "boolean") { - return "booleantype"; + if (t == 'boolean') { + return 'booleantype'; } - if (t == "string" || v instanceof Uint8Array) { - return "stringtype"; + if (t == 'string' || v instanceof Uint8Array) { + return 'stringtype'; } - if (t == "function") { - return "operatortype"; + if (t == 'function') { + return 'operatortype'; } if (v instanceof Array) { - return "arraytype"; - } - return "dicttype"; + return 'arraytype'; + } + return 'dicttype'; + // filetype + // fonttype + // gstatetype + // marktype (v === Infinity) + // nametype + // savetype } + + // search operator + // string seek search suffix match prefix true %if-found + // string false %if-not-found function $search(str, seek) { if (!(str instanceof Uint8Array)) { str = $s(str); } var ls = str.length; + + // Virtually all uses of search in BWIPP are for single-characters. + // Optimize for that case. if (seek.length == 1) { var lk = 1; var cd = seek instanceof Uint8Array ? seek[0] : seek.charCodeAt(0); - for (var i = 0; i < ls && str[i] != cd; i++) ; + for (var i = 0; i < ls && str[i] != cd; i++); } else { + // Slow path, if (!(seek instanceof Uint8Array)) { seek = $(seek); } var lk = seek.length; var cd = seek[0]; - for (var i = 0; i < ls && str[i] != cd; i++) ; + for (var i = 0; i < ls && str[i] != cd; i++); while (i < ls) { - for (var j = 1; j < lk && str[i + j] === seek[j]; j++) ; + for (var j = 1; j < lk && str[i + j] === seek[j]; j++); if (j === lk) { break; } - for (i++; i < ls && str[i] != cd; i++) ; + for (i++; i < ls && str[i] != cd; i++); } } if (i < ls) { @@ -487,6 +585,9 @@ function BWIPP() { $k[$j++] = false; } } + + // The callback is omitted when forall is being used just to push onto the + // stack. The callback normally returns undefined. A return of true means break. function $forall(o, cb) { if (o instanceof Uint8Array) { for (var i = 0, l = o.length; i < l; i++) { @@ -497,11 +598,12 @@ function BWIPP() { if (cb && cb()) break; } } else if (o instanceof Array) { + // The array may be a view. for (var a = o.b, i = o.o, l = o.o + o.length; i < l; i++) { $k[$j++] = a[i]; if (cb && cb()) break; } - } else if (typeof o === "string") { + } else if (typeof o === 'string') { for (var i = 0, l = o.length; i < l; i++) { $k[$j++] = o.charCodeAt(i); if (cb && cb()) break; @@ -521,26 +623,33 @@ function BWIPP() { } } } + function $cleartomark() { - while ($j > 0 && $k[--$j] !== Infinity) ; + while ($j > 0 && $k[--$j] !== Infinity); } + function $counttomark() { - for (var i = $j - 1; i >= 0 && $k[i] !== Infinity; i--) ; + for (var i = $j - 1; i >= 0 && $k[i] !== Infinity; i--); return $j - i - 1; } + function $aload(a) { for (var i = 0, l = a.length, b = a.b, o = a.o; i < l; i++) { $k[$j++] = b[o + i]; } + // This push has been optimized out. See $.aload() in psc.js. + //$k[$j++] = a; } + function $astore(a) { for (var i = 0, l = a.length, b = a.b, o = a.o + l - 1; i < l; i++) { b[o - i] = $k[--$j]; } $k[$j++] = a; } + function $eq(a, b) { - if (typeof a === "string" && typeof b === "string") { + if (typeof a === 'string' && typeof b === 'string') { return a == b; } if (a instanceof Uint8Array && b instanceof Uint8Array) { @@ -554,7 +663,8 @@ function BWIPP() { } return true; } - if (a instanceof Uint8Array && typeof b === "string" || b instanceof Uint8Array && typeof a === "string") { + if (a instanceof Uint8Array && typeof b === 'string' || + b instanceof Uint8Array && typeof a === 'string') { if (a instanceof Uint8Array) { a = $z(a); } else { @@ -564,9 +674,11 @@ function BWIPP() { } return a == b; } + function $ne(a, b) { return !$eq(a, b); } + function $lt(a, b) { if (a instanceof Uint8Array) { a = $z(a); @@ -576,6 +688,7 @@ function BWIPP() { } return a < b; } + function $le(a, b) { if (a instanceof Uint8Array) { a = $z(a); @@ -585,6 +698,7 @@ function BWIPP() { } return a <= b; } + function $gt(a, b) { if (a instanceof Uint8Array) { a = $z(a); @@ -594,6 +708,7 @@ function BWIPP() { } return a > b; } + function $ge(a, b) { if (a instanceof Uint8Array) { a = $z(a); @@ -603,32530 +718,34310 @@ function BWIPP() { } return a >= b; } - function $an(a, b) { - return typeof a === "boolean" ? a && b : a & b; + + function $an(a, b) { // and + return (typeof a === 'boolean') ? a && b : a & b; } - function $or(a, b) { - return typeof a === "boolean" ? a || b : a | b; + + function $or(a, b) { // or + return (typeof a === 'boolean') ? a || b : a | b; } - function $xo(a, b) { - return typeof a === "boolean" ? !a && b || a && !b : a ^ b; + + function $xo(a, b) { // xor + return (typeof a === 'boolean') ? !a && b || a && !b : a ^ b; } + function $nt(a) { - return typeof a == "boolean" ? !a : ~a; + return typeof a == 'boolean' ? !a : ~a; } - var $f = function(fa) { + // emulate single-precision floating-point (pseudo-polyfill for Math.fround) + var $f = (function(fa) { return function(v) { return Number.isInteger(v) ? v : (fa[0] = v, fa[0]); }; - }(new Float32Array(1)); + })(new Float32Array(1)); + + // DEBUG-BEGIN function $stack() { - console.log("[[["); + console.log('[[['); for (var i = $j - 1; i >= 0; i--) { console.log(tostring($k[i])); } - console.log("]]]"); + console.log(']]]'); + function tostring(v) { + // null can be mis-typed - get it out of the way if (v === null) { - return "null"; + return 'null'; } else if (v === undefined) { - return ""; + return ''; } else if (v instanceof Array) { - var s = "["; + var s = '['; for (var j = v.o, a = v.b, l = v.length + v.o; j < l; j++) { - s += (j == v.o ? "" : ",") + tostring(a[j]); + s += (j == v.o ? '' : ',') + tostring(a[j]); } - return s + "]"; + return s + ']'; } else if (v instanceof Uint8Array) { - return "(" + $z[v] + ")"; - } else if (typeof v === "object") { - var s = "<<"; + return '(' + $z[v] + ')'; + } else if (typeof v === 'object') { + var s = '<<'; for (var id in v) { - s += (s.length == 7 ? "" : ",") + id + ":" + tostring(v[id]); + s += (s.length == 7 ? '' : ',') + id + ':' + tostring(v[id]); } - return s + ">>"; - } else if (typeof v === "string") { + return s + '>>'; + } else if (typeof v === 'string') { return '"' + v + '"'; } else { - return "" + v; + return '' + v; } } } + // DEBUG-END $0.raiseerror = function() { - $put($0.$error, "errorinfo", $k[--$j]); - $put($0.$error, "errorname", $k[--$j]); - $put($0.$error, "command", null); - $put($0.$error, "newerror", true); - throw new Error($z($0.$error.get("errorname")) + ": " + $z($0.$error.get("errorinfo"))); + $put($0.$error, 'errorinfo', $k[--$j]); //#55 + $put($0.$error, 'errorname', $k[--$j]); //#56 + $put($0.$error, 'command', null); //#57 + $put($0.$error, 'newerror', true); //#58 + throw new Error($z($0.$error.get("errorname")) + ": " + $z($0.$error.get("errorinfo"))); //#59 }; $0.parseinput = function() { - var $1 = {}; - $1.fncvals = $k[--$j]; - $1.barcode = $k[--$j]; - var _2 = "parse"; - $1[_2] = $get($1.fncvals, _2); - delete $1.fncvals[_2]; - var _6 = "parsefnc"; - $1[_6] = $get($1.fncvals, _6); - delete $1.fncvals[_6]; - var _A = "parseonly"; - var _C = $get($1.fncvals, _A) !== undefined; - $1[_A] = _C; - delete $1.fncvals[_A]; - var _E = "eci"; - var _G = $get($1.fncvals, _E) !== undefined; - $1[_E] = _G; - delete $1.fncvals[_E]; - $1.msg = $a($1.barcode.length); - $1.j = 0; - $k[$j++] = $1.barcode; - for (;;) { - $search($k[--$j], "^"); - var _M = $k[--$j]; - var _N = $k[--$j]; - $k[$j++] = _M; - $k[$j++] = _N.length; - $k[$j++] = $1.msg; - $k[$j++] = $1.j; - $k[$j++] = Infinity; - var _R = _N; - $forall(_R); - var _S = $a(); - var _T = $k[--$j]; - $puti($k[--$j], _T, _S); - $1.j = $f($k[--$j] + $1.j); - if ($k[--$j]) { - $j--; - for (var _Y = 0, _Z = 1; _Y < _Z; _Y++) { - if ($an($nt($1.parse), $nt($1.parsefnc))) { - $put($1.msg, $1.j, 94); - $1.j = $f($1.j + 1); - break; - } - $put($1.msg, $1.j, 94); - $1.j = $f($1.j + 1); - if ($1.parse) { - var _j = $k[--$j]; - $k[$j++] = _j; - if (_j.length >= 3) { - var _k = $k[--$j]; - var _l = $geti(_k, 0, 3); - $k[$j++] = _k; - $k[$j++] = true; - for (var _m = 0, _n = _l.length; _m < _n; _m++) { - var _o = $get(_l, _m); - if (_o < 48 || _o > 57) { - $j--; - $k[$j++] = false; - } - } - if ($k[--$j]) { - var _q = $k[--$j]; - var _s = ~~$z($geti(_q, 0, 3)); - $k[$j++] = _q; - $k[$j++] = _s; - if (_s > 255) { - $j -= 2; - $k[$j++] = "bwipp.invalidOrdinal"; - $k[$j++] = "Ordinal must be 000 to 255"; - $0.raiseerror(); - } - $1.j = $f($1.j - 1); - $put($1.msg, $1.j, $k[--$j]); - $1.j = $f($1.j + 1); - var _y = $k[--$j]; - $k[$j++] = $geti(_y, 3, _y.length - 3); - } - } - } - if ($or($1.parseonly, $nt($1.parsefnc)) || $get($1.msg, $f($1.j - 1)) != 94) { - break; - } - $1.j = $f($1.j - 1); - var _16 = $k[--$j]; - $k[$j++] = _16; - if (_16.length < 3) { - $j--; - $k[$j++] = "bwipp.truncatedFNC"; - $k[$j++] = "Function character truncated"; - $0.raiseerror(); - } - var _17 = $k[--$j]; - $k[$j++] = _17; - if ($get(_17, 0) == 94) { - $put($1.msg, $1.j, 94); - $1.j = $f($1.j + 1); - var _1C = $k[--$j]; - $k[$j++] = $geti(_1C, 1, _1C.length - 1); - break; - } - var _1E = $k[--$j]; - $k[$j++] = _1E; - if ($eq($geti(_1E, 0, 3), "ECI") && $1.eci) { - var _1H = $k[--$j]; - $k[$j++] = _1H; - if (_1H.length < 9) { - $j--; - $k[$j++] = "bwipp.truncatedECI"; - $k[$j++] = "ECI truncated"; - $0.raiseerror(); - } - var _1I = $k[--$j]; - var _1J = $geti(_1I, 3, 6); - $k[$j++] = _1I; - $k[$j++] = _1J; - for (var _1K = 0, _1L = _1J.length; _1K < _1L; _1K++) { - var _1M = $get(_1J, _1K); - if (_1M < 48 || _1M > 57) { - $j -= 2; - $k[$j++] = "bwipp.invalidECI"; - $k[$j++] = "ECI must be 000000 to 999999"; - $0.raiseerror(); - } - } - var _1N = $k[--$j]; - $k[$j++] = 0; - $forall(_1N, function() { - var _1O = $k[--$j]; - var _1P = $k[--$j]; - $k[$j++] = $f(_1P - $f(_1O - 48)) * 10; - }); - $put($1.msg, $1.j, ~~($k[--$j] / 10) - 1e6); - $1.j = $f($1.j + 1); - var _1U = $k[--$j]; - $k[$j++] = $geti(_1U, 9, _1U.length - 9); - break; - } - var _1W = $k[--$j]; - $k[$j++] = _1W; - if (_1W.length < 4) { - $j--; - $k[$j++] = "bwipp.truncatedFNC"; - $k[$j++] = "Function character truncated"; - $0.raiseerror(); - } - var _1X = $k[--$j]; - var _1Y = $geti(_1X, 0, 4); - var _1a = $get($1.fncvals, _1Y) !== undefined; - $k[$j++] = _1X; - $k[$j++] = _1Y; - if (!_1a) { - var _1b = $k[--$j]; - var _1c = $s(_1b.length + 28); - $puti(_1c, 28, _1b); - $puti(_1c, 0, "Unknown function character: "); - var _1d = $k[--$j]; - $k[$j++] = _1c; - $k[$j++] = _1d; - $j--; - var _1e = $k[--$j]; - $k[$j++] = "bwipp.unknownFNC"; - $k[$j++] = _1e; - $0.raiseerror(); - } - $put($1.msg, $1.j, $get($1.fncvals, $k[--$j])); - $1.j = $f($1.j + 1); - var _1l = $k[--$j]; - $k[$j++] = $geti(_1l, 4, _1l.length - 4); - break; - } - } else { - break; - } - } - if ($nt($1.parseonly)) { - $k[$j++] = $geti($1.msg, 0, $1.j); - } else { - $k[$j++] = $s($1.j); - for (var _1v = 0, _1u = $f($1.j - 1); _1v <= _1u; _1v += 1) { - var _1w = $k[--$j]; - $put(_1w, _1v, $get($1.msg, _1v)); - $k[$j++] = _1w; - } - } + var $1 = {}; //#80 + $1.fncvals = $k[--$j]; //#82 + $1.barcode = $k[--$j]; //#83 + var _2 = 'parse'; //#85 + $1[_2] = $get($1.fncvals, _2); //#85 + delete $1.fncvals[_2]; //#85 + var _6 = 'parsefnc'; //#86 + $1[_6] = $get($1.fncvals, _6); //#86 + delete $1.fncvals[_6]; //#86 + var _A = 'parseonly'; //#87 + var _C = $get($1.fncvals, _A) !== undefined; //#87 + $1[_A] = _C; //#87 + delete $1.fncvals[_A]; //#87 + var _E = 'eci'; //#88 + var _G = $get($1.fncvals, _E) !== undefined; //#88 + $1[_E] = _G; //#88 + delete $1.fncvals[_E]; //#88 + $1.msg = $a($1.barcode.length); //#90 + $1.j = 0; //#91 + $k[$j++] = $1.barcode; //#186 + for (;;) { //#186 + $search($k[--$j], "^"); //#93 + var _M = $k[--$j]; //#93 + var _N = $k[--$j]; //#93 + $k[$j++] = _M; //#96 + $k[$j++] = _N.length; //#96 + $k[$j++] = $1.msg; //#96 + $k[$j++] = $1.j; //#96 + $k[$j++] = _N; //#96 + $k[$j++] = Infinity; //#96 + var _Q = $k[--$j]; //#96 + var _R = $k[--$j]; //#96 + $k[$j++] = _Q; //#96 + $forall(_R); //#96 + var _S = $a(); //#96 + var _T = $k[--$j]; //#96 + $puti($k[--$j], _T, _S); //#96 + $1.j = $f($k[--$j] + $1.j); //#97 + if ($k[--$j]) { //#184 + $j--; //#99 + for (var _Y = 0, _Z = 1; _Y < _Z; _Y++) { //#182 + if ($an($nt($1.parse), $nt($1.parsefnc))) { //#106 + $put($1.msg, $1.j, 94); //#103 + $1.j = $f($1.j + 1); //#104 + break; //#105 + } //#105 + $put($1.msg, $1.j, 94); //#109 + $1.j = $f($1.j + 1); //#110 + if ($1.parse) { //#129 + var _j = $k[--$j]; //#114 + $k[$j++] = _j; //#128 + if (_j.length >= 3) { //#128 + var _k = $k[--$j]; //#115 + var _l = $geti(_k, 0, 3); //#115 + $k[$j++] = _k; //#117 + $k[$j++] = true; //#117 + for (var _m = 0, _n = _l.length; _m < _n; _m++) { //#117 + var _o = $get(_l, _m); //#117 + if ((_o < 48) || (_o > 57)) { //#116 + $j--; //#116 + $k[$j++] = false; //#116 + } //#116 + } //#116 + if ($k[--$j]) { //#127 + var _q = $k[--$j]; //#119 + var _s = ~~$z($geti(_q, 0, 3)); //#119 + $k[$j++] = _q; //#122 + $k[$j++] = _s; //#122 + if (_s > 255) { //#122 + $j -= 2; //#120 + $k[$j++] = 'bwipp.invalidOrdinal'; //#121 + $k[$j++] = "Ordinal must be 000 to 255"; //#121 + $0.raiseerror(); //#121 + } //#121 + $1.j = $f($1.j - 1); //#123 + $put($1.msg, $1.j, $k[--$j]); //#124 + $1.j = $f($1.j + 1); //#125 + var _y = $k[--$j]; //#126 + $k[$j++] = $geti(_y, 3, _y.length - 3); //#126 + } //#126 + } //#126 + } //#126 + if (($or($1.parseonly, $nt($1.parsefnc))) || ($get($1.msg, $f($1.j - 1)) != 94)) { //#134 + break; //#134 + } //#134 + $1.j = $f($1.j - 1); //#137 + var _16 = $k[--$j]; //#138 + $k[$j++] = _16; //#141 + if (_16.length < 3) { //#141 + $j--; //#139 + $k[$j++] = 'bwipp.truncatedFNC'; //#140 + $k[$j++] = "Function character truncated"; //#140 + $0.raiseerror(); //#140 + } //#140 + var _17 = $k[--$j]; //#142 + $k[$j++] = _17; //#147 + if ($get(_17, 0) == 94) { //#147 + $put($1.msg, $1.j, 94); //#143 + $1.j = $f($1.j + 1); //#144 + var _1C = $k[--$j]; //#145 + $k[$j++] = $geti(_1C, 1, _1C.length - 1); //#146 + break; //#146 + } //#146 + var _1E = $k[--$j]; //#148 + $k[$j++] = _1E; //#165 + if ($eq($geti(_1E, 0, 3), "ECI") && $1.eci) { //#165 + var _1H = $k[--$j]; //#149 + $k[$j++] = _1H; //#152 + if (_1H.length < 9) { //#152 + $j--; //#150 + $k[$j++] = 'bwipp.truncatedECI'; //#151 + $k[$j++] = "ECI truncated"; //#151 + $0.raiseerror(); //#151 + } //#151 + var _1I = $k[--$j]; //#153 + var _1J = $geti(_1I, 3, 6); //#153 + $k[$j++] = _1I; //#159 + $k[$j++] = _1J; //#159 + for (var _1K = 0, _1L = _1J.length; _1K < _1L; _1K++) { //#159 + var _1M = $get(_1J, _1K); //#159 + if ((_1M < 48) || (_1M > 57)) { //#158 + $j -= 2; //#156 + $k[$j++] = 'bwipp.invalidECI'; //#157 + $k[$j++] = "ECI must be 000000 to 999999"; //#157 + $0.raiseerror(); //#157 + } //#157 + } //#157 + var _1N = $k[--$j]; //#160 + $k[$j++] = 0; //#160 + $forall(_1N, function() { //#160 + var _1O = $k[--$j]; //#160 + var _1P = $k[--$j]; //#160 + $k[$j++] = ($f(_1P - $f(_1O - 48))) * 10; //#160 + }); //#160 + $put($1.msg, $1.j, (~~($k[--$j] / 10)) - 1000000); //#161 + $1.j = $f($1.j + 1); //#162 + var _1U = $k[--$j]; //#163 + $k[$j++] = $geti(_1U, 9, _1U.length - 9); //#164 + break; //#164 + } //#164 + var _1W = $k[--$j]; //#166 + $k[$j++] = _1W; //#169 + if (_1W.length < 4) { //#169 + $j--; //#167 + $k[$j++] = 'bwipp.truncatedFNC'; //#168 + $k[$j++] = "Function character truncated"; //#168 + $0.raiseerror(); //#168 + } //#168 + var _1X = $k[--$j]; //#170 + var _1Y = $geti(_1X, 0, 4); //#170 + var _1a = $get($1.fncvals, _1Y) !== undefined; //#170 + $k[$j++] = _1X; //#175 + $k[$j++] = _1Y; //#175 + if (!_1a) { //#175 + var _1b = $k[--$j]; //#171 + var _1c = $s(_1b.length + 28); //#171 + $puti(_1c, 28, _1b); //#171 + $puti(_1c, 0, "Unknown function character: "); //#172 + var _1d = $k[--$j]; //#173 + $k[$j++] = _1c; //#173 + $k[$j++] = _1d; //#173 + $j--; //#173 + var _1e = $k[--$j]; //#174 + $k[$j++] = 'bwipp.unknownFNC'; //#174 + $k[$j++] = _1e; //#174 + $0.raiseerror(); //#174 + } //#174 + $put($1.msg, $1.j, $get($1.fncvals, $k[--$j])); //#177 + $1.j = $f($1.j + 1); //#178 + var _1l = $k[--$j]; //#179 + $k[$j++] = $geti(_1l, 4, _1l.length - 4); //#180 + break; //#180 + } //#180 + } else { //#184 + break; //#184 + } //#184 + } //#184 + if ($nt($1.parseonly)) { //#192 + $k[$j++] = $geti($1.msg, 0, $1.j); //#189 + } else { //#192 + $k[$j++] = $s($1.j); //#192 + for (var _1v = 0, _1u = $f($1.j - 1); _1v <= _1u; _1v += 1) { //#192 + var _1w = $k[--$j]; //#192 + $put(_1w, _1v, $get($1.msg, _1v)); //#192 + $k[$j++] = _1w; //#192 + } //#192 + } //#192 }; $0.gs1lint = function() { - var $1 = {}; - $1.vals = $k[--$j]; - $1.ais = $k[--$j]; + var $1 = {}; //#217 + $1.vals = $k[--$j]; //#219 + $1.ais = $k[--$j]; //#220 $1.lintnumeric = function() { - var _2 = $k[--$j]; - $k[$j++] = true; - $forall(_2, function() { - var _3 = $k[--$j]; - if (_3 < 48 || _3 > 57) { - $j--; - $k[$j++] = false; - return true; - } - }); - if ($nt($k[--$j])) { - $j--; - $k[$j++] = "bwipp.GS1notNumeric"; - $k[$j++] = "Not numeric"; - $k[$j++] = false; - return true; - } - }; + var _2 = $k[--$j]; //#223 + $k[$j++] = true; //#225 + $forall(_2, function() { //#225 + var _3 = $k[--$j]; //#224 + if ((_3 < 48) || (_3 > 57)) { //#224 + $j--; //#224 + $k[$j++] = false; //#224 + return true; //#224 + } //#224 + }); //#224 + if ($nt($k[--$j])) { //#226 + $j--; //#226 + $k[$j++] = 'bwipp.GS1notNumeric'; //#226 + $k[$j++] = "Not numeric"; //#226 + $k[$j++] = false; //#226 + return true; //#226 + } //#226 + }; //#227 $1.lintcset82 = function() { - var _5 = $k[--$j]; - $k[$j++] = true; - $forall(_5, function() { - var _6 = $s(1); - $put(_6, 0, $k[--$j]); - $search("!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", _6); - if ($nt($k[--$j])) { - $j -= 2; - $k[$j++] = false; - return true; - } - $j -= 3; - }); - if ($nt($k[--$j])) { - $j--; - $k[$j++] = "bwipp.GS1badCSET82character"; - $k[$j++] = "Invalid CSET 82 character"; - $k[$j++] = false; - return true; - } - }; + var _5 = $k[--$j]; //#230 + $k[$j++] = true; //#235 + $forall(_5, function() { //#235 + var _6 = $s(1); //#231 + $put(_6, 0, $k[--$j]); //#231 + $search("!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", _6); //#233 + if ($nt($k[--$j])) { //#233 + $j -= 2; //#233 + $k[$j++] = false; //#233 + return true; //#233 + } //#233 + $j -= 3; //#234 + }); //#234 + if ($nt($k[--$j])) { //#236 + $j--; //#236 + $k[$j++] = 'bwipp.GS1badCSET82character'; //#236 + $k[$j++] = "Invalid CSET 82 character"; //#236 + $k[$j++] = false; //#236 + return true; //#236 + } //#236 + }; //#237 $1.lintcset39 = function() { - var _A = $k[--$j]; - $k[$j++] = true; - $forall(_A, function() { - var _B = $s(1); - $put(_B, 0, $k[--$j]); - $search("#-/0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", _B); - if ($nt($k[--$j])) { - $j -= 2; - $k[$j++] = false; - return true; - } - $j -= 3; - }); - if ($nt($k[--$j])) { - $j--; - $k[$j++] = "bwipp.GS1badCSET39character"; - $k[$j++] = "Invalid CSET 39 character"; - $k[$j++] = false; - return true; - } - }; + var _A = $k[--$j]; //#240 + $k[$j++] = true; //#245 + $forall(_A, function() { //#245 + var _B = $s(1); //#241 + $put(_B, 0, $k[--$j]); //#241 + $search("#-/0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", _B); //#243 + if ($nt($k[--$j])) { //#243 + $j -= 2; //#243 + $k[$j++] = false; //#243 + return true; //#243 + } //#243 + $j -= 3; //#244 + }); //#244 + if ($nt($k[--$j])) { //#246 + $j--; //#246 + $k[$j++] = 'bwipp.GS1badCSET39character'; //#246 + $k[$j++] = "Invalid CSET 39 character"; //#246 + $k[$j++] = false; //#246 + return true; //#246 + } //#246 + }; //#247 $1.lintkey = function() { - var _F = $k[--$j]; - $k[$j++] = _F; - if (_F.length < 2) { - $j -= 2; - $k[$j++] = "bwipp.GS1keyTooShort"; - $k[$j++] = "Key is too short"; - $k[$j++] = false; - return true; - } - var _G = $k[--$j]; - var _H = $get(_G, 0); - var _I = $get(_G, 1); - if (_H < 48 || _H > 57 || (_I < 48 || _I > 57)) { - $j--; - $k[$j++] = "bwipp.GS1badGCP"; - $k[$j++] = "Non-numeric company prefix"; - $k[$j++] = false; - return true; - } - }; + var _F = $k[--$j]; //#250 + $k[$j++] = _F; //#250 + if (_F.length < 2) { //#250 + $j -= 2; //#250 + $k[$j++] = 'bwipp.GS1keyTooShort'; //#250 + $k[$j++] = "Key is too short"; //#250 + $k[$j++] = false; //#250 + return true; //#250 + } //#250 + var _G = $k[--$j]; //#251 + var _H = $get(_G, 0); //#251 + var _I = $get(_G, 1); //#252 + if (((_H < 48) || (_H > 57)) || ((_I < 48) || (_I > 57))) { //#254 + $j--; //#253 + $k[$j++] = 'bwipp.GS1badGCP'; //#253 + $k[$j++] = "Non-numeric company prefix"; //#253 + $k[$j++] = false; //#253 + return true; //#253 + } //#253 + }; //#255 $1.lintimporteridx = function() { - $search("-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", $k[--$j]); - if ($nt($k[--$j])) { - $j -= 2; - $k[$j++] = "bwipp.GS1badImporterIndex"; - $k[$j++] = "Invalid importer index"; - $k[$j++] = false; - return true; - } - $j -= 3; - }; + $search("-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", $k[--$j]); //#259 + if ($nt($k[--$j])) { //#259 + $j -= 2; //#259 + $k[$j++] = 'bwipp.GS1badImporterIndex'; //#259 + $k[$j++] = "Invalid importer index"; //#259 + $k[$j++] = false; //#259 + return true; //#259 + } //#259 + $j -= 3; //#260 + }; //#261 $1.lintcsum = function() { - $k[$j++] = Infinity; - var _L = $k[--$j]; - var _M = $k[--$j]; - var _N = _M.length % 2 == 0 ? 3 : 1; - $k[$j++] = _L; - $k[$j++] = _N; - $forall(_M, function() { - var _O = $k[--$j]; - var _P = $k[--$j]; - $k[$j++] = $f(_O - 48) * _P; - $k[$j++] = $f(4 - _P); - }); - $j--; - var _Q = $counttomark() + 1; - $k[$j++] = 0; - for (var _R = 0, _S = _Q - 1; _R < _S; _R++) { - var _T = $k[--$j]; - var _U = $k[--$j]; - $k[$j++] = $f(_U + _T); - } - var _V = $k[--$j]; - var _W = $k[--$j]; - $k[$j++] = _V; - $k[$j++] = _W; - $j--; - if ($k[--$j] % 10 != 0) { - $j--; - $k[$j++] = "bwipp.GS1badChecksum"; - $k[$j++] = "Bad checksum"; - $k[$j++] = false; - return true; - } - }; - $k[$j++] = Infinity; - $k[$j++] = 0; - for (var _Y = 0, _Z = "!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".length; _Y < _Z; _Y++) { - var _b = $k[--$j]; - $k[$j++] = $get("!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", _Y); - $k[$j++] = _b; - $k[$j++] = $f(_b + 1); - } - $j--; - $1.cset82 = $d(); - $k[$j++] = Infinity; - $k[$j++] = 0; - for (var _d = 0, _e = "23456789ABCDEFGHJKLMNPQRSTUVWXYZ".length; _d < _e; _d++) { - var _g = $k[--$j]; - $k[$j++] = $get("23456789ABCDEFGHJKLMNPQRSTUVWXYZ", _d); - $k[$j++] = _g; - $k[$j++] = $f(_g + 1); - } - $j--; - $1.cset32 = $d(); + $k[$j++] = Infinity; //#264 + var _L = $k[--$j]; //#264 + var _M = $k[--$j]; //#264 + var _N = ((_M.length % 2) == 0) ? 3 : 1; //#265 + $k[$j++] = _L; //#266 + $k[$j++] = _N; //#266 + $forall(_M, function() { //#266 + var _O = $k[--$j]; //#266 + var _P = $k[--$j]; //#266 + $k[$j++] = $f(_O - 48) * _P; //#266 + $k[$j++] = $f(4 - _P); //#266 + }); //#266 + $j--; //#266 + var _Q = $counttomark() + 1; //#267 + $k[$j++] = 0; //#267 + for (var _R = 0, _S = _Q - 1; _R < _S; _R++) { //#267 + var _T = $k[--$j]; //#267 + var _U = $k[--$j]; //#267 + $k[$j++] = $f(_U + _T); //#267 + } //#267 + var _V = $k[--$j]; //#267 + var _W = $k[--$j]; //#267 + $k[$j++] = _V; //#267 + $k[$j++] = _W; //#267 + $j--; //#267 + if (($k[--$j] % 10) != 0) { //#268 + $j--; //#268 + $k[$j++] = 'bwipp.GS1badChecksum'; //#268 + $k[$j++] = "Bad checksum"; //#268 + $k[$j++] = false; //#268 + return true; //#268 + } //#268 + }; //#269 + $k[$j++] = Infinity; //#273 + $k[$j++] = 0; //#273 + for (var _Y = 0, _Z = "!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".length; _Y < _Z; _Y++) { //#273 + var _b = $k[--$j]; //#273 + $k[$j++] = $get("!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", _Y); //#273 + $k[$j++] = _b; //#273 + $k[$j++] = $f(_b + 1); //#273 + } //#273 + $j--; //#273 + $1.cset82 = $d(); //#274 + $k[$j++] = Infinity; //#278 + $k[$j++] = 0; //#278 + for (var _d = 0, _e = "23456789ABCDEFGHJKLMNPQRSTUVWXYZ".length; _d < _e; _d++) { //#278 + var _g = $k[--$j]; //#278 + $k[$j++] = $get("23456789ABCDEFGHJKLMNPQRSTUVWXYZ", _d); //#278 + $k[$j++] = _g; //#278 + $k[$j++] = $f(_g + 1); //#278 + } //#278 + $j--; //#278 + $1.cset32 = $d(); //#279 $1.lintcsumalpha = function() { - var _i = $k[--$j]; - $k[$j++] = _i; - if (_i.length < 2) { - $j -= 2; - $k[$j++] = "bwipp.GS1alphaTooShort"; - $k[$j++] = "Alphanumeric string is too short to check"; - $k[$j++] = false; - return true; - } - var _j = $k[--$j]; - $k[$j++] = _j; - $k[$j++] = _j.length - 2; - $k[$j++] = Infinity; - var _m = $geti(_j, 0, _j.length - 2); - $forall(_m, function() { - var _n = $k[--$j]; - var _p = $get($1.cset82, _n) !== undefined; - $k[$j++] = _n; - if (_p) { - var _s = $get($1.cset82, $k[--$j]); - $k[$j++] = _s; - } else { - $k[$j++] = -1; - return true; - } - }); - var _t = $k[--$j]; - $k[$j++] = _t; - if (_t == -1) { - $cleartomark(); - $j -= 3; - $k[$j++] = "bwipp.GS1UnknownCSET82Character"; - $k[$j++] = "Unknown CSET 82 character"; - $k[$j++] = false; - return true; - } - $astore($a($counttomark())); - var _w = $k[--$j]; - var _x = $k[--$j]; - $k[$j++] = _w; - $k[$j++] = _x; - $j--; - var _y = $k[--$j]; - var _z = $k[--$j]; - var _11 = $geti($k[--$j], _z, 2); - $k[$j++] = _y; - $k[$j++] = Infinity; - var _13 = _11; - $forall(_13, function() { - var _14 = $k[--$j]; - var _16 = $get($1.cset32, _14) !== undefined; - $k[$j++] = _14; - if (_16) { - var _19 = $get($1.cset32, $k[--$j]); - $k[$j++] = _19; - } else { - $k[$j++] = -1; - return true; - } - }); - var _1A = $k[--$j]; - $k[$j++] = _1A; - if (_1A == -1) { - $cleartomark(); - $j -= 2; - $k[$j++] = "bwipp.GS1UnknownCSET32Character"; - $k[$j++] = "Unknown CSET 32 character"; - $k[$j++] = false; - return true; - } - $astore($a($counttomark())); - var _1D = $k[--$j]; - var _1E = $k[--$j]; - $k[$j++] = _1D; - $k[$j++] = _1E; - $j--; - var _1F = $k[--$j]; - var _1I = $k[--$j]; - var _1J = $a([ 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83 ]); - var _1K = _1I.length; - $k[$j++] = $f(($get(_1F, 0) << 5) + $get(_1F, 1)); - $k[$j++] = _1I; - $k[$j++] = _1J; - $k[$j++] = _1K; - if (_1K > _1J.length) { - $j -= 5; - $k[$j++] = "bwipp.GS1alphaTooLong"; - $k[$j++] = "Alphanumeric string is too long to check"; - $k[$j++] = false; - return true; - } - var _1L = $k[--$j]; - var _1N = $geti($k[--$j], 0, _1L); - for (var _1O = 0, _1P = _1N.length; _1O < _1P; _1O++) { - var _1R = $k[--$j]; - $k[$j++] = $get(_1N, _1O); - $k[$j++] = _1R; - } - var _1S = $k[--$j]; - $k[$j++] = 0; - $forall(_1S, function() { - var _1T = $k[--$j]; - var _1U = $k[--$j]; - var _1V = $k[--$j]; - $k[$j++] = $f(_1U + _1V * _1T); - }); - var _1W = $k[--$j]; - if ($k[--$j] != _1W % 1021) { - $j--; - $k[$j++] = "bwipp.GS1badAlphaCheckCharacters"; - $k[$j++] = "Bad alphanumeric check characters"; - $k[$j++] = false; - return true; - } - }; - $k[$j++] = Infinity; - var _1Y = $a([ "004", "008", "010", "012", "016", "020", "024", "028", "031", "032", "036", "040", "044", "048", "050", "051", "052", "056", "060", "064", "068", "070", "072", "074", "076", "084", "086", "090", "092", "096", "100", "104", "108", "112", "116", "120", "124", "132", "136", "140", "144", "148", "152", "156", "158", "162", "166", "170", "174", "175", "178", "180", "184", "188", "191", "192", "196", "203", "204", "208", "212", "214", "218", "222", "226", "231", "232", "233", "234", "238", "239", "242", "246", "248", "250", "254", "258", "260", "262", "266", "268", "270", "275", "276", "288", "292", "296", "300", "304", "308", "312", "316", "320", "324", "328", "332", "334", "336", "340", "344", "348", "352", "356", "360", "364", "368", "372", "376", "380", "384", "388", "392", "398", "400", "404", "408", "410", "414", "417", "418", "422", "426", "428", "430", "434", "438", "440", "442", "446", "450", "454", "458", "462", "466", "470", "474", "478", "480", "484", "492", "496", "498", "499", "500", "504", "508", "512", "516", "520", "524", "528", "531", "533", "534", "535", "540", "548", "554", "558", "562", "566", "570", "574", "578", "580", "581", "583", "584", "585", "586", "591", "598", "600", "604", "608", "612", "616", "620", "624", "626", "630", "634", "638", "642", "643", "646", "652", "654", "659", "660", "662", "663", "666", "670", "674", "678", "682", "686", "688", "690", "694", "702", "703", "704", "705", "706", "710", "716", "724", "728", "729", "732", "740", "744", "748", "752", "756", "760", "762", "764", "768", "772", "776", "780", "784", "788", "792", "795", "796", "798", "800", "804", "807", "818", "826", "831", "832", "833", "834", "840", "850", "854", "858", "860", "862", "876", "882", "887", "894" ]); - for (var _1Z = 0, _1a = _1Y.length; _1Z < _1a; _1Z++) { - var _1b = $get(_1Y, _1Z); - $k[$j++] = _1b; - $k[$j++] = _1b; - } - $1.iso3166 = $d(); + var _i = $k[--$j]; //#282 + $k[$j++] = _i; //#282 + if (_i.length < 2) { //#282 + $j -= 2; //#282 + $k[$j++] = 'bwipp.GS1alphaTooShort'; //#282 + $k[$j++] = "Alphanumeric string is too short to check"; //#282 + $k[$j++] = false; //#282 + return true; //#282 + } //#282 + var _j = $k[--$j]; //#283 + $k[$j++] = _j; //#285 + $k[$j++] = _j.length - 2; //#285 + $k[$j++] = $geti(_j, 0, _j.length - 2); //#285 + $k[$j++] = Infinity; //#285 + var _l = $k[--$j]; //#285 + var _m = $k[--$j]; //#285 + $k[$j++] = _l; //#287 + $forall(_m, function() { //#287 + var _n = $k[--$j]; //#286 + var _p = $get($1.cset82, _n) !== undefined; //#286 + $k[$j++] = _n; //#286 + if (_p) { //#286 + var _s = $get($1.cset82, $k[--$j]); //#286 + $k[$j++] = _s; //#286 + } else { //#286 + $k[$j++] = -1; //#286 + return true; //#286 + } //#286 + }); //#286 + var _t = $k[--$j]; //#288 + $k[$j++] = _t; //#288 + if (_t == -1) { //#288 + $cleartomark(); //#288 + $j -= 3; //#288 + $k[$j++] = 'bwipp.GS1UnknownCSET82Character'; //#288 + $k[$j++] = "Unknown CSET 82 character"; //#288 + $k[$j++] = false; //#288 + return true; //#288 + } //#288 + $astore($a($counttomark())); //#289 + var _w = $k[--$j]; //#289 + var _x = $k[--$j]; //#289 + $k[$j++] = _w; //#289 + $k[$j++] = _x; //#289 + $j--; //#289 + var _y = $k[--$j]; //#290 + var _z = $k[--$j]; //#290 + var _11 = $geti($k[--$j], _z, 2); //#291 + $k[$j++] = _y; //#291 + $k[$j++] = _11; //#291 + $k[$j++] = Infinity; //#291 + var _12 = $k[--$j]; //#291 + var _13 = $k[--$j]; //#291 + $k[$j++] = _12; //#293 + $forall(_13, function() { //#293 + var _14 = $k[--$j]; //#292 + var _16 = $get($1.cset32, _14) !== undefined; //#292 + $k[$j++] = _14; //#292 + if (_16) { //#292 + var _19 = $get($1.cset32, $k[--$j]); //#292 + $k[$j++] = _19; //#292 + } else { //#292 + $k[$j++] = -1; //#292 + return true; //#292 + } //#292 + }); //#292 + var _1A = $k[--$j]; //#294 + $k[$j++] = _1A; //#294 + if (_1A == -1) { //#294 + $cleartomark(); //#294 + $j -= 2; //#294 + $k[$j++] = 'bwipp.GS1UnknownCSET32Character'; //#294 + $k[$j++] = "Unknown CSET 32 character"; //#294 + $k[$j++] = false; //#294 + return true; //#294 + } //#294 + $astore($a($counttomark())); //#295 + var _1D = $k[--$j]; //#295 + var _1E = $k[--$j]; //#295 + $k[$j++] = _1D; //#295 + $k[$j++] = _1E; //#295 + $j--; //#295 + var _1F = $k[--$j]; //#296 + var _1I = $k[--$j]; //#296 + var _1J = $a([2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83]); //#297 + var _1K = _1I.length; //#299 + $k[$j++] = $f(($get(_1F, 0) << 5) + $get(_1F, 1)); //#299 + $k[$j++] = _1I; //#299 + $k[$j++] = _1J; //#299 + $k[$j++] = _1K; //#299 + if (_1K > _1J.length) { //#299 + $j -= 5; //#299 + $k[$j++] = 'bwipp.GS1alphaTooLong'; //#299 + $k[$j++] = "Alphanumeric string is too long to check"; //#299 + $k[$j++] = false; //#299 + return true; //#299 + } //#299 + var _1L = $k[--$j]; //#300 + var _1N = $geti($k[--$j], 0, _1L); //#300 + for (var _1O = 0, _1P = _1N.length; _1O < _1P; _1O++) { //#300 + var _1R = $k[--$j]; //#300 + $k[$j++] = $get(_1N, _1O); //#300 + $k[$j++] = _1R; //#300 + } //#300 + var _1S = $k[--$j]; //#301 + $k[$j++] = 0; //#301 + $forall(_1S, function() { //#301 + var _1T = $k[--$j]; //#301 + var _1U = $k[--$j]; //#301 + var _1V = $k[--$j]; //#301 + $k[$j++] = $f(_1U + (_1V * _1T)); //#301 + }); //#301 + var _1W = $k[--$j]; //#301 + if ($k[--$j] != (_1W % 1021)) { //#302 + $j--; //#302 + $k[$j++] = 'bwipp.GS1badAlphaCheckCharacters'; //#302 + $k[$j++] = "Bad alphanumeric check characters"; //#302 + $k[$j++] = false; //#302 + return true; //#302 + } //#302 + }; //#303 + $k[$j++] = Infinity; //#324 + var _1Y = $a(['004', '008', '010', '012', '016', '020', '024', '028', '031', '032', '036', '040', '044', '048', '050', '051', '052', '056', '060', '064', '068', '070', '072', '074', '076', '084', '086', '090', '092', '096', '100', '104', '108', '112', '116', '120', '124', '132', '136', '140', '144', '148', '152', '156', '158', '162', '166', '170', '174', '175', '178', '180', '184', '188', '191', '192', '196', '203', '204', '208', '212', '214', '218', '222', '226', '231', '232', '233', '234', '238', '239', '242', '246', '248', '250', '254', '258', '260', '262', '266', '268', '270', '275', '276', '288', '292', '296', '300', '304', '308', '312', '316', '320', '324', '328', '332', '334', '336', '340', '344', '348', '352', '356', '360', '364', '368', '372', '376', '380', '384', '388', '392', '398', '400', '404', '408', '410', '414', '417', '418', '422', '426', '428', '430', '434', '438', '440', '442', '446', '450', '454', '458', '462', '466', '470', '474', '478', '480', '484', '492', '496', '498', '499', '500', '504', '508', '512', '516', '520', '524', '528', '531', '533', '534', '535', '540', '548', '554', '558', '562', '566', '570', '574', '578', '580', '581', '583', '584', '585', '586', '591', '598', '600', '604', '608', '612', '616', '620', '624', '626', '630', '634', '638', '642', '643', '646', '652', '654', '659', '660', '662', '663', '666', '670', '674', '678', '682', '686', '688', '690', '694', '702', '703', '704', '705', '706', '710', '716', '724', '728', '729', '732', '740', '744', '748', '752', '756', '760', '762', '764', '768', '772', '776', '780', '784', '788', '792', '795', '796', '798', '800', '804', '807', '818', '826', '831', '832', '833', '834', '840', '850', '854', '858', '860', '862', '876', '882', '887', '894']); //#323 + for (var _1Z = 0, _1a = _1Y.length; _1Z < _1a; _1Z++) { //#324 + var _1b = $get(_1Y, _1Z); //#324 + $k[$j++] = _1b; //#324 + $k[$j++] = _1b; //#324 + } //#324 + $1.iso3166 = $d(); //#324 $1.lintiso3166 = function() { - var _1f = $get($1.iso3166, $k[--$j]) !== undefined; - if (!_1f) { - $j--; - $k[$j++] = "bwipp.GS1UnknownCountry"; - $k[$j++] = "Unknown country code"; - $k[$j++] = false; - return true; - } - }; + var _1f = $get($1.iso3166, $k[--$j]) !== undefined; //#327 + if (!_1f) { //#327 + $j--; //#327 + $k[$j++] = 'bwipp.GS1UnknownCountry'; //#327 + $k[$j++] = "Unknown country code"; //#327 + $k[$j++] = false; //#327 + return true; //#327 + } //#327 + }; //#328 $1.lintiso3166999 = function() { - var _1g = $k[--$j]; - $k[$j++] = _1g; - if ($ne(_1g, "999")) { - var _1j = $get($1.iso3166, $k[--$j]) !== undefined; - if (!_1j) { - $j--; - $k[$j++] = "bwipp.GS1UnknownCountryOr999"; - $k[$j++] = "Unknown country code or not 999"; - $k[$j++] = false; - return true; - } - } else { - $j--; - } - }; + var _1g = $k[--$j]; //#331 + $k[$j++] = _1g; //#335 + if ($ne(_1g, '999')) { //#334 + var _1j = $get($1.iso3166, $k[--$j]) !== undefined; //#332 + if (!_1j) { //#332 + $j--; //#332 + $k[$j++] = 'bwipp.GS1UnknownCountryOr999'; //#332 + $k[$j++] = "Unknown country code or not 999"; //#332 + $k[$j++] = false; //#332 + return true; //#332 + } //#332 + } else { //#334 + $j--; //#334 + } //#334 + }; //#336 $1.lintiso3166list = function() { - var _1k = $k[--$j]; - $k[$j++] = _1k; - if (_1k.length % 3 != 0) { - $j -= 2; - $k[$j++] = "bwipp.GS1BadCountryListLength"; - $k[$j++] = "Not a group of three-digit country codes"; - $k[$j++] = false; - return true; - } - var _1l = $k[--$j]; - $k[$j++] = _1l; - $k[$j++] = true; - for (var _1n = 0, _1m = _1l.length - 1; _1n <= _1m; _1n += 3) { - var _1o = $k[--$j]; - var _1p = $k[--$j]; - var _1s = $get($1.iso3166, $geti(_1p, _1n, 3)) !== undefined; - $k[$j++] = _1p; - $k[$j++] = _1o; - if (!_1s) { - $j -= 2; - $k[$j++] = false; - break; - } - } - if ($nt($k[--$j])) { - $j--; - $k[$j++] = "bwipp.GS1UnknownCountry"; - $k[$j++] = "Unknown country code"; - $k[$j++] = false; - return true; - } - $j--; - }; - $k[$j++] = Infinity; - var _1u = $a([ "AD", "AE", "AF", "AG", "AI", "AL", "AM", "AO", "AQ", "AR", "AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GS", "GT", "GU", "GW", "GY", "HK", "HM", "HN", "HR", "HT", "HU", "ID", "IE", "IL", "IM", "IN", "IO", "IQ", "IR", "IS", "IT", "JE", "JM", "JO", "JP", "KE", "KG", "KH", "KI", "KM", "KN", "KP", "KR", "KW", "KY", "KZ", "LA", "LB", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MF", "MG", "MH", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MS", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PE", "PF", "PG", "PH", "PK", "PL", "PM", "PN", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RS", "RU", "RW", "SA", "SB", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "SS", "ST", "SV", "SX", "SY", "SZ", "TC", "TD", "TF", "TG", "TH", "TJ", "TK", "TL", "TM", "TN", "TO", "TR", "TT", "TV", "TW", "TZ", "UA", "UG", "UM", "US", "UY", "UZ", "VA", "VC", "VE", "VG", "VI", "VN", "VU", "WF", "WS", "YE", "YT", "ZA", "ZM", "ZW" ]); - for (var _1v = 0, _1w = _1u.length; _1v < _1w; _1v++) { - var _1x = $get(_1u, _1v); - $k[$j++] = _1x; - $k[$j++] = _1x; - } - $1.iso3166alpha2 = $d(); + var _1k = $k[--$j]; //#339 + $k[$j++] = _1k; //#341 + if ((_1k.length % 3) != 0) { //#341 + $j -= 2; //#340 + $k[$j++] = 'bwipp.GS1BadCountryListLength'; //#340 + $k[$j++] = "Not a group of three-digit country codes"; //#340 + $k[$j++] = false; //#340 + return true; //#340 + } //#340 + var _1l = $k[--$j]; //#343 + $k[$j++] = _1l; //#346 + $k[$j++] = true; //#346 + for (var _1n = 0, _1m = _1l.length - 1; _1n <= _1m; _1n += 3) { //#346 + var _1o = $k[--$j]; //#344 + var _1p = $k[--$j]; //#344 + var _1s = $get($1.iso3166, $geti(_1p, _1n, 3)) !== undefined; //#345 + $k[$j++] = _1p; //#345 + $k[$j++] = _1o; //#345 + if (!_1s) { //#345 + $j -= 2; //#345 + $k[$j++] = false; //#345 + break; //#345 + } //#345 + } //#345 + if ($nt($k[--$j])) { //#347 + $j--; //#347 + $k[$j++] = 'bwipp.GS1UnknownCountry'; //#347 + $k[$j++] = "Unknown country code"; //#347 + $k[$j++] = false; //#347 + return true; //#347 + } //#347 + $j--; //#348 + }; //#349 + $k[$j++] = Infinity; //#376 + var _1u = $a(['AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AW', 'AX', 'AZ', 'BA', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BR', 'BS', 'BT', 'BV', 'BW', 'BY', 'BZ', 'CA', 'CC', 'CD', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CO', 'CR', 'CU', 'CV', 'CW', 'CX', 'CY', 'CZ', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'EC', 'EE', 'EG', 'EH', 'ER', 'ES', 'ET', 'FI', 'FJ', 'FK', 'FM', 'FO', 'FR', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG', 'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS', 'GT', 'GU', 'GW', 'GY', 'HK', 'HM', 'HN', 'HR', 'HT', 'HU', 'ID', 'IE', 'IL', 'IM', 'IN', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM', 'JO', 'JP', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG', 'MH', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NC', 'NE', 'NF', 'NG', 'NI', 'NL', 'NO', 'NP', 'NR', 'NU', 'NZ', 'OM', 'PA', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM', 'PN', 'PR', 'PS', 'PT', 'PW', 'PY', 'QA', 'RE', 'RO', 'RS', 'RU', 'RW', 'SA', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SV', 'SX', 'SY', 'SZ', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA', 'UG', 'UM', 'US', 'UY', 'UZ', 'VA', 'VC', 'VE', 'VG', 'VI', 'VN', 'VU', 'WF', 'WS', 'YE', 'YT', 'ZA', 'ZM', 'ZW']); //#375 + for (var _1v = 0, _1w = _1u.length; _1v < _1w; _1v++) { //#376 + var _1x = $get(_1u, _1v); //#376 + $k[$j++] = _1x; //#376 + $k[$j++] = _1x; //#376 + } //#376 + $1.iso3166alpha2 = $d(); //#376 $1.lintiso3166alpha2 = function() { - var _21 = $get($1.iso3166alpha2, $k[--$j]) !== undefined; - if (!_21) { - $j--; - $k[$j++] = "bwipp.GS1UnknownCountryAlpha"; - $k[$j++] = "Unknown country alpha code"; - $k[$j++] = false; - return true; - } - }; - $k[$j++] = Infinity; - var _22 = $a([ "008", "012", "032", "036", "044", "048", "050", "051", "052", "060", "064", "068", "072", "084", "090", "096", "104", "108", "116", "124", "132", "136", "144", "152", "156", "170", "174", "188", "191", "192", "203", "208", "214", "222", "230", "232", "238", "242", "262", "270", "292", "320", "324", "328", "332", "340", "344", "348", "352", "356", "360", "364", "368", "376", "388", "392", "398", "400", "404", "408", "410", "414", "417", "418", "422", "426", "430", "434", "446", "454", "458", "462", "480", "484", "496", "498", "504", "512", "516", "524", "532", "533", "548", "554", "558", "566", "578", "586", "590", "598", "600", "604", "608", "634", "643", "646", "654", "682", "690", "694", "702", "704", "706", "710", "728", "748", "752", "756", "760", "764", "776", "780", "784", "788", "800", "807", "818", "826", "834", "840", "858", "860", "882", "886", "901", "927", "928", "929", "930", "931", "932", "933", "934", "936", "938", "940", "941", "943", "944", "946", "947", "948", "949", "950", "951", "952", "953", "955", "956", "957", "958", "959", "960", "961", "962", "963", "964", "965", "967", "968", "969", "970", "971", "972", "973", "975", "976", "977", "978", "979", "980", "981", "984", "985", "986", "990", "994", "997", "999" ]); - for (var _23 = 0, _24 = _22.length; _23 < _24; _23++) { - var _25 = $get(_22, _23); - $k[$j++] = _25; - $k[$j++] = _25; - } - $1.iso4217 = $d(); + var _21 = $get($1.iso3166alpha2, $k[--$j]) !== undefined; //#379 + if (!_21) { //#379 + $j--; //#379 + $k[$j++] = 'bwipp.GS1UnknownCountryAlpha'; //#379 + $k[$j++] = "Unknown country alpha code"; //#379 + $k[$j++] = false; //#379 + return true; //#379 + } //#379 + }; //#380 + $k[$j++] = Infinity; //#405 + var _22 = $a(['008', '012', '032', '036', '044', '048', '050', '051', '052', '060', '064', '068', '072', '084', '090', '096', '104', '108', '116', '124', '132', '136', '144', '152', '156', '170', '174', '188', '191', '192', '203', '208', '214', '222', '230', '232', '238', '242', '262', '270', '292', '320', '324', '328', '332', '340', '344', '348', '352', '356', '360', '364', '368', '376', '388', '392', '398', '400', '404', '408', '410', '414', '417', '418', '422', '426', '430', '434', '446', '454', '458', '462', '480', '484', '496', '498', '504', '512', '516', '524', '532', '533', '548', '554', '558', '566', '578', '586', '590', '598', '600', '604', '608', '634', '643', '646', '654', '682', '690', '694', '702', '704', '706', '710', '728', '748', '752', '756', '760', '764', '776', '780', '784', '788', '800', '807', '818', '826', '834', '840', '858', '860', '882', '886', '901', '927', '928', '929', '930', '931', '932', '933', '934', '936', '938', '940', '941', '943', '944', '946', '947', '948', '949', '950', '951', '952', '953', '955', '956', '957', '958', '959', '960', '961', '962', '963', '964', '965', '967', '968', '969', '970', '971', '972', '973', '975', '976', '977', '978', '979', '980', '981', '984', '985', '986', '990', '994', '997', '999']); //#404 + for (var _23 = 0, _24 = _22.length; _23 < _24; _23++) { //#405 + var _25 = $get(_22, _23); //#405 + $k[$j++] = _25; //#405 + $k[$j++] = _25; //#405 + } //#405 + $1.iso4217 = $d(); //#405 $1.lintiso4217 = function() { - var _29 = $get($1.iso4217, $k[--$j]) !== undefined; - if (!_29) { - $j--; - $k[$j++] = "bwipp.GS1UnknownCurrency"; - $k[$j++] = "Unknown currency code"; - $k[$j++] = false; - return true; - } - }; + var _29 = $get($1.iso4217, $k[--$j]) !== undefined; //#408 + if (!_29) { //#408 + $j--; //#408 + $k[$j++] = 'bwipp.GS1UnknownCurrency'; //#408 + $k[$j++] = "Unknown currency code"; //#408 + $k[$j++] = false; //#408 + return true; //#408 + } //#408 + }; //#409 $1.lintiban = function() { - var _2A = $k[--$j]; - $k[$j++] = _2A; - if (_2A.length < 4) { - $j -= 2; - $k[$j++] = "bwipp.GS1tooShort"; - $k[$j++] = "IBAN too short"; - $k[$j++] = false; - return true; - } - var _2B = $k[--$j]; - $k[$j++] = _2B; - $k[$j++] = true; - $forall(_2B, function() { - var _2C = $s(1); - $put(_2C, 0, $k[--$j]); - $search("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", _2C); - if ($nt($k[--$j])) { - $j -= 2; - $k[$j++] = false; - return true; - } - $j -= 3; - }); - if ($nt($k[--$j])) { - $j--; - $k[$j++] = "bwipp.GS1badIBANcharacter"; - $k[$j++] = "Invalid IBAN character"; - $k[$j++] = false; - return true; - } - var _2G = $k[--$j]; - $k[$j++] = _2G; - $k[$j++] = Infinity; - $k[$j++] = _2G; - $k[$j++] = Infinity; - var _2J = $k[--$j]; - var _2K = $k[--$j]; - $k[$j++] = _2J; - $forall(_2K); - $r($counttomark(), -4); - $astore($a($counttomark())); - var _2O = $k[--$j]; - var _2P = $k[--$j]; - $k[$j++] = _2O; - $k[$j++] = _2P; - $j--; - $forall($k[--$j], function() { - var _2S = $f($k[--$j] - 48); - $k[$j++] = _2S; - if (_2S > 9) { - var _2U = $f($k[--$j] - 7); - $k[$j++] = ~~(_2U / 10); - $k[$j++] = _2U % 10; - } - }); - $astore($a($counttomark())); - var _2X = $k[--$j]; - var _2Y = $k[--$j]; - $k[$j++] = _2X; - $k[$j++] = _2Y; - $j--; - var _2Z = $k[--$j]; - $k[$j++] = 0; - $forall(_2Z, function() { - var _2a = $k[--$j]; - var _2b = $k[--$j]; - $k[$j++] = $f(_2a + _2b * 10) % 97; - }); - if ($k[--$j] != 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1badIBANchecksum"; - $k[$j++] = "IBAN checksum incorrect"; - $k[$j++] = false; - return true; - } - var _2e = $geti($k[--$j], 0, 2); - $k[$j++] = _2e; - $1.lintiso3166alpha2(); - }; + var _2A = $k[--$j]; //#412 + $k[$j++] = _2A; //#412 + if (_2A.length < 4) { //#412 + $j -= 2; //#412 + $k[$j++] = 'bwipp.GS1tooShort'; //#412 + $k[$j++] = "IBAN too short"; //#412 + $k[$j++] = false; //#412 + return true; //#412 + } //#412 + var _2B = $k[--$j]; //#413 + $k[$j++] = _2B; //#418 + $k[$j++] = true; //#418 + $forall(_2B, function() { //#418 + var _2C = $s(1); //#414 + $put(_2C, 0, $k[--$j]); //#414 + $search("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", _2C); //#416 + if ($nt($k[--$j])) { //#416 + $j -= 2; //#416 + $k[$j++] = false; //#416 + return true; //#416 + } //#416 + $j -= 3; //#417 + }); //#417 + if ($nt($k[--$j])) { //#419 + $j--; //#419 + $k[$j++] = 'bwipp.GS1badIBANcharacter'; //#419 + $k[$j++] = "Invalid IBAN character"; //#419 + $k[$j++] = false; //#419 + return true; //#419 + } //#419 + var _2G = $k[--$j]; //#420 + $k[$j++] = _2G; //#420 + $k[$j++] = _2G; //#420 + $k[$j++] = Infinity; //#420 + var _2H = $k[--$j]; //#420 + var _2I = $k[--$j]; //#420 + $k[$j++] = _2H; //#420 + $k[$j++] = _2I; //#420 + $k[$j++] = Infinity; //#420 + var _2J = $k[--$j]; //#420 + var _2K = $k[--$j]; //#420 + $k[$j++] = _2J; //#420 + $forall(_2K); //#420 + $r($counttomark(), -4); //#420 + $astore($a($counttomark())); //#420 + var _2O = $k[--$j]; //#420 + var _2P = $k[--$j]; //#420 + $k[$j++] = _2O; //#420 + $k[$j++] = _2P; //#420 + $j--; //#420 + $forall($k[--$j], function() { //#422 + var _2S = $f($k[--$j] - 48); //#421 + $k[$j++] = _2S; //#421 + if (_2S > 9) { //#421 + var _2U = $f($k[--$j] - 7); //#421 + $k[$j++] = ~~(_2U / 10); //#421 + $k[$j++] = _2U % 10; //#421 + } //#421 + }); //#421 + $astore($a($counttomark())); //#422 + var _2X = $k[--$j]; //#422 + var _2Y = $k[--$j]; //#422 + $k[$j++] = _2X; //#422 + $k[$j++] = _2Y; //#422 + $j--; //#422 + var _2Z = $k[--$j]; //#423 + $k[$j++] = 0; //#423 + $forall(_2Z, function() { //#423 + var _2a = $k[--$j]; //#423 + var _2b = $k[--$j]; //#423 + $k[$j++] = ($f(_2a + (_2b * 10))) % 97; //#423 + }); //#423 + if ($k[--$j] != 1) { //#424 + $j -= 2; //#424 + $k[$j++] = 'bwipp.GS1badIBANchecksum'; //#424 + $k[$j++] = "IBAN checksum incorrect"; //#424 + $k[$j++] = false; //#424 + return true; //#424 + } //#424 + var _2e = $geti($k[--$j], 0, 2); //#425 + $k[$j++] = _2e; //#425 + $1.lintiso3166alpha2(); //#425 + }; //#426 $1.lintzero = function() { - if ($ne($k[--$j], "0")) { - $j--; - $k[$j++] = "bwipp.GS1zeroRequired"; - $k[$j++] = "Zero is required"; - $k[$j++] = false; - return true; - } - }; + if ($ne($k[--$j], "0")) { //#429 + $j--; //#429 + $k[$j++] = 'bwipp.GS1zeroRequired'; //#429 + $k[$j++] = "Zero is required"; //#429 + $k[$j++] = false; //#429 + return true; //#429 + } //#429 + }; //#430 $1.lintnonzero = function() { - var _2g = $k[--$j]; - $k[$j++] = false; - $forall(_2g, function() { - if ($k[--$j] != 48) { - $j--; - $k[$j++] = true; - } - }); - if ($nt($k[--$j])) { - $j--; - $k[$j++] = "bwipp.GS1zeroNotPermitted"; - $k[$j++] = "Zero not permitted"; - $k[$j++] = false; - return true; - } - }; + var _2g = $k[--$j]; //#433 + $k[$j++] = false; //#433 + $forall(_2g, function() { //#433 + if ($k[--$j] != 48) { //#433 + $j--; //#433 + $k[$j++] = true; //#433 + } //#433 + }); //#433 + if ($nt($k[--$j])) { //#434 + $j--; //#434 + $k[$j++] = 'bwipp.GS1zeroNotPermitted'; //#434 + $k[$j++] = "Zero not permitted"; //#434 + $k[$j++] = false; //#434 + return true; //#434 + } //#434 + }; //#435 $1.lintnozeroprefix = function() { - var _2j = $k[--$j]; - if (_2j.length > 1 && $get(_2j, 0) == 48) { - $j--; - $k[$j++] = "bwipp.GS1badZeroPrefix"; - $k[$j++] = "Zero prefix is not permitted"; - $k[$j++] = false; - return true; - } - }; + var _2j = $k[--$j]; //#438 + if ((_2j.length > 1) && ($get(_2j, 0) == 48)) { //#440 + $j--; //#439 + $k[$j++] = 'bwipp.GS1badZeroPrefix'; //#439 + $k[$j++] = "Zero prefix is not permitted"; //#439 + $k[$j++] = false; //#439 + return true; //#439 + } //#439 + }; //#441 $1.lintyymmd0 = function() { - var _2l = $k[--$j]; - var _2n = ~~$z($geti(_2l, 2, 2)); - $k[$j++] = _2l; - if (_2n < 1 || _2n > 12) { - $j--; - $k[$j++] = "bwipp.GS1badMonth"; - $k[$j++] = "Invalid month"; - $k[$j++] = false; - return true; - } - var _2o = $k[--$j]; - var _2q = ~~$z($geti(_2o, 0, 2)); - var _2r = _2q - 21; - $k[$j++] = _2o; - $k[$j++] = _2q; - $k[$j++] = _2r; - if (_2r >= 51) { - $j--; - var _2s = $k[--$j]; - $k[$j++] = $f(_2s + 1900); - } else { - if ($k[--$j] <= -50) { - var _2u = $k[--$j]; - $k[$j++] = $f(_2u + 2100); - } else { - var _2v = $k[--$j]; - $k[$j++] = $f(_2v + 2e3); - } - } - var _2w = $k[--$j]; - $k[$j++] = _2w % 400 == 0 || _2w % 4 == 0 && _2w % 100 != 0; - $k[$j++] = Infinity; - var _2x = $k[--$j]; - var _2z = $k[--$j] ? 29 : 28; - $k[$j++] = _2x; - $k[$j++] = 31; - $k[$j++] = _2z; - $k[$j++] = 31; - $k[$j++] = 30; - $k[$j++] = 31; - $k[$j++] = 30; - $k[$j++] = 31; - $k[$j++] = 31; - $k[$j++] = 30; - $k[$j++] = 31; - $k[$j++] = 30; - $k[$j++] = 31; - var _30 = $a(); - var _31 = $k[--$j]; - if ($get(_30, ~~$z($geti(_31, 2, 2)) - 1) < ~~$z($geti(_31, 4, 2))) { - $j--; - $k[$j++] = "bwipp.GS1badDay"; - $k[$j++] = "Invalid day of month"; - $k[$j++] = false; - return true; - } - }; + var _2l = $k[--$j]; //#444 + var _2n = ~~$z($geti(_2l, 2, 2)); //#444 + $k[$j++] = _2l; //#444 + if ((_2n < 1) || (_2n > 12)) { //#444 + $j--; //#444 + $k[$j++] = 'bwipp.GS1badMonth'; //#444 + $k[$j++] = "Invalid month"; //#444 + $k[$j++] = false; //#444 + return true; //#444 + } //#444 + var _2o = $k[--$j]; //#445 + var _2q = ~~$z($geti(_2o, 0, 2)); //#445 + var _2r = _2q - 21; //#446 + $k[$j++] = _2o; //#446 + $k[$j++] = _2q; //#446 + $k[$j++] = _2r; //#446 + if (_2r >= 51) { //#446 + $j--; //#446 + var _2s = $k[--$j]; //#446 + $k[$j++] = $f(_2s + 1900); //#446 + } else { //#446 + if ($k[--$j] <= -50) { //#446 + var _2u = $k[--$j]; //#446 + $k[$j++] = $f(_2u + 2100); //#446 + } else { //#446 + var _2v = $k[--$j]; //#446 + $k[$j++] = $f(_2v + 2000); //#446 + } //#446 + } //#446 + var _2w = $k[--$j]; //#447 + $k[$j++] = ((_2w % 400) == 0) || (((_2w % 4) == 0) && ((_2w % 100) != 0)); //#448 + $k[$j++] = Infinity; //#448 + var _2x = $k[--$j]; //#448 + var _2z = $k[--$j] ? 29 : 28; //#448 + $k[$j++] = _2x; //#448 + $k[$j++] = 31; //#448 + $k[$j++] = _2z; //#448 + $k[$j++] = 31; //#448 + $k[$j++] = 30; //#448 + $k[$j++] = 31; //#448 + $k[$j++] = 30; //#448 + $k[$j++] = 31; //#448 + $k[$j++] = 31; //#448 + $k[$j++] = 30; //#448 + $k[$j++] = 31; //#448 + $k[$j++] = 30; //#448 + $k[$j++] = 31; //#448 + var _30 = $a(); //#448 + var _31 = $k[--$j]; //#449 + if ($get(_30, (~~$z($geti(_31, 2, 2))) - 1) < (~~$z($geti(_31, 4, 2)))) { //#450 + $j--; //#450 + $k[$j++] = 'bwipp.GS1badDay'; //#450 + $k[$j++] = "Invalid day of month"; //#450 + $k[$j++] = false; //#450 + return true; //#450 + } //#450 + }; //#451 $1.lintyymmdd = function() { - var _35 = $k[--$j]; - $k[$j++] = _35; - if (_35.length != 6) { - $j--; - $k[$j++] = "bwipp.GS1badDateLength"; - $k[$j++] = "Invalid length for date"; - $k[$j++] = false; - return true; - } - var _36 = $k[--$j]; - $k[$j++] = _36; - if (~~$z($geti(_36, 4, 2)) < 1) { - $j--; - $k[$j++] = "bwipp.GS1badDay"; - $k[$j++] = "Invalid day of month"; - $k[$j++] = false; - return true; - } - $1.lintyymmd0(); - }; + var _35 = $k[--$j]; //#454 + $k[$j++] = _35; //#454 + if (_35.length != 6) { //#454 + $j--; //#454 + $k[$j++] = 'bwipp.GS1badDateLength'; //#454 + $k[$j++] = "Invalid length for date"; //#454 + $k[$j++] = false; //#454 + return true; //#454 + } //#454 + var _36 = $k[--$j]; //#455 + $k[$j++] = _36; //#455 + if ((~~$z($geti(_36, 4, 2))) < 1) { //#455 + $j--; //#455 + $k[$j++] = 'bwipp.GS1badDay'; //#455 + $k[$j++] = "Invalid day of month"; //#455 + $k[$j++] = false; //#455 + return true; //#455 + } //#455 + $1.lintyymmd0(); //#456 + }; //#457 $1.lintyymmddhh = function() { - var _38 = $k[--$j]; - $k[$j++] = _38; - if (_38.length != 8) { - $j--; - $k[$j++] = "bwipp.GS1badYYMMDDHHLength"; - $k[$j++] = "Invalid length for date with hour"; - $k[$j++] = false; - return true; - } - var _39 = $k[--$j]; - $k[$j++] = _39; - if (~~$z($geti(_39, 6, 2)) > 23) { - $j -= 2; - $k[$j++] = "bwipp.GS1badHour"; - $k[$j++] = "Invalid hour of day"; - $k[$j++] = false; - return true; - } - var _3C = $geti($k[--$j], 0, 6); - $k[$j++] = _3C; - $1.lintyymmdd(); - }; + var _38 = $k[--$j]; //#460 + $k[$j++] = _38; //#460 + if (_38.length != 8) { //#460 + $j--; //#460 + $k[$j++] = 'bwipp.GS1badYYMMDDHHLength'; //#460 + $k[$j++] = "Invalid length for date with hour"; //#460 + $k[$j++] = false; //#460 + return true; //#460 + } //#460 + var _39 = $k[--$j]; //#461 + $k[$j++] = _39; //#461 + if ((~~$z($geti(_39, 6, 2))) > 23) { //#461 + $j -= 2; //#461 + $k[$j++] = 'bwipp.GS1badHour'; //#461 + $k[$j++] = "Invalid hour of day"; //#461 + $k[$j++] = false; //#461 + return true; //#461 + } //#461 + var _3C = $geti($k[--$j], 0, 6); //#462 + $k[$j++] = _3C; //#462 + $1.lintyymmdd(); //#462 + }; //#463 $1.linthhmm = function() { - var _3D = $k[--$j]; - $k[$j++] = _3D; - if (~~$z($geti(_3D, 0, 2)) > 23) { - $j -= 2; - $k[$j++] = "bwipp.GS1badHour"; - $k[$j++] = "Invalid hour of day"; - $k[$j++] = false; - return true; - } - if (~~$z($geti($k[--$j], 2, 2)) > 59) { - $j--; - $k[$j++] = "bwipp.GS1badMinute"; - $k[$j++] = "Invalid minute in the hour"; - $k[$j++] = false; - return true; - } - }; + var _3D = $k[--$j]; //#466 + $k[$j++] = _3D; //#466 + if ((~~$z($geti(_3D, 0, 2))) > 23) { //#466 + $j -= 2; //#466 + $k[$j++] = 'bwipp.GS1badHour'; //#466 + $k[$j++] = "Invalid hour of day"; //#466 + $k[$j++] = false; //#466 + return true; //#466 + } //#466 + if ((~~$z($geti($k[--$j], 2, 2))) > 59) { //#467 + $j--; //#467 + $k[$j++] = 'bwipp.GS1badMinute'; //#467 + $k[$j++] = "Invalid minute in the hour"; //#467 + $k[$j++] = false; //#467 + return true; //#467 + } //#467 + }; //#468 $1.lintmmoptss = function() { - var _3H = $k[--$j]; - var _3I = _3H.length; - $k[$j++] = _3H; - if (_3I != 2 && _3I != 4) { - $j--; - $k[$j++] = "bwipp.GS1badTimeLength"; - $k[$j++] = "Invalid length for optional minutes and seconds"; - $k[$j++] = false; - return true; - } - var _3J = $k[--$j]; - $k[$j++] = _3J; - if (~~$z($geti(_3J, 0, 2)) > 59) { - $j -= 2; - $k[$j++] = "bwipp.GS1badMinute"; - $k[$j++] = "Invalid minute in the hour"; - $k[$j++] = false; - return true; - } - var _3L = $k[--$j]; - $k[$j++] = _3L; - if (_3L.length >= 4) { - var _3M = $k[--$j]; - $k[$j++] = _3M; - if (~~$z($geti(_3M, 2, 2)) > 59) { - $j -= 2; - $k[$j++] = "bwipp.GS1badSecond"; - $k[$j++] = "Invalid second in the minute"; - $k[$j++] = false; - return true; - } - } - $j--; - }; + var _3H = $k[--$j]; //#471 + var _3I = _3H.length; //#471 + $k[$j++] = _3H; //#473 + if ((_3I != 2) && (_3I != 4)) { //#473 + $j--; //#472 + $k[$j++] = 'bwipp.GS1badTimeLength'; //#472 + $k[$j++] = "Invalid length for optional minutes and seconds"; //#472 + $k[$j++] = false; //#472 + return true; //#472 + } //#472 + var _3J = $k[--$j]; //#474 + $k[$j++] = _3J; //#474 + if ((~~$z($geti(_3J, 0, 2))) > 59) { //#474 + $j -= 2; //#474 + $k[$j++] = 'bwipp.GS1badMinute'; //#474 + $k[$j++] = "Invalid minute in the hour"; //#474 + $k[$j++] = false; //#474 + return true; //#474 + } //#474 + var _3L = $k[--$j]; //#475 + $k[$j++] = _3L; //#477 + if (_3L.length >= 4) { //#477 + var _3M = $k[--$j]; //#476 + $k[$j++] = _3M; //#476 + if ((~~$z($geti(_3M, 2, 2))) > 59) { //#476 + $j -= 2; //#476 + $k[$j++] = 'bwipp.GS1badSecond'; //#476 + $k[$j++] = "Invalid second in the minute"; //#476 + $k[$j++] = false; //#476 + return true; //#476 + } //#476 + } //#476 + $j--; //#478 + }; //#479 $1.lintyesno = function() { - var _3O = $k[--$j]; - if ($ne(_3O, "0") && $ne(_3O, "1")) { - $j--; - $k[$j++] = "bwipp.GS1badBoolean"; - $k[$j++] = "Neither 0 nor 1 for yes or no"; - $k[$j++] = false; - return true; - } - }; + var _3O = $k[--$j]; //#482 + if ($ne(_3O, "0") && $ne(_3O, "1")) { //#484 + $j--; //#483 + $k[$j++] = 'bwipp.GS1badBoolean'; //#483 + $k[$j++] = "Neither 0 nor 1 for yes or no"; //#483 + $k[$j++] = false; //#483 + return true; //#483 + } //#483 + }; //#485 $1.lintwinding = function() { - var _3P = $k[--$j]; - if ($ne(_3P, "0") && ($ne(_3P, "1") && $ne(_3P, "9"))) { - $j--; - $k[$j++] = "bwipp.GS1badWinding"; - $k[$j++] = "Invalid winding direction"; - $k[$j++] = false; - return true; - } - }; + var _3P = $k[--$j]; //#488 + if ($ne(_3P, "0") && ($ne(_3P, "1") && $ne(_3P, "9"))) { //#490 + $j--; //#489 + $k[$j++] = 'bwipp.GS1badWinding'; //#489 + $k[$j++] = "Invalid winding direction"; //#489 + $k[$j++] = false; //#489 + return true; //#489 + } //#489 + }; //#491 $1.lintpieceoftotal = function() { - var _3Q = $k[--$j]; - $k[$j++] = _3Q; - if (_3Q.length % 2 != 0) { - $j -= 2; - $k[$j++] = "bwipp.GS1badPieceTotalLength"; - $k[$j++] = "Invalid piece/total length"; - $k[$j++] = false; - return true; - } - var _3R = $k[--$j]; - var _3T = ~~$z($geti(_3R, 0, ~~(_3R.length / 2))); - $k[$j++] = _3R; - $k[$j++] = _3T; - if (_3T == 0) { - $j -= 3; - $k[$j++] = "bwipp.GS1badPieceNumber"; - $k[$j++] = "Invalid piece number"; - $k[$j++] = false; - return true; - } - var _3U = $k[--$j]; - var _3V = $k[--$j]; - var _3W = ~~(_3V.length / 2); - var _3Y = ~~$z($geti(_3V, _3W, _3W)); - $k[$j++] = _3U; - $k[$j++] = _3Y; - if (_3Y == 0) { - $j -= 3; - $k[$j++] = "bwipp.GS1badPieceTotal"; - $k[$j++] = "Invalid total number"; - $k[$j++] = false; - return true; - } - var _3Z = $k[--$j]; - if ($gt($k[--$j], _3Z)) { - $j--; - $k[$j++] = "bwipp.GS1pieceExceedsTotal"; - $k[$j++] = "Piece number exceeds total"; - $k[$j++] = false; - return true; - } - }; + var _3Q = $k[--$j]; //#494 + $k[$j++] = _3Q; //#494 + if ((_3Q.length % 2) != 0) { //#494 + $j -= 2; //#494 + $k[$j++] = 'bwipp.GS1badPieceTotalLength'; //#494 + $k[$j++] = "Invalid piece/total length"; //#494 + $k[$j++] = false; //#494 + return true; //#494 + } //#494 + var _3R = $k[--$j]; //#495 + var _3T = ~~$z($geti(_3R, 0, ~~(_3R.length / 2))); //#496 + $k[$j++] = _3R; //#496 + $k[$j++] = _3T; //#496 + if (_3T == 0) { //#496 + $j -= 3; //#496 + $k[$j++] = 'bwipp.GS1badPieceNumber'; //#496 + $k[$j++] = "Invalid piece number"; //#496 + $k[$j++] = false; //#496 + return true; //#496 + } //#496 + var _3U = $k[--$j]; //#497 + var _3V = $k[--$j]; //#497 + var _3W = ~~(_3V.length / 2); //#497 + var _3Y = ~~$z($geti(_3V, _3W, _3W)); //#498 + $k[$j++] = _3U; //#498 + $k[$j++] = _3Y; //#498 + if (_3Y == 0) { //#498 + $j -= 3; //#498 + $k[$j++] = 'bwipp.GS1badPieceTotal'; //#498 + $k[$j++] = "Invalid total number"; //#498 + $k[$j++] = false; //#498 + return true; //#498 + } //#498 + var _3Z = $k[--$j]; //#499 + if ($gt($k[--$j], _3Z)) { //#499 + $j--; //#499 + $k[$j++] = 'bwipp.GS1pieceExceedsTotal'; //#499 + $k[$j++] = "Piece number exceeds total"; //#499 + $k[$j++] = false; //#499 + return true; //#499 + } //#499 + }; //#500 $1.lintpcenc = function() { - for (;;) { - $search($k[--$j], "%"); - if ($nt($k[--$j])) { - $j--; - break; - } - $j -= 2; - var _3d = $k[--$j]; - $k[$j++] = _3d; - if (_3d.length < 2) { - $j -= 2; - $k[$j++] = "bwipp.GS1badPercentEscape"; - $k[$j++] = "Invalid % escape"; - $k[$j++] = false; - break; - } - var _3e = $k[--$j]; - var _3f = $geti(_3e, 0, 2); - $k[$j++] = _3e; - $k[$j++] = true; - for (var _3g = 0, _3h = _3f.length; _3g < _3h; _3g++) { - var _3j = $s(1); - $put(_3j, 0, $get(_3f, _3g)); - $search("0123456789ABCDEFabcdef", _3j); - if ($nt($k[--$j])) { - $j -= 2; - $k[$j++] = false; - return true; - } - $j -= 3; - } - if ($nt($k[--$j])) { - $j -= 2; - $k[$j++] = "bwipp.GS1badPercentChars"; - $k[$j++] = "Invalid characters for percent encoding"; - $k[$j++] = false; - break; - } - } - }; + for (;;) { //#513 + $search($k[--$j], "%"); //#504 + if ($nt($k[--$j])) { //#504 + $j--; //#504 + break; //#504 + } //#504 + $j -= 2; //#505 + var _3d = $k[--$j]; //#505 + $k[$j++] = _3d; //#505 + if (_3d.length < 2) { //#505 + $j -= 2; //#505 + $k[$j++] = 'bwipp.GS1badPercentEscape'; //#505 + $k[$j++] = "Invalid % escape"; //#505 + $k[$j++] = false; //#505 + break; //#505 + } //#505 + var _3e = $k[--$j]; //#506 + var _3f = $geti(_3e, 0, 2); //#506 + $k[$j++] = _3e; //#511 + $k[$j++] = true; //#511 + for (var _3g = 0, _3h = _3f.length; _3g < _3h; _3g++) { //#511 + var _3j = $s(1); //#507 + $put(_3j, 0, $get(_3f, _3g)); //#507 + $search("0123456789ABCDEFabcdef", _3j); //#509 + if ($nt($k[--$j])) { //#509 + $j -= 2; //#509 + $k[$j++] = false; //#509 + return true; //#509 + } //#509 + $j -= 3; //#510 + } //#510 + if ($nt($k[--$j])) { //#512 + $j -= 2; //#512 + $k[$j++] = 'bwipp.GS1badPercentChars'; //#512 + $k[$j++] = "Invalid characters for percent encoding"; //#512 + $k[$j++] = false; //#512 + break; //#512 + } //#512 + } //#512 + }; //#514 $1.lintcouponcode = function() { - var _3m = $k[--$j]; - $k[$j++] = _3m; - $k[$j++] = true; - $forall(_3m, function() { - var _3n = $k[--$j]; - if (_3n < 48 || _3n > 57) { - $j--; - $k[$j++] = false; - return true; - } - }); - if ($nt($k[--$j])) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponNotNumeric"; - $k[$j++] = "Coupon not numeric"; - $k[$j++] = false; - return true; - } - var _3p = $k[--$j]; - $k[$j++] = _3p; - if (_3p.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortGCPVLI"; - $k[$j++] = "Coupon too short: Missing GCP VLI"; - $k[$j++] = false; - return true; - } - var _3q = $k[--$j]; - var _3s = ~~$z($geti(_3q, 0, 1)); - $k[$j++] = _3q; - $k[$j++] = _3s; - if (_3s > 6) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBadGCPVLI"; - $k[$j++] = "Coupon GCP length indicator must be 0-6"; - $k[$j++] = false; - return true; - } - var _3t = $k[--$j]; - var _3u = $k[--$j]; - $k[$j++] = _3u; - $k[$j++] = $f($f(_3t + 6) + 1); - if ($f($f(_3t + 6) + 1) > _3u.length) { - $j -= 3; - $k[$j++] = "bwipp.GS1couponTooShortGCP"; - $k[$j++] = "Coupon too short: GCP truncated"; - $k[$j++] = false; - return true; - } - var _3v = $k[--$j]; - var _3w = $k[--$j]; - var _3x = $geti(_3w, _3v, $f(_3w.length - _3v)); - $k[$j++] = _3x; - if (_3x.length < 6) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortOfferCode"; - $k[$j++] = "Coupon too short: Offer Code truncated"; - $k[$j++] = false; - return true; - } - var _3y = $k[--$j]; - var _3z = $geti(_3y, 6, _3y.length - 6); - $k[$j++] = _3z; - if (_3z.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortSaveValueVLI"; - $k[$j++] = "Coupon too short: Missing Save Value VLI"; - $k[$j++] = false; - return true; - } - var _40 = $k[--$j]; - var _42 = ~~$z($geti(_40, 0, 1)); - $k[$j++] = _40; - $k[$j++] = _42; - if (_42 < 1 || _42 > 5) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBadSaveValueVLI"; - $k[$j++] = "Coupon Save Value length indicator must be 1-5"; - $k[$j++] = false; - return true; - } - var _43 = $k[--$j]; - var _44 = $k[--$j]; - $k[$j++] = _44; - $k[$j++] = $f(_43 + 1); - if ($f(_43 + 1) > _44.length) { - $j -= 3; - $k[$j++] = "bwipp.GS1couponTooShortSaveValue"; - $k[$j++] = "Coupon too short: Save Value truncated"; - $k[$j++] = false; - return true; - } - var _45 = $k[--$j]; - var _46 = $k[--$j]; - var _47 = $geti(_46, _45, $f(_46.length - _45)); - $k[$j++] = _47; - if (_47.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShort1stPurchaseRequirementVLI"; - $k[$j++] = "Coupon too short: Missing 1st Purchase Requirement VLI"; - $k[$j++] = false; - return true; - } - var _48 = $k[--$j]; - var _4A = ~~$z($geti(_48, 0, 1)); - $k[$j++] = _48; - $k[$j++] = _4A; - if (_4A < 1 || _4A > 5) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBad1stPurchaseRequirementVLI"; - $k[$j++] = "Coupon 1st Purchase Requirement length indicator must be 1-5"; - $k[$j++] = false; - return true; - } - var _4B = $k[--$j]; - var _4C = $k[--$j]; - $k[$j++] = _4C; - $k[$j++] = $f(_4B + 1); - if ($f(_4B + 1) > _4C.length) { - $j -= 3; - $k[$j++] = "bwipp.GS1couponTooShort1stPurchaseRequirement"; - $k[$j++] = "Coupon too short: 1st Purchase Requirement truncated"; - $k[$j++] = false; - return true; - } - var _4D = $k[--$j]; - var _4E = $k[--$j]; - var _4F = $geti(_4E, _4D, $f(_4E.length - _4D)); - $k[$j++] = _4F; - if (_4F.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShort1stPurchaseRequirementCode"; - $k[$j++] = "Coupon too short: Missing 1st Purchase Requirement Code"; - $k[$j++] = false; - return true; - } - var _4G = $k[--$j]; - var _4I = ~~$z($geti(_4G, 0, 1)); - $k[$j++] = _4G; - if (_4I > 4 && _4I != 9) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBad1stPurchaseRequirementCode"; - $k[$j++] = "Coupon 1st Purchase Requirement Code must be 0-4 or 9"; - $k[$j++] = false; - return true; - } - var _4J = $k[--$j]; - var _4K = $geti(_4J, 1, _4J.length - 1); - $k[$j++] = _4K; - if (_4K.length < 3) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShort1stPurchaseFamilyCode"; - $k[$j++] = "Coupon too short: 1st Purchase Family Code truncated"; - $k[$j++] = false; - return true; - } - var _4L = $k[--$j]; - var _4M = $geti(_4L, 3, _4L.length - 3); - $k[$j++] = _4M; - if (_4M.length >= 1) { - var _4N = $k[--$j]; - $k[$j++] = _4N; - if (~~$z($geti(_4N, 0, 1)) == 1) { - var _4P = $k[--$j]; - var _4Q = $geti(_4P, 1, _4P.length - 1); - $k[$j++] = _4Q; - if (_4Q.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortAdditionalPurchaseRulesCode"; - $k[$j++] = "Coupon too short: Missing Additional Purchase Rules Code"; - $k[$j++] = false; - return true; - } - var _4R = $k[--$j]; - $k[$j++] = _4R; - if (~~$z($geti(_4R, 0, 1)) > 3) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBadAdditionalPurchaseRulesCode"; - $k[$j++] = "Coupon Additional Purchase Rules Code must be 0-3"; - $k[$j++] = false; - return true; - } - var _4T = $k[--$j]; - var _4U = $geti(_4T, 1, _4T.length - 1); - $k[$j++] = _4U; - if (_4U.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShort2ndPurchaseRequirementVLI"; - $k[$j++] = "Coupon too short: Missing 2nd Purchase Requirement VLI"; - $k[$j++] = false; - return true; - } - var _4V = $k[--$j]; - var _4X = ~~$z($geti(_4V, 0, 1)); - $k[$j++] = _4V; - $k[$j++] = _4X; - if (_4X < 1 || _4X > 5) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBad2ndPurchaseRequirementVLI"; - $k[$j++] = "Coupon 2nd Purchase Requirement length indicator must be 1-5"; - $k[$j++] = false; - return true; - } - var _4Y = $k[--$j]; - var _4Z = $k[--$j]; - $k[$j++] = _4Z; - $k[$j++] = $f(_4Y + 1); - if ($f(_4Y + 1) > _4Z.length) { - $j -= 3; - $k[$j++] = "bwipp.GS1couponTooShort2ndPurchaseRequirement"; - $k[$j++] = "Coupon too short: 2nd Purchase Requirement truncated"; - $k[$j++] = false; - return true; - } - var _4a = $k[--$j]; - var _4b = $k[--$j]; - var _4c = $geti(_4b, _4a, $f(_4b.length - _4a)); - $k[$j++] = _4c; - if (_4c.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShort2ndPurchaseRequirementCode"; - $k[$j++] = "Coupon too short: Missing 2nd Purchase Requirement Code"; - $k[$j++] = false; - return true; - } - var _4d = $k[--$j]; - var _4f = ~~$z($geti(_4d, 0, 1)); - $k[$j++] = _4d; - if (_4f > 4 && _4f != 9) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBad2ndPurchaseRequirementCode"; - $k[$j++] = "Coupon 2nd Purchase Requirement Code must be 0-4 or 9"; - $k[$j++] = false; - return true; - } - var _4g = $k[--$j]; - var _4h = $geti(_4g, 1, _4g.length - 1); - $k[$j++] = _4h; - if (_4h.length < 3) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShort2ndPurchaseFamilyCode"; - $k[$j++] = "Coupon too short: 2nd Purchase Family Code truncated"; - $k[$j++] = false; - return true; - } - var _4i = $k[--$j]; - var _4j = $geti(_4i, 3, _4i.length - 3); - $k[$j++] = _4j; - if (_4j.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShort2ndPurchaseGCPVLI"; - $k[$j++] = "Coupon too short: Missing 2nd Purchase GCP VLI"; - $k[$j++] = false; - return true; - } - var _4k = $k[--$j]; - var _4m = ~~$z($geti(_4k, 0, 1)); - $k[$j++] = _4k; - $k[$j++] = _4m; - if (_4m > 6 && _4m != 9) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBad2ndPurchaseGCPVLI"; - $k[$j++] = "Coupon 2nd Purchase GCP length indicator must be 0-6 or 9"; - $k[$j++] = false; - return true; - } - var _4n = $k[--$j]; - $k[$j++] = _4n; - if (_4n != 9) { - var _4o = $k[--$j]; - $k[$j++] = $f(_4o + 6); - } else { - $j--; - $k[$j++] = 0; - } - var _4p = $k[--$j]; - var _4q = $k[--$j]; - $k[$j++] = _4q; - $k[$j++] = $f(_4p + 1); - if ($f(_4p + 1) > _4q.length) { - $j -= 3; - $k[$j++] = "bwipp.GS1couponTooShort2ndPurchaseGCP"; - $k[$j++] = "Coupon too short: 2nd Purchase GCP truncated"; - $k[$j++] = false; - return true; - } - var _4r = $k[--$j]; - var _4s = $k[--$j]; - $k[$j++] = $geti(_4s, _4r, $f(_4s.length - _4r)); - } - } - var _4u = $k[--$j]; - $k[$j++] = _4u; - if (_4u.length >= 1) { - var _4v = $k[--$j]; - $k[$j++] = _4v; - if (~~$z($geti(_4v, 0, 1)) == 2) { - var _4x = $k[--$j]; - var _4y = $geti(_4x, 1, _4x.length - 1); - $k[$j++] = _4y; - if (_4y.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShort3rdPurchaseRequirementVLI"; - $k[$j++] = "Coupon too short: Missing 3rd Purchase Requirement VLI"; - $k[$j++] = false; - return true; - } - var _4z = $k[--$j]; - var _51 = ~~$z($geti(_4z, 0, 1)); - $k[$j++] = _4z; - $k[$j++] = _51; - if (_51 < 1 || _51 > 5) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBad3rdPurchaseRequirementVLI"; - $k[$j++] = "Coupon 3rd Purchase Requirement length indicator must be 1-5"; - $k[$j++] = false; - return true; - } - var _52 = $k[--$j]; - var _53 = $k[--$j]; - $k[$j++] = _53; - $k[$j++] = $f(_52 + 1); - if ($f(_52 + 1) > _53.length) { - $j -= 3; - $k[$j++] = "bwipp.GS1couponTooShort3rdPurchaseRequirement"; - $k[$j++] = "Coupon too short: 3rd Purchase Requirement truncated"; - $k[$j++] = false; - return true; - } - var _54 = $k[--$j]; - var _55 = $k[--$j]; - var _56 = $geti(_55, _54, $f(_55.length - _54)); - $k[$j++] = _56; - if (_56.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShort3rdPurchaseRequirementCode"; - $k[$j++] = "Coupon too short: Missing 3rd Purchase Requirement Code"; - $k[$j++] = false; - return true; - } - var _57 = $k[--$j]; - var _59 = ~~$z($geti(_57, 0, 1)); - $k[$j++] = _57; - if (_59 > 4 && _59 != 9) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBad3rdPurchaseRequirementCode"; - $k[$j++] = "Coupon 3rd Purchase Requirement Code must be 0-4 or 9"; - $k[$j++] = false; - return true; - } - var _5A = $k[--$j]; - var _5B = $geti(_5A, 1, _5A.length - 1); - $k[$j++] = _5B; - if (_5B.length < 3) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShort3rdPurchaseFamilyCode"; - $k[$j++] = "Coupon too short: 3rd Purchase Family Code truncated"; - $k[$j++] = false; - return true; - } - var _5C = $k[--$j]; - var _5D = $geti(_5C, 3, _5C.length - 3); - $k[$j++] = _5D; - if (_5D.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShort3rdPurchaseGCPVLI"; - $k[$j++] = "Coupon too short: Missing 3rd Purchase GCP VLI"; - $k[$j++] = false; - return true; - } - var _5E = $k[--$j]; - var _5G = ~~$z($geti(_5E, 0, 1)); - $k[$j++] = _5E; - $k[$j++] = _5G; - if (_5G > 6 && _5G != 9) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBad3rdPurchaseGCPVLI"; - $k[$j++] = "Coupon 3rd Purchase GCP length indicator must be 0-6 or 9"; - $k[$j++] = false; - return true; - } - var _5H = $k[--$j]; - $k[$j++] = _5H; - if (_5H != 9) { - var _5I = $k[--$j]; - $k[$j++] = $f(_5I + 6); - } else { - $j--; - $k[$j++] = 0; - } - var _5J = $k[--$j]; - var _5K = $k[--$j]; - $k[$j++] = _5K; - $k[$j++] = $f(_5J + 1); - if ($f(_5J + 1) > _5K.length) { - $j -= 3; - $k[$j++] = "bwipp.GS1couponTooShort3rdPurchaseGCP"; - $k[$j++] = "Coupon too short: 3rd Purchase GCP truncated"; - $k[$j++] = false; - return true; - } - var _5L = $k[--$j]; - var _5M = $k[--$j]; - $k[$j++] = $geti(_5M, _5L, $f(_5M.length - _5L)); - } - } - $1.couponexpire = -1; - var _5O = $k[--$j]; - $k[$j++] = _5O; - if (_5O.length >= 1) { - var _5P = $k[--$j]; - $k[$j++] = _5P; - if (~~$z($geti(_5P, 0, 1)) == 3) { - var _5R = $k[--$j]; - var _5S = $geti(_5R, 1, _5R.length - 1); - $k[$j++] = _5S; - if (_5S.length < 6) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortExpirationDate"; - $k[$j++] = "Coupon too short: Expiration date"; - $k[$j++] = false; - return true; - } - var _5T = $k[--$j]; - var _5V = ~~$z($geti(_5T, 2, 2)); - $k[$j++] = _5T; - if (_5V < 1 || _5V > 12) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponExpirationDateBadMonth"; - $k[$j++] = "Invalid month in expiration date"; - $k[$j++] = false; - return true; - } - var _5W = $k[--$j]; - var _5Y = ~~$z($geti(_5W, 0, 2)); - var _5Z = _5Y - 21; - $k[$j++] = _5W; - $k[$j++] = _5Y; - $k[$j++] = _5Z; - if (_5Z >= 51) { - $j--; - var _5a = $k[--$j]; - $k[$j++] = $f(_5a + 1900); - } else { - if ($k[--$j] <= -50) { - var _5c = $k[--$j]; - $k[$j++] = $f(_5c + 2100); - } else { - var _5d = $k[--$j]; - $k[$j++] = $f(_5d + 2e3); - } - } - var _5e = $k[--$j]; - $k[$j++] = _5e % 400 == 0 || _5e % 4 == 0 && _5e % 100 != 0; - $k[$j++] = Infinity; - var _5f = $k[--$j]; - var _5h = $k[--$j] ? 29 : 28; - $k[$j++] = _5f; - $k[$j++] = 31; - $k[$j++] = _5h; - $k[$j++] = 31; - $k[$j++] = 30; - $k[$j++] = 31; - $k[$j++] = 30; - $k[$j++] = 31; - $k[$j++] = 31; - $k[$j++] = 30; - $k[$j++] = 31; - $k[$j++] = 30; - $k[$j++] = 31; - var _5i = $a(); - var _5j = $k[--$j]; - var _5n = ~~$z($geti(_5j, 4, 2)); - $k[$j++] = _5j; - if ($get(_5i, ~~$z($geti(_5j, 2, 2)) - 1) < _5n || _5n < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponExpirationDateBadDay"; - $k[$j++] = "Invalid day of month in expiration date"; - $k[$j++] = false; - return true; - } - var _5o = $k[--$j]; - $1.couponexpire = ~~$z($geti(_5o, 0, 6)); - $k[$j++] = $geti(_5o, 6, _5o.length - 6); - } - } - var _5r = $k[--$j]; - $k[$j++] = _5r; - if (_5r.length >= 1) { - var _5s = $k[--$j]; - $k[$j++] = _5s; - if (~~$z($geti(_5s, 0, 1)) == 4) { - var _5u = $k[--$j]; - var _5v = $geti(_5u, 1, _5u.length - 1); - $k[$j++] = _5v; - if (_5v.length < 6) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortStartDate"; - $k[$j++] = "Coupon too short: Start date"; - $k[$j++] = false; - return true; - } - var _5w = $k[--$j]; - var _5y = ~~$z($geti(_5w, 2, 2)); - $k[$j++] = _5w; - if (_5y < 1 || _5y > 12) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponStartDateBadMonth"; - $k[$j++] = "Invalid month in start date"; - $k[$j++] = false; - return true; - } - var _5z = $k[--$j]; - var _61 = ~~$z($geti(_5z, 0, 2)); - var _62 = _61 - 21; - $k[$j++] = _5z; - $k[$j++] = _61; - $k[$j++] = _62; - if (_62 >= 51) { - $j--; - var _63 = $k[--$j]; - $k[$j++] = $f(_63 + 1900); - } else { - if ($k[--$j] <= -50) { - var _65 = $k[--$j]; - $k[$j++] = $f(_65 + 2100); - } else { - var _66 = $k[--$j]; - $k[$j++] = $f(_66 + 2e3); - } - } - var _67 = $k[--$j]; - $k[$j++] = _67 % 400 == 0 || _67 % 4 == 0 && _67 % 100 != 0; - $k[$j++] = Infinity; - var _68 = $k[--$j]; - var _6A = $k[--$j] ? 29 : 28; - $k[$j++] = _68; - $k[$j++] = 31; - $k[$j++] = _6A; - $k[$j++] = 31; - $k[$j++] = 30; - $k[$j++] = 31; - $k[$j++] = 30; - $k[$j++] = 31; - $k[$j++] = 31; - $k[$j++] = 30; - $k[$j++] = 31; - $k[$j++] = 30; - $k[$j++] = 31; - var _6B = $a(); - var _6C = $k[--$j]; - var _6G = ~~$z($geti(_6C, 4, 2)); - $k[$j++] = _6C; - if ($get(_6B, ~~$z($geti(_6C, 2, 2)) - 1) < _6G || _6G < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponStartDateBadDay"; - $k[$j++] = "Invalid day of month in start date"; - $k[$j++] = false; - return true; - } - var _6H = $k[--$j]; - $1.couponstart = ~~$z($geti(_6H, 0, 6)); - $k[$j++] = _6H; - if ($1.couponexpire != -1 && $1.couponexpire < $1.couponstart) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponExpireDateBeforeStartDate"; - $k[$j++] = "Coupon expires before it starts"; - $k[$j++] = false; - return true; - } - var _6M = $k[--$j]; - $k[$j++] = $geti(_6M, 6, _6M.length - 6); - } - } - var _6O = $k[--$j]; - $k[$j++] = _6O; - if (_6O.length >= 1) { - var _6P = $k[--$j]; - $k[$j++] = _6P; - if (~~$z($geti(_6P, 0, 1)) == 5) { - var _6R = $k[--$j]; - var _6S = $geti(_6R, 1, _6R.length - 1); - $k[$j++] = _6S; - if (_6S.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortSerialNumberVLI"; - $k[$j++] = "Coupon too short: Missing Serial Number VLI"; - $k[$j++] = false; - return true; - } - var _6T = $k[--$j]; - var _6U = $geti(_6T, 0, 1); - $k[$j++] = _6T; - $k[$j++] = ~~$z(_6U) + 6 + 1; - if (~~$z(_6U) + 6 + 1 > _6T.length) { - $j -= 3; - $k[$j++] = "bwipp.GS1couponTooShortSerialNumber"; - $k[$j++] = "Coupon too short: Serial Number truncated"; - $k[$j++] = false; - return true; - } - var _6V = $k[--$j]; - var _6W = $k[--$j]; - $k[$j++] = $geti(_6W, _6V, $f(_6W.length - _6V)); - } - } - var _6Y = $k[--$j]; - $k[$j++] = _6Y; - if (_6Y.length >= 1) { - var _6Z = $k[--$j]; - $k[$j++] = _6Z; - if (~~$z($geti(_6Z, 0, 1)) == 6) { - var _6b = $k[--$j]; - var _6c = $geti(_6b, 1, _6b.length - 1); - $k[$j++] = _6c; - if (_6c.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortRetailerGCPGLNVLI"; - $k[$j++] = "Coupon too short: Missing Retailer GCP/GLN VLI"; - $k[$j++] = false; - return true; - } - var _6d = $k[--$j]; - var _6f = ~~$z($geti(_6d, 0, 1)); - $k[$j++] = _6d; - $k[$j++] = _6f; - if (_6f < 1 || _6f > 7) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBadRetailerGCPGLNVLI"; - $k[$j++] = "Coupon Retailer GCP/GLN length indicator must be 1-7"; - $k[$j++] = false; - return true; - } - var _6g = $k[--$j]; - var _6h = $k[--$j]; - $k[$j++] = _6h; - $k[$j++] = $f($f(_6g + 6) + 1); - if ($f($f(_6g + 6) + 1) > _6h.length) { - $j -= 3; - $k[$j++] = "bwipp.GS1couponTooShortRetailerGCPGLN"; - $k[$j++] = "Coupon too short: Retailer GCP/GLN truncated"; - $k[$j++] = false; - return true; - } - var _6i = $k[--$j]; - var _6j = $k[--$j]; - $k[$j++] = $geti(_6j, _6i, $f(_6j.length - _6i)); - } - } - var _6l = $k[--$j]; - $k[$j++] = _6l; - if (_6l.length >= 1) { - var _6m = $k[--$j]; - $k[$j++] = _6m; - if (~~$z($geti(_6m, 0, 1)) == 9) { - var _6o = $k[--$j]; - var _6p = $geti(_6o, 1, _6o.length - 1); - $k[$j++] = _6p; - if (_6p.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortSaveValueCode"; - $k[$j++] = "Coupon too short: Missing Save Value Code"; - $k[$j++] = false; - return true; - } - var _6q = $k[--$j]; - var _6s = ~~$z($geti(_6q, 0, 1)); - $k[$j++] = _6q; - if (_6s > 6 || (_6s == 3 || _6s == 4)) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBadSaveValueCode"; - $k[$j++] = "Coupon Save Value Code must be 0,1,2,5 or 6"; - $k[$j++] = false; - return true; - } - var _6t = $k[--$j]; - var _6u = $geti(_6t, 1, _6t.length - 1); - $k[$j++] = _6u; - if (_6u.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortSaveValueAppliesToItem"; - $k[$j++] = "Coupon too short: Missing Save Value Applies to Item"; - $k[$j++] = false; - return true; - } - var _6v = $k[--$j]; - $k[$j++] = _6v; - if (~~$z($geti(_6v, 0, 1)) > 2) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBadSaveValueAppliesToItem"; - $k[$j++] = "Coupon Save Value Applies to Item must be 0-2"; - $k[$j++] = false; - return true; - } - var _6x = $k[--$j]; - var _6y = $geti(_6x, 1, _6x.length - 1); - $k[$j++] = _6y; - if (_6y.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortStoreCouponFlag"; - $k[$j++] = "Coupon too short: Missing Store Coupon Flag"; - $k[$j++] = false; - return true; - } - var _6z = $k[--$j]; - var _70 = $geti(_6z, 1, _6z.length - 1); - $k[$j++] = _70; - if (_70.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortDontMultiplyFlag"; - $k[$j++] = "Coupon too short: Missing Don't Multiply Flag"; - $k[$j++] = false; - return true; - } - var _71 = $k[--$j]; - $k[$j++] = _71; - if (~~$z($geti(_71, 0, 1)) > 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBadDontMultiplyFlag"; - $k[$j++] = "Don't Multiply Flag must be 0 or 1"; - $k[$j++] = false; - return true; - } - var _73 = $k[--$j]; - $k[$j++] = $geti(_73, 1, _73.length - 1); - } - } - var _75 = $k[--$j]; - $k[$j++] = _75; - if (_75.length != 0) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponUnrecognisedOptionalField"; - $k[$j++] = "Coupon fields must be 1,2,3,4,5,6 or 9, increasing order"; - $k[$j++] = false; - return true; - } - $j--; - }; + var _3m = $k[--$j]; //#517 + $k[$j++] = _3m; //#519 + $k[$j++] = true; //#519 + $forall(_3m, function() { //#519 + var _3n = $k[--$j]; //#518 + if ((_3n < 48) || (_3n > 57)) { //#518 + $j--; //#518 + $k[$j++] = false; //#518 + return true; //#518 + } //#518 + }); //#518 + if ($nt($k[--$j])) { //#520 + $j -= 2; //#520 + $k[$j++] = 'bwipp.GS1couponNotNumeric'; //#520 + $k[$j++] = "Coupon not numeric"; //#520 + $k[$j++] = false; //#520 + return true; //#520 + } //#520 + var _3p = $k[--$j]; //#523 + $k[$j++] = _3p; //#525 + if (_3p.length < 1) { //#525 + $j -= 2; //#524 + $k[$j++] = 'bwipp.GS1couponTooShortGCPVLI'; //#524 + $k[$j++] = "Coupon too short: Missing GCP VLI"; //#524 + $k[$j++] = false; //#524 + return true; //#524 + } //#524 + var _3q = $k[--$j]; //#526 + var _3s = ~~$z($geti(_3q, 0, 1)); //#526 + $k[$j++] = _3q; //#528 + $k[$j++] = _3s; //#528 + if (_3s > 6) { //#528 + $j -= 2; //#527 + $k[$j++] = 'bwipp.GS1couponBadGCPVLI'; //#527 + $k[$j++] = "Coupon GCP length indicator must be 0-6"; //#527 + $k[$j++] = false; //#527 + return true; //#527 + } //#527 + var _3t = $k[--$j]; //#529 + var _3u = $k[--$j]; //#530 + $k[$j++] = _3u; //#532 + $k[$j++] = $f($f(_3t + 6) + 1); //#532 + if (($f($f(_3t + 6) + 1)) > _3u.length) { //#532 + $j -= 3; //#531 + $k[$j++] = 'bwipp.GS1couponTooShortGCP'; //#531 + $k[$j++] = "Coupon too short: GCP truncated"; //#531 + $k[$j++] = false; //#531 + return true; //#531 + } //#531 + var _3v = $k[--$j]; //#533 + var _3w = $k[--$j]; //#533 + var _3x = $geti(_3w, _3v, $f(_3w.length - _3v)); //#533 + $k[$j++] = _3x; //#538 + if (_3x.length < 6) { //#538 + $j -= 2; //#537 + $k[$j++] = 'bwipp.GS1couponTooShortOfferCode'; //#537 + $k[$j++] = "Coupon too short: Offer Code truncated"; //#537 + $k[$j++] = false; //#537 + return true; //#537 + } //#537 + var _3y = $k[--$j]; //#539 + var _3z = $geti(_3y, 6, _3y.length - 6); //#539 + $k[$j++] = _3z; //#544 + if (_3z.length < 1) { //#544 + $j -= 2; //#543 + $k[$j++] = 'bwipp.GS1couponTooShortSaveValueVLI'; //#543 + $k[$j++] = "Coupon too short: Missing Save Value VLI"; //#543 + $k[$j++] = false; //#543 + return true; //#543 + } //#543 + var _40 = $k[--$j]; //#545 + var _42 = ~~$z($geti(_40, 0, 1)); //#545 + $k[$j++] = _40; //#547 + $k[$j++] = _42; //#547 + if ((_42 < 1) || (_42 > 5)) { //#547 + $j -= 2; //#546 + $k[$j++] = 'bwipp.GS1couponBadSaveValueVLI'; //#546 + $k[$j++] = "Coupon Save Value length indicator must be 1-5"; //#546 + $k[$j++] = false; //#546 + return true; //#546 + } //#546 + var _43 = $k[--$j]; //#548 + var _44 = $k[--$j]; //#549 + $k[$j++] = _44; //#551 + $k[$j++] = $f(_43 + 1); //#551 + if ($f(_43 + 1) > _44.length) { //#551 + $j -= 3; //#550 + $k[$j++] = 'bwipp.GS1couponTooShortSaveValue'; //#550 + $k[$j++] = "Coupon too short: Save Value truncated"; //#550 + $k[$j++] = false; //#550 + return true; //#550 + } //#550 + var _45 = $k[--$j]; //#552 + var _46 = $k[--$j]; //#552 + var _47 = $geti(_46, _45, $f(_46.length - _45)); //#552 + $k[$j++] = _47; //#557 + if (_47.length < 1) { //#557 + $j -= 2; //#556 + $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseRequirementVLI'; //#556 + $k[$j++] = "Coupon too short: Missing 1st Purchase Requirement VLI"; //#556 + $k[$j++] = false; //#556 + return true; //#556 + } //#556 + var _48 = $k[--$j]; //#558 + var _4A = ~~$z($geti(_48, 0, 1)); //#558 + $k[$j++] = _48; //#560 + $k[$j++] = _4A; //#560 + if ((_4A < 1) || (_4A > 5)) { //#560 + $j -= 2; //#559 + $k[$j++] = 'bwipp.GS1couponBad1stPurchaseRequirementVLI'; //#559 + $k[$j++] = "Coupon 1st Purchase Requirement length indicator must be 1-5"; //#559 + $k[$j++] = false; //#559 + return true; //#559 + } //#559 + var _4B = $k[--$j]; //#561 + var _4C = $k[--$j]; //#562 + $k[$j++] = _4C; //#564 + $k[$j++] = $f(_4B + 1); //#564 + if ($f(_4B + 1) > _4C.length) { //#564 + $j -= 3; //#563 + $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseRequirement'; //#563 + $k[$j++] = "Coupon too short: 1st Purchase Requirement truncated"; //#563 + $k[$j++] = false; //#563 + return true; //#563 + } //#563 + var _4D = $k[--$j]; //#565 + var _4E = $k[--$j]; //#565 + var _4F = $geti(_4E, _4D, $f(_4E.length - _4D)); //#565 + $k[$j++] = _4F; //#570 + if (_4F.length < 1) { //#570 + $j -= 2; //#569 + $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseRequirementCode'; //#569 + $k[$j++] = "Coupon too short: Missing 1st Purchase Requirement Code"; //#569 + $k[$j++] = false; //#569 + return true; //#569 + } //#569 + var _4G = $k[--$j]; //#571 + var _4I = ~~$z($geti(_4G, 0, 1)); //#571 + $k[$j++] = _4G; //#573 + if ((_4I > 4) && (_4I != 9)) { //#573 + $j -= 2; //#572 + $k[$j++] = 'bwipp.GS1couponBad1stPurchaseRequirementCode'; //#572 + $k[$j++] = "Coupon 1st Purchase Requirement Code must be 0-4 or 9"; //#572 + $k[$j++] = false; //#572 + return true; //#572 + } //#572 + var _4J = $k[--$j]; //#574 + var _4K = $geti(_4J, 1, _4J.length - 1); //#574 + $k[$j++] = _4K; //#579 + if (_4K.length < 3) { //#579 + $j -= 2; //#578 + $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseFamilyCode'; //#578 + $k[$j++] = "Coupon too short: 1st Purchase Family Code truncated"; //#578 + $k[$j++] = false; //#578 + return true; //#578 + } //#578 + var _4L = $k[--$j]; //#580 + var _4M = $geti(_4L, 3, _4L.length - 3); //#580 + $k[$j++] = _4M; //#636 + if (_4M.length >= 1) { //#636 + var _4N = $k[--$j]; //#583 + $k[$j++] = _4N; //#636 + if ((~~$z($geti(_4N, 0, 1))) == 1) { //#636 + var _4P = $k[--$j]; //#584 + var _4Q = $geti(_4P, 1, _4P.length - 1); //#584 + $k[$j++] = _4Q; //#589 + if (_4Q.length < 1) { //#589 + $j -= 2; //#588 + $k[$j++] = 'bwipp.GS1couponTooShortAdditionalPurchaseRulesCode'; //#588 + $k[$j++] = "Coupon too short: Missing Additional Purchase Rules Code"; //#588 + $k[$j++] = false; //#588 + return true; //#588 + } //#588 + var _4R = $k[--$j]; //#590 + $k[$j++] = _4R; //#592 + if ((~~$z($geti(_4R, 0, 1))) > 3) { //#592 + $j -= 2; //#591 + $k[$j++] = 'bwipp.GS1couponBadAdditionalPurchaseRulesCode'; //#591 + $k[$j++] = "Coupon Additional Purchase Rules Code must be 0-3"; //#591 + $k[$j++] = false; //#591 + return true; //#591 + } //#591 + var _4T = $k[--$j]; //#593 + var _4U = $geti(_4T, 1, _4T.length - 1); //#593 + $k[$j++] = _4U; //#598 + if (_4U.length < 1) { //#598 + $j -= 2; //#597 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseRequirementVLI'; //#597 + $k[$j++] = "Coupon too short: Missing 2nd Purchase Requirement VLI"; //#597 + $k[$j++] = false; //#597 + return true; //#597 + } //#597 + var _4V = $k[--$j]; //#599 + var _4X = ~~$z($geti(_4V, 0, 1)); //#599 + $k[$j++] = _4V; //#601 + $k[$j++] = _4X; //#601 + if ((_4X < 1) || (_4X > 5)) { //#601 + $j -= 2; //#600 + $k[$j++] = 'bwipp.GS1couponBad2ndPurchaseRequirementVLI'; //#600 + $k[$j++] = "Coupon 2nd Purchase Requirement length indicator must be 1-5"; //#600 + $k[$j++] = false; //#600 + return true; //#600 + } //#600 + var _4Y = $k[--$j]; //#602 + var _4Z = $k[--$j]; //#603 + $k[$j++] = _4Z; //#605 + $k[$j++] = $f(_4Y + 1); //#605 + if ($f(_4Y + 1) > _4Z.length) { //#605 + $j -= 3; //#604 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseRequirement'; //#604 + $k[$j++] = "Coupon too short: 2nd Purchase Requirement truncated"; //#604 + $k[$j++] = false; //#604 + return true; //#604 + } //#604 + var _4a = $k[--$j]; //#606 + var _4b = $k[--$j]; //#606 + var _4c = $geti(_4b, _4a, $f(_4b.length - _4a)); //#606 + $k[$j++] = _4c; //#611 + if (_4c.length < 1) { //#611 + $j -= 2; //#610 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseRequirementCode'; //#610 + $k[$j++] = "Coupon too short: Missing 2nd Purchase Requirement Code"; //#610 + $k[$j++] = false; //#610 + return true; //#610 + } //#610 + var _4d = $k[--$j]; //#612 + var _4f = ~~$z($geti(_4d, 0, 1)); //#612 + $k[$j++] = _4d; //#614 + if ((_4f > 4) && (_4f != 9)) { //#614 + $j -= 2; //#613 + $k[$j++] = 'bwipp.GS1couponBad2ndPurchaseRequirementCode'; //#613 + $k[$j++] = "Coupon 2nd Purchase Requirement Code must be 0-4 or 9"; //#613 + $k[$j++] = false; //#613 + return true; //#613 + } //#613 + var _4g = $k[--$j]; //#615 + var _4h = $geti(_4g, 1, _4g.length - 1); //#615 + $k[$j++] = _4h; //#620 + if (_4h.length < 3) { //#620 + $j -= 2; //#619 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseFamilyCode'; //#619 + $k[$j++] = "Coupon too short: 2nd Purchase Family Code truncated"; //#619 + $k[$j++] = false; //#619 + return true; //#619 + } //#619 + var _4i = $k[--$j]; //#621 + var _4j = $geti(_4i, 3, _4i.length - 3); //#621 + $k[$j++] = _4j; //#626 + if (_4j.length < 1) { //#626 + $j -= 2; //#625 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseGCPVLI'; //#625 + $k[$j++] = "Coupon too short: Missing 2nd Purchase GCP VLI"; //#625 + $k[$j++] = false; //#625 + return true; //#625 + } //#625 + var _4k = $k[--$j]; //#627 + var _4m = ~~$z($geti(_4k, 0, 1)); //#627 + $k[$j++] = _4k; //#629 + $k[$j++] = _4m; //#629 + if ((_4m > 6) && (_4m != 9)) { //#629 + $j -= 2; //#628 + $k[$j++] = 'bwipp.GS1couponBad2ndPurchaseGCPVLI'; //#628 + $k[$j++] = "Coupon 2nd Purchase GCP length indicator must be 0-6 or 9"; //#628 + $k[$j++] = false; //#628 + return true; //#628 + } //#628 + var _4n = $k[--$j]; //#630 + $k[$j++] = _4n; //#630 + if (_4n != 9) { //#630 + var _4o = $k[--$j]; //#630 + $k[$j++] = $f(_4o + 6); //#630 + } else { //#630 + $j--; //#630 + $k[$j++] = 0; //#630 + } //#630 + var _4p = $k[--$j]; //#630 + var _4q = $k[--$j]; //#631 + $k[$j++] = _4q; //#633 + $k[$j++] = $f(_4p + 1); //#633 + if ($f(_4p + 1) > _4q.length) { //#633 + $j -= 3; //#632 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseGCP'; //#632 + $k[$j++] = "Coupon too short: 2nd Purchase GCP truncated"; //#632 + $k[$j++] = false; //#632 + return true; //#632 + } //#632 + var _4r = $k[--$j]; //#634 + var _4s = $k[--$j]; //#634 + $k[$j++] = $geti(_4s, _4r, $f(_4s.length - _4r)); //#634 + } //#634 + } //#634 + var _4u = $k[--$j]; //#639 + $k[$j++] = _4u; //#683 + if (_4u.length >= 1) { //#683 + var _4v = $k[--$j]; //#639 + $k[$j++] = _4v; //#683 + if ((~~$z($geti(_4v, 0, 1))) == 2) { //#683 + var _4x = $k[--$j]; //#640 + var _4y = $geti(_4x, 1, _4x.length - 1); //#640 + $k[$j++] = _4y; //#645 + if (_4y.length < 1) { //#645 + $j -= 2; //#644 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseRequirementVLI'; //#644 + $k[$j++] = "Coupon too short: Missing 3rd Purchase Requirement VLI"; //#644 + $k[$j++] = false; //#644 + return true; //#644 + } //#644 + var _4z = $k[--$j]; //#646 + var _51 = ~~$z($geti(_4z, 0, 1)); //#646 + $k[$j++] = _4z; //#648 + $k[$j++] = _51; //#648 + if ((_51 < 1) || (_51 > 5)) { //#648 + $j -= 2; //#647 + $k[$j++] = 'bwipp.GS1couponBad3rdPurchaseRequirementVLI'; //#647 + $k[$j++] = "Coupon 3rd Purchase Requirement length indicator must be 1-5"; //#647 + $k[$j++] = false; //#647 + return true; //#647 + } //#647 + var _52 = $k[--$j]; //#649 + var _53 = $k[--$j]; //#650 + $k[$j++] = _53; //#652 + $k[$j++] = $f(_52 + 1); //#652 + if ($f(_52 + 1) > _53.length) { //#652 + $j -= 3; //#651 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseRequirement'; //#651 + $k[$j++] = "Coupon too short: 3rd Purchase Requirement truncated"; //#651 + $k[$j++] = false; //#651 + return true; //#651 + } //#651 + var _54 = $k[--$j]; //#653 + var _55 = $k[--$j]; //#653 + var _56 = $geti(_55, _54, $f(_55.length - _54)); //#653 + $k[$j++] = _56; //#658 + if (_56.length < 1) { //#658 + $j -= 2; //#657 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseRequirementCode'; //#657 + $k[$j++] = "Coupon too short: Missing 3rd Purchase Requirement Code"; //#657 + $k[$j++] = false; //#657 + return true; //#657 + } //#657 + var _57 = $k[--$j]; //#659 + var _59 = ~~$z($geti(_57, 0, 1)); //#659 + $k[$j++] = _57; //#661 + if ((_59 > 4) && (_59 != 9)) { //#661 + $j -= 2; //#660 + $k[$j++] = 'bwipp.GS1couponBad3rdPurchaseRequirementCode'; //#660 + $k[$j++] = "Coupon 3rd Purchase Requirement Code must be 0-4 or 9"; //#660 + $k[$j++] = false; //#660 + return true; //#660 + } //#660 + var _5A = $k[--$j]; //#662 + var _5B = $geti(_5A, 1, _5A.length - 1); //#662 + $k[$j++] = _5B; //#667 + if (_5B.length < 3) { //#667 + $j -= 2; //#666 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseFamilyCode'; //#666 + $k[$j++] = "Coupon too short: 3rd Purchase Family Code truncated"; //#666 + $k[$j++] = false; //#666 + return true; //#666 + } //#666 + var _5C = $k[--$j]; //#668 + var _5D = $geti(_5C, 3, _5C.length - 3); //#668 + $k[$j++] = _5D; //#673 + if (_5D.length < 1) { //#673 + $j -= 2; //#672 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseGCPVLI'; //#672 + $k[$j++] = "Coupon too short: Missing 3rd Purchase GCP VLI"; //#672 + $k[$j++] = false; //#672 + return true; //#672 + } //#672 + var _5E = $k[--$j]; //#674 + var _5G = ~~$z($geti(_5E, 0, 1)); //#674 + $k[$j++] = _5E; //#676 + $k[$j++] = _5G; //#676 + if ((_5G > 6) && (_5G != 9)) { //#676 + $j -= 2; //#675 + $k[$j++] = 'bwipp.GS1couponBad3rdPurchaseGCPVLI'; //#675 + $k[$j++] = "Coupon 3rd Purchase GCP length indicator must be 0-6 or 9"; //#675 + $k[$j++] = false; //#675 + return true; //#675 + } //#675 + var _5H = $k[--$j]; //#677 + $k[$j++] = _5H; //#677 + if (_5H != 9) { //#677 + var _5I = $k[--$j]; //#677 + $k[$j++] = $f(_5I + 6); //#677 + } else { //#677 + $j--; //#677 + $k[$j++] = 0; //#677 + } //#677 + var _5J = $k[--$j]; //#677 + var _5K = $k[--$j]; //#678 + $k[$j++] = _5K; //#680 + $k[$j++] = $f(_5J + 1); //#680 + if ($f(_5J + 1) > _5K.length) { //#680 + $j -= 3; //#679 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseGCP'; //#679 + $k[$j++] = "Coupon too short: 3rd Purchase GCP truncated"; //#679 + $k[$j++] = false; //#679 + return true; //#679 + } //#679 + var _5L = $k[--$j]; //#681 + var _5M = $k[--$j]; //#681 + $k[$j++] = $geti(_5M, _5L, $f(_5M.length - _5L)); //#681 + } //#681 + } //#681 + $1.couponexpire = -1; //#686 + var _5O = $k[--$j]; //#687 + $k[$j++] = _5O; //#705 + if (_5O.length >= 1) { //#705 + var _5P = $k[--$j]; //#687 + $k[$j++] = _5P; //#705 + if ((~~$z($geti(_5P, 0, 1))) == 3) { //#705 + var _5R = $k[--$j]; //#688 + var _5S = $geti(_5R, 1, _5R.length - 1); //#688 + $k[$j++] = _5S; //#693 + if (_5S.length < 6) { //#693 + $j -= 2; //#692 + $k[$j++] = 'bwipp.GS1couponTooShortExpirationDate'; //#692 + $k[$j++] = "Coupon too short: Expiration date"; //#692 + $k[$j++] = false; //#692 + return true; //#692 + } //#692 + var _5T = $k[--$j]; //#694 + var _5V = ~~$z($geti(_5T, 2, 2)); //#694 + $k[$j++] = _5T; //#694 + if ((_5V < 1) || (_5V > 12)) { //#694 + $j -= 2; //#694 + $k[$j++] = 'bwipp.GS1couponExpirationDateBadMonth'; //#694 + $k[$j++] = "Invalid month in expiration date"; //#694 + $k[$j++] = false; //#694 + return true; //#694 + } //#694 + var _5W = $k[--$j]; //#695 + var _5Y = ~~$z($geti(_5W, 0, 2)); //#695 + var _5Z = _5Y - 21; //#696 + $k[$j++] = _5W; //#696 + $k[$j++] = _5Y; //#696 + $k[$j++] = _5Z; //#696 + if (_5Z >= 51) { //#696 + $j--; //#696 + var _5a = $k[--$j]; //#696 + $k[$j++] = $f(_5a + 1900); //#696 + } else { //#696 + if ($k[--$j] <= -50) { //#696 + var _5c = $k[--$j]; //#696 + $k[$j++] = $f(_5c + 2100); //#696 + } else { //#696 + var _5d = $k[--$j]; //#696 + $k[$j++] = $f(_5d + 2000); //#696 + } //#696 + } //#696 + var _5e = $k[--$j]; //#697 + $k[$j++] = ((_5e % 400) == 0) || (((_5e % 4) == 0) && ((_5e % 100) != 0)); //#698 + $k[$j++] = Infinity; //#698 + var _5f = $k[--$j]; //#698 + var _5h = $k[--$j] ? 29 : 28; //#698 + $k[$j++] = _5f; //#698 + $k[$j++] = 31; //#698 + $k[$j++] = _5h; //#698 + $k[$j++] = 31; //#698 + $k[$j++] = 30; //#698 + $k[$j++] = 31; //#698 + $k[$j++] = 30; //#698 + $k[$j++] = 31; //#698 + $k[$j++] = 31; //#698 + $k[$j++] = 30; //#698 + $k[$j++] = 31; //#698 + $k[$j++] = 30; //#698 + $k[$j++] = 31; //#698 + var _5i = $a(); //#698 + var _5j = $k[--$j]; //#699 + var _5n = ~~$z($geti(_5j, 4, 2)); //#700 + $k[$j++] = _5j; //#701 + if (($get(_5i, (~~$z($geti(_5j, 2, 2))) - 1) < _5n) || (_5n < 1)) { //#701 + $j -= 2; //#701 + $k[$j++] = 'bwipp.GS1couponExpirationDateBadDay'; //#701 + $k[$j++] = "Invalid day of month in expiration date"; //#701 + $k[$j++] = false; //#701 + return true; //#701 + } //#701 + var _5o = $k[--$j]; //#702 + $1.couponexpire = ~~$z($geti(_5o, 0, 6)); //#702 + $k[$j++] = $geti(_5o, 6, _5o.length - 6); //#703 + } //#703 + } //#703 + var _5r = $k[--$j]; //#708 + $k[$j++] = _5r; //#729 + if (_5r.length >= 1) { //#729 + var _5s = $k[--$j]; //#708 + $k[$j++] = _5s; //#729 + if ((~~$z($geti(_5s, 0, 1))) == 4) { //#729 + var _5u = $k[--$j]; //#709 + var _5v = $geti(_5u, 1, _5u.length - 1); //#709 + $k[$j++] = _5v; //#714 + if (_5v.length < 6) { //#714 + $j -= 2; //#713 + $k[$j++] = 'bwipp.GS1couponTooShortStartDate'; //#713 + $k[$j++] = "Coupon too short: Start date"; //#713 + $k[$j++] = false; //#713 + return true; //#713 + } //#713 + var _5w = $k[--$j]; //#715 + var _5y = ~~$z($geti(_5w, 2, 2)); //#715 + $k[$j++] = _5w; //#715 + if ((_5y < 1) || (_5y > 12)) { //#715 + $j -= 2; //#715 + $k[$j++] = 'bwipp.GS1couponStartDateBadMonth'; //#715 + $k[$j++] = "Invalid month in start date"; //#715 + $k[$j++] = false; //#715 + return true; //#715 + } //#715 + var _5z = $k[--$j]; //#716 + var _61 = ~~$z($geti(_5z, 0, 2)); //#716 + var _62 = _61 - 21; //#717 + $k[$j++] = _5z; //#717 + $k[$j++] = _61; //#717 + $k[$j++] = _62; //#717 + if (_62 >= 51) { //#717 + $j--; //#717 + var _63 = $k[--$j]; //#717 + $k[$j++] = $f(_63 + 1900); //#717 + } else { //#717 + if ($k[--$j] <= -50) { //#717 + var _65 = $k[--$j]; //#717 + $k[$j++] = $f(_65 + 2100); //#717 + } else { //#717 + var _66 = $k[--$j]; //#717 + $k[$j++] = $f(_66 + 2000); //#717 + } //#717 + } //#717 + var _67 = $k[--$j]; //#718 + $k[$j++] = ((_67 % 400) == 0) || (((_67 % 4) == 0) && ((_67 % 100) != 0)); //#719 + $k[$j++] = Infinity; //#719 + var _68 = $k[--$j]; //#719 + var _6A = $k[--$j] ? 29 : 28; //#719 + $k[$j++] = _68; //#719 + $k[$j++] = 31; //#719 + $k[$j++] = _6A; //#719 + $k[$j++] = 31; //#719 + $k[$j++] = 30; //#719 + $k[$j++] = 31; //#719 + $k[$j++] = 30; //#719 + $k[$j++] = 31; //#719 + $k[$j++] = 31; //#719 + $k[$j++] = 30; //#719 + $k[$j++] = 31; //#719 + $k[$j++] = 30; //#719 + $k[$j++] = 31; //#719 + var _6B = $a(); //#719 + var _6C = $k[--$j]; //#720 + var _6G = ~~$z($geti(_6C, 4, 2)); //#721 + $k[$j++] = _6C; //#722 + if (($get(_6B, (~~$z($geti(_6C, 2, 2))) - 1) < _6G) || (_6G < 1)) { //#722 + $j -= 2; //#722 + $k[$j++] = 'bwipp.GS1couponStartDateBadDay'; //#722 + $k[$j++] = "Invalid day of month in start date"; //#722 + $k[$j++] = false; //#722 + return true; //#722 + } //#722 + var _6H = $k[--$j]; //#723 + $1.couponstart = ~~$z($geti(_6H, 0, 6)); //#723 + $k[$j++] = _6H; //#726 + if (($1.couponexpire != -1) && ($1.couponexpire < $1.couponstart)) { //#726 + $j -= 2; //#725 + $k[$j++] = 'bwipp.GS1couponExpireDateBeforeStartDate'; //#725 + $k[$j++] = "Coupon expires before it starts"; //#725 + $k[$j++] = false; //#725 + return true; //#725 + } //#725 + var _6M = $k[--$j]; //#727 + $k[$j++] = $geti(_6M, 6, _6M.length - 6); //#727 + } //#727 + } //#727 + var _6O = $k[--$j]; //#732 + $k[$j++] = _6O; //#745 + if (_6O.length >= 1) { //#745 + var _6P = $k[--$j]; //#732 + $k[$j++] = _6P; //#745 + if ((~~$z($geti(_6P, 0, 1))) == 5) { //#745 + var _6R = $k[--$j]; //#733 + var _6S = $geti(_6R, 1, _6R.length - 1); //#733 + $k[$j++] = _6S; //#738 + if (_6S.length < 1) { //#738 + $j -= 2; //#737 + $k[$j++] = 'bwipp.GS1couponTooShortSerialNumberVLI'; //#737 + $k[$j++] = "Coupon too short: Missing Serial Number VLI"; //#737 + $k[$j++] = false; //#737 + return true; //#737 + } //#737 + var _6T = $k[--$j]; //#739 + var _6U = $geti(_6T, 0, 1); //#739 + $k[$j++] = _6T; //#742 + $k[$j++] = ((~~$z(_6U)) + 6) + 1; //#742 + if ((((~~$z(_6U)) + 6) + 1) > _6T.length) { //#742 + $j -= 3; //#741 + $k[$j++] = 'bwipp.GS1couponTooShortSerialNumber'; //#741 + $k[$j++] = "Coupon too short: Serial Number truncated"; //#741 + $k[$j++] = false; //#741 + return true; //#741 + } //#741 + var _6V = $k[--$j]; //#743 + var _6W = $k[--$j]; //#743 + $k[$j++] = $geti(_6W, _6V, $f(_6W.length - _6V)); //#743 + } //#743 + } //#743 + var _6Y = $k[--$j]; //#748 + $k[$j++] = _6Y; //#764 + if (_6Y.length >= 1) { //#764 + var _6Z = $k[--$j]; //#748 + $k[$j++] = _6Z; //#764 + if ((~~$z($geti(_6Z, 0, 1))) == 6) { //#764 + var _6b = $k[--$j]; //#749 + var _6c = $geti(_6b, 1, _6b.length - 1); //#749 + $k[$j++] = _6c; //#754 + if (_6c.length < 1) { //#754 + $j -= 2; //#753 + $k[$j++] = 'bwipp.GS1couponTooShortRetailerGCPGLNVLI'; //#753 + $k[$j++] = "Coupon too short: Missing Retailer GCP/GLN VLI"; //#753 + $k[$j++] = false; //#753 + return true; //#753 + } //#753 + var _6d = $k[--$j]; //#755 + var _6f = ~~$z($geti(_6d, 0, 1)); //#755 + $k[$j++] = _6d; //#757 + $k[$j++] = _6f; //#757 + if ((_6f < 1) || (_6f > 7)) { //#757 + $j -= 2; //#756 + $k[$j++] = 'bwipp.GS1couponBadRetailerGCPGLNVLI'; //#756 + $k[$j++] = "Coupon Retailer GCP/GLN length indicator must be 1-7"; //#756 + $k[$j++] = false; //#756 + return true; //#756 + } //#756 + var _6g = $k[--$j]; //#758 + var _6h = $k[--$j]; //#759 + $k[$j++] = _6h; //#761 + $k[$j++] = $f($f(_6g + 6) + 1); //#761 + if (($f($f(_6g + 6) + 1)) > _6h.length) { //#761 + $j -= 3; //#760 + $k[$j++] = 'bwipp.GS1couponTooShortRetailerGCPGLN'; //#760 + $k[$j++] = "Coupon too short: Retailer GCP/GLN truncated"; //#760 + $k[$j++] = false; //#760 + return true; //#760 + } //#760 + var _6i = $k[--$j]; //#762 + var _6j = $k[--$j]; //#762 + $k[$j++] = $geti(_6j, _6i, $f(_6j.length - _6i)); //#762 + } //#762 + } //#762 + var _6l = $k[--$j]; //#767 + $k[$j++] = _6l; //#803 + if (_6l.length >= 1) { //#803 + var _6m = $k[--$j]; //#767 + $k[$j++] = _6m; //#803 + if ((~~$z($geti(_6m, 0, 1))) == 9) { //#803 + var _6o = $k[--$j]; //#768 + var _6p = $geti(_6o, 1, _6o.length - 1); //#768 + $k[$j++] = _6p; //#773 + if (_6p.length < 1) { //#773 + $j -= 2; //#772 + $k[$j++] = 'bwipp.GS1couponTooShortSaveValueCode'; //#772 + $k[$j++] = "Coupon too short: Missing Save Value Code"; //#772 + $k[$j++] = false; //#772 + return true; //#772 + } //#772 + var _6q = $k[--$j]; //#774 + var _6s = ~~$z($geti(_6q, 0, 1)); //#774 + $k[$j++] = _6q; //#776 + if ((_6s > 6) || ((_6s == 3) || (_6s == 4))) { //#776 + $j -= 2; //#775 + $k[$j++] = 'bwipp.GS1couponBadSaveValueCode'; //#775 + $k[$j++] = "Coupon Save Value Code must be 0,1,2,5 or 6"; //#775 + $k[$j++] = false; //#775 + return true; //#775 + } //#775 + var _6t = $k[--$j]; //#777 + var _6u = $geti(_6t, 1, _6t.length - 1); //#777 + $k[$j++] = _6u; //#782 + if (_6u.length < 1) { //#782 + $j -= 2; //#781 + $k[$j++] = 'bwipp.GS1couponTooShortSaveValueAppliesToItem'; //#781 + $k[$j++] = "Coupon too short: Missing Save Value Applies to Item"; //#781 + $k[$j++] = false; //#781 + return true; //#781 + } //#781 + var _6v = $k[--$j]; //#783 + $k[$j++] = _6v; //#785 + if ((~~$z($geti(_6v, 0, 1))) > 2) { //#785 + $j -= 2; //#784 + $k[$j++] = 'bwipp.GS1couponBadSaveValueAppliesToItem'; //#784 + $k[$j++] = "Coupon Save Value Applies to Item must be 0-2"; //#784 + $k[$j++] = false; //#784 + return true; //#784 + } //#784 + var _6x = $k[--$j]; //#786 + var _6y = $geti(_6x, 1, _6x.length - 1); //#786 + $k[$j++] = _6y; //#791 + if (_6y.length < 1) { //#791 + $j -= 2; //#790 + $k[$j++] = 'bwipp.GS1couponTooShortStoreCouponFlag'; //#790 + $k[$j++] = "Coupon too short: Missing Store Coupon Flag"; //#790 + $k[$j++] = false; //#790 + return true; //#790 + } //#790 + var _6z = $k[--$j]; //#792 + var _70 = $geti(_6z, 1, _6z.length - 1); //#792 + $k[$j++] = _70; //#797 + if (_70.length < 1) { //#797 + $j -= 2; //#796 + $k[$j++] = 'bwipp.GS1couponTooShortDontMultiplyFlag'; //#796 + $k[$j++] = "Coupon too short: Missing Don't Multiply Flag"; //#796 + $k[$j++] = false; //#796 + return true; //#796 + } //#796 + var _71 = $k[--$j]; //#798 + $k[$j++] = _71; //#800 + if ((~~$z($geti(_71, 0, 1))) > 1) { //#800 + $j -= 2; //#799 + $k[$j++] = 'bwipp.GS1couponBadDontMultiplyFlag'; //#799 + $k[$j++] = "Don't Multiply Flag must be 0 or 1"; //#799 + $k[$j++] = false; //#799 + return true; //#799 + } //#799 + var _73 = $k[--$j]; //#801 + $k[$j++] = $geti(_73, 1, _73.length - 1); //#801 + } //#801 + } //#801 + var _75 = $k[--$j]; //#805 + $k[$j++] = _75; //#807 + if (_75.length != 0) { //#807 + $j -= 2; //#806 + $k[$j++] = 'bwipp.GS1couponUnrecognisedOptionalField'; //#806 + $k[$j++] = "Coupon fields must be 1,2,3,4,5,6 or 9, increasing order"; //#806 + $k[$j++] = false; //#806 + return true; //#806 + } //#806 + $j--; //#808 + }; //#809 $1.lintcouponposoffer = function() { - var _76 = $k[--$j]; - $k[$j++] = _76; - $k[$j++] = true; - $forall(_76, function() { - var _77 = $k[--$j]; - if (_77 < 48 || _77 > 57) { - $j--; - $k[$j++] = false; - return true; - } - }); - if ($nt($k[--$j])) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponNotNumeric"; - $k[$j++] = "Coupon not numeric"; - $k[$j++] = false; - return true; - } - var _79 = $k[--$j]; - $k[$j++] = _79; - if (_79.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortFormatCode"; - $k[$j++] = "Coupon too short: Missing Format Code"; - $k[$j++] = false; - return true; - } - var _7A = $k[--$j]; - var _7B = $geti(_7A, 0, 1); - $k[$j++] = _7A; - if ($ne(_7B, "0") && $ne(_7B, "1")) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBadFormatCode"; - $k[$j++] = "Coupon format must be 0 or 1"; - $k[$j++] = false; - return true; - } - var _7C = $k[--$j]; - var _7D = $geti(_7C, 1, _7C.length - 1); - $k[$j++] = _7D; - if (_7D.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortFunderVLI"; - $k[$j++] = "Coupon too short: Missing Funder VLI"; - $k[$j++] = false; - return true; - } - var _7E = $k[--$j]; - var _7G = ~~$z($geti(_7E, 0, 1)); - $k[$j++] = _7E; - $k[$j++] = _7G; - if (_7G > 6) { - $j -= 3; - $k[$j++] = "bwipp.GS1couponBadFunderVLI"; - $k[$j++] = "Coupon Funder length indicator must be 0-6"; - $k[$j++] = false; - return true; - } - var _7H = $k[--$j]; - var _7I = $k[--$j]; - $k[$j++] = _7I; - $k[$j++] = $f($f(_7H + 6) + 1); - if ($f($f(_7H + 6) + 1) > _7I.length) { - $j -= 3; - $k[$j++] = "bwipp.GS1couponTooShortFunder"; - $k[$j++] = "Coupon too short: Truncated Funder ID"; - $k[$j++] = false; - return true; - } - var _7J = $k[--$j]; - var _7K = $k[--$j]; - var _7L = $geti(_7K, _7J, $f(_7K.length - _7J)); - $k[$j++] = _7L; - if (_7L.length < 6) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortOfferCode"; - $k[$j++] = "Coupon too short: Truncated Offer Code"; - $k[$j++] = false; - return true; - } - var _7M = $k[--$j]; - var _7N = $geti(_7M, 6, _7M.length - 6); - $k[$j++] = _7N; - if (_7N.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortSnVLI"; - $k[$j++] = "Coupon too short: Missing SN VLI"; - $k[$j++] = false; - return true; - } - var _7O = $k[--$j]; - var _7P = $geti(_7O, 0, 1); - $k[$j++] = _7O; - $k[$j++] = ~~$z(_7P) + 6 + 1; - if (~~$z(_7P) + 6 + 1 > _7O.length) { - $j -= 3; - $k[$j++] = "bwipp.GS1couponTooShortSn"; - $k[$j++] = "Coupon too short: Truncated SN"; - $k[$j++] = false; - return true; - } - var _7Q = $k[--$j]; - var _7R = $k[--$j]; - var _7S = $geti(_7R, _7Q, $f(_7R.length - _7Q)); - $k[$j++] = _7S; - if (_7S.length != 0) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooLong"; - $k[$j++] = "Coupon too long"; - $k[$j++] = false; - return true; - } - $j--; - }; - var _7U = new Map([ [ "cset", "N" ], [ "min", 18 ], [ "max", 18 ], [ "check", $a([ "lintcsum", "lintkey" ]) ] ]); - var _7X = new Map([ [ "cset", "N" ], [ "min", 14 ], [ "max", 14 ], [ "check", $a([ "lintcsum", "lintkey" ]) ] ]); - var _7Y = $a([ _7X ]); - var _7a = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 20 ], [ "check", $a([]) ] ]); - var _7d = new Map([ [ "cset", "N" ], [ "min", 6 ], [ "max", 6 ], [ "check", $a([ "lintyymmd0" ]) ] ]); - var _7e = $a([ _7d ]); - var _7g = new Map([ [ "cset", "N" ], [ "min", 2 ], [ "max", 2 ], [ "check", $a([]) ] ]); - var _7j = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 20 ], [ "check", $a([]) ] ]); - var _7k = $a([ _7j ]); - var _7m = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 28 ], [ "check", $a([]) ] ]); - var _7p = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 30 ], [ "check", $a([]) ] ]); - var _7q = $a([ _7p ]); - var _7s = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 6 ], [ "check", $a([]) ] ]); - var _7v = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 20 ], [ "check", $a([]) ] ]); - var _7y = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 30 ], [ "check", $a([]) ] ]); - var _7z = $a([ _7y ]); - var _81 = new Map([ [ "cset", "N" ], [ "min", 13 ], [ "max", 13 ], [ "check", $a([ "lintcsum", "lintkey" ]) ] ]); - var _83 = new Map([ [ "cset", "X" ], [ "min", 0 ], [ "max", 17 ], [ "check", $a([]) ] ]); - var _86 = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 20 ], [ "check", $a([]) ] ]); - var _89 = new Map([ [ "cset", "N" ], [ "min", 13 ], [ "max", 13 ], [ "check", $a([ "lintcsum", "lintkey" ]) ] ]); - var _8B = new Map([ [ "cset", "N" ], [ "min", 0 ], [ "max", 12 ], [ "check", $a([]) ] ]); - var _8E = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 8 ], [ "check", $a([]) ] ]); - var _8H = new Map([ [ "cset", "N" ], [ "min", 6 ], [ "max", 6 ], [ "check", $a([]) ] ]); - var _8I = $a([ _8H ]); - var _8K = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 8 ], [ "check", $a([]) ] ]); - var _8N = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 15 ], [ "check", $a([]) ] ]); - var _8O = $a([ _8N ]); - var _8Q = new Map([ [ "cset", "N" ], [ "min", 3 ], [ "max", 3 ], [ "check", $a([ "lintiso4217" ]) ] ]); - var _8S = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 15 ], [ "check", $a([]) ] ]); - var _8T = $a([ _8Q, _8S ]); - var _8V = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 15 ], [ "check", $a([]) ] ]); - var _8W = $a([ _8V ]); - var _8Y = new Map([ [ "cset", "N" ], [ "min", 3 ], [ "max", 3 ], [ "check", $a([ "lintiso4217" ]) ] ]); - var _8a = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 15 ], [ "check", $a([]) ] ]); - var _8b = $a([ _8Y, _8a ]); - var _8d = new Map([ [ "cset", "N" ], [ "min", 4 ], [ "max", 4 ], [ "check", $a([]) ] ]); - var _8e = $a([ _8d ]); - var _8g = new Map([ [ "cset", "N" ], [ "min", 6 ], [ "max", 6 ], [ "check", $a([]) ] ]); - var _8h = $a([ _8g ]); - var _8j = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 30 ], [ "check", $a([]) ] ]); - var _8m = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 30 ], [ "check", $a([ "lintkey" ]) ] ]); - var _8p = new Map([ [ "cset", "N" ], [ "min", 17 ], [ "max", 17 ], [ "check", $a([ "lintcsum", "lintkey" ]) ] ]); - var _8s = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 30 ], [ "check", $a([]) ] ]); - var _8v = new Map([ [ "cset", "N" ], [ "min", 13 ], [ "max", 13 ], [ "check", $a([ "lintcsum", "lintkey" ]) ] ]); - var _8w = $a([ _8v ]); - var _8y = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 20 ], [ "check", $a([]) ] ]); - var _91 = new Map([ [ "cset", "N" ], [ "min", 3 ], [ "max", 3 ], [ "check", $a([ "lintiso3166" ]) ] ]); - var _93 = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 9 ], [ "check", $a([]) ] ]); - var _96 = new Map([ [ "cset", "N" ], [ "min", 3 ], [ "max", 3 ], [ "check", $a([ "lintiso3166" ]) ] ]); - var _99 = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 15 ], [ "check", $a([ "lintiso3166list" ]) ] ]); - var _9C = new Map([ [ "cset", "N" ], [ "min", 3 ], [ "max", 3 ], [ "check", $a([ "lintiso3166" ]) ] ]); - var _9F = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 15 ], [ "check", $a([ "lintiso3166list" ]) ] ]); - var _9I = new Map([ [ "cset", "N" ], [ "min", 3 ], [ "max", 3 ], [ "check", $a([ "lintiso3166" ]) ] ]); - var _9L = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 3 ], [ "check", $a([]) ] ]); - var _9O = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 35 ], [ "check", $a([ "lintpcenc" ]) ] ]); - var _9P = $a([ _9O ]); - var _9R = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 70 ], [ "check", $a([ "lintpcenc" ]) ] ]); - var _9S = $a([ _9R ]); - var _9U = new Map([ [ "cset", "X" ], [ "min", 2 ], [ "max", 2 ], [ "check", $a([ "lintiso3166alpha2" ]) ] ]); - var _9X = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 30 ], [ "check", $a([]) ] ]); - var _9a = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 35 ], [ "check", $a([ "lintpcenc" ]) ] ]); - var _9b = $a([ _9a ]); - var _9d = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 70 ], [ "check", $a([ "lintpcenc" ]) ] ]); - var _9e = $a([ _9d ]); - var _9g = new Map([ [ "cset", "X" ], [ "min", 2 ], [ "max", 2 ], [ "check", $a([ "lintiso3166alpha2" ]) ] ]); - var _9j = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 20 ], [ "check", $a([]) ] ]); - var _9m = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 30 ], [ "check", $a([]) ] ]); - var _9p = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 35 ], [ "check", $a([ "lintpcenc" ]) ] ]); - var _9s = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 1 ], [ "check", $a([ "lintyesno" ]) ] ]); - var _9t = $a([ _9s ]); - var _9v = new Map([ [ "cset", "N" ], [ "min", 6 ], [ "max", 6 ], [ "check", $a([ "lintyymmd0" ]) ] ]); - var _9x = new Map([ [ "cset", "N" ], [ "min", 4 ], [ "max", 4 ], [ "check", $a([ "linthhmm" ]) ] ]); - var _9y = $a([ _9v, _9x ]); - var _A0 = new Map([ [ "cset", "N" ], [ "min", 6 ], [ "max", 6 ], [ "check", $a([ "lintyymmdd" ]) ] ]); - var _A3 = new Map([ [ "cset", "N" ], [ "min", 13 ], [ "max", 13 ], [ "check", $a([]) ] ]); - var _A6 = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 30 ], [ "check", $a([]) ] ]); - var _A9 = new Map([ [ "cset", "N" ], [ "min", 6 ], [ "max", 6 ], [ "check", $a([ "lintyymmdd" ]) ] ]); - var _AB = new Map([ [ "cset", "N" ], [ "min", 4 ], [ "max", 4 ], [ "check", $a([ "linthhmm" ]) ] ]); - var _AE = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 4 ], [ "check", $a([]) ] ]); - var _AH = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 12 ], [ "check", $a([]) ] ]); - var _AK = new Map([ [ "cset", "N" ], [ "min", 6 ], [ "max", 6 ], [ "check", $a([ "lintyymmdd" ]) ] ]); - var _AN = new Map([ [ "cset", "N" ], [ "min", 6 ], [ "max", 6 ], [ "check", $a([ "lintyymmdd" ]) ] ]); - var _AP = new Map([ [ "cset", "N" ], [ "min", 0 ], [ "max", 6 ], [ "check", $a([ "lintyymmdd" ]) ] ]); - var _AS = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 3 ], [ "check", $a([]) ] ]); - var _AV = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 10 ], [ "check", $a([]) ] ]); - var _AY = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 2 ], [ "check", $a([]) ] ]); - var _Ab = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 20 ], [ "check", $a([]) ] ]); - var _Ac = $a([ _Ab ]); - var _Ae = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 30 ], [ "check", $a([ "lintkey" ]) ] ]); - var _Ah = new Map([ [ "cset", "N" ], [ "min", 3 ], [ "max", 3 ], [ "check", $a([ "lintiso3166999" ]) ] ]); - var _Aj = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 27 ], [ "check", $a([]) ] ]); - var _Ak = $a([ _Ah, _Aj ]); - var _Am = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 1 ], [ "check", $a([]) ] ]); - var _Ao = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 1 ], [ "check", $a([]) ] ]); - var _Aq = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 1 ], [ "check", $a([]) ] ]); - var _As = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 1 ], [ "check", $a([ "lintimporteridx" ]) ] ]); - var _Av = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 20 ], [ "check", $a([]) ] ]); - var _Aw = $a([ _Av ]); - var _Ay = new Map([ [ "cset", "X" ], [ "min", 2 ], [ "max", 2 ], [ "check", $a([]) ] ]); - var _B0 = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 28 ], [ "check", $a([]) ] ]); - var _B1 = $a([ _Ay, _B0 ]); - var _B3 = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 20 ], [ "check", $a([]) ] ]); - var _B6 = new Map([ [ "cset", "N" ], [ "min", 4 ], [ "max", 4 ], [ "check", $a([ "lintnonzero" ]) ] ]); - var _B8 = new Map([ [ "cset", "N" ], [ "min", 5 ], [ "max", 5 ], [ "check", $a([ "lintnonzero" ]) ] ]); - var _BA = new Map([ [ "cset", "N" ], [ "min", 3 ], [ "max", 3 ], [ "check", $a([ "lintnonzero" ]) ] ]); - var _BC = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 1 ], [ "check", $a([ "lintwinding" ]) ] ]); - var _BE = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 1 ], [ "check", $a([]) ] ]); - var _BH = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 20 ], [ "check", $a([]) ] ]); - var _BK = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 1 ], [ "check", $a([ "lintzero" ]) ] ]); - var _BM = new Map([ [ "cset", "N" ], [ "min", 13 ], [ "max", 13 ], [ "check", $a([ "lintcsum", "lintkey" ]) ] ]); - var _BO = new Map([ [ "cset", "X" ], [ "min", 0 ], [ "max", 16 ], [ "check", $a([]) ] ]); - var _BR = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 30 ], [ "check", $a([ "lintkey" ]) ] ]); - var _BU = new Map([ [ "cset", "N" ], [ "min", 6 ], [ "max", 6 ], [ "check", $a([]) ] ]); - var _BX = new Map([ [ "cset", "N" ], [ "min", 14 ], [ "max", 14 ], [ "check", $a([ "lintcsum" ]) ] ]); - var _BZ = new Map([ [ "cset", "N" ], [ "min", 4 ], [ "max", 4 ], [ "check", $a([ "lintpieceoftotal" ]) ] ]); - var _Bc = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 34 ], [ "check", $a([ "lintiban" ]) ] ]); - var _Bf = new Map([ [ "cset", "N" ], [ "min", 8 ], [ "max", 8 ], [ "check", $a([ "lintyymmddhh" ]) ] ]); - var _Bh = new Map([ [ "cset", "N" ], [ "min", 0 ], [ "max", 4 ], [ "check", $a([ "lintmmoptss" ]) ] ]); - var _Bk = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 50 ], [ "check", $a([]) ] ]); - var _Bn = new Map([ [ "cset", "C" ], [ "min", 1 ], [ "max", 30 ], [ "check", $a([ "lintkey" ]) ] ]); - var _Bq = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 12 ], [ "check", $a([ "lintnozeroprefix" ]) ] ]); - var _Bt = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 20 ], [ "check", $a([]) ] ]); - var _Bw = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 25 ], [ "check", $a([ "lintcsumalpha", "lintkey" ]) ] ]); - var _Bz = new Map([ [ "cset", "N" ], [ "min", 18 ], [ "max", 18 ], [ "check", $a([ "lintcsum" ]) ] ]); - var _C0 = $a([ _Bz ]); - var _C2 = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 10 ], [ "check", $a([]) ] ]); - var _C5 = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 25 ], [ "check", $a([]) ] ]); - var _C8 = new Map([ [ "cset", "N" ], [ "min", 14 ], [ "max", 14 ], [ "check", $a([ "lintcsum" ]) ] ]); - var _CA = new Map([ [ "cset", "N" ], [ "min", 4 ], [ "max", 4 ], [ "check", $a([ "lintpieceoftotal" ]) ] ]); - var _CD = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 70 ], [ "check", $a([ "lintcouponcode" ]) ] ]); - var _CG = new Map([ [ "cset", "N" ], [ "min", 4 ], [ "max", 4 ], [ "check", $a([]) ] ]); - var _CJ = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 70 ], [ "check", $a([ "lintcouponposoffer" ]) ] ]); - var _CM = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 70 ], [ "check", $a([]) ] ]); - var _CP = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 30 ], [ "check", $a([]) ] ]); - var _CS = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 90 ], [ "check", $a([]) ] ]); - var _CT = $a([ _CS ]); - var _CU = new Map([ [ "00", $a([ _7U ]) ], [ "01", _7Y ], [ "02", _7Y ], [ "10", $a([ _7a ]) ], [ "11", _7e ], [ "12", _7e ], [ "13", _7e ], [ "14", _7e ], [ "15", _7e ], [ "16", _7e ], [ "17", _7e ], [ "20", $a([ _7g ]) ], [ "21", _7k ], [ "22", _7k ], [ "235", $a([ _7m ]) ], [ "240", _7q ], [ "241", _7q ], [ "242", $a([ _7s ]) ], [ "243", $a([ _7v ]) ], [ "250", _7z ], [ "251", _7z ], [ "253", $a([ _81, _83 ]) ], [ "254", $a([ _86 ]) ], [ "255", $a([ _89, _8B ]) ], [ "30", $a([ _8E ]) ], [ "3100", _8I ], [ "3101", _8I ], [ "3102", _8I ], [ "3103", _8I ], [ "3104", _8I ], [ "3105", _8I ], [ "3110", _8I ], [ "3111", _8I ], [ "3112", _8I ], [ "3113", _8I ], [ "3114", _8I ], [ "3115", _8I ], [ "3120", _8I ], [ "3121", _8I ], [ "3122", _8I ], [ "3123", _8I ], [ "3124", _8I ], [ "3125", _8I ], [ "3130", _8I ], [ "3131", _8I ], [ "3132", _8I ], [ "3133", _8I ], [ "3134", _8I ], [ "3135", _8I ], [ "3140", _8I ], [ "3141", _8I ], [ "3142", _8I ], [ "3143", _8I ], [ "3144", _8I ], [ "3145", _8I ], [ "3150", _8I ], [ "3151", _8I ], [ "3152", _8I ], [ "3153", _8I ], [ "3154", _8I ], [ "3155", _8I ], [ "3160", _8I ], [ "3161", _8I ], [ "3162", _8I ], [ "3163", _8I ], [ "3164", _8I ], [ "3165", _8I ], [ "3200", _8I ], [ "3201", _8I ], [ "3202", _8I ], [ "3203", _8I ], [ "3204", _8I ], [ "3205", _8I ], [ "3210", _8I ], [ "3211", _8I ], [ "3212", _8I ], [ "3213", _8I ], [ "3214", _8I ], [ "3215", _8I ], [ "3220", _8I ], [ "3221", _8I ], [ "3222", _8I ], [ "3223", _8I ], [ "3224", _8I ], [ "3225", _8I ], [ "3230", _8I ], [ "3231", _8I ], [ "3232", _8I ], [ "3233", _8I ], [ "3234", _8I ], [ "3235", _8I ], [ "3240", _8I ], [ "3241", _8I ], [ "3242", _8I ], [ "3243", _8I ], [ "3244", _8I ], [ "3245", _8I ], [ "3250", _8I ], [ "3251", _8I ], [ "3252", _8I ], [ "3253", _8I ], [ "3254", _8I ], [ "3255", _8I ], [ "3260", _8I ], [ "3261", _8I ], [ "3262", _8I ], [ "3263", _8I ], [ "3264", _8I ], [ "3265", _8I ], [ "3270", _8I ], [ "3271", _8I ], [ "3272", _8I ], [ "3273", _8I ], [ "3274", _8I ], [ "3275", _8I ], [ "3280", _8I ], [ "3281", _8I ], [ "3282", _8I ], [ "3283", _8I ], [ "3284", _8I ], [ "3285", _8I ], [ "3290", _8I ], [ "3291", _8I ], [ "3292", _8I ], [ "3293", _8I ], [ "3294", _8I ], [ "3295", _8I ], [ "3300", _8I ], [ "3301", _8I ], [ "3302", _8I ], [ "3303", _8I ], [ "3304", _8I ], [ "3305", _8I ], [ "3310", _8I ], [ "3311", _8I ], [ "3312", _8I ], [ "3313", _8I ], [ "3314", _8I ], [ "3315", _8I ], [ "3320", _8I ], [ "3321", _8I ], [ "3322", _8I ], [ "3323", _8I ], [ "3324", _8I ], [ "3325", _8I ], [ "3330", _8I ], [ "3331", _8I ], [ "3332", _8I ], [ "3333", _8I ], [ "3334", _8I ], [ "3335", _8I ], [ "3340", _8I ], [ "3341", _8I ], [ "3342", _8I ], [ "3343", _8I ], [ "3344", _8I ], [ "3345", _8I ], [ "3350", _8I ], [ "3351", _8I ], [ "3352", _8I ], [ "3353", _8I ], [ "3354", _8I ], [ "3355", _8I ], [ "3360", _8I ], [ "3361", _8I ], [ "3362", _8I ], [ "3363", _8I ], [ "3364", _8I ], [ "3365", _8I ], [ "3370", _8I ], [ "3371", _8I ], [ "3372", _8I ], [ "3373", _8I ], [ "3374", _8I ], [ "3375", _8I ], [ "3400", _8I ], [ "3401", _8I ], [ "3402", _8I ], [ "3403", _8I ], [ "3404", _8I ], [ "3405", _8I ], [ "3410", _8I ], [ "3411", _8I ], [ "3412", _8I ], [ "3413", _8I ], [ "3414", _8I ], [ "3415", _8I ], [ "3420", _8I ], [ "3421", _8I ], [ "3422", _8I ], [ "3423", _8I ], [ "3424", _8I ], [ "3425", _8I ], [ "3430", _8I ], [ "3431", _8I ], [ "3432", _8I ], [ "3433", _8I ], [ "3434", _8I ], [ "3435", _8I ], [ "3440", _8I ], [ "3441", _8I ], [ "3442", _8I ], [ "3443", _8I ], [ "3444", _8I ], [ "3445", _8I ], [ "3450", _8I ], [ "3451", _8I ], [ "3452", _8I ], [ "3453", _8I ], [ "3454", _8I ], [ "3455", _8I ], [ "3460", _8I ], [ "3461", _8I ], [ "3462", _8I ], [ "3463", _8I ], [ "3464", _8I ], [ "3465", _8I ], [ "3470", _8I ], [ "3471", _8I ], [ "3472", _8I ], [ "3473", _8I ], [ "3474", _8I ], [ "3475", _8I ], [ "3480", _8I ], [ "3481", _8I ], [ "3482", _8I ], [ "3483", _8I ], [ "3484", _8I ], [ "3485", _8I ], [ "3490", _8I ], [ "3491", _8I ], [ "3492", _8I ], [ "3493", _8I ], [ "3494", _8I ], [ "3495", _8I ], [ "3500", _8I ], [ "3501", _8I ], [ "3502", _8I ], [ "3503", _8I ], [ "3504", _8I ], [ "3505", _8I ], [ "3510", _8I ], [ "3511", _8I ], [ "3512", _8I ], [ "3513", _8I ], [ "3514", _8I ], [ "3515", _8I ], [ "3520", _8I ], [ "3521", _8I ], [ "3522", _8I ], [ "3523", _8I ], [ "3524", _8I ], [ "3525", _8I ], [ "3530", _8I ], [ "3531", _8I ], [ "3532", _8I ], [ "3533", _8I ], [ "3534", _8I ], [ "3535", _8I ], [ "3540", _8I ], [ "3541", _8I ], [ "3542", _8I ], [ "3543", _8I ], [ "3544", _8I ], [ "3545", _8I ], [ "3550", _8I ], [ "3551", _8I ], [ "3552", _8I ], [ "3553", _8I ], [ "3554", _8I ], [ "3555", _8I ], [ "3560", _8I ], [ "3561", _8I ], [ "3562", _8I ], [ "3563", _8I ], [ "3564", _8I ], [ "3565", _8I ], [ "3570", _8I ], [ "3571", _8I ], [ "3572", _8I ], [ "3573", _8I ], [ "3574", _8I ], [ "3575", _8I ], [ "3600", _8I ], [ "3601", _8I ], [ "3602", _8I ], [ "3603", _8I ], [ "3604", _8I ], [ "3605", _8I ], [ "3610", _8I ], [ "3611", _8I ], [ "3612", _8I ], [ "3613", _8I ], [ "3614", _8I ], [ "3615", _8I ], [ "3620", _8I ], [ "3621", _8I ], [ "3622", _8I ], [ "3623", _8I ], [ "3624", _8I ], [ "3625", _8I ], [ "3630", _8I ], [ "3631", _8I ], [ "3632", _8I ], [ "3633", _8I ], [ "3634", _8I ], [ "3635", _8I ], [ "3640", _8I ], [ "3641", _8I ], [ "3642", _8I ], [ "3643", _8I ], [ "3644", _8I ], [ "3645", _8I ], [ "3650", _8I ], [ "3651", _8I ], [ "3652", _8I ], [ "3653", _8I ], [ "3654", _8I ], [ "3655", _8I ], [ "3660", _8I ], [ "3661", _8I ], [ "3662", _8I ], [ "3663", _8I ], [ "3664", _8I ], [ "3665", _8I ], [ "3670", _8I ], [ "3671", _8I ], [ "3672", _8I ], [ "3673", _8I ], [ "3674", _8I ], [ "3675", _8I ], [ "3680", _8I ], [ "3681", _8I ], [ "3682", _8I ], [ "3683", _8I ], [ "3684", _8I ], [ "3685", _8I ], [ "3690", _8I ], [ "3691", _8I ], [ "3692", _8I ], [ "3693", _8I ], [ "3694", _8I ], [ "3695", _8I ], [ "37", $a([ _8K ]) ], [ "3900", _8O ], [ "3901", _8O ], [ "3902", _8O ], [ "3903", _8O ], [ "3904", _8O ], [ "3905", _8O ], [ "3906", _8O ], [ "3907", _8O ], [ "3908", _8O ], [ "3909", _8O ], [ "3910", _8T ], [ "3911", _8T ], [ "3912", _8T ], [ "3913", _8T ], [ "3914", _8T ], [ "3915", _8T ], [ "3916", _8T ], [ "3917", _8T ], [ "3918", _8T ], [ "3919", _8T ], [ "3920", _8W ], [ "3921", _8W ], [ "3922", _8W ], [ "3923", _8W ], [ "3924", _8W ], [ "3925", _8W ], [ "3926", _8W ], [ "3927", _8W ], [ "3928", _8W ], [ "3929", _8W ], [ "3930", _8b ], [ "3931", _8b ], [ "3932", _8b ], [ "3933", _8b ], [ "3934", _8b ], [ "3935", _8b ], [ "3936", _8b ], [ "3937", _8b ], [ "3938", _8b ], [ "3939", _8b ], [ "3940", _8e ], [ "3941", _8e ], [ "3942", _8e ], [ "3943", _8e ], [ "3950", _8h ], [ "3951", _8h ], [ "3952", _8h ], [ "3953", _8h ], [ "3954", _8h ], [ "3955", _8h ], [ "400", $a([ _8j ]) ], [ "401", $a([ _8m ]) ], [ "402", $a([ _8p ]) ], [ "403", $a([ _8s ]) ], [ "410", _8w ], [ "411", _8w ], [ "412", _8w ], [ "413", _8w ], [ "414", _8w ], [ "415", _8w ], [ "416", _8w ], [ "417", _8w ], [ "420", $a([ _8y ]) ], [ "421", $a([ _91, _93 ]) ], [ "422", $a([ _96 ]) ], [ "423", $a([ _99 ]) ], [ "424", $a([ _9C ]) ], [ "425", $a([ _9F ]) ], [ "426", $a([ _9I ]) ], [ "427", $a([ _9L ]) ], [ "4300", _9P ], [ "4301", _9P ], [ "4302", _9S ], [ "4303", _9S ], [ "4304", _9S ], [ "4305", _9S ], [ "4306", _9S ], [ "4307", $a([ _9U ]) ], [ "4308", $a([ _9X ]) ], [ "4310", _9b ], [ "4311", _9b ], [ "4312", _9e ], [ "4313", _9e ], [ "4314", _9e ], [ "4315", _9e ], [ "4316", _9e ], [ "4317", $a([ _9g ]) ], [ "4318", $a([ _9j ]) ], [ "4319", $a([ _9m ]) ], [ "4320", $a([ _9p ]) ], [ "4321", _9t ], [ "4322", _9t ], [ "4323", _9t ], [ "4324", _9y ], [ "4325", _9y ], [ "4326", $a([ _A0 ]) ], [ "7001", $a([ _A3 ]) ], [ "7002", $a([ _A6 ]) ], [ "7003", $a([ _A9, _AB ]) ], [ "7004", $a([ _AE ]) ], [ "7005", $a([ _AH ]) ], [ "7006", $a([ _AK ]) ], [ "7007", $a([ _AN, _AP ]) ], [ "7008", $a([ _AS ]) ], [ "7009", $a([ _AV ]) ], [ "7010", $a([ _AY ]) ], [ "7020", _Ac ], [ "7021", _Ac ], [ "7022", _Ac ], [ "7023", $a([ _Ae ]) ], [ "7030", _Ak ], [ "7031", _Ak ], [ "7032", _Ak ], [ "7033", _Ak ], [ "7034", _Ak ], [ "7035", _Ak ], [ "7036", _Ak ], [ "7037", _Ak ], [ "7038", _Ak ], [ "7039", _Ak ], [ "7040", $a([ _Am, _Ao, _Aq, _As ]) ], [ "710", _Aw ], [ "711", _Aw ], [ "712", _Aw ], [ "713", _Aw ], [ "714", _Aw ], [ "7230", _B1 ], [ "7231", _B1 ], [ "7232", _B1 ], [ "7233", _B1 ], [ "7234", _B1 ], [ "7235", _B1 ], [ "7236", _B1 ], [ "7237", _B1 ], [ "7238", _B1 ], [ "7239", _B1 ], [ "7240", $a([ _B3 ]) ], [ "8001", $a([ _B6, _B8, _BA, _BC, _BE ]) ], [ "8002", $a([ _BH ]) ], [ "8003", $a([ _BK, _BM, _BO ]) ], [ "8004", $a([ _BR ]) ], [ "8005", $a([ _BU ]) ], [ "8006", $a([ _BX, _BZ ]) ], [ "8007", $a([ _Bc ]) ], [ "8008", $a([ _Bf, _Bh ]) ], [ "8009", $a([ _Bk ]) ], [ "8010", $a([ _Bn ]) ], [ "8011", $a([ _Bq ]) ], [ "8012", $a([ _Bt ]) ], [ "8013", $a([ _Bw ]) ], [ "8017", _C0 ], [ "8018", _C0 ], [ "8019", $a([ _C2 ]) ], [ "8020", $a([ _C5 ]) ], [ "8026", $a([ _C8, _CA ]) ], [ "8110", $a([ _CD ]) ], [ "8111", $a([ _CG ]) ], [ "8112", $a([ _CJ ]) ], [ "8200", $a([ _CM ]) ], [ "90", $a([ _CP ]) ], [ "91", _CT ], [ "92", _CT ], [ "93", _CT ], [ "94", _CT ], [ "95", _CT ], [ "96", _CT ], [ "97", _CT ], [ "98", _CT ], [ "99", _CT ] ]); - $1.gs1syntax = _CU; - $k[$j++] = true; - for (var _CX = 0, _CW = $1.vals.length - 1; _CX <= _CW; _CX += 1) { - $1.ai = $get($1.ais, _CX); - $1.val = $get($1.vals, _CX); - var _Ce = $get($1.gs1syntax, $1.ai) !== undefined; - if (_Ce) { - $forall($get($1.gs1syntax, $1.ai), function() { - $1.props = $k[--$j]; - var _Ck = $get($1.props, "max"); - var _Cl = $1.val; - var _Cm = _Cl.length; - if (_Ck > _Cl.length) { - var _ = _Cm; - _Cm = _Ck; - _Ck = _; - } - $1.eval = $geti($1.val, 0, _Ck); - var _Cr = $1.eval.length; - $1.val = $geti($1.val, _Cr, $1.val.length - _Cr); - if ($1.eval.length < $get($1.props, "min")) { - $j--; - $k[$j++] = "bwipp.GS1valueTooShort"; - $k[$j++] = "Too short"; - $k[$j++] = false; - return true; - } - var _Cx = new Map([ [ "N", "lintnumeric" ], [ "X", "lintcset82" ], [ "C", "lintcset39" ] ]); - $k[$j++] = $1.eval; - if ($1[$get(_Cx, $get($1.props, "cset"))]() === true) { + var _76 = $k[--$j]; //#812 + $k[$j++] = _76; //#814 + $k[$j++] = true; //#814 + $forall(_76, function() { //#814 + var _77 = $k[--$j]; //#813 + if ((_77 < 48) || (_77 > 57)) { //#813 + $j--; //#813 + $k[$j++] = false; //#813 + return true; //#813 + } //#813 + }); //#813 + if ($nt($k[--$j])) { //#815 + $j -= 2; //#815 + $k[$j++] = 'bwipp.GS1couponNotNumeric'; //#815 + $k[$j++] = "Coupon not numeric"; //#815 + $k[$j++] = false; //#815 + return true; //#815 + } //#815 + var _79 = $k[--$j]; //#817 + $k[$j++] = _79; //#819 + if (_79.length < 1) { //#819 + $j -= 2; //#818 + $k[$j++] = 'bwipp.GS1couponTooShortFormatCode'; //#818 + $k[$j++] = "Coupon too short: Missing Format Code"; //#818 + $k[$j++] = false; //#818 + return true; //#818 + } //#818 + var _7A = $k[--$j]; //#820 + var _7B = $geti(_7A, 0, 1); //#820 + $k[$j++] = _7A; //#822 + if ($ne(_7B, "0") && $ne(_7B, "1")) { //#822 + $j -= 2; //#821 + $k[$j++] = 'bwipp.GS1couponBadFormatCode'; //#821 + $k[$j++] = "Coupon format must be 0 or 1"; //#821 + $k[$j++] = false; //#821 + return true; //#821 + } //#821 + var _7C = $k[--$j]; //#823 + var _7D = $geti(_7C, 1, _7C.length - 1); //#823 + $k[$j++] = _7D; //#827 + if (_7D.length < 1) { //#827 + $j -= 2; //#826 + $k[$j++] = 'bwipp.GS1couponTooShortFunderVLI'; //#826 + $k[$j++] = "Coupon too short: Missing Funder VLI"; //#826 + $k[$j++] = false; //#826 + return true; //#826 + } //#826 + var _7E = $k[--$j]; //#828 + var _7G = ~~$z($geti(_7E, 0, 1)); //#828 + $k[$j++] = _7E; //#830 + $k[$j++] = _7G; //#830 + if (_7G > 6) { //#830 + $j -= 3; //#829 + $k[$j++] = 'bwipp.GS1couponBadFunderVLI'; //#829 + $k[$j++] = "Coupon Funder length indicator must be 0-6"; //#829 + $k[$j++] = false; //#829 + return true; //#829 + } //#829 + var _7H = $k[--$j]; //#831 + var _7I = $k[--$j]; //#832 + $k[$j++] = _7I; //#834 + $k[$j++] = $f($f(_7H + 6) + 1); //#834 + if (($f($f(_7H + 6) + 1)) > _7I.length) { //#834 + $j -= 3; //#833 + $k[$j++] = 'bwipp.GS1couponTooShortFunder'; //#833 + $k[$j++] = "Coupon too short: Truncated Funder ID"; //#833 + $k[$j++] = false; //#833 + return true; //#833 + } //#833 + var _7J = $k[--$j]; //#835 + var _7K = $k[--$j]; //#835 + var _7L = $geti(_7K, _7J, $f(_7K.length - _7J)); //#835 + $k[$j++] = _7L; //#839 + if (_7L.length < 6) { //#839 + $j -= 2; //#838 + $k[$j++] = 'bwipp.GS1couponTooShortOfferCode'; //#838 + $k[$j++] = "Coupon too short: Truncated Offer Code"; //#838 + $k[$j++] = false; //#838 + return true; //#838 + } //#838 + var _7M = $k[--$j]; //#840 + var _7N = $geti(_7M, 6, _7M.length - 6); //#840 + $k[$j++] = _7N; //#844 + if (_7N.length < 1) { //#844 + $j -= 2; //#843 + $k[$j++] = 'bwipp.GS1couponTooShortSnVLI'; //#843 + $k[$j++] = "Coupon too short: Missing SN VLI"; //#843 + $k[$j++] = false; //#843 + return true; //#843 + } //#843 + var _7O = $k[--$j]; //#845 + var _7P = $geti(_7O, 0, 1); //#845 + $k[$j++] = _7O; //#849 + $k[$j++] = ((~~$z(_7P)) + 6) + 1; //#849 + if ((((~~$z(_7P)) + 6) + 1) > _7O.length) { //#849 + $j -= 3; //#848 + $k[$j++] = 'bwipp.GS1couponTooShortSn'; //#848 + $k[$j++] = "Coupon too short: Truncated SN"; //#848 + $k[$j++] = false; //#848 + return true; //#848 + } //#848 + var _7Q = $k[--$j]; //#850 + var _7R = $k[--$j]; //#850 + var _7S = $geti(_7R, _7Q, $f(_7R.length - _7Q)); //#850 + $k[$j++] = _7S; //#853 + if (_7S.length != 0) { //#853 + $j -= 2; //#852 + $k[$j++] = 'bwipp.GS1couponTooLong'; //#852 + $k[$j++] = "Coupon too long"; //#852 + $k[$j++] = false; //#852 + return true; //#852 + } //#852 + $j--; //#854 + }; //#855 + var _7U = new Map([ + ["cset", 'N'], + ["min", 18], + ["max", 18], + ["check", $a(['lintcsum', 'lintkey'])] + ]); //#860 + var _7X = new Map([ + ["cset", 'N'], + ["min", 14], + ["max", 14], + ["check", $a(['lintcsum', 'lintkey'])] + ]); //#866 + var _7Y = $a([_7X]); //#866 + var _7a = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 20], + ["check", $a([])] + ]); //#873 + var _7d = new Map([ + ["cset", 'N'], + ["min", 6], + ["max", 6], + ["check", $a(['lintyymmd0'])] + ]); //#879 + var _7e = $a([_7d]); //#879 + var _7g = new Map([ + ["cset", 'N'], + ["min", 2], + ["max", 2], + ["check", $a([])] + ]); //#891 + var _7j = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 20], + ["check", $a([])] + ]); //#897 + var _7k = $a([_7j]); //#897 + var _7m = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 28], + ["check", $a([])] + ]); //#904 + var _7p = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 30], + ["check", $a([])] + ]); //#910 + var _7q = $a([_7p]); //#910 + var _7s = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 6], + ["check", $a([])] + ]); //#917 + var _7v = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 20], + ["check", $a([])] + ]); //#923 + var _7y = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 30], + ["check", $a([])] + ]); //#929 + var _7z = $a([_7y]); //#929 + var _81 = new Map([ + ["cset", 'N'], + ["min", 13], + ["max", 13], + ["check", $a(['lintcsum', 'lintkey'])] + ]); //#936 + var _83 = new Map([ + ["cset", 'X'], + ["min", 0], + ["max", 17], + ["check", $a([])] + ]); //#937 + var _86 = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 20], + ["check", $a([])] + ]); //#943 + var _89 = new Map([ + ["cset", 'N'], + ["min", 13], + ["max", 13], + ["check", $a(['lintcsum', 'lintkey'])] + ]); //#949 + var _8B = new Map([ + ["cset", 'N'], + ["min", 0], + ["max", 12], + ["check", $a([])] + ]); //#950 + var _8E = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 8], + ["check", $a([])] + ]); //#956 + var _8H = new Map([ + ["cset", 'N'], + ["min", 6], + ["max", 6], + ["check", $a([])] + ]); //#962 + var _8I = $a([_8H]); //#962 + var _8K = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 8], + ["check", $a([])] + ]); //#1285 + var _8N = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 15], + ["check", $a([])] + ]); //#1291 + var _8O = $a([_8N]); //#1291 + var _8Q = new Map([ + ["cset", 'N'], + ["min", 3], + ["max", 3], + ["check", $a(['lintiso4217'])] + ]); //#1306 + var _8S = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 15], + ["check", $a([])] + ]); //#1307 + var _8T = $a([_8Q, _8S]); //#1307 + var _8V = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 15], + ["check", $a([])] + ]); //#1322 + var _8W = $a([_8V]); //#1322 + var _8Y = new Map([ + ["cset", 'N'], + ["min", 3], + ["max", 3], + ["check", $a(['lintiso4217'])] + ]); //#1337 + var _8a = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 15], + ["check", $a([])] + ]); //#1338 + var _8b = $a([_8Y, _8a]); //#1338 + var _8d = new Map([ + ["cset", 'N'], + ["min", 4], + ["max", 4], + ["check", $a([])] + ]); //#1353 + var _8e = $a([_8d]); //#1353 + var _8g = new Map([ + ["cset", 'N'], + ["min", 6], + ["max", 6], + ["check", $a([])] + ]); //#1362 + var _8h = $a([_8g]); //#1362 + var _8j = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 30], + ["check", $a([])] + ]); //#1373 + var _8m = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 30], + ["check", $a(['lintkey'])] + ]); //#1379 + var _8p = new Map([ + ["cset", 'N'], + ["min", 17], + ["max", 17], + ["check", $a(['lintcsum', 'lintkey'])] + ]); //#1385 + var _8s = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 30], + ["check", $a([])] + ]); //#1391 + var _8v = new Map([ + ["cset", 'N'], + ["min", 13], + ["max", 13], + ["check", $a(['lintcsum', 'lintkey'])] + ]); //#1397 + var _8w = $a([_8v]); //#1397 + var _8y = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 20], + ["check", $a([])] + ]); //#1410 + var _91 = new Map([ + ["cset", 'N'], + ["min", 3], + ["max", 3], + ["check", $a(['lintiso3166'])] + ]); //#1416 + var _93 = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 9], + ["check", $a([])] + ]); //#1417 + var _96 = new Map([ + ["cset", 'N'], + ["min", 3], + ["max", 3], + ["check", $a(['lintiso3166'])] + ]); //#1423 + var _99 = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 15], + ["check", $a(['lintiso3166list'])] + ]); //#1429 + var _9C = new Map([ + ["cset", 'N'], + ["min", 3], + ["max", 3], + ["check", $a(['lintiso3166'])] + ]); //#1435 + var _9F = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 15], + ["check", $a(['lintiso3166list'])] + ]); //#1441 + var _9I = new Map([ + ["cset", 'N'], + ["min", 3], + ["max", 3], + ["check", $a(['lintiso3166'])] + ]); //#1447 + var _9L = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 3], + ["check", $a([])] + ]); //#1453 + var _9O = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 35], + ["check", $a(['lintpcenc'])] + ]); //#1459 + var _9P = $a([_9O]); //#1459 + var _9R = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 70], + ["check", $a(['lintpcenc'])] + ]); //#1466 + var _9S = $a([_9R]); //#1466 + var _9U = new Map([ + ["cset", 'X'], + ["min", 2], + ["max", 2], + ["check", $a(['lintiso3166alpha2'])] + ]); //#1476 + var _9X = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 30], + ["check", $a([])] + ]); //#1482 + var _9a = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 35], + ["check", $a(['lintpcenc'])] + ]); //#1488 + var _9b = $a([_9a]); //#1488 + var _9d = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 70], + ["check", $a(['lintpcenc'])] + ]); //#1495 + var _9e = $a([_9d]); //#1495 + var _9g = new Map([ + ["cset", 'X'], + ["min", 2], + ["max", 2], + ["check", $a(['lintiso3166alpha2'])] + ]); //#1505 + var _9j = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 20], + ["check", $a([])] + ]); //#1511 + var _9m = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 30], + ["check", $a([])] + ]); //#1517 + var _9p = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 35], + ["check", $a(['lintpcenc'])] + ]); //#1523 + var _9s = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 1], + ["check", $a(['lintyesno'])] + ]); //#1529 + var _9t = $a([_9s]); //#1529 + var _9v = new Map([ + ["cset", 'N'], + ["min", 6], + ["max", 6], + ["check", $a(['lintyymmd0'])] + ]); //#1537 + var _9x = new Map([ + ["cset", 'N'], + ["min", 4], + ["max", 4], + ["check", $a(['linthhmm'])] + ]); //#1538 + var _9y = $a([_9v, _9x]); //#1538 + var _A0 = new Map([ + ["cset", 'N'], + ["min", 6], + ["max", 6], + ["check", $a(['lintyymmdd'])] + ]); //#1545 + var _A3 = new Map([ + ["cset", 'N'], + ["min", 13], + ["max", 13], + ["check", $a([])] + ]); //#1551 + var _A6 = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 30], + ["check", $a([])] + ]); //#1557 + var _A9 = new Map([ + ["cset", 'N'], + ["min", 6], + ["max", 6], + ["check", $a(['lintyymmdd'])] + ]); //#1563 + var _AB = new Map([ + ["cset", 'N'], + ["min", 4], + ["max", 4], + ["check", $a(['linthhmm'])] + ]); //#1564 + var _AE = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 4], + ["check", $a([])] + ]); //#1570 + var _AH = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 12], + ["check", $a([])] + ]); //#1576 + var _AK = new Map([ + ["cset", 'N'], + ["min", 6], + ["max", 6], + ["check", $a(['lintyymmdd'])] + ]); //#1582 + var _AN = new Map([ + ["cset", 'N'], + ["min", 6], + ["max", 6], + ["check", $a(['lintyymmdd'])] + ]); //#1588 + var _AP = new Map([ + ["cset", 'N'], + ["min", 0], + ["max", 6], + ["check", $a(['lintyymmdd'])] + ]); //#1589 + var _AS = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 3], + ["check", $a([])] + ]); //#1595 + var _AV = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 10], + ["check", $a([])] + ]); //#1601 + var _AY = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 2], + ["check", $a([])] + ]); //#1607 + var _Ab = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 20], + ["check", $a([])] + ]); //#1613 + var _Ac = $a([_Ab]); //#1613 + var _Ae = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 30], + ["check", $a(['lintkey'])] + ]); //#1621 + var _Ah = new Map([ + ["cset", 'N'], + ["min", 3], + ["max", 3], + ["check", $a(['lintiso3166999'])] + ]); //#1627 + var _Aj = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 27], + ["check", $a([])] + ]); //#1628 + var _Ak = $a([_Ah, _Aj]); //#1628 + var _Am = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 1], + ["check", $a([])] + ]); //#1643 + var _Ao = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 1], + ["check", $a([])] + ]); //#1644 + var _Aq = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 1], + ["check", $a([])] + ]); //#1645 + var _As = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 1], + ["check", $a(['lintimporteridx'])] + ]); //#1646 + var _Av = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 20], + ["check", $a([])] + ]); //#1652 + var _Aw = $a([_Av]); //#1652 + var _Ay = new Map([ + ["cset", 'X'], + ["min", 2], + ["max", 2], + ["check", $a([])] + ]); //#1662 + var _B0 = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 28], + ["check", $a([])] + ]); //#1663 + var _B1 = $a([_Ay, _B0]); //#1663 + var _B3 = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 20], + ["check", $a([])] + ]); //#1678 + var _B6 = new Map([ + ["cset", 'N'], + ["min", 4], + ["max", 4], + ["check", $a(['lintnonzero'])] + ]); //#1684 + var _B8 = new Map([ + ["cset", 'N'], + ["min", 5], + ["max", 5], + ["check", $a(['lintnonzero'])] + ]); //#1685 + var _BA = new Map([ + ["cset", 'N'], + ["min", 3], + ["max", 3], + ["check", $a(['lintnonzero'])] + ]); //#1686 + var _BC = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 1], + ["check", $a(['lintwinding'])] + ]); //#1687 + var _BE = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 1], + ["check", $a([])] + ]); //#1688 + var _BH = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 20], + ["check", $a([])] + ]); //#1694 + var _BK = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 1], + ["check", $a(['lintzero'])] + ]); //#1700 + var _BM = new Map([ + ["cset", 'N'], + ["min", 13], + ["max", 13], + ["check", $a(['lintcsum', 'lintkey'])] + ]); //#1701 + var _BO = new Map([ + ["cset", 'X'], + ["min", 0], + ["max", 16], + ["check", $a([])] + ]); //#1702 + var _BR = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 30], + ["check", $a(['lintkey'])] + ]); //#1708 + var _BU = new Map([ + ["cset", 'N'], + ["min", 6], + ["max", 6], + ["check", $a([])] + ]); //#1714 + var _BX = new Map([ + ["cset", 'N'], + ["min", 14], + ["max", 14], + ["check", $a(['lintcsum'])] + ]); //#1720 + var _BZ = new Map([ + ["cset", 'N'], + ["min", 4], + ["max", 4], + ["check", $a(['lintpieceoftotal'])] + ]); //#1721 + var _Bc = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 34], + ["check", $a(['lintiban'])] + ]); //#1727 + var _Bf = new Map([ + ["cset", 'N'], + ["min", 8], + ["max", 8], + ["check", $a(['lintyymmddhh'])] + ]); //#1733 + var _Bh = new Map([ + ["cset", 'N'], + ["min", 0], + ["max", 4], + ["check", $a(['lintmmoptss'])] + ]); //#1734 + var _Bk = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 50], + ["check", $a([])] + ]); //#1740 + var _Bn = new Map([ + ["cset", 'C'], + ["min", 1], + ["max", 30], + ["check", $a(['lintkey'])] + ]); //#1746 + var _Bq = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 12], + ["check", $a(['lintnozeroprefix'])] + ]); //#1752 + var _Bt = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 20], + ["check", $a([])] + ]); //#1758 + var _Bw = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 25], + ["check", $a(['lintcsumalpha', 'lintkey'])] + ]); //#1764 + var _Bz = new Map([ + ["cset", 'N'], + ["min", 18], + ["max", 18], + ["check", $a(['lintcsum'])] + ]); //#1770 + var _C0 = $a([_Bz]); //#1770 + var _C2 = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 10], + ["check", $a([])] + ]); //#1777 + var _C5 = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 25], + ["check", $a([])] + ]); //#1783 + var _C8 = new Map([ + ["cset", 'N'], + ["min", 14], + ["max", 14], + ["check", $a(['lintcsum'])] + ]); //#1789 + var _CA = new Map([ + ["cset", 'N'], + ["min", 4], + ["max", 4], + ["check", $a(['lintpieceoftotal'])] + ]); //#1790 + var _CD = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 70], + ["check", $a(['lintcouponcode'])] + ]); //#1796 + var _CG = new Map([ + ["cset", 'N'], + ["min", 4], + ["max", 4], + ["check", $a([])] + ]); //#1802 + var _CJ = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 70], + ["check", $a(['lintcouponposoffer'])] + ]); //#1808 + var _CM = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 70], + ["check", $a([])] + ]); //#1814 + var _CP = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 30], + ["check", $a([])] + ]); //#1820 + var _CS = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 90], + ["check", $a([])] + ]); //#1826 + var _CT = $a([_CS]); //#1826 + var _CU = new Map([ + ["00", $a([_7U])], + ["01", _7Y], + ["02", _7Y], + ["10", $a([_7a])], + ["11", _7e], + ["12", _7e], + ["13", _7e], + ["14", _7e], + ["15", _7e], + ["16", _7e], + ["17", _7e], + ["20", $a([_7g])], + ["21", _7k], + ["22", _7k], + ["235", $a([_7m])], + ["240", _7q], + ["241", _7q], + ["242", $a([_7s])], + ["243", $a([_7v])], + ["250", _7z], + ["251", _7z], + ["253", $a([_81, _83])], + ["254", $a([_86])], + ["255", $a([_89, _8B])], + ["30", $a([_8E])], + ["3100", _8I], + ["3101", _8I], + ["3102", _8I], + ["3103", _8I], + ["3104", _8I], + ["3105", _8I], + ["3110", _8I], + ["3111", _8I], + ["3112", _8I], + ["3113", _8I], + ["3114", _8I], + ["3115", _8I], + ["3120", _8I], + ["3121", _8I], + ["3122", _8I], + ["3123", _8I], + ["3124", _8I], + ["3125", _8I], + ["3130", _8I], + ["3131", _8I], + ["3132", _8I], + ["3133", _8I], + ["3134", _8I], + ["3135", _8I], + ["3140", _8I], + ["3141", _8I], + ["3142", _8I], + ["3143", _8I], + ["3144", _8I], + ["3145", _8I], + ["3150", _8I], + ["3151", _8I], + ["3152", _8I], + ["3153", _8I], + ["3154", _8I], + ["3155", _8I], + ["3160", _8I], + ["3161", _8I], + ["3162", _8I], + ["3163", _8I], + ["3164", _8I], + ["3165", _8I], + ["3200", _8I], + ["3201", _8I], + ["3202", _8I], + ["3203", _8I], + ["3204", _8I], + ["3205", _8I], + ["3210", _8I], + ["3211", _8I], + ["3212", _8I], + ["3213", _8I], + ["3214", _8I], + ["3215", _8I], + ["3220", _8I], + ["3221", _8I], + ["3222", _8I], + ["3223", _8I], + ["3224", _8I], + ["3225", _8I], + ["3230", _8I], + ["3231", _8I], + ["3232", _8I], + ["3233", _8I], + ["3234", _8I], + ["3235", _8I], + ["3240", _8I], + ["3241", _8I], + ["3242", _8I], + ["3243", _8I], + ["3244", _8I], + ["3245", _8I], + ["3250", _8I], + ["3251", _8I], + ["3252", _8I], + ["3253", _8I], + ["3254", _8I], + ["3255", _8I], + ["3260", _8I], + ["3261", _8I], + ["3262", _8I], + ["3263", _8I], + ["3264", _8I], + ["3265", _8I], + ["3270", _8I], + ["3271", _8I], + ["3272", _8I], + ["3273", _8I], + ["3274", _8I], + ["3275", _8I], + ["3280", _8I], + ["3281", _8I], + ["3282", _8I], + ["3283", _8I], + ["3284", _8I], + ["3285", _8I], + ["3290", _8I], + ["3291", _8I], + ["3292", _8I], + ["3293", _8I], + ["3294", _8I], + ["3295", _8I], + ["3300", _8I], + ["3301", _8I], + ["3302", _8I], + ["3303", _8I], + ["3304", _8I], + ["3305", _8I], + ["3310", _8I], + ["3311", _8I], + ["3312", _8I], + ["3313", _8I], + ["3314", _8I], + ["3315", _8I], + ["3320", _8I], + ["3321", _8I], + ["3322", _8I], + ["3323", _8I], + ["3324", _8I], + ["3325", _8I], + ["3330", _8I], + ["3331", _8I], + ["3332", _8I], + ["3333", _8I], + ["3334", _8I], + ["3335", _8I], + ["3340", _8I], + ["3341", _8I], + ["3342", _8I], + ["3343", _8I], + ["3344", _8I], + ["3345", _8I], + ["3350", _8I], + ["3351", _8I], + ["3352", _8I], + ["3353", _8I], + ["3354", _8I], + ["3355", _8I], + ["3360", _8I], + ["3361", _8I], + ["3362", _8I], + ["3363", _8I], + ["3364", _8I], + ["3365", _8I], + ["3370", _8I], + ["3371", _8I], + ["3372", _8I], + ["3373", _8I], + ["3374", _8I], + ["3375", _8I], + ["3400", _8I], + ["3401", _8I], + ["3402", _8I], + ["3403", _8I], + ["3404", _8I], + ["3405", _8I], + ["3410", _8I], + ["3411", _8I], + ["3412", _8I], + ["3413", _8I], + ["3414", _8I], + ["3415", _8I], + ["3420", _8I], + ["3421", _8I], + ["3422", _8I], + ["3423", _8I], + ["3424", _8I], + ["3425", _8I], + ["3430", _8I], + ["3431", _8I], + ["3432", _8I], + ["3433", _8I], + ["3434", _8I], + ["3435", _8I], + ["3440", _8I], + ["3441", _8I], + ["3442", _8I], + ["3443", _8I], + ["3444", _8I], + ["3445", _8I], + ["3450", _8I], + ["3451", _8I], + ["3452", _8I], + ["3453", _8I], + ["3454", _8I], + ["3455", _8I], + ["3460", _8I], + ["3461", _8I], + ["3462", _8I], + ["3463", _8I], + ["3464", _8I], + ["3465", _8I], + ["3470", _8I], + ["3471", _8I], + ["3472", _8I], + ["3473", _8I], + ["3474", _8I], + ["3475", _8I], + ["3480", _8I], + ["3481", _8I], + ["3482", _8I], + ["3483", _8I], + ["3484", _8I], + ["3485", _8I], + ["3490", _8I], + ["3491", _8I], + ["3492", _8I], + ["3493", _8I], + ["3494", _8I], + ["3495", _8I], + ["3500", _8I], + ["3501", _8I], + ["3502", _8I], + ["3503", _8I], + ["3504", _8I], + ["3505", _8I], + ["3510", _8I], + ["3511", _8I], + ["3512", _8I], + ["3513", _8I], + ["3514", _8I], + ["3515", _8I], + ["3520", _8I], + ["3521", _8I], + ["3522", _8I], + ["3523", _8I], + ["3524", _8I], + ["3525", _8I], + ["3530", _8I], + ["3531", _8I], + ["3532", _8I], + ["3533", _8I], + ["3534", _8I], + ["3535", _8I], + ["3540", _8I], + ["3541", _8I], + ["3542", _8I], + ["3543", _8I], + ["3544", _8I], + ["3545", _8I], + ["3550", _8I], + ["3551", _8I], + ["3552", _8I], + ["3553", _8I], + ["3554", _8I], + ["3555", _8I], + ["3560", _8I], + ["3561", _8I], + ["3562", _8I], + ["3563", _8I], + ["3564", _8I], + ["3565", _8I], + ["3570", _8I], + ["3571", _8I], + ["3572", _8I], + ["3573", _8I], + ["3574", _8I], + ["3575", _8I], + ["3600", _8I], + ["3601", _8I], + ["3602", _8I], + ["3603", _8I], + ["3604", _8I], + ["3605", _8I], + ["3610", _8I], + ["3611", _8I], + ["3612", _8I], + ["3613", _8I], + ["3614", _8I], + ["3615", _8I], + ["3620", _8I], + ["3621", _8I], + ["3622", _8I], + ["3623", _8I], + ["3624", _8I], + ["3625", _8I], + ["3630", _8I], + ["3631", _8I], + ["3632", _8I], + ["3633", _8I], + ["3634", _8I], + ["3635", _8I], + ["3640", _8I], + ["3641", _8I], + ["3642", _8I], + ["3643", _8I], + ["3644", _8I], + ["3645", _8I], + ["3650", _8I], + ["3651", _8I], + ["3652", _8I], + ["3653", _8I], + ["3654", _8I], + ["3655", _8I], + ["3660", _8I], + ["3661", _8I], + ["3662", _8I], + ["3663", _8I], + ["3664", _8I], + ["3665", _8I], + ["3670", _8I], + ["3671", _8I], + ["3672", _8I], + ["3673", _8I], + ["3674", _8I], + ["3675", _8I], + ["3680", _8I], + ["3681", _8I], + ["3682", _8I], + ["3683", _8I], + ["3684", _8I], + ["3685", _8I], + ["3690", _8I], + ["3691", _8I], + ["3692", _8I], + ["3693", _8I], + ["3694", _8I], + ["3695", _8I], + ["37", $a([_8K])], + ["3900", _8O], + ["3901", _8O], + ["3902", _8O], + ["3903", _8O], + ["3904", _8O], + ["3905", _8O], + ["3906", _8O], + ["3907", _8O], + ["3908", _8O], + ["3909", _8O], + ["3910", _8T], + ["3911", _8T], + ["3912", _8T], + ["3913", _8T], + ["3914", _8T], + ["3915", _8T], + ["3916", _8T], + ["3917", _8T], + ["3918", _8T], + ["3919", _8T], + ["3920", _8W], + ["3921", _8W], + ["3922", _8W], + ["3923", _8W], + ["3924", _8W], + ["3925", _8W], + ["3926", _8W], + ["3927", _8W], + ["3928", _8W], + ["3929", _8W], + ["3930", _8b], + ["3931", _8b], + ["3932", _8b], + ["3933", _8b], + ["3934", _8b], + ["3935", _8b], + ["3936", _8b], + ["3937", _8b], + ["3938", _8b], + ["3939", _8b], + ["3940", _8e], + ["3941", _8e], + ["3942", _8e], + ["3943", _8e], + ["3950", _8h], + ["3951", _8h], + ["3952", _8h], + ["3953", _8h], + ["3954", _8h], + ["3955", _8h], + ["400", $a([_8j])], + ["401", $a([_8m])], + ["402", $a([_8p])], + ["403", $a([_8s])], + ["410", _8w], + ["411", _8w], + ["412", _8w], + ["413", _8w], + ["414", _8w], + ["415", _8w], + ["416", _8w], + ["417", _8w], + ["420", $a([_8y])], + ["421", $a([_91, _93])], + ["422", $a([_96])], + ["423", $a([_99])], + ["424", $a([_9C])], + ["425", $a([_9F])], + ["426", $a([_9I])], + ["427", $a([_9L])], + ["4300", _9P], + ["4301", _9P], + ["4302", _9S], + ["4303", _9S], + ["4304", _9S], + ["4305", _9S], + ["4306", _9S], + ["4307", $a([_9U])], + ["4308", $a([_9X])], + ["4310", _9b], + ["4311", _9b], + ["4312", _9e], + ["4313", _9e], + ["4314", _9e], + ["4315", _9e], + ["4316", _9e], + ["4317", $a([_9g])], + ["4318", $a([_9j])], + ["4319", $a([_9m])], + ["4320", $a([_9p])], + ["4321", _9t], + ["4322", _9t], + ["4323", _9t], + ["4324", _9y], + ["4325", _9y], + ["4326", $a([_A0])], + ["7001", $a([_A3])], + ["7002", $a([_A6])], + ["7003", $a([_A9, _AB])], + ["7004", $a([_AE])], + ["7005", $a([_AH])], + ["7006", $a([_AK])], + ["7007", $a([_AN, _AP])], + ["7008", $a([_AS])], + ["7009", $a([_AV])], + ["7010", $a([_AY])], + ["7020", _Ac], + ["7021", _Ac], + ["7022", _Ac], + ["7023", $a([_Ae])], + ["7030", _Ak], + ["7031", _Ak], + ["7032", _Ak], + ["7033", _Ak], + ["7034", _Ak], + ["7035", _Ak], + ["7036", _Ak], + ["7037", _Ak], + ["7038", _Ak], + ["7039", _Ak], + ["7040", $a([_Am, _Ao, _Aq, _As])], + ["710", _Aw], + ["711", _Aw], + ["712", _Aw], + ["713", _Aw], + ["714", _Aw], + ["7230", _B1], + ["7231", _B1], + ["7232", _B1], + ["7233", _B1], + ["7234", _B1], + ["7235", _B1], + ["7236", _B1], + ["7237", _B1], + ["7238", _B1], + ["7239", _B1], + ["7240", $a([_B3])], + ["8001", $a([_B6, _B8, _BA, _BC, _BE])], + ["8002", $a([_BH])], + ["8003", $a([_BK, _BM, _BO])], + ["8004", $a([_BR])], + ["8005", $a([_BU])], + ["8006", $a([_BX, _BZ])], + ["8007", $a([_Bc])], + ["8008", $a([_Bf, _Bh])], + ["8009", $a([_Bk])], + ["8010", $a([_Bn])], + ["8011", $a([_Bq])], + ["8012", $a([_Bt])], + ["8013", $a([_Bw])], + ["8017", _C0], + ["8018", _C0], + ["8019", $a([_C2])], + ["8020", $a([_C5])], + ["8026", $a([_C8, _CA])], + ["8110", $a([_CD])], + ["8111", $a([_CG])], + ["8112", $a([_CJ])], + ["8200", $a([_CM])], + ["90", $a([_CP])], + ["91", _CT], + ["92", _CT], + ["93", _CT], + ["94", _CT], + ["95", _CT], + ["96", _CT], + ["97", _CT], + ["98", _CT], + ["99", _CT] + ]); //#1837 + $1.gs1syntax = _CU; //#1839 + $k[$j++] = true; //#1866 + for (var _CX = 0, _CW = $1.vals.length - 1; _CX <= _CW; _CX += 1) { //#1866 + $1.ai = $get($1.ais, _CX); //#1843 + $1.val = $get($1.vals, _CX); //#1844 + var _Ce = $get($1.gs1syntax, $1.ai) !== undefined; //#1845 + if (_Ce) { //#1864 + $forall($get($1.gs1syntax, $1.ai), function() { //#1858 + $1.props = $k[--$j]; //#1847 + var _Ck = $get($1.props, 'max'); //#1848 + var _Cl = $1.val; //#1848 + var _Cm = _Cl.length; //#1848 + if (_Ck > _Cl.length) { //#1848 + var _ = _Cm; //#1848 + _Cm = _Ck; //#1848 + _Ck = _; //#1848 + } //#1848 + $1.eval = $geti($1.val, 0, _Ck); //#1849 + var _Cr = $1.eval.length; //#1850 + $1.val = $geti($1.val, _Cr, $1.val.length - _Cr); //#1850 + if ($1.eval.length < $get($1.props, 'min')) { //#1853 + $j--; //#1852 + $k[$j++] = 'bwipp.GS1valueTooShort'; //#1852 + $k[$j++] = "Too short"; //#1852 + $k[$j++] = false; //#1852 + return true; //#1852 + } //#1852 + var _Cx = new Map([ + ["N", 'lintnumeric'], + ["X", 'lintcset82'], + ["C", 'lintcset39'] + ]); //#1854 + $k[$j++] = $1.eval; //#1854 + if ($1[$get(_Cx, $get($1.props, 'cset'))]() === true) { return true; - } - if ($1.eval.length > 0) { - $forall($get($1.props, "check"), function() { - var _D8 = $1[$k[--$j]]; - $k[$j++] = $1.eval; + } //#1854 + if ($1.eval.length > 0) { //#1857 + $forall($get($1.props, 'check'), function() { //#1856 + var _D8 = $1[$k[--$j]]; //#1856 + $k[$j++] = $1.eval; //#1856 if (_D8() === true) { return true; - } - }); - } - }); - var _D9 = $k[--$j]; - $k[$j++] = _D9; - if ($nt(_D9)) { - break; - } - if ($1.val.length != 0) { - $j--; - $k[$j++] = "bwipp.GS1valueTooLong"; - $k[$j++] = "Too long"; - $k[$j++] = false; - break; - } - } else { - $j--; - $k[$j++] = "bwipp.GS1unknownAI"; - $k[$j++] = "Unrecognised AI"; - $k[$j++] = false; - break; - } - } - if ($nt($k[--$j])) { - var _DC = $k[--$j]; - var _DE = $s(_DC.length + $1.ai.length + 5); - $puti(_DE, 0, "AI "); - $puti(_DE, 3, $1.ai); - $puti(_DE, 3 + $1.ai.length, ": "); - $puti(_DE, 5 + $1.ai.length, _DC); - $k[$j++] = _DE; - $0.raiseerror(); - } - $k[$j++] = true; + } //#1856 + }); //#1856 + } //#1856 + }); //#1856 + var _D9 = $k[--$j]; //#1859 + $k[$j++] = _D9; //#1859 + if ($nt(_D9)) { //#1859 + break; //#1859 + } //#1859 + if ($1.val.length != 0) { //#1862 + $j--; //#1861 + $k[$j++] = 'bwipp.GS1valueTooLong'; //#1861 + $k[$j++] = "Too long"; //#1861 + $k[$j++] = false; //#1861 + break; //#1861 + } //#1861 + } else { //#1864 + $j--; //#1864 + $k[$j++] = 'bwipp.GS1unknownAI'; //#1864 + $k[$j++] = "Unrecognised AI"; //#1864 + $k[$j++] = false; //#1864 + break; //#1864 + } //#1864 + } //#1864 + if ($nt($k[--$j])) { //#1874 + var _DC = $k[--$j]; //#1868 + var _DE = $s((_DC.length + $1.ai.length) + 5); //#1868 + $puti(_DE, 0, "AI "); //#1869 + $puti(_DE, 3, $1.ai); //#1870 + $puti(_DE, 3 + $1.ai.length, ": "); //#1871 + $puti(_DE, 5 + $1.ai.length, _DC); //#1872 + $k[$j++] = _DE; //#1873 + $0.raiseerror(); //#1873 + } //#1873 + $k[$j++] = true; //#1877 }; $0.renmatrix = function() { - if ($0.bwipjs_dontdraw) { - return; - } - var $1 = {}; - $1.args = $k[--$j]; - $1.width = 1; - $1.height = 1; - $1.barcolor = "unset"; - $1.backgroundcolor = "unset"; - $1.colormap = "unset"; - $1.dotty = false; - $1.inkspread = 0; - $1.inkspreadh = 0; - $1.inkspreadv = 0; - $1.includetext = false; - $1.txt = $a([]); - $1.textcolor = "unset"; - $1.textxalign = "unset"; - $1.textyalign = "unset"; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = 0; - $1.textgaps = 0; - $1.alttext = ""; - $forall($1.args, function() { - var _4 = $k[--$j]; - $1[$k[--$j]] = _4; - }); - var _6 = $1.opt; - for (var _B = _6.size, _A = _6.keys(), _9 = 0; _9 < _B; _9++) { - var _7 = _A.next().value; - $1[_7] = _6.get(_7); - } - $1.width = +$1.width; - $1.height = +$1.height; - $1.barcolor = "" + $1.barcolor; - $1.backgroundcolor = "" + $1.backgroundcolor; - $1.inkspread = +$1.inkspread; - $1.inkspreadh = +$1.inkspreadh; - $1.inkspreadv = +$1.inkspreadv; - $1.textcolor = "" + $1.textcolor; - $1.textxalign = "" + $1.textxalign; - $1.textyalign = "" + $1.textyalign; - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.textgaps = +$1.textgaps; - $1.alttext = "" + $1.alttext; - if ($1.inkspread != 0) { - $1.inkspreadh = $1.inkspread; - } - if ($1.inkspread != 0) { - $1.inkspreadv = $1.inkspread; - } + if ($0.bwipjs_dontdraw) { //#2145 + return; //#2145 + } //#2145 + var $1 = {}; //#2147 + $1.args = $k[--$j]; //#2149 + $1.width = 1; //#2152 + $1.height = 1; //#2153 + $1.barcolor = "unset"; //#2154 + $1.backgroundcolor = "unset"; //#2155 + $1.colormap = "unset"; //#2156 + $1.dotty = false; //#2157 + $1.inkspread = 0; //#2158 + $1.inkspreadh = 0; //#2159 + $1.inkspreadv = 0; //#2160 + $1.includetext = false; //#2161 + $1.txt = $a([]); //#2162 + $1.textcolor = "unset"; //#2163 + $1.textxalign = "unset"; //#2164 + $1.textyalign = "unset"; //#2165 + $1.textfont = "OCR-B"; //#2166 + $1.textsize = 10; //#2167 + $1.textxoffset = 0; //#2168 + $1.textyoffset = 0; //#2169 + $1.textgaps = 0; //#2170 + $1.alttext = ""; //#2171 + $forall($1.args, function() { //#2174 + var _4 = $k[--$j]; //#2174 + $1[$k[--$j]] = _4; //#2174 + }); //#2174 + var _6 = $1.opt; //#2175 + for (var _B = _6.size, _A = _6.keys(), _9 = 0; _9 < _B; _9++) { //#2175 + var _7 = _A.next().value; //#2175 + $1[_7] = _6.get(_7); //#2175 + } //#2175 + $1.width = +$1.width; //#2177 + $1.height = +$1.height; //#2178 + $1.barcolor = "" + $1.barcolor; //#2179 + $1.backgroundcolor = "" + $1.backgroundcolor; //#2180 + $1.inkspread = +$1.inkspread; //#2181 + $1.inkspreadh = +$1.inkspreadh; //#2182 + $1.inkspreadv = +$1.inkspreadv; //#2183 + $1.textcolor = "" + $1.textcolor; //#2184 + $1.textxalign = "" + $1.textxalign; //#2185 + $1.textyalign = "" + $1.textyalign; //#2186 + $1.textfont = "" + $1.textfont; //#2187 + $1.textsize = +$1.textsize; //#2188 + $1.textxoffset = +$1.textxoffset; //#2189 + $1.textyoffset = +$1.textyoffset; //#2190 + $1.textgaps = +$1.textgaps; //#2191 + $1.alttext = "" + $1.alttext; //#2192 + if ($1.inkspread != 0) { //#2194 + $1.inkspreadh = $1.inkspread; //#2194 + } //#2194 + if ($1.inkspread != 0) { //#2195 + $1.inkspreadv = $1.inkspread; //#2195 + } //#2195 $1.xyget = function() { - var _X = $k[--$j]; - var _a = $get($1.pixs, $f($k[--$j] + _X * $1.pixx)); - $k[$j++] = _a; - }; + var _X = $k[--$j]; //#2197 + var _a = $get($1.pixs, $f($k[--$j] + (_X * $1.pixx))); //#2197 + $k[$j++] = _a; //#2197 + }; //#2197 $1.cget = function() { - var _c = $k[--$j]; - var _f = $get($1.cache, $f($k[--$j] + _c * $1.pixx)); - var _g = $k[--$j]; - $k[$j++] = $an(_g, _f); - }; + var _c = $k[--$j]; //#2198 + var _f = $get($1.cache, $f($k[--$j] + (_c * $1.pixx))); //#2198 + var _g = $k[--$j]; //#2198 + $k[$j++] = $an(_g, _f); //#2198 + }; //#2198 $1.cput = function() { - var _h = $k[--$j]; - $k[$j++] = _h; - if (_h % 4 == 0) { - var _i = $k[--$j]; - var _j = $k[--$j]; - var _k = $k[--$j]; - var _l = $1.pixx; - var _m = $1.cache; - $put(_m, $f(_k + _j * _l), $or($get(_m, $f(_k + _j * _l)), _i)); - } else { - $j -= 3; - } - }; + var _h = $k[--$j]; //#2200 + $k[$j++] = _h; //#2204 + if ((_h % 4) == 0) { //#2203 + var _i = $k[--$j]; //#2201 + var _j = $k[--$j]; //#2201 + var _k = $k[--$j]; //#2201 + var _l = $1.pixx; //#2201 + var _m = $1.cache; //#2201 + $put(_m, $f(_k + (_j * _l)), $or($get(_m, $f(_k + (_j * _l))), _i)); //#2201 + } else { //#2203 + $j -= 3; //#2203 + } //#2203 + }; //#2205 $1.abcd = function() { - $k[$j++] = $s(4); - $k[$j++] = 0; - $k[$j++] = Infinity; - var _p = $k[--$j]; - var _q = $k[--$j]; - var _r = $k[--$j]; - var _s = $k[--$j]; - var _v = $f($k[--$j] + _s * $1.pixx); - $k[$j++] = _r; - $k[$j++] = _q; - $k[$j++] = _p; - $k[$j++] = _v; - $aload($geti($1.pixs, _v, 2)); - var _y = $k[--$j]; - var _z = $k[--$j]; - var _13 = $geti($1.pixs, $f($k[--$j] + $1.pixx), 2); - $k[$j++] = _z; - $k[$j++] = _y; - $aload(_13); - var _14 = $a(); - for (var _15 = 0, _16 = _14.length; _15 < _16; _15++) { - var _18 = $k[--$j]; - var _19 = $k[--$j]; - $put(_19, _18, $f($get(_14, _15) + 48)); - $k[$j++] = _19; - $k[$j++] = $f(_18 + 1); - } - $j--; - }; + $k[$j++] = $s(4); //#2212 + $k[$j++] = 0; //#2212 + $k[$j++] = Infinity; //#2212 + var _p = $k[--$j]; //#2209 + var _q = $k[--$j]; //#2209 + var _r = $k[--$j]; //#2209 + var _s = $k[--$j]; //#2209 + var _v = $f($k[--$j] + (_s * $1.pixx)); //#2210 + $k[$j++] = _r; //#2211 + $k[$j++] = _q; //#2211 + $k[$j++] = _p; //#2211 + $k[$j++] = _v; //#2211 + $aload($geti($1.pixs, _v, 2)); //#2211 + var _y = $k[--$j]; //#2211 + var _z = $k[--$j]; //#2211 + var _13 = $geti($1.pixs, $f($k[--$j] + $1.pixx), 2); //#2212 + $k[$j++] = _z; //#2212 + $k[$j++] = _y; //#2212 + $aload(_13); //#2212 + var _14 = $a(); //#2212 + for (var _15 = 0, _16 = _14.length; _15 < _16; _15++) { //#2213 + var _18 = $k[--$j]; //#2213 + var _19 = $k[--$j]; //#2213 + $put(_19, _18, $f($get(_14, _15) + 48)); //#2213 + $k[$j++] = _19; //#2213 + $k[$j++] = $f(_18 + 1); //#2213 + } //#2213 + $j--; //#2213 + }; //#2214 $1.right = function() { - if ($1.dir != 1) { - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $k[$j++] = $1.dir; - $1.cput(); - $k[$j++] = $a([ $1.x, $1.y ]); - } - $1.x = $1.x + 1; - $1.dir = 1; - }; + if ($1.dir != 1) { //#2216 + $k[$j++] = $1.x; //#2216 + $k[$j++] = $1.y; //#2216 + $k[$j++] = $1.dir; //#2216 + $1.cput(); //#2216 + $k[$j++] = $a([$1.x, $1.y]); //#2216 + } //#2216 + $1.x = $1.x + 1; //#2216 + $1.dir = 1; //#2216 + }; //#2216 $1.down = function() { - if ($1.dir != 2) { - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $k[$j++] = $1.dir; - $1.cput(); - $k[$j++] = $a([ $1.x, $1.y ]); - } - $1.y = $1.y + 1; - $1.dir = 2; - }; + if ($1.dir != 2) { //#2217 + $k[$j++] = $1.x; //#2217 + $k[$j++] = $1.y; //#2217 + $k[$j++] = $1.dir; //#2217 + $1.cput(); //#2217 + $k[$j++] = $a([$1.x, $1.y]); //#2217 + } //#2217 + $1.y = $1.y + 1; //#2217 + $1.dir = 2; //#2217 + }; //#2217 $1.left = function() { - if ($1.dir != 4) { - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $k[$j++] = $1.dir; - $1.cput(); - $k[$j++] = $a([ $1.x, $1.y ]); - } - $1.x = $1.x - 1; - $1.dir = 4; - }; + if ($1.dir != 4) { //#2218 + $k[$j++] = $1.x; //#2218 + $k[$j++] = $1.y; //#2218 + $k[$j++] = $1.dir; //#2218 + $1.cput(); //#2218 + $k[$j++] = $a([$1.x, $1.y]); //#2218 + } //#2218 + $1.x = $1.x - 1; //#2218 + $1.dir = 4; //#2218 + }; //#2218 $1.up = function() { - if ($1.dir != 8) { - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $k[$j++] = $1.dir; - $1.cput(); - $k[$j++] = $a([ $1.x, $1.y ]); - } - $1.y = $1.y - 1; - $1.dir = 8; - }; + if ($1.dir != 8) { //#2219 + $k[$j++] = $1.x; //#2219 + $k[$j++] = $1.y; //#2219 + $k[$j++] = $1.dir; //#2219 + $1.cput(); //#2219 + $k[$j++] = $a([$1.x, $1.y]); //#2219 + } //#2219 + $1.y = $1.y - 1; //#2219 + $1.dir = 8; //#2219 + }; //#2219 $1.trace = function() { - $1.y = $k[--$j]; - $1.x = $k[--$j]; - $k[$j++] = "dir"; - $k[$j++] = $f($1.x + 1); - $k[$j++] = $f($1.y + 1); - $1.xyget(); - var _1l = $k[--$j] == 1 ? 8 : 4; - $1[$k[--$j]] = _1l; - $1.sx = $1.x; - $1.sy = $1.y; - $1.sdir = $1.dir; - $k[$j++] = Infinity; - for (;;) { - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $1.abcd(); - for (var _1s = 0, _1t = 1; _1s < _1t; _1s++) { - var _1u = $k[--$j]; - $k[$j++] = _1u; - if ($eq(_1u, "0001") || ($eq(_1u, "0011") || $eq(_1u, "1011"))) { - $j--; - $1.right(); - break; - } - var _1v = $k[--$j]; - $k[$j++] = _1v; - if ($eq(_1v, "0010") || ($eq(_1v, "1010") || $eq(_1v, "1110"))) { - $j--; - $1.down(); - break; - } - var _1w = $k[--$j]; - $k[$j++] = _1w; - if ($eq(_1w, "1000") || ($eq(_1w, "1100") || $eq(_1w, "1101"))) { - $j--; - $1.left(); - break; - } - var _1x = $k[--$j]; - $k[$j++] = _1x; - if ($eq(_1x, "0100") || ($eq(_1x, "0101") || $eq(_1x, "0111"))) { - $j--; - $1.up(); - break; - } - var _1y = $k[--$j]; - $k[$j++] = _1y; - if ($eq(_1y, "1001")) { - if ($1.dir == 2) { - $j--; - $1.left(); - break; - } else { - $j--; - $1.right(); - break; - } - } else { - if ($1.dir == 1) { - $j--; - $1.down(); - break; - } else { - $j--; - $1.up(); - break; - } - } - } - if ($eq($1.x, $1.sx) && $eq($1.y, $1.sy) && $1.dir == $1.sdir) { - break; - } - } - $astore($a($counttomark())); - var _29 = $k[--$j]; - var _2A = $k[--$j]; - $k[$j++] = _29; - $k[$j++] = _2A; - $j--; - }; + $1.y = $k[--$j]; //#2223 + $1.x = $k[--$j]; //#2223 + $k[$j++] = 'dir'; //#2225 + $k[$j++] = $f($1.x + 1); //#2225 + $k[$j++] = $f($1.y + 1); //#2225 + $1.xyget(); //#2225 + var _1l = ($k[--$j] == 1) ? 8 : 4; //#2225 + $1[$k[--$j]] = _1l; //#2225 + $1.sx = $1.x; //#2226 + $1.sy = $1.y; //#2226 + $1.sdir = $1.dir; //#2226 + $k[$j++] = Infinity; //#2230 + for (;;) { //#2244 + $k[$j++] = $1.x; //#2231 + $k[$j++] = $1.y; //#2231 + $1.abcd(); //#2231 + for (var _1s = 0, _1t = 1; _1s < _1t; _1s++) { //#2242 + var _1u = $k[--$j]; //#2233 + $k[$j++] = _1u; //#2233 + if ($eq(_1u, "0001") || ($eq(_1u, "0011") || $eq(_1u, "1011"))) { //#2233 + $j--; //#2233 + $1.right(); //#2233 + break; //#2233 + } //#2233 + var _1v = $k[--$j]; //#2234 + $k[$j++] = _1v; //#2234 + if ($eq(_1v, "0010") || ($eq(_1v, "1010") || $eq(_1v, "1110"))) { //#2234 + $j--; //#2234 + $1.down(); //#2234 + break; //#2234 + } //#2234 + var _1w = $k[--$j]; //#2235 + $k[$j++] = _1w; //#2235 + if ($eq(_1w, "1000") || ($eq(_1w, "1100") || $eq(_1w, "1101"))) { //#2235 + $j--; //#2235 + $1.left(); //#2235 + break; //#2235 + } //#2235 + var _1x = $k[--$j]; //#2236 + $k[$j++] = _1x; //#2236 + if ($eq(_1x, "0100") || ($eq(_1x, "0101") || $eq(_1x, "0111"))) { //#2236 + $j--; //#2236 + $1.up(); //#2236 + break; //#2236 + } //#2236 + var _1y = $k[--$j]; //#2237 + $k[$j++] = _1y; //#2241 + if ($eq(_1y, "1001")) { //#2240 + if ($1.dir == 2) { //#2238 + $j--; //#2238 + $1.left(); //#2238 + break; //#2238 + } else { //#2238 + $j--; //#2238 + $1.right(); //#2238 + break; //#2238 + } //#2238 + } else { //#2240 + if ($1.dir == 1) { //#2240 + $j--; //#2240 + $1.down(); //#2240 + break; //#2240 + } else { //#2240 + $j--; //#2240 + $1.up(); //#2240 + break; //#2240 + } //#2240 + } //#2240 + } //#2240 + if (($eq($1.x, $1.sx) && $eq($1.y, $1.sy)) && ($1.dir == $1.sdir)) { //#2243 + break; //#2243 + } //#2243 + } //#2243 + $astore($a($counttomark())); //#2245 + var _29 = $k[--$j]; //#2245 + var _2A = $k[--$j]; //#2245 + $k[$j++] = _29; //#2245 + $k[$j++] = _2A; //#2245 + $j--; //#2245 + }; //#2247 $1.drawlayer = function() { - $1.pixsorig = $1.pixs; - $1.pixs = $k[--$j]; - $k[$j++] = Infinity; - for (var _2E = 0, _2F = $1.pixx + 2; _2E < _2F; _2E++) { - $k[$j++] = 0; - } - for (var _2J = 0, _2K = $1.pixx, _2I = $1.pixs.length - 1; _2K < 0 ? _2J >= _2I : _2J <= _2I; _2J += _2K) { - $k[$j++] = 0; - $aload($geti($1.pixs, _2J, $1.pixx)); - $k[$j++] = 0; - } - for (var _2P = 0, _2Q = $1.pixx + 2; _2P < _2Q; _2P++) { - $k[$j++] = 0; - } - $1.pixs = $a(); - $1.pixx = $1.pixx + 2; - $1.pixy = $1.pixy + 2; - $k[$j++] = Infinity; - for (var _2V = 0, _2W = $1.pixs.length; _2V < _2W; _2V++) { - $k[$j++] = 0; - } - $1.cache = $a(); - $k[$j++] = Infinity; - for (var _2a = 0, _2Z = $1.pixy - 2; _2a <= _2Z; _2a += 1) { - $1.j = _2a; - for (var _2d = 0, _2c = $1.pixx - 2; _2d <= _2c; _2d += 1) { - $1.i = _2d; - $k[$j++] = "k"; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.abcd(); - var _2g = $k[--$j]; - $1[$k[--$j]] = _2g; - if ($eq($1.k, "0001") || $eq($1.k, "1001")) { - $k[$j++] = 8; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.cget(); - if ($k[--$j] == 0) { - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.trace(); - } - } - if ($eq($1.k, "1110")) { - $k[$j++] = 4; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.cget(); - if ($k[--$j] == 0) { - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.trace(); - } - } - } - } - $1.paths = $a(); - $1.pixx = $1.pixx - 2; - $1.pixy = $1.pixy - 2; - $$.newpath(); - var _2y = $1.paths; - for (var _2z = 0, _30 = _2y.length; _2z < _30; _2z++) { - $1.p = $get(_2y, _2z); - $1.len = $1.p.length; - $aload($get($1.p, $1.len - 1)); - $aload($get($1.p, 0)); - for (var _3A = 0, _39 = $1.len - 1; _3A <= _39; _3A += 1) { - $1.i = _3A; - $aload($get($1.p, ($1.i + 1) % $1.len)); - var _3F = $k[--$j]; - var _3G = $k[--$j]; - var _3H = $k[--$j]; - var _3I = $k[--$j]; - var _3J = $k[--$j]; - var _3K = $k[--$j]; - $k[$j++] = _3I; - $k[$j++] = _3H; - $k[$j++] = _3G; - $k[$j++] = _3F; - $k[$j++] = _3K; - $k[$j++] = _3I; - $k[$j++] = $1.inkspreadh; - if ($lt(_3F, _3J)) { - var _3M = $k[--$j]; - var _3N = $k[--$j]; - $k[$j++] = $f(_3N + _3M); - } else { - var _3O = $k[--$j]; - var _3P = $k[--$j]; - $k[$j++] = $f(_3P - _3O); - } - var _3Q = $k[--$j]; - var _3R = $k[--$j]; - var _3S = $k[--$j]; - var _3T = $k[--$j]; - var _3U = $k[--$j]; - $k[$j++] = _3U; - $k[$j++] = _3Q; - $k[$j++] = _3T; - $k[$j++] = _3S; - $k[$j++] = _3U; - $k[$j++] = $1.inkspreadv; - if ($gt(_3T, _3R)) { - var _3W = $k[--$j]; - var _3X = $k[--$j]; - $k[$j++] = $f(_3X + _3W); - } else { - var _3Y = $k[--$j]; - var _3Z = $k[--$j]; - $k[$j++] = $f(_3Z - _3Y); - } - var _3a = $k[--$j]; - var _3b = $k[--$j]; - var _3c = $k[--$j]; - var _3d = $k[--$j]; - $k[$j++] = _3c; - $k[$j++] = _3b; - $k[$j++] = _3d; - $k[$j++] = $f($1.pixy - _3a); - if ($1.i == 0) { - var _3g = $k[--$j]; - $$.moveto($k[--$j], _3g); - } else { - var _3i = $k[--$j]; - $$.lineto($k[--$j], _3i); - } - } - $$.closepath(); - $j -= 4; - } - $$.fill(); - $1.pixs = $1.pixsorig; - }; + $1.pixsorig = $1.pixs; //#2263 + $1.pixs = $k[--$j]; //#2264 + $k[$j++] = Infinity; //#2274 + for (var _2E = 0, _2F = $1.pixx + 2; _2E < _2F; _2E++) { //#2268 + $k[$j++] = 0; //#2268 + } //#2268 + for (var _2J = 0, _2K = $1.pixx, _2I = $1.pixs.length - 1; _2K < 0 ? _2J >= _2I : _2J <= _2I; _2J += _2K) { //#2273 + $k[$j++] = 0; //#2271 + $aload($geti($1.pixs, _2J, $1.pixx)); //#2271 + $k[$j++] = 0; //#2272 + } //#2272 + for (var _2P = 0, _2Q = $1.pixx + 2; _2P < _2Q; _2P++) { //#2274 + $k[$j++] = 0; //#2274 + } //#2274 + $1.pixs = $a(); //#2274 + $1.pixx = $1.pixx + 2; //#2276 + $1.pixy = $1.pixy + 2; //#2277 + $k[$j++] = Infinity; //#2280 + for (var _2V = 0, _2W = $1.pixs.length; _2V < _2W; _2V++) { //#2280 + $k[$j++] = 0; //#2280 + } //#2280 + $1.cache = $a(); //#2280 + $k[$j++] = Infinity; //#2296 + for (var _2a = 0, _2Z = $1.pixy - 2; _2a <= _2Z; _2a += 1) { //#2300 + $1.j = _2a; //#2285 + for (var _2d = 0, _2c = $1.pixx - 2; _2d <= _2c; _2d += 1) { //#2299 + $1.i = _2d; //#2287 + $k[$j++] = 'k'; //#2288 + $k[$j++] = $1.i; //#2288 + $k[$j++] = $1.j; //#2288 + $1.abcd(); //#2288 + var _2g = $k[--$j]; //#2288 + $1[$k[--$j]] = _2g; //#2288 + if ($eq($1.k, "0001") || $eq($1.k, "1001")) { //#2293 + $k[$j++] = 8; //#2290 + $k[$j++] = $1.i; //#2290 + $k[$j++] = $1.j; //#2290 + $1.cget(); //#2290 + if ($k[--$j] == 0) { //#2292 + $k[$j++] = $1.i; //#2291 + $k[$j++] = $1.j; //#2291 + $1.trace(); //#2291 + } //#2291 + } //#2291 + if ($eq($1.k, "1110")) { //#2298 + $k[$j++] = 4; //#2295 + $k[$j++] = $1.i; //#2295 + $k[$j++] = $1.j; //#2295 + $1.cget(); //#2295 + if ($k[--$j] == 0) { //#2297 + $k[$j++] = $1.i; //#2296 + $k[$j++] = $1.j; //#2296 + $1.trace(); //#2296 + } //#2296 + } //#2296 + } //#2296 + } //#2296 + $1.paths = $a(); //#2296 + $1.pixx = $1.pixx - 2; //#2304 + $1.pixy = $1.pixy - 2; //#2305 + $$.newpath(); //#2308 + var _2y = $1.paths; //#2309 + for (var _2z = 0, _30 = _2y.length; _2z < _30; _2z++) { //#2327 + $1.p = $get(_2y, _2z); //#2310 + $1.len = $1.p.length; //#2311 + $aload($get($1.p, $1.len - 1)); //#2312 + $aload($get($1.p, 0)); //#2313 + for (var _3A = 0, _39 = $1.len - 1; _3A <= _39; _3A += 1) { //#2324 + $1.i = _3A; //#2315 + $aload($get($1.p, ($1.i + 1) % $1.len)); //#2316 + var _3F = $k[--$j]; //#2316 + var _3G = $k[--$j]; //#2316 + var _3H = $k[--$j]; //#2316 + var _3I = $k[--$j]; //#2316 + var _3J = $k[--$j]; //#2316 + var _3K = $k[--$j]; //#2316 + $k[$j++] = _3I; //#2318 + $k[$j++] = _3H; //#2318 + $k[$j++] = _3G; //#2318 + $k[$j++] = _3F; //#2318 + $k[$j++] = _3K; //#2318 + $k[$j++] = _3I; //#2318 + $k[$j++] = $1.inkspreadh; //#2318 + if ($lt(_3F, _3J)) { //#2318 + var _3M = $k[--$j]; //#2318 + var _3N = $k[--$j]; //#2318 + $k[$j++] = $f(_3N + _3M); //#2318 + } else { //#2318 + var _3O = $k[--$j]; //#2318 + var _3P = $k[--$j]; //#2318 + $k[$j++] = $f(_3P - _3O); //#2318 + } //#2318 + var _3Q = $k[--$j]; //#2319 + var _3R = $k[--$j]; //#2319 + var _3S = $k[--$j]; //#2319 + var _3T = $k[--$j]; //#2319 + var _3U = $k[--$j]; //#2320 + $k[$j++] = _3U; //#2321 + $k[$j++] = _3Q; //#2321 + $k[$j++] = _3T; //#2321 + $k[$j++] = _3S; //#2321 + $k[$j++] = _3U; //#2321 + $k[$j++] = $1.inkspreadv; //#2321 + if ($gt(_3T, _3R)) { //#2321 + var _3W = $k[--$j]; //#2321 + var _3X = $k[--$j]; //#2321 + $k[$j++] = $f(_3X + _3W); //#2321 + } else { //#2321 + var _3Y = $k[--$j]; //#2321 + var _3Z = $k[--$j]; //#2321 + $k[$j++] = $f(_3Z - _3Y); //#2321 + } //#2321 + var _3a = $k[--$j]; //#2322 + var _3b = $k[--$j]; //#2322 + var _3c = $k[--$j]; //#2322 + var _3d = $k[--$j]; //#2322 + $k[$j++] = _3c; //#2323 + $k[$j++] = _3b; //#2323 + $k[$j++] = _3d; //#2323 + $k[$j++] = $f($1.pixy - _3a); //#2323 + if ($1.i == 0) { //#2323 + var _3g = $k[--$j]; //#2323 + $$.moveto($k[--$j], _3g); //#2323 + } else { //#2323 + var _3i = $k[--$j]; //#2323 + $$.lineto($k[--$j], _3i); //#2323 + } //#2323 + } //#2323 + $$.closepath(); //#2325 + $j -= 4; //#2326 + } //#2326 + $$.fill(); //#2328 + $1.pixs = $1.pixsorig; //#2330 + }; //#2332 $1.drawlayerdots = function() { - $1.pixsorig = $1.pixs; - $1.pixs = $k[--$j]; - $$.newpath(); - for (var _3p = 0, _3o = $1.pixs.length - 1; _3p <= _3o; _3p += 1) { - $1.x = _3p % $1.pixx; - $1.y = ~~(_3p / $1.pixx); - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $1.xyget(); - if ($k[--$j] == 1) { - $$.moveto($f($1.x + .5), $f($1.pixy - $1.y - .5)); - $$.arc($f($1.x + .5), $f($1.pixy - $1.y - .5), $f(.5 - $1.inkspread), 0, 360, 1); - } - } - $$.fill(); - $1.pixs = $1.pixsorig; - }; - $$.save(); - $1.inkspread = $1.inkspread / 2; - $1.inkspreadh = $1.inkspreadh / 2; - $1.inkspreadv = $1.inkspreadv / 2; - var _46 = $$.currpos(); - $$.translate(_46.x, _46.y); - $$.scale($1.width / $1.pixx * 72, $1.height / $1.pixy * 72); - $$.moveto(0, 0); - $$.lineto($1.pixx, 0); - $$.lineto($1.pixx, $1.pixy); - $$.lineto(0, $1.pixy); - $$.closepath(); - if ($eq($1.colormap, "unset")) { - var _4H = new Map([ [ 1, $1.barcolor ] ]); - $1.colormap = _4H; - } - var _4I = $1.colormap; - for (var _4N = _4I.size, _4M = _4I.keys(), _4L = 0; _4L < _4N; _4L++) { - var _4J = _4M.next().value; - $$.setcolor(_4I.get(_4J)); - $1.key = _4J; - $k[$j++] = Infinity; - var _4O = $1.pixs; - for (var _4P = 0, _4Q = _4O.length; _4P < _4Q; _4P++) { - var _4T = $eq($get(_4O, _4P), $1.key) ? 1 : 0; - $k[$j++] = _4T; - } - var _4U = $a(); - $k[$j++] = _4U; - if ($1.dotty) { - $1.drawlayerdots(); - } else { - $1.drawlayer(); - } - } - if ($ne($1.textcolor, "unset")) { - $$.setcolor($1.textcolor); - } - if ($1.includetext) { - if ($eq($1.textxalign, "unset") && $eq($1.textyalign, "unset") && $eq($1.alttext, "")) { - $1.s = 0; - $1.fn = ""; - var _4c = $1.txt; - for (var _4d = 0, _4e = _4c.length; _4d < _4e; _4d++) { - $forall($get(_4c, _4d)); - var _4g = $k[--$j]; - var _4h = $k[--$j]; - $k[$j++] = _4h; - $k[$j++] = _4g; - if (_4g != $1.s || $ne(_4h, $1.fn)) { - var _4k = $k[--$j]; - var _4l = $k[--$j]; - $1.s = _4k; - $1.fn = _4l; - $$.selectfont(_4l, _4k); - } else { - $j -= 2; - } - var _4m = $k[--$j]; - $$.moveto($k[--$j], _4m); - $$.show($k[--$j], 0, 0); - } - } else { - $$.selectfont($1.textfont, $1.textsize); - if ($eq($1.alttext, "")) { - $k[$j++] = Infinity; - var _4s = $1.txt; - for (var _4t = 0, _4u = _4s.length; _4t < _4u; _4t++) { - $forall($get($get(_4s, _4t), 0)); - } - $1.txt = $a(); - $1.tstr = $s($1.txt.length); - for (var _52 = 0, _51 = $1.txt.length - 1; _52 <= _51; _52 += 1) { - $put($1.tstr, _52, $get($1.txt, _52)); - } - } else { - $1.tstr = $1.alttext; - } - if ($1.tstr.length == 0) { - $k[$j++] = 0; - } else { - $$.save(); - $$.newpath(); - $$.moveto(0, 0); - $$.charpath("0", false); - var _58 = $$.pathbbox(); - $$.restore(); - $k[$j++] = _58.ury; - } - $1.textascent = $k[--$j]; - var _5B = $$.stringwidth($1.tstr); - $1.textwidth = $f(_5B.w + ($1.tstr.length - 1) * $1.textgaps); - $1.textxpos = $f($1.textxoffset + $f($1.x - $1.textwidth) / 2); - if ($eq($1.textxalign, "left")) { - $1.textxpos = $1.textxoffset; - } - if ($eq($1.textxalign, "right")) { - $1.textxpos = $f($f($1.x - $1.textxoffset) - $1.textwidth); - } - if ($eq($1.textxalign, "offleft")) { - $1.textxpos = -$f($1.textwidth + $1.textxoffset); - } - if ($eq($1.textxalign, "offright")) { - $1.textxpos = $f($1.x + $1.textxoffset); - } - if ($eq($1.textxalign, "justify") && $1.textwidth < $1.x) { - $1.textxpos = 0; - $1.textgaps = $f($1.x - $1.textwidth) / ($1.tstr.length - 1); - } - $1.textypos = -$f($f($1.textyoffset + $1.textascent) + 1); - if ($eq($1.textyalign, "above")) { - $1.textypos = $f($f($1.textyoffset + $1.pixy) + 1); - } - if ($eq($1.textyalign, "center")) { - $1.textypos = $f($1.textyoffset + $f($1.pixy - $1.textascent) / 2); - } - $$.moveto($1.textxpos, $1.textypos); - $$.show($1.tstr, $1.textgaps, 0); - } - } - $$.restore(); + $1.pixsorig = $1.pixs; //#2336 + $1.pixs = $k[--$j]; //#2337 + $$.newpath(); //#2339 + for (var _3p = 0, _3o = $1.pixs.length - 1; _3p <= _3o; _3p += 1) { //#2347 + $1.x = _3p % $1.pixx; //#2341 + $1.y = ~~(_3p / $1.pixx); //#2342 + $k[$j++] = $1.x; //#2343 + $k[$j++] = $1.y; //#2343 + $1.xyget(); //#2343 + if ($k[--$j] == 1) { //#2346 + $$.moveto($f($1.x + 0.5), $f(($1.pixy - $1.y) - 0.5)); //#2344 + $$.arc($f($1.x + 0.5), $f(($1.pixy - $1.y) - 0.5), $f(0.5 - $1.inkspread), 0, 360, 1); //#2345 + } //#2345 + } //#2345 + $$.fill(); //#2348 + $1.pixs = $1.pixsorig; //#2350 + }; //#2352 + $$.save(); //#2354 + $1.inkspread = $1.inkspread / 2; //#2357 + $1.inkspreadh = $1.inkspreadh / 2; //#2358 + $1.inkspreadv = $1.inkspreadv / 2; //#2359 + var _46 = $$.currpos(); //#2360 + $$.translate(_46.x, _46.y); //#2360 + $$.scale(($1.width / $1.pixx) * 72, ($1.height / $1.pixy) * 72); //#2361 + $$.moveto(0, 0); //#2362 + $$.lineto($1.pixx, 0); //#2362 + $$.lineto($1.pixx, $1.pixy); //#2362 + $$.lineto(0, $1.pixy); //#2362 + $$.closepath(); //#2362 + if ($eq($1.colormap, "unset")) { //#2367 + var _4H = new Map([ + [1, $1.barcolor] + ]); //#2366 + $1.colormap = _4H; //#2366 + } //#2366 + var _4I = $1.colormap; //#2369 + for (var _4N = _4I.size, _4M = _4I.keys(), _4L = 0; _4L < _4N; _4L++) { //#2375 + var _4J = _4M.next().value; //#2375 + $$.setcolor(_4I.get(_4J)); //#2370 + $1.key = _4J; //#2371 + $k[$j++] = Infinity; //#2373 + var _4O = $1.pixs; //#2373 + for (var _4P = 0, _4Q = _4O.length; _4P < _4Q; _4P++) { //#2373 + var _4T = $eq($get(_4O, _4P), $1.key) ? 1 : 0; //#2373 + $k[$j++] = _4T; //#2373 + } //#2373 + var _4U = $a(); //#2373 + $k[$j++] = _4U; //#2374 + if ($1.dotty) { //#2374 + $1.drawlayerdots(); //#2374 + } else { //#2374 + $1.drawlayer(); //#2374 + } //#2374 + } //#2374 + if ($ne($1.textcolor, "unset")) { //#2378 + $$.setcolor($1.textcolor); //#2378 + } //#2378 + if ($1.includetext) { //#2435 + if (($eq($1.textxalign, "unset") && $eq($1.textyalign, "unset")) && $eq($1.alttext, "")) { //#2433 + $1.s = 0; //#2381 + $1.fn = ""; //#2381 + var _4c = $1.txt; //#2382 + for (var _4d = 0, _4e = _4c.length; _4d < _4e; _4d++) { //#2391 + $forall($get(_4c, _4d)); //#2383 + var _4g = $k[--$j]; //#2384 + var _4h = $k[--$j]; //#2384 + $k[$j++] = _4h; //#2389 + $k[$j++] = _4g; //#2389 + if ((_4g != $1.s) || $ne(_4h, $1.fn)) { //#2388 + var _4k = $k[--$j]; //#2385 + var _4l = $k[--$j]; //#2385 + $1.s = _4k; //#2385 + $1.fn = _4l; //#2385 + $$.selectfont(_4l, _4k); //#2386 + } else { //#2388 + $j -= 2; //#2388 + } //#2388 + var _4m = $k[--$j]; //#2390 + $$.moveto($k[--$j], _4m); //#2390 + $$.show($k[--$j], 0, 0); //#2390 + } //#2390 + } else { //#2433 + $$.selectfont($1.textfont, $1.textsize); //#2393 + if ($eq($1.alttext, "")) { //#2399 + $k[$j++] = Infinity; //#2395 + var _4s = $1.txt; //#2395 + for (var _4t = 0, _4u = _4s.length; _4t < _4u; _4t++) { //#2395 + $forall($get($get(_4s, _4t), 0)); //#2395 + } //#2395 + $1.txt = $a(); //#2395 + $1.tstr = $s($1.txt.length); //#2396 + for (var _52 = 0, _51 = $1.txt.length - 1; _52 <= _51; _52 += 1) { //#2397 + $put($1.tstr, _52, $get($1.txt, _52)); //#2397 + } //#2397 + } else { //#2399 + $1.tstr = $1.alttext; //#2399 + } //#2399 + if ($1.tstr.length == 0) { //#2409 + $k[$j++] = 0; //#2404 + } else { //#2409 + $$.save(); //#2406 + $$.newpath(); //#2407 + $$.moveto(0, 0); //#2407 + $$.charpath("0", false); //#2407 + var _58 = $$.pathbbox(); //#2407 + $$.restore(); //#2409 + $k[$j++] = _58.ury; //#2409 + } //#2409 + $1.textascent = $k[--$j]; //#2418 + var _5B = $$.stringwidth($1.tstr); //#2419 + $1.textwidth = $f(_5B.w + (($1.tstr.length - 1) * $1.textgaps)); //#2419 + $1.textxpos = $f($1.textxoffset + ($f($1.x - $1.textwidth) / 2)); //#2421 + if ($eq($1.textxalign, "left")) { //#2422 + $1.textxpos = $1.textxoffset; //#2422 + } //#2422 + if ($eq($1.textxalign, "right")) { //#2423 + $1.textxpos = $f($f($1.x - $1.textxoffset) - $1.textwidth); //#2423 + } //#2423 + if ($eq($1.textxalign, "offleft")) { //#2424 + $1.textxpos = -$f($1.textwidth + $1.textxoffset); //#2424 + } //#2424 + if ($eq($1.textxalign, "offright")) { //#2425 + $1.textxpos = $f($1.x + $1.textxoffset); //#2425 + } //#2425 + if ($eq($1.textxalign, "justify") && ($1.textwidth < $1.x)) { //#2429 + $1.textxpos = 0; //#2427 + $1.textgaps = $f($1.x - $1.textwidth) / ($1.tstr.length - 1); //#2428 + } //#2428 + $1.textypos = -($f($f($1.textyoffset + $1.textascent) + 1)); //#2430 + if ($eq($1.textyalign, "above")) { //#2431 + $1.textypos = $f($f($1.textyoffset + $1.pixy) + 1); //#2431 + } //#2431 + if ($eq($1.textyalign, "center")) { //#2432 + $1.textypos = $f($1.textyoffset + ($f($1.pixy - $1.textascent) / 2)); //#2432 + } //#2432 + $$.moveto($1.textxpos, $1.textypos); //#2433 + $$.show($1.tstr, $1.textgaps, 0); //#2433 + } //#2433 + } //#2433 + $$.restore(); //#2437 }; $0.ean5 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 12; - $1.textxoffset = 0; - $1.textyoffset = "unset"; - $1.height = .7; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.height = +$1.height; - $1.textxoffset = +$1.textxoffset; - if ($eq($1.textyoffset, "unset")) { - $1.textyoffset = $f($1.height * 72 + 1); - } else { - $1.textyoffset = +$1.textyoffset; - } - if ($1.barcode.length != 5) { - $k[$j++] = "bwipp.ean5badLength"; - $k[$j++] = "EAN-5 add-on must be 5 digits"; - $0.raiseerror(); - } - $forall($1.barcode, function() { - var _E = $k[--$j]; - if (_E < 48 || _E > 57) { - $k[$j++] = "bwipp.ean5badCharacter"; - $k[$j++] = "EAN-5 add-on must contain only digits"; - $0.raiseerror(); - } - }); - $1.encs = $a([ "3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "112", "11" ]); - $1.barchars = "0123456789"; - $1.mirrormaps = $a([ "11000", "10100", "10010", "10001", "01100", "00110", "00011", "01010", "01001", "00101" ]); - $1.checksum = 0; - for (var _H = 0; _H <= 4; _H += 1) { - $1.i = _H; - $1.barchar = $f($get($1.barcode, $1.i) - 48); - if ($1.i % 2 == 0) { - $1.checksum = $f($1.barchar * 3 + $1.checksum); - } else { - $1.checksum = $f($1.barchar * 9 + $1.checksum); - } - } - $1.checksum = $1.checksum % 10; - $1.mirrormap = $get($1.mirrormaps, $1.checksum); - $1.sbs = $s(31); - $1.txt = $a(5); - for (var _W = 0; _W <= 4; _W += 1) { - $1.i = _W; - if ($1.i == 0) { - $puti($1.sbs, 0, $get($1.encs, 10)); - } else { - $puti($1.sbs, ($1.i - 1) * 6 + 7, $get($1.encs, 11)); - } - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - if ($get($1.mirrormap, $1.i) == 49) { - $1.enclen = $1.enc.length; - $1.revenc = $s($1.enclen); - for (var _v = 0, _u = $1.enclen - 1; _v <= _u; _v += 1) { - $1.j = _v; - $1.char = $get($1.enc, $1.j); - $put($1.revenc, $1.enclen - $1.j - 1, $1.char); - } - $1.enc = $1.revenc; - } - $puti($1.sbs, $1.i * 6 + 3, $1.enc); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $f(($1.i - 1) * 9 + 13 + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize ])); - } - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _1I = $1.sbs; - for (var _1J = 0, _1K = _1I.length; _1J < _1K; _1J++) { - $k[$j++] = $get(_1I, _1J) - 48; - } - var _1M = $a(); - $k[$j++] = Infinity; - for (var _1N = 0, _1O = 16; _1N < _1O; _1N++) { - $k[$j++] = $1.height; - } - var _1Q = $a(); - $k[$j++] = Infinity; - for (var _1R = 0, _1S = 16; _1R < _1S; _1R++) { - $k[$j++] = 0; - } - var _1T = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _1M; - $k[$j++] = "bhs"; - $k[$j++] = _1Q; - $k[$j++] = "bbs"; - $k[$j++] = _1T; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - $k[$j++] = "guardrightpos"; - $k[$j++] = 10; - $k[$j++] = "guardrightypos"; - $k[$j++] = $f($1.textyoffset + 4); - $k[$j++] = "bordertop"; - $k[$j++] = 10; - var _1Y = $d(); - $k[$j++] = _1Y; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#2555 + $1.options = $k[--$j]; //#2557 + $1.barcode = $k[--$j]; //#2558 + $1.dontdraw = false; //#2560 + $1.includetext = false; //#2561 + $1.textfont = "OCR-B"; //#2562 + $1.textsize = 12; //#2563 + $1.textxoffset = 0; //#2564 + $1.textyoffset = "unset"; //#2565 + $1.height = 0.7; //#2566 + $forall($1.options, function() { //#2577 + var _3 = $k[--$j]; //#2577 + $1[$k[--$j]] = _3; //#2577 + }); //#2577 + $1.textfont = "" + $1.textfont; //#2579 + $1.textsize = +$1.textsize; //#2580 + $1.height = +$1.height; //#2581 + $1.textxoffset = +$1.textxoffset; //#2582 + if ($eq($1.textyoffset, "unset")) { //#2586 + $1.textyoffset = $f(($1.height * 72) + 1); //#2584 + } else { //#2586 + $1.textyoffset = +$1.textyoffset; //#2586 + } //#2586 + if ($1.barcode.length != 5) { //#2592 + $k[$j++] = 'bwipp.ean5badLength'; //#2591 + $k[$j++] = "EAN-5 add-on must be 5 digits"; //#2591 + $0.raiseerror(); //#2591 + } //#2591 + $forall($1.barcode, function() { //#2597 + var _E = $k[--$j]; //#2594 + if ((_E < 48) || (_E > 57)) { //#2596 + $k[$j++] = 'bwipp.ean5badCharacter'; //#2595 + $k[$j++] = "EAN-5 add-on must contain only digits"; //#2595 + $0.raiseerror(); //#2595 + } //#2595 + }); //#2595 + $1.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "112", "11"]); //#2604 + $1.barchars = "0123456789"; //#2607 + $1.mirrormaps = $a(["11000", "10100", "10010", "10001", "01100", "00110", "00011", "01010", "01001", "00101"]); //#2613 + $1.checksum = 0; //#2614 + for (var _H = 0; _H <= 4; _H += 1) { //#2623 + $1.i = _H; //#2616 + $1.barchar = $f($get($1.barcode, $1.i) - 48); //#2617 + if (($1.i % 2) == 0) { //#2621 + $1.checksum = $f(($1.barchar * 3) + $1.checksum); //#2619 + } else { //#2621 + $1.checksum = $f(($1.barchar * 9) + $1.checksum); //#2621 + } //#2621 + } //#2621 + $1.checksum = $1.checksum % 10; //#2624 + $1.mirrormap = $get($1.mirrormaps, $1.checksum); //#2625 + $1.sbs = $s(31); //#2627 + $1.txt = $a(5); //#2628 + for (var _W = 0; _W <= 4; _W += 1) { //#2658 + $1.i = _W; //#2631 + if ($1.i == 0) { //#2637 + $puti($1.sbs, 0, $get($1.encs, 10)); //#2635 + } else { //#2637 + $puti($1.sbs, (($1.i - 1) * 6) + 7, $get($1.encs, 11)); //#2637 + } //#2637 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#2641 + $j--; //#2642 + $1.indx = $k[--$j].length; //#2643 + $j -= 2; //#2644 + $1.enc = $get($1.encs, $1.indx); //#2645 + if ($get($1.mirrormap, $1.i) == 49) { //#2655 + $1.enclen = $1.enc.length; //#2647 + $1.revenc = $s($1.enclen); //#2648 + for (var _v = 0, _u = $1.enclen - 1; _v <= _u; _v += 1) { //#2653 + $1.j = _v; //#2650 + $1.char = $get($1.enc, $1.j); //#2651 + $put($1.revenc, ($1.enclen - $1.j) - 1, $1.char); //#2652 + } //#2652 + $1.enc = $1.revenc; //#2654 + } //#2654 + $puti($1.sbs, ($1.i * 6) + 3, $1.enc); //#2656 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $f(((($1.i - 1) * 9) + 13) + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize])); //#2657 + } //#2657 + $k[$j++] = Infinity; //#2672 + $k[$j++] = Infinity; //#2663 + var _1I = $1.sbs; //#2663 + for (var _1J = 0, _1K = _1I.length; _1J < _1K; _1J++) { //#2663 + $k[$j++] = $get(_1I, _1J) - 48; //#2663 + } //#2663 + var _1M = $a(); //#2663 + $k[$j++] = Infinity; //#2664 + for (var _1N = 0, _1O = 16; _1N < _1O; _1N++) { //#2664 + $k[$j++] = $1.height; //#2664 + } //#2664 + var _1Q = $a(); //#2664 + $k[$j++] = Infinity; //#2665 + for (var _1R = 0, _1S = 16; _1R < _1S; _1R++) { //#2665 + $k[$j++] = 0; //#2665 + } //#2665 + var _1T = $a(); //#2665 + $k[$j++] = 'ren'; //#2668 + $k[$j++] = $0.renlinear; //#2668 + $k[$j++] = 'sbs'; //#2668 + $k[$j++] = _1M; //#2668 + $k[$j++] = 'bhs'; //#2668 + $k[$j++] = _1Q; //#2668 + $k[$j++] = 'bbs'; //#2668 + $k[$j++] = _1T; //#2668 + if ($1.includetext) { //#2668 + $k[$j++] = 'txt'; //#2667 + $k[$j++] = $1.txt; //#2667 + } //#2667 + $k[$j++] = 'opt'; //#2672 + $k[$j++] = $1.options; //#2672 + $k[$j++] = 'guardrightpos'; //#2672 + $k[$j++] = 10; //#2672 + $k[$j++] = 'guardrightypos'; //#2672 + $k[$j++] = $f($1.textyoffset + 4); //#2672 + $k[$j++] = 'bordertop'; //#2672 + $k[$j++] = 10; //#2672 + var _1Y = $d(); //#2672 + $k[$j++] = _1Y; //#2675 + if (!$1.dontdraw) { //#2675 + $0.renlinear(); //#2675 + } //#2675 }; $0.ean2 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 12; - $1.textxoffset = 0; - $1.textyoffset = "unset"; - $1.height = .7; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.height = +$1.height; - $1.textxoffset = +$1.textxoffset; - if ($eq($1.textyoffset, "unset")) { - $1.textyoffset = $f($1.height * 72 + 1); - } else { - $1.textyoffset = +$1.textyoffset; - } - if ($1.barcode.length != 2) { - $k[$j++] = "bwipp.ean2badLength"; - $k[$j++] = "EAN-2 add-on must be 2 digits"; - $0.raiseerror(); - } - $forall($1.barcode, function() { - var _E = $k[--$j]; - if (_E < 48 || _E > 57) { - $k[$j++] = "bwipp.ean2badCharacter"; - $k[$j++] = "EAN-2 add-on must contain only digits"; - $0.raiseerror(); - } - }); - $1.encs = $a([ "3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "112", "11" ]); - $1.barchars = "0123456789"; - $1.mirrormap = $get($a([ "00", "01", "10", "11" ]), ~~$z($geti($1.barcode, 0, 2)) % 4); - $1.sbs = $s(13); - $1.txt = $a(2); - for (var _M = 0; _M <= 1; _M += 1) { - $1.i = _M; - if ($1.i == 0) { - $puti($1.sbs, 0, $get($1.encs, 10)); - } else { - $puti($1.sbs, ($1.i - 1) * 6 + 7, $get($1.encs, 11)); - } - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - if ($get($1.mirrormap, $1.i) == 49) { - $1.enclen = $1.enc.length; - $1.revenc = $s($1.enclen); - for (var _l = 0, _k = $1.enclen - 1; _l <= _k; _l += 1) { - $1.j = _l; - $1.char = $get($1.enc, $1.j); - $put($1.revenc, $1.enclen - $1.j - 1, $1.char); - } - $1.enc = $1.revenc; - } - $puti($1.sbs, $1.i * 6 + 3, $1.enc); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $f(($1.i - 1) * 9 + 13 + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize ])); - } - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _18 = $1.sbs; - for (var _19 = 0, _1A = _18.length; _19 < _1A; _19++) { - $k[$j++] = $get(_18, _19) - 48; - } - var _1C = $a(); - $k[$j++] = Infinity; - for (var _1D = 0, _1E = 12; _1D < _1E; _1D++) { - $k[$j++] = $1.height; - } - var _1G = $a(); - $k[$j++] = Infinity; - for (var _1H = 0, _1I = 12; _1H < _1I; _1H++) { - $k[$j++] = 0; - } - var _1J = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _1C; - $k[$j++] = "bhs"; - $k[$j++] = _1G; - $k[$j++] = "bbs"; - $k[$j++] = _1J; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - $k[$j++] = "guardrightpos"; - $k[$j++] = 10; - $k[$j++] = "guardrightypos"; - $k[$j++] = $f($1.textyoffset + 4); - $k[$j++] = "bordertop"; - $k[$j++] = 10; - var _1O = $d(); - $k[$j++] = _1O; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#2704 + $1.options = $k[--$j]; //#2706 + $1.barcode = $k[--$j]; //#2707 + $1.dontdraw = false; //#2709 + $1.includetext = false; //#2710 + $1.textfont = "OCR-B"; //#2711 + $1.textsize = 12; //#2712 + $1.textxoffset = 0; //#2713 + $1.textyoffset = "unset"; //#2714 + $1.height = 0.7; //#2715 + $forall($1.options, function() { //#2726 + var _3 = $k[--$j]; //#2726 + $1[$k[--$j]] = _3; //#2726 + }); //#2726 + $1.textfont = "" + $1.textfont; //#2728 + $1.textsize = +$1.textsize; //#2729 + $1.height = +$1.height; //#2730 + $1.textxoffset = +$1.textxoffset; //#2731 + if ($eq($1.textyoffset, "unset")) { //#2735 + $1.textyoffset = $f(($1.height * 72) + 1); //#2733 + } else { //#2735 + $1.textyoffset = +$1.textyoffset; //#2735 + } //#2735 + if ($1.barcode.length != 2) { //#2741 + $k[$j++] = 'bwipp.ean2badLength'; //#2740 + $k[$j++] = "EAN-2 add-on must be 2 digits"; //#2740 + $0.raiseerror(); //#2740 + } //#2740 + $forall($1.barcode, function() { //#2746 + var _E = $k[--$j]; //#2743 + if ((_E < 48) || (_E > 57)) { //#2745 + $k[$j++] = 'bwipp.ean2badCharacter'; //#2744 + $k[$j++] = "EAN-2 add-on must contain only digits"; //#2744 + $0.raiseerror(); //#2744 + } //#2744 + }); //#2744 + $1.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "112", "11"]); //#2753 + $1.barchars = "0123456789"; //#2756 + $1.mirrormap = $get($a(["00", "01", "10", "11"]), (~~$z($geti($1.barcode, 0, 2))) % 4); //#2759 + $1.sbs = $s(13); //#2761 + $1.txt = $a(2); //#2762 + for (var _M = 0; _M <= 1; _M += 1) { //#2792 + $1.i = _M; //#2765 + if ($1.i == 0) { //#2771 + $puti($1.sbs, 0, $get($1.encs, 10)); //#2769 + } else { //#2771 + $puti($1.sbs, (($1.i - 1) * 6) + 7, $get($1.encs, 11)); //#2771 + } //#2771 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#2775 + $j--; //#2776 + $1.indx = $k[--$j].length; //#2777 + $j -= 2; //#2778 + $1.enc = $get($1.encs, $1.indx); //#2779 + if ($get($1.mirrormap, $1.i) == 49) { //#2789 + $1.enclen = $1.enc.length; //#2781 + $1.revenc = $s($1.enclen); //#2782 + for (var _l = 0, _k = $1.enclen - 1; _l <= _k; _l += 1) { //#2787 + $1.j = _l; //#2784 + $1.char = $get($1.enc, $1.j); //#2785 + $put($1.revenc, ($1.enclen - $1.j) - 1, $1.char); //#2786 + } //#2786 + $1.enc = $1.revenc; //#2788 + } //#2788 + $puti($1.sbs, ($1.i * 6) + 3, $1.enc); //#2790 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $f(((($1.i - 1) * 9) + 13) + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize])); //#2791 + } //#2791 + $k[$j++] = Infinity; //#2806 + $k[$j++] = Infinity; //#2797 + var _18 = $1.sbs; //#2797 + for (var _19 = 0, _1A = _18.length; _19 < _1A; _19++) { //#2797 + $k[$j++] = $get(_18, _19) - 48; //#2797 + } //#2797 + var _1C = $a(); //#2797 + $k[$j++] = Infinity; //#2798 + for (var _1D = 0, _1E = 12; _1D < _1E; _1D++) { //#2798 + $k[$j++] = $1.height; //#2798 + } //#2798 + var _1G = $a(); //#2798 + $k[$j++] = Infinity; //#2799 + for (var _1H = 0, _1I = 12; _1H < _1I; _1H++) { //#2799 + $k[$j++] = 0; //#2799 + } //#2799 + var _1J = $a(); //#2799 + $k[$j++] = 'ren'; //#2802 + $k[$j++] = $0.renlinear; //#2802 + $k[$j++] = 'sbs'; //#2802 + $k[$j++] = _1C; //#2802 + $k[$j++] = 'bhs'; //#2802 + $k[$j++] = _1G; //#2802 + $k[$j++] = 'bbs'; //#2802 + $k[$j++] = _1J; //#2802 + if ($1.includetext) { //#2802 + $k[$j++] = 'txt'; //#2801 + $k[$j++] = $1.txt; //#2801 + } //#2801 + $k[$j++] = 'opt'; //#2806 + $k[$j++] = $1.options; //#2806 + $k[$j++] = 'guardrightpos'; //#2806 + $k[$j++] = 10; //#2806 + $k[$j++] = 'guardrightypos'; //#2806 + $k[$j++] = $f($1.textyoffset + 4); //#2806 + $k[$j++] = 'bordertop'; //#2806 + $k[$j++] = 10; //#2806 + var _1O = $d(); //#2806 + $k[$j++] = _1O; //#2809 + if (!$1.dontdraw) { //#2809 + $0.renlinear(); //#2809 + } //#2809 }; $0.ean13 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 12; - $1.textxoffset = -10; - $1.textyoffset = -4; - $1.height = 1; - $1.addongap = 12; - $1.addontextfont = "unset"; - $1.addontextsize = "unset"; - $1.addontextxoffset = "unset"; - $1.addontextyoffset = "unset"; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.addongap = +$1.addongap; - if ($ne($1.addontextfont, "unset")) { - $1.addontextfont = "" + $1.addontextfont; - } - if ($ne($1.addontextsize, "unset")) { - $1.addontextsize = +$1.addontextsize; - } - if ($ne($1.addontextxoffset, "unset")) { - $1.addontextxoffset = +$1.addontextxoffset; - } - if ($ne($1.addontextyoffset, "unset")) { - $1.addontextyoffset = +$1.addontextyoffset; - } - $search($1.barcode, " "); - if ($k[--$j]) { - $1.barcode = $k[--$j]; - $j--; - $1.addon = $k[--$j]; - } else { - $j--; - $1.addon = ""; - } - if ($1.barcode.length != 12 && $1.barcode.length != 13) { - $k[$j++] = "bwipp.ean13badLength"; - $k[$j++] = "EAN-13 must be 12 or 13 digits"; - $0.raiseerror(); - } - $forall($1.barcode, function() { - var _Q = $k[--$j]; - if (_Q < 48 || _Q > 57) { - $k[$j++] = "bwipp.ean13badCharacter"; - $k[$j++] = "EAN-13 must contain only digits"; - $0.raiseerror(); - } - }); - if ($1.addon.length != 0 && $1.addon.length != 2 && $1.addon.length != 5) { - $k[$j++] = "bwipp.ean13badAddOnLength"; - $k[$j++] = "Add-on for EAN-13 must be 2 or 5 digits"; - $0.raiseerror(); - } - $1.pad = $s(13); - $1.checksum = 0; - for (var _V = 0; _V <= 11; _V += 1) { - $1.i = _V; - $1.barchar = $f($get($1.barcode, $1.i) - 48); - if ($1.i % 2 == 0) { - $1.checksum = $f($1.barchar + $1.checksum); - } else { - $1.checksum = $f($1.barchar * 3 + $1.checksum); - } - } - $1.checksum = $f(10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 13) { - if ($get($1.barcode, 12) != $f($1.checksum + 48)) { - $k[$j++] = "bwipp.ean13badCheckDigit"; - $k[$j++] = "Incorrect EAN-13 check digit provided"; - $0.raiseerror(); - } - } - $puti($1.pad, 0, $1.barcode); - $put($1.pad, 12, $f($1.checksum + 48)); - $1.barcode = $1.pad; - $1.encs = $a([ "3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111" ]); - $1.barchars = "0123456789"; - $1.mirrormaps = $a([ "000000", "001011", "001101", "001110", "010011", "011001", "011100", "010101", "010110", "011010" ]); - $1.sbs = $s(59); - $1.txt = $a(13); - $puti($1.sbs, 0, $get($1.encs, 10)); - $1.mirrormap = $get($1.mirrormaps, $get($1.barcode, 0) - 48); - $put($1.txt, 0, $a([ $geti($1.barcode, 0, 1), $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ])); - for (var _17 = 1; _17 <= 6; _17 += 1) { - $1.i = _17; - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - if ($get($1.mirrormap, $1.i - 1) == 49) { - $1.enclen = $1.enc.length; - $1.revenc = $s($1.enclen); - for (var _1O = 0, _1N = $1.enclen - 1; _1O <= _1N; _1O += 1) { - $1.j = _1O; - $1.char = $get($1.enc, $1.j); - $put($1.revenc, $1.enclen - $1.j - 1, $1.char); - } - $1.enc = $1.revenc; - } - $puti($1.sbs, ($1.i - 1) * 4 + 3, $1.enc); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $f(($1.i - 1) * 7 + 14 + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize ])); - } - $puti($1.sbs, (7 - 1) * 4 + 3, $get($1.encs, 11)); - for (var _1o = 7; _1o <= 12; _1o += 1) { - $1.i = _1o; - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, ($1.i - 1) * 4 + 8, $1.enc); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $f(($1.i - 1) * 7 + 18 + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize ])); - } - $puti($1.sbs, 56, $get($1.encs, 12)); - $k[$j++] = Infinity; - var _2E = $1.sbs; - for (var _2F = 0, _2G = _2E.length; _2F < _2G; _2F++) { - $k[$j++] = $get(_2E, _2F) - 48; - } - $1.sbs = $a(); - if ($1.includetext) { - $k[$j++] = Infinity; - $k[$j++] = $1.height; - $k[$j++] = $1.height; - for (var _2M = 0, _2N = 12; _2M < _2N; _2M++) { - $k[$j++] = $f($1.height - .075); - } - $k[$j++] = $1.height; - $k[$j++] = $1.height; - for (var _2R = 0, _2S = 12; _2R < _2S; _2R++) { - $k[$j++] = $f($1.height - .075); - } - $k[$j++] = $1.height; - $k[$j++] = $1.height; - $1.bhs = $a(); - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = 0; - for (var _2X = 0, _2Y = 12; _2X < _2Y; _2X++) { - $k[$j++] = .075; - } - $k[$j++] = 0; - $k[$j++] = 0; - for (var _2Z = 0, _2a = 12; _2Z < _2a; _2Z++) { - $k[$j++] = .075; - } - $k[$j++] = 0; - $k[$j++] = 0; - $1.bbs = $a(); - } else { - $k[$j++] = Infinity; - for (var _2c = 0, _2d = 30; _2c < _2d; _2c++) { - $k[$j++] = $1.height; - } - $1.bhs = $a(); - $k[$j++] = Infinity; - for (var _2g = 0, _2h = 30; _2g < _2h; _2g++) { - $k[$j++] = 0; - } - $1.bbs = $a(); - $1.txt = $a([]); - } - $1.guardrightypos = 0; - if ($ne($1.addon, "")) { - $k[$j++] = Infinity; - $k[$j++] = "dontdraw"; - $k[$j++] = true; - $k[$j++] = "includetext"; - $k[$j++] = true; - $k[$j++] = "height"; - $k[$j++] = $f($1.height - .15); - $k[$j++] = "textxoffset"; - if ($1.addontextxoffset != "unset") { - $k[$j++] = $1.addontextxoffset; - } else { - $k[$j++] = $f(95 + $1.addongap); - } - if ($1.addontextyoffset != "unset") { - $k[$j++] = "textyoffset"; - $k[$j++] = $1.addontextyoffset; - } - var _2s = $1.addontextsize != "unset" ? $1.addontextsize : $1.textsize; - var _2u = $ne($1.addontextfont, "unset") ? $1.addontextfont : $1.textfont; - $k[$j++] = "textsize"; - $k[$j++] = _2s; - $k[$j++] = "textfont"; - $k[$j++] = _2u; - $1.addopts = $d(); - if ($1.addon.length == 2) { - $k[$j++] = $1.addon; - $k[$j++] = $1.addopts; - $0.ean2(); - } - if ($1.addon.length == 5) { - $k[$j++] = $1.addon; - $k[$j++] = $1.addopts; - $0.ean5(); - } - $1.addcode = $k[--$j]; - $k[$j++] = Infinity; - $aload($1.sbs); - $k[$j++] = $1.addongap; - $aload($get($1.addcode, "sbs")); - $1.sbs = $a(); - $k[$j++] = Infinity; - $aload($1.bhs); - $forall($get($1.addcode, "bhs"), function() { - var _3B = $k[--$j]; - $k[$j++] = $f(_3B - .075); - }); - $1.bhs = $a(); - $k[$j++] = Infinity; - $aload($1.bbs); - $forall($get($1.addcode, "bbs"), function() { - var _3G = $k[--$j]; - $k[$j++] = $f(_3G + .075); - }); - $1.bbs = $a(); - $k[$j++] = Infinity; - $aload($1.txt); - $aload($get($1.addcode, "txt")); - $1.txt = $a(); - $1.guardrightypos = $f($1.height * 72 - 6); - } - var _3T = new Map([ [ "ren", $0.renlinear ], [ "sbs", $1.sbs ], [ "bhs", $1.bhs ], [ "bbs", $1.bbs ], [ "txt", $1.txt ], [ "opt", $1.options ], [ "guardrightpos", 10 ], [ "guardrightypos", $1.guardrightypos ], [ "borderbottom", 5 ] ]); - $k[$j++] = _3T; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#2840 + $1.options = $k[--$j]; //#2842 + $1.barcode = $k[--$j]; //#2843 + $1.dontdraw = false; //#2845 + $1.includetext = false; //#2846 + $1.textfont = "OCR-B"; //#2847 + $1.textsize = 12; //#2848 + $1.textxoffset = -10; //#2849 + $1.textyoffset = -4; //#2850 + $1.height = 1; //#2851 + $1.addongap = 12; //#2852 + $1.addontextfont = "unset"; //#2853 + $1.addontextsize = "unset"; //#2854 + $1.addontextxoffset = "unset"; //#2855 + $1.addontextyoffset = "unset"; //#2856 + $forall($1.options, function() { //#2867 + var _3 = $k[--$j]; //#2867 + $1[$k[--$j]] = _3; //#2867 + }); //#2867 + $1.textfont = "" + $1.textfont; //#2869 + $1.textsize = +$1.textsize; //#2870 + $1.textxoffset = +$1.textxoffset; //#2871 + $1.textyoffset = +$1.textyoffset; //#2872 + $1.height = +$1.height; //#2873 + $1.addongap = +$1.addongap; //#2874 + if ($ne($1.addontextfont, "unset")) { //#2875 + $1.addontextfont = "" + $1.addontextfont; //#2875 + } //#2875 + if ($ne($1.addontextsize, "unset")) { //#2876 + $1.addontextsize = +$1.addontextsize; //#2876 + } //#2876 + if ($ne($1.addontextxoffset, "unset")) { //#2877 + $1.addontextxoffset = +$1.addontextxoffset; //#2877 + } //#2877 + if ($ne($1.addontextyoffset, "unset")) { //#2878 + $1.addontextyoffset = +$1.addontextyoffset; //#2878 + } //#2878 + $search($1.barcode, " "); //#2881 + if ($k[--$j]) { //#2887 + $1.barcode = $k[--$j]; //#2882 + $j--; //#2883 + $1.addon = $k[--$j]; //#2884 + } else { //#2887 + $j--; //#2886 + $1.addon = ""; //#2887 + } //#2887 + if (($1.barcode.length != 12) && ($1.barcode.length != 13)) { //#2893 + $k[$j++] = 'bwipp.ean13badLength'; //#2892 + $k[$j++] = "EAN-13 must be 12 or 13 digits"; //#2892 + $0.raiseerror(); //#2892 + } //#2892 + $forall($1.barcode, function() { //#2898 + var _Q = $k[--$j]; //#2895 + if ((_Q < 48) || (_Q > 57)) { //#2897 + $k[$j++] = 'bwipp.ean13badCharacter'; //#2896 + $k[$j++] = "EAN-13 must contain only digits"; //#2896 + $0.raiseerror(); //#2896 + } //#2896 + }); //#2896 + if ((($1.addon.length != 0) && ($1.addon.length != 2)) && ($1.addon.length != 5)) { //#2901 + $k[$j++] = 'bwipp.ean13badAddOnLength'; //#2900 + $k[$j++] = "Add-on for EAN-13 must be 2 or 5 digits"; //#2900 + $0.raiseerror(); //#2900 + } //#2900 + $1.pad = $s(13); //#2904 + $1.checksum = 0; //#2905 + for (var _V = 0; _V <= 11; _V += 1) { //#2914 + $1.i = _V; //#2907 + $1.barchar = $f($get($1.barcode, $1.i) - 48); //#2908 + if (($1.i % 2) == 0) { //#2912 + $1.checksum = $f($1.barchar + $1.checksum); //#2910 + } else { //#2912 + $1.checksum = $f(($1.barchar * 3) + $1.checksum); //#2912 + } //#2912 + } //#2912 + $1.checksum = ($f(10 - ($1.checksum % 10))) % 10; //#2915 + if ($1.barcode.length == 13) { //#2920 + if ($get($1.barcode, 12) != $f($1.checksum + 48)) { //#2919 + $k[$j++] = 'bwipp.ean13badCheckDigit'; //#2918 + $k[$j++] = "Incorrect EAN-13 check digit provided"; //#2918 + $0.raiseerror(); //#2918 + } //#2918 + } //#2918 + $puti($1.pad, 0, $1.barcode); //#2921 + $put($1.pad, 12, $f($1.checksum + 48)); //#2922 + $1.barcode = $1.pad; //#2923 + $1.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111"]); //#2930 + $1.barchars = "0123456789"; //#2933 + $1.mirrormaps = $a(["000000", "001011", "001101", "001110", "010011", "011001", "011100", "010101", "010110", "011010"]); //#2939 + $1.sbs = $s(59); //#2941 + $1.txt = $a(13); //#2942 + $puti($1.sbs, 0, $get($1.encs, 10)); //#2945 + $1.mirrormap = $get($1.mirrormaps, $get($1.barcode, 0) - 48); //#2948 + $put($1.txt, 0, $a([$geti($1.barcode, 0, 1), $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])); //#2949 + for (var _17 = 1; _17 <= 6; _17 += 1) { //#2972 + $1.i = _17; //#2954 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#2955 + $j--; //#2956 + $1.indx = $k[--$j].length; //#2957 + $j -= 2; //#2958 + $1.enc = $get($1.encs, $1.indx); //#2959 + if ($get($1.mirrormap, $1.i - 1) == 49) { //#2969 + $1.enclen = $1.enc.length; //#2961 + $1.revenc = $s($1.enclen); //#2962 + for (var _1O = 0, _1N = $1.enclen - 1; _1O <= _1N; _1O += 1) { //#2967 + $1.j = _1O; //#2964 + $1.char = $get($1.enc, $1.j); //#2965 + $put($1.revenc, ($1.enclen - $1.j) - 1, $1.char); //#2966 + } //#2966 + $1.enc = $1.revenc; //#2968 + } //#2968 + $puti($1.sbs, (($1.i - 1) * 4) + 3, $1.enc); //#2970 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $f(((($1.i - 1) * 7) + 14) + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize])); //#2971 + } //#2971 + $puti($1.sbs, ((7 - 1) * 4) + 3, $get($1.encs, 11)); //#2975 + for (var _1o = 7; _1o <= 12; _1o += 1) { //#2988 + $1.i = _1o; //#2980 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#2981 + $j--; //#2982 + $1.indx = $k[--$j].length; //#2983 + $j -= 2; //#2984 + $1.enc = $get($1.encs, $1.indx); //#2985 + $puti($1.sbs, (($1.i - 1) * 4) + 8, $1.enc); //#2986 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $f(((($1.i - 1) * 7) + 18) + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize])); //#2987 + } //#2987 + $puti($1.sbs, 56, $get($1.encs, 12)); //#2991 + $k[$j++] = Infinity; //#2993 + var _2E = $1.sbs; //#2993 + for (var _2F = 0, _2G = _2E.length; _2F < _2G; _2F++) { //#2993 + $k[$j++] = $get(_2E, _2F) - 48; //#2993 + } //#2993 + $1.sbs = $a(); //#2993 + if ($1.includetext) { //#3000 + $k[$j++] = Infinity; //#2995 + $k[$j++] = $1.height; //#2995 + $k[$j++] = $1.height; //#2995 + for (var _2M = 0, _2N = 12; _2M < _2N; _2M++) { //#2995 + $k[$j++] = $f($1.height - 0.075); //#2995 + } //#2995 + $k[$j++] = $1.height; //#2995 + $k[$j++] = $1.height; //#2995 + for (var _2R = 0, _2S = 12; _2R < _2S; _2R++) { //#2995 + $k[$j++] = $f($1.height - 0.075); //#2995 + } //#2995 + $k[$j++] = $1.height; //#2995 + $k[$j++] = $1.height; //#2995 + $1.bhs = $a(); //#2995 + $k[$j++] = Infinity; //#2996 + $k[$j++] = 0; //#2996 + $k[$j++] = 0; //#2996 + for (var _2X = 0, _2Y = 12; _2X < _2Y; _2X++) { //#2996 + $k[$j++] = 0.075; //#2996 + } //#2996 + $k[$j++] = 0; //#2996 + $k[$j++] = 0; //#2996 + for (var _2Z = 0, _2a = 12; _2Z < _2a; _2Z++) { //#2996 + $k[$j++] = 0.075; //#2996 + } //#2996 + $k[$j++] = 0; //#2996 + $k[$j++] = 0; //#2996 + $1.bbs = $a(); //#2996 + } else { //#3000 + $k[$j++] = Infinity; //#2998 + for (var _2c = 0, _2d = 30; _2c < _2d; _2c++) { //#2998 + $k[$j++] = $1.height; //#2998 + } //#2998 + $1.bhs = $a(); //#2998 + $k[$j++] = Infinity; //#2999 + for (var _2g = 0, _2h = 30; _2g < _2h; _2g++) { //#2999 + $k[$j++] = 0; //#2999 + } //#2999 + $1.bbs = $a(); //#2999 + $1.txt = $a([]); //#3000 + } //#3000 + $1.guardrightypos = 0; //#3002 + if ($ne($1.addon, "")) { //#3023 + $k[$j++] = Infinity; //#3013 + $k[$j++] = 'dontdraw'; //#3010 + $k[$j++] = true; //#3010 + $k[$j++] = 'includetext'; //#3010 + $k[$j++] = true; //#3010 + $k[$j++] = 'height'; //#3010 + $k[$j++] = $f($1.height - 0.15); //#3010 + $k[$j++] = 'textxoffset'; //#3010 + if ($1.addontextxoffset != "unset") { //#3010 + $k[$j++] = $1.addontextxoffset; //#3010 + } else { //#3010 + $k[$j++] = $f(95 + $1.addongap); //#3010 + } //#3010 + if ($1.addontextyoffset != "unset") { //#3011 + $k[$j++] = 'textyoffset'; //#3011 + $k[$j++] = $1.addontextyoffset; //#3011 + } //#3011 + var _2s = ($1.addontextsize != "unset") ? $1.addontextsize : $1.textsize; //#3012 + var _2u = $ne($1.addontextfont, "unset") ? $1.addontextfont : $1.textfont; //#3013 + $k[$j++] = 'textsize'; //#3013 + $k[$j++] = _2s; //#3013 + $k[$j++] = 'textfont'; //#3013 + $k[$j++] = _2u; //#3013 + $1.addopts = $d(); //#3014 + if ($1.addon.length == 2) { //#3015 + $k[$j++] = $1.addon; //#3015 + $k[$j++] = $1.addopts; //#3015 + $0.ean2(); //#3015 + } //#3015 + if ($1.addon.length == 5) { //#3016 + $k[$j++] = $1.addon; //#3016 + $k[$j++] = $1.addopts; //#3016 + $0.ean5(); //#3016 + } //#3016 + $1.addcode = $k[--$j]; //#3017 + $k[$j++] = Infinity; //#3018 + $aload($1.sbs); //#3018 + $k[$j++] = $1.addongap; //#3018 + $aload($get($1.addcode, "sbs")); //#3018 + $1.sbs = $a(); //#3018 + $k[$j++] = Infinity; //#3019 + $aload($1.bhs); //#3019 + $forall($get($1.addcode, "bhs"), function() { //#3019 + var _3B = $k[--$j]; //#3019 + $k[$j++] = $f(_3B - 0.075); //#3019 + }); //#3019 + $1.bhs = $a(); //#3019 + $k[$j++] = Infinity; //#3020 + $aload($1.bbs); //#3020 + $forall($get($1.addcode, "bbs"), function() { //#3020 + var _3G = $k[--$j]; //#3020 + $k[$j++] = $f(_3G + 0.075); //#3020 + }); //#3020 + $1.bbs = $a(); //#3020 + $k[$j++] = Infinity; //#3021 + $aload($1.txt); //#3021 + $aload($get($1.addcode, "txt")); //#3021 + $1.txt = $a(); //#3021 + $1.guardrightypos = $f(($1.height * 72) - 6); //#3022 + } //#3022 + var _3T = new Map([ + ["ren", $0.renlinear], + ["sbs", $1.sbs], + ["bhs", $1.bhs], + ["bbs", $1.bbs], + ["txt", $1.txt], + ["opt", $1.options], + ["guardrightpos", 10], + ["guardrightypos", $1.guardrightypos], + ["borderbottom", 5] + ]); //#3035 + $k[$j++] = _3T; //#3038 + if (!$1.dontdraw) { //#3038 + $0.renlinear(); //#3038 + } //#3038 }; $0.ean8 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 12; - $1.textxoffset = 4; - $1.textyoffset = -4; - $1.height = 1; - $1.addongap = 12; - $1.addontextfont = "unset"; - $1.addontextsize = "unset"; - $1.addontextxoffset = "unset"; - $1.addontextyoffset = "unset"; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.addongap = +$1.addongap; - if ($ne($1.addontextfont, "unset")) { - $1.addontextfont = "" + $1.addontextfont; - } - if ($ne($1.addontextsize, "unset")) { - $1.addontextsize = +$1.addontextsize; - } - if ($ne($1.addontextxoffset, "unset")) { - $1.addontextxoffset = +$1.addontextxoffset; - } - if ($ne($1.addontextyoffset, "unset")) { - $1.addontextyoffset = +$1.addontextyoffset; - } - $search($1.barcode, " "); - if ($k[--$j]) { - $1.barcode = $k[--$j]; - $j--; - $1.addon = $k[--$j]; - } else { - $j--; - $1.addon = ""; - } - if ($1.barcode.length != 7 && $1.barcode.length != 8) { - $k[$j++] = "bwipp.ean8badLength"; - $k[$j++] = "EAN-8 must be 7 or 8 digits"; - $0.raiseerror(); - } - $forall($1.barcode, function() { - var _Q = $k[--$j]; - if (_Q < 48 || _Q > 57) { - $k[$j++] = "bwipp.ean8badCharacter"; - $k[$j++] = "EAN-8 must contain only digits"; - $0.raiseerror(); - } - }); - if ($1.addon.length != 0 && $1.addon.length != 2 && $1.addon.length != 5) { - $k[$j++] = "bwipp.ean8badAddOnLength"; - $k[$j++] = "Add-on for EAN-8 must be 2 or 5 digits"; - $0.raiseerror(); - } - $1.pad = $s(8); - $1.checksum = 0; - for (var _V = 0; _V <= 6; _V += 1) { - $1.i = _V; - $1.barchar = $f($get($1.barcode, $1.i) - 48); - if ($1.i % 2 != 0) { - $1.checksum = $f($1.barchar + $1.checksum); - } else { - $1.checksum = $f($1.barchar * 3 + $1.checksum); - } - } - $1.checksum = $f(10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 8) { - if ($get($1.barcode, 7) != $f($1.checksum + 48)) { - $k[$j++] = "bwipp.ean8badCheckDigit"; - $k[$j++] = "Incorrect EAN-8 check digit provided"; - $0.raiseerror(); - } - } - $puti($1.pad, 0, $1.barcode); - $put($1.pad, 7, $f($1.checksum + 48)); - $1.barcode = $1.pad; - $1.encs = $a([ "3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111" ]); - $1.barchars = "0123456789"; - $1.sbs = $s(43); - $1.txt = $a(8); - $puti($1.sbs, 0, $get($1.encs, 10)); - for (var _u = 0; _u <= 3; _u += 1) { - $1.i = _u; - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $1.i * 4 + 3, $1.enc); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $f($1.i * 7 + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize ])); - } - $puti($1.sbs, 4 * 4 + 3, $get($1.encs, 11)); - for (var _1K = 4; _1K <= 7; _1K += 1) { - $1.i = _1K; - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $1.i * 4 + 8, $1.enc); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $f($f($1.i * 7 + $1.textxoffset) + 4), $1.textyoffset, $1.textfont, $1.textsize ])); - } - $puti($1.sbs, 40, $get($1.encs, 12)); - $k[$j++] = Infinity; - var _1k = $1.sbs; - for (var _1l = 0, _1m = _1k.length; _1l < _1m; _1l++) { - $k[$j++] = $get(_1k, _1l) - 48; - } - $1.sbs = $a(); - if ($1.includetext) { - $k[$j++] = Infinity; - $k[$j++] = $1.height; - $k[$j++] = $1.height; - for (var _1s = 0, _1t = 8; _1s < _1t; _1s++) { - $k[$j++] = $f($1.height - .075); - } - $k[$j++] = $1.height; - $k[$j++] = $1.height; - for (var _1x = 0, _1y = 8; _1x < _1y; _1x++) { - $k[$j++] = $f($1.height - .075); - } - $k[$j++] = $1.height; - $k[$j++] = $1.height; - $1.bhs = $a(); - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = 0; - for (var _23 = 0, _24 = 8; _23 < _24; _23++) { - $k[$j++] = .075; - } - $k[$j++] = 0; - $k[$j++] = 0; - for (var _25 = 0, _26 = 8; _25 < _26; _25++) { - $k[$j++] = .075; - } - $k[$j++] = 0; - $k[$j++] = 0; - $1.bbs = $a(); - } else { - $k[$j++] = Infinity; - for (var _28 = 0, _29 = 22; _28 < _29; _28++) { - $k[$j++] = $1.height; - } - $1.bhs = $a(); - $k[$j++] = Infinity; - for (var _2C = 0, _2D = 22; _2C < _2D; _2C++) { - $k[$j++] = 0; - } - $1.bbs = $a(); - $1.txt = $a([]); - } - $1.guardrightypos = 0; - if ($ne($1.addon, "")) { - $k[$j++] = Infinity; - $k[$j++] = "dontdraw"; - $k[$j++] = true; - $k[$j++] = "includetext"; - $k[$j++] = true; - $k[$j++] = "height"; - $k[$j++] = $f($1.height - .15); - $k[$j++] = "textxoffset"; - if ($1.addontextxoffset != "unset") { - $k[$j++] = $1.addontextxoffset; - } else { - $k[$j++] = $f(67 + $1.addongap); - } - if ($1.addontextyoffset != "unset") { - $k[$j++] = "textyoffset"; - $k[$j++] = $1.addontextyoffset; - } - var _2O = $1.addontextsize != "unset" ? $1.addontextsize : $1.textsize; - var _2Q = $ne($1.addontextfont, "unset") ? $1.addontextfont : $1.textfont; - $k[$j++] = "textsize"; - $k[$j++] = _2O; - $k[$j++] = "textfont"; - $k[$j++] = _2Q; - $1.addopts = $d(); - if ($1.addon.length == 2) { - $k[$j++] = $1.addon; - $k[$j++] = $1.addopts; - $0.ean2(); - } - if ($1.addon.length == 5) { - $k[$j++] = $1.addon; - $k[$j++] = $1.addopts; - $0.ean5(); - } - $1.addcode = $k[--$j]; - $k[$j++] = Infinity; - $aload($1.sbs); - $k[$j++] = $1.addongap; - $aload($get($1.addcode, "sbs")); - $1.sbs = $a(); - $k[$j++] = Infinity; - $aload($1.bhs); - $forall($get($1.addcode, "bhs"), function() { - var _2h = $k[--$j]; - $k[$j++] = $f(_2h - .075); - }); - $1.bhs = $a(); - $k[$j++] = Infinity; - $aload($1.bbs); - $forall($get($1.addcode, "bbs"), function() { - var _2m = $k[--$j]; - $k[$j++] = $f(_2m + .075); - }); - $1.bbs = $a(); - $k[$j++] = Infinity; - $aload($1.txt); - $aload($get($1.addcode, "txt")); - $1.txt = $a(); - $1.guardrightypos = $f($1.height * 72 - 6); - } - var _2z = new Map([ [ "ren", $0.renlinear ], [ "sbs", $1.sbs ], [ "bhs", $1.bhs ], [ "bbs", $1.bbs ], [ "txt", $1.txt ], [ "opt", $1.options ], [ "guardleftpos", 10 ], [ "guardrightpos", 10 ], [ "guardrightypos", $1.guardrightypos ], [ "borderbottom", 5 ] ]); - $k[$j++] = _2z; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#3069 + $1.options = $k[--$j]; //#3071 + $1.barcode = $k[--$j]; //#3072 + $1.dontdraw = false; //#3074 + $1.includetext = false; //#3075 + $1.textfont = "OCR-B"; //#3076 + $1.textsize = 12; //#3077 + $1.textxoffset = 4; //#3078 + $1.textyoffset = -4; //#3079 + $1.height = 1; //#3080 + $1.addongap = 12; //#3081 + $1.addontextfont = "unset"; //#3082 + $1.addontextsize = "unset"; //#3083 + $1.addontextxoffset = "unset"; //#3084 + $1.addontextyoffset = "unset"; //#3085 + $forall($1.options, function() { //#3096 + var _3 = $k[--$j]; //#3096 + $1[$k[--$j]] = _3; //#3096 + }); //#3096 + $1.textfont = "" + $1.textfont; //#3098 + $1.textsize = +$1.textsize; //#3099 + $1.textxoffset = +$1.textxoffset; //#3100 + $1.textyoffset = +$1.textyoffset; //#3101 + $1.height = +$1.height; //#3102 + $1.addongap = +$1.addongap; //#3103 + if ($ne($1.addontextfont, "unset")) { //#3104 + $1.addontextfont = "" + $1.addontextfont; //#3104 + } //#3104 + if ($ne($1.addontextsize, "unset")) { //#3105 + $1.addontextsize = +$1.addontextsize; //#3105 + } //#3105 + if ($ne($1.addontextxoffset, "unset")) { //#3106 + $1.addontextxoffset = +$1.addontextxoffset; //#3106 + } //#3106 + if ($ne($1.addontextyoffset, "unset")) { //#3107 + $1.addontextyoffset = +$1.addontextyoffset; //#3107 + } //#3107 + $search($1.barcode, " "); //#3110 + if ($k[--$j]) { //#3116 + $1.barcode = $k[--$j]; //#3111 + $j--; //#3112 + $1.addon = $k[--$j]; //#3113 + } else { //#3116 + $j--; //#3115 + $1.addon = ""; //#3116 + } //#3116 + if (($1.barcode.length != 7) && ($1.barcode.length != 8)) { //#3122 + $k[$j++] = 'bwipp.ean8badLength'; //#3121 + $k[$j++] = "EAN-8 must be 7 or 8 digits"; //#3121 + $0.raiseerror(); //#3121 + } //#3121 + $forall($1.barcode, function() { //#3127 + var _Q = $k[--$j]; //#3124 + if ((_Q < 48) || (_Q > 57)) { //#3126 + $k[$j++] = 'bwipp.ean8badCharacter'; //#3125 + $k[$j++] = "EAN-8 must contain only digits"; //#3125 + $0.raiseerror(); //#3125 + } //#3125 + }); //#3125 + if ((($1.addon.length != 0) && ($1.addon.length != 2)) && ($1.addon.length != 5)) { //#3130 + $k[$j++] = 'bwipp.ean8badAddOnLength'; //#3129 + $k[$j++] = "Add-on for EAN-8 must be 2 or 5 digits"; //#3129 + $0.raiseerror(); //#3129 + } //#3129 + $1.pad = $s(8); //#3133 + $1.checksum = 0; //#3134 + for (var _V = 0; _V <= 6; _V += 1) { //#3143 + $1.i = _V; //#3136 + $1.barchar = $f($get($1.barcode, $1.i) - 48); //#3137 + if (($1.i % 2) != 0) { //#3141 + $1.checksum = $f($1.barchar + $1.checksum); //#3139 + } else { //#3141 + $1.checksum = $f(($1.barchar * 3) + $1.checksum); //#3141 + } //#3141 + } //#3141 + $1.checksum = ($f(10 - ($1.checksum % 10))) % 10; //#3144 + if ($1.barcode.length == 8) { //#3149 + if ($get($1.barcode, 7) != $f($1.checksum + 48)) { //#3148 + $k[$j++] = 'bwipp.ean8badCheckDigit'; //#3147 + $k[$j++] = "Incorrect EAN-8 check digit provided"; //#3147 + $0.raiseerror(); //#3147 + } //#3147 + } //#3147 + $puti($1.pad, 0, $1.barcode); //#3150 + $put($1.pad, 7, $f($1.checksum + 48)); //#3151 + $1.barcode = $1.pad; //#3152 + $1.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111"]); //#3159 + $1.barchars = "0123456789"; //#3162 + $1.sbs = $s(43); //#3164 + $1.txt = $a(8); //#3165 + $puti($1.sbs, 0, $get($1.encs, 10)); //#3168 + for (var _u = 0; _u <= 3; _u += 1) { //#3181 + $1.i = _u; //#3173 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#3174 + $j--; //#3175 + $1.indx = $k[--$j].length; //#3176 + $j -= 2; //#3177 + $1.enc = $get($1.encs, $1.indx); //#3178 + $puti($1.sbs, ($1.i * 4) + 3, $1.enc); //#3179 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $f(($1.i * 7) + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize])); //#3180 + } //#3180 + $puti($1.sbs, (4 * 4) + 3, $get($1.encs, 11)); //#3184 + for (var _1K = 4; _1K <= 7; _1K += 1) { //#3197 + $1.i = _1K; //#3189 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#3190 + $j--; //#3191 + $1.indx = $k[--$j].length; //#3192 + $j -= 2; //#3193 + $1.enc = $get($1.encs, $1.indx); //#3194 + $puti($1.sbs, ($1.i * 4) + 8, $1.enc); //#3195 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $f(($f(($1.i * 7) + $1.textxoffset)) + 4), $1.textyoffset, $1.textfont, $1.textsize])); //#3196 + } //#3196 + $puti($1.sbs, 40, $get($1.encs, 12)); //#3200 + $k[$j++] = Infinity; //#3202 + var _1k = $1.sbs; //#3202 + for (var _1l = 0, _1m = _1k.length; _1l < _1m; _1l++) { //#3202 + $k[$j++] = $get(_1k, _1l) - 48; //#3202 + } //#3202 + $1.sbs = $a(); //#3202 + if ($1.includetext) { //#3209 + $k[$j++] = Infinity; //#3204 + $k[$j++] = $1.height; //#3204 + $k[$j++] = $1.height; //#3204 + for (var _1s = 0, _1t = 8; _1s < _1t; _1s++) { //#3204 + $k[$j++] = $f($1.height - 0.075); //#3204 + } //#3204 + $k[$j++] = $1.height; //#3204 + $k[$j++] = $1.height; //#3204 + for (var _1x = 0, _1y = 8; _1x < _1y; _1x++) { //#3204 + $k[$j++] = $f($1.height - 0.075); //#3204 + } //#3204 + $k[$j++] = $1.height; //#3204 + $k[$j++] = $1.height; //#3204 + $1.bhs = $a(); //#3204 + $k[$j++] = Infinity; //#3205 + $k[$j++] = 0; //#3205 + $k[$j++] = 0; //#3205 + for (var _23 = 0, _24 = 8; _23 < _24; _23++) { //#3205 + $k[$j++] = 0.075; //#3205 + } //#3205 + $k[$j++] = 0; //#3205 + $k[$j++] = 0; //#3205 + for (var _25 = 0, _26 = 8; _25 < _26; _25++) { //#3205 + $k[$j++] = 0.075; //#3205 + } //#3205 + $k[$j++] = 0; //#3205 + $k[$j++] = 0; //#3205 + $1.bbs = $a(); //#3205 + } else { //#3209 + $k[$j++] = Infinity; //#3207 + for (var _28 = 0, _29 = 22; _28 < _29; _28++) { //#3207 + $k[$j++] = $1.height; //#3207 + } //#3207 + $1.bhs = $a(); //#3207 + $k[$j++] = Infinity; //#3208 + for (var _2C = 0, _2D = 22; _2C < _2D; _2C++) { //#3208 + $k[$j++] = 0; //#3208 + } //#3208 + $1.bbs = $a(); //#3208 + $1.txt = $a([]); //#3209 + } //#3209 + $1.guardrightypos = 0; //#3211 + if ($ne($1.addon, "")) { //#3232 + $k[$j++] = Infinity; //#3222 + $k[$j++] = 'dontdraw'; //#3219 + $k[$j++] = true; //#3219 + $k[$j++] = 'includetext'; //#3219 + $k[$j++] = true; //#3219 + $k[$j++] = 'height'; //#3219 + $k[$j++] = $f($1.height - 0.15); //#3219 + $k[$j++] = 'textxoffset'; //#3219 + if ($1.addontextxoffset != "unset") { //#3219 + $k[$j++] = $1.addontextxoffset; //#3219 + } else { //#3219 + $k[$j++] = $f(67 + $1.addongap); //#3219 + } //#3219 + if ($1.addontextyoffset != "unset") { //#3220 + $k[$j++] = 'textyoffset'; //#3220 + $k[$j++] = $1.addontextyoffset; //#3220 + } //#3220 + var _2O = ($1.addontextsize != "unset") ? $1.addontextsize : $1.textsize; //#3221 + var _2Q = $ne($1.addontextfont, "unset") ? $1.addontextfont : $1.textfont; //#3222 + $k[$j++] = 'textsize'; //#3222 + $k[$j++] = _2O; //#3222 + $k[$j++] = 'textfont'; //#3222 + $k[$j++] = _2Q; //#3222 + $1.addopts = $d(); //#3223 + if ($1.addon.length == 2) { //#3224 + $k[$j++] = $1.addon; //#3224 + $k[$j++] = $1.addopts; //#3224 + $0.ean2(); //#3224 + } //#3224 + if ($1.addon.length == 5) { //#3225 + $k[$j++] = $1.addon; //#3225 + $k[$j++] = $1.addopts; //#3225 + $0.ean5(); //#3225 + } //#3225 + $1.addcode = $k[--$j]; //#3226 + $k[$j++] = Infinity; //#3227 + $aload($1.sbs); //#3227 + $k[$j++] = $1.addongap; //#3227 + $aload($get($1.addcode, "sbs")); //#3227 + $1.sbs = $a(); //#3227 + $k[$j++] = Infinity; //#3228 + $aload($1.bhs); //#3228 + $forall($get($1.addcode, "bhs"), function() { //#3228 + var _2h = $k[--$j]; //#3228 + $k[$j++] = $f(_2h - 0.075); //#3228 + }); //#3228 + $1.bhs = $a(); //#3228 + $k[$j++] = Infinity; //#3229 + $aload($1.bbs); //#3229 + $forall($get($1.addcode, "bbs"), function() { //#3229 + var _2m = $k[--$j]; //#3229 + $k[$j++] = $f(_2m + 0.075); //#3229 + }); //#3229 + $1.bbs = $a(); //#3229 + $k[$j++] = Infinity; //#3230 + $aload($1.txt); //#3230 + $aload($get($1.addcode, "txt")); //#3230 + $1.txt = $a(); //#3230 + $1.guardrightypos = $f(($1.height * 72) - 6); //#3231 + } //#3231 + var _2z = new Map([ + ["ren", $0.renlinear], + ["sbs", $1.sbs], + ["bhs", $1.bhs], + ["bbs", $1.bbs], + ["txt", $1.txt], + ["opt", $1.options], + ["guardleftpos", 10], + ["guardrightpos", 10], + ["guardrightypos", $1.guardrightypos], + ["borderbottom", 5] + ]); //#3245 + $k[$j++] = _2z; //#3248 + if (!$1.dontdraw) { //#3248 + $0.renlinear(); //#3248 + } //#3248 }; $0.upca = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 12; - $1.textxoffset = -7; - $1.textyoffset = -4; - $1.height = 1; - $1.addongap = 12; - $1.addontextfont = "unset"; - $1.addontextsize = "unset"; - $1.addontextxoffset = "unset"; - $1.addontextyoffset = "unset"; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.addongap = +$1.addongap; - if ($ne($1.addontextfont, "unset")) { - $1.addontextfont = "" + $1.addontextfont; - } - if ($ne($1.addontextsize, "unset")) { - $1.addontextsize = +$1.addontextsize; - } - if ($ne($1.addontextxoffset, "unset")) { - $1.addontextxoffset = +$1.addontextxoffset; - } - if ($ne($1.addontextyoffset, "unset")) { - $1.addontextyoffset = +$1.addontextyoffset; - } - $search($1.barcode, " "); - if ($k[--$j]) { - $1.barcode = $k[--$j]; - $j--; - $1.addon = $k[--$j]; - } else { - $j--; - $1.addon = ""; - } - if ($1.barcode.length == 7 || $1.barcode.length == 8) { - $forall($1.barcode, function() { - var _Q = $k[--$j]; - if (_Q < 48 || _Q > 57) { - $k[$j++] = "bwipp.upcAupcEbadCharacter"; - $k[$j++] = "UPC-E must contain only digits"; - $0.raiseerror(); - } - }); - var _S = $get($1.barcode, 0); - if (_S != 48 && _S != 49) { - $k[$j++] = "bwipp.upcAupcEbadNumberSystem"; - $k[$j++] = "UPC-E must have number system 0 or 1"; - $0.raiseerror(); - } - for (var _T = 0, _U = 1; _T < _U; _T++) { - var _W = $1.barcode.length == 8 ? 12 : 11; - $1.upcacode = $s(_W); - if ($f($get($1.barcode, 6) - 48) <= 2) { - $puti($1.upcacode, 0, $geti($1.barcode, 0, 3)); - $puti($1.upcacode, 3, $geti($1.barcode, 6, 1)); - $puti($1.upcacode, 4, "0000"); - $puti($1.upcacode, 8, $geti($1.barcode, 3, 3)); - break; - } - if ($f($get($1.barcode, 6) - 48) == 3) { - $puti($1.upcacode, 0, $geti($1.barcode, 0, 4)); - $puti($1.upcacode, 4, "00000"); - $puti($1.upcacode, 9, $geti($1.barcode, 4, 2)); - break; - } - if ($f($get($1.barcode, 6) - 48) == 4) { - $puti($1.upcacode, 0, $geti($1.barcode, 0, 5)); - $puti($1.upcacode, 5, "00000"); - $puti($1.upcacode, 10, $geti($1.barcode, 5, 1)); - break; - } - if ($f($get($1.barcode, 6) - 48) >= 5) { - $puti($1.upcacode, 0, $geti($1.barcode, 0, 6)); - $puti($1.upcacode, 6, "0000"); - $puti($1.upcacode, 10, $geti($1.barcode, 6, 1)); - break; - } - } - if ($1.barcode.length == 8) { - $puti($1.upcacode, 11, $geti($1.barcode, 7, 1)); - } - $1.barcode = $1.upcacode; - } - if ($1.barcode.length != 11 && $1.barcode.length != 12) { - $k[$j++] = "bwipp.upcAbadLength"; - $k[$j++] = "UPC-A must be 11 or 12 digits"; - $0.raiseerror(); - } - var _1I = $1.barcode; - for (var _1J = 0, _1K = _1I.length; _1J < _1K; _1J++) { - var _1L = $get(_1I, _1J); - if (_1L < 48 || _1L > 57) { - $k[$j++] = "bwipp.upcAbadCharacter"; - $k[$j++] = "UPC-A must contain only digits"; - $0.raiseerror(); - } - } - if ($1.addon.length != 0 && $1.addon.length != 2 && $1.addon.length != 5) { - $k[$j++] = "bwipp.upcAbadAddOnLength"; - $k[$j++] = "Add-on for UPC-A must be 2 or 5 digits"; - $0.raiseerror(); - } - $1.pad = $s(12); - $1.checksum = 0; - for (var _1Q = 0; _1Q <= 10; _1Q += 1) { - $1.i = _1Q; - $1.barchar = $get($1.barcode, $1.i) - 48; - if ($1.i % 2 != 0) { - $1.checksum = $1.checksum + $1.barchar; - } else { - $1.checksum = $1.checksum + $1.barchar * 3; - } - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 12) { - if ($get($1.barcode, 11) != $1.checksum + 48) { - $k[$j++] = "bwipp.upcAbadCheckDigit"; - $k[$j++] = "Incorrect UPC check digit provided"; - $0.raiseerror(); - } - } - $puti($1.pad, 0, $1.barcode); - $put($1.pad, 11, $1.checksum + 48); - $1.barcode = $1.pad; - $1.encs = $a([ "3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111" ]); - $1.barchars = "0123456789"; - $1.sbs = $s(59); - $1.txt = $a(12); - $puti($1.sbs, 0, $get($1.encs, 10)); - for (var _1p = 0; _1p <= 5; _1p += 1) { - $1.i = _1p; - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $1.i * 4 + 3, $1.enc); - if ($1.i == 0) { - $put($1.txt, 0, $a([ $geti($1.barcode, 0, 1), $1.textxoffset, $1.textyoffset, $1.textfont, $f($1.textsize - 2) ])); - } else { - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $f($1.i * 7 + 11 + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize ])); - } - } - $puti($1.sbs, 6 * 4 + 3, $get($1.encs, 11)); - for (var _2O = 6; _2O <= 11; _2O += 1) { - $1.i = _2O; - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $1.i * 4 + 8, $1.enc); - if ($1.i == 11) { - $put($1.txt, 11, $a([ $geti($1.barcode, 11, 1), $f($1.textxoffset + 104), $1.textyoffset, $1.textfont, $f($1.textsize - 2) ])); - } else { - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $f($f($1.i * 7 + $1.textxoffset) + 15), $1.textyoffset, $1.textfont, $1.textsize ])); - } - } - $puti($1.sbs, 56, $get($1.encs, 12)); - $k[$j++] = Infinity; - var _2x = $1.sbs; - for (var _2y = 0, _2z = _2x.length; _2y < _2z; _2y++) { - $k[$j++] = $get(_2x, _2y) - 48; - } - $1.sbs = $a(); - if ($1.includetext) { - $k[$j++] = Infinity; - for (var _33 = 0, _34 = 4; _33 < _34; _33++) { - $k[$j++] = $1.height; - } - for (var _36 = 0, _37 = 10; _36 < _37; _36++) { - $k[$j++] = $f($1.height - .075); - } - $k[$j++] = $1.height; - $k[$j++] = $1.height; - for (var _3B = 0, _3C = 10; _3B < _3C; _3B++) { - $k[$j++] = $f($1.height - .075); - } - for (var _3E = 0, _3F = 4; _3E < _3F; _3E++) { - $k[$j++] = $1.height; - } - $1.bhs = $a(); - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - for (var _3I = 0, _3J = 10; _3I < _3J; _3I++) { - $k[$j++] = .075; - } - $k[$j++] = 0; - $k[$j++] = 0; - for (var _3K = 0, _3L = 10; _3K < _3L; _3K++) { - $k[$j++] = .075; - } - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $1.bbs = $a(); - } else { - $k[$j++] = Infinity; - for (var _3N = 0, _3O = 30; _3N < _3O; _3N++) { - $k[$j++] = $1.height; - } - $1.bhs = $a(); - $k[$j++] = Infinity; - for (var _3R = 0, _3S = 30; _3R < _3S; _3R++) { - $k[$j++] = 0; - } - $1.bbs = $a(); - $1.txt = $a([]); - } - $1.guardrightypos = 0; - if ($ne($1.addon, "")) { - $k[$j++] = Infinity; - $k[$j++] = "dontdraw"; - $k[$j++] = true; - $k[$j++] = "includetext"; - $k[$j++] = true; - $k[$j++] = "height"; - $k[$j++] = $f($1.height - .15); - $k[$j++] = "textxoffset"; - if ($1.addontextxoffset != "unset") { - $k[$j++] = $1.addontextxoffset; - } else { - $k[$j++] = $f(95 + $1.addongap); - } - if ($1.addontextyoffset != "unset") { - $k[$j++] = "textyoffset"; - $k[$j++] = $1.addontextyoffset; - } - var _3d = $1.addontextsize != "unset" ? $1.addontextsize : $1.textsize; - var _3f = $ne($1.addontextfont, "unset") ? $1.addontextfont : $1.textfont; - $k[$j++] = "textsize"; - $k[$j++] = _3d; - $k[$j++] = "textfont"; - $k[$j++] = _3f; - $1.addopts = $d(); - if ($1.addon.length == 2) { - $k[$j++] = $1.addon; - $k[$j++] = $1.addopts; - $0.ean2(); - } - if ($1.addon.length == 5) { - $k[$j++] = $1.addon; - $k[$j++] = $1.addopts; - $0.ean5(); - } - $1.addcode = $k[--$j]; - $k[$j++] = Infinity; - $aload($1.sbs); - $k[$j++] = $1.addongap; - $aload($get($1.addcode, "sbs")); - $1.sbs = $a(); - $k[$j++] = Infinity; - $aload($1.bhs); - $forall($get($1.addcode, "bhs"), function() { - var _3w = $k[--$j]; - $k[$j++] = $f(_3w - .075); - }); - $1.bhs = $a(); - $k[$j++] = Infinity; - $aload($1.bbs); - $forall($get($1.addcode, "bbs"), function() { - var _41 = $k[--$j]; - $k[$j++] = $f(_41 + .075); - }); - $1.bbs = $a(); - $k[$j++] = Infinity; - $aload($1.txt); - $aload($get($1.addcode, "txt")); - $1.txt = $a(); - $1.guardrightypos = $f($1.height * 72 - 6); - } - var _4E = new Map([ [ "ren", $0.renlinear ], [ "sbs", $1.sbs ], [ "bhs", $1.bhs ], [ "bbs", $1.bbs ], [ "txt", $1.txt ], [ "opt", $1.options ], [ "guardrightpos", 10 ], [ "guardrightypos", $1.guardrightypos ], [ "borderbottom", 5 ] ]); - $k[$j++] = _4E; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#3279 + $1.options = $k[--$j]; //#3281 + $1.barcode = $k[--$j]; //#3282 + $1.dontdraw = false; //#3284 + $1.includetext = false; //#3285 + $1.textfont = "OCR-B"; //#3286 + $1.textsize = 12; //#3287 + $1.textxoffset = -7; //#3288 + $1.textyoffset = -4; //#3289 + $1.height = 1; //#3290 + $1.addongap = 12; //#3291 + $1.addontextfont = "unset"; //#3292 + $1.addontextsize = "unset"; //#3293 + $1.addontextxoffset = "unset"; //#3294 + $1.addontextyoffset = "unset"; //#3295 + $forall($1.options, function() { //#3306 + var _3 = $k[--$j]; //#3306 + $1[$k[--$j]] = _3; //#3306 + }); //#3306 + $1.textfont = "" + $1.textfont; //#3308 + $1.textsize = +$1.textsize; //#3309 + $1.textxoffset = +$1.textxoffset; //#3310 + $1.textyoffset = +$1.textyoffset; //#3311 + $1.height = +$1.height; //#3312 + $1.addongap = +$1.addongap; //#3313 + if ($ne($1.addontextfont, "unset")) { //#3314 + $1.addontextfont = "" + $1.addontextfont; //#3314 + } //#3314 + if ($ne($1.addontextsize, "unset")) { //#3315 + $1.addontextsize = +$1.addontextsize; //#3315 + } //#3315 + if ($ne($1.addontextxoffset, "unset")) { //#3316 + $1.addontextxoffset = +$1.addontextxoffset; //#3316 + } //#3316 + if ($ne($1.addontextyoffset, "unset")) { //#3317 + $1.addontextyoffset = +$1.addontextyoffset; //#3317 + } //#3317 + $search($1.barcode, " "); //#3320 + if ($k[--$j]) { //#3326 + $1.barcode = $k[--$j]; //#3321 + $j--; //#3322 + $1.addon = $k[--$j]; //#3323 + } else { //#3326 + $j--; //#3325 + $1.addon = ""; //#3326 + } //#3326 + if (($1.barcode.length == 7) || ($1.barcode.length == 8)) { //#3372 + $forall($1.barcode, function() { //#3336 + var _Q = $k[--$j]; //#3333 + if ((_Q < 48) || (_Q > 57)) { //#3335 + $k[$j++] = 'bwipp.upcAupcEbadCharacter'; //#3334 + $k[$j++] = "UPC-E must contain only digits"; //#3334 + $0.raiseerror(); //#3334 + } //#3334 + }); //#3334 + var _S = $get($1.barcode, 0); //#3337 + if ((_S != 48) && (_S != 49)) { //#3339 + $k[$j++] = 'bwipp.upcAupcEbadNumberSystem'; //#3338 + $k[$j++] = "UPC-E must have number system 0 or 1"; //#3338 + $0.raiseerror(); //#3338 + } //#3338 + for (var _T = 0, _U = 1; _T < _U; _T++) { //#3367 + var _W = ($1.barcode.length == 8) ? 12 : 11; //#3341 + $1.upcacode = $s(_W); //#3341 + if ($f($get($1.barcode, 6) - 48) <= 2) { //#3348 + $puti($1.upcacode, 0, $geti($1.barcode, 0, 3)); //#3343 + $puti($1.upcacode, 3, $geti($1.barcode, 6, 1)); //#3344 + $puti($1.upcacode, 4, "0000"); //#3345 + $puti($1.upcacode, 8, $geti($1.barcode, 3, 3)); //#3346 + break; //#3347 + } //#3347 + if ($f($get($1.barcode, 6) - 48) == 3) { //#3354 + $puti($1.upcacode, 0, $geti($1.barcode, 0, 4)); //#3350 + $puti($1.upcacode, 4, "00000"); //#3351 + $puti($1.upcacode, 9, $geti($1.barcode, 4, 2)); //#3352 + break; //#3353 + } //#3353 + if ($f($get($1.barcode, 6) - 48) == 4) { //#3360 + $puti($1.upcacode, 0, $geti($1.barcode, 0, 5)); //#3356 + $puti($1.upcacode, 5, "00000"); //#3357 + $puti($1.upcacode, 10, $geti($1.barcode, 5, 1)); //#3358 + break; //#3359 + } //#3359 + if ($f($get($1.barcode, 6) - 48) >= 5) { //#3366 + $puti($1.upcacode, 0, $geti($1.barcode, 0, 6)); //#3362 + $puti($1.upcacode, 6, "0000"); //#3363 + $puti($1.upcacode, 10, $geti($1.barcode, 6, 1)); //#3364 + break; //#3365 + } //#3365 + } //#3365 + if ($1.barcode.length == 8) { //#3370 + $puti($1.upcacode, 11, $geti($1.barcode, 7, 1)); //#3369 + } //#3369 + $1.barcode = $1.upcacode; //#3371 + } //#3371 + if (($1.barcode.length != 11) && ($1.barcode.length != 12)) { //#3377 + $k[$j++] = 'bwipp.upcAbadLength'; //#3376 + $k[$j++] = "UPC-A must be 11 or 12 digits"; //#3376 + $0.raiseerror(); //#3376 + } //#3376 + var _1I = $1.barcode; //#3378 + for (var _1J = 0, _1K = _1I.length; _1J < _1K; _1J++) { //#3382 + var _1L = $get(_1I, _1J); //#3382 + if ((_1L < 48) || (_1L > 57)) { //#3381 + $k[$j++] = 'bwipp.upcAbadCharacter'; //#3380 + $k[$j++] = "UPC-A must contain only digits"; //#3380 + $0.raiseerror(); //#3380 + } //#3380 + } //#3380 + if ((($1.addon.length != 0) && ($1.addon.length != 2)) && ($1.addon.length != 5)) { //#3385 + $k[$j++] = 'bwipp.upcAbadAddOnLength'; //#3384 + $k[$j++] = "Add-on for UPC-A must be 2 or 5 digits"; //#3384 + $0.raiseerror(); //#3384 + } //#3384 + $1.pad = $s(12); //#3388 + $1.checksum = 0; //#3389 + for (var _1Q = 0; _1Q <= 10; _1Q += 1) { //#3398 + $1.i = _1Q; //#3391 + $1.barchar = $get($1.barcode, $1.i) - 48; //#3392 + if (($1.i % 2) != 0) { //#3396 + $1.checksum = $1.checksum + $1.barchar; //#3394 + } else { //#3396 + $1.checksum = $1.checksum + ($1.barchar * 3); //#3396 + } //#3396 + } //#3396 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#3399 + if ($1.barcode.length == 12) { //#3404 + if ($get($1.barcode, 11) != ($1.checksum + 48)) { //#3403 + $k[$j++] = 'bwipp.upcAbadCheckDigit'; //#3402 + $k[$j++] = "Incorrect UPC check digit provided"; //#3402 + $0.raiseerror(); //#3402 + } //#3402 + } //#3402 + $puti($1.pad, 0, $1.barcode); //#3405 + $put($1.pad, 11, $1.checksum + 48); //#3406 + $1.barcode = $1.pad; //#3407 + $1.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111"]); //#3414 + $1.barchars = "0123456789"; //#3417 + $1.sbs = $s(59); //#3419 + $1.txt = $a(12); //#3420 + $puti($1.sbs, 0, $get($1.encs, 10)); //#3423 + for (var _1p = 0; _1p <= 5; _1p += 1) { //#3440 + $1.i = _1p; //#3428 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#3429 + $j--; //#3430 + $1.indx = $k[--$j].length; //#3431 + $j -= 2; //#3432 + $1.enc = $get($1.encs, $1.indx); //#3433 + $puti($1.sbs, ($1.i * 4) + 3, $1.enc); //#3434 + if ($1.i == 0) { //#3438 + $put($1.txt, 0, $a([$geti($1.barcode, 0, 1), $1.textxoffset, $1.textyoffset, $1.textfont, $f($1.textsize - 2)])); //#3436 + } else { //#3438 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $f((($1.i * 7) + 11) + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize])); //#3438 + } //#3438 + } //#3438 + $puti($1.sbs, (6 * 4) + 3, $get($1.encs, 11)); //#3443 + for (var _2O = 6; _2O <= 11; _2O += 1) { //#3460 + $1.i = _2O; //#3448 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#3449 + $j--; //#3450 + $1.indx = $k[--$j].length; //#3451 + $j -= 2; //#3452 + $1.enc = $get($1.encs, $1.indx); //#3453 + $puti($1.sbs, ($1.i * 4) + 8, $1.enc); //#3454 + if ($1.i == 11) { //#3458 + $put($1.txt, 11, $a([$geti($1.barcode, 11, 1), $f($1.textxoffset + 104), $1.textyoffset, $1.textfont, $f($1.textsize - 2)])); //#3456 + } else { //#3458 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $f(($f(($1.i * 7) + $1.textxoffset)) + 15), $1.textyoffset, $1.textfont, $1.textsize])); //#3458 + } //#3458 + } //#3458 + $puti($1.sbs, 56, $get($1.encs, 12)); //#3463 + $k[$j++] = Infinity; //#3465 + var _2x = $1.sbs; //#3465 + for (var _2y = 0, _2z = _2x.length; _2y < _2z; _2y++) { //#3465 + $k[$j++] = $get(_2x, _2y) - 48; //#3465 + } //#3465 + $1.sbs = $a(); //#3465 + if ($1.includetext) { //#3472 + $k[$j++] = Infinity; //#3467 + for (var _33 = 0, _34 = 4; _33 < _34; _33++) { //#3467 + $k[$j++] = $1.height; //#3467 + } //#3467 + for (var _36 = 0, _37 = 10; _36 < _37; _36++) { //#3467 + $k[$j++] = $f($1.height - 0.075); //#3467 + } //#3467 + $k[$j++] = $1.height; //#3467 + $k[$j++] = $1.height; //#3467 + for (var _3B = 0, _3C = 10; _3B < _3C; _3B++) { //#3467 + $k[$j++] = $f($1.height - 0.075); //#3467 + } //#3467 + for (var _3E = 0, _3F = 4; _3E < _3F; _3E++) { //#3467 + $k[$j++] = $1.height; //#3467 + } //#3467 + $1.bhs = $a(); //#3467 + $k[$j++] = Infinity; //#3468 + $k[$j++] = 0; //#3468 + $k[$j++] = 0; //#3468 + $k[$j++] = 0; //#3468 + $k[$j++] = 0; //#3468 + for (var _3I = 0, _3J = 10; _3I < _3J; _3I++) { //#3468 + $k[$j++] = 0.075; //#3468 + } //#3468 + $k[$j++] = 0; //#3468 + $k[$j++] = 0; //#3468 + for (var _3K = 0, _3L = 10; _3K < _3L; _3K++) { //#3468 + $k[$j++] = 0.075; //#3468 + } //#3468 + $k[$j++] = 0; //#3468 + $k[$j++] = 0; //#3468 + $k[$j++] = 0; //#3468 + $k[$j++] = 0; //#3468 + $1.bbs = $a(); //#3468 + } else { //#3472 + $k[$j++] = Infinity; //#3470 + for (var _3N = 0, _3O = 30; _3N < _3O; _3N++) { //#3470 + $k[$j++] = $1.height; //#3470 + } //#3470 + $1.bhs = $a(); //#3470 + $k[$j++] = Infinity; //#3471 + for (var _3R = 0, _3S = 30; _3R < _3S; _3R++) { //#3471 + $k[$j++] = 0; //#3471 + } //#3471 + $1.bbs = $a(); //#3471 + $1.txt = $a([]); //#3472 + } //#3472 + $1.guardrightypos = 0; //#3474 + if ($ne($1.addon, "")) { //#3495 + $k[$j++] = Infinity; //#3485 + $k[$j++] = 'dontdraw'; //#3482 + $k[$j++] = true; //#3482 + $k[$j++] = 'includetext'; //#3482 + $k[$j++] = true; //#3482 + $k[$j++] = 'height'; //#3482 + $k[$j++] = $f($1.height - 0.15); //#3482 + $k[$j++] = 'textxoffset'; //#3482 + if ($1.addontextxoffset != "unset") { //#3482 + $k[$j++] = $1.addontextxoffset; //#3482 + } else { //#3482 + $k[$j++] = $f(95 + $1.addongap); //#3482 + } //#3482 + if ($1.addontextyoffset != "unset") { //#3483 + $k[$j++] = 'textyoffset'; //#3483 + $k[$j++] = $1.addontextyoffset; //#3483 + } //#3483 + var _3d = ($1.addontextsize != "unset") ? $1.addontextsize : $1.textsize; //#3484 + var _3f = $ne($1.addontextfont, "unset") ? $1.addontextfont : $1.textfont; //#3485 + $k[$j++] = 'textsize'; //#3485 + $k[$j++] = _3d; //#3485 + $k[$j++] = 'textfont'; //#3485 + $k[$j++] = _3f; //#3485 + $1.addopts = $d(); //#3486 + if ($1.addon.length == 2) { //#3487 + $k[$j++] = $1.addon; //#3487 + $k[$j++] = $1.addopts; //#3487 + $0.ean2(); //#3487 + } //#3487 + if ($1.addon.length == 5) { //#3488 + $k[$j++] = $1.addon; //#3488 + $k[$j++] = $1.addopts; //#3488 + $0.ean5(); //#3488 + } //#3488 + $1.addcode = $k[--$j]; //#3489 + $k[$j++] = Infinity; //#3490 + $aload($1.sbs); //#3490 + $k[$j++] = $1.addongap; //#3490 + $aload($get($1.addcode, "sbs")); //#3490 + $1.sbs = $a(); //#3490 + $k[$j++] = Infinity; //#3491 + $aload($1.bhs); //#3491 + $forall($get($1.addcode, "bhs"), function() { //#3491 + var _3w = $k[--$j]; //#3491 + $k[$j++] = $f(_3w - 0.075); //#3491 + }); //#3491 + $1.bhs = $a(); //#3491 + $k[$j++] = Infinity; //#3492 + $aload($1.bbs); //#3492 + $forall($get($1.addcode, "bbs"), function() { //#3492 + var _41 = $k[--$j]; //#3492 + $k[$j++] = $f(_41 + 0.075); //#3492 + }); //#3492 + $1.bbs = $a(); //#3492 + $k[$j++] = Infinity; //#3493 + $aload($1.txt); //#3493 + $aload($get($1.addcode, "txt")); //#3493 + $1.txt = $a(); //#3493 + $1.guardrightypos = $f(($1.height * 72) - 6); //#3494 + } //#3494 + var _4E = new Map([ + ["ren", $0.renlinear], + ["sbs", $1.sbs], + ["bhs", $1.bhs], + ["bbs", $1.bbs], + ["txt", $1.txt], + ["opt", $1.options], + ["guardrightpos", 10], + ["guardrightypos", $1.guardrightypos], + ["borderbottom", 5] + ]); //#3507 + $k[$j++] = _4E; //#3510 + if (!$1.dontdraw) { //#3510 + $0.renlinear(); //#3510 + } //#3510 }; $0.upce = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 12; - $1.textxoffset = -7; - $1.textyoffset = -4; - $1.height = 1; - $1.addongap = 12; - $1.addontextfont = "unset"; - $1.addontextsize = "unset"; - $1.addontextxoffset = "unset"; - $1.addontextyoffset = "unset"; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.addongap = +$1.addongap; - if ($ne($1.addontextfont, "unset")) { - $1.addontextfont = "" + $1.addontextfont; - } - if ($ne($1.addontextsize, "unset")) { - $1.addontextsize = +$1.addontextsize; - } - if ($ne($1.addontextxoffset, "unset")) { - $1.addontextxoffset = +$1.addontextxoffset; - } - if ($ne($1.addontextyoffset, "unset")) { - $1.addontextyoffset = +$1.addontextyoffset; - } - $search($1.barcode, " "); - if ($k[--$j]) { - $1.barcode = $k[--$j]; - $j--; - $1.addon = $k[--$j]; - } else { - $j--; - $1.addon = ""; - } - if ($1.barcode.length == 11 || $1.barcode.length == 12) { - $forall($1.barcode, function() { - var _Q = $k[--$j]; - if (_Q < 48 || _Q > 57) { - $k[$j++] = "bwipp.upcEupcAbadCharacter"; - $k[$j++] = "UPC-A must contain only digits"; - $0.raiseerror(); - } - }); - for (var _R = 0, _S = 1; _R < _S; _R++) { - var _U = $1.barcode.length == 12 ? 8 : 7; - $1.upcecode = $s(_U); - if ($f($get($1.barcode, 3) - 48) <= 2 && $eq($geti($1.barcode, 4, 4), "0000")) { - $puti($1.upcecode, 0, $geti($1.barcode, 0, 3)); - $puti($1.upcecode, 3, $geti($1.barcode, 8, 3)); - $puti($1.upcecode, 6, $geti($1.barcode, 3, 1)); - break; - } - if ($eq($geti($1.barcode, 4, 5), "00000")) { - $puti($1.upcecode, 0, $geti($1.barcode, 0, 4)); - $puti($1.upcecode, 4, $geti($1.barcode, 9, 2)); - $puti($1.upcecode, 6, "3"); - break; - } - if ($eq($geti($1.barcode, 5, 5), "00000")) { - $puti($1.upcecode, 0, $geti($1.barcode, 0, 5)); - $puti($1.upcecode, 5, $geti($1.barcode, 10, 1)); - $puti($1.upcecode, 6, "4"); - break; - } - if ($f($get($1.barcode, 10) - 48) >= 5 && $eq($geti($1.barcode, 6, 4), "0000")) { - $puti($1.upcecode, 0, $geti($1.barcode, 0, 6)); - $puti($1.upcecode, 6, $geti($1.barcode, 10, 1)); - break; - } - $k[$j++] = "bwipp.upcEupcAnotCompressible"; - $k[$j++] = "UPC-A cannot be converted to a UPC-E"; - $0.raiseerror(); - } - if ($1.barcode.length == 12) { - $puti($1.upcecode, 7, $geti($1.barcode, 11, 1)); - } - $1.barcode = $1.upcecode; - } - if ($1.barcode.length != 7 && $1.barcode.length != 8) { - $k[$j++] = "bwipp.upcEbadLength"; - $k[$j++] = "UPC-E must be 7 or 8 digits"; - $0.raiseerror(); - } - var _1I = $1.barcode; - for (var _1J = 0, _1K = _1I.length; _1J < _1K; _1J++) { - var _1L = $get(_1I, _1J); - if (_1L < 48 || _1L > 57) { - $k[$j++] = "bwipp.upcEbadCharacter"; - $k[$j++] = "UPC-E must contain only digits"; - $0.raiseerror(); - } - } - if ($1.addon.length != 0 && $1.addon.length != 2 && $1.addon.length != 5) { - $k[$j++] = "bwipp.upcEbadAddOnLength"; - $k[$j++] = "Add-on for UPC-E must be 2 or 5 digits"; - $0.raiseerror(); - } - var _1Q = $get($1.barcode, 0); - if (_1Q != 48 && _1Q != 49) { - $k[$j++] = "bwipp.upcEbadNumberSystem"; - $k[$j++] = "UPC-E must have number system 0 or 1"; - $0.raiseerror(); - } - $1.encs = $a([ "3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "111111" ]); - $1.barchars = "0123456789"; - $1.mirrormaps = $a([ "000111", "001011", "001101", "001110", "010011", "011001", "011100", "010101", "010110", "011010" ]); - for (var _1T = 0, _1U = 1; _1T < _1U; _1T++) { - $1.upcacode = $s(11); - if ($get($1.barcode, 6) - 48 <= 2) { - $puti($1.upcacode, 0, $geti($1.barcode, 0, 3)); - $puti($1.upcacode, 3, $geti($1.barcode, 6, 1)); - $puti($1.upcacode, 4, "0000"); - $puti($1.upcacode, 8, $geti($1.barcode, 3, 3)); - break; - } - if ($get($1.barcode, 6) - 48 == 3) { - $puti($1.upcacode, 0, $geti($1.barcode, 0, 4)); - $puti($1.upcacode, 4, "00000"); - $puti($1.upcacode, 9, $geti($1.barcode, 4, 2)); - break; - } - if ($get($1.barcode, 6) - 48 == 4) { - $puti($1.upcacode, 0, $geti($1.barcode, 0, 5)); - $puti($1.upcacode, 5, "00000"); - $puti($1.upcacode, 10, $geti($1.barcode, 5, 1)); - break; - } - if ($get($1.barcode, 6) - 48 >= 5) { - $puti($1.upcacode, 0, $geti($1.barcode, 0, 6)); - $puti($1.upcacode, 6, "0000"); - $puti($1.upcacode, 10, $geti($1.barcode, 6, 1)); - break; - } - } - $1.checksum = 0; - for (var _29 = 0; _29 <= 10; _29 += 1) { - $1.i = _29; - $1.barchar = $get($1.upcacode, $1.i) - 48; - if ($1.i % 2 != 0) { - $1.checksum = $1.checksum + $1.barchar; - } else { - $1.checksum = $1.checksum + $1.barchar * 3; - } - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 8) { - if ($get($1.barcode, 7) != $1.checksum + 48) { - $k[$j++] = "bwipp.upcEbadCheckDigit"; - $k[$j++] = "Incorrect UPC check digit provided"; - $0.raiseerror(); - } - } - $1.pad = $s(8); - $puti($1.pad, 0, $1.barcode); - $put($1.pad, 7, $1.checksum + 48); - $1.barcode = $1.pad; - $1.txt = $a(8); - $put($1.txt, 0, $a([ $geti($1.barcode, 0, 1), $1.textxoffset, $1.textyoffset, $1.textfont, $f($1.textsize - 2) ])); - $1.mirrormap = $get($1.mirrormaps, $1.checksum); - if ($get($1.barcode, 0) == 48) { - $1.invt = $s($1.mirrormap.length); - for (var _2l = 0, _2k = $1.mirrormap.length - 1; _2l <= _2k; _2l += 1) { - $1.i = _2l; - if ($get($1.mirrormap, $1.i) == 48) { - $put($1.invt, $1.i, 49); - } else { - $put($1.invt, $1.i, 48); - } - } - $1.mirrormap = $1.invt; - } - $1.sbs = $s(33); - $puti($1.sbs, 0, $get($1.encs, 10)); - for (var _2y = 1; _2y <= 6; _2y += 1) { - $1.i = _2y; - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - if ($get($1.mirrormap, $1.i - 1) == 49) { - $1.enclen = $1.enc.length; - $1.revenc = $s($1.enclen); - for (var _3F = 0, _3E = $1.enclen - 1; _3F <= _3E; _3F += 1) { - $1.j = _3F; - $1.char = $get($1.enc, $1.j); - $put($1.revenc, $1.enclen - $1.j - 1, $1.char); - } - $1.enc = $1.revenc; - } - $puti($1.sbs, ($1.i - 1) * 4 + 3, $1.enc); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $f(($1.i - 1) * 7 + 11 + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize ])); - } - $put($1.txt, 7, $a([ $geti($1.barcode, 7, 1), $f(6 * 7 + 18 + $1.textxoffset), $1.textyoffset, $1.textfont, $f($1.textsize - 2) ])); - $puti($1.sbs, 27, $get($1.encs, 11)); - $k[$j++] = Infinity; - var _3n = $1.sbs; - for (var _3o = 0, _3p = _3n.length; _3o < _3p; _3o++) { - $k[$j++] = $get(_3n, _3o) - 48; - } - $1.sbs = $a(); - if ($1.includetext) { - $k[$j++] = Infinity; - $k[$j++] = $1.height; - $k[$j++] = $1.height; - for (var _3v = 0, _3w = 12; _3v < _3w; _3v++) { - $k[$j++] = $f($1.height - .075); - } - $k[$j++] = $1.height; - $k[$j++] = $1.height; - $k[$j++] = $1.height; - $1.bhs = $a(); - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = 0; - for (var _42 = 0, _43 = 12; _42 < _43; _42++) { - $k[$j++] = .075; - } - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $1.bbs = $a(); - } else { - $k[$j++] = Infinity; - for (var _45 = 0, _46 = 17; _45 < _46; _45++) { - $k[$j++] = $1.height; - } - $1.bhs = $a(); - $k[$j++] = Infinity; - for (var _49 = 0, _4A = 17; _49 < _4A; _49++) { - $k[$j++] = 0; - } - $1.bbs = $a(); - $1.txt = $a([]); - } - $1.guardrightypos = 0; - if ($ne($1.addon, "")) { - $k[$j++] = Infinity; - $k[$j++] = "dontdraw"; - $k[$j++] = true; - $k[$j++] = "includetext"; - $k[$j++] = true; - $k[$j++] = "height"; - $k[$j++] = $f($1.height - .15); - $k[$j++] = "textxoffset"; - if ($1.addontextxoffset != "unset") { - $k[$j++] = $1.addontextxoffset; - } else { - $k[$j++] = $f(51 + $1.addongap); - } - if ($1.addontextyoffset != "unset") { - $k[$j++] = "textyoffset"; - $k[$j++] = $1.addontextyoffset; - } - var _4L = $1.addontextsize != "unset" ? $1.addontextsize : $1.textsize; - var _4N = $ne($1.addontextfont, "unset") ? $1.addontextfont : $1.textfont; - $k[$j++] = "textsize"; - $k[$j++] = _4L; - $k[$j++] = "textfont"; - $k[$j++] = _4N; - $1.addopts = $d(); - if ($1.addon.length == 2) { - $k[$j++] = $1.addon; - $k[$j++] = $1.addopts; - $0.ean2(); - } - if ($1.addon.length == 5) { - $k[$j++] = $1.addon; - $k[$j++] = $1.addopts; - $0.ean5(); - } - $1.addcode = $k[--$j]; - $k[$j++] = Infinity; - $aload($1.sbs); - $k[$j++] = $1.addongap; - $aload($get($1.addcode, "sbs")); - $1.sbs = $a(); - $k[$j++] = Infinity; - $aload($1.bhs); - $forall($get($1.addcode, "bhs"), function() { - var _4e = $k[--$j]; - $k[$j++] = $f(_4e - .075); - }); - $1.bhs = $a(); - $k[$j++] = Infinity; - $aload($1.bbs); - $forall($get($1.addcode, "bbs"), function() { - var _4j = $k[--$j]; - $k[$j++] = $f(_4j + .075); - }); - $1.bbs = $a(); - $k[$j++] = Infinity; - $aload($1.txt); - $aload($get($1.addcode, "txt")); - $1.txt = $a(); - $1.guardrightypos = $f($1.height * 72 - 6); - } - var _4w = new Map([ [ "ren", $0.renlinear ], [ "sbs", $1.sbs ], [ "bhs", $1.bhs ], [ "bbs", $1.bbs ], [ "txt", $1.txt ], [ "opt", $1.options ], [ "guardrightpos", 10 ], [ "guardrightypos", $1.guardrightypos ], [ "borderbottom", 5 ] ]); - $k[$j++] = _4w; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#3541 + $1.options = $k[--$j]; //#3543 + $1.barcode = $k[--$j]; //#3544 + $1.dontdraw = false; //#3546 + $1.includetext = false; //#3547 + $1.textfont = "OCR-B"; //#3548 + $1.textsize = 12; //#3549 + $1.textxoffset = -7; //#3550 + $1.textyoffset = -4; //#3551 + $1.height = 1; //#3552 + $1.addongap = 12; //#3553 + $1.addontextfont = "unset"; //#3554 + $1.addontextsize = "unset"; //#3555 + $1.addontextxoffset = "unset"; //#3556 + $1.addontextyoffset = "unset"; //#3557 + $forall($1.options, function() { //#3568 + var _3 = $k[--$j]; //#3568 + $1[$k[--$j]] = _3; //#3568 + }); //#3568 + $1.textfont = "" + $1.textfont; //#3570 + $1.textsize = +$1.textsize; //#3571 + $1.textxoffset = +$1.textxoffset; //#3572 + $1.textyoffset = +$1.textyoffset; //#3573 + $1.height = +$1.height; //#3574 + $1.addongap = +$1.addongap; //#3575 + if ($ne($1.addontextfont, "unset")) { //#3576 + $1.addontextfont = "" + $1.addontextfont; //#3576 + } //#3576 + if ($ne($1.addontextsize, "unset")) { //#3577 + $1.addontextsize = +$1.addontextsize; //#3577 + } //#3577 + if ($ne($1.addontextxoffset, "unset")) { //#3578 + $1.addontextxoffset = +$1.addontextxoffset; //#3578 + } //#3578 + if ($ne($1.addontextyoffset, "unset")) { //#3579 + $1.addontextyoffset = +$1.addontextyoffset; //#3579 + } //#3579 + $search($1.barcode, " "); //#3582 + if ($k[--$j]) { //#3588 + $1.barcode = $k[--$j]; //#3583 + $j--; //#3584 + $1.addon = $k[--$j]; //#3585 + } else { //#3588 + $j--; //#3587 + $1.addon = ""; //#3588 + } //#3588 + if (($1.barcode.length == 11) || ($1.barcode.length == 12)) { //#3630 + $forall($1.barcode, function() { //#3598 + var _Q = $k[--$j]; //#3595 + if ((_Q < 48) || (_Q > 57)) { //#3597 + $k[$j++] = 'bwipp.upcEupcAbadCharacter'; //#3596 + $k[$j++] = "UPC-A must contain only digits"; //#3596 + $0.raiseerror(); //#3596 + } //#3596 + }); //#3596 + for (var _R = 0, _S = 1; _R < _S; _R++) { //#3625 + var _U = ($1.barcode.length == 12) ? 8 : 7; //#3600 + $1.upcecode = $s(_U); //#3600 + if (($f($get($1.barcode, 3) - 48) <= 2) && $eq($geti($1.barcode, 4, 4), "0000")) { //#3606 + $puti($1.upcecode, 0, $geti($1.barcode, 0, 3)); //#3602 + $puti($1.upcecode, 3, $geti($1.barcode, 8, 3)); //#3603 + $puti($1.upcecode, 6, $geti($1.barcode, 3, 1)); //#3604 + break; //#3605 + } //#3605 + if ($eq($geti($1.barcode, 4, 5), "00000")) { //#3612 + $puti($1.upcecode, 0, $geti($1.barcode, 0, 4)); //#3608 + $puti($1.upcecode, 4, $geti($1.barcode, 9, 2)); //#3609 + $puti($1.upcecode, 6, "3"); //#3610 + break; //#3611 + } //#3611 + if ($eq($geti($1.barcode, 5, 5), "00000")) { //#3618 + $puti($1.upcecode, 0, $geti($1.barcode, 0, 5)); //#3614 + $puti($1.upcecode, 5, $geti($1.barcode, 10, 1)); //#3615 + $puti($1.upcecode, 6, "4"); //#3616 + break; //#3617 + } //#3617 + if (($f($get($1.barcode, 10) - 48) >= 5) && $eq($geti($1.barcode, 6, 4), "0000")) { //#3623 + $puti($1.upcecode, 0, $geti($1.barcode, 0, 6)); //#3620 + $puti($1.upcecode, 6, $geti($1.barcode, 10, 1)); //#3621 + break; //#3622 + } //#3622 + $k[$j++] = 'bwipp.upcEupcAnotCompressible'; //#3624 + $k[$j++] = "UPC-A cannot be converted to a UPC-E"; //#3624 + $0.raiseerror(); //#3624 + } //#3624 + if ($1.barcode.length == 12) { //#3628 + $puti($1.upcecode, 7, $geti($1.barcode, 11, 1)); //#3627 + } //#3627 + $1.barcode = $1.upcecode; //#3629 + } //#3629 + if (($1.barcode.length != 7) && ($1.barcode.length != 8)) { //#3635 + $k[$j++] = 'bwipp.upcEbadLength'; //#3634 + $k[$j++] = "UPC-E must be 7 or 8 digits"; //#3634 + $0.raiseerror(); //#3634 + } //#3634 + var _1I = $1.barcode; //#3636 + for (var _1J = 0, _1K = _1I.length; _1J < _1K; _1J++) { //#3640 + var _1L = $get(_1I, _1J); //#3640 + if ((_1L < 48) || (_1L > 57)) { //#3639 + $k[$j++] = 'bwipp.upcEbadCharacter'; //#3638 + $k[$j++] = "UPC-E must contain only digits"; //#3638 + $0.raiseerror(); //#3638 + } //#3638 + } //#3638 + if ((($1.addon.length != 0) && ($1.addon.length != 2)) && ($1.addon.length != 5)) { //#3643 + $k[$j++] = 'bwipp.upcEbadAddOnLength'; //#3642 + $k[$j++] = "Add-on for UPC-E must be 2 or 5 digits"; //#3642 + $0.raiseerror(); //#3642 + } //#3642 + var _1Q = $get($1.barcode, 0); //#3646 + if ((_1Q != 48) && (_1Q != 49)) { //#3648 + $k[$j++] = 'bwipp.upcEbadNumberSystem'; //#3647 + $k[$j++] = "UPC-E must have number system 0 or 1"; //#3647 + $0.raiseerror(); //#3647 + } //#3647 + $1.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "111111"]); //#3655 + $1.barchars = "0123456789"; //#3658 + $1.mirrormaps = $a(["000111", "001011", "001101", "001110", "010011", "011001", "011100", "010101", "010110", "011010"]); //#3663 + for (var _1T = 0, _1U = 1; _1T < _1U; _1T++) { //#3693 + $1.upcacode = $s(11); //#3667 + if (($get($1.barcode, 6) - 48) <= 2) { //#3674 + $puti($1.upcacode, 0, $geti($1.barcode, 0, 3)); //#3669 + $puti($1.upcacode, 3, $geti($1.barcode, 6, 1)); //#3670 + $puti($1.upcacode, 4, "0000"); //#3671 + $puti($1.upcacode, 8, $geti($1.barcode, 3, 3)); //#3672 + break; //#3673 + } //#3673 + if (($get($1.barcode, 6) - 48) == 3) { //#3680 + $puti($1.upcacode, 0, $geti($1.barcode, 0, 4)); //#3676 + $puti($1.upcacode, 4, "00000"); //#3677 + $puti($1.upcacode, 9, $geti($1.barcode, 4, 2)); //#3678 + break; //#3679 + } //#3679 + if (($get($1.barcode, 6) - 48) == 4) { //#3686 + $puti($1.upcacode, 0, $geti($1.barcode, 0, 5)); //#3682 + $puti($1.upcacode, 5, "00000"); //#3683 + $puti($1.upcacode, 10, $geti($1.barcode, 5, 1)); //#3684 + break; //#3685 + } //#3685 + if (($get($1.barcode, 6) - 48) >= 5) { //#3692 + $puti($1.upcacode, 0, $geti($1.barcode, 0, 6)); //#3688 + $puti($1.upcacode, 6, "0000"); //#3689 + $puti($1.upcacode, 10, $geti($1.barcode, 6, 1)); //#3690 + break; //#3691 + } //#3691 + } //#3691 + $1.checksum = 0; //#3694 + for (var _29 = 0; _29 <= 10; _29 += 1) { //#3703 + $1.i = _29; //#3696 + $1.barchar = $get($1.upcacode, $1.i) - 48; //#3697 + if (($1.i % 2) != 0) { //#3701 + $1.checksum = $1.checksum + $1.barchar; //#3699 + } else { //#3701 + $1.checksum = $1.checksum + ($1.barchar * 3); //#3701 + } //#3701 + } //#3701 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#3704 + if ($1.barcode.length == 8) { //#3709 + if ($get($1.barcode, 7) != ($1.checksum + 48)) { //#3708 + $k[$j++] = 'bwipp.upcEbadCheckDigit'; //#3707 + $k[$j++] = "Incorrect UPC check digit provided"; //#3707 + $0.raiseerror(); //#3707 + } //#3707 + } //#3707 + $1.pad = $s(8); //#3710 + $puti($1.pad, 0, $1.barcode); //#3711 + $put($1.pad, 7, $1.checksum + 48); //#3712 + $1.barcode = $1.pad; //#3713 + $1.txt = $a(8); //#3714 + $put($1.txt, 0, $a([$geti($1.barcode, 0, 1), $1.textxoffset, $1.textyoffset, $1.textfont, $f($1.textsize - 2)])); //#3715 + $1.mirrormap = $get($1.mirrormaps, $1.checksum); //#3718 + if ($get($1.barcode, 0) == 48) { //#3732 + $1.invt = $s($1.mirrormap.length); //#3722 + for (var _2l = 0, _2k = $1.mirrormap.length - 1; _2l <= _2k; _2l += 1) { //#3730 + $1.i = _2l; //#3724 + if ($get($1.mirrormap, $1.i) == 48) { //#3728 + $put($1.invt, $1.i, 49); //#3726 + } else { //#3728 + $put($1.invt, $1.i, 48); //#3728 + } //#3728 + } //#3728 + $1.mirrormap = $1.invt; //#3731 + } //#3731 + $1.sbs = $s(33); //#3734 + $puti($1.sbs, 0, $get($1.encs, 10)); //#3737 + for (var _2y = 1; _2y <= 6; _2y += 1) { //#3759 + $1.i = _2y; //#3740 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#3742 + $j--; //#3743 + $1.indx = $k[--$j].length; //#3744 + $j -= 2; //#3745 + $1.enc = $get($1.encs, $1.indx); //#3746 + if ($get($1.mirrormap, $1.i - 1) == 49) { //#3756 + $1.enclen = $1.enc.length; //#3748 + $1.revenc = $s($1.enclen); //#3749 + for (var _3F = 0, _3E = $1.enclen - 1; _3F <= _3E; _3F += 1) { //#3754 + $1.j = _3F; //#3751 + $1.char = $get($1.enc, $1.j); //#3752 + $put($1.revenc, ($1.enclen - $1.j) - 1, $1.char); //#3753 + } //#3753 + $1.enc = $1.revenc; //#3755 + } //#3755 + $puti($1.sbs, (($1.i - 1) * 4) + 3, $1.enc); //#3757 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $f(((($1.i - 1) * 7) + 11) + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize])); //#3758 + } //#3758 + $put($1.txt, 7, $a([$geti($1.barcode, 7, 1), $f(((6 * 7) + 18) + $1.textxoffset), $1.textyoffset, $1.textfont, $f($1.textsize - 2)])); //#3761 + $puti($1.sbs, 27, $get($1.encs, 11)); //#3764 + $k[$j++] = Infinity; //#3766 + var _3n = $1.sbs; //#3766 + for (var _3o = 0, _3p = _3n.length; _3o < _3p; _3o++) { //#3766 + $k[$j++] = $get(_3n, _3o) - 48; //#3766 + } //#3766 + $1.sbs = $a(); //#3766 + if ($1.includetext) { //#3773 + $k[$j++] = Infinity; //#3768 + $k[$j++] = $1.height; //#3768 + $k[$j++] = $1.height; //#3768 + for (var _3v = 0, _3w = 12; _3v < _3w; _3v++) { //#3768 + $k[$j++] = $f($1.height - 0.075); //#3768 + } //#3768 + $k[$j++] = $1.height; //#3768 + $k[$j++] = $1.height; //#3768 + $k[$j++] = $1.height; //#3768 + $1.bhs = $a(); //#3768 + $k[$j++] = Infinity; //#3769 + $k[$j++] = 0; //#3769 + $k[$j++] = 0; //#3769 + for (var _42 = 0, _43 = 12; _42 < _43; _42++) { //#3769 + $k[$j++] = 0.075; //#3769 + } //#3769 + $k[$j++] = 0; //#3769 + $k[$j++] = 0; //#3769 + $k[$j++] = 0; //#3769 + $1.bbs = $a(); //#3769 + } else { //#3773 + $k[$j++] = Infinity; //#3771 + for (var _45 = 0, _46 = 17; _45 < _46; _45++) { //#3771 + $k[$j++] = $1.height; //#3771 + } //#3771 + $1.bhs = $a(); //#3771 + $k[$j++] = Infinity; //#3772 + for (var _49 = 0, _4A = 17; _49 < _4A; _49++) { //#3772 + $k[$j++] = 0; //#3772 + } //#3772 + $1.bbs = $a(); //#3772 + $1.txt = $a([]); //#3773 + } //#3773 + $1.guardrightypos = 0; //#3775 + if ($ne($1.addon, "")) { //#3796 + $k[$j++] = Infinity; //#3786 + $k[$j++] = 'dontdraw'; //#3783 + $k[$j++] = true; //#3783 + $k[$j++] = 'includetext'; //#3783 + $k[$j++] = true; //#3783 + $k[$j++] = 'height'; //#3783 + $k[$j++] = $f($1.height - 0.15); //#3783 + $k[$j++] = 'textxoffset'; //#3783 + if ($1.addontextxoffset != "unset") { //#3783 + $k[$j++] = $1.addontextxoffset; //#3783 + } else { //#3783 + $k[$j++] = $f(51 + $1.addongap); //#3783 + } //#3783 + if ($1.addontextyoffset != "unset") { //#3784 + $k[$j++] = 'textyoffset'; //#3784 + $k[$j++] = $1.addontextyoffset; //#3784 + } //#3784 + var _4L = ($1.addontextsize != "unset") ? $1.addontextsize : $1.textsize; //#3785 + var _4N = $ne($1.addontextfont, "unset") ? $1.addontextfont : $1.textfont; //#3786 + $k[$j++] = 'textsize'; //#3786 + $k[$j++] = _4L; //#3786 + $k[$j++] = 'textfont'; //#3786 + $k[$j++] = _4N; //#3786 + $1.addopts = $d(); //#3787 + if ($1.addon.length == 2) { //#3788 + $k[$j++] = $1.addon; //#3788 + $k[$j++] = $1.addopts; //#3788 + $0.ean2(); //#3788 + } //#3788 + if ($1.addon.length == 5) { //#3789 + $k[$j++] = $1.addon; //#3789 + $k[$j++] = $1.addopts; //#3789 + $0.ean5(); //#3789 + } //#3789 + $1.addcode = $k[--$j]; //#3790 + $k[$j++] = Infinity; //#3791 + $aload($1.sbs); //#3791 + $k[$j++] = $1.addongap; //#3791 + $aload($get($1.addcode, "sbs")); //#3791 + $1.sbs = $a(); //#3791 + $k[$j++] = Infinity; //#3792 + $aload($1.bhs); //#3792 + $forall($get($1.addcode, "bhs"), function() { //#3792 + var _4e = $k[--$j]; //#3792 + $k[$j++] = $f(_4e - 0.075); //#3792 + }); //#3792 + $1.bhs = $a(); //#3792 + $k[$j++] = Infinity; //#3793 + $aload($1.bbs); //#3793 + $forall($get($1.addcode, "bbs"), function() { //#3793 + var _4j = $k[--$j]; //#3793 + $k[$j++] = $f(_4j + 0.075); //#3793 + }); //#3793 + $1.bbs = $a(); //#3793 + $k[$j++] = Infinity; //#3794 + $aload($1.txt); //#3794 + $aload($get($1.addcode, "txt")); //#3794 + $1.txt = $a(); //#3794 + $1.guardrightypos = $f(($1.height * 72) - 6); //#3795 + } //#3795 + var _4w = new Map([ + ["ren", $0.renlinear], + ["sbs", $1.sbs], + ["bhs", $1.bhs], + ["bbs", $1.bbs], + ["txt", $1.txt], + ["opt", $1.options], + ["guardrightpos", 10], + ["guardrightypos", $1.guardrightypos], + ["borderbottom", 5] + ]); //#3808 + $k[$j++] = _4w; //#3811 + if (!$1.dontdraw) { //#3811 + $0.renlinear(); //#3811 + } //#3811 }; $0.isbn = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.isbntextfont = "OCR-A"; - $1.isbntextsize = 8; - $1.isbntextxoffset = "unset"; - $1.isbntextyoffset = "unset"; - $1.height = 1; - $1.addongap = 12; - $1.legacy = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.isbntextfont = "" + $1.isbntextfont; - $1.isbntextsize = +$1.isbntextsize; - if ($ne($1.isbntextxoffset, "unset")) { - $1.isbntextxoffset = +$1.isbntextxoffset; - } - if ($ne($1.isbntextyoffset, "unset")) { - $1.isbntextyoffset = +$1.isbntextyoffset; - } - $1.height = +$1.height; - $1.addongap = +$1.addongap; - $search($1.barcode, " "); - if ($k[--$j]) { - $1.barcode = $k[--$j]; - $j--; - $1.addon = $k[--$j]; - } else { - $j--; - $1.addon = ""; - } - if ($1.barcode.length != 15 && $1.barcode.length != 17 && ($1.barcode.length != 11 && $1.barcode.length != 13)) { - $k[$j++] = "bwipp.isbnBadLength"; - $k[$j++] = "ISBN-13 must be 15 or 17 characters including dashes. ISBN-10 must be 11 or 13 characters including dashes"; - $0.raiseerror(); - } - if ($1.addon.length != 0 && $1.addon.length != 2 && $1.addon.length != 5) { - $k[$j++] = "bwipp.isbnBadAddOnLength"; - $k[$j++] = "Add-on for ISBN must be 2 or 5 digits"; - $0.raiseerror(); - } - if ($1.barcode.length >= 15) { - var _Q = $geti($1.barcode, 0, 4); - if ($ne(_Q, "978-") && $ne(_Q, "979-")) { - $k[$j++] = "bwipp.isbn13badPrefix"; - $k[$j++] = "ISBN-13 prefix must be 978- or 979-"; - $0.raiseerror(); - } - $1.wasdash = false; - $1.numdash = 0; - $1.numdigit = 0; - var _S = $geti($1.barcode, 5, 9); - for (var _T = 0, _U = _S.length; _T < _U; _T++) { - var _V = $get(_S, _T); - $k[$j++] = _V; - if (_V == 45) { - if ($1.wasdash) { - $k[$j++] = "bwipp.isbn13adjacentDashes"; - $k[$j++] = "ISBN-13 does not permit adjacent dashes"; - $0.raiseerror(); - } - $1.wasdash = true; - $1.numdash = $1.numdash + 1; - } - var _Y = $k[--$j]; - if (_Y >= 48 && _Y <= 57) { - $1.wasdash = false; - $1.numdigit = $1.numdigit + 1; - } - } - if ($1.numdash != 2 || $1.numdigit != 7) { - $k[$j++] = "bwipp.isbn13numDashesDigits"; - $k[$j++] = "Incorrect number of dashes and digits for ISBN-13"; - $0.raiseerror(); - } - var _d = $get($1.barcode, 14); - if (_d < 48 || _d > 57) { - $k[$j++] = "bwipp.isbn13character15"; - $k[$j++] = "ISBN-13 character 15 must be a digit"; - $0.raiseerror(); - } - if ($1.barcode.length == 17) { - if ($ne($geti($1.barcode, 15, 1), "-")) { - $k[$j++] = "bwipp.isbn13character16"; - $k[$j++] = "ISBN-13 penultimate character must be a dash"; - $0.raiseerror(); - } - var _i = $get($1.barcode, 16); - if (_i < 48 || _i > 57) { - $k[$j++] = "bwipp.isbn13character17"; - $k[$j++] = "ISBN-13 final character must be a digit"; - $0.raiseerror(); - } - } - } else { - var _k = $get($1.barcode, 0); - if (_k < 48 || _k > 57) { - $k[$j++] = "bwipp.isbn10FirstDigit"; - $k[$j++] = "ISBN-10 first character must be a digit"; - $0.raiseerror(); - } - $1.wasdash = false; - $1.numdash = 0; - $1.numdigit = 0; - var _m = $geti($1.barcode, 1, 9); - for (var _n = 0, _o = _m.length; _n < _o; _n++) { - var _p = $get(_m, _n); - $k[$j++] = _p; - if (_p == 45) { - if ($1.wasdash) { - $k[$j++] = "bwipp.isbn10adjacentDashes"; - $k[$j++] = "ISBN-10 does not permit adjacent dashes"; - $0.raiseerror(); - } - $1.wasdash = true; - $1.numdash = $1.numdash + 1; - } - var _s = $k[--$j]; - if (_s >= 48 && _s <= 57) { - $1.wasdash = false; - $1.numdigit = $1.numdigit + 1; - } - } - if ($1.numdash != 2 || $1.numdigit != 7) { - $k[$j++] = "bwipp.isbn10numDashesDigits"; - $k[$j++] = "Incorrect number of dashes and digits for ISBN-10"; - $0.raiseerror(); - } - var _x = $get($1.barcode, 10); - if (_x < 48 || _x > 57) { - $k[$j++] = "bwipp.isbn10character11"; - $k[$j++] = "ISBN-10 character 11 must be a digit"; - $0.raiseerror(); - } - if ($1.barcode.length == 13) { - if ($ne($geti($1.barcode, 11, 1), "-")) { - $k[$j++] = "bwipp.isbn10character12"; - $k[$j++] = "ISBN-10 penultimate character must be a dash"; - $0.raiseerror(); - } - var _12 = $get($1.barcode, 12); - if ((_12 < 48 || _12 > 57) && _12 != 88) { - $k[$j++] = "bwipp.isbn10character13"; - $k[$j++] = "ISBN-10 final character must be a digit or X"; - $0.raiseerror(); - } - } - } - $1.isbntxt = $1.barcode; - if ($1.isbntxt.length <= 13) { - $1.isbn = $s(10); - $1.checksum = 0; - $1.i = 0; - $1.n = 0; - for (;;) { - $1.isbnchar = $f($get($1.isbntxt, $1.i) - 48); - if ($1.isbnchar != -3) { - $put($1.isbn, $1.n, $f($1.isbnchar + 48)); - if ($1.n < 9) { - $1.checksum = $f($1.checksum + (10 - $1.n) * $1.isbnchar); - } - $1.n = $1.n + 1; - } - $1.i = $1.i + 1; - if ($1.i == $1.isbntxt.length) { - break; - } - } - var _1M = $f(11 - $1.checksum % 11) % 11; - $k[$j++] = "checksum"; - $k[$j++] = _1M; - if (_1M == 10) { - $j--; - $k[$j++] = 40; - } - var _1N = $k[--$j]; - $1[$k[--$j]] = $f(_1N + 48); - $1.isbn = $geti($1.isbn, 0, 9); - if ($1.isbntxt.length == 13) { - if ($get($1.isbntxt, 12) != $1.checksum) { - $k[$j++] = "bwipp.isbn10badCheckDigit"; - $k[$j++] = "Incorrect ISBN-10 check digit provided"; - $0.raiseerror(); - } - } - } - if (!$1.legacy || $1.isbntxt.length >= 15) { - if ($1.isbntxt.length <= 13) { - $1.pad = $s(15); - $puti($1.pad, 0, "978-"); - $puti($1.pad, 4, $geti($1.isbntxt, 0, 11)); - $1.isbntxt = $1.pad; - } - $1.isbn = $s(13); - $1.checksum = 0; - $1.i = 0; - $1.n = 0; - for (;;) { - $1.isbnchar = $get($1.isbntxt, $1.i) - 48; - if ($1.isbnchar != -3) { - $put($1.isbn, $1.n, $1.isbnchar + 48); - if ($1.n < 12) { - $k[$j++] = "checksum"; - $k[$j++] = $1.isbnchar; - if ($1.n % 2 != 0) { - var _1p = $k[--$j]; - $k[$j++] = _1p * 3; - } - var _1r = $k[--$j]; - $1[$k[--$j]] = $f(_1r + $1.checksum); - } - $1.n = $1.n + 1; - } - $1.i = $1.i + 1; - if ($1.i == $1.isbntxt.length) { - break; - } - } - $1.checksum = (10 - $1.checksum % 10) % 10 + 48; - $1.isbn = $geti($1.isbn, 0, 12); - if ($1.isbntxt.length == 17) { - if ($get($1.isbntxt, 16) != $1.checksum) { - $k[$j++] = "bwipp.isbn13badCheckDigit"; - $k[$j++] = "Incorrect ISBN-13 check digit provided"; - $0.raiseerror(); - } - } - } - var _25 = $1.isbn.length == 12 ? 22 : 18; - $1.pad = $s(_25); - $puti($1.pad, 0, "ISBN "); - $puti($1.pad, 5, $1.isbntxt); - $put($1.pad, $1.pad.length - 2, 45); - $put($1.pad, $1.pad.length - 1, $1.checksum); - $1.isbntxt = $1.pad; - $1.barcode = $s(12); - if ($1.isbn.length == 9) { - $puti($1.barcode, 0, "978"); - $puti($1.barcode, 3, $1.isbn); - } else { - $puti($1.barcode, 0, $1.isbn); - } - if ($ne($1.addon, "")) { - var _2P = $s(12 + $1.addon.length + 1); - $puti(_2P, 0, $1.barcode); - $puti(_2P, 12, " "); - $puti(_2P, 13, $1.addon); - $1.barcode = _2P; - } - $put($1.options, "dontdraw", true); - $put($1.options, "addongap", $1.addongap); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.ean13(); - var _2X = $k[--$j]; - $1[$k[--$j]] = _2X; - if ($1.includetext) { - if ($1.isbntextxoffset == "unset") { - $k[$j++] = "isbntextxoffset"; - if ($1.isbn.length == 9) { - $k[$j++] = -1; - } else { - $k[$j++] = -12; - } - var _2c = $k[--$j]; - $1[$k[--$j]] = _2c; - } - if ($1.isbntextyoffset == "unset") { - $1.isbntextyoffset = $f($1.height * 72 + 3); - } - var _2h = $get($1.args, "txt") !== undefined; - if (_2h) { - $1.txt = $get($1.args, "txt"); - $1.newtxt = $a($1.txt.length + 1); - $puti($1.newtxt, 0, $1.txt); - $put($1.newtxt, $1.newtxt.length - 1, $a([ $1.isbntxt, $1.isbntextxoffset, $1.isbntextyoffset, $1.isbntextfont, $1.isbntextsize ])); - $put($1.args, "txt", $1.newtxt); - } else { - $put($1.args, "txt", $a([ $a([ $1.isbntxt, $1.isbntextxoffset, $1.isbntextyoffset, $1.isbntextfont, $1.isbntextsize ]) ])); - } - } - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#3841 + $1.options = $k[--$j]; //#3843 + $1.barcode = $k[--$j]; //#3844 + $1.dontdraw = false; //#3846 + $1.includetext = false; //#3847 + $1.isbntextfont = 'OCR-A'; //#3848 + $1.isbntextsize = 8; //#3849 + $1.isbntextxoffset = "unset"; //#3850 + $1.isbntextyoffset = "unset"; //#3851 + $1.height = 1; //#3852 + $1.addongap = 12; //#3853 + $1.legacy = false; //#3854 + $forall($1.options, function() { //#3865 + var _3 = $k[--$j]; //#3865 + $1[$k[--$j]] = _3; //#3865 + }); //#3865 + $1.isbntextfont = "" + $1.isbntextfont; //#3867 + $1.isbntextsize = +$1.isbntextsize; //#3868 + if ($ne($1.isbntextxoffset, "unset")) { //#3869 + $1.isbntextxoffset = +$1.isbntextxoffset; //#3869 + } //#3869 + if ($ne($1.isbntextyoffset, "unset")) { //#3870 + $1.isbntextyoffset = +$1.isbntextyoffset; //#3870 + } //#3870 + $1.height = +$1.height; //#3871 + $1.addongap = +$1.addongap; //#3872 + $search($1.barcode, " "); //#3875 + if ($k[--$j]) { //#3881 + $1.barcode = $k[--$j]; //#3876 + $j--; //#3877 + $1.addon = $k[--$j]; //#3878 + } else { //#3881 + $j--; //#3880 + $1.addon = ""; //#3881 + } //#3881 + if ((($1.barcode.length != 15) && ($1.barcode.length != 17)) && (($1.barcode.length != 11) && ($1.barcode.length != 13))) { //#3888 + $k[$j++] = 'bwipp.isbnBadLength'; //#3887 + $k[$j++] = "ISBN-13 must be 15 or 17 characters including dashes. ISBN-10 must be 11 or 13 characters including dashes"; //#3887 + $0.raiseerror(); //#3887 + } //#3887 + if ((($1.addon.length != 0) && ($1.addon.length != 2)) && ($1.addon.length != 5)) { //#3891 + $k[$j++] = 'bwipp.isbnBadAddOnLength'; //#3890 + $k[$j++] = "Add-on for ISBN must be 2 or 5 digits"; //#3890 + $0.raiseerror(); //#3890 + } //#3890 + if ($1.barcode.length >= 15) { //#3955 + var _Q = $geti($1.barcode, 0, 4); //#3893 + if ($ne(_Q, "978-") && $ne(_Q, "979-")) { //#3895 + $k[$j++] = 'bwipp.isbn13badPrefix'; //#3894 + $k[$j++] = "ISBN-13 prefix must be 978- or 979-"; //#3894 + $0.raiseerror(); //#3894 + } //#3894 + $1.wasdash = false; //#3896 + $1.numdash = 0; //#3896 + $1.numdigit = 0; //#3896 + var _S = $geti($1.barcode, 5, 9); //#3897 + for (var _T = 0, _U = _S.length; _T < _U; _T++) { //#3910 + var _V = $get(_S, _T); //#3910 + $k[$j++] = _V; //#3905 + if (_V == 45) { //#3905 + if ($1.wasdash) { //#3902 + $k[$j++] = 'bwipp.isbn13adjacentDashes'; //#3901 + $k[$j++] = "ISBN-13 does not permit adjacent dashes"; //#3901 + $0.raiseerror(); //#3901 + } //#3901 + $1.wasdash = true; //#3903 + $1.numdash = $1.numdash + 1; //#3904 + } //#3904 + var _Y = $k[--$j]; //#3906 + if ((_Y >= 48) && (_Y <= 57)) { //#3909 + $1.wasdash = false; //#3907 + $1.numdigit = $1.numdigit + 1; //#3908 + } //#3908 + } //#3908 + if (($1.numdash != 2) || ($1.numdigit != 7)) { //#3913 + $k[$j++] = 'bwipp.isbn13numDashesDigits'; //#3912 + $k[$j++] = "Incorrect number of dashes and digits for ISBN-13"; //#3912 + $0.raiseerror(); //#3912 + } //#3912 + var _d = $get($1.barcode, 14); //#3914 + if ((_d < 48) || (_d > 57)) { //#3916 + $k[$j++] = 'bwipp.isbn13character15'; //#3915 + $k[$j++] = "ISBN-13 character 15 must be a digit"; //#3915 + $0.raiseerror(); //#3915 + } //#3915 + if ($1.barcode.length == 17) { //#3924 + if ($ne($geti($1.barcode, 15, 1), "-")) { //#3920 + $k[$j++] = 'bwipp.isbn13character16'; //#3919 + $k[$j++] = "ISBN-13 penultimate character must be a dash"; //#3919 + $0.raiseerror(); //#3919 + } //#3919 + var _i = $get($1.barcode, 16); //#3921 + if ((_i < 48) || (_i > 57)) { //#3923 + $k[$j++] = 'bwipp.isbn13character17'; //#3922 + $k[$j++] = "ISBN-13 final character must be a digit"; //#3922 + $0.raiseerror(); //#3922 + } //#3922 + } //#3922 + } else { //#3955 + var _k = $get($1.barcode, 0); //#3926 + if ((_k < 48) || (_k > 57)) { //#3928 + $k[$j++] = 'bwipp.isbn10FirstDigit'; //#3927 + $k[$j++] = "ISBN-10 first character must be a digit"; //#3927 + $0.raiseerror(); //#3927 + } //#3927 + $1.wasdash = false; //#3929 + $1.numdash = 0; //#3929 + $1.numdigit = 0; //#3929 + var _m = $geti($1.barcode, 1, 9); //#3930 + for (var _n = 0, _o = _m.length; _n < _o; _n++) { //#3943 + var _p = $get(_m, _n); //#3943 + $k[$j++] = _p; //#3938 + if (_p == 45) { //#3938 + if ($1.wasdash) { //#3935 + $k[$j++] = 'bwipp.isbn10adjacentDashes'; //#3934 + $k[$j++] = "ISBN-10 does not permit adjacent dashes"; //#3934 + $0.raiseerror(); //#3934 + } //#3934 + $1.wasdash = true; //#3936 + $1.numdash = $1.numdash + 1; //#3937 + } //#3937 + var _s = $k[--$j]; //#3939 + if ((_s >= 48) && (_s <= 57)) { //#3942 + $1.wasdash = false; //#3940 + $1.numdigit = $1.numdigit + 1; //#3941 + } //#3941 + } //#3941 + if (($1.numdash != 2) || ($1.numdigit != 7)) { //#3946 + $k[$j++] = 'bwipp.isbn10numDashesDigits'; //#3945 + $k[$j++] = "Incorrect number of dashes and digits for ISBN-10"; //#3945 + $0.raiseerror(); //#3945 + } //#3945 + var _x = $get($1.barcode, 10); //#3947 + if ((_x < 48) || (_x > 57)) { //#3949 + $k[$j++] = 'bwipp.isbn10character11'; //#3948 + $k[$j++] = "ISBN-10 character 11 must be a digit"; //#3948 + $0.raiseerror(); //#3948 + } //#3948 + if ($1.barcode.length == 13) { //#3957 + if ($ne($geti($1.barcode, 11, 1), "-")) { //#3953 + $k[$j++] = 'bwipp.isbn10character12'; //#3952 + $k[$j++] = "ISBN-10 penultimate character must be a dash"; //#3952 + $0.raiseerror(); //#3952 + } //#3952 + var _12 = $get($1.barcode, 12); //#3954 + if (((_12 < 48) || (_12 > 57)) && (_12 != 88)) { //#3956 + $k[$j++] = 'bwipp.isbn10character13'; //#3955 + $k[$j++] = "ISBN-10 final character must be a digit or X"; //#3955 + $0.raiseerror(); //#3955 + } //#3955 + } //#3955 + } //#3955 + $1.isbntxt = $1.barcode; //#3960 + if ($1.isbntxt.length <= 13) { //#3986 + $1.isbn = $s(10); //#3964 + $1.checksum = 0; //#3965 + $1.i = 0; //#3966 + $1.n = 0; //#3966 + for (;;) { //#3978 + $1.isbnchar = $f($get($1.isbntxt, $1.i) - 48); //#3968 + if ($1.isbnchar != -3) { //#3975 + $put($1.isbn, $1.n, $f($1.isbnchar + 48)); //#3970 + if ($1.n < 9) { //#3973 + $1.checksum = $f($1.checksum + ((10 - $1.n) * $1.isbnchar)); //#3972 + } //#3972 + $1.n = $1.n + 1; //#3974 + } //#3974 + $1.i = $1.i + 1; //#3976 + if ($1.i == $1.isbntxt.length) { //#3977 + break; //#3977 + } //#3977 + } //#3977 + var _1M = ($f(11 - ($1.checksum % 11))) % 11; //#3979 + $k[$j++] = 'checksum'; //#3979 + $k[$j++] = _1M; //#3979 + if (_1M == 10) { //#3979 + $j--; //#3979 + $k[$j++] = 40; //#3979 + } //#3979 + var _1N = $k[--$j]; //#3979 + $1[$k[--$j]] = $f(_1N + 48); //#3979 + $1.isbn = $geti($1.isbn, 0, 9); //#3980 + if ($1.isbntxt.length == 13) { //#3985 + if ($get($1.isbntxt, 12) != $1.checksum) { //#3984 + $k[$j++] = 'bwipp.isbn10badCheckDigit'; //#3983 + $k[$j++] = "Incorrect ISBN-10 check digit provided"; //#3983 + $0.raiseerror(); //#3983 + } //#3983 + } //#3983 + } //#3983 + if ((!$1.legacy) || ($1.isbntxt.length >= 15)) { //#4022 + if ($1.isbntxt.length <= 13) { //#3996 + $1.pad = $s(15); //#3992 + $puti($1.pad, 0, "978-"); //#3993 + $puti($1.pad, 4, $geti($1.isbntxt, 0, 11)); //#3994 + $1.isbntxt = $1.pad; //#3995 + } //#3995 + $1.isbn = $s(13); //#3999 + $1.checksum = 0; //#4000 + $1.i = 0; //#4001 + $1.n = 0; //#4001 + for (;;) { //#4013 + $1.isbnchar = $get($1.isbntxt, $1.i) - 48; //#4003 + if ($1.isbnchar != -3) { //#4010 + $put($1.isbn, $1.n, $1.isbnchar + 48); //#4005 + if ($1.n < 12) { //#4008 + $k[$j++] = 'checksum'; //#4007 + $k[$j++] = $1.isbnchar; //#4007 + if (($1.n % 2) != 0) { //#4007 + var _1p = $k[--$j]; //#4007 + $k[$j++] = _1p * 3; //#4007 + } //#4007 + var _1r = $k[--$j]; //#4007 + $1[$k[--$j]] = $f(_1r + $1.checksum); //#4007 + } //#4007 + $1.n = $1.n + 1; //#4009 + } //#4009 + $1.i = $1.i + 1; //#4011 + if ($1.i == $1.isbntxt.length) { //#4012 + break; //#4012 + } //#4012 + } //#4012 + $1.checksum = ((10 - ($1.checksum % 10)) % 10) + 48; //#4014 + $1.isbn = $geti($1.isbn, 0, 12); //#4015 + if ($1.isbntxt.length == 17) { //#4020 + if ($get($1.isbntxt, 16) != $1.checksum) { //#4019 + $k[$j++] = 'bwipp.isbn13badCheckDigit'; //#4018 + $k[$j++] = "Incorrect ISBN-13 check digit provided"; //#4018 + $0.raiseerror(); //#4018 + } //#4018 + } //#4018 + } //#4018 + var _25 = ($1.isbn.length == 12) ? 22 : 18; //#4025 + $1.pad = $s(_25); //#4025 + $puti($1.pad, 0, "ISBN "); //#4026 + $puti($1.pad, 5, $1.isbntxt); //#4027 + $put($1.pad, $1.pad.length - 2, 45); //#4028 + $put($1.pad, $1.pad.length - 1, $1.checksum); //#4029 + $1.isbntxt = $1.pad; //#4030 + $1.barcode = $s(12); //#4033 + if ($1.isbn.length == 9) { //#4038 + $puti($1.barcode, 0, "978"); //#4035 + $puti($1.barcode, 3, $1.isbn); //#4036 + } else { //#4038 + $puti($1.barcode, 0, $1.isbn); //#4038 + } //#4038 + if ($ne($1.addon, "")) { //#4048 + var _2P = $s((12 + $1.addon.length) + 1); //#4043 + $puti(_2P, 0, $1.barcode); //#4044 + $puti(_2P, 12, " "); //#4045 + $puti(_2P, 13, $1.addon); //#4046 + $1.barcode = _2P; //#4047 + } //#4047 + $put($1.options, "dontdraw", true); //#4051 + $put($1.options, "addongap", $1.addongap); //#4052 + $k[$j++] = 'args'; //#4053 + $k[$j++] = $1.barcode; //#4053 + $k[$j++] = $1.options; //#4053 + $0.ean13(); //#4053 + var _2X = $k[--$j]; //#4053 + $1[$k[--$j]] = _2X; //#4053 + if ($1.includetext) { //#4072 + if ($1.isbntextxoffset == "unset") { //#4059 + $k[$j++] = 'isbntextxoffset'; //#4058 + if ($1.isbn.length == 9) { //#4058 + $k[$j++] = -1; //#4058 + } else { //#4058 + $k[$j++] = -12; //#4058 + } //#4058 + var _2c = $k[--$j]; //#4058 + $1[$k[--$j]] = _2c; //#4058 + } //#4058 + if ($1.isbntextyoffset == "unset") { //#4062 + $1.isbntextyoffset = $f(($1.height * 72) + 3); //#4061 + } //#4061 + var _2h = $get($1.args, "txt") !== undefined; //#4063 + if (_2h) { //#4070 + $1.txt = $get($1.args, "txt"); //#4064 + $1.newtxt = $a($1.txt.length + 1); //#4065 + $puti($1.newtxt, 0, $1.txt); //#4066 + $put($1.newtxt, $1.newtxt.length - 1, $a([$1.isbntxt, $1.isbntextxoffset, $1.isbntextyoffset, $1.isbntextfont, $1.isbntextsize])); //#4067 + $put($1.args, "txt", $1.newtxt); //#4068 + } else { //#4070 + $put($1.args, "txt", $a([$a([$1.isbntxt, $1.isbntextxoffset, $1.isbntextyoffset, $1.isbntextfont, $1.isbntextsize])])); //#4070 + } //#4070 + } //#4070 + $put($1.args, "opt", $1.options); //#4074 + $k[$j++] = $1.args; //#4077 + if (!$1.dontdraw) { //#4077 + $0.renlinear(); //#4077 + } //#4077 }; $0.ismn = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.ismntextfont = "OCR-A"; - $1.ismntextsize = 8; - $1.ismntextxoffset = "unset"; - $1.ismntextyoffset = "unset"; - $1.height = 1; - $1.addongap = 12; - $1.legacy = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.ismntextfont = "" + $1.ismntextfont; - $1.ismntextsize = +$1.ismntextsize; - if ($ne($1.ismntextxoffset, "unset")) { - $1.ismntextxoffset = +$1.ismntextxoffset; - } - if ($ne($1.ismntextyoffset, "unset")) { - $1.ismntextyoffset = +$1.ismntextyoffset; - } - $1.height = +$1.height; - $1.addongap = +$1.addongap; - $search($1.barcode, " "); - if ($k[--$j]) { - $1.barcode = $k[--$j]; - $j--; - $1.addon = $k[--$j]; - } else { - $j--; - $1.addon = ""; - } - if ($1.barcode.length != 15 && $1.barcode.length != 17 && ($1.barcode.length != 11 && $1.barcode.length != 13)) { - $k[$j++] = "bwipp.ismnBadLength"; - $k[$j++] = "ISMN-13 must be 15 or 17 characters including dashes. ISMN-10 must be 11 or 13 characters including dashes"; - $0.raiseerror(); - } - if ($1.addon.length != 0 && $1.addon.length != 2 && $1.addon.length != 5) { - $k[$j++] = "bwipp.ismnBadAddOnLength"; - $k[$j++] = "Add-on for ISMN must be 2 or 5 digits"; - $0.raiseerror(); - } - if ($1.barcode.length >= 15) { - if ($ne($geti($1.barcode, 0, 4), "979-")) { - $k[$j++] = "bwipp.ismn13badPrefix"; - $k[$j++] = "ISMN-13 prefix must be 979-"; - $0.raiseerror(); - } - $1.wasdash = false; - $1.numdash = 0; - $1.numdigit = 0; - var _S = $geti($1.barcode, 5, 9); - for (var _T = 0, _U = _S.length; _T < _U; _T++) { - var _V = $get(_S, _T); - $k[$j++] = _V; - if (_V == 45) { - if ($1.wasdash) { - $k[$j++] = "bwipp.ismn13adjacentDashes"; - $k[$j++] = "ISMN-13 does not permit adjacent dashes"; - $0.raiseerror(); - } - $1.wasdash = true; - $1.numdash = $1.numdash + 1; - } - var _Y = $k[--$j]; - if (_Y >= 48 && _Y <= 57) { - $1.wasdash = false; - $1.numdigit = $1.numdigit + 1; - } - } - if ($1.numdash != 2 || $1.numdigit != 7) { - $k[$j++] = "bwipp.ismn13numDashesDigits"; - $k[$j++] = "Incorrect number of dashes and digits for ISMN-13"; - $0.raiseerror(); - } - var _d = $get($1.barcode, 14); - if (_d < 48 || _d > 57) { - $k[$j++] = "bwipp.ismn13character15"; - $k[$j++] = "ISMN-13 character 15 must be a digit"; - $0.raiseerror(); - } - if ($1.barcode.length == 17) { - if ($ne($geti($1.barcode, 15, 1), "-")) { - $k[$j++] = "bwipp.ismn13character16"; - $k[$j++] = "ISMN-13 penultimate character must be a dash"; - $0.raiseerror(); - } - var _i = $get($1.barcode, 16); - if (_i < 48 || _i > 57) { - $k[$j++] = "bwipp.ismn13character17"; - $k[$j++] = "ISMN-13 final character must be a digit"; - $0.raiseerror(); - } - } - } else { - if ($ne($geti($1.barcode, 0, 2), "M-")) { - $k[$j++] = "bwipp.ismn10badPrefix"; - $k[$j++] = "ISMN-10 prefix must be M-"; - $0.raiseerror(); - } - var _m = $get($1.barcode, 2); - if (_m < 48 || _m > 57) { - $k[$j++] = "bwipp.ismn10character3"; - $k[$j++] = "ISMN-10 character 3 must be a digit"; - $0.raiseerror(); - } - $1.wasdash = false; - $1.numdash = 0; - $1.numdigit = 0; - var _o = $geti($1.barcode, 3, 7); - for (var _p = 0, _q = _o.length; _p < _q; _p++) { - var _r = $get(_o, _p); - $k[$j++] = _r; - if (_r == 45) { - if ($1.wasdash) { - $k[$j++] = "bwipp.ismn10adjacentDashes"; - $k[$j++] = "ISMN-10 does not permit adjacent dashes"; - $0.raiseerror(); - } - $1.wasdash = true; - $1.numdash = $1.numdash + 1; - } - var _u = $k[--$j]; - if (_u >= 48 && _u <= 57) { - $1.wasdash = false; - $1.numdigit = $1.numdigit + 1; - } - } - if ($1.numdash != 1 || $1.numdigit != 6) { - $k[$j++] = "bwipp.ismn10numDashesDigits"; - $k[$j++] = "Incorrect number of dashes and digits for ISMN-10"; - $0.raiseerror(); - } - var _z = $get($1.barcode, 10); - if (_z < 48 || _z > 57) { - $k[$j++] = "bwipp.ismn10character11"; - $k[$j++] = "ISMN-10 character 11 must be a digit"; - $0.raiseerror(); - } - if ($1.barcode.length == 13) { - if ($ne($geti($1.barcode, 11, 1), "-")) { - $k[$j++] = "bwipp.ismn10character12"; - $k[$j++] = "ISMN-10 penultimate character must be a dash"; - $0.raiseerror(); - } - var _14 = $get($1.barcode, 12); - if ((_14 < 48 || _14 > 57) && _14 != 88) { - $k[$j++] = "bwipp.ismn10character13"; - $k[$j++] = "ISMN-10 final character must be a digit or X"; - $0.raiseerror(); - } - } - } - $1.ismntxt = $1.barcode; - $1.legacytxt = ""; - if ($1.ismntxt.length <= 13) { - $1.legacytxt = $1.ismntxt; - $1.pad = $s($1.ismntxt.length + 4); - $puti($1.pad, 0, "979-0-"); - $puti($1.pad, 6, $geti($1.ismntxt, 2, $1.ismntxt.length - 2)); - $1.ismntxt = $1.pad; - } - $1.ismn = $s(13); - $1.checksum = 0; - $1.i = 0; - $1.n = 0; - for (;;) { - $1.ismnchar = $get($1.ismntxt, $1.i) - 48; - if ($1.ismnchar != -3) { - $put($1.ismn, $1.n, $1.ismnchar + 48); - if ($1.n < 12) { - if ($1.n % 2 == 0) { - $1.checksum = $1.ismnchar + $1.checksum; - } else { - $1.checksum = $1.ismnchar * 3 + $1.checksum; - } - } - $1.n = $1.n + 1; - } - $1.i = $1.i + 1; - if ($1.i == $1.ismntxt.length) { - break; - } - } - $1.checksum = (10 - $1.checksum % 10) % 10 + 48; - if ($1.barcode.length == 13 || $1.barcode.length == 17) { - var _1b = $1.barcode; - if ($get(_1b, _1b.length - 1) != $1.checksum) { - $k[$j++] = "bwipp.ismnBadCheckDigit"; - $k[$j++] = "Incorrect ISMN check digit provided"; - $0.raiseerror(); - } - } - if ($1.legacy && $ne($1.legacytxt, "")) { - $1.ismntxt = $1.legacytxt; - $1.pad = $s(18); - } else { - $1.pad = $s(22); - } - $puti($1.pad, 0, "ISMN "); - $puti($1.pad, 5, $1.ismntxt); - $put($1.pad, $1.pad.length - 2, 45); - $put($1.pad, $1.pad.length - 1, $1.checksum); - $1.ismntxt = $1.pad; - $1.barcode = $geti($1.ismn, 0, 12); - if ($ne($1.addon, "")) { - var _1w = $s(12 + $1.addon.length + 1); - $puti(_1w, 0, $1.barcode); - $puti(_1w, 12, " "); - $puti(_1w, 13, $1.addon); - $1.barcode = _1w; - } - $put($1.options, "dontdraw", true); - $put($1.options, "addongap", $1.addongap); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.ean13(); - var _24 = $k[--$j]; - $1[$k[--$j]] = _24; - if ($1.includetext) { - if ($1.ismntextxoffset == "unset") { - $k[$j++] = "ismntextxoffset"; - if ($1.ismntxt.length == 18) { - $k[$j++] = -1; - } else { - $k[$j++] = -12; - } - var _29 = $k[--$j]; - $1[$k[--$j]] = _29; - } - if ($1.ismntextyoffset == "unset") { - $1.ismntextyoffset = $f($1.height * 72 + 3); - } - var _2E = $get($1.args, "txt") !== undefined; - if (_2E) { - $1.txt = $get($1.args, "txt"); - $1.newtxt = $a($1.txt.length + 1); - $puti($1.newtxt, 0, $1.txt); - $put($1.newtxt, $1.newtxt.length - 1, $a([ $1.ismntxt, $1.ismntextxoffset, $1.ismntextyoffset, $1.ismntextfont, $1.ismntextsize ])); - $put($1.args, "txt", $1.newtxt); - } else { - $put($1.args, "txt", $a([ $a([ $1.ismntxt, $1.ismntextxoffset, $1.ismntextyoffset, $1.ismntextfont, $1.ismntextsize ]) ])); - } - } - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#4107 + $1.options = $k[--$j]; //#4109 + $1.barcode = $k[--$j]; //#4110 + $1.dontdraw = false; //#4112 + $1.includetext = false; //#4113 + $1.ismntextfont = 'OCR-A'; //#4114 + $1.ismntextsize = 8; //#4115 + $1.ismntextxoffset = "unset"; //#4116 + $1.ismntextyoffset = "unset"; //#4117 + $1.height = 1; //#4118 + $1.addongap = 12; //#4119 + $1.legacy = false; //#4120 + $forall($1.options, function() { //#4131 + var _3 = $k[--$j]; //#4131 + $1[$k[--$j]] = _3; //#4131 + }); //#4131 + $1.ismntextfont = "" + $1.ismntextfont; //#4133 + $1.ismntextsize = +$1.ismntextsize; //#4134 + if ($ne($1.ismntextxoffset, "unset")) { //#4135 + $1.ismntextxoffset = +$1.ismntextxoffset; //#4135 + } //#4135 + if ($ne($1.ismntextyoffset, "unset")) { //#4136 + $1.ismntextyoffset = +$1.ismntextyoffset; //#4136 + } //#4136 + $1.height = +$1.height; //#4137 + $1.addongap = +$1.addongap; //#4138 + $search($1.barcode, " "); //#4141 + if ($k[--$j]) { //#4147 + $1.barcode = $k[--$j]; //#4142 + $j--; //#4143 + $1.addon = $k[--$j]; //#4144 + } else { //#4147 + $j--; //#4146 + $1.addon = ""; //#4147 + } //#4147 + if ((($1.barcode.length != 15) && ($1.barcode.length != 17)) && (($1.barcode.length != 11) && ($1.barcode.length != 13))) { //#4154 + $k[$j++] = 'bwipp.ismnBadLength'; //#4153 + $k[$j++] = "ISMN-13 must be 15 or 17 characters including dashes. ISMN-10 must be 11 or 13 characters including dashes"; //#4153 + $0.raiseerror(); //#4153 + } //#4153 + if ((($1.addon.length != 0) && ($1.addon.length != 2)) && ($1.addon.length != 5)) { //#4157 + $k[$j++] = 'bwipp.ismnBadAddOnLength'; //#4156 + $k[$j++] = "Add-on for ISMN must be 2 or 5 digits"; //#4156 + $0.raiseerror(); //#4156 + } //#4156 + if ($1.barcode.length >= 15) { //#4224 + if ($ne($geti($1.barcode, 0, 4), "979-")) { //#4161 + $k[$j++] = 'bwipp.ismn13badPrefix'; //#4160 + $k[$j++] = "ISMN-13 prefix must be 979-"; //#4160 + $0.raiseerror(); //#4160 + } //#4160 + $1.wasdash = false; //#4162 + $1.numdash = 0; //#4162 + $1.numdigit = 0; //#4162 + var _S = $geti($1.barcode, 5, 9); //#4163 + for (var _T = 0, _U = _S.length; _T < _U; _T++) { //#4176 + var _V = $get(_S, _T); //#4176 + $k[$j++] = _V; //#4171 + if (_V == 45) { //#4171 + if ($1.wasdash) { //#4168 + $k[$j++] = 'bwipp.ismn13adjacentDashes'; //#4167 + $k[$j++] = "ISMN-13 does not permit adjacent dashes"; //#4167 + $0.raiseerror(); //#4167 + } //#4167 + $1.wasdash = true; //#4169 + $1.numdash = $1.numdash + 1; //#4170 + } //#4170 + var _Y = $k[--$j]; //#4172 + if ((_Y >= 48) && (_Y <= 57)) { //#4175 + $1.wasdash = false; //#4173 + $1.numdigit = $1.numdigit + 1; //#4174 + } //#4174 + } //#4174 + if (($1.numdash != 2) || ($1.numdigit != 7)) { //#4179 + $k[$j++] = 'bwipp.ismn13numDashesDigits'; //#4178 + $k[$j++] = "Incorrect number of dashes and digits for ISMN-13"; //#4178 + $0.raiseerror(); //#4178 + } //#4178 + var _d = $get($1.barcode, 14); //#4180 + if ((_d < 48) || (_d > 57)) { //#4182 + $k[$j++] = 'bwipp.ismn13character15'; //#4181 + $k[$j++] = "ISMN-13 character 15 must be a digit"; //#4181 + $0.raiseerror(); //#4181 + } //#4181 + if ($1.barcode.length == 17) { //#4190 + if ($ne($geti($1.barcode, 15, 1), "-")) { //#4186 + $k[$j++] = 'bwipp.ismn13character16'; //#4185 + $k[$j++] = "ISMN-13 penultimate character must be a dash"; //#4185 + $0.raiseerror(); //#4185 + } //#4185 + var _i = $get($1.barcode, 16); //#4187 + if ((_i < 48) || (_i > 57)) { //#4189 + $k[$j++] = 'bwipp.ismn13character17'; //#4188 + $k[$j++] = "ISMN-13 final character must be a digit"; //#4188 + $0.raiseerror(); //#4188 + } //#4188 + } //#4188 + } else { //#4224 + if ($ne($geti($1.barcode, 0, 2), "M-")) { //#4194 + $k[$j++] = 'bwipp.ismn10badPrefix'; //#4193 + $k[$j++] = "ISMN-10 prefix must be M-"; //#4193 + $0.raiseerror(); //#4193 + } //#4193 + var _m = $get($1.barcode, 2); //#4195 + if ((_m < 48) || (_m > 57)) { //#4197 + $k[$j++] = 'bwipp.ismn10character3'; //#4196 + $k[$j++] = "ISMN-10 character 3 must be a digit"; //#4196 + $0.raiseerror(); //#4196 + } //#4196 + $1.wasdash = false; //#4198 + $1.numdash = 0; //#4198 + $1.numdigit = 0; //#4198 + var _o = $geti($1.barcode, 3, 7); //#4199 + for (var _p = 0, _q = _o.length; _p < _q; _p++) { //#4212 + var _r = $get(_o, _p); //#4212 + $k[$j++] = _r; //#4207 + if (_r == 45) { //#4207 + if ($1.wasdash) { //#4204 + $k[$j++] = 'bwipp.ismn10adjacentDashes'; //#4203 + $k[$j++] = "ISMN-10 does not permit adjacent dashes"; //#4203 + $0.raiseerror(); //#4203 + } //#4203 + $1.wasdash = true; //#4205 + $1.numdash = $1.numdash + 1; //#4206 + } //#4206 + var _u = $k[--$j]; //#4208 + if ((_u >= 48) && (_u <= 57)) { //#4211 + $1.wasdash = false; //#4209 + $1.numdigit = $1.numdigit + 1; //#4210 + } //#4210 + } //#4210 + if (($1.numdash != 1) || ($1.numdigit != 6)) { //#4215 + $k[$j++] = 'bwipp.ismn10numDashesDigits'; //#4214 + $k[$j++] = "Incorrect number of dashes and digits for ISMN-10"; //#4214 + $0.raiseerror(); //#4214 + } //#4214 + var _z = $get($1.barcode, 10); //#4216 + if ((_z < 48) || (_z > 57)) { //#4218 + $k[$j++] = 'bwipp.ismn10character11'; //#4217 + $k[$j++] = "ISMN-10 character 11 must be a digit"; //#4217 + $0.raiseerror(); //#4217 + } //#4217 + if ($1.barcode.length == 13) { //#4226 + if ($ne($geti($1.barcode, 11, 1), "-")) { //#4222 + $k[$j++] = 'bwipp.ismn10character12'; //#4221 + $k[$j++] = "ISMN-10 penultimate character must be a dash"; //#4221 + $0.raiseerror(); //#4221 + } //#4221 + var _14 = $get($1.barcode, 12); //#4223 + if (((_14 < 48) || (_14 > 57)) && (_14 != 88)) { //#4225 + $k[$j++] = 'bwipp.ismn10character13'; //#4224 + $k[$j++] = "ISMN-10 final character must be a digit or X"; //#4224 + $0.raiseerror(); //#4224 + } //#4224 + } //#4224 + } //#4224 + $1.ismntxt = $1.barcode; //#4229 + $1.legacytxt = ""; //#4232 + if ($1.ismntxt.length <= 13) { //#4239 + $1.legacytxt = $1.ismntxt; //#4234 + $1.pad = $s($1.ismntxt.length + 4); //#4235 + $puti($1.pad, 0, "979-0-"); //#4236 + $puti($1.pad, 6, $geti($1.ismntxt, 2, $1.ismntxt.length - 2)); //#4237 + $1.ismntxt = $1.pad; //#4238 + } //#4238 + $1.ismn = $s(13); //#4242 + $1.checksum = 0; //#4243 + $1.i = 0; //#4244 + $1.n = 0; //#4244 + for (;;) { //#4260 + $1.ismnchar = $get($1.ismntxt, $1.i) - 48; //#4246 + if ($1.ismnchar != -3) { //#4257 + $put($1.ismn, $1.n, $1.ismnchar + 48); //#4248 + if ($1.n < 12) { //#4255 + if (($1.n % 2) == 0) { //#4253 + $1.checksum = $1.ismnchar + $1.checksum; //#4251 + } else { //#4253 + $1.checksum = ($1.ismnchar * 3) + $1.checksum; //#4253 + } //#4253 + } //#4253 + $1.n = $1.n + 1; //#4256 + } //#4256 + $1.i = $1.i + 1; //#4258 + if ($1.i == $1.ismntxt.length) { //#4259 + break; //#4259 + } //#4259 + } //#4259 + $1.checksum = ((10 - ($1.checksum % 10)) % 10) + 48; //#4261 + if (($1.barcode.length == 13) || ($1.barcode.length == 17)) { //#4268 + var _1b = $1.barcode; //#4265 + if ($get(_1b, _1b.length - 1) != $1.checksum) { //#4267 + $k[$j++] = 'bwipp.ismnBadCheckDigit'; //#4266 + $k[$j++] = "Incorrect ISMN check digit provided"; //#4266 + $0.raiseerror(); //#4266 + } //#4266 + } //#4266 + if ($1.legacy && $ne($1.legacytxt, "")) { //#4275 + $1.ismntxt = $1.legacytxt; //#4272 + $1.pad = $s(18); //#4273 + } else { //#4275 + $1.pad = $s(22); //#4275 + } //#4275 + $puti($1.pad, 0, "ISMN "); //#4277 + $puti($1.pad, 5, $1.ismntxt); //#4278 + $put($1.pad, $1.pad.length - 2, 45); //#4279 + $put($1.pad, $1.pad.length - 1, $1.checksum); //#4280 + $1.ismntxt = $1.pad; //#4281 + $1.barcode = $geti($1.ismn, 0, 12); //#4284 + if ($ne($1.addon, "")) { //#4293 + var _1w = $s((12 + $1.addon.length) + 1); //#4288 + $puti(_1w, 0, $1.barcode); //#4289 + $puti(_1w, 12, " "); //#4290 + $puti(_1w, 13, $1.addon); //#4291 + $1.barcode = _1w; //#4292 + } //#4292 + $put($1.options, "dontdraw", true); //#4296 + $put($1.options, "addongap", $1.addongap); //#4297 + $k[$j++] = 'args'; //#4298 + $k[$j++] = $1.barcode; //#4298 + $k[$j++] = $1.options; //#4298 + $0.ean13(); //#4298 + var _24 = $k[--$j]; //#4298 + $1[$k[--$j]] = _24; //#4298 + if ($1.includetext) { //#4317 + if ($1.ismntextxoffset == "unset") { //#4304 + $k[$j++] = 'ismntextxoffset'; //#4303 + if ($1.ismntxt.length == 18) { //#4303 + $k[$j++] = -1; //#4303 + } else { //#4303 + $k[$j++] = -12; //#4303 + } //#4303 + var _29 = $k[--$j]; //#4303 + $1[$k[--$j]] = _29; //#4303 + } //#4303 + if ($1.ismntextyoffset == "unset") { //#4307 + $1.ismntextyoffset = $f(($1.height * 72) + 3); //#4306 + } //#4306 + var _2E = $get($1.args, "txt") !== undefined; //#4308 + if (_2E) { //#4315 + $1.txt = $get($1.args, "txt"); //#4309 + $1.newtxt = $a($1.txt.length + 1); //#4310 + $puti($1.newtxt, 0, $1.txt); //#4311 + $put($1.newtxt, $1.newtxt.length - 1, $a([$1.ismntxt, $1.ismntextxoffset, $1.ismntextyoffset, $1.ismntextfont, $1.ismntextsize])); //#4312 + $put($1.args, "txt", $1.newtxt); //#4313 + } else { //#4315 + $put($1.args, "txt", $a([$a([$1.ismntxt, $1.ismntextxoffset, $1.ismntextyoffset, $1.ismntextfont, $1.ismntextsize])])); //#4315 + } //#4315 + } //#4315 + $put($1.args, "opt", $1.options); //#4319 + $k[$j++] = $1.args; //#4322 + if (!$1.dontdraw) { //#4322 + $0.renlinear(); //#4322 + } //#4322 }; $0.issn = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.issntxt = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.issntextfont = "OCR-A"; - $1.issntextsize = 8; - $1.issntextxoffset = "unset"; - $1.issntextyoffset = "unset"; - $1.height = 1; - $1.addongap = 12; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.issntextfont = "" + $1.issntextfont; - $1.issntextsize = +$1.issntextsize; - if ($ne($1.issntextxoffset, "unset")) { - $1.issntextxoffset = +$1.issntextxoffset; - } - if ($ne($1.issntextyoffset, "unset")) { - $1.issntextyoffset = +$1.issntextyoffset; - } - $1.height = +$1.height; - $1.addongap = +$1.addongap; - $search($1.issntxt, " "); - if ($k[--$j]) { - $1.issntxt = $k[--$j]; - $j--; - $1.seqvar = $k[--$j]; - } else { - $j--; - $1.seqvar = "00"; - } - $search($1.seqvar, " "); - if ($k[--$j]) { - $1.seqvar = $k[--$j]; - $j--; - $1.addon = $k[--$j]; - } else { - $j--; - $1.addon = ""; - } - if ($1.issntxt.length != 8 && $1.issntxt.length != 9) { - $k[$j++] = "bwipp.issnBadLength"; - $k[$j++] = "ISSN must be 8 or 9 characters including dash, in the format XXXX-XXXX"; - $0.raiseerror(); - } - var _O = $geti($1.issntxt, 0, 4); - for (var _P = 0, _Q = _O.length; _P < _Q; _P++) { - var _R = $get(_O, _P); - if (_R < 48 || _R > 57) { - $k[$j++] = "bwipp.issnFirstThroughFourthNotNumeric"; - $k[$j++] = "ISSN first four characters must be numeral characters"; - $0.raiseerror(); - } - } - if ($ne($geti($1.issntxt, 4, 1), "-")) { - $k[$j++] = "bwipp.issnNeedsDash"; - $k[$j++] = "ISSN fifth character must be a dash"; - $0.raiseerror(); - } - var _V = $geti($1.issntxt, 5, 3); - for (var _W = 0, _X = _V.length; _W < _X; _W++) { - var _Y = $get(_V, _W); - if (_Y < 48 || _Y > 57) { - $k[$j++] = "bwipp.issnSixthThroughEighthNotNumeric"; - $k[$j++] = "ISSN sixth through eighth characters must be numerals"; - $0.raiseerror(); - } - } - if ($1.issntxt.length == 9) { - var _b = $get($1.issntxt, 8); - if ((_b < 48 || _b > 57) && _b != 88) { - $k[$j++] = "bwipp.issnNinthCharacterBadFormat"; - $k[$j++] = "ISSN ninth character must be a number or the character X"; - $0.raiseerror(); - } - } - if ($1.seqvar.length != 2) { - $k[$j++] = "bwipp.issnBadSequenceVariantLength"; - $k[$j++] = "Sequence variant for ISSN must be 2 digits"; - $0.raiseerror(); - } - $forall($1.seqvar, function() { - var _e = $k[--$j]; - if (_e < 48 || _e > 57) { - $k[$j++] = "bwipp.issnSequenceVariantBadCharacter"; - $k[$j++] = "Sequence variant for ISSN must contain only digits"; - $0.raiseerror(); - } - }); - if ($1.addon.length != 0 && $1.addon.length != 2 && $1.addon.length != 5) { - $k[$j++] = "bwipp.issnBadAddOnLength"; - $k[$j++] = "Add-on for ISSN must be 2 or 5 digits"; - $0.raiseerror(); - } - $1.issn = $s(8); - $1.checksum = 0; - $1.i = 0; - $1.n = 0; - for (;;) { - $1.issnchar = $f($get($1.issntxt, $1.i) - 48); - if ($1.issnchar != -3) { - $put($1.issn, $1.n, $f($1.issnchar + 48)); - if ($1.n < 7) { - $1.checksum = $f($1.checksum + $1.issnchar * (8 - $1.n)); - } - $1.n = $1.n + 1; - } - $1.i = $1.i + 1; - if ($1.i == $1.issntxt.length) { - break; - } - } - $1.checksum = $f(11 - $1.checksum % 11) % 11; - var _10 = $f($1.checksum + 48); - $k[$j++] = "checksum"; - $k[$j++] = _10; - if (_10 == 58) { - $j--; - $k[$j++] = 88; - } - var _11 = $k[--$j]; - $1[$k[--$j]] = _11; - if ($1.issntxt.length == 9) { - if ($get($1.issntxt, 8) != $1.checksum) { - $k[$j++] = "bwipp.issnBadCheckDigit"; - $k[$j++] = "Incorrect ISSN check digit provided"; - $0.raiseerror(); - } - } - $1.pad = $s(14); - $puti($1.pad, 0, "ISSN "); - $puti($1.pad, 5, $1.issntxt); - $put($1.pad, 13, $1.checksum); - $1.issntxt = $1.pad; - $1.barcode = $geti($1.issn, 0, 7); - $1.barcode = $s(12); - $puti($1.barcode, 0, "977"); - $puti($1.barcode, 3, $1.issn); - $puti($1.barcode, 10, $1.seqvar); - if ($ne($1.addon, "")) { - var _1O = $s(12 + $1.addon.length + 1); - $puti(_1O, 0, $1.barcode); - $puti(_1O, 12, " "); - $puti(_1O, 13, $1.addon); - $1.barcode = _1O; - } - $put($1.options, "dontdraw", true); - $put($1.options, "addongap", $1.addongap); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.ean13(); - var _1W = $k[--$j]; - $1[$k[--$j]] = _1W; - if ($1.includetext) { - if ($1.issntextxoffset == "unset") { - $1.issntextxoffset = 10; - } - if ($1.issntextyoffset == "unset") { - $1.issntextyoffset = $f($1.height * 72 + 3); - } - var _1d = $get($1.args, "txt") !== undefined; - if (_1d) { - $1.txt = $get($1.args, "txt"); - $1.newtxt = $a($1.txt.length + 1); - $puti($1.newtxt, 0, $1.txt); - $put($1.newtxt, $1.newtxt.length - 1, $a([ $1.issntxt, $1.issntextxoffset, $1.issntextyoffset, $1.issntextfont, $1.issntextsize ])); - $put($1.args, "txt", $1.newtxt); - } else { - $put($1.args, "txt", $a([ $a([ $1.issntxt, $1.issntextxoffset, $1.issntextyoffset, $1.issntextfont, $1.issntextsize ]) ])); - } - } - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#4352 + $1.options = $k[--$j]; //#4354 + $1.issntxt = $k[--$j]; //#4355 + $1.dontdraw = false; //#4357 + $1.includetext = false; //#4358 + $1.issntextfont = 'OCR-A'; //#4359 + $1.issntextsize = 8; //#4360 + $1.issntextxoffset = "unset"; //#4361 + $1.issntextyoffset = "unset"; //#4362 + $1.height = 1; //#4363 + $1.addongap = 12; //#4364 + $forall($1.options, function() { //#4375 + var _3 = $k[--$j]; //#4375 + $1[$k[--$j]] = _3; //#4375 + }); //#4375 + $1.issntextfont = "" + $1.issntextfont; //#4377 + $1.issntextsize = +$1.issntextsize; //#4378 + if ($ne($1.issntextxoffset, "unset")) { //#4379 + $1.issntextxoffset = +$1.issntextxoffset; //#4379 + } //#4379 + if ($ne($1.issntextyoffset, "unset")) { //#4380 + $1.issntextyoffset = +$1.issntextyoffset; //#4380 + } //#4380 + $1.height = +$1.height; //#4381 + $1.addongap = +$1.addongap; //#4382 + $search($1.issntxt, " "); //#4385 + if ($k[--$j]) { //#4391 + $1.issntxt = $k[--$j]; //#4386 + $j--; //#4387 + $1.seqvar = $k[--$j]; //#4388 + } else { //#4391 + $j--; //#4390 + $1.seqvar = "00"; //#4391 + } //#4391 + $search($1.seqvar, " "); //#4395 + if ($k[--$j]) { //#4401 + $1.seqvar = $k[--$j]; //#4396 + $j--; //#4397 + $1.addon = $k[--$j]; //#4398 + } else { //#4401 + $j--; //#4400 + $1.addon = ""; //#4401 + } //#4401 + if (($1.issntxt.length != 8) && ($1.issntxt.length != 9)) { //#4407 + $k[$j++] = 'bwipp.issnBadLength'; //#4406 + $k[$j++] = "ISSN must be 8 or 9 characters including dash, in the format XXXX-XXXX"; //#4406 + $0.raiseerror(); //#4406 + } //#4406 + var _O = $geti($1.issntxt, 0, 4); //#4408 + for (var _P = 0, _Q = _O.length; _P < _Q; _P++) { //#4412 + var _R = $get(_O, _P); //#4412 + if ((_R < 48) || (_R > 57)) { //#4411 + $k[$j++] = 'bwipp.issnFirstThroughFourthNotNumeric'; //#4410 + $k[$j++] = "ISSN first four characters must be numeral characters"; //#4410 + $0.raiseerror(); //#4410 + } //#4410 + } //#4410 + if ($ne($geti($1.issntxt, 4, 1), "-")) { //#4415 + $k[$j++] = 'bwipp.issnNeedsDash'; //#4414 + $k[$j++] = "ISSN fifth character must be a dash"; //#4414 + $0.raiseerror(); //#4414 + } //#4414 + var _V = $geti($1.issntxt, 5, 3); //#4416 + for (var _W = 0, _X = _V.length; _W < _X; _W++) { //#4420 + var _Y = $get(_V, _W); //#4420 + if ((_Y < 48) || (_Y > 57)) { //#4419 + $k[$j++] = 'bwipp.issnSixthThroughEighthNotNumeric'; //#4418 + $k[$j++] = "ISSN sixth through eighth characters must be numerals"; //#4418 + $0.raiseerror(); //#4418 + } //#4418 + } //#4418 + if ($1.issntxt.length == 9) { //#4425 + var _b = $get($1.issntxt, 8); //#4422 + if (((_b < 48) || (_b > 57)) && (_b != 88)) { //#4424 + $k[$j++] = 'bwipp.issnNinthCharacterBadFormat'; //#4423 + $k[$j++] = "ISSN ninth character must be a number or the character X"; //#4423 + $0.raiseerror(); //#4423 + } //#4423 + } //#4423 + if ($1.seqvar.length != 2) { //#4428 + $k[$j++] = 'bwipp.issnBadSequenceVariantLength'; //#4427 + $k[$j++] = "Sequence variant for ISSN must be 2 digits"; //#4427 + $0.raiseerror(); //#4427 + } //#4427 + $forall($1.seqvar, function() { //#4433 + var _e = $k[--$j]; //#4430 + if ((_e < 48) || (_e > 57)) { //#4432 + $k[$j++] = 'bwipp.issnSequenceVariantBadCharacter'; //#4431 + $k[$j++] = "Sequence variant for ISSN must contain only digits"; //#4431 + $0.raiseerror(); //#4431 + } //#4431 + }); //#4431 + if ((($1.addon.length != 0) && ($1.addon.length != 2)) && ($1.addon.length != 5)) { //#4436 + $k[$j++] = 'bwipp.issnBadAddOnLength'; //#4435 + $k[$j++] = "Add-on for ISSN must be 2 or 5 digits"; //#4435 + $0.raiseerror(); //#4435 + } //#4435 + $1.issn = $s(8); //#4439 + $1.checksum = 0; //#4440 + $1.i = 0; //#4441 + $1.n = 0; //#4441 + for (;;) { //#4453 + $1.issnchar = $f($get($1.issntxt, $1.i) - 48); //#4443 + if ($1.issnchar != -3) { //#4450 + $put($1.issn, $1.n, $f($1.issnchar + 48)); //#4445 + if ($1.n < 7) { //#4448 + $1.checksum = $f($1.checksum + ($1.issnchar * (8 - $1.n))); //#4447 + } //#4447 + $1.n = $1.n + 1; //#4449 + } //#4449 + $1.i = $1.i + 1; //#4451 + if ($1.i == $1.issntxt.length) { //#4452 + break; //#4452 + } //#4452 + } //#4452 + $1.checksum = ($f(11 - ($1.checksum % 11))) % 11; //#4454 + var _10 = $f($1.checksum + 48); //#4455 + $k[$j++] = 'checksum'; //#4455 + $k[$j++] = _10; //#4455 + if (_10 == 58) { //#4455 + $j--; //#4455 + $k[$j++] = 88; //#4455 + } //#4455 + var _11 = $k[--$j]; //#4455 + $1[$k[--$j]] = _11; //#4455 + if ($1.issntxt.length == 9) { //#4460 + if ($get($1.issntxt, 8) != $1.checksum) { //#4459 + $k[$j++] = 'bwipp.issnBadCheckDigit'; //#4458 + $k[$j++] = "Incorrect ISSN check digit provided"; //#4458 + $0.raiseerror(); //#4458 + } //#4458 + } //#4458 + $1.pad = $s(14); //#4463 + $puti($1.pad, 0, "ISSN "); //#4464 + $puti($1.pad, 5, $1.issntxt); //#4465 + $put($1.pad, 13, $1.checksum); //#4466 + $1.issntxt = $1.pad; //#4467 + $1.barcode = $geti($1.issn, 0, 7); //#4470 + $1.barcode = $s(12); //#4473 + $puti($1.barcode, 0, "977"); //#4474 + $puti($1.barcode, 3, $1.issn); //#4475 + $puti($1.barcode, 10, $1.seqvar); //#4476 + if ($ne($1.addon, "")) { //#4485 + var _1O = $s((12 + $1.addon.length) + 1); //#4480 + $puti(_1O, 0, $1.barcode); //#4481 + $puti(_1O, 12, " "); //#4482 + $puti(_1O, 13, $1.addon); //#4483 + $1.barcode = _1O; //#4484 + } //#4484 + $put($1.options, "dontdraw", true); //#4488 + $put($1.options, "addongap", $1.addongap); //#4489 + $k[$j++] = 'args'; //#4490 + $k[$j++] = $1.barcode; //#4490 + $k[$j++] = $1.options; //#4490 + $0.ean13(); //#4490 + var _1W = $k[--$j]; //#4490 + $1[$k[--$j]] = _1W; //#4490 + if ($1.includetext) { //#4507 + if ($1.issntextxoffset == "unset") { //#4494 + $1.issntextxoffset = 10; //#4494 + } //#4494 + if ($1.issntextyoffset == "unset") { //#4497 + $1.issntextyoffset = $f(($1.height * 72) + 3); //#4496 + } //#4496 + var _1d = $get($1.args, "txt") !== undefined; //#4498 + if (_1d) { //#4505 + $1.txt = $get($1.args, "txt"); //#4499 + $1.newtxt = $a($1.txt.length + 1); //#4500 + $puti($1.newtxt, 0, $1.txt); //#4501 + $put($1.newtxt, $1.newtxt.length - 1, $a([$1.issntxt, $1.issntextxoffset, $1.issntextyoffset, $1.issntextfont, $1.issntextsize])); //#4502 + $put($1.args, "txt", $1.newtxt); //#4503 + } else { //#4505 + $put($1.args, "txt", $a([$a([$1.issntxt, $1.issntextxoffset, $1.issntextyoffset, $1.issntextfont, $1.issntextsize])])); //#4505 + } //#4505 + } //#4505 + $put($1.args, "opt", $1.options); //#4509 + $k[$j++] = $1.args; //#4512 + if (!$1.dontdraw) { //#4512 + $0.renlinear(); //#4512 + } //#4512 }; $0.code128 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = 1; - $1.encoding = "auto"; - $1.raw = false; - $1.parse = false; - $1.parsefnc = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.sta = -1; - $1.stb = -2; - $1.stc = -3; - $1.swa = -4; - $1.swb = -5; - $1.swc = -6; - $1.fn1 = -7; - $1.fn2 = -8; - $1.fn3 = -9; - $1.fn4 = -10; - $1.sft = -11; - $1.stp = -12; - $1.lka = -13; - $1.lkc = -14; - var _I = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "FNC1", $1.fn1 ], [ "FNC1", $1.fn1 ], [ "FNC2", $1.fn2 ], [ "FNC3", $1.fn3 ], [ "LNKA", $1.lka ], [ "LNKC", $1.lkc ] ]); - $1.fncvals = _I; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _L = $k[--$j]; - $1[$k[--$j]] = _L; - $1.msglen = $1.msg.length; - $1.charmaps = $a([ $a([ 32, 32, "00" ]), $a([ "!", "!", "01" ]), $a([ '"', '"', "02" ]), $a([ "#", "#", "03" ]), $a([ "$", "$", "04" ]), $a([ "%", "%", "05" ]), $a([ "&", "&", "06" ]), $a([ "'", "'", "07" ]), $a([ 40, 40, "08" ]), $a([ 41, 41, "09" ]), $a([ "*", "*", "10" ]), $a([ "+", "+", "11" ]), $a([ ",", ",", "12" ]), $a([ "-", "-", "13" ]), $a([ ".", ".", "14" ]), $a([ "/", "/", "15" ]), $a([ "0", "0", "16" ]), $a([ "1", "1", "17" ]), $a([ "2", "2", "18" ]), $a([ "3", "3", "19" ]), $a([ "4", "4", "20" ]), $a([ "5", "5", "21" ]), $a([ "6", "6", "22" ]), $a([ "7", "7", "23" ]), $a([ "8", "8", "24" ]), $a([ "9", "9", "25" ]), $a([ ":", ":", "26" ]), $a([ ";", ";", "27" ]), $a([ "<", "<", "28" ]), $a([ "=", "=", "29" ]), $a([ ">", ">", "30" ]), $a([ "?", "?", "31" ]), $a([ "@", "@", "32" ]), $a([ "A", "A", "33" ]), $a([ "B", "B", "34" ]), $a([ "C", "C", "35" ]), $a([ "D", "D", "36" ]), $a([ "E", "E", "37" ]), $a([ "F", "F", "38" ]), $a([ "G", "G", "39" ]), $a([ "H", "H", "40" ]), $a([ "I", "I", "41" ]), $a([ "J", "J", "42" ]), $a([ "K", "K", "43" ]), $a([ "L", "L", "44" ]), $a([ "M", "M", "45" ]), $a([ "N", "N", "46" ]), $a([ "O", "O", "47" ]), $a([ "P", "P", "48" ]), $a([ "Q", "Q", "49" ]), $a([ "R", "R", "50" ]), $a([ "S", "S", "51" ]), $a([ "T", "T", "52" ]), $a([ "U", "U", "53" ]), $a([ "V", "V", "54" ]), $a([ "W", "W", "55" ]), $a([ "X", "X", "56" ]), $a([ "Y", "Y", "57" ]), $a([ "Z", "Z", "58" ]), $a([ "[", "[", "59" ]), $a([ 92, 92, "60" ]), $a([ "]", "]", "61" ]), $a([ "^", "^", "62" ]), $a([ "_", "_", "63" ]), $a([ 0, "`", "64" ]), $a([ 1, "a", "65" ]), $a([ 2, "b", "66" ]), $a([ 3, "c", "67" ]), $a([ 4, "d", "68" ]), $a([ 5, "e", "69" ]), $a([ 6, "f", "70" ]), $a([ 7, "g", "71" ]), $a([ 8, "h", "72" ]), $a([ 9, "i", "73" ]), $a([ 10, "j", "74" ]), $a([ 11, "k", "75" ]), $a([ 12, "l", "76" ]), $a([ 13, "m", "77" ]), $a([ 14, "n", "78" ]), $a([ 15, "o", "79" ]), $a([ 16, "p", "80" ]), $a([ 17, "q", "81" ]), $a([ 18, "r", "82" ]), $a([ 19, "s", "83" ]), $a([ 20, "t", "84" ]), $a([ 21, "u", "85" ]), $a([ 22, "v", "86" ]), $a([ 23, "w", "87" ]), $a([ 24, "x", "88" ]), $a([ 25, "y", "89" ]), $a([ 26, "z", "90" ]), $a([ 27, "{", "91" ]), $a([ 28, "|", "92" ]), $a([ 29, "}", "93" ]), $a([ 30, "~", "94" ]), $a([ 31, 127, "95" ]), $a([ $1.fn3, $1.fn3, "96" ]), $a([ $1.fn2, $1.fn2, "97" ]), $a([ $1.sft, $1.sft, "98" ]), $a([ $1.swc, $1.swc, "99" ]), $a([ $1.swb, $1.fn4, $1.swb ]), $a([ $1.fn4, $1.swa, $1.swa ]), $a([ $1.fn1, $1.fn1, $1.fn1 ]), $a([ $1.sta, $1.sta, $1.sta ]), $a([ $1.stb, $1.stb, $1.stb ]), $a([ $1.stc, $1.stc, $1.stc ]), $a([ $1.stp, $1.stp, $1.stp ]) ]); - $1.charvals = $a([ new Map(), new Map(), new Map() ]); - for (var _2e = 0, _2d = $1.charmaps.length - 1; _2e <= _2d; _2e += 1) { - $1.i = _2e; - $1.encs = $get($1.charmaps, $1.i); - for (var _2i = 0; _2i <= 2; _2i += 1) { - $1.j = _2i; - var _2l = $get($1.encs, $1.j); - $k[$j++] = _2l; - if ($eq($type(_2l), "stringtype")) { - var _2o = $get($k[--$j], 0); - $k[$j++] = _2o; - } - $put($get($1.charvals, $1.j), $k[--$j], $1.i); - } - } - $1.seta = $get($1.charvals, 0); - $1.setb = $get($1.charvals, 1); - $1.setc = $get($1.charvals, 2); - $put($1.seta, $1.lka, $get($1.seta, $1.swb)); - $put($1.seta, $1.lkc, $get($1.seta, $1.swc)); - $put($1.setb, $1.lka, $get($1.setb, $1.swc)); - $put($1.setb, $1.lkc, $get($1.setb, $1.swa)); - $put($1.setc, $1.lka, $get($1.setc, $1.swa)); - $put($1.setc, $1.lkc, $get($1.setc, $1.swb)); - if ($1.raw) { - $1.encoding = "raw"; - } - if ($eq($1.encoding, "raw")) { - $1.cws = $a($1.barcode.length); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.barcode.length) { - break; - } - $1.cw = ~~$z($geti($1.barcode, $1.i + 1, 3)); - $put($1.cws, $1.j, $1.cw); - $1.i = $1.i + 4; - $1.j = $1.j + 1; - } - $1.cws = $geti($1.cws, 0, $1.j); - $1.text = ""; - } - if ($eq($1.encoding, "auto")) { - $1.text = $s($1.msglen); - for (var _3q = 0, _3p = $1.msglen - 1; _3q <= _3p; _3q += 1) { - $1.i = _3q; - var _3v = $get($1.msg, $1.i); - $k[$j++] = $1.text; - $k[$j++] = $1.i; - $k[$j++] = _3v; - if (_3v < 0) { - $j--; - $k[$j++] = 32; - } - var _3w = $k[--$j]; - var _3x = $k[--$j]; - $put($k[--$j], _3x, _3w); - } - $k[$j++] = Infinity; - for (var _40 = 0, _41 = $1.msglen; _40 < _41; _40++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numSA = $a(); - $k[$j++] = Infinity; - for (var _44 = 0, _45 = $1.msglen; _44 < _45; _44++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numEA = $a(); - for (var _48 = $1.msglen - 1; _48 >= 0; _48 -= 1) { - $1.i = _48; - if ($get($1.msg, $1.i) >= 0) { - if ($get($1.msg, $1.i) >= 128) { - $put($1.numEA, $1.i, $f($get($1.numEA, $1.i + 1) + 1)); - } else { - $put($1.numSA, $1.i, $f($get($1.numSA, $1.i + 1) + 1)); - } - } - } - $1.ea = false; - $1.msgtmp = $a([]); - for (var _4S = 0, _4R = $1.msglen - 1; _4S <= _4R; _4S += 1) { - $1.i = _4S; - $1.c = $get($1.msg, $1.i); - if (!$xo($1.ea, $1.c < 128) && $1.c >= 0) { - if ($1.ea) { - $k[$j++] = $1.numSA; - } else { - $k[$j++] = $1.numEA; - } - var _4e = $get($k[--$j], $1.i); - var _4h = $f(_4e + $1.i) == $1.msglen ? 3 : 5; - if (_4e < _4h) { - $k[$j++] = Infinity; - $aload($1.msgtmp); - $k[$j++] = $1.fn4; - $1.msgtmp = $a(); - } else { - $k[$j++] = Infinity; - $aload($1.msgtmp); - $k[$j++] = $1.fn4; - $k[$j++] = $1.fn4; - $1.msgtmp = $a(); - $1.ea = !$1.ea; - } - } - $k[$j++] = Infinity; - $aload($1.msgtmp); - if ($1.c >= 0) { - $k[$j++] = $1.c & 127; - } else { - $k[$j++] = $1.c; - } - $1.msgtmp = $a(); - } - $1.msg = $1.msgtmp; - $1.msglen = $1.msg.length; + var $1 = {}; //#4542 + $1.options = $k[--$j]; //#4544 + $1.barcode = $k[--$j]; //#4545 + $1.dontdraw = false; //#4547 + $1.includetext = false; //#4548 + $1.textfont = "OCR-B"; //#4549 + $1.textsize = 10; //#4550 + $1.textxoffset = 0; //#4551 + $1.textyoffset = -8; //#4552 + $1.height = 1; //#4553 + $1.encoding = "auto"; //#4554 + $1.raw = false; //#4555 + $1.parse = false; //#4556 + $1.parsefnc = false; //#4557 + $forall($1.options, function() { //#4568 + var _3 = $k[--$j]; //#4568 + $1[$k[--$j]] = _3; //#4568 + }); //#4568 + $1.textfont = "" + $1.textfont; //#4570 + $1.textsize = +$1.textsize; //#4571 + $1.textxoffset = +$1.textxoffset; //#4572 + $1.textyoffset = +$1.textyoffset; //#4573 + $1.height = +$1.height; //#4574 + $1.sta = -1; //#4577 + $1.stb = -2; //#4577 + $1.stc = -3; //#4577 + $1.swa = -4; //#4578 + $1.swb = -5; //#4578 + $1.swc = -6; //#4578 + $1.fn1 = -7; //#4579 + $1.fn2 = -8; //#4579 + $1.fn3 = -9; //#4579 + $1.fn4 = -10; //#4580 + $1.sft = -11; //#4580 + $1.stp = -12; //#4580 + $1.lka = -13; //#4581 + $1.lkc = -14; //#4581 + var _I = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["FNC1", $1.fn1], + ["FNC1", $1.fn1], + ["FNC2", $1.fn2], + ["FNC3", $1.fn3], + ["LNKA", $1.lka], + ["LNKC", $1.lkc] + ]); //#4593 + $1.fncvals = _I; //#4594 + $k[$j++] = 'msg'; //#4595 + $k[$j++] = $1.barcode; //#4595 + $k[$j++] = $1.fncvals; //#4595 + $0.parseinput(); //#4595 + var _L = $k[--$j]; //#4595 + $1[$k[--$j]] = _L; //#4595 + $1.msglen = $1.msg.length; //#4596 + $1.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$1.fn3, $1.fn3, "96"]), $a([$1.fn2, $1.fn2, "97"]), $a([$1.sft, $1.sft, "98"]), $a([$1.swc, $1.swc, "99"]), $a([$1.swb, $1.fn4, $1.swb]), $a([$1.fn4, $1.swa, $1.swa]), $a([$1.fn1, $1.fn1, $1.fn1]), $a([$1.sta, $1.sta, $1.sta]), $a([$1.stb, $1.stb, $1.stb]), $a([$1.stc, $1.stc, $1.stc]), $a([$1.stp, $1.stp, $1.stp])]); //#4637 + $1.charvals = $a([new Map, new Map, new Map]); //#4640 + for (var _2e = 0, _2d = $1.charmaps.length - 1; _2e <= _2d; _2e += 1) { //#4649 + $1.i = _2e; //#4642 + $1.encs = $get($1.charmaps, $1.i); //#4643 + for (var _2i = 0; _2i <= 2; _2i += 1) { //#4648 + $1.j = _2i; //#4645 + var _2l = $get($1.encs, $1.j); //#4646 + $k[$j++] = _2l; //#4646 + if ($eq($type(_2l), 'stringtype')) { //#4646 + var _2o = $get($k[--$j], 0); //#4646 + $k[$j++] = _2o; //#4646 + } //#4646 + $put($get($1.charvals, $1.j), $k[--$j], $1.i); //#4647 + } //#4647 + } //#4647 + $1.seta = $get($1.charvals, 0); //#4650 + $1.setb = $get($1.charvals, 1); //#4651 + $1.setc = $get($1.charvals, 2); //#4652 + $put($1.seta, $1.lka, $get($1.seta, $1.swb)); //#4655 + $put($1.seta, $1.lkc, $get($1.seta, $1.swc)); //#4655 + $put($1.setb, $1.lka, $get($1.setb, $1.swc)); //#4656 + $put($1.setb, $1.lkc, $get($1.setb, $1.swa)); //#4656 + $put($1.setc, $1.lka, $get($1.setc, $1.swa)); //#4657 + $put($1.setc, $1.lkc, $get($1.setc, $1.swb)); //#4657 + if ($1.raw) { //#4659 + $1.encoding = "raw"; //#4659 + } //#4659 + if ($eq($1.encoding, "raw")) { //#4673 + $1.cws = $a($1.barcode.length); //#4662 + $1.i = 0; //#4663 + $1.j = 0; //#4663 + for (;;) { //#4670 + if ($1.i == $1.barcode.length) { //#4665 + break; //#4665 + } //#4665 + $1.cw = ~~$z($geti($1.barcode, $1.i + 1, 3)); //#4666 + $put($1.cws, $1.j, $1.cw); //#4667 + $1.i = $1.i + 4; //#4668 + $1.j = $1.j + 1; //#4669 + } //#4669 + $1.cws = $geti($1.cws, 0, $1.j); //#4671 + $1.text = ""; //#4672 + } //#4672 + if ($eq($1.encoding, "auto")) { //#4898 + $1.text = $s($1.msglen); //#4677 + for (var _3q = 0, _3p = $1.msglen - 1; _3q <= _3p; _3q += 1) { //#4681 + $1.i = _3q; //#4679 + var _3v = $get($1.msg, $1.i); //#4680 + $k[$j++] = $1.text; //#4680 + $k[$j++] = $1.i; //#4680 + $k[$j++] = _3v; //#4680 + if (_3v < 0) { //#4680 + $j--; //#4680 + $k[$j++] = 32; //#4680 + } //#4680 + var _3w = $k[--$j]; //#4680 + var _3x = $k[--$j]; //#4680 + $put($k[--$j], _3x, _3w); //#4680 + } //#4680 + $k[$j++] = Infinity; //#4684 + for (var _40 = 0, _41 = $1.msglen; _40 < _41; _40++) { //#4684 + $k[$j++] = 0; //#4684 + } //#4684 + $k[$j++] = 0; //#4684 + $1.numSA = $a(); //#4684 + $k[$j++] = Infinity; //#4685 + for (var _44 = 0, _45 = $1.msglen; _44 < _45; _44++) { //#4685 + $k[$j++] = 0; //#4685 + } //#4685 + $k[$j++] = 0; //#4685 + $1.numEA = $a(); //#4685 + for (var _48 = $1.msglen - 1; _48 >= 0; _48 -= 1) { //#4695 + $1.i = _48; //#4687 + if ($get($1.msg, $1.i) >= 0) { //#4694 + if ($get($1.msg, $1.i) >= 128) { //#4692 + $put($1.numEA, $1.i, $f($get($1.numEA, $1.i + 1) + 1)); //#4690 + } else { //#4692 + $put($1.numSA, $1.i, $f($get($1.numSA, $1.i + 1) + 1)); //#4692 + } //#4692 + } //#4692 + } //#4692 + $1.ea = false; //#4698 + $1.msgtmp = $a([]); //#4698 + for (var _4S = 0, _4R = $1.msglen - 1; _4S <= _4R; _4S += 1) { //#4713 + $1.i = _4S; //#4700 + $1.c = $get($1.msg, $1.i); //#4701 + if ((!$xo($1.ea, $1.c < 128)) && ($1.c >= 0)) { //#4711 + if ($1.ea) { //#4703 + $k[$j++] = $1.numSA; //#4703 + } else { //#4703 + $k[$j++] = $1.numEA; //#4703 + } //#4703 + var _4e = $get($k[--$j], $1.i); //#4703 + var _4h = ($f(_4e + $1.i) == $1.msglen) ? 3 : 5; //#4704 + if (_4e < _4h) { //#4709 + $k[$j++] = Infinity; //#4706 + $aload($1.msgtmp); //#4706 + $k[$j++] = $1.fn4; //#4706 + $1.msgtmp = $a(); //#4706 + } else { //#4709 + $k[$j++] = Infinity; //#4708 + $aload($1.msgtmp); //#4708 + $k[$j++] = $1.fn4; //#4708 + $k[$j++] = $1.fn4; //#4708 + $1.msgtmp = $a(); //#4708 + $1.ea = !$1.ea; //#4709 + } //#4709 + } //#4709 + $k[$j++] = Infinity; //#4712 + $aload($1.msgtmp); //#4712 + if ($1.c >= 0) { //#4712 + $k[$j++] = $1.c & 127; //#4712 + } else { //#4712 + $k[$j++] = $1.c; //#4712 + } //#4712 + $1.msgtmp = $a(); //#4712 + } //#4712 + $1.msg = $1.msgtmp; //#4714 + $1.msglen = $1.msg.length; //#4715 $1.numsscr = function() { - $1.n = 0; - $1.s = 0; - $1.p = $k[--$j]; - for (;;) { - if ($1.p >= $1.msglen) { - break; - } - var _52 = $get($1.msg, $1.p); - var _54 = $get($1.setc, _52) !== undefined; - $k[$j++] = _52; - if (!_54) { - $j--; - break; - } - var _55 = $k[--$j]; - $k[$j++] = _55; - if (_55 <= -1) { - var _57 = $k[--$j]; - if (_57 == $1.fn1 && $1.s % 2 == 0) { - $1.s = $1.s + 1; - } else { - break; - } - } else { - $j--; - } - $1.n = $1.n + 1; - $1.s = $1.s + 1; - $1.p = $f($1.p + 1); - } - $k[$j++] = $1.n; - $k[$j++] = $1.s; - }; + $1.n = 0; //#4719 + $1.s = 0; //#4719 + $1.p = $k[--$j]; //#4720 + for (;;) { //#4733 + if ($1.p >= $1.msglen) { //#4721 + break; //#4721 + } //#4721 + var _52 = $get($1.msg, $1.p); //#4722 + var _54 = $get($1.setc, _52) !== undefined; //#4723 + $k[$j++] = _52; //#4723 + if (!_54) { //#4723 + $j--; //#4723 + break; //#4723 + } //#4723 + var _55 = $k[--$j]; //#4724 + $k[$j++] = _55; //#4729 + if (_55 <= -1) { //#4728 + var _57 = $k[--$j]; //#4726 + if ((_57 == $1.fn1) && (($1.s % 2) == 0)) { //#4726 + $1.s = $1.s + 1; //#4726 + } else { //#4726 + break; //#4726 + } //#4726 + } else { //#4728 + $j--; //#4728 + } //#4728 + $1.n = $1.n + 1; //#4730 + $1.s = $1.s + 1; //#4731 + $1.p = $f($1.p + 1); //#4732 + } //#4732 + $k[$j++] = $1.n; //#4734 + $k[$j++] = $1.s; //#4734 + }; //#4735 $1.enca = function() { - $put($1.cws, $1.j, $get($1.seta, $k[--$j])); - $1.j = $1.j + 1; - }; + $put($1.cws, $1.j, $get($1.seta, $k[--$j])); //#4739 + $1.j = $1.j + 1; //#4740 + }; //#4741 $1.encb = function() { - $put($1.cws, $1.j, $get($1.setb, $k[--$j])); - $1.j = $1.j + 1; - }; + $put($1.cws, $1.j, $get($1.setb, $k[--$j])); //#4743 + $1.j = $1.j + 1; //#4744 + }; //#4745 $1.encc = function() { - var _5R = $k[--$j]; - $k[$j++] = _5R; - if ($ne($type(_5R), "arraytype")) { - var _5V = $get($1.setc, $k[--$j]); - $k[$j++] = _5V; - } else { - $aload($k[--$j]); - var _5X = $k[--$j]; - var _5Y = $k[--$j]; - $k[$j++] = $f($f(_5X - 48) + $f(_5Y - 48) * 10); - } - $put($1.cws, $1.j, $k[--$j]); - $1.j = $1.j + 1; - }; + var _5R = $k[--$j]; //#4747 + $k[$j++] = _5R; //#4751 + if ($ne($type(_5R), 'arraytype')) { //#4750 + var _5V = $get($1.setc, $k[--$j]); //#4748 + $k[$j++] = _5V; //#4748 + } else { //#4750 + $aload($k[--$j]); //#4750 + var _5X = $k[--$j]; //#4750 + var _5Y = $k[--$j]; //#4750 + $k[$j++] = $f($f(_5X - 48) + ($f(_5Y - 48) * 10)); //#4750 + } //#4750 + $put($1.cws, $1.j, $k[--$j]); //#4752 + $1.j = $1.j + 1; //#4753 + }; //#4754 $1.anotb = function() { - var _5d = $k[--$j]; - var _5f = $get($1.seta, _5d) !== undefined; - var _5h = $get($1.setb, _5d) !== undefined; - $k[$j++] = _5f && !_5h; - }; + var _5d = $k[--$j]; //#4757 + var _5f = $get($1.seta, _5d) !== undefined; //#4757 + var _5h = $get($1.setb, _5d) !== undefined; //#4757 + $k[$j++] = _5f && (!_5h); //#4757 + }; //#4757 $1.bnota = function() { - var _5i = $k[--$j]; - var _5k = $get($1.setb, _5i) !== undefined; - var _5m = $get($1.seta, _5i) !== undefined; - $k[$j++] = _5k && !_5m; - }; - $k[$j++] = Infinity; - for (var _5o = 0, _5p = $1.msg.length; _5o < _5p; _5o++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextanotb = $a(); - $k[$j++] = Infinity; - for (var _5s = 0, _5t = $1.msg.length; _5s < _5t; _5s++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextbnota = $a(); - for (var _5w = $1.msg.length - 1; _5w >= 0; _5w -= 1) { - $1.i = _5w; - $k[$j++] = $get($1.msg, $1.i); - $1.anotb(); - if ($k[--$j]) { - $put($1.nextanotb, $1.i, 0); - } else { - $put($1.nextanotb, $1.i, $f($get($1.nextanotb, $1.i + 1) + 1)); - } - $k[$j++] = $get($1.msg, $1.i); - $1.bnota(); - if ($k[--$j]) { - $put($1.nextbnota, $1.i, 0); - } else { - $put($1.nextbnota, $1.i, $f($get($1.nextbnota, $1.i + 1) + 1)); - } - } + var _5i = $k[--$j]; //#4758 + var _5k = $get($1.setb, _5i) !== undefined; //#4758 + var _5m = $get($1.seta, _5i) !== undefined; //#4758 + $k[$j++] = _5k && (!_5m); //#4758 + }; //#4758 + $k[$j++] = Infinity; //#4761 + for (var _5o = 0, _5p = $1.msg.length; _5o < _5p; _5o++) { //#4761 + $k[$j++] = 0; //#4761 + } //#4761 + $k[$j++] = 9999; //#4761 + $1.nextanotb = $a(); //#4761 + $k[$j++] = Infinity; //#4762 + for (var _5s = 0, _5t = $1.msg.length; _5s < _5t; _5s++) { //#4762 + $k[$j++] = 0; //#4762 + } //#4762 + $k[$j++] = 9999; //#4762 + $1.nextbnota = $a(); //#4762 + for (var _5w = $1.msg.length - 1; _5w >= 0; _5w -= 1) { //#4775 + $1.i = _5w; //#4764 + $k[$j++] = $get($1.msg, $1.i); //#4765 + $1.anotb(); //#4765 + if ($k[--$j]) { //#4768 + $put($1.nextanotb, $1.i, 0); //#4766 + } else { //#4768 + $put($1.nextanotb, $1.i, $f($get($1.nextanotb, $1.i + 1) + 1)); //#4768 + } //#4768 + $k[$j++] = $get($1.msg, $1.i); //#4770 + $1.bnota(); //#4770 + if ($k[--$j]) { //#4773 + $put($1.nextbnota, $1.i, 0); //#4771 + } else { //#4773 + $put($1.nextbnota, $1.i, $f($get($1.nextbnota, $1.i + 1) + 1)); //#4773 + } //#4773 + } //#4773 $1.abeforeb = function() { - var _6J = $k[--$j]; - $k[$j++] = $lt($get($1.nextanotb, _6J), $get($1.nextbnota, _6J)); - }; + var _6J = $k[--$j]; //#4778 + $k[$j++] = $lt($get($1.nextanotb, _6J), $get($1.nextbnota, _6J)); //#4778 + }; //#4778 $1.bbeforea = function() { - var _6O = $k[--$j]; - $k[$j++] = $lt($get($1.nextbnota, _6O), $get($1.nextanotb, _6O)); - }; - $1.cws = $a($1.barcode.length * 2 + 3); - $1.j = 0; - if ($1.msglen > 0) { - $k[$j++] = 0; - $1.numsscr(); - } else { - $k[$j++] = -1; - $k[$j++] = -1; - } - $1.nums = $k[--$j]; - $1.nchars = $k[--$j]; - for (;;) { - if ($1.msglen == 0) { - $k[$j++] = $1.stb; - $1.enca(); - $1.cset = "setb"; - break; - } - if ($1.msglen == 2 && $1.nums == 2) { - $k[$j++] = $1.stc; - $1.enca(); - $1.cset = "setc"; - break; - } - if ($1.nums >= 4) { - $k[$j++] = $1.stc; - $1.enca(); - $1.cset = "setc"; - break; - } - $k[$j++] = 0; - $1.abeforeb(); - if ($k[--$j]) { - $k[$j++] = $1.sta; - $1.enca(); - $1.cset = "seta"; - break; - } - $k[$j++] = $1.stb; - $1.enca(); - $1.cset = "setb"; - break; - } - $1.i = 0; - for (;;) { - if ($1.i == $1.msglen) { - break; - } - $k[$j++] = $1.i; - $1.numsscr(); - $1.nums = $k[--$j]; - $1.nchars = $k[--$j]; - for (;;) { - if (($eq($1.cset, "seta") || $eq($1.cset, "setb")) && $1.nums >= 4 && $get($1.msg, $1.i) != $1.fn1) { - if ($1.nums % 2 == 0) { - $k[$j++] = $1.swc; - if ($eq($1.cset, "seta")) { - $1.enca(); - } else { - $1.encb(); - } - $1.cset = "setc"; - break; - } else { - $k[$j++] = $get($1.msg, $1.i); - if ($eq($1.cset, "seta")) { - $1.enca(); - } else { - $1.encb(); - } - $1.i = $1.i + 1; - $k[$j++] = $1.swc; - if ($eq($1.cset, "seta")) { - $1.enca(); - } else { - $1.encb(); - } - $1.cset = "setc"; - break; - } - } - $k[$j++] = $eq($1.cset, "setb"); - $k[$j++] = $get($1.msg, $1.i); - $1.anotb(); - var _78 = $k[--$j]; - var _79 = $k[--$j]; - if (_79 && _78) { - if ($1.i < $1.msglen - 1) { - $k[$j++] = $1.i + 1; - $1.bbeforea(); - if ($k[--$j]) { - $k[$j++] = $1.sft; - $1.encb(); - $k[$j++] = $get($1.msg, $1.i); - $1.enca(); - $1.i = $1.i + 1; - break; - } - } - $k[$j++] = $1.swa; - $1.encb(); - $1.cset = "seta"; - break; - } - $k[$j++] = $eq($1.cset, "seta"); - $k[$j++] = $get($1.msg, $1.i); - $1.bnota(); - var _7O = $k[--$j]; - var _7P = $k[--$j]; - if (_7P && _7O) { - if ($1.i < $1.msglen - 1) { - $k[$j++] = $1.i + 1; - $1.abeforeb(); - if ($k[--$j]) { - $k[$j++] = $1.sft; - $1.enca(); - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $1.i = $1.i + 1; - break; - } - } - $k[$j++] = $1.swb; - $1.enca(); - $1.cset = "setb"; - break; - } - if ($eq($1.cset, "setc") && $1.nums < 2 && $get($1.msg, $1.i) > -1) { - $k[$j++] = $1.i; - $1.abeforeb(); - if ($k[--$j]) { - $k[$j++] = $1.swa; - $1.encc(); - $1.cset = "seta"; - break; - } - $k[$j++] = $1.swb; - $1.encc(); - $1.cset = "setb"; - break; - } - if ($eq($1.cset, "seta")) { - $k[$j++] = $get($1.msg, $1.i); - $1.enca(); - $1.i = $1.i + 1; - break; - } - if ($eq($1.cset, "setb")) { - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $1.i = $1.i + 1; - break; - } - if ($eq($1.cset, "setc")) { - if ($get($1.msg, $1.i) <= -1) { - $k[$j++] = $get($1.msg, $1.i); - $1.encc(); - $1.i = $1.i + 1; - } else { - $k[$j++] = $geti($1.msg, $1.i, 2); - $1.encc(); - $1.i = $1.i + 2; - } - break; - } - break; - } - } - $1.cws = $geti($1.cws, 0, $1.j); - } - var _89 = $a($1.j + 2); - $puti(_89, 0, $1.cws); - $1.cws = _89; - $1.csum = $get($1.cws, 0); - for (var _8F = 1, _8E = $1.j - 1; _8F <= _8E; _8F += 1) { - $1.i = _8F; - $1.csum = $f($1.csum + $get($1.cws, $1.i) * $1.i); - } - $1.csum = $1.csum % 103; - $put($1.cws, $1.j, $1.csum); - $put($1.cws, $1.j + 1, $get($1.seta, $1.stp)); - $1.encs = $a([ "212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "211214", "211232", "2331112" ]); - $1.sbs = $s($1.cws.length * 6 + 1); - for (var _8Z = 0, _8Y = $1.cws.length - 1; _8Z <= _8Y; _8Z += 1) { - $1.i = _8Z; - $puti($1.sbs, $1.i * 6, $get($1.encs, $get($1.cws, $1.i))); - } - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _8h = $1.sbs; - for (var _8i = 0, _8j = _8h.length; _8i < _8j; _8i++) { - $k[$j++] = $get(_8h, _8i) - 48; - } - var _8l = $a(); - $k[$j++] = Infinity; - for (var _8n = 0, _8o = ~~(($1.sbs.length + 1) / 2); _8n < _8o; _8n++) { - $k[$j++] = $1.height; - } - var _8q = $a(); - $k[$j++] = Infinity; - for (var _8s = 0, _8t = ~~(($1.sbs.length + 1) / 2); _8s < _8t; _8s++) { - $k[$j++] = 0; - } - var _8u = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _8l; - $k[$j++] = "bhs"; - $k[$j++] = _8q; - $k[$j++] = "bbs"; - $k[$j++] = _8u; - $k[$j++] = "txt"; - $k[$j++] = $a([ $a([ $1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ]) ]); - $k[$j++] = "textxalign"; - $k[$j++] = "center"; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _93 = $d(); - $k[$j++] = _93; - if (!$1.dontdraw) { - $0.renlinear(); - } + var _6O = $k[--$j]; //#4779 + $k[$j++] = $lt($get($1.nextbnota, _6O), $get($1.nextanotb, _6O)); //#4779 + }; //#4779 + $1.cws = $a(($1.barcode.length * 2) + 3); //#4781 + $1.j = 0; //#4784 + if ($1.msglen > 0) { //#4785 + $k[$j++] = 0; //#4785 + $1.numsscr(); //#4785 + } else { //#4785 + $k[$j++] = -1; //#4785 + $k[$j++] = -1; //#4785 + } //#4785 + $1.nums = $k[--$j]; //#4785 + $1.nchars = $k[--$j]; //#4785 + for (;;) { //#4810 + if ($1.msglen == 0) { //#4791 + $k[$j++] = $1.stb; //#4788 + $1.enca(); //#4788 + $1.cset = "setb"; //#4789 + break; //#4790 + } //#4790 + if (($1.msglen == 2) && ($1.nums == 2)) { //#4796 + $k[$j++] = $1.stc; //#4793 + $1.enca(); //#4793 + $1.cset = "setc"; //#4794 + break; //#4795 + } //#4795 + if ($1.nums >= 4) { //#4801 + $k[$j++] = $1.stc; //#4798 + $1.enca(); //#4798 + $1.cset = "setc"; //#4799 + break; //#4800 + } //#4800 + $k[$j++] = 0; //#4802 + $1.abeforeb(); //#4802 + if ($k[--$j]) { //#4806 + $k[$j++] = $1.sta; //#4803 + $1.enca(); //#4803 + $1.cset = "seta"; //#4804 + break; //#4805 + } //#4805 + $k[$j++] = $1.stb; //#4807 + $1.enca(); //#4807 + $1.cset = "setb"; //#4808 + break; //#4809 + } //#4809 + $1.i = 0; //#4813 + for (;;) { //#4896 + if ($1.i == $1.msglen) { //#4814 + break; //#4814 + } //#4814 + $k[$j++] = $1.i; //#4816 + $1.numsscr(); //#4816 + $1.nums = $k[--$j]; //#4816 + $1.nchars = $k[--$j]; //#4816 + for (;;) { //#4894 + if ((($eq($1.cset, "seta") || $eq($1.cset, "setb")) && ($1.nums >= 4)) && ($get($1.msg, $1.i) != $1.fn1)) { //#4833 + if (($1.nums % 2) == 0) { //#4831 + $k[$j++] = $1.swc; //#4823 + if ($eq($1.cset, "seta")) { //#4823 + $1.enca(); //#4823 + } else { //#4823 + $1.encb(); //#4823 + } //#4823 + $1.cset = "setc"; //#4824 + break; //#4825 + } else { //#4831 + $k[$j++] = $get($1.msg, $1.i); //#4827 + if ($eq($1.cset, "seta")) { //#4827 + $1.enca(); //#4827 + } else { //#4827 + $1.encb(); //#4827 + } //#4827 + $1.i = $1.i + 1; //#4828 + $k[$j++] = $1.swc; //#4829 + if ($eq($1.cset, "seta")) { //#4829 + $1.enca(); //#4829 + } else { //#4829 + $1.encb(); //#4829 + } //#4829 + $1.cset = "setc"; //#4830 + break; //#4831 + } //#4831 + } //#4831 + $k[$j++] = $eq($1.cset, "setb"); //#4834 + $k[$j++] = $get($1.msg, $1.i); //#4834 + $1.anotb(); //#4834 + var _78 = $k[--$j]; //#4834 + var _79 = $k[--$j]; //#4834 + if ((_79 && _78)) { //#4846 + if ($1.i < ($1.msglen - 1)) { //#4842 + $k[$j++] = $1.i + 1; //#4836 + $1.bbeforea(); //#4836 + if ($k[--$j]) { //#4841 + $k[$j++] = $1.sft; //#4837 + $1.encb(); //#4837 + $k[$j++] = $get($1.msg, $1.i); //#4838 + $1.enca(); //#4838 + $1.i = $1.i + 1; //#4839 + break; //#4840 + } //#4840 + } //#4840 + $k[$j++] = $1.swa; //#4843 + $1.encb(); //#4843 + $1.cset = "seta"; //#4844 + break; //#4845 + } //#4845 + $k[$j++] = $eq($1.cset, "seta"); //#4847 + $k[$j++] = $get($1.msg, $1.i); //#4847 + $1.bnota(); //#4847 + var _7O = $k[--$j]; //#4847 + var _7P = $k[--$j]; //#4847 + if ((_7P && _7O)) { //#4859 + if ($1.i < ($1.msglen - 1)) { //#4855 + $k[$j++] = $1.i + 1; //#4849 + $1.abeforeb(); //#4849 + if ($k[--$j]) { //#4854 + $k[$j++] = $1.sft; //#4850 + $1.enca(); //#4850 + $k[$j++] = $get($1.msg, $1.i); //#4851 + $1.encb(); //#4851 + $1.i = $1.i + 1; //#4852 + break; //#4853 + } //#4853 + } //#4853 + $k[$j++] = $1.swb; //#4856 + $1.enca(); //#4856 + $1.cset = "setb"; //#4857 + break; //#4858 + } //#4858 + if (($eq($1.cset, "setc") && ($1.nums < 2)) && ($get($1.msg, $1.i) > -1)) { //#4869 + $k[$j++] = $1.i; //#4861 + $1.abeforeb(); //#4861 + if ($k[--$j]) { //#4865 + $k[$j++] = $1.swa; //#4862 + $1.encc(); //#4862 + $1.cset = "seta"; //#4863 + break; //#4864 + } //#4864 + $k[$j++] = $1.swb; //#4866 + $1.encc(); //#4866 + $1.cset = "setb"; //#4867 + break; //#4868 + } //#4868 + if ($eq($1.cset, "seta")) { //#4876 + $k[$j++] = $get($1.msg, $1.i); //#4873 + $1.enca(); //#4873 + $1.i = $1.i + 1; //#4874 + break; //#4875 + } //#4875 + if ($eq($1.cset, "setb")) { //#4881 + $k[$j++] = $get($1.msg, $1.i); //#4878 + $1.encb(); //#4878 + $1.i = $1.i + 1; //#4879 + break; //#4880 + } //#4880 + if ($eq($1.cset, "setc")) { //#4891 + if ($get($1.msg, $1.i) <= -1) { //#4888 + $k[$j++] = $get($1.msg, $1.i); //#4884 + $1.encc(); //#4884 + $1.i = $1.i + 1; //#4885 + } else { //#4888 + $k[$j++] = $geti($1.msg, $1.i, 2); //#4887 + $1.encc(); //#4887 + $1.i = $1.i + 2; //#4888 + } //#4888 + break; //#4890 + } //#4890 + break; //#4893 + } //#4893 + } //#4893 + $1.cws = $geti($1.cws, 0, $1.j); //#4897 + } //#4897 + var _89 = $a($1.j + 2); //#4901 + $puti(_89, 0, $1.cws); //#4901 + $1.cws = _89; //#4901 + $1.csum = $get($1.cws, 0); //#4902 + for (var _8F = 1, _8E = $1.j - 1; _8F <= _8E; _8F += 1) { //#4906 + $1.i = _8F; //#4904 + $1.csum = $f($1.csum + ($get($1.cws, $1.i) * $1.i)); //#4905 + } //#4905 + $1.csum = $1.csum % 103; //#4907 + $put($1.cws, $1.j, $1.csum); //#4908 + $put($1.cws, $1.j + 1, $get($1.seta, $1.stp)); //#4909 + $1.encs = $a(["212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "211214", "211232", "2331112"]); //#4929 + $1.sbs = $s(($1.cws.length * 6) + 1); //#4932 + for (var _8Z = 0, _8Y = $1.cws.length - 1; _8Z <= _8Y; _8Z += 1) { //#4936 + $1.i = _8Z; //#4934 + $puti($1.sbs, $1.i * 6, $get($1.encs, $get($1.cws, $1.i))); //#4935 + } //#4935 + $k[$j++] = Infinity; //#4946 + $k[$j++] = Infinity; //#4941 + var _8h = $1.sbs; //#4941 + for (var _8i = 0, _8j = _8h.length; _8i < _8j; _8i++) { //#4941 + $k[$j++] = $get(_8h, _8i) - 48; //#4941 + } //#4941 + var _8l = $a(); //#4941 + $k[$j++] = Infinity; //#4942 + for (var _8n = 0, _8o = ~~(($1.sbs.length + 1) / 2); _8n < _8o; _8n++) { //#4942 + $k[$j++] = $1.height; //#4942 + } //#4942 + var _8q = $a(); //#4942 + $k[$j++] = Infinity; //#4943 + for (var _8s = 0, _8t = ~~(($1.sbs.length + 1) / 2); _8s < _8t; _8s++) { //#4943 + $k[$j++] = 0; //#4943 + } //#4943 + var _8u = $a(); //#4943 + $k[$j++] = 'ren'; //#4946 + $k[$j++] = $0.renlinear; //#4946 + $k[$j++] = 'sbs'; //#4946 + $k[$j++] = _8l; //#4946 + $k[$j++] = 'bhs'; //#4946 + $k[$j++] = _8q; //#4946 + $k[$j++] = 'bbs'; //#4946 + $k[$j++] = _8u; //#4946 + $k[$j++] = 'txt'; //#4946 + $k[$j++] = $a([$a([$1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])]); //#4946 + $k[$j++] = 'textxalign'; //#4946 + $k[$j++] = "center"; //#4946 + $k[$j++] = 'opt'; //#4946 + $k[$j++] = $1.options; //#4946 + var _93 = $d(); //#4946 + $k[$j++] = _93; //#4949 + if (!$1.dontdraw) { //#4949 + $0.renlinear(); //#4949 + } //#4949 }; - $0["gs1-128"] = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = .5; - $1.linkagea = false; - $1.linkagec = false; - $1.parse = false; - $1.dontlint = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.text = $1.barcode; + $0['gs1-128'] = function() { + var $1 = {}; //#4981 + $1.options = $k[--$j]; //#4983 + $1.barcode = $k[--$j]; //#4984 + $1.dontdraw = false; //#4986 + $1.includetext = false; //#4987 + $1.textfont = "OCR-B"; //#4988 + $1.textsize = 10; //#4989 + $1.textxoffset = 0; //#4990 + $1.textyoffset = -8; //#4991 + $1.height = 0.5; //#4992 + $1.linkagea = false; //#4993 + $1.linkagec = false; //#4994 + $1.parse = false; //#4995 + $1.dontlint = false; //#4996 + $forall($1.options, function() { //#5007 + var _3 = $k[--$j]; //#5007 + $1[$k[--$j]] = _3; //#5007 + }); //#5007 + $1.textfont = "" + $1.textfont; //#5009 + $1.textsize = +$1.textsize; //#5010 + $1.textxoffset = +$1.textxoffset; //#5011 + $1.textyoffset = +$1.textyoffset; //#5012 + $1.height = +$1.height; //#5013 + $1.text = $1.barcode; //#5015 $1.expand = function() { - var _C = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _C; - $k[$j++] = $1.fncvals; - $0.parseinput(); - }; - $1.ais = $a([]); - $1.vals = $a([]); - var _G = $1.barcode; - $k[$j++] = $geti(_G, 1, _G.length - 1); - for (;;) { - var _I = $k[--$j]; - $k[$j++] = _I; - if ($eq(_I, "")) { - break; - } - $search($k[--$j], ")"); - $j--; - var _K = $k[--$j]; - var _L = $k[--$j]; - $k[$j++] = _K; - $k[$j++] = _L; - $j--; - var _M = $k[--$j]; - var _N = $k[--$j]; - $k[$j++] = _M; - $search(_N, "("); - if ($k[--$j]) { - var _P = $k[--$j]; - var _Q = $k[--$j]; - $k[$j++] = _P; - $k[$j++] = _Q; - $j--; - var _R = $k[--$j]; - var _S = $k[--$j]; - var _T = $k[--$j]; - $k[$j++] = _S; - $k[$j++] = _T; - $k[$j++] = _R; - } else { - var _U = $k[--$j]; - var _V = $k[--$j]; - $k[$j++] = ""; - $k[$j++] = _V; - $k[$j++] = _U; - } - $k[$j++] = Infinity; - $aload($1.ais); - var _Y = $k[$j - 1 - ($counttomark() + 2)]; - $k[$j++] = _Y; - $1.ais = $a(); - $k[$j++] = Infinity; - $aload($1.vals); - var _c = $k[$j - 1 - ($counttomark() + 1)]; - $k[$j++] = _c; - $1.expand(); - $1.vals = $a(); - $j -= 2; - } - $j--; - if (!$1.dontlint) { - $k[$j++] = $1.ais; - $k[$j++] = $1.vals; - $0.gs1lint(); - $j--; - } - $1.aifixed = new Map(); - $k[$j++] = Infinity; - for (var _h = 0; _h <= 4; _h += 1) { - $k[$j++] = _h; - } - var _i = $a(); - for (var _j = 0, _k = _i.length; _j < _k; _j++) { - var _n = $strcpy($s(2), "00"); - $put(_n, 1, $f($get(_i, _j) + 48)); - $put($1.aifixed, _n, _n); - } - $k[$j++] = Infinity; - for (var _p = 11; _p <= 20; _p += 1) { - $k[$j++] = _p; - } - $k[$j++] = 23; - for (var _q = 31; _q <= 36; _q += 1) { - $k[$j++] = _q; - } - $k[$j++] = 41; - var _r = $a(); - for (var _s = 0, _t = _r.length; _s < _t; _s++) { - var _w = $cvrs($s(2), $get(_r, _s), 10); - $put($1.aifixed, _w, _w); - } - $1.fnc1 = -1; - $1.c128 = $a([ $1.fnc1 ]); - for (var _12 = 0, _11 = $1.ais.length - 1; _12 <= _11; _12 += 1) { - $1.i = _12; - $1.ai = $get($1.ais, $1.i); - $1.val = $get($1.vals, $1.i); - var _1C = $a($1.c128.length + $1.ai.length + $1.val.length); - $puti(_1C, 0, $1.c128); - $k[$j++] = _1C; - $k[$j++] = _1C; - $k[$j++] = $1.c128.length; - $k[$j++] = Infinity; - var _1H = $1.ai; - $forall(_1H); - var _1I = $a(); - var _1J = $k[--$j]; - $puti($k[--$j], _1J, _1I); - var _1L = $k[--$j]; - $k[$j++] = _1L; - $k[$j++] = _1L; - $k[$j++] = $1.c128.length + $1.ai.length; - $k[$j++] = Infinity; - var _1Q = $1.val; - $forall(_1Q); - var _1R = $a(); - var _1S = $k[--$j]; - $puti($k[--$j], _1S, _1R); - $1.c128 = $k[--$j]; - var _1a = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; - if ($1.i != $1.ais.length - 1 && !_1a) { - var _1c = $a($1.c128.length + 1); - $puti(_1c, 0, $1.c128); - $put(_1c, $1.c128.length, $1.fnc1); - $1.c128 = _1c; - } - } - $1.barcode = $s(($1.c128.length + 1) * 5); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.c128.length) { - break; - } - var _1m = $get($1.c128, $1.i); - $k[$j++] = _1m; - if (_1m == $1.fnc1) { - $j--; - $puti($1.barcode, $1.j, "^FNC1"); - $1.j = $1.j + 4; - } else { - $put($1.barcode, $1.j, $k[--$j]); - } - $1.i = $1.i + 1; - $1.j = $1.j + 1; - } - if ($1.linkagea || $1.linkagec) { - $k[$j++] = $1.barcode; - $k[$j++] = $1.j; - if ($1.linkagea) { - $k[$j++] = "^LNKA"; - } else { - $k[$j++] = "^LNKC"; - } - var _21 = $k[--$j]; - var _22 = $k[--$j]; - $puti($k[--$j], _22, _21); - $1.j = $1.j + 5; - } - $1.barcode = $geti($1.barcode, 0, $1.j); - delete $1.options["parse"]; - $put($1.options, "height", $1.height); - $put($1.options, "dontdraw", true); - $put($1.options, "parsefnc", true); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.code128(); - var _2F = $k[--$j]; - $1[$k[--$j]] = _2F; - $put($1.args, "txt", $a([ $a([ $1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ]) ])); - $put($1.args, "textxalign", "center"); - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var _C = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#5022 + $1.fncvals = _C; //#5023 + $k[$j++] = $1.fncvals; //#5024 + $0.parseinput(); //#5024 + }; //#5025 + $1.ais = $a([]); //#5028 + $1.vals = $a([]); //#5029 + var _G = $1.barcode; //#5030 + $k[$j++] = $geti(_G, 1, _G.length - 1); //#5043 + for (;;) { //#5043 + var _I = $k[--$j]; //#5032 + $k[$j++] = _I; //#5032 + if ($eq(_I, "")) { //#5032 + break; //#5032 + } //#5032 + $search($k[--$j], ")"); //#5033 + $j--; //#5033 + var _K = $k[--$j]; //#5034 + var _L = $k[--$j]; //#5034 + $k[$j++] = _K; //#5034 + $k[$j++] = _L; //#5034 + $j--; //#5034 + var _M = $k[--$j]; //#5035 + var _N = $k[--$j]; //#5035 + $k[$j++] = _M; //#5035 + $search(_N, "("); //#5035 + if ($k[--$j]) { //#5038 + var _P = $k[--$j]; //#5036 + var _Q = $k[--$j]; //#5036 + $k[$j++] = _P; //#5036 + $k[$j++] = _Q; //#5036 + $j--; //#5036 + var _R = $k[--$j]; //#5036 + var _S = $k[--$j]; //#5036 + var _T = $k[--$j]; //#5036 + $k[$j++] = _S; //#5036 + $k[$j++] = _T; //#5036 + $k[$j++] = _R; //#5036 + } else { //#5038 + var _U = $k[--$j]; //#5038 + var _V = $k[--$j]; //#5038 + $k[$j++] = ""; //#5038 + $k[$j++] = _V; //#5038 + $k[$j++] = _U; //#5038 + } //#5038 + $k[$j++] = Infinity; //#5040 + $aload($1.ais); //#5040 + var _Y = $k[$j - 1 - ($counttomark() + 2)]; //#5040 + $k[$j++] = _Y; //#5040 + $1.ais = $a(); //#5040 + $k[$j++] = Infinity; //#5041 + $aload($1.vals); //#5041 + var _c = $k[$j - 1 - ($counttomark() + 1)]; //#5041 + $k[$j++] = _c; //#5041 + $1.expand(); //#5041 + $1.vals = $a(); //#5041 + $j -= 2; //#5042 + } //#5042 + $j--; //#5044 + if (!$1.dontlint) { //#5046 + $k[$j++] = $1.ais; //#5046 + $k[$j++] = $1.vals; //#5046 + $0.gs1lint(); //#5046 + $j--; //#5046 + } //#5046 + $1.aifixed = new Map; //#5051 + $k[$j++] = Infinity; //#5053 + for (var _h = 0; _h <= 4; _h += 1) { //#5053 + $k[$j++] = _h; //#5053 + } //#5053 + var _i = $a(); //#5053 + for (var _j = 0, _k = _i.length; _j < _k; _j++) { //#5056 + var _n = $strcpy($s(2), "00"); //#5055 + $put(_n, 1, $f($get(_i, _j) + 48)); //#5055 + $put($1.aifixed, _n, _n); //#5055 + } //#5055 + $k[$j++] = Infinity; //#5061 + for (var _p = 11; _p <= 20; _p += 1) { //#5058 + $k[$j++] = _p; //#5058 + } //#5058 + $k[$j++] = 23; //#5060 + for (var _q = 31; _q <= 36; _q += 1) { //#5060 + $k[$j++] = _q; //#5060 + } //#5060 + $k[$j++] = 41; //#5061 + var _r = $a(); //#5061 + for (var _s = 0, _t = _r.length; _s < _t; _s++) { //#5064 + var _w = $cvrs($s(2), $get(_r, _s), 10); //#5063 + $put($1.aifixed, _w, _w); //#5063 + } //#5063 + $1.fnc1 = -1; //#5067 + $1.c128 = $a([$1.fnc1]); //#5068 + for (var _12 = 0, _11 = $1.ais.length - 1; _12 <= _11; _12 += 1) { //#5084 + $1.i = _12; //#5070 + $1.ai = $get($1.ais, $1.i); //#5071 + $1.val = $get($1.vals, $1.i); //#5072 + var _1C = $a(($1.c128.length + $1.ai.length) + $1.val.length); //#5073 + $puti(_1C, 0, $1.c128); //#5074 + $k[$j++] = _1C; //#5075 + $k[$j++] = _1C; //#5075 + $k[$j++] = $1.c128.length; //#5075 + $k[$j++] = $1.ai; //#5075 + $k[$j++] = Infinity; //#5075 + var _1G = $k[--$j]; //#5075 + var _1H = $k[--$j]; //#5075 + $k[$j++] = _1G; //#5075 + $forall(_1H); //#5075 + var _1I = $a(); //#5075 + var _1J = $k[--$j]; //#5075 + $puti($k[--$j], _1J, _1I); //#5075 + var _1L = $k[--$j]; //#5076 + $k[$j++] = _1L; //#5076 + $k[$j++] = _1L; //#5076 + $k[$j++] = $1.c128.length + $1.ai.length; //#5076 + $k[$j++] = $1.val; //#5076 + $k[$j++] = Infinity; //#5076 + var _1P = $k[--$j]; //#5076 + var _1Q = $k[--$j]; //#5076 + $k[$j++] = _1P; //#5076 + $forall(_1Q); //#5076 + var _1R = $a(); //#5076 + var _1S = $k[--$j]; //#5076 + $puti($k[--$j], _1S, _1R); //#5076 + $1.c128 = $k[--$j]; //#5077 + var _1a = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; //#5078 + if (($1.i != ($1.ais.length - 1)) && (!_1a)) { //#5083 + var _1c = $a($1.c128.length + 1); //#5079 + $puti(_1c, 0, $1.c128); //#5080 + $put(_1c, $1.c128.length, $1.fnc1); //#5081 + $1.c128 = _1c; //#5082 + } //#5082 + } //#5082 + $1.barcode = $s(($1.c128.length + 1) * 5); //#5087 + $1.i = 0; //#5088 + $1.j = 0; //#5088 + for (;;) { //#5098 + if ($1.i == $1.c128.length) { //#5089 + break; //#5089 + } //#5089 + var _1m = $get($1.c128, $1.i); //#5090 + $k[$j++] = _1m; //#5095 + if (_1m == $1.fnc1) { //#5094 + $j--; //#5091 + $puti($1.barcode, $1.j, "^FNC1"); //#5091 + $1.j = $1.j + 4; //#5092 + } else { //#5094 + $put($1.barcode, $1.j, $k[--$j]); //#5094 + } //#5094 + $1.i = $1.i + 1; //#5096 + $1.j = $1.j + 1; //#5097 + } //#5097 + if ($1.linkagea || $1.linkagec) { //#5102 + $k[$j++] = $1.barcode; //#5100 + $k[$j++] = $1.j; //#5100 + if ($1.linkagea) { //#5100 + $k[$j++] = "^LNKA"; //#5100 + } else { //#5100 + $k[$j++] = "^LNKC"; //#5100 + } //#5100 + var _21 = $k[--$j]; //#5100 + var _22 = $k[--$j]; //#5100 + $puti($k[--$j], _22, _21); //#5100 + $1.j = $1.j + 5; //#5101 + } //#5101 + $1.barcode = $geti($1.barcode, 0, $1.j); //#5103 + delete $1.options["parse"]; //#5106 + $put($1.options, "height", $1.height); //#5107 + $put($1.options, "dontdraw", true); //#5108 + $put($1.options, "parsefnc", true); //#5109 + $k[$j++] = 'args'; //#5110 + $k[$j++] = $1.barcode; //#5110 + $k[$j++] = $1.options; //#5110 + $0.code128(); //#5110 + var _2F = $k[--$j]; //#5110 + $1[$k[--$j]] = _2F; //#5110 + $put($1.args, "txt", $a([$a([$1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])])); //#5112 + $put($1.args, "textxalign", "center"); //#5113 + $put($1.args, "opt", $1.options); //#5114 + $k[$j++] = $1.args; //#5117 + if (!$1.dontdraw) { //#5117 + $0.renlinear(); //#5117 + } //#5117 }; $0.ean14 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.text = $1.barcode; - var _B = $1.barcode; - $k[$j++] = $s(_B.length); - $k[$j++] = 0; - $forall(_B, function() { - var _D = $k[--$j]; - $k[$j++] = _D; - if (_D != 32) { - var _E = $k[--$j]; - var _F = $k[--$j]; - var _G = $k[--$j]; - $put(_G, _F, _E); - $k[$j++] = _G; - $k[$j++] = $f(_F + 1); - } else { - $j--; - } - }); - var _H = $k[--$j]; - $1.barcode = $geti($k[--$j], 0, _H); - $1.hasspace = $1.text.length != $1.barcode.length; - if ($ne($geti($1.barcode, 0, 4), "(01)")) { - $k[$j++] = "bwipp.ean14badAI"; - $k[$j++] = "GS1-14 must begin with (01) application identifier"; - $0.raiseerror(); - } - if ($1.barcode.length != 17 && $1.barcode.length != 18) { - $k[$j++] = "bwipp.ean14badLength"; - $k[$j++] = "GS1-14 must be 13 or 14 digits"; - $0.raiseerror(); - } - var _S = $geti($1.barcode, 4, $1.barcode.length - 4); - for (var _T = 0, _U = _S.length; _T < _U; _T++) { - var _V = $get(_S, _T); - if (_V < 48 || _V > 57) { - $k[$j++] = "bwipp.ean14badCharacter"; - $k[$j++] = "GS1-14 must contain only digits"; - $0.raiseerror(); - } - } - $1.checksum = 0; - for (var _W = 0; _W <= 12; _W += 1) { - $1.i = _W; - $k[$j++] = "checksum"; - $k[$j++] = $1.checksum; - $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); - if ($1.i % 2 == 0) { - var _c = $k[--$j]; - $k[$j++] = _c * 3; - } - var _d = $k[--$j]; - var _e = $k[--$j]; - $1[$k[--$j]] = $f(_e + _d); - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 18) { - if ($get($1.barcode, 17) != $1.checksum + 48) { - $k[$j++] = "bwipp.ean14badCheckDigit"; - $k[$j++] = "Incorrect GS1-14 check digit provided"; - $0.raiseerror(); - } - } else { - var _l = $s(18); - $puti(_l, 0, $1.barcode); - $put(_l, 17, $1.checksum + 48); - $1.barcode = _l; - var _q = $1.hasspace ? 2 : 1; - var _r = $s($1.text.length + _q); - $puti(_r, _r.length - 2, " "); - $put(_r, _r.length - 1, $1.checksum + 48); - $puti(_r, 0, $1.text); - $1.text = _r; - } - $1.gtin = $geti($1.barcode, 4, 14); - $1.barcode = $s(21); - $puti($1.barcode, 0, "^FNC101"); - $puti($1.barcode, 7, $1.gtin); - $put($1.options, "dontdraw", true); - $put($1.options, "parsefnc", true); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.code128(); - var _14 = $k[--$j]; - $1[$k[--$j]] = _14; - $put($1.args, "txt", $a([ $a([ $1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ]) ])); - $put($1.args, "textxalign", "center"); - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#5147 + $1.options = $k[--$j]; //#5149 + $1.barcode = $k[--$j]; //#5150 + $1.dontdraw = false; //#5152 + $1.includetext = false; //#5153 + $1.textfont = "OCR-B"; //#5154 + $1.textsize = 10; //#5155 + $1.textxoffset = 0; //#5156 + $1.textyoffset = -8; //#5157 + $1.height = 1; //#5158 + $forall($1.options, function() { //#5169 + var _3 = $k[--$j]; //#5169 + $1[$k[--$j]] = _3; //#5169 + }); //#5169 + $1.textfont = "" + $1.textfont; //#5171 + $1.textsize = +$1.textsize; //#5172 + $1.textxoffset = +$1.textxoffset; //#5173 + $1.textyoffset = +$1.textyoffset; //#5174 + $1.height = +$1.height; //#5175 + $1.text = $1.barcode; //#5178 + var _B = $1.barcode; //#5179 + $k[$j++] = $s(_B.length); //#5180 + $k[$j++] = 0; //#5180 + $forall(_B, function() { //#5180 + var _D = $k[--$j]; //#5180 + $k[$j++] = _D; //#5180 + if (_D != 32) { //#5180 + var _E = $k[--$j]; //#5180 + var _F = $k[--$j]; //#5180 + var _G = $k[--$j]; //#5180 + $put(_G, _F, _E); //#5180 + $k[$j++] = _G; //#5180 + $k[$j++] = $f(_F + 1); //#5180 + } else { //#5180 + $j--; //#5180 + } //#5180 + }); //#5180 + var _H = $k[--$j]; //#5181 + $1.barcode = $geti($k[--$j], 0, _H); //#5181 + $1.hasspace = $1.text.length != $1.barcode.length; //#5182 + if ($ne($geti($1.barcode, 0, 4), "(01)")) { //#5187 + $k[$j++] = 'bwipp.ean14badAI'; //#5186 + $k[$j++] = "GS1-14 must begin with (01) application identifier"; //#5186 + $0.raiseerror(); //#5186 + } //#5186 + if (($1.barcode.length != 17) && ($1.barcode.length != 18)) { //#5190 + $k[$j++] = 'bwipp.ean14badLength'; //#5189 + $k[$j++] = "GS1-14 must be 13 or 14 digits"; //#5189 + $0.raiseerror(); //#5189 + } //#5189 + var _S = $geti($1.barcode, 4, $1.barcode.length - 4); //#5191 + for (var _T = 0, _U = _S.length; _T < _U; _T++) { //#5195 + var _V = $get(_S, _T); //#5195 + if ((_V < 48) || (_V > 57)) { //#5194 + $k[$j++] = 'bwipp.ean14badCharacter'; //#5193 + $k[$j++] = "GS1-14 must contain only digits"; //#5193 + $0.raiseerror(); //#5193 + } //#5193 + } //#5193 + $1.checksum = 0; //#5198 + for (var _W = 0; _W <= 12; _W += 1) { //#5202 + $1.i = _W; //#5200 + $k[$j++] = 'checksum'; //#5201 + $k[$j++] = $1.checksum; //#5201 + $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); //#5201 + if (($1.i % 2) == 0) { //#5201 + var _c = $k[--$j]; //#5201 + $k[$j++] = _c * 3; //#5201 + } //#5201 + var _d = $k[--$j]; //#5201 + var _e = $k[--$j]; //#5201 + $1[$k[--$j]] = $f(_e + _d); //#5201 + } //#5201 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#5203 + if ($1.barcode.length == 18) { //#5217 + if ($get($1.barcode, 17) != ($1.checksum + 48)) { //#5207 + $k[$j++] = 'bwipp.ean14badCheckDigit'; //#5206 + $k[$j++] = "Incorrect GS1-14 check digit provided"; //#5206 + $0.raiseerror(); //#5206 + } //#5206 + } else { //#5217 + var _l = $s(18); //#5209 + $puti(_l, 0, $1.barcode); //#5210 + $put(_l, 17, $1.checksum + 48); //#5211 + $1.barcode = _l; //#5212 + var _q = $1.hasspace ? 2 : 1; //#5213 + var _r = $s($1.text.length + _q); //#5213 + $puti(_r, _r.length - 2, " "); //#5214 + $put(_r, _r.length - 1, $1.checksum + 48); //#5215 + $puti(_r, 0, $1.text); //#5216 + $1.text = _r; //#5217 + } //#5217 + $1.gtin = $geti($1.barcode, 4, 14); //#5219 + $1.barcode = $s(21); //#5222 + $puti($1.barcode, 0, "^FNC101"); //#5223 + $puti($1.barcode, 7, $1.gtin); //#5224 + $put($1.options, "dontdraw", true); //#5227 + $put($1.options, "parsefnc", true); //#5228 + $k[$j++] = 'args'; //#5229 + $k[$j++] = $1.barcode; //#5229 + $k[$j++] = $1.options; //#5229 + $0.code128(); //#5229 + var _14 = $k[--$j]; //#5229 + $1[$k[--$j]] = _14; //#5229 + $put($1.args, "txt", $a([$a([$1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])])); //#5231 + $put($1.args, "textxalign", "center"); //#5232 + $put($1.args, "opt", $1.options); //#5233 + $k[$j++] = $1.args; //#5236 + if (!$1.dontdraw) { //#5236 + $0.renlinear(); //#5236 + } //#5236 }; $0.sscc18 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.text = $1.barcode; - var _B = $1.barcode; - $k[$j++] = $s(_B.length); - $k[$j++] = 0; - $forall(_B, function() { - var _D = $k[--$j]; - $k[$j++] = _D; - if (_D != 32) { - var _E = $k[--$j]; - var _F = $k[--$j]; - var _G = $k[--$j]; - $put(_G, _F, _E); - $k[$j++] = _G; - $k[$j++] = $f(_F + 1); - } else { - $j--; - } - }); - var _H = $k[--$j]; - $1.barcode = $geti($k[--$j], 0, _H); - $1.hasspace = $1.text.length != $1.barcode.length; - if ($ne($geti($1.barcode, 0, 4), "(00)")) { - $k[$j++] = "bwipp.sscc18badAI"; - $k[$j++] = "SSCC-18 must begin with (00) application identifier"; - $0.raiseerror(); - } - if ($1.barcode.length != 21 && $1.barcode.length != 22) { - $k[$j++] = "bwipp.sscc18badLength"; - $k[$j++] = "SSCC-18 must be 17 or 18 digits"; - $0.raiseerror(); - } - var _S = $geti($1.barcode, 4, $1.barcode.length - 4); - for (var _T = 0, _U = _S.length; _T < _U; _T++) { - var _V = $get(_S, _T); - if (_V < 48 || _V > 57) { - $k[$j++] = "bwipp.sscc18badCharacter"; - $k[$j++] = "SSCC-18 must contain only digits"; - $0.raiseerror(); - } - } - $1.checksum = 0; - for (var _W = 0; _W <= 16; _W += 1) { - $1.i = _W; - $k[$j++] = "checksum"; - $k[$j++] = $1.checksum; - $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); - if ($1.i % 2 == 0) { - var _c = $k[--$j]; - $k[$j++] = _c * 3; - } - var _d = $k[--$j]; - var _e = $k[--$j]; - $1[$k[--$j]] = $f(_e + _d); - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 22) { - if ($get($1.barcode, 21) != $1.checksum + 48) { - $k[$j++] = "bwipp.sscc18badCheckDigit"; - $k[$j++] = "Incorrect SSCC-18 check digit provided"; - $0.raiseerror(); - } - } else { - var _l = $s(22); - $puti(_l, 0, $1.barcode); - $put(_l, 21, $1.checksum + 48); - $1.barcode = _l; - var _q = $1.hasspace ? 2 : 1; - var _r = $s($1.text.length + _q); - $puti(_r, _r.length - 2, " "); - $put(_r, _r.length - 1, $1.checksum + 48); - $puti(_r, 0, $1.text); - $1.text = _r; - } - $1.sscc = $geti($1.barcode, 4, 18); - $1.barcode = $s(25); - $puti($1.barcode, 0, "^FNC100"); - $puti($1.barcode, 7, $1.sscc); - $put($1.options, "dontdraw", true); - $put($1.options, "parsefnc", true); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.code128(); - var _14 = $k[--$j]; - $1[$k[--$j]] = _14; - $put($1.args, "txt", $a([ $a([ $1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ]) ])); - $put($1.args, "textxalign", "center"); - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#5266 + $1.options = $k[--$j]; //#5268 + $1.barcode = $k[--$j]; //#5269 + $1.dontdraw = false; //#5271 + $1.includetext = false; //#5272 + $1.textfont = "OCR-B"; //#5273 + $1.textsize = 10; //#5274 + $1.textxoffset = 0; //#5275 + $1.textyoffset = -8; //#5276 + $1.height = 1; //#5277 + $forall($1.options, function() { //#5288 + var _3 = $k[--$j]; //#5288 + $1[$k[--$j]] = _3; //#5288 + }); //#5288 + $1.textfont = "" + $1.textfont; //#5290 + $1.textsize = +$1.textsize; //#5291 + $1.textxoffset = +$1.textxoffset; //#5292 + $1.textyoffset = +$1.textyoffset; //#5293 + $1.height = +$1.height; //#5294 + $1.text = $1.barcode; //#5297 + var _B = $1.barcode; //#5298 + $k[$j++] = $s(_B.length); //#5299 + $k[$j++] = 0; //#5299 + $forall(_B, function() { //#5299 + var _D = $k[--$j]; //#5299 + $k[$j++] = _D; //#5299 + if (_D != 32) { //#5299 + var _E = $k[--$j]; //#5299 + var _F = $k[--$j]; //#5299 + var _G = $k[--$j]; //#5299 + $put(_G, _F, _E); //#5299 + $k[$j++] = _G; //#5299 + $k[$j++] = $f(_F + 1); //#5299 + } else { //#5299 + $j--; //#5299 + } //#5299 + }); //#5299 + var _H = $k[--$j]; //#5300 + $1.barcode = $geti($k[--$j], 0, _H); //#5300 + $1.hasspace = $1.text.length != $1.barcode.length; //#5301 + if ($ne($geti($1.barcode, 0, 4), "(00)")) { //#5306 + $k[$j++] = 'bwipp.sscc18badAI'; //#5305 + $k[$j++] = "SSCC-18 must begin with (00) application identifier"; //#5305 + $0.raiseerror(); //#5305 + } //#5305 + if (($1.barcode.length != 21) && ($1.barcode.length != 22)) { //#5309 + $k[$j++] = 'bwipp.sscc18badLength'; //#5308 + $k[$j++] = "SSCC-18 must be 17 or 18 digits"; //#5308 + $0.raiseerror(); //#5308 + } //#5308 + var _S = $geti($1.barcode, 4, $1.barcode.length - 4); //#5310 + for (var _T = 0, _U = _S.length; _T < _U; _T++) { //#5314 + var _V = $get(_S, _T); //#5314 + if ((_V < 48) || (_V > 57)) { //#5313 + $k[$j++] = 'bwipp.sscc18badCharacter'; //#5312 + $k[$j++] = "SSCC-18 must contain only digits"; //#5312 + $0.raiseerror(); //#5312 + } //#5312 + } //#5312 + $1.checksum = 0; //#5317 + for (var _W = 0; _W <= 16; _W += 1) { //#5321 + $1.i = _W; //#5319 + $k[$j++] = 'checksum'; //#5320 + $k[$j++] = $1.checksum; //#5320 + $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); //#5320 + if (($1.i % 2) == 0) { //#5320 + var _c = $k[--$j]; //#5320 + $k[$j++] = _c * 3; //#5320 + } //#5320 + var _d = $k[--$j]; //#5320 + var _e = $k[--$j]; //#5320 + $1[$k[--$j]] = $f(_e + _d); //#5320 + } //#5320 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#5322 + if ($1.barcode.length == 22) { //#5336 + if ($get($1.barcode, 21) != ($1.checksum + 48)) { //#5326 + $k[$j++] = 'bwipp.sscc18badCheckDigit'; //#5325 + $k[$j++] = "Incorrect SSCC-18 check digit provided"; //#5325 + $0.raiseerror(); //#5325 + } //#5325 + } else { //#5336 + var _l = $s(22); //#5328 + $puti(_l, 0, $1.barcode); //#5329 + $put(_l, 21, $1.checksum + 48); //#5330 + $1.barcode = _l; //#5331 + var _q = $1.hasspace ? 2 : 1; //#5332 + var _r = $s($1.text.length + _q); //#5332 + $puti(_r, _r.length - 2, " "); //#5333 + $put(_r, _r.length - 1, $1.checksum + 48); //#5334 + $puti(_r, 0, $1.text); //#5335 + $1.text = _r; //#5336 + } //#5336 + $1.sscc = $geti($1.barcode, 4, 18); //#5338 + $1.barcode = $s(25); //#5341 + $puti($1.barcode, 0, "^FNC100"); //#5342 + $puti($1.barcode, 7, $1.sscc); //#5343 + $put($1.options, "dontdraw", true); //#5346 + $put($1.options, "parsefnc", true); //#5347 + $k[$j++] = 'args'; //#5348 + $k[$j++] = $1.barcode; //#5348 + $k[$j++] = $1.options; //#5348 + $0.code128(); //#5348 + var _14 = $k[--$j]; //#5348 + $1[$k[--$j]] = _14; //#5348 + $put($1.args, "txt", $a([$a([$1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])])); //#5350 + $put($1.args, "textxalign", "center"); //#5351 + $put($1.args, "opt", $1.options); //#5352 + $k[$j++] = $1.args; //#5355 + if (!$1.dontdraw) { //#5355 + $0.renlinear(); //#5355 + } //#5355 }; $0.code39 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includecheck = false; - $1.validatecheck = false; - $1.includetext = false; - $1.includecheckintext = false; - $1.hidestars = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; - $1.charvals = new Map(); - for (var _9 = 0; _9 <= 42; _9 += 1) { - $put($1.charvals, $geti($1.barchars, _9, 1), _9); - } - for (var _F = 0, _E = $1.barcode.length - 1; _F <= _E; _F += 1) { - var _J = $get($1.charvals, $geti($1.barcode, _F, 1)) !== undefined; - if (!_J) { - $k[$j++] = "bwipp.code39badCharacter"; - $k[$j++] = "Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _M = $k[--$j]; - $k[$j++] = $f(_M - 1); - } - var _N = $k[--$j]; - $1[$k[--$j]] = _N; - $1.checksum = 0; - for (var _R = 0, _Q = $f($1.barlen - 1); _R <= _Q; _R += 1) { - $1.checksum = $f($get($1.charvals, $geti($1.barcode, _R, 1)) + $1.checksum); - } - $1.checksum = $1.checksum % 43; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.code39badCheckDigit"; - $k[$j++] = "Incorrect Code 39 check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - $1.includecheck = true; - } - $1.encs = $a([ "1113313111", "3113111131", "1133111131", "3133111111", "1113311131", "3113311111", "1133311111", "1113113131", "3113113111", "1133113111", "3111131131", "1131131131", "3131131111", "1111331131", "3111331111", "1131331111", "1111133131", "3111133111", "1131133111", "1111333111", "3111111331", "1131111331", "3131111311", "1111311331", "3111311311", "1131311311", "1111113331", "3111113311", "1131113311", "1111313311", "3311111131", "1331111131", "3331111111", "1311311131", "3311311111", "1331311111", "1311113131", "3311113111", "1331113111", "1313131111", "1313111311", "1311131311", "1113131311", "1311313111" ]); - var _l = $1.includecheck ? 3 : 2; - $1.sbs = $s($f($1.barlen + _l) * 10); - var _p = $1.includecheck ? 3 : 2; - $1.txt = $a($f($1.barlen + _p)); - $puti($1.sbs, 0, $get($1.encs, 43)); - if (!$1.hidestars) { - $put($1.txt, 0, $a([ "*", 0, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, 0, $a([ "", 0, $1.textyoffset, $1.textfont, $1.textsize ])); - } - for (var _17 = 0, _16 = $f($1.barlen - 1); _17 <= _16; _17 += 1) { - $1.i = _17; - $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); - $puti($1.sbs, $1.i * 10 + 10, $get($1.encs, $1.indx)); - $put($1.txt, $1.i + 1, $a([ $geti($1.barcode, $1.i, 1), ($1.i + 1) * 16, $1.textyoffset, $1.textfont, $1.textsize ])); - } - if ($1.includecheck) { - $puti($1.sbs, $f($1.barlen * 10 + 10), $get($1.encs, $1.checksum)); - if ($1.includecheckintext) { - $put($1.txt, $f($1.barlen + 1), $a([ $geti($1.barchars, $1.checksum, 1), $f($1.barlen + 1) * 16, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $f($1.barlen + 1), $a([ "", $f($1.barlen + 1) * 16, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $puti($1.sbs, $f($1.barlen * 10 + 20), $get($1.encs, 43)); - if (!$1.hidestars) { - $put($1.txt, $f($1.barlen + 2), $a([ "*", $f($1.barlen + 2) * 16, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $f($1.barlen + 2), $a([ "", $f($1.barlen + 2) * 16, $1.textyoffset, $1.textfont, $1.textsize ])); - } - } else { - $puti($1.sbs, $f($1.barlen * 10 + 10), $get($1.encs, 43)); - if (!$1.hidestars) { - $put($1.txt, $f($1.barlen + 1), $a([ "*", $f($1.barlen + 1) * 16, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $f($1.barlen + 1), $a([ "", $f($1.barlen + 1) * 16, $1.textyoffset, $1.textfont, $1.textsize ])); - } - } - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _2S = $1.sbs; - for (var _2T = 0, _2U = _2S.length; _2T < _2U; _2T++) { - $k[$j++] = $get(_2S, _2T) - 48; - } - var _2W = $a(); - $k[$j++] = Infinity; - for (var _2Y = 0, _2Z = ~~(($1.sbs.length + 1) / 2); _2Y < _2Z; _2Y++) { - $k[$j++] = $1.height; - } - var _2b = $a(); - $k[$j++] = Infinity; - for (var _2d = 0, _2e = ~~(($1.sbs.length + 1) / 2); _2d < _2e; _2d++) { - $k[$j++] = 0; - } - var _2f = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _2W; - $k[$j++] = "bhs"; - $k[$j++] = _2b; - $k[$j++] = "bbs"; - $k[$j++] = _2f; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _2j = $d(); - $k[$j++] = _2j; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#5384 + $1.options = $k[--$j]; //#5386 + $1.barcode = $k[--$j]; //#5387 + $1.dontdraw = false; //#5389 + $1.includecheck = false; //#5390 + $1.validatecheck = false; //#5391 + $1.includetext = false; //#5392 + $1.includecheckintext = false; //#5393 + $1.hidestars = false; //#5394 + $1.textfont = "OCR-B"; //#5395 + $1.textsize = 10; //#5396 + $1.textyoffset = -8; //#5397 + $1.height = 1; //#5398 + $forall($1.options, function() { //#5409 + var _3 = $k[--$j]; //#5409 + $1[$k[--$j]] = _3; //#5409 + }); //#5409 + $1.textfont = "" + $1.textfont; //#5411 + $1.textsize = +$1.textsize; //#5412 + $1.textyoffset = +$1.textyoffset; //#5413 + $1.height = +$1.height; //#5414 + $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#5417 + $1.charvals = new Map; //#5418 + for (var _9 = 0; _9 <= 42; _9 += 1) { //#5419 + $put($1.charvals, $geti($1.barchars, _9, 1), _9); //#5419 + } //#5419 + for (var _F = 0, _E = $1.barcode.length - 1; _F <= _E; _F += 1) { //#5426 + var _J = $get($1.charvals, $geti($1.barcode, _F, 1)) !== undefined; //#5423 + if (!_J) { //#5425 + $k[$j++] = 'bwipp.code39badCharacter'; //#5424 + $k[$j++] = "Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#5424 + $0.raiseerror(); //#5424 + } //#5424 + } //#5424 + $k[$j++] = 'barlen'; //#5428 + $k[$j++] = $1.barcode.length; //#5428 + if ($1.validatecheck) { //#5428 + var _M = $k[--$j]; //#5428 + $k[$j++] = $f(_M - 1); //#5428 + } //#5428 + var _N = $k[--$j]; //#5428 + $1[$k[--$j]] = _N; //#5428 + $1.checksum = 0; //#5430 + for (var _R = 0, _Q = $f($1.barlen - 1); _R <= _Q; _R += 1) { //#5434 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, _R, 1)) + $1.checksum); //#5433 + } //#5433 + $1.checksum = $1.checksum % 43; //#5435 + if ($1.validatecheck) { //#5442 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#5439 + $k[$j++] = 'bwipp.code39badCheckDigit'; //#5438 + $k[$j++] = "Incorrect Code 39 check digit provided"; //#5438 + $0.raiseerror(); //#5438 + } //#5438 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#5440 + $1.includecheck = true; //#5441 + } //#5441 + $1.encs = $a(["1113313111", "3113111131", "1133111131", "3133111111", "1113311131", "3113311111", "1133311111", "1113113131", "3113113111", "1133113111", "3111131131", "1131131131", "3131131111", "1111331131", "3111331111", "1131331111", "1111133131", "3111133111", "1131133111", "1111333111", "3111111331", "1131111331", "3131111311", "1111311331", "3111311311", "1131311311", "1111113331", "3111113311", "1131113311", "1111313311", "3311111131", "1331111131", "3331111111", "1311311131", "3311311111", "1331311111", "1311113131", "3311113111", "1331113111", "1313131111", "1313111311", "1311131311", "1113131311", "1311313111"]); //#5455 + var _l = $1.includecheck ? 3 : 2; //#5457 + $1.sbs = $s($f($1.barlen + _l) * 10); //#5457 + var _p = $1.includecheck ? 3 : 2; //#5458 + $1.txt = $a($f($1.barlen + _p)); //#5458 + $puti($1.sbs, 0, $get($1.encs, 43)); //#5461 + if (!$1.hidestars) { //#5465 + $put($1.txt, 0, $a(["*", 0, $1.textyoffset, $1.textfont, $1.textsize])); //#5463 + } else { //#5465 + $put($1.txt, 0, $a(["", 0, $1.textyoffset, $1.textfont, $1.textsize])); //#5465 + } //#5465 + for (var _17 = 0, _16 = $f($1.barlen - 1); _17 <= _16; _17 += 1) { //#5473 + $1.i = _17; //#5469 + $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); //#5470 + $puti($1.sbs, ($1.i * 10) + 10, $get($1.encs, $1.indx)); //#5471 + $put($1.txt, $1.i + 1, $a([$geti($1.barcode, $1.i, 1), ($1.i + 1) * 16, $1.textyoffset, $1.textfont, $1.textsize])); //#5472 + } //#5472 + if ($1.includecheck) { //#5494 + $puti($1.sbs, $f(($1.barlen * 10) + 10), $get($1.encs, $1.checksum)); //#5477 + if ($1.includecheckintext) { //#5481 + $put($1.txt, $f($1.barlen + 1), $a([$geti($1.barchars, $1.checksum, 1), $f($1.barlen + 1) * 16, $1.textyoffset, $1.textfont, $1.textsize])); //#5479 + } else { //#5481 + $put($1.txt, $f($1.barlen + 1), $a(["", $f($1.barlen + 1) * 16, $1.textyoffset, $1.textfont, $1.textsize])); //#5481 + } //#5481 + $puti($1.sbs, $f(($1.barlen * 10) + 20), $get($1.encs, 43)); //#5483 + if (!$1.hidestars) { //#5487 + $put($1.txt, $f($1.barlen + 2), $a(["*", $f($1.barlen + 2) * 16, $1.textyoffset, $1.textfont, $1.textsize])); //#5485 + } else { //#5487 + $put($1.txt, $f($1.barlen + 2), $a(["", $f($1.barlen + 2) * 16, $1.textyoffset, $1.textfont, $1.textsize])); //#5487 + } //#5487 + } else { //#5494 + $puti($1.sbs, $f(($1.barlen * 10) + 10), $get($1.encs, 43)); //#5490 + if (!$1.hidestars) { //#5494 + $put($1.txt, $f($1.barlen + 1), $a(["*", $f($1.barlen + 1) * 16, $1.textyoffset, $1.textfont, $1.textsize])); //#5492 + } else { //#5494 + $put($1.txt, $f($1.barlen + 1), $a(["", $f($1.barlen + 1) * 16, $1.textyoffset, $1.textfont, $1.textsize])); //#5494 + } //#5494 + } //#5494 + $k[$j++] = Infinity; //#5507 + $k[$j++] = Infinity; //#5501 + var _2S = $1.sbs; //#5501 + for (var _2T = 0, _2U = _2S.length; _2T < _2U; _2T++) { //#5501 + $k[$j++] = $get(_2S, _2T) - 48; //#5501 + } //#5501 + var _2W = $a(); //#5501 + $k[$j++] = Infinity; //#5502 + for (var _2Y = 0, _2Z = ~~(($1.sbs.length + 1) / 2); _2Y < _2Z; _2Y++) { //#5502 + $k[$j++] = $1.height; //#5502 + } //#5502 + var _2b = $a(); //#5502 + $k[$j++] = Infinity; //#5503 + for (var _2d = 0, _2e = ~~(($1.sbs.length + 1) / 2); _2d < _2e; _2d++) { //#5503 + $k[$j++] = 0; //#5503 + } //#5503 + var _2f = $a(); //#5503 + $k[$j++] = 'ren'; //#5506 + $k[$j++] = $0.renlinear; //#5506 + $k[$j++] = 'sbs'; //#5506 + $k[$j++] = _2W; //#5506 + $k[$j++] = 'bhs'; //#5506 + $k[$j++] = _2b; //#5506 + $k[$j++] = 'bbs'; //#5506 + $k[$j++] = _2f; //#5506 + if ($1.includetext) { //#5506 + $k[$j++] = 'txt'; //#5505 + $k[$j++] = $1.txt; //#5505 + } //#5505 + $k[$j++] = 'opt'; //#5507 + $k[$j++] = $1.options; //#5507 + var _2j = $d(); //#5507 + $k[$j++] = _2j; //#5510 + if (!$1.dontdraw) { //#5510 + $0.renlinear(); //#5510 + } //#5510 }; $0.code39ext = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.parse = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - var _6 = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _6; - $k[$j++] = "barcode"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _9 = $k[--$j]; - $1[$k[--$j]] = _9; - $1.barlen = $1.barcode.length; - delete $1.options["parse"]; - $forall($1.barcode, function() { - if ($k[--$j] >= 128) { - $k[$j++] = "bwipp.code39extBadCharacter"; - $k[$j++] = "Code 39 Extended must contain only ASCII characters"; - $0.raiseerror(); - } - }); - $1.extencs = $a([ "%U", "$A", "$B", "$C", "$D", "$E", "$F", "$G", "$H", "$I", "$J", "$K", "$L", "$M", "$N", "$O", "$P", "$Q", "$R", "$S", "$T", "$U", "$V", "$W", "$X", "$Y", "$Z", "%A", "%B", "%C", "%D", "%E", " ", "/A", "/B", "/C", "/D", "/E", "/F", "/G", "/H", "/I", "/J", "/K", "/L", "-", ".", "/O", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "/Z", "%F", "%G", "%H", "%I", "%J", "%V", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "%K", "%L", "%M", "%N", "%O", "%W", "+A", "+B", "+C", "+D", "+E", "+F", "+G", "+H", "+I", "+J", "+K", "+L", "+M", "+N", "+O", "+P", "+Q", "+R", "+S", "+T", "+U", "+V", "+W", "+X", "+Y", "+Z", "%P", "%Q", "%R", "%S", "%T" ]); - $1.newcode = $s($1.barlen * 2); - $1.newtext = $s($1.barlen * 2); - $1.j = 0; - for (var _M = 0, _L = $1.barlen - 1; _M <= _L; _M += 1) { - $1.i = _M; - $1.extchar = $get($1.extencs, $get($1.barcode, $1.i)); - $puti($1.newcode, $1.j, $1.extchar); - $put($1.newtext, $1.j, $get($1.barcode, $1.i)); - if ($1.extchar.length != 1) { - $puti($1.newtext, $1.j + 1, " "); - } - $1.j = $1.j + $1.extchar.length; - } - $1.newcode = $geti($1.newcode, 0, $1.j); - $1.newtext = $geti($1.newtext, 0, $1.j); - $put($1.options, "dontdraw", true); - $k[$j++] = "args"; - $k[$j++] = $1.newcode; - $k[$j++] = $1.options; - $0.code39(); - var _o = $k[--$j]; - $1[$k[--$j]] = _o; - if ($1.includetext) { - $1.txt = $get($1.args, "txt"); - for (var _v = 0, _u = $1.newtext.length - 1; _v <= _u; _v += 1) { - $1.i = _v; - $1.txtentry = $get($1.txt, $1.i + 1); - $put($1.txtentry, 0, $geti($1.newtext, $1.i, 1)); - $put($1.txt, $1.i + 1, $1.txtentry); - } - $put($1.args, "txt", $1.txt); - } - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#5541 + $1.options = $k[--$j]; //#5543 + $1.barcode = $k[--$j]; //#5544 + $1.dontdraw = false; //#5546 + $1.includetext = false; //#5547 + $1.parse = false; //#5548 + $forall($1.options, function() { //#5559 + var _3 = $k[--$j]; //#5559 + $1[$k[--$j]] = _3; //#5559 + }); //#5559 + var _6 = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#5565 + $1.fncvals = _6; //#5566 + $k[$j++] = 'barcode'; //#5567 + $k[$j++] = $1.barcode; //#5567 + $k[$j++] = $1.fncvals; //#5567 + $0.parseinput(); //#5567 + var _9 = $k[--$j]; //#5567 + $1[$k[--$j]] = _9; //#5567 + $1.barlen = $1.barcode.length; //#5568 + delete $1.options["parse"]; //#5569 + $forall($1.barcode, function() { //#5576 + if ($k[--$j] >= 128) { //#5575 + $k[$j++] = 'bwipp.code39extBadCharacter'; //#5574 + $k[$j++] = "Code 39 Extended must contain only ASCII characters"; //#5574 + $0.raiseerror(); //#5574 + } //#5574 + }); //#5574 + $1.extencs = $a(["%U", "$A", "$B", "$C", "$D", "$E", "$F", "$G", "$H", "$I", "$J", "$K", "$L", "$M", "$N", "$O", "$P", "$Q", "$R", "$S", "$T", "$U", "$V", "$W", "$X", "$Y", "$Z", "%A", "%B", "%C", "%D", "%E", " ", "/A", "/B", "/C", "/D", "/E", "/F", "/G", "/H", "/I", "/J", "/K", "/L", "-", ".", "/O", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "/Z", "%F", "%G", "%H", "%I", "%J", "%V", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "%K", "%L", "%M", "%N", "%O", "%W", "+A", "+B", "+C", "+D", "+E", "+F", "+G", "+H", "+I", "+J", "+K", "+L", "+M", "+N", "+O", "+P", "+Q", "+R", "+S", "+T", "+U", "+V", "+W", "+X", "+Y", "+Z", "%P", "%Q", "%R", "%S", "%T"]); //#5588 + $1.newcode = $s($1.barlen * 2); //#5590 + $1.newtext = $s($1.barlen * 2); //#5591 + $1.j = 0; //#5592 + for (var _M = 0, _L = $1.barlen - 1; _M <= _L; _M += 1) { //#5600 + $1.i = _M; //#5594 + $1.extchar = $get($1.extencs, $get($1.barcode, $1.i)); //#5595 + $puti($1.newcode, $1.j, $1.extchar); //#5596 + $put($1.newtext, $1.j, $get($1.barcode, $1.i)); //#5597 + if ($1.extchar.length != 1) { //#5598 + $puti($1.newtext, $1.j + 1, " "); //#5598 + } //#5598 + $1.j = $1.j + $1.extchar.length; //#5599 + } //#5599 + $1.newcode = $geti($1.newcode, 0, $1.j); //#5601 + $1.newtext = $geti($1.newtext, 0, $1.j); //#5602 + $put($1.options, "dontdraw", true); //#5605 + $k[$j++] = 'args'; //#5606 + $k[$j++] = $1.newcode; //#5606 + $k[$j++] = $1.options; //#5606 + $0.code39(); //#5606 + var _o = $k[--$j]; //#5606 + $1[$k[--$j]] = _o; //#5606 + if ($1.includetext) { //#5618 + $1.txt = $get($1.args, "txt"); //#5610 + for (var _v = 0, _u = $1.newtext.length - 1; _v <= _u; _v += 1) { //#5616 + $1.i = _v; //#5612 + $1.txtentry = $get($1.txt, $1.i + 1); //#5613 + $put($1.txtentry, 0, $geti($1.newtext, $1.i, 1)); //#5614 + $put($1.txt, $1.i + 1, $1.txtentry); //#5615 + } //#5615 + $put($1.args, "txt", $1.txt); //#5617 + } //#5617 + $put($1.args, "opt", $1.options); //#5619 + $k[$j++] = $1.args; //#5622 + if (!$1.dontdraw) { //#5622 + $0.renlinear(); //#5622 + } //#5622 }; $0.code32 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.textxoffset = 0; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - if ($1.barcode.length != 8 && $1.barcode.length != 9) { - $k[$j++] = "bwipp.code32badLength"; - $k[$j++] = "Italian Pharmacode must be 8 or 9 digits"; - $0.raiseerror(); - } - $forall($1.barcode, function() { - var _C = $k[--$j]; - if (_C < 48 || _C > 57) { - $k[$j++] = "bwipp.code32badCharacter"; - $k[$j++] = "Italian Pharmacode must contain only digits"; - $0.raiseerror(); - } - }); - $1.checksum = 0; - for (var _D = 0; _D <= 7; _D += 1) { - $1.i = _D; - $k[$j++] = $f($get($1.barcode, $1.i) - 48); - if ($1.i % 2 != 0) { - var _I = $k[--$j]; - $k[$j++] = _I * 2; - } - var _J = $k[--$j]; - $k[$j++] = _J; - if (_J > 9) { - var _K = $k[--$j]; - $k[$j++] = $f(_K - 9); - } - $1.checksum = $f($k[--$j] + $1.checksum); - } - $1.checksum = $1.checksum % 10; - if ($1.barcode.length == 9) { - if ($get($1.barcode, 8) != $f($1.checksum + 48)) { - $k[$j++] = "bwipp.code32badCheckDigit"; - $k[$j++] = "Incorrect Italian Pharmacode check digit provided"; - $0.raiseerror(); - } - } - var _S = $s(10); - $puti(_S, 0, $1.barcode); - $put(_S, 8, $f($1.checksum + 48)); - $1.text = _S; - $1.val = $cvrs($s(6), ~~$z($1.text), 32); - $1.barcode = $s(6); - for (var _Z = 0; _Z <= 5; _Z += 1) { - $put($1.barcode, _Z, 48); - } - $puti($1.barcode, 6 - $1.val.length, $1.val); - for (var _e = 0; _e <= 5; _e += 1) { - var _g = $get($1.barcode, _e); - $k[$j++] = _e; - $k[$j++] = _g; - $k[$j++] = _g; - for (var _h = 0, _i = "AEIO".length; _h < _i; _h++) { - if ($k[--$j] >= $get("AEIO", _h)) { - var _l = $k[--$j]; - $k[$j++] = $f(_l + 1); - } - var _m = $k[--$j]; - $k[$j++] = _m; - $k[$j++] = _m; - } - $j--; - var _o = $k[--$j]; - $put($1.barcode, $k[--$j], _o); - } - $puti($1.text, 1, $geti($1.text, 0, 9)); - $put($1.text, 0, 65); - $put($1.options, "dontdraw", true); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.code39(); - var _x = $k[--$j]; - $1[$k[--$j]] = _x; - $put($1.args, "txt", $a([ $a([ $1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ]) ])); - $put($1.args, "textxalign", "center"); - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#5652 + $1.options = $k[--$j]; //#5654 + $1.barcode = $k[--$j]; //#5655 + $1.dontdraw = false; //#5657 + $1.includetext = false; //#5658 + $1.textfont = "OCR-B"; //#5659 + $1.textsize = 10; //#5660 + $1.textyoffset = -8; //#5661 + $1.textxoffset = 0; //#5662 + $1.height = 1; //#5663 + $forall($1.options, function() { //#5674 + var _3 = $k[--$j]; //#5674 + $1[$k[--$j]] = _3; //#5674 + }); //#5674 + $1.textfont = "" + $1.textfont; //#5676 + $1.textsize = +$1.textsize; //#5677 + $1.textyoffset = +$1.textyoffset; //#5678 + $1.height = +$1.height; //#5679 + if (($1.barcode.length != 8) && ($1.barcode.length != 9)) { //#5684 + $k[$j++] = 'bwipp.code32badLength'; //#5683 + $k[$j++] = "Italian Pharmacode must be 8 or 9 digits"; //#5683 + $0.raiseerror(); //#5683 + } //#5683 + $forall($1.barcode, function() { //#5689 + var _C = $k[--$j]; //#5686 + if ((_C < 48) || (_C > 57)) { //#5688 + $k[$j++] = 'bwipp.code32badCharacter'; //#5687 + $k[$j++] = "Italian Pharmacode must contain only digits"; //#5687 + $0.raiseerror(); //#5687 + } //#5687 + }); //#5687 + $1.checksum = 0; //#5692 + for (var _D = 0; _D <= 7; _D += 1) { //#5697 + $1.i = _D; //#5694 + $k[$j++] = $f($get($1.barcode, $1.i) - 48); //#5695 + if (($1.i % 2) != 0) { //#5695 + var _I = $k[--$j]; //#5695 + $k[$j++] = _I * 2; //#5695 + } //#5695 + var _J = $k[--$j]; //#5695 + $k[$j++] = _J; //#5695 + if (_J > 9) { //#5695 + var _K = $k[--$j]; //#5695 + $k[$j++] = $f(_K - 9); //#5695 + } //#5695 + $1.checksum = $f($k[--$j] + $1.checksum); //#5696 + } //#5696 + $1.checksum = $1.checksum % 10; //#5698 + if ($1.barcode.length == 9) { //#5703 + if ($get($1.barcode, 8) != $f($1.checksum + 48)) { //#5702 + $k[$j++] = 'bwipp.code32badCheckDigit'; //#5701 + $k[$j++] = "Incorrect Italian Pharmacode check digit provided"; //#5701 + $0.raiseerror(); //#5701 + } //#5701 + } //#5701 + var _S = $s(10); //#5704 + $puti(_S, 0, $1.barcode); //#5705 + $put(_S, 8, $f($1.checksum + 48)); //#5706 + $1.text = _S; //#5707 + $1.val = $cvrs($s(6), ~~$z($1.text), 32); //#5710 + $1.barcode = $s(6); //#5711 + for (var _Z = 0; _Z <= 5; _Z += 1) { //#5712 + $put($1.barcode, _Z, 48); //#5712 + } //#5712 + $puti($1.barcode, 6 - $1.val.length, $1.val); //#5713 + for (var _e = 0; _e <= 5; _e += 1) { //#5720 + var _g = $get($1.barcode, _e); //#5717 + $k[$j++] = _e; //#5718 + $k[$j++] = _g; //#5718 + $k[$j++] = _g; //#5718 + for (var _h = 0, _i = "AEIO".length; _h < _i; _h++) { //#5718 + if ($k[--$j] >= $get("AEIO", _h)) { //#5718 + var _l = $k[--$j]; //#5718 + $k[$j++] = $f(_l + 1); //#5718 + } //#5718 + var _m = $k[--$j]; //#5718 + $k[$j++] = _m; //#5718 + $k[$j++] = _m; //#5718 + } //#5718 + $j--; //#5718 + var _o = $k[--$j]; //#5719 + $put($1.barcode, $k[--$j], _o); //#5719 + } //#5719 + $puti($1.text, 1, $geti($1.text, 0, 9)); //#5723 + $put($1.text, 0, 65); //#5724 + $put($1.options, "dontdraw", true); //#5727 + $k[$j++] = 'args'; //#5728 + $k[$j++] = $1.barcode; //#5728 + $k[$j++] = $1.options; //#5728 + $0.code39(); //#5728 + var _x = $k[--$j]; //#5728 + $1[$k[--$j]] = _x; //#5728 + $put($1.args, "txt", $a([$a([$1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])])); //#5730 + $put($1.args, "textxalign", "center"); //#5731 + $put($1.args, "opt", $1.options); //#5732 + $k[$j++] = $1.args; //#5735 + if (!$1.dontdraw) { //#5735 + $0.renlinear(); //#5735 + } //#5735 }; $0.pzn = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.textxoffset = 0; - $1.height = 1; - $1.pzn8 = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.textxoffset = +$1.textxoffset; - $1.height = +$1.height; - if ($1.pzn8) { - if ($1.barcode.length != 7 && $1.barcode.length != 8) { - $k[$j++] = "bwipp.pzn8badLength"; - $k[$j++] = "PZN8 must be 7 or 8 digits"; - $0.raiseerror(); - } - } else { - if ($1.barcode.length != 6 && $1.barcode.length != 7) { - $k[$j++] = "bwipp.pzn7badLength"; - $k[$j++] = "PZN7 must be 6 or 7 digits"; - $0.raiseerror(); - } - } - $forall($1.barcode, function() { - var _G = $k[--$j]; - if (_G < 48 || _G > 57) { - $k[$j++] = "bwipp.pznBadCharacter"; - $k[$j++] = "PZN must contain only digits"; - $0.raiseerror(); - } - }); - var _I = $1.pzn8 ? 9 : 8; - $1.msglen = _I; - $1.checksum = 0; - for (var _L = 0, _K = $1.msglen - 3; _L <= _K; _L += 1) { - $1.i = _L; - var _R = $1.pzn8 ? 1 : 2; - $1.checksum = $f($f($get($1.barcode, $1.i) - 48) * ($1.i + _R) + $1.checksum); - } - $1.checksum = $1.checksum % 11; - if ($1.checksum == 10) { - $k[$j++] = "bwipp.pznBadInputSequence"; - $k[$j++] = "Incorrect PZN input sequence provided"; - $0.raiseerror(); - } - if ($1.barcode.length == $1.msglen - 1) { - if ($get($1.barcode, $1.msglen - 2) != $f($1.checksum + 48)) { - $k[$j++] = "bwipp.pznBadCheckDigit"; - $k[$j++] = "Incorrect PZN check digit provided"; - $0.raiseerror(); - } - } - var _c = $s($1.msglen); - $put(_c, 0, 45); - $puti(_c, 1, $1.barcode); - $put(_c, $1.msglen - 1, $f($1.checksum + 48)); - $1.msg = _c; - $put($1.options, "dontdraw", true); - $k[$j++] = "args"; - $k[$j++] = $1.msg; - $k[$j++] = $1.options; - $0.code39(); - var _j = $k[--$j]; - $1[$k[--$j]] = _j; - $1.text = $s($1.msglen + 5); - $puti($1.text, 0, "PZN - "); - $puti($1.text, 6, $geti($1.msg, 1, $1.msglen - 1)); - $put($1.args, "txt", $a([ $a([ $1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ]) ])); - $put($1.args, "textxalign", "center"); - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#5765 + $1.options = $k[--$j]; //#5767 + $1.barcode = $k[--$j]; //#5768 + $1.dontdraw = false; //#5770 + $1.includetext = false; //#5771 + $1.textfont = "OCR-B"; //#5772 + $1.textsize = 10; //#5773 + $1.textyoffset = -8; //#5774 + $1.textxoffset = 0; //#5775 + $1.height = 1; //#5776 + $1.pzn8 = false; //#5777 + $forall($1.options, function() { //#5788 + var _3 = $k[--$j]; //#5788 + $1[$k[--$j]] = _3; //#5788 + }); //#5788 + $1.textfont = "" + $1.textfont; //#5790 + $1.textsize = +$1.textsize; //#5791 + $1.textyoffset = +$1.textyoffset; //#5792 + $1.textxoffset = +$1.textxoffset; //#5793 + $1.height = +$1.height; //#5794 + if ($1.pzn8) { //#5803 + if (($1.barcode.length != 7) && ($1.barcode.length != 8)) { //#5800 + $k[$j++] = 'bwipp.pzn8badLength'; //#5799 + $k[$j++] = "PZN8 must be 7 or 8 digits"; //#5799 + $0.raiseerror(); //#5799 + } //#5799 + } else { //#5803 + if (($1.barcode.length != 6) && ($1.barcode.length != 7)) { //#5804 + $k[$j++] = 'bwipp.pzn7badLength'; //#5803 + $k[$j++] = "PZN7 must be 6 or 7 digits"; //#5803 + $0.raiseerror(); //#5803 + } //#5803 + } //#5803 + $forall($1.barcode, function() { //#5810 + var _G = $k[--$j]; //#5807 + if ((_G < 48) || (_G > 57)) { //#5809 + $k[$j++] = 'bwipp.pznBadCharacter'; //#5808 + $k[$j++] = "PZN must contain only digits"; //#5808 + $0.raiseerror(); //#5808 + } //#5808 + }); //#5808 + var _I = $1.pzn8 ? 9 : 8; //#5813 + $1.msglen = _I; //#5813 + $1.checksum = 0; //#5814 + for (var _L = 0, _K = $1.msglen - 3; _L <= _K; _L += 1) { //#5819 + $1.i = _L; //#5816 + var _R = $1.pzn8 ? 1 : 2; //#5817 + $1.checksum = $f(($f($get($1.barcode, $1.i) - 48) * ($1.i + _R)) + $1.checksum); //#5818 + } //#5818 + $1.checksum = $1.checksum % 11; //#5820 + if ($1.checksum == 10) { //#5823 + $k[$j++] = 'bwipp.pznBadInputSequence'; //#5822 + $k[$j++] = "Incorrect PZN input sequence provided"; //#5822 + $0.raiseerror(); //#5822 + } //#5822 + if ($1.barcode.length == ($1.msglen - 1)) { //#5828 + if ($get($1.barcode, $1.msglen - 2) != $f($1.checksum + 48)) { //#5827 + $k[$j++] = 'bwipp.pznBadCheckDigit'; //#5826 + $k[$j++] = "Incorrect PZN check digit provided"; //#5826 + $0.raiseerror(); //#5826 + } //#5826 + } //#5826 + var _c = $s($1.msglen); //#5829 + $put(_c, 0, 45); //#5830 + $puti(_c, 1, $1.barcode); //#5831 + $put(_c, $1.msglen - 1, $f($1.checksum + 48)); //#5832 + $1.msg = _c; //#5833 + $put($1.options, "dontdraw", true); //#5836 + $k[$j++] = 'args'; //#5837 + $k[$j++] = $1.msg; //#5837 + $k[$j++] = $1.options; //#5837 + $0.code39(); //#5837 + var _j = $k[--$j]; //#5837 + $1[$k[--$j]] = _j; //#5837 + $1.text = $s($1.msglen + 5); //#5840 + $puti($1.text, 0, "PZN - "); //#5841 + $puti($1.text, 6, $geti($1.msg, 1, $1.msglen - 1)); //#5842 + $put($1.args, "txt", $a([$a([$1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])])); //#5844 + $put($1.args, "textxalign", "center"); //#5845 + $put($1.args, "opt", $1.options); //#5846 + $k[$j++] = $1.args; //#5849 + if (!$1.dontdraw) { //#5849 + $0.renlinear(); //#5849 + } //#5849 }; $0.code93 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includecheck = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = 1; - $1.parse = false; - $1.parsefnc = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.encs = $a([ "131112", "111213", "111312", "111411", "121113", "121212", "121311", "111114", "131211", "141111", "211113", "211212", "211311", "221112", "221211", "231111", "112113", "112212", "112311", "122112", "132111", "111123", "111222", "111321", "121122", "131121", "212112", "212211", "211122", "211221", "221121", "222111", "112122", "112221", "122121", "123111", "121131", "311112", "311211", "321111", "112131", "113121", "211131", "121221", "312111", "311121", "122211", "111141", "1111411" ]); - $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; - $1.sft1 = -1; - $1.sft2 = -2; - $1.sft3 = -3; - $1.sft4 = -4; - var _G = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "SFT$", $1.sft1 ], [ "SFT%", $1.sft2 ], [ "SFT/", $1.sft3 ], [ "SFT+", $1.sft4 ] ]); - $1.fncvals = _G; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _J = $k[--$j]; - $1[$k[--$j]] = _J; - $1.msglen = $1.msg.length; - if ($1.includecheck) { - $1.sbs = $s($1.msglen * 6 + 25); - } else { - $1.sbs = $s($1.msglen * 6 + 13); - } - $1.txt = $a($1.msglen); - $puti($1.sbs, 0, $get($1.encs, 47)); - $1.checksum1 = 0; - $1.checksum2 = 0; - for (var _Y = 0, _X = $1.msglen - 1; _Y <= _X; _Y += 1) { - $1.i = _Y; - var _b = $get($1.msg, $1.i); - $k[$j++] = _b; - if (_b < 0) { - $1.indx = $f(42 - $k[--$j]); - $1.char = " "; - } else { - var _d = $s(1); - $put(_d, 0, $k[--$j]); - $1.char = _d; - $search($1.barchars, $1.char); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - } - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $1.i * 6 + 6, $1.enc); - $put($1.txt, $1.i, $a([ $1.char, $1.i * 9 + 9, $1.textyoffset, $1.textfont, $1.textsize ])); - $1.checksum1 = $1.checksum1 + (($1.msglen - $1.i - 1) % 20 + 1) * $1.indx; - $1.checksum2 = $1.checksum2 + (($1.msglen - $1.i) % 15 + 1) * $1.indx; - } - if ($1.includecheck) { - $1.checksum1 = $1.checksum1 % 47; - $1.checksum2 = ($1.checksum2 + $1.checksum1) % 47; - $puti($1.sbs, $1.msglen * 6 + 6, $get($1.encs, $1.checksum1)); - $puti($1.sbs, $1.msglen * 6 + 12, $get($1.encs, $1.checksum2)); - $puti($1.sbs, $1.msglen * 6 + 18, $get($1.encs, 48)); - } else { - $puti($1.sbs, $1.msglen * 6 + 6, $get($1.encs, 48)); - } - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _1Q = $1.sbs; - for (var _1R = 0, _1S = _1Q.length; _1R < _1S; _1R++) { - $k[$j++] = $get(_1Q, _1R) - 48; - } - var _1U = $a(); - $k[$j++] = Infinity; - for (var _1W = 0, _1X = ~~(($1.sbs.length + 1) / 2); _1W < _1X; _1W++) { - $k[$j++] = $1.height; - } - var _1Z = $a(); - $k[$j++] = Infinity; - for (var _1b = 0, _1c = ~~(($1.sbs.length + 1) / 2); _1b < _1c; _1b++) { - $k[$j++] = 0; - } - var _1d = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _1U; - $k[$j++] = "bhs"; - $k[$j++] = _1Z; - $k[$j++] = "bbs"; - $k[$j++] = _1d; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _1h = $d(); - $k[$j++] = _1h; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#5879 + $1.options = $k[--$j]; //#5881 + $1.barcode = $k[--$j]; //#5882 + $1.dontdraw = false; //#5884 + $1.includecheck = false; //#5885 + $1.includetext = false; //#5886 + $1.textfont = "OCR-B"; //#5887 + $1.textsize = 10; //#5888 + $1.textyoffset = -8; //#5889 + $1.height = 1; //#5890 + $1.parse = false; //#5891 + $1.parsefnc = false; //#5892 + $forall($1.options, function() { //#5903 + var _3 = $k[--$j]; //#5903 + $1[$k[--$j]] = _3; //#5903 + }); //#5903 + $1.textfont = "" + $1.textfont; //#5905 + $1.textsize = +$1.textsize; //#5906 + $1.textyoffset = +$1.textyoffset; //#5907 + $1.height = +$1.height; //#5908 + $1.encs = $a(["131112", "111213", "111312", "111411", "121113", "121212", "121311", "111114", "131211", "141111", "211113", "211212", "211311", "221112", "221211", "231111", "112113", "112212", "112311", "122112", "132111", "111123", "111222", "111321", "121122", "131121", "212112", "212211", "211122", "211221", "221121", "222111", "112122", "112221", "122121", "123111", "121131", "311112", "311211", "321111", "112131", "113121", "211131", "121221", "312111", "311121", "122211", "111141", "1111411"]); //#5921 + $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#5924 + $1.sft1 = -1; //#5927 + $1.sft2 = -2; //#5927 + $1.sft3 = -3; //#5927 + $1.sft4 = -4; //#5927 + var _G = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["SFT$", $1.sft1], + ["SFT%", $1.sft2], + ["SFT/", $1.sft3], + ["SFT+", $1.sft4] + ]); //#5934 + $1.fncvals = _G; //#5935 + $k[$j++] = 'msg'; //#5936 + $k[$j++] = $1.barcode; //#5936 + $k[$j++] = $1.fncvals; //#5936 + $0.parseinput(); //#5936 + var _J = $k[--$j]; //#5936 + $1[$k[--$j]] = _J; //#5936 + $1.msglen = $1.msg.length; //#5937 + if ($1.includecheck) { //#5942 + $1.sbs = $s(($1.msglen * 6) + 25); //#5940 + } else { //#5942 + $1.sbs = $s(($1.msglen * 6) + 13); //#5942 + } //#5942 + $1.txt = $a($1.msglen); //#5944 + $puti($1.sbs, 0, $get($1.encs, 47)); //#5947 + $1.checksum1 = 0; //#5949 + $1.checksum2 = 0; //#5949 + for (var _Y = 0, _X = $1.msglen - 1; _Y <= _X; _Y += 1) { //#5968 + $1.i = _Y; //#5951 + var _b = $get($1.msg, $1.i); //#5953 + $k[$j++] = _b; //#5962 + if (_b < 0) { //#5961 + $1.indx = $f(42 - $k[--$j]); //#5954 + $1.char = " "; //#5955 + } else { //#5961 + var _d = $s(1); //#5957 + $put(_d, 0, $k[--$j]); //#5957 + $1.char = _d; //#5957 + $search($1.barchars, $1.char); //#5958 + $j--; //#5959 + $1.indx = $k[--$j].length; //#5960 + $j -= 2; //#5961 + } //#5961 + $1.enc = $get($1.encs, $1.indx); //#5963 + $puti($1.sbs, ($1.i * 6) + 6, $1.enc); //#5964 + $put($1.txt, $1.i, $a([$1.char, ($1.i * 9) + 9, $1.textyoffset, $1.textfont, $1.textsize])); //#5965 + $1.checksum1 = $1.checksum1 + ((((($1.msglen - $1.i) - 1) % 20) + 1) * $1.indx); //#5966 + $1.checksum2 = $1.checksum2 + (((($1.msglen - $1.i) % 15) + 1) * $1.indx); //#5967 + } //#5967 + if ($1.includecheck) { //#5980 + $1.checksum1 = $1.checksum1 % 47; //#5972 + $1.checksum2 = ($1.checksum2 + $1.checksum1) % 47; //#5973 + $puti($1.sbs, ($1.msglen * 6) + 6, $get($1.encs, $1.checksum1)); //#5974 + $puti($1.sbs, ($1.msglen * 6) + 12, $get($1.encs, $1.checksum2)); //#5975 + $puti($1.sbs, ($1.msglen * 6) + 18, $get($1.encs, 48)); //#5977 + } else { //#5980 + $puti($1.sbs, ($1.msglen * 6) + 6, $get($1.encs, 48)); //#5980 + } //#5980 + $k[$j++] = Infinity; //#5992 + $k[$j++] = Infinity; //#5986 + var _1Q = $1.sbs; //#5986 + for (var _1R = 0, _1S = _1Q.length; _1R < _1S; _1R++) { //#5986 + $k[$j++] = $get(_1Q, _1R) - 48; //#5986 + } //#5986 + var _1U = $a(); //#5986 + $k[$j++] = Infinity; //#5987 + for (var _1W = 0, _1X = ~~(($1.sbs.length + 1) / 2); _1W < _1X; _1W++) { //#5987 + $k[$j++] = $1.height; //#5987 + } //#5987 + var _1Z = $a(); //#5987 + $k[$j++] = Infinity; //#5988 + for (var _1b = 0, _1c = ~~(($1.sbs.length + 1) / 2); _1b < _1c; _1b++) { //#5988 + $k[$j++] = 0; //#5988 + } //#5988 + var _1d = $a(); //#5988 + $k[$j++] = 'ren'; //#5991 + $k[$j++] = $0.renlinear; //#5991 + $k[$j++] = 'sbs'; //#5991 + $k[$j++] = _1U; //#5991 + $k[$j++] = 'bhs'; //#5991 + $k[$j++] = _1Z; //#5991 + $k[$j++] = 'bbs'; //#5991 + $k[$j++] = _1d; //#5991 + if ($1.includetext) { //#5991 + $k[$j++] = 'txt'; //#5990 + $k[$j++] = $1.txt; //#5990 + } //#5990 + $k[$j++] = 'opt'; //#5992 + $k[$j++] = $1.options; //#5992 + var _1h = $d(); //#5992 + $k[$j++] = _1h; //#5995 + if (!$1.dontdraw) { //#5995 + $0.renlinear(); //#5995 + } //#5995 }; $0.code93ext = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.parse = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - var _6 = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _6; - $k[$j++] = "barcode"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _9 = $k[--$j]; - $1[$k[--$j]] = _9; - $1.barlen = $1.barcode.length; - delete $1.options["parse"]; - $1.extencs = $a([ "^SFT%U", "^SFT$A", "^SFT$B", "^SFT$C", "^SFT$D", "^SFT$E", "^SFT$F", "^SFT$G", "^SFT$H", "^SFT$I", "^SFT$J", "^SFT$K", "^SFT$L", "^SFT$M", "^SFT$N", "^SFT$O", "^SFT$P", "^SFT$Q", "^SFT$R", "^SFT$S", "^SFT$T", "^SFT$U", "^SFT$V", "^SFT$W", "^SFT$X", "^SFT$Y", "^SFT$Z", "^SFT%A", "^SFT%B", "^SFT%C", "^SFT%D", "^SFT%E", " ", "^SFT/A", "^SFT/B", "^SFT/C", "^SFT/D", "^SFT/E", "^SFT/F", "^SFT/G", "^SFT/H", "^SFT/I", "^SFT/J", "^SFT/K", "^SFT/L", "-", ".", "^SFT/O", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "^SFT/Z", "^SFT%F", "^SFT%G", "^SFT%H", "^SFT%I", "^SFT%J", "^SFT%V", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "^SFT%K", "^SFT%L", "^SFT%M", "^SFT%N", "^SFT%O", "^SFT%W", "^SFT+A", "^SFT+B", "^SFT+C", "^SFT+D", "^SFT+E", "^SFT+F", "^SFT+G", "^SFT+H", "^SFT+I", "^SFT+J", "^SFT+K", "^SFT+L", "^SFT+M", "^SFT+N", "^SFT+O", "^SFT+P", "^SFT+Q", "^SFT+R", "^SFT+S", "^SFT+T", "^SFT+U", "^SFT+V", "^SFT+W", "^SFT+X", "^SFT+Y", "^SFT+Z", "^SFT%P", "^SFT%Q", "^SFT%R", "^SFT%S", "^SFT%T" ]); - $1.newcode = $s($1.barlen * 6); - $1.newtext = $s($1.barlen * 6); - $1.j = 0; - $1.k = 0; - for (var _K = 0, _J = $1.barlen - 1; _K <= _J; _K += 1) { - $1.i = _K; - $1.extchar = $get($1.extencs, $get($1.barcode, $1.i)); - $1.extlen = $1.extchar.length; - $puti($1.newcode, $1.j, $1.extchar); - $put($1.newtext, $1.k, $get($1.barcode, $1.i)); - if ($1.extlen != 1) { - $puti($1.newtext, $1.k + 1, " "); - } - $1.j = $1.j + $1.extlen; - var _g = $1.extlen == 1 ? 1 : 2; - $1.k = $1.k + _g; - } - $1.newcode = $geti($1.newcode, 0, $1.j); - $1.newtext = $geti($1.newtext, 0, $1.k); - $put($1.options, "dontdraw", true); - $put($1.options, "parsefnc", true); - $k[$j++] = "args"; - $k[$j++] = $1.newcode; - $k[$j++] = $1.options; - $0.code93(); - var _r = $k[--$j]; - $1[$k[--$j]] = _r; - if ($1.includetext) { - $1.txt = $get($1.args, "txt"); - for (var _y = 0, _x = $1.newtext.length - 1; _y <= _x; _y += 1) { - $1.i = _y; - $1.txtentry = $get($1.txt, $1.i); - $put($1.txtentry, 0, $geti($1.newtext, $1.i, 1)); - $put($1.txt, $1.i, $1.txtentry); - } - $put($1.args, "txt", $1.txt); - } - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#6026 + $1.options = $k[--$j]; //#6028 + $1.barcode = $k[--$j]; //#6029 + $1.dontdraw = false; //#6031 + $1.includetext = false; //#6032 + $1.parse = false; //#6033 + $forall($1.options, function() { //#6044 + var _3 = $k[--$j]; //#6044 + $1[$k[--$j]] = _3; //#6044 + }); //#6044 + var _6 = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#6050 + $1.fncvals = _6; //#6051 + $k[$j++] = 'barcode'; //#6052 + $k[$j++] = $1.barcode; //#6052 + $k[$j++] = $1.fncvals; //#6052 + $0.parseinput(); //#6052 + var _9 = $k[--$j]; //#6052 + $1[$k[--$j]] = _9; //#6052 + $1.barlen = $1.barcode.length; //#6053 + delete $1.options["parse"]; //#6054 + $1.extencs = $a(["^SFT%U", "^SFT$A", "^SFT$B", "^SFT$C", "^SFT$D", "^SFT$E", "^SFT$F", "^SFT$G", "^SFT$H", "^SFT$I", "^SFT$J", "^SFT$K", "^SFT$L", "^SFT$M", "^SFT$N", "^SFT$O", "^SFT$P", "^SFT$Q", "^SFT$R", "^SFT$S", "^SFT$T", "^SFT$U", "^SFT$V", "^SFT$W", "^SFT$X", "^SFT$Y", "^SFT$Z", "^SFT%A", "^SFT%B", "^SFT%C", "^SFT%D", "^SFT%E", " ", "^SFT/A", "^SFT/B", "^SFT/C", "^SFT/D", "^SFT/E", "^SFT/F", "^SFT/G", "^SFT/H", "^SFT/I", "^SFT/J", "^SFT/K", "^SFT/L", "-", ".", "^SFT/O", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "^SFT/Z", "^SFT%F", "^SFT%G", "^SFT%H", "^SFT%I", "^SFT%J", "^SFT%V", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "^SFT%K", "^SFT%L", "^SFT%M", "^SFT%N", "^SFT%O", "^SFT%W", "^SFT+A", "^SFT+B", "^SFT+C", "^SFT+D", "^SFT+E", "^SFT+F", "^SFT+G", "^SFT+H", "^SFT+I", "^SFT+J", "^SFT+K", "^SFT+L", "^SFT+M", "^SFT+N", "^SFT+O", "^SFT+P", "^SFT+Q", "^SFT+R", "^SFT+S", "^SFT+T", "^SFT+U", "^SFT+V", "^SFT+W", "^SFT+X", "^SFT+Y", "^SFT+Z", "^SFT%P", "^SFT%Q", "^SFT%R", "^SFT%S", "^SFT%T"]); //#6074 + $1.newcode = $s($1.barlen * 6); //#6076 + $1.newtext = $s($1.barlen * 6); //#6077 + $1.j = 0; //#6078 + $1.k = 0; //#6078 + for (var _K = 0, _J = $1.barlen - 1; _K <= _J; _K += 1) { //#6088 + $1.i = _K; //#6080 + $1.extchar = $get($1.extencs, $get($1.barcode, $1.i)); //#6081 + $1.extlen = $1.extchar.length; //#6082 + $puti($1.newcode, $1.j, $1.extchar); //#6083 + $put($1.newtext, $1.k, $get($1.barcode, $1.i)); //#6084 + if ($1.extlen != 1) { //#6085 + $puti($1.newtext, $1.k + 1, " "); //#6085 + } //#6085 + $1.j = $1.j + $1.extlen; //#6086 + var _g = ($1.extlen == 1) ? 1 : 2; //#6087 + $1.k = $1.k + _g; //#6087 + } //#6087 + $1.newcode = $geti($1.newcode, 0, $1.j); //#6089 + $1.newtext = $geti($1.newtext, 0, $1.k); //#6090 + $put($1.options, "dontdraw", true); //#6093 + $put($1.options, "parsefnc", true); //#6094 + $k[$j++] = 'args'; //#6095 + $k[$j++] = $1.newcode; //#6095 + $k[$j++] = $1.options; //#6095 + $0.code93(); //#6095 + var _r = $k[--$j]; //#6095 + $1[$k[--$j]] = _r; //#6095 + if ($1.includetext) { //#6107 + $1.txt = $get($1.args, "txt"); //#6099 + for (var _y = 0, _x = $1.newtext.length - 1; _y <= _x; _y += 1) { //#6105 + $1.i = _y; //#6101 + $1.txtentry = $get($1.txt, $1.i); //#6102 + $put($1.txtentry, 0, $geti($1.newtext, $1.i, 1)); //#6103 + $put($1.txt, $1.i, $1.txtentry); //#6104 + } //#6104 + $put($1.args, "txt", $1.txt); //#6106 + } //#6106 + $put($1.args, "opt", $1.options); //#6108 + $k[$j++] = $1.args; //#6111 + if (!$1.dontdraw) { //#6111 + $0.renlinear(); //#6111 + } //#6111 }; $0.interleaved2of5 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includecheck = false; - $1.includetext = false; - $1.includecheckintext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $forall($1.barcode, function() { - var _A = $k[--$j]; - if (_A < 48 || _A > 57) { - $k[$j++] = "bwipp.interleaved2of5badCharacter"; - $k[$j++] = "Interleaved 2 of 5 must contain only digits"; - $0.raiseerror(); - } - }); - $1.barlen = $1.barcode.length; - if ($1.barlen % 2 == 0 && $1.includecheck || $1.barlen % 2 != 0 && !$1.includecheck) { - $1.pad = $s($1.barlen + 1); - $put($1.pad, 0, 48); - $puti($1.pad, 1, $1.barcode); - $1.barcode = $1.pad; - $1.barlen = $1.barlen + 1; - } - if ($1.includecheck) { - $1.checksum = 0; - for (var _Q = 0, _P = $1.barlen - 1; _Q <= _P; _Q += 1) { - $1.i = _Q; - if ($1.i % 2 == 0) { - $1.checksum = $1.checksum + ($get($1.barcode, $1.i) - 48) * 3; - } else { - $1.checksum = $1.checksum + ($get($1.barcode, $1.i) - 48); - } - } - $1.checksum = (10 - $1.checksum % 10) % 10; - $1.pad = $s($1.barlen + 1); - $puti($1.pad, 0, $1.barcode); - $put($1.pad, $1.barlen, $1.checksum + 48); - $1.barcode = $1.pad; - $1.barlen = $1.barlen + 1; - } - $1.encs = $a([ "11221", "21112", "12112", "22111", "11212", "21211", "12211", "11122", "21121", "12121", "1111", "2111" ]); - $1.barchars = "0123456789"; - $1.sbs = $s($1.barlen * 5 + 8); - $1.txt = $a($1.barlen); - $puti($1.sbs, 0, $get($1.encs, 10)); - for (var _u = 0, _t = $1.barlen - 1; _u <= _t; _u += 2) { - $1.i = _u; - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enca = $get($1.encs, $1.indx); - $search($1.barchars, $geti($1.barcode, $1.i + 1, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.encb = $get($1.encs, $1.indx); - $1.intl = $s($1.enca.length * 2); - for (var _1F = 0, _1E = $1.enca.length - 1; _1F <= _1E; _1F += 1) { - $1.j = _1F; - $1.achar = $get($1.enca, $1.j); - $1.bchar = $get($1.encb, $1.j); - $put($1.intl, $1.j * 2, $1.achar); - $put($1.intl, $1.j * 2 + 1, $1.bchar); - } - $puti($1.sbs, $1.i * 5 + 4, $1.intl); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $1.i * 9 + 4, $1.textyoffset, $1.textfont, $1.textsize ])); - if ($1.includecheck && !$1.includecheckintext && $1.barlen - 2 == $1.i) { - $put($1.txt, $1.i + 1, $a([ " ", ($1.i + 1) * 9 + 4, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $1.i + 1, $a([ $geti($1.barcode, $1.i + 1, 1), ($1.i + 1) * 9 + 4, $1.textyoffset, $1.textfont, $1.textsize ])); - } - } - $puti($1.sbs, $1.barlen * 5 + 4, $get($1.encs, 11)); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _24 = $1.sbs; - for (var _25 = 0, _26 = _24.length; _25 < _26; _25++) { - $k[$j++] = $get(_24, _25) - 48; - } - var _28 = $a(); - $k[$j++] = Infinity; - for (var _2A = 0, _2B = ~~(($1.sbs.length + 1) / 2); _2A < _2B; _2A++) { - $k[$j++] = $1.height; - } - var _2D = $a(); - $k[$j++] = Infinity; - for (var _2F = 0, _2G = ~~(($1.sbs.length + 1) / 2); _2F < _2G; _2F++) { - $k[$j++] = 0; - } - var _2H = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _28; - $k[$j++] = "bhs"; - $k[$j++] = _2D; - $k[$j++] = "bbs"; - $k[$j++] = _2H; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "barratio"; - $k[$j++] = 2; - $k[$j++] = "spaceratio"; - $k[$j++] = 2; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _2L = $d(); - $k[$j++] = _2L; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#6140 + $1.options = $k[--$j]; //#6142 + $1.barcode = $k[--$j]; //#6143 + $1.dontdraw = false; //#6145 + $1.includecheck = false; //#6146 + $1.includetext = false; //#6147 + $1.includecheckintext = false; //#6148 + $1.textfont = "OCR-B"; //#6149 + $1.textsize = 10; //#6150 + $1.textyoffset = -8; //#6151 + $1.height = 1; //#6152 + $forall($1.options, function() { //#6163 + var _3 = $k[--$j]; //#6163 + $1[$k[--$j]] = _3; //#6163 + }); //#6163 + $1.textfont = "" + $1.textfont; //#6165 + $1.textsize = +$1.textsize; //#6166 + $1.textyoffset = +$1.textyoffset; //#6167 + $1.height = +$1.height; //#6168 + $forall($1.barcode, function() { //#6175 + var _A = $k[--$j]; //#6172 + if ((_A < 48) || (_A > 57)) { //#6174 + $k[$j++] = 'bwipp.interleaved2of5badCharacter'; //#6173 + $k[$j++] = "Interleaved 2 of 5 must contain only digits"; //#6173 + $0.raiseerror(); //#6173 + } //#6173 + }); //#6173 + $1.barlen = $1.barcode.length; //#6177 + if (((($1.barlen % 2) == 0) && $1.includecheck) || ((($1.barlen % 2) != 0) && (!$1.includecheck))) { //#6188 + $1.pad = $s($1.barlen + 1); //#6183 + $put($1.pad, 0, 48); //#6184 + $puti($1.pad, 1, $1.barcode); //#6185 + $1.barcode = $1.pad; //#6186 + $1.barlen = $1.barlen + 1; //#6187 + } //#6187 + if ($1.includecheck) { //#6207 + $1.checksum = 0; //#6192 + for (var _Q = 0, _P = $1.barlen - 1; _Q <= _P; _Q += 1) { //#6200 + $1.i = _Q; //#6194 + if (($1.i % 2) == 0) { //#6198 + $1.checksum = $1.checksum + (($get($1.barcode, $1.i) - 48) * 3); //#6196 + } else { //#6198 + $1.checksum = $1.checksum + ($get($1.barcode, $1.i) - 48); //#6198 + } //#6198 + } //#6198 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#6201 + $1.pad = $s($1.barlen + 1); //#6202 + $puti($1.pad, 0, $1.barcode); //#6203 + $put($1.pad, $1.barlen, $1.checksum + 48); //#6204 + $1.barcode = $1.pad; //#6205 + $1.barlen = $1.barlen + 1; //#6206 + } //#6206 + $1.encs = $a(["11221", "21112", "12112", "22111", "11212", "21211", "12211", "11122", "21121", "12121", "1111", "2111"]); //#6214 + $1.barchars = "0123456789"; //#6217 + $1.sbs = $s(($1.barlen * 5) + 8); //#6218 + $1.txt = $a($1.barlen); //#6219 + $puti($1.sbs, 0, $get($1.encs, 10)); //#6222 + for (var _u = 0, _t = $1.barlen - 1; _u <= _t; _u += 2) { //#6256 + $1.i = _u; //#6225 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#6227 + $j--; //#6228 + $1.indx = $k[--$j].length; //#6229 + $j -= 2; //#6230 + $1.enca = $get($1.encs, $1.indx); //#6231 + $search($1.barchars, $geti($1.barcode, $1.i + 1, 1)); //#6233 + $j--; //#6234 + $1.indx = $k[--$j].length; //#6235 + $j -= 2; //#6236 + $1.encb = $get($1.encs, $1.indx); //#6237 + $1.intl = $s($1.enca.length * 2); //#6240 + for (var _1F = 0, _1E = $1.enca.length - 1; _1F <= _1E; _1F += 1) { //#6247 + $1.j = _1F; //#6242 + $1.achar = $get($1.enca, $1.j); //#6243 + $1.bchar = $get($1.encb, $1.j); //#6244 + $put($1.intl, $1.j * 2, $1.achar); //#6245 + $put($1.intl, ($1.j * 2) + 1, $1.bchar); //#6246 + } //#6246 + $puti($1.sbs, ($1.i * 5) + 4, $1.intl); //#6249 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), ($1.i * 9) + 4, $1.textyoffset, $1.textfont, $1.textsize])); //#6250 + if (($1.includecheck && (!$1.includecheckintext)) && (($1.barlen - 2) == $1.i)) { //#6254 + $put($1.txt, $1.i + 1, $a([" ", (($1.i + 1) * 9) + 4, $1.textyoffset, $1.textfont, $1.textsize])); //#6252 + } else { //#6254 + $put($1.txt, $1.i + 1, $a([$geti($1.barcode, $1.i + 1, 1), (($1.i + 1) * 9) + 4, $1.textyoffset, $1.textfont, $1.textsize])); //#6254 + } //#6254 + } //#6254 + $puti($1.sbs, ($1.barlen * 5) + 4, $get($1.encs, 11)); //#6259 + $k[$j++] = Infinity; //#6272 + $k[$j++] = Infinity; //#6264 + var _24 = $1.sbs; //#6264 + for (var _25 = 0, _26 = _24.length; _25 < _26; _25++) { //#6264 + $k[$j++] = $get(_24, _25) - 48; //#6264 + } //#6264 + var _28 = $a(); //#6264 + $k[$j++] = Infinity; //#6265 + for (var _2A = 0, _2B = ~~(($1.sbs.length + 1) / 2); _2A < _2B; _2A++) { //#6265 + $k[$j++] = $1.height; //#6265 + } //#6265 + var _2D = $a(); //#6265 + $k[$j++] = Infinity; //#6266 + for (var _2F = 0, _2G = ~~(($1.sbs.length + 1) / 2); _2F < _2G; _2F++) { //#6266 + $k[$j++] = 0; //#6266 + } //#6266 + var _2H = $a(); //#6266 + $k[$j++] = 'ren'; //#6269 + $k[$j++] = $0.renlinear; //#6269 + $k[$j++] = 'sbs'; //#6269 + $k[$j++] = _28; //#6269 + $k[$j++] = 'bhs'; //#6269 + $k[$j++] = _2D; //#6269 + $k[$j++] = 'bbs'; //#6269 + $k[$j++] = _2H; //#6269 + if ($1.includetext) { //#6269 + $k[$j++] = 'txt'; //#6268 + $k[$j++] = $1.txt; //#6268 + } //#6268 + $k[$j++] = 'barratio'; //#6272 + $k[$j++] = 2; //#6272 + $k[$j++] = 'spaceratio'; //#6272 + $k[$j++] = 2; //#6272 + $k[$j++] = 'opt'; //#6272 + $k[$j++] = $1.options; //#6272 + var _2L = $d(); //#6272 + $k[$j++] = _2L; //#6275 + if (!$1.dontdraw) { //#6275 + $0.renlinear(); //#6275 + } //#6275 }; $0.itf14 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.includecheckintext = true; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = 3; - $1.height = .5; - $1.showborder = true; - $1.borderwidth = 4; - $1.borderleft = 15; - $1.borderright = 15; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.borderwidth = +$1.borderwidth; - $1.borderleft = +$1.borderleft; - $1.borderright = +$1.borderright; - $1.text = $1.barcode; - var _E = $1.barcode; - $k[$j++] = $s(_E.length); - $k[$j++] = 0; - $forall(_E, function() { - var _G = $k[--$j]; - $k[$j++] = _G; - if (_G != 32) { - var _H = $k[--$j]; - var _I = $k[--$j]; - var _J = $k[--$j]; - $put(_J, _I, _H); - $k[$j++] = _J; - $k[$j++] = $f(_I + 1); - } else { - $j--; - } - }); - var _K = $k[--$j]; - $1.barcode = $geti($k[--$j], 0, _K); - $1.hasspace = $1.text.length != $1.barcode.length; - if ($1.barcode.length != 13 && $1.barcode.length != 14) { - $k[$j++] = "bwipp.itf14badLength"; - $k[$j++] = "ITF-14 must be 13 or 14 digits"; - $0.raiseerror(); - } - var _R = $1.barcode; - for (var _S = 0, _T = _R.length; _S < _T; _S++) { - var _U = $get(_R, _S); - if (_U < 48 || _U > 57) { - $k[$j++] = "bwipp.itf14badCharacter"; - $k[$j++] = "ITF-14 must contain only digits"; - $0.raiseerror(); - } - } - $1.checksum = 0; - for (var _V = 0; _V <= 12; _V += 1) { - $1.i = _V; - $k[$j++] = "checksum"; - $k[$j++] = $1.checksum; - $k[$j++] = $f($get($1.barcode, $1.i) - 48); - if ($1.i % 2 == 0) { - var _b = $k[--$j]; - $k[$j++] = _b * 3; - } - var _c = $k[--$j]; - var _d = $k[--$j]; - $1[$k[--$j]] = $f(_d + _c); - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 14) { - if ($get($1.barcode, 13) != $1.checksum + 48) { - $k[$j++] = "bwipp.itf14badCheckDigit"; - $k[$j++] = "Incorrect ITF-14 check digit provided"; - $0.raiseerror(); - } - } else { - var _k = $s(14); - $puti(_k, 0, $1.barcode); - $put(_k, 13, $1.checksum + 48); - $1.barcode = _k; - var _p = $1.hasspace ? 2 : 1; - var _q = $s($1.text.length + _p); - $puti(_q, _q.length - 2, " "); - $put(_q, _q.length - 1, $1.checksum + 48); - $puti(_q, 0, $1.text); - $1.text = _q; - } - $put($1.options, "dontdraw", true); - $put($1.options, "showborder", $1.showborder); - $put($1.options, "borderwidth", $1.borderwidth); - $put($1.options, "borderleft", $1.borderleft); - $put($1.options, "borderright", $1.borderright); - $put($1.options, "height", $1.height); - $put($1.options, "textyoffset", $1.textyoffset); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.interleaved2of5(); - var _18 = $k[--$j]; - $1[$k[--$j]] = _18; - $put($1.args, "txt", $a([ $a([ $1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ]) ])); - $put($1.args, "textxalign", "center"); - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#6305 + $1.options = $k[--$j]; //#6307 + $1.barcode = $k[--$j]; //#6308 + $1.dontdraw = false; //#6310 + $1.includetext = false; //#6311 + $1.includecheckintext = true; //#6312 + $1.textfont = "OCR-B"; //#6313 + $1.textsize = 10; //#6314 + $1.textxoffset = 0; //#6315 + $1.textyoffset = 3; //#6316 + $1.height = 0.5; //#6317 + $1.showborder = true; //#6318 + $1.borderwidth = 4; //#6319 + $1.borderleft = 15; //#6320 + $1.borderright = 15; //#6321 + $forall($1.options, function() { //#6332 + var _3 = $k[--$j]; //#6332 + $1[$k[--$j]] = _3; //#6332 + }); //#6332 + $1.textfont = "" + $1.textfont; //#6334 + $1.textsize = +$1.textsize; //#6335 + $1.textxoffset = +$1.textxoffset; //#6336 + $1.textyoffset = +$1.textyoffset; //#6337 + $1.height = +$1.height; //#6338 + $1.borderwidth = +$1.borderwidth; //#6339 + $1.borderleft = +$1.borderleft; //#6340 + $1.borderright = +$1.borderright; //#6341 + $1.text = $1.barcode; //#6344 + var _E = $1.barcode; //#6345 + $k[$j++] = $s(_E.length); //#6346 + $k[$j++] = 0; //#6346 + $forall(_E, function() { //#6346 + var _G = $k[--$j]; //#6346 + $k[$j++] = _G; //#6346 + if (_G != 32) { //#6346 + var _H = $k[--$j]; //#6346 + var _I = $k[--$j]; //#6346 + var _J = $k[--$j]; //#6346 + $put(_J, _I, _H); //#6346 + $k[$j++] = _J; //#6346 + $k[$j++] = $f(_I + 1); //#6346 + } else { //#6346 + $j--; //#6346 + } //#6346 + }); //#6346 + var _K = $k[--$j]; //#6347 + $1.barcode = $geti($k[--$j], 0, _K); //#6347 + $1.hasspace = $1.text.length != $1.barcode.length; //#6348 + if (($1.barcode.length != 13) && ($1.barcode.length != 14)) { //#6353 + $k[$j++] = 'bwipp.itf14badLength'; //#6352 + $k[$j++] = "ITF-14 must be 13 or 14 digits"; //#6352 + $0.raiseerror(); //#6352 + } //#6352 + var _R = $1.barcode; //#6354 + for (var _S = 0, _T = _R.length; _S < _T; _S++) { //#6358 + var _U = $get(_R, _S); //#6358 + if ((_U < 48) || (_U > 57)) { //#6357 + $k[$j++] = 'bwipp.itf14badCharacter'; //#6356 + $k[$j++] = "ITF-14 must contain only digits"; //#6356 + $0.raiseerror(); //#6356 + } //#6356 + } //#6356 + $1.checksum = 0; //#6361 + for (var _V = 0; _V <= 12; _V += 1) { //#6365 + $1.i = _V; //#6363 + $k[$j++] = 'checksum'; //#6364 + $k[$j++] = $1.checksum; //#6364 + $k[$j++] = $f($get($1.barcode, $1.i) - 48); //#6364 + if (($1.i % 2) == 0) { //#6364 + var _b = $k[--$j]; //#6364 + $k[$j++] = _b * 3; //#6364 + } //#6364 + var _c = $k[--$j]; //#6364 + var _d = $k[--$j]; //#6364 + $1[$k[--$j]] = $f(_d + _c); //#6364 + } //#6364 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#6366 + if ($1.barcode.length == 14) { //#6380 + if ($get($1.barcode, 13) != ($1.checksum + 48)) { //#6370 + $k[$j++] = 'bwipp.itf14badCheckDigit'; //#6369 + $k[$j++] = "Incorrect ITF-14 check digit provided"; //#6369 + $0.raiseerror(); //#6369 + } //#6369 + } else { //#6380 + var _k = $s(14); //#6372 + $puti(_k, 0, $1.barcode); //#6373 + $put(_k, 13, $1.checksum + 48); //#6374 + $1.barcode = _k; //#6375 + var _p = $1.hasspace ? 2 : 1; //#6376 + var _q = $s($1.text.length + _p); //#6376 + $puti(_q, _q.length - 2, " "); //#6377 + $put(_q, _q.length - 1, $1.checksum + 48); //#6378 + $puti(_q, 0, $1.text); //#6379 + $1.text = _q; //#6380 + } //#6380 + $put($1.options, "dontdraw", true); //#6384 + $put($1.options, "showborder", $1.showborder); //#6385 + $put($1.options, "borderwidth", $1.borderwidth); //#6386 + $put($1.options, "borderleft", $1.borderleft); //#6387 + $put($1.options, "borderright", $1.borderright); //#6388 + $put($1.options, "height", $1.height); //#6389 + $put($1.options, "textyoffset", $1.textyoffset); //#6390 + $k[$j++] = 'args'; //#6391 + $k[$j++] = $1.barcode; //#6391 + $k[$j++] = $1.options; //#6391 + $0.interleaved2of5(); //#6391 + var _18 = $k[--$j]; //#6391 + $1[$k[--$j]] = _18; //#6391 + $put($1.args, "txt", $a([$a([$1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])])); //#6393 + $put($1.args, "textxalign", "center"); //#6394 + $put($1.args, "opt", $1.options); //#6395 + $k[$j++] = $1.args; //#6398 + if (!$1.dontdraw) { //#6398 + $0.renlinear(); //#6398 + } //#6398 }; $0.identcode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - if ($1.barcode.length != 11 && $1.barcode.length != 12) { - $k[$j++] = "bwipp.identcodeBadLength"; - $k[$j++] = "Deutsche Post Identcode must be 11 or 12 digits"; - $0.raiseerror(); - } - $forall($1.barcode, function() { - var _D = $k[--$j]; - if (_D < 48 || _D > 57) { - $k[$j++] = "bwipp.identcodeBadCharacter"; - $k[$j++] = "Deutsche Post Identcode must contain only digits"; - $0.raiseerror(); - } - }); - $1.checksum = 0; - for (var _E = 0; _E <= 10; _E += 1) { - $1.i = _E; - $k[$j++] = "checksum"; - $k[$j++] = $1.checksum; - $k[$j++] = $f($get($1.barcode, $1.i) - 48); - if ($1.i % 2 == 0) { - var _K = $k[--$j]; - $k[$j++] = _K * 4; - } else { - var _L = $k[--$j]; - $k[$j++] = _L * 9; - } - var _M = $k[--$j]; - var _N = $k[--$j]; - $1[$k[--$j]] = $f(_N + _M); - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 12) { - if ($get($1.barcode, 11) != $1.checksum + 48) { - $k[$j++] = "bwipp.identcodeBadCheckDigit"; - $k[$j++] = "Incorrect Deutsche Post Identcode check digit provided"; - $0.raiseerror(); - } - } - var _U = $s(12); - $puti(_U, 0, $1.barcode); - $put(_U, 11, $1.checksum + 48); - $1.barcode = _U; - $1.text = $strcpy($s(16), " . . "); - $puti($1.text, 0, $geti($1.barcode, 0, 2)); - $puti($1.text, 3, $geti($1.barcode, 2, 3)); - $puti($1.text, 7, $geti($1.barcode, 5, 3)); - $puti($1.text, 11, $geti($1.barcode, 8, 3)); - $puti($1.text, 15, $geti($1.barcode, 11, 1)); - $put($1.options, "dontdraw", true); - $put($1.options, "includecheck", false); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.interleaved2of5(); - var _s = $k[--$j]; - $1[$k[--$j]] = _s; - $put($1.args, "txt", $a([ $a([ $1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ]) ])); - $put($1.args, "textxalign", "center"); - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#6428 + $1.options = $k[--$j]; //#6430 + $1.barcode = $k[--$j]; //#6431 + $1.dontdraw = false; //#6433 + $1.includetext = false; //#6434 + $1.textfont = "OCR-B"; //#6435 + $1.textsize = 10; //#6436 + $1.textxoffset = 0; //#6437 + $1.textyoffset = -8; //#6438 + $1.height = 1; //#6439 + $forall($1.options, function() { //#6450 + var _3 = $k[--$j]; //#6450 + $1[$k[--$j]] = _3; //#6450 + }); //#6450 + $1.textfont = "" + $1.textfont; //#6452 + $1.textsize = +$1.textsize; //#6453 + $1.textxoffset = +$1.textxoffset; //#6454 + $1.textyoffset = +$1.textyoffset; //#6455 + $1.height = +$1.height; //#6456 + if (($1.barcode.length != 11) && ($1.barcode.length != 12)) { //#6461 + $k[$j++] = 'bwipp.identcodeBadLength'; //#6460 + $k[$j++] = "Deutsche Post Identcode must be 11 or 12 digits"; //#6460 + $0.raiseerror(); //#6460 + } //#6460 + $forall($1.barcode, function() { //#6466 + var _D = $k[--$j]; //#6463 + if ((_D < 48) || (_D > 57)) { //#6465 + $k[$j++] = 'bwipp.identcodeBadCharacter'; //#6464 + $k[$j++] = "Deutsche Post Identcode must contain only digits"; //#6464 + $0.raiseerror(); //#6464 + } //#6464 + }); //#6464 + $1.checksum = 0; //#6469 + for (var _E = 0; _E <= 10; _E += 1) { //#6473 + $1.i = _E; //#6471 + $k[$j++] = 'checksum'; //#6472 + $k[$j++] = $1.checksum; //#6472 + $k[$j++] = $f($get($1.barcode, $1.i) - 48); //#6472 + if (($1.i % 2) == 0) { //#6472 + var _K = $k[--$j]; //#6472 + $k[$j++] = _K * 4; //#6472 + } else { //#6472 + var _L = $k[--$j]; //#6472 + $k[$j++] = _L * 9; //#6472 + } //#6472 + var _M = $k[--$j]; //#6472 + var _N = $k[--$j]; //#6472 + $1[$k[--$j]] = $f(_N + _M); //#6472 + } //#6472 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#6474 + if ($1.barcode.length == 12) { //#6479 + if ($get($1.barcode, 11) != ($1.checksum + 48)) { //#6478 + $k[$j++] = 'bwipp.identcodeBadCheckDigit'; //#6477 + $k[$j++] = "Incorrect Deutsche Post Identcode check digit provided"; //#6477 + $0.raiseerror(); //#6477 + } //#6477 + } //#6477 + var _U = $s(12); //#6480 + $puti(_U, 0, $1.barcode); //#6481 + $put(_U, 11, $1.checksum + 48); //#6482 + $1.barcode = _U; //#6483 + $1.text = $strcpy($s(16), " . . "); //#6486 + $puti($1.text, 0, $geti($1.barcode, 0, 2)); //#6487 + $puti($1.text, 3, $geti($1.barcode, 2, 3)); //#6488 + $puti($1.text, 7, $geti($1.barcode, 5, 3)); //#6489 + $puti($1.text, 11, $geti($1.barcode, 8, 3)); //#6490 + $puti($1.text, 15, $geti($1.barcode, 11, 1)); //#6491 + $put($1.options, "dontdraw", true); //#6494 + $put($1.options, "includecheck", false); //#6495 + $k[$j++] = 'args'; //#6496 + $k[$j++] = $1.barcode; //#6496 + $k[$j++] = $1.options; //#6496 + $0.interleaved2of5(); //#6496 + var _s = $k[--$j]; //#6496 + $1[$k[--$j]] = _s; //#6496 + $put($1.args, "txt", $a([$a([$1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])])); //#6498 + $put($1.args, "textxalign", "center"); //#6499 + $put($1.args, "opt", $1.options); //#6500 + $k[$j++] = $1.args; //#6503 + if (!$1.dontdraw) { //#6503 + $0.renlinear(); //#6503 + } //#6503 }; $0.leitcode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - if ($1.barcode.length != 13 && $1.barcode.length != 14) { - $k[$j++] = "bwipp.leitcodeBadLength"; - $k[$j++] = "Deutsche Post Leitcode must be 13 or 14 digits"; - $0.raiseerror(); - } - $forall($1.barcode, function() { - var _D = $k[--$j]; - if (_D < 48 || _D > 57) { - $k[$j++] = "bwipp.leitcodeBadCharacter"; - $k[$j++] = "Deutsche Post Leitcode must contain only digits"; - $0.raiseerror(); - } - }); - $1.checksum = 0; - for (var _E = 0; _E <= 12; _E += 1) { - $1.i = _E; - $k[$j++] = "checksum"; - $k[$j++] = $1.checksum; - $k[$j++] = $f($get($1.barcode, $1.i) - 48); - if ($1.i % 2 == 0) { - var _K = $k[--$j]; - $k[$j++] = _K * 4; - } else { - var _L = $k[--$j]; - $k[$j++] = _L * 9; - } - var _M = $k[--$j]; - var _N = $k[--$j]; - $1[$k[--$j]] = $f(_N + _M); - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 14) { - if ($get($1.barcode, 13) != $1.checksum + 48) { - $k[$j++] = "bwipp.leitcodeBadCheckDigit"; - $k[$j++] = "Incorrect Deutsche Post Leitcode check digit provided"; - $0.raiseerror(); - } - } - var _U = $s(14); - $puti(_U, 0, $1.barcode); - $put(_U, 13, $1.checksum + 48); - $1.barcode = _U; - $1.text = $strcpy($s(18), " . . . "); - $puti($1.text, 0, $geti($1.barcode, 0, 5)); - $puti($1.text, 6, $geti($1.barcode, 5, 3)); - $puti($1.text, 10, $geti($1.barcode, 8, 3)); - $puti($1.text, 14, $geti($1.barcode, 11, 2)); - $puti($1.text, 17, $geti($1.barcode, 13, 1)); - $put($1.options, "dontdraw", true); - $put($1.options, "includecheck", false); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.interleaved2of5(); - var _s = $k[--$j]; - $1[$k[--$j]] = _s; - $put($1.args, "txt", $a([ $a([ $1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ]) ])); - $put($1.args, "textxalign", "center"); - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#6533 + $1.options = $k[--$j]; //#6535 + $1.barcode = $k[--$j]; //#6536 + $1.dontdraw = false; //#6538 + $1.includetext = false; //#6539 + $1.textfont = "OCR-B"; //#6540 + $1.textsize = 10; //#6541 + $1.textxoffset = 0; //#6542 + $1.textyoffset = -8; //#6543 + $1.height = 1; //#6544 + $forall($1.options, function() { //#6555 + var _3 = $k[--$j]; //#6555 + $1[$k[--$j]] = _3; //#6555 + }); //#6555 + $1.textfont = "" + $1.textfont; //#6557 + $1.textsize = +$1.textsize; //#6558 + $1.textxoffset = +$1.textxoffset; //#6559 + $1.textyoffset = +$1.textyoffset; //#6560 + $1.height = +$1.height; //#6561 + if (($1.barcode.length != 13) && ($1.barcode.length != 14)) { //#6566 + $k[$j++] = 'bwipp.leitcodeBadLength'; //#6565 + $k[$j++] = "Deutsche Post Leitcode must be 13 or 14 digits"; //#6565 + $0.raiseerror(); //#6565 + } //#6565 + $forall($1.barcode, function() { //#6571 + var _D = $k[--$j]; //#6568 + if ((_D < 48) || (_D > 57)) { //#6570 + $k[$j++] = 'bwipp.leitcodeBadCharacter'; //#6569 + $k[$j++] = "Deutsche Post Leitcode must contain only digits"; //#6569 + $0.raiseerror(); //#6569 + } //#6569 + }); //#6569 + $1.checksum = 0; //#6574 + for (var _E = 0; _E <= 12; _E += 1) { //#6578 + $1.i = _E; //#6576 + $k[$j++] = 'checksum'; //#6577 + $k[$j++] = $1.checksum; //#6577 + $k[$j++] = $f($get($1.barcode, $1.i) - 48); //#6577 + if (($1.i % 2) == 0) { //#6577 + var _K = $k[--$j]; //#6577 + $k[$j++] = _K * 4; //#6577 + } else { //#6577 + var _L = $k[--$j]; //#6577 + $k[$j++] = _L * 9; //#6577 + } //#6577 + var _M = $k[--$j]; //#6577 + var _N = $k[--$j]; //#6577 + $1[$k[--$j]] = $f(_N + _M); //#6577 + } //#6577 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#6579 + if ($1.barcode.length == 14) { //#6584 + if ($get($1.barcode, 13) != ($1.checksum + 48)) { //#6583 + $k[$j++] = 'bwipp.leitcodeBadCheckDigit'; //#6582 + $k[$j++] = "Incorrect Deutsche Post Leitcode check digit provided"; //#6582 + $0.raiseerror(); //#6582 + } //#6582 + } //#6582 + var _U = $s(14); //#6585 + $puti(_U, 0, $1.barcode); //#6586 + $put(_U, 13, $1.checksum + 48); //#6587 + $1.barcode = _U; //#6588 + $1.text = $strcpy($s(18), " . . . "); //#6591 + $puti($1.text, 0, $geti($1.barcode, 0, 5)); //#6592 + $puti($1.text, 6, $geti($1.barcode, 5, 3)); //#6593 + $puti($1.text, 10, $geti($1.barcode, 8, 3)); //#6594 + $puti($1.text, 14, $geti($1.barcode, 11, 2)); //#6595 + $puti($1.text, 17, $geti($1.barcode, 13, 1)); //#6596 + $put($1.options, "dontdraw", true); //#6599 + $put($1.options, "includecheck", false); //#6600 + $k[$j++] = 'args'; //#6601 + $k[$j++] = $1.barcode; //#6601 + $k[$j++] = $1.options; //#6601 + $0.interleaved2of5(); //#6601 + var _s = $k[--$j]; //#6601 + $1[$k[--$j]] = _s; //#6601 + $put($1.args, "txt", $a([$a([$1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])])); //#6603 + $put($1.args, "textxalign", "center"); //#6604 + $put($1.args, "opt", $1.options); //#6605 + $k[$j++] = $1.args; //#6608 + if (!$1.dontdraw) { //#6608 + $0.renlinear(); //#6608 + } //#6608 }; $0.databaromni = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.height = 33 / 72; - $1.linkage = false; - $1.format = "omni"; - $1.barxmult = 33; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - if ($eq($1.format, "truncated")) { - $1.height = 13 / 72; - } - $1.height = +$1.height; - $1.barxmult = ~~$1.barxmult; - if ($ne($geti($1.barcode, 0, 4), "(01)")) { - $k[$j++] = "bwipp.databaromniBadAI"; - $k[$j++] = "GS1 DataBar Omnidirectional must begin with (01) application identifier"; - $0.raiseerror(); - } - if ($1.barcode.length != 17 && $1.barcode.length != 18) { - $k[$j++] = "bwipp.databaromniBadLength"; - $k[$j++] = "GS1 DataBar Omnidirectional must be 13 or 14 digits"; - $0.raiseerror(); - } - var _E = $geti($1.barcode, 4, $1.barcode.length - 4); - for (var _F = 0, _G = _E.length; _F < _G; _F++) { - var _H = $get(_E, _F); - if (_H < 48 || _H > 57) { - $k[$j++] = "bwipp.databaromniBadCharacter"; - $k[$j++] = "GS1 DataBar Omnidirectional must contain only digits"; - $0.raiseerror(); - } - } - $1.checksum = 0; - for (var _I = 0; _I <= 12; _I += 1) { - $1.i = _I; - $k[$j++] = "checksum"; - $k[$j++] = $1.checksum; - $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); - if ($1.i % 2 == 0) { - var _O = $k[--$j]; - $k[$j++] = _O * 3; - } - var _P = $k[--$j]; - var _Q = $k[--$j]; - $1[$k[--$j]] = $f(_Q + _P); - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 18) { - if ($get($1.barcode, 17) != $1.checksum + 48) { - $k[$j++] = "bwipp.databaromniBadCheckDigit"; - $k[$j++] = "Incorrect GS1 DataBar Omnidirectional check digit provided"; - $0.raiseerror(); - } - } - var _X = $s(18); - $puti(_X, 0, $1.barcode); - $put(_X, 17, $1.checksum + 48); - $1.barcode = _X; - $1.txt = $a($1.barcode.length); - for (var _e = 0, _d = $1.barcode.length - 1; _e <= _d; _e += 1) { - $1.i = _e; - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), 0, 0, "", 0 ])); - } + var $1 = {}; //#6638 + $1.options = $k[--$j]; //#6640 + $1.barcode = $k[--$j]; //#6641 + $1.dontdraw = false; //#6643 + $1.height = 33 / 72; //#6644 + $1.linkage = false; //#6645 + $1.format = "omni"; //#6646 + $1.barxmult = 33; //#6647 + $forall($1.options, function() { //#6658 + var _3 = $k[--$j]; //#6658 + $1[$k[--$j]] = _3; //#6658 + }); //#6658 + if ($eq($1.format, "truncated")) { //#6660 + $1.height = 13 / 72; //#6660 + } //#6660 + $1.height = +$1.height; //#6661 + $1.barxmult = ~~$1.barxmult; //#6662 + if ($ne($geti($1.barcode, 0, 4), "(01)")) { //#6667 + $k[$j++] = 'bwipp.databaromniBadAI'; //#6666 + $k[$j++] = "GS1 DataBar Omnidirectional must begin with (01) application identifier"; //#6666 + $0.raiseerror(); //#6666 + } //#6666 + if (($1.barcode.length != 17) && ($1.barcode.length != 18)) { //#6670 + $k[$j++] = 'bwipp.databaromniBadLength'; //#6669 + $k[$j++] = "GS1 DataBar Omnidirectional must be 13 or 14 digits"; //#6669 + $0.raiseerror(); //#6669 + } //#6669 + var _E = $geti($1.barcode, 4, $1.barcode.length - 4); //#6671 + for (var _F = 0, _G = _E.length; _F < _G; _F++) { //#6675 + var _H = $get(_E, _F); //#6675 + if ((_H < 48) || (_H > 57)) { //#6674 + $k[$j++] = 'bwipp.databaromniBadCharacter'; //#6673 + $k[$j++] = "GS1 DataBar Omnidirectional must contain only digits"; //#6673 + $0.raiseerror(); //#6673 + } //#6673 + } //#6673 + $1.checksum = 0; //#6678 + for (var _I = 0; _I <= 12; _I += 1) { //#6682 + $1.i = _I; //#6680 + $k[$j++] = 'checksum'; //#6681 + $k[$j++] = $1.checksum; //#6681 + $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); //#6681 + if (($1.i % 2) == 0) { //#6681 + var _O = $k[--$j]; //#6681 + $k[$j++] = _O * 3; //#6681 + } //#6681 + var _P = $k[--$j]; //#6681 + var _Q = $k[--$j]; //#6681 + $1[$k[--$j]] = $f(_Q + _P); //#6681 + } //#6681 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#6683 + if ($1.barcode.length == 18) { //#6688 + if ($get($1.barcode, 17) != ($1.checksum + 48)) { //#6687 + $k[$j++] = 'bwipp.databaromniBadCheckDigit'; //#6686 + $k[$j++] = "Incorrect GS1 DataBar Omnidirectional check digit provided"; //#6686 + $0.raiseerror(); //#6686 + } //#6686 + } //#6686 + var _X = $s(18); //#6689 + $puti(_X, 0, $1.barcode); //#6690 + $put(_X, 17, $1.checksum + 48); //#6691 + $1.barcode = _X; //#6692 + $1.txt = $a($1.barcode.length); //#6695 + for (var _e = 0, _d = $1.barcode.length - 1; _e <= _d; _e += 1) { //#6699 + $1.i = _e; //#6697 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), 0, 0, "", 0])); //#6698 + } //#6698 $1.ncr = function() { - var _l = $k[--$j]; - var _m = $k[--$j]; - var _n = $f(_m - _l); - if (_l < $f(_m - _l)) { - var _ = _n; - _n = _l; - _l = _; - } - $k[$j++] = _n; - $k[$j++] = 1; - $k[$j++] = 1; - for (var _p = _m, _o = $f(_l + 1); _p >= _o; _p -= 1) { - var _q = $k[--$j]; - var _r = $k[--$j]; - var _s = $k[--$j]; - $k[$j++] = _s; - $k[$j++] = _r; - $k[$j++] = _q * _p; - if ($le(_r, _s)) { - var _t = $k[--$j]; - var _u = $k[--$j]; - $k[$j++] = $f(_u + 1); - $k[$j++] = ~~(_t / _u); - } - } - for (;;) { - var _v = $k[--$j]; - var _w = $k[--$j]; - var _x = $k[--$j]; - $k[$j++] = _x; - $k[$j++] = _w; - $k[$j++] = _v; - if ($gt(_w, _x)) { - break; - } - var _y = $k[--$j]; - var _z = $k[--$j]; - $k[$j++] = $f(_z + 1); - $k[$j++] = ~~(_y / _z); - } - var _10 = $k[--$j]; - var _11 = $k[--$j]; - $k[$j++] = _10; - $k[$j++] = _11; - $j--; - var _12 = $k[--$j]; - var _13 = $k[--$j]; - $k[$j++] = _12; - $k[$j++] = _13; - $j--; - }; + var _l = $k[--$j]; //#6702 + var _m = $k[--$j]; //#6702 + var _n = $f(_m - _l); //#6702 + if (_l < $f(_m - _l)) { //#6702 + var _ = _n; //#6702 + _n = _l; //#6702 + _l = _; //#6702 + } //#6702 + $k[$j++] = _n; //#6709 + $k[$j++] = 1; //#6709 + $k[$j++] = 1; //#6709 + for (var _p = _m, _o = $f(_l + 1); _p >= _o; _p -= 1) { //#6709 + var _q = $k[--$j]; //#6705 + var _r = $k[--$j]; //#6706 + var _s = $k[--$j]; //#6706 + $k[$j++] = _s; //#6708 + $k[$j++] = _r; //#6708 + $k[$j++] = _q * _p; //#6708 + if ($le(_r, _s)) { //#6708 + var _t = $k[--$j]; //#6707 + var _u = $k[--$j]; //#6707 + $k[$j++] = $f(_u + 1); //#6707 + $k[$j++] = ~~(_t / _u); //#6707 + } //#6707 + } //#6707 + for (;;) { //#6713 + var _v = $k[--$j]; //#6711 + var _w = $k[--$j]; //#6711 + var _x = $k[--$j]; //#6711 + $k[$j++] = _x; //#6711 + $k[$j++] = _w; //#6711 + $k[$j++] = _v; //#6711 + if ($gt(_w, _x)) { //#6711 + break; //#6711 + } //#6711 + var _y = $k[--$j]; //#6712 + var _z = $k[--$j]; //#6712 + $k[$j++] = $f(_z + 1); //#6712 + $k[$j++] = ~~(_y / _z); //#6712 + } //#6712 + var _10 = $k[--$j]; //#6714 + var _11 = $k[--$j]; //#6714 + $k[$j++] = _10; //#6714 + $k[$j++] = _11; //#6714 + $j--; //#6714 + var _12 = $k[--$j]; //#6714 + var _13 = $k[--$j]; //#6714 + $k[$j++] = _12; //#6714 + $k[$j++] = _13; //#6714 + $j--; //#6714 + }; //#6715 $1.getRSSwidths = function() { - $1.oe = $k[--$j]; - $1.el = $k[--$j]; - $1.mw = $k[--$j]; - $1.nm = $k[--$j]; - $1.val = $k[--$j]; - $1.out = $a($1.el); - $1.mask = 0; - for (var _1D = 0, _1C = $f($1.el - 2); _1D <= _1C; _1D += 1) { - $1.bar = _1D; - $1.ew = 1; - var _1F = $1.bar; - $1.mask = $1.mask | (_1F < 0 ? 1 >>> -_1F : 1 << _1F); - for (;;) { - $k[$j++] = "sval"; - $k[$j++] = $f($f($1.nm - $1.ew) - 1); - $k[$j++] = $f($f($1.el - $1.bar) - 2); - $1.ncr(); - var _1K = $k[--$j]; - $1[$k[--$j]] = _1K; - if ($1.oe && $1.mask == 0 && $f($f($f($1.nm - $1.ew) - $1.el * 2) + $1.bar * 2) >= -2) { - $k[$j++] = "sval"; - $k[$j++] = $1.sval; - $k[$j++] = $f($f($f($1.nm - $1.ew) - $1.el) + $1.bar); - $k[$j++] = $f($f($1.el - $1.bar) - 2); - $1.ncr(); - var _1Z = $k[--$j]; - var _1a = $k[--$j]; - $1[$k[--$j]] = $f(_1a - _1Z); - } - if ($f($1.el - $1.bar) > 2) { - $1.lval = 0; - for (var _1k = $f($f($f($f($1.nm - $1.ew) - $1.el) + $1.bar) + 2), _1j = $f($1.mw + 1); _1k >= _1j; _1k -= 1) { - $k[$j++] = $f($f($f($1.nm - _1k) - $1.ew) - 1); - $k[$j++] = $f($f($1.el - $1.bar) - 3); - $1.ncr(); - $1.lval = $f($k[--$j] + $1.lval); - } - $1.sval = $f($1.sval - $1.lval * $f($f($1.el - $1.bar) - 1)); - } else { - if ($f($1.nm - $1.ew) > $1.mw) { - $1.sval = $f($1.sval - 1); - } - } - $1.val = $f($1.val - $1.sval); - if ($1.val < 0) { - break; - } - $1.ew = $1.ew + 1; - var _24 = $1.bar; - $1.mask = $1.mask & ~(_24 < 0 ? 1 >>> -_24 : 1 << _24); - } - $1.val = $f($1.val + $1.sval); - $1.nm = $f($1.nm - $1.ew); - $put($1.out, $1.bar, $1.ew); - } - $put($1.out, $f($1.el - 1), $1.nm); - $k[$j++] = $1.out; - }; - $k[$j++] = Infinity; - var _2H = $1.linkage ? 1 : 0; - var _2J = $geti($1.barcode, 4, 13); - $k[$j++] = _2H; - for (var _2K = 0, _2L = _2J.length; _2K < _2L; _2K++) { - $k[$j++] = $f($get(_2J, _2K) - 48); - } - $1.binval = $a(); - for (var _2O = 0; _2O <= 12; _2O += 1) { - $1.i = _2O; - var _2P = $1.binval; - var _2Q = $1.i; - $put(_2P, _2Q + 1, $f($get(_2P, _2Q + 1) + $get($1.binval, $1.i) % 4537077 * 10)); - $put($1.binval, $1.i, ~~($get($1.binval, $1.i) / 4537077)); - } - $1.right = $get($1.binval, 13) % 4537077; - var _2c = $1.binval; - $put(_2c, 13, ~~($get(_2c, 13) / 4537077)); - $1.left = 0; - $1.i = true; - for (var _2e = 0; _2e <= 13; _2e += 1) { - $1.j = _2e; - var _2h = $get($1.binval, $1.j); - $k[$j++] = _2h; - if (_2h == 0 && $1.i) { - $j--; - } else { - $1.i = false; - $1.left = $f($1.left + $k[--$j] * ~~Math.pow(10, 13 - $1.j)); - } - } - $1.d1 = ~~($1.left / 1597); - $1.d2 = $1.left % 1597; - $1.d3 = ~~($1.right / 1597); - $1.d4 = $1.right % 1597; - $1.tab164 = $a([ 160, 0, 12, 4, 8, 1, 161, 1, 960, 161, 10, 6, 6, 3, 80, 10, 2014, 961, 8, 8, 4, 5, 31, 34, 2714, 2015, 6, 10, 3, 6, 10, 70, 2840, 2715, 4, 12, 1, 8, 1, 126 ]); - $1.tab154 = $a([ 335, 0, 5, 10, 2, 7, 4, 84, 1035, 336, 7, 8, 4, 5, 20, 35, 1515, 1036, 9, 6, 6, 3, 48, 10, 1596, 1516, 11, 4, 8, 1, 81, 1 ]); - $1.i = 0; - for (;;) { - if ($1.d1 <= $get($1.tab164, $1.i)) { - var _2y = $geti($1.tab164, $1.i + 1, 7); - for (var _2z = 0, _30 = _2y.length; _2z < _30; _2z++) { - $k[$j++] = $get(_2y, _2z); - } - $1.d1te = $k[--$j]; - $1.d1to = $k[--$j]; - $1.d1mwe = $k[--$j]; - $1.d1mwo = $k[--$j]; - $1.d1ele = $k[--$j]; - $1.d1elo = $k[--$j]; - $1.d1gs = $k[--$j]; - break; - } - $1.i = $1.i + 8; - } - $1.i = 0; - for (;;) { - if ($1.d2 <= $get($1.tab154, $1.i)) { - var _3G = $geti($1.tab154, $1.i + 1, 7); - for (var _3H = 0, _3I = _3G.length; _3H < _3I; _3H++) { - $k[$j++] = $get(_3G, _3H); - } - $1.d2te = $k[--$j]; - $1.d2to = $k[--$j]; - $1.d2mwe = $k[--$j]; - $1.d2mwo = $k[--$j]; - $1.d2ele = $k[--$j]; - $1.d2elo = $k[--$j]; - $1.d2gs = $k[--$j]; - break; - } - $1.i = $1.i + 8; - } - $1.i = 0; - for (;;) { - if ($1.d3 <= $get($1.tab164, $1.i)) { - var _3Y = $geti($1.tab164, $1.i + 1, 7); - for (var _3Z = 0, _3a = _3Y.length; _3Z < _3a; _3Z++) { - $k[$j++] = $get(_3Y, _3Z); - } - $1.d3te = $k[--$j]; - $1.d3to = $k[--$j]; - $1.d3mwe = $k[--$j]; - $1.d3mwo = $k[--$j]; - $1.d3ele = $k[--$j]; - $1.d3elo = $k[--$j]; - $1.d3gs = $k[--$j]; - break; - } - $1.i = $1.i + 8; - } - $1.i = 0; - for (;;) { - if ($1.d4 <= $get($1.tab154, $1.i)) { - var _3q = $geti($1.tab154, $1.i + 1, 7); - for (var _3r = 0, _3s = _3q.length; _3r < _3s; _3r++) { - $k[$j++] = $get(_3q, _3r); - } - $1.d4te = $k[--$j]; - $1.d4to = $k[--$j]; - $1.d4mwe = $k[--$j]; - $1.d4mwo = $k[--$j]; - $1.d4ele = $k[--$j]; - $1.d4elo = $k[--$j]; - $1.d4gs = $k[--$j]; - break; - } - $1.i = $1.i + 8; - } - $k[$j++] = "d1wo"; - $k[$j++] = ~~($f($1.d1 - $1.d1gs) / $1.d1te); - $k[$j++] = $1.d1elo; - $k[$j++] = $1.d1mwo; - $k[$j++] = 4; - $k[$j++] = false; - $1.getRSSwidths(); - var _47 = $k[--$j]; - $1[$k[--$j]] = _47; - $k[$j++] = "d1we"; - $k[$j++] = $f($1.d1 - $1.d1gs) % $1.d1te; - $k[$j++] = $1.d1ele; - $k[$j++] = $1.d1mwe; - $k[$j++] = 4; - $k[$j++] = true; - $1.getRSSwidths(); - var _4E = $k[--$j]; - $1[$k[--$j]] = _4E; - $k[$j++] = "d2wo"; - $k[$j++] = $f($1.d2 - $1.d2gs) % $1.d2to; - $k[$j++] = $1.d2elo; - $k[$j++] = $1.d2mwo; - $k[$j++] = 4; - $k[$j++] = true; - $1.getRSSwidths(); - var _4L = $k[--$j]; - $1[$k[--$j]] = _4L; - $k[$j++] = "d2we"; - $k[$j++] = ~~($f($1.d2 - $1.d2gs) / $1.d2to); - $k[$j++] = $1.d2ele; - $k[$j++] = $1.d2mwe; - $k[$j++] = 4; - $k[$j++] = false; - $1.getRSSwidths(); - var _4S = $k[--$j]; - $1[$k[--$j]] = _4S; - $k[$j++] = "d3wo"; - $k[$j++] = ~~($f($1.d3 - $1.d3gs) / $1.d3te); - $k[$j++] = $1.d3elo; - $k[$j++] = $1.d3mwo; - $k[$j++] = 4; - $k[$j++] = false; - $1.getRSSwidths(); - var _4Z = $k[--$j]; - $1[$k[--$j]] = _4Z; - $k[$j++] = "d3we"; - $k[$j++] = $f($1.d3 - $1.d3gs) % $1.d3te; - $k[$j++] = $1.d3ele; - $k[$j++] = $1.d3mwe; - $k[$j++] = 4; - $k[$j++] = true; - $1.getRSSwidths(); - var _4g = $k[--$j]; - $1[$k[--$j]] = _4g; - $k[$j++] = "d4wo"; - $k[$j++] = $f($1.d4 - $1.d4gs) % $1.d4to; - $k[$j++] = $1.d4elo; - $k[$j++] = $1.d4mwo; - $k[$j++] = 4; - $k[$j++] = true; - $1.getRSSwidths(); - var _4n = $k[--$j]; - $1[$k[--$j]] = _4n; - $k[$j++] = "d4we"; - $k[$j++] = ~~($f($1.d4 - $1.d4gs) / $1.d4to); - $k[$j++] = $1.d4ele; - $k[$j++] = $1.d4mwe; - $k[$j++] = 4; - $k[$j++] = false; - $1.getRSSwidths(); - var _4u = $k[--$j]; - $1[$k[--$j]] = _4u; - $1.d1w = $a(8); - for (var _4x = 0; _4x <= 3; _4x += 1) { - $1.i = _4x; - $put($1.d1w, $1.i * 2, $get($1.d1wo, $1.i)); - $put($1.d1w, $1.i * 2 + 1, $get($1.d1we, $1.i)); - } - $1.d2w = $a(8); - for (var _59 = 0; _59 <= 3; _59 += 1) { - $1.i = _59; - $put($1.d2w, 7 - $1.i * 2, $get($1.d2wo, $1.i)); - $put($1.d2w, 6 - $1.i * 2, $get($1.d2we, $1.i)); - } - $1.d3w = $a(8); - for (var _5L = 0; _5L <= 3; _5L += 1) { - $1.i = _5L; - $put($1.d3w, 7 - $1.i * 2, $get($1.d3wo, $1.i)); - $put($1.d3w, 6 - $1.i * 2, $get($1.d3we, $1.i)); - } - $1.d4w = $a(8); - for (var _5X = 0; _5X <= 3; _5X += 1) { - $1.i = _5X; - $put($1.d4w, $1.i * 2, $get($1.d4wo, $1.i)); - $put($1.d4w, $1.i * 2 + 1, $get($1.d4we, $1.i)); - } - $k[$j++] = Infinity; - var _5i = $1.d1w; - for (var _5j = 0, _5k = _5i.length; _5j < _5k; _5j++) { - $k[$j++] = $get(_5i, _5j); - } - var _5m = $1.d2w; - for (var _5n = 0, _5o = _5m.length; _5n < _5o; _5n++) { - $k[$j++] = $get(_5m, _5n); - } - var _5q = $1.d3w; - for (var _5r = 0, _5s = _5q.length; _5r < _5s; _5r++) { - $k[$j++] = $get(_5q, _5r); - } - var _5u = $1.d4w; - for (var _5v = 0, _5w = _5u.length; _5v < _5w; _5v++) { - $k[$j++] = $get(_5u, _5v); - } - $1.widths = $a(); - $1.checkweights = $a([ 1, 3, 9, 27, 2, 6, 18, 54, 58, 72, 24, 8, 29, 36, 12, 4, 74, 51, 17, 32, 37, 65, 48, 16, 64, 34, 23, 69, 49, 68, 46, 59 ]); - $1.checkwidths = $a([ 3, 8, 2, 1, 1, 3, 5, 5, 1, 1, 3, 3, 7, 1, 1, 3, 1, 9, 1, 1, 2, 7, 4, 1, 1, 2, 5, 6, 1, 1, 2, 3, 8, 1, 1, 1, 5, 7, 1, 1, 1, 3, 9, 1, 1 ]); - $1.checksum = 0; - for (var _61 = 0; _61 <= 31; _61 += 1) { - $1.i = _61; - $1.checksum = $f($1.checksum + $get($1.widths, $1.i) * $get($1.checkweights, $1.i)); - } - $1.checksum = $1.checksum % 79; - if ($1.checksum >= 8) { - $1.checksum = $f($1.checksum + 1); - } - if ($1.checksum >= 72) { - $1.checksum = $f($1.checksum + 1); - } - $1.checklt = $geti($1.checkwidths, ~~($1.checksum / 9) * 5, 5); - $1.checkrtrev = $geti($1.checkwidths, $1.checksum % 9 * 5, 5); - $1.checkrt = $a(5); - for (var _6L = 0; _6L <= 4; _6L += 1) { - $1.i = _6L; - $put($1.checkrt, $1.i, $get($1.checkrtrev, 4 - $1.i)); - } - if ($eq($1.format, "omni") || $eq($1.format, "truncated")) { - $k[$j++] = Infinity; - var _6T = $1.d1w; - $k[$j++] = 1; - for (var _6U = 0, _6V = _6T.length; _6U < _6V; _6U++) { - $k[$j++] = $get(_6T, _6U); - } - var _6X = $1.checklt; - for (var _6Y = 0, _6Z = _6X.length; _6Y < _6Z; _6Y++) { - $k[$j++] = $get(_6X, _6Y); - } - var _6b = $1.d2w; - for (var _6c = 0, _6d = _6b.length; _6c < _6d; _6c++) { - $k[$j++] = $get(_6b, _6c); - } - var _6f = $1.d4w; - for (var _6g = 0, _6h = _6f.length; _6g < _6h; _6g++) { - $k[$j++] = $get(_6f, _6g); - } - var _6j = $1.checkrt; - for (var _6k = 0, _6l = _6j.length; _6k < _6l; _6k++) { - $k[$j++] = $get(_6j, _6k); - } - var _6n = $1.d3w; - for (var _6o = 0, _6p = _6n.length; _6o < _6p; _6o++) { - $k[$j++] = $get(_6n, _6o); - } - $k[$j++] = 1; - $k[$j++] = 1; - $1.sbs = $a(); - $k[$j++] = Infinity; - var _6s = $1.sbs; - $k[$j++] = Infinity; - for (var _6u = 0, _6v = ~~(($1.sbs.length + 1) / 2); _6u < _6v; _6u++) { - $k[$j++] = $1.height; - } - var _6x = $a(); - $k[$j++] = Infinity; - for (var _6z = 0, _70 = ~~(($1.sbs.length + 1) / 2); _6z < _70; _6z++) { - $k[$j++] = 0; - } - var _71 = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _6s; - $k[$j++] = "bhs"; - $k[$j++] = _6x; - $k[$j++] = "bbs"; - $k[$j++] = _71; - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - $k[$j++] = "textxalign"; - $k[$j++] = "center"; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _74 = $d(); - $k[$j++] = _74; - if (!$1.dontdraw) { - $0.renlinear(); - } - } else { - $k[$j++] = Infinity; - var _76 = $1.d1w; - $k[$j++] = 1; - $k[$j++] = 1; - for (var _77 = 0, _78 = _76.length; _77 < _78; _77++) { - $k[$j++] = $get(_76, _77); - } - var _7A = $1.checklt; - for (var _7B = 0, _7C = _7A.length; _7B < _7C; _7B++) { - $k[$j++] = $get(_7A, _7B); - } - var _7E = $1.d2w; - for (var _7F = 0, _7G = _7E.length; _7F < _7G; _7F++) { - $k[$j++] = $get(_7E, _7F); - } - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 0; - $1.top = $a(); - $k[$j++] = Infinity; - var _7J = $1.d4w; - $k[$j++] = 1; - $k[$j++] = 1; - for (var _7K = 0, _7L = _7J.length; _7K < _7L; _7K++) { - $k[$j++] = $get(_7J, _7K); - } - var _7N = $1.checkrt; - for (var _7O = 0, _7P = _7N.length; _7O < _7P; _7O++) { - $k[$j++] = $get(_7N, _7O); - } - var _7R = $1.d3w; - for (var _7S = 0, _7T = _7R.length; _7S < _7T; _7S++) { - $k[$j++] = $get(_7R, _7S); - } - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 0; - $1.bot = $a(); - for (var _7W = 0; _7W <= 24; _7W += 2) { - $1.i = _7W; - for (var _7a = 0, _7b = $get($1.top, $1.i); _7a < _7b; _7a++) { - $k[$j++] = 0; - } - for (var _7f = 0, _7g = $get($1.top, $1.i + 1); _7f < _7g; _7f++) { - $k[$j++] = 1; - } - } - $astore($a(50)); - $1.top = $k[--$j]; - for (var _7j = 0; _7j <= 24; _7j += 2) { - $1.i = _7j; - for (var _7n = 0, _7o = $get($1.bot, $1.i); _7n < _7o; _7n++) { - $k[$j++] = 1; - } - for (var _7s = 0, _7t = $get($1.bot, $1.i + 1); _7s < _7t; _7s++) { - $k[$j++] = 0; - } - } - $astore($a(50)); - $1.bot = $k[--$j]; - if ($eq($1.format, "stacked")) { - $1.sep = $a(50); - $put($1.sep, 0, 0); - for (var _7z = 1; _7z <= 49; _7z += 1) { - $1.i = _7z; - if ($eq($get($1.top, $1.i), $get($1.bot, $1.i))) { - $put($1.sep, $1.i, $f(1 - $get($1.top, $1.i))); - } else { - $put($1.sep, $1.i, $f(1 - $get($1.sep, $1.i - 1))); - } - } - $puti($1.sep, 0, $a([ 0, 0, 0, 0 ])); - $puti($1.sep, 46, $a([ 0, 0, 0, 0 ])); - $k[$j++] = Infinity; - for (var _8K = 0, _8L = 5; _8K < _8L; _8K++) { - $aload($1.top); - } - $aload($1.sep); - for (var _8O = 0, _8P = 7; _8O < _8P; _8O++) { - $aload($1.bot); - } - $1.pixs = $a(); - $1.pixy = ~~($1.pixs.length / 50); - } - if ($eq($1.format, "stackedomni")) { - $k[$j++] = Infinity; - $forall($1.top, function() { - var _8V = $k[--$j]; - $k[$j++] = $f(1 - _8V); - }); - $1.sep1 = $a(); - $puti($1.sep1, 0, $a([ 0, 0, 0, 0 ])); - $puti($1.sep1, 46, $a([ 0, 0, 0, 0 ])); - for (var _8b = 18; _8b <= 30; _8b += 1) { - $1.i = _8b; - if ($get($1.top, $1.i) == 0) { - if ($get($1.top, $1.i - 1) == 1) { - $k[$j++] = 1; - } else { - var _8l = $get($1.sep1, $1.i - 1) == 0 ? 1 : 0; - $k[$j++] = _8l; - } - } else { - $k[$j++] = 0; - } - $put($1.sep1, $1.i, $k[--$j]); - } - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - for (var _8p = 0, _8q = 21; _8p < _8q; _8p++) { - $k[$j++] = 0; - $k[$j++] = 1; - } - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $1.sep2 = $a(); - $k[$j++] = Infinity; - $forall($1.bot, function() { - var _8t = $k[--$j]; - $k[$j++] = $f(1 - _8t); - }); - $1.sep3 = $a(); - $puti($1.sep3, 0, $a([ 0, 0, 0, 0 ])); - $puti($1.sep3, 46, $a([ 0, 0, 0, 0 ])); - for (var _8z = 19; _8z <= 31; _8z += 1) { - $1.i = _8z; - if ($get($1.bot, $1.i) == 0) { - if ($get($1.bot, $1.i - 1) == 1) { - $k[$j++] = 1; - } else { - var _99 = $get($1.sep3, $1.i - 1) == 0 ? 1 : 0; - $k[$j++] = _99; - } - } else { - $k[$j++] = 0; - } - $put($1.sep3, $1.i, $k[--$j]); - } - $1.f3 = $a([ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1 ]); - $k[$j++] = true; - for (var _9E = 0; _9E <= 12; _9E += 1) { - var _9J = $k[--$j]; - $k[$j++] = _9J && $eq($get($1.bot, _9E + 19), $get($1.f3, _9E)); - } - if ($k[--$j]) { - $puti($1.sep3, 19, $a([ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ])); - } - $k[$j++] = Infinity; - for (var _9O = 0, _9P = $1.barxmult; _9O < _9P; _9O++) { - $aload($1.top); - } - $aload($1.sep1); - $aload($1.sep2); - $aload($1.sep3); - for (var _9V = 0, _9W = $1.barxmult; _9V < _9W; _9V++) { - $aload($1.bot); - } - $1.pixs = $a(); - $1.pixy = ~~($1.pixs.length / 50); - } - var _9e = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", 50 ], [ "pixy", $1.pixy ], [ "height", $1.pixy / 72 ], [ "width", 50 / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _9e; - if (!$1.dontdraw) { - $0.renmatrix(); - } - } + $1.oe = $k[--$j]; //#6718 + $1.el = $k[--$j]; //#6719 + $1.mw = $k[--$j]; //#6720 + $1.nm = $k[--$j]; //#6721 + $1.val = $k[--$j]; //#6722 + $1.out = $a($1.el); //#6723 + $1.mask = 0; //#6724 + for (var _1D = 0, _1C = $f($1.el - 2); _1D <= _1C; _1D += 1) { //#6751 + $1.bar = _1D; //#6726 + $1.ew = 1; //#6727 + var _1F = $1.bar; //#6728 + $1.mask = $1.mask | ((_1F < 0 ? 1 >>> -_1F : 1 << _1F)); //#6728 + for (;;) { //#6747 + $k[$j++] = 'sval'; //#6729 + $k[$j++] = $f($f($1.nm - $1.ew) - 1); //#6729 + $k[$j++] = $f($f($1.el - $1.bar) - 2); //#6729 + $1.ncr(); //#6729 + var _1K = $k[--$j]; //#6729 + $1[$k[--$j]] = _1K; //#6729 + if (($1.oe && ($1.mask == 0)) && (($f(($f($f($1.nm - $1.ew) - ($1.el * 2))) + ($1.bar * 2))) >= -2)) { //#6732 + $k[$j++] = 'sval'; //#6731 + $k[$j++] = $1.sval; //#6731 + $k[$j++] = $f(($f($f($1.nm - $1.ew) - $1.el)) + $1.bar); //#6731 + $k[$j++] = $f($f($1.el - $1.bar) - 2); //#6731 + $1.ncr(); //#6731 + var _1Z = $k[--$j]; //#6731 + var _1a = $k[--$j]; //#6731 + $1[$k[--$j]] = $f(_1a - _1Z); //#6731 + } //#6731 + if ($f($1.el - $1.bar) > 2) { //#6741 + $1.lval = 0; //#6734 + for (var _1k = $f(($f(($f($f($1.nm - $1.ew) - $1.el)) + $1.bar)) + 2), _1j = $f($1.mw + 1); _1k >= _1j; _1k -= 1) { //#6738 + $k[$j++] = $f(($f($f($1.nm - _1k) - $1.ew)) - 1); //#6736 + $k[$j++] = $f($f($1.el - $1.bar) - 3); //#6736 + $1.ncr(); //#6736 + $1.lval = $f($k[--$j] + $1.lval); //#6737 + } //#6737 + $1.sval = $f($1.sval - ($1.lval * ($f($f($1.el - $1.bar) - 1)))); //#6739 + } else { //#6741 + if ($f($1.nm - $1.ew) > $1.mw) { //#6741 + $1.sval = $f($1.sval - 1); //#6741 + } //#6741 + } //#6741 + $1.val = $f($1.val - $1.sval); //#6743 + if ($1.val < 0) { //#6744 + break; //#6744 + } //#6744 + $1.ew = $1.ew + 1; //#6745 + var _24 = $1.bar; //#6746 + $1.mask = $1.mask & (~((_24 < 0 ? 1 >>> -_24 : 1 << _24))); //#6746 + } //#6746 + $1.val = $f($1.val + $1.sval); //#6748 + $1.nm = $f($1.nm - $1.ew); //#6749 + $put($1.out, $1.bar, $1.ew); //#6750 + } //#6750 + $put($1.out, $f($1.el - 1), $1.nm); //#6752 + $k[$j++] = $1.out; //#6753 + }; //#6754 + $k[$j++] = Infinity; //#6758 + var _2H = $1.linkage ? 1 : 0; //#6757 + var _2J = $geti($1.barcode, 4, 13); //#6758 + $k[$j++] = _2H; //#6758 + for (var _2K = 0, _2L = _2J.length; _2K < _2L; _2K++) { //#6758 + $k[$j++] = $f($get(_2J, _2K) - 48); //#6758 + } //#6758 + $1.binval = $a(); //#6758 + for (var _2O = 0; _2O <= 12; _2O += 1) { //#6765 + $1.i = _2O; //#6762 + var _2P = $1.binval; //#6763 + var _2Q = $1.i; //#6763 + $put(_2P, _2Q + 1, $f($get(_2P, _2Q + 1) + (($get($1.binval, $1.i) % 4537077) * 10))); //#6763 + $put($1.binval, $1.i, ~~($get($1.binval, $1.i) / 4537077)); //#6764 + } //#6764 + $1.right = $get($1.binval, 13) % 4537077; //#6766 + var _2c = $1.binval; //#6767 + $put(_2c, 13, ~~($get(_2c, 13) / 4537077)); //#6767 + $1.left = 0; //#6769 + $1.i = true; //#6770 + for (var _2e = 0; _2e <= 13; _2e += 1) { //#6780 + $1.j = _2e; //#6772 + var _2h = $get($1.binval, $1.j); //#6773 + $k[$j++] = _2h; //#6779 + if ((_2h == 0) && $1.i) { //#6778 + $j--; //#6775 + } else { //#6778 + $1.i = false; //#6777 + $1.left = $f($1.left + ($k[--$j] * (~~Math.pow(10, 13 - $1.j)))); //#6778 + } //#6778 + } //#6778 + $1.d1 = ~~($1.left / 1597); //#6782 + $1.d2 = $1.left % 1597; //#6783 + $1.d3 = ~~($1.right / 1597); //#6784 + $1.d4 = $1.right % 1597; //#6785 + $1.tab164 = $a([160, 0, 12, 4, 8, 1, 161, 1, 960, 161, 10, 6, 6, 3, 80, 10, 2014, 961, 8, 8, 4, 5, 31, 34, 2714, 2015, 6, 10, 3, 6, 10, 70, 2840, 2715, 4, 12, 1, 8, 1, 126]); //#6793 + $1.tab154 = $a([335, 0, 5, 10, 2, 7, 4, 84, 1035, 336, 7, 8, 4, 5, 20, 35, 1515, 1036, 9, 6, 6, 3, 48, 10, 1596, 1516, 11, 4, 8, 1, 81, 1]); //#6800 + $1.i = 0; //#6802 + for (;;) { //#6812 + if ($1.d1 <= $get($1.tab164, $1.i)) { //#6810 + var _2y = $geti($1.tab164, $1.i + 1, 7); //#6804 + for (var _2z = 0, _30 = _2y.length; _2z < _30; _2z++) { //#6804 + $k[$j++] = $get(_2y, _2z); //#6804 + } //#6804 + $1.d1te = $k[--$j]; //#6805 + $1.d1to = $k[--$j]; //#6805 + $1.d1mwe = $k[--$j]; //#6806 + $1.d1mwo = $k[--$j]; //#6806 + $1.d1ele = $k[--$j]; //#6807 + $1.d1elo = $k[--$j]; //#6807 + $1.d1gs = $k[--$j]; //#6808 + break; //#6809 + } //#6809 + $1.i = $1.i + 8; //#6811 + } //#6811 + $1.i = 0; //#6814 + for (;;) { //#6824 + if ($1.d2 <= $get($1.tab154, $1.i)) { //#6822 + var _3G = $geti($1.tab154, $1.i + 1, 7); //#6816 + for (var _3H = 0, _3I = _3G.length; _3H < _3I; _3H++) { //#6816 + $k[$j++] = $get(_3G, _3H); //#6816 + } //#6816 + $1.d2te = $k[--$j]; //#6817 + $1.d2to = $k[--$j]; //#6817 + $1.d2mwe = $k[--$j]; //#6818 + $1.d2mwo = $k[--$j]; //#6818 + $1.d2ele = $k[--$j]; //#6819 + $1.d2elo = $k[--$j]; //#6819 + $1.d2gs = $k[--$j]; //#6820 + break; //#6821 + } //#6821 + $1.i = $1.i + 8; //#6823 + } //#6823 + $1.i = 0; //#6826 + for (;;) { //#6836 + if ($1.d3 <= $get($1.tab164, $1.i)) { //#6834 + var _3Y = $geti($1.tab164, $1.i + 1, 7); //#6828 + for (var _3Z = 0, _3a = _3Y.length; _3Z < _3a; _3Z++) { //#6828 + $k[$j++] = $get(_3Y, _3Z); //#6828 + } //#6828 + $1.d3te = $k[--$j]; //#6829 + $1.d3to = $k[--$j]; //#6829 + $1.d3mwe = $k[--$j]; //#6830 + $1.d3mwo = $k[--$j]; //#6830 + $1.d3ele = $k[--$j]; //#6831 + $1.d3elo = $k[--$j]; //#6831 + $1.d3gs = $k[--$j]; //#6832 + break; //#6833 + } //#6833 + $1.i = $1.i + 8; //#6835 + } //#6835 + $1.i = 0; //#6838 + for (;;) { //#6848 + if ($1.d4 <= $get($1.tab154, $1.i)) { //#6846 + var _3q = $geti($1.tab154, $1.i + 1, 7); //#6840 + for (var _3r = 0, _3s = _3q.length; _3r < _3s; _3r++) { //#6840 + $k[$j++] = $get(_3q, _3r); //#6840 + } //#6840 + $1.d4te = $k[--$j]; //#6841 + $1.d4to = $k[--$j]; //#6841 + $1.d4mwe = $k[--$j]; //#6842 + $1.d4mwo = $k[--$j]; //#6842 + $1.d4ele = $k[--$j]; //#6843 + $1.d4elo = $k[--$j]; //#6843 + $1.d4gs = $k[--$j]; //#6844 + break; //#6845 + } //#6845 + $1.i = $1.i + 8; //#6847 + } //#6847 + $k[$j++] = 'd1wo'; //#6850 + $k[$j++] = ~~($f($1.d1 - $1.d1gs) / $1.d1te); //#6850 + $k[$j++] = $1.d1elo; //#6850 + $k[$j++] = $1.d1mwo; //#6850 + $k[$j++] = 4; //#6850 + $k[$j++] = false; //#6850 + $1.getRSSwidths(); //#6850 + var _47 = $k[--$j]; //#6850 + $1[$k[--$j]] = _47; //#6850 + $k[$j++] = 'd1we'; //#6851 + $k[$j++] = $f($1.d1 - $1.d1gs) % $1.d1te; //#6851 + $k[$j++] = $1.d1ele; //#6851 + $k[$j++] = $1.d1mwe; //#6851 + $k[$j++] = 4; //#6851 + $k[$j++] = true; //#6851 + $1.getRSSwidths(); //#6851 + var _4E = $k[--$j]; //#6851 + $1[$k[--$j]] = _4E; //#6851 + $k[$j++] = 'd2wo'; //#6852 + $k[$j++] = $f($1.d2 - $1.d2gs) % $1.d2to; //#6852 + $k[$j++] = $1.d2elo; //#6852 + $k[$j++] = $1.d2mwo; //#6852 + $k[$j++] = 4; //#6852 + $k[$j++] = true; //#6852 + $1.getRSSwidths(); //#6852 + var _4L = $k[--$j]; //#6852 + $1[$k[--$j]] = _4L; //#6852 + $k[$j++] = 'd2we'; //#6853 + $k[$j++] = ~~($f($1.d2 - $1.d2gs) / $1.d2to); //#6853 + $k[$j++] = $1.d2ele; //#6853 + $k[$j++] = $1.d2mwe; //#6853 + $k[$j++] = 4; //#6853 + $k[$j++] = false; //#6853 + $1.getRSSwidths(); //#6853 + var _4S = $k[--$j]; //#6853 + $1[$k[--$j]] = _4S; //#6853 + $k[$j++] = 'd3wo'; //#6854 + $k[$j++] = ~~($f($1.d3 - $1.d3gs) / $1.d3te); //#6854 + $k[$j++] = $1.d3elo; //#6854 + $k[$j++] = $1.d3mwo; //#6854 + $k[$j++] = 4; //#6854 + $k[$j++] = false; //#6854 + $1.getRSSwidths(); //#6854 + var _4Z = $k[--$j]; //#6854 + $1[$k[--$j]] = _4Z; //#6854 + $k[$j++] = 'd3we'; //#6855 + $k[$j++] = $f($1.d3 - $1.d3gs) % $1.d3te; //#6855 + $k[$j++] = $1.d3ele; //#6855 + $k[$j++] = $1.d3mwe; //#6855 + $k[$j++] = 4; //#6855 + $k[$j++] = true; //#6855 + $1.getRSSwidths(); //#6855 + var _4g = $k[--$j]; //#6855 + $1[$k[--$j]] = _4g; //#6855 + $k[$j++] = 'd4wo'; //#6856 + $k[$j++] = $f($1.d4 - $1.d4gs) % $1.d4to; //#6856 + $k[$j++] = $1.d4elo; //#6856 + $k[$j++] = $1.d4mwo; //#6856 + $k[$j++] = 4; //#6856 + $k[$j++] = true; //#6856 + $1.getRSSwidths(); //#6856 + var _4n = $k[--$j]; //#6856 + $1[$k[--$j]] = _4n; //#6856 + $k[$j++] = 'd4we'; //#6857 + $k[$j++] = ~~($f($1.d4 - $1.d4gs) / $1.d4to); //#6857 + $k[$j++] = $1.d4ele; //#6857 + $k[$j++] = $1.d4mwe; //#6857 + $k[$j++] = 4; //#6857 + $k[$j++] = false; //#6857 + $1.getRSSwidths(); //#6857 + var _4u = $k[--$j]; //#6857 + $1[$k[--$j]] = _4u; //#6857 + $1.d1w = $a(8); //#6859 + for (var _4x = 0; _4x <= 3; _4x += 1) { //#6864 + $1.i = _4x; //#6861 + $put($1.d1w, $1.i * 2, $get($1.d1wo, $1.i)); //#6862 + $put($1.d1w, ($1.i * 2) + 1, $get($1.d1we, $1.i)); //#6863 + } //#6863 + $1.d2w = $a(8); //#6866 + for (var _59 = 0; _59 <= 3; _59 += 1) { //#6871 + $1.i = _59; //#6868 + $put($1.d2w, 7 - ($1.i * 2), $get($1.d2wo, $1.i)); //#6869 + $put($1.d2w, 6 - ($1.i * 2), $get($1.d2we, $1.i)); //#6870 + } //#6870 + $1.d3w = $a(8); //#6873 + for (var _5L = 0; _5L <= 3; _5L += 1) { //#6878 + $1.i = _5L; //#6875 + $put($1.d3w, 7 - ($1.i * 2), $get($1.d3wo, $1.i)); //#6876 + $put($1.d3w, 6 - ($1.i * 2), $get($1.d3we, $1.i)); //#6877 + } //#6877 + $1.d4w = $a(8); //#6880 + for (var _5X = 0; _5X <= 3; _5X += 1) { //#6885 + $1.i = _5X; //#6882 + $put($1.d4w, $1.i * 2, $get($1.d4wo, $1.i)); //#6883 + $put($1.d4w, ($1.i * 2) + 1, $get($1.d4we, $1.i)); //#6884 + } //#6884 + $k[$j++] = Infinity; //#6891 + var _5i = $1.d1w; //#6888 + for (var _5j = 0, _5k = _5i.length; _5j < _5k; _5j++) { //#6888 + $k[$j++] = $get(_5i, _5j); //#6888 + } //#6888 + var _5m = $1.d2w; //#6889 + for (var _5n = 0, _5o = _5m.length; _5n < _5o; _5n++) { //#6889 + $k[$j++] = $get(_5m, _5n); //#6889 + } //#6889 + var _5q = $1.d3w; //#6890 + for (var _5r = 0, _5s = _5q.length; _5r < _5s; _5r++) { //#6890 + $k[$j++] = $get(_5q, _5r); //#6890 + } //#6890 + var _5u = $1.d4w; //#6891 + for (var _5v = 0, _5w = _5u.length; _5v < _5w; _5v++) { //#6891 + $k[$j++] = $get(_5u, _5v); //#6891 + } //#6891 + $1.widths = $a(); //#6891 + $1.checkweights = $a([1, 3, 9, 27, 2, 6, 18, 54, 58, 72, 24, 8, 29, 36, 12, 4, 74, 51, 17, 32, 37, 65, 48, 16, 64, 34, 23, 69, 49, 68, 46, 59]); //#6899 + $1.checkwidths = $a([3, 8, 2, 1, 1, 3, 5, 5, 1, 1, 3, 3, 7, 1, 1, 3, 1, 9, 1, 1, 2, 7, 4, 1, 1, 2, 5, 6, 1, 1, 2, 3, 8, 1, 1, 1, 5, 7, 1, 1, 1, 3, 9, 1, 1]); //#6905 + $1.checksum = 0; //#6907 + for (var _61 = 0; _61 <= 31; _61 += 1) { //#6911 + $1.i = _61; //#6909 + $1.checksum = $f($1.checksum + ($get($1.widths, $1.i) * $get($1.checkweights, $1.i))); //#6910 + } //#6910 + $1.checksum = $1.checksum % 79; //#6912 + if ($1.checksum >= 8) { //#6913 + $1.checksum = $f($1.checksum + 1); //#6913 + } //#6913 + if ($1.checksum >= 72) { //#6914 + $1.checksum = $f($1.checksum + 1); //#6914 + } //#6914 + $1.checklt = $geti($1.checkwidths, (~~($1.checksum / 9)) * 5, 5); //#6915 + $1.checkrtrev = $geti($1.checkwidths, ($1.checksum % 9) * 5, 5); //#6916 + $1.checkrt = $a(5); //#6917 + for (var _6L = 0; _6L <= 4; _6L += 1) { //#6921 + $1.i = _6L; //#6919 + $put($1.checkrt, $1.i, $get($1.checkrtrev, 4 - $1.i)); //#6920 + } //#6920 + if ($eq($1.format, "omni") || $eq($1.format, "truncated")) { //#7043 + $k[$j++] = Infinity; //#6928 + var _6T = $1.d1w; //#6927 + $k[$j++] = 1; //#6927 + for (var _6U = 0, _6V = _6T.length; _6U < _6V; _6U++) { //#6927 + $k[$j++] = $get(_6T, _6U); //#6927 + } //#6927 + var _6X = $1.checklt; //#6927 + for (var _6Y = 0, _6Z = _6X.length; _6Y < _6Z; _6Y++) { //#6927 + $k[$j++] = $get(_6X, _6Y); //#6927 + } //#6927 + var _6b = $1.d2w; //#6927 + for (var _6c = 0, _6d = _6b.length; _6c < _6d; _6c++) { //#6927 + $k[$j++] = $get(_6b, _6c); //#6927 + } //#6927 + var _6f = $1.d4w; //#6928 + for (var _6g = 0, _6h = _6f.length; _6g < _6h; _6g++) { //#6928 + $k[$j++] = $get(_6f, _6g); //#6928 + } //#6928 + var _6j = $1.checkrt; //#6928 + for (var _6k = 0, _6l = _6j.length; _6k < _6l; _6k++) { //#6928 + $k[$j++] = $get(_6j, _6k); //#6928 + } //#6928 + var _6n = $1.d3w; //#6928 + for (var _6o = 0, _6p = _6n.length; _6o < _6p; _6o++) { //#6928 + $k[$j++] = $get(_6n, _6o); //#6928 + } //#6928 + $k[$j++] = 1; //#6928 + $k[$j++] = 1; //#6928 + $1.sbs = $a(); //#6928 + $k[$j++] = Infinity; //#6938 + var _6s = $1.sbs; //#6933 + $k[$j++] = Infinity; //#6934 + for (var _6u = 0, _6v = ~~(($1.sbs.length + 1) / 2); _6u < _6v; _6u++) { //#6934 + $k[$j++] = $1.height; //#6934 + } //#6934 + var _6x = $a(); //#6934 + $k[$j++] = Infinity; //#6935 + for (var _6z = 0, _70 = ~~(($1.sbs.length + 1) / 2); _6z < _70; _6z++) { //#6935 + $k[$j++] = 0; //#6935 + } //#6935 + var _71 = $a(); //#6935 + $k[$j++] = 'ren'; //#6938 + $k[$j++] = $0.renlinear; //#6938 + $k[$j++] = 'sbs'; //#6938 + $k[$j++] = _6s; //#6938 + $k[$j++] = 'bhs'; //#6938 + $k[$j++] = _6x; //#6938 + $k[$j++] = 'bbs'; //#6938 + $k[$j++] = _71; //#6938 + $k[$j++] = 'txt'; //#6938 + $k[$j++] = $1.txt; //#6938 + $k[$j++] = 'textxalign'; //#6938 + $k[$j++] = "center"; //#6938 + $k[$j++] = 'opt'; //#6938 + $k[$j++] = $1.options; //#6938 + var _74 = $d(); //#6938 + $k[$j++] = _74; //#6941 + if (!$1.dontdraw) { //#6941 + $0.renlinear(); //#6941 + } //#6941 + } else { //#7043 + $k[$j++] = Infinity; //#6945 + var _76 = $1.d1w; //#6945 + $k[$j++] = 1; //#6945 + $k[$j++] = 1; //#6945 + for (var _77 = 0, _78 = _76.length; _77 < _78; _77++) { //#6945 + $k[$j++] = $get(_76, _77); //#6945 + } //#6945 + var _7A = $1.checklt; //#6945 + for (var _7B = 0, _7C = _7A.length; _7B < _7C; _7B++) { //#6945 + $k[$j++] = $get(_7A, _7B); //#6945 + } //#6945 + var _7E = $1.d2w; //#6945 + for (var _7F = 0, _7G = _7E.length; _7F < _7G; _7F++) { //#6945 + $k[$j++] = $get(_7E, _7F); //#6945 + } //#6945 + $k[$j++] = 1; //#6945 + $k[$j++] = 1; //#6945 + $k[$j++] = 0; //#6945 + $1.top = $a(); //#6945 + $k[$j++] = Infinity; //#6946 + var _7J = $1.d4w; //#6946 + $k[$j++] = 1; //#6946 + $k[$j++] = 1; //#6946 + for (var _7K = 0, _7L = _7J.length; _7K < _7L; _7K++) { //#6946 + $k[$j++] = $get(_7J, _7K); //#6946 + } //#6946 + var _7N = $1.checkrt; //#6946 + for (var _7O = 0, _7P = _7N.length; _7O < _7P; _7O++) { //#6946 + $k[$j++] = $get(_7N, _7O); //#6946 + } //#6946 + var _7R = $1.d3w; //#6946 + for (var _7S = 0, _7T = _7R.length; _7S < _7T; _7S++) { //#6946 + $k[$j++] = $get(_7R, _7S); //#6946 + } //#6946 + $k[$j++] = 1; //#6946 + $k[$j++] = 1; //#6946 + $k[$j++] = 0; //#6946 + $1.bot = $a(); //#6946 + for (var _7W = 0; _7W <= 24; _7W += 2) { //#6951 + $1.i = _7W; //#6948 + for (var _7a = 0, _7b = $get($1.top, $1.i); _7a < _7b; _7a++) { //#6949 + $k[$j++] = 0; //#6949 + } //#6949 + for (var _7f = 0, _7g = $get($1.top, $1.i + 1); _7f < _7g; _7f++) { //#6950 + $k[$j++] = 1; //#6950 + } //#6950 + } //#6950 + $astore($a(50)); //#6952 + $1.top = $k[--$j]; //#6952 + for (var _7j = 0; _7j <= 24; _7j += 2) { //#6957 + $1.i = _7j; //#6954 + for (var _7n = 0, _7o = $get($1.bot, $1.i); _7n < _7o; _7n++) { //#6955 + $k[$j++] = 1; //#6955 + } //#6955 + for (var _7s = 0, _7t = $get($1.bot, $1.i + 1); _7s < _7t; _7s++) { //#6956 + $k[$j++] = 0; //#6956 + } //#6956 + } //#6956 + $astore($a(50)); //#6958 + $1.bot = $k[--$j]; //#6958 + if ($eq($1.format, "stacked")) { //#6980 + $1.sep = $a(50); //#6962 + $put($1.sep, 0, 0); //#6963 + for (var _7z = 1; _7z <= 49; _7z += 1) { //#6971 + $1.i = _7z; //#6965 + if ($eq($get($1.top, $1.i), $get($1.bot, $1.i))) { //#6969 + $put($1.sep, $1.i, $f(1 - $get($1.top, $1.i))); //#6967 + } else { //#6969 + $put($1.sep, $1.i, $f(1 - $get($1.sep, $1.i - 1))); //#6969 + } //#6969 + } //#6969 + $puti($1.sep, 0, $a([0, 0, 0, 0])); //#6972 + $puti($1.sep, 46, $a([0, 0, 0, 0])); //#6973 + $k[$j++] = Infinity; //#6977 + for (var _8K = 0, _8L = 5; _8K < _8L; _8K++) { //#6975 + $aload($1.top); //#6975 + } //#6975 + $aload($1.sep); //#6976 + for (var _8O = 0, _8P = 7; _8O < _8P; _8O++) { //#6977 + $aload($1.bot); //#6977 + } //#6977 + $1.pixs = $a(); //#6977 + $1.pixy = ~~($1.pixs.length / 50); //#6979 + } //#6979 + if ($eq($1.format, "stackedomni")) { //#7030 + $k[$j++] = Infinity; //#6984 + $forall($1.top, function() { //#6984 + var _8V = $k[--$j]; //#6984 + $k[$j++] = $f(1 - _8V); //#6984 + }); //#6984 + $1.sep1 = $a(); //#6984 + $puti($1.sep1, 0, $a([0, 0, 0, 0])); //#6985 + $puti($1.sep1, 46, $a([0, 0, 0, 0])); //#6986 + for (var _8b = 18; _8b <= 30; _8b += 1) { //#6999 + $1.i = _8b; //#6988 + if ($get($1.top, $1.i) == 0) { //#6996 + if ($get($1.top, $1.i - 1) == 1) { //#6993 + $k[$j++] = 1; //#6991 + } else { //#6993 + var _8l = ($get($1.sep1, $1.i - 1) == 0) ? 1 : 0; //#6993 + $k[$j++] = _8l; //#6993 + } //#6993 + } else { //#6996 + $k[$j++] = 0; //#6996 + } //#6996 + $put($1.sep1, $1.i, $k[--$j]); //#6998 + } //#6998 + $k[$j++] = Infinity; //#7000 + $k[$j++] = 0; //#7000 + $k[$j++] = 0; //#7000 + $k[$j++] = 0; //#7000 + $k[$j++] = 0; //#7000 + for (var _8p = 0, _8q = 21; _8p < _8q; _8p++) { //#7000 + $k[$j++] = 0; //#7000 + $k[$j++] = 1; //#7000 + } //#7000 + $k[$j++] = 0; //#7000 + $k[$j++] = 0; //#7000 + $k[$j++] = 0; //#7000 + $k[$j++] = 0; //#7000 + $1.sep2 = $a(); //#7000 + $k[$j++] = Infinity; //#7001 + $forall($1.bot, function() { //#7001 + var _8t = $k[--$j]; //#7001 + $k[$j++] = $f(1 - _8t); //#7001 + }); //#7001 + $1.sep3 = $a(); //#7001 + $puti($1.sep3, 0, $a([0, 0, 0, 0])); //#7002 + $puti($1.sep3, 46, $a([0, 0, 0, 0])); //#7003 + for (var _8z = 19; _8z <= 31; _8z += 1) { //#7016 + $1.i = _8z; //#7005 + if ($get($1.bot, $1.i) == 0) { //#7013 + if ($get($1.bot, $1.i - 1) == 1) { //#7010 + $k[$j++] = 1; //#7008 + } else { //#7010 + var _99 = ($get($1.sep3, $1.i - 1) == 0) ? 1 : 0; //#7010 + $k[$j++] = _99; //#7010 + } //#7010 + } else { //#7013 + $k[$j++] = 0; //#7013 + } //#7013 + $put($1.sep3, $1.i, $k[--$j]); //#7015 + } //#7015 + $1.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#7017 + $k[$j++] = true; //#7018 + for (var _9E = 0; _9E <= 12; _9E += 1) { //#7018 + var _9J = $k[--$j]; //#7018 + $k[$j++] = _9J && $eq($get($1.bot, _9E + 19), $get($1.f3, _9E)); //#7018 + } //#7018 + if ($k[--$j]) { //#7021 + $puti($1.sep3, 19, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#7020 + } //#7020 + $k[$j++] = Infinity; //#7027 + for (var _9O = 0, _9P = $1.barxmult; _9O < _9P; _9O++) { //#7023 + $aload($1.top); //#7023 + } //#7023 + $aload($1.sep1); //#7024 + $aload($1.sep2); //#7025 + $aload($1.sep3); //#7026 + for (var _9V = 0, _9W = $1.barxmult; _9V < _9W; _9V++) { //#7027 + $aload($1.bot); //#7027 + } //#7027 + $1.pixs = $a(); //#7027 + $1.pixy = ~~($1.pixs.length / 50); //#7029 + } //#7029 + var _9e = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", 50], + ["pixy", $1.pixy], + ["height", $1.pixy / 72], + ["width", 50 / 72], + ["opt", $1.options] + ]); //#7040 + $k[$j++] = _9e; //#7043 + if (!$1.dontdraw) { //#7043 + $0.renmatrix(); //#7043 + } //#7043 + } //#7043 }; $0.databarstacked = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - if ($ne($geti($1.barcode, 0, 4), "(01)")) { - $k[$j++] = "bwipp.databarstackedBadAI"; - $k[$j++] = "GS1 DataBar Stacked must begin with (01) application identifier"; - $0.raiseerror(); - } - if ($1.barcode.length != 17 && $1.barcode.length != 18) { - $k[$j++] = "bwipp.databarstackedBadLength"; - $k[$j++] = "GS1 DataBar Stacked must be 13 or 14 digits"; - $0.raiseerror(); - } - var _B = $geti($1.barcode, 4, $1.barcode.length - 4); - for (var _C = 0, _D = _B.length; _C < _D; _C++) { - var _E = $get(_B, _C); - if (_E < 48 || _E > 57) { - $k[$j++] = "bwipp.databarstackedBadCharacter"; - $k[$j++] = "GS1 DataBar Stacked must contain only digits"; - $0.raiseerror(); - } - } - $1.checksum = 0; - for (var _F = 0; _F <= 12; _F += 1) { - $1.i = _F; - $k[$j++] = "checksum"; - $k[$j++] = $1.checksum; - $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); - if ($1.i % 2 == 0) { - var _L = $k[--$j]; - $k[$j++] = _L * 3; - } - var _M = $k[--$j]; - var _N = $k[--$j]; - $1[$k[--$j]] = $f(_N + _M); - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 18) { - if ($get($1.barcode, 17) != $1.checksum + 48) { - $k[$j++] = "bwipp.databarstackedBadCheckDigit"; - $k[$j++] = "Incorrect GS1 DataBar Stacked check digit provided"; - $0.raiseerror(); - } - } - var _U = $s(18); - $puti(_U, 0, $1.barcode); - $put(_U, 17, $1.checksum + 48); - $1.barcode = _U; - $put($1.options, "dontdraw", true); - $put($1.options, "format", "stacked"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.databaromni(); - var _b = $k[--$j]; - $1[$k[--$j]] = _b; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#7075 + $1.options = $k[--$j]; //#7077 + $1.barcode = $k[--$j]; //#7078 + $1.dontdraw = false; //#7080 + $forall($1.options, function() { //#7091 + var _3 = $k[--$j]; //#7091 + $1[$k[--$j]] = _3; //#7091 + }); //#7091 + if ($ne($geti($1.barcode, 0, 4), "(01)")) { //#7096 + $k[$j++] = 'bwipp.databarstackedBadAI'; //#7095 + $k[$j++] = "GS1 DataBar Stacked must begin with (01) application identifier"; //#7095 + $0.raiseerror(); //#7095 + } //#7095 + if (($1.barcode.length != 17) && ($1.barcode.length != 18)) { //#7099 + $k[$j++] = 'bwipp.databarstackedBadLength'; //#7098 + $k[$j++] = "GS1 DataBar Stacked must be 13 or 14 digits"; //#7098 + $0.raiseerror(); //#7098 + } //#7098 + var _B = $geti($1.barcode, 4, $1.barcode.length - 4); //#7100 + for (var _C = 0, _D = _B.length; _C < _D; _C++) { //#7104 + var _E = $get(_B, _C); //#7104 + if ((_E < 48) || (_E > 57)) { //#7103 + $k[$j++] = 'bwipp.databarstackedBadCharacter'; //#7102 + $k[$j++] = "GS1 DataBar Stacked must contain only digits"; //#7102 + $0.raiseerror(); //#7102 + } //#7102 + } //#7102 + $1.checksum = 0; //#7107 + for (var _F = 0; _F <= 12; _F += 1) { //#7111 + $1.i = _F; //#7109 + $k[$j++] = 'checksum'; //#7110 + $k[$j++] = $1.checksum; //#7110 + $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); //#7110 + if (($1.i % 2) == 0) { //#7110 + var _L = $k[--$j]; //#7110 + $k[$j++] = _L * 3; //#7110 + } //#7110 + var _M = $k[--$j]; //#7110 + var _N = $k[--$j]; //#7110 + $1[$k[--$j]] = $f(_N + _M); //#7110 + } //#7110 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#7112 + if ($1.barcode.length == 18) { //#7117 + if ($get($1.barcode, 17) != ($1.checksum + 48)) { //#7116 + $k[$j++] = 'bwipp.databarstackedBadCheckDigit'; //#7115 + $k[$j++] = "Incorrect GS1 DataBar Stacked check digit provided"; //#7115 + $0.raiseerror(); //#7115 + } //#7115 + } //#7115 + var _U = $s(18); //#7118 + $puti(_U, 0, $1.barcode); //#7119 + $put(_U, 17, $1.checksum + 48); //#7120 + $1.barcode = _U; //#7121 + $put($1.options, "dontdraw", true); //#7124 + $put($1.options, "format", "stacked"); //#7125 + $k[$j++] = 'args'; //#7127 + $k[$j++] = $1.barcode; //#7127 + $k[$j++] = $1.options; //#7127 + $0.databaromni(); //#7127 + var _b = $k[--$j]; //#7127 + $1[$k[--$j]] = _b; //#7127 + $put($1.args, "opt", $1.options); //#7129 + $k[$j++] = $1.args; //#7132 + if (!$1.dontdraw) { //#7132 + $0.renmatrix(); //#7132 + } //#7132 }; $0.databarstackedomni = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - if ($ne($geti($1.barcode, 0, 4), "(01)")) { - $k[$j++] = "bwipp.databarstackedomniBadAI"; - $k[$j++] = "GS1 DataBar Stacked Omnidirectional must begin with (01) application identifier"; - $0.raiseerror(); - } - if ($1.barcode.length != 17 && $1.barcode.length != 18) { - $k[$j++] = "bwipp.databarstackedomniBadLength"; - $k[$j++] = "GS1 DataBar Stacked Omnidirectional must be 13 or 14 digits"; - $0.raiseerror(); - } - var _B = $geti($1.barcode, 4, $1.barcode.length - 4); - for (var _C = 0, _D = _B.length; _C < _D; _C++) { - var _E = $get(_B, _C); - if (_E < 48 || _E > 57) { - $k[$j++] = "bwipp.databarstackedomniBadCharacter"; - $k[$j++] = "GS1 DataBar Stacked Omnidirectional must contain only digits"; - $0.raiseerror(); - } - } - $1.checksum = 0; - for (var _F = 0; _F <= 12; _F += 1) { - $1.i = _F; - $k[$j++] = "checksum"; - $k[$j++] = $1.checksum; - $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); - if ($1.i % 2 == 0) { - var _L = $k[--$j]; - $k[$j++] = _L * 3; - } - var _M = $k[--$j]; - var _N = $k[--$j]; - $1[$k[--$j]] = $f(_N + _M); - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 18) { - if ($get($1.barcode, 17) != $1.checksum + 48) { - $k[$j++] = "bwipp.databarstackedomniBadCheckDigit"; - $k[$j++] = "Incorrect GS1 DataBar Stacked Omnidirectional check digit provided"; - $0.raiseerror(); - } - } - var _U = $s(18); - $puti(_U, 0, $1.barcode); - $put(_U, 17, $1.checksum + 48); - $1.barcode = _U; - $put($1.options, "dontdraw", true); - $put($1.options, "format", "stackedomni"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.databaromni(); - var _b = $k[--$j]; - $1[$k[--$j]] = _b; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#7162 + $1.options = $k[--$j]; //#7164 + $1.barcode = $k[--$j]; //#7165 + $1.dontdraw = false; //#7167 + $forall($1.options, function() { //#7178 + var _3 = $k[--$j]; //#7178 + $1[$k[--$j]] = _3; //#7178 + }); //#7178 + if ($ne($geti($1.barcode, 0, 4), "(01)")) { //#7183 + $k[$j++] = 'bwipp.databarstackedomniBadAI'; //#7182 + $k[$j++] = "GS1 DataBar Stacked Omnidirectional must begin with (01) application identifier"; //#7182 + $0.raiseerror(); //#7182 + } //#7182 + if (($1.barcode.length != 17) && ($1.barcode.length != 18)) { //#7186 + $k[$j++] = 'bwipp.databarstackedomniBadLength'; //#7185 + $k[$j++] = "GS1 DataBar Stacked Omnidirectional must be 13 or 14 digits"; //#7185 + $0.raiseerror(); //#7185 + } //#7185 + var _B = $geti($1.barcode, 4, $1.barcode.length - 4); //#7187 + for (var _C = 0, _D = _B.length; _C < _D; _C++) { //#7191 + var _E = $get(_B, _C); //#7191 + if ((_E < 48) || (_E > 57)) { //#7190 + $k[$j++] = 'bwipp.databarstackedomniBadCharacter'; //#7189 + $k[$j++] = "GS1 DataBar Stacked Omnidirectional must contain only digits"; //#7189 + $0.raiseerror(); //#7189 + } //#7189 + } //#7189 + $1.checksum = 0; //#7194 + for (var _F = 0; _F <= 12; _F += 1) { //#7198 + $1.i = _F; //#7196 + $k[$j++] = 'checksum'; //#7197 + $k[$j++] = $1.checksum; //#7197 + $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); //#7197 + if (($1.i % 2) == 0) { //#7197 + var _L = $k[--$j]; //#7197 + $k[$j++] = _L * 3; //#7197 + } //#7197 + var _M = $k[--$j]; //#7197 + var _N = $k[--$j]; //#7197 + $1[$k[--$j]] = $f(_N + _M); //#7197 + } //#7197 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#7199 + if ($1.barcode.length == 18) { //#7204 + if ($get($1.barcode, 17) != ($1.checksum + 48)) { //#7203 + $k[$j++] = 'bwipp.databarstackedomniBadCheckDigit'; //#7202 + $k[$j++] = "Incorrect GS1 DataBar Stacked Omnidirectional check digit provided"; //#7202 + $0.raiseerror(); //#7202 + } //#7202 + } //#7202 + var _U = $s(18); //#7205 + $puti(_U, 0, $1.barcode); //#7206 + $put(_U, 17, $1.checksum + 48); //#7207 + $1.barcode = _U; //#7208 + $put($1.options, "dontdraw", true); //#7211 + $put($1.options, "format", "stackedomni"); //#7212 + $k[$j++] = 'args'; //#7214 + $k[$j++] = $1.barcode; //#7214 + $k[$j++] = $1.options; //#7214 + $0.databaromni(); //#7214 + var _b = $k[--$j]; //#7214 + $1[$k[--$j]] = _b; //#7214 + $put($1.args, "opt", $1.options); //#7216 + $k[$j++] = $1.args; //#7219 + if (!$1.dontdraw) { //#7219 + $0.renmatrix(); //#7219 + } //#7219 }; $0.databartruncated = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - if ($ne($geti($1.barcode, 0, 4), "(01)")) { - $k[$j++] = "bwipp.databartruncatedBadAI"; - $k[$j++] = "GS1 DataBar Truncated must begin with (01) application identifier"; - $0.raiseerror(); - } - if ($1.barcode.length != 17 && $1.barcode.length != 18) { - $k[$j++] = "bwipp.databartruncatedBadLength"; - $k[$j++] = "GS1 DataBar Truncated must be 13 or 14 digits"; - $0.raiseerror(); - } - var _B = $geti($1.barcode, 4, $1.barcode.length - 4); - for (var _C = 0, _D = _B.length; _C < _D; _C++) { - var _E = $get(_B, _C); - if (_E < 48 || _E > 57) { - $k[$j++] = "bwipp.databartruncatedBadCharacter"; - $k[$j++] = "GS1 DataBar Truncated must contain only digits"; - $0.raiseerror(); - } - } - $1.checksum = 0; - for (var _F = 0; _F <= 12; _F += 1) { - $1.i = _F; - $k[$j++] = "checksum"; - $k[$j++] = $1.checksum; - $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); - if ($1.i % 2 == 0) { - var _L = $k[--$j]; - $k[$j++] = _L * 3; - } - var _M = $k[--$j]; - var _N = $k[--$j]; - $1[$k[--$j]] = $f(_N + _M); - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 18) { - if ($get($1.barcode, 17) != $1.checksum + 48) { - $k[$j++] = "bwipp.databartruncatedBadCheckDigit"; - $k[$j++] = "Incorrect GS1 DataBar Truncated check digit provided"; - $0.raiseerror(); - } - } - var _U = $s(18); - $puti(_U, 0, $1.barcode); - $put(_U, 17, $1.checksum + 48); - $1.barcode = _U; - $put($1.options, "dontdraw", true); - $put($1.options, "format", "truncated"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.databaromni(); - var _b = $k[--$j]; - $1[$k[--$j]] = _b; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#7249 + $1.options = $k[--$j]; //#7251 + $1.barcode = $k[--$j]; //#7252 + $1.dontdraw = false; //#7254 + $forall($1.options, function() { //#7265 + var _3 = $k[--$j]; //#7265 + $1[$k[--$j]] = _3; //#7265 + }); //#7265 + if ($ne($geti($1.barcode, 0, 4), "(01)")) { //#7270 + $k[$j++] = 'bwipp.databartruncatedBadAI'; //#7269 + $k[$j++] = "GS1 DataBar Truncated must begin with (01) application identifier"; //#7269 + $0.raiseerror(); //#7269 + } //#7269 + if (($1.barcode.length != 17) && ($1.barcode.length != 18)) { //#7273 + $k[$j++] = 'bwipp.databartruncatedBadLength'; //#7272 + $k[$j++] = "GS1 DataBar Truncated must be 13 or 14 digits"; //#7272 + $0.raiseerror(); //#7272 + } //#7272 + var _B = $geti($1.barcode, 4, $1.barcode.length - 4); //#7274 + for (var _C = 0, _D = _B.length; _C < _D; _C++) { //#7278 + var _E = $get(_B, _C); //#7278 + if ((_E < 48) || (_E > 57)) { //#7277 + $k[$j++] = 'bwipp.databartruncatedBadCharacter'; //#7276 + $k[$j++] = "GS1 DataBar Truncated must contain only digits"; //#7276 + $0.raiseerror(); //#7276 + } //#7276 + } //#7276 + $1.checksum = 0; //#7281 + for (var _F = 0; _F <= 12; _F += 1) { //#7285 + $1.i = _F; //#7283 + $k[$j++] = 'checksum'; //#7284 + $k[$j++] = $1.checksum; //#7284 + $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); //#7284 + if (($1.i % 2) == 0) { //#7284 + var _L = $k[--$j]; //#7284 + $k[$j++] = _L * 3; //#7284 + } //#7284 + var _M = $k[--$j]; //#7284 + var _N = $k[--$j]; //#7284 + $1[$k[--$j]] = $f(_N + _M); //#7284 + } //#7284 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#7286 + if ($1.barcode.length == 18) { //#7291 + if ($get($1.barcode, 17) != ($1.checksum + 48)) { //#7290 + $k[$j++] = 'bwipp.databartruncatedBadCheckDigit'; //#7289 + $k[$j++] = "Incorrect GS1 DataBar Truncated check digit provided"; //#7289 + $0.raiseerror(); //#7289 + } //#7289 + } //#7289 + var _U = $s(18); //#7292 + $puti(_U, 0, $1.barcode); //#7293 + $put(_U, 17, $1.checksum + 48); //#7294 + $1.barcode = _U; //#7295 + $put($1.options, "dontdraw", true); //#7298 + $put($1.options, "format", "truncated"); //#7299 + $k[$j++] = 'args'; //#7301 + $k[$j++] = $1.barcode; //#7301 + $k[$j++] = $1.options; //#7301 + $0.databaromni(); //#7301 + var _b = $k[--$j]; //#7301 + $1[$k[--$j]] = _b; //#7301 + $put($1.args, "opt", $1.options); //#7303 + $k[$j++] = $1.args; //#7306 + if (!$1.dontdraw) { //#7306 + $0.renlinear(); //#7306 + } //#7306 }; $0.databarlimited = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.height = 10 / 72; - $1.linkage = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.height = +$1.height; - if ($ne($geti($1.barcode, 0, 4), "(01)")) { - $k[$j++] = "bwipp.databarlimitedBadAI"; - $k[$j++] = "GS1 DataBar Limited must begin with (01) application identifier"; - $0.raiseerror(); - } - if ($1.barcode.length != 17 && $1.barcode.length != 18) { - $k[$j++] = "bwipp.databarlimitedBadLength"; - $k[$j++] = "GS1 DataBar Limited must be 13 or 14 digits"; - $0.raiseerror(); - } - var _B = $get($1.barcode, 4); - if (_B < 48 || _B > 49) { - $k[$j++] = "bwipp.databarlimitedBadStartDigit"; - $k[$j++] = "GS1 DataBar Limited must begin with 0 or 1"; - $0.raiseerror(); - } - var _E = $geti($1.barcode, 5, $1.barcode.length - 5); - for (var _F = 0, _G = _E.length; _F < _G; _F++) { - var _H = $get(_E, _F); - if (_H < 48 || _H > 57) { - $k[$j++] = "bwipp.databarlimitedBadCharacter"; - $k[$j++] = "GS1 DataBar Limited must contain only digits"; - $0.raiseerror(); - } - } - $1.checksum = 0; - for (var _I = 0; _I <= 12; _I += 1) { - $1.i = _I; - $k[$j++] = "checksum"; - $k[$j++] = $1.checksum; - $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); - if ($1.i % 2 == 0) { - var _O = $k[--$j]; - $k[$j++] = _O * 3; - } - var _P = $k[--$j]; - var _Q = $k[--$j]; - $1[$k[--$j]] = $f(_Q + _P); - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 18) { - if ($get($1.barcode, 17) != $1.checksum + 48) { - $k[$j++] = "bwipp.databarlimitedBadCheckDigit"; - $k[$j++] = "Incorrect GS1 DataBar Limited check digit provided"; - $0.raiseerror(); - } - } - var _X = $s(18); - $puti(_X, 0, $1.barcode); - $put(_X, 17, $1.checksum + 48); - $1.barcode = _X; - $k[$j++] = Infinity; - var _b = $geti($1.barcode, 4, 13); - for (var _c = 0, _d = _b.length; _c < _d; _c++) { - $k[$j++] = $f($get(_b, _c) - 48); - } - $1.binval = $a(); - if ($1.linkage) { - $1.linkval = $a([ 2, 0, 1, 5, 1, 3, 3, 5, 3, 1, 0, 9, 6 ]); - for (var _k = 0, _j = $1.binval.length - 1; _k <= _j; _k += 1) { - $1.i = _k; - $put($1.binval, $1.i, $f($get($1.binval, $1.i) + $get($1.linkval, $1.i))); - } - } - $1.txt = $a($1.barcode.length); - for (var _x = 0, _w = $1.barcode.length - 1; _x <= _w; _x += 1) { - $1.i = _x; - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), 0, 0, "", 0 ])); - } + var $1 = {}; //#7335 + $1.options = $k[--$j]; //#7337 + $1.barcode = $k[--$j]; //#7338 + $1.dontdraw = false; //#7340 + $1.height = 10 / 72; //#7341 + $1.linkage = false; //#7342 + $forall($1.options, function() { //#7353 + var _3 = $k[--$j]; //#7353 + $1[$k[--$j]] = _3; //#7353 + }); //#7353 + $1.height = +$1.height; //#7355 + if ($ne($geti($1.barcode, 0, 4), "(01)")) { //#7360 + $k[$j++] = 'bwipp.databarlimitedBadAI'; //#7359 + $k[$j++] = "GS1 DataBar Limited must begin with (01) application identifier"; //#7359 + $0.raiseerror(); //#7359 + } //#7359 + if (($1.barcode.length != 17) && ($1.barcode.length != 18)) { //#7363 + $k[$j++] = 'bwipp.databarlimitedBadLength'; //#7362 + $k[$j++] = "GS1 DataBar Limited must be 13 or 14 digits"; //#7362 + $0.raiseerror(); //#7362 + } //#7362 + var _B = $get($1.barcode, 4); //#7364 + if ((_B < 48) || (_B > 49)) { //#7366 + $k[$j++] = 'bwipp.databarlimitedBadStartDigit'; //#7365 + $k[$j++] = "GS1 DataBar Limited must begin with 0 or 1"; //#7365 + $0.raiseerror(); //#7365 + } //#7365 + var _E = $geti($1.barcode, 5, $1.barcode.length - 5); //#7367 + for (var _F = 0, _G = _E.length; _F < _G; _F++) { //#7371 + var _H = $get(_E, _F); //#7371 + if ((_H < 48) || (_H > 57)) { //#7370 + $k[$j++] = 'bwipp.databarlimitedBadCharacter'; //#7369 + $k[$j++] = "GS1 DataBar Limited must contain only digits"; //#7369 + $0.raiseerror(); //#7369 + } //#7369 + } //#7369 + $1.checksum = 0; //#7374 + for (var _I = 0; _I <= 12; _I += 1) { //#7378 + $1.i = _I; //#7376 + $k[$j++] = 'checksum'; //#7377 + $k[$j++] = $1.checksum; //#7377 + $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); //#7377 + if (($1.i % 2) == 0) { //#7377 + var _O = $k[--$j]; //#7377 + $k[$j++] = _O * 3; //#7377 + } //#7377 + var _P = $k[--$j]; //#7377 + var _Q = $k[--$j]; //#7377 + $1[$k[--$j]] = $f(_Q + _P); //#7377 + } //#7377 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#7379 + if ($1.barcode.length == 18) { //#7384 + if ($get($1.barcode, 17) != ($1.checksum + 48)) { //#7383 + $k[$j++] = 'bwipp.databarlimitedBadCheckDigit'; //#7382 + $k[$j++] = "Incorrect GS1 DataBar Limited check digit provided"; //#7382 + $0.raiseerror(); //#7382 + } //#7382 + } //#7382 + var _X = $s(18); //#7385 + $puti(_X, 0, $1.barcode); //#7386 + $put(_X, 17, $1.checksum + 48); //#7387 + $1.barcode = _X; //#7388 + $k[$j++] = Infinity; //#7392 + var _b = $geti($1.barcode, 4, 13); //#7392 + for (var _c = 0, _d = _b.length; _c < _d; _c++) { //#7392 + $k[$j++] = $f($get(_b, _c) - 48); //#7392 + } //#7392 + $1.binval = $a(); //#7392 + if ($1.linkage) { //#7400 + $1.linkval = $a([2, 0, 1, 5, 1, 3, 3, 5, 3, 1, 0, 9, 6]); //#7395 + for (var _k = 0, _j = $1.binval.length - 1; _k <= _j; _k += 1) { //#7399 + $1.i = _k; //#7397 + $put($1.binval, $1.i, $f($get($1.binval, $1.i) + $get($1.linkval, $1.i))); //#7398 + } //#7398 + } //#7398 + $1.txt = $a($1.barcode.length); //#7403 + for (var _x = 0, _w = $1.barcode.length - 1; _x <= _w; _x += 1) { //#7407 + $1.i = _x; //#7405 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), 0, 0, "", 0])); //#7406 + } //#7406 $1.ncr = function() { - var _14 = $k[--$j]; - var _15 = $k[--$j]; - var _16 = $f(_15 - _14); - if (_14 < $f(_15 - _14)) { - var _ = _16; - _16 = _14; - _14 = _; - } - $k[$j++] = _16; - $k[$j++] = 1; - $k[$j++] = 1; - for (var _18 = _15, _17 = $f(_14 + 1); _18 >= _17; _18 -= 1) { - var _19 = $k[--$j]; - var _1A = $k[--$j]; - var _1B = $k[--$j]; - $k[$j++] = _1B; - $k[$j++] = _1A; - $k[$j++] = _19 * _18; - if ($le(_1A, _1B)) { - var _1C = $k[--$j]; - var _1D = $k[--$j]; - $k[$j++] = $f(_1D + 1); - $k[$j++] = ~~(_1C / _1D); - } - } - for (;;) { - var _1E = $k[--$j]; - var _1F = $k[--$j]; - var _1G = $k[--$j]; - $k[$j++] = _1G; - $k[$j++] = _1F; - $k[$j++] = _1E; - if ($gt(_1F, _1G)) { - break; - } - var _1H = $k[--$j]; - var _1I = $k[--$j]; - $k[$j++] = $f(_1I + 1); - $k[$j++] = ~~(_1H / _1I); - } - var _1J = $k[--$j]; - var _1K = $k[--$j]; - $k[$j++] = _1J; - $k[$j++] = _1K; - $j--; - var _1L = $k[--$j]; - var _1M = $k[--$j]; - $k[$j++] = _1L; - $k[$j++] = _1M; - $j--; - }; + var _14 = $k[--$j]; //#7410 + var _15 = $k[--$j]; //#7410 + var _16 = $f(_15 - _14); //#7410 + if (_14 < $f(_15 - _14)) { //#7410 + var _ = _16; //#7410 + _16 = _14; //#7410 + _14 = _; //#7410 + } //#7410 + $k[$j++] = _16; //#7417 + $k[$j++] = 1; //#7417 + $k[$j++] = 1; //#7417 + for (var _18 = _15, _17 = $f(_14 + 1); _18 >= _17; _18 -= 1) { //#7417 + var _19 = $k[--$j]; //#7413 + var _1A = $k[--$j]; //#7414 + var _1B = $k[--$j]; //#7414 + $k[$j++] = _1B; //#7416 + $k[$j++] = _1A; //#7416 + $k[$j++] = _19 * _18; //#7416 + if ($le(_1A, _1B)) { //#7416 + var _1C = $k[--$j]; //#7415 + var _1D = $k[--$j]; //#7415 + $k[$j++] = $f(_1D + 1); //#7415 + $k[$j++] = ~~(_1C / _1D); //#7415 + } //#7415 + } //#7415 + for (;;) { //#7421 + var _1E = $k[--$j]; //#7419 + var _1F = $k[--$j]; //#7419 + var _1G = $k[--$j]; //#7419 + $k[$j++] = _1G; //#7419 + $k[$j++] = _1F; //#7419 + $k[$j++] = _1E; //#7419 + if ($gt(_1F, _1G)) { //#7419 + break; //#7419 + } //#7419 + var _1H = $k[--$j]; //#7420 + var _1I = $k[--$j]; //#7420 + $k[$j++] = $f(_1I + 1); //#7420 + $k[$j++] = ~~(_1H / _1I); //#7420 + } //#7420 + var _1J = $k[--$j]; //#7422 + var _1K = $k[--$j]; //#7422 + $k[$j++] = _1J; //#7422 + $k[$j++] = _1K; //#7422 + $j--; //#7422 + var _1L = $k[--$j]; //#7422 + var _1M = $k[--$j]; //#7422 + $k[$j++] = _1L; //#7422 + $k[$j++] = _1M; //#7422 + $j--; //#7422 + }; //#7423 $1.getRSSwidths = function() { - $1.oe = $k[--$j]; - $1.el = $k[--$j]; - $1.mw = $k[--$j]; - $1.nm = $k[--$j]; - $1.val = $k[--$j]; - $1.out = $a($1.el); - $1.mask = 0; - for (var _1W = 0, _1V = $f($1.el - 2); _1W <= _1V; _1W += 1) { - $1.bar = _1W; - $1.ew = 1; - var _1Y = $1.bar; - $1.mask = $1.mask | (_1Y < 0 ? 1 >>> -_1Y : 1 << _1Y); - for (;;) { - $k[$j++] = "sval"; - $k[$j++] = $f($f($1.nm - $1.ew) - 1); - $k[$j++] = $f($f($1.el - $1.bar) - 2); - $1.ncr(); - var _1d = $k[--$j]; - $1[$k[--$j]] = _1d; - if ($1.oe && $1.mask == 0 && $f($f($f($1.nm - $1.ew) - $1.el * 2) + $1.bar * 2) >= -2) { - $k[$j++] = "sval"; - $k[$j++] = $1.sval; - $k[$j++] = $f($f($f($1.nm - $1.ew) - $1.el) + $1.bar); - $k[$j++] = $f($f($1.el - $1.bar) - 2); - $1.ncr(); - var _1s = $k[--$j]; - var _1t = $k[--$j]; - $1[$k[--$j]] = $f(_1t - _1s); - } - if ($f($1.el - $1.bar) > 2) { - $1.lval = 0; - for (var _23 = $f($f($f($f($1.nm - $1.ew) - $1.el) + $1.bar) + 2), _22 = $f($1.mw + 1); _23 >= _22; _23 -= 1) { - $k[$j++] = $f($f($f($1.nm - _23) - $1.ew) - 1); - $k[$j++] = $f($f($1.el - $1.bar) - 3); - $1.ncr(); - $1.lval = $f($k[--$j] + $1.lval); - } - $1.sval = $f($1.sval - $1.lval * $f($f($1.el - $1.bar) - 1)); - } else { - if ($f($1.nm - $1.ew) > $1.mw) { - $1.sval = $f($1.sval - 1); - } - } - $1.val = $f($1.val - $1.sval); - if ($1.val < 0) { - break; - } - $1.ew = $1.ew + 1; - var _2N = $1.bar; - $1.mask = $1.mask & ~(_2N < 0 ? 1 >>> -_2N : 1 << _2N); - } - $1.val = $f($1.val + $1.sval); - $1.nm = $f($1.nm - $1.ew); - $put($1.out, $1.bar, $1.ew); - } - $put($1.out, $f($1.el - 1), $1.nm); - $k[$j++] = $1.out; - }; - for (var _2Z = 0; _2Z <= 11; _2Z += 1) { - $1.i = _2Z; - var _2a = $1.binval; - var _2b = $1.i; - $put(_2a, _2b + 1, $f($get(_2a, _2b + 1) + $get($1.binval, $1.i) % 2013571 * 10)); - $put($1.binval, $1.i, ~~($get($1.binval, $1.i) / 2013571)); - } - $1.d2 = $get($1.binval, 12) % 2013571; - var _2n = $1.binval; - $put(_2n, 12, ~~($get(_2n, 12) / 2013571)); - $1.d1 = 0; - $1.i = true; - for (var _2p = 0; _2p <= 12; _2p += 1) { - $1.j = _2p; - var _2s = $get($1.binval, $1.j); - $k[$j++] = _2s; - if (_2s == 0 && $1.i) { - $j--; - } else { - $1.i = false; - $1.d1 = $f($1.d1 + $k[--$j] * ~~Math.pow(10, 12 - $1.j)); - } - } - $1.tab267 = $a([ 183063, 0, 17, 9, 6, 3, 6538, 28, 820063, 183064, 13, 13, 5, 4, 875, 728, 1000775, 820064, 9, 17, 3, 6, 28, 6454, 1491020, 1000776, 15, 11, 5, 4, 2415, 203, 1979844, 1491021, 11, 15, 4, 5, 203, 2408, 1996938, 1979845, 19, 7, 8, 1, 17094, 1, 2013570, 1996939, 7, 19, 1, 8, 1, 16632 ]); - $1.i = 0; - for (;;) { - if ($1.d1 <= $get($1.tab267, $1.i)) { - var _34 = $geti($1.tab267, $1.i + 1, 7); - for (var _35 = 0, _36 = _34.length; _35 < _36; _35++) { - $k[$j++] = $get(_34, _35); - } - $1.d1te = $k[--$j]; - $1.d1to = $k[--$j]; - $1.d1mwe = $k[--$j]; - $1.d1mwo = $k[--$j]; - $1.d1ele = $k[--$j]; - $1.d1elo = $k[--$j]; - $1.d1gs = $k[--$j]; - break; - } - $1.i = $1.i + 8; - } - $1.i = 0; - for (;;) { - if ($1.d2 <= $get($1.tab267, $1.i)) { - var _3M = $geti($1.tab267, $1.i + 1, 7); - for (var _3N = 0, _3O = _3M.length; _3N < _3O; _3N++) { - $k[$j++] = $get(_3M, _3N); - } - $1.d2te = $k[--$j]; - $1.d2to = $k[--$j]; - $1.d2mwe = $k[--$j]; - $1.d2mwo = $k[--$j]; - $1.d2ele = $k[--$j]; - $1.d2elo = $k[--$j]; - $1.d2gs = $k[--$j]; - break; - } - $1.i = $1.i + 8; - } - $k[$j++] = "d1wo"; - $k[$j++] = ~~($f($1.d1 - $1.d1gs) / $1.d1te); - $k[$j++] = $1.d1elo; - $k[$j++] = $1.d1mwo; - $k[$j++] = 7; - $k[$j++] = false; - $1.getRSSwidths(); - var _3d = $k[--$j]; - $1[$k[--$j]] = _3d; - $k[$j++] = "d1we"; - $k[$j++] = $f($1.d1 - $1.d1gs) % $1.d1te; - $k[$j++] = $1.d1ele; - $k[$j++] = $1.d1mwe; - $k[$j++] = 7; - $k[$j++] = true; - $1.getRSSwidths(); - var _3k = $k[--$j]; - $1[$k[--$j]] = _3k; - $k[$j++] = "d2wo"; - $k[$j++] = ~~($f($1.d2 - $1.d2gs) / $1.d2te); - $k[$j++] = $1.d2elo; - $k[$j++] = $1.d2mwo; - $k[$j++] = 7; - $k[$j++] = false; - $1.getRSSwidths(); - var _3r = $k[--$j]; - $1[$k[--$j]] = _3r; - $k[$j++] = "d2we"; - $k[$j++] = $f($1.d2 - $1.d2gs) % $1.d2te; - $k[$j++] = $1.d2ele; - $k[$j++] = $1.d2mwe; - $k[$j++] = 7; - $k[$j++] = true; - $1.getRSSwidths(); - var _3y = $k[--$j]; - $1[$k[--$j]] = _3y; - $1.d1w = $a(14); - for (var _41 = 0; _41 <= 6; _41 += 1) { - $1.i = _41; - $put($1.d1w, $1.i * 2, $get($1.d1wo, $1.i)); - $put($1.d1w, $1.i * 2 + 1, $get($1.d1we, $1.i)); - } - $1.d2w = $a(14); - for (var _4D = 0; _4D <= 6; _4D += 1) { - $1.i = _4D; - $put($1.d2w, $1.i * 2, $get($1.d2wo, $1.i)); - $put($1.d2w, $1.i * 2 + 1, $get($1.d2we, $1.i)); - } - $k[$j++] = Infinity; - var _4O = $1.d1w; - for (var _4P = 0, _4Q = _4O.length; _4P < _4Q; _4P++) { - $k[$j++] = $get(_4O, _4P); - } - var _4S = $1.d2w; - for (var _4T = 0, _4U = _4S.length; _4T < _4U; _4T++) { - $k[$j++] = $get(_4S, _4T); - } - $1.widths = $a(); - $1.checkweights = $a([ 1, 3, 9, 27, 81, 65, 17, 51, 64, 14, 42, 37, 22, 66, 20, 60, 2, 6, 18, 54, 73, 41, 34, 13, 39, 28, 84, 74 ]); - $k[$j++] = Infinity; - for (var _4Y = 0; _4Y <= 43; _4Y += 1) { - $k[$j++] = _4Y; - } - $k[$j++] = 45; - $k[$j++] = 52; - $k[$j++] = 57; - for (var _4Z = 63; _4Z <= 66; _4Z += 1) { - $k[$j++] = _4Z; - } - for (var _4a = 73; _4a <= 79; _4a += 1) { - $k[$j++] = _4a; - } - $k[$j++] = 82; - for (var _4b = 126; _4b <= 130; _4b += 1) { - $k[$j++] = _4b; - } - $k[$j++] = 132; - for (var _4c = 141; _4c <= 146; _4c += 1) { - $k[$j++] = _4c; - } - for (var _4d = 210; _4d <= 217; _4d += 1) { - $k[$j++] = _4d; - } - $k[$j++] = 220; - for (var _4e = 316; _4e <= 320; _4e += 1) { - $k[$j++] = _4e; - } - $k[$j++] = 322; - $k[$j++] = 323; - $k[$j++] = 326; - $k[$j++] = 337; - $1.checkseq = $a(); - $1.checksum = 0; - for (var _4g = 0; _4g <= 27; _4g += 1) { - $1.i = _4g; - $1.checksum = $f($1.checksum + $get($1.widths, $1.i) * $get($1.checkweights, $1.i)); - } - $1.checksum = $1.checksum % 89; - $1.seq = $get($1.checkseq, $1.checksum); - $k[$j++] = "swidths"; - $k[$j++] = ~~($1.seq / 21); - $k[$j++] = 8; - $k[$j++] = 3; - $k[$j++] = 6; - $k[$j++] = false; - $1.getRSSwidths(); - var _4t = $k[--$j]; - $1[$k[--$j]] = _4t; - $k[$j++] = "bwidths"; - $k[$j++] = $1.seq % 21; - $k[$j++] = 8; - $k[$j++] = 3; - $k[$j++] = 6; - $k[$j++] = false; - $1.getRSSwidths(); - var _4w = $k[--$j]; - $1[$k[--$j]] = _4w; - $1.checkwidths = $a([ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1 ]); - for (var _4z = 0; _4z <= 5; _4z += 1) { - $1.i = _4z; - $put($1.checkwidths, $1.i * 2, $get($1.swidths, $1.i)); - $put($1.checkwidths, $1.i * 2 + 1, $get($1.bwidths, $1.i)); - } - $k[$j++] = Infinity; - var _5A = $1.d1w; - $k[$j++] = 1; - for (var _5B = 0, _5C = _5A.length; _5B < _5C; _5B++) { - $k[$j++] = $get(_5A, _5B); - } - var _5E = $1.checkwidths; - for (var _5F = 0, _5G = _5E.length; _5F < _5G; _5F++) { - $k[$j++] = $get(_5E, _5F); - } - var _5I = $1.d2w; - for (var _5J = 0, _5K = _5I.length; _5J < _5K; _5J++) { - $k[$j++] = $get(_5I, _5J); - } - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 5; - $1.sbs = $a(); - $k[$j++] = Infinity; - var _5N = $1.sbs; - $k[$j++] = Infinity; - for (var _5P = 0, _5Q = ~~(($1.sbs.length + 1) / 2); _5P < _5Q; _5P++) { - $k[$j++] = $1.height; - } - var _5S = $a(); - $k[$j++] = Infinity; - for (var _5U = 0, _5V = ~~(($1.sbs.length + 1) / 2); _5U < _5V; _5U++) { - $k[$j++] = 0; - } - var _5W = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _5N; - $k[$j++] = "bhs"; - $k[$j++] = _5S; - $k[$j++] = "bbs"; - $k[$j++] = _5W; - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - $k[$j++] = "textxalign"; - $k[$j++] = "center"; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _5Z = $d(); - $k[$j++] = _5Z; - if (!$1.dontdraw) { - $0.renlinear(); - } + $1.oe = $k[--$j]; //#7426 + $1.el = $k[--$j]; //#7427 + $1.mw = $k[--$j]; //#7428 + $1.nm = $k[--$j]; //#7429 + $1.val = $k[--$j]; //#7430 + $1.out = $a($1.el); //#7431 + $1.mask = 0; //#7432 + for (var _1W = 0, _1V = $f($1.el - 2); _1W <= _1V; _1W += 1) { //#7459 + $1.bar = _1W; //#7434 + $1.ew = 1; //#7435 + var _1Y = $1.bar; //#7436 + $1.mask = $1.mask | ((_1Y < 0 ? 1 >>> -_1Y : 1 << _1Y)); //#7436 + for (;;) { //#7455 + $k[$j++] = 'sval'; //#7437 + $k[$j++] = $f($f($1.nm - $1.ew) - 1); //#7437 + $k[$j++] = $f($f($1.el - $1.bar) - 2); //#7437 + $1.ncr(); //#7437 + var _1d = $k[--$j]; //#7437 + $1[$k[--$j]] = _1d; //#7437 + if (($1.oe && ($1.mask == 0)) && (($f(($f($f($1.nm - $1.ew) - ($1.el * 2))) + ($1.bar * 2))) >= -2)) { //#7440 + $k[$j++] = 'sval'; //#7439 + $k[$j++] = $1.sval; //#7439 + $k[$j++] = $f(($f($f($1.nm - $1.ew) - $1.el)) + $1.bar); //#7439 + $k[$j++] = $f($f($1.el - $1.bar) - 2); //#7439 + $1.ncr(); //#7439 + var _1s = $k[--$j]; //#7439 + var _1t = $k[--$j]; //#7439 + $1[$k[--$j]] = $f(_1t - _1s); //#7439 + } //#7439 + if ($f($1.el - $1.bar) > 2) { //#7449 + $1.lval = 0; //#7442 + for (var _23 = $f(($f(($f($f($1.nm - $1.ew) - $1.el)) + $1.bar)) + 2), _22 = $f($1.mw + 1); _23 >= _22; _23 -= 1) { //#7446 + $k[$j++] = $f(($f($f($1.nm - _23) - $1.ew)) - 1); //#7444 + $k[$j++] = $f($f($1.el - $1.bar) - 3); //#7444 + $1.ncr(); //#7444 + $1.lval = $f($k[--$j] + $1.lval); //#7445 + } //#7445 + $1.sval = $f($1.sval - ($1.lval * ($f($f($1.el - $1.bar) - 1)))); //#7447 + } else { //#7449 + if ($f($1.nm - $1.ew) > $1.mw) { //#7449 + $1.sval = $f($1.sval - 1); //#7449 + } //#7449 + } //#7449 + $1.val = $f($1.val - $1.sval); //#7451 + if ($1.val < 0) { //#7452 + break; //#7452 + } //#7452 + $1.ew = $1.ew + 1; //#7453 + var _2N = $1.bar; //#7454 + $1.mask = $1.mask & (~((_2N < 0 ? 1 >>> -_2N : 1 << _2N))); //#7454 + } //#7454 + $1.val = $f($1.val + $1.sval); //#7456 + $1.nm = $f($1.nm - $1.ew); //#7457 + $put($1.out, $1.bar, $1.ew); //#7458 + } //#7458 + $put($1.out, $f($1.el - 1), $1.nm); //#7460 + $k[$j++] = $1.out; //#7461 + }; //#7462 + for (var _2Z = 0; _2Z <= 11; _2Z += 1) { //#7468 + $1.i = _2Z; //#7465 + var _2a = $1.binval; //#7466 + var _2b = $1.i; //#7466 + $put(_2a, _2b + 1, $f($get(_2a, _2b + 1) + (($get($1.binval, $1.i) % 2013571) * 10))); //#7466 + $put($1.binval, $1.i, ~~($get($1.binval, $1.i) / 2013571)); //#7467 + } //#7467 + $1.d2 = $get($1.binval, 12) % 2013571; //#7469 + var _2n = $1.binval; //#7470 + $put(_2n, 12, ~~($get(_2n, 12) / 2013571)); //#7470 + $1.d1 = 0; //#7472 + $1.i = true; //#7473 + for (var _2p = 0; _2p <= 12; _2p += 1) { //#7483 + $1.j = _2p; //#7475 + var _2s = $get($1.binval, $1.j); //#7476 + $k[$j++] = _2s; //#7482 + if ((_2s == 0) && $1.i) { //#7481 + $j--; //#7478 + } else { //#7481 + $1.i = false; //#7480 + $1.d1 = $f($1.d1 + ($k[--$j] * (~~Math.pow(10, 12 - $1.j)))); //#7481 + } //#7481 + } //#7481 + $1.tab267 = $a([183063, 0, 17, 9, 6, 3, 6538, 28, 820063, 183064, 13, 13, 5, 4, 875, 728, 1000775, 820064, 9, 17, 3, 6, 28, 6454, 1491020, 1000776, 15, 11, 5, 4, 2415, 203, 1979844, 1491021, 11, 15, 4, 5, 203, 2408, 1996938, 1979845, 19, 7, 8, 1, 17094, 1, 2013570, 1996939, 7, 19, 1, 8, 1, 16632]); //#7493 + $1.i = 0; //#7495 + for (;;) { //#7505 + if ($1.d1 <= $get($1.tab267, $1.i)) { //#7503 + var _34 = $geti($1.tab267, $1.i + 1, 7); //#7497 + for (var _35 = 0, _36 = _34.length; _35 < _36; _35++) { //#7497 + $k[$j++] = $get(_34, _35); //#7497 + } //#7497 + $1.d1te = $k[--$j]; //#7498 + $1.d1to = $k[--$j]; //#7498 + $1.d1mwe = $k[--$j]; //#7499 + $1.d1mwo = $k[--$j]; //#7499 + $1.d1ele = $k[--$j]; //#7500 + $1.d1elo = $k[--$j]; //#7500 + $1.d1gs = $k[--$j]; //#7501 + break; //#7502 + } //#7502 + $1.i = $1.i + 8; //#7504 + } //#7504 + $1.i = 0; //#7507 + for (;;) { //#7517 + if ($1.d2 <= $get($1.tab267, $1.i)) { //#7515 + var _3M = $geti($1.tab267, $1.i + 1, 7); //#7509 + for (var _3N = 0, _3O = _3M.length; _3N < _3O; _3N++) { //#7509 + $k[$j++] = $get(_3M, _3N); //#7509 + } //#7509 + $1.d2te = $k[--$j]; //#7510 + $1.d2to = $k[--$j]; //#7510 + $1.d2mwe = $k[--$j]; //#7511 + $1.d2mwo = $k[--$j]; //#7511 + $1.d2ele = $k[--$j]; //#7512 + $1.d2elo = $k[--$j]; //#7512 + $1.d2gs = $k[--$j]; //#7513 + break; //#7514 + } //#7514 + $1.i = $1.i + 8; //#7516 + } //#7516 + $k[$j++] = 'd1wo'; //#7519 + $k[$j++] = ~~($f($1.d1 - $1.d1gs) / $1.d1te); //#7519 + $k[$j++] = $1.d1elo; //#7519 + $k[$j++] = $1.d1mwo; //#7519 + $k[$j++] = 7; //#7519 + $k[$j++] = false; //#7519 + $1.getRSSwidths(); //#7519 + var _3d = $k[--$j]; //#7519 + $1[$k[--$j]] = _3d; //#7519 + $k[$j++] = 'd1we'; //#7520 + $k[$j++] = $f($1.d1 - $1.d1gs) % $1.d1te; //#7520 + $k[$j++] = $1.d1ele; //#7520 + $k[$j++] = $1.d1mwe; //#7520 + $k[$j++] = 7; //#7520 + $k[$j++] = true; //#7520 + $1.getRSSwidths(); //#7520 + var _3k = $k[--$j]; //#7520 + $1[$k[--$j]] = _3k; //#7520 + $k[$j++] = 'd2wo'; //#7521 + $k[$j++] = ~~($f($1.d2 - $1.d2gs) / $1.d2te); //#7521 + $k[$j++] = $1.d2elo; //#7521 + $k[$j++] = $1.d2mwo; //#7521 + $k[$j++] = 7; //#7521 + $k[$j++] = false; //#7521 + $1.getRSSwidths(); //#7521 + var _3r = $k[--$j]; //#7521 + $1[$k[--$j]] = _3r; //#7521 + $k[$j++] = 'd2we'; //#7522 + $k[$j++] = $f($1.d2 - $1.d2gs) % $1.d2te; //#7522 + $k[$j++] = $1.d2ele; //#7522 + $k[$j++] = $1.d2mwe; //#7522 + $k[$j++] = 7; //#7522 + $k[$j++] = true; //#7522 + $1.getRSSwidths(); //#7522 + var _3y = $k[--$j]; //#7522 + $1[$k[--$j]] = _3y; //#7522 + $1.d1w = $a(14); //#7524 + for (var _41 = 0; _41 <= 6; _41 += 1) { //#7529 + $1.i = _41; //#7526 + $put($1.d1w, $1.i * 2, $get($1.d1wo, $1.i)); //#7527 + $put($1.d1w, ($1.i * 2) + 1, $get($1.d1we, $1.i)); //#7528 + } //#7528 + $1.d2w = $a(14); //#7531 + for (var _4D = 0; _4D <= 6; _4D += 1) { //#7536 + $1.i = _4D; //#7533 + $put($1.d2w, $1.i * 2, $get($1.d2wo, $1.i)); //#7534 + $put($1.d2w, ($1.i * 2) + 1, $get($1.d2we, $1.i)); //#7535 + } //#7535 + $k[$j++] = Infinity; //#7540 + var _4O = $1.d1w; //#7539 + for (var _4P = 0, _4Q = _4O.length; _4P < _4Q; _4P++) { //#7539 + $k[$j++] = $get(_4O, _4P); //#7539 + } //#7539 + var _4S = $1.d2w; //#7540 + for (var _4T = 0, _4U = _4S.length; _4T < _4U; _4T++) { //#7540 + $k[$j++] = $get(_4S, _4T); //#7540 + } //#7540 + $1.widths = $a(); //#7540 + $1.checkweights = $a([1, 3, 9, 27, 81, 65, 17, 51, 64, 14, 42, 37, 22, 66, 20, 60, 2, 6, 18, 54, 73, 41, 34, 13, 39, 28, 84, 74]); //#7546 + $k[$j++] = Infinity; //#7561 + for (var _4Y = 0; _4Y <= 43; _4Y += 1) { //#7549 + $k[$j++] = _4Y; //#7549 + } //#7549 + $k[$j++] = 45; //#7551 + $k[$j++] = 52; //#7551 + $k[$j++] = 57; //#7551 + for (var _4Z = 63; _4Z <= 66; _4Z += 1) { //#7551 + $k[$j++] = _4Z; //#7551 + } //#7551 + for (var _4a = 73; _4a <= 79; _4a += 1) { //#7552 + $k[$j++] = _4a; //#7552 + } //#7552 + $k[$j++] = 82; //#7554 + for (var _4b = 126; _4b <= 130; _4b += 1) { //#7554 + $k[$j++] = _4b; //#7554 + } //#7554 + $k[$j++] = 132; //#7556 + for (var _4c = 141; _4c <= 146; _4c += 1) { //#7556 + $k[$j++] = _4c; //#7556 + } //#7556 + for (var _4d = 210; _4d <= 217; _4d += 1) { //#7557 + $k[$j++] = _4d; //#7557 + } //#7557 + $k[$j++] = 220; //#7559 + for (var _4e = 316; _4e <= 320; _4e += 1) { //#7559 + $k[$j++] = _4e; //#7559 + } //#7559 + $k[$j++] = 322; //#7561 + $k[$j++] = 323; //#7561 + $k[$j++] = 326; //#7561 + $k[$j++] = 337; //#7561 + $1.checkseq = $a(); //#7561 + $1.checksum = 0; //#7564 + for (var _4g = 0; _4g <= 27; _4g += 1) { //#7568 + $1.i = _4g; //#7566 + $1.checksum = $f($1.checksum + ($get($1.widths, $1.i) * $get($1.checkweights, $1.i))); //#7567 + } //#7567 + $1.checksum = $1.checksum % 89; //#7569 + $1.seq = $get($1.checkseq, $1.checksum); //#7570 + $k[$j++] = 'swidths'; //#7571 + $k[$j++] = ~~($1.seq / 21); //#7571 + $k[$j++] = 8; //#7571 + $k[$j++] = 3; //#7571 + $k[$j++] = 6; //#7571 + $k[$j++] = false; //#7571 + $1.getRSSwidths(); //#7571 + var _4t = $k[--$j]; //#7571 + $1[$k[--$j]] = _4t; //#7571 + $k[$j++] = 'bwidths'; //#7572 + $k[$j++] = $1.seq % 21; //#7572 + $k[$j++] = 8; //#7572 + $k[$j++] = 3; //#7572 + $k[$j++] = 6; //#7572 + $k[$j++] = false; //#7572 + $1.getRSSwidths(); //#7572 + var _4w = $k[--$j]; //#7572 + $1[$k[--$j]] = _4w; //#7572 + $1.checkwidths = $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1]); //#7574 + for (var _4z = 0; _4z <= 5; _4z += 1) { //#7579 + $1.i = _4z; //#7576 + $put($1.checkwidths, $1.i * 2, $get($1.swidths, $1.i)); //#7577 + $put($1.checkwidths, ($1.i * 2) + 1, $get($1.bwidths, $1.i)); //#7578 + } //#7578 + $k[$j++] = Infinity; //#7582 + var _5A = $1.d1w; //#7582 + $k[$j++] = 1; //#7582 + for (var _5B = 0, _5C = _5A.length; _5B < _5C; _5B++) { //#7582 + $k[$j++] = $get(_5A, _5B); //#7582 + } //#7582 + var _5E = $1.checkwidths; //#7582 + for (var _5F = 0, _5G = _5E.length; _5F < _5G; _5F++) { //#7582 + $k[$j++] = $get(_5E, _5F); //#7582 + } //#7582 + var _5I = $1.d2w; //#7582 + for (var _5J = 0, _5K = _5I.length; _5J < _5K; _5J++) { //#7582 + $k[$j++] = $get(_5I, _5J); //#7582 + } //#7582 + $k[$j++] = 1; //#7582 + $k[$j++] = 1; //#7582 + $k[$j++] = 5; //#7582 + $1.sbs = $a(); //#7582 + $k[$j++] = Infinity; //#7593 + var _5N = $1.sbs; //#7588 + $k[$j++] = Infinity; //#7589 + for (var _5P = 0, _5Q = ~~(($1.sbs.length + 1) / 2); _5P < _5Q; _5P++) { //#7589 + $k[$j++] = $1.height; //#7589 + } //#7589 + var _5S = $a(); //#7589 + $k[$j++] = Infinity; //#7590 + for (var _5U = 0, _5V = ~~(($1.sbs.length + 1) / 2); _5U < _5V; _5U++) { //#7590 + $k[$j++] = 0; //#7590 + } //#7590 + var _5W = $a(); //#7590 + $k[$j++] = 'ren'; //#7593 + $k[$j++] = $0.renlinear; //#7593 + $k[$j++] = 'sbs'; //#7593 + $k[$j++] = _5N; //#7593 + $k[$j++] = 'bhs'; //#7593 + $k[$j++] = _5S; //#7593 + $k[$j++] = 'bbs'; //#7593 + $k[$j++] = _5W; //#7593 + $k[$j++] = 'txt'; //#7593 + $k[$j++] = $1.txt; //#7593 + $k[$j++] = 'textxalign'; //#7593 + $k[$j++] = "center"; //#7593 + $k[$j++] = 'opt'; //#7593 + $k[$j++] = $1.options; //#7593 + var _5Z = $d(); //#7593 + $k[$j++] = _5Z; //#7596 + if (!$1.dontdraw) { //#7596 + $0.renlinear(); //#7596 + } //#7596 }; $0.databarexpanded = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.parse = false; - $1.dontlint = false; - $1.dontdraw = false; - $1.height = 34 / 72; - $1.format = "expanded"; - $1.segments = -1; - $1.linkage = false; - $1.barxmult = 34; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.height = +$1.height; - $1.segments = ~~$1.segments; - $1.barxmult = ~~$1.barxmult; - if ($1.segments == -1) { - var _A = $eq($1.format, "expandedstacked") ? 4 : 22; - $1.segments = _A; - } else { - if ($1.segments < 2 || $1.segments > 22 || $1.segments % 2 != 0) { - $k[$j++] = "bwipp.gs1databarexpandedBadSegments"; - $k[$j++] = "The number of segments must be even from 2 to 22"; - $0.raiseerror(); - } - } + var $1 = {}; //#7628 + $1.options = $k[--$j]; //#7630 + $1.barcode = $k[--$j]; //#7631 + $1.parse = false; //#7633 + $1.dontlint = false; //#7634 + $1.dontdraw = false; //#7635 + $1.height = 34 / 72; //#7636 + $1.format = "expanded"; //#7637 + $1.segments = -1; //#7638 + $1.linkage = false; //#7639 + $1.barxmult = 34; //#7640 + $forall($1.options, function() { //#7651 + var _3 = $k[--$j]; //#7651 + $1[$k[--$j]] = _3; //#7651 + }); //#7651 + $1.height = +$1.height; //#7653 + $1.segments = ~~$1.segments; //#7654 + $1.barxmult = ~~$1.barxmult; //#7655 + if ($1.segments == -1) { //#7661 + var _A = $eq($1.format, "expandedstacked") ? 4 : 22; //#7658 + $1.segments = _A; //#7658 + } else { //#7661 + if ((($1.segments < 2) || ($1.segments > 22)) || (($1.segments % 2) != 0)) { //#7662 + $k[$j++] = 'bwipp.gs1databarexpandedBadSegments'; //#7661 + $k[$j++] = "The number of segments must be even from 2 to 22"; //#7661 + $0.raiseerror(); //#7661 + } //#7661 + } //#7661 $1.expand = function() { - var _F = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _F; - $k[$j++] = $1.fncvals; - $0.parseinput(); - }; - $1.ais = $a([]); - $1.vals = $a([]); - var _J = $1.barcode; - $k[$j++] = $geti(_J, 1, _J.length - 1); - for (;;) { - var _L = $k[--$j]; - $k[$j++] = _L; - if ($eq(_L, "")) { - break; - } - $search($k[--$j], ")"); - $j--; - var _N = $k[--$j]; - var _O = $k[--$j]; - $k[$j++] = _N; - $k[$j++] = _O; - $j--; - var _P = $k[--$j]; - var _Q = $k[--$j]; - $k[$j++] = _P; - $search(_Q, "("); - if ($k[--$j]) { - var _S = $k[--$j]; - var _T = $k[--$j]; - $k[$j++] = _S; - $k[$j++] = _T; - $j--; - var _U = $k[--$j]; - var _V = $k[--$j]; - var _W = $k[--$j]; - $k[$j++] = _V; - $k[$j++] = _W; - $k[$j++] = _U; - } else { - var _X = $k[--$j]; - var _Y = $k[--$j]; - $k[$j++] = ""; - $k[$j++] = _Y; - $k[$j++] = _X; - } - $k[$j++] = Infinity; - $aload($1.ais); - var _b = $k[$j - 1 - ($counttomark() + 2)]; - $k[$j++] = _b; - $1.ais = $a(); - $k[$j++] = Infinity; - $aload($1.vals); - var _f = $k[$j - 1 - ($counttomark() + 1)]; - $k[$j++] = _f; - $1.expand(); - $1.vals = $a(); - $j -= 2; - } - $j--; - if (!$1.dontlint) { - $k[$j++] = $1.ais; - $k[$j++] = $1.vals; - $0.gs1lint(); - $j--; - } - for (;;) { - if ($1.ais.length == 2) { - if ($eq($get($1.ais, 0), "01") && $eq($get($1.ais, 1), "3103")) { - if ($eq($geti($get($1.vals, 0), 0, 1), "9") && ~~$z($get($1.vals, 1)) <= 32767) { - $k[$j++] = "0100"; - $k[$j++] = false; - break; - } - } - } - if ($1.ais.length == 2) { - if ($eq($get($1.ais, 0), "01") && $eq($get($1.ais, 1), "3202")) { - if ($eq($geti($get($1.vals, 0), 0, 1), "9") && ~~$z($get($1.vals, 1)) <= 9999) { - $k[$j++] = "0101"; - $k[$j++] = false; - break; - } - } - } - if ($1.ais.length == 2) { - if ($eq($get($1.ais, 0), "01") && $eq($get($1.ais, 1), "3203")) { - if ($eq($geti($get($1.vals, 0), 0, 1), "9") && ~~$z($get($1.vals, 1)) <= 22767) { - $k[$j++] = "0101"; - $k[$j++] = false; - break; - } - } - } - var _1F = $1.ais.length; - if (_1F == 2 || _1F == 3) { - $k[$j++] = "ai310x"; - $k[$j++] = false; - for (var _1G = 3100; _1G <= 3109; _1G += 1) { - var _1L = $k[--$j]; - $k[$j++] = _1L || $eq($cvrs($s(4), _1G, 10), $get($1.ais, 1)); - } - var _1M = $k[--$j]; - $1[$k[--$j]] = _1M; - $k[$j++] = "ai320x"; - $k[$j++] = false; - for (var _1O = 3200; _1O <= 3209; _1O += 1) { - var _1T = $k[--$j]; - $k[$j++] = _1T || $eq($cvrs($s(4), _1O, 10), $get($1.ais, 1)); - } - var _1U = $k[--$j]; - $1[$k[--$j]] = _1U; - if ($1.ais.length == 3) { - var _1X = $a([ "11", "13", "15", "17" ]); - $k[$j++] = "aibad"; - $k[$j++] = true; - for (var _1Y = 0, _1Z = _1X.length; _1Y < _1Z; _1Y++) { - var _1d = $k[--$j]; - $k[$j++] = _1d && $ne($get(_1X, _1Y), $get($1.ais, 2)); - } - var _1e = $k[--$j]; - $1[$k[--$j]] = _1e; - } else { - $1.aibad = false; - } - if ($eq($get($1.ais, 0), "01") && ($1.ai310x || $1.ai320x) && !$1.aibad) { - if ($1.ais.length == 3) { - var _1u = ~~$z($geti($get($1.vals, 2), 2, 2)); - var _1y = ~~$z($geti($get($1.vals, 2), 4, 2)); - if ($eq($geti($get($1.vals, 0), 0, 1), "9") && ~~$z($get($1.vals, 1)) <= 99999 && (_1u >= 1 && _1u <= 12) && (_1y >= 0 && _1y <= 31)) { - if ($1.ai310x && $eq($get($1.ais, 2), "11")) { - $k[$j++] = "0111000"; - $k[$j++] = false; - break; - } - if ($1.ai320x && $eq($get($1.ais, 2), "11")) { - $k[$j++] = "0111001"; - $k[$j++] = false; - break; - } - if ($1.ai310x && $eq($get($1.ais, 2), "13")) { - $k[$j++] = "0111010"; - $k[$j++] = false; - break; - } - if ($1.ai320x && $eq($get($1.ais, 2), "13")) { - $k[$j++] = "0111011"; - $k[$j++] = false; - break; - } - if ($1.ai310x && $eq($get($1.ais, 2), "15")) { - $k[$j++] = "0111100"; - $k[$j++] = false; - break; - } - if ($1.ai320x && $eq($get($1.ais, 2), "15")) { - $k[$j++] = "0111101"; - $k[$j++] = false; - break; - } - if ($1.ai310x && $eq($get($1.ais, 2), "17")) { - $k[$j++] = "0111110"; - $k[$j++] = false; - break; - } - if ($1.ai320x && $eq($get($1.ais, 2), "17")) { - $k[$j++] = "0111111"; - $k[$j++] = false; - break; - } - } - } else { - if ($eq($geti($get($1.vals, 0), 0, 1), "9") && ~~$z($get($1.vals, 1)) <= 99999) { - if ($1.ai310x) { - $k[$j++] = "0111000"; - $k[$j++] = false; - break; - } - if ($1.ai320x) { - $k[$j++] = "0111001"; - $k[$j++] = false; - break; - } - } - } - } - } - if ($1.ais.length >= 2) { - $k[$j++] = "ai392x"; - $k[$j++] = false; - for (var _2V = 3920; _2V <= 3923; _2V += 1) { - var _2a = $k[--$j]; - $k[$j++] = _2a || $eq($cvrs($s(4), _2V, 10), $get($1.ais, 1)); - } - var _2b = $k[--$j]; - $1[$k[--$j]] = _2b; - if ($eq($get($1.ais, 0), "01") && $1.ai392x) { - if ($eq($geti($get($1.vals, 0), 0, 1), "9")) { - $k[$j++] = "01100"; - $k[$j++] = true; - break; - } - } - } - if ($1.ais.length >= 2) { - $k[$j++] = "ai393x"; - $k[$j++] = false; - for (var _2k = 3930; _2k <= 3933; _2k += 1) { - var _2p = $k[--$j]; - $k[$j++] = _2p || $eq($cvrs($s(4), _2k, 10), $get($1.ais, 1)); - } - var _2q = $k[--$j]; - $1[$k[--$j]] = _2q; - if ($eq($get($1.ais, 0), "01") && $1.ai393x) { - if ($eq($geti($get($1.vals, 0), 0, 1), "9")) { - $k[$j++] = "01101"; - $k[$j++] = true; - break; - } - } - } - if ($eq($get($1.ais, 0), "01")) { - $k[$j++] = "1"; - $k[$j++] = true; - break; - } - $k[$j++] = "00"; - $k[$j++] = true; - break; - } - $1.gpfallow = $k[--$j]; - $1.method = $k[--$j]; + var _F = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#7670 + $1.fncvals = _F; //#7671 + $k[$j++] = $1.fncvals; //#7672 + $0.parseinput(); //#7672 + }; //#7673 + $1.ais = $a([]); //#7676 + $1.vals = $a([]); //#7677 + var _J = $1.barcode; //#7678 + $k[$j++] = $geti(_J, 1, _J.length - 1); //#7691 + for (;;) { //#7691 + var _L = $k[--$j]; //#7680 + $k[$j++] = _L; //#7680 + if ($eq(_L, "")) { //#7680 + break; //#7680 + } //#7680 + $search($k[--$j], ")"); //#7681 + $j--; //#7681 + var _N = $k[--$j]; //#7682 + var _O = $k[--$j]; //#7682 + $k[$j++] = _N; //#7682 + $k[$j++] = _O; //#7682 + $j--; //#7682 + var _P = $k[--$j]; //#7683 + var _Q = $k[--$j]; //#7683 + $k[$j++] = _P; //#7683 + $search(_Q, "("); //#7683 + if ($k[--$j]) { //#7686 + var _S = $k[--$j]; //#7684 + var _T = $k[--$j]; //#7684 + $k[$j++] = _S; //#7684 + $k[$j++] = _T; //#7684 + $j--; //#7684 + var _U = $k[--$j]; //#7684 + var _V = $k[--$j]; //#7684 + var _W = $k[--$j]; //#7684 + $k[$j++] = _V; //#7684 + $k[$j++] = _W; //#7684 + $k[$j++] = _U; //#7684 + } else { //#7686 + var _X = $k[--$j]; //#7686 + var _Y = $k[--$j]; //#7686 + $k[$j++] = ""; //#7686 + $k[$j++] = _Y; //#7686 + $k[$j++] = _X; //#7686 + } //#7686 + $k[$j++] = Infinity; //#7688 + $aload($1.ais); //#7688 + var _b = $k[$j - 1 - ($counttomark() + 2)]; //#7688 + $k[$j++] = _b; //#7688 + $1.ais = $a(); //#7688 + $k[$j++] = Infinity; //#7689 + $aload($1.vals); //#7689 + var _f = $k[$j - 1 - ($counttomark() + 1)]; //#7689 + $k[$j++] = _f; //#7689 + $1.expand(); //#7689 + $1.vals = $a(); //#7689 + $j -= 2; //#7690 + } //#7690 + $j--; //#7692 + if (!$1.dontlint) { //#7694 + $k[$j++] = $1.ais; //#7694 + $k[$j++] = $1.vals; //#7694 + $0.gs1lint(); //#7694 + $j--; //#7694 + } //#7694 + for (;;) { //#7782 + if ($1.ais.length == 2) { //#7706 + if ($eq($get($1.ais, 0), "01") && $eq($get($1.ais, 1), "3103")) { //#7705 + if ($eq($geti($get($1.vals, 0), 0, 1), "9") && ((~~$z($get($1.vals, 1))) <= 32767)) { //#7704 + $k[$j++] = "0100"; //#7703 + $k[$j++] = false; //#7703 + break; //#7703 + } //#7703 + } //#7703 + } //#7703 + if ($1.ais.length == 2) { //#7715 + if ($eq($get($1.ais, 0), "01") && $eq($get($1.ais, 1), "3202")) { //#7714 + if ($eq($geti($get($1.vals, 0), 0, 1), "9") && ((~~$z($get($1.vals, 1))) <= 9999)) { //#7713 + $k[$j++] = "0101"; //#7712 + $k[$j++] = false; //#7712 + break; //#7712 + } //#7712 + } //#7712 + } //#7712 + if ($1.ais.length == 2) { //#7724 + if ($eq($get($1.ais, 0), "01") && $eq($get($1.ais, 1), "3203")) { //#7723 + if ($eq($geti($get($1.vals, 0), 0, 1), "9") && ((~~$z($get($1.vals, 1))) <= 22767)) { //#7722 + $k[$j++] = "0101"; //#7721 + $k[$j++] = false; //#7721 + break; //#7721 + } //#7721 + } //#7721 + } //#7721 + var _1F = $1.ais.length; //#7727 + if ((_1F == 2) || (_1F == 3)) { //#7758 + $k[$j++] = 'ai310x'; //#7728 + $k[$j++] = false; //#7728 + for (var _1G = 3100; _1G <= 3109; _1G += 1) { //#7728 + var _1L = $k[--$j]; //#7728 + $k[$j++] = _1L || $eq($cvrs($s(4), _1G, 10), $get($1.ais, 1)); //#7728 + } //#7728 + var _1M = $k[--$j]; //#7728 + $1[$k[--$j]] = _1M; //#7728 + $k[$j++] = 'ai320x'; //#7729 + $k[$j++] = false; //#7729 + for (var _1O = 3200; _1O <= 3209; _1O += 1) { //#7729 + var _1T = $k[--$j]; //#7729 + $k[$j++] = _1T || $eq($cvrs($s(4), _1O, 10), $get($1.ais, 1)); //#7729 + } //#7729 + var _1U = $k[--$j]; //#7729 + $1[$k[--$j]] = _1U; //#7729 + if ($1.ais.length == 3) { //#7733 + var _1X = $a(["11", "13", "15", "17"]); //#7731 + $k[$j++] = 'aibad'; //#7731 + $k[$j++] = true; //#7731 + for (var _1Y = 0, _1Z = _1X.length; _1Y < _1Z; _1Y++) { //#7731 + var _1d = $k[--$j]; //#7731 + $k[$j++] = _1d && $ne($get(_1X, _1Y), $get($1.ais, 2)); //#7731 + } //#7731 + var _1e = $k[--$j]; //#7731 + $1[$k[--$j]] = _1e; //#7731 + } else { //#7733 + $1.aibad = false; //#7733 + } //#7733 + if (($eq($get($1.ais, 0), "01") && ($1.ai310x || $1.ai320x)) && (!$1.aibad)) { //#7757 + if ($1.ais.length == 3) { //#7754 + var _1u = ~~$z($geti($get($1.vals, 2), 2, 2)); //#7739 + var _1y = ~~$z($geti($get($1.vals, 2), 4, 2)); //#7740 + if ((($eq($geti($get($1.vals, 0), 0, 1), "9") && ((~~$z($get($1.vals, 1))) <= 99999)) && ((_1u >= 1) && (_1u <= 12))) && ((_1y >= 0) && (_1y <= 31))) { //#7749 + if ($1.ai310x && $eq($get($1.ais, 2), "11")) { //#7741 + $k[$j++] = "0111000"; //#7741 + $k[$j++] = false; //#7741 + break; //#7741 + } //#7741 + if ($1.ai320x && $eq($get($1.ais, 2), "11")) { //#7742 + $k[$j++] = "0111001"; //#7742 + $k[$j++] = false; //#7742 + break; //#7742 + } //#7742 + if ($1.ai310x && $eq($get($1.ais, 2), "13")) { //#7743 + $k[$j++] = "0111010"; //#7743 + $k[$j++] = false; //#7743 + break; //#7743 + } //#7743 + if ($1.ai320x && $eq($get($1.ais, 2), "13")) { //#7744 + $k[$j++] = "0111011"; //#7744 + $k[$j++] = false; //#7744 + break; //#7744 + } //#7744 + if ($1.ai310x && $eq($get($1.ais, 2), "15")) { //#7745 + $k[$j++] = "0111100"; //#7745 + $k[$j++] = false; //#7745 + break; //#7745 + } //#7745 + if ($1.ai320x && $eq($get($1.ais, 2), "15")) { //#7746 + $k[$j++] = "0111101"; //#7746 + $k[$j++] = false; //#7746 + break; //#7746 + } //#7746 + if ($1.ai310x && $eq($get($1.ais, 2), "17")) { //#7747 + $k[$j++] = "0111110"; //#7747 + $k[$j++] = false; //#7747 + break; //#7747 + } //#7747 + if ($1.ai320x && $eq($get($1.ais, 2), "17")) { //#7748 + $k[$j++] = "0111111"; //#7748 + $k[$j++] = false; //#7748 + break; //#7748 + } //#7748 + } //#7748 + } else { //#7754 + if ($eq($geti($get($1.vals, 0), 0, 1), "9") && ((~~$z($get($1.vals, 1))) <= 99999)) { //#7755 + if ($1.ai310x) { //#7753 + $k[$j++] = "0111000"; //#7753 + $k[$j++] = false; //#7753 + break; //#7753 + } //#7753 + if ($1.ai320x) { //#7754 + $k[$j++] = "0111001"; //#7754 + $k[$j++] = false; //#7754 + break; //#7754 + } //#7754 + } //#7754 + } //#7754 + } //#7754 + } //#7754 + if ($1.ais.length >= 2) { //#7766 + $k[$j++] = 'ai392x'; //#7762 + $k[$j++] = false; //#7762 + for (var _2V = 3920; _2V <= 3923; _2V += 1) { //#7762 + var _2a = $k[--$j]; //#7762 + $k[$j++] = _2a || $eq($cvrs($s(4), _2V, 10), $get($1.ais, 1)); //#7762 + } //#7762 + var _2b = $k[--$j]; //#7762 + $1[$k[--$j]] = _2b; //#7762 + if ($eq($get($1.ais, 0), "01") && $1.ai392x) { //#7765 + if ($eq($geti($get($1.vals, 0), 0, 1), "9")) { //#7764 + $k[$j++] = "01100"; //#7764 + $k[$j++] = true; //#7764 + break; //#7764 + } //#7764 + } //#7764 + } //#7764 + if ($1.ais.length >= 2) { //#7774 + $k[$j++] = 'ai393x'; //#7770 + $k[$j++] = false; //#7770 + for (var _2k = 3930; _2k <= 3933; _2k += 1) { //#7770 + var _2p = $k[--$j]; //#7770 + $k[$j++] = _2p || $eq($cvrs($s(4), _2k, 10), $get($1.ais, 1)); //#7770 + } //#7770 + var _2q = $k[--$j]; //#7770 + $1[$k[--$j]] = _2q; //#7770 + if ($eq($get($1.ais, 0), "01") && $1.ai393x) { //#7773 + if ($eq($geti($get($1.vals, 0), 0, 1), "9")) { //#7772 + $k[$j++] = "01101"; //#7772 + $k[$j++] = true; //#7772 + break; //#7772 + } //#7772 + } //#7772 + } //#7772 + if ($eq($get($1.ais, 0), "01")) { //#7777 + $k[$j++] = "1"; //#7777 + $k[$j++] = true; //#7777 + break; //#7777 + } //#7777 + $k[$j++] = "00"; //#7780 + $k[$j++] = true; //#7780 + break; //#7780 + } //#7780 + $1.gpfallow = $k[--$j]; //#7783 + $1.method = $k[--$j]; //#7784 $1.conv12to40 = function() { - var _33 = $strcpy($s(40), "0000000000000000000000000000000000000000"); - var _34 = $k[--$j]; - var _38 = $cvrs($s(10), ~~$z($geti(_34, 0, 3)), 2); - $puti($geti(_33, 0, 10), 10 - _38.length, _38); - var _3C = $cvrs($s(10), ~~$z($geti(_34, 3, 3)), 2); - $puti($geti(_33, 10, 10), 10 - _3C.length, _3C); - var _3G = $cvrs($s(10), ~~$z($geti(_34, 6, 3)), 2); - $puti($geti(_33, 20, 10), 10 - _3G.length, _3G); - var _3K = $cvrs($s(10), ~~$z($geti(_34, 9, 3)), 2); - $puti($geti(_33, 30, 10), 10 - _3K.length, _3K); - $k[$j++] = _33; - $k[$j++] = _34; - $j--; - }; + var _33 = $strcpy($s(40), "0000000000000000000000000000000000000000"); //#7787 + var _34 = $k[--$j]; //#7788 + var _38 = $cvrs($s(10), ~~$z($geti(_34, 0, 3)), 2); //#7788 + $puti($geti(_33, 0, 10), 10 - _38.length, _38); //#7788 + var _3C = $cvrs($s(10), ~~$z($geti(_34, 3, 3)), 2); //#7789 + $puti($geti(_33, 10, 10), 10 - _3C.length, _3C); //#7789 + var _3G = $cvrs($s(10), ~~$z($geti(_34, 6, 3)), 2); //#7790 + $puti($geti(_33, 20, 10), 10 - _3G.length, _3G); //#7790 + var _3K = $cvrs($s(10), ~~$z($geti(_34, 9, 3)), 2); //#7791 + $puti($geti(_33, 30, 10), 10 - _3K.length, _3K); //#7791 + $k[$j++] = _33; //#7792 + $k[$j++] = _34; //#7792 + $j--; //#7792 + }; //#7793 $1.conv13to44 = function() { - var _3M = $strcpy($s(44), "00000000000000000000000000000000000000000000"); - var _3N = $k[--$j]; - var _3R = $cvrs($s(4), ~~$z($geti(_3N, 0, 1)), 2); - $puti($geti(_3M, 0, 4), 4 - _3R.length, _3R); - $k[$j++] = _3M; - $k[$j++] = _3M; - $k[$j++] = $geti(_3N, 1, 12); - $1.conv12to40(); - var _3T = $k[--$j]; - $puti($k[--$j], 4, _3T); - }; + var _3M = $strcpy($s(44), "00000000000000000000000000000000000000000000"); //#7796 + var _3N = $k[--$j]; //#7797 + var _3R = $cvrs($s(4), ~~$z($geti(_3N, 0, 1)), 2); //#7797 + $puti($geti(_3M, 0, 4), 4 - _3R.length, _3R); //#7797 + $k[$j++] = _3M; //#7798 + $k[$j++] = _3M; //#7798 + $k[$j++] = $geti(_3N, 1, 12); //#7798 + $1.conv12to40(); //#7798 + var _3T = $k[--$j]; //#7798 + $puti($k[--$j], 4, _3T); //#7798 + }; //#7799 $1.tobin = function() { - var _3W = $s($k[--$j]); - $k[$j++] = _3W; - for (var _3Y = 0, _3X = _3W.length - 1; _3Y <= _3X; _3Y += 1) { - var _3Z = $k[--$j]; - $put(_3Z, _3Y, 48); - $k[$j++] = _3Z; - } - var _3a = $k[--$j]; - var _3d = $cvrs($s(_3a.length), $k[--$j], 2); - $puti(_3a, _3a.length - _3d.length, _3d); - $k[$j++] = _3a; - }; - $1.fnc1 = -1; - $1.lnumeric = -2; - $1.lalphanumeric = -3; - $1.liso646 = -4; - if ($eq($1.method, "00")) { - $1.cdf = $a([]); - $1.gpf = $a([]); - } - if ($eq($1.method, "1")) { - $k[$j++] = "cdf"; - $k[$j++] = $geti($get($1.vals, 0), 0, 13); - $1.conv13to44(); - var _3l = $k[--$j]; - $1[$k[--$j]] = _3l; - $k[$j++] = Infinity; - var _3n = $1.cdf; - for (var _3o = 0, _3p = _3n.length; _3o < _3p; _3o++) { - $k[$j++] = $f($get(_3n, _3o) - 48); - } - $1.cdf = $a(); - $1.gpf = $a([]); - $1.ais = $geti($1.ais, 1, $1.ais.length - 1); - $1.vals = $geti($1.vals, 1, $1.vals.length - 1); - } - if ($eq($1.method, "0100")) { - $1.cdf = $s(55); - $k[$j++] = $1.cdf; - $k[$j++] = 0; - $k[$j++] = $geti($get($1.vals, 0), 1, 12); - $1.conv12to40(); - var _45 = $k[--$j]; - var _46 = $k[--$j]; - $puti($k[--$j], _46, _45); - $k[$j++] = $1.cdf; - $k[$j++] = 40; - $k[$j++] = ~~$z($get($1.vals, 1)); - $k[$j++] = 15; - $1.tobin(); - var _4B = $k[--$j]; - var _4C = $k[--$j]; - $puti($k[--$j], _4C, _4B); - $k[$j++] = Infinity; - var _4E = $1.cdf; - for (var _4F = 0, _4G = _4E.length; _4F < _4G; _4F++) { - $k[$j++] = $get(_4E, _4F) - 48; - } - $1.cdf = $a(); - $1.gpf = $a([]); - $1.ais = $a([]); - $1.vals = $a([]); - } - if ($eq($1.method, "0101")) { - $1.cdf = $s(55); - $k[$j++] = $1.cdf; - $k[$j++] = 0; - $k[$j++] = $geti($get($1.vals, 0), 1, 12); - $1.conv12to40(); - var _4S = $k[--$j]; - var _4T = $k[--$j]; - $puti($k[--$j], _4T, _4S); - if ($eq($get($1.ais, 1), "3202")) { - $k[$j++] = ~~$z($get($1.vals, 1)); - $k[$j++] = 15; - $1.tobin(); - } else { - $k[$j++] = ~~$z($get($1.vals, 1)) + 1e4; - $k[$j++] = 15; - $1.tobin(); - } - $puti($1.cdf, 40, $k[--$j]); - $k[$j++] = Infinity; - var _4d = $1.cdf; - for (var _4e = 0, _4f = _4d.length; _4e < _4f; _4e++) { - $k[$j++] = $get(_4d, _4e) - 48; - } - $1.cdf = $a(); - $1.gpf = $a([]); - $1.ais = $a([]); - $1.vals = $a([]); - } - if ($1.method.length == 7) { - $1.cdf = $s(76); - $k[$j++] = $1.cdf; - $k[$j++] = 0; - $k[$j++] = $geti($get($1.vals, 0), 1, 12); - $1.conv12to40(); - var _4r = $k[--$j]; - var _4s = $k[--$j]; - $puti($k[--$j], _4s, _4r); - var _4u = $s(6); - $puti(_4u, 0, $geti($get($1.ais, 1), 3, 1)); - $puti(_4u, 1, $geti($get($1.vals, 1), 1, 5)); - $k[$j++] = ~~$z(_4u); - $k[$j++] = 20; - $1.tobin(); - $puti($1.cdf, 40, $k[--$j]); - if ($1.ais.length == 3) { - var _55 = $get($1.vals, 2); - $k[$j++] = ~~$z($geti(_55, 0, 2)) * 384 + ((~~$z($geti(_55, 2, 2)) - 1) * 32 + ~~$z($geti(_55, 4, 2))); - } else { - $k[$j++] = 38400; - } - $k[$j++] = 16; - $1.tobin(); - $puti($1.cdf, 60, $k[--$j]); - $k[$j++] = Infinity; - var _5B = $1.cdf; - for (var _5C = 0, _5D = _5B.length; _5C < _5D; _5C++) { - $k[$j++] = $get(_5B, _5C) - 48; - } - $1.cdf = $a(); - $1.gpf = $a([]); - $1.ais = $a([]); - $1.vals = $a([]); - } - if ($eq($1.method, "01100")) { - $1.cdf = $s(42); - $k[$j++] = $1.cdf; - $k[$j++] = 0; - $k[$j++] = $geti($get($1.vals, 0), 1, 12); - $1.conv12to40(); - var _5P = $k[--$j]; - var _5Q = $k[--$j]; - $puti($k[--$j], _5Q, _5P); - $k[$j++] = $1.cdf; - $k[$j++] = 40; - $k[$j++] = ~~$z($geti($get($1.ais, 1), 3, 1)); - $k[$j++] = 2; - $1.tobin(); - var _5W = $k[--$j]; - var _5X = $k[--$j]; - $puti($k[--$j], _5X, _5W); - $k[$j++] = Infinity; - var _5Z = $1.cdf; - for (var _5a = 0, _5b = _5Z.length; _5a < _5b; _5a++) { - $k[$j++] = $get(_5Z, _5a) - 48; - } - $1.cdf = $a(); - $k[$j++] = Infinity; - $forall($get($1.vals, 1)); - if ($1.ais.length > 2) { - $k[$j++] = $1.fnc1; - } - $1.gpf = $a(); - $1.ais = $geti($1.ais, 2, $1.ais.length - 2); - $1.vals = $geti($1.vals, 2, $1.vals.length - 2); - } - if ($eq($1.method, "01101")) { - $1.cdf = $s(52); - $k[$j++] = $1.cdf; - $k[$j++] = 0; - $k[$j++] = $geti($get($1.vals, 0), 1, 12); - $1.conv12to40(); - var _5v = $k[--$j]; - var _5w = $k[--$j]; - $puti($k[--$j], _5w, _5v); - $k[$j++] = $1.cdf; - $k[$j++] = 40; - $k[$j++] = ~~$z($geti($get($1.ais, 1), 3, 1)); - $k[$j++] = 2; - $1.tobin(); - var _62 = $k[--$j]; - var _63 = $k[--$j]; - $puti($k[--$j], _63, _62); - $k[$j++] = $1.cdf; - $k[$j++] = 42; - $k[$j++] = ~~$z($geti($get($1.vals, 1), 0, 3)); - $k[$j++] = 10; - $1.tobin(); - var _69 = $k[--$j]; - var _6A = $k[--$j]; - $puti($k[--$j], _6A, _69); - $k[$j++] = Infinity; - var _6C = $1.cdf; - for (var _6D = 0, _6E = _6C.length; _6D < _6E; _6D++) { - $k[$j++] = $get(_6C, _6D) - 48; - } - $1.cdf = $a(); - $k[$j++] = Infinity; - var _6I = $get($1.vals, 1); - var _6J = $geti(_6I, 3, _6I.length - 3); - for (var _6K = 0, _6L = _6J.length; _6K < _6L; _6K++) { - $k[$j++] = $get(_6J, _6K); - } - if ($1.ais.length > 2) { - $k[$j++] = $1.fnc1; - } - $1.gpf = $a(); - $1.ais = $geti($1.ais, 2, $1.ais.length - 2); - $1.vals = $geti($1.vals, 2, $1.vals.length - 2); - } - if ($1.gpfallow) { - $1.vlf = $a(2); - } else { - $1.vlf = $a([]); - } - $1.aifixed = new Map(); - $k[$j++] = Infinity; - for (var _6Z = 0; _6Z <= 4; _6Z += 1) { - $k[$j++] = _6Z; - } - var _6a = $a(); - for (var _6b = 0, _6c = _6a.length; _6b < _6c; _6b++) { - var _6f = $strcpy($s(2), "00"); - $put(_6f, 1, $f($get(_6a, _6b) + 48)); - $put($1.aifixed, _6f, _6f); - } - $k[$j++] = Infinity; - for (var _6h = 11; _6h <= 20; _6h += 1) { - $k[$j++] = _6h; - } - $k[$j++] = 23; - for (var _6i = 31; _6i <= 36; _6i += 1) { - $k[$j++] = _6i; - } - $k[$j++] = 41; - var _6j = $a(); - for (var _6k = 0, _6l = _6j.length; _6k < _6l; _6k++) { - var _6o = $cvrs($s(2), $get(_6j, _6k), 10); - $put($1.aifixed, _6o, _6o); - } - $k[$j++] = Infinity; - for (var _6q = 0; _6q <= 119; _6q += 1) { - var _6s = $strcpy($s(2), "00"); - var _6u = $cvrs($s(2), _6q, 11); - $puti(_6s, 2 - _6u.length, _6u); - $k[$j++] = _6q; - $k[$j++] = _6s; - if ($get(_6s, 0) == 65) { - var _6w = $k[--$j]; - $put(_6w, 0, 94); - $k[$j++] = _6w; - } - var _6x = $k[--$j]; - $k[$j++] = _6x; - if ($get(_6x, 1) == 65) { - var _6z = $k[--$j]; - $put(_6z, 1, 94); - $k[$j++] = _6z; - } - var _70 = $k[--$j]; - var _73 = $strcpy($s(7), "0000000"); - var _75 = $cvrs($s(7), $f($k[--$j] + 8), 2); - $puti(_73, 7 - _75.length, _75); - $k[$j++] = _70; - $k[$j++] = _73; - } - $k[$j++] = $1.lalphanumeric; - $k[$j++] = "0000"; - $1.numeric = $d(); - $k[$j++] = Infinity; - for (var _78 = 48; _78 <= 57; _78 += 1) { - $k[$j++] = _78; - $k[$j++] = _78 - 43; - $k[$j++] = 5; - $1.tobin(); - } - $k[$j++] = $1.fnc1; - $k[$j++] = "01111"; - for (var _7A = 65; _7A <= 90; _7A += 1) { - $k[$j++] = _7A; - $k[$j++] = _7A - 33; - $k[$j++] = 6; - $1.tobin(); - } - $k[$j++] = 42; - $k[$j++] = "111010"; - for (var _7B = 44; _7B <= 47; _7B += 1) { - $k[$j++] = _7B; - $k[$j++] = _7B + 15; - $k[$j++] = 6; - $1.tobin(); - } - $k[$j++] = $1.lnumeric; - $k[$j++] = "000"; - $k[$j++] = $1.liso646; - $k[$j++] = "00100"; - $1.alphanumeric = $d(); - $k[$j++] = Infinity; - for (var _7F = 48; _7F <= 57; _7F += 1) { - $k[$j++] = _7F; - $k[$j++] = _7F - 43; - $k[$j++] = 5; - $1.tobin(); - } - $k[$j++] = $1.fnc1; - $k[$j++] = "01111"; - for (var _7H = 65; _7H <= 90; _7H += 1) { - $k[$j++] = _7H; - $k[$j++] = _7H - 1; - $k[$j++] = 7; - $1.tobin(); - } - for (var _7I = 97; _7I <= 122; _7I += 1) { - $k[$j++] = _7I; - $k[$j++] = _7I - 7; - $k[$j++] = 7; - $1.tobin(); - } - $k[$j++] = 33; - $k[$j++] = "11101000"; - $k[$j++] = 34; - $k[$j++] = "11101001"; - for (var _7J = 37; _7J <= 47; _7J += 1) { - $k[$j++] = _7J; - $k[$j++] = _7J + 197; - $k[$j++] = 8; - $1.tobin(); - } - for (var _7K = 58; _7K <= 63; _7K += 1) { - $k[$j++] = _7K; - $k[$j++] = _7K + 187; - $k[$j++] = 8; - $1.tobin(); - } - $k[$j++] = 95; - $k[$j++] = "11111011"; - $k[$j++] = 32; - $k[$j++] = "11111100"; - $k[$j++] = $1.lnumeric; - $k[$j++] = "000"; - $k[$j++] = $1.lalphanumeric; - $k[$j++] = "00100"; - $1.iso646 = $d(); - for (var _7Q = 0, _7P = $1.ais.length - 1; _7Q <= _7P; _7Q += 1) { - $1.i = _7Q; - $1.ai = $get($1.ais, $1.i); - $1.val = $get($1.vals, $1.i); - var _7a = $a($1.gpf.length + $1.ai.length + $1.val.length); - $puti(_7a, 0, $1.gpf); - $k[$j++] = _7a; - $k[$j++] = _7a; - $k[$j++] = $1.gpf.length; - $k[$j++] = Infinity; - var _7f = $1.ai; - $forall(_7f); - var _7g = $a(); - var _7h = $k[--$j]; - $puti($k[--$j], _7h, _7g); - var _7j = $k[--$j]; - $k[$j++] = _7j; - $k[$j++] = _7j; - $k[$j++] = $1.gpf.length + $1.ai.length; - $k[$j++] = Infinity; - var _7o = $1.val; - $forall(_7o); - var _7p = $a(); - var _7q = $k[--$j]; - $puti($k[--$j], _7q, _7p); - $1.gpf = $k[--$j]; - var _7y = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; - if ($1.i != $1.ais.length - 1 && !_7y) { - var _80 = $a($1.gpf.length + 1); - $puti(_80, 0, $1.gpf); - $put(_80, $1.gpf.length, $1.fnc1); - $1.gpf = _80; - } - } + var _3W = $s($k[--$j]); //#7802 + $k[$j++] = _3W; //#7802 + for (var _3Y = 0, _3X = _3W.length - 1; _3Y <= _3X; _3Y += 1) { //#7802 + var _3Z = $k[--$j]; //#7802 + $put(_3Z, _3Y, 48); //#7802 + $k[$j++] = _3Z; //#7802 + } //#7802 + var _3a = $k[--$j]; //#7803 + var _3d = $cvrs($s(_3a.length), $k[--$j], 2); //#7803 + $puti(_3a, _3a.length - _3d.length, _3d); //#7803 + $k[$j++] = _3a; //#7803 + }; //#7804 + $1.fnc1 = -1; //#7806 + $1.lnumeric = -2; //#7806 + $1.lalphanumeric = -3; //#7806 + $1.liso646 = -4; //#7806 + if ($eq($1.method, "00")) { //#7811 + $1.cdf = $a([]); //#7809 + $1.gpf = $a([]); //#7810 + } //#7810 + if ($eq($1.method, "1")) { //#7819 + $k[$j++] = 'cdf'; //#7814 + $k[$j++] = $geti($get($1.vals, 0), 0, 13); //#7814 + $1.conv13to44(); //#7814 + var _3l = $k[--$j]; //#7814 + $1[$k[--$j]] = _3l; //#7814 + $k[$j++] = Infinity; //#7815 + var _3n = $1.cdf; //#7815 + for (var _3o = 0, _3p = _3n.length; _3o < _3p; _3o++) { //#7815 + $k[$j++] = $f($get(_3n, _3o) - 48); //#7815 + } //#7815 + $1.cdf = $a(); //#7815 + $1.gpf = $a([]); //#7816 + $1.ais = $geti($1.ais, 1, $1.ais.length - 1); //#7817 + $1.vals = $geti($1.vals, 1, $1.vals.length - 1); //#7818 + } //#7818 + if ($eq($1.method, "0100")) { //#7829 + $1.cdf = $s(55); //#7822 + $k[$j++] = $1.cdf; //#7823 + $k[$j++] = 0; //#7823 + $k[$j++] = $geti($get($1.vals, 0), 1, 12); //#7823 + $1.conv12to40(); //#7823 + var _45 = $k[--$j]; //#7823 + var _46 = $k[--$j]; //#7823 + $puti($k[--$j], _46, _45); //#7823 + $k[$j++] = $1.cdf; //#7824 + $k[$j++] = 40; //#7824 + $k[$j++] = ~~$z($get($1.vals, 1)); //#7824 + $k[$j++] = 15; //#7824 + $1.tobin(); //#7824 + var _4B = $k[--$j]; //#7824 + var _4C = $k[--$j]; //#7824 + $puti($k[--$j], _4C, _4B); //#7824 + $k[$j++] = Infinity; //#7825 + var _4E = $1.cdf; //#7825 + for (var _4F = 0, _4G = _4E.length; _4F < _4G; _4F++) { //#7825 + $k[$j++] = $get(_4E, _4F) - 48; //#7825 + } //#7825 + $1.cdf = $a(); //#7825 + $1.gpf = $a([]); //#7826 + $1.ais = $a([]); //#7827 + $1.vals = $a([]); //#7828 + } //#7828 + if ($eq($1.method, "0101")) { //#7844 + $1.cdf = $s(55); //#7832 + $k[$j++] = $1.cdf; //#7833 + $k[$j++] = 0; //#7833 + $k[$j++] = $geti($get($1.vals, 0), 1, 12); //#7833 + $1.conv12to40(); //#7833 + var _4S = $k[--$j]; //#7833 + var _4T = $k[--$j]; //#7833 + $puti($k[--$j], _4T, _4S); //#7833 + if ($eq($get($1.ais, 1), "3202")) { //#7837 + $k[$j++] = ~~$z($get($1.vals, 1)); //#7835 + $k[$j++] = 15; //#7835 + $1.tobin(); //#7835 + } else { //#7837 + $k[$j++] = (~~$z($get($1.vals, 1))) + 10000; //#7837 + $k[$j++] = 15; //#7837 + $1.tobin(); //#7837 + } //#7837 + $puti($1.cdf, 40, $k[--$j]); //#7839 + $k[$j++] = Infinity; //#7840 + var _4d = $1.cdf; //#7840 + for (var _4e = 0, _4f = _4d.length; _4e < _4f; _4e++) { //#7840 + $k[$j++] = $get(_4d, _4e) - 48; //#7840 + } //#7840 + $1.cdf = $a(); //#7840 + $1.gpf = $a([]); //#7841 + $1.ais = $a([]); //#7842 + $1.vals = $a([]); //#7843 + } //#7843 + if ($1.method.length == 7) { //#7865 + $1.cdf = $s(76); //#7847 + $k[$j++] = $1.cdf; //#7848 + $k[$j++] = 0; //#7848 + $k[$j++] = $geti($get($1.vals, 0), 1, 12); //#7848 + $1.conv12to40(); //#7848 + var _4r = $k[--$j]; //#7848 + var _4s = $k[--$j]; //#7848 + $puti($k[--$j], _4s, _4r); //#7848 + var _4u = $s(6); //#7849 + $puti(_4u, 0, $geti($get($1.ais, 1), 3, 1)); //#7849 + $puti(_4u, 1, $geti($get($1.vals, 1), 1, 5)); //#7850 + $k[$j++] = ~~$z(_4u); //#7850 + $k[$j++] = 20; //#7850 + $1.tobin(); //#7850 + $puti($1.cdf, 40, $k[--$j]); //#7851 + if ($1.ais.length == 3) { //#7858 + var _55 = $get($1.vals, 2); //#7853 + $k[$j++] = ((~~$z($geti(_55, 0, 2))) * 384) + ((((~~$z($geti(_55, 2, 2))) - 1) * 32) + (~~$z($geti(_55, 4, 2)))); //#7856 + } else { //#7858 + $k[$j++] = 38400; //#7858 + } //#7858 + $k[$j++] = 16; //#7860 + $1.tobin(); //#7860 + $puti($1.cdf, 60, $k[--$j]); //#7860 + $k[$j++] = Infinity; //#7861 + var _5B = $1.cdf; //#7861 + for (var _5C = 0, _5D = _5B.length; _5C < _5D; _5C++) { //#7861 + $k[$j++] = $get(_5B, _5C) - 48; //#7861 + } //#7861 + $1.cdf = $a(); //#7861 + $1.gpf = $a([]); //#7862 + $1.ais = $a([]); //#7863 + $1.vals = $a([]); //#7864 + } //#7864 + if ($eq($1.method, "01100")) { //#7875 + $1.cdf = $s(42); //#7868 + $k[$j++] = $1.cdf; //#7869 + $k[$j++] = 0; //#7869 + $k[$j++] = $geti($get($1.vals, 0), 1, 12); //#7869 + $1.conv12to40(); //#7869 + var _5P = $k[--$j]; //#7869 + var _5Q = $k[--$j]; //#7869 + $puti($k[--$j], _5Q, _5P); //#7869 + $k[$j++] = $1.cdf; //#7870 + $k[$j++] = 40; //#7870 + $k[$j++] = ~~$z($geti($get($1.ais, 1), 3, 1)); //#7870 + $k[$j++] = 2; //#7870 + $1.tobin(); //#7870 + var _5W = $k[--$j]; //#7870 + var _5X = $k[--$j]; //#7870 + $puti($k[--$j], _5X, _5W); //#7870 + $k[$j++] = Infinity; //#7871 + var _5Z = $1.cdf; //#7871 + for (var _5a = 0, _5b = _5Z.length; _5a < _5b; _5a++) { //#7871 + $k[$j++] = $get(_5Z, _5a) - 48; //#7871 + } //#7871 + $1.cdf = $a(); //#7871 + $k[$j++] = Infinity; //#7872 + $forall($get($1.vals, 1)); //#7872 + if ($1.ais.length > 2) { //#7872 + $k[$j++] = $1.fnc1; //#7872 + } //#7872 + $1.gpf = $a(); //#7872 + $1.ais = $geti($1.ais, 2, $1.ais.length - 2); //#7873 + $1.vals = $geti($1.vals, 2, $1.vals.length - 2); //#7874 + } //#7874 + if ($eq($1.method, "01101")) { //#7886 + $1.cdf = $s(52); //#7878 + $k[$j++] = $1.cdf; //#7879 + $k[$j++] = 0; //#7879 + $k[$j++] = $geti($get($1.vals, 0), 1, 12); //#7879 + $1.conv12to40(); //#7879 + var _5v = $k[--$j]; //#7879 + var _5w = $k[--$j]; //#7879 + $puti($k[--$j], _5w, _5v); //#7879 + $k[$j++] = $1.cdf; //#7880 + $k[$j++] = 40; //#7880 + $k[$j++] = ~~$z($geti($get($1.ais, 1), 3, 1)); //#7880 + $k[$j++] = 2; //#7880 + $1.tobin(); //#7880 + var _62 = $k[--$j]; //#7880 + var _63 = $k[--$j]; //#7880 + $puti($k[--$j], _63, _62); //#7880 + $k[$j++] = $1.cdf; //#7881 + $k[$j++] = 42; //#7881 + $k[$j++] = ~~$z($geti($get($1.vals, 1), 0, 3)); //#7881 + $k[$j++] = 10; //#7881 + $1.tobin(); //#7881 + var _69 = $k[--$j]; //#7881 + var _6A = $k[--$j]; //#7881 + $puti($k[--$j], _6A, _69); //#7881 + $k[$j++] = Infinity; //#7882 + var _6C = $1.cdf; //#7882 + for (var _6D = 0, _6E = _6C.length; _6D < _6E; _6D++) { //#7882 + $k[$j++] = $get(_6C, _6D) - 48; //#7882 + } //#7882 + $1.cdf = $a(); //#7882 + $k[$j++] = Infinity; //#7883 + var _6I = $get($1.vals, 1); //#7883 + var _6J = $geti(_6I, 3, _6I.length - 3); //#7883 + for (var _6K = 0, _6L = _6J.length; _6K < _6L; _6K++) { //#7883 + $k[$j++] = $get(_6J, _6K); //#7883 + } //#7883 + if ($1.ais.length > 2) { //#7883 + $k[$j++] = $1.fnc1; //#7883 + } //#7883 + $1.gpf = $a(); //#7883 + $1.ais = $geti($1.ais, 2, $1.ais.length - 2); //#7884 + $1.vals = $geti($1.vals, 2, $1.vals.length - 2); //#7885 + } //#7885 + if ($1.gpfallow) { //#7892 + $1.vlf = $a(2); //#7890 + } else { //#7892 + $1.vlf = $a([]); //#7892 + } //#7892 + $1.aifixed = new Map; //#7898 + $k[$j++] = Infinity; //#7900 + for (var _6Z = 0; _6Z <= 4; _6Z += 1) { //#7900 + $k[$j++] = _6Z; //#7900 + } //#7900 + var _6a = $a(); //#7900 + for (var _6b = 0, _6c = _6a.length; _6b < _6c; _6b++) { //#7903 + var _6f = $strcpy($s(2), "00"); //#7902 + $put(_6f, 1, $f($get(_6a, _6b) + 48)); //#7902 + $put($1.aifixed, _6f, _6f); //#7902 + } //#7902 + $k[$j++] = Infinity; //#7908 + for (var _6h = 11; _6h <= 20; _6h += 1) { //#7905 + $k[$j++] = _6h; //#7905 + } //#7905 + $k[$j++] = 23; //#7907 + for (var _6i = 31; _6i <= 36; _6i += 1) { //#7907 + $k[$j++] = _6i; //#7907 + } //#7907 + $k[$j++] = 41; //#7908 + var _6j = $a(); //#7908 + for (var _6k = 0, _6l = _6j.length; _6k < _6l; _6k++) { //#7911 + var _6o = $cvrs($s(2), $get(_6j, _6k), 10); //#7910 + $put($1.aifixed, _6o, _6o); //#7910 + } //#7910 + $k[$j++] = Infinity; //#7923 + for (var _6q = 0; _6q <= 119; _6q += 1) { //#7922 + var _6s = $strcpy($s(2), "00"); //#7915 + var _6u = $cvrs($s(2), _6q, 11); //#7915 + $puti(_6s, 2 - _6u.length, _6u); //#7916 + $k[$j++] = _6q; //#7917 + $k[$j++] = _6s; //#7917 + if ($get(_6s, 0) == 65) { //#7917 + var _6w = $k[--$j]; //#7917 + $put(_6w, 0, 94); //#7917 + $k[$j++] = _6w; //#7917 + } //#7917 + var _6x = $k[--$j]; //#7918 + $k[$j++] = _6x; //#7918 + if ($get(_6x, 1) == 65) { //#7918 + var _6z = $k[--$j]; //#7918 + $put(_6z, 1, 94); //#7918 + $k[$j++] = _6z; //#7918 + } //#7918 + var _70 = $k[--$j]; //#7919 + var _73 = $strcpy($s(7), "0000000"); //#7920 + var _75 = $cvrs($s(7), $f($k[--$j] + 8), 2); //#7920 + $puti(_73, 7 - _75.length, _75); //#7921 + $k[$j++] = _70; //#7921 + $k[$j++] = _73; //#7921 + } //#7921 + $k[$j++] = $1.lalphanumeric; //#7923 + $k[$j++] = "0000"; //#7923 + $1.numeric = $d(); //#7924 + $k[$j++] = Infinity; //#7933 + for (var _78 = 48; _78 <= 57; _78 += 1) { //#7927 + $k[$j++] = _78; //#7927 + $k[$j++] = _78 - 43; //#7927 + $k[$j++] = 5; //#7927 + $1.tobin(); //#7927 + } //#7927 + $k[$j++] = $1.fnc1; //#7929 + $k[$j++] = "01111"; //#7929 + for (var _7A = 65; _7A <= 90; _7A += 1) { //#7929 + $k[$j++] = _7A; //#7929 + $k[$j++] = _7A - 33; //#7929 + $k[$j++] = 6; //#7929 + $1.tobin(); //#7929 + } //#7929 + $k[$j++] = 42; //#7931 + $k[$j++] = "111010"; //#7931 + for (var _7B = 44; _7B <= 47; _7B += 1) { //#7931 + $k[$j++] = _7B; //#7931 + $k[$j++] = _7B + 15; //#7931 + $k[$j++] = 6; //#7931 + $1.tobin(); //#7931 + } //#7931 + $k[$j++] = $1.lnumeric; //#7933 + $k[$j++] = "000"; //#7933 + $k[$j++] = $1.liso646; //#7933 + $k[$j++] = "00100"; //#7933 + $1.alphanumeric = $d(); //#7934 + $k[$j++] = Infinity; //#7948 + for (var _7F = 48; _7F <= 57; _7F += 1) { //#7937 + $k[$j++] = _7F; //#7937 + $k[$j++] = _7F - 43; //#7937 + $k[$j++] = 5; //#7937 + $1.tobin(); //#7937 + } //#7937 + $k[$j++] = $1.fnc1; //#7939 + $k[$j++] = "01111"; //#7939 + for (var _7H = 65; _7H <= 90; _7H += 1) { //#7939 + $k[$j++] = _7H; //#7939 + $k[$j++] = _7H - 1; //#7939 + $k[$j++] = 7; //#7939 + $1.tobin(); //#7939 + } //#7939 + for (var _7I = 97; _7I <= 122; _7I += 1) { //#7940 + $k[$j++] = _7I; //#7940 + $k[$j++] = _7I - 7; //#7940 + $k[$j++] = 7; //#7940 + $1.tobin(); //#7940 + } //#7940 + $k[$j++] = 33; //#7943 + $k[$j++] = "11101000"; //#7943 + $k[$j++] = 34; //#7943 + $k[$j++] = "11101001"; //#7943 + for (var _7J = 37; _7J <= 47; _7J += 1) { //#7943 + $k[$j++] = _7J; //#7943 + $k[$j++] = _7J + 197; //#7943 + $k[$j++] = 8; //#7943 + $1.tobin(); //#7943 + } //#7943 + for (var _7K = 58; _7K <= 63; _7K += 1) { //#7944 + $k[$j++] = _7K; //#7944 + $k[$j++] = _7K + 187; //#7944 + $k[$j++] = 8; //#7944 + $1.tobin(); //#7944 + } //#7944 + $k[$j++] = 95; //#7948 + $k[$j++] = "11111011"; //#7948 + $k[$j++] = 32; //#7948 + $k[$j++] = "11111100"; //#7948 + $k[$j++] = $1.lnumeric; //#7948 + $k[$j++] = "000"; //#7948 + $k[$j++] = $1.lalphanumeric; //#7948 + $k[$j++] = "00100"; //#7948 + $1.iso646 = $d(); //#7949 + for (var _7Q = 0, _7P = $1.ais.length - 1; _7Q <= _7P; _7Q += 1) { //#7967 + $1.i = _7Q; //#7953 + $1.ai = $get($1.ais, $1.i); //#7954 + $1.val = $get($1.vals, $1.i); //#7955 + var _7a = $a(($1.gpf.length + $1.ai.length) + $1.val.length); //#7956 + $puti(_7a, 0, $1.gpf); //#7957 + $k[$j++] = _7a; //#7958 + $k[$j++] = _7a; //#7958 + $k[$j++] = $1.gpf.length; //#7958 + $k[$j++] = $1.ai; //#7958 + $k[$j++] = Infinity; //#7958 + var _7e = $k[--$j]; //#7958 + var _7f = $k[--$j]; //#7958 + $k[$j++] = _7e; //#7958 + $forall(_7f); //#7958 + var _7g = $a(); //#7958 + var _7h = $k[--$j]; //#7958 + $puti($k[--$j], _7h, _7g); //#7958 + var _7j = $k[--$j]; //#7959 + $k[$j++] = _7j; //#7959 + $k[$j++] = _7j; //#7959 + $k[$j++] = $1.gpf.length + $1.ai.length; //#7959 + $k[$j++] = $1.val; //#7959 + $k[$j++] = Infinity; //#7959 + var _7n = $k[--$j]; //#7959 + var _7o = $k[--$j]; //#7959 + $k[$j++] = _7n; //#7959 + $forall(_7o); //#7959 + var _7p = $a(); //#7959 + var _7q = $k[--$j]; //#7959 + $puti($k[--$j], _7q, _7p); //#7959 + $1.gpf = $k[--$j]; //#7960 + var _7y = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; //#7961 + if (($1.i != ($1.ais.length - 1)) && (!_7y)) { //#7966 + var _80 = $a($1.gpf.length + 1); //#7962 + $puti(_80, 0, $1.gpf); //#7963 + $put(_80, $1.gpf.length, $1.fnc1); //#7964 + $1.gpf = _80; //#7965 + } //#7965 + } //#7965 $1.rembits = function() { - var _84 = $k[--$j]; - var _85 = 48; - var _86 = ~~Math.ceil(_84 / 12) * 12; - if (~~Math.ceil(_84 / 12) * 12 < 48) { - var _ = _85; - _85 = _86; - _86 = _; - } - var _87 = ~~(_86 / 12); - $k[$j++] = _84; - $k[$j++] = _86; - $k[$j++] = _87; - if (_87 % $1.segments == 1) { - var _89 = $k[--$j]; - var _8A = $k[--$j]; - $k[$j++] = $f(_89 + 1) * 12; - $k[$j++] = _8A; - $j--; - } else { - $j--; - } - var _8B = $k[--$j]; - var _8C = $k[--$j]; - $k[$j++] = $f(_8B - _8C); - }; + var _84 = $k[--$j]; //#7971 + var _85 = 48; //#7973 + var _86 = (~~Math.ceil(_84 / 12)) * 12; //#7973 + if (((~~Math.ceil(_84 / 12)) * 12) < 48) { //#7973 + var _ = _85; //#7973 + _85 = _86; //#7973 + _86 = _; //#7973 + } //#7973 + var _87 = ~~(_86 / 12); //#7974 + $k[$j++] = _84; //#7978 + $k[$j++] = _86; //#7978 + $k[$j++] = _87; //#7978 + if ((_87 % $1.segments) == 1) { //#7977 + var _89 = $k[--$j]; //#7975 + var _8A = $k[--$j]; //#7975 + $k[$j++] = $f(_89 + 1) * 12; //#7975 + $k[$j++] = _8A; //#7975 + $j--; //#7975 + } else { //#7977 + $j--; //#7977 + } //#7977 + var _8B = $k[--$j]; //#7979 + var _8C = $k[--$j]; //#7979 + $k[$j++] = $f(_8B - _8C); //#7979 + }; //#7980 $1.encode = function() { - var _8D = $k[--$j]; - $k[$j++] = _8D; - if ($ne(_8D, "raw")) { - var _8E = $k[--$j]; - var _8G = $get(_8E, $k[--$j]); - $k[$j++] = _8G; - } else { - $j--; - } - $k[$j++] = Infinity; - var _8H = $k[--$j]; - var _8I = $k[--$j]; - $k[$j++] = _8H; - $forall(_8I, function() { - var _8J = $k[--$j]; - $k[$j++] = $f(_8J - 48); - }); - var _8K = $a(); - $puti($1.gpfenc, $1.j, _8K); - $1.j = _8K.length + $1.j; - }; - $k[$j++] = Infinity; - for (var _8P = 0, _8Q = $1.gpf.length; _8P < _8Q; _8P++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $k[$j++] = -1; - $1.numericruns = $a(); - $k[$j++] = Infinity; - for (var _8T = 0, _8U = $1.gpf.length; _8T < _8U; _8T++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.alphanumericruns = $a(); - $k[$j++] = Infinity; - for (var _8X = 0, _8Y = $1.gpf.length; _8X < _8Y; _8X++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextiso646only = $a(); - for (var _8b = $1.gpf.length - 1; _8b >= 0; _8b -= 1) { - $1.i = _8b; - var _8g = $strcpy($s(2), "00"); - var _8j = $get($1.gpf, $1.i); - $k[$j++] = $get($1.gpf, $1.i); - $k[$j++] = _8g; - $k[$j++] = _8g; - $k[$j++] = 0; - $k[$j++] = _8j; - if (_8j == $1.fnc1) { - $j--; - $k[$j++] = 94; - } - var _8l = $k[--$j]; - var _8m = $k[--$j]; - $put($k[--$j], _8m, _8l); - if ($1.i < $1.gpf.length - 1) { - var _8q = $k[--$j]; - var _8t = $get($1.gpf, $1.i + 1); - $k[$j++] = _8q; - $k[$j++] = _8q; - $k[$j++] = 1; - $k[$j++] = _8t; - if (_8t == $1.fnc1) { - $j--; - $k[$j++] = 94; - } - var _8v = $k[--$j]; - var _8w = $k[--$j]; - $put($k[--$j], _8w, _8v); - } - var _90 = $get($1.numeric, $k[--$j]) !== undefined; - if (_90) { - $put($1.numericruns, $1.i, $f($get($1.numericruns, $1.i + 2) + 2)); - } else { - $put($1.numericruns, $1.i, 0); - } - var _98 = $k[--$j]; - var _9A = $get($1.alphanumeric, _98) !== undefined; - $k[$j++] = _98; - if (_9A) { - $put($1.alphanumericruns, $1.i, $f($get($1.alphanumericruns, $1.i + 1) + 1)); - } else { - $put($1.alphanumericruns, $1.i, 0); - } - var _9I = $k[--$j]; - var _9K = $get($1.iso646, _9I) !== undefined; - var _9M = $get($1.alphanumeric, _9I) !== undefined; - if (_9K && !_9M) { - $put($1.nextiso646only, $1.i, 0); - } else { - $put($1.nextiso646only, $1.i, $f($get($1.nextiso646only, $1.i + 1) + 1)); - } - } - $1.gpfenc = $a(252); - $1.i = 0; - $1.j = 0; - $1.mode = "numeric"; - for (;;) { - if ($1.i == $1.gpf.length) { - break; - } - for (;;) { - if ($eq($1.mode, "numeric")) { - if ($1.i <= $1.gpf.length - 2) { - var _9a = $s(2); - var _9d = $get($1.gpf, $1.i); - $k[$j++] = _9a; - $k[$j++] = _9a; - $k[$j++] = 0; - $k[$j++] = _9d; - if (_9d == $1.fnc1) { - $j--; - $k[$j++] = 94; - } - var _9f = $k[--$j]; - var _9g = $k[--$j]; - $put($k[--$j], _9g, _9f); - var _9i = $k[--$j]; - var _9l = $get($1.gpf, $1.i + 1); - $k[$j++] = _9i; - $k[$j++] = _9i; - $k[$j++] = 1; - $k[$j++] = _9l; - if (_9l == $1.fnc1) { - $j--; - $k[$j++] = 94; - } - var _9n = $k[--$j]; - var _9o = $k[--$j]; - $put($k[--$j], _9o, _9n); - var _9q = $k[--$j]; - var _9s = $get($1.numeric, _9q) !== undefined; - $k[$j++] = _9q; - if (_9s) { - $k[$j++] = $1.numeric; - $1.encode(); - $1.i = $1.i + 2; - break; - } - $j--; - $k[$j++] = $1.lalphanumeric; - $k[$j++] = $1.numeric; - $1.encode(); - $1.mode = "alphanumeric"; - break; - } else { - var _9z = $get($1.gpf, $1.i); - if (_9z < 48 || _9z > 57) { - $k[$j++] = $1.lalphanumeric; - $k[$j++] = $1.numeric; - $1.encode(); - $1.mode = "alphanumeric"; - break; - } - $k[$j++] = "rem"; - $k[$j++] = 12 + 1 + $1.method.length + $1.vlf.length + $1.cdf.length + $1.j; - $1.rembits(); - var _A6 = $k[--$j]; - $1[$k[--$j]] = _A6; - if ($1.rem >= 4 && $1.rem <= 6) { - var _AD = $geti($strcpy($s(6), "000000"), 0, $1.rem); - var _AI = $cvrs($s(4), $f($get($1.gpf, $1.i) - 47), 2); - $puti(_AD, 4 - _AI.length, _AI); - $k[$j++] = _AD; - $k[$j++] = "raw"; - $1.encode(); - $1.i = $1.i + 1; - break; - } else { - var _AK = $s(2); - $put(_AK, 0, $get($1.gpf, $1.i)); - $put(_AK, 1, 94); - $k[$j++] = _AK; - $k[$j++] = $1.numeric; - $1.encode(); - $1.i = $1.i + 1; - break; - } - } - } - if ($eq($1.mode, "alphanumeric")) { - if ($get($1.gpf, $1.i) == $1.fnc1) { - $k[$j++] = $1.fnc1; - $k[$j++] = $1.alphanumeric; - $1.encode(); - $1.mode = "numeric"; - $1.i = $1.i + 1; - break; - } - var _Aa = $get($1.gpf, $1.i); - var _Ac = $get($1.iso646, _Aa) !== undefined; - var _Ae = $get($1.alphanumeric, _Aa) !== undefined; - if (_Ac && !_Ae) { - $k[$j++] = $1.liso646; - $k[$j++] = $1.alphanumeric; - $1.encode(); - $1.mode = "iso646"; - break; - } - if ($get($1.numericruns, $1.i) >= 6) { - $k[$j++] = $1.lnumeric; - $k[$j++] = $1.alphanumeric; - $1.encode(); - $1.mode = "numeric"; - break; - } - var _Ao = $get($1.numericruns, $1.i); - if (_Ao >= 4 && $f(_Ao + $1.i) == $1.gpf.length) { - $k[$j++] = $1.lnumeric; - $k[$j++] = $1.alphanumeric; - $1.encode(); - $1.mode = "numeric"; - break; - } - $k[$j++] = $get($1.gpf, $1.i); - $k[$j++] = $1.alphanumeric; - $1.encode(); - $1.i = $1.i + 1; - break; - } - if ($eq($1.mode, "iso646")) { - if ($get($1.gpf, $1.i) == $1.fnc1) { - $k[$j++] = $1.fnc1; - $k[$j++] = $1.iso646; - $1.encode(); - $1.mode = "numeric"; - $1.i = $1.i + 1; - break; - } - if ($get($1.numericruns, $1.i) >= 4 && $get($1.nextiso646only, $1.i) >= 10) { - $k[$j++] = $1.lnumeric; - $k[$j++] = $1.iso646; - $1.encode(); - $1.mode = "numeric"; - break; - } - if ($get($1.alphanumericruns, $1.i) >= 5 && $get($1.nextiso646only, $1.i) >= 10) { - $k[$j++] = $1.lalphanumeric; - $k[$j++] = $1.iso646; - $1.encode(); - $1.mode = "alphanumeric"; - break; - } - $k[$j++] = $get($1.gpf, $1.i); - $k[$j++] = $1.iso646; - $1.encode(); - $1.i = $1.i + 1; - break; - } - } - } - $1.gpf = $geti($1.gpfenc, 0, $1.j); - var _BY = 1 + 12 + $1.method.length + $1.vlf.length + $1.cdf.length + $1.gpf.length; - $k[$j++] = _BY; - $k[$j++] = _BY; - $1.rembits(); - var _BZ = $k[--$j]; - $1.pad = $a(_BZ); - $k[$j++] = _BZ; - if ($1.vlf.length != 0) { - var _Bc = $k[--$j]; - var _Be = ~~($f($k[--$j] + _Bc) / 12); - $put($1.vlf, 0, _Be % 2); - var _Bg = _Be <= 14 ? 0 : 1; - $put($1.vlf, 1, _Bg); - } else { - $j -= 2; - } - if ($1.pad.length > 0) { - for (var _Bl = 0, _Bk = $1.pad.length - 1; _Bl <= _Bk; _Bl += 5) { - $1.i = _Bl; - var _Bm = $1.pad; - var _Bn = $1.i; - var _Bo = $a([ 0, 0, 1, 0, 0 ]); - var _Bp = $1.pad; - var _Bq = $1.i; - var _Br = 5; - var _Bs = _Bp.length - _Bq; - if (_Bp.length - _Bq > 5) { - var _ = _Br; - _Br = _Bs; - _Bs = _; - } - $puti(_Bm, _Bn, $geti(_Bo, 0, _Bs)); - } - if ($eq($1.mode, "numeric")) { - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $aload($1.pad); - $1.pad = $geti($a(), 0, $1.pad.length); - } - } - $k[$j++] = Infinity; - var _C0 = $1.linkage ? 1 : 0; - $k[$j++] = _C0; - $forall($1.method, function() { - var _C2 = $k[--$j]; - $k[$j++] = $f(_C2 - 48); - }); - $aload($1.vlf); - $aload($1.cdf); - $aload($1.gpf); - $aload($1.pad); - $1.binval = $a(); - $1.datalen = ~~($1.binval.length / 12); + var _8D = $k[--$j]; //#7983 + $k[$j++] = _8D; //#7983 + if ($ne(_8D, 'raw')) { //#7983 + var _8E = $k[--$j]; //#7983 + var _8G = $get(_8E, $k[--$j]); //#7983 + $k[$j++] = _8G; //#7983 + } else { //#7983 + $j--; //#7983 + } //#7983 + $k[$j++] = Infinity; //#7984 + var _8H = $k[--$j]; //#7984 + var _8I = $k[--$j]; //#7984 + $k[$j++] = _8H; //#7984 + $forall(_8I, function() { //#7984 + var _8J = $k[--$j]; //#7984 + $k[$j++] = $f(_8J - 48); //#7984 + }); //#7984 + var _8K = $a(); //#7984 + $puti($1.gpfenc, $1.j, _8K); //#7986 + $1.j = _8K.length + $1.j; //#7987 + }; //#7988 + $k[$j++] = Infinity; //#7991 + for (var _8P = 0, _8Q = $1.gpf.length; _8P < _8Q; _8P++) { //#7991 + $k[$j++] = 0; //#7991 + } //#7991 + $k[$j++] = 0; //#7991 + $k[$j++] = -1; //#7991 + $1.numericruns = $a(); //#7991 + $k[$j++] = Infinity; //#7992 + for (var _8T = 0, _8U = $1.gpf.length; _8T < _8U; _8T++) { //#7992 + $k[$j++] = 0; //#7992 + } //#7992 + $k[$j++] = 0; //#7992 + $1.alphanumericruns = $a(); //#7992 + $k[$j++] = Infinity; //#7993 + for (var _8X = 0, _8Y = $1.gpf.length; _8X < _8Y; _8X++) { //#7993 + $k[$j++] = 0; //#7993 + } //#7993 + $k[$j++] = 9999; //#7993 + $1.nextiso646only = $a(); //#7993 + for (var _8b = $1.gpf.length - 1; _8b >= 0; _8b -= 1) { //#8015 + $1.i = _8b; //#7995 + var _8g = $strcpy($s(2), "00"); //#7997 + var _8j = $get($1.gpf, $1.i); //#7998 + $k[$j++] = $get($1.gpf, $1.i); //#7998 + $k[$j++] = _8g; //#7998 + $k[$j++] = _8g; //#7998 + $k[$j++] = 0; //#7998 + $k[$j++] = _8j; //#7998 + if (_8j == $1.fnc1) { //#7998 + $j--; //#7998 + $k[$j++] = 94; //#7998 + } //#7998 + var _8l = $k[--$j]; //#7998 + var _8m = $k[--$j]; //#7998 + $put($k[--$j], _8m, _8l); //#7998 + if ($1.i < ($1.gpf.length - 1)) { //#7999 + var _8q = $k[--$j]; //#7999 + var _8t = $get($1.gpf, $1.i + 1); //#7999 + $k[$j++] = _8q; //#7999 + $k[$j++] = _8q; //#7999 + $k[$j++] = 1; //#7999 + $k[$j++] = _8t; //#7999 + if (_8t == $1.fnc1) { //#7999 + $j--; //#7999 + $k[$j++] = 94; //#7999 + } //#7999 + var _8v = $k[--$j]; //#7999 + var _8w = $k[--$j]; //#7999 + $put($k[--$j], _8w, _8v); //#7999 + } //#7999 + var _90 = $get($1.numeric, $k[--$j]) !== undefined; //#8000 + if (_90) { //#8003 + $put($1.numericruns, $1.i, $f($get($1.numericruns, $1.i + 2) + 2)); //#8001 + } else { //#8003 + $put($1.numericruns, $1.i, 0); //#8003 + } //#8003 + var _98 = $k[--$j]; //#8005 + var _9A = $get($1.alphanumeric, _98) !== undefined; //#8005 + $k[$j++] = _98; //#8009 + if (_9A) { //#8008 + $put($1.alphanumericruns, $1.i, $f($get($1.alphanumericruns, $1.i + 1) + 1)); //#8006 + } else { //#8008 + $put($1.alphanumericruns, $1.i, 0); //#8008 + } //#8008 + var _9I = $k[--$j]; //#8010 + var _9K = $get($1.iso646, _9I) !== undefined; //#8010 + var _9M = $get($1.alphanumeric, _9I) !== undefined; //#8010 + if (_9K && (!_9M)) { //#8013 + $put($1.nextiso646only, $1.i, 0); //#8011 + } else { //#8013 + $put($1.nextiso646only, $1.i, $f($get($1.nextiso646only, $1.i + 1) + 1)); //#8013 + } //#8013 + } //#8013 + $1.gpfenc = $a(252); //#8018 + $1.i = 0; //#8019 + $1.j = 0; //#8019 + $1.mode = "numeric"; //#8019 + for (;;) { //#8109 + if ($1.i == $1.gpf.length) { //#8021 + break; //#8021 + } //#8021 + for (;;) { //#8108 + if ($eq($1.mode, "numeric")) { //#8057 + if ($1.i <= ($1.gpf.length - 2)) { //#8054 + var _9a = $s(2); //#8026 + var _9d = $get($1.gpf, $1.i); //#8027 + $k[$j++] = _9a; //#8027 + $k[$j++] = _9a; //#8027 + $k[$j++] = 0; //#8027 + $k[$j++] = _9d; //#8027 + if (_9d == $1.fnc1) { //#8027 + $j--; //#8027 + $k[$j++] = 94; //#8027 + } //#8027 + var _9f = $k[--$j]; //#8027 + var _9g = $k[--$j]; //#8027 + $put($k[--$j], _9g, _9f); //#8027 + var _9i = $k[--$j]; //#8028 + var _9l = $get($1.gpf, $1.i + 1); //#8028 + $k[$j++] = _9i; //#8028 + $k[$j++] = _9i; //#8028 + $k[$j++] = 1; //#8028 + $k[$j++] = _9l; //#8028 + if (_9l == $1.fnc1) { //#8028 + $j--; //#8028 + $k[$j++] = 94; //#8028 + } //#8028 + var _9n = $k[--$j]; //#8028 + var _9o = $k[--$j]; //#8028 + $put($k[--$j], _9o, _9n); //#8028 + var _9q = $k[--$j]; //#8029 + var _9s = $get($1.numeric, _9q) !== undefined; //#8029 + $k[$j++] = _9q; //#8033 + if (_9s) { //#8033 + $k[$j++] = $1.numeric; //#8030 + $1.encode(); //#8030 + $1.i = $1.i + 2; //#8031 + break; //#8032 + } //#8032 + $j--; //#8034 + $k[$j++] = $1.lalphanumeric; //#8035 + $k[$j++] = $1.numeric; //#8035 + $1.encode(); //#8035 + $1.mode = "alphanumeric"; //#8036 + break; //#8037 + } else { //#8054 + var _9z = $get($1.gpf, $1.i); //#8039 + if ((_9z < 48) || (_9z > 57)) { //#8043 + $k[$j++] = $1.lalphanumeric; //#8040 + $k[$j++] = $1.numeric; //#8040 + $1.encode(); //#8040 + $1.mode = "alphanumeric"; //#8041 + break; //#8042 + } //#8042 + $k[$j++] = 'rem'; //#8044 + $k[$j++] = ((((12 + 1) + $1.method.length) + $1.vlf.length) + $1.cdf.length) + $1.j; //#8044 + $1.rembits(); //#8044 + var _A6 = $k[--$j]; //#8044 + $1[$k[--$j]] = _A6; //#8044 + if (($1.rem >= 4) && ($1.rem <= 6)) { //#8054 + var _AD = $geti($strcpy($s(6), "000000"), 0, $1.rem); //#8046 + var _AI = $cvrs($s(4), $f($get($1.gpf, $1.i) - 47), 2); //#8047 + $puti(_AD, 4 - _AI.length, _AI); //#8048 + $k[$j++] = _AD; //#8048 + $k[$j++] = 'raw'; //#8048 + $1.encode(); //#8048 + $1.i = $1.i + 1; //#8049 + break; //#8050 + } else { //#8054 + var _AK = $s(2); //#8052 + $put(_AK, 0, $get($1.gpf, $1.i)); //#8052 + $put(_AK, 1, 94); //#8052 + $k[$j++] = _AK; //#8052 + $k[$j++] = $1.numeric; //#8052 + $1.encode(); //#8052 + $1.i = $1.i + 1; //#8053 + break; //#8054 + } //#8054 + } //#8054 + } //#8054 + if ($eq($1.mode, "alphanumeric")) { //#8084 + if ($get($1.gpf, $1.i) == $1.fnc1) { //#8065 + $k[$j++] = $1.fnc1; //#8061 + $k[$j++] = $1.alphanumeric; //#8061 + $1.encode(); //#8061 + $1.mode = "numeric"; //#8062 + $1.i = $1.i + 1; //#8063 + break; //#8064 + } //#8064 + var _Aa = $get($1.gpf, $1.i); //#8066 + var _Ac = $get($1.iso646, _Aa) !== undefined; //#8066 + var _Ae = $get($1.alphanumeric, _Aa) !== undefined; //#8066 + if (_Ac && (!_Ae)) { //#8070 + $k[$j++] = $1.liso646; //#8067 + $k[$j++] = $1.alphanumeric; //#8067 + $1.encode(); //#8067 + $1.mode = "iso646"; //#8068 + break; //#8069 + } //#8069 + if ($get($1.numericruns, $1.i) >= 6) { //#8075 + $k[$j++] = $1.lnumeric; //#8072 + $k[$j++] = $1.alphanumeric; //#8072 + $1.encode(); //#8072 + $1.mode = "numeric"; //#8073 + break; //#8074 + } //#8074 + var _Ao = $get($1.numericruns, $1.i); //#8076 + if ((_Ao >= 4) && ($f(_Ao + $1.i) == $1.gpf.length)) { //#8080 + $k[$j++] = $1.lnumeric; //#8077 + $k[$j++] = $1.alphanumeric; //#8077 + $1.encode(); //#8077 + $1.mode = "numeric"; //#8078 + break; //#8079 + } //#8079 + $k[$j++] = $get($1.gpf, $1.i); //#8081 + $k[$j++] = $1.alphanumeric; //#8081 + $1.encode(); //#8081 + $1.i = $1.i + 1; //#8082 + break; //#8083 + } //#8083 + if ($eq($1.mode, "iso646")) { //#8106 + if ($get($1.gpf, $1.i) == $1.fnc1) { //#8092 + $k[$j++] = $1.fnc1; //#8088 + $k[$j++] = $1.iso646; //#8088 + $1.encode(); //#8088 + $1.mode = "numeric"; //#8089 + $1.i = $1.i + 1; //#8090 + break; //#8091 + } //#8091 + if (($get($1.numericruns, $1.i) >= 4) && ($get($1.nextiso646only, $1.i) >= 10)) { //#8097 + $k[$j++] = $1.lnumeric; //#8094 + $k[$j++] = $1.iso646; //#8094 + $1.encode(); //#8094 + $1.mode = "numeric"; //#8095 + break; //#8096 + } //#8096 + if (($get($1.alphanumericruns, $1.i) >= 5) && ($get($1.nextiso646only, $1.i) >= 10)) { //#8102 + $k[$j++] = $1.lalphanumeric; //#8099 + $k[$j++] = $1.iso646; //#8099 + $1.encode(); //#8099 + $1.mode = "alphanumeric"; //#8100 + break; //#8101 + } //#8101 + $k[$j++] = $get($1.gpf, $1.i); //#8103 + $k[$j++] = $1.iso646; //#8103 + $1.encode(); //#8103 + $1.i = $1.i + 1; //#8104 + break; //#8105 + } //#8105 + } //#8105 + } //#8105 + $1.gpf = $geti($1.gpfenc, 0, $1.j); //#8110 + var _BY = ((((1 + 12) + $1.method.length) + $1.vlf.length) + $1.cdf.length) + $1.gpf.length; //#8114 + $k[$j++] = _BY; //#8114 + $k[$j++] = _BY; //#8114 + $1.rembits(); //#8114 + var _BZ = $k[--$j]; //#8114 + $1.pad = $a(_BZ); //#8114 + $k[$j++] = _BZ; //#8121 + if ($1.vlf.length != 0) { //#8120 + var _Bc = $k[--$j]; //#8116 + var _Be = ~~($f($k[--$j] + _Bc) / 12); //#8117 + $put($1.vlf, 0, _Be % 2); //#8117 + var _Bg = (_Be <= 14) ? 0 : 1; //#8118 + $put($1.vlf, 1, _Bg); //#8118 + } else { //#8120 + $j -= 2; //#8120 + } //#8120 + if ($1.pad.length > 0) { //#8130 + for (var _Bl = 0, _Bk = $1.pad.length - 1; _Bl <= _Bk; _Bl += 5) { //#8126 + $1.i = _Bl; //#8124 + var _Bm = $1.pad; //#8125 + var _Bn = $1.i; //#8125 + var _Bo = $a([0, 0, 1, 0, 0]); //#8125 + var _Bp = $1.pad; //#8125 + var _Bq = $1.i; //#8125 + var _Br = 5; //#8125 + var _Bs = _Bp.length - _Bq; //#8125 + if ((_Bp.length - _Bq) > 5) { //#8125 + var _ = _Br; //#8125 + _Br = _Bs; //#8125 + _Bs = _; //#8125 + } //#8125 + $puti(_Bm, _Bn, $geti(_Bo, 0, _Bs)); //#8125 + } //#8125 + if ($eq($1.mode, "numeric")) { //#8129 + $k[$j++] = Infinity; //#8128 + $k[$j++] = 0; //#8128 + $k[$j++] = 0; //#8128 + $k[$j++] = 0; //#8128 + $k[$j++] = 0; //#8128 + $aload($1.pad); //#8128 + $1.pad = $geti($a(), 0, $1.pad.length); //#8128 + } //#8128 + } //#8128 + $k[$j++] = Infinity; //#8139 + var _C0 = $1.linkage ? 1 : 0; //#8134 + $k[$j++] = _C0; //#8135 + $forall($1.method, function() { //#8135 + var _C2 = $k[--$j]; //#8135 + $k[$j++] = $f(_C2 - 48); //#8135 + }); //#8135 + $aload($1.vlf); //#8136 + $aload($1.cdf); //#8137 + $aload($1.gpf); //#8138 + $aload($1.pad); //#8139 + $1.binval = $a(); //#8139 + $1.datalen = ~~($1.binval.length / 12); //#8141 $1.ncr = function() { - var _C9 = $k[--$j]; - var _CA = $k[--$j]; - var _CB = $f(_CA - _C9); - if (_C9 < $f(_CA - _C9)) { - var _ = _CB; - _CB = _C9; - _C9 = _; - } - $k[$j++] = _CB; - $k[$j++] = 1; - $k[$j++] = 1; - for (var _CD = _CA, _CC = $f(_C9 + 1); _CD >= _CC; _CD -= 1) { - var _CE = $k[--$j]; - var _CF = $k[--$j]; - var _CG = $k[--$j]; - $k[$j++] = _CG; - $k[$j++] = _CF; - $k[$j++] = _CE * _CD; - if ($le(_CF, _CG)) { - var _CH = $k[--$j]; - var _CI = $k[--$j]; - $k[$j++] = $f(_CI + 1); - $k[$j++] = ~~(_CH / _CI); - } - } - for (;;) { - var _CJ = $k[--$j]; - var _CK = $k[--$j]; - var _CL = $k[--$j]; - $k[$j++] = _CL; - $k[$j++] = _CK; - $k[$j++] = _CJ; - if ($gt(_CK, _CL)) { - break; - } - var _CM = $k[--$j]; - var _CN = $k[--$j]; - $k[$j++] = $f(_CN + 1); - $k[$j++] = ~~(_CM / _CN); - } - var _CO = $k[--$j]; - var _CP = $k[--$j]; - $k[$j++] = _CO; - $k[$j++] = _CP; - $j--; - var _CQ = $k[--$j]; - var _CR = $k[--$j]; - $k[$j++] = _CQ; - $k[$j++] = _CR; - $j--; - }; + var _C9 = $k[--$j]; //#8144 + var _CA = $k[--$j]; //#8144 + var _CB = $f(_CA - _C9); //#8144 + if (_C9 < $f(_CA - _C9)) { //#8144 + var _ = _CB; //#8144 + _CB = _C9; //#8144 + _C9 = _; //#8144 + } //#8144 + $k[$j++] = _CB; //#8151 + $k[$j++] = 1; //#8151 + $k[$j++] = 1; //#8151 + for (var _CD = _CA, _CC = $f(_C9 + 1); _CD >= _CC; _CD -= 1) { //#8151 + var _CE = $k[--$j]; //#8147 + var _CF = $k[--$j]; //#8148 + var _CG = $k[--$j]; //#8148 + $k[$j++] = _CG; //#8150 + $k[$j++] = _CF; //#8150 + $k[$j++] = _CE * _CD; //#8150 + if ($le(_CF, _CG)) { //#8150 + var _CH = $k[--$j]; //#8149 + var _CI = $k[--$j]; //#8149 + $k[$j++] = $f(_CI + 1); //#8149 + $k[$j++] = ~~(_CH / _CI); //#8149 + } //#8149 + } //#8149 + for (;;) { //#8155 + var _CJ = $k[--$j]; //#8153 + var _CK = $k[--$j]; //#8153 + var _CL = $k[--$j]; //#8153 + $k[$j++] = _CL; //#8153 + $k[$j++] = _CK; //#8153 + $k[$j++] = _CJ; //#8153 + if ($gt(_CK, _CL)) { //#8153 + break; //#8153 + } //#8153 + var _CM = $k[--$j]; //#8154 + var _CN = $k[--$j]; //#8154 + $k[$j++] = $f(_CN + 1); //#8154 + $k[$j++] = ~~(_CM / _CN); //#8154 + } //#8154 + var _CO = $k[--$j]; //#8156 + var _CP = $k[--$j]; //#8156 + $k[$j++] = _CO; //#8156 + $k[$j++] = _CP; //#8156 + $j--; //#8156 + var _CQ = $k[--$j]; //#8156 + var _CR = $k[--$j]; //#8156 + $k[$j++] = _CQ; //#8156 + $k[$j++] = _CR; //#8156 + $j--; //#8156 + }; //#8157 $1.getRSSwidths = function() { - $1.oe = $k[--$j]; - $1.el = $k[--$j]; - $1.mw = $k[--$j]; - $1.nm = $k[--$j]; - $1.val = $k[--$j]; - $1.out = $a($1.el); - $1.mask = 0; - for (var _Cb = 0, _Ca = $f($1.el - 2); _Cb <= _Ca; _Cb += 1) { - $1.bar = _Cb; - $1.ew = 1; - var _Cd = $1.bar; - $1.mask = $1.mask | (_Cd < 0 ? 1 >>> -_Cd : 1 << _Cd); - for (;;) { - $k[$j++] = "sval"; - $k[$j++] = $f($f($1.nm - $1.ew) - 1); - $k[$j++] = $f($f($1.el - $1.bar) - 2); - $1.ncr(); - var _Ci = $k[--$j]; - $1[$k[--$j]] = _Ci; - if ($1.oe && $1.mask == 0 && $f($f($f($1.nm - $1.ew) - $1.el * 2) + $1.bar * 2) >= -2) { - $k[$j++] = "sval"; - $k[$j++] = $1.sval; - $k[$j++] = $f($f($f($1.nm - $1.ew) - $1.el) + $1.bar); - $k[$j++] = $f($f($1.el - $1.bar) - 2); - $1.ncr(); - var _Cx = $k[--$j]; - var _Cy = $k[--$j]; - $1[$k[--$j]] = $f(_Cy - _Cx); - } - if ($f($1.el - $1.bar) > 2) { - $1.lval = 0; - for (var _D8 = $f($f($f($f($1.nm - $1.ew) - $1.el) + $1.bar) + 2), _D7 = $f($1.mw + 1); _D8 >= _D7; _D8 -= 1) { - $k[$j++] = $f($f($f($1.nm - _D8) - $1.ew) - 1); - $k[$j++] = $f($f($1.el - $1.bar) - 3); - $1.ncr(); - $1.lval = $f($k[--$j] + $1.lval); - } - $1.sval = $f($1.sval - $1.lval * $f($f($1.el - $1.bar) - 1)); - } else { - if ($f($1.nm - $1.ew) > $1.mw) { - $1.sval = $f($1.sval - 1); - } - } - $1.val = $f($1.val - $1.sval); - if ($1.val < 0) { - break; - } - $1.ew = $1.ew + 1; - var _DS = $1.bar; - $1.mask = $1.mask & ~(_DS < 0 ? 1 >>> -_DS : 1 << _DS); - } - $1.val = $f($1.val + $1.sval); - $1.nm = $f($1.nm - $1.ew); - $put($1.out, $1.bar, $1.ew); - } - $put($1.out, $f($1.el - 1), $1.nm); - $k[$j++] = $1.out; - }; - $1.tab174 = $a([ 347, 0, 12, 5, 7, 2, 87, 4, 1387, 348, 10, 7, 5, 4, 52, 20, 2947, 1388, 8, 9, 4, 5, 30, 52, 3987, 2948, 6, 11, 3, 6, 10, 104, 4191, 3988, 4, 13, 1, 8, 1, 204 ]); - $1.dxw = $a($1.datalen); - for (var _Dj = 0, _Di = $1.datalen - 1; _Dj <= _Di; _Dj += 1) { - $1.x = _Dj; - $1.d = $geti($1.binval, $1.x * 12, 12); - $k[$j++] = "d"; - $k[$j++] = 0; - for (var _Dn = 0; _Dn <= 11; _Dn += 1) { - $1.j = _Dn; - var _Ds = $k[--$j]; - $k[$j++] = $f(_Ds + ~~Math.pow(2, 11 - $1.j) * $get($1.d, $1.j)); - } - var _Dt = $k[--$j]; - $1[$k[--$j]] = _Dt; - $1.j = 0; - for (;;) { - if ($le($1.d, $get($1.tab174, $1.j))) { - var _E1 = $geti($1.tab174, $1.j + 1, 7); - for (var _E2 = 0, _E3 = _E1.length; _E2 < _E3; _E2++) { - $k[$j++] = $get(_E1, _E2); - } - $1.dte = $k[--$j]; - $1.dto = $k[--$j]; - $1.dmwe = $k[--$j]; - $1.dmwo = $k[--$j]; - $1.dele = $k[--$j]; - $1.delo = $k[--$j]; - $1.dgs = $k[--$j]; - break; - } - $1.j = $1.j + 8; - } - $k[$j++] = "dwo"; - $k[$j++] = ~~($f($1.d - $1.dgs) / $1.dte); - $k[$j++] = $1.delo; - $k[$j++] = $1.dmwo; - $k[$j++] = 4; - $k[$j++] = true; - $1.getRSSwidths(); - var _EI = $k[--$j]; - $1[$k[--$j]] = _EI; - $k[$j++] = "dwe"; - $k[$j++] = $f($1.d - $1.dgs) % $1.dte; - $k[$j++] = $1.dele; - $k[$j++] = $1.dmwe; - $k[$j++] = 4; - $k[$j++] = false; - $1.getRSSwidths(); - var _EP = $k[--$j]; - $1[$k[--$j]] = _EP; - $1.dw = $a(8); - if ($1.x % 2 == 0) { - for (var _ET = 0; _ET <= 3; _ET += 1) { - $1.j = _ET; - $put($1.dw, 7 - $1.j * 2, $get($1.dwo, $1.j)); - $put($1.dw, 6 - $1.j * 2, $get($1.dwe, $1.j)); - } - } else { - for (var _Ee = 0; _Ee <= 3; _Ee += 1) { - $1.j = _Ee; - $put($1.dw, $1.j * 2, $get($1.dwo, $1.j)); - $put($1.dw, $1.j * 2 + 1, $get($1.dwe, $1.j)); - } - } - $put($1.dxw, $1.x, $1.dw); - } - $1.finderwidths = $a([ 1, 8, 4, 1, 1, 1, 1, 4, 8, 1, 3, 6, 4, 1, 1, 1, 1, 4, 6, 3, 3, 4, 6, 1, 1, 1, 1, 6, 4, 3, 3, 2, 8, 1, 1, 1, 1, 8, 2, 3, 2, 6, 5, 1, 1, 1, 1, 5, 6, 2, 2, 2, 9, 1, 1, 1, 1, 9, 2, 2 ]); - $1.finderseq = $a([ $a([ 0, 1 ]), $a([ 0, 3, 2 ]), $a([ 0, 5, 2, 7 ]), $a([ 0, 9, 2, 7, 4 ]), $a([ 0, 9, 2, 7, 6, 11 ]), $a([ 0, 9, 2, 7, 8, 11, 10 ]), $a([ 0, 1, 2, 3, 4, 5, 6, 7 ]), $a([ 0, 1, 2, 3, 4, 5, 6, 9, 8 ]), $a([ 0, 1, 2, 3, 4, 5, 6, 9, 10, 11 ]), $a([ 0, 1, 2, 3, 4, 7, 6, 9, 8, 11, 10 ]) ]); - $1.seq = $get($1.finderseq, ~~(($1.datalen - 2) / 2)); - $1.fxw = $a($1.seq.length); - for (var _FB = 0, _FA = $1.seq.length - 1; _FB <= _FA; _FB += 1) { - $1.x = _FB; - $put($1.fxw, $1.x, $geti($1.finderwidths, $get($1.seq, $1.x) * 5, 5)); - } - $1.checkweights = $a([ -1, -1, -1, -1, -1, -1, -1, -1, 77, 96, 32, 81, 27, 9, 3, 1, 20, 60, 180, 118, 143, 7, 21, 63, 205, 209, 140, 117, 39, 13, 145, 189, 193, 157, 49, 147, 19, 57, 171, 91, 132, 44, 85, 169, 197, 136, 186, 62, 185, 133, 188, 142, 4, 12, 36, 108, 50, 87, 29, 80, 97, 173, 128, 113, 150, 28, 84, 41, 123, 158, 52, 156, 166, 196, 206, 139, 187, 203, 138, 46, 76, 17, 51, 153, 37, 111, 122, 155, 146, 119, 110, 107, 106, 176, 129, 43, 16, 48, 144, 10, 30, 90, 59, 177, 164, 125, 112, 178, 200, 137, 116, 109, 70, 210, 208, 202, 184, 130, 179, 115, 190, 204, 68, 93, 31, 151, 191, 134, 148, 22, 66, 198, 172, 94, 71, 2, 40, 154, 192, 64, 162, 54, 18, 6, 120, 149, 25, 75, 14, 42, 126, 167, 175, 199, 207, 69, 23, 78, 26, 79, 103, 98, 83, 38, 114, 131, 182, 124, 159, 53, 88, 170, 127, 183, 61, 161, 55, 165, 73, 8, 24, 72, 5, 15, 89, 100, 174, 58, 160, 194, 135, 45 ]); - $k[$j++] = Infinity; - $forall($1.seq, function() { - $aload($geti($1.checkweights, $k[--$j] * 16, 16)); - }); - var _FO = $a(); - $1.checkweightseq = $geti(_FO, 8, _FO.length - 8); - $k[$j++] = Infinity; - var _FQ = $1.dxw; - for (var _FR = 0, _FS = _FQ.length; _FR < _FS; _FR++) { - $forall($get(_FQ, _FR)); - } - $1.widths = $a(); - $1.checksum = 0; - for (var _FX = 0, _FW = $1.widths.length - 1; _FX <= _FW; _FX += 1) { - $1.i = _FX; - $1.checksum = $f($1.checksum + $get($1.widths, $1.i) * $get($1.checkweightseq, $1.i)); - } - $1.checksum = $f($1.checksum % 211 + ($1.datalen - 3) * 211); - $1.i = 0; - for (;;) { - if ($1.checksum <= $get($1.tab174, $1.i)) { - var _Fn = $geti($1.tab174, $1.i + 1, 7); - for (var _Fo = 0, _Fp = _Fn.length; _Fo < _Fp; _Fo++) { - $k[$j++] = $get(_Fn, _Fo); - } - $1.cte = $k[--$j]; - $1.cto = $k[--$j]; - $1.cmwe = $k[--$j]; - $1.cmwo = $k[--$j]; - $1.cele = $k[--$j]; - $1.celo = $k[--$j]; - $1.cgs = $k[--$j]; - break; - } - $1.i = $1.i + 8; - } - $k[$j++] = "cwo"; - $k[$j++] = ~~($f($1.checksum - $1.cgs) / $1.cte); - $k[$j++] = $1.celo; - $k[$j++] = $1.cmwo; - $k[$j++] = 4; - $k[$j++] = true; - $1.getRSSwidths(); - var _G4 = $k[--$j]; - $1[$k[--$j]] = _G4; - $k[$j++] = "cwe"; - $k[$j++] = $f($1.checksum - $1.cgs) % $1.cte; - $k[$j++] = $1.cele; - $k[$j++] = $1.cmwe; - $k[$j++] = 4; - $k[$j++] = false; - $1.getRSSwidths(); - var _GB = $k[--$j]; - $1[$k[--$j]] = _GB; - $1.cw = $a(8); - for (var _GE = 0; _GE <= 3; _GE += 1) { - $1.i = _GE; - $put($1.cw, $1.i * 2, $get($1.cwo, $1.i)); - $put($1.cw, $1.i * 2 + 1, $get($1.cwe, $1.i)); - } - var _GP = $a(22); - $put(_GP, 0, $1.cw); - $puti(_GP, 1, $1.dxw); - $1.dxw = $geti(_GP, 0, $1.datalen + 1); - $1.datalen = $1.dxw.length; - $1.rows = $a(~~Math.ceil($1.datalen / $1.segments)); - $1.numrows = $1.rows.length; - for (var _Gb = 0, _Ga = $1.numrows - 1; _Gb <= _Ga; _Gb += 1) { - $1.r = _Gb; - $k[$j++] = Infinity; - if ($1.segments % 4 != 0 && $1.r % 2 == 1) { - $k[$j++] = 0; - } - $k[$j++] = 1; - $k[$j++] = 1; - for (var _Gg = 0, _Gf = $1.segments - 1; _Gg <= _Gf; _Gg += 1) { - $1.pos = _Gg + $1.r * $1.segments; - if ($1.pos < $1.datalen) { - $forall($get($1.dxw, $1.pos)); - if ($1.pos % 2 == 0) { - $forall($get($1.fxw, ~~($1.pos / 2))); - } - } - } - var _Gs = $counttomark() + 2; - $k[$j++] = 1; - $k[$j++] = 1; - $astore($a(_Gs)); - $put($1.rows, $1.r, $k[--$j]); - $j--; - } - if ($ne($1.format, "expandedstacked")) { - var _Gz = $get($1.rows, 0); - $1.sbs = $geti(_Gz, 1, _Gz.length - 1); - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _H3 = 0, _H2 = $1.datalen - 1; _H3 <= _H2; _H3 += 1) { - $1.i = _H3; - $forall($get($1.dxw, $1.i)); - if ($1.i % 2 == 0) { - $forall($get($1.fxw, ~~($1.i / 2))); - } - } - $k[$j++] = 1; - $k[$j++] = 1; - $1.sbs = $a(); - delete $1.options["parse"]; - $k[$j++] = Infinity; - var _HD = $1.sbs; - $k[$j++] = Infinity; - for (var _HF = 0, _HG = ~~(($1.sbs.length + 1) / 2); _HF < _HG; _HF++) { - $k[$j++] = $1.height; - } - var _HI = $a(); - $k[$j++] = Infinity; - for (var _HK = 0, _HL = ~~(($1.sbs.length + 1) / 2); _HK < _HL; _HK++) { - $k[$j++] = 0; - } - var _HM = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _HD; - $k[$j++] = "bhs"; - $k[$j++] = _HI; - $k[$j++] = "bbs"; - $k[$j++] = _HM; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _HO = $d(); - $k[$j++] = _HO; - if (!$1.dontdraw) { - $0.renlinear(); - } - } else { - $1.seps = $a($1.numrows); - for (var _HU = 0, _HT = $1.numrows - 1; _HU <= _HT; _HU += 1) { - $1.r = _HU; - $1.row = $get($1.rows, $1.r); - $k[$j++] = Infinity; - for (var _Ha = 0, _HZ = $1.row.length - 1; _Ha <= _HZ; _Ha += 2) { - $1.i = _Ha; - for (var _He = 0, _Hf = $get($1.row, $1.i); _He < _Hf; _He++) { - $k[$j++] = 0; - } - if ($1.i < $1.row.length - 1) { - for (var _Hl = 0, _Hm = $get($1.row, $1.i + 1); _Hl < _Hm; _Hl++) { - $k[$j++] = 1; - } - } - } - $astore($a($counttomark())); - $1.row = $k[--$j]; - $j--; - $k[$j++] = Infinity; - $forall($1.row, function() { - var _Hr = $k[--$j]; - $k[$j++] = $f(1 - _Hr); - }); - $1.sep = $a(); - $k[$j++] = Infinity; - for (var _Hv = 19, _Hu = $1.row.length - 13; _Hv <= _Hu; _Hv += 98) { - $k[$j++] = _Hv; - } - for (var _Hy = 68, _Hx = $1.row.length - 13; _Hy <= _Hx; _Hy += 98) { - $k[$j++] = _Hy; - } - $1.finderpos = $a(); - var _I0 = $1.finderpos; - for (var _I1 = 0, _I2 = _I0.length; _I1 < _I2; _I1++) { - var _I3 = $get(_I0, _I1); - for (var _I5 = _I3, _I4 = $f(_I3 + 14); _I5 <= _I4; _I5 += 1) { - $1.i = _I5; - if ($get($1.row, $1.i) == 0) { - if ($get($1.row, $1.i - 1) == 1) { - $k[$j++] = 1; - } else { - var _IF = $get($1.sep, $1.i - 1) == 0 ? 1 : 0; - $k[$j++] = _IF; - } - } else { - $k[$j++] = 0; - } - $put($1.sep, $1.i, $k[--$j]); - } - } - $puti($1.sep, 0, $a([ 0, 0, 0, 0 ])); - $puti($1.sep, $1.row.length - 4, $a([ 0, 0, 0, 0 ])); - if ($1.segments % 4 == 0 && $1.r % 2 == 1) { - if ($get($1.rows, $1.r).length != $get($1.rows, 0).length && $1.finderpos.length % 2 == 1) { - $k[$j++] = Infinity; - $k[$j++] = 0; - $aload($1.row); - $1.row = $a(); - $k[$j++] = Infinity; - $k[$j++] = 0; - $aload($1.sep); - $1.sep = $a(); - } else { - for (var _Ib = $1.row.length - 1; _Ib >= 0; _Ib -= 1) { - $k[$j++] = $get($1.row, _Ib); - } - $astore($1.row); - $j--; - for (var _Ig = $1.sep.length - 1; _Ig >= 0; _Ig -= 1) { - $k[$j++] = $get($1.sep, _Ig); - } - $astore($1.sep); - $j--; - } - } - $put($1.rows, $1.r, $1.row); - $put($1.seps, $1.r, $1.sep); - } - $1.pixx = $get($1.rows, 0).length; - $k[$j++] = Infinity; - for (var _It = 0, _Iu = $1.pixx; _It < _Iu; _It++) { - $k[$j++] = 0; - } - var _Iv = $a(); - $puti(_Iv, 0, $get($1.rows, $1.numrows - 1)); - $put($1.rows, $1.numrows - 1, _Iv); - $k[$j++] = Infinity; - for (var _J2 = 0, _J3 = $1.pixx; _J2 < _J3; _J2++) { - $k[$j++] = 0; - } - var _J4 = $a(); - $puti(_J4, 0, $get($1.seps, $1.numrows - 1)); - $put($1.seps, $1.numrows - 1, _J4); - $k[$j++] = Infinity; - for (var _JB = 0, _JC = ~~($1.pixx / 2) + 1; _JB < _JC; _JB++) { - $k[$j++] = 0; - $k[$j++] = 1; - } - $1.sep = $geti($a(), 0, $1.pixx); - $puti($1.sep, 0, $a([ 0, 0, 0, 0 ])); - $puti($1.sep, $1.pixx - 4, $a([ 0, 0, 0, 0 ])); - $k[$j++] = Infinity; - for (var _JN = 0, _JM = $1.numrows - 1; _JN <= _JM; _JN += 1) { - $1.r = _JN; - if ($1.r != 0) { - $aload($get($1.seps, $1.r)); - } - for (var _JT = 0, _JU = $1.barxmult; _JT < _JU; _JT++) { - $aload($get($1.rows, $1.r)); - } - if ($1.r != $1.numrows - 1) { - $aload($get($1.seps, $1.r)); - $aload($1.sep); - } - } - $1.pixs = $a(); - delete $1.options["parse"]; - var _Jo = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", $1.pixx ], [ "pixy", ~~($1.pixs.length / $1.pixx) ], [ "height", ~~($1.pixs.length / $1.pixx) / 72 ], [ "width", $1.pixx / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _Jo; - if (!$1.dontdraw) { - $0.renmatrix(); - } - } + $1.oe = $k[--$j]; //#8160 + $1.el = $k[--$j]; //#8161 + $1.mw = $k[--$j]; //#8162 + $1.nm = $k[--$j]; //#8163 + $1.val = $k[--$j]; //#8164 + $1.out = $a($1.el); //#8165 + $1.mask = 0; //#8166 + for (var _Cb = 0, _Ca = $f($1.el - 2); _Cb <= _Ca; _Cb += 1) { //#8193 + $1.bar = _Cb; //#8168 + $1.ew = 1; //#8169 + var _Cd = $1.bar; //#8170 + $1.mask = $1.mask | ((_Cd < 0 ? 1 >>> -_Cd : 1 << _Cd)); //#8170 + for (;;) { //#8189 + $k[$j++] = 'sval'; //#8171 + $k[$j++] = $f($f($1.nm - $1.ew) - 1); //#8171 + $k[$j++] = $f($f($1.el - $1.bar) - 2); //#8171 + $1.ncr(); //#8171 + var _Ci = $k[--$j]; //#8171 + $1[$k[--$j]] = _Ci; //#8171 + if (($1.oe && ($1.mask == 0)) && (($f(($f($f($1.nm - $1.ew) - ($1.el * 2))) + ($1.bar * 2))) >= -2)) { //#8174 + $k[$j++] = 'sval'; //#8173 + $k[$j++] = $1.sval; //#8173 + $k[$j++] = $f(($f($f($1.nm - $1.ew) - $1.el)) + $1.bar); //#8173 + $k[$j++] = $f($f($1.el - $1.bar) - 2); //#8173 + $1.ncr(); //#8173 + var _Cx = $k[--$j]; //#8173 + var _Cy = $k[--$j]; //#8173 + $1[$k[--$j]] = $f(_Cy - _Cx); //#8173 + } //#8173 + if ($f($1.el - $1.bar) > 2) { //#8183 + $1.lval = 0; //#8176 + for (var _D8 = $f(($f(($f($f($1.nm - $1.ew) - $1.el)) + $1.bar)) + 2), _D7 = $f($1.mw + 1); _D8 >= _D7; _D8 -= 1) { //#8180 + $k[$j++] = $f(($f($f($1.nm - _D8) - $1.ew)) - 1); //#8178 + $k[$j++] = $f($f($1.el - $1.bar) - 3); //#8178 + $1.ncr(); //#8178 + $1.lval = $f($k[--$j] + $1.lval); //#8179 + } //#8179 + $1.sval = $f($1.sval - ($1.lval * ($f($f($1.el - $1.bar) - 1)))); //#8181 + } else { //#8183 + if ($f($1.nm - $1.ew) > $1.mw) { //#8183 + $1.sval = $f($1.sval - 1); //#8183 + } //#8183 + } //#8183 + $1.val = $f($1.val - $1.sval); //#8185 + if ($1.val < 0) { //#8186 + break; //#8186 + } //#8186 + $1.ew = $1.ew + 1; //#8187 + var _DS = $1.bar; //#8188 + $1.mask = $1.mask & (~((_DS < 0 ? 1 >>> -_DS : 1 << _DS))); //#8188 + } //#8188 + $1.val = $f($1.val + $1.sval); //#8190 + $1.nm = $f($1.nm - $1.ew); //#8191 + $put($1.out, $1.bar, $1.ew); //#8192 + } //#8192 + $put($1.out, $f($1.el - 1), $1.nm); //#8194 + $k[$j++] = $1.out; //#8195 + }; //#8196 + $1.tab174 = $a([347, 0, 12, 5, 7, 2, 87, 4, 1387, 348, 10, 7, 5, 4, 52, 20, 2947, 1388, 8, 9, 4, 5, 30, 52, 3987, 2948, 6, 11, 3, 6, 10, 104, 4191, 3988, 4, 13, 1, 8, 1, 204]); //#8204 + $1.dxw = $a($1.datalen); //#8206 + for (var _Dj = 0, _Di = $1.datalen - 1; _Dj <= _Di; _Dj += 1) { //#8247 + $1.x = _Dj; //#8210 + $1.d = $geti($1.binval, $1.x * 12, 12); //#8212 + $k[$j++] = 'd'; //#8213 + $k[$j++] = 0; //#8213 + for (var _Dn = 0; _Dn <= 11; _Dn += 1) { //#8213 + $1.j = _Dn; //#8213 + var _Ds = $k[--$j]; //#8213 + $k[$j++] = $f(_Ds + ((~~Math.pow(2, 11 - $1.j)) * $get($1.d, $1.j))); //#8213 + } //#8213 + var _Dt = $k[--$j]; //#8213 + $1[$k[--$j]] = _Dt; //#8213 + $1.j = 0; //#8215 + for (;;) { //#8225 + if ($le($1.d, $get($1.tab174, $1.j))) { //#8223 + var _E1 = $geti($1.tab174, $1.j + 1, 7); //#8217 + for (var _E2 = 0, _E3 = _E1.length; _E2 < _E3; _E2++) { //#8217 + $k[$j++] = $get(_E1, _E2); //#8217 + } //#8217 + $1.dte = $k[--$j]; //#8218 + $1.dto = $k[--$j]; //#8218 + $1.dmwe = $k[--$j]; //#8219 + $1.dmwo = $k[--$j]; //#8219 + $1.dele = $k[--$j]; //#8220 + $1.delo = $k[--$j]; //#8220 + $1.dgs = $k[--$j]; //#8221 + break; //#8222 + } //#8222 + $1.j = $1.j + 8; //#8224 + } //#8224 + $k[$j++] = 'dwo'; //#8227 + $k[$j++] = ~~($f($1.d - $1.dgs) / $1.dte); //#8227 + $k[$j++] = $1.delo; //#8227 + $k[$j++] = $1.dmwo; //#8227 + $k[$j++] = 4; //#8227 + $k[$j++] = true; //#8227 + $1.getRSSwidths(); //#8227 + var _EI = $k[--$j]; //#8227 + $1[$k[--$j]] = _EI; //#8227 + $k[$j++] = 'dwe'; //#8228 + $k[$j++] = $f($1.d - $1.dgs) % $1.dte; //#8228 + $k[$j++] = $1.dele; //#8228 + $k[$j++] = $1.dmwe; //#8228 + $k[$j++] = 4; //#8228 + $k[$j++] = false; //#8228 + $1.getRSSwidths(); //#8228 + var _EP = $k[--$j]; //#8228 + $1[$k[--$j]] = _EP; //#8228 + $1.dw = $a(8); //#8230 + if (($1.x % 2) == 0) { //#8241 + for (var _ET = 0; _ET <= 3; _ET += 1) { //#8236 + $1.j = _ET; //#8233 + $put($1.dw, 7 - ($1.j * 2), $get($1.dwo, $1.j)); //#8234 + $put($1.dw, 6 - ($1.j * 2), $get($1.dwe, $1.j)); //#8235 + } //#8235 + } else { //#8241 + for (var _Ee = 0; _Ee <= 3; _Ee += 1) { //#8242 + $1.j = _Ee; //#8239 + $put($1.dw, $1.j * 2, $get($1.dwo, $1.j)); //#8240 + $put($1.dw, ($1.j * 2) + 1, $get($1.dwe, $1.j)); //#8241 + } //#8241 + } //#8241 + $put($1.dxw, $1.x, $1.dw); //#8245 + } //#8245 + $1.finderwidths = $a([1, 8, 4, 1, 1, 1, 1, 4, 8, 1, 3, 6, 4, 1, 1, 1, 1, 4, 6, 3, 3, 4, 6, 1, 1, 1, 1, 6, 4, 3, 3, 2, 8, 1, 1, 1, 1, 8, 2, 3, 2, 6, 5, 1, 1, 1, 1, 5, 6, 2, 2, 2, 9, 1, 1, 1, 1, 9, 2, 2]); //#8256 + $1.finderseq = $a([$a([0, 1]), $a([0, 3, 2]), $a([0, 5, 2, 7]), $a([0, 9, 2, 7, 4]), $a([0, 9, 2, 7, 6, 11]), $a([0, 9, 2, 7, 8, 11, 10]), $a([0, 1, 2, 3, 4, 5, 6, 7]), $a([0, 1, 2, 3, 4, 5, 6, 9, 8]), $a([0, 1, 2, 3, 4, 5, 6, 9, 10, 11]), $a([0, 1, 2, 3, 4, 7, 6, 9, 8, 11, 10])]); //#8269 + $1.seq = $get($1.finderseq, ~~(($1.datalen - 2) / 2)); //#8271 + $1.fxw = $a($1.seq.length); //#8272 + for (var _FB = 0, _FA = $1.seq.length - 1; _FB <= _FA; _FB += 1) { //#8276 + $1.x = _FB; //#8274 + $put($1.fxw, $1.x, $geti($1.finderwidths, $get($1.seq, $1.x) * 5, 5)); //#8275 + } //#8275 + $1.checkweights = $a([-1, -1, -1, -1, -1, -1, -1, -1, 77, 96, 32, 81, 27, 9, 3, 1, 20, 60, 180, 118, 143, 7, 21, 63, 205, 209, 140, 117, 39, 13, 145, 189, 193, 157, 49, 147, 19, 57, 171, 91, 132, 44, 85, 169, 197, 136, 186, 62, 185, 133, 188, 142, 4, 12, 36, 108, 50, 87, 29, 80, 97, 173, 128, 113, 150, 28, 84, 41, 123, 158, 52, 156, 166, 196, 206, 139, 187, 203, 138, 46, 76, 17, 51, 153, 37, 111, 122, 155, 146, 119, 110, 107, 106, 176, 129, 43, 16, 48, 144, 10, 30, 90, 59, 177, 164, 125, 112, 178, 200, 137, 116, 109, 70, 210, 208, 202, 184, 130, 179, 115, 190, 204, 68, 93, 31, 151, 191, 134, 148, 22, 66, 198, 172, 94, 71, 2, 40, 154, 192, 64, 162, 54, 18, 6, 120, 149, 25, 75, 14, 42, 126, 167, 175, 199, 207, 69, 23, 78, 26, 79, 103, 98, 83, 38, 114, 131, 182, 124, 159, 53, 88, 170, 127, 183, 61, 161, 55, 165, 73, 8, 24, 72, 5, 15, 89, 100, 174, 58, 160, 194, 135, 45]); //#8303 + $k[$j++] = Infinity; //#8306 + $forall($1.seq, function() { //#8306 + $aload($geti($1.checkweights, $k[--$j] * 16, 16)); //#8306 + }); //#8306 + var _FO = $a(); //#8306 + $1.checkweightseq = $geti(_FO, 8, _FO.length - 8); //#8307 + $k[$j++] = Infinity; //#8310 + var _FQ = $1.dxw; //#8310 + for (var _FR = 0, _FS = _FQ.length; _FR < _FS; _FR++) { //#8310 + $forall($get(_FQ, _FR)); //#8310 + } //#8310 + $1.widths = $a(); //#8310 + $1.checksum = 0; //#8313 + for (var _FX = 0, _FW = $1.widths.length - 1; _FX <= _FW; _FX += 1) { //#8317 + $1.i = _FX; //#8315 + $1.checksum = $f($1.checksum + ($get($1.widths, $1.i) * $get($1.checkweightseq, $1.i))); //#8316 + } //#8316 + $1.checksum = $f(($1.checksum % 211) + (($1.datalen - 3) * 211)); //#8318 + $1.i = 0; //#8320 + for (;;) { //#8330 + if ($1.checksum <= $get($1.tab174, $1.i)) { //#8328 + var _Fn = $geti($1.tab174, $1.i + 1, 7); //#8322 + for (var _Fo = 0, _Fp = _Fn.length; _Fo < _Fp; _Fo++) { //#8322 + $k[$j++] = $get(_Fn, _Fo); //#8322 + } //#8322 + $1.cte = $k[--$j]; //#8323 + $1.cto = $k[--$j]; //#8323 + $1.cmwe = $k[--$j]; //#8324 + $1.cmwo = $k[--$j]; //#8324 + $1.cele = $k[--$j]; //#8325 + $1.celo = $k[--$j]; //#8325 + $1.cgs = $k[--$j]; //#8326 + break; //#8327 + } //#8327 + $1.i = $1.i + 8; //#8329 + } //#8329 + $k[$j++] = 'cwo'; //#8332 + $k[$j++] = ~~($f($1.checksum - $1.cgs) / $1.cte); //#8332 + $k[$j++] = $1.celo; //#8332 + $k[$j++] = $1.cmwo; //#8332 + $k[$j++] = 4; //#8332 + $k[$j++] = true; //#8332 + $1.getRSSwidths(); //#8332 + var _G4 = $k[--$j]; //#8332 + $1[$k[--$j]] = _G4; //#8332 + $k[$j++] = 'cwe'; //#8333 + $k[$j++] = $f($1.checksum - $1.cgs) % $1.cte; //#8333 + $k[$j++] = $1.cele; //#8333 + $k[$j++] = $1.cmwe; //#8333 + $k[$j++] = 4; //#8333 + $k[$j++] = false; //#8333 + $1.getRSSwidths(); //#8333 + var _GB = $k[--$j]; //#8333 + $1[$k[--$j]] = _GB; //#8333 + $1.cw = $a(8); //#8335 + for (var _GE = 0; _GE <= 3; _GE += 1) { //#8340 + $1.i = _GE; //#8337 + $put($1.cw, $1.i * 2, $get($1.cwo, $1.i)); //#8338 + $put($1.cw, ($1.i * 2) + 1, $get($1.cwe, $1.i)); //#8339 + } //#8339 + var _GP = $a(22); //#8342 + $put(_GP, 0, $1.cw); //#8343 + $puti(_GP, 1, $1.dxw); //#8343 + $1.dxw = $geti(_GP, 0, $1.datalen + 1); //#8344 + $1.datalen = $1.dxw.length; //#8345 + $1.rows = $a(~~Math.ceil($1.datalen / $1.segments)); //#8348 + $1.numrows = $1.rows.length; //#8349 + for (var _Gb = 0, _Ga = $1.numrows - 1; _Gb <= _Ga; _Gb += 1) { //#8364 + $1.r = _Gb; //#8351 + $k[$j++] = Infinity; //#8352 + if ((($1.segments % 4) != 0) && (($1.r % 2) == 1)) { //#8353 + $k[$j++] = 0; //#8353 + } //#8353 + $k[$j++] = 1; //#8361 + $k[$j++] = 1; //#8361 + for (var _Gg = 0, _Gf = $1.segments - 1; _Gg <= _Gf; _Gg += 1) { //#8361 + $1.pos = _Gg + ($1.r * $1.segments); //#8356 + if ($1.pos < $1.datalen) { //#8360 + $forall($get($1.dxw, $1.pos)); //#8358 + if (($1.pos % 2) == 0) { //#8359 + $forall($get($1.fxw, ~~($1.pos / 2))); //#8359 + } //#8359 + } //#8359 + } //#8359 + var _Gs = $counttomark() + 2; //#8363 + $k[$j++] = 1; //#8363 + $k[$j++] = 1; //#8363 + $astore($a(_Gs)); //#8363 + $put($1.rows, $1.r, $k[--$j]); //#8363 + $j--; //#8363 + } //#8363 + if ($ne($1.format, "expandedstacked")) { //#8492 + var _Gz = $get($1.rows, 0); //#8369 + $1.sbs = $geti(_Gz, 1, _Gz.length - 1); //#8369 + $k[$j++] = Infinity; //#8378 + $k[$j++] = 1; //#8377 + for (var _H3 = 0, _H2 = $1.datalen - 1; _H3 <= _H2; _H3 += 1) { //#8377 + $1.i = _H3; //#8374 + $forall($get($1.dxw, $1.i)); //#8375 + if (($1.i % 2) == 0) { //#8376 + $forall($get($1.fxw, ~~($1.i / 2))); //#8376 + } //#8376 + } //#8376 + $k[$j++] = 1; //#8378 + $k[$j++] = 1; //#8378 + $1.sbs = $a(); //#8378 + delete $1.options["parse"]; //#8381 + $k[$j++] = Infinity; //#8388 + var _HD = $1.sbs; //#8385 + $k[$j++] = Infinity; //#8386 + for (var _HF = 0, _HG = ~~(($1.sbs.length + 1) / 2); _HF < _HG; _HF++) { //#8386 + $k[$j++] = $1.height; //#8386 + } //#8386 + var _HI = $a(); //#8386 + $k[$j++] = Infinity; //#8387 + for (var _HK = 0, _HL = ~~(($1.sbs.length + 1) / 2); _HK < _HL; _HK++) { //#8387 + $k[$j++] = 0; //#8387 + } //#8387 + var _HM = $a(); //#8387 + $k[$j++] = 'ren'; //#8388 + $k[$j++] = $0.renlinear; //#8388 + $k[$j++] = 'sbs'; //#8388 + $k[$j++] = _HD; //#8388 + $k[$j++] = 'bhs'; //#8388 + $k[$j++] = _HI; //#8388 + $k[$j++] = 'bbs'; //#8388 + $k[$j++] = _HM; //#8388 + $k[$j++] = 'opt'; //#8388 + $k[$j++] = $1.options; //#8388 + var _HO = $d(); //#8388 + $k[$j++] = _HO; //#8391 + if (!$1.dontdraw) { //#8391 + $0.renlinear(); //#8391 + } //#8391 + } else { //#8492 + $1.seps = $a($1.numrows); //#8395 + for (var _HU = 0, _HT = $1.numrows - 1; _HU <= _HT; _HU += 1) { //#8451 + $1.r = _HU; //#8398 + $1.row = $get($1.rows, $1.r); //#8399 + $k[$j++] = Infinity; //#8402 + for (var _Ha = 0, _HZ = $1.row.length - 1; _Ha <= _HZ; _Ha += 2) { //#8407 + $1.i = _Ha; //#8404 + for (var _He = 0, _Hf = $get($1.row, $1.i); _He < _Hf; _He++) { //#8405 + $k[$j++] = 0; //#8405 + } //#8405 + if ($1.i < ($1.row.length - 1)) { //#8406 + for (var _Hl = 0, _Hm = $get($1.row, $1.i + 1); _Hl < _Hm; _Hl++) { //#8406 + $k[$j++] = 1; //#8406 + } //#8406 + } //#8406 + } //#8406 + $astore($a($counttomark())); //#8408 + $1.row = $k[--$j]; //#8408 + $j--; //#8408 + $k[$j++] = Infinity; //#8411 + $forall($1.row, function() { //#8411 + var _Hr = $k[--$j]; //#8411 + $k[$j++] = $f(1 - _Hr); //#8411 + }); //#8411 + $1.sep = $a(); //#8411 + $k[$j++] = Infinity; //#8414 + for (var _Hv = 19, _Hu = $1.row.length - 13; _Hv <= _Hu; _Hv += 98) { //#8413 + $k[$j++] = _Hv; //#8413 + } //#8413 + for (var _Hy = 68, _Hx = $1.row.length - 13; _Hy <= _Hx; _Hy += 98) { //#8414 + $k[$j++] = _Hy; //#8414 + } //#8414 + $1.finderpos = $a(); //#8414 + var _I0 = $1.finderpos; //#8416 + for (var _I1 = 0, _I2 = _I0.length; _I1 < _I2; _I1++) { //#8430 + var _I3 = $get(_I0, _I1); //#8430 + for (var _I5 = _I3, _I4 = $f(_I3 + 14); _I5 <= _I4; _I5 += 1) { //#8429 + $1.i = _I5; //#8418 + if ($get($1.row, $1.i) == 0) { //#8426 + if ($get($1.row, $1.i - 1) == 1) { //#8423 + $k[$j++] = 1; //#8421 + } else { //#8423 + var _IF = ($get($1.sep, $1.i - 1) == 0) ? 1 : 0; //#8423 + $k[$j++] = _IF; //#8423 + } //#8423 + } else { //#8426 + $k[$j++] = 0; //#8426 + } //#8426 + $put($1.sep, $1.i, $k[--$j]); //#8428 + } //#8428 + } //#8428 + $puti($1.sep, 0, $a([0, 0, 0, 0])); //#8431 + $puti($1.sep, $1.row.length - 4, $a([0, 0, 0, 0])); //#8432 + if ((($1.segments % 4) == 0) && (($1.r % 2) == 1)) { //#8446 + if (($get($1.rows, $1.r).length != $get($1.rows, 0).length) && (($1.finderpos.length % 2) == 1)) { //#8444 + $k[$j++] = Infinity; //#8438 + $k[$j++] = 0; //#8438 + $aload($1.row); //#8438 + $1.row = $a(); //#8438 + $k[$j++] = Infinity; //#8439 + $k[$j++] = 0; //#8439 + $aload($1.sep); //#8439 + $1.sep = $a(); //#8439 + } else { //#8444 + for (var _Ib = $1.row.length - 1; _Ib >= 0; _Ib -= 1) { //#8441 + $k[$j++] = $get($1.row, _Ib); //#8441 + } //#8441 + $astore($1.row); //#8442 + $j--; //#8442 + for (var _Ig = $1.sep.length - 1; _Ig >= 0; _Ig -= 1) { //#8443 + $k[$j++] = $get($1.sep, _Ig); //#8443 + } //#8443 + $astore($1.sep); //#8444 + $j--; //#8444 + } //#8444 + } //#8444 + $put($1.rows, $1.r, $1.row); //#8448 + $put($1.seps, $1.r, $1.sep); //#8449 + } //#8449 + $1.pixx = $get($1.rows, 0).length; //#8454 + $k[$j++] = Infinity; //#8455 + for (var _It = 0, _Iu = $1.pixx; _It < _Iu; _It++) { //#8455 + $k[$j++] = 0; //#8455 + } //#8455 + var _Iv = $a(); //#8455 + $puti(_Iv, 0, $get($1.rows, $1.numrows - 1)); //#8455 + $put($1.rows, $1.numrows - 1, _Iv); //#8456 + $k[$j++] = Infinity; //#8457 + for (var _J2 = 0, _J3 = $1.pixx; _J2 < _J3; _J2++) { //#8457 + $k[$j++] = 0; //#8457 + } //#8457 + var _J4 = $a(); //#8457 + $puti(_J4, 0, $get($1.seps, $1.numrows - 1)); //#8457 + $put($1.seps, $1.numrows - 1, _J4); //#8458 + $k[$j++] = Infinity; //#8461 + for (var _JB = 0, _JC = (~~($1.pixx / 2)) + 1; _JB < _JC; _JB++) { //#8461 + $k[$j++] = 0; //#8461 + $k[$j++] = 1; //#8461 + } //#8461 + $1.sep = $geti($a(), 0, $1.pixx); //#8461 + $puti($1.sep, 0, $a([0, 0, 0, 0])); //#8462 + $puti($1.sep, $1.pixx - 4, $a([0, 0, 0, 0])); //#8463 + $k[$j++] = Infinity; //#8475 + for (var _JN = 0, _JM = $1.numrows - 1; _JN <= _JM; _JN += 1) { //#8477 + $1.r = _JN; //#8468 + if ($1.r != 0) { //#8471 + $aload($get($1.seps, $1.r)); //#8470 + } //#8470 + for (var _JT = 0, _JU = $1.barxmult; _JT < _JU; _JT++) { //#8472 + $aload($get($1.rows, $1.r)); //#8472 + } //#8472 + if ($1.r != ($1.numrows - 1)) { //#8476 + $aload($get($1.seps, $1.r)); //#8474 + $aload($1.sep); //#8475 + } //#8475 + } //#8475 + $1.pixs = $a(); //#8475 + delete $1.options["parse"]; //#8480 + var _Jo = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", $1.pixx], + ["pixy", ~~($1.pixs.length / $1.pixx)], + ["height", (~~($1.pixs.length / $1.pixx)) / 72], + ["width", $1.pixx / 72], + ["opt", $1.options] + ]); //#8489 + $k[$j++] = _Jo; //#8492 + if (!$1.dontdraw) { //#8492 + $0.renmatrix(); //#8492 + } //#8492 + } //#8492 }; $0.databarexpandedstacked = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $put($1.options, "dontdraw", true); - $put($1.options, "format", "expandedstacked"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.databarexpanded(); - var _9 = $k[--$j]; - $1[$k[--$j]] = _9; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#8524 + $1.options = $k[--$j]; //#8526 + $1.barcode = $k[--$j]; //#8527 + $1.dontdraw = false; //#8529 + $forall($1.options, function() { //#8540 + var _3 = $k[--$j]; //#8540 + $1[$k[--$j]] = _3; //#8540 + }); //#8540 + $put($1.options, "dontdraw", true); //#8543 + $put($1.options, "format", "expandedstacked"); //#8544 + $k[$j++] = 'args'; //#8546 + $k[$j++] = $1.barcode; //#8546 + $k[$j++] = $1.options; //#8546 + $0.databarexpanded(); //#8546 + var _9 = $k[--$j]; //#8546 + $1[$k[--$j]] = _9; //#8546 + $put($1.args, "opt", $1.options); //#8548 + $k[$j++] = $1.args; //#8551 + if (!$1.dontdraw) { //#8551 + $0.renmatrix(); //#8551 + } //#8551 }; $0.gs1northamericancoupon = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.coupontextfont = "OCR-B"; - $1.coupontextsize = 9; - $1.coupontextxoffset = "unset"; - $1.coupontextyoffset = "unset"; - $1.parse = false; - $1.dontlint = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.coupontextfont = "" + $1.coupontextfont; - $1.coupontextsize = +$1.coupontextsize; - if ($ne($1.coupontextxoffset, "unset")) { - $1.coupontextxoffset = +$1.coupontextxoffset; - } - if ($ne($1.coupontextyoffset, "unset")) { - $1.coupontextyoffset = +$1.coupontextyoffset; - } + var $1 = {}; //#8583 + $1.options = $k[--$j]; //#8585 + $1.barcode = $k[--$j]; //#8586 + $1.dontdraw = false; //#8588 + $1.includetext = false; //#8590 + $1.coupontextfont = "OCR-B"; //#8591 + $1.coupontextsize = 9; //#8592 + $1.coupontextxoffset = "unset"; //#8593 + $1.coupontextyoffset = "unset"; //#8594 + $1.parse = false; //#8595 + $1.dontlint = false; //#8596 + $forall($1.options, function() { //#8607 + var _3 = $k[--$j]; //#8607 + $1[$k[--$j]] = _3; //#8607 + }); //#8607 + $1.coupontextfont = "" + $1.coupontextfont; //#8609 + $1.coupontextsize = +$1.coupontextsize; //#8610 + if ($ne($1.coupontextxoffset, "unset")) { //#8611 + $1.coupontextxoffset = +$1.coupontextxoffset; //#8611 + } //#8611 + if ($ne($1.coupontextyoffset, "unset")) { //#8612 + $1.coupontextyoffset = +$1.coupontextyoffset; //#8612 + } //#8612 $1.expand = function() { - var _C = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _C; - $k[$j++] = $1.fncvals; - $0.parseinput(); - }; - $1.ais = $a([]); - $1.vals = $a([]); - var _G = $1.barcode; - $k[$j++] = $geti(_G, 1, _G.length - 1); - for (;;) { - var _I = $k[--$j]; - $k[$j++] = _I; - if ($eq(_I, "")) { - break; - } - $search($k[--$j], ")"); - $j--; - var _K = $k[--$j]; - var _L = $k[--$j]; - $k[$j++] = _K; - $k[$j++] = _L; - $j--; - var _M = $k[--$j]; - var _N = $k[--$j]; - $k[$j++] = _M; - $search(_N, "("); - if ($k[--$j]) { - var _P = $k[--$j]; - var _Q = $k[--$j]; - $k[$j++] = _P; - $k[$j++] = _Q; - $j--; - var _R = $k[--$j]; - var _S = $k[--$j]; - var _T = $k[--$j]; - $k[$j++] = _S; - $k[$j++] = _T; - $k[$j++] = _R; - } else { - var _U = $k[--$j]; - var _V = $k[--$j]; - $k[$j++] = ""; - $k[$j++] = _V; - $k[$j++] = _U; - } - $k[$j++] = Infinity; - $aload($1.ais); - var _Y = $k[$j - 1 - ($counttomark() + 2)]; - $k[$j++] = _Y; - $1.ais = $a(); - $k[$j++] = Infinity; - $aload($1.vals); - var _c = $k[$j - 1 - ($counttomark() + 1)]; - $k[$j++] = _c; - $1.expand(); - $1.vals = $a(); - $j -= 2; - } - $j--; - if ($1.ais.length != 1) { - $k[$j++] = "bwipp.gs1northamericancouponBadAIStructure"; - $k[$j++] = "A GS1 North American Coupon should consist of a single AI (8110)"; - $0.raiseerror(); - } - if ($ne($get($1.ais, 0), "8110")) { - $k[$j++] = "bwipp.gs1northamericancouponBadAIStructure"; - $k[$j++] = "A GS1 North American Coupon should consist of a single AI (8110)"; - $0.raiseerror(); - } - if (!$1.dontlint) { - $k[$j++] = $1.ais; - $k[$j++] = $1.vals; - $0.gs1lint(); - $j--; - } - $1.val = $get($1.vals, 0); - $1.vli = $f($get($1.val, 0) - 48); - if ($1.vli < 0 || $1.vli > 6) { - $k[$j++] = "bwipp.gs1northamericancouponBadVLI"; - $k[$j++] = "The AI (8110) data should start with a Company Prefix length indicator in the range 0 to 6"; - $0.raiseerror(); - } - $1.gcp = $geti($1.val, 1, $f($1.vli + 6)); - $1.cod = $geti($1.val, $f($1.vli + 7), 6); - $1.coupontext = $s($1.gcp.length + 7); - $puti($1.coupontext, 0, $1.gcp); - $puti($1.coupontext, $1.gcp.length, "-"); - $puti($1.coupontext, $1.gcp.length + 1, $1.cod); - delete $1.options["parse"]; - $put($1.options, "dontdraw", true); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.databarexpandedstacked(); - var _19 = $k[--$j]; - $1[$k[--$j]] = _19; - if ($1.includetext) { - if ($1.coupontextxoffset == "unset") { - $1.coupontextxoffset = 0; - } - if ($1.coupontextyoffset == "unset") { - $1.coupontextyoffset = $f($get($1.args, "height") * 72 + 3); - } - var _1H = $get($1.args, "txt") !== undefined; - if (_1H) { - $1.txt = $get($1.args, "txt"); - $1.newtxt = $a($1.txt.length + 1); - $puti($1.newtxt, 0, $1.txt); - $put($1.newtxt, $1.newtxt.length - 1, $a([ $1.coupontext, $1.coupontextxoffset, $1.coupontextyoffset, $1.coupontextfont, $1.coupontextsize ])); - $put($1.args, "txt", $1.newtxt); - } else { - $put($1.args, "txt", $a([ $a([ $1.coupontext, $1.coupontextxoffset, $1.coupontextyoffset, $1.coupontextfont, $1.coupontextsize ]) ])); - } - } - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var _C = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#8619 + $1.fncvals = _C; //#8620 + $k[$j++] = $1.fncvals; //#8621 + $0.parseinput(); //#8621 + }; //#8622 + $1.ais = $a([]); //#8625 + $1.vals = $a([]); //#8626 + var _G = $1.barcode; //#8627 + $k[$j++] = $geti(_G, 1, _G.length - 1); //#8640 + for (;;) { //#8640 + var _I = $k[--$j]; //#8629 + $k[$j++] = _I; //#8629 + if ($eq(_I, "")) { //#8629 + break; //#8629 + } //#8629 + $search($k[--$j], ")"); //#8630 + $j--; //#8630 + var _K = $k[--$j]; //#8631 + var _L = $k[--$j]; //#8631 + $k[$j++] = _K; //#8631 + $k[$j++] = _L; //#8631 + $j--; //#8631 + var _M = $k[--$j]; //#8632 + var _N = $k[--$j]; //#8632 + $k[$j++] = _M; //#8632 + $search(_N, "("); //#8632 + if ($k[--$j]) { //#8635 + var _P = $k[--$j]; //#8633 + var _Q = $k[--$j]; //#8633 + $k[$j++] = _P; //#8633 + $k[$j++] = _Q; //#8633 + $j--; //#8633 + var _R = $k[--$j]; //#8633 + var _S = $k[--$j]; //#8633 + var _T = $k[--$j]; //#8633 + $k[$j++] = _S; //#8633 + $k[$j++] = _T; //#8633 + $k[$j++] = _R; //#8633 + } else { //#8635 + var _U = $k[--$j]; //#8635 + var _V = $k[--$j]; //#8635 + $k[$j++] = ""; //#8635 + $k[$j++] = _V; //#8635 + $k[$j++] = _U; //#8635 + } //#8635 + $k[$j++] = Infinity; //#8637 + $aload($1.ais); //#8637 + var _Y = $k[$j - 1 - ($counttomark() + 2)]; //#8637 + $k[$j++] = _Y; //#8637 + $1.ais = $a(); //#8637 + $k[$j++] = Infinity; //#8638 + $aload($1.vals); //#8638 + var _c = $k[$j - 1 - ($counttomark() + 1)]; //#8638 + $k[$j++] = _c; //#8638 + $1.expand(); //#8638 + $1.vals = $a(); //#8638 + $j -= 2; //#8639 + } //#8639 + $j--; //#8641 + if ($1.ais.length != 1) { //#8646 + $k[$j++] = 'bwipp.gs1northamericancouponBadAIStructure'; //#8645 + $k[$j++] = "A GS1 North American Coupon should consist of a single AI (8110)"; //#8645 + $0.raiseerror(); //#8645 + } //#8645 + if ($ne($get($1.ais, 0), "8110")) { //#8649 + $k[$j++] = 'bwipp.gs1northamericancouponBadAIStructure'; //#8648 + $k[$j++] = "A GS1 North American Coupon should consist of a single AI (8110)"; //#8648 + $0.raiseerror(); //#8648 + } //#8648 + if (!$1.dontlint) { //#8651 + $k[$j++] = $1.ais; //#8651 + $k[$j++] = $1.vals; //#8651 + $0.gs1lint(); //#8651 + $j--; //#8651 + } //#8651 + $1.val = $get($1.vals, 0); //#8654 + $1.vli = $f($get($1.val, 0) - 48); //#8655 + if (($1.vli < 0) || ($1.vli > 6)) { //#8658 + $k[$j++] = 'bwipp.gs1northamericancouponBadVLI'; //#8657 + $k[$j++] = "The AI (8110) data should start with a Company Prefix length indicator in the range 0 to 6"; //#8657 + $0.raiseerror(); //#8657 + } //#8657 + $1.gcp = $geti($1.val, 1, $f($1.vli + 6)); //#8659 + $1.cod = $geti($1.val, $f($1.vli + 7), 6); //#8660 + $1.coupontext = $s($1.gcp.length + 7); //#8661 + $puti($1.coupontext, 0, $1.gcp); //#8662 + $puti($1.coupontext, $1.gcp.length, "-"); //#8663 + $puti($1.coupontext, $1.gcp.length + 1, $1.cod); //#8664 + delete $1.options["parse"]; //#8667 + $put($1.options, "dontdraw", true); //#8668 + $k[$j++] = 'args'; //#8670 + $k[$j++] = $1.barcode; //#8670 + $k[$j++] = $1.options; //#8670 + $0.databarexpandedstacked(); //#8670 + var _19 = $k[--$j]; //#8670 + $1[$k[--$j]] = _19; //#8670 + if ($1.includetext) { //#8689 + if ($1.coupontextxoffset == "unset") { //#8676 + $1.coupontextxoffset = 0; //#8675 + } //#8675 + if ($1.coupontextyoffset == "unset") { //#8679 + $1.coupontextyoffset = $f(($get($1.args, "height") * 72) + 3); //#8678 + } //#8678 + var _1H = $get($1.args, "txt") !== undefined; //#8680 + if (_1H) { //#8687 + $1.txt = $get($1.args, "txt"); //#8681 + $1.newtxt = $a($1.txt.length + 1); //#8682 + $puti($1.newtxt, 0, $1.txt); //#8683 + $put($1.newtxt, $1.newtxt.length - 1, $a([$1.coupontext, $1.coupontextxoffset, $1.coupontextyoffset, $1.coupontextfont, $1.coupontextsize])); //#8684 + $put($1.args, "txt", $1.newtxt); //#8685 + } else { //#8687 + $put($1.args, "txt", $a([$a([$1.coupontext, $1.coupontextxoffset, $1.coupontextyoffset, $1.coupontextfont, $1.coupontextsize])])); //#8687 + } //#8687 + } //#8687 + $put($1.args, "opt", $1.options); //#8691 + $k[$j++] = $1.args; //#8694 + if (!$1.dontdraw) { //#8694 + $0.renmatrix(); //#8694 + } //#8694 }; $0.pharmacode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.height = 8 * 2.835 / 72; - $1.nwidth = .5 * 2.835; - $1.wwidth = 1.5 * 2.835; - $1.swidth = 1 * 2.835; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.height = +$1.height; - $1.nwidth = +$1.nwidth; - $1.wwidth = +$1.wwidth; - $1.swidth = +$1.swidth; - if ($1.barcode.length < 1 || $1.barcode.length > 6) { - $k[$j++] = "bwipp.pharmacodeBadLength"; - $k[$j++] = "Pharmacode must be 1 to 6 digits"; - $0.raiseerror(); - } - $forall($1.barcode, function() { - var _C = $k[--$j]; - if (_C < 48 || _C > 57) { - $k[$j++] = "bwipp.pharmacodeBadCharacter"; - $k[$j++] = "Pharmacode must contain only digits"; - $0.raiseerror(); - } - }); - var _E = ~~$z($1.barcode); - if (_E < 3 || _E > 131070) { - $k[$j++] = "bwipp.pharmacodeBadValue"; - $k[$j++] = "Pharmacode value must be between 3 and 131070"; - $0.raiseerror(); - } - $1.txt = $a($1.barcode.length); - for (var _J = 0, _I = $1.barcode.length - 1; _J <= _I; _J += 1) { - $1.i = _J; - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), 0, 0, "", 0 ])); - } - $1.barcode = $cvrs($s(17), ~~$z($1.barcode) + 1, 2); - $1.barcode = $geti($1.barcode, 1, $1.barcode.length - 1); - $1.barlen = $1.barcode.length; - $1.sbs = $a($1.barlen * 2); - for (var _b = 0, _a = $1.barlen - 1; _b <= _a; _b += 1) { - $1.i = _b; - $1.enc = $geti($1.barcode, $1.i, 1); - if ($eq($1.enc, "0")) { - $put($1.sbs, $1.i * 2, $1.nwidth); - } else { - $put($1.sbs, $1.i * 2, $1.wwidth); - } - $put($1.sbs, $1.i * 2 + 1, $1.swidth); - } - $k[$j++] = Infinity; - var _p = $1.sbs; - $k[$j++] = Infinity; - for (var _r = 0, _s = ~~(($1.sbs.length + 1) / 2); _r < _s; _r++) { - $k[$j++] = $1.height; - } - var _u = $a(); - $k[$j++] = Infinity; - for (var _w = 0, _x = ~~(($1.sbs.length + 1) / 2); _w < _x; _w++) { - $k[$j++] = 0; - } - var _y = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _p; - $k[$j++] = "bhs"; - $k[$j++] = _u; - $k[$j++] = "bbs"; - $k[$j++] = _y; - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - $k[$j++] = "textxalign"; - $k[$j++] = "center"; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _11 = $d(); - $k[$j++] = _11; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#8723 + $1.options = $k[--$j]; //#8725 + $1.barcode = $k[--$j]; //#8726 + $1.dontdraw = false; //#8728 + $1.height = (8 * 2.835) / 72; //#8729 + $1.nwidth = 0.5 * 2.835; //#8730 + $1.wwidth = 1.5 * 2.835; //#8731 + $1.swidth = 1 * 2.835; //#8732 + $forall($1.options, function() { //#8743 + var _3 = $k[--$j]; //#8743 + $1[$k[--$j]] = _3; //#8743 + }); //#8743 + $1.height = +$1.height; //#8745 + $1.nwidth = +$1.nwidth; //#8746 + $1.wwidth = +$1.wwidth; //#8747 + $1.swidth = +$1.swidth; //#8748 + if (($1.barcode.length < 1) || ($1.barcode.length > 6)) { //#8753 + $k[$j++] = 'bwipp.pharmacodeBadLength'; //#8752 + $k[$j++] = "Pharmacode must be 1 to 6 digits"; //#8752 + $0.raiseerror(); //#8752 + } //#8752 + $forall($1.barcode, function() { //#8758 + var _C = $k[--$j]; //#8755 + if ((_C < 48) || (_C > 57)) { //#8757 + $k[$j++] = 'bwipp.pharmacodeBadCharacter'; //#8756 + $k[$j++] = "Pharmacode must contain only digits"; //#8756 + $0.raiseerror(); //#8756 + } //#8756 + }); //#8756 + var _E = ~~$z($1.barcode); //#8759 + if ((_E < 3) || (_E > 131070)) { //#8761 + $k[$j++] = 'bwipp.pharmacodeBadValue'; //#8760 + $k[$j++] = "Pharmacode value must be between 3 and 131070"; //#8760 + $0.raiseerror(); //#8760 + } //#8760 + $1.txt = $a($1.barcode.length); //#8764 + for (var _J = 0, _I = $1.barcode.length - 1; _J <= _I; _J += 1) { //#8768 + $1.i = _J; //#8766 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), 0, 0, "", 0])); //#8767 + } //#8767 + $1.barcode = $cvrs($s(17), (~~$z($1.barcode)) + 1, 2); //#8771 + $1.barcode = $geti($1.barcode, 1, $1.barcode.length - 1); //#8772 + $1.barlen = $1.barcode.length; //#8774 + $1.sbs = $a($1.barlen * 2); //#8775 + for (var _b = 0, _a = $1.barlen - 1; _b <= _a; _b += 1) { //#8786 + $1.i = _b; //#8778 + $1.enc = $geti($1.barcode, $1.i, 1); //#8779 + if ($eq($1.enc, "0")) { //#8783 + $put($1.sbs, $1.i * 2, $1.nwidth); //#8781 + } else { //#8783 + $put($1.sbs, $1.i * 2, $1.wwidth); //#8783 + } //#8783 + $put($1.sbs, ($1.i * 2) + 1, $1.swidth); //#8785 + } //#8785 + $k[$j++] = Infinity; //#8796 + var _p = $1.sbs; //#8791 + $k[$j++] = Infinity; //#8792 + for (var _r = 0, _s = ~~(($1.sbs.length + 1) / 2); _r < _s; _r++) { //#8792 + $k[$j++] = $1.height; //#8792 + } //#8792 + var _u = $a(); //#8792 + $k[$j++] = Infinity; //#8793 + for (var _w = 0, _x = ~~(($1.sbs.length + 1) / 2); _w < _x; _w++) { //#8793 + $k[$j++] = 0; //#8793 + } //#8793 + var _y = $a(); //#8793 + $k[$j++] = 'ren'; //#8796 + $k[$j++] = $0.renlinear; //#8796 + $k[$j++] = 'sbs'; //#8796 + $k[$j++] = _p; //#8796 + $k[$j++] = 'bhs'; //#8796 + $k[$j++] = _u; //#8796 + $k[$j++] = 'bbs'; //#8796 + $k[$j++] = _y; //#8796 + $k[$j++] = 'txt'; //#8796 + $k[$j++] = $1.txt; //#8796 + $k[$j++] = 'textxalign'; //#8796 + $k[$j++] = "center"; //#8796 + $k[$j++] = 'opt'; //#8796 + $k[$j++] = $1.options; //#8796 + var _11 = $d(); //#8796 + $k[$j++] = _11; //#8799 + if (!$1.dontdraw) { //#8799 + $0.renlinear(); //#8799 + } //#8799 }; $0.pharmacode2 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.height = 4; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.height = +$1.height; - if ($1.barcode.length < 1 || $1.barcode.length > 8) { - $k[$j++] = "bwipp.pharmacode2BadLength"; - $k[$j++] = "Two-track Pharmacode must be 1 to 6 digits"; - $0.raiseerror(); - } - $forall($1.barcode, function() { - var _9 = $k[--$j]; - if (_9 < 48 || _9 > 57) { - $k[$j++] = "bwipp.pharmacode2badCharacter"; - $k[$j++] = "Two-track Pharmacode must contain only digits"; - $0.raiseerror(); - } - }); - var _B = ~~$z($1.barcode); - if (_B < 4 || _B > 64570080) { - $k[$j++] = "bwipp.pharmacode2badValue"; - $k[$j++] = "Two-track Pharmacode value must be between 4 and 64570080"; - $0.raiseerror(); - } - $1.txt = $a($1.barcode.length); - for (var _G = 0, _F = $1.barcode.length - 1; _G <= _F; _G += 1) { - $1.i = _G; - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), 0, 0, "", 0 ])); - } - $1.encstr = $s(16); - $1.sbs = $a(32); - $1.bar = 1 / 25.4 * $1.height; - $1.spc = 1 / 25.4 * 72; - $1.i = 15; - $1.val = ~~$z($1.barcode); - for (;;) { - if ($1.val == 0) { - break; - } - var _T = $1.val % 3; - $1.val = ~~($f($1.val - $get($a([ 3, 1, 2 ]), _T)) / 3); - $put($1.encstr, $1.i, $get($a([ 2, 0, 1 ]), _T)); - $1.i = $1.i - 1; - } - $1.encstr = $geti($1.encstr, $1.i + 1, 15 - $1.i); - $1.bhs = $a($1.encstr.length); - $1.bbs = $a($1.encstr.length); - for (var _m = 0, _l = $1.encstr.length - 1; _m <= _l; _m += 1) { - $1.i = _m; - var _p = $get($1.encstr, $1.i); - $put($1.bhs, $1.i, $1.bar * $get($a([ 1, 1, 2 ]), _p)); - $put($1.bbs, $1.i, $get($a([ 0, $1.bar, 0 ]), _p)); - } - $k[$j++] = Infinity; - var _10 = $1.bhs; - var _11 = $1.bbs; - $k[$j++] = Infinity; - for (var _13 = 0, _14 = $1.encstr.length * 2; _13 < _14; _13++) { - $k[$j++] = $1.spc; - } - var _16 = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "bhs"; - $k[$j++] = _10; - $k[$j++] = "bbs"; - $k[$j++] = _11; - $k[$j++] = "sbs"; - $k[$j++] = _16; - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - $k[$j++] = "textxalign"; - $k[$j++] = "center"; - $k[$j++] = "textyoffset"; - $k[$j++] = 4; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _19 = $d(); - $k[$j++] = _19; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#8828 + $1.options = $k[--$j]; //#8830 + $1.barcode = $k[--$j]; //#8831 + $1.dontdraw = false; //#8833 + $1.includetext = false; //#8834 + $1.height = 4; //#8835 + $forall($1.options, function() { //#8846 + var _3 = $k[--$j]; //#8846 + $1[$k[--$j]] = _3; //#8846 + }); //#8846 + $1.height = +$1.height; //#8848 + if (($1.barcode.length < 1) || ($1.barcode.length > 8)) { //#8853 + $k[$j++] = 'bwipp.pharmacode2BadLength'; //#8852 + $k[$j++] = "Two-track Pharmacode must be 1 to 6 digits"; //#8852 + $0.raiseerror(); //#8852 + } //#8852 + $forall($1.barcode, function() { //#8858 + var _9 = $k[--$j]; //#8855 + if ((_9 < 48) || (_9 > 57)) { //#8857 + $k[$j++] = 'bwipp.pharmacode2badCharacter'; //#8856 + $k[$j++] = "Two-track Pharmacode must contain only digits"; //#8856 + $0.raiseerror(); //#8856 + } //#8856 + }); //#8856 + var _B = ~~$z($1.barcode); //#8859 + if ((_B < 4) || (_B > 64570080)) { //#8861 + $k[$j++] = 'bwipp.pharmacode2badValue'; //#8860 + $k[$j++] = "Two-track Pharmacode value must be between 4 and 64570080"; //#8860 + $0.raiseerror(); //#8860 + } //#8860 + $1.txt = $a($1.barcode.length); //#8864 + for (var _G = 0, _F = $1.barcode.length - 1; _G <= _F; _G += 1) { //#8868 + $1.i = _G; //#8866 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), 0, 0, "", 0])); //#8867 + } //#8867 + $1.encstr = $s(16); //#8870 + $1.sbs = $a(32); //#8871 + $1.bar = (1 / 25.4) * $1.height; //#8872 + $1.spc = (1 / 25.4) * 72; //#8873 + $1.i = 15; //#8876 + $1.val = ~~$z($1.barcode); //#8877 + for (;;) { //#8884 + if ($1.val == 0) { //#8879 + break; //#8879 + } //#8879 + var _T = $1.val % 3; //#8880 + $1.val = ~~($f($1.val - $get($a([3, 1, 2]), _T)) / 3); //#8881 + $put($1.encstr, $1.i, $get($a([2, 0, 1]), _T)); //#8882 + $1.i = $1.i - 1; //#8883 + } //#8883 + $1.encstr = $geti($1.encstr, $1.i + 1, 15 - $1.i); //#8885 + $1.bhs = $a($1.encstr.length); //#8888 + $1.bbs = $a($1.encstr.length); //#8889 + for (var _m = 0, _l = $1.encstr.length - 1; _m <= _l; _m += 1) { //#8895 + $1.i = _m; //#8891 + var _p = $get($1.encstr, $1.i); //#8892 + $put($1.bhs, $1.i, $1.bar * $get($a([1, 1, 2]), _p)); //#8893 + $put($1.bbs, $1.i, $get($a([0, $1.bar, 0]), _p)); //#8894 + } //#8894 + $k[$j++] = Infinity; //#8906 + var _10 = $1.bhs; //#8900 + var _11 = $1.bbs; //#8901 + $k[$j++] = Infinity; //#8902 + for (var _13 = 0, _14 = $1.encstr.length * 2; _13 < _14; _13++) { //#8902 + $k[$j++] = $1.spc; //#8902 + } //#8902 + var _16 = $a(); //#8902 + $k[$j++] = 'ren'; //#8906 + $k[$j++] = $0.renlinear; //#8906 + $k[$j++] = 'bhs'; //#8906 + $k[$j++] = _10; //#8906 + $k[$j++] = 'bbs'; //#8906 + $k[$j++] = _11; //#8906 + $k[$j++] = 'sbs'; //#8906 + $k[$j++] = _16; //#8906 + $k[$j++] = 'txt'; //#8906 + $k[$j++] = $1.txt; //#8906 + $k[$j++] = 'textxalign'; //#8906 + $k[$j++] = "center"; //#8906 + $k[$j++] = 'textyoffset'; //#8906 + $k[$j++] = 4; //#8906 + $k[$j++] = 'opt'; //#8906 + $k[$j++] = $1.options; //#8906 + var _19 = $d(); //#8906 + $k[$j++] = _19; //#8909 + if (!$1.dontdraw) { //#8909 + $0.renlinear(); //#8909 + } //#8909 }; $0.code2of5 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includecheck = false; - $1.validatecheck = false; - $1.includetext = false; - $1.includecheckintext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = 1; - $1.version = "industrial"; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $forall($1.barcode, function() { - var _A = $k[--$j]; - if (_A < 48 || _A > 57) { - $k[$j++] = "bwipp.code2of5badCharacter"; - $k[$j++] = "Code 25 must contain only digits"; - $0.raiseerror(); - } - }); - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _D = $k[--$j]; - $k[$j++] = $f(_D - 1); - } - var _E = $k[--$j]; - $1[$k[--$j]] = _E; - $1.checksum = 0; - for (var _I = 0, _H = $f($1.barlen - 1); _I <= _H; _I += 1) { - $1.i = _I; - $k[$j++] = "checksum"; - $k[$j++] = $1.checksum; - $k[$j++] = $f($get($1.barcode, $1.i) - 48); - if ($f($1.barlen - $1.i) % 2 != 0) { - var _P = $k[--$j]; - $k[$j++] = _P * 3; - } - var _Q = $k[--$j]; - var _R = $k[--$j]; - $1[$k[--$j]] = $f(_R + _Q); - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $1.checksum + 48) { - $k[$j++] = "bwipp.code2of5badCheckDigit"; - $k[$j++] = "Incorrect Code 25 check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - $1.includecheck = true; - } - var _h = new Map([ [ "industrial", $a([ "1111313111", "3111111131", "1131111131", "3131111111", "1111311131", "3111311111", "1131311111", "1111113131", "3111113111", "1131113111", "313111", "31113" ]) ], [ "iata", $a([ "1111313111", "3111111131", "1131111131", "3131111111", "1111311131", "3111311111", "1131311111", "1111113131", "3111113111", "1131113111", "1111", "311" ]) ], [ "matrix", $a([ "113311", "311131", "131131", "331111", "113131", "313111", "133111", "111331", "311311", "131311", "311111", "31111" ]) ], [ "coop", $a([ "331111", "111331", "113131", "113311", "131131", "131311", "133111", "311131", "311311", "313111", "3131", "133" ]) ], [ "datalogic", $a([ "113311", "311131", "131131", "331111", "113131", "313111", "133111", "111331", "311311", "131311", "1111", "311" ]) ] ]); - $1.versions = _h; - var _k = $get($1.versions, $1.version) !== undefined; - if (!_k) { - $k[$j++] = "bwipp.code2of5badVersion"; - $k[$j++] = "Unrecognised Code 25 version"; - $0.raiseerror(); - } - $1.encs = $get($1.versions, $1.version); - $1.cs = $get($1.encs, 0).length; - $k[$j++] = "cw"; - $k[$j++] = 0; - $forall($get($1.encs, 0), function() { - var _s = $k[--$j]; - var _t = $k[--$j]; - $k[$j++] = $f(_t + $f(_s - 48)); - }); - var _u = $k[--$j]; - $1[$k[--$j]] = _u; - $1.ss = $get($1.encs, 10).length; - $k[$j++] = "sw"; - $k[$j++] = 0; - $forall($get($1.encs, 10), function() { - var _10 = $k[--$j]; - var _11 = $k[--$j]; - $k[$j++] = $f(_11 + $f(_10 - 48)); - }); - var _12 = $k[--$j]; - $1[$k[--$j]] = _12; - $1.es = $get($1.encs, 11).length; - $1.barchars = "0123456789"; - $k[$j++] = "sbs"; - $k[$j++] = $1.barlen; - if ($1.includecheck) { - var _18 = $k[--$j]; - $k[$j++] = $f(_18 + 1); - } - var _1D = $s($f($f($k[--$j] * $1.cs + $1.ss) + $1.es)); - $1[$k[--$j]] = _1D; - $k[$j++] = "txt"; - $k[$j++] = $1.barlen; - if ($1.includecheck) { - var _1H = $k[--$j]; - $k[$j++] = $f(_1H + 1); - } - var _1J = $a($k[--$j]); - $1[$k[--$j]] = _1J; - $puti($1.sbs, 0, $get($1.encs, 10)); - for (var _1Q = 0, _1P = $f($1.barlen - 1); _1Q <= _1P; _1Q += 1) { - $1.i = _1Q; - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $1.i * $1.cs + $1.ss, $1.enc); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $f($1.i * $1.cw + $1.sw), $1.textyoffset, $1.textfont, $1.textsize ])); - } - if ($1.includecheck) { - $puti($1.sbs, $f($1.barlen * $1.cs + $1.ss), $get($1.encs, $1.checksum)); - $puti($1.sbs, $f($f($1.barlen * $1.cs + $1.cs) + $1.ss), $get($1.encs, 11)); - if ($1.includecheckintext) { - $put($1.txt, $1.barlen, $a([ $geti($1.barchars, $1.checksum, 1), $f($1.barlen * $1.cw + $1.sw), $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $1.barlen, $a([ " ", $f($1.barlen * $1.cw + $1.sw), $1.textyoffset, $1.textfont, $1.textsize ])); - } - } else { - $puti($1.sbs, $f($1.barlen * $1.cs + $1.ss), $get($1.encs, 11)); - } - $k[$j++] = Infinity; - $k[$j++] = Infinity; - $forall($1.sbs, function() { - var _2Y = $k[--$j]; - $k[$j++] = $f(_2Y - 48); - }); - var _2Z = $a(); - $k[$j++] = Infinity; - for (var _2b = 0, _2c = ~~(($1.sbs.length + 1) / 2); _2b < _2c; _2b++) { - $k[$j++] = $1.height; - } - var _2e = $a(); - $k[$j++] = Infinity; - for (var _2g = 0, _2h = ~~(($1.sbs.length + 1) / 2); _2g < _2h; _2g++) { - $k[$j++] = 0; - } - var _2i = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _2Z; - $k[$j++] = "bhs"; - $k[$j++] = _2e; - $k[$j++] = "bbs"; - $k[$j++] = _2i; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _2m = $d(); - $k[$j++] = _2m; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#8938 + $1.options = $k[--$j]; //#8940 + $1.barcode = $k[--$j]; //#8941 + $1.dontdraw = false; //#8943 + $1.includecheck = false; //#8944 + $1.validatecheck = false; //#8945 + $1.includetext = false; //#8946 + $1.includecheckintext = false; //#8947 + $1.textfont = "OCR-B"; //#8948 + $1.textsize = 10; //#8949 + $1.textyoffset = -8; //#8950 + $1.height = 1; //#8951 + $1.version = "industrial"; //#8952 + $forall($1.options, function() { //#8963 + var _3 = $k[--$j]; //#8963 + $1[$k[--$j]] = _3; //#8963 + }); //#8963 + $1.textfont = "" + $1.textfont; //#8965 + $1.textsize = +$1.textsize; //#8966 + $1.textyoffset = +$1.textyoffset; //#8967 + $1.height = +$1.height; //#8968 + $forall($1.barcode, function() { //#8975 + var _A = $k[--$j]; //#8972 + if ((_A < 48) || (_A > 57)) { //#8974 + $k[$j++] = 'bwipp.code2of5badCharacter'; //#8973 + $k[$j++] = "Code 25 must contain only digits"; //#8973 + $0.raiseerror(); //#8973 + } //#8973 + }); //#8973 + $k[$j++] = 'barlen'; //#8977 + $k[$j++] = $1.barcode.length; //#8977 + if ($1.validatecheck) { //#8977 + var _D = $k[--$j]; //#8977 + $k[$j++] = $f(_D - 1); //#8977 + } //#8977 + var _E = $k[--$j]; //#8977 + $1[$k[--$j]] = _E; //#8977 + $1.checksum = 0; //#8979 + for (var _I = 0, _H = $f($1.barlen - 1); _I <= _H; _I += 1) { //#8983 + $1.i = _I; //#8981 + $k[$j++] = 'checksum'; //#8982 + $k[$j++] = $1.checksum; //#8982 + $k[$j++] = $f($get($1.barcode, $1.i) - 48); //#8982 + if (($f($1.barlen - $1.i) % 2) != 0) { //#8982 + var _P = $k[--$j]; //#8982 + $k[$j++] = _P * 3; //#8982 + } //#8982 + var _Q = $k[--$j]; //#8982 + var _R = $k[--$j]; //#8982 + $1[$k[--$j]] = $f(_R + _Q); //#8982 + } //#8982 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#8984 + if ($1.validatecheck) { //#8991 + if ($get($1.barcode, $1.barlen) != ($1.checksum + 48)) { //#8988 + $k[$j++] = 'bwipp.code2of5badCheckDigit'; //#8987 + $k[$j++] = "Incorrect Code 25 check digit provided"; //#8987 + $0.raiseerror(); //#8987 + } //#8987 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#8989 + $1.includecheck = true; //#8990 + } //#8990 + var _h = new Map([ + ["industrial", $a(["1111313111", "3111111131", "1131111131", "3131111111", "1111311131", "3111311111", "1131311111", "1111113131", "3111113111", "1131113111", "313111", "31113"])], + ["iata", $a(["1111313111", "3111111131", "1131111131", "3131111111", "1111311131", "3111311111", "1131311111", "1111113131", "3111113111", "1131113111", "1111", "311"])], + ["matrix", $a(["113311", "311131", "131131", "331111", "113131", "313111", "133111", "111331", "311311", "131311", "311111", "31111"])], + ["coop", $a(["331111", "111331", "113131", "113311", "131131", "131311", "133111", "311131", "311311", "313111", "3131", "133"])], + ["datalogic", $a(["113311", "311131", "131131", "331111", "113131", "313111", "133111", "111331", "311311", "131311", "1111", "311"])] + ]); //#9015 + $1.versions = _h; //#9017 + var _k = $get($1.versions, $1.version) !== undefined; //#9018 + if (!_k) { //#9020 + $k[$j++] = 'bwipp.code2of5badVersion'; //#9019 + $k[$j++] = "Unrecognised Code 25 version"; //#9019 + $0.raiseerror(); //#9019 + } //#9019 + $1.encs = $get($1.versions, $1.version); //#9021 + $1.cs = $get($1.encs, 0).length; //#9023 + $k[$j++] = 'cw'; //#9024 + $k[$j++] = 0; //#9024 + $forall($get($1.encs, 0), function() { //#9024 + var _s = $k[--$j]; //#9024 + var _t = $k[--$j]; //#9024 + $k[$j++] = $f(_t + $f(_s - 48)); //#9024 + }); //#9024 + var _u = $k[--$j]; //#9024 + $1[$k[--$j]] = _u; //#9024 + $1.ss = $get($1.encs, 10).length; //#9025 + $k[$j++] = 'sw'; //#9026 + $k[$j++] = 0; //#9026 + $forall($get($1.encs, 10), function() { //#9026 + var _10 = $k[--$j]; //#9026 + var _11 = $k[--$j]; //#9026 + $k[$j++] = $f(_11 + $f(_10 - 48)); //#9026 + }); //#9026 + var _12 = $k[--$j]; //#9026 + $1[$k[--$j]] = _12; //#9026 + $1.es = $get($1.encs, 11).length; //#9027 + $1.barchars = "0123456789"; //#9030 + $k[$j++] = 'sbs'; //#9032 + $k[$j++] = $1.barlen; //#9032 + if ($1.includecheck) { //#9032 + var _18 = $k[--$j]; //#9032 + $k[$j++] = $f(_18 + 1); //#9032 + } //#9032 + var _1D = $s($f(($f(($k[--$j] * $1.cs) + $1.ss)) + $1.es)); //#9032 + $1[$k[--$j]] = _1D; //#9032 + $k[$j++] = 'txt'; //#9033 + $k[$j++] = $1.barlen; //#9033 + if ($1.includecheck) { //#9033 + var _1H = $k[--$j]; //#9033 + $k[$j++] = $f(_1H + 1); //#9033 + } //#9033 + var _1J = $a($k[--$j]); //#9033 + $1[$k[--$j]] = _1J; //#9033 + $puti($1.sbs, 0, $get($1.encs, 10)); //#9036 + for (var _1Q = 0, _1P = $f($1.barlen - 1); _1Q <= _1P; _1Q += 1) { //#9047 + $1.i = _1Q; //#9038 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#9040 + $j--; //#9041 + $1.indx = $k[--$j].length; //#9042 + $j -= 2; //#9043 + $1.enc = $get($1.encs, $1.indx); //#9044 + $puti($1.sbs, ($1.i * $1.cs) + $1.ss, $1.enc); //#9045 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $f(($1.i * $1.cw) + $1.sw), $1.textyoffset, $1.textfont, $1.textsize])); //#9046 + } //#9046 + if ($1.includecheck) { //#9059 + $puti($1.sbs, $f(($1.barlen * $1.cs) + $1.ss), $get($1.encs, $1.checksum)); //#9051 + $puti($1.sbs, $f(($f(($1.barlen * $1.cs) + $1.cs)) + $1.ss), $get($1.encs, 11)); //#9052 + if ($1.includecheckintext) { //#9056 + $put($1.txt, $1.barlen, $a([$geti($1.barchars, $1.checksum, 1), $f(($1.barlen * $1.cw) + $1.sw), $1.textyoffset, $1.textfont, $1.textsize])); //#9054 + } else { //#9056 + $put($1.txt, $1.barlen, $a([" ", $f(($1.barlen * $1.cw) + $1.sw), $1.textyoffset, $1.textfont, $1.textsize])); //#9056 + } //#9056 + } else { //#9059 + $puti($1.sbs, $f(($1.barlen * $1.cs) + $1.ss), $get($1.encs, 11)); //#9059 + } //#9059 + $k[$j++] = Infinity; //#9071 + $k[$j++] = Infinity; //#9065 + $forall($1.sbs, function() { //#9065 + var _2Y = $k[--$j]; //#9065 + $k[$j++] = $f(_2Y - 48); //#9065 + }); //#9065 + var _2Z = $a(); //#9065 + $k[$j++] = Infinity; //#9066 + for (var _2b = 0, _2c = ~~(($1.sbs.length + 1) / 2); _2b < _2c; _2b++) { //#9066 + $k[$j++] = $1.height; //#9066 + } //#9066 + var _2e = $a(); //#9066 + $k[$j++] = Infinity; //#9067 + for (var _2g = 0, _2h = ~~(($1.sbs.length + 1) / 2); _2g < _2h; _2g++) { //#9067 + $k[$j++] = 0; //#9067 + } //#9067 + var _2i = $a(); //#9067 + $k[$j++] = 'ren'; //#9070 + $k[$j++] = $0.renlinear; //#9070 + $k[$j++] = 'sbs'; //#9070 + $k[$j++] = _2Z; //#9070 + $k[$j++] = 'bhs'; //#9070 + $k[$j++] = _2e; //#9070 + $k[$j++] = 'bbs'; //#9070 + $k[$j++] = _2i; //#9070 + if ($1.includetext) { //#9070 + $k[$j++] = 'txt'; //#9069 + $k[$j++] = $1.txt; //#9069 + } //#9069 + $k[$j++] = 'opt'; //#9071 + $k[$j++] = $1.options; //#9071 + var _2m = $d(); //#9071 + $k[$j++] = _2m; //#9074 + if (!$1.dontdraw) { //#9074 + $0.renlinear(); //#9074 + } //#9074 }; $0.industrial2of5 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $put($1.options, "dontdraw", true); - $put($1.options, "version", "industrial"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.code2of5(); - var _E = $k[--$j]; - $1[$k[--$j]] = _E; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#9104 + $1.options = $k[--$j]; //#9106 + $1.barcode = $k[--$j]; //#9107 + $1.dontdraw = false; //#9109 + $1.includetext = false; //#9110 + $1.textfont = "OCR-B"; //#9111 + $1.textsize = 10; //#9112 + $1.textxoffset = 0; //#9113 + $1.textyoffset = -8; //#9114 + $1.height = 1; //#9115 + $forall($1.options, function() { //#9126 + var _3 = $k[--$j]; //#9126 + $1[$k[--$j]] = _3; //#9126 + }); //#9126 + $1.textfont = "" + $1.textfont; //#9128 + $1.textsize = +$1.textsize; //#9129 + $1.textxoffset = +$1.textxoffset; //#9130 + $1.textyoffset = +$1.textyoffset; //#9131 + $1.height = +$1.height; //#9132 + $put($1.options, "dontdraw", true); //#9135 + $put($1.options, "version", "industrial"); //#9136 + $k[$j++] = 'args'; //#9138 + $k[$j++] = $1.barcode; //#9138 + $k[$j++] = $1.options; //#9138 + $0.code2of5(); //#9138 + var _E = $k[--$j]; //#9138 + $1[$k[--$j]] = _E; //#9138 + $put($1.args, "opt", $1.options); //#9140 + $k[$j++] = $1.args; //#9143 + if (!$1.dontdraw) { //#9143 + $0.renlinear(); //#9143 + } //#9143 }; $0.iata2of5 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $put($1.options, "dontdraw", true); - $put($1.options, "version", "iata"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.code2of5(); - var _E = $k[--$j]; - $1[$k[--$j]] = _E; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#9173 + $1.options = $k[--$j]; //#9175 + $1.barcode = $k[--$j]; //#9176 + $1.dontdraw = false; //#9178 + $1.includetext = false; //#9179 + $1.textfont = "OCR-B"; //#9180 + $1.textsize = 10; //#9181 + $1.textxoffset = 0; //#9182 + $1.textyoffset = -8; //#9183 + $1.height = 1; //#9184 + $forall($1.options, function() { //#9195 + var _3 = $k[--$j]; //#9195 + $1[$k[--$j]] = _3; //#9195 + }); //#9195 + $1.textfont = "" + $1.textfont; //#9197 + $1.textsize = +$1.textsize; //#9198 + $1.textxoffset = +$1.textxoffset; //#9199 + $1.textyoffset = +$1.textyoffset; //#9200 + $1.height = +$1.height; //#9201 + $put($1.options, "dontdraw", true); //#9204 + $put($1.options, "version", "iata"); //#9205 + $k[$j++] = 'args'; //#9207 + $k[$j++] = $1.barcode; //#9207 + $k[$j++] = $1.options; //#9207 + $0.code2of5(); //#9207 + var _E = $k[--$j]; //#9207 + $1[$k[--$j]] = _E; //#9207 + $put($1.args, "opt", $1.options); //#9209 + $k[$j++] = $1.args; //#9212 + if (!$1.dontdraw) { //#9212 + $0.renlinear(); //#9212 + } //#9212 }; $0.matrix2of5 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $put($1.options, "dontdraw", true); - $put($1.options, "version", "matrix"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.code2of5(); - var _E = $k[--$j]; - $1[$k[--$j]] = _E; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#9242 + $1.options = $k[--$j]; //#9244 + $1.barcode = $k[--$j]; //#9245 + $1.dontdraw = false; //#9247 + $1.includetext = false; //#9248 + $1.textfont = "OCR-B"; //#9249 + $1.textsize = 10; //#9250 + $1.textxoffset = 0; //#9251 + $1.textyoffset = -8; //#9252 + $1.height = 1; //#9253 + $forall($1.options, function() { //#9264 + var _3 = $k[--$j]; //#9264 + $1[$k[--$j]] = _3; //#9264 + }); //#9264 + $1.textfont = "" + $1.textfont; //#9266 + $1.textsize = +$1.textsize; //#9267 + $1.textxoffset = +$1.textxoffset; //#9268 + $1.textyoffset = +$1.textyoffset; //#9269 + $1.height = +$1.height; //#9270 + $put($1.options, "dontdraw", true); //#9273 + $put($1.options, "version", "matrix"); //#9274 + $k[$j++] = 'args'; //#9276 + $k[$j++] = $1.barcode; //#9276 + $k[$j++] = $1.options; //#9276 + $0.code2of5(); //#9276 + var _E = $k[--$j]; //#9276 + $1[$k[--$j]] = _E; //#9276 + $put($1.args, "opt", $1.options); //#9278 + $k[$j++] = $1.args; //#9281 + if (!$1.dontdraw) { //#9281 + $0.renlinear(); //#9281 + } //#9281 }; $0.coop2of5 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $put($1.options, "dontdraw", true); - $put($1.options, "version", "coop"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.code2of5(); - var _E = $k[--$j]; - $1[$k[--$j]] = _E; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#9311 + $1.options = $k[--$j]; //#9313 + $1.barcode = $k[--$j]; //#9314 + $1.dontdraw = false; //#9316 + $1.includetext = false; //#9317 + $1.textfont = "OCR-B"; //#9318 + $1.textsize = 10; //#9319 + $1.textxoffset = 0; //#9320 + $1.textyoffset = -8; //#9321 + $1.height = 1; //#9322 + $forall($1.options, function() { //#9333 + var _3 = $k[--$j]; //#9333 + $1[$k[--$j]] = _3; //#9333 + }); //#9333 + $1.textfont = "" + $1.textfont; //#9335 + $1.textsize = +$1.textsize; //#9336 + $1.textxoffset = +$1.textxoffset; //#9337 + $1.textyoffset = +$1.textyoffset; //#9338 + $1.height = +$1.height; //#9339 + $put($1.options, "dontdraw", true); //#9342 + $put($1.options, "version", "coop"); //#9343 + $k[$j++] = 'args'; //#9345 + $k[$j++] = $1.barcode; //#9345 + $k[$j++] = $1.options; //#9345 + $0.code2of5(); //#9345 + var _E = $k[--$j]; //#9345 + $1[$k[--$j]] = _E; //#9345 + $put($1.args, "opt", $1.options); //#9347 + $k[$j++] = $1.args; //#9350 + if (!$1.dontdraw) { //#9350 + $0.renlinear(); //#9350 + } //#9350 }; $0.datalogic2of5 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $put($1.options, "dontdraw", true); - $put($1.options, "version", "datalogic"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.code2of5(); - var _E = $k[--$j]; - $1[$k[--$j]] = _E; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#9380 + $1.options = $k[--$j]; //#9382 + $1.barcode = $k[--$j]; //#9383 + $1.dontdraw = false; //#9385 + $1.includetext = false; //#9386 + $1.textfont = "OCR-B"; //#9387 + $1.textsize = 10; //#9388 + $1.textxoffset = 0; //#9389 + $1.textyoffset = -8; //#9390 + $1.height = 1; //#9391 + $forall($1.options, function() { //#9402 + var _3 = $k[--$j]; //#9402 + $1[$k[--$j]] = _3; //#9402 + }); //#9402 + $1.textfont = "" + $1.textfont; //#9404 + $1.textsize = +$1.textsize; //#9405 + $1.textxoffset = +$1.textxoffset; //#9406 + $1.textyoffset = +$1.textyoffset; //#9407 + $1.height = +$1.height; //#9408 + $put($1.options, "dontdraw", true); //#9411 + $put($1.options, "version", "datalogic"); //#9412 + $k[$j++] = 'args'; //#9414 + $k[$j++] = $1.barcode; //#9414 + $k[$j++] = $1.options; //#9414 + $0.code2of5(); //#9414 + var _E = $k[--$j]; //#9414 + $1[$k[--$j]] = _E; //#9414 + $put($1.args, "opt", $1.options); //#9416 + $k[$j++] = $1.args; //#9419 + if (!$1.dontdraw) { //#9419 + $0.renlinear(); //#9419 + } //#9419 }; $0.code11 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includecheck = false; - $1.validatecheck = false; - $1.includetext = false; - $1.includecheckintext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.encs = $a([ "111131", "311131", "131131", "331111", "113131", "313111", "133111", "111331", "311311", "311111", "113111", "113311" ]); - $1.barchars = "0123456789-"; - $1.charvals = new Map(); - for (var _A = 0; _A <= 10; _A += 1) { - $put($1.charvals, $geti($1.barchars, _A, 1), _A); - } - for (var _G = 0, _F = $1.barcode.length - 1; _G <= _F; _G += 1) { - var _K = $get($1.charvals, $geti($1.barcode, _G, 1)) !== undefined; - if (!_K) { - $k[$j++] = "bwipp.code11badCharacter"; - $k[$j++] = "Code 11 must contain only digits and dashes"; - $0.raiseerror(); - } - } - $1.barlen = $1.barcode.length; - if ($1.validatecheck) { - if ($1.barlen == 11) { - $k[$j++] = "bwipp.code11badLength"; - $k[$j++] = "Code 11 cannot be 11 characters using check digits"; - $0.raiseerror(); - } - var _Q = $1.barlen <= 10 ? 1 : 2; - $1.barlen = $1.barlen - _Q; - } - $k[$j++] = "numchecks"; - if ($1.includecheck || $1.validatecheck) { - var _U = $1.barlen >= 10 ? 2 : 1; - $k[$j++] = _U; - } else { - $k[$j++] = 0; - } - var _V = $k[--$j]; - $1[$k[--$j]] = _V; - $1.checksum1 = 0; - $1.checksum2 = 0; - for (var _Z = 0, _Y = $1.barlen - 1; _Z <= _Y; _Z += 1) { - $1.i = _Z; - $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); - $1.checksum1 = $f($1.checksum1 + (($1.barlen - $1.i - 1) % 10 + 1) * $1.indx); - $1.checksum2 = $f($1.checksum2 + (($1.barlen - $1.i) % 9 + 1) * $1.indx); - } - $1.checksum1 = $1.checksum1 % 11; - $1.checksum2 = $f($1.checksum2 + $1.checksum1) % 11; - if ($1.validatecheck) { - if ($1.numchecks == 1) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum1)) { - $k[$j++] = "bwipp.code11badCheckDigit"; - $k[$j++] = "Incorrect Code 11 check digit provided"; - $0.raiseerror(); - } - } else { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum1) || $get($1.barcode, $1.barlen + 1) != $get($1.barchars, $1.checksum2)) { - $k[$j++] = "bwipp.code11badCheckDigits"; - $k[$j++] = "Incorrect Code 11 check digits provided"; - $0.raiseerror(); - } - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - $1.includecheck = true; - } - $1.sbs = $s($f($f($1.barlen + $1.numchecks) * 6 + 12)); - $1.txt = $a($f($1.barlen + $1.numchecks)); - $puti($1.sbs, 0, $get($1.encs, 11)); - $1.xpos = 8; - for (var _1O = 0, _1N = $1.barlen - 1; _1O <= _1N; _1O += 1) { - $1.i = _1O; - $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $1.i * 6 + 6, $1.enc); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize ])); - for (var _1k = 0; _1k <= 5; _1k += 1) { - $1.xpos = $f($f($get($1.enc, _1k) - 48) + $1.xpos); - } - } - if ($1.includecheck) { - if ($1.barlen >= 10) { - $puti($1.sbs, $1.barlen * 6 + 6, $get($1.encs, $1.checksum1)); - $puti($1.sbs, $1.barlen * 6 + 12, $get($1.encs, $1.checksum2)); - if ($1.includecheckintext) { - $put($1.txt, $1.barlen, $a([ $geti($1.barchars, $1.checksum1, 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize ])); - $1.enc = $get($1.encs, $1.checksum1); - for (var _2E = 0; _2E <= 5; _2E += 1) { - $1.xpos = $f($f($get($1.enc, _2E) - 48) + $1.xpos); - } - $put($1.txt, $1.barlen + 1, $a([ $geti($1.barchars, $1.checksum2, 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $1.barlen, $a([ "", $1.xpos, $1.textyoffset, $1.textfont, $1.textsize ])); - $put($1.txt, $1.barlen + 1, $a([ "", $1.xpos, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $puti($1.sbs, $1.barlen * 6 + 18, $get($1.encs, 11)); - } else { - $puti($1.sbs, $1.barlen * 6 + 6, $get($1.encs, $1.checksum1)); - if ($1.includecheckintext) { - $put($1.txt, $1.barlen, $a([ $geti($1.barchars, $1.checksum1, 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $1.barlen, $a([ "", $1.xpos, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $puti($1.sbs, $1.barlen * 6 + 12, $get($1.encs, 11)); - } - } else { - $puti($1.sbs, $1.barlen * 6 + 6, $get($1.encs, 11)); - } - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _3F = $1.sbs; - for (var _3G = 0, _3H = _3F.length; _3G < _3H; _3G++) { - $k[$j++] = $get(_3F, _3G) - 48; - } - var _3J = $a(); - $k[$j++] = Infinity; - for (var _3L = 0, _3M = ~~(($1.sbs.length + 1) / 2); _3L < _3M; _3L++) { - $k[$j++] = $1.height; - } - var _3O = $a(); - $k[$j++] = Infinity; - for (var _3Q = 0, _3R = ~~(($1.sbs.length + 1) / 2); _3Q < _3R; _3Q++) { - $k[$j++] = 0; - } - var _3S = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _3J; - $k[$j++] = "bhs"; - $k[$j++] = _3O; - $k[$j++] = "bbs"; - $k[$j++] = _3S; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _3W = $d(); - $k[$j++] = _3W; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#9448 + $1.options = $k[--$j]; //#9450 + $1.barcode = $k[--$j]; //#9451 + $1.dontdraw = false; //#9453 + $1.includecheck = false; //#9454 + $1.validatecheck = false; //#9455 + $1.includetext = false; //#9456 + $1.includecheckintext = false; //#9457 + $1.textfont = "OCR-B"; //#9458 + $1.textsize = 10; //#9459 + $1.textyoffset = -8; //#9460 + $1.height = 1; //#9461 + $forall($1.options, function() { //#9472 + var _3 = $k[--$j]; //#9472 + $1[$k[--$j]] = _3; //#9472 + }); //#9472 + $1.textfont = "" + $1.textfont; //#9474 + $1.textsize = +$1.textsize; //#9475 + $1.textyoffset = +$1.textyoffset; //#9476 + $1.height = +$1.height; //#9477 + $1.encs = $a(["111131", "311131", "131131", "331111", "113131", "313111", "133111", "111331", "311311", "311111", "113111", "113311"]); //#9484 + $1.barchars = "0123456789-"; //#9487 + $1.charvals = new Map; //#9488 + for (var _A = 0; _A <= 10; _A += 1) { //#9489 + $put($1.charvals, $geti($1.barchars, _A, 1), _A); //#9489 + } //#9489 + for (var _G = 0, _F = $1.barcode.length - 1; _G <= _F; _G += 1) { //#9496 + var _K = $get($1.charvals, $geti($1.barcode, _G, 1)) !== undefined; //#9493 + if (!_K) { //#9495 + $k[$j++] = 'bwipp.code11badCharacter'; //#9494 + $k[$j++] = "Code 11 must contain only digits and dashes"; //#9494 + $0.raiseerror(); //#9494 + } //#9494 + } //#9494 + $1.barlen = $1.barcode.length; //#9498 + if ($1.validatecheck) { //#9504 + if ($1.barlen == 11) { //#9502 + $k[$j++] = 'bwipp.code11badLength'; //#9501 + $k[$j++] = "Code 11 cannot be 11 characters using check digits"; //#9501 + $0.raiseerror(); //#9501 + } //#9501 + var _Q = ($1.barlen <= 10) ? 1 : 2; //#9503 + $1.barlen = $1.barlen - _Q; //#9503 + } //#9503 + $k[$j++] = 'numchecks'; //#9506 + if ($1.includecheck || $1.validatecheck) { //#9506 + var _U = ($1.barlen >= 10) ? 2 : 1; //#9506 + $k[$j++] = _U; //#9506 + } else { //#9506 + $k[$j++] = 0; //#9506 + } //#9506 + var _V = $k[--$j]; //#9506 + $1[$k[--$j]] = _V; //#9506 + $1.checksum1 = 0; //#9507 + $1.checksum2 = 0; //#9507 + for (var _Z = 0, _Y = $1.barlen - 1; _Z <= _Y; _Z += 1) { //#9513 + $1.i = _Z; //#9509 + $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); //#9510 + $1.checksum1 = $f($1.checksum1 + ((((($1.barlen - $1.i) - 1) % 10) + 1) * $1.indx)); //#9511 + $1.checksum2 = $f($1.checksum2 + (((($1.barlen - $1.i) % 9) + 1) * $1.indx)); //#9512 + } //#9512 + $1.checksum1 = $1.checksum1 % 11; //#9514 + $1.checksum2 = $f($1.checksum2 + $1.checksum1) % 11; //#9515 + if ($1.validatecheck) { //#9529 + if ($1.numchecks == 1) { //#9524 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum1)) { //#9520 + $k[$j++] = 'bwipp.code11badCheckDigit'; //#9519 + $k[$j++] = "Incorrect Code 11 check digit provided"; //#9519 + $0.raiseerror(); //#9519 + } //#9519 + } else { //#9524 + if (($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum1)) || ($get($1.barcode, $1.barlen + 1) != $get($1.barchars, $1.checksum2))) { //#9525 + $k[$j++] = 'bwipp.code11badCheckDigits'; //#9524 + $k[$j++] = "Incorrect Code 11 check digits provided"; //#9524 + $0.raiseerror(); //#9524 + } //#9524 + } //#9524 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#9527 + $1.includecheck = true; //#9528 + } //#9528 + $1.sbs = $s($f(($f($1.barlen + $1.numchecks) * 6) + 12)); //#9531 + $1.txt = $a($f($1.barlen + $1.numchecks)); //#9532 + $puti($1.sbs, 0, $get($1.encs, 11)); //#9535 + $1.xpos = 8; //#9537 + for (var _1O = 0, _1N = $1.barlen - 1; _1O <= _1N; _1O += 1) { //#9547 + $1.i = _1O; //#9539 + $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); //#9540 + $1.enc = $get($1.encs, $1.indx); //#9541 + $puti($1.sbs, ($1.i * 6) + 6, $1.enc); //#9542 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9543 + for (var _1k = 0; _1k <= 5; _1k += 1) { //#9546 + $1.xpos = $f($f($get($1.enc, _1k) - 48) + $1.xpos); //#9545 + } //#9545 + } //#9545 + if ($1.includecheck) { //#9576 + if ($1.barlen >= 10) { //#9573 + $puti($1.sbs, ($1.barlen * 6) + 6, $get($1.encs, $1.checksum1)); //#9552 + $puti($1.sbs, ($1.barlen * 6) + 12, $get($1.encs, $1.checksum2)); //#9553 + if ($1.includecheckintext) { //#9563 + $put($1.txt, $1.barlen, $a([$geti($1.barchars, $1.checksum1, 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9555 + $1.enc = $get($1.encs, $1.checksum1); //#9556 + for (var _2E = 0; _2E <= 5; _2E += 1) { //#9559 + $1.xpos = $f($f($get($1.enc, _2E) - 48) + $1.xpos); //#9558 + } //#9558 + $put($1.txt, $1.barlen + 1, $a([$geti($1.barchars, $1.checksum2, 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9560 + } else { //#9563 + $put($1.txt, $1.barlen, $a(["", $1.xpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9562 + $put($1.txt, $1.barlen + 1, $a(["", $1.xpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9563 + } //#9563 + $puti($1.sbs, ($1.barlen * 6) + 18, $get($1.encs, 11)); //#9565 + } else { //#9573 + $puti($1.sbs, ($1.barlen * 6) + 6, $get($1.encs, $1.checksum1)); //#9567 + if ($1.includecheckintext) { //#9571 + $put($1.txt, $1.barlen, $a([$geti($1.barchars, $1.checksum1, 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9569 + } else { //#9571 + $put($1.txt, $1.barlen, $a(["", $1.xpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9571 + } //#9571 + $puti($1.sbs, ($1.barlen * 6) + 12, $get($1.encs, 11)); //#9573 + } //#9573 + } else { //#9576 + $puti($1.sbs, ($1.barlen * 6) + 6, $get($1.encs, 11)); //#9576 + } //#9576 + $k[$j++] = Infinity; //#9588 + $k[$j++] = Infinity; //#9582 + var _3F = $1.sbs; //#9582 + for (var _3G = 0, _3H = _3F.length; _3G < _3H; _3G++) { //#9582 + $k[$j++] = $get(_3F, _3G) - 48; //#9582 + } //#9582 + var _3J = $a(); //#9582 + $k[$j++] = Infinity; //#9583 + for (var _3L = 0, _3M = ~~(($1.sbs.length + 1) / 2); _3L < _3M; _3L++) { //#9583 + $k[$j++] = $1.height; //#9583 + } //#9583 + var _3O = $a(); //#9583 + $k[$j++] = Infinity; //#9584 + for (var _3Q = 0, _3R = ~~(($1.sbs.length + 1) / 2); _3Q < _3R; _3Q++) { //#9584 + $k[$j++] = 0; //#9584 + } //#9584 + var _3S = $a(); //#9584 + $k[$j++] = 'ren'; //#9587 + $k[$j++] = $0.renlinear; //#9587 + $k[$j++] = 'sbs'; //#9587 + $k[$j++] = _3J; //#9587 + $k[$j++] = 'bhs'; //#9587 + $k[$j++] = _3O; //#9587 + $k[$j++] = 'bbs'; //#9587 + $k[$j++] = _3S; //#9587 + if ($1.includetext) { //#9587 + $k[$j++] = 'txt'; //#9586 + $k[$j++] = $1.txt; //#9586 + } //#9586 + $k[$j++] = 'opt'; //#9588 + $k[$j++] = $1.options; //#9588 + var _3W = $d(); //#9588 + $k[$j++] = _3W; //#9591 + if (!$1.dontdraw) { //#9591 + $0.renlinear(); //#9591 + } //#9591 }; $0.bc412 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includecheck = false; - $1.validatecheck = false; - $1.includetext = false; - $1.includecheckintext = false; - $1.includestartstop = false; - $1.semi = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - if ($1.semi) { - $1.includecheck = true; - $1.includestartstop = true; - } - $1.barchars = "0R9GLVHA8EZ4NTS1J2Q6C7DYKBUIX3FWP5M"; - $1.charvals = new Map(); - for (var _A = 0; _A <= 34; _A += 1) { - $put($1.charvals, $geti($1.barchars, _A, 1), _A); - } - for (var _G = 0, _F = $1.barcode.length - 1; _G <= _F; _G += 1) { - var _K = $get($1.charvals, $geti($1.barcode, _G, 1)) !== undefined; - if (!_K) { - $k[$j++] = "bwipp.bc412badCharacter"; - $k[$j++] = "BC412 must contain only digits and capital letters except O"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _N = $k[--$j]; - $k[$j++] = $f(_N - 1); - } - var _O = $k[--$j]; - $1[$k[--$j]] = _O; - $1.checksum = 0; - for (var _S = 0, _R = $f($1.barlen - 1); _S <= _R; _S += 1) { - $1.checksum = $f($get($1.charvals, $geti($1.barcode, _S, 1)) + $1.checksum); - } - $1.checksum = $1.checksum % 35; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.bc412badCheckDigit"; - $k[$j++] = "Incorrect BC412 check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - $1.includecheck = true; - } - $1.encs = $a([ "11111115", "13111212", "11131113", "12111213", "12121311", "13131111", "12111312", "11131212", "11121411", "11151111", "15111111", "11111511", "12131211", "13121112", "13111212", "11111214", "12121113", "11111313", "13111113", "11121213", "11141112", "11121312", "11141211", "14121111", "12121212", "11131311", "13121211", "12111411", "14111211", "11111412", "12111114", "14111112", "12141111", "11121114", "12131112", "12", "111" ]); - $1.sbs = $s($f($f($1.barlen + 1) * 8 + 5)); - if ($1.includecheck) { - $1.txt = $a($f($1.barlen + 1)); - } else { - $1.txt = $a($1.barlen); - } - if ($1.includestartstop) { - $puti($1.sbs, 0, $get($1.encs, 35)); - $1.pos = 2; - $1.txtpos = 3; - } else { - $1.pos = 0; - $1.txtpos = 0; - } - for (var _x = 0, _w = $f($1.barlen - 1); _x <= _w; _x += 1) { - $1.i = _x; - $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); - $puti($1.sbs, $1.pos, $get($1.encs, $1.indx)); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $1.i * 12 + $1.txtpos, $1.textyoffset, $1.textfont, $1.textsize ])); - $1.pos = $1.pos + 8; - } - if ($1.includecheck) { - $puti($1.sbs, $1.pos, $get($1.encs, $1.checksum)); - if ($1.includecheckintext) { - $put($1.txt, $1.barlen, $a([ $geti($1.barchars, $1.checksum, 1), $f($1.barlen * 12 + $1.txtpos), $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $1.barlen, $a([ "", $f($1.barlen * 12 + $1.txtpos), $1.textyoffset, $1.textfont, $1.textsize ])); - } - $1.pos = $1.pos + 8; - } - if ($1.includestartstop) { - $puti($1.sbs, $1.pos, $get($1.encs, 36)); - $1.pos = $1.pos + 2; - } - $1.sbs = $geti($1.sbs, 0, $1.pos); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _1u = $1.sbs; - for (var _1v = 0, _1w = _1u.length; _1v < _1w; _1v++) { - $k[$j++] = $f($get(_1u, _1v) - 48); - } - var _1y = $a(); - $k[$j++] = Infinity; - for (var _20 = 0, _21 = ~~(($1.sbs.length + 1) / 2); _20 < _21; _20++) { - $k[$j++] = $1.height; - } - var _23 = $a(); - $k[$j++] = Infinity; - for (var _25 = 0, _26 = ~~(($1.sbs.length + 1) / 2); _25 < _26; _25++) { - $k[$j++] = 0; - } - var _27 = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _1y; - $k[$j++] = "bhs"; - $k[$j++] = _23; - $k[$j++] = "bbs"; - $k[$j++] = _27; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _2B = $d(); - $k[$j++] = _2B; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#9620 + $1.options = $k[--$j]; //#9622 + $1.barcode = $k[--$j]; //#9623 + $1.dontdraw = false; //#9625 + $1.includecheck = false; //#9626 + $1.validatecheck = false; //#9627 + $1.includetext = false; //#9628 + $1.includecheckintext = false; //#9629 + $1.includestartstop = false; //#9630 + $1.semi = false; //#9631 + $1.textfont = "OCR-B"; //#9632 + $1.textsize = 10; //#9633 + $1.textyoffset = -8; //#9634 + $1.height = 1; //#9635 + $forall($1.options, function() { //#9646 + var _3 = $k[--$j]; //#9646 + $1[$k[--$j]] = _3; //#9646 + }); //#9646 + $1.textfont = "" + $1.textfont; //#9648 + $1.textsize = +$1.textsize; //#9649 + $1.textyoffset = +$1.textyoffset; //#9650 + $1.height = +$1.height; //#9651 + if ($1.semi) { //#9656 + $1.includecheck = true; //#9654 + $1.includestartstop = true; //#9655 + } //#9655 + $1.barchars = "0R9GLVHA8EZ4NTS1J2Q6C7DYKBUIX3FWP5M"; //#9659 + $1.charvals = new Map; //#9660 + for (var _A = 0; _A <= 34; _A += 1) { //#9661 + $put($1.charvals, $geti($1.barchars, _A, 1), _A); //#9661 + } //#9661 + for (var _G = 0, _F = $1.barcode.length - 1; _G <= _F; _G += 1) { //#9668 + var _K = $get($1.charvals, $geti($1.barcode, _G, 1)) !== undefined; //#9665 + if (!_K) { //#9667 + $k[$j++] = 'bwipp.bc412badCharacter'; //#9666 + $k[$j++] = "BC412 must contain only digits and capital letters except O"; //#9666 + $0.raiseerror(); //#9666 + } //#9666 + } //#9666 + $k[$j++] = 'barlen'; //#9670 + $k[$j++] = $1.barcode.length; //#9670 + if ($1.validatecheck) { //#9670 + var _N = $k[--$j]; //#9670 + $k[$j++] = $f(_N - 1); //#9670 + } //#9670 + var _O = $k[--$j]; //#9670 + $1[$k[--$j]] = _O; //#9670 + $1.checksum = 0; //#9672 + for (var _S = 0, _R = $f($1.barlen - 1); _S <= _R; _S += 1) { //#9676 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, _S, 1)) + $1.checksum); //#9675 + } //#9675 + $1.checksum = $1.checksum % 35; //#9677 + if ($1.validatecheck) { //#9684 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#9681 + $k[$j++] = 'bwipp.bc412badCheckDigit'; //#9680 + $k[$j++] = "Incorrect BC412 check digit provided"; //#9680 + $0.raiseerror(); //#9680 + } //#9680 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#9682 + $1.includecheck = true; //#9683 + } //#9683 + $1.encs = $a(["11111115", "13111212", "11131113", "12111213", "12121311", "13131111", "12111312", "11131212", "11121411", "11151111", "15111111", "11111511", "12131211", "13121112", "13111212", "11111214", "12121113", "11111313", "13111113", "11121213", "11141112", "11121312", "11141211", "14121111", "12121212", "11131311", "13121211", "12111411", "14111211", "11111412", "12111114", "14111112", "12141111", "11121114", "12131112", "12", "111"]); //#9696 + $1.sbs = $s($f(($f($1.barlen + 1) * 8) + 5)); //#9698 + if ($1.includecheck) { //#9702 + $1.txt = $a($f($1.barlen + 1)); //#9700 + } else { //#9702 + $1.txt = $a($1.barlen); //#9702 + } //#9702 + if ($1.includestartstop) { //#9712 + $puti($1.sbs, 0, $get($1.encs, 35)); //#9707 + $1.pos = 2; //#9708 + $1.txtpos = 3; //#9709 + } else { //#9712 + $1.pos = 0; //#9711 + $1.txtpos = 0; //#9712 + } //#9712 + for (var _x = 0, _w = $f($1.barlen - 1); _x <= _w; _x += 1) { //#9721 + $1.i = _x; //#9716 + $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); //#9717 + $puti($1.sbs, $1.pos, $get($1.encs, $1.indx)); //#9718 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), ($1.i * 12) + $1.txtpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9719 + $1.pos = $1.pos + 8; //#9720 + } //#9720 + if ($1.includecheck) { //#9732 + $puti($1.sbs, $1.pos, $get($1.encs, $1.checksum)); //#9725 + if ($1.includecheckintext) { //#9729 + $put($1.txt, $1.barlen, $a([$geti($1.barchars, $1.checksum, 1), $f(($1.barlen * 12) + $1.txtpos), $1.textyoffset, $1.textfont, $1.textsize])); //#9727 + } else { //#9729 + $put($1.txt, $1.barlen, $a(["", $f(($1.barlen * 12) + $1.txtpos), $1.textyoffset, $1.textfont, $1.textsize])); //#9729 + } //#9729 + $1.pos = $1.pos + 8; //#9731 + } //#9731 + if ($1.includestartstop) { //#9738 + $puti($1.sbs, $1.pos, $get($1.encs, 36)); //#9736 + $1.pos = $1.pos + 2; //#9737 + } //#9737 + $1.sbs = $geti($1.sbs, 0, $1.pos); //#9741 + $k[$j++] = Infinity; //#9750 + $k[$j++] = Infinity; //#9744 + var _1u = $1.sbs; //#9744 + for (var _1v = 0, _1w = _1u.length; _1v < _1w; _1v++) { //#9744 + $k[$j++] = $f($get(_1u, _1v) - 48); //#9744 + } //#9744 + var _1y = $a(); //#9744 + $k[$j++] = Infinity; //#9745 + for (var _20 = 0, _21 = ~~(($1.sbs.length + 1) / 2); _20 < _21; _20++) { //#9745 + $k[$j++] = $1.height; //#9745 + } //#9745 + var _23 = $a(); //#9745 + $k[$j++] = Infinity; //#9746 + for (var _25 = 0, _26 = ~~(($1.sbs.length + 1) / 2); _25 < _26; _25++) { //#9746 + $k[$j++] = 0; //#9746 + } //#9746 + var _27 = $a(); //#9746 + $k[$j++] = 'ren'; //#9749 + $k[$j++] = $0.renlinear; //#9749 + $k[$j++] = 'sbs'; //#9749 + $k[$j++] = _1y; //#9749 + $k[$j++] = 'bhs'; //#9749 + $k[$j++] = _23; //#9749 + $k[$j++] = 'bbs'; //#9749 + $k[$j++] = _27; //#9749 + if ($1.includetext) { //#9749 + $k[$j++] = 'txt'; //#9748 + $k[$j++] = $1.txt; //#9748 + } //#9748 + $k[$j++] = 'opt'; //#9750 + $k[$j++] = $1.options; //#9750 + var _2B = $d(); //#9750 + $k[$j++] = _2B; //#9753 + if (!$1.dontdraw) { //#9753 + $0.renlinear(); //#9753 + } //#9753 }; $0.rationalizedCodabar = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.altstartstop = false; - $1.includecheck = false; - $1.validatecheck = false; - $1.includetext = false; - $1.includecheckintext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.encs = $a([ "11111331", "11113311", "11131131", "33111111", "11311311", "31111311", "13111131", "13113111", "13311111", "31131111", "11133111", "11331111", "31113131", "31311131", "31313111", "11313131", "11331311", "13131131", "11131331", "11133311" ]); - if ($1.altstartstop) { - $1.barchars = "0123456789-$:/.+TN*E"; - } else { - $1.barchars = "0123456789-$:/.+ABCD"; - } - $1.charvals = new Map(); - for (var _B = 0; _B <= 19; _B += 1) { - $put($1.charvals, $geti($1.barchars, _B, 1), _B); - } - $1.bodyvals = new Map(); - for (var _F = 0; _F <= 15; _F += 1) { - $put($1.bodyvals, $geti($1.barchars, _F, 1), _F); - } - $1.ssvals = new Map(); - for (var _J = 16; _J <= 19; _J += 1) { - $put($1.ssvals, $geti($1.barchars, _J, 1), _J); - } - var _Q = $get($1.ssvals, $geti($1.barcode, 0, 1)) !== undefined; - var _V = $get($1.ssvals, $geti($1.barcode, $1.barcode.length - 1, 1)) !== undefined; - if (!_Q || !_V) { - if ($1.altstartstop) { - $k[$j++] = "bwipp.rationalizedCodabarBadAltStartStop"; - $k[$j++] = "Codabar start and stop characters must be one of E N T or *"; - $0.raiseerror(); - } else { - $k[$j++] = "bwipp.rationalizedCodabarBadStartStop"; - $k[$j++] = "Codabar start and stop characters must be one of A B C or D"; - $0.raiseerror(); - } - } - for (var _Z = 1, _Y = $1.barcode.length - 2; _Z <= _Y; _Z += 1) { - var _d = $get($1.bodyvals, $geti($1.barcode, _Z, 1)) !== undefined; - if (!_d) { - $k[$j++] = "bwipp.rationalizedCodabarBadCharacter"; - $k[$j++] = "Codabar body must contain only digits and symbols - $ : / . +"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _g = $k[--$j]; - $k[$j++] = $f(_g - 1); - } - var _h = $k[--$j]; - $1[$k[--$j]] = _h; - $1.checksum = 0; - for (var _l = 0, _k = $f($1.barlen - 2); _l <= _k; _l += 1) { - $1.checksum = $f($get($1.charvals, $geti($1.barcode, _l, 1)) + $1.checksum); - } - $1.checksum = $f($get($1.charvals, $geti($1.barcode, $1.barcode.length - 1, 1)) + $1.checksum); - $1.checksum = $f(16 - $1.checksum % 16) % 16; - if ($1.validatecheck) { - if ($get($1.barcode, $f($1.barlen - 1)) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.rationalizedCodabarBadCheckDigit"; - $k[$j++] = "Incorrect Codabar check digit provided"; - $0.raiseerror(); - } - var _16 = $s($1.barlen); - $puti(_16, 0, $geti($1.barcode, 0, $f($1.barlen - 1))); - $puti(_16, $f($1.barlen - 1), $geti($1.barcode, $1.barlen, 1)); - $1.barcode = _16; - $1.includecheck = true; - } - $k[$j++] = "sbs"; - $k[$j++] = $1.barlen; - if ($1.includecheck) { - var _1G = $k[--$j]; - $k[$j++] = $f(_1G + 1); - } - var _1I = $s($k[--$j] * 8); - $1[$k[--$j]] = _1I; - $k[$j++] = "txt"; - $k[$j++] = $1.barlen; - if ($1.includecheck) { - var _1M = $k[--$j]; - $k[$j++] = $f(_1M + 1); - } - var _1O = $a($k[--$j]); - $1[$k[--$j]] = _1O; - $1.xpos = 0; - for (var _1S = 0, _1R = $f($1.barlen - 2); _1S <= _1R; _1S += 1) { - $1.i = _1S; - $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $1.i * 8, $1.enc); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize ])); - for (var _1o = 0; _1o <= 7; _1o += 1) { - $1.xpos = $f($f($get($1.enc, _1o) - 48) + $1.xpos); - } - } - if ($1.includecheck) { - $puti($1.sbs, $f($1.barlen * 8 - 8), $get($1.encs, $1.checksum)); - if ($1.includecheckintext) { - $put($1.txt, $f($1.barlen - 1), $a([ $geti($1.barchars, $1.checksum, 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $f($1.barlen - 1), $a([ " ", $1.xpos, $1.textyoffset, $1.textfont, $1.textsize ])); - } - for (var _2G = 0; _2G <= 7; _2G += 1) { - $1.xpos = $f($f($get($get($1.encs, $1.checksum), _2G) - 48) + $1.xpos); - } - $1.indx = $get($1.charvals, $geti($1.barcode, $f($1.barlen - 1), 1)); - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $1.barlen * 8, $1.enc); - $put($1.txt, $1.barlen, $a([ $geti($1.barcode, $f($1.barlen - 1), 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $1.indx = $get($1.charvals, $geti($1.barcode, $f($1.barlen - 1), 1)); - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $f($1.barlen * 8 - 8), $1.enc); - $put($1.txt, $f($1.barlen - 1), $a([ $geti($1.barcode, $f($1.barlen - 1), 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $k[$j++] = Infinity; - $k[$j++] = Infinity; - $forall($1.sbs, function() { - var _33 = $k[--$j]; - $k[$j++] = $f(_33 - 48); - }); - var _34 = $a(); - $k[$j++] = Infinity; - for (var _36 = 0, _37 = ~~(($1.sbs.length + 1) / 2); _36 < _37; _36++) { - $k[$j++] = $1.height; - } - var _39 = $a(); - $k[$j++] = Infinity; - for (var _3B = 0, _3C = ~~(($1.sbs.length + 1) / 2); _3B < _3C; _3B++) { - $k[$j++] = 0; - } - var _3D = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _34; - $k[$j++] = "bhs"; - $k[$j++] = _39; - $k[$j++] = "bbs"; - $k[$j++] = _3D; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _3H = $d(); - $k[$j++] = _3H; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#9782 + $1.options = $k[--$j]; //#9784 + $1.barcode = $k[--$j]; //#9785 + $1.dontdraw = false; //#9787 + $1.altstartstop = false; //#9788 + $1.includecheck = false; //#9789 + $1.validatecheck = false; //#9790 + $1.includetext = false; //#9791 + $1.includecheckintext = false; //#9792 + $1.textfont = "OCR-B"; //#9793 + $1.textsize = 10; //#9794 + $1.textyoffset = -8; //#9795 + $1.height = 1; //#9796 + $forall($1.options, function() { //#9807 + var _3 = $k[--$j]; //#9807 + $1[$k[--$j]] = _3; //#9807 + }); //#9807 + $1.textfont = "" + $1.textfont; //#9809 + $1.textsize = +$1.textsize; //#9810 + $1.textyoffset = +$1.textyoffset; //#9811 + $1.height = +$1.height; //#9812 + $1.encs = $a(["11111331", "11113311", "11131131", "33111111", "11311311", "31111311", "13111131", "13113111", "13311111", "31131111", "11133111", "11331111", "31113131", "31311131", "31313111", "11313131", "11331311", "13131131", "11131331", "11133311"]); //#9820 + if ($1.altstartstop) { //#9826 + $1.barchars = "0123456789-$:/.+TN*E"; //#9824 + } else { //#9826 + $1.barchars = "0123456789-$:/.+ABCD"; //#9826 + } //#9826 + $1.charvals = new Map; //#9828 + for (var _B = 0; _B <= 19; _B += 1) { //#9829 + $put($1.charvals, $geti($1.barchars, _B, 1), _B); //#9829 + } //#9829 + $1.bodyvals = new Map; //#9830 + for (var _F = 0; _F <= 15; _F += 1) { //#9831 + $put($1.bodyvals, $geti($1.barchars, _F, 1), _F); //#9831 + } //#9831 + $1.ssvals = new Map; //#9832 + for (var _J = 16; _J <= 19; _J += 1) { //#9833 + $put($1.ssvals, $geti($1.barchars, _J, 1), _J); //#9833 + } //#9833 + var _Q = $get($1.ssvals, $geti($1.barcode, 0, 1)) !== undefined; //#9836 + var _V = $get($1.ssvals, $geti($1.barcode, $1.barcode.length - 1, 1)) !== undefined; //#9837 + if ((!_Q) || (!_V)) { //#9843 + if ($1.altstartstop) { //#9841 + $k[$j++] = 'bwipp.rationalizedCodabarBadAltStartStop'; //#9839 + $k[$j++] = "Codabar start and stop characters must be one of E N T or *"; //#9839 + $0.raiseerror(); //#9839 + } else { //#9841 + $k[$j++] = 'bwipp.rationalizedCodabarBadStartStop'; //#9841 + $k[$j++] = "Codabar start and stop characters must be one of A B C or D"; //#9841 + $0.raiseerror(); //#9841 + } //#9841 + } //#9841 + for (var _Z = 1, _Y = $1.barcode.length - 2; _Z <= _Y; _Z += 1) { //#9848 + var _d = $get($1.bodyvals, $geti($1.barcode, _Z, 1)) !== undefined; //#9845 + if (!_d) { //#9847 + $k[$j++] = 'bwipp.rationalizedCodabarBadCharacter'; //#9846 + $k[$j++] = "Codabar body must contain only digits and symbols - $ : / . +"; //#9846 + $0.raiseerror(); //#9846 + } //#9846 + } //#9846 + $k[$j++] = 'barlen'; //#9850 + $k[$j++] = $1.barcode.length; //#9850 + if ($1.validatecheck) { //#9850 + var _g = $k[--$j]; //#9850 + $k[$j++] = $f(_g - 1); //#9850 + } //#9850 + var _h = $k[--$j]; //#9850 + $1[$k[--$j]] = _h; //#9850 + $1.checksum = 0; //#9852 + for (var _l = 0, _k = $f($1.barlen - 2); _l <= _k; _l += 1) { //#9856 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, _l, 1)) + $1.checksum); //#9855 + } //#9855 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, $1.barcode.length - 1, 1)) + $1.checksum); //#9858 + $1.checksum = ($f(16 - ($1.checksum % 16))) % 16; //#9859 + if ($1.validatecheck) { //#9869 + if ($get($1.barcode, $f($1.barlen - 1)) != $get($1.barchars, $1.checksum)) { //#9863 + $k[$j++] = 'bwipp.rationalizedCodabarBadCheckDigit'; //#9862 + $k[$j++] = "Incorrect Codabar check digit provided"; //#9862 + $0.raiseerror(); //#9862 + } //#9862 + var _16 = $s($1.barlen); //#9864 + $puti(_16, 0, $geti($1.barcode, 0, $f($1.barlen - 1))); //#9865 + $puti(_16, $f($1.barlen - 1), $geti($1.barcode, $1.barlen, 1)); //#9866 + $1.barcode = _16; //#9867 + $1.includecheck = true; //#9868 + } //#9868 + $k[$j++] = 'sbs'; //#9871 + $k[$j++] = $1.barlen; //#9871 + if ($1.includecheck) { //#9871 + var _1G = $k[--$j]; //#9871 + $k[$j++] = $f(_1G + 1); //#9871 + } //#9871 + var _1I = $s($k[--$j] * 8); //#9871 + $1[$k[--$j]] = _1I; //#9871 + $k[$j++] = 'txt'; //#9872 + $k[$j++] = $1.barlen; //#9872 + if ($1.includecheck) { //#9872 + var _1M = $k[--$j]; //#9872 + $k[$j++] = $f(_1M + 1); //#9872 + } //#9872 + var _1O = $a($k[--$j]); //#9872 + $1[$k[--$j]] = _1O; //#9872 + $1.xpos = 0; //#9874 + for (var _1S = 0, _1R = $f($1.barlen - 2); _1S <= _1R; _1S += 1) { //#9884 + $1.i = _1S; //#9876 + $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); //#9877 + $1.enc = $get($1.encs, $1.indx); //#9878 + $puti($1.sbs, $1.i * 8, $1.enc); //#9879 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9880 + for (var _1o = 0; _1o <= 7; _1o += 1) { //#9883 + $1.xpos = $f($f($get($1.enc, _1o) - 48) + $1.xpos); //#9882 + } //#9882 + } //#9882 + if ($1.includecheck) { //#9908 + $puti($1.sbs, $f(($1.barlen * 8) - 8), $get($1.encs, $1.checksum)); //#9889 + if ($1.includecheckintext) { //#9893 + $put($1.txt, $f($1.barlen - 1), $a([$geti($1.barchars, $1.checksum, 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9891 + } else { //#9893 + $put($1.txt, $f($1.barlen - 1), $a([" ", $1.xpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9893 + } //#9893 + for (var _2G = 0; _2G <= 7; _2G += 1) { //#9897 + $1.xpos = $f($f($get($get($1.encs, $1.checksum), _2G) - 48) + $1.xpos); //#9896 + } //#9896 + $1.indx = $get($1.charvals, $geti($1.barcode, $f($1.barlen - 1), 1)); //#9899 + $1.enc = $get($1.encs, $1.indx); //#9900 + $puti($1.sbs, $1.barlen * 8, $1.enc); //#9901 + $put($1.txt, $1.barlen, $a([$geti($1.barcode, $f($1.barlen - 1), 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9902 + } else { //#9908 + $1.indx = $get($1.charvals, $geti($1.barcode, $f($1.barlen - 1), 1)); //#9905 + $1.enc = $get($1.encs, $1.indx); //#9906 + $puti($1.sbs, $f(($1.barlen * 8) - 8), $1.enc); //#9907 + $put($1.txt, $f($1.barlen - 1), $a([$geti($1.barcode, $f($1.barlen - 1), 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9908 + } //#9908 + $k[$j++] = Infinity; //#9920 + $k[$j++] = Infinity; //#9914 + $forall($1.sbs, function() { //#9914 + var _33 = $k[--$j]; //#9914 + $k[$j++] = $f(_33 - 48); //#9914 + }); //#9914 + var _34 = $a(); //#9914 + $k[$j++] = Infinity; //#9915 + for (var _36 = 0, _37 = ~~(($1.sbs.length + 1) / 2); _36 < _37; _36++) { //#9915 + $k[$j++] = $1.height; //#9915 + } //#9915 + var _39 = $a(); //#9915 + $k[$j++] = Infinity; //#9916 + for (var _3B = 0, _3C = ~~(($1.sbs.length + 1) / 2); _3B < _3C; _3B++) { //#9916 + $k[$j++] = 0; //#9916 + } //#9916 + var _3D = $a(); //#9916 + $k[$j++] = 'ren'; //#9919 + $k[$j++] = $0.renlinear; //#9919 + $k[$j++] = 'sbs'; //#9919 + $k[$j++] = _34; //#9919 + $k[$j++] = 'bhs'; //#9919 + $k[$j++] = _39; //#9919 + $k[$j++] = 'bbs'; //#9919 + $k[$j++] = _3D; //#9919 + if ($1.includetext) { //#9919 + $k[$j++] = 'txt'; //#9918 + $k[$j++] = $1.txt; //#9918 + } //#9918 + $k[$j++] = 'opt'; //#9920 + $k[$j++] = $1.options; //#9920 + var _3H = $d(); //#9920 + $k[$j++] = _3H; //#9923 + if (!$1.dontdraw) { //#9923 + $0.renlinear(); //#9923 + } //#9923 }; $0.onecode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.height = .15; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.height = +$1.height; - $1.barlen = $1.barcode.length; - $k[$j++] = Infinity; - var _9 = $eq($geti($1.barcode, 5, 1), "9") ? 14 : 11; - $k[$j++] = 2; - $k[$j++] = 2; - $k[$j++] = 5; - $k[$j++] = 5; - $k[$j++] = _9; - $k[$j++] = _9; - $k[$j++] = 20; - $k[$j++] = 20; - $k[$j++] = 25; - $k[$j++] = 25; - $k[$j++] = 29; - $k[$j++] = 29; - $1.txtdict = $d(); - $1.txt = $a($1.barlen + 6); - $1.spacecnt = 0; - for (var _F = 0, _E = $1.barlen - 1; _F <= _E; _F += 1) { - $1.i = _F; - var _I = $get($1.txtdict, $1.i) !== undefined; - if (_I) { - $put($1.txt, $1.i + $1.spacecnt, $a([ " ", 0, 0, "", 0 ])); - $1.spacecnt = $1.spacecnt + 1; - } - $put($1.txt, $1.i + $1.spacecnt, $a([ $geti($1.barcode, $1.i, 1), 0, 0, "", 0 ])); - } - $1.txt = $geti($1.txt, 0, $1.barcode.length + $1.spacecnt); + var $1 = {}; //#9952 + $1.options = $k[--$j]; //#9954 + $1.barcode = $k[--$j]; //#9955 + $1.dontdraw = false; //#9957 + $1.height = 0.15; //#9958 + $forall($1.options, function() { //#9969 + var _3 = $k[--$j]; //#9969 + $1[$k[--$j]] = _3; //#9969 + }); //#9969 + $1.height = +$1.height; //#9971 + $1.barlen = $1.barcode.length; //#9973 + $k[$j++] = Infinity; //#9982 + var _9 = $eq($geti($1.barcode, 5, 1), "9") ? 14 : 11; //#9979 + $k[$j++] = 2; //#9982 + $k[$j++] = 2; //#9982 + $k[$j++] = 5; //#9982 + $k[$j++] = 5; //#9982 + $k[$j++] = _9; //#9982 + $k[$j++] = _9; //#9982 + $k[$j++] = 20; //#9982 + $k[$j++] = 20; //#9982 + $k[$j++] = 25; //#9982 + $k[$j++] = 25; //#9982 + $k[$j++] = 29; //#9982 + $k[$j++] = 29; //#9982 + $1.txtdict = $d(); //#9983 + $1.txt = $a($1.barlen + 6); //#9984 + $1.spacecnt = 0; //#9985 + for (var _F = 0, _E = $1.barlen - 1; _F <= _E; _F += 1) { //#9993 + $1.i = _F; //#9987 + var _I = $get($1.txtdict, $1.i) !== undefined; //#9988 + if (_I) { //#9991 + $put($1.txt, $1.i + $1.spacecnt, $a([" ", 0, 0, "", 0])); //#9989 + $1.spacecnt = $1.spacecnt + 1; //#9990 + } //#9990 + $put($1.txt, $1.i + $1.spacecnt, $a([$geti($1.barcode, $1.i, 1), 0, 0, "", 0])); //#9992 + } //#9992 + $1.txt = $geti($1.txt, 0, $1.barcode.length + $1.spacecnt); //#9994 $1.normalize = function() { - $1.base = $k[--$j]; - $1.num = $k[--$j]; - for (var _c = $1.num.length - 1; _c >= 1; _c -= 1) { - $1.i = _c; - var _d = $1.num; - var _e = $1.i; - $put(_d, _e - 1, $f($get(_d, _e - 1) + ~~($get($1.num, $1.i) / $1.base))); - $put($1.num, $1.i, $get($1.num, $1.i) % $1.base); - } - for (;;) { - if ($lt($get($1.num, 0), $1.base)) { - break; - } - $k[$j++] = Infinity; - $k[$j++] = 0; - $forall($1.num); - $1.num = $a(); - $put($1.num, 0, $f($get($1.num, 0) + ~~($get($1.num, 1) / $1.base))); - $put($1.num, 1, $get($1.num, 1) % $1.base); - } - $k[$j++] = Infinity; - $1.i = true; - var _15 = $1.num; - for (var _16 = 0, _17 = _15.length; _16 < _17; _16++) { - var _18 = $get(_15, _16); - $k[$j++] = _18; - if (_18 == 0 && $1.i) { - $j--; - } else { - $1.i = false; - } - } - $1.num = $a(); - if ($1.num.length == 0) { - $1.num = $a([ 0 ]); - } - $k[$j++] = $1.num; - }; + $1.base = $k[--$j]; //#9997 + $1.num = $k[--$j]; //#9998 + for (var _c = $1.num.length - 1; _c >= 1; _c -= 1) { //#10003 + $1.i = _c; //#10000 + var _d = $1.num; //#10001 + var _e = $1.i; //#10001 + $put(_d, _e - 1, $f($get(_d, _e - 1) + (~~($get($1.num, $1.i) / $1.base)))); //#10001 + $put($1.num, $1.i, $get($1.num, $1.i) % $1.base); //#10002 + } //#10002 + for (;;) { //#10009 + if ($lt($get($1.num, 0), $1.base)) { //#10005 + break; //#10005 + } //#10005 + $k[$j++] = Infinity; //#10006 + $k[$j++] = 0; //#10006 + $forall($1.num); //#10006 + $1.num = $a(); //#10006 + $put($1.num, 0, $f($get($1.num, 0) + (~~($get($1.num, 1) / $1.base)))); //#10007 + $put($1.num, 1, $get($1.num, 1) % $1.base); //#10008 + } //#10008 + $k[$j++] = Infinity; //#10011 + $1.i = true; //#10011 + var _15 = $1.num; //#10011 + for (var _16 = 0, _17 = _15.length; _16 < _17; _16++) { //#10011 + var _18 = $get(_15, _16); //#10011 + $k[$j++] = _18; //#10011 + if ((_18 == 0) && $1.i) { //#10011 + $j--; //#10011 + } else { //#10011 + $1.i = false; //#10011 + } //#10011 + } //#10011 + $1.num = $a(); //#10011 + if ($1.num.length == 0) { //#10012 + $1.num = $a([0]); //#10012 + } //#10012 + $k[$j++] = $1.num; //#10013 + }; //#10014 $1.bigadd = function() { - var _1E = $k[--$j]; - var _1F = $k[--$j]; - $1.offset = Math.abs(_1E.length - _1F.length); - if (_1E.length < _1F.length) { - var _ = _1E; - _1E = _1F; - _1F = _; - } - $1.a = _1E; - $1.b = _1F; - for (var _1I = 0, _1H = $1.b.length - 1; _1I <= _1H; _1I += 1) { - var _1J = $1.a; - var _1K = $1.offset; - $put(_1J, _1I + _1K, $f($get(_1J, _1I + _1K) + $get($1.b, _1I))); - } - $k[$j++] = $1.a; - }; - if ($1.barlen == 20) { - $k[$j++] = $a([ 0 ]); - } - if ($1.barlen == 25) { - $k[$j++] = $a([ 1 ]); - } - if ($1.barlen == 29) { - $k[$j++] = $a([ 1, 0, 0, 0, 0, 1 ]); - } - if ($1.barlen == 31) { - $k[$j++] = $a([ 1, 0, 0, 0, 1, 0, 0, 0, 0, 1 ]); - } - var _1X = $k[--$j]; - $k[$j++] = "binval"; - $k[$j++] = _1X; - $k[$j++] = Infinity; - var _1a = $geti($1.barcode, 20, $1.barlen - 20); - for (var _1b = 0, _1c = _1a.length; _1b < _1c; _1b++) { - $k[$j++] = $f($get(_1a, _1b) - 48); - } - var _1e = $a(); - $k[$j++] = _1e; - $1.bigadd(); - var _1f = $k[--$j]; - $1[$k[--$j]] = _1f; - $k[$j++] = Infinity; - var _1h = $1.binval; - for (var _1i = 0, _1j = _1h.length; _1i < _1j; _1i++) { - $k[$j++] = $get(_1h, _1i); - } - $k[$j++] = $f($get($1.barcode, 0) - 48); - $1.binval = $a(); - $k[$j++] = Infinity; - var _1o = $1.binval; - for (var _1p = 0, _1q = _1o.length; _1p < _1q; _1p++) { - $k[$j++] = $get(_1o, _1p) * 5; - } - var _1s = $a(); - $k[$j++] = "binval"; - $k[$j++] = _1s; - $k[$j++] = $a([ $f($get($1.barcode, 1) - 48) ]); - $1.bigadd(); - $k[$j++] = 10; - $1.normalize(); - var _1w = $k[--$j]; - $1[$k[--$j]] = _1w; - $k[$j++] = Infinity; - var _1y = $1.binval; - for (var _1z = 0, _20 = _1y.length; _1z < _20; _1z++) { - $k[$j++] = $get(_1y, _1z); - } - var _23 = $geti($1.barcode, 2, 18); - for (var _24 = 0, _25 = _23.length; _24 < _25; _24++) { - $k[$j++] = $f($get(_23, _24) - 48); - } - $1.binval = $a(); - $1.bytes = $a(13); - $k[$j++] = Infinity; - var _29 = $1.binval; - for (var _2A = 0, _2B = _29.length; _2A < _2B; _2A++) { - $k[$j++] = $get(_29, _2A); - } - $1.bintmp = $a(); - for (var _2E = 12; _2E >= 0; _2E -= 1) { - $1.i = _2E; - for (var _2H = 0, _2G = $1.bintmp.length - 2; _2H <= _2G; _2H += 1) { - $1.j = _2H; - var _2I = $1.bintmp; - var _2J = $1.j; - $put(_2I, _2J + 1, $f($get(_2I, _2J + 1) + $get($1.bintmp, $1.j) % 256 * 10)); - $put($1.bintmp, $1.j, ~~($get($1.bintmp, $1.j) / 256)); - } - $put($1.bytes, $1.i, $get($1.bintmp, $1.bintmp.length - 1) % 256); - var _2Y = $1.bintmp; - var _2Z = $1.bintmp; - $put(_2Y, _2Z.length - 1, ~~($get(_2Y, _2Z.length - 1) / 256)); - } - $1.fcs = 2047; - $1.dat = $get($1.bytes, 0) << 5; - for (var _2d = 0, _2e = 6; _2d < _2e; _2d++) { - if ((($1.fcs ^ $1.dat) & 1024) != 0) { - $1.fcs = $1.fcs << 1 ^ 3893; - } else { - $1.fcs = $1.fcs << 1; - } - $1.fcs = $1.fcs & 2047; - $1.dat = $1.dat << 1; - } - for (var _2l = 1; _2l <= 12; _2l += 1) { - $1.dat = $get($1.bytes, _2l) << 3; - for (var _2o = 0, _2p = 8; _2o < _2p; _2o++) { - if ((($1.fcs ^ $1.dat) & 1024) != 0) { - $1.fcs = $1.fcs << 1 ^ 3893; - } else { - $1.fcs = $1.fcs << 1; - } - $1.fcs = $1.fcs & 2047; - $1.dat = $1.dat << 1; - } - } - $1.codewords = $a(10); - for (var _2x = 9; _2x >= 0; _2x -= 1) { - $1.i = _2x; - if ($1.i == 9) { - $1.b = 636; - } else { - $1.b = 1365; - } - for (var _31 = 0, _30 = $1.binval.length - 2; _31 <= _30; _31 += 1) { - $1.j = _31; - var _32 = $1.binval; - var _33 = $1.j; - $put(_32, _33 + 1, $f($get(_32, _33 + 1) + $get($1.binval, $1.j) % $1.b * 10)); - $put($1.binval, $1.j, ~~($get($1.binval, $1.j) / $1.b)); - } - $put($1.codewords, $1.i, $get($1.binval, $1.binval.length - 1) % $1.b); - var _3L = $1.binval; - var _3M = $1.binval; - $put(_3L, _3M.length - 1, ~~($get(_3L, _3M.length - 1) / $1.b)); - } - $put($1.codewords, 9, $get($1.codewords, 9) * 2); - if (($1.fcs & 1024) != 0) { - $put($1.codewords, 0, $f($get($1.codewords, 0) + 659)); - } - $1.tab513 = $a([ 31, 7936, 47, 7808, 55, 7552, 59, 7040, 61, 6016, 62, 3968, 79, 7744, 87, 7488, 91, 6976, 93, 5952, 94, 3904, 103, 7360, 107, 6848, 109, 5824, 110, 3776, 115, 6592, 117, 5568, 118, 3520, 121, 5056, 122, 3008, 124, 1984, 143, 7712, 151, 7456, 155, 6944, 157, 5920, 158, 3872, 167, 7328, 171, 6816, 173, 5792, 174, 3744, 179, 6560, 181, 5536, 182, 3488, 185, 5024, 186, 2976, 188, 1952, 199, 7264, 203, 6752, 205, 5728, 206, 3680, 211, 6496, 213, 5472, 214, 3424, 217, 4960, 218, 2912, 220, 1888, 227, 6368, 229, 5344, 230, 3296, 233, 4832, 234, 2784, 236, 1760, 241, 4576, 242, 2528, 244, 1504, 248, 992, 271, 7696, 279, 7440, 283, 6928, 285, 5904, 286, 3856, 295, 7312, 299, 6800, 301, 5776, 302, 3728, 307, 6544, 309, 5520, 310, 3472, 313, 5008, 314, 2960, 316, 1936, 327, 7248, 331, 6736, 333, 5712, 334, 3664, 339, 6480, 341, 5456, 342, 3408, 345, 4944, 346, 2896, 348, 1872, 355, 6352, 357, 5328, 358, 3280, 361, 4816, 362, 2768, 364, 1744, 369, 4560, 370, 2512, 372, 1488, 376, 976, 391, 7216, 395, 6704, 397, 5680, 398, 3632, 403, 6448, 405, 5424, 406, 3376, 409, 4912, 410, 2864, 412, 1840, 419, 6320, 421, 5296, 422, 3248, 425, 4784, 426, 2736, 428, 1712, 433, 4528, 434, 2480, 436, 1456, 440, 944, 451, 6256, 453, 5232, 454, 3184, 457, 4720, 458, 2672, 460, 1648, 465, 4464, 466, 2416, 468, 1392, 472, 880, 481, 4336, 482, 2288, 484, 1264, 488, 752, 527, 7688, 535, 7432, 539, 6920, 541, 5896, 542, 3848, 551, 7304, 555, 6792, 557, 5768, 558, 3720, 563, 6536, 565, 5512, 566, 3464, 569, 5e3, 570, 2952, 572, 1928, 583, 7240, 587, 6728, 589, 5704, 590, 3656, 595, 6472, 597, 5448, 598, 3400, 601, 4936, 602, 2888, 604, 1864, 611, 6344, 613, 5320, 614, 3272, 617, 4808, 618, 2760, 620, 1736, 625, 4552, 626, 2504, 628, 1480, 632, 968, 647, 7208, 651, 6696, 653, 5672, 654, 3624, 659, 6440, 661, 5416, 662, 3368, 665, 4904, 666, 2856, 668, 1832, 675, 6312, 677, 5288, 678, 3240, 681, 4776, 682, 2728, 684, 1704, 689, 4520, 690, 2472, 692, 1448, 696, 936, 707, 6248, 709, 5224, 710, 3176, 713, 4712, 714, 2664, 716, 1640, 721, 4456, 722, 2408, 724, 1384, 728, 872, 737, 4328, 738, 2280, 740, 1256, 775, 7192, 779, 6680, 781, 5656, 782, 3608, 787, 6424, 789, 5400, 790, 3352, 793, 4888, 794, 2840, 796, 1816, 803, 6296, 805, 5272, 806, 3224, 809, 4760, 810, 2712, 812, 1688, 817, 4504, 818, 2456, 820, 1432, 824, 920, 835, 6232, 837, 5208, 838, 3160, 841, 4696, 842, 2648, 844, 1624, 849, 4440, 850, 2392, 852, 1368, 865, 4312, 866, 2264, 868, 1240, 899, 6200, 901, 5176, 902, 3128, 905, 4664, 906, 2616, 908, 1592, 913, 4408, 914, 2360, 916, 1336, 929, 4280, 930, 2232, 932, 1208, 961, 4216, 962, 2168, 964, 1144, 1039, 7684, 1047, 7428, 1051, 6916, 1053, 5892, 1054, 3844, 1063, 7300, 1067, 6788, 1069, 5764, 1070, 3716, 1075, 6532, 1077, 5508, 1078, 3460, 1081, 4996, 1082, 2948, 1084, 1924, 1095, 7236, 1099, 6724, 1101, 5700, 1102, 3652, 1107, 6468, 1109, 5444, 1110, 3396, 1113, 4932, 1114, 2884, 1116, 1860, 1123, 6340, 1125, 5316, 1126, 3268, 1129, 4804, 1130, 2756, 1132, 1732, 1137, 4548, 1138, 2500, 1140, 1476, 1159, 7204, 1163, 6692, 1165, 5668, 1166, 3620, 1171, 6436, 1173, 5412, 1174, 3364, 1177, 4900, 1178, 2852, 1180, 1828, 1187, 6308, 1189, 5284, 1190, 3236, 1193, 4772, 1194, 2724, 1196, 1700, 1201, 4516, 1202, 2468, 1204, 1444, 1219, 6244, 1221, 5220, 1222, 3172, 1225, 4708, 1226, 2660, 1228, 1636, 1233, 4452, 1234, 2404, 1236, 1380, 1249, 4324, 1250, 2276, 1287, 7188, 1291, 6676, 1293, 5652, 1294, 3604, 1299, 6420, 1301, 5396, 1302, 3348, 1305, 4884, 1306, 2836, 1308, 1812, 1315, 6292, 1317, 5268, 1318, 3220, 1321, 4756, 1322, 2708, 1324, 1684, 1329, 4500, 1330, 2452, 1332, 1428, 1347, 6228, 1349, 5204, 1350, 3156, 1353, 4692, 1354, 2644, 1356, 1620, 1361, 4436, 1362, 2388, 1377, 4308, 1378, 2260, 1411, 6196, 1413, 5172, 1414, 3124, 1417, 4660, 1418, 2612, 1420, 1588, 1425, 4404, 1426, 2356, 1441, 4276, 1442, 2228, 1473, 4212, 1474, 2164, 1543, 7180, 1547, 6668, 1549, 5644, 1550, 3596, 1555, 6412, 1557, 5388, 1558, 3340, 1561, 4876, 1562, 2828, 1564, 1804, 1571, 6284, 1573, 5260, 1574, 3212, 1577, 4748, 1578, 2700, 1580, 1676, 1585, 4492, 1586, 2444, 1603, 6220, 1605, 5196, 1606, 3148, 1609, 4684, 1610, 2636, 1617, 4428, 1618, 2380, 1633, 4300, 1634, 2252, 1667, 6188, 1669, 5164, 1670, 3116, 1673, 4652, 1674, 2604, 1681, 4396, 1682, 2348, 1697, 4268, 1698, 2220, 1729, 4204, 1730, 2156, 1795, 6172, 1797, 5148, 1798, 3100, 1801, 4636, 1802, 2588, 1809, 4380, 1810, 2332, 1825, 4252, 1826, 2204, 1857, 4188, 1858, 2140, 1921, 4156, 1922, 2108, 2063, 7682, 2071, 7426, 2075, 6914, 2077, 5890, 2078, 3842, 2087, 7298, 2091, 6786, 2093, 5762, 2094, 3714, 2099, 6530, 2101, 5506, 2102, 3458, 2105, 4994, 2106, 2946, 2119, 7234, 2123, 6722, 2125, 5698, 2126, 3650, 2131, 6466, 2133, 5442, 2134, 3394, 2137, 4930, 2138, 2882, 2147, 6338, 2149, 5314, 2150, 3266, 2153, 4802, 2154, 2754, 2161, 4546, 2162, 2498, 2183, 7202, 2187, 6690, 2189, 5666, 2190, 3618, 2195, 6434, 2197, 5410, 2198, 3362, 2201, 4898, 2202, 2850, 2211, 6306, 2213, 5282, 2214, 3234, 2217, 4770, 2218, 2722, 2225, 4514, 2226, 2466, 2243, 6242, 2245, 5218, 2246, 3170, 2249, 4706, 2250, 2658, 2257, 4450, 2258, 2402, 2273, 4322, 2311, 7186, 2315, 6674, 2317, 5650, 2318, 3602, 2323, 6418, 2325, 5394, 2326, 3346, 2329, 4882, 2330, 2834, 2339, 6290, 2341, 5266, 2342, 3218, 2345, 4754, 2346, 2706, 2353, 4498, 2354, 2450, 2371, 6226, 2373, 5202, 2374, 3154, 2377, 4690, 2378, 2642, 2385, 4434, 2401, 4306, 2435, 6194, 2437, 5170, 2438, 3122, 2441, 4658, 2442, 2610, 2449, 4402, 2465, 4274, 2497, 4210, 2567, 7178, 2571, 6666, 2573, 5642, 2574, 3594, 2579, 6410, 2581, 5386, 2582, 3338, 2585, 4874, 2586, 2826, 2595, 6282, 2597, 5258, 2598, 3210, 2601, 4746, 2602, 2698, 2609, 4490, 2627, 6218, 2629, 5194, 2630, 3146, 2633, 4682, 2641, 4426, 2657, 4298, 2691, 6186, 2693, 5162, 2694, 3114, 2697, 4650, 2705, 4394, 2721, 4266, 2753, 4202, 2819, 6170, 2821, 5146, 2822, 3098, 2825, 4634, 2833, 4378, 2849, 4250, 2881, 4186, 2945, 4154, 3079, 7174, 3083, 6662, 3085, 5638, 3086, 3590, 3091, 6406, 3093, 5382, 3094, 3334, 3097, 4870, 3107, 6278, 3109, 5254, 3110, 3206, 3113, 4742, 3121, 4486, 3139, 6214, 3141, 5190, 3145, 4678, 3153, 4422, 3169, 4294, 3203, 6182, 3205, 5158, 3209, 4646, 3217, 4390, 3233, 4262, 3265, 4198, 3331, 6166, 3333, 5142, 3337, 4630, 3345, 4374, 3361, 4246, 3393, 4182, 3457, 4150, 3587, 6158, 3589, 5134, 3593, 4622, 3601, 4366, 3617, 4238, 3649, 4174, 3713, 4142, 3841, 4126, 4111, 7681, 4119, 7425, 4123, 6913, 4125, 5889, 4135, 7297, 4139, 6785, 4141, 5761, 4147, 6529, 4149, 5505, 4153, 4993, 4167, 7233, 4171, 6721, 4173, 5697, 4179, 6465, 4181, 5441, 4185, 4929, 4195, 6337, 4197, 5313, 4201, 4801, 4209, 4545, 4231, 7201, 4235, 6689, 4237, 5665, 4243, 6433, 4245, 5409, 4249, 4897, 4259, 6305, 4261, 5281, 4265, 4769, 4273, 4513, 4291, 6241, 4293, 5217, 4297, 4705, 4305, 4449, 4359, 7185, 4363, 6673, 4365, 5649, 4371, 6417, 4373, 5393, 4377, 4881, 4387, 6289, 4389, 5265, 4393, 4753, 4401, 4497, 4419, 6225, 4421, 5201, 4425, 4689, 4483, 6193, 4485, 5169, 4489, 4657, 4615, 7177, 4619, 6665, 4621, 5641, 4627, 6409, 4629, 5385, 4633, 4873, 4643, 6281, 4645, 5257, 4649, 4745, 4675, 6217, 4677, 5193, 4739, 6185, 4741, 5161, 4867, 6169, 4869, 5145, 5127, 7173, 5131, 6661, 5133, 5637, 5139, 6405, 5141, 5381, 5155, 6277, 5157, 5253, 5187, 6213, 5251, 6181, 5379, 6165, 5635, 6157, 6151, 7171, 6155, 6659, 6163, 6403, 6179, 6275, 6211, 5189, 4681, 4433, 4321, 3142, 2634, 2386, 2274, 1612, 1364, 1252, 856, 744, 496 ]); - $1.tab213 = $a([ 3, 6144, 5, 5120, 6, 3072, 9, 4608, 10, 2560, 12, 1536, 17, 4352, 18, 2304, 20, 1280, 24, 768, 33, 4224, 34, 2176, 36, 1152, 40, 640, 48, 384, 65, 4160, 66, 2112, 68, 1088, 72, 576, 80, 320, 96, 192, 129, 4128, 130, 2080, 132, 1056, 136, 544, 144, 288, 257, 4112, 258, 2064, 260, 1040, 264, 528, 513, 4104, 514, 2056, 516, 1032, 1025, 4100, 1026, 2052, 2049, 4098, 4097, 2050, 1028, 520, 272, 160 ]); - $1.chars = $a(10); - for (var _3Z = 0; _3Z <= 9; _3Z += 1) { - $1.i = _3Z; - var _3c = $get($1.codewords, $1.i); - $k[$j++] = _3c; - if (_3c <= 1286) { - var _3f = $get($1.tab513, $k[--$j]); - $k[$j++] = _3f; - } else { - var _3i = $get($1.tab213, $f($k[--$j] - 1287)); - $k[$j++] = _3i; - } - $put($1.chars, $1.i, $k[--$j]); - } - for (var _3m = 9; _3m >= 0; _3m -= 1) { - $1.i = _3m; - if ((~~Math.pow(2, $1.i) & $1.fcs) != 0) { - $put($1.chars, $1.i, $get($1.chars, $1.i) ^ 8191); - } - } - $1.barmap = $a([ 7, 2, 4, 3, 1, 10, 0, 0, 9, 12, 2, 8, 5, 5, 6, 11, 8, 9, 3, 1, 0, 1, 5, 12, 2, 5, 1, 8, 4, 4, 9, 11, 6, 3, 8, 10, 3, 9, 7, 6, 5, 11, 1, 4, 8, 5, 2, 12, 9, 10, 0, 2, 7, 1, 6, 7, 3, 6, 4, 9, 0, 3, 8, 6, 6, 4, 2, 7, 1, 1, 9, 9, 7, 10, 5, 2, 4, 0, 3, 8, 6, 2, 0, 4, 8, 11, 1, 0, 9, 8, 3, 12, 2, 6, 7, 7, 5, 1, 4, 10, 1, 12, 6, 9, 7, 3, 8, 0, 5, 8, 9, 7, 4, 6, 2, 10, 3, 4, 0, 5, 8, 4, 5, 7, 7, 11, 1, 9, 6, 0, 9, 6, 0, 6, 4, 8, 2, 1, 3, 2, 5, 9, 8, 12, 4, 11, 6, 1, 9, 5, 7, 4, 3, 3, 1, 2, 0, 7, 2, 0, 1, 3, 4, 1, 6, 10, 3, 5, 8, 7, 9, 4, 2, 11, 5, 6, 0, 8, 7, 12, 4, 2, 8, 1, 5, 10, 3, 0, 9, 3, 0, 9, 6, 5, 2, 4, 7, 8, 1, 7, 5, 0, 4, 5, 2, 3, 0, 10, 6, 12, 9, 2, 3, 11, 1, 6, 8, 8, 7, 9, 5, 4, 0, 11, 1, 5, 2, 2, 9, 1, 4, 12, 8, 3, 6, 6, 7, 0, 3, 7, 4, 7, 7, 5, 0, 12, 1, 11, 2, 9, 9, 0, 6, 8, 5, 3, 3, 10, 8, 2 ]); - $1.bbs = $a(65); - $1.bhs = $a(65); - for (var _3x = 0; _3x <= 64; _3x += 1) { - $1.i = _3x; - $1.dec = ($get($1.chars, $get($1.barmap, $1.i * 4)) & ~~Math.pow(2, $get($1.barmap, $1.i * 4 + 1))) != 0; - $1.asc = ($get($1.chars, $get($1.barmap, $1.i * 4 + 2)) & ~~Math.pow(2, $get($1.barmap, $1.i * 4 + 3))) != 0; - if (!$1.dec && !$1.asc) { - $put($1.bbs, $1.i, 3 * $1.height / 8); - $put($1.bhs, $1.i, 2 * $1.height / 8); - } - if (!$1.dec && $1.asc) { - $put($1.bbs, $1.i, 3 * $1.height / 8); - $put($1.bhs, $1.i, 5 * $1.height / 8); - } - if ($1.dec && !$1.asc) { - $put($1.bbs, $1.i, 0 * $1.height / 8); - $put($1.bhs, $1.i, 5 * $1.height / 8); - } - if ($1.dec && $1.asc) { - $put($1.bbs, $1.i, 0 * $1.height / 8); - $put($1.bhs, $1.i, 8 * $1.height / 8); - } - } - $k[$j++] = Infinity; - var _4k = $1.bbs; - var _4l = $1.bhs; - $k[$j++] = Infinity; - for (var _4n = 0, _4o = $1.bhs.length - 1; _4n < _4o; _4n++) { - $k[$j++] = 1.44; - $k[$j++] = 1.872; - } - $k[$j++] = 1.44; - var _4p = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "bbs"; - $k[$j++] = _4k; - $k[$j++] = "bhs"; - $k[$j++] = _4l; - $k[$j++] = "sbs"; - $k[$j++] = _4p; - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - $k[$j++] = "textxalign"; - $k[$j++] = "left"; - $k[$j++] = "textfont"; - $k[$j++] = "OCR-B"; - $k[$j++] = "textyoffset"; - $k[$j++] = 1; - $k[$j++] = "textxoffset"; - $k[$j++] = -.3; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _4s = $d(); - $k[$j++] = _4s; - if (!$1.dontdraw) { - $0.renlinear(); - } + var _1E = $k[--$j]; //#10017 + var _1F = $k[--$j]; //#10017 + $1.offset = Math.abs(_1E.length - _1F.length); //#10018 + if (_1E.length < _1F.length) { //#10019 + var _ = _1E; //#10019 + _1E = _1F; //#10019 + _1F = _; //#10019 + } //#10019 + $1.a = _1E; //#10020 + $1.b = _1F; //#10020 + for (var _1I = 0, _1H = $1.b.length - 1; _1I <= _1H; _1I += 1) { //#10023 + var _1J = $1.a; //#10022 + var _1K = $1.offset; //#10022 + $put(_1J, _1I + _1K, $f($get(_1J, _1I + _1K) + $get($1.b, _1I))); //#10022 + } //#10022 + $k[$j++] = $1.a; //#10024 + }; //#10025 + if ($1.barlen == 20) { //#10028 + $k[$j++] = $a([0]); //#10028 + } //#10028 + if ($1.barlen == 25) { //#10029 + $k[$j++] = $a([1]); //#10029 + } //#10029 + if ($1.barlen == 29) { //#10030 + $k[$j++] = $a([1, 0, 0, 0, 0, 1]); //#10030 + } //#10030 + if ($1.barlen == 31) { //#10031 + $k[$j++] = $a([1, 0, 0, 0, 1, 0, 0, 0, 0, 1]); //#10031 + } //#10031 + var _1X = $k[--$j]; //#10032 + $k[$j++] = 'binval'; //#10032 + $k[$j++] = _1X; //#10032 + $k[$j++] = Infinity; //#10032 + var _1a = $geti($1.barcode, 20, $1.barlen - 20); //#10032 + for (var _1b = 0, _1c = _1a.length; _1b < _1c; _1b++) { //#10032 + $k[$j++] = $f($get(_1a, _1b) - 48); //#10032 + } //#10032 + var _1e = $a(); //#10032 + $k[$j++] = _1e; //#10032 + $1.bigadd(); //#10032 + var _1f = $k[--$j]; //#10032 + $1[$k[--$j]] = _1f; //#10032 + $k[$j++] = Infinity; //#10033 + var _1h = $1.binval; //#10033 + for (var _1i = 0, _1j = _1h.length; _1i < _1j; _1i++) { //#10033 + $k[$j++] = $get(_1h, _1i); //#10033 + } //#10033 + $k[$j++] = $f($get($1.barcode, 0) - 48); //#10033 + $1.binval = $a(); //#10033 + $k[$j++] = Infinity; //#10034 + var _1o = $1.binval; //#10034 + for (var _1p = 0, _1q = _1o.length; _1p < _1q; _1p++) { //#10034 + $k[$j++] = $get(_1o, _1p) * 5; //#10034 + } //#10034 + var _1s = $a(); //#10034 + $k[$j++] = 'binval'; //#10034 + $k[$j++] = _1s; //#10034 + $k[$j++] = $a([$f($get($1.barcode, 1) - 48)]); //#10034 + $1.bigadd(); //#10034 + $k[$j++] = 10; //#10034 + $1.normalize(); //#10034 + var _1w = $k[--$j]; //#10034 + $1[$k[--$j]] = _1w; //#10034 + $k[$j++] = Infinity; //#10035 + var _1y = $1.binval; //#10035 + for (var _1z = 0, _20 = _1y.length; _1z < _20; _1z++) { //#10035 + $k[$j++] = $get(_1y, _1z); //#10035 + } //#10035 + var _23 = $geti($1.barcode, 2, 18); //#10035 + for (var _24 = 0, _25 = _23.length; _24 < _25; _24++) { //#10035 + $k[$j++] = $f($get(_23, _24) - 48); //#10035 + } //#10035 + $1.binval = $a(); //#10035 + $1.bytes = $a(13); //#10038 + $k[$j++] = Infinity; //#10039 + var _29 = $1.binval; //#10039 + for (var _2A = 0, _2B = _29.length; _2A < _2B; _2A++) { //#10039 + $k[$j++] = $get(_29, _2A); //#10039 + } //#10039 + $1.bintmp = $a(); //#10039 + for (var _2E = 12; _2E >= 0; _2E -= 1) { //#10049 + $1.i = _2E; //#10041 + for (var _2H = 0, _2G = $1.bintmp.length - 2; _2H <= _2G; _2H += 1) { //#10046 + $1.j = _2H; //#10043 + var _2I = $1.bintmp; //#10044 + var _2J = $1.j; //#10044 + $put(_2I, _2J + 1, $f($get(_2I, _2J + 1) + (($get($1.bintmp, $1.j) % 256) * 10))); //#10044 + $put($1.bintmp, $1.j, ~~($get($1.bintmp, $1.j) / 256)); //#10045 + } //#10045 + $put($1.bytes, $1.i, $get($1.bintmp, $1.bintmp.length - 1) % 256); //#10047 + var _2Y = $1.bintmp; //#10048 + var _2Z = $1.bintmp; //#10048 + $put(_2Y, _2Z.length - 1, ~~($get(_2Y, _2Z.length - 1) / 256)); //#10048 + } //#10048 + $1.fcs = 2047; //#10052 + $1.dat = $get($1.bytes, 0) << 5; //#10053 + for (var _2d = 0, _2e = 6; _2d < _2e; _2d++) { //#10062 + if ((($1.fcs ^ $1.dat) & 1024) != 0) { //#10058 + $1.fcs = ($1.fcs << 1) ^ 3893; //#10056 + } else { //#10058 + $1.fcs = $1.fcs << 1; //#10058 + } //#10058 + $1.fcs = $1.fcs & 2047; //#10060 + $1.dat = $1.dat << 1; //#10061 + } //#10061 + for (var _2l = 1; _2l <= 12; _2l += 1) { //#10074 + $1.dat = $get($1.bytes, _2l) << 3; //#10064 + for (var _2o = 0, _2p = 8; _2o < _2p; _2o++) { //#10073 + if ((($1.fcs ^ $1.dat) & 1024) != 0) { //#10069 + $1.fcs = ($1.fcs << 1) ^ 3893; //#10067 + } else { //#10069 + $1.fcs = $1.fcs << 1; //#10069 + } //#10069 + $1.fcs = $1.fcs & 2047; //#10071 + $1.dat = $1.dat << 1; //#10072 + } //#10072 + } //#10072 + $1.codewords = $a(10); //#10077 + for (var _2x = 9; _2x >= 0; _2x -= 1) { //#10092 + $1.i = _2x; //#10079 + if ($1.i == 9) { //#10083 + $1.b = 636; //#10081 + } else { //#10083 + $1.b = 1365; //#10083 + } //#10083 + for (var _31 = 0, _30 = $1.binval.length - 2; _31 <= _30; _31 += 1) { //#10089 + $1.j = _31; //#10086 + var _32 = $1.binval; //#10087 + var _33 = $1.j; //#10087 + $put(_32, _33 + 1, $f($get(_32, _33 + 1) + (($get($1.binval, $1.j) % $1.b) * 10))); //#10087 + $put($1.binval, $1.j, ~~($get($1.binval, $1.j) / $1.b)); //#10088 + } //#10088 + $put($1.codewords, $1.i, $get($1.binval, $1.binval.length - 1) % $1.b); //#10090 + var _3L = $1.binval; //#10091 + var _3M = $1.binval; //#10091 + $put(_3L, _3M.length - 1, ~~($get(_3L, _3M.length - 1) / $1.b)); //#10091 + } //#10091 + $put($1.codewords, 9, $get($1.codewords, 9) * 2); //#10095 + if (($1.fcs & 1024) != 0) { //#10098 + $put($1.codewords, 0, $f($get($1.codewords, 0) + 659)); //#10097 + } //#10097 + $1.tab513 = $a([31, 7936, 47, 7808, 55, 7552, 59, 7040, 61, 6016, 62, 3968, 79, 7744, 87, 7488, 91, 6976, 93, 5952, 94, 3904, 103, 7360, 107, 6848, 109, 5824, 110, 3776, 115, 6592, 117, 5568, 118, 3520, 121, 5056, 122, 3008, 124, 1984, 143, 7712, 151, 7456, 155, 6944, 157, 5920, 158, 3872, 167, 7328, 171, 6816, 173, 5792, 174, 3744, 179, 6560, 181, 5536, 182, 3488, 185, 5024, 186, 2976, 188, 1952, 199, 7264, 203, 6752, 205, 5728, 206, 3680, 211, 6496, 213, 5472, 214, 3424, 217, 4960, 218, 2912, 220, 1888, 227, 6368, 229, 5344, 230, 3296, 233, 4832, 234, 2784, 236, 1760, 241, 4576, 242, 2528, 244, 1504, 248, 992, 271, 7696, 279, 7440, 283, 6928, 285, 5904, 286, 3856, 295, 7312, 299, 6800, 301, 5776, 302, 3728, 307, 6544, 309, 5520, 310, 3472, 313, 5008, 314, 2960, 316, 1936, 327, 7248, 331, 6736, 333, 5712, 334, 3664, 339, 6480, 341, 5456, 342, 3408, 345, 4944, 346, 2896, 348, 1872, 355, 6352, 357, 5328, 358, 3280, 361, 4816, 362, 2768, 364, 1744, 369, 4560, 370, 2512, 372, 1488, 376, 976, 391, 7216, 395, 6704, 397, 5680, 398, 3632, 403, 6448, 405, 5424, 406, 3376, 409, 4912, 410, 2864, 412, 1840, 419, 6320, 421, 5296, 422, 3248, 425, 4784, 426, 2736, 428, 1712, 433, 4528, 434, 2480, 436, 1456, 440, 944, 451, 6256, 453, 5232, 454, 3184, 457, 4720, 458, 2672, 460, 1648, 465, 4464, 466, 2416, 468, 1392, 472, 880, 481, 4336, 482, 2288, 484, 1264, 488, 752, 527, 7688, 535, 7432, 539, 6920, 541, 5896, 542, 3848, 551, 7304, 555, 6792, 557, 5768, 558, 3720, 563, 6536, 565, 5512, 566, 3464, 569, 5000, 570, 2952, 572, 1928, 583, 7240, 587, 6728, 589, 5704, 590, 3656, 595, 6472, 597, 5448, 598, 3400, 601, 4936, 602, 2888, 604, 1864, 611, 6344, 613, 5320, 614, 3272, 617, 4808, 618, 2760, 620, 1736, 625, 4552, 626, 2504, 628, 1480, 632, 968, 647, 7208, 651, 6696, 653, 5672, 654, 3624, 659, 6440, 661, 5416, 662, 3368, 665, 4904, 666, 2856, 668, 1832, 675, 6312, 677, 5288, 678, 3240, 681, 4776, 682, 2728, 684, 1704, 689, 4520, 690, 2472, 692, 1448, 696, 936, 707, 6248, 709, 5224, 710, 3176, 713, 4712, 714, 2664, 716, 1640, 721, 4456, 722, 2408, 724, 1384, 728, 872, 737, 4328, 738, 2280, 740, 1256, 775, 7192, 779, 6680, 781, 5656, 782, 3608, 787, 6424, 789, 5400, 790, 3352, 793, 4888, 794, 2840, 796, 1816, 803, 6296, 805, 5272, 806, 3224, 809, 4760, 810, 2712, 812, 1688, 817, 4504, 818, 2456, 820, 1432, 824, 920, 835, 6232, 837, 5208, 838, 3160, 841, 4696, 842, 2648, 844, 1624, 849, 4440, 850, 2392, 852, 1368, 865, 4312, 866, 2264, 868, 1240, 899, 6200, 901, 5176, 902, 3128, 905, 4664, 906, 2616, 908, 1592, 913, 4408, 914, 2360, 916, 1336, 929, 4280, 930, 2232, 932, 1208, 961, 4216, 962, 2168, 964, 1144, 1039, 7684, 1047, 7428, 1051, 6916, 1053, 5892, 1054, 3844, 1063, 7300, 1067, 6788, 1069, 5764, 1070, 3716, 1075, 6532, 1077, 5508, 1078, 3460, 1081, 4996, 1082, 2948, 1084, 1924, 1095, 7236, 1099, 6724, 1101, 5700, 1102, 3652, 1107, 6468, 1109, 5444, 1110, 3396, 1113, 4932, 1114, 2884, 1116, 1860, 1123, 6340, 1125, 5316, 1126, 3268, 1129, 4804, 1130, 2756, 1132, 1732, 1137, 4548, 1138, 2500, 1140, 1476, 1159, 7204, 1163, 6692, 1165, 5668, 1166, 3620, 1171, 6436, 1173, 5412, 1174, 3364, 1177, 4900, 1178, 2852, 1180, 1828, 1187, 6308, 1189, 5284, 1190, 3236, 1193, 4772, 1194, 2724, 1196, 1700, 1201, 4516, 1202, 2468, 1204, 1444, 1219, 6244, 1221, 5220, 1222, 3172, 1225, 4708, 1226, 2660, 1228, 1636, 1233, 4452, 1234, 2404, 1236, 1380, 1249, 4324, 1250, 2276, 1287, 7188, 1291, 6676, 1293, 5652, 1294, 3604, 1299, 6420, 1301, 5396, 1302, 3348, 1305, 4884, 1306, 2836, 1308, 1812, 1315, 6292, 1317, 5268, 1318, 3220, 1321, 4756, 1322, 2708, 1324, 1684, 1329, 4500, 1330, 2452, 1332, 1428, 1347, 6228, 1349, 5204, 1350, 3156, 1353, 4692, 1354, 2644, 1356, 1620, 1361, 4436, 1362, 2388, 1377, 4308, 1378, 2260, 1411, 6196, 1413, 5172, 1414, 3124, 1417, 4660, 1418, 2612, 1420, 1588, 1425, 4404, 1426, 2356, 1441, 4276, 1442, 2228, 1473, 4212, 1474, 2164, 1543, 7180, 1547, 6668, 1549, 5644, 1550, 3596, 1555, 6412, 1557, 5388, 1558, 3340, 1561, 4876, 1562, 2828, 1564, 1804, 1571, 6284, 1573, 5260, 1574, 3212, 1577, 4748, 1578, 2700, 1580, 1676, 1585, 4492, 1586, 2444, 1603, 6220, 1605, 5196, 1606, 3148, 1609, 4684, 1610, 2636, 1617, 4428, 1618, 2380, 1633, 4300, 1634, 2252, 1667, 6188, 1669, 5164, 1670, 3116, 1673, 4652, 1674, 2604, 1681, 4396, 1682, 2348, 1697, 4268, 1698, 2220, 1729, 4204, 1730, 2156, 1795, 6172, 1797, 5148, 1798, 3100, 1801, 4636, 1802, 2588, 1809, 4380, 1810, 2332, 1825, 4252, 1826, 2204, 1857, 4188, 1858, 2140, 1921, 4156, 1922, 2108, 2063, 7682, 2071, 7426, 2075, 6914, 2077, 5890, 2078, 3842, 2087, 7298, 2091, 6786, 2093, 5762, 2094, 3714, 2099, 6530, 2101, 5506, 2102, 3458, 2105, 4994, 2106, 2946, 2119, 7234, 2123, 6722, 2125, 5698, 2126, 3650, 2131, 6466, 2133, 5442, 2134, 3394, 2137, 4930, 2138, 2882, 2147, 6338, 2149, 5314, 2150, 3266, 2153, 4802, 2154, 2754, 2161, 4546, 2162, 2498, 2183, 7202, 2187, 6690, 2189, 5666, 2190, 3618, 2195, 6434, 2197, 5410, 2198, 3362, 2201, 4898, 2202, 2850, 2211, 6306, 2213, 5282, 2214, 3234, 2217, 4770, 2218, 2722, 2225, 4514, 2226, 2466, 2243, 6242, 2245, 5218, 2246, 3170, 2249, 4706, 2250, 2658, 2257, 4450, 2258, 2402, 2273, 4322, 2311, 7186, 2315, 6674, 2317, 5650, 2318, 3602, 2323, 6418, 2325, 5394, 2326, 3346, 2329, 4882, 2330, 2834, 2339, 6290, 2341, 5266, 2342, 3218, 2345, 4754, 2346, 2706, 2353, 4498, 2354, 2450, 2371, 6226, 2373, 5202, 2374, 3154, 2377, 4690, 2378, 2642, 2385, 4434, 2401, 4306, 2435, 6194, 2437, 5170, 2438, 3122, 2441, 4658, 2442, 2610, 2449, 4402, 2465, 4274, 2497, 4210, 2567, 7178, 2571, 6666, 2573, 5642, 2574, 3594, 2579, 6410, 2581, 5386, 2582, 3338, 2585, 4874, 2586, 2826, 2595, 6282, 2597, 5258, 2598, 3210, 2601, 4746, 2602, 2698, 2609, 4490, 2627, 6218, 2629, 5194, 2630, 3146, 2633, 4682, 2641, 4426, 2657, 4298, 2691, 6186, 2693, 5162, 2694, 3114, 2697, 4650, 2705, 4394, 2721, 4266, 2753, 4202, 2819, 6170, 2821, 5146, 2822, 3098, 2825, 4634, 2833, 4378, 2849, 4250, 2881, 4186, 2945, 4154, 3079, 7174, 3083, 6662, 3085, 5638, 3086, 3590, 3091, 6406, 3093, 5382, 3094, 3334, 3097, 4870, 3107, 6278, 3109, 5254, 3110, 3206, 3113, 4742, 3121, 4486, 3139, 6214, 3141, 5190, 3145, 4678, 3153, 4422, 3169, 4294, 3203, 6182, 3205, 5158, 3209, 4646, 3217, 4390, 3233, 4262, 3265, 4198, 3331, 6166, 3333, 5142, 3337, 4630, 3345, 4374, 3361, 4246, 3393, 4182, 3457, 4150, 3587, 6158, 3589, 5134, 3593, 4622, 3601, 4366, 3617, 4238, 3649, 4174, 3713, 4142, 3841, 4126, 4111, 7681, 4119, 7425, 4123, 6913, 4125, 5889, 4135, 7297, 4139, 6785, 4141, 5761, 4147, 6529, 4149, 5505, 4153, 4993, 4167, 7233, 4171, 6721, 4173, 5697, 4179, 6465, 4181, 5441, 4185, 4929, 4195, 6337, 4197, 5313, 4201, 4801, 4209, 4545, 4231, 7201, 4235, 6689, 4237, 5665, 4243, 6433, 4245, 5409, 4249, 4897, 4259, 6305, 4261, 5281, 4265, 4769, 4273, 4513, 4291, 6241, 4293, 5217, 4297, 4705, 4305, 4449, 4359, 7185, 4363, 6673, 4365, 5649, 4371, 6417, 4373, 5393, 4377, 4881, 4387, 6289, 4389, 5265, 4393, 4753, 4401, 4497, 4419, 6225, 4421, 5201, 4425, 4689, 4483, 6193, 4485, 5169, 4489, 4657, 4615, 7177, 4619, 6665, 4621, 5641, 4627, 6409, 4629, 5385, 4633, 4873, 4643, 6281, 4645, 5257, 4649, 4745, 4675, 6217, 4677, 5193, 4739, 6185, 4741, 5161, 4867, 6169, 4869, 5145, 5127, 7173, 5131, 6661, 5133, 5637, 5139, 6405, 5141, 5381, 5155, 6277, 5157, 5253, 5187, 6213, 5251, 6181, 5379, 6165, 5635, 6157, 6151, 7171, 6155, 6659, 6163, 6403, 6179, 6275, 6211, 5189, 4681, 4433, 4321, 3142, 2634, 2386, 2274, 1612, 1364, 1252, 856, 744, 496]); //#10188 + $1.tab213 = $a([3, 6144, 5, 5120, 6, 3072, 9, 4608, 10, 2560, 12, 1536, 17, 4352, 18, 2304, 20, 1280, 24, 768, 33, 4224, 34, 2176, 36, 1152, 40, 640, 48, 384, 65, 4160, 66, 2112, 68, 1088, 72, 576, 80, 320, 96, 192, 129, 4128, 130, 2080, 132, 1056, 136, 544, 144, 288, 257, 4112, 258, 2064, 260, 1040, 264, 528, 513, 4104, 514, 2056, 516, 1032, 1025, 4100, 1026, 2052, 2049, 4098, 4097, 2050, 1028, 520, 272, 160]); //#10197 + $1.chars = $a(10); //#10199 + for (var _3Z = 0; _3Z <= 9; _3Z += 1) { //#10208 + $1.i = _3Z; //#10201 + var _3c = $get($1.codewords, $1.i); //#10202 + $k[$j++] = _3c; //#10206 + if (_3c <= 1286) { //#10205 + var _3f = $get($1.tab513, $k[--$j]); //#10203 + $k[$j++] = _3f; //#10203 + } else { //#10205 + var _3i = $get($1.tab213, $f($k[--$j] - 1287)); //#10205 + $k[$j++] = _3i; //#10205 + } //#10205 + $put($1.chars, $1.i, $k[--$j]); //#10207 + } //#10207 + for (var _3m = 9; _3m >= 0; _3m -= 1) { //#10215 + $1.i = _3m; //#10211 + if (((~~Math.pow(2, $1.i)) & $1.fcs) != 0) { //#10214 + $put($1.chars, $1.i, $get($1.chars, $1.i) ^ 8191); //#10213 + } //#10213 + } //#10213 + $1.barmap = $a([7, 2, 4, 3, 1, 10, 0, 0, 9, 12, 2, 8, 5, 5, 6, 11, 8, 9, 3, 1, 0, 1, 5, 12, 2, 5, 1, 8, 4, 4, 9, 11, 6, 3, 8, 10, 3, 9, 7, 6, 5, 11, 1, 4, 8, 5, 2, 12, 9, 10, 0, 2, 7, 1, 6, 7, 3, 6, 4, 9, 0, 3, 8, 6, 6, 4, 2, 7, 1, 1, 9, 9, 7, 10, 5, 2, 4, 0, 3, 8, 6, 2, 0, 4, 8, 11, 1, 0, 9, 8, 3, 12, 2, 6, 7, 7, 5, 1, 4, 10, 1, 12, 6, 9, 7, 3, 8, 0, 5, 8, 9, 7, 4, 6, 2, 10, 3, 4, 0, 5, 8, 4, 5, 7, 7, 11, 1, 9, 6, 0, 9, 6, 0, 6, 4, 8, 2, 1, 3, 2, 5, 9, 8, 12, 4, 11, 6, 1, 9, 5, 7, 4, 3, 3, 1, 2, 0, 7, 2, 0, 1, 3, 4, 1, 6, 10, 3, 5, 8, 7, 9, 4, 2, 11, 5, 6, 0, 8, 7, 12, 4, 2, 8, 1, 5, 10, 3, 0, 9, 3, 0, 9, 6, 5, 2, 4, 7, 8, 1, 7, 5, 0, 4, 5, 2, 3, 0, 10, 6, 12, 9, 2, 3, 11, 1, 6, 8, 8, 7, 9, 5, 4, 0, 11, 1, 5, 2, 2, 9, 1, 4, 12, 8, 3, 6, 6, 7, 0, 3, 7, 4, 7, 7, 5, 0, 12, 1, 11, 2, 9, 9, 0, 6, 8, 5, 3, 3, 10, 8, 2]); //#10232 + $1.bbs = $a(65); //#10234 + $1.bhs = $a(65); //#10235 + for (var _3x = 0; _3x <= 64; _3x += 1) { //#10256 + $1.i = _3x; //#10237 + $1.dec = ($get($1.chars, $get($1.barmap, $1.i * 4)) & (~~Math.pow(2, $get($1.barmap, ($1.i * 4) + 1)))) != 0; //#10238 + $1.asc = ($get($1.chars, $get($1.barmap, ($1.i * 4) + 2)) & (~~Math.pow(2, $get($1.barmap, ($1.i * 4) + 3)))) != 0; //#10239 + if ((!$1.dec) && (!$1.asc)) { //#10243 + $put($1.bbs, $1.i, (3 * $1.height) / 8); //#10241 + $put($1.bhs, $1.i, (2 * $1.height) / 8); //#10242 + } //#10242 + if ((!$1.dec) && $1.asc) { //#10247 + $put($1.bbs, $1.i, (3 * $1.height) / 8); //#10245 + $put($1.bhs, $1.i, (5 * $1.height) / 8); //#10246 + } //#10246 + if ($1.dec && (!$1.asc)) { //#10251 + $put($1.bbs, $1.i, (0 * $1.height) / 8); //#10249 + $put($1.bhs, $1.i, (5 * $1.height) / 8); //#10250 + } //#10250 + if ($1.dec && $1.asc) { //#10255 + $put($1.bbs, $1.i, (0 * $1.height) / 8); //#10253 + $put($1.bhs, $1.i, (8 * $1.height) / 8); //#10254 + } //#10254 + } //#10254 + $k[$j++] = Infinity; //#10269 + var _4k = $1.bbs; //#10261 + var _4l = $1.bhs; //#10262 + $k[$j++] = Infinity; //#10263 + for (var _4n = 0, _4o = $1.bhs.length - 1; _4n < _4o; _4n++) { //#10263 + $k[$j++] = 1.44; //#10263 + $k[$j++] = 1.872; //#10263 + } //#10263 + $k[$j++] = 1.44; //#10263 + var _4p = $a(); //#10263 + $k[$j++] = 'ren'; //#10269 + $k[$j++] = $0.renlinear; //#10269 + $k[$j++] = 'bbs'; //#10269 + $k[$j++] = _4k; //#10269 + $k[$j++] = 'bhs'; //#10269 + $k[$j++] = _4l; //#10269 + $k[$j++] = 'sbs'; //#10269 + $k[$j++] = _4p; //#10269 + $k[$j++] = 'txt'; //#10269 + $k[$j++] = $1.txt; //#10269 + $k[$j++] = 'textxalign'; //#10269 + $k[$j++] = "left"; //#10269 + $k[$j++] = 'textfont'; //#10269 + $k[$j++] = "OCR-B"; //#10269 + $k[$j++] = 'textyoffset'; //#10269 + $k[$j++] = 1; //#10269 + $k[$j++] = 'textxoffset'; //#10269 + $k[$j++] = -0.3; //#10269 + $k[$j++] = 'opt'; //#10269 + $k[$j++] = $1.options; //#10269 + var _4s = $d(); //#10269 + $k[$j++] = _4s; //#10272 + if (!$1.dontdraw) { //#10272 + $0.renlinear(); //#10272 + } //#10272 }; $0.postnet = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.validatecheck = false; - $1.includecheckintext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = .125; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _B = $k[--$j]; - $k[$j++] = $f(_B - 1); - } - var _C = $k[--$j]; - $1[$k[--$j]] = _C; - if ($1.barlen != 5 && $1.barlen != 9 && $1.barlen != 11) { - $k[$j++] = "bwipp.postnetBadLength"; - $k[$j++] = "USPS POSTNET must be 5, 9 or 11 digits excluding check digit"; - $0.raiseerror(); - } - $forall($1.barcode, function() { - var _I = $k[--$j]; - if (_I < 48 || _I > 57) { - $k[$j++] = "bwipp.postnetBadCharacter"; - $k[$j++] = "USPS POSTNET must contain only digits"; - $0.raiseerror(); - } - }); - $1.barchars = "0123456789"; - $1.checksum = 0; - for (var _L = 0, _K = $f($1.barlen - 1); _L <= _K; _L += 1) { - $1.i = _L; - $1.checksum = $f($1.checksum + $f($get($1.barcode, $1.i) - 48)); - } - $1.checksum = $f(10 - $1.checksum % 10) % 10; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.postnetBadCheckDigit"; - $k[$j++] = "Incorrect USPS POSTNET check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - $1.encs = $a([ "55222", "22255", "22525", "22552", "25225", "25252", "25522", "52225", "52252", "52522", "5", "5" ]); - $1.bhs = $a($f($1.barlen * 5 + 7)); - $1.txt = $a($f($1.barlen + 1)); - $1.enc = $get($1.encs, 10); - $1.heights = $a($1.enc.length); - for (var _m = 0, _l = $1.enc.length - 1; _m <= _l; _m += 1) { - $1.j = _m; - $put($1.heights, $1.j, ~~$z($geti($1.enc, $1.j, 1)) * $1.height / 5); - } - $puti($1.bhs, 0, $1.heights); - for (var _x = 0, _w = $f($1.barlen - 1); _x <= _w; _x += 1) { - $1.i = _x; - $1.enc = $get($1.encs, $f($get($1.barcode, $1.i) - 48)); - $1.heights = $a($1.enc.length); - for (var _17 = 0, _16 = $1.enc.length - 1; _17 <= _16; _17 += 1) { - $1.j = _17; - $put($1.heights, $1.j, ~~$z($geti($1.enc, $1.j, 1)) * $1.height / 5); - } - $puti($1.bhs, $1.i * 5 + 1, $1.heights); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), ($1.i * 5 + 1) * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $1.enc = $get($1.encs, $1.checksum); - $1.heights = $a($1.enc.length); - for (var _1Y = 0, _1X = $1.enc.length - 1; _1Y <= _1X; _1Y += 1) { - $1.j = _1Y; - $put($1.heights, $1.j, ~~$z($geti($1.enc, $1.j, 1)) * $1.height / 5); - } - $puti($1.bhs, $f($1.barlen * 5 + 1), $1.heights); - if ($1.includecheckintext) { - $put($1.txt, $1.barlen, $a([ $geti($1.barchars, $1.checksum, 1), $f($1.barlen * 5 + 1) * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $1.barlen, $a([ " ", $f($1.barlen * 5 + 1) * 72 / 25, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $1.enc = $get($1.encs, 11); - $1.heights = $a($1.enc.length); - for (var _26 = 0, _25 = $1.enc.length - 1; _26 <= _25; _26 += 1) { - $1.j = _26; - $put($1.heights, $1.j, ~~$z($geti($1.enc, $1.j, 1)) * $1.height / 5); - } - $puti($1.bhs, $f($1.barlen * 5 + 6), $1.heights); - $k[$j++] = Infinity; - var _2G = $1.bhs; - $k[$j++] = Infinity; - for (var _2I = 0, _2J = $1.bhs.length; _2I < _2J; _2I++) { - $k[$j++] = 0; - } - var _2K = $a(); - $k[$j++] = Infinity; - for (var _2M = 0, _2N = $1.bhs.length - 1; _2M < _2N; _2M++) { - $k[$j++] = 1.44; - $k[$j++] = 1.872; - } - $k[$j++] = 1.44; - var _2O = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "bhs"; - $k[$j++] = _2G; - $k[$j++] = "bbs"; - $k[$j++] = _2K; - $k[$j++] = "sbs"; - $k[$j++] = _2O; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _2S = $d(); - $k[$j++] = _2S; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#10301 + $1.options = $k[--$j]; //#10303 + $1.barcode = $k[--$j]; //#10304 + $1.dontdraw = false; //#10306 + $1.includetext = false; //#10307 + $1.validatecheck = false; //#10308 + $1.includecheckintext = false; //#10309 + $1.textfont = "OCR-B"; //#10310 + $1.textsize = 10; //#10311 + $1.textyoffset = -8; //#10312 + $1.height = 0.125; //#10313 + $forall($1.options, function() { //#10324 + var _3 = $k[--$j]; //#10324 + $1[$k[--$j]] = _3; //#10324 + }); //#10324 + $1.textfont = "" + $1.textfont; //#10326 + $1.textsize = +$1.textsize; //#10327 + $1.textyoffset = +$1.textyoffset; //#10328 + $1.height = +$1.height; //#10329 + $k[$j++] = 'barlen'; //#10331 + $k[$j++] = $1.barcode.length; //#10331 + if ($1.validatecheck) { //#10331 + var _B = $k[--$j]; //#10331 + $k[$j++] = $f(_B - 1); //#10331 + } //#10331 + var _C = $k[--$j]; //#10331 + $1[$k[--$j]] = _C; //#10331 + if ((($1.barlen != 5) && ($1.barlen != 9)) && ($1.barlen != 11)) { //#10336 + $k[$j++] = 'bwipp.postnetBadLength'; //#10335 + $k[$j++] = "USPS POSTNET must be 5, 9 or 11 digits excluding check digit"; //#10335 + $0.raiseerror(); //#10335 + } //#10335 + $forall($1.barcode, function() { //#10341 + var _I = $k[--$j]; //#10338 + if ((_I < 48) || (_I > 57)) { //#10340 + $k[$j++] = 'bwipp.postnetBadCharacter'; //#10339 + $k[$j++] = "USPS POSTNET must contain only digits"; //#10339 + $0.raiseerror(); //#10339 + } //#10339 + }); //#10339 + $1.barchars = "0123456789"; //#10344 + $1.checksum = 0; //#10346 + for (var _L = 0, _K = $f($1.barlen - 1); _L <= _K; _L += 1) { //#10350 + $1.i = _L; //#10348 + $1.checksum = $f($1.checksum + $f($get($1.barcode, $1.i) - 48)); //#10349 + } //#10349 + $1.checksum = ($f(10 - ($1.checksum % 10))) % 10; //#10351 + if ($1.validatecheck) { //#10357 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#10355 + $k[$j++] = 'bwipp.postnetBadCheckDigit'; //#10354 + $k[$j++] = "Incorrect USPS POSTNET check digit provided"; //#10354 + $0.raiseerror(); //#10354 + } //#10354 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#10356 + } //#10356 + $1.encs = $a(["55222", "22255", "22525", "22552", "25225", "25252", "25522", "52225", "52252", "52522", "5", "5"]); //#10364 + $1.bhs = $a($f(($1.barlen * 5) + 7)); //#10366 + $1.txt = $a($f($1.barlen + 1)); //#10367 + $1.enc = $get($1.encs, 10); //#10370 + $1.heights = $a($1.enc.length); //#10371 + for (var _m = 0, _l = $1.enc.length - 1; _m <= _l; _m += 1) { //#10375 + $1.j = _m; //#10373 + $put($1.heights, $1.j, ((~~$z($geti($1.enc, $1.j, 1))) * $1.height) / 5); //#10374 + } //#10374 + $puti($1.bhs, 0, $1.heights); //#10376 + for (var _x = 0, _w = $f($1.barlen - 1); _x <= _w; _x += 1) { //#10388 + $1.i = _x; //#10379 + $1.enc = $get($1.encs, $f($get($1.barcode, $1.i) - 48)); //#10380 + $1.heights = $a($1.enc.length); //#10381 + for (var _17 = 0, _16 = $1.enc.length - 1; _17 <= _16; _17 += 1) { //#10385 + $1.j = _17; //#10383 + $put($1.heights, $1.j, ((~~$z($geti($1.enc, $1.j, 1))) * $1.height) / 5); //#10384 + } //#10384 + $puti($1.bhs, ($1.i * 5) + 1, $1.heights); //#10386 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), (($1.i * 5) + 1) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#10387 + } //#10387 + $1.enc = $get($1.encs, $1.checksum); //#10391 + $1.heights = $a($1.enc.length); //#10392 + for (var _1Y = 0, _1X = $1.enc.length - 1; _1Y <= _1X; _1Y += 1) { //#10396 + $1.j = _1Y; //#10394 + $put($1.heights, $1.j, ((~~$z($geti($1.enc, $1.j, 1))) * $1.height) / 5); //#10395 + } //#10395 + $puti($1.bhs, $f(($1.barlen * 5) + 1), $1.heights); //#10397 + if ($1.includecheckintext) { //#10402 + $put($1.txt, $1.barlen, $a([$geti($1.barchars, $1.checksum, 1), ($f(($1.barlen * 5) + 1)) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#10400 + } else { //#10402 + $put($1.txt, $1.barlen, $a([" ", (($f(($1.barlen * 5) + 1)) * 72) / 25, $1.textyoffset, $1.textfont, $1.textsize])); //#10402 + } //#10402 + $1.enc = $get($1.encs, 11); //#10406 + $1.heights = $a($1.enc.length); //#10407 + for (var _26 = 0, _25 = $1.enc.length - 1; _26 <= _25; _26 += 1) { //#10411 + $1.j = _26; //#10409 + $put($1.heights, $1.j, ((~~$z($geti($1.enc, $1.j, 1))) * $1.height) / 5); //#10410 + } //#10410 + $puti($1.bhs, $f(($1.barlen * 5) + 6), $1.heights); //#10412 + $k[$j++] = Infinity; //#10423 + var _2G = $1.bhs; //#10417 + $k[$j++] = Infinity; //#10418 + for (var _2I = 0, _2J = $1.bhs.length; _2I < _2J; _2I++) { //#10418 + $k[$j++] = 0; //#10418 + } //#10418 + var _2K = $a(); //#10418 + $k[$j++] = Infinity; //#10419 + for (var _2M = 0, _2N = $1.bhs.length - 1; _2M < _2N; _2M++) { //#10419 + $k[$j++] = 1.44; //#10419 + $k[$j++] = 1.872; //#10419 + } //#10419 + $k[$j++] = 1.44; //#10419 + var _2O = $a(); //#10419 + $k[$j++] = 'ren'; //#10422 + $k[$j++] = $0.renlinear; //#10422 + $k[$j++] = 'bhs'; //#10422 + $k[$j++] = _2G; //#10422 + $k[$j++] = 'bbs'; //#10422 + $k[$j++] = _2K; //#10422 + $k[$j++] = 'sbs'; //#10422 + $k[$j++] = _2O; //#10422 + if ($1.includetext) { //#10422 + $k[$j++] = 'txt'; //#10421 + $k[$j++] = $1.txt; //#10421 + } //#10421 + $k[$j++] = 'opt'; //#10423 + $k[$j++] = $1.options; //#10423 + var _2S = $d(); //#10423 + $k[$j++] = _2S; //#10426 + if (!$1.dontdraw) { //#10426 + $0.renlinear(); //#10426 + } //#10426 }; $0.planet = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.validatecheck = false; - $1.includecheckintext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = .125; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _B = $k[--$j]; - $k[$j++] = $f(_B - 1); - } - var _C = $k[--$j]; - $1[$k[--$j]] = _C; - if ($1.barlen != 11 && $1.barlen != 13) { - $k[$j++] = "bwipp.planetBadLength"; - $k[$j++] = "USPS PLANET must be 11 or 13 digits excluding check digit"; - $0.raiseerror(); - } - $forall($1.barcode, function() { - var _H = $k[--$j]; - if (_H < 48 || _H > 57) { - $k[$j++] = "bwipp.planetBadCharacter"; - $k[$j++] = "USPS PLANET must contain only digits"; - $0.raiseerror(); - } - }); - $1.barchars = "0123456789"; - $1.checksum = 0; - for (var _K = 0, _J = $f($1.barlen - 1); _K <= _J; _K += 1) { - $1.i = _K; - $1.checksum = $f($1.checksum + $f($get($1.barcode, $1.i) - 48)); - } - $1.checksum = $f(10 - $1.checksum % 10) % 10; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.planetBadCheckDigit"; - $k[$j++] = "Incorrect USPS PLANET check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - $1.encs = $a([ "22555", "55522", "55252", "55225", "52552", "52525", "52255", "25552", "25525", "25255", "5", "5" ]); - $1.bhs = $a($f($1.barlen * 5 + 7)); - $1.txt = $a($f($1.barlen + 1)); - $1.enc = $get($1.encs, 10); - $1.heights = $a($1.enc.length); - for (var _l = 0, _k = $1.enc.length - 1; _l <= _k; _l += 1) { - $1.j = _l; - $put($1.heights, $1.j, ~~$z($geti($1.enc, $1.j, 1)) * $1.height / 5); - } - $puti($1.bhs, 0, $1.heights); - for (var _w = 0, _v = $f($1.barlen - 1); _w <= _v; _w += 1) { - $1.i = _w; - $1.enc = $get($1.encs, $f($get($1.barcode, $1.i) - 48)); - $1.heights = $a($1.enc.length); - for (var _16 = 0, _15 = $1.enc.length - 1; _16 <= _15; _16 += 1) { - $1.j = _16; - $put($1.heights, $1.j, ~~$z($geti($1.enc, $1.j, 1)) * $1.height / 5); - } - $puti($1.bhs, $1.i * 5 + 1, $1.heights); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), ($1.i * 5 + 1) * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $1.enc = $get($1.encs, $1.checksum); - $1.heights = $a($1.enc.length); - for (var _1X = 0, _1W = $1.enc.length - 1; _1X <= _1W; _1X += 1) { - $1.j = _1X; - $put($1.heights, $1.j, ~~$z($geti($1.enc, $1.j, 1)) * $1.height / 5); - } - $puti($1.bhs, $f($1.barlen * 5 + 1), $1.heights); - if ($1.includecheckintext) { - $put($1.txt, $1.barlen, $a([ $geti($1.barchars, $1.checksum, 1), $f($1.barlen * 5 + 1) * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $1.barlen, $a([ " ", $f($1.barlen * 5 + 1) * 72 / 25, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $1.enc = $get($1.encs, 11); - $1.heights = $a($1.enc.length); - for (var _25 = 0, _24 = $1.enc.length - 1; _25 <= _24; _25 += 1) { - $1.j = _25; - $put($1.heights, $1.j, ~~$z($geti($1.enc, $1.j, 1)) * $1.height / 5); - } - $puti($1.bhs, $f($1.barlen * 5 + 6), $1.heights); - $k[$j++] = Infinity; - var _2F = $1.bhs; - $k[$j++] = Infinity; - for (var _2H = 0, _2I = $1.bhs.length; _2H < _2I; _2H++) { - $k[$j++] = 0; - } - var _2J = $a(); - $k[$j++] = Infinity; - for (var _2L = 0, _2M = $1.bhs.length - 1; _2L < _2M; _2L++) { - $k[$j++] = 1.44; - $k[$j++] = 1.872; - } - $k[$j++] = 1.44; - var _2N = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "bhs"; - $k[$j++] = _2F; - $k[$j++] = "bbs"; - $k[$j++] = _2J; - $k[$j++] = "sbs"; - $k[$j++] = _2N; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _2R = $d(); - $k[$j++] = _2R; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#10455 + $1.options = $k[--$j]; //#10457 + $1.barcode = $k[--$j]; //#10458 + $1.dontdraw = false; //#10460 + $1.includetext = false; //#10461 + $1.validatecheck = false; //#10462 + $1.includecheckintext = false; //#10463 + $1.textfont = "OCR-B"; //#10464 + $1.textsize = 10; //#10465 + $1.textyoffset = -8; //#10466 + $1.height = 0.125; //#10467 + $forall($1.options, function() { //#10478 + var _3 = $k[--$j]; //#10478 + $1[$k[--$j]] = _3; //#10478 + }); //#10478 + $1.textfont = "" + $1.textfont; //#10480 + $1.textsize = +$1.textsize; //#10481 + $1.textyoffset = +$1.textyoffset; //#10482 + $1.height = +$1.height; //#10483 + $k[$j++] = 'barlen'; //#10485 + $k[$j++] = $1.barcode.length; //#10485 + if ($1.validatecheck) { //#10485 + var _B = $k[--$j]; //#10485 + $k[$j++] = $f(_B - 1); //#10485 + } //#10485 + var _C = $k[--$j]; //#10485 + $1[$k[--$j]] = _C; //#10485 + if (($1.barlen != 11) && ($1.barlen != 13)) { //#10490 + $k[$j++] = 'bwipp.planetBadLength'; //#10489 + $k[$j++] = "USPS PLANET must be 11 or 13 digits excluding check digit"; //#10489 + $0.raiseerror(); //#10489 + } //#10489 + $forall($1.barcode, function() { //#10495 + var _H = $k[--$j]; //#10492 + if ((_H < 48) || (_H > 57)) { //#10494 + $k[$j++] = 'bwipp.planetBadCharacter'; //#10493 + $k[$j++] = "USPS PLANET must contain only digits"; //#10493 + $0.raiseerror(); //#10493 + } //#10493 + }); //#10493 + $1.barchars = "0123456789"; //#10498 + $1.checksum = 0; //#10501 + for (var _K = 0, _J = $f($1.barlen - 1); _K <= _J; _K += 1) { //#10505 + $1.i = _K; //#10503 + $1.checksum = $f($1.checksum + $f($get($1.barcode, $1.i) - 48)); //#10504 + } //#10504 + $1.checksum = ($f(10 - ($1.checksum % 10))) % 10; //#10506 + if ($1.validatecheck) { //#10512 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#10510 + $k[$j++] = 'bwipp.planetBadCheckDigit'; //#10509 + $k[$j++] = "Incorrect USPS PLANET check digit provided"; //#10509 + $0.raiseerror(); //#10509 + } //#10509 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#10511 + } //#10511 + $1.encs = $a(["22555", "55522", "55252", "55225", "52552", "52525", "52255", "25552", "25525", "25255", "5", "5"]); //#10519 + $1.bhs = $a($f(($1.barlen * 5) + 7)); //#10521 + $1.txt = $a($f($1.barlen + 1)); //#10522 + $1.enc = $get($1.encs, 10); //#10525 + $1.heights = $a($1.enc.length); //#10526 + for (var _l = 0, _k = $1.enc.length - 1; _l <= _k; _l += 1) { //#10530 + $1.j = _l; //#10528 + $put($1.heights, $1.j, ((~~$z($geti($1.enc, $1.j, 1))) * $1.height) / 5); //#10529 + } //#10529 + $puti($1.bhs, 0, $1.heights); //#10531 + for (var _w = 0, _v = $f($1.barlen - 1); _w <= _v; _w += 1) { //#10543 + $1.i = _w; //#10534 + $1.enc = $get($1.encs, $f($get($1.barcode, $1.i) - 48)); //#10535 + $1.heights = $a($1.enc.length); //#10536 + for (var _16 = 0, _15 = $1.enc.length - 1; _16 <= _15; _16 += 1) { //#10540 + $1.j = _16; //#10538 + $put($1.heights, $1.j, ((~~$z($geti($1.enc, $1.j, 1))) * $1.height) / 5); //#10539 + } //#10539 + $puti($1.bhs, ($1.i * 5) + 1, $1.heights); //#10541 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), (($1.i * 5) + 1) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#10542 + } //#10542 + $1.enc = $get($1.encs, $1.checksum); //#10546 + $1.heights = $a($1.enc.length); //#10547 + for (var _1X = 0, _1W = $1.enc.length - 1; _1X <= _1W; _1X += 1) { //#10551 + $1.j = _1X; //#10549 + $put($1.heights, $1.j, ((~~$z($geti($1.enc, $1.j, 1))) * $1.height) / 5); //#10550 + } //#10550 + $puti($1.bhs, $f(($1.barlen * 5) + 1), $1.heights); //#10552 + if ($1.includecheckintext) { //#10557 + $put($1.txt, $1.barlen, $a([$geti($1.barchars, $1.checksum, 1), ($f(($1.barlen * 5) + 1)) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#10555 + } else { //#10557 + $put($1.txt, $1.barlen, $a([" ", (($f(($1.barlen * 5) + 1)) * 72) / 25, $1.textyoffset, $1.textfont, $1.textsize])); //#10557 + } //#10557 + $1.enc = $get($1.encs, 11); //#10561 + $1.heights = $a($1.enc.length); //#10562 + for (var _25 = 0, _24 = $1.enc.length - 1; _25 <= _24; _25 += 1) { //#10566 + $1.j = _25; //#10564 + $put($1.heights, $1.j, ((~~$z($geti($1.enc, $1.j, 1))) * $1.height) / 5); //#10565 + } //#10565 + $puti($1.bhs, $f(($1.barlen * 5) + 6), $1.heights); //#10567 + $k[$j++] = Infinity; //#10578 + var _2F = $1.bhs; //#10572 + $k[$j++] = Infinity; //#10573 + for (var _2H = 0, _2I = $1.bhs.length; _2H < _2I; _2H++) { //#10573 + $k[$j++] = 0; //#10573 + } //#10573 + var _2J = $a(); //#10573 + $k[$j++] = Infinity; //#10574 + for (var _2L = 0, _2M = $1.bhs.length - 1; _2L < _2M; _2L++) { //#10574 + $k[$j++] = 1.44; //#10574 + $k[$j++] = 1.872; //#10574 + } //#10574 + $k[$j++] = 1.44; //#10574 + var _2N = $a(); //#10574 + $k[$j++] = 'ren'; //#10577 + $k[$j++] = $0.renlinear; //#10577 + $k[$j++] = 'bhs'; //#10577 + $k[$j++] = _2F; //#10577 + $k[$j++] = 'bbs'; //#10577 + $k[$j++] = _2J; //#10577 + $k[$j++] = 'sbs'; //#10577 + $k[$j++] = _2N; //#10577 + if ($1.includetext) { //#10577 + $k[$j++] = 'txt'; //#10576 + $k[$j++] = $1.txt; //#10576 + } //#10576 + $k[$j++] = 'opt'; //#10578 + $k[$j++] = $1.options; //#10578 + var _2R = $d(); //#10578 + $k[$j++] = _2R; //#10581 + if (!$1.dontdraw) { //#10581 + $0.renlinear(); //#10581 + } //#10581 }; $0.royalmail = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.validatecheck = false; - $1.includecheckintext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = .175; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.barchars = "ZUVWXY501234B6789AHCDEFGNIJKLMTOPQRS"; - $1.charvals = new Map(); - for (var _9 = 0; _9 <= 35; _9 += 1) { - $put($1.charvals, $geti($1.barchars, _9, 1), _9); - } - for (var _F = 0, _E = $1.barcode.length - 1; _F <= _E; _F += 1) { - var _J = $get($1.charvals, $geti($1.barcode, _F, 1)) !== undefined; - if (!_J) { - $k[$j++] = "bwipp.royalmailBadCharacter"; - $k[$j++] = "RM4SCC must contain only capital letters and digits"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _M = $k[--$j]; - $k[$j++] = $f(_M - 1); - } - var _N = $k[--$j]; - $1[$k[--$j]] = _N; - $1.checksumrow = 0; - $1.checksumcol = 0; - for (var _R = 0, _Q = $f($1.barlen - 1); _R <= _Q; _R += 1) { - $1.i = _R; - $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); - $1.checksumrow = $1.checksumrow + ~~($1.indx / 6); - $1.checksumcol = $f($1.checksumcol + $1.indx % 6); - } - $1.checksum = $f($1.checksumrow % 6 * 6 + $1.checksumcol % 6); - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.royalmailBadCheckDigit"; - $k[$j++] = "Incorrect RM4SCC check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - $1.encs = $a([ "3300", "2211", "2301", "2310", "3201", "3210", "1122", "0033", "0123", "0132", "1023", "1032", "1302", "0213", "0303", "0312", "1203", "1212", "1320", "0231", "0321", "0330", "1221", "1230", "3102", "2013", "2103", "2112", "3003", "3012", "3120", "2031", "2121", "2130", "3021", "3030", "2", "3" ]); - $1.encstr = $s($f($1.barlen * 4 + 6)); - $1.txt = $a($f($1.barlen + 1)); - $puti($1.encstr, 0, $get($1.encs, 36)); - for (var _x = 0, _w = $f($1.barlen - 1); _x <= _w; _x += 1) { - $1.i = _x; - $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); - $puti($1.encstr, $1.i * 4 + 1, $get($1.encs, $1.indx)); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), ($1.i * 4 + 1) * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $puti($1.encstr, $f($1.barlen * 4 + 1), $get($1.encs, $1.checksum)); - if ($1.includecheckintext) { - $put($1.txt, $1.barlen, $a([ $geti($1.barchars, $1.checksum, 1), $f($1.barlen * 4 + 1) * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $1.barlen, $a([ " ", $f($1.barlen * 4 + 1) * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $puti($1.encstr, $f($1.barlen * 4 + 5), $get($1.encs, 37)); - $1.bbs = $a($1.encstr.length); - $1.bhs = $a($1.encstr.length); - for (var _1p = 0, _1o = $1.encstr.length - 1; _1p <= _1o; _1p += 1) { - $1.i = _1p; - $1.enc = $geti($1.encstr, $1.i, 1); - if ($eq($1.enc, "0")) { - $put($1.bbs, $1.i, 3 * $1.height / 8); - $put($1.bhs, $1.i, 2 * $1.height / 8); - } - if ($eq($1.enc, "1")) { - $put($1.bbs, $1.i, 0 * $1.height / 8); - $put($1.bhs, $1.i, 5 * $1.height / 8); - } - if ($eq($1.enc, "2")) { - $put($1.bbs, $1.i, 3 * $1.height / 8); - $put($1.bhs, $1.i, 5 * $1.height / 8); - } - if ($eq($1.enc, "3")) { - $put($1.bbs, $1.i, 0 * $1.height / 8); - $put($1.bhs, $1.i, 8 * $1.height / 8); - } - } - $k[$j++] = Infinity; - var _2L = $1.bbs; - var _2M = $1.bhs; - $k[$j++] = Infinity; - for (var _2O = 0, _2P = $1.bhs.length - 1; _2O < _2P; _2O++) { - $k[$j++] = 1.44; - $k[$j++] = 1.872; - } - $k[$j++] = 1.44; - var _2Q = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "bbs"; - $k[$j++] = _2L; - $k[$j++] = "bhs"; - $k[$j++] = _2M; - $k[$j++] = "sbs"; - $k[$j++] = _2Q; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _2U = $d(); - $k[$j++] = _2U; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#10610 + $1.options = $k[--$j]; //#10612 + $1.barcode = $k[--$j]; //#10613 + $1.dontdraw = false; //#10615 + $1.includetext = false; //#10616 + $1.validatecheck = false; //#10617 + $1.includecheckintext = false; //#10618 + $1.textfont = "OCR-B"; //#10619 + $1.textsize = 10; //#10620 + $1.textyoffset = -8; //#10621 + $1.height = 0.175; //#10622 + $forall($1.options, function() { //#10633 + var _3 = $k[--$j]; //#10633 + $1[$k[--$j]] = _3; //#10633 + }); //#10633 + $1.textfont = "" + $1.textfont; //#10635 + $1.textsize = +$1.textsize; //#10636 + $1.textyoffset = +$1.textyoffset; //#10637 + $1.height = +$1.height; //#10638 + $1.barchars = "ZUVWXY501234B6789AHCDEFGNIJKLMTOPQRS"; //#10641 + $1.charvals = new Map; //#10642 + for (var _9 = 0; _9 <= 35; _9 += 1) { //#10643 + $put($1.charvals, $geti($1.barchars, _9, 1), _9); //#10643 + } //#10643 + for (var _F = 0, _E = $1.barcode.length - 1; _F <= _E; _F += 1) { //#10650 + var _J = $get($1.charvals, $geti($1.barcode, _F, 1)) !== undefined; //#10647 + if (!_J) { //#10649 + $k[$j++] = 'bwipp.royalmailBadCharacter'; //#10648 + $k[$j++] = "RM4SCC must contain only capital letters and digits"; //#10648 + $0.raiseerror(); //#10648 + } //#10648 + } //#10648 + $k[$j++] = 'barlen'; //#10652 + $k[$j++] = $1.barcode.length; //#10652 + if ($1.validatecheck) { //#10652 + var _M = $k[--$j]; //#10652 + $k[$j++] = $f(_M - 1); //#10652 + } //#10652 + var _N = $k[--$j]; //#10652 + $1[$k[--$j]] = _N; //#10652 + $1.checksumrow = 0; //#10654 + $1.checksumcol = 0; //#10655 + for (var _R = 0, _Q = $f($1.barlen - 1); _R <= _Q; _R += 1) { //#10661 + $1.i = _R; //#10657 + $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); //#10658 + $1.checksumrow = $1.checksumrow + (~~($1.indx / 6)); //#10659 + $1.checksumcol = $f($1.checksumcol + ($1.indx % 6)); //#10660 + } //#10660 + $1.checksum = $f((($1.checksumrow % 6) * 6) + ($1.checksumcol % 6)); //#10662 + if ($1.validatecheck) { //#10668 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#10666 + $k[$j++] = 'bwipp.royalmailBadCheckDigit'; //#10665 + $k[$j++] = "Incorrect RM4SCC check digit provided"; //#10665 + $0.raiseerror(); //#10665 + } //#10665 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#10667 + } //#10667 + $1.encs = $a(["3300", "2211", "2301", "2310", "3201", "3210", "1122", "0033", "0123", "0132", "1023", "1032", "1302", "0213", "0303", "0312", "1203", "1212", "1320", "0231", "0321", "0330", "1221", "1230", "3102", "2013", "2103", "2112", "3003", "3012", "3120", "2031", "2121", "2130", "3021", "3030", "2", "3"]); //#10679 + $1.encstr = $s($f(($1.barlen * 4) + 6)); //#10681 + $1.txt = $a($f($1.barlen + 1)); //#10682 + $puti($1.encstr, 0, $get($1.encs, 36)); //#10685 + for (var _x = 0, _w = $f($1.barlen - 1); _x <= _w; _x += 1) { //#10692 + $1.i = _x; //#10688 + $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); //#10689 + $puti($1.encstr, ($1.i * 4) + 1, $get($1.encs, $1.indx)); //#10690 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), (($1.i * 4) + 1) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#10691 + } //#10691 + $puti($1.encstr, $f(($1.barlen * 4) + 1), $get($1.encs, $1.checksum)); //#10695 + if ($1.includecheckintext) { //#10699 + $put($1.txt, $1.barlen, $a([$geti($1.barchars, $1.checksum, 1), ($f(($1.barlen * 4) + 1)) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#10697 + } else { //#10699 + $put($1.txt, $1.barlen, $a([" ", ($f(($1.barlen * 4) + 1)) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#10699 + } //#10699 + $puti($1.encstr, $f(($1.barlen * 4) + 5), $get($1.encs, 37)); //#10703 + $1.bbs = $a($1.encstr.length); //#10705 + $1.bhs = $a($1.encstr.length); //#10706 + for (var _1p = 0, _1o = $1.encstr.length - 1; _1p <= _1o; _1p += 1) { //#10726 + $1.i = _1p; //#10708 + $1.enc = $geti($1.encstr, $1.i, 1); //#10709 + if ($eq($1.enc, "0")) { //#10713 + $put($1.bbs, $1.i, (3 * $1.height) / 8); //#10711 + $put($1.bhs, $1.i, (2 * $1.height) / 8); //#10712 + } //#10712 + if ($eq($1.enc, "1")) { //#10717 + $put($1.bbs, $1.i, (0 * $1.height) / 8); //#10715 + $put($1.bhs, $1.i, (5 * $1.height) / 8); //#10716 + } //#10716 + if ($eq($1.enc, "2")) { //#10721 + $put($1.bbs, $1.i, (3 * $1.height) / 8); //#10719 + $put($1.bhs, $1.i, (5 * $1.height) / 8); //#10720 + } //#10720 + if ($eq($1.enc, "3")) { //#10725 + $put($1.bbs, $1.i, (0 * $1.height) / 8); //#10723 + $put($1.bhs, $1.i, (8 * $1.height) / 8); //#10724 + } //#10724 + } //#10724 + $k[$j++] = Infinity; //#10737 + var _2L = $1.bbs; //#10731 + var _2M = $1.bhs; //#10732 + $k[$j++] = Infinity; //#10733 + for (var _2O = 0, _2P = $1.bhs.length - 1; _2O < _2P; _2O++) { //#10733 + $k[$j++] = 1.44; //#10733 + $k[$j++] = 1.872; //#10733 + } //#10733 + $k[$j++] = 1.44; //#10733 + var _2Q = $a(); //#10733 + $k[$j++] = 'ren'; //#10736 + $k[$j++] = $0.renlinear; //#10736 + $k[$j++] = 'bbs'; //#10736 + $k[$j++] = _2L; //#10736 + $k[$j++] = 'bhs'; //#10736 + $k[$j++] = _2M; //#10736 + $k[$j++] = 'sbs'; //#10736 + $k[$j++] = _2Q; //#10736 + if ($1.includetext) { //#10736 + $k[$j++] = 'txt'; //#10735 + $k[$j++] = $1.txt; //#10735 + } //#10735 + $k[$j++] = 'opt'; //#10737 + $k[$j++] = $1.options; //#10737 + var _2U = $d(); //#10737 + $k[$j++] = _2U; //#10740 + if (!$1.dontdraw) { //#10740 + $0.renlinear(); //#10740 + } //#10740 }; $0.auspost = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = .175; - $1.custinfoenc = "character"; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.encs = $a([ "000", "001", "002", "010", "011", "012", "020", "021", "022", "100", "101", "102", "110", "111", "112", "120", "121", "122", "200", "201", "202", "210", "211", "212", "220", "221", "222", "300", "301", "302", "310", "311", "312", "320", "321", "322", "023", "030", "031", "032", "033", "103", "113", "123", "130", "131", "132", "133", "203", "213", "223", "230", "231", "232", "233", "303", "313", "323", "330", "331", "332", "333", "003", "013", "00", "01", "02", "10", "11", "12", "20", "21", "22", "30", "13", "3" ]); - $1.barchars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz #"; - $1.barlen = $1.barcode.length; - if ($eq($geti($1.barcode, 0, 2), "11")) { - $k[$j++] = 37; - } - if ($eq($geti($1.barcode, 0, 2), "45")) { - $k[$j++] = 37; - } - if ($eq($geti($1.barcode, 0, 2), "59")) { - $k[$j++] = 52; - } - if ($eq($geti($1.barcode, 0, 2), "62")) { - $k[$j++] = 67; - } - $1.encstr = $s($k[--$j]); - $1.txt = $a($1.barlen - 2); - $puti($1.encstr, 0, $get($1.encs, 74)); - for (var _Q = 0; _Q <= 1; _Q += 1) { - $1.i = _Q; - $puti($1.encstr, $1.i * 2 + 2, $get($1.encs, ~~$z($geti($1.barcode, $1.i, 1)) + 64)); - } - for (var _Y = 2; _Y <= 9; _Y += 1) { - $1.i = _Y; - $puti($1.encstr, $1.i * 2 + 2, $get($1.encs, ~~$z($geti($1.barcode, $1.i, 1)) + 64)); - $put($1.txt, $1.i - 2, $a([ $geti($1.barcode, $1.i, 1), (($1.i - 2) * 2 + 6) * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - } - if ($eq($1.custinfoenc, "numeric")) { - for (var _t = 0, _s = $1.barlen - 11; _t <= _s; _t += 1) { - $1.i = _t; - $puti($1.encstr, $1.i * 2 + 22, $get($1.encs, ~~$z($geti($1.barcode, $1.i + 10, 1)) + 64)); - $put($1.txt, $1.i + 8, $a([ $geti($1.barcode, $1.i + 10, 1), ($1.i * 2 + 22) * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $1.ciflen = ($1.barlen - 10) * 2; - } else { - for (var _1E = 0, _1D = $1.barlen - 11; _1E <= _1D; _1E += 1) { - $1.i = _1E; - $search($1.barchars, $geti($1.barcode, $1.i + 10, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - $puti($1.encstr, $1.i * 3 + 22, $1.enc); - $put($1.txt, $1.i + 8, $a([ $geti($1.barcode, $1.i + 10, 1), ($1.i * 3 + 22) * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $1.ciflen = ($1.barlen - 10) * 3; - } - for (var _1e = 22 + $1.ciflen, _1d = $1.encstr.length - 14; _1e <= _1d; _1e += 1) { - $puti($1.encstr, _1e, $get($1.encs, 75)); - } - $1.rstable = $a(64 * 64); - $k[$j++] = $1.rstable; - $k[$j++] = 0; - $k[$j++] = Infinity; - for (var _1k = 0, _1l = 64; _1k < _1l; _1k++) { - $k[$j++] = 0; - } - var _1m = $a(); - var _1n = $k[--$j]; - $puti($k[--$j], _1n, _1m); - $k[$j++] = $1.rstable; - $k[$j++] = 64; - $k[$j++] = Infinity; - for (var _1q = 0; _1q <= 63; _1q += 1) { - $k[$j++] = _1q; - } - var _1r = $a(); - var _1s = $k[--$j]; - $puti($k[--$j], _1s, _1r); - $1.prev = 1; - for (var _1u = 0, _1v = 64; _1u < _1v; _1u++) { - $1.next = $1.prev << 1; - if (($1.next & 64) != 0) { - $1.next = $1.next ^ 67; - } - for (var _1z = 0; _1z <= 63; _1z += 1) { - $1.j = _1z; + var $1 = {}; //#10769 + $1.options = $k[--$j]; //#10771 + $1.barcode = $k[--$j]; //#10772 + $1.dontdraw = false; //#10774 + $1.includetext = false; //#10775 + $1.textfont = "OCR-B"; //#10776 + $1.textsize = 10; //#10777 + $1.textyoffset = -8; //#10778 + $1.height = 0.175; //#10779 + $1.custinfoenc = "character"; //#10780 + $forall($1.options, function() { //#10791 + var _3 = $k[--$j]; //#10791 + $1[$k[--$j]] = _3; //#10791 + }); //#10791 + $1.textfont = "" + $1.textfont; //#10793 + $1.textsize = +$1.textsize; //#10794 + $1.textyoffset = +$1.textyoffset; //#10795 + $1.height = +$1.height; //#10796 + $1.encs = $a(["000", "001", "002", "010", "011", "012", "020", "021", "022", "100", "101", "102", "110", "111", "112", "120", "121", "122", "200", "201", "202", "210", "211", "212", "220", "221", "222", "300", "301", "302", "310", "311", "312", "320", "321", "322", "023", "030", "031", "032", "033", "103", "113", "123", "130", "131", "132", "133", "203", "213", "223", "230", "231", "232", "233", "303", "313", "323", "330", "331", "332", "333", "003", "013", "00", "01", "02", "10", "11", "12", "20", "21", "22", "30", "13", "3"]); //#10810 + $1.barchars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz #"; //#10813 + $1.barlen = $1.barcode.length; //#10815 + if ($eq($geti($1.barcode, 0, 2), "11")) { //#10816 + $k[$j++] = 37; //#10816 + } //#10816 + if ($eq($geti($1.barcode, 0, 2), "45")) { //#10817 + $k[$j++] = 37; //#10817 + } //#10817 + if ($eq($geti($1.barcode, 0, 2), "59")) { //#10818 + $k[$j++] = 52; //#10818 + } //#10818 + if ($eq($geti($1.barcode, 0, 2), "62")) { //#10819 + $k[$j++] = 67; //#10819 + } //#10819 + $1.encstr = $s($k[--$j]); //#10820 + $1.txt = $a($1.barlen - 2); //#10821 + $puti($1.encstr, 0, $get($1.encs, 74)); //#10824 + for (var _Q = 0; _Q <= 1; _Q += 1) { //#10831 + $1.i = _Q; //#10828 + $puti($1.encstr, ($1.i * 2) + 2, $get($1.encs, (~~$z($geti($1.barcode, $1.i, 1))) + 64)); //#10830 + } //#10830 + for (var _Y = 2; _Y <= 9; _Y += 1) { //#10839 + $1.i = _Y; //#10835 + $puti($1.encstr, ($1.i * 2) + 2, $get($1.encs, (~~$z($geti($1.barcode, $1.i, 1))) + 64)); //#10837 + $put($1.txt, $1.i - 2, $a([$geti($1.barcode, $1.i, 1), ((($1.i - 2) * 2) + 6) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#10838 + } //#10838 + if ($eq($1.custinfoenc, "numeric")) { //#10861 + for (var _t = 0, _s = $1.barlen - 11; _t <= _s; _t += 1) { //#10848 + $1.i = _t; //#10844 + $puti($1.encstr, ($1.i * 2) + 22, $get($1.encs, (~~$z($geti($1.barcode, $1.i + 10, 1))) + 64)); //#10846 + $put($1.txt, $1.i + 8, $a([$geti($1.barcode, $1.i + 10, 1), (($1.i * 2) + 22) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#10847 + } //#10847 + $1.ciflen = ($1.barlen - 10) * 2; //#10849 + } else { //#10861 + for (var _1E = 0, _1D = $1.barlen - 11; _1E <= _1D; _1E += 1) { //#10860 + $1.i = _1E; //#10852 + $search($1.barchars, $geti($1.barcode, $1.i + 10, 1)); //#10853 + $j--; //#10854 + $1.indx = $k[--$j].length; //#10855 + $j -= 2; //#10856 + $1.enc = $get($1.encs, $1.indx); //#10857 + $puti($1.encstr, ($1.i * 3) + 22, $1.enc); //#10858 + $put($1.txt, $1.i + 8, $a([$geti($1.barcode, $1.i + 10, 1), (($1.i * 3) + 22) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#10859 + } //#10859 + $1.ciflen = ($1.barlen - 10) * 3; //#10861 + } //#10861 + for (var _1e = 22 + $1.ciflen, _1d = $1.encstr.length - 14; _1e <= _1d; _1e += 1) { //#10867 + $puti($1.encstr, _1e, $get($1.encs, 75)); //#10866 + } //#10866 + $1.rstable = $a(64 * 64); //#10870 + $k[$j++] = $1.rstable; //#10871 + $k[$j++] = 0; //#10871 + $k[$j++] = Infinity; //#10871 + for (var _1k = 0, _1l = 64; _1k < _1l; _1k++) { //#10871 + $k[$j++] = 0; //#10871 + } //#10871 + var _1m = $a(); //#10871 + var _1n = $k[--$j]; //#10871 + $puti($k[--$j], _1n, _1m); //#10871 + $k[$j++] = $1.rstable; //#10872 + $k[$j++] = 64; //#10872 + $k[$j++] = Infinity; //#10872 + for (var _1q = 0; _1q <= 63; _1q += 1) { //#10872 + $k[$j++] = _1q; //#10872 + } //#10872 + var _1r = $a(); //#10872 + var _1s = $k[--$j]; //#10872 + $puti($k[--$j], _1s, _1r); //#10872 + $1.prev = 1; //#10873 + for (var _1u = 0, _1v = 64; _1u < _1v; _1u++) { //#10888 + $1.next = $1.prev << 1; //#10875 + if (($1.next & 64) != 0) { //#10878 + $1.next = $1.next ^ 67; //#10877 + } //#10877 + for (var _1z = 0; _1z <= 63; _1z += 1) { //#10886 + $1.j = _1z; //#10880 $1.nextcell = function() { - $k[$j++] = $1.rstable; - $k[$j++] = 64 * $1.next + $1.j; - }; - $1.nextcell(); - var _27 = $k[--$j]; - $put($k[--$j], _27, $get($1.rstable, 64 * $1.prev + $1.j) << 1); - $1.nextcell(); - var _29 = $k[--$j]; - if (($get($k[--$j], _29) & 64) != 0) { - $1.nextcell(); - $1.nextcell(); - var _2C = $k[--$j]; - var _2E = $get($k[--$j], _2C); - var _2F = $k[--$j]; - $put($k[--$j], _2F, _2E ^ 67); - } - } - $1.prev = $1.next; - } - $1.rscodes = $a(~~(($1.encstr.length - 16) / 3) + 4); - $k[$j++] = $1.rscodes; - $k[$j++] = 0; - $k[$j++] = Infinity; - for (var _2L = 0, _2M = 4; _2L < _2M; _2L++) { - $k[$j++] = 0; - } - var _2N = $a(); - var _2O = $k[--$j]; - $puti($k[--$j], _2O, _2N); - for (var _2S = 2, _2R = $1.encstr.length - 16; _2S <= _2R; _2S += 3) { - $1.i = _2S; - $put($1.rscodes, $1.rscodes.length - ~~(($1.i - 2) / 3) - 1, ~~$z($geti($1.encstr, $1.i, 1)) * 16 + ~~$z($geti($1.encstr, $1.i + 1, 1)) * 4 + ~~$z($geti($1.encstr, $1.i + 2, 1))); - } - for (var _2g = $1.rscodes.length - 5; _2g >= 0; _2g -= 1) { - $1.i = _2g; - for (var _2h = 0; _2h <= 4; _2h += 1) { - $1.j = _2h; - $put($1.rscodes, $1.i + $1.j, $xo($get($1.rscodes, $1.i + $1.j), $get($1.rstable, $f(64 * $get($a([ 48, 17, 29, 30, 1 ]), $1.j) + $get($1.rscodes, $1.i + 4))))); - } - } - $1.checkcode = $strcpy($s(12), "000000000000"); - for (var _2z = 0; _2z <= 3; _2z += 1) { - $1.i = _2z; - $1.enc = $cvrs($s(3), $get($1.rscodes, 3 - $1.i), 4); - $puti($1.checkcode, $1.i * 3 + (3 - $1.enc.length), $1.enc); - } - $puti($1.encstr, $1.encstr.length - 14, $1.checkcode); - $puti($1.encstr, $1.encstr.length - 2, $get($1.encs, 74)); - $1.bbs = $a($1.encstr.length); - $1.bhs = $a($1.encstr.length); - for (var _3M = 0, _3L = $1.encstr.length - 1; _3M <= _3L; _3M += 1) { - $1.i = _3M; - $1.enc = $geti($1.encstr, $1.i, 1); - if ($eq($1.enc, "0")) { - $put($1.bbs, $1.i, 0 * $1.height / 8); - $put($1.bhs, $1.i, 8 * $1.height / 8); - } - if ($eq($1.enc, "1")) { - $put($1.bbs, $1.i, 3 * $1.height / 8); - $put($1.bhs, $1.i, 5 * $1.height / 8); - } - if ($eq($1.enc, "2")) { - $put($1.bbs, $1.i, 0 * $1.height / 8); - $put($1.bhs, $1.i, 5 * $1.height / 8); - } - if ($eq($1.enc, "3")) { - $put($1.bbs, $1.i, 3 * $1.height / 8); - $put($1.bhs, $1.i, 2 * $1.height / 8); - } - } - $k[$j++] = Infinity; - var _3s = $1.bbs; - var _3t = $1.bhs; - $k[$j++] = Infinity; - for (var _3v = 0, _3w = $1.bhs.length - 1; _3v < _3w; _3v++) { - $k[$j++] = 1.44; - $k[$j++] = 1.872; - } - $k[$j++] = 1.44; - var _3x = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "bbs"; - $k[$j++] = _3s; - $k[$j++] = "bhs"; - $k[$j++] = _3t; - $k[$j++] = "sbs"; - $k[$j++] = _3x; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _41 = $d(); - $k[$j++] = _41; - if (!$1.dontdraw) { - $0.renlinear(); - } + $k[$j++] = $1.rstable; //#10881 + $k[$j++] = (64 * $1.next) + $1.j; //#10881 + }; //#10881 + $1.nextcell(); //#10882 + var _27 = $k[--$j]; //#10882 + $put($k[--$j], _27, $get($1.rstable, (64 * $1.prev) + $1.j) << 1); //#10882 + $1.nextcell(); //#10883 + var _29 = $k[--$j]; //#10883 + if (($get($k[--$j], _29) & 64) != 0) { //#10885 + $1.nextcell(); //#10884 + $1.nextcell(); //#10884 + var _2C = $k[--$j]; //#10884 + var _2E = $get($k[--$j], _2C); //#10884 + var _2F = $k[--$j]; //#10884 + $put($k[--$j], _2F, _2E ^ 67); //#10884 + } //#10884 + } //#10884 + $1.prev = $1.next; //#10887 + } //#10887 + $1.rscodes = $a((~~(($1.encstr.length - 16) / 3)) + 4); //#10891 + $k[$j++] = $1.rscodes; //#10892 + $k[$j++] = 0; //#10892 + $k[$j++] = Infinity; //#10892 + for (var _2L = 0, _2M = 4; _2L < _2M; _2L++) { //#10892 + $k[$j++] = 0; //#10892 + } //#10892 + var _2N = $a(); //#10892 + var _2O = $k[--$j]; //#10892 + $puti($k[--$j], _2O, _2N); //#10892 + for (var _2S = 2, _2R = $1.encstr.length - 16; _2S <= _2R; _2S += 3) { //#10900 + $1.i = _2S; //#10894 + $put($1.rscodes, ($1.rscodes.length - (~~(($1.i - 2) / 3))) - 1, (((~~$z($geti($1.encstr, $1.i, 1))) * 16) + ((~~$z($geti($1.encstr, $1.i + 1, 1))) * 4)) + (~~$z($geti($1.encstr, $1.i + 2, 1)))); //#10899 + } //#10899 + for (var _2g = $1.rscodes.length - 5; _2g >= 0; _2g -= 1) { //#10909 + $1.i = _2g; //#10902 + for (var _2h = 0; _2h <= 4; _2h += 1) { //#10908 + $1.j = _2h; //#10904 + $put($1.rscodes, $1.i + $1.j, $xo($get($1.rscodes, $1.i + $1.j), $get($1.rstable, $f((64 * $get($a([48, 17, 29, 30, 1]), $1.j)) + $get($1.rscodes, $1.i + 4))))); //#10907 + } //#10907 + } //#10907 + $1.checkcode = $strcpy($s(12), "000000000000"); //#10910 + for (var _2z = 0; _2z <= 3; _2z += 1) { //#10915 + $1.i = _2z; //#10912 + $1.enc = $cvrs($s(3), $get($1.rscodes, 3 - $1.i), 4); //#10913 + $puti($1.checkcode, ($1.i * 3) + (3 - $1.enc.length), $1.enc); //#10914 + } //#10914 + $puti($1.encstr, $1.encstr.length - 14, $1.checkcode); //#10918 + $puti($1.encstr, $1.encstr.length - 2, $get($1.encs, 74)); //#10919 + $1.bbs = $a($1.encstr.length); //#10921 + $1.bhs = $a($1.encstr.length); //#10922 + for (var _3M = 0, _3L = $1.encstr.length - 1; _3M <= _3L; _3M += 1) { //#10942 + $1.i = _3M; //#10924 + $1.enc = $geti($1.encstr, $1.i, 1); //#10925 + if ($eq($1.enc, "0")) { //#10929 + $put($1.bbs, $1.i, (0 * $1.height) / 8); //#10927 + $put($1.bhs, $1.i, (8 * $1.height) / 8); //#10928 + } //#10928 + if ($eq($1.enc, "1")) { //#10933 + $put($1.bbs, $1.i, (3 * $1.height) / 8); //#10931 + $put($1.bhs, $1.i, (5 * $1.height) / 8); //#10932 + } //#10932 + if ($eq($1.enc, "2")) { //#10937 + $put($1.bbs, $1.i, (0 * $1.height) / 8); //#10935 + $put($1.bhs, $1.i, (5 * $1.height) / 8); //#10936 + } //#10936 + if ($eq($1.enc, "3")) { //#10941 + $put($1.bbs, $1.i, (3 * $1.height) / 8); //#10939 + $put($1.bhs, $1.i, (2 * $1.height) / 8); //#10940 + } //#10940 + } //#10940 + $k[$j++] = Infinity; //#10953 + var _3s = $1.bbs; //#10947 + var _3t = $1.bhs; //#10948 + $k[$j++] = Infinity; //#10949 + for (var _3v = 0, _3w = $1.bhs.length - 1; _3v < _3w; _3v++) { //#10949 + $k[$j++] = 1.44; //#10949 + $k[$j++] = 1.872; //#10949 + } //#10949 + $k[$j++] = 1.44; //#10949 + var _3x = $a(); //#10949 + $k[$j++] = 'ren'; //#10952 + $k[$j++] = $0.renlinear; //#10952 + $k[$j++] = 'bbs'; //#10952 + $k[$j++] = _3s; //#10952 + $k[$j++] = 'bhs'; //#10952 + $k[$j++] = _3t; //#10952 + $k[$j++] = 'sbs'; //#10952 + $k[$j++] = _3x; //#10952 + if ($1.includetext) { //#10952 + $k[$j++] = 'txt'; //#10951 + $k[$j++] = $1.txt; //#10951 + } //#10951 + $k[$j++] = 'opt'; //#10953 + $k[$j++] = $1.options; //#10953 + var _41 = $d(); //#10953 + $k[$j++] = _41; //#10956 + if (!$1.dontdraw) { //#10956 + $0.renlinear(); //#10956 + } //#10956 }; $0.kix = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = .175; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.encs = $a([ "0033", "0123", "0132", "1023", "1032", "1122", "0213", "0303", "0312", "1203", "1212", "1302", "0231", "0321", "0330", "1221", "1230", "1320", "2013", "2103", "2112", "3003", "3012", "3102", "2031", "2121", "2130", "3021", "3030", "3120", "2211", "2301", "2310", "3201", "3210", "3300" ]); - $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; - $1.charvals = new Map(); - for (var _A = 0; _A <= 35; _A += 1) { - $put($1.charvals, $geti($1.barchars, _A, 1), _A); - } - for (var _G = 0, _F = $1.barcode.length - 1; _G <= _F; _G += 1) { - var _K = $get($1.charvals, $geti($1.barcode, _G, 1)) !== undefined; - if (!_K) { - $k[$j++] = "bwipp.kixBadCharacter"; - $k[$j++] = "KIX must contain only capital letters and digits"; - $0.raiseerror(); - } - } - $1.barlen = $1.barcode.length; - $1.encstr = $s($1.barlen * 4); - $1.txt = $a($1.barlen); - for (var _S = 0, _R = $1.barlen - 1; _S <= _R; _S += 1) { - $1.i = _S; - $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); - $puti($1.encstr, $1.i * 4, $get($1.encs, $1.indx)); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $1.i * 4 * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $1.bbs = $a($1.encstr.length); - $1.bhs = $a($1.encstr.length); - for (var _t = 0, _s = $1.encstr.length - 1; _t <= _s; _t += 1) { - $1.i = _t; - $1.enc = $geti($1.encstr, $1.i, 1); - if ($eq($1.enc, "0")) { - $put($1.bbs, $1.i, 3 * $1.height / 8); - $put($1.bhs, $1.i, 2 * $1.height / 8); - } - if ($eq($1.enc, "1")) { - $put($1.bbs, $1.i, 0 * $1.height / 8); - $put($1.bhs, $1.i, 5 * $1.height / 8); - } - if ($eq($1.enc, "2")) { - $put($1.bbs, $1.i, 3 * $1.height / 8); - $put($1.bhs, $1.i, 5 * $1.height / 8); - } - if ($eq($1.enc, "3")) { - $put($1.bbs, $1.i, 0 * $1.height / 8); - $put($1.bhs, $1.i, 8 * $1.height / 8); - } - } - $k[$j++] = Infinity; - var _1P = $1.bbs; - var _1Q = $1.bhs; - $k[$j++] = Infinity; - for (var _1S = 0, _1T = $1.bhs.length - 1; _1S < _1T; _1S++) { - $k[$j++] = 1.44; - $k[$j++] = 1.872; - } - $k[$j++] = 1.44; - var _1U = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "bbs"; - $k[$j++] = _1P; - $k[$j++] = "bhs"; - $k[$j++] = _1Q; - $k[$j++] = "sbs"; - $k[$j++] = _1U; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _1Y = $d(); - $k[$j++] = _1Y; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#10985 + $1.options = $k[--$j]; //#10987 + $1.barcode = $k[--$j]; //#10988 + $1.dontdraw = false; //#10990 + $1.includetext = false; //#10991 + $1.textfont = "OCR-B"; //#10992 + $1.textsize = 10; //#10993 + $1.textyoffset = -8; //#10994 + $1.height = 0.175; //#10995 + $forall($1.options, function() { //#11006 + var _3 = $k[--$j]; //#11006 + $1[$k[--$j]] = _3; //#11006 + }); //#11006 + $1.textfont = "" + $1.textfont; //#11008 + $1.textsize = +$1.textsize; //#11009 + $1.textyoffset = +$1.textyoffset; //#11010 + $1.height = +$1.height; //#11011 + $1.encs = $a(["0033", "0123", "0132", "1023", "1032", "1122", "0213", "0303", "0312", "1203", "1212", "1302", "0231", "0321", "0330", "1221", "1230", "1320", "2013", "2103", "2112", "3003", "3012", "3102", "2031", "2121", "2130", "3021", "3030", "3120", "2211", "2301", "2310", "3201", "3210", "3300"]); //#11021 + $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; //#11024 + $1.charvals = new Map; //#11025 + for (var _A = 0; _A <= 35; _A += 1) { //#11026 + $put($1.charvals, $geti($1.barchars, _A, 1), _A); //#11026 + } //#11026 + for (var _G = 0, _F = $1.barcode.length - 1; _G <= _F; _G += 1) { //#11033 + var _K = $get($1.charvals, $geti($1.barcode, _G, 1)) !== undefined; //#11030 + if (!_K) { //#11032 + $k[$j++] = 'bwipp.kixBadCharacter'; //#11031 + $k[$j++] = "KIX must contain only capital letters and digits"; //#11031 + $0.raiseerror(); //#11031 + } //#11031 + } //#11031 + $1.barlen = $1.barcode.length; //#11035 + $1.encstr = $s($1.barlen * 4); //#11036 + $1.txt = $a($1.barlen); //#11037 + for (var _S = 0, _R = $1.barlen - 1; _S <= _R; _S += 1) { //#11044 + $1.i = _S; //#11040 + $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); //#11041 + $puti($1.encstr, $1.i * 4, $get($1.encs, $1.indx)); //#11042 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), ($1.i * 4) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#11043 + } //#11043 + $1.bbs = $a($1.encstr.length); //#11046 + $1.bhs = $a($1.encstr.length); //#11047 + for (var _t = 0, _s = $1.encstr.length - 1; _t <= _s; _t += 1) { //#11067 + $1.i = _t; //#11049 + $1.enc = $geti($1.encstr, $1.i, 1); //#11050 + if ($eq($1.enc, "0")) { //#11054 + $put($1.bbs, $1.i, (3 * $1.height) / 8); //#11052 + $put($1.bhs, $1.i, (2 * $1.height) / 8); //#11053 + } //#11053 + if ($eq($1.enc, "1")) { //#11058 + $put($1.bbs, $1.i, (0 * $1.height) / 8); //#11056 + $put($1.bhs, $1.i, (5 * $1.height) / 8); //#11057 + } //#11057 + if ($eq($1.enc, "2")) { //#11062 + $put($1.bbs, $1.i, (3 * $1.height) / 8); //#11060 + $put($1.bhs, $1.i, (5 * $1.height) / 8); //#11061 + } //#11061 + if ($eq($1.enc, "3")) { //#11066 + $put($1.bbs, $1.i, (0 * $1.height) / 8); //#11064 + $put($1.bhs, $1.i, (8 * $1.height) / 8); //#11065 + } //#11065 + } //#11065 + $k[$j++] = Infinity; //#11078 + var _1P = $1.bbs; //#11072 + var _1Q = $1.bhs; //#11073 + $k[$j++] = Infinity; //#11074 + for (var _1S = 0, _1T = $1.bhs.length - 1; _1S < _1T; _1S++) { //#11074 + $k[$j++] = 1.44; //#11074 + $k[$j++] = 1.872; //#11074 + } //#11074 + $k[$j++] = 1.44; //#11074 + var _1U = $a(); //#11074 + $k[$j++] = 'ren'; //#11077 + $k[$j++] = $0.renlinear; //#11077 + $k[$j++] = 'bbs'; //#11077 + $k[$j++] = _1P; //#11077 + $k[$j++] = 'bhs'; //#11077 + $k[$j++] = _1Q; //#11077 + $k[$j++] = 'sbs'; //#11077 + $k[$j++] = _1U; //#11077 + if ($1.includetext) { //#11077 + $k[$j++] = 'txt'; //#11076 + $k[$j++] = $1.txt; //#11076 + } //#11076 + $k[$j++] = 'opt'; //#11078 + $k[$j++] = $1.options; //#11078 + var _1Y = $d(); //#11078 + $k[$j++] = _1Y; //#11081 + if (!$1.dontdraw) { //#11081 + $0.renlinear(); //#11081 + } //#11081 }; $0.japanpost = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.includecheckintext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = .175; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.encs = $a([ "300", "330", "312", "132", "321", "303", "123", "231", "213", "033", "030", "120", "102", "210", "012", "201", "021", "003", "333", "31", "13" ]); - $1.barchars = "0123456789-ABCDEFGHIJKLMNOPQRSTUVWXYZ"; - $1.barlen = $1.barcode.length; - $1.encstr = $s((20 + 1) * 3 + 4); - $1.digits = $a(20); - $1.txt = $a($1.barlen + 1); - $puti($1.encstr, 0, $get($1.encs, 19)); - $1.checksum = 0; - $1.j = 0; - $1.i = 0; - for (var _K = 0, _J = $1.barlen - 1; _K <= _J; _K += 1) { - $1.i = _K; - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - if ($1.indx >= 11 && $1.indx < 37) { - if ($1.j > 18) { - break; - } - $1.digit = ~~(($1.indx - 1) / 10) + 10; - $puti($1.encstr, $1.j * 3 + 2, $get($1.encs, $1.digit)); - $1.checksum = $1.checksum + $1.digit; - $put($1.digits, $1.j, $1.digit); - $1.j = $1.j + 1; - } - if ($1.j > 19) { - break; - } - $1.digit = 0; - if ($1.indx == 37) { - $1.digit = 14; - } - if ($1.indx >= 11 && $1.indx < 37) { - $1.digit = ($1.indx - 1) % 10; - } - if ($1.indx < 11) { - $1.digit = $1.indx; - } - $puti($1.encstr, $1.j * 3 + 2, $get($1.encs, $1.digit)); - $1.checksum = $1.checksum + $1.digit; - $put($1.digits, $1.j, $1.digit); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), ($1.j * 3 + 2) * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - $1.j = $1.j + 1; - } - for (var _19 = $1.j, _18 = 20 - 1; _19 <= _18; _19 += 1) { - $1.k = _19; - $puti($1.encstr, $1.k * 3 + 2, $get($1.encs, 14)); - $1.checksum = $1.checksum + 14; - $put($1.digits, $1.k, 14); - } - $1.checksum = 19 - $1.checksum % 19; - $puti($1.encstr, 2 + 20 * 3, $get($1.encs, $1.checksum)); - $puti($1.encstr, 2 + 21 * 3, $get($1.encs, 20)); - $1.checkdigit = " "; - if ($1.includecheckintext) { - $1.checkdigit = $geti($1.barchars, $1.checksum, 1); - } - $put($1.txt, $1.i + 1, $a([ $1.checkdigit, (20 * 3 + 2) * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - $puti($1.encstr, (20 + 1) * 3 + 2, $get($1.encs, 20)); - $1.bbs = $a(21 * 3 + 4); - $1.bhs = $a($1.bbs.length); - for (var _1i = 0, _1h = $1.bbs.length - 1; _1i <= _1h; _1i += 1) { - $1.i = _1i; - $1.enc = $geti($1.encstr, $1.i, 1); - $1.bunit = 0; - $1.hunit = 0; - if ($eq($1.enc, "0")) { - $1.bunit = 3; - $1.hunit = 2; - } - if ($eq($1.enc, "1")) { - $1.bunit = 0; - $1.hunit = 5; - } - if ($eq($1.enc, "2")) { - $1.bunit = 3; - $1.hunit = 5; - } - if ($eq($1.enc, "3")) { - $1.bunit = 0; - $1.hunit = 8; - } - $put($1.bbs, $1.i, $1.bunit * $1.height / 8); - $put($1.bhs, $1.i, $1.hunit * $1.height / 8); - } - $k[$j++] = Infinity; - var _1y = $1.bbs; - var _1z = $1.bhs; - $k[$j++] = Infinity; - for (var _21 = 0, _22 = $1.bhs.length - 1; _21 < _22; _21++) { - $k[$j++] = 1.44; - $k[$j++] = 1.872; - } - $k[$j++] = 1.44; - var _23 = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "bbs"; - $k[$j++] = _1y; - $k[$j++] = "bhs"; - $k[$j++] = _1z; - $k[$j++] = "sbs"; - $k[$j++] = _23; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _27 = $d(); - $k[$j++] = _27; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#11110 + $1.options = $k[--$j]; //#11112 + $1.barcode = $k[--$j]; //#11113 + $1.dontdraw = false; //#11115 + $1.includetext = false; //#11116 + $1.includecheckintext = false; //#11117 + $1.textfont = "OCR-B"; //#11118 + $1.textsize = 10; //#11119 + $1.textyoffset = -8; //#11120 + $1.height = 0.175; //#11121 + $forall($1.options, function() { //#11132 + var _3 = $k[--$j]; //#11132 + $1[$k[--$j]] = _3; //#11132 + }); //#11132 + $1.textfont = "" + $1.textfont; //#11134 + $1.textsize = +$1.textsize; //#11135 + $1.textyoffset = +$1.textyoffset; //#11136 + $1.height = +$1.height; //#11137 + $1.encs = $a(["300", "330", "312", "132", "321", "303", "123", "231", "213", "033", "030", "120", "102", "210", "012", "201", "021", "003", "333", "31", "13"]); //#11145 + $1.barchars = "0123456789-ABCDEFGHIJKLMNOPQRSTUVWXYZ"; //#11148 + $1.barlen = $1.barcode.length; //#11149 + $1.encstr = $s(((20 + 1) * 3) + 4); //#11151 + $1.digits = $a(20); //#11152 + $1.txt = $a($1.barlen + 1); //#11153 + $puti($1.encstr, 0, $get($1.encs, 19)); //#11156 + $1.checksum = 0; //#11158 + $1.j = 0; //#11159 + $1.i = 0; //#11159 + for (var _K = 0, _J = $1.barlen - 1; _K <= _J; _K += 1) { //#11193 + $1.i = _K; //#11161 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#11162 + $j--; //#11163 + $1.indx = $k[--$j].length; //#11164 + $j -= 2; //#11165 + if (($1.indx >= 11) && ($1.indx < 37)) { //#11176 + if ($1.j > 18) { //#11167 + break; //#11167 + } //#11167 + $1.digit = (~~(($1.indx - 1) / 10)) + 10; //#11171 + $puti($1.encstr, ($1.j * 3) + 2, $get($1.encs, $1.digit)); //#11172 + $1.checksum = $1.checksum + $1.digit; //#11173 + $put($1.digits, $1.j, $1.digit); //#11174 + $1.j = $1.j + 1; //#11175 + } //#11175 + if ($1.j > 19) { //#11177 + break; //#11177 + } //#11177 + $1.digit = 0; //#11178 + if ($1.indx == 37) { //#11181 + $1.digit = 14; //#11180 + } //#11180 + if (($1.indx >= 11) && ($1.indx < 37)) { //#11184 + $1.digit = ($1.indx - 1) % 10; //#11183 + } //#11183 + if ($1.indx < 11) { //#11187 + $1.digit = $1.indx; //#11186 + } //#11186 + $puti($1.encstr, ($1.j * 3) + 2, $get($1.encs, $1.digit)); //#11188 + $1.checksum = $1.checksum + $1.digit; //#11189 + $put($1.digits, $1.j, $1.digit); //#11190 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), (($1.j * 3) + 2) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#11191 + $1.j = $1.j + 1; //#11192 + } //#11192 + for (var _19 = $1.j, _18 = 20 - 1; _19 <= _18; _19 += 1) { //#11201 + $1.k = _19; //#11197 + $puti($1.encstr, ($1.k * 3) + 2, $get($1.encs, 14)); //#11198 + $1.checksum = $1.checksum + 14; //#11199 + $put($1.digits, $1.k, 14); //#11200 + } //#11200 + $1.checksum = 19 - ($1.checksum % 19); //#11204 + $puti($1.encstr, 2 + (20 * 3), $get($1.encs, $1.checksum)); //#11205 + $puti($1.encstr, 2 + (21 * 3), $get($1.encs, 20)); //#11208 + $1.checkdigit = " "; //#11209 + if ($1.includecheckintext) { //#11212 + $1.checkdigit = $geti($1.barchars, $1.checksum, 1); //#11211 + } //#11211 + $put($1.txt, $1.i + 1, $a([$1.checkdigit, ((20 * 3) + 2) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#11213 + $puti($1.encstr, ((20 + 1) * 3) + 2, $get($1.encs, 20)); //#11216 + $1.bbs = $a((21 * 3) + 4); //#11218 + $1.bhs = $a($1.bbs.length); //#11219 + for (var _1i = 0, _1h = $1.bbs.length - 1; _1i <= _1h; _1i += 1) { //#11243 + $1.i = _1i; //#11221 + $1.enc = $geti($1.encstr, $1.i, 1); //#11222 + $1.bunit = 0; //#11223 + $1.hunit = 0; //#11224 + if ($eq($1.enc, "0")) { //#11228 + $1.bunit = 3; //#11226 + $1.hunit = 2; //#11227 + } //#11227 + if ($eq($1.enc, "1")) { //#11232 + $1.bunit = 0; //#11230 + $1.hunit = 5; //#11231 + } //#11231 + if ($eq($1.enc, "2")) { //#11236 + $1.bunit = 3; //#11234 + $1.hunit = 5; //#11235 + } //#11235 + if ($eq($1.enc, "3")) { //#11240 + $1.bunit = 0; //#11238 + $1.hunit = 8; //#11239 + } //#11239 + $put($1.bbs, $1.i, ($1.bunit * $1.height) / 8); //#11241 + $put($1.bhs, $1.i, ($1.hunit * $1.height) / 8); //#11242 + } //#11242 + $k[$j++] = Infinity; //#11254 + var _1y = $1.bbs; //#11248 + var _1z = $1.bhs; //#11249 + $k[$j++] = Infinity; //#11250 + for (var _21 = 0, _22 = $1.bhs.length - 1; _21 < _22; _21++) { //#11250 + $k[$j++] = 1.44; //#11250 + $k[$j++] = 1.872; //#11250 + } //#11250 + $k[$j++] = 1.44; //#11250 + var _23 = $a(); //#11250 + $k[$j++] = 'ren'; //#11253 + $k[$j++] = $0.renlinear; //#11253 + $k[$j++] = 'bbs'; //#11253 + $k[$j++] = _1y; //#11253 + $k[$j++] = 'bhs'; //#11253 + $k[$j++] = _1z; //#11253 + $k[$j++] = 'sbs'; //#11253 + $k[$j++] = _23; //#11253 + if ($1.includetext) { //#11253 + $k[$j++] = 'txt'; //#11252 + $k[$j++] = $1.txt; //#11252 + } //#11252 + $k[$j++] = 'opt'; //#11254 + $k[$j++] = $1.options; //#11254 + var _27 = $d(); //#11254 + $k[$j++] = _27; //#11257 + if (!$1.dontdraw) { //#11257 + $0.renlinear(); //#11257 + } //#11257 }; $0.msi = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includecheck = false; - $1.includetext = false; - $1.includecheckintext = false; - $1.checktype = "mod10"; - $1.badmod11 = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.encs = $a([ "12121212", "12121221", "12122112", "12122121", "12211212", "12211221", "12212112", "12212121", "21121212", "21121221", "21", "121" ]); - $1.barchars = "0123456789"; - $1.barlen = $1.barcode.length; - $1.txtlen = $1.barlen; + var $1 = {}; //#11286 + $1.options = $k[--$j]; //#11288 + $1.barcode = $k[--$j]; //#11289 + $1.dontdraw = false; //#11291 + $1.includecheck = false; //#11292 + $1.includetext = false; //#11293 + $1.includecheckintext = false; //#11294 + $1.checktype = "mod10"; //#11295 + $1.badmod11 = false; //#11296 + $1.textfont = "OCR-B"; //#11297 + $1.textsize = 10; //#11298 + $1.textyoffset = -8; //#11299 + $1.height = 1; //#11300 + $forall($1.options, function() { //#11311 + var _3 = $k[--$j]; //#11311 + $1[$k[--$j]] = _3; //#11311 + }); //#11311 + $1.textfont = "" + $1.textfont; //#11313 + $1.textsize = +$1.textsize; //#11314 + $1.textyoffset = +$1.textyoffset; //#11315 + $1.height = +$1.height; //#11316 + $1.encs = $a(["12121212", "12121221", "12122112", "12122121", "12211212", "12211221", "12212112", "12212121", "21121212", "21121221", "21", "121"]); //#11323 + $1.barchars = "0123456789"; //#11326 + $1.barlen = $1.barcode.length; //#11328 + $1.txtlen = $1.barlen; //#11329 $1.mod10 = function() { - $1.code = $k[--$j]; - $k[$j++] = 0; - $k[$j++] = 0; - $forall($1.code, function() { - var _E = $k[--$j]; - var _F = $k[--$j]; - var _G = $k[--$j]; - $k[$j++] = $f($f(_E - 48) + _F * 10); - $k[$j++] = _G; - }); - $j--; - var _H = $k[--$j]; - $k[$j++] = _H * 2; - $k[$j++] = 0; - for (;;) { - var _I = $k[--$j]; - var _J = $k[--$j]; - var _K = ~~(_J / 10); - $k[$j++] = $f(_I + _J % 10); - $k[$j++] = _K; - if (_K == 0) { - $j--; - break; - } - var _L = $k[--$j]; - var _M = $k[--$j]; - $k[$j++] = _L; - $k[$j++] = _M; - } - $k[$j++] = 0; - $k[$j++] = 0; - $forall($1.code, function() { - var _O = $k[--$j]; - var _P = $k[--$j]; - var _Q = $k[--$j]; - $k[$j++] = $f(_P + $f(_O - 48)); - $k[$j++] = _Q; - }); - var _R = $k[--$j]; - var _S = $k[--$j]; - $k[$j++] = _R; - $k[$j++] = _S; - $j--; - var _T = $k[--$j]; - var _W = $s($1.code.length + 1); - $puti(_W, 0, $1.code); - $put(_W, $1.code.length, $f($f(10 - $f($k[--$j] + _T) % 10) % 10 + 48)); - $k[$j++] = _W; - }; + $1.code = $k[--$j]; //#11332 + $k[$j++] = 0; //#11333 + $k[$j++] = 0; //#11333 + $forall($1.code, function() { //#11333 + var _E = $k[--$j]; //#11333 + var _F = $k[--$j]; //#11333 + var _G = $k[--$j]; //#11333 + $k[$j++] = $f($f(_E - 48) + (_F * 10)); //#11333 + $k[$j++] = _G; //#11333 + }); //#11333 + $j--; //#11333 + var _H = $k[--$j]; //#11333 + $k[$j++] = _H * 2; //#11334 + $k[$j++] = 0; //#11334 + for (;;) { //#11334 + var _I = $k[--$j]; //#11334 + var _J = $k[--$j]; //#11334 + var _K = ~~(_J / 10); //#11334 + $k[$j++] = $f(_I + (_J % 10)); //#11334 + $k[$j++] = _K; //#11334 + if (_K == 0) { //#11334 + $j--; //#11334 + break; //#11334 + } //#11334 + var _L = $k[--$j]; //#11334 + var _M = $k[--$j]; //#11334 + $k[$j++] = _L; //#11334 + $k[$j++] = _M; //#11334 + } //#11334 + $k[$j++] = 0; //#11335 + $k[$j++] = 0; //#11335 + $forall($1.code, function() { //#11335 + var _O = $k[--$j]; //#11335 + var _P = $k[--$j]; //#11335 + var _Q = $k[--$j]; //#11335 + $k[$j++] = $f(_P + $f(_O - 48)); //#11335 + $k[$j++] = _Q; //#11335 + }); //#11335 + var _R = $k[--$j]; //#11335 + var _S = $k[--$j]; //#11335 + $k[$j++] = _R; //#11335 + $k[$j++] = _S; //#11335 + $j--; //#11335 + var _T = $k[--$j]; //#11335 + var _W = $s($1.code.length + 1); //#11337 + $puti(_W, 0, $1.code); //#11337 + $put(_W, $1.code.length, $f((($f(10 - ($f($k[--$j] + _T) % 10))) % 10) + 48)); //#11337 + $k[$j++] = _W; //#11337 + }; //#11338 $1.mod11 = function() { - $1.code = $k[--$j]; - $k[$j++] = $1.code.length - 1; - $forall($1.code, function() { - var _c = $k[--$j]; - var _d = $k[--$j]; - $k[$j++] = $f(_c - 48); - $k[$j++] = $f(_d % 6 + 2); - $k[$j++] = $f(_d - 1); - }); - $j--; - $k[$j++] = 0; - for (var _f = 0, _g = $1.code.length; _f < _g; _f++) { - var _h = $k[--$j]; - var _i = $k[--$j]; - var _j = $k[--$j]; - $k[$j++] = $f(_h + _j * _i); - } - var _l = $f(11 - $k[--$j] % 11) % 11; - $k[$j++] = _l; - if (_l == 10 && $1.badmod11) { - $j--; - var _o = $s($1.code.length + 2); - $puti(_o, 0, $1.code); - $puti(_o, $1.code.length, "10"); - $k[$j++] = _o; - } else { - var _s = $s($1.code.length + 1); - $puti(_s, 0, $1.code); - $put(_s, $1.code.length, $f($k[--$j] + 48)); - $k[$j++] = _s; - } - }; + $1.code = $k[--$j]; //#11341 + $k[$j++] = $1.code.length - 1; //#11342 + $forall($1.code, function() { //#11342 + var _c = $k[--$j]; //#11342 + var _d = $k[--$j]; //#11342 + $k[$j++] = $f(_c - 48); //#11342 + $k[$j++] = $f((_d % 6) + 2); //#11342 + $k[$j++] = $f(_d - 1); //#11342 + }); //#11342 + $j--; //#11342 + $k[$j++] = 0; //#11343 + for (var _f = 0, _g = $1.code.length; _f < _g; _f++) { //#11343 + var _h = $k[--$j]; //#11343 + var _i = $k[--$j]; //#11343 + var _j = $k[--$j]; //#11343 + $k[$j++] = $f(_h + (_j * _i)); //#11343 + } //#11343 + var _l = ($f(11 - ($k[--$j] % 11))) % 11; //#11345 + $k[$j++] = _l; //#11349 + if ((_l == 10) && $1.badmod11) { //#11348 + $j--; //#11346 + var _o = $s($1.code.length + 2); //#11346 + $puti(_o, 0, $1.code); //#11346 + $puti(_o, $1.code.length, "10"); //#11346 + $k[$j++] = _o; //#11346 + } else { //#11348 + var _s = $s($1.code.length + 1); //#11348 + $puti(_s, 0, $1.code); //#11348 + $put(_s, $1.code.length, $f($k[--$j] + 48)); //#11348 + $k[$j++] = _s; //#11348 + } //#11348 + }; //#11350 $1.ncrmod11 = function() { - $1.code = $k[--$j]; - $k[$j++] = $1.code.length - 1; - $forall($1.code, function() { - var _z = $k[--$j]; - var _10 = $k[--$j]; - $k[$j++] = $f(_z - 48); - $k[$j++] = $f(_10 % 8 + 2); - $k[$j++] = $f(_10 - 1); - }); - $j--; - $k[$j++] = 0; - for (var _12 = 0, _13 = $1.code.length; _12 < _13; _12++) { - var _14 = $k[--$j]; - var _15 = $k[--$j]; - var _16 = $k[--$j]; - $k[$j++] = $f(_14 + _16 * _15); - } - var _18 = $f(11 - $k[--$j] % 11) % 11; - $k[$j++] = _18; - if (_18 == 10 && $1.badmod11) { - $j--; - var _1B = $s($1.code.length + 2); - $puti(_1B, 0, $1.code); - $puti(_1B, $1.code.length, "10"); - $k[$j++] = _1B; - } else { - var _1F = $s($1.code.length + 1); - $puti(_1F, 0, $1.code); - $put(_1F, $1.code.length, $f($k[--$j] + 48)); - $k[$j++] = _1F; - } - }; - if ($1.includecheck) { - if ($eq($1.checktype, "mod10")) { - $k[$j++] = $1.barcode; - $1.mod10(); - } - if ($eq($1.checktype, "mod1010")) { - $k[$j++] = $1.barcode; - $1.mod10(); - $1.mod10(); - } - if ($eq($1.checktype, "mod11")) { - $k[$j++] = $1.barcode; - $1.mod11(); - } - if ($eq($1.checktype, "ncrmod11")) { - $k[$j++] = $1.barcode; - $1.ncrmod11(); - } - if ($eq($1.checktype, "mod1110")) { - $k[$j++] = $1.barcode; - $1.mod11(); - $1.mod10(); - } - if ($eq($1.checktype, "ncrmod1110")) { - $k[$j++] = $1.barcode; - $1.ncrmod11(); - $1.mod10(); - } - $1.barcode = $k[--$j]; - $1.barlen = $1.barcode.length; - if ($1.includecheckintext) { - $1.txtlen = $1.barlen; - } - } - $1.sbs = $s($1.barlen * 8 + 5); - $1.txt = $a($1.barlen); - $puti($1.sbs, 0, $get($1.encs, 10)); - for (var _1j = 0, _1i = $1.barlen - 1; _1j <= _1i; _1j += 1) { - $1.i = _1j; - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $1.i * 8 + 2, $1.enc); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $1.i * 12 + 3, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $puti($1.sbs, $1.barlen * 8 + 2, $get($1.encs, 11)); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _29 = $1.sbs; - for (var _2A = 0, _2B = _29.length; _2A < _2B; _2A++) { - $k[$j++] = $get(_29, _2A) - 48; - } - var _2D = $a(); - $k[$j++] = Infinity; - for (var _2F = 0, _2G = ~~(($1.sbs.length + 1) / 2); _2F < _2G; _2F++) { - $k[$j++] = $1.height; - } - var _2I = $a(); - $k[$j++] = Infinity; - for (var _2K = 0, _2L = ~~(($1.sbs.length + 1) / 2); _2K < _2L; _2K++) { - $k[$j++] = 0; - } - var _2M = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _2D; - $k[$j++] = "bhs"; - $k[$j++] = _2I; - $k[$j++] = "bbs"; - $k[$j++] = _2M; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $geti($1.txt, 0, $1.txtlen); - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _2S = $d(); - $k[$j++] = _2S; - if (!$1.dontdraw) { - $0.renlinear(); - } + $1.code = $k[--$j]; //#11353 + $k[$j++] = $1.code.length - 1; //#11354 + $forall($1.code, function() { //#11354 + var _z = $k[--$j]; //#11354 + var _10 = $k[--$j]; //#11354 + $k[$j++] = $f(_z - 48); //#11354 + $k[$j++] = $f((_10 % 8) + 2); //#11354 + $k[$j++] = $f(_10 - 1); //#11354 + }); //#11354 + $j--; //#11354 + $k[$j++] = 0; //#11355 + for (var _12 = 0, _13 = $1.code.length; _12 < _13; _12++) { //#11355 + var _14 = $k[--$j]; //#11355 + var _15 = $k[--$j]; //#11355 + var _16 = $k[--$j]; //#11355 + $k[$j++] = $f(_14 + (_16 * _15)); //#11355 + } //#11355 + var _18 = ($f(11 - ($k[--$j] % 11))) % 11; //#11357 + $k[$j++] = _18; //#11361 + if ((_18 == 10) && $1.badmod11) { //#11360 + $j--; //#11358 + var _1B = $s($1.code.length + 2); //#11358 + $puti(_1B, 0, $1.code); //#11358 + $puti(_1B, $1.code.length, "10"); //#11358 + $k[$j++] = _1B; //#11358 + } else { //#11360 + var _1F = $s($1.code.length + 1); //#11360 + $puti(_1F, 0, $1.code); //#11360 + $put(_1F, $1.code.length, $f($k[--$j] + 48)); //#11360 + $k[$j++] = _1F; //#11360 + } //#11360 + }; //#11362 + if ($1.includecheck) { //#11375 + if ($eq($1.checktype, "mod10")) { //#11366 + $k[$j++] = $1.barcode; //#11366 + $1.mod10(); //#11366 + } //#11366 + if ($eq($1.checktype, "mod1010")) { //#11367 + $k[$j++] = $1.barcode; //#11367 + $1.mod10(); //#11367 + $1.mod10(); //#11367 + } //#11367 + if ($eq($1.checktype, "mod11")) { //#11368 + $k[$j++] = $1.barcode; //#11368 + $1.mod11(); //#11368 + } //#11368 + if ($eq($1.checktype, "ncrmod11")) { //#11369 + $k[$j++] = $1.barcode; //#11369 + $1.ncrmod11(); //#11369 + } //#11369 + if ($eq($1.checktype, "mod1110")) { //#11370 + $k[$j++] = $1.barcode; //#11370 + $1.mod11(); //#11370 + $1.mod10(); //#11370 + } //#11370 + if ($eq($1.checktype, "ncrmod1110")) { //#11371 + $k[$j++] = $1.barcode; //#11371 + $1.ncrmod11(); //#11371 + $1.mod10(); //#11371 + } //#11371 + $1.barcode = $k[--$j]; //#11372 + $1.barlen = $1.barcode.length; //#11373 + if ($1.includecheckintext) { //#11374 + $1.txtlen = $1.barlen; //#11374 + } //#11374 + } //#11374 + $1.sbs = $s(($1.barlen * 8) + 5); //#11377 + $1.txt = $a($1.barlen); //#11378 + $puti($1.sbs, 0, $get($1.encs, 10)); //#11381 + for (var _1j = 0, _1i = $1.barlen - 1; _1j <= _1i; _1j += 1) { //#11393 + $1.i = _1j; //#11384 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#11386 + $j--; //#11387 + $1.indx = $k[--$j].length; //#11388 + $j -= 2; //#11389 + $1.enc = $get($1.encs, $1.indx); //#11390 + $puti($1.sbs, ($1.i * 8) + 2, $1.enc); //#11391 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), ($1.i * 12) + 3, $1.textyoffset, $1.textfont, $1.textsize])); //#11392 + } //#11392 + $puti($1.sbs, ($1.barlen * 8) + 2, $get($1.encs, 11)); //#11396 + $k[$j++] = Infinity; //#11407 + $k[$j++] = Infinity; //#11401 + var _29 = $1.sbs; //#11401 + for (var _2A = 0, _2B = _29.length; _2A < _2B; _2A++) { //#11401 + $k[$j++] = $get(_29, _2A) - 48; //#11401 + } //#11401 + var _2D = $a(); //#11401 + $k[$j++] = Infinity; //#11402 + for (var _2F = 0, _2G = ~~(($1.sbs.length + 1) / 2); _2F < _2G; _2F++) { //#11402 + $k[$j++] = $1.height; //#11402 + } //#11402 + var _2I = $a(); //#11402 + $k[$j++] = Infinity; //#11403 + for (var _2K = 0, _2L = ~~(($1.sbs.length + 1) / 2); _2K < _2L; _2K++) { //#11403 + $k[$j++] = 0; //#11403 + } //#11403 + var _2M = $a(); //#11403 + $k[$j++] = 'ren'; //#11406 + $k[$j++] = $0.renlinear; //#11406 + $k[$j++] = 'sbs'; //#11406 + $k[$j++] = _2D; //#11406 + $k[$j++] = 'bhs'; //#11406 + $k[$j++] = _2I; //#11406 + $k[$j++] = 'bbs'; //#11406 + $k[$j++] = _2M; //#11406 + if ($1.includetext) { //#11406 + $k[$j++] = 'txt'; //#11405 + $k[$j++] = $geti($1.txt, 0, $1.txtlen); //#11405 + } //#11405 + $k[$j++] = 'opt'; //#11407 + $k[$j++] = $1.options; //#11407 + var _2S = $d(); //#11407 + $k[$j++] = _2S; //#11410 + if (!$1.dontdraw) { //#11410 + $0.renlinear(); //#11410 + } //#11410 }; $0.plessey = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.validatecheck = false; - $1.includecheckintext = false; - $1.unidirectional = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.barchars = "0123456789ABCDEF"; - $1.charvals = new Map(); - for (var _9 = 0; _9 <= 15; _9 += 1) { - $put($1.charvals, $geti($1.barchars, _9, 1), _9); - } - for (var _F = 0, _E = $1.barcode.length - 1; _F <= _E; _F += 1) { - var _J = $get($1.charvals, $geti($1.barcode, _F, 1)) !== undefined; - if (!_J) { - $k[$j++] = "bwipp.plesseyBadCharacter"; - $k[$j++] = "Plessey must contain only digits and letters A B C D E F"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _M = $k[--$j]; - $k[$j++] = $f(_M - 2); - } - var _N = $k[--$j]; - $1[$k[--$j]] = _N; - $1.checkbits = $a($f($1.barlen * 4 + 8)); - $puti($1.checkbits, $1.barlen * 4, $a([ 0, 0, 0, 0, 0, 0, 0, 0 ])); - for (var _W = 0, _V = $f($1.barlen - 1); _W <= _V; _W += 1) { - $1.i = _W; - $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); - $puti($1.checkbits, $1.i * 4, $a([ $1.indx & 1, $1.indx >>> 1 & 1, $1.indx >>> 2 & 1, $1.indx >>> 3 ])); - } - $1.checksalt = $a([ 1, 1, 1, 1, 0, 1, 0, 0, 1 ]); - for (var _m = 0, _l = $f($1.barlen * 4 - 1); _m <= _l; _m += 1) { - $1.i = _m; - if ($get($1.checkbits, $1.i) == 1) { - for (var _q = 0; _q <= 8; _q += 1) { - $1.j = _q; - $put($1.checkbits, $1.i + $1.j, $xo($get($1.checkbits, $1.i + $1.j), $get($1.checksalt, $1.j))); - } - } - } - $1.checkval = 0; - for (var _11 = 0; _11 <= 7; _11 += 1) { - $1.i = _11; - $1.checkval = $f($1.checkval + ~~Math.pow(2, $1.i) * $get($1.checkbits, $f($1.barlen * 4 + $1.i))); - } - $1.checksum1 = $1.checkval & 15; - $1.checksum2 = $1.checkval >>> 4; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum1) || $get($1.barcode, $f($1.barlen + 1)) != $get($1.barchars, $1.checksum2)) { - $k[$j++] = "bwipp.plesseyBadCheckDigits"; - $k[$j++] = "Incorrect Plessey check digits provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - $1.encs = $a([ "14141414", "32141414", "14321414", "32321414", "14143214", "32143214", "14323214", "32323214", "14141432", "32141432", "14321432", "32321432", "14143232", "32143232", "14323232", "32323232", "32321432", "541412323", "323" ]); - var _1T = $1.unidirectional ? 27 : 33; - $1.sbs = $s($f($1.barlen * 8 + _1T)); - $1.txt = $a($f($1.barlen + 2)); - $puti($1.sbs, 0, $get($1.encs, 16)); - for (var _1c = 0, _1b = $f($1.barlen - 1); _1c <= _1b; _1c += 1) { - $1.i = _1c; - $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); - $puti($1.sbs, $1.i * 8 + 8, $get($1.encs, $1.indx)); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $1.i * 20 + 20, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $puti($1.sbs, $f($1.barlen * 8 + 8), $get($1.encs, $1.checksum1)); - $puti($1.sbs, $f($1.barlen * 8 + 16), $get($1.encs, $1.checksum2)); - if ($1.includecheckintext) { - $put($1.txt, $1.barlen, $a([ $geti($1.barchars, $1.checksum1, 1), $f($1.barlen * 20 + 20), $1.textyoffset, $1.textfont, $1.textsize ])); - $put($1.txt, $f($1.barlen + 1), $a([ $geti($1.barchars, $1.checksum2, 1), $f($f($1.barlen + 1) * 20 + 20), $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $1.barlen, $a([ " ", $f($1.barlen * 20 + 20), $1.textyoffset, $1.textfont, $1.textsize ])); - $put($1.txt, $f($1.barlen + 1), $a([ " ", $f($f($1.barlen + 1) * 20 + 20), $1.textyoffset, $1.textfont, $1.textsize ])); - } - var _2k = $1.unidirectional ? 18 : 17; - $puti($1.sbs, $f($1.barlen * 8 + 24), $get($1.encs, _2k)); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _2m = $1.sbs; - for (var _2n = 0, _2o = _2m.length; _2n < _2o; _2n++) { - $k[$j++] = $get(_2m, _2n) - 48; - } - var _2q = $a(); - $k[$j++] = Infinity; - for (var _2s = 0, _2t = ~~(($1.sbs.length + 1) / 2); _2s < _2t; _2s++) { - $k[$j++] = $1.height; - } - var _2v = $a(); - $k[$j++] = Infinity; - for (var _2x = 0, _2y = ~~(($1.sbs.length + 1) / 2); _2x < _2y; _2x++) { - $k[$j++] = 0; - } - var _2z = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _2q; - $k[$j++] = "bhs"; - $k[$j++] = _2v; - $k[$j++] = "bbs"; - $k[$j++] = _2z; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _33 = $d(); - $k[$j++] = _33; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#11439 + $1.options = $k[--$j]; //#11441 + $1.barcode = $k[--$j]; //#11442 + $1.dontdraw = false; //#11444 + $1.includetext = false; //#11445 + $1.validatecheck = false; //#11446 + $1.includecheckintext = false; //#11447 + $1.unidirectional = false; //#11448 + $1.textfont = "OCR-B"; //#11449 + $1.textsize = 10; //#11450 + $1.textyoffset = -8; //#11451 + $1.height = 1; //#11452 + $forall($1.options, function() { //#11463 + var _3 = $k[--$j]; //#11463 + $1[$k[--$j]] = _3; //#11463 + }); //#11463 + $1.textfont = "" + $1.textfont; //#11465 + $1.textsize = +$1.textsize; //#11466 + $1.textyoffset = +$1.textyoffset; //#11467 + $1.height = +$1.height; //#11468 + $1.barchars = "0123456789ABCDEF"; //#11471 + $1.charvals = new Map; //#11472 + for (var _9 = 0; _9 <= 15; _9 += 1) { //#11473 + $put($1.charvals, $geti($1.barchars, _9, 1), _9); //#11473 + } //#11473 + for (var _F = 0, _E = $1.barcode.length - 1; _F <= _E; _F += 1) { //#11480 + var _J = $get($1.charvals, $geti($1.barcode, _F, 1)) !== undefined; //#11477 + if (!_J) { //#11479 + $k[$j++] = 'bwipp.plesseyBadCharacter'; //#11478 + $k[$j++] = "Plessey must contain only digits and letters A B C D E F"; //#11478 + $0.raiseerror(); //#11478 + } //#11478 + } //#11478 + $k[$j++] = 'barlen'; //#11482 + $k[$j++] = $1.barcode.length; //#11482 + if ($1.validatecheck) { //#11482 + var _M = $k[--$j]; //#11482 + $k[$j++] = $f(_M - 2); //#11482 + } //#11482 + var _N = $k[--$j]; //#11482 + $1[$k[--$j]] = _N; //#11482 + $1.checkbits = $a($f(($1.barlen * 4) + 8)); //#11485 + $puti($1.checkbits, $1.barlen * 4, $a([0, 0, 0, 0, 0, 0, 0, 0])); //#11486 + for (var _W = 0, _V = $f($1.barlen - 1); _W <= _V; _W += 1) { //#11496 + $1.i = _W; //#11488 + $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); //#11489 + $puti($1.checkbits, $1.i * 4, $a([$1.indx & 1, ($1.indx >>> 1) & 1, ($1.indx >>> 2) & 1, $1.indx >>> 3])); //#11495 + } //#11495 + $1.checksalt = $a([1, 1, 1, 1, 0, 1, 0, 0, 1]); //#11497 + for (var _m = 0, _l = $f(($1.barlen * 4) - 1); _m <= _l; _m += 1) { //#11506 + $1.i = _m; //#11499 + if ($get($1.checkbits, $1.i) == 1) { //#11505 + for (var _q = 0; _q <= 8; _q += 1) { //#11504 + $1.j = _q; //#11502 + $put($1.checkbits, $1.i + $1.j, $xo($get($1.checkbits, $1.i + $1.j), $get($1.checksalt, $1.j))); //#11503 + } //#11503 + } //#11503 + } //#11503 + $1.checkval = 0; //#11507 + for (var _11 = 0; _11 <= 7; _11 += 1) { //#11511 + $1.i = _11; //#11509 + $1.checkval = $f($1.checkval + ((~~Math.pow(2, $1.i)) * $get($1.checkbits, $f(($1.barlen * 4) + $1.i)))); //#11510 + } //#11510 + $1.checksum1 = $1.checkval & 15; //#11512 + $1.checksum2 = $1.checkval >>> 4; //#11513 + if ($1.validatecheck) { //#11520 + if (($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum1)) || ($get($1.barcode, $f($1.barlen + 1)) != $get($1.barchars, $1.checksum2))) { //#11518 + $k[$j++] = 'bwipp.plesseyBadCheckDigits'; //#11517 + $k[$j++] = "Incorrect Plessey check digits provided"; //#11517 + $0.raiseerror(); //#11517 + } //#11517 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#11519 + } //#11519 + $1.encs = $a(["14141414", "32141414", "14321414", "32321414", "14143214", "32143214", "14323214", "32323214", "14141432", "32141432", "14321432", "32321432", "14143232", "32143232", "14323232", "32323232", "32321432", "541412323", "323"]); //#11529 + var _1T = $1.unidirectional ? 27 : 33; //#11531 + $1.sbs = $s($f(($1.barlen * 8) + _1T)); //#11531 + $1.txt = $a($f($1.barlen + 2)); //#11532 + $puti($1.sbs, 0, $get($1.encs, 16)); //#11535 + for (var _1c = 0, _1b = $f($1.barlen - 1); _1c <= _1b; _1c += 1) { //#11542 + $1.i = _1c; //#11538 + $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); //#11539 + $puti($1.sbs, ($1.i * 8) + 8, $get($1.encs, $1.indx)); //#11540 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), ($1.i * 20) + 20, $1.textyoffset, $1.textfont, $1.textsize])); //#11541 + } //#11541 + $puti($1.sbs, $f(($1.barlen * 8) + 8), $get($1.encs, $1.checksum1)); //#11545 + $puti($1.sbs, $f(($1.barlen * 8) + 16), $get($1.encs, $1.checksum2)); //#11546 + if ($1.includecheckintext) { //#11552 + $put($1.txt, $1.barlen, $a([$geti($1.barchars, $1.checksum1, 1), $f(($1.barlen * 20) + 20), $1.textyoffset, $1.textfont, $1.textsize])); //#11548 + $put($1.txt, $f($1.barlen + 1), $a([$geti($1.barchars, $1.checksum2, 1), $f(($f($1.barlen + 1) * 20) + 20), $1.textyoffset, $1.textfont, $1.textsize])); //#11549 + } else { //#11552 + $put($1.txt, $1.barlen, $a([" ", $f(($1.barlen * 20) + 20), $1.textyoffset, $1.textfont, $1.textsize])); //#11551 + $put($1.txt, $f($1.barlen + 1), $a([" ", $f(($f($1.barlen + 1) * 20) + 20), $1.textyoffset, $1.textfont, $1.textsize])); //#11552 + } //#11552 + var _2k = $1.unidirectional ? 18 : 17; //#11556 + $puti($1.sbs, $f(($1.barlen * 8) + 24), $get($1.encs, _2k)); //#11556 + $k[$j++] = Infinity; //#11567 + $k[$j++] = Infinity; //#11561 + var _2m = $1.sbs; //#11561 + for (var _2n = 0, _2o = _2m.length; _2n < _2o; _2n++) { //#11561 + $k[$j++] = $get(_2m, _2n) - 48; //#11561 + } //#11561 + var _2q = $a(); //#11561 + $k[$j++] = Infinity; //#11562 + for (var _2s = 0, _2t = ~~(($1.sbs.length + 1) / 2); _2s < _2t; _2s++) { //#11562 + $k[$j++] = $1.height; //#11562 + } //#11562 + var _2v = $a(); //#11562 + $k[$j++] = Infinity; //#11563 + for (var _2x = 0, _2y = ~~(($1.sbs.length + 1) / 2); _2x < _2y; _2x++) { //#11563 + $k[$j++] = 0; //#11563 + } //#11563 + var _2z = $a(); //#11563 + $k[$j++] = 'ren'; //#11566 + $k[$j++] = $0.renlinear; //#11566 + $k[$j++] = 'sbs'; //#11566 + $k[$j++] = _2q; //#11566 + $k[$j++] = 'bhs'; //#11566 + $k[$j++] = _2v; //#11566 + $k[$j++] = 'bbs'; //#11566 + $k[$j++] = _2z; //#11566 + if ($1.includetext) { //#11566 + $k[$j++] = 'txt'; //#11565 + $k[$j++] = $1.txt; //#11565 + } //#11565 + $k[$j++] = 'opt'; //#11567 + $k[$j++] = $1.options; //#11567 + var _33 = $d(); //#11567 + $k[$j++] = _33; //#11570 + if (!$1.dontdraw) { //#11570 + $0.renlinear(); //#11570 + } //#11570 }; $0.telepen = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.numeric = false; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = 1; - $1.parse = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - var _A = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _A; - $k[$j++] = "barcode"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _D = $k[--$j]; - $1[$k[--$j]] = _D; - $1.barlen = $1.barcode.length; - delete $1.options["parse"]; - $1.encs = $a([ "31313131", "1131313111", "33313111", "1111313131", "3111313111", "11333131", "13133131", "111111313111", "31333111", "1131113131", "33113131", "1111333111", "3111113131", "1113133111", "1311133111", "111111113131", "3131113111", "11313331", "333331", "111131113111", "31113331", "1133113111", "1313113111", "1111113331", "31131331", "113111113111", "3311113111", "1111131331", "311111113111", "1113111331", "1311111331", "11111111113111", "31313311", "1131311131", "33311131", "1111313311", "3111311131", "11333311", "13133311", "111111311131", "31331131", "1131113311", "33113311", "1111331131", "3111113311", "1113131131", "1311131131", "111111113311", "3131111131", "1131131311", "33131311", "111131111131", "3111131311", "1133111131", "1313111131", "111111131311", "3113111311", "113111111131", "3311111131", "111113111311", "311111111131", "111311111311", "131111111311", "11111111111131", "3131311111", "11313133", "333133", "111131311111", "31113133", "1133311111", "1313311111", "1111113133", "313333", "113111311111", "3311311111", "11113333", "311111311111", "11131333", "13111333", "11111111311111", "31311133", "1131331111", "33331111", "1111311133", "3111331111", "11331133", "13131133", "111111331111", "3113131111", "1131111133", "33111133", "111113131111", "3111111133", "111311131111", "131111131111", "111111111133", "31311313", "113131111111", "3331111111", "1111311313", "311131111111", "11331313", "13131313", "11111131111111", "3133111111", "1131111313", "33111313", "111133111111", "3111111313", "111313111111", "131113111111", "111111111313", "313111111111", "1131131113", "33131113", "11113111111111", "3111131113", "113311111111", "131311111111", "111111131113", "3113111113", "11311111111111", "331111111111", "111113111113", "31111111111111", "111311111113", "131111111113", "1111111111111111" ]); - $1.barlen = $1.barcode.length; - $1.sbs = $s($1.barlen * 16 + 48); - $1.txt = $a($1.barlen); - $1.enc = $get($1.encs, 95); - $puti($1.sbs, 0, $1.enc); - $1.l = $1.enc.length; - $1.checksum = 0; - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.barlen) { - break; - } - if ($1.numeric) { - if ($get($1.barcode, $1.i) > 16) { - $1.np = $geti($1.barcode, $1.i, 2); - if ($eq($geti($1.np, 1, 1), "X")) { - $1.indx = ~~$z($geti($1.np, 0, 1)) + 17; - } else { - $1.indx = ~~$z($1.np) + 27; - } - $put($1.txt, $1.j, $a([ $1.np, $1.j * 16 + 16, $1.textyoffset, $1.textfont, $1.textsize ])); - $1.i = $1.i + 2; - } else { - $1.indx = $get($1.barcode, $1.i); - $put($1.txt, $1.j, $a([ " ", $1.j * 16 + 16, $1.textyoffset, $1.textfont, $1.textsize ])); - $1.i = $1.i + 1; - } - } else { - $1.indx = $get($1.barcode, $1.i); - if ($1.indx >= 32 && $1.indx <= 126) { - $put($1.txt, $1.j, $a([ $geti($1.barcode, $1.i, 1), $1.j * 16 + 16, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $1.j, $a([ " ", $1.j * 16 + 16, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $1.i = $1.i + 1; - } - $1.checksum = $f($1.checksum + $1.indx); - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $1.l, $1.enc); - $1.l = $1.l + $1.enc.length; - $1.j = $1.j + 1; - } - $1.checksum = $f(127 - $1.checksum % 127) % 127; - $1.enc = $get($1.encs, $1.checksum); - $puti($1.sbs, $1.l, $1.enc); - $1.l = $1.l + $1.enc.length; - $1.enc = $get($1.encs, 122); - $puti($1.sbs, $1.l, $1.enc); - $1.l = $1.l + $1.enc.length; - $1.sbs = $geti($1.sbs, 0, $1.l); - $1.txt = $geti($1.txt, 0, $1.j); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _1u = $1.sbs; - for (var _1v = 0, _1w = _1u.length; _1v < _1w; _1v++) { - $k[$j++] = $f($get(_1u, _1v) - 48); - } - var _1y = $a(); - $k[$j++] = Infinity; - for (var _20 = 0, _21 = ~~(($1.sbs.length + 1) / 2); _20 < _21; _20++) { - $k[$j++] = $1.height; - } - var _23 = $a(); - $k[$j++] = Infinity; - for (var _25 = 0, _26 = ~~(($1.sbs.length + 1) / 2); _25 < _26; _25++) { - $k[$j++] = 0; - } - var _27 = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _1y; - $k[$j++] = "bhs"; - $k[$j++] = _23; - $k[$j++] = "bbs"; - $k[$j++] = _27; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _2B = $d(); - $k[$j++] = _2B; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#11600 + $1.options = $k[--$j]; //#11602 + $1.barcode = $k[--$j]; //#11603 + $1.numeric = false; //#11605 + $1.dontdraw = false; //#11606 + $1.includetext = false; //#11607 + $1.textfont = "OCR-B"; //#11608 + $1.textsize = 10; //#11609 + $1.textyoffset = -8; //#11610 + $1.height = 1; //#11611 + $1.parse = false; //#11612 + $forall($1.options, function() { //#11623 + var _3 = $k[--$j]; //#11623 + $1[$k[--$j]] = _3; //#11623 + }); //#11623 + $1.textfont = "" + $1.textfont; //#11625 + $1.textsize = +$1.textsize; //#11626 + $1.textyoffset = +$1.textyoffset; //#11627 + $1.height = +$1.height; //#11628 + var _A = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#11634 + $1.fncvals = _A; //#11635 + $k[$j++] = 'barcode'; //#11636 + $k[$j++] = $1.barcode; //#11636 + $k[$j++] = $1.fncvals; //#11636 + $0.parseinput(); //#11636 + var _D = $k[--$j]; //#11636 + $1[$k[--$j]] = _D; //#11636 + $1.barlen = $1.barcode.length; //#11637 + delete $1.options["parse"]; //#11638 + $1.encs = $a(["31313131", "1131313111", "33313111", "1111313131", "3111313111", "11333131", "13133131", "111111313111", "31333111", "1131113131", "33113131", "1111333111", "3111113131", "1113133111", "1311133111", "111111113131", "3131113111", "11313331", "333331", "111131113111", "31113331", "1133113111", "1313113111", "1111113331", "31131331", "113111113111", "3311113111", "1111131331", "311111113111", "1113111331", "1311111331", "11111111113111", "31313311", "1131311131", "33311131", "1111313311", "3111311131", "11333311", "13133311", "111111311131", "31331131", "1131113311", "33113311", "1111331131", "3111113311", "1113131131", "1311131131", "111111113311", "3131111131", "1131131311", "33131311", "111131111131", "3111131311", "1133111131", "1313111131", "111111131311", "3113111311", "113111111131", "3311111131", "111113111311", "311111111131", "111311111311", "131111111311", "11111111111131", "3131311111", "11313133", "333133", "111131311111", "31113133", "1133311111", "1313311111", "1111113133", "313333", "113111311111", "3311311111", "11113333", "311111311111", "11131333", "13111333", "11111111311111", "31311133", "1131331111", "33331111", "1111311133", "3111331111", "11331133", "13131133", "111111331111", "3113131111", "1131111133", "33111133", "111113131111", "3111111133", "111311131111", "131111131111", "111111111133", "31311313", "113131111111", "3331111111", "1111311313", "311131111111", "11331313", "13131313", "11111131111111", "3133111111", "1131111313", "33111313", "111133111111", "3111111313", "111313111111", "131113111111", "111111111313", "313111111111", "1131131113", "33131113", "11113111111111", "3111131113", "113311111111", "131311111111", "111111131113", "3113111113", "11311111111111", "331111111111", "111113111113", "31111111111111", "111311111113", "131111111113", "1111111111111111"]); //#11674 + $1.barlen = $1.barcode.length; //#11676 + $1.sbs = $s(($1.barlen * 16) + 48); //#11677 + $1.txt = $a($1.barlen); //#11678 + $1.enc = $get($1.encs, 95); //#11681 + $puti($1.sbs, 0, $1.enc); //#11682 + $1.l = $1.enc.length; //#11683 + $1.checksum = 0; //#11685 + $1.i = 0; //#11686 + $1.j = 0; //#11686 + for (;;) { //#11718 + if ($1.i == $1.barlen) { //#11688 + break; //#11688 + } //#11688 + if ($1.numeric) { //#11711 + if ($get($1.barcode, $1.i) > 16) { //#11702 + $1.np = $geti($1.barcode, $1.i, 2); //#11691 + if ($eq($geti($1.np, 1, 1), "X")) { //#11695 + $1.indx = (~~$z($geti($1.np, 0, 1))) + 17; //#11693 + } else { //#11695 + $1.indx = (~~$z($1.np)) + 27; //#11695 + } //#11695 + $put($1.txt, $1.j, $a([$1.np, ($1.j * 16) + 16, $1.textyoffset, $1.textfont, $1.textsize])); //#11697 + $1.i = $1.i + 2; //#11698 + } else { //#11702 + $1.indx = $get($1.barcode, $1.i); //#11700 + $put($1.txt, $1.j, $a([" ", ($1.j * 16) + 16, $1.textyoffset, $1.textfont, $1.textsize])); //#11701 + $1.i = $1.i + 1; //#11702 + } //#11702 + } else { //#11711 + $1.indx = $get($1.barcode, $1.i); //#11705 + if (($1.indx >= 32) && ($1.indx <= 126)) { //#11709 + $put($1.txt, $1.j, $a([$geti($1.barcode, $1.i, 1), ($1.j * 16) + 16, $1.textyoffset, $1.textfont, $1.textsize])); //#11707 + } else { //#11709 + $put($1.txt, $1.j, $a([" ", ($1.j * 16) + 16, $1.textyoffset, $1.textfont, $1.textsize])); //#11709 + } //#11709 + $1.i = $1.i + 1; //#11711 + } //#11711 + $1.checksum = $f($1.checksum + $1.indx); //#11713 + $1.enc = $get($1.encs, $1.indx); //#11714 + $puti($1.sbs, $1.l, $1.enc); //#11715 + $1.l = $1.l + $1.enc.length; //#11716 + $1.j = $1.j + 1; //#11717 + } //#11717 + $1.checksum = ($f(127 - ($1.checksum % 127))) % 127; //#11721 + $1.enc = $get($1.encs, $1.checksum); //#11722 + $puti($1.sbs, $1.l, $1.enc); //#11723 + $1.l = $1.l + $1.enc.length; //#11724 + $1.enc = $get($1.encs, 122); //#11727 + $puti($1.sbs, $1.l, $1.enc); //#11728 + $1.l = $1.l + $1.enc.length; //#11729 + $1.sbs = $geti($1.sbs, 0, $1.l); //#11732 + $1.txt = $geti($1.txt, 0, $1.j); //#11733 + $k[$j++] = Infinity; //#11744 + $k[$j++] = Infinity; //#11738 + var _1u = $1.sbs; //#11738 + for (var _1v = 0, _1w = _1u.length; _1v < _1w; _1v++) { //#11738 + $k[$j++] = $f($get(_1u, _1v) - 48); //#11738 + } //#11738 + var _1y = $a(); //#11738 + $k[$j++] = Infinity; //#11739 + for (var _20 = 0, _21 = ~~(($1.sbs.length + 1) / 2); _20 < _21; _20++) { //#11739 + $k[$j++] = $1.height; //#11739 + } //#11739 + var _23 = $a(); //#11739 + $k[$j++] = Infinity; //#11740 + for (var _25 = 0, _26 = ~~(($1.sbs.length + 1) / 2); _25 < _26; _25++) { //#11740 + $k[$j++] = 0; //#11740 + } //#11740 + var _27 = $a(); //#11740 + $k[$j++] = 'ren'; //#11743 + $k[$j++] = $0.renlinear; //#11743 + $k[$j++] = 'sbs'; //#11743 + $k[$j++] = _1y; //#11743 + $k[$j++] = 'bhs'; //#11743 + $k[$j++] = _23; //#11743 + $k[$j++] = 'bbs'; //#11743 + $k[$j++] = _27; //#11743 + if ($1.includetext) { //#11743 + $k[$j++] = 'txt'; //#11742 + $k[$j++] = $1.txt; //#11742 + } //#11742 + $k[$j++] = 'opt'; //#11744 + $k[$j++] = $1.options; //#11744 + var _2B = $d(); //#11744 + $k[$j++] = _2B; //#11747 + if (!$1.dontdraw) { //#11747 + $0.renlinear(); //#11747 + } //#11747 }; $0.telepennumeric = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $put($1.options, "dontdraw", true); - $put($1.options, "numeric", true); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.telepen(); - var _E = $k[--$j]; - $1[$k[--$j]] = _E; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#11777 + $1.options = $k[--$j]; //#11779 + $1.barcode = $k[--$j]; //#11780 + $1.dontdraw = false; //#11782 + $1.includetext = false; //#11783 + $1.textfont = "OCR-B"; //#11784 + $1.textsize = 10; //#11785 + $1.textxoffset = 0; //#11786 + $1.textyoffset = -8; //#11787 + $1.height = 1; //#11788 + $forall($1.options, function() { //#11799 + var _3 = $k[--$j]; //#11799 + $1[$k[--$j]] = _3; //#11799 + }); //#11799 + $1.textfont = "" + $1.textfont; //#11801 + $1.textsize = +$1.textsize; //#11802 + $1.textxoffset = +$1.textxoffset; //#11803 + $1.textyoffset = +$1.textyoffset; //#11804 + $1.height = +$1.height; //#11805 + $put($1.options, "dontdraw", true); //#11808 + $put($1.options, "numeric", true); //#11809 + $k[$j++] = 'args'; //#11811 + $k[$j++] = $1.barcode; //#11811 + $k[$j++] = $1.options; //#11811 + $0.telepen(); //#11811 + var _E = $k[--$j]; //#11811 + $1[$k[--$j]] = _E; //#11811 + $put($1.args, "opt", $1.options); //#11813 + $k[$j++] = $1.args; //#11816 + if (!$1.dontdraw) { //#11816 + $0.renlinear(); //#11816 + } //#11816 }; $0.posicode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = 1; - $1.encoding = "auto"; - $1.version = "a"; - $1.checkoffset = 0; - $1.raw = false; - $1.parse = false; - $1.parsefnc = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.encoding = "" + $1.encoding; - $1.version = "" + $1.version; - $1.checkoffset = ~~$1.checkoffset; - $1.height = +$1.height; - $1.la0 = -1; - $1.la1 = -2; - $1.la2 = -3; - $1.sf0 = -4; - $1.sf1 = -5; - $1.sf2 = -6; - $1.fn1 = -7; - $1.fn2 = -8; - $1.fn3 = -9; - $1.fn4 = -10; - var _1l = new Map([ [ "normal", $a([ $a([ "0", "^", "'" ]), $a([ "1", ";", 27 ]), $a([ "2", "<", 28 ]), $a([ "3", "=", 29 ]), $a([ "4", ">", 30 ]), $a([ "5", "?", 31 ]), $a([ "6", "@", "!" ]), $a([ "7", "[", '"' ]), $a([ "8", 92, "#" ]), $a([ "9", "]", "&" ]), $a([ "A", "a", 1 ]), $a([ "B", "b", 2 ]), $a([ "C", "c", 3 ]), $a([ "D", "d", 4 ]), $a([ "E", "e", 5 ]), $a([ "F", "f", 6 ]), $a([ "G", "g", 7 ]), $a([ "H", "h", 8 ]), $a([ "I", "i", 9 ]), $a([ "J", "j", 10 ]), $a([ "K", "k", 11 ]), $a([ "L", "l", 12 ]), $a([ "M", "m", 13 ]), $a([ "N", "n", 14 ]), $a([ "O", "o", 15 ]), $a([ "P", "p", 16 ]), $a([ "Q", "q", 17 ]), $a([ "R", "r", 18 ]), $a([ "S", "s", 19 ]), $a([ "T", "t", 20 ]), $a([ "U", "u", 21 ]), $a([ "V", "v", 22 ]), $a([ "W", "w", 23 ]), $a([ "X", "x", 24 ]), $a([ "Y", "y", 25 ]), $a([ "Z", "z", 26 ]), $a([ "-", "_", 40 ]), $a([ ".", "`", 41 ]), $a([ " ", 127, 0 ]), $a([ "$", "{", "*" ]), $a([ "/", "|", "," ]), $a([ "+", "}", ":" ]), $a([ "%", "~", $1.fn1 ]), $a([ $1.la1, $1.la0, $1.fn2 ]), $a([ $1.sf1, $1.sf0, $1.fn3 ]), $a([ $1.sf2, $1.sf2, $1.fn4 ]) ]) ], [ "limited", $a([ $a([ "0", -98, -98 ]), $a([ "1", -98, -98 ]), $a([ "2", -98, -98 ]), $a([ "3", -98, -98 ]), $a([ "4", -98, -98 ]), $a([ "5", -98, -98 ]), $a([ "6", -98, -98 ]), $a([ "7", -98, -98 ]), $a([ "8", -98, -98 ]), $a([ "9", -98, -98 ]), $a([ "A", -98, -98 ]), $a([ "B", -98, -98 ]), $a([ "C", -98, -98 ]), $a([ "D", -98, -98 ]), $a([ "E", -98, -98 ]), $a([ "F", -98, -98 ]), $a([ "G", -98, -98 ]), $a([ "H", -98, -98 ]), $a([ "I", -98, -98 ]), $a([ "J", -98, -98 ]), $a([ "K", -98, -98 ]), $a([ "L", -98, -98 ]), $a([ "M", -98, -98 ]), $a([ "N", -98, -98 ]), $a([ "O", -98, -98 ]), $a([ "P", -98, -98 ]), $a([ "Q", -98, -98 ]), $a([ "R", -98, -98 ]), $a([ "S", -98, -98 ]), $a([ "T", -98, -98 ]), $a([ "U", -98, -98 ]), $a([ "V", -98, -98 ]), $a([ "W", -98, -98 ]), $a([ "X", -98, -98 ]), $a([ "Y", -98, -98 ]), $a([ "Z", -98, -98 ]), $a([ "-", -98, -98 ]), $a([ ".", -98, -98 ]) ]) ] ]); - $k[$j++] = _1l; - if ($eq($1.version, "a") || $eq($1.version, "b")) { - $k[$j++] = "normal"; - } else { - $k[$j++] = "limited"; - } - var _1o = $k[--$j]; - $1.charmaps = $get($k[--$j], _1o); - var _1r = $1.charmaps; - var _1s = $1.charmaps; - var _1t = $1.charmaps; - $1.charvals = $a([ new Map(), new Map(), new Map() ]); - for (var _1x = 0, _1w = $1.charmaps.length - 1; _1x <= _1w; _1x += 1) { - $1.i = _1x; - $1.encs = $get($1.charmaps, $1.i); - for (var _21 = 0; _21 <= 2; _21 += 1) { - $1.j = _21; - var _24 = $get($1.encs, $1.j); - $k[$j++] = _24; - if ($eq($type(_24), "stringtype")) { - var _27 = $get($k[--$j], 0); - $k[$j++] = _27; - } - $put($get($1.charvals, $1.j), $k[--$j], $1.i); - } - } - $1.set0 = $get($1.charvals, 0); - $1.set1 = $get($1.charvals, 1); - $1.set2 = $get($1.charvals, 2); - if ($1.raw) { - $1.encoding = "raw"; - } - if ($eq($1.encoding, "raw")) { - $1.cws = $a($1.barcode.length); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.barcode.length) { - break; - } - $1.cw = ~~$z($geti($1.barcode, $1.i + 1, 3)); - $put($1.cws, $1.j, $1.cw); - $1.i = $1.i + 4; - $1.j = $1.j + 1; - } - $1.cws = $geti($1.cws, 0, $1.j); - $1.text = ""; - } - if ($eq($1.encoding, "auto")) { - var _2g = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "FNC1", $1.fn1 ], [ "FNC2", $1.fn2 ], [ "FNC3", $1.fn3 ] ]); - $1.fncvals = _2g; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _2j = $k[--$j]; - $1[$k[--$j]] = _2j; - $1.msglen = $1.msg.length; - $1.text = $s($1.msglen); - for (var _2q = 0, _2p = $1.msglen - 1; _2q <= _2p; _2q += 1) { - $1.i = _2q; - var _2v = $get($1.msg, $1.i); - $k[$j++] = $1.text; - $k[$j++] = $1.i; - $k[$j++] = _2v; - if (_2v < 0) { - $j--; - $k[$j++] = 32; - } - var _2w = $k[--$j]; - var _2x = $k[--$j]; - $put($k[--$j], _2x, _2w); - } - $k[$j++] = Infinity; - for (var _30 = 0, _31 = $1.msglen; _30 < _31; _30++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numSA = $a(); - $k[$j++] = Infinity; - for (var _34 = 0, _35 = $1.msglen; _34 < _35; _34++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numEA = $a(); - for (var _38 = $1.msglen - 1; _38 >= 0; _38 -= 1) { - $1.i = _38; - if ($get($1.msg, $1.i) >= 0) { - if ($get($1.msg, $1.i) >= 128) { - $put($1.numEA, $1.i, $f($get($1.numEA, $1.i + 1) + 1)); - } else { - $put($1.numSA, $1.i, $f($get($1.numSA, $1.i + 1) + 1)); - } - } - } - $1.ea = false; - $1.msgtmp = $a([]); - for (var _3S = 0, _3R = $1.msglen - 1; _3S <= _3R; _3S += 1) { - $1.i = _3S; - $1.c = $get($1.msg, $1.i); - if (!$xo($1.ea, $1.c < 128) && $1.c >= 0) { - if ($1.ea) { - $k[$j++] = $1.numSA; - } else { - $k[$j++] = $1.numEA; - } - var _3e = $get($k[--$j], $1.i); - var _3h = $f(_3e + $1.i) == $1.msglen ? 3 : 5; - if (_3e < _3h) { - $k[$j++] = Infinity; - $aload($1.msgtmp); - $k[$j++] = $1.fn4; - $1.msgtmp = $a(); - } else { - $k[$j++] = Infinity; - $aload($1.msgtmp); - $k[$j++] = $1.fn4; - $k[$j++] = $1.fn4; - $1.msgtmp = $a(); - $1.ea = !$1.ea; - } - } - $k[$j++] = Infinity; - $aload($1.msgtmp); - if ($1.c >= 0) { - $k[$j++] = $1.c & 127; - } else { - $k[$j++] = $1.c; - } - $1.msgtmp = $a(); - } - $1.msg = $1.msgtmp; - $1.msglen = $1.msg.length; + var $1 = {}; //#11846 + $1.options = $k[--$j]; //#11848 + $1.barcode = $k[--$j]; //#11849 + $1.dontdraw = false; //#11851 + $1.includetext = false; //#11852 + $1.textfont = "OCR-B"; //#11853 + $1.textsize = 10; //#11854 + $1.textxoffset = 0; //#11855 + $1.textyoffset = -8; //#11856 + $1.height = 1; //#11857 + $1.encoding = "auto"; //#11858 + $1.version = "a"; //#11859 + $1.checkoffset = 0; //#11860 + $1.raw = false; //#11861 + $1.parse = false; //#11862 + $1.parsefnc = false; //#11863 + $forall($1.options, function() { //#11874 + var _3 = $k[--$j]; //#11874 + $1[$k[--$j]] = _3; //#11874 + }); //#11874 + $1.textfont = "" + $1.textfont; //#11876 + $1.textsize = +$1.textsize; //#11877 + $1.textxoffset = +$1.textxoffset; //#11878 + $1.textyoffset = +$1.textyoffset; //#11879 + $1.encoding = "" + $1.encoding; //#11880 + $1.version = "" + $1.version; //#11881 + $1.checkoffset = ~~$1.checkoffset; //#11882 + $1.height = +$1.height; //#11883 + $1.la0 = -1; //#11886 + $1.la1 = -2; //#11886 + $1.la2 = -3; //#11886 + $1.sf0 = -4; //#11887 + $1.sf1 = -5; //#11887 + $1.sf2 = -6; //#11887 + $1.fn1 = -7; //#11888 + $1.fn2 = -8; //#11888 + $1.fn3 = -9; //#11888 + $1.fn4 = -10; //#11888 + var _1l = new Map([ + ["normal", $a([$a(["0", "^", "'"]), $a(["1", ";", 27]), $a(["2", "<", 28]), $a(["3", "=", 29]), $a(["4", ">", 30]), $a(["5", "?", 31]), $a(["6", "@", "!"]), $a(["7", "[", "\""]), $a(["8", 92, "#"]), $a(["9", "]", "&"]), $a(["A", "a", 1]), $a(["B", "b", 2]), $a(["C", "c", 3]), $a(["D", "d", 4]), $a(["E", "e", 5]), $a(["F", "f", 6]), $a(["G", "g", 7]), $a(["H", "h", 8]), $a(["I", "i", 9]), $a(["J", "j", 10]), $a(["K", "k", 11]), $a(["L", "l", 12]), $a(["M", "m", 13]), $a(["N", "n", 14]), $a(["O", "o", 15]), $a(["P", "p", 16]), $a(["Q", "q", 17]), $a(["R", "r", 18]), $a(["S", "s", 19]), $a(["T", "t", 20]), $a(["U", "u", 21]), $a(["V", "v", 22]), $a(["W", "w", 23]), $a(["X", "x", 24]), $a(["Y", "y", 25]), $a(["Z", "z", 26]), $a(["-", "_", 40]), $a([".", "`", 41]), $a([" ", 127, 0]), $a(["$", "{", "*"]), $a(["/", "|", ","]), $a(["+", "}", ":"]), $a(["%", "~", $1.fn1]), $a([$1.la1, $1.la0, $1.fn2]), $a([$1.sf1, $1.sf0, $1.fn3]), $a([$1.sf2, $1.sf2, $1.fn4])])], + ["limited", $a([$a(["0", -98, -98]), $a(["1", -98, -98]), $a(["2", -98, -98]), $a(["3", -98, -98]), $a(["4", -98, -98]), $a(["5", -98, -98]), $a(["6", -98, -98]), $a(["7", -98, -98]), $a(["8", -98, -98]), $a(["9", -98, -98]), $a(["A", -98, -98]), $a(["B", -98, -98]), $a(["C", -98, -98]), $a(["D", -98, -98]), $a(["E", -98, -98]), $a(["F", -98, -98]), $a(["G", -98, -98]), $a(["H", -98, -98]), $a(["I", -98, -98]), $a(["J", -98, -98]), $a(["K", -98, -98]), $a(["L", -98, -98]), $a(["M", -98, -98]), $a(["N", -98, -98]), $a(["O", -98, -98]), $a(["P", -98, -98]), $a(["Q", -98, -98]), $a(["R", -98, -98]), $a(["S", -98, -98]), $a(["T", -98, -98]), $a(["U", -98, -98]), $a(["V", -98, -98]), $a(["W", -98, -98]), $a(["X", -98, -98]), $a(["Y", -98, -98]), $a(["Z", -98, -98]), $a(["-", -98, -98]), $a([".", -98, -98])])] + ]); //#11926 + $k[$j++] = _1l; //#11929 + if ($eq($1.version, "a") || $eq($1.version, "b")) { //#11929 + $k[$j++] = 'normal'; //#11929 + } else { //#11929 + $k[$j++] = 'limited'; //#11929 + } //#11929 + var _1o = $k[--$j]; //#11929 + $1.charmaps = $get($k[--$j], _1o); //#11930 + var _1r = $1.charmaps; //#11934 + var _1s = $1.charmaps; //#11934 + var _1t = $1.charmaps; //#11934 + $1.charvals = $a([new Map, new Map, new Map]); //#11935 + for (var _1x = 0, _1w = $1.charmaps.length - 1; _1x <= _1w; _1x += 1) { //#11944 + $1.i = _1x; //#11937 + $1.encs = $get($1.charmaps, $1.i); //#11938 + for (var _21 = 0; _21 <= 2; _21 += 1) { //#11943 + $1.j = _21; //#11940 + var _24 = $get($1.encs, $1.j); //#11941 + $k[$j++] = _24; //#11941 + if ($eq($type(_24), 'stringtype')) { //#11941 + var _27 = $get($k[--$j], 0); //#11941 + $k[$j++] = _27; //#11941 + } //#11941 + $put($get($1.charvals, $1.j), $k[--$j], $1.i); //#11942 + } //#11942 + } //#11942 + $1.set0 = $get($1.charvals, 0); //#11945 + $1.set1 = $get($1.charvals, 1); //#11946 + $1.set2 = $get($1.charvals, 2); //#11947 + if ($1.raw) { //#11949 + $1.encoding = "raw"; //#11949 + } //#11949 + if ($eq($1.encoding, "raw")) { //#11963 + $1.cws = $a($1.barcode.length); //#11952 + $1.i = 0; //#11953 + $1.j = 0; //#11953 + for (;;) { //#11960 + if ($1.i == $1.barcode.length) { //#11955 + break; //#11955 + } //#11955 + $1.cw = ~~$z($geti($1.barcode, $1.i + 1, 3)); //#11956 + $put($1.cws, $1.j, $1.cw); //#11957 + $1.i = $1.i + 4; //#11958 + $1.j = $1.j + 1; //#11959 + } //#11959 + $1.cws = $geti($1.cws, 0, $1.j); //#11961 + $1.text = ""; //#11962 + } //#11962 + if ($eq($1.encoding, "auto")) { //#12078 + var _2g = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["FNC1", $1.fn1], + ["FNC2", $1.fn2], + ["FNC3", $1.fn3] + ]); //#11973 + $1.fncvals = _2g; //#11975 + $k[$j++] = 'msg'; //#11976 + $k[$j++] = $1.barcode; //#11976 + $k[$j++] = $1.fncvals; //#11976 + $0.parseinput(); //#11976 + var _2j = $k[--$j]; //#11976 + $1[$k[--$j]] = _2j; //#11976 + $1.msglen = $1.msg.length; //#11977 + $1.text = $s($1.msglen); //#11979 + for (var _2q = 0, _2p = $1.msglen - 1; _2q <= _2p; _2q += 1) { //#11983 + $1.i = _2q; //#11981 + var _2v = $get($1.msg, $1.i); //#11982 + $k[$j++] = $1.text; //#11982 + $k[$j++] = $1.i; //#11982 + $k[$j++] = _2v; //#11982 + if (_2v < 0) { //#11982 + $j--; //#11982 + $k[$j++] = 32; //#11982 + } //#11982 + var _2w = $k[--$j]; //#11982 + var _2x = $k[--$j]; //#11982 + $put($k[--$j], _2x, _2w); //#11982 + } //#11982 + $k[$j++] = Infinity; //#11986 + for (var _30 = 0, _31 = $1.msglen; _30 < _31; _30++) { //#11986 + $k[$j++] = 0; //#11986 + } //#11986 + $k[$j++] = 0; //#11986 + $1.numSA = $a(); //#11986 + $k[$j++] = Infinity; //#11987 + for (var _34 = 0, _35 = $1.msglen; _34 < _35; _34++) { //#11987 + $k[$j++] = 0; //#11987 + } //#11987 + $k[$j++] = 0; //#11987 + $1.numEA = $a(); //#11987 + for (var _38 = $1.msglen - 1; _38 >= 0; _38 -= 1) { //#11997 + $1.i = _38; //#11989 + if ($get($1.msg, $1.i) >= 0) { //#11996 + if ($get($1.msg, $1.i) >= 128) { //#11994 + $put($1.numEA, $1.i, $f($get($1.numEA, $1.i + 1) + 1)); //#11992 + } else { //#11994 + $put($1.numSA, $1.i, $f($get($1.numSA, $1.i + 1) + 1)); //#11994 + } //#11994 + } //#11994 + } //#11994 + $1.ea = false; //#12000 + $1.msgtmp = $a([]); //#12000 + for (var _3S = 0, _3R = $1.msglen - 1; _3S <= _3R; _3S += 1) { //#12015 + $1.i = _3S; //#12002 + $1.c = $get($1.msg, $1.i); //#12003 + if ((!$xo($1.ea, $1.c < 128)) && ($1.c >= 0)) { //#12013 + if ($1.ea) { //#12005 + $k[$j++] = $1.numSA; //#12005 + } else { //#12005 + $k[$j++] = $1.numEA; //#12005 + } //#12005 + var _3e = $get($k[--$j], $1.i); //#12005 + var _3h = ($f(_3e + $1.i) == $1.msglen) ? 3 : 5; //#12006 + if (_3e < _3h) { //#12011 + $k[$j++] = Infinity; //#12008 + $aload($1.msgtmp); //#12008 + $k[$j++] = $1.fn4; //#12008 + $1.msgtmp = $a(); //#12008 + } else { //#12011 + $k[$j++] = Infinity; //#12010 + $aload($1.msgtmp); //#12010 + $k[$j++] = $1.fn4; //#12010 + $k[$j++] = $1.fn4; //#12010 + $1.msgtmp = $a(); //#12010 + $1.ea = !$1.ea; //#12011 + } //#12011 + } //#12011 + $k[$j++] = Infinity; //#12014 + $aload($1.msgtmp); //#12014 + if ($1.c >= 0) { //#12014 + $k[$j++] = $1.c & 127; //#12014 + } else { //#12014 + $k[$j++] = $1.c; //#12014 + } //#12014 + $1.msgtmp = $a(); //#12014 + } //#12014 + $1.msg = $1.msgtmp; //#12016 + $1.msglen = $1.msg.length; //#12017 $1.enc = function() { - var _3x = $k[--$j]; - $put($1.cws, $1.j, $get(_3x, $k[--$j])); - $1.j = $1.j + 1; - }; - $1.cws = $a($1.msglen * 2); - $1.i = 0; - $1.j = 0; - $1.cset = "set0"; - for (;;) { - if ($1.i == $1.msglen) { - break; - } - for (;;) { - $1.char1 = $get($1.msg, $1.i); - $k[$j++] = "char2"; - if ($1.i + 1 < $1.msglen) { - $k[$j++] = $get($1.msg, $1.i + 1); - } else { - $k[$j++] = -99; - } - var _4F = $k[--$j]; - $1[$k[--$j]] = _4F; - var _4K = $get($1[$1.cset], $1.char1) !== undefined; - if (_4K) { - $k[$j++] = $1.char1; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $1.i = $1.i + 1; - break; - } - var _4R = $get($1.set2, $1.char1) !== undefined; - if (_4R) { - $k[$j++] = $1.sf2; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $k[$j++] = $1.char1; - $k[$j++] = $1.set2; - $1.enc(); - $1.i = $1.i + 1; - break; - } - var _4b = $get($1[$1.cset], $1.char2) !== undefined; - if (!_4b) { - if ($eq($1.cset, "set0")) { - $k[$j++] = $1.la1; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $1.cset = "set1"; - } else { - $k[$j++] = $1.la0; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $1.cset = "set0"; - } - break; - } else { - if ($eq($1.cset, "set0")) { - $k[$j++] = $1.sf1; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $k[$j++] = $1.char1; - $k[$j++] = $1.set1; - $1.enc(); - } else { - $k[$j++] = $1.sf0; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $k[$j++] = $1.char1; - $k[$j++] = $1.set0; - $1.enc(); - } - $1.i = $1.i + 1; - break; - } - break; - } - } - $1.cws = $geti($1.cws, 0, $1.j); - } - var _52 = new Map([ [ "a", $a([ "141112", "131212", "121312", "111412", "131113", "121213", "111313", "121114", "111214", "111115", "181111", "171211", "161311", "151411", "141511", "131611", "121711", "111811", "171112", "161212", "151312", "141412", "131512", "121612", "111712", "161113", "151213", "141313", "131413", "121513", "111613", "151114", "141214", "131314", "121414", "111514", "141115", "131215", "121315", "111415", "131116", "121216", "111316", "121117", "111217", "111118", "1<111112", "111111111;1" ]) ], [ "b", $a([ "151213", "141313", "131413", "121513", "141214", "131314", "121414", "131215", "121315", "121216", "191212", "181312", "171412", "161512", "151612", "141712", "131812", "121912", "181213", "171313", "161413", "151513", "141613", "131713", "121813", "171214", "161314", "151414", "141514", "131614", "121714", "161215", "151315", "141415", "131515", "121615", "151216", "141316", "131416", "121516", "141217", "131317", "121417", "131218", "121318", "121219", "1<121312", "121212121<1" ]) ], [ "limiteda", $a([ "111411", "111312", "111213", "111114", "121311", "121212", "121113", "141111", "131211", "131112", "171111", "161211", "151311", "141411", "131511", "121611", "111711", "161112", "151212", "141312", "131412", "121512", "111612", "151113", "141213", "131313", "121413", "111513", "141114", "131214", "121314", "111414", "131115", "121215", "111315", "121116", "111216", "111117", "151111", "1" ]) ], [ "limitedb", $a([ "121512", "121413", "121314", "121215", "131412", "131313", "131214", "151212", "141312", "141213", "181212", "171312", "161412", "151512", "141612", "131712", "121812", "171213", "161313", "151413", "141513", "131613", "121713", "161214", "151314", "141414", "131514", "121614", "151215", "141315", "131415", "121515", "141216", "131316", "121416", "131217", "121317", "121218", "141212", "1" ]) ] ]); - $1.encs = $get(_52, $1.version); - $1.c2w = $a([ $a([ 495, 330, 210, 126, 70, 35, 15, 5 ]), $a([ 165, 120, 84, 56, 35, 20, 10, 4 ]), $a([ 45, 36, 28, 21, 15, 10, 6, 3 ]), $a([ 9, 8, 7, 6, 5, 4, 3, 2 ]), $a([ 1, 1, 1, 1, 1, 1, 1, 1 ]) ]); - $1.v = 0; - var _5B = $1.cws; - for (var _5C = 0, _5D = _5B.length; _5C < _5D; _5C++) { - $1.cw = $get(_5B, _5C); - for (var _5F = 0, _5G = 6; _5F < _5G; _5F++) { - if ((($1.cw ^ $1.v) & 1) != 0) { - $1.v = $1.v ^ 7682; - } - $1.v = $1.v >>> 1; - $1.cw = $1.cw >>> 1; - } - } - $1.v = $1.v + $1.checkoffset; - if ($eq($1.version, "limiteda") || $eq($1.version, "limitedb")) { - $1.v = $1.v & 1023; - if ($1.v > 824 && $1.v < 853) { - $1.v = $1.v + 292; - } - } else { - $1.v = ($1.v & 1023) + 45; - } - $1.d = $a([ 2, 2, 2, 2, 2, 2 ]); - $1.r = 0; - $1.c = 0; - $1.w = 0; - $1.sum = 0; - for (;;) { - if ($1.sum == $1.v) { - break; - } - $1.t = $f($1.sum + $get($get($1.c2w, $1.r), $1.c)); - if ($1.t == $1.v) { - $1.w = $1.w + 1; - $put($1.d, $1.r, $1.w + 2); - $1.sum = $1.t; - } - if ($1.t > $1.v) { - $put($1.d, $1.r, $1.w + 2); - $1.r = $1.r + 1; - $1.w = 0; - } - if ($1.t < $1.v) { - $1.c = $1.c + 1; - $1.w = $1.w + 1; - $1.sum = $1.t; - } - } - $k[$j++] = 20; - for (var _5w = 0; _5w <= 4; _5w += 1) { - var _5z = $k[--$j]; - $k[$j++] = $f(_5z - $get($1.d, _5w)); - } - $put($1.d, 5, $k[--$j]); - if ($eq($1.version, "b") || $eq($1.version, "limitedb")) { - $k[$j++] = Infinity; - var _64 = $1.d; - for (var _65 = 0, _66 = _64.length; _65 < _66; _65++) { - $k[$j++] = $f($get(_64, _65) + 1); - } - $1.d = $a(); - } - $1.cbs = $strcpy($s(12), "111111111111"); - for (var _6B = 5; _6B >= 0; _6B -= 1) { - $1.i = _6B; - $put($1.cbs, (5 - $1.i) * 2 + 1, $f($get($1.d, $1.i) + 47)); - } - $1.sbs = $s($1.cws.length * 6 + 31); - var _6L = $get($1.encs, $1.encs.length - 2); - $puti($1.sbs, 0, _6L); - $1.j = _6L.length; - for (var _6P = 0, _6O = $1.cws.length - 1; _6P <= _6O; _6P += 1) { - $1.i = _6P; - $puti($1.sbs, $1.j, $get($1.encs, $get($1.cws, $1.i))); - $1.j = $1.j + 6; - } - $puti($1.sbs, $1.j, $1.cbs); - $1.j = $1.j + 12; - var _6e = $get($1.encs, $1.encs.length - 1); - $puti($1.sbs, $1.j, _6e); - $1.j = _6e.length + $1.j; - $1.sbs = $geti($1.sbs, 0, $1.j); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _6l = $1.sbs; - for (var _6m = 0, _6n = _6l.length; _6m < _6n; _6m++) { - $k[$j++] = $f($get(_6l, _6m) - 48); - } - var _6p = $a(); - $k[$j++] = Infinity; - for (var _6r = 0, _6s = ~~(($1.sbs.length + 1) / 2); _6r < _6s; _6r++) { - $k[$j++] = $1.height; - } - var _6u = $a(); - $k[$j++] = Infinity; - for (var _6w = 0, _6x = ~~(($1.sbs.length + 1) / 2); _6w < _6x; _6w++) { - $k[$j++] = 0; - } - var _6y = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _6p; - $k[$j++] = "bhs"; - $k[$j++] = _6u; - $k[$j++] = "bbs"; - $k[$j++] = _6y; - $k[$j++] = "txt"; - $k[$j++] = $a([ $a([ $1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ]) ]); - $k[$j++] = "textxalign"; - $k[$j++] = "center"; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _77 = $d(); - $k[$j++] = _77; - if (!$1.dontdraw) { - $0.renlinear(); - } + var _3x = $k[--$j]; //#12021 + $put($1.cws, $1.j, $get(_3x, $k[--$j])); //#12021 + $1.j = $1.j + 1; //#12022 + }; //#12023 + $1.cws = $a($1.msglen * 2); //#12025 + $1.i = 0; //#12026 + $1.j = 0; //#12026 + $1.cset = "set0"; //#12026 + for (;;) { //#12076 + if ($1.i == $1.msglen) { //#12028 + break; //#12028 + } //#12028 + for (;;) { //#12074 + $1.char1 = $get($1.msg, $1.i); //#12033 + $k[$j++] = 'char2'; //#12034 + if (($1.i + 1) < $1.msglen) { //#12034 + $k[$j++] = $get($1.msg, $1.i + 1); //#12034 + } else { //#12034 + $k[$j++] = -99; //#12034 + } //#12034 + var _4F = $k[--$j]; //#12034 + $1[$k[--$j]] = _4F; //#12034 + var _4K = $get($1[$1.cset], $1.char1) !== undefined; //#12037 + if (_4K) { //#12041 + $k[$j++] = $1.char1; //#12038 + $k[$j++] = $1[$1.cset]; //#12038 + $1.enc(); //#12038 + $1.i = $1.i + 1; //#12039 + break; //#12040 + } //#12040 + var _4R = $get($1.set2, $1.char1) !== undefined; //#12044 + if (_4R) { //#12049 + $k[$j++] = $1.sf2; //#12045 + $k[$j++] = $1[$1.cset]; //#12045 + $1.enc(); //#12045 + $k[$j++] = $1.char1; //#12046 + $k[$j++] = $1.set2; //#12046 + $1.enc(); //#12046 + $1.i = $1.i + 1; //#12047 + break; //#12048 + } //#12048 + var _4b = $get($1[$1.cset], $1.char2) !== undefined; //#12052 + if (!_4b) { //#12070 + if ($eq($1.cset, "set0")) { //#12058 + $k[$j++] = $1.la1; //#12054 + $k[$j++] = $1[$1.cset]; //#12054 + $1.enc(); //#12054 + $1.cset = "set1"; //#12055 + } else { //#12058 + $k[$j++] = $1.la0; //#12057 + $k[$j++] = $1[$1.cset]; //#12057 + $1.enc(); //#12057 + $1.cset = "set0"; //#12058 + } //#12058 + break; //#12060 + } else { //#12070 + if ($eq($1.cset, "set0")) { //#12067 + $k[$j++] = $1.sf1; //#12063 + $k[$j++] = $1[$1.cset]; //#12063 + $1.enc(); //#12063 + $k[$j++] = $1.char1; //#12064 + $k[$j++] = $1.set1; //#12064 + $1.enc(); //#12064 + } else { //#12067 + $k[$j++] = $1.sf0; //#12066 + $k[$j++] = $1[$1.cset]; //#12066 + $1.enc(); //#12066 + $k[$j++] = $1.char1; //#12067 + $k[$j++] = $1.set0; //#12067 + $1.enc(); //#12067 + } //#12067 + $1.i = $1.i + 1; //#12069 + break; //#12070 + } //#12070 + break; //#12073 + } //#12073 + } //#12073 + $1.cws = $geti($1.cws, 0, $1.j); //#12077 + } //#12077 + var _52 = new Map([ + ["a", $a(["141112", "131212", "121312", "111412", "131113", "121213", "111313", "121114", "111214", "111115", "181111", "171211", "161311", "151411", "141511", "131611", "121711", "111811", "171112", "161212", "151312", "141412", "131512", "121612", "111712", "161113", "151213", "141313", "131413", "121513", "111613", "151114", "141214", "131314", "121414", "111514", "141115", "131215", "121315", "111415", "131116", "121216", "111316", "121117", "111217", "111118", "1<111112", "111111111;1"])], + ["b", $a(["151213", "141313", "131413", "121513", "141214", "131314", "121414", "131215", "121315", "121216", "191212", "181312", "171412", "161512", "151612", "141712", "131812", "121912", "181213", "171313", "161413", "151513", "141613", "131713", "121813", "171214", "161314", "151414", "141514", "131614", "121714", "161215", "151315", "141415", "131515", "121615", "151216", "141316", "131416", "121516", "141217", "131317", "121417", "131218", "121318", "121219", "1<121312", "121212121<1"])], + ["limiteda", $a(["111411", "111312", "111213", "111114", "121311", "121212", "121113", "141111", "131211", "131112", "171111", "161211", "151311", "141411", "131511", "121611", "111711", "161112", "151212", "141312", "131412", "121512", "111612", "151113", "141213", "131313", "121413", "111513", "141114", "131214", "121314", "111414", "131115", "121215", "111315", "121116", "111216", "111117", "151111", "1"])], + ["limitedb", $a(["121512", "121413", "121314", "121215", "131412", "131313", "131214", "151212", "141312", "141213", "181212", "171312", "161412", "151512", "141612", "131712", "121812", "171213", "161313", "151413", "141513", "131613", "121713", "161214", "151314", "141414", "131514", "121614", "151215", "141315", "131415", "121515", "141216", "131316", "121416", "131217", "121317", "121218", "141212", "1"])] + ]); //#12124 + $1.encs = $get(_52, $1.version); //#12127 + $1.c2w = $a([$a([495, 330, 210, 126, 70, 35, 15, 5]), $a([165, 120, 84, 56, 35, 20, 10, 4]), $a([45, 36, 28, 21, 15, 10, 6, 3]), $a([9, 8, 7, 6, 5, 4, 3, 2]), $a([1, 1, 1, 1, 1, 1, 1, 1])]); //#12135 + $1.v = 0; //#12136 + var _5B = $1.cws; //#12137 + for (var _5C = 0, _5D = _5B.length; _5C < _5D; _5C++) { //#12146 + $1.cw = $get(_5B, _5C); //#12138 + for (var _5F = 0, _5G = 6; _5F < _5G; _5F++) { //#12145 + if ((($1.cw ^ $1.v) & 1) != 0) { //#12142 + $1.v = $1.v ^ 7682; //#12141 + } //#12141 + $1.v = $1.v >>> 1; //#12143 + $1.cw = $1.cw >>> 1; //#12144 + } //#12144 + } //#12144 + $1.v = $1.v + $1.checkoffset; //#12147 + if ($eq($1.version, "limiteda") || $eq($1.version, "limitedb")) { //#12155 + $1.v = $1.v & 1023; //#12150 + if (($1.v > 824) && ($1.v < 853)) { //#12153 + $1.v = $1.v + 292; //#12152 + } //#12152 + } else { //#12155 + $1.v = ($1.v & 1023) + 45; //#12155 + } //#12155 + $1.d = $a([2, 2, 2, 2, 2, 2]); //#12158 + $1.r = 0; //#12159 + $1.c = 0; //#12159 + $1.w = 0; //#12159 + $1.sum = 0; //#12159 + for (;;) { //#12178 + if ($1.sum == $1.v) { //#12161 + break; //#12161 + } //#12161 + $1.t = $f($1.sum + $get($get($1.c2w, $1.r), $1.c)); //#12162 + if ($1.t == $1.v) { //#12167 + $1.w = $1.w + 1; //#12164 + $put($1.d, $1.r, $1.w + 2); //#12165 + $1.sum = $1.t; //#12166 + } //#12166 + if ($1.t > $1.v) { //#12172 + $put($1.d, $1.r, $1.w + 2); //#12169 + $1.r = $1.r + 1; //#12170 + $1.w = 0; //#12171 + } //#12171 + if ($1.t < $1.v) { //#12177 + $1.c = $1.c + 1; //#12174 + $1.w = $1.w + 1; //#12175 + $1.sum = $1.t; //#12176 + } //#12176 + } //#12176 + $k[$j++] = 20; //#12179 + for (var _5w = 0; _5w <= 4; _5w += 1) { //#12179 + var _5z = $k[--$j]; //#12179 + $k[$j++] = $f(_5z - $get($1.d, _5w)); //#12179 + } //#12179 + $put($1.d, 5, $k[--$j]); //#12180 + if ($eq($1.version, "b") || $eq($1.version, "limitedb")) { //#12183 + $k[$j++] = Infinity; //#12182 + var _64 = $1.d; //#12182 + for (var _65 = 0, _66 = _64.length; _65 < _66; _65++) { //#12182 + $k[$j++] = $f($get(_64, _65) + 1); //#12182 + } //#12182 + $1.d = $a(); //#12182 + } //#12182 + $1.cbs = $strcpy($s(12), "111111111111"); //#12184 + for (var _6B = 5; _6B >= 0; _6B -= 1) { //#12188 + $1.i = _6B; //#12186 + $put($1.cbs, ((5 - $1.i) * 2) + 1, $f($get($1.d, $1.i) + 47)); //#12187 + } //#12187 + $1.sbs = $s(($1.cws.length * 6) + 31); //#12191 + var _6L = $get($1.encs, $1.encs.length - 2); //#12192 + $puti($1.sbs, 0, _6L); //#12193 + $1.j = _6L.length; //#12194 + for (var _6P = 0, _6O = $1.cws.length - 1; _6P <= _6O; _6P += 1) { //#12199 + $1.i = _6P; //#12196 + $puti($1.sbs, $1.j, $get($1.encs, $get($1.cws, $1.i))); //#12197 + $1.j = $1.j + 6; //#12198 + } //#12198 + $puti($1.sbs, $1.j, $1.cbs); //#12200 + $1.j = $1.j + 12; //#12201 + var _6e = $get($1.encs, $1.encs.length - 1); //#12202 + $puti($1.sbs, $1.j, _6e); //#12203 + $1.j = _6e.length + $1.j; //#12204 + $1.sbs = $geti($1.sbs, 0, $1.j); //#12205 + $k[$j++] = Infinity; //#12215 + $k[$j++] = Infinity; //#12210 + var _6l = $1.sbs; //#12210 + for (var _6m = 0, _6n = _6l.length; _6m < _6n; _6m++) { //#12210 + $k[$j++] = $f($get(_6l, _6m) - 48); //#12210 + } //#12210 + var _6p = $a(); //#12210 + $k[$j++] = Infinity; //#12211 + for (var _6r = 0, _6s = ~~(($1.sbs.length + 1) / 2); _6r < _6s; _6r++) { //#12211 + $k[$j++] = $1.height; //#12211 + } //#12211 + var _6u = $a(); //#12211 + $k[$j++] = Infinity; //#12212 + for (var _6w = 0, _6x = ~~(($1.sbs.length + 1) / 2); _6w < _6x; _6w++) { //#12212 + $k[$j++] = 0; //#12212 + } //#12212 + var _6y = $a(); //#12212 + $k[$j++] = 'ren'; //#12215 + $k[$j++] = $0.renlinear; //#12215 + $k[$j++] = 'sbs'; //#12215 + $k[$j++] = _6p; //#12215 + $k[$j++] = 'bhs'; //#12215 + $k[$j++] = _6u; //#12215 + $k[$j++] = 'bbs'; //#12215 + $k[$j++] = _6y; //#12215 + $k[$j++] = 'txt'; //#12215 + $k[$j++] = $a([$a([$1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])]); //#12215 + $k[$j++] = 'textxalign'; //#12215 + $k[$j++] = "center"; //#12215 + $k[$j++] = 'opt'; //#12215 + $k[$j++] = $1.options; //#12215 + var _77 = $d(); //#12215 + $k[$j++] = _77; //#12218 + if (!$1.dontdraw) { //#12218 + $0.renlinear(); //#12218 + } //#12218 }; $0.codablockf = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.rows = -1; - $1.columns = 8; - $1.rowheight = 10; - $1.sepheight = 1; - $1.parse = false; - $1.parsefnc = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.rows = ~~$1.rows; - $1.columns = ~~$1.columns; - $1.rowheight = ~~$1.rowheight; - $1.sepheight = ~~$1.sepheight; - $k[$j++] = "c"; - if ($1.columns >= 4 && $1.columns <= 62) { - $k[$j++] = $1.columns; - } else { - $k[$j++] = 8; - } - var _C = $k[--$j]; - $1[$k[--$j]] = _C; - $k[$j++] = "rows"; - if ($1.rows >= 2 && $1.rows <= 44) { - $k[$j++] = $1.rows; - } else { - $k[$j++] = -1; - } - var _H = $k[--$j]; - $1[$k[--$j]] = _H; - $1.swa = -1; - $1.swb = -2; - $1.swc = -3; - $1.sft = -4; - $1.fn1 = -5; - $1.fn2 = -6; - $1.fn3 = -7; - $1.fn4 = -8; - $1.sta = -9; - $1.stp = -10; - var _N = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "FNC1", $1.fn1 ], [ "FNC3", $1.fn3 ] ]); - $1.fncvals = _N; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _Q = $k[--$j]; - $1[$k[--$j]] = _Q; - $1.msglen = $1.msg.length; - $1.msgtmp = $a([]); - var _U = $1.msg; - for (var _V = 0, _W = _U.length; _V < _W; _V++) { - $1.char = $get(_U, _V); - $k[$j++] = Infinity; - $aload($1.msgtmp); - if ($1.char < 128) { - $k[$j++] = $1.char; - } else { - $k[$j++] = $1.fn4; - $k[$j++] = $1.char & 127; - } - $1.msgtmp = $a(); - } - $1.msg = $1.msgtmp; - $1.msglen = $1.msg.length; - $1.charmaps = $a([ $a([ 32, 32, "00" ]), $a([ "!", "!", "01" ]), $a([ '"', '"', "02" ]), $a([ "#", "#", "03" ]), $a([ "$", "$", "04" ]), $a([ "%", "%", "05" ]), $a([ "&", "&", "06" ]), $a([ "'", "'", "07" ]), $a([ 40, 40, "08" ]), $a([ 41, 41, "09" ]), $a([ "*", "*", "10" ]), $a([ "+", "+", "11" ]), $a([ ",", ",", "12" ]), $a([ "-", "-", "13" ]), $a([ ".", ".", "14" ]), $a([ "/", "/", "15" ]), $a([ "0", "0", "16" ]), $a([ "1", "1", "17" ]), $a([ "2", "2", "18" ]), $a([ "3", "3", "19" ]), $a([ "4", "4", "20" ]), $a([ "5", "5", "21" ]), $a([ "6", "6", "22" ]), $a([ "7", "7", "23" ]), $a([ "8", "8", "24" ]), $a([ "9", "9", "25" ]), $a([ ":", ":", "26" ]), $a([ ";", ";", "27" ]), $a([ "<", "<", "28" ]), $a([ "=", "=", "29" ]), $a([ ">", ">", "30" ]), $a([ "?", "?", "31" ]), $a([ "@", "@", "32" ]), $a([ "A", "A", "33" ]), $a([ "B", "B", "34" ]), $a([ "C", "C", "35" ]), $a([ "D", "D", "36" ]), $a([ "E", "E", "37" ]), $a([ "F", "F", "38" ]), $a([ "G", "G", "39" ]), $a([ "H", "H", "40" ]), $a([ "I", "I", "41" ]), $a([ "J", "J", "42" ]), $a([ "K", "K", "43" ]), $a([ "L", "L", "44" ]), $a([ "M", "M", "45" ]), $a([ "N", "N", "46" ]), $a([ "O", "O", "47" ]), $a([ "P", "P", "48" ]), $a([ "Q", "Q", "49" ]), $a([ "R", "R", "50" ]), $a([ "S", "S", "51" ]), $a([ "T", "T", "52" ]), $a([ "U", "U", "53" ]), $a([ "V", "V", "54" ]), $a([ "W", "W", "55" ]), $a([ "X", "X", "56" ]), $a([ "Y", "Y", "57" ]), $a([ "Z", "Z", "58" ]), $a([ "[", "[", "59" ]), $a([ 92, 92, "60" ]), $a([ "]", "]", "61" ]), $a([ "^", "^", "62" ]), $a([ "_", "_", "63" ]), $a([ 0, "`", "64" ]), $a([ 1, "a", "65" ]), $a([ 2, "b", "66" ]), $a([ 3, "c", "67" ]), $a([ 4, "d", "68" ]), $a([ 5, "e", "69" ]), $a([ 6, "f", "70" ]), $a([ 7, "g", "71" ]), $a([ 8, "h", "72" ]), $a([ 9, "i", "73" ]), $a([ 10, "j", "74" ]), $a([ 11, "k", "75" ]), $a([ 12, "l", "76" ]), $a([ 13, "m", "77" ]), $a([ 14, "n", "78" ]), $a([ 15, "o", "79" ]), $a([ 16, "p", "80" ]), $a([ 17, "q", "81" ]), $a([ 18, "r", "82" ]), $a([ 19, "s", "83" ]), $a([ 20, "t", "84" ]), $a([ 21, "u", "85" ]), $a([ 22, "v", "86" ]), $a([ 23, "w", "87" ]), $a([ 24, "x", "88" ]), $a([ 25, "y", "89" ]), $a([ 26, "z", "90" ]), $a([ 27, "{", "91" ]), $a([ 28, "|", "92" ]), $a([ 29, "}", "93" ]), $a([ 30, "~", "94" ]), $a([ 31, 127, "95" ]), $a([ $1.fn3, $1.fn3, "96" ]), $a([ $1.fn2, $1.fn2, "97" ]), $a([ $1.sft, $1.sft, "98" ]), $a([ $1.swc, $1.swc, "99" ]), $a([ $1.swb, $1.fn4, $1.swb ]), $a([ $1.fn4, $1.swa, $1.swa ]), $a([ $1.fn1, $1.fn1, $1.fn1 ]), $a([ $1.sta, $1.sta, $1.sta ]), $a([ $1.stp, $1.stp, $1.stp ]) ]); - $1.charvals = $a([ new Map(), new Map(), new Map() ]); - for (var _2o = 0, _2n = $1.charmaps.length - 1; _2o <= _2n; _2o += 1) { - $1.i = _2o; - $1.encs = $get($1.charmaps, $1.i); - for (var _2s = 0; _2s <= 2; _2s += 1) { - $1.j = _2s; - var _2v = $get($1.encs, $1.j); - $k[$j++] = _2v; - if ($eq($type(_2v), "stringtype")) { - var _2y = $get($k[--$j], 0); - $k[$j++] = _2y; - } - $put($get($1.charvals, $1.j), $k[--$j], $1.i); - } - } - $1.seta = $get($1.charvals, 0); - $1.setb = $get($1.charvals, 1); - $1.setc = $get($1.charvals, 2); + var $1 = {}; //#12248 + $1.options = $k[--$j]; //#12250 + $1.barcode = $k[--$j]; //#12251 + $1.dontdraw = false; //#12253 + $1.rows = -1; //#12254 + $1.columns = 8; //#12255 + $1.rowheight = 10; //#12256 + $1.sepheight = 1; //#12257 + $1.parse = false; //#12258 + $1.parsefnc = false; //#12259 + $forall($1.options, function() { //#12270 + var _3 = $k[--$j]; //#12270 + $1[$k[--$j]] = _3; //#12270 + }); //#12270 + $1.rows = ~~$1.rows; //#12272 + $1.columns = ~~$1.columns; //#12273 + $1.rowheight = ~~$1.rowheight; //#12274 + $1.sepheight = ~~$1.sepheight; //#12275 + $k[$j++] = 'c'; //#12277 + if (($1.columns >= 4) && ($1.columns <= 62)) { //#12277 + $k[$j++] = $1.columns; //#12277 + } else { //#12277 + $k[$j++] = 8; //#12277 + } //#12277 + var _C = $k[--$j]; //#12277 + $1[$k[--$j]] = _C; //#12277 + $k[$j++] = 'rows'; //#12278 + if (($1.rows >= 2) && ($1.rows <= 44)) { //#12278 + $k[$j++] = $1.rows; //#12278 + } else { //#12278 + $k[$j++] = -1; //#12278 + } //#12278 + var _H = $k[--$j]; //#12278 + $1[$k[--$j]] = _H; //#12278 + $1.swa = -1; //#12281 + $1.swb = -2; //#12281 + $1.swc = -3; //#12281 + $1.sft = -4; //#12281 + $1.fn1 = -5; //#12282 + $1.fn2 = -6; //#12282 + $1.fn3 = -7; //#12282 + $1.fn4 = -8; //#12282 + $1.sta = -9; //#12283 + $1.stp = -10; //#12283 + var _N = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["FNC1", $1.fn1], + ["FNC3", $1.fn3] + ]); //#12291 + $1.fncvals = _N; //#12293 + $k[$j++] = 'msg'; //#12294 + $k[$j++] = $1.barcode; //#12294 + $k[$j++] = $1.fncvals; //#12294 + $0.parseinput(); //#12294 + var _Q = $k[--$j]; //#12294 + $1[$k[--$j]] = _Q; //#12294 + $1.msglen = $1.msg.length; //#12295 + $1.msgtmp = $a([]); //#12298 + var _U = $1.msg; //#12299 + for (var _V = 0, _W = _U.length; _V < _W; _V++) { //#12302 + $1.char = $get(_U, _V); //#12300 + $k[$j++] = Infinity; //#12301 + $aload($1.msgtmp); //#12301 + if ($1.char < 128) { //#12301 + $k[$j++] = $1.char; //#12301 + } else { //#12301 + $k[$j++] = $1.fn4; //#12301 + $k[$j++] = $1.char & 127; //#12301 + } //#12301 + $1.msgtmp = $a(); //#12301 + } //#12301 + $1.msg = $1.msgtmp; //#12303 + $1.msglen = $1.msg.length; //#12304 + $1.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$1.fn3, $1.fn3, "96"]), $a([$1.fn2, $1.fn2, "97"]), $a([$1.sft, $1.sft, "98"]), $a([$1.swc, $1.swc, "99"]), $a([$1.swb, $1.fn4, $1.swb]), $a([$1.fn4, $1.swa, $1.swa]), $a([$1.fn1, $1.fn1, $1.fn1]), $a([$1.sta, $1.sta, $1.sta]), $a([$1.stp, $1.stp, $1.stp])]); //#12344 + $1.charvals = $a([new Map, new Map, new Map]); //#12347 + for (var _2o = 0, _2n = $1.charmaps.length - 1; _2o <= _2n; _2o += 1) { //#12356 + $1.i = _2o; //#12349 + $1.encs = $get($1.charmaps, $1.i); //#12350 + for (var _2s = 0; _2s <= 2; _2s += 1) { //#12355 + $1.j = _2s; //#12352 + var _2v = $get($1.encs, $1.j); //#12353 + $k[$j++] = _2v; //#12353 + if ($eq($type(_2v), 'stringtype')) { //#12353 + var _2y = $get($k[--$j], 0); //#12353 + $k[$j++] = _2y; //#12353 + } //#12353 + $put($get($1.charvals, $1.j), $k[--$j], $1.i); //#12354 + } //#12354 + } //#12354 + $1.seta = $get($1.charvals, 0); //#12357 + $1.setb = $get($1.charvals, 1); //#12358 + $1.setc = $get($1.charvals, 2); //#12359 $1.numsscr = function() { - $1.n = 0; - $1.s = 0; - $1.p = $k[--$j]; - for (;;) { - if ($1.p >= $1.msglen) { - break; - } - var _3F = $get($1.msg, $1.p); - var _3H = $get($1.setc, _3F) !== undefined; - $k[$j++] = _3F; - if (!_3H) { - $j--; - break; - } - if ($k[--$j] == $1.fn1) { - if ($1.s % 2 == 0) { - $1.s = $1.s + 1; - } else { - break; - } - } - $1.n = $1.n + 1; - $1.s = $1.s + 1; - $1.p = $f($1.p + 1); - } - $k[$j++] = $1.n; - $k[$j++] = $1.s; - }; + $1.n = 0; //#12363 + $1.s = 0; //#12363 + $1.p = $k[--$j]; //#12364 + for (;;) { //#12375 + if ($1.p >= $1.msglen) { //#12365 + break; //#12365 + } //#12365 + var _3F = $get($1.msg, $1.p); //#12366 + var _3H = $get($1.setc, _3F) !== undefined; //#12367 + $k[$j++] = _3F; //#12367 + if (!_3H) { //#12367 + $j--; //#12367 + break; //#12367 + } //#12367 + if ($k[--$j] == $1.fn1) { //#12371 + if (($1.s % 2) == 0) { //#12370 + $1.s = $1.s + 1; //#12370 + } else { //#12370 + break; //#12370 + } //#12370 + } //#12370 + $1.n = $1.n + 1; //#12372 + $1.s = $1.s + 1; //#12373 + $1.p = $f($1.p + 1); //#12374 + } //#12374 + $k[$j++] = $1.n; //#12376 + $k[$j++] = $1.s; //#12376 + }; //#12377 $1.enca = function() { - $put($1.cws, $1.j, $get($1.seta, $k[--$j])); - $1.j = $1.j + 1; - }; + $put($1.cws, $1.j, $get($1.seta, $k[--$j])); //#12381 + $1.j = $1.j + 1; //#12382 + }; //#12383 $1.encb = function() { - $put($1.cws, $1.j, $get($1.setb, $k[--$j])); - $1.j = $1.j + 1; - }; + $put($1.cws, $1.j, $get($1.setb, $k[--$j])); //#12385 + $1.j = $1.j + 1; //#12386 + }; //#12387 $1.encc = function() { - var _3d = $k[--$j]; - $k[$j++] = _3d; - if ($ne($type(_3d), "arraytype")) { - var _3h = $get($1.setc, $k[--$j]); - $k[$j++] = _3h; - } else { - $aload($k[--$j]); - var _3j = $k[--$j]; - var _3k = $k[--$j]; - $k[$j++] = $f($f(_3j - 48) + $f(_3k - 48) * 10); - } - $put($1.cws, $1.j, $k[--$j]); - $1.j = $1.j + 1; - }; + var _3d = $k[--$j]; //#12389 + $k[$j++] = _3d; //#12393 + if ($ne($type(_3d), 'arraytype')) { //#12392 + var _3h = $get($1.setc, $k[--$j]); //#12390 + $k[$j++] = _3h; //#12390 + } else { //#12392 + $aload($k[--$j]); //#12392 + var _3j = $k[--$j]; //#12392 + var _3k = $k[--$j]; //#12392 + $k[$j++] = $f($f(_3j - 48) + ($f(_3k - 48) * 10)); //#12392 + } //#12392 + $put($1.cws, $1.j, $k[--$j]); //#12394 + $1.j = $1.j + 1; //#12395 + }; //#12396 $1.anotb = function() { - var _3p = $k[--$j]; - var _3r = $get($1.seta, _3p) !== undefined; - var _3t = $get($1.setb, _3p) !== undefined; - $k[$j++] = _3r && !_3t; - }; + var _3p = $k[--$j]; //#12399 + var _3r = $get($1.seta, _3p) !== undefined; //#12399 + var _3t = $get($1.setb, _3p) !== undefined; //#12399 + $k[$j++] = _3r && (!_3t); //#12399 + }; //#12399 $1.bnota = function() { - var _3u = $k[--$j]; - var _3w = $get($1.setb, _3u) !== undefined; - var _3y = $get($1.seta, _3u) !== undefined; - $k[$j++] = _3w && !_3y; - }; - $k[$j++] = Infinity; - for (var _40 = 0, _41 = $1.msg.length; _40 < _41; _40++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextanotb = $a(); - $k[$j++] = Infinity; - for (var _44 = 0, _45 = $1.msg.length; _44 < _45; _44++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextbnota = $a(); - for (var _48 = $1.msg.length - 1; _48 >= 0; _48 -= 1) { - $1.i = _48; - $k[$j++] = $get($1.msg, $1.i); - $1.anotb(); - if ($k[--$j]) { - $put($1.nextanotb, $1.i, 0); - } else { - $put($1.nextanotb, $1.i, $f($get($1.nextanotb, $1.i + 1) + 1)); - } - $k[$j++] = $get($1.msg, $1.i); - $1.bnota(); - if ($k[--$j]) { - $put($1.nextbnota, $1.i, 0); - } else { - $put($1.nextbnota, $1.i, $f($get($1.nextbnota, $1.i + 1) + 1)); - } - } + var _3u = $k[--$j]; //#12400 + var _3w = $get($1.setb, _3u) !== undefined; //#12400 + var _3y = $get($1.seta, _3u) !== undefined; //#12400 + $k[$j++] = _3w && (!_3y); //#12400 + }; //#12400 + $k[$j++] = Infinity; //#12403 + for (var _40 = 0, _41 = $1.msg.length; _40 < _41; _40++) { //#12403 + $k[$j++] = 0; //#12403 + } //#12403 + $k[$j++] = 9999; //#12403 + $1.nextanotb = $a(); //#12403 + $k[$j++] = Infinity; //#12404 + for (var _44 = 0, _45 = $1.msg.length; _44 < _45; _44++) { //#12404 + $k[$j++] = 0; //#12404 + } //#12404 + $k[$j++] = 9999; //#12404 + $1.nextbnota = $a(); //#12404 + for (var _48 = $1.msg.length - 1; _48 >= 0; _48 -= 1) { //#12417 + $1.i = _48; //#12406 + $k[$j++] = $get($1.msg, $1.i); //#12407 + $1.anotb(); //#12407 + if ($k[--$j]) { //#12410 + $put($1.nextanotb, $1.i, 0); //#12408 + } else { //#12410 + $put($1.nextanotb, $1.i, $f($get($1.nextanotb, $1.i + 1) + 1)); //#12410 + } //#12410 + $k[$j++] = $get($1.msg, $1.i); //#12412 + $1.bnota(); //#12412 + if ($k[--$j]) { //#12415 + $put($1.nextbnota, $1.i, 0); //#12413 + } else { //#12415 + $put($1.nextbnota, $1.i, $f($get($1.nextbnota, $1.i + 1) + 1)); //#12415 + } //#12415 + } //#12415 $1.abeforeb = function() { - var _4V = $k[--$j]; - $k[$j++] = $lt($get($1.nextanotb, _4V), $get($1.nextbnota, _4V)); - }; + var _4V = $k[--$j]; //#12420 + $k[$j++] = $lt($get($1.nextanotb, _4V), $get($1.nextbnota, _4V)); //#12420 + }; //#12420 $1.bbeforea = function() { - var _4a = $k[--$j]; - $k[$j++] = $lt($get($1.nextbnota, _4a), $get($1.nextanotb, _4a)); - }; + var _4a = $k[--$j]; //#12421 + $k[$j++] = $lt($get($1.nextbnota, _4a), $get($1.nextanotb, _4a)); //#12421 + }; //#12421 $1.padrow = function() { - for (var _4g = 0, _4h = $k[--$j]; _4g < _4h; _4g++) { - for (;;) { - if ($eq($1.cset, "seta")) { - $k[$j++] = $1.swc; - $1.enca(); - $1.cset = "setc"; - break; - } - if ($eq($1.cset, "setb")) { - $k[$j++] = $1.swc; - $1.encb(); - $1.cset = "setc"; - break; - } - if ($eq($1.cset, "setc")) { - $k[$j++] = $1.swb; - $1.encc(); - $1.cset = "setb"; - break; - } - } - } - }; - $1.cws = $a($f($1.c + 5) * 44); - $1.i = 0; - $1.j = 0; - $1.r = 1; - $1.lastrow = false; - for (;;) { - if ($1.lastrow) { - break; - } - $k[$j++] = $1.sta; - $1.enca(); - if ($1.i < $1.msglen) { - $k[$j++] = $1.i; - $1.numsscr(); - } else { - $k[$j++] = -1; - $k[$j++] = -1; - } - $1.nums = $k[--$j]; - $1.nchars = $k[--$j]; - for (;;) { - if ($1.msglen == 0) { - $k[$j++] = $1.swb; - $1.enca(); - $1.cset = "setb"; - break; - } - if ($1.nums >= 2) { - $k[$j++] = $1.swc; - $1.enca(); - $1.cset = "setc"; - break; - } - $k[$j++] = $1.i; - $1.abeforeb(); - if ($k[--$j]) { - $k[$j++] = $1.sft; - $1.enca(); - $1.cset = "seta"; - break; - } - $k[$j++] = $1.swb; - $1.enca(); - $1.cset = "setb"; - break; - } - $1.j = $1.j + 1; - $1.endofrow = false; - for (;;) { - $1.rem = $f($f($1.c + 3) - $1.j % $f($1.c + 5)); - if ($1.i == $1.msglen || $1.endofrow) { - break; - } - $k[$j++] = $1.i; - $1.numsscr(); - $1.nums = $k[--$j]; - $1.nchars = $k[--$j]; - $k[$j++] = "remnums"; - if ($1.nums > $1.rem * 2) { - $k[$j++] = $1.rem * 2; - } else { - $k[$j++] = $1.nums; - } - var _5J = $k[--$j]; - $1[$k[--$j]] = _5J; - for (;;) { - if (($eq($1.cset, "seta") || $eq($1.cset, "setb")) && $1.remnums >= 4 && $get($1.msg, $1.i) != $1.fn1) { - if ($1.remnums % 2 == 0 && $1.rem >= 3) { - $k[$j++] = $1.swc; - if ($eq($1.cset, "seta")) { - $1.enca(); - } else { - $1.encb(); - } - $1.cset = "setc"; - for (var _5W = 0, _5X = 2; _5W < _5X; _5W++) { - if ($get($1.msg, $1.i) == $1.fn1) { - $k[$j++] = $1.fn1; - $1.encc(); - $1.i = $1.i + 1; - } else { - $k[$j++] = $geti($1.msg, $1.i, 2); - $1.encc(); - $1.i = $1.i + 2; - } - } - break; - } - if ($1.remnums % 2 != 0 && $1.rem >= 4) { - $k[$j++] = $get($1.msg, $1.i); - if ($eq($1.cset, "seta")) { - $1.enca(); - } else { - $1.encb(); - } - $1.i = $1.i + 1; - $k[$j++] = $1.swc; - if ($eq($1.cset, "seta")) { - $1.enca(); - } else { - $1.encb(); - } - $1.cset = "setc"; - for (var _5r = 0, _5s = 2; _5r < _5s; _5r++) { - if ($get($1.msg, $1.i) == $1.fn1) { - $k[$j++] = $1.fn1; - $1.encc(); - $1.i = $1.i + 1; - } else { - $k[$j++] = $geti($1.msg, $1.i, 2); - $1.encc(); - $1.i = $1.i + 2; - } - } - break; - } - } - $k[$j++] = $eq($1.cset, "setb"); - $k[$j++] = $get($1.msg, $1.i); - $1.anotb(); - var _67 = $k[--$j]; - var _68 = $k[--$j]; - if (_68 && _67 && $1.rem >= 2) { - if ($1.i < $1.msglen - 1) { - $k[$j++] = $1.i + 1; - $1.bbeforea(); - if ($k[--$j]) { - $k[$j++] = $1.sft; - $1.encb(); - $k[$j++] = $get($1.msg, $1.i); - $1.enca(); - $1.i = $1.i + 1; - break; - } - } - $k[$j++] = $1.swa; - $1.encb(); - $1.cset = "seta"; - $k[$j++] = $get($1.msg, $1.i); - $1.enca(); - $1.i = $1.i + 1; - break; - } - $k[$j++] = $eq($1.cset, "seta"); - $k[$j++] = $get($1.msg, $1.i); - $1.bnota(); - var _6S = $k[--$j]; - var _6T = $k[--$j]; - if (_6T && _6S && $1.rem >= 2) { - if ($1.i < $1.msglen - 1) { - $k[$j++] = $1.i + 1; - $1.abeforeb(); - if ($k[--$j]) { - $k[$j++] = $1.sft; - $1.enca(); - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $1.i = $1.i + 1; - break; - } - } - $k[$j++] = $1.swb; - $1.enca(); - $1.cset = "setb"; - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $1.i = $1.i + 1; - break; - } - if ($eq($1.cset, "setc") && $1.remnums < 2 && $1.rem >= 2) { - $k[$j++] = $1.i; - $1.abeforeb(); - if ($k[--$j]) { - $k[$j++] = $1.swa; - $1.encc(); - $1.cset = "seta"; - $k[$j++] = $get($1.msg, $1.i); - $1.enca(); - $1.i = $1.i + 1; - break; - } - $k[$j++] = $1.swb; - $1.encc(); - $1.cset = "setb"; - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $1.i = $1.i + 1; - break; - } - var _73 = $get($1.seta, $get($1.msg, $1.i)) !== undefined; - if ($eq($1.cset, "seta") && _73 && $1.rem >= 1) { - $k[$j++] = $get($1.msg, $1.i); - $1.enca(); - $1.i = $1.i + 1; - break; - } - var _7E = $get($1.setb, $get($1.msg, $1.i)) !== undefined; - if ($eq($1.cset, "setb") && _7E && $1.rem >= 1) { - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $1.i = $1.i + 1; - break; - } - if ($eq($1.cset, "setc") && $1.remnums >= 2 && $1.rem >= 1) { - if ($get($1.msg, $1.i) == $1.fn1) { - $k[$j++] = $1.fn1; - $1.encc(); - $1.i = $1.i + 1; - } else { - $k[$j++] = $geti($1.msg, $1.i, 2); - $1.encc(); - $1.i = $1.i + 2; - } - break; - } - $1.endofrow = true; - break; - } - } - if (($1.r >= $1.rows || $1.rows == -1) && $1.r > 1 && $1.i == $1.msglen && $1.rem >= 2) { - $k[$j++] = $f($1.rem - 2); - $1.padrow(); - $1.j = $1.j + 3; - $k[$j++] = $1.stp; - $1.enca(); - $1.lastrow = true; - } else { - $k[$j++] = $1.rem; - $1.padrow(); - $1.j = $1.j + 1; - $k[$j++] = $1.stp; - $1.enca(); - $1.r = $1.r + 1; - } - } - $1.cws = $geti($1.cws, 0, $1.j); - $k[$j++] = Infinity; - for (var _7o = 64; _7o <= 95; _7o += 1) { - $k[$j++] = _7o; - } - for (var _7p = 0; _7p <= 15; _7p += 1) { - $k[$j++] = _7p; - } - for (var _7q = 26; _7q <= 63; _7q += 1) { - $k[$j++] = _7q; - } - $1.abmap = $a(); - $k[$j++] = Infinity; - for (var _7s = 0; _7s <= 85; _7s += 1) { - $k[$j++] = _7s; - } - $1.cmap = $a(); - $1.chkmsg = $a($1.msglen); - $1.j = 0; - for (var _7y = 0, _7x = $1.msglen - 1; _7y <= _7x; _7y += 1) { - $1.i = _7y; - $1.char = $get($1.msg, $1.i); - if ($1.char >= 0) { - $put($1.chkmsg, $1.j, $1.char); - $1.j = $1.j + 1; - } - if ($1.char == $1.fn1 && $1.i != 0) { - $put($1.chkmsg, $1.j, 29); - $1.j = $1.j + 1; - } - } - $1.t1 = 0; - $1.t2 = 0; - $1.k1 = 0; - $1.k2 = 0; - for (var _8F = 0, _8E = $1.j - 1; _8F <= _8E; _8F += 1) { - $1.i = _8F; - $1.t1 = $get($1.chkmsg, $1.i) * $1.i % 86; - $1.t2 = $f($1.t1 + $get($1.chkmsg, $1.i)) % 86; - $1.k1 = $f($1.k1 + $1.t2) % 86; - $1.k2 = $f($1.k2 + $1.t1) % 86; - } - $k[$j++] = $1.cws; - $k[$j++] = $1.cws.length - 4; - if ($ne($1.cset, "setc")) { - $k[$j++] = $1.abmap; - } else { - $k[$j++] = $1.cmap; - } - var _8Z = $get($k[--$j], $1.k1); - var _8a = $k[--$j]; - $put($k[--$j], _8a, _8Z); - $k[$j++] = $1.cws; - $k[$j++] = $1.cws.length - 3; - if ($ne($1.cset, "setc")) { - $k[$j++] = $1.abmap; - } else { - $k[$j++] = $1.cmap; - } - var _8j = $get($k[--$j], $1.k2); - var _8k = $k[--$j]; - $put($k[--$j], _8k, _8j); - var _8m = $1.cws; - $k[$j++] = _8m; - $k[$j++] = 2; - if ($get(_8m, 2 - 1) != 99) { - $k[$j++] = $1.abmap; - } else { - $k[$j++] = $1.cmap; - } - var _8s = $get($k[--$j], $1.r - 2); - var _8t = $k[--$j]; - $put($k[--$j], _8t, _8s); - for (var _8x = 1, _8w = $1.r - 1; _8x <= _8w; _8x += 1) { - $1.i = _8x; - var _8y = $1.cws; - var _8z = $1.i; - var _90 = $1.c; - $k[$j++] = _8y; - $k[$j++] = $f(_8z * $f(_90 + 5) + 2); - if ($get(_8y, $f($f(_8z * $f(_90 + 5) + 2) - 1)) != 99) { - $k[$j++] = $1.abmap; - } else { - $k[$j++] = $1.cmap; - } - var _96 = $get($k[--$j], $1.i + 42); - var _97 = $k[--$j]; - $put($k[--$j], _97, _96); - } - for (var _9B = 0, _9A = $1.r - 1; _9B <= _9A; _9B += 1) { - $1.rcws = $geti($1.cws, _9B * $f($1.c + 5), $f($1.c + 4)); - $1.csum = $get($1.rcws, 0); - for (var _9K = 1, _9J = $1.rcws.length - 2; _9K <= _9J; _9K += 1) { - $1.i = _9K; - $1.csum = $f($1.csum + $get($1.rcws, $1.i) * $1.i); - } - $put($1.rcws, $1.rcws.length - 1, $1.csum % 103); - } - $1.encs = $a([ "212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "2331112" ]); - $1.rowbits = $a($1.r); - for (var _9Y = 0, _9X = $1.r - 1; _9Y <= _9X; _9Y += 1) { - $1.i = _9Y; - $k[$j++] = Infinity; - var _9d = $geti($1.cws, $1.i * $f($1.c + 5), $f($1.c + 5)); - for (var _9e = 0, _9f = _9d.length; _9e < _9f; _9e++) { - $forall($get($1.encs, $get(_9d, _9e)), function() { - var _9j = $k[--$j]; - $k[$j++] = $f(_9j - 48); - }); - } - $1.sbs = $a(); - $k[$j++] = Infinity; - var _9l = $1.sbs; - $k[$j++] = 0; - for (var _9m = 0, _9n = _9l.length; _9m < _9n; _9m++) { - var _9p = $k[--$j]; - var _9q = _9p == 1 ? 0 : 1; - $k[$j++] = _9p; - for (var _9r = 0, _9s = $get(_9l, _9m); _9r < _9s; _9r++) { - $k[$j++] = _9q; - } - } - $astore($a($counttomark() - 1)); - var _9v = $k[--$j]; - var _9w = $k[--$j]; - $k[$j++] = _9v; - $k[$j++] = _9w; - $j--; - var _9x = $k[--$j]; - var _9y = $k[--$j]; - $k[$j++] = _9x; - $k[$j++] = _9y; - $j--; - $put($1.rowbits, $1.i, $k[--$j]); - } - $1.symwid = $f($1.c * 11 + 57); - $k[$j++] = Infinity; - for (var _A5 = 0, _A6 = $1.symwid * $1.sepheight; _A5 < _A6; _A5++) { - $k[$j++] = 1; - } - for (var _A9 = 0, _A8 = $1.r - 2; _A9 <= _A8; _A9 += 1) { - $1.i = _A9; - for (var _AB = 0, _AC = $1.rowheight; _AB < _AC; _AB++) { - $aload($get($1.rowbits, $1.i)); - } - for (var _AH = 0, _AI = $1.sepheight; _AH < _AI; _AH++) { - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 0; - for (var _AK = 0, _AL = $f($1.symwid - 24); _AK < _AL; _AK++) { - $k[$j++] = 1; - } - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 1; - } - } - for (var _AN = 0, _AO = $1.rowheight; _AN < _AO; _AN++) { - $aload($get($1.rowbits, $1.r - 1)); - } - for (var _AU = 0, _AV = $1.symwid * $1.sepheight; _AU < _AV; _AU++) { - $k[$j++] = 1; - } - $1.pixs = $a(); - var _Af = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", $1.symwid ], [ "pixy", ~~($1.pixs.length / $1.symwid) ], [ "height", ~~($1.pixs.length / $1.symwid) / 72 ], [ "width", $1.symwid / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _Af; - if (!$1.dontdraw) { - $0.renmatrix(); - } + for (var _4g = 0, _4h = $k[--$j]; _4g < _4h; _4g++) { //#12431 + for (;;) { //#12430 + if ($eq($1.cset, "seta")) { //#12427 + $k[$j++] = $1.swc; //#12427 + $1.enca(); //#12427 + $1.cset = "setc"; //#12427 + break; //#12427 + } //#12427 + if ($eq($1.cset, "setb")) { //#12428 + $k[$j++] = $1.swc; //#12428 + $1.encb(); //#12428 + $1.cset = "setc"; //#12428 + break; //#12428 + } //#12428 + if ($eq($1.cset, "setc")) { //#12429 + $k[$j++] = $1.swb; //#12429 + $1.encc(); //#12429 + $1.cset = "setb"; //#12429 + break; //#12429 + } //#12429 + } //#12429 + } //#12429 + }; //#12432 + $1.cws = $a($f($1.c + 5) * 44); //#12435 + $1.i = 0; //#12437 + $1.j = 0; //#12437 + $1.r = 1; //#12437 + $1.lastrow = false; //#12438 + for (;;) { //#12607 + if ($1.lastrow) { //#12440 + break; //#12440 + } //#12440 + $k[$j++] = $1.sta; //#12443 + $1.enca(); //#12443 + if ($1.i < $1.msglen) { //#12444 + $k[$j++] = $1.i; //#12444 + $1.numsscr(); //#12444 + } else { //#12444 + $k[$j++] = -1; //#12444 + $k[$j++] = -1; //#12444 + } //#12444 + $1.nums = $k[--$j]; //#12444 + $1.nchars = $k[--$j]; //#12444 + for (;;) { //#12464 + if ($1.msglen == 0) { //#12450 + $k[$j++] = $1.swb; //#12447 + $1.enca(); //#12447 + $1.cset = "setb"; //#12448 + break; //#12449 + } //#12449 + if ($1.nums >= 2) { //#12455 + $k[$j++] = $1.swc; //#12452 + $1.enca(); //#12452 + $1.cset = "setc"; //#12453 + break; //#12454 + } //#12454 + $k[$j++] = $1.i; //#12456 + $1.abeforeb(); //#12456 + if ($k[--$j]) { //#12460 + $k[$j++] = $1.sft; //#12457 + $1.enca(); //#12457 + $1.cset = "seta"; //#12458 + break; //#12459 + } //#12459 + $k[$j++] = $1.swb; //#12461 + $1.enca(); //#12461 + $1.cset = "setb"; //#12462 + break; //#12463 + } //#12463 + $1.j = $1.j + 1; //#12465 + $1.endofrow = false; //#12468 + for (;;) { //#12592 + $1.rem = $f($f($1.c + 3) - ($1.j % $f($1.c + 5))); //#12469 + if (($1.i == $1.msglen) || $1.endofrow) { //#12471 + break; //#12471 + } //#12471 + $k[$j++] = $1.i; //#12473 + $1.numsscr(); //#12473 + $1.nums = $k[--$j]; //#12473 + $1.nchars = $k[--$j]; //#12473 + $k[$j++] = 'remnums'; //#12474 + if ($1.nums > ($1.rem * 2)) { //#12474 + $k[$j++] = $1.rem * 2; //#12474 + } else { //#12474 + $k[$j++] = $1.nums; //#12474 + } //#12474 + var _5J = $k[--$j]; //#12474 + $1[$k[--$j]] = _5J; //#12474 + for (;;) { //#12590 + if ((($eq($1.cset, "seta") || $eq($1.cset, "setb")) && ($1.remnums >= 4)) && ($get($1.msg, $1.i) != $1.fn1)) { //#12512 + if ((($1.remnums % 2) == 0) && ($1.rem >= 3)) { //#12494 + $k[$j++] = $1.swc; //#12482 + if ($eq($1.cset, "seta")) { //#12482 + $1.enca(); //#12482 + } else { //#12482 + $1.encb(); //#12482 + } //#12482 + $1.cset = "setc"; //#12483 + for (var _5W = 0, _5X = 2; _5W < _5X; _5W++) { //#12492 + if ($get($1.msg, $1.i) == $1.fn1) { //#12490 + $k[$j++] = $1.fn1; //#12486 + $1.encc(); //#12486 + $1.i = $1.i + 1; //#12487 + } else { //#12490 + $k[$j++] = $geti($1.msg, $1.i, 2); //#12489 + $1.encc(); //#12489 + $1.i = $1.i + 2; //#12490 + } //#12490 + } //#12490 + break; //#12493 + } //#12493 + if ((($1.remnums % 2) != 0) && ($1.rem >= 4)) { //#12511 + $k[$j++] = $get($1.msg, $1.i); //#12497 + if ($eq($1.cset, "seta")) { //#12497 + $1.enca(); //#12497 + } else { //#12497 + $1.encb(); //#12497 + } //#12497 + $1.i = $1.i + 1; //#12498 + $k[$j++] = $1.swc; //#12499 + if ($eq($1.cset, "seta")) { //#12499 + $1.enca(); //#12499 + } else { //#12499 + $1.encb(); //#12499 + } //#12499 + $1.cset = "setc"; //#12500 + for (var _5r = 0, _5s = 2; _5r < _5s; _5r++) { //#12509 + if ($get($1.msg, $1.i) == $1.fn1) { //#12507 + $k[$j++] = $1.fn1; //#12503 + $1.encc(); //#12503 + $1.i = $1.i + 1; //#12504 + } else { //#12507 + $k[$j++] = $geti($1.msg, $1.i, 2); //#12506 + $1.encc(); //#12506 + $1.i = $1.i + 2; //#12507 + } //#12507 + } //#12507 + break; //#12510 + } //#12510 + } //#12510 + $k[$j++] = $eq($1.cset, "setb"); //#12513 + $k[$j++] = $get($1.msg, $1.i); //#12513 + $1.anotb(); //#12513 + var _67 = $k[--$j]; //#12513 + var _68 = $k[--$j]; //#12513 + if ((_68 && _67) && ($1.rem >= 2)) { //#12528 + if ($1.i < ($1.msglen - 1)) { //#12522 + $k[$j++] = $1.i + 1; //#12516 + $1.bbeforea(); //#12516 + if ($k[--$j]) { //#12521 + $k[$j++] = $1.sft; //#12517 + $1.encb(); //#12517 + $k[$j++] = $get($1.msg, $1.i); //#12518 + $1.enca(); //#12518 + $1.i = $1.i + 1; //#12519 + break; //#12520 + } //#12520 + } //#12520 + $k[$j++] = $1.swa; //#12523 + $1.encb(); //#12523 + $1.cset = "seta"; //#12524 + $k[$j++] = $get($1.msg, $1.i); //#12525 + $1.enca(); //#12525 + $1.i = $1.i + 1; //#12526 + break; //#12527 + } //#12527 + $k[$j++] = $eq($1.cset, "seta"); //#12529 + $k[$j++] = $get($1.msg, $1.i); //#12529 + $1.bnota(); //#12529 + var _6S = $k[--$j]; //#12529 + var _6T = $k[--$j]; //#12529 + if ((_6T && _6S) && ($1.rem >= 2)) { //#12544 + if ($1.i < ($1.msglen - 1)) { //#12538 + $k[$j++] = $1.i + 1; //#12532 + $1.abeforeb(); //#12532 + if ($k[--$j]) { //#12537 + $k[$j++] = $1.sft; //#12533 + $1.enca(); //#12533 + $k[$j++] = $get($1.msg, $1.i); //#12534 + $1.encb(); //#12534 + $1.i = $1.i + 1; //#12535 + break; //#12536 + } //#12536 + } //#12536 + $k[$j++] = $1.swb; //#12539 + $1.enca(); //#12539 + $1.cset = "setb"; //#12540 + $k[$j++] = $get($1.msg, $1.i); //#12541 + $1.encb(); //#12541 + $1.i = $1.i + 1; //#12542 + break; //#12543 + } //#12543 + if (($eq($1.cset, "setc") && ($1.remnums < 2)) && ($1.rem >= 2)) { //#12559 + $k[$j++] = $1.i; //#12547 + $1.abeforeb(); //#12547 + if ($k[--$j]) { //#12553 + $k[$j++] = $1.swa; //#12548 + $1.encc(); //#12548 + $1.cset = "seta"; //#12549 + $k[$j++] = $get($1.msg, $1.i); //#12550 + $1.enca(); //#12550 + $1.i = $1.i + 1; //#12551 + break; //#12552 + } //#12552 + $k[$j++] = $1.swb; //#12554 + $1.encc(); //#12554 + $1.cset = "setb"; //#12555 + $k[$j++] = $get($1.msg, $1.i); //#12556 + $1.encb(); //#12556 + $1.i = $1.i + 1; //#12557 + break; //#12558 + } //#12558 + var _73 = $get($1.seta, $get($1.msg, $1.i)) !== undefined; //#12562 + if (($eq($1.cset, "seta") && _73) && ($1.rem >= 1)) { //#12567 + $k[$j++] = $get($1.msg, $1.i); //#12564 + $1.enca(); //#12564 + $1.i = $1.i + 1; //#12565 + break; //#12566 + } //#12566 + var _7E = $get($1.setb, $get($1.msg, $1.i)) !== undefined; //#12568 + if (($eq($1.cset, "setb") && _7E) && ($1.rem >= 1)) { //#12573 + $k[$j++] = $get($1.msg, $1.i); //#12570 + $1.encb(); //#12570 + $1.i = $1.i + 1; //#12571 + break; //#12572 + } //#12572 + if (($eq($1.cset, "setc") && ($1.remnums >= 2)) && ($1.rem >= 1)) { //#12584 + if ($get($1.msg, $1.i) == $1.fn1) { //#12581 + $k[$j++] = $1.fn1; //#12577 + $1.encc(); //#12577 + $1.i = $1.i + 1; //#12578 + } else { //#12581 + $k[$j++] = $geti($1.msg, $1.i, 2); //#12580 + $1.encc(); //#12580 + $1.i = $1.i + 2; //#12581 + } //#12581 + break; //#12583 + } //#12583 + $1.endofrow = true; //#12587 + break; //#12588 + } //#12588 + } //#12588 + if ((((($1.r >= $1.rows) || ($1.rows == -1)) && ($1.r > 1)) && ($1.i == $1.msglen)) && ($1.rem >= 2)) { //#12604 + $k[$j++] = $f($1.rem - 2); //#12596 + $1.padrow(); //#12596 + $1.j = $1.j + 3; //#12597 + $k[$j++] = $1.stp; //#12598 + $1.enca(); //#12598 + $1.lastrow = true; //#12599 + } else { //#12604 + $k[$j++] = $1.rem; //#12601 + $1.padrow(); //#12601 + $1.j = $1.j + 1; //#12602 + $k[$j++] = $1.stp; //#12603 + $1.enca(); //#12603 + $1.r = $1.r + 1; //#12604 + } //#12604 + } //#12604 + $1.cws = $geti($1.cws, 0, $1.j); //#12608 + $k[$j++] = Infinity; //#12614 + for (var _7o = 64; _7o <= 95; _7o += 1) { //#12612 + $k[$j++] = _7o; //#12612 + } //#12612 + for (var _7p = 0; _7p <= 15; _7p += 1) { //#12613 + $k[$j++] = _7p; //#12613 + } //#12613 + for (var _7q = 26; _7q <= 63; _7q += 1) { //#12614 + $k[$j++] = _7q; //#12614 + } //#12614 + $1.abmap = $a(); //#12614 + $k[$j++] = Infinity; //#12616 + for (var _7s = 0; _7s <= 85; _7s += 1) { //#12616 + $k[$j++] = _7s; //#12616 + } //#12616 + $1.cmap = $a(); //#12616 + $1.chkmsg = $a($1.msglen); //#12619 + $1.j = 0; //#12620 + for (var _7y = 0, _7x = $1.msglen - 1; _7y <= _7x; _7y += 1) { //#12626 + $1.i = _7y; //#12622 + $1.char = $get($1.msg, $1.i); //#12623 + if ($1.char >= 0) { //#12624 + $put($1.chkmsg, $1.j, $1.char); //#12624 + $1.j = $1.j + 1; //#12624 + } //#12624 + if (($1.char == $1.fn1) && ($1.i != 0)) { //#12625 + $put($1.chkmsg, $1.j, 29); //#12625 + $1.j = $1.j + 1; //#12625 + } //#12625 + } //#12625 + $1.t1 = 0; //#12627 + $1.t2 = 0; //#12627 + $1.k1 = 0; //#12627 + $1.k2 = 0; //#12627 + for (var _8F = 0, _8E = $1.j - 1; _8F <= _8E; _8F += 1) { //#12634 + $1.i = _8F; //#12629 + $1.t1 = ($get($1.chkmsg, $1.i) * $1.i) % 86; //#12630 + $1.t2 = $f($1.t1 + $get($1.chkmsg, $1.i)) % 86; //#12631 + $1.k1 = $f($1.k1 + $1.t2) % 86; //#12632 + $1.k2 = $f($1.k2 + $1.t1) % 86; //#12633 + } //#12633 + $k[$j++] = $1.cws; //#12635 + $k[$j++] = $1.cws.length - 4; //#12635 + if ($ne($1.cset, "setc")) { //#12635 + $k[$j++] = $1.abmap; //#12635 + } else { //#12635 + $k[$j++] = $1.cmap; //#12635 + } //#12635 + var _8Z = $get($k[--$j], $1.k1); //#12635 + var _8a = $k[--$j]; //#12635 + $put($k[--$j], _8a, _8Z); //#12635 + $k[$j++] = $1.cws; //#12636 + $k[$j++] = $1.cws.length - 3; //#12636 + if ($ne($1.cset, "setc")) { //#12636 + $k[$j++] = $1.abmap; //#12636 + } else { //#12636 + $k[$j++] = $1.cmap; //#12636 + } //#12636 + var _8j = $get($k[--$j], $1.k2); //#12636 + var _8k = $k[--$j]; //#12636 + $put($k[--$j], _8k, _8j); //#12636 + var _8m = $1.cws; //#12639 + $k[$j++] = _8m; //#12639 + $k[$j++] = 2; //#12639 + if ($get(_8m, 2 - 1) != 99) { //#12639 + $k[$j++] = $1.abmap; //#12639 + } else { //#12639 + $k[$j++] = $1.cmap; //#12639 + } //#12639 + var _8s = $get($k[--$j], $1.r - 2); //#12639 + var _8t = $k[--$j]; //#12639 + $put($k[--$j], _8t, _8s); //#12639 + for (var _8x = 1, _8w = $1.r - 1; _8x <= _8w; _8x += 1) { //#12643 + $1.i = _8x; //#12641 + var _8y = $1.cws; //#12642 + var _8z = $1.i; //#12642 + var _90 = $1.c; //#12642 + $k[$j++] = _8y; //#12642 + $k[$j++] = $f((_8z * $f(_90 + 5)) + 2); //#12642 + if ($get(_8y, $f(($f((_8z * $f(_90 + 5)) + 2)) - 1)) != 99) { //#12642 + $k[$j++] = $1.abmap; //#12642 + } else { //#12642 + $k[$j++] = $1.cmap; //#12642 + } //#12642 + var _96 = $get($k[--$j], $1.i + 42); //#12642 + var _97 = $k[--$j]; //#12642 + $put($k[--$j], _97, _96); //#12642 + } //#12642 + for (var _9B = 0, _9A = $1.r - 1; _9B <= _9A; _9B += 1) { //#12654 + $1.rcws = $geti($1.cws, _9B * $f($1.c + 5), $f($1.c + 4)); //#12647 + $1.csum = $get($1.rcws, 0); //#12648 + for (var _9K = 1, _9J = $1.rcws.length - 2; _9K <= _9J; _9K += 1) { //#12652 + $1.i = _9K; //#12650 + $1.csum = $f($1.csum + ($get($1.rcws, $1.i) * $1.i)); //#12651 + } //#12651 + $put($1.rcws, $1.rcws.length - 1, $1.csum % 103); //#12653 + } //#12653 + $1.encs = $a(["212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "2331112"]); //#12673 + $1.rowbits = $a($1.r); //#12676 + for (var _9Y = 0, _9X = $1.r - 1; _9Y <= _9X; _9Y += 1) { //#12688 + $1.i = _9Y; //#12678 + $k[$j++] = Infinity; //#12681 + var _9d = $geti($1.cws, $1.i * $f($1.c + 5), $f($1.c + 5)); //#12680 + for (var _9e = 0, _9f = _9d.length; _9e < _9f; _9e++) { //#12682 + $forall($get($1.encs, $get(_9d, _9e)), function() { //#12681 + var _9j = $k[--$j]; //#12681 + $k[$j++] = $f(_9j - 48); //#12681 + }); //#12681 + } //#12681 + $1.sbs = $a(); //#12681 + $k[$j++] = Infinity; //#12684 + var _9l = $1.sbs; //#12685 + $k[$j++] = 0; //#12685 + for (var _9m = 0, _9n = _9l.length; _9m < _9n; _9m++) { //#12685 + var _9p = $k[--$j]; //#12685 + var _9q = (_9p == 1) ? 0 : 1; //#12685 + $k[$j++] = _9p; //#12685 + for (var _9r = 0, _9s = $get(_9l, _9m); _9r < _9s; _9r++) { //#12685 + $k[$j++] = _9q //#12685 + } //#12685 + } //#12685 + $astore($a($counttomark() - 1)); //#12686 + var _9v = $k[--$j]; //#12686 + var _9w = $k[--$j]; //#12686 + $k[$j++] = _9v; //#12686 + $k[$j++] = _9w; //#12686 + $j--; //#12686 + var _9x = $k[--$j]; //#12686 + var _9y = $k[--$j]; //#12686 + $k[$j++] = _9x; //#12686 + $k[$j++] = _9y; //#12686 + $j--; //#12686 + $put($1.rowbits, $1.i, $k[--$j]); //#12687 + } //#12687 + $1.symwid = $f(($1.c * 11) + 57); //#12691 + $k[$j++] = Infinity; //#12704 + for (var _A5 = 0, _A6 = $1.symwid * $1.sepheight; _A5 < _A6; _A5++) { //#12693 + $k[$j++] = 1; //#12693 + } //#12693 + for (var _A9 = 0, _A8 = $1.r - 2; _A9 <= _A8; _A9 += 1) { //#12702 + $1.i = _A9; //#12695 + for (var _AB = 0, _AC = $1.rowheight; _AB < _AC; _AB++) { //#12696 + $aload($get($1.rowbits, $1.i)); //#12696 + } //#12696 + for (var _AH = 0, _AI = $1.sepheight; _AH < _AI; _AH++) { //#12701 + $k[$j++] = 1; //#12699 + $k[$j++] = 1; //#12699 + $k[$j++] = 0; //#12699 + $k[$j++] = 1; //#12699 + $k[$j++] = 0; //#12699 + $k[$j++] = 0; //#12699 + $k[$j++] = 0; //#12699 + $k[$j++] = 0; //#12699 + $k[$j++] = 1; //#12699 + $k[$j++] = 0; //#12699 + $k[$j++] = 0; //#12699 + for (var _AK = 0, _AL = $f($1.symwid - 24); _AK < _AL; _AK++) { //#12699 + $k[$j++] = 1; //#12699 + } //#12699 + $k[$j++] = 1; //#12700 + $k[$j++] = 1; //#12700 + $k[$j++] = 0; //#12700 + $k[$j++] = 0; //#12700 + $k[$j++] = 0; //#12700 + $k[$j++] = 1; //#12700 + $k[$j++] = 1; //#12700 + $k[$j++] = 1; //#12700 + $k[$j++] = 0; //#12700 + $k[$j++] = 1; //#12700 + $k[$j++] = 0; //#12700 + $k[$j++] = 1; //#12700 + $k[$j++] = 1; //#12700 + } //#12700 + } //#12700 + for (var _AN = 0, _AO = $1.rowheight; _AN < _AO; _AN++) { //#12703 + $aload($get($1.rowbits, $1.r - 1)); //#12703 + } //#12703 + for (var _AU = 0, _AV = $1.symwid * $1.sepheight; _AU < _AV; _AU++) { //#12704 + $k[$j++] = 1; //#12704 + } //#12704 + $1.pixs = $a(); //#12704 + var _Af = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", $1.symwid], + ["pixy", ~~($1.pixs.length / $1.symwid)], + ["height", (~~($1.pixs.length / $1.symwid)) / 72], + ["width", $1.symwid / 72], + ["opt", $1.options] + ]); //#12715 + $k[$j++] = _Af; //#12718 + if (!$1.dontdraw) { //#12718 + $0.renmatrix(); //#12718 + } //#12718 }; $0.code16k = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.mode = -1; - $1.pos = -1; - $1.rows = 0; - $1.rowheight = 8; - $1.sepheight = 1; - $1.encoding = "auto"; - $1.raw = false; - $1.parse = false; - $1.parsefnc = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.mode = ~~$1.mode; - $1.pos = ~~$1.pos; - $1.rows = ~~$1.rows; - $1.rowheight = ~~$1.rowheight; - $1.sepheight = ~~$1.sepheight; - if ($1.pos != -1) { - $1.rows = 16; - } - $1.swa = -1; - $1.swb = -2; - $1.swc = -3; - $1.sa1 = -4; - $1.sb1 = -5; - $1.sc1 = -6; - $1.sa2 = -7; - $1.sb2 = -8; - $1.sc2 = -9; - $1.pad = -10; - $1.sb3 = -11; - $1.sc3 = -12; - $1.fn1 = -13; - $1.fn2 = -14; - $1.fn3 = -15; - $1.fn4 = -16; - $1.charmaps = $a([ $a([ 32, 32, "00" ]), $a([ "!", "!", "01" ]), $a([ '"', '"', "02" ]), $a([ "#", "#", "03" ]), $a([ "$", "$", "04" ]), $a([ "%", "%", "05" ]), $a([ "&", "&", "06" ]), $a([ "'", "'", "07" ]), $a([ 40, 40, "08" ]), $a([ 41, 41, "09" ]), $a([ "*", "*", "10" ]), $a([ "+", "+", "11" ]), $a([ ",", ",", "12" ]), $a([ "-", "-", "13" ]), $a([ ".", ".", "14" ]), $a([ "/", "/", "15" ]), $a([ "0", "0", "16" ]), $a([ "1", "1", "17" ]), $a([ "2", "2", "18" ]), $a([ "3", "3", "19" ]), $a([ "4", "4", "20" ]), $a([ "5", "5", "21" ]), $a([ "6", "6", "22" ]), $a([ "7", "7", "23" ]), $a([ "8", "8", "24" ]), $a([ "9", "9", "25" ]), $a([ ":", ":", "26" ]), $a([ ";", ";", "27" ]), $a([ "<", "<", "28" ]), $a([ "=", "=", "29" ]), $a([ ">", ">", "30" ]), $a([ "?", "?", "31" ]), $a([ "@", "@", "32" ]), $a([ "A", "A", "33" ]), $a([ "B", "B", "34" ]), $a([ "C", "C", "35" ]), $a([ "D", "D", "36" ]), $a([ "E", "E", "37" ]), $a([ "F", "F", "38" ]), $a([ "G", "G", "39" ]), $a([ "H", "H", "40" ]), $a([ "I", "I", "41" ]), $a([ "J", "J", "42" ]), $a([ "K", "K", "43" ]), $a([ "L", "L", "44" ]), $a([ "M", "M", "45" ]), $a([ "N", "N", "46" ]), $a([ "O", "O", "47" ]), $a([ "P", "P", "48" ]), $a([ "Q", "Q", "49" ]), $a([ "R", "R", "50" ]), $a([ "S", "S", "51" ]), $a([ "T", "T", "52" ]), $a([ "U", "U", "53" ]), $a([ "V", "V", "54" ]), $a([ "W", "W", "55" ]), $a([ "X", "X", "56" ]), $a([ "Y", "Y", "57" ]), $a([ "Z", "Z", "58" ]), $a([ "[", "[", "59" ]), $a([ 92, 92, "60" ]), $a([ "]", "]", "61" ]), $a([ "^", "^", "62" ]), $a([ "_", "_", "63" ]), $a([ 0, "`", "64" ]), $a([ 1, "a", "65" ]), $a([ 2, "b", "66" ]), $a([ 3, "c", "67" ]), $a([ 4, "d", "68" ]), $a([ 5, "e", "69" ]), $a([ 6, "f", "70" ]), $a([ 7, "g", "71" ]), $a([ 8, "h", "72" ]), $a([ 9, "i", "73" ]), $a([ 10, "j", "74" ]), $a([ 11, "k", "75" ]), $a([ 12, "l", "76" ]), $a([ 13, "m", "77" ]), $a([ 14, "n", "78" ]), $a([ 15, "o", "79" ]), $a([ 16, "p", "80" ]), $a([ 17, "q", "81" ]), $a([ 18, "r", "82" ]), $a([ 19, "s", "83" ]), $a([ 20, "t", "84" ]), $a([ 21, "u", "85" ]), $a([ 22, "v", "86" ]), $a([ 23, "w", "87" ]), $a([ 24, "x", "88" ]), $a([ 25, "y", "89" ]), $a([ 26, "z", "90" ]), $a([ 27, "{", "91" ]), $a([ 28, "|", "92" ]), $a([ 29, "}", "93" ]), $a([ 30, "~", "94" ]), $a([ 31, 127, "95" ]), $a([ $1.fn3, $1.fn3, "96" ]), $a([ $1.fn2, $1.fn2, "97" ]), $a([ $1.sb1, $1.sa1, "98" ]), $a([ $1.swc, $1.swc, "99" ]), $a([ $1.swb, $1.fn4, $1.swb ]), $a([ $1.fn4, $1.swa, $1.swa ]), $a([ $1.fn1, $1.fn1, $1.fn1 ]), $a([ $1.pad, $1.pad, $1.pad ]), $a([ $1.sb2, $1.sa2, $1.sb1 ]), $a([ $1.sc2, $1.sc2, $1.sb2 ]), $a([ $1.sc3, $1.sc3, $1.sb3 ]) ]); - $1.charvals = $a([ new Map(), new Map(), new Map() ]); - for (var _2R = 0, _2Q = $1.charmaps.length - 1; _2R <= _2Q; _2R += 1) { - $1.i = _2R; - $1.encs = $get($1.charmaps, $1.i); - for (var _2V = 0; _2V <= 2; _2V += 1) { - $1.j = _2V; - var _2Y = $get($1.encs, $1.j); - $k[$j++] = _2Y; - if ($eq($type(_2Y), "stringtype")) { - var _2b = $get($k[--$j], 0); - $k[$j++] = _2b; - } - $put($get($1.charvals, $1.j), $k[--$j], $1.i); - } - } - $1.seta = $get($1.charvals, 0); - $1.setb = $get($1.charvals, 1); - $1.setc = $get($1.charvals, 2); - if ($1.raw) { - $1.encoding = "raw"; - } - if ($eq($1.encoding, "raw")) { - $1.cws = $a($1.barcode.length); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.barcode.length) { - break; - } - $1.cw = ~~$z($geti($1.barcode, $1.i + 1, 3)); - $put($1.cws, $1.j, $1.cw); - $1.i = $1.i + 4; - $1.j = $1.j + 1; - } - $1.cws = $geti($1.cws, 0, $1.j); - } - if ($eq($1.encoding, "auto")) { - var _3A = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "eci", true ], [ "FNC1", $1.fn1 ], [ "FNC2", $1.fn2 ], [ "FNC3", $1.fn3 ] ]); - $1.fncvals = _3A; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _3D = $k[--$j]; - $1[$k[--$j]] = _3D; - $1.msglen = $1.msg.length; - $k[$j++] = Infinity; - for (var _3H = 0, _3I = $1.msglen; _3H < _3I; _3H++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numSA = $a(); - $k[$j++] = Infinity; - for (var _3L = 0, _3M = $1.msglen; _3L < _3M; _3L++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numEA = $a(); - for (var _3P = $1.msglen - 1; _3P >= 0; _3P -= 1) { - $1.i = _3P; - if ($get($1.msg, $1.i) >= 0) { - if ($get($1.msg, $1.i) >= 128) { - $put($1.numEA, $1.i, $f($get($1.numEA, $1.i + 1) + 1)); - } else { - $put($1.numSA, $1.i, $f($get($1.numSA, $1.i + 1) + 1)); - } - } - } - $1.ea = false; - $1.msgtmp = $a([]); - for (var _3j = 0, _3i = $1.msglen - 1; _3j <= _3i; _3j += 1) { - $1.i = _3j; - $1.c = $get($1.msg, $1.i); - if (!$xo($1.ea, $1.c < 128) && $1.c >= 0) { - if ($1.ea) { - $k[$j++] = $1.numSA; - } else { - $k[$j++] = $1.numEA; - } - var _3v = $get($k[--$j], $1.i); - var _3y = $f(_3v + $1.i) == $1.msglen ? 3 : 5; - if (_3v < _3y) { - $k[$j++] = Infinity; - $aload($1.msgtmp); - $k[$j++] = $1.fn4; - $1.msgtmp = $a(); - } else { - $k[$j++] = Infinity; - $aload($1.msgtmp); - $k[$j++] = $1.fn4; - $k[$j++] = $1.fn4; - $1.msgtmp = $a(); - $1.ea = !$1.ea; - } - } - $k[$j++] = Infinity; - $aload($1.msgtmp); - if ($1.c >= 0) { - $k[$j++] = $1.c & 127; - } else { - $k[$j++] = $1.c; - } - $1.msgtmp = $a(); - } - $1.msg = $1.msgtmp; - $1.msglen = $1.msg.length; + var $1 = {}; //#12748 + $1.options = $k[--$j]; //#12750 + $1.barcode = $k[--$j]; //#12751 + $1.dontdraw = false; //#12753 + $1.mode = -1; //#12754 + $1.pos = -1; //#12755 + $1.rows = 0; //#12756 + $1.rowheight = 8; //#12757 + $1.sepheight = 1; //#12758 + $1.encoding = "auto"; //#12759 + $1.raw = false; //#12760 + $1.parse = false; //#12761 + $1.parsefnc = false; //#12762 + $forall($1.options, function() { //#12773 + var _3 = $k[--$j]; //#12773 + $1[$k[--$j]] = _3; //#12773 + }); //#12773 + $1.mode = ~~$1.mode; //#12775 + $1.pos = ~~$1.pos; //#12776 + $1.rows = ~~$1.rows; //#12777 + $1.rowheight = ~~$1.rowheight; //#12778 + $1.sepheight = ~~$1.sepheight; //#12779 + if ($1.pos != -1) { //#12781 + $1.rows = 16; //#12781 + } //#12781 + $1.swa = -1; //#12784 + $1.swb = -2; //#12784 + $1.swc = -3; //#12784 + $1.sa1 = -4; //#12785 + $1.sb1 = -5; //#12785 + $1.sc1 = -6; //#12785 + $1.sa2 = -7; //#12786 + $1.sb2 = -8; //#12786 + $1.sc2 = -9; //#12786 + $1.pad = -10; //#12787 + $1.sb3 = -11; //#12787 + $1.sc3 = -12; //#12787 + $1.fn1 = -13; //#12788 + $1.fn2 = -14; //#12788 + $1.fn3 = -15; //#12788 + $1.fn4 = -16; //#12788 + $1.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$1.fn3, $1.fn3, "96"]), $a([$1.fn2, $1.fn2, "97"]), $a([$1.sb1, $1.sa1, "98"]), $a([$1.swc, $1.swc, "99"]), $a([$1.swb, $1.fn4, $1.swb]), $a([$1.fn4, $1.swa, $1.swa]), $a([$1.fn1, $1.fn1, $1.fn1]), $a([$1.pad, $1.pad, $1.pad]), $a([$1.sb2, $1.sa2, $1.sb1]), $a([$1.sc2, $1.sc2, $1.sb2]), $a([$1.sc3, $1.sc3, $1.sb3])]); //#12829 + $1.charvals = $a([new Map, new Map, new Map]); //#12832 + for (var _2R = 0, _2Q = $1.charmaps.length - 1; _2R <= _2Q; _2R += 1) { //#12841 + $1.i = _2R; //#12834 + $1.encs = $get($1.charmaps, $1.i); //#12835 + for (var _2V = 0; _2V <= 2; _2V += 1) { //#12840 + $1.j = _2V; //#12837 + var _2Y = $get($1.encs, $1.j); //#12838 + $k[$j++] = _2Y; //#12838 + if ($eq($type(_2Y), 'stringtype')) { //#12838 + var _2b = $get($k[--$j], 0); //#12838 + $k[$j++] = _2b; //#12838 + } //#12838 + $put($get($1.charvals, $1.j), $k[--$j], $1.i); //#12839 + } //#12839 + } //#12839 + $1.seta = $get($1.charvals, 0); //#12842 + $1.setb = $get($1.charvals, 1); //#12843 + $1.setc = $get($1.charvals, 2); //#12844 + if ($1.raw) { //#12846 + $1.encoding = "raw"; //#12846 + } //#12846 + if ($eq($1.encoding, "raw")) { //#12859 + $1.cws = $a($1.barcode.length); //#12849 + $1.i = 0; //#12850 + $1.j = 0; //#12850 + for (;;) { //#12857 + if ($1.i == $1.barcode.length) { //#12852 + break; //#12852 + } //#12852 + $1.cw = ~~$z($geti($1.barcode, $1.i + 1, 3)); //#12853 + $put($1.cws, $1.j, $1.cw); //#12854 + $1.i = $1.i + 4; //#12855 + $1.j = $1.j + 1; //#12856 + } //#12856 + $1.cws = $geti($1.cws, 0, $1.j); //#12858 + } //#12858 + if ($eq($1.encoding, "auto")) { //#13310 + var _3A = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["eci", true], + ["FNC1", $1.fn1], + ["FNC2", $1.fn2], + ["FNC3", $1.fn3] + ]); //#12870 + $1.fncvals = _3A; //#12872 + $k[$j++] = 'msg'; //#12873 + $k[$j++] = $1.barcode; //#12873 + $k[$j++] = $1.fncvals; //#12873 + $0.parseinput(); //#12873 + var _3D = $k[--$j]; //#12873 + $1[$k[--$j]] = _3D; //#12873 + $1.msglen = $1.msg.length; //#12874 + $k[$j++] = Infinity; //#12877 + for (var _3H = 0, _3I = $1.msglen; _3H < _3I; _3H++) { //#12877 + $k[$j++] = 0; //#12877 + } //#12877 + $k[$j++] = 0; //#12877 + $1.numSA = $a(); //#12877 + $k[$j++] = Infinity; //#12878 + for (var _3L = 0, _3M = $1.msglen; _3L < _3M; _3L++) { //#12878 + $k[$j++] = 0; //#12878 + } //#12878 + $k[$j++] = 0; //#12878 + $1.numEA = $a(); //#12878 + for (var _3P = $1.msglen - 1; _3P >= 0; _3P -= 1) { //#12888 + $1.i = _3P; //#12880 + if ($get($1.msg, $1.i) >= 0) { //#12887 + if ($get($1.msg, $1.i) >= 128) { //#12885 + $put($1.numEA, $1.i, $f($get($1.numEA, $1.i + 1) + 1)); //#12883 + } else { //#12885 + $put($1.numSA, $1.i, $f($get($1.numSA, $1.i + 1) + 1)); //#12885 + } //#12885 + } //#12885 + } //#12885 + $1.ea = false; //#12891 + $1.msgtmp = $a([]); //#12891 + for (var _3j = 0, _3i = $1.msglen - 1; _3j <= _3i; _3j += 1) { //#12906 + $1.i = _3j; //#12893 + $1.c = $get($1.msg, $1.i); //#12894 + if ((!$xo($1.ea, $1.c < 128)) && ($1.c >= 0)) { //#12904 + if ($1.ea) { //#12896 + $k[$j++] = $1.numSA; //#12896 + } else { //#12896 + $k[$j++] = $1.numEA; //#12896 + } //#12896 + var _3v = $get($k[--$j], $1.i); //#12896 + var _3y = ($f(_3v + $1.i) == $1.msglen) ? 3 : 5; //#12897 + if (_3v < _3y) { //#12902 + $k[$j++] = Infinity; //#12899 + $aload($1.msgtmp); //#12899 + $k[$j++] = $1.fn4; //#12899 + $1.msgtmp = $a(); //#12899 + } else { //#12902 + $k[$j++] = Infinity; //#12901 + $aload($1.msgtmp); //#12901 + $k[$j++] = $1.fn4; //#12901 + $k[$j++] = $1.fn4; //#12901 + $1.msgtmp = $a(); //#12901 + $1.ea = !$1.ea; //#12902 + } //#12902 + } //#12902 + $k[$j++] = Infinity; //#12905 + $aload($1.msgtmp); //#12905 + if ($1.c >= 0) { //#12905 + $k[$j++] = $1.c & 127; //#12905 + } else { //#12905 + $k[$j++] = $1.c; //#12905 + } //#12905 + $1.msgtmp = $a(); //#12905 + } //#12905 + $1.msg = $1.msgtmp; //#12907 + $1.msglen = $1.msg.length; //#12908 $1.numsscr = function() { - $1.n = 0; - $1.s = 0; - $1.p = $k[--$j]; - for (;;) { - if ($1.p >= $1.msglen) { - break; - } - var _4J = $get($1.msg, $1.p); - var _4L = $get($1.setc, _4J) !== undefined; - $k[$j++] = _4J; - if (!_4L) { - $j--; - break; - } - if ($k[--$j] == $1.fn1) { - if ($1.s % 2 == 0) { - $1.s = $1.s + 1; - } else { - break; - } - } - $1.n = $1.n + 1; - $1.s = $1.s + 1; - $1.p = $f($1.p + 1); - } - $k[$j++] = $1.n; - $k[$j++] = $1.s; - }; + $1.n = 0; //#12912 + $1.s = 0; //#12912 + $1.p = $k[--$j]; //#12913 + for (;;) { //#12924 + if ($1.p >= $1.msglen) { //#12914 + break; //#12914 + } //#12914 + var _4J = $get($1.msg, $1.p); //#12915 + var _4L = $get($1.setc, _4J) !== undefined; //#12916 + $k[$j++] = _4J; //#12916 + if (!_4L) { //#12916 + $j--; //#12916 + break; //#12916 + } //#12916 + if ($k[--$j] == $1.fn1) { //#12920 + if (($1.s % 2) == 0) { //#12919 + $1.s = $1.s + 1; //#12919 + } else { //#12919 + break; //#12919 + } //#12919 + } //#12919 + $1.n = $1.n + 1; //#12921 + $1.s = $1.s + 1; //#12922 + $1.p = $f($1.p + 1); //#12923 + } //#12923 + $k[$j++] = $1.n; //#12925 + $k[$j++] = $1.s; //#12925 + }; //#12926 $1.enca = function() { - $put($1.cws, $1.j, $get($1.seta, $k[--$j])); - $1.j = $1.j + 1; - }; + $put($1.cws, $1.j, $get($1.seta, $k[--$j])); //#12930 + $1.j = $1.j + 1; //#12931 + }; //#12932 $1.encb = function() { - $put($1.cws, $1.j, $get($1.setb, $k[--$j])); - $1.j = $1.j + 1; - }; + $put($1.cws, $1.j, $get($1.setb, $k[--$j])); //#12934 + $1.j = $1.j + 1; //#12935 + }; //#12936 $1.encc = function() { - var _4h = $k[--$j]; - $k[$j++] = _4h; - if ($ne($type(_4h), "arraytype")) { - var _4l = $get($1.setc, $k[--$j]); - $k[$j++] = _4l; - } else { - $aload($k[--$j]); - var _4n = $k[--$j]; - var _4o = $k[--$j]; - $k[$j++] = $f($f(_4n - 48) + $f(_4o - 48) * 10); - } - $put($1.cws, $1.j, $k[--$j]); - $1.j = $1.j + 1; - }; + var _4h = $k[--$j]; //#12938 + $k[$j++] = _4h; //#12942 + if ($ne($type(_4h), 'arraytype')) { //#12941 + var _4l = $get($1.setc, $k[--$j]); //#12939 + $k[$j++] = _4l; //#12939 + } else { //#12941 + $aload($k[--$j]); //#12941 + var _4n = $k[--$j]; //#12941 + var _4o = $k[--$j]; //#12941 + $k[$j++] = $f($f(_4n - 48) + ($f(_4o - 48) * 10)); //#12941 + } //#12941 + $put($1.cws, $1.j, $k[--$j]); //#12943 + $1.j = $1.j + 1; //#12944 + }; //#12945 $1.anotb = function() { - var _4t = $k[--$j]; - var _4v = $get($1.seta, _4t) !== undefined; - var _4x = $get($1.setb, _4t) !== undefined; - $k[$j++] = _4v && !_4x; - }; + var _4t = $k[--$j]; //#12948 + var _4v = $get($1.seta, _4t) !== undefined; //#12948 + var _4x = $get($1.setb, _4t) !== undefined; //#12948 + $k[$j++] = _4v && (!_4x); //#12948 + }; //#12948 $1.bnota = function() { - var _4y = $k[--$j]; - var _50 = $get($1.setb, _4y) !== undefined; - var _52 = $get($1.seta, _4y) !== undefined; - $k[$j++] = _50 && !_52; - }; - $k[$j++] = Infinity; - for (var _54 = 0, _55 = $1.msg.length; _54 < _55; _54++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextanotb = $a(); - $k[$j++] = Infinity; - for (var _58 = 0, _59 = $1.msg.length; _58 < _59; _58++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextbnota = $a(); - for (var _5C = $1.msg.length - 1; _5C >= 0; _5C -= 1) { - $1.i = _5C; - $k[$j++] = $get($1.msg, $1.i); - $1.anotb(); - if ($k[--$j]) { - $put($1.nextanotb, $1.i, 0); - } else { - $put($1.nextanotb, $1.i, $f($get($1.nextanotb, $1.i + 1) + 1)); - } - $k[$j++] = $get($1.msg, $1.i); - $1.bnota(); - if ($k[--$j]) { - $put($1.nextbnota, $1.i, 0); - } else { - $put($1.nextbnota, $1.i, $f($get($1.nextbnota, $1.i + 1) + 1)); - } - } + var _4y = $k[--$j]; //#12949 + var _50 = $get($1.setb, _4y) !== undefined; //#12949 + var _52 = $get($1.seta, _4y) !== undefined; //#12949 + $k[$j++] = _50 && (!_52); //#12949 + }; //#12949 + $k[$j++] = Infinity; //#12952 + for (var _54 = 0, _55 = $1.msg.length; _54 < _55; _54++) { //#12952 + $k[$j++] = 0; //#12952 + } //#12952 + $k[$j++] = 9999; //#12952 + $1.nextanotb = $a(); //#12952 + $k[$j++] = Infinity; //#12953 + for (var _58 = 0, _59 = $1.msg.length; _58 < _59; _58++) { //#12953 + $k[$j++] = 0; //#12953 + } //#12953 + $k[$j++] = 9999; //#12953 + $1.nextbnota = $a(); //#12953 + for (var _5C = $1.msg.length - 1; _5C >= 0; _5C -= 1) { //#12966 + $1.i = _5C; //#12955 + $k[$j++] = $get($1.msg, $1.i); //#12956 + $1.anotb(); //#12956 + if ($k[--$j]) { //#12959 + $put($1.nextanotb, $1.i, 0); //#12957 + } else { //#12959 + $put($1.nextanotb, $1.i, $f($get($1.nextanotb, $1.i + 1) + 1)); //#12959 + } //#12959 + $k[$j++] = $get($1.msg, $1.i); //#12961 + $1.bnota(); //#12961 + if ($k[--$j]) { //#12964 + $put($1.nextbnota, $1.i, 0); //#12962 + } else { //#12964 + $put($1.nextbnota, $1.i, $f($get($1.nextbnota, $1.i + 1) + 1)); //#12964 + } //#12964 + } //#12964 $1.abeforeb = function() { - var _5Z = $k[--$j]; - $k[$j++] = $lt($get($1.nextanotb, _5Z), $get($1.nextbnota, _5Z)); - }; + var _5Z = $k[--$j]; //#12969 + $k[$j++] = $lt($get($1.nextanotb, _5Z), $get($1.nextbnota, _5Z)); //#12969 + }; //#12969 $1.bbeforea = function() { - var _5e = $k[--$j]; - $k[$j++] = $lt($get($1.nextbnota, _5e), $get($1.nextanotb, _5e)); - }; - $1.cws = $a($1.barcode.length * 2 + 3); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.pos != -1) { - $put($1.cws, 0, ~~($1.pos / 10) - 1); - $put($1.cws, 1, $1.pos % 10 - 1); - $1.j = 2; - $1.cset = "setb"; - $1.mode = 7; - break; - } - if ($1.msglen == 0) { - $1.cset = "setb"; - $1.mode = 1; - break; - } - if ($1.msglen >= 2) { - $k[$j++] = $get($1.msg, 0) == $1.fn1; - $k[$j++] = 1; - $1.numsscr(); - var _5v = $k[--$j]; - var _5w = $k[--$j]; - $k[$j++] = _5v; - $k[$j++] = _5w; - $j--; - var _5x = $k[--$j]; - var _5y = $k[--$j]; - if (_5y && _5x >= 2) { - $1.cset = "setc"; - $1.mode = 4; - $1.i = 1; - break; - } - } - if ($get($1.msg, 0) == $1.fn1) { - $1.cset = "setb"; - $1.mode = 3; - $1.i = 1; - break; - } - if ($1.msglen >= 2) { - $k[$j++] = 0; - $1.numsscr(); - var _63 = $k[--$j]; - var _64 = $k[--$j]; - $k[$j++] = _63; - $k[$j++] = _64; - $j--; - var _65 = $k[--$j]; - if (_65 >= 2 && _65 % 2 == 0) { - $1.cset = "setc"; - $1.mode = 2; - break; - } - $k[$j++] = 0; - $1.numsscr(); - var _66 = $k[--$j]; - var _67 = $k[--$j]; - $k[$j++] = _66; - $k[$j++] = _67; - $j--; - var _68 = $k[--$j]; - if (_68 >= 3 && _68 % 2 == 1) { - $k[$j++] = $get($1.msg, 0); - $1.encb(); - $1.cset = "setc"; - $1.mode = 5; - $1.i = 1; - break; - } - var _6E = $get($1.setb, $get($1.msg, 0)) !== undefined; - $k[$j++] = _6E; - $k[$j++] = 1; - $1.numsscr(); - var _6F = $k[--$j]; - var _6G = $k[--$j]; - $k[$j++] = _6F; - $k[$j++] = _6G; - $j--; - var _6H = $k[--$j]; - var _6I = $k[--$j]; - if (_6I && (_6H >= 2 && _6H % 2 == 0)) { - $k[$j++] = $get($1.msg, 0); - $1.encb(); - $1.cset = "setc"; - $1.mode = 5; - $1.i = 1; - break; - } - var _6O = $get($1.setb, $get($1.msg, 0)) !== undefined; - $k[$j++] = _6O; - $k[$j++] = 1; - $1.numsscr(); - var _6P = $k[--$j]; - var _6Q = $k[--$j]; - $k[$j++] = _6P; - $k[$j++] = _6Q; - $j--; - var _6R = $k[--$j]; - var _6S = $k[--$j]; - if (_6S && (_6R >= 3 && _6R % 2 == 1)) { - $k[$j++] = $get($1.msg, 0); - $1.encb(); - $k[$j++] = $get($1.msg, 1); - $1.encb(); - $1.cset = "setc"; - $1.mode = 6; - $1.i = 2; - break; - } - var _6a = $get($1.setb, $get($1.msg, 0)) !== undefined; - var _6e = $get($1.setb, $get($1.msg, 1)) !== undefined; - $k[$j++] = _6a && _6e; - $k[$j++] = 2; - $1.numsscr(); - var _6f = $k[--$j]; - var _6g = $k[--$j]; - $k[$j++] = _6f; - $k[$j++] = _6g; - $j--; - var _6h = $k[--$j]; - var _6i = $k[--$j]; - if (_6i && (_6h >= 2 && _6h % 2 == 0)) { - $k[$j++] = $get($1.msg, 0); - $1.encb(); - $k[$j++] = $get($1.msg, 1); - $1.encb(); - $1.cset = "setc"; - $1.mode = 6; - $1.i = 2; - break; - } - } - $k[$j++] = 0; - $1.abeforeb(); - if ($k[--$j]) { - $1.cset = "seta"; - $1.mode = 0; - break; - } - $1.cset = "setb"; - $1.mode = 1; - break; - } - for (;;) { - if ($1.i == $1.msglen) { - break; - } - $k[$j++] = $1.i; - $1.numsscr(); - $1.nums = $k[--$j]; - $1.nchars = $k[--$j]; - for (;;) { - if ($eq($1.cset, "seta")) { - if ($1.i < $1.msglen - 1) { - $k[$j++] = $get($1.msg, $1.i); - $1.bnota(); - $k[$j++] = $1.i + 1; - $1.abeforeb(); - var _70 = $k[--$j]; - var _71 = $k[--$j]; - if (_71 && _70) { - $k[$j++] = $1.sb1; - $1.enca(); - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $1.i = $1.i + 1; - break; - } - } - if ($1.i < $1.msglen - 2) { - $k[$j++] = $get($1.msg, $1.i); - $1.bnota(); - $k[$j++] = $get($1.msg, $1.i + 1); - $1.bnota(); - var _7F = $k[--$j]; - var _7G = $k[--$j]; - $k[$j++] = $an(_7G, _7F); - $k[$j++] = $1.i + 2; - $1.abeforeb(); - var _7I = $k[--$j]; - var _7J = $k[--$j]; - if (_7J && _7I) { - $k[$j++] = $1.sb2; - $1.enca(); - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $k[$j++] = $get($1.msg, $1.i + 1); - $1.encb(); - $1.i = $1.i + 2; - break; - } - } - $k[$j++] = $get($1.msg, $1.i); - $1.bnota(); - if ($k[--$j]) { - $k[$j++] = $1.swb; - $1.enca(); - $1.cset = "setb"; - break; - } - if ($1.i < $1.msglen - 4) { - var _7e = $get($1.seta, $get($1.msg, $1.i + 4)) !== undefined; - if ($1.nums == 4 && _7e) { - $k[$j++] = $1.sc2; - $1.enca(); - for (var _7g = 0, _7h = 2; _7g < _7h; _7g++) { - if ($get($1.msg, $1.i) == $1.fn1) { - $k[$j++] = $1.fn1; - $1.encc(); - $1.i = $1.i + 1; - } else { - $k[$j++] = $geti($1.msg, $1.i, 2); - $1.encc(); - $1.i = $1.i + 2; - } - } - break; - } - } - if ($1.i < $1.msglen - 6) { - var _7z = $get($1.seta, $get($1.msg, $1.i + 6)) !== undefined; - if ($1.nums == 6 && _7z) { - $k[$j++] = $1.sc3; - $1.enca(); - for (var _81 = 0, _82 = 3; _81 < _82; _81++) { - if ($get($1.msg, $1.i) == $1.fn1) { - $k[$j++] = $1.fn1; - $1.encc(); - $1.i = $1.i + 1; - } else { - $k[$j++] = $geti($1.msg, $1.i, 2); - $1.encc(); - $1.i = $1.i + 2; - } - } - break; - } - } - if ($1.nums >= 4 && $1.nums % 2 == 0) { - $k[$j++] = $1.swc; - $1.enca(); - $1.cset = "setc"; - break; - } - $k[$j++] = $get($1.msg, $1.i); - $1.enca(); - $1.i = $1.i + 1; - break; - } - if ($eq($1.cset, "setb")) { - if ($1.i < $1.msglen - 1) { - $k[$j++] = $get($1.msg, $1.i); - $1.anotb(); - $k[$j++] = $1.i + 1; - $1.bbeforea(); - var _8R = $k[--$j]; - var _8S = $k[--$j]; - if (_8S && _8R) { - $k[$j++] = $1.sa1; - $1.encb(); - $k[$j++] = $get($1.msg, $1.i); - $1.enca(); - $1.i = $1.i + 1; - break; - } - } - if ($1.i < $1.msglen - 2) { - $k[$j++] = $get($1.msg, $1.i); - $1.anotb(); - $k[$j++] = $get($1.msg, $1.i + 1); - $1.anotb(); - var _8g = $k[--$j]; - var _8h = $k[--$j]; - $k[$j++] = $an(_8h, _8g); - $k[$j++] = $1.i + 2; - $1.bbeforea(); - var _8j = $k[--$j]; - var _8k = $k[--$j]; - if (_8k && _8j) { - $k[$j++] = $1.sa2; - $1.encb(); - $k[$j++] = $get($1.msg, $1.i); - $1.enca(); - $k[$j++] = $get($1.msg, $1.i + 1); - $1.enca(); - $1.i = $1.i + 2; - break; - } - } - $k[$j++] = $get($1.msg, $1.i); - $1.anotb(); - if ($k[--$j]) { - $k[$j++] = $1.swa; - $1.encb(); - $1.cset = "seta"; - break; - } - if ($1.i < $1.msglen - 4) { - var _95 = $get($1.setb, $get($1.msg, $1.i + 4)) !== undefined; - if ($1.nums == 4 && _95) { - $k[$j++] = $1.sc2; - $1.encb(); - for (var _97 = 0, _98 = 2; _97 < _98; _97++) { - if ($get($1.msg, $1.i) == $1.fn1) { - $k[$j++] = $1.fn1; - $1.encc(); - $1.i = $1.i + 1; - } else { - $k[$j++] = $geti($1.msg, $1.i, 2); - $1.encc(); - $1.i = $1.i + 2; - } - } - break; - } - } - if ($1.i < $1.msglen - 6) { - var _9Q = $get($1.setb, $get($1.msg, $1.i + 6)) !== undefined; - if ($1.nums == 6 && _9Q) { - $k[$j++] = $1.sc3; - $1.encb(); - for (var _9S = 0, _9T = 3; _9S < _9T; _9S++) { - if ($get($1.msg, $1.i) == $1.fn1) { - $k[$j++] = $1.fn1; - $1.encc(); - $1.i = $1.i + 1; - } else { - $k[$j++] = $geti($1.msg, $1.i, 2); - $1.encc(); - $1.i = $1.i + 2; - } - } - break; - } - } - if ($1.nums >= 4 && $1.nums % 2 == 0) { - $k[$j++] = $1.swc; - $1.encb(); - $1.cset = "setc"; - break; - } - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $1.i = $1.i + 1; - break; - } - if ($eq($1.cset, "setc")) { - if ($1.nums >= 2) { - if ($get($1.msg, $1.i) == $1.fn1) { - $k[$j++] = $1.fn1; - $1.encc(); - $1.i = $1.i + 1; - } else { - $k[$j++] = $geti($1.msg, $1.i, 2); - $1.encc(); - $1.i = $1.i + 2; - } - break; - } - if ($1.i < $1.msglen - 1) { - var _A3 = $get($1.setb, $get($1.msg, $1.i)) !== undefined; - $k[$j++] = _A3; - $k[$j++] = $1.i + 1; - $1.numsscr(); - var _A5 = $k[--$j]; - var _A6 = $k[--$j]; - $k[$j++] = _A5; - $k[$j++] = _A6; - $j--; - var _A7 = $k[--$j]; - var _A8 = $k[--$j]; - if (_A8 && (_A7 >= 2 && _A7 % 2 == 0)) { - $k[$j++] = $1.sb1; - $1.encc(); - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $1.i = $1.i + 1; - break; - } - } - if ($1.i < $1.msglen - 1) { - var _AK = $get($1.setb, $get($1.msg, $1.i)) !== undefined; - $k[$j++] = _AK; - $k[$j++] = $1.i + 1; - $1.numsscr(); - var _AM = $k[--$j]; - var _AN = $k[--$j]; - $k[$j++] = _AM; - $k[$j++] = _AN; - $j--; - var _AO = $k[--$j]; - var _AP = $k[--$j]; - if (_AP && (_AO >= 3 && _AO % 2 == 1)) { - $k[$j++] = $1.sb2; - $1.encc(); - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $k[$j++] = $get($1.msg, $1.i + 1); - $1.encb(); - $1.i = $1.i + 2; - break; - } - } - if ($1.i < $1.msglen - 2) { - var _Ae = $get($1.setb, $get($1.msg, $1.i)) !== undefined; - var _Aj = $get($1.setb, $get($1.msg, $1.i + 1)) !== undefined; - $k[$j++] = _Ae && _Aj; - $k[$j++] = $1.i + 2; - $1.numsscr(); - var _Al = $k[--$j]; - var _Am = $k[--$j]; - $k[$j++] = _Al; - $k[$j++] = _Am; - $j--; - var _An = $k[--$j]; - var _Ao = $k[--$j]; - if (_Ao && (_An >= 2 && _An % 2 == 0)) { - $k[$j++] = $1.sb2; - $1.encc(); - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $k[$j++] = $get($1.msg, $1.i + 1); - $1.encb(); - $1.i = $1.i + 2; - break; - } - } - if ($1.i < $1.msglen - 3) { - var _B3 = $get($1.setb, $get($1.msg, $1.i)) !== undefined; - var _B8 = $get($1.setb, $get($1.msg, $1.i + 1)) !== undefined; - $k[$j++] = _B3 && _B8; - $k[$j++] = $1.i + 2; - $1.numsscr(); - var _BA = $k[--$j]; - var _BB = $k[--$j]; - $k[$j++] = _BA; - $k[$j++] = _BB; - $j--; - var _BC = $k[--$j]; - var _BD = $k[--$j]; - if (_BD && (_BC >= 3 && _BC % 2 == 1)) { - $k[$j++] = $1.sb3; - $1.encc(); - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $k[$j++] = $get($1.msg, $1.i + 1); - $1.encb(); - $k[$j++] = $get($1.msg, $1.i + 2); - $1.encb(); - $1.i = $1.i + 3; - break; - } - } - if ($1.i < $1.msglen - 3) { - var _BV = $get($1.setb, $get($1.msg, $1.i)) !== undefined; - var _Ba = $get($1.setb, $get($1.msg, $1.i + 1)) !== undefined; - var _Bf = $get($1.setb, $get($1.msg, $1.i + 2)) !== undefined; - $k[$j++] = _BV && _Ba && _Bf; - $k[$j++] = $1.i + 3; - $1.numsscr(); - var _Bh = $k[--$j]; - var _Bi = $k[--$j]; - $k[$j++] = _Bh; - $k[$j++] = _Bi; - $j--; - var _Bj = $k[--$j]; - var _Bk = $k[--$j]; - if (_Bk && (_Bj >= 2 && _Bj % 2 == 0)) { - $k[$j++] = $1.sb3; - $1.encc(); - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $k[$j++] = $get($1.msg, $1.i + 1); - $1.encb(); - $k[$j++] = $get($1.msg, $1.i + 2); - $1.encb(); - $1.i = $1.i + 3; - break; - } - } - $k[$j++] = $1.i; - $1.abeforeb(); - if ($k[--$j]) { - $k[$j++] = $1.swa; - $1.encc(); - $1.cset = "seta"; - break; - } - $k[$j++] = $1.swb; - $1.encc(); - $1.cset = "setb"; - break; - } - break; - } - } - $1.cws = $geti($1.cws, 0, $1.j); - } - $1.metrics = $a([ $a([ 2, 7 ]), $a([ 3, 12 ]), $a([ 4, 17 ]), $a([ 5, 22 ]), $a([ 6, 27 ]), $a([ 7, 32 ]), $a([ 8, 37 ]), $a([ 9, 42 ]), $a([ 10, 47 ]), $a([ 11, 52 ]), $a([ 12, 57 ]), $a([ 13, 62 ]), $a([ 14, 67 ]), $a([ 15, 72 ]), $a([ 16, 77 ]) ]); - $1.urows = $1.rows; - $1.i = 0; - for (;;) { - $1.m = $get($1.metrics, $1.i); - $1.r = $get($1.m, 0); - $1.dcws = $get($1.m, 1); - $1.okay = true; - if ($1.urows != 0 && $1.urows != $1.r) { - $1.okay = false; - } - if ($1.cws.length > $1.dcws) { - $1.okay = false; - } - if ($1.okay) { - break; - } - $1.i = $1.i + 1; - } - $k[$j++] = Infinity; - $aload($1.cws); - for (var _Cb = 0, _Cc = $f($1.dcws - $1.cws.length); _Cb < _Cc; _Cb++) { - $k[$j++] = 103; - } - $1.cws = $a(); - $k[$j++] = Infinity; - $k[$j++] = $f($f($1.r - 2) * 7 + $1.mode); - $aload($1.cws); - $1.cws = $a(); - $k[$j++] = 0; - for (var _Ck = 0, _Cj = $1.dcws; _Ck <= _Cj; _Ck += 1) { - var _Cn = $k[--$j]; - $k[$j++] = $f(_Cn + (_Ck + 2) * $get($1.cws, _Ck)); - } - $1.c1 = $k[--$j] % 107; - $k[$j++] = 0; - for (var _Cr = 0, _Cq = $1.dcws; _Cr <= _Cq; _Cr += 1) { - var _Cu = $k[--$j]; - $k[$j++] = $f(_Cu + (_Cr + 1) * $get($1.cws, _Cr)); - } - $1.c2 = $f($k[--$j] + $1.c1 * $f($1.dcws + 2)) % 107; - $k[$j++] = Infinity; - $aload($1.cws); - $k[$j++] = $1.c1; - $k[$j++] = $1.c2; - $1.cws = $a(); - $1.encs = $a([ "212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "211214", "211232", "211133" ]); - $1.startencs = $a([ "3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112" ]); - $1.stopencsodd = $a([ "3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411" ]); - $1.stopencseven = $a([ "2122", "1411", "1132", "1231", "1114", "3112", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411", "3211", "2221" ]); - if ($1.pos == -1 || ~~($1.pos / 10) % 2 == 1) { - $1.stopencs = $1.stopencsodd; - } else { - $1.stopencs = $1.stopencseven; - } - $1.rowbits = $a($1.r); - for (var _DE = 0, _DD = $f($1.r - 1); _DE <= _DD; _DE += 1) { - $1.i = _DE; - $k[$j++] = Infinity; - $k[$j++] = 10; - $forall($get($1.startencs, $1.i), function() { - var _DI = $k[--$j]; - $k[$j++] = $f(_DI - 48); - }); - var _DL = $geti($1.cws, $1.i * 5, 5); - $k[$j++] = 1; - for (var _DM = 0, _DN = _DL.length; _DM < _DN; _DM++) { - $forall($get($1.encs, $get(_DL, _DM)), function() { - var _DR = $k[--$j]; - $k[$j++] = $f(_DR - 48); - }); - } - $forall($get($1.stopencs, $1.i), function() { - var _DV = $k[--$j]; - $k[$j++] = $f(_DV - 48); - }); - $k[$j++] = 1; - $1.sbs = $a(); - $k[$j++] = Infinity; - var _DX = $1.sbs; - $k[$j++] = 1; - for (var _DY = 0, _DZ = _DX.length; _DY < _DZ; _DY++) { - var _Db = $k[--$j]; - var _Dc = _Db == 0 ? 1 : 0; - $k[$j++] = _Db; - for (var _Dd = 0, _De = $get(_DX, _DY); _Dd < _De; _Dd++) { - $k[$j++] = _Dc; - } - } - $astore($a($counttomark() - 1)); - var _Dh = $k[--$j]; - var _Di = $k[--$j]; - $k[$j++] = _Dh; - $k[$j++] = _Di; - $j--; - var _Dj = $k[--$j]; - var _Dk = $k[--$j]; - $k[$j++] = _Dj; - $k[$j++] = _Dk; - $j--; - $put($1.rowbits, $1.i, $k[--$j]); - } - $k[$j++] = Infinity; - for (var _Dp = 0, _Dq = 81 * $1.sepheight; _Dp < _Dq; _Dp++) { - $k[$j++] = 1; - } - for (var _Dt = 0, _Ds = $f($1.r - 2); _Dt <= _Ds; _Dt += 1) { - $1.i = _Dt; - for (var _Dv = 0, _Dw = $1.rowheight; _Dv < _Dw; _Dv++) { - $aload($get($1.rowbits, $1.i)); - } - for (var _E1 = 0, _E2 = $1.sepheight; _E1 < _E2; _E1++) { - for (var _E3 = 0, _E4 = 10; _E3 < _E4; _E3++) { - $k[$j++] = 0; - } - for (var _E5 = 0, _E6 = 70; _E5 < _E6; _E5++) { - $k[$j++] = 1; - } - $k[$j++] = 0; - } - } - for (var _E8 = 0, _E9 = $1.rowheight; _E8 < _E9; _E8++) { - $aload($get($1.rowbits, $f($1.r - 1))); - } - for (var _EE = 0, _EF = 81 * $1.sepheight; _EE < _EF; _EE++) { - $k[$j++] = 1; - } - $1.pixs = $a(); - var _EL = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", 81 ], [ "pixy", ~~($1.pixs.length / 81) ], [ "height", ~~($1.pixs.length / 81) / 72 ], [ "width", 81 / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _EL; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var _5e = $k[--$j]; //#12970 + $k[$j++] = $lt($get($1.nextbnota, _5e), $get($1.nextanotb, _5e)); //#12970 + }; //#12970 + $1.cws = $a(($1.barcode.length * 2) + 3); //#12972 + $1.i = 0; //#12975 + $1.j = 0; //#12975 + for (;;) { //#13065 + if ($1.pos != -1) { //#12986 + $put($1.cws, 0, (~~($1.pos / 10)) - 1); //#12980 + $put($1.cws, 1, ($1.pos % 10) - 1); //#12981 + $1.j = 2; //#12982 + $1.cset = "setb"; //#12983 + $1.mode = 7; //#12984 + break; //#12985 + } //#12985 + if ($1.msglen == 0) { //#12992 + $1.cset = "setb"; //#12989 + $1.mode = 1; //#12990 + break; //#12991 + } //#12991 + if ($1.msglen >= 2) { //#13001 + $k[$j++] = $get($1.msg, 0) == $1.fn1; //#12995 + $k[$j++] = 1; //#12995 + $1.numsscr(); //#12995 + var _5v = $k[--$j]; //#12995 + var _5w = $k[--$j]; //#12995 + $k[$j++] = _5v; //#12995 + $k[$j++] = _5w; //#12995 + $j--; //#12995 + var _5x = $k[--$j]; //#12995 + var _5y = $k[--$j]; //#12995 + if (_5y && (_5x >= 2)) { //#13000 + $1.cset = "setc"; //#12996 + $1.mode = 4; //#12997 + $1.i = 1; //#12998 + break; //#12999 + } //#12999 + } //#12999 + if ($get($1.msg, 0) == $1.fn1) { //#13008 + $1.cset = "setb"; //#13004 + $1.mode = 3; //#13005 + $1.i = 1; //#13006 + break; //#13007 + } //#13007 + if ($1.msglen >= 2) { //#13054 + $k[$j++] = 0; //#13011 + $1.numsscr(); //#13011 + var _63 = $k[--$j]; //#13011 + var _64 = $k[--$j]; //#13011 + $k[$j++] = _63; //#13011 + $k[$j++] = _64; //#13011 + $j--; //#13011 + var _65 = $k[--$j]; //#13011 + if ((_65 >= 2) && ((_65 % 2) == 0)) { //#13015 + $1.cset = "setc"; //#13012 + $1.mode = 2; //#13013 + break; //#13014 + } //#13014 + $k[$j++] = 0; //#13017 + $1.numsscr(); //#13017 + var _66 = $k[--$j]; //#13017 + var _67 = $k[--$j]; //#13017 + $k[$j++] = _66; //#13017 + $k[$j++] = _67; //#13017 + $j--; //#13017 + var _68 = $k[--$j]; //#13017 + if ((_68 >= 3) && ((_68 % 2) == 1)) { //#13023 + $k[$j++] = $get($1.msg, 0); //#13018 + $1.encb(); //#13018 + $1.cset = "setc"; //#13019 + $1.mode = 5; //#13020 + $1.i = 1; //#13021 + break; //#13022 + } //#13022 + var _6E = $get($1.setb, $get($1.msg, 0)) !== undefined; //#13025 + $k[$j++] = _6E; //#13026 + $k[$j++] = 1; //#13026 + $1.numsscr(); //#13026 + var _6F = $k[--$j]; //#13026 + var _6G = $k[--$j]; //#13026 + $k[$j++] = _6F; //#13026 + $k[$j++] = _6G; //#13026 + $j--; //#13026 + var _6H = $k[--$j]; //#13026 + var _6I = $k[--$j]; //#13026 + if (_6I && ((_6H >= 2) && ((_6H % 2) == 0))) { //#13032 + $k[$j++] = $get($1.msg, 0); //#13027 + $1.encb(); //#13027 + $1.cset = "setc"; //#13028 + $1.mode = 5; //#13029 + $1.i = 1; //#13030 + break; //#13031 + } //#13031 + var _6O = $get($1.setb, $get($1.msg, 0)) !== undefined; //#13034 + $k[$j++] = _6O; //#13035 + $k[$j++] = 1; //#13035 + $1.numsscr(); //#13035 + var _6P = $k[--$j]; //#13035 + var _6Q = $k[--$j]; //#13035 + $k[$j++] = _6P; //#13035 + $k[$j++] = _6Q; //#13035 + $j--; //#13035 + var _6R = $k[--$j]; //#13035 + var _6S = $k[--$j]; //#13035 + if (_6S && ((_6R >= 3) && ((_6R % 2) == 1))) { //#13042 + $k[$j++] = $get($1.msg, 0); //#13036 + $1.encb(); //#13036 + $k[$j++] = $get($1.msg, 1); //#13037 + $1.encb(); //#13037 + $1.cset = "setc"; //#13038 + $1.mode = 6; //#13039 + $1.i = 2; //#13040 + break; //#13041 + } //#13041 + var _6a = $get($1.setb, $get($1.msg, 0)) !== undefined; //#13044 + var _6e = $get($1.setb, $get($1.msg, 1)) !== undefined; //#13045 + $k[$j++] = _6a && _6e; //#13046 + $k[$j++] = 2; //#13046 + $1.numsscr(); //#13046 + var _6f = $k[--$j]; //#13046 + var _6g = $k[--$j]; //#13046 + $k[$j++] = _6f; //#13046 + $k[$j++] = _6g; //#13046 + $j--; //#13046 + var _6h = $k[--$j]; //#13046 + var _6i = $k[--$j]; //#13046 + if (_6i && ((_6h >= 2) && ((_6h % 2) == 0))) { //#13053 + $k[$j++] = $get($1.msg, 0); //#13047 + $1.encb(); //#13047 + $k[$j++] = $get($1.msg, 1); //#13048 + $1.encb(); //#13048 + $1.cset = "setc"; //#13049 + $1.mode = 6; //#13050 + $1.i = 2; //#13051 + break; //#13052 + } //#13052 + } //#13052 + $k[$j++] = 0; //#13056 + $1.abeforeb(); //#13056 + if ($k[--$j]) { //#13060 + $1.cset = "seta"; //#13057 + $1.mode = 0; //#13058 + break; //#13059 + } //#13059 + $1.cset = "setb"; //#13062 + $1.mode = 1; //#13063 + break; //#13064 + } //#13064 + for (;;) { //#13308 + if ($1.i == $1.msglen) { //#13068 + break; //#13068 + } //#13068 + $k[$j++] = $1.i; //#13070 + $1.numsscr(); //#13070 + $1.nums = $k[--$j]; //#13070 + $1.nchars = $k[--$j]; //#13070 + for (;;) { //#13306 + if ($eq($1.cset, "seta")) { //#13147 + if ($1.i < ($1.msglen - 1)) { //#13084 + $k[$j++] = $get($1.msg, $1.i); //#13077 + $1.bnota(); //#13077 + $k[$j++] = $1.i + 1; //#13078 + $1.abeforeb(); //#13078 + var _70 = $k[--$j]; //#13078 + var _71 = $k[--$j]; //#13078 + if ((_71 && _70)) { //#13083 + $k[$j++] = $1.sb1; //#13079 + $1.enca(); //#13079 + $k[$j++] = $get($1.msg, $1.i); //#13080 + $1.encb(); //#13080 + $1.i = $1.i + 1; //#13081 + break; //#13082 + } //#13082 + } //#13082 + if ($1.i < ($1.msglen - 2)) { //#13096 + $k[$j++] = $get($1.msg, $1.i); //#13087 + $1.bnota(); //#13087 + $k[$j++] = $get($1.msg, $1.i + 1); //#13088 + $1.bnota(); //#13088 + var _7F = $k[--$j]; //#13088 + var _7G = $k[--$j]; //#13088 + $k[$j++] = $an(_7G, _7F); //#13089 + $k[$j++] = $1.i + 2; //#13089 + $1.abeforeb(); //#13089 + var _7I = $k[--$j]; //#13089 + var _7J = $k[--$j]; //#13089 + if ((_7J && _7I)) { //#13095 + $k[$j++] = $1.sb2; //#13090 + $1.enca(); //#13090 + $k[$j++] = $get($1.msg, $1.i); //#13091 + $1.encb(); //#13091 + $k[$j++] = $get($1.msg, $1.i + 1); //#13092 + $1.encb(); //#13092 + $1.i = $1.i + 2; //#13093 + break; //#13094 + } //#13094 + } //#13094 + $k[$j++] = $get($1.msg, $1.i); //#13098 + $1.bnota(); //#13098 + if ($k[--$j]) { //#13102 + $k[$j++] = $1.swb; //#13099 + $1.enca(); //#13099 + $1.cset = "setb"; //#13100 + break; //#13101 + } //#13101 + if ($1.i < ($1.msglen - 4)) { //#13119 + var _7e = $get($1.seta, $get($1.msg, $1.i + 4)) !== undefined; //#13106 + if (($1.nums == 4) && _7e) { //#13118 + $k[$j++] = $1.sc2; //#13107 + $1.enca(); //#13107 + for (var _7g = 0, _7h = 2; _7g < _7h; _7g++) { //#13116 + if ($get($1.msg, $1.i) == $1.fn1) { //#13114 + $k[$j++] = $1.fn1; //#13110 + $1.encc(); //#13110 + $1.i = $1.i + 1; //#13111 + } else { //#13114 + $k[$j++] = $geti($1.msg, $1.i, 2); //#13113 + $1.encc(); //#13113 + $1.i = $1.i + 2; //#13114 + } //#13114 + } //#13114 + break; //#13117 + } //#13117 + } //#13117 + if ($1.i < ($1.msglen - 6)) { //#13136 + var _7z = $get($1.seta, $get($1.msg, $1.i + 6)) !== undefined; //#13123 + if (($1.nums == 6) && _7z) { //#13135 + $k[$j++] = $1.sc3; //#13124 + $1.enca(); //#13124 + for (var _81 = 0, _82 = 3; _81 < _82; _81++) { //#13133 + if ($get($1.msg, $1.i) == $1.fn1) { //#13131 + $k[$j++] = $1.fn1; //#13127 + $1.encc(); //#13127 + $1.i = $1.i + 1; //#13128 + } else { //#13131 + $k[$j++] = $geti($1.msg, $1.i, 2); //#13130 + $1.encc(); //#13130 + $1.i = $1.i + 2; //#13131 + } //#13131 + } //#13131 + break; //#13134 + } //#13134 + } //#13134 + if (($1.nums >= 4) && (($1.nums % 2) == 0)) { //#13142 + $k[$j++] = $1.swc; //#13139 + $1.enca(); //#13139 + $1.cset = "setc"; //#13140 + break; //#13141 + } //#13141 + $k[$j++] = $get($1.msg, $1.i); //#13144 + $1.enca(); //#13144 + $1.i = $1.i + 1; //#13145 + break; //#13146 + } //#13146 + if ($eq($1.cset, "setb")) { //#13221 + if ($1.i < ($1.msglen - 1)) { //#13158 + $k[$j++] = $get($1.msg, $1.i); //#13151 + $1.anotb(); //#13151 + $k[$j++] = $1.i + 1; //#13152 + $1.bbeforea(); //#13152 + var _8R = $k[--$j]; //#13152 + var _8S = $k[--$j]; //#13152 + if ((_8S && _8R)) { //#13157 + $k[$j++] = $1.sa1; //#13153 + $1.encb(); //#13153 + $k[$j++] = $get($1.msg, $1.i); //#13154 + $1.enca(); //#13154 + $1.i = $1.i + 1; //#13155 + break; //#13156 + } //#13156 + } //#13156 + if ($1.i < ($1.msglen - 2)) { //#13170 + $k[$j++] = $get($1.msg, $1.i); //#13161 + $1.anotb(); //#13161 + $k[$j++] = $get($1.msg, $1.i + 1); //#13162 + $1.anotb(); //#13162 + var _8g = $k[--$j]; //#13162 + var _8h = $k[--$j]; //#13162 + $k[$j++] = $an(_8h, _8g); //#13163 + $k[$j++] = $1.i + 2; //#13163 + $1.bbeforea(); //#13163 + var _8j = $k[--$j]; //#13163 + var _8k = $k[--$j]; //#13163 + if ((_8k && _8j)) { //#13169 + $k[$j++] = $1.sa2; //#13164 + $1.encb(); //#13164 + $k[$j++] = $get($1.msg, $1.i); //#13165 + $1.enca(); //#13165 + $k[$j++] = $get($1.msg, $1.i + 1); //#13166 + $1.enca(); //#13166 + $1.i = $1.i + 2; //#13167 + break; //#13168 + } //#13168 + } //#13168 + $k[$j++] = $get($1.msg, $1.i); //#13172 + $1.anotb(); //#13172 + if ($k[--$j]) { //#13176 + $k[$j++] = $1.swa; //#13173 + $1.encb(); //#13173 + $1.cset = "seta"; //#13174 + break; //#13175 + } //#13175 + if ($1.i < ($1.msglen - 4)) { //#13193 + var _95 = $get($1.setb, $get($1.msg, $1.i + 4)) !== undefined; //#13180 + if (($1.nums == 4) && _95) { //#13192 + $k[$j++] = $1.sc2; //#13181 + $1.encb(); //#13181 + for (var _97 = 0, _98 = 2; _97 < _98; _97++) { //#13190 + if ($get($1.msg, $1.i) == $1.fn1) { //#13188 + $k[$j++] = $1.fn1; //#13184 + $1.encc(); //#13184 + $1.i = $1.i + 1; //#13185 + } else { //#13188 + $k[$j++] = $geti($1.msg, $1.i, 2); //#13187 + $1.encc(); //#13187 + $1.i = $1.i + 2; //#13188 + } //#13188 + } //#13188 + break; //#13191 + } //#13191 + } //#13191 + if ($1.i < ($1.msglen - 6)) { //#13210 + var _9Q = $get($1.setb, $get($1.msg, $1.i + 6)) !== undefined; //#13197 + if (($1.nums == 6) && _9Q) { //#13209 + $k[$j++] = $1.sc3; //#13198 + $1.encb(); //#13198 + for (var _9S = 0, _9T = 3; _9S < _9T; _9S++) { //#13207 + if ($get($1.msg, $1.i) == $1.fn1) { //#13205 + $k[$j++] = $1.fn1; //#13201 + $1.encc(); //#13201 + $1.i = $1.i + 1; //#13202 + } else { //#13205 + $k[$j++] = $geti($1.msg, $1.i, 2); //#13204 + $1.encc(); //#13204 + $1.i = $1.i + 2; //#13205 + } //#13205 + } //#13205 + break; //#13208 + } //#13208 + } //#13208 + if (($1.nums >= 4) && (($1.nums % 2) == 0)) { //#13216 + $k[$j++] = $1.swc; //#13213 + $1.encb(); //#13213 + $1.cset = "setc"; //#13214 + break; //#13215 + } //#13215 + $k[$j++] = $get($1.msg, $1.i); //#13218 + $1.encb(); //#13218 + $1.i = $1.i + 1; //#13219 + break; //#13220 + } //#13220 + if ($eq($1.cset, "setc")) { //#13304 + if ($1.nums >= 2) { //#13233 + if ($get($1.msg, $1.i) == $1.fn1) { //#13230 + $k[$j++] = $1.fn1; //#13226 + $1.encc(); //#13226 + $1.i = $1.i + 1; //#13227 + } else { //#13230 + $k[$j++] = $geti($1.msg, $1.i, 2); //#13229 + $1.encc(); //#13229 + $1.i = $1.i + 2; //#13230 + } //#13230 + break; //#13232 + } //#13232 + if ($1.i < ($1.msglen - 1)) { //#13243 + var _A3 = $get($1.setb, $get($1.msg, $1.i)) !== undefined; //#13236 + $k[$j++] = _A3; //#13237 + $k[$j++] = $1.i + 1; //#13237 + $1.numsscr(); //#13237 + var _A5 = $k[--$j]; //#13237 + var _A6 = $k[--$j]; //#13237 + $k[$j++] = _A5; //#13237 + $k[$j++] = _A6; //#13237 + $j--; //#13237 + var _A7 = $k[--$j]; //#13237 + var _A8 = $k[--$j]; //#13237 + if (_A8 && ((_A7 >= 2) && ((_A7 % 2) == 0))) { //#13242 + $k[$j++] = $1.sb1; //#13238 + $1.encc(); //#13238 + $k[$j++] = $get($1.msg, $1.i); //#13239 + $1.encb(); //#13239 + $1.i = $1.i + 1; //#13240 + break; //#13241 + } //#13241 + } //#13241 + if ($1.i < ($1.msglen - 1)) { //#13254 + var _AK = $get($1.setb, $get($1.msg, $1.i)) !== undefined; //#13246 + $k[$j++] = _AK; //#13247 + $k[$j++] = $1.i + 1; //#13247 + $1.numsscr(); //#13247 + var _AM = $k[--$j]; //#13247 + var _AN = $k[--$j]; //#13247 + $k[$j++] = _AM; //#13247 + $k[$j++] = _AN; //#13247 + $j--; //#13247 + var _AO = $k[--$j]; //#13247 + var _AP = $k[--$j]; //#13247 + if (_AP && ((_AO >= 3) && ((_AO % 2) == 1))) { //#13253 + $k[$j++] = $1.sb2; //#13248 + $1.encc(); //#13248 + $k[$j++] = $get($1.msg, $1.i); //#13249 + $1.encb(); //#13249 + $k[$j++] = $get($1.msg, $1.i + 1); //#13250 + $1.encb(); //#13250 + $1.i = $1.i + 2; //#13251 + break; //#13252 + } //#13252 + } //#13252 + if ($1.i < ($1.msglen - 2)) { //#13266 + var _Ae = $get($1.setb, $get($1.msg, $1.i)) !== undefined; //#13257 + var _Aj = $get($1.setb, $get($1.msg, $1.i + 1)) !== undefined; //#13258 + $k[$j++] = _Ae && _Aj; //#13259 + $k[$j++] = $1.i + 2; //#13259 + $1.numsscr(); //#13259 + var _Al = $k[--$j]; //#13259 + var _Am = $k[--$j]; //#13259 + $k[$j++] = _Al; //#13259 + $k[$j++] = _Am; //#13259 + $j--; //#13259 + var _An = $k[--$j]; //#13259 + var _Ao = $k[--$j]; //#13259 + if (_Ao && ((_An >= 2) && ((_An % 2) == 0))) { //#13265 + $k[$j++] = $1.sb2; //#13260 + $1.encc(); //#13260 + $k[$j++] = $get($1.msg, $1.i); //#13261 + $1.encb(); //#13261 + $k[$j++] = $get($1.msg, $1.i + 1); //#13262 + $1.encb(); //#13262 + $1.i = $1.i + 2; //#13263 + break; //#13264 + } //#13264 + } //#13264 + if ($1.i < ($1.msglen - 3)) { //#13279 + var _B3 = $get($1.setb, $get($1.msg, $1.i)) !== undefined; //#13269 + var _B8 = $get($1.setb, $get($1.msg, $1.i + 1)) !== undefined; //#13270 + $k[$j++] = _B3 && _B8; //#13271 + $k[$j++] = $1.i + 2; //#13271 + $1.numsscr(); //#13271 + var _BA = $k[--$j]; //#13271 + var _BB = $k[--$j]; //#13271 + $k[$j++] = _BA; //#13271 + $k[$j++] = _BB; //#13271 + $j--; //#13271 + var _BC = $k[--$j]; //#13271 + var _BD = $k[--$j]; //#13271 + if (_BD && ((_BC >= 3) && ((_BC % 2) == 1))) { //#13278 + $k[$j++] = $1.sb3; //#13272 + $1.encc(); //#13272 + $k[$j++] = $get($1.msg, $1.i); //#13273 + $1.encb(); //#13273 + $k[$j++] = $get($1.msg, $1.i + 1); //#13274 + $1.encb(); //#13274 + $k[$j++] = $get($1.msg, $1.i + 2); //#13275 + $1.encb(); //#13275 + $1.i = $1.i + 3; //#13276 + break; //#13277 + } //#13277 + } //#13277 + if ($1.i < ($1.msglen - 3)) { //#13293 + var _BV = $get($1.setb, $get($1.msg, $1.i)) !== undefined; //#13282 + var _Ba = $get($1.setb, $get($1.msg, $1.i + 1)) !== undefined; //#13283 + var _Bf = $get($1.setb, $get($1.msg, $1.i + 2)) !== undefined; //#13284 + $k[$j++] = (_BV && _Ba) && _Bf; //#13285 + $k[$j++] = $1.i + 3; //#13285 + $1.numsscr(); //#13285 + var _Bh = $k[--$j]; //#13285 + var _Bi = $k[--$j]; //#13285 + $k[$j++] = _Bh; //#13285 + $k[$j++] = _Bi; //#13285 + $j--; //#13285 + var _Bj = $k[--$j]; //#13285 + var _Bk = $k[--$j]; //#13285 + if (_Bk && ((_Bj >= 2) && ((_Bj % 2) == 0))) { //#13292 + $k[$j++] = $1.sb3; //#13286 + $1.encc(); //#13286 + $k[$j++] = $get($1.msg, $1.i); //#13287 + $1.encb(); //#13287 + $k[$j++] = $get($1.msg, $1.i + 1); //#13288 + $1.encb(); //#13288 + $k[$j++] = $get($1.msg, $1.i + 2); //#13289 + $1.encb(); //#13289 + $1.i = $1.i + 3; //#13290 + break; //#13291 + } //#13291 + } //#13291 + $k[$j++] = $1.i; //#13295 + $1.abeforeb(); //#13295 + if ($k[--$j]) { //#13299 + $k[$j++] = $1.swa; //#13296 + $1.encc(); //#13296 + $1.cset = "seta"; //#13297 + break; //#13298 + } //#13298 + $k[$j++] = $1.swb; //#13301 + $1.encc(); //#13301 + $1.cset = "setb"; //#13302 + break; //#13303 + } //#13303 + break; //#13305 + } //#13305 + } //#13305 + $1.cws = $geti($1.cws, 0, $1.j); //#13309 + } //#13309 + $1.metrics = $a([$a([2, 7]), $a([3, 12]), $a([4, 17]), $a([5, 22]), $a([6, 27]), $a([7, 32]), $a([8, 37]), $a([9, 42]), $a([10, 47]), $a([11, 52]), $a([12, 57]), $a([13, 62]), $a([14, 67]), $a([15, 72]), $a([16, 77])]); //#13330 + $1.urows = $1.rows; //#13333 + $1.i = 0; //#13334 + for (;;) { //#13344 + $1.m = $get($1.metrics, $1.i); //#13336 + $1.r = $get($1.m, 0); //#13337 + $1.dcws = $get($1.m, 1); //#13338 + $1.okay = true; //#13339 + if (($1.urows != 0) && ($1.urows != $1.r)) { //#13340 + $1.okay = false; //#13340 + } //#13340 + if ($1.cws.length > $1.dcws) { //#13341 + $1.okay = false; //#13341 + } //#13341 + if ($1.okay) { //#13342 + break; //#13342 + } //#13342 + $1.i = $1.i + 1; //#13343 + } //#13343 + $k[$j++] = Infinity; //#13347 + $aload($1.cws); //#13347 + for (var _Cb = 0, _Cc = $f($1.dcws - $1.cws.length); _Cb < _Cc; _Cb++) { //#13347 + $k[$j++] = 103; //#13347 + } //#13347 + $1.cws = $a(); //#13347 + $k[$j++] = Infinity; //#13350 + $k[$j++] = $f(($f($1.r - 2) * 7) + $1.mode); //#13350 + $aload($1.cws); //#13350 + $1.cws = $a(); //#13350 + $k[$j++] = 0; //#13353 + for (var _Ck = 0, _Cj = $1.dcws; _Ck <= _Cj; _Ck += 1) { //#13353 + var _Cn = $k[--$j]; //#13353 + $k[$j++] = $f(_Cn + ((_Ck + 2) * $get($1.cws, _Ck))); //#13353 + } //#13353 + $1.c1 = $k[--$j] % 107; //#13354 + $k[$j++] = 0; //#13355 + for (var _Cr = 0, _Cq = $1.dcws; _Cr <= _Cq; _Cr += 1) { //#13355 + var _Cu = $k[--$j]; //#13355 + $k[$j++] = $f(_Cu + ((_Cr + 1) * $get($1.cws, _Cr))); //#13355 + } //#13355 + $1.c2 = ($f($k[--$j] + ($1.c1 * $f($1.dcws + 2)))) % 107; //#13356 + $k[$j++] = Infinity; //#13357 + $aload($1.cws); //#13357 + $k[$j++] = $1.c1; //#13357 + $k[$j++] = $1.c2; //#13357 + $1.cws = $a(); //#13357 + $1.encs = $a(["212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "211214", "211232", "211133"]); //#13377 + $1.startencs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112"]); //#13383 + $1.stopencsodd = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411"]); //#13387 + $1.stopencseven = $a(["2122", "1411", "1132", "1231", "1114", "3112", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411", "3211", "2221"]); //#13391 + if (($1.pos == -1) || (((~~($1.pos / 10)) % 2) == 1)) { //#13395 + $1.stopencs = $1.stopencsodd; //#13393 + } else { //#13395 + $1.stopencs = $1.stopencseven; //#13395 + } //#13395 + $1.rowbits = $a($1.r); //#13399 + for (var _DE = 0, _DD = $f($1.r - 1); _DE <= _DD; _DE += 1) { //#13416 + $1.i = _DE; //#13401 + $k[$j++] = Infinity; //#13410 + $k[$j++] = 10; //#13404 + $forall($get($1.startencs, $1.i), function() { //#13404 + var _DI = $k[--$j]; //#13404 + $k[$j++] = $f(_DI - 48); //#13404 + }); //#13404 + var _DL = $geti($1.cws, $1.i * 5, 5); //#13406 + $k[$j++] = 1; //#13408 + for (var _DM = 0, _DN = _DL.length; _DM < _DN; _DM++) { //#13408 + $forall($get($1.encs, $get(_DL, _DM)), function() { //#13407 + var _DR = $k[--$j]; //#13407 + $k[$j++] = $f(_DR - 48); //#13407 + }); //#13407 + } //#13407 + $forall($get($1.stopencs, $1.i), function() { //#13409 + var _DV = $k[--$j]; //#13409 + $k[$j++] = $f(_DV - 48); //#13409 + }); //#13409 + $k[$j++] = 1; //#13410 + $1.sbs = $a(); //#13410 + $k[$j++] = Infinity; //#13412 + var _DX = $1.sbs; //#13413 + $k[$j++] = 1; //#13413 + for (var _DY = 0, _DZ = _DX.length; _DY < _DZ; _DY++) { //#13413 + var _Db = $k[--$j]; //#13413 + var _Dc = (_Db == 0) ? 1 : 0; //#13413 + $k[$j++] = _Db; //#13413 + for (var _Dd = 0, _De = $get(_DX, _DY); _Dd < _De; _Dd++) { //#13413 + $k[$j++] = _Dc //#13413 + } //#13413 + } //#13413 + $astore($a($counttomark() - 1)); //#13414 + var _Dh = $k[--$j]; //#13414 + var _Di = $k[--$j]; //#13414 + $k[$j++] = _Dh; //#13414 + $k[$j++] = _Di; //#13414 + $j--; //#13414 + var _Dj = $k[--$j]; //#13414 + var _Dk = $k[--$j]; //#13414 + $k[$j++] = _Dj; //#13414 + $k[$j++] = _Dk; //#13414 + $j--; //#13414 + $put($1.rowbits, $1.i, $k[--$j]); //#13415 + } //#13415 + $k[$j++] = Infinity; //#13427 + for (var _Dp = 0, _Dq = 81 * $1.sepheight; _Dp < _Dq; _Dp++) { //#13420 + $k[$j++] = 1; //#13420 + } //#13420 + for (var _Dt = 0, _Ds = $f($1.r - 2); _Dt <= _Ds; _Dt += 1) { //#13425 + $1.i = _Dt; //#13422 + for (var _Dv = 0, _Dw = $1.rowheight; _Dv < _Dw; _Dv++) { //#13423 + $aload($get($1.rowbits, $1.i)); //#13423 + } //#13423 + for (var _E1 = 0, _E2 = $1.sepheight; _E1 < _E2; _E1++) { //#13424 + for (var _E3 = 0, _E4 = 10; _E3 < _E4; _E3++) { //#13424 + $k[$j++] = 0; //#13424 + } //#13424 + for (var _E5 = 0, _E6 = 70; _E5 < _E6; _E5++) { //#13424 + $k[$j++] = 1; //#13424 + } //#13424 + $k[$j++] = 0; //#13424 + } //#13424 + } //#13424 + for (var _E8 = 0, _E9 = $1.rowheight; _E8 < _E9; _E8++) { //#13426 + $aload($get($1.rowbits, $f($1.r - 1))); //#13426 + } //#13426 + for (var _EE = 0, _EF = 81 * $1.sepheight; _EE < _EF; _EE++) { //#13427 + $k[$j++] = 1; //#13427 + } //#13427 + $1.pixs = $a(); //#13427 + var _EL = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", 81], + ["pixy", ~~($1.pixs.length / 81)], + ["height", (~~($1.pixs.length / 81)) / 72], + ["width", 81 / 72], + ["opt", $1.options] + ]); //#13438 + $k[$j++] = _EL; //#13441 + if (!$1.dontdraw) { //#13441 + $0.renmatrix(); //#13441 + } //#13441 }; $0.code49 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.mode = -1; - $1.pos = -1; - $1.rows = 0; - $1.rowheight = 8; - $1.sepheight = 1; - $1.parse = false; - $1.parsefnc = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.mode = ~~$1.mode; - $1.pos = ~~$1.pos; - $1.rows = ~~$1.rows; - $1.rowheight = ~~$1.rowheight; - $1.sepheight = ~~$1.sepheight; - $1.s1 = -1; - $1.s2 = -2; - $1.fn1 = -3; - $1.fn2 = -4; - $1.fn3 = -5; - $1.ns = -6; - var _F = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "FNC1", $1.fn1 ], [ "FNC2", $1.fn2 ], [ "FNC3", $1.fn3 ] ]); - $1.fncvals = _F; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _I = $k[--$j]; - $1[$k[--$j]] = _I; - $1.msglen = $1.msg.length; - $1.charmap = $a([ "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "-", ".", " ", "$", "/", "+", "%", $1.s1, $1.s2, $1.fn1, $1.fn2, $1.fn3, $1.ns ]); - $1.charvals = new Map(); - for (var _S = 0; _S <= 48; _S += 1) { - $1.i = _S; - var _V = $get($1.charmap, $1.i); - $k[$j++] = _V; - if ($eq($type(_V), "stringtype")) { - var _Y = $get($k[--$j], 0); - $k[$j++] = _Y; - } - $put($1.charvals, $k[--$j], $1.i); - } - $1.combos = $a([ "1 ", "1A", "1B", "1C", "1D", "1E", "1F", "1G", "1H", "1I", "1J", "1K", "1L", "1M", "1N", "1O", "1P", "1Q", "1R", "1S", "1T", "1U", "1V", "1W", "1X", "1Y", "1Z", "11", "12", "13", "14", "15", " ", "16", "17", "18", " $", " %", "19", "10", "1-", "1.", "1$", " +", "1/", " -", " .", " /", " 0", " 1", " 2", " 3", " 4", " 5", " 6", " 7", " 8", " 9", "1+", "21", "22", "23", "24", "25", "26", " A", " B", " C", " D", " E", " F", " G", " H", " I", " J", " K", " L", " M", " N", " O", " P", " Q", " R", " S", " T", " U", " V", " W", " X", " Y", " Z", "27", "28", "29", "20", "2-", "2.", "2A", "2B", "2C", "2D", "2E", "2F", "2G", "2H", "2I", "2J", "2K", "2L", "2M", "2N", "2O", "2P", "2Q", "2R", "2S", "2T", "2U", "2V", "2W", "2X", "2Y", "2Z", "2$", "2/", "2+", "2%", "2 " ]); - for (var _d = 0; _d <= 127; _d += 1) { - $1.i = _d; - var _g = $get($1.combos, $1.i); - $1.c1 = $get(_g, 0); - $1.c2 = $get(_g, 1); - if ($1.c1 == 49) { - $put($1.charvals, $1.i, $a([ $get($1.charvals, $1.s1), $get($1.charvals, $1.c2) ])); - } - if ($1.c1 == 50) { - $put($1.charvals, $1.i, $a([ $get($1.charvals, $1.s2), $get($1.charvals, $1.c2) ])); - } - } + var $1 = {}; //#13471 + $1.options = $k[--$j]; //#13473 + $1.barcode = $k[--$j]; //#13474 + $1.dontdraw = false; //#13476 + $1.mode = -1; //#13477 + $1.pos = -1; //#13478 + $1.rows = 0; //#13479 + $1.rowheight = 8; //#13480 + $1.sepheight = 1; //#13481 + $1.parse = false; //#13482 + $1.parsefnc = false; //#13483 + $forall($1.options, function() { //#13494 + var _3 = $k[--$j]; //#13494 + $1[$k[--$j]] = _3; //#13494 + }); //#13494 + $1.mode = ~~$1.mode; //#13496 + $1.pos = ~~$1.pos; //#13497 + $1.rows = ~~$1.rows; //#13498 + $1.rowheight = ~~$1.rowheight; //#13499 + $1.sepheight = ~~$1.sepheight; //#13500 + $1.s1 = -1; //#13503 + $1.s2 = -2; //#13503 + $1.fn1 = -3; //#13503 + $1.fn2 = -4; //#13503 + $1.fn3 = -5; //#13503 + $1.ns = -6; //#13503 + var _F = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["FNC1", $1.fn1], + ["FNC2", $1.fn2], + ["FNC3", $1.fn3] + ]); //#13509 + $1.fncvals = _F; //#13510 + $k[$j++] = 'msg'; //#13511 + $k[$j++] = $1.barcode; //#13511 + $k[$j++] = $1.fncvals; //#13511 + $0.parseinput(); //#13511 + var _I = $k[--$j]; //#13511 + $1[$k[--$j]] = _I; //#13511 + $1.msglen = $1.msg.length; //#13512 + $1.charmap = $a(["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "-", ".", " ", "$", "/", "+", "%", $1.s1, $1.s2, $1.fn1, $1.fn2, $1.fn3, $1.ns]); //#13521 + $1.charvals = new Map; //#13524 + for (var _S = 0; _S <= 48; _S += 1) { //#13530 + $1.i = _S; //#13526 + var _V = $get($1.charmap, $1.i); //#13527 + $k[$j++] = _V; //#13528 + if ($eq($type(_V), 'stringtype')) { //#13528 + var _Y = $get($k[--$j], 0); //#13528 + $k[$j++] = _Y; //#13528 + } //#13528 + $put($1.charvals, $k[--$j], $1.i); //#13529 + } //#13529 + $1.combos = $a(["1 ", "1A", "1B", "1C", "1D", "1E", "1F", "1G", "1H", "1I", "1J", "1K", "1L", "1M", "1N", "1O", "1P", "1Q", "1R", "1S", "1T", "1U", "1V", "1W", "1X", "1Y", "1Z", "11", "12", "13", "14", "15", " ", "16", "17", "18", " $", " %", "19", "10", "1-", "1.", "1$", " +", "1/", " -", " .", " /", " 0", " 1", " 2", " 3", " 4", " 5", " 6", " 7", " 8", " 9", "1+", "21", "22", "23", "24", "25", "26", " A", " B", " C", " D", " E", " F", " G", " H", " I", " J", " K", " L", " M", " N", " O", " P", " Q", " R", " S", " T", " U", " V", " W", " X", " Y", " Z", "27", "28", "29", "20", "2-", "2.", "2A", "2B", "2C", "2D", "2E", "2F", "2G", "2H", "2I", "2J", "2K", "2L", "2M", "2N", "2O", "2P", "2Q", "2R", "2S", "2T", "2U", "2V", "2W", "2X", "2Y", "2Z", "2$", "2/", "2+", "2%", "2 "]); //#13542 + for (var _d = 0; _d <= 127; _d += 1) { //#13552 + $1.i = _d; //#13544 + var _g = $get($1.combos, $1.i); //#13545 + $1.c1 = $get(_g, 0); //#13545 + $1.c2 = $get(_g, 1); //#13545 + if ($1.c1 == 49) { //#13548 + $put($1.charvals, $1.i, $a([$get($1.charvals, $1.s1), $get($1.charvals, $1.c2)])); //#13547 + } //#13547 + if ($1.c1 == 50) { //#13551 + $put($1.charvals, $1.i, $a([$get($1.charvals, $1.s2), $get($1.charvals, $1.c2)])); //#13550 + } //#13550 + } //#13550 $1.encodealpha = function() { - var _15 = $get($1.charvals, $k[--$j]); - $k[$j++] = _15; - if ($ne($type(_15), "arraytype")) { - $astore($a(1)); - } - var _18 = $k[--$j]; - $puti($1.cws, $1.j, _18); - $1.j = _18.length + $1.j; - }; + var _15 = $get($1.charvals, $k[--$j]); //#13555 + $k[$j++] = _15; //#13556 + if ($ne($type(_15), 'arraytype')) { //#13556 + $astore($a(1)); //#13556 + } //#13556 + var _18 = $k[--$j]; //#13557 + $puti($1.cws, $1.j, _18); //#13557 + $1.j = _18.length + $1.j; //#13558 + }; //#13559 $1.base48 = function() { - var _1C = $k[--$j]; - $k[$j++] = 0; - $forall(_1C, function() { - var _1D = $k[--$j]; - var _1E = $k[--$j]; - $k[$j++] = $f($f(_1D - 48) + _1E * 10); - }); - $k[$j++] = Infinity; - var _1F = $k[--$j]; - var _1G = $k[--$j]; - var _1H = $k[--$j]; - $k[$j++] = _1F; - $k[$j++] = _1G; - for (var _1I = 0, _1J = $f(_1H - 1); _1I < _1J; _1I++) { - var _1K = $k[--$j]; - $k[$j++] = _1K % 48; - $k[$j++] = ~~(_1K / 48); - } - var _1L = $a(); - $k[$j++] = Infinity; - $k[$j++] = _1L; - for (var _1O = _1N.length - 1; _1O >= 0; _1O -= 1) { - var _1P = $k[--$j]; - $k[$j++] = $get(_1P, _1O); - $k[$j++] = _1P; - } - $j--; - var _1R = $a(); - $puti($1.cws, $1.j, _1R); - $1.j = _1R.length + $1.j; - }; + var _1C = $k[--$j]; //#13562 + $k[$j++] = 0; //#13562 + $forall(_1C, function() { //#13562 + var _1D = $k[--$j]; //#13562 + var _1E = $k[--$j]; //#13562 + $k[$j++] = $f($f(_1D - 48) + (_1E * 10)); //#13562 + }); //#13562 + $k[$j++] = Infinity; //#13563 + var _1F = $k[--$j]; //#13563 + var _1G = $k[--$j]; //#13563 + var _1H = $k[--$j]; //#13563 + $k[$j++] = _1F; //#13563 + $k[$j++] = _1G; //#13563 + for (var _1I = 0, _1J = $f(_1H - 1); _1I < _1J; _1I++) { //#13563 + var _1K = $k[--$j]; //#13563 + $k[$j++] = _1K % 48; //#13563 + $k[$j++] = ~~(_1K / 48); //#13563 + } //#13563 + var _1L = $a(); //#13563 + $k[$j++] = _1L; //#13564 + $k[$j++] = Infinity; //#13564 + var _1M = $k[--$j]; //#13564 + var _1N = $k[--$j]; //#13564 + $k[$j++] = _1M; //#13564 + $k[$j++] = _1N; //#13564 + for (var _1O = _1N.length - 1; _1O >= 0; _1O -= 1) { //#13564 + var _1P = $k[--$j]; //#13564 + $k[$j++] = $get(_1P, _1O); //#13564 + $k[$j++] = _1P; //#13564 + } //#13564 + $j--; //#13564 + var _1R = $a(); //#13564 + $puti($1.cws, $1.j, _1R); //#13565 + $1.j = _1R.length + $1.j; //#13566 + }; //#13567 $1.encodenumeric = function() { - $1.nums = $k[--$j]; - var _1X = $1.nums.length; - var _1Y = _1X % 5; - $k[$j++] = "pre"; - $k[$j++] = _1X; - $k[$j++] = _1Y; - if (_1Y != 2) { - var _1Z = $k[--$j]; - var _1a = $k[--$j]; - $k[$j++] = $f(_1a - _1Z); - } else { - var _1b = $k[--$j]; - var _1c = $k[--$j]; - $k[$j++] = $f($f(_1c - _1b) - 5); - } - var _1d = $k[--$j]; - $1[$k[--$j]] = _1d; - for (var _1h = 0, _1g = $f($1.pre - 1); _1h <= _1g; _1h += 5) { - $k[$j++] = 3; - $k[$j++] = $geti($1.nums, _1h, 5); - $1.base48(); - } - $1.nums = $geti($1.nums, $1.pre, $f($1.nums.length - $1.pre)); - var _1q = $1.nums.length; - $k[$j++] = _1q; - if (_1q == 1) { - $k[$j++] = $get($1.nums, $1.i); - $1.encodealpha(); - } - var _1u = $k[--$j]; - $k[$j++] = _1u; - if (_1u == 3) { - $k[$j++] = 2; - $k[$j++] = $1.nums; - $1.base48(); - } - var _1w = $k[--$j]; - $k[$j++] = _1w; - if (_1w == 4) { - $k[$j++] = 3; - $k[$j++] = Infinity; - $k[$j++] = 49; - $k[$j++] = 48; - $aload($1.nums); - var _1y = $a(); - $k[$j++] = _1y; - $1.base48(); - } - if ($k[--$j] == 7) { - $k[$j++] = 3; - $k[$j++] = Infinity; - $k[$j++] = 49; - $k[$j++] = 48; - $aload($geti($1.nums, 0, 4)); - var _22 = $a(); - $k[$j++] = _22; - $1.base48(); - $k[$j++] = 2; - $k[$j++] = $geti($1.nums, 4, 3); - $1.base48(); - } - }; - $k[$j++] = Infinity; - for (var _26 = 0, _27 = $1.msglen; _26 < _27; _26++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numericruns = $a(); - for (var _2A = $1.msglen - 1; _2A >= 0; _2A -= 1) { - $1.i = _2A; - var _2D = $get($1.msg, $1.i); - if (_2D >= 48 && _2D <= 57) { - $put($1.numericruns, $1.i, $f($get($1.numericruns, $1.i + 1) + 1)); - } else { - $put($1.numericruns, $1.i, 0); - } - } - if ($1.mode == -1) { - for (;;) { - if ($1.pos != -1) { - $1.mode = 3; - break; - } - if ($get($1.numericruns, 0) >= 5) { - $1.mode = 2; - break; - } - var _2S = $get($1.charvals, $get($1.msg, 0)); - $k[$j++] = _2S; - if ($ne($type(_2S), "arraytype")) { - $j--; - $1.mode = 0; - break; - } - var _2W = $get($k[--$j], 0) == 43 ? 4 : 5; - $1.mode = _2W; - break; - } - } - $1.cws = $a($1.msglen * 2 + 1); - $1.method = "alpha"; - $1.i = -1; - $1.j = -1; - if ($1.mode == 0 || $1.mode == 1) { - $1.method = "alpha"; - $1.i = 0; - $1.j = 0; - } - if ($1.mode == 2) { - $1.method = "numeric"; - $1.i = 0; - $1.j = 0; - } - if ($1.mode == 3) { - $1.posval = $a([ 12, 22, 13, 23, 33, 14, 24, 34, 44, 15, 25, 35, 45, 55, 16, 26, 36, 46, 56, 66, 17, 27, 37, 47, 57, 67, 77, 18, 28, 38, 48, 58, 68, 78, 88, 19, 29, 39, 49, 59, 69, 79, 89, 99 ]); - $k[$j++] = $1.cws; - $k[$j++] = 0; - for (var _2f = 0; _2f <= 43; _2f += 1) { - $k[$j++] = _2f; - if ($get($1.posval, _2f) != $1.pos) { - $j--; - } - } - var _2j = $k[--$j]; - var _2k = $k[--$j]; - $put($k[--$j], _2k, $f(_2j + 1)); - $1.method = "alpha"; - $1.i = 0; - $1.j = 1; - } - if ($1.mode == 4 || $1.mode == 5) { - $put($1.cws, 0, $get($get($1.charvals, $get($1.msg, 0)), 1)); - $1.method = "alpha"; - $1.i = 1; - $1.j = 1; - } - for (;;) { - if ($1.i == $1.msglen) { - break; - } - for (;;) { - if ($eq($1.method, "alpha")) { - if ($get($1.numericruns, $1.i) >= 5) { - $k[$j++] = $1.ns; - $1.encodealpha(); - $1.method = "numeric"; - break; - } - $k[$j++] = $get($1.msg, $1.i); - $1.encodealpha(); - $1.i = $1.i + 1; - break; - } - if ($eq($1.method, "numeric")) { - if ($get($1.numericruns, $1.i) < 5) { - $k[$j++] = $1.ns; - $1.encodealpha(); - $1.method = "alpha"; - break; - } - $k[$j++] = $geti($1.msg, $1.i, $get($1.numericruns, $1.i)); - $1.encodenumeric(); - $1.i = $f($1.i + $get($1.numericruns, $1.i)); - break; - } - } - } - $1.cws = $geti($1.cws, 0, $1.j); - $1.metrics = $a([ $a([ 2, 9 ]), $a([ 3, 16 ]), $a([ 4, 23 ]), $a([ 5, 30 ]), $a([ 6, 37 ]), $a([ 7, 42 ]), $a([ 8, 49 ]) ]); - $1.urows = $1.rows; - $1.i = 0; - for (;;) { - $1.m = $get($1.metrics, $1.i); - $1.r = $get($1.m, 0); - $1.dcws = $get($1.m, 1); - $1.okay = true; - if ($1.urows != 0 && $1.urows != $1.r) { - $1.okay = false; - } - if ($1.cws.length > $1.dcws) { - $1.okay = false; - } - if ($1.okay) { - break; - } - $1.i = $1.i + 1; - } - $k[$j++] = Infinity; - $aload($1.cws); - for (var _3n = 0, _3o = $f($1.dcws - $1.cws.length); _3n < _3o; _3n++) { - $k[$j++] = 48; - } - $1.cws = $a(); - $1.ccs = $a($1.r * 8); - $1.j = 0; - for (var _3u = 0, _3t = $f($1.r - 2); _3u <= _3t; _3u += 1) { - $1.i = _3u; - $1.cc = $geti($1.cws, $1.j, 7); - $puti($1.ccs, $1.i * 8, $1.cc); - var _43 = $1.cc; - $k[$j++] = $1.ccs; - $k[$j++] = $1.i * 8 + 7; - $k[$j++] = 0; - for (var _44 = 0, _45 = _43.length; _44 < _45; _44++) { - var _47 = $k[--$j]; - $k[$j++] = $f(_47 + $get(_43, _44)); - } - var _48 = $k[--$j]; - var _49 = $k[--$j]; - $put($k[--$j], _49, _48 % 49); - $1.j = $1.j + 7; - } - if ($1.j < $1.dcws) { - $puti($1.ccs, $1.ccs.length - 8, $geti($1.cws, $1.j, $f($1.dcws - $1.j))); - } - $1.cr7 = $f($f($1.r - 2) * 7 + $1.mode); - $put($1.ccs, $1.ccs.length - 2, $1.cr7); - var _4Q = $a([ 1, 9, 31, 26, 2, 12, 17, 23, 37, 18, 22, 6, 27, 44, 15, 43, 39, 11, 13, 5, 41, 33, 36, 8, 4, 32, 3, 19, 40, 25, 29, 10, 24, 30 ]); - $k[$j++] = _4Q; - $k[$j++] = _4Q; - $k[$j++] = Infinity; - var _4R = $k[--$j]; - var _4T = $geti($k[--$j], 0, 32); - $k[$j++] = _4R; - $k[$j++] = 20; - $aload(_4T); - $1.weightx = $a(); - var _4V = $k[--$j]; - $k[$j++] = _4V; - $k[$j++] = _4V; - $k[$j++] = Infinity; - var _4W = $k[--$j]; - var _4Y = $geti($k[--$j], 1, 32); - $k[$j++] = _4W; - $k[$j++] = 16; - $aload(_4Y); - $1.weighty = $a(); - $k[$j++] = Infinity; - var _4a = $k[--$j]; - var _4c = $geti($k[--$j], 2, 32); - $k[$j++] = _4a; - $k[$j++] = 38; - $aload(_4c); - $1.weightz = $a(); + $1.nums = $k[--$j]; //#13570 + var _1X = $1.nums.length; //#13571 + var _1Y = _1X % 5; //#13571 + $k[$j++] = 'pre'; //#13571 + $k[$j++] = _1X; //#13571 + $k[$j++] = _1Y; //#13571 + if (_1Y != 2) { //#13571 + var _1Z = $k[--$j]; //#13571 + var _1a = $k[--$j]; //#13571 + $k[$j++] = $f(_1a - _1Z); //#13571 + } else { //#13571 + var _1b = $k[--$j]; //#13571 + var _1c = $k[--$j]; //#13571 + $k[$j++] = $f($f(_1c - _1b) - 5); //#13571 + } //#13571 + var _1d = $k[--$j]; //#13571 + $1[$k[--$j]] = _1d; //#13571 + for (var _1h = 0, _1g = $f($1.pre - 1); _1h <= _1g; _1h += 5) { //#13572 + $k[$j++] = 3; //#13572 + $k[$j++] = $geti($1.nums, _1h, 5); //#13572 + $1.base48(); //#13572 + } //#13572 + $1.nums = $geti($1.nums, $1.pre, $f($1.nums.length - $1.pre)); //#13573 + var _1q = $1.nums.length; //#13575 + $k[$j++] = _1q; //#13575 + if (_1q == 1) { //#13575 + $k[$j++] = $get($1.nums, $1.i); //#13575 + $1.encodealpha(); //#13575 + } //#13575 + var _1u = $k[--$j]; //#13576 + $k[$j++] = _1u; //#13576 + if (_1u == 3) { //#13576 + $k[$j++] = 2; //#13576 + $k[$j++] = $1.nums; //#13576 + $1.base48(); //#13576 + } //#13576 + var _1w = $k[--$j]; //#13577 + $k[$j++] = _1w; //#13577 + if (_1w == 4) { //#13577 + $k[$j++] = 3; //#13577 + $k[$j++] = Infinity; //#13577 + $k[$j++] = 49; //#13577 + $k[$j++] = 48; //#13577 + $aload($1.nums); //#13577 + var _1y = $a(); //#13577 + $k[$j++] = _1y; //#13577 + $1.base48(); //#13577 + } //#13577 + if ($k[--$j] == 7) { //#13581 + $k[$j++] = 3; //#13579 + $k[$j++] = Infinity; //#13579 + $k[$j++] = 49; //#13579 + $k[$j++] = 48; //#13579 + $aload($geti($1.nums, 0, 4)); //#13579 + var _22 = $a(); //#13579 + $k[$j++] = _22; //#13579 + $1.base48(); //#13579 + $k[$j++] = 2; //#13580 + $k[$j++] = $geti($1.nums, 4, 3); //#13580 + $1.base48(); //#13580 + } //#13580 + }; //#13582 + $k[$j++] = Infinity; //#13585 + for (var _26 = 0, _27 = $1.msglen; _26 < _27; _26++) { //#13585 + $k[$j++] = 0; //#13585 + } //#13585 + $k[$j++] = 0; //#13585 + $1.numericruns = $a(); //#13585 + for (var _2A = $1.msglen - 1; _2A >= 0; _2A -= 1) { //#13594 + $1.i = _2A; //#13587 + var _2D = $get($1.msg, $1.i); //#13588 + if ((_2D >= 48) && (_2D <= 57)) { //#13592 + $put($1.numericruns, $1.i, $f($get($1.numericruns, $1.i + 1) + 1)); //#13590 + } else { //#13592 + $put($1.numericruns, $1.i, 0); //#13592 + } //#13592 + } //#13592 + if ($1.mode == -1) { //#13606 + for (;;) { //#13605 + if ($1.pos != -1) { //#13599 + $1.mode = 3; //#13599 + break; //#13599 + } //#13599 + if ($get($1.numericruns, 0) >= 5) { //#13600 + $1.mode = 2; //#13600 + break; //#13600 + } //#13600 + var _2S = $get($1.charvals, $get($1.msg, 0)); //#13601 + $k[$j++] = _2S; //#13602 + if ($ne($type(_2S), 'arraytype')) { //#13602 + $j--; //#13602 + $1.mode = 0; //#13602 + break; //#13602 + } //#13602 + var _2W = ($get($k[--$j], 0) == 43) ? 4 : 5; //#13603 + $1.mode = _2W; //#13603 + break; //#13604 + } //#13604 + } //#13604 + $1.cws = $a(($1.msglen * 2) + 1); //#13608 + $1.method = "alpha"; //#13609 + $1.i = -1; //#13609 + $1.j = -1; //#13609 + if (($1.mode == 0) || ($1.mode == 1)) { //#13612 + $1.method = "alpha"; //#13612 + $1.i = 0; //#13612 + $1.j = 0; //#13612 + } //#13612 + if ($1.mode == 2) { //#13613 + $1.method = "numeric"; //#13613 + $1.i = 0; //#13613 + $1.j = 0; //#13613 + } //#13613 + if ($1.mode == 3) { //#13627 + $1.posval = $a([12, 22, 13, 23, 33, 14, 24, 34, 44, 15, 25, 35, 45, 55, 16, 26, 36, 46, 56, 66, 17, 27, 37, 47, 57, 67, 77, 18, 28, 38, 48, 58, 68, 78, 88, 19, 29, 39, 49, 59, 69, 79, 89, 99]); //#13624 + $k[$j++] = $1.cws; //#13625 + $k[$j++] = 0; //#13625 + for (var _2f = 0; _2f <= 43; _2f += 1) { //#13625 + $k[$j++] = _2f; //#13625 + if ($get($1.posval, _2f) != $1.pos) { //#13625 + $j--; //#13625 + } //#13625 + } //#13625 + var _2j = $k[--$j]; //#13625 + var _2k = $k[--$j]; //#13625 + $put($k[--$j], _2k, $f(_2j + 1)); //#13625 + $1.method = "alpha"; //#13626 + $1.i = 0; //#13626 + $1.j = 1; //#13626 + } //#13626 + if (($1.mode == 4) || ($1.mode == 5)) { //#13631 + $put($1.cws, 0, $get($get($1.charvals, $get($1.msg, 0)), 1)); //#13629 + $1.method = "alpha"; //#13630 + $1.i = 1; //#13630 + $1.j = 1; //#13630 + } //#13630 + for (;;) { //#13658 + if ($1.i == $1.msglen) { //#13635 + break; //#13635 + } //#13635 + for (;;) { //#13657 + if ($eq($1.method, "alpha")) { //#13646 + if ($get($1.numericruns, $1.i) >= 5) { //#13642 + $k[$j++] = $1.ns; //#13639 + $1.encodealpha(); //#13639 + $1.method = "numeric"; //#13640 + break; //#13641 + } //#13641 + $k[$j++] = $get($1.msg, $1.i); //#13643 + $1.encodealpha(); //#13643 + $1.i = $1.i + 1; //#13644 + break; //#13645 + } //#13645 + if ($eq($1.method, "numeric")) { //#13656 + if ($get($1.numericruns, $1.i) < 5) { //#13652 + $k[$j++] = $1.ns; //#13649 + $1.encodealpha(); //#13649 + $1.method = "alpha"; //#13650 + break; //#13651 + } //#13651 + $k[$j++] = $geti($1.msg, $1.i, $get($1.numericruns, $1.i)); //#13653 + $1.encodenumeric(); //#13653 + $1.i = $f($1.i + $get($1.numericruns, $1.i)); //#13654 + break; //#13655 + } //#13655 + } //#13655 + } //#13655 + $1.cws = $geti($1.cws, 0, $1.j); //#13659 + $1.metrics = $a([$a([2, 9]), $a([3, 16]), $a([4, 23]), $a([5, 30]), $a([6, 37]), $a([7, 42]), $a([8, 49])]); //#13671 + $1.urows = $1.rows; //#13674 + $1.i = 0; //#13675 + for (;;) { //#13685 + $1.m = $get($1.metrics, $1.i); //#13677 + $1.r = $get($1.m, 0); //#13678 + $1.dcws = $get($1.m, 1); //#13679 + $1.okay = true; //#13680 + if (($1.urows != 0) && ($1.urows != $1.r)) { //#13681 + $1.okay = false; //#13681 + } //#13681 + if ($1.cws.length > $1.dcws) { //#13682 + $1.okay = false; //#13682 + } //#13682 + if ($1.okay) { //#13683 + break; //#13683 + } //#13683 + $1.i = $1.i + 1; //#13684 + } //#13684 + $k[$j++] = Infinity; //#13688 + $aload($1.cws); //#13688 + for (var _3n = 0, _3o = $f($1.dcws - $1.cws.length); _3n < _3o; _3n++) { //#13688 + $k[$j++] = 48; //#13688 + } //#13688 + $1.cws = $a(); //#13688 + $1.ccs = $a($1.r * 8); //#13691 + $1.j = 0; //#13692 + for (var _3u = 0, _3t = $f($1.r - 2); _3u <= _3t; _3u += 1) { //#13699 + $1.i = _3u; //#13694 + $1.cc = $geti($1.cws, $1.j, 7); //#13695 + $puti($1.ccs, $1.i * 8, $1.cc); //#13696 + var _43 = $1.cc; //#13697 + $k[$j++] = $1.ccs; //#13697 + $k[$j++] = ($1.i * 8) + 7; //#13697 + $k[$j++] = 0; //#13697 + for (var _44 = 0, _45 = _43.length; _44 < _45; _44++) { //#13697 + var _47 = $k[--$j]; //#13697 + $k[$j++] = $f(_47 + $get(_43, _44)); //#13697 + } //#13697 + var _48 = $k[--$j]; //#13697 + var _49 = $k[--$j]; //#13697 + $put($k[--$j], _49, _48 % 49); //#13697 + $1.j = $1.j + 7; //#13698 + } //#13698 + if ($1.j < $1.dcws) { //#13702 + $puti($1.ccs, $1.ccs.length - 8, $geti($1.cws, $1.j, $f($1.dcws - $1.j))); //#13701 + } //#13701 + $1.cr7 = $f(($f($1.r - 2) * 7) + $1.mode); //#13705 + $put($1.ccs, $1.ccs.length - 2, $1.cr7); //#13706 + var _4Q = $a([1, 9, 31, 26, 2, 12, 17, 23, 37, 18, 22, 6, 27, 44, 15, 43, 39, 11, 13, 5, 41, 33, 36, 8, 4, 32, 3, 19, 40, 25, 29, 10, 24, 30]); //#13710 + $k[$j++] = _4Q; //#13711 + $k[$j++] = _4Q; //#13711 + $k[$j++] = Infinity; //#13711 + var _4R = $k[--$j]; //#13711 + var _4T = $geti($k[--$j], 0, 32); //#13711 + $k[$j++] = _4R; //#13711 + $k[$j++] = 20; //#13711 + $aload(_4T); //#13711 + $1.weightx = $a(); //#13711 + var _4V = $k[--$j]; //#13712 + $k[$j++] = _4V; //#13712 + $k[$j++] = _4V; //#13712 + $k[$j++] = Infinity; //#13712 + var _4W = $k[--$j]; //#13712 + var _4Y = $geti($k[--$j], 1, 32); //#13712 + $k[$j++] = _4W; //#13712 + $k[$j++] = 16; //#13712 + $aload(_4Y); //#13712 + $1.weighty = $a(); //#13712 + $k[$j++] = Infinity; //#13713 + var _4a = $k[--$j]; //#13713 + var _4c = $geti($k[--$j], 2, 32); //#13713 + $k[$j++] = _4a; //#13713 + $k[$j++] = 38; //#13713 + $aload(_4c); //#13713 + $1.weightz = $a(); //#13713 $1.calccheck = function() { - $1.weights = $k[--$j]; - $1.score = 0; - for (var _4h = 0, _4g = ~~($f($1.r - 1) * 8 / 2) - 1; _4h <= _4g; _4h += 1) { - $1.i = _4h; - $1.score = $f($f($get($1.ccs, $1.i * 2) * 49 + $get($1.ccs, $1.i * 2 + 1)) * $get($1.weights, $1.i + 1) + $1.score); - } - $k[$j++] = $1.score; - }; - $1.lastrow = $geti($1.ccs, $1.ccs.length - 8, 8); - if ($1.r >= 7) { - $k[$j++] = $1.cr7 * $get($1.weightz, 0); - $k[$j++] = $1.weightz; - $1.calccheck(); - var _51 = $k[--$j]; - var _53 = $f($k[--$j] + _51) % 2401; - $k[$j++] = ~~(_53 / 49); - $k[$j++] = _53 % 49; - $astore($a(2)); - $puti($1.lastrow, 0, $k[--$j]); - } - $1.wr1 = $f($get($1.lastrow, 0) * 49 + $get($1.lastrow, 1)); - $k[$j++] = $1.cr7 * $get($1.weighty, 0); - $k[$j++] = $1.weighty; - $1.calccheck(); - var _5F = $k[--$j]; - var _5L = $f($f($k[--$j] + _5F) + $1.wr1 * $get($1.weighty, $f($1.r * 4 - 3))) % 2401; - $1.wr2 = _5L; - $k[$j++] = ~~(_5L / 49); - $k[$j++] = _5L % 49; - $astore($a(2)); - $puti($1.lastrow, 2, $k[--$j]); - $k[$j++] = $1.cr7 * $get($1.weightx, 0); - $k[$j++] = $1.weightx; - $1.calccheck(); - var _5T = $k[--$j]; - var _5d = $f($f($f($k[--$j] + _5T) + $1.wr1 * $get($1.weightx, $f($1.r * 4 - 3))) + $1.wr2 * $get($1.weightx, $f($1.r * 4 - 2))) % 2401; - $k[$j++] = ~~(_5d / 49); - $k[$j++] = _5d % 49; - $astore($a(2)); - $puti($1.lastrow, 4, $k[--$j]); - var _5j = $geti($1.ccs, $1.ccs.length - 8, 7); - $k[$j++] = 0; - for (var _5k = 0, _5l = _5j.length; _5k < _5l; _5k++) { - var _5n = $k[--$j]; - $k[$j++] = $f(_5n + $get(_5j, _5k)); - } - $put($1.ccs, $1.ccs.length - 1, $k[--$j] % 49); - $1.patterns = $a([ $a([ "11521132", "25112131", "14212132", "25121221", "14221222", "12412132", "23321221", "12421222", "21521221", "15112222", "15121312", "13312222", "24221311", "13321312", "11512222", "22421311", "11521312", "25112311", "14212312", "23312311", "12412312", "21512311", "16121131", "14321131", "12521131", "15212131", "15221221", "13412131", "13421221", "11612131", "16112221", "16121311", "14312221", "14321311", "12512221", "12521311", "15212311", "13412311", "11612311", "11131135", "31131133", "51131131", "21122134", "41122132", "21131224", "41131222", "11113135", "31113133", "51113131", "11122225", "31122223", "51122221", "11131315", "31131313", "51131311", "21113224", "41113222", "21122314", "41122312", "11113315", "31113313", "51113311", "12131134", "32131132", "21231133", "41231131", "22122133", "42122131", "11222134", "22131223", "42131221", "11231224", "31231222", "12113134", "32113132", "12122224", "32122222", "12131314", "32131312", "21231313", "41231311", "22113223", "42113221", "11213224", "22122313", "42122311", "11222314", "31222312", "12113314", "32113312", "21213313", "41213311", "13131133", "33131131", "22231132", "11331133", "31331131", "23122132", "12222133", "23131222", "12231223", "32231221", "21331222", "13113133", "33113131", "13122223", "33122221", "11313133", "13131313", "33131311", "11322223", "22231312", "11331313", "31331311", "23113222", "12213223", "23122312", "12222313", "32222311", "21322312", "13113313", "33113311", "22213312", "11313313", "31313311", "14131132", "23231131", "12331132", "21431131", "24122131", "13222132", "24131221", "13231222", "11422132", "22331221", "11431222", "14113132", "14122222", "12313132", "14131312", "12322222", "23231311", "12331312", "21431311", "24113221", "13213222", "24122311", "13222312", "11413222", "22322311", "11422312", "14113312", "23213311", "12313312", "21413311", "15131131", "13331131", "14222131", "14231221", "12422131", "12431221", "15113131", "15122221", "13313131", "15131311", "13322221", "11513131", "13331311", "11522221", "14213221", "14222311", "12413221", "12422311", "15113311", "13313311", "11513311", "11141134", "31141132", "21132133", "41132131", "21141223", "41141221", "11123134", "31123132", "11132224", "31132222", "11141314", "31141312", "21114133", "41114131", "21123223", "41123221", "21132313", "41132311", "11114224", "31114222", "11123314", "31123312", "21114313", "41114311", "12141133", "32141131", "21241132", "22132132", "11232133", "22141222", "11241223", "31241221", "12123133", "32123131", "12132223", "32132221", "12141313", "32141311", "21241312", "22114132", "11214133", "22123222", "11223223", "22132312", "11232313", "31232311", "12114223", "32114221", "12123313", "32123311", "21223312", "22114312", "11214313", "31214311", "13141132", "22241131", "11341132", "23132131", "12232132", "23141221", "12241222", "21341221", "13123132", "13132222", "11323132", "13141312", "11332222", "22241311", "11341312", "23114131", "12214132", "23123221", "12223222", "23132311", "12232312", "21332311", "13114222", "13123312", "11314222", "22223311", "11323312", "23114311", "12214312", "21314311", "14141131", "12341131", "13232131", "13241221", "11432131", "14123131", "14132221", "12323131", "14141311", "12332221", "12341311", "13214131", "13223221", "11414131", "13232311", "11423221", "11432311", "14114221", "14123311", "12314221", "12323311", "13214311", "11414311", "11151133", "31151131", "21142132", "21151222", "11133133", "31133131", "11142223", "31142221", "11151313", "31151311", "21124132", "21133222", "21142312", "11115133", "31115131", "11124223", "31124221", "11133313", "31133311", "21115222", "21124312", "12151132", "21251131", "22142131", "11242132", "22151221", "11251222", "12133132", "12142222", "12151312", "21251311", "22124131", "11224132", "22133221", "11233222", "22142311", "11242312", "12115132", "12124222", "12133312", "21233311", "22115221", "11215222", "22124311", "11224312", "13151131", "12242131", "12251221", "13133131", "13142221", "11333131", "13151311", "11342221", "12224131", "12233221", "12242311", "13115131", "13124221", "11315131", "13133311", "11324221", "11333311", "12215221", "12224311", "11161132", "21152131", "21161221", "11143132", "11152222", "11161312", "21134131", "21143221", "21152311", "11125132", "11134222", "11143312", "21116131", "21125221", "21134311", "12161131", "11252131", "12143131", "12152221", "12161311", "11234131", "11243221", "11252311", "12125131", "12134221", "12143311", "11216131", "11225221", "11234311", "11111236", "31111234", "51111232", "21111325", "41111323", "61111321", "11111416", "31111414", "51111412", "31211143", "51211141", "12111235", "32111233", "52111231", "21211234", "41211232", "22111324", "42111322", "11211325", "31211323", "51211321", "12111415", "32111413", "52111411", "21211414", "41211412", "12211144", "32211142", "21311143", "41311141", "13111234", "33111232", "22211233", "42211231", "11311234", "31311232", "23111323", "43111321", "12211324", "32211322", "21311323", "41311321", "13111414", "33111412", "22211413", "42211411", "11311414", "31311412", "13211143", "33211141", "22311142", "11411143", "31411141", "14111233", "34111231", "23211232", "12311233", "32311231", "21411232", "24111322", "13211323", "33211321", "22311322", "11411323", "31411321", "14111413", "34111411", "23211412", "12311413", "32311411", "21411412", "14211142", "23311141", "12411142", "21511141", "15111232", "24211231", "13311232", "22411231", "11511232", "25111321", "14211322", "23311321", "12411322", "21511321", "15111412", "24211411", "13311412", "22411411", "11511412", "15211141", "13411141", "11611141", "16111231", "14311231", "12511231", "15211321", "13411321", "11611321", "16111411", "14311411", "12511411", "21121144", "41121142", "11112145", "31112143", "51112141", "11121235", "31121233", "51121231", "21112234", "41112232", "21121324", "41121322", "11112325", "31112323", "51112321", "11121415", "31121413", "51121411", "21112414", "41112412", "22121143", "42121141", "11221144", "31221142", "12112144", "32112142", "12121234", "32121232", "21221233", "41221231", "22112233", "42112231", "11212234", "22121323", "42121321", "11221324", "31221322", "12112324", "32112322", "12121414", "32121412", "21221413", "41221411", "22112413", "42112411", "11212414", "31212412", "23121142", "12221143", "32221141", "21321142", "13112143", "33112141", "13121233", "33121231", "11312143", "22221232", "11321233", "31321231", "23112232", "12212233", "23121322", "12221323", "32221321", "21321322", "13112323", "33112321", "13121413", "33121411", "11312323", "22221412", "11321413", "31321411", "23112412", "12212413", "32212411", "21312412", "24121141", "13221142", "22321141", "11421142", "14112142", "14121232", "12312142", "23221231", "12321232", "21421231", "24112231", "13212232", "24121321", "13221322", "11412232", "22321321", "11421322", "14112322", "14121412", "12312322", "23221411", "12321412", "21421411", "24112411", "13212412", "22312411", "11412412", "14221141", "12421141", "15112141", "15121231", "13312141", "13321231", "11512141", "11521231", "14212231", "14221321", "12412231", "12421321", "15112321", "15121411", "13312321", "13321411", "11512321", "11521411", "14212411", "12412411", "21131143", "41131141", "11122144", "31122142", "11131234", "31131232", "21113143", "41113141", "21122233", "41122231", "21131323", "41131321", "11113234", "31113232", "11122324", "31122322", "11131414", "31131412", "21113323", "41113321", "21122413", "41122411", "11113414", "31113412", "22131142", "11231143", "31231141", "12122143", "32122141", "12131233", "32131231", "21231232", "22113142", "11213143", "22122232", "11222233", "22131322", "11231323", "31231321", "12113233", "32113231", "12122323", "32122321", "12131413", "32131411", "21231412", "22113322", "11213323", "22122412", "11222413", "31222411", "12113413", "32113411", "21213412", "23131141", "12231142", "21331141", "13122142", "13131232", "11322142", "22231231", "11331232", "23113141", "12213142", "23122231", "12222232", "23131321", "12231322", "21331321", "13113232", "13122322", "11313232", "13131412", "11322322", "22231411", "11331412", "23113321", "12213322", "23122411", "12222412", "21322411", "13113412", "22213411", "11313412", "13231141", "11431141", "14122141", "14131231", "12322141", "12331231", "13213141", "13222231", "11413141", "13231321", "11422231", "11431321", "14113231", "14122321", "12313231", "14131411", "12322321", "12331411", "13213321", "13222411", "11413321", "11422411", "14113411", "12313411", "21141142", "11132143", "31132141", "11141233", "31141231", "21123142", "21132232", "21141322", "11114143", "31114141", "11123233", "31123231", "11132323", "31132321", "11141413", "31141411", "21114232", "21123322", "21132412", "11114323", "31114321", "11123413", "31123411", "22141141", "11241142", "12132142", "12141232", "21241231", "22123141", "11223142", "22132231", "11232232", "22141321", "11241322", "12114142", "12123232", "12132322", "12141412", "21241411", "22114231", "11214232", "22123321", "11223322", "22132411", "11232412", "12114322", "12123412", "21223411", "12241141", "13132141", "13141231", "11332141", "11341231", "12223141", "12232231", "12241321", "13114141", "13123231", "11314141", "13132321", "11323231", "13141411", "11332321", "11341411", "12214231", "12223321", "12232411", "13114321", "13123411", "11314321", "11323411", "21151141", "11142142", "11151232", "21133141", "21142231", "21151321", "11124142", "11133232", "11142322", "11151412", "21115141", "21124231", "21133321", "21142411", "11115232", "11124322", "11133412", "11251141", "12142141", "12151231", "11233141", "11242231", "11251321", "12124141", "12133231", "12142321", "12151411", "11215141", "11224231", "11233321", "11242411", "12115231", "12124321", "12133411", "11152141", "11161231", "11134141", "11143231", "11152321", "11161411", "11116141", "11125231", "11134321", "11143411", "21111244", "41111242", "11111335", "31111333", "51111331", "21111424", "41111422", "11111515", "31111513", "51111511", "21211153", "41211151", "22111243", "42111241", "11211244", "31211242", "12111334", "32111332", "21211333", "41211331", "22111423", "42111421", "11211424", "31211422", "12111514", "32111512", "21211513", "41211511", "22211152", "11311153", "31311151", "23111242", "12211243", "32211241", "21311242", "13111333", "33111331", "22211332", "11311333", "31311331", "23111422", "12211423", "32211421", "21311422", "13111513", "33111511", "22211512", "11311513", "31311511", "23211151", "12311152", "21411151", "24111241", "13211242", "22311241", "11411242", "14111332", "23211331", "12311332", "21411331", "24111421", "13211422", "22311421", "11411422", "14111512", "23211511", "12311512", "21411511", "13311151", "11511151", "14211241", "12411241", "15111331", "13311331", "11511331", "14211421", "12411421", "15111511", "13311511", "11511511", "31121152", "21112153", "41112151", "21121243", "41121241", "11112244", "31112242", "11121334", "31121332", "21112333", "41112331", "21121423", "41121421", "11112424", "31112422", "11121514", "31121512", "21112513", "41112511", "12121153", "32121151", "21221152", "22112152", "11212153", "22121242", "11221243", "31221241", "12112243", "32112241", "12121333", "32121331", "21221332", "22112332", "11212333", "22121422", "11221423", "31221421", "12112423", "32112421", "12121513", "32121511", "21221512", "22112512", "11212513", "31212511", "13121152", "22221151", "11321152", "23112151", "12212152", "23121241", "12221242", "21321241", "13112242", "13121332", "11312242", "22221331", "11321332", "23112331", "12212332", "23121421", "12221422", "21321421", "13112422", "13121512", "11312422", "22221511", "11321512", "23112511", "12212512", "21312511", "14121151", "12321151", "13212151", "13221241", "11412151", "11421241", "14112241", "14121331", "12312241", "12321331", "13212331", "13221421", "11412331", "11421421", "14112421", "14121511", "12312421", "12321511", "13212511", "11412511", "11131153", "31131151", "21122152", "21131242", "11113153", "31113151", "11122243", "31122241", "11131333", "31131331", "21113242", "21122332", "21131422", "11113333", "31113331", "11122423", "31122421", "11131513", "31131511", "21113422", "21122512", "12131152", "21231151", "22122151", "11222152", "22131241", "11231242", "12113152", "12122242", "12131332", "21231331", "22113241", "11213242", "22122331", "11222332", "22131421", "11231422", "12113332", "12122422", "12131512", "21231511", "22113421", "11213422", "22122511", "11222512", "13131151", "11331151", "12222151", "12231241", "13113151", "13122241", "11313151", "13131331", "11322241", "11331331", "12213241", "12222331", "12231421", "13113331", "13122421", "11313331", "13131511", "11322421", "11331511", "12213421", "12222511", "11141152", "21132151", "21141241", "11123152", "11132242", "11141332", "21114151", "21123241", "21132331", "21141421", "11114242", "11123332", "11132422", "11141512", "21114331", "21123421", "21132511", "12141151", "11232151", "11241241", "12123151", "12132241", "12141331", "11214151", "11223241", "11232331", "11241421", "12114241", "12123331", "12132421", "12141511", "11214331", "11223421", "11232511", "11151151", "11133151", "11142241", "11151331", "11115151", "11124241", "11133331", "11142421", "11151511", "11111254", "31111252", "21111343", "41111341", "11111434", "31111432", "21111523", "41111521", "11111614", "31111612", "31211161", "12111253", "32111251", "21211252", "22111342", "11211343", "31211341", "12111433", "32111431", "21211432", "22111522", "11211523", "31211521", "12111613", "32111611", "21211612", "12211162", "21311161", "13111252", "22211251", "11311252", "23111341", "12211342", "21311341", "13111432", "22211431", "11311432", "23111521", "12211522", "21311521", "13111612", "22211611", "11311612", "13211161", "11411161", "14111251", "12311251", "13211341", "11411341", "14111431", "12311431", "13211521", "11411521", "14111611", "12311611", "21121162", "11112163", "31112161", "11121253", "31121251", "21112252", "21121342", "11112343", "31112341", "11121433", "31121431", "21112432", "21121522", "11112523", "31112521", "11121613", "31121611", "22121161", "11221162", "12112162", "12121252", "21221251", "22112251", "11212252", "22121341", "11221342", "12112342", "12121432", "21221431", "22112431", "11212432", "22121521", "11221522", "12112522", "12121612", "21221611", "12221161", "13112161", "13121251", "11312161", "11321251", "32121115", "52121113", "21221116", "41221114", "61221112", "22112116", "42112114", "31212115", "51212113", "13121116", "33121114", "22221115", "42221113", "11321116", "31321114", "51321112", "23112115", "43112113", "12212116", "32212114", "52212112", "21312115", "41312113", "61312111", "14121115", "34121113", "23221114", "43221112", "12321115", "32321113", "52321111", "21421114", "41421112", "24112114", "13212115", "33212113", "22312114", "42312112", "11412115", "31412113", "51412111", "15121114", "24221113", "13321114", "33321112", "22421113", "42421111", "11521114", "31521112", "25112113", "14212114", "34212112", "23312113", "43312111", "12412114", "32412112", "21512113", "41512111", "16121113", "25221112", "14321113", "34321111", "23421112", "12521113", "32521111", "15212113", "24312112", "13412113", "33412111", "22512112", "11612113", "31612111", "31131115", "51131113", "21122116", "41122114", "61122112", "31113115", "51113113", "12131116", "32131114", "52131112", "21231115", "41231113", "61231111", "22122115", "42122113", "11222116", "31222114", "51222112", "12113116", "32113114", "52113112", "21213115", "41213113", "61213111", "13131115", "33131113", "22231114", "42231112", "11331115", "31331113", "51331111", "23122114", "43122112", "12222115", "32222113", "52222111", "21322114", "41322112", "13113115", "33113113", "22213114", "42213112", "11313115", "31313113", "51313111", "14131114", "34131112", "23231113", "43231111", "12331114", "32331112", "21431113", "41431111", "24122113", "13222114", "33222112", "22322113", "42322111", "11422114", "31422112", "14113114", "34113112", "23213113", "43213111", "12313114", "32313112", "21413113", "41413111", "15131113", "24231112", "13331113", "33331111", "22431112", "25122112", "14222113", "34222111", "23322112", "12422113", "32422111", "21522112", "15113113", "24213112", "13313113", "33313111", "22413112", "11513113", "31513111", "16131112", "25231111", "14331112", "23431111", "15222112", "24322111", "13422112", "22522111", "16113112", "25213111", "14313112", "23413111", "12513112", "21613111", "11141116", "31141114", "51141112", "21132115", "41132113", "61132111", "11123116", "31123114", "51123112", "21114115", "41114113", "61114111", "12141115", "32141113", "52141111", "21241114", "41241112", "22132114", "42132112", "11232115", "31232113", "51232111", "12123115", "32123113", "52123111", "21223114", "41223112", "22114114", "42114112", "11214115", "31214113", "51214111", "13141114", "33141112", "22241113", "42241111", "11341114", "31341112", "23132113", "43132111", "12232114", "32232112", "21332113", "41332111", "13123114", "33123112", "22223113", "42223111", "11323114", "31323112", "23114113", "43114111", "12214114", "32214112", "21314113", "41314111", "14141113", "34141111", "23241112", "12341113", "32341111", "24132112", "13232113", "33232111", "22332112", "11432113", "31432111", "14123113", "34123111", "23223112", "12323113", "32323111", "21423112", "24114112", "13214113", "33214111", "22314112", "11414113", "31414111", "15141112", "24241111", "13341112", "25132111", "14232112", "23332111", "12432112", "15123112", "24223111", "13323112", "22423111", "11523112", "25114111", "14214112", "23314111", "12414112", "21514111", "16141111", "14341111", "15232111", "13432111", "16123111", "14323111", "12523111", "15214111", "13414111", "11614111", "11151115", "31151113", "51151111", "21142114", "41142112", "11133115", "31133113", "51133111", "21124114", "41124112", "11115115", "31115113", "51115111", "12151114", "32151112", "21251113", "41251111", "22142113", "42142111", "11242114", "31242112", "12133114", "32133112", "21233113", "41233111", "22124113", "42124111", "11224114", "31224112", "12115114", "32115112", "21215113", "41215111", "13151113", "33151111", "22251112", "23142112", "12242113", "32242111", "21342112", "13133113", "33133111", "22233112", "11333113", "31333111", "23124112", "12224113", "32224111", "21324112", "13115113", "33115111", "22215112", "11315113", "31315111", "14151112", "23251111", "24142111", "13242112", "22342111", "14133112", "23233111", "12333112", "21433111", "24124111", "13224112", "22324111", "11424112", "14115112", "23215111", "12315112", "21415111", "15151111", "14242111", "15133111", "13333111", "14224111", "12424111", "15115111", "13315111", "11515111", "11161114", "31161112", "21152113", "41152111", "11143114", "31143112", "21134113", "41134111", "11125114", "31125112", "21116113", "41116111", "12161113", "32161111", "22152112", "11252113", "31252111", "12143113", "32143111", "21243112", "22134112", "11234113", "31234111", "12125113", "32125111", "21225112", "22116112", "11216113", "31216111", "13161112", "23152111", "12252112", "13143112", "22243111", "11343112", "23134111", "12234112", "21334111", "13125112", "22225111", "11325112", "23116111", "12216112", "21316111", "14161111", "13252111", "14143111", "12343111", "13234111", "11434111", "14125111", "12325111", "13216111", "11416111", "31111216", "51111214", "31211125", "51211123", "32111215", "52111213", "21211216", "41211214", "61211212", "12211126", "32211124", "52211122", "21311125", "41311123", "61311121", "13111216", "33111214", "22211215", "42211213", "11311216", "31311214", "51311212", "13211125", "33211123", "22311124", "42311122", "11411125", "31411123", "51411121", "14111215", "34111213", "23211214", "43211212", "12311215", "32311213", "52311211", "21411214", "41411212", "14211124", "34211122", "23311123", "43311121", "12411124", "32411122", "21511123", "41511121", "15111214", "24211213", "13311214", "33311212", "22411213", "42411211", "11511214", "31511212", "15211123", "24311122", "13411123", "33411121", "22511122", "11611123", "31611121", "16111213", "25211212", "14311213", "34311211", "23411212", "12511213", "32511211", "21611212", "21121126", "41121124", "61121122", "31112125", "51112123", "31121215", "51121213", "21112216", "41112214", "61112212", "22121125", "42121123", "11221126", "31221124", "51221122", "12112126", "32112124", "52112122", "12121216", "32121214", "52121212", "21221215", "41221213", "61221211", "22112215", "42112213", "11212216", "31212214", "51212212", "23121124", "43121122", "12221125", "32221123", "52221121", "21321124", "41321122", "13112125", "33112123", "13121215", "33121213", "11312125", "22221214", "42221212", "11321215", "31321213", "51321211", "23112214", "43112212", "12212215", "32212213", "52212211", "21312214", "41312212", "24121123", "13221124", "33221122", "22321123", "42321121", "11421124", "31421122", "14112124", "34112122", "14121214", "34121212", "12312124", "23221213", "43221211", "12321214", "32321212", "21421213", "41421211", "24112213", "13212214", "33212212", "22312213", "42312211", "11412214", "31412212", "25121122", "14221123", "34221121", "23321122", "12421123", "32421121", "21521122", "15112123", "15121213", "13312123", "24221212", "13321213", "33321211", "11512123", "22421212", "11521213", "31521211", "25112212", "14212213", "34212211", "23312212", "12412213", "32412211", "21512212", "15221122", "24321121", "13421122", "22521121", "16112122", "16121212", "14312122", "25221211", "14321212", "12512122", "23421211", "12521212", "15212212", "24312211", "13412212", "22512211", "11612212", "21131125", "41131123", "61131121", "11122126", "31122124", "51122122", "11131216", "31131214", "51131212", "21113125", "41113123", "61113121", "21122215", "41122213", "61122211", "11113216", "31113214", "51113212", "22131124", "42131122", "11231125", "31231123", "51231121", "12122125", "32122123", "52122121", "12131215", "32131213", "52131211", "21231214", "41231212", "22113124", "42113122", "11213125", "22122214", "42122212", "11222215", "31222213", "51222211", "12113215", "32113213", "52113211", "21213214", "41213212", "23131123", "43131121", "12231124", "32231122", "21331123", "41331121", "13122124", "33122122", "13131214", "33131212", "11322124", "22231213", "42231211", "11331214", "31331212", "23113123", "43113121", "12213124", "23122213", "43122211", "12222214", "32222212", "21322213", "41322211", "13113214", "33113212", "22213213", "42213211", "11313214", "31313212", "24131122", "13231123", "33231121", "22331122", "11431123", "31431121", "14122123", "34122121", "14131213", "34131211", "12322123", "23231212", "12331213", "32331211", "21431212", "24113122", "13213123", "24122212", "13222213", "33222211", "11413123", "22322212", "11422213", "31422211", "14113213", "34113211", "23213212", "12313213", "32313211", "21413212", "25131121", "14231122", "23331121", "12431122", "15122122", "15131212", "13322122", "24231211", "13331212", "11522122", "22431211", "25113121", "14213122", "25122211", "14222212", "12413122", "23322211", "12422212", "21522211", "15113212", "24213211", "13313212", "22413211", "11513212", "15231121", "13431121", "16122121", "16131211", "14322121", "14331211", "12522121", "15213121", "15222211", "13413121", "13422211", "11613121", "16113211", "14313211", "12513211", "21141124", "41141122", "11132125", "31132123", "51132121", "11141215", "31141213", "51141211", "21123124", "41123122", "21132214", "41132212", "11114125", "31114123", "51114121", "11123215", "31123213", "51123211", "21114214", "41114212", "22141123", "42141121", "11241124", "31241122", "12132124", "32132122", "12141214", "32141212", "21241213", "41241211", "22123123", "42123121", "11223124", "22132213", "42132211", "11232214", "31232212", "12114124", "32114122", "12123214", "32123212", "21223213", "41223211", "22114213", "42114211", "11214214", "31214212", "23141122", "12241123", "32241121", "21341122", "13132123", "33132121", "13141213", "33141211", "11332123", "22241212", "11341213", "31341211", "23123122", "12223123", "23132212", "12232213", "32232211", "21332212", "13114123", "33114121", "13123213", "33123211", "11314123", "22223212", "11323213", "31323211", "23114212", "12214213", "32214211", "21314212", "24141121", "13241122", "22341121", "14132122", "14141212", "12332122", "23241211", "12341212", "24123121", "13223122", "24132211", "13232212", "11423122", "22332211", "11432212", "14114122", "14123212", "12314122", "23223211", "12323212", "21423211", "24114211", "13214212", "22314211", "11414212", "14241121", "15132121", "15141211", "13332121", "13341211", "14223121", "14232211", "12423121", "12432211", "15114121", "15123211", "13314121", "13323211", "11514121", "11523211", "14214211", "12414211", "21151123", "41151121", "11142124", "31142122", "11151214", "31151212", "21133123", "41133121", "21142213", "41142211", "11124124", "31124122", "11133214", "31133212", "21115123", "41115121", "21124213", "41124211", "11115214", "31115212", "22151122", "11251123", "31251121", "12142123", "32142121", "12151213", "32151211", "21251212", "22133122", "11233123", "22142212", "11242213", "31242211", "12124123", "32124121", "12133213", "32133211", "21233212", "22115122", "11215123", "22124212", "11224213", "31224211", "12115213", "32115211", "21215212", "23151121", "12251122", "13142122", "13151212", "11342122", "22251211", "23133121", "12233122", "23142211", "12242212", "21342211", "13124122", "13133212", "11324122", "22233211", "11333212", "23115121", "12215122", "23124211", "12224212", "21324211", "13115212", "22215211", "11315212", "13251121", "14142121", "14151211", "12342121", "13233121", "13242211", "11433121", "14124121", "14133211", "12324121", "12333211", "13215121", "13224211", "11415121", "11424211", "14115211", "12315211", "21161122", "11152123", "31152121", "11161213", "31161211", "21143122", "21152212", "11134123", "31134121", "11143213", "31143211", "21125122", "21134212", "11116123", "31116121", "11125213", "31125211", "22161121", "12152122", "12161212", "22143121", "11243122", "22152211", "11252212", "12134122", "12143212", "21243211", "22125121", "11225122", "22134211", "11234212", "12116122", "12125212", "21225211", "13152121", "13161211", "12243121", "12252211", "13134121", "13143211", "11334121", "11343211", "12225121", "12234211", "13116121", "13125211", "11316121", "11325211", "21111226", "41111224", "61111222", "31111315", "51111313", "21211135", "41211133", "61211131", "22111225", "42111223", "11211226", "31211224", "51211222", "12111316", "32111314", "52111312", "21211315", "41211313", "61211311", "22211134", "42211132", "11311135", "31311133", "51311131", "23111224", "43111222", "12211225", "32211223", "52211221", "21311224", "41311222", "13111315", "33111313", "22211314", "42211312", "11311315", "31311313", "51311311", "23211133", "43211131", "12311134", "32311132", "21411133", "41411131", "24111223", "13211224", "33211222", "22311223", "42311221", "11411224", "31411222", "14111314", "34111312", "23211313", "43211311", "12311314", "32311312", "21411313", "41411311", "24211132", "13311133", "33311131", "22411132", "11511133", "31511131", "25111222", "14211223", "34211221", "23311222", "12411223", "32411221", "21511222", "15111313", "24211312", "13311313", "33311311", "22411312", "11511313", "31511311", "25211131", "14311132", "23411131", "12511132", "21611131", "15211222", "24311221", "13411222", "22511221", "11611222", "16111312", "25211311", "14311312", "23411311", "12511312", "21611311", "31121134", "51121132", "21112135", "41112133", "61112131", "21121225", "41121223", "61121221", "11112226", "31112224", "51112222", "11121316", "31121314", "51121312", "21112315", "41112313", "61112311", "12121135", "32121133", "52121131", "21221134", "41221132", "22112134", "42112132", "11212135", "22121224", "42121222", "11221225", "31221223", "51221221", "12112225", "32112223", "52112221", "12121315", "32121313", "52121311", "21221314", "41221312", "22112314", "42112312", "11212315", "31212313", "51212311", "13121134", "33121132", "22221133", "42221131", "11321134", "31321132", "23112133", "43112131", "12212134", "23121223", "43121221", "12221224", "32221222", "21321223", "41321221", "13112224", "33112222", "13121314", "33121312", "11312224", "22221313", "42221311", "11321314", "31321312", "23112313", "43112311", "12212314", "32212312", "21312313", "41312311", "14121133", "34121131", "23221132", "12321133", "32321131", "21421132", "24112132", "13212133", "24121222", "13221223", "33221221", "11412133", "22321222", "11421223", "31421221", "14112223", "34112221", "14121313", "34121311", "12312223", "23221312", "12321313", "32321311", "21421312", "24112312", "13212313", "33212311", "22312312", "11412313", "31412311", "15121132", "24221131", "13321132", "22421131" ]), $a([ "22121116", "42121114", "31221115", "51221113", "32112115", "52112113", "21212116", "41212114", "61212112", "23121115", "43121113", "12221116", "32221114", "52221112", "21321115", "41321113", "61321111", "13112116", "33112114", "22212115", "42212113", "11312116", "31312114", "51312112", "24121114", "13221115", "33221113", "22321114", "42321112", "11421115", "31421113", "51421111", "14112115", "34112113", "23212114", "43212112", "12312115", "32312113", "52312111", "21412114", "41412112", "25121113", "14221114", "34221112", "23321113", "43321111", "12421114", "32421112", "21521113", "41521111", "15112114", "24212113", "13312114", "33312112", "22412113", "42412111", "11512114", "31512112", "15221113", "24321112", "13421113", "33421111", "22521112", "16112113", "25212112", "14312113", "34312111", "23412112", "12512113", "32512111", "21612112", "21131116", "41131114", "61131112", "31122115", "51122113", "21113116", "41113114", "61113112", "22131115", "42131113", "11231116", "31231114", "51231112", "12122116", "32122114", "52122112", "21222115", "41222113", "61222111", "22113115", "42113113", "11213116", "31213114", "51213112", "23131114", "43131112", "12231115", "32231113", "52231111", "21331114", "41331112", "13122115", "33122113", "22222114", "42222112", "11322115", "31322113", "51322111", "23113114", "43113112", "12213115", "32213113", "52213111", "21313114", "41313112", "24131113", "13231114", "33231112", "22331113", "42331111", "11431114", "31431112", "14122114", "34122112", "23222113", "43222111", "12322114", "32322112", "21422113", "41422111", "24113113", "13213114", "33213112", "22313113", "42313111", "11413114", "31413112", "25131112", "14231113", "34231111", "23331112", "12431113", "32431111", "15122113", "24222112", "13322113", "33322111", "22422112", "11522113", "31522111", "25113112", "14213113", "34213111", "23313112", "12413113", "32413111", "21513112", "15231112", "24331111", "13431112", "16122112", "25222111", "14322112", "23422111", "12522112", "15213112", "24313111", "13413112", "22513111", "11613112", "21141115", "41141113", "61141111", "11132116", "31132114", "51132112", "21123115", "41123113", "61123111", "11114116", "31114114", "51114112", "22141114", "42141112", "11241115", "31241113", "51241111", "12132115", "32132113", "52132111", "21232114", "41232112", "22123114", "42123112", "11223115", "31223113", "51223111", "12114115", "32114113", "52114111", "21214114", "41214112", "23141113", "43141111", "12241114", "32241112", "21341113", "41341111", "13132114", "33132112", "22232113", "42232111", "11332114", "31332112", "23123113", "43123111", "12223114", "32223112", "21323113", "41323111", "13114114", "33114112", "22214113", "42214111", "11314114", "31314112", "24141112", "13241113", "33241111", "22341112", "14132113", "34132111", "23232112", "12332113", "32332111", "21432112", "24123112", "13223113", "33223111", "22323112", "11423113", "31423111", "14114113", "34114111", "23214112", "12314113", "32314111", "21414112", "25141111", "14241112", "23341111", "15132112", "24232111", "13332112", "22432111", "25123111", "14223112", "23323111", "12423112", "21523111", "15114112", "24214111", "13314112", "22414111", "11514112", "15241111", "16132111", "14332111", "15223111", "13423111", "16114111", "14314111", "12514111", "21151114", "41151112", "11142115", "31142113", "51142111", "21133114", "41133112", "11124115", "31124113", "51124111", "21115114", "41115112", "22151113", "42151111", "11251114", "31251112", "12142114", "32142112", "21242113", "41242111", "22133113", "42133111", "11233114", "31233112", "12124114", "32124112", "21224113", "41224111", "22115113", "42115111", "11215114", "31215112", "23151112", "12251113", "32251111", "13142113", "33142111", "22242112", "11342113", "31342111", "23133112", "12233113", "32233111", "21333112", "13124113", "33124111", "22224112", "11324113", "31324111", "23115112", "12215113", "32215111", "21315112", "24151111", "13251112", "14142112", "23242111", "12342112", "24133111", "13233112", "22333111", "11433112", "14124112", "23224111", "12324112", "21424111", "24115111", "13215112", "22315111", "11415112", "14251111", "15142111", "13342111", "14233111", "12433111", "15124111", "13324111", "11524111", "14215111", "12415111", "21161113", "41161111", "11152114", "31152112", "21143113", "41143111", "11134114", "31134112", "21125113", "41125111", "11116114", "31116112", "22161112", "12152113", "32152111", "21252112", "22143112", "11243113", "31243111", "12134113", "32134111", "21234112", "22125112", "11225113", "31225111", "12116113", "32116111", "21216112", "23161111", "13152112", "22252111", "23143111", "12243112", "21343111", "13134112", "22234111", "11334112", "23125111", "12225112", "21325111", "13116112", "22216111", "11316112", "14152111", "13243111", "14134111", "12334111", "13225111", "11425111", "14116111", "12316111", "41111215", "61111213", "21211126", "41211124", "61211122", "22111216", "42111214", "31211215", "51211213", "22211125", "42211123", "11311126", "31311124", "51311122", "23111215", "43111213", "12211216", "32211214", "52211212", "21311215", "41311213", "61311211", "23211124", "43211122", "12311125", "32311123", "52311121", "21411124", "41411122", "24111214", "13211215", "33211213", "22311214", "42311212", "11411215", "31411213", "51411211", "24211123", "13311124", "33311122", "22411123", "42411121", "11511124", "31511122", "25111213", "14211214", "34211212", "23311213", "43311211", "12411214", "32411212", "21511213", "41511211", "25211122", "14311123", "34311121", "23411122", "12511123", "32511121", "21611122", "15211213", "24311212", "13411213", "33411211", "22511212", "11611213", "31611211", "31121125", "51121123", "21112126", "41112124", "61112122", "21121216", "41121214", "61121212", "31112215", "51112213", "12121126", "32121124", "52121122", "21221125", "41221123", "61221121", "22112125", "42112123", "11212126", "22121215", "42121213", "11221216", "31221214", "51221212", "12112216", "32112214", "52112212", "21212215", "41212213", "61212211", "13121125", "33121123", "22221124", "42221122", "11321125", "31321123", "51321121", "23112124", "43112122", "12212125", "23121214", "43121212", "12221215", "32221213", "52221211", "21321214", "41321212", "13112215", "33112213", "22212214", "42212212", "11312215", "31312213", "51312211", "14121124", "34121122", "23221123", "43221121", "12321124", "32321122", "21421123", "41421121", "24112123", "13212124", "24121213", "13221214", "33221212", "11412124", "22321213", "42321211", "11421214", "31421212", "14112214", "34112212", "23212213", "43212211", "12312214", "32312212", "21412213", "41412211", "15121123", "24221122", "13321123", "33321121", "22421122", "11521123", "31521121", "25112122", "14212123", "25121212", "14221213", "34221211", "12412123", "23321212", "12421213", "32421211", "21521212", "15112213", "24212212", "13312213", "33312211", "22412212", "11512213", "31512211", "16121122", "25221121", "14321122", "23421121", "12521122", "15212122", "15221212", "13412122", "24321211", "13421212", "11612122", "22521211", "16112212", "25212211", "14312212", "23412211", "12512212", "21612211", "11131126", "31131124", "51131122", "21122125", "41122123", "61122121", "21131215", "41131213", "61131211", "11113126", "31113124", "51113122", "11122216", "31122214", "51122212", "21113215", "41113213", "61113211", "12131125", "32131123", "52131121", "21231124", "41231122", "22122124", "42122122", "11222125", "22131214", "42131212", "11231215", "31231213", "51231211", "12113125", "32113123", "52113121", "12122215", "32122213", "52122211", "21222214", "41222212", "22113214", "42113212", "11213215", "31213213", "51213211", "13131124", "33131122", "22231123", "42231121", "11331124", "31331122", "23122123", "43122121", "12222124", "23131213", "43131211", "12231214", "32231212", "21331213", "41331211", "13113124", "33113122", "13122214", "33122212", "11313124", "22222213", "42222211", "11322214", "31322212", "23113213", "43113211", "12213214", "32213212", "21313213", "41313211", "14131123", "34131121", "23231122", "12331123", "32331121", "21431122", "24122122", "13222123", "24131212", "13231213", "33231211", "11422123", "22331212", "11431213", "31431211", "14113123", "34113121", "14122213", "34122211", "12313123", "23222212", "12322213", "32322211", "21422212", "24113212", "13213213", "33213211", "22313212", "11413213", "31413211", "15131122", "24231121", "13331122", "22431121", "25122121", "14222122", "25131211", "14231212", "12422122", "23331211", "12431212", "15113122", "15122212", "13313122", "24222211", "13322212", "11513122", "22422211", "11522212", "25113211", "14213212", "23313211", "12413212", "21513211", "16131121", "14331121", "15222121", "15231211", "13422121", "13431211", "16113121", "16122211", "14313121", "14322211", "12513121", "12522211", "15213211", "13413211", "11613211", "11141125", "31141123", "51141121", "21132124", "41132122", "21141214", "41141212", "11123125", "31123123", "51123121", "11132215", "31132213", "51132211", "21114124", "41114122", "21123214", "41123212", "11114215", "31114213", "51114211", "12141124", "32141122", "21241123", "41241121", "22132123", "42132121", "11232124", "22141213", "42141211", "11241214", "31241212", "12123124", "32123122", "12132214", "32132212", "21232213", "41232211", "22114123", "42114121", "11214124", "22123213", "42123211", "11223214", "31223212", "12114214", "32114212", "21214213", "41214211", "13141123", "33141121", "22241122", "11341123", "31341121", "23132122", "12232123", "23141212", "12241213", "32241211", "21341212", "13123123", "33123121", "13132213", "33132211", "11323123", "22232212", "11332213", "31332211", "23114122", "12214123", "23123212", "12223213", "32223211", "21323212", "13114213", "33114211", "22214212", "11314213", "31314211", "14141122", "23241121", "12341122", "24132121", "13232122", "24141211", "13241212", "11432122", "22341211", "14123122", "14132212", "12323122", "23232211", "12332212", "21432211", "24114121", "13214122", "24123211", "13223212", "11414122", "22323211", "11423212", "14114212", "23214211", "12314212", "21414211", "15141121", "13341121", "14232121", "14241211", "12432121", "15123121", "15132211", "13323121", "13332211", "11523121", "14214121", "14223211", "12414121", "12423211", "15114211", "13314211", "11514211", "11151124", "31151122", "21142123", "41142121", "21151213", "41151211", "11133124", "31133122", "11142214", "31142212", "21124123", "41124121", "21133213", "41133211", "11115124", "31115122", "11124214", "31124212", "21115213", "41115211", "12151123", "32151121", "21251122", "22142122", "11242123", "22151212", "11251213", "31251211", "12133123", "32133121", "12142213", "32142211", "21242212", "22124122", "11224123", "22133212", "11233213", "31233211", "12115123", "32115121", "12124213", "32124211", "21224212", "22115212", "11215213", "31215211", "13151122", "22251121", "23142121", "12242122", "23151211", "12251212", "13133122", "13142212", "11333122", "22242211", "11342212", "23124121", "12224122", "23133211", "12233212", "21333211", "13115122", "13124212", "11315122", "22224211", "11324212", "23115211", "12215212", "21315211", "14151121", "13242121", "13251211", "14133121", "14142211", "12333121", "12342211", "13224121", "13233211", "11424121", "11433211", "14115121", "14124211", "12315121", "12324211", "13215211", "11415211", "11161123", "31161121", "21152122", "21161212", "11143123", "31143121", "11152213", "31152211", "21134122", "21143212", "11125123", "31125121", "11134213", "31134211", "21116122", "21125212", "12161122", "22152121", "11252122", "22161211", "12143122", "12152212", "21252211", "22134121", "11234122", "22143211", "11243212", "12125122", "12134212", "21234211", "22116121", "11216122", "22125211", "11225212", "13161121", "12252121", "13143121", "13152211", "11343121", "12234121", "12243211", "13125121", "13134211", "11325121", "11334211", "12216121", "12225211", "31111225", "51111223", "21111316", "41111314", "61111312", "31211134", "51211132", "12111226", "32111224", "52111222", "21211225", "41211223", "61211221", "22111315", "42111313", "11211316", "31211314", "51211312", "12211135", "32211133", "52211131", "21311134", "41311132", "13111225", "33111223", "22211224", "42211222", "11311225", "31311223", "51311221", "23111314", "43111312", "12211315", "32211313", "52211311", "21311314", "41311312", "13211134", "33211132", "22311133", "42311131", "11411134", "31411132", "14111224", "34111222", "23211223", "43211221", "12311224", "32311222", "21411223", "41411221", "24111313", "13211314", "33211312", "22311313", "42311311", "11411314", "31411312", "14211133", "34211131", "23311132", "12411133", "32411131", "21511132", "15111223", "24211222", "13311223", "33311221", "22411222", "11511223", "31511221", "25111312", "14211313", "34211311", "23311312", "12411313", "32411311", "21511312", "15211132", "24311131", "13411132", "22511131", "11611132", "16111222", "25211221", "14311222", "23411221", "12511222", "21611221", "15211312", "24311311", "13411312", "22511311", "11611312", "21121135", "41121133", "61121131", "11112136", "31112134", "51112132", "11121226", "31121224", "51121222", "21112225", "41112223", "61112221", "21121315", "41121313", "61121311", "11112316", "31112314", "51112312", "22121134", "42121132", "11221135", "31221133", "51221131", "12112135", "32112133", "52112131", "12121225", "32121223", "52121221", "21221224", "41221222", "22112224", "42112222", "11212225", "22121314", "42121312", "11221315", "31221313", "51221311", "12112315", "32112313", "52112311", "21212314", "41212312", "23121133", "43121131", "12221134", "32221132", "21321133", "41321131", "13112134", "33112132", "13121224", "33121222", "11312134", "22221223", "42221221", "11321224", "31321222", "23112223", "43112221", "12212224", "23121313", "43121311", "12221314", "32221312", "21321313", "41321311", "13112314", "33112312", "22212313", "42212311", "11312314", "31312312", "24121132", "13221133", "33221131", "22321132", "11421133", "31421131", "14112133", "34112131", "14121223", "34121221", "12312133", "23221222", "12321223", "32321221", "21421222", "24112222", "13212223", "24121312", "13221313", "33221311", "11412223", "22321312", "11421313", "31421311", "14112313", "34112311", "23212312", "12312313", "32312311", "21412312", "25121131", "14221132", "23321131", "12421132", "21521131", "15112132", "15121222", "13312132", "24221221", "13321222", "11512132", "22421221", "11521222", "25112221", "14212222", "25121311", "14221312", "12412222", "23321311", "12421312", "21521311", "15112312", "24212311", "13312312", "22412311", "11512312", "15221131", "13421131", "16112131", "16121221", "14312131", "14321221", "12512131", "12521221", "15212221", "15221311", "13412221", "13421311", "11612221", "16112311", "14312311", "12512311", "21131134", "41131132", "11122135", "31122133", "51122131", "11131225", "31131223", "51131221", "21113134", "41113132", "21122224", "41122222", "21131314", "41131312", "11113225", "31113223", "51113221", "11122315", "31122313", "51122311", "21113314", "41113312", "22131133", "42131131", "11231134", "31231132", "12122134", "32122132", "12131224", "32131222", "21231223", "41231221", "22113133", "42113131", "11213134", "22122223", "42122221", "11222224", "22131313", "42131311", "11231314", "31231312", "12113224", "32113222", "12122314", "32122312", "21222313", "41222311", "22113313", "42113311", "11213314", "31213312", "23131132", "12231133", "32231131", "21331132", "13122133", "33122131", "13131223", "33131221", "11322133", "22231222", "11331223", "31331221", "23113132", "12213133", "23122222", "12222223", "23131312", "12231313", "32231311", "21331312", "13113223", "33113221", "13122313", "33122311", "11313223", "22222312", "11322313", "31322311", "23113312", "12213313", "32213311", "21313312", "24131131", "13231132", "22331131", "11431132", "14122132", "14131222", "12322132", "23231221", "12331222", "21431221", "24113131", "13213132", "24122221", "13222222", "24131311", "11413132", "13231312", "11422222", "22331311", "11431312", "14113222", "14122312", "12313222", "23222311", "12322312", "21422311", "24113311", "13213312", "22313311", "11413312", "14231131", "12431131", "15122131", "15131221", "13322131", "13331221", "11522131", "14213131", "14222221", "12413131", "14231311", "12422221", "12431311", "15113221", "15122311", "13313221", "13322311", "11513221", "11522311", "14213311", "12413311", "21141133", "41141131", "11132134", "31132132", "11141224", "31141222", "21123133", "41123131", "21132223", "41132221", "21141313", "41141311", "11114134", "31114132", "11123224", "31123222", "11132314", "31132312", "21114223", "41114221", "21123313", "41123311", "11114314", "31114312", "22141132", "11241133", "31241131", "12132133", "32132131", "12141223", "32141221", "21241222", "22123132", "11223133", "22132222", "11232223", "22141312", "11241313", "31241311", "12114133", "32114131", "12123223", "32123221", "12132313", "32132311", "21232312", "22114222", "11214223", "22123312", "11223313", "31223311", "12114313", "32114311", "21214312", "23141131", "12241132", "21341131", "13132132", "13141222", "11332132", "22241221", "11341222", "23123131", "12223132", "23132221", "12232222", "23141311", "12241312", "21341311", "13114132", "13123222", "11314132", "13132312", "11323222", "22232311", "11332312", "23114221", "12214222", "23123311", "12223312", "21323311", "13114312", "22214311", "11314312", "13241131", "14132131", "14141221", "12332131", "12341221", "13223131", "13232221", "11423131", "13241311", "11432221", "14114131", "14123221", "12314131", "14132311", "12323221", "12332311", "13214221", "13223311", "11414221", "11423311", "14114311", "12314311", "21151132", "11142133", "31142131", "11151223", "31151221", "21133132", "21142222", "21151312", "11124133", "31124131", "11133223", "31133221", "11142313", "31142311", "21115132", "21124222", "21133312", "11115223", "31115221", "11124313", "31124311", "22151131", "11251132", "12142132", "12151222", "21251221", "22133131", "11233132", "22142221", "11242222", "22151311", "11251312", "12124132", "12133222", "12142312", "21242311", "22115131", "11215132", "22124221", "11224222", "22133311", "11233312", "12115222", "12124312", "21224311", "12251131", "13142131", "13151221", "11342131", "12233131", "12242221", "12251311", "13124131", "13133221", "11324131", "13142311", "11333221", "11342311", "12215131", "12224221", "12233311", "13115221", "13124311", "11315221", "11324311", "21161131", "11152132", "11161222", "21143131", "21152221", "21161311", "11134132", "11143222", "11152312", "21125131", "21134221", "21143311", "11116132", "11125222", "11134312", "12152131", "12161221", "11243131", "11252221", "12134131", "12143221", "12152311", "11225131", "11234221", "11243311", "12116131", "12125221", "12134311", "21111235", "41111233", "61111231", "11111326", "31111324", "51111322", "21111415", "41111413", "61111411", "21211144", "41211142", "22111234", "42111232", "11211235", "31211233", "51211231", "12111325", "32111323", "52111321", "21211324", "41211322", "22111414", "42111412", "11211415", "31211413", "51211411", "22211143", "42211141", "11311144", "31311142", "23111233", "43111231", "12211234", "32211232", "21311233", "41311231", "13111324", "33111322", "22211323", "42211321", "11311324", "31311322", "23111413", "43111411", "12211414", "32211412", "21311413", "41311411", "23211142", "12311143", "32311141", "21411142", "24111232", "13211233", "33211231", "22311232", "11411233", "31411231", "14111323", "34111321", "23211322", "12311323", "32311321", "21411322", "24111412", "13211413", "33211411", "22311412", "11411413", "31411411", "24211141", "13311142", "22411141", "11511142", "25111231", "14211232", "23311231", "12411232", "21511231", "15111322", "24211321", "13311322", "22411321", "11511322", "25111411", "14211412", "23311411", "12411412", "21511411", "14311141", "12511141", "15211231", "13411231", "11611231", "16111321", "14311321", "12511321", "15211411", "13411411", "11611411", "31121143", "51121141", "21112144", "41112142", "21121234", "41121232", "11112235", "31112233", "51112231", "11121325", "31121323", "51121321", "21112324", "41112322", "21121414", "41121412", "11112415", "31112413", "51112411", "12121144", "32121142", "21221143", "41221141", "22112143", "42112141", "11212144", "22121233", "42121231", "11221234", "31221232", "12112234", "32112232", "12121324", "32121322", "21221323", "41221321", "22112323", "42112321", "11212324", "22121413", "42121411", "11221414", "31221412", "12112414", "32112412", "21212413", "41212411", "13121143", "33121141", "22221142", "11321143", "31321141", "23112142", "12212143", "23121232", "12221233", "32221231", "21321232", "13112233", "33112231", "13121323", "33121321", "11312233", "22221322", "11321323", "31321321", "23112322", "12212323", "23121412", "12221413", "32221411", "21321412", "13112413", "33112411", "22212412", "11312413", "31312411", "14121142", "23221141", "12321142", "21421141", "24112141", "13212142", "24121231", "13221232", "11412142", "22321231", "11421232", "14112232", "14121322", "12312232", "23221321", "12321322", "21421321", "24112321", "13212322", "24121411", "13221412", "11412322", "22321411", "11421412", "14112412", "23212411", "12312412", "21412411", "15121141", "13321141", "11521141", "14212141", "14221231", "12412141", "12421231", "15112231", "15121321", "13312231", "13321321", "11512231", "11521321", "14212321", "14221411", "12412321", "12421411", "15112411", "13312411", "11512411", "11131144", "31131142", "21122143", "41122141", "21131233", "41131231", "11113144", "31113142", "11122234", "31122232", "11131324", "31131322", "21113233", "41113231", "21122323", "41122321", "21131413", "41131411", "11113324", "31113322", "11122414", "31122412", "21113413", "41113411", "12131143", "32131141", "21231142", "22122142", "11222143", "22131232", "11231233", "31231231", "12113143", "32113141", "12122233", "32122231", "12131323", "32131321", "21231322", "22113232", "11213233", "22122322", "11222323", "22131412", "11231413", "31231411", "12113323", "32113321", "12122413", "32122411", "21222412", "22113412", "11213413", "31213411", "13131142", "22231141", "11331142", "23122141", "12222142", "23131231", "12231232", "21331231", "13113142", "13122232", "11313142", "13131322", "11322232", "22231321", "11331322", "23113231", "12213232", "23122321", "12222322", "23131411", "12231412", "21331411", "13113322", "13122412", "11313322", "22222411", "11322412", "23113411", "12213412", "21313411", "14131141", "12331141", "13222141", "13231231", "11422141", "11431231", "14113141", "14122231", "12313141", "14131321", "12322231", "12331321", "13213231", "13222321", "11413231", "13231411", "11422321", "11431411", "14113321", "14122411", "12313321", "12322411", "13213411", "11413411", "11141143", "31141141", "21132142", "21141232", "11123143", "31123141", "11132233", "31132231", "11141323", "31141321", "21114142", "21123232", "21132322", "21141412", "11114233", "31114231", "11123323", "31123321", "11132413", "31132411", "21114322", "21123412", "12141142", "21241141", "22132141", "11232142", "22141231", "11241232", "12123142", "12132232", "12141322", "21241321", "22114141", "11214142", "22123231", "11223232", "22132321", "11232322", "22141411", "11241412", "12114232", "12123322", "12132412", "21232411", "22114321", "11214322", "22123411", "11223412", "13141141", "11341141", "12232141", "12241231", "13123141", "13132231", "11323141", "13141321", "11332231", "11341321", "12214141", "12223231", "12232321", "12241411", "13114231", "13123321", "11314231", "13132411", "11323321", "11332411", "12214321", "12223411", "11151142", "21142141", "21151231", "11133142", "11142232", "11151322", "21124141", "21133231", "21142321", "21151411", "11115142", "11124232", "11133322", "11142412", "21115231", "21124321", "21133411", "12151141", "11242141", "11251231", "12133141", "12142231", "12151321", "11224141", "11233231", "11242321", "11251411", "12115141", "12124231", "12133321", "12142411", "11215231", "11224321", "11233411", "11161141", "11143141", "11152231", "11161321", "11125141", "11134231", "11143321", "11152411", "11111245", "31111243", "51111241", "21111334", "41111332", "11111425", "31111423", "51111421", "21111514", "41111512", "31211152", "12111244", "32111242", "21211243", "41211241", "22111333", "42111331", "11211334", "31211332", "12111424", "32111422", "21211423", "41211421", "22111513", "42111511", "11211514", "31211512", "12211153", "32211151", "21311152", "13111243", "33111241", "22211242", "11311243", "31311241", "23111332", "12211333", "32211331", "21311332", "13111423", "33111421", "22211422", "11311423", "31311421", "23111512", "12211513", "32211511", "21311512", "13211152", "22311151", "11411152", "14111242", "23211241", "12311242", "21411241", "24111331", "13211332", "22311331", "11411332", "14111422", "23211421", "12311422", "21411421", "24111511", "13211512", "22311511", "11411512", "14211151", "12411151", "15111241", "13311241", "11511241", "14211331", "12411331", "15111421", "13311421", "11511421", "14211511", "12411511", "21121153", "41121151", "11112154", "31112152", "11121244", "31121242", "21112243", "41112241", "21121333", "41121331", "11112334", "31112332", "11121424", "31121422", "21112423", "41112421", "21121513", "41121511", "11112514", "31112512", "22121152", "11221153", "31221151", "12112153", "32112151", "12121243", "32121241", "21221242", "22112242", "11212243", "22121332", "11221333", "31221331", "12112333", "32112331", "12121423", "32121421", "21221422", "22112422", "11212423", "22121512", "11221513", "31221511", "12112513", "32112511", "21212512", "23121151", "12221152", "21321151", "13112152", "13121242", "11312152", "22221241", "11321242", "23112241", "12212242", "23121331", "12221332", "21321331", "13112332", "13121422", "11312332", "22221421", "11321422", "23112421", "12212422", "23121511", "12221512", "21321511", "13112512", "22212511", "11312512", "13221151", "11421151", "14112151", "14121241", "12312151", "12321241", "13212241", "13221331", "11412241", "11421331", "14112331", "14121421", "12312331", "12321421", "13212421", "13221511", "11412421", "11421511", "14112511", "12312511", "21131152", "11122153", "31122151", "11131243", "31131241", "21113152", "21122242", "21131332", "11113243", "31113241", "11122333", "31122331", "11131423", "31131421", "21113332", "21122422", "21131512", "11113423", "31113421", "11122513", "31122511", "22131151", "11231152", "12122152", "12131242", "21231241", "22113151", "11213152", "22122241", "11222242", "22131331", "11231332", "12113242", "12122332", "12131422", "21231421", "22113331", "11213332", "22122421", "11222422", "22131511", "11231512", "12113422", "12122512", "21222511", "12231151", "13122151", "13131241", "11322151", "11331241", "12213151", "12222241", "12231331", "13113241", "13122331", "11313241", "13131421", "11322331", "11331421", "12213331", "12222421", "12231511", "13113421", "13122511", "11313421", "11322511", "21141151", "11132152", "11141242", "21123151", "21132241", "21141331", "11114152", "11123242", "11132332", "11141422", "21114241", "21123331", "21132421", "21141511", "11114332", "11123422", "11132512", "11241151", "12132151", "12141241", "11223151", "11232241", "11241331", "12114151", "12123241", "12132331", "12141421", "11214241", "11223331", "11232421", "11241511", "12114331", "12123421", "12132511", "11142151", "11151241", "11124151", "11133241", "11142331", "11151421", "11115241", "11124331", "11133421", "11142511", "21111253", "41111251", "11111344", "31111342", "21111433", "41111431", "11111524", "31111522", "21111613", "41111611", "21211162", "22111252", "11211253", "31211251", "12111343", "32111341", "21211342", "22111432", "11211433", "31211431", "12111523", "32111521", "21211522", "22111612", "11211613", "31211611", "22211161", "11311162", "23111251", "12211252", "21311251", "13111342", "22211341", "11311342", "23111431", "12211432", "21311431", "13111522", "22211521", "11311522", "23111611", "12211612", "21311611", "12311161", "13211251", "11411251", "14111341", "12311341", "13211431", "11411431", "14111521", "12311521", "13211611", "11411611", "31121161", "21112162", "21121252", "11112253", "31112251", "11121343", "31121341", "21112342", "21121432", "11112433", "31112431", "11121523", "31121521", "21112522", "21121612", "12121162", "21221161", "22112161", "11212162", "22121251", "11221252", "12112252", "12121342", "21221341", "22112341", "11212342", "22121431", "11221432", "12112432", "12121522", "21221521", "22112521", "11212522", "22121611", "11221612", "13121161", "11321161", "12212161", "12221251", "13112251", "13121341", "11312251", "11321341", "12212341", "12221431", "13112431", "13121521", "11312431", "11321521", "12212521", "12221611", "11131162", "21122161", "21131251", "11113162" ]) ]); - $1.parity = $a([ "1001", "0101", "1100", "0011", "1010", "0110", "1111", "0000" ]); - $1.rowbits = $a($1.r); - for (var _5z = 0, _5y = $f($1.r - 1); _5z <= _5y; _5z += 1) { - $1.i = _5z; - $k[$j++] = "p"; - if ($1.i != $f($1.r - 1)) { - $k[$j++] = $get($1.parity, $1.i); - } else { - $k[$j++] = "0000"; - } - var _65 = $k[--$j]; - $1[$k[--$j]] = _65; - $1.ccrow = $geti($1.ccs, $1.i * 8, 8); - $k[$j++] = Infinity; - for (var _6A = 0; _6A <= 7; _6A += 2) { - $aload($geti($1.ccrow, _6A, 2)); - var _6D = $k[--$j]; - var _6E = $k[--$j]; - $k[$j++] = $f(_6D + _6E * 49); - } - $1.scrow = $a(); - $k[$j++] = Infinity; - $k[$j++] = 10; - $k[$j++] = 1; - $k[$j++] = 1; - for (var _6G = 0; _6G <= 3; _6G += 1) { - $1.j = _6G; - $forall($get($get($1.patterns, $f($get($1.p, $1.j) - 48)), $get($1.scrow, $1.j)), function() { - var _6Q = $k[--$j]; - $k[$j++] = $f(_6Q - 48); - }); - } - $k[$j++] = 4; - $k[$j++] = 1; - $1.sbs = $a(); - $k[$j++] = Infinity; - var _6S = $1.sbs; - $k[$j++] = 1; - for (var _6T = 0, _6U = _6S.length; _6T < _6U; _6T++) { - var _6W = $k[--$j]; - var _6X = _6W == 0 ? 1 : 0; - $k[$j++] = _6W; - for (var _6Y = 0, _6Z = $get(_6S, _6T); _6Y < _6Z; _6Y++) { - $k[$j++] = _6X; - } - } - $astore($a($counttomark() - 1)); - var _6c = $k[--$j]; - var _6d = $k[--$j]; - $k[$j++] = _6c; - $k[$j++] = _6d; - $j--; - var _6e = $k[--$j]; - var _6f = $k[--$j]; - $k[$j++] = _6e; - $k[$j++] = _6f; - $j--; - $put($1.rowbits, $1.i, $k[--$j]); - } - $k[$j++] = Infinity; - for (var _6k = 0, _6l = 81 * $1.sepheight; _6k < _6l; _6k++) { - $k[$j++] = 1; - } - for (var _6o = 0, _6n = $f($1.r - 2); _6o <= _6n; _6o += 1) { - $1.i = _6o; - for (var _6q = 0, _6r = $1.rowheight; _6q < _6r; _6q++) { - $aload($get($1.rowbits, $1.i)); - } - for (var _6w = 0, _6x = $1.sepheight; _6w < _6x; _6w++) { - for (var _6y = 0, _6z = 10; _6y < _6z; _6y++) { - $k[$j++] = 0; - } - for (var _70 = 0, _71 = 70; _70 < _71; _70++) { - $k[$j++] = 1; - } - $k[$j++] = 0; - } - } - for (var _73 = 0, _74 = $1.rowheight; _73 < _74; _73++) { - $aload($get($1.rowbits, $f($1.r - 1))); - } - for (var _79 = 0, _7A = 81 * $1.sepheight; _79 < _7A; _79++) { - $k[$j++] = 1; - } - $1.pixs = $a(); - var _7G = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", 81 ], [ "pixy", ~~($1.pixs.length / 81) ], [ "height", ~~($1.pixs.length / 81) / 72 ], [ "width", 81 / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _7G; - if (!$1.dontdraw) { - $0.renmatrix(); - } + $1.weights = $k[--$j]; //#13715 + $1.score = 0; //#13716 + for (var _4h = 0, _4g = (~~(($f($1.r - 1) * 8) / 2)) - 1; _4h <= _4g; _4h += 1) { //#13721 + $1.i = _4h; //#13718 + $1.score = $f((($f(($get($1.ccs, $1.i * 2) * 49) + $get($1.ccs, ($1.i * 2) + 1))) * $get($1.weights, $1.i + 1)) + $1.score); //#13720 + } //#13720 + $k[$j++] = $1.score; //#13722 + }; //#13723 + $1.lastrow = $geti($1.ccs, $1.ccs.length - 8, 8); //#13724 + if ($1.r >= 7) { //#13731 + $k[$j++] = $1.cr7 * $get($1.weightz, 0); //#13728 + $k[$j++] = $1.weightz; //#13728 + $1.calccheck(); //#13728 + var _51 = $k[--$j]; //#13728 + var _53 = $f($k[--$j] + _51) % 2401; //#13729 + $k[$j++] = ~~(_53 / 49); //#13729 + $k[$j++] = _53 % 49; //#13729 + $astore($a(2)); //#13729 + $puti($1.lastrow, 0, $k[--$j]); //#13730 + } //#13730 + $1.wr1 = $f(($get($1.lastrow, 0) * 49) + $get($1.lastrow, 1)); //#13732 + $k[$j++] = $1.cr7 * $get($1.weighty, 0); //#13735 + $k[$j++] = $1.weighty; //#13735 + $1.calccheck(); //#13735 + var _5F = $k[--$j]; //#13735 + var _5L = ($f($f($k[--$j] + _5F) + ($1.wr1 * $get($1.weighty, $f(($1.r * 4) - 3))))) % 2401; //#13737 + $1.wr2 = _5L; //#13737 + $k[$j++] = ~~(_5L / 49); //#13738 + $k[$j++] = _5L % 49; //#13738 + $astore($a(2)); //#13738 + $puti($1.lastrow, 2, $k[--$j]); //#13739 + $k[$j++] = $1.cr7 * $get($1.weightx, 0); //#13742 + $k[$j++] = $1.weightx; //#13742 + $1.calccheck(); //#13742 + var _5T = $k[--$j]; //#13742 + var _5d = ($f(($f($f($k[--$j] + _5T) + ($1.wr1 * $get($1.weightx, $f(($1.r * 4) - 3))))) + ($1.wr2 * $get($1.weightx, $f(($1.r * 4) - 2))))) % 2401; //#13746 + $k[$j++] = ~~(_5d / 49); //#13746 + $k[$j++] = _5d % 49; //#13746 + $astore($a(2)); //#13746 + $puti($1.lastrow, 4, $k[--$j]); //#13747 + var _5j = $geti($1.ccs, $1.ccs.length - 8, 7); //#13750 + $k[$j++] = 0; //#13750 + for (var _5k = 0, _5l = _5j.length; _5k < _5l; _5k++) { //#13750 + var _5n = $k[--$j]; //#13750 + $k[$j++] = $f(_5n + $get(_5j, _5k)); //#13750 + } //#13750 + $put($1.ccs, $1.ccs.length - 1, $k[--$j] % 49); //#13751 + $1.patterns = $a([$a(["11521132", "25112131", "14212132", "25121221", "14221222", "12412132", "23321221", "12421222", "21521221", "15112222", "15121312", "13312222", "24221311", "13321312", "11512222", "22421311", "11521312", "25112311", "14212312", "23312311", "12412312", "21512311", "16121131", "14321131", "12521131", "15212131", "15221221", "13412131", "13421221", "11612131", "16112221", "16121311", "14312221", "14321311", "12512221", "12521311", "15212311", "13412311", "11612311", "11131135", "31131133", "51131131", "21122134", "41122132", "21131224", "41131222", "11113135", "31113133", "51113131", "11122225", "31122223", "51122221", "11131315", "31131313", "51131311", "21113224", "41113222", "21122314", "41122312", "11113315", "31113313", "51113311", "12131134", "32131132", "21231133", "41231131", "22122133", "42122131", "11222134", "22131223", "42131221", "11231224", "31231222", "12113134", "32113132", "12122224", "32122222", "12131314", "32131312", "21231313", "41231311", "22113223", "42113221", "11213224", "22122313", "42122311", "11222314", "31222312", "12113314", "32113312", "21213313", "41213311", "13131133", "33131131", "22231132", "11331133", "31331131", "23122132", "12222133", "23131222", "12231223", "32231221", "21331222", "13113133", "33113131", "13122223", "33122221", "11313133", "13131313", "33131311", "11322223", "22231312", "11331313", "31331311", "23113222", "12213223", "23122312", "12222313", "32222311", "21322312", "13113313", "33113311", "22213312", "11313313", "31313311", "14131132", "23231131", "12331132", "21431131", "24122131", "13222132", "24131221", "13231222", "11422132", "22331221", "11431222", "14113132", "14122222", "12313132", "14131312", "12322222", "23231311", "12331312", "21431311", "24113221", "13213222", "24122311", "13222312", "11413222", "22322311", "11422312", "14113312", "23213311", "12313312", "21413311", "15131131", "13331131", "14222131", "14231221", "12422131", "12431221", "15113131", "15122221", "13313131", "15131311", "13322221", "11513131", "13331311", "11522221", "14213221", "14222311", "12413221", "12422311", "15113311", "13313311", "11513311", "11141134", "31141132", "21132133", "41132131", "21141223", "41141221", "11123134", "31123132", "11132224", "31132222", "11141314", "31141312", "21114133", "41114131", "21123223", "41123221", "21132313", "41132311", "11114224", "31114222", "11123314", "31123312", "21114313", "41114311", "12141133", "32141131", "21241132", "22132132", "11232133", "22141222", "11241223", "31241221", "12123133", "32123131", "12132223", "32132221", "12141313", "32141311", "21241312", "22114132", "11214133", "22123222", "11223223", "22132312", "11232313", "31232311", "12114223", "32114221", "12123313", "32123311", "21223312", "22114312", "11214313", "31214311", "13141132", "22241131", "11341132", "23132131", "12232132", "23141221", "12241222", "21341221", "13123132", "13132222", "11323132", "13141312", "11332222", "22241311", "11341312", "23114131", "12214132", "23123221", "12223222", "23132311", "12232312", "21332311", "13114222", "13123312", "11314222", "22223311", "11323312", "23114311", "12214312", "21314311", "14141131", "12341131", "13232131", "13241221", "11432131", "14123131", "14132221", "12323131", "14141311", "12332221", "12341311", "13214131", "13223221", "11414131", "13232311", "11423221", "11432311", "14114221", "14123311", "12314221", "12323311", "13214311", "11414311", "11151133", "31151131", "21142132", "21151222", "11133133", "31133131", "11142223", "31142221", "11151313", "31151311", "21124132", "21133222", "21142312", "11115133", "31115131", "11124223", "31124221", "11133313", "31133311", "21115222", "21124312", "12151132", "21251131", "22142131", "11242132", "22151221", "11251222", "12133132", "12142222", "12151312", "21251311", "22124131", "11224132", "22133221", "11233222", "22142311", "11242312", "12115132", "12124222", "12133312", "21233311", "22115221", "11215222", "22124311", "11224312", "13151131", "12242131", "12251221", "13133131", "13142221", "11333131", "13151311", "11342221", "12224131", "12233221", "12242311", "13115131", "13124221", "11315131", "13133311", "11324221", "11333311", "12215221", "12224311", "11161132", "21152131", "21161221", "11143132", "11152222", "11161312", "21134131", "21143221", "21152311", "11125132", "11134222", "11143312", "21116131", "21125221", "21134311", "12161131", "11252131", "12143131", "12152221", "12161311", "11234131", "11243221", "11252311", "12125131", "12134221", "12143311", "11216131", "11225221", "11234311", "11111236", "31111234", "51111232", "21111325", "41111323", "61111321", "11111416", "31111414", "51111412", "31211143", "51211141", "12111235", "32111233", "52111231", "21211234", "41211232", "22111324", "42111322", "11211325", "31211323", "51211321", "12111415", "32111413", "52111411", "21211414", "41211412", "12211144", "32211142", "21311143", "41311141", "13111234", "33111232", "22211233", "42211231", "11311234", "31311232", "23111323", "43111321", "12211324", "32211322", "21311323", "41311321", "13111414", "33111412", "22211413", "42211411", "11311414", "31311412", "13211143", "33211141", "22311142", "11411143", "31411141", "14111233", "34111231", "23211232", "12311233", "32311231", "21411232", "24111322", "13211323", "33211321", "22311322", "11411323", "31411321", "14111413", "34111411", "23211412", "12311413", "32311411", "21411412", "14211142", "23311141", "12411142", "21511141", "15111232", "24211231", "13311232", "22411231", "11511232", "25111321", "14211322", "23311321", "12411322", "21511321", "15111412", "24211411", "13311412", "22411411", "11511412", "15211141", "13411141", "11611141", "16111231", "14311231", "12511231", "15211321", "13411321", "11611321", "16111411", "14311411", "12511411", "21121144", "41121142", "11112145", "31112143", "51112141", "11121235", "31121233", "51121231", "21112234", "41112232", "21121324", "41121322", "11112325", "31112323", "51112321", "11121415", "31121413", "51121411", "21112414", "41112412", "22121143", "42121141", "11221144", "31221142", "12112144", "32112142", "12121234", "32121232", "21221233", "41221231", "22112233", "42112231", "11212234", "22121323", "42121321", "11221324", "31221322", "12112324", "32112322", "12121414", "32121412", "21221413", "41221411", "22112413", "42112411", "11212414", "31212412", "23121142", "12221143", "32221141", "21321142", "13112143", "33112141", "13121233", "33121231", "11312143", "22221232", "11321233", "31321231", "23112232", "12212233", "23121322", "12221323", "32221321", "21321322", "13112323", "33112321", "13121413", "33121411", "11312323", "22221412", "11321413", "31321411", "23112412", "12212413", "32212411", "21312412", "24121141", "13221142", "22321141", "11421142", "14112142", "14121232", "12312142", "23221231", "12321232", "21421231", "24112231", "13212232", "24121321", "13221322", "11412232", "22321321", "11421322", "14112322", "14121412", "12312322", "23221411", "12321412", "21421411", "24112411", "13212412", "22312411", "11412412", "14221141", "12421141", "15112141", "15121231", "13312141", "13321231", "11512141", "11521231", "14212231", "14221321", "12412231", "12421321", "15112321", "15121411", "13312321", "13321411", "11512321", "11521411", "14212411", "12412411", "21131143", "41131141", "11122144", "31122142", "11131234", "31131232", "21113143", "41113141", "21122233", "41122231", "21131323", "41131321", "11113234", "31113232", "11122324", "31122322", "11131414", "31131412", "21113323", "41113321", "21122413", "41122411", "11113414", "31113412", "22131142", "11231143", "31231141", "12122143", "32122141", "12131233", "32131231", "21231232", "22113142", "11213143", "22122232", "11222233", "22131322", "11231323", "31231321", "12113233", "32113231", "12122323", "32122321", "12131413", "32131411", "21231412", "22113322", "11213323", "22122412", "11222413", "31222411", "12113413", "32113411", "21213412", "23131141", "12231142", "21331141", "13122142", "13131232", "11322142", "22231231", "11331232", "23113141", "12213142", "23122231", "12222232", "23131321", "12231322", "21331321", "13113232", "13122322", "11313232", "13131412", "11322322", "22231411", "11331412", "23113321", "12213322", "23122411", "12222412", "21322411", "13113412", "22213411", "11313412", "13231141", "11431141", "14122141", "14131231", "12322141", "12331231", "13213141", "13222231", "11413141", "13231321", "11422231", "11431321", "14113231", "14122321", "12313231", "14131411", "12322321", "12331411", "13213321", "13222411", "11413321", "11422411", "14113411", "12313411", "21141142", "11132143", "31132141", "11141233", "31141231", "21123142", "21132232", "21141322", "11114143", "31114141", "11123233", "31123231", "11132323", "31132321", "11141413", "31141411", "21114232", "21123322", "21132412", "11114323", "31114321", "11123413", "31123411", "22141141", "11241142", "12132142", "12141232", "21241231", "22123141", "11223142", "22132231", "11232232", "22141321", "11241322", "12114142", "12123232", "12132322", "12141412", "21241411", "22114231", "11214232", "22123321", "11223322", "22132411", "11232412", "12114322", "12123412", "21223411", "12241141", "13132141", "13141231", "11332141", "11341231", "12223141", "12232231", "12241321", "13114141", "13123231", "11314141", "13132321", "11323231", "13141411", "11332321", "11341411", "12214231", "12223321", "12232411", "13114321", "13123411", "11314321", "11323411", "21151141", "11142142", "11151232", "21133141", "21142231", "21151321", "11124142", "11133232", "11142322", "11151412", "21115141", "21124231", "21133321", "21142411", "11115232", "11124322", "11133412", "11251141", "12142141", "12151231", "11233141", "11242231", "11251321", "12124141", "12133231", "12142321", "12151411", "11215141", "11224231", "11233321", "11242411", "12115231", "12124321", "12133411", "11152141", "11161231", "11134141", "11143231", "11152321", "11161411", "11116141", "11125231", "11134321", "11143411", "21111244", "41111242", "11111335", "31111333", "51111331", "21111424", "41111422", "11111515", "31111513", "51111511", "21211153", "41211151", "22111243", "42111241", "11211244", "31211242", "12111334", "32111332", "21211333", "41211331", "22111423", "42111421", "11211424", "31211422", "12111514", "32111512", "21211513", "41211511", "22211152", "11311153", "31311151", "23111242", "12211243", "32211241", "21311242", "13111333", "33111331", "22211332", "11311333", "31311331", "23111422", "12211423", "32211421", "21311422", "13111513", "33111511", "22211512", "11311513", "31311511", "23211151", "12311152", "21411151", "24111241", "13211242", "22311241", "11411242", "14111332", "23211331", "12311332", "21411331", "24111421", "13211422", "22311421", "11411422", "14111512", "23211511", "12311512", "21411511", "13311151", "11511151", "14211241", "12411241", "15111331", "13311331", "11511331", "14211421", "12411421", "15111511", "13311511", "11511511", "31121152", "21112153", "41112151", "21121243", "41121241", "11112244", "31112242", "11121334", "31121332", "21112333", "41112331", "21121423", "41121421", "11112424", "31112422", "11121514", "31121512", "21112513", "41112511", "12121153", "32121151", "21221152", "22112152", "11212153", "22121242", "11221243", "31221241", "12112243", "32112241", "12121333", "32121331", "21221332", "22112332", "11212333", "22121422", "11221423", "31221421", "12112423", "32112421", "12121513", "32121511", "21221512", "22112512", "11212513", "31212511", "13121152", "22221151", "11321152", "23112151", "12212152", "23121241", "12221242", "21321241", "13112242", "13121332", "11312242", "22221331", "11321332", "23112331", "12212332", "23121421", "12221422", "21321421", "13112422", "13121512", "11312422", "22221511", "11321512", "23112511", "12212512", "21312511", "14121151", "12321151", "13212151", "13221241", "11412151", "11421241", "14112241", "14121331", "12312241", "12321331", "13212331", "13221421", "11412331", "11421421", "14112421", "14121511", "12312421", "12321511", "13212511", "11412511", "11131153", "31131151", "21122152", "21131242", "11113153", "31113151", "11122243", "31122241", "11131333", "31131331", "21113242", "21122332", "21131422", "11113333", "31113331", "11122423", "31122421", "11131513", "31131511", "21113422", "21122512", "12131152", "21231151", "22122151", "11222152", "22131241", "11231242", "12113152", "12122242", "12131332", "21231331", "22113241", "11213242", "22122331", "11222332", "22131421", "11231422", "12113332", "12122422", "12131512", "21231511", "22113421", "11213422", "22122511", "11222512", "13131151", "11331151", "12222151", "12231241", "13113151", "13122241", "11313151", "13131331", "11322241", "11331331", "12213241", "12222331", "12231421", "13113331", "13122421", "11313331", "13131511", "11322421", "11331511", "12213421", "12222511", "11141152", "21132151", "21141241", "11123152", "11132242", "11141332", "21114151", "21123241", "21132331", "21141421", "11114242", "11123332", "11132422", "11141512", "21114331", "21123421", "21132511", "12141151", "11232151", "11241241", "12123151", "12132241", "12141331", "11214151", "11223241", "11232331", "11241421", "12114241", "12123331", "12132421", "12141511", "11214331", "11223421", "11232511", "11151151", "11133151", "11142241", "11151331", "11115151", "11124241", "11133331", "11142421", "11151511", "11111254", "31111252", "21111343", "41111341", "11111434", "31111432", "21111523", "41111521", "11111614", "31111612", "31211161", "12111253", "32111251", "21211252", "22111342", "11211343", "31211341", "12111433", "32111431", "21211432", "22111522", "11211523", "31211521", "12111613", "32111611", "21211612", "12211162", "21311161", "13111252", "22211251", "11311252", "23111341", "12211342", "21311341", "13111432", "22211431", "11311432", "23111521", "12211522", "21311521", "13111612", "22211611", "11311612", "13211161", "11411161", "14111251", "12311251", "13211341", "11411341", "14111431", "12311431", "13211521", "11411521", "14111611", "12311611", "21121162", "11112163", "31112161", "11121253", "31121251", "21112252", "21121342", "11112343", "31112341", "11121433", "31121431", "21112432", "21121522", "11112523", "31112521", "11121613", "31121611", "22121161", "11221162", "12112162", "12121252", "21221251", "22112251", "11212252", "22121341", "11221342", "12112342", "12121432", "21221431", "22112431", "11212432", "22121521", "11221522", "12112522", "12121612", "21221611", "12221161", "13112161", "13121251", "11312161", "11321251", "32121115", "52121113", "21221116", "41221114", "61221112", "22112116", "42112114", "31212115", "51212113", "13121116", "33121114", "22221115", "42221113", "11321116", "31321114", "51321112", "23112115", "43112113", "12212116", "32212114", "52212112", "21312115", "41312113", "61312111", "14121115", "34121113", "23221114", "43221112", "12321115", "32321113", "52321111", "21421114", "41421112", "24112114", "13212115", "33212113", "22312114", "42312112", "11412115", "31412113", "51412111", "15121114", "24221113", "13321114", "33321112", "22421113", "42421111", "11521114", "31521112", "25112113", "14212114", "34212112", "23312113", "43312111", "12412114", "32412112", "21512113", "41512111", "16121113", "25221112", "14321113", "34321111", "23421112", "12521113", "32521111", "15212113", "24312112", "13412113", "33412111", "22512112", "11612113", "31612111", "31131115", "51131113", "21122116", "41122114", "61122112", "31113115", "51113113", "12131116", "32131114", "52131112", "21231115", "41231113", "61231111", "22122115", "42122113", "11222116", "31222114", "51222112", "12113116", "32113114", "52113112", "21213115", "41213113", "61213111", "13131115", "33131113", "22231114", "42231112", "11331115", "31331113", "51331111", "23122114", "43122112", "12222115", "32222113", "52222111", "21322114", "41322112", "13113115", "33113113", "22213114", "42213112", "11313115", "31313113", "51313111", "14131114", "34131112", "23231113", "43231111", "12331114", "32331112", "21431113", "41431111", "24122113", "13222114", "33222112", "22322113", "42322111", "11422114", "31422112", "14113114", "34113112", "23213113", "43213111", "12313114", "32313112", "21413113", "41413111", "15131113", "24231112", "13331113", "33331111", "22431112", "25122112", "14222113", "34222111", "23322112", "12422113", "32422111", "21522112", "15113113", "24213112", "13313113", "33313111", "22413112", "11513113", "31513111", "16131112", "25231111", "14331112", "23431111", "15222112", "24322111", "13422112", "22522111", "16113112", "25213111", "14313112", "23413111", "12513112", "21613111", "11141116", "31141114", "51141112", "21132115", "41132113", "61132111", "11123116", "31123114", "51123112", "21114115", "41114113", "61114111", "12141115", "32141113", "52141111", "21241114", "41241112", "22132114", "42132112", "11232115", "31232113", "51232111", "12123115", "32123113", "52123111", "21223114", "41223112", "22114114", "42114112", "11214115", "31214113", "51214111", "13141114", "33141112", "22241113", "42241111", "11341114", "31341112", "23132113", "43132111", "12232114", "32232112", "21332113", "41332111", "13123114", "33123112", "22223113", "42223111", "11323114", "31323112", "23114113", "43114111", "12214114", "32214112", "21314113", "41314111", "14141113", "34141111", "23241112", "12341113", "32341111", "24132112", "13232113", "33232111", "22332112", "11432113", "31432111", "14123113", "34123111", "23223112", "12323113", "32323111", "21423112", "24114112", "13214113", "33214111", "22314112", "11414113", "31414111", "15141112", "24241111", "13341112", "25132111", "14232112", "23332111", "12432112", "15123112", "24223111", "13323112", "22423111", "11523112", "25114111", "14214112", "23314111", "12414112", "21514111", "16141111", "14341111", "15232111", "13432111", "16123111", "14323111", "12523111", "15214111", "13414111", "11614111", "11151115", "31151113", "51151111", "21142114", "41142112", "11133115", "31133113", "51133111", "21124114", "41124112", "11115115", "31115113", "51115111", "12151114", "32151112", "21251113", "41251111", "22142113", "42142111", "11242114", "31242112", "12133114", "32133112", "21233113", "41233111", "22124113", "42124111", "11224114", "31224112", "12115114", "32115112", "21215113", "41215111", "13151113", "33151111", "22251112", "23142112", "12242113", "32242111", "21342112", "13133113", "33133111", "22233112", "11333113", "31333111", "23124112", "12224113", "32224111", "21324112", "13115113", "33115111", "22215112", "11315113", "31315111", "14151112", "23251111", "24142111", "13242112", "22342111", "14133112", "23233111", "12333112", "21433111", "24124111", "13224112", "22324111", "11424112", "14115112", "23215111", "12315112", "21415111", "15151111", "14242111", "15133111", "13333111", "14224111", "12424111", "15115111", "13315111", "11515111", "11161114", "31161112", "21152113", "41152111", "11143114", "31143112", "21134113", "41134111", "11125114", "31125112", "21116113", "41116111", "12161113", "32161111", "22152112", "11252113", "31252111", "12143113", "32143111", "21243112", "22134112", "11234113", "31234111", "12125113", "32125111", "21225112", "22116112", "11216113", "31216111", "13161112", "23152111", "12252112", "13143112", "22243111", "11343112", "23134111", "12234112", "21334111", "13125112", "22225111", "11325112", "23116111", "12216112", "21316111", "14161111", "13252111", "14143111", "12343111", "13234111", "11434111", "14125111", "12325111", "13216111", "11416111", "31111216", "51111214", "31211125", "51211123", "32111215", "52111213", "21211216", "41211214", "61211212", "12211126", "32211124", "52211122", "21311125", "41311123", "61311121", "13111216", "33111214", "22211215", "42211213", "11311216", "31311214", "51311212", "13211125", "33211123", "22311124", "42311122", "11411125", "31411123", "51411121", "14111215", "34111213", "23211214", "43211212", "12311215", "32311213", "52311211", "21411214", "41411212", "14211124", "34211122", "23311123", "43311121", "12411124", "32411122", "21511123", "41511121", "15111214", "24211213", "13311214", "33311212", "22411213", "42411211", "11511214", "31511212", "15211123", "24311122", "13411123", "33411121", "22511122", "11611123", "31611121", "16111213", "25211212", "14311213", "34311211", "23411212", "12511213", "32511211", "21611212", "21121126", "41121124", "61121122", "31112125", "51112123", "31121215", "51121213", "21112216", "41112214", "61112212", "22121125", "42121123", "11221126", "31221124", "51221122", "12112126", "32112124", "52112122", "12121216", "32121214", "52121212", "21221215", "41221213", "61221211", "22112215", "42112213", "11212216", "31212214", "51212212", "23121124", "43121122", "12221125", "32221123", "52221121", "21321124", "41321122", "13112125", "33112123", "13121215", "33121213", "11312125", "22221214", "42221212", "11321215", "31321213", "51321211", "23112214", "43112212", "12212215", "32212213", "52212211", "21312214", "41312212", "24121123", "13221124", "33221122", "22321123", "42321121", "11421124", "31421122", "14112124", "34112122", "14121214", "34121212", "12312124", "23221213", "43221211", "12321214", "32321212", "21421213", "41421211", "24112213", "13212214", "33212212", "22312213", "42312211", "11412214", "31412212", "25121122", "14221123", "34221121", "23321122", "12421123", "32421121", "21521122", "15112123", "15121213", "13312123", "24221212", "13321213", "33321211", "11512123", "22421212", "11521213", "31521211", "25112212", "14212213", "34212211", "23312212", "12412213", "32412211", "21512212", "15221122", "24321121", "13421122", "22521121", "16112122", "16121212", "14312122", "25221211", "14321212", "12512122", "23421211", "12521212", "15212212", "24312211", "13412212", "22512211", "11612212", "21131125", "41131123", "61131121", "11122126", "31122124", "51122122", "11131216", "31131214", "51131212", "21113125", "41113123", "61113121", "21122215", "41122213", "61122211", "11113216", "31113214", "51113212", "22131124", "42131122", "11231125", "31231123", "51231121", "12122125", "32122123", "52122121", "12131215", "32131213", "52131211", "21231214", "41231212", "22113124", "42113122", "11213125", "22122214", "42122212", "11222215", "31222213", "51222211", "12113215", "32113213", "52113211", "21213214", "41213212", "23131123", "43131121", "12231124", "32231122", "21331123", "41331121", "13122124", "33122122", "13131214", "33131212", "11322124", "22231213", "42231211", "11331214", "31331212", "23113123", "43113121", "12213124", "23122213", "43122211", "12222214", "32222212", "21322213", "41322211", "13113214", "33113212", "22213213", "42213211", "11313214", "31313212", "24131122", "13231123", "33231121", "22331122", "11431123", "31431121", "14122123", "34122121", "14131213", "34131211", "12322123", "23231212", "12331213", "32331211", "21431212", "24113122", "13213123", "24122212", "13222213", "33222211", "11413123", "22322212", "11422213", "31422211", "14113213", "34113211", "23213212", "12313213", "32313211", "21413212", "25131121", "14231122", "23331121", "12431122", "15122122", "15131212", "13322122", "24231211", "13331212", "11522122", "22431211", "25113121", "14213122", "25122211", "14222212", "12413122", "23322211", "12422212", "21522211", "15113212", "24213211", "13313212", "22413211", "11513212", "15231121", "13431121", "16122121", "16131211", "14322121", "14331211", "12522121", "15213121", "15222211", "13413121", "13422211", "11613121", "16113211", "14313211", "12513211", "21141124", "41141122", "11132125", "31132123", "51132121", "11141215", "31141213", "51141211", "21123124", "41123122", "21132214", "41132212", "11114125", "31114123", "51114121", "11123215", "31123213", "51123211", "21114214", "41114212", "22141123", "42141121", "11241124", "31241122", "12132124", "32132122", "12141214", "32141212", "21241213", "41241211", "22123123", "42123121", "11223124", "22132213", "42132211", "11232214", "31232212", "12114124", "32114122", "12123214", "32123212", "21223213", "41223211", "22114213", "42114211", "11214214", "31214212", "23141122", "12241123", "32241121", "21341122", "13132123", "33132121", "13141213", "33141211", "11332123", "22241212", "11341213", "31341211", "23123122", "12223123", "23132212", "12232213", "32232211", "21332212", "13114123", "33114121", "13123213", "33123211", "11314123", "22223212", "11323213", "31323211", "23114212", "12214213", "32214211", "21314212", "24141121", "13241122", "22341121", "14132122", "14141212", "12332122", "23241211", "12341212", "24123121", "13223122", "24132211", "13232212", "11423122", "22332211", "11432212", "14114122", "14123212", "12314122", "23223211", "12323212", "21423211", "24114211", "13214212", "22314211", "11414212", "14241121", "15132121", "15141211", "13332121", "13341211", "14223121", "14232211", "12423121", "12432211", "15114121", "15123211", "13314121", "13323211", "11514121", "11523211", "14214211", "12414211", "21151123", "41151121", "11142124", "31142122", "11151214", "31151212", "21133123", "41133121", "21142213", "41142211", "11124124", "31124122", "11133214", "31133212", "21115123", "41115121", "21124213", "41124211", "11115214", "31115212", "22151122", "11251123", "31251121", "12142123", "32142121", "12151213", "32151211", "21251212", "22133122", "11233123", "22142212", "11242213", "31242211", "12124123", "32124121", "12133213", "32133211", "21233212", "22115122", "11215123", "22124212", "11224213", "31224211", "12115213", "32115211", "21215212", "23151121", "12251122", "13142122", "13151212", "11342122", "22251211", "23133121", "12233122", "23142211", "12242212", "21342211", "13124122", "13133212", "11324122", "22233211", "11333212", "23115121", "12215122", "23124211", "12224212", "21324211", "13115212", "22215211", "11315212", "13251121", "14142121", "14151211", "12342121", "13233121", "13242211", "11433121", "14124121", "14133211", "12324121", "12333211", "13215121", "13224211", "11415121", "11424211", "14115211", "12315211", "21161122", "11152123", "31152121", "11161213", "31161211", "21143122", "21152212", "11134123", "31134121", "11143213", "31143211", "21125122", "21134212", "11116123", "31116121", "11125213", "31125211", "22161121", "12152122", "12161212", "22143121", "11243122", "22152211", "11252212", "12134122", "12143212", "21243211", "22125121", "11225122", "22134211", "11234212", "12116122", "12125212", "21225211", "13152121", "13161211", "12243121", "12252211", "13134121", "13143211", "11334121", "11343211", "12225121", "12234211", "13116121", "13125211", "11316121", "11325211", "21111226", "41111224", "61111222", "31111315", "51111313", "21211135", "41211133", "61211131", "22111225", "42111223", "11211226", "31211224", "51211222", "12111316", "32111314", "52111312", "21211315", "41211313", "61211311", "22211134", "42211132", "11311135", "31311133", "51311131", "23111224", "43111222", "12211225", "32211223", "52211221", "21311224", "41311222", "13111315", "33111313", "22211314", "42211312", "11311315", "31311313", "51311311", "23211133", "43211131", "12311134", "32311132", "21411133", "41411131", "24111223", "13211224", "33211222", "22311223", "42311221", "11411224", "31411222", "14111314", "34111312", "23211313", "43211311", "12311314", "32311312", "21411313", "41411311", "24211132", "13311133", "33311131", "22411132", "11511133", "31511131", "25111222", "14211223", "34211221", "23311222", "12411223", "32411221", "21511222", "15111313", "24211312", "13311313", "33311311", "22411312", "11511313", "31511311", "25211131", "14311132", "23411131", "12511132", "21611131", "15211222", "24311221", "13411222", "22511221", "11611222", "16111312", "25211311", "14311312", "23411311", "12511312", "21611311", "31121134", "51121132", "21112135", "41112133", "61112131", "21121225", "41121223", "61121221", "11112226", "31112224", "51112222", "11121316", "31121314", "51121312", "21112315", "41112313", "61112311", "12121135", "32121133", "52121131", "21221134", "41221132", "22112134", "42112132", "11212135", "22121224", "42121222", "11221225", "31221223", "51221221", "12112225", "32112223", "52112221", "12121315", "32121313", "52121311", "21221314", "41221312", "22112314", "42112312", "11212315", "31212313", "51212311", "13121134", "33121132", "22221133", "42221131", "11321134", "31321132", "23112133", "43112131", "12212134", "23121223", "43121221", "12221224", "32221222", "21321223", "41321221", "13112224", "33112222", "13121314", "33121312", "11312224", "22221313", "42221311", "11321314", "31321312", "23112313", "43112311", "12212314", "32212312", "21312313", "41312311", "14121133", "34121131", "23221132", "12321133", "32321131", "21421132", "24112132", "13212133", "24121222", "13221223", "33221221", "11412133", "22321222", "11421223", "31421221", "14112223", "34112221", "14121313", "34121311", "12312223", "23221312", "12321313", "32321311", "21421312", "24112312", "13212313", "33212311", "22312312", "11412313", "31412311", "15121132", "24221131", "13321132", "22421131"]), $a(["22121116", "42121114", "31221115", "51221113", "32112115", "52112113", "21212116", "41212114", "61212112", "23121115", "43121113", "12221116", "32221114", "52221112", "21321115", "41321113", "61321111", "13112116", "33112114", "22212115", "42212113", "11312116", "31312114", "51312112", "24121114", "13221115", "33221113", "22321114", "42321112", "11421115", "31421113", "51421111", "14112115", "34112113", "23212114", "43212112", "12312115", "32312113", "52312111", "21412114", "41412112", "25121113", "14221114", "34221112", "23321113", "43321111", "12421114", "32421112", "21521113", "41521111", "15112114", "24212113", "13312114", "33312112", "22412113", "42412111", "11512114", "31512112", "15221113", "24321112", "13421113", "33421111", "22521112", "16112113", "25212112", "14312113", "34312111", "23412112", "12512113", "32512111", "21612112", "21131116", "41131114", "61131112", "31122115", "51122113", "21113116", "41113114", "61113112", "22131115", "42131113", "11231116", "31231114", "51231112", "12122116", "32122114", "52122112", "21222115", "41222113", "61222111", "22113115", "42113113", "11213116", "31213114", "51213112", "23131114", "43131112", "12231115", "32231113", "52231111", "21331114", "41331112", "13122115", "33122113", "22222114", "42222112", "11322115", "31322113", "51322111", "23113114", "43113112", "12213115", "32213113", "52213111", "21313114", "41313112", "24131113", "13231114", "33231112", "22331113", "42331111", "11431114", "31431112", "14122114", "34122112", "23222113", "43222111", "12322114", "32322112", "21422113", "41422111", "24113113", "13213114", "33213112", "22313113", "42313111", "11413114", "31413112", "25131112", "14231113", "34231111", "23331112", "12431113", "32431111", "15122113", "24222112", "13322113", "33322111", "22422112", "11522113", "31522111", "25113112", "14213113", "34213111", "23313112", "12413113", "32413111", "21513112", "15231112", "24331111", "13431112", "16122112", "25222111", "14322112", "23422111", "12522112", "15213112", "24313111", "13413112", "22513111", "11613112", "21141115", "41141113", "61141111", "11132116", "31132114", "51132112", "21123115", "41123113", "61123111", "11114116", "31114114", "51114112", "22141114", "42141112", "11241115", "31241113", "51241111", "12132115", "32132113", "52132111", "21232114", "41232112", "22123114", "42123112", "11223115", "31223113", "51223111", "12114115", "32114113", "52114111", "21214114", "41214112", "23141113", "43141111", "12241114", "32241112", "21341113", "41341111", "13132114", "33132112", "22232113", "42232111", "11332114", "31332112", "23123113", "43123111", "12223114", "32223112", "21323113", "41323111", "13114114", "33114112", "22214113", "42214111", "11314114", "31314112", "24141112", "13241113", "33241111", "22341112", "14132113", "34132111", "23232112", "12332113", "32332111", "21432112", "24123112", "13223113", "33223111", "22323112", "11423113", "31423111", "14114113", "34114111", "23214112", "12314113", "32314111", "21414112", "25141111", "14241112", "23341111", "15132112", "24232111", "13332112", "22432111", "25123111", "14223112", "23323111", "12423112", "21523111", "15114112", "24214111", "13314112", "22414111", "11514112", "15241111", "16132111", "14332111", "15223111", "13423111", "16114111", "14314111", "12514111", "21151114", "41151112", "11142115", "31142113", "51142111", "21133114", "41133112", "11124115", "31124113", "51124111", "21115114", "41115112", "22151113", "42151111", "11251114", "31251112", "12142114", "32142112", "21242113", "41242111", "22133113", "42133111", "11233114", "31233112", "12124114", "32124112", "21224113", "41224111", "22115113", "42115111", "11215114", "31215112", "23151112", "12251113", "32251111", "13142113", "33142111", "22242112", "11342113", "31342111", "23133112", "12233113", "32233111", "21333112", "13124113", "33124111", "22224112", "11324113", "31324111", "23115112", "12215113", "32215111", "21315112", "24151111", "13251112", "14142112", "23242111", "12342112", "24133111", "13233112", "22333111", "11433112", "14124112", "23224111", "12324112", "21424111", "24115111", "13215112", "22315111", "11415112", "14251111", "15142111", "13342111", "14233111", "12433111", "15124111", "13324111", "11524111", "14215111", "12415111", "21161113", "41161111", "11152114", "31152112", "21143113", "41143111", "11134114", "31134112", "21125113", "41125111", "11116114", "31116112", "22161112", "12152113", "32152111", "21252112", "22143112", "11243113", "31243111", "12134113", "32134111", "21234112", "22125112", "11225113", "31225111", "12116113", "32116111", "21216112", "23161111", "13152112", "22252111", "23143111", "12243112", "21343111", "13134112", "22234111", "11334112", "23125111", "12225112", "21325111", "13116112", "22216111", "11316112", "14152111", "13243111", "14134111", "12334111", "13225111", "11425111", "14116111", "12316111", "41111215", "61111213", "21211126", "41211124", "61211122", "22111216", "42111214", "31211215", "51211213", "22211125", "42211123", "11311126", "31311124", "51311122", "23111215", "43111213", "12211216", "32211214", "52211212", "21311215", "41311213", "61311211", "23211124", "43211122", "12311125", "32311123", "52311121", "21411124", "41411122", "24111214", "13211215", "33211213", "22311214", "42311212", "11411215", "31411213", "51411211", "24211123", "13311124", "33311122", "22411123", "42411121", "11511124", "31511122", "25111213", "14211214", "34211212", "23311213", "43311211", "12411214", "32411212", "21511213", "41511211", "25211122", "14311123", "34311121", "23411122", "12511123", "32511121", "21611122", "15211213", "24311212", "13411213", "33411211", "22511212", "11611213", "31611211", "31121125", "51121123", "21112126", "41112124", "61112122", "21121216", "41121214", "61121212", "31112215", "51112213", "12121126", "32121124", "52121122", "21221125", "41221123", "61221121", "22112125", "42112123", "11212126", "22121215", "42121213", "11221216", "31221214", "51221212", "12112216", "32112214", "52112212", "21212215", "41212213", "61212211", "13121125", "33121123", "22221124", "42221122", "11321125", "31321123", "51321121", "23112124", "43112122", "12212125", "23121214", "43121212", "12221215", "32221213", "52221211", "21321214", "41321212", "13112215", "33112213", "22212214", "42212212", "11312215", "31312213", "51312211", "14121124", "34121122", "23221123", "43221121", "12321124", "32321122", "21421123", "41421121", "24112123", "13212124", "24121213", "13221214", "33221212", "11412124", "22321213", "42321211", "11421214", "31421212", "14112214", "34112212", "23212213", "43212211", "12312214", "32312212", "21412213", "41412211", "15121123", "24221122", "13321123", "33321121", "22421122", "11521123", "31521121", "25112122", "14212123", "25121212", "14221213", "34221211", "12412123", "23321212", "12421213", "32421211", "21521212", "15112213", "24212212", "13312213", "33312211", "22412212", "11512213", "31512211", "16121122", "25221121", "14321122", "23421121", "12521122", "15212122", "15221212", "13412122", "24321211", "13421212", "11612122", "22521211", "16112212", "25212211", "14312212", "23412211", "12512212", "21612211", "11131126", "31131124", "51131122", "21122125", "41122123", "61122121", "21131215", "41131213", "61131211", "11113126", "31113124", "51113122", "11122216", "31122214", "51122212", "21113215", "41113213", "61113211", "12131125", "32131123", "52131121", "21231124", "41231122", "22122124", "42122122", "11222125", "22131214", "42131212", "11231215", "31231213", "51231211", "12113125", "32113123", "52113121", "12122215", "32122213", "52122211", "21222214", "41222212", "22113214", "42113212", "11213215", "31213213", "51213211", "13131124", "33131122", "22231123", "42231121", "11331124", "31331122", "23122123", "43122121", "12222124", "23131213", "43131211", "12231214", "32231212", "21331213", "41331211", "13113124", "33113122", "13122214", "33122212", "11313124", "22222213", "42222211", "11322214", "31322212", "23113213", "43113211", "12213214", "32213212", "21313213", "41313211", "14131123", "34131121", "23231122", "12331123", "32331121", "21431122", "24122122", "13222123", "24131212", "13231213", "33231211", "11422123", "22331212", "11431213", "31431211", "14113123", "34113121", "14122213", "34122211", "12313123", "23222212", "12322213", "32322211", "21422212", "24113212", "13213213", "33213211", "22313212", "11413213", "31413211", "15131122", "24231121", "13331122", "22431121", "25122121", "14222122", "25131211", "14231212", "12422122", "23331211", "12431212", "15113122", "15122212", "13313122", "24222211", "13322212", "11513122", "22422211", "11522212", "25113211", "14213212", "23313211", "12413212", "21513211", "16131121", "14331121", "15222121", "15231211", "13422121", "13431211", "16113121", "16122211", "14313121", "14322211", "12513121", "12522211", "15213211", "13413211", "11613211", "11141125", "31141123", "51141121", "21132124", "41132122", "21141214", "41141212", "11123125", "31123123", "51123121", "11132215", "31132213", "51132211", "21114124", "41114122", "21123214", "41123212", "11114215", "31114213", "51114211", "12141124", "32141122", "21241123", "41241121", "22132123", "42132121", "11232124", "22141213", "42141211", "11241214", "31241212", "12123124", "32123122", "12132214", "32132212", "21232213", "41232211", "22114123", "42114121", "11214124", "22123213", "42123211", "11223214", "31223212", "12114214", "32114212", "21214213", "41214211", "13141123", "33141121", "22241122", "11341123", "31341121", "23132122", "12232123", "23141212", "12241213", "32241211", "21341212", "13123123", "33123121", "13132213", "33132211", "11323123", "22232212", "11332213", "31332211", "23114122", "12214123", "23123212", "12223213", "32223211", "21323212", "13114213", "33114211", "22214212", "11314213", "31314211", "14141122", "23241121", "12341122", "24132121", "13232122", "24141211", "13241212", "11432122", "22341211", "14123122", "14132212", "12323122", "23232211", "12332212", "21432211", "24114121", "13214122", "24123211", "13223212", "11414122", "22323211", "11423212", "14114212", "23214211", "12314212", "21414211", "15141121", "13341121", "14232121", "14241211", "12432121", "15123121", "15132211", "13323121", "13332211", "11523121", "14214121", "14223211", "12414121", "12423211", "15114211", "13314211", "11514211", "11151124", "31151122", "21142123", "41142121", "21151213", "41151211", "11133124", "31133122", "11142214", "31142212", "21124123", "41124121", "21133213", "41133211", "11115124", "31115122", "11124214", "31124212", "21115213", "41115211", "12151123", "32151121", "21251122", "22142122", "11242123", "22151212", "11251213", "31251211", "12133123", "32133121", "12142213", "32142211", "21242212", "22124122", "11224123", "22133212", "11233213", "31233211", "12115123", "32115121", "12124213", "32124211", "21224212", "22115212", "11215213", "31215211", "13151122", "22251121", "23142121", "12242122", "23151211", "12251212", "13133122", "13142212", "11333122", "22242211", "11342212", "23124121", "12224122", "23133211", "12233212", "21333211", "13115122", "13124212", "11315122", "22224211", "11324212", "23115211", "12215212", "21315211", "14151121", "13242121", "13251211", "14133121", "14142211", "12333121", "12342211", "13224121", "13233211", "11424121", "11433211", "14115121", "14124211", "12315121", "12324211", "13215211", "11415211", "11161123", "31161121", "21152122", "21161212", "11143123", "31143121", "11152213", "31152211", "21134122", "21143212", "11125123", "31125121", "11134213", "31134211", "21116122", "21125212", "12161122", "22152121", "11252122", "22161211", "12143122", "12152212", "21252211", "22134121", "11234122", "22143211", "11243212", "12125122", "12134212", "21234211", "22116121", "11216122", "22125211", "11225212", "13161121", "12252121", "13143121", "13152211", "11343121", "12234121", "12243211", "13125121", "13134211", "11325121", "11334211", "12216121", "12225211", "31111225", "51111223", "21111316", "41111314", "61111312", "31211134", "51211132", "12111226", "32111224", "52111222", "21211225", "41211223", "61211221", "22111315", "42111313", "11211316", "31211314", "51211312", "12211135", "32211133", "52211131", "21311134", "41311132", "13111225", "33111223", "22211224", "42211222", "11311225", "31311223", "51311221", "23111314", "43111312", "12211315", "32211313", "52211311", "21311314", "41311312", "13211134", "33211132", "22311133", "42311131", "11411134", "31411132", "14111224", "34111222", "23211223", "43211221", "12311224", "32311222", "21411223", "41411221", "24111313", "13211314", "33211312", "22311313", "42311311", "11411314", "31411312", "14211133", "34211131", "23311132", "12411133", "32411131", "21511132", "15111223", "24211222", "13311223", "33311221", "22411222", "11511223", "31511221", "25111312", "14211313", "34211311", "23311312", "12411313", "32411311", "21511312", "15211132", "24311131", "13411132", "22511131", "11611132", "16111222", "25211221", "14311222", "23411221", "12511222", "21611221", "15211312", "24311311", "13411312", "22511311", "11611312", "21121135", "41121133", "61121131", "11112136", "31112134", "51112132", "11121226", "31121224", "51121222", "21112225", "41112223", "61112221", "21121315", "41121313", "61121311", "11112316", "31112314", "51112312", "22121134", "42121132", "11221135", "31221133", "51221131", "12112135", "32112133", "52112131", "12121225", "32121223", "52121221", "21221224", "41221222", "22112224", "42112222", "11212225", "22121314", "42121312", "11221315", "31221313", "51221311", "12112315", "32112313", "52112311", "21212314", "41212312", "23121133", "43121131", "12221134", "32221132", "21321133", "41321131", "13112134", "33112132", "13121224", "33121222", "11312134", "22221223", "42221221", "11321224", "31321222", "23112223", "43112221", "12212224", "23121313", "43121311", "12221314", "32221312", "21321313", "41321311", "13112314", "33112312", "22212313", "42212311", "11312314", "31312312", "24121132", "13221133", "33221131", "22321132", "11421133", "31421131", "14112133", "34112131", "14121223", "34121221", "12312133", "23221222", "12321223", "32321221", "21421222", "24112222", "13212223", "24121312", "13221313", "33221311", "11412223", "22321312", "11421313", "31421311", "14112313", "34112311", "23212312", "12312313", "32312311", "21412312", "25121131", "14221132", "23321131", "12421132", "21521131", "15112132", "15121222", "13312132", "24221221", "13321222", "11512132", "22421221", "11521222", "25112221", "14212222", "25121311", "14221312", "12412222", "23321311", "12421312", "21521311", "15112312", "24212311", "13312312", "22412311", "11512312", "15221131", "13421131", "16112131", "16121221", "14312131", "14321221", "12512131", "12521221", "15212221", "15221311", "13412221", "13421311", "11612221", "16112311", "14312311", "12512311", "21131134", "41131132", "11122135", "31122133", "51122131", "11131225", "31131223", "51131221", "21113134", "41113132", "21122224", "41122222", "21131314", "41131312", "11113225", "31113223", "51113221", "11122315", "31122313", "51122311", "21113314", "41113312", "22131133", "42131131", "11231134", "31231132", "12122134", "32122132", "12131224", "32131222", "21231223", "41231221", "22113133", "42113131", "11213134", "22122223", "42122221", "11222224", "22131313", "42131311", "11231314", "31231312", "12113224", "32113222", "12122314", "32122312", "21222313", "41222311", "22113313", "42113311", "11213314", "31213312", "23131132", "12231133", "32231131", "21331132", "13122133", "33122131", "13131223", "33131221", "11322133", "22231222", "11331223", "31331221", "23113132", "12213133", "23122222", "12222223", "23131312", "12231313", "32231311", "21331312", "13113223", "33113221", "13122313", "33122311", "11313223", "22222312", "11322313", "31322311", "23113312", "12213313", "32213311", "21313312", "24131131", "13231132", "22331131", "11431132", "14122132", "14131222", "12322132", "23231221", "12331222", "21431221", "24113131", "13213132", "24122221", "13222222", "24131311", "11413132", "13231312", "11422222", "22331311", "11431312", "14113222", "14122312", "12313222", "23222311", "12322312", "21422311", "24113311", "13213312", "22313311", "11413312", "14231131", "12431131", "15122131", "15131221", "13322131", "13331221", "11522131", "14213131", "14222221", "12413131", "14231311", "12422221", "12431311", "15113221", "15122311", "13313221", "13322311", "11513221", "11522311", "14213311", "12413311", "21141133", "41141131", "11132134", "31132132", "11141224", "31141222", "21123133", "41123131", "21132223", "41132221", "21141313", "41141311", "11114134", "31114132", "11123224", "31123222", "11132314", "31132312", "21114223", "41114221", "21123313", "41123311", "11114314", "31114312", "22141132", "11241133", "31241131", "12132133", "32132131", "12141223", "32141221", "21241222", "22123132", "11223133", "22132222", "11232223", "22141312", "11241313", "31241311", "12114133", "32114131", "12123223", "32123221", "12132313", "32132311", "21232312", "22114222", "11214223", "22123312", "11223313", "31223311", "12114313", "32114311", "21214312", "23141131", "12241132", "21341131", "13132132", "13141222", "11332132", "22241221", "11341222", "23123131", "12223132", "23132221", "12232222", "23141311", "12241312", "21341311", "13114132", "13123222", "11314132", "13132312", "11323222", "22232311", "11332312", "23114221", "12214222", "23123311", "12223312", "21323311", "13114312", "22214311", "11314312", "13241131", "14132131", "14141221", "12332131", "12341221", "13223131", "13232221", "11423131", "13241311", "11432221", "14114131", "14123221", "12314131", "14132311", "12323221", "12332311", "13214221", "13223311", "11414221", "11423311", "14114311", "12314311", "21151132", "11142133", "31142131", "11151223", "31151221", "21133132", "21142222", "21151312", "11124133", "31124131", "11133223", "31133221", "11142313", "31142311", "21115132", "21124222", "21133312", "11115223", "31115221", "11124313", "31124311", "22151131", "11251132", "12142132", "12151222", "21251221", "22133131", "11233132", "22142221", "11242222", "22151311", "11251312", "12124132", "12133222", "12142312", "21242311", "22115131", "11215132", "22124221", "11224222", "22133311", "11233312", "12115222", "12124312", "21224311", "12251131", "13142131", "13151221", "11342131", "12233131", "12242221", "12251311", "13124131", "13133221", "11324131", "13142311", "11333221", "11342311", "12215131", "12224221", "12233311", "13115221", "13124311", "11315221", "11324311", "21161131", "11152132", "11161222", "21143131", "21152221", "21161311", "11134132", "11143222", "11152312", "21125131", "21134221", "21143311", "11116132", "11125222", "11134312", "12152131", "12161221", "11243131", "11252221", "12134131", "12143221", "12152311", "11225131", "11234221", "11243311", "12116131", "12125221", "12134311", "21111235", "41111233", "61111231", "11111326", "31111324", "51111322", "21111415", "41111413", "61111411", "21211144", "41211142", "22111234", "42111232", "11211235", "31211233", "51211231", "12111325", "32111323", "52111321", "21211324", "41211322", "22111414", "42111412", "11211415", "31211413", "51211411", "22211143", "42211141", "11311144", "31311142", "23111233", "43111231", "12211234", "32211232", "21311233", "41311231", "13111324", "33111322", "22211323", "42211321", "11311324", "31311322", "23111413", "43111411", "12211414", "32211412", "21311413", "41311411", "23211142", "12311143", "32311141", "21411142", "24111232", "13211233", "33211231", "22311232", "11411233", "31411231", "14111323", "34111321", "23211322", "12311323", "32311321", "21411322", "24111412", "13211413", "33211411", "22311412", "11411413", "31411411", "24211141", "13311142", "22411141", "11511142", "25111231", "14211232", "23311231", "12411232", "21511231", "15111322", "24211321", "13311322", "22411321", "11511322", "25111411", "14211412", "23311411", "12411412", "21511411", "14311141", "12511141", "15211231", "13411231", "11611231", "16111321", "14311321", "12511321", "15211411", "13411411", "11611411", "31121143", "51121141", "21112144", "41112142", "21121234", "41121232", "11112235", "31112233", "51112231", "11121325", "31121323", "51121321", "21112324", "41112322", "21121414", "41121412", "11112415", "31112413", "51112411", "12121144", "32121142", "21221143", "41221141", "22112143", "42112141", "11212144", "22121233", "42121231", "11221234", "31221232", "12112234", "32112232", "12121324", "32121322", "21221323", "41221321", "22112323", "42112321", "11212324", "22121413", "42121411", "11221414", "31221412", "12112414", "32112412", "21212413", "41212411", "13121143", "33121141", "22221142", "11321143", "31321141", "23112142", "12212143", "23121232", "12221233", "32221231", "21321232", "13112233", "33112231", "13121323", "33121321", "11312233", "22221322", "11321323", "31321321", "23112322", "12212323", "23121412", "12221413", "32221411", "21321412", "13112413", "33112411", "22212412", "11312413", "31312411", "14121142", "23221141", "12321142", "21421141", "24112141", "13212142", "24121231", "13221232", "11412142", "22321231", "11421232", "14112232", "14121322", "12312232", "23221321", "12321322", "21421321", "24112321", "13212322", "24121411", "13221412", "11412322", "22321411", "11421412", "14112412", "23212411", "12312412", "21412411", "15121141", "13321141", "11521141", "14212141", "14221231", "12412141", "12421231", "15112231", "15121321", "13312231", "13321321", "11512231", "11521321", "14212321", "14221411", "12412321", "12421411", "15112411", "13312411", "11512411", "11131144", "31131142", "21122143", "41122141", "21131233", "41131231", "11113144", "31113142", "11122234", "31122232", "11131324", "31131322", "21113233", "41113231", "21122323", "41122321", "21131413", "41131411", "11113324", "31113322", "11122414", "31122412", "21113413", "41113411", "12131143", "32131141", "21231142", "22122142", "11222143", "22131232", "11231233", "31231231", "12113143", "32113141", "12122233", "32122231", "12131323", "32131321", "21231322", "22113232", "11213233", "22122322", "11222323", "22131412", "11231413", "31231411", "12113323", "32113321", "12122413", "32122411", "21222412", "22113412", "11213413", "31213411", "13131142", "22231141", "11331142", "23122141", "12222142", "23131231", "12231232", "21331231", "13113142", "13122232", "11313142", "13131322", "11322232", "22231321", "11331322", "23113231", "12213232", "23122321", "12222322", "23131411", "12231412", "21331411", "13113322", "13122412", "11313322", "22222411", "11322412", "23113411", "12213412", "21313411", "14131141", "12331141", "13222141", "13231231", "11422141", "11431231", "14113141", "14122231", "12313141", "14131321", "12322231", "12331321", "13213231", "13222321", "11413231", "13231411", "11422321", "11431411", "14113321", "14122411", "12313321", "12322411", "13213411", "11413411", "11141143", "31141141", "21132142", "21141232", "11123143", "31123141", "11132233", "31132231", "11141323", "31141321", "21114142", "21123232", "21132322", "21141412", "11114233", "31114231", "11123323", "31123321", "11132413", "31132411", "21114322", "21123412", "12141142", "21241141", "22132141", "11232142", "22141231", "11241232", "12123142", "12132232", "12141322", "21241321", "22114141", "11214142", "22123231", "11223232", "22132321", "11232322", "22141411", "11241412", "12114232", "12123322", "12132412", "21232411", "22114321", "11214322", "22123411", "11223412", "13141141", "11341141", "12232141", "12241231", "13123141", "13132231", "11323141", "13141321", "11332231", "11341321", "12214141", "12223231", "12232321", "12241411", "13114231", "13123321", "11314231", "13132411", "11323321", "11332411", "12214321", "12223411", "11151142", "21142141", "21151231", "11133142", "11142232", "11151322", "21124141", "21133231", "21142321", "21151411", "11115142", "11124232", "11133322", "11142412", "21115231", "21124321", "21133411", "12151141", "11242141", "11251231", "12133141", "12142231", "12151321", "11224141", "11233231", "11242321", "11251411", "12115141", "12124231", "12133321", "12142411", "11215231", "11224321", "11233411", "11161141", "11143141", "11152231", "11161321", "11125141", "11134231", "11143321", "11152411", "11111245", "31111243", "51111241", "21111334", "41111332", "11111425", "31111423", "51111421", "21111514", "41111512", "31211152", "12111244", "32111242", "21211243", "41211241", "22111333", "42111331", "11211334", "31211332", "12111424", "32111422", "21211423", "41211421", "22111513", "42111511", "11211514", "31211512", "12211153", "32211151", "21311152", "13111243", "33111241", "22211242", "11311243", "31311241", "23111332", "12211333", "32211331", "21311332", "13111423", "33111421", "22211422", "11311423", "31311421", "23111512", "12211513", "32211511", "21311512", "13211152", "22311151", "11411152", "14111242", "23211241", "12311242", "21411241", "24111331", "13211332", "22311331", "11411332", "14111422", "23211421", "12311422", "21411421", "24111511", "13211512", "22311511", "11411512", "14211151", "12411151", "15111241", "13311241", "11511241", "14211331", "12411331", "15111421", "13311421", "11511421", "14211511", "12411511", "21121153", "41121151", "11112154", "31112152", "11121244", "31121242", "21112243", "41112241", "21121333", "41121331", "11112334", "31112332", "11121424", "31121422", "21112423", "41112421", "21121513", "41121511", "11112514", "31112512", "22121152", "11221153", "31221151", "12112153", "32112151", "12121243", "32121241", "21221242", "22112242", "11212243", "22121332", "11221333", "31221331", "12112333", "32112331", "12121423", "32121421", "21221422", "22112422", "11212423", "22121512", "11221513", "31221511", "12112513", "32112511", "21212512", "23121151", "12221152", "21321151", "13112152", "13121242", "11312152", "22221241", "11321242", "23112241", "12212242", "23121331", "12221332", "21321331", "13112332", "13121422", "11312332", "22221421", "11321422", "23112421", "12212422", "23121511", "12221512", "21321511", "13112512", "22212511", "11312512", "13221151", "11421151", "14112151", "14121241", "12312151", "12321241", "13212241", "13221331", "11412241", "11421331", "14112331", "14121421", "12312331", "12321421", "13212421", "13221511", "11412421", "11421511", "14112511", "12312511", "21131152", "11122153", "31122151", "11131243", "31131241", "21113152", "21122242", "21131332", "11113243", "31113241", "11122333", "31122331", "11131423", "31131421", "21113332", "21122422", "21131512", "11113423", "31113421", "11122513", "31122511", "22131151", "11231152", "12122152", "12131242", "21231241", "22113151", "11213152", "22122241", "11222242", "22131331", "11231332", "12113242", "12122332", "12131422", "21231421", "22113331", "11213332", "22122421", "11222422", "22131511", "11231512", "12113422", "12122512", "21222511", "12231151", "13122151", "13131241", "11322151", "11331241", "12213151", "12222241", "12231331", "13113241", "13122331", "11313241", "13131421", "11322331", "11331421", "12213331", "12222421", "12231511", "13113421", "13122511", "11313421", "11322511", "21141151", "11132152", "11141242", "21123151", "21132241", "21141331", "11114152", "11123242", "11132332", "11141422", "21114241", "21123331", "21132421", "21141511", "11114332", "11123422", "11132512", "11241151", "12132151", "12141241", "11223151", "11232241", "11241331", "12114151", "12123241", "12132331", "12141421", "11214241", "11223331", "11232421", "11241511", "12114331", "12123421", "12132511", "11142151", "11151241", "11124151", "11133241", "11142331", "11151421", "11115241", "11124331", "11133421", "11142511", "21111253", "41111251", "11111344", "31111342", "21111433", "41111431", "11111524", "31111522", "21111613", "41111611", "21211162", "22111252", "11211253", "31211251", "12111343", "32111341", "21211342", "22111432", "11211433", "31211431", "12111523", "32111521", "21211522", "22111612", "11211613", "31211611", "22211161", "11311162", "23111251", "12211252", "21311251", "13111342", "22211341", "11311342", "23111431", "12211432", "21311431", "13111522", "22211521", "11311522", "23111611", "12211612", "21311611", "12311161", "13211251", "11411251", "14111341", "12311341", "13211431", "11411431", "14111521", "12311521", "13211611", "11411611", "31121161", "21112162", "21121252", "11112253", "31112251", "11121343", "31121341", "21112342", "21121432", "11112433", "31112431", "11121523", "31121521", "21112522", "21121612", "12121162", "21221161", "22112161", "11212162", "22121251", "11221252", "12112252", "12121342", "21221341", "22112341", "11212342", "22121431", "11221432", "12112432", "12121522", "21221521", "22112521", "11212522", "22121611", "11221612", "13121161", "11321161", "12212161", "12221251", "13112251", "13121341", "11312251", "11321341", "12212341", "12221431", "13112431", "13121521", "11312431", "11321521", "12212521", "12221611", "11131162", "21122161", "21131251", "11113162"])]); //#14443 + $1.parity = $a(["1001", "0101", "1100", "0011", "1010", "0110", "1111", "0000"]); //#14447 + $1.rowbits = $a($1.r); //#14450 + for (var _5z = 0, _5y = $f($1.r - 1); _5z <= _5y; _5z += 1) { //#14470 + $1.i = _5z; //#14452 + $k[$j++] = 'p'; //#14453 + if ($1.i != $f($1.r - 1)) { //#14453 + $k[$j++] = $get($1.parity, $1.i); //#14453 + } else { //#14453 + $k[$j++] = "0000"; //#14453 + } //#14453 + var _65 = $k[--$j]; //#14453 + $1[$k[--$j]] = _65; //#14453 + $1.ccrow = $geti($1.ccs, $1.i * 8, 8); //#14454 + $k[$j++] = Infinity; //#14456 + for (var _6A = 0; _6A <= 7; _6A += 2) { //#14456 + $aload($geti($1.ccrow, _6A, 2)); //#14456 + var _6D = $k[--$j]; //#14456 + var _6E = $k[--$j]; //#14456 + $k[$j++] = $f(_6D + (_6E * 49)); //#14456 + } //#14456 + $1.scrow = $a(); //#14456 + $k[$j++] = Infinity; //#14464 + $k[$j++] = 10; //#14463 + $k[$j++] = 1; //#14463 + $k[$j++] = 1; //#14463 + for (var _6G = 0; _6G <= 3; _6G += 1) { //#14463 + $1.j = _6G; //#14461 + $forall($get($get($1.patterns, $f($get($1.p, $1.j) - 48)), $get($1.scrow, $1.j)), function() { //#14462 + var _6Q = $k[--$j]; //#14462 + $k[$j++] = $f(_6Q - 48); //#14462 + }); //#14462 + } //#14462 + $k[$j++] = 4; //#14464 + $k[$j++] = 1; //#14464 + $1.sbs = $a(); //#14464 + $k[$j++] = Infinity; //#14466 + var _6S = $1.sbs; //#14467 + $k[$j++] = 1; //#14467 + for (var _6T = 0, _6U = _6S.length; _6T < _6U; _6T++) { //#14467 + var _6W = $k[--$j]; //#14467 + var _6X = (_6W == 0) ? 1 : 0; //#14467 + $k[$j++] = _6W; //#14467 + for (var _6Y = 0, _6Z = $get(_6S, _6T); _6Y < _6Z; _6Y++) { //#14467 + $k[$j++] = _6X //#14467 + } //#14467 + } //#14467 + $astore($a($counttomark() - 1)); //#14468 + var _6c = $k[--$j]; //#14468 + var _6d = $k[--$j]; //#14468 + $k[$j++] = _6c; //#14468 + $k[$j++] = _6d; //#14468 + $j--; //#14468 + var _6e = $k[--$j]; //#14468 + var _6f = $k[--$j]; //#14468 + $k[$j++] = _6e; //#14468 + $k[$j++] = _6f; //#14468 + $j--; //#14468 + $put($1.rowbits, $1.i, $k[--$j]); //#14469 + } //#14469 + $k[$j++] = Infinity; //#14481 + for (var _6k = 0, _6l = 81 * $1.sepheight; _6k < _6l; _6k++) { //#14474 + $k[$j++] = 1; //#14474 + } //#14474 + for (var _6o = 0, _6n = $f($1.r - 2); _6o <= _6n; _6o += 1) { //#14479 + $1.i = _6o; //#14476 + for (var _6q = 0, _6r = $1.rowheight; _6q < _6r; _6q++) { //#14477 + $aload($get($1.rowbits, $1.i)); //#14477 + } //#14477 + for (var _6w = 0, _6x = $1.sepheight; _6w < _6x; _6w++) { //#14478 + for (var _6y = 0, _6z = 10; _6y < _6z; _6y++) { //#14478 + $k[$j++] = 0; //#14478 + } //#14478 + for (var _70 = 0, _71 = 70; _70 < _71; _70++) { //#14478 + $k[$j++] = 1; //#14478 + } //#14478 + $k[$j++] = 0; //#14478 + } //#14478 + } //#14478 + for (var _73 = 0, _74 = $1.rowheight; _73 < _74; _73++) { //#14480 + $aload($get($1.rowbits, $f($1.r - 1))); //#14480 + } //#14480 + for (var _79 = 0, _7A = 81 * $1.sepheight; _79 < _7A; _79++) { //#14481 + $k[$j++] = 1; //#14481 + } //#14481 + $1.pixs = $a(); //#14481 + var _7G = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", 81], + ["pixy", ~~($1.pixs.length / 81)], + ["height", (~~($1.pixs.length / 81)) / 72], + ["width", 81 / 72], + ["opt", $1.options] + ]); //#14492 + $k[$j++] = _7G; //#14495 + if (!$1.dontdraw) { //#14495 + $0.renmatrix(); //#14495 + } //#14495 }; $0.flattermarken = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = .3; - $forall($1.barcode, function() { - var _3 = $k[--$j]; - if (_3 < 48 || _3 > 57) { - $k[$j++] = "bwipp.flattermarkenBadCharacter"; - $k[$j++] = "Flattermarken must contain only digits"; - $0.raiseerror(); - } - }); - $forall($1.options, function() { - var _5 = $k[--$j]; - $1[$k[--$j]] = _5; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $forall($1.barcode, function() { - var _C = $k[--$j]; - if (_C < 48 || _C > 57) { - $k[$j++] = "bwipp.flattermarkenBadCharacter"; - $k[$j++] = "Flattermarken must contain only digits"; - $0.raiseerror(); - } - }); - $1.encs = $a([ "0018", "0117", "0216", "0315", "0414", "0513", "0612", "0711", "0810", "0900" ]); - $1.barchars = "1234567890"; - $1.barlen = $1.barcode.length; - $1.sbs = $s($1.barlen * 4); - $1.txt = $a($1.barlen); - for (var _L = 0, _K = $1.barlen - 1; _L <= _K; _L += 1) { - $1.i = _L; - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $1.i * 4, $1.enc); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $1.i * 9, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _h = $1.sbs; - for (var _i = 0, _j = _h.length; _i < _j; _i++) { - $k[$j++] = $get(_h, _i) - 48; - } - var _l = $a(); - $k[$j++] = Infinity; - for (var _n = 0, _o = ~~(($1.sbs.length + 1) / 2); _n < _o; _n++) { - $k[$j++] = $1.height; - } - var _q = $a(); - $k[$j++] = Infinity; - for (var _s = 0, _t = ~~(($1.sbs.length + 1) / 2); _s < _t; _s++) { - $k[$j++] = 0; - } - var _u = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _l; - $k[$j++] = "bhs"; - $k[$j++] = _q; - $k[$j++] = "bbs"; - $k[$j++] = _u; - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _x = $d(); - $k[$j++] = _x; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#14786 + $1.options = $k[--$j]; //#14788 + $1.barcode = $k[--$j]; //#14789 + $1.dontdraw = false; //#14791 + $1.includetext = false; //#14792 + $1.textfont = "OCR-B"; //#14793 + $1.textsize = 10; //#14794 + $1.textyoffset = -8; //#14795 + $1.height = 0.3; //#14796 + $forall($1.barcode, function() { //#14803 + var _3 = $k[--$j]; //#14800 + if ((_3 < 48) || (_3 > 57)) { //#14802 + $k[$j++] = 'bwipp.flattermarkenBadCharacter'; //#14801 + $k[$j++] = "Flattermarken must contain only digits"; //#14801 + $0.raiseerror(); //#14801 + } //#14801 + }); //#14801 + $forall($1.options, function() { //#14814 + var _5 = $k[--$j]; //#14814 + $1[$k[--$j]] = _5; //#14814 + }); //#14814 + $1.textfont = "" + $1.textfont; //#14816 + $1.textsize = +$1.textsize; //#14817 + $1.textyoffset = +$1.textyoffset; //#14818 + $1.height = +$1.height; //#14819 + $forall($1.barcode, function() { //#14826 + var _C = $k[--$j]; //#14823 + if ((_C < 48) || (_C > 57)) { //#14825 + $k[$j++] = 'bwipp.flattermarkenBadCharacter'; //#14824 + $k[$j++] = "Flattermarken must contain only digits"; //#14824 + $0.raiseerror(); //#14824 + } //#14824 + }); //#14824 + $1.encs = $a(["0018", "0117", "0216", "0315", "0414", "0513", "0612", "0711", "0810", "0900"]); //#14832 + $1.barchars = "1234567890"; //#14835 + $1.barlen = $1.barcode.length; //#14837 + $1.sbs = $s($1.barlen * 4); //#14839 + $1.txt = $a($1.barlen); //#14840 + for (var _L = 0, _K = $1.barlen - 1; _L <= _K; _L += 1) { //#14852 + $1.i = _L; //#14843 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#14845 + $j--; //#14846 + $1.indx = $k[--$j].length; //#14847 + $j -= 2; //#14848 + $1.enc = $get($1.encs, $1.indx); //#14849 + $puti($1.sbs, $1.i * 4, $1.enc); //#14850 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $1.i * 9, $1.textyoffset, $1.textfont, $1.textsize])); //#14851 + } //#14851 + $k[$j++] = Infinity; //#14861 + $k[$j++] = Infinity; //#14857 + var _h = $1.sbs; //#14857 + for (var _i = 0, _j = _h.length; _i < _j; _i++) { //#14857 + $k[$j++] = $get(_h, _i) - 48; //#14857 + } //#14857 + var _l = $a(); //#14857 + $k[$j++] = Infinity; //#14858 + for (var _n = 0, _o = ~~(($1.sbs.length + 1) / 2); _n < _o; _n++) { //#14858 + $k[$j++] = $1.height; //#14858 + } //#14858 + var _q = $a(); //#14858 + $k[$j++] = Infinity; //#14859 + for (var _s = 0, _t = ~~(($1.sbs.length + 1) / 2); _s < _t; _s++) { //#14859 + $k[$j++] = 0; //#14859 + } //#14859 + var _u = $a(); //#14859 + $k[$j++] = 'ren'; //#14861 + $k[$j++] = $0.renlinear; //#14861 + $k[$j++] = 'sbs'; //#14861 + $k[$j++] = _l; //#14861 + $k[$j++] = 'bhs'; //#14861 + $k[$j++] = _q; //#14861 + $k[$j++] = 'bbs'; //#14861 + $k[$j++] = _u; //#14861 + $k[$j++] = 'txt'; //#14861 + $k[$j++] = $1.txt; //#14861 + $k[$j++] = 'opt'; //#14861 + $k[$j++] = $1.options; //#14861 + var _x = $d(); //#14861 + $k[$j++] = _x; //#14864 + if (!$1.dontdraw) { //#14864 + $0.renlinear(); //#14864 + } //#14864 }; $0.raw = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.height = +$1.height; - $forall($1.barcode, function() { - var _7 = $k[--$j]; - if (_7 < 49 || _7 > 57) { - $k[$j++] = "bwipp.rawBadCharacter"; - $k[$j++] = "Raw must contain only digits 1 to 9"; - $0.raiseerror(); - } - }); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - $forall($1.barcode, function() { - var _9 = $k[--$j]; - $k[$j++] = $f(_9 - 48); - }); - var _A = $a(); - $k[$j++] = Infinity; - for (var _C = 0, _D = ~~(($1.barcode.length + 1) / 2); _C < _D; _C++) { - $k[$j++] = $1.height; - } - var _F = $a(); - $k[$j++] = Infinity; - for (var _H = 0, _I = ~~(($1.barcode.length + 1) / 2); _H < _I; _H++) { - $k[$j++] = 0; - } - var _J = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _A; - $k[$j++] = "bhs"; - $k[$j++] = _F; - $k[$j++] = "bbs"; - $k[$j++] = _J; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _L = $d(); - $k[$j++] = _L; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#14893 + $1.options = $k[--$j]; //#14895 + $1.barcode = $k[--$j]; //#14896 + $1.dontdraw = false; //#14898 + $1.height = 1; //#14899 + $forall($1.options, function() { //#14910 + var _3 = $k[--$j]; //#14910 + $1[$k[--$j]] = _3; //#14910 + }); //#14910 + $1.height = +$1.height; //#14912 + $forall($1.barcode, function() { //#14919 + var _7 = $k[--$j]; //#14916 + if ((_7 < 49) || (_7 > 57)) { //#14918 + $k[$j++] = 'bwipp.rawBadCharacter'; //#14917 + $k[$j++] = "Raw must contain only digits 1 to 9"; //#14917 + $0.raiseerror(); //#14917 + } //#14917 + }); //#14917 + $k[$j++] = Infinity; //#14927 + $k[$j++] = Infinity; //#14924 + $forall($1.barcode, function() { //#14924 + var _9 = $k[--$j]; //#14924 + $k[$j++] = $f(_9 - 48); //#14924 + }); //#14924 + var _A = $a(); //#14924 + $k[$j++] = Infinity; //#14925 + for (var _C = 0, _D = ~~(($1.barcode.length + 1) / 2); _C < _D; _C++) { //#14925 + $k[$j++] = $1.height; //#14925 + } //#14925 + var _F = $a(); //#14925 + $k[$j++] = Infinity; //#14926 + for (var _H = 0, _I = ~~(($1.barcode.length + 1) / 2); _H < _I; _H++) { //#14926 + $k[$j++] = 0; //#14926 + } //#14926 + var _J = $a(); //#14926 + $k[$j++] = 'ren'; //#14927 + $k[$j++] = $0.renlinear; //#14927 + $k[$j++] = 'sbs'; //#14927 + $k[$j++] = _A; //#14927 + $k[$j++] = 'bhs'; //#14927 + $k[$j++] = _F; //#14927 + $k[$j++] = 'bbs'; //#14927 + $k[$j++] = _J; //#14927 + $k[$j++] = 'opt'; //#14927 + $k[$j++] = $1.options; //#14927 + var _L = $d(); //#14927 + $k[$j++] = _L; //#14930 + if (!$1.dontdraw) { //#14930 + $0.renlinear(); //#14930 + } //#14930 }; $0.daft = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.height = .175; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.height = +$1.height; - $forall($1.barcode, function() { - var _7 = $k[--$j]; - if (_7 != 68 && (_7 != 65 && (_7 != 70 && _7 != 84))) { - $k[$j++] = "bwipp.daftBadCharacter"; - $k[$j++] = "DAFT must contain only characters D, A, F and T"; - $0.raiseerror(); - } - }); - $1.barlen = $1.barcode.length; - $1.bbs = $a($1.barlen); - $1.bhs = $a($1.barlen); - for (var _F = 0, _E = $1.barlen - 1; _F <= _E; _F += 1) { - $1.i = _F; - $1.enc = $geti($1.barcode, $1.i, 1); - if ($eq($1.enc, "D")) { - $put($1.bbs, $1.i, 0 * $1.height / 8); - $put($1.bhs, $1.i, 5 * $1.height / 8); - } - if ($eq($1.enc, "A")) { - $put($1.bbs, $1.i, 3 * $1.height / 8); - $put($1.bhs, $1.i, 5 * $1.height / 8); - } - if ($eq($1.enc, "F")) { - $put($1.bbs, $1.i, 0 * $1.height / 8); - $put($1.bhs, $1.i, 8 * $1.height / 8); - } - if ($eq($1.enc, "T")) { - $put($1.bbs, $1.i, 3 * $1.height / 8); - $put($1.bhs, $1.i, 2 * $1.height / 8); - } - } - $k[$j++] = Infinity; - var _l = $1.bbs; - var _m = $1.bhs; - $k[$j++] = Infinity; - for (var _o = 0, _p = $1.bhs.length - 1; _o < _p; _o++) { - $k[$j++] = 1.44; - $k[$j++] = 1.872; - } - $k[$j++] = 1.44; - var _q = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "bbs"; - $k[$j++] = _l; - $k[$j++] = "bhs"; - $k[$j++] = _m; - $k[$j++] = "sbs"; - $k[$j++] = _q; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _s = $d(); - $k[$j++] = _s; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#14959 + $1.options = $k[--$j]; //#14961 + $1.barcode = $k[--$j]; //#14962 + $1.dontdraw = false; //#14964 + $1.height = 0.175; //#14965 + $forall($1.options, function() { //#14976 + var _3 = $k[--$j]; //#14976 + $1[$k[--$j]] = _3; //#14976 + }); //#14976 + $1.height = +$1.height; //#14978 + $forall($1.barcode, function() { //#14984 + var _7 = $k[--$j]; //#14981 + if ((_7 != 68) && ((_7 != 65) && ((_7 != 70) && (_7 != 84)))) { //#14983 + $k[$j++] = 'bwipp.daftBadCharacter'; //#14982 + $k[$j++] = "DAFT must contain only characters D, A, F and T"; //#14982 + $0.raiseerror(); //#14982 + } //#14982 + }); //#14982 + $1.barlen = $1.barcode.length; //#14986 + $1.bbs = $a($1.barlen); //#14988 + $1.bhs = $a($1.barlen); //#14989 + for (var _F = 0, _E = $1.barlen - 1; _F <= _E; _F += 1) { //#15009 + $1.i = _F; //#14991 + $1.enc = $geti($1.barcode, $1.i, 1); //#14992 + if ($eq($1.enc, "D")) { //#14996 + $put($1.bbs, $1.i, (0 * $1.height) / 8); //#14994 + $put($1.bhs, $1.i, (5 * $1.height) / 8); //#14995 + } //#14995 + if ($eq($1.enc, "A")) { //#15000 + $put($1.bbs, $1.i, (3 * $1.height) / 8); //#14998 + $put($1.bhs, $1.i, (5 * $1.height) / 8); //#14999 + } //#14999 + if ($eq($1.enc, "F")) { //#15004 + $put($1.bbs, $1.i, (0 * $1.height) / 8); //#15002 + $put($1.bhs, $1.i, (8 * $1.height) / 8); //#15003 + } //#15003 + if ($eq($1.enc, "T")) { //#15008 + $put($1.bbs, $1.i, (3 * $1.height) / 8); //#15006 + $put($1.bhs, $1.i, (2 * $1.height) / 8); //#15007 + } //#15007 + } //#15007 + $k[$j++] = Infinity; //#15017 + var _l = $1.bbs; //#15014 + var _m = $1.bhs; //#15015 + $k[$j++] = Infinity; //#15016 + for (var _o = 0, _p = $1.bhs.length - 1; _o < _p; _o++) { //#15016 + $k[$j++] = 1.44; //#15016 + $k[$j++] = 1.872; //#15016 + } //#15016 + $k[$j++] = 1.44; //#15016 + var _q = $a(); //#15016 + $k[$j++] = 'ren'; //#15017 + $k[$j++] = $0.renlinear; //#15017 + $k[$j++] = 'bbs'; //#15017 + $k[$j++] = _l; //#15017 + $k[$j++] = 'bhs'; //#15017 + $k[$j++] = _m; //#15017 + $k[$j++] = 'sbs'; //#15017 + $k[$j++] = _q; //#15017 + $k[$j++] = 'opt'; //#15017 + $k[$j++] = $1.options; //#15017 + var _s = $d(); //#15017 + $k[$j++] = _s; //#15020 + if (!$1.dontdraw) { //#15020 + $0.renlinear(); //#15020 + } //#15020 }; $0.symbol = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - var _H = new Map([ [ "fima", function() { - $1.sbs = $a([ 2.25, 2.25, 2.25, 11.25, 2.25, 11.25, 2.25, 2.25, 2.25 ]); - $1.bhs = $a([ .625, .625, .625, .625, .625 ]); - $1.bbs = $a([ 0, 0, 0, 0, 0 ]); - } ], [ "fimb", function() { - $1.sbs = $a([ 2.25, 6.75, 2.25, 2.25, 2.25, 6.25, 2.25, 2.25, 2.25, 6.75, 2.25 ]); - $1.bhs = $a([ .625, .625, .625, .625, .625, .625 ]); - $1.bbs = $a([ 0, 0, 0, 0, 0, 0 ]); - } ], [ "fimc", function() { - $1.sbs = $a([ 2.25, 2.25, 2.25, 6.75, 2.25, 6.75, 2.25, 6.75, 2.25, 2.25, 2.25 ]); - $1.bhs = $a([ .625, .625, .625, .625, .625, .625 ]); - $1.bbs = $a([ 0, 0, 0, 0, 0, 0 ]); - } ], [ "fimd", function() { - $1.sbs = $a([ 2.25, 2.25, 2.25, 2.25, 2.25, 6.75, 2.25, 6.75, 2.25, 2.25, 2.25, 2.25, 2.25 ]); - $1.bhs = $a([ .625, .625, .625, .625, .625, .625, .625 ]); - $1.bbs = $a([ 0, 0, 0, 0, 0, 0, 0 ]); - } ] ]); - $1.symbols = _H; - var _K = $get($1.symbols, $1.barcode) !== undefined; - if (!_K) { - $k[$j++] = "bwipp.symbolUnknownSymbol"; - $k[$j++] = "Unknown symbol name provided"; - $0.raiseerror(); - } + var $1 = {}; //#15049 + $1.options = $k[--$j]; //#15051 + $1.barcode = $k[--$j]; //#15052 + $1.dontdraw = false; //#15054 + $forall($1.options, function() { //#15065 + var _3 = $k[--$j]; //#15065 + $1[$k[--$j]] = _3; //#15065 + }); //#15065 + var _H = new Map([ + ["fima", function() { + $1.sbs = $a([2.25, 2.25, 2.25, 11.25, 2.25, 11.25, 2.25, 2.25, 2.25]); //#15069 + $1.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625]); //#15070 + $1.bbs = $a([0, 0, 0, 0, 0]); //#15071 + }], + ["fimb", function() { + $1.sbs = $a([2.25, 6.75, 2.25, 2.25, 2.25, 6.25, 2.25, 2.25, 2.25, 6.75, 2.25]); //#15074 + $1.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#15075 + $1.bbs = $a([0, 0, 0, 0, 0, 0]); //#15076 + }], + ["fimc", function() { + $1.sbs = $a([2.25, 2.25, 2.25, 6.75, 2.25, 6.75, 2.25, 6.75, 2.25, 2.25, 2.25]); //#15079 + $1.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#15080 + $1.bbs = $a([0, 0, 0, 0, 0, 0]); //#15081 + }], + ["fimd", function() { + $1.sbs = $a([2.25, 2.25, 2.25, 2.25, 2.25, 6.75, 2.25, 6.75, 2.25, 2.25, 2.25, 2.25, 2.25]); //#15084 + $1.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#15085 + $1.bbs = $a([0, 0, 0, 0, 0, 0, 0]); //#15086 + }] + ]); //#15086 + $1.symbols = _H; //#15088 + var _K = $get($1.symbols, $1.barcode) !== undefined; //#15091 + if (!_K) { //#15093 + $k[$j++] = 'bwipp.symbolUnknownSymbol'; //#15092 + $k[$j++] = "Unknown symbol name provided"; //#15092 + $0.raiseerror(); //#15092 + } //#15092 if ($get($1.symbols, $1.barcode)() === true) { return true; - } - var _S = new Map([ [ "ren", $0.renlinear ], [ "sbs", $1.sbs ], [ "bhs", $1.bhs ], [ "bbs", $1.bbs ], [ "opt", $1.options ] ]); - $k[$j++] = _S; - if (!$1.dontdraw) { - $0.renlinear(); - } + } //#15095 + var _S = new Map([ + ["ren", $0.renlinear], + ["sbs", $1.sbs], + ["bhs", $1.bhs], + ["bbs", $1.bbs], + ["opt", $1.options] + ]); //#15103 + $k[$j++] = _S; //#15106 + if (!$1.dontdraw) { //#15106 + $0.renlinear(); //#15106 + } //#15106 }; $0.pdf417 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.compact = false; - $1.eclevel = -1; - $1.columns = 0; - $1.rows = 0; - $1.rowmult = 3; - $1.encoding = "auto"; - $1.ccc = false; - $1.raw = false; - $1.parse = false; - $1.parsefnc = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.eclevel = ~~$1.eclevel; - $1.columns = ~~$1.columns; - $1.rows = ~~$1.rows; - $1.rowmult = +$1.rowmult; - if ($1.raw) { - $1.encoding = "raw"; - } - if ($eq($1.encoding, "raw")) { - $1.datcws = $a($1.barcode.length); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.barcode.length) { - break; - } - $1.cw = ~~$z($geti($1.barcode, $1.i + 1, 3)); - $put($1.datcws, $1.j, $1.cw); - $1.i = $1.i + 4; - $1.j = $1.j + 1; - } - $1.datcws = $geti($1.datcws, 0, $1.j); - } - if ($1.ccc) { - $1.encoding = "ccc"; - } + var $1 = {}; //#15136 + $1.options = $k[--$j]; //#15138 + $1.barcode = $k[--$j]; //#15139 + $1.dontdraw = false; //#15141 + $1.compact = false; //#15142 + $1.eclevel = -1; //#15143 + $1.columns = 0; //#15144 + $1.rows = 0; //#15145 + $1.rowmult = 3; //#15146 + $1.encoding = "auto"; //#15147 + $1.ccc = false; //#15148 + $1.raw = false; //#15149 + $1.parse = false; //#15150 + $1.parsefnc = false; //#15151 + $forall($1.options, function() { //#15162 + var _3 = $k[--$j]; //#15162 + $1[$k[--$j]] = _3; //#15162 + }); //#15162 + $1.eclevel = ~~$1.eclevel; //#15164 + $1.columns = ~~$1.columns; //#15165 + $1.rows = ~~$1.rows; //#15166 + $1.rowmult = +$1.rowmult; //#15167 + if ($1.raw) { //#15169 + $1.encoding = "raw"; //#15169 + } //#15169 + if ($eq($1.encoding, "raw")) { //#15183 + $1.datcws = $a($1.barcode.length); //#15173 + $1.i = 0; //#15174 + $1.j = 0; //#15174 + for (;;) { //#15181 + if ($1.i == $1.barcode.length) { //#15176 + break; //#15176 + } //#15176 + $1.cw = ~~$z($geti($1.barcode, $1.i + 1, 3)); //#15177 + $put($1.datcws, $1.j, $1.cw); //#15178 + $1.i = $1.i + 4; //#15179 + $1.j = $1.j + 1; //#15180 + } //#15180 + $1.datcws = $geti($1.datcws, 0, $1.j); //#15182 + } //#15182 + if ($1.ccc) { //#15185 + $1.encoding = "ccc"; //#15185 + } //#15185 $1.encb = function() { - $1.in = $k[--$j]; - $1.inlen = $1.in.length; - $1.out = $a(~~($1.inlen / 6) * 5 + $1.inlen % 6); - for (var _Y = 0, _X = ~~($1.inlen / 6) - 1; _Y <= _X; _Y += 1) { - $1.k = _Y; - $k[$j++] = Infinity; - $aload($geti($1.in, $1.k * 6, 3)); - $1.msbs = $a(); - $k[$j++] = Infinity; - $aload($1.msbs); - var _e = $k[--$j]; - var _f = $k[--$j]; - var _g = $k[--$j]; - $k[$j++] = $f($f(_e + _f * 256) + _g * 65536); - for (var _h = 0, _i = 3; _h < _i; _h++) { - var _j = $k[--$j]; - $k[$j++] = _j % 900; - $k[$j++] = ~~(_j / 900); - } - $1.mscs = $a(); - $k[$j++] = Infinity; - $aload($geti($1.in, $1.k * 6 + 3, 3)); - $1.lsbs = $a(); - $k[$j++] = Infinity; - $aload($1.lsbs); - var _q = $k[--$j]; - var _r = $k[--$j]; - var _s = $k[--$j]; - $k[$j++] = $f($f(_q + _r * 256) + _s * 65536); - for (var _t = 0, _u = 3; _t < _u; _t++) { - var _v = $k[--$j]; - $k[$j++] = _v % 900; - $k[$j++] = ~~(_v / 900); - } - $1.lscs = $a(); - var _y = $get($1.lscs, 0); - var _10 = $get($1.mscs, 0); - $put($1.out, $1.k * 5 + 4, $f(_y + _10 * 316) % 900); - var _14 = $get($1.lscs, 1); - var _16 = $get($1.mscs, 0); - var _18 = $get($1.mscs, 1); - $put($1.out, $1.k * 5 + 3, $f($f($f(~~($f(_y + _10 * 316) / 900) + _14) + _16 * 641) + _18 * 316) % 900); - var _1C = $get($1.lscs, 2); - var _1E = $get($1.mscs, 0); - var _1G = $get($1.mscs, 1); - var _1I = $get($1.mscs, 2); - $put($1.out, $1.k * 5 + 2, $f($f($f($f(~~($f($f($f(~~($f(_y + _10 * 316) / 900) + _14) + _16 * 641) + _18 * 316) / 900) + _1C) + _1E * 20) + _1G * 641) + _1I * 316) % 900); - var _1M = $get($1.lscs, 3); - var _1O = $get($1.mscs, 1); - var _1Q = $get($1.mscs, 2); - $put($1.out, $1.k * 5 + 1, $f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_y + _10 * 316) / 900) + _14) + _16 * 641) + _18 * 316) / 900) + _1C) + _1E * 20) + _1G * 641) + _1I * 316) / 900) + _1M) + _1O * 20) + _1Q * 641) % 900); - $put($1.out, $1.k * 5, $f(~~($f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_y + _10 * 316) / 900) + _14) + _16 * 641) + _18 * 316) / 900) + _1C) + _1E * 20) + _1G * 641) + _1I * 316) / 900) + _1M) + _1O * 20) + _1Q * 641) / 900) + $get($1.mscs, 2) * 20) % 900); - } - $1.rem = $1.inlen % 6; - if ($1.rem != 0) { - $k[$j++] = $1.out; - $k[$j++] = $1.out.length - $1.rem; - $k[$j++] = Infinity; - $aload($geti($1.in, $1.inlen - $1.rem, $1.rem)); - var _1h = $a(); - var _1i = $k[--$j]; - $puti($k[--$j], _1i, _1h); - } - $k[$j++] = $1.out; - }; - if ($eq($1.encoding, "byte") || $eq($1.encoding, "ccc")) { - $1.barlen = $1.barcode.length; - $1.datcws = $a(~~($1.barlen / 6) * 5 + $1.barlen % 6 + 1); - var _1t = $1.barlen % 6 == 0 ? 924 : 901; - $put($1.datcws, 0, _1t); - $k[$j++] = $1.datcws; - $k[$j++] = 1; - $k[$j++] = Infinity; - $forall($1.barcode); - var _1w = $a(); - $k[$j++] = _1w; - $1.encb(); - var _1x = $k[--$j]; - var _1y = $k[--$j]; - $puti($k[--$j], _1y, _1x); - if ($eq($1.encoding, "ccc")) { - $k[$j++] = Infinity; - $k[$j++] = 920; - $aload($1.datcws); - $1.datcws = $a(); - } - } - if ($eq($1.encoding, "auto")) { - var _26 = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "eci", true ] ]); - $1.fncvals = _26; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _29 = $k[--$j]; - $1[$k[--$j]] = _29; - $1.msglen = $1.msg.length; - $1.T = 0; - $1.N = 1; - $1.B = 2; - $1.A = 0; - $1.L = 1; - $1.M = 2; - $1.P = 3; - $1.tl = -1; - $1.nl = -2; - $1.bl = -3; - $1.bl6 = -4; - $1.bs = -5; - $1.al = -6; - $1.ll = -7; - $1.ml = -8; - $1.pl = -9; - $1.as = -10; - $1.ps = -11; - $1.charmaps = $a([ $a([ "A", "a", "0", ";" ]), $a([ "B", "b", "1", "<" ]), $a([ "C", "c", "2", ">" ]), $a([ "D", "d", "3", "@" ]), $a([ "E", "e", "4", "[" ]), $a([ "F", "f", "5", 92 ]), $a([ "G", "g", "6", "]" ]), $a([ "H", "h", "7", "_" ]), $a([ "I", "i", "8", "`" ]), $a([ "J", "j", "9", "~" ]), $a([ "K", "k", "&", "!" ]), $a([ "L", "l", 13, 13 ]), $a([ "M", "m", 9, 9 ]), $a([ "N", "n", ",", "," ]), $a([ "O", "o", ":", ":" ]), $a([ "P", "p", "#", 10 ]), $a([ "Q", "q", "-", "-" ]), $a([ "R", "r", ".", "." ]), $a([ "S", "s", "$", "$" ]), $a([ "T", "t", "/", "/" ]), $a([ "U", "u", "+", '"' ]), $a([ "V", "v", "%", "|" ]), $a([ "W", "w", "*", "*" ]), $a([ "X", "x", "=", 40 ]), $a([ "Y", "y", "^", 41 ]), $a([ "Z", "z", $1.pl, "?" ]), $a([ " ", " ", " ", "{" ]), $a([ $1.ll, $1.as, $1.ll, "}" ]), $a([ $1.ml, $1.ml, $1.al, "'" ]), $a([ $1.ps, $1.ps, $1.ps, $1.al ]) ]); - $1.charvals = $a([ new Map(), new Map(), new Map(), new Map() ]); - $1.alltext = new Map(); - for (var _2v = 0, _2u = $1.charmaps.length - 1; _2v <= _2u; _2v += 1) { - $1.i = _2v; - $1.encs = $get($1.charmaps, $1.i); - for (var _2z = 0; _2z <= 3; _2z += 1) { - $1.j = _2z; - var _32 = $get($1.encs, $1.j); - $k[$j++] = _32; - if ($eq($type(_32), "stringtype")) { - var _35 = $get($k[--$j], 0); - $k[$j++] = _35; - } - var _36 = $k[--$j]; - $put($get($1.charvals, $1.j), _36, $1.i); - $put($1.alltext, _36, -1); - } - } - $1.e = 1e4; - $1.latlen = $a([ $a([ 0, 1, 1, 2 ]), $a([ 2, 0, 1, 2 ]), $a([ 1, 1, 0, 1 ]), $a([ 1, 2, 2, 0 ]) ]); - $1.latseq = $a([ $a([ $a([]), $a([ $1.ll ]), $a([ $1.ml ]), $a([ $1.ml, $1.pl ]) ]), $a([ $a([ $1.ml, $1.al ]), $a([]), $a([ $1.ml ]), $a([ $1.ml, $1.pl ]) ]), $a([ $a([ $1.al ]), $a([ $1.ll ]), $a([]), $a([ $1.pl ]) ]), $a([ $a([ $1.al ]), $a([ $1.al, $1.ll ]), $a([ $1.al, $1.ml ]), $a([]) ]) ]); - $1.shftlen = $a([ $a([ $1.e, $1.e, $1.e, 1 ]), $a([ 1, $1.e, $1.e, 1 ]), $a([ $1.e, $1.e, $1.e, 1 ]), $a([ $1.e, $1.e, $1.e, $1.e ]) ]); - $k[$j++] = Infinity; - for (var _4B = 0, _4C = $1.msglen; _4B < _4C; _4B++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numdigits = $a(); - $k[$j++] = Infinity; - for (var _4F = 0, _4G = $1.msglen; _4F < _4G; _4F++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numtext = $a(); - $k[$j++] = Infinity; - for (var _4J = 0, _4K = $1.msglen; _4J < _4K; _4J++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numbytes = $a(); - $k[$j++] = Infinity; - for (var _4N = 0, _4O = $1.msglen; _4N < _4O; _4N++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.iseci = $a(); - for (var _4R = $1.msglen - 1; _4R >= 0; _4R -= 1) { - $1.i = _4R; - var _4U = $get($1.msg, $1.i); - if (_4U >= 48 && _4U <= 57) { - $put($1.numdigits, $1.i, $f($get($1.numdigits, $1.i + 1) + 1)); - } - var _4e = $get($1.alltext, $get($1.msg, $1.i)) !== undefined; - if (_4e && $get($1.numdigits, $1.i) < 13) { - $put($1.numtext, $1.i, $f($get($1.numtext, $1.i + 1) + 1)); - } - if ($get($1.msg, $1.i) >= 0 && $get($1.numtext, $1.i) < 5 && $get($1.numdigits, $1.i) < 13) { - $put($1.numbytes, $1.i, $f($get($1.numbytes, $1.i + 1) + 1)); - } - $put($1.iseci, $1.i, $get($1.msg, $1.i) <= -1e6); - } - $1.numdigits = $geti($1.numdigits, 0, $1.msglen); - $1.numtext = $geti($1.numtext, 0, $1.msglen); - $1.numbytes = $geti($1.numbytes, 0, $1.msglen); - $1.seq = $a([]); - $1.seqlen = 0; - $1.state = $1.T; - $1.p = 0; - for (;;) { - if ($1.p == $1.msglen) { - break; - } - if ($get($1.iseci, $1.p)) { - $1.eci = $get($1.msg, $1.p); - $k[$j++] = Infinity; - $aload($1.seq); - $k[$j++] = $a([ $1.eci ]); - $1.seq = $a(); - $1.p = $1.p + 1; - $k[$j++] = "seqlen"; - $k[$j++] = $1.seqlen; - if ($1.eci <= -1810900) { - $k[$j++] = 2; - } else { - var _5X = $1.eci <= -1000900 ? 3 : 2; - $k[$j++] = _5X; - } - var _5Y = $k[--$j]; - var _5Z = $k[--$j]; - $1[$k[--$j]] = $f(_5Z + _5Y); - } else { - $1.n = $get($1.numdigits, $1.p); - if ($1.n >= 13) { - $k[$j++] = Infinity; - $aload($1.seq); - $k[$j++] = $1.nl; - $k[$j++] = Infinity; - $aload($geti($1.msg, $1.p, $1.n)); - var _5l = $a(); - $k[$j++] = _5l; - $1.seq = $a(); - $1.state = $1.N; - $1.p = $f($1.p + $1.n); - $1.seqlen = $f($1.seqlen + 1 + $1.n); - } else { - $1.t = $get($1.numtext, $1.p); - if ($1.t >= 5) { - $k[$j++] = Infinity; - $aload($1.seq); - if ($1.state != $1.T) { - $k[$j++] = $1.tl; - } - $k[$j++] = Infinity; - $aload($geti($1.msg, $1.p, $1.t)); - var _64 = $a(); - $k[$j++] = _64; - $1.seq = $a(); - $1.state = $1.T; - $1.p = $f($1.p + $1.t); - $1.seqlen = $f($f($1.seqlen + 1) + $1.t); - } else { - $1.b = $get($1.numbytes, $1.p); - if ($1.b == 1 && $1.state == $1.T) { - $k[$j++] = Infinity; - $aload($1.seq); - $k[$j++] = $1.bs; - $k[$j++] = $a([ $get($1.msg, $1.p) ]); - $1.seq = $a(); - $1.p = $f($1.p + $1.b); - $1.seqlen = $f($1.seqlen + 2); - } else { - $k[$j++] = Infinity; - $aload($1.seq); - var _6T = $1.b % 6 != 0 ? $1.bl : $1.bl6; - $k[$j++] = _6T; - $k[$j++] = Infinity; - $aload($geti($1.msg, $1.p, $1.b)); - var _6Y = $a(); - $k[$j++] = _6Y; - $1.seq = $a(); - $1.state = $1.B; - $1.p = $f($1.p + $1.b); - $1.seqlen = $f($f($1.seqlen + 1) + $1.b); - } - } - } - } - } - $k[$j++] = Infinity; - $k[$j++] = $1.tl; - $k[$j++] = 900; - $k[$j++] = $1.bl; - $k[$j++] = 901; - $k[$j++] = $1.bl6; - $k[$j++] = 924; - $k[$j++] = $1.nl; - $k[$j++] = 902; - $k[$j++] = $1.bs; - $k[$j++] = 913; - $1.latchcws = $d(); + $1.in = $k[--$j]; //#15188 + $1.inlen = $1.in.length; //#15189 + $1.out = $a(((~~($1.inlen / 6)) * 5) + ($1.inlen % 6)); //#15190 + for (var _Y = 0, _X = (~~($1.inlen / 6)) - 1; _Y <= _X; _Y += 1) { //#15213 + $1.k = _Y; //#15192 + $k[$j++] = Infinity; //#15193 + $aload($geti($1.in, $1.k * 6, 3)); //#15193 + $1.msbs = $a(); //#15193 + $k[$j++] = Infinity; //#15196 + $aload($1.msbs); //#15195 + var _e = $k[--$j]; //#15195 + var _f = $k[--$j]; //#15195 + var _g = $k[--$j]; //#15195 + $k[$j++] = $f(($f(_e + (_f * 256))) + (_g * 65536)); //#15196 + for (var _h = 0, _i = 3; _h < _i; _h++) { //#15196 + var _j = $k[--$j]; //#15196 + $k[$j++] = _j % 900; //#15196 + $k[$j++] = ~~(_j / 900); //#15196 + } //#15196 + $1.mscs = $a(); //#15196 + $k[$j++] = Infinity; //#15198 + $aload($geti($1.in, ($1.k * 6) + 3, 3)); //#15198 + $1.lsbs = $a(); //#15198 + $k[$j++] = Infinity; //#15201 + $aload($1.lsbs); //#15200 + var _q = $k[--$j]; //#15200 + var _r = $k[--$j]; //#15200 + var _s = $k[--$j]; //#15200 + $k[$j++] = $f(($f(_q + (_r * 256))) + (_s * 65536)); //#15201 + for (var _t = 0, _u = 3; _t < _u; _t++) { //#15201 + var _v = $k[--$j]; //#15201 + $k[$j++] = _v % 900; //#15201 + $k[$j++] = ~~(_v / 900); //#15201 + } //#15201 + $1.lscs = $a(); //#15201 + var _y = $get($1.lscs, 0); //#15203 + var _10 = $get($1.mscs, 0); //#15203 + $put($1.out, ($1.k * 5) + 4, ($f(_y + (_10 * 316))) % 900); //#15204 + var _14 = $get($1.lscs, 1); //#15205 + var _16 = $get($1.mscs, 0); //#15205 + var _18 = $get($1.mscs, 1); //#15205 + $put($1.out, ($1.k * 5) + 3, ($f(($f(($f((~~(($f(_y + (_10 * 316))) / 900)) + _14)) + (_16 * 641))) + (_18 * 316))) % 900); //#15206 + var _1C = $get($1.lscs, 2); //#15207 + var _1E = $get($1.mscs, 0); //#15207 + var _1G = $get($1.mscs, 1); //#15207 + var _1I = $get($1.mscs, 2); //#15207 + $put($1.out, ($1.k * 5) + 2, ($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_y + (_10 * 316))) / 900)) + _14)) + (_16 * 641))) + (_18 * 316))) / 900)) + _1C)) + (_1E * 20))) + (_1G * 641))) + (_1I * 316))) % 900); //#15208 + var _1M = $get($1.lscs, 3); //#15209 + var _1O = $get($1.mscs, 1); //#15209 + var _1Q = $get($1.mscs, 2); //#15209 + $put($1.out, ($1.k * 5) + 1, ($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_y + (_10 * 316))) / 900)) + _14)) + (_16 * 641))) + (_18 * 316))) / 900)) + _1C)) + (_1E * 20))) + (_1G * 641))) + (_1I * 316))) / 900)) + _1M)) + (_1O * 20))) + (_1Q * 641))) % 900); //#15210 + $put($1.out, $1.k * 5, ($f((~~(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_y + (_10 * 316))) / 900)) + _14)) + (_16 * 641))) + (_18 * 316))) / 900)) + _1C)) + (_1E * 20))) + (_1G * 641))) + (_1I * 316))) / 900)) + _1M)) + (_1O * 20))) + (_1Q * 641))) / 900)) + ($get($1.mscs, 2) * 20))) % 900); //#15212 + } //#15212 + $1.rem = $1.inlen % 6; //#15214 + if ($1.rem != 0) { //#15219 + $k[$j++] = $1.out; //#15217 + $k[$j++] = $1.out.length - $1.rem; //#15217 + $k[$j++] = Infinity; //#15217 + $aload($geti($1.in, $1.inlen - $1.rem, $1.rem)); //#15217 + var _1h = $a(); //#15217 + var _1i = $k[--$j]; //#15218 + $puti($k[--$j], _1i, _1h); //#15218 + } //#15218 + $k[$j++] = $1.out; //#15220 + }; //#15221 + if ($eq($1.encoding, "byte") || $eq($1.encoding, "ccc")) { //#15229 + $1.barlen = $1.barcode.length; //#15224 + $1.datcws = $a((((~~($1.barlen / 6)) * 5) + ($1.barlen % 6)) + 1); //#15225 + var _1t = (($1.barlen % 6) == 0) ? 924 : 901; //#15226 + $put($1.datcws, 0, _1t); //#15226 + $k[$j++] = $1.datcws; //#15227 + $k[$j++] = 1; //#15227 + $k[$j++] = Infinity; //#15227 + $forall($1.barcode); //#15227 + var _1w = $a(); //#15227 + $k[$j++] = _1w; //#15227 + $1.encb(); //#15227 + var _1x = $k[--$j]; //#15227 + var _1y = $k[--$j]; //#15227 + $puti($k[--$j], _1y, _1x); //#15227 + if ($eq($1.encoding, "ccc")) { //#15228 + $k[$j++] = Infinity; //#15228 + $k[$j++] = 920; //#15228 + $aload($1.datcws); //#15228 + $1.datcws = $a(); //#15228 + } //#15228 + } //#15228 + if ($eq($1.encoding, "auto")) { //#15632 + var _26 = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["eci", true] + ]); //#15237 + $1.fncvals = _26; //#15239 + $k[$j++] = 'msg'; //#15240 + $k[$j++] = $1.barcode; //#15240 + $k[$j++] = $1.fncvals; //#15240 + $0.parseinput(); //#15240 + var _29 = $k[--$j]; //#15240 + $1[$k[--$j]] = _29; //#15240 + $1.msglen = $1.msg.length; //#15241 + $1.T = 0; //#15244 + $1.N = 1; //#15244 + $1.B = 2; //#15244 + $1.A = 0; //#15245 + $1.L = 1; //#15245 + $1.M = 2; //#15245 + $1.P = 3; //#15245 + $1.tl = -1; //#15248 + $1.nl = -2; //#15248 + $1.bl = -3; //#15248 + $1.bl6 = -4; //#15248 + $1.bs = -5; //#15248 + $1.al = -6; //#15251 + $1.ll = -7; //#15251 + $1.ml = -8; //#15251 + $1.pl = -9; //#15251 + $1.as = -10; //#15251 + $1.ps = -11; //#15251 + $1.charmaps = $a([$a(["A", "a", "0", ";"]), $a(["B", "b", "1", "<"]), $a(["C", "c", "2", ">"]), $a(["D", "d", "3", "@"]), $a(["E", "e", "4", "["]), $a(["F", "f", "5", 92]), $a(["G", "g", "6", "]"]), $a(["H", "h", "7", "_"]), $a(["I", "i", "8", "`"]), $a(["J", "j", "9", "~"]), $a(["K", "k", "&", "!"]), $a(["L", "l", 13, 13]), $a(["M", "m", 9, 9]), $a(["N", "n", ",", ","]), $a(["O", "o", ":", ":"]), $a(["P", "p", "#", 10]), $a(["Q", "q", "-", "-"]), $a(["R", "r", ".", "."]), $a(["S", "s", "$", "$"]), $a(["T", "t", "/", "/"]), $a(["U", "u", "+", "\""]), $a(["V", "v", "%", "|"]), $a(["W", "w", "*", "*"]), $a(["X", "x", "=", 40]), $a(["Y", "y", "^", 41]), $a(["Z", "z", $1.pl, "?"]), $a([" ", " ", " ", "{"]), $a([$1.ll, $1.as, $1.ll, "}"]), $a([$1.ml, $1.ml, $1.al, "'"]), $a([$1.ps, $1.ps, $1.ps, $1.al])]); //#15286 + $1.charvals = $a([new Map, new Map, new Map, new Map]); //#15289 + $1.alltext = new Map; //#15290 + for (var _2v = 0, _2u = $1.charmaps.length - 1; _2v <= _2u; _2v += 1) { //#15300 + $1.i = _2v; //#15292 + $1.encs = $get($1.charmaps, $1.i); //#15293 + for (var _2z = 0; _2z <= 3; _2z += 1) { //#15299 + $1.j = _2z; //#15295 + var _32 = $get($1.encs, $1.j); //#15296 + $k[$j++] = _32; //#15296 + if ($eq($type(_32), 'stringtype')) { //#15296 + var _35 = $get($k[--$j], 0); //#15296 + $k[$j++] = _35; //#15296 + } //#15296 + var _36 = $k[--$j]; //#15297 + $put($get($1.charvals, $1.j), _36, $1.i); //#15297 + $put($1.alltext, _36, -1); //#15298 + } //#15298 + } //#15298 + $1.e = 10000; //#15302 + $1.latlen = $a([$a([0, 1, 1, 2]), $a([2, 0, 1, 2]), $a([1, 1, 0, 1]), $a([1, 2, 2, 0])]); //#15310 + $1.latseq = $a([$a([$a([]), $a([$1.ll]), $a([$1.ml]), $a([$1.ml, $1.pl])]), $a([$a([$1.ml, $1.al]), $a([]), $a([$1.ml]), $a([$1.ml, $1.pl])]), $a([$a([$1.al]), $a([$1.ll]), $a([]), $a([$1.pl])]), $a([$a([$1.al]), $a([$1.al, $1.ll]), $a([$1.al, $1.ml]), $a([])])]); //#15318 + $1.shftlen = $a([$a([$1.e, $1.e, $1.e, 1]), $a([1, $1.e, $1.e, 1]), $a([$1.e, $1.e, $1.e, 1]), $a([$1.e, $1.e, $1.e, $1.e])]); //#15326 + $k[$j++] = Infinity; //#15329 + for (var _4B = 0, _4C = $1.msglen; _4B < _4C; _4B++) { //#15329 + $k[$j++] = 0; //#15329 + } //#15329 + $k[$j++] = 0; //#15329 + $1.numdigits = $a(); //#15329 + $k[$j++] = Infinity; //#15330 + for (var _4F = 0, _4G = $1.msglen; _4F < _4G; _4F++) { //#15330 + $k[$j++] = 0; //#15330 + } //#15330 + $k[$j++] = 0; //#15330 + $1.numtext = $a(); //#15330 + $k[$j++] = Infinity; //#15331 + for (var _4J = 0, _4K = $1.msglen; _4J < _4K; _4J++) { //#15331 + $k[$j++] = 0; //#15331 + } //#15331 + $k[$j++] = 0; //#15331 + $1.numbytes = $a(); //#15331 + $k[$j++] = Infinity; //#15332 + for (var _4N = 0, _4O = $1.msglen; _4N < _4O; _4N++) { //#15332 + $k[$j++] = 0; //#15332 + } //#15332 + $k[$j++] = 0; //#15332 + $1.iseci = $a(); //#15332 + for (var _4R = $1.msglen - 1; _4R >= 0; _4R -= 1) { //#15345 + $1.i = _4R; //#15334 + var _4U = $get($1.msg, $1.i); //#15335 + if ((_4U >= 48) && (_4U <= 57)) { //#15337 + $put($1.numdigits, $1.i, $f($get($1.numdigits, $1.i + 1) + 1)); //#15336 + } //#15336 + var _4e = $get($1.alltext, $get($1.msg, $1.i)) !== undefined; //#15338 + if (_4e && ($get($1.numdigits, $1.i) < 13)) { //#15340 + $put($1.numtext, $1.i, $f($get($1.numtext, $1.i + 1) + 1)); //#15339 + } //#15339 + if ((($get($1.msg, $1.i) >= 0) && ($get($1.numtext, $1.i) < 5)) && ($get($1.numdigits, $1.i) < 13)) { //#15343 + $put($1.numbytes, $1.i, $f($get($1.numbytes, $1.i + 1) + 1)); //#15342 + } //#15342 + $put($1.iseci, $1.i, $get($1.msg, $1.i) <= -1000000); //#15344 + } //#15344 + $1.numdigits = $geti($1.numdigits, 0, $1.msglen); //#15346 + $1.numtext = $geti($1.numtext, 0, $1.msglen); //#15347 + $1.numbytes = $geti($1.numbytes, 0, $1.msglen); //#15348 + $1.seq = $a([]); //#15350 + $1.seqlen = 0; //#15350 + $1.state = $1.T; //#15350 + $1.p = 0; //#15350 + for (;;) { //#15404 + if ($1.p == $1.msglen) { //#15351 + break; //#15351 + } //#15351 + if ($get($1.iseci, $1.p)) { //#15402 + $1.eci = $get($1.msg, $1.p); //#15353 + $k[$j++] = Infinity; //#15356 + $aload($1.seq); //#15355 + $k[$j++] = $a([$1.eci]); //#15356 + $1.seq = $a(); //#15356 + $1.p = $1.p + 1; //#15358 + $k[$j++] = 'seqlen'; //#15359 + $k[$j++] = $1.seqlen; //#15359 + if ($1.eci <= -1810900) { //#15359 + $k[$j++] = 2; //#15359 + } else { //#15359 + var _5X = ($1.eci <= -1000900) ? 3 : 2; //#15359 + $k[$j++] = _5X; //#15359 + } //#15359 + var _5Y = $k[--$j]; //#15359 + var _5Z = $k[--$j]; //#15359 + $1[$k[--$j]] = $f(_5Z + _5Y); //#15359 + } else { //#15402 + $1.n = $get($1.numdigits, $1.p); //#15361 + if ($1.n >= 13) { //#15402 + $k[$j++] = Infinity; //#15366 + $aload($1.seq); //#15364 + $k[$j++] = $1.nl; //#15366 + $k[$j++] = Infinity; //#15366 + $aload($geti($1.msg, $1.p, $1.n)); //#15366 + var _5l = $a(); //#15366 + $k[$j++] = _5l; //#15366 + $1.seq = $a(); //#15366 + $1.state = $1.N; //#15368 + $1.p = $f($1.p + $1.n); //#15369 + $1.seqlen = $f(($1.seqlen + 1) + $1.n); //#15370 + } else { //#15402 + $1.t = $get($1.numtext, $1.p); //#15372 + if ($1.t >= 5) { //#15402 + $k[$j++] = Infinity; //#15379 + $aload($1.seq); //#15375 + if ($1.state != $1.T) { //#15378 + $k[$j++] = $1.tl; //#15377 + } //#15377 + $k[$j++] = Infinity; //#15379 + $aload($geti($1.msg, $1.p, $1.t)); //#15379 + var _64 = $a(); //#15379 + $k[$j++] = _64; //#15379 + $1.seq = $a(); //#15379 + $1.state = $1.T; //#15381 + $1.p = $f($1.p + $1.t); //#15382 + $1.seqlen = $f($f($1.seqlen + 1) + $1.t); //#15383 + } else { //#15402 + $1.b = $get($1.numbytes, $1.p); //#15385 + if (($1.b == 1) && ($1.state == $1.T)) { //#15402 + $k[$j++] = Infinity; //#15390 + $aload($1.seq); //#15388 + $k[$j++] = $1.bs; //#15390 + $k[$j++] = $a([$get($1.msg, $1.p)]); //#15390 + $1.seq = $a(); //#15390 + $1.p = $f($1.p + $1.b); //#15392 + $1.seqlen = $f($1.seqlen + 2); //#15393 + } else { //#15402 + $k[$j++] = Infinity; //#15398 + $aload($1.seq); //#15396 + var _6T = (($1.b % 6) != 0) ? $1.bl : $1.bl6; //#15397 + $k[$j++] = _6T; //#15398 + $k[$j++] = Infinity; //#15398 + $aload($geti($1.msg, $1.p, $1.b)); //#15398 + var _6Y = $a(); //#15398 + $k[$j++] = _6Y; //#15398 + $1.seq = $a(); //#15398 + $1.state = $1.B; //#15400 + $1.p = $f($1.p + $1.b); //#15401 + $1.seqlen = $f($f($1.seqlen + 1) + $1.b); //#15402 + } //#15402 + } //#15402 + } //#15402 + } //#15402 + } //#15402 + $k[$j++] = Infinity; //#15407 + $k[$j++] = $1.tl; //#15407 + $k[$j++] = 900; //#15407 + $k[$j++] = $1.bl; //#15407 + $k[$j++] = 901; //#15407 + $k[$j++] = $1.bl6; //#15407 + $k[$j++] = 924; //#15407 + $k[$j++] = $1.nl; //#15407 + $k[$j++] = 902; //#15407 + $k[$j++] = $1.bs; //#15407 + $k[$j++] = 913; //#15407 + $1.latchcws = $d(); //#15408 $1.enca = function() { - var _6p = $get($get($1.charvals, $1.A), $k[--$j]); - $k[$j++] = _6p; - }; + var _6p = $get($get($1.charvals, $1.A), $k[--$j]); //#15411 + $k[$j++] = _6p; //#15411 + }; //#15411 $1.encl = function() { - var _6u = $get($get($1.charvals, $1.L), $k[--$j]); - $k[$j++] = _6u; - }; + var _6u = $get($get($1.charvals, $1.L), $k[--$j]); //#15412 + $k[$j++] = _6u; //#15412 + }; //#15412 $1.encm = function() { - var _6z = $get($get($1.charvals, $1.M), $k[--$j]); - $k[$j++] = _6z; - }; + var _6z = $get($get($1.charvals, $1.M), $k[--$j]); //#15413 + $k[$j++] = _6z; //#15413 + }; //#15413 $1.encp = function() { - var _74 = $get($get($1.charvals, $1.P), $k[--$j]); - $k[$j++] = _74; - }; - $1.textencfuncs = $a([ "enca", "encl", "encm", "encp" ]); + var _74 = $get($get($1.charvals, $1.P), $k[--$j]); //#15414 + $k[$j++] = _74; //#15414 + }; //#15414 + $1.textencfuncs = $a(['enca', 'encl', 'encm', 'encp']); //#15415 $1.addtotext = function() { - $put($1.text, $1.l, $k[--$j]); - $1.l = $1.l + 1; - }; + $put($1.text, $1.l, $k[--$j]); //#15418 + $1.l = $1.l + 1; //#15419 + }; //#15420 $1.enct = function() { - $1.in = $k[--$j]; - $1.curlen = $a([ $1.e, $1.e, $1.e, $1.e ]); - $put($1.curlen, $1.submode, 0); - $1.curseq = $a([ $a([]), $a([]), $a([]), $a([]) ]); - $forall($1.in, function() { - $1.char = $k[--$j]; - for (;;) { - $1.imp = false; - var _7T = $a([ $1.A, $1.L, $1.M, $1.P ]); - for (var _7U = 0, _7V = _7T.length; _7U < _7V; _7U++) { - $1.x = $get(_7T, _7U); - var _7b = $a([ $1.A, $1.L, $1.M, $1.P ]); - for (var _7c = 0, _7d = _7b.length; _7c < _7d; _7c++) { - $1.y = $get(_7b, _7c); - $1.cost = $f($get($1.curlen, $1.x) + $get($get($1.latlen, $1.x), $1.y)); - if ($1.cost < $get($1.curlen, $1.y)) { - $put($1.curlen, $1.y, $1.cost); - $k[$j++] = $1.curseq; - $k[$j++] = $1.y; - $k[$j++] = Infinity; - $aload($get($1.curseq, $1.x)); - $aload($get($get($1.latseq, $1.x), $1.y)); - var _84 = $a(); - var _85 = $k[--$j]; - $put($k[--$j], _85, _84); - $1.imp = true; - } - } - } - if (!$1.imp) { - break; - } - } - $1.nxtlen = $a([ $1.e, $1.e, $1.e, $1.e ]); - $1.nxtseq = $a(4); - var _8I = $a([ $1.A, $1.L, $1.M, $1.P ]); - for (var _8J = 0, _8K = _8I.length; _8J < _8K; _8J++) { - $1.x = $get(_8I, _8J); - for (;;) { - var _8Q = $get($get($1.charvals, $1.x), $1.char) !== undefined; - if (!_8Q) { - break; - } - $1.cost = $f($get($1.curlen, $1.x) + 1); - if ($1.cost < $get($1.nxtlen, $1.x)) { - $put($1.nxtlen, $1.x, $1.cost); - $k[$j++] = $1.nxtseq; - $k[$j++] = $1.x; - $k[$j++] = Infinity; - $aload($get($1.curseq, $1.x)); - $k[$j++] = $1.char; - var _8h = $a(); - var _8i = $k[--$j]; - $put($k[--$j], _8i, _8h); - } - var _8o = $a([ $1.A, $1.L, $1.M, $1.P ]); - for (var _8p = 0, _8q = _8o.length; _8p < _8q; _8p++) { - $1.y = $get(_8o, _8p); - if ($ne($1.x, $1.y)) { - $1.cost = $f($f($get($1.curlen, $1.y) + $get($get($1.shftlen, $1.y), $1.x)) + 1); - if ($1.cost < $get($1.nxtlen, $1.y)) { - $put($1.nxtlen, $1.y, $1.cost); - $k[$j++] = $1.nxtseq; - $k[$j++] = $1.y; - $k[$j++] = Infinity; - $aload($get($1.curseq, $1.y)); - var _9G = $1.x == $1.A ? $1.as : $1.ps; - $k[$j++] = _9G; - $k[$j++] = $1.char; - var _9I = $a(); - var _9J = $k[--$j]; - $put($k[--$j], _9J, _9I); - } - } - } - break; - } - } - $1.curlen = $1.nxtlen; - $1.curseq = $1.nxtseq; - }); - $1.minseq = $1.e; - var _9S = $a([ $1.A, $1.L, $1.M, $1.P ]); - for (var _9T = 0, _9U = _9S.length; _9T < _9U; _9T++) { - $1.k = $get(_9S, _9T); - if ($get($1.curlen, $1.k) < $1.minseq) { - $1.minseq = $get($1.curlen, $1.k); - $1.txtseq = $get($1.curseq, $1.k); - } - } - $1.text = $a($1.minseq); - $1.k = 0; - $1.l = 0; - for (;;) { - if ($1.k >= $1.txtseq.length) { - break; - } - $1.char = $get($1.txtseq, $1.k); - $k[$j++] = $1.char; + $1.in = $k[--$j]; //#15423 + $1.curlen = $a([$1.e, $1.e, $1.e, $1.e]); //#15425 + $put($1.curlen, $1.submode, 0); //#15426 + $1.curseq = $a([$a([]), $a([]), $a([]), $a([])]); //#15427 + $forall($1.in, function() { //#15497 + $1.char = $k[--$j]; //#15432 + for (;;) { //#15453 + $1.imp = false; //#15436 + var _7T = $a([$1.A, $1.L, $1.M, $1.P]); //#15437 + for (var _7U = 0, _7V = _7T.length; _7U < _7V; _7U++) { //#15451 + $1.x = $get(_7T, _7U); //#15438 + var _7b = $a([$1.A, $1.L, $1.M, $1.P]); //#15439 + for (var _7c = 0, _7d = _7b.length; _7c < _7d; _7c++) { //#15450 + $1.y = $get(_7b, _7c); //#15440 + $1.cost = $f($get($1.curlen, $1.x) + $get($get($1.latlen, $1.x), $1.y)); //#15441 + if ($1.cost < $get($1.curlen, $1.y)) { //#15449 + $put($1.curlen, $1.y, $1.cost); //#15443 + $k[$j++] = $1.curseq; //#15446 + $k[$j++] = $1.y; //#15446 + $k[$j++] = Infinity; //#15446 + $aload($get($1.curseq, $1.x)); //#15445 + $aload($get($get($1.latseq, $1.x), $1.y)); //#15446 + var _84 = $a(); //#15446 + var _85 = $k[--$j]; //#15447 + $put($k[--$j], _85, _84); //#15447 + $1.imp = true; //#15448 + } //#15448 + } //#15448 + } //#15448 + if (!$1.imp) { //#15452 + break; //#15452 + } //#15452 + } //#15452 + $1.nxtlen = $a([$1.e, $1.e, $1.e, $1.e]); //#15456 + $1.nxtseq = $a(4); //#15457 + var _8I = $a([$1.A, $1.L, $1.M, $1.P]); //#15459 + for (var _8J = 0, _8K = _8I.length; _8J < _8K; _8J++) { //#15492 + $1.x = $get(_8I, _8J); //#15460 + for (;;) { //#15490 + var _8Q = $get($get($1.charvals, $1.x), $1.char) !== undefined; //#15464 + if (!_8Q) { //#15464 + break; //#15464 + } //#15464 + $1.cost = $f($get($1.curlen, $1.x) + 1); //#15467 + if ($1.cost < $get($1.nxtlen, $1.x)) { //#15471 + $put($1.nxtlen, $1.x, $1.cost); //#15469 + $k[$j++] = $1.nxtseq; //#15470 + $k[$j++] = $1.x; //#15470 + $k[$j++] = Infinity; //#15470 + $aload($get($1.curseq, $1.x)); //#15470 + $k[$j++] = $1.char; //#15470 + var _8h = $a(); //#15470 + var _8i = $k[--$j]; //#15470 + $put($k[--$j], _8i, _8h); //#15470 + } //#15470 + var _8o = $a([$1.A, $1.L, $1.M, $1.P]); //#15474 + for (var _8p = 0, _8q = _8o.length; _8p < _8q; _8p++) { //#15487 + $1.y = $get(_8o, _8p); //#15475 + if ($ne($1.x, $1.y)) { //#15486 + $1.cost = $f($f($get($1.curlen, $1.y) + $get($get($1.shftlen, $1.y), $1.x)) + 1); //#15477 + if ($1.cost < $get($1.nxtlen, $1.y)) { //#15485 + $put($1.nxtlen, $1.y, $1.cost); //#15479 + $k[$j++] = $1.nxtseq; //#15483 + $k[$j++] = $1.y; //#15483 + $k[$j++] = Infinity; //#15483 + $aload($get($1.curseq, $1.y)); //#15481 + var _9G = ($1.x == $1.A) ? $1.as : $1.ps; //#15482 + $k[$j++] = _9G; //#15483 + $k[$j++] = $1.char; //#15483 + var _9I = $a(); //#15483 + var _9J = $k[--$j]; //#15484 + $put($k[--$j], _9J, _9I); //#15484 + } //#15484 + } //#15484 + } //#15484 + break; //#15489 + } //#15489 + } //#15489 + $1.curlen = $1.nxtlen; //#15494 + $1.curseq = $1.nxtseq; //#15495 + }); //#15495 + $1.minseq = $1.e; //#15500 + var _9S = $a([$1.A, $1.L, $1.M, $1.P]); //#15501 + for (var _9T = 0, _9U = _9S.length; _9T < _9U; _9T++) { //#15507 + $1.k = $get(_9S, _9T); //#15502 + if ($get($1.curlen, $1.k) < $1.minseq) { //#15506 + $1.minseq = $get($1.curlen, $1.k); //#15504 + $1.txtseq = $get($1.curseq, $1.k); //#15505 + } //#15505 + } //#15505 + $1.text = $a($1.minseq); //#15510 + $1.k = 0; //#15511 + $1.l = 0; //#15511 + for (;;) { //#15531 + if ($1.k >= $1.txtseq.length) { //#15512 + break; //#15512 + } //#15512 + $1.char = $get($1.txtseq, $1.k); //#15514 + $k[$j++] = $1.char; //#15517 if ($1[$get($1.textencfuncs, $1.submode)]() === true) { break; - } - $1.addtotext(); - $1.k = $1.k + 1; - if ($1.char == $1.as || $1.char == $1.ps) { - $k[$j++] = $get($1.txtseq, $1.k); - if ($1.char == $1.as) { - $1.enca(); - } else { - $1.encp(); - } - $1.addtotext(); - $1.k = $1.k + 1; - } - if ($1.char == $1.al) { - $1.submode = $1.A; - } - if ($1.char == $1.ll) { - $1.submode = $1.L; - } - if ($1.char == $1.ml) { - $1.submode = $1.M; - } - if ($1.char == $1.pl) { - $1.submode = $1.P; - } - } - if ($1.text.length % 2 == 1) { - if ($1.submode == $1.P) { - $k[$j++] = "pad"; - $k[$j++] = $1.al; - $1.encp(); - var _AJ = $k[--$j]; - $1[$k[--$j]] = _AJ; - $1.submode = $1.A; - } else { - $k[$j++] = "pad"; - $k[$j++] = $1.ps; + } //#15517 + $1.addtotext(); //#15517 + $1.k = $1.k + 1; //#15518 + if (($1.char == $1.as) || ($1.char == $1.ps)) { //#15524 + $k[$j++] = $get($1.txtseq, $1.k); //#15522 + if ($1.char == $1.as) { //#15522 + $1.enca(); //#15522 + } else { //#15522 + $1.encp(); //#15522 + } //#15522 + $1.addtotext(); //#15522 + $1.k = $1.k + 1; //#15523 + } //#15523 + if ($1.char == $1.al) { //#15527 + $1.submode = $1.A; //#15527 + } //#15527 + if ($1.char == $1.ll) { //#15528 + $1.submode = $1.L; //#15528 + } //#15528 + if ($1.char == $1.ml) { //#15529 + $1.submode = $1.M; //#15529 + } //#15529 + if ($1.char == $1.pl) { //#15530 + $1.submode = $1.P; //#15530 + } //#15530 + } //#15530 + if (($1.text.length % 2) == 1) { //#15541 + if ($1.submode == $1.P) { //#15538 + $k[$j++] = 'pad'; //#15535 + $k[$j++] = $1.al; //#15535 + $1.encp(); //#15535 + var _AJ = $k[--$j]; //#15535 + $1[$k[--$j]] = _AJ; //#15535 + $1.submode = $1.A; //#15536 + } else { //#15538 + $k[$j++] = 'pad'; //#15538 + $k[$j++] = $1.ps; //#15538 if ($1[$get($1.textencfuncs, $1.submode)]() === true) { return true; - } - var _AR = $k[--$j]; - $1[$k[--$j]] = _AR; - } - $k[$j++] = Infinity; - $aload($1.text); - $k[$j++] = $1.pad; - $1.text = $a(); - } - $1.out = $a(~~($1.text.length / 2)); - for (var _Aa = 0, _AZ = $1.out.length - 1; _Aa <= _AZ; _Aa += 1) { - $1.k = _Aa; - $put($1.out, $1.k, $f($get($1.text, $1.k * 2) * 30 + $get($1.text, $1.k * 2 + 1))); - } - $k[$j++] = $1.out; - }; + } //#15538 + var _AR = $k[--$j]; //#15538 + $1[$k[--$j]] = _AR; //#15538 + } //#15538 + $k[$j++] = Infinity; //#15540 + $aload($1.text); //#15540 + $k[$j++] = $1.pad; //#15540 + $1.text = $a(); //#15540 + } //#15540 + $1.out = $a(~~($1.text.length / 2)); //#15543 + for (var _Aa = 0, _AZ = $1.out.length - 1; _Aa <= _AZ; _Aa += 1) { //#15547 + $1.k = _Aa; //#15545 + $put($1.out, $1.k, $f(($get($1.text, $1.k * 2) * 30) + $get($1.text, ($1.k * 2) + 1))); //#15546 + } //#15546 + $k[$j++] = $1.out; //#15549 + }; //#15551 $1.encn = function() { - $1.in = $k[--$j]; - $1.out = $a([]); - for (var _Ao = 0, _An = $1.in.length - 1; _Ao <= _An; _Ao += 44) { - $1.k = _Ao; - $k[$j++] = Infinity; - var _At = $1.in.length - $1.k; - $k[$j++] = 1; - $k[$j++] = $1.in; - $k[$j++] = $1.k; - $k[$j++] = _At; - if (_At > 44) { - $j--; - $k[$j++] = 44; - } - var _Au = $k[--$j]; - var _Av = $k[--$j]; - var _Ax = $geti($k[--$j], _Av, _Au); - for (var _Ay = 0, _Az = _Ax.length; _Ay < _Az; _Ay++) { - $k[$j++] = $f($get(_Ax, _Ay) - 48); - } - $1.gmod = $a(); - $1.cwn = $a([]); - for (;;) { - $1.dv = 900; - $1.gmul = $a([]); - $1.val = 0; - for (;;) { - if ($1.gmod.length == 0) { - break; - } - $1.val = $f($1.val * 10 + $get($1.gmod, 0)); - $1.gmod = $geti($1.gmod, 1, $1.gmod.length - 1); - if ($1.val < $1.dv) { - if ($1.gmul.length != 0) { - $k[$j++] = Infinity; - $aload($1.gmul); - $k[$j++] = 0; - $1.gmul = $a(); - } - } else { - $k[$j++] = Infinity; - $aload($1.gmul); - $k[$j++] = ~~($1.val / $1.dv); - $1.gmul = $a(); - } - $1.val = $1.val % $1.dv; - } - $1.dv = $1.val; - $k[$j++] = Infinity; - $k[$j++] = $1.dv; - $aload($1.cwn); - $1.cwn = $a(); - $1.gmod = $1.gmul; - if ($1.gmul.length == 0) { - break; - } - } - $k[$j++] = Infinity; - $aload($1.out); - $aload($1.cwn); - $1.out = $a(); - } - $k[$j++] = $1.out; - }; + $1.in = $k[--$j]; //#15554 + $1.out = $a([]); //#15555 + for (var _Ao = 0, _An = $1.in.length - 1; _Ao <= _An; _Ao += 44) { //#15583 + $1.k = _Ao; //#15557 + $k[$j++] = Infinity; //#15560 + var _At = $1.in.length - $1.k; //#15559 + $k[$j++] = 1; //#15559 + $k[$j++] = $1.in; //#15559 + $k[$j++] = $1.k; //#15559 + $k[$j++] = _At; //#15559 + if (_At > 44) { //#15559 + $j--; //#15559 + $k[$j++] = 44; //#15559 + } //#15559 + var _Au = $k[--$j]; //#15559 + var _Av = $k[--$j]; //#15559 + var _Ax = $geti($k[--$j], _Av, _Au); //#15559 + for (var _Ay = 0, _Az = _Ax.length; _Ay < _Az; _Ay++) { //#15560 + $k[$j++] = $f($get(_Ax, _Ay) - 48); //#15560 + } //#15560 + $1.gmod = $a(); //#15560 + $1.cwn = $a([]); //#15562 + for (;;) { //#15581 + $1.dv = 900; //#15563 + $1.gmul = $a([]); //#15564 + $1.val = 0; //#15564 + for (;;) { //#15576 + if ($1.gmod.length == 0) { //#15565 + break; //#15565 + } //#15565 + $1.val = $f(($1.val * 10) + $get($1.gmod, 0)); //#15566 + $1.gmod = $geti($1.gmod, 1, $1.gmod.length - 1); //#15567 + if ($1.val < $1.dv) { //#15573 + if ($1.gmul.length != 0) { //#15571 + $k[$j++] = Infinity; //#15570 + $aload($1.gmul); //#15570 + $k[$j++] = 0; //#15570 + $1.gmul = $a(); //#15570 + } //#15570 + } else { //#15573 + $k[$j++] = Infinity; //#15573 + $aload($1.gmul); //#15573 + $k[$j++] = ~~($1.val / $1.dv); //#15573 + $1.gmul = $a(); //#15573 + } //#15573 + $1.val = $1.val % $1.dv; //#15575 + } //#15575 + $1.dv = $1.val; //#15577 + $k[$j++] = Infinity; //#15578 + $k[$j++] = $1.dv; //#15578 + $aload($1.cwn); //#15578 + $1.cwn = $a(); //#15578 + $1.gmod = $1.gmul; //#15579 + if ($1.gmul.length == 0) { //#15580 + break; //#15580 + } //#15580 + } //#15580 + $k[$j++] = Infinity; //#15582 + $aload($1.out); //#15582 + $aload($1.cwn); //#15582 + $1.out = $a(); //#15582 + } //#15582 + $k[$j++] = $1.out; //#15584 + }; //#15585 $1.ence = function() { - var _BY = $f(-$get($k[--$j], 0) - 1e6); - $k[$j++] = _BY; - if (_BY <= 899) { - var _BZ = $k[--$j]; - $k[$j++] = 927; - $k[$j++] = _BZ; - $astore($a(2)); - } else { - var _Bb = $k[--$j]; - $k[$j++] = _Bb; - if (_Bb <= 810899) { - var _Bc = $k[--$j]; - $k[$j++] = 926; - $k[$j++] = ~~(_Bc / 900) - 1; - $k[$j++] = _Bc % 900; - $astore($a(3)); - } else { - var _Be = $k[--$j]; - $k[$j++] = _Be; - if (_Be <= 811799) { - var _Bf = $k[--$j]; - $k[$j++] = 925; - $k[$j++] = $f(_Bf - 810900); - $astore($a(2)); - } else { - $k[$j++] = "bwipp.pdf417badECI"; - $k[$j++] = "PDF417 supports ECIs 000000 to 811799"; - $0.raiseerror(); - } - } - } - }; - $1.encfuncs = $a([ "enct", "encn", "encb" ]); + var _BY = $f((-$get($k[--$j], 0)) - 1000000); //#15589 + $k[$j++] = _BY; //#15597 + if (_BY <= 899) { //#15596 + var _BZ = $k[--$j]; //#15590 + $k[$j++] = 927; //#15590 + $k[$j++] = _BZ; //#15590 + $astore($a(2)); //#15590 + } else { //#15596 + var _Bb = $k[--$j]; //#15591 + $k[$j++] = _Bb; //#15597 + if (_Bb <= 810899) { //#15596 + var _Bc = $k[--$j]; //#15592 + $k[$j++] = 926; //#15592 + $k[$j++] = (~~(_Bc / 900)) - 1; //#15592 + $k[$j++] = _Bc % 900; //#15592 + $astore($a(3)); //#15592 + } else { //#15596 + var _Be = $k[--$j]; //#15593 + $k[$j++] = _Be; //#15597 + if (_Be <= 811799) { //#15596 + var _Bf = $k[--$j]; //#15594 + $k[$j++] = 925; //#15594 + $k[$j++] = $f(_Bf - 810900); //#15594 + $astore($a(2)); //#15594 + } else { //#15596 + $k[$j++] = 'bwipp.pdf417badECI'; //#15596 + $k[$j++] = "PDF417 supports ECIs 000000 to 811799"; //#15596 + $0.raiseerror(); //#15596 + } //#15596 + } //#15596 + } //#15596 + }; //#15598 + $1.encfuncs = $a(['enct', 'encn', 'encb']); //#15600 $1.addtocws = function() { - var _Bi = $k[--$j]; - $puti($1.datcws, $1.j, _Bi); - $1.j = _Bi.length + $1.j; - }; - $1.state = $1.T; - $1.submode = $1.A; - $1.datcws = $a($1.seqlen); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i >= $1.seq.length) { - break; - } - $1.chars = $get($1.seq, $1.i); - if ($eq($type($1.chars), "arraytype")) { - if ($get($1.chars, 0) <= -1e6) { - $k[$j++] = $1.chars; - $1.ence(); - $1.addtocws(); - } else { - $k[$j++] = $1.chars; + var _Bi = $k[--$j]; //#15603 + $puti($1.datcws, $1.j, _Bi); //#15603 + $1.j = _Bi.length + $1.j; //#15604 + }; //#15605 + $1.state = $1.T; //#15608 + $1.submode = $1.A; //#15608 + $1.datcws = $a($1.seqlen); //#15609 + $1.i = 0; //#15610 + $1.j = 0; //#15610 + for (;;) { //#15630 + if ($1.i >= $1.seq.length) { //#15611 + break; //#15611 + } //#15611 + $1.chars = $get($1.seq, $1.i); //#15612 + if ($eq($type($1.chars), 'arraytype')) { //#15626 + if ($get($1.chars, 0) <= -1000000) { //#15617 + $k[$j++] = $1.chars; //#15615 + $1.ence(); //#15615 + $1.addtocws(); //#15615 + } else { //#15617 + $k[$j++] = $1.chars; //#15617 if ($1[$get($1.encfuncs, $1.state)]() === true) { break; - } - $1.addtocws(); - } - } else { - $k[$j++] = $a([ $get($1.latchcws, $1.chars) ]); - $1.addtocws(); - if ($1.chars == $1.tl) { - $1.state = $1.T; - $1.submode = $1.A; - } - if ($1.chars == $1.nl) { - $1.state = $1.N; - } - if ($1.chars == $1.bl || $1.chars == $1.bl6) { - $1.state = $1.B; - } - if ($1.chars == $1.bs) { - $1.i = $1.i + 1; - $k[$j++] = $get($1.seq, $1.i); - $1.encb(); - $1.addtocws(); - } - } - $1.i = $1.i + 1; - } - $1.datcws = $geti($1.datcws, 0, $1.j); - } - $1.m = $1.datcws.length; - if ($1.eclevel == -1) { - if ($1.m <= 40) { - $1.eclevel = 2; - } - if ($1.m >= 41 && $1.m <= 160) { - $1.eclevel = 3; - } - if ($1.m >= 161 && $1.m <= 320) { - $1.eclevel = 4; - } - if ($1.m >= 321) { - $1.eclevel = 5; - } - } - $1.maxeclevel = ~~(Math.log(928 - 1 - $1.m) / Math.log(2)) - 1; - if ($1.eclevel > $1.maxeclevel) { - $1.eclevel = $1.maxeclevel; - } - $1.k = ~~Math.pow(2, $1.eclevel + 1); - if ($1.columns == 0) { - $1.columns = ~~Math.round(Math.sqrt(($1.m + $1.k) / 3)); - } - $k[$j++] = "c"; - if ($1.columns >= 1) { - $k[$j++] = $1.columns; - } else { - $k[$j++] = 1; - } - var _Cn = $k[--$j]; - $1[$k[--$j]] = _Cn; - $1.r = ~~Math.ceil(($1.m + $1.k + 1) / $1.columns); - if ($1.r < $1.rows && $1.rows <= 90) { - $1.r = $1.rows; - } - if ($1.r < 3) { - $1.r = 3; - } - var _Cx = $1.c; - var _Cy = $1.r; - var _Cz = $1.m; - var _D0 = 8; - var _D1 = ~~(Math.log($f($f(_Cx * _Cy - 1) - _Cz)) / Math.log(2)) - 1; - if (~~(Math.log($f($f(_Cx * _Cy - 1) - _Cz)) / Math.log(2)) - 1 > 8) { - var _ = _D0; - _D0 = _D1; - _D1 = _; - } - $1.maxeclevel = _D1; - if ($1.maxeclevel > $1.eclevel) { - $1.eclevel = $1.maxeclevel; - $1.k = ~~Math.pow(2, $1.eclevel + 1); - } - $1.n = $f($1.c * $1.r - $1.k); - $1.cws = $a($f($1.c * $1.r + 1)); - $put($1.cws, 0, $1.n); - $puti($1.cws, 1, $1.datcws); - $k[$j++] = $1.cws; - $k[$j++] = $1.m + 1; - $k[$j++] = Infinity; - for (var _DK = 0, _DL = $f($f($1.n - $1.m) - 1); _DK < _DL; _DK++) { - $k[$j++] = 900; - } - var _DM = $a(); - var _DN = $k[--$j]; - $puti($k[--$j], _DN, _DM); - $k[$j++] = $1.cws; - $k[$j++] = $1.n; - $k[$j++] = Infinity; - for (var _DS = 0, _DT = $1.k; _DS < _DT; _DS++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - var _DU = $a(); - var _DV = $k[--$j]; - $puti($k[--$j], _DV, _DU); - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _DX = 0, _DY = 928; _DX < _DY; _DX++) { - var _DZ = $k[--$j]; - $k[$j++] = _DZ; - $k[$j++] = _DZ * 3 % 929; - } - $1.rsalog = $a(); - $1.rslog = $a(929); - for (var _Dc = 1; _Dc <= 928; _Dc += 1) { - $put($1.rslog, $get($1.rsalog, _Dc), _Dc); - } + } //#15617 + $1.addtocws(); //#15617 + } //#15617 + } else { //#15626 + $k[$j++] = $a([$get($1.latchcws, $1.chars)]); //#15620 + $1.addtocws(); //#15620 + if ($1.chars == $1.tl) { //#15621 + $1.state = $1.T; //#15621 + $1.submode = $1.A; //#15621 + } //#15621 + if ($1.chars == $1.nl) { //#15622 + $1.state = $1.N; //#15622 + } //#15622 + if (($1.chars == $1.bl) || ($1.chars == $1.bl6)) { //#15623 + $1.state = $1.B; //#15623 + } //#15623 + if ($1.chars == $1.bs) { //#15627 + $1.i = $1.i + 1; //#15625 + $k[$j++] = $get($1.seq, $1.i); //#15626 + $1.encb(); //#15626 + $1.addtocws(); //#15626 + } //#15626 + } //#15626 + $1.i = $1.i + 1; //#15629 + } //#15629 + $1.datcws = $geti($1.datcws, 0, $1.j); //#15631 + } //#15631 + $1.m = $1.datcws.length; //#15635 + if ($1.eclevel == -1) { //#15641 + if ($1.m <= 40) { //#15637 + $1.eclevel = 2; //#15637 + } //#15637 + if (($1.m >= 41) && ($1.m <= 160)) { //#15638 + $1.eclevel = 3; //#15638 + } //#15638 + if (($1.m >= 161) && ($1.m <= 320)) { //#15639 + $1.eclevel = 4; //#15639 + } //#15639 + if ($1.m >= 321) { //#15640 + $1.eclevel = 5; //#15640 + } //#15640 + } //#15640 + $1.maxeclevel = (~~((Math.log((928 - 1) - $1.m)) / Math.log(2))) - 1; //#15644 + if ($1.eclevel > $1.maxeclevel) { //#15645 + $1.eclevel = $1.maxeclevel; //#15645 + } //#15645 + $1.k = ~~Math.pow(2, $1.eclevel + 1); //#15646 + if ($1.columns == 0) { //#15649 + $1.columns = ~~(Math.round(Math.sqrt(($1.m + $1.k) / 3))); //#15649 + } //#15649 + $k[$j++] = 'c'; //#15650 + if ($1.columns >= 1) { //#15650 + $k[$j++] = $1.columns; //#15650 + } else { //#15650 + $k[$j++] = 1; //#15650 + } //#15650 + var _Cn = $k[--$j]; //#15650 + $1[$k[--$j]] = _Cn; //#15650 + $1.r = ~~(Math.ceil((($1.m + $1.k) + 1) / $1.columns)); //#15653 + if (($1.r < $1.rows) && ($1.rows <= 90)) { //#15654 + $1.r = $1.rows; //#15654 + } //#15654 + if ($1.r < 3) { //#15655 + $1.r = 3; //#15655 + } //#15655 + var _Cx = $1.c; //#15658 + var _Cy = $1.r; //#15658 + var _Cz = $1.m; //#15658 + var _D0 = 8; //#15658 + var _D1 = (~~((Math.log($f(($f((_Cx * _Cy) - 1)) - _Cz))) / Math.log(2))) - 1; //#15658 + if (((~~((Math.log($f(($f((_Cx * _Cy) - 1)) - _Cz))) / Math.log(2))) - 1) > 8) { //#15658 + var _ = _D0; //#15658 + _D0 = _D1; //#15658 + _D1 = _; //#15658 + } //#15658 + $1.maxeclevel = _D1; //#15658 + if ($1.maxeclevel > $1.eclevel) { //#15662 + $1.eclevel = $1.maxeclevel; //#15660 + $1.k = ~~Math.pow(2, $1.eclevel + 1); //#15661 + } //#15661 + $1.n = $f(($1.c * $1.r) - $1.k); //#15665 + $1.cws = $a($f(($1.c * $1.r) + 1)); //#15666 + $put($1.cws, 0, $1.n); //#15667 + $puti($1.cws, 1, $1.datcws); //#15668 + $k[$j++] = $1.cws; //#15669 + $k[$j++] = $1.m + 1; //#15669 + $k[$j++] = Infinity; //#15669 + for (var _DK = 0, _DL = $f($f($1.n - $1.m) - 1); _DK < _DL; _DK++) { //#15669 + $k[$j++] = 900; //#15669 + } //#15669 + var _DM = $a(); //#15669 + var _DN = $k[--$j]; //#15669 + $puti($k[--$j], _DN, _DM); //#15669 + $k[$j++] = $1.cws; //#15670 + $k[$j++] = $1.n; //#15670 + $k[$j++] = Infinity; //#15670 + for (var _DS = 0, _DT = $1.k; _DS < _DT; _DS++) { //#15670 + $k[$j++] = 0; //#15670 + } //#15670 + $k[$j++] = 0; //#15670 + var _DU = $a(); //#15670 + var _DV = $k[--$j]; //#15670 + $puti($k[--$j], _DV, _DU); //#15670 + $k[$j++] = Infinity; //#15673 + $k[$j++] = 1; //#15673 + for (var _DX = 0, _DY = 928; _DX < _DY; _DX++) { //#15673 + var _DZ = $k[--$j]; //#15673 + $k[$j++] = _DZ; //#15673 + $k[$j++] = (_DZ * 3) % 929; //#15673 + } //#15673 + $1.rsalog = $a(); //#15673 + $1.rslog = $a(929); //#15674 + for (var _Dc = 1; _Dc <= 928; _Dc += 1) { //#15675 + $put($1.rslog, $get($1.rsalog, _Dc), _Dc); //#15675 + } //#15675 $1.rsprod = function() { - var _Dg = $k[--$j]; - var _Dh = $k[--$j]; - $k[$j++] = _Dh; - $k[$j++] = _Dg; - if (_Dg != 0 && _Dh != 0) { - var _Dk = $get($1.rslog, $k[--$j]); - var _Dp = $get($1.rsalog, $f(_Dk + $get($1.rslog, $k[--$j])) % 928); - $k[$j++] = _Dp; - } else { - $j -= 2; - $k[$j++] = 0; - } - }; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _Dr = 0, _Ds = $1.k; _Dr < _Ds; _Dr++) { - $k[$j++] = 0; - } - $1.coeffs = $a(); - for (var _Dw = 1, _Dv = $1.k; _Dw <= _Dv; _Dw += 1) { - $1.i = _Dw; - $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); - for (var _E3 = $1.i - 1; _E3 >= 1; _E3 -= 1) { - $1.j = _E3; - $k[$j++] = $1.coeffs; - $k[$j++] = $1.j; - $k[$j++] = $get($1.coeffs, $1.j - 1); - $k[$j++] = $get($1.coeffs, $1.j); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _EF = $k[--$j]; - var _EG = $k[--$j]; - var _EH = $k[--$j]; - $put($k[--$j], _EH, $f(_EG + _EF) % 929); - } - $k[$j++] = $1.coeffs; - $k[$j++] = 0; - $k[$j++] = $get($1.coeffs, 0); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _EP = $k[--$j]; - var _EQ = $k[--$j]; - $put($k[--$j], _EQ, _EP); - } - $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); - for (var _EW = $1.coeffs.length - 1; _EW >= 0; _EW -= 2) { - var _EX = $1.coeffs; - $put(_EX, _EW, $f(929 - $get(_EX, _EW))); - } - for (var _Eb = 0, _Ea = $f($1.n - 1); _Eb <= _Ea; _Eb += 1) { - $1.t = $f($get($1.cws, _Eb) + $get($1.cws, $1.n)) % 929; - for (var _Ej = 0, _Ei = $1.k - 1; _Ej <= _Ei; _Ej += 1) { - $1.j = _Ej; - $put($1.cws, $f($1.n + $1.j), $f($get($1.cws, $f($f($1.n + $1.j) + 1)) + $f(929 - $1.t * $get($1.coeffs, $1.k - $1.j - 1) % 929)) % 929); - } - } - for (var _F0 = $1.n, _Ez = $f($1.n + $1.k); _F0 <= _Ez; _F0 += 1) { - $put($1.cws, _F0, $f(929 - $get($1.cws, _F0)) % 929); - } - $1.cws = $geti($1.cws, 0, $1.cws.length - 1); - $1.clusters = $a([ $a([ 120256, 125680, 128380, 120032, 125560, 128318, 108736, 119920, 108640, 86080, 108592, 86048, 110016, 120560, 125820, 109792, 120440, 125758, 88256, 109680, 88160, 89536, 110320, 120700, 89312, 110200, 120638, 89200, 110140, 89840, 110460, 89720, 110398, 89980, 128506, 119520, 125304, 128190, 107712, 119408, 125244, 107616, 119352, 84032, 107568, 119324, 84e3, 107544, 83984, 108256, 119672, 125374, 85184, 108144, 119612, 85088, 108088, 119582, 85040, 108060, 85728, 108408, 119742, 85616, 108348, 85560, 108318, 85880, 108478, 85820, 85790, 107200, 119152, 125116, 107104, 119096, 125086, 83008, 107056, 119068, 82976, 107032, 82960, 82952, 83648, 107376, 119228, 83552, 107320, 119198, 83504, 107292, 83480, 83468, 83824, 107452, 83768, 107422, 83740, 83900, 106848, 118968, 125022, 82496, 106800, 118940, 82464, 106776, 118926, 82448, 106764, 82440, 106758, 82784, 106936, 119006, 82736, 106908, 82712, 106894, 82700, 82694, 106974, 82830, 82240, 106672, 118876, 82208, 106648, 118862, 82192, 106636, 82184, 106630, 82180, 82352, 82328, 82316, 82080, 118830, 106572, 106566, 82050, 117472, 124280, 127678, 103616, 117360, 124220, 103520, 117304, 124190, 75840, 103472, 75808, 104160, 117624, 124350, 76992, 104048, 117564, 76896, 103992, 76848, 76824, 77536, 104312, 117694, 77424, 104252, 77368, 77340, 77688, 104382, 77628, 77758, 121536, 126320, 128700, 121440, 126264, 128670, 111680, 121392, 126236, 111648, 121368, 126222, 111632, 121356, 103104, 117104, 124092, 112320, 103008, 117048, 124062, 112224, 121656, 126366, 93248, 74784, 102936, 117006, 93216, 112152, 93200, 75456, 103280, 117180, 93888, 75360, 103224, 117150, 93792, 112440, 121758, 93744, 75288, 93720, 75632, 103356, 94064, 75576, 103326, 94008, 112542, 93980, 75708, 94140, 75678, 94110, 121184, 126136, 128606, 111168, 121136, 126108, 111136, 121112, 126094, 111120, 121100, 111112, 111108, 102752, 116920, 123998, 111456, 102704, 116892, 91712, 74272, 121244, 116878, 91680, 74256, 102668, 91664, 111372, 102662, 74244, 74592, 102840, 116958, 92e3, 74544, 102812, 91952, 111516, 102798, 91928, 74508, 74502, 74680, 102878, 92088, 74652, 92060, 74638, 92046, 92126, 110912, 121008, 126044, 110880, 120984, 126030, 110864, 120972, 110856, 120966, 110852, 110850, 74048, 102576, 116828, 90944, 74016, 102552, 116814, 90912, 111e3, 121038, 90896, 73992, 102534, 90888, 110982, 90884, 74160, 102620, 91056, 74136, 102606, 91032, 111054, 91020, 74118, 91014, 91100, 91086, 110752, 120920, 125998, 110736, 120908, 110728, 120902, 110724, 110722, 73888, 102488, 116782, 90528, 73872, 102476, 90512, 110796, 102470, 90504, 73860, 90500, 73858, 73944, 90584, 90572, 90566, 120876, 120870, 110658, 102444, 73800, 90312, 90308, 90306, 101056, 116080, 123580, 100960, 116024, 70720, 100912, 115996, 70688, 100888, 70672, 70664, 71360, 101232, 116156, 71264, 101176, 116126, 71216, 101148, 71192, 71180, 71536, 101308, 71480, 101278, 71452, 71612, 71582, 118112, 124600, 127838, 105024, 118064, 124572, 104992, 118040, 124558, 104976, 118028, 104968, 118022, 100704, 115896, 123486, 105312, 100656, 115868, 79424, 70176, 118172, 115854, 79392, 105240, 100620, 79376, 70152, 79368, 70496, 100792, 115934, 79712, 70448, 118238, 79664, 105372, 100750, 79640, 70412, 79628, 70584, 100830, 79800, 70556, 79772, 70542, 70622, 79838, 122176, 126640, 128860, 122144, 126616, 128846, 122128, 126604, 122120, 126598, 122116, 104768, 117936, 124508, 113472, 104736, 126684, 124494, 113440, 122264, 126670, 113424, 104712, 117894, 113416, 122246, 104706, 69952, 100528, 115804, 78656, 69920, 100504, 115790, 96064, 78624, 104856, 117966, 96032, 113560, 122318, 100486, 96016, 78600, 104838, 96008, 69890, 70064, 100572, 78768, 70040, 100558, 96176, 78744, 104910, 96152, 113614, 70022, 78726, 70108, 78812, 70094, 96220, 78798, 122016, 126552, 128814, 122e3, 126540, 121992, 126534, 121988, 121986, 104608, 117848, 124462, 113056, 104592, 126574, 113040, 122060, 117830, 113032, 104580, 113028, 104578, 113026, 69792, 100440, 115758, 78240, 69776, 100428, 95136, 78224, 104652, 100422, 95120, 113100, 69764, 95112, 78212, 69762, 78210, 69848, 100462, 78296, 69836, 95192, 78284, 69830, 95180, 78278, 69870, 95214, 121936, 126508, 121928, 126502, 121924, 121922, 104528, 117804, 112848, 104520, 117798, 112840, 121958, 112836, 104514, 112834, 69712, 100396, 78032, 69704, 100390, 94672, 78024, 104550, 94664, 112870, 69698, 94660, 78018, 94658, 78060, 94700, 94694, 126486, 121890, 117782, 104484, 104482, 69672, 77928, 94440, 69666, 77922, 99680, 68160, 99632, 68128, 99608, 115342, 68112, 99596, 68104, 99590, 68448, 99768, 115422, 68400, 99740, 68376, 99726, 68364, 68358, 68536, 99806, 68508, 68494, 68574, 101696, 116400, 123740, 101664, 116376, 101648, 116364, 101640, 116358, 101636, 67904, 99504, 115292, 72512, 67872, 116444, 115278, 72480, 101784, 116430, 72464, 67848, 99462, 72456, 101766, 67842, 68016, 99548, 72624, 67992, 99534, 72600, 101838, 72588, 67974, 68060, 72668, 68046, 72654, 118432, 124760, 127918, 118416, 124748, 118408, 124742, 118404, 118402, 101536, 116312, 105888, 101520, 116300, 105872, 118476, 116294, 105864, 101508, 105860, 101506, 105858, 67744, 99416, 72096, 67728, 116334, 80800, 72080, 101580, 99398, 80784, 105932, 67716, 80776, 72068, 67714, 72066, 67800, 99438, 72152, 67788, 80856, 72140, 67782, 80844, 72134, 67822, 72174, 80878, 126800, 128940, 126792, 128934, 126788, 126786, 118352, 124716, 122576, 126828, 124710, 122568, 126822, 122564, 118338, 122562, 101456, 116268, 105680, 101448, 116262, 114128, 105672, 118374, 114120, 122598, 101442, 114116, 105666, 114114, 67664, 99372, 71888, 67656, 99366, 80336, 71880, 101478, 97232, 80328, 105702, 67650, 97224, 114150, 71874, 97220, 67692, 71916, 67686, 80364, 71910, 97260, 80358, 97254, 126760, 128918, 126756, 126754, 118312, 124694, 122472, 126774, 122468, 118306, 122466, 101416, 116246, 105576, 101412, 113896, 105572, 101410, 113892, 105570, 113890, 67624, 99350, 71784, 101430, 80104, 71780, 67618, 96744, 80100, 71778, 96740, 80098, 96738, 71798, 96758, 126738, 122420, 122418, 105524, 113780, 113778, 71732, 79988, 96500, 96498, 66880, 66848, 98968, 66832, 66824, 66820, 66992, 66968, 66956, 66950, 67036, 67022, 1e5, 99984, 115532, 99976, 115526, 99972, 99970, 66720, 98904, 69024, 100056, 98892, 69008, 100044, 69e3, 100038, 68996, 66690, 68994, 66776, 98926, 69080, 100078, 69068, 66758, 69062, 66798, 69102, 116560, 116552, 116548, 116546, 99920, 102096, 116588, 115494, 102088, 116582, 102084, 99906, 102082, 66640, 68816, 66632, 98854, 73168, 68808, 66628, 73160, 68804, 66626, 73156, 68802, 66668, 68844, 66662, 73196, 68838, 73190, 124840, 124836, 124834, 116520, 118632, 124854, 118628, 116514, 118626, 99880, 115478, 101992, 116534, 106216, 101988, 99874, 106212, 101986, 106210, 66600, 98838, 68712, 99894, 72936, 68708, 66594, 81384, 72932, 68706, 81380, 72930, 66614, 68726, 72950, 81398, 128980, 128978, 124820, 126900, 124818, 126898, 116500, 118580, 116498, 122740, 118578, 122738, 99860, 101940, 99858, 106100, 101938, 114420 ]), $a([ 128352, 129720, 125504, 128304, 129692, 125472, 128280, 129678, 125456, 128268, 125448, 128262, 125444, 125792, 128440, 129758, 120384, 125744, 128412, 120352, 125720, 128398, 120336, 125708, 120328, 125702, 120324, 120672, 125880, 128478, 110144, 120624, 125852, 110112, 120600, 125838, 110096, 120588, 110088, 120582, 110084, 110432, 120760, 125918, 89664, 110384, 120732, 89632, 110360, 120718, 89616, 110348, 89608, 110342, 89952, 110520, 120798, 89904, 110492, 89880, 110478, 89868, 90040, 110558, 90012, 89998, 125248, 128176, 129628, 125216, 128152, 129614, 125200, 128140, 125192, 128134, 125188, 125186, 119616, 125360, 128220, 119584, 125336, 128206, 119568, 125324, 119560, 125318, 119556, 119554, 108352, 119728, 125404, 108320, 119704, 125390, 108304, 119692, 108296, 119686, 108292, 108290, 85824, 108464, 119772, 85792, 108440, 119758, 85776, 108428, 85768, 108422, 85764, 85936, 108508, 85912, 108494, 85900, 85894, 85980, 85966, 125088, 128088, 129582, 125072, 128076, 125064, 128070, 125060, 125058, 119200, 125144, 128110, 119184, 125132, 119176, 125126, 119172, 119170, 107424, 119256, 125166, 107408, 119244, 107400, 119238, 107396, 107394, 83872, 107480, 119278, 83856, 107468, 83848, 107462, 83844, 83842, 83928, 107502, 83916, 83910, 83950, 125008, 128044, 125e3, 128038, 124996, 124994, 118992, 125036, 118984, 125030, 118980, 118978, 106960, 119020, 106952, 119014, 106948, 106946, 82896, 106988, 82888, 106982, 82884, 82882, 82924, 82918, 124968, 128022, 124964, 124962, 118888, 124982, 118884, 118882, 106728, 118902, 106724, 106722, 82408, 106742, 82404, 82402, 124948, 124946, 118836, 118834, 106612, 106610, 124224, 127664, 129372, 124192, 127640, 129358, 124176, 127628, 124168, 127622, 124164, 124162, 117568, 124336, 127708, 117536, 124312, 127694, 117520, 124300, 117512, 124294, 117508, 117506, 104256, 117680, 124380, 104224, 117656, 124366, 104208, 117644, 104200, 117638, 104196, 104194, 77632, 104368, 117724, 77600, 104344, 117710, 77584, 104332, 77576, 104326, 77572, 77744, 104412, 77720, 104398, 77708, 77702, 77788, 77774, 128672, 129880, 93168, 128656, 129868, 92664, 128648, 129862, 92412, 128644, 128642, 124064, 127576, 129326, 126368, 124048, 129902, 126352, 128716, 127558, 126344, 124036, 126340, 124034, 126338, 117152, 124120, 127598, 121760, 117136, 124108, 121744, 126412, 124102, 121736, 117124, 121732, 117122, 121730, 103328, 117208, 124142, 112544, 103312, 117196, 112528, 121804, 117190, 112520, 103300, 112516, 103298, 112514, 75680, 103384, 117230, 94112, 75664, 103372, 94096, 112588, 103366, 94088, 75652, 94084, 75650, 75736, 103406, 94168, 75724, 94156, 75718, 94150, 75758, 128592, 129836, 91640, 128584, 129830, 91388, 128580, 91262, 128578, 123984, 127532, 126160, 123976, 127526, 126152, 128614, 126148, 123970, 126146, 116944, 124012, 121296, 116936, 124006, 121288, 126182, 121284, 116930, 121282, 102864, 116972, 111568, 102856, 116966, 111560, 121318, 111556, 102850, 111554, 74704, 102892, 92112, 74696, 102886, 92104, 111590, 92100, 74690, 92098, 74732, 92140, 74726, 92134, 128552, 129814, 90876, 128548, 90750, 128546, 123944, 127510, 126056, 128566, 126052, 123938, 126050, 116840, 123958, 121064, 116836, 121060, 116834, 121058, 102632, 116854, 111080, 121078, 111076, 102626, 111074, 74216, 102646, 91112, 74212, 91108, 74210, 91106, 74230, 91126, 128532, 90494, 128530, 123924, 126004, 123922, 126002, 116788, 120948, 116786, 120946, 102516, 110836, 102514, 110834, 73972, 90612, 73970, 90610, 128522, 123914, 125978, 116762, 120890, 102458, 110714, 123552, 127320, 129198, 123536, 127308, 123528, 127302, 123524, 123522, 116128, 123608, 127342, 116112, 123596, 116104, 123590, 116100, 116098, 101280, 116184, 123630, 101264, 116172, 101256, 116166, 101252, 101250, 71584, 101336, 116206, 71568, 101324, 71560, 101318, 71556, 71554, 71640, 101358, 71628, 71622, 71662, 127824, 129452, 79352, 127816, 129446, 79100, 127812, 78974, 127810, 123472, 127276, 124624, 123464, 127270, 124616, 127846, 124612, 123458, 124610, 115920, 123500, 118224, 115912, 123494, 118216, 124646, 118212, 115906, 118210, 100816, 115948, 105424, 100808, 115942, 105416, 118246, 105412, 100802, 105410, 70608, 100844, 79824, 70600, 100838, 79816, 105446, 79812, 70594, 79810, 70636, 79852, 70630, 79846, 129960, 95728, 113404, 129956, 95480, 113278, 129954, 95356, 95294, 127784, 129430, 78588, 128872, 129974, 95996, 78462, 128868, 127778, 95870, 128866, 123432, 127254, 124520, 123428, 126696, 128886, 123426, 126692, 124514, 126690, 115816, 123446, 117992, 115812, 122344, 117988, 115810, 122340, 117986, 122338, 100584, 115830, 104936, 100580, 113640, 104932, 100578, 113636, 104930, 113634, 70120, 100598, 78824, 70116, 96232, 78820, 70114, 96228, 78818, 96226, 70134, 78838, 129940, 94968, 113022, 129938, 94844, 94782, 127764, 78206, 128820, 127762, 95102, 128818, 123412, 124468, 123410, 126580, 124466, 126578, 115764, 117876, 115762, 122100, 117874, 122098, 100468, 104692, 100466, 113140, 104690, 113138, 69876, 78324, 69874, 95220, 78322, 95218, 129930, 94588, 94526, 127754, 128794, 123402, 124442, 126522, 115738, 117818, 121978, 100410, 104570, 112890, 69754, 78074, 94714, 94398, 123216, 127148, 123208, 127142, 123204, 123202, 115408, 123244, 115400, 123238, 115396, 115394, 99792, 115436, 99784, 115430, 99780, 99778, 68560, 99820, 68552, 99814, 68548, 68546, 68588, 68582, 127400, 129238, 72444, 127396, 72318, 127394, 123176, 127126, 123752, 123172, 123748, 123170, 123746, 115304, 123190, 116456, 115300, 116452, 115298, 116450, 99560, 115318, 101864, 99556, 101860, 99554, 101858, 68072, 99574, 72680, 68068, 72676, 68066, 72674, 68086, 72694, 129492, 80632, 105854, 129490, 80508, 80446, 127380, 72062, 127924, 127378, 80766, 127922, 123156, 123700, 123154, 124788, 123698, 124786, 115252, 116340, 115250, 118516, 116338, 118514, 99444, 101620, 99442, 105972, 101618, 105970, 67828, 72180, 67826, 80884, 72178, 80882, 97008, 114044, 96888, 113982, 96828, 96798, 129482, 80252, 130010, 97148, 80190, 97086, 127370, 127898, 128954, 123146, 123674, 124730, 126842, 115226, 116282, 118394, 122618, 99386, 101498, 105722, 114170, 67706, 71930, 80378, 96632, 113854, 96572, 96542, 80062, 96702, 96444, 96414, 96350, 123048, 123044, 123042, 115048, 123062, 115044, 115042, 99048, 115062, 99044, 99042, 67048, 99062, 67044, 67042, 67062, 127188, 68990, 127186, 123028, 123316, 123026, 123314, 114996, 115572, 114994, 115570, 98932, 100084, 98930, 100082, 66804, 69108, 66802, 69106, 129258, 73084, 73022, 127178, 127450, 123018, 123290, 123834, 114970, 115514, 116602, 98874, 99962, 102138, 66682, 68858, 73210, 81272, 106174, 81212, 81182, 72894, 81342, 97648, 114364, 97592, 114334, 97564, 97550, 81084, 97724, 81054, 97694, 97464, 114270, 97436, 97422, 80990, 97502, 97372, 97358, 97326, 114868, 114866, 98676, 98674, 66292, 66290, 123098, 114842, 115130, 98618, 99194, 66170, 67322, 69310, 73404, 73374, 81592, 106334, 81564, 81550, 73310, 81630, 97968, 114524, 97944, 114510, 97932, 97926, 81500, 98012, 81486, 97998, 97880, 114478, 97868, 97862, 81454, 97902, 97836, 97830, 69470, 73564, 73550, 81752, 106414, 81740, 81734, 73518, 81774, 81708, 81702 ]), $a([ 109536, 120312, 86976, 109040, 120060, 86496, 108792, 119934, 86256, 108668, 86136, 129744, 89056, 110072, 129736, 88560, 109820, 129732, 88312, 109694, 129730, 88188, 128464, 129772, 89592, 128456, 129766, 89340, 128452, 89214, 128450, 125904, 128492, 125896, 128486, 125892, 125890, 120784, 125932, 120776, 125926, 120772, 120770, 110544, 120812, 110536, 120806, 110532, 84928, 108016, 119548, 84448, 107768, 119422, 84208, 107644, 84088, 107582, 84028, 129640, 85488, 108284, 129636, 85240, 108158, 129634, 85116, 85054, 128232, 129654, 85756, 128228, 85630, 128226, 125416, 128246, 125412, 125410, 119784, 125430, 119780, 119778, 108520, 119798, 108516, 108514, 83424, 107256, 119166, 83184, 107132, 83064, 107070, 83004, 82974, 129588, 83704, 107390, 129586, 83580, 83518, 128116, 83838, 128114, 125172, 125170, 119284, 119282, 107508, 107506, 82672, 106876, 82552, 106814, 82492, 82462, 129562, 82812, 82750, 128058, 125050, 119034, 82296, 106686, 82236, 82206, 82366, 82108, 82078, 76736, 103920, 117500, 76256, 103672, 117374, 76016, 103548, 75896, 103486, 75836, 129384, 77296, 104188, 129380, 77048, 104062, 129378, 76924, 76862, 127720, 129398, 77564, 127716, 77438, 127714, 124392, 127734, 124388, 124386, 117736, 124406, 117732, 117730, 104424, 117750, 104420, 104418, 112096, 121592, 126334, 92608, 111856, 121468, 92384, 111736, 121406, 92272, 111676, 92216, 111646, 92188, 75232, 103160, 117118, 93664, 74992, 103036, 93424, 112252, 102974, 93304, 74812, 93244, 74782, 93214, 129332, 75512, 103294, 129908, 129330, 93944, 75388, 129906, 93820, 75326, 93758, 127604, 75646, 128756, 127602, 94078, 128754, 124148, 126452, 124146, 126450, 117236, 121844, 117234, 121842, 103412, 103410, 91584, 111344, 121212, 91360, 111224, 121150, 91248, 111164, 91192, 111134, 91164, 91150, 74480, 102780, 91888, 74360, 102718, 91768, 111422, 91708, 74270, 91678, 129306, 74620, 129850, 92028, 74558, 91966, 127546, 128634, 124026, 126202, 116986, 121338, 102906, 90848, 110968, 121022, 90736, 110908, 90680, 110878, 90652, 90638, 74104, 102590, 91e3, 74044, 90940, 74014, 90910, 74174, 91070, 90480, 110780, 90424, 110750, 90396, 90382, 73916, 90556, 73886, 90526, 90296, 110686, 90268, 90254, 73822, 90334, 90204, 90190, 71136, 101112, 116094, 70896, 100988, 70776, 100926, 70716, 70686, 129204, 71416, 101246, 129202, 71292, 71230, 127348, 71550, 127346, 123636, 123634, 116212, 116210, 101364, 101362, 79296, 105200, 118140, 79072, 105080, 118078, 78960, 105020, 78904, 104990, 78876, 78862, 70384, 100732, 79600, 70264, 100670, 79480, 105278, 79420, 70174, 79390, 129178, 70524, 129466, 79740, 70462, 79678, 127290, 127866, 123514, 124666, 115962, 118266, 100858, 113376, 122232, 126654, 95424, 113264, 122172, 95328, 113208, 122142, 95280, 113180, 95256, 113166, 95244, 78560, 104824, 117950, 95968, 78448, 104764, 95856, 113468, 104734, 95800, 78364, 95772, 78350, 95758, 70008, 100542, 78712, 69948, 96120, 78652, 69918, 96060, 78622, 96030, 70078, 78782, 96190, 94912, 113008, 122044, 94816, 112952, 122014, 94768, 112924, 94744, 112910, 94732, 94726, 78192, 104636, 95088, 78136, 104606, 95032, 113054, 95004, 78094, 94990, 69820, 78268, 69790, 95164, 78238, 95134, 94560, 112824, 121950, 94512, 112796, 94488, 112782, 94476, 94470, 78008, 104542, 94648, 77980, 94620, 77966, 94606, 69726, 78046, 94686, 94384, 112732, 94360, 112718, 94348, 94342, 77916, 94428, 77902, 94414, 94296, 112686, 94284, 94278, 77870, 94318, 94252, 94246, 68336, 99708, 68216, 99646, 68156, 68126, 68476, 68414, 127162, 123258, 115450, 99834, 72416, 101752, 116414, 72304, 101692, 72248, 101662, 72220, 72206, 67960, 99518, 72568, 67900, 72508, 67870, 72478, 68030, 72638, 80576, 105840, 118460, 80480, 105784, 118430, 80432, 105756, 80408, 105742, 80396, 80390, 72048, 101564, 80752, 71992, 101534, 80696, 71964, 80668, 71950, 80654, 67772, 72124, 67742, 80828, 72094, 80798, 114016, 122552, 126814, 96832, 113968, 122524, 96800, 113944, 122510, 96784, 113932, 96776, 113926, 96772, 80224, 105656, 118366, 97120, 80176, 105628, 97072, 114076, 105614, 97048, 80140, 97036, 80134, 97030, 71864, 101470, 80312, 71836, 97208, 80284, 71822, 97180, 80270, 97166, 67678, 71902, 80350, 97246, 96576, 113840, 122460, 96544, 113816, 122446, 96528, 113804, 96520, 113798, 96516, 96514, 80048, 105564, 96688, 80024, 105550, 96664, 113870, 96652, 80006, 96646, 71772, 80092, 71758, 96732, 80078, 96718, 96416, 113752, 122414, 96400, 113740, 96392, 113734, 96388, 96386, 79960, 105518, 96472, 79948, 96460, 79942, 96454, 71726, 79982, 96494, 96336, 113708, 96328, 113702, 96324, 96322, 79916, 96364, 79910, 96358, 96296, 113686, 96292, 96290, 79894, 96310, 66936, 99006, 66876, 66846, 67006, 68976, 100028, 68920, 99998, 68892, 68878, 66748, 69052, 66718, 69022, 73056, 102072, 116574, 73008, 102044, 72984, 102030, 72972, 72966, 68792, 99934, 73144, 68764, 73116, 68750, 73102, 66654, 68830, 73182, 81216, 106160, 118620, 81184, 106136, 118606, 81168, 106124, 81160, 106118, 81156, 81154, 72880, 101980, 81328, 72856, 101966, 81304, 106190, 81292, 72838, 81286, 68700, 72924, 68686, 81372, 72910, 81358, 114336, 122712, 126894, 114320, 122700, 114312, 122694, 114308, 114306, 81056, 106072, 118574, 97696, 81040, 106060, 97680, 114380, 106054, 97672, 81028, 97668, 81026, 97666, 72792, 101934, 81112, 72780, 97752, 81100, 72774, 97740, 81094, 97734, 68654, 72814, 81134, 97774, 114256, 122668, 114248, 122662, 114244, 114242, 80976, 106028, 97488, 80968, 106022, 97480, 114278, 97476, 80962, 97474, 72748, 81004, 72742, 97516, 80998, 97510, 114216, 122646, 114212, 114210, 80936, 106006, 97384, 80932, 97380, 80930, 97378, 72726, 80950, 97398, 114196, 114194, 80916, 97332, 80914, 97330, 66236, 66206, 67256, 99166, 67228, 67214, 66142, 67294, 69296, 100188, 69272, 100174, 69260, 69254, 67164, 69340, 67150, 69326, 73376, 102232, 116654, 73360, 102220, 73352, 102214, 73348, 73346, 69208, 100142, 73432, 102254, 73420, 69190, 73414, 67118, 69230, 73454, 106320, 118700, 106312, 118694, 106308, 106306, 73296, 102188, 81616, 106348, 102182, 81608, 73284, 81604, 73282, 81602, 69164, 73324, 69158, 81644, 73318, 81638, 122792, 126934, 122788, 122786, 106280, 118678, 114536, 106276, 114532, 106274, 114530, 73256, 102166, 81512, 73252, 98024, 81508, 73250, 98020, 81506, 98018, 69142, 73270, 81526, 98038, 122772, 122770, 106260, 114484, 106258, 114482, 73236, 81460, 73234, 97908, 81458, 97906, 122762, 106250, 114458, 73226, 81434, 97850, 66396, 66382, 67416, 99246, 67404, 67398, 66350, 67438, 69456, 100268, 69448, 100262, 69444, 69442, 67372, 69484, 67366, 69478, 102312, 116694, 102308, 102306, 69416, 100246, 73576, 102326, 73572, 69410, 73570, 67350, 69430, 73590, 118740, 118738, 102292, 106420, 102290, 106418, 69396, 73524, 69394, 81780, 73522, 81778, 118730, 102282, 106394, 69386, 73498, 81722, 66476, 66470, 67496, 99286, 67492, 67490, 66454, 67510, 100308, 100306, 67476, 69556, 67474, 69554, 116714 ]) ]); + var _Dg = $k[--$j]; //#15679 + var _Dh = $k[--$j]; //#15679 + $k[$j++] = _Dh; //#15683 + $k[$j++] = _Dg; //#15683 + if ((_Dg != 0) && (_Dh != 0)) { //#15682 + var _Dk = $get($1.rslog, $k[--$j]); //#15680 + var _Dp = $get($1.rsalog, $f(_Dk + $get($1.rslog, $k[--$j])) % 928); //#15680 + $k[$j++] = _Dp; //#15680 + } else { //#15682 + $j -= 2; //#15682 + $k[$j++] = 0; //#15682 + } //#15682 + }; //#15684 + $k[$j++] = Infinity; //#15687 + $k[$j++] = 1; //#15687 + for (var _Dr = 0, _Ds = $1.k; _Dr < _Ds; _Dr++) { //#15687 + $k[$j++] = 0; //#15687 + } //#15687 + $1.coeffs = $a(); //#15687 + for (var _Dw = 1, _Dv = $1.k; _Dw <= _Dv; _Dw += 1) { //#15696 + $1.i = _Dw; //#15689 + $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); //#15690 + for (var _E3 = $1.i - 1; _E3 >= 1; _E3 -= 1) { //#15694 + $1.j = _E3; //#15692 + $k[$j++] = $1.coeffs; //#15693 + $k[$j++] = $1.j; //#15693 + $k[$j++] = $get($1.coeffs, $1.j - 1); //#15693 + $k[$j++] = $get($1.coeffs, $1.j); //#15693 + $k[$j++] = $get($1.rsalog, $1.i); //#15693 + $1.rsprod(); //#15693 + var _EF = $k[--$j]; //#15693 + var _EG = $k[--$j]; //#15693 + var _EH = $k[--$j]; //#15693 + $put($k[--$j], _EH, $f(_EG + _EF) % 929); //#15693 + } //#15693 + $k[$j++] = $1.coeffs; //#15695 + $k[$j++] = 0; //#15695 + $k[$j++] = $get($1.coeffs, 0); //#15695 + $k[$j++] = $get($1.rsalog, $1.i); //#15695 + $1.rsprod(); //#15695 + var _EP = $k[--$j]; //#15695 + var _EQ = $k[--$j]; //#15695 + $put($k[--$j], _EQ, _EP); //#15695 + } //#15695 + $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); //#15697 + for (var _EW = $1.coeffs.length - 1; _EW >= 0; _EW -= 2) { //#15698 + var _EX = $1.coeffs; //#15698 + $put(_EX, _EW, $f(929 - $get(_EX, _EW))); //#15698 + } //#15698 + for (var _Eb = 0, _Ea = $f($1.n - 1); _Eb <= _Ea; _Eb += 1) { //#15707 + $1.t = $f($get($1.cws, _Eb) + $get($1.cws, $1.n)) % 929; //#15702 + for (var _Ej = 0, _Ei = $1.k - 1; _Ej <= _Ei; _Ej += 1) { //#15706 + $1.j = _Ej; //#15704 + $put($1.cws, $f($1.n + $1.j), ($f($get($1.cws, $f($f($1.n + $1.j) + 1)) + ($f(929 - (($1.t * $get($1.coeffs, ($1.k - $1.j) - 1)) % 929))))) % 929); //#15705 + } //#15705 + } //#15705 + for (var _F0 = $1.n, _Ez = $f($1.n + $1.k); _F0 <= _Ez; _F0 += 1) { //#15708 + $put($1.cws, _F0, $f(929 - $get($1.cws, _F0)) % 929); //#15708 + } //#15708 + $1.cws = $geti($1.cws, 0, $1.cws.length - 1); //#15711 + $1.clusters = $a([$a([120256, 125680, 128380, 120032, 125560, 128318, 108736, 119920, 108640, 86080, 108592, 86048, 110016, 120560, 125820, 109792, 120440, 125758, 88256, 109680, 88160, 89536, 110320, 120700, 89312, 110200, 120638, 89200, 110140, 89840, 110460, 89720, 110398, 89980, 128506, 119520, 125304, 128190, 107712, 119408, 125244, 107616, 119352, 84032, 107568, 119324, 84000, 107544, 83984, 108256, 119672, 125374, 85184, 108144, 119612, 85088, 108088, 119582, 85040, 108060, 85728, 108408, 119742, 85616, 108348, 85560, 108318, 85880, 108478, 85820, 85790, 107200, 119152, 125116, 107104, 119096, 125086, 83008, 107056, 119068, 82976, 107032, 82960, 82952, 83648, 107376, 119228, 83552, 107320, 119198, 83504, 107292, 83480, 83468, 83824, 107452, 83768, 107422, 83740, 83900, 106848, 118968, 125022, 82496, 106800, 118940, 82464, 106776, 118926, 82448, 106764, 82440, 106758, 82784, 106936, 119006, 82736, 106908, 82712, 106894, 82700, 82694, 106974, 82830, 82240, 106672, 118876, 82208, 106648, 118862, 82192, 106636, 82184, 106630, 82180, 82352, 82328, 82316, 82080, 118830, 106572, 106566, 82050, 117472, 124280, 127678, 103616, 117360, 124220, 103520, 117304, 124190, 75840, 103472, 75808, 104160, 117624, 124350, 76992, 104048, 117564, 76896, 103992, 76848, 76824, 77536, 104312, 117694, 77424, 104252, 77368, 77340, 77688, 104382, 77628, 77758, 121536, 126320, 128700, 121440, 126264, 128670, 111680, 121392, 126236, 111648, 121368, 126222, 111632, 121356, 103104, 117104, 124092, 112320, 103008, 117048, 124062, 112224, 121656, 126366, 93248, 74784, 102936, 117006, 93216, 112152, 93200, 75456, 103280, 117180, 93888, 75360, 103224, 117150, 93792, 112440, 121758, 93744, 75288, 93720, 75632, 103356, 94064, 75576, 103326, 94008, 112542, 93980, 75708, 94140, 75678, 94110, 121184, 126136, 128606, 111168, 121136, 126108, 111136, 121112, 126094, 111120, 121100, 111112, 111108, 102752, 116920, 123998, 111456, 102704, 116892, 91712, 74272, 121244, 116878, 91680, 74256, 102668, 91664, 111372, 102662, 74244, 74592, 102840, 116958, 92000, 74544, 102812, 91952, 111516, 102798, 91928, 74508, 74502, 74680, 102878, 92088, 74652, 92060, 74638, 92046, 92126, 110912, 121008, 126044, 110880, 120984, 126030, 110864, 120972, 110856, 120966, 110852, 110850, 74048, 102576, 116828, 90944, 74016, 102552, 116814, 90912, 111000, 121038, 90896, 73992, 102534, 90888, 110982, 90884, 74160, 102620, 91056, 74136, 102606, 91032, 111054, 91020, 74118, 91014, 91100, 91086, 110752, 120920, 125998, 110736, 120908, 110728, 120902, 110724, 110722, 73888, 102488, 116782, 90528, 73872, 102476, 90512, 110796, 102470, 90504, 73860, 90500, 73858, 73944, 90584, 90572, 90566, 120876, 120870, 110658, 102444, 73800, 90312, 90308, 90306, 101056, 116080, 123580, 100960, 116024, 70720, 100912, 115996, 70688, 100888, 70672, 70664, 71360, 101232, 116156, 71264, 101176, 116126, 71216, 101148, 71192, 71180, 71536, 101308, 71480, 101278, 71452, 71612, 71582, 118112, 124600, 127838, 105024, 118064, 124572, 104992, 118040, 124558, 104976, 118028, 104968, 118022, 100704, 115896, 123486, 105312, 100656, 115868, 79424, 70176, 118172, 115854, 79392, 105240, 100620, 79376, 70152, 79368, 70496, 100792, 115934, 79712, 70448, 118238, 79664, 105372, 100750, 79640, 70412, 79628, 70584, 100830, 79800, 70556, 79772, 70542, 70622, 79838, 122176, 126640, 128860, 122144, 126616, 128846, 122128, 126604, 122120, 126598, 122116, 104768, 117936, 124508, 113472, 104736, 126684, 124494, 113440, 122264, 126670, 113424, 104712, 117894, 113416, 122246, 104706, 69952, 100528, 115804, 78656, 69920, 100504, 115790, 96064, 78624, 104856, 117966, 96032, 113560, 122318, 100486, 96016, 78600, 104838, 96008, 69890, 70064, 100572, 78768, 70040, 100558, 96176, 78744, 104910, 96152, 113614, 70022, 78726, 70108, 78812, 70094, 96220, 78798, 122016, 126552, 128814, 122000, 126540, 121992, 126534, 121988, 121986, 104608, 117848, 124462, 113056, 104592, 126574, 113040, 122060, 117830, 113032, 104580, 113028, 104578, 113026, 69792, 100440, 115758, 78240, 69776, 100428, 95136, 78224, 104652, 100422, 95120, 113100, 69764, 95112, 78212, 69762, 78210, 69848, 100462, 78296, 69836, 95192, 78284, 69830, 95180, 78278, 69870, 95214, 121936, 126508, 121928, 126502, 121924, 121922, 104528, 117804, 112848, 104520, 117798, 112840, 121958, 112836, 104514, 112834, 69712, 100396, 78032, 69704, 100390, 94672, 78024, 104550, 94664, 112870, 69698, 94660, 78018, 94658, 78060, 94700, 94694, 126486, 121890, 117782, 104484, 104482, 69672, 77928, 94440, 69666, 77922, 99680, 68160, 99632, 68128, 99608, 115342, 68112, 99596, 68104, 99590, 68448, 99768, 115422, 68400, 99740, 68376, 99726, 68364, 68358, 68536, 99806, 68508, 68494, 68574, 101696, 116400, 123740, 101664, 116376, 101648, 116364, 101640, 116358, 101636, 67904, 99504, 115292, 72512, 67872, 116444, 115278, 72480, 101784, 116430, 72464, 67848, 99462, 72456, 101766, 67842, 68016, 99548, 72624, 67992, 99534, 72600, 101838, 72588, 67974, 68060, 72668, 68046, 72654, 118432, 124760, 127918, 118416, 124748, 118408, 124742, 118404, 118402, 101536, 116312, 105888, 101520, 116300, 105872, 118476, 116294, 105864, 101508, 105860, 101506, 105858, 67744, 99416, 72096, 67728, 116334, 80800, 72080, 101580, 99398, 80784, 105932, 67716, 80776, 72068, 67714, 72066, 67800, 99438, 72152, 67788, 80856, 72140, 67782, 80844, 72134, 67822, 72174, 80878, 126800, 128940, 126792, 128934, 126788, 126786, 118352, 124716, 122576, 126828, 124710, 122568, 126822, 122564, 118338, 122562, 101456, 116268, 105680, 101448, 116262, 114128, 105672, 118374, 114120, 122598, 101442, 114116, 105666, 114114, 67664, 99372, 71888, 67656, 99366, 80336, 71880, 101478, 97232, 80328, 105702, 67650, 97224, 114150, 71874, 97220, 67692, 71916, 67686, 80364, 71910, 97260, 80358, 97254, 126760, 128918, 126756, 126754, 118312, 124694, 122472, 126774, 122468, 118306, 122466, 101416, 116246, 105576, 101412, 113896, 105572, 101410, 113892, 105570, 113890, 67624, 99350, 71784, 101430, 80104, 71780, 67618, 96744, 80100, 71778, 96740, 80098, 96738, 71798, 96758, 126738, 122420, 122418, 105524, 113780, 113778, 71732, 79988, 96500, 96498, 66880, 66848, 98968, 66832, 66824, 66820, 66992, 66968, 66956, 66950, 67036, 67022, 100000, 99984, 115532, 99976, 115526, 99972, 99970, 66720, 98904, 69024, 100056, 98892, 69008, 100044, 69000, 100038, 68996, 66690, 68994, 66776, 98926, 69080, 100078, 69068, 66758, 69062, 66798, 69102, 116560, 116552, 116548, 116546, 99920, 102096, 116588, 115494, 102088, 116582, 102084, 99906, 102082, 66640, 68816, 66632, 98854, 73168, 68808, 66628, 73160, 68804, 66626, 73156, 68802, 66668, 68844, 66662, 73196, 68838, 73190, 124840, 124836, 124834, 116520, 118632, 124854, 118628, 116514, 118626, 99880, 115478, 101992, 116534, 106216, 101988, 99874, 106212, 101986, 106210, 66600, 98838, 68712, 99894, 72936, 68708, 66594, 81384, 72932, 68706, 81380, 72930, 66614, 68726, 72950, 81398, 128980, 128978, 124820, 126900, 124818, 126898, 116500, 118580, 116498, 122740, 118578, 122738, 99860, 101940, 99858, 106100, 101938, 114420]), $a([128352, 129720, 125504, 128304, 129692, 125472, 128280, 129678, 125456, 128268, 125448, 128262, 125444, 125792, 128440, 129758, 120384, 125744, 128412, 120352, 125720, 128398, 120336, 125708, 120328, 125702, 120324, 120672, 125880, 128478, 110144, 120624, 125852, 110112, 120600, 125838, 110096, 120588, 110088, 120582, 110084, 110432, 120760, 125918, 89664, 110384, 120732, 89632, 110360, 120718, 89616, 110348, 89608, 110342, 89952, 110520, 120798, 89904, 110492, 89880, 110478, 89868, 90040, 110558, 90012, 89998, 125248, 128176, 129628, 125216, 128152, 129614, 125200, 128140, 125192, 128134, 125188, 125186, 119616, 125360, 128220, 119584, 125336, 128206, 119568, 125324, 119560, 125318, 119556, 119554, 108352, 119728, 125404, 108320, 119704, 125390, 108304, 119692, 108296, 119686, 108292, 108290, 85824, 108464, 119772, 85792, 108440, 119758, 85776, 108428, 85768, 108422, 85764, 85936, 108508, 85912, 108494, 85900, 85894, 85980, 85966, 125088, 128088, 129582, 125072, 128076, 125064, 128070, 125060, 125058, 119200, 125144, 128110, 119184, 125132, 119176, 125126, 119172, 119170, 107424, 119256, 125166, 107408, 119244, 107400, 119238, 107396, 107394, 83872, 107480, 119278, 83856, 107468, 83848, 107462, 83844, 83842, 83928, 107502, 83916, 83910, 83950, 125008, 128044, 125000, 128038, 124996, 124994, 118992, 125036, 118984, 125030, 118980, 118978, 106960, 119020, 106952, 119014, 106948, 106946, 82896, 106988, 82888, 106982, 82884, 82882, 82924, 82918, 124968, 128022, 124964, 124962, 118888, 124982, 118884, 118882, 106728, 118902, 106724, 106722, 82408, 106742, 82404, 82402, 124948, 124946, 118836, 118834, 106612, 106610, 124224, 127664, 129372, 124192, 127640, 129358, 124176, 127628, 124168, 127622, 124164, 124162, 117568, 124336, 127708, 117536, 124312, 127694, 117520, 124300, 117512, 124294, 117508, 117506, 104256, 117680, 124380, 104224, 117656, 124366, 104208, 117644, 104200, 117638, 104196, 104194, 77632, 104368, 117724, 77600, 104344, 117710, 77584, 104332, 77576, 104326, 77572, 77744, 104412, 77720, 104398, 77708, 77702, 77788, 77774, 128672, 129880, 93168, 128656, 129868, 92664, 128648, 129862, 92412, 128644, 128642, 124064, 127576, 129326, 126368, 124048, 129902, 126352, 128716, 127558, 126344, 124036, 126340, 124034, 126338, 117152, 124120, 127598, 121760, 117136, 124108, 121744, 126412, 124102, 121736, 117124, 121732, 117122, 121730, 103328, 117208, 124142, 112544, 103312, 117196, 112528, 121804, 117190, 112520, 103300, 112516, 103298, 112514, 75680, 103384, 117230, 94112, 75664, 103372, 94096, 112588, 103366, 94088, 75652, 94084, 75650, 75736, 103406, 94168, 75724, 94156, 75718, 94150, 75758, 128592, 129836, 91640, 128584, 129830, 91388, 128580, 91262, 128578, 123984, 127532, 126160, 123976, 127526, 126152, 128614, 126148, 123970, 126146, 116944, 124012, 121296, 116936, 124006, 121288, 126182, 121284, 116930, 121282, 102864, 116972, 111568, 102856, 116966, 111560, 121318, 111556, 102850, 111554, 74704, 102892, 92112, 74696, 102886, 92104, 111590, 92100, 74690, 92098, 74732, 92140, 74726, 92134, 128552, 129814, 90876, 128548, 90750, 128546, 123944, 127510, 126056, 128566, 126052, 123938, 126050, 116840, 123958, 121064, 116836, 121060, 116834, 121058, 102632, 116854, 111080, 121078, 111076, 102626, 111074, 74216, 102646, 91112, 74212, 91108, 74210, 91106, 74230, 91126, 128532, 90494, 128530, 123924, 126004, 123922, 126002, 116788, 120948, 116786, 120946, 102516, 110836, 102514, 110834, 73972, 90612, 73970, 90610, 128522, 123914, 125978, 116762, 120890, 102458, 110714, 123552, 127320, 129198, 123536, 127308, 123528, 127302, 123524, 123522, 116128, 123608, 127342, 116112, 123596, 116104, 123590, 116100, 116098, 101280, 116184, 123630, 101264, 116172, 101256, 116166, 101252, 101250, 71584, 101336, 116206, 71568, 101324, 71560, 101318, 71556, 71554, 71640, 101358, 71628, 71622, 71662, 127824, 129452, 79352, 127816, 129446, 79100, 127812, 78974, 127810, 123472, 127276, 124624, 123464, 127270, 124616, 127846, 124612, 123458, 124610, 115920, 123500, 118224, 115912, 123494, 118216, 124646, 118212, 115906, 118210, 100816, 115948, 105424, 100808, 115942, 105416, 118246, 105412, 100802, 105410, 70608, 100844, 79824, 70600, 100838, 79816, 105446, 79812, 70594, 79810, 70636, 79852, 70630, 79846, 129960, 95728, 113404, 129956, 95480, 113278, 129954, 95356, 95294, 127784, 129430, 78588, 128872, 129974, 95996, 78462, 128868, 127778, 95870, 128866, 123432, 127254, 124520, 123428, 126696, 128886, 123426, 126692, 124514, 126690, 115816, 123446, 117992, 115812, 122344, 117988, 115810, 122340, 117986, 122338, 100584, 115830, 104936, 100580, 113640, 104932, 100578, 113636, 104930, 113634, 70120, 100598, 78824, 70116, 96232, 78820, 70114, 96228, 78818, 96226, 70134, 78838, 129940, 94968, 113022, 129938, 94844, 94782, 127764, 78206, 128820, 127762, 95102, 128818, 123412, 124468, 123410, 126580, 124466, 126578, 115764, 117876, 115762, 122100, 117874, 122098, 100468, 104692, 100466, 113140, 104690, 113138, 69876, 78324, 69874, 95220, 78322, 95218, 129930, 94588, 94526, 127754, 128794, 123402, 124442, 126522, 115738, 117818, 121978, 100410, 104570, 112890, 69754, 78074, 94714, 94398, 123216, 127148, 123208, 127142, 123204, 123202, 115408, 123244, 115400, 123238, 115396, 115394, 99792, 115436, 99784, 115430, 99780, 99778, 68560, 99820, 68552, 99814, 68548, 68546, 68588, 68582, 127400, 129238, 72444, 127396, 72318, 127394, 123176, 127126, 123752, 123172, 123748, 123170, 123746, 115304, 123190, 116456, 115300, 116452, 115298, 116450, 99560, 115318, 101864, 99556, 101860, 99554, 101858, 68072, 99574, 72680, 68068, 72676, 68066, 72674, 68086, 72694, 129492, 80632, 105854, 129490, 80508, 80446, 127380, 72062, 127924, 127378, 80766, 127922, 123156, 123700, 123154, 124788, 123698, 124786, 115252, 116340, 115250, 118516, 116338, 118514, 99444, 101620, 99442, 105972, 101618, 105970, 67828, 72180, 67826, 80884, 72178, 80882, 97008, 114044, 96888, 113982, 96828, 96798, 129482, 80252, 130010, 97148, 80190, 97086, 127370, 127898, 128954, 123146, 123674, 124730, 126842, 115226, 116282, 118394, 122618, 99386, 101498, 105722, 114170, 67706, 71930, 80378, 96632, 113854, 96572, 96542, 80062, 96702, 96444, 96414, 96350, 123048, 123044, 123042, 115048, 123062, 115044, 115042, 99048, 115062, 99044, 99042, 67048, 99062, 67044, 67042, 67062, 127188, 68990, 127186, 123028, 123316, 123026, 123314, 114996, 115572, 114994, 115570, 98932, 100084, 98930, 100082, 66804, 69108, 66802, 69106, 129258, 73084, 73022, 127178, 127450, 123018, 123290, 123834, 114970, 115514, 116602, 98874, 99962, 102138, 66682, 68858, 73210, 81272, 106174, 81212, 81182, 72894, 81342, 97648, 114364, 97592, 114334, 97564, 97550, 81084, 97724, 81054, 97694, 97464, 114270, 97436, 97422, 80990, 97502, 97372, 97358, 97326, 114868, 114866, 98676, 98674, 66292, 66290, 123098, 114842, 115130, 98618, 99194, 66170, 67322, 69310, 73404, 73374, 81592, 106334, 81564, 81550, 73310, 81630, 97968, 114524, 97944, 114510, 97932, 97926, 81500, 98012, 81486, 97998, 97880, 114478, 97868, 97862, 81454, 97902, 97836, 97830, 69470, 73564, 73550, 81752, 106414, 81740, 81734, 73518, 81774, 81708, 81702]), $a([109536, 120312, 86976, 109040, 120060, 86496, 108792, 119934, 86256, 108668, 86136, 129744, 89056, 110072, 129736, 88560, 109820, 129732, 88312, 109694, 129730, 88188, 128464, 129772, 89592, 128456, 129766, 89340, 128452, 89214, 128450, 125904, 128492, 125896, 128486, 125892, 125890, 120784, 125932, 120776, 125926, 120772, 120770, 110544, 120812, 110536, 120806, 110532, 84928, 108016, 119548, 84448, 107768, 119422, 84208, 107644, 84088, 107582, 84028, 129640, 85488, 108284, 129636, 85240, 108158, 129634, 85116, 85054, 128232, 129654, 85756, 128228, 85630, 128226, 125416, 128246, 125412, 125410, 119784, 125430, 119780, 119778, 108520, 119798, 108516, 108514, 83424, 107256, 119166, 83184, 107132, 83064, 107070, 83004, 82974, 129588, 83704, 107390, 129586, 83580, 83518, 128116, 83838, 128114, 125172, 125170, 119284, 119282, 107508, 107506, 82672, 106876, 82552, 106814, 82492, 82462, 129562, 82812, 82750, 128058, 125050, 119034, 82296, 106686, 82236, 82206, 82366, 82108, 82078, 76736, 103920, 117500, 76256, 103672, 117374, 76016, 103548, 75896, 103486, 75836, 129384, 77296, 104188, 129380, 77048, 104062, 129378, 76924, 76862, 127720, 129398, 77564, 127716, 77438, 127714, 124392, 127734, 124388, 124386, 117736, 124406, 117732, 117730, 104424, 117750, 104420, 104418, 112096, 121592, 126334, 92608, 111856, 121468, 92384, 111736, 121406, 92272, 111676, 92216, 111646, 92188, 75232, 103160, 117118, 93664, 74992, 103036, 93424, 112252, 102974, 93304, 74812, 93244, 74782, 93214, 129332, 75512, 103294, 129908, 129330, 93944, 75388, 129906, 93820, 75326, 93758, 127604, 75646, 128756, 127602, 94078, 128754, 124148, 126452, 124146, 126450, 117236, 121844, 117234, 121842, 103412, 103410, 91584, 111344, 121212, 91360, 111224, 121150, 91248, 111164, 91192, 111134, 91164, 91150, 74480, 102780, 91888, 74360, 102718, 91768, 111422, 91708, 74270, 91678, 129306, 74620, 129850, 92028, 74558, 91966, 127546, 128634, 124026, 126202, 116986, 121338, 102906, 90848, 110968, 121022, 90736, 110908, 90680, 110878, 90652, 90638, 74104, 102590, 91000, 74044, 90940, 74014, 90910, 74174, 91070, 90480, 110780, 90424, 110750, 90396, 90382, 73916, 90556, 73886, 90526, 90296, 110686, 90268, 90254, 73822, 90334, 90204, 90190, 71136, 101112, 116094, 70896, 100988, 70776, 100926, 70716, 70686, 129204, 71416, 101246, 129202, 71292, 71230, 127348, 71550, 127346, 123636, 123634, 116212, 116210, 101364, 101362, 79296, 105200, 118140, 79072, 105080, 118078, 78960, 105020, 78904, 104990, 78876, 78862, 70384, 100732, 79600, 70264, 100670, 79480, 105278, 79420, 70174, 79390, 129178, 70524, 129466, 79740, 70462, 79678, 127290, 127866, 123514, 124666, 115962, 118266, 100858, 113376, 122232, 126654, 95424, 113264, 122172, 95328, 113208, 122142, 95280, 113180, 95256, 113166, 95244, 78560, 104824, 117950, 95968, 78448, 104764, 95856, 113468, 104734, 95800, 78364, 95772, 78350, 95758, 70008, 100542, 78712, 69948, 96120, 78652, 69918, 96060, 78622, 96030, 70078, 78782, 96190, 94912, 113008, 122044, 94816, 112952, 122014, 94768, 112924, 94744, 112910, 94732, 94726, 78192, 104636, 95088, 78136, 104606, 95032, 113054, 95004, 78094, 94990, 69820, 78268, 69790, 95164, 78238, 95134, 94560, 112824, 121950, 94512, 112796, 94488, 112782, 94476, 94470, 78008, 104542, 94648, 77980, 94620, 77966, 94606, 69726, 78046, 94686, 94384, 112732, 94360, 112718, 94348, 94342, 77916, 94428, 77902, 94414, 94296, 112686, 94284, 94278, 77870, 94318, 94252, 94246, 68336, 99708, 68216, 99646, 68156, 68126, 68476, 68414, 127162, 123258, 115450, 99834, 72416, 101752, 116414, 72304, 101692, 72248, 101662, 72220, 72206, 67960, 99518, 72568, 67900, 72508, 67870, 72478, 68030, 72638, 80576, 105840, 118460, 80480, 105784, 118430, 80432, 105756, 80408, 105742, 80396, 80390, 72048, 101564, 80752, 71992, 101534, 80696, 71964, 80668, 71950, 80654, 67772, 72124, 67742, 80828, 72094, 80798, 114016, 122552, 126814, 96832, 113968, 122524, 96800, 113944, 122510, 96784, 113932, 96776, 113926, 96772, 80224, 105656, 118366, 97120, 80176, 105628, 97072, 114076, 105614, 97048, 80140, 97036, 80134, 97030, 71864, 101470, 80312, 71836, 97208, 80284, 71822, 97180, 80270, 97166, 67678, 71902, 80350, 97246, 96576, 113840, 122460, 96544, 113816, 122446, 96528, 113804, 96520, 113798, 96516, 96514, 80048, 105564, 96688, 80024, 105550, 96664, 113870, 96652, 80006, 96646, 71772, 80092, 71758, 96732, 80078, 96718, 96416, 113752, 122414, 96400, 113740, 96392, 113734, 96388, 96386, 79960, 105518, 96472, 79948, 96460, 79942, 96454, 71726, 79982, 96494, 96336, 113708, 96328, 113702, 96324, 96322, 79916, 96364, 79910, 96358, 96296, 113686, 96292, 96290, 79894, 96310, 66936, 99006, 66876, 66846, 67006, 68976, 100028, 68920, 99998, 68892, 68878, 66748, 69052, 66718, 69022, 73056, 102072, 116574, 73008, 102044, 72984, 102030, 72972, 72966, 68792, 99934, 73144, 68764, 73116, 68750, 73102, 66654, 68830, 73182, 81216, 106160, 118620, 81184, 106136, 118606, 81168, 106124, 81160, 106118, 81156, 81154, 72880, 101980, 81328, 72856, 101966, 81304, 106190, 81292, 72838, 81286, 68700, 72924, 68686, 81372, 72910, 81358, 114336, 122712, 126894, 114320, 122700, 114312, 122694, 114308, 114306, 81056, 106072, 118574, 97696, 81040, 106060, 97680, 114380, 106054, 97672, 81028, 97668, 81026, 97666, 72792, 101934, 81112, 72780, 97752, 81100, 72774, 97740, 81094, 97734, 68654, 72814, 81134, 97774, 114256, 122668, 114248, 122662, 114244, 114242, 80976, 106028, 97488, 80968, 106022, 97480, 114278, 97476, 80962, 97474, 72748, 81004, 72742, 97516, 80998, 97510, 114216, 122646, 114212, 114210, 80936, 106006, 97384, 80932, 97380, 80930, 97378, 72726, 80950, 97398, 114196, 114194, 80916, 97332, 80914, 97330, 66236, 66206, 67256, 99166, 67228, 67214, 66142, 67294, 69296, 100188, 69272, 100174, 69260, 69254, 67164, 69340, 67150, 69326, 73376, 102232, 116654, 73360, 102220, 73352, 102214, 73348, 73346, 69208, 100142, 73432, 102254, 73420, 69190, 73414, 67118, 69230, 73454, 106320, 118700, 106312, 118694, 106308, 106306, 73296, 102188, 81616, 106348, 102182, 81608, 73284, 81604, 73282, 81602, 69164, 73324, 69158, 81644, 73318, 81638, 122792, 126934, 122788, 122786, 106280, 118678, 114536, 106276, 114532, 106274, 114530, 73256, 102166, 81512, 73252, 98024, 81508, 73250, 98020, 81506, 98018, 69142, 73270, 81526, 98038, 122772, 122770, 106260, 114484, 106258, 114482, 73236, 81460, 73234, 97908, 81458, 97906, 122762, 106250, 114458, 73226, 81434, 97850, 66396, 66382, 67416, 99246, 67404, 67398, 66350, 67438, 69456, 100268, 69448, 100262, 69444, 69442, 67372, 69484, 67366, 69478, 102312, 116694, 102308, 102306, 69416, 100246, 73576, 102326, 73572, 69410, 73570, 67350, 69430, 73590, 118740, 118738, 102292, 106420, 102290, 106418, 69396, 73524, 69394, 81780, 73522, 81778, 118730, 102282, 106394, 69386, 73498, 81722, 66476, 66470, 67496, 99286, 67492, 67490, 66454, 67510, 100308, 100306, 67476, 69556, 67474, 69554, 116714])]); //#15953 $1.cwtobits = function() { - var _FD = $get($1.clusters, $k[--$j]); - $1.v = $get(_FD, $k[--$j]); - $k[$j++] = Infinity; - for (var _FG = 0, _FH = 17; _FG < _FH; _FG++) { - $k[$j++] = 0; - } - var _FK = $cvrs($s(17), $1.v, 2); - for (var _FL = 0, _FM = _FK.length; _FL < _FM; _FL++) { - $k[$j++] = $get(_FK, _FL) - 48; - } - var _FO = $a(); - $k[$j++] = $geti(_FO, _FO.length - 17, 17); - }; - if ($1.compact) { - $1.rwid = $f($f($f(17 * $1.c + 17) + 17) + 1); - } else { - $1.rwid = $f($f($f($f(17 * $1.c + 17) + 17) + 17) + 18); - } - $1.pixs = $a($1.rwid * $1.r); - for (var _FY = 0, _FX = $1.r - 1; _FY <= _FX; _FY += 1) { - $1.i = _FY; - if ($1.i % 3 == 0) { - $1.lcw = ~~($1.i / 3) * 30 + ~~(($1.r - 1) / 3); - $1.rcw = $f($f(~~($1.i / 3) * 30 + $1.c) - 1); - } - if ($1.i % 3 == 1) { - $1.lcw = ~~($1.i / 3) * 30 + $1.eclevel * 3 + ($1.r - 1) % 3; - $1.rcw = ~~($1.i / 3) * 30 + ~~(($1.r - 1) / 3); - } - if ($1.i % 3 == 2) { - $1.lcw = $f($f(~~($1.i / 3) * 30 + $1.c) - 1); - $1.rcw = ~~($1.i / 3) * 30 + $1.eclevel * 3 + ($1.r - 1) % 3; - } - $k[$j++] = $1.pixs; - $k[$j++] = $1.rwid * $1.i; - $k[$j++] = Infinity; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = $1.lcw; - $k[$j++] = $1.i % 3; - $1.cwtobits(); - $forall($k[--$j]); - var _G0 = $geti($1.cws, $1.c * $1.i, $1.c); - for (var _G1 = 0, _G2 = _G0.length; _G1 < _G2; _G1++) { - $k[$j++] = $get(_G0, _G1); - $k[$j++] = $1.i % 3; - $1.cwtobits(); - $forall($k[--$j]); - } - if ($1.compact) { - $k[$j++] = 1; - } else { - $k[$j++] = $1.rcw; - $k[$j++] = $1.i % 3; - $1.cwtobits(); - $forall($k[--$j]); - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 1; - } - var _GA = $a(); - var _GB = $k[--$j]; - $puti($k[--$j], _GB, _GA); - } - var _GK = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", $1.rwid ], [ "pixy", $1.r ], [ "height", $1.r / 72 * $1.rowmult ], [ "width", $1.rwid / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _GK; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var _FD = $get($1.clusters, $k[--$j]); //#15957 + $1.v = $get(_FD, $k[--$j]); //#15957 + $k[$j++] = Infinity; //#15958 + for (var _FG = 0, _FH = 17; _FG < _FH; _FG++) { //#15958 + $k[$j++] = 0; //#15958 + } //#15958 + var _FK = $cvrs($s(17), $1.v, 2); //#15958 + for (var _FL = 0, _FM = _FK.length; _FL < _FM; _FL++) { //#15958 + $k[$j++] = $get(_FK, _FL) - 48; //#15958 + } //#15958 + var _FO = $a(); //#15958 + $k[$j++] = $geti(_FO, _FO.length - 17, 17); //#15959 + }; //#15960 + if ($1.compact) { //#15966 + $1.rwid = $f(($f(($f((17 * $1.c) + 17)) + 17)) + 1); //#15964 + } else { //#15966 + $1.rwid = $f(($f(($f(($f((17 * $1.c) + 17)) + 17)) + 17)) + 18); //#15966 + } //#15966 + $1.pixs = $a($1.rwid * $1.r); //#15968 + for (var _FY = 0, _FX = $1.r - 1; _FY <= _FX; _FY += 1) { //#15998 + $1.i = _FY; //#15971 + if (($1.i % 3) == 0) { //#15976 + $1.lcw = ((~~($1.i / 3)) * 30) + (~~(($1.r - 1) / 3)); //#15974 + $1.rcw = $f(($f(((~~($1.i / 3)) * 30) + $1.c)) - 1); //#15975 + } //#15975 + if (($1.i % 3) == 1) { //#15980 + $1.lcw = (((~~($1.i / 3)) * 30) + ($1.eclevel * 3)) + (($1.r - 1) % 3); //#15978 + $1.rcw = ((~~($1.i / 3)) * 30) + (~~(($1.r - 1) / 3)); //#15979 + } //#15979 + if (($1.i % 3) == 2) { //#15984 + $1.lcw = $f(($f(((~~($1.i / 3)) * 30) + $1.c)) - 1); //#15982 + $1.rcw = (((~~($1.i / 3)) * 30) + ($1.eclevel * 3)) + (($1.r - 1) % 3); //#15983 + } //#15983 + $k[$j++] = $1.pixs; //#15994 + $k[$j++] = $1.rwid * $1.i; //#15994 + $k[$j++] = Infinity; //#15994 + $k[$j++] = 1; //#15988 + $k[$j++] = 1; //#15988 + $k[$j++] = 1; //#15988 + $k[$j++] = 1; //#15988 + $k[$j++] = 1; //#15988 + $k[$j++] = 1; //#15988 + $k[$j++] = 1; //#15988 + $k[$j++] = 1; //#15988 + $k[$j++] = 0; //#15988 + $k[$j++] = 1; //#15988 + $k[$j++] = 0; //#15988 + $k[$j++] = 1; //#15988 + $k[$j++] = 0; //#15988 + $k[$j++] = 1; //#15988 + $k[$j++] = 0; //#15988 + $k[$j++] = 0; //#15988 + $k[$j++] = 0; //#15988 + $k[$j++] = $1.lcw; //#15988 + $k[$j++] = $1.i % 3; //#15988 + $1.cwtobits(); //#15988 + $forall($k[--$j]); //#15988 + var _G0 = $geti($1.cws, $1.c * $1.i, $1.c); //#15989 + for (var _G1 = 0, _G2 = _G0.length; _G1 < _G2; _G1++) { //#15989 + $k[$j++] = $get(_G0, _G1); //#15989 + $k[$j++] = $1.i % 3; //#15989 + $1.cwtobits(); //#15989 + $forall($k[--$j]); //#15989 + } //#15989 + if ($1.compact) { //#15994 + $k[$j++] = 1; //#15991 + } else { //#15994 + $k[$j++] = $1.rcw; //#15993 + $k[$j++] = $1.i % 3; //#15993 + $1.cwtobits(); //#15993 + $forall($k[--$j]); //#15993 + $k[$j++] = 1; //#15994 + $k[$j++] = 1; //#15994 + $k[$j++] = 1; //#15994 + $k[$j++] = 1; //#15994 + $k[$j++] = 1; //#15994 + $k[$j++] = 1; //#15994 + $k[$j++] = 1; //#15994 + $k[$j++] = 0; //#15994 + $k[$j++] = 1; //#15994 + $k[$j++] = 0; //#15994 + $k[$j++] = 0; //#15994 + $k[$j++] = 0; //#15994 + $k[$j++] = 1; //#15994 + $k[$j++] = 0; //#15994 + $k[$j++] = 1; //#15994 + $k[$j++] = 0; //#15994 + $k[$j++] = 0; //#15994 + $k[$j++] = 1; //#15994 + } //#15994 + var _GA = $a(); //#15994 + var _GB = $k[--$j]; //#15996 + $puti($k[--$j], _GB, _GA); //#15996 + } //#15996 + var _GK = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", $1.rwid], + ["pixy", $1.r], + ["height", ($1.r / 72) * $1.rowmult], + ["width", $1.rwid / 72], + ["opt", $1.options] + ]); //#16008 + $k[$j++] = _GK; //#16011 + if (!$1.dontdraw) { //#16011 + $0.renmatrix(); //#16011 + } //#16011 }; $0.pdf417compact = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $put($1.options, "dontdraw", true); - $put($1.options, "compact", true); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.pdf417(); - var _9 = $k[--$j]; - $1[$k[--$j]] = _9; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#16041 + $1.options = $k[--$j]; //#16043 + $1.barcode = $k[--$j]; //#16044 + $1.dontdraw = false; //#16046 + $forall($1.options, function() { //#16057 + var _3 = $k[--$j]; //#16057 + $1[$k[--$j]] = _3; //#16057 + }); //#16057 + $put($1.options, "dontdraw", true); //#16060 + $put($1.options, "compact", true); //#16061 + $k[$j++] = 'args'; //#16063 + $k[$j++] = $1.barcode; //#16063 + $k[$j++] = $1.options; //#16063 + $0.pdf417(); //#16063 + var _9 = $k[--$j]; //#16063 + $1[$k[--$j]] = _9; //#16063 + $put($1.args, "opt", $1.options); //#16065 + $k[$j++] = $1.args; //#16068 + if (!$1.dontdraw) { //#16068 + $0.renmatrix(); //#16068 + } //#16068 }; $0.micropdf417 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.version = "unset"; - $1.columns = 0; - $1.rows = 0; - $1.rowmult = 2; - $1.encoding = "auto"; - $1.cca = false; - $1.ccb = false; - $1.raw = false; - $1.parse = false; - $1.parsefnc = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - if ($ne($1.version, "unset")) { - $search($1.version, "x"); - $j--; - $1.columns = $k[--$j]; - $j--; - $1.rows = $k[--$j]; - } - $1.columns = ~~$z($1.columns); - $1.rows = ~~$z($1.rows); - $1.rowmult = +$1.rowmult; - if ($1.raw) { - $1.encoding = "raw"; - } - if ($1.cca) { - $1.encoding = "cca"; - } - if ($eq($1.encoding, "raw") || $eq($1.encoding, "cca")) { - $1.datcws = $a($1.barcode.length); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.barcode.length) { - break; - } - $1.cw = ~~$z($geti($1.barcode, $1.i + 1, 3)); - $put($1.datcws, $1.j, $1.cw); - $1.i = $1.i + 4; - $1.j = $1.j + 1; - } - $1.datcws = $geti($1.datcws, 0, $1.j); - } - if ($1.ccb) { - $1.encoding = "ccb"; - } + var $1 = {}; //#16098 + $1.options = $k[--$j]; //#16100 + $1.barcode = $k[--$j]; //#16101 + $1.dontdraw = false; //#16103 + $1.version = "unset"; //#16104 + $1.columns = 0; //#16105 + $1.rows = 0; //#16106 + $1.rowmult = 2; //#16107 + $1.encoding = "auto"; //#16108 + $1.cca = false; //#16109 + $1.ccb = false; //#16110 + $1.raw = false; //#16111 + $1.parse = false; //#16112 + $1.parsefnc = false; //#16113 + $forall($1.options, function() { //#16124 + var _3 = $k[--$j]; //#16124 + $1[$k[--$j]] = _3; //#16124 + }); //#16124 + if ($ne($1.version, "unset")) { //#16130 + $search($1.version, "x"); //#16127 + $j--; //#16128 + $1.columns = $k[--$j]; //#16128 + $j--; //#16129 + $1.rows = $k[--$j]; //#16129 + } //#16129 + $1.columns = ~~$z($1.columns); //#16132 + $1.rows = ~~$z($1.rows); //#16133 + $1.rowmult = +$1.rowmult; //#16134 + if ($1.raw) { //#16136 + $1.encoding = "raw"; //#16136 + } //#16136 + if ($1.cca) { //#16137 + $1.encoding = "cca"; //#16137 + } //#16137 + if ($eq($1.encoding, "raw") || $eq($1.encoding, "cca")) { //#16151 + $1.datcws = $a($1.barcode.length); //#16141 + $1.i = 0; //#16142 + $1.j = 0; //#16142 + for (;;) { //#16149 + if ($1.i == $1.barcode.length) { //#16144 + break; //#16144 + } //#16144 + $1.cw = ~~$z($geti($1.barcode, $1.i + 1, 3)); //#16145 + $put($1.datcws, $1.j, $1.cw); //#16146 + $1.i = $1.i + 4; //#16147 + $1.j = $1.j + 1; //#16148 + } //#16148 + $1.datcws = $geti($1.datcws, 0, $1.j); //#16150 + } //#16150 + if ($1.ccb) { //#16153 + $1.encoding = "ccb"; //#16153 + } //#16153 $1.encb = function() { - $1.in = $k[--$j]; - $1.inlen = $1.in.length; - $1.out = $a(~~($1.inlen / 6) * 5 + $1.inlen % 6); - for (var _d = 0, _c = ~~($1.inlen / 6) - 1; _d <= _c; _d += 1) { - $1.k = _d; - $k[$j++] = Infinity; - $aload($geti($1.in, $1.k * 6, 3)); - $1.msbs = $a(); - $k[$j++] = Infinity; - $aload($1.msbs); - var _j = $k[--$j]; - var _k = $k[--$j]; - var _l = $k[--$j]; - $k[$j++] = $f($f(_j + _k * 256) + _l * 65536); - for (var _m = 0, _n = 3; _m < _n; _m++) { - var _o = $k[--$j]; - $k[$j++] = _o % 900; - $k[$j++] = ~~(_o / 900); - } - $1.mscs = $a(); - $k[$j++] = Infinity; - $aload($geti($1.in, $1.k * 6 + 3, 3)); - $1.lsbs = $a(); - $k[$j++] = Infinity; - $aload($1.lsbs); - var _v = $k[--$j]; - var _w = $k[--$j]; - var _x = $k[--$j]; - $k[$j++] = $f($f(_v + _w * 256) + _x * 65536); - for (var _y = 0, _z = 3; _y < _z; _y++) { - var _10 = $k[--$j]; - $k[$j++] = _10 % 900; - $k[$j++] = ~~(_10 / 900); - } - $1.lscs = $a(); - var _13 = $get($1.lscs, 0); - var _15 = $get($1.mscs, 0); - $put($1.out, $1.k * 5 + 4, $f(_13 + _15 * 316) % 900); - var _19 = $get($1.lscs, 1); - var _1B = $get($1.mscs, 0); - var _1D = $get($1.mscs, 1); - $put($1.out, $1.k * 5 + 3, $f($f($f(~~($f(_13 + _15 * 316) / 900) + _19) + _1B * 641) + _1D * 316) % 900); - var _1H = $get($1.lscs, 2); - var _1J = $get($1.mscs, 0); - var _1L = $get($1.mscs, 1); - var _1N = $get($1.mscs, 2); - $put($1.out, $1.k * 5 + 2, $f($f($f($f(~~($f($f($f(~~($f(_13 + _15 * 316) / 900) + _19) + _1B * 641) + _1D * 316) / 900) + _1H) + _1J * 20) + _1L * 641) + _1N * 316) % 900); - var _1R = $get($1.lscs, 3); - var _1T = $get($1.mscs, 1); - var _1V = $get($1.mscs, 2); - $put($1.out, $1.k * 5 + 1, $f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_13 + _15 * 316) / 900) + _19) + _1B * 641) + _1D * 316) / 900) + _1H) + _1J * 20) + _1L * 641) + _1N * 316) / 900) + _1R) + _1T * 20) + _1V * 641) % 900); - $put($1.out, $1.k * 5, $f(~~($f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_13 + _15 * 316) / 900) + _19) + _1B * 641) + _1D * 316) / 900) + _1H) + _1J * 20) + _1L * 641) + _1N * 316) / 900) + _1R) + _1T * 20) + _1V * 641) / 900) + $get($1.mscs, 2) * 20) % 900); - } - $1.rem = $1.inlen % 6; - if ($1.rem != 0) { - $k[$j++] = $1.out; - $k[$j++] = $1.out.length - $1.rem; - $k[$j++] = Infinity; - $aload($geti($1.in, $1.inlen - $1.rem, $1.rem)); - var _1m = $a(); - var _1n = $k[--$j]; - $puti($k[--$j], _1n, _1m); - } - $k[$j++] = $1.out; - }; - if ($eq($1.encoding, "byte") || $eq($1.encoding, "ccb")) { - $1.barlen = $1.barcode.length; - $1.datcws = $a(~~($1.barlen / 6) * 5 + $1.barlen % 6 + 1); - var _1y = $1.barlen % 6 == 0 ? 924 : 901; - $put($1.datcws, 0, _1y); - $k[$j++] = $1.datcws; - $k[$j++] = 1; - $k[$j++] = Infinity; - $forall($1.barcode); - var _21 = $a(); - $k[$j++] = _21; - $1.encb(); - var _22 = $k[--$j]; - var _23 = $k[--$j]; - $puti($k[--$j], _23, _22); - if ($eq($1.encoding, "ccb")) { - $k[$j++] = Infinity; - $k[$j++] = 920; - $aload($1.datcws); - $1.datcws = $a(); - } - } - if ($eq($1.encoding, "auto")) { - var _2B = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "eci", true ] ]); - $1.fncvals = _2B; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _2E = $k[--$j]; - $1[$k[--$j]] = _2E; - $1.msglen = $1.msg.length; - $1.T = 0; - $1.N = 1; - $1.B = 2; - $1.A = 0; - $1.L = 1; - $1.M = 2; - $1.P = 3; - $1.tl = -1; - $1.nl = -2; - $1.bl = -3; - $1.bl6 = -4; - $1.bs = -5; - $1.al = -6; - $1.ll = -7; - $1.ml = -8; - $1.pl = -9; - $1.as = -10; - $1.ps = -11; - $1.charmaps = $a([ $a([ "A", "a", "0", ";" ]), $a([ "B", "b", "1", "<" ]), $a([ "C", "c", "2", ">" ]), $a([ "D", "d", "3", "@" ]), $a([ "E", "e", "4", "[" ]), $a([ "F", "f", "5", 92 ]), $a([ "G", "g", "6", "]" ]), $a([ "H", "h", "7", "_" ]), $a([ "I", "i", "8", "`" ]), $a([ "J", "j", "9", "~" ]), $a([ "K", "k", "&", "!" ]), $a([ "L", "l", 13, 13 ]), $a([ "M", "m", 9, 9 ]), $a([ "N", "n", ",", "," ]), $a([ "O", "o", ":", ":" ]), $a([ "P", "p", "#", 10 ]), $a([ "Q", "q", "-", "-" ]), $a([ "R", "r", ".", "." ]), $a([ "S", "s", "$", "$" ]), $a([ "T", "t", "/", "/" ]), $a([ "U", "u", "+", '"' ]), $a([ "V", "v", "%", "|" ]), $a([ "W", "w", "*", "*" ]), $a([ "X", "x", "=", 40 ]), $a([ "Y", "y", "^", 41 ]), $a([ "Z", "z", $1.pl, "?" ]), $a([ " ", " ", " ", "{" ]), $a([ $1.ll, $1.as, $1.ll, "}" ]), $a([ $1.ml, $1.ml, $1.al, "'" ]), $a([ $1.ps, $1.ps, $1.ps, $1.al ]) ]); - $1.charvals = $a([ new Map(), new Map(), new Map(), new Map() ]); - $1.alltext = new Map(); - for (var _30 = 0, _2z = $1.charmaps.length - 1; _30 <= _2z; _30 += 1) { - $1.i = _30; - $1.encs = $get($1.charmaps, $1.i); - for (var _34 = 0; _34 <= 3; _34 += 1) { - $1.j = _34; - var _37 = $get($1.encs, $1.j); - $k[$j++] = _37; - if ($eq($type(_37), "stringtype")) { - var _3A = $get($k[--$j], 0); - $k[$j++] = _3A; - } - var _3B = $k[--$j]; - $put($get($1.charvals, $1.j), _3B, $1.i); - $put($1.alltext, _3B, -1); - } - } - $1.e = 1e4; - $1.latlen = $a([ $a([ 0, 1, 1, 2 ]), $a([ 2, 0, 1, 2 ]), $a([ 1, 1, 0, 1 ]), $a([ 1, 2, 2, 0 ]) ]); - $1.latseq = $a([ $a([ $a([]), $a([ $1.ll ]), $a([ $1.ml ]), $a([ $1.ml, $1.pl ]) ]), $a([ $a([ $1.ml, $1.al ]), $a([]), $a([ $1.ml ]), $a([ $1.ml, $1.pl ]) ]), $a([ $a([ $1.al ]), $a([ $1.ll ]), $a([]), $a([ $1.pl ]) ]), $a([ $a([ $1.al ]), $a([ $1.al, $1.ll ]), $a([ $1.al, $1.ml ]), $a([]) ]) ]); - $1.shftlen = $a([ $a([ $1.e, $1.e, $1.e, 1 ]), $a([ 1, $1.e, $1.e, 1 ]), $a([ $1.e, $1.e, $1.e, 1 ]), $a([ $1.e, $1.e, $1.e, $1.e ]) ]); - $k[$j++] = Infinity; - for (var _4G = 0, _4H = $1.msglen; _4G < _4H; _4G++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numdigits = $a(); - $k[$j++] = Infinity; - for (var _4K = 0, _4L = $1.msglen; _4K < _4L; _4K++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numtext = $a(); - $k[$j++] = Infinity; - for (var _4O = 0, _4P = $1.msglen; _4O < _4P; _4O++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numbytes = $a(); - $k[$j++] = Infinity; - for (var _4S = 0, _4T = $1.msglen; _4S < _4T; _4S++) { - $k[$j++] = 0; - } - $1.iseci = $a(); - for (var _4W = $1.msglen - 1; _4W >= 0; _4W -= 1) { - $1.i = _4W; - var _4Z = $get($1.msg, $1.i); - if (_4Z >= 48 && _4Z <= 57) { - $put($1.numdigits, $1.i, $f($get($1.numdigits, $1.i + 1) + 1)); - } - var _4j = $get($1.alltext, $get($1.msg, $1.i)) !== undefined; - if (_4j && $get($1.numdigits, $1.i) < 13) { - $put($1.numtext, $1.i, $f($get($1.numtext, $1.i + 1) + 1)); - } - if ($get($1.msg, $1.i) >= 0 && $get($1.numtext, $1.i) < 5 && $get($1.numdigits, $1.i) < 13) { - $put($1.numbytes, $1.i, $f($get($1.numbytes, $1.i + 1) + 1)); - } - $put($1.iseci, $1.i, $get($1.msg, $1.i) <= -1e6); - } - $1.numdigits = $geti($1.numdigits, 0, $1.msglen); - $1.numtext = $geti($1.numtext, 0, $1.msglen); - $1.numbytes = $geti($1.numbytes, 0, $1.msglen); - $1.seq = $a([]); - $1.seqlen = 0; - $1.state = $1.B; - $1.p = 0; - for (;;) { - if ($1.p == $1.msglen) { - break; - } - if ($get($1.iseci, $1.p)) { - $1.eci = $get($1.msg, $1.p); - $k[$j++] = Infinity; - $aload($1.seq); - $k[$j++] = $a([ $1.eci ]); - $1.seq = $a(); - $1.p = $1.p + 1; - $k[$j++] = "seqlen"; - $k[$j++] = $1.seqlen; - if ($1.eci <= -1810900) { - $k[$j++] = 2; - } else { - var _5c = $1.eci <= -1000900 ? 3 : 2; - $k[$j++] = _5c; - } - var _5d = $k[--$j]; - var _5e = $k[--$j]; - $1[$k[--$j]] = $f(_5e + _5d); - } else { - $1.n = $get($1.numdigits, $1.p); - if ($1.n >= 13) { - $k[$j++] = Infinity; - $aload($1.seq); - $k[$j++] = $1.nl; - $k[$j++] = Infinity; - $aload($geti($1.msg, $1.p, $1.n)); - var _5q = $a(); - $k[$j++] = _5q; - $1.seq = $a(); - $1.state = $1.N; - $1.p = $f($1.p + $1.n); - $1.seqlen = $f($1.seqlen + 1 + $1.n); - } else { - $1.t = $get($1.numtext, $1.p); - if ($1.t >= 5) { - $k[$j++] = Infinity; - $aload($1.seq); - if ($1.state != $1.T) { - $k[$j++] = $1.tl; - } - $k[$j++] = Infinity; - $aload($geti($1.msg, $1.p, $1.t)); - var _69 = $a(); - $k[$j++] = _69; - $1.seq = $a(); - $1.state = $1.T; - $1.p = $f($1.p + $1.t); - $1.seqlen = $f($f($1.seqlen + 1) + $1.t); - } else { - $1.b = $get($1.numbytes, $1.p); - if ($1.b == 1 && $1.state == $1.T) { - $k[$j++] = Infinity; - $aload($1.seq); - $k[$j++] = $1.bs; - $k[$j++] = $a([ $get($1.msg, $1.p) ]); - $1.seq = $a(); - $1.p = $f($1.p + $1.b); - $1.seqlen = $f($1.seqlen + 2); - } else { - $k[$j++] = Infinity; - $aload($1.seq); - var _6Y = $1.b % 6 != 0 ? $1.bl : $1.bl6; - $k[$j++] = _6Y; - $k[$j++] = Infinity; - $aload($geti($1.msg, $1.p, $1.b)); - var _6d = $a(); - $k[$j++] = _6d; - $1.seq = $a(); - $1.state = $1.B; - $1.p = $f($1.p + $1.b); - $1.seqlen = $f($f($1.seqlen + 1) + $1.b); - } - } - } - } - } - $k[$j++] = Infinity; - $k[$j++] = $1.tl; - $k[$j++] = 900; - $k[$j++] = $1.bl; - $k[$j++] = 901; - $k[$j++] = $1.bl6; - $k[$j++] = 924; - $k[$j++] = $1.nl; - $k[$j++] = 902; - $k[$j++] = $1.bs; - $k[$j++] = 913; - $1.latchcws = $d(); + $1.in = $k[--$j]; //#16156 + $1.inlen = $1.in.length; //#16157 + $1.out = $a(((~~($1.inlen / 6)) * 5) + ($1.inlen % 6)); //#16158 + for (var _d = 0, _c = (~~($1.inlen / 6)) - 1; _d <= _c; _d += 1) { //#16181 + $1.k = _d; //#16160 + $k[$j++] = Infinity; //#16161 + $aload($geti($1.in, $1.k * 6, 3)); //#16161 + $1.msbs = $a(); //#16161 + $k[$j++] = Infinity; //#16164 + $aload($1.msbs); //#16163 + var _j = $k[--$j]; //#16163 + var _k = $k[--$j]; //#16163 + var _l = $k[--$j]; //#16163 + $k[$j++] = $f(($f(_j + (_k * 256))) + (_l * 65536)); //#16164 + for (var _m = 0, _n = 3; _m < _n; _m++) { //#16164 + var _o = $k[--$j]; //#16164 + $k[$j++] = _o % 900; //#16164 + $k[$j++] = ~~(_o / 900); //#16164 + } //#16164 + $1.mscs = $a(); //#16164 + $k[$j++] = Infinity; //#16166 + $aload($geti($1.in, ($1.k * 6) + 3, 3)); //#16166 + $1.lsbs = $a(); //#16166 + $k[$j++] = Infinity; //#16169 + $aload($1.lsbs); //#16168 + var _v = $k[--$j]; //#16168 + var _w = $k[--$j]; //#16168 + var _x = $k[--$j]; //#16168 + $k[$j++] = $f(($f(_v + (_w * 256))) + (_x * 65536)); //#16169 + for (var _y = 0, _z = 3; _y < _z; _y++) { //#16169 + var _10 = $k[--$j]; //#16169 + $k[$j++] = _10 % 900; //#16169 + $k[$j++] = ~~(_10 / 900); //#16169 + } //#16169 + $1.lscs = $a(); //#16169 + var _13 = $get($1.lscs, 0); //#16171 + var _15 = $get($1.mscs, 0); //#16171 + $put($1.out, ($1.k * 5) + 4, ($f(_13 + (_15 * 316))) % 900); //#16172 + var _19 = $get($1.lscs, 1); //#16173 + var _1B = $get($1.mscs, 0); //#16173 + var _1D = $get($1.mscs, 1); //#16173 + $put($1.out, ($1.k * 5) + 3, ($f(($f(($f((~~(($f(_13 + (_15 * 316))) / 900)) + _19)) + (_1B * 641))) + (_1D * 316))) % 900); //#16174 + var _1H = $get($1.lscs, 2); //#16175 + var _1J = $get($1.mscs, 0); //#16175 + var _1L = $get($1.mscs, 1); //#16175 + var _1N = $get($1.mscs, 2); //#16175 + $put($1.out, ($1.k * 5) + 2, ($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_13 + (_15 * 316))) / 900)) + _19)) + (_1B * 641))) + (_1D * 316))) / 900)) + _1H)) + (_1J * 20))) + (_1L * 641))) + (_1N * 316))) % 900); //#16176 + var _1R = $get($1.lscs, 3); //#16177 + var _1T = $get($1.mscs, 1); //#16177 + var _1V = $get($1.mscs, 2); //#16177 + $put($1.out, ($1.k * 5) + 1, ($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_13 + (_15 * 316))) / 900)) + _19)) + (_1B * 641))) + (_1D * 316))) / 900)) + _1H)) + (_1J * 20))) + (_1L * 641))) + (_1N * 316))) / 900)) + _1R)) + (_1T * 20))) + (_1V * 641))) % 900); //#16178 + $put($1.out, $1.k * 5, ($f((~~(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_13 + (_15 * 316))) / 900)) + _19)) + (_1B * 641))) + (_1D * 316))) / 900)) + _1H)) + (_1J * 20))) + (_1L * 641))) + (_1N * 316))) / 900)) + _1R)) + (_1T * 20))) + (_1V * 641))) / 900)) + ($get($1.mscs, 2) * 20))) % 900); //#16180 + } //#16180 + $1.rem = $1.inlen % 6; //#16182 + if ($1.rem != 0) { //#16187 + $k[$j++] = $1.out; //#16185 + $k[$j++] = $1.out.length - $1.rem; //#16185 + $k[$j++] = Infinity; //#16185 + $aload($geti($1.in, $1.inlen - $1.rem, $1.rem)); //#16185 + var _1m = $a(); //#16185 + var _1n = $k[--$j]; //#16186 + $puti($k[--$j], _1n, _1m); //#16186 + } //#16186 + $k[$j++] = $1.out; //#16188 + }; //#16189 + if ($eq($1.encoding, "byte") || $eq($1.encoding, "ccb")) { //#16197 + $1.barlen = $1.barcode.length; //#16192 + $1.datcws = $a((((~~($1.barlen / 6)) * 5) + ($1.barlen % 6)) + 1); //#16193 + var _1y = (($1.barlen % 6) == 0) ? 924 : 901; //#16194 + $put($1.datcws, 0, _1y); //#16194 + $k[$j++] = $1.datcws; //#16195 + $k[$j++] = 1; //#16195 + $k[$j++] = Infinity; //#16195 + $forall($1.barcode); //#16195 + var _21 = $a(); //#16195 + $k[$j++] = _21; //#16195 + $1.encb(); //#16195 + var _22 = $k[--$j]; //#16195 + var _23 = $k[--$j]; //#16195 + $puti($k[--$j], _23, _22); //#16195 + if ($eq($1.encoding, "ccb")) { //#16196 + $k[$j++] = Infinity; //#16196 + $k[$j++] = 920; //#16196 + $aload($1.datcws); //#16196 + $1.datcws = $a(); //#16196 + } //#16196 + } //#16196 + if ($eq($1.encoding, "auto")) { //#16601 + var _2B = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["eci", true] + ]); //#16205 + $1.fncvals = _2B; //#16207 + $k[$j++] = 'msg'; //#16208 + $k[$j++] = $1.barcode; //#16208 + $k[$j++] = $1.fncvals; //#16208 + $0.parseinput(); //#16208 + var _2E = $k[--$j]; //#16208 + $1[$k[--$j]] = _2E; //#16208 + $1.msglen = $1.msg.length; //#16209 + $1.T = 0; //#16212 + $1.N = 1; //#16212 + $1.B = 2; //#16212 + $1.A = 0; //#16213 + $1.L = 1; //#16213 + $1.M = 2; //#16213 + $1.P = 3; //#16213 + $1.tl = -1; //#16216 + $1.nl = -2; //#16216 + $1.bl = -3; //#16216 + $1.bl6 = -4; //#16216 + $1.bs = -5; //#16216 + $1.al = -6; //#16219 + $1.ll = -7; //#16219 + $1.ml = -8; //#16219 + $1.pl = -9; //#16219 + $1.as = -10; //#16219 + $1.ps = -11; //#16219 + $1.charmaps = $a([$a(["A", "a", "0", ";"]), $a(["B", "b", "1", "<"]), $a(["C", "c", "2", ">"]), $a(["D", "d", "3", "@"]), $a(["E", "e", "4", "["]), $a(["F", "f", "5", 92]), $a(["G", "g", "6", "]"]), $a(["H", "h", "7", "_"]), $a(["I", "i", "8", "`"]), $a(["J", "j", "9", "~"]), $a(["K", "k", "&", "!"]), $a(["L", "l", 13, 13]), $a(["M", "m", 9, 9]), $a(["N", "n", ",", ","]), $a(["O", "o", ":", ":"]), $a(["P", "p", "#", 10]), $a(["Q", "q", "-", "-"]), $a(["R", "r", ".", "."]), $a(["S", "s", "$", "$"]), $a(["T", "t", "/", "/"]), $a(["U", "u", "+", "\""]), $a(["V", "v", "%", "|"]), $a(["W", "w", "*", "*"]), $a(["X", "x", "=", 40]), $a(["Y", "y", "^", 41]), $a(["Z", "z", $1.pl, "?"]), $a([" ", " ", " ", "{"]), $a([$1.ll, $1.as, $1.ll, "}"]), $a([$1.ml, $1.ml, $1.al, "'"]), $a([$1.ps, $1.ps, $1.ps, $1.al])]); //#16254 + $1.charvals = $a([new Map, new Map, new Map, new Map]); //#16257 + $1.alltext = new Map; //#16258 + for (var _30 = 0, _2z = $1.charmaps.length - 1; _30 <= _2z; _30 += 1) { //#16268 + $1.i = _30; //#16260 + $1.encs = $get($1.charmaps, $1.i); //#16261 + for (var _34 = 0; _34 <= 3; _34 += 1) { //#16267 + $1.j = _34; //#16263 + var _37 = $get($1.encs, $1.j); //#16264 + $k[$j++] = _37; //#16264 + if ($eq($type(_37), 'stringtype')) { //#16264 + var _3A = $get($k[--$j], 0); //#16264 + $k[$j++] = _3A; //#16264 + } //#16264 + var _3B = $k[--$j]; //#16265 + $put($get($1.charvals, $1.j), _3B, $1.i); //#16265 + $put($1.alltext, _3B, -1); //#16266 + } //#16266 + } //#16266 + $1.e = 10000; //#16270 + $1.latlen = $a([$a([0, 1, 1, 2]), $a([2, 0, 1, 2]), $a([1, 1, 0, 1]), $a([1, 2, 2, 0])]); //#16278 + $1.latseq = $a([$a([$a([]), $a([$1.ll]), $a([$1.ml]), $a([$1.ml, $1.pl])]), $a([$a([$1.ml, $1.al]), $a([]), $a([$1.ml]), $a([$1.ml, $1.pl])]), $a([$a([$1.al]), $a([$1.ll]), $a([]), $a([$1.pl])]), $a([$a([$1.al]), $a([$1.al, $1.ll]), $a([$1.al, $1.ml]), $a([])])]); //#16286 + $1.shftlen = $a([$a([$1.e, $1.e, $1.e, 1]), $a([1, $1.e, $1.e, 1]), $a([$1.e, $1.e, $1.e, 1]), $a([$1.e, $1.e, $1.e, $1.e])]); //#16294 + $k[$j++] = Infinity; //#16297 + for (var _4G = 0, _4H = $1.msglen; _4G < _4H; _4G++) { //#16297 + $k[$j++] = 0; //#16297 + } //#16297 + $k[$j++] = 0; //#16297 + $1.numdigits = $a(); //#16297 + $k[$j++] = Infinity; //#16298 + for (var _4K = 0, _4L = $1.msglen; _4K < _4L; _4K++) { //#16298 + $k[$j++] = 0; //#16298 + } //#16298 + $k[$j++] = 0; //#16298 + $1.numtext = $a(); //#16298 + $k[$j++] = Infinity; //#16299 + for (var _4O = 0, _4P = $1.msglen; _4O < _4P; _4O++) { //#16299 + $k[$j++] = 0; //#16299 + } //#16299 + $k[$j++] = 0; //#16299 + $1.numbytes = $a(); //#16299 + $k[$j++] = Infinity; //#16300 + for (var _4S = 0, _4T = $1.msglen; _4S < _4T; _4S++) { //#16300 + $k[$j++] = 0; //#16300 + } //#16300 + $1.iseci = $a(); //#16300 + for (var _4W = $1.msglen - 1; _4W >= 0; _4W -= 1) { //#16313 + $1.i = _4W; //#16302 + var _4Z = $get($1.msg, $1.i); //#16303 + if ((_4Z >= 48) && (_4Z <= 57)) { //#16305 + $put($1.numdigits, $1.i, $f($get($1.numdigits, $1.i + 1) + 1)); //#16304 + } //#16304 + var _4j = $get($1.alltext, $get($1.msg, $1.i)) !== undefined; //#16306 + if (_4j && ($get($1.numdigits, $1.i) < 13)) { //#16308 + $put($1.numtext, $1.i, $f($get($1.numtext, $1.i + 1) + 1)); //#16307 + } //#16307 + if ((($get($1.msg, $1.i) >= 0) && ($get($1.numtext, $1.i) < 5)) && ($get($1.numdigits, $1.i) < 13)) { //#16311 + $put($1.numbytes, $1.i, $f($get($1.numbytes, $1.i + 1) + 1)); //#16310 + } //#16310 + $put($1.iseci, $1.i, $get($1.msg, $1.i) <= -1000000); //#16312 + } //#16312 + $1.numdigits = $geti($1.numdigits, 0, $1.msglen); //#16314 + $1.numtext = $geti($1.numtext, 0, $1.msglen); //#16315 + $1.numbytes = $geti($1.numbytes, 0, $1.msglen); //#16316 + $1.seq = $a([]); //#16318 + $1.seqlen = 0; //#16318 + $1.state = $1.B; //#16318 + $1.p = 0; //#16318 + for (;;) { //#16372 + if ($1.p == $1.msglen) { //#16319 + break; //#16319 + } //#16319 + if ($get($1.iseci, $1.p)) { //#16370 + $1.eci = $get($1.msg, $1.p); //#16321 + $k[$j++] = Infinity; //#16324 + $aload($1.seq); //#16323 + $k[$j++] = $a([$1.eci]); //#16324 + $1.seq = $a(); //#16324 + $1.p = $1.p + 1; //#16326 + $k[$j++] = 'seqlen'; //#16327 + $k[$j++] = $1.seqlen; //#16327 + if ($1.eci <= -1810900) { //#16327 + $k[$j++] = 2; //#16327 + } else { //#16327 + var _5c = ($1.eci <= -1000900) ? 3 : 2; //#16327 + $k[$j++] = _5c; //#16327 + } //#16327 + var _5d = $k[--$j]; //#16327 + var _5e = $k[--$j]; //#16327 + $1[$k[--$j]] = $f(_5e + _5d); //#16327 + } else { //#16370 + $1.n = $get($1.numdigits, $1.p); //#16329 + if ($1.n >= 13) { //#16370 + $k[$j++] = Infinity; //#16334 + $aload($1.seq); //#16332 + $k[$j++] = $1.nl; //#16334 + $k[$j++] = Infinity; //#16334 + $aload($geti($1.msg, $1.p, $1.n)); //#16334 + var _5q = $a(); //#16334 + $k[$j++] = _5q; //#16334 + $1.seq = $a(); //#16334 + $1.state = $1.N; //#16336 + $1.p = $f($1.p + $1.n); //#16337 + $1.seqlen = $f(($1.seqlen + 1) + $1.n); //#16338 + } else { //#16370 + $1.t = $get($1.numtext, $1.p); //#16340 + if ($1.t >= 5) { //#16370 + $k[$j++] = Infinity; //#16347 + $aload($1.seq); //#16343 + if ($1.state != $1.T) { //#16346 + $k[$j++] = $1.tl; //#16345 + } //#16345 + $k[$j++] = Infinity; //#16347 + $aload($geti($1.msg, $1.p, $1.t)); //#16347 + var _69 = $a(); //#16347 + $k[$j++] = _69; //#16347 + $1.seq = $a(); //#16347 + $1.state = $1.T; //#16349 + $1.p = $f($1.p + $1.t); //#16350 + $1.seqlen = $f($f($1.seqlen + 1) + $1.t); //#16351 + } else { //#16370 + $1.b = $get($1.numbytes, $1.p); //#16353 + if (($1.b == 1) && ($1.state == $1.T)) { //#16370 + $k[$j++] = Infinity; //#16358 + $aload($1.seq); //#16356 + $k[$j++] = $1.bs; //#16358 + $k[$j++] = $a([$get($1.msg, $1.p)]); //#16358 + $1.seq = $a(); //#16358 + $1.p = $f($1.p + $1.b); //#16360 + $1.seqlen = $f($1.seqlen + 2); //#16361 + } else { //#16370 + $k[$j++] = Infinity; //#16366 + $aload($1.seq); //#16364 + var _6Y = (($1.b % 6) != 0) ? $1.bl : $1.bl6; //#16365 + $k[$j++] = _6Y; //#16366 + $k[$j++] = Infinity; //#16366 + $aload($geti($1.msg, $1.p, $1.b)); //#16366 + var _6d = $a(); //#16366 + $k[$j++] = _6d; //#16366 + $1.seq = $a(); //#16366 + $1.state = $1.B; //#16368 + $1.p = $f($1.p + $1.b); //#16369 + $1.seqlen = $f($f($1.seqlen + 1) + $1.b); //#16370 + } //#16370 + } //#16370 + } //#16370 + } //#16370 + } //#16370 + $k[$j++] = Infinity; //#16375 + $k[$j++] = $1.tl; //#16375 + $k[$j++] = 900; //#16375 + $k[$j++] = $1.bl; //#16375 + $k[$j++] = 901; //#16375 + $k[$j++] = $1.bl6; //#16375 + $k[$j++] = 924; //#16375 + $k[$j++] = $1.nl; //#16375 + $k[$j++] = 902; //#16375 + $k[$j++] = $1.bs; //#16375 + $k[$j++] = 913; //#16375 + $1.latchcws = $d(); //#16376 $1.enca = function() { - var _6u = $get($get($1.charvals, $1.A), $k[--$j]); - $k[$j++] = _6u; - }; + var _6u = $get($get($1.charvals, $1.A), $k[--$j]); //#16379 + $k[$j++] = _6u; //#16379 + }; //#16379 $1.encl = function() { - var _6z = $get($get($1.charvals, $1.L), $k[--$j]); - $k[$j++] = _6z; - }; + var _6z = $get($get($1.charvals, $1.L), $k[--$j]); //#16380 + $k[$j++] = _6z; //#16380 + }; //#16380 $1.encm = function() { - var _74 = $get($get($1.charvals, $1.M), $k[--$j]); - $k[$j++] = _74; - }; + var _74 = $get($get($1.charvals, $1.M), $k[--$j]); //#16381 + $k[$j++] = _74; //#16381 + }; //#16381 $1.encp = function() { - var _79 = $get($get($1.charvals, $1.P), $k[--$j]); - $k[$j++] = _79; - }; - $1.textencfuncs = $a([ "enca", "encl", "encm", "encp" ]); + var _79 = $get($get($1.charvals, $1.P), $k[--$j]); //#16382 + $k[$j++] = _79; //#16382 + }; //#16382 + $1.textencfuncs = $a(['enca', 'encl', 'encm', 'encp']); //#16383 $1.addtotext = function() { - $put($1.text, $1.l, $k[--$j]); - $1.l = $1.l + 1; - }; + $put($1.text, $1.l, $k[--$j]); //#16386 + $1.l = $1.l + 1; //#16387 + }; //#16388 $1.enct = function() { - $1.in = $k[--$j]; - $1.curlen = $a([ $1.e, $1.e, $1.e, $1.e ]); - $put($1.curlen, $1.submode, 0); - $1.curseq = $a([ $a([]), $a([]), $a([]), $a([]) ]); - $forall($1.in, function() { - $1.char = $k[--$j]; - for (;;) { - $1.imp = false; - var _7Y = $a([ $1.A, $1.L, $1.M, $1.P ]); - for (var _7Z = 0, _7a = _7Y.length; _7Z < _7a; _7Z++) { - $1.x = $get(_7Y, _7Z); - var _7g = $a([ $1.A, $1.L, $1.M, $1.P ]); - for (var _7h = 0, _7i = _7g.length; _7h < _7i; _7h++) { - $1.y = $get(_7g, _7h); - $1.cost = $f($get($1.curlen, $1.x) + $get($get($1.latlen, $1.x), $1.y)); - if ($1.cost < $get($1.curlen, $1.y)) { - $put($1.curlen, $1.y, $1.cost); - $k[$j++] = $1.curseq; - $k[$j++] = $1.y; - $k[$j++] = Infinity; - $aload($get($1.curseq, $1.x)); - $aload($get($get($1.latseq, $1.x), $1.y)); - var _89 = $a(); - var _8A = $k[--$j]; - $put($k[--$j], _8A, _89); - $1.imp = true; - } - } - } - if (!$1.imp) { - break; - } - } - $1.nxtlen = $a([ $1.e, $1.e, $1.e, $1.e ]); - $1.nxtseq = $a(4); - var _8N = $a([ $1.A, $1.L, $1.M, $1.P ]); - for (var _8O = 0, _8P = _8N.length; _8O < _8P; _8O++) { - $1.x = $get(_8N, _8O); - for (;;) { - var _8V = $get($get($1.charvals, $1.x), $1.char) !== undefined; - if (!_8V) { - break; - } - $1.cost = $f($get($1.curlen, $1.x) + 1); - if ($1.cost < $get($1.nxtlen, $1.x)) { - $put($1.nxtlen, $1.x, $1.cost); - $k[$j++] = $1.nxtseq; - $k[$j++] = $1.x; - $k[$j++] = Infinity; - $aload($get($1.curseq, $1.x)); - $k[$j++] = $1.char; - var _8m = $a(); - var _8n = $k[--$j]; - $put($k[--$j], _8n, _8m); - } - var _8t = $a([ $1.A, $1.L, $1.M, $1.P ]); - for (var _8u = 0, _8v = _8t.length; _8u < _8v; _8u++) { - $1.y = $get(_8t, _8u); - if ($ne($1.x, $1.y)) { - $1.cost = $f($f($get($1.curlen, $1.y) + $get($get($1.shftlen, $1.y), $1.x)) + 1); - if ($1.cost < $get($1.nxtlen, $1.y)) { - $put($1.nxtlen, $1.y, $1.cost); - $k[$j++] = $1.nxtseq; - $k[$j++] = $1.y; - $k[$j++] = Infinity; - $aload($get($1.curseq, $1.y)); - var _9L = $1.x == $1.A ? $1.as : $1.ps; - $k[$j++] = _9L; - $k[$j++] = $1.char; - var _9N = $a(); - var _9O = $k[--$j]; - $put($k[--$j], _9O, _9N); - } - } - } - break; - } - } - $1.curlen = $1.nxtlen; - $1.curseq = $1.nxtseq; - }); - $1.minseq = $1.e; - var _9X = $a([ $1.A, $1.L, $1.M, $1.P ]); - for (var _9Y = 0, _9Z = _9X.length; _9Y < _9Z; _9Y++) { - $1.k = $get(_9X, _9Y); - if ($get($1.curlen, $1.k) < $1.minseq) { - $1.minseq = $get($1.curlen, $1.k); - $1.txtseq = $get($1.curseq, $1.k); - } - } - $1.text = $a($1.minseq); - $1.k = 0; - $1.l = 0; - for (;;) { - if ($1.k >= $1.txtseq.length) { - break; - } - $1.char = $get($1.txtseq, $1.k); - $k[$j++] = $1.char; + $1.in = $k[--$j]; //#16392 + $1.curlen = $a([$1.e, $1.e, $1.e, $1.e]); //#16394 + $put($1.curlen, $1.submode, 0); //#16395 + $1.curseq = $a([$a([]), $a([]), $a([]), $a([])]); //#16396 + $forall($1.in, function() { //#16466 + $1.char = $k[--$j]; //#16401 + for (;;) { //#16422 + $1.imp = false; //#16405 + var _7Y = $a([$1.A, $1.L, $1.M, $1.P]); //#16406 + for (var _7Z = 0, _7a = _7Y.length; _7Z < _7a; _7Z++) { //#16420 + $1.x = $get(_7Y, _7Z); //#16407 + var _7g = $a([$1.A, $1.L, $1.M, $1.P]); //#16408 + for (var _7h = 0, _7i = _7g.length; _7h < _7i; _7h++) { //#16419 + $1.y = $get(_7g, _7h); //#16409 + $1.cost = $f($get($1.curlen, $1.x) + $get($get($1.latlen, $1.x), $1.y)); //#16410 + if ($1.cost < $get($1.curlen, $1.y)) { //#16418 + $put($1.curlen, $1.y, $1.cost); //#16412 + $k[$j++] = $1.curseq; //#16415 + $k[$j++] = $1.y; //#16415 + $k[$j++] = Infinity; //#16415 + $aload($get($1.curseq, $1.x)); //#16414 + $aload($get($get($1.latseq, $1.x), $1.y)); //#16415 + var _89 = $a(); //#16415 + var _8A = $k[--$j]; //#16416 + $put($k[--$j], _8A, _89); //#16416 + $1.imp = true; //#16417 + } //#16417 + } //#16417 + } //#16417 + if (!$1.imp) { //#16421 + break; //#16421 + } //#16421 + } //#16421 + $1.nxtlen = $a([$1.e, $1.e, $1.e, $1.e]); //#16425 + $1.nxtseq = $a(4); //#16426 + var _8N = $a([$1.A, $1.L, $1.M, $1.P]); //#16428 + for (var _8O = 0, _8P = _8N.length; _8O < _8P; _8O++) { //#16461 + $1.x = $get(_8N, _8O); //#16429 + for (;;) { //#16459 + var _8V = $get($get($1.charvals, $1.x), $1.char) !== undefined; //#16433 + if (!_8V) { //#16433 + break; //#16433 + } //#16433 + $1.cost = $f($get($1.curlen, $1.x) + 1); //#16436 + if ($1.cost < $get($1.nxtlen, $1.x)) { //#16440 + $put($1.nxtlen, $1.x, $1.cost); //#16438 + $k[$j++] = $1.nxtseq; //#16439 + $k[$j++] = $1.x; //#16439 + $k[$j++] = Infinity; //#16439 + $aload($get($1.curseq, $1.x)); //#16439 + $k[$j++] = $1.char; //#16439 + var _8m = $a(); //#16439 + var _8n = $k[--$j]; //#16439 + $put($k[--$j], _8n, _8m); //#16439 + } //#16439 + var _8t = $a([$1.A, $1.L, $1.M, $1.P]); //#16443 + for (var _8u = 0, _8v = _8t.length; _8u < _8v; _8u++) { //#16456 + $1.y = $get(_8t, _8u); //#16444 + if ($ne($1.x, $1.y)) { //#16455 + $1.cost = $f($f($get($1.curlen, $1.y) + $get($get($1.shftlen, $1.y), $1.x)) + 1); //#16446 + if ($1.cost < $get($1.nxtlen, $1.y)) { //#16454 + $put($1.nxtlen, $1.y, $1.cost); //#16448 + $k[$j++] = $1.nxtseq; //#16452 + $k[$j++] = $1.y; //#16452 + $k[$j++] = Infinity; //#16452 + $aload($get($1.curseq, $1.y)); //#16450 + var _9L = ($1.x == $1.A) ? $1.as : $1.ps; //#16451 + $k[$j++] = _9L; //#16452 + $k[$j++] = $1.char; //#16452 + var _9N = $a(); //#16452 + var _9O = $k[--$j]; //#16453 + $put($k[--$j], _9O, _9N); //#16453 + } //#16453 + } //#16453 + } //#16453 + break; //#16458 + } //#16458 + } //#16458 + $1.curlen = $1.nxtlen; //#16463 + $1.curseq = $1.nxtseq; //#16464 + }); //#16464 + $1.minseq = $1.e; //#16469 + var _9X = $a([$1.A, $1.L, $1.M, $1.P]); //#16470 + for (var _9Y = 0, _9Z = _9X.length; _9Y < _9Z; _9Y++) { //#16476 + $1.k = $get(_9X, _9Y); //#16471 + if ($get($1.curlen, $1.k) < $1.minseq) { //#16475 + $1.minseq = $get($1.curlen, $1.k); //#16473 + $1.txtseq = $get($1.curseq, $1.k); //#16474 + } //#16474 + } //#16474 + $1.text = $a($1.minseq); //#16479 + $1.k = 0; //#16480 + $1.l = 0; //#16480 + for (;;) { //#16500 + if ($1.k >= $1.txtseq.length) { //#16481 + break; //#16481 + } //#16481 + $1.char = $get($1.txtseq, $1.k); //#16483 + $k[$j++] = $1.char; //#16486 if ($1[$get($1.textencfuncs, $1.submode)]() === true) { break; - } - $1.addtotext(); - $1.k = $1.k + 1; - if ($1.char == $1.as || $1.char == $1.ps) { - $k[$j++] = $get($1.txtseq, $1.k); - if ($1.char == $1.as) { - $1.enca(); - } else { - $1.encp(); - } - $1.addtotext(); - $1.k = $1.k + 1; - } - if ($1.char == $1.al) { - $1.submode = $1.A; - } - if ($1.char == $1.ll) { - $1.submode = $1.L; - } - if ($1.char == $1.ml) { - $1.submode = $1.M; - } - if ($1.char == $1.pl) { - $1.submode = $1.P; - } - } - if ($1.text.length % 2 == 1) { - if ($1.submode == $1.P) { - $k[$j++] = "pad"; - $k[$j++] = $1.al; - $1.encp(); - var _AO = $k[--$j]; - $1[$k[--$j]] = _AO; - $1.submode = $1.A; - } else { - $k[$j++] = "pad"; - $k[$j++] = $1.ps; + } //#16486 + $1.addtotext(); //#16486 + $1.k = $1.k + 1; //#16487 + if (($1.char == $1.as) || ($1.char == $1.ps)) { //#16493 + $k[$j++] = $get($1.txtseq, $1.k); //#16491 + if ($1.char == $1.as) { //#16491 + $1.enca(); //#16491 + } else { //#16491 + $1.encp(); //#16491 + } //#16491 + $1.addtotext(); //#16491 + $1.k = $1.k + 1; //#16492 + } //#16492 + if ($1.char == $1.al) { //#16496 + $1.submode = $1.A; //#16496 + } //#16496 + if ($1.char == $1.ll) { //#16497 + $1.submode = $1.L; //#16497 + } //#16497 + if ($1.char == $1.ml) { //#16498 + $1.submode = $1.M; //#16498 + } //#16498 + if ($1.char == $1.pl) { //#16499 + $1.submode = $1.P; //#16499 + } //#16499 + } //#16499 + if (($1.text.length % 2) == 1) { //#16510 + if ($1.submode == $1.P) { //#16507 + $k[$j++] = 'pad'; //#16504 + $k[$j++] = $1.al; //#16504 + $1.encp(); //#16504 + var _AO = $k[--$j]; //#16504 + $1[$k[--$j]] = _AO; //#16504 + $1.submode = $1.A; //#16505 + } else { //#16507 + $k[$j++] = 'pad'; //#16507 + $k[$j++] = $1.ps; //#16507 if ($1[$get($1.textencfuncs, $1.submode)]() === true) { return true; - } - var _AW = $k[--$j]; - $1[$k[--$j]] = _AW; - } - $k[$j++] = Infinity; - $aload($1.text); - $k[$j++] = $1.pad; - $1.text = $a(); - } - $1.out = $a(~~($1.text.length / 2)); - for (var _Af = 0, _Ae = $1.out.length - 1; _Af <= _Ae; _Af += 1) { - $1.k = _Af; - $put($1.out, $1.k, $f($get($1.text, $1.k * 2) * 30 + $get($1.text, $1.k * 2 + 1))); - } - $k[$j++] = $1.out; - }; + } //#16507 + var _AW = $k[--$j]; //#16507 + $1[$k[--$j]] = _AW; //#16507 + } //#16507 + $k[$j++] = Infinity; //#16509 + $aload($1.text); //#16509 + $k[$j++] = $1.pad; //#16509 + $1.text = $a(); //#16509 + } //#16509 + $1.out = $a(~~($1.text.length / 2)); //#16512 + for (var _Af = 0, _Ae = $1.out.length - 1; _Af <= _Ae; _Af += 1) { //#16516 + $1.k = _Af; //#16514 + $put($1.out, $1.k, $f(($get($1.text, $1.k * 2) * 30) + $get($1.text, ($1.k * 2) + 1))); //#16515 + } //#16515 + $k[$j++] = $1.out; //#16518 + }; //#16520 $1.encn = function() { - $1.in = $k[--$j]; - $1.out = $a([]); - for (var _At = 0, _As = $1.in.length - 1; _At <= _As; _At += 44) { - $1.k = _At; - $k[$j++] = Infinity; - var _Ay = $1.in.length - $1.k; - $k[$j++] = 1; - $k[$j++] = $1.in; - $k[$j++] = $1.k; - $k[$j++] = _Ay; - if (_Ay > 44) { - $j--; - $k[$j++] = 44; - } - var _Az = $k[--$j]; - var _B0 = $k[--$j]; - var _B2 = $geti($k[--$j], _B0, _Az); - for (var _B3 = 0, _B4 = _B2.length; _B3 < _B4; _B3++) { - $k[$j++] = $f($get(_B2, _B3) - 48); - } - $1.gmod = $a(); - $1.cwn = $a([]); - for (;;) { - $1.dv = 900; - $1.gmul = $a([]); - $1.val = 0; - for (;;) { - if ($1.gmod.length == 0) { - break; - } - $1.val = $f($1.val * 10 + $get($1.gmod, 0)); - $1.gmod = $geti($1.gmod, 1, $1.gmod.length - 1); - if ($1.val < $1.dv) { - if ($1.gmul.length != 0) { - $k[$j++] = Infinity; - $aload($1.gmul); - $k[$j++] = 0; - $1.gmul = $a(); - } - } else { - $k[$j++] = Infinity; - $aload($1.gmul); - $k[$j++] = ~~($1.val / $1.dv); - $1.gmul = $a(); - } - $1.val = $1.val % $1.dv; - } - $1.dv = $1.val; - $k[$j++] = Infinity; - $k[$j++] = $1.dv; - $aload($1.cwn); - $1.cwn = $a(); - $1.gmod = $1.gmul; - if ($1.gmul.length == 0) { - break; - } - } - $k[$j++] = Infinity; - $aload($1.out); - $aload($1.cwn); - $1.out = $a(); - } - $k[$j++] = $1.out; - }; + $1.in = $k[--$j]; //#16523 + $1.out = $a([]); //#16524 + for (var _At = 0, _As = $1.in.length - 1; _At <= _As; _At += 44) { //#16552 + $1.k = _At; //#16526 + $k[$j++] = Infinity; //#16529 + var _Ay = $1.in.length - $1.k; //#16528 + $k[$j++] = 1; //#16528 + $k[$j++] = $1.in; //#16528 + $k[$j++] = $1.k; //#16528 + $k[$j++] = _Ay; //#16528 + if (_Ay > 44) { //#16528 + $j--; //#16528 + $k[$j++] = 44; //#16528 + } //#16528 + var _Az = $k[--$j]; //#16528 + var _B0 = $k[--$j]; //#16528 + var _B2 = $geti($k[--$j], _B0, _Az); //#16528 + for (var _B3 = 0, _B4 = _B2.length; _B3 < _B4; _B3++) { //#16529 + $k[$j++] = $f($get(_B2, _B3) - 48); //#16529 + } //#16529 + $1.gmod = $a(); //#16529 + $1.cwn = $a([]); //#16531 + for (;;) { //#16550 + $1.dv = 900; //#16532 + $1.gmul = $a([]); //#16533 + $1.val = 0; //#16533 + for (;;) { //#16545 + if ($1.gmod.length == 0) { //#16534 + break; //#16534 + } //#16534 + $1.val = $f(($1.val * 10) + $get($1.gmod, 0)); //#16535 + $1.gmod = $geti($1.gmod, 1, $1.gmod.length - 1); //#16536 + if ($1.val < $1.dv) { //#16542 + if ($1.gmul.length != 0) { //#16540 + $k[$j++] = Infinity; //#16539 + $aload($1.gmul); //#16539 + $k[$j++] = 0; //#16539 + $1.gmul = $a(); //#16539 + } //#16539 + } else { //#16542 + $k[$j++] = Infinity; //#16542 + $aload($1.gmul); //#16542 + $k[$j++] = ~~($1.val / $1.dv); //#16542 + $1.gmul = $a(); //#16542 + } //#16542 + $1.val = $1.val % $1.dv; //#16544 + } //#16544 + $1.dv = $1.val; //#16546 + $k[$j++] = Infinity; //#16547 + $k[$j++] = $1.dv; //#16547 + $aload($1.cwn); //#16547 + $1.cwn = $a(); //#16547 + $1.gmod = $1.gmul; //#16548 + if ($1.gmul.length == 0) { //#16549 + break; //#16549 + } //#16549 + } //#16549 + $k[$j++] = Infinity; //#16551 + $aload($1.out); //#16551 + $aload($1.cwn); //#16551 + $1.out = $a(); //#16551 + } //#16551 + $k[$j++] = $1.out; //#16553 + }; //#16554 $1.ence = function() { - var _Bd = $f(-$get($k[--$j], 0) - 1e6); - $k[$j++] = _Bd; - if (_Bd <= 899) { - var _Be = $k[--$j]; - $k[$j++] = 927; - $k[$j++] = _Be; - $astore($a(2)); - } else { - var _Bg = $k[--$j]; - $k[$j++] = _Bg; - if (_Bg <= 810899) { - var _Bh = $k[--$j]; - $k[$j++] = 926; - $k[$j++] = ~~(_Bh / 900) - 1; - $k[$j++] = _Bh % 900; - $astore($a(3)); - } else { - var _Bj = $k[--$j]; - $k[$j++] = _Bj; - if (_Bj <= 811799) { - var _Bk = $k[--$j]; - $k[$j++] = 925; - $k[$j++] = $f(_Bk - 810900); - $astore($a(2)); - } else { - $k[$j++] = "bwipp.pdf417badECI"; - $k[$j++] = "PDF417 supports ECIs 000000 to 811799"; - $0.raiseerror(); - } - } - } - }; - $1.encfuncs = $a([ "enct", "encn", "encb" ]); + var _Bd = $f((-$get($k[--$j], 0)) - 1000000); //#16558 + $k[$j++] = _Bd; //#16566 + if (_Bd <= 899) { //#16565 + var _Be = $k[--$j]; //#16559 + $k[$j++] = 927; //#16559 + $k[$j++] = _Be; //#16559 + $astore($a(2)); //#16559 + } else { //#16565 + var _Bg = $k[--$j]; //#16560 + $k[$j++] = _Bg; //#16566 + if (_Bg <= 810899) { //#16565 + var _Bh = $k[--$j]; //#16561 + $k[$j++] = 926; //#16561 + $k[$j++] = (~~(_Bh / 900)) - 1; //#16561 + $k[$j++] = _Bh % 900; //#16561 + $astore($a(3)); //#16561 + } else { //#16565 + var _Bj = $k[--$j]; //#16562 + $k[$j++] = _Bj; //#16566 + if (_Bj <= 811799) { //#16565 + var _Bk = $k[--$j]; //#16563 + $k[$j++] = 925; //#16563 + $k[$j++] = $f(_Bk - 810900); //#16563 + $astore($a(2)); //#16563 + } else { //#16565 + $k[$j++] = 'bwipp.pdf417badECI'; //#16565 + $k[$j++] = "PDF417 supports ECIs 000000 to 811799"; //#16565 + $0.raiseerror(); //#16565 + } //#16565 + } //#16565 + } //#16565 + }; //#16567 + $1.encfuncs = $a(['enct', 'encn', 'encb']); //#16569 $1.addtocws = function() { - var _Bn = $k[--$j]; - $puti($1.datcws, $1.j, _Bn); - $1.j = _Bn.length + $1.j; - }; - $1.datcws = $a($1.seqlen); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i >= $1.seq.length) { - break; - } - $1.chars = $get($1.seq, $1.i); - if ($eq($type($1.chars), "arraytype")) { - if ($get($1.chars, 0) <= -1e6) { - $k[$j++] = $1.chars; - $1.ence(); - $1.addtocws(); - } else { - $k[$j++] = $1.chars; + var _Bn = $k[--$j]; //#16572 + $puti($1.datcws, $1.j, _Bn); //#16572 + $1.j = _Bn.length + $1.j; //#16573 + }; //#16574 + $1.datcws = $a($1.seqlen); //#16578 + $1.i = 0; //#16579 + $1.j = 0; //#16579 + for (;;) { //#16599 + if ($1.i >= $1.seq.length) { //#16580 + break; //#16580 + } //#16580 + $1.chars = $get($1.seq, $1.i); //#16581 + if ($eq($type($1.chars), 'arraytype')) { //#16595 + if ($get($1.chars, 0) <= -1000000) { //#16586 + $k[$j++] = $1.chars; //#16584 + $1.ence(); //#16584 + $1.addtocws(); //#16584 + } else { //#16586 + $k[$j++] = $1.chars; //#16586 if ($1[$get($1.encfuncs, $1.state)]() === true) { break; - } - $1.addtocws(); - } - } else { - $k[$j++] = $a([ $get($1.latchcws, $1.chars) ]); - $1.addtocws(); - if ($1.chars == $1.tl) { - $1.state = $1.T; - $1.submode = $1.A; - } - if ($1.chars == $1.nl) { - $1.state = $1.N; - } - if ($1.chars == $1.bl || $1.chars == $1.bl6) { - $1.state = $1.B; - } - if ($1.chars == $1.bs) { - $1.i = $1.i + 1; - $k[$j++] = $get($1.seq, $1.i); - $1.encb(); - $1.addtocws(); - } - } - $1.i = $1.i + 1; - } - $1.datcws = $geti($1.datcws, 0, $1.j); - } - $1.metrics = $a([ $a([ 1, 11, 7, 1, 0, 9 ]), $a([ 1, 14, 7, 8, 0, 8 ]), $a([ 1, 17, 7, 36, 0, 36 ]), $a([ 1, 20, 8, 19, 0, 19 ]), $a([ 1, 24, 8, 9, 0, 17 ]), $a([ 1, 28, 8, 25, 0, 33 ]), $a([ 2, 8, 8, 1, 0, 1 ]), $a([ 2, 11, 9, 1, 0, 9 ]), $a([ 2, 14, 9, 8, 0, 8 ]), $a([ 2, 17, 10, 36, 0, 36 ]), $a([ 2, 20, 11, 19, 0, 19 ]), $a([ 2, 23, 13, 9, 0, 17 ]), $a([ 2, 26, 15, 27, 0, 35 ]), $a([ 3, 6, 12, 1, 1, 1 ]), $a([ 3, 8, 14, 7, 7, 7 ]), $a([ 3, 10, 16, 15, 15, 15 ]), $a([ 3, 12, 18, 25, 25, 25 ]), $a([ 3, 15, 21, 37, 37, 37 ]), $a([ 3, 20, 26, 1, 17, 33 ]), $a([ 3, 26, 32, 1, 9, 17 ]), $a([ 3, 32, 38, 21, 29, 37 ]), $a([ 3, 38, 44, 15, 31, 47 ]), $a([ 3, 44, 50, 1, 25, 49 ]), $a([ 4, 4, 8, 47, 19, 43 ]), $a([ 4, 6, 12, 1, 1, 1 ]), $a([ 4, 8, 14, 7, 7, 7 ]), $a([ 4, 10, 16, 15, 15, 15 ]), $a([ 4, 12, 18, 25, 25, 25 ]), $a([ 4, 15, 21, 37, 37, 37 ]), $a([ 4, 20, 26, 1, 17, 33 ]), $a([ 4, 26, 32, 1, 9, 17 ]), $a([ 4, 32, 38, 21, 29, 37 ]), $a([ 4, 38, 44, 15, 31, 47 ]), $a([ 4, 44, 50, 1, 25, 49 ]) ]); - $1.ccametrics = $a([ $a([ 2, 5, 4, 39, 0, 19 ]), $a([ 2, 6, 4, 1, 0, 33 ]), $a([ 2, 7, 5, 32, 0, 12 ]), $a([ 2, 8, 5, 8, 0, 40 ]), $a([ 2, 9, 6, 14, 0, 46 ]), $a([ 2, 10, 6, 43, 0, 23 ]), $a([ 2, 12, 7, 20, 0, 52 ]), $a([ 3, 4, 4, 11, 43, 23 ]), $a([ 3, 5, 5, 1, 33, 13 ]), $a([ 3, 6, 6, 5, 37, 17 ]), $a([ 3, 7, 7, 15, 47, 27 ]), $a([ 3, 8, 7, 21, 1, 33 ]), $a([ 4, 3, 4, 40, 20, 52 ]), $a([ 4, 4, 5, 43, 23, 3 ]), $a([ 4, 5, 6, 46, 26, 6 ]), $a([ 4, 6, 7, 34, 14, 46 ]), $a([ 4, 7, 8, 29, 9, 41 ]) ]); - if ($1.cca) { - $1.metrics = $1.ccametrics; - } - $1.urows = $1.rows; - $1.ucols = $1.columns; - $1.i = 0; - for (;;) { - $1.m = $get($1.metrics, $1.i); - $1.c = $get($1.m, 0); - $1.r = $get($1.m, 1); - $1.k = $get($1.m, 2); - $1.rapl = $get($1.m, 3); - $1.rapc = $get($1.m, 4); - $1.rapr = $get($1.m, 5); - $1.ncws = $f($1.r * $1.c - $1.k); - $1.okay = true; - if ($1.datcws.length > $1.ncws) { - $1.okay = false; - } - if ($1.urows != 0 && $1.urows != $1.r) { - $1.okay = false; - } - if ($1.ucols != 0 && $1.ucols != $1.c) { - $1.okay = false; - } - if ($1.okay) { - break; - } - $1.i = $1.i + 1; - } - $1.m = $1.datcws.length; - $1.n = $f($1.c * $1.r - $1.k); - $1.cws = $a($f($1.c * $1.r + 1)); - $puti($1.cws, 0, $1.datcws); - $k[$j++] = $1.cws; - $k[$j++] = $1.m; - $k[$j++] = Infinity; - for (var _E8 = 0, _E9 = $f($1.n - $1.m); _E8 < _E9; _E8++) { - $k[$j++] = 900; - } - var _EA = $a(); - var _EB = $k[--$j]; - $puti($k[--$j], _EB, _EA); - $k[$j++] = $1.cws; - $k[$j++] = $1.n; - $k[$j++] = Infinity; - for (var _EG = 0, _EH = $1.k; _EG < _EH; _EG++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - var _EI = $a(); - var _EJ = $k[--$j]; - $puti($k[--$j], _EJ, _EI); - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _EL = 0, _EM = 928; _EL < _EM; _EL++) { - var _EN = $k[--$j]; - $k[$j++] = _EN; - $k[$j++] = _EN * 3 % 929; - } - $1.rsalog = $a(); - $1.rslog = $a(929); - for (var _EQ = 1; _EQ <= 928; _EQ += 1) { - $put($1.rslog, $get($1.rsalog, _EQ), _EQ); - } + } //#16586 + $1.addtocws(); //#16586 + } //#16586 + } else { //#16595 + $k[$j++] = $a([$get($1.latchcws, $1.chars)]); //#16589 + $1.addtocws(); //#16589 + if ($1.chars == $1.tl) { //#16590 + $1.state = $1.T; //#16590 + $1.submode = $1.A; //#16590 + } //#16590 + if ($1.chars == $1.nl) { //#16591 + $1.state = $1.N; //#16591 + } //#16591 + if (($1.chars == $1.bl) || ($1.chars == $1.bl6)) { //#16592 + $1.state = $1.B; //#16592 + } //#16592 + if ($1.chars == $1.bs) { //#16596 + $1.i = $1.i + 1; //#16594 + $k[$j++] = $get($1.seq, $1.i); //#16595 + $1.encb(); //#16595 + $1.addtocws(); //#16595 + } //#16595 + } //#16595 + $1.i = $1.i + 1; //#16598 + } //#16598 + $1.datcws = $geti($1.datcws, 0, $1.j); //#16600 + } //#16600 + $1.metrics = $a([$a([1, 11, 7, 1, 0, 9]), $a([1, 14, 7, 8, 0, 8]), $a([1, 17, 7, 36, 0, 36]), $a([1, 20, 8, 19, 0, 19]), $a([1, 24, 8, 9, 0, 17]), $a([1, 28, 8, 25, 0, 33]), $a([2, 8, 8, 1, 0, 1]), $a([2, 11, 9, 1, 0, 9]), $a([2, 14, 9, 8, 0, 8]), $a([2, 17, 10, 36, 0, 36]), $a([2, 20, 11, 19, 0, 19]), $a([2, 23, 13, 9, 0, 17]), $a([2, 26, 15, 27, 0, 35]), $a([3, 6, 12, 1, 1, 1]), $a([3, 8, 14, 7, 7, 7]), $a([3, 10, 16, 15, 15, 15]), $a([3, 12, 18, 25, 25, 25]), $a([3, 15, 21, 37, 37, 37]), $a([3, 20, 26, 1, 17, 33]), $a([3, 26, 32, 1, 9, 17]), $a([3, 32, 38, 21, 29, 37]), $a([3, 38, 44, 15, 31, 47]), $a([3, 44, 50, 1, 25, 49]), $a([4, 4, 8, 47, 19, 43]), $a([4, 6, 12, 1, 1, 1]), $a([4, 8, 14, 7, 7, 7]), $a([4, 10, 16, 15, 15, 15]), $a([4, 12, 18, 25, 25, 25]), $a([4, 15, 21, 37, 37, 37]), $a([4, 20, 26, 1, 17, 33]), $a([4, 26, 32, 1, 9, 17]), $a([4, 32, 38, 21, 29, 37]), $a([4, 38, 44, 15, 31, 47]), $a([4, 44, 50, 1, 25, 49])]); //#16640 + $1.ccametrics = $a([$a([2, 5, 4, 39, 0, 19]), $a([2, 6, 4, 1, 0, 33]), $a([2, 7, 5, 32, 0, 12]), $a([2, 8, 5, 8, 0, 40]), $a([2, 9, 6, 14, 0, 46]), $a([2, 10, 6, 43, 0, 23]), $a([2, 12, 7, 20, 0, 52]), $a([3, 4, 4, 11, 43, 23]), $a([3, 5, 5, 1, 33, 13]), $a([3, 6, 6, 5, 37, 17]), $a([3, 7, 7, 15, 47, 27]), $a([3, 8, 7, 21, 1, 33]), $a([4, 3, 4, 40, 20, 52]), $a([4, 4, 5, 43, 23, 3]), $a([4, 5, 6, 46, 26, 6]), $a([4, 6, 7, 34, 14, 46]), $a([4, 7, 8, 29, 9, 41])]); //#16662 + if ($1.cca) { //#16663 + $1.metrics = $1.ccametrics; //#16663 + } //#16663 + $1.urows = $1.rows; //#16666 + $1.ucols = $1.columns; //#16667 + $1.i = 0; //#16668 + for (;;) { //#16684 + $1.m = $get($1.metrics, $1.i); //#16670 + $1.c = $get($1.m, 0); //#16671 + $1.r = $get($1.m, 1); //#16672 + $1.k = $get($1.m, 2); //#16673 + $1.rapl = $get($1.m, 3); //#16674 + $1.rapc = $get($1.m, 4); //#16675 + $1.rapr = $get($1.m, 5); //#16676 + $1.ncws = $f(($1.r * $1.c) - $1.k); //#16677 + $1.okay = true; //#16678 + if ($1.datcws.length > $1.ncws) { //#16679 + $1.okay = false; //#16679 + } //#16679 + if (($1.urows != 0) && ($1.urows != $1.r)) { //#16680 + $1.okay = false; //#16680 + } //#16680 + if (($1.ucols != 0) && ($1.ucols != $1.c)) { //#16681 + $1.okay = false; //#16681 + } //#16681 + if ($1.okay) { //#16682 + break; //#16682 + } //#16682 + $1.i = $1.i + 1; //#16683 + } //#16683 + $1.m = $1.datcws.length; //#16685 + $1.n = $f(($1.c * $1.r) - $1.k); //#16688 + $1.cws = $a($f(($1.c * $1.r) + 1)); //#16689 + $puti($1.cws, 0, $1.datcws); //#16690 + $k[$j++] = $1.cws; //#16691 + $k[$j++] = $1.m; //#16691 + $k[$j++] = Infinity; //#16691 + for (var _E8 = 0, _E9 = $f($1.n - $1.m); _E8 < _E9; _E8++) { //#16691 + $k[$j++] = 900; //#16691 + } //#16691 + var _EA = $a(); //#16691 + var _EB = $k[--$j]; //#16691 + $puti($k[--$j], _EB, _EA); //#16691 + $k[$j++] = $1.cws; //#16692 + $k[$j++] = $1.n; //#16692 + $k[$j++] = Infinity; //#16692 + for (var _EG = 0, _EH = $1.k; _EG < _EH; _EG++) { //#16692 + $k[$j++] = 0; //#16692 + } //#16692 + $k[$j++] = 0; //#16692 + var _EI = $a(); //#16692 + var _EJ = $k[--$j]; //#16692 + $puti($k[--$j], _EJ, _EI); //#16692 + $k[$j++] = Infinity; //#16695 + $k[$j++] = 1; //#16695 + for (var _EL = 0, _EM = 928; _EL < _EM; _EL++) { //#16695 + var _EN = $k[--$j]; //#16695 + $k[$j++] = _EN; //#16695 + $k[$j++] = (_EN * 3) % 929; //#16695 + } //#16695 + $1.rsalog = $a(); //#16695 + $1.rslog = $a(929); //#16696 + for (var _EQ = 1; _EQ <= 928; _EQ += 1) { //#16697 + $put($1.rslog, $get($1.rsalog, _EQ), _EQ); //#16697 + } //#16697 $1.rsprod = function() { - var _EU = $k[--$j]; - var _EV = $k[--$j]; - $k[$j++] = _EV; - $k[$j++] = _EU; - if (_EU != 0 && _EV != 0) { - var _EY = $get($1.rslog, $k[--$j]); - var _Ed = $get($1.rsalog, $f(_EY + $get($1.rslog, $k[--$j])) % 928); - $k[$j++] = _Ed; - } else { - $j -= 2; - $k[$j++] = 0; - } - }; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _Ef = 0, _Eg = $1.k; _Ef < _Eg; _Ef++) { - $k[$j++] = 0; - } - $1.coeffs = $a(); - for (var _Ek = 1, _Ej = $1.k; _Ek <= _Ej; _Ek += 1) { - $1.i = _Ek; - $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); - for (var _Er = $1.i - 1; _Er >= 1; _Er -= 1) { - $1.j = _Er; - $k[$j++] = $1.coeffs; - $k[$j++] = $1.j; - $k[$j++] = $get($1.coeffs, $1.j - 1); - $k[$j++] = $get($1.coeffs, $1.j); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _F3 = $k[--$j]; - var _F4 = $k[--$j]; - var _F5 = $k[--$j]; - $put($k[--$j], _F5, $f(_F4 + _F3) % 929); - } - $k[$j++] = $1.coeffs; - $k[$j++] = 0; - $k[$j++] = $get($1.coeffs, 0); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _FD = $k[--$j]; - var _FE = $k[--$j]; - $put($k[--$j], _FE, _FD); - } - $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); - for (var _FK = $1.coeffs.length - 1; _FK >= 0; _FK -= 2) { - var _FL = $1.coeffs; - $put(_FL, _FK, $f(929 - $get(_FL, _FK))); - } - for (var _FP = 0, _FO = $f($1.n - 1); _FP <= _FO; _FP += 1) { - $1.t = $f($get($1.cws, _FP) + $get($1.cws, $1.n)) % 929; - for (var _FX = 0, _FW = $f($1.k - 1); _FX <= _FW; _FX += 1) { - $1.j = _FX; - $put($1.cws, $f($1.n + $1.j), $f($get($1.cws, $f($f($1.n + $1.j) + 1)) + $f(929 - $1.t * $get($1.coeffs, $f($f($1.k - $1.j) - 1)) % 929)) % 929); - } - } - for (var _Fo = $1.n, _Fn = $f($1.n + $1.k); _Fo <= _Fn; _Fo += 1) { - $put($1.cws, _Fo, $f(929 - $get($1.cws, _Fo)) % 929); - } - $1.cws = $geti($1.cws, 0, $1.cws.length - 1); - $1.clusters = $a([ $a([ 120256, 125680, 128380, 120032, 125560, 128318, 108736, 119920, 108640, 86080, 108592, 86048, 110016, 120560, 125820, 109792, 120440, 125758, 88256, 109680, 88160, 89536, 110320, 120700, 89312, 110200, 120638, 89200, 110140, 89840, 110460, 89720, 110398, 89980, 128506, 119520, 125304, 128190, 107712, 119408, 125244, 107616, 119352, 84032, 107568, 119324, 84e3, 107544, 83984, 108256, 119672, 125374, 85184, 108144, 119612, 85088, 108088, 119582, 85040, 108060, 85728, 108408, 119742, 85616, 108348, 85560, 108318, 85880, 108478, 85820, 85790, 107200, 119152, 125116, 107104, 119096, 125086, 83008, 107056, 119068, 82976, 107032, 82960, 82952, 83648, 107376, 119228, 83552, 107320, 119198, 83504, 107292, 83480, 83468, 83824, 107452, 83768, 107422, 83740, 83900, 106848, 118968, 125022, 82496, 106800, 118940, 82464, 106776, 118926, 82448, 106764, 82440, 106758, 82784, 106936, 119006, 82736, 106908, 82712, 106894, 82700, 82694, 106974, 82830, 82240, 106672, 118876, 82208, 106648, 118862, 82192, 106636, 82184, 106630, 82180, 82352, 82328, 82316, 82080, 118830, 106572, 106566, 82050, 117472, 124280, 127678, 103616, 117360, 124220, 103520, 117304, 124190, 75840, 103472, 75808, 104160, 117624, 124350, 76992, 104048, 117564, 76896, 103992, 76848, 76824, 77536, 104312, 117694, 77424, 104252, 77368, 77340, 77688, 104382, 77628, 77758, 121536, 126320, 128700, 121440, 126264, 128670, 111680, 121392, 126236, 111648, 121368, 126222, 111632, 121356, 103104, 117104, 124092, 112320, 103008, 117048, 124062, 112224, 121656, 126366, 93248, 74784, 102936, 117006, 93216, 112152, 93200, 75456, 103280, 117180, 93888, 75360, 103224, 117150, 93792, 112440, 121758, 93744, 75288, 93720, 75632, 103356, 94064, 75576, 103326, 94008, 112542, 93980, 75708, 94140, 75678, 94110, 121184, 126136, 128606, 111168, 121136, 126108, 111136, 121112, 126094, 111120, 121100, 111112, 111108, 102752, 116920, 123998, 111456, 102704, 116892, 91712, 74272, 121244, 116878, 91680, 74256, 102668, 91664, 111372, 102662, 74244, 74592, 102840, 116958, 92e3, 74544, 102812, 91952, 111516, 102798, 91928, 74508, 74502, 74680, 102878, 92088, 74652, 92060, 74638, 92046, 92126, 110912, 121008, 126044, 110880, 120984, 126030, 110864, 120972, 110856, 120966, 110852, 110850, 74048, 102576, 116828, 90944, 74016, 102552, 116814, 90912, 111e3, 121038, 90896, 73992, 102534, 90888, 110982, 90884, 74160, 102620, 91056, 74136, 102606, 91032, 111054, 91020, 74118, 91014, 91100, 91086, 110752, 120920, 125998, 110736, 120908, 110728, 120902, 110724, 110722, 73888, 102488, 116782, 90528, 73872, 102476, 90512, 110796, 102470, 90504, 73860, 90500, 73858, 73944, 90584, 90572, 90566, 120876, 120870, 110658, 102444, 73800, 90312, 90308, 90306, 101056, 116080, 123580, 100960, 116024, 70720, 100912, 115996, 70688, 100888, 70672, 70664, 71360, 101232, 116156, 71264, 101176, 116126, 71216, 101148, 71192, 71180, 71536, 101308, 71480, 101278, 71452, 71612, 71582, 118112, 124600, 127838, 105024, 118064, 124572, 104992, 118040, 124558, 104976, 118028, 104968, 118022, 100704, 115896, 123486, 105312, 100656, 115868, 79424, 70176, 118172, 115854, 79392, 105240, 100620, 79376, 70152, 79368, 70496, 100792, 115934, 79712, 70448, 118238, 79664, 105372, 100750, 79640, 70412, 79628, 70584, 100830, 79800, 70556, 79772, 70542, 70622, 79838, 122176, 126640, 128860, 122144, 126616, 128846, 122128, 126604, 122120, 126598, 122116, 104768, 117936, 124508, 113472, 104736, 126684, 124494, 113440, 122264, 126670, 113424, 104712, 117894, 113416, 122246, 104706, 69952, 100528, 115804, 78656, 69920, 100504, 115790, 96064, 78624, 104856, 117966, 96032, 113560, 122318, 100486, 96016, 78600, 104838, 96008, 69890, 70064, 100572, 78768, 70040, 100558, 96176, 78744, 104910, 96152, 113614, 70022, 78726, 70108, 78812, 70094, 96220, 78798, 122016, 126552, 128814, 122e3, 126540, 121992, 126534, 121988, 121986, 104608, 117848, 124462, 113056, 104592, 126574, 113040, 122060, 117830, 113032, 104580, 113028, 104578, 113026, 69792, 100440, 115758, 78240, 69776, 100428, 95136, 78224, 104652, 100422, 95120, 113100, 69764, 95112, 78212, 69762, 78210, 69848, 100462, 78296, 69836, 95192, 78284, 69830, 95180, 78278, 69870, 95214, 121936, 126508, 121928, 126502, 121924, 121922, 104528, 117804, 112848, 104520, 117798, 112840, 121958, 112836, 104514, 112834, 69712, 100396, 78032, 69704, 100390, 94672, 78024, 104550, 94664, 112870, 69698, 94660, 78018, 94658, 78060, 94700, 94694, 126486, 121890, 117782, 104484, 104482, 69672, 77928, 94440, 69666, 77922, 99680, 68160, 99632, 68128, 99608, 115342, 68112, 99596, 68104, 99590, 68448, 99768, 115422, 68400, 99740, 68376, 99726, 68364, 68358, 68536, 99806, 68508, 68494, 68574, 101696, 116400, 123740, 101664, 116376, 101648, 116364, 101640, 116358, 101636, 67904, 99504, 115292, 72512, 67872, 116444, 115278, 72480, 101784, 116430, 72464, 67848, 99462, 72456, 101766, 67842, 68016, 99548, 72624, 67992, 99534, 72600, 101838, 72588, 67974, 68060, 72668, 68046, 72654, 118432, 124760, 127918, 118416, 124748, 118408, 124742, 118404, 118402, 101536, 116312, 105888, 101520, 116300, 105872, 118476, 116294, 105864, 101508, 105860, 101506, 105858, 67744, 99416, 72096, 67728, 116334, 80800, 72080, 101580, 99398, 80784, 105932, 67716, 80776, 72068, 67714, 72066, 67800, 99438, 72152, 67788, 80856, 72140, 67782, 80844, 72134, 67822, 72174, 80878, 126800, 128940, 126792, 128934, 126788, 126786, 118352, 124716, 122576, 126828, 124710, 122568, 126822, 122564, 118338, 122562, 101456, 116268, 105680, 101448, 116262, 114128, 105672, 118374, 114120, 122598, 101442, 114116, 105666, 114114, 67664, 99372, 71888, 67656, 99366, 80336, 71880, 101478, 97232, 80328, 105702, 67650, 97224, 114150, 71874, 97220, 67692, 71916, 67686, 80364, 71910, 97260, 80358, 97254, 126760, 128918, 126756, 126754, 118312, 124694, 122472, 126774, 122468, 118306, 122466, 101416, 116246, 105576, 101412, 113896, 105572, 101410, 113892, 105570, 113890, 67624, 99350, 71784, 101430, 80104, 71780, 67618, 96744, 80100, 71778, 96740, 80098, 96738, 71798, 96758, 126738, 122420, 122418, 105524, 113780, 113778, 71732, 79988, 96500, 96498, 66880, 66848, 98968, 66832, 66824, 66820, 66992, 66968, 66956, 66950, 67036, 67022, 1e5, 99984, 115532, 99976, 115526, 99972, 99970, 66720, 98904, 69024, 100056, 98892, 69008, 100044, 69e3, 100038, 68996, 66690, 68994, 66776, 98926, 69080, 100078, 69068, 66758, 69062, 66798, 69102, 116560, 116552, 116548, 116546, 99920, 102096, 116588, 115494, 102088, 116582, 102084, 99906, 102082, 66640, 68816, 66632, 98854, 73168, 68808, 66628, 73160, 68804, 66626, 73156, 68802, 66668, 68844, 66662, 73196, 68838, 73190, 124840, 124836, 124834, 116520, 118632, 124854, 118628, 116514, 118626, 99880, 115478, 101992, 116534, 106216, 101988, 99874, 106212, 101986, 106210, 66600, 98838, 68712, 99894, 72936, 68708, 66594, 81384, 72932, 68706, 81380, 72930, 66614, 68726, 72950, 81398, 128980, 128978, 124820, 126900, 124818, 126898, 116500, 118580, 116498, 122740, 118578, 122738, 99860, 101940, 99858, 106100, 101938, 114420 ]), $a([ 128352, 129720, 125504, 128304, 129692, 125472, 128280, 129678, 125456, 128268, 125448, 128262, 125444, 125792, 128440, 129758, 120384, 125744, 128412, 120352, 125720, 128398, 120336, 125708, 120328, 125702, 120324, 120672, 125880, 128478, 110144, 120624, 125852, 110112, 120600, 125838, 110096, 120588, 110088, 120582, 110084, 110432, 120760, 125918, 89664, 110384, 120732, 89632, 110360, 120718, 89616, 110348, 89608, 110342, 89952, 110520, 120798, 89904, 110492, 89880, 110478, 89868, 90040, 110558, 90012, 89998, 125248, 128176, 129628, 125216, 128152, 129614, 125200, 128140, 125192, 128134, 125188, 125186, 119616, 125360, 128220, 119584, 125336, 128206, 119568, 125324, 119560, 125318, 119556, 119554, 108352, 119728, 125404, 108320, 119704, 125390, 108304, 119692, 108296, 119686, 108292, 108290, 85824, 108464, 119772, 85792, 108440, 119758, 85776, 108428, 85768, 108422, 85764, 85936, 108508, 85912, 108494, 85900, 85894, 85980, 85966, 125088, 128088, 129582, 125072, 128076, 125064, 128070, 125060, 125058, 119200, 125144, 128110, 119184, 125132, 119176, 125126, 119172, 119170, 107424, 119256, 125166, 107408, 119244, 107400, 119238, 107396, 107394, 83872, 107480, 119278, 83856, 107468, 83848, 107462, 83844, 83842, 83928, 107502, 83916, 83910, 83950, 125008, 128044, 125e3, 128038, 124996, 124994, 118992, 125036, 118984, 125030, 118980, 118978, 106960, 119020, 106952, 119014, 106948, 106946, 82896, 106988, 82888, 106982, 82884, 82882, 82924, 82918, 124968, 128022, 124964, 124962, 118888, 124982, 118884, 118882, 106728, 118902, 106724, 106722, 82408, 106742, 82404, 82402, 124948, 124946, 118836, 118834, 106612, 106610, 124224, 127664, 129372, 124192, 127640, 129358, 124176, 127628, 124168, 127622, 124164, 124162, 117568, 124336, 127708, 117536, 124312, 127694, 117520, 124300, 117512, 124294, 117508, 117506, 104256, 117680, 124380, 104224, 117656, 124366, 104208, 117644, 104200, 117638, 104196, 104194, 77632, 104368, 117724, 77600, 104344, 117710, 77584, 104332, 77576, 104326, 77572, 77744, 104412, 77720, 104398, 77708, 77702, 77788, 77774, 128672, 129880, 93168, 128656, 129868, 92664, 128648, 129862, 92412, 128644, 128642, 124064, 127576, 129326, 126368, 124048, 129902, 126352, 128716, 127558, 126344, 124036, 126340, 124034, 126338, 117152, 124120, 127598, 121760, 117136, 124108, 121744, 126412, 124102, 121736, 117124, 121732, 117122, 121730, 103328, 117208, 124142, 112544, 103312, 117196, 112528, 121804, 117190, 112520, 103300, 112516, 103298, 112514, 75680, 103384, 117230, 94112, 75664, 103372, 94096, 112588, 103366, 94088, 75652, 94084, 75650, 75736, 103406, 94168, 75724, 94156, 75718, 94150, 75758, 128592, 129836, 91640, 128584, 129830, 91388, 128580, 91262, 128578, 123984, 127532, 126160, 123976, 127526, 126152, 128614, 126148, 123970, 126146, 116944, 124012, 121296, 116936, 124006, 121288, 126182, 121284, 116930, 121282, 102864, 116972, 111568, 102856, 116966, 111560, 121318, 111556, 102850, 111554, 74704, 102892, 92112, 74696, 102886, 92104, 111590, 92100, 74690, 92098, 74732, 92140, 74726, 92134, 128552, 129814, 90876, 128548, 90750, 128546, 123944, 127510, 126056, 128566, 126052, 123938, 126050, 116840, 123958, 121064, 116836, 121060, 116834, 121058, 102632, 116854, 111080, 121078, 111076, 102626, 111074, 74216, 102646, 91112, 74212, 91108, 74210, 91106, 74230, 91126, 128532, 90494, 128530, 123924, 126004, 123922, 126002, 116788, 120948, 116786, 120946, 102516, 110836, 102514, 110834, 73972, 90612, 73970, 90610, 128522, 123914, 125978, 116762, 120890, 102458, 110714, 123552, 127320, 129198, 123536, 127308, 123528, 127302, 123524, 123522, 116128, 123608, 127342, 116112, 123596, 116104, 123590, 116100, 116098, 101280, 116184, 123630, 101264, 116172, 101256, 116166, 101252, 101250, 71584, 101336, 116206, 71568, 101324, 71560, 101318, 71556, 71554, 71640, 101358, 71628, 71622, 71662, 127824, 129452, 79352, 127816, 129446, 79100, 127812, 78974, 127810, 123472, 127276, 124624, 123464, 127270, 124616, 127846, 124612, 123458, 124610, 115920, 123500, 118224, 115912, 123494, 118216, 124646, 118212, 115906, 118210, 100816, 115948, 105424, 100808, 115942, 105416, 118246, 105412, 100802, 105410, 70608, 100844, 79824, 70600, 100838, 79816, 105446, 79812, 70594, 79810, 70636, 79852, 70630, 79846, 129960, 95728, 113404, 129956, 95480, 113278, 129954, 95356, 95294, 127784, 129430, 78588, 128872, 129974, 95996, 78462, 128868, 127778, 95870, 128866, 123432, 127254, 124520, 123428, 126696, 128886, 123426, 126692, 124514, 126690, 115816, 123446, 117992, 115812, 122344, 117988, 115810, 122340, 117986, 122338, 100584, 115830, 104936, 100580, 113640, 104932, 100578, 113636, 104930, 113634, 70120, 100598, 78824, 70116, 96232, 78820, 70114, 96228, 78818, 96226, 70134, 78838, 129940, 94968, 113022, 129938, 94844, 94782, 127764, 78206, 128820, 127762, 95102, 128818, 123412, 124468, 123410, 126580, 124466, 126578, 115764, 117876, 115762, 122100, 117874, 122098, 100468, 104692, 100466, 113140, 104690, 113138, 69876, 78324, 69874, 95220, 78322, 95218, 129930, 94588, 94526, 127754, 128794, 123402, 124442, 126522, 115738, 117818, 121978, 100410, 104570, 112890, 69754, 78074, 94714, 94398, 123216, 127148, 123208, 127142, 123204, 123202, 115408, 123244, 115400, 123238, 115396, 115394, 99792, 115436, 99784, 115430, 99780, 99778, 68560, 99820, 68552, 99814, 68548, 68546, 68588, 68582, 127400, 129238, 72444, 127396, 72318, 127394, 123176, 127126, 123752, 123172, 123748, 123170, 123746, 115304, 123190, 116456, 115300, 116452, 115298, 116450, 99560, 115318, 101864, 99556, 101860, 99554, 101858, 68072, 99574, 72680, 68068, 72676, 68066, 72674, 68086, 72694, 129492, 80632, 105854, 129490, 80508, 80446, 127380, 72062, 127924, 127378, 80766, 127922, 123156, 123700, 123154, 124788, 123698, 124786, 115252, 116340, 115250, 118516, 116338, 118514, 99444, 101620, 99442, 105972, 101618, 105970, 67828, 72180, 67826, 80884, 72178, 80882, 97008, 114044, 96888, 113982, 96828, 96798, 129482, 80252, 130010, 97148, 80190, 97086, 127370, 127898, 128954, 123146, 123674, 124730, 126842, 115226, 116282, 118394, 122618, 99386, 101498, 105722, 114170, 67706, 71930, 80378, 96632, 113854, 96572, 96542, 80062, 96702, 96444, 96414, 96350, 123048, 123044, 123042, 115048, 123062, 115044, 115042, 99048, 115062, 99044, 99042, 67048, 99062, 67044, 67042, 67062, 127188, 68990, 127186, 123028, 123316, 123026, 123314, 114996, 115572, 114994, 115570, 98932, 100084, 98930, 100082, 66804, 69108, 66802, 69106, 129258, 73084, 73022, 127178, 127450, 123018, 123290, 123834, 114970, 115514, 116602, 98874, 99962, 102138, 66682, 68858, 73210, 81272, 106174, 81212, 81182, 72894, 81342, 97648, 114364, 97592, 114334, 97564, 97550, 81084, 97724, 81054, 97694, 97464, 114270, 97436, 97422, 80990, 97502, 97372, 97358, 97326, 114868, 114866, 98676, 98674, 66292, 66290, 123098, 114842, 115130, 98618, 99194, 66170, 67322, 69310, 73404, 73374, 81592, 106334, 81564, 81550, 73310, 81630, 97968, 114524, 97944, 114510, 97932, 97926, 81500, 98012, 81486, 97998, 97880, 114478, 97868, 97862, 81454, 97902, 97836, 97830, 69470, 73564, 73550, 81752, 106414, 81740, 81734, 73518, 81774, 81708, 81702 ]), $a([ 109536, 120312, 86976, 109040, 120060, 86496, 108792, 119934, 86256, 108668, 86136, 129744, 89056, 110072, 129736, 88560, 109820, 129732, 88312, 109694, 129730, 88188, 128464, 129772, 89592, 128456, 129766, 89340, 128452, 89214, 128450, 125904, 128492, 125896, 128486, 125892, 125890, 120784, 125932, 120776, 125926, 120772, 120770, 110544, 120812, 110536, 120806, 110532, 84928, 108016, 119548, 84448, 107768, 119422, 84208, 107644, 84088, 107582, 84028, 129640, 85488, 108284, 129636, 85240, 108158, 129634, 85116, 85054, 128232, 129654, 85756, 128228, 85630, 128226, 125416, 128246, 125412, 125410, 119784, 125430, 119780, 119778, 108520, 119798, 108516, 108514, 83424, 107256, 119166, 83184, 107132, 83064, 107070, 83004, 82974, 129588, 83704, 107390, 129586, 83580, 83518, 128116, 83838, 128114, 125172, 125170, 119284, 119282, 107508, 107506, 82672, 106876, 82552, 106814, 82492, 82462, 129562, 82812, 82750, 128058, 125050, 119034, 82296, 106686, 82236, 82206, 82366, 82108, 82078, 76736, 103920, 117500, 76256, 103672, 117374, 76016, 103548, 75896, 103486, 75836, 129384, 77296, 104188, 129380, 77048, 104062, 129378, 76924, 76862, 127720, 129398, 77564, 127716, 77438, 127714, 124392, 127734, 124388, 124386, 117736, 124406, 117732, 117730, 104424, 117750, 104420, 104418, 112096, 121592, 126334, 92608, 111856, 121468, 92384, 111736, 121406, 92272, 111676, 92216, 111646, 92188, 75232, 103160, 117118, 93664, 74992, 103036, 93424, 112252, 102974, 93304, 74812, 93244, 74782, 93214, 129332, 75512, 103294, 129908, 129330, 93944, 75388, 129906, 93820, 75326, 93758, 127604, 75646, 128756, 127602, 94078, 128754, 124148, 126452, 124146, 126450, 117236, 121844, 117234, 121842, 103412, 103410, 91584, 111344, 121212, 91360, 111224, 121150, 91248, 111164, 91192, 111134, 91164, 91150, 74480, 102780, 91888, 74360, 102718, 91768, 111422, 91708, 74270, 91678, 129306, 74620, 129850, 92028, 74558, 91966, 127546, 128634, 124026, 126202, 116986, 121338, 102906, 90848, 110968, 121022, 90736, 110908, 90680, 110878, 90652, 90638, 74104, 102590, 91e3, 74044, 90940, 74014, 90910, 74174, 91070, 90480, 110780, 90424, 110750, 90396, 90382, 73916, 90556, 73886, 90526, 90296, 110686, 90268, 90254, 73822, 90334, 90204, 90190, 71136, 101112, 116094, 70896, 100988, 70776, 100926, 70716, 70686, 129204, 71416, 101246, 129202, 71292, 71230, 127348, 71550, 127346, 123636, 123634, 116212, 116210, 101364, 101362, 79296, 105200, 118140, 79072, 105080, 118078, 78960, 105020, 78904, 104990, 78876, 78862, 70384, 100732, 79600, 70264, 100670, 79480, 105278, 79420, 70174, 79390, 129178, 70524, 129466, 79740, 70462, 79678, 127290, 127866, 123514, 124666, 115962, 118266, 100858, 113376, 122232, 126654, 95424, 113264, 122172, 95328, 113208, 122142, 95280, 113180, 95256, 113166, 95244, 78560, 104824, 117950, 95968, 78448, 104764, 95856, 113468, 104734, 95800, 78364, 95772, 78350, 95758, 70008, 100542, 78712, 69948, 96120, 78652, 69918, 96060, 78622, 96030, 70078, 78782, 96190, 94912, 113008, 122044, 94816, 112952, 122014, 94768, 112924, 94744, 112910, 94732, 94726, 78192, 104636, 95088, 78136, 104606, 95032, 113054, 95004, 78094, 94990, 69820, 78268, 69790, 95164, 78238, 95134, 94560, 112824, 121950, 94512, 112796, 94488, 112782, 94476, 94470, 78008, 104542, 94648, 77980, 94620, 77966, 94606, 69726, 78046, 94686, 94384, 112732, 94360, 112718, 94348, 94342, 77916, 94428, 77902, 94414, 94296, 112686, 94284, 94278, 77870, 94318, 94252, 94246, 68336, 99708, 68216, 99646, 68156, 68126, 68476, 68414, 127162, 123258, 115450, 99834, 72416, 101752, 116414, 72304, 101692, 72248, 101662, 72220, 72206, 67960, 99518, 72568, 67900, 72508, 67870, 72478, 68030, 72638, 80576, 105840, 118460, 80480, 105784, 118430, 80432, 105756, 80408, 105742, 80396, 80390, 72048, 101564, 80752, 71992, 101534, 80696, 71964, 80668, 71950, 80654, 67772, 72124, 67742, 80828, 72094, 80798, 114016, 122552, 126814, 96832, 113968, 122524, 96800, 113944, 122510, 96784, 113932, 96776, 113926, 96772, 80224, 105656, 118366, 97120, 80176, 105628, 97072, 114076, 105614, 97048, 80140, 97036, 80134, 97030, 71864, 101470, 80312, 71836, 97208, 80284, 71822, 97180, 80270, 97166, 67678, 71902, 80350, 97246, 96576, 113840, 122460, 96544, 113816, 122446, 96528, 113804, 96520, 113798, 96516, 96514, 80048, 105564, 96688, 80024, 105550, 96664, 113870, 96652, 80006, 96646, 71772, 80092, 71758, 96732, 80078, 96718, 96416, 113752, 122414, 96400, 113740, 96392, 113734, 96388, 96386, 79960, 105518, 96472, 79948, 96460, 79942, 96454, 71726, 79982, 96494, 96336, 113708, 96328, 113702, 96324, 96322, 79916, 96364, 79910, 96358, 96296, 113686, 96292, 96290, 79894, 96310, 66936, 99006, 66876, 66846, 67006, 68976, 100028, 68920, 99998, 68892, 68878, 66748, 69052, 66718, 69022, 73056, 102072, 116574, 73008, 102044, 72984, 102030, 72972, 72966, 68792, 99934, 73144, 68764, 73116, 68750, 73102, 66654, 68830, 73182, 81216, 106160, 118620, 81184, 106136, 118606, 81168, 106124, 81160, 106118, 81156, 81154, 72880, 101980, 81328, 72856, 101966, 81304, 106190, 81292, 72838, 81286, 68700, 72924, 68686, 81372, 72910, 81358, 114336, 122712, 126894, 114320, 122700, 114312, 122694, 114308, 114306, 81056, 106072, 118574, 97696, 81040, 106060, 97680, 114380, 106054, 97672, 81028, 97668, 81026, 97666, 72792, 101934, 81112, 72780, 97752, 81100, 72774, 97740, 81094, 97734, 68654, 72814, 81134, 97774, 114256, 122668, 114248, 122662, 114244, 114242, 80976, 106028, 97488, 80968, 106022, 97480, 114278, 97476, 80962, 97474, 72748, 81004, 72742, 97516, 80998, 97510, 114216, 122646, 114212, 114210, 80936, 106006, 97384, 80932, 97380, 80930, 97378, 72726, 80950, 97398, 114196, 114194, 80916, 97332, 80914, 97330, 66236, 66206, 67256, 99166, 67228, 67214, 66142, 67294, 69296, 100188, 69272, 100174, 69260, 69254, 67164, 69340, 67150, 69326, 73376, 102232, 116654, 73360, 102220, 73352, 102214, 73348, 73346, 69208, 100142, 73432, 102254, 73420, 69190, 73414, 67118, 69230, 73454, 106320, 118700, 106312, 118694, 106308, 106306, 73296, 102188, 81616, 106348, 102182, 81608, 73284, 81604, 73282, 81602, 69164, 73324, 69158, 81644, 73318, 81638, 122792, 126934, 122788, 122786, 106280, 118678, 114536, 106276, 114532, 106274, 114530, 73256, 102166, 81512, 73252, 98024, 81508, 73250, 98020, 81506, 98018, 69142, 73270, 81526, 98038, 122772, 122770, 106260, 114484, 106258, 114482, 73236, 81460, 73234, 97908, 81458, 97906, 122762, 106250, 114458, 73226, 81434, 97850, 66396, 66382, 67416, 99246, 67404, 67398, 66350, 67438, 69456, 100268, 69448, 100262, 69444, 69442, 67372, 69484, 67366, 69478, 102312, 116694, 102308, 102306, 69416, 100246, 73576, 102326, 73572, 69410, 73570, 67350, 69430, 73590, 118740, 118738, 102292, 106420, 102290, 106418, 69396, 73524, 69394, 81780, 73522, 81778, 118730, 102282, 106394, 69386, 73498, 81722, 66476, 66470, 67496, 99286, 67492, 67490, 66454, 67510, 100308, 100306, 67476, 69556, 67474, 69554, 116714 ]) ]); - $1.raps = $a([ $a([ 802, 930, 946, 818, 882, 890, 826, 954, 922, 986, 970, 906, 778, 794, 786, 914, 978, 982, 980, 916, 948, 932, 934, 942, 940, 936, 808, 812, 814, 806, 822, 950, 918, 790, 788, 820, 884, 868, 870, 878, 876, 872, 840, 856, 860, 862, 846, 844, 836, 838, 834, 866 ]), $a([ 718, 590, 622, 558, 550, 566, 534, 530, 538, 570, 562, 546, 610, 626, 634, 762, 754, 758, 630, 628, 612, 614, 582, 578, 706, 738, 742, 740, 748, 620, 556, 552, 616, 744, 712, 716, 708, 710, 646, 654, 652, 668, 664, 696, 688, 656, 720, 592, 600, 604, 732, 734 ]) ]); + var _EU = $k[--$j]; //#16701 + var _EV = $k[--$j]; //#16701 + $k[$j++] = _EV; //#16705 + $k[$j++] = _EU; //#16705 + if ((_EU != 0) && (_EV != 0)) { //#16704 + var _EY = $get($1.rslog, $k[--$j]); //#16702 + var _Ed = $get($1.rsalog, $f(_EY + $get($1.rslog, $k[--$j])) % 928); //#16702 + $k[$j++] = _Ed; //#16702 + } else { //#16704 + $j -= 2; //#16704 + $k[$j++] = 0; //#16704 + } //#16704 + }; //#16706 + $k[$j++] = Infinity; //#16709 + $k[$j++] = 1; //#16709 + for (var _Ef = 0, _Eg = $1.k; _Ef < _Eg; _Ef++) { //#16709 + $k[$j++] = 0; //#16709 + } //#16709 + $1.coeffs = $a(); //#16709 + for (var _Ek = 1, _Ej = $1.k; _Ek <= _Ej; _Ek += 1) { //#16718 + $1.i = _Ek; //#16711 + $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); //#16712 + for (var _Er = $1.i - 1; _Er >= 1; _Er -= 1) { //#16716 + $1.j = _Er; //#16714 + $k[$j++] = $1.coeffs; //#16715 + $k[$j++] = $1.j; //#16715 + $k[$j++] = $get($1.coeffs, $1.j - 1); //#16715 + $k[$j++] = $get($1.coeffs, $1.j); //#16715 + $k[$j++] = $get($1.rsalog, $1.i); //#16715 + $1.rsprod(); //#16715 + var _F3 = $k[--$j]; //#16715 + var _F4 = $k[--$j]; //#16715 + var _F5 = $k[--$j]; //#16715 + $put($k[--$j], _F5, $f(_F4 + _F3) % 929); //#16715 + } //#16715 + $k[$j++] = $1.coeffs; //#16717 + $k[$j++] = 0; //#16717 + $k[$j++] = $get($1.coeffs, 0); //#16717 + $k[$j++] = $get($1.rsalog, $1.i); //#16717 + $1.rsprod(); //#16717 + var _FD = $k[--$j]; //#16717 + var _FE = $k[--$j]; //#16717 + $put($k[--$j], _FE, _FD); //#16717 + } //#16717 + $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); //#16719 + for (var _FK = $1.coeffs.length - 1; _FK >= 0; _FK -= 2) { //#16720 + var _FL = $1.coeffs; //#16720 + $put(_FL, _FK, $f(929 - $get(_FL, _FK))); //#16720 + } //#16720 + for (var _FP = 0, _FO = $f($1.n - 1); _FP <= _FO; _FP += 1) { //#16729 + $1.t = $f($get($1.cws, _FP) + $get($1.cws, $1.n)) % 929; //#16724 + for (var _FX = 0, _FW = $f($1.k - 1); _FX <= _FW; _FX += 1) { //#16728 + $1.j = _FX; //#16726 + $put($1.cws, $f($1.n + $1.j), ($f($get($1.cws, $f($f($1.n + $1.j) + 1)) + ($f(929 - (($1.t * $get($1.coeffs, $f($f($1.k - $1.j) - 1))) % 929))))) % 929); //#16727 + } //#16727 + } //#16727 + for (var _Fo = $1.n, _Fn = $f($1.n + $1.k); _Fo <= _Fn; _Fo += 1) { //#16730 + $put($1.cws, _Fo, $f(929 - $get($1.cws, _Fo)) % 929); //#16730 + } //#16730 + $1.cws = $geti($1.cws, 0, $1.cws.length - 1); //#16733 + $1.clusters = $a([$a([120256, 125680, 128380, 120032, 125560, 128318, 108736, 119920, 108640, 86080, 108592, 86048, 110016, 120560, 125820, 109792, 120440, 125758, 88256, 109680, 88160, 89536, 110320, 120700, 89312, 110200, 120638, 89200, 110140, 89840, 110460, 89720, 110398, 89980, 128506, 119520, 125304, 128190, 107712, 119408, 125244, 107616, 119352, 84032, 107568, 119324, 84000, 107544, 83984, 108256, 119672, 125374, 85184, 108144, 119612, 85088, 108088, 119582, 85040, 108060, 85728, 108408, 119742, 85616, 108348, 85560, 108318, 85880, 108478, 85820, 85790, 107200, 119152, 125116, 107104, 119096, 125086, 83008, 107056, 119068, 82976, 107032, 82960, 82952, 83648, 107376, 119228, 83552, 107320, 119198, 83504, 107292, 83480, 83468, 83824, 107452, 83768, 107422, 83740, 83900, 106848, 118968, 125022, 82496, 106800, 118940, 82464, 106776, 118926, 82448, 106764, 82440, 106758, 82784, 106936, 119006, 82736, 106908, 82712, 106894, 82700, 82694, 106974, 82830, 82240, 106672, 118876, 82208, 106648, 118862, 82192, 106636, 82184, 106630, 82180, 82352, 82328, 82316, 82080, 118830, 106572, 106566, 82050, 117472, 124280, 127678, 103616, 117360, 124220, 103520, 117304, 124190, 75840, 103472, 75808, 104160, 117624, 124350, 76992, 104048, 117564, 76896, 103992, 76848, 76824, 77536, 104312, 117694, 77424, 104252, 77368, 77340, 77688, 104382, 77628, 77758, 121536, 126320, 128700, 121440, 126264, 128670, 111680, 121392, 126236, 111648, 121368, 126222, 111632, 121356, 103104, 117104, 124092, 112320, 103008, 117048, 124062, 112224, 121656, 126366, 93248, 74784, 102936, 117006, 93216, 112152, 93200, 75456, 103280, 117180, 93888, 75360, 103224, 117150, 93792, 112440, 121758, 93744, 75288, 93720, 75632, 103356, 94064, 75576, 103326, 94008, 112542, 93980, 75708, 94140, 75678, 94110, 121184, 126136, 128606, 111168, 121136, 126108, 111136, 121112, 126094, 111120, 121100, 111112, 111108, 102752, 116920, 123998, 111456, 102704, 116892, 91712, 74272, 121244, 116878, 91680, 74256, 102668, 91664, 111372, 102662, 74244, 74592, 102840, 116958, 92000, 74544, 102812, 91952, 111516, 102798, 91928, 74508, 74502, 74680, 102878, 92088, 74652, 92060, 74638, 92046, 92126, 110912, 121008, 126044, 110880, 120984, 126030, 110864, 120972, 110856, 120966, 110852, 110850, 74048, 102576, 116828, 90944, 74016, 102552, 116814, 90912, 111000, 121038, 90896, 73992, 102534, 90888, 110982, 90884, 74160, 102620, 91056, 74136, 102606, 91032, 111054, 91020, 74118, 91014, 91100, 91086, 110752, 120920, 125998, 110736, 120908, 110728, 120902, 110724, 110722, 73888, 102488, 116782, 90528, 73872, 102476, 90512, 110796, 102470, 90504, 73860, 90500, 73858, 73944, 90584, 90572, 90566, 120876, 120870, 110658, 102444, 73800, 90312, 90308, 90306, 101056, 116080, 123580, 100960, 116024, 70720, 100912, 115996, 70688, 100888, 70672, 70664, 71360, 101232, 116156, 71264, 101176, 116126, 71216, 101148, 71192, 71180, 71536, 101308, 71480, 101278, 71452, 71612, 71582, 118112, 124600, 127838, 105024, 118064, 124572, 104992, 118040, 124558, 104976, 118028, 104968, 118022, 100704, 115896, 123486, 105312, 100656, 115868, 79424, 70176, 118172, 115854, 79392, 105240, 100620, 79376, 70152, 79368, 70496, 100792, 115934, 79712, 70448, 118238, 79664, 105372, 100750, 79640, 70412, 79628, 70584, 100830, 79800, 70556, 79772, 70542, 70622, 79838, 122176, 126640, 128860, 122144, 126616, 128846, 122128, 126604, 122120, 126598, 122116, 104768, 117936, 124508, 113472, 104736, 126684, 124494, 113440, 122264, 126670, 113424, 104712, 117894, 113416, 122246, 104706, 69952, 100528, 115804, 78656, 69920, 100504, 115790, 96064, 78624, 104856, 117966, 96032, 113560, 122318, 100486, 96016, 78600, 104838, 96008, 69890, 70064, 100572, 78768, 70040, 100558, 96176, 78744, 104910, 96152, 113614, 70022, 78726, 70108, 78812, 70094, 96220, 78798, 122016, 126552, 128814, 122000, 126540, 121992, 126534, 121988, 121986, 104608, 117848, 124462, 113056, 104592, 126574, 113040, 122060, 117830, 113032, 104580, 113028, 104578, 113026, 69792, 100440, 115758, 78240, 69776, 100428, 95136, 78224, 104652, 100422, 95120, 113100, 69764, 95112, 78212, 69762, 78210, 69848, 100462, 78296, 69836, 95192, 78284, 69830, 95180, 78278, 69870, 95214, 121936, 126508, 121928, 126502, 121924, 121922, 104528, 117804, 112848, 104520, 117798, 112840, 121958, 112836, 104514, 112834, 69712, 100396, 78032, 69704, 100390, 94672, 78024, 104550, 94664, 112870, 69698, 94660, 78018, 94658, 78060, 94700, 94694, 126486, 121890, 117782, 104484, 104482, 69672, 77928, 94440, 69666, 77922, 99680, 68160, 99632, 68128, 99608, 115342, 68112, 99596, 68104, 99590, 68448, 99768, 115422, 68400, 99740, 68376, 99726, 68364, 68358, 68536, 99806, 68508, 68494, 68574, 101696, 116400, 123740, 101664, 116376, 101648, 116364, 101640, 116358, 101636, 67904, 99504, 115292, 72512, 67872, 116444, 115278, 72480, 101784, 116430, 72464, 67848, 99462, 72456, 101766, 67842, 68016, 99548, 72624, 67992, 99534, 72600, 101838, 72588, 67974, 68060, 72668, 68046, 72654, 118432, 124760, 127918, 118416, 124748, 118408, 124742, 118404, 118402, 101536, 116312, 105888, 101520, 116300, 105872, 118476, 116294, 105864, 101508, 105860, 101506, 105858, 67744, 99416, 72096, 67728, 116334, 80800, 72080, 101580, 99398, 80784, 105932, 67716, 80776, 72068, 67714, 72066, 67800, 99438, 72152, 67788, 80856, 72140, 67782, 80844, 72134, 67822, 72174, 80878, 126800, 128940, 126792, 128934, 126788, 126786, 118352, 124716, 122576, 126828, 124710, 122568, 126822, 122564, 118338, 122562, 101456, 116268, 105680, 101448, 116262, 114128, 105672, 118374, 114120, 122598, 101442, 114116, 105666, 114114, 67664, 99372, 71888, 67656, 99366, 80336, 71880, 101478, 97232, 80328, 105702, 67650, 97224, 114150, 71874, 97220, 67692, 71916, 67686, 80364, 71910, 97260, 80358, 97254, 126760, 128918, 126756, 126754, 118312, 124694, 122472, 126774, 122468, 118306, 122466, 101416, 116246, 105576, 101412, 113896, 105572, 101410, 113892, 105570, 113890, 67624, 99350, 71784, 101430, 80104, 71780, 67618, 96744, 80100, 71778, 96740, 80098, 96738, 71798, 96758, 126738, 122420, 122418, 105524, 113780, 113778, 71732, 79988, 96500, 96498, 66880, 66848, 98968, 66832, 66824, 66820, 66992, 66968, 66956, 66950, 67036, 67022, 100000, 99984, 115532, 99976, 115526, 99972, 99970, 66720, 98904, 69024, 100056, 98892, 69008, 100044, 69000, 100038, 68996, 66690, 68994, 66776, 98926, 69080, 100078, 69068, 66758, 69062, 66798, 69102, 116560, 116552, 116548, 116546, 99920, 102096, 116588, 115494, 102088, 116582, 102084, 99906, 102082, 66640, 68816, 66632, 98854, 73168, 68808, 66628, 73160, 68804, 66626, 73156, 68802, 66668, 68844, 66662, 73196, 68838, 73190, 124840, 124836, 124834, 116520, 118632, 124854, 118628, 116514, 118626, 99880, 115478, 101992, 116534, 106216, 101988, 99874, 106212, 101986, 106210, 66600, 98838, 68712, 99894, 72936, 68708, 66594, 81384, 72932, 68706, 81380, 72930, 66614, 68726, 72950, 81398, 128980, 128978, 124820, 126900, 124818, 126898, 116500, 118580, 116498, 122740, 118578, 122738, 99860, 101940, 99858, 106100, 101938, 114420]), $a([128352, 129720, 125504, 128304, 129692, 125472, 128280, 129678, 125456, 128268, 125448, 128262, 125444, 125792, 128440, 129758, 120384, 125744, 128412, 120352, 125720, 128398, 120336, 125708, 120328, 125702, 120324, 120672, 125880, 128478, 110144, 120624, 125852, 110112, 120600, 125838, 110096, 120588, 110088, 120582, 110084, 110432, 120760, 125918, 89664, 110384, 120732, 89632, 110360, 120718, 89616, 110348, 89608, 110342, 89952, 110520, 120798, 89904, 110492, 89880, 110478, 89868, 90040, 110558, 90012, 89998, 125248, 128176, 129628, 125216, 128152, 129614, 125200, 128140, 125192, 128134, 125188, 125186, 119616, 125360, 128220, 119584, 125336, 128206, 119568, 125324, 119560, 125318, 119556, 119554, 108352, 119728, 125404, 108320, 119704, 125390, 108304, 119692, 108296, 119686, 108292, 108290, 85824, 108464, 119772, 85792, 108440, 119758, 85776, 108428, 85768, 108422, 85764, 85936, 108508, 85912, 108494, 85900, 85894, 85980, 85966, 125088, 128088, 129582, 125072, 128076, 125064, 128070, 125060, 125058, 119200, 125144, 128110, 119184, 125132, 119176, 125126, 119172, 119170, 107424, 119256, 125166, 107408, 119244, 107400, 119238, 107396, 107394, 83872, 107480, 119278, 83856, 107468, 83848, 107462, 83844, 83842, 83928, 107502, 83916, 83910, 83950, 125008, 128044, 125000, 128038, 124996, 124994, 118992, 125036, 118984, 125030, 118980, 118978, 106960, 119020, 106952, 119014, 106948, 106946, 82896, 106988, 82888, 106982, 82884, 82882, 82924, 82918, 124968, 128022, 124964, 124962, 118888, 124982, 118884, 118882, 106728, 118902, 106724, 106722, 82408, 106742, 82404, 82402, 124948, 124946, 118836, 118834, 106612, 106610, 124224, 127664, 129372, 124192, 127640, 129358, 124176, 127628, 124168, 127622, 124164, 124162, 117568, 124336, 127708, 117536, 124312, 127694, 117520, 124300, 117512, 124294, 117508, 117506, 104256, 117680, 124380, 104224, 117656, 124366, 104208, 117644, 104200, 117638, 104196, 104194, 77632, 104368, 117724, 77600, 104344, 117710, 77584, 104332, 77576, 104326, 77572, 77744, 104412, 77720, 104398, 77708, 77702, 77788, 77774, 128672, 129880, 93168, 128656, 129868, 92664, 128648, 129862, 92412, 128644, 128642, 124064, 127576, 129326, 126368, 124048, 129902, 126352, 128716, 127558, 126344, 124036, 126340, 124034, 126338, 117152, 124120, 127598, 121760, 117136, 124108, 121744, 126412, 124102, 121736, 117124, 121732, 117122, 121730, 103328, 117208, 124142, 112544, 103312, 117196, 112528, 121804, 117190, 112520, 103300, 112516, 103298, 112514, 75680, 103384, 117230, 94112, 75664, 103372, 94096, 112588, 103366, 94088, 75652, 94084, 75650, 75736, 103406, 94168, 75724, 94156, 75718, 94150, 75758, 128592, 129836, 91640, 128584, 129830, 91388, 128580, 91262, 128578, 123984, 127532, 126160, 123976, 127526, 126152, 128614, 126148, 123970, 126146, 116944, 124012, 121296, 116936, 124006, 121288, 126182, 121284, 116930, 121282, 102864, 116972, 111568, 102856, 116966, 111560, 121318, 111556, 102850, 111554, 74704, 102892, 92112, 74696, 102886, 92104, 111590, 92100, 74690, 92098, 74732, 92140, 74726, 92134, 128552, 129814, 90876, 128548, 90750, 128546, 123944, 127510, 126056, 128566, 126052, 123938, 126050, 116840, 123958, 121064, 116836, 121060, 116834, 121058, 102632, 116854, 111080, 121078, 111076, 102626, 111074, 74216, 102646, 91112, 74212, 91108, 74210, 91106, 74230, 91126, 128532, 90494, 128530, 123924, 126004, 123922, 126002, 116788, 120948, 116786, 120946, 102516, 110836, 102514, 110834, 73972, 90612, 73970, 90610, 128522, 123914, 125978, 116762, 120890, 102458, 110714, 123552, 127320, 129198, 123536, 127308, 123528, 127302, 123524, 123522, 116128, 123608, 127342, 116112, 123596, 116104, 123590, 116100, 116098, 101280, 116184, 123630, 101264, 116172, 101256, 116166, 101252, 101250, 71584, 101336, 116206, 71568, 101324, 71560, 101318, 71556, 71554, 71640, 101358, 71628, 71622, 71662, 127824, 129452, 79352, 127816, 129446, 79100, 127812, 78974, 127810, 123472, 127276, 124624, 123464, 127270, 124616, 127846, 124612, 123458, 124610, 115920, 123500, 118224, 115912, 123494, 118216, 124646, 118212, 115906, 118210, 100816, 115948, 105424, 100808, 115942, 105416, 118246, 105412, 100802, 105410, 70608, 100844, 79824, 70600, 100838, 79816, 105446, 79812, 70594, 79810, 70636, 79852, 70630, 79846, 129960, 95728, 113404, 129956, 95480, 113278, 129954, 95356, 95294, 127784, 129430, 78588, 128872, 129974, 95996, 78462, 128868, 127778, 95870, 128866, 123432, 127254, 124520, 123428, 126696, 128886, 123426, 126692, 124514, 126690, 115816, 123446, 117992, 115812, 122344, 117988, 115810, 122340, 117986, 122338, 100584, 115830, 104936, 100580, 113640, 104932, 100578, 113636, 104930, 113634, 70120, 100598, 78824, 70116, 96232, 78820, 70114, 96228, 78818, 96226, 70134, 78838, 129940, 94968, 113022, 129938, 94844, 94782, 127764, 78206, 128820, 127762, 95102, 128818, 123412, 124468, 123410, 126580, 124466, 126578, 115764, 117876, 115762, 122100, 117874, 122098, 100468, 104692, 100466, 113140, 104690, 113138, 69876, 78324, 69874, 95220, 78322, 95218, 129930, 94588, 94526, 127754, 128794, 123402, 124442, 126522, 115738, 117818, 121978, 100410, 104570, 112890, 69754, 78074, 94714, 94398, 123216, 127148, 123208, 127142, 123204, 123202, 115408, 123244, 115400, 123238, 115396, 115394, 99792, 115436, 99784, 115430, 99780, 99778, 68560, 99820, 68552, 99814, 68548, 68546, 68588, 68582, 127400, 129238, 72444, 127396, 72318, 127394, 123176, 127126, 123752, 123172, 123748, 123170, 123746, 115304, 123190, 116456, 115300, 116452, 115298, 116450, 99560, 115318, 101864, 99556, 101860, 99554, 101858, 68072, 99574, 72680, 68068, 72676, 68066, 72674, 68086, 72694, 129492, 80632, 105854, 129490, 80508, 80446, 127380, 72062, 127924, 127378, 80766, 127922, 123156, 123700, 123154, 124788, 123698, 124786, 115252, 116340, 115250, 118516, 116338, 118514, 99444, 101620, 99442, 105972, 101618, 105970, 67828, 72180, 67826, 80884, 72178, 80882, 97008, 114044, 96888, 113982, 96828, 96798, 129482, 80252, 130010, 97148, 80190, 97086, 127370, 127898, 128954, 123146, 123674, 124730, 126842, 115226, 116282, 118394, 122618, 99386, 101498, 105722, 114170, 67706, 71930, 80378, 96632, 113854, 96572, 96542, 80062, 96702, 96444, 96414, 96350, 123048, 123044, 123042, 115048, 123062, 115044, 115042, 99048, 115062, 99044, 99042, 67048, 99062, 67044, 67042, 67062, 127188, 68990, 127186, 123028, 123316, 123026, 123314, 114996, 115572, 114994, 115570, 98932, 100084, 98930, 100082, 66804, 69108, 66802, 69106, 129258, 73084, 73022, 127178, 127450, 123018, 123290, 123834, 114970, 115514, 116602, 98874, 99962, 102138, 66682, 68858, 73210, 81272, 106174, 81212, 81182, 72894, 81342, 97648, 114364, 97592, 114334, 97564, 97550, 81084, 97724, 81054, 97694, 97464, 114270, 97436, 97422, 80990, 97502, 97372, 97358, 97326, 114868, 114866, 98676, 98674, 66292, 66290, 123098, 114842, 115130, 98618, 99194, 66170, 67322, 69310, 73404, 73374, 81592, 106334, 81564, 81550, 73310, 81630, 97968, 114524, 97944, 114510, 97932, 97926, 81500, 98012, 81486, 97998, 97880, 114478, 97868, 97862, 81454, 97902, 97836, 97830, 69470, 73564, 73550, 81752, 106414, 81740, 81734, 73518, 81774, 81708, 81702]), $a([109536, 120312, 86976, 109040, 120060, 86496, 108792, 119934, 86256, 108668, 86136, 129744, 89056, 110072, 129736, 88560, 109820, 129732, 88312, 109694, 129730, 88188, 128464, 129772, 89592, 128456, 129766, 89340, 128452, 89214, 128450, 125904, 128492, 125896, 128486, 125892, 125890, 120784, 125932, 120776, 125926, 120772, 120770, 110544, 120812, 110536, 120806, 110532, 84928, 108016, 119548, 84448, 107768, 119422, 84208, 107644, 84088, 107582, 84028, 129640, 85488, 108284, 129636, 85240, 108158, 129634, 85116, 85054, 128232, 129654, 85756, 128228, 85630, 128226, 125416, 128246, 125412, 125410, 119784, 125430, 119780, 119778, 108520, 119798, 108516, 108514, 83424, 107256, 119166, 83184, 107132, 83064, 107070, 83004, 82974, 129588, 83704, 107390, 129586, 83580, 83518, 128116, 83838, 128114, 125172, 125170, 119284, 119282, 107508, 107506, 82672, 106876, 82552, 106814, 82492, 82462, 129562, 82812, 82750, 128058, 125050, 119034, 82296, 106686, 82236, 82206, 82366, 82108, 82078, 76736, 103920, 117500, 76256, 103672, 117374, 76016, 103548, 75896, 103486, 75836, 129384, 77296, 104188, 129380, 77048, 104062, 129378, 76924, 76862, 127720, 129398, 77564, 127716, 77438, 127714, 124392, 127734, 124388, 124386, 117736, 124406, 117732, 117730, 104424, 117750, 104420, 104418, 112096, 121592, 126334, 92608, 111856, 121468, 92384, 111736, 121406, 92272, 111676, 92216, 111646, 92188, 75232, 103160, 117118, 93664, 74992, 103036, 93424, 112252, 102974, 93304, 74812, 93244, 74782, 93214, 129332, 75512, 103294, 129908, 129330, 93944, 75388, 129906, 93820, 75326, 93758, 127604, 75646, 128756, 127602, 94078, 128754, 124148, 126452, 124146, 126450, 117236, 121844, 117234, 121842, 103412, 103410, 91584, 111344, 121212, 91360, 111224, 121150, 91248, 111164, 91192, 111134, 91164, 91150, 74480, 102780, 91888, 74360, 102718, 91768, 111422, 91708, 74270, 91678, 129306, 74620, 129850, 92028, 74558, 91966, 127546, 128634, 124026, 126202, 116986, 121338, 102906, 90848, 110968, 121022, 90736, 110908, 90680, 110878, 90652, 90638, 74104, 102590, 91000, 74044, 90940, 74014, 90910, 74174, 91070, 90480, 110780, 90424, 110750, 90396, 90382, 73916, 90556, 73886, 90526, 90296, 110686, 90268, 90254, 73822, 90334, 90204, 90190, 71136, 101112, 116094, 70896, 100988, 70776, 100926, 70716, 70686, 129204, 71416, 101246, 129202, 71292, 71230, 127348, 71550, 127346, 123636, 123634, 116212, 116210, 101364, 101362, 79296, 105200, 118140, 79072, 105080, 118078, 78960, 105020, 78904, 104990, 78876, 78862, 70384, 100732, 79600, 70264, 100670, 79480, 105278, 79420, 70174, 79390, 129178, 70524, 129466, 79740, 70462, 79678, 127290, 127866, 123514, 124666, 115962, 118266, 100858, 113376, 122232, 126654, 95424, 113264, 122172, 95328, 113208, 122142, 95280, 113180, 95256, 113166, 95244, 78560, 104824, 117950, 95968, 78448, 104764, 95856, 113468, 104734, 95800, 78364, 95772, 78350, 95758, 70008, 100542, 78712, 69948, 96120, 78652, 69918, 96060, 78622, 96030, 70078, 78782, 96190, 94912, 113008, 122044, 94816, 112952, 122014, 94768, 112924, 94744, 112910, 94732, 94726, 78192, 104636, 95088, 78136, 104606, 95032, 113054, 95004, 78094, 94990, 69820, 78268, 69790, 95164, 78238, 95134, 94560, 112824, 121950, 94512, 112796, 94488, 112782, 94476, 94470, 78008, 104542, 94648, 77980, 94620, 77966, 94606, 69726, 78046, 94686, 94384, 112732, 94360, 112718, 94348, 94342, 77916, 94428, 77902, 94414, 94296, 112686, 94284, 94278, 77870, 94318, 94252, 94246, 68336, 99708, 68216, 99646, 68156, 68126, 68476, 68414, 127162, 123258, 115450, 99834, 72416, 101752, 116414, 72304, 101692, 72248, 101662, 72220, 72206, 67960, 99518, 72568, 67900, 72508, 67870, 72478, 68030, 72638, 80576, 105840, 118460, 80480, 105784, 118430, 80432, 105756, 80408, 105742, 80396, 80390, 72048, 101564, 80752, 71992, 101534, 80696, 71964, 80668, 71950, 80654, 67772, 72124, 67742, 80828, 72094, 80798, 114016, 122552, 126814, 96832, 113968, 122524, 96800, 113944, 122510, 96784, 113932, 96776, 113926, 96772, 80224, 105656, 118366, 97120, 80176, 105628, 97072, 114076, 105614, 97048, 80140, 97036, 80134, 97030, 71864, 101470, 80312, 71836, 97208, 80284, 71822, 97180, 80270, 97166, 67678, 71902, 80350, 97246, 96576, 113840, 122460, 96544, 113816, 122446, 96528, 113804, 96520, 113798, 96516, 96514, 80048, 105564, 96688, 80024, 105550, 96664, 113870, 96652, 80006, 96646, 71772, 80092, 71758, 96732, 80078, 96718, 96416, 113752, 122414, 96400, 113740, 96392, 113734, 96388, 96386, 79960, 105518, 96472, 79948, 96460, 79942, 96454, 71726, 79982, 96494, 96336, 113708, 96328, 113702, 96324, 96322, 79916, 96364, 79910, 96358, 96296, 113686, 96292, 96290, 79894, 96310, 66936, 99006, 66876, 66846, 67006, 68976, 100028, 68920, 99998, 68892, 68878, 66748, 69052, 66718, 69022, 73056, 102072, 116574, 73008, 102044, 72984, 102030, 72972, 72966, 68792, 99934, 73144, 68764, 73116, 68750, 73102, 66654, 68830, 73182, 81216, 106160, 118620, 81184, 106136, 118606, 81168, 106124, 81160, 106118, 81156, 81154, 72880, 101980, 81328, 72856, 101966, 81304, 106190, 81292, 72838, 81286, 68700, 72924, 68686, 81372, 72910, 81358, 114336, 122712, 126894, 114320, 122700, 114312, 122694, 114308, 114306, 81056, 106072, 118574, 97696, 81040, 106060, 97680, 114380, 106054, 97672, 81028, 97668, 81026, 97666, 72792, 101934, 81112, 72780, 97752, 81100, 72774, 97740, 81094, 97734, 68654, 72814, 81134, 97774, 114256, 122668, 114248, 122662, 114244, 114242, 80976, 106028, 97488, 80968, 106022, 97480, 114278, 97476, 80962, 97474, 72748, 81004, 72742, 97516, 80998, 97510, 114216, 122646, 114212, 114210, 80936, 106006, 97384, 80932, 97380, 80930, 97378, 72726, 80950, 97398, 114196, 114194, 80916, 97332, 80914, 97330, 66236, 66206, 67256, 99166, 67228, 67214, 66142, 67294, 69296, 100188, 69272, 100174, 69260, 69254, 67164, 69340, 67150, 69326, 73376, 102232, 116654, 73360, 102220, 73352, 102214, 73348, 73346, 69208, 100142, 73432, 102254, 73420, 69190, 73414, 67118, 69230, 73454, 106320, 118700, 106312, 118694, 106308, 106306, 73296, 102188, 81616, 106348, 102182, 81608, 73284, 81604, 73282, 81602, 69164, 73324, 69158, 81644, 73318, 81638, 122792, 126934, 122788, 122786, 106280, 118678, 114536, 106276, 114532, 106274, 114530, 73256, 102166, 81512, 73252, 98024, 81508, 73250, 98020, 81506, 98018, 69142, 73270, 81526, 98038, 122772, 122770, 106260, 114484, 106258, 114482, 73236, 81460, 73234, 97908, 81458, 97906, 122762, 106250, 114458, 73226, 81434, 97850, 66396, 66382, 67416, 99246, 67404, 67398, 66350, 67438, 69456, 100268, 69448, 100262, 69444, 69442, 67372, 69484, 67366, 69478, 102312, 116694, 102308, 102306, 69416, 100246, 73576, 102326, 73572, 69410, 73570, 67350, 69430, 73590, 118740, 118738, 102292, 106420, 102290, 106418, 69396, 73524, 69394, 81780, 73522, 81778, 118730, 102282, 106394, 69386, 73498, 81722, 66476, 66470, 67496, 99286, 67492, 67490, 66454, 67510, 100308, 100306, 67476, 69556, 67474, 69554, 116714])]); //#16975 + $1.raps = $a([$a([802, 930, 946, 818, 882, 890, 826, 954, 922, 986, 970, 906, 778, 794, 786, 914, 978, 982, 980, 916, 948, 932, 934, 942, 940, 936, 808, 812, 814, 806, 822, 950, 918, 790, 788, 820, 884, 868, 870, 878, 876, 872, 840, 856, 860, 862, 846, 844, 836, 838, 834, 866]), $a([718, 590, 622, 558, 550, 566, 534, 530, 538, 570, 562, 546, 610, 626, 634, 762, 754, 758, 630, 628, 612, 614, 582, 578, 706, 738, 742, 740, 748, 620, 556, 552, 616, 744, 712, 716, 708, 710, 646, 654, 652, 668, 664, 696, 688, 656, 720, 592, 600, 604, 732, 734])]); //#16990 $1.cwtobits = function() { - var _G4 = $get($1.clusters, $k[--$j]); - $1.v = $get(_G4, $k[--$j]); - $k[$j++] = Infinity; - for (var _G7 = 0, _G8 = 17; _G7 < _G8; _G7++) { - $k[$j++] = 0; - } - var _GB = $cvrs($s(17), $1.v, 2); - for (var _GC = 0, _GD = _GB.length; _GC < _GD; _GC++) { - $k[$j++] = $get(_GB, _GC) - 48; - } - var _GF = $a(); - $k[$j++] = $geti(_GF, _GF.length - 17, 17); - }; + var _G4 = $get($1.clusters, $k[--$j]); //#16994 + $1.v = $get(_G4, $k[--$j]); //#16994 + $k[$j++] = Infinity; //#16995 + for (var _G7 = 0, _G8 = 17; _G7 < _G8; _G7++) { //#16995 + $k[$j++] = 0; //#16995 + } //#16995 + var _GB = $cvrs($s(17), $1.v, 2); //#16995 + for (var _GC = 0, _GD = _GB.length; _GC < _GD; _GC++) { //#16995 + $k[$j++] = $get(_GB, _GC) - 48; //#16995 + } //#16995 + var _GF = $a(); //#16995 + $k[$j++] = $geti(_GF, _GF.length - 17, 17); //#16996 + }; //#16997 $1.raptobits = function() { - var _GJ = $get($1.raps, $k[--$j]); - $1.v = $get(_GJ, $k[--$j]); - $k[$j++] = Infinity; - for (var _GM = 0, _GN = 10; _GM < _GN; _GM++) { - $k[$j++] = 0; - } - var _GQ = $cvrs($s(10), $1.v, 2); - for (var _GR = 0, _GS = _GQ.length; _GR < _GS; _GR++) { - $k[$j++] = $get(_GQ, _GR) - 48; - } - var _GU = $a(); - $k[$j++] = $geti(_GU, _GU.length - 10, 10); - }; - $1.rwid = $get($a([ 38, 55, 82, 99 ]), $f($1.c - 1)); - if ($1.c == 3 && $1.cca) { - $1.rwid = 72; - } - $1.pixs = $a($1.rwid * $1.r); - for (var _Gg = 0, _Gf = $f($1.r - 1); _Gg <= _Gf; _Gg += 1) { - $1.i = _Gg; - $1.clst = $f($f($1.i + $1.rapl) - 1) % 3; - $k[$j++] = $1.pixs; - $k[$j++] = $1.rwid * $1.i; - $k[$j++] = Infinity; - if ($1.c == 1) { - $k[$j++] = $f($f($1.i + $1.rapl) - 1) % 52; - $k[$j++] = 0; - $1.raptobits(); - $aload($k[--$j]); - $k[$j++] = $get($1.cws, $1.i); - $k[$j++] = $1.clst; - $1.cwtobits(); - $aload($k[--$j]); - $k[$j++] = $f($f($1.i + $1.rapr) - 1) % 52; - $k[$j++] = 0; - $1.raptobits(); - $aload($k[--$j]); - } - if ($1.c == 2) { - $k[$j++] = $f($f($1.i + $1.rapl) - 1) % 52; - $k[$j++] = 0; - $1.raptobits(); - $aload($k[--$j]); - $k[$j++] = $get($1.cws, $1.i * 2); - $k[$j++] = $1.clst; - $1.cwtobits(); - $aload($k[--$j]); - $k[$j++] = $get($1.cws, $1.i * 2 + 1); - $k[$j++] = $1.clst; - $1.cwtobits(); - $aload($k[--$j]); - $k[$j++] = $f($f($1.i + $1.rapr) - 1) % 52; - $k[$j++] = 0; - $1.raptobits(); - $aload($k[--$j]); - } - if ($1.c == 3) { - if (!$1.cca) { - $k[$j++] = $f($f($1.i + $1.rapl) - 1) % 52; - $k[$j++] = 0; - $1.raptobits(); - $aload($k[--$j]); - } - $k[$j++] = $get($1.cws, $1.i * 3); - $k[$j++] = $1.clst; - $1.cwtobits(); - $aload($k[--$j]); - $k[$j++] = $f($f($1.i + $1.rapc) - 1) % 52; - $k[$j++] = 1; - $1.raptobits(); - $aload($k[--$j]); - $k[$j++] = $get($1.cws, $1.i * 3 + 1); - $k[$j++] = $1.clst; - $1.cwtobits(); - $aload($k[--$j]); - $k[$j++] = $get($1.cws, $1.i * 3 + 2); - $k[$j++] = $1.clst; - $1.cwtobits(); - $aload($k[--$j]); - $k[$j++] = $f($f($1.i + $1.rapr) - 1) % 52; - $k[$j++] = 0; - $1.raptobits(); - $aload($k[--$j]); - } - if ($1.c == 4) { - $k[$j++] = $f($f($1.i + $1.rapl) - 1) % 52; - $k[$j++] = 0; - $1.raptobits(); - $aload($k[--$j]); - $k[$j++] = $get($1.cws, $1.i * 4); - $k[$j++] = $1.clst; - $1.cwtobits(); - $aload($k[--$j]); - $k[$j++] = $get($1.cws, $1.i * 4 + 1); - $k[$j++] = $1.clst; - $1.cwtobits(); - $aload($k[--$j]); - $k[$j++] = $f($f($1.i + $1.rapc) - 1) % 52; - $k[$j++] = 1; - $1.raptobits(); - $aload($k[--$j]); - $k[$j++] = $get($1.cws, $1.i * 4 + 2); - $k[$j++] = $1.clst; - $1.cwtobits(); - $aload($k[--$j]); - $k[$j++] = $get($1.cws, $1.i * 4 + 3); - $k[$j++] = $1.clst; - $1.cwtobits(); - $aload($k[--$j]); - $k[$j++] = $f($f($1.i + $1.rapr) - 1) % 52; - $k[$j++] = 0; - $1.raptobits(); - $aload($k[--$j]); - } - $k[$j++] = 1; - var _I9 = $a(); - var _IA = $k[--$j]; - $puti($k[--$j], _IA, _I9); - } - var _IJ = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", $1.rwid ], [ "pixy", $1.r ], [ "height", $1.r / 72 * $1.rowmult ], [ "width", $1.rwid / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _IJ; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var _GJ = $get($1.raps, $k[--$j]); //#17001 + $1.v = $get(_GJ, $k[--$j]); //#17001 + $k[$j++] = Infinity; //#17002 + for (var _GM = 0, _GN = 10; _GM < _GN; _GM++) { //#17002 + $k[$j++] = 0; //#17002 + } //#17002 + var _GQ = $cvrs($s(10), $1.v, 2); //#17002 + for (var _GR = 0, _GS = _GQ.length; _GR < _GS; _GR++) { //#17002 + $k[$j++] = $get(_GQ, _GR) - 48; //#17002 + } //#17002 + var _GU = $a(); //#17002 + $k[$j++] = $geti(_GU, _GU.length - 10, 10); //#17003 + }; //#17004 + $1.rwid = $get($a([38, 55, 82, 99]), $f($1.c - 1)); //#17007 + if (($1.c == 3) && $1.cca) { //#17008 + $1.rwid = 72; //#17008 + } //#17008 + $1.pixs = $a($1.rwid * $1.r); //#17009 + for (var _Gg = 0, _Gf = $f($1.r - 1); _Gg <= _Gf; _Gg += 1) { //#17047 + $1.i = _Gg; //#17012 + $1.clst = ($f($f($1.i + $1.rapl) - 1)) % 3; //#17013 + $k[$j++] = $1.pixs; //#17045 + $k[$j++] = $1.rwid * $1.i; //#17045 + $k[$j++] = Infinity; //#17045 + if ($1.c == 1) { //#17019 + $k[$j++] = ($f($f($1.i + $1.rapl) - 1)) % 52; //#17016 + $k[$j++] = 0; //#17016 + $1.raptobits(); //#17016 + $aload($k[--$j]); //#17016 + $k[$j++] = $get($1.cws, $1.i); //#17017 + $k[$j++] = $1.clst; //#17017 + $1.cwtobits(); //#17017 + $aload($k[--$j]); //#17017 + $k[$j++] = ($f($f($1.i + $1.rapr) - 1)) % 52; //#17018 + $k[$j++] = 0; //#17018 + $1.raptobits(); //#17018 + $aload($k[--$j]); //#17018 + } //#17018 + if ($1.c == 2) { //#17025 + $k[$j++] = ($f($f($1.i + $1.rapl) - 1)) % 52; //#17021 + $k[$j++] = 0; //#17021 + $1.raptobits(); //#17021 + $aload($k[--$j]); //#17021 + $k[$j++] = $get($1.cws, $1.i * 2); //#17022 + $k[$j++] = $1.clst; //#17022 + $1.cwtobits(); //#17022 + $aload($k[--$j]); //#17022 + $k[$j++] = $get($1.cws, ($1.i * 2) + 1); //#17023 + $k[$j++] = $1.clst; //#17023 + $1.cwtobits(); //#17023 + $aload($k[--$j]); //#17023 + $k[$j++] = ($f($f($1.i + $1.rapr) - 1)) % 52; //#17024 + $k[$j++] = 0; //#17024 + $1.raptobits(); //#17024 + $aload($k[--$j]); //#17024 + } //#17024 + if ($1.c == 3) { //#17035 + if (!$1.cca) { //#17029 + $k[$j++] = ($f($f($1.i + $1.rapl) - 1)) % 52; //#17028 + $k[$j++] = 0; //#17028 + $1.raptobits(); //#17028 + $aload($k[--$j]); //#17028 + } //#17028 + $k[$j++] = $get($1.cws, $1.i * 3); //#17030 + $k[$j++] = $1.clst; //#17030 + $1.cwtobits(); //#17030 + $aload($k[--$j]); //#17030 + $k[$j++] = ($f($f($1.i + $1.rapc) - 1)) % 52; //#17031 + $k[$j++] = 1; //#17031 + $1.raptobits(); //#17031 + $aload($k[--$j]); //#17031 + $k[$j++] = $get($1.cws, ($1.i * 3) + 1); //#17032 + $k[$j++] = $1.clst; //#17032 + $1.cwtobits(); //#17032 + $aload($k[--$j]); //#17032 + $k[$j++] = $get($1.cws, ($1.i * 3) + 2); //#17033 + $k[$j++] = $1.clst; //#17033 + $1.cwtobits(); //#17033 + $aload($k[--$j]); //#17033 + $k[$j++] = ($f($f($1.i + $1.rapr) - 1)) % 52; //#17034 + $k[$j++] = 0; //#17034 + $1.raptobits(); //#17034 + $aload($k[--$j]); //#17034 + } //#17034 + if ($1.c == 4) { //#17044 + $k[$j++] = ($f($f($1.i + $1.rapl) - 1)) % 52; //#17037 + $k[$j++] = 0; //#17037 + $1.raptobits(); //#17037 + $aload($k[--$j]); //#17037 + $k[$j++] = $get($1.cws, $1.i * 4); //#17038 + $k[$j++] = $1.clst; //#17038 + $1.cwtobits(); //#17038 + $aload($k[--$j]); //#17038 + $k[$j++] = $get($1.cws, ($1.i * 4) + 1); //#17039 + $k[$j++] = $1.clst; //#17039 + $1.cwtobits(); //#17039 + $aload($k[--$j]); //#17039 + $k[$j++] = ($f($f($1.i + $1.rapc) - 1)) % 52; //#17040 + $k[$j++] = 1; //#17040 + $1.raptobits(); //#17040 + $aload($k[--$j]); //#17040 + $k[$j++] = $get($1.cws, ($1.i * 4) + 2); //#17041 + $k[$j++] = $1.clst; //#17041 + $1.cwtobits(); //#17041 + $aload($k[--$j]); //#17041 + $k[$j++] = $get($1.cws, ($1.i * 4) + 3); //#17042 + $k[$j++] = $1.clst; //#17042 + $1.cwtobits(); //#17042 + $aload($k[--$j]); //#17042 + $k[$j++] = ($f($f($1.i + $1.rapr) - 1)) % 52; //#17043 + $k[$j++] = 0; //#17043 + $1.raptobits(); //#17043 + $aload($k[--$j]); //#17043 + } //#17043 + $k[$j++] = 1; //#17045 + var _I9 = $a(); //#17045 + var _IA = $k[--$j]; //#17046 + $puti($k[--$j], _IA, _I9); //#17046 + } //#17046 + var _IJ = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", $1.rwid], + ["pixy", $1.r], + ["height", ($1.r / 72) * $1.rowmult], + ["width", $1.rwid / 72], + ["opt", $1.options] + ]); //#17057 + $k[$j++] = _IJ; //#17060 + if (!$1.dontdraw) { //#17060 + $0.renmatrix(); //#17060 + } //#17060 }; $0.datamatrix = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.columns = 0; - $1.rows = 0; - $1.format = "square"; - $1.version = "unset"; - $1.parse = false; - $1.parsefnc = false; - $1.encoding = "auto"; - $1.mailmark = false; - $1.raw = false; - $1.dmre = false; - $1.dindmre = false; - $1.isodmre = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - if ($ne($1.version, "unset")) { - $search($1.version, "x"); - $j--; - $1.rows = $k[--$j]; - $j--; - $1.columns = $k[--$j]; - } - $1.columns = ~~$z($1.columns); - $1.rows = ~~$z($1.rows); - $1.isodmre = $1.dmre; - $k[$j++] = Infinity; - $k[$j++] = $a([ 10, 10, 1, 1, 5, 1 ]); - $k[$j++] = $a([ 12, 12, 1, 1, 7, 1 ]); - $k[$j++] = $a([ 14, 14, 1, 1, 10, 1 ]); - $k[$j++] = $a([ 16, 16, 1, 1, 12, 1 ]); - $k[$j++] = $a([ 18, 18, 1, 1, 14, 1 ]); - $k[$j++] = $a([ 20, 20, 1, 1, 18, 1 ]); - $k[$j++] = $a([ 22, 22, 1, 1, 20, 1 ]); - $k[$j++] = $a([ 24, 24, 1, 1, 24, 1 ]); - $k[$j++] = $a([ 26, 26, 1, 1, 28, 1 ]); - $k[$j++] = $a([ 32, 32, 2, 2, 36, 1 ]); - $k[$j++] = $a([ 36, 36, 2, 2, 42, 1 ]); - $k[$j++] = $a([ 40, 40, 2, 2, 48, 1 ]); - $k[$j++] = $a([ 44, 44, 2, 2, 56, 1 ]); - $k[$j++] = $a([ 48, 48, 2, 2, 68, 1 ]); - $k[$j++] = $a([ 52, 52, 2, 2, 84, 2 ]); - $k[$j++] = $a([ 64, 64, 4, 4, 112, 2 ]); - $k[$j++] = $a([ 72, 72, 4, 4, 144, 4 ]); - $k[$j++] = $a([ 80, 80, 4, 4, 192, 4 ]); - $k[$j++] = $a([ 88, 88, 4, 4, 224, 4 ]); - $k[$j++] = $a([ 96, 96, 4, 4, 272, 4 ]); - $k[$j++] = $a([ 104, 104, 4, 4, 336, 6 ]); - $k[$j++] = $a([ 120, 120, 6, 6, 408, 6 ]); - $k[$j++] = $a([ 132, 132, 6, 6, 496, 8 ]); - $k[$j++] = $a([ 144, 144, 6, 6, 620, 10 ]); - $k[$j++] = $a([ 8, 18, 1, 1, 7, 1 ]); - $k[$j++] = $a([ 8, 32, 1, 2, 11, 1 ]); - if ($1.dindmre || $1.isodmre) { - $k[$j++] = $a([ 8, 48, 1, 2, 15, 1 ]); - } - if ($1.dindmre || $1.isodmre) { - $k[$j++] = $a([ 8, 64, 1, 4, 18, 1 ]); - } - if ($1.isodmre) { - $k[$j++] = $a([ 8, 80, 1, 4, 22, 1 ]); - } - if ($1.isodmre) { - $k[$j++] = $a([ 8, 96, 1, 4, 28, 1 ]); - } - if ($1.isodmre) { - $k[$j++] = $a([ 8, 120, 1, 6, 32, 1 ]); - } - if ($1.isodmre) { - $k[$j++] = $a([ 8, 144, 1, 6, 36, 1 ]); - } - $k[$j++] = $a([ 12, 26, 1, 1, 14, 1 ]); - $k[$j++] = $a([ 12, 36, 1, 2, 18, 1 ]); - if ($1.dindmre || $1.isodmre) { - $k[$j++] = $a([ 12, 64, 1, 4, 27, 1 ]); - } - if ($1.isodmre) { - $k[$j++] = $a([ 12, 88, 1, 4, 36, 1 ]); - } - $k[$j++] = $a([ 16, 36, 1, 2, 24, 1 ]); - $k[$j++] = $a([ 16, 48, 1, 2, 28, 1 ]); - if ($1.dindmre || $1.isodmre) { - $k[$j++] = $a([ 16, 64, 1, 4, 36, 1 ]); - } - if ($1.isodmre) { - $k[$j++] = $a([ 20, 36, 1, 2, 28, 1 ]); - } - if ($1.isodmre) { - $k[$j++] = $a([ 20, 44, 1, 2, 34, 1 ]); - } - if ($1.isodmre) { - $k[$j++] = $a([ 20, 64, 1, 4, 42, 1 ]); - } - if ($1.isodmre) { - $k[$j++] = $a([ 22, 48, 1, 2, 38, 1 ]); - } - if ($1.dindmre) { - $k[$j++] = $a([ 24, 32, 1, 2, 28, 1 ]); - } - if ($1.dindmre) { - $k[$j++] = $a([ 24, 36, 1, 2, 33, 1 ]); - } - if ($1.dindmre || $1.isodmre) { - $k[$j++] = $a([ 24, 48, 1, 2, 41, 1 ]); - } - if ($1.dindmre || $1.isodmre) { - $k[$j++] = $a([ 24, 64, 1, 4, 46, 1 ]); - } - if ($1.dindmre) { - $k[$j++] = $a([ 26, 32, 1, 2, 32, 1 ]); - } - if ($1.dindmre || $1.isodmre) { - $k[$j++] = $a([ 26, 40, 1, 2, 38, 1 ]); - } - if ($1.dindmre || $1.isodmre) { - $k[$j++] = $a([ 26, 48, 1, 2, 42, 1 ]); - } - if ($1.dindmre || $1.isodmre) { - $k[$j++] = $a([ 26, 64, 1, 4, 50, 1 ]); - } - $1.metrics = $a(); - $1.urows = $1.rows; - $1.ucols = $1.columns; - $1.fullcws = $a([]); - var _1Z = $1.metrics; - for (var _1a = 0, _1b = _1Z.length; _1a < _1b; _1a++) { - $1.m = $get(_1Z, _1a); - $1.rows = $get($1.m, 0); - $1.cols = $get($1.m, 1); - $1.regh = $get($1.m, 2); - $1.regv = $get($1.m, 3); - $1.rscw = $get($1.m, 4); - $1.rsbl = $get($1.m, 5); - $1.mrows = $f($1.rows - 2 * $1.regh); - $1.mcols = $f($1.cols - 2 * $1.regv); - $1.ncws = $f(~~($1.mrows * $1.mcols / 8) - $1.rscw); - $1.okay = true; - if ($1.urows != 0 && $1.urows != $1.rows) { - $1.okay = false; - } - if ($1.ucols != 0 && $1.ucols != $1.cols) { - $1.okay = false; - } - if ($eq($1.format, "square") && $ne($1.rows, $1.cols)) { - $1.okay = false; - } - if ($eq($1.format, "rectangle") && $eq($1.rows, $1.cols)) { - $1.okay = false; - } - if ($1.okay) { - $k[$j++] = Infinity; - $aload($1.fullcws); - $k[$j++] = $1.ncws; - $1.fullcws = $a(); - } - } - $k[$j++] = Infinity; - for (var _2C = 0, _2D = 1558; _2C < _2D; _2C++) { - $k[$j++] = 1e4; - } - $1.numremcws = $a(); - var _2F = $1.fullcws; - for (var _2G = 0, _2H = _2F.length; _2G < _2H; _2G++) { - $put($1.numremcws, $f($get(_2F, _2G) - 1), 1); - } - for (var _2K = 1556; _2K >= 0; _2K -= 1) { - $1.i = _2K; - if ($get($1.numremcws, $1.i) != 1) { - $put($1.numremcws, $1.i, $f($get($1.numremcws, $1.i + 1) + 1)); - } - } - if ($1.raw) { - $1.encoding = "raw"; - } - if ($eq($1.encoding, "raw")) { - $1.cws = $a($1.barcode.length); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.barcode.length) { - break; - } - $1.cw = ~~$z($geti($1.barcode, $1.i + 1, 3)); - $put($1.cws, $1.j, $1.cw); - $1.i = $1.i + 4; - $1.j = $1.j + 1; - } - $1.cws = $geti($1.cws, 0, $1.j); - } - if ($eq($1.encoding, "auto")) { - $1.fnc1 = -1; - $1.prog = -2; - $1.m05 = -3; - $1.m06 = -4; - $1.lC = -5; - $1.lB = -6; - $1.lX = -7; - $1.lT = -8; - $1.lE = -9; - $1.unl = -10; - $1.sapp = -11; - $1.usft = -12; - $1.sft1 = -13; - $1.sft2 = -14; - $1.sft3 = -15; - $1.eci = -16; - $1.pad = -17; - $1.unlcw = 254; - var _2p = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "eci", true ], [ "FNC1", $1.fnc1 ], [ "PROG", $1.prog ] ]); - $1.fncvals = _2p; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _2s = $k[--$j]; - $1[$k[--$j]] = _2s; - $1.msglen = $1.msg.length; - if ($1.msglen >= 9) { - $aload($geti($1.msg, 0, 7)); - var _2y = $k[--$j]; - var _2z = $k[--$j]; - $k[$j++] = _2y == 29; - $k[$j++] = _2z; - $j--; - var _30 = $k[--$j]; - var _31 = $k[--$j]; - var _32 = $k[--$j]; - var _33 = $k[--$j]; - var _34 = $k[--$j]; - var _35 = $k[--$j]; - if (_30 && _31 == 48 && _32 == 30 && _33 == 62 && _34 == 41 && _35 == 91) { - $aload($geti($1.msg, $1.msglen - 2, 2)); - var _39 = $k[--$j]; - var _3A = $k[--$j]; - if (_39 == 4 && _3A == 30) { - if ($get($1.msg, 5) == 53) { - $k[$j++] = Infinity; - $k[$j++] = $1.m05; - $aload($geti($1.msg, 7, $1.msg.length - 9)); - $1.msg = $a(); - } - if ($get($1.msg, 5) == 54) { - $k[$j++] = Infinity; - $k[$j++] = $1.m06; - $aload($geti($1.msg, 7, $1.msg.length - 9)); - $1.msg = $a(); - } - } - } - } - $1.msglen = $1.msg.length; - $k[$j++] = Infinity; - for (var _3Q = 0; _3Q <= 128; _3Q += 1) { - $k[$j++] = _3Q; - $k[$j++] = _3Q + 1; - } - $k[$j++] = $1.pad; - $k[$j++] = 129; - for (var _3S = 0; _3S <= 99; _3S += 1) { - var _3U = $cvrs($s(2), _3S, 10); - var _3W = $strcpy($s(2), "00"); - $puti(_3W, 2 - _3U.length, _3U); - $k[$j++] = _3W; - $k[$j++] = _3S + 130; - } - var _3j = $a([ $1.lC, $1.lB, $1.fnc1, $1.sapp, $1.prog, $1.usft, $1.m05, $1.m06, $1.lX, $1.lT, $1.lE, $1.eci ]); - $k[$j++] = 229; - for (var _3k = 0, _3l = _3j.length; _3k < _3l; _3k++) { - var _3o = $f($k[--$j] + 1); - $k[$j++] = $get(_3j, _3k); - $k[$j++] = _3o; - $k[$j++] = _3o; - } - $j--; - $1.Avals = $d(); - $k[$j++] = Infinity; - var _3q = $1.Avals; - for (var _3v = _3q.size, _3u = _3q.keys(), _3t = 0; _3t < _3v; _3t++) { - var _3r = _3u.next().value; - $k[$j++] = _3r; - $k[$j++] = Infinity; - $k[$j++] = _3q.get(_3r); - var _3y = $a(); - $k[$j++] = _3y; - } - $1.Avals = $d(); - $k[$j++] = Infinity; - $k[$j++] = $1.sft1; - $k[$j++] = 0; - $k[$j++] = $1.sft2; - $k[$j++] = 1; - $k[$j++] = $1.sft3; - $k[$j++] = 2; - $k[$j++] = 32; - $k[$j++] = 3; - for (var _43 = 48; _43 <= 57; _43 += 1) { - $k[$j++] = _43; - $k[$j++] = _43 - 44; - } - for (var _44 = 65; _44 <= 90; _44 += 1) { - $k[$j++] = _44; - $k[$j++] = _44 - 51; - } - $1.CNvals = $d(); - $k[$j++] = Infinity; - for (var _46 = 0; _46 <= 31; _46 += 1) { - $k[$j++] = _46; - $k[$j++] = _46; - } - $1.C1vals = $d(); - $k[$j++] = Infinity; - for (var _48 = 33; _48 <= 47; _48 += 1) { - $k[$j++] = _48; - $k[$j++] = _48 - 33; - } - for (var _49 = 58; _49 <= 64; _49 += 1) { - $k[$j++] = _49; - $k[$j++] = _49 - 43; - } - for (var _4A = 91; _4A <= 95; _4A += 1) { - $k[$j++] = _4A; - $k[$j++] = _4A - 69; - } - $k[$j++] = $1.fnc1; - $k[$j++] = 27; - $k[$j++] = $1.usft; - $k[$j++] = 30; - $1.C2vals = $d(); - $k[$j++] = Infinity; - for (var _4E = 96; _4E <= 127; _4E += 1) { - $k[$j++] = _4E; - $k[$j++] = _4E - 96; - } - $1.C3vals = $d(); - $k[$j++] = Infinity; - var _4G = $1.CNvals; - for (var _4L = _4G.size, _4K = _4G.keys(), _4J = 0; _4J < _4L; _4J++) { - var _4H = _4K.next().value; - $k[$j++] = _4H; - $k[$j++] = Infinity; - $k[$j++] = _4G.get(_4H); - var _4O = $a(); - $k[$j++] = _4O; - } - var _4P = $1.C1vals; - for (var _4U = _4P.size, _4T = _4P.keys(), _4S = 0; _4S < _4U; _4S++) { - var _4Q = _4T.next().value; - $k[$j++] = _4Q; - $k[$j++] = Infinity; - $k[$j++] = $get($1.CNvals, $1.sft1); - $k[$j++] = _4P.get(_4Q); - var _4a = $a(); - $k[$j++] = _4a; - } - var _4b = $1.C2vals; - for (var _4g = _4b.size, _4f = _4b.keys(), _4e = 0; _4e < _4g; _4e++) { - var _4c = _4f.next().value; - $k[$j++] = _4c; - $k[$j++] = Infinity; - $k[$j++] = $get($1.CNvals, $1.sft2); - $k[$j++] = _4b.get(_4c); - var _4m = $a(); - $k[$j++] = _4m; - } - var _4n = $1.C3vals; - for (var _4s = _4n.size, _4r = _4n.keys(), _4q = 0; _4q < _4s; _4q++) { - var _4o = _4r.next().value; - $k[$j++] = _4o; - $k[$j++] = Infinity; - $k[$j++] = $get($1.CNvals, $1.sft3); - $k[$j++] = _4n.get(_4o); - var _4y = $a(); - $k[$j++] = _4y; - } - $1.Cvals = $d(); - $k[$j++] = Infinity; - $k[$j++] = $1.sft1; - $k[$j++] = 0; - $k[$j++] = $1.sft2; - $k[$j++] = 1; - $k[$j++] = $1.sft3; - $k[$j++] = 2; - $k[$j++] = 32; - $k[$j++] = 3; - for (var _53 = 48; _53 <= 57; _53 += 1) { - $k[$j++] = _53; - $k[$j++] = _53 - 44; - } - for (var _54 = 97; _54 <= 122; _54 += 1) { - $k[$j++] = _54; - $k[$j++] = _54 - 83; - } - $1.TNvals = $d(); - $k[$j++] = Infinity; - for (var _56 = 0; _56 <= 31; _56 += 1) { - $k[$j++] = _56; - $k[$j++] = _56; - } - $1.T1vals = $d(); - $k[$j++] = Infinity; - for (var _58 = 33; _58 <= 47; _58 += 1) { - $k[$j++] = _58; - $k[$j++] = _58 - 33; - } - for (var _59 = 58; _59 <= 64; _59 += 1) { - $k[$j++] = _59; - $k[$j++] = _59 - 43; - } - for (var _5A = 91; _5A <= 95; _5A += 1) { - $k[$j++] = _5A; - $k[$j++] = _5A - 69; - } - $k[$j++] = $1.fnc1; - $k[$j++] = 27; - $k[$j++] = $1.usft; - $k[$j++] = 30; - $1.T2vals = $d(); - $k[$j++] = Infinity; - $k[$j++] = 96; - $k[$j++] = 0; - for (var _5E = 65; _5E <= 90; _5E += 1) { - $k[$j++] = _5E; - $k[$j++] = _5E - 64; - } - for (var _5F = 123; _5F <= 127; _5F += 1) { - $k[$j++] = _5F; - $k[$j++] = _5F - 96; - } - $1.T3vals = $d(); - $k[$j++] = Infinity; - var _5H = $1.TNvals; - for (var _5M = _5H.size, _5L = _5H.keys(), _5K = 0; _5K < _5M; _5K++) { - var _5I = _5L.next().value; - $k[$j++] = _5I; - $k[$j++] = Infinity; - $k[$j++] = _5H.get(_5I); - var _5P = $a(); - $k[$j++] = _5P; - } - var _5Q = $1.T1vals; - for (var _5V = _5Q.size, _5U = _5Q.keys(), _5T = 0; _5T < _5V; _5T++) { - var _5R = _5U.next().value; - $k[$j++] = _5R; - $k[$j++] = Infinity; - $k[$j++] = $get($1.TNvals, $1.sft1); - $k[$j++] = _5Q.get(_5R); - var _5b = $a(); - $k[$j++] = _5b; - } - var _5c = $1.T2vals; - for (var _5h = _5c.size, _5g = _5c.keys(), _5f = 0; _5f < _5h; _5f++) { - var _5d = _5g.next().value; - $k[$j++] = _5d; - $k[$j++] = Infinity; - $k[$j++] = $get($1.TNvals, $1.sft2); - $k[$j++] = _5c.get(_5d); - var _5n = $a(); - $k[$j++] = _5n; - } - var _5o = $1.T3vals; - for (var _5t = _5o.size, _5s = _5o.keys(), _5r = 0; _5r < _5t; _5r++) { - var _5p = _5s.next().value; - $k[$j++] = _5p; - $k[$j++] = Infinity; - $k[$j++] = $get($1.TNvals, $1.sft3); - $k[$j++] = _5o.get(_5p); - var _5z = $a(); - $k[$j++] = _5z; - } - $1.Tvals = $d(); - for (var _61 = 128; _61 <= 255; _61 += 1) { - $1.i = _61; - $k[$j++] = $1.Avals; - $k[$j++] = $1.i; - $k[$j++] = Infinity; - $aload($get($1.Avals, $1.usft)); - $aload($get($1.Avals, $1.i - 128)); - var _6A = $a(); - var _6B = $k[--$j]; - $put($k[--$j], _6B, _6A); - $k[$j++] = $1.Cvals; - $k[$j++] = $1.i; - $k[$j++] = Infinity; - $aload($get($1.Cvals, $1.usft)); - $aload($get($1.Cvals, $1.i - 128)); - var _6L = $a(); - var _6M = $k[--$j]; - $put($k[--$j], _6M, _6L); - $k[$j++] = $1.Tvals; - $k[$j++] = $1.i; - $k[$j++] = Infinity; - $aload($get($1.Tvals, $1.usft)); - $aload($get($1.Tvals, $1.i - 128)); - var _6W = $a(); - var _6X = $k[--$j]; - $put($k[--$j], _6X, _6W); - } - $k[$j++] = Infinity; - $k[$j++] = 13; - $k[$j++] = 0; - $k[$j++] = 42; - $k[$j++] = 1; - $k[$j++] = 62; - $k[$j++] = 2; - $k[$j++] = 32; - $k[$j++] = 3; - for (var _6Z = 48; _6Z <= 57; _6Z += 1) { - $k[$j++] = _6Z; - $k[$j++] = _6Z - 44; - } - for (var _6a = 65; _6a <= 90; _6a += 1) { - $k[$j++] = _6a; - $k[$j++] = _6a - 51; - } - $1.Xvals = $d(); - $k[$j++] = Infinity; - var _6c = $1.Xvals; - for (var _6h = _6c.size, _6g = _6c.keys(), _6f = 0; _6f < _6h; _6f++) { - var _6d = _6g.next().value; - $k[$j++] = _6d; - $k[$j++] = Infinity; - $k[$j++] = _6c.get(_6d); - var _6k = $a(); - $k[$j++] = _6k; - } - $1.Xvals = $d(); - $k[$j++] = Infinity; - for (var _6m = 64; _6m <= 94; _6m += 1) { - $k[$j++] = _6m; - $k[$j++] = _6m - 64; - } - $k[$j++] = $1.unl; - $k[$j++] = 31; - for (var _6o = 32; _6o <= 63; _6o += 1) { - $k[$j++] = _6o; - $k[$j++] = _6o; - } - $1.Evals = $d(); - $k[$j++] = Infinity; - var _6q = $1.Evals; - for (var _6v = _6q.size, _6u = _6q.keys(), _6t = 0; _6t < _6v; _6t++) { - var _6r = _6u.next().value; - $k[$j++] = _6r; - $k[$j++] = Infinity; - $k[$j++] = _6q.get(_6r); - var _6y = $a(); - $k[$j++] = _6y; - } - $1.Evals = $d(); - $k[$j++] = Infinity; - for (var _70 = 0; _70 <= 255; _70 += 1) { - $k[$j++] = _70; - $k[$j++] = _70; - } - $1.Bvals = $d(); - $k[$j++] = Infinity; - var _72 = $1.Bvals; - for (var _77 = _72.size, _76 = _72.keys(), _75 = 0; _75 < _77; _75++) { - var _73 = _76.next().value; - $k[$j++] = _73; - $k[$j++] = Infinity; - $k[$j++] = _72.get(_73); - var _7A = $a(); - $k[$j++] = _7A; - } - $1.Bvals = $d(); - $1.encvals = $a([ $1.Avals, $1.Cvals, $1.Tvals, $1.Xvals, $1.Evals, $1.Bvals ]); - $k[$j++] = Infinity; - for (var _7K = 0, _7L = $1.msglen; _7K < _7L; _7K++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numD = $a(); - $k[$j++] = Infinity; - for (var _7O = 0, _7P = $1.msglen; _7O < _7P; _7O++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextXterm = $a(); - $k[$j++] = Infinity; - for (var _7S = 0, _7T = $1.msglen; _7S < _7T; _7S++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextNonX = $a(); - $k[$j++] = Infinity; - for (var _7W = 0, _7X = $1.msglen; _7W < _7X; _7W++) { - $k[$j++] = false; - } - $k[$j++] = false; - $1.isECI = $a(); - for (var _7a = $1.msglen - 1; _7a >= 0; _7a -= 1) { - $1.i = _7a; - $1.barchar = $get($1.msg, $1.i); - if ($1.barchar >= 48 && $1.barchar <= 57) { - $put($1.numD, $1.i, $f($get($1.numD, $1.i + 1) + 1)); - } - if ($1.barchar == 13 || $1.barchar == 42 || $1.barchar == 62) { - $put($1.nextXterm, $1.i, 0); - } else { - $put($1.nextXterm, $1.i, $f($get($1.nextXterm, $1.i + 1) + 1)); - } - var _7x = $get($1.Xvals, $1.barchar) !== undefined; - if (!_7x) { - $put($1.nextNonX, $1.i, 0); - } else { - $put($1.nextNonX, $1.i, $f($get($1.nextNonX, $1.i + 1) + 1)); - } - $put($1.isECI, $1.i, $1.barchar <= -1e6); - } - $k[$j++] = Infinity; - var _88 = $1.nextXterm; - for (var _89 = 0, _8A = _88.length; _89 < _8A; _89++) { - var _8B = $get(_88, _89); - $k[$j++] = _8B; - if (_8B > 1e4) { - $j--; - $k[$j++] = 1e4; - } - } - $1.nextXterm = $a(); - $k[$j++] = Infinity; - var _8D = $1.nextNonX; - for (var _8E = 0, _8F = _8D.length; _8E < _8F; _8E++) { - var _8G = $get(_8D, _8E); - $k[$j++] = _8G; - if (_8G > 1e4) { - $j--; - $k[$j++] = 1e4; - } - } - $1.nextNonX = $a(); + var $1 = {}; //#17090 + $1.options = $k[--$j]; //#17092 + $1.barcode = $k[--$j]; //#17093 + $1.dontdraw = false; //#17095 + $1.columns = 0; //#17096 + $1.rows = 0; //#17097 + $1.format = "square"; //#17098 + $1.version = "unset"; //#17099 + $1.parse = false; //#17100 + $1.parsefnc = false; //#17101 + $1.encoding = "auto"; //#17102 + $1.mailmark = false; //#17103 + $1.raw = false; //#17104 + $1.dmre = false; //#17105 + $1.dindmre = false; //#17106 + $1.isodmre = false; //#17107 + $forall($1.options, function() { //#17118 + var _3 = $k[--$j]; //#17118 + $1[$k[--$j]] = _3; //#17118 + }); //#17118 + if ($ne($1.version, "unset")) { //#17124 + $search($1.version, "x"); //#17121 + $j--; //#17122 + $1.rows = $k[--$j]; //#17122 + $j--; //#17123 + $1.columns = $k[--$j]; //#17123 + } //#17123 + $1.columns = ~~$z($1.columns); //#17126 + $1.rows = ~~$z($1.rows); //#17127 + $1.isodmre = $1.dmre; //#17129 + $k[$j++] = Infinity; //#17186 + $k[$j++] = $a([10, 10, 1, 1, 5, 1]); //#17162 + $k[$j++] = $a([12, 12, 1, 1, 7, 1]); //#17162 + $k[$j++] = $a([14, 14, 1, 1, 10, 1]); //#17162 + $k[$j++] = $a([16, 16, 1, 1, 12, 1]); //#17162 + $k[$j++] = $a([18, 18, 1, 1, 14, 1]); //#17162 + $k[$j++] = $a([20, 20, 1, 1, 18, 1]); //#17162 + $k[$j++] = $a([22, 22, 1, 1, 20, 1]); //#17162 + $k[$j++] = $a([24, 24, 1, 1, 24, 1]); //#17162 + $k[$j++] = $a([26, 26, 1, 1, 28, 1]); //#17162 + $k[$j++] = $a([32, 32, 2, 2, 36, 1]); //#17162 + $k[$j++] = $a([36, 36, 2, 2, 42, 1]); //#17162 + $k[$j++] = $a([40, 40, 2, 2, 48, 1]); //#17162 + $k[$j++] = $a([44, 44, 2, 2, 56, 1]); //#17162 + $k[$j++] = $a([48, 48, 2, 2, 68, 1]); //#17162 + $k[$j++] = $a([52, 52, 2, 2, 84, 2]); //#17162 + $k[$j++] = $a([64, 64, 4, 4, 112, 2]); //#17162 + $k[$j++] = $a([72, 72, 4, 4, 144, 4]); //#17162 + $k[$j++] = $a([80, 80, 4, 4, 192, 4]); //#17162 + $k[$j++] = $a([88, 88, 4, 4, 224, 4]); //#17162 + $k[$j++] = $a([96, 96, 4, 4, 272, 4]); //#17162 + $k[$j++] = $a([104, 104, 4, 4, 336, 6]); //#17162 + $k[$j++] = $a([120, 120, 6, 6, 408, 6]); //#17162 + $k[$j++] = $a([132, 132, 6, 6, 496, 8]); //#17162 + $k[$j++] = $a([144, 144, 6, 6, 620, 10]); //#17162 + $k[$j++] = $a([8, 18, 1, 1, 7, 1]); //#17162 + $k[$j++] = $a([8, 32, 1, 2, 11, 1]); //#17162 + if ($1.dindmre || $1.isodmre) { //#17162 + $k[$j++] = $a([8, 48, 1, 2, 15, 1]); //#17162 + } //#17162 + if ($1.dindmre || $1.isodmre) { //#17163 + $k[$j++] = $a([8, 64, 1, 4, 18, 1]); //#17163 + } //#17163 + if ($1.isodmre) { //#17164 + $k[$j++] = $a([8, 80, 1, 4, 22, 1]); //#17164 + } //#17164 + if ($1.isodmre) { //#17165 + $k[$j++] = $a([8, 96, 1, 4, 28, 1]); //#17165 + } //#17165 + if ($1.isodmre) { //#17166 + $k[$j++] = $a([8, 120, 1, 6, 32, 1]); //#17166 + } //#17166 + if ($1.isodmre) { //#17167 + $k[$j++] = $a([8, 144, 1, 6, 36, 1]); //#17167 + } //#17167 + $k[$j++] = $a([12, 26, 1, 1, 14, 1]); //#17170 + $k[$j++] = $a([12, 36, 1, 2, 18, 1]); //#17170 + if ($1.dindmre || $1.isodmre) { //#17170 + $k[$j++] = $a([12, 64, 1, 4, 27, 1]); //#17170 + } //#17170 + if ($1.isodmre) { //#17171 + $k[$j++] = $a([12, 88, 1, 4, 36, 1]); //#17171 + } //#17171 + $k[$j++] = $a([16, 36, 1, 2, 24, 1]); //#17174 + $k[$j++] = $a([16, 48, 1, 2, 28, 1]); //#17174 + if ($1.dindmre || $1.isodmre) { //#17174 + $k[$j++] = $a([16, 64, 1, 4, 36, 1]); //#17174 + } //#17174 + if ($1.isodmre) { //#17175 + $k[$j++] = $a([20, 36, 1, 2, 28, 1]); //#17175 + } //#17175 + if ($1.isodmre) { //#17176 + $k[$j++] = $a([20, 44, 1, 2, 34, 1]); //#17176 + } //#17176 + if ($1.isodmre) { //#17177 + $k[$j++] = $a([20, 64, 1, 4, 42, 1]); //#17177 + } //#17177 + if ($1.isodmre) { //#17178 + $k[$j++] = $a([22, 48, 1, 2, 38, 1]); //#17178 + } //#17178 + if ($1.dindmre) { //#17179 + $k[$j++] = $a([24, 32, 1, 2, 28, 1]); //#17179 + } //#17179 + if ($1.dindmre) { //#17180 + $k[$j++] = $a([24, 36, 1, 2, 33, 1]); //#17180 + } //#17180 + if ($1.dindmre || $1.isodmre) { //#17181 + $k[$j++] = $a([24, 48, 1, 2, 41, 1]); //#17181 + } //#17181 + if ($1.dindmre || $1.isodmre) { //#17182 + $k[$j++] = $a([24, 64, 1, 4, 46, 1]); //#17182 + } //#17182 + if ($1.dindmre) { //#17183 + $k[$j++] = $a([26, 32, 1, 2, 32, 1]); //#17183 + } //#17183 + if ($1.dindmre || $1.isodmre) { //#17184 + $k[$j++] = $a([26, 40, 1, 2, 38, 1]); //#17184 + } //#17184 + if ($1.dindmre || $1.isodmre) { //#17185 + $k[$j++] = $a([26, 48, 1, 2, 42, 1]); //#17185 + } //#17185 + if ($1.dindmre || $1.isodmre) { //#17186 + $k[$j++] = $a([26, 64, 1, 4, 50, 1]); //#17186 + } //#17186 + $1.metrics = $a(); //#17186 + $1.urows = $1.rows; //#17190 + $1.ucols = $1.columns; //#17191 + $1.fullcws = $a([]); //#17192 + var _1Z = $1.metrics; //#17193 + for (var _1a = 0, _1b = _1Z.length; _1a < _1b; _1a++) { //#17210 + $1.m = $get(_1Z, _1a); //#17194 + $1.rows = $get($1.m, 0); //#17195 + $1.cols = $get($1.m, 1); //#17196 + $1.regh = $get($1.m, 2); //#17197 + $1.regv = $get($1.m, 3); //#17198 + $1.rscw = $get($1.m, 4); //#17199 + $1.rsbl = $get($1.m, 5); //#17200 + $1.mrows = $f($1.rows - (2 * $1.regh)); //#17201 + $1.mcols = $f($1.cols - (2 * $1.regv)); //#17202 + $1.ncws = $f((~~(($1.mrows * $1.mcols) / 8)) - $1.rscw); //#17203 + $1.okay = true; //#17204 + if (($1.urows != 0) && ($1.urows != $1.rows)) { //#17205 + $1.okay = false; //#17205 + } //#17205 + if (($1.ucols != 0) && ($1.ucols != $1.cols)) { //#17206 + $1.okay = false; //#17206 + } //#17206 + if ($eq($1.format, "square") && $ne($1.rows, $1.cols)) { //#17207 + $1.okay = false; //#17207 + } //#17207 + if ($eq($1.format, "rectangle") && $eq($1.rows, $1.cols)) { //#17208 + $1.okay = false; //#17208 + } //#17208 + if ($1.okay) { //#17209 + $k[$j++] = Infinity; //#17209 + $aload($1.fullcws); //#17209 + $k[$j++] = $1.ncws; //#17209 + $1.fullcws = $a(); //#17209 + } //#17209 + } //#17209 + $k[$j++] = Infinity; //#17211 + for (var _2C = 0, _2D = 1558; _2C < _2D; _2C++) { //#17211 + $k[$j++] = 10000; //#17211 + } //#17211 + $1.numremcws = $a(); //#17211 + var _2F = $1.fullcws; //#17212 + for (var _2G = 0, _2H = _2F.length; _2G < _2H; _2G++) { //#17212 + $put($1.numremcws, $f($get(_2F, _2G) - 1), 1); //#17212 + } //#17212 + for (var _2K = 1556; _2K >= 0; _2K -= 1) { //#17218 + $1.i = _2K; //#17214 + if ($get($1.numremcws, $1.i) != 1) { //#17217 + $put($1.numremcws, $1.i, $f($get($1.numremcws, $1.i + 1) + 1)); //#17216 + } //#17216 + } //#17216 + if ($1.raw) { //#17220 + $1.encoding = "raw"; //#17220 + } //#17220 + if ($eq($1.encoding, "raw")) { //#17233 + $1.cws = $a($1.barcode.length); //#17223 + $1.i = 0; //#17224 + $1.j = 0; //#17224 + for (;;) { //#17231 + if ($1.i == $1.barcode.length) { //#17226 + break; //#17226 + } //#17226 + $1.cw = ~~$z($geti($1.barcode, $1.i + 1, 3)); //#17227 + $put($1.cws, $1.j, $1.cw); //#17228 + $1.i = $1.i + 4; //#17229 + $1.j = $1.j + 1; //#17230 + } //#17230 + $1.cws = $geti($1.cws, 0, $1.j); //#17232 + } //#17232 + if ($eq($1.encoding, "auto")) { //#17733 + $1.fnc1 = -1; //#17238 + $1.prog = -2; //#17238 + $1.m05 = -3; //#17238 + $1.m06 = -4; //#17238 + $1.lC = -5; //#17239 + $1.lB = -6; //#17239 + $1.lX = -7; //#17239 + $1.lT = -8; //#17239 + $1.lE = -9; //#17239 + $1.unl = -10; //#17239 + $1.sapp = -11; //#17240 + $1.usft = -12; //#17240 + $1.sft1 = -13; //#17240 + $1.sft2 = -14; //#17240 + $1.sft3 = -15; //#17240 + $1.eci = -16; //#17240 + $1.pad = -17; //#17240 + $1.unlcw = 254; //#17241 + var _2p = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["eci", true], + ["FNC1", $1.fnc1], + ["PROG", $1.prog] + ]); //#17249 + $1.fncvals = _2p; //#17252 + $k[$j++] = 'msg'; //#17253 + $k[$j++] = $1.barcode; //#17253 + $k[$j++] = $1.fncvals; //#17253 + $0.parseinput(); //#17253 + var _2s = $k[--$j]; //#17253 + $1[$k[--$j]] = _2s; //#17253 + $1.msglen = $1.msg.length; //#17254 + if ($1.msglen >= 9) { //#17271 + $aload($geti($1.msg, 0, 7)); //#17258 + var _2y = $k[--$j]; //#17259 + var _2z = $k[--$j]; //#17259 + $k[$j++] = _2y == 29; //#17259 + $k[$j++] = _2z; //#17259 + $j--; //#17259 + var _30 = $k[--$j]; //#17259 + var _31 = $k[--$j]; //#17259 + var _32 = $k[--$j]; //#17259 + var _33 = $k[--$j]; //#17260 + var _34 = $k[--$j]; //#17260 + var _35 = $k[--$j]; //#17260 + if (((((_30 && (_31 == 48)) && (_32 == 30)) && (_33 == 62)) && (_34 == 41)) && (_35 == 91)) { //#17270 + $aload($geti($1.msg, $1.msglen - 2, 2)); //#17261 + var _39 = $k[--$j]; //#17262 + var _3A = $k[--$j]; //#17262 + if ((_39 == 4) && (_3A == 30)) { //#17269 + if ($get($1.msg, 5) == 53) { //#17265 + $k[$j++] = Infinity; //#17264 + $k[$j++] = $1.m05; //#17264 + $aload($geti($1.msg, 7, $1.msg.length - 9)); //#17264 + $1.msg = $a(); //#17264 + } //#17264 + if ($get($1.msg, 5) == 54) { //#17268 + $k[$j++] = Infinity; //#17267 + $k[$j++] = $1.m06; //#17267 + $aload($geti($1.msg, 7, $1.msg.length - 9)); //#17267 + $1.msg = $a(); //#17267 + } //#17267 + } //#17267 + } //#17267 + } //#17267 + $1.msglen = $1.msg.length; //#17272 + $k[$j++] = Infinity; //#17281 + for (var _3Q = 0; _3Q <= 128; _3Q += 1) { //#17275 + $k[$j++] = _3Q; //#17275 + $k[$j++] = _3Q + 1; //#17275 + } //#17275 + $k[$j++] = $1.pad; //#17280 + $k[$j++] = 129; //#17280 + for (var _3S = 0; _3S <= 99; _3S += 1) { //#17280 + var _3U = $cvrs($s(2), _3S, 10); //#17278 + var _3W = $strcpy($s(2), "00"); //#17278 + $puti(_3W, 2 - _3U.length, _3U); //#17278 + $k[$j++] = _3W; //#17279 + $k[$j++] = _3S + 130; //#17279 + } //#17279 + var _3j = $a([$1.lC, $1.lB, $1.fnc1, $1.sapp, $1.prog, $1.usft, $1.m05, $1.m06, $1.lX, $1.lT, $1.lE, $1.eci]); //#17281 + $k[$j++] = 229; //#17281 + for (var _3k = 0, _3l = _3j.length; _3k < _3l; _3k++) { //#17281 + var _3o = $f($k[--$j] + 1); //#17281 + $k[$j++] = $get(_3j, _3k); //#17281 + $k[$j++] = _3o; //#17281 + $k[$j++] = _3o; //#17281 + } //#17281 + $j--; //#17281 + $1.Avals = $d(); //#17282 + $k[$j++] = Infinity; //#17284 + var _3q = $1.Avals; //#17284 + for (var _3v = _3q.size, _3u = _3q.keys(), _3t = 0; _3t < _3v; _3t++) { //#17284 + var _3r = _3u.next().value; //#17284 + $k[$j++] = _3r; //#17284 + $k[$j++] = _3q.get(_3r); //#17284 + $k[$j++] = Infinity; //#17284 + var _3w = $k[--$j]; //#17284 + var _3x = $k[--$j]; //#17284 + $k[$j++] = _3w; //#17284 + $k[$j++] = _3x; //#17284 + var _3y = $a(); //#17284 + $k[$j++] = _3y; //#17284 + } //#17284 + $1.Avals = $d(); //#17285 + $k[$j++] = Infinity; //#17293 + $k[$j++] = $1.sft1; //#17292 + $k[$j++] = 0; //#17292 + $k[$j++] = $1.sft2; //#17292 + $k[$j++] = 1; //#17292 + $k[$j++] = $1.sft3; //#17292 + $k[$j++] = 2; //#17292 + $k[$j++] = 32; //#17292 + $k[$j++] = 3; //#17292 + for (var _43 = 48; _43 <= 57; _43 += 1) { //#17292 + $k[$j++] = _43; //#17292 + $k[$j++] = _43 - 44; //#17292 + } //#17292 + for (var _44 = 65; _44 <= 90; _44 += 1) { //#17293 + $k[$j++] = _44; //#17293 + $k[$j++] = _44 - 51; //#17293 + } //#17293 + $1.CNvals = $d(); //#17294 + $k[$j++] = Infinity; //#17295 + for (var _46 = 0; _46 <= 31; _46 += 1) { //#17295 + $k[$j++] = _46; //#17295 + $k[$j++] = _46; //#17295 + } //#17295 + $1.C1vals = $d(); //#17295 + $k[$j++] = Infinity; //#17301 + for (var _48 = 33; _48 <= 47; _48 += 1) { //#17297 + $k[$j++] = _48; //#17297 + $k[$j++] = _48 - 33; //#17297 + } //#17297 + for (var _49 = 58; _49 <= 64; _49 += 1) { //#17298 + $k[$j++] = _49; //#17298 + $k[$j++] = _49 - 43; //#17298 + } //#17298 + for (var _4A = 91; _4A <= 95; _4A += 1) { //#17299 + $k[$j++] = _4A; //#17299 + $k[$j++] = _4A - 69; //#17299 + } //#17299 + $k[$j++] = $1.fnc1; //#17301 + $k[$j++] = 27; //#17301 + $k[$j++] = $1.usft; //#17301 + $k[$j++] = 30; //#17301 + $1.C2vals = $d(); //#17302 + $k[$j++] = Infinity; //#17303 + for (var _4E = 96; _4E <= 127; _4E += 1) { //#17303 + $k[$j++] = _4E; //#17303 + $k[$j++] = _4E - 96; //#17303 + } //#17303 + $1.C3vals = $d(); //#17303 + $k[$j++] = Infinity; //#17308 + var _4G = $1.CNvals; //#17305 + for (var _4L = _4G.size, _4K = _4G.keys(), _4J = 0; _4J < _4L; _4J++) { //#17305 + var _4H = _4K.next().value; //#17305 + $k[$j++] = _4H; //#17305 + $k[$j++] = _4G.get(_4H); //#17305 + $k[$j++] = Infinity; //#17305 + var _4M = $k[--$j]; //#17305 + var _4N = $k[--$j]; //#17305 + $k[$j++] = _4M; //#17305 + $k[$j++] = _4N; //#17305 + var _4O = $a(); //#17305 + $k[$j++] = _4O; //#17305 + } //#17305 + var _4P = $1.C1vals; //#17306 + for (var _4U = _4P.size, _4T = _4P.keys(), _4S = 0; _4S < _4U; _4S++) { //#17306 + var _4Q = _4T.next().value; //#17306 + $k[$j++] = _4Q; //#17306 + $k[$j++] = _4P.get(_4Q); //#17306 + $k[$j++] = Infinity; //#17306 + var _4V = $k[--$j]; //#17306 + var _4W = $k[--$j]; //#17306 + $k[$j++] = _4V; //#17306 + $k[$j++] = $get($1.CNvals, $1.sft1); //#17306 + $k[$j++] = _4W; //#17306 + var _4a = $a(); //#17306 + $k[$j++] = _4a; //#17306 + } //#17306 + var _4b = $1.C2vals; //#17307 + for (var _4g = _4b.size, _4f = _4b.keys(), _4e = 0; _4e < _4g; _4e++) { //#17307 + var _4c = _4f.next().value; //#17307 + $k[$j++] = _4c; //#17307 + $k[$j++] = _4b.get(_4c); //#17307 + $k[$j++] = Infinity; //#17307 + var _4h = $k[--$j]; //#17307 + var _4i = $k[--$j]; //#17307 + $k[$j++] = _4h; //#17307 + $k[$j++] = $get($1.CNvals, $1.sft2); //#17307 + $k[$j++] = _4i; //#17307 + var _4m = $a(); //#17307 + $k[$j++] = _4m; //#17307 + } //#17307 + var _4n = $1.C3vals; //#17308 + for (var _4s = _4n.size, _4r = _4n.keys(), _4q = 0; _4q < _4s; _4q++) { //#17308 + var _4o = _4r.next().value; //#17308 + $k[$j++] = _4o; //#17308 + $k[$j++] = _4n.get(_4o); //#17308 + $k[$j++] = Infinity; //#17308 + var _4t = $k[--$j]; //#17308 + var _4u = $k[--$j]; //#17308 + $k[$j++] = _4t; //#17308 + $k[$j++] = $get($1.CNvals, $1.sft3); //#17308 + $k[$j++] = _4u; //#17308 + var _4y = $a(); //#17308 + $k[$j++] = _4y; //#17308 + } //#17308 + $1.Cvals = $d(); //#17309 + $k[$j++] = Infinity; //#17317 + $k[$j++] = $1.sft1; //#17316 + $k[$j++] = 0; //#17316 + $k[$j++] = $1.sft2; //#17316 + $k[$j++] = 1; //#17316 + $k[$j++] = $1.sft3; //#17316 + $k[$j++] = 2; //#17316 + $k[$j++] = 32; //#17316 + $k[$j++] = 3; //#17316 + for (var _53 = 48; _53 <= 57; _53 += 1) { //#17316 + $k[$j++] = _53; //#17316 + $k[$j++] = _53 - 44; //#17316 + } //#17316 + for (var _54 = 97; _54 <= 122; _54 += 1) { //#17317 + $k[$j++] = _54; //#17317 + $k[$j++] = _54 - 83; //#17317 + } //#17317 + $1.TNvals = $d(); //#17318 + $k[$j++] = Infinity; //#17319 + for (var _56 = 0; _56 <= 31; _56 += 1) { //#17319 + $k[$j++] = _56; //#17319 + $k[$j++] = _56; //#17319 + } //#17319 + $1.T1vals = $d(); //#17319 + $k[$j++] = Infinity; //#17325 + for (var _58 = 33; _58 <= 47; _58 += 1) { //#17321 + $k[$j++] = _58; //#17321 + $k[$j++] = _58 - 33; //#17321 + } //#17321 + for (var _59 = 58; _59 <= 64; _59 += 1) { //#17322 + $k[$j++] = _59; //#17322 + $k[$j++] = _59 - 43; //#17322 + } //#17322 + for (var _5A = 91; _5A <= 95; _5A += 1) { //#17323 + $k[$j++] = _5A; //#17323 + $k[$j++] = _5A - 69; //#17323 + } //#17323 + $k[$j++] = $1.fnc1; //#17325 + $k[$j++] = 27; //#17325 + $k[$j++] = $1.usft; //#17325 + $k[$j++] = 30; //#17325 + $1.T2vals = $d(); //#17326 + $k[$j++] = Infinity; //#17330 + $k[$j++] = 96; //#17329 + $k[$j++] = 0; //#17329 + for (var _5E = 65; _5E <= 90; _5E += 1) { //#17329 + $k[$j++] = _5E; //#17329 + $k[$j++] = _5E - 64; //#17329 + } //#17329 + for (var _5F = 123; _5F <= 127; _5F += 1) { //#17330 + $k[$j++] = _5F; //#17330 + $k[$j++] = _5F - 96; //#17330 + } //#17330 + $1.T3vals = $d(); //#17331 + $k[$j++] = Infinity; //#17336 + var _5H = $1.TNvals; //#17333 + for (var _5M = _5H.size, _5L = _5H.keys(), _5K = 0; _5K < _5M; _5K++) { //#17333 + var _5I = _5L.next().value; //#17333 + $k[$j++] = _5I; //#17333 + $k[$j++] = _5H.get(_5I); //#17333 + $k[$j++] = Infinity; //#17333 + var _5N = $k[--$j]; //#17333 + var _5O = $k[--$j]; //#17333 + $k[$j++] = _5N; //#17333 + $k[$j++] = _5O; //#17333 + var _5P = $a(); //#17333 + $k[$j++] = _5P; //#17333 + } //#17333 + var _5Q = $1.T1vals; //#17334 + for (var _5V = _5Q.size, _5U = _5Q.keys(), _5T = 0; _5T < _5V; _5T++) { //#17334 + var _5R = _5U.next().value; //#17334 + $k[$j++] = _5R; //#17334 + $k[$j++] = _5Q.get(_5R); //#17334 + $k[$j++] = Infinity; //#17334 + var _5W = $k[--$j]; //#17334 + var _5X = $k[--$j]; //#17334 + $k[$j++] = _5W; //#17334 + $k[$j++] = $get($1.TNvals, $1.sft1); //#17334 + $k[$j++] = _5X; //#17334 + var _5b = $a(); //#17334 + $k[$j++] = _5b; //#17334 + } //#17334 + var _5c = $1.T2vals; //#17335 + for (var _5h = _5c.size, _5g = _5c.keys(), _5f = 0; _5f < _5h; _5f++) { //#17335 + var _5d = _5g.next().value; //#17335 + $k[$j++] = _5d; //#17335 + $k[$j++] = _5c.get(_5d); //#17335 + $k[$j++] = Infinity; //#17335 + var _5i = $k[--$j]; //#17335 + var _5j = $k[--$j]; //#17335 + $k[$j++] = _5i; //#17335 + $k[$j++] = $get($1.TNvals, $1.sft2); //#17335 + $k[$j++] = _5j; //#17335 + var _5n = $a(); //#17335 + $k[$j++] = _5n; //#17335 + } //#17335 + var _5o = $1.T3vals; //#17336 + for (var _5t = _5o.size, _5s = _5o.keys(), _5r = 0; _5r < _5t; _5r++) { //#17336 + var _5p = _5s.next().value; //#17336 + $k[$j++] = _5p; //#17336 + $k[$j++] = _5o.get(_5p); //#17336 + $k[$j++] = Infinity; //#17336 + var _5u = $k[--$j]; //#17336 + var _5v = $k[--$j]; //#17336 + $k[$j++] = _5u; //#17336 + $k[$j++] = $get($1.TNvals, $1.sft3); //#17336 + $k[$j++] = _5v; //#17336 + var _5z = $a(); //#17336 + $k[$j++] = _5z; //#17336 + } //#17336 + $1.Tvals = $d(); //#17337 + for (var _61 = 128; _61 <= 255; _61 += 1) { //#17345 + $1.i = _61; //#17341 + $k[$j++] = $1.Avals; //#17342 + $k[$j++] = $1.i; //#17342 + $k[$j++] = Infinity; //#17342 + $aload($get($1.Avals, $1.usft)); //#17342 + $aload($get($1.Avals, $1.i - 128)); //#17342 + var _6A = $a(); //#17342 + var _6B = $k[--$j]; //#17342 + $put($k[--$j], _6B, _6A); //#17342 + $k[$j++] = $1.Cvals; //#17343 + $k[$j++] = $1.i; //#17343 + $k[$j++] = Infinity; //#17343 + $aload($get($1.Cvals, $1.usft)); //#17343 + $aload($get($1.Cvals, $1.i - 128)); //#17343 + var _6L = $a(); //#17343 + var _6M = $k[--$j]; //#17343 + $put($k[--$j], _6M, _6L); //#17343 + $k[$j++] = $1.Tvals; //#17344 + $k[$j++] = $1.i; //#17344 + $k[$j++] = Infinity; //#17344 + $aload($get($1.Tvals, $1.usft)); //#17344 + $aload($get($1.Tvals, $1.i - 128)); //#17344 + var _6W = $a(); //#17344 + var _6X = $k[--$j]; //#17344 + $put($k[--$j], _6X, _6W); //#17344 + } //#17344 + $k[$j++] = Infinity; //#17353 + $k[$j++] = 13; //#17352 + $k[$j++] = 0; //#17352 + $k[$j++] = 42; //#17352 + $k[$j++] = 1; //#17352 + $k[$j++] = 62; //#17352 + $k[$j++] = 2; //#17352 + $k[$j++] = 32; //#17352 + $k[$j++] = 3; //#17352 + for (var _6Z = 48; _6Z <= 57; _6Z += 1) { //#17352 + $k[$j++] = _6Z; //#17352 + $k[$j++] = _6Z - 44; //#17352 + } //#17352 + for (var _6a = 65; _6a <= 90; _6a += 1) { //#17353 + $k[$j++] = _6a; //#17353 + $k[$j++] = _6a - 51; //#17353 + } //#17353 + $1.Xvals = $d(); //#17354 + $k[$j++] = Infinity; //#17356 + var _6c = $1.Xvals; //#17356 + for (var _6h = _6c.size, _6g = _6c.keys(), _6f = 0; _6f < _6h; _6f++) { //#17356 + var _6d = _6g.next().value; //#17356 + $k[$j++] = _6d; //#17356 + $k[$j++] = _6c.get(_6d); //#17356 + $k[$j++] = Infinity; //#17356 + var _6i = $k[--$j]; //#17356 + var _6j = $k[--$j]; //#17356 + $k[$j++] = _6i; //#17356 + $k[$j++] = _6j; //#17356 + var _6k = $a(); //#17356 + $k[$j++] = _6k; //#17356 + } //#17356 + $1.Xvals = $d(); //#17357 + $k[$j++] = Infinity; //#17362 + for (var _6m = 64; _6m <= 94; _6m += 1) { //#17360 + $k[$j++] = _6m; //#17360 + $k[$j++] = _6m - 64; //#17360 + } //#17360 + $k[$j++] = $1.unl; //#17362 + $k[$j++] = 31; //#17362 + for (var _6o = 32; _6o <= 63; _6o += 1) { //#17362 + $k[$j++] = _6o; //#17362 + $k[$j++] = _6o; //#17362 + } //#17362 + $1.Evals = $d(); //#17363 + $k[$j++] = Infinity; //#17365 + var _6q = $1.Evals; //#17365 + for (var _6v = _6q.size, _6u = _6q.keys(), _6t = 0; _6t < _6v; _6t++) { //#17365 + var _6r = _6u.next().value; //#17365 + $k[$j++] = _6r; //#17365 + $k[$j++] = _6q.get(_6r); //#17365 + $k[$j++] = Infinity; //#17365 + var _6w = $k[--$j]; //#17365 + var _6x = $k[--$j]; //#17365 + $k[$j++] = _6w; //#17365 + $k[$j++] = _6x; //#17365 + var _6y = $a(); //#17365 + $k[$j++] = _6y; //#17365 + } //#17365 + $1.Evals = $d(); //#17366 + $k[$j++] = Infinity; //#17369 + for (var _70 = 0; _70 <= 255; _70 += 1) { //#17369 + $k[$j++] = _70; //#17369 + $k[$j++] = _70; //#17369 + } //#17369 + $1.Bvals = $d(); //#17370 + $k[$j++] = Infinity; //#17372 + var _72 = $1.Bvals; //#17372 + for (var _77 = _72.size, _76 = _72.keys(), _75 = 0; _75 < _77; _75++) { //#17372 + var _73 = _76.next().value; //#17372 + $k[$j++] = _73; //#17372 + $k[$j++] = _72.get(_73); //#17372 + $k[$j++] = Infinity; //#17372 + var _78 = $k[--$j]; //#17372 + var _79 = $k[--$j]; //#17372 + $k[$j++] = _78; //#17372 + $k[$j++] = _79; //#17372 + var _7A = $a(); //#17372 + $k[$j++] = _7A; //#17372 + } //#17372 + $1.Bvals = $d(); //#17373 + $1.encvals = $a([$1.Avals, $1.Cvals, $1.Tvals, $1.Xvals, $1.Evals, $1.Bvals]); //#17375 + $k[$j++] = Infinity; //#17377 + for (var _7K = 0, _7L = $1.msglen; _7K < _7L; _7K++) { //#17377 + $k[$j++] = 0; //#17377 + } //#17377 + $k[$j++] = 0; //#17377 + $1.numD = $a(); //#17377 + $k[$j++] = Infinity; //#17378 + for (var _7O = 0, _7P = $1.msglen; _7O < _7P; _7O++) { //#17378 + $k[$j++] = 0; //#17378 + } //#17378 + $k[$j++] = 9999; //#17378 + $1.nextXterm = $a(); //#17378 + $k[$j++] = Infinity; //#17379 + for (var _7S = 0, _7T = $1.msglen; _7S < _7T; _7S++) { //#17379 + $k[$j++] = 0; //#17379 + } //#17379 + $k[$j++] = 9999; //#17379 + $1.nextNonX = $a(); //#17379 + $k[$j++] = Infinity; //#17380 + for (var _7W = 0, _7X = $1.msglen; _7W < _7X; _7W++) { //#17380 + $k[$j++] = false; //#17380 + } //#17380 + $k[$j++] = false; //#17380 + $1.isECI = $a(); //#17380 + for (var _7a = $1.msglen - 1; _7a >= 0; _7a -= 1) { //#17398 + $1.i = _7a; //#17382 + $1.barchar = $get($1.msg, $1.i); //#17383 + if (($1.barchar >= 48) && ($1.barchar <= 57)) { //#17386 + $put($1.numD, $1.i, $f($get($1.numD, $1.i + 1) + 1)); //#17385 + } //#17385 + if ((($1.barchar == 13) || ($1.barchar == 42)) || ($1.barchar == 62)) { //#17390 + $put($1.nextXterm, $1.i, 0); //#17388 + } else { //#17390 + $put($1.nextXterm, $1.i, $f($get($1.nextXterm, $1.i + 1) + 1)); //#17390 + } //#17390 + var _7x = $get($1.Xvals, $1.barchar) !== undefined; //#17392 + if (!_7x) { //#17395 + $put($1.nextNonX, $1.i, 0); //#17393 + } else { //#17395 + $put($1.nextNonX, $1.i, $f($get($1.nextNonX, $1.i + 1) + 1)); //#17395 + } //#17395 + $put($1.isECI, $1.i, $1.barchar <= -1000000); //#17397 + } //#17397 + $k[$j++] = Infinity; //#17399 + var _88 = $1.nextXterm; //#17399 + for (var _89 = 0, _8A = _88.length; _89 < _8A; _89++) { //#17399 + var _8B = $get(_88, _89); //#17399 + $k[$j++] = _8B; //#17399 + if (_8B > 10000) { //#17399 + $j--; //#17399 + $k[$j++] = 10000; //#17399 + } //#17399 + } //#17399 + $1.nextXterm = $a(); //#17399 + $k[$j++] = Infinity; //#17400 + var _8D = $1.nextNonX; //#17400 + for (var _8E = 0, _8F = _8D.length; _8E < _8F; _8E++) { //#17400 + var _8G = $get(_8D, _8E); //#17400 + $k[$j++] = _8G; //#17400 + if (_8G > 10000) { //#17400 + $j--; //#17400 + $k[$j++] = 10000; //#17400 + } //#17400 + } //#17400 + $1.nextNonX = $a(); //#17400 $1.isD = function() { - $k[$j++] = $1.char >= 48 && $1.char <= 57; - }; + $k[$j++] = ($1.char >= 48) && ($1.char <= 57); //#17402 + }; //#17402 $1.isC = function() { - var _8M = $get($1.CNvals, $1.char) !== undefined; - $k[$j++] = _8M; - }; + var _8M = $get($1.CNvals, $1.char) !== undefined; //#17403 + $k[$j++] = _8M; //#17403 + }; //#17403 $1.isT = function() { - var _8P = $get($1.TNvals, $1.char) !== undefined; - $k[$j++] = _8P; - }; + var _8P = $get($1.TNvals, $1.char) !== undefined; //#17404 + $k[$j++] = _8P; //#17404 + }; //#17404 $1.isX = function() { - var _8S = $get($1.Xvals, $1.char) !== undefined; - $k[$j++] = _8S; - }; + var _8S = $get($1.Xvals, $1.char) !== undefined; //#17405 + $k[$j++] = _8S; //#17405 + }; //#17405 $1.isE = function() { - var _8V = $get($1.Evals, $1.char) !== undefined; - $k[$j++] = _8V; - }; + var _8V = $get($1.Evals, $1.char) !== undefined; //#17406 + $k[$j++] = _8V; //#17406 + }; //#17406 $1.isEA = function() { - $k[$j++] = $1.char > 127; - }; + $k[$j++] = $1.char > 127; //#17407 + }; //#17407 $1.isFN = function() { - $k[$j++] = $1.char < 0; - }; + $k[$j++] = $1.char < 0; //#17408 + }; //#17408 $1.XtermFirst = function() { - var _8Y = $k[--$j]; - $k[$j++] = $lt($get($1.nextXterm, _8Y), $get($1.nextNonX, _8Y)); - }; - $1.A = 0; - $1.C = 1; - $1.T = 2; - $1.X = 3; - $1.E = 4; - $1.B = 5; + var _8Y = $k[--$j]; //#17409 + $k[$j++] = $lt($get($1.nextXterm, _8Y), $get($1.nextNonX, _8Y)); //#17409 + }; //#17409 + $1.A = 0; //#17411 + $1.C = 1; //#17411 + $1.T = 2; //#17411 + $1.X = 3; //#17411 + $1.E = 4; //#17411 + $1.B = 5; //#17411 $1.lookup = function() { - $1.ac = 1; - $1.cc = 2; - $1.tc = 2; - $1.xc = 2; - $1.ec = 2; - $1.bc = 2.25; - if ($1.mode == $1.A) { - $1.ac = 0; - $1.cc = 1; - $1.tc = 1; - $1.xc = 1; - $1.ec = 1; - $1.bc = 1.25; - } - if ($1.mode == $1.C) { - $1.cc = 0; - } - if ($1.mode == $1.T) { - $1.tc = 0; - } - if ($1.mode == $1.X) { - $1.xc = 0; - } - if ($1.mode == $1.E) { - $1.ec = 0; - } - if ($1.mode == $1.B) { - $1.bc = 0; - } - for (var _8p = 0, _8q = 1; _8p < _8q; _8p++) { - if ($get($1.isECI, $1.i)) { - $k[$j++] = $1.A; - break; - } - if ($1.mailmark && $1.i < 45) { - $k[$j++] = $1.C; - break; - } - $1.k = 0; - for (;;) { - if ($1.i + $1.k == $1.msglen) { - var _91 = $a([ "ac", "cc", "tc", "xc", "ec", "bc" ]); - for (var _92 = 0, _93 = _91.length; _92 < _93; _92++) { - var _94 = $get(_91, _92); - $1[_94] = Math.ceil($1[_94]); - } - var _9B = $a([ $1.cc, $1.tc, $1.xc, $1.ec, $1.bc ]); - $k[$j++] = true; - for (var _9C = 0, _9D = _9B.length; _9C < _9D; _9C++) { - var _9G = $k[--$j]; - $k[$j++] = _9G && $1.ac <= $get(_9B, _9C); - } - if ($k[--$j]) { - $k[$j++] = $1.A; - break; - } - var _9O = $a([ $1.ac, $1.cc, $1.tc, $1.xc, $1.ec ]); - $k[$j++] = true; - for (var _9P = 0, _9Q = _9O.length; _9P < _9Q; _9P++) { - var _9T = $k[--$j]; - $k[$j++] = _9T && $1.bc < $get(_9O, _9P); - } - if ($k[--$j]) { - $k[$j++] = $1.B; - break; - } - var _9b = $a([ $1.ac, $1.cc, $1.tc, $1.xc, $1.bc ]); - $k[$j++] = true; - for (var _9c = 0, _9d = _9b.length; _9c < _9d; _9c++) { - var _9g = $k[--$j]; - $k[$j++] = _9g && $1.ec < $get(_9b, _9c); - } - if ($k[--$j]) { - $k[$j++] = $1.E; - break; - } - var _9o = $a([ $1.ac, $1.cc, $1.xc, $1.ec, $1.bc ]); - $k[$j++] = true; - for (var _9p = 0, _9q = _9o.length; _9p < _9q; _9p++) { - var _9t = $k[--$j]; - $k[$j++] = _9t && $1.tc < $get(_9o, _9p); - } - if ($k[--$j]) { - $k[$j++] = $1.T; - break; - } - var _A1 = $a([ $1.ac, $1.cc, $1.tc, $1.ec, $1.bc ]); - $k[$j++] = true; - for (var _A2 = 0, _A3 = _A1.length; _A2 < _A3; _A2++) { - var _A6 = $k[--$j]; - $k[$j++] = _A6 && $1.xc < $get(_A1, _A2); - } - if ($k[--$j]) { - $k[$j++] = $1.X; - break; - } - $k[$j++] = $1.C; - break; - } - $1.char = $get($1.msg, $1.i + $1.k); - $k[$j++] = "ac"; - $k[$j++] = $1.ac; - $1.isD(); - if ($k[--$j]) { - var _AG = $k[--$j]; - $k[$j++] = $f(_AG + 1 / 2); - } else { - $1.isEA(); - if ($k[--$j]) { - var _AI = $k[--$j]; - $k[$j++] = Math.ceil(_AI) + 2; - } else { - var _AJ = $k[--$j]; - $k[$j++] = Math.ceil(_AJ) + 1; - } - } - var _AK = $k[--$j]; - $1[$k[--$j]] = _AK; - $k[$j++] = "cc"; - $k[$j++] = $1.cc; - $1.isC(); - if ($k[--$j]) { - var _AO = $k[--$j]; - $k[$j++] = $f(_AO + .66666667); - } else { - $1.isEA(); - if ($k[--$j]) { - var _AQ = $k[--$j]; - $k[$j++] = $f(_AQ + 2.66666667); - } else { - var _AR = $k[--$j]; - $k[$j++] = $f(_AR + 1.33333334); - } - } - var _AS = $k[--$j]; - $1[$k[--$j]] = _AS; - $k[$j++] = "tc"; - $k[$j++] = $1.tc; - $1.isT(); - if ($k[--$j]) { - var _AW = $k[--$j]; - $k[$j++] = $f(_AW + .66666667); - } else { - $1.isEA(); - if ($k[--$j]) { - var _AY = $k[--$j]; - $k[$j++] = $f(_AY + 2.66666667); - } else { - var _AZ = $k[--$j]; - $k[$j++] = $f(_AZ + 1.33333334); - } - } - var _Aa = $k[--$j]; - $1[$k[--$j]] = _Aa; - $k[$j++] = "xc"; - $k[$j++] = $1.xc; - $1.isX(); - if ($k[--$j]) { - var _Ae = $k[--$j]; - $k[$j++] = $f(_Ae + .66666667); - } else { - $1.isEA(); - if ($k[--$j]) { - var _Ag = $k[--$j]; - $k[$j++] = $f(_Ag + 4.33333334); - } else { - var _Ah = $k[--$j]; - $k[$j++] = $f(_Ah + 3.33333334); - } - } - var _Ai = $k[--$j]; - $1[$k[--$j]] = _Ai; - $k[$j++] = "ec"; - $k[$j++] = $1.ec; - $1.isE(); - if ($k[--$j]) { - var _Am = $k[--$j]; - $k[$j++] = $f(_Am + 3 / 4); - } else { - $1.isEA(); - if ($k[--$j]) { - var _Ao = $k[--$j]; - $k[$j++] = $f(_Ao + 17 / 4); - } else { - var _Ap = $k[--$j]; - $k[$j++] = $f(_Ap + 13 / 4); - } - } - var _Aq = $k[--$j]; - $1[$k[--$j]] = _Aq; - $k[$j++] = "bc"; - $k[$j++] = $1.bc; - $1.isFN(); - if ($k[--$j]) { - var _Au = $k[--$j]; - $k[$j++] = $f(_Au + 4); - } else { - var _Av = $k[--$j]; - $k[$j++] = $f(_Av + 1); - } - var _Aw = $k[--$j]; - $1[$k[--$j]] = _Aw; - if ($1.k >= 4) { - var _B4 = $a([ $1.cc, $1.tc, $1.xc, $1.ec, $1.bc ]); - $k[$j++] = true; - for (var _B5 = 0, _B6 = _B4.length; _B5 < _B6; _B5++) { - var _B9 = $k[--$j]; - $k[$j++] = _B9 && $1.ac + 1 <= $get(_B4, _B5); - } - if ($k[--$j]) { - $k[$j++] = $1.A; - break; - } - if ($1.bc + 1 <= $1.ac) { - $k[$j++] = $1.B; - break; - } - var _BJ = $a([ $1.cc, $1.tc, $1.xc, $1.ec ]); - $k[$j++] = true; - for (var _BK = 0, _BL = _BJ.length; _BK < _BL; _BK++) { - var _BO = $k[--$j]; - $k[$j++] = _BO && $1.bc + 1 < $get(_BJ, _BK); - } - if ($k[--$j]) { - $k[$j++] = $1.B; - break; - } - var _BW = $a([ $1.ac, $1.cc, $1.tc, $1.xc, $1.bc ]); - $k[$j++] = true; - for (var _BX = 0, _BY = _BW.length; _BX < _BY; _BX++) { - var _Bb = $k[--$j]; - $k[$j++] = _Bb && $1.ec + 1 < $get(_BW, _BX); - } - if ($k[--$j]) { - $k[$j++] = $1.E; - break; - } - var _Bj = $a([ $1.ac, $1.cc, $1.xc, $1.ec, $1.bc ]); - $k[$j++] = true; - for (var _Bk = 0, _Bl = _Bj.length; _Bk < _Bl; _Bk++) { - var _Bo = $k[--$j]; - $k[$j++] = _Bo && $1.tc + 1 < $get(_Bj, _Bk); - } - if ($k[--$j]) { - $k[$j++] = $1.T; - break; - } - var _Bw = $a([ $1.ac, $1.cc, $1.tc, $1.ec, $1.bc ]); - $k[$j++] = true; - for (var _Bx = 0, _By = _Bw.length; _Bx < _By; _Bx++) { - var _C1 = $k[--$j]; - $k[$j++] = _C1 && $1.xc + 1 < $get(_Bw, _Bx); - } - if ($k[--$j]) { - $k[$j++] = $1.X; - break; - } - var _C8 = $a([ $1.ac, $1.tc, $1.ec, $1.bc ]); - $k[$j++] = true; - for (var _C9 = 0, _CA = _C8.length; _C9 < _CA; _C9++) { - var _CD = $k[--$j]; - $k[$j++] = _CD && $1.cc + 1 < $get(_C8, _C9); - } - if ($k[--$j]) { - if ($1.cc < $1.xc) { - $k[$j++] = $1.C; - break; - } - if ($1.cc == $1.xc) { - $k[$j++] = $1.i + $1.k + 1; - $1.XtermFirst(); - if ($k[--$j]) { - $k[$j++] = $1.X; - break; - } else { - $k[$j++] = $1.C; - break; - } - } - } - } - $1.k = $1.k + 1; - } - } - }; + $1.ac = 1; //#17414 + $1.cc = 2; //#17414 + $1.tc = 2; //#17414 + $1.xc = 2; //#17414 + $1.ec = 2; //#17414 + $1.bc = 2.25; //#17414 + if ($1.mode == $1.A) { //#17415 + $1.ac = 0; //#17415 + $1.cc = 1; //#17415 + $1.tc = 1; //#17415 + $1.xc = 1; //#17415 + $1.ec = 1; //#17415 + $1.bc = 1.25; //#17415 + } //#17415 + if ($1.mode == $1.C) { //#17416 + $1.cc = 0; //#17416 + } //#17416 + if ($1.mode == $1.T) { //#17417 + $1.tc = 0; //#17417 + } //#17417 + if ($1.mode == $1.X) { //#17418 + $1.xc = 0; //#17418 + } //#17418 + if ($1.mode == $1.E) { //#17419 + $1.ec = 0; //#17419 + } //#17419 + if ($1.mode == $1.B) { //#17420 + $1.bc = 0; //#17420 + } //#17420 + for (var _8p = 0, _8q = 1; _8p < _8q; _8p++) { //#17455 + if ($get($1.isECI, $1.i)) { //#17422 + $k[$j++] = $1.A; //#17422 + break; //#17422 + } //#17422 + if ($1.mailmark && ($1.i < 45)) { //#17423 + $k[$j++] = $1.C; //#17423 + break; //#17423 + } //#17423 + $1.k = 0; //#17424 + for (;;) { //#17454 + if (($1.i + $1.k) == $1.msglen) { //#17433 + var _91 = $a(['ac', 'cc', 'tc', 'xc', 'ec', 'bc']); //#17426 + for (var _92 = 0, _93 = _91.length; _92 < _93; _92++) { //#17426 + var _94 = $get(_91, _92); //#17426 + $1[_94] = Math.ceil($1[_94]); //#17426 + } //#17426 + var _9B = $a([$1.cc, $1.tc, $1.xc, $1.ec, $1.bc]); //#17427 + $k[$j++] = true; //#17427 + for (var _9C = 0, _9D = _9B.length; _9C < _9D; _9C++) { //#17427 + var _9G = $k[--$j]; //#17427 + $k[$j++] = _9G && ($1.ac <= $get(_9B, _9C)); //#17427 + } //#17427 + if ($k[--$j]) { //#17427 + $k[$j++] = $1.A; //#17427 + break; //#17427 + } //#17427 + var _9O = $a([$1.ac, $1.cc, $1.tc, $1.xc, $1.ec]); //#17428 + $k[$j++] = true; //#17428 + for (var _9P = 0, _9Q = _9O.length; _9P < _9Q; _9P++) { //#17428 + var _9T = $k[--$j]; //#17428 + $k[$j++] = _9T && ($1.bc < $get(_9O, _9P)); //#17428 + } //#17428 + if ($k[--$j]) { //#17428 + $k[$j++] = $1.B; //#17428 + break; //#17428 + } //#17428 + var _9b = $a([$1.ac, $1.cc, $1.tc, $1.xc, $1.bc]); //#17429 + $k[$j++] = true; //#17429 + for (var _9c = 0, _9d = _9b.length; _9c < _9d; _9c++) { //#17429 + var _9g = $k[--$j]; //#17429 + $k[$j++] = _9g && ($1.ec < $get(_9b, _9c)); //#17429 + } //#17429 + if ($k[--$j]) { //#17429 + $k[$j++] = $1.E; //#17429 + break; //#17429 + } //#17429 + var _9o = $a([$1.ac, $1.cc, $1.xc, $1.ec, $1.bc]); //#17430 + $k[$j++] = true; //#17430 + for (var _9p = 0, _9q = _9o.length; _9p < _9q; _9p++) { //#17430 + var _9t = $k[--$j]; //#17430 + $k[$j++] = _9t && ($1.tc < $get(_9o, _9p)); //#17430 + } //#17430 + if ($k[--$j]) { //#17430 + $k[$j++] = $1.T; //#17430 + break; //#17430 + } //#17430 + var _A1 = $a([$1.ac, $1.cc, $1.tc, $1.ec, $1.bc]); //#17431 + $k[$j++] = true; //#17431 + for (var _A2 = 0, _A3 = _A1.length; _A2 < _A3; _A2++) { //#17431 + var _A6 = $k[--$j]; //#17431 + $k[$j++] = _A6 && ($1.xc < $get(_A1, _A2)); //#17431 + } //#17431 + if ($k[--$j]) { //#17431 + $k[$j++] = $1.X; //#17431 + break; //#17431 + } //#17431 + $k[$j++] = $1.C; //#17432 + break; //#17432 + } //#17432 + $1.char = $get($1.msg, $1.i + $1.k); //#17434 + $k[$j++] = 'ac'; //#17435 + $k[$j++] = $1.ac; //#17435 + $1.isD(); //#17435 + if ($k[--$j]) { //#17435 + var _AG = $k[--$j]; //#17435 + $k[$j++] = $f(_AG + (1 / 2)); //#17435 + } else { //#17435 + $1.isEA(); //#17435 + if ($k[--$j]) { //#17435 + var _AI = $k[--$j]; //#17435 + $k[$j++] = Math.ceil(_AI) + 2; //#17435 + } else { //#17435 + var _AJ = $k[--$j]; //#17435 + $k[$j++] = Math.ceil(_AJ) + 1; //#17435 + } //#17435 + } //#17435 + var _AK = $k[--$j]; //#17435 + $1[$k[--$j]] = _AK; //#17435 + $k[$j++] = 'cc'; //#17436 + $k[$j++] = $1.cc; //#17436 + $1.isC(); //#17436 + if ($k[--$j]) { //#17436 + var _AO = $k[--$j]; //#17436 + $k[$j++] = $f(_AO + 0.66666667); //#17436 + } else { //#17436 + $1.isEA(); //#17436 + if ($k[--$j]) { //#17436 + var _AQ = $k[--$j]; //#17436 + $k[$j++] = $f(_AQ + 2.66666667); //#17436 + } else { //#17436 + var _AR = $k[--$j]; //#17436 + $k[$j++] = $f(_AR + 1.33333334); //#17436 + } //#17436 + } //#17436 + var _AS = $k[--$j]; //#17436 + $1[$k[--$j]] = _AS; //#17436 + $k[$j++] = 'tc'; //#17437 + $k[$j++] = $1.tc; //#17437 + $1.isT(); //#17437 + if ($k[--$j]) { //#17437 + var _AW = $k[--$j]; //#17437 + $k[$j++] = $f(_AW + 0.66666667); //#17437 + } else { //#17437 + $1.isEA(); //#17437 + if ($k[--$j]) { //#17437 + var _AY = $k[--$j]; //#17437 + $k[$j++] = $f(_AY + 2.66666667); //#17437 + } else { //#17437 + var _AZ = $k[--$j]; //#17437 + $k[$j++] = $f(_AZ + 1.33333334); //#17437 + } //#17437 + } //#17437 + var _Aa = $k[--$j]; //#17437 + $1[$k[--$j]] = _Aa; //#17437 + $k[$j++] = 'xc'; //#17438 + $k[$j++] = $1.xc; //#17438 + $1.isX(); //#17438 + if ($k[--$j]) { //#17438 + var _Ae = $k[--$j]; //#17438 + $k[$j++] = $f(_Ae + 0.66666667); //#17438 + } else { //#17438 + $1.isEA(); //#17438 + if ($k[--$j]) { //#17438 + var _Ag = $k[--$j]; //#17438 + $k[$j++] = $f(_Ag + 4.33333334); //#17438 + } else { //#17438 + var _Ah = $k[--$j]; //#17438 + $k[$j++] = $f(_Ah + 3.33333334); //#17438 + } //#17438 + } //#17438 + var _Ai = $k[--$j]; //#17438 + $1[$k[--$j]] = _Ai; //#17438 + $k[$j++] = 'ec'; //#17439 + $k[$j++] = $1.ec; //#17439 + $1.isE(); //#17439 + if ($k[--$j]) { //#17439 + var _Am = $k[--$j]; //#17439 + $k[$j++] = $f(_Am + (3 / 4)); //#17439 + } else { //#17439 + $1.isEA(); //#17439 + if ($k[--$j]) { //#17439 + var _Ao = $k[--$j]; //#17439 + $k[$j++] = $f(_Ao + (17 / 4)); //#17439 + } else { //#17439 + var _Ap = $k[--$j]; //#17439 + $k[$j++] = $f(_Ap + (13 / 4)); //#17439 + } //#17439 + } //#17439 + var _Aq = $k[--$j]; //#17439 + $1[$k[--$j]] = _Aq; //#17439 + $k[$j++] = 'bc'; //#17440 + $k[$j++] = $1.bc; //#17440 + $1.isFN(); //#17440 + if ($k[--$j]) { //#17440 + var _Au = $k[--$j]; //#17440 + $k[$j++] = $f(_Au + 4); //#17440 + } else { //#17440 + var _Av = $k[--$j]; //#17440 + $k[$j++] = $f(_Av + 1); //#17440 + } //#17440 + var _Aw = $k[--$j]; //#17440 + $1[$k[--$j]] = _Aw; //#17440 + if ($1.k >= 4) { //#17452 + var _B4 = $a([$1.cc, $1.tc, $1.xc, $1.ec, $1.bc]); //#17442 + $k[$j++] = true; //#17442 + for (var _B5 = 0, _B6 = _B4.length; _B5 < _B6; _B5++) { //#17442 + var _B9 = $k[--$j]; //#17442 + $k[$j++] = _B9 && (($1.ac + 1) <= $get(_B4, _B5)); //#17442 + } //#17442 + if ($k[--$j]) { //#17442 + $k[$j++] = $1.A; //#17442 + break; //#17442 + } //#17442 + if (($1.bc + 1) <= $1.ac) { //#17443 + $k[$j++] = $1.B; //#17443 + break; //#17443 + } //#17443 + var _BJ = $a([$1.cc, $1.tc, $1.xc, $1.ec]); //#17444 + $k[$j++] = true; //#17444 + for (var _BK = 0, _BL = _BJ.length; _BK < _BL; _BK++) { //#17444 + var _BO = $k[--$j]; //#17444 + $k[$j++] = _BO && (($1.bc + 1) < $get(_BJ, _BK)); //#17444 + } //#17444 + if ($k[--$j]) { //#17444 + $k[$j++] = $1.B; //#17444 + break; //#17444 + } //#17444 + var _BW = $a([$1.ac, $1.cc, $1.tc, $1.xc, $1.bc]); //#17445 + $k[$j++] = true; //#17445 + for (var _BX = 0, _BY = _BW.length; _BX < _BY; _BX++) { //#17445 + var _Bb = $k[--$j]; //#17445 + $k[$j++] = _Bb && (($1.ec + 1) < $get(_BW, _BX)); //#17445 + } //#17445 + if ($k[--$j]) { //#17445 + $k[$j++] = $1.E; //#17445 + break; //#17445 + } //#17445 + var _Bj = $a([$1.ac, $1.cc, $1.xc, $1.ec, $1.bc]); //#17446 + $k[$j++] = true; //#17446 + for (var _Bk = 0, _Bl = _Bj.length; _Bk < _Bl; _Bk++) { //#17446 + var _Bo = $k[--$j]; //#17446 + $k[$j++] = _Bo && (($1.tc + 1) < $get(_Bj, _Bk)); //#17446 + } //#17446 + if ($k[--$j]) { //#17446 + $k[$j++] = $1.T; //#17446 + break; //#17446 + } //#17446 + var _Bw = $a([$1.ac, $1.cc, $1.tc, $1.ec, $1.bc]); //#17447 + $k[$j++] = true; //#17447 + for (var _Bx = 0, _By = _Bw.length; _Bx < _By; _Bx++) { //#17447 + var _C1 = $k[--$j]; //#17447 + $k[$j++] = _C1 && (($1.xc + 1) < $get(_Bw, _Bx)); //#17447 + } //#17447 + if ($k[--$j]) { //#17447 + $k[$j++] = $1.X; //#17447 + break; //#17447 + } //#17447 + var _C8 = $a([$1.ac, $1.tc, $1.ec, $1.bc]); //#17448 + $k[$j++] = true; //#17448 + for (var _C9 = 0, _CA = _C8.length; _C9 < _CA; _C9++) { //#17448 + var _CD = $k[--$j]; //#17448 + $k[$j++] = _CD && (($1.cc + 1) < $get(_C8, _C9)); //#17448 + } //#17448 + if ($k[--$j]) { //#17451 + if ($1.cc < $1.xc) { //#17449 + $k[$j++] = $1.C; //#17449 + break; //#17449 + } //#17449 + if ($1.cc == $1.xc) { //#17450 + $k[$j++] = ($1.i + $1.k) + 1; //#17450 + $1.XtermFirst(); //#17450 + if ($k[--$j]) { //#17450 + $k[$j++] = $1.X; //#17450 + break; //#17450 + } else { //#17450 + $k[$j++] = $1.C; //#17450 + break; //#17450 + } //#17450 + } //#17450 + } //#17450 + } //#17450 + $1.k = $1.k + 1; //#17453 + } //#17453 + } //#17453 + }; //#17456 $1.addtocws = function() { - var _CQ = $k[--$j]; - $puti($1.cws, $1.j, _CQ); - $1.j = _CQ.length + $1.j; - }; + var _CQ = $k[--$j]; //#17459 + $puti($1.cws, $1.j, _CQ); //#17459 + $1.j = _CQ.length + $1.j; //#17460 + }; //#17461 $1.ECItocws = function() { - var _CV = $f(-$k[--$j] - 1e6); - $k[$j++] = _CV; - if (_CV <= 126) { - var _CW = $k[--$j]; - $k[$j++] = $f(_CW + 1); - $astore($a(1)); - } else { - var _CY = $k[--$j]; - $k[$j++] = _CY; - if (_CY <= 16382) { - var _Ca = $f($k[--$j] - 127); - $k[$j++] = ~~(_Ca / 254) + 128; - $k[$j++] = $f(_Ca % 254 + 1); - $astore($a(2)); - } else { - var _Cd = $f($k[--$j] - 16383); - $k[$j++] = ~~(_Cd / 64516) + 192; - $k[$j++] = ~~(_Cd / 254) % 254 + 1; - $k[$j++] = $f(_Cd % 254 + 1); - $astore($a(3)); - } - } - }; + var _CV = $f((-$k[--$j]) - 1000000); //#17465 + $k[$j++] = _CV; //#17479 + if (_CV <= 126) { //#17478 + var _CW = $k[--$j]; //#17466 + $k[$j++] = $f(_CW + 1); //#17467 + $astore($a(1)); //#17467 + } else { //#17478 + var _CY = $k[--$j]; //#17468 + $k[$j++] = _CY; //#17479 + if (_CY <= 16382) { //#17478 + var _Ca = $f($k[--$j] - 127); //#17470 + $k[$j++] = (~~(_Ca / 254)) + 128; //#17472 + $k[$j++] = $f((_Ca % 254) + 1); //#17472 + $astore($a(2)); //#17472 + } else { //#17478 + var _Cd = $f($k[--$j] - 16383); //#17475 + $k[$j++] = (~~(_Cd / 64516)) + 192; //#17478 + $k[$j++] = ((~~(_Cd / 254)) % 254) + 1; //#17478 + $k[$j++] = $f((_Cd % 254) + 1); //#17478 + $astore($a(3)); //#17478 + } //#17478 + } //#17478 + }; //#17480 $1.encA = function() { - for (var _Cf = 0, _Cg = 1; _Cf < _Cg; _Cf++) { - if ($get($1.isECI, $1.i)) { - $k[$j++] = $get($1.Avals, $1.eci); - $1.addtocws(); - $k[$j++] = $get($1.msg, $1.i); - $1.ECItocws(); - $1.addtocws(); - $1.i = $1.i + 1; - break; - } - if ($get($1.numD, $1.i) >= 2) { - var _Cu = $s(2); - $put(_Cu, 0, $get($1.msg, $1.i)); - $put(_Cu, 1, $get($1.msg, $1.i + 1)); - $k[$j++] = $get($1.Avals, _Cu); - $1.addtocws(); - $1.i = $1.i + 2; - break; - } - $k[$j++] = "newmode"; - $1.lookup(); - var _D4 = $k[--$j]; - $1[$k[--$j]] = _D4; - if ($1.newmode != $1.mode) { - $k[$j++] = $get($1.Avals, $get($a([ -1, $1.lC, $1.lT, $1.lX, $1.lE, $1.lB ]), $1.newmode)); - $1.addtocws(); - $1.mode = $1.newmode; - break; - } - $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); - $1.addtocws(); - $1.i = $1.i + 1; - break; - } - }; + for (var _Cf = 0, _Cg = 1; _Cf < _Cg; _Cf++) { //#17504 + if ($get($1.isECI, $1.i)) { //#17489 + $k[$j++] = $get($1.Avals, $1.eci); //#17485 + $1.addtocws(); //#17485 + $k[$j++] = $get($1.msg, $1.i); //#17486 + $1.ECItocws(); //#17486 + $1.addtocws(); //#17486 + $1.i = $1.i + 1; //#17487 + break; //#17488 + } //#17488 + if ($get($1.numD, $1.i) >= 2) { //#17494 + var _Cu = $s(2); //#17491 + $put(_Cu, 0, $get($1.msg, $1.i)); //#17491 + $put(_Cu, 1, $get($1.msg, $1.i + 1)); //#17491 + $k[$j++] = $get($1.Avals, _Cu); //#17491 + $1.addtocws(); //#17491 + $1.i = $1.i + 2; //#17492 + break; //#17493 + } //#17493 + $k[$j++] = 'newmode'; //#17495 + $1.lookup(); //#17495 + var _D4 = $k[--$j]; //#17495 + $1[$k[--$j]] = _D4; //#17495 + if ($1.newmode != $1.mode) { //#17500 + $k[$j++] = $get($1.Avals, $get($a([-1, $1.lC, $1.lT, $1.lX, $1.lE, $1.lB]), $1.newmode)); //#17497 + $1.addtocws(); //#17497 + $1.mode = $1.newmode; //#17498 + break; //#17499 + } //#17499 + $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); //#17501 + $1.addtocws(); //#17501 + $1.i = $1.i + 1; //#17502 + break; //#17503 + } //#17503 + }; //#17505 $1.CTXvalstocws = function() { - $1.in = $k[--$j]; - $k[$j++] = Infinity; - for (var _DS = 0, _DR = $1.in.length - 1; _DS <= _DR; _DS += 3) { - var _DU = $geti($1.in, _DS, 3); - $k[$j++] = 0; - for (var _DV = 0, _DW = _DU.length; _DV < _DW; _DV++) { - var _DY = $k[--$j]; - $k[$j++] = $f(_DY + $get(_DU, _DV)) * 40; - } - var _Da = ~~($k[--$j] / 40) + 1; - $k[$j++] = ~~(_Da / 256); - $k[$j++] = _Da % 256; - } - $astore($a($counttomark())); - var _Dd = $k[--$j]; - var _De = $k[--$j]; - $k[$j++] = _Dd; - $k[$j++] = _De; - $j--; - }; + $1.in = $k[--$j]; //#17508 + $k[$j++] = Infinity; //#17509 + for (var _DS = 0, _DR = $1.in.length - 1; _DS <= _DR; _DS += 3) { //#17513 + var _DU = $geti($1.in, _DS, 3); //#17511 + $k[$j++] = 0; //#17511 + for (var _DV = 0, _DW = _DU.length; _DV < _DW; _DV++) { //#17511 + var _DY = $k[--$j]; //#17511 + $k[$j++] = $f(_DY + $get(_DU, _DV)) * 40; //#17511 + } //#17511 + var _Da = (~~($k[--$j] / 40)) + 1; //#17512 + $k[$j++] = ~~(_Da / 256); //#17512 + $k[$j++] = _Da % 256; //#17512 + } //#17512 + $astore($a($counttomark())); //#17514 + var _Dd = $k[--$j]; //#17514 + var _De = $k[--$j]; //#17514 + $k[$j++] = _Dd; //#17514 + $k[$j++] = _De; //#17514 + $j--; //#17514 + }; //#17515 $1.encCTX = function() { - $1.p = 0; - $1.ctxvals = $a(2500); - $1.done = false; - for (;;) { - if ($1.i == $1.msglen) { - break; - } - var _Do = $get($get($1.encvals, $1.mode), $get($1.msg, $1.i)) !== undefined; - if (!_Do) { - break; - } - if ($1.p % 3 == 0) { - $k[$j++] = "newmode"; - $1.lookup(); - var _Dq = $k[--$j]; - $1[$k[--$j]] = _Dq; - if ($ne($1.newmode, $1.mode)) { - $k[$j++] = $geti($1.ctxvals, 0, $1.p); - $1.CTXvalstocws(); - $1.addtocws(); - $k[$j++] = $a([ $1.unlcw ]); - $1.addtocws(); - if ($1.newmode != $1.A) { - $k[$j++] = $get($1.Avals, $get($a([ -1, $1.lC, $1.lT, $1.lX, $1.lE, $1.lB ]), $1.newmode)); - $1.addtocws(); - } - $1.mode = $1.newmode; - $1.done = true; - break; - } - if ($1.msglen - $1.i <= 3) { - $1.remcws = $get($1.numremcws, $1.j + ~~($1.p / 3) * 2); - $k[$j++] = Infinity; - var _EM = $geti($1.msg, $1.i, $1.msglen - $1.i); - for (var _EN = 0, _EO = _EM.length; _EN < _EO; _EN++) { - var _EP = $get(_EM, _EN); - var _ET = $get($get($1.encvals, $1.mode), _EP) !== undefined; - $k[$j++] = _EP; - if (_ET) { - $aload($get($get($1.encvals, $1.mode), $k[--$j])); - } else { - $j--; - $k[$j++] = -1; - $k[$j++] = -1; - $k[$j++] = -1; - $k[$j++] = -1; - } - } - $1.remvals = $a(); - if ($1.remcws == 2 && $1.remvals.length == 3) { - $k[$j++] = Infinity; - $aload($geti($1.ctxvals, 0, $1.p)); - $aload($1.remvals); - var _Eg = $a(); - $k[$j++] = _Eg; - $1.CTXvalstocws(); - $1.addtocws(); - $1.mode = $1.A; - $1.i = $1.msglen; - $1.done = true; - break; - } - if ($1.remcws == 2 && $1.remvals.length == 2 && $1.mode != $1.X) { - $k[$j++] = Infinity; - $aload($geti($1.ctxvals, 0, $1.p)); - $aload($1.remvals); - $aload($get($get($1.encvals, $1.mode), $1.sft1)); - var _Ew = $a(); - $k[$j++] = _Ew; - $1.CTXvalstocws(); - $1.addtocws(); - $1.mode = $1.A; - $1.i = $1.msglen; - $1.done = true; - break; - } - if ($1.remcws == 2 && $1.remvals.length == 1) { - $k[$j++] = $geti($1.ctxvals, 0, $1.p); - $1.CTXvalstocws(); - $1.addtocws(); - $k[$j++] = $a([ $1.unlcw ]); - $1.addtocws(); - $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); - $1.addtocws(); - $1.mode = $1.A; - $1.i = $1.msglen; - $1.done = true; - break; - } - if ($1.remcws == 1 && $1.remvals.length == 1) { - $k[$j++] = $geti($1.ctxvals, 0, $1.p); - $1.CTXvalstocws(); - $1.addtocws(); - $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); - $1.addtocws(); - $1.mode = $1.A; - $1.i = $1.msglen; - $1.done = true; - break; - } - } - } - var _FV = $get($get($1.encvals, $1.mode), $get($1.msg, $1.i)); - $puti($1.ctxvals, $1.p, _FV); - $1.p = _FV.length + $1.p; - $1.i = $1.i + 1; - } - if (!$1.done) { - for (;;) { - if ($1.p % 3 == 0) { - break; - } - $1.i = $1.i - 1; - $1.p = $1.p - $get($get($1.encvals, $1.mode), $get($1.msg, $1.i)).length; - } - $k[$j++] = Infinity; - $aload($geti($1.ctxvals, 0, $1.p)); - var _Fo = $a(); - $k[$j++] = _Fo; - $1.CTXvalstocws(); - $1.addtocws(); - $k[$j++] = $a([ $1.unlcw ]); - $1.addtocws(); - $1.mode = $1.A; - if ($1.i != $1.msglen && $nt($get($1.isECI, $1.i))) { - if ($get($1.numD, $1.i) >= 2) { - var _G0 = $s(2); - $put(_G0, 0, $get($1.msg, $1.i)); - $put(_G0, 1, $get($1.msg, $1.i + 1)); - $k[$j++] = $get($1.Avals, _G0); - $1.addtocws(); - $1.i = $1.i + 2; - } else { - $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); - $1.addtocws(); - $1.i = $1.i + 1; - } - } - } - }; + $1.p = 0; //#17518 + $1.ctxvals = $a(2500); //#17519 + $1.done = false; //#17520 + for (;;) { //#17597 + if ($1.i == $1.msglen) { //#17524 + break; //#17524 + } //#17524 + var _Do = $get($get($1.encvals, $1.mode), $get($1.msg, $1.i)) !== undefined; //#17525 + if (!_Do) { //#17525 + break; //#17525 + } //#17525 + if (($1.p % 3) == 0) { //#17592 + $k[$j++] = 'newmode'; //#17527 + $1.lookup(); //#17527 + var _Dq = $k[--$j]; //#17527 + $1[$k[--$j]] = _Dq; //#17527 + if ($ne($1.newmode, $1.mode)) { //#17537 + $k[$j++] = $geti($1.ctxvals, 0, $1.p); //#17529 + $1.CTXvalstocws(); //#17529 + $1.addtocws(); //#17529 + $k[$j++] = $a([$1.unlcw]); //#17530 + $1.addtocws(); //#17530 + if ($1.newmode != $1.A) { //#17533 + $k[$j++] = $get($1.Avals, $get($a([-1, $1.lC, $1.lT, $1.lX, $1.lE, $1.lB]), $1.newmode)); //#17532 + $1.addtocws(); //#17532 + } //#17532 + $1.mode = $1.newmode; //#17534 + $1.done = true; //#17535 + break; //#17536 + } //#17536 + if (($1.msglen - $1.i) <= 3) { //#17591 + $1.remcws = $get($1.numremcws, $1.j + ((~~($1.p / 3)) * 2)); //#17539 + $k[$j++] = Infinity; //#17545 + var _EM = $geti($1.msg, $1.i, $1.msglen - $1.i); //#17541 + for (var _EN = 0, _EO = _EM.length; _EN < _EO; _EN++) { //#17547 + var _EP = $get(_EM, _EN); //#17547 + var _ET = $get($get($1.encvals, $1.mode), _EP) !== undefined; //#17542 + $k[$j++] = _EP; //#17546 + if (_ET) { //#17545 + $aload($get($get($1.encvals, $1.mode), $k[--$j])); //#17543 + } else { //#17545 + $j--; //#17545 + $k[$j++] = -1; //#17545 + $k[$j++] = -1; //#17545 + $k[$j++] = -1; //#17545 + $k[$j++] = -1; //#17545 + } //#17545 + } //#17545 + $1.remvals = $a(); //#17545 + if (($1.remcws == 2) && ($1.remvals.length == 3)) { //#17559 + $k[$j++] = Infinity; //#17553 + $aload($geti($1.ctxvals, 0, $1.p)); //#17552 + $aload($1.remvals); //#17553 + var _Eg = $a(); //#17553 + $k[$j++] = _Eg; //#17554 + $1.CTXvalstocws(); //#17554 + $1.addtocws(); //#17554 + $1.mode = $1.A; //#17555 + $1.i = $1.msglen; //#17556 + $1.done = true; //#17557 + break; //#17558 + } //#17558 + if ((($1.remcws == 2) && ($1.remvals.length == 2)) && ($1.mode != $1.X)) { //#17571 + $k[$j++] = Infinity; //#17565 + $aload($geti($1.ctxvals, 0, $1.p)); //#17563 + $aload($1.remvals); //#17564 + $aload($get($get($1.encvals, $1.mode), $1.sft1)); //#17565 + var _Ew = $a(); //#17565 + $k[$j++] = _Ew; //#17566 + $1.CTXvalstocws(); //#17566 + $1.addtocws(); //#17566 + $1.mode = $1.A; //#17567 + $1.i = $1.msglen; //#17568 + $1.done = true; //#17569 + break; //#17570 + } //#17570 + if (($1.remcws == 2) && ($1.remvals.length == 1)) { //#17581 + $k[$j++] = $geti($1.ctxvals, 0, $1.p); //#17574 + $1.CTXvalstocws(); //#17574 + $1.addtocws(); //#17574 + $k[$j++] = $a([$1.unlcw]); //#17575 + $1.addtocws(); //#17575 + $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); //#17576 + $1.addtocws(); //#17576 + $1.mode = $1.A; //#17577 + $1.i = $1.msglen; //#17578 + $1.done = true; //#17579 + break; //#17580 + } //#17580 + if (($1.remcws == 1) && ($1.remvals.length == 1)) { //#17590 + $k[$j++] = $geti($1.ctxvals, 0, $1.p); //#17584 + $1.CTXvalstocws(); //#17584 + $1.addtocws(); //#17584 + $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); //#17585 + $1.addtocws(); //#17585 + $1.mode = $1.A; //#17586 + $1.i = $1.msglen; //#17587 + $1.done = true; //#17588 + break; //#17589 + } //#17589 + } //#17589 + } //#17589 + var _FV = $get($get($1.encvals, $1.mode), $get($1.msg, $1.i)); //#17593 + $puti($1.ctxvals, $1.p, _FV); //#17594 + $1.p = _FV.length + $1.p; //#17595 + $1.i = $1.i + 1; //#17596 + } //#17596 + if (!$1.done) { //#17621 + for (;;) { //#17605 + if (($1.p % 3) == 0) { //#17602 + break; //#17602 + } //#17602 + $1.i = $1.i - 1; //#17603 + $1.p = $1.p - $get($get($1.encvals, $1.mode), $get($1.msg, $1.i)).length; //#17604 + } //#17604 + $k[$j++] = Infinity; //#17607 + $aload($geti($1.ctxvals, 0, $1.p)); //#17607 + var _Fo = $a(); //#17607 + $k[$j++] = _Fo; //#17608 + $1.CTXvalstocws(); //#17608 + $1.addtocws(); //#17608 + $k[$j++] = $a([$1.unlcw]); //#17609 + $1.addtocws(); //#17609 + $1.mode = $1.A; //#17610 + if (($1.i != $1.msglen) && $nt($get($1.isECI, $1.i))) { //#17620 + if ($get($1.numD, $1.i) >= 2) { //#17618 + var _G0 = $s(2); //#17614 + $put(_G0, 0, $get($1.msg, $1.i)); //#17614 + $put(_G0, 1, $get($1.msg, $1.i + 1)); //#17614 + $k[$j++] = $get($1.Avals, _G0); //#17614 + $1.addtocws(); //#17614 + $1.i = $1.i + 2; //#17615 + } else { //#17618 + $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); //#17617 + $1.addtocws(); //#17617 + $1.i = $1.i + 1; //#17618 + } //#17618 + } //#17618 + } //#17618 + }; //#17623 $1.Evalstocws = function() { - $1.in = $k[--$j]; - $1.inlen = $1.in.length; - $1.outlen = ~~Math.ceil($1.in.length / 4 * 3); - $k[$j++] = Infinity; - $aload($1.in); - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $1.in = $a(); - $k[$j++] = Infinity; - for (var _GN = 0, _GM = $1.inlen - 1; _GN <= _GM; _GN += 4) { - var _GP = $geti($1.in, _GN, 4); - $k[$j++] = 0; - for (var _GQ = 0, _GR = _GP.length; _GQ < _GR; _GQ++) { - var _GT = $k[--$j]; - $k[$j++] = $or(_GT, $get(_GP, _GQ)) << 6; - } - var _GV = $k[--$j] >>> 6; - $k[$j++] = _GV >>> 16 & 255; - $k[$j++] = _GV >>> 8 & 255; - $k[$j++] = _GV & 255; - } - $astore($a($counttomark())); - var _GY = $k[--$j]; - var _GZ = $k[--$j]; - $k[$j++] = _GY; - $k[$j++] = _GZ; - $j--; - var _Gc = $geti($k[--$j], 0, $1.outlen); - $k[$j++] = _Gc; - }; + $1.in = $k[--$j]; //#17626 + $1.inlen = $1.in.length; //#17627 + $1.outlen = ~~(Math.ceil(($1.in.length / 4) * 3)); //#17628 + $k[$j++] = Infinity; //#17629 + $aload($1.in); //#17629 + $k[$j++] = 0; //#17629 + $k[$j++] = 0; //#17629 + $k[$j++] = 0; //#17629 + $1.in = $a(); //#17629 + $k[$j++] = Infinity; //#17630 + for (var _GN = 0, _GM = $1.inlen - 1; _GN <= _GM; _GN += 4) { //#17636 + var _GP = $geti($1.in, _GN, 4); //#17632 + $k[$j++] = 0; //#17632 + for (var _GQ = 0, _GR = _GP.length; _GQ < _GR; _GQ++) { //#17632 + var _GT = $k[--$j]; //#17632 + $k[$j++] = $or(_GT, $get(_GP, _GQ)) << 6; //#17632 + } //#17632 + var _GV = $k[--$j] >>> 6; //#17633 + $k[$j++] = (_GV >>> 16) & 255; //#17635 + $k[$j++] = (_GV >>> 8) & 255; //#17635 + $k[$j++] = _GV & 255; //#17635 + } //#17635 + $astore($a($counttomark())); //#17637 + var _GY = $k[--$j]; //#17637 + var _GZ = $k[--$j]; //#17637 + $k[$j++] = _GY; //#17637 + $k[$j++] = _GZ; //#17637 + $j--; //#17637 + var _Gc = $geti($k[--$j], 0, $1.outlen); //#17638 + $k[$j++] = _Gc; //#17638 + }; //#17639 $1.encE = function() { - $1.p = 0; - $1.edifactvals = $a(2100); - for (;;) { - if ($1.i == $1.msglen) { - break; - } - var _Gk = $get($1.Evals, $get($1.msg, $1.i)) !== undefined; - if (!_Gk) { - break; - } - if ($1.p % 4 == 0) { - if ($1.msglen - $1.i <= 2) { - $1.remcws = $get($1.numremcws, $1.j + ~~($1.p / 4) * 3); - $k[$j++] = Infinity; - var _Gw = $geti($1.msg, $1.i, $1.msglen - $1.i); - for (var _Gx = 0, _Gy = _Gw.length; _Gx < _Gy; _Gx++) { - $aload($get($1.Avals, $get(_Gw, _Gx))); - } - $1.remvals = $a(); - if (($1.remcws == 1 || $1.remcws == 2) && $1.remvals.length <= $1.remcws) { - $k[$j++] = $geti($1.edifactvals, 0, $1.p); - $1.Evalstocws(); - $1.addtocws(); - $k[$j++] = $1.remvals; - $1.addtocws(); - $1.mode = $1.A; - $1.i = $1.msglen; - break; - } - } - $1.lookup(); - if ($k[--$j] != $1.mode) { - break; - } - } - var _HJ = $get($1.Evals, $get($1.msg, $1.i)); - $puti($1.edifactvals, $1.p, _HJ); - $1.p = _HJ.length + $1.p; - $1.i = $1.i + 1; - } - if ($1.mode != $1.A) { - $1.remcws = $f($get($1.numremcws, $1.j + ~~($1.p / 4) * 3 - 1) - 1); - if ($1.p % 4 != 0 || $1.i != $1.msglen || $1.remcws >= 3) { - var _Ha = $get($1.Evals, $1.unl); - $puti($1.edifactvals, $1.p, _Ha); - $1.p = _Ha.length + $1.p; - } - $k[$j++] = $geti($1.edifactvals, 0, $1.p); - $1.Evalstocws(); - $1.addtocws(); - $1.mode = $1.A; - if ($1.i != $1.msglen && $nt($get($1.isECI, $1.i))) { - if ($get($1.numD, $1.i) >= 2) { - var _Hq = $s(2); - $put(_Hq, 0, $get($1.msg, $1.i)); - $put(_Hq, 1, $get($1.msg, $1.i + 1)); - $k[$j++] = $get($1.Avals, _Hq); - $1.addtocws(); - $1.i = $1.i + 2; - } else { - $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); - $1.addtocws(); - $1.i = $1.i + 1; - } - } - } - }; + $1.p = 0; //#17642 + $1.edifactvals = $a(2100); //#17643 + for (;;) { //#17672 + if ($1.i == $1.msglen) { //#17647 + break; //#17647 + } //#17647 + var _Gk = $get($1.Evals, $get($1.msg, $1.i)) !== undefined; //#17648 + if (!_Gk) { //#17648 + break; //#17648 + } //#17648 + if (($1.p % 4) == 0) { //#17667 + if (($1.msglen - $1.i) <= 2) { //#17665 + $1.remcws = $get($1.numremcws, $1.j + ((~~($1.p / 4)) * 3)); //#17651 + $k[$j++] = Infinity; //#17654 + var _Gw = $geti($1.msg, $1.i, $1.msglen - $1.i); //#17653 + for (var _Gx = 0, _Gy = _Gw.length; _Gx < _Gy; _Gx++) { //#17655 + $aload($get($1.Avals, $get(_Gw, _Gx))); //#17654 + } //#17654 + $1.remvals = $a(); //#17654 + if ((($1.remcws == 1) || ($1.remcws == 2)) && ($1.remvals.length <= $1.remcws)) { //#17664 + $k[$j++] = $geti($1.edifactvals, 0, $1.p); //#17659 + $1.Evalstocws(); //#17659 + $1.addtocws(); //#17659 + $k[$j++] = $1.remvals; //#17660 + $1.addtocws(); //#17660 + $1.mode = $1.A; //#17661 + $1.i = $1.msglen; //#17662 + break; //#17663 + } //#17663 + } //#17663 + $1.lookup(); //#17666 + if ($k[--$j] != $1.mode) { //#17666 + break; //#17666 + } //#17666 + } //#17666 + var _HJ = $get($1.Evals, $get($1.msg, $1.i)); //#17668 + $puti($1.edifactvals, $1.p, _HJ); //#17669 + $1.p = _HJ.length + $1.p; //#17670 + $1.i = $1.i + 1; //#17671 + } //#17671 + if ($1.mode != $1.A) { //#17694 + $1.remcws = $f($get($1.numremcws, ($1.j + ((~~($1.p / 4)) * 3)) - 1) - 1); //#17676 + if (((($1.p % 4) != 0) || ($1.i != $1.msglen)) || ($1.remcws >= 3)) { //#17681 + var _Ha = $get($1.Evals, $1.unl); //#17678 + $puti($1.edifactvals, $1.p, _Ha); //#17679 + $1.p = _Ha.length + $1.p; //#17680 + } //#17680 + $k[$j++] = $geti($1.edifactvals, 0, $1.p); //#17682 + $1.Evalstocws(); //#17682 + $1.addtocws(); //#17682 + $1.mode = $1.A; //#17683 + if (($1.i != $1.msglen) && $nt($get($1.isECI, $1.i))) { //#17693 + if ($get($1.numD, $1.i) >= 2) { //#17691 + var _Hq = $s(2); //#17687 + $put(_Hq, 0, $get($1.msg, $1.i)); //#17687 + $put(_Hq, 1, $get($1.msg, $1.i + 1)); //#17687 + $k[$j++] = $get($1.Avals, _Hq); //#17687 + $1.addtocws(); //#17687 + $1.i = $1.i + 2; //#17688 + } else { //#17691 + $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); //#17690 + $1.addtocws(); //#17690 + $1.i = $1.i + 1; //#17691 + } //#17691 + } //#17691 + } //#17691 + }; //#17696 $1.encB = function() { - $1.p = 0; - $1.bvals = $a(1558); - for (;;) { - if ($1.i == $1.msglen) { - break; - } - $1.lookup(); - if ($k[--$j] != $1.mode) { - break; - } - $put($1.bvals, $1.p, $get($1.msg, $1.i)); - $1.p = $1.p + 1; - $1.i = $1.i + 1; - } - $1.remcws = $f($get($1.numremcws, $1.j + $1.p) - 1); - $k[$j++] = Infinity; - if ($1.remcws == 0 && $1.i == $1.msglen) { - $k[$j++] = 0; - } else { - if ($1.p < 250) { - $k[$j++] = $1.p; - } else { - $k[$j++] = ~~($1.p / 250) + 249; - $k[$j++] = $1.p % 250; - } - } - $aload($geti($1.bvals, 0, $1.p)); - $1.bvals = $a(); - for (var _IZ = 0, _IY = $1.bvals.length - 1; _IZ <= _IY; _IZ += 1) { - $1.p = _IZ; - var _If = $f(($1.j + $1.p + 1) * 149 % 255 + 1 + $get($1.bvals, $1.p)); - $k[$j++] = _If; - if (_If >= 256) { - var _Ig = $k[--$j]; - $k[$j++] = $f(_Ig - 256); - } - $put($1.bvals, $1.p, $k[--$j]); - } - $k[$j++] = $1.bvals; - $1.addtocws(); - $1.mode = $1.A; - }; - $1.cws = $a(1558); - $1.mode = $1.A; - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i >= $1.msglen) { - break; - } - if ($1[$get($a([ "encA", "encCTX", "encCTX", "encCTX", "encE", "encB" ]), $1.mode)]() === true) { + $1.p = 0; //#17699 + $1.bvals = $a(1558); //#17699 + for (;;) { //#17705 + if ($1.i == $1.msglen) { //#17700 + break; //#17700 + } //#17700 + $1.lookup(); //#17701 + if ($k[--$j] != $1.mode) { //#17701 + break; //#17701 + } //#17701 + $put($1.bvals, $1.p, $get($1.msg, $1.i)); //#17702 + $1.p = $1.p + 1; //#17703 + $1.i = $1.i + 1; //#17704 + } //#17704 + $1.remcws = $f($get($1.numremcws, $1.j + $1.p) - 1); //#17706 + $k[$j++] = Infinity; //#17713 + if (($1.remcws == 0) && ($1.i == $1.msglen)) { //#17711 + $k[$j++] = 0; //#17709 + } else { //#17711 + if ($1.p < 250) { //#17711 + $k[$j++] = $1.p; //#17711 + } else { //#17711 + $k[$j++] = (~~($1.p / 250)) + 249; //#17711 + $k[$j++] = $1.p % 250; //#17711 + } //#17711 + } //#17711 + $aload($geti($1.bvals, 0, $1.p)); //#17713 + $1.bvals = $a(); //#17713 + for (var _IZ = 0, _IY = $1.bvals.length - 1; _IZ <= _IY; _IZ += 1) { //#17720 + $1.p = _IZ; //#17716 + var _If = $f(((((($1.j + $1.p) + 1) * 149) % 255) + 1) + $get($1.bvals, $1.p)); //#17718 + $k[$j++] = _If; //#17718 + if (_If >= 256) { //#17718 + var _Ig = $k[--$j]; //#17718 + $k[$j++] = $f(_Ig - 256); //#17718 + } //#17718 + $put($1.bvals, $1.p, $k[--$j]); //#17719 + } //#17719 + $k[$j++] = $1.bvals; //#17721 + $1.addtocws(); //#17721 + $1.mode = $1.A; //#17722 + }; //#17723 + $1.cws = $a(1558); //#17726 + $1.mode = $1.A; //#17727 + $1.i = 0; //#17727 + $1.j = 0; //#17727 + for (;;) { //#17730 + if ($1.i >= $1.msglen) { //#17728 + break; //#17728 + } //#17728 + if ($1[$get($a(['encA', 'encCTX', 'encCTX', 'encCTX', 'encE', 'encB']), $1.mode)]() === true) { break; - } - } - $1.cws = $geti($1.cws, 0, $1.j); - } - $1.datlen = $1.cws.length; - $1.remcws = $f($get($1.numremcws, $1.j - 1) - 1); - if ($1.remcws > 0) { - $k[$j++] = Infinity; - $aload($1.cws); - for (var _J4 = 0, _J5 = $1.remcws; _J4 < _J5; _J4++) { - $k[$j++] = 129; - } - $1.cws = $a(); - for (var _JB = $1.datlen + 1, _JA = $f($f($1.datlen + $1.remcws) - 1); _JB <= _JA; _JB += 1) { - $1.i = _JB; - var _JD = ($1.i + 1) * 149 % 253 + 1 + 129; - $k[$j++] = _JD; - if (_JD > 254) { - var _JE = $k[--$j]; - $k[$j++] = $f(_JE - 254); - } - $put($1.cws, $1.i, $k[--$j]); - } - } - $1.i = 0; - for (;;) { - $1.m = $get($1.metrics, $1.i); - $1.rows = $get($1.m, 0); - $1.cols = $get($1.m, 1); - $1.regh = $get($1.m, 2); - $1.regv = $get($1.m, 3); - $1.rscw = $get($1.m, 4); - $1.rsbl = $get($1.m, 5); - $1.mrows = $f($1.rows - 2 * $1.regh); - $1.mcols = $f($1.cols - 2 * $1.regv); - $1.rrows = ~~($1.mrows / $1.regh); - $1.rcols = ~~($1.mcols / $1.regv); - $1.ncws = $f(~~($1.mrows * $1.mcols / 8) - $1.rscw); - $1.okay = true; - if ($1.cws.length != $1.ncws) { - $1.okay = false; - } - if ($1.urows != 0 && $1.urows != $1.rows) { - $1.okay = false; - } - if ($1.ucols != 0 && $1.ucols != $1.cols) { - $1.okay = false; - } - if ($eq($1.format, "square") && $ne($1.rows, $1.cols)) { - $1.okay = false; - } - if ($eq($1.format, "rectangle") && $eq($1.rows, $1.cols)) { - $1.okay = false; - } - if ($1.okay) { - break; - } - $1.i = $1.i + 1; - } - $1.cwbs = $a($1.rsbl); - $1.ecbs = $a($1.rsbl); - for (var _K4 = 0, _K3 = $f($1.rsbl - 1); _K4 <= _K3; _K4 += 1) { - $1.i = _K4; - if ($1.cws.length != 1558) { - $1.cwbsize = ~~($1.cws.length / $1.rsbl); - } else { - if ($1.i <= 7) { - $1.cwbsize = 156; - } else { - $1.cwbsize = 155; - } - } - $1.cwb = $a($1.cwbsize); - for (var _KD = 0, _KC = $1.cwbsize - 1; _KD <= _KC; _KD += 1) { - $1.j = _KD; - $put($1.cwb, $1.j, $get($1.cws, $f($1.j * $1.rsbl + $1.i))); - } - $put($1.cwbs, $1.i, $1.cwb); - $k[$j++] = $1.ecbs; - $k[$j++] = $1.i; - $k[$j++] = Infinity; - for (var _KS = 0, _KT = ~~($1.rscw / $1.rsbl); _KS < _KT; _KS++) { - $k[$j++] = 0; - } - var _KU = $a(); - var _KV = $k[--$j]; - $put($k[--$j], _KV, _KU); - } - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _KX = 0, _KY = 255; _KX < _KY; _KX++) { - var _KZ = $k[--$j]; - var _Ka = _KZ * 2; - $k[$j++] = _KZ; - $k[$j++] = _Ka; - if (_Ka >= 256) { - var _Kb = $k[--$j]; - $k[$j++] = _Kb ^ 301; - } - } - $1.rsalog = $a(); - $1.rslog = $a(256); - for (var _Ke = 1; _Ke <= 255; _Ke += 1) { - $put($1.rslog, $get($1.rsalog, _Ke), _Ke); - } + } //#17729 + } //#17729 + $1.cws = $geti($1.cws, 0, $1.j); //#17731 + } //#17731 + $1.datlen = $1.cws.length; //#17736 + $1.remcws = $f($get($1.numremcws, $1.j - 1) - 1); //#17737 + if ($1.remcws > 0) { //#17746 + $k[$j++] = Infinity; //#17739 + $aload($1.cws); //#17739 + for (var _J4 = 0, _J5 = $1.remcws; _J4 < _J5; _J4++) { //#17739 + $k[$j++] = 129; //#17739 + } //#17739 + $1.cws = $a(); //#17739 + for (var _JB = $1.datlen + 1, _JA = $f($f($1.datlen + $1.remcws) - 1); _JB <= _JA; _JB += 1) { //#17745 + $1.i = _JB; //#17741 + var _JD = (((($1.i + 1) * 149) % 253) + 1) + 129; //#17743 + $k[$j++] = _JD; //#17743 + if (_JD > 254) { //#17743 + var _JE = $k[--$j]; //#17743 + $k[$j++] = $f(_JE - 254); //#17743 + } //#17743 + $put($1.cws, $1.i, $k[--$j]); //#17744 + } //#17744 + } //#17744 + $1.i = 0; //#17749 + for (;;) { //#17770 + $1.m = $get($1.metrics, $1.i); //#17750 + $1.rows = $get($1.m, 0); //#17751 + $1.cols = $get($1.m, 1); //#17752 + $1.regh = $get($1.m, 2); //#17753 + $1.regv = $get($1.m, 3); //#17754 + $1.rscw = $get($1.m, 4); //#17755 + $1.rsbl = $get($1.m, 5); //#17756 + $1.mrows = $f($1.rows - (2 * $1.regh)); //#17757 + $1.mcols = $f($1.cols - (2 * $1.regv)); //#17758 + $1.rrows = ~~($1.mrows / $1.regh); //#17759 + $1.rcols = ~~($1.mcols / $1.regv); //#17760 + $1.ncws = $f((~~(($1.mrows * $1.mcols) / 8)) - $1.rscw); //#17761 + $1.okay = true; //#17762 + if ($1.cws.length != $1.ncws) { //#17763 + $1.okay = false; //#17763 + } //#17763 + if (($1.urows != 0) && ($1.urows != $1.rows)) { //#17764 + $1.okay = false; //#17764 + } //#17764 + if (($1.ucols != 0) && ($1.ucols != $1.cols)) { //#17765 + $1.okay = false; //#17765 + } //#17765 + if ($eq($1.format, "square") && $ne($1.rows, $1.cols)) { //#17766 + $1.okay = false; //#17766 + } //#17766 + if ($eq($1.format, "rectangle") && $eq($1.rows, $1.cols)) { //#17767 + $1.okay = false; //#17767 + } //#17767 + if ($1.okay) { //#17768 + break; //#17768 + } //#17768 + $1.i = $1.i + 1; //#17769 + } //#17769 + $1.cwbs = $a($1.rsbl); //#17773 + $1.ecbs = $a($1.rsbl); //#17774 + for (var _K4 = 0, _K3 = $f($1.rsbl - 1); _K4 <= _K3; _K4 += 1) { //#17789 + $1.i = _K4; //#17776 + if ($1.cws.length != 1558) { //#17780 + $1.cwbsize = ~~($1.cws.length / $1.rsbl); //#17778 + } else { //#17780 + if ($1.i <= 7) { //#17780 + $1.cwbsize = 156; //#17780 + } else { //#17780 + $1.cwbsize = 155; //#17780 + } //#17780 + } //#17780 + $1.cwb = $a($1.cwbsize); //#17782 + for (var _KD = 0, _KC = $1.cwbsize - 1; _KD <= _KC; _KD += 1) { //#17786 + $1.j = _KD; //#17784 + $put($1.cwb, $1.j, $get($1.cws, $f(($1.j * $1.rsbl) + $1.i))); //#17785 + } //#17785 + $put($1.cwbs, $1.i, $1.cwb); //#17787 + $k[$j++] = $1.ecbs; //#17788 + $k[$j++] = $1.i; //#17788 + $k[$j++] = Infinity; //#17788 + for (var _KS = 0, _KT = ~~($1.rscw / $1.rsbl); _KS < _KT; _KS++) { //#17788 + $k[$j++] = 0; //#17788 + } //#17788 + var _KU = $a(); //#17788 + var _KV = $k[--$j]; //#17788 + $put($k[--$j], _KV, _KU); //#17788 + } //#17788 + $k[$j++] = Infinity; //#17792 + $k[$j++] = 1; //#17792 + for (var _KX = 0, _KY = 255; _KX < _KY; _KX++) { //#17792 + var _KZ = $k[--$j]; //#17792 + var _Ka = _KZ * 2; //#17792 + $k[$j++] = _KZ; //#17792 + $k[$j++] = _Ka; //#17792 + if (_Ka >= 256) { //#17792 + var _Kb = $k[--$j]; //#17792 + $k[$j++] = _Kb ^ 301; //#17792 + } //#17792 + } //#17792 + $1.rsalog = $a(); //#17792 + $1.rslog = $a(256); //#17793 + for (var _Ke = 1; _Ke <= 255; _Ke += 1) { //#17794 + $put($1.rslog, $get($1.rsalog, _Ke), _Ke); //#17794 + } //#17794 $1.rsprod = function() { - var _Ki = $k[--$j]; - var _Kj = $k[--$j]; - $k[$j++] = _Kj; - $k[$j++] = _Ki; - if (_Ki != 0 && _Kj != 0) { - var _Km = $get($1.rslog, $k[--$j]); - var _Kr = $get($1.rsalog, $f(_Km + $get($1.rslog, $k[--$j])) % 255); - $k[$j++] = _Kr; - } else { - $j -= 2; - $k[$j++] = 0; - } - }; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _Ku = 0, _Kv = ~~($1.rscw / $1.rsbl); _Ku < _Kv; _Ku++) { - $k[$j++] = 0; - } - $1.coeffs = $a(); - for (var _L0 = 1, _Kz = ~~($1.rscw / $1.rsbl); _L0 <= _Kz; _L0 += 1) { - $1.i = _L0; - $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); - for (var _L7 = $1.i - 1; _L7 >= 1; _L7 -= 1) { - $1.j = _L7; - $k[$j++] = $1.coeffs; - $k[$j++] = $1.j; - $k[$j++] = $get($1.coeffs, $1.j - 1); - $k[$j++] = $get($1.coeffs, $1.j); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _LJ = $k[--$j]; - var _LK = $k[--$j]; - var _LL = $k[--$j]; - $put($k[--$j], _LL, $xo(_LK, _LJ)); - } - $k[$j++] = $1.coeffs; - $k[$j++] = 0; - $k[$j++] = $get($1.coeffs, 0); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _LT = $k[--$j]; - var _LU = $k[--$j]; - $put($k[--$j], _LU, _LT); - } - $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); - for (var _Lb = 0, _La = $1.cwbs.length - 1; _Lb <= _La; _Lb += 1) { - $1.i = _Lb; - $1.cwb = $get($1.cwbs, $1.i); - $1.ecb = $get($1.ecbs, $1.i); - for (var _Lk = 0, _Lj = $1.cwb.length - 1; _Lk <= _Lj; _Lk += 1) { - $1.t = $xo($get($1.cwb, _Lk), $get($1.ecb, 0)); - for (var _Lq = $1.ecb.length - 1; _Lq >= 0; _Lq -= 1) { - $1.j = _Lq; - $1.p = $1.ecb.length - $1.j - 1; - $k[$j++] = $1.ecb; - $k[$j++] = $1.p; - $k[$j++] = $1.t; - $k[$j++] = $get($1.coeffs, $1.j); - $1.rsprod(); - var _Lz = $k[--$j]; - var _M0 = $k[--$j]; - $put($k[--$j], _M0, _Lz); - if ($1.j > 0) { - $put($1.ecb, $1.p, $xo($get($1.ecb, $1.p + 1), $get($1.ecb, $1.p))); - } - } - } - } - if ($1.ncws == 1558) { - $k[$j++] = Infinity; - var _MD = $geti($1.ecbs, 8, 2); - for (var _ME = 0, _MF = _MD.length; _ME < _MF; _ME++) { - $k[$j++] = $get(_MD, _ME); - } - var _MI = $geti($1.ecbs, 0, 8); - for (var _MJ = 0, _MK = _MI.length; _MJ < _MK; _MJ++) { - $k[$j++] = $get(_MI, _MJ); - } - $1.ecbs = $a(); - } - $k[$j++] = Infinity; - var _MN = $1.cws; - for (var _MO = 0, _MP = _MN.length; _MO < _MP; _MO++) { - $k[$j++] = $get(_MN, _MO); - } - for (var _MS = 0, _MT = $1.rscw; _MS < _MT; _MS++) { - $k[$j++] = 0; - } - $1.cws = $a(); - for (var _MX = 0, _MW = $f($1.rscw - 1); _MX <= _MW; _MX += 1) { - $1.i = _MX; - $put($1.cws, $f($1.ncws + $1.i), $get($get($1.ecbs, $1.i % $1.rsbl), ~~($1.i / $1.rsbl))); - } + var _Ki = $k[--$j]; //#17798 + var _Kj = $k[--$j]; //#17798 + $k[$j++] = _Kj; //#17802 + $k[$j++] = _Ki; //#17802 + if ((_Ki != 0) && (_Kj != 0)) { //#17801 + var _Km = $get($1.rslog, $k[--$j]); //#17799 + var _Kr = $get($1.rsalog, $f(_Km + $get($1.rslog, $k[--$j])) % 255); //#17799 + $k[$j++] = _Kr; //#17799 + } else { //#17801 + $j -= 2; //#17801 + $k[$j++] = 0; //#17801 + } //#17801 + }; //#17803 + $k[$j++] = Infinity; //#17806 + $k[$j++] = 1; //#17806 + for (var _Ku = 0, _Kv = ~~($1.rscw / $1.rsbl); _Ku < _Kv; _Ku++) { //#17806 + $k[$j++] = 0; //#17806 + } //#17806 + $1.coeffs = $a(); //#17806 + for (var _L0 = 1, _Kz = ~~($1.rscw / $1.rsbl); _L0 <= _Kz; _L0 += 1) { //#17815 + $1.i = _L0; //#17808 + $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); //#17809 + for (var _L7 = $1.i - 1; _L7 >= 1; _L7 -= 1) { //#17813 + $1.j = _L7; //#17811 + $k[$j++] = $1.coeffs; //#17812 + $k[$j++] = $1.j; //#17812 + $k[$j++] = $get($1.coeffs, $1.j - 1); //#17812 + $k[$j++] = $get($1.coeffs, $1.j); //#17812 + $k[$j++] = $get($1.rsalog, $1.i); //#17812 + $1.rsprod(); //#17812 + var _LJ = $k[--$j]; //#17812 + var _LK = $k[--$j]; //#17812 + var _LL = $k[--$j]; //#17812 + $put($k[--$j], _LL, $xo(_LK, _LJ)); //#17812 + } //#17812 + $k[$j++] = $1.coeffs; //#17814 + $k[$j++] = 0; //#17814 + $k[$j++] = $get($1.coeffs, 0); //#17814 + $k[$j++] = $get($1.rsalog, $1.i); //#17814 + $1.rsprod(); //#17814 + var _LT = $k[--$j]; //#17814 + var _LU = $k[--$j]; //#17814 + $put($k[--$j], _LU, _LT); //#17814 + } //#17814 + $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); //#17816 + for (var _Lb = 0, _La = $1.cwbs.length - 1; _Lb <= _La; _Lb += 1) { //#17832 + $1.i = _Lb; //#17820 + $1.cwb = $get($1.cwbs, $1.i); //#17821 + $1.ecb = $get($1.ecbs, $1.i); //#17822 + for (var _Lk = 0, _Lj = $1.cwb.length - 1; _Lk <= _Lj; _Lk += 1) { //#17831 + $1.t = $xo($get($1.cwb, _Lk), $get($1.ecb, 0)); //#17824 + for (var _Lq = $1.ecb.length - 1; _Lq >= 0; _Lq -= 1) { //#17830 + $1.j = _Lq; //#17826 + $1.p = ($1.ecb.length - $1.j) - 1; //#17827 + $k[$j++] = $1.ecb; //#17828 + $k[$j++] = $1.p; //#17828 + $k[$j++] = $1.t; //#17828 + $k[$j++] = $get($1.coeffs, $1.j); //#17828 + $1.rsprod(); //#17828 + var _Lz = $k[--$j]; //#17828 + var _M0 = $k[--$j]; //#17828 + $put($k[--$j], _M0, _Lz); //#17828 + if ($1.j > 0) { //#17829 + $put($1.ecb, $1.p, $xo($get($1.ecb, $1.p + 1), $get($1.ecb, $1.p))); //#17829 + } //#17829 + } //#17829 + } //#17829 + } //#17829 + if ($1.ncws == 1558) { //#17837 + $k[$j++] = Infinity; //#17836 + var _MD = $geti($1.ecbs, 8, 2); //#17836 + for (var _ME = 0, _MF = _MD.length; _ME < _MF; _ME++) { //#17836 + $k[$j++] = $get(_MD, _ME); //#17836 + } //#17836 + var _MI = $geti($1.ecbs, 0, 8); //#17836 + for (var _MJ = 0, _MK = _MI.length; _MJ < _MK; _MJ++) { //#17836 + $k[$j++] = $get(_MI, _MJ); //#17836 + } //#17836 + $1.ecbs = $a(); //#17836 + } //#17836 + $k[$j++] = Infinity; //#17840 + var _MN = $1.cws; //#17840 + for (var _MO = 0, _MP = _MN.length; _MO < _MP; _MO++) { //#17840 + $k[$j++] = $get(_MN, _MO); //#17840 + } //#17840 + for (var _MS = 0, _MT = $1.rscw; _MS < _MT; _MS++) { //#17840 + $k[$j++] = 0; //#17840 + } //#17840 + $1.cws = $a(); //#17840 + for (var _MX = 0, _MW = $f($1.rscw - 1); _MX <= _MW; _MX += 1) { //#17844 + $1.i = _MX; //#17842 + $put($1.cws, $f($1.ncws + $1.i), $get($get($1.ecbs, $1.i % $1.rsbl), ~~($1.i / $1.rsbl))); //#17843 + } //#17843 $1.module = function() { - var _Mi = $k[--$j]; - var _Mj = $k[--$j]; - var _Mk = $k[--$j]; - var _Mn = $strcpy($s(8), "00000000"); - var _Mp = $cvrs($s(8), $k[--$j], 2); - $puti(_Mn, 8 - _Mp.length, _Mp); - $k[$j++] = _Mk; - $k[$j++] = _Mj; - $k[$j++] = _Mi; - $k[$j++] = _Mn; - for (var _Mq = 7; _Mq >= 0; _Mq -= 1) { - var _Mr = $k[--$j]; - $k[$j++] = $f($get(_Mr, _Mq) - 48); - $k[$j++] = _Mr; - } - $j--; - var _Mt = $k[--$j]; - var _Mu = $k[--$j]; - var _Mv = $k[--$j]; - var _Mw = $k[--$j]; - var _Mx = $k[--$j]; - var _My = $k[--$j]; - var _Mz = $k[--$j]; - var _N0 = $k[--$j]; - var _N1 = $k[--$j]; - var _N2 = $k[--$j]; - var _N3 = $k[--$j]; - $k[$j++] = _N0; - $k[$j++] = _Mz; - $k[$j++] = _My; - $k[$j++] = _Mx; - $k[$j++] = _Mw; - $k[$j++] = _Mv; - $k[$j++] = _Mu; - $k[$j++] = _Mt; - $k[$j++] = _N3; - $k[$j++] = _N2; - $forall(_N1, function() { + var _Mi = $k[--$j]; //#17849 + var _Mj = $k[--$j]; //#17849 + var _Mk = $k[--$j]; //#17849 + var _Mn = $strcpy($s(8), "00000000"); //#17850 + var _Mp = $cvrs($s(8), $k[--$j], 2); //#17850 + $puti(_Mn, 8 - _Mp.length, _Mp); //#17851 + $k[$j++] = _Mk; //#17852 + $k[$j++] = _Mj; //#17852 + $k[$j++] = _Mi; //#17852 + $k[$j++] = _Mn; //#17852 + for (var _Mq = 7; _Mq >= 0; _Mq -= 1) { //#17852 + var _Mr = $k[--$j]; //#17852 + $k[$j++] = $f($get(_Mr, _Mq) - 48); //#17852 + $k[$j++] = _Mr; //#17852 + } //#17852 + $j--; //#17852 + var _Mt = $k[--$j]; //#17853 + var _Mu = $k[--$j]; //#17853 + var _Mv = $k[--$j]; //#17853 + var _Mw = $k[--$j]; //#17853 + var _Mx = $k[--$j]; //#17853 + var _My = $k[--$j]; //#17853 + var _Mz = $k[--$j]; //#17853 + var _N0 = $k[--$j]; //#17853 + var _N1 = $k[--$j]; //#17853 + var _N2 = $k[--$j]; //#17853 + var _N3 = $k[--$j]; //#17853 + $k[$j++] = _N0; //#17870 + $k[$j++] = _Mz; //#17870 + $k[$j++] = _My; //#17870 + $k[$j++] = _Mx; //#17870 + $k[$j++] = _Mw; //#17870 + $k[$j++] = _Mv; //#17870 + $k[$j++] = _Mu; //#17870 + $k[$j++] = _Mt; //#17870 + $k[$j++] = _N3; //#17870 + $k[$j++] = _N2; //#17870 + $forall(_N1, function() { //#17870 if ($k[--$j]() === true) { return true; - } - var _N5 = $k[--$j]; - var _N6 = $k[--$j]; - $k[$j++] = _N6; - $k[$j++] = _N5; - if (_N6 < 0) { - var _N7 = $k[--$j]; - var _N8 = $k[--$j]; - $k[$j++] = $f(_N8 + $1.mrows); - $k[$j++] = $f(_N7 + $f(4 - $f($1.mrows + 4) % 8)); - } - var _NB = $k[--$j]; - $k[$j++] = _NB; - if (_NB < 0) { - var _ND = $k[--$j]; - var _NE = $k[--$j]; - $k[$j++] = $f(_NE + $f(4 - $f($1.mcols + 4) % 8)); - $k[$j++] = $f(_ND + $1.mcols); - } - var _NG = $k[--$j]; - var _NH = $k[--$j]; - $k[$j++] = _NH; - $k[$j++] = _NG; - if (_NH >= $1.mrows) { - var _NJ = $k[--$j]; - var _NK = $k[--$j]; - $k[$j++] = $f(_NK - $1.mrows); - $k[$j++] = _NJ; - } - var _NM = $k[--$j]; - var _NN = $k[--$j]; - var _NQ = $k[--$j]; - var _NR = $k[--$j]; - $put($1.mmat, $f(_NM + _NN * $1.mcols), $k[--$j]); - $k[$j++] = _NR; - $k[$j++] = _NQ; - }); - }; - var _Nj = $a([ function() { - var _NT = $k[--$j]; - var _NU = $k[--$j]; - $k[$j++] = _NU; - $k[$j++] = _NT; - $k[$j++] = $f(_NU - 2); - $k[$j++] = $f(_NT - 2); + } //#17856 + var _N5 = $k[--$j]; //#17857 + var _N6 = $k[--$j]; //#17857 + $k[$j++] = _N6; //#17860 + $k[$j++] = _N5; //#17860 + if (_N6 < 0) { //#17860 + var _N7 = $k[--$j]; //#17858 + var _N8 = $k[--$j]; //#17858 + $k[$j++] = $f(_N8 + $1.mrows); //#17859 + $k[$j++] = $f(_N7 + ($f(4 - ($f($1.mrows + 4) % 8)))); //#17859 + } //#17859 + var _NB = $k[--$j]; //#17861 + $k[$j++] = _NB; //#17864 + if (_NB < 0) { //#17864 + var _ND = $k[--$j]; //#17862 + var _NE = $k[--$j]; //#17862 + $k[$j++] = $f(_NE + ($f(4 - ($f($1.mcols + 4) % 8)))); //#17863 + $k[$j++] = $f(_ND + $1.mcols); //#17863 + } //#17863 + var _NG = $k[--$j]; //#17865 + var _NH = $k[--$j]; //#17865 + $k[$j++] = _NH; //#17867 + $k[$j++] = _NG; //#17867 + if (_NH >= $1.mrows) { //#17867 + var _NJ = $k[--$j]; //#17866 + var _NK = $k[--$j]; //#17866 + $k[$j++] = $f(_NK - $1.mrows); //#17866 + $k[$j++] = _NJ; //#17866 + } //#17866 + var _NM = $k[--$j]; //#17868 + var _NN = $k[--$j]; //#17868 + var _NQ = $k[--$j]; //#17869 + var _NR = $k[--$j]; //#17869 + $put($1.mmat, $f(_NM + (_NN * $1.mcols)), $k[--$j]); //#17869 + $k[$j++] = _NR; //#17869 + $k[$j++] = _NQ; //#17869 + }); //#17869 + }; //#17871 + var _Nj = $a([function() { + var _NT = $k[--$j]; //#17875 + var _NU = $k[--$j]; //#17875 + $k[$j++] = _NU; //#17875 + $k[$j++] = _NT; //#17875 + $k[$j++] = $f(_NU - 2); //#17875 + $k[$j++] = $f(_NT - 2); //#17875 }, function() { - var _NV = $k[--$j]; - var _NW = $k[--$j]; - $k[$j++] = _NW; - $k[$j++] = _NV; - $k[$j++] = $f(_NW - 2); - $k[$j++] = $f(_NV - 1); + var _NV = $k[--$j]; //#17875 + var _NW = $k[--$j]; //#17875 + $k[$j++] = _NW; //#17875 + $k[$j++] = _NV; //#17875 + $k[$j++] = $f(_NW - 2); //#17875 + $k[$j++] = $f(_NV - 1); //#17875 }, function() { - var _NX = $k[--$j]; - var _NY = $k[--$j]; - $k[$j++] = _NY; - $k[$j++] = _NX; - $k[$j++] = $f(_NY - 1); - $k[$j++] = $f(_NX - 2); + var _NX = $k[--$j]; //#17876 + var _NY = $k[--$j]; //#17876 + $k[$j++] = _NY; //#17876 + $k[$j++] = _NX; //#17876 + $k[$j++] = $f(_NY - 1); //#17876 + $k[$j++] = $f(_NX - 2); //#17876 }, function() { - var _NZ = $k[--$j]; - var _Na = $k[--$j]; - $k[$j++] = _Na; - $k[$j++] = _NZ; - $k[$j++] = $f(_Na - 1); - $k[$j++] = $f(_NZ - 1); + var _NZ = $k[--$j]; //#17876 + var _Na = $k[--$j]; //#17876 + $k[$j++] = _Na; //#17876 + $k[$j++] = _NZ; //#17876 + $k[$j++] = $f(_Na - 1); //#17876 + $k[$j++] = $f(_NZ - 1); //#17876 }, function() { - var _Nb = $k[--$j]; - var _Nc = $k[--$j]; - $k[$j++] = _Nc; - $k[$j++] = _Nb; - $k[$j++] = $f(_Nc - 1); - $k[$j++] = _Nb; + var _Nb = $k[--$j]; //#17877 + var _Nc = $k[--$j]; //#17877 + $k[$j++] = _Nc; //#17877 + $k[$j++] = _Nb; //#17877 + $k[$j++] = $f(_Nc - 1); //#17877 + $k[$j++] = _Nb; //#17877 }, function() { - var _Nd = $k[--$j]; - var _Ne = $k[--$j]; - $k[$j++] = _Ne; - $k[$j++] = _Nd; - $k[$j++] = _Ne; - $k[$j++] = $f(_Nd - 2); + var _Nd = $k[--$j]; //#17877 + var _Ne = $k[--$j]; //#17877 + $k[$j++] = _Ne; //#17877 + $k[$j++] = _Nd; //#17877 + $k[$j++] = _Ne; //#17877 + $k[$j++] = $f(_Nd - 2); //#17877 }, function() { - var _Nf = $k[--$j]; - var _Ng = $k[--$j]; - $k[$j++] = _Ng; - $k[$j++] = _Nf; - $k[$j++] = _Ng; - $k[$j++] = $f(_Nf - 1); + var _Nf = $k[--$j]; //#17878 + var _Ng = $k[--$j]; //#17878 + $k[$j++] = _Ng; //#17878 + $k[$j++] = _Nf; //#17878 + $k[$j++] = _Ng; //#17878 + $k[$j++] = $f(_Nf - 1); //#17878 }, function() { - var _Nh = $k[--$j]; - var _Ni = $k[--$j]; - $k[$j++] = _Ni; - $k[$j++] = _Nh; - $k[$j++] = _Ni; - $k[$j++] = _Nh; - } ]); - $1.dmn = _Nj; - var _Ns = $a([ function() { - $k[$j++] = $f($1.mrows - 1); - $k[$j++] = 0; + var _Nh = $k[--$j]; //#17878 + var _Ni = $k[--$j]; //#17878 + $k[$j++] = _Ni; //#17878 + $k[$j++] = _Nh; //#17878 + $k[$j++] = _Ni; //#17878 + $k[$j++] = _Nh; //#17878 + }]); //#17878 + $1.dmn = _Nj; //#17879 + var _Ns = $a([function() { + $k[$j++] = $f($1.mrows - 1); //#17882 + $k[$j++] = 0; //#17882 }, function() { - $k[$j++] = $f($1.mrows - 1); - $k[$j++] = 1; + $k[$j++] = $f($1.mrows - 1); //#17882 + $k[$j++] = 1; //#17882 }, function() { - $k[$j++] = $f($1.mrows - 1); - $k[$j++] = 2; + $k[$j++] = $f($1.mrows - 1); //#17883 + $k[$j++] = 2; //#17883 }, function() { - $k[$j++] = 0; - $k[$j++] = $f($1.mcols - 2); + $k[$j++] = 0; //#17883 + $k[$j++] = $f($1.mcols - 2); //#17883 }, function() { - $k[$j++] = 0; - $k[$j++] = $f($1.mcols - 1); + $k[$j++] = 0; //#17884 + $k[$j++] = $f($1.mcols - 1); //#17884 }, function() { - $k[$j++] = 1; - $k[$j++] = $f($1.mcols - 1); + $k[$j++] = 1; //#17884 + $k[$j++] = $f($1.mcols - 1); //#17884 }, function() { - $k[$j++] = 2; - $k[$j++] = $f($1.mcols - 1); + $k[$j++] = 2; //#17885 + $k[$j++] = $f($1.mcols - 1); //#17885 }, function() { - $k[$j++] = 3; - $k[$j++] = $f($1.mcols - 1); - } ]); - $1.dmc1 = _Ns; - var _O1 = $a([ function() { - $k[$j++] = $f($1.mrows - 3); - $k[$j++] = 0; + $k[$j++] = 3; //#17885 + $k[$j++] = $f($1.mcols - 1); //#17885 + }]); //#17885 + $1.dmc1 = _Ns; //#17886 + var _O1 = $a([function() { + $k[$j++] = $f($1.mrows - 3); //#17889 + $k[$j++] = 0; //#17889 }, function() { - $k[$j++] = $f($1.mrows - 2); - $k[$j++] = 0; + $k[$j++] = $f($1.mrows - 2); //#17889 + $k[$j++] = 0; //#17889 }, function() { - $k[$j++] = $f($1.mrows - 1); - $k[$j++] = 0; + $k[$j++] = $f($1.mrows - 1); //#17890 + $k[$j++] = 0; //#17890 }, function() { - $k[$j++] = 0; - $k[$j++] = $f($1.mcols - 4); + $k[$j++] = 0; //#17890 + $k[$j++] = $f($1.mcols - 4); //#17890 }, function() { - $k[$j++] = 0; - $k[$j++] = $f($1.mcols - 3); + $k[$j++] = 0; //#17891 + $k[$j++] = $f($1.mcols - 3); //#17891 }, function() { - $k[$j++] = 0; - $k[$j++] = $f($1.mcols - 2); + $k[$j++] = 0; //#17891 + $k[$j++] = $f($1.mcols - 2); //#17891 }, function() { - $k[$j++] = 0; - $k[$j++] = $f($1.mcols - 1); + $k[$j++] = 0; //#17892 + $k[$j++] = $f($1.mcols - 1); //#17892 }, function() { - $k[$j++] = 1; - $k[$j++] = $f($1.mcols - 1); - } ]); - $1.dmc2 = _O1; - var _OA = $a([ function() { - $k[$j++] = $f($1.mrows - 3); - $k[$j++] = 0; + $k[$j++] = 1; //#17892 + $k[$j++] = $f($1.mcols - 1); //#17892 + }]); //#17892 + $1.dmc2 = _O1; //#17893 + var _OA = $a([function() { + $k[$j++] = $f($1.mrows - 3); //#17896 + $k[$j++] = 0; //#17896 }, function() { - $k[$j++] = $f($1.mrows - 2); - $k[$j++] = 0; + $k[$j++] = $f($1.mrows - 2); //#17896 + $k[$j++] = 0; //#17896 }, function() { - $k[$j++] = $f($1.mrows - 1); - $k[$j++] = 0; + $k[$j++] = $f($1.mrows - 1); //#17897 + $k[$j++] = 0; //#17897 }, function() { - $k[$j++] = 0; - $k[$j++] = $f($1.mcols - 2); + $k[$j++] = 0; //#17897 + $k[$j++] = $f($1.mcols - 2); //#17897 }, function() { - $k[$j++] = 0; - $k[$j++] = $f($1.mcols - 1); + $k[$j++] = 0; //#17898 + $k[$j++] = $f($1.mcols - 1); //#17898 }, function() { - $k[$j++] = 1; - $k[$j++] = $f($1.mcols - 1); + $k[$j++] = 1; //#17898 + $k[$j++] = $f($1.mcols - 1); //#17898 }, function() { - $k[$j++] = 2; - $k[$j++] = $f($1.mcols - 1); + $k[$j++] = 2; //#17899 + $k[$j++] = $f($1.mcols - 1); //#17899 }, function() { - $k[$j++] = 3; - $k[$j++] = $f($1.mcols - 1); - } ]); - $1.dmc3 = _OA; - var _OK = $a([ function() { - $k[$j++] = $f($1.mrows - 1); - $k[$j++] = 0; + $k[$j++] = 3; //#17899 + $k[$j++] = $f($1.mcols - 1); //#17899 + }]); //#17899 + $1.dmc3 = _OA; //#17900 + var _OK = $a([function() { + $k[$j++] = $f($1.mrows - 1); //#17903 + $k[$j++] = 0; //#17903 }, function() { - $k[$j++] = $f($1.mrows - 1); - $k[$j++] = $f($1.mcols - 1); + $k[$j++] = $f($1.mrows - 1); //#17903 + $k[$j++] = $f($1.mcols - 1); //#17903 }, function() { - $k[$j++] = 0; - $k[$j++] = $f($1.mcols - 3); + $k[$j++] = 0; //#17904 + $k[$j++] = $f($1.mcols - 3); //#17904 }, function() { - $k[$j++] = 0; - $k[$j++] = $f($1.mcols - 2); + $k[$j++] = 0; //#17904 + $k[$j++] = $f($1.mcols - 2); //#17904 }, function() { - $k[$j++] = 0; - $k[$j++] = $f($1.mcols - 1); + $k[$j++] = 0; //#17905 + $k[$j++] = $f($1.mcols - 1); //#17905 }, function() { - $k[$j++] = 1; - $k[$j++] = $f($1.mcols - 3); + $k[$j++] = 1; //#17905 + $k[$j++] = $f($1.mcols - 3); //#17905 }, function() { - $k[$j++] = 1; - $k[$j++] = $f($1.mcols - 2); + $k[$j++] = 1; //#17906 + $k[$j++] = $f($1.mcols - 2); //#17906 }, function() { - $k[$j++] = 1; - $k[$j++] = $f($1.mcols - 1); - } ]); - $1.dmc4 = _OK; - $k[$j++] = Infinity; - for (var _ON = 0, _OO = $1.mrows * $1.mcols; _ON < _OO; _ON++) { - $k[$j++] = -1; - } - $1.mmat = $a(); - for (var _OR = $1.cws.length - 1; _OR >= 0; _OR -= 1) { - $k[$j++] = $get($1.cws, _OR); - } - $k[$j++] = 4; - $k[$j++] = 0; - for (;;) { - var _OU = $k[--$j]; - var _OV = $k[--$j]; - $k[$j++] = _OV; - $k[$j++] = _OU; - if (_OU == 0 && _OV == $1.mrows) { - $k[$j++] = $1.dmc1; - $1.module(); - } - var _OY = $k[--$j]; - var _OZ = $k[--$j]; - $k[$j++] = _OZ; - $k[$j++] = _OY; - if (_OY == 0 && _OZ == $f($1.mrows - 2) && $1.mcols % 4 != 0) { - $k[$j++] = $1.dmc2; - $1.module(); - } - var _Od = $k[--$j]; - var _Oe = $k[--$j]; - $k[$j++] = _Oe; - $k[$j++] = _Od; - if (_Od == 0 && _Oe == $f($1.mrows - 2) && $1.mcols % 8 == 4) { - $k[$j++] = $1.dmc3; - $1.module(); - } - var _Oi = $k[--$j]; - var _Oj = $k[--$j]; - $k[$j++] = _Oj; - $k[$j++] = _Oi; - if (_Oi == 2 && _Oj == $f($1.mrows + 4) && $1.mcols % 8 == 0) { - $k[$j++] = $1.dmc4; - $1.module(); - } - for (;;) { - var _On = $k[--$j]; - var _Oo = $k[--$j]; - $k[$j++] = _Oo; - $k[$j++] = _On; - if (_On >= 0 && _Oo < $1.mrows) { - var _Oq = $k[--$j]; - var _Or = $k[--$j]; - $k[$j++] = _Or; - $k[$j++] = _Oq; - if ($get($1.mmat, $f(_Oq + _Or * $1.mcols)) == -1) { - $k[$j++] = $1.dmn; - $1.module(); - } - } - var _Ow = $k[--$j]; - var _Ox = $k[--$j]; - $k[$j++] = $f(_Ox - 2); - $k[$j++] = $f(_Ow + 2); - if (!($f(_Ow + 2) < $1.mcols && $f(_Ox - 2) >= 0)) { - break; - } - } - var _Oz = $k[--$j]; - var _P0 = $k[--$j]; - $k[$j++] = $f(_P0 + 1); - $k[$j++] = $f(_Oz + 3); - for (;;) { - var _P1 = $k[--$j]; - var _P2 = $k[--$j]; - $k[$j++] = _P2; - $k[$j++] = _P1; - if (_P1 < $1.mcols && _P2 >= 0) { - var _P4 = $k[--$j]; - var _P5 = $k[--$j]; - $k[$j++] = _P5; - $k[$j++] = _P4; - if ($get($1.mmat, $f(_P4 + _P5 * $1.mcols)) == -1) { - $k[$j++] = $1.dmn; - $1.module(); - } - } - var _PA = $k[--$j]; - var _PB = $k[--$j]; - $k[$j++] = $f(_PB + 2); - $k[$j++] = $f(_PA - 2); - if (!($f(_PA - 2) >= 0 && $f(_PB + 2) < $1.mrows)) { - break; - } - } - var _PD = $k[--$j]; - var _PE = $k[--$j]; - $k[$j++] = $f(_PE + 3); - $k[$j++] = $f(_PD + 1); - if (!($f(_PD + 1) < $1.mcols || $f(_PE + 3) < $1.mrows)) { - $j -= 2; - break; - } - } - if ($get($1.mmat, $f($1.mrows * $1.mcols - 1)) == -1) { - $puti($1.mmat, $f($1.mrows * $f($1.mcols - 1) - 2), $a([ 1, 0 ])); - $puti($1.mmat, $f($1.mrows * $1.mcols - 2), $a([ 0, 1 ])); - } - $1.pixs = $a($1.rows * $1.cols); - $1.cwpos = 0; - for (var _PY = 0, _PX = $f($1.rows - 1); _PY <= _PX; _PY += 1) { - $1.i = _PY; - if ($1.i % ($1.rrows + 2) == 0) { - $k[$j++] = $1.pixs; - $k[$j++] = $1.i * $1.cols; - $k[$j++] = Infinity; - for (var _Pf = 0, _Pg = ~~($1.cols / 2); _Pf < _Pg; _Pf++) { - $k[$j++] = 1; - $k[$j++] = 0; - } - var _Ph = $a(); - var _Pi = $k[--$j]; - $puti($k[--$j], _Pi, _Ph); - } - if ($1.i % ($1.rrows + 2) == $1.rrows + 1) { - $k[$j++] = $1.pixs; - $k[$j++] = $1.i * $1.cols; - $k[$j++] = Infinity; - for (var _Pr = 0, _Ps = $1.cols; _Pr < _Ps; _Pr++) { - $k[$j++] = 1; - } - var _Pt = $a(); - var _Pu = $k[--$j]; - $puti($k[--$j], _Pu, _Pt); - } - if ($1.i % ($1.rrows + 2) != 0 && $1.i % ($1.rrows + 2) != $1.rrows + 1) { - for (var _Q3 = 0, _Q2 = $f($1.cols - 1); _Q3 <= _Q2; _Q3 += 1) { - $1.j = _Q3; - if ($1.j % ($1.rcols + 2) == 0) { - $put($1.pixs, $f($1.i * $1.cols + $1.j), 1); - } - if ($1.j % ($1.rcols + 2) == $1.rcols + 1) { - $put($1.pixs, $f($1.i * $1.cols + $1.j), $1.i % 2); - } - if ($1.j % ($1.rcols + 2) != 0 && $1.j % ($1.rcols + 2) != $1.rcols + 1) { - $put($1.pixs, $f($1.i * $1.cols + $1.j), $get($1.mmat, $1.cwpos)); - $1.cwpos = $1.cwpos + 1; - } - } - } - } - var _Qb = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", $1.cols ], [ "pixy", $1.rows ], [ "height", $1.rows * 2 / 72 ], [ "width", $1.cols * 2 / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _Qb; - if (!$1.dontdraw) { - $0.renmatrix(); - } + $k[$j++] = 1; //#17906 + $k[$j++] = $f($1.mcols - 1); //#17906 + }]); //#17906 + $1.dmc4 = _OK; //#17907 + $k[$j++] = Infinity; //#17909 + for (var _ON = 0, _OO = $1.mrows * $1.mcols; _ON < _OO; _ON++) { //#17909 + $k[$j++] = -1; //#17909 + } //#17909 + $1.mmat = $a(); //#17909 + for (var _OR = $1.cws.length - 1; _OR >= 0; _OR -= 1) { //#17910 + $k[$j++] = $get($1.cws, _OR); //#17910 + } //#17910 + $k[$j++] = 4; //#17950 + $k[$j++] = 0; //#17950 + for (;;) { //#17950 + var _OU = $k[--$j]; //#17913 + var _OV = $k[--$j]; //#17913 + $k[$j++] = _OV; //#17915 + $k[$j++] = _OU; //#17915 + if ((_OU == 0) && (_OV == $1.mrows)) { //#17915 + $k[$j++] = $1.dmc1; //#17914 + $1.module(); //#17914 + } //#17914 + var _OY = $k[--$j]; //#17916 + var _OZ = $k[--$j]; //#17916 + $k[$j++] = _OZ; //#17918 + $k[$j++] = _OY; //#17918 + if (((_OY == 0) && (_OZ == $f($1.mrows - 2))) && (($1.mcols % 4) != 0)) { //#17918 + $k[$j++] = $1.dmc2; //#17917 + $1.module(); //#17917 + } //#17917 + var _Od = $k[--$j]; //#17919 + var _Oe = $k[--$j]; //#17919 + $k[$j++] = _Oe; //#17921 + $k[$j++] = _Od; //#17921 + if (((_Od == 0) && (_Oe == $f($1.mrows - 2))) && (($1.mcols % 8) == 4)) { //#17921 + $k[$j++] = $1.dmc3; //#17920 + $1.module(); //#17920 + } //#17920 + var _Oi = $k[--$j]; //#17922 + var _Oj = $k[--$j]; //#17922 + $k[$j++] = _Oj; //#17924 + $k[$j++] = _Oi; //#17924 + if (((_Oi == 2) && (_Oj == $f($1.mrows + 4))) && (($1.mcols % 8) == 0)) { //#17924 + $k[$j++] = $1.dmc4; //#17923 + $1.module(); //#17923 + } //#17923 + for (;;) { //#17934 + var _On = $k[--$j]; //#17927 + var _Oo = $k[--$j]; //#17927 + $k[$j++] = _Oo; //#17931 + $k[$j++] = _On; //#17931 + if ((_On >= 0) && (_Oo < $1.mrows)) { //#17931 + var _Oq = $k[--$j]; //#17928 + var _Or = $k[--$j]; //#17928 + $k[$j++] = _Or; //#17930 + $k[$j++] = _Oq; //#17930 + if ($get($1.mmat, $f(_Oq + (_Or * $1.mcols))) == -1) { //#17930 + $k[$j++] = $1.dmn; //#17929 + $1.module(); //#17929 + } //#17929 + } //#17929 + var _Ow = $k[--$j]; //#17932 + var _Ox = $k[--$j]; //#17932 + $k[$j++] = $f(_Ox - 2); //#17933 + $k[$j++] = $f(_Ow + 2); //#17933 + if (!(($f(_Ow + 2) < $1.mcols) && ($f(_Ox - 2) >= 0))) { //#17933 + break; //#17933 + } //#17933 + } //#17933 + var _Oz = $k[--$j]; //#17935 + var _P0 = $k[--$j]; //#17935 + $k[$j++] = $f(_P0 + 1); //#17945 + $k[$j++] = $f(_Oz + 3); //#17945 + for (;;) { //#17945 + var _P1 = $k[--$j]; //#17938 + var _P2 = $k[--$j]; //#17938 + $k[$j++] = _P2; //#17942 + $k[$j++] = _P1; //#17942 + if ((_P1 < $1.mcols) && (_P2 >= 0)) { //#17942 + var _P4 = $k[--$j]; //#17939 + var _P5 = $k[--$j]; //#17939 + $k[$j++] = _P5; //#17941 + $k[$j++] = _P4; //#17941 + if ($get($1.mmat, $f(_P4 + (_P5 * $1.mcols))) == -1) { //#17941 + $k[$j++] = $1.dmn; //#17940 + $1.module(); //#17940 + } //#17940 + } //#17940 + var _PA = $k[--$j]; //#17943 + var _PB = $k[--$j]; //#17943 + $k[$j++] = $f(_PB + 2); //#17944 + $k[$j++] = $f(_PA - 2); //#17944 + if (!(($f(_PA - 2) >= 0) && ($f(_PB + 2) < $1.mrows))) { //#17944 + break; //#17944 + } //#17944 + } //#17944 + var _PD = $k[--$j]; //#17946 + var _PE = $k[--$j]; //#17946 + $k[$j++] = $f(_PE + 3); //#17948 + $k[$j++] = $f(_PD + 1); //#17948 + if (!(($f(_PD + 1) < $1.mcols) || ($f(_PE + 3) < $1.mrows))) { //#17948 + $j -= 2; //#17948 + break; //#17948 + } //#17948 + } //#17948 + if ($get($1.mmat, $f(($1.mrows * $1.mcols) - 1)) == -1) { //#17956 + $puti($1.mmat, $f(($1.mrows * $f($1.mcols - 1)) - 2), $a([1, 0])); //#17954 + $puti($1.mmat, $f(($1.mrows * $1.mcols) - 2), $a([0, 1])); //#17955 + } //#17955 + $1.pixs = $a($1.rows * $1.cols); //#17959 + $1.cwpos = 0; //#17960 + for (var _PY = 0, _PX = $f($1.rows - 1); _PY <= _PX; _PY += 1) { //#17976 + $1.i = _PY; //#17962 + if (($1.i % ($1.rrows + 2)) == 0) { //#17963 + $k[$j++] = $1.pixs; //#17963 + $k[$j++] = $1.i * $1.cols; //#17963 + $k[$j++] = Infinity; //#17963 + for (var _Pf = 0, _Pg = ~~($1.cols / 2); _Pf < _Pg; _Pf++) { //#17963 + $k[$j++] = 1; //#17963 + $k[$j++] = 0; //#17963 + } //#17963 + var _Ph = $a(); //#17963 + var _Pi = $k[--$j]; //#17963 + $puti($k[--$j], _Pi, _Ph); //#17963 + } //#17963 + if (($1.i % ($1.rrows + 2)) == ($1.rrows + 1)) { //#17964 + $k[$j++] = $1.pixs; //#17964 + $k[$j++] = $1.i * $1.cols; //#17964 + $k[$j++] = Infinity; //#17964 + for (var _Pr = 0, _Ps = $1.cols; _Pr < _Ps; _Pr++) { //#17964 + $k[$j++] = 1; //#17964 + } //#17964 + var _Pt = $a(); //#17964 + var _Pu = $k[--$j]; //#17964 + $puti($k[--$j], _Pu, _Pt); //#17964 + } //#17964 + if ((($1.i % ($1.rrows + 2)) != 0) && (($1.i % ($1.rrows + 2)) != ($1.rrows + 1))) { //#17975 + for (var _Q3 = 0, _Q2 = $f($1.cols - 1); _Q3 <= _Q2; _Q3 += 1) { //#17974 + $1.j = _Q3; //#17967 + if (($1.j % ($1.rcols + 2)) == 0) { //#17968 + $put($1.pixs, $f(($1.i * $1.cols) + $1.j), 1); //#17968 + } //#17968 + if (($1.j % ($1.rcols + 2)) == ($1.rcols + 1)) { //#17969 + $put($1.pixs, $f(($1.i * $1.cols) + $1.j), $1.i % 2); //#17969 + } //#17969 + if ((($1.j % ($1.rcols + 2)) != 0) && (($1.j % ($1.rcols + 2)) != ($1.rcols + 1))) { //#17973 + $put($1.pixs, $f(($1.i * $1.cols) + $1.j), $get($1.mmat, $1.cwpos)); //#17971 + $1.cwpos = $1.cwpos + 1; //#17972 + } //#17972 + } //#17972 + } //#17972 + } //#17972 + var _Qb = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", $1.cols], + ["pixy", $1.rows], + ["height", ($1.rows * 2) / 72], + ["width", ($1.cols * 2) / 72], + ["opt", $1.options] + ]); //#17986 + $k[$j++] = _Qb; //#17989 + if (!$1.dontdraw) { //#17989 + $0.renmatrix(); //#17989 + } //#17989 }; $0.datamatrixrectangular = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $put($1.options, "dontdraw", true); - $put($1.options, "format", "rectangle"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.datamatrix(); - var _9 = $k[--$j]; - $1[$k[--$j]] = _9; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#18019 + $1.options = $k[--$j]; //#18021 + $1.barcode = $k[--$j]; //#18022 + $1.dontdraw = false; //#18024 + $forall($1.options, function() { //#18035 + var _3 = $k[--$j]; //#18035 + $1[$k[--$j]] = _3; //#18035 + }); //#18035 + $put($1.options, "dontdraw", true); //#18038 + $put($1.options, "format", "rectangle"); //#18039 + $k[$j++] = 'args'; //#18041 + $k[$j++] = $1.barcode; //#18041 + $k[$j++] = $1.options; //#18041 + $0.datamatrix(); //#18041 + var _9 = $k[--$j]; //#18041 + $1[$k[--$j]] = _9; //#18041 + $put($1.args, "opt", $1.options); //#18043 + $k[$j++] = $1.args; //#18046 + if (!$1.dontdraw) { //#18046 + $0.renmatrix(); //#18046 + } //#18046 }; $0.datamatrixrectangularextension = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.dmre = false; - $1.dindmre = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $put($1.options, "dontdraw", true); - $put($1.options, "format", "rectangle"); - if (!($1.dindmre || $1.dmre)) { - $put($1.options, "dmre", true); - } else { - $put($1.options, "dmre", $1.dmre); - $put($1.options, "dindmre", $1.dindmre); - } - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.datamatrix(); - var _G = $k[--$j]; - $1[$k[--$j]] = _G; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#18076 + $1.options = $k[--$j]; //#18078 + $1.barcode = $k[--$j]; //#18079 + $1.dontdraw = false; //#18081 + $1.dmre = false; //#18083 + $1.dindmre = false; //#18084 + $forall($1.options, function() { //#18095 + var _3 = $k[--$j]; //#18095 + $1[$k[--$j]] = _3; //#18095 + }); //#18095 + $put($1.options, "dontdraw", true); //#18098 + $put($1.options, "format", "rectangle"); //#18099 + if (!($1.dindmre || $1.dmre)) { //#18105 + $put($1.options, "dmre", true); //#18102 + } else { //#18105 + $put($1.options, "dmre", $1.dmre); //#18104 + $put($1.options, "dindmre", $1.dindmre); //#18105 + } //#18105 + $k[$j++] = 'args'; //#18108 + $k[$j++] = $1.barcode; //#18108 + $k[$j++] = $1.options; //#18108 + $0.datamatrix(); //#18108 + var _G = $k[--$j]; //#18108 + $1[$k[--$j]] = _G; //#18108 + $put($1.args, "opt", $1.options); //#18110 + $k[$j++] = $1.args; //#18113 + if (!$1.dontdraw) { //#18113 + $0.renmatrix(); //#18113 + } //#18113 }; $0.mailmark = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.type = "unset"; - $1.parse = false; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - var _6 = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _6; - $k[$j++] = "barcode"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _9 = $k[--$j]; - $1[$k[--$j]] = _9; - $1.barlen = $1.barcode.length; - delete $1.options["parse"]; - var _D = new Map([ [ "7", "24x24" ], [ "9", "32x32" ], [ "29", "16x48" ] ]); - $1.version = $get(_D, $1["type"]); - var _G = new Map([ [ "7", "square" ], [ "9", "square" ], [ "29", "rectangle" ] ]); - $1.format = $get(_G, $1["type"]); - if ($1.barcode.length < 45) { - $k[$j++] = "bwipp.mailmarkBadLength"; - $k[$j++] = "Royal Mail Mailmark must contain at least 45 characters of Mailmark formatted data, including any required space padding"; - $0.raiseerror(); - } - if ($ne($geti($1.barcode, 0, 4), "JGB ")) { - $k[$j++] = "bwipp.mailmarkBadIndicator"; - $k[$j++] = "Royal Mail Mailmark must begin with JGB identifier"; - $0.raiseerror(); - } - $put($1.options, "dontdraw", true); - $put($1.options, "version", $1.version); - $put($1.options, "format", $1.format); - $put($1.options, "mailmark", true); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.datamatrix(); - var _U = $k[--$j]; - $1[$k[--$j]] = _U; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#18144 + $1.options = $k[--$j]; //#18146 + $1.barcode = $k[--$j]; //#18147 + $1.type = "unset"; //#18149 + $1.parse = false; //#18150 + $1.dontdraw = false; //#18151 + $forall($1.options, function() { //#18162 + var _3 = $k[--$j]; //#18162 + $1[$k[--$j]] = _3; //#18162 + }); //#18162 + var _6 = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#18168 + $1.fncvals = _6; //#18169 + $k[$j++] = 'barcode'; //#18170 + $k[$j++] = $1.barcode; //#18170 + $k[$j++] = $1.fncvals; //#18170 + $0.parseinput(); //#18170 + var _9 = $k[--$j]; //#18170 + $1[$k[--$j]] = _9; //#18170 + $1.barlen = $1.barcode.length; //#18171 + delete $1.options["parse"]; //#18172 + var _D = new Map([ + ["7", "24x24"], + ["9", "32x32"], + ["29", "16x48"] + ]); //#18178 + $1.version = $get(_D, $1['type']); //#18179 + var _G = new Map([ + ["7", "square"], + ["9", "square"], + ["29", "rectangle"] + ]); //#18184 + $1.format = $get(_G, $1['type']); //#18185 + if ($1.barcode.length < 45) { //#18190 + $k[$j++] = 'bwipp.mailmarkBadLength'; //#18189 + $k[$j++] = "Royal Mail Mailmark must contain at least 45 characters of Mailmark formatted data, including any required space padding"; //#18189 + $0.raiseerror(); //#18189 + } //#18189 + if ($ne($geti($1.barcode, 0, 4), "JGB ")) { //#18193 + $k[$j++] = 'bwipp.mailmarkBadIndicator'; //#18192 + $k[$j++] = "Royal Mail Mailmark must begin with JGB identifier"; //#18192 + $0.raiseerror(); //#18192 + } //#18192 + $put($1.options, "dontdraw", true); //#18196 + $put($1.options, "version", $1.version); //#18197 + $put($1.options, "format", $1.format); //#18198 + $put($1.options, "mailmark", true); //#18199 + $k[$j++] = 'args'; //#18200 + $k[$j++] = $1.barcode; //#18200 + $k[$j++] = $1.options; //#18200 + $0.datamatrix(); //#18200 + var _U = $k[--$j]; //#18200 + $1[$k[--$j]] = _U; //#18200 + $put($1.args, "opt", $1.options); //#18202 + $k[$j++] = $1.args; //#18205 + if (!$1.dontdraw) { //#18205 + $0.renmatrix(); //#18205 + } //#18205 }; $0.qrcode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.format = "unset"; - $1.version = "unset"; - $1.eclevel = "unset"; - $1.parse = false; - $1.parsefnc = false; - $1.mask = -1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.mask = ~~$1.mask; - if ($ne($1.version, "unset")) { - if ($eq($1.format, "unset")) { - $k[$j++] = "full"; - if ($eq($geti($1.version, 0, 1), "M")) { - $j--; - $k[$j++] = "micro"; - } - if ($eq($geti($1.version, 0, 1), "R")) { - $j--; - $k[$j++] = "rmqr"; - } - $1.format = $k[--$j]; - } - } else { - if ($eq($1.format, "unset")) { - $1.format = "full"; - } - } - if ($eq($1.eclevel, "unset")) { - $k[$j++] = "eclevel"; - if ($ne($1.format, "micro")) { - $k[$j++] = "M"; - } else { - $k[$j++] = "L"; - } - var _G = $k[--$j]; - $1[$k[--$j]] = _G; - } - $1.fn1 = -1; - var _L = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "eci", true ], [ "FNC1", $1.fn1 ] ]); - $1.fncvals = _L; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _O = $k[--$j]; - $1[$k[--$j]] = _O; - $1.msglen = $1.msg.length; - $1.fnc1first = false; - if ($1.msglen > 0) { - if ($get($1.msg, 0) == $1.fn1) { - $1.fnc1first = true; - $k[$j++] = Infinity; - var _X = $geti($1.msg, 1, $1.msglen - 1); - for (var _Y = 0, _Z = _X.length; _Y < _Z; _Y++) { - var _a = $get(_X, _Y); - $k[$j++] = _a; - if (_a == 37) { - var _b = $k[--$j]; - $k[$j++] = _b; - $k[$j++] = _b; - } - } - $1.msg = $a(); - $1.msglen = $1.msg.length; - } - } - var _e = $a([ "v1to9", "v10to26", "v27to40", "vM1", "vM2", "vM3", "vM4", "vR7x43", "vR7x59", "vR7x77", "vR7x99", "vR7x139", "vR9x43", "vR9x59", "vR9x77", "vR9x99", "vR9x139", "vR11x27", "vR11x43", "vR11x59", "vR11x77", "vR11x99", "vR11x139", "vR13x27", "vR13x43", "vR13x59", "vR13x77", "vR13x99", "vR13x139", "vR15x43", "vR15x59", "vR15x77", "vR15x99", "vR15x139", "vR17x43", "vR17x59", "vR17x77", "vR17x99", "vR17x139" ]); - $k[$j++] = 0; - for (var _f = 0, _g = _e.length; _f < _g; _f++) { - var _i = $k[--$j]; - $1[$get(_e, _f)] = _i; - $k[$j++] = $f(_i + 1); - } - $j--; - $1.N = 0; - $1.A = 1; - $1.B = 2; - $1.K = 3; - $1.E = 4; - $k[$j++] = Infinity; - $k[$j++] = Infinity; - for (var _j = 48; _j <= 57; _j += 1) { - $k[$j++] = _j; - } - var _k = $a(); - for (var _l = 0, _m = _k.length; _l < _m; _l++) { - $k[$j++] = $get(_k, _l); - $k[$j++] = -1; - } - $1.Nexcl = $d(); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - $k[$j++] = 32; - $k[$j++] = 36; - $k[$j++] = 37; - $k[$j++] = 42; - $k[$j++] = 43; - $k[$j++] = 45; - $k[$j++] = 46; - $k[$j++] = 47; - $k[$j++] = 58; - for (var _p = 65; _p <= 90; _p += 1) { - $k[$j++] = _p; - } - $k[$j++] = $1.fn1; - var _r = $a(); - for (var _s = 0, _t = _r.length; _s < _t; _s++) { - $k[$j++] = $get(_r, _s); - $k[$j++] = -1; - } - $1.Aexcl = $d(); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - for (var _w = 0; _w <= 31; _w += 1) { - $k[$j++] = _w; - } - $k[$j++] = 33; - $k[$j++] = 34; - $k[$j++] = 35; - $k[$j++] = 38; - $k[$j++] = 39; - $k[$j++] = 40; - $k[$j++] = 41; - $k[$j++] = 44; - for (var _x = 59; _x <= 64; _x += 1) { - $k[$j++] = _x; - } - for (var _y = 91; _y <= 127; _y += 1) { - $k[$j++] = _y; - } - for (var _z = 160; _z <= 223; _z += 1) { - $k[$j++] = _z; - } - var _10 = $a(); - for (var _11 = 0, _12 = _10.length; _11 < _12; _11++) { - $k[$j++] = $get(_10, _11); - $k[$j++] = -1; - } - $1.Bexcl = $d(); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - for (var _15 = 129; _15 <= 159; _15 += 1) { - $k[$j++] = _15; - } - for (var _16 = 224; _16 <= 235; _16 += 1) { - $k[$j++] = _16; - } - var _17 = $a(); - for (var _18 = 0, _19 = _17.length; _18 < _19; _18++) { - $k[$j++] = $get(_17, _18); - $k[$j++] = -1; - } - $1.Kexcl = $d(); - $k[$j++] = Infinity; - $k[$j++] = $a([ "0001", "0010", "0100", "1000", "0111" ]); - $k[$j++] = $a([ "0001", "0010", "0100", "1000", "0111" ]); - $k[$j++] = $a([ "0001", "0010", "0100", "1000", "0111" ]); - $k[$j++] = $a([ "", -1, -1, -1, -1 ]); - $k[$j++] = $a([ "0", "1", -1, -1, -1 ]); - $k[$j++] = $a([ "00", "01", "10", "11", -1 ]); - $k[$j++] = $a([ "000", "001", "010", "011", -1 ]); - for (var _1J = 0, _1K = 32; _1J < _1K; _1J++) { - $k[$j++] = $a([ "001", "010", "011", "100", -1 ]); - } - $1.mids = $a(); - $1.cclens = $a([ $a([ 10, 9, 8, 8 ]), $a([ 12, 11, 16, 10 ]), $a([ 14, 13, 16, 12 ]), $a([ 3, -1, -1, -1 ]), $a([ 4, 3, -1, -1 ]), $a([ 5, 4, 4, 3 ]), $a([ 6, 5, 5, 4 ]), $a([ 4, 3, 3, 2 ]), $a([ 5, 5, 4, 3 ]), $a([ 6, 5, 5, 4 ]), $a([ 7, 6, 5, 5 ]), $a([ 7, 6, 6, 5 ]), $a([ 5, 5, 4, 3 ]), $a([ 6, 5, 5, 4 ]), $a([ 7, 6, 5, 5 ]), $a([ 7, 6, 6, 5 ]), $a([ 8, 7, 6, 6 ]), $a([ 4, 4, 3, 2 ]), $a([ 6, 5, 5, 4 ]), $a([ 7, 6, 5, 5 ]), $a([ 7, 6, 6, 5 ]), $a([ 8, 7, 6, 6 ]), $a([ 8, 7, 7, 6 ]), $a([ 5, 5, 4, 3 ]), $a([ 6, 6, 5, 5 ]), $a([ 7, 6, 6, 5 ]), $a([ 8, 7, 6, 6 ]), $a([ 8, 7, 7, 6 ]), $a([ 8, 8, 7, 7 ]), $a([ 7, 6, 6, 5 ]), $a([ 7, 7, 6, 5 ]), $a([ 8, 7, 7, 6 ]), $a([ 8, 7, 7, 6 ]), $a([ 9, 8, 7, 7 ]), $a([ 7, 6, 6, 5 ]), $a([ 8, 7, 6, 6 ]), $a([ 8, 7, 7, 6 ]), $a([ 8, 8, 7, 6 ]), $a([ 9, 8, 8, 7 ]) ]); - $k[$j++] = Infinity; - for (var _21 = 0, _22 = 3; _21 < _22; _21++) { - $k[$j++] = 4; - } - $k[$j++] = 3; - $k[$j++] = 5; - $k[$j++] = 7; - $k[$j++] = 9; - for (var _23 = 0, _24 = 32; _23 < _24; _23++) { - $k[$j++] = 3; - } - $1.termlens = $a(); + var $1 = {}; //#18235 + $1.options = $k[--$j]; //#18237 + $1.barcode = $k[--$j]; //#18238 + $1.dontdraw = false; //#18240 + $1.format = "unset"; //#18241 + $1.version = "unset"; //#18242 + $1.eclevel = "unset"; //#18243 + $1.parse = false; //#18244 + $1.parsefnc = false; //#18245 + $1.mask = -1; //#18246 + $forall($1.options, function() { //#18257 + var _3 = $k[--$j]; //#18257 + $1[$k[--$j]] = _3; //#18257 + }); //#18257 + $1.mask = ~~$1.mask; //#18259 + if ($ne($1.version, "unset")) { //#18270 + if ($eq($1.format, "unset")) { //#18268 + $k[$j++] = "full"; //#18265 + if ($eq($geti($1.version, 0, 1), "M")) { //#18265 + $j--; //#18265 + $k[$j++] = "micro"; //#18265 + } //#18265 + if ($eq($geti($1.version, 0, 1), "R")) { //#18266 + $j--; //#18266 + $k[$j++] = "rmqr"; //#18266 + } //#18266 + $1.format = $k[--$j]; //#18267 + } //#18267 + } else { //#18270 + if ($eq($1.format, "unset")) { //#18270 + $1.format = "full"; //#18270 + } //#18270 + } //#18270 + if ($eq($1.eclevel, "unset")) { //#18274 + $k[$j++] = 'eclevel'; //#18274 + if ($ne($1.format, "micro")) { //#18274 + $k[$j++] = "M"; //#18274 + } else { //#18274 + $k[$j++] = "L"; //#18274 + } //#18274 + var _G = $k[--$j]; //#18274 + $1[$k[--$j]] = _G; //#18274 + } //#18274 + $1.fn1 = -1; //#18277 + var _L = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["eci", true], + ["FNC1", $1.fn1] + ]); //#18282 + $1.fncvals = _L; //#18283 + $k[$j++] = 'msg'; //#18284 + $k[$j++] = $1.barcode; //#18284 + $k[$j++] = $1.fncvals; //#18284 + $0.parseinput(); //#18284 + var _O = $k[--$j]; //#18284 + $1[$k[--$j]] = _O; //#18284 + $1.msglen = $1.msg.length; //#18285 + $1.fnc1first = false; //#18288 + if ($1.msglen > 0) { //#18295 + if ($get($1.msg, 0) == $1.fn1) { //#18294 + $1.fnc1first = true; //#18291 + $k[$j++] = Infinity; //#18292 + var _X = $geti($1.msg, 1, $1.msglen - 1); //#18292 + for (var _Y = 0, _Z = _X.length; _Y < _Z; _Y++) { //#18292 + var _a = $get(_X, _Y); //#18292 + $k[$j++] = _a; //#18292 + if (_a == 37) { //#18292 + var _b = $k[--$j]; //#18292 + $k[$j++] = _b; //#18292 + $k[$j++] = _b; //#18292 + } //#18292 + } //#18292 + $1.msg = $a(); //#18292 + $1.msglen = $1.msg.length; //#18293 + } //#18293 + } //#18293 + var _e = $a(['v1to9', 'v10to26', 'v27to40', 'vM1', 'vM2', 'vM3', 'vM4', 'vR7x43', 'vR7x59', 'vR7x77', 'vR7x99', 'vR7x139', 'vR9x43', 'vR9x59', 'vR9x77', 'vR9x99', 'vR9x139', 'vR11x27', 'vR11x43', 'vR11x59', 'vR11x77', 'vR11x99', 'vR11x139', 'vR13x27', 'vR13x43', 'vR13x59', 'vR13x77', 'vR13x99', 'vR13x139', 'vR15x43', 'vR15x59', 'vR15x77', 'vR15x99', 'vR15x139', 'vR17x43', 'vR17x59', 'vR17x77', 'vR17x99', 'vR17x139']); //#18306 + $k[$j++] = 0; //#18307 + for (var _f = 0, _g = _e.length; _f < _g; _f++) { //#18307 + var _i = $k[--$j]; //#18307 + $1[$get(_e, _f)] = _i; //#18307 + $k[$j++] = $f(_i + 1); //#18307 + } //#18307 + $j--; //#18307 + $1.N = 0; //#18313 + $1.A = 1; //#18313 + $1.B = 2; //#18313 + $1.K = 3; //#18313 + $1.E = 4; //#18313 + $k[$j++] = Infinity; //#18318 + $k[$j++] = Infinity; //#18317 + for (var _j = 48; _j <= 57; _j += 1) { //#18317 + $k[$j++] = _j; //#18317 + } //#18317 + var _k = $a(); //#18317 + for (var _l = 0, _m = _k.length; _l < _m; _l++) { //#18318 + $k[$j++] = $get(_k, _l); //#18318 + $k[$j++] = -1; //#18318 + } //#18318 + $1.Nexcl = $d(); //#18319 + $k[$j++] = Infinity; //#18326 + $k[$j++] = Infinity; //#18325 + $k[$j++] = 32; //#18324 + $k[$j++] = 36; //#18324 + $k[$j++] = 37; //#18324 + $k[$j++] = 42; //#18324 + $k[$j++] = 43; //#18324 + $k[$j++] = 45; //#18324 + $k[$j++] = 46; //#18324 + $k[$j++] = 47; //#18324 + $k[$j++] = 58; //#18324 + for (var _p = 65; _p <= 90; _p += 1) { //#18324 + $k[$j++] = _p; //#18324 + } //#18324 + $k[$j++] = $1.fn1; //#18325 + var _r = $a(); //#18325 + for (var _s = 0, _t = _r.length; _s < _t; _s++) { //#18326 + $k[$j++] = $get(_r, _s); //#18326 + $k[$j++] = -1; //#18326 + } //#18326 + $1.Aexcl = $d(); //#18327 + $k[$j++] = Infinity; //#18336 + $k[$j++] = Infinity; //#18335 + for (var _w = 0; _w <= 31; _w += 1) { //#18331 + $k[$j++] = _w; //#18331 + } //#18331 + $k[$j++] = 33; //#18333 + $k[$j++] = 34; //#18333 + $k[$j++] = 35; //#18333 + $k[$j++] = 38; //#18333 + $k[$j++] = 39; //#18333 + $k[$j++] = 40; //#18333 + $k[$j++] = 41; //#18333 + $k[$j++] = 44; //#18333 + for (var _x = 59; _x <= 64; _x += 1) { //#18333 + $k[$j++] = _x; //#18333 + } //#18333 + for (var _y = 91; _y <= 127; _y += 1) { //#18334 + $k[$j++] = _y; //#18334 + } //#18334 + for (var _z = 160; _z <= 223; _z += 1) { //#18335 + $k[$j++] = _z; //#18335 + } //#18335 + var _10 = $a(); //#18335 + for (var _11 = 0, _12 = _10.length; _11 < _12; _11++) { //#18336 + $k[$j++] = $get(_10, _11); //#18336 + $k[$j++] = -1; //#18336 + } //#18336 + $1.Bexcl = $d(); //#18337 + $k[$j++] = Infinity; //#18343 + $k[$j++] = Infinity; //#18342 + for (var _15 = 129; _15 <= 159; _15 += 1) { //#18341 + $k[$j++] = _15; //#18341 + } //#18341 + for (var _16 = 224; _16 <= 235; _16 += 1) { //#18342 + $k[$j++] = _16; //#18342 + } //#18342 + var _17 = $a(); //#18342 + for (var _18 = 0, _19 = _17.length; _18 < _19; _18++) { //#18343 + $k[$j++] = $get(_17, _18); //#18343 + $k[$j++] = -1; //#18343 + } //#18343 + $1.Kexcl = $d(); //#18344 + $k[$j++] = Infinity; //#18356 + $k[$j++] = $a(["0001", "0010", "0100", "1000", "0111"]); //#18357 + $k[$j++] = $a(["0001", "0010", "0100", "1000", "0111"]); //#18357 + $k[$j++] = $a(["0001", "0010", "0100", "1000", "0111"]); //#18357 + $k[$j++] = $a(["", -1, -1, -1, -1]); //#18357 + $k[$j++] = $a(["0", "1", -1, -1, -1]); //#18357 + $k[$j++] = $a(["00", "01", "10", "11", -1]); //#18357 + $k[$j++] = $a(["000", "001", "010", "011", -1]); //#18357 + for (var _1J = 0, _1K = 32; _1J < _1K; _1J++) { //#18357 + $k[$j++] = $a(["001", "010", "011", "100", -1]); //#18356 + } //#18356 + $1.mids = $a(); //#18356 + $1.cclens = $a([$a([10, 9, 8, 8]), $a([12, 11, 16, 10]), $a([14, 13, 16, 12]), $a([3, -1, -1, -1]), $a([4, 3, -1, -1]), $a([5, 4, 4, 3]), $a([6, 5, 5, 4]), $a([4, 3, 3, 2]), $a([5, 5, 4, 3]), $a([6, 5, 5, 4]), $a([7, 6, 5, 5]), $a([7, 6, 6, 5]), $a([5, 5, 4, 3]), $a([6, 5, 5, 4]), $a([7, 6, 5, 5]), $a([7, 6, 6, 5]), $a([8, 7, 6, 6]), $a([4, 4, 3, 2]), $a([6, 5, 5, 4]), $a([7, 6, 5, 5]), $a([7, 6, 6, 5]), $a([8, 7, 6, 6]), $a([8, 7, 7, 6]), $a([5, 5, 4, 3]), $a([6, 6, 5, 5]), $a([7, 6, 6, 5]), $a([8, 7, 6, 6]), $a([8, 7, 7, 6]), $a([8, 8, 7, 7]), $a([7, 6, 6, 5]), $a([7, 7, 6, 5]), $a([8, 7, 7, 6]), $a([8, 7, 7, 6]), $a([9, 8, 7, 7]), $a([7, 6, 6, 5]), $a([8, 7, 6, 6]), $a([8, 7, 7, 6]), $a([8, 8, 7, 6]), $a([9, 8, 8, 7])]); //#18400 + $k[$j++] = Infinity; //#18411 + for (var _21 = 0, _22 = 3; _21 < _22; _21++) { //#18405 + $k[$j++] = 4; //#18404 + } //#18404 + $k[$j++] = 3; //#18412 + $k[$j++] = 5; //#18412 + $k[$j++] = 7; //#18412 + $k[$j++] = 9; //#18412 + for (var _23 = 0, _24 = 32; _23 < _24; _23++) { //#18412 + $k[$j++] = 3; //#18411 + } //#18411 + $1.termlens = $a(); //#18411 $1.tobin = function() { - var _27 = $s($k[--$j]); - $k[$j++] = _27; - for (var _29 = 0, _28 = _27.length - 1; _29 <= _28; _29 += 1) { - var _2A = $k[--$j]; - $put(_2A, _29, 48); - $k[$j++] = _2A; - } - var _2B = $k[--$j]; - var _2E = $cvrs($s(_2B.length), $k[--$j], 2); - $puti(_2B, _2B.length - _2E.length, _2E); - $k[$j++] = _2B; - }; - $1.charmap = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:"; - $1.charvals = new Map(); - for (var _2F = 0; _2F <= 44; _2F += 1) { - $put($1.charvals, $get($1.charmap, _2F), _2F); - } + var _27 = $s($k[--$j]); //#18417 + $k[$j++] = _27; //#18417 + for (var _29 = 0, _28 = _27.length - 1; _29 <= _28; _29 += 1) { //#18417 + var _2A = $k[--$j]; //#18417 + $put(_2A, _29, 48); //#18417 + $k[$j++] = _2A; //#18417 + } //#18417 + var _2B = $k[--$j]; //#18418 + var _2E = $cvrs($s(_2B.length), $k[--$j], 2); //#18418 + $puti(_2B, _2B.length - _2E.length, _2E); //#18418 + $k[$j++] = _2B; //#18418 + }; //#18419 + $1.charmap = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:"; //#18422 + $1.charvals = new Map; //#18423 + for (var _2F = 0; _2F <= 44; _2F += 1) { //#18424 + $put($1.charvals, $get($1.charmap, _2F), _2F); //#18424 + } //#18424 $1.encA = function() { - $1.in = $k[--$j]; - if ($1.fnc1first) { - $k[$j++] = Infinity; - $forall($1.in, function() { - var _2M = $k[--$j]; - $k[$j++] = _2M; - if (_2M == $1.fn1) { - $j--; - $k[$j++] = 37; - } - }); - $1.in = $a(); - } - $1.out = $s(~~($1.in.length * 11 / 2) + 1); - $1.k = 0; - $1.m = 0; - for (;;) { - if ($1.k == $1.in.length) { - break; - } - if ($1.k < $1.in.length - 1) { - $k[$j++] = $f($get($1.charvals, $get($1.in, $1.k)) * 45 + $get($1.charvals, $get($1.in, $1.k + 1))); - $k[$j++] = 11; - $1.tobin(); - $1.k = $1.k + 2; - } else { - $k[$j++] = $get($1.charvals, $get($1.in, $1.k)); - $k[$j++] = 6; - $1.tobin(); - $1.k = $1.k + 1; - } - var _2m = $k[--$j]; - $puti($1.out, $1.m, _2m); - $1.m = _2m.length + $1.m; - } - $k[$j++] = $geti($1.out, 0, $1.m); - }; + $1.in = $k[--$j]; //#18427 + if ($1.fnc1first) { //#18430 + $k[$j++] = Infinity; //#18429 + $forall($1.in, function() { //#18429 + var _2M = $k[--$j]; //#18429 + $k[$j++] = _2M; //#18429 + if (_2M == $1.fn1) { //#18429 + $j--; //#18429 + $k[$j++] = 37; //#18429 + } //#18429 + }); //#18429 + $1.in = $a(); //#18429 + } //#18429 + $1.out = $s((~~(($1.in.length * 11) / 2)) + 1); //#18431 + $1.k = 0; //#18432 + $1.m = 0; //#18432 + for (;;) { //#18443 + if ($1.k == $1.in.length) { //#18433 + break; //#18433 + } //#18433 + if ($1.k < ($1.in.length - 1)) { //#18439 + $k[$j++] = $f(($get($1.charvals, $get($1.in, $1.k)) * 45) + $get($1.charvals, $get($1.in, $1.k + 1))); //#18435 + $k[$j++] = 11; //#18435 + $1.tobin(); //#18435 + $1.k = $1.k + 2; //#18436 + } else { //#18439 + $k[$j++] = $get($1.charvals, $get($1.in, $1.k)); //#18438 + $k[$j++] = 6; //#18438 + $1.tobin(); //#18438 + $1.k = $1.k + 1; //#18439 + } //#18439 + var _2m = $k[--$j]; //#18441 + $puti($1.out, $1.m, _2m); //#18441 + $1.m = _2m.length + $1.m; //#18442 + } //#18442 + $k[$j++] = $geti($1.out, 0, $1.m); //#18444 + }; //#18445 $1.encN = function() { - $1.in = $k[--$j]; - $1.out = $s(~~($1.in.length * 10 / 3) + 1); - $1.k = 0; - $1.m = 0; - for (;;) { - if ($1.k == $1.in.length) { - break; - } - if ($1.k < $1.in.length - 2) { - var _32 = $geti($1.in, $1.k, 3); - $k[$j++] = 0; - for (var _33 = 0, _34 = _32.length; _33 < _34; _33++) { - var _36 = $k[--$j]; - $k[$j++] = $f($get(_32, _33) + $f(_36 * 10 - 48)); - } - $k[$j++] = 10; - $1.tobin(); - $1.k = $1.k + 3; - } else { - if ($1.k == $1.in.length - 2) { - var _3C = $geti($1.in, $1.k, 2); - $k[$j++] = 0; - for (var _3D = 0, _3E = _3C.length; _3D < _3E; _3D++) { - var _3G = $k[--$j]; - $k[$j++] = $f($get(_3C, _3D) + $f(_3G * 10 - 48)); - } - $k[$j++] = 7; - $1.tobin(); - $1.k = $1.k + 2; - } else { - var _3K = $geti($1.in, $1.k, 1); - $k[$j++] = 0; - for (var _3L = 0, _3M = _3K.length; _3L < _3M; _3L++) { - var _3O = $k[--$j]; - $k[$j++] = $f($get(_3K, _3L) + $f(_3O * 10 - 48)); - } - $k[$j++] = 4; - $1.tobin(); - $1.k = $1.k + 1; - } - } - var _3Q = $k[--$j]; - $puti($1.out, $1.m, _3Q); - $1.m = _3Q.length + $1.m; - } - $k[$j++] = $geti($1.out, 0, $1.m); - }; + $1.in = $k[--$j]; //#18448 + $1.out = $s((~~(($1.in.length * 10) / 3)) + 1); //#18449 + $1.k = 0; //#18450 + $1.m = 0; //#18450 + for (;;) { //#18466 + if ($1.k == $1.in.length) { //#18451 + break; //#18451 + } //#18451 + if ($1.k < ($1.in.length - 2)) { //#18461 + var _32 = $geti($1.in, $1.k, 3); //#18453 + $k[$j++] = 0; //#18453 + for (var _33 = 0, _34 = _32.length; _33 < _34; _33++) { //#18453 + var _36 = $k[--$j]; //#18453 + $k[$j++] = $f($get(_32, _33) + ($f((_36 * 10) - 48))); //#18453 + } //#18453 + $k[$j++] = 10; //#18453 + $1.tobin(); //#18453 + $1.k = $1.k + 3; //#18454 + } else { //#18461 + if ($1.k == ($1.in.length - 2)) { //#18461 + var _3C = $geti($1.in, $1.k, 2); //#18457 + $k[$j++] = 0; //#18457 + for (var _3D = 0, _3E = _3C.length; _3D < _3E; _3D++) { //#18457 + var _3G = $k[--$j]; //#18457 + $k[$j++] = $f($get(_3C, _3D) + ($f((_3G * 10) - 48))); //#18457 + } //#18457 + $k[$j++] = 7; //#18457 + $1.tobin(); //#18457 + $1.k = $1.k + 2; //#18458 + } else { //#18461 + var _3K = $geti($1.in, $1.k, 1); //#18460 + $k[$j++] = 0; //#18460 + for (var _3L = 0, _3M = _3K.length; _3L < _3M; _3L++) { //#18460 + var _3O = $k[--$j]; //#18460 + $k[$j++] = $f($get(_3K, _3L) + ($f((_3O * 10) - 48))); //#18460 + } //#18460 + $k[$j++] = 4; //#18460 + $1.tobin(); //#18460 + $1.k = $1.k + 1; //#18461 + } //#18461 + } //#18461 + var _3Q = $k[--$j]; //#18464 + $puti($1.out, $1.m, _3Q); //#18464 + $1.m = _3Q.length + $1.m; //#18465 + } //#18465 + $k[$j++] = $geti($1.out, 0, $1.m); //#18467 + }; //#18468 $1.encB = function() { - $1.in = $k[--$j]; - if ($1.fnc1first) { - $k[$j++] = Infinity; - $forall($1.in, function() { - var _3a = $k[--$j]; - $k[$j++] = _3a; - if (_3a == $1.fn1) { - $j--; - $k[$j++] = 29; - } - }); - $1.in = $a(); - } - $1.out = $s($1.in.length * 8); - for (var _3h = 0, _3g = $1.in.length - 1; _3h <= _3g; _3h += 1) { - $1.k = _3h; - $k[$j++] = ~~$z($get($1.in, $1.k)); - $k[$j++] = 8; - $1.tobin(); - $puti($1.out, $1.k * 8, $k[--$j]); - } - $k[$j++] = $1.out; - }; + $1.in = $k[--$j]; //#18471 + if ($1.fnc1first) { //#18474 + $k[$j++] = Infinity; //#18473 + $forall($1.in, function() { //#18473 + var _3a = $k[--$j]; //#18473 + $k[$j++] = _3a; //#18473 + if (_3a == $1.fn1) { //#18473 + $j--; //#18473 + $k[$j++] = 29; //#18473 + } //#18473 + }); //#18473 + $1.in = $a(); //#18473 + } //#18473 + $1.out = $s($1.in.length * 8); //#18475 + for (var _3h = 0, _3g = $1.in.length - 1; _3h <= _3g; _3h += 1) { //#18480 + $1.k = _3h; //#18477 + $k[$j++] = ~~$z($get($1.in, $1.k)); //#18478 + $k[$j++] = 8; //#18478 + $1.tobin(); //#18478 + $puti($1.out, $1.k * 8, $k[--$j]); //#18479 + } //#18479 + $k[$j++] = $1.out; //#18481 + }; //#18482 $1.encK = function() { - $1.in = $k[--$j]; - $1.out = $s(~~($1.in.length / 2) * 13); - $1.k = 0; - $1.m = 0; - for (;;) { - if ($1.k == $1.in.length) { - break; - } - var _40 = $f($get($1.in, $1.k) * 256 + $get($1.in, $1.k + 1)); - $k[$j++] = _40; - if (_40 < 57408) { - $k[$j++] = 33088; - } else { - $k[$j++] = 49472; - } - var _41 = $k[--$j]; - var _43 = $f($k[--$j] - _41); - $k[$j++] = $f((_43 >>> 8) * 192 + (_43 & 255)); - $k[$j++] = 13; - $1.tobin(); - var _44 = $k[--$j]; - $puti($1.out, $1.m, _44); - $1.m = _44.length + $1.m; - $1.k = $1.k + 2; - } - $k[$j++] = $1.out; - }; + $1.in = $k[--$j]; //#18485 + $1.out = $s((~~($1.in.length / 2)) * 13); //#18486 + $1.k = 0; //#18487 + $1.m = 0; //#18487 + for (;;) { //#18495 + if ($1.k == $1.in.length) { //#18488 + break; //#18488 + } //#18488 + var _40 = $f(($get($1.in, $1.k) * 256) + $get($1.in, $1.k + 1)); //#18490 + $k[$j++] = _40; //#18490 + if (_40 < 57408) { //#18490 + $k[$j++] = 33088; //#18490 + } else { //#18490 + $k[$j++] = 49472; //#18490 + } //#18490 + var _41 = $k[--$j]; //#18490 + var _43 = $f($k[--$j] - _41); //#18491 + $k[$j++] = $f(((_43 >>> 8) * 192) + (_43 & 255)); //#18492 + $k[$j++] = 13; //#18492 + $1.tobin(); //#18492 + var _44 = $k[--$j]; //#18492 + $puti($1.out, $1.m, _44); //#18492 + $1.m = _44.length + $1.m; //#18493 + $1.k = $1.k + 2; //#18494 + } //#18494 + $k[$j++] = $1.out; //#18496 + }; //#18497 $1.encE = function() { - var _4C = $f(-$get($k[--$j], 0) - 1e6); - $k[$j++] = _4C; - if (_4C <= 127) { - $k[$j++] = 8; - $1.tobin(); - } else { - var _4D = $k[--$j]; - $k[$j++] = _4D; - if (_4D <= 16383) { - var _4E = $k[--$j]; - $k[$j++] = $f(_4E + 32768); - $k[$j++] = 16; - $1.tobin(); - } else { - var _4F = $k[--$j]; - $k[$j++] = $f(_4F + 12582912); - $k[$j++] = 24; - $1.tobin(); - } - } - }; - $1.encfuncs = $a([ "encN", "encA", "encB", "encK", "encE" ]); + var _4C = $f((-$get($k[--$j], 0)) - 1000000); //#18501 + $k[$j++] = _4C; //#18507 + if (_4C <= 127) { //#18506 + $k[$j++] = 8; //#18502 + $1.tobin(); //#18502 + } else { //#18506 + var _4D = $k[--$j]; //#18503 + $k[$j++] = _4D; //#18507 + if (_4D <= 16383) { //#18506 + var _4E = $k[--$j]; //#18504 + $k[$j++] = $f(_4E + 32768); //#18504 + $k[$j++] = 16; //#18504 + $1.tobin(); //#18504 + } else { //#18506 + var _4F = $k[--$j]; //#18506 + $k[$j++] = $f(_4F + 12582912); //#18506 + $k[$j++] = 24; //#18506 + $1.tobin(); //#18506 + } //#18506 + } //#18506 + }; //#18508 + $1.encfuncs = $a(['encN', 'encA', 'encB', 'encK', 'encE']); //#18510 $1.addtobits = function() { - var _4H = $k[--$j]; - $puti($1.bits, $1.j, _4H); - $1.j = _4H.length + $1.j; - }; - $k[$j++] = Infinity; - for (var _4M = 0, _4N = $1.msglen; _4M < _4N; _4M++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numNs = $a(); - $k[$j++] = Infinity; - for (var _4Q = 0, _4R = $1.msglen; _4Q < _4R; _4Q++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numAs = $a(); - $k[$j++] = Infinity; - for (var _4U = 0, _4V = $1.msglen; _4U < _4V; _4U++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numBs = $a(); - $k[$j++] = Infinity; - for (var _4Y = 0, _4Z = $1.msglen; _4Y < _4Z; _4Y++) { - $k[$j++] = 0; - } - $k[$j++] = -1; - $1.numKs = $a(); - $k[$j++] = Infinity; - for (var _4c = 0, _4d = $1.msglen; _4c < _4d; _4c++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextNs = $a(); - $k[$j++] = Infinity; - for (var _4g = 0, _4h = $1.msglen; _4g < _4h; _4g++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextBs = $a(); - $k[$j++] = Infinity; - for (var _4k = 0, _4l = $1.msglen; _4k < _4l; _4k++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextAs = $a(); - $k[$j++] = Infinity; - for (var _4o = 0, _4p = $1.msglen; _4o < _4p; _4o++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextKs = $a(); - $1.isECI = $a($1.msglen); - for (var _4u = $1.msglen - 1; _4u >= 0; _4u -= 1) { - $1.i = _4u; - $1.barchar = $get($1.msg, $1.i); - var _50 = $get($1.Kexcl, $1.barchar) !== undefined; - if (_50) { - $put($1.nextKs, $1.i, 0); - $put($1.numKs, $1.i, $f($get($1.numKs, $1.i + 1) + 1)); - } else { - $put($1.nextKs, $1.i, $f($get($1.nextKs, $1.i + 1) + 1)); - } - var _5F = $get($1.Nexcl, $1.barchar) !== undefined; - if (_5F) { - $put($1.nextNs, $1.i, 0); - $put($1.numNs, $1.i, $f($get($1.numNs, $1.i + 1) + 1)); - } else { - $put($1.nextNs, $1.i, $f($get($1.nextNs, $1.i + 1) + 1)); - } - var _5U = $get($1.Bexcl, $1.barchar) !== undefined; - if (_5U) { - $put($1.nextBs, $1.i, 0); - $put($1.numBs, $1.i, $f($get($1.numBs, $1.i + 1) + 1)); - } else { - $put($1.nextBs, $1.i, $f($get($1.nextBs, $1.i + 1) + 1)); - } - var _5j = $get($1.Aexcl, $1.barchar) !== undefined; - if (_5j) { - $put($1.nextAs, $1.i, 0); - $put($1.numAs, $1.i, $f($get($1.numAs, $1.i + 1) + 1)); - } else { - $put($1.nextAs, $1.i, $f($get($1.nextAs, $1.i + 1) + 1)); - } - $put($1.isECI, $1.i, $1.barchar <= -1e6); - } - $k[$j++] = Infinity; - var _5z = $1.numKs; - for (var _60 = 0, _61 = _5z.length; _60 < _61; _60++) { - $k[$j++] = ~~($f($get(_5z, _60) + 1) / 2); - } - $1.numKs = $a(); + var _4H = $k[--$j]; //#18513 + $puti($1.bits, $1.j, _4H); //#18513 + $1.j = _4H.length + $1.j; //#18514 + }; //#18515 + $k[$j++] = Infinity; //#18517 + for (var _4M = 0, _4N = $1.msglen; _4M < _4N; _4M++) { //#18517 + $k[$j++] = 0; //#18517 + } //#18517 + $k[$j++] = 0; //#18517 + $1.numNs = $a(); //#18517 + $k[$j++] = Infinity; //#18518 + for (var _4Q = 0, _4R = $1.msglen; _4Q < _4R; _4Q++) { //#18518 + $k[$j++] = 0; //#18518 + } //#18518 + $k[$j++] = 0; //#18518 + $1.numAs = $a(); //#18518 + $k[$j++] = Infinity; //#18519 + for (var _4U = 0, _4V = $1.msglen; _4U < _4V; _4U++) { //#18519 + $k[$j++] = 0; //#18519 + } //#18519 + $k[$j++] = 0; //#18519 + $1.numBs = $a(); //#18519 + $k[$j++] = Infinity; //#18520 + for (var _4Y = 0, _4Z = $1.msglen; _4Y < _4Z; _4Y++) { //#18520 + $k[$j++] = 0; //#18520 + } //#18520 + $k[$j++] = -1; //#18520 + $1.numKs = $a(); //#18520 + $k[$j++] = Infinity; //#18521 + for (var _4c = 0, _4d = $1.msglen; _4c < _4d; _4c++) { //#18521 + $k[$j++] = 0; //#18521 + } //#18521 + $k[$j++] = 9999; //#18521 + $1.nextNs = $a(); //#18521 + $k[$j++] = Infinity; //#18522 + for (var _4g = 0, _4h = $1.msglen; _4g < _4h; _4g++) { //#18522 + $k[$j++] = 0; //#18522 + } //#18522 + $k[$j++] = 9999; //#18522 + $1.nextBs = $a(); //#18522 + $k[$j++] = Infinity; //#18523 + for (var _4k = 0, _4l = $1.msglen; _4k < _4l; _4k++) { //#18523 + $k[$j++] = 0; //#18523 + } //#18523 + $k[$j++] = 9999; //#18523 + $1.nextAs = $a(); //#18523 + $k[$j++] = Infinity; //#18524 + for (var _4o = 0, _4p = $1.msglen; _4o < _4p; _4o++) { //#18524 + $k[$j++] = 0; //#18524 + } //#18524 + $k[$j++] = 9999; //#18524 + $1.nextKs = $a(); //#18524 + $1.isECI = $a($1.msglen); //#18525 + for (var _4u = $1.msglen - 1; _4u >= 0; _4u -= 1) { //#18554 + $1.i = _4u; //#18527 + $1.barchar = $get($1.msg, $1.i); //#18528 + var _50 = $get($1.Kexcl, $1.barchar) !== undefined; //#18529 + if (_50) { //#18533 + $put($1.nextKs, $1.i, 0); //#18530 + $put($1.numKs, $1.i, $f($get($1.numKs, $1.i + 1) + 1)); //#18531 + } else { //#18533 + $put($1.nextKs, $1.i, $f($get($1.nextKs, $1.i + 1) + 1)); //#18533 + } //#18533 + var _5F = $get($1.Nexcl, $1.barchar) !== undefined; //#18535 + if (_5F) { //#18539 + $put($1.nextNs, $1.i, 0); //#18536 + $put($1.numNs, $1.i, $f($get($1.numNs, $1.i + 1) + 1)); //#18537 + } else { //#18539 + $put($1.nextNs, $1.i, $f($get($1.nextNs, $1.i + 1) + 1)); //#18539 + } //#18539 + var _5U = $get($1.Bexcl, $1.barchar) !== undefined; //#18541 + if (_5U) { //#18545 + $put($1.nextBs, $1.i, 0); //#18542 + $put($1.numBs, $1.i, $f($get($1.numBs, $1.i + 1) + 1)); //#18543 + } else { //#18545 + $put($1.nextBs, $1.i, $f($get($1.nextBs, $1.i + 1) + 1)); //#18545 + } //#18545 + var _5j = $get($1.Aexcl, $1.barchar) !== undefined; //#18547 + if (_5j) { //#18551 + $put($1.nextAs, $1.i, 0); //#18548 + $put($1.numAs, $1.i, $f($get($1.numAs, $1.i + 1) + 1)); //#18549 + } else { //#18551 + $put($1.nextAs, $1.i, $f($get($1.nextAs, $1.i + 1) + 1)); //#18551 + } //#18551 + $put($1.isECI, $1.i, $1.barchar <= -1000000); //#18553 + } //#18553 + $k[$j++] = Infinity; //#18555 + var _5z = $1.numKs; //#18555 + for (var _60 = 0, _61 = _5z.length; _60 < _61; _60++) { //#18555 + $k[$j++] = ~~($f($get(_5z, _60) + 1) / 2); //#18555 + } //#18555 + $1.numKs = $a(); //#18555 $1.KbeforeB = function() { - var _67 = $get($k[--$j], $1.ver); - $k[$j++] = $ge($1.numK, _67) && $get($1.nextBs, $f($1.numK * 2 + $1.i)) == 0; - }; + var _67 = $get($k[--$j], $1.ver); //#18557 + $k[$j++] = $ge($1.numK, _67) && ($get($1.nextBs, $f(($1.numK * 2) + $1.i)) == 0); //#18557 + }; //#18557 $1.KbeforeA = function() { - var _6F = $get($k[--$j], $1.ver); - $k[$j++] = $ge($1.numK, _6F) && $get($1.nextAs, $f($1.numK * 2 + $1.i)) == 0; - }; + var _6F = $get($k[--$j], $1.ver); //#18558 + $k[$j++] = $ge($1.numK, _6F) && ($get($1.nextAs, $f(($1.numK * 2) + $1.i)) == 0); //#18558 + }; //#18558 $1.KbeforeN = function() { - var _6N = $get($k[--$j], $1.ver); - $k[$j++] = $ge($1.numK, _6N) && $get($1.nextNs, $f($1.numK * 2 + $1.i)) == 0; - }; + var _6N = $get($k[--$j], $1.ver); //#18559 + $k[$j++] = $ge($1.numK, _6N) && ($get($1.nextNs, $f(($1.numK * 2) + $1.i)) == 0); //#18559 + }; //#18559 $1.KbeforeE = function() { - var _6V = $get($k[--$j], $1.ver); - $k[$j++] = $ge($1.numK, _6V) && $f($1.numK * 2 + $1.i) == $1.msglen; - }; + var _6V = $get($k[--$j], $1.ver); //#18560 + $k[$j++] = $ge($1.numK, _6V) && (($f(($1.numK * 2) + $1.i)) == $1.msglen); //#18560 + }; //#18560 $1.AbeforeK = function() { - var _6c = $get($k[--$j], $1.ver); - $k[$j++] = $ge($1.numA, _6c) && $get($1.nextKs, $f($1.numA + $1.i)) == 0; - }; + var _6c = $get($k[--$j], $1.ver); //#18561 + $k[$j++] = $ge($1.numA, _6c) && ($get($1.nextKs, $f($1.numA + $1.i)) == 0); //#18561 + }; //#18561 $1.AbeforeB = function() { - var _6k = $get($k[--$j], $1.ver); - $k[$j++] = $ge($1.numA, _6k) && $get($1.nextBs, $f($1.numA + $1.i)) == 0; - }; + var _6k = $get($k[--$j], $1.ver); //#18562 + $k[$j++] = $ge($1.numA, _6k) && ($get($1.nextBs, $f($1.numA + $1.i)) == 0); //#18562 + }; //#18562 $1.AbeforeN = function() { - var _6s = $get($k[--$j], $1.ver); - $k[$j++] = $ge($1.numA, _6s) && $get($1.nextNs, $f($1.numA + $1.i)) == 0; - }; + var _6s = $get($k[--$j], $1.ver); //#18563 + $k[$j++] = $ge($1.numA, _6s) && ($get($1.nextNs, $f($1.numA + $1.i)) == 0); //#18563 + }; //#18563 $1.AbeforeE = function() { - var _70 = $get($k[--$j], $1.ver); - $k[$j++] = $ge($1.numA, _70) && $f($1.numA + $1.i) == $1.msglen; - }; + var _70 = $get($k[--$j], $1.ver); //#18564 + $k[$j++] = $ge($1.numA, _70) && ($f($1.numA + $1.i) == $1.msglen); //#18564 + }; //#18564 $1.NbeforeK = function() { - var _77 = $get($k[--$j], $1.ver); - $k[$j++] = $ge($1.numN, _77) && $get($1.nextKs, $f($1.numN + $1.i)) == 0; - }; + var _77 = $get($k[--$j], $1.ver); //#18565 + $k[$j++] = $ge($1.numN, _77) && ($get($1.nextKs, $f($1.numN + $1.i)) == 0); //#18565 + }; //#18565 $1.NbeforeB = function() { - var _7F = $get($k[--$j], $1.ver); - $k[$j++] = $ge($1.numN, _7F) && $get($1.nextBs, $f($1.numN + $1.i)) == 0; - }; + var _7F = $get($k[--$j], $1.ver); //#18566 + $k[$j++] = $ge($1.numN, _7F) && ($get($1.nextBs, $f($1.numN + $1.i)) == 0); //#18566 + }; //#18566 $1.NbeforeA = function() { - var _7N = $get($k[--$j], $1.ver); - $k[$j++] = $ge($1.numN, _7N) && $get($1.nextAs, $f($1.numN + $1.i)) == 0; - }; + var _7N = $get($k[--$j], $1.ver); //#18567 + $k[$j++] = $ge($1.numN, _7N) && ($get($1.nextAs, $f($1.numN + $1.i)) == 0); //#18567 + }; //#18567 $1.NbeforeE = function() { - var _7V = $get($k[--$j], $1.ver); - $k[$j++] = $ge($1.numN, _7V) && $f($1.numN + $1.i) == $1.msglen; - }; - if ($ne($1.version, "unset")) { - $k[$j++] = Infinity; - for (var _7a = 0; _7a <= 9; _7a += 1) { - $k[$j++] = $cvrs($s(2), _7a, 10); - $k[$j++] = $1.v1to9; - } - for (var _7e = 10; _7e <= 26; _7e += 1) { - $k[$j++] = $cvrs($s(2), _7e, 10); - $k[$j++] = $1.v10to26; - } - for (var _7i = 27; _7i <= 40; _7i += 1) { - $k[$j++] = $cvrs($s(2), _7i, 10); - $k[$j++] = $1.v27to40; - } - $k[$j++] = "M1"; - $k[$j++] = $1.vM1; - $k[$j++] = "M2"; - $k[$j++] = $1.vM2; - $k[$j++] = "M3"; - $k[$j++] = $1.vM3; - $k[$j++] = "M4"; - $k[$j++] = $1.vM4; - $k[$j++] = "R7x43"; - $k[$j++] = $1.vR7x43; - $k[$j++] = "R7x59"; - $k[$j++] = $1.vR7x59; - $k[$j++] = "R7x77"; - $k[$j++] = $1.vR7x77; - $k[$j++] = "R7x99"; - $k[$j++] = $1.vR7x99; - $k[$j++] = "R7x139"; - $k[$j++] = $1.vR7x139; - $k[$j++] = "R9x43"; - $k[$j++] = $1.vR9x43; - $k[$j++] = "R9x59"; - $k[$j++] = $1.vR9x59; - $k[$j++] = "R9x77"; - $k[$j++] = $1.vR9x77; - $k[$j++] = "R9x99"; - $k[$j++] = $1.vR9x99; - $k[$j++] = "R9x139"; - $k[$j++] = $1.vR9x139; - $k[$j++] = "R11x27"; - $k[$j++] = $1.vR11x27; - $k[$j++] = "R11x43"; - $k[$j++] = $1.vR11x43; - $k[$j++] = "R11x59"; - $k[$j++] = $1.vR11x59; - $k[$j++] = "R11x77"; - $k[$j++] = $1.vR11x77; - $k[$j++] = "R11x99"; - $k[$j++] = $1.vR11x99; - $k[$j++] = "R11x139"; - $k[$j++] = $1.vR11x139; - $k[$j++] = "R13x27"; - $k[$j++] = $1.vR13x27; - $k[$j++] = "R13x43"; - $k[$j++] = $1.vR13x43; - $k[$j++] = "R13x59"; - $k[$j++] = $1.vR13x59; - $k[$j++] = "R13x77"; - $k[$j++] = $1.vR13x77; - $k[$j++] = "R13x99"; - $k[$j++] = $1.vR13x99; - $k[$j++] = "R13x139"; - $k[$j++] = $1.vR13x139; - $k[$j++] = "R15x43"; - $k[$j++] = $1.vR15x43; - $k[$j++] = "R15x59"; - $k[$j++] = $1.vR15x59; - $k[$j++] = "R15x77"; - $k[$j++] = $1.vR15x77; - $k[$j++] = "R15x99"; - $k[$j++] = $1.vR15x99; - $k[$j++] = "R15x139"; - $k[$j++] = $1.vR15x139; - $k[$j++] = "R17x43"; - $k[$j++] = $1.vR17x43; - $k[$j++] = "R17x59"; - $k[$j++] = $1.vR17x59; - $k[$j++] = "R17x77"; - $k[$j++] = $1.vR17x77; - $k[$j++] = "R17x99"; - $k[$j++] = $1.vR17x99; - $k[$j++] = "R17x139"; - $k[$j++] = $1.vR17x139; - var _8O = $get($d(), $1.version); - $k[$j++] = "verset"; - $k[$j++] = Infinity; - $k[$j++] = _8O; - var _8R = $a(); - $1[$k[--$j]] = _8R; - } else { - if ($eq($1.format, "full")) { - $1.verset = $a([ $1.v1to9, $1.v10to26, $1.v27to40 ]); - } - if ($eq($1.format, "micro")) { - $1.verset = $a([ $1.vM1, $1.vM2, $1.vM3, $1.vM4 ]); - } - } - $k[$j++] = Infinity; - for (var _8e = 0, _8f = 39; _8e < _8f; _8e++) { - $k[$j++] = -1; - } - $1.msgbits = $a(); - $1.e = 1e4; - var _8h = $1.verset; - for (var _8i = 0, _8j = _8h.length; _8i < _8j; _8i++) { - $1.ver = $get(_8h, _8i); - $1.mode = -1; - $1.seq = $a([]); - $1.i = 0; - for (;;) { - if ($1.i >= $1.msglen) { - break; - } - $1.numK = $get($1.numKs, $1.i); - $1.numB = $get($1.numBs, $1.i); - $1.numA = $get($1.numAs, $1.i); - $1.numN = $get($1.numNs, $1.i); - $1.eci = $get($1.isECI, $1.i); - if ($eq($1.ver, $1.vM1) && $1.numA >= 1) { - $1.seq = -1; - break; - } - if ($eq($1.ver, $1.vM1) && $1.numB >= 1) { - $1.seq = -1; - break; - } - if ($eq($1.ver, $1.vM1) && $1.numK >= 1) { - $1.seq = -1; - break; - } - if ($eq($1.ver, $1.vM1) && $1.eci) { - $1.seq = -1; - break; - } - if ($eq($1.ver, $1.vM2) && $1.numB >= 1) { - $1.seq = -1; - break; - } - if ($eq($1.ver, $1.vM2) && $1.numK >= 1) { - $1.seq = -1; - break; - } - if ($eq($1.ver, $1.vM2) && $1.eci) { - $1.seq = -1; - break; - } - if ($eq($1.ver, $1.vM3) && $1.eci) { - $1.seq = -1; - break; - } - if ($eq($1.ver, $1.vM4) && $1.eci) { - $1.seq = -1; - break; - } - if ($ge($1.ver, $1.vR7x43) && $1.eci) { - $1.seq = -1; - break; - } - for (;;) { - if ($1.eci) { - $k[$j++] = $1.E; - break; - } - if ($ge($1.ver, $1.vR7x43)) { - $k[$j++] = $1.B; + var _7V = $get($k[--$j], $1.ver); //#18568 + $k[$j++] = $ge($1.numN, _7V) && ($f($1.numN + $1.i) == $1.msglen); //#18568 + }; //#18568 + if ($ne($1.version, "unset")) { //#18599 + $k[$j++] = Infinity; //#18594 + for (var _7a = 0; _7a <= 9; _7a += 1) { //#18581 + $k[$j++] = $cvrs($s(2), _7a, 10); //#18581 + $k[$j++] = $1.v1to9; //#18581 + } //#18581 + for (var _7e = 10; _7e <= 26; _7e += 1) { //#18582 + $k[$j++] = $cvrs($s(2), _7e, 10); //#18582 + $k[$j++] = $1.v10to26; //#18582 + } //#18582 + for (var _7i = 27; _7i <= 40; _7i += 1) { //#18583 + $k[$j++] = $cvrs($s(2), _7i, 10); //#18583 + $k[$j++] = $1.v27to40; //#18583 + } //#18583 + $k[$j++] = "M1"; //#18594 + $k[$j++] = $1.vM1; //#18594 + $k[$j++] = "M2"; //#18594 + $k[$j++] = $1.vM2; //#18594 + $k[$j++] = "M3"; //#18594 + $k[$j++] = $1.vM3; //#18594 + $k[$j++] = "M4"; //#18594 + $k[$j++] = $1.vM4; //#18594 + $k[$j++] = "R7x43"; //#18594 + $k[$j++] = $1.vR7x43; //#18594 + $k[$j++] = "R7x59"; //#18594 + $k[$j++] = $1.vR7x59; //#18594 + $k[$j++] = "R7x77"; //#18594 + $k[$j++] = $1.vR7x77; //#18594 + $k[$j++] = "R7x99"; //#18594 + $k[$j++] = $1.vR7x99; //#18594 + $k[$j++] = "R7x139"; //#18594 + $k[$j++] = $1.vR7x139; //#18594 + $k[$j++] = "R9x43"; //#18594 + $k[$j++] = $1.vR9x43; //#18594 + $k[$j++] = "R9x59"; //#18594 + $k[$j++] = $1.vR9x59; //#18594 + $k[$j++] = "R9x77"; //#18594 + $k[$j++] = $1.vR9x77; //#18594 + $k[$j++] = "R9x99"; //#18594 + $k[$j++] = $1.vR9x99; //#18594 + $k[$j++] = "R9x139"; //#18594 + $k[$j++] = $1.vR9x139; //#18594 + $k[$j++] = "R11x27"; //#18594 + $k[$j++] = $1.vR11x27; //#18594 + $k[$j++] = "R11x43"; //#18594 + $k[$j++] = $1.vR11x43; //#18594 + $k[$j++] = "R11x59"; //#18594 + $k[$j++] = $1.vR11x59; //#18594 + $k[$j++] = "R11x77"; //#18594 + $k[$j++] = $1.vR11x77; //#18594 + $k[$j++] = "R11x99"; //#18594 + $k[$j++] = $1.vR11x99; //#18594 + $k[$j++] = "R11x139"; //#18594 + $k[$j++] = $1.vR11x139; //#18594 + $k[$j++] = "R13x27"; //#18594 + $k[$j++] = $1.vR13x27; //#18594 + $k[$j++] = "R13x43"; //#18594 + $k[$j++] = $1.vR13x43; //#18594 + $k[$j++] = "R13x59"; //#18594 + $k[$j++] = $1.vR13x59; //#18594 + $k[$j++] = "R13x77"; //#18594 + $k[$j++] = $1.vR13x77; //#18594 + $k[$j++] = "R13x99"; //#18594 + $k[$j++] = $1.vR13x99; //#18594 + $k[$j++] = "R13x139"; //#18594 + $k[$j++] = $1.vR13x139; //#18594 + $k[$j++] = "R15x43"; //#18594 + $k[$j++] = $1.vR15x43; //#18594 + $k[$j++] = "R15x59"; //#18594 + $k[$j++] = $1.vR15x59; //#18594 + $k[$j++] = "R15x77"; //#18594 + $k[$j++] = $1.vR15x77; //#18594 + $k[$j++] = "R15x99"; //#18594 + $k[$j++] = $1.vR15x99; //#18594 + $k[$j++] = "R15x139"; //#18594 + $k[$j++] = $1.vR15x139; //#18594 + $k[$j++] = "R17x43"; //#18594 + $k[$j++] = $1.vR17x43; //#18594 + $k[$j++] = "R17x59"; //#18594 + $k[$j++] = $1.vR17x59; //#18594 + $k[$j++] = "R17x77"; //#18594 + $k[$j++] = $1.vR17x77; //#18594 + $k[$j++] = "R17x99"; //#18594 + $k[$j++] = $1.vR17x99; //#18594 + $k[$j++] = "R17x139"; //#18594 + $k[$j++] = $1.vR17x139; //#18594 + var _8O = $get($d(), $1.version); //#18595 + $k[$j++] = 'verset'; //#18595 + $k[$j++] = _8O; //#18595 + $k[$j++] = Infinity; //#18595 + var _8P = $k[--$j]; //#18595 + var _8Q = $k[--$j]; //#18595 + $k[$j++] = _8P; //#18595 + $k[$j++] = _8Q; //#18595 + var _8R = $a(); //#18595 + $1[$k[--$j]] = _8R; //#18595 + } else { //#18599 + if ($eq($1.format, "full")) { //#18598 + $1.verset = $a([$1.v1to9, $1.v10to26, $1.v27to40]); //#18598 + } //#18598 + if ($eq($1.format, "micro")) { //#18599 + $1.verset = $a([$1.vM1, $1.vM2, $1.vM3, $1.vM4]); //#18599 + } //#18599 + } //#18599 + $k[$j++] = Infinity; //#18604 + for (var _8e = 0, _8f = 39; _8e < _8f; _8e++) { //#18604 + $k[$j++] = -1; //#18604 + } //#18604 + $1.msgbits = $a(); //#18604 + $1.e = 10000; //#18605 + var _8h = $1.verset; //#18606 + for (var _8i = 0, _8j = _8h.length; _8i < _8j; _8i++) { //#18741 + $1.ver = $get(_8h, _8i); //#18607 + $1.mode = -1; //#18610 + $1.seq = $a([]); //#18610 + $1.i = 0; //#18610 + for (;;) { //#18711 + if ($1.i >= $1.msglen) { //#18611 + break; //#18611 + } //#18611 + $1.numK = $get($1.numKs, $1.i); //#18612 + $1.numB = $get($1.numBs, $1.i); //#18613 + $1.numA = $get($1.numAs, $1.i); //#18614 + $1.numN = $get($1.numNs, $1.i); //#18615 + $1.eci = $get($1.isECI, $1.i); //#18616 + if ($eq($1.ver, $1.vM1) && ($1.numA >= 1)) { //#18617 + $1.seq = -1; //#18617 + break; //#18617 + } //#18617 + if ($eq($1.ver, $1.vM1) && ($1.numB >= 1)) { //#18618 + $1.seq = -1; //#18618 + break; //#18618 + } //#18618 + if ($eq($1.ver, $1.vM1) && ($1.numK >= 1)) { //#18619 + $1.seq = -1; //#18619 + break; //#18619 + } //#18619 + if ($eq($1.ver, $1.vM1) && $1.eci) { //#18620 + $1.seq = -1; //#18620 + break; //#18620 + } //#18620 + if ($eq($1.ver, $1.vM2) && ($1.numB >= 1)) { //#18621 + $1.seq = -1; //#18621 + break; //#18621 + } //#18621 + if ($eq($1.ver, $1.vM2) && ($1.numK >= 1)) { //#18622 + $1.seq = -1; //#18622 + break; //#18622 + } //#18622 + if ($eq($1.ver, $1.vM2) && $1.eci) { //#18623 + $1.seq = -1; //#18623 + break; //#18623 + } //#18623 + if ($eq($1.ver, $1.vM3) && $1.eci) { //#18624 + $1.seq = -1; //#18624 + break; //#18624 + } //#18624 + if ($eq($1.ver, $1.vM4) && $1.eci) { //#18625 + $1.seq = -1; //#18625 + break; //#18625 + } //#18625 + if ($ge($1.ver, $1.vR7x43) && $1.eci) { //#18626 + $1.seq = -1; //#18626 + break; //#18626 + } //#18626 + for (;;) { //#18691 + if ($1.eci) { //#18630 + $k[$j++] = $1.E; //#18629 + break; //#18629 + } //#18629 + if ($ge($1.ver, $1.vR7x43)) { //#18633 + $k[$j++] = $1.B; //#18632 + break; //#18632 + } //#18632 + if ($1.mode == -1) { //#18652 + $k[$j++] = $a([1, 1, 1, $1.e, $1.e, 1, 1]); //#18635 + $1.KbeforeA(); //#18635 + if ($k[--$j]) { //#18635 + $k[$j++] = $1.K; //#18635 + break; //#18635 + } //#18635 + $k[$j++] = $a([1, 1, 1, $1.e, $1.e, 1, 1]); //#18636 + $1.KbeforeN(); //#18636 + if ($k[--$j]) { //#18636 + $k[$j++] = $1.K; //#18636 + break; //#18636 + } //#18636 + $k[$j++] = $a([5, 5, 6, $1.e, $1.e, 2, 3]); //#18637 + $1.KbeforeB(); //#18637 + if ($k[--$j]) { //#18637 + $k[$j++] = $1.K; //#18637 + break; //#18637 + } //#18637 + $k[$j++] = $a([1, 1, 1, $1.e, $1.e, 1, 1]); //#18638 + $1.KbeforeE(); //#18638 + if ($k[--$j]) { //#18638 + $k[$j++] = $1.K; //#18638 + break; //#18638 + } //#18638 + if ($1.numK >= 1) { //#18639 + $k[$j++] = $1.B; //#18639 + break; //#18639 + } //#18639 + $k[$j++] = $a([6, 7, 8, $1.e, $1.e, 3, 4]); //#18640 + $1.AbeforeB(); //#18640 + if ($k[--$j]) { //#18640 + $k[$j++] = $1.A; //#18640 + break; //#18640 + } //#18640 + $k[$j++] = $a([1, 1, 1, $1.e, 1, 1, 1]); //#18641 + $1.AbeforeN(); //#18641 + if ($k[--$j]) { //#18641 + $k[$j++] = $1.A; //#18641 + break; //#18641 + } //#18641 + $k[$j++] = $a([1, 1, 1, $1.e, 1, 1, 1]); //#18642 + $1.AbeforeE(); //#18642 + if ($k[--$j]) { //#18642 + $k[$j++] = $1.A; //#18642 + break; //#18642 + } //#18642 + if ($1.numA >= 1) { //#18645 + var _AF = $ne($1.ver, $1.vM2) ? $1.B : $1.A; //#18644 + $k[$j++] = _AF; //#18644 + break; //#18644 + } //#18644 + $k[$j++] = $a([4, 4, 5, $1.e, $1.e, 2, 3]); //#18646 + $1.NbeforeB(); //#18646 + if ($k[--$j]) { //#18646 + $k[$j++] = $1.N; //#18646 + break; //#18646 + } //#18646 + $k[$j++] = $a([1, 1, 1, $1.e, $1.e, 1, 1]); //#18647 + $1.NbeforeB(); //#18647 + if ($k[--$j]) { //#18647 + $k[$j++] = $1.B; //#18647 + break; //#18647 + } //#18647 + $k[$j++] = $a([7, 8, 9, $1.e, 3, 4, 5]); //#18648 + $1.NbeforeA(); //#18648 + if ($k[--$j]) { //#18648 + $k[$j++] = $1.N; //#18648 + break; //#18648 + } //#18648 + $k[$j++] = $a([1, 1, 1, $1.e, 1, 1, 1]); //#18649 + $1.NbeforeA(); //#18649 + if ($k[--$j]) { //#18649 + $k[$j++] = $1.A; //#18649 + break; //#18649 + } //#18649 + if ($1.numN >= 1) { //#18650 + $k[$j++] = $1.N; //#18650 + break; //#18650 + } //#18650 + $k[$j++] = $1.B; //#18651 + break; //#18651 + } //#18651 + if ($1.mode == $1.B) { //#18667 + $k[$j++] = $a([9, 12, 13, $1.e, $1.e, 4, 5]); //#18654 + $1.KbeforeB(); //#18654 + if ($k[--$j]) { //#18654 + $k[$j++] = $1.K; //#18654 + break; //#18654 + } //#18654 + $k[$j++] = $a([9, 10, 12, $1.e, $1.e, 4, 5]); //#18655 + $1.KbeforeA(); //#18655 + if ($k[--$j]) { //#18655 + $k[$j++] = $1.K; //#18655 + break; //#18655 + } //#18655 + $k[$j++] = $a([9, 10, 11, $1.e, $1.e, 5, 6]); //#18656 + $1.KbeforeN(); //#18656 + if ($k[--$j]) { //#18656 + $k[$j++] = $1.K; //#18656 + break; //#18656 + } //#18656 + $k[$j++] = $a([4, 5, 6, $1.e, $1.e, 2, 3]); //#18657 + $1.KbeforeE(); //#18657 + if ($k[--$j]) { //#18657 + $k[$j++] = $1.K; //#18657 + break; //#18657 + } //#18657 + $k[$j++] = $a([11, 12, 14, $1.e, $1.e, 5, 7]); //#18658 + $1.AbeforeK(); //#18658 + if ($k[--$j]) { //#18658 + $k[$j++] = $1.A; //#18658 + break; //#18658 + } //#18658 + $k[$j++] = $a([11, 15, 16, $1.e, $1.e, 6, 7]); //#18659 + $1.AbeforeB(); //#18659 + if ($k[--$j]) { //#18659 + $k[$j++] = $1.A; //#18659 + break; //#18659 + } //#18659 + $k[$j++] = $a([12, 13, 15, $1.e, $1.e, 6, 8]); //#18660 + $1.AbeforeN(); //#18660 + if ($k[--$j]) { //#18660 + $k[$j++] = $1.A; //#18660 + break; //#18660 + } //#18660 + $k[$j++] = $a([6, 7, 8, $1.e, $1.e, 3, 4]); //#18661 + $1.AbeforeE(); //#18661 + if ($k[--$j]) { //#18661 + $k[$j++] = $1.A; //#18661 + break; //#18661 + } //#18661 + $k[$j++] = $a([6, 7, 8, $1.e, $1.e, 3, 4]); //#18662 + $1.NbeforeK(); //#18662 + if ($k[--$j]) { //#18662 + $k[$j++] = $1.N; //#18662 + break; //#18662 + } //#18662 + $k[$j++] = $a([6, 8, 9, $1.e, $1.e, 3, 4]); //#18663 + $1.NbeforeB(); //#18663 + if ($k[--$j]) { //#18663 + $k[$j++] = $1.N; //#18663 + break; //#18663 + } //#18663 + $k[$j++] = $a([6, 7, 8, $1.e, $1.e, 3, 4]); //#18664 + $1.NbeforeA(); //#18664 + if ($k[--$j]) { //#18664 + $k[$j++] = $1.N; //#18664 + break; //#18664 + } //#18664 + $k[$j++] = $a([3, 4, 5, $1.e, $1.e, 2, 3]); //#18665 + $1.NbeforeE(); //#18665 + if ($k[--$j]) { //#18665 + $k[$j++] = $1.N; //#18665 + break; //#18665 + } //#18665 + $k[$j++] = $1.B; //#18666 + break; //#18666 + } //#18666 + if ($1.mode == $1.A) { //#18676 + if ($1.numK >= 1) { //#18669 + $k[$j++] = $1.K; //#18669 + break; //#18669 + } //#18669 + if ($1.numB >= 1) { //#18670 + $k[$j++] = $1.B; //#18670 + break; //#18670 + } //#18670 + $k[$j++] = $a([13, 15, 17, $1.e, 5, 7, 9]); //#18671 + $1.NbeforeA(); //#18671 + if ($k[--$j]) { //#18671 + $k[$j++] = $1.N; //#18671 + break; //#18671 + } //#18671 + $k[$j++] = $a([13, 17, 18, $1.e, $1.e, 7, 9]); //#18672 + $1.NbeforeB(); //#18672 + if ($k[--$j]) { //#18672 + $k[$j++] = $1.N; //#18672 + break; //#18672 + } //#18672 + $k[$j++] = $a([7, 8, 9, $1.e, 3, 4, 5]); //#18673 + $1.NbeforeE(); //#18673 + if ($k[--$j]) { //#18673 + $k[$j++] = $1.N; //#18673 + break; //#18673 + } //#18673 + if (($1.numA >= 1) || ($1.numN >= 1)) { //#18674 + $k[$j++] = $1.A; //#18674 + break; //#18674 + } //#18674 + $k[$j++] = $1.B; //#18675 + break; //#18675 + } //#18675 + if ($1.mode == $1.N) { //#18683 + if ($1.numK >= 1) { //#18678 + $k[$j++] = $1.K; //#18678 + break; //#18678 + } //#18678 + if ($1.numB >= 1) { //#18679 + $k[$j++] = $1.B; //#18679 + break; //#18679 + } //#18679 + if ($1.numA >= 1) { //#18680 + $k[$j++] = $1.A; //#18680 + break; //#18680 + } //#18680 + if ($1.numN >= 1) { //#18681 + $k[$j++] = $1.N; //#18681 + break; //#18681 + } //#18681 + $k[$j++] = $1.B; //#18682 + break; //#18682 + } //#18682 + if ($1.mode == $1.K) { //#18690 + if ($1.numB >= 1) { //#18685 + $k[$j++] = $1.B; //#18685 + break; //#18685 + } //#18685 + if ($1.numA >= 1) { //#18686 + $k[$j++] = $1.A; //#18686 + break; //#18686 + } //#18686 + if ($1.numN >= 1) { //#18687 + $k[$j++] = $1.N; //#18687 + break; //#18687 + } //#18687 + if ($1.numK >= 1) { //#18688 + $k[$j++] = $1.K; //#18688 + break; //#18688 + } //#18688 + $k[$j++] = $1.B; //#18689 + break; //#18689 + } //#18689 + } //#18689 + var _CL = $k[--$j]; //#18692 + $k[$j++] = _CL; //#18692 + if ((_CL == $1.K) && $1.fnc1first) { //#18692 + $j--; //#18692 + $k[$j++] = $1.B; //#18692 + } //#18692 + var _CP = $k[--$j]; //#18693 + $k[$j++] = _CP; //#18709 + if (_CP == $1.mode) { //#18708 + $j--; //#18694 + var _CV = ($1.mode == $1.K) ? 2 : 1; //#18695 + $1.dat = $geti($1.msg, $1.i, _CV); //#18695 + $k[$j++] = Infinity; //#18698 + $aload($1.seq); //#18697 + $k[$j++] = Infinity; //#18698 + var _CY = $k[--$j]; //#18698 + var _CZ = $k[--$j]; //#18698 + $k[$j++] = _CY; //#18698 + $aload(_CZ); //#18698 + $aload($1.dat); //#18698 + var _Cb = $a(); //#18698 + $k[$j++] = _Cb; //#18698 + $1.seq = $a(); //#18698 + } else { //#18708 + $1.mode = $k[--$j]; //#18701 + if ($1.mode == $1.K) { //#18702 + $k[$j++] = $1.K; //#18702 + $k[$j++] = $geti($1.msg, $1.i, $1.numK * 2); //#18702 + } //#18702 + if ($1.mode == $1.B) { //#18703 + $k[$j++] = $1.B; //#18703 + $k[$j++] = $geti($1.msg, $1.i, $1.numB); //#18703 + } //#18703 + if ($1.mode == $1.A) { //#18704 + $k[$j++] = $1.A; //#18704 + $k[$j++] = $geti($1.msg, $1.i, $1.numA); //#18704 + } //#18704 + if ($1.mode == $1.N) { //#18705 + $k[$j++] = $1.N; //#18705 + $k[$j++] = $geti($1.msg, $1.i, $1.numN); //#18705 + } //#18705 + if ($1.mode == $1.E) { //#18706 + $1.mode = -1; //#18706 + $k[$j++] = $1.E; //#18706 + $k[$j++] = $geti($1.msg, $1.i, 1); //#18706 + } //#18706 + $1.dat = $k[--$j]; //#18707 + $1.sw = $k[--$j]; //#18707 + $k[$j++] = Infinity; //#18708 + $aload($1.seq); //#18708 + $k[$j++] = $1.sw; //#18708 + $k[$j++] = $1.dat; //#18708 + $1.seq = $a(); //#18708 + } //#18708 + $1.i = $1.i + $1.dat.length; //#18710 + } //#18710 + for (;;) { //#18740 + if ($1.seq == -1) { //#18715 + break; //#18715 + } //#18715 + $1.bits = $s(23648); //#18716 + $1.j = 0; //#18717 + if ($1.fnc1first) { //#18720 + if ($lt($1.ver, $1.vR7x43)) { //#18719 + $k[$j++] = "0101"; //#18719 + } else { //#18719 + $k[$j++] = "101"; //#18719 + } //#18719 + $1.addtobits(); //#18719 + } //#18719 + $1.abort = false; //#18721 + for (var _DR = 0, _DQ = $1.seq.length - 1; _DR <= _DQ; _DR += 2) { //#18735 + $1.i = _DR; //#18723 + $1.mode = $get($1.seq, $1.i); //#18724 + $k[$j++] = $get($get($1.mids, $1.ver), $1.mode); //#18725 + $1.addtobits(); //#18725 + $1.chars = $get($1.seq, $1.i + 1); //#18726 + if ($1.mode != $1.E) { //#18733 + $1.cclen = $get($get($1.cclens, $1.ver), $1.mode); //#18728 + if ($1.chars.length >= (~~Math.pow(2, $1.cclen))) { //#18731 + $1.abort = true; //#18730 + break; //#18730 + } //#18730 + $k[$j++] = $1.chars.length; //#18732 + if ($1.mode == $1.K) { //#18732 + var _Dp = $k[--$j]; //#18732 + $k[$j++] = ~~(_Dp / 2); //#18732 + } //#18732 + $k[$j++] = $1.cclen; //#18732 + $1.tobin(); //#18732 + $1.addtobits(); //#18732 + } //#18732 + $k[$j++] = $1.chars; //#18734 + if ($1[$get($1.encfuncs, $1.mode)]() === true) { break; - } - if ($1.mode == -1) { - $k[$j++] = $a([ 1, 1, 1, $1.e, $1.e, 1, 1 ]); - $1.KbeforeA(); - if ($k[--$j]) { - $k[$j++] = $1.K; - break; - } - $k[$j++] = $a([ 1, 1, 1, $1.e, $1.e, 1, 1 ]); - $1.KbeforeN(); - if ($k[--$j]) { - $k[$j++] = $1.K; - break; - } - $k[$j++] = $a([ 5, 5, 6, $1.e, $1.e, 2, 3 ]); - $1.KbeforeB(); - if ($k[--$j]) { - $k[$j++] = $1.K; - break; - } - $k[$j++] = $a([ 1, 1, 1, $1.e, $1.e, 1, 1 ]); - $1.KbeforeE(); - if ($k[--$j]) { - $k[$j++] = $1.K; - break; - } - if ($1.numK >= 1) { - $k[$j++] = $1.B; - break; - } - $k[$j++] = $a([ 6, 7, 8, $1.e, $1.e, 3, 4 ]); - $1.AbeforeB(); - if ($k[--$j]) { - $k[$j++] = $1.A; - break; - } - $k[$j++] = $a([ 1, 1, 1, $1.e, 1, 1, 1 ]); - $1.AbeforeN(); - if ($k[--$j]) { - $k[$j++] = $1.A; - break; - } - $k[$j++] = $a([ 1, 1, 1, $1.e, 1, 1, 1 ]); - $1.AbeforeE(); - if ($k[--$j]) { - $k[$j++] = $1.A; - break; - } - if ($1.numA >= 1) { - var _AF = $ne($1.ver, $1.vM2) ? $1.B : $1.A; - $k[$j++] = _AF; - break; - } - $k[$j++] = $a([ 4, 4, 5, $1.e, $1.e, 2, 3 ]); - $1.NbeforeB(); - if ($k[--$j]) { - $k[$j++] = $1.N; - break; - } - $k[$j++] = $a([ 1, 1, 1, $1.e, $1.e, 1, 1 ]); - $1.NbeforeB(); - if ($k[--$j]) { - $k[$j++] = $1.B; - break; - } - $k[$j++] = $a([ 7, 8, 9, $1.e, 3, 4, 5 ]); - $1.NbeforeA(); - if ($k[--$j]) { - $k[$j++] = $1.N; - break; - } - $k[$j++] = $a([ 1, 1, 1, $1.e, 1, 1, 1 ]); - $1.NbeforeA(); - if ($k[--$j]) { - $k[$j++] = $1.A; - break; - } - if ($1.numN >= 1) { - $k[$j++] = $1.N; - break; - } - $k[$j++] = $1.B; + } //#18734 + $1.addtobits(); //#18734 + } //#18734 + if ($1.abort) { //#18736 + break; //#18736 + } //#18736 + $1.bits = $geti($1.bits, 0, $1.j); //#18737 + $put($1.msgbits, $1.ver, $1.bits); //#18738 + break; //#18739 + } //#18739 + } //#18739 + $1.metrics = $a([$a(["micro", "M1", $1.vM1, 11, 11, 98, 99, 36, $a([2, 99, 99, 99]), $a([1, 0, -1, -1, -1, -1, -1, -1])]), $a(["micro", "M2", $1.vM2, 13, 13, 98, 99, 80, $a([5, 6, 99, 99]), $a([1, 0, 1, 0, -1, -1, -1, -1])]), $a(["micro", "M3", $1.vM3, 15, 15, 98, 99, 132, $a([6, 8, 99, 99]), $a([1, 0, 1, 0, -1, -1, -1, -1])]), $a(["micro", "M4", $1.vM4, 17, 17, 98, 99, 192, $a([8, 10, 14, 99]), $a([1, 0, 1, 0, 1, 0, -1, -1])]), $a(["full", "1", $1.v1to9, 21, 21, 98, 99, 208, $a([7, 10, 13, 17]), $a([1, 0, 1, 0, 1, 0, 1, 0])]), $a(["full", "2", $1.v1to9, 25, 25, 18, 99, 359, $a([10, 16, 22, 28]), $a([1, 0, 1, 0, 1, 0, 1, 0])]), $a(["full", "3", $1.v1to9, 29, 29, 22, 99, 567, $a([15, 26, 36, 44]), $a([1, 0, 1, 0, 2, 0, 2, 0])]), $a(["full", "4", $1.v1to9, 33, 33, 26, 99, 807, $a([20, 36, 52, 64]), $a([1, 0, 2, 0, 2, 0, 4, 0])]), $a(["full", "5", $1.v1to9, 37, 37, 30, 99, 1079, $a([26, 48, 72, 88]), $a([1, 0, 2, 0, 2, 2, 2, 2])]), $a(["full", "6", $1.v1to9, 41, 41, 34, 99, 1383, $a([36, 64, 96, 112]), $a([2, 0, 4, 0, 4, 0, 4, 0])]), $a(["full", "7", $1.v1to9, 45, 45, 22, 38, 1568, $a([40, 72, 108, 130]), $a([2, 0, 4, 0, 2, 4, 4, 1])]), $a(["full", "8", $1.v1to9, 49, 49, 24, 42, 1936, $a([48, 88, 132, 156]), $a([2, 0, 2, 2, 4, 2, 4, 2])]), $a(["full", "9", $1.v1to9, 53, 53, 26, 46, 2336, $a([60, 110, 160, 192]), $a([2, 0, 3, 2, 4, 4, 4, 4])]), $a(["full", "10", $1.v10to26, 57, 57, 28, 50, 2768, $a([72, 130, 192, 224]), $a([2, 2, 4, 1, 6, 2, 6, 2])]), $a(["full", "11", $1.v10to26, 61, 61, 30, 54, 3232, $a([80, 150, 224, 264]), $a([4, 0, 1, 4, 4, 4, 3, 8])]), $a(["full", "12", $1.v10to26, 65, 65, 32, 58, 3728, $a([96, 176, 260, 308]), $a([2, 2, 6, 2, 4, 6, 7, 4])]), $a(["full", "13", $1.v10to26, 69, 69, 34, 62, 4256, $a([104, 198, 288, 352]), $a([4, 0, 8, 1, 8, 4, 12, 4])]), $a(["full", "14", $1.v10to26, 73, 73, 26, 46, 4651, $a([120, 216, 320, 384]), $a([3, 1, 4, 5, 11, 5, 11, 5])]), $a(["full", "15", $1.v10to26, 77, 77, 26, 48, 5243, $a([132, 240, 360, 432]), $a([5, 1, 5, 5, 5, 7, 11, 7])]), $a(["full", "16", $1.v10to26, 81, 81, 26, 50, 5867, $a([144, 280, 408, 480]), $a([5, 1, 7, 3, 15, 2, 3, 13])]), $a(["full", "17", $1.v10to26, 85, 85, 30, 54, 6523, $a([168, 308, 448, 532]), $a([1, 5, 10, 1, 1, 15, 2, 17])]), $a(["full", "18", $1.v10to26, 89, 89, 30, 56, 7211, $a([180, 338, 504, 588]), $a([5, 1, 9, 4, 17, 1, 2, 19])]), $a(["full", "19", $1.v10to26, 93, 93, 30, 58, 7931, $a([196, 364, 546, 650]), $a([3, 4, 3, 11, 17, 4, 9, 16])]), $a(["full", "20", $1.v10to26, 97, 97, 34, 62, 8683, $a([224, 416, 600, 700]), $a([3, 5, 3, 13, 15, 5, 15, 10])]), $a(["full", "21", $1.v10to26, 101, 101, 28, 50, 9252, $a([224, 442, 644, 750]), $a([4, 4, 17, 0, 17, 6, 19, 6])]), $a(["full", "22", $1.v10to26, 105, 105, 26, 50, 10068, $a([252, 476, 690, 816]), $a([2, 7, 17, 0, 7, 16, 34, 0])]), $a(["full", "23", $1.v10to26, 109, 109, 30, 54, 10916, $a([270, 504, 750, 900]), $a([4, 5, 4, 14, 11, 14, 16, 14])]), $a(["full", "24", $1.v10to26, 113, 113, 28, 54, 11796, $a([300, 560, 810, 960]), $a([6, 4, 6, 14, 11, 16, 30, 2])]), $a(["full", "25", $1.v10to26, 117, 117, 32, 58, 12708, $a([312, 588, 870, 1050]), $a([8, 4, 8, 13, 7, 22, 22, 13])]), $a(["full", "26", $1.v10to26, 121, 121, 30, 58, 13652, $a([336, 644, 952, 1110]), $a([10, 2, 19, 4, 28, 6, 33, 4])]), $a(["full", "27", $1.v27to40, 125, 125, 34, 62, 14628, $a([360, 700, 1020, 1200]), $a([8, 4, 22, 3, 8, 26, 12, 28])]), $a(["full", "28", $1.v27to40, 129, 129, 26, 50, 15371, $a([390, 728, 1050, 1260]), $a([3, 10, 3, 23, 4, 31, 11, 31])]), $a(["full", "29", $1.v27to40, 133, 133, 30, 54, 16411, $a([420, 784, 1140, 1350]), $a([7, 7, 21, 7, 1, 37, 19, 26])]), $a(["full", "30", $1.v27to40, 137, 137, 26, 52, 17483, $a([450, 812, 1200, 1440]), $a([5, 10, 19, 10, 15, 25, 23, 25])]), $a(["full", "31", $1.v27to40, 141, 141, 30, 56, 18587, $a([480, 868, 1290, 1530]), $a([13, 3, 2, 29, 42, 1, 23, 28])]), $a(["full", "32", $1.v27to40, 145, 145, 34, 60, 19723, $a([510, 924, 1350, 1620]), $a([17, 0, 10, 23, 10, 35, 19, 35])]), $a(["full", "33", $1.v27to40, 149, 149, 30, 58, 20891, $a([540, 980, 1440, 1710]), $a([17, 1, 14, 21, 29, 19, 11, 46])]), $a(["full", "34", $1.v27to40, 153, 153, 34, 62, 22091, $a([570, 1036, 1530, 1800]), $a([13, 6, 14, 23, 44, 7, 59, 1])]), $a(["full", "35", $1.v27to40, 157, 157, 30, 54, 23008, $a([570, 1064, 1590, 1890]), $a([12, 7, 12, 26, 39, 14, 22, 41])]), $a(["full", "36", $1.v27to40, 161, 161, 24, 50, 24272, $a([600, 1120, 1680, 1980]), $a([6, 14, 6, 34, 46, 10, 2, 64])]), $a(["full", "37", $1.v27to40, 165, 165, 28, 54, 25568, $a([630, 1204, 1770, 2100]), $a([17, 4, 29, 14, 49, 10, 24, 46])]), $a(["full", "38", $1.v27to40, 169, 169, 32, 58, 26896, $a([660, 1260, 1860, 2220]), $a([4, 18, 13, 32, 48, 14, 42, 32])]), $a(["full", "39", $1.v27to40, 173, 173, 26, 54, 28256, $a([720, 1316, 1950, 2310]), $a([20, 4, 40, 7, 43, 22, 10, 67])]), $a(["full", "40", $1.v27to40, 177, 177, 30, 58, 29648, $a([750, 1372, 2040, 2430]), $a([19, 6, 18, 31, 34, 34, 20, 61])]), $a(["rmqr", "R7x43", $1.vR7x43, 7, 43, 22, 99, 104, $a([99, 7, 99, 10]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x59", $1.vR7x59, 7, 59, 20, 40, 171, $a([99, 9, 99, 14]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x77", $1.vR7x77, 7, 77, 26, 52, 261, $a([99, 12, 99, 22]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x99", $1.vR7x99, 7, 99, 24, 50, 358, $a([99, 16, 99, 30]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x139", $1.vR7x139, 7, 139, 28, 56, 545, $a([99, 24, 99, 44]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R9x43", $1.vR9x43, 9, 43, 22, 99, 170, $a([99, 9, 99, 14]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R9x59", $1.vR9x59, 9, 59, 20, 40, 267, $a([99, 12, 99, 22]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R9x77", $1.vR9x77, 9, 77, 26, 52, 393, $a([99, 18, 99, 32]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R9x99", $1.vR9x99, 9, 99, 24, 50, 532, $a([99, 24, 99, 44]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R9x139", $1.vR9x139, 9, 139, 28, 56, 797, $a([99, 36, 99, 66]), $a([-1, -1, 1, 1, -1, -1, 3, 0])]), $a(["rmqr", "R11x27", $1.vR11x27, 11, 27, 98, 99, 122, $a([99, 8, 99, 10]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R11x43", $1.vR11x43, 11, 43, 22, 99, 249, $a([99, 12, 99, 20]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R11x59", $1.vR11x59, 11, 59, 20, 40, 376, $a([99, 16, 99, 32]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R11x77", $1.vR11x77, 11, 77, 26, 52, 538, $a([99, 24, 99, 44]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R11x99", $1.vR11x99, 11, 99, 24, 50, 719, $a([99, 32, 99, 60]), $a([-1, -1, 1, 1, -1, -1, 1, 1])]), $a(["rmqr", "R11x139", $1.vR11x139, 11, 139, 28, 56, 1062, $a([99, 48, 99, 90]), $a([-1, -1, 2, 0, -1, -1, 3, 0])]), $a(["rmqr", "R13x27", $1.vR13x27, 13, 27, 98, 99, 172, $a([99, 9, 99, 14]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R13x43", $1.vR13x43, 13, 43, 22, 99, 329, $a([99, 14, 99, 28]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R13x59", $1.vR13x59, 13, 59, 20, 40, 486, $a([99, 22, 99, 40]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R13x77", $1.vR13x77, 13, 77, 26, 52, 684, $a([99, 32, 99, 56]), $a([-1, -1, 1, 1, -1, -1, 1, 1])]), $a(["rmqr", "R13x99", $1.vR13x99, 13, 99, 24, 50, 907, $a([99, 40, 99, 78]), $a([-1, -1, 1, 1, -1, -1, 1, 2])]), $a(["rmqr", "R13x139", $1.vR13x139, 13, 139, 28, 56, 1328, $a([99, 60, 99, 112]), $a([-1, -1, 2, 1, -1, -1, 2, 2])]), $a(["rmqr", "R15x43", $1.vR15x43, 15, 43, 22, 99, 409, $a([99, 18, 99, 36]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R15x59", $1.vR15x59, 15, 59, 20, 40, 596, $a([99, 26, 99, 48]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R15x77", $1.vR15x77, 15, 77, 26, 52, 830, $a([99, 36, 99, 72]), $a([-1, -1, 1, 1, -1, -1, 2, 1])]), $a(["rmqr", "R15x99", $1.vR15x99, 15, 99, 24, 50, 1095, $a([99, 48, 99, 88]), $a([-1, -1, 2, 0, -1, -1, 4, 0])]), $a(["rmqr", "R15x139", $1.vR15x139, 15, 139, 28, 56, 1594, $a([99, 72, 99, 130]), $a([-1, -1, 2, 1, -1, -1, 1, 4])]), $a(["rmqr", "R17x43", $1.vR17x43, 17, 43, 22, 99, 489, $a([99, 22, 99, 40]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R17x59", $1.vR17x59, 17, 59, 20, 40, 706, $a([99, 32, 99, 60]), $a([-1, -1, 2, 0, -1, -1, 2, 0])]), $a(["rmqr", "R17x77", $1.vR17x77, 17, 77, 26, 52, 976, $a([99, 44, 99, 84]), $a([-1, -1, 2, 0, -1, -1, 1, 2])]), $a(["rmqr", "R17x99", $1.vR17x99, 17, 99, 24, 50, 1283, $a([99, 60, 99, 104]), $a([-1, -1, 2, 1, -1, -1, 4, 0])]), $a(["rmqr", "R17x139", $1.vR17x139, 17, 139, 28, 56, 1860, $a([99, 80, 99, 156]), $a([-1, -1, 4, 0, -1, -1, 2, 4])])]); //#18823 + $k[$j++] = 'eclval'; //#18824 + $search("LMQH", $1.eclevel); //#18824 + $j--; //#18824 + var _Iz = $k[--$j]; //#18824 + var _J0 = $k[--$j]; //#18824 + $k[$j++] = _Iz.length; //#18824 + $k[$j++] = _J0; //#18824 + $j--; //#18824 + var _J1 = $k[--$j]; //#18824 + var _J2 = $k[--$j]; //#18824 + $k[$j++] = _J1; //#18824 + $k[$j++] = _J2; //#18824 + $j--; //#18824 + var _J3 = $k[--$j]; //#18824 + $1[$k[--$j]] = _J3; //#18824 + for (var _J7 = 0, _J6 = $1.metrics.length - 1; _J7 <= _J6; _J7 += 1) { //#18863 + $1.i = _J7; //#18826 + $1.m = $get($1.metrics, $1.i); //#18827 + $1.frmt = $get($1.m, 0); //#18828 + $1.vers = $get($1.m, 1); //#18829 + $1.vergrp = $get($1.m, 2); //#18830 + $1.verind = $1.i - 44; //#18831 + $1.rows = $get($1.m, 3); //#18832 + $1.cols = $get($1.m, 4); //#18833 + $1.asp2 = $get($1.m, 5); //#18834 + $1.asp3 = $get($1.m, 6); //#18835 + $1.nmod = $get($1.m, 7); //#18836 + $1.ncws = ~~($1.nmod / 8); //#18837 + $1.rbit = $1.nmod % 8; //#18838 + $1.lc4b = false; //#18839 + if ($eq($1.vers, "M1") || $eq($1.vers, "M3")) { //#18844 + $1.ncws = $1.ncws + 1; //#18841 + $1.rbit = 0; //#18842 + $1.lc4b = true; //#18843 + } //#18843 + $1.ecws = $get($get($1.m, 8), $1.eclval); //#18845 + $1.dcws = $f($1.ncws - $1.ecws); //#18846 + var _Jf = $1.lc4b ? 4 : 0; //#18847 + $1.dmod = $f(($1.dcws * 8) - _Jf); //#18847 + $1.ecb1 = $get($get($1.m, 9), $1.eclval * 2); //#18848 + $1.ecb2 = $get($get($1.m, 9), $f(($1.eclval * 2) + 1)); //#18849 + $1.okay = true; //#18850 + if ($ne($1.format, $1.frmt)) { //#18851 + $1.okay = false; //#18851 + } //#18851 + if ($eq($1.frmt, "micro") && $1.fnc1first) { //#18852 + $1.okay = false; //#18852 + } //#18852 + if ($ne($1.version, "unset") && $ne($1.version, $1.vers)) { //#18853 + $1.okay = false; //#18853 + } //#18853 + if (($1.ecb1 == -1) || ($1.ecb2 == -1)) { //#18854 + $1.okay = false; //#18854 + } //#18854 + $1.verbits = $get($1.msgbits, $1.vergrp); //#18855 + if ($1.verbits == -1) { //#18859 + $1.okay = false; //#18857 + } else { //#18859 + if ($1.verbits.length > $1.dmod) { //#18859 + $1.okay = false; //#18859 + } //#18859 + } //#18859 + $1.term = $geti("000000000", 0, $get($1.termlens, $1.vergrp)); //#18861 + if ($1.okay) { //#18862 + break; //#18862 + } //#18862 + } //#18862 + if (!$1.okay) { //#18867 + $k[$j++] = 'bwipp.qrcodeNoValidSymbol'; //#18866 + $k[$j++] = "No valid symbol available"; //#18866 + $0.raiseerror(); //#18866 + } //#18866 + $1.format = $1.frmt; //#18869 + $1.version = $1.vers; //#18870 + $1.msgbits = $1.verbits; //#18871 + $1.dcpb = ~~($1.dcws / $f($1.ecb1 + $1.ecb2)); //#18872 + $1.ecpb = (~~($1.ncws / $f($1.ecb1 + $1.ecb2))) - $1.dcpb; //#18873 + var _KJ = $1.term; //#18876 + var _KK = $1.dmod; //#18876 + var _KL = $1.msgbits; //#18876 + var _KM = $1.term; //#18876 + var _KN = _KM.length; //#18876 + var _KO = $f(_KK - _KL.length); //#18876 + if ($f(_KK - _KL.length) > _KM.length) { //#18876 + var _ = _KN; //#18876 + _KN = _KO; //#18876 + _KO = _; //#18876 + } //#18876 + $1.term = $geti(_KJ, 0, _KO); //#18876 + var _KS = $s($1.msgbits.length + $1.term.length); //#18877 + $puti(_KS, 0, $1.msgbits); //#18878 + $puti(_KS, $1.msgbits.length, $1.term); //#18879 + $1.msgbits = _KS; //#18880 + $1.pad = $s($1.dmod); //#18883 + for (var _Ka = 0, _KZ = $1.pad.length - 1; _Ka <= _KZ; _Ka += 1) { //#18884 + $put($1.pad, _Ka, 48); //#18884 + } //#18884 + $puti($1.pad, 0, $1.msgbits); //#18885 + $1.padstrs = $a(["11101100", "00010001"]); //#18886 + $1.padnum = 0; //#18887 + var _Ki = $1.lc4b ? 5 : 1; //#18888 + for (var _Kk = ~~(Math.ceil($1.msgbits.length / 8) * 8), _Kj = $f($1.dmod - _Ki); _Kk <= _Kj; _Kk += 8) { //#18891 + $puti($1.pad, _Kk, $get($1.padstrs, $1.padnum)); //#18889 + $1.padnum = ($1.padnum + 1) % 2; //#18890 + } //#18890 + $1.cws = $a($1.dcws); //#18894 + for (var _Ku = 0, _Kt = $1.cws.length - 1; _Ku <= _Kt; _Ku += 1) { //#18906 + $1.c = _Ku; //#18896 + $1.bpcw = 8; //#18897 + if ($1.lc4b && ($1.c == ($1.cws.length - 1))) { //#18898 + $1.bpcw = 4; //#18898 + } //#18898 + $1.cwb = $geti($1.pad, $1.c * 8, $1.bpcw); //#18899 + $1.cw = 0; //#18900 + for (var _L4 = 0, _L3 = $1.bpcw - 1; _L4 <= _L3; _L4 += 1) { //#18904 + $1.i = _L4; //#18902 + $1.cw = $f($1.cw + ((~~(Math.pow(2, ($1.bpcw - $1.i) - 1))) * $f($get($1.cwb, $1.i) - 48))); //#18903 + } //#18903 + $put($1.cws, $1.c, $1.cw); //#18905 + } //#18905 + if ($1.lc4b) { //#18909 + var _LF = $1.cws; //#18909 + var _LG = $1.cws; //#18909 + $put(_LF, _LG.length - 1, $get(_LF, _LG.length - 1) << 4); //#18909 + } //#18909 + var _LJ = $get($1.options, 'debugcws') !== undefined; //#18911 + if (_LJ) { //#18911 + $k[$j++] = 'bwipp.debugcws'; //#18911 + $k[$j++] = $1.cws; //#18911 + $0.raiseerror(); //#18911 + } //#18911 + $k[$j++] = Infinity; //#18914 + $k[$j++] = 1; //#18914 + for (var _LL = 0, _LM = 255; _LL < _LM; _LL++) { //#18914 + var _LN = $k[--$j]; //#18914 + var _LO = _LN * 2; //#18914 + $k[$j++] = _LN; //#18914 + $k[$j++] = _LO; //#18914 + if (_LO >= 256) { //#18914 + var _LP = $k[--$j]; //#18914 + $k[$j++] = _LP ^ 285; //#18914 + } //#18914 + } //#18914 + $1.rsalog = $a(); //#18914 + $1.rslog = $a(256); //#18915 + for (var _LS = 1; _LS <= 255; _LS += 1) { //#18916 + $put($1.rslog, $get($1.rsalog, _LS), _LS); //#18916 + } //#18916 + $1.rsprod = function() { + var _LW = $k[--$j]; //#18920 + var _LX = $k[--$j]; //#18920 + $k[$j++] = _LX; //#18924 + $k[$j++] = _LW; //#18924 + if ((_LW != 0) && (_LX != 0)) { //#18923 + var _La = $get($1.rslog, $k[--$j]); //#18921 + var _Lf = $get($1.rsalog, $f(_La + $get($1.rslog, $k[--$j])) % 255); //#18921 + $k[$j++] = _Lf; //#18921 + } else { //#18923 + $j -= 2; //#18923 + $k[$j++] = 0; //#18923 + } //#18923 + }; //#18925 + $k[$j++] = Infinity; //#18928 + $k[$j++] = 1; //#18928 + for (var _Lh = 0, _Li = $1.ecpb; _Lh < _Li; _Lh++) { //#18928 + $k[$j++] = 0; //#18928 + } //#18928 + $1.coeffs = $a(); //#18928 + for (var _Lm = 0, _Ll = $1.ecpb - 1; _Lm <= _Ll; _Lm += 1) { //#18937 + $1.i = _Lm; //#18930 + $put($1.coeffs, $1.i + 1, $get($1.coeffs, $1.i)); //#18931 + for (var _Lt = $1.i; _Lt >= 1; _Lt -= 1) { //#18935 + $1.j = _Lt; //#18933 + $k[$j++] = $1.coeffs; //#18934 + $k[$j++] = $1.j; //#18934 + $k[$j++] = $get($1.coeffs, $1.j - 1); //#18934 + $k[$j++] = $get($1.coeffs, $1.j); //#18934 + $k[$j++] = $get($1.rsalog, $1.i); //#18934 + $1.rsprod(); //#18934 + var _M5 = $k[--$j]; //#18934 + var _M6 = $k[--$j]; //#18934 + var _M7 = $k[--$j]; //#18934 + $put($k[--$j], _M7, $xo(_M6, _M5)); //#18934 + } //#18934 + $k[$j++] = $1.coeffs; //#18936 + $k[$j++] = 0; //#18936 + $k[$j++] = $get($1.coeffs, 0); //#18936 + $k[$j++] = $get($1.rsalog, $1.i); //#18936 + $1.rsprod(); //#18936 + var _MF = $k[--$j]; //#18936 + var _MG = $k[--$j]; //#18936 + $put($k[--$j], _MG, _MF); //#18936 + } //#18936 + $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); //#18938 + $1.rscodes = function() { + $1.rscws = $k[--$j]; //#18942 + $1.rsnd = $1.rscws.length; //#18943 + $k[$j++] = Infinity; //#18944 + $forall($1.rscws); //#18944 + for (var _MP = 0, _MQ = $1.ecpb; _MP < _MQ; _MP++) { //#18944 + $k[$j++] = 0; //#18944 + } //#18944 + $1.rscws = $a(); //#18944 + for (var _MU = 0, _MT = $1.rsnd - 1; _MU <= _MT; _MU += 1) { //#18952 + $1.m = _MU; //#18946 + $1.k = $get($1.rscws, $1.m); //#18947 + for (var _Ma = 0, _MZ = $1.ecpb - 1; _Ma <= _MZ; _Ma += 1) { //#18951 + $1.j = _Ma; //#18949 + $k[$j++] = $1.rscws; //#18950 + $k[$j++] = ($1.m + $1.j) + 1; //#18950 + $k[$j++] = $get($1.coeffs, ($1.ecpb - $1.j) - 1); //#18950 + $k[$j++] = $1.k; //#18950 + $1.rsprod(); //#18950 + var _Mn = $k[--$j]; //#18950 + var _Mo = $k[--$j]; //#18950 + $put($k[--$j], _Mo, $xo(_Mn, $get($1.rscws, ($1.m + $1.j) + 1))); //#18950 + } //#18950 + } //#18950 + $k[$j++] = $geti($1.rscws, $1.rsnd, $1.ecpb); //#18953 + }; //#18954 + $1.dcwsb = $a($f($1.ecb1 + $1.ecb2)); //#18957 + $1.ecwsb = $a($f($1.ecb1 + $1.ecb2)); //#18958 + for (var _N2 = 0, _N1 = $f($1.ecb1 - 1); _N2 <= _N1; _N2 += 1) { //#18963 + $1.i = _N2; //#18960 + $put($1.dcwsb, $1.i, $geti($1.cws, $1.i * $1.dcpb, $1.dcpb)); //#18961 + $k[$j++] = $1.ecwsb; //#18962 + $k[$j++] = $1.i; //#18962 + $k[$j++] = $get($1.dcwsb, $1.i); //#18962 + $1.rscodes(); //#18962 + var _NF = $k[--$j]; //#18962 + var _NG = $k[--$j]; //#18962 + $put($k[--$j], _NG, _NF); //#18962 + } //#18962 + for (var _NK = 0, _NJ = $f($1.ecb2 - 1); _NK <= _NJ; _NK += 1) { //#18968 + $1.i = _NK; //#18965 + $put($1.dcwsb, $f($1.ecb1 + $1.i), $geti($1.cws, $f(($1.ecb1 * $1.dcpb) + ($1.i * ($1.dcpb + 1))), $1.dcpb + 1)); //#18966 + $k[$j++] = $1.ecwsb; //#18967 + $k[$j++] = $f($1.ecb1 + $1.i); //#18967 + $k[$j++] = $get($1.dcwsb, $f($1.ecb1 + $1.i)); //#18967 + $1.rscodes(); //#18967 + var _Nc = $k[--$j]; //#18967 + var _Nd = $k[--$j]; //#18967 + $put($k[--$j], _Nd, _Nc); //#18967 + } //#18967 + $1.cws = $a($1.ncws); //#18971 + $1.cw = 0; //#18972 + for (var _Nj = 0, _Ni = $1.dcpb; _Nj <= _Ni; _Nj += 1) { //#18982 + $1.i = _Nj; //#18974 + for (var _Nn = 0, _Nm = $f($f($1.ecb1 + $1.ecb2) - 1); _Nn <= _Nm; _Nn += 1) { //#18981 + $1.j = _Nn; //#18976 + if ($1.i < $get($1.dcwsb, $1.j).length) { //#18980 + $put($1.cws, $1.cw, $get($get($1.dcwsb, $1.j), $1.i)); //#18978 + $1.cw = $1.cw + 1; //#18979 + } //#18979 + } //#18979 + } //#18979 + for (var _O2 = 0, _O1 = $1.ecpb - 1; _O2 <= _O1; _O2 += 1) { //#18990 + $1.i = _O2; //#18984 + for (var _O6 = 0, _O5 = $f($f($1.ecb1 + $1.ecb2) - 1); _O6 <= _O5; _O6 += 1) { //#18989 + $1.j = _O6; //#18986 + $put($1.cws, $1.cw, $get($get($1.ecwsb, $1.j), $1.i)); //#18987 + $1.cw = $1.cw + 1; //#18988 + } //#18988 + } //#18988 + if ($1.rbit > 0) { //#18998 + $1.pad = $a($1.cws.length + 1); //#18994 + $puti($1.pad, 0, $1.cws); //#18995 + $put($1.pad, $1.pad.length - 1, 0); //#18996 + $1.cws = $1.pad; //#18997 + } //#18997 + if ($1.lc4b) { //#19009 + var _OO = $1.cws; //#19002 + var _OP = $1.dcws; //#19002 + $put(_OO, $f(_OP - 1), $get(_OO, $f(_OP - 1)) >>> 4); //#19002 + for (var _OU = $f($1.dcws - 1), _OT = $1.ncws - 2; _OU <= _OT; _OU += 1) { //#19007 + $1.i = _OU; //#19004 + $put($1.cws, $1.i, ($get($1.cws, $1.i) & 15) << 4); //#19005 + $put($1.cws, $1.i, (($get($1.cws, $1.i + 1) >>> 4) & 15) | $get($1.cws, $1.i)); //#19006 + } //#19006 + $put($1.cws, $1.ncws - 1, ($get($1.cws, $1.ncws - 1) & 15) << 4); //#19008 + } //#19008 + var _Oo = $get($1.options, 'debugecc') !== undefined; //#19011 + if (_Oo) { //#19011 + $k[$j++] = 'bwipp.debugecc'; //#19011 + $k[$j++] = $1.cws; //#19011 + $0.raiseerror(); //#19011 + } //#19011 + $k[$j++] = Infinity; //#19014 + for (var _Os = 0, _Ot = $1.rows * $1.cols; _Os < _Ot; _Os++) { //#19014 + $k[$j++] = -1; //#19014 + } //#19014 + $1.pixs = $a(); //#19014 + $1.qmv = function() { + var _Ow = $k[--$j]; //#19015 + var _Ox = $k[--$j]; //#19015 + $k[$j++] = $f(_Ox + (_Ow * $1.cols)); //#19015 + }; //#19015 + if ($eq($1.format, "full")) { //#19024 + for (var _P1 = 8, _P0 = $f($1.cols - 9); _P1 <= _P0; _P1 += 1) { //#19023 + $1.i = _P1; //#19020 + $k[$j++] = $1.pixs; //#19021 + $k[$j++] = $1.i; //#19021 + $k[$j++] = 6; //#19021 + $1.qmv(); //#19021 + var _P5 = $k[--$j]; //#19021 + $put($k[--$j], _P5, ($1.i + 1) % 2); //#19021 + $k[$j++] = $1.pixs; //#19022 + $k[$j++] = 6; //#19022 + $k[$j++] = $1.i; //#19022 + $1.qmv(); //#19022 + var _PA = $k[--$j]; //#19022 + $put($k[--$j], _PA, ($1.i + 1) % 2); //#19022 + } //#19022 + } //#19022 + if ($eq($1.format, "micro")) { //#19031 + for (var _PF = 8, _PE = $f($1.cols - 1); _PF <= _PE; _PF += 1) { //#19030 + $1.i = _PF; //#19027 + $k[$j++] = $1.pixs; //#19028 + $k[$j++] = $1.i; //#19028 + $k[$j++] = 0; //#19028 + $1.qmv(); //#19028 + var _PJ = $k[--$j]; //#19028 + $put($k[--$j], _PJ, ($1.i + 1) % 2); //#19028 + $k[$j++] = $1.pixs; //#19029 + $k[$j++] = 0; //#19029 + $k[$j++] = $1.i; //#19029 + $1.qmv(); //#19029 + var _PO = $k[--$j]; //#19029 + $put($k[--$j], _PO, ($1.i + 1) % 2); //#19029 + } //#19029 + } //#19029 + if ($eq($1.format, "rmqr")) { //#19050 + for (var _PT = 3, _PS = $f($1.cols - 4); _PT <= _PS; _PT += 1) { //#19037 + $1.i = _PT; //#19034 + $k[$j++] = $1.pixs; //#19035 + $k[$j++] = $1.i; //#19035 + $k[$j++] = 0; //#19035 + $1.qmv(); //#19035 + var _PX = $k[--$j]; //#19035 + $put($k[--$j], _PX, ($1.i + 1) % 2); //#19035 + $k[$j++] = $1.pixs; //#19036 + $k[$j++] = $1.i; //#19036 + $k[$j++] = $f($1.rows - 1); //#19036 + $1.qmv(); //#19036 + var _Pd = $k[--$j]; //#19036 + $put($k[--$j], _Pd, ($1.i + 1) % 2); //#19036 + } //#19036 + for (var _Ph = 3, _Pg = $f($1.rows - 4); _Ph <= _Pg; _Ph += 1) { //#19042 + $1.i = _Ph; //#19039 + $k[$j++] = $1.pixs; //#19040 + $k[$j++] = 0; //#19040 + $k[$j++] = $1.i; //#19040 + $1.qmv(); //#19040 + var _Pl = $k[--$j]; //#19040 + $put($k[--$j], _Pl, ($1.i + 1) % 2); //#19040 + $k[$j++] = $1.pixs; //#19041 + $k[$j++] = $f($1.cols - 1); //#19041 + $k[$j++] = $1.i; //#19041 + $1.qmv(); //#19041 + var _Pr = $k[--$j]; //#19041 + $put($k[--$j], _Pr, ($1.i + 1) % 2); //#19041 + } //#19041 + for (var _Py = $f($1.asp2 - 1), _Pz = $f($1.asp3 - $1.asp2), _Px = $f($1.cols - 13); _Pz < 0 ? _Py >= _Px : _Py <= _Px; _Py += _Pz) { //#19049 + $1.i = _Py; //#19044 + for (var _Q2 = 3, _Q1 = $f($1.rows - 4); _Q2 <= _Q1; _Q2 += 1) { //#19048 + $1.j = _Q2; //#19046 + $k[$j++] = $1.pixs; //#19047 + $k[$j++] = $1.i; //#19047 + $k[$j++] = $1.j; //#19047 + $1.qmv(); //#19047 + var _Q7 = $k[--$j]; //#19047 + $put($k[--$j], _Q7, ($1.j + 1) % 2); //#19047 + } //#19047 + } //#19047 + } //#19047 + $1.fpat = $a([$a([1, 1, 1, 1, 1, 1, 1, 0]), $a([1, 0, 0, 0, 0, 0, 1, 0]), $a([1, 0, 1, 1, 1, 0, 1, 0]), $a([1, 0, 1, 1, 1, 0, 1, 0]), $a([1, 0, 1, 1, 1, 0, 1, 0]), $a([1, 0, 0, 0, 0, 0, 1, 0]), $a([1, 1, 1, 1, 1, 1, 1, 0]), $a([0, 0, 0, 0, 0, 0, 0, 0])]); //#19062 + $1.fsubpat = $a([$a([1, 1, 1, 1, 1, 9, 9, 9]), $a([1, 0, 0, 0, 1, 9, 9, 9]), $a([1, 0, 1, 0, 1, 9, 9, 9]), $a([1, 0, 0, 0, 1, 9, 9, 9]), $a([1, 1, 1, 1, 1, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9])]); //#19072 + $1.fcorpat = $a([$a([1, 1, 1, 9, 9, 9, 9, 9]), $a([1, 0, 9, 9, 9, 9, 9, 9]), $a([1, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9])]); //#19082 + $1.fnullpat = $a([$a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9])]); //#19092 + var _Qy = new Map([ + ["full", $a([$1.fpat, $1.fpat, $1.fpat, $1.fnullpat])], + ["micro", $a([$1.fpat, $1.fnullpat, $1.fnullpat, $1.fnullpat])], + ["rmqr", $a([$1.fpat, $1.fcorpat, $1.fcorpat, $1.fsubpat])] + ]); //#19097 + $1.fpats = $get(_Qy, $1.format); //#19098 + for (var _R1 = 0; _R1 <= 7; _R1 += 1) { //#19112 + $1.y = _R1; //#19100 + for (var _R2 = 0; _R2 <= 7; _R2 += 1) { //#19111 + $1.x = _R2; //#19102 + $1.fpb0 = $get($get($get($1.fpats, 0), $1.y), $1.x); //#19103 + $1.fpb1 = $get($get($get($1.fpats, 1), $1.y), $1.x); //#19104 + $1.fpb2 = $get($get($get($1.fpats, 2), $1.y), $1.x); //#19105 + $1.fpb3 = $get($get($get($1.fpats, 3), $1.y), $1.x); //#19106 + if (($1.fpb0 != 9) && ($1.y < $1.rows)) { //#19107 + $k[$j++] = $1.pixs; //#19107 + $k[$j++] = $1.x; //#19107 + $k[$j++] = $1.y; //#19107 + $1.qmv(); //#19107 + var _RY = $k[--$j]; //#19107 + $put($k[--$j], _RY, $1.fpb0); //#19107 + } //#19107 + if ($1.fpb1 != 9) { //#19108 + $k[$j++] = $1.pixs; //#19108 + $k[$j++] = $f($f($1.cols - $1.x) - 1); //#19108 + $k[$j++] = $1.y; //#19108 + $1.qmv(); //#19108 + var _Rg = $k[--$j]; //#19108 + $put($k[--$j], _Rg, $1.fpb1); //#19108 + } //#19108 + if ($1.fpb2 != 9) { //#19109 + $k[$j++] = $1.pixs; //#19109 + $k[$j++] = $1.x; //#19109 + $k[$j++] = $f($f($1.rows - $1.y) - 1); //#19109 + $1.qmv(); //#19109 + var _Ro = $k[--$j]; //#19109 + $put($k[--$j], _Ro, $1.fpb2); //#19109 + } //#19109 + if ($1.fpb3 != 9) { //#19110 + $k[$j++] = $1.pixs; //#19110 + $k[$j++] = $f($f($1.cols - $1.x) - 1); //#19110 + $k[$j++] = $f($f($1.rows - $1.y) - 1); //#19110 + $1.qmv(); //#19110 + var _Rx = $k[--$j]; //#19110 + $put($k[--$j], _Rx, $1.fpb3); //#19110 + } //#19110 + } //#19110 + } //#19110 + $1.putalgnpat = function() { + $1.py = $k[--$j]; //#19116 + $1.px = $k[--$j]; //#19117 + for (var _S1 = 0; _S1 <= 4; _S1 += 1) { //#19127 + $1.pb = _S1; //#19119 + for (var _S2 = 0; _S2 <= 4; _S2 += 1) { //#19126 + $1.pa = _S2; //#19121 + $1.algnb = $get($get($1.algnpat, $1.pb), $1.pa); //#19122 + if ($1.algnb != 9) { //#19125 + $k[$j++] = $1.pixs; //#19124 + $k[$j++] = $f($1.px + $1.pa); //#19124 + $k[$j++] = $f($1.py + $1.pb); //#19124 + $1.qmv(); //#19124 + var _SF = $k[--$j]; //#19124 + $put($k[--$j], _SF, $1.algnb); //#19124 + } //#19124 + } //#19124 + } //#19124 + }; //#19128 + if ($eq($1.format, "full")) { //#19149 + $1.algnpat = $a([$a([1, 1, 1, 1, 1]), $a([1, 0, 0, 0, 1]), $a([1, 0, 1, 0, 1]), $a([1, 0, 0, 0, 1]), $a([1, 1, 1, 1, 1])]); //#19136 + for (var _ST = $f($1.asp2 - 2), _SU = $f($1.asp3 - $1.asp2), _SS = $f($1.cols - 13); _SU < 0 ? _ST >= _SS : _ST <= _SS; _ST += _SU) { //#19141 + $1.i = _ST; //#19138 + $k[$j++] = $1.i; //#19139 + $k[$j++] = 4; //#19139 + $1.putalgnpat(); //#19139 + $k[$j++] = 4; //#19140 + $k[$j++] = $1.i; //#19140 + $1.putalgnpat(); //#19140 + } //#19140 + for (var _Sc = $f($1.asp2 - 2), _Sd = $f($1.asp3 - $1.asp2), _Sb = $f($1.cols - 9); _Sd < 0 ? _Sc >= _Sb : _Sc <= _Sb; _Sc += _Sd) { //#19148 + $1.x = _Sc; //#19143 + for (var _Sj = $f($1.asp2 - 2), _Sk = $f($1.asp3 - $1.asp2), _Si = $f($1.rows - 9); _Sk < 0 ? _Sj >= _Si : _Sj <= _Si; _Sj += _Sk) { //#19147 + $1.y = _Sj; //#19145 + $k[$j++] = $1.x; //#19146 + $k[$j++] = $1.y; //#19146 + $1.putalgnpat(); //#19146 + } //#19146 + } //#19146 + } //#19146 + if ($eq($1.format, "rmqr")) { //#19163 + $1.algnpat = $a([$a([1, 1, 1, 9, 9]), $a([1, 0, 1, 9, 9]), $a([1, 1, 1, 9, 9]), $a([9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9])]); //#19157 + for (var _Sz = $f($1.asp2 - 2), _T0 = $f($1.asp3 - $1.asp2), _Sy = $f($1.cols - 13); _T0 < 0 ? _Sz >= _Sy : _Sz <= _Sy; _Sz += _T0) { //#19162 + $1.i = _Sz; //#19159 + $k[$j++] = $1.i; //#19160 + $k[$j++] = 0; //#19160 + $1.putalgnpat(); //#19160 + $k[$j++] = $1.i; //#19161 + $k[$j++] = $f($1.rows - 3); //#19161 + $1.putalgnpat(); //#19161 + } //#19161 + } //#19161 + var _W1 = new Map([ + ["full", $a([$a([$a([0, 8]), $a([8, $f($1.cols - 1)])]), $a([$a([1, 8]), $a([8, $f($1.cols - 2)])]), $a([$a([2, 8]), $a([8, $f($1.cols - 3)])]), $a([$a([3, 8]), $a([8, $f($1.cols - 4)])]), $a([$a([4, 8]), $a([8, $f($1.cols - 5)])]), $a([$a([5, 8]), $a([8, $f($1.cols - 6)])]), $a([$a([7, 8]), $a([8, $f($1.cols - 7)])]), $a([$a([8, 8]), $a([$f($1.cols - 8), 8])]), $a([$a([8, 7]), $a([$f($1.cols - 7), 8])]), $a([$a([8, 5]), $a([$f($1.cols - 6), 8])]), $a([$a([8, 4]), $a([$f($1.cols - 5), 8])]), $a([$a([8, 3]), $a([$f($1.cols - 4), 8])]), $a([$a([8, 2]), $a([$f($1.cols - 3), 8])]), $a([$a([8, 1]), $a([$f($1.cols - 2), 8])]), $a([$a([8, 0]), $a([$f($1.cols - 1), 8])])])], + ["micro", $a([$a([$a([1, 8])]), $a([$a([2, 8])]), $a([$a([3, 8])]), $a([$a([4, 8])]), $a([$a([5, 8])]), $a([$a([6, 8])]), $a([$a([7, 8])]), $a([$a([8, 8])]), $a([$a([8, 7])]), $a([$a([8, 6])]), $a([$a([8, 5])]), $a([$a([8, 4])]), $a([$a([8, 3])]), $a([$a([8, 2])]), $a([$a([8, 1])])])], + ["rmqr", $a([$a([$a([11, 3]), $a([$f($1.cols - 3), $f($1.rows - 6)])]), $a([$a([11, 2]), $a([$f($1.cols - 4), $f($1.rows - 6)])]), $a([$a([11, 1]), $a([$f($1.cols - 5), $f($1.rows - 6)])]), $a([$a([10, 5]), $a([$f($1.cols - 6), $f($1.rows - 2)])]), $a([$a([10, 4]), $a([$f($1.cols - 6), $f($1.rows - 3)])]), $a([$a([10, 3]), $a([$f($1.cols - 6), $f($1.rows - 4)])]), $a([$a([10, 2]), $a([$f($1.cols - 6), $f($1.rows - 5)])]), $a([$a([10, 1]), $a([$f($1.cols - 6), $f($1.rows - 6)])]), $a([$a([9, 5]), $a([$f($1.cols - 7), $f($1.rows - 2)])]), $a([$a([9, 4]), $a([$f($1.cols - 7), $f($1.rows - 3)])]), $a([$a([9, 3]), $a([$f($1.cols - 7), $f($1.rows - 4)])]), $a([$a([9, 2]), $a([$f($1.cols - 7), $f($1.rows - 5)])]), $a([$a([9, 1]), $a([$f($1.cols - 7), $f($1.rows - 6)])]), $a([$a([8, 5]), $a([$f($1.cols - 8), $f($1.rows - 2)])]), $a([$a([8, 4]), $a([$f($1.cols - 8), $f($1.rows - 3)])]), $a([$a([8, 3]), $a([$f($1.cols - 8), $f($1.rows - 4)])]), $a([$a([8, 2]), $a([$f($1.cols - 8), $f($1.rows - 5)])]), $a([$a([8, 1]), $a([$f($1.cols - 8), $f($1.rows - 6)])])])] + ]); //#19185 + $1.formatmap = $get(_W1, $1.format); //#19187 + $forall($1.formatmap, function() { //#19190 + $forall($k[--$j], function() { //#19189 + $forall($k[--$j]); //#19189 + $1.qmv(); //#19189 + $put($1.pixs, $k[--$j], 1); //#19189 + }); //#19189 + }); //#19189 + if ($eq($1.format, "full") && ($1.cols >= 45)) { //#19206 + $1.versionmap = $a([$a([$a([$f($1.cols - 9), 5]), $a([5, $f($1.cols - 9)])]), $a([$a([$f($1.cols - 10), 5]), $a([5, $f($1.cols - 10)])]), $a([$a([$f($1.cols - 11), 5]), $a([5, $f($1.cols - 11)])]), $a([$a([$f($1.cols - 9), 4]), $a([4, $f($1.cols - 9)])]), $a([$a([$f($1.cols - 10), 4]), $a([4, $f($1.cols - 10)])]), $a([$a([$f($1.cols - 11), 4]), $a([4, $f($1.cols - 11)])]), $a([$a([$f($1.cols - 9), 3]), $a([3, $f($1.cols - 9)])]), $a([$a([$f($1.cols - 10), 3]), $a([3, $f($1.cols - 10)])]), $a([$a([$f($1.cols - 11), 3]), $a([3, $f($1.cols - 11)])]), $a([$a([$f($1.cols - 9), 2]), $a([2, $f($1.cols - 9)])]), $a([$a([$f($1.cols - 10), 2]), $a([2, $f($1.cols - 10)])]), $a([$a([$f($1.cols - 11), 2]), $a([2, $f($1.cols - 11)])]), $a([$a([$f($1.cols - 9), 1]), $a([1, $f($1.cols - 9)])]), $a([$a([$f($1.cols - 10), 1]), $a([1, $f($1.cols - 10)])]), $a([$a([$f($1.cols - 11), 1]), $a([1, $f($1.cols - 11)])]), $a([$a([$f($1.cols - 9), 0]), $a([0, $f($1.cols - 9)])]), $a([$a([$f($1.cols - 10), 0]), $a([0, $f($1.cols - 10)])]), $a([$a([$f($1.cols - 11), 0]), $a([0, $f($1.cols - 11)])])]); //#19204 + } else { //#19206 + $1.versionmap = $a([]); //#19206 + } //#19206 + var _Xf = $1.versionmap; //#19208 + for (var _Xg = 0, _Xh = _Xf.length; _Xg < _Xh; _Xg++) { //#19210 + $forall($get(_Xf, _Xg), function() { //#19209 + $forall($k[--$j]); //#19209 + $1.qmv(); //#19209 + $put($1.pixs, $k[--$j], 0); //#19209 + }); //#19209 + } //#19209 + if ($eq($1.format, "full")) { //#19215 + $k[$j++] = $1.pixs; //#19214 + $k[$j++] = 8; //#19214 + $k[$j++] = $f($1.rows - 8); //#19214 + $1.qmv(); //#19214 + var _Xp = $k[--$j]; //#19214 + $put($k[--$j], _Xp, 0); //#19214 + } //#19214 + var _Y9 = $a([function() { + var _Xr = $k[--$j]; //#19220 + var _Xs = $k[--$j]; //#19220 + $k[$j++] = $f(_Xs + _Xr) % 2; //#19220 + }, function() { + var _Xt = $k[--$j]; //#19221 + var _Xu = $k[--$j]; //#19221 + $k[$j++] = _Xt; //#19221 + $k[$j++] = _Xu; //#19221 + $j--; //#19221 + var _Xv = $k[--$j]; //#19221 + $k[$j++] = _Xv % 2; //#19221 + }, function() { + $j--; //#19222 + var _Xw = $k[--$j]; //#19222 + $k[$j++] = _Xw % 3; //#19222 + }, function() { + var _Xx = $k[--$j]; //#19223 + var _Xy = $k[--$j]; //#19223 + $k[$j++] = $f(_Xy + _Xx) % 3; //#19223 + }, function() { + var _Xz = $k[--$j]; //#19224 + var _Y0 = $k[--$j]; //#19224 + $k[$j++] = ((~~(_Xz / 2)) + (~~(_Y0 / 3))) % 2; //#19224 + }, function() { + var _Y1 = $k[--$j]; //#19225 + var _Y3 = $k[--$j] * _Y1; //#19225 + $k[$j++] = $f((_Y3 % 2) + (_Y3 % 3)); //#19225 + }, function() { + var _Y4 = $k[--$j]; //#19226 + var _Y6 = $k[--$j] * _Y4; //#19226 + $k[$j++] = ($f((_Y6 % 2) + (_Y6 % 3))) % 2; //#19226 + }, function() { + var _Y7 = $k[--$j]; //#19227 + var _Y8 = $k[--$j]; //#19227 + $k[$j++] = ($f(((_Y8 * _Y7) % 3) + ($f(_Y8 + _Y7) % 2))) % 2; //#19227 + }]); //#19227 + var _YK = $a([function() { + var _YA = $k[--$j]; //#19230 + var _YB = $k[--$j]; //#19230 + $k[$j++] = _YA; //#19230 + $k[$j++] = _YB; //#19230 + $j--; //#19230 + var _YC = $k[--$j]; //#19230 + $k[$j++] = _YC % 2; //#19230 + }, function() { + var _YD = $k[--$j]; //#19231 + var _YE = $k[--$j]; //#19231 + $k[$j++] = ((~~(_YD / 2)) + (~~(_YE / 3))) % 2; //#19231 + }, function() { + var _YF = $k[--$j]; //#19232 + var _YH = $k[--$j] * _YF; //#19232 + $k[$j++] = ($f((_YH % 2) + (_YH % 3))) % 2; //#19232 + }, function() { + var _YI = $k[--$j]; //#19233 + var _YJ = $k[--$j]; //#19233 + $k[$j++] = ($f(((_YJ * _YI) % 3) + ($f(_YJ + _YI) % 2))) % 2; //#19233 + }]); //#19233 + var _YN = $a([function() { + var _YL = $k[--$j]; //#19236 + var _YM = $k[--$j]; //#19236 + $k[$j++] = ((~~(_YL / 2)) + (~~(_YM / 3))) % 2; //#19236 + }]); //#19236 + var _YO = new Map([ + ["full", _Y9], + ["micro", _YK], + ["rmqr", _YN] + ]); //#19236 + $1.maskfuncs = $get(_YO, $1.format); //#19238 + if ($1.mask != -1) { //#19242 + $1.maskfuncs = $a([$get($1.maskfuncs, $1.mask - 1)]); //#19240 + $1.bestmaskval = $1.mask - 1; //#19241 + } //#19241 + $1.masks = $a($1.maskfuncs.length); //#19243 + for (var _Yb = 0, _Ya = $1.masks.length - 1; _Yb <= _Ya; _Yb += 1) { //#19257 + $1.m = _Yb; //#19245 + $1.mask = $a($1.rows * $1.cols); //#19246 + for (var _Yh = 0, _Yg = $f($1.rows - 1); _Yh <= _Yg; _Yh += 1) { //#19255 + $1.j = _Yh; //#19248 + for (var _Yk = 0, _Yj = $f($1.cols - 1); _Yk <= _Yj; _Yk += 1) { //#19254 + $1.i = _Yk; //#19250 + $k[$j++] = $1.i; //#19251 + $k[$j++] = $1.j; //#19251 + if ($get($1.maskfuncs, $1.m)() === true) { break; - } - if ($1.mode == $1.B) { - $k[$j++] = $a([ 9, 12, 13, $1.e, $1.e, 4, 5 ]); - $1.KbeforeB(); - if ($k[--$j]) { - $k[$j++] = $1.K; - break; - } - $k[$j++] = $a([ 9, 10, 12, $1.e, $1.e, 4, 5 ]); - $1.KbeforeA(); - if ($k[--$j]) { - $k[$j++] = $1.K; - break; - } - $k[$j++] = $a([ 9, 10, 11, $1.e, $1.e, 5, 6 ]); - $1.KbeforeN(); - if ($k[--$j]) { - $k[$j++] = $1.K; - break; - } - $k[$j++] = $a([ 4, 5, 6, $1.e, $1.e, 2, 3 ]); - $1.KbeforeE(); - if ($k[--$j]) { - $k[$j++] = $1.K; - break; - } - $k[$j++] = $a([ 11, 12, 14, $1.e, $1.e, 5, 7 ]); - $1.AbeforeK(); - if ($k[--$j]) { - $k[$j++] = $1.A; - break; - } - $k[$j++] = $a([ 11, 15, 16, $1.e, $1.e, 6, 7 ]); - $1.AbeforeB(); - if ($k[--$j]) { - $k[$j++] = $1.A; - break; - } - $k[$j++] = $a([ 12, 13, 15, $1.e, $1.e, 6, 8 ]); - $1.AbeforeN(); - if ($k[--$j]) { - $k[$j++] = $1.A; - break; - } - $k[$j++] = $a([ 6, 7, 8, $1.e, $1.e, 3, 4 ]); - $1.AbeforeE(); - if ($k[--$j]) { - $k[$j++] = $1.A; - break; - } - $k[$j++] = $a([ 6, 7, 8, $1.e, $1.e, 3, 4 ]); - $1.NbeforeK(); - if ($k[--$j]) { - $k[$j++] = $1.N; - break; - } - $k[$j++] = $a([ 6, 8, 9, $1.e, $1.e, 3, 4 ]); - $1.NbeforeB(); - if ($k[--$j]) { - $k[$j++] = $1.N; - break; - } - $k[$j++] = $a([ 6, 7, 8, $1.e, $1.e, 3, 4 ]); - $1.NbeforeA(); - if ($k[--$j]) { - $k[$j++] = $1.N; - break; - } - $k[$j++] = $a([ 3, 4, 5, $1.e, $1.e, 2, 3 ]); - $1.NbeforeE(); - if ($k[--$j]) { - $k[$j++] = $1.N; - break; - } - $k[$j++] = $1.B; + } //#19251 + var _Yq = $k[--$j]; //#19251 + $k[$j++] = _Yq == 0; //#19252 + $k[$j++] = $1.pixs; //#19252 + $k[$j++] = $1.i; //#19252 + $k[$j++] = $1.j; //#19252 + $1.qmv(); //#19252 + var _Yu = $k[--$j]; //#19252 + var _Yw = $get($k[--$j], _Yu); //#19252 + var _Yx = $k[--$j]; //#19252 + var _Yy = (_Yx && (_Yw == -1)) ? 1 : 0; //#19252 + $k[$j++] = _Yy; //#19253 + $k[$j++] = $1.mask; //#19253 + $k[$j++] = $1.i; //#19253 + $k[$j++] = $1.j; //#19253 + $1.qmv(); //#19253 + var _Z2 = $k[--$j]; //#19253 + var _Z3 = $k[--$j]; //#19253 + $put(_Z3, _Z2, $k[--$j]); //#19253 + } //#19253 + } //#19253 + $put($1.masks, $1.m, $1.mask); //#19256 + } //#19256 + var _ZA = $ne($1.format, "rmqr") ? 1 : 2; //#19260 + $1.posx = $f($1.cols - _ZA); //#19260 + $1.posy = $f($1.rows - 1); //#19261 + $1.dir = -1; //#19262 + $1.col = 1; //#19263 + $1.num = 0; //#19264 + for (;;) { //#19287 + if ($1.posx < 0) { //#19266 + break; //#19266 + } //#19266 + $k[$j++] = $1.pixs; //#19267 + $k[$j++] = $1.posx; //#19267 + $k[$j++] = $1.posy; //#19267 + $1.qmv(); //#19267 + var _ZG = $k[--$j]; //#19267 + if ($get($k[--$j], _ZG) == -1) { //#19271 + var _ZL = $get($1.cws, ~~($1.num / 8)); //#19268 + var _ZN = -(7 - ($1.num % 8)); //#19268 + $k[$j++] = ((_ZN < 0 ? _ZL >>> -_ZN : _ZL << _ZN)) & 1; //#19269 + $k[$j++] = $1.pixs; //#19269 + $k[$j++] = $1.posx; //#19269 + $k[$j++] = $1.posy; //#19269 + $1.qmv(); //#19269 + var _ZR = $k[--$j]; //#19269 + var _ZS = $k[--$j]; //#19269 + $put(_ZS, _ZR, $k[--$j]); //#19269 + $1.num = $1.num + 1; //#19270 + } //#19270 + if ($1.col == 1) { //#19284 + $1.col = 0; //#19273 + $1.posx = $f($1.posx - 1); //#19274 + } else { //#19284 + $1.col = 1; //#19276 + $1.posx = $f($1.posx + 1); //#19277 + $1.posy = $f($1.posy + $1.dir); //#19278 + if (($1.posy < 0) || ($1.posy >= $1.rows)) { //#19285 + $1.dir = $1.dir * -1; //#19280 + $1.posy = $f($1.posy + $1.dir); //#19281 + $1.posx = $f($1.posx - 2); //#19282 + if ($eq($1.format, "full") && ($1.posx == 6)) { //#19284 + $1.posx = $f($1.posx - 1); //#19284 + } //#19284 + } //#19284 + } //#19284 + } //#19284 + $1.evalfulln1n3 = function() { + $1.scrle = $k[--$j]; //#19291 + $k[$j++] = 'scr1'; //#19293 + $k[$j++] = 0; //#19293 + $forall($1.scrle, function() { //#19293 + var _Zm = $k[--$j]; //#19293 + $k[$j++] = _Zm; //#19293 + if (_Zm >= 5) { //#19293 + var _Zn = $k[--$j]; //#19293 + var _Zp = $f($f($k[--$j] + _Zn) - 2); //#19293 + $k[$j++] = _Zp; //#19293 + $k[$j++] = _Zp; //#19293 + } //#19293 + $j--; //#19293 + }); //#19293 + var _Zq = $k[--$j]; //#19293 + $1[$k[--$j]] = _Zq; //#19293 + $1.scr3 = 0; //#19295 + for (var _Zu = 3, _Zt = $1.scrle.length - 3; _Zu <= _Zt; _Zu += 2) { //#19310 + $1.j = _Zu; //#19297 + if (($get($1.scrle, $1.j) % 3) == 0) { //#19309 + $1.fact = ~~($get($1.scrle, $1.j) / 3); //#19299 + var _a3 = $geti($1.scrle, $1.j - 2, 5); //#19300 + for (var _a4 = 0, _a5 = _a3.length; _a4 < _a5; _a4++) { //#19300 + $k[$j++] = $get(_a3, _a4) == $1.fact; //#19300 + } //#19300 + var _a8 = $k[--$j]; //#19300 + var _a9 = $k[--$j]; //#19300 + var _aA = $k[--$j]; //#19300 + $k[$j++] = $an(_a9, _a8); //#19300 + $k[$j++] = _aA; //#19300 + $j--; //#19300 + var _aB = $k[--$j]; //#19300 + var _aC = $k[--$j]; //#19300 + var _aD = $k[--$j]; //#19300 + if (_aD && (_aC && _aB)) { //#19308 + if (($1.j == 3) || (($1.j + 4) >= $1.scrle.length)) { //#19305 + $1.scr3 = $1.scr3 + 40; //#19302 + } else { //#19305 + if (($get($1.scrle, $1.j - 3) >= 4) || ($get($1.scrle, $1.j + 3) >= 4)) { //#19306 + $1.scr3 = $1.scr3 + 40; //#19305 + } //#19305 + } //#19305 + } //#19305 + } //#19305 + } //#19305 + $k[$j++] = $1.scr1; //#19311 + $k[$j++] = $1.scr3; //#19311 + }; //#19312 + $1.evalfull = function() { + $1.sym = $k[--$j]; //#19316 + $1.n1 = 0; //#19318 + $1.n2 = 0; //#19318 + $1.n3 = 0; //#19318 + $1.rle = $a($f($1.cols + 1)); //#19319 + $1.lastpairs = $a($1.cols); //#19320 + $1.thispairs = $a($1.cols); //#19321 + $1.colsadd1 = $f($1.cols + 1); //#19322 + for (var _ab = 0, _aa = $f($1.cols - 1); _ab <= _aa; _ab += 1) { //#19361 + $1.i = _ab; //#19324 + $k[$j++] = Infinity; //#19327 + var _ad = $1.cols; //#19328 + $k[$j++] = 0; //#19330 + $k[$j++] = 0; //#19330 + for (var _af = $1.i, _ag = _ad, _ae = $f((_ad * _ad) - 1); _ag < 0 ? _af >= _ae : _af <= _ae; _af += _ag) { //#19330 + var _ai = $get($1.sym, _af); //#19329 + var _aj = $k[--$j]; //#19329 + $k[$j++] = _ai; //#19329 + if ($eq(_aj, _ai)) { //#19329 + var _ak = $k[--$j]; //#19329 + var _al = $k[--$j]; //#19329 + $k[$j++] = $f(_al + 1); //#19329 + $k[$j++] = _ak; //#19329 + } else { //#19329 + var _am = $k[--$j]; //#19329 + $k[$j++] = 1; //#19329 + $k[$j++] = _am; //#19329 + } //#19329 + } //#19329 + $j--; //#19331 + var _ao = $counttomark() + 2; //#19332 + $astore($geti($1.rle, 0, _ao - 2)); //#19332 + $1.evalfulln1n3(); //#19333 + $1.n3 = $f($k[--$j] + $1.n3); //#19333 + $1.n1 = $f($k[--$j] + $1.n1); //#19333 + $j--; //#19334 + $1.symrow = $geti($1.sym, $1.i * $1.cols, $1.cols); //#19337 + $k[$j++] = Infinity; //#19338 + var _az = $1.symrow; //#19339 + $k[$j++] = 0; //#19341 + $k[$j++] = 0; //#19341 + for (var _b0 = 0, _b1 = _az.length; _b0 < _b1; _b0++) { //#19341 + var _b2 = $get(_az, _b0); //#19341 + var _b3 = $k[--$j]; //#19340 + $k[$j++] = _b2; //#19340 + if ($eq(_b3, _b2)) { //#19340 + var _b4 = $k[--$j]; //#19340 + var _b5 = $k[--$j]; //#19340 + $k[$j++] = $f(_b5 + 1); //#19340 + $k[$j++] = _b4; //#19340 + } else { //#19340 + var _b6 = $k[--$j]; //#19340 + $k[$j++] = 1; //#19340 + $k[$j++] = _b6; //#19340 + } //#19340 + } //#19340 + $j--; //#19342 + var _b8 = $counttomark() + 2; //#19343 + $astore($geti($1.rle, 0, _b8 - 2)); //#19343 + $1.evalfulln1n3(); //#19344 + $1.n3 = $f($k[--$j] + $1.n3); //#19344 + $1.n1 = $f($k[--$j] + $1.n1); //#19344 + $j--; //#19345 + var _bE = $1.thispairs; //#19348 + $1.thispairs = $1.lastpairs; //#19348 + $1.lastpairs = _bE; //#19348 + var _bI = ($get($1.symrow, 0) == 1) ? 0 : 1; //#19349 + var _bJ = $1.symrow; //#19350 + $k[$j++] = _bI; //#19350 + for (var _bK = 0, _bL = _bJ.length; _bK < _bL; _bK++) { //#19350 + var _bM = $get(_bJ, _bK); //#19350 + var _bN = $k[--$j]; //#19350 + $k[$j++] = $f(_bN + _bM); //#19350 + $k[$j++] = _bM; //#19350 + } //#19350 + $j--; //#19351 + $astore($1.thispairs); //#19352 + $j--; //#19352 + if ($1.i > 0) { //#19359 + $k[$j++] = Infinity; //#19354 + $aload($1.lastpairs); //#19355 + $aload($1.thispairs); //#19355 + $k[$j++] = $1.n2; //#19356 + for (var _bU = 0, _bV = $1.cols; _bU < _bV; _bU++) { //#19356 + var _bW = $k[--$j]; //#19356 + var _bX = $k[--$j]; //#19356 + $k[$j++] = _bW; //#19356 + $k[$j++] = _bX; //#19356 + var _bZ = $k[$j - 1 - $1.colsadd1]; //#19356 + if (($f($k[--$j] + _bZ) & 3) == 0) { //#19356 + var _bb = $k[--$j]; //#19356 + $k[$j++] = $f(_bb + 3); //#19356 + } //#19356 + } //#19356 + $1.n2 = $k[--$j]; //#19357 + $cleartomark(); //#19358 + } //#19358 + } //#19358 + $k[$j++] = 'dark'; //#19364 + $k[$j++] = 0; //#19364 + $forall($1.sym, function() { //#19364 + var _be = $k[--$j]; //#19364 + var _bf = $k[--$j]; //#19364 + $k[$j++] = $f(_bf + _be); //#19364 + }); //#19364 + var _bg = $k[--$j]; //#19364 + $1[$k[--$j]] = _bg; //#19364 + var _bj = $1.cols; //#19365 + $1.n4 = (~~((Math.abs($f((($1.dark * 100) / (_bj * _bj)) - 50))) / 5)) * 10; //#19365 + $k[$j++] = $f(($f($f($1.n1 + $1.n2) + $1.n3)) + $1.n4); //#19367 + }; //#19368 + $1.evalmicro = function() { + $1.sym = $k[--$j]; //#19372 + $1.dkrhs = 0; //#19373 + $1.dkbot = 0; //#19373 + for (var _br = 1, _bq = $f($1.cols - 1); _br <= _bq; _br += 1) { //#19378 + $1.i = _br; //#19375 + $k[$j++] = 'dkrhs'; //#19376 + $k[$j++] = $1.dkrhs; //#19376 + $k[$j++] = $1.sym; //#19376 + $k[$j++] = $f($1.cols - 1); //#19376 + $k[$j++] = $1.i; //#19376 + $1.qmv(); //#19376 + var _bw = $k[--$j]; //#19376 + var _by = $get($k[--$j], _bw); //#19376 + var _bz = $k[--$j]; //#19376 + $1[$k[--$j]] = $f(_bz + _by); //#19376 + $k[$j++] = 'dkbot'; //#19377 + $k[$j++] = $1.dkbot; //#19377 + $k[$j++] = $1.sym; //#19377 + $k[$j++] = $1.i; //#19377 + $k[$j++] = $f($1.cols - 1); //#19377 + $1.qmv(); //#19377 + var _c5 = $k[--$j]; //#19377 + var _c7 = $get($k[--$j], _c5); //#19377 + var _c8 = $k[--$j]; //#19377 + $1[$k[--$j]] = $f(_c8 + _c7); //#19377 + } //#19377 + if ($1.dkrhs <= $1.dkbot) { //#19382 + $k[$j++] = -(($1.dkrhs * 16) + $1.dkbot); //#19380 + } else { //#19382 + $k[$j++] = -(($1.dkbot * 16) + $1.dkrhs); //#19382 + } //#19382 + }; //#19384 + $1.bestscore = 999999999; //#19387 + for (var _cI = 0, _cH = $1.masks.length - 1; _cI <= _cH; _cI += 1) { //#19409 + $1.m = _cI; //#19389 + $1.masksym = $a($1.rows * $1.cols); //#19390 + for (var _cP = 0, _cO = $f(($1.rows * $1.cols) - 1); _cP <= _cO; _cP += 1) { //#19394 + $1.i = _cP; //#19392 + $put($1.masksym, $1.i, $xo($get($1.pixs, $1.i), $get($get($1.masks, $1.m), $1.i))); //#19393 + } //#19393 + if ($1.masks.length != 1) { //#19407 + if ($eq($1.format, "full")) { //#19399 + $k[$j++] = $1.masksym; //#19397 + $1.evalfull(); //#19397 + $1.score = $k[--$j]; //#19397 + } else { //#19399 + $k[$j++] = $1.masksym; //#19399 + $1.evalmicro(); //#19399 + $1.score = $k[--$j]; //#19399 + } //#19399 + if ($1.score < $1.bestscore) { //#19405 + $1.bestsym = $1.masksym; //#19402 + $1.bestmaskval = $1.m; //#19403 + $1.bestscore = $1.score; //#19404 + } //#19404 + } else { //#19407 + $1.bestsym = $1.masksym; //#19407 + } //#19407 + } //#19407 + $1.pixs = $1.bestsym; //#19410 + if ($eq($1.format, "full")) { //#19415 + $k[$j++] = $1.pixs; //#19414 + $k[$j++] = 8; //#19414 + $k[$j++] = $f($1.cols - 8); //#19414 + $1.qmv(); //#19414 + var _cq = $k[--$j]; //#19414 + $put($k[--$j], _cq, 1); //#19414 + } //#19414 + if ($eq($1.format, "full")) { //#19433 + $1.fmtvals = $a([21522, 20773, 24188, 23371, 17913, 16590, 20375, 19104, 30660, 29427, 32170, 30877, 26159, 25368, 27713, 26998, 5769, 5054, 7399, 6608, 1890, 597, 3340, 2107, 13663, 12392, 16177, 14854, 9396, 8579, 11994, 11245]); //#19424 + $k[$j++] = 'ecid'; //#19425 + $search("MLHQ", $1.eclevel); //#19425 + $j--; //#19425 + var _cv = $k[--$j]; //#19425 + var _cw = $k[--$j]; //#19425 + $k[$j++] = _cv.length; //#19425 + $k[$j++] = _cw; //#19425 + $j--; //#19425 + var _cx = $k[--$j]; //#19425 + var _cy = $k[--$j]; //#19425 + $k[$j++] = _cx; //#19425 + $k[$j++] = _cy; //#19425 + $j--; //#19425 + var _cz = $k[--$j]; //#19425 + $1[$k[--$j]] = _cz; //#19425 + $1.fmtval = $get($1.fmtvals, ($1.ecid << 3) + $1.bestmaskval); //#19426 + for (var _d7 = 0, _d6 = $1.formatmap.length - 1; _d7 <= _d6; _d7 += 1) { //#19432 + $1.i = _d7; //#19428 + $forall($get($1.formatmap, $1.i), function() { //#19431 + var _dC = $k[--$j]; //#19430 + $k[$j++] = $1.pixs; //#19430 + $aload(_dC); //#19430 + $1.qmv(); //#19430 + var _dD = $1.fmtval; //#19430 + var _dF = -(14 - $1.i); //#19430 + var _dG = $k[--$j]; //#19430 + $put($k[--$j], _dG, ((_dF < 0 ? _dD >>> -_dF : _dD << _dF)) & 1); //#19430 + }); //#19430 + } //#19430 + } //#19430 + if ($eq($1.format, "micro")) { //#19447 + $1.fmtvals = $a([17477, 16754, 20011, 19228, 21934, 20633, 24512, 23287, 26515, 25252, 28157, 26826, 30328, 29519, 31766, 31009, 1758, 1001, 3248, 2439, 5941, 4610, 7515, 6252, 9480, 8255, 12134, 10833, 13539, 12756, 16013, 15290]); //#19440 + $1.symid = $get($get($a([$a([0]), $a([1, 2]), $a([3, 4]), $a([5, 6, 7])]), ~~($f($1.cols - 11) / 2)), $1.eclval); //#19441 + $1.fmtval = $get($1.fmtvals, ($1.symid << 2) + $1.bestmaskval); //#19442 + for (var _dZ = 0, _dY = $1.formatmap.length - 1; _dZ <= _dY; _dZ += 1) { //#19446 + $1.i = _dZ; //#19444 + $k[$j++] = $1.pixs; //#19445 + $aload($get($get($1.formatmap, $1.i), 0)); //#19445 + $1.qmv(); //#19445 + var _df = $1.fmtval; //#19445 + var _dh = -(14 - $1.i); //#19445 + var _di = $k[--$j]; //#19445 + $put($k[--$j], _di, ((_dh < 0 ? _df >>> -_dh : _df << _dh)) & 1); //#19445 + } //#19445 + } //#19445 + if ($eq($1.format, "rmqr")) { //#19477 + $1.fmtvals1 = $a([129714, 124311, 121821, 115960, 112748, 108361, 104707, 99878, 98062, 90155, 89697, 82244, 81360, 74485, 72895, 66458, 61898, 61167, 53413, 53120, 45844, 44081, 37499, 36190, 29814, 27475, 21785, 19004, 13992, 10637, 6087, 2274, 258919, 257090, 250376, 249133, 242105, 241308, 233686, 233459, 227035, 223742, 219060, 215185, 209925, 207648, 202090, 199247, 194591, 190266, 186736, 181845, 178881, 173540, 170926, 165003, 163235, 156294, 154828, 148457, 147325, 139352, 138770, 131383]); //#19458 + $1.fmtvals2 = $a([133755, 136542, 142100, 144433, 149669, 153472, 158154, 161519, 167879, 168162, 175784, 176525, 183577, 184892, 191606, 193363, 196867, 204326, 204908, 212809, 213981, 220408, 221874, 228759, 230591, 236442, 239056, 244469, 247393, 252228, 255758, 260139, 942, 7307, 8897, 15844, 16752, 24149, 24607, 32570, 34322, 39223, 42877, 47192, 50380, 56297, 58787, 64134, 67798, 71667, 76217, 79516, 84488, 87341, 93031, 95298, 101738, 102991, 109573, 111392, 118708, 118929, 126683, 127486]); //#19468 + $k[$j++] = 'fmtvalu'; //#19469 + $search("MH", $1.eclevel); //#19469 + $j--; //#19469 + var _do = $k[--$j]; //#19469 + var _dp = $k[--$j]; //#19469 + $k[$j++] = _do.length; //#19469 + $k[$j++] = _dp; //#19469 + $j--; //#19469 + var _dq = $k[--$j]; //#19469 + var _dr = $k[--$j]; //#19469 + $k[$j++] = _dq; //#19469 + $k[$j++] = _dr; //#19469 + $j--; //#19469 + var _ds = $k[--$j]; //#19469 + $1[$k[--$j]] = (_ds << 5) + $1.verind; //#19469 + $1.fmtval1 = $get($1.fmtvals1, $1.fmtvalu); //#19470 + $1.fmtval2 = $get($1.fmtvals2, $1.fmtvalu); //#19471 + for (var _e3 = 0, _e2 = $1.formatmap.length - 1; _e3 <= _e2; _e3 += 1) { //#19476 + $1.i = _e3; //#19473 + $k[$j++] = $1.pixs; //#19474 + $aload($get($get($1.formatmap, $1.i), 0)); //#19474 + $1.qmv(); //#19474 + var _e9 = $1.fmtval1; //#19474 + var _eB = -(17 - $1.i); //#19474 + var _eC = $k[--$j]; //#19474 + $put($k[--$j], _eC, ((_eB < 0 ? _e9 >>> -_eB : _e9 << _eB)) & 1); //#19474 + $k[$j++] = $1.pixs; //#19475 + $aload($get($get($1.formatmap, $1.i), 1)); //#19475 + $1.qmv(); //#19475 + var _eJ = $1.fmtval2; //#19475 + var _eL = -(17 - $1.i); //#19475 + var _eM = $k[--$j]; //#19475 + $put($k[--$j], _eM, ((_eL < 0 ? _eJ >>> -_eL : _eJ << _eL)) & 1); //#19475 + } //#19475 + } //#19475 + if ($eq($1.format, "full") && ($1.cols >= 45)) { //#19495 + $1.vervals = $a([31892, 34236, 39577, 42195, 48118, 51042, 55367, 58893, 63784, 68472, 70749, 76311, 79154, 84390, 87683, 92361, 96236, 102084, 102881, 110507, 110734, 117786, 119615, 126325, 127568, 133589, 136957, 141498, 145311, 150283, 152622, 158308, 161089, 167017]); //#19487 + $1.verval = $get($1.vervals, (~~($f($1.cols - 17) / 4)) - 7); //#19488 + for (var _eW = 0, _eV = $1.versionmap.length - 1; _eW <= _eV; _eW += 1) { //#19494 + $1.i = _eW; //#19490 + $forall($get($1.versionmap, $1.i), function() { //#19493 + var _eb = $k[--$j]; //#19492 + $k[$j++] = $1.pixs; //#19492 + $forall(_eb); //#19492 + $1.qmv(); //#19492 + var _ec = $1.verval; //#19492 + var _ee = -(17 - $1.i); //#19492 + var _ef = $k[--$j]; //#19492 + $put($k[--$j], _ef, ((_ee < 0 ? _ec >>> -_ee : _ec << _ee)) & 1); //#19492 + }); //#19492 + } //#19492 + } //#19492 + var _en = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", $1.cols], + ["pixy", $1.rows], + ["height", ($1.rows * 2) / 72], + ["width", ($1.cols * 2) / 72], + ["opt", $1.options] + ]); //#19505 + $k[$j++] = _en; //#19508 + if (!$1.dontdraw) { //#19508 + $0.renmatrix(); //#19508 + } //#19508 + }; + $0.swissqrcode = function() { + var $1 = {}; //#19539 + $1.options = $k[--$j]; //#19541 + $1.barcode = $k[--$j]; //#19542 + $1.dontdraw = false; //#19544 + $1.parse = false; //#19546 + $forall($1.options, function() { //#19557 + var _3 = $k[--$j]; //#19557 + $1[$k[--$j]] = _3; //#19557 + }); //#19557 + var _6 = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#19563 + $1.fncvals = _6; //#19564 + $k[$j++] = 'barcode'; //#19565 + $k[$j++] = $1.barcode; //#19565 + $k[$j++] = $1.fncvals; //#19565 + $0.parseinput(); //#19565 + var _9 = $k[--$j]; //#19565 + $1[$k[--$j]] = _9; //#19565 + $1.barlen = $1.barcode.length; //#19566 + delete $1.options["parse"]; //#19567 + if ($1.barcode.length > 997) { //#19572 + $k[$j++] = 'bwipp.swissqrcodeBadLength'; //#19571 + $k[$j++] = "Swiss QR Code input must not exceed 997 digits"; //#19571 + $0.raiseerror(); //#19571 + } //#19571 + $put($1.options, "dontdraw", true); //#19575 + $k[$j++] = 'args'; //#19576 + $k[$j++] = $1.barcode; //#19576 + $k[$j++] = $1.options; //#19576 + $0.qrcode(); //#19576 + var _H = $k[--$j]; //#19576 + $1[$k[--$j]] = _H; //#19576 + $put($1.args, "opt", $1.options); //#19578 + $k[$j++] = $1.args; //#19647 + if (!$1.dontdraw) { //#19647 + $$.save(); //#19592 + var _N = $$.currpos(); //#19593 + $$.translate(_N.x, _N.y); //#19593 + var _O = 72 / 25.4; //#19594 + $$.scale(_O, _O); //#19594 + $$.save(); //#19597 + $$.newpath(); //#19598 + $$.moveto(0, 0); //#19599 + $$.lineto(46, 0); //#19600 + $$.lineto(46, 46); //#19601 + $$.lineto(0, 46); //#19602 + $$.closepath(); //#19603 + $$.moveto(19.5, 19.5); //#19604 + $$.lineto(19.5, 26.5); //#19605 + $$.lineto(26.5, 26.5); //#19606 + $$.lineto(26.5, 19.5); //#19607 + $$.closepath(); //#19608 + $$.clip(); //#19609 + $$.save(); //#19612 + $$.moveto(0, 0); //#19613 + var _R = (46 / $get($1.args, "pixx")) / 2; //#19614 + $$.scale(_R, _R); //#19614 + $0.renmatrix(); //#19615 + $$.restore(); //#19616 + $$.restore(); //#19618 + $$.translate(19.5, 19.5); //#19621 + var _S = 7 / 83; //#19622 + $$.scale(_S, _S); //#19622 + $$.newpath(); //#19624 + $$.moveto(6, 6); //#19625 + $$.lineto(6, 77); //#19626 + $$.lineto(77, 77); //#19627 + $$.lineto(77, 6); //#19628 + $$.closepath(); //#19629 + $$.moveto(49, 18); //#19630 + $$.lineto(49, 34); //#19631 + $$.lineto(65, 34); //#19632 + $$.lineto(65, 49); //#19633 + $$.lineto(49, 49); //#19634 + $$.lineto(49, 65); //#19635 + $$.lineto(34, 65); //#19636 + $$.lineto(34, 49); //#19637 + $$.lineto(18, 49); //#19638 + $$.lineto(18, 34); //#19639 + $$.lineto(34, 34); //#19640 + $$.lineto(34, 18); //#19641 + $$.closepath(); //#19642 + $$.setrgbcolor(0, 0, 0); //#19643 + $$.fill(); //#19643 + $$.restore(); //#19645 + } //#19645 + }; + $0.microqrcode = function() { + var $1 = {}; //#19677 + $1.options = $k[--$j]; //#19679 + $1.barcode = $k[--$j]; //#19680 + $1.dontdraw = false; //#19682 + $forall($1.options, function() { //#19693 + var _3 = $k[--$j]; //#19693 + $1[$k[--$j]] = _3; //#19693 + }); //#19693 + $put($1.options, "dontdraw", true); //#19696 + $put($1.options, "format", "micro"); //#19697 + $k[$j++] = 'args'; //#19699 + $k[$j++] = $1.barcode; //#19699 + $k[$j++] = $1.options; //#19699 + $0.qrcode(); //#19699 + var _9 = $k[--$j]; //#19699 + $1[$k[--$j]] = _9; //#19699 + $put($1.args, "opt", $1.options); //#19701 + $k[$j++] = $1.args; //#19704 + if (!$1.dontdraw) { //#19704 + $0.renmatrix(); //#19704 + } //#19704 + }; + $0.rectangularmicroqrcode = function() { + var $1 = {}; //#19734 + $1.options = $k[--$j]; //#19736 + $1.barcode = $k[--$j]; //#19737 + $1.dontdraw = false; //#19739 + $forall($1.options, function() { //#19750 + var _3 = $k[--$j]; //#19750 + $1[$k[--$j]] = _3; //#19750 + }); //#19750 + $put($1.options, "dontdraw", true); //#19753 + $put($1.options, "format", "rmqr"); //#19754 + $k[$j++] = 'args'; //#19756 + $k[$j++] = $1.barcode; //#19756 + $k[$j++] = $1.options; //#19756 + $0.qrcode(); //#19756 + var _9 = $k[--$j]; //#19756 + $1[$k[--$j]] = _9; //#19756 + $put($1.args, "opt", $1.options); //#19758 + $k[$j++] = $1.args; //#19761 + if (!$1.dontdraw) { //#19761 + $0.renmatrix(); //#19761 + } //#19761 + }; + $0.maxicode = function() { + var $1 = {}; //#19791 + $1.options = $k[--$j]; //#19793 + $1.barcode = $k[--$j]; //#19794 + $1.dontdraw = false; //#19796 + $1.mode = -1; //#19797 + $1.sam = -1; //#19798 + $1.parse = false; //#19799 + $1.parsefnc = false; //#19800 + $forall($1.options, function() { //#19811 + var _3 = $k[--$j]; //#19811 + $1[$k[--$j]] = _3; //#19811 + }); //#19811 + $1.mode = ~~$1.mode; //#19813 + $1.sam = ~~$1.sam; //#19814 + var _9 = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["eci", true] + ]); //#19820 + $1.fncvals = _9; //#19822 + $k[$j++] = 'msg'; //#19823 + $k[$j++] = $1.barcode; //#19823 + $k[$j++] = $1.fncvals; //#19823 + $0.parseinput(); //#19823 + var _C = $k[--$j]; //#19823 + $1[$k[--$j]] = _C; //#19823 + $1.msglen = $1.msg.length; //#19824 + if (($1.mode == 2) || ($1.mode == 3)) { //#19863 + $1.barcode = $s($1.msglen); //#19830 + for (var _L = 0, _K = $1.msglen - 1; _L <= _K; _L += 1) { //#19836 + $1.i = _L; //#19832 + if ($get($1.msg, $1.i) > 0) { //#19835 + $put($1.barcode, $1.i, $get($1.msg, $1.i)); //#19834 + } //#19834 + } //#19834 + $1.barlen = $1.barcode.length; //#19837 + if ($eq($geti($1.barcode, 0, 7), "\x5b\x29\x3e\x1e\x30\x31\x1d")) { //#19844 + $1.fid = $geti($1.barcode, 0, 9); //#19841 + $1.barcode = $geti($1.barcode, 9, $1.barlen - 9); //#19842 + } else { //#19844 + $1.fid = ""; //#19844 + } //#19844 + $search($1.barcode, "\x1d"); //#19848 + $j--; //#19848 + $1.pcode = $k[--$j]; //#19848 + $j--; //#19849 + $search($k[--$j], "\x1d"); //#19849 + $j--; //#19849 + $1.ccode = $k[--$j]; //#19849 + $j--; //#19850 + $search($k[--$j], "\x1d"); //#19850 + $j--; //#19850 + $1.scode = $k[--$j]; //#19850 + $j--; //#19851 + $1.barcode = $k[--$j]; //#19851 + var _l = $s($1.barcode.length + $1.fid.length); //#19854 + $puti(_l, 0, $1.fid); //#19855 + $puti(_l, $1.fid.length, $1.barcode); //#19856 + $1.barcode = _l; //#19857 + $1.barlen = $1.barcode.length; //#19858 + $k[$j++] = Infinity; //#19860 + var _q = $1.barcode; //#19860 + for (var _r = 0, _s = _q.length; _r < _s; _r++) { //#19860 + $k[$j++] = $get(_q, _r); //#19860 + } //#19860 + $1.msg = $a(); //#19860 + $1.msglen = $1.msg.length; //#19861 + } //#19861 + $1.eci = -1; //#19866 + $1.pad = -2; //#19866 + $1.ns = -3; //#19866 + $1.la = -4; //#19867 + $1.lb = -5; //#19867 + $1.sa = -6; //#19868 + $1.sb = -7; //#19868 + $1.sc = -8; //#19868 + $1.sd = -9; //#19868 + $1.se = -10; //#19868 + $1.sa2 = -11; //#19869 + $1.sa3 = -12; //#19869 + $1.lkc = -13; //#19870 + $1.lkd = -14; //#19870 + $1.lke = -15; //#19870 + $1.pd2 = -16; //#19871 + $1.pd3 = -17; //#19871 + $1.charmaps = $a([$a([13, "`", 192, 224, 0]), $a(["A", "a", 193, 225, 1]), $a(["B", "b", 194, 226, 2]), $a(["C", "c", 195, 227, 3]), $a(["D", "d", 196, 228, 4]), $a(["E", "e", 197, 229, 5]), $a(["F", "f", 198, 230, 6]), $a(["G", "g", 199, 231, 7]), $a(["H", "h", 200, 232, 8]), $a(["I", "i", 201, 233, 9]), $a(["J", "j", 202, 234, 10]), $a(["K", "k", 203, 235, 11]), $a(["L", "l", 204, 236, 12]), $a(["M", "m", 205, 237, 13]), $a(["N", "n", 206, 238, 14]), $a(["O", "o", 207, 239, 15]), $a(["P", "p", 208, 240, 16]), $a(["Q", "q", 209, 241, 17]), $a(["R", "r", 210, 242, 18]), $a(["S", "s", 211, 243, 19]), $a(["T", "t", 212, 244, 20]), $a(["U", "u", 213, 245, 21]), $a(["V", "v", 214, 246, 22]), $a(["W", "w", 215, 247, 23]), $a(["X", "x", 216, 248, 24]), $a(["Y", "y", 217, 249, 25]), $a(["Z", "z", 218, 250, 26]), $a([$1.eci, $1.eci, $1.eci, $1.eci, $1.eci]), $a([28, 28, 28, 28, $1.pad]), $a([29, 29, 29, 29, $1.pad]), $a([30, 30, 30, 30, 27]), $a([$1.ns, $1.ns, $1.ns, $1.ns, $1.ns]), $a([" ", "{", 219, 251, 28]), $a([$1.pad, $1.pad, 220, 252, 29]), $a(["\"", "}", 221, 253, 30]), $a(["#", "~", 222, 254, 31]), $a(["$", 127, 223, 255, 159]), $a(["%", ";", 170, 161, 160]), $a(["&", "<", 172, 168, 162]), $a(["'", "=", 177, 171, 163]), $a([40, ">", 178, 175, 164]), $a([41, "?", 179, 176, 165]), $a(["*", "[", 181, 180, 166]), $a(["+", 92, 185, 183, 167]), $a([",", "]", 186, 184, 169]), $a(["-", "^", 188, 187, 173]), $a([".", "_", 189, 191, 174]), $a(["/", " ", 190, 138, 182]), $a(["0", ",", 128, 139, 149]), $a(["1", ".", 129, 140, 150]), $a(["2", "/", 130, 141, 151]), $a(["3", ":", 131, 142, 152]), $a(["4", "@", 132, 143, 153]), $a(["5", "!", 133, 144, 154]), $a(["6", "|", 134, 145, 155]), $a(["7", $1.pd2, 135, 146, 156]), $a(["8", $1.sa2, 136, 147, 157]), $a(["9", $1.sa3, 137, 148, 158]), $a([":", $1.pd3, $1.la, $1.la, $1.la]), $a([$1.sb, $1.sa, " ", " ", " "]), $a([$1.sc, $1.sc, $1.lkc, $1.sc, $1.sc]), $a([$1.sd, $1.sd, $1.sd, $1.lkd, $1.sd]), $a([$1.se, $1.se, $1.se, $1.se, $1.lke]), $a([$1.lb, $1.la, $1.lb, $1.lb, $1.lb])]); //#19940 + $1.charvals = $a([new Map, new Map, new Map, new Map, new Map]); //#19943 + for (var _2j = 0, _2i = $1.charmaps.length - 1; _2j <= _2i; _2j += 1) { //#19952 + $1.i = _2j; //#19945 + $1.encs = $get($1.charmaps, $1.i); //#19946 + for (var _2n = 0; _2n <= 4; _2n += 1) { //#19951 + $1.j = _2n; //#19948 + var _2q = $get($1.encs, $1.j); //#19949 + $k[$j++] = _2q; //#19949 + if ($eq($type(_2q), 'stringtype')) { //#19949 + var _2t = $get($k[--$j], 0); //#19949 + $k[$j++] = _2t; //#19949 + } //#19949 + $put($get($1.charvals, $1.j), $k[--$j], $1.i); //#19950 + } //#19950 + } //#19950 + $1.seta = $get($1.charvals, 0); //#19953 + $1.setb = $get($1.charvals, 1); //#19954 + $1.setc = $get($1.charvals, 2); //#19955 + $1.setd = $get($1.charvals, 3); //#19956 + $1.sete = $get($1.charvals, 4); //#19957 + $k[$j++] = Infinity; //#19960 + for (var _3A = 0, _3B = $1.msglen + 1; _3A < _3B; _3A++) { //#19960 + $k[$j++] = 0; //#19960 + } //#19960 + $1.nseq = $a(); //#19960 + for (var _3E = $1.msglen - 1; _3E >= 0; _3E -= 1) { //#19968 + $1.i = _3E; //#19962 + var _3H = $get($1.msg, $1.i); //#19963 + if ((_3H >= 48) && (_3H <= 57)) { //#19966 + $put($1.nseq, $1.i, $f($get($1.nseq, $1.i + 1) + 1)); //#19964 + } else { //#19966 + $put($1.nseq, $1.i, 0); //#19966 + } //#19966 + } //#19966 + $1.nseq = $geti($1.nseq, 0, $1.msglen); //#19969 + $1.prefixinset = function() { + $k[$j++] = 0; //#19976 + for (;;) { //#19976 + var _3S = $k[--$j]; //#19974 + var _3T = $k[--$j]; //#19974 + $k[$j++] = _3T; //#19974 + $k[$j++] = _3S; //#19974 + if (_3S >= _3T.length) { //#19974 + break; //#19974 + } //#19974 + var _3U = $k[--$j]; //#19975 + var _3V = $k[--$j]; //#19975 + var _3X = $k[--$j]; //#19975 + var _3Y = $get(_3X, $get(_3V, _3U)) !== undefined; //#19975 + $k[$j++] = _3X; //#19975 + $k[$j++] = _3V; //#19975 + $k[$j++] = _3U; //#19975 + if (_3Y) { //#19975 + var _3Z = $k[--$j]; //#19975 + $k[$j++] = $f(_3Z + 1); //#19975 + } else { //#19975 + break; //#19975 + } //#19975 + } //#19975 + var _3a = $k[--$j]; //#19977 + var _3b = $k[--$j]; //#19977 + $k[$j++] = _3a; //#19977 + $k[$j++] = _3b; //#19977 + $j--; //#19977 + var _3c = $k[--$j]; //#19977 + var _3d = $k[--$j]; //#19977 + $k[$j++] = _3c; //#19977 + $k[$j++] = _3d; //#19977 + $j--; //#19977 + }; //#19978 + $1.enc = function() { + var _3e = $k[--$j]; //#19981 + $put($1.out, $1.j, $get(_3e, $k[--$j])); //#19981 + $1.j = $1.j + 1; //#19982 + }; //#19983 + $1.out = $a(144); //#19985 + $1.i = 0; //#19986 + $1.j = 0; //#19986 + $1.cset = "seta"; //#19986 + for (;;) { //#20138 + if ($1.i == $1.msglen) { //#19995 + if ($ne($1.cset, "seta") && $ne($1.cset, "setb")) { //#19993 + $k[$j++] = $1.la; //#19991 + $k[$j++] = $1[$1.cset]; //#19991 + $1.enc(); //#19991 + $1.cset = "seta"; //#19992 + } //#19992 + break; //#19994 + } //#19994 + for (;;) { //#20137 + if ($get($1.msg, $1.i) <= -1000000) { //#20024 + $k[$j++] = $1.eci; //#19999 + $k[$j++] = $1[$1.cset]; //#19999 + $1.enc(); //#19999 + var _41 = $f((-$get($1.msg, $1.i)) - 1000000); //#20001 + $k[$j++] = _41; //#20019 + if (_41 <= 31) { //#20018 + var _42 = $k[--$j]; //#20002 + $k[$j++] = _42 & 63; //#20003 + $astore($a(1)); //#20003 + } else { //#20018 + var _44 = $k[--$j]; //#20004 + $k[$j++] = _44; //#20019 + if (_44 <= 1023) { //#20018 + var _45 = $k[--$j]; //#20005 + $k[$j++] = ((_45 >>> 6) & 31) | 32; //#20007 + $k[$j++] = _45 & 63; //#20007 + $astore($a(2)); //#20007 + } else { //#20018 + var _47 = $k[--$j]; //#20008 + $k[$j++] = _47; //#20019 + if (_47 <= 32767) { //#20018 + var _48 = $k[--$j]; //#20009 + $k[$j++] = ((_48 >>> 12) & 47) | 48; //#20012 + $k[$j++] = (_48 >>> 6) & 63; //#20012 + $k[$j++] = _48 & 63; //#20012 + $astore($a(3)); //#20012 + } else { //#20018 + var _4A = $k[--$j]; //#20014 + $k[$j++] = ((_4A >>> 18) & 55) | 56; //#20018 + $k[$j++] = (_4A >>> 12) & 63; //#20018 + $k[$j++] = (_4A >>> 6) & 63; //#20018 + $k[$j++] = _4A & 63; //#20018 + $astore($a(4)); //#20018 + } //#20018 + } //#20018 + } //#20018 + var _4C = $k[--$j]; //#20020 + $puti($1.out, $1.j, _4C); //#20020 + $1.j = _4C.length + $1.j; //#20021 + $1.i = $1.i + 1; //#20022 + break; //#20023 + } //#20023 + if ($get($1.nseq, $1.i) >= 9) { //#20035 + var _4M = $geti($1.msg, $1.i, 9); //#20028 + $k[$j++] = 0; //#20028 + for (var _4N = 0, _4O = _4M.length; _4N < _4O; _4N++) { //#20028 + var _4Q = $k[--$j]; //#20028 + $k[$j++] = ($f(_4Q + $f($get(_4M, _4N) - 48))) * 10; //#20028 + } //#20028 + var _4R = $k[--$j]; //#20028 + $k[$j++] = ~~(_4R / 10); //#20029 + for (var _4S = 0, _4T = 4; _4S < _4T; _4S++) { //#20029 + var _4U = $k[--$j]; //#20029 + $k[$j++] = _4U & 63; //#20029 + $k[$j++] = _4U >>> 6; //#20029 + } //#20029 + $k[$j++] = $get($1[$1.cset], $1.ns); //#20030 + for (var _4Z = 0; _4Z <= 10; _4Z += 2) { //#20030 + var _4a = $k[$j - 1 - _4Z]; //#20030 + $k[$j++] = _4a; //#20030 + } //#20030 + $astore($a(6)); //#20030 + var _4c = $k[--$j]; //#20030 + var _4d = $k[--$j]; //#20030 + var _4e = $k[--$j]; //#20030 + var _4f = $k[--$j]; //#20030 + var _4g = $k[--$j]; //#20030 + var _4h = $k[--$j]; //#20030 + var _4i = $k[--$j]; //#20030 + $k[$j++] = _4c; //#20030 + $k[$j++] = _4i; //#20030 + $k[$j++] = _4h; //#20030 + $k[$j++] = _4g; //#20030 + $k[$j++] = _4f; //#20030 + $k[$j++] = _4e; //#20030 + $k[$j++] = _4d; //#20030 + for (var _4j = 0, _4k = 6; _4j < _4k; _4j++) { //#20030 + $j--; //#20030 + } //#20030 + $puti($1.out, $1.j, $k[--$j]); //#20031 + $1.i = $1.i + 9; //#20032 + $1.j = $1.j + 6; //#20033 + break; //#20034 + } //#20034 + $1.char1 = $get($1.msg, $1.i); //#20038 + $k[$j++] = 'char2'; //#20039 + if (($1.i + 1) < $1.msglen) { //#20039 + $k[$j++] = $get($1.msg, $1.i + 1); //#20039 + } else { //#20039 + $k[$j++] = -99; //#20039 + } //#20039 + var _4y = $k[--$j]; //#20039 + $1[$k[--$j]] = _4y; //#20039 + $k[$j++] = 'char3'; //#20040 + if (($1.i + 2) < $1.msglen) { //#20040 + $k[$j++] = $get($1.msg, $1.i + 2); //#20040 + } else { //#20040 + $k[$j++] = -99; //#20040 + } //#20040 + var _55 = $k[--$j]; //#20040 + $1[$k[--$j]] = _55; //#20040 + var _5A = $get($1[$1.cset], $1.char1) !== undefined; //#20043 + if (_5A) { //#20047 + $k[$j++] = $1.char1; //#20044 + $k[$j++] = $1[$1.cset]; //#20044 + $1.enc(); //#20044 + $1.i = $1.i + 1; //#20045 + break; //#20046 + } //#20046 + var _5I = $get($1.setb, $1.char1) !== undefined; //#20050 + if ($eq($1.cset, "seta") && _5I) { //#20060 + var _5L = $get($1.setb, $1.char2) !== undefined; //#20051 + if (_5L) { //#20057 + $k[$j++] = $1.lb; //#20052 + $k[$j++] = $1.seta; //#20052 + $1.enc(); //#20052 + $1.cset = "setb"; //#20053 + } else { //#20057 + $k[$j++] = $1.sb; //#20055 + $k[$j++] = $1.seta; //#20055 + $1.enc(); //#20055 + $k[$j++] = $1.char1; //#20056 + $k[$j++] = $1.setb; //#20056 + $1.enc(); //#20056 + $1.i = $1.i + 1; //#20057 + } //#20057 + break; //#20059 + } //#20059 + var _5W = $get($1.seta, $1.char1) !== undefined; //#20063 + if ($eq($1.cset, "setb") && _5W) { //#20088 + var _5X = $1.seta; //#20064 + var _5Y = $1.msg; //#20064 + var _5Z = $1.i; //#20064 + var _5a = $1.msglen; //#20064 + var _5b = $1.i; //#20064 + var _5c = _5a - _5b; //#20064 + var _5d = 4; //#20064 + if (4 > (_5a - _5b)) { //#20064 + var _ = _5c; //#20064 + _5c = _5d; //#20064 + _5d = _; //#20064 + } //#20064 + $k[$j++] = 'p'; //#20064 + $k[$j++] = _5X; //#20064 + $k[$j++] = $geti(_5Y, _5Z, _5d); //#20064 + $1.prefixinset(); //#20064 + var _5f = $k[--$j]; //#20064 + $1[$k[--$j]] = _5f; //#20064 + if ($1.p == 1) { //#20069 + $k[$j++] = $1.sa; //#20066 + $k[$j++] = $1.setb; //#20066 + $1.enc(); //#20066 + $k[$j++] = $1.char1; //#20067 + $k[$j++] = $1.seta; //#20067 + $1.enc(); //#20067 + $1.i = $1.i + 1; //#20068 + } //#20068 + if ($1.p == 2) { //#20075 + $k[$j++] = $1.sa2; //#20071 + $k[$j++] = $1.setb; //#20071 + $1.enc(); //#20071 + $k[$j++] = $1.char1; //#20072 + $k[$j++] = $1.seta; //#20072 + $1.enc(); //#20072 + $k[$j++] = $1.char2; //#20073 + $k[$j++] = $1.seta; //#20073 + $1.enc(); //#20073 + $1.i = $1.i + 2; //#20074 + } //#20074 + if ($1.p == 3) { //#20082 + $k[$j++] = $1.sa3; //#20077 + $k[$j++] = $1.setb; //#20077 + $1.enc(); //#20077 + $k[$j++] = $1.char1; //#20078 + $k[$j++] = $1.seta; //#20078 + $1.enc(); //#20078 + $k[$j++] = $1.char2; //#20079 + $k[$j++] = $1.seta; //#20079 + $1.enc(); //#20079 + $k[$j++] = $1.char3; //#20080 + $k[$j++] = $1.seta; //#20080 + $1.enc(); //#20080 + $1.i = $1.i + 3; //#20081 + } //#20081 + if ($1.p >= 4) { //#20086 + $k[$j++] = $1.la; //#20084 + $k[$j++] = $1.setb; //#20084 + $1.enc(); //#20084 + $1.cset = "seta"; //#20085 + } //#20085 + break; //#20087 + } //#20087 + var _6A = $get($1.seta, $1.char1) !== undefined; //#20091 + if (_6A) { //#20095 + $k[$j++] = $1.la; //#20092 + $k[$j++] = $1[$1.cset]; //#20092 + $1.enc(); //#20092 + $1.cset = "seta"; //#20093 + break; //#20094 + } //#20094 + var _6G = $get($1.setb, $1.char1) !== undefined; //#20096 + if (_6G) { //#20100 + $k[$j++] = $1.lb; //#20097 + $k[$j++] = $1[$1.cset]; //#20097 + $1.enc(); //#20097 + $1.cset = "setb"; //#20098 + break; //#20099 + } //#20099 + var _6M = $get($1.setc, $1.char1) !== undefined; //#20103 + if (_6M) { //#20103 + $1.setx = "setc"; //#20103 + $1.sx = $1.sc; //#20103 + $1.lkx = $1.lkc; //#20103 + } //#20103 + var _6R = $get($1.setd, $1.char1) !== undefined; //#20104 + if (_6R) { //#20104 + $1.setx = "setd"; //#20104 + $1.sx = $1.sd; //#20104 + $1.lkx = $1.lkd; //#20104 + } //#20104 + var _6W = $get($1.sete, $1.char1) !== undefined; //#20105 + if (_6W) { //#20105 + $1.setx = "sete"; //#20105 + $1.sx = $1.se; //#20105 + $1.lkx = $1.lke; //#20105 + } //#20105 + var _6a = $1[$1.setx]; //#20108 + var _6b = $1.msg; //#20108 + var _6c = $1.i; //#20108 + var _6d = $1.msglen; //#20108 + var _6e = $1.i; //#20108 + var _6f = _6d - _6e; //#20108 + var _6g = 4; //#20108 + if (4 > (_6d - _6e)) { //#20108 + var _ = _6f; //#20108 + _6f = _6g; //#20108 + _6g = _; //#20108 + } //#20108 + $k[$j++] = 'p'; //#20108 + $k[$j++] = _6a; //#20108 + $k[$j++] = $geti(_6b, _6c, _6g); //#20108 + $1.prefixinset(); //#20108 + var _6i = $k[--$j]; //#20108 + $1[$k[--$j]] = _6i; //#20108 + if ($1.p == 1) { //#20113 + $k[$j++] = $1.sx; //#20110 + $k[$j++] = $1[$1.cset]; //#20110 + $1.enc(); //#20110 + $k[$j++] = $1.char1; //#20111 + $k[$j++] = $1[$1.setx]; //#20111 + $1.enc(); //#20111 + $1.i = $1.i + 1; //#20112 + } //#20112 + if ($1.p == 2) { //#20120 + $k[$j++] = $1.sx; //#20115 + $k[$j++] = $1[$1.cset]; //#20115 + $1.enc(); //#20115 + $k[$j++] = $1.char1; //#20116 + $k[$j++] = $1[$1.setx]; //#20116 + $1.enc(); //#20116 + $k[$j++] = $1.sx; //#20117 + $k[$j++] = $1[$1.cset]; //#20117 + $1.enc(); //#20117 + $k[$j++] = $1.char2; //#20118 + $k[$j++] = $1[$1.setx]; //#20118 + $1.enc(); //#20118 + $1.i = $1.i + 2; //#20119 + } //#20119 + if ($1.p == 3) { //#20129 + $k[$j++] = $1.sx; //#20122 + $k[$j++] = $1[$1.cset]; //#20122 + $1.enc(); //#20122 + $k[$j++] = $1.char1; //#20123 + $k[$j++] = $1[$1.setx]; //#20123 + $1.enc(); //#20123 + $k[$j++] = $1.sx; //#20124 + $k[$j++] = $1[$1.cset]; //#20124 + $1.enc(); //#20124 + $k[$j++] = $1.char2; //#20125 + $k[$j++] = $1[$1.setx]; //#20125 + $1.enc(); //#20125 + $k[$j++] = $1.sx; //#20126 + $k[$j++] = $1[$1.cset]; //#20126 + $1.enc(); //#20126 + $k[$j++] = $1.char3; //#20127 + $k[$j++] = $1[$1.setx]; //#20127 + $1.enc(); //#20127 + $1.i = $1.i + 3; //#20128 + } //#20128 + if ($1.p >= 4) { //#20134 + $k[$j++] = $1.sx; //#20131 + $k[$j++] = $1[$1.cset]; //#20131 + $1.enc(); //#20131 + $k[$j++] = $1.lkx; //#20132 + $k[$j++] = $1[$1.setx]; //#20132 + $1.enc(); //#20132 + $1.cset = $1.setx; //#20133 + } //#20133 + break; //#20136 + } //#20136 + } //#20136 + $1.encmsg = $geti($1.out, 0, $1.j); //#20139 + $1.padval = $get($1[$1.cset], $1.pad); //#20140 + $1.sami = $a([]); //#20143 + if ($1.sam != -1) { //#20148 + $1.sami = $a(2); //#20145 + $put($1.sami, 0, $get($1.seta, $1.pad)); //#20146 + $put($1.sami, 1, (((~~($1.sam / 10)) - 1) * 8) + (($1.sam % 10) - 1)); //#20147 + } //#20147 + $k[$j++] = Infinity; //#20149 + $aload($1.sami); //#20149 + $aload($1.encmsg); //#20149 + $1.encmsg = $a(); //#20149 + if (($1.mode == 2) || ($1.mode == 3)) { //#20204 + var _7v = $strcpy($s(4), "0000"); //#20155 + var _7y = $cvrs($s(4), ~~$1.mode, 2); //#20155 + $puti(_7v, 4 - _7y.length, _7y); //#20155 + $1.mdb = _7v; //#20155 + var _80 = $strcpy($s(10), "0000000000"); //#20156 + var _83 = $cvrs($s(10), ~~$z($1.ccode), 2); //#20156 + $puti(_80, 10 - _83.length, _83); //#20156 + $1.ccb = _80; //#20156 + var _85 = $strcpy($s(10), "0000000000"); //#20157 + var _88 = $cvrs($s(10), ~~$z($1.scode), 2); //#20157 + $puti(_85, 10 - _88.length, _88); //#20157 + $1.scb = _85; //#20157 + $1.pcb = $strcpy($s(36), "000000000000000000000000000000000000"); //#20158 + if ($1.mode == 2) { //#20171 + var _8F = $cvrs($s(6), $1.pcode.length, 2); //#20161 + $puti($1.pcb, 6 - _8F.length, _8F); //#20161 + var _8J = $cvrs($s(30), ~~$z($1.pcode), 2); //#20162 + $puti($1.pcb, 36 - _8J.length, _8J); //#20162 + } else { //#20171 + $k[$j++] = Infinity; //#20167 + var _8L = $strcpy($s(6), " "); //#20166 + $k[$j++] = _8L; //#20166 + $k[$j++] = _8L; //#20166 + $k[$j++] = 0; //#20166 + if ($1.pcode.length > 6) { //#20166 + $k[$j++] = $geti($1.pcode, 0, 6); //#20166 + } else { //#20166 + $k[$j++] = $1.pcode; //#20166 + } //#20166 + var _8Q = $k[--$j]; //#20166 + var _8R = $k[--$j]; //#20166 + $puti($k[--$j], _8R, _8Q); //#20166 + $forall($k[--$j], function() { //#20167 + var _8W = $get($1.seta, $k[--$j]); //#20167 + $k[$j++] = _8W; //#20167 + }); //#20167 + $1.pccw = $a(); //#20167 + for (var _8Y = 0; _8Y <= 5; _8Y += 1) { //#20172 + $1.i = _8Y; //#20170 + var _8e = $cvrs($s(6), $get($1.pccw, $1.i), 2); //#20171 + $puti($1.pcb, ((6 * $1.i) + 6) - _8e.length, _8e); //#20171 + } //#20171 + } //#20171 + $1.scm = $s(60); //#20176 + $puti($1.scm, 2, $1.mdb); //#20177 + $puti($1.scm, 38, $geti($1.pcb, 0, 4)); //#20178 + $puti($1.scm, 30, $geti($1.pcb, 4, 6)); //#20179 + $puti($1.scm, 24, $geti($1.pcb, 10, 6)); //#20180 + $puti($1.scm, 18, $geti($1.pcb, 16, 6)); //#20181 + $puti($1.scm, 12, $geti($1.pcb, 22, 6)); //#20182 + $puti($1.scm, 6, $geti($1.pcb, 28, 6)); //#20183 + $puti($1.scm, 0, $geti($1.pcb, 34, 2)); //#20184 + $puti($1.scm, 52, $geti($1.ccb, 0, 2)); //#20185 + $puti($1.scm, 42, $geti($1.ccb, 2, 6)); //#20186 + $puti($1.scm, 36, $geti($1.ccb, 8, 2)); //#20187 + $puti($1.scm, 54, $geti($1.scb, 0, 6)); //#20188 + $puti($1.scm, 48, $geti($1.scb, 6, 4)); //#20189 + $1.pri = $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0]); //#20192 + for (var _9K = 0; _9K <= 59; _9K += 1) { //#20198 + $1.i = _9K; //#20194 + $1.ps = ~~($1.i / 6); //#20195 + $1.ep = (~~(Math.pow(2, 5 - ($1.i % 6)))) * ($get($1.scm, $1.i) - 48); //#20196 + $put($1.pri, $1.ps, $f($get($1.pri, $1.ps) + $1.ep)); //#20197 + } //#20197 + $k[$j++] = Infinity; //#20201 + for (var _9W = 0, _9X = 84; _9W < _9X; _9W++) { //#20201 + $k[$j++] = $1.padval; //#20201 + } //#20201 + $1.sec = $a(); //#20201 + $puti($1.sec, 0, $1.encmsg); //#20202 + } //#20202 + if (((($1.mode == 4) || ($1.mode == 5)) || ($1.mode == 6)) || ($1.mode == -1)) { //#20223 + if ($1.mode == -1) { //#20212 + var _9i = ($1.encmsg.length <= 77) ? 5 : 4; //#20211 + $1.mode = _9i; //#20211 + } //#20211 + $k[$j++] = Infinity; //#20215 + var _9k = ($1.mode == 5) ? 78 : 94; //#20215 + for (var _9l = 0, _9m = _9k; _9l < _9m; _9l++) { //#20215 + $k[$j++] = $1.padval; //#20215 + } //#20215 + $1.cws = $a(); //#20215 + $put($1.cws, 0, $1.mode); //#20216 + $puti($1.cws, 1, $1.encmsg); //#20217 + $1.pri = $geti($1.cws, 0, 10); //#20220 + $1.sec = $geti($1.cws, 10, $1.cws.length - 10); //#20221 + } //#20221 + $k[$j++] = Infinity; //#20226 + $k[$j++] = 1; //#20226 + for (var _9y = 0, _9z = 63; _9y < _9z; _9y++) { //#20226 + var _A0 = $k[--$j]; //#20226 + var _A1 = _A0 * 2; //#20226 + $k[$j++] = _A0; //#20226 + $k[$j++] = _A1; //#20226 + if (_A1 >= 64) { //#20226 + var _A2 = $k[--$j]; //#20226 + $k[$j++] = _A2 ^ 67; //#20226 + } //#20226 + } //#20226 + $1.rsalog = $a(); //#20226 + $1.rslog = $a(64); //#20227 + for (var _A5 = 1; _A5 <= 63; _A5 += 1) { //#20228 + $put($1.rslog, $get($1.rsalog, _A5), _A5); //#20228 + } //#20228 + $1.rsprod = function() { + var _A9 = $k[--$j]; //#20232 + var _AA = $k[--$j]; //#20232 + $k[$j++] = _AA; //#20236 + $k[$j++] = _A9; //#20236 + if ((_A9 != 0) && (_AA != 0)) { //#20235 + var _AD = $get($1.rslog, $k[--$j]); //#20233 + var _AI = $get($1.rsalog, $f(_AD + $get($1.rslog, $k[--$j])) % 63); //#20233 + $k[$j++] = _AI; //#20233 + } else { //#20235 + $j -= 2; //#20235 + $k[$j++] = 0; //#20235 + } //#20235 + }; //#20237 + $1.rscodes = function() { + $1.rsnum = $k[--$j]; //#20242 + $1.cwb = $k[--$j]; //#20243 + $k[$j++] = Infinity; //#20246 + $k[$j++] = 1; //#20246 + for (var _AM = 0, _AN = $1.rsnum; _AM < _AN; _AM++) { //#20246 + $k[$j++] = 0; //#20246 + } //#20246 + $1.coeffs = $a(); //#20246 + for (var _AR = 1, _AQ = $1.rsnum; _AR <= _AQ; _AR += 1) { //#20255 + $1.i = _AR; //#20248 + $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); //#20249 + for (var _AY = $1.i - 1; _AY >= 1; _AY -= 1) { //#20253 + $1.j = _AY; //#20251 + $k[$j++] = $1.coeffs; //#20252 + $k[$j++] = $1.j; //#20252 + $k[$j++] = $get($1.coeffs, $1.j - 1); //#20252 + $k[$j++] = $get($1.coeffs, $1.j); //#20252 + $k[$j++] = $get($1.rsalog, $1.i); //#20252 + $1.rsprod(); //#20252 + var _Ak = $k[--$j]; //#20252 + var _Al = $k[--$j]; //#20252 + var _Am = $k[--$j]; //#20252 + $put($k[--$j], _Am, $xo(_Al, _Ak)); //#20252 + } //#20252 + $k[$j++] = $1.coeffs; //#20254 + $k[$j++] = 0; //#20254 + $k[$j++] = $get($1.coeffs, 0); //#20254 + $k[$j++] = $get($1.rsalog, $1.i); //#20254 + $1.rsprod(); //#20254 + var _Au = $k[--$j]; //#20254 + var _Av = $k[--$j]; //#20254 + $put($k[--$j], _Av, _Au); //#20254 + } //#20254 + $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); //#20256 + $k[$j++] = Infinity; //#20259 + for (var _B1 = 0, _B2 = $1.rsnum; _B1 < _B2; _B1++) { //#20259 + $k[$j++] = 0; //#20259 + } //#20259 + $1.ecb = $a(); //#20259 + for (var _B6 = 0, _B5 = $1.cwb.length - 1; _B6 <= _B5; _B6 += 1) { //#20268 + $1.t = $xo($get($1.cwb, _B6), $get($1.ecb, 0)); //#20261 + for (var _BC = $1.ecb.length - 1; _BC >= 0; _BC -= 1) { //#20267 + $1.i = _BC; //#20263 + $1.p = ($1.ecb.length - $1.i) - 1; //#20264 + $k[$j++] = $1.ecb; //#20265 + $k[$j++] = $1.p; //#20265 + $k[$j++] = $1.t; //#20265 + $k[$j++] = $get($1.coeffs, $1.i); //#20265 + $1.rsprod(); //#20265 + var _BL = $k[--$j]; //#20265 + var _BM = $k[--$j]; //#20265 + $put($k[--$j], _BM, _BL); //#20265 + if ($1.i > 0) { //#20266 + $put($1.ecb, $1.p, $xo($get($1.ecb, $1.p + 1), $get($1.ecb, $1.p))); //#20266 + } //#20266 + } //#20266 + } //#20266 + $k[$j++] = $1.ecb; //#20270 + }; //#20272 + $k[$j++] = Infinity; //#20275 + for (var _Ba = 0, _BZ = $1.sec.length - 1; _Ba <= _BZ; _Ba += 2) { //#20275 + $k[$j++] = $get($1.sec, _Ba); //#20275 + } //#20275 + $1.seco = $a(); //#20275 + $k[$j++] = Infinity; //#20276 + for (var _Bg = 1, _Bf = $1.sec.length - 1; _Bg <= _Bf; _Bg += 2) { //#20276 + $k[$j++] = $get($1.sec, _Bg); //#20276 + } //#20276 + $1.sece = $a(); //#20276 + var _Bl = ($1.sec.length == 84) ? 20 : 28; //#20279 + $1.scodes = _Bl; //#20279 + $k[$j++] = 'secochk'; //#20280 + $k[$j++] = $1.seco; //#20280 + $k[$j++] = $1.scodes; //#20280 + $1.rscodes(); //#20280 + var _Bo = $k[--$j]; //#20280 + $1[$k[--$j]] = _Bo; //#20280 + $k[$j++] = 'secechk'; //#20281 + $k[$j++] = $1.sece; //#20281 + $k[$j++] = $1.scodes; //#20281 + $1.rscodes(); //#20281 + var _Bs = $k[--$j]; //#20281 + $1[$k[--$j]] = _Bs; //#20281 + $k[$j++] = Infinity; //#20284 + for (var _Bw = 0, _Bv = $1.scodes - 1; _Bw <= _Bv; _Bw += 1) { //#20284 + $k[$j++] = $get($1.secochk, _Bw); //#20284 + $k[$j++] = $get($1.secechk, _Bw); //#20284 + } //#20284 + $1.secchk = $a(); //#20284 + $k[$j++] = Infinity; //#20291 + $aload($1.pri); //#20288 + $k[$j++] = $1.pri; //#20289 + $k[$j++] = 10; //#20289 + $1.rscodes(); //#20289 + $aload($k[--$j]); //#20289 + $aload($1.sec); //#20290 + $aload($1.secchk); //#20291 + $1.codewords = $a(); //#20291 + $k[$j++] = Infinity; //#20295 + for (var _C8 = 0, _C9 = 864; _C8 < _C9; _C8++) { //#20295 + $k[$j++] = 0; //#20295 + } //#20295 + $1.mods = $a(); //#20295 + for (var _CB = 0; _CB <= 143; _CB += 1) { //#20300 + $1.i = _CB; //#20297 + $k[$j++] = Infinity; //#20298 + var _CG = $cvrs($s(6), $get($1.codewords, $1.i), 2); //#20298 + for (var _CH = 0, _CI = _CG.length; _CH < _CI; _CH++) { //#20298 + $k[$j++] = $get(_CG, _CH) - 48; //#20298 + } //#20298 + $1.cw = $a(); //#20298 + $puti($1.mods, (6 * $1.i) + (6 - $1.cw.length), $1.cw); //#20299 + } //#20299 + $1.modmap = $a([469, 529, 286, 316, 347, 346, 673, 672, 703, 702, 647, 676, 283, 282, 313, 312, 370, 610, 618, 379, 378, 409, 408, 439, 705, 704, 559, 589, 588, 619, 458, 518, 640, 701, 675, 674, 285, 284, 315, 314, 310, 340, 531, 289, 288, 319, 349, 348, 456, 486, 517, 516, 471, 470, 369, 368, 399, 398, 429, 428, 549, 548, 579, 578, 609, 608, 649, 648, 679, 678, 709, 708, 639, 638, 669, 668, 699, 698, 279, 278, 309, 308, 339, 338, 381, 380, 411, 410, 441, 440, 561, 560, 591, 590, 621, 620, 547, 546, 577, 576, 607, 606, 367, 366, 397, 396, 427, 426, 291, 290, 321, 320, 351, 350, 651, 650, 681, 680, 711, 710, 1, 0, 31, 30, 61, 60, 3, 2, 33, 32, 63, 62, 5, 4, 35, 34, 65, 64, 7, 6, 37, 36, 67, 66, 9, 8, 39, 38, 69, 68, 11, 10, 41, 40, 71, 70, 13, 12, 43, 42, 73, 72, 15, 14, 45, 44, 75, 74, 17, 16, 47, 46, 77, 76, 19, 18, 49, 48, 79, 78, 21, 20, 51, 50, 81, 80, 23, 22, 53, 52, 83, 82, 25, 24, 55, 54, 85, 84, 27, 26, 57, 56, 87, 86, 117, 116, 147, 146, 177, 176, 115, 114, 145, 144, 175, 174, 113, 112, 143, 142, 173, 172, 111, 110, 141, 140, 171, 170, 109, 108, 139, 138, 169, 168, 107, 106, 137, 136, 167, 166, 105, 104, 135, 134, 165, 164, 103, 102, 133, 132, 163, 162, 101, 100, 131, 130, 161, 160, 99, 98, 129, 128, 159, 158, 97, 96, 127, 126, 157, 156, 95, 94, 125, 124, 155, 154, 93, 92, 123, 122, 153, 152, 91, 90, 121, 120, 151, 150, 181, 180, 211, 210, 241, 240, 183, 182, 213, 212, 243, 242, 185, 184, 215, 214, 245, 244, 187, 186, 217, 216, 247, 246, 189, 188, 219, 218, 249, 248, 191, 190, 221, 220, 251, 250, 193, 192, 223, 222, 253, 252, 195, 194, 225, 224, 255, 254, 197, 196, 227, 226, 257, 256, 199, 198, 229, 228, 259, 258, 201, 200, 231, 230, 261, 260, 203, 202, 233, 232, 263, 262, 205, 204, 235, 234, 265, 264, 207, 206, 237, 236, 267, 266, 297, 296, 327, 326, 357, 356, 295, 294, 325, 324, 355, 354, 293, 292, 323, 322, 353, 352, 277, 276, 307, 306, 337, 336, 275, 274, 305, 304, 335, 334, 273, 272, 303, 302, 333, 332, 271, 270, 301, 300, 331, 330, 361, 360, 391, 390, 421, 420, 363, 362, 393, 392, 423, 422, 365, 364, 395, 394, 425, 424, 383, 382, 413, 412, 443, 442, 385, 384, 415, 414, 445, 444, 387, 386, 417, 416, 447, 446, 477, 476, 507, 506, 537, 536, 475, 474, 505, 504, 535, 534, 473, 472, 503, 502, 533, 532, 455, 454, 485, 484, 515, 514, 453, 452, 483, 482, 513, 512, 451, 450, 481, 480, 511, 510, 541, 540, 571, 570, 601, 600, 543, 542, 573, 572, 603, 602, 545, 544, 575, 574, 605, 604, 563, 562, 593, 592, 623, 622, 565, 564, 595, 594, 625, 624, 567, 566, 597, 596, 627, 626, 657, 656, 687, 686, 717, 716, 655, 654, 685, 684, 715, 714, 653, 652, 683, 682, 713, 712, 637, 636, 667, 666, 697, 696, 635, 634, 665, 664, 695, 694, 633, 632, 663, 662, 693, 692, 631, 630, 661, 660, 691, 690, 721, 720, 751, 750, 781, 780, 723, 722, 753, 752, 783, 782, 725, 724, 755, 754, 785, 784, 727, 726, 757, 756, 787, 786, 729, 728, 759, 758, 789, 788, 731, 730, 761, 760, 791, 790, 733, 732, 763, 762, 793, 792, 735, 734, 765, 764, 795, 794, 737, 736, 767, 766, 797, 796, 739, 738, 769, 768, 799, 798, 741, 740, 771, 770, 801, 800, 743, 742, 773, 772, 803, 802, 745, 744, 775, 774, 805, 804, 747, 746, 777, 776, 807, 806, 837, 836, 867, 866, 897, 896, 835, 834, 865, 864, 895, 894, 833, 832, 863, 862, 893, 892, 831, 830, 861, 860, 891, 890, 829, 828, 859, 858, 889, 888, 827, 826, 857, 856, 887, 886, 825, 824, 855, 854, 885, 884, 823, 822, 853, 852, 883, 882, 821, 820, 851, 850, 881, 880, 819, 818, 849, 848, 879, 878, 817, 816, 847, 846, 877, 876, 815, 814, 845, 844, 875, 874, 813, 812, 843, 842, 873, 872, 811, 810, 841, 840, 871, 870, 901, 900, 931, 930, 961, 960, 903, 902, 933, 932, 963, 962, 905, 904, 935, 934, 965, 964, 907, 906, 937, 936, 967, 966, 909, 908, 939, 938, 969, 968, 911, 910, 941, 940, 971, 970, 913, 912, 943, 942, 973, 972, 915, 914, 945, 944, 975, 974, 917, 916, 947, 946, 977, 976, 919, 918, 949, 948, 979, 978, 921, 920, 951, 950, 981, 980, 923, 922, 953, 952, 983, 982, 925, 924, 955, 954, 985, 984, 927, 926, 957, 956, 987, 986, 58, 89, 88, 118, 149, 148, 178, 209, 208, 238, 269, 268, 298, 329, 328, 358, 389, 388, 418, 449, 448, 478, 509, 508, 538, 569, 568, 598, 629, 628, 658, 689, 688, 718, 749, 748, 778, 809, 808, 838, 869, 868, 898, 929, 928, 958, 989, 988]); //#20348 + $1.pixs = $a(864); //#20351 + $1.j = 0; //#20352 + for (var _CT = 0, _CS = $1.mods.length - 1; _CT <= _CS; _CT += 1) { //#20359 + $1.i = _CT; //#20354 + if ($get($1.mods, $1.i) == 1) { //#20358 + $put($1.pixs, $1.j, $get($1.modmap, $1.i)); //#20356 + $1.j = $1.j + 1; //#20357 + } //#20357 + } //#20357 + $k[$j++] = Infinity; //#20360 + var _Cf = $geti($1.pixs, 0, $1.j); //#20360 + for (var _Cg = 0, _Ch = _Cf.length; _Cg < _Ch; _Cg++) { //#20360 + $k[$j++] = $get(_Cf, _Cg); //#20360 + } //#20360 + $k[$j++] = 28; //#20360 + $k[$j++] = 29; //#20360 + $k[$j++] = 280; //#20360 + $k[$j++] = 281; //#20360 + $k[$j++] = 311; //#20360 + $k[$j++] = 457; //#20360 + $k[$j++] = 488; //#20360 + $k[$j++] = 500; //#20360 + $k[$j++] = 530; //#20360 + $k[$j++] = 670; //#20360 + $k[$j++] = 700; //#20360 + $k[$j++] = 677; //#20360 + $k[$j++] = 707; //#20360 + $1.pixs = $a(); //#20360 + var _Cm = new Map([ + ["ren", $0.renmaximatrix], + ["pixs", $1.pixs], + ["opt", $1.options] + ]); //#20366 + $k[$j++] = _Cm; //#20369 + if (!$1.dontdraw) { //#20369 + $0.renmaximatrix(); //#20369 + } //#20369 + }; + $0.azteccode = function() { + var $1 = {}; //#20399 + $1.options = $k[--$j]; //#20401 + $1.barcode = $k[--$j]; //#20402 + $1.dontdraw = false; //#20404 + $1.format = "unset"; //#20405 + $1.readerinit = false; //#20406 + $1.layers = -1; //#20407 + $1.eclevel = 23; //#20408 + $1.ecaddchars = 3; //#20409 + $1.raw = false; //#20410 + $1.parse = false; //#20411 + $1.parsefnc = false; //#20412 + $forall($1.options, function() { //#20423 + var _3 = $k[--$j]; //#20423 + $1[$k[--$j]] = _3; //#20423 + }); //#20423 + $1.layers = ~~$1.layers; //#20425 + $1.eclevel = +$1.eclevel; //#20426 + $1.ecaddchars = ~~$1.ecaddchars; //#20427 + $1.fn1 = -1; //#20430 + var _B = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["eci", true], + ["FNC1", $1.fn1] + ]); //#20435 + $1.fncvals = _B; //#20436 + $k[$j++] = 'msg'; //#20437 + $k[$j++] = $1.barcode; //#20437 + $k[$j++] = $1.fncvals; //#20437 + $0.parseinput(); //#20437 + var _E = $k[--$j]; //#20437 + $1[$k[--$j]] = _E; //#20437 + $1.msglen = $1.msg.length; //#20438 + $1.msgbits = ""; //#20441 + if ($ne($1.format, "rune") && $1.raw) { //#20442 + $1.msgbits = $1.barcode; //#20442 + } //#20442 + if ($ne($1.format, "rune") && (!$1.raw)) { //#20780 + $1.U = 0; //#20446 + $1.L = 1; //#20446 + $1.M = 2; //#20446 + $1.P = 3; //#20446 + $1.D = 4; //#20446 + $1.B = 5; //#20446 + $1.lu = -2; //#20449 + $1.ll = -3; //#20449 + $1.lm = -4; //#20449 + $1.lp = -5; //#20450 + $1.ld = -6; //#20450 + $1.su = -7; //#20450 + $1.sp = -8; //#20451 + $1.sb = -9; //#20451 + $1.fl = -10; //#20451 + $1.p2 = -11; //#20452 + $1.p3 = -12; //#20452 + $1.p4 = -13; //#20452 + $1.p5 = -14; //#20452 + $1.charmaps = $a([$a([$1.sp, $1.sp, $1.sp, $1.fl, $1.sp]), $a([32, 32, 32, 13, 32]), $a(["A", "a", 1, $1.p2, "0"]), $a(["B", "b", 2, $1.p3, "1"]), $a(["C", "c", 3, $1.p4, "2"]), $a(["D", "d", 4, $1.p5, "3"]), $a(["E", "e", 5, "!", "4"]), $a(["F", "f", 6, "\"", "5"]), $a(["G", "g", 7, "#", "6"]), $a(["H", "h", 8, "$", "7"]), $a(["I", "i", 9, "%", "8"]), $a(["J", "j", 10, "&", "9"]), $a(["K", "k", 11, "'", ","]), $a(["L", "l", 12, 40, "."]), $a(["M", "m", 13, 41, $1.lu]), $a(["N", "n", 27, "*", $1.su]), $a(["O", "o", 28, "+", -99]), $a(["P", "p", 29, ",", -99]), $a(["Q", "q", 30, "-", -99]), $a(["R", "r", 31, ".", -99]), $a(["S", "s", "@", "/", -99]), $a(["T", "t", 92, ":", -99]), $a(["U", "u", "^", ";", -99]), $a(["V", "v", "_", "<", -99]), $a(["W", "w", "`", "=", -99]), $a(["X", "x", "|", ">", -99]), $a(["Y", "y", "~", "?", -99]), $a(["Z", "z", 127, "[", -99]), $a([$1.ll, $1.su, $1.ll, "]", -99]), $a([$1.lm, $1.lm, $1.lu, "{", -99]), $a([$1.ld, $1.ld, $1.lp, "}", -99]), $a([$1.sb, $1.sb, $1.sb, $1.lu, -99])]); //#20489 + $1.charvals = $a([new Map, new Map, new Map, new Map, new Map]); //#20492 + for (var _1K = 0, _1J = $1.charmaps.length - 1; _1K <= _1J; _1K += 1) { //#20501 + $1.i = _1K; //#20494 + $1.encs = $get($1.charmaps, $1.i); //#20495 + for (var _1O = 0; _1O <= 4; _1O += 1) { //#20500 + $1.j = _1O; //#20497 + var _1R = $get($1.encs, $1.j); //#20498 + $k[$j++] = _1R; //#20498 + if ($eq($type(_1R), 'stringtype')) { //#20498 + var _1U = $get($k[--$j], 0); //#20498 + $k[$j++] = _1U; //#20498 + } //#20498 + $put($get($1.charvals, $1.j), $k[--$j], $1.i); //#20499 + } //#20499 + } //#20499 + var _1e = new Map([ + ["\x0d\x0a", $1.p2], + [". ", $1.p3], + [", ", $1.p4], + [": ", $1.p5] + ]); //#20508 + $1.pcomp = _1e; //#20509 + $1.e = 10000; //#20511 + $1.latlen = $a([$a([0, 5, 5, 10, 5, 10]), $a([9, 0, 5, 10, 5, 10]), $a([5, 5, 0, 5, 10, 10]), $a([5, 10, 10, 0, 10, 15]), $a([4, 9, 9, 14, 0, 14]), $a([0, 0, 0, 0, 0, 0])]); //#20521 + $1.latseq = $a([$a([$a([]), $a([$1.ll]), $a([$1.lm]), $a([$1.lm, $1.lp]), $a([$1.ld]), $a([$1.sb])]), $a([$a([$1.ld, $1.lu]), $a([]), $a([$1.lm]), $a([$1.lm, $1.lp]), $a([$1.ld]), $a([$1.sb])]), $a([$a([$1.lu]), $a([$1.ll]), $a([]), $a([$1.lp]), $a([$1.lu, $1.ld]), $a([$1.sb])]), $a([$a([$1.lu]), $a([$1.lu, $1.ll]), $a([$1.lu, $1.lm]), $a([]), $a([$1.lu, $1.ld]), $a([$1.lu, $1.sb])]), $a([$a([$1.lu]), $a([$1.lu, $1.ll]), $a([$1.lu, $1.lm]), $a([$1.lu, $1.lm, $1.lp]), $a([]), $a([$1.lu, $1.sb])]), $a([$a([$1.lu]), $a([$1.ll]), $a([$1.lm]), $a([]), $a([]), $a([])])]); //#20531 + $1.shftlen = $a([$a([$1.e, $1.e, $1.e, 5, $1.e]), $a([5, $1.e, $1.e, 5, $1.e]), $a([$1.e, $1.e, $1.e, 5, $1.e]), $a([$1.e, $1.e, $1.e, $1.e, $1.e]), $a([4, $1.e, $1.e, 4, $1.e])]); //#20540 + $1.charsize = function() { + var _3X = $k[--$j]; //#20543 + $k[$j++] = _3X; //#20554 + if (_3X >= 0) { //#20552 + $j--; //#20545 + var _3a = $get($a([5, 5, 5, 5, 4, 8]), $k[--$j]); //#20545 + $k[$j++] = _3a; //#20545 + } else { //#20552 + var _3b = $k[--$j]; //#20547 + var _3c = $k[--$j]; //#20547 + $k[$j++] = _3b; //#20547 + $k[$j++] = _3c; //#20547 + $j--; //#20547 + var _3d = $k[--$j]; //#20548 + $k[$j++] = _3d; //#20553 + if (_3d == $1.fn1) { //#20552 + $j--; //#20549 + $k[$j++] = 8; //#20549 + } else { //#20552 + var _3g = $f((-$k[--$j]) - 1000000); //#20551 + $k[$j++] = _3g; //#20551 + if (_3g == 0) { //#20551 + $j--; //#20551 + $k[$j++] = 1; //#20551 + } //#20551 + var _3h = $k[--$j]; //#20552 + $k[$j++] = (((~~(Math.log(_3h) / Math.log(10))) + 1) * 4) + 8; //#20552 + } //#20552 + } //#20552 + }; //#20555 + $1.curlen = $a([0, $1.e, $1.e, $1.e, $1.e, $1.e]); //#20558 + $1.curseq = $a([$a([]), $a([]), $a([]), $a([]), $a([]), $a([])]); //#20559 + $1.backto = $1.U; //#20561 + $1.lastchar = ""; //#20562 + $forall($1.msg, function() { //#20664 + $1.char = $k[--$j]; //#20567 + for (;;) { //#20593 + $1.imp = false; //#20571 + var _44 = $a([$1.U, $1.L, $1.M, $1.P, $1.D, $1.B]); //#20572 + for (var _45 = 0, _46 = _44.length; _45 < _46; _45++) { //#20591 + $1.x = $get(_44, _45); //#20573 + var _4E = $a([$1.U, $1.L, $1.M, $1.P, $1.D, $1.B]); //#20574 + for (var _4F = 0, _4G = _4E.length; _4F < _4G; _4F++) { //#20590 + $1.y = $get(_4E, _4F); //#20575 + if (($1.x != $1.B) || ($1.y == $1.backto)) { //#20589 + $1.cost = $f($get($1.curlen, $1.x) + $get($get($1.latlen, $1.x), $1.y)); //#20577 + if ($1.cost < $get($1.curlen, $1.y)) { //#20588 + $put($1.curlen, $1.y, $1.cost); //#20579 + $k[$j++] = $1.curseq; //#20582 + $k[$j++] = $1.y; //#20582 + $k[$j++] = Infinity; //#20582 + $aload($get($1.curseq, $1.x)); //#20581 + $aload($get($get($1.latseq, $1.x), $1.y)); //#20582 + var _4l = $a(); //#20582 + var _4m = $k[--$j]; //#20583 + $put($k[--$j], _4m, _4l); //#20583 + if ($1.y == $1.B) { //#20586 + $k[$j++] = 'backto'; //#20585 + if (($1.x == $1.P) || ($1.x == $1.D)) { //#20585 + $k[$j++] = $1.U; //#20585 + } else { //#20585 + $k[$j++] = $1.x; //#20585 + } //#20585 + var _4w = $k[--$j]; //#20585 + $1[$k[--$j]] = _4w; //#20585 + } //#20585 + $1.imp = true; //#20587 + } //#20587 + } //#20587 + } //#20587 + } //#20587 + if (!$1.imp) { //#20592 + break; //#20592 + } //#20592 + } //#20592 + $1.nxtlen = $a([$1.e, $1.e, $1.e, $1.e, $1.e, $1.e]); //#20596 + $1.nxtseq = $a(6); //#20597 + var _5D = $a([$1.U, $1.L, $1.M, $1.P, $1.D, $1.B]); //#20599 + for (var _5E = 0, _5F = _5D.length; _5E < _5F; _5E++) { //#20638 + $1.x = $get(_5D, _5E); //#20600 + for (;;) { //#20636 + if ($1.char >= 0) { //#20608 + if ($1.x != $1.B) { //#20606 + var _5O = $get($get($1.charvals, $1.x), $1.char) !== undefined; //#20606 + if (!_5O) { //#20606 + break; //#20606 + } //#20606 + } //#20606 + } else { //#20608 + if ($1.x != $1.P) { //#20608 + break; //#20608 + } //#20608 + } //#20608 + $k[$j++] = 'cost'; //#20612 + $k[$j++] = $get($1.curlen, $1.x); //#20612 + $k[$j++] = $1.x; //#20612 + $k[$j++] = $1.char; //#20612 + $1.charsize(); //#20612 + var _5W = $k[--$j]; //#20612 + var _5X = $k[--$j]; //#20612 + $1[$k[--$j]] = $f(_5X + _5W); //#20612 + if ($1.cost < $get($1.nxtlen, $1.x)) { //#20616 + $put($1.nxtlen, $1.x, $1.cost); //#20614 + $k[$j++] = $1.nxtseq; //#20615 + $k[$j++] = $1.x; //#20615 + $k[$j++] = Infinity; //#20615 + $aload($get($1.curseq, $1.x)); //#20615 + $k[$j++] = $1.char; //#20615 + var _5m = $a(); //#20615 + var _5n = $k[--$j]; //#20615 + $put($k[--$j], _5n, _5m); //#20615 + } //#20615 + if ($1.x == $1.B) { //#20619 + break; //#20619 + } //#20619 + var _5w = $a([$1.U, $1.L, $1.M, $1.P, $1.D]); //#20620 + for (var _5x = 0, _5y = _5w.length; _5x < _5y; _5x++) { //#20633 + $1.y = $get(_5w, _5x); //#20621 + if ($ne($1.x, $1.y)) { //#20632 + $k[$j++] = 'cost'; //#20623 + $k[$j++] = $f($get($1.curlen, $1.y) + $get($get($1.shftlen, $1.y), $1.x)); //#20623 + $k[$j++] = $1.x; //#20623 + $k[$j++] = $1.char; //#20623 + $1.charsize(); //#20623 + var _6C = $k[--$j]; //#20623 + var _6D = $k[--$j]; //#20623 + $1[$k[--$j]] = $f(_6D + _6C); //#20623 + if ($1.cost < $get($1.nxtlen, $1.y)) { //#20631 + $put($1.nxtlen, $1.y, $1.cost); //#20625 + $k[$j++] = $1.nxtseq; //#20629 + $k[$j++] = $1.y; //#20629 + $k[$j++] = Infinity; //#20629 + $aload($get($1.curseq, $1.y)); //#20627 + var _6T = ($1.x == $1.U) ? $1.su : $1.sp; //#20628 + $k[$j++] = _6T; //#20629 + $k[$j++] = $1.char; //#20629 + var _6V = $a(); //#20629 + var _6W = $k[--$j]; //#20630 + $put($k[--$j], _6W, _6V); //#20630 + } //#20630 + } //#20630 + } //#20630 + break; //#20635 + } //#20635 + } //#20635 + if ($ne($1.lastchar, "") && ($1.char >= 0)) { //#20649 + var _6a = $s(2); //#20642 + $put(_6a, 0, $1.lastchar); //#20642 + $put(_6a, 1, $1.char); //#20642 + $1.pchars = _6a; //#20642 + var _6f = $get($1.pcomp, $1.pchars) !== undefined; //#20643 + if (_6f) { //#20648 + if ($lt($get($1.curlen, $1.P), $get($1.nxtlen, $1.P))) { //#20647 + $put($1.nxtlen, $1.P, $get($1.curlen, $1.P)); //#20645 + $k[$j++] = $1.nxtseq; //#20646 + $k[$j++] = $1.P; //#20646 + $k[$j++] = Infinity; //#20646 + $aload($get($1.curseq, $1.P)); //#20646 + $j--; //#20646 + $k[$j++] = $get($1.pcomp, $1.pchars); //#20646 + var _6z = $a(); //#20646 + var _70 = $k[--$j]; //#20646 + $put($k[--$j], _70, _6z); //#20646 + } //#20646 + } //#20646 + } //#20646 + if ($ne($get($1.nxtseq, $1.B), null)) { //#20658 + $1.numbytes = 0; //#20653 + $forall($get($1.nxtseq, $1.B), function() { //#20656 + if ($k[--$j] == $1.sb) { //#20655 + $k[$j++] = 0; //#20655 + } else { //#20655 + $k[$j++] = $1.numbytes + 1; //#20655 + } //#20655 + $1.numbytes = $k[--$j]; //#20655 + }); //#20655 + if ($1.numbytes == 32) { //#20657 + $put($1.nxtlen, $1.B, $f($get($1.nxtlen, $1.B) + 11)); //#20657 + } //#20657 + } //#20657 + $1.curlen = $1.nxtlen; //#20660 + $1.curseq = $1.nxtseq; //#20661 + $k[$j++] = 'lastchar'; //#20662 + if ($1.char >= 0) { //#20662 + $k[$j++] = $1.char; //#20662 + } else { //#20662 + $k[$j++] = ""; //#20662 + } //#20662 + var _7M = $k[--$j]; //#20662 + $1[$k[--$j]] = _7M; //#20662 + }); //#20662 + $1.minseq = $1.e; //#20667 + var _7V = $a([$1.U, $1.L, $1.M, $1.P, $1.D, $1.B]); //#20668 + for (var _7W = 0, _7X = _7V.length; _7W < _7X; _7W++) { //#20674 + $1.i = $get(_7V, _7W); //#20669 + if ($get($1.curlen, $1.i) < $1.minseq) { //#20673 + $1.minseq = $get($1.curlen, $1.i); //#20671 + $1.seq = $get($1.curseq, $1.i); //#20672 + } //#20672 + } //#20672 + $1.tobin = function() { + var _7k = $s($k[--$j]); //#20678 + $k[$j++] = _7k; //#20678 + for (var _7m = 0, _7l = _7k.length - 1; _7m <= _7l; _7m += 1) { //#20678 + var _7n = $k[--$j]; //#20678 + $put(_7n, _7m, 48); //#20678 + $k[$j++] = _7n; //#20678 + } //#20678 + var _7o = $k[--$j]; //#20679 + var _7r = $cvrs($s(_7o.length), $k[--$j], 2); //#20679 + $puti(_7o, _7o.length - _7r.length, _7r); //#20679 + $k[$j++] = _7o; //#20679 + }; //#20680 + $1.encu = function() { + var _7w = $get($get($1.charvals, $1.U), $k[--$j]); //#20682 + $k[$j++] = _7w; //#20682 + $k[$j++] = 5; //#20682 + $1.tobin(); //#20682 + }; //#20682 + $1.encl = function() { + var _81 = $get($get($1.charvals, $1.L), $k[--$j]); //#20683 + $k[$j++] = _81; //#20683 + $k[$j++] = 5; //#20683 + $1.tobin(); //#20683 + }; //#20683 + $1.encm = function() { + var _86 = $get($get($1.charvals, $1.M), $k[--$j]); //#20684 + $k[$j++] = _86; //#20684 + $k[$j++] = 5; //#20684 + $1.tobin(); //#20684 + }; //#20684 + $1.encd = function() { + var _8B = $get($get($1.charvals, $1.D), $k[--$j]); //#20685 + $k[$j++] = _8B; //#20685 + $k[$j++] = 4; //#20685 + $1.tobin(); //#20685 + }; //#20685 + $1.encp = function() { + var _8C = $k[--$j]; //#20688 + $k[$j++] = _8C; //#20705 + if (_8C == $1.fn1) { //#20704 + $j--; //#20689 + $k[$j++] = "00000000"; //#20689 + } else { //#20704 + var _8E = $k[--$j]; //#20691 + $k[$j++] = _8E; //#20705 + if (_8E <= -1000000) { //#20704 + var _8G = $f((-$k[--$j]) - 1000000); //#20692 + $k[$j++] = _8G; //#20692 + $k[$j++] = _8G; //#20692 + if (_8G == 0) { //#20692 + $j--; //#20692 + $k[$j++] = 1; //#20692 + } //#20692 + var _8I = ~~(Math.log($k[--$j]) / Math.log(10)); //#20694 + var _8J = $s(((_8I + 1) * 4) + 8); //#20694 + $puti(_8J, 0, "00000"); //#20695 + $k[$j++] = _8I; //#20696 + $k[$j++] = _8J; //#20696 + $k[$j++] = _8J; //#20696 + $k[$j++] = _8I + 1; //#20696 + $k[$j++] = 3; //#20696 + $1.tobin(); //#20696 + var _8K = $k[--$j]; //#20696 + $puti($k[--$j], 5, _8K); //#20696 + var _8M = $k[--$j]; //#20697 + var _8N = $k[--$j]; //#20697 + var _8O = $k[--$j]; //#20697 + $k[$j++] = _8M; //#20701 + $k[$j++] = _8O; //#20701 + for (var _8P = _8N; _8P >= 0; _8P -= 1) { //#20701 + var _8Q = $k[--$j]; //#20698 + var _8R = $k[--$j]; //#20699 + $k[$j++] = _8R; //#20700 + $k[$j++] = ~~(_8Q / 10); //#20700 + $k[$j++] = _8R; //#20700 + $k[$j++] = (_8P * 4) + 8; //#20700 + $k[$j++] = $f((_8Q % 10) + 2); //#20700 + $k[$j++] = 4; //#20700 + $1.tobin(); //#20700 + var _8S = $k[--$j]; //#20700 + var _8T = $k[--$j]; //#20700 + $puti($k[--$j], _8T, _8S); //#20700 + } //#20700 + $j--; //#20702 + } else { //#20704 + var _8Z = $get($get($1.charvals, $1.P), $k[--$j]); //#20704 + $k[$j++] = _8Z; //#20704 + $k[$j++] = 5; //#20704 + $1.tobin(); //#20704 + } //#20704 + } //#20704 + }; //#20706 + $1.encfuncs = $a(['encu', 'encl', 'encm', 'encp', 'encd']); //#20708 + $1.addtomsgbits = function() { + $1.v = $k[--$j]; //#20711 + $puti($1.msgbits, $1.j, $1.v); //#20712 + $1.j = $1.j + $1.v.length; //#20713 + }; //#20714 + $1.state = $1.U; //#20717 + $1.msgbits = $s($1.minseq); //#20718 + $1.i = 0; //#20719 + $1.j = 0; //#20719 + for (;;) { //#20778 + if ($1.i >= $1.seq.length) { //#20720 + break; //#20720 + } //#20720 + if ($1.state != $1.B) { //#20773 + $1.char = $get($1.seq, $1.i); //#20724 + $k[$j++] = $1.char; //#20727 + if ($1[$get($1.encfuncs, $1.state)]() === true) { break; - } - if ($1.mode == $1.A) { - if ($1.numK >= 1) { - $k[$j++] = $1.K; - break; - } - if ($1.numB >= 1) { - $k[$j++] = $1.B; - break; - } - $k[$j++] = $a([ 13, 15, 17, $1.e, 5, 7, 9 ]); - $1.NbeforeA(); - if ($k[--$j]) { - $k[$j++] = $1.N; - break; - } - $k[$j++] = $a([ 13, 17, 18, $1.e, $1.e, 7, 9 ]); - $1.NbeforeB(); - if ($k[--$j]) { - $k[$j++] = $1.N; - break; - } - $k[$j++] = $a([ 7, 8, 9, $1.e, 3, 4, 5 ]); - $1.NbeforeE(); - if ($k[--$j]) { - $k[$j++] = $1.N; - break; - } - if ($1.numA >= 1 || $1.numN >= 1) { - $k[$j++] = $1.A; - break; - } - $k[$j++] = $1.B; - break; - } - if ($1.mode == $1.N) { - if ($1.numK >= 1) { - $k[$j++] = $1.K; - break; - } - if ($1.numB >= 1) { - $k[$j++] = $1.B; - break; - } - if ($1.numA >= 1) { - $k[$j++] = $1.A; - break; - } - if ($1.numN >= 1) { - $k[$j++] = $1.N; - break; - } - $k[$j++] = $1.B; - break; - } - if ($1.mode == $1.K) { - if ($1.numB >= 1) { - $k[$j++] = $1.B; - break; - } - if ($1.numA >= 1) { - $k[$j++] = $1.A; - break; - } - if ($1.numN >= 1) { - $k[$j++] = $1.N; - break; - } - if ($1.numK >= 1) { - $k[$j++] = $1.K; - break; - } - $k[$j++] = $1.B; - break; - } - } - var _CL = $k[--$j]; - $k[$j++] = _CL; - if (_CL == $1.K && $1.fnc1first) { - $j--; - $k[$j++] = $1.B; - } - var _CP = $k[--$j]; - $k[$j++] = _CP; - if (_CP == $1.mode) { - $j--; - var _CV = $1.mode == $1.K ? 2 : 1; - $1.dat = $geti($1.msg, $1.i, _CV); - $k[$j++] = Infinity; - $aload($1.seq); - $k[$j++] = Infinity; - var _CY = $k[--$j]; - var _CZ = $k[--$j]; - $k[$j++] = _CY; - $aload(_CZ); - $aload($1.dat); - var _Cb = $a(); - $k[$j++] = _Cb; - $1.seq = $a(); - } else { - $1.mode = $k[--$j]; - if ($1.mode == $1.K) { - $k[$j++] = $1.K; - $k[$j++] = $geti($1.msg, $1.i, $1.numK * 2); - } - if ($1.mode == $1.B) { - $k[$j++] = $1.B; - $k[$j++] = $geti($1.msg, $1.i, $1.numB); - } - if ($1.mode == $1.A) { - $k[$j++] = $1.A; - $k[$j++] = $geti($1.msg, $1.i, $1.numA); - } - if ($1.mode == $1.N) { - $k[$j++] = $1.N; - $k[$j++] = $geti($1.msg, $1.i, $1.numN); - } - if ($1.mode == $1.E) { - $1.mode = -1; - $k[$j++] = $1.E; - $k[$j++] = $geti($1.msg, $1.i, 1); - } - $1.dat = $k[--$j]; - $1.sw = $k[--$j]; - $k[$j++] = Infinity; - $aload($1.seq); - $k[$j++] = $1.sw; - $k[$j++] = $1.dat; - $1.seq = $a(); - } - $1.i = $1.i + $1.dat.length; - } - for (;;) { - if ($1.seq == -1) { - break; - } - $1.bits = $s(23648); - $1.j = 0; - if ($1.fnc1first) { - if ($lt($1.ver, $1.vR7x43)) { - $k[$j++] = "0101"; - } else { - $k[$j++] = "101"; - } - $1.addtobits(); - } - $1.abort = false; - for (var _DR = 0, _DQ = $1.seq.length - 1; _DR <= _DQ; _DR += 2) { - $1.i = _DR; - $1.mode = $get($1.seq, $1.i); - $k[$j++] = $get($get($1.mids, $1.ver), $1.mode); - $1.addtobits(); - $1.chars = $get($1.seq, $1.i + 1); - if ($1.mode != $1.E) { - $1.cclen = $get($get($1.cclens, $1.ver), $1.mode); - if ($1.chars.length >= ~~Math.pow(2, $1.cclen)) { - $1.abort = true; - break; - } - $k[$j++] = $1.chars.length; - if ($1.mode == $1.K) { - var _Dp = $k[--$j]; - $k[$j++] = ~~(_Dp / 2); - } - $k[$j++] = $1.cclen; - $1.tobin(); - $1.addtobits(); - } - $k[$j++] = $1.chars; - if ($1[$get($1.encfuncs, $1.mode)]() === true) { - break; - } - $1.addtobits(); - } - if ($1.abort) { - break; - } - $1.bits = $geti($1.bits, 0, $1.j); - $put($1.msgbits, $1.ver, $1.bits); - break; - } - } - $1.metrics = $a([ $a([ "micro", "M1", $1.vM1, 11, 11, 98, 99, 36, $a([ 2, 99, 99, 99 ]), $a([ 1, 0, -1, -1, -1, -1, -1, -1 ]) ]), $a([ "micro", "M2", $1.vM2, 13, 13, 98, 99, 80, $a([ 5, 6, 99, 99 ]), $a([ 1, 0, 1, 0, -1, -1, -1, -1 ]) ]), $a([ "micro", "M3", $1.vM3, 15, 15, 98, 99, 132, $a([ 6, 8, 99, 99 ]), $a([ 1, 0, 1, 0, -1, -1, -1, -1 ]) ]), $a([ "micro", "M4", $1.vM4, 17, 17, 98, 99, 192, $a([ 8, 10, 14, 99 ]), $a([ 1, 0, 1, 0, 1, 0, -1, -1 ]) ]), $a([ "full", "1", $1.v1to9, 21, 21, 98, 99, 208, $a([ 7, 10, 13, 17 ]), $a([ 1, 0, 1, 0, 1, 0, 1, 0 ]) ]), $a([ "full", "2", $1.v1to9, 25, 25, 18, 99, 359, $a([ 10, 16, 22, 28 ]), $a([ 1, 0, 1, 0, 1, 0, 1, 0 ]) ]), $a([ "full", "3", $1.v1to9, 29, 29, 22, 99, 567, $a([ 15, 26, 36, 44 ]), $a([ 1, 0, 1, 0, 2, 0, 2, 0 ]) ]), $a([ "full", "4", $1.v1to9, 33, 33, 26, 99, 807, $a([ 20, 36, 52, 64 ]), $a([ 1, 0, 2, 0, 2, 0, 4, 0 ]) ]), $a([ "full", "5", $1.v1to9, 37, 37, 30, 99, 1079, $a([ 26, 48, 72, 88 ]), $a([ 1, 0, 2, 0, 2, 2, 2, 2 ]) ]), $a([ "full", "6", $1.v1to9, 41, 41, 34, 99, 1383, $a([ 36, 64, 96, 112 ]), $a([ 2, 0, 4, 0, 4, 0, 4, 0 ]) ]), $a([ "full", "7", $1.v1to9, 45, 45, 22, 38, 1568, $a([ 40, 72, 108, 130 ]), $a([ 2, 0, 4, 0, 2, 4, 4, 1 ]) ]), $a([ "full", "8", $1.v1to9, 49, 49, 24, 42, 1936, $a([ 48, 88, 132, 156 ]), $a([ 2, 0, 2, 2, 4, 2, 4, 2 ]) ]), $a([ "full", "9", $1.v1to9, 53, 53, 26, 46, 2336, $a([ 60, 110, 160, 192 ]), $a([ 2, 0, 3, 2, 4, 4, 4, 4 ]) ]), $a([ "full", "10", $1.v10to26, 57, 57, 28, 50, 2768, $a([ 72, 130, 192, 224 ]), $a([ 2, 2, 4, 1, 6, 2, 6, 2 ]) ]), $a([ "full", "11", $1.v10to26, 61, 61, 30, 54, 3232, $a([ 80, 150, 224, 264 ]), $a([ 4, 0, 1, 4, 4, 4, 3, 8 ]) ]), $a([ "full", "12", $1.v10to26, 65, 65, 32, 58, 3728, $a([ 96, 176, 260, 308 ]), $a([ 2, 2, 6, 2, 4, 6, 7, 4 ]) ]), $a([ "full", "13", $1.v10to26, 69, 69, 34, 62, 4256, $a([ 104, 198, 288, 352 ]), $a([ 4, 0, 8, 1, 8, 4, 12, 4 ]) ]), $a([ "full", "14", $1.v10to26, 73, 73, 26, 46, 4651, $a([ 120, 216, 320, 384 ]), $a([ 3, 1, 4, 5, 11, 5, 11, 5 ]) ]), $a([ "full", "15", $1.v10to26, 77, 77, 26, 48, 5243, $a([ 132, 240, 360, 432 ]), $a([ 5, 1, 5, 5, 5, 7, 11, 7 ]) ]), $a([ "full", "16", $1.v10to26, 81, 81, 26, 50, 5867, $a([ 144, 280, 408, 480 ]), $a([ 5, 1, 7, 3, 15, 2, 3, 13 ]) ]), $a([ "full", "17", $1.v10to26, 85, 85, 30, 54, 6523, $a([ 168, 308, 448, 532 ]), $a([ 1, 5, 10, 1, 1, 15, 2, 17 ]) ]), $a([ "full", "18", $1.v10to26, 89, 89, 30, 56, 7211, $a([ 180, 338, 504, 588 ]), $a([ 5, 1, 9, 4, 17, 1, 2, 19 ]) ]), $a([ "full", "19", $1.v10to26, 93, 93, 30, 58, 7931, $a([ 196, 364, 546, 650 ]), $a([ 3, 4, 3, 11, 17, 4, 9, 16 ]) ]), $a([ "full", "20", $1.v10to26, 97, 97, 34, 62, 8683, $a([ 224, 416, 600, 700 ]), $a([ 3, 5, 3, 13, 15, 5, 15, 10 ]) ]), $a([ "full", "21", $1.v10to26, 101, 101, 28, 50, 9252, $a([ 224, 442, 644, 750 ]), $a([ 4, 4, 17, 0, 17, 6, 19, 6 ]) ]), $a([ "full", "22", $1.v10to26, 105, 105, 26, 50, 10068, $a([ 252, 476, 690, 816 ]), $a([ 2, 7, 17, 0, 7, 16, 34, 0 ]) ]), $a([ "full", "23", $1.v10to26, 109, 109, 30, 54, 10916, $a([ 270, 504, 750, 900 ]), $a([ 4, 5, 4, 14, 11, 14, 16, 14 ]) ]), $a([ "full", "24", $1.v10to26, 113, 113, 28, 54, 11796, $a([ 300, 560, 810, 960 ]), $a([ 6, 4, 6, 14, 11, 16, 30, 2 ]) ]), $a([ "full", "25", $1.v10to26, 117, 117, 32, 58, 12708, $a([ 312, 588, 870, 1050 ]), $a([ 8, 4, 8, 13, 7, 22, 22, 13 ]) ]), $a([ "full", "26", $1.v10to26, 121, 121, 30, 58, 13652, $a([ 336, 644, 952, 1110 ]), $a([ 10, 2, 19, 4, 28, 6, 33, 4 ]) ]), $a([ "full", "27", $1.v27to40, 125, 125, 34, 62, 14628, $a([ 360, 700, 1020, 1200 ]), $a([ 8, 4, 22, 3, 8, 26, 12, 28 ]) ]), $a([ "full", "28", $1.v27to40, 129, 129, 26, 50, 15371, $a([ 390, 728, 1050, 1260 ]), $a([ 3, 10, 3, 23, 4, 31, 11, 31 ]) ]), $a([ "full", "29", $1.v27to40, 133, 133, 30, 54, 16411, $a([ 420, 784, 1140, 1350 ]), $a([ 7, 7, 21, 7, 1, 37, 19, 26 ]) ]), $a([ "full", "30", $1.v27to40, 137, 137, 26, 52, 17483, $a([ 450, 812, 1200, 1440 ]), $a([ 5, 10, 19, 10, 15, 25, 23, 25 ]) ]), $a([ "full", "31", $1.v27to40, 141, 141, 30, 56, 18587, $a([ 480, 868, 1290, 1530 ]), $a([ 13, 3, 2, 29, 42, 1, 23, 28 ]) ]), $a([ "full", "32", $1.v27to40, 145, 145, 34, 60, 19723, $a([ 510, 924, 1350, 1620 ]), $a([ 17, 0, 10, 23, 10, 35, 19, 35 ]) ]), $a([ "full", "33", $1.v27to40, 149, 149, 30, 58, 20891, $a([ 540, 980, 1440, 1710 ]), $a([ 17, 1, 14, 21, 29, 19, 11, 46 ]) ]), $a([ "full", "34", $1.v27to40, 153, 153, 34, 62, 22091, $a([ 570, 1036, 1530, 1800 ]), $a([ 13, 6, 14, 23, 44, 7, 59, 1 ]) ]), $a([ "full", "35", $1.v27to40, 157, 157, 30, 54, 23008, $a([ 570, 1064, 1590, 1890 ]), $a([ 12, 7, 12, 26, 39, 14, 22, 41 ]) ]), $a([ "full", "36", $1.v27to40, 161, 161, 24, 50, 24272, $a([ 600, 1120, 1680, 1980 ]), $a([ 6, 14, 6, 34, 46, 10, 2, 64 ]) ]), $a([ "full", "37", $1.v27to40, 165, 165, 28, 54, 25568, $a([ 630, 1204, 1770, 2100 ]), $a([ 17, 4, 29, 14, 49, 10, 24, 46 ]) ]), $a([ "full", "38", $1.v27to40, 169, 169, 32, 58, 26896, $a([ 660, 1260, 1860, 2220 ]), $a([ 4, 18, 13, 32, 48, 14, 42, 32 ]) ]), $a([ "full", "39", $1.v27to40, 173, 173, 26, 54, 28256, $a([ 720, 1316, 1950, 2310 ]), $a([ 20, 4, 40, 7, 43, 22, 10, 67 ]) ]), $a([ "full", "40", $1.v27to40, 177, 177, 30, 58, 29648, $a([ 750, 1372, 2040, 2430 ]), $a([ 19, 6, 18, 31, 34, 34, 20, 61 ]) ]), $a([ "rmqr", "R7x43", $1.vR7x43, 7, 43, 22, 99, 104, $a([ 99, 7, 99, 10 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 0 ]) ]), $a([ "rmqr", "R7x59", $1.vR7x59, 7, 59, 20, 40, 171, $a([ 99, 9, 99, 14 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 0 ]) ]), $a([ "rmqr", "R7x77", $1.vR7x77, 7, 77, 26, 52, 261, $a([ 99, 12, 99, 22 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 0 ]) ]), $a([ "rmqr", "R7x99", $1.vR7x99, 7, 99, 24, 50, 358, $a([ 99, 16, 99, 30 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 0 ]) ]), $a([ "rmqr", "R7x139", $1.vR7x139, 7, 139, 28, 56, 545, $a([ 99, 24, 99, 44 ]), $a([ -1, -1, 1, 0, -1, -1, 2, 0 ]) ]), $a([ "rmqr", "R9x43", $1.vR9x43, 9, 43, 22, 99, 170, $a([ 99, 9, 99, 14 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 0 ]) ]), $a([ "rmqr", "R9x59", $1.vR9x59, 9, 59, 20, 40, 267, $a([ 99, 12, 99, 22 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 0 ]) ]), $a([ "rmqr", "R9x77", $1.vR9x77, 9, 77, 26, 52, 393, $a([ 99, 18, 99, 32 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 1 ]) ]), $a([ "rmqr", "R9x99", $1.vR9x99, 9, 99, 24, 50, 532, $a([ 99, 24, 99, 44 ]), $a([ -1, -1, 1, 0, -1, -1, 2, 0 ]) ]), $a([ "rmqr", "R9x139", $1.vR9x139, 9, 139, 28, 56, 797, $a([ 99, 36, 99, 66 ]), $a([ -1, -1, 1, 1, -1, -1, 3, 0 ]) ]), $a([ "rmqr", "R11x27", $1.vR11x27, 11, 27, 98, 99, 122, $a([ 99, 8, 99, 10 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 0 ]) ]), $a([ "rmqr", "R11x43", $1.vR11x43, 11, 43, 22, 99, 249, $a([ 99, 12, 99, 20 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 0 ]) ]), $a([ "rmqr", "R11x59", $1.vR11x59, 11, 59, 20, 40, 376, $a([ 99, 16, 99, 32 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 1 ]) ]), $a([ "rmqr", "R11x77", $1.vR11x77, 11, 77, 26, 52, 538, $a([ 99, 24, 99, 44 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 1 ]) ]), $a([ "rmqr", "R11x99", $1.vR11x99, 11, 99, 24, 50, 719, $a([ 99, 32, 99, 60 ]), $a([ -1, -1, 1, 1, -1, -1, 1, 1 ]) ]), $a([ "rmqr", "R11x139", $1.vR11x139, 11, 139, 28, 56, 1062, $a([ 99, 48, 99, 90 ]), $a([ -1, -1, 2, 0, -1, -1, 3, 0 ]) ]), $a([ "rmqr", "R13x27", $1.vR13x27, 13, 27, 98, 99, 172, $a([ 99, 9, 99, 14 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 0 ]) ]), $a([ "rmqr", "R13x43", $1.vR13x43, 13, 43, 22, 99, 329, $a([ 99, 14, 99, 28 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 0 ]) ]), $a([ "rmqr", "R13x59", $1.vR13x59, 13, 59, 20, 40, 486, $a([ 99, 22, 99, 40 ]), $a([ -1, -1, 1, 0, -1, -1, 2, 0 ]) ]), $a([ "rmqr", "R13x77", $1.vR13x77, 13, 77, 26, 52, 684, $a([ 99, 32, 99, 56 ]), $a([ -1, -1, 1, 1, -1, -1, 1, 1 ]) ]), $a([ "rmqr", "R13x99", $1.vR13x99, 13, 99, 24, 50, 907, $a([ 99, 40, 99, 78 ]), $a([ -1, -1, 1, 1, -1, -1, 1, 2 ]) ]), $a([ "rmqr", "R13x139", $1.vR13x139, 13, 139, 28, 56, 1328, $a([ 99, 60, 99, 112 ]), $a([ -1, -1, 2, 1, -1, -1, 2, 2 ]) ]), $a([ "rmqr", "R15x43", $1.vR15x43, 15, 43, 22, 99, 409, $a([ 99, 18, 99, 36 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 1 ]) ]), $a([ "rmqr", "R15x59", $1.vR15x59, 15, 59, 20, 40, 596, $a([ 99, 26, 99, 48 ]), $a([ -1, -1, 1, 0, -1, -1, 2, 0 ]) ]), $a([ "rmqr", "R15x77", $1.vR15x77, 15, 77, 26, 52, 830, $a([ 99, 36, 99, 72 ]), $a([ -1, -1, 1, 1, -1, -1, 2, 1 ]) ]), $a([ "rmqr", "R15x99", $1.vR15x99, 15, 99, 24, 50, 1095, $a([ 99, 48, 99, 88 ]), $a([ -1, -1, 2, 0, -1, -1, 4, 0 ]) ]), $a([ "rmqr", "R15x139", $1.vR15x139, 15, 139, 28, 56, 1594, $a([ 99, 72, 99, 130 ]), $a([ -1, -1, 2, 1, -1, -1, 1, 4 ]) ]), $a([ "rmqr", "R17x43", $1.vR17x43, 17, 43, 22, 99, 489, $a([ 99, 22, 99, 40 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 1 ]) ]), $a([ "rmqr", "R17x59", $1.vR17x59, 17, 59, 20, 40, 706, $a([ 99, 32, 99, 60 ]), $a([ -1, -1, 2, 0, -1, -1, 2, 0 ]) ]), $a([ "rmqr", "R17x77", $1.vR17x77, 17, 77, 26, 52, 976, $a([ 99, 44, 99, 84 ]), $a([ -1, -1, 2, 0, -1, -1, 1, 2 ]) ]), $a([ "rmqr", "R17x99", $1.vR17x99, 17, 99, 24, 50, 1283, $a([ 99, 60, 99, 104 ]), $a([ -1, -1, 2, 1, -1, -1, 4, 0 ]) ]), $a([ "rmqr", "R17x139", $1.vR17x139, 17, 139, 28, 56, 1860, $a([ 99, 80, 99, 156 ]), $a([ -1, -1, 4, 0, -1, -1, 2, 4 ]) ]) ]); - $k[$j++] = "eclval"; - $search("LMQH", $1.eclevel); - $j--; - var _Iz = $k[--$j]; - var _J0 = $k[--$j]; - $k[$j++] = _Iz.length; - $k[$j++] = _J0; - $j--; - var _J1 = $k[--$j]; - var _J2 = $k[--$j]; - $k[$j++] = _J1; - $k[$j++] = _J2; - $j--; - var _J3 = $k[--$j]; - $1[$k[--$j]] = _J3; - for (var _J7 = 0, _J6 = $1.metrics.length - 1; _J7 <= _J6; _J7 += 1) { - $1.i = _J7; - $1.m = $get($1.metrics, $1.i); - $1.frmt = $get($1.m, 0); - $1.vers = $get($1.m, 1); - $1.vergrp = $get($1.m, 2); - $1.verind = $1.i - 44; - $1.rows = $get($1.m, 3); - $1.cols = $get($1.m, 4); - $1.asp2 = $get($1.m, 5); - $1.asp3 = $get($1.m, 6); - $1.nmod = $get($1.m, 7); - $1.ncws = ~~($1.nmod / 8); - $1.rbit = $1.nmod % 8; - $1.lc4b = false; - if ($eq($1.vers, "M1") || $eq($1.vers, "M3")) { - $1.ncws = $1.ncws + 1; - $1.rbit = 0; - $1.lc4b = true; - } - $1.ecws = $get($get($1.m, 8), $1.eclval); - $1.dcws = $f($1.ncws - $1.ecws); - var _Jf = $1.lc4b ? 4 : 0; - $1.dmod = $f($1.dcws * 8 - _Jf); - $1.ecb1 = $get($get($1.m, 9), $1.eclval * 2); - $1.ecb2 = $get($get($1.m, 9), $f($1.eclval * 2 + 1)); - $1.okay = true; - if ($ne($1.format, $1.frmt)) { - $1.okay = false; - } - if ($eq($1.frmt, "micro") && $1.fnc1first) { - $1.okay = false; - } - if ($ne($1.version, "unset") && $ne($1.version, $1.vers)) { - $1.okay = false; - } - if ($1.ecb1 == -1 || $1.ecb2 == -1) { - $1.okay = false; - } - $1.verbits = $get($1.msgbits, $1.vergrp); - if ($1.verbits == -1) { - $1.okay = false; - } else { - if ($1.verbits.length > $1.dmod) { - $1.okay = false; - } - } - $1.term = $geti("000000000", 0, $get($1.termlens, $1.vergrp)); - if ($1.okay) { - break; - } - } - if (!$1.okay) { - $k[$j++] = "bwipp.qrcodeNoValidSymbol"; - $k[$j++] = "No valid symbol available"; - $0.raiseerror(); - } - $1.format = $1.frmt; - $1.version = $1.vers; - $1.msgbits = $1.verbits; - $1.dcpb = ~~($1.dcws / $f($1.ecb1 + $1.ecb2)); - $1.ecpb = ~~($1.ncws / $f($1.ecb1 + $1.ecb2)) - $1.dcpb; - var _KJ = $1.term; - var _KK = $1.dmod; - var _KL = $1.msgbits; - var _KM = $1.term; - var _KN = _KM.length; - var _KO = $f(_KK - _KL.length); - if ($f(_KK - _KL.length) > _KM.length) { - var _ = _KN; - _KN = _KO; - _KO = _; - } - $1.term = $geti(_KJ, 0, _KO); - var _KS = $s($1.msgbits.length + $1.term.length); - $puti(_KS, 0, $1.msgbits); - $puti(_KS, $1.msgbits.length, $1.term); - $1.msgbits = _KS; - $1.pad = $s($1.dmod); - for (var _Ka = 0, _KZ = $1.pad.length - 1; _Ka <= _KZ; _Ka += 1) { - $put($1.pad, _Ka, 48); - } - $puti($1.pad, 0, $1.msgbits); - $1.padstrs = $a([ "11101100", "00010001" ]); - $1.padnum = 0; - var _Ki = $1.lc4b ? 5 : 1; - for (var _Kk = ~~(Math.ceil($1.msgbits.length / 8) * 8), _Kj = $f($1.dmod - _Ki); _Kk <= _Kj; _Kk += 8) { - $puti($1.pad, _Kk, $get($1.padstrs, $1.padnum)); - $1.padnum = ($1.padnum + 1) % 2; - } - $1.cws = $a($1.dcws); - for (var _Ku = 0, _Kt = $1.cws.length - 1; _Ku <= _Kt; _Ku += 1) { - $1.c = _Ku; - $1.bpcw = 8; - if ($1.lc4b && $1.c == $1.cws.length - 1) { - $1.bpcw = 4; - } - $1.cwb = $geti($1.pad, $1.c * 8, $1.bpcw); - $1.cw = 0; - for (var _L4 = 0, _L3 = $1.bpcw - 1; _L4 <= _L3; _L4 += 1) { - $1.i = _L4; - $1.cw = $f($1.cw + ~~Math.pow(2, $1.bpcw - $1.i - 1) * $f($get($1.cwb, $1.i) - 48)); - } - $put($1.cws, $1.c, $1.cw); - } - if ($1.lc4b) { - var _LF = $1.cws; - var _LG = $1.cws; - $put(_LF, _LG.length - 1, $get(_LF, _LG.length - 1) << 4); - } - var _LJ = $get($1.options, "debugcws") !== undefined; - if (_LJ) { - $k[$j++] = "bwipp.debugcws"; - $k[$j++] = $1.cws; - $0.raiseerror(); - } - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _LL = 0, _LM = 255; _LL < _LM; _LL++) { - var _LN = $k[--$j]; - var _LO = _LN * 2; - $k[$j++] = _LN; - $k[$j++] = _LO; - if (_LO >= 256) { - var _LP = $k[--$j]; - $k[$j++] = _LP ^ 285; - } - } - $1.rsalog = $a(); - $1.rslog = $a(256); - for (var _LS = 1; _LS <= 255; _LS += 1) { - $put($1.rslog, $get($1.rsalog, _LS), _LS); - } - $1.rsprod = function() { - var _LW = $k[--$j]; - var _LX = $k[--$j]; - $k[$j++] = _LX; - $k[$j++] = _LW; - if (_LW != 0 && _LX != 0) { - var _La = $get($1.rslog, $k[--$j]); - var _Lf = $get($1.rsalog, $f(_La + $get($1.rslog, $k[--$j])) % 255); - $k[$j++] = _Lf; - } else { - $j -= 2; - $k[$j++] = 0; - } - }; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _Lh = 0, _Li = $1.ecpb; _Lh < _Li; _Lh++) { - $k[$j++] = 0; - } - $1.coeffs = $a(); - for (var _Lm = 0, _Ll = $1.ecpb - 1; _Lm <= _Ll; _Lm += 1) { - $1.i = _Lm; - $put($1.coeffs, $1.i + 1, $get($1.coeffs, $1.i)); - for (var _Lt = $1.i; _Lt >= 1; _Lt -= 1) { - $1.j = _Lt; - $k[$j++] = $1.coeffs; - $k[$j++] = $1.j; - $k[$j++] = $get($1.coeffs, $1.j - 1); - $k[$j++] = $get($1.coeffs, $1.j); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _M5 = $k[--$j]; - var _M6 = $k[--$j]; - var _M7 = $k[--$j]; - $put($k[--$j], _M7, $xo(_M6, _M5)); - } - $k[$j++] = $1.coeffs; - $k[$j++] = 0; - $k[$j++] = $get($1.coeffs, 0); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _MF = $k[--$j]; - var _MG = $k[--$j]; - $put($k[--$j], _MG, _MF); - } - $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); + } //#20727 + $1.addtomsgbits(); //#20727 + $1.i = $1.i + 1; //#20728 + if (($1.char == $1.su) || ($1.char == $1.sp)) { //#20734 + $k[$j++] = $get($1.seq, $1.i); //#20732 + if ($1.char == $1.su) { //#20732 + $1.encu(); //#20732 + } else { //#20732 + $1.encp(); //#20732 + } //#20732 + $1.addtomsgbits(); //#20732 + $1.i = $1.i + 1; //#20733 + } //#20733 + if ($1.char == $1.lu) { //#20737 + $1.state = $1.U; //#20737 + } //#20737 + if ($1.char == $1.ll) { //#20738 + $1.state = $1.L; //#20738 + } //#20738 + if ($1.char == $1.lm) { //#20739 + $1.state = $1.M; //#20739 + } //#20739 + if ($1.char == $1.lp) { //#20740 + $1.state = $1.P; //#20740 + } //#20740 + if ($1.char == $1.ld) { //#20741 + $1.state = $1.D; //#20741 + } //#20741 + if ($1.char == $1.sb) { //#20742 + $1.state = $1.B; //#20742 + } //#20742 + } else { //#20773 + $1.numbytes = 0; //#20747 + for (;;) { //#20751 + if (($1.i + $1.numbytes) >= $1.seq.length) { //#20748 + break; //#20748 + } //#20748 + if ($get($1.seq, $1.i + $1.numbytes) < 0) { //#20749 + break; //#20749 + } //#20749 + $1.numbytes = $1.numbytes + 1; //#20750 + } //#20750 + if ($1.numbytes <= 31) { //#20758 + $k[$j++] = $1.numbytes; //#20755 + $k[$j++] = 5; //#20755 + $1.tobin(); //#20755 + $1.addtomsgbits(); //#20755 + } else { //#20758 + $k[$j++] = 0; //#20757 + $k[$j++] = 5; //#20757 + $1.tobin(); //#20757 + $1.addtomsgbits(); //#20757 + $k[$j++] = $1.numbytes - 31; //#20758 + $k[$j++] = 11; //#20758 + $1.tobin(); //#20758 + $1.addtomsgbits(); //#20758 + } //#20758 + for (var _9b = 0, _9c = $1.numbytes; _9b < _9c; _9b++) { //#20765 + $k[$j++] = $get($1.seq, $1.i); //#20763 + $k[$j++] = 8; //#20763 + $1.tobin(); //#20763 + $1.addtomsgbits(); //#20763 + $1.i = $1.i + 1; //#20764 + } //#20764 + if ($1.i < $1.seq.length) { //#20774 + $1.char = $get($1.seq, $1.i); //#20769 + $1.i = $1.i + 1; //#20770 + if ($1.char == $1.lu) { //#20771 + $1.state = $1.U; //#20771 + } //#20771 + if ($1.char == $1.ll) { //#20772 + $1.state = $1.L; //#20772 + } //#20772 + if ($1.char == $1.lm) { //#20773 + $1.state = $1.M; //#20773 + } //#20773 + } //#20773 + } //#20773 + } //#20773 + } //#20773 + $1.metrics = $a([$a(["rune", 0, 0, 0, 6]), $a(["compact", 1, 1, 17, 6]), $a(["full", 1, 1, 21, 6]), $a(["compact", 2, 0, 40, 6]), $a(["full", 2, 1, 48, 6]), $a(["compact", 3, 0, 51, 8]), $a(["full", 3, 1, 60, 8]), $a(["compact", 4, 0, 76, 8]), $a(["full", 4, 1, 88, 8]), $a(["full", 5, 1, 120, 8]), $a(["full", 6, 1, 156, 8]), $a(["full", 7, 1, 196, 8]), $a(["full", 8, 1, 240, 8]), $a(["full", 9, 1, 230, 10]), $a(["full", 10, 1, 272, 10]), $a(["full", 11, 1, 316, 10]), $a(["full", 12, 1, 364, 10]), $a(["full", 13, 1, 416, 10]), $a(["full", 14, 1, 470, 10]), $a(["full", 15, 1, 528, 10]), $a(["full", 16, 1, 588, 10]), $a(["full", 17, 1, 652, 10]), $a(["full", 18, 1, 720, 10]), $a(["full", 19, 1, 790, 10]), $a(["full", 20, 1, 864, 10]), $a(["full", 21, 1, 940, 10]), $a(["full", 22, 1, 1020, 10]), $a(["full", 23, 0, 920, 12]), $a(["full", 24, 0, 992, 12]), $a(["full", 25, 0, 1066, 12]), $a(["full", 26, 0, 1144, 12]), $a(["full", 27, 0, 1224, 12]), $a(["full", 28, 0, 1306, 12]), $a(["full", 29, 0, 1392, 12]), $a(["full", 30, 0, 1480, 12]), $a(["full", 31, 0, 1570, 12]), $a(["full", 32, 0, 1664, 12])]); //#20797 + $1.i = 0; //#20799 + for (;;) { //#20817 + $1.m = $get($1.metrics, $1.i); //#20801 + $1.frmt = $get($1.m, 0); //#20802 + $1.mlyr = $get($1.m, 1); //#20803 + $1.icap = $get($1.m, 2); //#20804 + $1.ncws = $get($1.m, 3); //#20805 + $1.bpcw = $get($1.m, 4); //#20806 + $1.numecw = ~~(Math.ceil($f((($1.ncws * $1.eclevel) / 100) + $1.ecaddchars))); //#20807 + if ($1.msgbits.length == 0) { //#20808 + $1.numecw = 0; //#20808 + } //#20808 + $1.numdcw = $f($1.ncws - $1.numecw); //#20809 + $1.okay = true; //#20810 + if ($ne($1.format, "unset") && $ne($1.format, $1.frmt)) { //#20811 + $1.okay = false; //#20811 + } //#20811 + if ($1.readerinit && ($1.icap != 1)) { //#20812 + $1.okay = false; //#20812 + } //#20812 + if (($1.layers != -1) && ($1.layers != $1.mlyr)) { //#20813 + $1.okay = false; //#20813 + } //#20813 + if ((~~Math.ceil($1.msgbits.length / $1.bpcw)) > $1.numdcw) { //#20814 + $1.okay = false; //#20814 + } //#20814 + if ($1.okay) { //#20815 + break; //#20815 + } //#20815 + $1.i = $1.i + 1; //#20816 + } //#20816 + $1.layers = $1.mlyr; //#20818 + $1.format = $1.frmt; //#20819 + $1.allzero = function() { + var _B6 = $k[--$j]; //#20822 + $k[$j++] = $eq(_B6, $geti("000000000000", 0, _B6.length)); //#20822 + }; //#20822 + $1.allones = function() { + var _B8 = $k[--$j]; //#20823 + $k[$j++] = $eq(_B8, $geti("111111111111", 0, _B8.length)); //#20823 + }; //#20823 + $1.cws = $a($1.ncws); //#20824 + $1.m = 0; //#20825 + $1.c = 0; //#20825 + for (;;) { //#20852 + if ($1.msgbits.length <= $1.m) { //#20827 + break; //#20827 + } //#20827 + if (($1.msgbits.length - $1.m) >= $1.bpcw) { //#20841 + $1.cwb = $geti($1.msgbits, $1.m, $f($1.bpcw - 1)); //#20829 + $1.cwf = $geti($1.msgbits, $f($f($1.m + $1.bpcw) - 1), 1); //#20830 + $k[$j++] = $1.cwb; //#20831 + $1.allzero(); //#20831 + if ($k[--$j]) { //#20831 + $1.cwf = "1"; //#20831 + $1.m = $1.m - 1; //#20831 + } //#20831 + $k[$j++] = $1.cwb; //#20832 + $1.allones(); //#20832 + if ($k[--$j]) { //#20832 + $1.cwf = "0"; //#20832 + $1.m = $1.m - 1; //#20832 + } //#20832 + var _BV = $s(12); //#20834 + $puti(_BV, 0, $1.cwb); //#20834 + $puti(_BV, $f($1.bpcw - 1), $1.cwf); //#20835 + $1.cwb = $geti(_BV, 0, $1.bpcw); //#20837 + } else { //#20841 + $1.cwb = $geti($1.msgbits, $1.m, $1.msgbits.length - $1.m); //#20839 + var _Bh = $strcpy($s(12), "111111111111"); //#20840 + $puti(_Bh, 0, $1.cwb); //#20840 + $1.cwb = $geti(_Bh, 0, $1.bpcw); //#20840 + $k[$j++] = $1.cwb; //#20841 + $1.allones(); //#20841 + if ($k[--$j]) { //#20841 + $puti($1.cwb, $1.cwb.length - 1, "0"); //#20841 + } //#20841 + } //#20841 + $1.cw = 0; //#20844 + for (var _Br = 0, _Bq = $f($1.bpcw - 1); _Br <= _Bq; _Br += 1) { //#20848 + $1.i = _Br; //#20846 + $1.cw = $f($1.cw + ((~~(Math.pow(2, $f($f($1.bpcw - $1.i) - 1)))) * $f($get($1.cwb, $1.i) - 48))); //#20847 + } //#20847 + $put($1.cws, $1.c, $1.cw); //#20849 + $1.m = $f($1.m + $1.bpcw); //#20850 + $1.c = $1.c + 1; //#20851 + } //#20851 + $1.cws = $geti($1.cws, 0, $1.c); //#20853 $1.rscodes = function() { - $1.rscws = $k[--$j]; - $1.rsnd = $1.rscws.length; - $k[$j++] = Infinity; - $forall($1.rscws); - for (var _MP = 0, _MQ = $1.ecpb; _MP < _MQ; _MP++) { - $k[$j++] = 0; - } - $1.rscws = $a(); - for (var _MU = 0, _MT = $1.rsnd - 1; _MU <= _MT; _MU += 1) { - $1.m = _MU; - $1.k = $get($1.rscws, $1.m); - for (var _Ma = 0, _MZ = $1.ecpb - 1; _Ma <= _MZ; _Ma += 1) { - $1.j = _Ma; - $k[$j++] = $1.rscws; - $k[$j++] = $1.m + $1.j + 1; - $k[$j++] = $get($1.coeffs, $1.ecpb - $1.j - 1); - $k[$j++] = $1.k; - $1.rsprod(); - var _Mn = $k[--$j]; - var _Mo = $k[--$j]; - $put($k[--$j], _Mo, $xo(_Mn, $get($1.rscws, $1.m + $1.j + 1))); - } - } - $k[$j++] = $geti($1.rscws, $1.rsnd, $1.ecpb); - }; - $1.dcwsb = $a($f($1.ecb1 + $1.ecb2)); - $1.ecwsb = $a($f($1.ecb1 + $1.ecb2)); - for (var _N2 = 0, _N1 = $f($1.ecb1 - 1); _N2 <= _N1; _N2 += 1) { - $1.i = _N2; - $put($1.dcwsb, $1.i, $geti($1.cws, $1.i * $1.dcpb, $1.dcpb)); - $k[$j++] = $1.ecwsb; - $k[$j++] = $1.i; - $k[$j++] = $get($1.dcwsb, $1.i); - $1.rscodes(); - var _NF = $k[--$j]; - var _NG = $k[--$j]; - $put($k[--$j], _NG, _NF); - } - for (var _NK = 0, _NJ = $f($1.ecb2 - 1); _NK <= _NJ; _NK += 1) { - $1.i = _NK; - $put($1.dcwsb, $f($1.ecb1 + $1.i), $geti($1.cws, $f($1.ecb1 * $1.dcpb + $1.i * ($1.dcpb + 1)), $1.dcpb + 1)); - $k[$j++] = $1.ecwsb; - $k[$j++] = $f($1.ecb1 + $1.i); - $k[$j++] = $get($1.dcwsb, $f($1.ecb1 + $1.i)); - $1.rscodes(); - var _Nc = $k[--$j]; - var _Nd = $k[--$j]; - $put($k[--$j], _Nd, _Nc); - } - $1.cws = $a($1.ncws); - $1.cw = 0; - for (var _Nj = 0, _Ni = $1.dcpb; _Nj <= _Ni; _Nj += 1) { - $1.i = _Nj; - for (var _Nn = 0, _Nm = $f($f($1.ecb1 + $1.ecb2) - 1); _Nn <= _Nm; _Nn += 1) { - $1.j = _Nn; - if ($1.i < $get($1.dcwsb, $1.j).length) { - $put($1.cws, $1.cw, $get($get($1.dcwsb, $1.j), $1.i)); - $1.cw = $1.cw + 1; - } - } - } - for (var _O2 = 0, _O1 = $1.ecpb - 1; _O2 <= _O1; _O2 += 1) { - $1.i = _O2; - for (var _O6 = 0, _O5 = $f($f($1.ecb1 + $1.ecb2) - 1); _O6 <= _O5; _O6 += 1) { - $1.j = _O6; - $put($1.cws, $1.cw, $get($get($1.ecwsb, $1.j), $1.i)); - $1.cw = $1.cw + 1; - } - } - if ($1.rbit > 0) { - $1.pad = $a($1.cws.length + 1); - $puti($1.pad, 0, $1.cws); - $put($1.pad, $1.pad.length - 1, 0); - $1.cws = $1.pad; - } - if ($1.lc4b) { - var _OO = $1.cws; - var _OP = $1.dcws; - $put(_OO, $f(_OP - 1), $get(_OO, $f(_OP - 1)) >>> 4); - for (var _OU = $f($1.dcws - 1), _OT = $1.ncws - 2; _OU <= _OT; _OU += 1) { - $1.i = _OU; - $put($1.cws, $1.i, ($get($1.cws, $1.i) & 15) << 4); - $put($1.cws, $1.i, $get($1.cws, $1.i + 1) >>> 4 & 15 | $get($1.cws, $1.i)); - } - $put($1.cws, $1.ncws - 1, ($get($1.cws, $1.ncws - 1) & 15) << 4); - } - var _Oo = $get($1.options, "debugecc") !== undefined; - if (_Oo) { - $k[$j++] = "bwipp.debugecc"; - $k[$j++] = $1.cws; - $0.raiseerror(); - } - $k[$j++] = Infinity; - for (var _Os = 0, _Ot = $1.rows * $1.cols; _Os < _Ot; _Os++) { - $k[$j++] = -1; - } - $1.pixs = $a(); - $1.qmv = function() { - var _Ow = $k[--$j]; - var _Ox = $k[--$j]; - $k[$j++] = $f(_Ox + _Ow * $1.cols); - }; - if ($eq($1.format, "full")) { - for (var _P1 = 8, _P0 = $f($1.cols - 9); _P1 <= _P0; _P1 += 1) { - $1.i = _P1; - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = 6; - $1.qmv(); - var _P5 = $k[--$j]; - $put($k[--$j], _P5, ($1.i + 1) % 2); - $k[$j++] = $1.pixs; - $k[$j++] = 6; - $k[$j++] = $1.i; - $1.qmv(); - var _PA = $k[--$j]; - $put($k[--$j], _PA, ($1.i + 1) % 2); - } - } - if ($eq($1.format, "micro")) { - for (var _PF = 8, _PE = $f($1.cols - 1); _PF <= _PE; _PF += 1) { - $1.i = _PF; - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = 0; - $1.qmv(); - var _PJ = $k[--$j]; - $put($k[--$j], _PJ, ($1.i + 1) % 2); - $k[$j++] = $1.pixs; - $k[$j++] = 0; - $k[$j++] = $1.i; - $1.qmv(); - var _PO = $k[--$j]; - $put($k[--$j], _PO, ($1.i + 1) % 2); - } - } - if ($eq($1.format, "rmqr")) { - for (var _PT = 3, _PS = $f($1.cols - 4); _PT <= _PS; _PT += 1) { - $1.i = _PT; - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = 0; - $1.qmv(); - var _PX = $k[--$j]; - $put($k[--$j], _PX, ($1.i + 1) % 2); - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = $f($1.rows - 1); - $1.qmv(); - var _Pd = $k[--$j]; - $put($k[--$j], _Pd, ($1.i + 1) % 2); - } - for (var _Ph = 3, _Pg = $f($1.rows - 4); _Ph <= _Pg; _Ph += 1) { - $1.i = _Ph; - $k[$j++] = $1.pixs; - $k[$j++] = 0; - $k[$j++] = $1.i; - $1.qmv(); - var _Pl = $k[--$j]; - $put($k[--$j], _Pl, ($1.i + 1) % 2); - $k[$j++] = $1.pixs; - $k[$j++] = $f($1.cols - 1); - $k[$j++] = $1.i; - $1.qmv(); - var _Pr = $k[--$j]; - $put($k[--$j], _Pr, ($1.i + 1) % 2); - } - for (var _Py = $f($1.asp2 - 1), _Pz = $f($1.asp3 - $1.asp2), _Px = $f($1.cols - 13); _Pz < 0 ? _Py >= _Px : _Py <= _Px; _Py += _Pz) { - $1.i = _Py; - for (var _Q2 = 3, _Q1 = $f($1.rows - 4); _Q2 <= _Q1; _Q2 += 1) { - $1.j = _Q2; - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.qmv(); - var _Q7 = $k[--$j]; - $put($k[--$j], _Q7, ($1.j + 1) % 2); - } - } - } - $1.fpat = $a([ $a([ 1, 1, 1, 1, 1, 1, 1, 0 ]), $a([ 1, 0, 0, 0, 0, 0, 1, 0 ]), $a([ 1, 0, 1, 1, 1, 0, 1, 0 ]), $a([ 1, 0, 1, 1, 1, 0, 1, 0 ]), $a([ 1, 0, 1, 1, 1, 0, 1, 0 ]), $a([ 1, 0, 0, 0, 0, 0, 1, 0 ]), $a([ 1, 1, 1, 1, 1, 1, 1, 0 ]), $a([ 0, 0, 0, 0, 0, 0, 0, 0 ]) ]); - $1.fsubpat = $a([ $a([ 1, 1, 1, 1, 1, 9, 9, 9 ]), $a([ 1, 0, 0, 0, 1, 9, 9, 9 ]), $a([ 1, 0, 1, 0, 1, 9, 9, 9 ]), $a([ 1, 0, 0, 0, 1, 9, 9, 9 ]), $a([ 1, 1, 1, 1, 1, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]) ]); - $1.fcorpat = $a([ $a([ 1, 1, 1, 9, 9, 9, 9, 9 ]), $a([ 1, 0, 9, 9, 9, 9, 9, 9 ]), $a([ 1, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]) ]); - $1.fnullpat = $a([ $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]) ]); - var _Qy = new Map([ [ "full", $a([ $1.fpat, $1.fpat, $1.fpat, $1.fnullpat ]) ], [ "micro", $a([ $1.fpat, $1.fnullpat, $1.fnullpat, $1.fnullpat ]) ], [ "rmqr", $a([ $1.fpat, $1.fcorpat, $1.fcorpat, $1.fsubpat ]) ] ]); - $1.fpats = $get(_Qy, $1.format); - for (var _R1 = 0; _R1 <= 7; _R1 += 1) { - $1.y = _R1; - for (var _R2 = 0; _R2 <= 7; _R2 += 1) { - $1.x = _R2; - $1.fpb0 = $get($get($get($1.fpats, 0), $1.y), $1.x); - $1.fpb1 = $get($get($get($1.fpats, 1), $1.y), $1.x); - $1.fpb2 = $get($get($get($1.fpats, 2), $1.y), $1.x); - $1.fpb3 = $get($get($get($1.fpats, 3), $1.y), $1.x); - if ($1.fpb0 != 9 && $1.y < $1.rows) { - $k[$j++] = $1.pixs; - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $1.qmv(); - var _RY = $k[--$j]; - $put($k[--$j], _RY, $1.fpb0); - } - if ($1.fpb1 != 9) { - $k[$j++] = $1.pixs; - $k[$j++] = $f($f($1.cols - $1.x) - 1); - $k[$j++] = $1.y; - $1.qmv(); - var _Rg = $k[--$j]; - $put($k[--$j], _Rg, $1.fpb1); - } - if ($1.fpb2 != 9) { - $k[$j++] = $1.pixs; - $k[$j++] = $1.x; - $k[$j++] = $f($f($1.rows - $1.y) - 1); - $1.qmv(); - var _Ro = $k[--$j]; - $put($k[--$j], _Ro, $1.fpb2); - } - if ($1.fpb3 != 9) { - $k[$j++] = $1.pixs; - $k[$j++] = $f($f($1.cols - $1.x) - 1); - $k[$j++] = $f($f($1.rows - $1.y) - 1); - $1.qmv(); - var _Rx = $k[--$j]; - $put($k[--$j], _Rx, $1.fpb3); - } - } - } - $1.putalgnpat = function() { - $1.py = $k[--$j]; - $1.px = $k[--$j]; - for (var _S1 = 0; _S1 <= 4; _S1 += 1) { - $1.pb = _S1; - for (var _S2 = 0; _S2 <= 4; _S2 += 1) { - $1.pa = _S2; - $1.algnb = $get($get($1.algnpat, $1.pb), $1.pa); - if ($1.algnb != 9) { - $k[$j++] = $1.pixs; - $k[$j++] = $f($1.px + $1.pa); - $k[$j++] = $f($1.py + $1.pb); - $1.qmv(); - var _SF = $k[--$j]; - $put($k[--$j], _SF, $1.algnb); - } - } - } - }; - if ($eq($1.format, "full")) { - $1.algnpat = $a([ $a([ 1, 1, 1, 1, 1 ]), $a([ 1, 0, 0, 0, 1 ]), $a([ 1, 0, 1, 0, 1 ]), $a([ 1, 0, 0, 0, 1 ]), $a([ 1, 1, 1, 1, 1 ]) ]); - for (var _ST = $f($1.asp2 - 2), _SU = $f($1.asp3 - $1.asp2), _SS = $f($1.cols - 13); _SU < 0 ? _ST >= _SS : _ST <= _SS; _ST += _SU) { - $1.i = _ST; - $k[$j++] = $1.i; - $k[$j++] = 4; - $1.putalgnpat(); - $k[$j++] = 4; - $k[$j++] = $1.i; - $1.putalgnpat(); - } - for (var _Sc = $f($1.asp2 - 2), _Sd = $f($1.asp3 - $1.asp2), _Sb = $f($1.cols - 9); _Sd < 0 ? _Sc >= _Sb : _Sc <= _Sb; _Sc += _Sd) { - $1.x = _Sc; - for (var _Sj = $f($1.asp2 - 2), _Sk = $f($1.asp3 - $1.asp2), _Si = $f($1.rows - 9); _Sk < 0 ? _Sj >= _Si : _Sj <= _Si; _Sj += _Sk) { - $1.y = _Sj; - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $1.putalgnpat(); - } - } - } - if ($eq($1.format, "rmqr")) { - $1.algnpat = $a([ $a([ 1, 1, 1, 9, 9 ]), $a([ 1, 0, 1, 9, 9 ]), $a([ 1, 1, 1, 9, 9 ]), $a([ 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9 ]) ]); - for (var _Sz = $f($1.asp2 - 2), _T0 = $f($1.asp3 - $1.asp2), _Sy = $f($1.cols - 13); _T0 < 0 ? _Sz >= _Sy : _Sz <= _Sy; _Sz += _T0) { - $1.i = _Sz; - $k[$j++] = $1.i; - $k[$j++] = 0; - $1.putalgnpat(); - $k[$j++] = $1.i; - $k[$j++] = $f($1.rows - 3); - $1.putalgnpat(); - } - } - var _W1 = new Map([ [ "full", $a([ $a([ $a([ 0, 8 ]), $a([ 8, $f($1.cols - 1) ]) ]), $a([ $a([ 1, 8 ]), $a([ 8, $f($1.cols - 2) ]) ]), $a([ $a([ 2, 8 ]), $a([ 8, $f($1.cols - 3) ]) ]), $a([ $a([ 3, 8 ]), $a([ 8, $f($1.cols - 4) ]) ]), $a([ $a([ 4, 8 ]), $a([ 8, $f($1.cols - 5) ]) ]), $a([ $a([ 5, 8 ]), $a([ 8, $f($1.cols - 6) ]) ]), $a([ $a([ 7, 8 ]), $a([ 8, $f($1.cols - 7) ]) ]), $a([ $a([ 8, 8 ]), $a([ $f($1.cols - 8), 8 ]) ]), $a([ $a([ 8, 7 ]), $a([ $f($1.cols - 7), 8 ]) ]), $a([ $a([ 8, 5 ]), $a([ $f($1.cols - 6), 8 ]) ]), $a([ $a([ 8, 4 ]), $a([ $f($1.cols - 5), 8 ]) ]), $a([ $a([ 8, 3 ]), $a([ $f($1.cols - 4), 8 ]) ]), $a([ $a([ 8, 2 ]), $a([ $f($1.cols - 3), 8 ]) ]), $a([ $a([ 8, 1 ]), $a([ $f($1.cols - 2), 8 ]) ]), $a([ $a([ 8, 0 ]), $a([ $f($1.cols - 1), 8 ]) ]) ]) ], [ "micro", $a([ $a([ $a([ 1, 8 ]) ]), $a([ $a([ 2, 8 ]) ]), $a([ $a([ 3, 8 ]) ]), $a([ $a([ 4, 8 ]) ]), $a([ $a([ 5, 8 ]) ]), $a([ $a([ 6, 8 ]) ]), $a([ $a([ 7, 8 ]) ]), $a([ $a([ 8, 8 ]) ]), $a([ $a([ 8, 7 ]) ]), $a([ $a([ 8, 6 ]) ]), $a([ $a([ 8, 5 ]) ]), $a([ $a([ 8, 4 ]) ]), $a([ $a([ 8, 3 ]) ]), $a([ $a([ 8, 2 ]) ]), $a([ $a([ 8, 1 ]) ]) ]) ], [ "rmqr", $a([ $a([ $a([ 11, 3 ]), $a([ $f($1.cols - 3), $f($1.rows - 6) ]) ]), $a([ $a([ 11, 2 ]), $a([ $f($1.cols - 4), $f($1.rows - 6) ]) ]), $a([ $a([ 11, 1 ]), $a([ $f($1.cols - 5), $f($1.rows - 6) ]) ]), $a([ $a([ 10, 5 ]), $a([ $f($1.cols - 6), $f($1.rows - 2) ]) ]), $a([ $a([ 10, 4 ]), $a([ $f($1.cols - 6), $f($1.rows - 3) ]) ]), $a([ $a([ 10, 3 ]), $a([ $f($1.cols - 6), $f($1.rows - 4) ]) ]), $a([ $a([ 10, 2 ]), $a([ $f($1.cols - 6), $f($1.rows - 5) ]) ]), $a([ $a([ 10, 1 ]), $a([ $f($1.cols - 6), $f($1.rows - 6) ]) ]), $a([ $a([ 9, 5 ]), $a([ $f($1.cols - 7), $f($1.rows - 2) ]) ]), $a([ $a([ 9, 4 ]), $a([ $f($1.cols - 7), $f($1.rows - 3) ]) ]), $a([ $a([ 9, 3 ]), $a([ $f($1.cols - 7), $f($1.rows - 4) ]) ]), $a([ $a([ 9, 2 ]), $a([ $f($1.cols - 7), $f($1.rows - 5) ]) ]), $a([ $a([ 9, 1 ]), $a([ $f($1.cols - 7), $f($1.rows - 6) ]) ]), $a([ $a([ 8, 5 ]), $a([ $f($1.cols - 8), $f($1.rows - 2) ]) ]), $a([ $a([ 8, 4 ]), $a([ $f($1.cols - 8), $f($1.rows - 3) ]) ]), $a([ $a([ 8, 3 ]), $a([ $f($1.cols - 8), $f($1.rows - 4) ]) ]), $a([ $a([ 8, 2 ]), $a([ $f($1.cols - 8), $f($1.rows - 5) ]) ]), $a([ $a([ 8, 1 ]), $a([ $f($1.cols - 8), $f($1.rows - 6) ]) ]) ]) ] ]); - $1.formatmap = $get(_W1, $1.format); - $forall($1.formatmap, function() { - $forall($k[--$j], function() { - $forall($k[--$j]); - $1.qmv(); - $put($1.pixs, $k[--$j], 1); - }); - }); - if ($eq($1.format, "full") && $1.cols >= 45) { - $1.versionmap = $a([ $a([ $a([ $f($1.cols - 9), 5 ]), $a([ 5, $f($1.cols - 9) ]) ]), $a([ $a([ $f($1.cols - 10), 5 ]), $a([ 5, $f($1.cols - 10) ]) ]), $a([ $a([ $f($1.cols - 11), 5 ]), $a([ 5, $f($1.cols - 11) ]) ]), $a([ $a([ $f($1.cols - 9), 4 ]), $a([ 4, $f($1.cols - 9) ]) ]), $a([ $a([ $f($1.cols - 10), 4 ]), $a([ 4, $f($1.cols - 10) ]) ]), $a([ $a([ $f($1.cols - 11), 4 ]), $a([ 4, $f($1.cols - 11) ]) ]), $a([ $a([ $f($1.cols - 9), 3 ]), $a([ 3, $f($1.cols - 9) ]) ]), $a([ $a([ $f($1.cols - 10), 3 ]), $a([ 3, $f($1.cols - 10) ]) ]), $a([ $a([ $f($1.cols - 11), 3 ]), $a([ 3, $f($1.cols - 11) ]) ]), $a([ $a([ $f($1.cols - 9), 2 ]), $a([ 2, $f($1.cols - 9) ]) ]), $a([ $a([ $f($1.cols - 10), 2 ]), $a([ 2, $f($1.cols - 10) ]) ]), $a([ $a([ $f($1.cols - 11), 2 ]), $a([ 2, $f($1.cols - 11) ]) ]), $a([ $a([ $f($1.cols - 9), 1 ]), $a([ 1, $f($1.cols - 9) ]) ]), $a([ $a([ $f($1.cols - 10), 1 ]), $a([ 1, $f($1.cols - 10) ]) ]), $a([ $a([ $f($1.cols - 11), 1 ]), $a([ 1, $f($1.cols - 11) ]) ]), $a([ $a([ $f($1.cols - 9), 0 ]), $a([ 0, $f($1.cols - 9) ]) ]), $a([ $a([ $f($1.cols - 10), 0 ]), $a([ 0, $f($1.cols - 10) ]) ]), $a([ $a([ $f($1.cols - 11), 0 ]), $a([ 0, $f($1.cols - 11) ]) ]) ]); - } else { - $1.versionmap = $a([]); - } - var _Xf = $1.versionmap; - for (var _Xg = 0, _Xh = _Xf.length; _Xg < _Xh; _Xg++) { - $forall($get(_Xf, _Xg), function() { - $forall($k[--$j]); - $1.qmv(); - $put($1.pixs, $k[--$j], 0); - }); - } - if ($eq($1.format, "full")) { - $k[$j++] = $1.pixs; - $k[$j++] = 8; - $k[$j++] = $f($1.rows - 8); - $1.qmv(); - var _Xp = $k[--$j]; - $put($k[--$j], _Xp, 0); - } - var _Y9 = $a([ function() { - var _Xr = $k[--$j]; - var _Xs = $k[--$j]; - $k[$j++] = $f(_Xs + _Xr) % 2; - }, function() { - var _Xt = $k[--$j]; - var _Xu = $k[--$j]; - $k[$j++] = _Xt; - $k[$j++] = _Xu; - $j--; - var _Xv = $k[--$j]; - $k[$j++] = _Xv % 2; - }, function() { - $j--; - var _Xw = $k[--$j]; - $k[$j++] = _Xw % 3; - }, function() { - var _Xx = $k[--$j]; - var _Xy = $k[--$j]; - $k[$j++] = $f(_Xy + _Xx) % 3; - }, function() { - var _Xz = $k[--$j]; - var _Y0 = $k[--$j]; - $k[$j++] = (~~(_Xz / 2) + ~~(_Y0 / 3)) % 2; - }, function() { - var _Y1 = $k[--$j]; - var _Y3 = $k[--$j] * _Y1; - $k[$j++] = $f(_Y3 % 2 + _Y3 % 3); - }, function() { - var _Y4 = $k[--$j]; - var _Y6 = $k[--$j] * _Y4; - $k[$j++] = $f(_Y6 % 2 + _Y6 % 3) % 2; - }, function() { - var _Y7 = $k[--$j]; - var _Y8 = $k[--$j]; - $k[$j++] = $f(_Y8 * _Y7 % 3 + $f(_Y8 + _Y7) % 2) % 2; - } ]); - var _YK = $a([ function() { - var _YA = $k[--$j]; - var _YB = $k[--$j]; - $k[$j++] = _YA; - $k[$j++] = _YB; - $j--; - var _YC = $k[--$j]; - $k[$j++] = _YC % 2; - }, function() { - var _YD = $k[--$j]; - var _YE = $k[--$j]; - $k[$j++] = (~~(_YD / 2) + ~~(_YE / 3)) % 2; - }, function() { - var _YF = $k[--$j]; - var _YH = $k[--$j] * _YF; - $k[$j++] = $f(_YH % 2 + _YH % 3) % 2; - }, function() { - var _YI = $k[--$j]; - var _YJ = $k[--$j]; - $k[$j++] = $f(_YJ * _YI % 3 + $f(_YJ + _YI) % 2) % 2; - } ]); - var _YN = $a([ function() { - var _YL = $k[--$j]; - var _YM = $k[--$j]; - $k[$j++] = (~~(_YL / 2) + ~~(_YM / 3)) % 2; - } ]); - var _YO = new Map([ [ "full", _Y9 ], [ "micro", _YK ], [ "rmqr", _YN ] ]); - $1.maskfuncs = $get(_YO, $1.format); - if ($1.mask != -1) { - $1.maskfuncs = $a([ $get($1.maskfuncs, $1.mask - 1) ]); - $1.bestmaskval = $1.mask - 1; - } - $1.masks = $a($1.maskfuncs.length); - for (var _Yb = 0, _Ya = $1.masks.length - 1; _Yb <= _Ya; _Yb += 1) { - $1.m = _Yb; - $1.mask = $a($1.rows * $1.cols); - for (var _Yh = 0, _Yg = $f($1.rows - 1); _Yh <= _Yg; _Yh += 1) { - $1.j = _Yh; - for (var _Yk = 0, _Yj = $f($1.cols - 1); _Yk <= _Yj; _Yk += 1) { - $1.i = _Yk; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - if ($get($1.maskfuncs, $1.m)() === true) { - break; - } - var _Yq = $k[--$j]; - $k[$j++] = _Yq == 0; - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.qmv(); - var _Yu = $k[--$j]; - var _Yw = $get($k[--$j], _Yu); - var _Yx = $k[--$j]; - var _Yy = _Yx && _Yw == -1 ? 1 : 0; - $k[$j++] = _Yy; - $k[$j++] = $1.mask; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.qmv(); - var _Z2 = $k[--$j]; - var _Z3 = $k[--$j]; - $put(_Z3, _Z2, $k[--$j]); - } - } - $put($1.masks, $1.m, $1.mask); - } - var _ZA = $ne($1.format, "rmqr") ? 1 : 2; - $1.posx = $f($1.cols - _ZA); - $1.posy = $f($1.rows - 1); - $1.dir = -1; - $1.col = 1; - $1.num = 0; - for (;;) { - if ($1.posx < 0) { - break; - } - $k[$j++] = $1.pixs; - $k[$j++] = $1.posx; - $k[$j++] = $1.posy; - $1.qmv(); - var _ZG = $k[--$j]; - if ($get($k[--$j], _ZG) == -1) { - var _ZL = $get($1.cws, ~~($1.num / 8)); - var _ZN = -(7 - $1.num % 8); - $k[$j++] = (_ZN < 0 ? _ZL >>> -_ZN : _ZL << _ZN) & 1; - $k[$j++] = $1.pixs; - $k[$j++] = $1.posx; - $k[$j++] = $1.posy; - $1.qmv(); - var _ZR = $k[--$j]; - var _ZS = $k[--$j]; - $put(_ZS, _ZR, $k[--$j]); - $1.num = $1.num + 1; - } - if ($1.col == 1) { - $1.col = 0; - $1.posx = $f($1.posx - 1); - } else { - $1.col = 1; - $1.posx = $f($1.posx + 1); - $1.posy = $f($1.posy + $1.dir); - if ($1.posy < 0 || $1.posy >= $1.rows) { - $1.dir = $1.dir * -1; - $1.posy = $f($1.posy + $1.dir); - $1.posx = $f($1.posx - 2); - if ($eq($1.format, "full") && $1.posx == 6) { - $1.posx = $f($1.posx - 1); - } - } - } - } - $1.evalfulln1n3 = function() { - $1.scrle = $k[--$j]; - $k[$j++] = "scr1"; - $k[$j++] = 0; - $forall($1.scrle, function() { - var _Zm = $k[--$j]; - $k[$j++] = _Zm; - if (_Zm >= 5) { - var _Zn = $k[--$j]; - var _Zp = $f($f($k[--$j] + _Zn) - 2); - $k[$j++] = _Zp; - $k[$j++] = _Zp; - } - $j--; - }); - var _Zq = $k[--$j]; - $1[$k[--$j]] = _Zq; - $1.scr3 = 0; - for (var _Zu = 3, _Zt = $1.scrle.length - 3; _Zu <= _Zt; _Zu += 2) { - $1.j = _Zu; - if ($get($1.scrle, $1.j) % 3 == 0) { - $1.fact = ~~($get($1.scrle, $1.j) / 3); - var _a3 = $geti($1.scrle, $1.j - 2, 5); - for (var _a4 = 0, _a5 = _a3.length; _a4 < _a5; _a4++) { - $k[$j++] = $get(_a3, _a4) == $1.fact; - } - var _a8 = $k[--$j]; - var _a9 = $k[--$j]; - var _aA = $k[--$j]; - $k[$j++] = $an(_a9, _a8); - $k[$j++] = _aA; - $j--; - var _aB = $k[--$j]; - var _aC = $k[--$j]; - var _aD = $k[--$j]; - if (_aD && (_aC && _aB)) { - if ($1.j == 3 || $1.j + 4 >= $1.scrle.length) { - $1.scr3 = $1.scr3 + 40; - } else { - if ($get($1.scrle, $1.j - 3) >= 4 || $get($1.scrle, $1.j + 3) >= 4) { - $1.scr3 = $1.scr3 + 40; - } - } - } - } - } - $k[$j++] = $1.scr1; - $k[$j++] = $1.scr3; - }; - $1.evalfull = function() { - $1.sym = $k[--$j]; - $1.n1 = 0; - $1.n2 = 0; - $1.n3 = 0; - $1.rle = $a($f($1.cols + 1)); - $1.lastpairs = $a($1.cols); - $1.thispairs = $a($1.cols); - $1.colsadd1 = $f($1.cols + 1); - for (var _ab = 0, _aa = $f($1.cols - 1); _ab <= _aa; _ab += 1) { - $1.i = _ab; - $k[$j++] = Infinity; - var _ad = $1.cols; - $k[$j++] = 0; - $k[$j++] = 0; - for (var _af = $1.i, _ag = _ad, _ae = $f(_ad * _ad - 1); _ag < 0 ? _af >= _ae : _af <= _ae; _af += _ag) { - var _ai = $get($1.sym, _af); - var _aj = $k[--$j]; - $k[$j++] = _ai; - if ($eq(_aj, _ai)) { - var _ak = $k[--$j]; - var _al = $k[--$j]; - $k[$j++] = $f(_al + 1); - $k[$j++] = _ak; - } else { - var _am = $k[--$j]; - $k[$j++] = 1; - $k[$j++] = _am; - } - } - $j--; - var _ao = $counttomark() + 2; - $astore($geti($1.rle, 0, _ao - 2)); - $1.evalfulln1n3(); - $1.n3 = $f($k[--$j] + $1.n3); - $1.n1 = $f($k[--$j] + $1.n1); - $j--; - $1.symrow = $geti($1.sym, $1.i * $1.cols, $1.cols); - $k[$j++] = Infinity; - var _az = $1.symrow; - $k[$j++] = 0; - $k[$j++] = 0; - for (var _b0 = 0, _b1 = _az.length; _b0 < _b1; _b0++) { - var _b2 = $get(_az, _b0); - var _b3 = $k[--$j]; - $k[$j++] = _b2; - if ($eq(_b3, _b2)) { - var _b4 = $k[--$j]; - var _b5 = $k[--$j]; - $k[$j++] = $f(_b5 + 1); - $k[$j++] = _b4; - } else { - var _b6 = $k[--$j]; - $k[$j++] = 1; - $k[$j++] = _b6; - } - } - $j--; - var _b8 = $counttomark() + 2; - $astore($geti($1.rle, 0, _b8 - 2)); - $1.evalfulln1n3(); - $1.n3 = $f($k[--$j] + $1.n3); - $1.n1 = $f($k[--$j] + $1.n1); - $j--; - var _bE = $1.thispairs; - $1.thispairs = $1.lastpairs; - $1.lastpairs = _bE; - var _bI = $get($1.symrow, 0) == 1 ? 0 : 1; - var _bJ = $1.symrow; - $k[$j++] = _bI; - for (var _bK = 0, _bL = _bJ.length; _bK < _bL; _bK++) { - var _bM = $get(_bJ, _bK); - var _bN = $k[--$j]; - $k[$j++] = $f(_bN + _bM); - $k[$j++] = _bM; - } - $j--; - $astore($1.thispairs); - $j--; - if ($1.i > 0) { - $k[$j++] = Infinity; - $aload($1.lastpairs); - $aload($1.thispairs); - $k[$j++] = $1.n2; - for (var _bU = 0, _bV = $1.cols; _bU < _bV; _bU++) { - var _bW = $k[--$j]; - var _bX = $k[--$j]; - $k[$j++] = _bW; - $k[$j++] = _bX; - var _bZ = $k[$j - 1 - $1.colsadd1]; - if (($f($k[--$j] + _bZ) & 3) == 0) { - var _bb = $k[--$j]; - $k[$j++] = $f(_bb + 3); - } - } - $1.n2 = $k[--$j]; - $cleartomark(); - } - } - $k[$j++] = "dark"; - $k[$j++] = 0; - $forall($1.sym, function() { - var _be = $k[--$j]; - var _bf = $k[--$j]; - $k[$j++] = $f(_bf + _be); - }); - var _bg = $k[--$j]; - $1[$k[--$j]] = _bg; - var _bj = $1.cols; - $1.n4 = ~~(Math.abs($f($1.dark * 100 / (_bj * _bj) - 50)) / 5) * 10; - $k[$j++] = $f($f($f($1.n1 + $1.n2) + $1.n3) + $1.n4); - }; - $1.evalmicro = function() { - $1.sym = $k[--$j]; - $1.dkrhs = 0; - $1.dkbot = 0; - for (var _br = 1, _bq = $f($1.cols - 1); _br <= _bq; _br += 1) { - $1.i = _br; - $k[$j++] = "dkrhs"; - $k[$j++] = $1.dkrhs; - $k[$j++] = $1.sym; - $k[$j++] = $f($1.cols - 1); - $k[$j++] = $1.i; - $1.qmv(); - var _bw = $k[--$j]; - var _by = $get($k[--$j], _bw); - var _bz = $k[--$j]; - $1[$k[--$j]] = $f(_bz + _by); - $k[$j++] = "dkbot"; - $k[$j++] = $1.dkbot; - $k[$j++] = $1.sym; - $k[$j++] = $1.i; - $k[$j++] = $f($1.cols - 1); - $1.qmv(); - var _c5 = $k[--$j]; - var _c7 = $get($k[--$j], _c5); - var _c8 = $k[--$j]; - $1[$k[--$j]] = $f(_c8 + _c7); - } - if ($1.dkrhs <= $1.dkbot) { - $k[$j++] = -($1.dkrhs * 16 + $1.dkbot); - } else { - $k[$j++] = -($1.dkbot * 16 + $1.dkrhs); - } - }; - $1.bestscore = 999999999; - for (var _cI = 0, _cH = $1.masks.length - 1; _cI <= _cH; _cI += 1) { - $1.m = _cI; - $1.masksym = $a($1.rows * $1.cols); - for (var _cP = 0, _cO = $f($1.rows * $1.cols - 1); _cP <= _cO; _cP += 1) { - $1.i = _cP; - $put($1.masksym, $1.i, $xo($get($1.pixs, $1.i), $get($get($1.masks, $1.m), $1.i))); - } - if ($1.masks.length != 1) { - if ($eq($1.format, "full")) { - $k[$j++] = $1.masksym; - $1.evalfull(); - $1.score = $k[--$j]; - } else { - $k[$j++] = $1.masksym; - $1.evalmicro(); - $1.score = $k[--$j]; - } - if ($1.score < $1.bestscore) { - $1.bestsym = $1.masksym; - $1.bestmaskval = $1.m; - $1.bestscore = $1.score; - } - } else { - $1.bestsym = $1.masksym; - } - } - $1.pixs = $1.bestsym; - if ($eq($1.format, "full")) { - $k[$j++] = $1.pixs; - $k[$j++] = 8; - $k[$j++] = $f($1.cols - 8); - $1.qmv(); - var _cq = $k[--$j]; - $put($k[--$j], _cq, 1); - } - if ($eq($1.format, "full")) { - $1.fmtvals = $a([ 21522, 20773, 24188, 23371, 17913, 16590, 20375, 19104, 30660, 29427, 32170, 30877, 26159, 25368, 27713, 26998, 5769, 5054, 7399, 6608, 1890, 597, 3340, 2107, 13663, 12392, 16177, 14854, 9396, 8579, 11994, 11245 ]); - $k[$j++] = "ecid"; - $search("MLHQ", $1.eclevel); - $j--; - var _cv = $k[--$j]; - var _cw = $k[--$j]; - $k[$j++] = _cv.length; - $k[$j++] = _cw; - $j--; - var _cx = $k[--$j]; - var _cy = $k[--$j]; - $k[$j++] = _cx; - $k[$j++] = _cy; - $j--; - var _cz = $k[--$j]; - $1[$k[--$j]] = _cz; - $1.fmtval = $get($1.fmtvals, ($1.ecid << 3) + $1.bestmaskval); - for (var _d7 = 0, _d6 = $1.formatmap.length - 1; _d7 <= _d6; _d7 += 1) { - $1.i = _d7; - $forall($get($1.formatmap, $1.i), function() { - var _dC = $k[--$j]; - $k[$j++] = $1.pixs; - $aload(_dC); - $1.qmv(); - var _dD = $1.fmtval; - var _dF = -(14 - $1.i); - var _dG = $k[--$j]; - $put($k[--$j], _dG, (_dF < 0 ? _dD >>> -_dF : _dD << _dF) & 1); - }); - } - } - if ($eq($1.format, "micro")) { - $1.fmtvals = $a([ 17477, 16754, 20011, 19228, 21934, 20633, 24512, 23287, 26515, 25252, 28157, 26826, 30328, 29519, 31766, 31009, 1758, 1001, 3248, 2439, 5941, 4610, 7515, 6252, 9480, 8255, 12134, 10833, 13539, 12756, 16013, 15290 ]); - $1.symid = $get($get($a([ $a([ 0 ]), $a([ 1, 2 ]), $a([ 3, 4 ]), $a([ 5, 6, 7 ]) ]), ~~($f($1.cols - 11) / 2)), $1.eclval); - $1.fmtval = $get($1.fmtvals, ($1.symid << 2) + $1.bestmaskval); - for (var _dZ = 0, _dY = $1.formatmap.length - 1; _dZ <= _dY; _dZ += 1) { - $1.i = _dZ; - $k[$j++] = $1.pixs; - $aload($get($get($1.formatmap, $1.i), 0)); - $1.qmv(); - var _df = $1.fmtval; - var _dh = -(14 - $1.i); - var _di = $k[--$j]; - $put($k[--$j], _di, (_dh < 0 ? _df >>> -_dh : _df << _dh) & 1); - } - } - if ($eq($1.format, "rmqr")) { - $1.fmtvals1 = $a([ 129714, 124311, 121821, 115960, 112748, 108361, 104707, 99878, 98062, 90155, 89697, 82244, 81360, 74485, 72895, 66458, 61898, 61167, 53413, 53120, 45844, 44081, 37499, 36190, 29814, 27475, 21785, 19004, 13992, 10637, 6087, 2274, 258919, 257090, 250376, 249133, 242105, 241308, 233686, 233459, 227035, 223742, 219060, 215185, 209925, 207648, 202090, 199247, 194591, 190266, 186736, 181845, 178881, 173540, 170926, 165003, 163235, 156294, 154828, 148457, 147325, 139352, 138770, 131383 ]); - $1.fmtvals2 = $a([ 133755, 136542, 142100, 144433, 149669, 153472, 158154, 161519, 167879, 168162, 175784, 176525, 183577, 184892, 191606, 193363, 196867, 204326, 204908, 212809, 213981, 220408, 221874, 228759, 230591, 236442, 239056, 244469, 247393, 252228, 255758, 260139, 942, 7307, 8897, 15844, 16752, 24149, 24607, 32570, 34322, 39223, 42877, 47192, 50380, 56297, 58787, 64134, 67798, 71667, 76217, 79516, 84488, 87341, 93031, 95298, 101738, 102991, 109573, 111392, 118708, 118929, 126683, 127486 ]); - $k[$j++] = "fmtvalu"; - $search("MH", $1.eclevel); - $j--; - var _do = $k[--$j]; - var _dp = $k[--$j]; - $k[$j++] = _do.length; - $k[$j++] = _dp; - $j--; - var _dq = $k[--$j]; - var _dr = $k[--$j]; - $k[$j++] = _dq; - $k[$j++] = _dr; - $j--; - var _ds = $k[--$j]; - $1[$k[--$j]] = (_ds << 5) + $1.verind; - $1.fmtval1 = $get($1.fmtvals1, $1.fmtvalu); - $1.fmtval2 = $get($1.fmtvals2, $1.fmtvalu); - for (var _e3 = 0, _e2 = $1.formatmap.length - 1; _e3 <= _e2; _e3 += 1) { - $1.i = _e3; - $k[$j++] = $1.pixs; - $aload($get($get($1.formatmap, $1.i), 0)); - $1.qmv(); - var _e9 = $1.fmtval1; - var _eB = -(17 - $1.i); - var _eC = $k[--$j]; - $put($k[--$j], _eC, (_eB < 0 ? _e9 >>> -_eB : _e9 << _eB) & 1); - $k[$j++] = $1.pixs; - $aload($get($get($1.formatmap, $1.i), 1)); - $1.qmv(); - var _eJ = $1.fmtval2; - var _eL = -(17 - $1.i); - var _eM = $k[--$j]; - $put($k[--$j], _eM, (_eL < 0 ? _eJ >>> -_eL : _eJ << _eL) & 1); - } - } - if ($eq($1.format, "full") && $1.cols >= 45) { - $1.vervals = $a([ 31892, 34236, 39577, 42195, 48118, 51042, 55367, 58893, 63784, 68472, 70749, 76311, 79154, 84390, 87683, 92361, 96236, 102084, 102881, 110507, 110734, 117786, 119615, 126325, 127568, 133589, 136957, 141498, 145311, 150283, 152622, 158308, 161089, 167017 ]); - $1.verval = $get($1.vervals, ~~($f($1.cols - 17) / 4) - 7); - for (var _eW = 0, _eV = $1.versionmap.length - 1; _eW <= _eV; _eW += 1) { - $1.i = _eW; - $forall($get($1.versionmap, $1.i), function() { - var _eb = $k[--$j]; - $k[$j++] = $1.pixs; - $forall(_eb); - $1.qmv(); - var _ec = $1.verval; - var _ee = -(17 - $1.i); - var _ef = $k[--$j]; - $put($k[--$j], _ef, (_ee < 0 ? _ec >>> -_ee : _ec << _ee) & 1); - }); - } - } - var _en = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", $1.cols ], [ "pixy", $1.rows ], [ "height", $1.rows * 2 / 72 ], [ "width", $1.cols * 2 / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _en; - if (!$1.dontdraw) { - $0.renmatrix(); - } - }; - $0.swissqrcode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.parse = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - var _6 = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _6; - $k[$j++] = "barcode"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _9 = $k[--$j]; - $1[$k[--$j]] = _9; - $1.barlen = $1.barcode.length; - delete $1.options["parse"]; - if ($1.barcode.length > 997) { - $k[$j++] = "bwipp.swissqrcodeBadLength"; - $k[$j++] = "Swiss QR Code input must not exceed 997 digits"; - $0.raiseerror(); - } - $put($1.options, "dontdraw", true); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.qrcode(); - var _H = $k[--$j]; - $1[$k[--$j]] = _H; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $$.save(); - var _N = $$.currpos(); - $$.translate(_N.x, _N.y); - var _O = 72 / 25.4; - $$.scale(_O, _O); - $$.save(); - $$.newpath(); - $$.moveto(0, 0); - $$.lineto(46, 0); - $$.lineto(46, 46); - $$.lineto(0, 46); - $$.closepath(); - $$.moveto(19.5, 19.5); - $$.lineto(19.5, 26.5); - $$.lineto(26.5, 26.5); - $$.lineto(26.5, 19.5); - $$.closepath(); - $$.clip(); - $$.save(); - $$.moveto(0, 0); - var _R = 46 / $get($1.args, "pixx") / 2; - $$.scale(_R, _R); - $0.renmatrix(); - $$.restore(); - $$.restore(); - $$.translate(19.5, 19.5); - var _S = 7 / 83; - $$.scale(_S, _S); - $$.newpath(); - $$.moveto(6, 6); - $$.lineto(6, 77); - $$.lineto(77, 77); - $$.lineto(77, 6); - $$.closepath(); - $$.moveto(49, 18); - $$.lineto(49, 34); - $$.lineto(65, 34); - $$.lineto(65, 49); - $$.lineto(49, 49); - $$.lineto(49, 65); - $$.lineto(34, 65); - $$.lineto(34, 49); - $$.lineto(18, 49); - $$.lineto(18, 34); - $$.lineto(34, 34); - $$.lineto(34, 18); - $$.closepath(); - $$.setrgbcolor(0, 0, 0); - $$.fill(); - $$.restore(); - } + $1.rspm = $k[--$j]; //#20858 + $1.rsgf = $k[--$j]; //#20859 + $1.rsnc = $k[--$j]; //#20860 + $1.rscws = $k[--$j]; //#20861 + $k[$j++] = Infinity; //#20864 + $k[$j++] = 1; //#20864 + for (var _CC = 0, _CD = $f($1.rsgf - 1); _CC < _CD; _CC++) { //#20864 + var _CE = $k[--$j]; //#20864 + var _CF = _CE * 2; //#20864 + $k[$j++] = _CE; //#20864 + $k[$j++] = _CF; //#20864 + if (_CF >= $1.rsgf) { //#20864 + var _CI = $k[--$j]; //#20864 + $k[$j++] = $xo(_CI, $1.rspm); //#20864 + } //#20864 + } //#20864 + $1.rsalog = $a(); //#20864 + $1.rslog = $a($1.rsgf); //#20865 + for (var _CO = 1, _CN = $f($1.rsgf - 1); _CO <= _CN; _CO += 1) { //#20866 + $put($1.rslog, $get($1.rsalog, _CO), _CO); //#20866 + } //#20866 + $1.rsprod = function() { + var _CS = $k[--$j]; //#20870 + var _CT = $k[--$j]; //#20870 + $k[$j++] = _CT; //#20874 + $k[$j++] = _CS; //#20874 + if ((_CS != 0) && (_CT != 0)) { //#20873 + var _CW = $get($1.rslog, $k[--$j]); //#20871 + var _Cc = $get($1.rsalog, $f(_CW + $get($1.rslog, $k[--$j])) % $f($1.rsgf - 1)); //#20871 + $k[$j++] = _Cc; //#20871 + } else { //#20873 + $j -= 2; //#20873 + $k[$j++] = 0; //#20873 + } //#20873 + }; //#20875 + $k[$j++] = Infinity; //#20878 + $k[$j++] = 1; //#20878 + for (var _Ce = 0, _Cf = $1.rsnc; _Ce < _Cf; _Ce++) { //#20878 + $k[$j++] = 0; //#20878 + } //#20878 + $1.coeffs = $a(); //#20878 + for (var _Cj = 1, _Ci = $1.rsnc; _Cj <= _Ci; _Cj += 1) { //#20887 + $1.i = _Cj; //#20880 + $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); //#20881 + for (var _Cq = $1.i - 1; _Cq >= 1; _Cq -= 1) { //#20885 + $1.j = _Cq; //#20883 + $k[$j++] = $1.coeffs; //#20884 + $k[$j++] = $1.j; //#20884 + $k[$j++] = $get($1.coeffs, $1.j - 1); //#20884 + $k[$j++] = $get($1.coeffs, $1.j); //#20884 + $k[$j++] = $get($1.rsalog, $1.i); //#20884 + $1.rsprod(); //#20884 + var _D2 = $k[--$j]; //#20884 + var _D3 = $k[--$j]; //#20884 + var _D4 = $k[--$j]; //#20884 + $put($k[--$j], _D4, $xo(_D3, _D2)); //#20884 + } //#20884 + $k[$j++] = $1.coeffs; //#20886 + $k[$j++] = 0; //#20886 + $k[$j++] = $get($1.coeffs, 0); //#20886 + $k[$j++] = $get($1.rsalog, $1.i); //#20886 + $1.rsprod(); //#20886 + var _DC = $k[--$j]; //#20886 + var _DD = $k[--$j]; //#20886 + $put($k[--$j], _DD, _DC); //#20886 + } //#20886 + $1.nd = $1.rscws.length; //#20890 + $k[$j++] = Infinity; //#20891 + $forall($1.rscws); //#20891 + for (var _DI = 0, _DJ = $1.rsnc; _DI < _DJ; _DI++) { //#20891 + $k[$j++] = 0; //#20891 + } //#20891 + $k[$j++] = 0; //#20891 + $1.rscws = $a(); //#20891 + for (var _DN = 0, _DM = $1.nd - 1; _DN <= _DM; _DN += 1) { //#20898 + $1.k = $xo($get($1.rscws, _DN), $get($1.rscws, $1.nd)); //#20893 + for (var _DV = 0, _DU = $f($1.rsnc - 1); _DV <= _DU; _DV += 1) { //#20897 + $1.j = _DV; //#20895 + $k[$j++] = $1.rscws; //#20896 + $k[$j++] = $1.nd + $1.j; //#20896 + $k[$j++] = $get($1.rscws, ($1.nd + $1.j) + 1); //#20896 + $k[$j++] = $1.k; //#20896 + $k[$j++] = $get($1.coeffs, $f($f($1.rsnc - $1.j) - 1)); //#20896 + $1.rsprod(); //#20896 + var _Di = $k[--$j]; //#20896 + var _Dj = $k[--$j]; //#20896 + var _Dk = $k[--$j]; //#20896 + $put($k[--$j], _Dk, $xo(_Dj, _Di)); //#20896 + } //#20896 + } //#20896 + $k[$j++] = $geti($1.rscws, 0, $1.rscws.length - 1); //#20901 + }; //#20903 + if ($eq($1.format, "full")) { //#20916 + $1.mode = ($f($1.layers - 1) << 11) + ($1.cws.length - 1); //#20907 + if ($1.readerinit) { //#20908 + $1.mode = $1.mode | 1024; //#20908 + } //#20908 + $1.mode = $a([($1.mode & 61440) >>> 12, ($1.mode & 3840) >>> 8, ($1.mode & 240) >>> 4, $1.mode & 15]); //#20914 + $k[$j++] = 'mode'; //#20915 + $k[$j++] = $1.mode; //#20915 + $k[$j++] = 6; //#20915 + $k[$j++] = 16; //#20915 + $k[$j++] = 19; //#20915 + $1.rscodes(); //#20915 + var _E0 = $k[--$j]; //#20915 + $1[$k[--$j]] = _E0; //#20915 + } //#20915 + if ($eq($1.format, "compact")) { //#20925 + $1.mode = ($f($1.layers - 1) << 6) + ($1.cws.length - 1); //#20918 + if ($1.readerinit) { //#20919 + $1.mode = $1.mode | 32; //#20919 + } //#20919 + $1.mode = $a([($1.mode & 240) >>> 4, $1.mode & 15]); //#20923 + $k[$j++] = 'mode'; //#20924 + $k[$j++] = $1.mode; //#20924 + $k[$j++] = 5; //#20924 + $k[$j++] = 16; //#20924 + $k[$j++] = 19; //#20924 + $1.rscodes(); //#20924 + var _EB = $k[--$j]; //#20924 + $1[$k[--$j]] = _EB; //#20924 + } //#20924 + if ($eq($1.format, "rune")) { //#20934 + $1.mode = ~~$z($1.barcode); //#20927 + $1.mode = $a([($1.mode & 240) >>> 4, $1.mode & 15]); //#20931 + $k[$j++] = 'mode'; //#20932 + $k[$j++] = $1.mode; //#20932 + $k[$j++] = 5; //#20932 + $k[$j++] = 16; //#20932 + $k[$j++] = 19; //#20932 + $1.rscodes(); //#20932 + var _EJ = $k[--$j]; //#20932 + $1[$k[--$j]] = _EJ; //#20932 + $k[$j++] = Infinity; //#20933 + var _EL = $1.mode; //#20933 + for (var _EM = 0, _EN = _EL.length; _EM < _EN; _EM++) { //#20933 + $k[$j++] = $get(_EL, _EM) ^ 10; //#20933 + } //#20933 + $1.mode = $a(); //#20933 + } //#20933 + $1.modebits = $s($1.mode.length * 4); //#20935 + for (var _EU = 0, _ET = $1.modebits.length - 1; _EU <= _ET; _EU += 1) { //#20936 + $puti($1.modebits, _EU, "0"); //#20936 + } //#20936 + for (var _EY = 0, _EX = $1.mode.length - 1; _EY <= _EX; _EY += 1) { //#20940 + $1.i = _EY; //#20938 + var _Ee = $cvrs($s(4), $get($1.mode, $1.i), 2); //#20939 + $puti($1.modebits, (4 - _Ee.length) + (4 * $1.i), _Ee); //#20939 + } //#20939 + $1.rsparams = $a([$a([]), $a([]), $a([]), $a([]), $a([]), $a([]), $a([64, 67]), $a([]), $a([256, 301]), $a([]), $a([1024, 1033]), $a([]), $a([4096, 4201])]); //#20952 + $k[$j++] = 'cws'; //#20953 + $k[$j++] = $1.cws; //#20953 + $k[$j++] = $f($1.ncws - $1.cws.length); //#20953 + $forall($get($1.rsparams, $1.bpcw)); //#20953 + $1.rscodes(); //#20953 + var _F0 = $k[--$j]; //#20953 + $1[$k[--$j]] = _F0; //#20953 + if ($eq($1.format, "full")) { //#20957 + $1.databits = $s($f((($1.layers * $1.layers) * 16) + ($1.layers * 112))); //#20955 + } else { //#20957 + $1.databits = $s($f((($1.layers * $1.layers) * 16) + ($1.layers * 88))); //#20957 + } //#20957 + for (var _FD = 0, _FC = $1.databits.length - 1; _FD <= _FC; _FD += 1) { //#20959 + $puti($1.databits, _FD, "0"); //#20959 + } //#20959 + for (var _FH = 0, _FG = $f($1.ncws - 1); _FH <= _FG; _FH += 1) { //#20965 + $1.i = _FH; //#20961 + var _FO = $cvrs($s($1.bpcw), $get($1.cws, $1.i), 2); //#20962 + $puti($1.databits, $f(($f($f($1.bpcw - _FO.length) + ($1.bpcw * $1.i))) + ($f($1.databits.length - ($1.ncws * $1.bpcw)))), _FO); //#20964 + } //#20964 + $1.cmv = function() { + var _FW = $k[--$j]; //#20968 + var _FX = $k[--$j]; //#20968 + $k[$j++] = $f(($f(_FX - (_FW * $1.size))) + $1.mid); //#20968 + }; //#20968 + $1.lmv = function() { + $1.lbit = $k[--$j]; //#20972 + $1.llyr = $k[--$j]; //#20973 + $1.lwid = $f($1.fw + ($1.llyr * 4)); //#20974 + $1.ldir = ~~((~~($1.lbit / 2)) / $1.lwid); //#20975 + if ($1.ldir == 0) { //#20980 + $k[$j++] = $f(((-(~~($f($1.lwid - 1) / 2))) + 1) + ((~~($1.lbit / 2)) % $1.lwid)); //#20979 + $k[$j++] = $f(($f((~~(($1.fw - 1) / 2)) + ($1.llyr * 2))) + ($1.lbit % 2)); //#20979 + $1.cmv(); //#20979 + } //#20979 + if ($1.ldir == 1) { //#20985 + $k[$j++] = $f(($f((~~($1.fw / 2)) + ($1.llyr * 2))) + ($1.lbit % 2)); //#20984 + $k[$j++] = $f(((~~($f($1.lwid - 1) / 2)) - 1) - ((~~($1.lbit / 2)) % $1.lwid)); //#20984 + $1.cmv(); //#20984 + } //#20984 + if ($1.ldir == 2) { //#20990 + $k[$j++] = -($f(((-(~~($1.lwid / 2))) + 1) + ((~~($1.lbit / 2)) % $1.lwid))); //#20989 + $k[$j++] = -($f(($f((~~($1.fw / 2)) + ($1.llyr * 2))) + ($1.lbit % 2))); //#20989 + $1.cmv(); //#20989 + } //#20989 + if ($1.ldir == 3) { //#20995 + $k[$j++] = -($f(($f((~~(($1.fw - 1) / 2)) + ($1.llyr * 2))) + ($1.lbit % 2))); //#20994 + $k[$j++] = -($f(((~~($1.lwid / 2)) - 1) - ((~~($1.lbit / 2)) % $1.lwid))); //#20994 + $1.cmv(); //#20994 + } //#20994 + }; //#20996 + if ($eq($1.format, "full")) { //#21000 + $1.fw = 12; //#21000 + } else { //#21000 + $1.fw = 9; //#21000 + } //#21000 + $1.size = $f(($f($1.fw + ($1.layers * 4))) + 2); //#21001 + $k[$j++] = Infinity; //#21002 + for (var _GC = 0, _GD = $1.size * $1.size; _GC < _GD; _GC++) { //#21002 + $k[$j++] = -1; //#21002 + } //#21002 + $1.pixs = $a(); //#21002 + $1.mid = $f(((~~($f($1.size - 1) / 2)) * $1.size) + (~~($f($1.size - 1) / 2))); //#21003 + $1.i = 0; //#21006 + for (var _GK = 1, _GJ = $1.layers; _GK <= _GJ; _GK += 1) { //#21014 + $1.layer = _GK; //#21008 + for (var _GO = 0, _GN = (($1.fw + ($1.layer * 4)) * 8) - 1; _GO <= _GN; _GO += 1) { //#21013 + $1.pos = _GO; //#21010 + $k[$j++] = $1.pixs; //#21011 + $k[$j++] = $1.layer; //#21011 + $k[$j++] = $1.pos; //#21011 + $1.lmv(); //#21011 + var _GW = $k[--$j]; //#21011 + $put($k[--$j], _GW, $get($1.databits, ($1.databits.length - $1.i) - 1) - 48); //#21011 + $1.i = $1.i + 1; //#21012 + } //#21012 + } //#21012 + if ($eq($1.format, "full")) { //#21041 + $1.fw = 13; //#21018 + $1.size = $f(($f(($f($1.fw + ($1.layers * 4))) + 2)) + ((~~($f(($f($1.layers + 10.5) / 7.5) - 1))) * 2)); //#21019 + $1.mid = ~~(($1.size * $1.size) / 2); //#21020 + $k[$j++] = Infinity; //#21021 + for (var _Gh = 0, _Gi = $1.size * $1.size; _Gh < _Gi; _Gh++) { //#21021 + $k[$j++] = -2; //#21021 + } //#21021 + $1.npixs = $a(); //#21021 + for (var _Gm = 0, _Gl = ~~($1.size / 2); _Gm <= _Gl; _Gm += 16) { //#21031 + $1.i = _Gm; //#21023 + for (var _Gp = 0, _Go = $f($1.size - 1); _Gp <= _Go; _Gp += 1) { //#21030 + $1.j = _Gp; //#21025 + $k[$j++] = $1.npixs; //#21026 + $k[$j++] = (-(~~($1.size / 2))) + $1.j; //#21026 + $k[$j++] = $1.i; //#21026 + $1.cmv(); //#21026 + var _Gy = $k[--$j]; //#21026 + $puti($k[--$j], _Gy, $a([((((~~($1.size / 2)) + $1.j) + $1.i) + 1) % 2])); //#21026 + $k[$j++] = $1.npixs; //#21027 + $k[$j++] = (-(~~($1.size / 2))) + $1.j; //#21027 + $k[$j++] = -$1.i; //#21027 + $1.cmv(); //#21027 + var _H8 = $k[--$j]; //#21027 + $puti($k[--$j], _H8, $a([((((~~($1.size / 2)) + $1.j) + $1.i) + 1) % 2])); //#21027 + $k[$j++] = $1.npixs; //#21028 + $k[$j++] = $1.i; //#21028 + $k[$j++] = (-(~~($1.size / 2))) + $1.j; //#21028 + $1.cmv(); //#21028 + var _HI = $k[--$j]; //#21028 + $puti($k[--$j], _HI, $a([((((~~($1.size / 2)) + $1.j) + $1.i) + 1) % 2])); //#21028 + $k[$j++] = $1.npixs; //#21029 + $k[$j++] = -$1.i; //#21029 + $k[$j++] = (-(~~($1.size / 2))) + $1.j; //#21029 + $1.cmv(); //#21029 + var _HS = $k[--$j]; //#21029 + $puti($k[--$j], _HS, $a([((((~~($1.size / 2)) + $1.j) + $1.i) + 1) % 2])); //#21029 + } //#21029 + } //#21029 + $1.j = 0; //#21032 + for (var _HW = 0, _HV = $1.npixs.length - 1; _HW <= _HV; _HW += 1) { //#21039 + $1.i = _HW; //#21034 + if ($get($1.npixs, $1.i) == -2) { //#21038 + $put($1.npixs, $1.i, $get($1.pixs, $1.j)); //#21036 + $1.j = $1.j + 1; //#21037 + } //#21037 + } //#21037 + $1.pixs = $1.npixs; //#21040 + } //#21040 + $1.fw = ~~($1.fw / 2); //#21044 + for (var _Hl = -$1.fw, _Hk = $1.fw; _Hl <= _Hk; _Hl += 1) { //#21053 + $1.i = _Hl; //#21046 + for (var _Hp = -$1.fw, _Ho = $1.fw; _Hp <= _Ho; _Hp += 1) { //#21052 + $1.j = _Hp; //#21048 + $k[$j++] = $1.pixs; //#21049 + $k[$j++] = $1.i; //#21049 + $k[$j++] = $1.j; //#21049 + $1.cmv(); //#21049 + if (Math.abs($1.i) > Math.abs($1.j)) { //#21050 + $k[$j++] = Math.abs($1.i); //#21050 + } else { //#21050 + $k[$j++] = Math.abs($1.j); //#21050 + } //#21050 + var _Hx = $k[--$j]; //#21050 + var _Hy = $k[--$j]; //#21051 + $put($k[--$j], _Hy, $f(_Hx + 1) % 2); //#21051 + } //#21051 + } //#21051 + var _Ia = $a([$a([-($1.fw + 1), $1.fw, 1]), $a([-($1.fw + 1), $1.fw + 1, 1]), $a([-$1.fw, $1.fw + 1, 1]), $a([$1.fw + 1, $1.fw + 1, 1]), $a([$1.fw + 1, $1.fw, 1]), $a([$1.fw + 1, -$1.fw, 1]), $a([$1.fw, $1.fw + 1, 0]), $a([$1.fw + 1, -($1.fw + 1), 0]), $a([$1.fw, -($1.fw + 1), 0]), $a([-$1.fw, -($1.fw + 1), 0]), $a([-($1.fw + 1), -($1.fw + 1), 0]), $a([-($1.fw + 1), -$1.fw, 0])]); //#21061 + for (var _Ib = 0, _Ic = _Ia.length; _Ib < _Ic; _Ib++) { //#21062 + $k[$j++] = $1.pixs; //#21062 + $forall($get(_Ia, _Ib)); //#21062 + var _If = $k[--$j]; //#21062 + var _Ig = $k[--$j]; //#21062 + var _Ih = $k[--$j]; //#21062 + $k[$j++] = _If; //#21062 + $k[$j++] = _Ih; //#21062 + $k[$j++] = _Ig; //#21062 + $1.cmv(); //#21062 + var _Ii = $k[--$j]; //#21062 + var _Ij = $k[--$j]; //#21062 + $put($k[--$j], _Ii, _Ij); //#21062 + } //#21062 + if ($eq($1.format, "full")) { //#21078 + $1.modemap = $a([$a([-5, 7]), $a([-4, 7]), $a([-3, 7]), $a([-2, 7]), $a([-1, 7]), $a([1, 7]), $a([2, 7]), $a([3, 7]), $a([4, 7]), $a([5, 7]), $a([7, 5]), $a([7, 4]), $a([7, 3]), $a([7, 2]), $a([7, 1]), $a([7, -1]), $a([7, -2]), $a([7, -3]), $a([7, -4]), $a([7, -5]), $a([5, -7]), $a([4, -7]), $a([3, -7]), $a([2, -7]), $a([1, -7]), $a([-1, -7]), $a([-2, -7]), $a([-3, -7]), $a([-4, -7]), $a([-5, -7]), $a([-7, -5]), $a([-7, -4]), $a([-7, -3]), $a([-7, -2]), $a([-7, -1]), $a([-7, 1]), $a([-7, 2]), $a([-7, 3]), $a([-7, 4]), $a([-7, 5])]); //#21071 + } else { //#21078 + $1.modemap = $a([$a([-3, 5]), $a([-2, 5]), $a([-1, 5]), $a([0, 5]), $a([1, 5]), $a([2, 5]), $a([3, 5]), $a([5, 3]), $a([5, 2]), $a([5, 1]), $a([5, 0]), $a([5, -1]), $a([5, -2]), $a([5, -3]), $a([3, -5]), $a([2, -5]), $a([1, -5]), $a([0, -5]), $a([-1, -5]), $a([-2, -5]), $a([-3, -5]), $a([-5, -3]), $a([-5, -2]), $a([-5, -1]), $a([-5, 0]), $a([-5, 1]), $a([-5, 2]), $a([-5, 3])]); //#21078 + } //#21078 + for (var _Jw = 0, _Jv = $1.modemap.length - 1; _Jw <= _Jv; _Jw += 1) { //#21083 + $1.i = _Jw; //#21081 + $k[$j++] = $1.pixs; //#21082 + $forall($get($1.modemap, $1.i)); //#21082 + $1.cmv(); //#21082 + var _K4 = $k[--$j]; //#21082 + $put($k[--$j], _K4, $get($1.modebits, $1.i) - 48); //#21082 + } //#21082 + var _KC = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", $1.size], + ["pixy", $1.size], + ["height", ($1.size * 2) / 72], + ["width", ($1.size * 2) / 72], + ["opt", $1.options] + ]); //#21092 + $k[$j++] = _KC; //#21095 + if (!$1.dontdraw) { //#21095 + $0.renmatrix(); //#21095 + } //#21095 }; - $0.microqrcode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $put($1.options, "dontdraw", true); - $put($1.options, "format", "micro"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.qrcode(); - var _9 = $k[--$j]; - $1[$k[--$j]] = _9; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + $0.azteccodecompact = function() { + var $1 = {}; //#21125 + $1.options = $k[--$j]; //#21127 + $1.barcode = $k[--$j]; //#21128 + $1.dontdraw = false; //#21130 + $forall($1.options, function() { //#21141 + var _3 = $k[--$j]; //#21141 + $1[$k[--$j]] = _3; //#21141 + }); //#21141 + $put($1.options, "dontdraw", true); //#21144 + $put($1.options, "format", "compact"); //#21145 + $k[$j++] = 'args'; //#21147 + $k[$j++] = $1.barcode; //#21147 + $k[$j++] = $1.options; //#21147 + $0.azteccode(); //#21147 + var _9 = $k[--$j]; //#21147 + $1[$k[--$j]] = _9; //#21147 + $put($1.args, "opt", $1.options); //#21149 + $k[$j++] = $1.args; //#21152 + if (!$1.dontdraw) { //#21152 + $0.renmatrix(); //#21152 + } //#21152 }; - $0.rectangularmicroqrcode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $put($1.options, "dontdraw", true); - $put($1.options, "format", "rmqr"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.qrcode(); - var _9 = $k[--$j]; - $1[$k[--$j]] = _9; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } - }; - $0.maxicode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.mode = -1; - $1.sam = -1; - $1.parse = false; - $1.parsefnc = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.mode = ~~$1.mode; - $1.sam = ~~$1.sam; - var _9 = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "eci", true ] ]); - $1.fncvals = _9; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _C = $k[--$j]; - $1[$k[--$j]] = _C; - $1.msglen = $1.msg.length; - if ($1.mode == 2 || $1.mode == 3) { - $1.barcode = $s($1.msglen); - for (var _L = 0, _K = $1.msglen - 1; _L <= _K; _L += 1) { - $1.i = _L; - if ($get($1.msg, $1.i) > 0) { - $put($1.barcode, $1.i, $get($1.msg, $1.i)); - } - } - $1.barlen = $1.barcode.length; - if ($eq($geti($1.barcode, 0, 7), "[)>01")) { - $1.fid = $geti($1.barcode, 0, 9); - $1.barcode = $geti($1.barcode, 9, $1.barlen - 9); - } else { - $1.fid = ""; - } - $search($1.barcode, ""); - $j--; - $1.pcode = $k[--$j]; - $j--; - $search($k[--$j], ""); - $j--; - $1.ccode = $k[--$j]; - $j--; - $search($k[--$j], ""); - $j--; - $1.scode = $k[--$j]; - $j--; - $1.barcode = $k[--$j]; - var _l = $s($1.barcode.length + $1.fid.length); - $puti(_l, 0, $1.fid); - $puti(_l, $1.fid.length, $1.barcode); - $1.barcode = _l; - $1.barlen = $1.barcode.length; - $k[$j++] = Infinity; - var _q = $1.barcode; - for (var _r = 0, _s = _q.length; _r < _s; _r++) { - $k[$j++] = $get(_q, _r); - } - $1.msg = $a(); - $1.msglen = $1.msg.length; - } - $1.eci = -1; - $1.pad = -2; - $1.ns = -3; - $1.la = -4; - $1.lb = -5; - $1.sa = -6; - $1.sb = -7; - $1.sc = -8; - $1.sd = -9; - $1.se = -10; - $1.sa2 = -11; - $1.sa3 = -12; - $1.lkc = -13; - $1.lkd = -14; - $1.lke = -15; - $1.pd2 = -16; - $1.pd3 = -17; - $1.charmaps = $a([ $a([ 13, "`", 192, 224, 0 ]), $a([ "A", "a", 193, 225, 1 ]), $a([ "B", "b", 194, 226, 2 ]), $a([ "C", "c", 195, 227, 3 ]), $a([ "D", "d", 196, 228, 4 ]), $a([ "E", "e", 197, 229, 5 ]), $a([ "F", "f", 198, 230, 6 ]), $a([ "G", "g", 199, 231, 7 ]), $a([ "H", "h", 200, 232, 8 ]), $a([ "I", "i", 201, 233, 9 ]), $a([ "J", "j", 202, 234, 10 ]), $a([ "K", "k", 203, 235, 11 ]), $a([ "L", "l", 204, 236, 12 ]), $a([ "M", "m", 205, 237, 13 ]), $a([ "N", "n", 206, 238, 14 ]), $a([ "O", "o", 207, 239, 15 ]), $a([ "P", "p", 208, 240, 16 ]), $a([ "Q", "q", 209, 241, 17 ]), $a([ "R", "r", 210, 242, 18 ]), $a([ "S", "s", 211, 243, 19 ]), $a([ "T", "t", 212, 244, 20 ]), $a([ "U", "u", 213, 245, 21 ]), $a([ "V", "v", 214, 246, 22 ]), $a([ "W", "w", 215, 247, 23 ]), $a([ "X", "x", 216, 248, 24 ]), $a([ "Y", "y", 217, 249, 25 ]), $a([ "Z", "z", 218, 250, 26 ]), $a([ $1.eci, $1.eci, $1.eci, $1.eci, $1.eci ]), $a([ 28, 28, 28, 28, $1.pad ]), $a([ 29, 29, 29, 29, $1.pad ]), $a([ 30, 30, 30, 30, 27 ]), $a([ $1.ns, $1.ns, $1.ns, $1.ns, $1.ns ]), $a([ " ", "{", 219, 251, 28 ]), $a([ $1.pad, $1.pad, 220, 252, 29 ]), $a([ '"', "}", 221, 253, 30 ]), $a([ "#", "~", 222, 254, 31 ]), $a([ "$", 127, 223, 255, 159 ]), $a([ "%", ";", 170, 161, 160 ]), $a([ "&", "<", 172, 168, 162 ]), $a([ "'", "=", 177, 171, 163 ]), $a([ 40, ">", 178, 175, 164 ]), $a([ 41, "?", 179, 176, 165 ]), $a([ "*", "[", 181, 180, 166 ]), $a([ "+", 92, 185, 183, 167 ]), $a([ ",", "]", 186, 184, 169 ]), $a([ "-", "^", 188, 187, 173 ]), $a([ ".", "_", 189, 191, 174 ]), $a([ "/", " ", 190, 138, 182 ]), $a([ "0", ",", 128, 139, 149 ]), $a([ "1", ".", 129, 140, 150 ]), $a([ "2", "/", 130, 141, 151 ]), $a([ "3", ":", 131, 142, 152 ]), $a([ "4", "@", 132, 143, 153 ]), $a([ "5", "!", 133, 144, 154 ]), $a([ "6", "|", 134, 145, 155 ]), $a([ "7", $1.pd2, 135, 146, 156 ]), $a([ "8", $1.sa2, 136, 147, 157 ]), $a([ "9", $1.sa3, 137, 148, 158 ]), $a([ ":", $1.pd3, $1.la, $1.la, $1.la ]), $a([ $1.sb, $1.sa, " ", " ", " " ]), $a([ $1.sc, $1.sc, $1.lkc, $1.sc, $1.sc ]), $a([ $1.sd, $1.sd, $1.sd, $1.lkd, $1.sd ]), $a([ $1.se, $1.se, $1.se, $1.se, $1.lke ]), $a([ $1.lb, $1.la, $1.lb, $1.lb, $1.lb ]) ]); - $1.charvals = $a([ new Map(), new Map(), new Map(), new Map(), new Map() ]); - for (var _2j = 0, _2i = $1.charmaps.length - 1; _2j <= _2i; _2j += 1) { - $1.i = _2j; - $1.encs = $get($1.charmaps, $1.i); - for (var _2n = 0; _2n <= 4; _2n += 1) { - $1.j = _2n; - var _2q = $get($1.encs, $1.j); - $k[$j++] = _2q; - if ($eq($type(_2q), "stringtype")) { - var _2t = $get($k[--$j], 0); - $k[$j++] = _2t; - } - $put($get($1.charvals, $1.j), $k[--$j], $1.i); - } - } - $1.seta = $get($1.charvals, 0); - $1.setb = $get($1.charvals, 1); - $1.setc = $get($1.charvals, 2); - $1.setd = $get($1.charvals, 3); - $1.sete = $get($1.charvals, 4); - $k[$j++] = Infinity; - for (var _3A = 0, _3B = $1.msglen + 1; _3A < _3B; _3A++) { - $k[$j++] = 0; - } - $1.nseq = $a(); - for (var _3E = $1.msglen - 1; _3E >= 0; _3E -= 1) { - $1.i = _3E; - var _3H = $get($1.msg, $1.i); - if (_3H >= 48 && _3H <= 57) { - $put($1.nseq, $1.i, $f($get($1.nseq, $1.i + 1) + 1)); - } else { - $put($1.nseq, $1.i, 0); - } - } - $1.nseq = $geti($1.nseq, 0, $1.msglen); - $1.prefixinset = function() { - $k[$j++] = 0; - for (;;) { - var _3S = $k[--$j]; - var _3T = $k[--$j]; - $k[$j++] = _3T; - $k[$j++] = _3S; - if (_3S >= _3T.length) { - break; - } - var _3U = $k[--$j]; - var _3V = $k[--$j]; - var _3X = $k[--$j]; - var _3Y = $get(_3X, $get(_3V, _3U)) !== undefined; - $k[$j++] = _3X; - $k[$j++] = _3V; - $k[$j++] = _3U; - if (_3Y) { - var _3Z = $k[--$j]; - $k[$j++] = $f(_3Z + 1); - } else { - break; - } - } - var _3a = $k[--$j]; - var _3b = $k[--$j]; - $k[$j++] = _3a; - $k[$j++] = _3b; - $j--; - var _3c = $k[--$j]; - var _3d = $k[--$j]; - $k[$j++] = _3c; - $k[$j++] = _3d; - $j--; - }; - $1.enc = function() { - var _3e = $k[--$j]; - $put($1.out, $1.j, $get(_3e, $k[--$j])); - $1.j = $1.j + 1; - }; - $1.out = $a(144); - $1.i = 0; - $1.j = 0; - $1.cset = "seta"; - for (;;) { - if ($1.i == $1.msglen) { - if ($ne($1.cset, "seta") && $ne($1.cset, "setb")) { - $k[$j++] = $1.la; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $1.cset = "seta"; - } - break; - } - for (;;) { - if ($get($1.msg, $1.i) <= -1e6) { - $k[$j++] = $1.eci; - $k[$j++] = $1[$1.cset]; - $1.enc(); - var _41 = $f(-$get($1.msg, $1.i) - 1e6); - $k[$j++] = _41; - if (_41 <= 31) { - var _42 = $k[--$j]; - $k[$j++] = _42 & 63; - $astore($a(1)); - } else { - var _44 = $k[--$j]; - $k[$j++] = _44; - if (_44 <= 1023) { - var _45 = $k[--$j]; - $k[$j++] = _45 >>> 6 & 31 | 32; - $k[$j++] = _45 & 63; - $astore($a(2)); - } else { - var _47 = $k[--$j]; - $k[$j++] = _47; - if (_47 <= 32767) { - var _48 = $k[--$j]; - $k[$j++] = _48 >>> 12 & 47 | 48; - $k[$j++] = _48 >>> 6 & 63; - $k[$j++] = _48 & 63; - $astore($a(3)); - } else { - var _4A = $k[--$j]; - $k[$j++] = _4A >>> 18 & 55 | 56; - $k[$j++] = _4A >>> 12 & 63; - $k[$j++] = _4A >>> 6 & 63; - $k[$j++] = _4A & 63; - $astore($a(4)); - } - } - } - var _4C = $k[--$j]; - $puti($1.out, $1.j, _4C); - $1.j = _4C.length + $1.j; - $1.i = $1.i + 1; - break; - } - if ($get($1.nseq, $1.i) >= 9) { - var _4M = $geti($1.msg, $1.i, 9); - $k[$j++] = 0; - for (var _4N = 0, _4O = _4M.length; _4N < _4O; _4N++) { - var _4Q = $k[--$j]; - $k[$j++] = $f(_4Q + $f($get(_4M, _4N) - 48)) * 10; - } - var _4R = $k[--$j]; - $k[$j++] = ~~(_4R / 10); - for (var _4S = 0, _4T = 4; _4S < _4T; _4S++) { - var _4U = $k[--$j]; - $k[$j++] = _4U & 63; - $k[$j++] = _4U >>> 6; - } - $k[$j++] = $get($1[$1.cset], $1.ns); - for (var _4Z = 0; _4Z <= 10; _4Z += 2) { - var _4a = $k[$j - 1 - _4Z]; - $k[$j++] = _4a; - } - $astore($a(6)); - var _4c = $k[--$j]; - var _4d = $k[--$j]; - var _4e = $k[--$j]; - var _4f = $k[--$j]; - var _4g = $k[--$j]; - var _4h = $k[--$j]; - var _4i = $k[--$j]; - $k[$j++] = _4c; - $k[$j++] = _4i; - $k[$j++] = _4h; - $k[$j++] = _4g; - $k[$j++] = _4f; - $k[$j++] = _4e; - $k[$j++] = _4d; - for (var _4j = 0, _4k = 6; _4j < _4k; _4j++) { - $j--; - } - $puti($1.out, $1.j, $k[--$j]); - $1.i = $1.i + 9; - $1.j = $1.j + 6; - break; - } - $1.char1 = $get($1.msg, $1.i); - $k[$j++] = "char2"; - if ($1.i + 1 < $1.msglen) { - $k[$j++] = $get($1.msg, $1.i + 1); - } else { - $k[$j++] = -99; - } - var _4y = $k[--$j]; - $1[$k[--$j]] = _4y; - $k[$j++] = "char3"; - if ($1.i + 2 < $1.msglen) { - $k[$j++] = $get($1.msg, $1.i + 2); - } else { - $k[$j++] = -99; - } - var _55 = $k[--$j]; - $1[$k[--$j]] = _55; - var _5A = $get($1[$1.cset], $1.char1) !== undefined; - if (_5A) { - $k[$j++] = $1.char1; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $1.i = $1.i + 1; - break; - } - var _5I = $get($1.setb, $1.char1) !== undefined; - if ($eq($1.cset, "seta") && _5I) { - var _5L = $get($1.setb, $1.char2) !== undefined; - if (_5L) { - $k[$j++] = $1.lb; - $k[$j++] = $1.seta; - $1.enc(); - $1.cset = "setb"; - } else { - $k[$j++] = $1.sb; - $k[$j++] = $1.seta; - $1.enc(); - $k[$j++] = $1.char1; - $k[$j++] = $1.setb; - $1.enc(); - $1.i = $1.i + 1; - } - break; - } - var _5W = $get($1.seta, $1.char1) !== undefined; - if ($eq($1.cset, "setb") && _5W) { - var _5X = $1.seta; - var _5Y = $1.msg; - var _5Z = $1.i; - var _5a = $1.msglen; - var _5b = $1.i; - var _5c = _5a - _5b; - var _5d = 4; - if (4 > _5a - _5b) { - var _ = _5c; - _5c = _5d; - _5d = _; - } - $k[$j++] = "p"; - $k[$j++] = _5X; - $k[$j++] = $geti(_5Y, _5Z, _5d); - $1.prefixinset(); - var _5f = $k[--$j]; - $1[$k[--$j]] = _5f; - if ($1.p == 1) { - $k[$j++] = $1.sa; - $k[$j++] = $1.setb; - $1.enc(); - $k[$j++] = $1.char1; - $k[$j++] = $1.seta; - $1.enc(); - $1.i = $1.i + 1; - } - if ($1.p == 2) { - $k[$j++] = $1.sa2; - $k[$j++] = $1.setb; - $1.enc(); - $k[$j++] = $1.char1; - $k[$j++] = $1.seta; - $1.enc(); - $k[$j++] = $1.char2; - $k[$j++] = $1.seta; - $1.enc(); - $1.i = $1.i + 2; - } - if ($1.p == 3) { - $k[$j++] = $1.sa3; - $k[$j++] = $1.setb; - $1.enc(); - $k[$j++] = $1.char1; - $k[$j++] = $1.seta; - $1.enc(); - $k[$j++] = $1.char2; - $k[$j++] = $1.seta; - $1.enc(); - $k[$j++] = $1.char3; - $k[$j++] = $1.seta; - $1.enc(); - $1.i = $1.i + 3; - } - if ($1.p >= 4) { - $k[$j++] = $1.la; - $k[$j++] = $1.setb; - $1.enc(); - $1.cset = "seta"; - } - break; - } - var _6A = $get($1.seta, $1.char1) !== undefined; - if (_6A) { - $k[$j++] = $1.la; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $1.cset = "seta"; - break; - } - var _6G = $get($1.setb, $1.char1) !== undefined; - if (_6G) { - $k[$j++] = $1.lb; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $1.cset = "setb"; - break; - } - var _6M = $get($1.setc, $1.char1) !== undefined; - if (_6M) { - $1.setx = "setc"; - $1.sx = $1.sc; - $1.lkx = $1.lkc; - } - var _6R = $get($1.setd, $1.char1) !== undefined; - if (_6R) { - $1.setx = "setd"; - $1.sx = $1.sd; - $1.lkx = $1.lkd; - } - var _6W = $get($1.sete, $1.char1) !== undefined; - if (_6W) { - $1.setx = "sete"; - $1.sx = $1.se; - $1.lkx = $1.lke; - } - var _6a = $1[$1.setx]; - var _6b = $1.msg; - var _6c = $1.i; - var _6d = $1.msglen; - var _6e = $1.i; - var _6f = _6d - _6e; - var _6g = 4; - if (4 > _6d - _6e) { - var _ = _6f; - _6f = _6g; - _6g = _; - } - $k[$j++] = "p"; - $k[$j++] = _6a; - $k[$j++] = $geti(_6b, _6c, _6g); - $1.prefixinset(); - var _6i = $k[--$j]; - $1[$k[--$j]] = _6i; - if ($1.p == 1) { - $k[$j++] = $1.sx; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $k[$j++] = $1.char1; - $k[$j++] = $1[$1.setx]; - $1.enc(); - $1.i = $1.i + 1; - } - if ($1.p == 2) { - $k[$j++] = $1.sx; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $k[$j++] = $1.char1; - $k[$j++] = $1[$1.setx]; - $1.enc(); - $k[$j++] = $1.sx; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $k[$j++] = $1.char2; - $k[$j++] = $1[$1.setx]; - $1.enc(); - $1.i = $1.i + 2; - } - if ($1.p == 3) { - $k[$j++] = $1.sx; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $k[$j++] = $1.char1; - $k[$j++] = $1[$1.setx]; - $1.enc(); - $k[$j++] = $1.sx; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $k[$j++] = $1.char2; - $k[$j++] = $1[$1.setx]; - $1.enc(); - $k[$j++] = $1.sx; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $k[$j++] = $1.char3; - $k[$j++] = $1[$1.setx]; - $1.enc(); - $1.i = $1.i + 3; - } - if ($1.p >= 4) { - $k[$j++] = $1.sx; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $k[$j++] = $1.lkx; - $k[$j++] = $1[$1.setx]; - $1.enc(); - $1.cset = $1.setx; - } - break; - } - } - $1.encmsg = $geti($1.out, 0, $1.j); - $1.padval = $get($1[$1.cset], $1.pad); - $1.sami = $a([]); - if ($1.sam != -1) { - $1.sami = $a(2); - $put($1.sami, 0, $get($1.seta, $1.pad)); - $put($1.sami, 1, (~~($1.sam / 10) - 1) * 8 + ($1.sam % 10 - 1)); - } - $k[$j++] = Infinity; - $aload($1.sami); - $aload($1.encmsg); - $1.encmsg = $a(); - if ($1.mode == 2 || $1.mode == 3) { - var _7v = $strcpy($s(4), "0000"); - var _7y = $cvrs($s(4), ~~$1.mode, 2); - $puti(_7v, 4 - _7y.length, _7y); - $1.mdb = _7v; - var _80 = $strcpy($s(10), "0000000000"); - var _83 = $cvrs($s(10), ~~$z($1.ccode), 2); - $puti(_80, 10 - _83.length, _83); - $1.ccb = _80; - var _85 = $strcpy($s(10), "0000000000"); - var _88 = $cvrs($s(10), ~~$z($1.scode), 2); - $puti(_85, 10 - _88.length, _88); - $1.scb = _85; - $1.pcb = $strcpy($s(36), "000000000000000000000000000000000000"); - if ($1.mode == 2) { - var _8F = $cvrs($s(6), $1.pcode.length, 2); - $puti($1.pcb, 6 - _8F.length, _8F); - var _8J = $cvrs($s(30), ~~$z($1.pcode), 2); - $puti($1.pcb, 36 - _8J.length, _8J); - } else { - $k[$j++] = Infinity; - var _8L = $strcpy($s(6), " "); - $k[$j++] = _8L; - $k[$j++] = _8L; - $k[$j++] = 0; - if ($1.pcode.length > 6) { - $k[$j++] = $geti($1.pcode, 0, 6); - } else { - $k[$j++] = $1.pcode; - } - var _8Q = $k[--$j]; - var _8R = $k[--$j]; - $puti($k[--$j], _8R, _8Q); - $forall($k[--$j], function() { - var _8W = $get($1.seta, $k[--$j]); - $k[$j++] = _8W; - }); - $1.pccw = $a(); - for (var _8Y = 0; _8Y <= 5; _8Y += 1) { - $1.i = _8Y; - var _8e = $cvrs($s(6), $get($1.pccw, $1.i), 2); - $puti($1.pcb, 6 * $1.i + 6 - _8e.length, _8e); - } - } - $1.scm = $s(60); - $puti($1.scm, 2, $1.mdb); - $puti($1.scm, 38, $geti($1.pcb, 0, 4)); - $puti($1.scm, 30, $geti($1.pcb, 4, 6)); - $puti($1.scm, 24, $geti($1.pcb, 10, 6)); - $puti($1.scm, 18, $geti($1.pcb, 16, 6)); - $puti($1.scm, 12, $geti($1.pcb, 22, 6)); - $puti($1.scm, 6, $geti($1.pcb, 28, 6)); - $puti($1.scm, 0, $geti($1.pcb, 34, 2)); - $puti($1.scm, 52, $geti($1.ccb, 0, 2)); - $puti($1.scm, 42, $geti($1.ccb, 2, 6)); - $puti($1.scm, 36, $geti($1.ccb, 8, 2)); - $puti($1.scm, 54, $geti($1.scb, 0, 6)); - $puti($1.scm, 48, $geti($1.scb, 6, 4)); - $1.pri = $a([ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]); - for (var _9K = 0; _9K <= 59; _9K += 1) { - $1.i = _9K; - $1.ps = ~~($1.i / 6); - $1.ep = ~~Math.pow(2, 5 - $1.i % 6) * ($get($1.scm, $1.i) - 48); - $put($1.pri, $1.ps, $f($get($1.pri, $1.ps) + $1.ep)); - } - $k[$j++] = Infinity; - for (var _9W = 0, _9X = 84; _9W < _9X; _9W++) { - $k[$j++] = $1.padval; - } - $1.sec = $a(); - $puti($1.sec, 0, $1.encmsg); - } - if ($1.mode == 4 || $1.mode == 5 || $1.mode == 6 || $1.mode == -1) { - if ($1.mode == -1) { - var _9i = $1.encmsg.length <= 77 ? 5 : 4; - $1.mode = _9i; - } - $k[$j++] = Infinity; - var _9k = $1.mode == 5 ? 78 : 94; - for (var _9l = 0, _9m = _9k; _9l < _9m; _9l++) { - $k[$j++] = $1.padval; - } - $1.cws = $a(); - $put($1.cws, 0, $1.mode); - $puti($1.cws, 1, $1.encmsg); - $1.pri = $geti($1.cws, 0, 10); - $1.sec = $geti($1.cws, 10, $1.cws.length - 10); - } - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _9y = 0, _9z = 63; _9y < _9z; _9y++) { - var _A0 = $k[--$j]; - var _A1 = _A0 * 2; - $k[$j++] = _A0; - $k[$j++] = _A1; - if (_A1 >= 64) { - var _A2 = $k[--$j]; - $k[$j++] = _A2 ^ 67; - } - } - $1.rsalog = $a(); - $1.rslog = $a(64); - for (var _A5 = 1; _A5 <= 63; _A5 += 1) { - $put($1.rslog, $get($1.rsalog, _A5), _A5); - } - $1.rsprod = function() { - var _A9 = $k[--$j]; - var _AA = $k[--$j]; - $k[$j++] = _AA; - $k[$j++] = _A9; - if (_A9 != 0 && _AA != 0) { - var _AD = $get($1.rslog, $k[--$j]); - var _AI = $get($1.rsalog, $f(_AD + $get($1.rslog, $k[--$j])) % 63); - $k[$j++] = _AI; - } else { - $j -= 2; - $k[$j++] = 0; - } - }; - $1.rscodes = function() { - $1.rsnum = $k[--$j]; - $1.cwb = $k[--$j]; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _AM = 0, _AN = $1.rsnum; _AM < _AN; _AM++) { - $k[$j++] = 0; - } - $1.coeffs = $a(); - for (var _AR = 1, _AQ = $1.rsnum; _AR <= _AQ; _AR += 1) { - $1.i = _AR; - $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); - for (var _AY = $1.i - 1; _AY >= 1; _AY -= 1) { - $1.j = _AY; - $k[$j++] = $1.coeffs; - $k[$j++] = $1.j; - $k[$j++] = $get($1.coeffs, $1.j - 1); - $k[$j++] = $get($1.coeffs, $1.j); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _Ak = $k[--$j]; - var _Al = $k[--$j]; - var _Am = $k[--$j]; - $put($k[--$j], _Am, $xo(_Al, _Ak)); - } - $k[$j++] = $1.coeffs; - $k[$j++] = 0; - $k[$j++] = $get($1.coeffs, 0); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _Au = $k[--$j]; - var _Av = $k[--$j]; - $put($k[--$j], _Av, _Au); - } - $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); - $k[$j++] = Infinity; - for (var _B1 = 0, _B2 = $1.rsnum; _B1 < _B2; _B1++) { - $k[$j++] = 0; - } - $1.ecb = $a(); - for (var _B6 = 0, _B5 = $1.cwb.length - 1; _B6 <= _B5; _B6 += 1) { - $1.t = $xo($get($1.cwb, _B6), $get($1.ecb, 0)); - for (var _BC = $1.ecb.length - 1; _BC >= 0; _BC -= 1) { - $1.i = _BC; - $1.p = $1.ecb.length - $1.i - 1; - $k[$j++] = $1.ecb; - $k[$j++] = $1.p; - $k[$j++] = $1.t; - $k[$j++] = $get($1.coeffs, $1.i); - $1.rsprod(); - var _BL = $k[--$j]; - var _BM = $k[--$j]; - $put($k[--$j], _BM, _BL); - if ($1.i > 0) { - $put($1.ecb, $1.p, $xo($get($1.ecb, $1.p + 1), $get($1.ecb, $1.p))); - } - } - } - $k[$j++] = $1.ecb; - }; - $k[$j++] = Infinity; - for (var _Ba = 0, _BZ = $1.sec.length - 1; _Ba <= _BZ; _Ba += 2) { - $k[$j++] = $get($1.sec, _Ba); - } - $1.seco = $a(); - $k[$j++] = Infinity; - for (var _Bg = 1, _Bf = $1.sec.length - 1; _Bg <= _Bf; _Bg += 2) { - $k[$j++] = $get($1.sec, _Bg); - } - $1.sece = $a(); - var _Bl = $1.sec.length == 84 ? 20 : 28; - $1.scodes = _Bl; - $k[$j++] = "secochk"; - $k[$j++] = $1.seco; - $k[$j++] = $1.scodes; - $1.rscodes(); - var _Bo = $k[--$j]; - $1[$k[--$j]] = _Bo; - $k[$j++] = "secechk"; - $k[$j++] = $1.sece; - $k[$j++] = $1.scodes; - $1.rscodes(); - var _Bs = $k[--$j]; - $1[$k[--$j]] = _Bs; - $k[$j++] = Infinity; - for (var _Bw = 0, _Bv = $1.scodes - 1; _Bw <= _Bv; _Bw += 1) { - $k[$j++] = $get($1.secochk, _Bw); - $k[$j++] = $get($1.secechk, _Bw); - } - $1.secchk = $a(); - $k[$j++] = Infinity; - $aload($1.pri); - $k[$j++] = $1.pri; - $k[$j++] = 10; - $1.rscodes(); - $aload($k[--$j]); - $aload($1.sec); - $aload($1.secchk); - $1.codewords = $a(); - $k[$j++] = Infinity; - for (var _C8 = 0, _C9 = 864; _C8 < _C9; _C8++) { - $k[$j++] = 0; - } - $1.mods = $a(); - for (var _CB = 0; _CB <= 143; _CB += 1) { - $1.i = _CB; - $k[$j++] = Infinity; - var _CG = $cvrs($s(6), $get($1.codewords, $1.i), 2); - for (var _CH = 0, _CI = _CG.length; _CH < _CI; _CH++) { - $k[$j++] = $get(_CG, _CH) - 48; - } - $1.cw = $a(); - $puti($1.mods, 6 * $1.i + (6 - $1.cw.length), $1.cw); - } - $1.modmap = $a([ 469, 529, 286, 316, 347, 346, 673, 672, 703, 702, 647, 676, 283, 282, 313, 312, 370, 610, 618, 379, 378, 409, 408, 439, 705, 704, 559, 589, 588, 619, 458, 518, 640, 701, 675, 674, 285, 284, 315, 314, 310, 340, 531, 289, 288, 319, 349, 348, 456, 486, 517, 516, 471, 470, 369, 368, 399, 398, 429, 428, 549, 548, 579, 578, 609, 608, 649, 648, 679, 678, 709, 708, 639, 638, 669, 668, 699, 698, 279, 278, 309, 308, 339, 338, 381, 380, 411, 410, 441, 440, 561, 560, 591, 590, 621, 620, 547, 546, 577, 576, 607, 606, 367, 366, 397, 396, 427, 426, 291, 290, 321, 320, 351, 350, 651, 650, 681, 680, 711, 710, 1, 0, 31, 30, 61, 60, 3, 2, 33, 32, 63, 62, 5, 4, 35, 34, 65, 64, 7, 6, 37, 36, 67, 66, 9, 8, 39, 38, 69, 68, 11, 10, 41, 40, 71, 70, 13, 12, 43, 42, 73, 72, 15, 14, 45, 44, 75, 74, 17, 16, 47, 46, 77, 76, 19, 18, 49, 48, 79, 78, 21, 20, 51, 50, 81, 80, 23, 22, 53, 52, 83, 82, 25, 24, 55, 54, 85, 84, 27, 26, 57, 56, 87, 86, 117, 116, 147, 146, 177, 176, 115, 114, 145, 144, 175, 174, 113, 112, 143, 142, 173, 172, 111, 110, 141, 140, 171, 170, 109, 108, 139, 138, 169, 168, 107, 106, 137, 136, 167, 166, 105, 104, 135, 134, 165, 164, 103, 102, 133, 132, 163, 162, 101, 100, 131, 130, 161, 160, 99, 98, 129, 128, 159, 158, 97, 96, 127, 126, 157, 156, 95, 94, 125, 124, 155, 154, 93, 92, 123, 122, 153, 152, 91, 90, 121, 120, 151, 150, 181, 180, 211, 210, 241, 240, 183, 182, 213, 212, 243, 242, 185, 184, 215, 214, 245, 244, 187, 186, 217, 216, 247, 246, 189, 188, 219, 218, 249, 248, 191, 190, 221, 220, 251, 250, 193, 192, 223, 222, 253, 252, 195, 194, 225, 224, 255, 254, 197, 196, 227, 226, 257, 256, 199, 198, 229, 228, 259, 258, 201, 200, 231, 230, 261, 260, 203, 202, 233, 232, 263, 262, 205, 204, 235, 234, 265, 264, 207, 206, 237, 236, 267, 266, 297, 296, 327, 326, 357, 356, 295, 294, 325, 324, 355, 354, 293, 292, 323, 322, 353, 352, 277, 276, 307, 306, 337, 336, 275, 274, 305, 304, 335, 334, 273, 272, 303, 302, 333, 332, 271, 270, 301, 300, 331, 330, 361, 360, 391, 390, 421, 420, 363, 362, 393, 392, 423, 422, 365, 364, 395, 394, 425, 424, 383, 382, 413, 412, 443, 442, 385, 384, 415, 414, 445, 444, 387, 386, 417, 416, 447, 446, 477, 476, 507, 506, 537, 536, 475, 474, 505, 504, 535, 534, 473, 472, 503, 502, 533, 532, 455, 454, 485, 484, 515, 514, 453, 452, 483, 482, 513, 512, 451, 450, 481, 480, 511, 510, 541, 540, 571, 570, 601, 600, 543, 542, 573, 572, 603, 602, 545, 544, 575, 574, 605, 604, 563, 562, 593, 592, 623, 622, 565, 564, 595, 594, 625, 624, 567, 566, 597, 596, 627, 626, 657, 656, 687, 686, 717, 716, 655, 654, 685, 684, 715, 714, 653, 652, 683, 682, 713, 712, 637, 636, 667, 666, 697, 696, 635, 634, 665, 664, 695, 694, 633, 632, 663, 662, 693, 692, 631, 630, 661, 660, 691, 690, 721, 720, 751, 750, 781, 780, 723, 722, 753, 752, 783, 782, 725, 724, 755, 754, 785, 784, 727, 726, 757, 756, 787, 786, 729, 728, 759, 758, 789, 788, 731, 730, 761, 760, 791, 790, 733, 732, 763, 762, 793, 792, 735, 734, 765, 764, 795, 794, 737, 736, 767, 766, 797, 796, 739, 738, 769, 768, 799, 798, 741, 740, 771, 770, 801, 800, 743, 742, 773, 772, 803, 802, 745, 744, 775, 774, 805, 804, 747, 746, 777, 776, 807, 806, 837, 836, 867, 866, 897, 896, 835, 834, 865, 864, 895, 894, 833, 832, 863, 862, 893, 892, 831, 830, 861, 860, 891, 890, 829, 828, 859, 858, 889, 888, 827, 826, 857, 856, 887, 886, 825, 824, 855, 854, 885, 884, 823, 822, 853, 852, 883, 882, 821, 820, 851, 850, 881, 880, 819, 818, 849, 848, 879, 878, 817, 816, 847, 846, 877, 876, 815, 814, 845, 844, 875, 874, 813, 812, 843, 842, 873, 872, 811, 810, 841, 840, 871, 870, 901, 900, 931, 930, 961, 960, 903, 902, 933, 932, 963, 962, 905, 904, 935, 934, 965, 964, 907, 906, 937, 936, 967, 966, 909, 908, 939, 938, 969, 968, 911, 910, 941, 940, 971, 970, 913, 912, 943, 942, 973, 972, 915, 914, 945, 944, 975, 974, 917, 916, 947, 946, 977, 976, 919, 918, 949, 948, 979, 978, 921, 920, 951, 950, 981, 980, 923, 922, 953, 952, 983, 982, 925, 924, 955, 954, 985, 984, 927, 926, 957, 956, 987, 986, 58, 89, 88, 118, 149, 148, 178, 209, 208, 238, 269, 268, 298, 329, 328, 358, 389, 388, 418, 449, 448, 478, 509, 508, 538, 569, 568, 598, 629, 628, 658, 689, 688, 718, 749, 748, 778, 809, 808, 838, 869, 868, 898, 929, 928, 958, 989, 988 ]); - $1.pixs = $a(864); - $1.j = 0; - for (var _CT = 0, _CS = $1.mods.length - 1; _CT <= _CS; _CT += 1) { - $1.i = _CT; - if ($get($1.mods, $1.i) == 1) { - $put($1.pixs, $1.j, $get($1.modmap, $1.i)); - $1.j = $1.j + 1; - } - } - $k[$j++] = Infinity; - var _Cf = $geti($1.pixs, 0, $1.j); - for (var _Cg = 0, _Ch = _Cf.length; _Cg < _Ch; _Cg++) { - $k[$j++] = $get(_Cf, _Cg); - } - $k[$j++] = 28; - $k[$j++] = 29; - $k[$j++] = 280; - $k[$j++] = 281; - $k[$j++] = 311; - $k[$j++] = 457; - $k[$j++] = 488; - $k[$j++] = 500; - $k[$j++] = 530; - $k[$j++] = 670; - $k[$j++] = 700; - $k[$j++] = 677; - $k[$j++] = 707; - $1.pixs = $a(); - var _Cm = new Map([ [ "ren", $0.renmaximatrix ], [ "pixs", $1.pixs ], [ "opt", $1.options ] ]); - $k[$j++] = _Cm; - if (!$1.dontdraw) { - $0.renmaximatrix(); - } - }; - $0.azteccode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.format = "unset"; - $1.readerinit = false; - $1.layers = -1; - $1.eclevel = 23; - $1.ecaddchars = 3; - $1.raw = false; - $1.parse = false; - $1.parsefnc = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.layers = ~~$1.layers; - $1.eclevel = +$1.eclevel; - $1.ecaddchars = ~~$1.ecaddchars; - $1.fn1 = -1; - var _B = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "eci", true ], [ "FNC1", $1.fn1 ] ]); - $1.fncvals = _B; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _E = $k[--$j]; - $1[$k[--$j]] = _E; - $1.msglen = $1.msg.length; - $1.msgbits = ""; - if ($ne($1.format, "rune") && $1.raw) { - $1.msgbits = $1.barcode; - } - if ($ne($1.format, "rune") && !$1.raw) { - $1.U = 0; - $1.L = 1; - $1.M = 2; - $1.P = 3; - $1.D = 4; - $1.B = 5; - $1.lu = -2; - $1.ll = -3; - $1.lm = -4; - $1.lp = -5; - $1.ld = -6; - $1.su = -7; - $1.sp = -8; - $1.sb = -9; - $1.fl = -10; - $1.p2 = -11; - $1.p3 = -12; - $1.p4 = -13; - $1.p5 = -14; - $1.charmaps = $a([ $a([ $1.sp, $1.sp, $1.sp, $1.fl, $1.sp ]), $a([ 32, 32, 32, 13, 32 ]), $a([ "A", "a", 1, $1.p2, "0" ]), $a([ "B", "b", 2, $1.p3, "1" ]), $a([ "C", "c", 3, $1.p4, "2" ]), $a([ "D", "d", 4, $1.p5, "3" ]), $a([ "E", "e", 5, "!", "4" ]), $a([ "F", "f", 6, '"', "5" ]), $a([ "G", "g", 7, "#", "6" ]), $a([ "H", "h", 8, "$", "7" ]), $a([ "I", "i", 9, "%", "8" ]), $a([ "J", "j", 10, "&", "9" ]), $a([ "K", "k", 11, "'", "," ]), $a([ "L", "l", 12, 40, "." ]), $a([ "M", "m", 13, 41, $1.lu ]), $a([ "N", "n", 27, "*", $1.su ]), $a([ "O", "o", 28, "+", -99 ]), $a([ "P", "p", 29, ",", -99 ]), $a([ "Q", "q", 30, "-", -99 ]), $a([ "R", "r", 31, ".", -99 ]), $a([ "S", "s", "@", "/", -99 ]), $a([ "T", "t", 92, ":", -99 ]), $a([ "U", "u", "^", ";", -99 ]), $a([ "V", "v", "_", "<", -99 ]), $a([ "W", "w", "`", "=", -99 ]), $a([ "X", "x", "|", ">", -99 ]), $a([ "Y", "y", "~", "?", -99 ]), $a([ "Z", "z", 127, "[", -99 ]), $a([ $1.ll, $1.su, $1.ll, "]", -99 ]), $a([ $1.lm, $1.lm, $1.lu, "{", -99 ]), $a([ $1.ld, $1.ld, $1.lp, "}", -99 ]), $a([ $1.sb, $1.sb, $1.sb, $1.lu, -99 ]) ]); - $1.charvals = $a([ new Map(), new Map(), new Map(), new Map(), new Map() ]); - for (var _1K = 0, _1J = $1.charmaps.length - 1; _1K <= _1J; _1K += 1) { - $1.i = _1K; - $1.encs = $get($1.charmaps, $1.i); - for (var _1O = 0; _1O <= 4; _1O += 1) { - $1.j = _1O; - var _1R = $get($1.encs, $1.j); - $k[$j++] = _1R; - if ($eq($type(_1R), "stringtype")) { - var _1U = $get($k[--$j], 0); - $k[$j++] = _1U; - } - $put($get($1.charvals, $1.j), $k[--$j], $1.i); - } - } - var _1e = new Map([ [ "\r\n", $1.p2 ], [ ". ", $1.p3 ], [ ", ", $1.p4 ], [ ": ", $1.p5 ] ]); - $1.pcomp = _1e; - $1.e = 1e4; - $1.latlen = $a([ $a([ 0, 5, 5, 10, 5, 10 ]), $a([ 9, 0, 5, 10, 5, 10 ]), $a([ 5, 5, 0, 5, 10, 10 ]), $a([ 5, 10, 10, 0, 10, 15 ]), $a([ 4, 9, 9, 14, 0, 14 ]), $a([ 0, 0, 0, 0, 0, 0 ]) ]); - $1.latseq = $a([ $a([ $a([]), $a([ $1.ll ]), $a([ $1.lm ]), $a([ $1.lm, $1.lp ]), $a([ $1.ld ]), $a([ $1.sb ]) ]), $a([ $a([ $1.ld, $1.lu ]), $a([]), $a([ $1.lm ]), $a([ $1.lm, $1.lp ]), $a([ $1.ld ]), $a([ $1.sb ]) ]), $a([ $a([ $1.lu ]), $a([ $1.ll ]), $a([]), $a([ $1.lp ]), $a([ $1.lu, $1.ld ]), $a([ $1.sb ]) ]), $a([ $a([ $1.lu ]), $a([ $1.lu, $1.ll ]), $a([ $1.lu, $1.lm ]), $a([]), $a([ $1.lu, $1.ld ]), $a([ $1.lu, $1.sb ]) ]), $a([ $a([ $1.lu ]), $a([ $1.lu, $1.ll ]), $a([ $1.lu, $1.lm ]), $a([ $1.lu, $1.lm, $1.lp ]), $a([]), $a([ $1.lu, $1.sb ]) ]), $a([ $a([ $1.lu ]), $a([ $1.ll ]), $a([ $1.lm ]), $a([]), $a([]), $a([]) ]) ]); - $1.shftlen = $a([ $a([ $1.e, $1.e, $1.e, 5, $1.e ]), $a([ 5, $1.e, $1.e, 5, $1.e ]), $a([ $1.e, $1.e, $1.e, 5, $1.e ]), $a([ $1.e, $1.e, $1.e, $1.e, $1.e ]), $a([ 4, $1.e, $1.e, 4, $1.e ]) ]); - $1.charsize = function() { - var _3X = $k[--$j]; - $k[$j++] = _3X; - if (_3X >= 0) { - $j--; - var _3a = $get($a([ 5, 5, 5, 5, 4, 8 ]), $k[--$j]); - $k[$j++] = _3a; - } else { - var _3b = $k[--$j]; - var _3c = $k[--$j]; - $k[$j++] = _3b; - $k[$j++] = _3c; - $j--; - var _3d = $k[--$j]; - $k[$j++] = _3d; - if (_3d == $1.fn1) { - $j--; - $k[$j++] = 8; - } else { - var _3g = $f(-$k[--$j] - 1e6); - $k[$j++] = _3g; - if (_3g == 0) { - $j--; - $k[$j++] = 1; - } - var _3h = $k[--$j]; - $k[$j++] = (~~(Math.log(_3h) / Math.log(10)) + 1) * 4 + 8; - } - } - }; - $1.curlen = $a([ 0, $1.e, $1.e, $1.e, $1.e, $1.e ]); - $1.curseq = $a([ $a([]), $a([]), $a([]), $a([]), $a([]), $a([]) ]); - $1.backto = $1.U; - $1.lastchar = ""; - $forall($1.msg, function() { - $1.char = $k[--$j]; - for (;;) { - $1.imp = false; - var _44 = $a([ $1.U, $1.L, $1.M, $1.P, $1.D, $1.B ]); - for (var _45 = 0, _46 = _44.length; _45 < _46; _45++) { - $1.x = $get(_44, _45); - var _4E = $a([ $1.U, $1.L, $1.M, $1.P, $1.D, $1.B ]); - for (var _4F = 0, _4G = _4E.length; _4F < _4G; _4F++) { - $1.y = $get(_4E, _4F); - if ($1.x != $1.B || $1.y == $1.backto) { - $1.cost = $f($get($1.curlen, $1.x) + $get($get($1.latlen, $1.x), $1.y)); - if ($1.cost < $get($1.curlen, $1.y)) { - $put($1.curlen, $1.y, $1.cost); - $k[$j++] = $1.curseq; - $k[$j++] = $1.y; - $k[$j++] = Infinity; - $aload($get($1.curseq, $1.x)); - $aload($get($get($1.latseq, $1.x), $1.y)); - var _4l = $a(); - var _4m = $k[--$j]; - $put($k[--$j], _4m, _4l); - if ($1.y == $1.B) { - $k[$j++] = "backto"; - if ($1.x == $1.P || $1.x == $1.D) { - $k[$j++] = $1.U; - } else { - $k[$j++] = $1.x; - } - var _4w = $k[--$j]; - $1[$k[--$j]] = _4w; - } - $1.imp = true; - } - } - } - } - if (!$1.imp) { - break; - } - } - $1.nxtlen = $a([ $1.e, $1.e, $1.e, $1.e, $1.e, $1.e ]); - $1.nxtseq = $a(6); - var _5D = $a([ $1.U, $1.L, $1.M, $1.P, $1.D, $1.B ]); - for (var _5E = 0, _5F = _5D.length; _5E < _5F; _5E++) { - $1.x = $get(_5D, _5E); - for (;;) { - if ($1.char >= 0) { - if ($1.x != $1.B) { - var _5O = $get($get($1.charvals, $1.x), $1.char) !== undefined; - if (!_5O) { - break; - } - } - } else { - if ($1.x != $1.P) { - break; - } - } - $k[$j++] = "cost"; - $k[$j++] = $get($1.curlen, $1.x); - $k[$j++] = $1.x; - $k[$j++] = $1.char; - $1.charsize(); - var _5W = $k[--$j]; - var _5X = $k[--$j]; - $1[$k[--$j]] = $f(_5X + _5W); - if ($1.cost < $get($1.nxtlen, $1.x)) { - $put($1.nxtlen, $1.x, $1.cost); - $k[$j++] = $1.nxtseq; - $k[$j++] = $1.x; - $k[$j++] = Infinity; - $aload($get($1.curseq, $1.x)); - $k[$j++] = $1.char; - var _5m = $a(); - var _5n = $k[--$j]; - $put($k[--$j], _5n, _5m); - } - if ($1.x == $1.B) { - break; - } - var _5w = $a([ $1.U, $1.L, $1.M, $1.P, $1.D ]); - for (var _5x = 0, _5y = _5w.length; _5x < _5y; _5x++) { - $1.y = $get(_5w, _5x); - if ($ne($1.x, $1.y)) { - $k[$j++] = "cost"; - $k[$j++] = $f($get($1.curlen, $1.y) + $get($get($1.shftlen, $1.y), $1.x)); - $k[$j++] = $1.x; - $k[$j++] = $1.char; - $1.charsize(); - var _6C = $k[--$j]; - var _6D = $k[--$j]; - $1[$k[--$j]] = $f(_6D + _6C); - if ($1.cost < $get($1.nxtlen, $1.y)) { - $put($1.nxtlen, $1.y, $1.cost); - $k[$j++] = $1.nxtseq; - $k[$j++] = $1.y; - $k[$j++] = Infinity; - $aload($get($1.curseq, $1.y)); - var _6T = $1.x == $1.U ? $1.su : $1.sp; - $k[$j++] = _6T; - $k[$j++] = $1.char; - var _6V = $a(); - var _6W = $k[--$j]; - $put($k[--$j], _6W, _6V); - } - } - } - break; - } - } - if ($ne($1.lastchar, "") && $1.char >= 0) { - var _6a = $s(2); - $put(_6a, 0, $1.lastchar); - $put(_6a, 1, $1.char); - $1.pchars = _6a; - var _6f = $get($1.pcomp, $1.pchars) !== undefined; - if (_6f) { - if ($lt($get($1.curlen, $1.P), $get($1.nxtlen, $1.P))) { - $put($1.nxtlen, $1.P, $get($1.curlen, $1.P)); - $k[$j++] = $1.nxtseq; - $k[$j++] = $1.P; - $k[$j++] = Infinity; - $aload($get($1.curseq, $1.P)); - $j--; - $k[$j++] = $get($1.pcomp, $1.pchars); - var _6z = $a(); - var _70 = $k[--$j]; - $put($k[--$j], _70, _6z); - } - } - } - if ($ne($get($1.nxtseq, $1.B), null)) { - $1.numbytes = 0; - $forall($get($1.nxtseq, $1.B), function() { - if ($k[--$j] == $1.sb) { - $k[$j++] = 0; - } else { - $k[$j++] = $1.numbytes + 1; - } - $1.numbytes = $k[--$j]; - }); - if ($1.numbytes == 32) { - $put($1.nxtlen, $1.B, $f($get($1.nxtlen, $1.B) + 11)); - } - } - $1.curlen = $1.nxtlen; - $1.curseq = $1.nxtseq; - $k[$j++] = "lastchar"; - if ($1.char >= 0) { - $k[$j++] = $1.char; - } else { - $k[$j++] = ""; - } - var _7M = $k[--$j]; - $1[$k[--$j]] = _7M; - }); - $1.minseq = $1.e; - var _7V = $a([ $1.U, $1.L, $1.M, $1.P, $1.D, $1.B ]); - for (var _7W = 0, _7X = _7V.length; _7W < _7X; _7W++) { - $1.i = $get(_7V, _7W); - if ($get($1.curlen, $1.i) < $1.minseq) { - $1.minseq = $get($1.curlen, $1.i); - $1.seq = $get($1.curseq, $1.i); - } - } - $1.tobin = function() { - var _7k = $s($k[--$j]); - $k[$j++] = _7k; - for (var _7m = 0, _7l = _7k.length - 1; _7m <= _7l; _7m += 1) { - var _7n = $k[--$j]; - $put(_7n, _7m, 48); - $k[$j++] = _7n; - } - var _7o = $k[--$j]; - var _7r = $cvrs($s(_7o.length), $k[--$j], 2); - $puti(_7o, _7o.length - _7r.length, _7r); - $k[$j++] = _7o; - }; - $1.encu = function() { - var _7w = $get($get($1.charvals, $1.U), $k[--$j]); - $k[$j++] = _7w; - $k[$j++] = 5; - $1.tobin(); - }; - $1.encl = function() { - var _81 = $get($get($1.charvals, $1.L), $k[--$j]); - $k[$j++] = _81; - $k[$j++] = 5; - $1.tobin(); - }; - $1.encm = function() { - var _86 = $get($get($1.charvals, $1.M), $k[--$j]); - $k[$j++] = _86; - $k[$j++] = 5; - $1.tobin(); - }; - $1.encd = function() { - var _8B = $get($get($1.charvals, $1.D), $k[--$j]); - $k[$j++] = _8B; - $k[$j++] = 4; - $1.tobin(); - }; - $1.encp = function() { - var _8C = $k[--$j]; - $k[$j++] = _8C; - if (_8C == $1.fn1) { - $j--; - $k[$j++] = "00000000"; - } else { - var _8E = $k[--$j]; - $k[$j++] = _8E; - if (_8E <= -1e6) { - var _8G = $f(-$k[--$j] - 1e6); - $k[$j++] = _8G; - $k[$j++] = _8G; - if (_8G == 0) { - $j--; - $k[$j++] = 1; - } - var _8I = ~~(Math.log($k[--$j]) / Math.log(10)); - var _8J = $s((_8I + 1) * 4 + 8); - $puti(_8J, 0, "00000"); - $k[$j++] = _8I; - $k[$j++] = _8J; - $k[$j++] = _8J; - $k[$j++] = _8I + 1; - $k[$j++] = 3; - $1.tobin(); - var _8K = $k[--$j]; - $puti($k[--$j], 5, _8K); - var _8M = $k[--$j]; - var _8N = $k[--$j]; - var _8O = $k[--$j]; - $k[$j++] = _8M; - $k[$j++] = _8O; - for (var _8P = _8N; _8P >= 0; _8P -= 1) { - var _8Q = $k[--$j]; - var _8R = $k[--$j]; - $k[$j++] = _8R; - $k[$j++] = ~~(_8Q / 10); - $k[$j++] = _8R; - $k[$j++] = _8P * 4 + 8; - $k[$j++] = $f(_8Q % 10 + 2); - $k[$j++] = 4; - $1.tobin(); - var _8S = $k[--$j]; - var _8T = $k[--$j]; - $puti($k[--$j], _8T, _8S); - } - $j--; - } else { - var _8Z = $get($get($1.charvals, $1.P), $k[--$j]); - $k[$j++] = _8Z; - $k[$j++] = 5; - $1.tobin(); - } - } - }; - $1.encfuncs = $a([ "encu", "encl", "encm", "encp", "encd" ]); - $1.addtomsgbits = function() { - $1.v = $k[--$j]; - $puti($1.msgbits, $1.j, $1.v); - $1.j = $1.j + $1.v.length; - }; - $1.state = $1.U; - $1.msgbits = $s($1.minseq); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i >= $1.seq.length) { - break; - } - if ($1.state != $1.B) { - $1.char = $get($1.seq, $1.i); - $k[$j++] = $1.char; - if ($1[$get($1.encfuncs, $1.state)]() === true) { - break; - } - $1.addtomsgbits(); - $1.i = $1.i + 1; - if ($1.char == $1.su || $1.char == $1.sp) { - $k[$j++] = $get($1.seq, $1.i); - if ($1.char == $1.su) { - $1.encu(); - } else { - $1.encp(); - } - $1.addtomsgbits(); - $1.i = $1.i + 1; - } - if ($1.char == $1.lu) { - $1.state = $1.U; - } - if ($1.char == $1.ll) { - $1.state = $1.L; - } - if ($1.char == $1.lm) { - $1.state = $1.M; - } - if ($1.char == $1.lp) { - $1.state = $1.P; - } - if ($1.char == $1.ld) { - $1.state = $1.D; - } - if ($1.char == $1.sb) { - $1.state = $1.B; - } - } else { - $1.numbytes = 0; - for (;;) { - if ($1.i + $1.numbytes >= $1.seq.length) { - break; - } - if ($get($1.seq, $1.i + $1.numbytes) < 0) { - break; - } - $1.numbytes = $1.numbytes + 1; - } - if ($1.numbytes <= 31) { - $k[$j++] = $1.numbytes; - $k[$j++] = 5; - $1.tobin(); - $1.addtomsgbits(); - } else { - $k[$j++] = 0; - $k[$j++] = 5; - $1.tobin(); - $1.addtomsgbits(); - $k[$j++] = $1.numbytes - 31; - $k[$j++] = 11; - $1.tobin(); - $1.addtomsgbits(); - } - for (var _9b = 0, _9c = $1.numbytes; _9b < _9c; _9b++) { - $k[$j++] = $get($1.seq, $1.i); - $k[$j++] = 8; - $1.tobin(); - $1.addtomsgbits(); - $1.i = $1.i + 1; - } - if ($1.i < $1.seq.length) { - $1.char = $get($1.seq, $1.i); - $1.i = $1.i + 1; - if ($1.char == $1.lu) { - $1.state = $1.U; - } - if ($1.char == $1.ll) { - $1.state = $1.L; - } - if ($1.char == $1.lm) { - $1.state = $1.M; - } - } - } - } - } - $1.metrics = $a([ $a([ "rune", 0, 0, 0, 6 ]), $a([ "compact", 1, 1, 17, 6 ]), $a([ "full", 1, 1, 21, 6 ]), $a([ "compact", 2, 0, 40, 6 ]), $a([ "full", 2, 1, 48, 6 ]), $a([ "compact", 3, 0, 51, 8 ]), $a([ "full", 3, 1, 60, 8 ]), $a([ "compact", 4, 0, 76, 8 ]), $a([ "full", 4, 1, 88, 8 ]), $a([ "full", 5, 1, 120, 8 ]), $a([ "full", 6, 1, 156, 8 ]), $a([ "full", 7, 1, 196, 8 ]), $a([ "full", 8, 1, 240, 8 ]), $a([ "full", 9, 1, 230, 10 ]), $a([ "full", 10, 1, 272, 10 ]), $a([ "full", 11, 1, 316, 10 ]), $a([ "full", 12, 1, 364, 10 ]), $a([ "full", 13, 1, 416, 10 ]), $a([ "full", 14, 1, 470, 10 ]), $a([ "full", 15, 1, 528, 10 ]), $a([ "full", 16, 1, 588, 10 ]), $a([ "full", 17, 1, 652, 10 ]), $a([ "full", 18, 1, 720, 10 ]), $a([ "full", 19, 1, 790, 10 ]), $a([ "full", 20, 1, 864, 10 ]), $a([ "full", 21, 1, 940, 10 ]), $a([ "full", 22, 1, 1020, 10 ]), $a([ "full", 23, 0, 920, 12 ]), $a([ "full", 24, 0, 992, 12 ]), $a([ "full", 25, 0, 1066, 12 ]), $a([ "full", 26, 0, 1144, 12 ]), $a([ "full", 27, 0, 1224, 12 ]), $a([ "full", 28, 0, 1306, 12 ]), $a([ "full", 29, 0, 1392, 12 ]), $a([ "full", 30, 0, 1480, 12 ]), $a([ "full", 31, 0, 1570, 12 ]), $a([ "full", 32, 0, 1664, 12 ]) ]); - $1.i = 0; - for (;;) { - $1.m = $get($1.metrics, $1.i); - $1.frmt = $get($1.m, 0); - $1.mlyr = $get($1.m, 1); - $1.icap = $get($1.m, 2); - $1.ncws = $get($1.m, 3); - $1.bpcw = $get($1.m, 4); - $1.numecw = ~~Math.ceil($f($1.ncws * $1.eclevel / 100 + $1.ecaddchars)); - if ($1.msgbits.length == 0) { - $1.numecw = 0; - } - $1.numdcw = $f($1.ncws - $1.numecw); - $1.okay = true; - if ($ne($1.format, "unset") && $ne($1.format, $1.frmt)) { - $1.okay = false; - } - if ($1.readerinit && $1.icap != 1) { - $1.okay = false; - } - if ($1.layers != -1 && $1.layers != $1.mlyr) { - $1.okay = false; - } - if (~~Math.ceil($1.msgbits.length / $1.bpcw) > $1.numdcw) { - $1.okay = false; - } - if ($1.okay) { - break; - } - $1.i = $1.i + 1; - } - $1.layers = $1.mlyr; - $1.format = $1.frmt; - $1.allzero = function() { - var _B6 = $k[--$j]; - $k[$j++] = $eq(_B6, $geti("000000000000", 0, _B6.length)); - }; - $1.allones = function() { - var _B8 = $k[--$j]; - $k[$j++] = $eq(_B8, $geti("111111111111", 0, _B8.length)); - }; - $1.cws = $a($1.ncws); - $1.m = 0; - $1.c = 0; - for (;;) { - if ($1.msgbits.length <= $1.m) { - break; - } - if ($1.msgbits.length - $1.m >= $1.bpcw) { - $1.cwb = $geti($1.msgbits, $1.m, $f($1.bpcw - 1)); - $1.cwf = $geti($1.msgbits, $f($f($1.m + $1.bpcw) - 1), 1); - $k[$j++] = $1.cwb; - $1.allzero(); - if ($k[--$j]) { - $1.cwf = "1"; - $1.m = $1.m - 1; - } - $k[$j++] = $1.cwb; - $1.allones(); - if ($k[--$j]) { - $1.cwf = "0"; - $1.m = $1.m - 1; - } - var _BV = $s(12); - $puti(_BV, 0, $1.cwb); - $puti(_BV, $f($1.bpcw - 1), $1.cwf); - $1.cwb = $geti(_BV, 0, $1.bpcw); - } else { - $1.cwb = $geti($1.msgbits, $1.m, $1.msgbits.length - $1.m); - var _Bh = $strcpy($s(12), "111111111111"); - $puti(_Bh, 0, $1.cwb); - $1.cwb = $geti(_Bh, 0, $1.bpcw); - $k[$j++] = $1.cwb; - $1.allones(); - if ($k[--$j]) { - $puti($1.cwb, $1.cwb.length - 1, "0"); - } - } - $1.cw = 0; - for (var _Br = 0, _Bq = $f($1.bpcw - 1); _Br <= _Bq; _Br += 1) { - $1.i = _Br; - $1.cw = $f($1.cw + ~~Math.pow(2, $f($f($1.bpcw - $1.i) - 1)) * $f($get($1.cwb, $1.i) - 48)); - } - $put($1.cws, $1.c, $1.cw); - $1.m = $f($1.m + $1.bpcw); - $1.c = $1.c + 1; - } - $1.cws = $geti($1.cws, 0, $1.c); - $1.rscodes = function() { - $1.rspm = $k[--$j]; - $1.rsgf = $k[--$j]; - $1.rsnc = $k[--$j]; - $1.rscws = $k[--$j]; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _CC = 0, _CD = $f($1.rsgf - 1); _CC < _CD; _CC++) { - var _CE = $k[--$j]; - var _CF = _CE * 2; - $k[$j++] = _CE; - $k[$j++] = _CF; - if (_CF >= $1.rsgf) { - var _CI = $k[--$j]; - $k[$j++] = $xo(_CI, $1.rspm); - } - } - $1.rsalog = $a(); - $1.rslog = $a($1.rsgf); - for (var _CO = 1, _CN = $f($1.rsgf - 1); _CO <= _CN; _CO += 1) { - $put($1.rslog, $get($1.rsalog, _CO), _CO); - } - $1.rsprod = function() { - var _CS = $k[--$j]; - var _CT = $k[--$j]; - $k[$j++] = _CT; - $k[$j++] = _CS; - if (_CS != 0 && _CT != 0) { - var _CW = $get($1.rslog, $k[--$j]); - var _Cc = $get($1.rsalog, $f(_CW + $get($1.rslog, $k[--$j])) % $f($1.rsgf - 1)); - $k[$j++] = _Cc; - } else { - $j -= 2; - $k[$j++] = 0; - } - }; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _Ce = 0, _Cf = $1.rsnc; _Ce < _Cf; _Ce++) { - $k[$j++] = 0; - } - $1.coeffs = $a(); - for (var _Cj = 1, _Ci = $1.rsnc; _Cj <= _Ci; _Cj += 1) { - $1.i = _Cj; - $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); - for (var _Cq = $1.i - 1; _Cq >= 1; _Cq -= 1) { - $1.j = _Cq; - $k[$j++] = $1.coeffs; - $k[$j++] = $1.j; - $k[$j++] = $get($1.coeffs, $1.j - 1); - $k[$j++] = $get($1.coeffs, $1.j); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _D2 = $k[--$j]; - var _D3 = $k[--$j]; - var _D4 = $k[--$j]; - $put($k[--$j], _D4, $xo(_D3, _D2)); - } - $k[$j++] = $1.coeffs; - $k[$j++] = 0; - $k[$j++] = $get($1.coeffs, 0); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _DC = $k[--$j]; - var _DD = $k[--$j]; - $put($k[--$j], _DD, _DC); - } - $1.nd = $1.rscws.length; - $k[$j++] = Infinity; - $forall($1.rscws); - for (var _DI = 0, _DJ = $1.rsnc; _DI < _DJ; _DI++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.rscws = $a(); - for (var _DN = 0, _DM = $1.nd - 1; _DN <= _DM; _DN += 1) { - $1.k = $xo($get($1.rscws, _DN), $get($1.rscws, $1.nd)); - for (var _DV = 0, _DU = $f($1.rsnc - 1); _DV <= _DU; _DV += 1) { - $1.j = _DV; - $k[$j++] = $1.rscws; - $k[$j++] = $1.nd + $1.j; - $k[$j++] = $get($1.rscws, $1.nd + $1.j + 1); - $k[$j++] = $1.k; - $k[$j++] = $get($1.coeffs, $f($f($1.rsnc - $1.j) - 1)); - $1.rsprod(); - var _Di = $k[--$j]; - var _Dj = $k[--$j]; - var _Dk = $k[--$j]; - $put($k[--$j], _Dk, $xo(_Dj, _Di)); - } - } - $k[$j++] = $geti($1.rscws, 0, $1.rscws.length - 1); - }; - if ($eq($1.format, "full")) { - $1.mode = ($f($1.layers - 1) << 11) + ($1.cws.length - 1); - if ($1.readerinit) { - $1.mode = $1.mode | 1024; - } - $1.mode = $a([ ($1.mode & 61440) >>> 12, ($1.mode & 3840) >>> 8, ($1.mode & 240) >>> 4, $1.mode & 15 ]); - $k[$j++] = "mode"; - $k[$j++] = $1.mode; - $k[$j++] = 6; - $k[$j++] = 16; - $k[$j++] = 19; - $1.rscodes(); - var _E0 = $k[--$j]; - $1[$k[--$j]] = _E0; - } - if ($eq($1.format, "compact")) { - $1.mode = ($f($1.layers - 1) << 6) + ($1.cws.length - 1); - if ($1.readerinit) { - $1.mode = $1.mode | 32; - } - $1.mode = $a([ ($1.mode & 240) >>> 4, $1.mode & 15 ]); - $k[$j++] = "mode"; - $k[$j++] = $1.mode; - $k[$j++] = 5; - $k[$j++] = 16; - $k[$j++] = 19; - $1.rscodes(); - var _EB = $k[--$j]; - $1[$k[--$j]] = _EB; - } - if ($eq($1.format, "rune")) { - $1.mode = ~~$z($1.barcode); - $1.mode = $a([ ($1.mode & 240) >>> 4, $1.mode & 15 ]); - $k[$j++] = "mode"; - $k[$j++] = $1.mode; - $k[$j++] = 5; - $k[$j++] = 16; - $k[$j++] = 19; - $1.rscodes(); - var _EJ = $k[--$j]; - $1[$k[--$j]] = _EJ; - $k[$j++] = Infinity; - var _EL = $1.mode; - for (var _EM = 0, _EN = _EL.length; _EM < _EN; _EM++) { - $k[$j++] = $get(_EL, _EM) ^ 10; - } - $1.mode = $a(); - } - $1.modebits = $s($1.mode.length * 4); - for (var _EU = 0, _ET = $1.modebits.length - 1; _EU <= _ET; _EU += 1) { - $puti($1.modebits, _EU, "0"); - } - for (var _EY = 0, _EX = $1.mode.length - 1; _EY <= _EX; _EY += 1) { - $1.i = _EY; - var _Ee = $cvrs($s(4), $get($1.mode, $1.i), 2); - $puti($1.modebits, 4 - _Ee.length + 4 * $1.i, _Ee); - } - $1.rsparams = $a([ $a([]), $a([]), $a([]), $a([]), $a([]), $a([]), $a([ 64, 67 ]), $a([]), $a([ 256, 301 ]), $a([]), $a([ 1024, 1033 ]), $a([]), $a([ 4096, 4201 ]) ]); - $k[$j++] = "cws"; - $k[$j++] = $1.cws; - $k[$j++] = $f($1.ncws - $1.cws.length); - $forall($get($1.rsparams, $1.bpcw)); - $1.rscodes(); - var _F0 = $k[--$j]; - $1[$k[--$j]] = _F0; - if ($eq($1.format, "full")) { - $1.databits = $s($f($1.layers * $1.layers * 16 + $1.layers * 112)); - } else { - $1.databits = $s($f($1.layers * $1.layers * 16 + $1.layers * 88)); - } - for (var _FD = 0, _FC = $1.databits.length - 1; _FD <= _FC; _FD += 1) { - $puti($1.databits, _FD, "0"); - } - for (var _FH = 0, _FG = $f($1.ncws - 1); _FH <= _FG; _FH += 1) { - $1.i = _FH; - var _FO = $cvrs($s($1.bpcw), $get($1.cws, $1.i), 2); - $puti($1.databits, $f($f($f($1.bpcw - _FO.length) + $1.bpcw * $1.i) + $f($1.databits.length - $1.ncws * $1.bpcw)), _FO); - } - $1.cmv = function() { - var _FW = $k[--$j]; - var _FX = $k[--$j]; - $k[$j++] = $f($f(_FX - _FW * $1.size) + $1.mid); - }; - $1.lmv = function() { - $1.lbit = $k[--$j]; - $1.llyr = $k[--$j]; - $1.lwid = $f($1.fw + $1.llyr * 4); - $1.ldir = ~~(~~($1.lbit / 2) / $1.lwid); - if ($1.ldir == 0) { - $k[$j++] = $f(-~~($f($1.lwid - 1) / 2) + 1 + ~~($1.lbit / 2) % $1.lwid); - $k[$j++] = $f($f(~~(($1.fw - 1) / 2) + $1.llyr * 2) + $1.lbit % 2); - $1.cmv(); - } - if ($1.ldir == 1) { - $k[$j++] = $f($f(~~($1.fw / 2) + $1.llyr * 2) + $1.lbit % 2); - $k[$j++] = $f(~~($f($1.lwid - 1) / 2) - 1 - ~~($1.lbit / 2) % $1.lwid); - $1.cmv(); - } - if ($1.ldir == 2) { - $k[$j++] = -$f(-~~($1.lwid / 2) + 1 + ~~($1.lbit / 2) % $1.lwid); - $k[$j++] = -$f($f(~~($1.fw / 2) + $1.llyr * 2) + $1.lbit % 2); - $1.cmv(); - } - if ($1.ldir == 3) { - $k[$j++] = -$f($f(~~(($1.fw - 1) / 2) + $1.llyr * 2) + $1.lbit % 2); - $k[$j++] = -$f(~~($1.lwid / 2) - 1 - ~~($1.lbit / 2) % $1.lwid); - $1.cmv(); - } - }; - if ($eq($1.format, "full")) { - $1.fw = 12; - } else { - $1.fw = 9; - } - $1.size = $f($f($1.fw + $1.layers * 4) + 2); - $k[$j++] = Infinity; - for (var _GC = 0, _GD = $1.size * $1.size; _GC < _GD; _GC++) { - $k[$j++] = -1; - } - $1.pixs = $a(); - $1.mid = $f(~~($f($1.size - 1) / 2) * $1.size + ~~($f($1.size - 1) / 2)); - $1.i = 0; - for (var _GK = 1, _GJ = $1.layers; _GK <= _GJ; _GK += 1) { - $1.layer = _GK; - for (var _GO = 0, _GN = ($1.fw + $1.layer * 4) * 8 - 1; _GO <= _GN; _GO += 1) { - $1.pos = _GO; - $k[$j++] = $1.pixs; - $k[$j++] = $1.layer; - $k[$j++] = $1.pos; - $1.lmv(); - var _GW = $k[--$j]; - $put($k[--$j], _GW, $get($1.databits, $1.databits.length - $1.i - 1) - 48); - $1.i = $1.i + 1; - } - } - if ($eq($1.format, "full")) { - $1.fw = 13; - $1.size = $f($f($f($1.fw + $1.layers * 4) + 2) + ~~$f($f($1.layers + 10.5) / 7.5 - 1) * 2); - $1.mid = ~~($1.size * $1.size / 2); - $k[$j++] = Infinity; - for (var _Gh = 0, _Gi = $1.size * $1.size; _Gh < _Gi; _Gh++) { - $k[$j++] = -2; - } - $1.npixs = $a(); - for (var _Gm = 0, _Gl = ~~($1.size / 2); _Gm <= _Gl; _Gm += 16) { - $1.i = _Gm; - for (var _Gp = 0, _Go = $f($1.size - 1); _Gp <= _Go; _Gp += 1) { - $1.j = _Gp; - $k[$j++] = $1.npixs; - $k[$j++] = -~~($1.size / 2) + $1.j; - $k[$j++] = $1.i; - $1.cmv(); - var _Gy = $k[--$j]; - $puti($k[--$j], _Gy, $a([ (~~($1.size / 2) + $1.j + $1.i + 1) % 2 ])); - $k[$j++] = $1.npixs; - $k[$j++] = -~~($1.size / 2) + $1.j; - $k[$j++] = -$1.i; - $1.cmv(); - var _H8 = $k[--$j]; - $puti($k[--$j], _H8, $a([ (~~($1.size / 2) + $1.j + $1.i + 1) % 2 ])); - $k[$j++] = $1.npixs; - $k[$j++] = $1.i; - $k[$j++] = -~~($1.size / 2) + $1.j; - $1.cmv(); - var _HI = $k[--$j]; - $puti($k[--$j], _HI, $a([ (~~($1.size / 2) + $1.j + $1.i + 1) % 2 ])); - $k[$j++] = $1.npixs; - $k[$j++] = -$1.i; - $k[$j++] = -~~($1.size / 2) + $1.j; - $1.cmv(); - var _HS = $k[--$j]; - $puti($k[--$j], _HS, $a([ (~~($1.size / 2) + $1.j + $1.i + 1) % 2 ])); - } - } - $1.j = 0; - for (var _HW = 0, _HV = $1.npixs.length - 1; _HW <= _HV; _HW += 1) { - $1.i = _HW; - if ($get($1.npixs, $1.i) == -2) { - $put($1.npixs, $1.i, $get($1.pixs, $1.j)); - $1.j = $1.j + 1; - } - } - $1.pixs = $1.npixs; - } - $1.fw = ~~($1.fw / 2); - for (var _Hl = -$1.fw, _Hk = $1.fw; _Hl <= _Hk; _Hl += 1) { - $1.i = _Hl; - for (var _Hp = -$1.fw, _Ho = $1.fw; _Hp <= _Ho; _Hp += 1) { - $1.j = _Hp; - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.cmv(); - if (Math.abs($1.i) > Math.abs($1.j)) { - $k[$j++] = Math.abs($1.i); - } else { - $k[$j++] = Math.abs($1.j); - } - var _Hx = $k[--$j]; - var _Hy = $k[--$j]; - $put($k[--$j], _Hy, $f(_Hx + 1) % 2); - } - } - var _Ia = $a([ $a([ -($1.fw + 1), $1.fw, 1 ]), $a([ -($1.fw + 1), $1.fw + 1, 1 ]), $a([ -$1.fw, $1.fw + 1, 1 ]), $a([ $1.fw + 1, $1.fw + 1, 1 ]), $a([ $1.fw + 1, $1.fw, 1 ]), $a([ $1.fw + 1, -$1.fw, 1 ]), $a([ $1.fw, $1.fw + 1, 0 ]), $a([ $1.fw + 1, -($1.fw + 1), 0 ]), $a([ $1.fw, -($1.fw + 1), 0 ]), $a([ -$1.fw, -($1.fw + 1), 0 ]), $a([ -($1.fw + 1), -($1.fw + 1), 0 ]), $a([ -($1.fw + 1), -$1.fw, 0 ]) ]); - for (var _Ib = 0, _Ic = _Ia.length; _Ib < _Ic; _Ib++) { - $k[$j++] = $1.pixs; - $forall($get(_Ia, _Ib)); - var _If = $k[--$j]; - var _Ig = $k[--$j]; - var _Ih = $k[--$j]; - $k[$j++] = _If; - $k[$j++] = _Ih; - $k[$j++] = _Ig; - $1.cmv(); - var _Ii = $k[--$j]; - var _Ij = $k[--$j]; - $put($k[--$j], _Ii, _Ij); - } - if ($eq($1.format, "full")) { - $1.modemap = $a([ $a([ -5, 7 ]), $a([ -4, 7 ]), $a([ -3, 7 ]), $a([ -2, 7 ]), $a([ -1, 7 ]), $a([ 1, 7 ]), $a([ 2, 7 ]), $a([ 3, 7 ]), $a([ 4, 7 ]), $a([ 5, 7 ]), $a([ 7, 5 ]), $a([ 7, 4 ]), $a([ 7, 3 ]), $a([ 7, 2 ]), $a([ 7, 1 ]), $a([ 7, -1 ]), $a([ 7, -2 ]), $a([ 7, -3 ]), $a([ 7, -4 ]), $a([ 7, -5 ]), $a([ 5, -7 ]), $a([ 4, -7 ]), $a([ 3, -7 ]), $a([ 2, -7 ]), $a([ 1, -7 ]), $a([ -1, -7 ]), $a([ -2, -7 ]), $a([ -3, -7 ]), $a([ -4, -7 ]), $a([ -5, -7 ]), $a([ -7, -5 ]), $a([ -7, -4 ]), $a([ -7, -3 ]), $a([ -7, -2 ]), $a([ -7, -1 ]), $a([ -7, 1 ]), $a([ -7, 2 ]), $a([ -7, 3 ]), $a([ -7, 4 ]), $a([ -7, 5 ]) ]); - } else { - $1.modemap = $a([ $a([ -3, 5 ]), $a([ -2, 5 ]), $a([ -1, 5 ]), $a([ 0, 5 ]), $a([ 1, 5 ]), $a([ 2, 5 ]), $a([ 3, 5 ]), $a([ 5, 3 ]), $a([ 5, 2 ]), $a([ 5, 1 ]), $a([ 5, 0 ]), $a([ 5, -1 ]), $a([ 5, -2 ]), $a([ 5, -3 ]), $a([ 3, -5 ]), $a([ 2, -5 ]), $a([ 1, -5 ]), $a([ 0, -5 ]), $a([ -1, -5 ]), $a([ -2, -5 ]), $a([ -3, -5 ]), $a([ -5, -3 ]), $a([ -5, -2 ]), $a([ -5, -1 ]), $a([ -5, 0 ]), $a([ -5, 1 ]), $a([ -5, 2 ]), $a([ -5, 3 ]) ]); - } - for (var _Jw = 0, _Jv = $1.modemap.length - 1; _Jw <= _Jv; _Jw += 1) { - $1.i = _Jw; - $k[$j++] = $1.pixs; - $forall($get($1.modemap, $1.i)); - $1.cmv(); - var _K4 = $k[--$j]; - $put($k[--$j], _K4, $get($1.modebits, $1.i) - 48); - } - var _KC = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", $1.size ], [ "pixy", $1.size ], [ "height", $1.size * 2 / 72 ], [ "width", $1.size * 2 / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _KC; - if (!$1.dontdraw) { - $0.renmatrix(); - } - }; - $0.azteccodecompact = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $put($1.options, "dontdraw", true); - $put($1.options, "format", "compact"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.azteccode(); - var _9 = $k[--$j]; - $1[$k[--$j]] = _9; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } - }; - $0.aztecrune = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $put($1.options, "dontdraw", true); - $put($1.options, "format", "rune"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.azteccode(); - var _9 = $k[--$j]; - $1[$k[--$j]] = _9; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + $0.aztecrune = function() { + var $1 = {}; //#21182 + $1.options = $k[--$j]; //#21184 + $1.barcode = $k[--$j]; //#21185 + $1.dontdraw = false; //#21187 + $forall($1.options, function() { //#21198 + var _3 = $k[--$j]; //#21198 + $1[$k[--$j]] = _3; //#21198 + }); //#21198 + $put($1.options, "dontdraw", true); //#21201 + $put($1.options, "format", "rune"); //#21202 + $k[$j++] = 'args'; //#21204 + $k[$j++] = $1.barcode; //#21204 + $k[$j++] = $1.options; //#21204 + $0.azteccode(); //#21204 + var _9 = $k[--$j]; //#21204 + $1[$k[--$j]] = _9; //#21204 + $put($1.args, "opt", $1.options); //#21206 + $k[$j++] = $1.args; //#21209 + if (!$1.dontdraw) { //#21209 + $0.renmatrix(); //#21209 + } //#21209 }; $0.codeone = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.version = "unset"; - $1.parse = false; - $1.parsefnc = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.stype = $eq($geti($1.version, 0, 1), "S"); - if ($1.stype) { - $1.vals = $a([ "1", "1010", "1100100", "1111101000", "10011100010000", "11000011010100000", "11110100001001000000", "100110001001011010000000", "101111101011110000100000000", "111011100110101100101000000000", "1001010100000010111110010000000000", "1011101001000011101101110100000000000", "1110100011010100101001010001000000000000", "10010001100001001110011100101010000000000000", "10110101111001100010000011110100100000000000000", "11100011010111111010100100110001101000000000000000", "100011100001101111001001101111110000010000000000000000", "101100011010001010111100001011101100010100000000000000000" ]); + var $1 = {}; //#21239 + $1.options = $k[--$j]; //#21241 + $1.barcode = $k[--$j]; //#21242 + $1.dontdraw = false; //#21244 + $1.version = "unset"; //#21245 + $1.parse = false; //#21246 + $1.parsefnc = false; //#21247 + $forall($1.options, function() { //#21258 + var _3 = $k[--$j]; //#21258 + $1[$k[--$j]] = _3; //#21258 + }); //#21258 + $1.stype = $eq($geti($1.version, 0, 1), "S"); //#21260 + if ($1.stype) { //#21895 + $1.vals = $a(["1", "1010", "1100100", "1111101000", "10011100010000", "11000011010100000", "11110100001001000000", "100110001001011010000000", "101111101011110000100000000", "111011100110101100101000000000", "1001010100000010111110010000000000", "1011101001000011101101110100000000000", "1110100011010100101001010001000000000000", "10010001100001001110011100101010000000000000", "10110101111001100010000011110100100000000000000", "11100011010111111010100100110001101000000000000000", "100011100001101111001001101111110000010000000000000000", "101100011010001010111100001011101100010100000000000000000"]); //#21282 $1.normalize = function() { - $1.base = $k[--$j]; - $1.num = $k[--$j]; - for (var _C = $1.num.length - 1; _C >= 1; _C -= 1) { - $1.i = _C; - var _D = $1.num; - var _E = $1.i; - $put(_D, _E - 1, $f($get(_D, _E - 1) + ~~($get($1.num, $1.i) / $1.base))); - $put($1.num, $1.i, $get($1.num, $1.i) % $1.base); - } - for (;;) { - if ($lt($get($1.num, 0), $1.base)) { - break; - } - $k[$j++] = Infinity; - $k[$j++] = 0; - $forall($1.num); - $1.num = $a(); - $put($1.num, 0, $f($get($1.num, 0) + ~~($get($1.num, 1) / $1.base))); - $put($1.num, 1, $get($1.num, 1) % $1.base); - } - $k[$j++] = Infinity; - $1.i = true; - var _f = $1.num; - for (var _g = 0, _h = _f.length; _g < _h; _g++) { - var _i = $get(_f, _g); - $k[$j++] = _i; - if (_i == 0 && $1.i) { - $j--; - } else { - $1.i = false; - } - } - $1.num = $a(); - if ($1.num.length == 0) { - $1.num = $a([ 0 ]); - } - $k[$j++] = $1.num; - }; + $1.base = $k[--$j]; //#21285 + $1.num = $k[--$j]; //#21286 + for (var _C = $1.num.length - 1; _C >= 1; _C -= 1) { //#21291 + $1.i = _C; //#21288 + var _D = $1.num; //#21289 + var _E = $1.i; //#21289 + $put(_D, _E - 1, $f($get(_D, _E - 1) + (~~($get($1.num, $1.i) / $1.base)))); //#21289 + $put($1.num, $1.i, $get($1.num, $1.i) % $1.base); //#21290 + } //#21290 + for (;;) { //#21297 + if ($lt($get($1.num, 0), $1.base)) { //#21293 + break; //#21293 + } //#21293 + $k[$j++] = Infinity; //#21294 + $k[$j++] = 0; //#21294 + $forall($1.num); //#21294 + $1.num = $a(); //#21294 + $put($1.num, 0, $f($get($1.num, 0) + (~~($get($1.num, 1) / $1.base)))); //#21295 + $put($1.num, 1, $get($1.num, 1) % $1.base); //#21296 + } //#21296 + $k[$j++] = Infinity; //#21299 + $1.i = true; //#21299 + var _f = $1.num; //#21299 + for (var _g = 0, _h = _f.length; _g < _h; _g++) { //#21299 + var _i = $get(_f, _g); //#21299 + $k[$j++] = _i; //#21299 + if ((_i == 0) && $1.i) { //#21299 + $j--; //#21299 + } else { //#21299 + $1.i = false; //#21299 + } //#21299 + } //#21299 + $1.num = $a(); //#21299 + if ($1.num.length == 0) { //#21300 + $1.num = $a([0]); //#21300 + } //#21300 + $k[$j++] = $1.num; //#21301 + }; //#21302 $1.bigadd = function() { - var _o = $k[--$j]; - var _p = $k[--$j]; - $1.offset = Math.abs(_o.length - _p.length); - if (_o.length < _p.length) { - var _ = _o; - _o = _p; - _p = _; - } - $1.a = _o; - $1.b = _p; - for (var _s = 0, _r = $1.b.length - 1; _s <= _r; _s += 1) { - var _t = $1.a; - var _u = $1.offset; - $put(_t, _s + _u, $f($get(_t, _s + _u) + $get($1.b, _s))); - } - $k[$j++] = $1.a; - }; - $1.barlen = $1.barcode.length; - $1.v = $a([ 1 ]); - for (var _13 = 0, _12 = $1.barlen - 1; _13 <= _12; _13 += 1) { - $1.i = _13; - $k[$j++] = Infinity; - $forall($get($1.vals, $1.i), function() { - var _17 = $k[--$j]; - $k[$j++] = $f(_17 - 48) * $f($get($1.barcode, $1.barlen - $1.i - 1) - 48); - }); - var _1C = $a(); - $k[$j++] = _1C; - $k[$j++] = $1.v; - $1.bigadd(); - $1.v = $k[--$j]; - } - $k[$j++] = "v"; - $k[$j++] = $1.v; - $k[$j++] = 2; - $1.normalize(); - var _1G = $k[--$j]; - $1[$k[--$j]] = _1G; - $k[$j++] = Infinity; - for (var _1J = 0, _1K = (5 - $1.v.length % 5) % 5; _1J < _1K; _1J++) { - $k[$j++] = 0; - } - $aload($1.v); - $1.v = $a(); - $1.cws = $a(~~($1.v.length / 5)); - for (var _1R = 0, _1Q = $1.cws.length - 1; _1R <= _1Q; _1R += 1) { - $1.i = _1R; - var _1U = $geti($1.v, $1.i * 5, 5); - $k[$j++] = 0; - for (var _1V = 0, _1W = _1U.length; _1V < _1W; _1V++) { - var _1Y = $k[--$j]; - $k[$j++] = $f(_1Y + $get(_1U, _1V)) * 2; - } - $put($1.cws, $1.i, ~~($k[--$j] / 2)); - } - $1.metrics = $a([ $a([ "S-10", 8, 11, 10, 4, 4, 1, 99, 99, 99 ]), $a([ "S-20", 8, 21, 20, 8, 8, 1, 99, 99, 99 ]), $a([ "S-30", 8, 31, 30, 12, 12, 1, 99, 99, 99 ]) ]); - } else { - $1.fnc1 = -1; - $1.fnc3 = -2; - var _1k = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "eci", true ], [ "FNC1", $1.fnc1 ], [ "FNC3", $1.fnc3 ] ]); - $1.fncvals = _1k; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _1n = $k[--$j]; - $1[$k[--$j]] = _1n; - $1.msglen = $1.msg.length; - $1.lC = -5; - $1.lB = -6; - $1.lX = -7; - $1.lT = -8; - $1.lD = -9; - $1.unl = -10; - $1.fnc2 = -11; - $1.fnc4 = -12; - $1.sft1 = -13; - $1.sft2 = -14; - $1.sft3 = -15; - $1.eci = -16; - $1.pad = -17; - $1.fnc1lD = -18; - $1.unlcw = 255; - $1.eciesc = 92; - var _1q = $1.msg; - $k[$j++] = "numecis"; - $k[$j++] = 0; - for (var _1r = 0, _1s = _1q.length; _1r < _1s; _1r++) { - if ($get(_1q, _1r) <= -1e6) { - var _1u = $k[--$j]; - $k[$j++] = $f(_1u + 1); - } - } - var _1v = $k[--$j]; - $1[$k[--$j]] = _1v; - if ($1.numecis > 0) { - $1.msgtmp = $a($f($f($1.msg.length * 2 + $1.numecis * 6) + 2)); - $put($1.msgtmp, 0, $1.pad); - $put($1.msgtmp, 1, $1.eciesc); - $1.j = 2; - for (var _27 = 0, _26 = $1.msg.length - 1; _27 <= _26; _27 += 1) { - var _29 = $get($1.msg, _27); - $k[$j++] = _29; - if (_29 <= -1e6) { - var _2D = $geti($cvrs($s(7), -$k[--$j], 10), 1, 6); - for (var _2E = 0, _2F = _2D.length; _2E < _2F; _2E++) { - $k[$j++] = $get(_2D, _2E); - } - $astore($a(6)); - $puti($1.msgtmp, $1.j + 1, $k[--$j]); - $put($1.msgtmp, $1.j, $1.eciesc); - $1.j = $1.j + 7; - } else { - var _2P = $k[--$j]; - $k[$j++] = _2P; - if (_2P != $1.eciesc) { - $put($1.msgtmp, $1.j, $k[--$j]); - $1.j = $1.j + 1; - } else { - $j--; - $put($1.msgtmp, $1.j, $1.eciesc); - $put($1.msgtmp, $1.j + 1, $1.eciesc); - $1.j = $1.j + 2; - } - } - } - $1.msg = $geti($1.msgtmp, 0, $1.j); - $1.msglen = $1.msg.length; - } - $1.metrics = $a([ $a([ "A", 16, 18, 16, 10, 10, 1, 4, 99, 6 ]), $a([ "B", 22, 22, 20, 19, 16, 1, 4, 99, 8 ]), $a([ "C", 28, 32, 28, 44, 26, 1, 4, 22, 11 ]), $a([ "D", 40, 42, 36, 91, 44, 1, 4, 16, 16 ]), $a([ "E", 52, 54, 48, 182, 70, 1, 4, 22, 22 ]), $a([ "F", 70, 76, 68, 370, 140, 2, 4, 22, 31 ]), $a([ "G", 104, 98, 88, 732, 280, 4, 6, 21, 47 ]), $a([ "H", 148, 134, 120, 1480, 560, 8, 6, 20, 69 ]), $a([ "T-16", 16, 17, 16, 10, 10, 1, 99, 99, 99 ]), $a([ "T-32", 16, 33, 32, 24, 16, 1, 99, 99, 99 ]), $a([ "T-48", 16, 49, 48, 38, 22, 1, 99, 99, 99 ]) ]); - $1.fullcws = $a([]); - var _2t = $1.metrics; - for (var _2u = 0, _2v = _2t.length; _2u < _2v; _2u++) { - $1.m = $get(_2t, _2u); - $1.vers = $get($1.m, 0); - $1.dcws = $get($1.m, 4); - $1.okay = true; - if ($eq($1.version, "unset")) { - if ($1.vers.length != 1) { - $1.okay = false; - } - } else { - if ($ne($1.version, $1.vers)) { - $1.okay = false; - } - } - if ($1.okay) { - $k[$j++] = Infinity; - $aload($1.fullcws); - $k[$j++] = $1.dcws; - $1.fullcws = $a(); - } - } - $k[$j++] = Infinity; - for (var _39 = 0, _3A = 1480; _39 < _3A; _39++) { - $k[$j++] = 1e4; - } - $1.numremcws = $a(); - var _3C = $1.fullcws; - for (var _3D = 0, _3E = _3C.length; _3D < _3E; _3D++) { - $put($1.numremcws, $f($get(_3C, _3D) - 1), 1); - } - for (var _3H = 1478; _3H >= 0; _3H -= 1) { - $1.i = _3H; - if ($get($1.numremcws, $1.i) != 1) { - $put($1.numremcws, $1.i, $f($get($1.numremcws, $1.i + 1) + 1)); - } - } - $k[$j++] = Infinity; - for (var _3Q = 0; _3Q <= 128; _3Q += 1) { - $k[$j++] = _3Q; - $k[$j++] = _3Q + 1; - } - $k[$j++] = $1.pad; - $k[$j++] = 129; - for (var _3S = 0; _3S <= 99; _3S += 1) { - var _3U = $cvrs($s(2), _3S, 10); - var _3W = $strcpy($s(2), "00"); - $puti(_3W, 2 - _3U.length, _3U); - $k[$j++] = _3W; - $k[$j++] = _3S + 130; - } - var _3e = $a([ $1.lC, $1.lB, $1.fnc1, $1.fnc2, $1.fnc3, $1.fnc4, $1.fnc1lD ]); - $k[$j++] = 229; - for (var _3f = 0, _3g = _3e.length; _3f < _3g; _3f++) { - var _3j = $f($k[--$j] + 1); - $k[$j++] = $get(_3e, _3f); - $k[$j++] = _3j; - $k[$j++] = _3j; - } - $j--; - $k[$j++] = $1.lX; - $k[$j++] = 238; - $k[$j++] = $1.lT; - $k[$j++] = 239; - $1.Avals = $d(); - $k[$j++] = Infinity; - var _3n = $1.Avals; - for (var _3s = _3n.size, _3r = _3n.keys(), _3q = 0; _3q < _3s; _3q++) { - var _3o = _3r.next().value; - $k[$j++] = _3o; - $k[$j++] = Infinity; - $k[$j++] = _3n.get(_3o); - var _3v = $a(); - $k[$j++] = _3v; - } - $1.Avals = $d(); - $k[$j++] = Infinity; - $k[$j++] = $1.sft1; - $k[$j++] = 0; - $k[$j++] = $1.sft2; - $k[$j++] = 1; - $k[$j++] = $1.sft3; - $k[$j++] = 2; - $k[$j++] = 32; - $k[$j++] = 3; - for (var _40 = 48; _40 <= 57; _40 += 1) { - $k[$j++] = _40; - $k[$j++] = _40 - 44; - } - for (var _41 = 65; _41 <= 90; _41 += 1) { - $k[$j++] = _41; - $k[$j++] = _41 - 51; - } - $1.CNvals = $d(); - $k[$j++] = Infinity; - for (var _43 = 0; _43 <= 31; _43 += 1) { - $k[$j++] = _43; - $k[$j++] = _43; - } - $1.C1vals = $d(); - $k[$j++] = Infinity; - for (var _45 = 33; _45 <= 47; _45 += 1) { - $k[$j++] = _45; - $k[$j++] = _45 - 33; - } - for (var _46 = 58; _46 <= 64; _46 += 1) { - $k[$j++] = _46; - $k[$j++] = _46 - 43; - } - for (var _47 = 91; _47 <= 95; _47 += 1) { - $k[$j++] = _47; - $k[$j++] = _47 - 69; - } - $k[$j++] = $1.fnc1; - $k[$j++] = 27; - $k[$j++] = $1.fnc2; - $k[$j++] = 28; - $k[$j++] = $1.fnc3; - $k[$j++] = 29; - $k[$j++] = $1.fnc4; - $k[$j++] = 30; - $k[$j++] = $1.pad; - $k[$j++] = 31; - $1.C2vals = $d(); - $k[$j++] = Infinity; - for (var _4E = 96; _4E <= 127; _4E += 1) { - $k[$j++] = _4E; - $k[$j++] = _4E - 96; - } - $1.C3vals = $d(); - $k[$j++] = Infinity; - var _4G = $1.CNvals; - for (var _4L = _4G.size, _4K = _4G.keys(), _4J = 0; _4J < _4L; _4J++) { - var _4H = _4K.next().value; - $k[$j++] = _4H; - $k[$j++] = Infinity; - $k[$j++] = _4G.get(_4H); - var _4O = $a(); - $k[$j++] = _4O; - } - var _4P = $1.C1vals; - for (var _4U = _4P.size, _4T = _4P.keys(), _4S = 0; _4S < _4U; _4S++) { - var _4Q = _4T.next().value; - $k[$j++] = _4Q; - $k[$j++] = Infinity; - $k[$j++] = $get($1.CNvals, $1.sft1); - $k[$j++] = _4P.get(_4Q); - var _4a = $a(); - $k[$j++] = _4a; - } - var _4b = $1.C2vals; - for (var _4g = _4b.size, _4f = _4b.keys(), _4e = 0; _4e < _4g; _4e++) { - var _4c = _4f.next().value; - $k[$j++] = _4c; - $k[$j++] = Infinity; - $k[$j++] = $get($1.CNvals, $1.sft2); - $k[$j++] = _4b.get(_4c); - var _4m = $a(); - $k[$j++] = _4m; - } - var _4n = $1.C3vals; - for (var _4s = _4n.size, _4r = _4n.keys(), _4q = 0; _4q < _4s; _4q++) { - var _4o = _4r.next().value; - $k[$j++] = _4o; - $k[$j++] = Infinity; - $k[$j++] = $get($1.CNvals, $1.sft3); - $k[$j++] = _4n.get(_4o); - var _4y = $a(); - $k[$j++] = _4y; - } - $1.Cvals = $d(); - $k[$j++] = Infinity; - $k[$j++] = $1.sft1; - $k[$j++] = 0; - $k[$j++] = $1.sft2; - $k[$j++] = 1; - $k[$j++] = $1.sft3; - $k[$j++] = 2; - $k[$j++] = 32; - $k[$j++] = 3; - for (var _53 = 48; _53 <= 57; _53 += 1) { - $k[$j++] = _53; - $k[$j++] = _53 - 44; - } - for (var _54 = 97; _54 <= 122; _54 += 1) { - $k[$j++] = _54; - $k[$j++] = _54 - 83; - } - $1.TNvals = $d(); - $k[$j++] = Infinity; - for (var _56 = 0; _56 <= 31; _56 += 1) { - $k[$j++] = _56; - $k[$j++] = _56; - } - $1.T1vals = $d(); - $k[$j++] = Infinity; - for (var _58 = 33; _58 <= 47; _58 += 1) { - $k[$j++] = _58; - $k[$j++] = _58 - 33; - } - for (var _59 = 58; _59 <= 64; _59 += 1) { - $k[$j++] = _59; - $k[$j++] = _59 - 43; - } - for (var _5A = 91; _5A <= 95; _5A += 1) { - $k[$j++] = _5A; - $k[$j++] = _5A - 69; - } - $k[$j++] = $1.fnc1; - $k[$j++] = 27; - $k[$j++] = $1.fnc2; - $k[$j++] = 28; - $k[$j++] = $1.fnc3; - $k[$j++] = 29; - $k[$j++] = $1.fnc4; - $k[$j++] = 30; - $k[$j++] = $1.pad; - $k[$j++] = 31; - $1.T2vals = $d(); - $k[$j++] = Infinity; - $k[$j++] = 96; - $k[$j++] = 0; - for (var _5H = 65; _5H <= 90; _5H += 1) { - $k[$j++] = _5H; - $k[$j++] = _5H - 64; - } - for (var _5I = 123; _5I <= 127; _5I += 1) { - $k[$j++] = _5I; - $k[$j++] = _5I - 96; - } - $1.T3vals = $d(); - $k[$j++] = Infinity; - var _5K = $1.TNvals; - for (var _5P = _5K.size, _5O = _5K.keys(), _5N = 0; _5N < _5P; _5N++) { - var _5L = _5O.next().value; - $k[$j++] = _5L; - $k[$j++] = Infinity; - $k[$j++] = _5K.get(_5L); - var _5S = $a(); - $k[$j++] = _5S; - } - var _5T = $1.T1vals; - for (var _5Y = _5T.size, _5X = _5T.keys(), _5W = 0; _5W < _5Y; _5W++) { - var _5U = _5X.next().value; - $k[$j++] = _5U; - $k[$j++] = Infinity; - $k[$j++] = $get($1.TNvals, $1.sft1); - $k[$j++] = _5T.get(_5U); - var _5e = $a(); - $k[$j++] = _5e; - } - var _5f = $1.T2vals; - for (var _5k = _5f.size, _5j = _5f.keys(), _5i = 0; _5i < _5k; _5i++) { - var _5g = _5j.next().value; - $k[$j++] = _5g; - $k[$j++] = Infinity; - $k[$j++] = $get($1.TNvals, $1.sft2); - $k[$j++] = _5f.get(_5g); - var _5q = $a(); - $k[$j++] = _5q; - } - var _5r = $1.T3vals; - for (var _5w = _5r.size, _5v = _5r.keys(), _5u = 0; _5u < _5w; _5u++) { - var _5s = _5v.next().value; - $k[$j++] = _5s; - $k[$j++] = Infinity; - $k[$j++] = $get($1.TNvals, $1.sft3); - $k[$j++] = _5r.get(_5s); - var _62 = $a(); - $k[$j++] = _62; - } - $1.Tvals = $d(); - for (var _64 = 128; _64 <= 255; _64 += 1) { - $1.i = _64; - $k[$j++] = $1.Avals; - $k[$j++] = $1.i; - $k[$j++] = Infinity; - $aload($get($1.Avals, $1.fnc4)); - $aload($get($1.Avals, $1.i - 128)); - var _6D = $a(); - var _6E = $k[--$j]; - $put($k[--$j], _6E, _6D); - $k[$j++] = $1.Cvals; - $k[$j++] = $1.i; - $k[$j++] = Infinity; - $aload($get($1.Cvals, $1.fnc4)); - $aload($get($1.Cvals, $1.i - 128)); - var _6O = $a(); - var _6P = $k[--$j]; - $put($k[--$j], _6P, _6O); - $k[$j++] = $1.Tvals; - $k[$j++] = $1.i; - $k[$j++] = Infinity; - $aload($get($1.Tvals, $1.fnc4)); - $aload($get($1.Tvals, $1.i - 128)); - var _6Z = $a(); - var _6a = $k[--$j]; - $put($k[--$j], _6a, _6Z); - } - $k[$j++] = Infinity; - $k[$j++] = 13; - $k[$j++] = 0; - $k[$j++] = 42; - $k[$j++] = 1; - $k[$j++] = 62; - $k[$j++] = 2; - $k[$j++] = 32; - $k[$j++] = 3; - for (var _6c = 48; _6c <= 57; _6c += 1) { - $k[$j++] = _6c; - $k[$j++] = _6c - 44; - } - for (var _6d = 65; _6d <= 90; _6d += 1) { - $k[$j++] = _6d; - $k[$j++] = _6d - 51; - } - $1.Xvals = $d(); - $k[$j++] = Infinity; - var _6f = $1.Xvals; - for (var _6k = _6f.size, _6j = _6f.keys(), _6i = 0; _6i < _6k; _6i++) { - var _6g = _6j.next().value; - $k[$j++] = _6g; - $k[$j++] = Infinity; - $k[$j++] = _6f.get(_6g); - var _6n = $a(); - $k[$j++] = _6n; - } - $1.Xvals = $d(); - $k[$j++] = Infinity; - for (var _6p = 0; _6p <= 255; _6p += 1) { - $k[$j++] = _6p; - $k[$j++] = _6p; - } - $1.Bvals = $d(); - $k[$j++] = Infinity; - var _6r = $1.Bvals; - for (var _6w = _6r.size, _6v = _6r.keys(), _6u = 0; _6u < _6w; _6u++) { - var _6s = _6v.next().value; - $k[$j++] = _6s; - $k[$j++] = Infinity; - $k[$j++] = _6r.get(_6s); - var _6z = $a(); - $k[$j++] = _6z; - } - $1.Bvals = $d(); - $1.encvals = $a([ $1.Avals, $1.Cvals, $1.Tvals, $1.Xvals, -1, $1.Bvals ]); - $k[$j++] = Infinity; - for (var _78 = 0, _79 = $1.msglen; _78 < _79; _78++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numD = $a(); - $k[$j++] = Infinity; - for (var _7C = 0, _7D = $1.msglen; _7C < _7D; _7C++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextXterm = $a(); - $k[$j++] = Infinity; - for (var _7G = 0, _7H = $1.msglen; _7G < _7H; _7G++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextNonX = $a(); - for (var _7K = $1.msglen - 1; _7K >= 0; _7K -= 1) { - $1.i = _7K; - $1.barchar = $get($1.msg, $1.i); - if ($1.barchar >= 48 && $1.barchar <= 57) { - $put($1.numD, $1.i, $f($get($1.numD, $1.i + 1) + 1)); - } - if ($1.barchar == 13 || $1.barchar == 42 || $1.barchar == 62) { - $put($1.nextXterm, $1.i, 0); - } else { - $put($1.nextXterm, $1.i, $f($get($1.nextXterm, $1.i + 1) + 1)); - } - var _7h = $get($1.Xvals, $1.barchar) !== undefined; - if (!_7h) { - $put($1.nextNonX, $1.i, 0); - } else { - $put($1.nextNonX, $1.i, $f($get($1.nextNonX, $1.i + 1) + 1)); - } - } - $k[$j++] = Infinity; - var _7p = $1.nextXterm; - for (var _7q = 0, _7r = _7p.length; _7q < _7r; _7q++) { - var _7s = $get(_7p, _7q); - $k[$j++] = _7s; - if (_7s > 1e4) { - $j--; - $k[$j++] = 1e4; - } - } - $1.nextXterm = $a(); - $k[$j++] = Infinity; - var _7u = $1.nextNonX; - for (var _7v = 0, _7w = _7u.length; _7v < _7w; _7v++) { - var _7x = $get(_7u, _7v); - $k[$j++] = _7x; - if (_7x > 1e4) { - $j--; - $k[$j++] = 1e4; - } - } - $1.nextNonX = $a(); + var _o = $k[--$j]; //#21305 + var _p = $k[--$j]; //#21305 + $1.offset = Math.abs(_o.length - _p.length); //#21306 + if (_o.length < _p.length) { //#21307 + var _ = _o; //#21307 + _o = _p; //#21307 + _p = _; //#21307 + } //#21307 + $1.a = _o; //#21308 + $1.b = _p; //#21308 + for (var _s = 0, _r = $1.b.length - 1; _s <= _r; _s += 1) { //#21311 + var _t = $1.a; //#21310 + var _u = $1.offset; //#21310 + $put(_t, _s + _u, $f($get(_t, _s + _u) + $get($1.b, _s))); //#21310 + } //#21310 + $k[$j++] = $1.a; //#21312 + }; //#21313 + $1.barlen = $1.barcode.length; //#21315 + $1.v = $a([1]); //#21318 + for (var _13 = 0, _12 = $1.barlen - 1; _13 <= _12; _13 += 1) { //#21323 + $1.i = _13; //#21320 + $k[$j++] = Infinity; //#21321 + $forall($get($1.vals, $1.i), function() { //#21321 + var _17 = $k[--$j]; //#21321 + $k[$j++] = $f(_17 - 48) * $f($get($1.barcode, ($1.barlen - $1.i) - 1) - 48); //#21321 + }); //#21321 + var _1C = $a(); //#21321 + $k[$j++] = _1C; //#21322 + $k[$j++] = $1.v; //#21322 + $1.bigadd(); //#21322 + $1.v = $k[--$j]; //#21322 + } //#21322 + $k[$j++] = 'v'; //#21324 + $k[$j++] = $1.v; //#21324 + $k[$j++] = 2; //#21324 + $1.normalize(); //#21324 + var _1G = $k[--$j]; //#21324 + $1[$k[--$j]] = _1G; //#21324 + $k[$j++] = Infinity; //#21327 + for (var _1J = 0, _1K = (5 - ($1.v.length % 5)) % 5; _1J < _1K; _1J++) { //#21327 + $k[$j++] = 0; //#21327 + } //#21327 + $aload($1.v); //#21327 + $1.v = $a(); //#21327 + $1.cws = $a(~~($1.v.length / 5)); //#21328 + for (var _1R = 0, _1Q = $1.cws.length - 1; _1R <= _1Q; _1R += 1) { //#21334 + $1.i = _1R; //#21330 + var _1U = $geti($1.v, $1.i * 5, 5); //#21331 + $k[$j++] = 0; //#21332 + for (var _1V = 0, _1W = _1U.length; _1V < _1W; _1V++) { //#21332 + var _1Y = $k[--$j]; //#21332 + $k[$j++] = $f(_1Y + $get(_1U, _1V)) * 2; //#21332 + } //#21332 + $put($1.cws, $1.i, ~~($k[--$j] / 2)); //#21333 + } //#21333 + $1.metrics = $a([$a(["S-10", 8, 11, 10, 4, 4, 1, 99, 99, 99]), $a(["S-20", 8, 21, 20, 8, 8, 1, 99, 99, 99]), $a(["S-30", 8, 31, 30, 12, 12, 1, 99, 99, 99])]); //#21342 + } else { //#21895 + $1.fnc1 = -1; //#21347 + $1.fnc3 = -2; //#21347 + var _1k = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["eci", true], + ["FNC1", $1.fnc1], + ["FNC3", $1.fnc3] + ]); //#21353 + $1.fncvals = _1k; //#21354 + $k[$j++] = 'msg'; //#21355 + $k[$j++] = $1.barcode; //#21355 + $k[$j++] = $1.fncvals; //#21355 + $0.parseinput(); //#21355 + var _1n = $k[--$j]; //#21355 + $1[$k[--$j]] = _1n; //#21355 + $1.msglen = $1.msg.length; //#21356 + $1.lC = -5; //#21359 + $1.lB = -6; //#21359 + $1.lX = -7; //#21359 + $1.lT = -8; //#21359 + $1.lD = -9; //#21359 + $1.unl = -10; //#21359 + $1.fnc2 = -11; //#21360 + $1.fnc4 = -12; //#21360 + $1.sft1 = -13; //#21360 + $1.sft2 = -14; //#21360 + $1.sft3 = -15; //#21360 + $1.eci = -16; //#21360 + $1.pad = -17; //#21360 + $1.fnc1lD = -18; //#21360 + $1.unlcw = 255; //#21361 + $1.eciesc = 92; //#21364 + var _1q = $1.msg; //#21365 + $k[$j++] = 'numecis'; //#21365 + $k[$j++] = 0; //#21365 + for (var _1r = 0, _1s = _1q.length; _1r < _1s; _1r++) { //#21365 + if ($get(_1q, _1r) <= -1000000) { //#21365 + var _1u = $k[--$j]; //#21365 + $k[$j++] = $f(_1u + 1); //#21365 + } //#21365 + } //#21365 + var _1v = $k[--$j]; //#21365 + $1[$k[--$j]] = _1v; //#21365 + if ($1.numecis > 0) { //#21392 + $1.msgtmp = $a($f(($f(($1.msg.length * 2) + ($1.numecis * 6))) + 2)); //#21367 + $put($1.msgtmp, 0, $1.pad); //#21368 + $put($1.msgtmp, 1, $1.eciesc); //#21369 + $1.j = 2; //#21370 + for (var _27 = 0, _26 = $1.msg.length - 1; _27 <= _26; _27 += 1) { //#21389 + var _29 = $get($1.msg, _27); //#21372 + $k[$j++] = _29; //#21388 + if (_29 <= -1000000) { //#21386 + var _2D = $geti($cvrs($s(7), -$k[--$j], 10), 1, 6); //#21374 + for (var _2E = 0, _2F = _2D.length; _2E < _2F; _2E++) { //#21374 + $k[$j++] = $get(_2D, _2E); //#21374 + } //#21374 + $astore($a(6)); //#21374 + $puti($1.msgtmp, $1.j + 1, $k[--$j]); //#21375 + $put($1.msgtmp, $1.j, $1.eciesc); //#21376 + $1.j = $1.j + 7; //#21377 + } else { //#21386 + var _2P = $k[--$j]; //#21379 + $k[$j++] = _2P; //#21387 + if (_2P != $1.eciesc) { //#21386 + $put($1.msgtmp, $1.j, $k[--$j]); //#21380 + $1.j = $1.j + 1; //#21381 + } else { //#21386 + $j--; //#21383 + $put($1.msgtmp, $1.j, $1.eciesc); //#21384 + $put($1.msgtmp, $1.j + 1, $1.eciesc); //#21385 + $1.j = $1.j + 2; //#21386 + } //#21386 + } //#21386 + } //#21386 + $1.msg = $geti($1.msgtmp, 0, $1.j); //#21390 + $1.msglen = $1.msg.length; //#21391 + } //#21391 + $1.metrics = $a([$a(["A", 16, 18, 16, 10, 10, 1, 4, 99, 6]), $a(["B", 22, 22, 20, 19, 16, 1, 4, 99, 8]), $a(["C", 28, 32, 28, 44, 26, 1, 4, 22, 11]), $a(["D", 40, 42, 36, 91, 44, 1, 4, 16, 16]), $a(["E", 52, 54, 48, 182, 70, 1, 4, 22, 22]), $a(["F", 70, 76, 68, 370, 140, 2, 4, 22, 31]), $a(["G", 104, 98, 88, 732, 280, 4, 6, 21, 47]), $a(["H", 148, 134, 120, 1480, 560, 8, 6, 20, 69]), $a(["T-16", 16, 17, 16, 10, 10, 1, 99, 99, 99]), $a(["T-32", 16, 33, 32, 24, 16, 1, 99, 99, 99]), $a(["T-48", 16, 49, 48, 38, 22, 1, 99, 99, 99])]); //#21408 + $1.fullcws = $a([]); //#21411 + var _2t = $1.metrics; //#21412 + for (var _2u = 0, _2v = _2t.length; _2u < _2v; _2u++) { //#21423 + $1.m = $get(_2t, _2u); //#21413 + $1.vers = $get($1.m, 0); //#21414 + $1.dcws = $get($1.m, 4); //#21415 + $1.okay = true; //#21416 + if ($eq($1.version, "unset")) { //#21420 + if ($1.vers.length != 1) { //#21418 + $1.okay = false; //#21418 + } //#21418 + } else { //#21420 + if ($ne($1.version, $1.vers)) { //#21420 + $1.okay = false; //#21420 + } //#21420 + } //#21420 + if ($1.okay) { //#21422 + $k[$j++] = Infinity; //#21422 + $aload($1.fullcws); //#21422 + $k[$j++] = $1.dcws; //#21422 + $1.fullcws = $a(); //#21422 + } //#21422 + } //#21422 + $k[$j++] = Infinity; //#21424 + for (var _39 = 0, _3A = 1480; _39 < _3A; _39++) { //#21424 + $k[$j++] = 10000; //#21424 + } //#21424 + $1.numremcws = $a(); //#21424 + var _3C = $1.fullcws; //#21425 + for (var _3D = 0, _3E = _3C.length; _3D < _3E; _3D++) { //#21425 + $put($1.numremcws, $f($get(_3C, _3D) - 1), 1); //#21425 + } //#21425 + for (var _3H = 1478; _3H >= 0; _3H -= 1) { //#21431 + $1.i = _3H; //#21427 + if ($get($1.numremcws, $1.i) != 1) { //#21430 + $put($1.numremcws, $1.i, $f($get($1.numremcws, $1.i + 1) + 1)); //#21429 + } //#21429 + } //#21429 + $k[$j++] = Infinity; //#21442 + for (var _3Q = 0; _3Q <= 128; _3Q += 1) { //#21434 + $k[$j++] = _3Q; //#21434 + $k[$j++] = _3Q + 1; //#21434 + } //#21434 + $k[$j++] = $1.pad; //#21439 + $k[$j++] = 129; //#21439 + for (var _3S = 0; _3S <= 99; _3S += 1) { //#21439 + var _3U = $cvrs($s(2), _3S, 10); //#21437 + var _3W = $strcpy($s(2), "00"); //#21437 + $puti(_3W, 2 - _3U.length, _3U); //#21437 + $k[$j++] = _3W; //#21438 + $k[$j++] = _3S + 130; //#21438 + } //#21438 + var _3e = $a([$1.lC, $1.lB, $1.fnc1, $1.fnc2, $1.fnc3, $1.fnc4, $1.fnc1lD]); //#21440 + $k[$j++] = 229; //#21440 + for (var _3f = 0, _3g = _3e.length; _3f < _3g; _3f++) { //#21440 + var _3j = $f($k[--$j] + 1); //#21440 + $k[$j++] = $get(_3e, _3f); //#21440 + $k[$j++] = _3j; //#21440 + $k[$j++] = _3j; //#21440 + } //#21440 + $j--; //#21440 + $k[$j++] = $1.lX; //#21442 + $k[$j++] = 238; //#21442 + $k[$j++] = $1.lT; //#21442 + $k[$j++] = 239; //#21442 + $1.Avals = $d(); //#21444 + $k[$j++] = Infinity; //#21446 + var _3n = $1.Avals; //#21446 + for (var _3s = _3n.size, _3r = _3n.keys(), _3q = 0; _3q < _3s; _3q++) { //#21446 + var _3o = _3r.next().value; //#21446 + $k[$j++] = _3o; //#21446 + $k[$j++] = _3n.get(_3o); //#21446 + $k[$j++] = Infinity; //#21446 + var _3t = $k[--$j]; //#21446 + var _3u = $k[--$j]; //#21446 + $k[$j++] = _3t; //#21446 + $k[$j++] = _3u; //#21446 + var _3v = $a(); //#21446 + $k[$j++] = _3v; //#21446 + } //#21446 + $1.Avals = $d(); //#21447 + $k[$j++] = Infinity; //#21455 + $k[$j++] = $1.sft1; //#21454 + $k[$j++] = 0; //#21454 + $k[$j++] = $1.sft2; //#21454 + $k[$j++] = 1; //#21454 + $k[$j++] = $1.sft3; //#21454 + $k[$j++] = 2; //#21454 + $k[$j++] = 32; //#21454 + $k[$j++] = 3; //#21454 + for (var _40 = 48; _40 <= 57; _40 += 1) { //#21454 + $k[$j++] = _40; //#21454 + $k[$j++] = _40 - 44; //#21454 + } //#21454 + for (var _41 = 65; _41 <= 90; _41 += 1) { //#21455 + $k[$j++] = _41; //#21455 + $k[$j++] = _41 - 51; //#21455 + } //#21455 + $1.CNvals = $d(); //#21456 + $k[$j++] = Infinity; //#21457 + for (var _43 = 0; _43 <= 31; _43 += 1) { //#21457 + $k[$j++] = _43; //#21457 + $k[$j++] = _43; //#21457 + } //#21457 + $1.C1vals = $d(); //#21457 + $k[$j++] = Infinity; //#21466 + for (var _45 = 33; _45 <= 47; _45 += 1) { //#21459 + $k[$j++] = _45; //#21459 + $k[$j++] = _45 - 33; //#21459 + } //#21459 + for (var _46 = 58; _46 <= 64; _46 += 1) { //#21460 + $k[$j++] = _46; //#21460 + $k[$j++] = _46 - 43; //#21460 + } //#21460 + for (var _47 = 91; _47 <= 95; _47 += 1) { //#21461 + $k[$j++] = _47; //#21461 + $k[$j++] = _47 - 69; //#21461 + } //#21461 + $k[$j++] = $1.fnc1; //#21466 + $k[$j++] = 27; //#21466 + $k[$j++] = $1.fnc2; //#21466 + $k[$j++] = 28; //#21466 + $k[$j++] = $1.fnc3; //#21466 + $k[$j++] = 29; //#21466 + $k[$j++] = $1.fnc4; //#21466 + $k[$j++] = 30; //#21466 + $k[$j++] = $1.pad; //#21466 + $k[$j++] = 31; //#21466 + $1.C2vals = $d(); //#21467 + $k[$j++] = Infinity; //#21468 + for (var _4E = 96; _4E <= 127; _4E += 1) { //#21468 + $k[$j++] = _4E; //#21468 + $k[$j++] = _4E - 96; //#21468 + } //#21468 + $1.C3vals = $d(); //#21468 + $k[$j++] = Infinity; //#21473 + var _4G = $1.CNvals; //#21470 + for (var _4L = _4G.size, _4K = _4G.keys(), _4J = 0; _4J < _4L; _4J++) { //#21470 + var _4H = _4K.next().value; //#21470 + $k[$j++] = _4H; //#21470 + $k[$j++] = _4G.get(_4H); //#21470 + $k[$j++] = Infinity; //#21470 + var _4M = $k[--$j]; //#21470 + var _4N = $k[--$j]; //#21470 + $k[$j++] = _4M; //#21470 + $k[$j++] = _4N; //#21470 + var _4O = $a(); //#21470 + $k[$j++] = _4O; //#21470 + } //#21470 + var _4P = $1.C1vals; //#21471 + for (var _4U = _4P.size, _4T = _4P.keys(), _4S = 0; _4S < _4U; _4S++) { //#21471 + var _4Q = _4T.next().value; //#21471 + $k[$j++] = _4Q; //#21471 + $k[$j++] = _4P.get(_4Q); //#21471 + $k[$j++] = Infinity; //#21471 + var _4V = $k[--$j]; //#21471 + var _4W = $k[--$j]; //#21471 + $k[$j++] = _4V; //#21471 + $k[$j++] = $get($1.CNvals, $1.sft1); //#21471 + $k[$j++] = _4W; //#21471 + var _4a = $a(); //#21471 + $k[$j++] = _4a; //#21471 + } //#21471 + var _4b = $1.C2vals; //#21472 + for (var _4g = _4b.size, _4f = _4b.keys(), _4e = 0; _4e < _4g; _4e++) { //#21472 + var _4c = _4f.next().value; //#21472 + $k[$j++] = _4c; //#21472 + $k[$j++] = _4b.get(_4c); //#21472 + $k[$j++] = Infinity; //#21472 + var _4h = $k[--$j]; //#21472 + var _4i = $k[--$j]; //#21472 + $k[$j++] = _4h; //#21472 + $k[$j++] = $get($1.CNvals, $1.sft2); //#21472 + $k[$j++] = _4i; //#21472 + var _4m = $a(); //#21472 + $k[$j++] = _4m; //#21472 + } //#21472 + var _4n = $1.C3vals; //#21473 + for (var _4s = _4n.size, _4r = _4n.keys(), _4q = 0; _4q < _4s; _4q++) { //#21473 + var _4o = _4r.next().value; //#21473 + $k[$j++] = _4o; //#21473 + $k[$j++] = _4n.get(_4o); //#21473 + $k[$j++] = Infinity; //#21473 + var _4t = $k[--$j]; //#21473 + var _4u = $k[--$j]; //#21473 + $k[$j++] = _4t; //#21473 + $k[$j++] = $get($1.CNvals, $1.sft3); //#21473 + $k[$j++] = _4u; //#21473 + var _4y = $a(); //#21473 + $k[$j++] = _4y; //#21473 + } //#21473 + $1.Cvals = $d(); //#21474 + $k[$j++] = Infinity; //#21482 + $k[$j++] = $1.sft1; //#21481 + $k[$j++] = 0; //#21481 + $k[$j++] = $1.sft2; //#21481 + $k[$j++] = 1; //#21481 + $k[$j++] = $1.sft3; //#21481 + $k[$j++] = 2; //#21481 + $k[$j++] = 32; //#21481 + $k[$j++] = 3; //#21481 + for (var _53 = 48; _53 <= 57; _53 += 1) { //#21481 + $k[$j++] = _53; //#21481 + $k[$j++] = _53 - 44; //#21481 + } //#21481 + for (var _54 = 97; _54 <= 122; _54 += 1) { //#21482 + $k[$j++] = _54; //#21482 + $k[$j++] = _54 - 83; //#21482 + } //#21482 + $1.TNvals = $d(); //#21483 + $k[$j++] = Infinity; //#21484 + for (var _56 = 0; _56 <= 31; _56 += 1) { //#21484 + $k[$j++] = _56; //#21484 + $k[$j++] = _56; //#21484 + } //#21484 + $1.T1vals = $d(); //#21484 + $k[$j++] = Infinity; //#21493 + for (var _58 = 33; _58 <= 47; _58 += 1) { //#21486 + $k[$j++] = _58; //#21486 + $k[$j++] = _58 - 33; //#21486 + } //#21486 + for (var _59 = 58; _59 <= 64; _59 += 1) { //#21487 + $k[$j++] = _59; //#21487 + $k[$j++] = _59 - 43; //#21487 + } //#21487 + for (var _5A = 91; _5A <= 95; _5A += 1) { //#21488 + $k[$j++] = _5A; //#21488 + $k[$j++] = _5A - 69; //#21488 + } //#21488 + $k[$j++] = $1.fnc1; //#21493 + $k[$j++] = 27; //#21493 + $k[$j++] = $1.fnc2; //#21493 + $k[$j++] = 28; //#21493 + $k[$j++] = $1.fnc3; //#21493 + $k[$j++] = 29; //#21493 + $k[$j++] = $1.fnc4; //#21493 + $k[$j++] = 30; //#21493 + $k[$j++] = $1.pad; //#21493 + $k[$j++] = 31; //#21493 + $1.T2vals = $d(); //#21494 + $k[$j++] = Infinity; //#21498 + $k[$j++] = 96; //#21497 + $k[$j++] = 0; //#21497 + for (var _5H = 65; _5H <= 90; _5H += 1) { //#21497 + $k[$j++] = _5H; //#21497 + $k[$j++] = _5H - 64; //#21497 + } //#21497 + for (var _5I = 123; _5I <= 127; _5I += 1) { //#21498 + $k[$j++] = _5I; //#21498 + $k[$j++] = _5I - 96; //#21498 + } //#21498 + $1.T3vals = $d(); //#21499 + $k[$j++] = Infinity; //#21504 + var _5K = $1.TNvals; //#21501 + for (var _5P = _5K.size, _5O = _5K.keys(), _5N = 0; _5N < _5P; _5N++) { //#21501 + var _5L = _5O.next().value; //#21501 + $k[$j++] = _5L; //#21501 + $k[$j++] = _5K.get(_5L); //#21501 + $k[$j++] = Infinity; //#21501 + var _5Q = $k[--$j]; //#21501 + var _5R = $k[--$j]; //#21501 + $k[$j++] = _5Q; //#21501 + $k[$j++] = _5R; //#21501 + var _5S = $a(); //#21501 + $k[$j++] = _5S; //#21501 + } //#21501 + var _5T = $1.T1vals; //#21502 + for (var _5Y = _5T.size, _5X = _5T.keys(), _5W = 0; _5W < _5Y; _5W++) { //#21502 + var _5U = _5X.next().value; //#21502 + $k[$j++] = _5U; //#21502 + $k[$j++] = _5T.get(_5U); //#21502 + $k[$j++] = Infinity; //#21502 + var _5Z = $k[--$j]; //#21502 + var _5a = $k[--$j]; //#21502 + $k[$j++] = _5Z; //#21502 + $k[$j++] = $get($1.TNvals, $1.sft1); //#21502 + $k[$j++] = _5a; //#21502 + var _5e = $a(); //#21502 + $k[$j++] = _5e; //#21502 + } //#21502 + var _5f = $1.T2vals; //#21503 + for (var _5k = _5f.size, _5j = _5f.keys(), _5i = 0; _5i < _5k; _5i++) { //#21503 + var _5g = _5j.next().value; //#21503 + $k[$j++] = _5g; //#21503 + $k[$j++] = _5f.get(_5g); //#21503 + $k[$j++] = Infinity; //#21503 + var _5l = $k[--$j]; //#21503 + var _5m = $k[--$j]; //#21503 + $k[$j++] = _5l; //#21503 + $k[$j++] = $get($1.TNvals, $1.sft2); //#21503 + $k[$j++] = _5m; //#21503 + var _5q = $a(); //#21503 + $k[$j++] = _5q; //#21503 + } //#21503 + var _5r = $1.T3vals; //#21504 + for (var _5w = _5r.size, _5v = _5r.keys(), _5u = 0; _5u < _5w; _5u++) { //#21504 + var _5s = _5v.next().value; //#21504 + $k[$j++] = _5s; //#21504 + $k[$j++] = _5r.get(_5s); //#21504 + $k[$j++] = Infinity; //#21504 + var _5x = $k[--$j]; //#21504 + var _5y = $k[--$j]; //#21504 + $k[$j++] = _5x; //#21504 + $k[$j++] = $get($1.TNvals, $1.sft3); //#21504 + $k[$j++] = _5y; //#21504 + var _62 = $a(); //#21504 + $k[$j++] = _62; //#21504 + } //#21504 + $1.Tvals = $d(); //#21505 + for (var _64 = 128; _64 <= 255; _64 += 1) { //#21513 + $1.i = _64; //#21509 + $k[$j++] = $1.Avals; //#21510 + $k[$j++] = $1.i; //#21510 + $k[$j++] = Infinity; //#21510 + $aload($get($1.Avals, $1.fnc4)); //#21510 + $aload($get($1.Avals, $1.i - 128)); //#21510 + var _6D = $a(); //#21510 + var _6E = $k[--$j]; //#21510 + $put($k[--$j], _6E, _6D); //#21510 + $k[$j++] = $1.Cvals; //#21511 + $k[$j++] = $1.i; //#21511 + $k[$j++] = Infinity; //#21511 + $aload($get($1.Cvals, $1.fnc4)); //#21511 + $aload($get($1.Cvals, $1.i - 128)); //#21511 + var _6O = $a(); //#21511 + var _6P = $k[--$j]; //#21511 + $put($k[--$j], _6P, _6O); //#21511 + $k[$j++] = $1.Tvals; //#21512 + $k[$j++] = $1.i; //#21512 + $k[$j++] = Infinity; //#21512 + $aload($get($1.Tvals, $1.fnc4)); //#21512 + $aload($get($1.Tvals, $1.i - 128)); //#21512 + var _6Z = $a(); //#21512 + var _6a = $k[--$j]; //#21512 + $put($k[--$j], _6a, _6Z); //#21512 + } //#21512 + $k[$j++] = Infinity; //#21521 + $k[$j++] = 13; //#21520 + $k[$j++] = 0; //#21520 + $k[$j++] = 42; //#21520 + $k[$j++] = 1; //#21520 + $k[$j++] = 62; //#21520 + $k[$j++] = 2; //#21520 + $k[$j++] = 32; //#21520 + $k[$j++] = 3; //#21520 + for (var _6c = 48; _6c <= 57; _6c += 1) { //#21520 + $k[$j++] = _6c; //#21520 + $k[$j++] = _6c - 44; //#21520 + } //#21520 + for (var _6d = 65; _6d <= 90; _6d += 1) { //#21521 + $k[$j++] = _6d; //#21521 + $k[$j++] = _6d - 51; //#21521 + } //#21521 + $1.Xvals = $d(); //#21522 + $k[$j++] = Infinity; //#21524 + var _6f = $1.Xvals; //#21524 + for (var _6k = _6f.size, _6j = _6f.keys(), _6i = 0; _6i < _6k; _6i++) { //#21524 + var _6g = _6j.next().value; //#21524 + $k[$j++] = _6g; //#21524 + $k[$j++] = _6f.get(_6g); //#21524 + $k[$j++] = Infinity; //#21524 + var _6l = $k[--$j]; //#21524 + var _6m = $k[--$j]; //#21524 + $k[$j++] = _6l; //#21524 + $k[$j++] = _6m; //#21524 + var _6n = $a(); //#21524 + $k[$j++] = _6n; //#21524 + } //#21524 + $1.Xvals = $d(); //#21525 + $k[$j++] = Infinity; //#21528 + for (var _6p = 0; _6p <= 255; _6p += 1) { //#21528 + $k[$j++] = _6p; //#21528 + $k[$j++] = _6p; //#21528 + } //#21528 + $1.Bvals = $d(); //#21529 + $k[$j++] = Infinity; //#21531 + var _6r = $1.Bvals; //#21531 + for (var _6w = _6r.size, _6v = _6r.keys(), _6u = 0; _6u < _6w; _6u++) { //#21531 + var _6s = _6v.next().value; //#21531 + $k[$j++] = _6s; //#21531 + $k[$j++] = _6r.get(_6s); //#21531 + $k[$j++] = Infinity; //#21531 + var _6x = $k[--$j]; //#21531 + var _6y = $k[--$j]; //#21531 + $k[$j++] = _6x; //#21531 + $k[$j++] = _6y; //#21531 + var _6z = $a(); //#21531 + $k[$j++] = _6z; //#21531 + } //#21531 + $1.Bvals = $d(); //#21532 + $1.encvals = $a([$1.Avals, $1.Cvals, $1.Tvals, $1.Xvals, -1, $1.Bvals]); //#21534 + $k[$j++] = Infinity; //#21536 + for (var _78 = 0, _79 = $1.msglen; _78 < _79; _78++) { //#21536 + $k[$j++] = 0; //#21536 + } //#21536 + $k[$j++] = 0; //#21536 + $1.numD = $a(); //#21536 + $k[$j++] = Infinity; //#21537 + for (var _7C = 0, _7D = $1.msglen; _7C < _7D; _7C++) { //#21537 + $k[$j++] = 0; //#21537 + } //#21537 + $k[$j++] = 9999; //#21537 + $1.nextXterm = $a(); //#21537 + $k[$j++] = Infinity; //#21538 + for (var _7G = 0, _7H = $1.msglen; _7G < _7H; _7G++) { //#21538 + $k[$j++] = 0; //#21538 + } //#21538 + $k[$j++] = 9999; //#21538 + $1.nextNonX = $a(); //#21538 + for (var _7K = $1.msglen - 1; _7K >= 0; _7K -= 1) { //#21555 + $1.i = _7K; //#21540 + $1.barchar = $get($1.msg, $1.i); //#21541 + if (($1.barchar >= 48) && ($1.barchar <= 57)) { //#21544 + $put($1.numD, $1.i, $f($get($1.numD, $1.i + 1) + 1)); //#21543 + } //#21543 + if ((($1.barchar == 13) || ($1.barchar == 42)) || ($1.barchar == 62)) { //#21548 + $put($1.nextXterm, $1.i, 0); //#21546 + } else { //#21548 + $put($1.nextXterm, $1.i, $f($get($1.nextXterm, $1.i + 1) + 1)); //#21548 + } //#21548 + var _7h = $get($1.Xvals, $1.barchar) !== undefined; //#21550 + if (!_7h) { //#21553 + $put($1.nextNonX, $1.i, 0); //#21551 + } else { //#21553 + $put($1.nextNonX, $1.i, $f($get($1.nextNonX, $1.i + 1) + 1)); //#21553 + } //#21553 + } //#21553 + $k[$j++] = Infinity; //#21556 + var _7p = $1.nextXterm; //#21556 + for (var _7q = 0, _7r = _7p.length; _7q < _7r; _7q++) { //#21556 + var _7s = $get(_7p, _7q); //#21556 + $k[$j++] = _7s; //#21556 + if (_7s > 10000) { //#21556 + $j--; //#21556 + $k[$j++] = 10000; //#21556 + } //#21556 + } //#21556 + $1.nextXterm = $a(); //#21556 + $k[$j++] = Infinity; //#21557 + var _7u = $1.nextNonX; //#21557 + for (var _7v = 0, _7w = _7u.length; _7v < _7w; _7v++) { //#21557 + var _7x = $get(_7u, _7v); //#21557 + $k[$j++] = _7x; //#21557 + if (_7x > 10000) { //#21557 + $j--; //#21557 + $k[$j++] = 10000; //#21557 + } //#21557 + } //#21557 + $1.nextNonX = $a(); //#21557 $1.isD = function() { - $k[$j++] = $1.char >= 48 && $1.char <= 57; - }; + $k[$j++] = ($1.char >= 48) && ($1.char <= 57); //#21559 + }; //#21559 $1.isC = function() { - var _83 = $get($1.CNvals, $1.char) !== undefined; - $k[$j++] = _83; - }; + var _83 = $get($1.CNvals, $1.char) !== undefined; //#21560 + $k[$j++] = _83; //#21560 + }; //#21560 $1.isT = function() { - var _86 = $get($1.TNvals, $1.char) !== undefined; - $k[$j++] = _86; - }; + var _86 = $get($1.TNvals, $1.char) !== undefined; //#21561 + $k[$j++] = _86; //#21561 + }; //#21561 $1.isX = function() { - var _89 = $get($1.Xvals, $1.char) !== undefined; - $k[$j++] = _89; - }; + var _89 = $get($1.Xvals, $1.char) !== undefined; //#21562 + $k[$j++] = _89; //#21562 + }; //#21562 $1.isEA = function() { - $k[$j++] = $1.char > 127; - }; + $k[$j++] = $1.char > 127; //#21563 + }; //#21563 $1.isFN = function() { - $k[$j++] = $1.char < 0; - }; + $k[$j++] = $1.char < 0; //#21564 + }; //#21564 $1.XtermFirst = function() { - var _8C = $k[--$j]; - $k[$j++] = $lt($get($1.nextXterm, _8C), $get($1.nextNonX, _8C)); - }; - $1.A = 0; - $1.C = 1; - $1.T = 2; - $1.X = 3; - $1.D = 4; - $1.B = 5; - $1.lookup = function() { - $1.ac = 1; - $1.cc = 2; - $1.tc = 2; - $1.xc = 2; - $1.bc = 3; - if ($1.mode == $1.A) { - $1.ac = 0; - $1.cc = 1; - $1.tc = 1; - $1.xc = 1; - $1.bc = 2; - } - if ($1.mode == $1.C) { - $1.cc = 0; - } - if ($1.mode == $1.T) { - $1.tc = 0; - } - if ($1.mode == $1.X) { - $1.xc = 0; - } - if ($1.mode == $1.B) { - $1.bc = 0; - } - for (var _8R = 0, _8S = 1; _8R < _8S; _8R++) { - $1.k = 0; - for (;;) { - if ($1.i + $1.k == $1.msglen) { - var _8a = $a([ $1.ac, $1.cc, $1.tc, $1.xc ]); - $k[$j++] = true; - for (var _8b = 0, _8c = _8a.length; _8b < _8c; _8b++) { - var _8f = $k[--$j]; - $k[$j++] = _8f && $1.bc <= Math.ceil($get(_8a, _8b)); - } - if ($k[--$j]) { - $k[$j++] = $1.B; - break; - } - var _8m = $a([ $1.cc, $1.tc, $1.xc, $1.bc ]); - $k[$j++] = true; - for (var _8n = 0, _8o = _8m.length; _8n < _8o; _8n++) { - var _8r = $k[--$j]; - $k[$j++] = _8r && $1.ac <= Math.ceil($get(_8m, _8n)); - } - if ($k[--$j]) { - $k[$j++] = $1.A; - break; - } - var _8w = $a([ $1.tc, $1.xc ]); - $k[$j++] = true; - for (var _8x = 0, _8y = _8w.length; _8x < _8y; _8x++) { - var _91 = $k[--$j]; - $k[$j++] = _91 && Math.ceil($1.cc) <= Math.ceil($get(_8w, _8x)); - } - if ($k[--$j]) { - $k[$j++] = $1.C; - break; - } - var _95 = $a([ $1.xc ]); - $k[$j++] = true; - for (var _96 = 0, _97 = _95.length; _96 < _97; _96++) { - var _9A = $k[--$j]; - $k[$j++] = _9A && Math.ceil($1.tc) <= Math.ceil($get(_95, _96)); - } - if ($k[--$j]) { - $k[$j++] = $1.T; - break; - } - $k[$j++] = $1.X; - break; - } - $1.char = $get($1.msg, $1.i + $1.k); - $k[$j++] = "ac"; - $k[$j++] = $1.ac; - $1.isD(); - if ($k[--$j]) { - var _9K = $k[--$j]; - $k[$j++] = $f(_9K + 1 / 2); - } else { - $1.isEA(); - if ($k[--$j]) { - var _9M = $k[--$j]; - $k[$j++] = Math.ceil(_9M) + 2; - } else { - var _9N = $k[--$j]; - $k[$j++] = Math.ceil(_9N) + 1; - } - } - var _9O = $k[--$j]; - $1[$k[--$j]] = _9O; - $k[$j++] = "cc"; - $k[$j++] = $1.cc; - $1.isC(); - if ($k[--$j]) { - var _9S = $k[--$j]; - $k[$j++] = $f(_9S + .66666667); - } else { - $1.isEA(); - if ($k[--$j]) { - var _9U = $k[--$j]; - $k[$j++] = $f(_9U + 2.66666667); - } else { - var _9V = $k[--$j]; - $k[$j++] = $f(_9V + 1.33333334); - } - } - var _9W = $k[--$j]; - $1[$k[--$j]] = _9W; - $k[$j++] = "tc"; - $k[$j++] = $1.tc; - $1.isT(); - if ($k[--$j]) { - var _9a = $k[--$j]; - $k[$j++] = $f(_9a + .66666667); - } else { - $1.isEA(); - if ($k[--$j]) { - var _9c = $k[--$j]; - $k[$j++] = $f(_9c + 2.66666667); - } else { - var _9d = $k[--$j]; - $k[$j++] = $f(_9d + 1.33333334); - } - } - var _9e = $k[--$j]; - $1[$k[--$j]] = _9e; - $k[$j++] = "xc"; - $k[$j++] = $1.xc; - $1.isX(); - if ($k[--$j]) { - var _9i = $k[--$j]; - $k[$j++] = $f(_9i + .66666667); - } else { - $1.isEA(); - if ($k[--$j]) { - var _9k = $k[--$j]; - $k[$j++] = $f(_9k + 4.33333334); - } else { - var _9l = $k[--$j]; - $k[$j++] = $f(_9l + 3.33333334); - } - } - var _9m = $k[--$j]; - $1[$k[--$j]] = _9m; - $k[$j++] = "bc"; - $k[$j++] = $1.bc; - $1.isFN(); - if ($k[--$j]) { - var _9q = $k[--$j]; - $k[$j++] = $f(_9q + 3); - } else { - var _9r = $k[--$j]; - $k[$j++] = $f(_9r + 1); - } - var _9s = $k[--$j]; - $1[$k[--$j]] = _9s; - if ($1.k >= 3) { - var _9z = $a([ $1.ac, $1.cc, $1.tc, $1.xc ]); - $k[$j++] = true; - for (var _A0 = 0, _A1 = _9z.length; _A0 < _A1; _A0++) { - var _A4 = $k[--$j]; - $k[$j++] = _A4 && $1.bc + 1 <= Math.ceil($get(_9z, _A0)); - } - if ($k[--$j]) { - $k[$j++] = $1.B; - break; - } - var _AB = $a([ $1.cc, $1.tc, $1.xc, $1.bc ]); - $k[$j++] = true; - for (var _AC = 0, _AD = _AB.length; _AC < _AD; _AC++) { - var _AG = $k[--$j]; - $k[$j++] = _AG && $1.ac + 1 <= Math.ceil($get(_AB, _AC)); - } - if ($k[--$j]) { - $k[$j++] = $1.A; - break; - } - var _AN = $a([ $1.ac, $1.cc, $1.xc, $1.bc ]); - $k[$j++] = true; - for (var _AO = 0, _AP = _AN.length; _AO < _AP; _AO++) { - var _AS = $k[--$j]; - $k[$j++] = _AS && Math.ceil($1.tc) + 1 <= Math.ceil($get(_AN, _AO)); - } - if ($k[--$j]) { - $k[$j++] = $1.T; - break; - } - var _AX = $a([ $1.ac, $1.tc ]); - $k[$j++] = true; - for (var _AY = 0, _AZ = _AX.length; _AY < _AZ; _AY++) { - var _Ac = $k[--$j]; - $k[$j++] = _Ac && Math.ceil($1.cc) + 1 <= Math.ceil($get(_AX, _AY)); - } - if ($k[--$j]) { - if (Math.ceil($1.cc) < Math.ceil($1.xc)) { - $k[$j++] = $1.C; - break; - } - if ($1.cc == $1.xc) { - $k[$j++] = $1.i + $1.k + 1; - $1.XtermFirst(); - if ($k[--$j]) { - $k[$j++] = $1.X; - break; - } else { - $k[$j++] = $1.C; - break; - } - } - } - var _As = $a([ $1.ac, $1.cc, $1.tc, $1.bc ]); - $k[$j++] = true; - for (var _At = 0, _Au = _As.length; _At < _Au; _At++) { - var _Ax = $k[--$j]; - $k[$j++] = _Ax && Math.ceil($1.xc) + 1 <= Math.ceil($get(_As, _At)); - } - if ($k[--$j]) { - $k[$j++] = $1.X; - break; - } - } - $1.k = $1.k + 1; - } - } - }; - $1.addtocws = function() { - var _B1 = $k[--$j]; - $puti($1.cws, $1.j, _B1); - $1.j = _B1.length + $1.j; - }; - $1.tobin = function() { - var _B6 = $s($k[--$j]); - $k[$j++] = _B6; - for (var _B8 = 0, _B7 = _B6.length - 1; _B8 <= _B7; _B8 += 1) { - var _B9 = $k[--$j]; - $put(_B9, _B8, 48); - $k[$j++] = _B9; - } - var _BA = $k[--$j]; - var _BD = $cvrs($s(_BA.length), $k[--$j], 2); - $puti(_BA, _BA.length - _BD.length, _BD); - $k[$j++] = Infinity; - var _BF = _BA; - $forall(_BF, function() { - var _BG = $k[--$j]; - $k[$j++] = $f(_BG - 48); - }); - var _BH = $a(); - $k[$j++] = _BH; - }; - $1.encA = function() { - for (var _BI = 0, _BJ = 1; _BI < _BJ; _BI++) { - if ($get($1.numD, $1.i) >= 21) { - $1.Dbits = $a([ 1, 1, 1, 1 ]); - $1.mode = $1.D; - break; - } - var _BR = $get($1.numD, $1.i); - if (_BR >= 13 && $f(_BR + $1.i) == $1.msglen) { - $1.Dbits = $a([ 1, 1, 1, 1 ]); - $1.mode = $1.D; - break; - } - if ($get($1.numD, $1.i) >= 2) { - var _BZ = $s(2); - $put(_BZ, 0, $get($1.msg, $1.i)); - $put(_BZ, 1, $get($1.msg, $1.i + 1)); - $k[$j++] = $get($1.Avals, _BZ); - $1.addtocws(); - $1.i = $1.i + 2; - break; - } - if ($get($1.msg, $1.i) == $1.fnc1) { - if ($get($1.numD, $1.i + 1) >= 15) { - $k[$j++] = $get($1.Avals, $1.fnc1lD); - $1.addtocws(); - $1.i = $1.i + 1; - $1.Dbits = $a([]); - $1.mode = $1.D; - break; - } - var _By = $get($1.numD, $1.i + 1); - if (_By >= 7 && $f($f(_By + $1.i) + 1) == $1.msglen) { - $k[$j++] = $get($1.Avals, $1.fnc1lD); - $1.addtocws(); - $1.i = $1.i + 1; - $1.Dbits = $a([]); - $1.mode = $1.D; - break; - } - } - $k[$j++] = "newmode"; - $1.lookup(); - var _C7 = $k[--$j]; - $1[$k[--$j]] = _C7; - if ($1.newmode != $1.mode) { - $k[$j++] = $get($1.Avals, $get($a([ -1, $1.lC, $1.lT, $1.lX, $1.lD, $1.lB ]), $1.newmode)); - $1.addtocws(); - $1.mode = $1.newmode; - break; - } - $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); - $1.addtocws(); - $1.i = $1.i + 1; - break; - } - }; - $1.CTXvalstocws = function() { - $1.in = $k[--$j]; - $k[$j++] = Infinity; - for (var _CV = 0, _CU = $1.in.length - 1; _CV <= _CU; _CV += 3) { - var _CX = $geti($1.in, _CV, 3); - $k[$j++] = 0; - for (var _CY = 0, _CZ = _CX.length; _CY < _CZ; _CY++) { - var _Cb = $k[--$j]; - $k[$j++] = $f(_Cb + $get(_CX, _CY)) * 40; - } - var _Cd = ~~($k[--$j] / 40) + 1; - $k[$j++] = ~~(_Cd / 256); - $k[$j++] = _Cd % 256; - } - $astore($a($counttomark())); - var _Cg = $k[--$j]; - var _Ch = $k[--$j]; - $k[$j++] = _Cg; - $k[$j++] = _Ch; - $j--; - }; - $1.encCTX = function() { - $1.p = 0; - $1.ctxvals = $a(2220); - for (;;) { - if ($1.i == $1.msglen) { - break; - } - if ($1.p % 3 == 0) { - if ($get($1.numD, $1.i) >= 12) { - $k[$j++] = $geti($1.ctxvals, 0, $1.p); - $1.CTXvalstocws(); - $1.addtocws(); - $k[$j++] = $a([ $1.unlcw ]); - $1.addtocws(); - $1.mode = $1.A; - break; - } - var _Cx = $get($1.numD, $1.i); - if (_Cx >= 8 && $f(_Cx + $1.i) == $1.msglen) { - $k[$j++] = $geti($1.ctxvals, 0, $1.p); - $1.CTXvalstocws(); - $1.addtocws(); - $k[$j++] = $a([ $1.unlcw ]); - $1.addtocws(); - $1.mode = $1.A; - break; - } - if ($1.mode == $1.X) { - var _DC = $get($1.Xvals, $get($1.msg, $1.i)) !== undefined; - if (!_DC) { - $k[$j++] = $geti($1.ctxvals, 0, $1.p); - $1.CTXvalstocws(); - $1.addtocws(); - if ($get($1.numremcws, $1.j) != 1 || $get($1.msg, $1.i) > 127) { - $k[$j++] = $a([ $1.unlcw ]); - $1.addtocws(); - } - $1.mode = $1.A; - break; - } - if ($1.i + 1 < $1.msglen) { - var _DV = $get($1.Xvals, $get($1.msg, $1.i + 1)) !== undefined; - if (!_DV) { - break; - } - if ($1.i + 2 < $1.msglen) { - var _Dc = $get($1.Xvals, $get($1.msg, $1.i + 2)) !== undefined; - if (!_Dc) { - break; - } - } - } - } else { - $1.lookup(); - if ($k[--$j] != $1.mode) { - $k[$j++] = $geti($1.ctxvals, 0, $1.p); - $1.CTXvalstocws(); - $1.addtocws(); - $k[$j++] = $a([ $1.unlcw ]); - $1.addtocws(); - $1.mode = $1.A; - break; - } - } - if ($1.msglen - $1.i <= 3) { - $1.remcws = $get($1.numremcws, $1.j + ~~($1.p / 3) * 2); - $k[$j++] = Infinity; - var _Dv = $geti($1.msg, $1.i, $1.msglen - $1.i); - for (var _Dw = 0, _Dx = _Dv.length; _Dw < _Dx; _Dw++) { - var _Dy = $get(_Dv, _Dw); - var _E2 = $get($get($1.encvals, $1.mode), _Dy) !== undefined; - $k[$j++] = _Dy; - if (_E2) { - $aload($get($get($1.encvals, $1.mode), $k[--$j])); - } else { - $j--; - $k[$j++] = -1; - $k[$j++] = -1; - $k[$j++] = -1; - $k[$j++] = -1; - } - } - $1.remvals = $a(); - if ($1.remcws == 2 && $1.remvals.length == 3) { - $k[$j++] = Infinity; - $aload($geti($1.ctxvals, 0, $1.p)); - $aload($1.remvals); - var _EF = $a(); - $k[$j++] = _EF; - $1.CTXvalstocws(); - $1.addtocws(); - $1.mode = $1.A; - $1.i = $1.msglen; - break; - } - if ($1.remcws == 2 && $1.remvals.length == 2 && $1.mode != $1.X) { - $k[$j++] = Infinity; - $aload($geti($1.ctxvals, 0, $1.p)); - $aload($1.remvals); - $aload($get($get($1.encvals, $1.mode), $1.sft1)); - var _EV = $a(); - $k[$j++] = _EV; - $1.CTXvalstocws(); - $1.addtocws(); - $1.mode = $1.A; - $1.i = $1.msglen; - break; - } - if ($1.remcws == 2 && $1.remvals.length == 1) { - $k[$j++] = $geti($1.ctxvals, 0, $1.p); - $1.CTXvalstocws(); - $1.addtocws(); - $k[$j++] = $a([ $1.unlcw ]); - $1.addtocws(); - $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); - $1.addtocws(); - $1.mode = $1.A; - $1.i = $1.msglen; - break; - } - if ($1.remcws == 1 && $1.remvals.length == 1) { - $k[$j++] = $geti($1.ctxvals, 0, $1.p); - $1.CTXvalstocws(); - $1.addtocws(); - $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); - $1.addtocws(); - $1.mode = $1.A; - $1.i = $1.msglen; - break; - } - } - } - var _F4 = $get($get($1.encvals, $1.mode), $get($1.msg, $1.i)); - $puti($1.ctxvals, $1.p, _F4); - $1.p = _F4.length + $1.p; - $1.i = $1.i + 1; - } - if ($1.mode != $1.A) { - for (;;) { - if ($1.p % 3 == 0) { - break; - } - $1.i = $1.i - 1; - $1.p = $1.p - $get($get($1.encvals, $1.mode), $get($1.msg, $1.i)).length; - } - $k[$j++] = Infinity; - $aload($geti($1.ctxvals, 0, $1.p)); - var _FO = $a(); - $k[$j++] = _FO; - $1.CTXvalstocws(); - $1.addtocws(); - $k[$j++] = $a([ $1.unlcw ]); - $1.addtocws(); - $1.mode = $1.A; - if ($1.i != $1.msglen) { - if ($get($1.numD, $1.i) >= 2) { - var _FX = $s(2); - $put(_FX, 0, $get($1.msg, $1.i)); - $put(_FX, 1, $get($1.msg, $1.i + 1)); - $k[$j++] = $get($1.Avals, _FX); - $1.addtocws(); - $1.i = $1.i + 2; - } else { - $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); - $1.addtocws(); - $1.i = $1.i + 1; - } - } - } - }; - $1.encD = function() { - for (;;) { - if ($get($1.numD, $1.i) < 3) { - $1.Drem = (8 - $1.Dbits.length % 8) % 8; - $1.remcws = $get($1.numremcws, $1.j + ~~($1.Dbits.length / 8)); - if (($f($get($1.numremcws, $1.j + ~~($1.Dbits.length / 8) - 1) - 1) == 0 && $1.Drem == 0 || $1.remcws == 1 && $1.Drem != 0) && $1.i == $1.msglen) { - if ($1.Drem == 4 || $1.Drem == 6) { - $k[$j++] = Infinity; - $aload($1.Dbits); - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $1.Dbits = $a(); - } - if ($1.Drem == 2 || $1.Drem == 6) { - $k[$j++] = Infinity; - $aload($1.Dbits); - $k[$j++] = 0; - $k[$j++] = 1; - $1.Dbits = $a(); - } - break; - } - if (($1.i == $1.msglen - 1 && $get($1.numD, $1.i) == 1 || $1.i == $1.msglen - 2 && $get($1.numD, $1.i) == 2) && $1.remcws == 1 && $1.Drem == 0) { - break; - } - if (!($1.i == $1.msglen - 1 && $get($1.numD, $1.i) == 1 && $1.remcws == 1 && ($1.Drem == 4 || $1.Drem == 6))) { - $k[$j++] = Infinity; - $aload($1.Dbits); - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $1.Dbits = $a(); - $1.Drem = (8 - $1.Dbits.length % 8) % 8; - } - if ($1.Drem == 4 || $1.Drem == 6) { - if ($get($1.numD, $1.i) >= 1) { - $k[$j++] = Infinity; - $aload($1.Dbits); - $k[$j++] = $f($f($get($1.msg, $1.i) - 48) + 1); - $k[$j++] = 4; - $1.tobin(); - $aload($k[--$j]); - $1.Dbits = $a(); - $1.i = $1.i + 1; - } else { - $k[$j++] = Infinity; - $aload($1.Dbits); - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $1.Dbits = $a(); - } - $1.Drem = $1.Drem - 4; - } - if ($1.Drem == 2) { - $k[$j++] = Infinity; - $aload($1.Dbits); - $k[$j++] = 0; - $k[$j++] = 1; - $1.Dbits = $a(); - $1.Drem = 0; - } - break; - } - $k[$j++] = Infinity; - $aload($1.Dbits); - var _Gu = $geti($1.msg, $1.i, 3); - $k[$j++] = 0; - for (var _Gv = 0, _Gw = _Gu.length; _Gv < _Gw; _Gv++) { - var _Gy = $k[--$j]; - $k[$j++] = $f(_Gy + $f($get(_Gu, _Gv) - 48)) * 10; - } - var _Gz = $k[--$j]; - $k[$j++] = ~~(_Gz / 10) + 1; - $k[$j++] = 10; - $1.tobin(); - $aload($k[--$j]); - $1.Dbits = $a(); - $1.i = $1.i + 3; - } - $k[$j++] = Infinity; - for (var _H5 = 0, _H4 = $1.Dbits.length - 1; _H5 <= _H4; _H5 += 8) { - var _H7 = $geti($1.Dbits, _H5, 8); - $k[$j++] = 0; - for (var _H8 = 0, _H9 = _H7.length; _H8 < _H9; _H8++) { - var _HB = $k[--$j]; - $k[$j++] = $f(_HB + $get(_H7, _H8)) * 2; - } - var _HC = $k[--$j]; - $k[$j++] = ~~(_HC / 2); - } - $astore($a($counttomark())); - var _HF = $k[--$j]; - var _HG = $k[--$j]; - $k[$j++] = _HF; - $k[$j++] = _HG; - $j--; - $1.addtocws(); - $1.mode = $1.A; - }; - $1.encB = function() { - $1.p = 0; - $1.bvals = $a(1480); - for (;;) { - if ($1.i == $1.msglen) { - break; - } - if ($get($1.msg, $1.i) < 0) { - break; - } - $1.lookup(); - if ($k[--$j] != $1.mode) { - break; - } - $put($1.bvals, $1.p, $get($1.msg, $1.i)); - $1.p = $1.p + 1; - $1.i = $1.i + 1; - } - $1.remcws = $f($get($1.numremcws, $1.j + $1.p) - 1); - $k[$j++] = Infinity; - if ($1.remcws == 0 && $1.i == $1.msglen) { - $k[$j++] = 0; - } else { - if ($1.p < 250) { - $k[$j++] = $1.p; - } else { - $k[$j++] = ~~($1.p / 250) + 249; - $k[$j++] = $1.p % 250; - } - } - $aload($geti($1.bvals, 0, $1.p)); - $1.bvals = $a(); - $k[$j++] = $1.bvals; - $1.addtocws(); - $1.mode = $1.A; - }; - $1.cws = $a(1480); - $1.mode = $1.A; - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i >= $1.msglen) { - break; - } - if ($1[$get($a([ "encA", "encCTX", "encCTX", "encCTX", "encD", "encB" ]), $1.mode)]() === true) { - break; - } - } - $1.cws = $geti($1.cws, 0, $1.j); - } - $1.i = 0; - for (;;) { - $1.m = $get($1.metrics, $1.i); - $1.vers = $get($1.m, 0); - $1.rows = $get($1.m, 1); - $1.cols = $get($1.m, 2); - $1.dcol = $get($1.m, 3); - $1.dcws = $get($1.m, 4); - $1.rscw = $get($1.m, 5); - $1.rsbl = $get($1.m, 6); - $1.riso = $get($1.m, 7); - $1.risi = $get($1.m, 8); - $1.risl = $get($1.m, 9); - $1.dcpb = ~~($1.dcws / $1.rsbl); - $1.ecpb = ~~($1.rscw / $1.rsbl); - $1.okay = true; - if ($ne($1.version, "unset") && $ne($1.version, $1.vers)) { - $1.okay = false; - } - if ($1.cws.length > $1.dcws) { - $1.okay = false; - } - if ($1.okay) { - break; - } - $1.i = $1.i + 1; - } - if (!$1.stype) { - $k[$j++] = Infinity; - $aload($1.cws); - for (var _Ib = 0, _Ic = $f($1.dcws - $1.cws.length); _Ib < _Ic; _Ib++) { - $k[$j++] = 129; - } - $1.cws = $a(); - } else { - $k[$j++] = Infinity; - for (var _Ig = 0, _Ih = $f($1.dcws - $1.cws.length); _Ig < _Ih; _Ig++) { - $k[$j++] = 0; - } - $aload($1.cws); - $1.cws = $a(); - } - var _Il = $get($1.options, "debugcws") !== undefined; - if (_Il) { - $k[$j++] = "bwipp.debugcws"; - $k[$j++] = $1.cws; - $0.raiseerror(); - } - $1.cwbs = $a($1.rsbl); - $1.ecbs = $a($1.rsbl); - for (var _It = 0, _Is = $f($1.rsbl - 1); _It <= _Is; _It += 1) { - $1.i = _It; - $1.cwb = $a($1.dcpb); - for (var _Iy = 0, _Ix = $1.dcpb - 1; _Iy <= _Ix; _Iy += 1) { - $1.j = _Iy; - $put($1.cwb, $1.j, $get($1.cws, $f($1.j * $1.rsbl + $1.i))); - } - $put($1.cwbs, $1.i, $1.cwb); - } - var _JA = $1.stype ? 32 : 256; - $1.gf = _JA; - $1["gf-1"] = $1.gf - 1; - var _JD = $1.stype ? 37 : 301; - $1.pm = _JD; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _JF = 0, _JG = $1["gf-1"]; _JF < _JG; _JF++) { - var _JH = $k[--$j]; - var _JI = _JH * 2; - $k[$j++] = _JH; - $k[$j++] = _JI; - if (_JI >= $1.gf) { - var _JL = $k[--$j]; - $k[$j++] = _JL ^ $1.pm; - } - } - $1.rsalog = $a(); - $1.rslog = $a($1.gf); - for (var _JR = 1, _JQ = $1["gf-1"]; _JR <= _JQ; _JR += 1) { - $put($1.rslog, $get($1.rsalog, _JR), _JR); - } - $1.rsprod = function() { - var _JV = $k[--$j]; - var _JW = $k[--$j]; - $k[$j++] = _JW; - $k[$j++] = _JV; - if (_JV != 0 && _JW != 0) { - var _JZ = $get($1.rslog, $k[--$j]); - var _Jf = $get($1.rsalog, $f(_JZ + $get($1.rslog, $k[--$j])) % $1["gf-1"]); - $k[$j++] = _Jf; - } else { - $j -= 2; - $k[$j++] = 0; - } - }; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _Jh = 0, _Ji = $1.ecpb; _Jh < _Ji; _Jh++) { - $k[$j++] = 0; - } - $1.coeffs = $a(); - for (var _Jm = 0, _Jl = $1.ecpb - 1; _Jm <= _Jl; _Jm += 1) { - $1.i = _Jm; - $put($1.coeffs, $1.i + 1, $get($1.coeffs, $1.i)); - for (var _Jt = $1.i; _Jt >= 1; _Jt -= 1) { - $1.j = _Jt; - $k[$j++] = $1.coeffs; - $k[$j++] = $1.j; - $k[$j++] = $get($1.coeffs, $1.j - 1); - $k[$j++] = $get($1.coeffs, $1.j); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _K5 = $k[--$j]; - var _K6 = $k[--$j]; - var _K7 = $k[--$j]; - $put($k[--$j], _K7, $xo(_K6, _K5)); - } - $k[$j++] = $1.coeffs; - $k[$j++] = 0; - $k[$j++] = $get($1.coeffs, 0); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _KF = $k[--$j]; - var _KG = $k[--$j]; - $put($k[--$j], _KG, _KF); - } - $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); - for (var _KN = 0, _KM = $1.cwbs.length - 1; _KN <= _KM; _KN += 1) { - $1.i = _KN; - $k[$j++] = Infinity; - $aload($get($1.cwbs, $1.i)); - for (var _KS = 0, _KT = $1.ecpb; _KS < _KT; _KS++) { - $k[$j++] = 0; - } - $1.rscws = $a(); - for (var _KX = 0, _KW = $1.dcpb - 1; _KX <= _KW; _KX += 1) { - $1.m = _KX; - $1.k = $get($1.rscws, $1.m); - for (var _Kd = 0, _Kc = $1.ecpb - 1; _Kd <= _Kc; _Kd += 1) { - $1.j = _Kd; - $k[$j++] = $1.rscws; - $k[$j++] = $1.m + $1.j + 1; - $k[$j++] = $get($1.coeffs, $1.ecpb - $1.j - 1); - $k[$j++] = $1.k; - $1.rsprod(); - var _Kq = $k[--$j]; - var _Kr = $k[--$j]; - $put($k[--$j], _Kr, $xo(_Kq, $get($1.rscws, $1.m + $1.j + 1))); - } - } - $put($1.ecbs, $1.i, $geti($1.rscws, $1.dcpb, $1.ecpb)); - } - $k[$j++] = Infinity; - $aload($1.cws); - for (var _L1 = 0, _L2 = $1.rscw; _L1 < _L2; _L1++) { - $k[$j++] = 0; - } - $1.cws = $a(); - for (var _L6 = 0, _L5 = $f($1.rscw - 1); _L6 <= _L5; _L6 += 1) { - $1.i = _L6; - $put($1.cws, $f($1.dcws + $1.i), $get($get($1.ecbs, $1.i % $1.rsbl), ~~($1.i / $1.rsbl))); - } - var _LK = $1.stype ? 5 : 8; - $1.mmat = $a($f($1.dcws + $1.rscw) * _LK); - $1.r = 0; - $1.c = 0; - var _LN = $1.stype ? 2 : 1; - for (var _LQ = 0, _LR = _LN, _LP = $1.cws.length - 1; _LR < 0 ? _LQ >= _LP : _LQ <= _LP; _LQ += _LR) { - $1.i = _LQ; - if (!$1.stype) { - var _LU = $strcpy($s(8), "00000000"); - var _LZ = $cvrs($s(8), $get($1.cws, $1.i), 2); - $puti(_LU, 8 - _LZ.length, _LZ); - $k[$j++] = Infinity; - var _Lb = _LU; - $forall(_Lb, function() { - var _Lc = $k[--$j]; - $k[$j++] = $f(_Lc - 48); - }); - var _Ld = $a(); - $1.top = $geti(_Ld, 0, 4); - $1.bot = $geti(_Ld, 4, 4); - } else { - var _Lh = $strcpy($s(5), "00000"); - var _Lm = $cvrs($s(5), $get($1.cws, $1.i), 2); - $puti(_Lh, 5 - _Lm.length, _Lm); - $k[$j++] = Infinity; - var _Lo = _Lh; - $forall(_Lo, function() { - var _Lp = $k[--$j]; - $k[$j++] = $f(_Lp - 48); - }); - $1.c1 = $a(); - var _Ls = $strcpy($s(5), "00000"); - var _Lx = $cvrs($s(5), $get($1.cws, $1.i + 1), 2); - $puti(_Ls, 5 - _Lx.length, _Lx); - $k[$j++] = Infinity; - var _Lz = _Ls; - $forall(_Lz, function() { - var _M0 = $k[--$j]; - $k[$j++] = $f(_M0 - 48); - }); - $1.c2 = $a(); - $k[$j++] = Infinity; - $aload($geti($1.c1, 0, 3)); - $aload($geti($1.c2, 0, 2)); - $1.top = $a(); - $k[$j++] = Infinity; - $aload($geti($1.c1, 3, 2)); - $aload($geti($1.c2, 2, 3)); - $1.bot = $a(); - } - $puti($1.mmat, $f($1.r * $1.dcol + $1.c), $1.top); - $puti($1.mmat, $f(($1.r + 1) * $1.dcol + $1.c), $1.bot); - $1.c = $1.c + $1.top.length; - if ($1.c == $1.dcol) { - $1.c = 0; - $1.r = $1.r + 2; - } - } - $1.mmv = function() { - var _MS = $k[--$j]; - var _MT = $k[--$j]; - $k[$j++] = $f(_MT + _MS * $1.cols); - }; - $k[$j++] = Infinity; - for (var _MW = 0, _MX = $1.rows * $1.cols; _MW < _MX; _MW++) { - $k[$j++] = -1; - } - $1.pixs = $a(); - var _N3 = $a([ function() { - for (var _Ma = 0, _Mb = $1.cols; _Ma < _Mb; _Ma++) { - $k[$j++] = 0; - } - }, function() { - for (var _Md = 0, _Me = $1.cols; _Md < _Me; _Md++) { - $k[$j++] = 1; - } - }, function() { - $k[$j++] = 0; - for (var _Mg = 0, _Mh = $f($1.cols - 2); _Mg < _Mh; _Mg++) { - $k[$j++] = 1; - } - $k[$j++] = 0; - }, function() { - $k[$j++] = 0; - $k[$j++] = 1; - for (var _Mj = 0, _Mk = $f($1.cols - 4); _Mj < _Mk; _Mj++) { - $k[$j++] = 0; - } - $k[$j++] = 1; - $k[$j++] = 0; - }, function() { - for (var _Mm = 0, _Mn = ~~($f($1.cols - 1) / 2); _Mm < _Mn; _Mm++) { - $k[$j++] = -1; - } - $k[$j++] = 1; - for (var _Mp = 0, _Mq = ~~($f($1.cols - 1) / 2); _Mp < _Mq; _Mp++) { - $k[$j++] = -1; - } - }, function() { - for (var _Ms = 0, _Mt = ~~($f($1.cols - 1) / 2); _Ms < _Mt; _Ms++) { - $k[$j++] = -1; - } - $k[$j++] = 0; - for (var _Mv = 0, _Mw = ~~($f($1.cols - 1) / 2); _Mv < _Mw; _Mv++) { - $k[$j++] = -1; - } - }, function() { - $k[$j++] = 1; - for (var _My = 0, _Mz = $f($1.cols - 2); _My < _Mz; _My++) { - $k[$j++] = 0; - } - $k[$j++] = 1; - }, function() { - $k[$j++] = 1; - $k[$j++] = 0; - for (var _N1 = 0, _N2 = $f($1.cols - 4); _N1 < _N2; _N1++) { - $k[$j++] = 1; - } - $k[$j++] = 0; - $k[$j++] = 1; - } ]); - $1.artifact = _N3; - var _N4 = new Map([ [ "A", "121343" ], [ "B", "12134343" ], [ "C", "12121343" ], [ "D", "1213434343" ], [ "E", "1212134343" ], [ "F", "1212121343" ], [ "G", "121213434343" ], [ "H", "121212134343" ], [ "S", "56661278" ], [ "T", "5666666666127878" ] ]); - $1.cpat = $get(_N4, $geti($1.vers, 0, 1)); - $k[$j++] = $1.pixs; - $k[$j++] = 0; - $k[$j++] = ~~($f($1.rows - $1.cpat.length) / 2); - $1.mmv(); - $k[$j++] = Infinity; - $forall($1.cpat, function() { - if ($get($1.artifact, $f($k[--$j] - 49))() === true) { - return true; - } - }); - var _NF = $a(); - var _NG = $k[--$j]; - $puti($k[--$j], _NG, _NF); - for (var _NK = 0, _NJ = $f($1.risl - 1); _NK <= _NJ; _NK += 1) { - $1.i = _NK; - for (var _NP = $1.riso, _NQ = $1.risi, _NO = $f($1.cols - 1); _NQ < 0 ? _NP >= _NO : _NP <= _NO; _NP += _NQ) { - $1.j = _NP; - var _NS = $1.i % 12 == 0 ? 1 : 0; - var _NT = $a([ 1, _NS ]); - $k[$j++] = _NT; - $k[$j++] = _NT; - $k[$j++] = $1.pixs; - $k[$j++] = $1.j; - $k[$j++] = $1.i; - $1.mmv(); - var _NX = $k[--$j]; - var _NY = $k[--$j]; - $puti(_NY, _NX, $k[--$j]); - if ($1.i != $f($1.risl - 1)) { - $k[$j++] = $1.pixs; - $k[$j++] = $f($f($1.cols - $1.j) - 2); - $k[$j++] = $f($f($1.rows - $1.i) - 1); - $1.mmv(); - var _Nh = $k[--$j]; - var _Ni = $k[--$j]; - $puti(_Ni, _Nh, $k[--$j]); - } else { - $j--; - } - } - } - var _ON = new Map([ [ "A", $a([ $a([ 12, 5 ]) ]) ], [ "B", $a([ $a([ 16, 7 ]) ]) ], [ "C", $a([ $a([ 26, 12 ]) ]) ], [ "D", $a([]) ], [ "E", $a([ $a([ 26, 23 ]) ]) ], [ "F", $a([ $a([ 26, 32 ]), $a([ 70, 32 ]), $a([ 26, 34 ]), $a([ 70, 34 ]) ]) ], [ "G", $a([ $a([ 27, 48 ]), $a([ 69, 48 ]) ]) ], [ "H", $a([ $a([ 26, 70 ]), $a([ 66, 70 ]), $a([ 106, 70 ]), $a([ 26, 72 ]), $a([ 66, 72 ]), $a([ 106, 72 ]) ]) ], [ "S-10", $a([]) ], [ "S-20", $a([ $a([ 10, 4 ]) ]) ], [ "S-30", $a([ $a([ 15, 4 ]), $a([ 15, 6 ]) ]) ], [ "T-16", $a([ $a([ 8, 10 ]) ]) ], [ "T-32", $a([ $a([ 16, 10 ]), $a([ 16, 12 ]) ]) ], [ "T-48", $a([ $a([ 24, 10 ]), $a([ 24, 12 ]), $a([ 24, 14 ]) ]) ] ]); - $forall($get(_ON, $1.vers), function() { - var _OR = $k[--$j]; - $k[$j++] = $1.pixs; - $aload(_OR); - $1.mmv(); - var _OS = $k[--$j]; - $put($k[--$j], _OS, 1); - }); - $1.j = 0; - for (var _OW = 0, _OV = $1.pixs.length - 1; _OW <= _OV; _OW += 1) { - $1.i = _OW; - if ($get($1.pixs, $1.i) == -1) { - $put($1.pixs, $1.i, $get($1.mmat, $1.j)); - $1.j = $1.j + 1; - } - } - var _Om = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", $1.cols ], [ "pixy", $1.rows ], [ "height", $1.rows / 72 * 2 ], [ "width", $1.cols / 72 * 2 ], [ "opt", $1.options ] ]); - $k[$j++] = _Om; - if (!$1.dontdraw) { - $0.renmatrix(); - } - }; - $0.hanxin = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.version = "unset"; - $1.eclevel = "unset"; - $1.parse = false; - $1.parsefnc = false; - $1.mask = -1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.mask = ~~$1.mask; - var _8 = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ] ]); - $1.fncvals = _8; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _B = $k[--$j]; - $1[$k[--$j]] = _B; - $1.msglen = $1.msg.length; - if ($eq($1.eclevel, "unset")) { - $1.eclevel = "L2"; - } - $1.tobin = function() { - var _G = $s($k[--$j]); - $k[$j++] = _G; - for (var _I = 0, _H = _G.length - 1; _I <= _H; _I += 1) { - var _J = $k[--$j]; - $put(_J, _I, 48); - $k[$j++] = _J; - } - var _K = $k[--$j]; - var _N = $cvrs($s(_K.length), $k[--$j], 2); - $puti(_K, _K.length - _N.length, _N); - $k[$j++] = _K; - }; - $1.bits = $s(4 + 13 + $1.msglen * 8); - $puti($1.bits, 0, "0011"); - $k[$j++] = $1.bits; - $k[$j++] = 4; - $k[$j++] = $1.msglen; - $k[$j++] = 13; - $1.tobin(); - var _T = $k[--$j]; - var _U = $k[--$j]; - $puti($k[--$j], _U, _T); - for (var _Y = 0, _X = $1.msglen - 1; _Y <= _X; _Y += 1) { - $1.i = _Y; - $k[$j++] = $1.bits; - $k[$j++] = 17 + $1.i * 8; - $k[$j++] = $get($1.msg, $1.i); - $k[$j++] = 8; - $1.tobin(); - var _e = $k[--$j]; - var _f = $k[--$j]; - $puti($k[--$j], _f, _e); - } - $1.metrics = $a([ $a([ "1", 23, -1, 0, 205, $a([ 1, 21, 4 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 17, 8 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 13, 12 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 9, 16 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]) ]), $a([ "2", 25, -1, 0, 301, $a([ 1, 31, 6 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 25, 12 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 19, 18 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 15, 22 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]) ]), $a([ "3", 27, -1, 0, 405, $a([ 1, 42, 8 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 34, 16 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 26, 24 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 20, 30 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]) ]), $a([ "4", 29, 14, 1, 439, $a([ 1, 46, 8 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 38, 16 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 30, 24 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 22, 32 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]) ]), $a([ "5", 31, 16, 1, 555, $a([ 1, 57, 12 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 49, 20 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 37, 32 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 14, 20 ]), $a([ 1, 13, 22 ]), $a([ 0, -1, -1 ]) ]), $a([ "6", 33, 16, 1, 675, $a([ 1, 70, 14 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 58, 26 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 24, 20 ]), $a([ 1, 22, 18 ]), $a([ 0, -1, -1 ]), $a([ 1, 16, 24 ]), $a([ 1, 18, 26 ]), $a([ 0, -1, -1 ]) ]), $a([ "7", 35, 17, 1, 805, $a([ 1, 84, 16 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 70, 30 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 26, 22 ]), $a([ 1, 28, 24 ]), $a([ 0, -1, -1 ]), $a([ 2, 14, 20 ]), $a([ 1, 12, 20 ]), $a([ 0, -1, -1 ]) ]), $a([ "8", 37, 18, 1, 943, $a([ 1, 99, 18 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 40, 18 ]), $a([ 1, 41, 18 ]), $a([ 0, -1, -1 ]), $a([ 1, 31, 26 ]), $a([ 1, 32, 28 ]), $a([ 0, -1, -1 ]), $a([ 2, 16, 24 ]), $a([ 1, 15, 22 ]), $a([ 0, -1, -1 ]) ]), $a([ "9", 39, 19, 1, 1089, $a([ 1, 114, 22 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 2, 48, 20 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 2, 24, 20 ]), $a([ 1, 26, 22 ]), $a([ 0, -1, -1 ]), $a([ 2, 18, 28 ]), $a([ 1, 18, 26 ]), $a([ 0, -1, -1 ]) ]), $a([ "10", 41, 20, 1, 1243, $a([ 1, 131, 24 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 52, 22 ]), $a([ 1, 57, 24 ]), $a([ 0, -1, -1 ]), $a([ 2, 27, 24 ]), $a([ 1, 29, 24 ]), $a([ 0, -1, -1 ]), $a([ 2, 21, 32 ]), $a([ 1, 19, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "11", 43, 14, 2, 1289, $a([ 1, 135, 26 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 56, 24 ]), $a([ 1, 57, 24 ]), $a([ 0, -1, -1 ]), $a([ 2, 28, 24 ]), $a([ 1, 31, 26 ]), $a([ 0, -1, -1 ]), $a([ 2, 22, 32 ]), $a([ 1, 21, 32 ]), $a([ 0, -1, -1 ]) ]), $a([ "12", 45, 15, 2, 1455, $a([ 1, 153, 28 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 62, 26 ]), $a([ 1, 65, 28 ]), $a([ 0, -1, -1 ]), $a([ 2, 32, 28 ]), $a([ 1, 33, 28 ]), $a([ 0, -1, -1 ]), $a([ 3, 17, 26 ]), $a([ 1, 22, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "13", 47, 16, 2, 1629, $a([ 1, 86, 16 ]), $a([ 1, 85, 16 ]), $a([ 0, -1, -1 ]), $a([ 1, 71, 30 ]), $a([ 1, 72, 30 ]), $a([ 0, -1, -1 ]), $a([ 2, 37, 32 ]), $a([ 1, 35, 30 ]), $a([ 0, -1, -1 ]), $a([ 3, 20, 30 ]), $a([ 1, 21, 32 ]), $a([ 0, -1, -1 ]) ]), $a([ "14", 49, 16, 2, 1805, $a([ 1, 94, 18 ]), $a([ 1, 95, 18 ]), $a([ 0, -1, -1 ]), $a([ 2, 51, 22 ]), $a([ 1, 55, 24 ]), $a([ 0, -1, -1 ]), $a([ 3, 30, 26 ]), $a([ 1, 31, 26 ]), $a([ 0, -1, -1 ]), $a([ 4, 18, 28 ]), $a([ 1, 17, 24 ]), $a([ 0, -1, -1 ]) ]), $a([ "15", 51, 17, 2, 1995, $a([ 1, 104, 20 ]), $a([ 1, 105, 20 ]), $a([ 0, -1, -1 ]), $a([ 2, 57, 24 ]), $a([ 1, 61, 26 ]), $a([ 0, -1, -1 ]), $a([ 3, 33, 28 ]), $a([ 1, 36, 30 ]), $a([ 0, -1, -1 ]), $a([ 4, 20, 30 ]), $a([ 1, 19, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "16", 53, 17, 2, 2187, $a([ 1, 115, 22 ]), $a([ 1, 114, 22 ]), $a([ 0, -1, -1 ]), $a([ 2, 65, 28 ]), $a([ 1, 61, 26 ]), $a([ 0, -1, -1 ]), $a([ 3, 38, 32 ]), $a([ 1, 33, 30 ]), $a([ 0, -1, -1 ]), $a([ 5, 19, 28 ]), $a([ 1, 14, 24 ]), $a([ 0, -1, -1 ]) ]), $a([ "17", 55, 18, 2, 2393, $a([ 1, 126, 24 ]), $a([ 1, 125, 24 ]), $a([ 0, -1, -1 ]), $a([ 2, 70, 30 ]), $a([ 1, 69, 30 ]), $a([ 0, -1, -1 ]), $a([ 4, 33, 28 ]), $a([ 1, 29, 26 ]), $a([ 0, -1, -1 ]), $a([ 5, 20, 30 ]), $a([ 1, 19, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "18", 57, 19, 2, 2607, $a([ 1, 136, 26 ]), $a([ 1, 137, 26 ]), $a([ 0, -1, -1 ]), $a([ 3, 56, 24 ]), $a([ 1, 59, 26 ]), $a([ 0, -1, -1 ]), $a([ 5, 35, 30 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 6, 18, 28 ]), $a([ 1, 21, 28 ]), $a([ 0, -1, -1 ]) ]), $a([ "19", 59, 20, 2, 2829, $a([ 1, 148, 28 ]), $a([ 1, 149, 28 ]), $a([ 0, -1, -1 ]), $a([ 3, 61, 26 ]), $a([ 1, 64, 28 ]), $a([ 0, -1, -1 ]), $a([ 7, 24, 20 ]), $a([ 1, 23, 22 ]), $a([ 0, -1, -1 ]), $a([ 6, 20, 30 ]), $a([ 1, 21, 32 ]), $a([ 0, -1, -1 ]) ]), $a([ "20", 61, 20, 2, 3053, $a([ 3, 107, 20 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 3, 65, 28 ]), $a([ 1, 72, 30 ]), $a([ 0, -1, -1 ]), $a([ 7, 26, 22 ]), $a([ 1, 23, 22 ]), $a([ 0, -1, -1 ]), $a([ 7, 19, 28 ]), $a([ 1, 20, 32 ]), $a([ 0, -1, -1 ]) ]), $a([ "21", 63, 21, 2, 3291, $a([ 3, 115, 22 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 4, 56, 24 ]), $a([ 1, 63, 28 ]), $a([ 0, -1, -1 ]), $a([ 7, 28, 24 ]), $a([ 1, 25, 22 ]), $a([ 0, -1, -1 ]), $a([ 8, 18, 28 ]), $a([ 1, 21, 22 ]), $a([ 0, -1, -1 ]) ]), $a([ "22", 65, 16, 3, 3383, $a([ 2, 116, 22 ]), $a([ 1, 122, 24 ]), $a([ 0, -1, -1 ]), $a([ 4, 56, 24 ]), $a([ 1, 72, 30 ]), $a([ 0, -1, -1 ]), $a([ 7, 28, 24 ]), $a([ 1, 32, 26 ]), $a([ 0, -1, -1 ]), $a([ 8, 18, 28 ]), $a([ 1, 24, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "23", 67, 17, 3, 3631, $a([ 3, 127, 24 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 5, 51, 22 ]), $a([ 1, 62, 26 ]), $a([ 0, -1, -1 ]), $a([ 7, 30, 26 ]), $a([ 1, 35, 26 ]), $a([ 0, -1, -1 ]), $a([ 8, 20, 30 ]), $a([ 1, 21, 32 ]), $a([ 0, -1, -1 ]) ]), $a([ "24", 69, 17, 3, 3887, $a([ 2, 135, 26 ]), $a([ 1, 137, 26 ]), $a([ 0, -1, -1 ]), $a([ 5, 56, 24 ]), $a([ 1, 59, 26 ]), $a([ 0, -1, -1 ]), $a([ 7, 33, 28 ]), $a([ 1, 30, 28 ]), $a([ 0, -1, -1 ]), $a([ 11, 16, 24 ]), $a([ 1, 19, 26 ]), $a([ 0, -1, -1 ]) ]), $a([ "25", 71, 18, 3, 4151, $a([ 3, 105, 20 ]), $a([ 1, 121, 22 ]), $a([ 0, -1, -1 ]), $a([ 5, 61, 26 ]), $a([ 1, 57, 26 ]), $a([ 0, -1, -1 ]), $a([ 9, 28, 24 ]), $a([ 1, 28, 22 ]), $a([ 0, -1, -1 ]), $a([ 10, 19, 28 ]), $a([ 1, 18, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "26", 73, 18, 3, 4423, $a([ 2, 157, 30 ]), $a([ 1, 150, 28 ]), $a([ 0, -1, -1 ]), $a([ 5, 65, 28 ]), $a([ 1, 61, 26 ]), $a([ 0, -1, -1 ]), $a([ 8, 33, 28 ]), $a([ 1, 34, 30 ]), $a([ 0, -1, -1 ]), $a([ 10, 19, 28 ]), $a([ 2, 15, 26 ]), $a([ 0, -1, -1 ]) ]), $a([ "27", 75, 19, 3, 4703, $a([ 3, 126, 24 ]), $a([ 1, 115, 22 ]), $a([ 0, -1, -1 ]), $a([ 7, 51, 22 ]), $a([ 1, 54, 22 ]), $a([ 0, -1, -1 ]), $a([ 8, 35, 30 ]), $a([ 1, 37, 30 ]), $a([ 0, -1, -1 ]), $a([ 15, 15, 22 ]), $a([ 1, 10, 22 ]), $a([ 0, -1, -1 ]) ]), $a([ "28", 77, 19, 3, 4991, $a([ 4, 105, 20 ]), $a([ 1, 103, 20 ]), $a([ 0, -1, -1 ]), $a([ 7, 56, 24 ]), $a([ 1, 45, 18 ]), $a([ 0, -1, -1 ]), $a([ 10, 31, 26 ]), $a([ 1, 27, 26 ]), $a([ 0, -1, -1 ]), $a([ 10, 17, 26 ]), $a([ 3, 20, 28 ]), $a([ 1, 21, 28 ]) ]), $a([ "29", 79, 20, 3, 5287, $a([ 3, 139, 26 ]), $a([ 1, 137, 28 ]), $a([ 0, -1, -1 ]), $a([ 6, 66, 28 ]), $a([ 1, 66, 30 ]), $a([ 0, -1, -1 ]), $a([ 9, 36, 30 ]), $a([ 1, 34, 32 ]), $a([ 0, -1, -1 ]), $a([ 13, 19, 28 ]), $a([ 1, 17, 32 ]), $a([ 0, -1, -1 ]) ]), $a([ "30", 81, 20, 3, 5591, $a([ 6, 84, 16 ]), $a([ 1, 82, 16 ]), $a([ 0, -1, -1 ]), $a([ 6, 70, 30 ]), $a([ 1, 68, 30 ]), $a([ 0, -1, -1 ]), $a([ 7, 35, 30 ]), $a([ 3, 33, 28 ]), $a([ 1, 32, 28 ]), $a([ 13, 20, 30 ]), $a([ 1, 20, 28 ]), $a([ 0, -1, -1 ]) ]), $a([ "31", 83, 21, 3, 5903, $a([ 5, 105, 20 ]), $a([ 1, 94, 18 ]), $a([ 0, -1, -1 ]), $a([ 6, 74, 32 ]), $a([ 1, 71, 30 ]), $a([ 0, -1, -1 ]), $a([ 11, 33, 28 ]), $a([ 1, 34, 32 ]), $a([ 0, -1, -1 ]), $a([ 13, 19, 28 ]), $a([ 3, 16, 26 ]), $a([ 0, -1, -1 ]) ]), $a([ "32", 85, 17, 4, 6033, $a([ 4, 127, 24 ]), $a([ 1, 126, 24 ]), $a([ 0, -1, -1 ]), $a([ 7, 66, 28 ]), $a([ 1, 66, 30 ]), $a([ 0, -1, -1 ]), $a([ 12, 30, 24 ]), $a([ 1, 24, 28 ]), $a([ 1, 24, 30 ]), $a([ 15, 19, 28 ]), $a([ 1, 17, 32 ]), $a([ 0, -1, -1 ]) ]), $a([ "33", 87, 17, 4, 6353, $a([ 7, 84, 16 ]), $a([ 1, 78, 16 ]), $a([ 0, -1, -1 ]), $a([ 7, 70, 30 ]), $a([ 1, 66, 28 ]), $a([ 0, -1, -1 ]), $a([ 12, 33, 28 ]), $a([ 1, 32, 30 ]), $a([ 0, -1, -1 ]), $a([ 14, 21, 32 ]), $a([ 1, 24, 28 ]), $a([ 0, -1, -1 ]) ]), $a([ "34", 89, 18, 4, 6689, $a([ 5, 117, 22 ]), $a([ 1, 117, 24 ]), $a([ 0, -1, -1 ]), $a([ 8, 66, 28 ]), $a([ 1, 58, 26 ]), $a([ 0, -1, -1 ]), $a([ 11, 38, 32 ]), $a([ 1, 34, 32 ]), $a([ 0, -1, -1 ]), $a([ 15, 20, 30 ]), $a([ 2, 17, 26 ]), $a([ 0, -1, -1 ]) ]), $a([ "35", 91, 18, 4, 7025, $a([ 4, 148, 28 ]), $a([ 1, 146, 28 ]), $a([ 0, -1, -1 ]), $a([ 8, 68, 30 ]), $a([ 1, 70, 24 ]), $a([ 0, -1, -1 ]), $a([ 10, 36, 32 ]), $a([ 3, 38, 28 ]), $a([ 0, -1, -1 ]), $a([ 16, 19, 28 ]), $a([ 3, 16, 26 ]), $a([ 0, -1, -1 ]) ]), $a([ "36", 93, 19, 4, 7377, $a([ 4, 126, 24 ]), $a([ 2, 135, 26 ]), $a([ 0, -1, -1 ]), $a([ 8, 70, 28 ]), $a([ 2, 43, 26 ]), $a([ 0, -1, -1 ]), $a([ 13, 32, 28 ]), $a([ 2, 41, 30 ]), $a([ 0, -1, -1 ]), $a([ 17, 19, 28 ]), $a([ 3, 15, 26 ]), $a([ 0, -1, -1 ]) ]), $a([ "37", 95, 19, 4, 7729, $a([ 5, 136, 26 ]), $a([ 1, 132, 24 ]), $a([ 0, -1, -1 ]), $a([ 5, 67, 30 ]), $a([ 4, 68, 28 ]), $a([ 1, 69, 28 ]), $a([ 14, 35, 30 ]), $a([ 1, 32, 24 ]), $a([ 0, -1, -1 ]), $a([ 18, 18, 26 ]), $a([ 3, 16, 28 ]), $a([ 1, 14, 28 ]) ]), $a([ "38", 97, 19, 4, 8089, $a([ 3, 142, 26 ]), $a([ 3, 141, 28 ]), $a([ 0, -1, -1 ]), $a([ 8, 70, 30 ]), $a([ 1, 73, 32 ]), $a([ 1, 74, 32 ]), $a([ 12, 34, 30 ]), $a([ 3, 34, 26 ]), $a([ 1, 35, 28 ]), $a([ 18, 21, 32 ]), $a([ 1, 27, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "39", 99, 20, 4, 8465, $a([ 5, 116, 22 ]), $a([ 2, 103, 20 ]), $a([ 1, 102, 20 ]), $a([ 9, 74, 32 ]), $a([ 1, 74, 30 ]), $a([ 0, -1, -1 ]), $a([ 14, 34, 28 ]), $a([ 2, 32, 32 ]), $a([ 1, 32, 30 ]), $a([ 19, 21, 32 ]), $a([ 1, 25, 26 ]), $a([ 0, -1, -1 ]) ]), $a([ "40", 101, 20, 4, 8841, $a([ 7, 116, 22 ]), $a([ 1, 117, 22 ]), $a([ 0, -1, -1 ]), $a([ 11, 65, 28 ]), $a([ 1, 58, 24 ]), $a([ 0, -1, -1 ]), $a([ 15, 38, 32 ]), $a([ 1, 27, 28 ]), $a([ 0, -1, -1 ]), $a([ 20, 20, 30 ]), $a([ 1, 20, 32 ]), $a([ 1, 21, 32 ]) ]), $a([ "41", 103, 17, 5, 9009, $a([ 6, 136, 26 ]), $a([ 1, 130, 24 ]), $a([ 0, -1, -1 ]), $a([ 11, 66, 28 ]), $a([ 1, 62, 30 ]), $a([ 0, -1, -1 ]), $a([ 14, 34, 28 ]), $a([ 3, 34, 32 ]), $a([ 1, 30, 30 ]), $a([ 18, 20, 30 ]), $a([ 3, 20, 28 ]), $a([ 2, 15, 26 ]) ]), $a([ "42", 105, 17, 5, 9401, $a([ 5, 105, 20 ]), $a([ 2, 115, 22 ]), $a([ 2, 116, 22 ]), $a([ 10, 75, 32 ]), $a([ 1, 73, 32 ]), $a([ 0, -1, -1 ]), $a([ 16, 38, 32 ]), $a([ 1, 27, 28 ]), $a([ 0, -1, -1 ]), $a([ 22, 19, 28 ]), $a([ 2, 16, 30 ]), $a([ 1, 19, 30 ]) ]), $a([ "43", 107, 18, 5, 9799, $a([ 6, 147, 28 ]), $a([ 1, 146, 28 ]), $a([ 0, -1, -1 ]), $a([ 11, 66, 28 ]), $a([ 2, 65, 30 ]), $a([ 0, -1, -1 ]), $a([ 18, 33, 28 ]), $a([ 2, 33, 30 ]), $a([ 0, -1, -1 ]), $a([ 22, 21, 32 ]), $a([ 1, 28, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "44", 109, 18, 5, 10207, $a([ 6, 116, 22 ]), $a([ 3, 125, 24 ]), $a([ 0, -1, -1 ]), $a([ 11, 75, 32 ]), $a([ 1, 68, 30 ]), $a([ 0, -1, -1 ]), $a([ 13, 35, 28 ]), $a([ 6, 34, 32 ]), $a([ 1, 30, 30 ]), $a([ 23, 21, 32 ]), $a([ 1, 26, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "45", 111, 18, 5, 10623, $a([ 7, 105, 20 ]), $a([ 4, 95, 18 ]), $a([ 0, -1, -1 ]), $a([ 12, 67, 28 ]), $a([ 1, 63, 30 ]), $a([ 1, 62, 32 ]), $a([ 21, 31, 26 ]), $a([ 2, 33, 32 ]), $a([ 0, -1, -1 ]), $a([ 23, 21, 32 ]), $a([ 2, 24, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "46", 113, 19, 5, 11045, $a([ 10, 116, 22 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 12, 74, 32 ]), $a([ 1, 78, 30 ]), $a([ 0, -1, -1 ]), $a([ 18, 37, 32 ]), $a([ 1, 39, 30 ]), $a([ 1, 41, 28 ]), $a([ 25, 21, 32 ]), $a([ 1, 27, 28 ]), $a([ 0, -1, -1 ]) ]), $a([ "47", 115, 19, 5, 11477, $a([ 5, 126, 24 ]), $a([ 4, 115, 22 ]), $a([ 1, 114, 22 ]), $a([ 12, 67, 28 ]), $a([ 2, 66, 32 ]), $a([ 1, 68, 30 ]), $a([ 21, 35, 30 ]), $a([ 1, 39, 30 ]), $a([ 0, -1, -1 ]), $a([ 26, 21, 32 ]), $a([ 1, 28, 28 ]), $a([ 0, -1, -1 ]) ]), $a([ "48", 117, 19, 5, 11917, $a([ 9, 126, 24 ]), $a([ 1, 117, 22 ]), $a([ 0, -1, -1 ]), $a([ 13, 75, 32 ]), $a([ 1, 68, 30 ]), $a([ 0, -1, -1 ]), $a([ 20, 35, 30 ]), $a([ 3, 35, 28 ]), $a([ 0, -1, -1 ]), $a([ 27, 21, 32 ]), $a([ 1, 28, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "49", 119, 17, 6, 12111, $a([ 9, 126, 24 ]), $a([ 1, 137, 26 ]), $a([ 0, -1, -1 ]), $a([ 13, 71, 30 ]), $a([ 2, 68, 32 ]), $a([ 0, -1, -1 ]), $a([ 20, 37, 32 ]), $a([ 1, 39, 28 ]), $a([ 1, 38, 28 ]), $a([ 24, 20, 32 ]), $a([ 5, 25, 28 ]), $a([ 0, -1, -1 ]) ]), $a([ "50", 121, 17, 6, 12559, $a([ 8, 147, 28 ]), $a([ 1, 141, 28 ]), $a([ 0, -1, -1 ]), $a([ 10, 73, 32 ]), $a([ 4, 74, 30 ]), $a([ 1, 73, 30 ]), $a([ 16, 36, 32 ]), $a([ 6, 39, 30 ]), $a([ 1, 37, 30 ]), $a([ 27, 21, 32 ]), $a([ 3, 20, 26 ]), $a([ 0, -1, -1 ]) ]), $a([ "51", 123, 18, 6, 13025, $a([ 9, 137, 26 ]), $a([ 1, 135, 26 ]), $a([ 0, -1, -1 ]), $a([ 12, 70, 30 ]), $a([ 4, 75, 32 ]), $a([ 0, -1, -1 ]), $a([ 24, 35, 30 ]), $a([ 1, 40, 28 ]), $a([ 0, -1, -1 ]), $a([ 23, 20, 32 ]), $a([ 8, 24, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "52", 125, 18, 6, 13489, $a([ 14, 95, 18 ]), $a([ 1, 86, 18 ]), $a([ 0, -1, -1 ]), $a([ 13, 73, 32 ]), $a([ 3, 77, 30 ]), $a([ 0, -1, -1 ]), $a([ 24, 35, 30 ]), $a([ 2, 35, 28 ]), $a([ 0, -1, -1 ]), $a([ 26, 21, 32 ]), $a([ 5, 21, 30 ]), $a([ 1, 23, 30 ]) ]), $a([ "53", 127, 18, 6, 13961, $a([ 9, 147, 28 ]), $a([ 1, 142, 28 ]), $a([ 0, -1, -1 ]), $a([ 10, 73, 30 ]), $a([ 6, 70, 32 ]), $a([ 1, 71, 32 ]), $a([ 25, 35, 30 ]), $a([ 2, 34, 26 ]), $a([ 0, -1, -1 ]), $a([ 29, 21, 32 ]), $a([ 4, 22, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "54", 129, 18, 6, 14441, $a([ 11, 126, 24 ]), $a([ 1, 131, 24 ]), $a([ 0, -1, -1 ]), $a([ 16, 74, 32 ]), $a([ 1, 79, 30 ]), $a([ 0, -1, -1 ]), $a([ 25, 38, 32 ]), $a([ 1, 25, 30 ]), $a([ 0, -1, -1 ]), $a([ 33, 21, 32 ]), $a([ 1, 28, 28 ]), $a([ 0, -1, -1 ]) ]), $a([ "55", 131, 19, 6, 14939, $a([ 14, 105, 20 ]), $a([ 1, 99, 18 ]), $a([ 0, -1, -1 ]), $a([ 19, 65, 28 ]), $a([ 1, 72, 28 ]), $a([ 0, -1, -1 ]), $a([ 24, 37, 32 ]), $a([ 2, 40, 30 ]), $a([ 1, 41, 30 ]), $a([ 31, 21, 32 ]), $a([ 4, 24, 32 ]), $a([ 0, -1, -1 ]) ]), $a([ "56", 133, 19, 6, 15435, $a([ 10, 147, 28 ]), $a([ 1, 151, 28 ]), $a([ 0, -1, -1 ]), $a([ 15, 71, 30 ]), $a([ 3, 71, 32 ]), $a([ 1, 73, 32 ]), $a([ 24, 37, 32 ]), $a([ 3, 38, 30 ]), $a([ 1, 39, 30 ]), $a([ 36, 19, 30 ]), $a([ 3, 29, 26 ]), $a([ 0, -1, -1 ]) ]), $a([ "57", 135, 19, 6, 15939, $a([ 15, 105, 20 ]), $a([ 1, 99, 18 ]), $a([ 0, -1, -1 ]), $a([ 19, 70, 30 ]), $a([ 1, 64, 28 ]), $a([ 0, -1, -1 ]), $a([ 27, 38, 32 ]), $a([ 2, 25, 26 ]), $a([ 0, -1, -1 ]), $a([ 38, 20, 30 ]), $a([ 2, 18, 28 ]), $a([ 0, -1, -1 ]) ]), $a([ "58", 137, 17, 7, 16171, $a([ 14, 105, 20 ]), $a([ 1, 113, 22 ]), $a([ 1, 114, 22 ]), $a([ 17, 67, 30 ]), $a([ 3, 92, 32 ]), $a([ 0, -1, -1 ]), $a([ 30, 35, 30 ]), $a([ 1, 41, 30 ]), $a([ 0, -1, -1 ]), $a([ 36, 21, 32 ]), $a([ 1, 26, 30 ]), $a([ 1, 27, 30 ]) ]), $a([ "59", 139, 17, 7, 16691, $a([ 11, 146, 28 ]), $a([ 1, 146, 26 ]), $a([ 0, -1, -1 ]), $a([ 20, 70, 30 ]), $a([ 1, 60, 26 ]), $a([ 0, -1, -1 ]), $a([ 29, 38, 32 ]), $a([ 1, 24, 32 ]), $a([ 0, -1, -1 ]), $a([ 40, 20, 30 ]), $a([ 2, 17, 26 ]), $a([ 0, -1, -1 ]) ]), $a([ "60", 141, 18, 7, 17215, $a([ 3, 137, 26 ]), $a([ 1, 136, 26 ]), $a([ 10, 126, 24 ]), $a([ 22, 65, 28 ]), $a([ 1, 75, 30 ]), $a([ 0, -1, -1 ]), $a([ 30, 37, 32 ]), $a([ 1, 51, 30 ]), $a([ 0, -1, -1 ]), $a([ 42, 20, 30 ]), $a([ 1, 21, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "61", 143, 18, 7, 17751, $a([ 12, 126, 24 ]), $a([ 2, 118, 22 ]), $a([ 1, 116, 22 ]), $a([ 19, 74, 32 ]), $a([ 1, 74, 30 ]), $a([ 1, 72, 28 ]), $a([ 30, 38, 32 ]), $a([ 2, 29, 30 ]), $a([ 0, -1, -1 ]), $a([ 39, 20, 32 ]), $a([ 2, 37, 26 ]), $a([ 1, 38, 26 ]) ]), $a([ "62", 145, 18, 7, 18295, $a([ 12, 126, 24 ]), $a([ 3, 136, 26 ]), $a([ 0, -1, -1 ]), $a([ 21, 70, 30 ]), $a([ 2, 65, 28 ]), $a([ 0, -1, -1 ]), $a([ 34, 35, 30 ]), $a([ 1, 44, 32 ]), $a([ 0, -1, -1 ]), $a([ 42, 20, 30 ]), $a([ 2, 19, 28 ]), $a([ 2, 18, 28 ]) ]), $a([ "63", 147, 18, 7, 18847, $a([ 12, 126, 24 ]), $a([ 3, 117, 22 ]), $a([ 1, 116, 22 ]), $a([ 25, 61, 26 ]), $a([ 2, 62, 28 ]), $a([ 0, -1, -1 ]), $a([ 34, 35, 30 ]), $a([ 1, 40, 32 ]), $a([ 1, 41, 32 ]), $a([ 45, 20, 30 ]), $a([ 1, 20, 32 ]), $a([ 1, 21, 32 ]) ]), $a([ "64", 149, 19, 7, 19403, $a([ 15, 105, 20 ]), $a([ 2, 115, 22 ]), $a([ 2, 116, 22 ]), $a([ 25, 65, 28 ]), $a([ 1, 72, 28 ]), $a([ 0, -1, -1 ]), $a([ 18, 35, 30 ]), $a([ 17, 37, 32 ]), $a([ 1, 50, 32 ]), $a([ 42, 20, 30 ]), $a([ 6, 19, 28 ]), $a([ 1, 15, 28 ]) ]), $a([ "65", 151, 19, 7, 19971, $a([ 19, 105, 20 ]), $a([ 1, 101, 20 ]), $a([ 0, -1, -1 ]), $a([ 33, 51, 22 ]), $a([ 1, 65, 22 ]), $a([ 0, -1, -1 ]), $a([ 40, 33, 28 ]), $a([ 1, 28, 28 ]), $a([ 0, -1, -1 ]), $a([ 49, 20, 30 ]), $a([ 1, 18, 28 ]), $a([ 0, -1, -1 ]) ]), $a([ "66", 153, 17, 8, 20229, $a([ 18, 105, 20 ]), $a([ 2, 117, 22 ]), $a([ 0, -1, -1 ]), $a([ 26, 65, 28 ]), $a([ 1, 80, 30 ]), $a([ 0, -1, -1 ]), $a([ 35, 35, 30 ]), $a([ 3, 35, 28 ]), $a([ 1, 36, 28 ]), $a([ 52, 18, 28 ]), $a([ 2, 38, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "67", 155, 17, 8, 20805, $a([ 26, 84, 16 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 26, 70, 30 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 45, 31, 26 ]), $a([ 1, 9, 26 ]), $a([ 0, -1, -1 ]), $a([ 52, 20, 30 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]) ]), $a([ "68", 157, 17, 8, 21389, $a([ 16, 126, 24 ]), $a([ 1, 114, 22 ]), $a([ 1, 115, 22 ]), $a([ 23, 70, 30 ]), $a([ 3, 65, 28 ]), $a([ 1, 66, 28 ]), $a([ 40, 35, 30 ]), $a([ 1, 43, 30 ]), $a([ 0, -1, -1 ]), $a([ 46, 20, 30 ]), $a([ 7, 19, 28 ]), $a([ 1, 16, 28 ]) ]), $a([ "69", 159, 18, 8, 21993, $a([ 19, 116, 22 ]), $a([ 1, 105, 22 ]), $a([ 0, -1, -1 ]), $a([ 20, 70, 30 ]), $a([ 7, 66, 28 ]), $a([ 1, 63, 28 ]), $a([ 40, 35, 30 ]), $a([ 1, 42, 32 ]), $a([ 1, 43, 32 ]), $a([ 54, 20, 30 ]), $a([ 1, 19, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "70", 161, 18, 8, 22593, $a([ 17, 126, 24 ]), $a([ 2, 115, 22 ]), $a([ 0, -1, -1 ]), $a([ 24, 70, 30 ]), $a([ 4, 74, 32 ]), $a([ 0, -1, -1 ]), $a([ 48, 31, 26 ]), $a([ 2, 18, 26 ]), $a([ 0, -1, -1 ]), $a([ 54, 19, 28 ]), $a([ 6, 15, 26 ]), $a([ 1, 14, 26 ]) ]), $a([ "71", 163, 18, 8, 23201, $a([ 29, 84, 16 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 29, 70, 30 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 6, 34, 30 ]), $a([ 3, 36, 30 ]), $a([ 38, 33, 28 ]), $a([ 58, 20, 30 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]) ]), $a([ "72", 165, 18, 8, 23817, $a([ 16, 147, 28 ]), $a([ 1, 149, 28 ]), $a([ 0, -1, -1 ]), $a([ 31, 66, 28 ]), $a([ 1, 37, 26 ]), $a([ 0, -1, -1 ]), $a([ 48, 33, 28 ]), $a([ 1, 23, 26 ]), $a([ 0, -1, -1 ]), $a([ 53, 20, 30 ]), $a([ 6, 19, 28 ]), $a([ 1, 17, 28 ]) ]), $a([ "73", 167, 19, 8, 24453, $a([ 20, 115, 22 ]), $a([ 2, 134, 24 ]), $a([ 0, -1, -1 ]), $a([ 29, 66, 28 ]), $a([ 2, 56, 26 ]), $a([ 2, 57, 26 ]), $a([ 45, 36, 30 ]), $a([ 2, 15, 28 ]), $a([ 0, -1, -1 ]), $a([ 59, 20, 30 ]), $a([ 2, 21, 32 ]), $a([ 0, -1, -1 ]) ]), $a([ "74", 169, 19, 8, 25085, $a([ 17, 147, 28 ]), $a([ 1, 134, 26 ]), $a([ 0, -1, -1 ]), $a([ 26, 70, 30 ]), $a([ 5, 75, 32 ]), $a([ 0, -1, -1 ]), $a([ 47, 35, 30 ]), $a([ 1, 48, 32 ]), $a([ 0, -1, -1 ]), $a([ 64, 18, 28 ]), $a([ 2, 33, 30 ]), $a([ 1, 35, 30 ]) ]), $a([ "75", 171, 17, 9, 25373, $a([ 22, 115, 22 ]), $a([ 1, 133, 24 ]), $a([ 0, -1, -1 ]), $a([ 33, 65, 28 ]), $a([ 1, 74, 28 ]), $a([ 0, -1, -1 ]), $a([ 43, 36, 30 ]), $a([ 5, 27, 28 ]), $a([ 1, 30, 28 ]), $a([ 57, 20, 30 ]), $a([ 5, 21, 32 ]), $a([ 1, 24, 32 ]) ]), $a([ "76", 173, 17, 9, 26021, $a([ 18, 136, 26 ]), $a([ 2, 142, 26 ]), $a([ 0, -1, -1 ]), $a([ 33, 66, 28 ]), $a([ 2, 49, 26 ]), $a([ 0, -1, -1 ]), $a([ 48, 35, 30 ]), $a([ 2, 38, 28 ]), $a([ 0, -1, -1 ]), $a([ 64, 20, 30 ]), $a([ 1, 20, 32 ]), $a([ 0, -1, -1 ]) ]), $a([ "77", 175, 17, 9, 26677, $a([ 19, 126, 24 ]), $a([ 2, 135, 26 ]), $a([ 1, 136, 26 ]), $a([ 32, 66, 28 ]), $a([ 2, 55, 26 ]), $a([ 2, 56, 26 ]), $a([ 49, 36, 30 ]), $a([ 2, 18, 32 ]), $a([ 0, -1, -1 ]), $a([ 65, 18, 28 ]), $a([ 5, 27, 30 ]), $a([ 1, 29, 30 ]) ]), $a([ "78", 177, 18, 9, 27335, $a([ 20, 137, 26 ]), $a([ 1, 130, 26 ]), $a([ 0, -1, -1 ]), $a([ 30, 75, 32 ]), $a([ 2, 71, 32 ]), $a([ 0, -1, -1 ]), $a([ 46, 35, 30 ]), $a([ 6, 39, 32 ]), $a([ 0, -1, -1 ]), $a([ 3, 12, 30 ]), $a([ 70, 19, 28 ]), $a([ 0, -1, -1 ]) ]), $a([ "79", 179, 18, 9, 28007, $a([ 20, 147, 28 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 35, 70, 30 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 49, 35, 30 ]), $a([ 5, 35, 28 ]), $a([ 0, -1, -1 ]), $a([ 70, 20, 30 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]) ]), $a([ "80", 181, 18, 9, 28687, $a([ 21, 136, 26 ]), $a([ 1, 155, 28 ]), $a([ 0, -1, -1 ]), $a([ 34, 70, 30 ]), $a([ 1, 64, 28 ]), $a([ 1, 65, 28 ]), $a([ 54, 35, 30 ]), $a([ 1, 45, 30 ]), $a([ 0, -1, -1 ]), $a([ 68, 20, 30 ]), $a([ 3, 18, 28 ]), $a([ 1, 19, 28 ]) ]), $a([ "81", 183, 18, 9, 29375, $a([ 19, 126, 24 ]), $a([ 5, 115, 22 ]), $a([ 1, 114, 22 ]), $a([ 33, 70, 30 ]), $a([ 3, 65, 28 ]), $a([ 1, 64, 28 ]), $a([ 52, 35, 30 ]), $a([ 3, 41, 32 ]), $a([ 1, 40, 32 ]), $a([ 67, 20, 30 ]), $a([ 5, 21, 32 ]), $a([ 1, 24, 32 ]) ]), $a([ "82", 185, 18, 9, 30071, $a([ 2, 150, 28 ]), $a([ 21, 136, 26 ]), $a([ 0, -1, -1 ]), $a([ 32, 70, 30 ]), $a([ 6, 65, 28 ]), $a([ 0, -1, -1 ]), $a([ 52, 38, 32 ]), $a([ 2, 27, 32 ]), $a([ 0, -1, -1 ]), $a([ 73, 20, 30 ]), $a([ 2, 22, 32 ]), $a([ 0, -1, -1 ]) ]), $a([ "83", 187, 17, 10, 30387, $a([ 21, 126, 24 ]), $a([ 4, 136, 26 ]), $a([ 0, -1, -1 ]), $a([ 30, 74, 32 ]), $a([ 6, 73, 30 ]), $a([ 0, -1, -1 ]), $a([ 54, 35, 30 ]), $a([ 4, 40, 32 ]), $a([ 0, -1, -1 ]), $a([ 75, 20, 30 ]), $a([ 1, 20, 28 ]), $a([ 0, -1, -1 ]) ]), $a([ "84", 189, 17, 10, 31091, $a([ 30, 105, 20 ]), $a([ 1, 114, 22 ]), $a([ 0, -1, -1 ]), $a([ 3, 45, 22 ]), $a([ 55, 47, 20 ]), $a([ 0, -1, -1 ]), $a([ 2, 26, 26 ]), $a([ 62, 33, 28 ]), $a([ 0, -1, -1 ]), $a([ 79, 18, 28 ]), $a([ 4, 33, 30 ]), $a([ 0, -1, -1 ]) ]) ]); - $1.eclval = $get($1.eclevel, 1) - 49; - for (var _IM = 0; _IM <= 83; _IM += 1) { - $1.i = _IM; - $1.m = $get($1.metrics, $1.i); - $1.vers = $get($1.m, 0); - $1.size = $get($1.m, 1); - $1.alnk = $get($1.m, 2); - $1.alnn = $get($1.m, 3); - $1.alnr = $f($1.size - $1.alnk * $1.alnn); - $1.nmod = $get($1.m, 4); - $1.ncws = ~~($1.nmod / 8); - $1.rbit = $1.nmod % 8; - $1.ecbs = $geti($1.m, 5 + $1.eclval * 3, 3); - var _Ii = $1.ecbs; - $k[$j++] = "ecws"; - $k[$j++] = 0; - for (var _Ij = 0, _Ik = _Ii.length; _Ij < _Ik; _Ij++) { - var _Il = $get(_Ii, _Ij); - var _Io = $k[--$j]; - $k[$j++] = $f(_Io + $get(_Il, 0) * $get(_Il, 2)); - } - var _Ip = $k[--$j]; - $1[$k[--$j]] = _Ip; - $1.dcws = $f($1.ncws - $1.ecws); - $1.dmod = $1.dcws * 8; - $1.okay = true; - if ($ne($1.version, "unset") && $ne($1.version, $1.vers)) { - $1.okay = false; - } - if ($1.bits.length > $1.dmod) { - $1.okay = false; - } - if ($1.okay) { - break; - } - } - if (!$1.okay) { - $k[$j++] = "bwipp.hanxinNoValidSymbol"; - $k[$j++] = "No valid symbol available"; - $0.raiseerror(); - } - $1.version = $1.vers; - $1.msgbits = $1.bits; - $1.e1nb = $get($get($1.ecbs, 0), 0); - $1.e2nb = $get($get($1.ecbs, 1), 0); - $1.e3nb = $get($get($1.ecbs, 2), 0); - $1.e1dcws = $get($get($1.ecbs, 0), 1); - $1.e2dcws = $get($get($1.ecbs, 1), 1); - $1.e3dcws = $get($get($1.ecbs, 2), 1); - $1.e1ecws = $get($get($1.ecbs, 0), 2); - $1.e2ecws = $get($get($1.ecbs, 1), 2); - $1.e3ecws = $get($get($1.ecbs, 2), 2); - $1.pad = $s($1.dmod); - for (var _JY = 0, _JX = $1.pad.length - 1; _JY <= _JX; _JY += 1) { - $put($1.pad, _JY, 48); - } - $puti($1.pad, 0, $1.msgbits); - $1.cws = $a($1.dcws); - for (var _Jg = 0, _Jf = $1.cws.length - 1; _Jg <= _Jf; _Jg += 1) { - $1.c = _Jg; - $1.cwb = $geti($1.pad, $1.c * 8, 8); - $1.cw = 0; - for (var _Jk = 0; _Jk <= 7; _Jk += 1) { - $1.i = _Jk; - $1.cw = $f($1.cw + ~~Math.pow(2, 8 - $1.i - 1) * $f($get($1.cwb, $1.i) - 48)); - } - $put($1.cws, $1.c, $1.cw); - } - $1.rscodes = function() { - $1.rspm = $k[--$j]; - $1.rsgf = $k[--$j]; - $1.rsnc = $k[--$j]; - $1.rscws = $k[--$j]; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _Jy = 0, _Jz = $f($1.rsgf - 1); _Jy < _Jz; _Jy++) { - var _K0 = $k[--$j]; - var _K1 = _K0 * 2; - $k[$j++] = _K0; - $k[$j++] = _K1; - if (_K1 >= $1.rsgf) { - var _K4 = $k[--$j]; - $k[$j++] = $xo(_K4, $1.rspm); - } - } - $1.rsalog = $a(); - $1.rslog = $a($1.rsgf); - for (var _KA = 1, _K9 = $f($1.rsgf - 1); _KA <= _K9; _KA += 1) { - $put($1.rslog, $get($1.rsalog, _KA), _KA); - } - $1.rsprod = function() { - var _KE = $k[--$j]; - var _KF = $k[--$j]; - $k[$j++] = _KF; - $k[$j++] = _KE; - if (_KE != 0 && _KF != 0) { - var _KI = $get($1.rslog, $k[--$j]); - var _KO = $get($1.rsalog, $f(_KI + $get($1.rslog, $k[--$j])) % $f($1.rsgf - 1)); - $k[$j++] = _KO; - } else { - $j -= 2; - $k[$j++] = 0; - } - }; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _KQ = 0, _KR = $1.rsnc; _KQ < _KR; _KQ++) { - $k[$j++] = 0; - } - $1.coeffs = $a(); - for (var _KV = 1, _KU = $1.rsnc; _KV <= _KU; _KV += 1) { - $1.i = _KV; - $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); - for (var _Kc = $1.i - 1; _Kc >= 1; _Kc -= 1) { - $1.j = _Kc; - $k[$j++] = $1.coeffs; - $k[$j++] = $1.j; - $k[$j++] = $get($1.coeffs, $1.j - 1); - $k[$j++] = $get($1.coeffs, $1.j); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _Ko = $k[--$j]; - var _Kp = $k[--$j]; - var _Kq = $k[--$j]; - $put($k[--$j], _Kq, $xo(_Kp, _Ko)); - } - $k[$j++] = $1.coeffs; - $k[$j++] = 0; - $k[$j++] = $get($1.coeffs, 0); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _Ky = $k[--$j]; - var _Kz = $k[--$j]; - $put($k[--$j], _Kz, _Ky); - } - $1.nd = $1.rscws.length; - $k[$j++] = Infinity; - $forall($1.rscws); - for (var _L4 = 0, _L5 = $1.rsnc; _L4 < _L5; _L4++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.rscws = $a(); - for (var _L9 = 0, _L8 = $1.nd - 1; _L9 <= _L8; _L9 += 1) { - $1.k = $xo($get($1.rscws, _L9), $get($1.rscws, $1.nd)); - for (var _LH = 0, _LG = $f($1.rsnc - 1); _LH <= _LG; _LH += 1) { - $1.j = _LH; - $k[$j++] = $1.rscws; - $k[$j++] = $1.nd + $1.j; - $k[$j++] = $get($1.rscws, $1.nd + $1.j + 1); - $k[$j++] = $1.k; - $k[$j++] = $get($1.coeffs, $f($f($1.rsnc - $1.j) - 1)); - $1.rsprod(); - var _LU = $k[--$j]; - var _LV = $k[--$j]; - var _LW = $k[--$j]; - $put($k[--$j], _LW, $xo(_LV, _LU)); - } - } - $k[$j++] = $geti($1.rscws, 0, $1.rscws.length - 1); - }; - $1.dcwsb = $a($f($f($1.e1nb + $1.e2nb) + $1.e3nb)); - $1.ecwsb = $a($1.dcwsb.length); - $1.in = 0; - $1.out = 0; - for (var _Li = 0, _Lj = $1.e1nb; _Li < _Lj; _Li++) { - $k[$j++] = $geti($1.cws, $1.in, $1.e1dcws); - $k[$j++] = $1.e1ecws; - $k[$j++] = 256; - $k[$j++] = 355; - $1.rscodes(); - var _Lp = $k[--$j]; - $put($1.dcwsb, $1.out, $geti(_Lp, 0, $1.e1dcws)); - $put($1.ecwsb, $1.out, $geti(_Lp, $1.e1dcws, $1.e1ecws)); - $1.in = $f($1.in + $1.e1dcws); - $1.out = $1.out + 1; - } - for (var _M3 = 0, _M4 = $1.e2nb; _M3 < _M4; _M3++) { - $k[$j++] = $geti($1.cws, $1.in, $1.e2dcws); - $k[$j++] = $1.e2ecws; - $k[$j++] = 256; - $k[$j++] = 355; - $1.rscodes(); - var _MA = $k[--$j]; - $put($1.dcwsb, $1.out, $geti(_MA, 0, $1.e2dcws)); - $put($1.ecwsb, $1.out, $geti(_MA, $1.e2dcws, $1.e2ecws)); - $1.in = $f($1.in + $1.e2dcws); - $1.out = $1.out + 1; - } - for (var _MO = 0, _MP = $1.e3nb; _MO < _MP; _MO++) { - $k[$j++] = $geti($1.cws, $1.in, $1.e3dcws); - $k[$j++] = $1.e3ecws; - $k[$j++] = 256; - $k[$j++] = 355; - $1.rscodes(); - var _MV = $k[--$j]; - $put($1.dcwsb, $1.out, $geti(_MV, 0, $1.e3dcws)); - $put($1.ecwsb, $1.out, $geti(_MV, $1.e3dcws, $1.e3ecws)); - $1.in = $f($1.in + $1.e3dcws); - $1.out = $1.out + 1; - } - $1.cws = $a($1.ncws); - $1.cw = 0; - for (var _Mm = 0, _Ml = $1.dcwsb.length - 1; _Mm <= _Ml; _Mm += 1) { - $1.i = _Mm; - var _Mp = $get($1.dcwsb, $1.i); - $puti($1.cws, $1.cw, _Mp); - $1.cw = _Mp.length + $1.cw; - var _Mv = $get($1.ecwsb, $1.i); - $puti($1.cws, $1.cw, _Mv); - $1.cw = _Mv.length + $1.cw; - } - $k[$j++] = Infinity; - var _Mz = $1.ncws; - var _N0 = 12; - var _N1 = _Mz - 1; - if (_Mz - 1 > 12) { - var _ = _N0; - _N0 = _N1; - _N1 = _; - } - for (var _N3 = 0, _N2 = _N1; _N3 <= _N2; _N3 += 1) { - for (var _N6 = _N3, _N5 = $1.ncws - 1; _N6 <= _N5; _N6 += 13) { - $k[$j++] = _N6; - if (_N6 < $1.ncws) { - var _NA = $get($1.cws, $k[--$j]); - $k[$j++] = _NA; - } else { - $j--; - } - } - } - $1.cws = $a(); - if ($1.rbit > 0) { - $1.pad = $a($1.cws.length + 1); - $puti($1.pad, 0, $1.cws); - $put($1.pad, $1.pad.length - 1, 0); - $1.cws = $1.pad; - } - $k[$j++] = Infinity; - for (var _NM = 0, _NN = $1.size * $1.size; _NM < _NN; _NM++) { - $k[$j++] = -1; - } - $1.pixs = $a(); - $1.qmv = function() { - var _NQ = $k[--$j]; - var _NR = $k[--$j]; - $k[$j++] = $f(_NR + _NQ * $1.size); - }; - if ($1.alnn != 0) { - $1.trmv = function() { - var _NU = $k[--$j]; - var _NW = $k[--$j]; - $k[$j++] = $f($f($f(_NU * $1.size + $1.size) - 1) - _NW); - }; - $1.aplot = function() { - var _NX = $k[--$j]; - var _NY = $k[--$j]; - var _NZ = $k[--$j]; - $k[$j++] = _NX; - $k[$j++] = _NZ; - $k[$j++] = _NY; - $k[$j++] = _NX; - $k[$j++] = _NY; - $k[$j++] = _NZ; - $1.trmv(); - var _Nb = $k[--$j]; - $put($1.pixs, _Nb, $k[--$j]); - $1.trmv(); - var _Ne = $k[--$j]; - $put($1.pixs, _Ne, $k[--$j]); - }; - $1.i = 0; - $1.stag = 0; - for (;;) { - if ($1.i >= $1.size) { - break; - } - for (var _Nk = 0, _Nj = $f($1.size - 1); _Nk <= _Nj; _Nk += 1) { - $1.j = _Nk; - if ($f($1.j + $1.alnr) < $1.size) { - $k[$j++] = (~~($1.j / $1.alnk) + $1.stag) % 2 == 0 && !($1.i == 0 && $1.j < $1.alnk) || $1.j % $1.alnk == 0; - } else { - $k[$j++] = $f($1.alnn + $1.stag) % 2 == 0; - } - if ($k[--$j]) { - $k[$j++] = $1.j; - $k[$j++] = $1.i; - $k[$j++] = 1; - $1.aplot(); - var _O1 = $1.j; - var _O2 = $1.i; - $k[$j++] = _O1 + 1; - $k[$j++] = _O2 + 1; - if (_O2 + 1 < $1.size && _O1 + 1 < $1.size) { - $k[$j++] = 0; - $1.aplot(); - } else { - $j -= 2; - } - } - } - if ($f($1.i + $1.alnr) == $1.size) { - $1.i = $f($f($1.i + $1.alnr) - 1); - } else { - $1.i = $f($1.i + $1.alnk); - } - $1.stag = 1 - $1.stag; - } - for (var _OH = $1.alnk, _OI = $1.alnk, _OG = $f($1.size - 2); _OI < 0 ? _OH >= _OG : _OH <= _OG; _OH += _OI) { - $1.i = _OH; - if (~~($1.i / $1.alnk) % 2 != 0) { - $k[$j++] = $1.pixs; - $k[$j++] = 0; - $k[$j++] = $1.i - 1; - $1.trmv(); - var _ON = $k[--$j]; - $put($k[--$j], _ON, 0); - $k[$j++] = $1.pixs; - $k[$j++] = 0; - $k[$j++] = $1.i + 1; - $1.trmv(); - var _OR = $k[--$j]; - $put($k[--$j], _OR, 0); - $k[$j++] = $1.pixs; - $k[$j++] = 1; - $k[$j++] = $1.i - 1; - $1.trmv(); - var _OV = $k[--$j]; - $put($k[--$j], _OV, 0); - $k[$j++] = $1.pixs; - $k[$j++] = 1; - $k[$j++] = $1.i; - $1.trmv(); - var _OZ = $k[--$j]; - $put($k[--$j], _OZ, 0); - $k[$j++] = $1.pixs; - $k[$j++] = 1; - $k[$j++] = $1.i + 1; - $1.trmv(); - var _Od = $k[--$j]; - $put($k[--$j], _Od, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $1.i - 1; - $k[$j++] = 0; - $1.trmv(); - var _Oh = $k[--$j]; - $put($k[--$j], _Oh, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $1.i + 1; - $k[$j++] = 0; - $1.trmv(); - var _Ol = $k[--$j]; - $put($k[--$j], _Ol, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $1.i - 1; - $k[$j++] = 1; - $1.trmv(); - var _Op = $k[--$j]; - $put($k[--$j], _Op, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = 1; - $1.trmv(); - var _Ot = $k[--$j]; - $put($k[--$j], _Ot, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $1.i + 1; - $k[$j++] = 1; - $1.trmv(); - var _Ox = $k[--$j]; - $put($k[--$j], _Ox, 0); - } - $k[$j++] = $1.pixs; - $k[$j++] = $f($1.size - 1); - $k[$j++] = $1.i - 1; - $1.trmv(); - var _P2 = $k[--$j]; - if ($get($k[--$j], _P2) != 1) { - $k[$j++] = $1.pixs; - $k[$j++] = $f($1.size - 1); - $k[$j++] = $1.i - 1; - $1.trmv(); - var _P8 = $k[--$j]; - $put($k[--$j], _P8, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $f($1.size - 2); - $k[$j++] = $1.i - 1; - $1.trmv(); - var _PD = $k[--$j]; - $put($k[--$j], _PD, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $f($1.size - 2); - $k[$j++] = $1.i; - $1.trmv(); - var _PI = $k[--$j]; - $put($k[--$j], _PI, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $f($1.size - 2); - $k[$j++] = $1.i + 1; - $1.trmv(); - var _PN = $k[--$j]; - $put($k[--$j], _PN, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $f($1.size - 1); - $k[$j++] = $1.i + 1; - $1.trmv(); - var _PS = $k[--$j]; - $put($k[--$j], _PS, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $1.i - 1; - $k[$j++] = $f($1.size - 1); - $1.trmv(); - var _PX = $k[--$j]; - $put($k[--$j], _PX, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $1.i - 1; - $k[$j++] = $f($1.size - 2); - $1.trmv(); - var _Pc = $k[--$j]; - $put($k[--$j], _Pc, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = $f($1.size - 2); - $1.trmv(); - var _Ph = $k[--$j]; - $put($k[--$j], _Ph, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $1.i + 1; - $k[$j++] = $f($1.size - 2); - $1.trmv(); - var _Pm = $k[--$j]; - $put($k[--$j], _Pm, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $1.i + 1; - $k[$j++] = $f($1.size - 1); - $1.trmv(); - var _Pr = $k[--$j]; - $put($k[--$j], _Pr, 0); - } - } - } - $1.fpat = $a([ $a([ 1, 1, 1, 1, 1, 1, 1, 0 ]), $a([ 1, 0, 0, 0, 0, 0, 0, 0 ]), $a([ 1, 0, 1, 1, 1, 1, 1, 0 ]), $a([ 1, 0, 1, 0, 0, 0, 0, 0 ]), $a([ 1, 0, 1, 0, 1, 1, 1, 0 ]), $a([ 1, 0, 1, 0, 1, 1, 1, 0 ]), $a([ 1, 0, 1, 0, 1, 1, 1, 0 ]), $a([ 0, 0, 0, 0, 0, 0, 0, 0 ]) ]); - $1.fpat2 = $a([ $a([ 1, 1, 1, 0, 1, 0, 1, 0 ]), $a([ 1, 1, 1, 0, 1, 0, 1, 0 ]), $a([ 1, 1, 1, 0, 1, 0, 1, 0 ]), $a([ 0, 0, 0, 0, 1, 0, 1, 0 ]), $a([ 1, 1, 1, 1, 1, 0, 1, 0 ]), $a([ 0, 0, 0, 0, 0, 0, 1, 0 ]), $a([ 1, 1, 1, 1, 1, 1, 1, 0 ]), $a([ 0, 0, 0, 0, 0, 0, 0, 0 ]) ]); - for (var _QD = 0, _QC = $1.fpat.length - 1; _QD <= _QC; _QD += 1) { - $1.y = _QD; - for (var _QH = 0, _QG = $get($1.fpat, 0).length - 1; _QH <= _QG; _QH += 1) { - $1.x = _QH; - $1.fpb = $get($get($1.fpat, $1.y), $1.x); - $1.fpb2 = $get($get($1.fpat2, $1.y), $1.x); - $k[$j++] = $1.pixs; - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $1.qmv(); - var _QW = $k[--$j]; - $put($k[--$j], _QW, $1.fpb); - $k[$j++] = $1.pixs; - $k[$j++] = $f($f($1.size - $1.x) - 1); - $k[$j++] = $1.y; - $1.qmv(); - var _Qd = $k[--$j]; - $put($k[--$j], _Qd, $1.fpb); - $k[$j++] = $1.pixs; - $k[$j++] = $f($f($1.size - $1.x) - 1); - $k[$j++] = $f($f($1.size - $1.y) - 1); - $1.qmv(); - var _Ql = $k[--$j]; - $put($k[--$j], _Ql, $1.fpb); - $k[$j++] = $1.pixs; - $k[$j++] = $1.x; - $k[$j++] = $f($f($1.size - $1.y) - 1); - $1.qmv(); - var _Qs = $k[--$j]; - $put($k[--$j], _Qs, $1.fpb2); - } - } - $1.functionmap = $a([ $a([ $a([ 0, 8 ]), $a([ $f($1.size - 1), $f($1.size - 9) ]) ]), $a([ $a([ 1, 8 ]), $a([ $f($1.size - 2), $f($1.size - 9) ]) ]), $a([ $a([ 2, 8 ]), $a([ $f($1.size - 3), $f($1.size - 9) ]) ]), $a([ $a([ 3, 8 ]), $a([ $f($1.size - 4), $f($1.size - 9) ]) ]), $a([ $a([ 4, 8 ]), $a([ $f($1.size - 5), $f($1.size - 9) ]) ]), $a([ $a([ 5, 8 ]), $a([ $f($1.size - 6), $f($1.size - 9) ]) ]), $a([ $a([ 6, 8 ]), $a([ $f($1.size - 7), $f($1.size - 9) ]) ]), $a([ $a([ 7, 8 ]), $a([ $f($1.size - 8), $f($1.size - 9) ]) ]), $a([ $a([ 8, 8 ]), $a([ $f($1.size - 9), $f($1.size - 9) ]) ]), $a([ $a([ 8, 7 ]), $a([ $f($1.size - 9), $f($1.size - 8) ]) ]), $a([ $a([ 8, 6 ]), $a([ $f($1.size - 9), $f($1.size - 7) ]) ]), $a([ $a([ 8, 5 ]), $a([ $f($1.size - 9), $f($1.size - 6) ]) ]), $a([ $a([ 8, 4 ]), $a([ $f($1.size - 9), $f($1.size - 5) ]) ]), $a([ $a([ 8, 3 ]), $a([ $f($1.size - 9), $f($1.size - 4) ]) ]), $a([ $a([ 8, 2 ]), $a([ $f($1.size - 9), $f($1.size - 3) ]) ]), $a([ $a([ 8, 1 ]), $a([ $f($1.size - 9), $f($1.size - 2) ]) ]), $a([ $a([ 8, 0 ]), $a([ $f($1.size - 9), $f($1.size - 1) ]) ]), $a([ $a([ $f($1.size - 9), 0 ]), $a([ 8, $f($1.size - 1) ]) ]), $a([ $a([ $f($1.size - 9), 1 ]), $a([ 8, $f($1.size - 2) ]) ]), $a([ $a([ $f($1.size - 9), 2 ]), $a([ 8, $f($1.size - 3) ]) ]), $a([ $a([ $f($1.size - 9), 3 ]), $a([ 8, $f($1.size - 4) ]) ]), $a([ $a([ $f($1.size - 9), 4 ]), $a([ 8, $f($1.size - 5) ]) ]), $a([ $a([ $f($1.size - 9), 5 ]), $a([ 8, $f($1.size - 6) ]) ]), $a([ $a([ $f($1.size - 9), 6 ]), $a([ 8, $f($1.size - 7) ]) ]), $a([ $a([ $f($1.size - 9), 7 ]), $a([ 8, $f($1.size - 8) ]) ]), $a([ $a([ $f($1.size - 9), 8 ]), $a([ 8, $f($1.size - 9) ]) ]), $a([ $a([ $f($1.size - 8), 8 ]), $a([ 7, $f($1.size - 9) ]) ]), $a([ $a([ $f($1.size - 7), 8 ]), $a([ 6, $f($1.size - 9) ]) ]), $a([ $a([ $f($1.size - 6), 8 ]), $a([ 5, $f($1.size - 9) ]) ]), $a([ $a([ $f($1.size - 5), 8 ]), $a([ 4, $f($1.size - 9) ]) ]), $a([ $a([ $f($1.size - 4), 8 ]), $a([ 3, $f($1.size - 9) ]) ]), $a([ $a([ $f($1.size - 3), 8 ]), $a([ 2, $f($1.size - 9) ]) ]), $a([ $a([ $f($1.size - 2), 8 ]), $a([ 1, $f($1.size - 9) ]) ]), $a([ $a([ $f($1.size - 1), 8 ]), $a([ 0, $f($1.size - 9) ]) ]) ]); - var _Tf = $1.functionmap; - for (var _Tg = 0, _Th = _Tf.length; _Tg < _Th; _Tg++) { - $forall($get(_Tf, _Tg), function() { - $forall($k[--$j]); - $1.qmv(); - $put($1.pixs, $k[--$j], 0); - }); - } - var _Ts = $a([ function() { - $j -= 2; - $k[$j++] = 1; - }, function() { - var _Tm = $k[--$j]; - var _Tn = $k[--$j]; - $k[$j++] = $f(_Tn + _Tm) % 2; - }, function() { - var _To = $k[--$j]; - var _Tp = $k[--$j]; - $k[$j++] = $f($f(_To + _Tp) % 3 + _Tp % 3) % 2; - }, function() { - var _Tq = $k[--$j]; - var _Tr = $k[--$j]; - $k[$j++] = $f(_Tr % _Tq + $f(_Tq % _Tr + $f(_Tq % 3 + _Tr % 3))) % 2; - } ]); - $1.maskfuncs = _Ts; - if ($1.mask != -1) { - $1.maskfuncs = $a([ $get($1.maskfuncs, $1.mask - 1) ]); - $1.bestmaskval = $1.mask - 1; - } - $1.masks = $a($1.maskfuncs.length); - for (var _U3 = 0, _U2 = $1.masks.length - 1; _U3 <= _U2; _U3 += 1) { - $1.m = _U3; - $1.mask = $a($1.size * $1.size); - for (var _U9 = 0, _U8 = $f($1.size - 1); _U9 <= _U8; _U9 += 1) { - $1.j = _U9; - for (var _UC = 0, _UB = $f($1.size - 1); _UC <= _UB; _UC += 1) { - $1.i = _UC; - $k[$j++] = $1.i + 1; - $k[$j++] = $1.j + 1; - if ($get($1.maskfuncs, $1.m)() === true) { - break; - } - var _UI = $k[--$j]; - $k[$j++] = _UI == 0; - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.qmv(); - var _UM = $k[--$j]; - var _UO = $get($k[--$j], _UM); - var _UP = $k[--$j]; - var _UQ = _UP && _UO == -1 ? 1 : 0; - $k[$j++] = _UQ; - $k[$j++] = $1.mask; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.qmv(); - var _UU = $k[--$j]; - var _UV = $k[--$j]; - $put(_UV, _UU, $k[--$j]); - } - } - $put($1.masks, $1.m, $1.mask); - } - $1.posx = 0; - $1.posy = 0; - $1.num = 0; - for (;;) { - if ($1.posy == $1.size) { - break; - } - $k[$j++] = $1.pixs; - $k[$j++] = $1.posx; - $k[$j++] = $1.posy; - $1.qmv(); - var _Uf = $k[--$j]; - if ($get($k[--$j], _Uf) == -1) { - var _Uk = $get($1.cws, ~~($1.num / 8)); - var _Um = -(7 - $1.num % 8); - $k[$j++] = (_Um < 0 ? _Uk >>> -_Um : _Uk << _Um) & 1; - $k[$j++] = $1.pixs; - $k[$j++] = $1.posx; - $k[$j++] = $1.posy; - $1.qmv(); - var _Uq = $k[--$j]; - var _Ur = $k[--$j]; - $put(_Ur, _Uq, $k[--$j]); - $1.num = $1.num + 1; - } - $1.posx = $1.posx + 1; - if ($1.posx == $1.size) { - $1.posx = 0; - $1.posy = $1.posy + 1; - } - } - $1.evalfulln1n3 = function() { - $1.scrle = $k[--$j]; - $k[$j++] = "scr1"; - $k[$j++] = 0; - $forall($1.scrle, function() { - var _V0 = $k[--$j]; - $k[$j++] = _V0; - if (_V0 >= 3) { - var _V1 = $k[--$j]; - var _V3 = $f($k[--$j] + _V1 * 4); - $k[$j++] = _V3; - $k[$j++] = _V3; - } - $j--; - }); - var _V4 = $k[--$j]; - $1[$k[--$j]] = _V4; - $1.scr3 = 0; - for (var _V8 = 5, _V7 = $1.scrle.length - 1; _V8 <= _V7; _V8 += 2) { - $1.j = _V8; - if ($get($1.scrle, $1.j) % 3 == 0) { - $1.fact = ~~($get($1.scrle, $1.j) / 3); - var _VH = $geti($1.scrle, $1.j - 4, 4); - for (var _VI = 0, _VJ = _VH.length; _VI < _VJ; _VI++) { - $k[$j++] = $get(_VH, _VI) == $1.fact; - } - var _VM = $k[--$j]; - var _VN = $k[--$j]; - var _VO = $k[--$j]; - var _VP = $k[--$j]; - if (_VP && (_VO && (_VN && _VM))) { - if ($1.j == 5 || $1.j + 2 >= $1.scrle.length) { - $1.scr3 = $1.scr3 + 50; - } else { - if ($get($1.scrle, $1.j - 5) >= 3 || $get($1.scrle, $1.j + 1) >= 3) { - $1.scr3 = $1.scr3 + 50; - } - } - } - } - } - for (var _Vd = 1, _Vc = $1.scrle.length - 5; _Vd <= _Vc; _Vd += 2) { - $1.j = _Vd; - if ($get($1.scrle, $1.j) % 3 == 0) { - $1.fact = ~~($get($1.scrle, $1.j) / 3); - var _Vm = $geti($1.scrle, $1.j + 1, 4); - for (var _Vn = 0, _Vo = _Vm.length; _Vn < _Vo; _Vn++) { - $k[$j++] = $get(_Vm, _Vn) == $1.fact; - } - var _Vr = $k[--$j]; - var _Vs = $k[--$j]; - var _Vt = $k[--$j]; - var _Vu = $k[--$j]; - if (_Vu && (_Vt && (_Vs && _Vr))) { - if ($1.j == 1 || $1.j + 6 >= $1.scrle.length) { - $1.scr3 = $1.scr3 + 50; - } else { - if ($get($1.scrle, $1.j - 1) >= 3 || $get($1.scrle, $1.j + 5) >= 3) { - $1.scr3 = $1.scr3 + 50; - } - } - } - } - } - $k[$j++] = $1.scr1; - $k[$j++] = $1.scr3; - }; - $1.evalfull = function() { - $1.sym = $k[--$j]; - $1.n1 = 0; - $1.n3 = 0; - $1.rle = $a($f($1.size + 1)); - $1.lastpairs = $a($1.size); - $1.thispairs = $a($1.size); - $1.sizeadd1 = $f($1.size + 1); - for (var _WI = 0, _WH = $f($1.size - 1); _WI <= _WH; _WI += 1) { - $1.i = _WI; - $k[$j++] = Infinity; - var _WK = $1.size; - $k[$j++] = 0; - $k[$j++] = 0; - for (var _WM = $1.i, _WN = _WK, _WL = $f(_WK * _WK - 1); _WN < 0 ? _WM >= _WL : _WM <= _WL; _WM += _WN) { - var _WP = $get($1.sym, _WM); - var _WQ = $k[--$j]; - $k[$j++] = _WP; - if ($eq(_WQ, _WP)) { - var _WR = $k[--$j]; - var _WS = $k[--$j]; - $k[$j++] = $f(_WS + 1); - $k[$j++] = _WR; - } else { - var _WT = $k[--$j]; - $k[$j++] = 1; - $k[$j++] = _WT; - } - } - $j--; - var _WV = $counttomark() + 2; - $astore($geti($1.rle, 0, _WV - 2)); - $1.evalfulln1n3(); - $1.n3 = $f($k[--$j] + $1.n3); - $1.n1 = $f($k[--$j] + $1.n1); - $j--; - $1.symrow = $geti($1.sym, $1.i * $1.size, $1.size); - $k[$j++] = Infinity; - var _Wg = $1.symrow; - $k[$j++] = 0; - $k[$j++] = 0; - for (var _Wh = 0, _Wi = _Wg.length; _Wh < _Wi; _Wh++) { - var _Wj = $get(_Wg, _Wh); - var _Wk = $k[--$j]; - $k[$j++] = _Wj; - if ($eq(_Wk, _Wj)) { - var _Wl = $k[--$j]; - var _Wm = $k[--$j]; - $k[$j++] = $f(_Wm + 1); - $k[$j++] = _Wl; - } else { - var _Wn = $k[--$j]; - $k[$j++] = 1; - $k[$j++] = _Wn; - } - } - $j--; - var _Wp = $counttomark() + 2; - $astore($geti($1.rle, 0, _Wp - 2)); - $1.evalfulln1n3(); - $1.n3 = $f($k[--$j] + $1.n3); - $1.n1 = $f($k[--$j] + $1.n1); - $j--; - } - $k[$j++] = $f($1.n1 + $1.n3); - }; - $1.bestscore = 999999999; - for (var _Wz = 0, _Wy = $1.masks.length - 1; _Wz <= _Wy; _Wz += 1) { - $1.m = _Wz; - $1.masksym = $a($1.size * $1.size); - for (var _X6 = 0, _X5 = $f($1.size * $1.size - 1); _X6 <= _X5; _X6 += 1) { - $1.i = _X6; - $put($1.masksym, $1.i, $xo($get($1.pixs, $1.i), $get($get($1.masks, $1.m), $1.i))); - } - if ($1.masks.length != 1) { - $k[$j++] = $1.masksym; - $1.evalfull(); - $1.score = $k[--$j]; - if ($1.score < $1.bestscore) { - $1.bestsym = $1.masksym; - $1.bestmaskval = $1.m; - $1.bestscore = $1.score; - } - } else { - $1.bestsym = $1.masksym; - } - } - $1.pixs = $1.bestsym; - $1.funval = ((~~($f($1.size - 21) / 2) + 20) * 4 + $1.eclval) * 4 + $1.bestmaskval; - $k[$j++] = $a([ ($1.funval & 3840) >>> 8, ($1.funval & 240) >>> 4, $1.funval & 15 ]); - $k[$j++] = 4; - $k[$j++] = 16; - $k[$j++] = 19; - $1.rscodes(); - $1.funvals = $k[--$j]; - $k[$j++] = Infinity; - $forall($1.funvals, function() { - $k[$j++] = 4; - $1.tobin(); - $forall($k[--$j], function() { - var _Xb = $k[--$j]; - $k[$j++] = $f(_Xb - 48); - }); - }); - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $1.funbits = $a(); - for (var _Xf = 0, _Xe = $1.functionmap.length - 1; _Xf <= _Xe; _Xf += 1) { - $1.i = _Xf; - $forall($get($1.functionmap, $1.i), function() { - var _Xk = $k[--$j]; - $k[$j++] = $1.pixs; - $aload(_Xk); - $1.qmv(); - var _Xo = $k[--$j]; - $put($k[--$j], _Xo, $get($1.funbits, $1.i)); - }); - } - var _Xw = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", $1.size ], [ "pixy", $1.size ], [ "height", $1.size * 2 / 72 ], [ "width", $1.size * 2 / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _Xw; - if (!$1.dontdraw) { - $0.renmatrix(); - } - }; - $0.dotcode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.rows = -1; - $1.columns = -1; - $1.ratio = -1; - $1.parse = false; - $1.parsefnc = false; - $1.raw = false; - $1.fast = false; - $1.mask = -1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.rows = ~~$1.rows; - $1.columns = ~~$1.columns; - $1.ratio = +$1.ratio; - $1.mask = ~~$1.mask; - if ($1.ratio == -1 && $1.rows == -1 && $1.columns == -1) { - $1.ratio = 3 / 2; - } - $1.laa = -1; - $1.lab = -2; - $1.lac = -3; - $1.bin = -4; - $1.sfa = -5; - $1.sfb = -6; - $1.sb2 = -7; - $1.sb3 = -8; - $1.sb4 = -9; - $1.sb5 = -10; - $1.sb6 = -11; - $1.sfc = -12; - $1.sc2 = -13; - $1.sc3 = -14; - $1.sc4 = -15; - $1.sc5 = -16; - $1.sc6 = -17; - $1.sc7 = -18; - $1.bsa = -19; - $1.bsb = -20; - $1.tma = -21; - $1.tmb = -22; - $1.tmc = -23; - $1.tms = -24; - $1.fn1 = -25; - $1.fn2 = -26; - $1.fn3 = -27; - $1.crl = -28; - $1.aim = -29; - $1.m05 = -30; - $1.m06 = -31; - $1.m12 = -32; - $1.mac = -33; - var _G = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "eci", true ], [ "FNC1", $1.fn1 ], [ "FNC3", $1.fn3 ] ]); - $1.fncvals = _G; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _J = $k[--$j]; - $1[$k[--$j]] = _J; - $1.msglen = $1.msg.length; - var _M = $1.msg; - $k[$j++] = "numecis"; - $k[$j++] = 0; - for (var _N = 0, _O = _M.length; _N < _O; _N++) { - if ($get(_M, _N) <= -1e6) { - var _Q = $k[--$j]; - $k[$j++] = $f(_Q + 1); - } - } - var _R = $k[--$j]; - $1[$k[--$j]] = _R; - $1.msgtmp = $a($f($1.msg.length + $1.numecis * 6)); - $1.j = 0; - for (var _Y = 0, _X = $1.msg.length - 1; _Y <= _X; _Y += 1) { - var _a = $get($1.msg, _Y); - $k[$j++] = _a; - if (_a <= -1e6) { - var _e = $geti($cvrs($s(7), -$k[--$j], 10), 1, 6); - for (var _f = 0, _g = _e.length; _f < _g; _f++) { - $k[$j++] = $get(_e, _f); - } - $astore($a(6)); - $puti($1.msgtmp, $1.j + 1, $k[--$j]); - $put($1.msgtmp, $1.j, $1.fn2); - $1.j = $1.j + 7; - } else { - $put($1.msgtmp, $1.j, $k[--$j]); - $1.j = $1.j + 1; - } - } - $1.msg = $1.msgtmp; - $1.msglen = $1.msg.length; - $1.charmaps = $a([ $a([ 32, 32, "00" ]), $a([ "!", "!", "01" ]), $a([ '"', '"', "02" ]), $a([ "#", "#", "03" ]), $a([ "$", "$", "04" ]), $a([ "%", "%", "05" ]), $a([ "&", "&", "06" ]), $a([ "'", "'", "07" ]), $a([ 40, 40, "08" ]), $a([ 41, 41, "09" ]), $a([ "*", "*", "10" ]), $a([ "+", "+", "11" ]), $a([ ",", ",", "12" ]), $a([ "-", "-", "13" ]), $a([ ".", ".", "14" ]), $a([ "/", "/", "15" ]), $a([ "0", "0", "16" ]), $a([ "1", "1", "17" ]), $a([ "2", "2", "18" ]), $a([ "3", "3", "19" ]), $a([ "4", "4", "20" ]), $a([ "5", "5", "21" ]), $a([ "6", "6", "22" ]), $a([ "7", "7", "23" ]), $a([ "8", "8", "24" ]), $a([ "9", "9", "25" ]), $a([ ":", ":", "26" ]), $a([ ";", ";", "27" ]), $a([ "<", "<", "28" ]), $a([ "=", "=", "29" ]), $a([ ">", ">", "30" ]), $a([ "?", "?", "31" ]), $a([ "@", "@", "32" ]), $a([ "A", "A", "33" ]), $a([ "B", "B", "34" ]), $a([ "C", "C", "35" ]), $a([ "D", "D", "36" ]), $a([ "E", "E", "37" ]), $a([ "F", "F", "38" ]), $a([ "G", "G", "39" ]), $a([ "H", "H", "40" ]), $a([ "I", "I", "41" ]), $a([ "J", "J", "42" ]), $a([ "K", "K", "43" ]), $a([ "L", "L", "44" ]), $a([ "M", "M", "45" ]), $a([ "N", "N", "46" ]), $a([ "O", "O", "47" ]), $a([ "P", "P", "48" ]), $a([ "Q", "Q", "49" ]), $a([ "R", "R", "50" ]), $a([ "S", "S", "51" ]), $a([ "T", "T", "52" ]), $a([ "U", "U", "53" ]), $a([ "V", "V", "54" ]), $a([ "W", "W", "55" ]), $a([ "X", "X", "56" ]), $a([ "Y", "Y", "57" ]), $a([ "Z", "Z", "58" ]), $a([ "[", "[", "59" ]), $a([ 92, 92, "60" ]), $a([ "]", "]", "61" ]), $a([ "^", "^", "62" ]), $a([ "_", "_", "63" ]), $a([ 0, "`", "64" ]), $a([ 1, "a", "65" ]), $a([ 2, "b", "66" ]), $a([ 3, "c", "67" ]), $a([ 4, "d", "68" ]), $a([ 5, "e", "69" ]), $a([ 6, "f", "70" ]), $a([ 7, "g", "71" ]), $a([ 8, "h", "72" ]), $a([ 9, "i", "73" ]), $a([ 10, "j", "74" ]), $a([ 11, "k", "75" ]), $a([ 12, "l", "76" ]), $a([ 13, "m", "77" ]), $a([ 14, "n", "78" ]), $a([ 15, "o", "79" ]), $a([ 16, "p", "80" ]), $a([ 17, "q", "81" ]), $a([ 18, "r", "82" ]), $a([ 19, "s", "83" ]), $a([ 20, "t", "84" ]), $a([ 21, "u", "85" ]), $a([ 22, "v", "86" ]), $a([ 23, "w", "87" ]), $a([ 24, "x", "88" ]), $a([ 25, "y", "89" ]), $a([ 26, "z", "90" ]), $a([ 27, "{", "91" ]), $a([ 28, "|", "92" ]), $a([ 29, "}", "93" ]), $a([ 30, "~", "94" ]), $a([ 31, 127, "95" ]), $a([ $1.sfb, $1.crl, "96" ]), $a([ $1.sb2, 9, "97" ]), $a([ $1.sb3, 28, "98" ]), $a([ $1.sb4, 29, "99" ]), $a([ $1.sb5, 30, $1.aim ]), $a([ $1.sb6, $1.sfa, $1.laa ]), $a([ $1.lab, $1.laa, $1.sfb ]), $a([ $1.sc2, $1.sc2, $1.sb2 ]), $a([ $1.sc3, $1.sc3, $1.sb3 ]), $a([ $1.sc4, $1.sc4, $1.sb4 ]), $a([ $1.lac, $1.lac, $1.lab ]), $a([ $1.fn1, $1.fn1, $1.fn1 ]), $a([ $1.fn2, $1.fn2, $1.fn2 ]), $a([ $1.fn3, $1.fn3, $1.fn3 ]), $a([ $1.bsa, $1.bsa, $1.bsa ]), $a([ $1.bsb, $1.bsb, $1.bsb ]), $a([ $1.bin, $1.bin, $1.bin ]) ]); - $1.charvals = $a([ new Map(), new Map(), new Map() ]); - for (var _3W = 0, _3V = $1.charmaps.length - 1; _3W <= _3V; _3W += 1) { - $1.i = _3W; - $1.encs = $get($1.charmaps, $1.i); - for (var _3a = 0; _3a <= 2; _3a += 1) { - $1.j = _3a; - var _3d = $get($1.encs, $1.j); - $k[$j++] = _3d; - if ($eq($type(_3d), "stringtype")) { - var _3g = $get($k[--$j], 0); - $k[$j++] = _3g; - } - $put($get($1.charvals, $1.j), $k[--$j], $1.i); - } - } - $1.Avals = $get($1.charvals, 0); - $1.Bvals = $get($1.charvals, 1); - $put($1.Bvals, $1.m05, 97); - $put($1.Bvals, $1.m06, 98); - $put($1.Bvals, $1.m12, 99); - $put($1.Bvals, $1.mac, 100); - $1.Cvals = $get($1.charvals, 2); - $k[$j++] = Infinity; - var _4A = $a([ $1.sc2, $1.sc3, $1.sc4, $1.sc5, $1.sc6, $1.sc7, $1.tma, $1.tmb, $1.tmc, $1.tms ]); - $k[$j++] = 102; - for (var _4B = 0, _4C = _4A.length; _4B < _4C; _4B++) { - var _4F = $f($k[--$j] + 1); - $k[$j++] = $get(_4A, _4B); - $k[$j++] = _4F; - $k[$j++] = _4F; - } - $j--; - $1.BINvals = $d(); - $k[$j++] = Infinity; - for (var _4I = 0, _4J = $1.msglen + 1; _4I < _4J; _4I++) { - $k[$j++] = 0; - } - $1.nDigits = $a(); - $k[$j++] = Infinity; - for (var _4M = 0, _4N = $1.msglen + 1; _4M < _4N; _4M++) { - $k[$j++] = false; - } - $1.SeventeenTen = $a(); - $k[$j++] = Infinity; - for (var _4Q = 0, _4R = $1.msglen + 1; _4Q < _4R; _4Q++) { - $k[$j++] = false; - } - $1.ECI = $a(); - $k[$j++] = Infinity; - for (var _4U = 0, _4V = $1.msglen + 1; _4U < _4V; _4U++) { - $k[$j++] = false; - } - $1.DatumA = $a(); - $k[$j++] = Infinity; - for (var _4Y = 0, _4Z = $1.msglen + 1; _4Y < _4Z; _4Y++) { - $k[$j++] = false; - } - $1.DatumB = $a(); - $k[$j++] = Infinity; - for (var _4c = 0, _4d = $1.msglen + 1; _4c < _4d; _4c++) { - $k[$j++] = false; - } - $1.DatumC = $a(); - $k[$j++] = Infinity; - for (var _4g = 0, _4h = $1.msglen + 8; _4g < _4h; _4g++) { - $k[$j++] = false; - } - $1.Binary = $a(); - $k[$j++] = Infinity; - for (var _4k = 0, _4l = $1.msglen + 1; _4k < _4l; _4k++) { - $k[$j++] = 0; - } - $1.AheadC = $a(); - $k[$j++] = Infinity; - for (var _4o = 0, _4p = $1.msglen + 1; _4o < _4p; _4o++) { - $k[$j++] = 0; - } - $1.TryC = $a(); - $k[$j++] = Infinity; - for (var _4s = 0, _4t = $1.msglen + 1; _4s < _4t; _4s++) { - $k[$j++] = 0; - } - $1.AheadA = $a(); - $k[$j++] = Infinity; - for (var _4w = 0, _4x = $1.msglen + 1; _4w < _4x; _4w++) { - $k[$j++] = 0; - } - $1.AheadB = $a(); - $k[$j++] = Infinity; - for (var _50 = 0, _51 = $1.msglen + 1; _50 < _51; _50++) { - $k[$j++] = 0; - } - $1.UntilEndSeg = $a(); - for (var _54 = $1.msglen - 1; _54 >= 0; _54 -= 1) { - $1.i = _54; - $1.barchar = $get($1.msg, $1.i); - if ($1.barchar >= 48 && $1.barchar <= 57) { - $put($1.nDigits, $1.i, $f($get($1.nDigits, $1.i + 1) + 1)); - } - var _5H = $get($1.Avals, $1.barchar) !== undefined; - if (_5H) { - $put($1.DatumA, $1.i, true); - } - var _5M = $get($1.Bvals, $1.barchar) !== undefined; - if (_5M) { - $put($1.DatumB, $1.i, true); - } - $1.CRLF = false; - if ($1.barchar == 13 && $1.i < $1.msglen - 1) { - if ($get($1.msg, $1.i + 1) == 10) { - $1.CRLF = true; - } - } - if ($1.CRLF) { - $put($1.DatumB, $1.i, true); - } - if ($get($1.nDigits, $1.i) >= 2) { - $put($1.DatumC, $1.i, true); - } - if ($1.barchar < 0) { - $put($1.DatumC, $1.i, true); - } - if ($1.barchar >= 128) { - $put($1.Binary, $1.i, true); - } - if ($get($1.nDigits, $1.i) >= 10) { - $k[$j++] = Infinity; - $aload($geti($1.msg, $1.i, 10)); - for (var _5p = 0, _5q = 1; _5p < _5q; _5p++) { - if ($k[--$j] != 48) { - $k[$j++] = false; - break; - } - if ($k[--$j] != 49) { - $k[$j++] = false; - break; - } - $j -= 6; - if ($k[--$j] != 55) { - $k[$j++] = false; - break; - } - if ($k[--$j] != 49) { - $k[$j++] = false; - break; - } - $k[$j++] = true; - } - $put($1.SeventeenTen, $1.i, $k[--$j]); - $cleartomark(); - } - if ($get($1.nDigits, $1.i + 1) >= 6 && $get($1.msg, $1.i) == $1.fn2) { - $put($1.ECI, $1.i, true); - } - if ($1.barchar < 0 && $1.barchar != $1.fn3) { - $put($1.AheadC, $1.i, $f($get($1.AheadC, $1.i + 1) + 1)); - } else { - if ($get($1.nDigits, $1.i) <= 1) { - $put($1.AheadC, $1.i, 0); - } else { - $put($1.AheadC, $1.i, $f($get($1.AheadC, $1.i + 2) + 1)); - } - } - if ($get($1.nDigits, $1.i) > 0 && $gt($get($1.AheadC, $1.i), $get($1.AheadC, $1.i + 1))) { - $put($1.TryC, $1.i, $get($1.AheadC, $1.i)); - } - if ($get($1.DatumA, $1.i) && $get($1.TryC, $1.i) < 2 && $1.barchar != $1.fn3) { - $put($1.AheadA, $1.i, $f($get($1.AheadA, $1.i + 1) + 1)); - } - if ($get($1.DatumB, $1.i) && $get($1.TryC, $1.i) < 2 && $1.barchar != $1.fn3) { - $k[$j++] = $1.AheadB; - $k[$j++] = $1.i; - $k[$j++] = $1.AheadB; - $k[$j++] = $1.i + 1; - if ($1.CRLF) { - var _73 = $k[--$j]; - $k[$j++] = $f(_73 + 1); - } - var _74 = $k[--$j]; - var _76 = $get($k[--$j], _74); - var _77 = $k[--$j]; - $put($k[--$j], _77, $f(_76 + 1)); - } - if ($1.barchar != $1.fn3) { - $put($1.UntilEndSeg, $1.i, $f($get($1.UntilEndSeg, $1.i + 1) + 1)); - } - } - $1.A = 0; - $1.B = 1; - $1.C = 2; - $1.BIN = 3; - $1.addtocws = function() { - var _7G = $k[--$j]; - $puti($1.cws, $1.j, _7G); - $1.j = _7G.length + $1.j; - }; - $1.base259to103 = function() { - $1.in = $k[--$j]; - $1.inlen = $1.in.length; - $k[$j++] = Infinity; - for (var _7N = 0, _7O = 5 - $1.inlen; _7N < _7O; _7N++) { - $k[$j++] = 0; - } - $aload($1.in); - $1.in = $a(); - $1.out = $a(6); - $k[$j++] = Infinity; - $aload($geti($1.in, 0, 2)); - $1.msbs = $a(); - $k[$j++] = Infinity; - $aload($1.msbs); - var _7W = $k[--$j]; - var _7X = $k[--$j]; - $k[$j++] = $f(_7W + _7X * 259); - for (var _7Y = 0, _7Z = 2; _7Y < _7Z; _7Y++) { - var _7a = $k[--$j]; - $k[$j++] = _7a % 103; - $k[$j++] = ~~(_7a / 103); - } - $1.mscs = $a(); - $k[$j++] = Infinity; - $aload($geti($1.in, 2, 3)); - $1.lsbs = $a(); - $k[$j++] = Infinity; - $aload($1.lsbs); - var _7g = $k[--$j]; - var _7h = $k[--$j]; - var _7i = $k[--$j]; - $k[$j++] = $f($f(_7g + _7h * 259) + _7i * 67081); - for (var _7j = 0, _7k = 3; _7j < _7k; _7j++) { - var _7l = $k[--$j]; - $k[$j++] = _7l % 103; - $k[$j++] = ~~(_7l / 103); - } - $1.lscs = $a(); - var _7o = $get($1.lscs, 0); - var _7q = $get($1.mscs, 0); - $put($1.out, 5, $f(_7o + _7q * 42) % 103); - var _7t = $get($1.lscs, 1); - var _7v = $get($1.mscs, 0); - var _7x = $get($1.mscs, 1); - $put($1.out, 4, $f($f($f(~~($f(_7o + _7q * 42) / 103) + _7t) + _7v * 68) + _7x * 42) % 103); - var _80 = $get($1.lscs, 2); - var _82 = $get($1.mscs, 0); - var _84 = $get($1.mscs, 1); - var _86 = $get($1.mscs, 2); - $put($1.out, 3, $f($f($f($f(~~($f($f($f(~~($f(_7o + _7q * 42) / 103) + _7t) + _7v * 68) + _7x * 42) / 103) + _80) + _82 * 92) + _84 * 68) + _86 * 42) % 103); - var _89 = $get($1.lscs, 3); - var _8B = $get($1.mscs, 0); - var _8D = $get($1.mscs, 1); - var _8F = $get($1.mscs, 2); - $put($1.out, 2, $f($f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_7o + _7q * 42) / 103) + _7t) + _7v * 68) + _7x * 42) / 103) + _80) + _82 * 92) + _84 * 68) + _86 * 42) / 103) + _89) + _8B * 15) + _8D * 92) + _8F * 68) % 103); - var _8I = $get($1.mscs, 1); - var _8K = $get($1.mscs, 2); - $put($1.out, 1, $f($f(~~($f($f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_7o + _7q * 42) / 103) + _7t) + _7v * 68) + _7x * 42) / 103) + _80) + _82 * 92) + _84 * 68) + _86 * 42) / 103) + _89) + _8B * 15) + _8D * 92) + _8F * 68) / 103) + _8I * 15) + _8K * 92) % 103); - $put($1.out, 0, $f(~~($f($f(~~($f($f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_7o + _7q * 42) / 103) + _7t) + _7v * 68) + _7x * 42) / 103) + _80) + _82 * 92) + _84 * 68) + _86 * 42) / 103) + _89) + _8B * 15) + _8D * 92) + _8F * 68) / 103) + _8I * 15) + _8K * 92) / 103) + $get($1.mscs, 2) * 15) % 103); - $k[$j++] = $geti($1.out, 6 - $1.inlen - 1, $1.inlen + 1); - }; - $1.finaliseBIN = function() { - if ($1.bpos != 0) { - $k[$j++] = $geti($1.bvals, 0, $1.bpos); - $1.base259to103(); - $aload($k[--$j]); - $1.bpos = 0; - } - }; - $1.addtobin = function() { - $put($1.bvals, $1.bpos, $k[--$j]); - $1.bpos = $1.bpos + 1; - if ($1.bpos == 5) { - $1.finaliseBIN(); - } - }; - $1.ECIabc = function() { - var _8f = $geti($1.msg, $1.i + 1, 6); - $k[$j++] = 0; - for (var _8g = 0, _8h = _8f.length; _8g < _8h; _8g++) { - var _8j = $k[--$j]; - $k[$j++] = $f(_8j + $f($get(_8f, _8g) - 48)) * 10; - } - var _8l = ~~($k[--$j] / 10); - $k[$j++] = _8l; - if (_8l >= 40) { - var _8n = $f($k[--$j] - 40); - var _8o = _8n % 12769; - $k[$j++] = ~~(_8n / 12769) + 40; - $k[$j++] = ~~(_8o / 113); - $k[$j++] = _8o % 113; - } - }; - $1.ECIbin = function() { - $k[$j++] = Infinity; - var _8r = $geti($1.msg, $1.i + 1, 6); - $k[$j++] = 0; - for (var _8s = 0, _8t = _8r.length; _8s < _8t; _8s++) { - var _8v = $k[--$j]; - $k[$j++] = $f(_8v + $f($get(_8r, _8s) - 48)) * 10; - } - var _8x = ~~($k[--$j] / 10); - $k[$j++] = _8x; - if (_8x >= 65536) { - var _8y = $k[--$j]; - var _8z = _8y % 65536; - $k[$j++] = 258; - $k[$j++] = ~~(_8y / 65536); - $k[$j++] = ~~(_8z / 256); - $k[$j++] = _8z % 256; - } else { - var _90 = $k[--$j]; - $k[$j++] = _90; - if (_90 >= 256) { - var _91 = $k[--$j]; - $k[$j++] = 257; - $k[$j++] = ~~(_91 / 256); - $k[$j++] = _91 % 256; - } else { - var _92 = $k[--$j]; - $k[$j++] = 256; - $k[$j++] = _92; - } - } - var _93 = $a(); - for (var _94 = 0, _95 = _93.length; _94 < _95; _94++) { - $k[$j++] = $get(_93, _94); - $1.addtobin(); - } - }; - $1.encC = function() { - for (var _97 = 0, _98 = 1; _97 < _98; _97++) { - if ($1.i == $1.segstart) { - for (var _9B = 0, _9C = 1; _9B < _9C; _9B++) { - if ($1.i > $f($1.segend - 7)) { - $k[$j++] = 0; - break; - } - if ($get($1.msg, $1.segstart) != 91) { - $k[$j++] = 0; - break; - } - if ($get($1.msg, $1.segstart + 1) != 41) { - $k[$j++] = 0; - break; - } - if ($get($1.msg, $1.segstart + 2) != 62) { - $k[$j++] = 0; - break; - } - if ($get($1.msg, $1.segstart + 3) != 30) { - $k[$j++] = 0; - break; - } - var _9T = $get($1.msg, $1.segstart + 4); - if (_9T < 48 || _9T > 57) { - $k[$j++] = 0; - break; - } - var _9W = $get($1.msg, $1.segstart + 5); - if (_9W < 48 || _9W > 57) { - $k[$j++] = 0; - break; - } - if ($get($1.msg, $f($1.segend - 1)) != 4) { - $k[$j++] = 0; - break; - } - var _9g = $f($f($get($1.msg, $1.segstart + 4) - 48) * 10 + $f($get($1.msg, $1.segstart + 5) - 48)); - $k[$j++] = _9g; - if (_9g != 5 && (_9g != 6 && _9g != 12)) { - $j--; - $k[$j++] = $1.mac; - break; - } - if ($get($1.msg, $1.segstart + 6) != 29) { - $j--; - $k[$j++] = 0; - break; - } - if ($get($1.msg, $f($1.segend - 2)) != 30) { - $j--; - $k[$j++] = 0; - break; - } - var _9o = $k[--$j]; - $k[$j++] = _9o; - if (_9o == 5) { - $j--; - $k[$j++] = $1.m05; - break; - } - if ($k[--$j] == 6) { - $k[$j++] = $1.m06; - break; - } - $k[$j++] = $1.m12; - break; - } - $1.inmac = $k[--$j]; - if ($1.inmac != 0) { - $1.mode = $1.B; - $k[$j++] = $a([ $get($1.Bvals, $1.inmac) ]); - $1.addtocws(); - var _A3 = $1.inmac != $1.mac ? 7 : 6; - $1.i = $1.i + _A3; - break; - } - } - if ($1.i == $1.segstart) { - if ($get($1.nDigits, $1.i) >= 2) { - $k[$j++] = $a([ $get($1.Cvals, $1.fn1) ]); - $1.addtocws(); - } - if ($get($1.msg, $1.i) == $1.fn1 && $get($1.nDigits, $1.i + 1) >= 2) { - $1.i = $1.i + 1; - } - } - if ($get($1.SeventeenTen, $1.i)) { - $k[$j++] = $a([ $get($1.Cvals, $1.aim), $f($f($get($1.msg, $1.i + 2) - 48) * 10 + $f($get($1.msg, $1.i + 3) - 48)), $f($f($get($1.msg, $1.i + 4) - 48) * 10 + $f($get($1.msg, $1.i + 5) - 48)), $f($f($get($1.msg, $1.i + 6) - 48) * 10 + $f($get($1.msg, $1.i + 7) - 48)) ]); - $1.addtocws(); - $1.i = $1.i + 10; - break; - } - if ($get($1.DatumC, $1.i)) { - var _Aq = $get($1.msg, $1.i); - if (_Aq == $1.fn1 || (_Aq == $1.fn2 || _Aq == $1.fn3)) { - $k[$j++] = $a([ $get($1.Cvals, $get($1.msg, $1.i)) ]); - $1.addtocws(); - if ($get($1.ECI, $1.i)) { - $k[$j++] = Infinity; - $1.ECIabc(); - var _B3 = $a(); - $k[$j++] = _B3; - $1.addtocws(); - $1.i = $1.i + 7; - break; - } - if ($get($1.msg, $1.i) == $1.fn3 && $1.segstart != $1.i) { - $1.i = $1.i + 1; - $1.inmac = 0; - $1.segstart = $1.i; - $1.segend = $f($1.i + $get($1.UntilEndSeg, $1.i)); - break; - } - $1.i = $1.i + 1; - break; - } - $k[$j++] = $a([ $f($f($get($1.msg, $1.i) - 48) * 10 + $f($get($1.msg, $1.i + 1) - 48)) ]); - $1.addtocws(); - $1.i = $1.i + 2; - break; - } - if ($get($1.Binary, $1.i)) { - if ($get($1.nDigits, $1.i + 1) > 0) { - if ($get($1.msg, $1.i) < 160) { - $k[$j++] = $a([ $get($1.Cvals, $1.bsa), $get($1.Avals, $f($get($1.msg, $1.i) - 128)) ]); - $1.addtocws(); - } else { - $k[$j++] = $a([ $get($1.Cvals, $1.bsb), $get($1.Bvals, $f($get($1.msg, $1.i) - 128)) ]); - $1.addtocws(); - } - $1.i = $1.i + 1; - break; - } - $k[$j++] = $a([ $get($1.Cvals, $1.bin) ]); - $1.addtocws(); - $1.mode = $1.BIN; - break; - } - $1.m = $get($1.AheadA, $1.i); - $1.n = $get($1.AheadB, $1.i); - if ($gt($1.m, $1.n)) { - $k[$j++] = $a([ $get($1.Cvals, $1.laa) ]); - $1.addtocws(); - $1.mode = $1.A; - break; - } - if ($1.i == $1.segstart) { - var _CE = $get($1.msg, $1.i); - if (_CE == 9 || (_CE == 28 || (_CE == 29 || _CE == 30))) { - $k[$j++] = $a([ $get($1.Cvals, $1.laa) ]); - $1.addtocws(); - $1.mode = $1.A; - break; - } - } - if ($1.n > 4) { - $k[$j++] = $a([ $get($1.Cvals, $1.lab) ]); - $1.addtocws(); - $1.mode = $1.B; - break; - } - $k[$j++] = $a([ $get($1.Cvals, $get($a([ $1.sfb, $1.sb2, $1.sb3, $1.sb4 ]), $f($1.n - 1))) ]); - $1.addtocws(); - for (var _Cb = 0, _Cc = $1.n; _Cb < _Cc; _Cb++) { - $k[$j++] = $a([ $get($1.Bvals, $get($1.msg, $1.i)) ]); - $1.addtocws(); - $1.i = $1.i + 1; - } - break; - } - }; - $1.encB = function() { - for (var _Ck = 0, _Cl = 1; _Ck < _Cl; _Ck++) { - $1.n = $get($1.TryC, $1.i); - if ($1.n >= 2) { - if ($1.n > 4) { - $k[$j++] = $a([ $get($1.Bvals, $1.lac) ]); - $1.addtocws(); - $1.mode = $1.C; - break; - } - $k[$j++] = $a([ $get($1.Bvals, $get($a([ $1.sfc, $1.sc2, $1.sc3, $1.sc4 ]), $f($1.n - 1))) ]); - $1.addtocws(); - for (var _D7 = 0, _D8 = $1.n; _D7 < _D8; _D7++) { - if ($get($1.msg, $1.i) < 0) { - $k[$j++] = $a([ $get($1.Cvals, $get($1.msg, $1.i)) ]); - $1.addtocws(); - $1.i = $1.i + 1; - } else { - $k[$j++] = $a([ $f($f($get($1.msg, $1.i) - 48) * 10 + $f($get($1.msg, $1.i + 1) - 48)) ]); - $1.addtocws(); - $1.i = $1.i + 2; - } - } - break; - } - if ($get($1.DatumB, $1.i)) { - var _DW = $get($1.msg, $1.i); - if (_DW == $1.fn1 || (_DW == $1.fn2 || _DW == $1.fn3)) { - $k[$j++] = $a([ $get($1.Bvals, $get($1.msg, $1.i)) ]); - $1.addtocws(); - if ($get($1.ECI, $1.i)) { - $k[$j++] = Infinity; - $1.ECIabc(); - var _Dj = $a(); - $k[$j++] = _Dj; - $1.addtocws(); - $1.i = $1.i + 7; - break; - } - if ($get($1.msg, $1.i) == $1.fn3 && $1.i != $1.segstart) { - $1.i = $1.i + 1; - $1.mode = $1.C; - $1.inmac = 0; - $1.segstart = $1.i; - $1.segend = $f($1.i + $get($1.UntilEndSeg, $1.i)); - break; - } - $1.i = $1.i + 1; - break; - } - if ($get($1.msg, $1.i) == 13 && $1.i < $1.msglen - 1) { - if ($get($1.msg, $1.i + 1) == 10) { - $k[$j++] = $a([ $get($1.Bvals, $1.crl) ]); - $1.addtocws(); - $1.i = $1.i + 2; - break; - } - } - $k[$j++] = $a([ $get($1.Bvals, $get($1.msg, $1.i)) ]); - $1.addtocws(); - $1.i = $1.i + 1; - break; - } - if ($get($1.Binary, $1.i)) { - if ($get($1.DatumB, $1.i + 1)) { - if ($get($1.msg, $1.i) < 160) { - $k[$j++] = $a([ $get($1.Bvals, $1.bsa), $get($1.Avals, $f($get($1.msg, $1.i) - 128)) ]); - $1.addtocws(); - } else { - $k[$j++] = $a([ $get($1.Bvals, $1.bsb), $get($1.Bvals, $f($get($1.msg, $1.i) - 128)) ]); - $1.addtocws(); - } - $1.i = $1.i + 1; - break; - } - $k[$j++] = $a([ $get($1.Bvals, $1.bin) ]); - $1.addtocws(); - $1.mode = $1.BIN; - break; - } - if ($get($1.AheadA, $1.i) == 1) { - $k[$j++] = $a([ $get($1.Bvals, $1.sfa), $get($1.Avals, $get($1.msg, $1.i)) ]); - $1.addtocws(); - $1.i = $1.i + 1; - break; - } - $k[$j++] = $a([ $get($1.Bvals, $1.laa) ]); - $1.addtocws(); - $1.mode = $1.A; - break; - } - }; - $1.encA = function() { - for (var _F8 = 0, _F9 = 1; _F8 < _F9; _F8++) { - $1.n = $get($1.TryC, $1.i); - if ($1.n >= 2) { - if ($1.n > 4) { - $k[$j++] = $a([ $get($1.Avals, $1.lac) ]); - $1.addtocws(); - $1.mode = $1.C; - break; - } - $k[$j++] = $a([ $get($1.Avals, $get($a([ $1.sfc, $1.sc2, $1.sc3, $1.sc4 ]), $f($1.n - 1))) ]); - $1.addtocws(); - for (var _FV = 0, _FW = $1.n; _FV < _FW; _FV++) { - if ($get($1.msg, $1.i) < 0) { - $k[$j++] = $a([ $get($1.Cvals, $get($1.msg, $1.i)) ]); - $1.addtocws(); - $1.i = $1.i + 1; - } else { - $k[$j++] = $a([ $f($f($get($1.msg, $1.i) - 48) * 10 + $f($get($1.msg, $1.i + 1) - 48)) ]); - $1.addtocws(); - $1.i = $1.i + 2; - } - } - break; - } - if ($get($1.DatumA, $1.i)) { - var _Fu = $get($1.msg, $1.i); - if (_Fu == $1.fn1 || (_Fu == $1.fn2 || _Fu == $1.fn3)) { - $k[$j++] = $a([ $get($1.Avals, $get($1.msg, $1.i)) ]); - $1.addtocws(); - if ($get($1.ECI, $1.i)) { - $k[$j++] = Infinity; - $1.ECIabc(); - var _G7 = $a(); - $k[$j++] = _G7; - $1.addtocws(); - $1.i = $1.i + 7; - break; - } - if ($get($1.msg, $1.i) == $1.fn3 && $1.i != $1.segstart) { - $1.i = $1.i + 1; - $1.mode = $1.C; - $1.inmac = 0; - $1.segstart = $1.i; - $1.segend = $f($1.i + $get($1.UntilEndSeg, $1.i)); - break; - } - $1.i = $1.i + 1; - break; - } - $k[$j++] = $a([ $get($1.Avals, $get($1.msg, $1.i)) ]); - $1.addtocws(); - $1.i = $1.i + 1; - break; - } - if ($get($1.Binary, $1.i)) { - if ($get($1.DatumA, $1.i + 1)) { - if ($get($1.msg, $1.i) < 160) { - $k[$j++] = $a([ $get($1.Avals, $1.bsa), $get($1.Avals, $f($get($1.msg, $1.i) - 128)) ]); - $1.addtocws(); - } else { - $k[$j++] = $a([ $get($1.Avals, $1.bsb), $get($1.Bvals, $f($get($1.msg, $1.i) - 128)) ]); - $1.addtocws(); - } - $1.i = $1.i + 1; - break; - } - $k[$j++] = $a([ $get($1.Avals, $1.bin) ]); - $1.addtocws(); - $1.mode = $1.BIN; - break; - } - $1.n = $get($1.AheadB, $1.i); - if ($1.n > 6) { - $k[$j++] = $a([ $get($1.Avals, $1.lab) ]); - $1.addtocws(); - $1.mode = $1.B; - break; - } - $k[$j++] = $a([ $get($1.Avals, $get($a([ $1.sfb, $1.sb2, $1.sb3, $1.sb4, $1.sb5, $1.sb6 ]), $f($1.n - 1))) ]); - $1.addtocws(); - for (var _HN = 0, _HO = $1.n; _HN < _HO; _HN++) { - $k[$j++] = $a([ $get($1.Bvals, $get($1.msg, $1.i)) ]); - $1.addtocws(); - $1.i = $1.i + 1; - } - break; - } - }; - $1.encBIN = function() { - for (var _HW = 0, _HX = 1; _HW < _HX; _HW++) { - $1.n = $get($1.TryC, $1.i); - if ($1.n >= 2) { - $k[$j++] = Infinity; - $1.finaliseBIN(); - var _Hc = $a(); - $k[$j++] = _Hc; - $1.addtocws(); - if ($1.n > 7) { - var _Hi = $k[--$j]; - $1.mode = $1.C; - $k[$j++] = $f(_Hi + $a([ $get($1.BINvals, $1.tmc) ])); - break; - } - $k[$j++] = $a([ $get($1.BINvals, $get($a([ $1.sc2, $1.sc3, $1.sc4, $1.sc5, $1.sc6, $1.sc7 ]), $f($1.n - 2))) ]); - $1.addtocws(); - for (var _Hx = 0, _Hy = $1.n; _Hx < _Hy; _Hx++) { - if ($get($1.msg, $1.i) < 0) { - $k[$j++] = $a([ $get($1.Cvals, $get($1.msg, $1.i)) ]); - $1.addtocws(); - $1.i = $1.i + 1; - } else { - $k[$j++] = $a([ $f($f($get($1.msg, $1.i) - 48) * 10 + $f($get($1.msg, $1.i + 1) - 48)) ]); - $1.addtocws(); - $1.i = $1.i + 2; - } - } - break; - } - if ($get($1.ECI, $1.i) && $get($1.Binary, $1.i + 7)) { - $k[$j++] = Infinity; - $1.ECIbin(); - var _IN = $a(); - $k[$j++] = _IN; - $1.addtocws(); - $1.i = $1.i + 7; - if ($1.i == $1.msglen) { - $k[$j++] = Infinity; - $1.finaliseBIN(); - var _IR = $a(); - $k[$j++] = _IR; - $1.addtocws(); - } - break; - } - if ($get($1.msg, $1.i) >= 0) { - if ($get($1.Binary, $1.i) || $get($1.Binary, $1.i + 1) || $get($1.Binary, $1.i + 2) || $get($1.Binary, $1.i + 3) || $get($1.ECI, $1.i + 1) && $get($1.Binary, $1.i + 8)) { - $k[$j++] = Infinity; - $k[$j++] = $get($1.msg, $1.i); - $1.addtobin(); - var _Iq = $a(); - $k[$j++] = _Iq; - $1.addtocws(); - $1.i = $1.i + 1; - if ($1.i == $1.msglen) { - $k[$j++] = Infinity; - $1.finaliseBIN(); - var _Iu = $a(); - $k[$j++] = _Iu; - $1.addtocws(); - } - break; - } - } - $k[$j++] = Infinity; - $1.finaliseBIN(); - var _Iv = $a(); - $k[$j++] = _Iv; - $1.addtocws(); - if ($1.i != $1.msglen - 1) { - if ($get($1.msg, $1.i) == $1.fn3 && $1.i != $1.segstart) { - $k[$j++] = $a([ $get($1.BINvals, $1.tms) ]); - $1.addtocws(); - $1.i = $1.i + 1; - $1.mode = $1.C; - $1.inmac = 0; - $1.segstart = $1.i; - $1.segend = $f($1.i + $get($1.UntilEndSeg, $1.i)); - break; - } - if ($gt($get($1.AheadA, $1.i), $get($1.AheadB, $1.i))) { - $k[$j++] = $a([ $get($1.BINvals, $1.tma) ]); - $1.addtocws(); - $1.mode = $1.A; - } else { - $k[$j++] = $a([ $get($1.BINvals, $1.tmb) ]); - $1.addtocws(); - $1.mode = $1.B; - } - break; - } - break; - } - }; - $1.cws = $a($1.msglen * 2 + 1); - $1.mode = $1.C; - $1.bvals = $a(5); - $1.bpos = 0; - $1.inmac = 0; - $1.segstart = 0; - $1.segend = $get($1.UntilEndSeg, 0); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i >= $1.msglen) { - break; - } - if ($1.inmac != 0) { - if ($1.inmac != $1.mac && $1.i == $f($1.segend - 2)) { - $1.i = $1.i + 2; - if ($1.i >= $1.msglen) { - break; - } - } - if ($1.inmac == $1.mac && $1.i == $f($1.segend - 1)) { - $1.i = $1.i + 1; - if ($1.i >= $1.msglen) { - break; - } - } - } - if ($1[$get($a([ "encA", "encB", "encC", "encBIN" ]), $1.mode)]() === true) { - break; - } - } - $1.cws = $geti($1.cws, 0, $1.j); - $1.nd = $1.cws.length; - $1.minarea = (($1.nd + 3 + ~~($1.nd / 2)) * 9 + 2) * 2; - if ($1.ratio != -1) { - $1.hgt = Math.sqrt($1.minarea / $1.ratio); - $1.wid = Math.sqrt($1.minarea * $1.ratio); - $1.h = ~~$1.hgt; - $1.w = ~~$1.wid; - if (($1.h + $1.w) % 2 == 1) { - if ($1.h * $1.w < $1.minarea) { - $1.h = $1.h + 1; - $1.w = $1.w + 1; - } - } else { - if ($1.hgt * $1.w < $1.wid * $1.h) { - $1.w = $1.w + 1; - if ($1.h * $1.w < $1.minarea) { - $1.w = $1.w - 1; - $1.h = $1.h + 1; - if ($1.h * $1.w < $1.minarea) { - $1.w = $1.w + 2; - } - } - } else { - $1.h = $1.h + 1; - if ($1.h * $1.w < $1.minarea) { - $1.h = $1.h - 1; - $1.w = $1.w + 1; - if ($1.h * $1.w < $1.minarea) { - $1.h = $1.h + 2; - } - } - } - } - $1.rows = $1.h; - $1.columns = $1.w; - } else { - if ($1.columns == -1) { - var _Kk = ~~(($1.minarea + $1.rows - 1) / $1.rows); - $k[$j++] = "columns"; - $k[$j++] = _Kk; - if ((_Kk + $1.rows) % 2 == 0) { - var _Km = $k[--$j]; - $k[$j++] = $f(_Km + 1); - } - var _Kn = $k[--$j]; - $1[$k[--$j]] = _Kn; - } - if ($1.rows == -1) { - var _Kt = ~~(($1.minarea + $1.columns - 1) / $1.columns); - $k[$j++] = "rows"; - $k[$j++] = _Kt; - if ((_Kt + $1.columns) % 2 == 0) { - var _Kv = $k[--$j]; - $k[$j++] = $f(_Kv + 1); - } - var _Kw = $k[--$j]; - $1[$k[--$j]] = _Kw; - } - } - $1.ndots = ~~($1.rows * $1.columns / 2); - for (;;) { - var _L1 = $1.nd + 1; - if ((_L1 + (~~(_L1 / 2) + 3)) * 9 + 2 > $1.ndots) { - break; - } - $1.nd = $1.nd + 1; - } - $1.nc = ~~($1.nd / 2) + 3; - $1.nw = $1.nd + $1.nc; - $1.rembits = $1.ndots - ($1.nw * 9 + 2); - if ($1.nd > $1.cws.length) { - $k[$j++] = Infinity; - $aload($1.cws); - var _LE = $1.mode == $1.BIN ? 109 : 106; - $k[$j++] = _LE; - for (var _LH = 0, _LI = $1.nd - $1.cws.length - 1; _LH < _LI; _LH++) { - $k[$j++] = 106; - } - $1.cws = $a(); - } - $1.encs = $a([ "101010101", "010101011", "010101101", "010110101", "011010101", "101010110", "101011010", "101101010", "110101010", "010101110", "010110110", "010111010", "011010110", "011011010", "011101010", "100101011", "100101101", "100110101", "101001011", "101001101", "101010011", "101011001", "101100101", "101101001", "110010101", "110100101", "110101001", "001010111", "001011011", "001011101", "001101011", "001101101", "001110101", "010010111", "010011011", "010011101", "010100111", "010110011", "010111001", "011001011", "011001101", "011010011", "011011001", "011100101", "011101001", "100101110", "100110110", "100111010", "101001110", "101011100", "101100110", "101101100", "101110010", "101110100", "110010110", "110011010", "110100110", "110101100", "110110010", "110110100", "111001010", "111010010", "111010100", "001011110", "001101110", "001110110", "001111010", "010011110", "010111100", "011001110", "011011100", "011100110", "011101100", "011110010", "011110100", "100010111", "100011011", "100011101", "100100111", "100110011", "100111001", "101000111", "101100011", "101110001", "110001011", "110001101", "110010011", "110011001", "110100011", "110110001", "111000101", "111001001", "111010001", "000101111", "000110111", "000111011", "000111101", "001001111", "001100111", "001110011", "001111001", "010001111", "011000111", "011100011", "011110001", "100011110", "100111100", "101111000", "110001110", "110011100", "110111000", "111000110", "111001100" ]); - if ($1.rows % 2 == 0) { - $1.sixedges = $a([ $a([ $1.columns - 1, $1.rows - 2 ]), $a([ 0, $1.rows - 2 ]), $a([ $1.columns - 2, $1.rows - 1 ]), $a([ 1, $1.rows - 1 ]), $a([ $1.columns - 1, 0 ]), $a([ 0, 0 ]) ]); - } else { - $1.sixedges = $a([ $a([ $1.columns - 2, 0 ]), $a([ $1.columns - 2, $1.rows - 1 ]), $a([ $1.columns - 1, 1 ]), $a([ $1.columns - 1, $1.rows - 2 ]), $a([ 0, 0 ]), $a([ 0, $1.rows - 1 ]) ]); - } - $1.dmv = function() { - var _Lp = $k[--$j]; - var _Lq = $k[--$j]; - $k[$j++] = $f(_Lq + _Lp * $1.columns); - }; - $1.outline = $a($1.rows * $1.columns); - for (var _Lw = 0, _Lv = $1.rows - 1; _Lw <= _Lv; _Lw += 1) { - $1.y = _Lw; - for (var _Lz = 0, _Ly = $1.columns - 1; _Lz <= _Ly; _Lz += 1) { - $1.x = _Lz; - $k[$j++] = $1.outline; - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $1.dmv(); - var _M5 = $k[--$j]; - $put($k[--$j], _M5, ($1.x + $1.y) % 2 - 1); - } - } - var _M7 = $1.sixedges; - for (var _M8 = 0, _M9 = _M7.length; _M8 < _M9; _M8++) { - $k[$j++] = $1.outline; - $aload($get(_M7, _M8)); - $1.dmv(); - var _MC = $k[--$j]; - $put($k[--$j], _MC, 1); - } - $1.clearcol = function() { - $1.x = $k[--$j]; - $k[$j++] = true; - for (var _MI = $1.x & 1, _MH = $1.rows - 1; _MI <= _MH; _MI += 2) { - $k[$j++] = $1.x; - $k[$j++] = _MI; - $1.dmv(); - if ($get($1.sym, $k[--$j]) == 1) { - $j--; - $k[$j++] = false; - break; - } - } - }; - $1.clearrow = function() { - $1.y = $k[--$j]; - $k[$j++] = true; - for (var _MR = $1.y & 1, _MQ = $1.columns - 1; _MR <= _MQ; _MR += 2) { - $k[$j++] = _MR; - $k[$j++] = $1.y; - $1.dmv(); - if ($get($1.sym, $k[--$j]) == 1) { - $j--; - $k[$j++] = false; - break; - } - } - }; - $1.evalsymbol = function() { - $1.sym = $k[--$j]; - $1.worst = 9999999; - var _Mb = $a([ $a([ "x", 0 ]), $a([ "x", 1 ]), $a([ "y", 0 ]), $a([ "y", 1 ]) ]); - for (var _Mc = 0, _Md = _Mb.length; _Mc < _Md; _Mc++) { - $aload($get(_Mb, _Mc)); - $1.fl = $k[--$j]; - $1.dir = $k[--$j]; - $1.sum = 0; - $1.first = -1; - $1.last = -1; - var _Mi = $eq($1.dir, "x") ? $1.columns : $1.rows; - for (var _Mk = 0, _Mj = _Mi - 1; _Mk <= _Mj; _Mk += 1) { - $1[$1.dir] = _Mk; - var _Mm = $1.sym; - var _Mo = $1[$1.dir]; - var _Mq = $eq($1.dir, "x") ? $1.rows : $1.columns; - var _Mt = (_Mq - 1) * $1.fl; - if ($eq($1.dir, "y")) { - var _ = _Mt; - _Mt = _Mo; - _Mo = _; - } - $k[$j++] = _Mm; - $k[$j++] = _Mo; - $k[$j++] = _Mt; - $1.dmv(); - var _Mu = $k[--$j]; - if ($get($k[--$j], _Mu) == 1) { - if ($1.first == -1) { - $1.first = $1[$1.dir]; - } - $1.last = $1[$1.dir]; - $1.sum = $1.sum + 1; - } - } - var _N7 = $eq($1.dir, "x") ? $1.rows : $1.columns; - var _N8 = $f($f($1.sum + $1.last) - $1.first) * _N7; - $k[$j++] = _N8; - if (_N8 < $1.worst) { - $1.worst = $k[--$j]; - } else { - $j--; - } - } - $1.pen = 0; - if ($1.rows % 2 == 1 || $1.rows <= 12) { - $1.sum = 0; - $1.p = 0; - for (var _NF = 1, _NE = $1.columns - 2; _NF <= _NE; _NF += 1) { - $k[$j++] = _NF; - $1.clearcol(); - if ($k[--$j]) { - $1.sum = $1.sum + 1; - $k[$j++] = "p"; - if ($1.sum == 1) { - $k[$j++] = $1.rows; - } else { - $k[$j++] = $1.p * $1.rows; - } - var _NM = $k[--$j]; - $1[$k[--$j]] = _NM; - } else { - $1.sum = 0; - $1.pen = $1.pen + $1.p; - $1.p = 0; - } - } - $1.pen = $1.pen + $1.p; - } - if ($1.rows % 2 == 0 || $1.columns <= 12) { - $1.sum = 0; - $1.p = 0; - for (var _NW = 1, _NV = $1.rows - 2; _NW <= _NV; _NW += 1) { - $k[$j++] = _NW; - $1.clearrow(); - if ($k[--$j]) { - $1.sum = $1.sum + 1; - $k[$j++] = "p"; - if ($1.sum == 1) { - $k[$j++] = $1.columns; - } else { - $k[$j++] = $1.p * $1.columns; - } - var _Nd = $k[--$j]; - $1[$k[--$j]] = _Nd; - } else { - $1.sum = 0; - $1.pen = $1.pen + $1.p; - $1.p = 0; - } - } - $1.pen = $1.pen + $1.p; - } - $k[$j++] = Infinity; - for (var _Nk = 0, _Nl = ($1.columns + 4) * 2; _Nk < _Nl; _Nk++) { - $k[$j++] = 0; - } - for (var _Np = 0, _Nq = $1.columns, _No = $1.sym.length - 1; _Nq < 0 ? _Np >= _No : _Np <= _No; _Np += _Nq) { - $k[$j++] = 0; - $k[$j++] = 0; - $aload($geti($1.sym, _Np, $1.columns)); - $k[$j++] = 0; - $k[$j++] = 0; - } - for (var _Nv = 0, _Nw = ($1.columns + 4) * 2; _Nv < _Nw; _Nv++) { - $k[$j++] = 0; - } - $1.symp = $a(); - $1.columns = $1.columns + 4; - $1.rows = $1.rows + 4; - $1.sum = 0; - for (var _O2 = 2, _O1 = $1.rows - 3; _O2 <= _O1; _O2 += 1) { - $1.y = _O2; - for (var _O6 = ($1.y & 1) + 2, _O5 = $1.columns - 3; _O6 <= _O5; _O6 += 2) { - $1.x = _O6; - for (var _O7 = 0, _O8 = 1; _O7 < _O8; _O7++) { - $k[$j++] = $1.symp; - $k[$j++] = $1.x - 1; - $k[$j++] = $1.y - 1; - $1.dmv(); - var _OC = $k[--$j]; - if ($get($k[--$j], _OC) == 1) { - break; - } - $k[$j++] = $1.symp; - $k[$j++] = $1.x + 1; - $k[$j++] = $1.y - 1; - $1.dmv(); - var _OI = $k[--$j]; - if ($get($k[--$j], _OI) == 1) { - break; - } - $k[$j++] = $1.symp; - $k[$j++] = $1.x - 1; - $k[$j++] = $1.y + 1; - $1.dmv(); - var _OO = $k[--$j]; - if ($get($k[--$j], _OO) == 1) { - break; - } - $k[$j++] = $1.symp; - $k[$j++] = $1.x + 1; - $k[$j++] = $1.y + 1; - $1.dmv(); - var _OU = $k[--$j]; - if ($get($k[--$j], _OU) == 1) { - break; - } - $k[$j++] = $1.symp; - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $1.dmv(); - var _Oa = $k[--$j]; - if ($get($k[--$j], _Oa) == 0) { - $1.sum = $1.sum + 1; - break; - } - $k[$j++] = $1.symp; - $k[$j++] = $1.x - 2; - $k[$j++] = $1.y; - $1.dmv(); - var _Oh = $k[--$j]; - if ($get($k[--$j], _Oh) == 1) { - break; - } - $k[$j++] = $1.symp; - $k[$j++] = $1.x; - $k[$j++] = $1.y - 2; - $1.dmv(); - var _On = $k[--$j]; - if ($get($k[--$j], _On) == 1) { - break; - } - $k[$j++] = $1.symp; - $k[$j++] = $1.x + 2; - $k[$j++] = $1.y; - $1.dmv(); - var _Ot = $k[--$j]; - if ($get($k[--$j], _Ot) == 1) { - break; - } - $k[$j++] = $1.symp; - $k[$j++] = $1.x; - $k[$j++] = $1.y + 2; - $1.dmv(); - var _Oz = $k[--$j]; - if ($get($k[--$j], _Oz) == 1) { - break; - } - $1.sum = $1.sum + 1; - } - } - } - $1.columns = $1.columns - 4; - $1.rows = $1.rows - 4; - if ($1.worst == 0) { - $k[$j++] = -99999; - } else { - $k[$j++] = $f($f($1.worst - $1.sum * $1.sum) - $1.pen); - } - }; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _PA = 0, _PB = 112; _PA < _PB; _PA++) { - var _PC = $k[--$j]; - $k[$j++] = _PC; - $k[$j++] = _PC * 3 % 113; - } - $1.rsalog = $a(); - $1.step = ~~($1.nw / 112) + 1; - $1.offset = function() { - var _PG = $k[--$j]; - $k[$j++] = $f(_PG * $1.step + $1.start); - }; - $1.bestscore = -99999999; - $k[$j++] = "masks"; - if ($1.mask != -1) { - $k[$j++] = $a([ $1.mask ]); - } else { - if ($1.fast) { - $k[$j++] = $a([ 3, 2, 1, 0 ]); - } else { - $k[$j++] = $a([ 0, 1, 2, 3 ]); - } - } - var _PO = $k[--$j]; - $1[$k[--$j]] = _PO; - $1.litmasks = $a(4); - $forall($1.masks, function() { - $1.mask = $k[--$j]; - $k[$j++] = Infinity; - var _PX = $1.cws; - $k[$j++] = $1.mask; - $k[$j++] = $get($a([ 0, 3, 7, 17 ]), $1.mask); - $k[$j++] = 0; - for (var _PY = 0, _PZ = _PX.length; _PY < _PZ; _PY++) { - var _Pb = $k[--$j]; - var _Pc = $k[--$j]; - $k[$j++] = $f($get(_PX, _PY) + _Pb) % 113; - $k[$j++] = _Pc; - $k[$j++] = $f(_Pb + _Pc); - } - $j -= 2; - for (var _Pe = 0, _Pf = $1.nc; _Pe < _Pf; _Pe++) { - $k[$j++] = 0; - } - $1.rscws = $a(); - for (var _Pj = 0, _Pi = $1.step - 1; _Pj <= _Pi; _Pj += 1) { - $1.start = _Pj; - $1.ND = ~~(($1.nd + 1 - $1.start + $1.step - 1) / $1.step); - $1.NW = ~~(($1.nw + 1 - $1.start + $1.step - 1) / $1.step); - $1.NC = $1.NW - $1.ND; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _Pv = 0, _Pw = $1.NC; _Pv < _Pw; _Pv++) { - $k[$j++] = 0; - } - $1.coeffs = $a(); - for (var _Q0 = 1, _Pz = $1.NC; _Q0 <= _Pz; _Q0 += 1) { - $1.i = _Q0; - for (var _Q2 = $1.NC; _Q2 >= 1; _Q2 -= 1) { - $1.j = _Q2; - $put($1.coeffs, $1.j, $f($f($get($1.coeffs, $1.j) + 113) - $get($1.rsalog, $1.i) * $get($1.coeffs, $1.j - 1) % 113) % 113); - } - } - for (var _QG = 0, _QF = $1.ND - 1; _QG <= _QF; _QG += 1) { - $k[$j++] = "t"; - $k[$j++] = $1.rscws; - $k[$j++] = _QG; - $1.offset(); - var _QI = $k[--$j]; - var _QK = $get($k[--$j], _QI); - $k[$j++] = _QK; - $k[$j++] = $1.rscws; - $k[$j++] = $1.ND; - $1.offset(); - var _QN = $k[--$j]; - var _QP = $get($k[--$j], _QN); - var _QQ = $k[--$j]; - $1[$k[--$j]] = $f(_QQ + _QP) % 113; - for (var _QU = 0, _QT = $1.NC - 2; _QU <= _QT; _QU += 1) { - $1.j = _QU; - $k[$j++] = $1.rscws; - $k[$j++] = $1.ND + $1.j; - $1.offset(); - $k[$j++] = $1.rscws; - $k[$j++] = $1.ND + $1.j + 1; - $1.offset(); - var _Qb = $k[--$j]; - var _Qd = $get($k[--$j], _Qb); - var _Qi = $k[--$j]; - $put($k[--$j], _Qi, $f($f(_Qd + 113) - $1.t * $get($1.coeffs, $1.j + 1) % 113) % 113); - } - $k[$j++] = $1.rscws; - $k[$j++] = $1.ND + $1.NC - 1; - $1.offset(); - var _Qr = $k[--$j]; - $put($k[--$j], _Qr, $f(113 - $1.t * $get($1.coeffs, $1.NC) % 113) % 113); - } - for (var _Qw = $1.ND, _Qv = $1.NW - 1; _Qw <= _Qv; _Qw += 1) { - $k[$j++] = _Qw; - $k[$j++] = $1.rscws; - $k[$j++] = _Qw; - $1.offset(); - var _Qz = $k[--$j]; - var _R0 = $k[--$j]; - var _R1 = $k[--$j]; - $k[$j++] = _R0; - $k[$j++] = _Qz; - $k[$j++] = 113; - $k[$j++] = $1.rscws; - $k[$j++] = _R1; - $1.offset(); - var _R2 = $k[--$j]; - var _R4 = $get($k[--$j], _R2); - var _R5 = $k[--$j]; - var _R6 = $k[--$j]; - $put($k[--$j], _R6, $f(_R5 - _R4) % 113); - } - } - $1.bits = $s($1.ndots); - $puti($1.bits, 0, $get($a([ "00", "01", "10", "11" ]), $1.mask)); - for (var _RG = 1, _RF = $1.nw; _RG <= _RF; _RG += 1) { - $1.i = _RG; - $puti($1.bits, ($1.i - 1) * 9 + 2, $get($1.encs, $get($1.rscws, $1.i))); - } - if ($1.rembits > 0) { - $puti($1.bits, $1.nw * 9 + 2, $geti("11111111111111111", 0, $1.rembits)); - } - var _RT = $1.outline; - $1.pixs = $arrcpy($a(_RT.length), _RT); - $1.posx = 0; - $k[$j++] = "posy"; - if ($1.rows % 2 == 0) { - $k[$j++] = 0; - } else { - $k[$j++] = $1.rows - 1; - } - var _RY = $k[--$j]; - $1[$k[--$j]] = _RY; - var _Rc = $geti($1.bits, 0, $1.bits.length - 6); - for (var _Rd = 0, _Re = _Rc.length; _Rd < _Re; _Rd++) { - $k[$j++] = $get(_Rc, _Rd); - for (;;) { - $k[$j++] = $1.pixs; - $k[$j++] = $1.posx; - $k[$j++] = $1.posy; - $1.dmv(); - var _Rj = $k[--$j]; - if ($get($k[--$j], _Rj) == -1) { - break; - } - if ($1.rows % 2 == 0) { - $1.posy = $1.posy + 1; - if ($1.posy == $1.rows) { - $1.posy = 0; - $1.posx = $1.posx + 1; - } - } else { - $1.posx = $1.posx + 1; - if ($1.posx == $1.columns) { - $1.posx = 0; - $1.posy = $1.posy - 1; - } - } - } - $k[$j++] = $1.pixs; - $k[$j++] = $1.posx; - $k[$j++] = $1.posy; - $1.dmv(); - var _Ry = $k[--$j]; - var _Rz = $k[--$j]; - $put(_Rz, _Ry, $f($k[--$j] - 48)); - } - for (var _S1 = 0; _S1 <= 5; _S1 += 1) { - $1.i = _S1; - $k[$j++] = $1.pixs; - $aload($get($1.sixedges, $1.i)); - $1.dmv(); - var _SA = $k[--$j]; - $put($k[--$j], _SA, $get($1.bits, $1.bits.length - 6 + $1.i) - 48); - } - $k[$j++] = "score"; - $k[$j++] = $1.pixs; - $1.evalsymbol(); - var _SD = $k[--$j]; - $1[$k[--$j]] = _SD; - if ($1.score > $1.bestscore) { - $1.bestsym = $1.pixs; - $1.bestscore = $1.score; - if ($1.fast && $1.bestscore > ~~($1.rows * $1.columns / 2)) { - return true; - } - } - var _SN = $1.pixs; - $1.litmask = $arrcpy($a(_SN.length), _SN); - for (var _SQ = 0; _SQ <= 5; _SQ += 1) { - $1.i = _SQ; - $k[$j++] = $1.litmask; - $aload($get($1.sixedges, $1.i)); - $1.dmv(); - var _SV = $k[--$j]; - $put($k[--$j], _SV, 1); - } - $put($1.litmasks, $1.mask, $1.litmask); - if ($1.fast) { - $k[$j++] = "score"; - $k[$j++] = $1.litmask; - $1.evalsymbol(); - var _Sc = $k[--$j]; - $1[$k[--$j]] = _Sc; - if ($gt($1.score, $1.bestscore)) { - $1.bestsym = $1.litmask; - $1.bestscore = $1.score; - if ($1.bestscore > ~~($1.rows * $1.columns / 2)) { - return true; - } - } - } - }); - $1.pixs = $1.bestsym; - if (!$1.fast && $1.bestscore <= ~~($1.rows * $1.columns / 2)) { - $1.bestscore = -99999999; - $forall($1.masks, function() { - $1.litmask = $get($1.litmasks, $k[--$j]); - $k[$j++] = "score"; - $k[$j++] = $1.litmask; - $1.evalsymbol(); - var _Sv = $k[--$j]; - $1[$k[--$j]] = _Sv; - if ($1.score > $1.bestscore) { - $1.bestsym = $1.litmask; - $1.bestscore = $1.score; - } - }); - $1.pixs = $1.bestsym; - } - var _T8 = new Map([ [ "ren", $0.renmatrix ], [ "dotty", true ], [ "pixs", $1.pixs ], [ "pixx", $1.columns ], [ "pixy", $1.rows ], [ "height", $1.rows * 2 / 72 ], [ "width", $1.columns * 2 / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _T8; - if (!$1.dontdraw) { - $0.renmatrix(); - } - }; - $0.ultracode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.eclevel = "EC2"; - $1.parse = false; - $1.parsefnc = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.fn1 = -1; - $1.fn3 = -2; - var _9 = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "FNC1", $1.fn1 ], [ "FNC3", $1.fn3 ] ]); - $1.fncvals = _9; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _C = $k[--$j]; - $1[$k[--$j]] = _C; - $1.msglen = $1.msg.length; - $1.start = 257; - $1.scr = $a([]); - $1.link1 = 0; - $1.scp = $a([]); - $k[$j++] = Infinity; - $aload($1.scr); - $aload($1.scp); - $forall($1.msg, function() { - var _K = $k[--$j]; - $k[$j++] = _K; - if (_K == $1.fn1) { - $j--; - $k[$j++] = 268; - } - var _M = $k[--$j]; - $k[$j++] = _M; - if (_M == $1.fn3) { - $j--; - $k[$j++] = 269; - } - }); - $1.dcws = $a(); - $1.mcc = $1.dcws.length + 3; - $1.eclval = $get($1.eclevel, 2) - 48; - if ($1.eclval != 0) { - $k[$j++] = "qcc"; - $k[$j++] = $get($a([ 0, 1, 2, 4, 6, 8 ]), $1.eclval); - $k[$j++] = ~~($1.mcc / 25); - if ($1.mcc % 25 != 0) { - var _Y = $k[--$j]; - $k[$j++] = $f(_Y + 1); - } - var _Z = $k[--$j]; - var _a = $k[--$j]; - $1[$k[--$j]] = $f(_a * _Z + 5); - } else { - $1.qcc = 3; - } - $1.acc = $1.qcc - 3 + 78 * $1.link1; - $1.tcc = $1.mcc + $1.qcc; - $1.metrics = $a([ $a([ 2, 4, 34, 5 ]), $a([ 3, 33, 82, 13 ]), $a([ 4, 82, 158, 23 ]), $a([ 5, 134, 282, 30 ]) ]); - for (var _l = 0; _l <= 3; _l += 1) { - $1.i = _l; - $1.m = $get($1.metrics, $1.i); - $1.rows = $get($1.m, 0); - $1.minc = $get($1.m, 1); - $1.maxc = $get($1.m, 2); - $1.mcol = $get($1.m, 3); - $1.okay = true; - if ($1.tcc < $1.minc || $1.tcc > $1.maxc) { - $1.okay = false; - } - if ($1.okay) { - break; - } - } - if (!$1.okay) { - $k[$j++] = "bwipp.ultracodeNoValidSymbol"; - $k[$j++] = "No valid symbol available"; - $0.raiseerror(); - } - for (var _14 = $1.mcol; _14 <= 61; _14 += 1) { - $1.columns = _14; - $k[$j++] = $1.columns; - if ($1.columns >= 15) { - var _17 = $k[--$j]; - $k[$j++] = $f(_17 - 1); - } - if ($1.columns >= 31) { - var _19 = $k[--$j]; - $k[$j++] = $f(_19 - 1); - } - if ($1.columns >= 47) { - var _1B = $k[--$j]; - $k[$j++] = $f(_1B - 1); - } - var _1F = $f($f($k[--$j] * $1.rows - 3) - $1.tcc); - $k[$j++] = _1F; - if (_1F >= 0) { - $1.pads = $k[--$j]; - break; - } - $j--; - } - $1.dcc = $f($1.columns - $1.mcol); - $k[$j++] = Infinity; - $k[$j++] = $1.start; - $k[$j++] = $1.mcc; - $k[$j++] = $1.acc; - $aload($1.scr); - $aload($1.dcws); - for (var _1P = 0, _1Q = $1.qcc; _1P < _1Q; _1P++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.rsseq = $a(); - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _1S = 0, _1T = 282; _1S < _1T; _1S++) { - var _1U = $k[--$j]; - $k[$j++] = _1U; - $k[$j++] = _1U * 3 % 283; - } - $1.rsalog = $a(); - $1.rslog = $a(283); - for (var _1X = 1; _1X <= 282; _1X += 1) { - $put($1.rslog, $get($1.rsalog, _1X), _1X); - } - $1.rsprod = function() { - var _1b = $k[--$j]; - var _1c = $k[--$j]; - $k[$j++] = _1c; - $k[$j++] = _1b; - if (_1b != 0 && _1c != 0) { - var _1f = $get($1.rslog, $k[--$j]); - var _1k = $get($1.rsalog, $f(_1f + $get($1.rslog, $k[--$j])) % 282); - $k[$j++] = _1k; - } else { - $j -= 2; - $k[$j++] = 0; - } - }; - $1.n = $1.mcc; - $1.k = $1.qcc; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _1o = 0, _1p = $1.k; _1o < _1p; _1o++) { - $k[$j++] = 0; - } - $1.coeffs = $a(); - for (var _1t = 1, _1s = $1.k; _1t <= _1s; _1t += 1) { - $1.i = _1t; - $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); - for (var _20 = $1.i - 1; _20 >= 1; _20 -= 1) { - $1.j = _20; - $k[$j++] = $1.coeffs; - $k[$j++] = $1.j; - $k[$j++] = $get($1.coeffs, $1.j - 1); - $k[$j++] = $get($1.coeffs, $1.j); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _2C = $k[--$j]; - var _2D = $k[--$j]; - var _2E = $k[--$j]; - $put($k[--$j], _2E, $f(_2D + _2C) % 283); - } - $k[$j++] = $1.coeffs; - $k[$j++] = 0; - $k[$j++] = $get($1.coeffs, 0); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _2M = $k[--$j]; - var _2N = $k[--$j]; - $put($k[--$j], _2N, _2M); - } - $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); - for (var _2T = $1.coeffs.length - 1; _2T >= 0; _2T -= 2) { - var _2U = $1.coeffs; - $put(_2U, _2T, $f(283 - $get(_2U, _2T))); - } - for (var _2Y = 0, _2X = $1.n - 1; _2Y <= _2X; _2Y += 1) { - $1.t = $f($get($1.rsseq, _2Y) + $get($1.rsseq, $1.n)) % 283; - for (var _2g = 0, _2f = $1.k - 1; _2g <= _2f; _2g += 1) { - $1.j = _2g; - $put($1.rsseq, $1.n + $1.j, $f($get($1.rsseq, $1.n + $1.j + 1) + $f(283 - $1.t * $get($1.coeffs, $1.k - $1.j - 1) % 283)) % 283); - } - } - for (var _2x = $1.n, _2w = $1.n + $1.k; _2x <= _2w; _2x += 1) { - $put($1.rsseq, _2x, $f(283 - $get($1.rsseq, _2x)) % 283); - } - $1.ecws = $geti($1.rsseq, $1.n, $1.k); - $1.dccu = $a([ 51363, 51563, 51653, 53153, 53163, 53513, 53563, 53613, 53653, 56153, 56163, 56313, 56353, 56363, 56513, 56563, 51316, 51356, 51536, 51616, 53156, 53516, 53536, 53616, 53636, 53656, 56136, 56156, 56316, 56356, 56516, 56536 ]); - $1.dccl = $a([ 61351, 61361, 61531, 61561, 61631, 61651, 63131, 63151, 63161, 63531, 63561, 63631, 65131, 65161, 65351, 65631, 31351, 31361, 31531, 31561, 31631, 31651, 35131, 35151, 35161, 35361, 35631, 35651, 36131, 36151, 36351, 36531 ]); - $1.tiles = $a([ 13135, 13136, 13153, 13156, 13163, 13165, 13513, 13515, 13516, 13531, 13535, 13536, 13561, 13563, 13565, 13613, 13615, 13616, 13631, 13635, 13636, 13651, 13653, 13656, 15135, 15136, 15153, 15163, 15165, 15313, 15315, 15316, 15351, 15353, 15356, 15361, 15363, 15365, 15613, 15615, 15616, 15631, 15635, 15636, 15651, 15653, 15656, 16135, 16136, 16153, 16156, 16165, 16313, 16315, 16316, 16351, 16353, 16356, 16361, 16363, 16365, 16513, 16515, 16516, 16531, 16535, 16536, 16561, 16563, 16565, 31315, 31316, 31351, 31356, 31361, 31365, 31513, 31515, 31516, 31531, 31535, 31536, 31561, 31563, 31565, 31613, 31615, 31631, 31635, 31636, 31651, 31653, 31656, 35131, 35135, 35136, 35151, 35153, 35156, 35161, 35163, 35165, 35315, 35316, 35351, 35356, 35361, 35365, 35613, 35615, 35616, 35631, 35635, 35636, 35651, 35653, 35656, 36131, 36135, 36136, 36151, 36153, 36156, 36163, 36165, 36315, 36316, 36351, 36356, 36361, 36365, 36513, 36515, 36516, 36531, 36535, 36536, 36561, 36563, 36565, 51313, 51315, 51316, 51351, 51353, 51356, 51361, 51363, 51365, 51513, 51516, 51531, 51536, 51561, 51563, 51613, 51615, 51616, 51631, 51635, 51636, 51651, 51653, 51656, 53131, 53135, 53136, 53151, 53153, 53156, 53161, 53163, 53165, 53513, 53516, 53531, 53536, 53561, 53563, 53613, 53615, 53616, 53631, 53635, 53636, 53651, 53653, 53656, 56131, 56135, 56136, 56151, 56153, 56156, 56161, 56163, 56165, 56313, 56315, 56316, 56351, 56353, 56356, 56361, 56363, 56365, 56513, 56516, 56531, 56536, 56561, 56563, 61313, 61315, 61316, 61351, 61353, 61356, 61361, 61363, 61365, 61513, 61515, 61516, 61531, 61535, 61536, 61561, 61563, 61565, 61615, 61631, 61635, 61651, 61653, 63131, 63135, 63136, 63151, 63153, 63156, 63161, 63163, 63165, 63513, 63515, 63516, 63531, 63535, 63536, 63561, 63563, 63565, 63613, 63615, 63631, 63635, 63651, 63653, 65131, 65135, 65136, 65151, 65153, 65156, 65161, 65163, 65165, 65313, 65315, 65316, 65351, 65353, 65356, 65361, 65363, 65365, 65613, 65615, 65631, 65635, 65651, 65653, 56565, 51515 ]); - $1.rows = $f($1.rows * 6 + 1); - $1.columns = $1.columns + 6; - $k[$j++] = Infinity; - for (var _3C = 0, _3D = $1.rows * $1.columns; _3C < _3D; _3C++) { - $k[$j++] = -1; - } - $1.pixs = $a(); - $1.qmv = function() { - var _3G = $k[--$j]; - var _3H = $k[--$j]; - $k[$j++] = $f(_3H + _3G * $1.columns); - }; - for (var _3K = 0, _3J = $1.columns - 1; _3K <= _3J; _3K += 1) { - $1.i = _3K; - for (var _3N = 0, _3M = $f($1.rows - 1); _3N <= _3M; _3N += 6) { - $1.j = _3N; - if ($1.i >= 5) { - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.qmv(); - var _3T = $k[--$j]; - $put($k[--$j], _3T, $1.i % 2 * 9); - } - } - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = 0; - $1.qmv(); - var _3X = $k[--$j]; - $put($k[--$j], _3X, 9); - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = $f($1.rows - 1); - $1.qmv(); - var _3c = $k[--$j]; - $put($k[--$j], _3c, 9); - } - for (var _3g = 1, _3f = $f($1.rows - 2); _3g <= _3f; _3g += 1) { - $1.i = _3g; - for (var _3j = 3, _3i = $1.columns - 1; _3j <= _3i; _3j += 16) { - $1.j = _3j; - $k[$j++] = $1.pixs; - $k[$j++] = $1.j; - $k[$j++] = $1.i; - $1.qmv(); - var _3o = $k[--$j]; - $put($k[--$j], _3o, (1 - $1.i % 2) * 9); - } - $k[$j++] = $1.pixs; - $k[$j++] = 0; - $k[$j++] = $1.i; - $1.qmv(); - var _3s = $k[--$j]; - $put($k[--$j], _3s, 9); - $k[$j++] = $1.pixs; - $k[$j++] = 1; - $k[$j++] = $1.i; - $1.qmv(); - var _3x = $k[--$j]; - $put($k[--$j], _3x, (1 - $1.i % 2) * 9); - $k[$j++] = $1.pixs; - $k[$j++] = 2; - $k[$j++] = $1.i; - $1.qmv(); - var _41 = $k[--$j]; - $put($k[--$j], _41, 0); - $k[$j++] = $1.pixs; - $k[$j++] = 3; - $k[$j++] = $1.i; - $1.qmv(); - var _45 = $k[--$j]; - $put($k[--$j], _45, 9); - $k[$j++] = $1.pixs; - $k[$j++] = 4; - $k[$j++] = $1.i; - $1.qmv(); - var _49 = $k[--$j]; - $put($k[--$j], _49, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $1.columns - 1; - $k[$j++] = $1.i; - $1.qmv(); - var _4E = $k[--$j]; - $put($k[--$j], _4E, 9); - } - $1.i = ~~($1.rows / 2) - 5; - $k[$j++] = Infinity; - var _4L = $cvrs($s(5), $get($1.dccu, $1.dcc), 10); - for (var _4M = 0, _4N = _4L.length; _4M < _4N; _4M++) { - $k[$j++] = $get(_4L, _4M) - 48; - } - var _4T = $cvrs($s(5), $get($1.dccl, $1.dcc), 10); - $k[$j++] = 0; - for (var _4U = 0, _4V = _4T.length; _4U < _4V; _4U++) { - $k[$j++] = $get(_4T, _4U) - 48; - } - var _4X = $a(); - for (var _4Y = 0, _4Z = _4X.length; _4Y < _4Z; _4Y++) { - $k[$j++] = $get(_4X, _4Y); - $k[$j++] = $1.pixs; - $k[$j++] = 2; - $k[$j++] = $1.i; - $1.qmv(); - var _4d = $k[--$j]; - var _4e = $k[--$j]; - $put(_4e, _4d, $k[--$j]); - $1.i = $1.i + 1; - } - $k[$j++] = Infinity; - $k[$j++] = $1.start; - $k[$j++] = $1.mcc; - $aload($1.ecws); - $k[$j++] = $1.tcc; - $k[$j++] = 283; - $k[$j++] = $1.acc; - $aload($1.scr); - $aload($1.dcws); - for (var _4p = 0, _4q = $1.pads; _4p < _4q; _4p++) { - $k[$j++] = 284; - } - $k[$j++] = $1.qcc; - $1.tileseq = $a(); - $1.x = 5; - $1.y = 1; - var _4t = $1.tileseq; - for (var _4u = 0, _4v = _4t.length; _4u < _4v; _4u++) { - var _50 = $cvrs($s(5), $get($1.tiles, $get(_4t, _4u)), 10); - for (var _51 = 0, _52 = _50.length; _51 < _52; _51++) { - $k[$j++] = $get(_50, _51); - $k[$j++] = $1.pixs; - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $1.qmv(); - var _57 = $k[--$j]; - var _58 = $k[--$j]; - $put(_58, _57, $f($k[--$j] - 48)); - $1.y = $1.y + 1; - } - if ($1.y != $f($1.rows - 1)) { - $1.y = $1.y + 1; - } else { - $1.x = $1.x + 1; - $1.y = 1; - $k[$j++] = $1.pixs; - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $1.qmv(); - var _5I = $k[--$j]; - if ($get($k[--$j], _5I) != -1) { - $1.x = $1.x + 1; - } - } - } - var _5R = new Map([ [ 0, "00000000" ], [ 9, "000000FF" ], [ 1, "FF000000" ], [ 3, "00FF0000" ], [ 5, "0000FF00" ], [ 6, "7F00FF00" ] ]); - var _5T = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", $1.columns ], [ "pixy", $1.rows ], [ "height", $1.rows / 72 * 2 ], [ "width", $1.columns / 72 * 2 ], [ "colormap", _5R ], [ "opt", $1.options ] ]); - $k[$j++] = _5T; - if (!$1.dontdraw) { - $0.renmatrix(); - } - }; - $0.jabcode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.rows = -1; - $1.columns = -1; - $1.slave = false; - $1.colors = 16; - $1.eclevel = 6; - $1.raw = false; - $1.parse = false; - $1.parsefnc = false; - $1.mask = -1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.rows = ~~$1.rows; - $1.columns = ~~$1.columns; - $1.colors = ~~$1.colors; - $1.eclevel = ~~$1.eclevel; - $1.mask = ~~$1.mask; - $1.databpm = ~~Math.round(Math.log($1.colors) / Math.log(2)); - var _B = $1.colors; - $k[$j++] = "metabpm"; - $k[$j++] = _B; - if (_B > 8) { - $j--; - $k[$j++] = 8; - } - var _C = $k[--$j]; - $1[$k[--$j]] = ~~Math.round(Math.log(_C) / Math.log(2)); - $1.fn1 = -1; - var _H = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "FNC1", $1.fn1 ] ]); - $1.fncvals = _H; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _K = $k[--$j]; - $1[$k[--$j]] = _K; - $1.msglen = $1.msg.length; - $1.addtobits = function() { - var _N = $k[--$j]; - $puti($1.bits, $1.j, _N); - $1.j = _N.length + $1.j; - }; - $1.tofixedbits = function() { - var _S = $strcpy($s(13), "0000000000000"); - var _T = $k[--$j]; - var _W = $cvrs($s(13), $k[--$j], 2); - $puti(_S, $f(_T - _W.length), _W); - $k[$j++] = $geti(_S, 0, _T); - }; - var _Z = $1.msglen <= 15 ? 4 : 17; - $1.bits = $s(7 + _Z + $1.msglen * 8 + 12); - $1.j = 0; - $k[$j++] = 31; - $k[$j++] = 5; - $1.tofixedbits(); - $1.addtobits(); - $k[$j++] = "00"; - $1.addtobits(); - if ($1.msglen <= 15) { - $k[$j++] = $1.msglen; - $k[$j++] = 4; - $1.tofixedbits(); - $1.addtobits(); - } else { - $k[$j++] = "0000"; - $1.addtobits(); - $k[$j++] = $1.msglen - 16; - $k[$j++] = 13; - $1.tofixedbits(); - $1.addtobits(); - } - for (var _h = 0, _g = $1.msglen - 1; _h <= _g; _h += 1) { - $k[$j++] = $get($1.msg, _h); - $k[$j++] = 8; - $1.tofixedbits(); - $1.addtobits(); - } - $k[$j++] = 28; - $k[$j++] = 5; - $1.tofixedbits(); - $1.addtobits(); - $k[$j++] = 31; - $k[$j++] = 5; - $1.tofixedbits(); - $1.addtobits(); - $k[$j++] = "11"; - $1.addtobits(); - $1.diffside = 21; - $1.sameshape = false; - $1.sameecc = false; - $1.hasslaves = false; - $1.metrics = function() { - $1.mc = $k[--$j]; - $1.mr = $k[--$j]; - var _m = $1.mc; - var _n = $1.mr; - var _o = $1.mc; - var _p = $1.mr; - var _q = $1.colors; - var _r = 64; - if (64 > _q) { - var _ = _q; - _q = _r; - _r = _; - } - var _t = $1.slave ? 7 : 17; - $k[$j++] = _m * _n; - $k[$j++] = ((~~($f(_o - 25) / 16) + 2) * (~~($f(_p - 25) / 16) + 2) - 4) * 7; - $k[$j++] = _r * 2; - $k[$j++] = _t * 4; - if (!$1.slave) { - var _x = $eq($1.mr, $1.mc) ? 0 : 1; - $1.metass = _x; - var _y = $1.mr; - var _z = $1.mc; - if ($lt(_y, _z)) { - var _ = _z; - _z = _y; - _y = _; - } - $1.metavf = $get($a([ 0, 1, 2, 2, 3, 3, 3, 3 ]), ~~($f(_y - 21) / 16)); - $k[$j++] = "metavlen"; - if ($1.metass == 0) { - $k[$j++] = $a([ 2, 2, 3, 4 ]); - } else { - $k[$j++] = $a([ 4, 6, 8, 10 ]); - } - var _17 = $get($k[--$j], $1.metavf); - $1[$k[--$j]] = _17; - $1.metaelen = $f($1.metavf * 2 + 10); - $k[$j++] = $f($f(7 + $1.metavlen) + $1.metaelen); - if ($1.hasslaves) { - var _1D = $k[--$j]; - $k[$j++] = $f(_1D + 4); - } - var _1G = ~~Math.ceil($k[--$j] * 2 / $1.metabpm); - $1.nummetabits = $f(_1G * $1.metabpm + 6); - $k[$j++] = _1G + 6; - } else { - $k[$j++] = 3; - if (!$1.sameshape) { - var _1J = $k[--$j]; - $k[$j++] = $f(_1J + 5); - } - if ($1.hasslaves) { - var _1L = $k[--$j]; - $k[$j++] = $f(_1L + 3); - } - if (!$1.sameecc) { - var _1N = $1.mr; - var _1O = $1.mc; - if ($lt(_1N, _1O)) { - var _ = _1O; - _1O = _1N; - _1N = _; - } - var _1R = $k[--$j]; - $k[$j++] = $f(_1R + $get($a([ 10, 12, 14, 14, 16, 16, 16, 16 ]), ~~($f(_1N - 21) / 16))); - } - var _1U = ~~Math.ceil($k[--$j] * 2 / $1.metabpm); - $1.nummetabits = _1U * $1.metabpm; - $k[$j++] = _1U; - } - var _1W = $k[--$j]; - $1.nummetamodules = _1W; - var _1X = $k[--$j]; - var _1Y = $k[--$j]; - var _1Z = $k[--$j]; - $1.numdatamodules = $f($k[--$j] - $f(_1Z + $f(_1Y + $f(_1X + _1W)))); - $1.numdatabits = $1.numdatamodules * $1.databpm; - }; - $1.coderate = $get($a([ .67, .63, .57, .55, .5, .43, .34, .25, .2, .17, .14 ]), $1.eclevel); - $1.grosslen = ~~Math.ceil($1.bits.length / $1.coderate); - $1.snapsize = function() { - var _1j = ~~Math.ceil($k[--$j]) - 18; - $k[$j++] = _1j; - if (_1j < 0) { - $j--; - $k[$j++] = 0; - } - var _1k = $k[--$j]; - $k[$j++] = ~~(_1k / 4) * 4 + 21; - }; - if ($1.rows == -1 && $1.columns == -1) { - $k[$j++] = "size"; - $k[$j++] = Math.sqrt($1.grosslen); - $1.snapsize(); - var _1o = $k[--$j]; - $1[$k[--$j]] = _1o; - for (;;) { - $k[$j++] = $1.size; - $k[$j++] = $1.size; - $1.metrics(); - if ($1.grosslen <= $1.numdatabits) { - break; - } - $1.size = $f($1.size + 4); - } - $1.rows = $1.size; - $1.columns = $1.size; - } else { - if ($1.columns == -1 && $1.rows != -1) { - $k[$j++] = "columns"; - $k[$j++] = $1.grosslen / $1.rows; - $1.snapsize(); - var _21 = $k[--$j]; - $1[$k[--$j]] = _21; - for (;;) { - $k[$j++] = $1.rows; - $k[$j++] = $1.columns; - $1.metrics(); - if ($1.grosslen <= $1.numdatabits) { - break; - } - $1.columns = $f($1.columns + 4); - } - } - if ($1.rows == -1 && $1.columns != -1) { - $k[$j++] = "rows"; - $k[$j++] = $1.grosslen / $1.columns; - $1.snapsize(); - var _2C = $k[--$j]; - $1[$k[--$j]] = _2C; - for (;;) { - $k[$j++] = $1.rows; - $k[$j++] = $1.columns; - $1.metrics(); - if ($1.grosslen <= $1.numdatabits) { - break; - } - $1.rows = $f($1.rows + 4); - } - } - if ($1.rows != -1 && $1.columns != -1) { - $k[$j++] = $1.rows; - $k[$j++] = $1.columns; - $1.metrics(); - } - } - $1.C = $1.numdatabits; - $1.cols = $1.columns; - if ($1.rows > 145 || $1.cols > 145) { - $k[$j++] = "bwipp.jabcodeNoValidSymbol"; - $k[$j++] = "No valid symbol available"; - $0.raiseerror(); - } - $1.min = $1.C; - for (var _2S = 3; _2S <= 8; _2S += 1) { - $1.i = _2S; - for (var _2U = $1.i + 1; _2U <= 9; _2U += 1) { - $1.j = _2U; - $1.dist = ~~($1.C / $1.j) * $1.j - ~~($1.C / $1.j) * $1.i - $1.bits.length; - if ($1.dist < $1.min && $1.dist >= 0) { - $1.datawc = $1.i; - $1.datawr = $1.j; - $1.min = $1.dist; - } - } - } - $1.tmpbits = $s(~~($1.C / $1.datawr) * $1.datawr - ~~($1.C / $1.datawr) * $1.datawc); - $puti($1.tmpbits, 0, $1.bits); - for (var _2u = $1.bits.length, _2t = $1.tmpbits.length - 1; _2u <= _2t; _2u += 1) { - var _2w = $get($1.tmpbits, _2u - 1); - $k[$j++] = _2u; - $k[$j++] = _2w; - if (_2w % 2 == 0) { - var _2x = $k[--$j]; - $k[$j++] = $f(_2x + 1); - } else { - var _2y = $k[--$j]; - $k[$j++] = $f(_2y - 1); - } - var _30 = $k[--$j]; - $put($1.tmpbits, $k[--$j], _30); - } - $1.bits = $1.tmpbits; - $1.m0 = 22609 + 1; - $1.m1 = 62509 - 65536; - $1.m2 = 19605; - $1.m3 = 32557; - $1.lcg64_temper = function() { - $1.p00 = $1.m0 * $1.s0; - $1.p01 = $1.m0 * $1.s1; - $1.p02 = $1.m0 * $1.s2; - $1.p03 = $1.m0 * $1.s3; - $1.p10 = $1.m1 * $1.s0; - $1.p11 = $1.m1 * $1.s1; - $1.p12 = $1.m1 * $1.s2; - $1.p13 = $1.m1 * $1.s3; - $1.p20 = $1.m2 * $1.s0; - $1.p21 = $1.m2 * $1.s1; - $1.p22 = $1.m2 * $1.s2; - $1.p23 = $1.m2 * $1.s3; - $1.p30 = $1.m3 * $1.s0; - $1.p31 = $1.m3 * $1.s1; - $1.p32 = $1.m3 * $1.s2; - $1.p33 = $1.m3 * $1.s3; - $1.s3 = $1.p33 % 65536 + 1; - $1.s2 = $1.p32 % 65536 + ~~($1.p33 / 65536) + $1.p23 % 65536; - $1.s1 = $1.p31 % 65536 + ~~($1.p32 / 65536) + ($1.p22 % 65536 + ~~($1.p23 / 65536)) + $1.p13 % 65536; - $1.s0 = $1.p30 % 65536 + ~~($1.p31 / 65536) + ($1.p21 % 65536 + ~~($1.p22 / 65536)) + ($1.p12 % 65536 + ~~($1.p13 / 65536)) + $1.p03 % 65536; - $1.s3 = $1.s3 + 65536; - $1.s2 = $1.s2 + 65535; - $1.s1 = $1.s1 + 65535; - $1.s0 = $1.s0 + 65535; - $1.s2 = ~~($1.s3 / 65536) + $1.s2; - $1.s3 = $1.s3 % 65536; - $1.s1 = ~~($1.s2 / 65536) + $1.s1; - $1.s2 = $1.s2 % 65536; - $1.s0 = ~~($1.s1 / 65536) + $1.s0; - $1.s1 = $1.s1 % 65536; - $1.s0 = $1.s0 % 65536; - var _45 = (($1.s0 - 32768) * 65536 + $1.s1 ^ 2147483648) & 4294967295; - var _46 = _45 ^ _45 >>> 11; - var _47 = _46 ^ _46 << 7 & -1658038656; - var _48 = (_47 ^ _47 << 15 & -272236544) & 4294967295; - $k[$j++] = _48 ^ _48 >>> 18; - }; - $1.createMatrixA = function() { - $k[$j++] = "nb_pcb"; - if ($1.wr < 4) { - $k[$j++] = ~~($1.Pg_sub_block / 2); - } else { - $k[$j++] = ~~($1.Pg_sub_block / $1.wr) * $1.wc; - } - var _4E = $k[--$j]; - $1[$k[--$j]] = _4E; - $1.offset = ~~Math.ceil($1.Pg_sub_block / 32); - $1.effwidth = $1.offset * 32; - $1.matrixA = $a($1.offset * $1.nb_pcb); - for (var _4O = 0, _4N = $1.offset * $1.nb_pcb - 1; _4O <= _4N; _4O += 1) { - $put($1.matrixA, _4O, 0); - } - $1.permutation = $a($1.Pg_sub_block); - for (var _4U = 0, _4T = $1.Pg_sub_block - 1; _4U <= _4T; _4U += 1) { - $put($1.permutation, _4U, _4U); - } - for (var _4Z = 0, _4Y = ~~($1.Pg_sub_block / $1.wr) - 1; _4Z <= _4Y; _4Z += 1) { - $1.i = _4Z; - for (var _4c = 0, _4b = $f($1.wr - 1); _4c <= _4b; _4c += 1) { - $1.j = _4c; - var _4d = $1.matrixA; - var _4e = $1.i; - var _4f = $1.effwidth; - var _4g = $1.wr; - var _4h = $1.j; - var _4n = $f(31 - $f($1.i * $f($1.effwidth + $1.wr) + $1.j) % 32); - $put(_4d, ~~($f(_4e * $f(_4f + _4g) + _4h) / 32), $get(_4d, ~~($f(_4e * $f(_4f + _4g) + _4h) / 32)) | (_4n < 0 ? 1 >>> -_4n : 1 << _4n)); - } - } - $1.s0 = 0; - $1.s1 = 0; - $1.s2 = 11; - $1.s3 = 64569; - for (var _4q = 1, _4p = $f($1.wc - 1); _4q <= _4p; _4q += 1) { - $1.i = _4q; - $1.off_index = ~~($1.Pg_sub_block / $1.wr) * $1.i; - for (var _4w = 0, _4v = $1.Pg_sub_block - 1; _4w <= _4v; _4w += 1) { - $1.j = _4w; - $1.lcg64_temper(); - var _4x = $k[--$j]; - $k[$j++] = _4x; - if (_4x < 0) { - var _4y = $k[--$j]; - $k[$j++] = $f((_4y ^ 2147483648) + 2147483648); - } - $1.pos = ~~($k[--$j] / 4294967296 * ($1.Pg_sub_block - $1.j)); - for (var _55 = 0, _54 = ~~($1.Pg_sub_block / $1.wr) - 1; _55 <= _54; _55 += 1) { - $1.k = _55; - var _56 = $1.matrixA; - var _57 = $1.off_index; - var _58 = $1.k; - var _59 = $1.offset; - var _5A = $1.j; - var _5I = $get($1.matrixA, ~~($get($1.permutation, $1.pos) / 32) + $1.k * $1.offset); - var _5M = -$f(31 - $get($1.permutation, $1.pos) % 32); - var _5O = 31 - $1.j % 32; - $put(_56, (_57 + _58) * _59 + ~~(_5A / 32), $get(_56, (_57 + _58) * _59 + ~~(_5A / 32)) | (_5O < 0 ? ((_5M < 0 ? _5I >>> -_5M : _5I << _5M) & 1) >>> -_5O : ((_5M < 0 ? _5I >>> -_5M : _5I << _5M) & 1) << _5O)); - } - var _5R = $1.permutation; - var _5S = $1.Pg_sub_block; - var _5T = $1.j; - $put(_5R, _5S - 1 - _5T, $get($1.permutation, $1.pos)); - $put($1.permutation, $1.pos, $get(_5R, _5S - 1 - _5T)); - } - } - }; - $1.createMetadataMatrixA = function() { - $1.nb_pcb = ~~($1.Pg_sub_block / 2); - $1.offset = ~~Math.ceil($1.Pg_sub_block / 32); - $1.matrixA = $a($1.offset * $1.nb_pcb); - for (var _5g = 0, _5f = $1.offset * $1.nb_pcb - 1; _5g <= _5f; _5g += 1) { - $put($1.matrixA, _5g, 0); - } - $1.permutation = $a($1.Pg_sub_block); - for (var _5m = 0, _5l = $1.Pg_sub_block - 1; _5m <= _5l; _5m += 1) { - $put($1.permutation, _5m, _5m); - } - $1.s0 = 0; - $1.s1 = 0; - $1.s2 = 0; - $1.s3 = 38545; - $1.nb_once = ~~(~~$f($1.nb_pcb / $1.wc * $1.Pg_sub_block + 3) / $1.nb_pcb); - for (var _5u = 0, _5t = $1.nb_pcb - 1; _5u <= _5t; _5u += 1) { - $1.i = _5u; - for (var _5x = 0, _5w = $1.nb_once - 1; _5x <= _5w; _5x += 1) { - $1.j = _5x; - $1.lcg64_temper(); - var _5y = $k[--$j]; - $k[$j++] = _5y; - if (_5y < 0) { - var _5z = $k[--$j]; - $k[$j++] = $f((_5z ^ 2147483648) + 2147483648); - } - $1.pos = ~~($k[--$j] / 4294967296 * ($1.Pg_sub_block - $1.j)); - var _63 = $1.matrixA; - var _64 = $1.i; - var _65 = $1.offset; - var _68 = $get($1.permutation, $1.pos); - var _6D = $f(31 - $get($1.permutation, $1.pos) % 32); - $put(_63, _64 * _65 + ~~(_68 / 32), $get(_63, _64 * _65 + ~~(_68 / 32)) | (_6D < 0 ? 1 >>> -_6D : 1 << _6D)); - var _6G = $1.permutation; - var _6H = $1.Pg_sub_block; - var _6I = $1.j; - $put(_6G, _6H - 1 - _6I, $get($1.permutation, $1.pos)); - $put($1.permutation, $1.pos, $get(_6G, _6H - 1 - _6I)); - } - } - }; - $1.GaussJordan = function() { - $k[$j++] = "nb_pcb"; - if ($1.wr < 4) { - $k[$j++] = ~~($1.Pg_sub_block / 2); - } else { - $k[$j++] = ~~($1.Pg_sub_block / $1.wr) * $1.wc; - } - var _6S = $k[--$j]; - $1[$k[--$j]] = _6S; - $1.offset = ~~Math.ceil($1.Pg_sub_block / 32); - var _6V = $1.matrixA; - $1.matrixH = $arrcpy($a(_6V.length), _6V); - $k[$j++] = Infinity; - for (var _6Z = 0, _6a = $1.Pg_sub_block; _6Z < _6a; _6Z++) { - $k[$j++] = 0; - } - $1.column_arrangement = $a(); - $k[$j++] = Infinity; - for (var _6d = 0, _6e = $1.Pg_sub_block; _6d < _6e; _6d++) { - $k[$j++] = false; - } - $1.processed_column = $a(); - $k[$j++] = Infinity; - for (var _6h = 0, _6i = $1.nb_pcb; _6h < _6i; _6h++) { - $k[$j++] = 0; - } - $1.zero_lines_nb = $a(); - $k[$j++] = Infinity; - for (var _6l = 0, _6m = $1.Pg_sub_block * 2; _6l < _6m; _6l++) { - $k[$j++] = 0; - } - $1.swap_col = $a(); - $1.zero_lines = 0; - $1.loop0 = 0; - for (var _6q = 0, _6p = $1.nb_pcb - 1; _6q <= _6p; _6q += 1) { - $1.i = _6q; - $1.pivot_column = $1.Pg_sub_block + 1; - for (var _6u = 0, _6t = $1.Pg_sub_block - 1; _6u <= _6t; _6u += 1) { - $1.j = _6u; - var _6z = $get($1.matrixH, ~~(($1.offset * 32 * $1.i + $1.j) / 32)); - var _73 = -(31 - ($1.offset * 32 * $1.i + $1.j) % 32); - if (((_73 < 0 ? _6z >>> -_73 : _6z << _73) & 1) == 1) { - $1.pivot_column = $1.j; - break; - } - } - if ($1.pivot_column < $1.Pg_sub_block) { - $put($1.processed_column, $1.pivot_column, true); - $put($1.column_arrangement, $1.pivot_column, $1.i); - if ($1.pivot_column >= $1.nb_pcb) { - $put($1.swap_col, $1.loop0 * 2, $1.pivot_column); - $1.loop0 = $1.loop0 + 1; - } - $1.off_index = ~~($1.pivot_column / 32); - $1.off_index1 = $1.pivot_column % 32; - for (var _7M = 0, _7L = $1.nb_pcb - 1; _7M <= _7L; _7M += 1) { - $1.j = _7M; - if ($1.i != $1.j) { - var _7T = $get($1.matrixH, $1.off_index + $1.j * $1.offset); - var _7V = -(31 - $1.off_index1); - if (((_7V < 0 ? _7T >>> -_7V : _7T << _7V) & 1) == 1) { - for (var _7Y = 0, _7X = $1.offset - 1; _7Y <= _7X; _7Y += 1) { - $1.k = _7Y; - var _7Z = $1.matrixH; - var _7a = $1.offset; - var _7b = $1.j; - var _7c = $1.k; - $put(_7Z, _7a * _7b + _7c, $xo($get(_7Z, _7a * _7b + _7c), $get($1.matrixH, $1.offset * $1.i + $1.k))); - } - } - } - } - } else { - $put($1.zero_lines_nb, $1.zero_lines, $1.i); - $1.zero_lines = $1.zero_lines + 1; - } - } - $1.matrix_rank = $1.nb_pcb - $1.zero_lines; - $1.loop2 = 0; - for (var _7s = $1.matrix_rank, _7r = $1.nb_pcb - 1; _7s <= _7r; _7s += 1) { - $1.i = _7s; - if ($get($1.column_arrangement, $1.i) > 0) { - for (var _7y = 0, _7x = $1.nb_pcb - 1; _7y <= _7x; _7y += 1) { - $1.j = _7y; - if ($nt($get($1.processed_column, $1.j))) { - $put($1.column_arrangement, $1.j, $get($1.column_arrangement, $1.i)); - $put($1.column_arrangement, $1.i, 0); - $put($1.processed_column, $1.j, true); - $put($1.processed_column, $1.i, false); - $put($1.swap_col, $1.loop0 * 2, $1.i); - $put($1.swap_col, $1.loop0 * 2 + 1, $1.j); - $put($1.column_arrangement, $1.i, $1.j); - $1.loop0 = $1.loop0 + 1; - $1.loop2 = $1.loop2 + 1; - break; - } - } - } - } - $1.loop1 = 0; - for (var _8Q = 0, _8P = $1.nb_pcb - 1; _8Q <= _8P; _8Q += 1) { - $1.kl = _8Q; - if ($nt($get($1.processed_column, $1.kl)) && $1.loop1 < $1.loop0 - $1.loop2) { - $put($1.column_arrangement, $1.kl, $get($1.column_arrangement, $get($1.swap_col, $1.loop1 * 2))); - $put($1.processed_column, $1.kl, true); - $put($1.swap_col, $1.loop1 * 2 + 1, $1.kl); - $1.loop1 = $1.loop1 + 1; - } - } - $1.loop1 = 0; - for (var _8m = 0, _8l = $1.nb_pcb - 1; _8m <= _8l; _8m += 1) { - $1.kl = _8m; - if ($nt($get($1.processed_column, $1.kl))) { - $put($1.column_arrangement, $1.kl, $get($1.zero_lines_nb, $1.loop1)); - $1.loop1 = $1.loop1 + 1; - } - } - for (var _8y = 0, _8x = $1.nb_pcb - 1; _8y <= _8x; _8y += 1) { - $1.i = _8y; - for (var _91 = 0, _90 = $1.offset - 1; _91 <= _90; _91 += 1) { - $1.j = _91; - $put($1.matrixA, $1.i * $1.offset + $1.j, $get($1.matrixH, $f($get($1.column_arrangement, $1.i) * $1.offset + $1.j))); - } - } - $1.tmp = 0; - for (var _9F = 0, _9E = $1.loop0 - 1; _9F <= _9E; _9F += 1) { - $1.i = _9F; - for (var _9I = 0, _9H = $1.nb_pcb - 1; _9I <= _9H; _9I += 1) { - $1.j = _9I; - var _9P = $get($1.matrixA, ~~($get($1.swap_col, $1.i * 2) / 32) + $1.j * $1.offset); - var _9T = -$f(31 - $get($1.swap_col, $1.i * 2) % 32); - $1.tmp = (-((_9T < 0 ? _9P >>> -_9T : _9P << _9T) & 1) ^ $1.tmp) & 1 ^ $1.tmp; - var _9W = $1.matrixA; - var _9Z = $get($1.swap_col, $1.i * 2); - var _9a = $1.j; - var _9b = $1.offset; - var _9j = $get($1.matrixA, ~~($get($1.swap_col, $1.i * 2 + 1) / 32) + $1.j * $1.offset); - var _9n = -$f(31 - $get($1.swap_col, $1.i * 2 + 1) % 32); - var _9y = $f(31 - $get($1.swap_col, $1.i * 2) % 32); - $put(_9W, ~~(_9Z / 32) + _9a * _9b, $get(_9W, ~~(_9Z / 32) + _9a * _9b) ^ (-((_9n < 0 ? _9j >>> -_9n : _9j << _9n) & 1) ^ $get($1.matrixA, ~~($get($1.swap_col, $1.i * 2) / 32) + $1.j * $1.offset)) & (_9y < 0 ? 1 >>> -_9y : 1 << _9y)); - var _9z = $1.matrixA; - var _A2 = $get($1.swap_col, $1.i * 2 + 1); - var _A3 = $1.j; - var _A4 = $1.offset; - var _AH = $f(31 - $get($1.swap_col, $1.i * 2 + 1) % 32); - $put(_9z, ~~(_A2 / 32) + _A3 * _A4, $get(_9z, ~~(_A2 / 32) + _A3 * _A4) ^ (-($1.tmp & 1) ^ $get($1.matrixA, ~~($get($1.swap_col, $1.i * 2 + 1) / 32) + $1.j * $1.offset)) & (_AH < 0 ? 1 >>> -_AH : 1 << _AH)); - } - } - }; - $1.createGeneratorMatrix = function() { - $1.pn = $1.Pg_sub_block - $1.matrix_rank; - $1.offset = ~~Math.ceil($1.pn / 32); - $1.effwidth = $1.offset * 32; - $1.offset_cap = ~~Math.ceil($1.Pg_sub_block / 32); - $1.G = $a($1.offset * $1.Pg_sub_block); - for (var _AT = 0, _AS = $1.offset * $1.Pg_sub_block - 1; _AT <= _AS; _AT += 1) { - $put($1.G, _AT, 0); - } - for (var _AX = 0, _AW = $1.pn - 1; _AX <= _AW; _AX += 1) { - $1.i = _AX; - var _AY = $1.G; - var _AZ = $1.Pg_sub_block; - var _Aa = $1.pn; - var _Ab = $1.i; - var _Ac = $1.offset; - var _Ad = $1.i; - var _Ag = 31 - $1.i % 32; - $put(_AY, (_AZ - _Aa + _Ab) * _Ac + ~~(_Ad / 32), $get(_AY, (_AZ - _Aa + _Ab) * _Ac + ~~(_Ad / 32)) | (_Ag < 0 ? 1 >>> -_Ag : 1 << _Ag)); - } - $1.matrix_index = $1.Pg_sub_block - $1.pn; - $1.loop0 = 0; - for (var _An = 0, _Am = ($1.Pg_sub_block - $1.pn) * $1.effwidth - 1; _An <= _Am; _An += 1) { - $1.i = _An; - if ($1.matrix_index >= $1.Pg_sub_block) { - $1.loop0 = $1.loop0 + 1; - $1.matrix_index = $1.Pg_sub_block - $1.pn; - } - if ($1.i % $1.effwidth < $1.pn) { - var _Aw = $1.G; - var _Ax = $1.i; - var _B3 = $get($1.matrixA, ~~($1.matrix_index / 32) + $1.offset_cap * $1.loop0); - var _B5 = -(31 - $1.matrix_index % 32); - var _BA = 31 - $1.i % 32; - $put(_Aw, ~~(_Ax / 32), $get(_Aw, ~~(_Ax / 32)) ^ (-((_B5 < 0 ? _B3 >>> -_B5 : _B3 << _B5) & 1) ^ $get($1.G, ~~($1.i / 32))) & (_BA < 0 ? 1 >>> -_BA : 1 << _BA)); - $1.matrix_index = $1.matrix_index + 1; - } - } - }; - $1.ldpc = function() { - $1.wr = $k[--$j]; - $1.wc = $k[--$j]; - $k[$j++] = Infinity; - var _BE = $k[--$j]; - var _BF = $k[--$j]; - $k[$j++] = _BE; - $forall(_BF, function() { - var _BG = $k[--$j]; - $k[$j++] = $f(_BG - 48); - }); - $1.data = $a(); - $1.Pn = $1.data.length; - if ($1.wr != -1) { - $1.Pg = ~~(Math.ceil(Math.ceil($1.Pn * $1.wr / $f($1.wr - $1.wc)) / $1.wr) * $1.wr); - $1.nb_sub_blocks = ~~($1.Pg / 2700) + 1; - $1.Pg_sub_block = ~~(~~($1.Pg / $1.nb_sub_blocks) / $1.wr) * $1.wr; - $1.Pn_sub_block = ~~($1.Pg_sub_block * $f($1.wr - $1.wc) / $1.wr); - $1.nb_sub_blocks = ~~($1.Pg / $1.Pg_sub_block); - $k[$j++] = "encoding_iterations"; - $k[$j++] = ~~($1.Pg / $1.Pg_sub_block); - if ($1.Pn_sub_block * $1.nb_sub_blocks < $1.Pn) { - var _Bg = $k[--$j]; - $k[$j++] = $f(_Bg - 1); - } - var _Bh = $k[--$j]; - $1[$k[--$j]] = _Bh; - $1.createMatrixA(); - } else { - $1.Pg = $1.Pn * 2; - $1.nb_sub_blocks = 1; - $1.Pg_sub_block = $1.Pg; - $1.Pn_sub_block = $1.Pn; - $1.encoding_iterations = 1; - $1.createMetadataMatrixA(); - } - $1.GaussJordan(); - $1.createGeneratorMatrix(); - $1.ecc_encoded_data = $a($1.Pg); - $1.offset = ~~Math.ceil(($1.Pg_sub_block - $1.matrix_rank) / 32); - for (var _Bs = 0, _Br = $1.encoding_iterations - 1; _Bs <= _Br; _Bs += 1) { - $1.iter = _Bs; - for (var _Bv = 0, _Bu = $1.Pg_sub_block - 1; _Bv <= _Bu; _Bv += 1) { - $1.i = _Bv; - $1.temp = 0; - $1.loop0 = 0; - $1.offset_index = $1.offset * $1.i; - for (var _C3 = $1.iter * $1.Pn_sub_block, _C2 = ($1.iter + 1) * $1.Pn_sub_block - 1; _C3 <= _C2; _C3 += 1) { - var _C9 = $get($1.G, $1.offset_index + ~~($1.loop0 / 32)); - var _CB = -(31 - $1.loop0 % 32); - $1.temp = $get($1.data, _C3) & ((_CB < 0 ? _C9 >>> -_CB : _C9 << _CB) & 1) ^ $1.temp; - $1.loop0 = $1.loop0 + 1; - } - $put($1.ecc_encoded_data, $1.i + $1.iter * $1.Pg_sub_block, $1.temp); - } - } - if ($1.encoding_iterations != $1.nb_sub_blocks) { - $1.start = $1.encoding_iterations * $1.Pn_sub_block; - $1.last_index = $1.encoding_iterations * $1.Pg_sub_block; - $1.Pg_sub_block = $1.Pg - $1.encoding_iterations * $1.Pg_sub_block; - $1.Pn_sub_block = ~~($1.Pg_sub_block * $f($1.wr - $1.wc) / $1.wr); - $1.createMatrixA(); - $1.GaussJordan(); - $1.createGeneratorMatrix(); - $1.offset = ~~Math.ceil(($1.Pg_sub_block - $1.matrix_rank) / 32); - for (var _Ca = 0, _CZ = $1.Pg_sub_block - 1; _Ca <= _CZ; _Ca += 1) { - $1.i = _Ca; - $1.temp = 0; - $1.loop0 = 0; - $1.offset_index = $1.offset * $1.i; - for (var _Cg = $1.start, _Cf = $1.Pn - 1; _Cg <= _Cf; _Cg += 1) { - var _Cm = $get($1.G, $1.offset_index + ~~($1.loop0 / 32)); - var _Co = -(31 - $1.loop0 % 32); - $1.temp = $get($1.data, _Cg) & ((_Co < 0 ? _Cm >>> -_Co : _Cm << _Co) & 1) ^ $1.temp; - $1.loop0 = $1.loop0 + 1; - } - $put($1.ecc_encoded_data, $1.i + $1.last_index, $1.temp); - } - } - $1.out = $s($1.Pg); - for (var _Cz = 0, _Cy = $1.Pg - 1; _Cz <= _Cy; _Cz += 1) { - $put($1.out, _Cz, $f($get($1.ecc_encoded_data, _Cz) + 48)); - } - $k[$j++] = $1.out; - }; - $k[$j++] = "bits"; - $k[$j++] = $1.bits; - $k[$j++] = $1.datawc; - $k[$j++] = $1.datawr; - $1.ldpc(); - var _D7 = $k[--$j]; - $1[$k[--$j]] = _D7; - $1.s0 = 0; - $1.s1 = 0; - $1.s2 = 3; - $1.s3 = 30151; - for (var _DA = $1.bits.length - 1; _DA >= 1; _DA -= 1) { - $1.l = _DA; - $1.lcg64_temper(); - var _DB = $k[--$j]; - $k[$j++] = _DB; - if (_DB < 0) { - var _DC = $k[--$j]; - $k[$j++] = $f((_DC ^ 2147483648) + 2147483648); - } - $1.r = ~~($k[--$j] / 4294967296 * ($1.l + 1)); - $put($1.bits, $1.l, $get($1.bits, $1.r)); - $put($1.bits, $1.r, $get($1.bits, $1.l)); - } - $1.tmpbits = $s($1.C); - $puti($1.tmpbits, 0, $1.bits); - $1.j = $1.bits.length; - for (var _DW = 0, _DX = ~~($f($f($1.C - $1.j) + 1) / 2); _DW < _DX; _DW++) { - $put($1.tmpbits, $1.j, 48); - if ($1.j + 1 < $1.C) { - $put($1.tmpbits, $1.j + 1, 49); - } - $1.j = $1.j + 2; - } - $1.bits = $1.tmpbits; - if ($1.colors == 4) { - $1.bi = 0; - $1.gi = 1; - $1.mi = 2; - $1.yi = 3; - $1.ki = 4; - $1.wi = 5; - $k[$j++] = Infinity; - $k[$j++] = $1.bi; - $k[$j++] = "0000FF"; - $k[$j++] = $1.gi; - $k[$j++] = "00FF00"; - $k[$j++] = $1.mi; - $k[$j++] = "FF00FF"; - $k[$j++] = $1.yi; - $k[$j++] = "FFFF00"; - $k[$j++] = $1.ki; - $k[$j++] = "000000"; - $k[$j++] = $1.wi; - $k[$j++] = "FFFFFF"; - $1.palette = $d(); - $1.metacolorindex = $a([ $1.bi, $1.gi, $1.mi, $1.yi ]); - $1.palettelayout = $a([ $1.bi, $1.gi, $1.mi, $1.yi ]); - } else { - var _E4 = new Map([ [ 8, $a([ 2, 2, 2 ]) ], [ 16, $a([ 4, 2, 2 ]) ], [ 32, $a([ 4, 4, 2 ]) ], [ 64, $a([ 4, 4, 4 ]) ], [ 128, $a([ 8, 4, 4 ]) ], [ 256, $a([ 8, 8, 4 ]) ] ]); - $1.rgbres = $get(_E4, $1.colors); - $k[$j++] = "rvals"; - $k[$j++] = $get($1.rgbres, 0); - $k[$j++] = Infinity; - var _E9 = $k[--$j]; - var _EB = $f($k[--$j] - 1); - $k[$j++] = _E9; - $k[$j++] = _EB; - for (var _ED = 0, _EC = _EB; _ED <= _EC; _ED += 1) { - var _EE = $k[--$j]; - $k[$j++] = ~~Math.round(_ED * (255 / _EE)); - $k[$j++] = _EE; - } - $j--; - var _EF = $a(); - $1[$k[--$j]] = _EF; - $k[$j++] = "gvals"; - $k[$j++] = $get($1.rgbres, 1); - $k[$j++] = Infinity; - var _EJ = $k[--$j]; - var _EL = $f($k[--$j] - 1); - $k[$j++] = _EJ; - $k[$j++] = _EL; - for (var _EN = 0, _EM = _EL; _EN <= _EM; _EN += 1) { - var _EO = $k[--$j]; - $k[$j++] = ~~Math.round(_EN * (255 / _EO)); - $k[$j++] = _EO; - } - $j--; - var _EP = $a(); - $1[$k[--$j]] = _EP; - $k[$j++] = "bvals"; - $k[$j++] = $get($1.rgbres, 2); - $k[$j++] = Infinity; - var _ET = $k[--$j]; - var _EV = $f($k[--$j] - 1); - $k[$j++] = _ET; - $k[$j++] = _EV; - for (var _EX = 0, _EW = _EV; _EX <= _EW; _EX += 1) { - var _EY = $k[--$j]; - $k[$j++] = ~~Math.round(_EX * (255 / _EY)); - $k[$j++] = _EY; - } - $j--; - var _EZ = $a(); - $1[$k[--$j]] = _EZ; - var _Eb = $1.colors; - $1.palette = new Map(); - var _Ec = $1.colors; - var _Ed = 64; - if (64 > _Ec) { - var _ = _Ec; - _Ec = _Ed; - _Ed = _; - } - $1.palettelayout = $a(_Ed); - $1.i = 0; - $1.j = 8; - $forall($1.rvals, function() { - $1.r = $k[--$j]; - $forall($1.gvals, function() { - $1.g = $k[--$j]; - $forall($1.bvals, function() { - $1.b = $k[--$j]; - var _Ep = $strcpy($s(6), "000000"); - var _Er = $cvrs($s(6), $1.r << 16 | $1.g << 8 | $1.b, 16); - $puti(_Ep, 6 - _Er.length, _Er); - $k[$j++] = _Ep; - $k[$j++] = false; - if ($eq(_Ep, "000000")) { - $1.ki = $1.i; - $j--; - $k[$j++] = true; - } - var _Et = $k[--$j]; - var _Eu = $k[--$j]; - $k[$j++] = _Eu; - $k[$j++] = _Et; - if ($eq(_Eu, "0000FF")) { - $1.bi = $1.i; - $j--; - $k[$j++] = true; - } - var _Ew = $k[--$j]; - var _Ex = $k[--$j]; - $k[$j++] = _Ex; - $k[$j++] = _Ew; - if ($eq(_Ex, "00FF00")) { - $1.gi = $1.i; - $j--; - $k[$j++] = true; - } - var _Ez = $k[--$j]; - var _F0 = $k[--$j]; - $k[$j++] = _F0; - $k[$j++] = _Ez; - if ($eq(_F0, "00FFFF")) { - $1.ci = $1.i; - $j--; - $k[$j++] = true; - } - var _F2 = $k[--$j]; - var _F3 = $k[--$j]; - $k[$j++] = _F3; - $k[$j++] = _F2; - if ($eq(_F3, "FF0000")) { - $1.ri = $1.i; - $j--; - $k[$j++] = true; - } - var _F5 = $k[--$j]; - var _F6 = $k[--$j]; - $k[$j++] = _F6; - $k[$j++] = _F5; - if ($eq(_F6, "FF00FF")) { - $1.mi = $1.i; - $j--; - $k[$j++] = true; - } - var _F8 = $k[--$j]; - var _F9 = $k[--$j]; - $k[$j++] = _F9; - $k[$j++] = _F8; - if ($eq(_F9, "FFFF00")) { - $1.yi = $1.i; - $j--; - $k[$j++] = true; - } - var _FB = $k[--$j]; - var _FC = $k[--$j]; - $k[$j++] = _FC; - $k[$j++] = _FB; - if ($eq(_FC, "FFFFFF")) { - $1.wi = $1.i; - $j--; - $k[$j++] = true; - } - if ($nt($k[--$j])) { - if ($1.colors <= 64 || ($1.colors == 128 && ($1.r == 0 || $1.r == 73 || $1.r == 182 || $1.r == 255) || $1.colors == 256 && ($1.r == 0 || $1.r == 73 || $1.r == 182 || $1.r == 255) && ($1.g == 0 || $1.g == 73 || $1.g == 182 || $1.g == 255))) { - $put($1.palettelayout, $1.j, $1.i); - $1.j = $1.j + 1; - } - } - $put($1.palette, $1.i, $k[--$j]); - $1.i = $1.i + 1; - }); - }); - }); - $puti($1.palettelayout, 0, $a([ $1.ki, $1.bi, $1.gi, $1.ci, $1.ri, $1.mi, $1.yi, $1.wi ])); - $1.metacolorindex = $a([ $1.ki, $1.bi, $1.gi, $1.ci, $1.ri, $1.mi, $1.yi, $1.wi ]); - } - $k[$j++] = Infinity; - for (var _Fx = 0, _Fy = $1.rows * $1.cols; _Fx < _Fy; _Fx++) { - $k[$j++] = -1; - } - $1.pixs = $a(); - $1.jmv = function() { - var _G1 = $k[--$j]; - var _G2 = $k[--$j]; - $k[$j++] = $f(_G2 + _G1 * $1.cols); - }; - if (!$1.slave) { - $1.fpat = $a([ $a([ 1, 1, 1, 0, 0 ]), $a([ 1, 2, 2, 0, 0 ]), $a([ 1, 2, 1, 2, 1 ]), $a([ 0, 0, 2, 2, 1 ]), $a([ 0, 0, 1, 1, 1 ]) ]); - $1.fmap = $a([ $a([ -1, $1.bi, $1.yi ]), $a([ -1, $1.yi, $1.bi ]), $a([ -1, $1.gi, $1.mi ]), $a([ -1, $1.mi, $1.gi ]) ]); - } else { - $1.fpat = $a([ $a([ 0, 0, 0, 0, 0 ]), $a([ 0, 2, 2, 0, 0 ]), $a([ 0, 2, 1, 2, 0 ]), $a([ 0, 0, 2, 2, 0 ]), $a([ 0, 0, 0, 0, 0 ]) ]); - $1.fmap = $a([ $a([ -1, $1.ki, $1.wi ]), $a([ -1, $1.ki, $1.wi ]), $a([ -1, $1.ki, $1.wi ]), $a([ -1, $1.ki, $1.wi ]) ]); - } - for (var _Gg = 0; _Gg <= 4; _Gg += 1) { - $1.y = _Gg; - for (var _Gh = 0; _Gh <= 4; _Gh += 1) { - $1.x = _Gh; - $1.fpb = $get($get($1.fpat, $1.y), $1.x); - $k[$j++] = $1.pixs; - $k[$j++] = $1.x + 1; - $k[$j++] = $1.y + 1; - $1.jmv(); - var _Gu = $k[--$j]; - $put($k[--$j], _Gu, $get($get($1.fmap, 0), $1.fpb)); - $k[$j++] = $1.pixs; - $k[$j++] = $1.x + 1; - $k[$j++] = $f($f($1.rows - $1.y) - 2); - $1.jmv(); - var _H4 = $k[--$j]; - $put($k[--$j], _H4, $get($get($1.fmap, 1), $1.fpb)); - $k[$j++] = $1.pixs; - $k[$j++] = $f($f($1.x + $1.cols) - 6); - $k[$j++] = $1.y + 1; - $1.jmv(); - var _HE = $k[--$j]; - $put($k[--$j], _HE, $get($get($1.fmap, 2), $1.fpb)); - $k[$j++] = $1.pixs; - $k[$j++] = $f($f($1.x + $1.cols) - 6); - $k[$j++] = $f($f($1.rows - $1.y) - 2); - $1.jmv(); - var _HP = $k[--$j]; - $put($k[--$j], _HP, $get($get($1.fmap, 3), $1.fpb)); - } - } - $1.algnpat0 = $a([ $a([ $1.ki, $1.ki, -1 ]), $a([ $1.ki, $1.wi, $1.ki ]), $a([ -1, $1.ki, $1.ki ]) ]); - $1.algnpat1 = $a([ $a([ -1, $1.ki, $1.ki ]), $a([ $1.ki, $1.wi, $1.ki ]), $a([ $1.ki, $1.ki, -1 ]) ]); - $1.num = ~~Math.round($1.cols / 16) - 1; - $1.algnrpos = $a([ 3, 17 ]); - if ($1.num > 0) { - $k[$j++] = Infinity; - for (var _Hs = 0, _Hr = $1.num; _Hs <= _Hr; _Hs += 1) { - $k[$j++] = ~~(_Hs * ($f($1.cols - 7) / $1.num)) + 3; - } - $1.algnrpos = $a(); - } - $1.num = ~~Math.round($1.rows / 16) - 1; - $1.algncpos = $a([ 3, 17 ]); - if ($1.num > 0) { - $k[$j++] = Infinity; - for (var _I1 = 0, _I0 = $1.num; _I1 <= _I0; _I1 += 1) { - $k[$j++] = ~~(_I1 * ($f($1.rows - 7) / $1.num)) + 3; - } - $1.algncpos = $a(); - } - $1.putalgnpat = function() { - $1.pp = $k[--$j]; - $1.py = $k[--$j]; - $1.px = $k[--$j]; - for (var _I8 = 0; _I8 <= 2; _I8 += 1) { - $1.pb = _I8; - for (var _I9 = 0; _I9 <= 2; _I9 += 1) { - $1.pa = _I9; - $k[$j++] = $1.pixs; - $k[$j++] = $f($1.px + $1.pa); - $k[$j++] = $f($1.py + $1.pb); - $1.jmv(); - var _IK = $k[--$j]; - $put($k[--$j], _IK, $get($get($1.pp, $1.pb), $1.pa)); - } - } - }; - for (var _IO = 0, _IN = $1.algncpos.length - 1; _IO <= _IN; _IO += 1) { - $1.j = _IO; - $1.y = $get($1.algncpos, $1.j); - for (var _IU = 0, _IT = $1.algnrpos.length - 1; _IU <= _IT; _IU += 1) { - $1.i = _IU; - $1.x = $get($1.algnrpos, $1.i); - $k[$j++] = $1.pixs; - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $1.jmv(); - var _Ib = $k[--$j]; - if ($get($k[--$j], _Ib) == -1) { - $k[$j++] = $f($1.x - 1); - $k[$j++] = $f($1.y - 1); - if (($1.i + $1.j) % 2 == 0) { - $k[$j++] = $1.algnpat0; - } else { - $k[$j++] = $1.algnpat1; - } - $1.putalgnpat(); - } - } - } - if (!$1.slave) { - var _JT = $a([ $a([ 6, 1 ]), $a([ 6, 2 ]), $a([ 6, 3 ]), $a([ 6, 4 ]), $a([ 6, 5 ]), $a([ 6, 6 ]), $a([ 5, 6 ]), $a([ 4, 6 ]), $a([ 3, 6 ]), $a([ 2, 6 ]), $a([ 1, 6 ]), $a([ 7, 1 ]), $a([ 7, 2 ]), $a([ 7, 3 ]), $a([ 7, 4 ]), $a([ 7, 5 ]), $a([ 7, 6 ]), $a([ 7, 7 ]), $a([ 6, 7 ]), $a([ 5, 7 ]), $a([ 4, 7 ]), $a([ 3, 7 ]), $a([ 2, 7 ]), $a([ 1, 7 ]), $a([ 8, 1 ]), $a([ 8, 2 ]), $a([ 8, 3 ]), $a([ 8, 4 ]), $a([ 8, 5 ]), $a([ 8, 6 ]), $a([ 8, 7 ]), $a([ 8, 8 ]), $a([ 7, 8 ]), $a([ 6, 8 ]), $a([ 5, 8 ]), $a([ 4, 8 ]), $a([ 3, 8 ]), $a([ 2, 8 ]), $a([ 1, 8 ]), $a([ 9, 1 ]), $a([ 9, 2 ]), $a([ 9, 3 ]), $a([ 9, 4 ]), $a([ 9, 5 ]) ]); - for (var _JU = 0, _JV = _JT.length; _JU < _JV; _JU++) { - $aload($get(_JT, _JU)); - $1.y = $k[--$j]; - $1.x = $k[--$j]; - $k[$j++] = $a([ $1.x, $1.y ]); - $k[$j++] = $a([ -$1.x, $1.y ]); - $k[$j++] = $a([ -$1.x, -$1.y ]); - $k[$j++] = $a([ $1.x, -$1.y ]); - } - $astore($a(176)); - $1.metadatamap = $k[--$j]; - $1.palettemap1 = $a([ $a([ 4, 1 ]), $a([ 4, 2 ]), $a([ 5, 1 ]), $a([ 5, 2 ]), $a([ 2, 4 ]), $a([ 2, 5 ]), $a([ 1, 4 ]), $a([ 1, 5 ]), $a([ -2, 1 ]), $a([ -2, 2 ]), $a([ -1, 1 ]), $a([ -1, 2 ]), $a([ -4, 4 ]), $a([ -4, 5 ]), $a([ -5, 4 ]), $a([ -5, 5 ]) ]); - $1.palettemap2 = $a([ $a([ -4, -5 ]), $a([ -4, -4 ]), $a([ -5, -5 ]), $a([ -5, -4 ]), $a([ -2, -2 ]), $a([ -2, -1 ]), $a([ -1, -2 ]), $a([ -1, -1 ]), $a([ 2, -5 ]), $a([ 2, -4 ]), $a([ 1, -5 ]), $a([ 1, -4 ]), $a([ 4, -2 ]), $a([ 4, -1 ]), $a([ 5, -2 ]), $a([ 5, -1 ]) ]); - } else { - $k[$j++] = Infinity; - for (var _KL = 1; _KL <= 19; _KL += 1) { - $1.i = _KL; - $k[$j++] = $a([ 0, $1.i ]); - $k[$j++] = $a([ 1, $1.i ]); - } - for (var _KQ = 5; _KQ <= 12; _KQ += 1) { - $1.i = _KQ; - $k[$j++] = $a([ 2, $1.i ]); - $k[$j++] = $a([ 3, $1.i ]); - } - $1.metadatamap = $a(); - $k[$j++] = Infinity; - for (var _KW = 5; _KW <= 12; _KW += 1) { - $k[$j++] = Infinity; - $k[$j++] = 4; - $k[$j++] = _KW; - var _KZ = $a(); - $k[$j++] = _KZ; - } - for (var _Ka = 12; _Ka >= 5; _Ka -= 1) { - $k[$j++] = Infinity; - $k[$j++] = 5; - $k[$j++] = _Ka; - var _Kd = $a(); - $k[$j++] = _Kd; - } - for (var _Ke = 5; _Ke <= 12; _Ke += 1) { - $k[$j++] = Infinity; - $k[$j++] = 6; - $k[$j++] = _Ke; - var _Kh = $a(); - $k[$j++] = _Kh; - } - for (var _Ki = 12; _Ki >= 5; _Ki -= 1) { - $k[$j++] = Infinity; - $k[$j++] = 7; - $k[$j++] = _Ki; - var _Kl = $a(); - $k[$j++] = _Kl; - } - $1.palettemap1 = $a(); - $k[$j++] = Infinity; - var _Kn = $1.palettemap1; - for (var _Ko = 0, _Kp = _Kn.length; _Ko < _Kp; _Ko++) { - $k[$j++] = Infinity; - var _Ks = $get(_Kn, _Ko); - $aload(_Ks); - var _Kt = $k[--$j]; - var _Ku = $k[--$j]; - $k[$j++] = -_Ku; - $k[$j++] = -_Kt; - var _Kv = $a(); - $k[$j++] = _Kv; - } - $1.palettemap2 = $a(); - } - var _Kx = $1.metadatamap; - for (var _Ky = 0, _Kz = _Kx.length; _Ky < _Kz; _Ky++) { - var _L0 = $get(_Kx, _Ky); - var _L1 = $get(_L0, 0); - $k[$j++] = _L0; - $k[$j++] = _L1; - if (_L1 < 0) { - var _L3 = $k[--$j]; - var _L4 = $k[--$j]; - $put(_L4, 0, $f($f(_L3 + $1.cols) - 1)); - $k[$j++] = _L4; - } else { - $j--; - } - var _L5 = $k[--$j]; - var _L6 = $get(_L5, 1); - $k[$j++] = _L5; - $k[$j++] = _L6; - if (_L6 < 0) { - var _L8 = $k[--$j]; - var _L9 = $k[--$j]; - $put(_L9, 1, $f($f(_L8 + $1.rows) - 1)); - $k[$j++] = _L9; - } else { - $j--; - } - $j--; - } - var _LA = $1.palettemap1; - for (var _LB = 0, _LC = _LA.length; _LB < _LC; _LB++) { - var _LD = $get(_LA, _LB); - var _LE = $get(_LD, 0); - $k[$j++] = _LD; - $k[$j++] = _LE; - if (_LE < 0) { - var _LG = $k[--$j]; - var _LH = $k[--$j]; - $put(_LH, 0, $f($f(_LG + $1.cols) - 1)); - $k[$j++] = _LH; - } else { - $j--; - } - var _LI = $k[--$j]; - var _LJ = $get(_LI, 1); - $k[$j++] = _LI; - $k[$j++] = _LJ; - if (_LJ < 0) { - var _LL = $k[--$j]; - var _LM = $k[--$j]; - $put(_LM, 1, $f($f(_LL + $1.rows) - 1)); - $k[$j++] = _LM; - } else { - $j--; - } - $j--; - } - var _LN = $1.palettemap2; - for (var _LO = 0, _LP = _LN.length; _LO < _LP; _LO++) { - var _LQ = $get(_LN, _LO); - var _LR = $get(_LQ, 0); - $k[$j++] = _LQ; - $k[$j++] = _LR; - if (_LR < 0) { - var _LT = $k[--$j]; - var _LU = $k[--$j]; - $put(_LU, 0, $f($f(_LT + $1.cols) - 1)); - $k[$j++] = _LU; - } else { - $j--; - } - var _LV = $k[--$j]; - var _LW = $get(_LV, 1); - $k[$j++] = _LV; - $k[$j++] = _LW; - if (_LW < 0) { - var _LY = $k[--$j]; - var _LZ = $k[--$j]; - $put(_LZ, 1, $f($f(_LY + $1.rows) - 1)); - $k[$j++] = _LZ; - } else { - $j--; - } - $j--; - } - for (var _Lc = 0, _Lb = $f($1.nummetamodules - 1); _Lc <= _Lb; _Lc += 1) { - $k[$j++] = $1.pixs; - $aload($get($1.metadatamap, _Lc)); - $1.jmv(); - var _Lg = $k[--$j]; - $put($k[--$j], _Lg, 0); - } - if (!$1.slave) { - var _Lj = $1.colors; - var _Lk = 16; - if (16 > _Lj) { - var _ = _Lj; - _Lj = _Lk; - _Lk = _; - } - for (var _Lm = 0, _Ll = _Lk - 1; _Lm <= _Ll; _Lm += 1) { - $1.i = _Lm; - var _Lp = $get($1.palettelayout, $1.i); - $k[$j++] = _Lp; - $k[$j++] = $1.pixs; - $k[$j++] = _Lp; - $aload($get($1.palettemap1, $1.i)); - $1.jmv(); - var _Lu = $k[--$j]; - var _Lv = $k[--$j]; - $put($k[--$j], _Lu, _Lv); - var _Ly = $k[--$j]; - $k[$j++] = $1.pixs; - $k[$j++] = _Ly; - $aload($get($1.palettemap2, $1.i)); - $1.jmv(); - var _M2 = $k[--$j]; - var _M3 = $k[--$j]; - $put($k[--$j], _M2, _M3); - } - $1.i = 16; - } else { - $1.i = 0; - } - $1.j = $1.nummetamodules; - for (var _M9 = $1.i, _M8 = $1.palettelayout.length - 1; _M9 <= _M8; _M9 += 2) { - $1.i = _M9; - var _MC = $get($1.palettelayout, $1.i); - $k[$j++] = _MC; - $k[$j++] = $1.pixs; - $k[$j++] = _MC; - $aload($get($1.metadatamap, $1.j)); - $1.jmv(); - var _MH = $k[--$j]; - var _MI = $k[--$j]; - $put($k[--$j], _MH, _MI); - var _ML = $k[--$j]; - $k[$j++] = $1.pixs; - $k[$j++] = _ML; - $aload($get($1.metadatamap, $f($1.j + 2))); - $1.jmv(); - var _MP = $k[--$j]; - var _MQ = $k[--$j]; - $put($k[--$j], _MP, _MQ); - var _MU = $get($1.palettelayout, $1.i + 1); - $k[$j++] = _MU; - $k[$j++] = $1.pixs; - $k[$j++] = _MU; - $aload($get($1.metadatamap, $f($1.j + 1))); - $1.jmv(); - var _MZ = $k[--$j]; - var _Ma = $k[--$j]; - $put($k[--$j], _MZ, _Ma); - var _Md = $k[--$j]; - $k[$j++] = $1.pixs; - $k[$j++] = _Md; - $aload($get($1.metadatamap, $f($1.j + 3))); - $1.jmv(); - var _Mh = $k[--$j]; - var _Mi = $k[--$j]; - $put($k[--$j], _Mh, _Mi); - $1.j = $f($1.j + 4); - } - var _NA = $a([ function() { - var _Ml = $k[--$j]; - var _Mm = $k[--$j]; - $k[$j++] = $f(_Mm + _Ml) % $1.colors; - }, function() { - $j--; - var _Mp = $k[--$j]; - $k[$j++] = _Mp % $1.colors; - }, function() { - var _Mq = $k[--$j]; - var _Mr = $k[--$j]; - $k[$j++] = _Mq; - $k[$j++] = _Mr; - $j--; - var _Mt = $k[--$j]; - $k[$j++] = _Mt % $1.colors; - }, function() { - var _Mu = $k[--$j]; - var _Mv = $k[--$j]; - $k[$j++] = (~~(_Mu / 3) + ~~(_Mv / 2)) % $1.colors; - }, function() { - var _Mx = $k[--$j]; - var _My = $k[--$j]; - $k[$j++] = (~~(_Mx / 2) + ~~(_My / 3)) % $1.colors; - }, function() { - var _N0 = $k[--$j]; - var _N2 = $f($k[--$j] + _N0); - $k[$j++] = (~~(_N2 / 2) + ~~(_N2 / 3)) % $1.colors; - }, function() { - var _N4 = $k[--$j]; - var _N5 = $k[--$j]; - $k[$j++] = $f(_N4 * (_N5 * _N5) % 7 + $f(_N4 + _N5 * _N5) * 2 % 19) % $1.colors; - }, function() { - var _N7 = $k[--$j]; - var _N8 = $k[--$j]; - $k[$j++] = $f(_N8 * (_N7 * _N7) % 5 + $f(_N7 * _N7 + _N8 * 2) % 13) % $1.colors; - } ]); - $1.maskfuncs = _NA; - if ($1.mask != -1) { - $1.maskfuncs = $a([ $get($1.maskfuncs, $1.mask) ]); - $1.bestmaskval = $1.mask; - } - $1.masks = $a($1.maskfuncs.length); - for (var _NL = 0, _NK = $1.masks.length - 1; _NL <= _NK; _NL += 1) { - $1.m = _NL; - $1.mask = $a($1.rows * $1.cols); - for (var _NR = 0, _NQ = $f($1.rows - 1); _NR <= _NQ; _NR += 1) { - $1.j = _NR; - for (var _NU = 0, _NT = $f($1.cols - 1); _NU <= _NT; _NU += 1) { - $1.i = _NU; - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.jmv(); - var _NY = $k[--$j]; - if ($get($k[--$j], _NY) == -1) { - $k[$j++] = $1.i; - $k[$j++] = $1.j; - if ($get($1.maskfuncs, $1.m)() === true) { - break; - } - } else { - $k[$j++] = 0; - } - $k[$j++] = $1.mask; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.jmv(); - var _Nj = $k[--$j]; - var _Nk = $k[--$j]; - $put(_Nk, _Nj, $k[--$j]); - } - } - $put($1.masks, $1.m, $1.mask); - } - $1.posx = 0; - $1.posy = 0; - $1.i = 0; - for (;;) { - if ($1.posx == $1.cols) { - break; - } - $k[$j++] = $1.pixs; - $k[$j++] = $1.posx; - $k[$j++] = $1.posy; - $1.jmv(); - var _Nu = $k[--$j]; - if ($get($k[--$j], _Nu) == -1) { - var _O0 = $geti($1.bits, $1.i, $1.databpm); - $k[$j++] = 0; - for (var _O1 = 0, _O2 = _O0.length; _O1 < _O2; _O1++) { - var _O4 = $k[--$j]; - $k[$j++] = $f(_O4 + $f($get(_O0, _O1) - 48)) * 2; - } - var _O5 = $k[--$j]; - $k[$j++] = ~~(_O5 / 2); - $k[$j++] = $1.pixs; - $k[$j++] = $1.posx; - $k[$j++] = $1.posy; - $1.jmv(); - var _O9 = $k[--$j]; - var _OA = $k[--$j]; - $put(_OA, _O9, $k[--$j]); - $1.i = $1.i + $1.databpm; - } - $1.posy = $1.posy + 1; - if ($1.posy == $1.rows) { - $1.posy = 0; - $1.posx = $1.posx + 1; - } - } - $1.evalrle = function() { - $1.scrle = $k[--$j]; - $1.scr1 = 0; - $1.scr3 = 0; - for (var _OL = 0, _OK = $1.scrle.length - 2; _OL <= _OK; _OL += 2) { - $1.j = _OL; - if ($get($1.scrle, $1.j + 1) != -1) { - var _OR = $get($1.scrle, $1.j); - $k[$j++] = _OR; - if (_OR >= 5) { - $1.scr1 = $f($f($k[--$j] - 2) + $1.scr1); - } else { - $j--; - } - if ($1.j >= 4 && $1.j <= $1.scrle.length - 5) { - var _OZ = $geti($1.scrle, $1.j - 4, 10); - $k[$j++] = _OZ; - for (var _Oa = 0, _Ob = _OZ.length; _Oa < _Ob; _Oa++) { - $k[$j++] = $get(_OZ, _Oa) == 1; - } - $j--; - for (var _Od = 0, _Oe = 4; _Od < _Oe; _Od++) { - var _Of = $k[--$j]; - var _Og = $k[--$j]; - $k[$j++] = _Of; - $k[$j++] = _Og; - $j--; - var _Oh = $k[--$j]; - var _Oi = $k[--$j]; - $k[$j++] = $an(_Oi, _Oh); - } - if ($k[--$j]) { - $k[$j++] = Infinity; - var _Ok = $k[--$j]; - var _Ol = $k[--$j]; - $k[$j++] = _Ok; - $aload(_Ol); - var _Om = $k[--$j]; - var _On = $k[--$j]; - var _Oo = $k[--$j]; - var _Op = $k[--$j]; - var _Oq = $k[--$j]; - var _Or = $k[--$j]; - var _Os = $k[--$j]; - var _Ot = $k[--$j]; - var _Ou = $k[--$j]; - $k[$j++] = _Ou; - $k[$j++] = _Ot; - $k[$j++] = _Os; - $k[$j++] = _Or; - $k[$j++] = _Oq; - $k[$j++] = _Op; - $k[$j++] = _Oo; - $k[$j++] = _On; - $k[$j++] = _Om; - if ($eq(_Ou, _Oq) && $eq(_Ou, _Om) && $eq(_Os, _Oo)) { - var _Ov = $k[--$j]; - var _Ow = $k[--$j]; - var _Ox = $k[--$j]; - $1.c4 = _Ox; - $1.c5 = _Ov; - $k[$j++] = _Ox; - $k[$j++] = _Ow; - if ($1.c4 == $1.bi && $1.c5 == $1.yi || ($1.c4 == $1.yi && $1.c5 == $1.bi || ($1.c4 == $1.gi && $1.c5 == $1.mi || $1.c4 == $1.mi && $1.c5 == $1.gi))) { - $1.scr3 = $1.scr3 + 100; - } - } - $cleartomark(); - } else { - $j--; - } - } - } - } - $k[$j++] = $1.scr1; - $k[$j++] = $1.scr3; - }; - $1.evalmask = function() { - $1.sym = $k[--$j]; - $1.n1 = 0; - $1.n2 = 0; - $1.n3 = 0; - var _PI = $1.rows; - var _PJ = $1.cols; - if (_PI < _PJ) { - var _ = _PJ; - _PJ = _PI; - _PI = _; - } - $1.rle = $a($f(_PI * 2 + 2)); - $1.lastpairs = $a($1.cols); - $1.thispairs = $a($1.cols); - for (var _PR = 0, _PQ = $f($1.cols - 1); _PR <= _PQ; _PR += 1) { - $1.i = _PR; - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = -1; - for (var _PX = $1.i, _PY = $1.cols, _PW = $f($1.rows * $1.cols - 1); _PY < 0 ? _PX >= _PW : _PX <= _PW; _PX += _PY) { - var _Pa = $get($1.sym, _PX); - var _Pb = $k[--$j]; - $k[$j++] = _Pb; - $k[$j++] = _Pa; - if ($eq(_Pb, _Pa)) { - $j--; - var _Pc = $k[--$j]; - var _Pd = $k[--$j]; - $k[$j++] = $f(_Pd + 1); - $k[$j++] = _Pc; - } else { - var _Pe = $k[--$j]; - $k[$j++] = 1; - $k[$j++] = _Pe; - } - } - var _Pg = $counttomark() + 2; - $astore($geti($1.rle, 0, _Pg - 2)); - $1.evalrle(); - $1.n3 = $f($k[--$j] + $1.n3); - $1.n1 = $f($k[--$j] + $1.n1); - $j--; - } - for (var _Po = 0, _Pn = $f($1.rows - 1); _Po <= _Pn; _Po += 1) { - $1.i = _Po; - $1.symrow = $geti($1.sym, $1.i * $1.cols, $1.cols); - $k[$j++] = Infinity; - var _Pu = $1.symrow; - $k[$j++] = 0; - $k[$j++] = -1; - for (var _Pv = 0, _Pw = _Pu.length; _Pv < _Pw; _Pv++) { - var _Px = $get(_Pu, _Pv); - var _Py = $k[--$j]; - $k[$j++] = _Py; - $k[$j++] = _Px; - if ($eq(_Py, _Px)) { - $j--; - var _Pz = $k[--$j]; - var _Q0 = $k[--$j]; - $k[$j++] = $f(_Q0 + 1); - $k[$j++] = _Pz; - } else { - var _Q1 = $k[--$j]; - $k[$j++] = 1; - $k[$j++] = _Q1; - } - } - var _Q3 = $counttomark() + 2; - $astore($geti($1.rle, 0, _Q3 - 2)); - $1.evalrle(); - $1.n3 = $f($k[--$j] + $1.n3); - $1.n1 = $f($k[--$j] + $1.n1); - $j--; - var _Q9 = $1.thispairs; - $1.thispairs = $1.lastpairs; - $1.lastpairs = _Q9; - var _QB = $1.symrow; - $k[$j++] = -1; - for (var _QC = 0, _QD = _QB.length; _QC < _QD; _QC++) { - var _QE = $get(_QB, _QC); - var _QF = $k[--$j]; - $k[$j++] = _QE; - $k[$j++] = _QF; - if ($ne(_QE, _QF)) { - $j--; - var _QG = $k[--$j]; - $k[$j++] = -1; - $k[$j++] = _QG; - } - } - $j--; - $astore($1.thispairs); - $j--; - if ($1.i > 0) { - $k[$j++] = Infinity; - $aload($1.lastpairs); - $aload($1.thispairs); - $k[$j++] = $1.n2; - for (var _QN = 0, _QO = $1.cols; _QN < _QO; _QN++) { - var _QP = $k[--$j]; - var _QQ = $k[--$j]; - $k[$j++] = _QP; - $k[$j++] = _QQ; - if (_QQ != -1) { - var _QS = $k[$j - 1 - $f($1.cols + 1)]; - if ($eq($k[--$j], _QS)) { - var _QU = $k[--$j]; - $k[$j++] = $f(_QU + 3); - } - } else { - $j--; - } - } - $1.n2 = $k[--$j]; - $cleartomark(); - } - } - $k[$j++] = $f($f($1.n1 + $1.n2) + $1.n3); - }; - $1.bestscore = 999999999; - for (var _Qb = 0, _Qa = $1.masks.length - 1; _Qb <= _Qa; _Qb += 1) { - $1.m = _Qb; - $1.masksym = $a($1.rows * $1.cols); - for (var _Qi = 0, _Qh = $f($1.rows * $1.cols - 1); _Qi <= _Qh; _Qi += 1) { - $1.i = _Qi; - $put($1.masksym, $1.i, $xo($get($1.pixs, $1.i), $get($get($1.masks, $1.m), $1.i))); - } - if ($1.masks.length != 1) { - $k[$j++] = $1.masksym; - $1.evalmask(); - $1.score = $k[--$j]; - if ($1.score < $1.bestscore) { - $1.bestsym = $1.masksym; - $1.bestmaskval = $1.m; - $1.bestscore = $1.score; - } - } else { - $1.bestsym = $1.masksym; - } - } - $1.pixs = $1.bestsym; - $1.metamask = $1.bestmaskval; - $1.addtometapart = function() { - var _R4 = $k[--$j]; - $puti($1.metapart, $1.p, _R4); - $1.p = _R4.length + $1.p; - }; - $1.addtometabits = function() { - var _R8 = $k[--$j]; - $puti($1.metabits, $1.q, _R8); - $1.q = _R8.length + $1.q; - }; - $1.metapart = $s(40); - $1.metabits = $s($1.nummetabits); - $1.p = 0; - $1.q = 0; - if (!$1.slave) { - $k[$j++] = ~~Math.round(Math.log($1.colors) / Math.log(2)) - 1; - $k[$j++] = 3; - $1.tofixedbits(); - $1.addtometapart(); - $k[$j++] = $geti($1.metapart, 0, $1.p); - $k[$j++] = 2; - $k[$j++] = -1; - $1.ldpc(); - $1.addtometabits(); - $1.p = 0; - $k[$j++] = $1.metass; - $k[$j++] = 1; - $1.tofixedbits(); - $1.addtometapart(); - $k[$j++] = $1.metavf; - $k[$j++] = 2; - $1.tofixedbits(); - $1.addtometapart(); - $k[$j++] = $1.metamask; - $k[$j++] = 3; - $1.tofixedbits(); - $1.addtometapart(); - if ($1.hasslaves) { - $k[$j++] = "1"; - } else { - $k[$j++] = "0"; - } - $1.addtometapart(); - $k[$j++] = $geti($1.metapart, 0, $1.p); - $k[$j++] = 2; - $k[$j++] = -1; - $1.ldpc(); - $1.addtometabits(); - $1.p = 0; - if ($1.metass == 0) { - $k[$j++] = $f($f(~~($f($1.cols - 17) / 4) - $get($a([ 0, 4, 8, 16 ]), $1.metavf)) - 1); - $k[$j++] = $1.metavlen; - $1.tofixedbits(); - $1.addtometapart(); - } else { - $k[$j++] = ~~($f($1.cols - 17) / 4) - 1; - $k[$j++] = ~~($1.metavlen / 2); - $1.tofixedbits(); - $1.addtometapart(); - $k[$j++] = ~~($f($1.rows - 17) / 4) - 1; - $k[$j++] = ~~($1.metavlen / 2); - $1.tofixedbits(); - $1.addtometapart(); - } - $k[$j++] = $1.datawc - 3; - $k[$j++] = ~~($1.metaelen / 2); - $1.tofixedbits(); - $1.addtometapart(); - $k[$j++] = $1.datawr - 4; - $k[$j++] = ~~($1.metaelen / 2); - $1.tofixedbits(); - $1.addtometapart(); - if ($1.hasslaves) { - $k[$j++] = 0; - $k[$j++] = 4; - $1.tofixedbits(); - $1.addtometapart(); - } - $k[$j++] = $geti($1.metapart, 0, $1.p); - $k[$j++] = 2; - $k[$j++] = -1; - $1.ldpc(); - $1.addtometabits(); - $1.p = 0; - } else { - var _Rk = $1.sameshape ? 0 : 1; - $k[$j++] = _Rk; - $k[$j++] = 1; - $1.tofixedbits(); - $1.addtometapart(); - var _Rm = $1.sameecc ? 0 : 1; - $k[$j++] = _Rm; - $k[$j++] = 1; - $1.tofixedbits(); - $1.addtometapart(); - var _Ro = $1.hasslaves ? 1 : 0; - $k[$j++] = _Ro; - $k[$j++] = 1; - $1.tofixedbits(); - $1.addtometapart(); - $k[$j++] = $geti($1.metapart, 0, $1.p); - $k[$j++] = 2; - $k[$j++] = -1; - $1.ldpc(); - $1.addtometabits(); - $1.p = 0; - if (!$1.sameshape) { - $k[$j++] = ~~(($1.diffside - 17) / 4) - 1; - $k[$j++] = 5; - $1.tofixedbits(); - $1.addtometapart(); - } - if ($1.hasslaves) { - $k[$j++] = 0; - $k[$j++] = 3; - $1.tofixedbits(); - $1.addtometapart(); - } - $k[$j++] = $geti($1.metapart, 0, $1.p); - $k[$j++] = 2; - $k[$j++] = -1; - $1.ldpc(); - $1.addtometabits(); - $1.p = 0; - if (!$1.sameecc) { - $k[$j++] = $1.datawc - 3; - $k[$j++] = ~~($1.metaelen / 2); - $1.tofixedbits(); - $1.addtometapart(); - $k[$j++] = $1.datawr - 4; - $k[$j++] = ~~($1.metaelen / 2); - $1.tofixedbits(); - $1.addtometapart(); - } - $k[$j++] = $geti($1.metapart, 0, $1.p); - $k[$j++] = 2; - $k[$j++] = -1; - $1.ldpc(); - $1.addtometabits(); - $1.p = 0; - } - for (var _S9 = $1.q, _S8 = $f($1.nummetabits - 1); _S9 <= _S8; _S9 += 1) { - $put($1.metabits, _S9, 48); - } - $1.i = 0; - $1.j = 0; - if (!$1.slave) { - var _SE = $geti($1.metabits, $1.i, 6); - for (var _SF = 0, _SG = _SE.length; _SF < _SG; _SF++) { - $k[$j++] = $get(_SE, _SF); - if ($1.colors == 4) { - $k[$j++] = $a([ $1.bi, $1.yi ]); - } else { - $k[$j++] = $a([ $1.ki, $1.wi ]); - } - var _SP = $k[--$j]; - var _SR = $get(_SP, $f($k[--$j] - 48)); - $k[$j++] = _SR; - $k[$j++] = $1.pixs; - $aload($get($1.metadatamap, $1.j)); - $1.jmv(); - var _SW = $k[--$j]; - var _SX = $k[--$j]; - $put(_SX, _SW, $k[--$j]); - $1.j = $1.j + 1; - } - $1.i = $1.i + 6; - } - for (var _Se = 0, _Sf = ~~($f($1.nummetabits - $1.i) / $1.metabpm); _Se < _Sf; _Se++) { - var _Sj = $geti($1.metabits, $1.i, $1.metabpm); - $k[$j++] = 0; - for (var _Sk = 0, _Sl = _Sj.length; _Sk < _Sl; _Sk++) { - var _Sn = $k[--$j]; - $k[$j++] = $f(_Sn + $f($get(_Sj, _Sk) - 48)) * 2; - } - var _Sq = $get($1.metacolorindex, ~~($k[--$j] / 2)); - $k[$j++] = _Sq; - $k[$j++] = $1.pixs; - $aload($get($1.metadatamap, $1.j)); - $1.jmv(); - var _Sv = $k[--$j]; - var _Sw = $k[--$j]; - $put(_Sw, _Sv, $k[--$j]); - $1.i = $f($1.i + $1.metabpm); - $1.j = $1.j + 1; - } - var _T8 = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", $1.cols ], [ "pixy", $1.rows ], [ "colormap", $1.palette ], [ "height", $1.rows * 2 / 72 ], [ "width", $1.cols * 2 / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _T8; - if (!$1.dontdraw) { - $0.renmatrix(); - } - }; - $0["gs1-cc"] = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.parse = false; - $1.dontlint = false; - $1.dontdraw = false; - $1.ccversion = "a"; - $1.cccolumns = -1; - $1.lintype = ""; - $1.linwidth = -1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.cccolumns = ~~$1.cccolumns; - $1.linwidth = ~~$1.linwidth; - if ($1.cccolumns == -1) { - $k[$j++] = Infinity; - $k[$j++] = "ean13"; - $k[$j++] = 4; - $k[$j++] = "upca"; - $k[$j++] = 4; - $k[$j++] = "ean8"; - $k[$j++] = 3; - $k[$j++] = "upce"; - $k[$j++] = 2; - $k[$j++] = "gs1-128"; - if ($ne($1.ccversion, "c")) { - $k[$j++] = 4; - } else { - $k[$j++] = ~~(($1.linwidth - 52) / 17); - } - $k[$j++] = "databaromni"; - $k[$j++] = 4; - $k[$j++] = "databarstacked"; - $k[$j++] = 2; - $k[$j++] = "databarstackedomni"; - $k[$j++] = 2; - $k[$j++] = "databartruncated"; - $k[$j++] = 4; - $k[$j++] = "databarlimited"; - $k[$j++] = 3; - $k[$j++] = "databarexpanded"; - $k[$j++] = 4; - $k[$j++] = "databarexpandedstacked"; - $k[$j++] = 4; - $1.cccolumns = $get($d(), $1.lintype); - } - $1.expand = function() { - var _E = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _E; - $k[$j++] = $1.fncvals; - $0.parseinput(); - }; - $1.ais = $a([]); - $1.vals = $a([]); - var _I = $1.barcode; - $k[$j++] = $geti(_I, 1, _I.length - 1); - for (;;) { - var _K = $k[--$j]; - $k[$j++] = _K; - if ($eq(_K, "")) { - break; - } - $search($k[--$j], ")"); - $j--; - var _M = $k[--$j]; - var _N = $k[--$j]; - $k[$j++] = _M; - $k[$j++] = _N; - $j--; - var _O = $k[--$j]; - var _P = $k[--$j]; - $k[$j++] = _O; - $search(_P, "("); - if ($k[--$j]) { - var _R = $k[--$j]; - var _S = $k[--$j]; - $k[$j++] = _R; - $k[$j++] = _S; - $j--; - var _T = $k[--$j]; - var _U = $k[--$j]; - var _V = $k[--$j]; - $k[$j++] = _U; - $k[$j++] = _V; - $k[$j++] = _T; - } else { - var _W = $k[--$j]; - var _X = $k[--$j]; - $k[$j++] = ""; - $k[$j++] = _X; - $k[$j++] = _W; - } - $k[$j++] = Infinity; - $aload($1.ais); - var _a = $k[$j - 1 - ($counttomark() + 2)]; - $k[$j++] = _a; - $1.ais = $a(); - $k[$j++] = Infinity; - $aload($1.vals); - var _e = $k[$j - 1 - ($counttomark() + 1)]; - $k[$j++] = _e; - $1.expand(); - $1.vals = $a(); - $j -= 2; - } - $j--; - if (!$1.dontlint) { - $k[$j++] = $1.ais; - $k[$j++] = $1.vals; - $0.gs1lint(); - $j--; - } - $1.isupper = function() { - var _j = $k[--$j]; - $k[$j++] = _j >= 65 && _j <= 90; - }; - $1.isnum0 = function() { - var _k = $k[--$j]; - $k[$j++] = _k >= 48 && _k <= 57; - }; - $1.isnum1 = function() { - var _l = $k[--$j]; - $k[$j++] = _l >= 49 && _l <= 57; - }; - for (;;) { - if ($1.ais.length >= 1) { - if ($eq($get($1.ais, 0), "10") || $eq($get($1.ais, 0), "11") || $eq($get($1.ais, 0), "17")) { - $k[$j++] = -1; - $k[$j++] = "10"; - break; - } - } - if ($1.ais.length >= 1) { - if ($eq($get($1.ais, 0), "90")) { - $1.v = $get($1.vals, 0); - if ($1.v.length >= 1) { - $k[$j++] = $get($1.v, 0); - $1.isupper(); - if ($k[--$j]) { - $k[$j++] = 0; - $k[$j++] = "11"; - break; - } - } - if ($1.v.length >= 2) { - $k[$j++] = $get($1.v, 0); - $1.isnum1(); - $k[$j++] = $get($1.v, 1); - $1.isupper(); - var _17 = $k[--$j]; - var _18 = $k[--$j]; - if (_18 && _17) { - $k[$j++] = 1; - $k[$j++] = "11"; - break; - } - } - if ($1.v.length >= 3) { - $k[$j++] = $get($1.v, 0); - $1.isnum1(); - $k[$j++] = $get($1.v, 1); - $1.isnum0(); - var _1E = $k[--$j]; - var _1F = $k[--$j]; - $k[$j++] = $an(_1F, _1E); - $k[$j++] = $get($1.v, 2); - $1.isupper(); - var _1I = $k[--$j]; - var _1J = $k[--$j]; - if (_1J && _1I) { - $k[$j++] = 2; - $k[$j++] = "11"; - break; - } - } - if ($1.v.length >= 4) { - $k[$j++] = $get($1.v, 0); - $1.isnum1(); - $k[$j++] = $get($1.v, 1); - $1.isnum0(); - var _1P = $k[--$j]; - var _1Q = $k[--$j]; - $k[$j++] = $an(_1Q, _1P); - $k[$j++] = $get($1.v, 2); - $1.isnum0(); - var _1T = $k[--$j]; - var _1U = $k[--$j]; - $k[$j++] = $an(_1U, _1T); - $k[$j++] = $get($1.v, 3); - $1.isupper(); - var _1X = $k[--$j]; - var _1Y = $k[--$j]; - if (_1Y && _1X) { - $k[$j++] = 3; - $k[$j++] = "11"; - break; - } - } - } - } - $k[$j++] = -1; - $k[$j++] = "0"; - break; - } - $1.method = $k[--$j]; - $1.npre = $k[--$j]; - $1.fnc1 = -1; - $1.lnumeric = -2; - $1.lalphanumeric = -3; - $1.liso646 = -4; - $1.tobin = function() { - var _1c = $s($k[--$j]); - $k[$j++] = _1c; - for (var _1e = 0, _1d = _1c.length - 1; _1e <= _1d; _1e += 1) { - var _1f = $k[--$j]; - $put(_1f, _1e, 48); - $k[$j++] = _1f; - } - var _1g = $k[--$j]; - var _1j = $cvrs($s(_1g.length), $k[--$j], 2); - $puti(_1g, _1g.length - _1j.length, _1j); - $k[$j++] = _1g; - }; - $k[$j++] = Infinity; - for (var _1k = 65; _1k <= 90; _1k += 1) { - $k[$j++] = _1k; - $k[$j++] = _1k - 65; - $k[$j++] = 5; - $1.tobin(); - } - for (var _1l = 48; _1l <= 57; _1l += 1) { - $k[$j++] = _1l; - $k[$j++] = _1l + 4; - $k[$j++] = 6; - $1.tobin(); - } - $k[$j++] = $1.fnc1; - $k[$j++] = "11111"; - $1.alpha = $d(); - $k[$j++] = Infinity; - for (var _1o = 0; _1o <= 119; _1o += 1) { - var _1q = $strcpy($s(2), "00"); - var _1s = $cvrs($s(2), _1o, 11); - $puti(_1q, 2 - _1s.length, _1s); - $k[$j++] = _1o; - $k[$j++] = _1q; - if ($get(_1q, 0) == 65) { - var _1u = $k[--$j]; - $put(_1u, 0, 94); - $k[$j++] = _1u; - } - var _1v = $k[--$j]; - $k[$j++] = _1v; - if ($get(_1v, 1) == 65) { - var _1x = $k[--$j]; - $put(_1x, 1, 94); - $k[$j++] = _1x; - } - var _1y = $k[--$j]; - var _21 = $strcpy($s(7), "0000000"); - var _23 = $cvrs($s(7), $f($k[--$j] + 8), 2); - $puti(_21, 7 - _23.length, _23); - $k[$j++] = _1y; - $k[$j++] = _21; - } - $k[$j++] = $1.lalphanumeric; - $k[$j++] = "0000"; - $1.numeric = $d(); - $k[$j++] = Infinity; - for (var _26 = 48; _26 <= 57; _26 += 1) { - $k[$j++] = _26; - $k[$j++] = _26 - 43; - $k[$j++] = 5; - $1.tobin(); - } - $k[$j++] = $1.fnc1; - $k[$j++] = "01111"; - for (var _28 = 65; _28 <= 90; _28 += 1) { - $k[$j++] = _28; - $k[$j++] = _28 - 33; - $k[$j++] = 6; - $1.tobin(); - } - $k[$j++] = 42; - $k[$j++] = "111010"; - for (var _29 = 44; _29 <= 47; _29 += 1) { - $k[$j++] = _29; - $k[$j++] = _29 + 15; - $k[$j++] = 6; - $1.tobin(); - } - $k[$j++] = $1.lnumeric; - $k[$j++] = "000"; - $k[$j++] = $1.liso646; - $k[$j++] = "00100"; - $1.alphanumeric = $d(); - $k[$j++] = Infinity; - for (var _2D = 48; _2D <= 57; _2D += 1) { - $k[$j++] = _2D; - $k[$j++] = _2D - 43; - $k[$j++] = 5; - $1.tobin(); - } - $k[$j++] = $1.fnc1; - $k[$j++] = "01111"; - for (var _2F = 65; _2F <= 90; _2F += 1) { - $k[$j++] = _2F; - $k[$j++] = _2F - 1; - $k[$j++] = 7; - $1.tobin(); - } - for (var _2G = 97; _2G <= 122; _2G += 1) { - $k[$j++] = _2G; - $k[$j++] = _2G - 7; - $k[$j++] = 7; - $1.tobin(); - } - $k[$j++] = 33; - $k[$j++] = "11101000"; - $k[$j++] = 34; - $k[$j++] = "11101001"; - for (var _2H = 37; _2H <= 47; _2H += 1) { - $k[$j++] = _2H; - $k[$j++] = _2H + 197; - $k[$j++] = 8; - $1.tobin(); - } - for (var _2I = 58; _2I <= 63; _2I += 1) { - $k[$j++] = _2I; - $k[$j++] = _2I + 187; - $k[$j++] = 8; - $1.tobin(); - } - $k[$j++] = 95; - $k[$j++] = "11111011"; - $k[$j++] = 32; - $k[$j++] = "11111100"; - $k[$j++] = $1.lnumeric; - $k[$j++] = "000"; - $k[$j++] = $1.lalphanumeric; - $k[$j++] = "00100"; - $1.iso646 = $d(); - if ($eq($1.method, "10")) { - if ($eq($get($1.ais, 0), "11") || $eq($get($1.ais, 0), "17")) { - var _2S = $get($1.vals, 0); - var _2X = $strcpy($s(16), "0000000000000000"); - var _2Z = $cvrs($s(16), ~~$z($geti(_2S, 0, 2)) * 384 + ((~~$z($geti(_2S, 2, 2)) - 1) * 32 + ~~$z($geti(_2S, 4, 2))), 2); - $puti(_2X, 16 - _2Z.length, _2Z); - $k[$j++] = _2X; - $k[$j++] = Infinity; - var _2a = $k[--$j]; - var _2b = $k[--$j]; - $k[$j++] = _2a; - $k[$j++] = 1; - $k[$j++] = 0; - $forall(_2b, function() { - var _2c = $k[--$j]; - $k[$j++] = $f(_2c - 48); - }); - var _2f = $eq($get($1.ais, 0), "11") ? 0 : 1; - $k[$j++] = _2f; - $1.cdf = $a(); - $1.ais = $geti($1.ais, 1, $1.ais.length - 1); - $1.vals = $geti($1.vals, 1, $1.vals.length - 1); - } else { - $1.cdf = $a([ 1, 0, 1, 1 ]); - } - if ($1.ais.length != 0) { - if ($eq($get($1.ais, 0), "10")) { - $k[$j++] = Infinity; - $forall($get($1.vals, 0)); - $1.gpf = $a(); - if ($1.ais.length > 1) { - $k[$j++] = Infinity; - $aload($1.gpf); - $k[$j++] = $1.fnc1; - $1.gpf = $a(); - } - $1.ais = $geti($1.ais, 1, $1.ais.length - 1); - $1.vals = $geti($1.vals, 1, $1.vals.length - 1); - } else { - $1.gpf = $a([ $1.fnc1 ]); - } - } else { - $k[$j++] = Infinity; - $aload($1.cdf); - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $1.cdf = $a(); - $1.gpf = $a([]); - } - $1.mode = "numeric"; - } - if ($eq($1.method, "11")) { - $1.cdf = $a([ 1, 1 ]); - $1.ai90 = $get($1.vals, 0); - if ($f($1.npre + 1) != $1.ai90.length) { - $k[$j++] = $geti($1.ai90, $f($1.npre + 1), $f($f($1.ai90.length - $1.npre) - 1)); - } else { - $k[$j++] = ""; - } - $1.ai90rem = $k[--$j]; - $k[$j++] = "nalpha"; - $k[$j++] = 0; - $forall($1.ai90rem, function() { - var _3M = $k[--$j]; - if (_3M >= 65 && _3M <= 90) { - var _3N = $k[--$j]; - $k[$j++] = $f(_3N + 1); - } - }); - var _3O = $k[--$j]; - $1[$k[--$j]] = _3O; - $k[$j++] = "nnums"; - $k[$j++] = 0; - $forall($1.ai90rem, function() { - var _3R = $k[--$j]; - if (_3R >= 48 && _3R <= 57) { - var _3S = $k[--$j]; - $k[$j++] = $f(_3S + 1); - } - }); - var _3T = $k[--$j]; - $1[$k[--$j]] = _3T; - $k[$j++] = "mode"; - if ($gt($1.nalpha, $1.nnums)) { - $k[$j++] = "alpha"; - } else { - if ($1.nalpha == 0) { - $k[$j++] = "numeric"; - } else { - $k[$j++] = "alphanumeric"; - } - } - var _3Y = $k[--$j]; - $1[$k[--$j]] = _3Y; - if ($f($1.nalpha + $1.nnums) != $1.ai90rem.length) { - $1.mode = "alphanumeric"; - } - $k[$j++] = Infinity; - $aload($1.cdf); - if ($eq($1.mode, "alphanumeric")) { - $k[$j++] = 0; - } - if ($eq($1.mode, "numeric")) { - $k[$j++] = 1; - $k[$j++] = 0; - } - if ($eq($1.mode, "alpha")) { - $k[$j++] = 1; - $k[$j++] = 1; - } - $1.cdf = $a(); - $k[$j++] = "ais1"; - if ($1.ais.length > 1) { - $k[$j++] = $get($1.ais, 1); - } else { - $k[$j++] = -1; - } - var _3l = $k[--$j]; - $1[$k[--$j]] = _3l; - $k[$j++] = "vals1"; - if ($1.vals.length > 1) { - $k[$j++] = $get($1.vals, 1); - } else { - $k[$j++] = -1; - } - var _3q = $k[--$j]; - $1[$k[--$j]] = _3q; - if ($eq($1.ais1, "21") || $eq($1.ais1, "8004")) { - $k[$j++] = Infinity; - $aload($1.cdf); - if ($eq($1.ais1, "21")) { - $k[$j++] = 1; - $k[$j++] = 0; - } else { - $k[$j++] = 1; - $k[$j++] = 1; - } - $1.cdf = $a(); - } else { - $k[$j++] = Infinity; - $aload($1.cdf); - $k[$j++] = 0; - $1.cdf = $a(); - } - $k[$j++] = "nval"; - if ($1.npre != 0) { - $k[$j++] = ~~$z($geti($1.ai90, 0, $1.npre)); - } else { - $k[$j++] = 0; - } - var _43 = $k[--$j]; - $1[$k[--$j]] = _43; - $search("BDHIJKLNPQRSTVXZ", $geti($1.ai90, $1.npre, 1)); - if ($k[--$j]) { - var _49 = $k[--$j]; - var _4A = $k[--$j]; - $k[$j++] = _49.length; - $k[$j++] = _4A; - $j--; - var _4B = $k[--$j]; - var _4C = $k[--$j]; - $k[$j++] = _4B; - $k[$j++] = _4C; - $j--; - $1.aval = $k[--$j]; - } else { - $j--; - $1.aval = -1; - } - if ($1.nval < 31 && $1.aval != -1) { - var _4H = $strcpy($s(5), "00000"); - var _4K = $cvrs($s(5), $1.nval, 2); - $puti(_4H, 5 - _4K.length, _4K); - $k[$j++] = Infinity; - var _4M = _4H; - $forall(_4M, function() { - var _4N = $k[--$j]; - $k[$j++] = $f(_4N - 48); - }); - $1.nbits = $a(); - var _4Q = $strcpy($s(4), "0000"); - var _4T = $cvrs($s(4), $1.aval, 2); - $puti(_4Q, 4 - _4T.length, _4T); - $k[$j++] = Infinity; - var _4V = _4Q; - $forall(_4V, function() { - var _4W = $k[--$j]; - $k[$j++] = $f(_4W - 48); - }); - $1.abits = $a(); - $k[$j++] = Infinity; - $aload($1.cdf); - $aload($1.nbits); - $aload($1.abits); - $1.cdf = $a(); - } else { - var _4d = $strcpy($s(10), "0000000000"); - var _4g = $cvrs($s(10), $1.nval, 2); - $puti(_4d, 10 - _4g.length, _4g); - $k[$j++] = Infinity; - var _4i = _4d; - $forall(_4i, function() { - var _4j = $k[--$j]; - $k[$j++] = $f(_4j - 48); - }); - $1.nbits = $a(); - var _4m = $strcpy($s(5), "00000"); - var _4r = $cvrs($s(5), $f($get($1.ai90, $1.npre) - 65), 2); - $puti(_4m, 5 - _4r.length, _4r); - $k[$j++] = Infinity; - var _4t = _4m; - $forall(_4t, function() { - var _4u = $k[--$j]; - $k[$j++] = $f(_4u - 48); - }); - $1.abits = $a(); - $k[$j++] = Infinity; - $aload($1.cdf); - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $aload($1.nbits); - $aload($1.abits); - $1.cdf = $a(); - } - if ($ne($1.mode, "alpha")) { - $k[$j++] = Infinity; - $forall($1.ai90rem); - if ($1.ais.length > 1) { - $k[$j++] = $1.fnc1; - } - $1.gpf = $a(); - } else { - $k[$j++] = Infinity; - $forall($1.ai90rem); - if ($1.ais.length > 1) { - $k[$j++] = $1.fnc1; - } - $1.in = $a(); - $1.out = $a($1.in.length * 6); - $1.j = 0; - for (var _5D = 0, _5C = $1.in.length - 1; _5D <= _5C; _5D += 1) { - var _5H = $get($1.alpha, $get($1.in, _5D)); - $k[$j++] = _5H; - $k[$j++] = Infinity; - var _5J = _5H; - $forall(_5J, function() { - var _5K = $k[--$j]; - $k[$j++] = $f(_5K - 48); - }); - $puti($1.out, $1.j, $a()); - $1.j = $k[--$j].length + $1.j; - } - $k[$j++] = Infinity; - $aload($1.cdf); - $aload($geti($1.out, 0, $1.j)); - $1.cdf = $a(); - $1.gpf = $a([]); - if ($1.ais.length > 1) { - $1.mode = "numeric"; - } - } - $1.ais = $geti($1.ais, 1, $1.ais.length - 1); - $1.vals = $geti($1.vals, 1, $1.vals.length - 1); - if ($1.ais.length != 0) { - if ($eq($1.ais1, "21") || $eq($1.ais1, "8004")) { - $k[$j++] = Infinity; - $aload($1.gpf); - $forall($1.vals1); - $1.gpf = $a(); - $1.ais = $geti($1.ais, 1, $1.ais.length - 1); - $1.vals = $geti($1.vals, 1, $1.vals.length - 1); - if ($1.ais.length != 0) { - $k[$j++] = Infinity; - $aload($1.gpf); - $k[$j++] = $1.fnc1; - $1.gpf = $a(); - } - } - } - } - if ($eq($1.method, "0")) { - $1.cdf = $a([ 0 ]); - $1.gpf = $a([]); - $1.mode = "numeric"; - } - $1.aifixed = new Map(); - $k[$j++] = Infinity; - for (var _5w = 0; _5w <= 4; _5w += 1) { - $k[$j++] = _5w; - } - var _5x = $a(); - for (var _5y = 0, _5z = _5x.length; _5y < _5z; _5y++) { - var _62 = $strcpy($s(2), "00"); - $put(_62, 1, $f($get(_5x, _5y) + 48)); - $put($1.aifixed, _62, _62); - } - $k[$j++] = Infinity; - for (var _64 = 11; _64 <= 20; _64 += 1) { - $k[$j++] = _64; - } - $k[$j++] = 23; - for (var _65 = 31; _65 <= 36; _65 += 1) { - $k[$j++] = _65; - } - $k[$j++] = 41; - var _66 = $a(); - for (var _67 = 0, _68 = _66.length; _67 < _68; _67++) { - var _6B = $cvrs($s(2), $get(_66, _67), 10); - $put($1.aifixed, _6B, _6B); - } - for (var _6F = 0, _6E = $1.ais.length - 1; _6F <= _6E; _6F += 1) { - $1.i = _6F; - $1.ai = $get($1.ais, $1.i); - $1.val = $get($1.vals, $1.i); - var _6P = $a($1.gpf.length + $1.ai.length + $1.val.length); - $puti(_6P, 0, $1.gpf); - $k[$j++] = _6P; - $k[$j++] = _6P; - $k[$j++] = $1.gpf.length; - $k[$j++] = Infinity; - var _6U = $1.ai; - $forall(_6U); - var _6V = $a(); - var _6W = $k[--$j]; - $puti($k[--$j], _6W, _6V); - var _6Y = $k[--$j]; - $k[$j++] = _6Y; - $k[$j++] = _6Y; - $k[$j++] = $1.gpf.length + $1.ai.length; - $k[$j++] = Infinity; - var _6d = $1.val; - $forall(_6d); - var _6e = $a(); - var _6f = $k[--$j]; - $puti($k[--$j], _6f, _6e); - $1.gpf = $k[--$j]; - var _6n = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; - if ($1.i != $1.ais.length - 1 && !_6n) { - var _6p = $a($1.gpf.length + 1); - $puti(_6p, 0, $1.gpf); - $put(_6p, $1.gpf.length, $1.fnc1); - $1.gpf = _6p; - } - } - $1.rembits = function() { - $1.used = $k[--$j]; - if ($ne($1.ccversion, "c")) { - var _73 = new Map([ [ "a", $a([ $a([ 167, 138, 118, 108, 88, 78, 59 ]), $a([ 167, 138, 118, 98, 78 ]), $a([ 197, 167, 138, 108, 78 ]) ]) ], [ "b", $a([ $a([ 336, 296, 256, 208, 160, 104, 56 ]), $a([ 768, 648, 536, 416, 304, 208, 152, 112, 72, 32 ]), $a([ 1184, 1016, 840, 672, 496, 352, 264, 208, 152, 96, 56 ]) ]) ] ]); - $1.bitcaps = $get($get(_73, $1.ccversion), $f($1.cccolumns - 2)); - $k[$j++] = -1; - $forall($1.bitcaps, function() { - var _79 = $k[--$j]; - $k[$j++] = _79; - if ($ge(_79, $1.used)) { - var _7B = $k[--$j]; - var _7C = $k[--$j]; - $k[$j++] = _7B; - $k[$j++] = _7C; - } - $j--; - }); - var _7D = $k[--$j]; - $k[$j++] = _7D; - if (_7D != -1) { - var _7F = $k[--$j]; - $k[$j++] = $f(_7F - $1.used); - } - } else { - var _7G = new Map([ [ "c", -1 ] ]); - var _7I = $get(_7G, $1.ccversion); - var _7K = ~~Math.ceil($1.used / 8); - $1.m = ~~(_7K / 6) * 5 + _7K % 6; - if ($1.m <= 40) { - $k[$j++] = 8; - } - if ($1.m >= 41 && $1.m <= 160) { - $k[$j++] = 16; - } - if ($1.m >= 161 && $1.m <= 320) { - $k[$j++] = 32; - } - if ($1.m >= 321 && $1.m <= 833) { - $k[$j++] = 64; - } - if ($1.m >= 834) { - $k[$j++] = 32; - } - $1.eccws = $k[--$j]; - $1.m = $f($f($1.m + $1.eccws) + 3); - for (;;) { - if (~~Math.ceil($1.m / $1.cccolumns) <= 30 || $1.cccolumns >= 30) { - break; - } - $1.cccolumns = $f($1.cccolumns + 1); - } - $1.r = ~~Math.ceil($1.m / $1.cccolumns); - var _7f = $f($f($1.cccolumns * $1.r - $1.eccws) - 3); - $1.tgt = $f(~~(_7f / 5) * 6 + _7f % 5) * 8; - if ($1.used <= 8304) { - $k[$j++] = $f($1.tgt - $1.used); - } else { - $k[$j++] = -1; - } - } - var _7j = $k[--$j]; - $k[$j++] = _7j; - if (_7j == -1) { - $j--; - if ($eq($1.ccversion, "a")) { - $1.ccversion = "b"; - } else { - if ($eq($1.ccversion, "b") && $eq($1.lintype, "gs1-128")) { - $1.ccversion = "c"; - $1.cccolumns = ~~(($1.linwidth - 52) / 17); - } else { - $1.ccversion = -1; - } - } - $k[$j++] = $1.used; - $1.rembits(); - } - }; - $1.encode = function() { - var _7p = $k[--$j]; - $k[$j++] = _7p; - if ($ne(_7p, "raw")) { - var _7q = $k[--$j]; - var _7s = $get(_7q, $k[--$j]); - $k[$j++] = _7s; - } else { - $j--; - } - $k[$j++] = Infinity; - var _7t = $k[--$j]; - var _7u = $k[--$j]; - $k[$j++] = _7t; - $forall(_7u, function() { - var _7v = $k[--$j]; - $k[$j++] = $f(_7v - 48); - }); - var _7w = $a(); - $puti($1.gpfenc, $1.j, _7w); - $1.j = _7w.length + $1.j; - }; - $k[$j++] = Infinity; - for (var _81 = 0, _82 = $1.gpf.length; _81 < _82; _81++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $k[$j++] = -1; - $1.numericruns = $a(); - $k[$j++] = Infinity; - for (var _85 = 0, _86 = $1.gpf.length; _85 < _86; _85++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.alphanumericruns = $a(); - $k[$j++] = Infinity; - for (var _89 = 0, _8A = $1.gpf.length; _89 < _8A; _89++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextiso646only = $a(); - for (var _8D = $1.gpf.length - 1; _8D >= 0; _8D -= 1) { - $1.i = _8D; - var _8I = $strcpy($s(2), "00"); - var _8L = $get($1.gpf, $1.i); - $k[$j++] = $get($1.gpf, $1.i); - $k[$j++] = _8I; - $k[$j++] = _8I; - $k[$j++] = 0; - $k[$j++] = _8L; - if (_8L == $1.fnc1) { - $j--; - $k[$j++] = 94; - } - var _8N = $k[--$j]; - var _8O = $k[--$j]; - $put($k[--$j], _8O, _8N); - if ($1.i < $1.gpf.length - 1) { - var _8S = $k[--$j]; - var _8V = $get($1.gpf, $1.i + 1); - $k[$j++] = _8S; - $k[$j++] = _8S; - $k[$j++] = 1; - $k[$j++] = _8V; - if (_8V == $1.fnc1) { - $j--; - $k[$j++] = 94; - } - var _8X = $k[--$j]; - var _8Y = $k[--$j]; - $put($k[--$j], _8Y, _8X); - } - var _8c = $get($1.numeric, $k[--$j]) !== undefined; - if (_8c) { - $put($1.numericruns, $1.i, $f($get($1.numericruns, $1.i + 2) + 2)); - } else { - $put($1.numericruns, $1.i, 0); - } - var _8k = $k[--$j]; - var _8m = $get($1.alphanumeric, _8k) !== undefined; - $k[$j++] = _8k; - if (_8m) { - $put($1.alphanumericruns, $1.i, $f($get($1.alphanumericruns, $1.i + 1) + 1)); - } else { - $put($1.alphanumericruns, $1.i, 0); - } - var _8u = $k[--$j]; - var _8w = $get($1.iso646, _8u) !== undefined; - var _8y = $get($1.alphanumeric, _8u) !== undefined; - if (_8w && !_8y) { - $put($1.nextiso646only, $1.i, 0); - } else { - $put($1.nextiso646only, $1.i, $f($get($1.nextiso646only, $1.i + 1) + 1)); - } - } - $1.gpfenc = $a(8304); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.gpf.length) { - break; - } - for (;;) { - if ($eq($1.mode, "numeric")) { - if ($1.i <= $1.gpf.length - 2) { - var _9C = $s(2); - var _9F = $get($1.gpf, $1.i); - $k[$j++] = _9C; - $k[$j++] = _9C; - $k[$j++] = 0; - $k[$j++] = _9F; - if (_9F == $1.fnc1) { - $j--; - $k[$j++] = 94; - } - var _9H = $k[--$j]; - var _9I = $k[--$j]; - $put($k[--$j], _9I, _9H); - var _9K = $k[--$j]; - var _9N = $get($1.gpf, $1.i + 1); - $k[$j++] = _9K; - $k[$j++] = _9K; - $k[$j++] = 1; - $k[$j++] = _9N; - if (_9N == $1.fnc1) { - $j--; - $k[$j++] = 94; - } - var _9P = $k[--$j]; - var _9Q = $k[--$j]; - $put($k[--$j], _9Q, _9P); - var _9S = $k[--$j]; - var _9U = $get($1.numeric, _9S) !== undefined; - $k[$j++] = _9S; - if (_9U) { - $k[$j++] = $1.numeric; - $1.encode(); - $1.i = $1.i + 2; - break; - } - $j--; - $k[$j++] = $1.lalphanumeric; - $k[$j++] = $1.numeric; - $1.encode(); - $1.mode = "alphanumeric"; - break; - } else { - var _9b = $get($1.gpf, $1.i); - if (_9b < 48 || _9b > 57) { - $k[$j++] = $1.lalphanumeric; - $k[$j++] = $1.numeric; - $1.encode(); - $1.mode = "alphanumeric"; - break; - } - $k[$j++] = "rem"; - $k[$j++] = $1.cdf.length + $1.j; - $1.rembits(); - var _9g = $k[--$j]; - $1[$k[--$j]] = _9g; - if ($1.rem >= 4 && $1.rem <= 6) { - var _9n = $geti($strcpy($s(6), "000000"), 0, $1.rem); - var _9s = $cvrs($s(4), $f($get($1.gpf, $1.i) - 47), 2); - $puti(_9n, 4 - _9s.length, _9s); - $k[$j++] = _9n; - $k[$j++] = "raw"; - $1.encode(); - $1.i = $1.i + 1; - break; - } else { - var _9u = $s(2); - $put(_9u, 0, $get($1.gpf, $1.i)); - $put(_9u, 1, 94); - $k[$j++] = _9u; - $k[$j++] = $1.numeric; - $1.encode(); - $1.i = $1.i + 1; - break; - } - } - } - if ($eq($1.mode, "alphanumeric")) { - if ($get($1.gpf, $1.i) == $1.fnc1) { - $k[$j++] = $1.fnc1; - $k[$j++] = $1.alphanumeric; - $1.encode(); - $1.mode = "numeric"; - $1.i = $1.i + 1; - break; - } - var _AA = $get($1.gpf, $1.i); - var _AC = $get($1.iso646, _AA) !== undefined; - var _AE = $get($1.alphanumeric, _AA) !== undefined; - if (_AC && !_AE) { - $k[$j++] = $1.liso646; - $k[$j++] = $1.alphanumeric; - $1.encode(); - $1.mode = "iso646"; - break; - } - if ($get($1.numericruns, $1.i) >= 6) { - $k[$j++] = $1.lnumeric; - $k[$j++] = $1.alphanumeric; - $1.encode(); - $1.mode = "numeric"; - break; - } - var _AO = $get($1.numericruns, $1.i); - if (_AO >= 4 && $f(_AO + $1.i) == $1.gpf.length) { - $k[$j++] = $1.lnumeric; - $k[$j++] = $1.alphanumeric; - $1.encode(); - $1.mode = "numeric"; - break; - } - $k[$j++] = $get($1.gpf, $1.i); - $k[$j++] = $1.alphanumeric; - $1.encode(); - $1.i = $1.i + 1; + var _8C = $k[--$j]; //#21565 + $k[$j++] = $lt($get($1.nextXterm, _8C), $get($1.nextNonX, _8C)); //#21565 + }; //#21565 + $1.A = 0; //#21567 + $1.C = 1; //#21567 + $1.T = 2; //#21567 + $1.X = 3; //#21567 + $1.D = 4; //#21567 + $1.B = 5; //#21567 + $1.lookup = function() { + $1.ac = 1; //#21570 + $1.cc = 2; //#21570 + $1.tc = 2; //#21570 + $1.xc = 2; //#21570 + $1.bc = 3; //#21570 + if ($1.mode == $1.A) { //#21571 + $1.ac = 0; //#21571 + $1.cc = 1; //#21571 + $1.tc = 1; //#21571 + $1.xc = 1; //#21571 + $1.bc = 2; //#21571 + } //#21571 + if ($1.mode == $1.C) { //#21572 + $1.cc = 0; //#21572 + } //#21572 + if ($1.mode == $1.T) { //#21573 + $1.tc = 0; //#21573 + } //#21573 + if ($1.mode == $1.X) { //#21574 + $1.xc = 0; //#21574 + } //#21574 + if ($1.mode == $1.B) { //#21575 + $1.bc = 0; //#21575 + } //#21575 + for (var _8R = 0, _8S = 1; _8R < _8S; _8R++) { //#21603 + $1.k = 0; //#21577 + for (;;) { //#21602 + if (($1.i + $1.k) == $1.msglen) { //#21584 + var _8a = $a([$1.ac, $1.cc, $1.tc, $1.xc]); //#21579 + $k[$j++] = true; //#21579 + for (var _8b = 0, _8c = _8a.length; _8b < _8c; _8b++) { //#21579 + var _8f = $k[--$j]; //#21579 + $k[$j++] = _8f && ($1.bc <= Math.ceil($get(_8a, _8b))); //#21579 + } //#21579 + if ($k[--$j]) { //#21579 + $k[$j++] = $1.B; //#21579 + break; //#21579 + } //#21579 + var _8m = $a([$1.cc, $1.tc, $1.xc, $1.bc]); //#21580 + $k[$j++] = true; //#21580 + for (var _8n = 0, _8o = _8m.length; _8n < _8o; _8n++) { //#21580 + var _8r = $k[--$j]; //#21580 + $k[$j++] = _8r && ($1.ac <= Math.ceil($get(_8m, _8n))); //#21580 + } //#21580 + if ($k[--$j]) { //#21580 + $k[$j++] = $1.A; //#21580 + break; //#21580 + } //#21580 + var _8w = $a([$1.tc, $1.xc]); //#21581 + $k[$j++] = true; //#21581 + for (var _8x = 0, _8y = _8w.length; _8x < _8y; _8x++) { //#21581 + var _91 = $k[--$j]; //#21581 + $k[$j++] = _91 && (Math.ceil($1.cc) <= Math.ceil($get(_8w, _8x))); //#21581 + } //#21581 + if ($k[--$j]) { //#21581 + $k[$j++] = $1.C; //#21581 + break; //#21581 + } //#21581 + var _95 = $a([$1.xc]); //#21582 + $k[$j++] = true; //#21582 + for (var _96 = 0, _97 = _95.length; _96 < _97; _96++) { //#21582 + var _9A = $k[--$j]; //#21582 + $k[$j++] = _9A && (Math.ceil($1.tc) <= Math.ceil($get(_95, _96))); //#21582 + } //#21582 + if ($k[--$j]) { //#21582 + $k[$j++] = $1.T; //#21582 + break; //#21582 + } //#21582 + $k[$j++] = $1.X; //#21583 + break; //#21583 + } //#21583 + $1.char = $get($1.msg, $1.i + $1.k); //#21585 + $k[$j++] = 'ac'; //#21586 + $k[$j++] = $1.ac; //#21586 + $1.isD(); //#21586 + if ($k[--$j]) { //#21586 + var _9K = $k[--$j]; //#21586 + $k[$j++] = $f(_9K + (1 / 2)); //#21586 + } else { //#21586 + $1.isEA(); //#21586 + if ($k[--$j]) { //#21586 + var _9M = $k[--$j]; //#21586 + $k[$j++] = Math.ceil(_9M) + 2; //#21586 + } else { //#21586 + var _9N = $k[--$j]; //#21586 + $k[$j++] = Math.ceil(_9N) + 1; //#21586 + } //#21586 + } //#21586 + var _9O = $k[--$j]; //#21586 + $1[$k[--$j]] = _9O; //#21586 + $k[$j++] = 'cc'; //#21587 + $k[$j++] = $1.cc; //#21587 + $1.isC(); //#21587 + if ($k[--$j]) { //#21587 + var _9S = $k[--$j]; //#21587 + $k[$j++] = $f(_9S + 0.66666667); //#21587 + } else { //#21587 + $1.isEA(); //#21587 + if ($k[--$j]) { //#21587 + var _9U = $k[--$j]; //#21587 + $k[$j++] = $f(_9U + 2.66666667); //#21587 + } else { //#21587 + var _9V = $k[--$j]; //#21587 + $k[$j++] = $f(_9V + 1.33333334); //#21587 + } //#21587 + } //#21587 + var _9W = $k[--$j]; //#21587 + $1[$k[--$j]] = _9W; //#21587 + $k[$j++] = 'tc'; //#21588 + $k[$j++] = $1.tc; //#21588 + $1.isT(); //#21588 + if ($k[--$j]) { //#21588 + var _9a = $k[--$j]; //#21588 + $k[$j++] = $f(_9a + 0.66666667); //#21588 + } else { //#21588 + $1.isEA(); //#21588 + if ($k[--$j]) { //#21588 + var _9c = $k[--$j]; //#21588 + $k[$j++] = $f(_9c + 2.66666667); //#21588 + } else { //#21588 + var _9d = $k[--$j]; //#21588 + $k[$j++] = $f(_9d + 1.33333334); //#21588 + } //#21588 + } //#21588 + var _9e = $k[--$j]; //#21588 + $1[$k[--$j]] = _9e; //#21588 + $k[$j++] = 'xc'; //#21589 + $k[$j++] = $1.xc; //#21589 + $1.isX(); //#21589 + if ($k[--$j]) { //#21589 + var _9i = $k[--$j]; //#21589 + $k[$j++] = $f(_9i + 0.66666667); //#21589 + } else { //#21589 + $1.isEA(); //#21589 + if ($k[--$j]) { //#21589 + var _9k = $k[--$j]; //#21589 + $k[$j++] = $f(_9k + 4.33333334); //#21589 + } else { //#21589 + var _9l = $k[--$j]; //#21589 + $k[$j++] = $f(_9l + 3.33333334); //#21589 + } //#21589 + } //#21589 + var _9m = $k[--$j]; //#21589 + $1[$k[--$j]] = _9m; //#21589 + $k[$j++] = 'bc'; //#21590 + $k[$j++] = $1.bc; //#21590 + $1.isFN(); //#21590 + if ($k[--$j]) { //#21590 + var _9q = $k[--$j]; //#21590 + $k[$j++] = $f(_9q + 3); //#21590 + } else { //#21590 + var _9r = $k[--$j]; //#21590 + $k[$j++] = $f(_9r + 1); //#21590 + } //#21590 + var _9s = $k[--$j]; //#21590 + $1[$k[--$j]] = _9s; //#21590 + if ($1.k >= 3) { //#21600 + var _9z = $a([$1.ac, $1.cc, $1.tc, $1.xc]); //#21592 + $k[$j++] = true; //#21592 + for (var _A0 = 0, _A1 = _9z.length; _A0 < _A1; _A0++) { //#21592 + var _A4 = $k[--$j]; //#21592 + $k[$j++] = _A4 && (($1.bc + 1) <= Math.ceil($get(_9z, _A0))); //#21592 + } //#21592 + if ($k[--$j]) { //#21592 + $k[$j++] = $1.B; //#21592 + break; //#21592 + } //#21592 + var _AB = $a([$1.cc, $1.tc, $1.xc, $1.bc]); //#21593 + $k[$j++] = true; //#21593 + for (var _AC = 0, _AD = _AB.length; _AC < _AD; _AC++) { //#21593 + var _AG = $k[--$j]; //#21593 + $k[$j++] = _AG && (($1.ac + 1) <= Math.ceil($get(_AB, _AC))); //#21593 + } //#21593 + if ($k[--$j]) { //#21593 + $k[$j++] = $1.A; //#21593 + break; //#21593 + } //#21593 + var _AN = $a([$1.ac, $1.cc, $1.xc, $1.bc]); //#21594 + $k[$j++] = true; //#21594 + for (var _AO = 0, _AP = _AN.length; _AO < _AP; _AO++) { //#21594 + var _AS = $k[--$j]; //#21594 + $k[$j++] = _AS && ((Math.ceil($1.tc) + 1) <= Math.ceil($get(_AN, _AO))); //#21594 + } //#21594 + if ($k[--$j]) { //#21594 + $k[$j++] = $1.T; //#21594 + break; //#21594 + } //#21594 + var _AX = $a([$1.ac, $1.tc]); //#21595 + $k[$j++] = true; //#21595 + for (var _AY = 0, _AZ = _AX.length; _AY < _AZ; _AY++) { //#21595 + var _Ac = $k[--$j]; //#21595 + $k[$j++] = _Ac && ((Math.ceil($1.cc) + 1) <= Math.ceil($get(_AX, _AY))); //#21595 + } //#21595 + if ($k[--$j]) { //#21598 + if (Math.ceil($1.cc) < Math.ceil($1.xc)) { //#21596 + $k[$j++] = $1.C; //#21596 + break; //#21596 + } //#21596 + if ($1.cc == $1.xc) { //#21597 + $k[$j++] = ($1.i + $1.k) + 1; //#21597 + $1.XtermFirst(); //#21597 + if ($k[--$j]) { //#21597 + $k[$j++] = $1.X; //#21597 + break; //#21597 + } else { //#21597 + $k[$j++] = $1.C; //#21597 + break; //#21597 + } //#21597 + } //#21597 + } //#21597 + var _As = $a([$1.ac, $1.cc, $1.tc, $1.bc]); //#21599 + $k[$j++] = true; //#21599 + for (var _At = 0, _Au = _As.length; _At < _Au; _At++) { //#21599 + var _Ax = $k[--$j]; //#21599 + $k[$j++] = _Ax && ((Math.ceil($1.xc) + 1) <= Math.ceil($get(_As, _At))); //#21599 + } //#21599 + if ($k[--$j]) { //#21599 + $k[$j++] = $1.X; //#21599 + break; //#21599 + } //#21599 + } //#21599 + $1.k = $1.k + 1; //#21601 + } //#21601 + } //#21601 + }; //#21604 + $1.addtocws = function() { + var _B1 = $k[--$j]; //#21607 + $puti($1.cws, $1.j, _B1); //#21607 + $1.j = _B1.length + $1.j; //#21608 + }; //#21609 + $1.tobin = function() { + var _B6 = $s($k[--$j]); //#21612 + $k[$j++] = _B6; //#21612 + for (var _B8 = 0, _B7 = _B6.length - 1; _B8 <= _B7; _B8 += 1) { //#21612 + var _B9 = $k[--$j]; //#21612 + $put(_B9, _B8, 48); //#21612 + $k[$j++] = _B9; //#21612 + } //#21612 + var _BA = $k[--$j]; //#21613 + var _BD = $cvrs($s(_BA.length), $k[--$j], 2); //#21613 + $puti(_BA, _BA.length - _BD.length, _BD); //#21613 + $k[$j++] = _BA; //#21614 + $k[$j++] = Infinity; //#21614 + var _BE = $k[--$j]; //#21614 + var _BF = $k[--$j]; //#21614 + $k[$j++] = _BE; //#21614 + $forall(_BF, function() { //#21614 + var _BG = $k[--$j]; //#21614 + $k[$j++] = $f(_BG - 48); //#21614 + }); //#21614 + var _BH = $a(); //#21614 + $k[$j++] = _BH; //#21614 + }; //#21615 + $1.encA = function() { + for (var _BI = 0, _BJ = 1; _BI < _BJ; _BI++) { //#21659 + if ($get($1.numD, $1.i) >= 21) { //#21623 + $1.Dbits = $a([1, 1, 1, 1]); //#21620 + $1.mode = $1.D; //#21621 + break; //#21622 + } //#21622 + var _BR = $get($1.numD, $1.i); //#21624 + if ((_BR >= 13) && ($f(_BR + $1.i) == $1.msglen)) { //#21628 + $1.Dbits = $a([1, 1, 1, 1]); //#21625 + $1.mode = $1.D; //#21626 + break; //#21627 + } //#21627 + if ($get($1.numD, $1.i) >= 2) { //#21633 + var _BZ = $s(2); //#21630 + $put(_BZ, 0, $get($1.msg, $1.i)); //#21630 + $put(_BZ, 1, $get($1.msg, $1.i + 1)); //#21630 + $k[$j++] = $get($1.Avals, _BZ); //#21630 + $1.addtocws(); //#21630 + $1.i = $1.i + 2; //#21631 + break; //#21632 + } //#21632 + if ($get($1.msg, $1.i) == $1.fnc1) { //#21649 + if ($get($1.numD, $1.i + 1) >= 15) { //#21641 + $k[$j++] = $get($1.Avals, $1.fnc1lD); //#21636 + $1.addtocws(); //#21636 + $1.i = $1.i + 1; //#21637 + $1.Dbits = $a([]); //#21638 + $1.mode = $1.D; //#21639 + break; //#21640 + } //#21640 + var _By = $get($1.numD, $1.i + 1); //#21642 + if ((_By >= 7) && (($f($f(_By + $1.i) + 1)) == $1.msglen)) { //#21648 + $k[$j++] = $get($1.Avals, $1.fnc1lD); //#21643 + $1.addtocws(); //#21643 + $1.i = $1.i + 1; //#21644 + $1.Dbits = $a([]); //#21645 + $1.mode = $1.D; //#21646 + break; //#21647 + } //#21647 + } //#21647 + $k[$j++] = 'newmode'; //#21650 + $1.lookup(); //#21650 + var _C7 = $k[--$j]; //#21650 + $1[$k[--$j]] = _C7; //#21650 + if ($1.newmode != $1.mode) { //#21655 + $k[$j++] = $get($1.Avals, $get($a([-1, $1.lC, $1.lT, $1.lX, $1.lD, $1.lB]), $1.newmode)); //#21652 + $1.addtocws(); //#21652 + $1.mode = $1.newmode; //#21653 + break; //#21654 + } //#21654 + $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); //#21656 + $1.addtocws(); //#21656 + $1.i = $1.i + 1; //#21657 + break; //#21658 + } //#21658 + }; //#21660 + $1.CTXvalstocws = function() { + $1.in = $k[--$j]; //#21663 + $k[$j++] = Infinity; //#21664 + for (var _CV = 0, _CU = $1.in.length - 1; _CV <= _CU; _CV += 3) { //#21668 + var _CX = $geti($1.in, _CV, 3); //#21666 + $k[$j++] = 0; //#21666 + for (var _CY = 0, _CZ = _CX.length; _CY < _CZ; _CY++) { //#21666 + var _Cb = $k[--$j]; //#21666 + $k[$j++] = $f(_Cb + $get(_CX, _CY)) * 40; //#21666 + } //#21666 + var _Cd = (~~($k[--$j] / 40)) + 1; //#21667 + $k[$j++] = ~~(_Cd / 256); //#21667 + $k[$j++] = _Cd % 256; //#21667 + } //#21667 + $astore($a($counttomark())); //#21669 + var _Cg = $k[--$j]; //#21669 + var _Ch = $k[--$j]; //#21669 + $k[$j++] = _Cg; //#21669 + $k[$j++] = _Ch; //#21669 + $j--; //#21669 + }; //#21670 + $1.encCTX = function() { + $1.p = 0; //#21673 + $1.ctxvals = $a(2220); //#21674 + for (;;) { //#21771 + if ($1.i == $1.msglen) { //#21678 + break; //#21678 + } //#21678 + if (($1.p % 3) == 0) { //#21766 + if ($get($1.numD, $1.i) >= 12) { //#21685 + $k[$j++] = $geti($1.ctxvals, 0, $1.p); //#21681 + $1.CTXvalstocws(); //#21681 + $1.addtocws(); //#21681 + $k[$j++] = $a([$1.unlcw]); //#21682 + $1.addtocws(); //#21682 + $1.mode = $1.A; //#21683 + break; //#21684 + } //#21684 + var _Cx = $get($1.numD, $1.i); //#21686 + if ((_Cx >= 8) && ($f(_Cx + $1.i) == $1.msglen)) { //#21691 + $k[$j++] = $geti($1.ctxvals, 0, $1.p); //#21687 + $1.CTXvalstocws(); //#21687 + $1.addtocws(); //#21687 + $k[$j++] = $a([$1.unlcw]); //#21688 + $1.addtocws(); //#21688 + $1.mode = $1.A; //#21689 + break; //#21690 + } //#21690 + if ($1.mode == $1.X) { //#21713 + var _DC = $get($1.Xvals, $get($1.msg, $1.i)) !== undefined; //#21693 + if (!_DC) { //#21701 + $k[$j++] = $geti($1.ctxvals, 0, $1.p); //#21694 + $1.CTXvalstocws(); //#21694 + $1.addtocws(); //#21694 + if (($get($1.numremcws, $1.j) != 1) || ($get($1.msg, $1.i) > 127)) { //#21698 + $k[$j++] = $a([$1.unlcw]); //#21697 + $1.addtocws(); //#21697 + } //#21697 + $1.mode = $1.A; //#21699 + break; //#21700 + } //#21700 + if (($1.i + 1) < $1.msglen) { //#21707 + var _DV = $get($1.Xvals, $get($1.msg, $1.i + 1)) !== undefined; //#21703 + if (!_DV) { //#21703 + break; //#21703 + } //#21703 + if (($1.i + 2) < $1.msglen) { //#21706 + var _Dc = $get($1.Xvals, $get($1.msg, $1.i + 2)) !== undefined; //#21705 + if (!_Dc) { //#21705 + break; //#21705 + } //#21705 + } //#21705 + } //#21705 + } else { //#21713 + $1.lookup(); //#21709 + if ($k[--$j] != $1.mode) { //#21714 + $k[$j++] = $geti($1.ctxvals, 0, $1.p); //#21710 + $1.CTXvalstocws(); //#21710 + $1.addtocws(); //#21710 + $k[$j++] = $a([$1.unlcw]); //#21711 + $1.addtocws(); //#21711 + $1.mode = $1.A; //#21712 + break; //#21713 + } //#21713 + } //#21713 + if (($1.msglen - $1.i) <= 3) { //#21765 + $1.remcws = $get($1.numremcws, $1.j + ((~~($1.p / 3)) * 2)); //#21717 + $k[$j++] = Infinity; //#21723 + var _Dv = $geti($1.msg, $1.i, $1.msglen - $1.i); //#21719 + for (var _Dw = 0, _Dx = _Dv.length; _Dw < _Dx; _Dw++) { //#21725 + var _Dy = $get(_Dv, _Dw); //#21725 + var _E2 = $get($get($1.encvals, $1.mode), _Dy) !== undefined; //#21720 + $k[$j++] = _Dy; //#21724 + if (_E2) { //#21723 + $aload($get($get($1.encvals, $1.mode), $k[--$j])); //#21721 + } else { //#21723 + $j--; //#21723 + $k[$j++] = -1; //#21723 + $k[$j++] = -1; //#21723 + $k[$j++] = -1; //#21723 + $k[$j++] = -1; //#21723 + } //#21723 + } //#21723 + $1.remvals = $a(); //#21723 + if (($1.remcws == 2) && ($1.remvals.length == 3)) { //#21736 + $k[$j++] = Infinity; //#21731 + $aload($geti($1.ctxvals, 0, $1.p)); //#21730 + $aload($1.remvals); //#21731 + var _EF = $a(); //#21731 + $k[$j++] = _EF; //#21732 + $1.CTXvalstocws(); //#21732 + $1.addtocws(); //#21732 + $1.mode = $1.A; //#21733 + $1.i = $1.msglen; //#21734 + break; //#21735 + } //#21735 + if ((($1.remcws == 2) && ($1.remvals.length == 2)) && ($1.mode != $1.X)) { //#21747 + $k[$j++] = Infinity; //#21742 + $aload($geti($1.ctxvals, 0, $1.p)); //#21740 + $aload($1.remvals); //#21741 + $aload($get($get($1.encvals, $1.mode), $1.sft1)); //#21742 + var _EV = $a(); //#21742 + $k[$j++] = _EV; //#21743 + $1.CTXvalstocws(); //#21743 + $1.addtocws(); //#21743 + $1.mode = $1.A; //#21744 + $1.i = $1.msglen; //#21745 + break; //#21746 + } //#21746 + if (($1.remcws == 2) && ($1.remvals.length == 1)) { //#21756 + $k[$j++] = $geti($1.ctxvals, 0, $1.p); //#21750 + $1.CTXvalstocws(); //#21750 + $1.addtocws(); //#21750 + $k[$j++] = $a([$1.unlcw]); //#21751 + $1.addtocws(); //#21751 + $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); //#21752 + $1.addtocws(); //#21752 + $1.mode = $1.A; //#21753 + $1.i = $1.msglen; //#21754 + break; //#21755 + } //#21755 + if (($1.remcws == 1) && ($1.remvals.length == 1)) { //#21764 + $k[$j++] = $geti($1.ctxvals, 0, $1.p); //#21759 + $1.CTXvalstocws(); //#21759 + $1.addtocws(); //#21759 + $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); //#21760 + $1.addtocws(); //#21760 + $1.mode = $1.A; //#21761 + $1.i = $1.msglen; //#21762 + break; //#21763 + } //#21763 + } //#21763 + } //#21763 + var _F4 = $get($get($1.encvals, $1.mode), $get($1.msg, $1.i)); //#21767 + $puti($1.ctxvals, $1.p, _F4); //#21768 + $1.p = _F4.length + $1.p; //#21769 + $1.i = $1.i + 1; //#21770 + } //#21770 + if ($1.mode != $1.A) { //#21795 + for (;;) { //#21779 + if (($1.p % 3) == 0) { //#21776 + break; //#21776 + } //#21776 + $1.i = $1.i - 1; //#21777 + $1.p = $1.p - $get($get($1.encvals, $1.mode), $get($1.msg, $1.i)).length; //#21778 + } //#21778 + $k[$j++] = Infinity; //#21781 + $aload($geti($1.ctxvals, 0, $1.p)); //#21781 + var _FO = $a(); //#21781 + $k[$j++] = _FO; //#21782 + $1.CTXvalstocws(); //#21782 + $1.addtocws(); //#21782 + $k[$j++] = $a([$1.unlcw]); //#21783 + $1.addtocws(); //#21783 + $1.mode = $1.A; //#21784 + if ($1.i != $1.msglen) { //#21794 + if ($get($1.numD, $1.i) >= 2) { //#21792 + var _FX = $s(2); //#21788 + $put(_FX, 0, $get($1.msg, $1.i)); //#21788 + $put(_FX, 1, $get($1.msg, $1.i + 1)); //#21788 + $k[$j++] = $get($1.Avals, _FX); //#21788 + $1.addtocws(); //#21788 + $1.i = $1.i + 2; //#21789 + } else { //#21792 + $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); //#21791 + $1.addtocws(); //#21791 + $1.i = $1.i + 1; //#21792 + } //#21792 + } //#21792 + } //#21792 + }; //#21797 + $1.encD = function() { + for (;;) { //#21856 + if ($get($1.numD, $1.i) < 3) { //#21846 + $1.Drem = (8 - ($1.Dbits.length % 8)) % 8; //#21805 + $1.remcws = $get($1.numremcws, $1.j + (~~($1.Dbits.length / 8))); //#21806 + if (((($f($get($1.numremcws, ($1.j + (~~($1.Dbits.length / 8))) - 1) - 1) == 0) && ($1.Drem == 0)) || (($1.remcws == 1) && ($1.Drem != 0))) && ($1.i == $1.msglen)) { //#21815 + if (($1.Drem == 4) || ($1.Drem == 6)) { //#21812 + $k[$j++] = Infinity; //#21812 + $aload($1.Dbits); //#21812 + $k[$j++] = 1; //#21812 + $k[$j++] = 1; //#21812 + $k[$j++] = 1; //#21812 + $k[$j++] = 1; //#21812 + $1.Dbits = $a(); //#21812 + } //#21812 + if (($1.Drem == 2) || ($1.Drem == 6)) { //#21813 + $k[$j++] = Infinity; //#21813 + $aload($1.Dbits); //#21813 + $k[$j++] = 0; //#21813 + $k[$j++] = 1; //#21813 + $1.Dbits = $a(); //#21813 + } //#21813 + break; //#21814 + } //#21814 + if ((((($1.i == ($1.msglen - 1)) && ($get($1.numD, $1.i) == 1)) || (($1.i == ($1.msglen - 2)) && ($get($1.numD, $1.i) == 2))) && ($1.remcws == 1)) && ($1.Drem == 0)) { //#21820 + break; //#21820 + } //#21820 + if (!(((($1.i == ($1.msglen - 1)) && ($get($1.numD, $1.i) == 1)) && ($1.remcws == 1)) && (($1.Drem == 4) || ($1.Drem == 6)))) { //#21827 + $k[$j++] = Infinity; //#21825 + $aload($1.Dbits); //#21825 + $k[$j++] = 1; //#21825 + $k[$j++] = 1; //#21825 + $k[$j++] = 1; //#21825 + $k[$j++] = 1; //#21825 + $k[$j++] = 1; //#21825 + $k[$j++] = 1; //#21825 + $1.Dbits = $a(); //#21825 + $1.Drem = (8 - ($1.Dbits.length % 8)) % 8; //#21826 + } //#21826 + if (($1.Drem == 4) || ($1.Drem == 6)) { //#21838 + if ($get($1.numD, $1.i) >= 1) { //#21835 + $k[$j++] = Infinity; //#21832 + $aload($1.Dbits); //#21832 + $k[$j++] = $f($f($get($1.msg, $1.i) - 48) + 1); //#21832 + $k[$j++] = 4; //#21832 + $1.tobin(); //#21832 + $aload($k[--$j]); //#21832 + $1.Dbits = $a(); //#21832 + $1.i = $1.i + 1; //#21833 + } else { //#21835 + $k[$j++] = Infinity; //#21835 + $aload($1.Dbits); //#21835 + $k[$j++] = 1; //#21835 + $k[$j++] = 1; //#21835 + $k[$j++] = 1; //#21835 + $k[$j++] = 1; //#21835 + $1.Dbits = $a(); //#21835 + } //#21835 + $1.Drem = $1.Drem - 4; //#21837 + } //#21837 + if ($1.Drem == 2) { //#21842 + $k[$j++] = Infinity; //#21840 + $aload($1.Dbits); //#21840 + $k[$j++] = 0; //#21840 + $k[$j++] = 1; //#21840 + $1.Dbits = $a(); //#21840 + $1.Drem = 0; //#21841 + } //#21841 + break; //#21844 + } //#21844 + $k[$j++] = Infinity; //#21852 + $aload($1.Dbits); //#21850 + var _Gu = $geti($1.msg, $1.i, 3); //#21851 + $k[$j++] = 0; //#21851 + for (var _Gv = 0, _Gw = _Gu.length; _Gv < _Gw; _Gv++) { //#21851 + var _Gy = $k[--$j]; //#21851 + $k[$j++] = ($f(_Gy + $f($get(_Gu, _Gv) - 48))) * 10; //#21851 + } //#21851 + var _Gz = $k[--$j]; //#21851 + $k[$j++] = (~~(_Gz / 10)) + 1; //#21852 + $k[$j++] = 10; //#21852 + $1.tobin(); //#21852 + $aload($k[--$j]); //#21852 + $1.Dbits = $a(); //#21852 + $1.i = $1.i + 3; //#21854 + } //#21854 + $k[$j++] = Infinity; //#21858 + for (var _H5 = 0, _H4 = $1.Dbits.length - 1; _H5 <= _H4; _H5 += 8) { //#21861 + var _H7 = $geti($1.Dbits, _H5, 8); //#21860 + $k[$j++] = 0; //#21860 + for (var _H8 = 0, _H9 = _H7.length; _H8 < _H9; _H8++) { //#21860 + var _HB = $k[--$j]; //#21860 + $k[$j++] = $f(_HB + $get(_H7, _H8)) * 2; //#21860 + } //#21860 + var _HC = $k[--$j]; //#21860 + $k[$j++] = ~~(_HC / 2); //#21860 + } //#21860 + $astore($a($counttomark())); //#21862 + var _HF = $k[--$j]; //#21862 + var _HG = $k[--$j]; //#21862 + $k[$j++] = _HF; //#21862 + $k[$j++] = _HG; //#21862 + $j--; //#21862 + $1.addtocws(); //#21862 + $1.mode = $1.A; //#21863 + }; //#21865 + $1.encB = function() { + $1.p = 0; //#21868 + $1.bvals = $a(1480); //#21868 + for (;;) { //#21875 + if ($1.i == $1.msglen) { //#21869 + break; //#21869 + } //#21869 + if ($get($1.msg, $1.i) < 0) { //#21870 + break; //#21870 + } //#21870 + $1.lookup(); //#21871 + if ($k[--$j] != $1.mode) { //#21871 + break; //#21871 + } //#21871 + $put($1.bvals, $1.p, $get($1.msg, $1.i)); //#21872 + $1.p = $1.p + 1; //#21873 + $1.i = $1.i + 1; //#21874 + } //#21874 + $1.remcws = $f($get($1.numremcws, $1.j + $1.p) - 1); //#21876 + $k[$j++] = Infinity; //#21883 + if (($1.remcws == 0) && ($1.i == $1.msglen)) { //#21881 + $k[$j++] = 0; //#21879 + } else { //#21881 + if ($1.p < 250) { //#21881 + $k[$j++] = $1.p; //#21881 + } else { //#21881 + $k[$j++] = (~~($1.p / 250)) + 249; //#21881 + $k[$j++] = $1.p % 250; //#21881 + } //#21881 + } //#21881 + $aload($geti($1.bvals, 0, $1.p)); //#21883 + $1.bvals = $a(); //#21883 + $k[$j++] = $1.bvals; //#21885 + $1.addtocws(); //#21885 + $1.mode = $1.A; //#21886 + }; //#21887 + $1.cws = $a(1480); //#21890 + $1.mode = $1.A; //#21891 + $1.i = 0; //#21891 + $1.j = 0; //#21891 + for (;;) { //#21894 + if ($1.i >= $1.msglen) { //#21892 + break; //#21892 + } //#21892 + if ($1[$get($a(['encA', 'encCTX', 'encCTX', 'encCTX', 'encD', 'encB']), $1.mode)]() === true) { break; - } - if ($eq($1.mode, "iso646")) { - if ($get($1.gpf, $1.i) == $1.fnc1) { - $k[$j++] = $1.fnc1; - $k[$j++] = $1.iso646; - $1.encode(); - $1.mode = "numeric"; - $1.i = $1.i + 1; - break; - } - if ($get($1.numericruns, $1.i) >= 4 && $get($1.nextiso646only, $1.i) >= 10) { - $k[$j++] = $1.lnumeric; - $k[$j++] = $1.iso646; - $1.encode(); - $1.mode = "numeric"; - break; - } - if ($get($1.alphanumericruns, $1.i) >= 5 && $get($1.nextiso646only, $1.i) >= 10) { - $k[$j++] = $1.lalphanumeric; - $k[$j++] = $1.iso646; - $1.encode(); - $1.mode = "alphanumeric"; + } //#21893 + } //#21893 + $1.cws = $geti($1.cws, 0, $1.j); //#21895 + } //#21895 + $1.i = 0; //#21900 + for (;;) { //#21920 + $1.m = $get($1.metrics, $1.i); //#21902 + $1.vers = $get($1.m, 0); //#21903 + $1.rows = $get($1.m, 1); //#21904 + $1.cols = $get($1.m, 2); //#21905 + $1.dcol = $get($1.m, 3); //#21906 + $1.dcws = $get($1.m, 4); //#21907 + $1.rscw = $get($1.m, 5); //#21908 + $1.rsbl = $get($1.m, 6); //#21909 + $1.riso = $get($1.m, 7); //#21910 + $1.risi = $get($1.m, 8); //#21911 + $1.risl = $get($1.m, 9); //#21912 + $1.dcpb = ~~($1.dcws / $1.rsbl); //#21913 + $1.ecpb = ~~($1.rscw / $1.rsbl); //#21914 + $1.okay = true; //#21915 + if ($ne($1.version, "unset") && $ne($1.version, $1.vers)) { //#21916 + $1.okay = false; //#21916 + } //#21916 + if ($1.cws.length > $1.dcws) { //#21917 + $1.okay = false; //#21917 + } //#21917 + if ($1.okay) { //#21918 + break; //#21918 + } //#21918 + $1.i = $1.i + 1; //#21919 + } //#21919 + if (!$1.stype) { //#21926 + $k[$j++] = Infinity; //#21924 + $aload($1.cws); //#21924 + for (var _Ib = 0, _Ic = $f($1.dcws - $1.cws.length); _Ib < _Ic; _Ib++) { //#21924 + $k[$j++] = 129; //#21924 + } //#21924 + $1.cws = $a(); //#21924 + } else { //#21926 + $k[$j++] = Infinity; //#21926 + for (var _Ig = 0, _Ih = $f($1.dcws - $1.cws.length); _Ig < _Ih; _Ig++) { //#21926 + $k[$j++] = 0; //#21926 + } //#21926 + $aload($1.cws); //#21926 + $1.cws = $a(); //#21926 + } //#21926 + var _Il = $get($1.options, 'debugcws') !== undefined; //#21929 + if (_Il) { //#21929 + $k[$j++] = 'bwipp.debugcws'; //#21929 + $k[$j++] = $1.cws; //#21929 + $0.raiseerror(); //#21929 + } //#21929 + $1.cwbs = $a($1.rsbl); //#21932 + $1.ecbs = $a($1.rsbl); //#21933 + for (var _It = 0, _Is = $f($1.rsbl - 1); _It <= _Is; _It += 1) { //#21942 + $1.i = _It; //#21935 + $1.cwb = $a($1.dcpb); //#21936 + for (var _Iy = 0, _Ix = $1.dcpb - 1; _Iy <= _Ix; _Iy += 1) { //#21940 + $1.j = _Iy; //#21938 + $put($1.cwb, $1.j, $get($1.cws, $f(($1.j * $1.rsbl) + $1.i))); //#21939 + } //#21939 + $put($1.cwbs, $1.i, $1.cwb); //#21941 + } //#21941 + var _JA = $1.stype ? 32 : 256; //#21945 + $1.gf = _JA; //#21945 + $1['gf-1'] = $1.gf - 1; //#21946 + var _JD = $1.stype ? 37 : 301; //#21947 + $1.pm = _JD; //#21947 + $k[$j++] = Infinity; //#21948 + $k[$j++] = 1; //#21948 + for (var _JF = 0, _JG = $1["gf-1"]; _JF < _JG; _JF++) { //#21948 + var _JH = $k[--$j]; //#21948 + var _JI = _JH * 2; //#21948 + $k[$j++] = _JH; //#21948 + $k[$j++] = _JI; //#21948 + if (_JI >= $1.gf) { //#21948 + var _JL = $k[--$j]; //#21948 + $k[$j++] = _JL ^ $1.pm; //#21948 + } //#21948 + } //#21948 + $1.rsalog = $a(); //#21948 + $1.rslog = $a($1.gf); //#21949 + for (var _JR = 1, _JQ = $1["gf-1"]; _JR <= _JQ; _JR += 1) { //#21950 + $put($1.rslog, $get($1.rsalog, _JR), _JR); //#21950 + } //#21950 + $1.rsprod = function() { + var _JV = $k[--$j]; //#21952 + var _JW = $k[--$j]; //#21952 + $k[$j++] = _JW; //#21956 + $k[$j++] = _JV; //#21956 + if ((_JV != 0) && (_JW != 0)) { //#21955 + var _JZ = $get($1.rslog, $k[--$j]); //#21953 + var _Jf = $get($1.rsalog, $f(_JZ + $get($1.rslog, $k[--$j])) % $1["gf-1"]); //#21953 + $k[$j++] = _Jf; //#21953 + } else { //#21955 + $j -= 2; //#21955 + $k[$j++] = 0; //#21955 + } //#21955 + }; //#21957 + $k[$j++] = Infinity; //#21960 + $k[$j++] = 1; //#21960 + for (var _Jh = 0, _Ji = $1.ecpb; _Jh < _Ji; _Jh++) { //#21960 + $k[$j++] = 0; //#21960 + } //#21960 + $1.coeffs = $a(); //#21960 + for (var _Jm = 0, _Jl = $1.ecpb - 1; _Jm <= _Jl; _Jm += 1) { //#21969 + $1.i = _Jm; //#21962 + $put($1.coeffs, $1.i + 1, $get($1.coeffs, $1.i)); //#21963 + for (var _Jt = $1.i; _Jt >= 1; _Jt -= 1) { //#21967 + $1.j = _Jt; //#21965 + $k[$j++] = $1.coeffs; //#21966 + $k[$j++] = $1.j; //#21966 + $k[$j++] = $get($1.coeffs, $1.j - 1); //#21966 + $k[$j++] = $get($1.coeffs, $1.j); //#21966 + $k[$j++] = $get($1.rsalog, $1.i); //#21966 + $1.rsprod(); //#21966 + var _K5 = $k[--$j]; //#21966 + var _K6 = $k[--$j]; //#21966 + var _K7 = $k[--$j]; //#21966 + $put($k[--$j], _K7, $xo(_K6, _K5)); //#21966 + } //#21966 + $k[$j++] = $1.coeffs; //#21968 + $k[$j++] = 0; //#21968 + $k[$j++] = $get($1.coeffs, 0); //#21968 + $k[$j++] = $get($1.rsalog, $1.i); //#21968 + $1.rsprod(); //#21968 + var _KF = $k[--$j]; //#21968 + var _KG = $k[--$j]; //#21968 + $put($k[--$j], _KG, _KF); //#21968 + } //#21968 + $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); //#21970 + for (var _KN = 0, _KM = $1.cwbs.length - 1; _KN <= _KM; _KN += 1) { //#21985 + $1.i = _KN; //#21974 + $k[$j++] = Infinity; //#21975 + $aload($get($1.cwbs, $1.i)); //#21975 + for (var _KS = 0, _KT = $1.ecpb; _KS < _KT; _KS++) { //#21975 + $k[$j++] = 0; //#21975 + } //#21975 + $1.rscws = $a(); //#21975 + for (var _KX = 0, _KW = $1.dcpb - 1; _KX <= _KW; _KX += 1) { //#21983 + $1.m = _KX; //#21977 + $1.k = $get($1.rscws, $1.m); //#21978 + for (var _Kd = 0, _Kc = $1.ecpb - 1; _Kd <= _Kc; _Kd += 1) { //#21982 + $1.j = _Kd; //#21980 + $k[$j++] = $1.rscws; //#21981 + $k[$j++] = ($1.m + $1.j) + 1; //#21981 + $k[$j++] = $get($1.coeffs, ($1.ecpb - $1.j) - 1); //#21981 + $k[$j++] = $1.k; //#21981 + $1.rsprod(); //#21981 + var _Kq = $k[--$j]; //#21981 + var _Kr = $k[--$j]; //#21981 + $put($k[--$j], _Kr, $xo(_Kq, $get($1.rscws, ($1.m + $1.j) + 1))); //#21981 + } //#21981 + } //#21981 + $put($1.ecbs, $1.i, $geti($1.rscws, $1.dcpb, $1.ecpb)); //#21984 + } //#21984 + $k[$j++] = Infinity; //#21988 + $aload($1.cws); //#21988 + for (var _L1 = 0, _L2 = $1.rscw; _L1 < _L2; _L1++) { //#21988 + $k[$j++] = 0; //#21988 + } //#21988 + $1.cws = $a(); //#21988 + for (var _L6 = 0, _L5 = $f($1.rscw - 1); _L6 <= _L5; _L6 += 1) { //#21992 + $1.i = _L6; //#21990 + $put($1.cws, $f($1.dcws + $1.i), $get($get($1.ecbs, $1.i % $1.rsbl), ~~($1.i / $1.rsbl))); //#21991 + } //#21991 + var _LK = $1.stype ? 5 : 8; //#21995 + $1.mmat = $a($f($1.dcws + $1.rscw) * _LK); //#21995 + $1.r = 0; //#21996 + $1.c = 0; //#21996 + var _LN = $1.stype ? 2 : 1; //#21997 + for (var _LQ = 0, _LR = _LN, _LP = $1.cws.length - 1; _LR < 0 ? _LQ >= _LP : _LQ <= _LP; _LQ += _LR) { //#22018 + $1.i = _LQ; //#21998 + if (!$1.stype) { //#22012 + var _LU = $strcpy($s(8), "00000000"); //#22000 + var _LZ = $cvrs($s(8), $get($1.cws, $1.i), 2); //#22000 + $puti(_LU, 8 - _LZ.length, _LZ); //#22001 + $k[$j++] = _LU; //#22001 + $k[$j++] = Infinity; //#22001 + var _La = $k[--$j]; //#22001 + var _Lb = $k[--$j]; //#22001 + $k[$j++] = _La; //#22001 + $forall(_Lb, function() { //#22001 + var _Lc = $k[--$j]; //#22001 + $k[$j++] = $f(_Lc - 48); //#22001 + }); //#22001 + var _Ld = $a(); //#22001 + $1.top = $geti(_Ld, 0, 4); //#22002 + $1.bot = $geti(_Ld, 4, 4); //#22003 + } else { //#22012 + var _Lh = $strcpy($s(5), "00000"); //#22005 + var _Lm = $cvrs($s(5), $get($1.cws, $1.i), 2); //#22005 + $puti(_Lh, 5 - _Lm.length, _Lm); //#22006 + $k[$j++] = _Lh; //#22006 + $k[$j++] = Infinity; //#22006 + var _Ln = $k[--$j]; //#22006 + var _Lo = $k[--$j]; //#22006 + $k[$j++] = _Ln; //#22006 + $forall(_Lo, function() { //#22006 + var _Lp = $k[--$j]; //#22006 + $k[$j++] = $f(_Lp - 48); //#22006 + }); //#22006 + $1.c1 = $a(); //#22007 + var _Ls = $strcpy($s(5), "00000"); //#22008 + var _Lx = $cvrs($s(5), $get($1.cws, $1.i + 1), 2); //#22008 + $puti(_Ls, 5 - _Lx.length, _Lx); //#22009 + $k[$j++] = _Ls; //#22009 + $k[$j++] = Infinity; //#22009 + var _Ly = $k[--$j]; //#22009 + var _Lz = $k[--$j]; //#22009 + $k[$j++] = _Ly; //#22009 + $forall(_Lz, function() { //#22009 + var _M0 = $k[--$j]; //#22009 + $k[$j++] = $f(_M0 - 48); //#22009 + }); //#22009 + $1.c2 = $a(); //#22010 + $k[$j++] = Infinity; //#22011 + $aload($geti($1.c1, 0, 3)); //#22011 + $aload($geti($1.c2, 0, 2)); //#22011 + $1.top = $a(); //#22011 + $k[$j++] = Infinity; //#22012 + $aload($geti($1.c1, 3, 2)); //#22012 + $aload($geti($1.c2, 2, 3)); //#22012 + $1.bot = $a(); //#22012 + } //#22012 + $puti($1.mmat, $f(($1.r * $1.dcol) + $1.c), $1.top); //#22014 + $puti($1.mmat, $f((($1.r + 1) * $1.dcol) + $1.c), $1.bot); //#22015 + $1.c = $1.c + $1.top.length; //#22016 + if ($1.c == $1.dcol) { //#22017 + $1.c = 0; //#22017 + $1.r = $1.r + 2; //#22017 + } //#22017 + } //#22017 + $1.mmv = function() { + var _MS = $k[--$j]; //#22021 + var _MT = $k[--$j]; //#22021 + $k[$j++] = $f(_MT + (_MS * $1.cols)); //#22021 + }; //#22021 + $k[$j++] = Infinity; //#22022 + for (var _MW = 0, _MX = $1.rows * $1.cols; _MW < _MX; _MW++) { //#22022 + $k[$j++] = -1; //#22022 + } //#22022 + $1.pixs = $a(); //#22022 + var _N3 = $a([function() { + for (var _Ma = 0, _Mb = $1.cols; _Ma < _Mb; _Ma++) { //#22026 + $k[$j++] = 0; //#22026 + } //#22026 + }, function() { + for (var _Md = 0, _Me = $1.cols; _Md < _Me; _Md++) { //#22027 + $k[$j++] = 1; //#22027 + } //#22027 + }, function() { + $k[$j++] = 0; //#22028 + for (var _Mg = 0, _Mh = $f($1.cols - 2); _Mg < _Mh; _Mg++) { //#22028 + $k[$j++] = 1; //#22028 + } //#22028 + $k[$j++] = 0; //#22028 + }, function() { + $k[$j++] = 0; //#22029 + $k[$j++] = 1; //#22029 + for (var _Mj = 0, _Mk = $f($1.cols - 4); _Mj < _Mk; _Mj++) { //#22029 + $k[$j++] = 0; //#22029 + } //#22029 + $k[$j++] = 1; //#22029 + $k[$j++] = 0; //#22029 + }, function() { + for (var _Mm = 0, _Mn = ~~($f($1.cols - 1) / 2); _Mm < _Mn; _Mm++) { //#22030 + $k[$j++] = -1; //#22030 + } //#22030 + $k[$j++] = 1; //#22030 + for (var _Mp = 0, _Mq = ~~($f($1.cols - 1) / 2); _Mp < _Mq; _Mp++) { //#22030 + $k[$j++] = -1; //#22030 + } //#22030 + }, function() { + for (var _Ms = 0, _Mt = ~~($f($1.cols - 1) / 2); _Ms < _Mt; _Ms++) { //#22031 + $k[$j++] = -1; //#22031 + } //#22031 + $k[$j++] = 0; //#22031 + for (var _Mv = 0, _Mw = ~~($f($1.cols - 1) / 2); _Mv < _Mw; _Mv++) { //#22031 + $k[$j++] = -1; //#22031 + } //#22031 + }, function() { + $k[$j++] = 1; //#22032 + for (var _My = 0, _Mz = $f($1.cols - 2); _My < _Mz; _My++) { //#22032 + $k[$j++] = 0; //#22032 + } //#22032 + $k[$j++] = 1; //#22032 + }, function() { + $k[$j++] = 1; //#22033 + $k[$j++] = 0; //#22033 + for (var _N1 = 0, _N2 = $f($1.cols - 4); _N1 < _N2; _N1++) { //#22033 + $k[$j++] = 1; //#22033 + } //#22033 + $k[$j++] = 0; //#22033 + $k[$j++] = 1; //#22033 + }]); //#22033 + $1.artifact = _N3; //#22034 + var _N4 = new Map([ + ["A", "121343"], + ["B", "12134343"], + ["C", "12121343"], + ["D", "1213434343"], + ["E", "1212134343"], + ["F", "1212121343"], + ["G", "121213434343"], + ["H", "121212134343"], + ["S", "56661278"], + ["T", "5666666666127878"] + ]); //#22045 + $1.cpat = $get(_N4, $geti($1.vers, 0, 1)); //#22046 + $k[$j++] = $1.pixs; //#22047 + $k[$j++] = 0; //#22047 + $k[$j++] = ~~($f($1.rows - $1.cpat.length) / 2); //#22047 + $1.mmv(); //#22047 + $k[$j++] = Infinity; //#22048 + $forall($1.cpat, function() { //#22048 + if ($get($1.artifact, $f($k[--$j] - 49))() === true) { + return true; + } //#22048 + }); //#22048 + var _NF = $a(); //#22048 + var _NG = $k[--$j]; //#22048 + $puti($k[--$j], _NG, _NF); //#22048 + for (var _NK = 0, _NJ = $f($1.risl - 1); _NK <= _NJ; _NK += 1) { //#22063 + $1.i = _NK; //#22052 + for (var _NP = $1.riso, _NQ = $1.risi, _NO = $f($1.cols - 1); _NQ < 0 ? _NP >= _NO : _NP <= _NO; _NP += _NQ) { //#22062 + $1.j = _NP; //#22054 + var _NS = (($1.i % 12) == 0) ? 1 : 0; //#22055 + var _NT = $a([1, _NS]); //#22055 + $k[$j++] = _NT; //#22056 + $k[$j++] = _NT; //#22056 + $k[$j++] = $1.pixs; //#22056 + $k[$j++] = $1.j; //#22056 + $k[$j++] = $1.i; //#22056 + $1.mmv(); //#22056 + var _NX = $k[--$j]; //#22057 + var _NY = $k[--$j]; //#22057 + $puti(_NY, _NX, $k[--$j]); //#22057 + if ($1.i != $f($1.risl - 1)) { //#22061 + $k[$j++] = $1.pixs; //#22059 + $k[$j++] = $f($f($1.cols - $1.j) - 2); //#22059 + $k[$j++] = $f($f($1.rows - $1.i) - 1); //#22059 + $1.mmv(); //#22059 + var _Nh = $k[--$j]; //#22060 + var _Ni = $k[--$j]; //#22060 + $puti(_Ni, _Nh, $k[--$j]); //#22060 + } else { //#22061 + $j--; //#22061 + } //#22061 + } //#22061 + } //#22061 + var _ON = new Map([ + ["A", $a([$a([12, 5])])], + ["B", $a([$a([16, 7])])], + ["C", $a([$a([26, 12])])], + ["D", $a([])], + ["E", $a([$a([26, 23])])], + ["F", $a([$a([26, 32]), $a([70, 32]), $a([26, 34]), $a([70, 34])])], + ["G", $a([$a([27, 48]), $a([69, 48])])], + ["H", $a([$a([26, 70]), $a([66, 70]), $a([106, 70]), $a([26, 72]), $a([66, 72]), $a([106, 72])])], + ["S-10", $a([])], + ["S-20", $a([$a([10, 4])])], + ["S-30", $a([$a([15, 4]), $a([15, 6])])], + ["T-16", $a([$a([8, 10])])], + ["T-32", $a([$a([16, 10]), $a([16, 12])])], + ["T-48", $a([$a([24, 10]), $a([24, 12]), $a([24, 14])])] + ]); //#22080 + $forall($get(_ON, $1.vers), function() { //#22081 + var _OR = $k[--$j]; //#22081 + $k[$j++] = $1.pixs; //#22081 + $aload(_OR); //#22081 + $1.mmv(); //#22081 + var _OS = $k[--$j]; //#22081 + $put($k[--$j], _OS, 1); //#22081 + }); //#22081 + $1.j = 0; //#22084 + for (var _OW = 0, _OV = $1.pixs.length - 1; _OW <= _OV; _OW += 1) { //#22091 + $1.i = _OW; //#22086 + if ($get($1.pixs, $1.i) == -1) { //#22090 + $put($1.pixs, $1.i, $get($1.mmat, $1.j)); //#22088 + $1.j = $1.j + 1; //#22089 + } //#22089 + } //#22089 + var _Om = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", $1.cols], + ["pixy", $1.rows], + ["height", ($1.rows / 72) * 2], + ["width", ($1.cols / 72) * 2], + ["opt", $1.options] + ]); //#22101 + $k[$j++] = _Om; //#22104 + if (!$1.dontdraw) { //#22104 + $0.renmatrix(); //#22104 + } //#22104 + }; + $0.hanxin = function() { + var $1 = {}; //#22134 + $1.options = $k[--$j]; //#22136 + $1.barcode = $k[--$j]; //#22137 + $1.dontdraw = false; //#22139 + $1.version = "unset"; //#22140 + $1.eclevel = "unset"; //#22141 + $1.parse = false; //#22142 + $1.parsefnc = false; //#22143 + $1.mask = -1; //#22144 + $forall($1.options, function() { //#22155 + var _3 = $k[--$j]; //#22155 + $1[$k[--$j]] = _3; //#22155 + }); //#22155 + $1.mask = ~~$1.mask; //#22157 + var _8 = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc] + ]); //#22162 + $1.fncvals = _8; //#22164 + $k[$j++] = 'msg'; //#22165 + $k[$j++] = $1.barcode; //#22165 + $k[$j++] = $1.fncvals; //#22165 + $0.parseinput(); //#22165 + var _B = $k[--$j]; //#22165 + $1[$k[--$j]] = _B; //#22165 + $1.msglen = $1.msg.length; //#22166 + if ($eq($1.eclevel, "unset")) { //#22169 + $1.eclevel = "L2"; //#22169 + } //#22169 + $1.tobin = function() { + var _G = $s($k[--$j]); //#22172 + $k[$j++] = _G; //#22172 + for (var _I = 0, _H = _G.length - 1; _I <= _H; _I += 1) { //#22172 + var _J = $k[--$j]; //#22172 + $put(_J, _I, 48); //#22172 + $k[$j++] = _J; //#22172 + } //#22172 + var _K = $k[--$j]; //#22173 + var _N = $cvrs($s(_K.length), $k[--$j], 2); //#22173 + $puti(_K, _K.length - _N.length, _N); //#22174 + $k[$j++] = _K; //#22174 + }; //#22175 + $1.bits = $s((4 + 13) + ($1.msglen * 8)); //#22178 + $puti($1.bits, 0, "0011"); //#22179 + $k[$j++] = $1.bits; //#22180 + $k[$j++] = 4; //#22180 + $k[$j++] = $1.msglen; //#22180 + $k[$j++] = 13; //#22180 + $1.tobin(); //#22180 + var _T = $k[--$j]; //#22180 + var _U = $k[--$j]; //#22180 + $puti($k[--$j], _U, _T); //#22180 + for (var _Y = 0, _X = $1.msglen - 1; _Y <= _X; _Y += 1) { //#22184 + $1.i = _Y; //#22182 + $k[$j++] = $1.bits; //#22183 + $k[$j++] = 17 + ($1.i * 8); //#22183 + $k[$j++] = $get($1.msg, $1.i); //#22183 + $k[$j++] = 8; //#22183 + $1.tobin(); //#22183 + var _e = $k[--$j]; //#22183 + var _f = $k[--$j]; //#22183 + $puti($k[--$j], _f, _e); //#22183 + } //#22183 + $1.metrics = $a([$a(["1", 23, -1, 0, 205, $a([1, 21, 4]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 17, 8]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 13, 12]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 9, 16]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["2", 25, -1, 0, 301, $a([1, 31, 6]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 25, 12]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 19, 18]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 15, 22]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["3", 27, -1, 0, 405, $a([1, 42, 8]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 34, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 26, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["4", 29, 14, 1, 439, $a([1, 46, 8]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 38, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 30, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 22, 32]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["5", 31, 16, 1, 555, $a([1, 57, 12]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 49, 20]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 37, 32]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 14, 20]), $a([1, 13, 22]), $a([0, -1, -1])]), $a(["6", 33, 16, 1, 675, $a([1, 70, 14]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 58, 26]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 24, 20]), $a([1, 22, 18]), $a([0, -1, -1]), $a([1, 16, 24]), $a([1, 18, 26]), $a([0, -1, -1])]), $a(["7", 35, 17, 1, 805, $a([1, 84, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 26, 22]), $a([1, 28, 24]), $a([0, -1, -1]), $a([2, 14, 20]), $a([1, 12, 20]), $a([0, -1, -1])]), $a(["8", 37, 18, 1, 943, $a([1, 99, 18]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 40, 18]), $a([1, 41, 18]), $a([0, -1, -1]), $a([1, 31, 26]), $a([1, 32, 28]), $a([0, -1, -1]), $a([2, 16, 24]), $a([1, 15, 22]), $a([0, -1, -1])]), $a(["9", 39, 19, 1, 1089, $a([1, 114, 22]), $a([0, -1, -1]), $a([0, -1, -1]), $a([2, 48, 20]), $a([0, -1, -1]), $a([0, -1, -1]), $a([2, 24, 20]), $a([1, 26, 22]), $a([0, -1, -1]), $a([2, 18, 28]), $a([1, 18, 26]), $a([0, -1, -1])]), $a(["10", 41, 20, 1, 1243, $a([1, 131, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 52, 22]), $a([1, 57, 24]), $a([0, -1, -1]), $a([2, 27, 24]), $a([1, 29, 24]), $a([0, -1, -1]), $a([2, 21, 32]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["11", 43, 14, 2, 1289, $a([1, 135, 26]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 56, 24]), $a([1, 57, 24]), $a([0, -1, -1]), $a([2, 28, 24]), $a([1, 31, 26]), $a([0, -1, -1]), $a([2, 22, 32]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["12", 45, 15, 2, 1455, $a([1, 153, 28]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 62, 26]), $a([1, 65, 28]), $a([0, -1, -1]), $a([2, 32, 28]), $a([1, 33, 28]), $a([0, -1, -1]), $a([3, 17, 26]), $a([1, 22, 30]), $a([0, -1, -1])]), $a(["13", 47, 16, 2, 1629, $a([1, 86, 16]), $a([1, 85, 16]), $a([0, -1, -1]), $a([1, 71, 30]), $a([1, 72, 30]), $a([0, -1, -1]), $a([2, 37, 32]), $a([1, 35, 30]), $a([0, -1, -1]), $a([3, 20, 30]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["14", 49, 16, 2, 1805, $a([1, 94, 18]), $a([1, 95, 18]), $a([0, -1, -1]), $a([2, 51, 22]), $a([1, 55, 24]), $a([0, -1, -1]), $a([3, 30, 26]), $a([1, 31, 26]), $a([0, -1, -1]), $a([4, 18, 28]), $a([1, 17, 24]), $a([0, -1, -1])]), $a(["15", 51, 17, 2, 1995, $a([1, 104, 20]), $a([1, 105, 20]), $a([0, -1, -1]), $a([2, 57, 24]), $a([1, 61, 26]), $a([0, -1, -1]), $a([3, 33, 28]), $a([1, 36, 30]), $a([0, -1, -1]), $a([4, 20, 30]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["16", 53, 17, 2, 2187, $a([1, 115, 22]), $a([1, 114, 22]), $a([0, -1, -1]), $a([2, 65, 28]), $a([1, 61, 26]), $a([0, -1, -1]), $a([3, 38, 32]), $a([1, 33, 30]), $a([0, -1, -1]), $a([5, 19, 28]), $a([1, 14, 24]), $a([0, -1, -1])]), $a(["17", 55, 18, 2, 2393, $a([1, 126, 24]), $a([1, 125, 24]), $a([0, -1, -1]), $a([2, 70, 30]), $a([1, 69, 30]), $a([0, -1, -1]), $a([4, 33, 28]), $a([1, 29, 26]), $a([0, -1, -1]), $a([5, 20, 30]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["18", 57, 19, 2, 2607, $a([1, 136, 26]), $a([1, 137, 26]), $a([0, -1, -1]), $a([3, 56, 24]), $a([1, 59, 26]), $a([0, -1, -1]), $a([5, 35, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([6, 18, 28]), $a([1, 21, 28]), $a([0, -1, -1])]), $a(["19", 59, 20, 2, 2829, $a([1, 148, 28]), $a([1, 149, 28]), $a([0, -1, -1]), $a([3, 61, 26]), $a([1, 64, 28]), $a([0, -1, -1]), $a([7, 24, 20]), $a([1, 23, 22]), $a([0, -1, -1]), $a([6, 20, 30]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["20", 61, 20, 2, 3053, $a([3, 107, 20]), $a([0, -1, -1]), $a([0, -1, -1]), $a([3, 65, 28]), $a([1, 72, 30]), $a([0, -1, -1]), $a([7, 26, 22]), $a([1, 23, 22]), $a([0, -1, -1]), $a([7, 19, 28]), $a([1, 20, 32]), $a([0, -1, -1])]), $a(["21", 63, 21, 2, 3291, $a([3, 115, 22]), $a([0, -1, -1]), $a([0, -1, -1]), $a([4, 56, 24]), $a([1, 63, 28]), $a([0, -1, -1]), $a([7, 28, 24]), $a([1, 25, 22]), $a([0, -1, -1]), $a([8, 18, 28]), $a([1, 21, 22]), $a([0, -1, -1])]), $a(["22", 65, 16, 3, 3383, $a([2, 116, 22]), $a([1, 122, 24]), $a([0, -1, -1]), $a([4, 56, 24]), $a([1, 72, 30]), $a([0, -1, -1]), $a([7, 28, 24]), $a([1, 32, 26]), $a([0, -1, -1]), $a([8, 18, 28]), $a([1, 24, 30]), $a([0, -1, -1])]), $a(["23", 67, 17, 3, 3631, $a([3, 127, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([5, 51, 22]), $a([1, 62, 26]), $a([0, -1, -1]), $a([7, 30, 26]), $a([1, 35, 26]), $a([0, -1, -1]), $a([8, 20, 30]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["24", 69, 17, 3, 3887, $a([2, 135, 26]), $a([1, 137, 26]), $a([0, -1, -1]), $a([5, 56, 24]), $a([1, 59, 26]), $a([0, -1, -1]), $a([7, 33, 28]), $a([1, 30, 28]), $a([0, -1, -1]), $a([11, 16, 24]), $a([1, 19, 26]), $a([0, -1, -1])]), $a(["25", 71, 18, 3, 4151, $a([3, 105, 20]), $a([1, 121, 22]), $a([0, -1, -1]), $a([5, 61, 26]), $a([1, 57, 26]), $a([0, -1, -1]), $a([9, 28, 24]), $a([1, 28, 22]), $a([0, -1, -1]), $a([10, 19, 28]), $a([1, 18, 30]), $a([0, -1, -1])]), $a(["26", 73, 18, 3, 4423, $a([2, 157, 30]), $a([1, 150, 28]), $a([0, -1, -1]), $a([5, 65, 28]), $a([1, 61, 26]), $a([0, -1, -1]), $a([8, 33, 28]), $a([1, 34, 30]), $a([0, -1, -1]), $a([10, 19, 28]), $a([2, 15, 26]), $a([0, -1, -1])]), $a(["27", 75, 19, 3, 4703, $a([3, 126, 24]), $a([1, 115, 22]), $a([0, -1, -1]), $a([7, 51, 22]), $a([1, 54, 22]), $a([0, -1, -1]), $a([8, 35, 30]), $a([1, 37, 30]), $a([0, -1, -1]), $a([15, 15, 22]), $a([1, 10, 22]), $a([0, -1, -1])]), $a(["28", 77, 19, 3, 4991, $a([4, 105, 20]), $a([1, 103, 20]), $a([0, -1, -1]), $a([7, 56, 24]), $a([1, 45, 18]), $a([0, -1, -1]), $a([10, 31, 26]), $a([1, 27, 26]), $a([0, -1, -1]), $a([10, 17, 26]), $a([3, 20, 28]), $a([1, 21, 28])]), $a(["29", 79, 20, 3, 5287, $a([3, 139, 26]), $a([1, 137, 28]), $a([0, -1, -1]), $a([6, 66, 28]), $a([1, 66, 30]), $a([0, -1, -1]), $a([9, 36, 30]), $a([1, 34, 32]), $a([0, -1, -1]), $a([13, 19, 28]), $a([1, 17, 32]), $a([0, -1, -1])]), $a(["30", 81, 20, 3, 5591, $a([6, 84, 16]), $a([1, 82, 16]), $a([0, -1, -1]), $a([6, 70, 30]), $a([1, 68, 30]), $a([0, -1, -1]), $a([7, 35, 30]), $a([3, 33, 28]), $a([1, 32, 28]), $a([13, 20, 30]), $a([1, 20, 28]), $a([0, -1, -1])]), $a(["31", 83, 21, 3, 5903, $a([5, 105, 20]), $a([1, 94, 18]), $a([0, -1, -1]), $a([6, 74, 32]), $a([1, 71, 30]), $a([0, -1, -1]), $a([11, 33, 28]), $a([1, 34, 32]), $a([0, -1, -1]), $a([13, 19, 28]), $a([3, 16, 26]), $a([0, -1, -1])]), $a(["32", 85, 17, 4, 6033, $a([4, 127, 24]), $a([1, 126, 24]), $a([0, -1, -1]), $a([7, 66, 28]), $a([1, 66, 30]), $a([0, -1, -1]), $a([12, 30, 24]), $a([1, 24, 28]), $a([1, 24, 30]), $a([15, 19, 28]), $a([1, 17, 32]), $a([0, -1, -1])]), $a(["33", 87, 17, 4, 6353, $a([7, 84, 16]), $a([1, 78, 16]), $a([0, -1, -1]), $a([7, 70, 30]), $a([1, 66, 28]), $a([0, -1, -1]), $a([12, 33, 28]), $a([1, 32, 30]), $a([0, -1, -1]), $a([14, 21, 32]), $a([1, 24, 28]), $a([0, -1, -1])]), $a(["34", 89, 18, 4, 6689, $a([5, 117, 22]), $a([1, 117, 24]), $a([0, -1, -1]), $a([8, 66, 28]), $a([1, 58, 26]), $a([0, -1, -1]), $a([11, 38, 32]), $a([1, 34, 32]), $a([0, -1, -1]), $a([15, 20, 30]), $a([2, 17, 26]), $a([0, -1, -1])]), $a(["35", 91, 18, 4, 7025, $a([4, 148, 28]), $a([1, 146, 28]), $a([0, -1, -1]), $a([8, 68, 30]), $a([1, 70, 24]), $a([0, -1, -1]), $a([10, 36, 32]), $a([3, 38, 28]), $a([0, -1, -1]), $a([16, 19, 28]), $a([3, 16, 26]), $a([0, -1, -1])]), $a(["36", 93, 19, 4, 7377, $a([4, 126, 24]), $a([2, 135, 26]), $a([0, -1, -1]), $a([8, 70, 28]), $a([2, 43, 26]), $a([0, -1, -1]), $a([13, 32, 28]), $a([2, 41, 30]), $a([0, -1, -1]), $a([17, 19, 28]), $a([3, 15, 26]), $a([0, -1, -1])]), $a(["37", 95, 19, 4, 7729, $a([5, 136, 26]), $a([1, 132, 24]), $a([0, -1, -1]), $a([5, 67, 30]), $a([4, 68, 28]), $a([1, 69, 28]), $a([14, 35, 30]), $a([1, 32, 24]), $a([0, -1, -1]), $a([18, 18, 26]), $a([3, 16, 28]), $a([1, 14, 28])]), $a(["38", 97, 19, 4, 8089, $a([3, 142, 26]), $a([3, 141, 28]), $a([0, -1, -1]), $a([8, 70, 30]), $a([1, 73, 32]), $a([1, 74, 32]), $a([12, 34, 30]), $a([3, 34, 26]), $a([1, 35, 28]), $a([18, 21, 32]), $a([1, 27, 30]), $a([0, -1, -1])]), $a(["39", 99, 20, 4, 8465, $a([5, 116, 22]), $a([2, 103, 20]), $a([1, 102, 20]), $a([9, 74, 32]), $a([1, 74, 30]), $a([0, -1, -1]), $a([14, 34, 28]), $a([2, 32, 32]), $a([1, 32, 30]), $a([19, 21, 32]), $a([1, 25, 26]), $a([0, -1, -1])]), $a(["40", 101, 20, 4, 8841, $a([7, 116, 22]), $a([1, 117, 22]), $a([0, -1, -1]), $a([11, 65, 28]), $a([1, 58, 24]), $a([0, -1, -1]), $a([15, 38, 32]), $a([1, 27, 28]), $a([0, -1, -1]), $a([20, 20, 30]), $a([1, 20, 32]), $a([1, 21, 32])]), $a(["41", 103, 17, 5, 9009, $a([6, 136, 26]), $a([1, 130, 24]), $a([0, -1, -1]), $a([11, 66, 28]), $a([1, 62, 30]), $a([0, -1, -1]), $a([14, 34, 28]), $a([3, 34, 32]), $a([1, 30, 30]), $a([18, 20, 30]), $a([3, 20, 28]), $a([2, 15, 26])]), $a(["42", 105, 17, 5, 9401, $a([5, 105, 20]), $a([2, 115, 22]), $a([2, 116, 22]), $a([10, 75, 32]), $a([1, 73, 32]), $a([0, -1, -1]), $a([16, 38, 32]), $a([1, 27, 28]), $a([0, -1, -1]), $a([22, 19, 28]), $a([2, 16, 30]), $a([1, 19, 30])]), $a(["43", 107, 18, 5, 9799, $a([6, 147, 28]), $a([1, 146, 28]), $a([0, -1, -1]), $a([11, 66, 28]), $a([2, 65, 30]), $a([0, -1, -1]), $a([18, 33, 28]), $a([2, 33, 30]), $a([0, -1, -1]), $a([22, 21, 32]), $a([1, 28, 30]), $a([0, -1, -1])]), $a(["44", 109, 18, 5, 10207, $a([6, 116, 22]), $a([3, 125, 24]), $a([0, -1, -1]), $a([11, 75, 32]), $a([1, 68, 30]), $a([0, -1, -1]), $a([13, 35, 28]), $a([6, 34, 32]), $a([1, 30, 30]), $a([23, 21, 32]), $a([1, 26, 30]), $a([0, -1, -1])]), $a(["45", 111, 18, 5, 10623, $a([7, 105, 20]), $a([4, 95, 18]), $a([0, -1, -1]), $a([12, 67, 28]), $a([1, 63, 30]), $a([1, 62, 32]), $a([21, 31, 26]), $a([2, 33, 32]), $a([0, -1, -1]), $a([23, 21, 32]), $a([2, 24, 30]), $a([0, -1, -1])]), $a(["46", 113, 19, 5, 11045, $a([10, 116, 22]), $a([0, -1, -1]), $a([0, -1, -1]), $a([12, 74, 32]), $a([1, 78, 30]), $a([0, -1, -1]), $a([18, 37, 32]), $a([1, 39, 30]), $a([1, 41, 28]), $a([25, 21, 32]), $a([1, 27, 28]), $a([0, -1, -1])]), $a(["47", 115, 19, 5, 11477, $a([5, 126, 24]), $a([4, 115, 22]), $a([1, 114, 22]), $a([12, 67, 28]), $a([2, 66, 32]), $a([1, 68, 30]), $a([21, 35, 30]), $a([1, 39, 30]), $a([0, -1, -1]), $a([26, 21, 32]), $a([1, 28, 28]), $a([0, -1, -1])]), $a(["48", 117, 19, 5, 11917, $a([9, 126, 24]), $a([1, 117, 22]), $a([0, -1, -1]), $a([13, 75, 32]), $a([1, 68, 30]), $a([0, -1, -1]), $a([20, 35, 30]), $a([3, 35, 28]), $a([0, -1, -1]), $a([27, 21, 32]), $a([1, 28, 30]), $a([0, -1, -1])]), $a(["49", 119, 17, 6, 12111, $a([9, 126, 24]), $a([1, 137, 26]), $a([0, -1, -1]), $a([13, 71, 30]), $a([2, 68, 32]), $a([0, -1, -1]), $a([20, 37, 32]), $a([1, 39, 28]), $a([1, 38, 28]), $a([24, 20, 32]), $a([5, 25, 28]), $a([0, -1, -1])]), $a(["50", 121, 17, 6, 12559, $a([8, 147, 28]), $a([1, 141, 28]), $a([0, -1, -1]), $a([10, 73, 32]), $a([4, 74, 30]), $a([1, 73, 30]), $a([16, 36, 32]), $a([6, 39, 30]), $a([1, 37, 30]), $a([27, 21, 32]), $a([3, 20, 26]), $a([0, -1, -1])]), $a(["51", 123, 18, 6, 13025, $a([9, 137, 26]), $a([1, 135, 26]), $a([0, -1, -1]), $a([12, 70, 30]), $a([4, 75, 32]), $a([0, -1, -1]), $a([24, 35, 30]), $a([1, 40, 28]), $a([0, -1, -1]), $a([23, 20, 32]), $a([8, 24, 30]), $a([0, -1, -1])]), $a(["52", 125, 18, 6, 13489, $a([14, 95, 18]), $a([1, 86, 18]), $a([0, -1, -1]), $a([13, 73, 32]), $a([3, 77, 30]), $a([0, -1, -1]), $a([24, 35, 30]), $a([2, 35, 28]), $a([0, -1, -1]), $a([26, 21, 32]), $a([5, 21, 30]), $a([1, 23, 30])]), $a(["53", 127, 18, 6, 13961, $a([9, 147, 28]), $a([1, 142, 28]), $a([0, -1, -1]), $a([10, 73, 30]), $a([6, 70, 32]), $a([1, 71, 32]), $a([25, 35, 30]), $a([2, 34, 26]), $a([0, -1, -1]), $a([29, 21, 32]), $a([4, 22, 30]), $a([0, -1, -1])]), $a(["54", 129, 18, 6, 14441, $a([11, 126, 24]), $a([1, 131, 24]), $a([0, -1, -1]), $a([16, 74, 32]), $a([1, 79, 30]), $a([0, -1, -1]), $a([25, 38, 32]), $a([1, 25, 30]), $a([0, -1, -1]), $a([33, 21, 32]), $a([1, 28, 28]), $a([0, -1, -1])]), $a(["55", 131, 19, 6, 14939, $a([14, 105, 20]), $a([1, 99, 18]), $a([0, -1, -1]), $a([19, 65, 28]), $a([1, 72, 28]), $a([0, -1, -1]), $a([24, 37, 32]), $a([2, 40, 30]), $a([1, 41, 30]), $a([31, 21, 32]), $a([4, 24, 32]), $a([0, -1, -1])]), $a(["56", 133, 19, 6, 15435, $a([10, 147, 28]), $a([1, 151, 28]), $a([0, -1, -1]), $a([15, 71, 30]), $a([3, 71, 32]), $a([1, 73, 32]), $a([24, 37, 32]), $a([3, 38, 30]), $a([1, 39, 30]), $a([36, 19, 30]), $a([3, 29, 26]), $a([0, -1, -1])]), $a(["57", 135, 19, 6, 15939, $a([15, 105, 20]), $a([1, 99, 18]), $a([0, -1, -1]), $a([19, 70, 30]), $a([1, 64, 28]), $a([0, -1, -1]), $a([27, 38, 32]), $a([2, 25, 26]), $a([0, -1, -1]), $a([38, 20, 30]), $a([2, 18, 28]), $a([0, -1, -1])]), $a(["58", 137, 17, 7, 16171, $a([14, 105, 20]), $a([1, 113, 22]), $a([1, 114, 22]), $a([17, 67, 30]), $a([3, 92, 32]), $a([0, -1, -1]), $a([30, 35, 30]), $a([1, 41, 30]), $a([0, -1, -1]), $a([36, 21, 32]), $a([1, 26, 30]), $a([1, 27, 30])]), $a(["59", 139, 17, 7, 16691, $a([11, 146, 28]), $a([1, 146, 26]), $a([0, -1, -1]), $a([20, 70, 30]), $a([1, 60, 26]), $a([0, -1, -1]), $a([29, 38, 32]), $a([1, 24, 32]), $a([0, -1, -1]), $a([40, 20, 30]), $a([2, 17, 26]), $a([0, -1, -1])]), $a(["60", 141, 18, 7, 17215, $a([3, 137, 26]), $a([1, 136, 26]), $a([10, 126, 24]), $a([22, 65, 28]), $a([1, 75, 30]), $a([0, -1, -1]), $a([30, 37, 32]), $a([1, 51, 30]), $a([0, -1, -1]), $a([42, 20, 30]), $a([1, 21, 30]), $a([0, -1, -1])]), $a(["61", 143, 18, 7, 17751, $a([12, 126, 24]), $a([2, 118, 22]), $a([1, 116, 22]), $a([19, 74, 32]), $a([1, 74, 30]), $a([1, 72, 28]), $a([30, 38, 32]), $a([2, 29, 30]), $a([0, -1, -1]), $a([39, 20, 32]), $a([2, 37, 26]), $a([1, 38, 26])]), $a(["62", 145, 18, 7, 18295, $a([12, 126, 24]), $a([3, 136, 26]), $a([0, -1, -1]), $a([21, 70, 30]), $a([2, 65, 28]), $a([0, -1, -1]), $a([34, 35, 30]), $a([1, 44, 32]), $a([0, -1, -1]), $a([42, 20, 30]), $a([2, 19, 28]), $a([2, 18, 28])]), $a(["63", 147, 18, 7, 18847, $a([12, 126, 24]), $a([3, 117, 22]), $a([1, 116, 22]), $a([25, 61, 26]), $a([2, 62, 28]), $a([0, -1, -1]), $a([34, 35, 30]), $a([1, 40, 32]), $a([1, 41, 32]), $a([45, 20, 30]), $a([1, 20, 32]), $a([1, 21, 32])]), $a(["64", 149, 19, 7, 19403, $a([15, 105, 20]), $a([2, 115, 22]), $a([2, 116, 22]), $a([25, 65, 28]), $a([1, 72, 28]), $a([0, -1, -1]), $a([18, 35, 30]), $a([17, 37, 32]), $a([1, 50, 32]), $a([42, 20, 30]), $a([6, 19, 28]), $a([1, 15, 28])]), $a(["65", 151, 19, 7, 19971, $a([19, 105, 20]), $a([1, 101, 20]), $a([0, -1, -1]), $a([33, 51, 22]), $a([1, 65, 22]), $a([0, -1, -1]), $a([40, 33, 28]), $a([1, 28, 28]), $a([0, -1, -1]), $a([49, 20, 30]), $a([1, 18, 28]), $a([0, -1, -1])]), $a(["66", 153, 17, 8, 20229, $a([18, 105, 20]), $a([2, 117, 22]), $a([0, -1, -1]), $a([26, 65, 28]), $a([1, 80, 30]), $a([0, -1, -1]), $a([35, 35, 30]), $a([3, 35, 28]), $a([1, 36, 28]), $a([52, 18, 28]), $a([2, 38, 30]), $a([0, -1, -1])]), $a(["67", 155, 17, 8, 20805, $a([26, 84, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([26, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([45, 31, 26]), $a([1, 9, 26]), $a([0, -1, -1]), $a([52, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["68", 157, 17, 8, 21389, $a([16, 126, 24]), $a([1, 114, 22]), $a([1, 115, 22]), $a([23, 70, 30]), $a([3, 65, 28]), $a([1, 66, 28]), $a([40, 35, 30]), $a([1, 43, 30]), $a([0, -1, -1]), $a([46, 20, 30]), $a([7, 19, 28]), $a([1, 16, 28])]), $a(["69", 159, 18, 8, 21993, $a([19, 116, 22]), $a([1, 105, 22]), $a([0, -1, -1]), $a([20, 70, 30]), $a([7, 66, 28]), $a([1, 63, 28]), $a([40, 35, 30]), $a([1, 42, 32]), $a([1, 43, 32]), $a([54, 20, 30]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["70", 161, 18, 8, 22593, $a([17, 126, 24]), $a([2, 115, 22]), $a([0, -1, -1]), $a([24, 70, 30]), $a([4, 74, 32]), $a([0, -1, -1]), $a([48, 31, 26]), $a([2, 18, 26]), $a([0, -1, -1]), $a([54, 19, 28]), $a([6, 15, 26]), $a([1, 14, 26])]), $a(["71", 163, 18, 8, 23201, $a([29, 84, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([29, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([6, 34, 30]), $a([3, 36, 30]), $a([38, 33, 28]), $a([58, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["72", 165, 18, 8, 23817, $a([16, 147, 28]), $a([1, 149, 28]), $a([0, -1, -1]), $a([31, 66, 28]), $a([1, 37, 26]), $a([0, -1, -1]), $a([48, 33, 28]), $a([1, 23, 26]), $a([0, -1, -1]), $a([53, 20, 30]), $a([6, 19, 28]), $a([1, 17, 28])]), $a(["73", 167, 19, 8, 24453, $a([20, 115, 22]), $a([2, 134, 24]), $a([0, -1, -1]), $a([29, 66, 28]), $a([2, 56, 26]), $a([2, 57, 26]), $a([45, 36, 30]), $a([2, 15, 28]), $a([0, -1, -1]), $a([59, 20, 30]), $a([2, 21, 32]), $a([0, -1, -1])]), $a(["74", 169, 19, 8, 25085, $a([17, 147, 28]), $a([1, 134, 26]), $a([0, -1, -1]), $a([26, 70, 30]), $a([5, 75, 32]), $a([0, -1, -1]), $a([47, 35, 30]), $a([1, 48, 32]), $a([0, -1, -1]), $a([64, 18, 28]), $a([2, 33, 30]), $a([1, 35, 30])]), $a(["75", 171, 17, 9, 25373, $a([22, 115, 22]), $a([1, 133, 24]), $a([0, -1, -1]), $a([33, 65, 28]), $a([1, 74, 28]), $a([0, -1, -1]), $a([43, 36, 30]), $a([5, 27, 28]), $a([1, 30, 28]), $a([57, 20, 30]), $a([5, 21, 32]), $a([1, 24, 32])]), $a(["76", 173, 17, 9, 26021, $a([18, 136, 26]), $a([2, 142, 26]), $a([0, -1, -1]), $a([33, 66, 28]), $a([2, 49, 26]), $a([0, -1, -1]), $a([48, 35, 30]), $a([2, 38, 28]), $a([0, -1, -1]), $a([64, 20, 30]), $a([1, 20, 32]), $a([0, -1, -1])]), $a(["77", 175, 17, 9, 26677, $a([19, 126, 24]), $a([2, 135, 26]), $a([1, 136, 26]), $a([32, 66, 28]), $a([2, 55, 26]), $a([2, 56, 26]), $a([49, 36, 30]), $a([2, 18, 32]), $a([0, -1, -1]), $a([65, 18, 28]), $a([5, 27, 30]), $a([1, 29, 30])]), $a(["78", 177, 18, 9, 27335, $a([20, 137, 26]), $a([1, 130, 26]), $a([0, -1, -1]), $a([30, 75, 32]), $a([2, 71, 32]), $a([0, -1, -1]), $a([46, 35, 30]), $a([6, 39, 32]), $a([0, -1, -1]), $a([3, 12, 30]), $a([70, 19, 28]), $a([0, -1, -1])]), $a(["79", 179, 18, 9, 28007, $a([20, 147, 28]), $a([0, -1, -1]), $a([0, -1, -1]), $a([35, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([49, 35, 30]), $a([5, 35, 28]), $a([0, -1, -1]), $a([70, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["80", 181, 18, 9, 28687, $a([21, 136, 26]), $a([1, 155, 28]), $a([0, -1, -1]), $a([34, 70, 30]), $a([1, 64, 28]), $a([1, 65, 28]), $a([54, 35, 30]), $a([1, 45, 30]), $a([0, -1, -1]), $a([68, 20, 30]), $a([3, 18, 28]), $a([1, 19, 28])]), $a(["81", 183, 18, 9, 29375, $a([19, 126, 24]), $a([5, 115, 22]), $a([1, 114, 22]), $a([33, 70, 30]), $a([3, 65, 28]), $a([1, 64, 28]), $a([52, 35, 30]), $a([3, 41, 32]), $a([1, 40, 32]), $a([67, 20, 30]), $a([5, 21, 32]), $a([1, 24, 32])]), $a(["82", 185, 18, 9, 30071, $a([2, 150, 28]), $a([21, 136, 26]), $a([0, -1, -1]), $a([32, 70, 30]), $a([6, 65, 28]), $a([0, -1, -1]), $a([52, 38, 32]), $a([2, 27, 32]), $a([0, -1, -1]), $a([73, 20, 30]), $a([2, 22, 32]), $a([0, -1, -1])]), $a(["83", 187, 17, 10, 30387, $a([21, 126, 24]), $a([4, 136, 26]), $a([0, -1, -1]), $a([30, 74, 32]), $a([6, 73, 30]), $a([0, -1, -1]), $a([54, 35, 30]), $a([4, 40, 32]), $a([0, -1, -1]), $a([75, 20, 30]), $a([1, 20, 28]), $a([0, -1, -1])]), $a(["84", 189, 17, 10, 31091, $a([30, 105, 20]), $a([1, 114, 22]), $a([0, -1, -1]), $a([3, 45, 22]), $a([55, 47, 20]), $a([0, -1, -1]), $a([2, 26, 26]), $a([62, 33, 28]), $a([0, -1, -1]), $a([79, 18, 28]), $a([4, 33, 30]), $a([0, -1, -1])])]); //#22525 + $1.eclval = $get($1.eclevel, 1) - 49; //#22527 + for (var _IM = 0; _IM <= 83; _IM += 1) { //#22547 + $1.i = _IM; //#22529 + $1.m = $get($1.metrics, $1.i); //#22530 + $1.vers = $get($1.m, 0); //#22531 + $1.size = $get($1.m, 1); //#22532 + $1.alnk = $get($1.m, 2); //#22533 + $1.alnn = $get($1.m, 3); //#22534 + $1.alnr = $f($1.size - ($1.alnk * $1.alnn)); //#22535 + $1.nmod = $get($1.m, 4); //#22536 + $1.ncws = ~~($1.nmod / 8); //#22537 + $1.rbit = $1.nmod % 8; //#22538 + $1.ecbs = $geti($1.m, 5 + ($1.eclval * 3), 3); //#22539 + var _Ii = $1.ecbs; //#22540 + $k[$j++] = 'ecws'; //#22540 + $k[$j++] = 0; //#22540 + for (var _Ij = 0, _Ik = _Ii.length; _Ij < _Ik; _Ij++) { //#22540 + var _Il = $get(_Ii, _Ij); //#22540 + var _Io = $k[--$j]; //#22540 + $k[$j++] = $f(_Io + ($get(_Il, 0) * $get(_Il, 2))); //#22540 + } //#22540 + var _Ip = $k[--$j]; //#22540 + $1[$k[--$j]] = _Ip; //#22540 + $1.dcws = $f($1.ncws - $1.ecws); //#22541 + $1.dmod = $1.dcws * 8; //#22542 + $1.okay = true; //#22543 + if ($ne($1.version, "unset") && $ne($1.version, $1.vers)) { //#22544 + $1.okay = false; //#22544 + } //#22544 + if ($1.bits.length > $1.dmod) { //#22545 + $1.okay = false; //#22545 + } //#22545 + if ($1.okay) { //#22546 + break; //#22546 + } //#22546 + } //#22546 + if (!$1.okay) { //#22551 + $k[$j++] = 'bwipp.hanxinNoValidSymbol'; //#22550 + $k[$j++] = "No valid symbol available"; //#22550 + $0.raiseerror(); //#22550 + } //#22550 + $1.version = $1.vers; //#22553 + $1.msgbits = $1.bits; //#22554 + $1.e1nb = $get($get($1.ecbs, 0), 0); //#22555 + $1.e2nb = $get($get($1.ecbs, 1), 0); //#22555 + $1.e3nb = $get($get($1.ecbs, 2), 0); //#22555 + $1.e1dcws = $get($get($1.ecbs, 0), 1); //#22556 + $1.e2dcws = $get($get($1.ecbs, 1), 1); //#22556 + $1.e3dcws = $get($get($1.ecbs, 2), 1); //#22556 + $1.e1ecws = $get($get($1.ecbs, 0), 2); //#22557 + $1.e2ecws = $get($get($1.ecbs, 1), 2); //#22557 + $1.e3ecws = $get($get($1.ecbs, 2), 2); //#22557 + $1.pad = $s($1.dmod); //#22560 + for (var _JY = 0, _JX = $1.pad.length - 1; _JY <= _JX; _JY += 1) { //#22561 + $put($1.pad, _JY, 48); //#22561 + } //#22561 + $puti($1.pad, 0, $1.msgbits); //#22562 + $1.cws = $a($1.dcws); //#22565 + for (var _Jg = 0, _Jf = $1.cws.length - 1; _Jg <= _Jf; _Jg += 1) { //#22575 + $1.c = _Jg; //#22567 + $1.cwb = $geti($1.pad, $1.c * 8, 8); //#22568 + $1.cw = 0; //#22569 + for (var _Jk = 0; _Jk <= 7; _Jk += 1) { //#22573 + $1.i = _Jk; //#22571 + $1.cw = $f($1.cw + ((~~(Math.pow(2, (8 - $1.i) - 1))) * $f($get($1.cwb, $1.i) - 48))); //#22572 + } //#22572 + $put($1.cws, $1.c, $1.cw); //#22574 + } //#22574 + $1.rscodes = function() { + $1.rspm = $k[--$j]; //#22579 + $1.rsgf = $k[--$j]; //#22580 + $1.rsnc = $k[--$j]; //#22581 + $1.rscws = $k[--$j]; //#22582 + $k[$j++] = Infinity; //#22585 + $k[$j++] = 1; //#22585 + for (var _Jy = 0, _Jz = $f($1.rsgf - 1); _Jy < _Jz; _Jy++) { //#22585 + var _K0 = $k[--$j]; //#22585 + var _K1 = _K0 * 2; //#22585 + $k[$j++] = _K0; //#22585 + $k[$j++] = _K1; //#22585 + if (_K1 >= $1.rsgf) { //#22585 + var _K4 = $k[--$j]; //#22585 + $k[$j++] = $xo(_K4, $1.rspm); //#22585 + } //#22585 + } //#22585 + $1.rsalog = $a(); //#22585 + $1.rslog = $a($1.rsgf); //#22586 + for (var _KA = 1, _K9 = $f($1.rsgf - 1); _KA <= _K9; _KA += 1) { //#22587 + $put($1.rslog, $get($1.rsalog, _KA), _KA); //#22587 + } //#22587 + $1.rsprod = function() { + var _KE = $k[--$j]; //#22591 + var _KF = $k[--$j]; //#22591 + $k[$j++] = _KF; //#22595 + $k[$j++] = _KE; //#22595 + if ((_KE != 0) && (_KF != 0)) { //#22594 + var _KI = $get($1.rslog, $k[--$j]); //#22592 + var _KO = $get($1.rsalog, $f(_KI + $get($1.rslog, $k[--$j])) % $f($1.rsgf - 1)); //#22592 + $k[$j++] = _KO; //#22592 + } else { //#22594 + $j -= 2; //#22594 + $k[$j++] = 0; //#22594 + } //#22594 + }; //#22596 + $k[$j++] = Infinity; //#22599 + $k[$j++] = 1; //#22599 + for (var _KQ = 0, _KR = $1.rsnc; _KQ < _KR; _KQ++) { //#22599 + $k[$j++] = 0; //#22599 + } //#22599 + $1.coeffs = $a(); //#22599 + for (var _KV = 1, _KU = $1.rsnc; _KV <= _KU; _KV += 1) { //#22608 + $1.i = _KV; //#22601 + $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); //#22602 + for (var _Kc = $1.i - 1; _Kc >= 1; _Kc -= 1) { //#22606 + $1.j = _Kc; //#22604 + $k[$j++] = $1.coeffs; //#22605 + $k[$j++] = $1.j; //#22605 + $k[$j++] = $get($1.coeffs, $1.j - 1); //#22605 + $k[$j++] = $get($1.coeffs, $1.j); //#22605 + $k[$j++] = $get($1.rsalog, $1.i); //#22605 + $1.rsprod(); //#22605 + var _Ko = $k[--$j]; //#22605 + var _Kp = $k[--$j]; //#22605 + var _Kq = $k[--$j]; //#22605 + $put($k[--$j], _Kq, $xo(_Kp, _Ko)); //#22605 + } //#22605 + $k[$j++] = $1.coeffs; //#22607 + $k[$j++] = 0; //#22607 + $k[$j++] = $get($1.coeffs, 0); //#22607 + $k[$j++] = $get($1.rsalog, $1.i); //#22607 + $1.rsprod(); //#22607 + var _Ky = $k[--$j]; //#22607 + var _Kz = $k[--$j]; //#22607 + $put($k[--$j], _Kz, _Ky); //#22607 + } //#22607 + $1.nd = $1.rscws.length; //#22611 + $k[$j++] = Infinity; //#22612 + $forall($1.rscws); //#22612 + for (var _L4 = 0, _L5 = $1.rsnc; _L4 < _L5; _L4++) { //#22612 + $k[$j++] = 0; //#22612 + } //#22612 + $k[$j++] = 0; //#22612 + $1.rscws = $a(); //#22612 + for (var _L9 = 0, _L8 = $1.nd - 1; _L9 <= _L8; _L9 += 1) { //#22619 + $1.k = $xo($get($1.rscws, _L9), $get($1.rscws, $1.nd)); //#22614 + for (var _LH = 0, _LG = $f($1.rsnc - 1); _LH <= _LG; _LH += 1) { //#22618 + $1.j = _LH; //#22616 + $k[$j++] = $1.rscws; //#22617 + $k[$j++] = $1.nd + $1.j; //#22617 + $k[$j++] = $get($1.rscws, ($1.nd + $1.j) + 1); //#22617 + $k[$j++] = $1.k; //#22617 + $k[$j++] = $get($1.coeffs, $f($f($1.rsnc - $1.j) - 1)); //#22617 + $1.rsprod(); //#22617 + var _LU = $k[--$j]; //#22617 + var _LV = $k[--$j]; //#22617 + var _LW = $k[--$j]; //#22617 + $put($k[--$j], _LW, $xo(_LV, _LU)); //#22617 + } //#22617 + } //#22617 + $k[$j++] = $geti($1.rscws, 0, $1.rscws.length - 1); //#22622 + }; //#22624 + $1.dcwsb = $a($f($f($1.e1nb + $1.e2nb) + $1.e3nb)); //#22627 + $1.ecwsb = $a($1.dcwsb.length); //#22628 + $1.in = 0; //#22629 + $1.out = 0; //#22629 + for (var _Li = 0, _Lj = $1.e1nb; _Li < _Lj; _Li++) { //#22635 + $k[$j++] = $geti($1.cws, $1.in, $1.e1dcws); //#22631 + $k[$j++] = $1.e1ecws; //#22631 + $k[$j++] = 256; //#22631 + $k[$j++] = 355; //#22631 + $1.rscodes(); //#22631 + var _Lp = $k[--$j]; //#22632 + $put($1.dcwsb, $1.out, $geti(_Lp, 0, $1.e1dcws)); //#22632 + $put($1.ecwsb, $1.out, $geti(_Lp, $1.e1dcws, $1.e1ecws)); //#22633 + $1.in = $f($1.in + $1.e1dcws); //#22634 + $1.out = $1.out + 1; //#22634 + } //#22634 + for (var _M3 = 0, _M4 = $1.e2nb; _M3 < _M4; _M3++) { //#22641 + $k[$j++] = $geti($1.cws, $1.in, $1.e2dcws); //#22637 + $k[$j++] = $1.e2ecws; //#22637 + $k[$j++] = 256; //#22637 + $k[$j++] = 355; //#22637 + $1.rscodes(); //#22637 + var _MA = $k[--$j]; //#22638 + $put($1.dcwsb, $1.out, $geti(_MA, 0, $1.e2dcws)); //#22638 + $put($1.ecwsb, $1.out, $geti(_MA, $1.e2dcws, $1.e2ecws)); //#22639 + $1.in = $f($1.in + $1.e2dcws); //#22640 + $1.out = $1.out + 1; //#22640 + } //#22640 + for (var _MO = 0, _MP = $1.e3nb; _MO < _MP; _MO++) { //#22647 + $k[$j++] = $geti($1.cws, $1.in, $1.e3dcws); //#22643 + $k[$j++] = $1.e3ecws; //#22643 + $k[$j++] = 256; //#22643 + $k[$j++] = 355; //#22643 + $1.rscodes(); //#22643 + var _MV = $k[--$j]; //#22644 + $put($1.dcwsb, $1.out, $geti(_MV, 0, $1.e3dcws)); //#22644 + $put($1.ecwsb, $1.out, $geti(_MV, $1.e3dcws, $1.e3ecws)); //#22645 + $1.in = $f($1.in + $1.e3dcws); //#22646 + $1.out = $1.out + 1; //#22646 + } //#22646 + $1.cws = $a($1.ncws); //#22650 + $1.cw = 0; //#22651 + for (var _Mm = 0, _Ml = $1.dcwsb.length - 1; _Mm <= _Ml; _Mm += 1) { //#22656 + $1.i = _Mm; //#22653 + var _Mp = $get($1.dcwsb, $1.i); //#22654 + $puti($1.cws, $1.cw, _Mp); //#22654 + $1.cw = _Mp.length + $1.cw; //#22654 + var _Mv = $get($1.ecwsb, $1.i); //#22655 + $puti($1.cws, $1.cw, _Mv); //#22655 + $1.cw = _Mv.length + $1.cw; //#22655 + } //#22655 + $k[$j++] = Infinity; //#22661 + var _Mz = $1.ncws; //#22660 + var _N0 = 12; //#22660 + var _N1 = _Mz - 1; //#22660 + if ((_Mz - 1) > 12) { //#22660 + var _ = _N0; //#22660 + _N0 = _N1; //#22660 + _N1 = _; //#22660 + } //#22660 + for (var _N3 = 0, _N2 = _N1; _N3 <= _N2; _N3 += 1) { //#22662 + for (var _N6 = _N3, _N5 = $1.ncws - 1; _N6 <= _N5; _N6 += 13) { //#22661 + $k[$j++] = _N6; //#22661 + if (_N6 < $1.ncws) { //#22661 + var _NA = $get($1.cws, $k[--$j]); //#22661 + $k[$j++] = _NA; //#22661 + } else { //#22661 + $j--; //#22661 + } //#22661 + } //#22661 + } //#22661 + $1.cws = $a(); //#22661 + if ($1.rbit > 0) { //#22671 + $1.pad = $a($1.cws.length + 1); //#22667 + $puti($1.pad, 0, $1.cws); //#22668 + $put($1.pad, $1.pad.length - 1, 0); //#22669 + $1.cws = $1.pad; //#22670 + } //#22670 + $k[$j++] = Infinity; //#22674 + for (var _NM = 0, _NN = $1.size * $1.size; _NM < _NN; _NM++) { //#22674 + $k[$j++] = -1; //#22674 + } //#22674 + $1.pixs = $a(); //#22674 + $1.qmv = function() { + var _NQ = $k[--$j]; //#22675 + var _NR = $k[--$j]; //#22675 + $k[$j++] = $f(_NR + (_NQ * $1.size)); //#22675 + }; //#22675 + if ($1.alnn != 0) { //#22734 + $1.trmv = function() { + var _NU = $k[--$j]; //#22679 + var _NW = $k[--$j]; //#22679 + $k[$j++] = $f(($f(($f((_NU * $1.size) + $1.size)) - 1)) - _NW); //#22679 + }; //#22679 + $1.aplot = function() { + var _NX = $k[--$j]; //#22681 + var _NY = $k[--$j]; //#22681 + var _NZ = $k[--$j]; //#22681 + $k[$j++] = _NX; //#22681 + $k[$j++] = _NZ; //#22681 + $k[$j++] = _NY; //#22681 + $k[$j++] = _NX; //#22681 + $k[$j++] = _NY; //#22681 + $k[$j++] = _NZ; //#22681 + $1.trmv(); //#22681 + var _Nb = $k[--$j]; //#22681 + $put($1.pixs, _Nb, $k[--$j]); //#22681 + $1.trmv(); //#22682 + var _Ne = $k[--$j]; //#22682 + $put($1.pixs, _Ne, $k[--$j]); //#22682 + }; //#22683 + $1.i = 0; //#22684 + $1.stag = 0; //#22684 + for (;;) { //#22706 + if ($1.i >= $1.size) { //#22685 + break; //#22685 + } //#22685 + for (var _Nk = 0, _Nj = $f($1.size - 1); _Nk <= _Nj; _Nk += 1) { //#22699 + $1.j = _Nk; //#22687 + if ($f($1.j + $1.alnr) < $1.size) { //#22693 + $k[$j++] = (((((~~($1.j / $1.alnk)) + $1.stag) % 2) == 0) && (!(($1.i == 0) && ($1.j < $1.alnk)))) || (($1.j % $1.alnk) == 0); //#22691 + } else { //#22693 + $k[$j++] = ($f($1.alnn + $1.stag) % 2) == 0; //#22693 + } //#22693 + if ($k[--$j]) { //#22698 + $k[$j++] = $1.j; //#22696 + $k[$j++] = $1.i; //#22696 + $k[$j++] = 1; //#22696 + $1.aplot(); //#22696 + var _O1 = $1.j; //#22697 + var _O2 = $1.i; //#22697 + $k[$j++] = _O1 + 1; //#22697 + $k[$j++] = _O2 + 1; //#22697 + if (((_O2 + 1) < $1.size) && ((_O1 + 1) < $1.size)) { //#22697 + $k[$j++] = 0; //#22697 + $1.aplot(); //#22697 + } else { //#22697 + $j -= 2; //#22697 + } //#22697 + } //#22697 + } //#22697 + if ($f($1.i + $1.alnr) == $1.size) { //#22703 + $1.i = $f($f($1.i + $1.alnr) - 1); //#22701 + } else { //#22703 + $1.i = $f($1.i + $1.alnk); //#22703 + } //#22703 + $1.stag = 1 - $1.stag; //#22705 + } //#22705 + for (var _OH = $1.alnk, _OI = $1.alnk, _OG = $f($1.size - 2); _OI < 0 ? _OH >= _OG : _OH <= _OG; _OH += _OI) { //#22733 + $1.i = _OH; //#22708 + if (((~~($1.i / $1.alnk)) % 2) != 0) { //#22720 + $k[$j++] = $1.pixs; //#22710 + $k[$j++] = 0; //#22710 + $k[$j++] = $1.i - 1; //#22710 + $1.trmv(); //#22710 + var _ON = $k[--$j]; //#22710 + $put($k[--$j], _ON, 0); //#22710 + $k[$j++] = $1.pixs; //#22711 + $k[$j++] = 0; //#22711 + $k[$j++] = $1.i + 1; //#22711 + $1.trmv(); //#22711 + var _OR = $k[--$j]; //#22711 + $put($k[--$j], _OR, 0); //#22711 + $k[$j++] = $1.pixs; //#22712 + $k[$j++] = 1; //#22712 + $k[$j++] = $1.i - 1; //#22712 + $1.trmv(); //#22712 + var _OV = $k[--$j]; //#22712 + $put($k[--$j], _OV, 0); //#22712 + $k[$j++] = $1.pixs; //#22713 + $k[$j++] = 1; //#22713 + $k[$j++] = $1.i; //#22713 + $1.trmv(); //#22713 + var _OZ = $k[--$j]; //#22713 + $put($k[--$j], _OZ, 0); //#22713 + $k[$j++] = $1.pixs; //#22714 + $k[$j++] = 1; //#22714 + $k[$j++] = $1.i + 1; //#22714 + $1.trmv(); //#22714 + var _Od = $k[--$j]; //#22714 + $put($k[--$j], _Od, 0); //#22714 + $k[$j++] = $1.pixs; //#22715 + $k[$j++] = $1.i - 1; //#22715 + $k[$j++] = 0; //#22715 + $1.trmv(); //#22715 + var _Oh = $k[--$j]; //#22715 + $put($k[--$j], _Oh, 0); //#22715 + $k[$j++] = $1.pixs; //#22716 + $k[$j++] = $1.i + 1; //#22716 + $k[$j++] = 0; //#22716 + $1.trmv(); //#22716 + var _Ol = $k[--$j]; //#22716 + $put($k[--$j], _Ol, 0); //#22716 + $k[$j++] = $1.pixs; //#22717 + $k[$j++] = $1.i - 1; //#22717 + $k[$j++] = 1; //#22717 + $1.trmv(); //#22717 + var _Op = $k[--$j]; //#22717 + $put($k[--$j], _Op, 0); //#22717 + $k[$j++] = $1.pixs; //#22718 + $k[$j++] = $1.i; //#22718 + $k[$j++] = 1; //#22718 + $1.trmv(); //#22718 + var _Ot = $k[--$j]; //#22718 + $put($k[--$j], _Ot, 0); //#22718 + $k[$j++] = $1.pixs; //#22719 + $k[$j++] = $1.i + 1; //#22719 + $k[$j++] = 1; //#22719 + $1.trmv(); //#22719 + var _Ox = $k[--$j]; //#22719 + $put($k[--$j], _Ox, 0); //#22719 + } //#22719 + $k[$j++] = $1.pixs; //#22721 + $k[$j++] = $f($1.size - 1); //#22721 + $k[$j++] = $1.i - 1; //#22721 + $1.trmv(); //#22721 + var _P2 = $k[--$j]; //#22721 + if ($get($k[--$j], _P2) != 1) { //#22732 + $k[$j++] = $1.pixs; //#22722 + $k[$j++] = $f($1.size - 1); //#22722 + $k[$j++] = $1.i - 1; //#22722 + $1.trmv(); //#22722 + var _P8 = $k[--$j]; //#22722 + $put($k[--$j], _P8, 0); //#22722 + $k[$j++] = $1.pixs; //#22723 + $k[$j++] = $f($1.size - 2); //#22723 + $k[$j++] = $1.i - 1; //#22723 + $1.trmv(); //#22723 + var _PD = $k[--$j]; //#22723 + $put($k[--$j], _PD, 0); //#22723 + $k[$j++] = $1.pixs; //#22724 + $k[$j++] = $f($1.size - 2); //#22724 + $k[$j++] = $1.i; //#22724 + $1.trmv(); //#22724 + var _PI = $k[--$j]; //#22724 + $put($k[--$j], _PI, 0); //#22724 + $k[$j++] = $1.pixs; //#22725 + $k[$j++] = $f($1.size - 2); //#22725 + $k[$j++] = $1.i + 1; //#22725 + $1.trmv(); //#22725 + var _PN = $k[--$j]; //#22725 + $put($k[--$j], _PN, 0); //#22725 + $k[$j++] = $1.pixs; //#22726 + $k[$j++] = $f($1.size - 1); //#22726 + $k[$j++] = $1.i + 1; //#22726 + $1.trmv(); //#22726 + var _PS = $k[--$j]; //#22726 + $put($k[--$j], _PS, 0); //#22726 + $k[$j++] = $1.pixs; //#22727 + $k[$j++] = $1.i - 1; //#22727 + $k[$j++] = $f($1.size - 1); //#22727 + $1.trmv(); //#22727 + var _PX = $k[--$j]; //#22727 + $put($k[--$j], _PX, 0); //#22727 + $k[$j++] = $1.pixs; //#22728 + $k[$j++] = $1.i - 1; //#22728 + $k[$j++] = $f($1.size - 2); //#22728 + $1.trmv(); //#22728 + var _Pc = $k[--$j]; //#22728 + $put($k[--$j], _Pc, 0); //#22728 + $k[$j++] = $1.pixs; //#22729 + $k[$j++] = $1.i; //#22729 + $k[$j++] = $f($1.size - 2); //#22729 + $1.trmv(); //#22729 + var _Ph = $k[--$j]; //#22729 + $put($k[--$j], _Ph, 0); //#22729 + $k[$j++] = $1.pixs; //#22730 + $k[$j++] = $1.i + 1; //#22730 + $k[$j++] = $f($1.size - 2); //#22730 + $1.trmv(); //#22730 + var _Pm = $k[--$j]; //#22730 + $put($k[--$j], _Pm, 0); //#22730 + $k[$j++] = $1.pixs; //#22731 + $k[$j++] = $1.i + 1; //#22731 + $k[$j++] = $f($1.size - 1); //#22731 + $1.trmv(); //#22731 + var _Pr = $k[--$j]; //#22731 + $put($k[--$j], _Pr, 0); //#22731 + } //#22731 + } //#22731 + } //#22731 + $1.fpat = $a([$a([1, 1, 1, 1, 1, 1, 1, 0]), $a([1, 0, 0, 0, 0, 0, 0, 0]), $a([1, 0, 1, 1, 1, 1, 1, 0]), $a([1, 0, 1, 0, 0, 0, 0, 0]), $a([1, 0, 1, 0, 1, 1, 1, 0]), $a([1, 0, 1, 0, 1, 1, 1, 0]), $a([1, 0, 1, 0, 1, 1, 1, 0]), $a([0, 0, 0, 0, 0, 0, 0, 0])]); //#22746 + $1.fpat2 = $a([$a([1, 1, 1, 0, 1, 0, 1, 0]), $a([1, 1, 1, 0, 1, 0, 1, 0]), $a([1, 1, 1, 0, 1, 0, 1, 0]), $a([0, 0, 0, 0, 1, 0, 1, 0]), $a([1, 1, 1, 1, 1, 0, 1, 0]), $a([0, 0, 0, 0, 0, 0, 1, 0]), $a([1, 1, 1, 1, 1, 1, 1, 0]), $a([0, 0, 0, 0, 0, 0, 0, 0])]); //#22756 + for (var _QD = 0, _QC = $1.fpat.length - 1; _QD <= _QC; _QD += 1) { //#22768 + $1.y = _QD; //#22758 + for (var _QH = 0, _QG = $get($1.fpat, 0).length - 1; _QH <= _QG; _QH += 1) { //#22767 + $1.x = _QH; //#22760 + $1.fpb = $get($get($1.fpat, $1.y), $1.x); //#22761 + $1.fpb2 = $get($get($1.fpat2, $1.y), $1.x); //#22762 + $k[$j++] = $1.pixs; //#22763 + $k[$j++] = $1.x; //#22763 + $k[$j++] = $1.y; //#22763 + $1.qmv(); //#22763 + var _QW = $k[--$j]; //#22763 + $put($k[--$j], _QW, $1.fpb); //#22763 + $k[$j++] = $1.pixs; //#22764 + $k[$j++] = $f($f($1.size - $1.x) - 1); //#22764 + $k[$j++] = $1.y; //#22764 + $1.qmv(); //#22764 + var _Qd = $k[--$j]; //#22764 + $put($k[--$j], _Qd, $1.fpb); //#22764 + $k[$j++] = $1.pixs; //#22765 + $k[$j++] = $f($f($1.size - $1.x) - 1); //#22765 + $k[$j++] = $f($f($1.size - $1.y) - 1); //#22765 + $1.qmv(); //#22765 + var _Ql = $k[--$j]; //#22765 + $put($k[--$j], _Ql, $1.fpb); //#22765 + $k[$j++] = $1.pixs; //#22766 + $k[$j++] = $1.x; //#22766 + $k[$j++] = $f($f($1.size - $1.y) - 1); //#22766 + $1.qmv(); //#22766 + var _Qs = $k[--$j]; //#22766 + $put($k[--$j], _Qs, $1.fpb2); //#22766 + } //#22766 + } //#22766 + $1.functionmap = $a([$a([$a([0, 8]), $a([$f($1.size - 1), $f($1.size - 9)])]), $a([$a([1, 8]), $a([$f($1.size - 2), $f($1.size - 9)])]), $a([$a([2, 8]), $a([$f($1.size - 3), $f($1.size - 9)])]), $a([$a([3, 8]), $a([$f($1.size - 4), $f($1.size - 9)])]), $a([$a([4, 8]), $a([$f($1.size - 5), $f($1.size - 9)])]), $a([$a([5, 8]), $a([$f($1.size - 6), $f($1.size - 9)])]), $a([$a([6, 8]), $a([$f($1.size - 7), $f($1.size - 9)])]), $a([$a([7, 8]), $a([$f($1.size - 8), $f($1.size - 9)])]), $a([$a([8, 8]), $a([$f($1.size - 9), $f($1.size - 9)])]), $a([$a([8, 7]), $a([$f($1.size - 9), $f($1.size - 8)])]), $a([$a([8, 6]), $a([$f($1.size - 9), $f($1.size - 7)])]), $a([$a([8, 5]), $a([$f($1.size - 9), $f($1.size - 6)])]), $a([$a([8, 4]), $a([$f($1.size - 9), $f($1.size - 5)])]), $a([$a([8, 3]), $a([$f($1.size - 9), $f($1.size - 4)])]), $a([$a([8, 2]), $a([$f($1.size - 9), $f($1.size - 3)])]), $a([$a([8, 1]), $a([$f($1.size - 9), $f($1.size - 2)])]), $a([$a([8, 0]), $a([$f($1.size - 9), $f($1.size - 1)])]), $a([$a([$f($1.size - 9), 0]), $a([8, $f($1.size - 1)])]), $a([$a([$f($1.size - 9), 1]), $a([8, $f($1.size - 2)])]), $a([$a([$f($1.size - 9), 2]), $a([8, $f($1.size - 3)])]), $a([$a([$f($1.size - 9), 3]), $a([8, $f($1.size - 4)])]), $a([$a([$f($1.size - 9), 4]), $a([8, $f($1.size - 5)])]), $a([$a([$f($1.size - 9), 5]), $a([8, $f($1.size - 6)])]), $a([$a([$f($1.size - 9), 6]), $a([8, $f($1.size - 7)])]), $a([$a([$f($1.size - 9), 7]), $a([8, $f($1.size - 8)])]), $a([$a([$f($1.size - 9), 8]), $a([8, $f($1.size - 9)])]), $a([$a([$f($1.size - 8), 8]), $a([7, $f($1.size - 9)])]), $a([$a([$f($1.size - 7), 8]), $a([6, $f($1.size - 9)])]), $a([$a([$f($1.size - 6), 8]), $a([5, $f($1.size - 9)])]), $a([$a([$f($1.size - 5), 8]), $a([4, $f($1.size - 9)])]), $a([$a([$f($1.size - 4), 8]), $a([3, $f($1.size - 9)])]), $a([$a([$f($1.size - 3), 8]), $a([2, $f($1.size - 9)])]), $a([$a([$f($1.size - 2), 8]), $a([1, $f($1.size - 9)])]), $a([$a([$f($1.size - 1), 8]), $a([0, $f($1.size - 9)])])]); //#22790 + var _Tf = $1.functionmap; //#22791 + for (var _Tg = 0, _Th = _Tf.length; _Tg < _Th; _Tg++) { //#22793 + $forall($get(_Tf, _Tg), function() { //#22792 + $forall($k[--$j]); //#22792 + $1.qmv(); //#22792 + $put($1.pixs, $k[--$j], 0); //#22792 + }); //#22792 + } //#22792 + var _Ts = $a([function() { + $j -= 2; //#22796 + $k[$j++] = 1; //#22796 + }, function() { + var _Tm = $k[--$j]; //#22797 + var _Tn = $k[--$j]; //#22797 + $k[$j++] = $f(_Tn + _Tm) % 2; //#22797 + }, function() { + var _To = $k[--$j]; //#22798 + var _Tp = $k[--$j]; //#22798 + $k[$j++] = ($f(($f(_To + _Tp) % 3) + (_Tp % 3))) % 2; //#22798 + }, function() { + var _Tq = $k[--$j]; //#22799 + var _Tr = $k[--$j]; //#22799 + $k[$j++] = ($f((_Tr % _Tq) + ($f((_Tq % _Tr) + ($f((_Tq % 3) + (_Tr % 3))))))) % 2; //#22800 + }]); //#22800 + $1.maskfuncs = _Ts; //#22801 + if ($1.mask != -1) { //#22805 + $1.maskfuncs = $a([$get($1.maskfuncs, $1.mask - 1)]); //#22803 + $1.bestmaskval = $1.mask - 1; //#22804 + } //#22804 + $1.masks = $a($1.maskfuncs.length); //#22806 + for (var _U3 = 0, _U2 = $1.masks.length - 1; _U3 <= _U2; _U3 += 1) { //#22820 + $1.m = _U3; //#22808 + $1.mask = $a($1.size * $1.size); //#22809 + for (var _U9 = 0, _U8 = $f($1.size - 1); _U9 <= _U8; _U9 += 1) { //#22818 + $1.j = _U9; //#22811 + for (var _UC = 0, _UB = $f($1.size - 1); _UC <= _UB; _UC += 1) { //#22817 + $1.i = _UC; //#22813 + $k[$j++] = $1.i + 1; //#22814 + $k[$j++] = $1.j + 1; //#22814 + if ($get($1.maskfuncs, $1.m)() === true) { break; - } - $k[$j++] = $get($1.gpf, $1.i); - $k[$j++] = $1.iso646; - $1.encode(); - $1.i = $1.i + 1; - break; - } - } - } - $1.gpf = $geti($1.gpfenc, 0, $1.j); - $k[$j++] = "pad"; - $k[$j++] = $1.cdf.length + $1.gpf.length; - $1.rembits(); - var _B7 = $a($k[--$j]); - $1[$k[--$j]] = _B7; - if ($1.pad.length > 0) { - for (var _BC = 0, _BB = $1.pad.length - 1; _BC <= _BB; _BC += 5) { - $1.i = _BC; - var _BD = $1.pad; - var _BE = $1.i; - var _BF = $a([ 0, 0, 1, 0, 0 ]); - var _BG = $1.pad; - var _BH = $1.i; - var _BI = 5; - var _BJ = _BG.length - _BH; - if (_BG.length - _BH > 5) { - var _ = _BI; - _BI = _BJ; - _BJ = _; - } - $puti(_BD, _BE, $geti(_BF, 0, _BJ)); - } - if ($eq($1.mode, "numeric")) { - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $aload($1.pad); - $1.pad = $geti($a(), 0, $1.pad.length); - } - if ($eq($1.mode, "alpha")) { - $k[$j++] = Infinity; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $aload($1.pad); - $1.pad = $geti($a(), 0, $1.pad.length); - } - } - $k[$j++] = Infinity; - $aload($1.cdf); - $aload($1.gpf); - $aload($1.pad); - $1.bits = $a(); - if ($1.ccversion == "a") { - $k[$j++] = Infinity; - $k[$j++] = $a([ 0, 0, 0, 0, 0, 0, 1 ]); - for (var _Bb = 0, _Bc = 68; _Bb < _Bc; _Bb++) { - $k[$j++] = $a(7); - } - $1.pwr928 = $a(); - for (var _Bf = 1; _Bf <= 68; _Bf += 1) { - $1.j = _Bf; - $1.v = 0; - for (var _Bg = 6; _Bg >= 1; _Bg -= 1) { - $1.i = _Bg; - $1.v = $f($get($get($1.pwr928, $1.j - 1), $1.i) * 2 + ~~($1.v / 928)); - $put($get($1.pwr928, $1.j), $1.i, $1.v % 928); - } - $put($get($1.pwr928, $1.j), 0, $f($get($get($1.pwr928, $1.j - 1), 0) * 2 + ~~($1.v / 928))); - } - $k[$j++] = Infinity; - for (var _C0 = 0, _C1 = 28; _C0 < _C1; _C0++) { - $k[$j++] = 0; - } - $1.cws = $a(); - $1.b = 0; - $1.c = 0; - for (;;) { - if ($1.b == $1.bits.length) { - break; - } - var _C5 = $1.bits; - var _C6 = $1.b; - var _C7 = $1.bits; - var _C8 = $1.b; - var _C9 = _C7.length - _C8; - var _CA = 69; - if (69 > _C7.length - _C8) { - var _ = _C9; - _C9 = _CA; - _CA = _; - } - $1.bs = $geti(_C5, _C6, _CA); - $1.bsl = $1.bs.length; - $1.cs = $geti($1.cws, $1.c, ~~($1.bsl / 10) + 1); - $1.csl = $1.cs.length; - for (var _CK = 0, _CJ = $1.bsl - 1; _CK <= _CJ; _CK += 1) { - $1.i = _CK; - for (var _CN = 0, _CM = $1.csl - 1; _CN <= _CM; _CN += 1) { - $1.j = _CN; - var _CO = $1.cs; - var _CP = $1.j; - $put(_CO, _CP, $f($get(_CO, _CP) + $get($get($1.pwr928, $1.i), $1.j + 7 - $1.csl) * $get($1.bs, $1.bsl - $1.i - 1))); - } - } - for (var _Cc = $1.csl - 1; _Cc >= 1; _Cc -= 1) { - $1.i = _Cc; - var _Cd = $1.cs; - var _Ce = $1.i; - $put(_Cd, _Ce - 1, $f($get(_Cd, _Ce - 1) + ~~($get($1.cs, $1.i) / 928))); - var _Cj = $1.cs; - var _Ck = $1.i; - $put(_Cj, _Ck, $get(_Cj, _Ck) % 928); - } - $1.b = $1.b + $1.bsl; - $1.c = $1.c + $1.csl; - } - $1.cws = $geti($1.cws, 0, $1.c); - $1.barcode = $s($1.cws.length * 4); - for (var _Cx = 0, _Cw = $1.cws.length - 1; _Cx <= _Cw; _Cx += 1) { - $1.i = _Cx; - var _Cz = $strcpy($s(4), "^ "); - var _D4 = $cvrs($s(4), $get($1.cws, $1.i), 10); - $puti(_Cz, 4 - _D4.length, _D4); - $puti($1.barcode, $1.i * 4, _Cz); - } - delete $1.options["parse"]; - $put($1.options, "dontdraw", true); - $put($1.options, "cca", true); - $put($1.options, "columns", $1.cccolumns); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.micropdf417(); - var _DE = $k[--$j]; - $1[$k[--$j]] = _DE; - } - if ($1.ccversion == "b") { - $1.barcode = $s(~~($1.bits.length / 8)); - for (var _DL = 0, _DK = $1.barcode.length - 1; _DL <= _DK; _DL += 1) { - $1.i = _DL; - var _DO = $geti($1.bits, $1.i * 8, 8); - $k[$j++] = 0; - for (var _DP = 0, _DQ = _DO.length; _DP < _DQ; _DP++) { - var _DS = $k[--$j]; - $k[$j++] = $f(_DS + $get(_DO, _DP)) * 2; - } - $put($1.barcode, $1.i, ~~($k[--$j] / 2)); - } - delete $1.options["parse"]; - $put($1.options, "dontdraw", true); - $put($1.options, "ccb", true); - $put($1.options, "columns", $1.cccolumns); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.micropdf417(); - var _Dd = $k[--$j]; - $1[$k[--$j]] = _Dd; - } - if ($1.ccversion == "c") { - $1.barcode = $s(~~($1.bits.length / 8)); - for (var _Dk = 0, _Dj = $1.barcode.length - 1; _Dk <= _Dj; _Dk += 1) { - $1.i = _Dk; - var _Dn = $geti($1.bits, $1.i * 8, 8); - $k[$j++] = 0; - for (var _Do = 0, _Dp = _Dn.length; _Do < _Dp; _Do++) { - var _Dr = $k[--$j]; - $k[$j++] = $f(_Dr + $get(_Dn, _Do)) * 2; - } - $put($1.barcode, $1.i, ~~($k[--$j] / 2)); - } - delete $1.options["parse"]; - $put($1.options, "dontdraw", true); - $put($1.options, "ccc", true); - $put($1.options, "columns", $1.cccolumns); - $put($1.options, "eclevel", ~~(Math.log($1.eccws) / Math.log(2)) - 1); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.pdf417(); - var _E4 = $k[--$j]; - $1[$k[--$j]] = _E4; - } - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + } //#22814 + var _UI = $k[--$j]; //#22814 + $k[$j++] = _UI == 0; //#22815 + $k[$j++] = $1.pixs; //#22815 + $k[$j++] = $1.i; //#22815 + $k[$j++] = $1.j; //#22815 + $1.qmv(); //#22815 + var _UM = $k[--$j]; //#22815 + var _UO = $get($k[--$j], _UM); //#22815 + var _UP = $k[--$j]; //#22815 + var _UQ = (_UP && (_UO == -1)) ? 1 : 0; //#22815 + $k[$j++] = _UQ; //#22816 + $k[$j++] = $1.mask; //#22816 + $k[$j++] = $1.i; //#22816 + $k[$j++] = $1.j; //#22816 + $1.qmv(); //#22816 + var _UU = $k[--$j]; //#22816 + var _UV = $k[--$j]; //#22816 + $put(_UV, _UU, $k[--$j]); //#22816 + } //#22816 + } //#22816 + $put($1.masks, $1.m, $1.mask); //#22819 + } //#22819 + $1.posx = 0; //#22823 + $1.posy = 0; //#22824 + $1.num = 0; //#22825 + for (;;) { //#22835 + if ($1.posy == $1.size) { //#22827 + break; //#22827 + } //#22827 + $k[$j++] = $1.pixs; //#22828 + $k[$j++] = $1.posx; //#22828 + $k[$j++] = $1.posy; //#22828 + $1.qmv(); //#22828 + var _Uf = $k[--$j]; //#22828 + if ($get($k[--$j], _Uf) == -1) { //#22832 + var _Uk = $get($1.cws, ~~($1.num / 8)); //#22829 + var _Um = -(7 - ($1.num % 8)); //#22829 + $k[$j++] = ((_Um < 0 ? _Uk >>> -_Um : _Uk << _Um)) & 1; //#22830 + $k[$j++] = $1.pixs; //#22830 + $k[$j++] = $1.posx; //#22830 + $k[$j++] = $1.posy; //#22830 + $1.qmv(); //#22830 + var _Uq = $k[--$j]; //#22830 + var _Ur = $k[--$j]; //#22830 + $put(_Ur, _Uq, $k[--$j]); //#22830 + $1.num = $1.num + 1; //#22831 + } //#22831 + $1.posx = $1.posx + 1; //#22833 + if ($1.posx == $1.size) { //#22834 + $1.posx = 0; //#22834 + $1.posy = $1.posy + 1; //#22834 + } //#22834 + } //#22834 + $1.evalfulln1n3 = function() { + $1.scrle = $k[--$j]; //#22839 + $k[$j++] = 'scr1'; //#22841 + $k[$j++] = 0; //#22841 + $forall($1.scrle, function() { //#22841 + var _V0 = $k[--$j]; //#22841 + $k[$j++] = _V0; //#22841 + if (_V0 >= 3) { //#22841 + var _V1 = $k[--$j]; //#22841 + var _V3 = $f($k[--$j] + (_V1 * 4)); //#22841 + $k[$j++] = _V3; //#22841 + $k[$j++] = _V3; //#22841 + } //#22841 + $j--; //#22841 + }); //#22841 + var _V4 = $k[--$j]; //#22841 + $1[$k[--$j]] = _V4; //#22841 + $1.scr3 = 0; //#22842 + for (var _V8 = 5, _V7 = $1.scrle.length - 1; _V8 <= _V7; _V8 += 2) { //#22858 + $1.j = _V8; //#22845 + if (($get($1.scrle, $1.j) % 3) == 0) { //#22857 + $1.fact = ~~($get($1.scrle, $1.j) / 3); //#22847 + var _VH = $geti($1.scrle, $1.j - 4, 4); //#22848 + for (var _VI = 0, _VJ = _VH.length; _VI < _VJ; _VI++) { //#22848 + $k[$j++] = $get(_VH, _VI) == $1.fact; //#22848 + } //#22848 + var _VM = $k[--$j]; //#22848 + var _VN = $k[--$j]; //#22848 + var _VO = $k[--$j]; //#22848 + var _VP = $k[--$j]; //#22848 + if (_VP && (_VO && (_VN && _VM))) { //#22856 + if (($1.j == 5) || (($1.j + 2) >= $1.scrle.length)) { //#22853 + $1.scr3 = $1.scr3 + 50; //#22850 + } else { //#22853 + if (($get($1.scrle, $1.j - 5) >= 3) || ($get($1.scrle, $1.j + 1) >= 3)) { //#22854 + $1.scr3 = $1.scr3 + 50; //#22853 + } //#22853 + } //#22853 + } //#22853 + } //#22853 + } //#22853 + for (var _Vd = 1, _Vc = $1.scrle.length - 5; _Vd <= _Vc; _Vd += 2) { //#22874 + $1.j = _Vd; //#22861 + if (($get($1.scrle, $1.j) % 3) == 0) { //#22873 + $1.fact = ~~($get($1.scrle, $1.j) / 3); //#22863 + var _Vm = $geti($1.scrle, $1.j + 1, 4); //#22864 + for (var _Vn = 0, _Vo = _Vm.length; _Vn < _Vo; _Vn++) { //#22864 + $k[$j++] = $get(_Vm, _Vn) == $1.fact; //#22864 + } //#22864 + var _Vr = $k[--$j]; //#22864 + var _Vs = $k[--$j]; //#22864 + var _Vt = $k[--$j]; //#22864 + var _Vu = $k[--$j]; //#22864 + if (_Vu && (_Vt && (_Vs && _Vr))) { //#22872 + if (($1.j == 1) || (($1.j + 6) >= $1.scrle.length)) { //#22869 + $1.scr3 = $1.scr3 + 50; //#22866 + } else { //#22869 + if (($get($1.scrle, $1.j - 1) >= 3) || ($get($1.scrle, $1.j + 5) >= 3)) { //#22870 + $1.scr3 = $1.scr3 + 50; //#22869 + } //#22869 + } //#22869 + } //#22869 + } //#22869 + } //#22869 + $k[$j++] = $1.scr1; //#22875 + $k[$j++] = $1.scr3; //#22875 + }; //#22876 + $1.evalfull = function() { + $1.sym = $k[--$j]; //#22880 + $1.n1 = 0; //#22882 + $1.n3 = 0; //#22882 + $1.rle = $a($f($1.size + 1)); //#22883 + $1.lastpairs = $a($1.size); //#22884 + $1.thispairs = $a($1.size); //#22885 + $1.sizeadd1 = $f($1.size + 1); //#22886 + for (var _WI = 0, _WH = $f($1.size - 1); _WI <= _WH; _WI += 1) { //#22911 + $1.i = _WI; //#22888 + $k[$j++] = Infinity; //#22891 + var _WK = $1.size; //#22892 + $k[$j++] = 0; //#22894 + $k[$j++] = 0; //#22894 + for (var _WM = $1.i, _WN = _WK, _WL = $f((_WK * _WK) - 1); _WN < 0 ? _WM >= _WL : _WM <= _WL; _WM += _WN) { //#22894 + var _WP = $get($1.sym, _WM); //#22893 + var _WQ = $k[--$j]; //#22893 + $k[$j++] = _WP; //#22893 + if ($eq(_WQ, _WP)) { //#22893 + var _WR = $k[--$j]; //#22893 + var _WS = $k[--$j]; //#22893 + $k[$j++] = $f(_WS + 1); //#22893 + $k[$j++] = _WR; //#22893 + } else { //#22893 + var _WT = $k[--$j]; //#22893 + $k[$j++] = 1; //#22893 + $k[$j++] = _WT; //#22893 + } //#22893 + } //#22893 + $j--; //#22895 + var _WV = $counttomark() + 2; //#22896 + $astore($geti($1.rle, 0, _WV - 2)); //#22896 + $1.evalfulln1n3(); //#22897 + $1.n3 = $f($k[--$j] + $1.n3); //#22897 + $1.n1 = $f($k[--$j] + $1.n1); //#22897 + $j--; //#22898 + $1.symrow = $geti($1.sym, $1.i * $1.size, $1.size); //#22901 + $k[$j++] = Infinity; //#22902 + var _Wg = $1.symrow; //#22903 + $k[$j++] = 0; //#22905 + $k[$j++] = 0; //#22905 + for (var _Wh = 0, _Wi = _Wg.length; _Wh < _Wi; _Wh++) { //#22905 + var _Wj = $get(_Wg, _Wh); //#22905 + var _Wk = $k[--$j]; //#22904 + $k[$j++] = _Wj; //#22904 + if ($eq(_Wk, _Wj)) { //#22904 + var _Wl = $k[--$j]; //#22904 + var _Wm = $k[--$j]; //#22904 + $k[$j++] = $f(_Wm + 1); //#22904 + $k[$j++] = _Wl; //#22904 + } else { //#22904 + var _Wn = $k[--$j]; //#22904 + $k[$j++] = 1; //#22904 + $k[$j++] = _Wn; //#22904 + } //#22904 + } //#22904 + $j--; //#22906 + var _Wp = $counttomark() + 2; //#22907 + $astore($geti($1.rle, 0, _Wp - 2)); //#22907 + $1.evalfulln1n3(); //#22908 + $1.n3 = $f($k[--$j] + $1.n3); //#22908 + $1.n1 = $f($k[--$j] + $1.n1); //#22908 + $j--; //#22909 + } //#22909 + $k[$j++] = $f($1.n1 + $1.n3); //#22913 + }; //#22914 + $1.bestscore = 999999999; //#22917 + for (var _Wz = 0, _Wy = $1.masks.length - 1; _Wz <= _Wy; _Wz += 1) { //#22935 + $1.m = _Wz; //#22919 + $1.masksym = $a($1.size * $1.size); //#22920 + for (var _X6 = 0, _X5 = $f(($1.size * $1.size) - 1); _X6 <= _X5; _X6 += 1) { //#22924 + $1.i = _X6; //#22922 + $put($1.masksym, $1.i, $xo($get($1.pixs, $1.i), $get($get($1.masks, $1.m), $1.i))); //#22923 + } //#22923 + if ($1.masks.length != 1) { //#22933 + $k[$j++] = $1.masksym; //#22926 + $1.evalfull(); //#22926 + $1.score = $k[--$j]; //#22926 + if ($1.score < $1.bestscore) { //#22931 + $1.bestsym = $1.masksym; //#22928 + $1.bestmaskval = $1.m; //#22929 + $1.bestscore = $1.score; //#22930 + } //#22930 + } else { //#22933 + $1.bestsym = $1.masksym; //#22933 + } //#22933 + } //#22933 + $1.pixs = $1.bestsym; //#22936 + $1.funval = (((((~~($f($1.size - 21) / 2)) + 20) * 4) + $1.eclval) * 4) + $1.bestmaskval; //#22939 + $k[$j++] = $a([($1.funval & 3840) >>> 8, ($1.funval & 240) >>> 4, $1.funval & 15]); //#22943 + $k[$j++] = 4; //#22943 + $k[$j++] = 16; //#22943 + $k[$j++] = 19; //#22943 + $1.rscodes(); //#22943 + $1.funvals = $k[--$j]; //#22943 + $k[$j++] = Infinity; //#22948 + $forall($1.funvals, function() { //#22947 + $k[$j++] = 4; //#22946 + $1.tobin(); //#22946 + $forall($k[--$j], function() { //#22946 + var _Xb = $k[--$j]; //#22946 + $k[$j++] = $f(_Xb - 48); //#22946 + }); //#22946 + }); //#22946 + $k[$j++] = 0; //#22948 + $k[$j++] = 1; //#22948 + $k[$j++] = 0; //#22948 + $k[$j++] = 1; //#22948 + $k[$j++] = 0; //#22948 + $k[$j++] = 1; //#22948 + $1.funbits = $a(); //#22948 + for (var _Xf = 0, _Xe = $1.functionmap.length - 1; _Xf <= _Xe; _Xf += 1) { //#22955 + $1.i = _Xf; //#22951 + $forall($get($1.functionmap, $1.i), function() { //#22954 + var _Xk = $k[--$j]; //#22953 + $k[$j++] = $1.pixs; //#22953 + $aload(_Xk); //#22953 + $1.qmv(); //#22953 + var _Xo = $k[--$j]; //#22953 + $put($k[--$j], _Xo, $get($1.funbits, $1.i)); //#22953 + }); //#22953 + } //#22953 + var _Xw = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", $1.size], + ["pixy", $1.size], + ["height", ($1.size * 2) / 72], + ["width", ($1.size * 2) / 72], + ["opt", $1.options] + ]); //#22965 + $k[$j++] = _Xw; //#22968 + if (!$1.dontdraw) { //#22968 + $0.renmatrix(); //#22968 + } //#22968 + }; + $0.dotcode = function() { + var $1 = {}; //#22998 + $1.options = $k[--$j]; //#23000 + $1.barcode = $k[--$j]; //#23001 + $1.dontdraw = false; //#23003 + $1.rows = -1; //#23004 + $1.columns = -1; //#23005 + $1.ratio = -1; //#23006 + $1.parse = false; //#23007 + $1.parsefnc = false; //#23008 + $1.raw = false; //#23009 + $1.fast = false; //#23010 + $1.mask = -1; //#23011 + $forall($1.options, function() { //#23022 + var _3 = $k[--$j]; //#23022 + $1[$k[--$j]] = _3; //#23022 + }); //#23022 + $1.rows = ~~$1.rows; //#23024 + $1.columns = ~~$1.columns; //#23025 + $1.ratio = +$1.ratio; //#23026 + $1.mask = ~~$1.mask; //#23027 + if ((($1.ratio == -1) && ($1.rows == -1)) && ($1.columns == -1)) { //#23032 + $1.ratio = 3 / 2; //#23031 + } //#23031 + $1.laa = -1; //#23035 + $1.lab = -2; //#23035 + $1.lac = -3; //#23035 + $1.bin = -4; //#23035 + $1.sfa = -5; //#23036 + $1.sfb = -6; //#23036 + $1.sb2 = -7; //#23036 + $1.sb3 = -8; //#23036 + $1.sb4 = -9; //#23037 + $1.sb5 = -10; //#23037 + $1.sb6 = -11; //#23037 + $1.sfc = -12; //#23037 + $1.sc2 = -13; //#23038 + $1.sc3 = -14; //#23038 + $1.sc4 = -15; //#23038 + $1.sc5 = -16; //#23038 + $1.sc6 = -17; //#23039 + $1.sc7 = -18; //#23039 + $1.bsa = -19; //#23039 + $1.bsb = -20; //#23039 + $1.tma = -21; //#23040 + $1.tmb = -22; //#23040 + $1.tmc = -23; //#23040 + $1.tms = -24; //#23040 + $1.fn1 = -25; //#23041 + $1.fn2 = -26; //#23041 + $1.fn3 = -27; //#23041 + $1.crl = -28; //#23041 + $1.aim = -29; //#23042 + $1.m05 = -30; //#23042 + $1.m06 = -31; //#23042 + $1.m12 = -32; //#23042 + $1.mac = -33; //#23043 + var _G = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["eci", true], + ["FNC1", $1.fn1], + ["FNC3", $1.fn3] + ]); //#23052 + $1.fncvals = _G; //#23053 + $k[$j++] = 'msg'; //#23054 + $k[$j++] = $1.barcode; //#23054 + $k[$j++] = $1.fncvals; //#23054 + $0.parseinput(); //#23054 + var _J = $k[--$j]; //#23054 + $1[$k[--$j]] = _J; //#23054 + $1.msglen = $1.msg.length; //#23055 + var _M = $1.msg; //#23058 + $k[$j++] = 'numecis'; //#23058 + $k[$j++] = 0; //#23058 + for (var _N = 0, _O = _M.length; _N < _O; _N++) { //#23058 + if ($get(_M, _N) <= -1000000) { //#23058 + var _Q = $k[--$j]; //#23058 + $k[$j++] = $f(_Q + 1); //#23058 + } //#23058 + } //#23058 + var _R = $k[--$j]; //#23058 + $1[$k[--$j]] = _R; //#23058 + $1.msgtmp = $a($f($1.msg.length + ($1.numecis * 6))); //#23059 + $1.j = 0; //#23060 + for (var _Y = 0, _X = $1.msg.length - 1; _Y <= _X; _Y += 1) { //#23071 + var _a = $get($1.msg, _Y); //#23062 + $k[$j++] = _a; //#23070 + if (_a <= -1000000) { //#23069 + var _e = $geti($cvrs($s(7), -$k[--$j], 10), 1, 6); //#23063 + for (var _f = 0, _g = _e.length; _f < _g; _f++) { //#23063 + $k[$j++] = $get(_e, _f); //#23063 + } //#23063 + $astore($a(6)); //#23063 + $puti($1.msgtmp, $1.j + 1, $k[--$j]); //#23064 + $put($1.msgtmp, $1.j, $1.fn2); //#23065 + $1.j = $1.j + 7; //#23066 + } else { //#23069 + $put($1.msgtmp, $1.j, $k[--$j]); //#23068 + $1.j = $1.j + 1; //#23069 + } //#23069 + } //#23069 + $1.msg = $1.msgtmp; //#23072 + $1.msglen = $1.msg.length; //#23073 + $1.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$1.sfb, $1.crl, "96"]), $a([$1.sb2, 9, "97"]), $a([$1.sb3, 28, "98"]), $a([$1.sb4, 29, "99"]), $a([$1.sb5, 30, $1.aim]), $a([$1.sb6, $1.sfa, $1.laa]), $a([$1.lab, $1.laa, $1.sfb]), $a([$1.sc2, $1.sc2, $1.sb2]), $a([$1.sc3, $1.sc3, $1.sb3]), $a([$1.sc4, $1.sc4, $1.sb4]), $a([$1.lac, $1.lac, $1.lab]), $a([$1.fn1, $1.fn1, $1.fn1]), $a([$1.fn2, $1.fn2, $1.fn2]), $a([$1.fn3, $1.fn3, $1.fn3]), $a([$1.bsa, $1.bsa, $1.bsa]), $a([$1.bsb, $1.bsb, $1.bsb]), $a([$1.bin, $1.bin, $1.bin])]); //#23116 + $1.charvals = $a([new Map, new Map, new Map]); //#23119 + for (var _3W = 0, _3V = $1.charmaps.length - 1; _3W <= _3V; _3W += 1) { //#23128 + $1.i = _3W; //#23121 + $1.encs = $get($1.charmaps, $1.i); //#23122 + for (var _3a = 0; _3a <= 2; _3a += 1) { //#23127 + $1.j = _3a; //#23124 + var _3d = $get($1.encs, $1.j); //#23125 + $k[$j++] = _3d; //#23125 + if ($eq($type(_3d), 'stringtype')) { //#23125 + var _3g = $get($k[--$j], 0); //#23125 + $k[$j++] = _3g; //#23125 + } //#23125 + $put($get($1.charvals, $1.j), $k[--$j], $1.i); //#23126 + } //#23126 + } //#23126 + $1.Avals = $get($1.charvals, 0); //#23129 + $1.Bvals = $get($1.charvals, 1); //#23130 + $put($1.Bvals, $1.m05, 97); //#23131 + $put($1.Bvals, $1.m06, 98); //#23132 + $put($1.Bvals, $1.m12, 99); //#23133 + $put($1.Bvals, $1.mac, 100); //#23134 + $1.Cvals = $get($1.charvals, 2); //#23135 + $k[$j++] = Infinity; //#23137 + var _4A = $a([$1.sc2, $1.sc3, $1.sc4, $1.sc5, $1.sc6, $1.sc7, $1.tma, $1.tmb, $1.tmc, $1.tms]); //#23137 + $k[$j++] = 102; //#23137 + for (var _4B = 0, _4C = _4A.length; _4B < _4C; _4B++) { //#23137 + var _4F = $f($k[--$j] + 1); //#23137 + $k[$j++] = $get(_4A, _4B); //#23137 + $k[$j++] = _4F; //#23137 + $k[$j++] = _4F; //#23137 + } //#23137 + $j--; //#23137 + $1.BINvals = $d(); //#23138 + $k[$j++] = Infinity; //#23141 + for (var _4I = 0, _4J = $1.msglen + 1; _4I < _4J; _4I++) { //#23141 + $k[$j++] = 0; //#23141 + } //#23141 + $1.nDigits = $a(); //#23141 + $k[$j++] = Infinity; //#23142 + for (var _4M = 0, _4N = $1.msglen + 1; _4M < _4N; _4M++) { //#23142 + $k[$j++] = false; //#23142 + } //#23142 + $1.SeventeenTen = $a(); //#23142 + $k[$j++] = Infinity; //#23143 + for (var _4Q = 0, _4R = $1.msglen + 1; _4Q < _4R; _4Q++) { //#23143 + $k[$j++] = false; //#23143 + } //#23143 + $1.ECI = $a(); //#23143 + $k[$j++] = Infinity; //#23144 + for (var _4U = 0, _4V = $1.msglen + 1; _4U < _4V; _4U++) { //#23144 + $k[$j++] = false; //#23144 + } //#23144 + $1.DatumA = $a(); //#23144 + $k[$j++] = Infinity; //#23145 + for (var _4Y = 0, _4Z = $1.msglen + 1; _4Y < _4Z; _4Y++) { //#23145 + $k[$j++] = false; //#23145 + } //#23145 + $1.DatumB = $a(); //#23145 + $k[$j++] = Infinity; //#23146 + for (var _4c = 0, _4d = $1.msglen + 1; _4c < _4d; _4c++) { //#23146 + $k[$j++] = false; //#23146 + } //#23146 + $1.DatumC = $a(); //#23146 + $k[$j++] = Infinity; //#23147 + for (var _4g = 0, _4h = $1.msglen + 8; _4g < _4h; _4g++) { //#23147 + $k[$j++] = false; //#23147 + } //#23147 + $1.Binary = $a(); //#23147 + $k[$j++] = Infinity; //#23148 + for (var _4k = 0, _4l = $1.msglen + 1; _4k < _4l; _4k++) { //#23148 + $k[$j++] = 0; //#23148 + } //#23148 + $1.AheadC = $a(); //#23148 + $k[$j++] = Infinity; //#23149 + for (var _4o = 0, _4p = $1.msglen + 1; _4o < _4p; _4o++) { //#23149 + $k[$j++] = 0; //#23149 + } //#23149 + $1.TryC = $a(); //#23149 + $k[$j++] = Infinity; //#23150 + for (var _4s = 0, _4t = $1.msglen + 1; _4s < _4t; _4s++) { //#23150 + $k[$j++] = 0; //#23150 + } //#23150 + $1.AheadA = $a(); //#23150 + $k[$j++] = Infinity; //#23151 + for (var _4w = 0, _4x = $1.msglen + 1; _4w < _4x; _4w++) { //#23151 + $k[$j++] = 0; //#23151 + } //#23151 + $1.AheadB = $a(); //#23151 + $k[$j++] = Infinity; //#23152 + for (var _50 = 0, _51 = $1.msglen + 1; _50 < _51; _50++) { //#23152 + $k[$j++] = 0; //#23152 + } //#23152 + $1.UntilEndSeg = $a(); //#23152 + for (var _54 = $1.msglen - 1; _54 >= 0; _54 -= 1) { //#23207 + $1.i = _54; //#23154 + $1.barchar = $get($1.msg, $1.i); //#23155 + if (($1.barchar >= 48) && ($1.barchar <= 57)) { //#23158 + $put($1.nDigits, $1.i, $f($get($1.nDigits, $1.i + 1) + 1)); //#23157 + } //#23157 + var _5H = $get($1.Avals, $1.barchar) !== undefined; //#23159 + if (_5H) { //#23159 + $put($1.DatumA, $1.i, true); //#23159 + } //#23159 + var _5M = $get($1.Bvals, $1.barchar) !== undefined; //#23160 + if (_5M) { //#23160 + $put($1.DatumB, $1.i, true); //#23160 + } //#23160 + $1.CRLF = false; //#23161 + if (($1.barchar == 13) && ($1.i < ($1.msglen - 1))) { //#23164 + if ($get($1.msg, $1.i + 1) == 10) { //#23163 + $1.CRLF = true; //#23163 + } //#23163 + } //#23163 + if ($1.CRLF) { //#23165 + $put($1.DatumB, $1.i, true); //#23165 + } //#23165 + if ($get($1.nDigits, $1.i) >= 2) { //#23166 + $put($1.DatumC, $1.i, true); //#23166 + } //#23166 + if ($1.barchar < 0) { //#23167 + $put($1.DatumC, $1.i, true); //#23167 + } //#23167 + if ($1.barchar >= 128) { //#23168 + $put($1.Binary, $1.i, true); //#23168 + } //#23168 + if ($get($1.nDigits, $1.i) >= 10) { //#23182 + $k[$j++] = Infinity; //#23170 + $aload($geti($1.msg, $1.i, 10)); //#23171 + for (var _5p = 0, _5q = 1; _5p < _5q; _5p++) { //#23179 + if ($k[--$j] != 48) { //#23173 + $k[$j++] = false; //#23173 + break; //#23173 + } //#23173 + if ($k[--$j] != 49) { //#23174 + $k[$j++] = false; //#23174 + break; //#23174 + } //#23174 + $j -= 6; //#23175 + if ($k[--$j] != 55) { //#23176 + $k[$j++] = false; //#23176 + break; //#23176 + } //#23176 + if ($k[--$j] != 49) { //#23177 + $k[$j++] = false; //#23177 + break; //#23177 + } //#23177 + $k[$j++] = true; //#23178 + } //#23178 + $put($1.SeventeenTen, $1.i, $k[--$j]); //#23180 + $cleartomark(); //#23181 + } //#23181 + if (($get($1.nDigits, $1.i + 1) >= 6) && ($get($1.msg, $1.i) == $1.fn2)) { //#23185 + $put($1.ECI, $1.i, true); //#23184 + } //#23184 + if (($1.barchar < 0) && ($1.barchar != $1.fn3)) { //#23192 + $put($1.AheadC, $1.i, $f($get($1.AheadC, $1.i + 1) + 1)); //#23187 + } else { //#23192 + if ($get($1.nDigits, $1.i) <= 1) { //#23192 + $put($1.AheadC, $1.i, 0); //#23190 + } else { //#23192 + $put($1.AheadC, $1.i, $f($get($1.AheadC, $1.i + 2) + 1)); //#23192 + } //#23192 + } //#23192 + if (($get($1.nDigits, $1.i) > 0) && $gt($get($1.AheadC, $1.i), $get($1.AheadC, $1.i + 1))) { //#23197 + $put($1.TryC, $1.i, $get($1.AheadC, $1.i)); //#23196 + } //#23196 + if (($get($1.DatumA, $1.i) && ($get($1.TryC, $1.i) < 2)) && ($1.barchar != $1.fn3)) { //#23200 + $put($1.AheadA, $1.i, $f($get($1.AheadA, $1.i + 1) + 1)); //#23199 + } //#23199 + if (($get($1.DatumB, $1.i) && ($get($1.TryC, $1.i) < 2)) && ($1.barchar != $1.fn3)) { //#23203 + $k[$j++] = $1.AheadB; //#23202 + $k[$j++] = $1.i; //#23202 + $k[$j++] = $1.AheadB; //#23202 + $k[$j++] = $1.i + 1; //#23202 + if ($1.CRLF) { //#23202 + var _73 = $k[--$j]; //#23202 + $k[$j++] = $f(_73 + 1); //#23202 + } //#23202 + var _74 = $k[--$j]; //#23202 + var _76 = $get($k[--$j], _74); //#23202 + var _77 = $k[--$j]; //#23202 + $put($k[--$j], _77, $f(_76 + 1)); //#23202 + } //#23202 + if ($1.barchar != $1.fn3) { //#23206 + $put($1.UntilEndSeg, $1.i, $f($get($1.UntilEndSeg, $1.i + 1) + 1)); //#23205 + } //#23205 + } //#23205 + $1.A = 0; //#23209 + $1.B = 1; //#23209 + $1.C = 2; //#23209 + $1.BIN = 3; //#23209 + $1.addtocws = function() { + var _7G = $k[--$j]; //#23212 + $puti($1.cws, $1.j, _7G); //#23212 + $1.j = _7G.length + $1.j; //#23213 + }; //#23214 + $1.base259to103 = function() { + $1.in = $k[--$j]; //#23218 + $1.inlen = $1.in.length; //#23219 + $k[$j++] = Infinity; //#23220 + for (var _7N = 0, _7O = 5 - $1.inlen; _7N < _7O; _7N++) { //#23220 + $k[$j++] = 0; //#23220 + } //#23220 + $aload($1.in); //#23220 + $1.in = $a(); //#23220 + $1.out = $a(6); //#23221 + $k[$j++] = Infinity; //#23222 + $aload($geti($1.in, 0, 2)); //#23222 + $1.msbs = $a(); //#23222 + $k[$j++] = Infinity; //#23225 + $aload($1.msbs); //#23224 + var _7W = $k[--$j]; //#23224 + var _7X = $k[--$j]; //#23224 + $k[$j++] = $f(_7W + (_7X * 259)); //#23225 + for (var _7Y = 0, _7Z = 2; _7Y < _7Z; _7Y++) { //#23225 + var _7a = $k[--$j]; //#23225 + $k[$j++] = _7a % 103; //#23225 + $k[$j++] = ~~(_7a / 103); //#23225 + } //#23225 + $1.mscs = $a(); //#23225 + $k[$j++] = Infinity; //#23227 + $aload($geti($1.in, 2, 3)); //#23227 + $1.lsbs = $a(); //#23227 + $k[$j++] = Infinity; //#23230 + $aload($1.lsbs); //#23229 + var _7g = $k[--$j]; //#23229 + var _7h = $k[--$j]; //#23229 + var _7i = $k[--$j]; //#23229 + $k[$j++] = $f(($f(_7g + (_7h * 259))) + (_7i * 67081)); //#23230 + for (var _7j = 0, _7k = 3; _7j < _7k; _7j++) { //#23230 + var _7l = $k[--$j]; //#23230 + $k[$j++] = _7l % 103; //#23230 + $k[$j++] = ~~(_7l / 103); //#23230 + } //#23230 + $1.lscs = $a(); //#23230 + var _7o = $get($1.lscs, 0); //#23232 + var _7q = $get($1.mscs, 0); //#23232 + $put($1.out, 5, ($f(_7o + (_7q * 42))) % 103); //#23233 + var _7t = $get($1.lscs, 1); //#23234 + var _7v = $get($1.mscs, 0); //#23234 + var _7x = $get($1.mscs, 1); //#23234 + $put($1.out, 4, ($f(($f(($f((~~(($f(_7o + (_7q * 42))) / 103)) + _7t)) + (_7v * 68))) + (_7x * 42))) % 103); //#23235 + var _80 = $get($1.lscs, 2); //#23236 + var _82 = $get($1.mscs, 0); //#23236 + var _84 = $get($1.mscs, 1); //#23236 + var _86 = $get($1.mscs, 2); //#23236 + $put($1.out, 3, ($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7o + (_7q * 42))) / 103)) + _7t)) + (_7v * 68))) + (_7x * 42))) / 103)) + _80)) + (_82 * 92))) + (_84 * 68))) + (_86 * 42))) % 103); //#23237 + var _89 = $get($1.lscs, 3); //#23238 + var _8B = $get($1.mscs, 0); //#23238 + var _8D = $get($1.mscs, 1); //#23238 + var _8F = $get($1.mscs, 2); //#23238 + $put($1.out, 2, ($f(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7o + (_7q * 42))) / 103)) + _7t)) + (_7v * 68))) + (_7x * 42))) / 103)) + _80)) + (_82 * 92))) + (_84 * 68))) + (_86 * 42))) / 103)) + _89)) + (_8B * 15))) + (_8D * 92))) + (_8F * 68))) % 103); //#23239 + var _8I = $get($1.mscs, 1); //#23240 + var _8K = $get($1.mscs, 2); //#23240 + $put($1.out, 1, ($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7o + (_7q * 42))) / 103)) + _7t)) + (_7v * 68))) + (_7x * 42))) / 103)) + _80)) + (_82 * 92))) + (_84 * 68))) + (_86 * 42))) / 103)) + _89)) + (_8B * 15))) + (_8D * 92))) + (_8F * 68))) / 103)) + (_8I * 15))) + (_8K * 92))) % 103); //#23241 + $put($1.out, 0, ($f((~~(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7o + (_7q * 42))) / 103)) + _7t)) + (_7v * 68))) + (_7x * 42))) / 103)) + _80)) + (_82 * 92))) + (_84 * 68))) + (_86 * 42))) / 103)) + _89)) + (_8B * 15))) + (_8D * 92))) + (_8F * 68))) / 103)) + (_8I * 15))) + (_8K * 92))) / 103)) + ($get($1.mscs, 2) * 15))) % 103); //#23243 + $k[$j++] = $geti($1.out, (6 - $1.inlen) - 1, $1.inlen + 1); //#23244 + }; //#23245 + $1.finaliseBIN = function() { + if ($1.bpos != 0) { //#23251 + $k[$j++] = $geti($1.bvals, 0, $1.bpos); //#23249 + $1.base259to103(); //#23249 + $aload($k[--$j]); //#23249 + $1.bpos = 0; //#23250 + } //#23250 + }; //#23252 + $1.addtobin = function() { + $put($1.bvals, $1.bpos, $k[--$j]); //#23255 + $1.bpos = $1.bpos + 1; //#23256 + if ($1.bpos == 5) { //#23257 + $1.finaliseBIN(); //#23257 + } //#23257 + }; //#23258 + $1.ECIabc = function() { + var _8f = $geti($1.msg, $1.i + 1, 6); //#23261 + $k[$j++] = 0; //#23261 + for (var _8g = 0, _8h = _8f.length; _8g < _8h; _8g++) { //#23261 + var _8j = $k[--$j]; //#23261 + $k[$j++] = ($f(_8j + $f($get(_8f, _8g) - 48))) * 10; //#23261 + } //#23261 + var _8l = ~~($k[--$j] / 10); //#23262 + $k[$j++] = _8l; //#23266 + if (_8l >= 40) { //#23266 + var _8n = $f($k[--$j] - 40); //#23264 + var _8o = _8n % 12769; //#23265 + $k[$j++] = (~~(_8n / 12769)) + 40; //#23265 + $k[$j++] = ~~(_8o / 113); //#23265 + $k[$j++] = _8o % 113; //#23265 + } //#23265 + }; //#23267 + $1.ECIbin = function() { + $k[$j++] = Infinity; //#23278 + var _8r = $geti($1.msg, $1.i + 1, 6); //#23271 + $k[$j++] = 0; //#23271 + for (var _8s = 0, _8t = _8r.length; _8s < _8t; _8s++) { //#23271 + var _8v = $k[--$j]; //#23271 + $k[$j++] = ($f(_8v + $f($get(_8r, _8s) - 48))) * 10; //#23271 + } //#23271 + var _8x = ~~($k[--$j] / 10); //#23272 + $k[$j++] = _8x; //#23280 + if (_8x >= 65536) { //#23278 + var _8y = $k[--$j]; //#23273 + var _8z = _8y % 65536; //#23273 + $k[$j++] = 258; //#23273 + $k[$j++] = ~~(_8y / 65536); //#23273 + $k[$j++] = ~~(_8z / 256); //#23273 + $k[$j++] = _8z % 256; //#23273 + } else { //#23278 + var _90 = $k[--$j]; //#23275 + $k[$j++] = _90; //#23279 + if (_90 >= 256) { //#23278 + var _91 = $k[--$j]; //#23276 + $k[$j++] = 257; //#23276 + $k[$j++] = ~~(_91 / 256); //#23276 + $k[$j++] = _91 % 256; //#23276 + } else { //#23278 + var _92 = $k[--$j]; //#23278 + $k[$j++] = 256; //#23278 + $k[$j++] = _92; //#23278 + } //#23278 + } //#23278 + var _93 = $a(); //#23278 + for (var _94 = 0, _95 = _93.length; _94 < _95; _94++) { //#23283 + $k[$j++] = $get(_93, _94); //#23282 + $1.addtobin(); //#23282 + } //#23282 + }; //#23284 + $1.encC = function() { + for (var _97 = 0, _98 = 1; _97 < _98; _97++) { //#23395 + if ($1.i == $1.segstart) { //#23313 + for (var _9B = 0, _9C = 1; _9B < _9C; _9B++) { //#23305 + if ($1.i > $f($1.segend - 7)) { //#23290 + $k[$j++] = 0; //#23290 + break; //#23290 + } //#23290 + if ($get($1.msg, $1.segstart) != 91) { //#23291 + $k[$j++] = 0; //#23291 + break; //#23291 + } //#23291 + if ($get($1.msg, $1.segstart + 1) != 41) { //#23292 + $k[$j++] = 0; //#23292 + break; //#23292 + } //#23292 + if ($get($1.msg, $1.segstart + 2) != 62) { //#23293 + $k[$j++] = 0; //#23293 + break; //#23293 + } //#23293 + if ($get($1.msg, $1.segstart + 3) != 30) { //#23294 + $k[$j++] = 0; //#23294 + break; //#23294 + } //#23294 + var _9T = $get($1.msg, $1.segstart + 4); //#23295 + if ((_9T < 48) || (_9T > 57)) { //#23295 + $k[$j++] = 0; //#23295 + break; //#23295 + } //#23295 + var _9W = $get($1.msg, $1.segstart + 5); //#23296 + if ((_9W < 48) || (_9W > 57)) { //#23296 + $k[$j++] = 0; //#23296 + break; //#23296 + } //#23296 + if ($get($1.msg, $f($1.segend - 1)) != 4) { //#23297 + $k[$j++] = 0; //#23297 + break; //#23297 + } //#23297 + var _9g = $f(($f($get($1.msg, $1.segstart + 4) - 48) * 10) + $f($get($1.msg, $1.segstart + 5) - 48)); //#23299 + $k[$j++] = _9g; //#23299 + if ((_9g != 5) && ((_9g != 6) && (_9g != 12))) { //#23299 + $j--; //#23299 + $k[$j++] = $1.mac; //#23299 + break; //#23299 + } //#23299 + if ($get($1.msg, $1.segstart + 6) != 29) { //#23300 + $j--; //#23300 + $k[$j++] = 0; //#23300 + break; //#23300 + } //#23300 + if ($get($1.msg, $f($1.segend - 2)) != 30) { //#23301 + $j--; //#23301 + $k[$j++] = 0; //#23301 + break; //#23301 + } //#23301 + var _9o = $k[--$j]; //#23302 + $k[$j++] = _9o; //#23302 + if (_9o == 5) { //#23302 + $j--; //#23302 + $k[$j++] = $1.m05; //#23302 + break; //#23302 + } //#23302 + if ($k[--$j] == 6) { //#23303 + $k[$j++] = $1.m06; //#23303 + break; //#23303 + } //#23303 + $k[$j++] = $1.m12; //#23304 + break; //#23304 + } //#23304 + $1.inmac = $k[--$j]; //#23306 + if ($1.inmac != 0) { //#23312 + $1.mode = $1.B; //#23308 + $k[$j++] = $a([$get($1.Bvals, $1.inmac)]); //#23309 + $1.addtocws(); //#23309 + var _A3 = ($1.inmac != $1.mac) ? 7 : 6; //#23310 + $1.i = $1.i + _A3; //#23310 + break; //#23311 + } //#23311 + } //#23311 + if ($1.i == $1.segstart) { //#23324 + if ($get($1.nDigits, $1.i) >= 2) { //#23319 + $k[$j++] = $a([$get($1.Cvals, $1.fn1)]); //#23318 + $1.addtocws(); //#23318 + } //#23318 + if (($get($1.msg, $1.i) == $1.fn1) && ($get($1.nDigits, $1.i + 1) >= 2)) { //#23323 + $1.i = $1.i + 1; //#23322 + } //#23322 + } //#23322 + if ($get($1.SeventeenTen, $1.i)) { //#23334 + $k[$j++] = $a([$get($1.Cvals, $1.aim), $f(($f($get($1.msg, $1.i + 2) - 48) * 10) + $f($get($1.msg, $1.i + 3) - 48)), $f(($f($get($1.msg, $1.i + 4) - 48) * 10) + $f($get($1.msg, $1.i + 5) - 48)), $f(($f($get($1.msg, $1.i + 6) - 48) * 10) + $f($get($1.msg, $1.i + 7) - 48))]); //#23331 + $1.addtocws(); //#23331 + $1.i = $1.i + 10; //#23332 + break; //#23333 + } //#23333 + if ($get($1.DatumC, $1.i)) { //#23356 + var _Aq = $get($1.msg, $1.i); //#23336 + if ((_Aq == $1.fn1) || ((_Aq == $1.fn2) || (_Aq == $1.fn3))) { //#23352 + $k[$j++] = $a([$get($1.Cvals, $get($1.msg, $1.i))]); //#23337 + $1.addtocws(); //#23337 + if ($get($1.ECI, $1.i)) { //#23342 + $k[$j++] = Infinity; //#23339 + $1.ECIabc(); //#23339 + var _B3 = $a(); //#23339 + $k[$j++] = _B3; //#23339 + $1.addtocws(); //#23339 + $1.i = $1.i + 7; //#23340 + break; //#23341 + } //#23341 + if (($get($1.msg, $1.i) == $1.fn3) && ($1.segstart != $1.i)) { //#23349 + $1.i = $1.i + 1; //#23344 + $1.inmac = 0; //#23345 + $1.segstart = $1.i; //#23346 + $1.segend = $f($1.i + $get($1.UntilEndSeg, $1.i)); //#23347 + break; //#23348 + } //#23348 + $1.i = $1.i + 1; //#23350 + break; //#23351 + } //#23351 + $k[$j++] = $a([$f(($f($get($1.msg, $1.i) - 48) * 10) + $f($get($1.msg, $1.i + 1) - 48))]); //#23353 + $1.addtocws(); //#23353 + $1.i = $1.i + 2; //#23354 + break; //#23355 + } //#23355 + if ($get($1.Binary, $1.i)) { //#23370 + if ($get($1.nDigits, $1.i + 1) > 0) { //#23366 + if ($get($1.msg, $1.i) < 160) { //#23362 + $k[$j++] = $a([$get($1.Cvals, $1.bsa), $get($1.Avals, $f($get($1.msg, $1.i) - 128))]); //#23360 + $1.addtocws(); //#23360 + } else { //#23362 + $k[$j++] = $a([$get($1.Cvals, $1.bsb), $get($1.Bvals, $f($get($1.msg, $1.i) - 128))]); //#23362 + $1.addtocws(); //#23362 + } //#23362 + $1.i = $1.i + 1; //#23364 + break; //#23365 + } //#23365 + $k[$j++] = $a([$get($1.Cvals, $1.bin)]); //#23367 + $1.addtocws(); //#23367 + $1.mode = $1.BIN; //#23368 + break; //#23369 + } //#23369 + $1.m = $get($1.AheadA, $1.i); //#23371 + $1.n = $get($1.AheadB, $1.i); //#23371 + if ($gt($1.m, $1.n)) { //#23376 + $k[$j++] = $a([$get($1.Cvals, $1.laa)]); //#23373 + $1.addtocws(); //#23373 + $1.mode = $1.A; //#23374 + break; //#23375 + } //#23375 + if ($1.i == $1.segstart) { //#23383 + var _CE = $get($1.msg, $1.i); //#23378 + if ((_CE == 9) || ((_CE == 28) || ((_CE == 29) || (_CE == 30)))) { //#23382 + $k[$j++] = $a([$get($1.Cvals, $1.laa)]); //#23379 + $1.addtocws(); //#23379 + $1.mode = $1.A; //#23380 + break; //#23381 + } //#23381 + } //#23381 + if ($1.n > 4) { //#23388 + $k[$j++] = $a([$get($1.Cvals, $1.lab)]); //#23385 + $1.addtocws(); //#23385 + $1.mode = $1.B; //#23386 + break; //#23387 + } //#23387 + $k[$j++] = $a([$get($1.Cvals, $get($a([$1.sfb, $1.sb2, $1.sb3, $1.sb4]), $f($1.n - 1)))]); //#23389 + $1.addtocws(); //#23389 + for (var _Cb = 0, _Cc = $1.n; _Cb < _Cc; _Cb++) { //#23393 + $k[$j++] = $a([$get($1.Bvals, $get($1.msg, $1.i))]); //#23391 + $1.addtocws(); //#23391 + $1.i = $1.i + 1; //#23392 + } //#23392 + break; //#23394 + } //#23394 + }; //#23396 + $1.encB = function() { + for (var _Ck = 0, _Cl = 1; _Ck < _Cl; _Ck++) { //#23471 + $1.n = $get($1.TryC, $1.i); //#23400 + if ($1.n >= 2) { //#23418 + if ($1.n > 4) { //#23406 + $k[$j++] = $a([$get($1.Bvals, $1.lac)]); //#23403 + $1.addtocws(); //#23403 + $1.mode = $1.C; //#23404 + break; //#23405 + } //#23405 + $k[$j++] = $a([$get($1.Bvals, $get($a([$1.sfc, $1.sc2, $1.sc3, $1.sc4]), $f($1.n - 1)))]); //#23407 + $1.addtocws(); //#23407 + for (var _D7 = 0, _D8 = $1.n; _D7 < _D8; _D7++) { //#23416 + if ($get($1.msg, $1.i) < 0) { //#23414 + $k[$j++] = $a([$get($1.Cvals, $get($1.msg, $1.i))]); //#23410 + $1.addtocws(); //#23410 + $1.i = $1.i + 1; //#23411 + } else { //#23414 + $k[$j++] = $a([$f(($f($get($1.msg, $1.i) - 48) * 10) + $f($get($1.msg, $1.i + 1) - 48))]); //#23413 + $1.addtocws(); //#23413 + $1.i = $1.i + 2; //#23414 + } //#23414 + } //#23414 + break; //#23417 + } //#23417 + if ($get($1.DatumB, $1.i)) { //#23448 + var _DW = $get($1.msg, $1.i); //#23420 + if ((_DW == $1.fn1) || ((_DW == $1.fn2) || (_DW == $1.fn3))) { //#23437 + $k[$j++] = $a([$get($1.Bvals, $get($1.msg, $1.i))]); //#23421 + $1.addtocws(); //#23421 + if ($get($1.ECI, $1.i)) { //#23426 + $k[$j++] = Infinity; //#23423 + $1.ECIabc(); //#23423 + var _Dj = $a(); //#23423 + $k[$j++] = _Dj; //#23423 + $1.addtocws(); //#23423 + $1.i = $1.i + 7; //#23424 + break; //#23425 + } //#23425 + if (($get($1.msg, $1.i) == $1.fn3) && ($1.i != $1.segstart)) { //#23434 + $1.i = $1.i + 1; //#23428 + $1.mode = $1.C; //#23429 + $1.inmac = 0; //#23430 + $1.segstart = $1.i; //#23431 + $1.segend = $f($1.i + $get($1.UntilEndSeg, $1.i)); //#23432 + break; //#23433 + } //#23433 + $1.i = $1.i + 1; //#23435 + break; //#23436 + } //#23436 + if (($get($1.msg, $1.i) == 13) && ($1.i < ($1.msglen - 1))) { //#23444 + if ($get($1.msg, $1.i + 1) == 10) { //#23443 + $k[$j++] = $a([$get($1.Bvals, $1.crl)]); //#23440 + $1.addtocws(); //#23440 + $1.i = $1.i + 2; //#23441 + break; //#23442 + } //#23442 + } //#23442 + $k[$j++] = $a([$get($1.Bvals, $get($1.msg, $1.i))]); //#23445 + $1.addtocws(); //#23445 + $1.i = $1.i + 1; //#23446 + break; //#23447 + } //#23447 + if ($get($1.Binary, $1.i)) { //#23462 + if ($get($1.DatumB, $1.i + 1)) { //#23458 + if ($get($1.msg, $1.i) < 160) { //#23454 + $k[$j++] = $a([$get($1.Bvals, $1.bsa), $get($1.Avals, $f($get($1.msg, $1.i) - 128))]); //#23452 + $1.addtocws(); //#23452 + } else { //#23454 + $k[$j++] = $a([$get($1.Bvals, $1.bsb), $get($1.Bvals, $f($get($1.msg, $1.i) - 128))]); //#23454 + $1.addtocws(); //#23454 + } //#23454 + $1.i = $1.i + 1; //#23456 + break; //#23457 + } //#23457 + $k[$j++] = $a([$get($1.Bvals, $1.bin)]); //#23459 + $1.addtocws(); //#23459 + $1.mode = $1.BIN; //#23460 + break; //#23461 + } //#23461 + if ($get($1.AheadA, $1.i) == 1) { //#23467 + $k[$j++] = $a([$get($1.Bvals, $1.sfa), $get($1.Avals, $get($1.msg, $1.i))]); //#23464 + $1.addtocws(); //#23464 + $1.i = $1.i + 1; //#23465 + break; //#23466 + } //#23466 + $k[$j++] = $a([$get($1.Bvals, $1.laa)]); //#23468 + $1.addtocws(); //#23468 + $1.mode = $1.A; //#23469 + break; //#23470 + } //#23470 + }; //#23472 + $1.encA = function() { + for (var _F8 = 0, _F9 = 1; _F8 < _F9; _F8++) { //#23544 + $1.n = $get($1.TryC, $1.i); //#23476 + if ($1.n >= 2) { //#23494 + if ($1.n > 4) { //#23482 + $k[$j++] = $a([$get($1.Avals, $1.lac)]); //#23479 + $1.addtocws(); //#23479 + $1.mode = $1.C; //#23480 + break; //#23481 + } //#23481 + $k[$j++] = $a([$get($1.Avals, $get($a([$1.sfc, $1.sc2, $1.sc3, $1.sc4]), $f($1.n - 1)))]); //#23483 + $1.addtocws(); //#23483 + for (var _FV = 0, _FW = $1.n; _FV < _FW; _FV++) { //#23492 + if ($get($1.msg, $1.i) < 0) { //#23490 + $k[$j++] = $a([$get($1.Cvals, $get($1.msg, $1.i))]); //#23486 + $1.addtocws(); //#23486 + $1.i = $1.i + 1; //#23487 + } else { //#23490 + $k[$j++] = $a([$f(($f($get($1.msg, $1.i) - 48) * 10) + $f($get($1.msg, $1.i + 1) - 48))]); //#23489 + $1.addtocws(); //#23489 + $1.i = $1.i + 2; //#23490 + } //#23490 + } //#23490 + break; //#23493 + } //#23493 + if ($get($1.DatumA, $1.i)) { //#23517 + var _Fu = $get($1.msg, $1.i); //#23496 + if ((_Fu == $1.fn1) || ((_Fu == $1.fn2) || (_Fu == $1.fn3))) { //#23513 + $k[$j++] = $a([$get($1.Avals, $get($1.msg, $1.i))]); //#23497 + $1.addtocws(); //#23497 + if ($get($1.ECI, $1.i)) { //#23502 + $k[$j++] = Infinity; //#23499 + $1.ECIabc(); //#23499 + var _G7 = $a(); //#23499 + $k[$j++] = _G7; //#23499 + $1.addtocws(); //#23499 + $1.i = $1.i + 7; //#23500 + break; //#23501 + } //#23501 + if (($get($1.msg, $1.i) == $1.fn3) && ($1.i != $1.segstart)) { //#23510 + $1.i = $1.i + 1; //#23504 + $1.mode = $1.C; //#23505 + $1.inmac = 0; //#23506 + $1.segstart = $1.i; //#23507 + $1.segend = $f($1.i + $get($1.UntilEndSeg, $1.i)); //#23508 + break; //#23509 + } //#23509 + $1.i = $1.i + 1; //#23511 + break; //#23512 + } //#23512 + $k[$j++] = $a([$get($1.Avals, $get($1.msg, $1.i))]); //#23514 + $1.addtocws(); //#23514 + $1.i = $1.i + 1; //#23515 + break; //#23516 + } //#23516 + if ($get($1.Binary, $1.i)) { //#23531 + if ($get($1.DatumA, $1.i + 1)) { //#23527 + if ($get($1.msg, $1.i) < 160) { //#23523 + $k[$j++] = $a([$get($1.Avals, $1.bsa), $get($1.Avals, $f($get($1.msg, $1.i) - 128))]); //#23521 + $1.addtocws(); //#23521 + } else { //#23523 + $k[$j++] = $a([$get($1.Avals, $1.bsb), $get($1.Bvals, $f($get($1.msg, $1.i) - 128))]); //#23523 + $1.addtocws(); //#23523 + } //#23523 + $1.i = $1.i + 1; //#23525 + break; //#23526 + } //#23526 + $k[$j++] = $a([$get($1.Avals, $1.bin)]); //#23528 + $1.addtocws(); //#23528 + $1.mode = $1.BIN; //#23529 + break; //#23530 + } //#23530 + $1.n = $get($1.AheadB, $1.i); //#23532 + if ($1.n > 6) { //#23537 + $k[$j++] = $a([$get($1.Avals, $1.lab)]); //#23534 + $1.addtocws(); //#23534 + $1.mode = $1.B; //#23535 + break; //#23536 + } //#23536 + $k[$j++] = $a([$get($1.Avals, $get($a([$1.sfb, $1.sb2, $1.sb3, $1.sb4, $1.sb5, $1.sb6]), $f($1.n - 1)))]); //#23538 + $1.addtocws(); //#23538 + for (var _HN = 0, _HO = $1.n; _HN < _HO; _HN++) { //#23542 + $k[$j++] = $a([$get($1.Bvals, $get($1.msg, $1.i))]); //#23540 + $1.addtocws(); //#23540 + $1.i = $1.i + 1; //#23541 + } //#23541 + break; //#23543 + } //#23543 + }; //#23545 + $1.encBIN = function() { + for (var _HW = 0, _HX = 1; _HW < _HX; _HW++) { //#23606 + $1.n = $get($1.TryC, $1.i); //#23549 + if ($1.n >= 2) { //#23568 + $k[$j++] = Infinity; //#23551 + $1.finaliseBIN(); //#23551 + var _Hc = $a(); //#23551 + $k[$j++] = _Hc; //#23551 + $1.addtocws(); //#23551 + if ($1.n > 7) { //#23556 + var _Hi = $k[--$j]; //#23553 + $1.mode = $1.C; //#23554 + $k[$j++] = $f(_Hi + $a([$get($1.BINvals, $1.tmc)])); //#23555 + break; //#23555 + } //#23555 + $k[$j++] = $a([$get($1.BINvals, $get($a([$1.sc2, $1.sc3, $1.sc4, $1.sc5, $1.sc6, $1.sc7]), $f($1.n - 2)))]); //#23557 + $1.addtocws(); //#23557 + for (var _Hx = 0, _Hy = $1.n; _Hx < _Hy; _Hx++) { //#23566 + if ($get($1.msg, $1.i) < 0) { //#23564 + $k[$j++] = $a([$get($1.Cvals, $get($1.msg, $1.i))]); //#23560 + $1.addtocws(); //#23560 + $1.i = $1.i + 1; //#23561 + } else { //#23564 + $k[$j++] = $a([$f(($f($get($1.msg, $1.i) - 48) * 10) + $f($get($1.msg, $1.i + 1) - 48))]); //#23563 + $1.addtocws(); //#23563 + $1.i = $1.i + 2; //#23564 + } //#23564 + } //#23564 + break; //#23567 + } //#23567 + if (($get($1.ECI, $1.i) && $get($1.Binary, $1.i + 7))) { //#23574 + $k[$j++] = Infinity; //#23570 + $1.ECIbin(); //#23570 + var _IN = $a(); //#23570 + $k[$j++] = _IN; //#23570 + $1.addtocws(); //#23570 + $1.i = $1.i + 7; //#23571 + if ($1.i == $1.msglen) { //#23572 + $k[$j++] = Infinity; //#23572 + $1.finaliseBIN(); //#23572 + var _IR = $a(); //#23572 + $k[$j++] = _IR; //#23572 + $1.addtocws(); //#23572 + } //#23572 + break; //#23573 + } //#23573 + if ($get($1.msg, $1.i) >= 0) { //#23584 + if (((($get($1.Binary, $1.i) || $get($1.Binary, $1.i + 1)) || $get($1.Binary, $1.i + 2)) || $get($1.Binary, $1.i + 3)) || ($get($1.ECI, $1.i + 1) && $get($1.Binary, $1.i + 8))) { //#23583 + $k[$j++] = Infinity; //#23579 + $k[$j++] = $get($1.msg, $1.i); //#23579 + $1.addtobin(); //#23579 + var _Iq = $a(); //#23579 + $k[$j++] = _Iq; //#23579 + $1.addtocws(); //#23579 + $1.i = $1.i + 1; //#23580 + if ($1.i == $1.msglen) { //#23581 + $k[$j++] = Infinity; //#23581 + $1.finaliseBIN(); //#23581 + var _Iu = $a(); //#23581 + $k[$j++] = _Iu; //#23581 + $1.addtocws(); //#23581 + } //#23581 + break; //#23582 + } //#23582 + } //#23582 + $k[$j++] = Infinity; //#23585 + $1.finaliseBIN(); //#23585 + var _Iv = $a(); //#23585 + $k[$j++] = _Iv; //#23585 + $1.addtocws(); //#23585 + if ($1.i != ($1.msglen - 1)) { //#23604 + if (($get($1.msg, $1.i) == $1.fn3) && ($1.i != $1.segstart)) { //#23595 + $k[$j++] = $a([$get($1.BINvals, $1.tms)]); //#23588 + $1.addtocws(); //#23588 + $1.i = $1.i + 1; //#23589 + $1.mode = $1.C; //#23590 + $1.inmac = 0; //#23591 + $1.segstart = $1.i; //#23592 + $1.segend = $f($1.i + $get($1.UntilEndSeg, $1.i)); //#23593 + break; //#23594 + } //#23594 + if ($gt($get($1.AheadA, $1.i), $get($1.AheadB, $1.i))) { //#23601 + $k[$j++] = $a([$get($1.BINvals, $1.tma)]); //#23597 + $1.addtocws(); //#23597 + $1.mode = $1.A; //#23598 + } else { //#23601 + $k[$j++] = $a([$get($1.BINvals, $1.tmb)]); //#23600 + $1.addtocws(); //#23600 + $1.mode = $1.B; //#23601 + } //#23601 + break; //#23603 + } //#23603 + break; //#23605 + } //#23605 + }; //#23607 + $1.cws = $a(($1.msglen * 2) + 1); //#23609 + $1.mode = $1.C; //#23610 + $1.bvals = $a(5); //#23611 + $1.bpos = 0; //#23611 + $1.inmac = 0; //#23612 + $1.segstart = 0; //#23612 + $1.segend = $get($1.UntilEndSeg, 0); //#23612 + $1.i = 0; //#23613 + $1.j = 0; //#23613 + for (;;) { //#23626 + if ($1.i >= $1.msglen) { //#23614 + break; //#23614 + } //#23614 + if ($1.inmac != 0) { //#23624 + if (($1.inmac != $1.mac) && ($1.i == $f($1.segend - 2))) { //#23619 + $1.i = $1.i + 2; //#23617 + if ($1.i >= $1.msglen) { //#23618 + break; //#23618 + } //#23618 + } //#23618 + if (($1.inmac == $1.mac) && ($1.i == $f($1.segend - 1))) { //#23623 + $1.i = $1.i + 1; //#23621 + if ($1.i >= $1.msglen) { //#23622 + break; //#23622 + } //#23622 + } //#23622 + } //#23622 + if ($1[$get($a(['encA', 'encB', 'encC', 'encBIN']), $1.mode)]() === true) { + break; + } //#23625 + } //#23625 + $1.cws = $geti($1.cws, 0, $1.j); //#23627 + $1.nd = $1.cws.length; //#23630 + $1.minarea = (((($1.nd + 3) + (~~($1.nd / 2))) * 9) + 2) * 2; //#23631 + if ($1.ratio != -1) { //#23659 + $1.hgt = Math.sqrt($1.minarea / $1.ratio); //#23633 + $1.wid = Math.sqrt($1.minarea * $1.ratio); //#23634 + $1.h = ~~$1.hgt; //#23635 + $1.w = ~~$1.wid; //#23635 + if ((($1.h + $1.w) % 2) == 1) { //#23649 + if (($1.h * $1.w) < $1.minarea) { //#23637 + $1.h = $1.h + 1; //#23637 + $1.w = $1.w + 1; //#23637 + } //#23637 + } else { //#23649 + if (($1.hgt * $1.w) < ($1.wid * $1.h)) { //#23649 + $1.w = $1.w + 1; //#23640 + if (($1.h * $1.w) < $1.minarea) { //#23644 + $1.w = $1.w - 1; //#23642 + $1.h = $1.h + 1; //#23642 + if (($1.h * $1.w) < $1.minarea) { //#23643 + $1.w = $1.w + 2; //#23643 + } //#23643 + } //#23643 + } else { //#23649 + $1.h = $1.h + 1; //#23646 + if (($1.h * $1.w) < $1.minarea) { //#23650 + $1.h = $1.h - 1; //#23648 + $1.w = $1.w + 1; //#23648 + if (($1.h * $1.w) < $1.minarea) { //#23649 + $1.h = $1.h + 2; //#23649 + } //#23649 + } //#23649 + } //#23649 + } //#23649 + $1.rows = $1.h; //#23653 + $1.columns = $1.w; //#23653 + } else { //#23659 + if ($1.columns == -1) { //#23657 + var _Kk = ~~((($1.minarea + $1.rows) - 1) / $1.rows); //#23656 + $k[$j++] = 'columns'; //#23656 + $k[$j++] = _Kk; //#23656 + if (((_Kk + $1.rows) % 2) == 0) { //#23656 + var _Km = $k[--$j]; //#23656 + $k[$j++] = $f(_Km + 1); //#23656 + } //#23656 + var _Kn = $k[--$j]; //#23656 + $1[$k[--$j]] = _Kn; //#23656 + } //#23656 + if ($1.rows == -1) { //#23660 + var _Kt = ~~((($1.minarea + $1.columns) - 1) / $1.columns); //#23659 + $k[$j++] = 'rows'; //#23659 + $k[$j++] = _Kt; //#23659 + if (((_Kt + $1.columns) % 2) == 0) { //#23659 + var _Kv = $k[--$j]; //#23659 + $k[$j++] = $f(_Kv + 1); //#23659 + } //#23659 + var _Kw = $k[--$j]; //#23659 + $1[$k[--$j]] = _Kw; //#23659 + } //#23659 + } //#23659 + $1.ndots = ~~(($1.rows * $1.columns) / 2); //#23664 + for (;;) { //#23668 + var _L1 = $1.nd + 1; //#23666 + if ((((_L1 + ((~~(_L1 / 2)) + 3)) * 9) + 2) > $1.ndots) { //#23666 + break; //#23666 + } //#23666 + $1.nd = $1.nd + 1; //#23667 + } //#23667 + $1.nc = (~~($1.nd / 2)) + 3; //#23669 + $1.nw = $1.nd + $1.nc; //#23670 + $1.rembits = $1.ndots - (($1.nw * 9) + 2); //#23671 + if ($1.nd > $1.cws.length) { //#23678 + $k[$j++] = Infinity; //#23676 + $aload($1.cws); //#23674 + var _LE = ($1.mode == $1.BIN) ? 109 : 106; //#23675 + $k[$j++] = _LE; //#23676 + for (var _LH = 0, _LI = ($1.nd - $1.cws.length) - 1; _LH < _LI; _LH++) { //#23676 + $k[$j++] = 106; //#23676 + } //#23676 + $1.cws = $a(); //#23676 + } //#23677 + $1.encs = $a(["101010101", "010101011", "010101101", "010110101", "011010101", "101010110", "101011010", "101101010", "110101010", "010101110", "010110110", "010111010", "011010110", "011011010", "011101010", "100101011", "100101101", "100110101", "101001011", "101001101", "101010011", "101011001", "101100101", "101101001", "110010101", "110100101", "110101001", "001010111", "001011011", "001011101", "001101011", "001101101", "001110101", "010010111", "010011011", "010011101", "010100111", "010110011", "010111001", "011001011", "011001101", "011010011", "011011001", "011100101", "011101001", "100101110", "100110110", "100111010", "101001110", "101011100", "101100110", "101101100", "101110010", "101110100", "110010110", "110011010", "110100110", "110101100", "110110010", "110110100", "111001010", "111010010", "111010100", "001011110", "001101110", "001110110", "001111010", "010011110", "010111100", "011001110", "011011100", "011100110", "011101100", "011110010", "011110100", "100010111", "100011011", "100011101", "100100111", "100110011", "100111001", "101000111", "101100011", "101110001", "110001011", "110001101", "110010011", "110011001", "110100011", "110110001", "111000101", "111001001", "111010001", "000101111", "000110111", "000111011", "000111101", "001001111", "001100111", "001110011", "001111001", "010001111", "011000111", "011100011", "011110001", "100011110", "100111100", "101111000", "110001110", "110011100", "110111000", "111000110", "111001100"]); //#23705 + if (($1.rows % 2) == 0) { //#23725 + $1.sixedges = $a([$a([$1.columns - 1, $1.rows - 2]), $a([0, $1.rows - 2]), $a([$1.columns - 2, $1.rows - 1]), $a([1, $1.rows - 1]), $a([$1.columns - 1, 0]), $a([0, 0])]); //#23716 + } else { //#23725 + $1.sixedges = $a([$a([$1.columns - 2, 0]), $a([$1.columns - 2, $1.rows - 1]), $a([$1.columns - 1, 1]), $a([$1.columns - 1, $1.rows - 2]), $a([0, 0]), $a([0, $1.rows - 1])]); //#23725 + } //#23725 + $1.dmv = function() { + var _Lp = $k[--$j]; //#23728 + var _Lq = $k[--$j]; //#23728 + $k[$j++] = $f(_Lq + (_Lp * $1.columns)); //#23728 + }; //#23728 + $1.outline = $a($1.rows * $1.columns); //#23731 + for (var _Lw = 0, _Lv = $1.rows - 1; _Lw <= _Lv; _Lw += 1) { //#23738 + $1.y = _Lw; //#23733 + for (var _Lz = 0, _Ly = $1.columns - 1; _Lz <= _Ly; _Lz += 1) { //#23737 + $1.x = _Lz; //#23735 + $k[$j++] = $1.outline; //#23736 + $k[$j++] = $1.x; //#23736 + $k[$j++] = $1.y; //#23736 + $1.dmv(); //#23736 + var _M5 = $k[--$j]; //#23736 + $put($k[--$j], _M5, (($1.x + $1.y) % 2) - 1); //#23736 + } //#23736 + } //#23736 + var _M7 = $1.sixedges; //#23739 + for (var _M8 = 0, _M9 = _M7.length; _M8 < _M9; _M8++) { //#23741 + $k[$j++] = $1.outline; //#23740 + $aload($get(_M7, _M8)); //#23740 + $1.dmv(); //#23740 + var _MC = $k[--$j]; //#23740 + $put($k[--$j], _MC, 1); //#23740 + } //#23740 + $1.clearcol = function() { + $1.x = $k[--$j]; //#23744 + $k[$j++] = true; //#23748 + for (var _MI = $1.x & 1, _MH = $1.rows - 1; _MI <= _MH; _MI += 2) { //#23748 + $k[$j++] = $1.x; //#23747 + $k[$j++] = _MI; //#23747 + $1.dmv(); //#23747 + if ($get($1.sym, $k[--$j]) == 1) { //#23747 + $j--; //#23747 + $k[$j++] = false; //#23747 + break; //#23747 + } //#23747 + } //#23747 + }; //#23749 + $1.clearrow = function() { + $1.y = $k[--$j]; //#23752 + $k[$j++] = true; //#23756 + for (var _MR = $1.y & 1, _MQ = $1.columns - 1; _MR <= _MQ; _MR += 2) { //#23756 + $k[$j++] = _MR; //#23755 + $k[$j++] = $1.y; //#23755 + $1.dmv(); //#23755 + if ($get($1.sym, $k[--$j]) == 1) { //#23755 + $j--; //#23755 + $k[$j++] = false; //#23755 + break; //#23755 + } //#23755 + } //#23755 + }; //#23757 + $1.evalsymbol = function() { + $1.sym = $k[--$j]; //#23761 + $1.worst = 9999999; //#23764 + var _Mb = $a([$a(['x', 0]), $a(['x', 1]), $a(['y', 0]), $a(['y', 1])]); //#23765 + for (var _Mc = 0, _Md = _Mb.length; _Mc < _Md; _Mc++) { //#23783 + $aload($get(_Mb, _Mc)); //#23766 + $1.fl = $k[--$j]; //#23766 + $1.dir = $k[--$j]; //#23766 + $1.sum = 0; //#23767 + $1.first = -1; //#23767 + $1.last = -1; //#23767 + var _Mi = $eq($1.dir, 'x') ? $1.columns : $1.rows; //#23768 + for (var _Mk = 0, _Mj = _Mi - 1; _Mk <= _Mj; _Mk += 1) { //#23779 + $1[$1.dir] = _Mk; //#23769 + var _Mm = $1.sym; //#23770 + var _Mo = $1[$1.dir]; //#23771 + var _Mq = $eq($1.dir, 'x') ? $1.rows : $1.columns; //#23772 + var _Mt = (_Mq - 1) * $1.fl; //#23773 + if ($eq($1.dir, 'y')) { //#23773 + var _ = _Mt; //#23773 + _Mt = _Mo; //#23773 + _Mo = _; //#23773 + } //#23773 + $k[$j++] = _Mm; //#23774 + $k[$j++] = _Mo; //#23774 + $k[$j++] = _Mt; //#23774 + $1.dmv(); //#23774 + var _Mu = $k[--$j]; //#23774 + if ($get($k[--$j], _Mu) == 1) { //#23778 + if ($1.first == -1) { //#23775 + $1.first = $1[$1.dir]; //#23775 + } //#23775 + $1.last = $1[$1.dir]; //#23776 + $1.sum = $1.sum + 1; //#23777 + } //#23777 + } //#23777 + var _N7 = $eq($1.dir, 'x') ? $1.rows : $1.columns; //#23781 + var _N8 = ($f($f($1.sum + $1.last) - $1.first)) * _N7; //#23782 + $k[$j++] = _N8; //#23782 + if (_N8 < $1.worst) { //#23782 + $1.worst = $k[--$j]; //#23782 + } else { //#23782 + $j--; //#23782 + } //#23782 + } //#23782 + $1.pen = 0; //#23785 + if ((($1.rows % 2) == 1) || ($1.rows <= 12)) { //#23803 + $1.sum = 0; //#23791 + $1.p = 0; //#23791 + for (var _NF = 1, _NE = $1.columns - 2; _NF <= _NE; _NF += 1) { //#23801 + $k[$j++] = _NF; //#23793 + $1.clearcol(); //#23793 + if ($k[--$j]) { //#23799 + $1.sum = $1.sum + 1; //#23794 + $k[$j++] = 'p'; //#23795 + if ($1.sum == 1) { //#23795 + $k[$j++] = $1.rows; //#23795 + } else { //#23795 + $k[$j++] = $1.p * $1.rows; //#23795 + } //#23795 + var _NM = $k[--$j]; //#23795 + $1[$k[--$j]] = _NM; //#23795 + } else { //#23799 + $1.sum = 0; //#23797 + $1.pen = $1.pen + $1.p; //#23798 + $1.p = 0; //#23799 + } //#23799 + } //#23799 + $1.pen = $1.pen + $1.p; //#23802 + } //#23802 + if ((($1.rows % 2) == 0) || ($1.columns <= 12)) { //#23821 + $1.sum = 0; //#23809 + $1.p = 0; //#23809 + for (var _NW = 1, _NV = $1.rows - 2; _NW <= _NV; _NW += 1) { //#23819 + $k[$j++] = _NW; //#23811 + $1.clearrow(); //#23811 + if ($k[--$j]) { //#23817 + $1.sum = $1.sum + 1; //#23812 + $k[$j++] = 'p'; //#23813 + if ($1.sum == 1) { //#23813 + $k[$j++] = $1.columns; //#23813 + } else { //#23813 + $k[$j++] = $1.p * $1.columns; //#23813 + } //#23813 + var _Nd = $k[--$j]; //#23813 + $1[$k[--$j]] = _Nd; //#23813 + } else { //#23817 + $1.sum = 0; //#23815 + $1.pen = $1.pen + $1.p; //#23816 + $1.p = 0; //#23817 + } //#23817 + } //#23817 + $1.pen = $1.pen + $1.p; //#23820 + } //#23820 + $k[$j++] = Infinity; //#23831 + for (var _Nk = 0, _Nl = ($1.columns + 4) * 2; _Nk < _Nl; _Nk++) { //#23825 + $k[$j++] = 0; //#23825 + } //#23825 + for (var _Np = 0, _Nq = $1.columns, _No = $1.sym.length - 1; _Nq < 0 ? _Np >= _No : _Np <= _No; _Np += _Nq) { //#23830 + $k[$j++] = 0; //#23828 + $k[$j++] = 0; //#23828 + $aload($geti($1.sym, _Np, $1.columns)); //#23828 + $k[$j++] = 0; //#23829 + $k[$j++] = 0; //#23829 + } //#23829 + for (var _Nv = 0, _Nw = ($1.columns + 4) * 2; _Nv < _Nw; _Nv++) { //#23831 + $k[$j++] = 0; //#23831 + } //#23831 + $1.symp = $a(); //#23831 + $1.columns = $1.columns + 4; //#23835 + $1.rows = $1.rows + 4; //#23836 + $1.sum = 0; //#23837 + for (var _O2 = 2, _O1 = $1.rows - 3; _O2 <= _O1; _O2 += 1) { //#23855 + $1.y = _O2; //#23839 + for (var _O6 = ($1.y & 1) + 2, _O5 = $1.columns - 3; _O6 <= _O5; _O6 += 2) { //#23854 + $1.x = _O6; //#23841 + for (var _O7 = 0, _O8 = 1; _O7 < _O8; _O7++) { //#23853 + $k[$j++] = $1.symp; //#23843 + $k[$j++] = $1.x - 1; //#23843 + $k[$j++] = $1.y - 1; //#23843 + $1.dmv(); //#23843 + var _OC = $k[--$j]; //#23843 + if ($get($k[--$j], _OC) == 1) { //#23843 + break; //#23843 + } //#23843 + $k[$j++] = $1.symp; //#23844 + $k[$j++] = $1.x + 1; //#23844 + $k[$j++] = $1.y - 1; //#23844 + $1.dmv(); //#23844 + var _OI = $k[--$j]; //#23844 + if ($get($k[--$j], _OI) == 1) { //#23844 + break; //#23844 + } //#23844 + $k[$j++] = $1.symp; //#23845 + $k[$j++] = $1.x - 1; //#23845 + $k[$j++] = $1.y + 1; //#23845 + $1.dmv(); //#23845 + var _OO = $k[--$j]; //#23845 + if ($get($k[--$j], _OO) == 1) { //#23845 + break; //#23845 + } //#23845 + $k[$j++] = $1.symp; //#23846 + $k[$j++] = $1.x + 1; //#23846 + $k[$j++] = $1.y + 1; //#23846 + $1.dmv(); //#23846 + var _OU = $k[--$j]; //#23846 + if ($get($k[--$j], _OU) == 1) { //#23846 + break; //#23846 + } //#23846 + $k[$j++] = $1.symp; //#23847 + $k[$j++] = $1.x; //#23847 + $k[$j++] = $1.y; //#23847 + $1.dmv(); //#23847 + var _Oa = $k[--$j]; //#23847 + if ($get($k[--$j], _Oa) == 0) { //#23847 + $1.sum = $1.sum + 1; //#23847 + break; //#23847 + } //#23847 + $k[$j++] = $1.symp; //#23848 + $k[$j++] = $1.x - 2; //#23848 + $k[$j++] = $1.y; //#23848 + $1.dmv(); //#23848 + var _Oh = $k[--$j]; //#23848 + if ($get($k[--$j], _Oh) == 1) { //#23848 + break; //#23848 + } //#23848 + $k[$j++] = $1.symp; //#23849 + $k[$j++] = $1.x; //#23849 + $k[$j++] = $1.y - 2; //#23849 + $1.dmv(); //#23849 + var _On = $k[--$j]; //#23849 + if ($get($k[--$j], _On) == 1) { //#23849 + break; //#23849 + } //#23849 + $k[$j++] = $1.symp; //#23850 + $k[$j++] = $1.x + 2; //#23850 + $k[$j++] = $1.y; //#23850 + $1.dmv(); //#23850 + var _Ot = $k[--$j]; //#23850 + if ($get($k[--$j], _Ot) == 1) { //#23850 + break; //#23850 + } //#23850 + $k[$j++] = $1.symp; //#23851 + $k[$j++] = $1.x; //#23851 + $k[$j++] = $1.y + 2; //#23851 + $1.dmv(); //#23851 + var _Oz = $k[--$j]; //#23851 + if ($get($k[--$j], _Oz) == 1) { //#23851 + break; //#23851 + } //#23851 + $1.sum = $1.sum + 1; //#23852 + } //#23852 + } //#23852 + } //#23852 + $1.columns = $1.columns - 4; //#23856 + $1.rows = $1.rows - 4; //#23857 + if ($1.worst == 0) { //#23862 + $k[$j++] = -99999; //#23860 + } else { //#23862 + $k[$j++] = $f(($f($1.worst - ($1.sum * $1.sum))) - $1.pen); //#23862 + } //#23862 + }; //#23865 + $k[$j++] = Infinity; //#23868 + $k[$j++] = 1; //#23868 + for (var _PA = 0, _PB = 112; _PA < _PB; _PA++) { //#23868 + var _PC = $k[--$j]; //#23868 + $k[$j++] = _PC; //#23868 + $k[$j++] = (_PC * 3) % 113; //#23868 + } //#23868 + $1.rsalog = $a(); //#23868 + $1.step = (~~($1.nw / 112)) + 1; //#23869 + $1.offset = function() { + var _PG = $k[--$j]; //#23870 + $k[$j++] = $f((_PG * $1.step) + $1.start); //#23870 + }; //#23870 + $1.bestscore = -99999999; //#23878 + $k[$j++] = 'masks'; //#23883 + if ($1.mask != -1) { //#23882 + $k[$j++] = $a([$1.mask]); //#23880 + } else { //#23882 + if ($1.fast) { //#23882 + $k[$j++] = $a([3, 2, 1, 0]); //#23882 + } else { //#23882 + $k[$j++] = $a([0, 1, 2, 3]); //#23882 + } //#23882 + } //#23882 + var _PO = $k[--$j]; //#23883 + $1[$k[--$j]] = _PO; //#23883 + $1.litmasks = $a(4); //#23884 + $forall($1.masks, function() { //#23986 + $1.mask = $k[--$j]; //#23887 + $k[$j++] = Infinity; //#23893 + var _PX = $1.cws; //#23892 + $k[$j++] = $1.mask; //#23892 + $k[$j++] = $get($a([0, 3, 7, 17]), $1.mask); //#23892 + $k[$j++] = 0; //#23892 + for (var _PY = 0, _PZ = _PX.length; _PY < _PZ; _PY++) { //#23892 + var _Pb = $k[--$j]; //#23892 + var _Pc = $k[--$j]; //#23892 + $k[$j++] = $f($get(_PX, _PY) + _Pb) % 113; //#23892 + $k[$j++] = _Pc; //#23892 + $k[$j++] = $f(_Pb + _Pc); //#23892 + } //#23892 + $j -= 2; //#23892 + for (var _Pe = 0, _Pf = $1.nc; _Pe < _Pf; _Pe++) { //#23893 + $k[$j++] = 0; //#23893 + } //#23893 + $1.rscws = $a(); //#23893 + for (var _Pj = 0, _Pi = $1.step - 1; _Pj <= _Pi; _Pj += 1) { //#23917 + $1.start = _Pj; //#23896 + $1.ND = ~~((((($1.nd + 1) - $1.start) + $1.step) - 1) / $1.step); //#23897 + $1.NW = ~~((((($1.nw + 1) - $1.start) + $1.step) - 1) / $1.step); //#23898 + $1.NC = $1.NW - $1.ND; //#23899 + $k[$j++] = Infinity; //#23900 + $k[$j++] = 1; //#23900 + for (var _Pv = 0, _Pw = $1.NC; _Pv < _Pw; _Pv++) { //#23900 + $k[$j++] = 0; //#23900 + } //#23900 + $1.coeffs = $a(); //#23900 + for (var _Q0 = 1, _Pz = $1.NC; _Q0 <= _Pz; _Q0 += 1) { //#23907 + $1.i = _Q0; //#23902 + for (var _Q2 = $1.NC; _Q2 >= 1; _Q2 -= 1) { //#23906 + $1.j = _Q2; //#23904 + $put($1.coeffs, $1.j, ($f($f($get($1.coeffs, $1.j) + 113) - (($get($1.rsalog, $1.i) * $get($1.coeffs, $1.j - 1)) % 113))) % 113); //#23905 + } //#23905 + } //#23905 + for (var _QG = 0, _QF = $1.ND - 1; _QG <= _QF; _QG += 1) { //#23915 + $k[$j++] = 't'; //#23909 + $k[$j++] = $1.rscws; //#23909 + $k[$j++] = _QG; //#23909 + $1.offset(); //#23909 + var _QI = $k[--$j]; //#23909 + var _QK = $get($k[--$j], _QI); //#23909 + $k[$j++] = _QK; //#23909 + $k[$j++] = $1.rscws; //#23909 + $k[$j++] = $1.ND; //#23909 + $1.offset(); //#23909 + var _QN = $k[--$j]; //#23909 + var _QP = $get($k[--$j], _QN); //#23909 + var _QQ = $k[--$j]; //#23909 + $1[$k[--$j]] = $f(_QQ + _QP) % 113; //#23909 + for (var _QU = 0, _QT = $1.NC - 2; _QU <= _QT; _QU += 1) { //#23913 + $1.j = _QU; //#23911 + $k[$j++] = $1.rscws; //#23912 + $k[$j++] = $1.ND + $1.j; //#23912 + $1.offset(); //#23912 + $k[$j++] = $1.rscws; //#23912 + $k[$j++] = ($1.ND + $1.j) + 1; //#23912 + $1.offset(); //#23912 + var _Qb = $k[--$j]; //#23912 + var _Qd = $get($k[--$j], _Qb); //#23912 + var _Qi = $k[--$j]; //#23912 + $put($k[--$j], _Qi, ($f($f(_Qd + 113) - (($1.t * $get($1.coeffs, $1.j + 1)) % 113))) % 113); //#23912 + } //#23912 + $k[$j++] = $1.rscws; //#23914 + $k[$j++] = ($1.ND + $1.NC) - 1; //#23914 + $1.offset(); //#23914 + var _Qr = $k[--$j]; //#23914 + $put($k[--$j], _Qr, ($f(113 - (($1.t * $get($1.coeffs, $1.NC)) % 113))) % 113); //#23914 + } //#23914 + for (var _Qw = $1.ND, _Qv = $1.NW - 1; _Qw <= _Qv; _Qw += 1) { //#23916 + $k[$j++] = _Qw; //#23916 + $k[$j++] = $1.rscws; //#23916 + $k[$j++] = _Qw; //#23916 + $1.offset(); //#23916 + var _Qz = $k[--$j]; //#23916 + var _R0 = $k[--$j]; //#23916 + var _R1 = $k[--$j]; //#23916 + $k[$j++] = _R0; //#23916 + $k[$j++] = _Qz; //#23916 + $k[$j++] = 113; //#23916 + $k[$j++] = $1.rscws; //#23916 + $k[$j++] = _R1; //#23916 + $1.offset(); //#23916 + var _R2 = $k[--$j]; //#23916 + var _R4 = $get($k[--$j], _R2); //#23916 + var _R5 = $k[--$j]; //#23916 + var _R6 = $k[--$j]; //#23916 + $put($k[--$j], _R6, $f(_R5 - _R4) % 113); //#23916 + } //#23916 + } //#23916 + $1.bits = $s($1.ndots); //#23920 + $puti($1.bits, 0, $get($a(["00", "01", "10", "11"]), $1.mask)); //#23921 + for (var _RG = 1, _RF = $1.nw; _RG <= _RF; _RG += 1) { //#23925 + $1.i = _RG; //#23923 + $puti($1.bits, (($1.i - 1) * 9) + 2, $get($1.encs, $get($1.rscws, $1.i))); //#23924 + } //#23924 + if ($1.rembits > 0) { //#23928 + $puti($1.bits, ($1.nw * 9) + 2, $geti("11111111111111111", 0, $1.rembits)); //#23927 + } //#23927 + var _RT = $1.outline; //#23931 + $1.pixs = $arrcpy($a(_RT.length), _RT); //#23931 + $1.posx = 0; //#23932 + $k[$j++] = 'posy'; //#23933 + if (($1.rows % 2) == 0) { //#23933 + $k[$j++] = 0; //#23933 + } else { //#23933 + $k[$j++] = $1.rows - 1; //#23933 + } //#23933 + var _RY = $k[--$j]; //#23933 + $1[$k[--$j]] = _RY; //#23933 + var _Rc = $geti($1.bits, 0, $1.bits.length - 6); //#23934 + for (var _Rd = 0, _Re = _Rc.length; _Rd < _Re; _Rd++) { //#23952 + $k[$j++] = $get(_Rc, _Rd); //#23950 + for (;;) { //#23950 + $k[$j++] = $1.pixs; //#23936 + $k[$j++] = $1.posx; //#23936 + $k[$j++] = $1.posy; //#23936 + $1.dmv(); //#23936 + var _Rj = $k[--$j]; //#23936 + if ($get($k[--$j], _Rj) == -1) { //#23936 + break; //#23936 + } //#23936 + if (($1.rows % 2) == 0) { //#23947 + $1.posy = $1.posy + 1; //#23938 + if ($1.posy == $1.rows) { //#23942 + $1.posy = 0; //#23940 + $1.posx = $1.posx + 1; //#23941 + } //#23941 + } else { //#23947 + $1.posx = $1.posx + 1; //#23944 + if ($1.posx == $1.columns) { //#23948 + $1.posx = 0; //#23946 + $1.posy = $1.posy - 1; //#23947 + } //#23947 + } //#23947 + } //#23947 + $k[$j++] = $1.pixs; //#23951 + $k[$j++] = $1.posx; //#23951 + $k[$j++] = $1.posy; //#23951 + $1.dmv(); //#23951 + var _Ry = $k[--$j]; //#23951 + var _Rz = $k[--$j]; //#23951 + $put(_Rz, _Ry, $f($k[--$j] - 48)); //#23951 + } //#23951 + for (var _S1 = 0; _S1 <= 5; _S1 += 1) { //#23957 + $1.i = _S1; //#23954 + $k[$j++] = $1.pixs; //#23955 + $aload($get($1.sixedges, $1.i)); //#23955 + $1.dmv(); //#23955 + var _SA = $k[--$j]; //#23956 + $put($k[--$j], _SA, $get($1.bits, ($1.bits.length - 6) + $1.i) - 48); //#23956 + } //#23956 + $k[$j++] = 'score'; //#23960 + $k[$j++] = $1.pixs; //#23960 + $1.evalsymbol(); //#23960 + var _SD = $k[--$j]; //#23960 + $1[$k[--$j]] = _SD; //#23960 + if ($1.score > $1.bestscore) { //#23965 + $1.bestsym = $1.pixs; //#23962 + $1.bestscore = $1.score; //#23963 + if ($1.fast && ($1.bestscore > (~~(($1.rows * $1.columns) / 2)))) { //#23964 + return true; //#23964 + } //#23964 + } //#23964 + var _SN = $1.pixs; //#23968 + $1.litmask = $arrcpy($a(_SN.length), _SN); //#23968 + for (var _SQ = 0; _SQ <= 5; _SQ += 1) { //#23973 + $1.i = _SQ; //#23970 + $k[$j++] = $1.litmask; //#23971 + $aload($get($1.sixedges, $1.i)); //#23971 + $1.dmv(); //#23971 + var _SV = $k[--$j]; //#23972 + $put($k[--$j], _SV, 1); //#23972 + } //#23972 + $put($1.litmasks, $1.mask, $1.litmask); //#23974 + if ($1.fast) { //#23984 + $k[$j++] = 'score'; //#23978 + $k[$j++] = $1.litmask; //#23978 + $1.evalsymbol(); //#23978 + var _Sc = $k[--$j]; //#23978 + $1[$k[--$j]] = _Sc; //#23978 + if ($gt($1.score, $1.bestscore)) { //#23983 + $1.bestsym = $1.litmask; //#23980 + $1.bestscore = $1.score; //#23981 + if ($1.bestscore > (~~(($1.rows * $1.columns) / 2))) { //#23982 + return true; //#23982 + } //#23982 + } //#23982 + } //#23982 + }); //#23982 + $1.pixs = $1.bestsym; //#23987 + if ((!$1.fast) && ($1.bestscore <= (~~(($1.rows * $1.columns) / 2)))) { //#24001 + $1.bestscore = -99999999; //#23991 + $forall($1.masks, function() { //#23999 + $1.litmask = $get($1.litmasks, $k[--$j]); //#23993 + $k[$j++] = 'score'; //#23994 + $k[$j++] = $1.litmask; //#23994 + $1.evalsymbol(); //#23994 + var _Sv = $k[--$j]; //#23994 + $1[$k[--$j]] = _Sv; //#23994 + if ($1.score > $1.bestscore) { //#23998 + $1.bestsym = $1.litmask; //#23996 + $1.bestscore = $1.score; //#23997 + } //#23997 + }); //#23997 + $1.pixs = $1.bestsym; //#24000 + } //#24000 + var _T8 = new Map([ + ["ren", $0.renmatrix], + ["dotty", true], + ["pixs", $1.pixs], + ["pixx", $1.columns], + ["pixy", $1.rows], + ["height", ($1.rows * 2) / 72], + ["width", ($1.columns * 2) / 72], + ["opt", $1.options] + ]); //#24012 + $k[$j++] = _T8; //#24015 + if (!$1.dontdraw) { //#24015 + $0.renmatrix(); //#24015 + } //#24015 + }; + $0.ultracode = function() { + var $1 = {}; //#24045 + $1.options = $k[--$j]; //#24047 + $1.barcode = $k[--$j]; //#24048 + $1.dontdraw = false; //#24050 + $1.eclevel = "EC2"; //#24051 + $1.parse = false; //#24052 + $1.parsefnc = false; //#24053 + $forall($1.options, function() { //#24064 + var _3 = $k[--$j]; //#24064 + $1[$k[--$j]] = _3; //#24064 + }); //#24064 + $1.fn1 = -1; //#24067 + $1.fn3 = -2; //#24067 + var _9 = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["FNC1", $1.fn1], + ["FNC3", $1.fn3] + ]); //#24072 + $1.fncvals = _9; //#24073 + $k[$j++] = 'msg'; //#24074 + $k[$j++] = $1.barcode; //#24074 + $k[$j++] = $1.fncvals; //#24074 + $0.parseinput(); //#24074 + var _C = $k[--$j]; //#24074 + $1[$k[--$j]] = _C; //#24074 + $1.msglen = $1.msg.length; //#24075 + $1.start = 257; //#24078 + $1.scr = $a([]); //#24079 + $1.link1 = 0; //#24080 + $1.scp = $a([]); //#24081 + $k[$j++] = Infinity; //#24087 + $aload($1.scr); //#24083 + $aload($1.scp); //#24084 + $forall($1.msg, function() { //#24088 + var _K = $k[--$j]; //#24086 + $k[$j++] = _K; //#24086 + if (_K == $1.fn1) { //#24086 + $j--; //#24086 + $k[$j++] = 268; //#24086 + } //#24086 + var _M = $k[--$j]; //#24087 + $k[$j++] = _M; //#24087 + if (_M == $1.fn3) { //#24087 + $j--; //#24087 + $k[$j++] = 269; //#24087 + } //#24087 + }); //#24087 + $1.dcws = $a(); //#24087 + $1.mcc = $1.dcws.length + 3; //#24090 + $1.eclval = $get($1.eclevel, 2) - 48; //#24092 + if ($1.eclval != 0) { //#24096 + $k[$j++] = 'qcc'; //#24094 + $k[$j++] = $get($a([0, 1, 2, 4, 6, 8]), $1.eclval); //#24094 + $k[$j++] = ~~($1.mcc / 25); //#24094 + if (($1.mcc % 25) != 0) { //#24094 + var _Y = $k[--$j]; //#24094 + $k[$j++] = $f(_Y + 1); //#24094 + } //#24094 + var _Z = $k[--$j]; //#24094 + var _a = $k[--$j]; //#24094 + $1[$k[--$j]] = $f((_a * _Z) + 5); //#24094 + } else { //#24096 + $1.qcc = 3; //#24096 + } //#24096 + $1.acc = ($1.qcc - 3) + (78 * $1.link1); //#24098 + $1.tcc = $1.mcc + $1.qcc; //#24099 + $1.metrics = $a([$a([2, 4, 34, 5]), $a([3, 33, 82, 13]), $a([4, 82, 158, 23]), $a([5, 134, 282, 30])]); //#24109 + for (var _l = 0; _l <= 3; _l += 1) { //#24120 + $1.i = _l; //#24111 + $1.m = $get($1.metrics, $1.i); //#24112 + $1.rows = $get($1.m, 0); //#24113 + $1.minc = $get($1.m, 1); //#24114 + $1.maxc = $get($1.m, 2); //#24115 + $1.mcol = $get($1.m, 3); //#24116 + $1.okay = true; //#24117 + if (($1.tcc < $1.minc) || ($1.tcc > $1.maxc)) { //#24118 + $1.okay = false; //#24118 + } //#24118 + if ($1.okay) { //#24119 + break; //#24119 + } //#24119 + } //#24119 + if (!$1.okay) { //#24124 + $k[$j++] = 'bwipp.ultracodeNoValidSymbol'; //#24123 + $k[$j++] = "No valid symbol available"; //#24123 + $0.raiseerror(); //#24123 + } //#24123 + for (var _14 = $1.mcol; _14 <= 61; _14 += 1) { //#24138 + $1.columns = _14; //#24128 + $k[$j++] = $1.columns; //#24130 + if ($1.columns >= 15) { //#24130 + var _17 = $k[--$j]; //#24130 + $k[$j++] = $f(_17 - 1); //#24130 + } //#24130 + if ($1.columns >= 31) { //#24131 + var _19 = $k[--$j]; //#24131 + $k[$j++] = $f(_19 - 1); //#24131 + } //#24131 + if ($1.columns >= 47) { //#24132 + var _1B = $k[--$j]; //#24132 + $k[$j++] = $f(_1B - 1); //#24132 + } //#24132 + var _1F = $f(($f(($k[--$j] * $1.rows) - 3)) - $1.tcc); //#24133 + $k[$j++] = _1F; //#24136 + if (_1F >= 0) { //#24136 + $1.pads = $k[--$j]; //#24134 + break; //#24135 + } //#24135 + $j--; //#24137 + } //#24137 + $1.dcc = $f($1.columns - $1.mcol); //#24139 + $k[$j++] = Infinity; //#24149 + $k[$j++] = $1.start; //#24146 + $k[$j++] = $1.mcc; //#24146 + $k[$j++] = $1.acc; //#24146 + $aload($1.scr); //#24146 + $aload($1.dcws); //#24147 + for (var _1P = 0, _1Q = $1.qcc; _1P < _1Q; _1P++) { //#24148 + $k[$j++] = 0; //#24148 + } //#24148 + $k[$j++] = 0; //#24149 + $1.rsseq = $a(); //#24149 + $k[$j++] = Infinity; //#24153 + $k[$j++] = 1; //#24153 + for (var _1S = 0, _1T = 282; _1S < _1T; _1S++) { //#24153 + var _1U = $k[--$j]; //#24153 + $k[$j++] = _1U; //#24153 + $k[$j++] = (_1U * 3) % 283; //#24153 + } //#24153 + $1.rsalog = $a(); //#24153 + $1.rslog = $a(283); //#24154 + for (var _1X = 1; _1X <= 282; _1X += 1) { //#24155 + $put($1.rslog, $get($1.rsalog, _1X), _1X); //#24155 + } //#24155 + $1.rsprod = function() { + var _1b = $k[--$j]; //#24159 + var _1c = $k[--$j]; //#24159 + $k[$j++] = _1c; //#24163 + $k[$j++] = _1b; //#24163 + if ((_1b != 0) && (_1c != 0)) { //#24162 + var _1f = $get($1.rslog, $k[--$j]); //#24160 + var _1k = $get($1.rsalog, $f(_1f + $get($1.rslog, $k[--$j])) % 282); //#24160 + $k[$j++] = _1k; //#24160 + } else { //#24162 + $j -= 2; //#24162 + $k[$j++] = 0; //#24162 + } //#24162 + }; //#24164 + $1.n = $1.mcc; //#24167 + $1.k = $1.qcc; //#24167 + $k[$j++] = Infinity; //#24168 + $k[$j++] = 1; //#24168 + for (var _1o = 0, _1p = $1.k; _1o < _1p; _1o++) { //#24168 + $k[$j++] = 0; //#24168 + } //#24168 + $1.coeffs = $a(); //#24168 + for (var _1t = 1, _1s = $1.k; _1t <= _1s; _1t += 1) { //#24177 + $1.i = _1t; //#24170 + $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); //#24171 + for (var _20 = $1.i - 1; _20 >= 1; _20 -= 1) { //#24175 + $1.j = _20; //#24173 + $k[$j++] = $1.coeffs; //#24174 + $k[$j++] = $1.j; //#24174 + $k[$j++] = $get($1.coeffs, $1.j - 1); //#24174 + $k[$j++] = $get($1.coeffs, $1.j); //#24174 + $k[$j++] = $get($1.rsalog, $1.i); //#24174 + $1.rsprod(); //#24174 + var _2C = $k[--$j]; //#24174 + var _2D = $k[--$j]; //#24174 + var _2E = $k[--$j]; //#24174 + $put($k[--$j], _2E, $f(_2D + _2C) % 283); //#24174 + } //#24174 + $k[$j++] = $1.coeffs; //#24176 + $k[$j++] = 0; //#24176 + $k[$j++] = $get($1.coeffs, 0); //#24176 + $k[$j++] = $get($1.rsalog, $1.i); //#24176 + $1.rsprod(); //#24176 + var _2M = $k[--$j]; //#24176 + var _2N = $k[--$j]; //#24176 + $put($k[--$j], _2N, _2M); //#24176 + } //#24176 + $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); //#24178 + for (var _2T = $1.coeffs.length - 1; _2T >= 0; _2T -= 2) { //#24179 + var _2U = $1.coeffs; //#24179 + $put(_2U, _2T, $f(283 - $get(_2U, _2T))); //#24179 + } //#24179 + for (var _2Y = 0, _2X = $1.n - 1; _2Y <= _2X; _2Y += 1) { //#24188 + $1.t = $f($get($1.rsseq, _2Y) + $get($1.rsseq, $1.n)) % 283; //#24183 + for (var _2g = 0, _2f = $1.k - 1; _2g <= _2f; _2g += 1) { //#24187 + $1.j = _2g; //#24185 + $put($1.rsseq, $1.n + $1.j, ($f($get($1.rsseq, ($1.n + $1.j) + 1) + ($f(283 - (($1.t * $get($1.coeffs, ($1.k - $1.j) - 1)) % 283))))) % 283); //#24186 + } //#24186 + } //#24186 + for (var _2x = $1.n, _2w = $1.n + $1.k; _2x <= _2w; _2x += 1) { //#24189 + $put($1.rsseq, _2x, $f(283 - $get($1.rsseq, _2x)) % 283); //#24189 + } //#24189 + $1.ecws = $geti($1.rsseq, $1.n, $1.k); //#24190 + $1.dccu = $a([51363, 51563, 51653, 53153, 53163, 53513, 53563, 53613, 53653, 56153, 56163, 56313, 56353, 56363, 56513, 56563, 51316, 51356, 51536, 51616, 53156, 53516, 53536, 53616, 53636, 53656, 56136, 56156, 56316, 56356, 56516, 56536]); //#24197 + $1.dccl = $a([61351, 61361, 61531, 61561, 61631, 61651, 63131, 63151, 63161, 63531, 63561, 63631, 65131, 65161, 65351, 65631, 31351, 31361, 31531, 31561, 31631, 31651, 35131, 35151, 35161, 35361, 35631, 35651, 36131, 36151, 36351, 36531]); //#24204 + $1.tiles = $a([13135, 13136, 13153, 13156, 13163, 13165, 13513, 13515, 13516, 13531, 13535, 13536, 13561, 13563, 13565, 13613, 13615, 13616, 13631, 13635, 13636, 13651, 13653, 13656, 15135, 15136, 15153, 15163, 15165, 15313, 15315, 15316, 15351, 15353, 15356, 15361, 15363, 15365, 15613, 15615, 15616, 15631, 15635, 15636, 15651, 15653, 15656, 16135, 16136, 16153, 16156, 16165, 16313, 16315, 16316, 16351, 16353, 16356, 16361, 16363, 16365, 16513, 16515, 16516, 16531, 16535, 16536, 16561, 16563, 16565, 31315, 31316, 31351, 31356, 31361, 31365, 31513, 31515, 31516, 31531, 31535, 31536, 31561, 31563, 31565, 31613, 31615, 31631, 31635, 31636, 31651, 31653, 31656, 35131, 35135, 35136, 35151, 35153, 35156, 35161, 35163, 35165, 35315, 35316, 35351, 35356, 35361, 35365, 35613, 35615, 35616, 35631, 35635, 35636, 35651, 35653, 35656, 36131, 36135, 36136, 36151, 36153, 36156, 36163, 36165, 36315, 36316, 36351, 36356, 36361, 36365, 36513, 36515, 36516, 36531, 36535, 36536, 36561, 36563, 36565, 51313, 51315, 51316, 51351, 51353, 51356, 51361, 51363, 51365, 51513, 51516, 51531, 51536, 51561, 51563, 51613, 51615, 51616, 51631, 51635, 51636, 51651, 51653, 51656, 53131, 53135, 53136, 53151, 53153, 53156, 53161, 53163, 53165, 53513, 53516, 53531, 53536, 53561, 53563, 53613, 53615, 53616, 53631, 53635, 53636, 53651, 53653, 53656, 56131, 56135, 56136, 56151, 56153, 56156, 56161, 56163, 56165, 56313, 56315, 56316, 56351, 56353, 56356, 56361, 56363, 56365, 56513, 56516, 56531, 56536, 56561, 56563, 61313, 61315, 61316, 61351, 61353, 61356, 61361, 61363, 61365, 61513, 61515, 61516, 61531, 61535, 61536, 61561, 61563, 61565, 61615, 61631, 61635, 61651, 61653, 63131, 63135, 63136, 63151, 63153, 63156, 63161, 63163, 63165, 63513, 63515, 63516, 63531, 63535, 63536, 63561, 63563, 63565, 63613, 63615, 63631, 63635, 63651, 63653, 65131, 65135, 65136, 65151, 65153, 65156, 65161, 65163, 65165, 65313, 65315, 65316, 65351, 65353, 65356, 65361, 65363, 65365, 65613, 65615, 65631, 65635, 65651, 65653, 56565, 51515]); //#24236 + $1.rows = $f(($1.rows * 6) + 1); //#24239 + $1.columns = $1.columns + 6; //#24240 + $k[$j++] = Infinity; //#24241 + for (var _3C = 0, _3D = $1.rows * $1.columns; _3C < _3D; _3C++) { //#24241 + $k[$j++] = -1; //#24241 + } //#24241 + $1.pixs = $a(); //#24241 + $1.qmv = function() { + var _3G = $k[--$j]; //#24242 + var _3H = $k[--$j]; //#24242 + $k[$j++] = $f(_3H + (_3G * $1.columns)); //#24242 + }; //#24242 + for (var _3K = 0, _3J = $1.columns - 1; _3K <= _3J; _3K += 1) { //#24251 + $1.i = _3K; //#24244 + for (var _3N = 0, _3M = $f($1.rows - 1); _3N <= _3M; _3N += 6) { //#24248 + $1.j = _3N; //#24246 + if ($1.i >= 5) { //#24247 + $k[$j++] = $1.pixs; //#24247 + $k[$j++] = $1.i; //#24247 + $k[$j++] = $1.j; //#24247 + $1.qmv(); //#24247 + var _3T = $k[--$j]; //#24247 + $put($k[--$j], _3T, ($1.i % 2) * 9); //#24247 + } //#24247 + } //#24247 + $k[$j++] = $1.pixs; //#24249 + $k[$j++] = $1.i; //#24249 + $k[$j++] = 0; //#24249 + $1.qmv(); //#24249 + var _3X = $k[--$j]; //#24249 + $put($k[--$j], _3X, 9); //#24249 + $k[$j++] = $1.pixs; //#24250 + $k[$j++] = $1.i; //#24250 + $k[$j++] = $f($1.rows - 1); //#24250 + $1.qmv(); //#24250 + var _3c = $k[--$j]; //#24250 + $put($k[--$j], _3c, 9); //#24250 + } //#24250 + for (var _3g = 1, _3f = $f($1.rows - 2); _3g <= _3f; _3g += 1) { //#24264 + $1.i = _3g; //#24253 + for (var _3j = 3, _3i = $1.columns - 1; _3j <= _3i; _3j += 16) { //#24257 + $1.j = _3j; //#24255 + $k[$j++] = $1.pixs; //#24256 + $k[$j++] = $1.j; //#24256 + $k[$j++] = $1.i; //#24256 + $1.qmv(); //#24256 + var _3o = $k[--$j]; //#24256 + $put($k[--$j], _3o, (1 - ($1.i % 2)) * 9); //#24256 + } //#24256 + $k[$j++] = $1.pixs; //#24258 + $k[$j++] = 0; //#24258 + $k[$j++] = $1.i; //#24258 + $1.qmv(); //#24258 + var _3s = $k[--$j]; //#24258 + $put($k[--$j], _3s, 9); //#24258 + $k[$j++] = $1.pixs; //#24259 + $k[$j++] = 1; //#24259 + $k[$j++] = $1.i; //#24259 + $1.qmv(); //#24259 + var _3x = $k[--$j]; //#24259 + $put($k[--$j], _3x, (1 - ($1.i % 2)) * 9); //#24259 + $k[$j++] = $1.pixs; //#24260 + $k[$j++] = 2; //#24260 + $k[$j++] = $1.i; //#24260 + $1.qmv(); //#24260 + var _41 = $k[--$j]; //#24260 + $put($k[--$j], _41, 0); //#24260 + $k[$j++] = $1.pixs; //#24261 + $k[$j++] = 3; //#24261 + $k[$j++] = $1.i; //#24261 + $1.qmv(); //#24261 + var _45 = $k[--$j]; //#24261 + $put($k[--$j], _45, 9); //#24261 + $k[$j++] = $1.pixs; //#24262 + $k[$j++] = 4; //#24262 + $k[$j++] = $1.i; //#24262 + $1.qmv(); //#24262 + var _49 = $k[--$j]; //#24262 + $put($k[--$j], _49, 0); //#24262 + $k[$j++] = $1.pixs; //#24263 + $k[$j++] = $1.columns - 1; //#24263 + $k[$j++] = $1.i; //#24263 + $1.qmv(); //#24263 + var _4E = $k[--$j]; //#24263 + $put($k[--$j], _4E, 9); //#24263 + } //#24263 + $1.i = (~~($1.rows / 2)) - 5; //#24267 + $k[$j++] = Infinity; //#24271 + var _4L = $cvrs($s(5), $get($1.dccu, $1.dcc), 10); //#24269 + for (var _4M = 0, _4N = _4L.length; _4M < _4N; _4M++) { //#24269 + $k[$j++] = $get(_4L, _4M) - 48; //#24269 + } //#24269 + var _4T = $cvrs($s(5), $get($1.dccl, $1.dcc), 10); //#24271 + $k[$j++] = 0; //#24271 + for (var _4U = 0, _4V = _4T.length; _4U < _4V; _4U++) { //#24271 + $k[$j++] = $get(_4T, _4U) - 48; //#24271 + } //#24271 + var _4X = $a(); //#24271 + for (var _4Y = 0, _4Z = _4X.length; _4Y < _4Z; _4Y++) { //#24275 + $k[$j++] = $get(_4X, _4Y); //#24273 + $k[$j++] = $1.pixs; //#24273 + $k[$j++] = 2; //#24273 + $k[$j++] = $1.i; //#24273 + $1.qmv(); //#24273 + var _4d = $k[--$j]; //#24273 + var _4e = $k[--$j]; //#24273 + $put(_4e, _4d, $k[--$j]); //#24273 + $1.i = $1.i + 1; //#24274 + } //#24274 + $k[$j++] = Infinity; //#24288 + $k[$j++] = $1.start; //#24281 + $k[$j++] = $1.mcc; //#24281 + $aload($1.ecws); //#24281 + $k[$j++] = $1.tcc; //#24285 + $k[$j++] = 283; //#24285 + $k[$j++] = $1.acc; //#24285 + $aload($1.scr); //#24285 + $aload($1.dcws); //#24286 + for (var _4p = 0, _4q = $1.pads; _4p < _4q; _4p++) { //#24287 + $k[$j++] = 284; //#24287 + } //#24287 + $k[$j++] = $1.qcc; //#24288 + $1.tileseq = $a(); //#24288 + $1.x = 5; //#24291 + $1.y = 1; //#24291 + var _4t = $1.tileseq; //#24292 + for (var _4u = 0, _4v = _4t.length; _4u < _4v; _4u++) { //#24305 + var _50 = $cvrs($s(5), $get($1.tiles, $get(_4t, _4u)), 10); //#24293 + for (var _51 = 0, _52 = _50.length; _51 < _52; _51++) { //#24296 + $k[$j++] = $get(_50, _51); //#24294 + $k[$j++] = $1.pixs; //#24294 + $k[$j++] = $1.x; //#24294 + $k[$j++] = $1.y; //#24294 + $1.qmv(); //#24294 + var _57 = $k[--$j]; //#24294 + var _58 = $k[--$j]; //#24294 + $put(_58, _57, $f($k[--$j] - 48)); //#24294 + $1.y = $1.y + 1; //#24295 + } //#24295 + if ($1.y != $f($1.rows - 1)) { //#24302 + $1.y = $1.y + 1; //#24298 + } else { //#24302 + $1.x = $1.x + 1; //#24300 + $1.y = 1; //#24300 + $k[$j++] = $1.pixs; //#24301 + $k[$j++] = $1.x; //#24301 + $k[$j++] = $1.y; //#24301 + $1.qmv(); //#24301 + var _5I = $k[--$j]; //#24301 + if ($get($k[--$j], _5I) != -1) { //#24303 + $1.x = $1.x + 1; //#24302 + } //#24302 + } //#24302 + } //#24302 + var _5R = new Map([ + [0, "00000000"], + [9, "000000FF"], + [1, "FF000000"], + [3, "00FF0000"], + [5, "0000FF00"], + [6, "7F00FF00"] + ]); //#24321 + var _5T = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", $1.columns], + ["pixy", $1.rows], + ["height", ($1.rows / 72) * 2], + ["width", ($1.columns / 72) * 2], + ["colormap", _5R], + ["opt", $1.options] + ]); //#24323 + $k[$j++] = _5T; //#24326 + if (!$1.dontdraw) { //#24326 + $0.renmatrix(); //#24326 + } //#24326 + }; + $0.jabcode = function() { + var $1 = {}; //#24356 + $1.options = $k[--$j]; //#24358 + $1.barcode = $k[--$j]; //#24359 + $1.dontdraw = false; //#24361 + $1.rows = -1; //#24362 + $1.columns = -1; //#24363 + $1.slave = false; //#24364 + $1.colors = 16; //#24365 + $1.eclevel = 6; //#24366 + $1.raw = false; //#24367 + $1.parse = false; //#24368 + $1.parsefnc = false; //#24369 + $1.mask = -1; //#24370 + $forall($1.options, function() { //#24381 + var _3 = $k[--$j]; //#24381 + $1[$k[--$j]] = _3; //#24381 + }); //#24381 + $1.rows = ~~$1.rows; //#24383 + $1.columns = ~~$1.columns; //#24384 + $1.colors = ~~$1.colors; //#24385 + $1.eclevel = ~~$1.eclevel; //#24386 + $1.mask = ~~$1.mask; //#24387 + $1.databpm = ~~(Math.round(Math.log($1.colors) / Math.log(2))); //#24389 + var _B = $1.colors; //#24390 + $k[$j++] = 'metabpm'; //#24390 + $k[$j++] = _B; //#24390 + if (_B > 8) { //#24390 + $j--; //#24390 + $k[$j++] = 8; //#24390 + } //#24390 + var _C = $k[--$j]; //#24390 + $1[$k[--$j]] = ~~(Math.round(Math.log(_C) / Math.log(2))); //#24390 + $1.fn1 = -1; //#24393 + var _H = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["FNC1", $1.fn1] + ]); //#24397 + $1.fncvals = _H; //#24398 + $k[$j++] = 'msg'; //#24399 + $k[$j++] = $1.barcode; //#24399 + $k[$j++] = $1.fncvals; //#24399 + $0.parseinput(); //#24399 + var _K = $k[--$j]; //#24399 + $1[$k[--$j]] = _K; //#24399 + $1.msglen = $1.msg.length; //#24400 + $1.addtobits = function() { + var _N = $k[--$j]; //#24421 + $puti($1.bits, $1.j, _N); //#24421 + $1.j = _N.length + $1.j; //#24422 + }; //#24423 + $1.tofixedbits = function() { + var _S = $strcpy($s(13), "0000000000000"); //#24426 + var _T = $k[--$j]; //#24426 + var _W = $cvrs($s(13), $k[--$j], 2); //#24426 + $puti(_S, $f(_T - _W.length), _W); //#24427 + $k[$j++] = $geti(_S, 0, _T); //#24428 + }; //#24429 + var _Z = ($1.msglen <= 15) ? 4 : 17; //#24432 + $1.bits = $s(((7 + _Z) + ($1.msglen * 8)) + 12); //#24432 + $1.j = 0; //#24433 + $k[$j++] = 31; //#24434 + $k[$j++] = 5; //#24434 + $1.tofixedbits(); //#24434 + $1.addtobits(); //#24434 + $k[$j++] = "00"; //#24435 + $1.addtobits(); //#24435 + if ($1.msglen <= 15) { //#24440 + $k[$j++] = $1.msglen; //#24437 + $k[$j++] = 4; //#24437 + $1.tofixedbits(); //#24437 + $1.addtobits(); //#24437 + } else { //#24440 + $k[$j++] = "0000"; //#24439 + $1.addtobits(); //#24439 + $k[$j++] = $1.msglen - 16; //#24440 + $k[$j++] = 13; //#24440 + $1.tofixedbits(); //#24440 + $1.addtobits(); //#24440 + } //#24440 + for (var _h = 0, _g = $1.msglen - 1; _h <= _g; _h += 1) { //#24444 + $k[$j++] = $get($1.msg, _h); //#24443 + $k[$j++] = 8; //#24443 + $1.tofixedbits(); //#24443 + $1.addtobits(); //#24443 + } //#24443 + $k[$j++] = 28; //#24445 + $k[$j++] = 5; //#24445 + $1.tofixedbits(); //#24445 + $1.addtobits(); //#24445 + $k[$j++] = 31; //#24446 + $k[$j++] = 5; //#24446 + $1.tofixedbits(); //#24446 + $1.addtobits(); //#24446 + $k[$j++] = "11"; //#24447 + $1.addtobits(); //#24447 + $1.diffside = 21; //#24450 + $1.sameshape = false; //#24451 + $1.sameecc = false; //#24452 + $1.hasslaves = false; //#24453 + $1.metrics = function() { + $1.mc = $k[--$j]; //#24457 + $1.mr = $k[--$j]; //#24457 + var _m = $1.mc; //#24458 + var _n = $1.mr; //#24458 + var _o = $1.mc; //#24459 + var _p = $1.mr; //#24459 + var _q = $1.colors; //#24461 + var _r = 64; //#24461 + if (64 > _q) { //#24461 + var _ = _q; //#24461 + _q = _r; //#24461 + _r = _; //#24461 + } //#24461 + var _t = $1.slave ? 7 : 17; //#24462 + $k[$j++] = _m * _n; //#24490 + $k[$j++] = ((((~~($f(_o - 25) / 16)) + 2) * ((~~($f(_p - 25) / 16)) + 2)) - 4) * 7; //#24490 + $k[$j++] = _r * 2; //#24490 + $k[$j++] = _t * 4; //#24490 + if (!$1.slave) { //#24489 + var _x = $eq($1.mr, $1.mc) ? 0 : 1; //#24466 + $1.metass = _x; //#24466 + var _y = $1.mr; //#24467 + var _z = $1.mc; //#24467 + if ($lt(_y, _z)) { //#24467 + var _ = _z; //#24467 + _z = _y; //#24467 + _y = _; //#24467 + } //#24467 + $1.metavf = $get($a([0, 1, 2, 2, 3, 3, 3, 3]), ~~($f(_y - 21) / 16)); //#24468 + $k[$j++] = 'metavlen'; //#24469 + if ($1.metass == 0) { //#24469 + $k[$j++] = $a([2, 2, 3, 4]); //#24469 + } else { //#24469 + $k[$j++] = $a([4, 6, 8, 10]); //#24469 + } //#24469 + var _17 = $get($k[--$j], $1.metavf); //#24469 + $1[$k[--$j]] = _17; //#24469 + $1.metaelen = $f(($1.metavf * 2) + 10); //#24470 + $k[$j++] = $f($f(7 + $1.metavlen) + $1.metaelen); //#24473 + if ($1.hasslaves) { //#24473 + var _1D = $k[--$j]; //#24473 + $k[$j++] = $f(_1D + 4); //#24473 + } //#24473 + var _1G = ~~(Math.ceil(($k[--$j] * 2) / $1.metabpm)); //#24476 + $1.nummetabits = $f((_1G * $1.metabpm) + 6); //#24476 + $k[$j++] = _1G + 6; //#24477 + } else { //#24489 + $k[$j++] = 3; //#24480 + if (!$1.sameshape) { //#24480 + var _1J = $k[--$j]; //#24480 + $k[$j++] = $f(_1J + 5); //#24480 + } //#24480 + if ($1.hasslaves) { //#24481 + var _1L = $k[--$j]; //#24481 + $k[$j++] = $f(_1L + 3); //#24481 + } //#24481 + if (!$1.sameecc) { //#24486 + var _1N = $1.mr; //#24483 + var _1O = $1.mc; //#24483 + if ($lt(_1N, _1O)) { //#24483 + var _ = _1O; //#24483 + _1O = _1N; //#24483 + _1N = _; //#24483 + } //#24483 + var _1R = $k[--$j]; //#24485 + $k[$j++] = $f(_1R + $get($a([10, 12, 14, 14, 16, 16, 16, 16]), ~~($f(_1N - 21) / 16))); //#24485 + } //#24485 + var _1U = ~~(Math.ceil(($k[--$j] * 2) / $1.metabpm)); //#24489 + $1.nummetabits = _1U * $1.metabpm; //#24489 + $k[$j++] = _1U; //#24489 + } //#24489 + var _1W = $k[--$j]; //#24492 + $1.nummetamodules = _1W; //#24492 + var _1X = $k[--$j]; //#24493 + var _1Y = $k[--$j]; //#24493 + var _1Z = $k[--$j]; //#24493 + $1.numdatamodules = $f($k[--$j] - ($f(_1Z + ($f(_1Y + $f(_1X + _1W)))))); //#24493 + $1.numdatabits = $1.numdatamodules * $1.databpm; //#24494 + }; //#24495 + $1.coderate = $get($a([0.67, 0.63, 0.57, 0.55, 0.5, 0.43, 0.34, 0.25, 0.2, 0.17, 0.14]), $1.eclevel); //#24498 + $1.grosslen = ~~Math.ceil($1.bits.length / $1.coderate); //#24499 + $1.snapsize = function() { + var _1j = (~~Math.ceil($k[--$j])) - 18; //#24500 + $k[$j++] = _1j; //#24500 + if (_1j < 0) { //#24500 + $j--; //#24500 + $k[$j++] = 0; //#24500 + } //#24500 + var _1k = $k[--$j]; //#24500 + $k[$j++] = ((~~(_1k / 4)) * 4) + 21; //#24500 + }; //#24500 + if (($1.rows == -1) && ($1.columns == -1)) { //#24529 + $k[$j++] = 'size'; //#24503 + $k[$j++] = Math.sqrt($1.grosslen); //#24503 + $1.snapsize(); //#24503 + var _1o = $k[--$j]; //#24503 + $1[$k[--$j]] = _1o; //#24503 + for (;;) { //#24508 + $k[$j++] = $1.size; //#24505 + $k[$j++] = $1.size; //#24505 + $1.metrics(); //#24505 + if ($1.grosslen <= $1.numdatabits) { //#24506 + break; //#24506 + } //#24506 + $1.size = $f($1.size + 4); //#24507 + } //#24507 + $1.rows = $1.size; //#24509 + $1.columns = $1.size; //#24510 + } else { //#24529 + if (($1.columns == -1) && ($1.rows != -1)) { //#24519 + $k[$j++] = 'columns'; //#24513 + $k[$j++] = $1.grosslen / $1.rows; //#24513 + $1.snapsize(); //#24513 + var _21 = $k[--$j]; //#24513 + $1[$k[--$j]] = _21; //#24513 + for (;;) { //#24518 + $k[$j++] = $1.rows; //#24515 + $k[$j++] = $1.columns; //#24515 + $1.metrics(); //#24515 + if ($1.grosslen <= $1.numdatabits) { //#24516 + break; //#24516 + } //#24516 + $1.columns = $f($1.columns + 4); //#24517 + } //#24517 + } //#24517 + if (($1.rows == -1) && ($1.columns != -1)) { //#24527 + $k[$j++] = 'rows'; //#24521 + $k[$j++] = $1.grosslen / $1.columns; //#24521 + $1.snapsize(); //#24521 + var _2C = $k[--$j]; //#24521 + $1[$k[--$j]] = _2C; //#24521 + for (;;) { //#24526 + $k[$j++] = $1.rows; //#24523 + $k[$j++] = $1.columns; //#24523 + $1.metrics(); //#24523 + if ($1.grosslen <= $1.numdatabits) { //#24524 + break; //#24524 + } //#24524 + $1.rows = $f($1.rows + 4); //#24525 + } //#24525 + } //#24525 + if (($1.rows != -1) && ($1.columns != -1)) { //#24530 + $k[$j++] = $1.rows; //#24529 + $k[$j++] = $1.columns; //#24529 + $1.metrics(); //#24529 + } //#24529 + } //#24529 + $1.C = $1.numdatabits; //#24532 + $1.cols = $1.columns; //#24533 + if (($1.rows > 145) || ($1.cols > 145)) { //#24538 + $k[$j++] = 'bwipp.jabcodeNoValidSymbol'; //#24537 + $k[$j++] = "No valid symbol available"; //#24537 + $0.raiseerror(); //#24537 + } //#24537 + $1.min = $1.C; //#24541 + for (var _2S = 3; _2S <= 8; _2S += 1) { //#24553 + $1.i = _2S; //#24543 + for (var _2U = $1.i + 1; _2U <= 9; _2U += 1) { //#24552 + $1.j = _2U; //#24545 + $1.dist = (((~~($1.C / $1.j)) * $1.j) - ((~~($1.C / $1.j)) * $1.i)) - $1.bits.length; //#24546 + if (($1.dist < $1.min) && ($1.dist >= 0)) { //#24551 + $1.datawc = $1.i; //#24548 + $1.datawr = $1.j; //#24549 + $1.min = $1.dist; //#24550 + } //#24550 + } //#24550 + } //#24550 + $1.tmpbits = $s(((~~($1.C / $1.datawr)) * $1.datawr) - ((~~($1.C / $1.datawr)) * $1.datawc)); //#24556 + $puti($1.tmpbits, 0, $1.bits); //#24557 + for (var _2u = $1.bits.length, _2t = $1.tmpbits.length - 1; _2u <= _2t; _2u += 1) { //#24561 + var _2w = $get($1.tmpbits, _2u - 1); //#24559 + $k[$j++] = _2u; //#24559 + $k[$j++] = _2w; //#24559 + if ((_2w % 2) == 0) { //#24559 + var _2x = $k[--$j]; //#24559 + $k[$j++] = $f(_2x + 1); //#24559 + } else { //#24559 + var _2y = $k[--$j]; //#24559 + $k[$j++] = $f(_2y - 1); //#24559 + } //#24559 + var _30 = $k[--$j]; //#24560 + $put($1.tmpbits, $k[--$j], _30); //#24560 + } //#24560 + $1.bits = $1.tmpbits; //#24562 + $1.m0 = 22609 + 1; //#24566 + $1.m1 = 62509 - 65536; //#24566 + $1.m2 = 19605; //#24566 + $1.m3 = 32557; //#24566 + $1.lcg64_temper = function() { + $1.p00 = $1.m0 * $1.s0; //#24572 + $1.p01 = $1.m0 * $1.s1; //#24572 + $1.p02 = $1.m0 * $1.s2; //#24572 + $1.p03 = $1.m0 * $1.s3; //#24572 + $1.p10 = $1.m1 * $1.s0; //#24573 + $1.p11 = $1.m1 * $1.s1; //#24573 + $1.p12 = $1.m1 * $1.s2; //#24573 + $1.p13 = $1.m1 * $1.s3; //#24573 + $1.p20 = $1.m2 * $1.s0; //#24574 + $1.p21 = $1.m2 * $1.s1; //#24574 + $1.p22 = $1.m2 * $1.s2; //#24574 + $1.p23 = $1.m2 * $1.s3; //#24574 + $1.p30 = $1.m3 * $1.s0; //#24575 + $1.p31 = $1.m3 * $1.s1; //#24575 + $1.p32 = $1.m3 * $1.s2; //#24575 + $1.p33 = $1.m3 * $1.s3; //#24575 + $1.s3 = ($1.p33 % 65536) + 1; //#24577 + $1.s2 = (($1.p32 % 65536) + (~~($1.p33 / 65536))) + ($1.p23 % 65536); //#24579 + $1.s1 = ((($1.p31 % 65536) + (~~($1.p32 / 65536))) + (($1.p22 % 65536) + (~~($1.p23 / 65536)))) + ($1.p13 % 65536); //#24582 + $1.s0 = (((($1.p30 % 65536) + (~~($1.p31 / 65536))) + (($1.p21 % 65536) + (~~($1.p22 / 65536)))) + (($1.p12 % 65536) + (~~($1.p13 / 65536)))) + ($1.p03 % 65536); //#24586 + $1.s3 = $1.s3 + 65536; //#24589 + $1.s2 = $1.s2 + 65535; //#24590 + $1.s1 = $1.s1 + 65535; //#24591 + $1.s0 = $1.s0 + 65535; //#24592 + $1.s2 = (~~($1.s3 / 65536)) + $1.s2; //#24595 + $1.s3 = $1.s3 % 65536; //#24595 + $1.s1 = (~~($1.s2 / 65536)) + $1.s1; //#24596 + $1.s2 = $1.s2 % 65536; //#24596 + $1.s0 = (~~($1.s1 / 65536)) + $1.s0; //#24597 + $1.s1 = $1.s1 % 65536; //#24597 + $1.s0 = $1.s0 % 65536; //#24598 + var _45 = (((($1.s0 - 32768) * 65536) + $1.s1) ^ 2147483648) & 4294967295; //#24603 + var _46 = _45 ^ (_45 >>> 11); //#24604 + var _47 = _46 ^ ((_46 << 7) & -1658038656); //#24605 + var _48 = (_47 ^ ((_47 << 15) & -272236544)) & 4294967295; //#24607 + $k[$j++] = _48 ^ (_48 >>> 18); //#24607 + }; //#24609 + $1.createMatrixA = function() { + $k[$j++] = 'nb_pcb'; //#24613 + if ($1.wr < 4) { //#24613 + $k[$j++] = ~~($1.Pg_sub_block / 2); //#24613 + } else { //#24613 + $k[$j++] = (~~($1.Pg_sub_block / $1.wr)) * $1.wc; //#24613 + } //#24613 + var _4E = $k[--$j]; //#24613 + $1[$k[--$j]] = _4E; //#24613 + $1.offset = ~~Math.ceil($1.Pg_sub_block / 32); //#24614 + $1.effwidth = $1.offset * 32; //#24615 + $1.matrixA = $a($1.offset * $1.nb_pcb); //#24616 + for (var _4O = 0, _4N = ($1.offset * $1.nb_pcb) - 1; _4O <= _4N; _4O += 1) { //#24617 + $put($1.matrixA, _4O, 0); //#24617 + } //#24617 + $1.permutation = $a($1.Pg_sub_block); //#24618 + for (var _4U = 0, _4T = $1.Pg_sub_block - 1; _4U <= _4T; _4U += 1) { //#24619 + $put($1.permutation, _4U, _4U); //#24619 + } //#24619 + for (var _4Z = 0, _4Y = (~~($1.Pg_sub_block / $1.wr)) - 1; _4Z <= _4Y; _4Z += 1) { //#24628 + $1.i = _4Z; //#24622 + for (var _4c = 0, _4b = $f($1.wr - 1); _4c <= _4b; _4c += 1) { //#24627 + $1.j = _4c; //#24624 + var _4d = $1.matrixA; //#24625 + var _4e = $1.i; //#24625 + var _4f = $1.effwidth; //#24625 + var _4g = $1.wr; //#24625 + var _4h = $1.j; //#24625 + var _4n = $f(31 - (($f(($1.i * $f($1.effwidth + $1.wr)) + $1.j)) % 32)); //#24626 + $put(_4d, ~~(($f((_4e * $f(_4f + _4g)) + _4h)) / 32), $get(_4d, ~~(($f((_4e * $f(_4f + _4g)) + _4h)) / 32)) | ((_4n < 0 ? 1 >>> -_4n : 1 << _4n))); //#24626 + } //#24626 + } //#24626 + $1.s0 = 0; //#24631 + $1.s1 = 0; //#24631 + $1.s2 = 11; //#24631 + $1.s3 = 64569; //#24631 + for (var _4q = 1, _4p = $f($1.wc - 1); _4q <= _4p; _4q += 1) { //#24654 + $1.i = _4q; //#24633 + $1.off_index = (~~($1.Pg_sub_block / $1.wr)) * $1.i; //#24634 + for (var _4w = 0, _4v = $1.Pg_sub_block - 1; _4w <= _4v; _4w += 1) { //#24653 + $1.j = _4w; //#24636 + $1.lcg64_temper(); //#24637 + var _4x = $k[--$j]; //#24638 + $k[$j++] = _4x; //#24638 + if (_4x < 0) { //#24638 + var _4y = $k[--$j]; //#24638 + $k[$j++] = $f((_4y ^ 2147483648) + 2147483648); //#24638 + } //#24638 + $1.pos = ~~(($k[--$j] / 4294967296) * ($1.Pg_sub_block - $1.j)); //#24640 + for (var _55 = 0, _54 = (~~($1.Pg_sub_block / $1.wr)) - 1; _55 <= _54; _55 += 1) { //#24649 + $1.k = _55; //#24642 + var _56 = $1.matrixA; //#24643 + var _57 = $1.off_index; //#24643 + var _58 = $1.k; //#24643 + var _59 = $1.offset; //#24643 + var _5A = $1.j; //#24643 + var _5I = $get($1.matrixA, (~~($get($1.permutation, $1.pos) / 32)) + ($1.k * $1.offset)); //#24645 + var _5M = -($f(31 - ($get($1.permutation, $1.pos) % 32))); //#24646 + var _5O = 31 - ($1.j % 32); //#24647 + $put(_56, ((_57 + _58) * _59) + (~~(_5A / 32)), $get(_56, ((_57 + _58) * _59) + (~~(_5A / 32))) | ((_5O < 0 ? (((_5M < 0 ? _5I >>> -_5M : _5I << _5M)) & 1) >>> -_5O : (((_5M < 0 ? _5I >>> -_5M : _5I << _5M)) & 1) << _5O))); //#24648 + } //#24648 + var _5R = $1.permutation; //#24650 + var _5S = $1.Pg_sub_block; //#24650 + var _5T = $1.j; //#24650 + $put(_5R, (_5S - 1) - _5T, $get($1.permutation, $1.pos)); //#24652 + $put($1.permutation, $1.pos, $get(_5R, (_5S - 1) - _5T)); //#24652 + } //#24652 + } //#24652 + }; //#24656 + $1.createMetadataMatrixA = function() { + $1.nb_pcb = ~~($1.Pg_sub_block / 2); //#24660 + $1.offset = ~~Math.ceil($1.Pg_sub_block / 32); //#24661 + $1.matrixA = $a($1.offset * $1.nb_pcb); //#24662 + for (var _5g = 0, _5f = ($1.offset * $1.nb_pcb) - 1; _5g <= _5f; _5g += 1) { //#24663 + $put($1.matrixA, _5g, 0); //#24663 + } //#24663 + $1.permutation = $a($1.Pg_sub_block); //#24664 + for (var _5m = 0, _5l = $1.Pg_sub_block - 1; _5m <= _5l; _5m += 1) { //#24665 + $put($1.permutation, _5m, _5m); //#24665 + } //#24665 + $1.s0 = 0; //#24668 + $1.s1 = 0; //#24668 + $1.s2 = 0; //#24668 + $1.s3 = 38545; //#24668 + $1.nb_once = ~~((~~($f((($1.nb_pcb / $1.wc) * $1.Pg_sub_block) + 3))) / $1.nb_pcb); //#24669 + for (var _5u = 0, _5t = $1.nb_pcb - 1; _5u <= _5t; _5u += 1) { //#24684 + $1.i = _5u; //#24671 + for (var _5x = 0, _5w = $1.nb_once - 1; _5x <= _5w; _5x += 1) { //#24683 + $1.j = _5x; //#24673 + $1.lcg64_temper(); //#24674 + var _5y = $k[--$j]; //#24675 + $k[$j++] = _5y; //#24675 + if (_5y < 0) { //#24675 + var _5z = $k[--$j]; //#24675 + $k[$j++] = $f((_5z ^ 2147483648) + 2147483648); //#24675 + } //#24675 + $1.pos = ~~(($k[--$j] / 4294967296) * ($1.Pg_sub_block - $1.j)); //#24677 + var _63 = $1.matrixA; //#24678 + var _64 = $1.i; //#24678 + var _65 = $1.offset; //#24678 + var _68 = $get($1.permutation, $1.pos); //#24678 + var _6D = $f(31 - ($get($1.permutation, $1.pos) % 32)); //#24679 + $put(_63, (_64 * _65) + (~~(_68 / 32)), $get(_63, (_64 * _65) + (~~(_68 / 32))) | ((_6D < 0 ? 1 >>> -_6D : 1 << _6D))); //#24679 + var _6G = $1.permutation; //#24680 + var _6H = $1.Pg_sub_block; //#24680 + var _6I = $1.j; //#24680 + $put(_6G, (_6H - 1) - _6I, $get($1.permutation, $1.pos)); //#24682 + $put($1.permutation, $1.pos, $get(_6G, (_6H - 1) - _6I)); //#24682 + } //#24682 + } //#24682 + }; //#24686 + $1.GaussJordan = function() { + $k[$j++] = 'nb_pcb'; //#24690 + if ($1.wr < 4) { //#24690 + $k[$j++] = ~~($1.Pg_sub_block / 2); //#24690 + } else { //#24690 + $k[$j++] = (~~($1.Pg_sub_block / $1.wr)) * $1.wc; //#24690 + } //#24690 + var _6S = $k[--$j]; //#24690 + $1[$k[--$j]] = _6S; //#24690 + $1.offset = ~~Math.ceil($1.Pg_sub_block / 32); //#24691 + var _6V = $1.matrixA; //#24692 + $1.matrixH = $arrcpy($a(_6V.length), _6V); //#24692 + $k[$j++] = Infinity; //#24693 + for (var _6Z = 0, _6a = $1.Pg_sub_block; _6Z < _6a; _6Z++) { //#24693 + $k[$j++] = 0; //#24693 + } //#24693 + $1.column_arrangement = $a(); //#24693 + $k[$j++] = Infinity; //#24694 + for (var _6d = 0, _6e = $1.Pg_sub_block; _6d < _6e; _6d++) { //#24694 + $k[$j++] = false; //#24694 + } //#24694 + $1.processed_column = $a(); //#24694 + $k[$j++] = Infinity; //#24695 + for (var _6h = 0, _6i = $1.nb_pcb; _6h < _6i; _6h++) { //#24695 + $k[$j++] = 0; //#24695 + } //#24695 + $1.zero_lines_nb = $a(); //#24695 + $k[$j++] = Infinity; //#24696 + for (var _6l = 0, _6m = $1.Pg_sub_block * 2; _6l < _6m; _6l++) { //#24696 + $k[$j++] = 0; //#24696 + } //#24696 + $1.swap_col = $a(); //#24696 + $1.zero_lines = 0; //#24697 + $1.loop0 = 0; //#24699 + for (var _6q = 0, _6p = $1.nb_pcb - 1; _6q <= _6p; _6q += 1) { //#24737 + $1.i = _6q; //#24701 + $1.pivot_column = $1.Pg_sub_block + 1; //#24702 + for (var _6u = 0, _6t = $1.Pg_sub_block - 1; _6u <= _6t; _6u += 1) { //#24710 + $1.j = _6u; //#24704 + var _6z = $get($1.matrixH, ~~(((($1.offset * 32) * $1.i) + $1.j) / 32)); //#24705 + var _73 = -(31 - (((($1.offset * 32) * $1.i) + $1.j) % 32)); //#24706 + if ((((_73 < 0 ? _6z >>> -_73 : _6z << _73)) & 1) == 1) { //#24709 + $1.pivot_column = $1.j; //#24707 + break; //#24708 + } //#24708 + } //#24708 + if ($1.pivot_column < $1.Pg_sub_block) { //#24735 + $put($1.processed_column, $1.pivot_column, true); //#24712 + $put($1.column_arrangement, $1.pivot_column, $1.i); //#24713 + if ($1.pivot_column >= $1.nb_pcb) { //#24717 + $put($1.swap_col, $1.loop0 * 2, $1.pivot_column); //#24715 + $1.loop0 = $1.loop0 + 1; //#24716 + } //#24716 + $1.off_index = ~~($1.pivot_column / 32); //#24718 + $1.off_index1 = $1.pivot_column % 32; //#24719 + for (var _7M = 0, _7L = $1.nb_pcb - 1; _7M <= _7L; _7M += 1) { //#24732 + $1.j = _7M; //#24721 + if ($1.i != $1.j) { //#24731 + var _7T = $get($1.matrixH, $1.off_index + ($1.j * $1.offset)); //#24723 + var _7V = -(31 - $1.off_index1); //#24724 + if ((((_7V < 0 ? _7T >>> -_7V : _7T << _7V)) & 1) == 1) { //#24730 + for (var _7Y = 0, _7X = $1.offset - 1; _7Y <= _7X; _7Y += 1) { //#24729 + $1.k = _7Y; //#24726 + var _7Z = $1.matrixH; //#24727 + var _7a = $1.offset; //#24727 + var _7b = $1.j; //#24727 + var _7c = $1.k; //#24727 + $put(_7Z, (_7a * _7b) + _7c, $xo($get(_7Z, (_7a * _7b) + _7c), $get($1.matrixH, ($1.offset * $1.i) + $1.k))); //#24728 + } //#24728 + } //#24728 + } //#24728 + } //#24728 + } else { //#24735 + $put($1.zero_lines_nb, $1.zero_lines, $1.i); //#24734 + $1.zero_lines = $1.zero_lines + 1; //#24735 + } //#24735 + } //#24735 + $1.matrix_rank = $1.nb_pcb - $1.zero_lines; //#24739 + $1.loop2 = 0; //#24740 + for (var _7s = $1.matrix_rank, _7r = $1.nb_pcb - 1; _7s <= _7r; _7s += 1) { //#24760 + $1.i = _7s; //#24742 + if ($get($1.column_arrangement, $1.i) > 0) { //#24759 + for (var _7y = 0, _7x = $1.nb_pcb - 1; _7y <= _7x; _7y += 1) { //#24758 + $1.j = _7y; //#24745 + if ($nt($get($1.processed_column, $1.j))) { //#24757 + $put($1.column_arrangement, $1.j, $get($1.column_arrangement, $1.i)); //#24747 + $put($1.column_arrangement, $1.i, 0); //#24748 + $put($1.processed_column, $1.j, true); //#24749 + $put($1.processed_column, $1.i, false); //#24750 + $put($1.swap_col, $1.loop0 * 2, $1.i); //#24751 + $put($1.swap_col, ($1.loop0 * 2) + 1, $1.j); //#24752 + $put($1.column_arrangement, $1.i, $1.j); //#24753 + $1.loop0 = $1.loop0 + 1; //#24754 + $1.loop2 = $1.loop2 + 1; //#24755 + break; //#24756 + } //#24756 + } //#24756 + } //#24756 + } //#24756 + $1.loop1 = 0; //#24762 + for (var _8Q = 0, _8P = $1.nb_pcb - 1; _8Q <= _8P; _8Q += 1) { //#24771 + $1.kl = _8Q; //#24764 + if ($nt($get($1.processed_column, $1.kl)) && ($1.loop1 < ($1.loop0 - $1.loop2))) { //#24770 + $put($1.column_arrangement, $1.kl, $get($1.column_arrangement, $get($1.swap_col, $1.loop1 * 2))); //#24766 + $put($1.processed_column, $1.kl, true); //#24767 + $put($1.swap_col, ($1.loop1 * 2) + 1, $1.kl); //#24768 + $1.loop1 = $1.loop1 + 1; //#24769 + } //#24769 + } //#24769 + $1.loop1 = 0; //#24773 + for (var _8m = 0, _8l = $1.nb_pcb - 1; _8m <= _8l; _8m += 1) { //#24780 + $1.kl = _8m; //#24775 + if ($nt($get($1.processed_column, $1.kl))) { //#24779 + $put($1.column_arrangement, $1.kl, $get($1.zero_lines_nb, $1.loop1)); //#24777 + $1.loop1 = $1.loop1 + 1; //#24778 + } //#24778 + } //#24778 + for (var _8y = 0, _8x = $1.nb_pcb - 1; _8y <= _8x; _8y += 1) { //#24789 + $1.i = _8y; //#24783 + for (var _91 = 0, _90 = $1.offset - 1; _91 <= _90; _91 += 1) { //#24788 + $1.j = _91; //#24785 + $put($1.matrixA, ($1.i * $1.offset) + $1.j, $get($1.matrixH, $f(($get($1.column_arrangement, $1.i) * $1.offset) + $1.j))); //#24787 + } //#24787 + } //#24787 + $1.tmp = 0; //#24791 + for (var _9F = 0, _9E = $1.loop0 - 1; _9F <= _9E; _9F += 1) { //#24813 + $1.i = _9F; //#24793 + for (var _9I = 0, _9H = $1.nb_pcb - 1; _9I <= _9H; _9I += 1) { //#24812 + $1.j = _9I; //#24795 + var _9P = $get($1.matrixA, (~~($get($1.swap_col, $1.i * 2) / 32)) + ($1.j * $1.offset)); //#24796 + var _9T = -($f(31 - ($get($1.swap_col, $1.i * 2) % 32))); //#24797 + $1.tmp = (((-(((_9T < 0 ? _9P >>> -_9T : _9P << _9T)) & 1)) ^ $1.tmp) & 1) ^ $1.tmp; //#24798 + var _9W = $1.matrixA; //#24799 + var _9Z = $get($1.swap_col, $1.i * 2); //#24799 + var _9a = $1.j; //#24799 + var _9b = $1.offset; //#24799 + var _9j = $get($1.matrixA, (~~($get($1.swap_col, ($1.i * 2) + 1) / 32)) + ($1.j * $1.offset)); //#24801 + var _9n = -($f(31 - ($get($1.swap_col, ($1.i * 2) + 1) % 32))); //#24802 + var _9y = $f(31 - ($get($1.swap_col, $1.i * 2) % 32)); //#24804 + $put(_9W, (~~(_9Z / 32)) + (_9a * _9b), $get(_9W, (~~(_9Z / 32)) + (_9a * _9b)) ^ (((-(((_9n < 0 ? _9j >>> -_9n : _9j << _9n)) & 1)) ^ $get($1.matrixA, (~~($get($1.swap_col, $1.i * 2) / 32)) + ($1.j * $1.offset))) & ((_9y < 0 ? 1 >>> -_9y : 1 << _9y)))); //#24805 + var _9z = $1.matrixA; //#24806 + var _A2 = $get($1.swap_col, ($1.i * 2) + 1); //#24806 + var _A3 = $1.j; //#24806 + var _A4 = $1.offset; //#24806 + var _AH = $f(31 - ($get($1.swap_col, ($1.i * 2) + 1) % 32)); //#24810 + $put(_9z, (~~(_A2 / 32)) + (_A3 * _A4), $get(_9z, (~~(_A2 / 32)) + (_A3 * _A4)) ^ (((-($1.tmp & 1)) ^ $get($1.matrixA, (~~($get($1.swap_col, ($1.i * 2) + 1) / 32)) + ($1.j * $1.offset))) & ((_AH < 0 ? 1 >>> -_AH : 1 << _AH)))); //#24811 + } //#24811 + } //#24811 + }; //#24815 + $1.createGeneratorMatrix = function() { + $1.pn = $1.Pg_sub_block - $1.matrix_rank; //#24819 + $1.offset = ~~Math.ceil($1.pn / 32); //#24820 + $1.effwidth = $1.offset * 32; //#24821 + $1.offset_cap = ~~Math.ceil($1.Pg_sub_block / 32); //#24822 + $1.G = $a($1.offset * $1.Pg_sub_block); //#24823 + for (var _AT = 0, _AS = ($1.offset * $1.Pg_sub_block) - 1; _AT <= _AS; _AT += 1) { //#24826 + $put($1.G, _AT, 0); //#24825 + } //#24825 + for (var _AX = 0, _AW = $1.pn - 1; _AX <= _AW; _AX += 1) { //#24831 + $1.i = _AX; //#24828 + var _AY = $1.G; //#24829 + var _AZ = $1.Pg_sub_block; //#24829 + var _Aa = $1.pn; //#24829 + var _Ab = $1.i; //#24829 + var _Ac = $1.offset; //#24829 + var _Ad = $1.i; //#24829 + var _Ag = 31 - ($1.i % 32); //#24830 + $put(_AY, (((_AZ - _Aa) + _Ab) * _Ac) + (~~(_Ad / 32)), $get(_AY, (((_AZ - _Aa) + _Ab) * _Ac) + (~~(_Ad / 32))) | ((_Ag < 0 ? 1 >>> -_Ag : 1 << _Ag))); //#24830 + } //#24830 + $1.matrix_index = $1.Pg_sub_block - $1.pn; //#24832 + $1.loop0 = 0; //#24833 + for (var _An = 0, _Am = (($1.Pg_sub_block - $1.pn) * $1.effwidth) - 1; _An <= _Am; _An += 1) { //#24850 + $1.i = _An; //#24835 + if ($1.matrix_index >= $1.Pg_sub_block) { //#24839 + $1.loop0 = $1.loop0 + 1; //#24837 + $1.matrix_index = $1.Pg_sub_block - $1.pn; //#24838 + } //#24838 + if (($1.i % $1.effwidth) < $1.pn) { //#24849 + var _Aw = $1.G; //#24841 + var _Ax = $1.i; //#24841 + var _B3 = $get($1.matrixA, (~~($1.matrix_index / 32)) + ($1.offset_cap * $1.loop0)); //#24843 + var _B5 = -(31 - ($1.matrix_index % 32)); //#24844 + var _BA = 31 - ($1.i % 32); //#24846 + $put(_Aw, ~~(_Ax / 32), $get(_Aw, ~~(_Ax / 32)) ^ (((-(((_B5 < 0 ? _B3 >>> -_B5 : _B3 << _B5)) & 1)) ^ $get($1.G, ~~($1.i / 32))) & ((_BA < 0 ? 1 >>> -_BA : 1 << _BA)))); //#24847 + $1.matrix_index = $1.matrix_index + 1; //#24848 + } //#24848 + } //#24848 + }; //#24852 + $1.ldpc = function() { + $1.wr = $k[--$j]; //#24856 + $1.wc = $k[--$j]; //#24857 + $k[$j++] = Infinity; //#24858 + var _BE = $k[--$j]; //#24858 + var _BF = $k[--$j]; //#24858 + $k[$j++] = _BE; //#24858 + $forall(_BF, function() { //#24858 + var _BG = $k[--$j]; //#24858 + $k[$j++] = $f(_BG - 48); //#24858 + }); //#24858 + $1.data = $a(); //#24858 + $1.Pn = $1.data.length; //#24860 + if ($1.wr != -1) { //#24875 + $1.Pg = ~~((Math.ceil((Math.ceil(($1.Pn * $1.wr) / $f($1.wr - $1.wc))) / $1.wr)) * $1.wr); //#24862 + $1.nb_sub_blocks = (~~($1.Pg / 2700)) + 1; //#24863 + $1.Pg_sub_block = (~~((~~($1.Pg / $1.nb_sub_blocks)) / $1.wr)) * $1.wr; //#24864 + $1.Pn_sub_block = ~~(($1.Pg_sub_block * $f($1.wr - $1.wc)) / $1.wr); //#24865 + $1.nb_sub_blocks = ~~($1.Pg / $1.Pg_sub_block); //#24866 + $k[$j++] = 'encoding_iterations'; //#24867 + $k[$j++] = ~~($1.Pg / $1.Pg_sub_block); //#24867 + if (($1.Pn_sub_block * $1.nb_sub_blocks) < $1.Pn) { //#24867 + var _Bg = $k[--$j]; //#24867 + $k[$j++] = $f(_Bg - 1); //#24867 + } //#24867 + var _Bh = $k[--$j]; //#24867 + $1[$k[--$j]] = _Bh; //#24867 + $1.createMatrixA(); //#24868 + } else { //#24875 + $1.Pg = $1.Pn * 2; //#24870 + $1.nb_sub_blocks = 1; //#24871 + $1.Pg_sub_block = $1.Pg; //#24872 + $1.Pn_sub_block = $1.Pn; //#24873 + $1.encoding_iterations = 1; //#24874 + $1.createMetadataMatrixA(); //#24875 + } //#24875 + $1.GaussJordan(); //#24877 + $1.createGeneratorMatrix(); //#24878 + $1.ecc_encoded_data = $a($1.Pg); //#24880 + $1.offset = ~~(Math.ceil(($1.Pg_sub_block - $1.matrix_rank) / 32)); //#24882 + for (var _Bs = 0, _Br = $1.encoding_iterations - 1; _Bs <= _Br; _Bs += 1) { //#24898 + $1.iter = _Bs; //#24884 + for (var _Bv = 0, _Bu = $1.Pg_sub_block - 1; _Bv <= _Bu; _Bv += 1) { //#24897 + $1.i = _Bv; //#24886 + $1.temp = 0; //#24887 + $1.loop0 = 0; //#24888 + $1.offset_index = $1.offset * $1.i; //#24889 + for (var _C3 = $1.iter * $1.Pn_sub_block, _C2 = (($1.iter + 1) * $1.Pn_sub_block) - 1; _C3 <= _C2; _C3 += 1) { //#24895 + var _C9 = $get($1.G, $1.offset_index + (~~($1.loop0 / 32))); //#24892 + var _CB = -(31 - ($1.loop0 % 32)); //#24892 + $1.temp = ($get($1.data, _C3) & (((_CB < 0 ? _C9 >>> -_CB : _C9 << _CB)) & 1)) ^ $1.temp; //#24893 + $1.loop0 = $1.loop0 + 1; //#24894 + } //#24894 + $put($1.ecc_encoded_data, $1.i + ($1.iter * $1.Pg_sub_block), $1.temp); //#24896 + } //#24896 + } //#24896 + if ($1.encoding_iterations != $1.nb_sub_blocks) { //#24922 + $1.start = $1.encoding_iterations * $1.Pn_sub_block; //#24901 + $1.last_index = $1.encoding_iterations * $1.Pg_sub_block; //#24902 + $1.Pg_sub_block = $1.Pg - ($1.encoding_iterations * $1.Pg_sub_block); //#24903 + $1.Pn_sub_block = ~~(($1.Pg_sub_block * $f($1.wr - $1.wc)) / $1.wr); //#24904 + $1.createMatrixA(); //#24905 + $1.GaussJordan(); //#24906 + $1.createGeneratorMatrix(); //#24907 + $1.offset = ~~(Math.ceil(($1.Pg_sub_block - $1.matrix_rank) / 32)); //#24908 + for (var _Ca = 0, _CZ = $1.Pg_sub_block - 1; _Ca <= _CZ; _Ca += 1) { //#24921 + $1.i = _Ca; //#24910 + $1.temp = 0; //#24911 + $1.loop0 = 0; //#24912 + $1.offset_index = $1.offset * $1.i; //#24913 + for (var _Cg = $1.start, _Cf = $1.Pn - 1; _Cg <= _Cf; _Cg += 1) { //#24919 + var _Cm = $get($1.G, $1.offset_index + (~~($1.loop0 / 32))); //#24916 + var _Co = -(31 - ($1.loop0 % 32)); //#24916 + $1.temp = ($get($1.data, _Cg) & (((_Co < 0 ? _Cm >>> -_Co : _Cm << _Co)) & 1)) ^ $1.temp; //#24917 + $1.loop0 = $1.loop0 + 1; //#24918 + } //#24918 + $put($1.ecc_encoded_data, $1.i + $1.last_index, $1.temp); //#24920 + } //#24920 + } //#24920 + $1.out = $s($1.Pg); //#24924 + for (var _Cz = 0, _Cy = $1.Pg - 1; _Cz <= _Cy; _Cz += 1) { //#24928 + $put($1.out, _Cz, $f($get($1.ecc_encoded_data, _Cz) + 48)); //#24927 + } //#24927 + $k[$j++] = $1.out; //#24929 + }; //#24931 + $k[$j++] = 'bits'; //#24934 + $k[$j++] = $1.bits; //#24934 + $k[$j++] = $1.datawc; //#24934 + $k[$j++] = $1.datawr; //#24934 + $1.ldpc(); //#24934 + var _D7 = $k[--$j]; //#24934 + $1[$k[--$j]] = _D7; //#24934 + $1.s0 = 0; //#24937 + $1.s1 = 0; //#24937 + $1.s2 = 3; //#24937 + $1.s3 = 30151; //#24937 + for (var _DA = $1.bits.length - 1; _DA >= 1; _DA -= 1) { //#24947 + $1.l = _DA; //#24939 + $1.lcg64_temper(); //#24940 + var _DB = $k[--$j]; //#24941 + $k[$j++] = _DB; //#24941 + if (_DB < 0) { //#24941 + var _DC = $k[--$j]; //#24941 + $k[$j++] = $f((_DC ^ 2147483648) + 2147483648); //#24941 + } //#24941 + $1.r = ~~(($k[--$j] / 4294967296) * ($1.l + 1)); //#24943 + $put($1.bits, $1.l, $get($1.bits, $1.r)); //#24945 + $put($1.bits, $1.r, $get($1.bits, $1.l)); //#24946 + } //#24946 + $1.tmpbits = $s($1.C); //#24950 + $puti($1.tmpbits, 0, $1.bits); //#24951 + $1.j = $1.bits.length; //#24952 + for (var _DW = 0, _DX = ~~(($f($f($1.C - $1.j) + 1)) / 2); _DW < _DX; _DW++) { //#24957 + $put($1.tmpbits, $1.j, 48); //#24954 + if (($1.j + 1) < $1.C) { //#24955 + $put($1.tmpbits, $1.j + 1, 49); //#24955 + } //#24955 + $1.j = $1.j + 2; //#24956 + } //#24956 + $1.bits = $1.tmpbits; //#24958 + if ($1.colors == 4) { //#25023 + $1.bi = 0; //#24962 + $1.gi = 1; //#24962 + $1.mi = 2; //#24962 + $1.yi = 3; //#24962 + $1.ki = 4; //#24963 + $1.wi = 5; //#24963 + $k[$j++] = Infinity; //#24966 + $k[$j++] = $1.bi; //#24966 + $k[$j++] = "0000FF"; //#24966 + $k[$j++] = $1.gi; //#24966 + $k[$j++] = "00FF00"; //#24966 + $k[$j++] = $1.mi; //#24966 + $k[$j++] = "FF00FF"; //#24966 + $k[$j++] = $1.yi; //#24966 + $k[$j++] = "FFFF00"; //#24966 + $k[$j++] = $1.ki; //#24966 + $k[$j++] = "000000"; //#24966 + $k[$j++] = $1.wi; //#24966 + $k[$j++] = "FFFFFF"; //#24966 + $1.palette = $d(); //#24967 + $1.metacolorindex = $a([$1.bi, $1.gi, $1.mi, $1.yi]); //#24968 + $1.palettelayout = $a([$1.bi, $1.gi, $1.mi, $1.yi]); //#24969 + } else { //#25023 + var _E4 = new Map([ + [8, $a([2, 2, 2])], + [16, $a([4, 2, 2])], + [32, $a([4, 4, 2])], + [64, $a([4, 4, 4])], + [128, $a([8, 4, 4])], + [256, $a([8, 8, 4])] + ]); //#24978 + $1.rgbres = $get(_E4, $1.colors); //#24979 + $k[$j++] = 'rvals'; //#24981 + $k[$j++] = $get($1.rgbres, 0); //#24981 + $k[$j++] = Infinity; //#24981 + var _E9 = $k[--$j]; //#24981 + var _EB = $f($k[--$j] - 1); //#24981 + $k[$j++] = _E9; //#24981 + $k[$j++] = _EB; //#24981 + for (var _ED = 0, _EC = _EB; _ED <= _EC; _ED += 1) { //#24981 + var _EE = $k[--$j]; //#24981 + $k[$j++] = ~~(Math.round(_ED * (255 / _EE))); //#24981 + $k[$j++] = _EE; //#24981 + } //#24981 + $j--; //#24981 + var _EF = $a(); //#24981 + $1[$k[--$j]] = _EF; //#24981 + $k[$j++] = 'gvals'; //#24982 + $k[$j++] = $get($1.rgbres, 1); //#24982 + $k[$j++] = Infinity; //#24982 + var _EJ = $k[--$j]; //#24982 + var _EL = $f($k[--$j] - 1); //#24982 + $k[$j++] = _EJ; //#24982 + $k[$j++] = _EL; //#24982 + for (var _EN = 0, _EM = _EL; _EN <= _EM; _EN += 1) { //#24982 + var _EO = $k[--$j]; //#24982 + $k[$j++] = ~~(Math.round(_EN * (255 / _EO))); //#24982 + $k[$j++] = _EO; //#24982 + } //#24982 + $j--; //#24982 + var _EP = $a(); //#24982 + $1[$k[--$j]] = _EP; //#24982 + $k[$j++] = 'bvals'; //#24983 + $k[$j++] = $get($1.rgbres, 2); //#24983 + $k[$j++] = Infinity; //#24983 + var _ET = $k[--$j]; //#24983 + var _EV = $f($k[--$j] - 1); //#24983 + $k[$j++] = _ET; //#24983 + $k[$j++] = _EV; //#24983 + for (var _EX = 0, _EW = _EV; _EX <= _EW; _EX += 1) { //#24983 + var _EY = $k[--$j]; //#24983 + $k[$j++] = ~~(Math.round(_EX * (255 / _EY))); //#24983 + $k[$j++] = _EY; //#24983 + } //#24983 + $j--; //#24983 + var _EZ = $a(); //#24983 + $1[$k[--$j]] = _EZ; //#24983 + var _Eb = $1.colors; //#24985 + $1.palette = new Map; //#24985 + var _Ec = $1.colors; //#24986 + var _Ed = 64; //#24986 + if (64 > _Ec) { //#24986 + var _ = _Ec; //#24986 + _Ec = _Ed; //#24986 + _Ed = _; //#24986 + } //#24986 + $1.palettelayout = $a(_Ed); //#24986 + $1.i = 0; //#24987 + $1.j = 8; //#24987 + $forall($1.rvals, function() { //#25021 + $1.r = $k[--$j]; //#24989 + $forall($1.gvals, function() { //#25020 + $1.g = $k[--$j]; //#24991 + $forall($1.bvals, function() { //#25019 + $1.b = $k[--$j]; //#24993 + var _Ep = $strcpy($s(6), "000000"); //#24995 + var _Er = $cvrs($s(6), (($1.r << 16) | ($1.g << 8)) | $1.b, 16); //#24995 + $puti(_Ep, 6 - _Er.length, _Er); //#24995 + $k[$j++] = _Ep; //#24997 + $k[$j++] = false; //#24997 + if ($eq(_Ep, "000000")) { //#24997 + $1.ki = $1.i; //#24997 + $j--; //#24997 + $k[$j++] = true; //#24997 + } //#24997 + var _Et = $k[--$j]; //#24998 + var _Eu = $k[--$j]; //#24998 + $k[$j++] = _Eu; //#24998 + $k[$j++] = _Et; //#24998 + if ($eq(_Eu, "0000FF")) { //#24998 + $1.bi = $1.i; //#24998 + $j--; //#24998 + $k[$j++] = true; //#24998 + } //#24998 + var _Ew = $k[--$j]; //#24999 + var _Ex = $k[--$j]; //#24999 + $k[$j++] = _Ex; //#24999 + $k[$j++] = _Ew; //#24999 + if ($eq(_Ex, "00FF00")) { //#24999 + $1.gi = $1.i; //#24999 + $j--; //#24999 + $k[$j++] = true; //#24999 + } //#24999 + var _Ez = $k[--$j]; //#25000 + var _F0 = $k[--$j]; //#25000 + $k[$j++] = _F0; //#25000 + $k[$j++] = _Ez; //#25000 + if ($eq(_F0, "00FFFF")) { //#25000 + $1.ci = $1.i; //#25000 + $j--; //#25000 + $k[$j++] = true; //#25000 + } //#25000 + var _F2 = $k[--$j]; //#25001 + var _F3 = $k[--$j]; //#25001 + $k[$j++] = _F3; //#25001 + $k[$j++] = _F2; //#25001 + if ($eq(_F3, "FF0000")) { //#25001 + $1.ri = $1.i; //#25001 + $j--; //#25001 + $k[$j++] = true; //#25001 + } //#25001 + var _F5 = $k[--$j]; //#25002 + var _F6 = $k[--$j]; //#25002 + $k[$j++] = _F6; //#25002 + $k[$j++] = _F5; //#25002 + if ($eq(_F6, "FF00FF")) { //#25002 + $1.mi = $1.i; //#25002 + $j--; //#25002 + $k[$j++] = true; //#25002 + } //#25002 + var _F8 = $k[--$j]; //#25003 + var _F9 = $k[--$j]; //#25003 + $k[$j++] = _F9; //#25003 + $k[$j++] = _F8; //#25003 + if ($eq(_F9, "FFFF00")) { //#25003 + $1.yi = $1.i; //#25003 + $j--; //#25003 + $k[$j++] = true; //#25003 + } //#25003 + var _FB = $k[--$j]; //#25004 + var _FC = $k[--$j]; //#25004 + $k[$j++] = _FC; //#25004 + $k[$j++] = _FB; //#25004 + if ($eq(_FC, "FFFFFF")) { //#25004 + $1.wi = $1.i; //#25004 + $j--; //#25004 + $k[$j++] = true; //#25004 + } //#25004 + if ($nt($k[--$j])) { //#25016 + if (($1.colors <= 64) || ((($1.colors == 128) && (((($1.r == 0) || ($1.r == 73)) || ($1.r == 182)) || ($1.r == 255))) || ((($1.colors == 256) && (((($1.r == 0) || ($1.r == 73)) || ($1.r == 182)) || ($1.r == 255))) && (((($1.g == 0) || ($1.g == 73)) || ($1.g == 182)) || ($1.g == 255))))) { //#25015 + $put($1.palettelayout, $1.j, $1.i); //#25013 + $1.j = $1.j + 1; //#25014 + } //#25014 + } //#25014 + $put($1.palette, $1.i, $k[--$j]); //#25017 + $1.i = $1.i + 1; //#25018 + }); //#25018 + }); //#25018 + }); //#25018 + $puti($1.palettelayout, 0, $a([$1.ki, $1.bi, $1.gi, $1.ci, $1.ri, $1.mi, $1.yi, $1.wi])); //#25022 + $1.metacolorindex = $a([$1.ki, $1.bi, $1.gi, $1.ci, $1.ri, $1.mi, $1.yi, $1.wi]); //#25023 + } //#25023 + $k[$j++] = Infinity; //#25027 + for (var _Fx = 0, _Fy = $1.rows * $1.cols; _Fx < _Fy; _Fx++) { //#25027 + $k[$j++] = -1; //#25027 + } //#25027 + $1.pixs = $a(); //#25027 + $1.jmv = function() { + var _G1 = $k[--$j]; //#25028 + var _G2 = $k[--$j]; //#25028 + $k[$j++] = $f(_G2 + (_G1 * $1.cols)); //#25028 + }; //#25028 + if (!$1.slave) { //#25058 + $1.fpat = $a([$a([1, 1, 1, 0, 0]), $a([1, 2, 2, 0, 0]), $a([1, 2, 1, 2, 1]), $a([0, 0, 2, 2, 1]), $a([0, 0, 1, 1, 1])]); //#25038 + $1.fmap = $a([$a([-1, $1.bi, $1.yi]), $a([-1, $1.yi, $1.bi]), $a([-1, $1.gi, $1.mi]), $a([-1, $1.mi, $1.gi])]); //#25044 + } else { //#25058 + $1.fpat = $a([$a([0, 0, 0, 0, 0]), $a([0, 2, 2, 0, 0]), $a([0, 2, 1, 2, 0]), $a([0, 0, 2, 2, 0]), $a([0, 0, 0, 0, 0])]); //#25052 + $1.fmap = $a([$a([-1, $1.ki, $1.wi]), $a([-1, $1.ki, $1.wi]), $a([-1, $1.ki, $1.wi]), $a([-1, $1.ki, $1.wi])]); //#25058 + } //#25058 + for (var _Gg = 0; _Gg <= 4; _Gg += 1) { //#25070 + $1.y = _Gg; //#25061 + for (var _Gh = 0; _Gh <= 4; _Gh += 1) { //#25069 + $1.x = _Gh; //#25063 + $1.fpb = $get($get($1.fpat, $1.y), $1.x); //#25064 + $k[$j++] = $1.pixs; //#25065 + $k[$j++] = $1.x + 1; //#25065 + $k[$j++] = $1.y + 1; //#25065 + $1.jmv(); //#25065 + var _Gu = $k[--$j]; //#25065 + $put($k[--$j], _Gu, $get($get($1.fmap, 0), $1.fpb)); //#25065 + $k[$j++] = $1.pixs; //#25066 + $k[$j++] = $1.x + 1; //#25066 + $k[$j++] = $f($f($1.rows - $1.y) - 2); //#25066 + $1.jmv(); //#25066 + var _H4 = $k[--$j]; //#25066 + $put($k[--$j], _H4, $get($get($1.fmap, 1), $1.fpb)); //#25066 + $k[$j++] = $1.pixs; //#25067 + $k[$j++] = $f($f($1.x + $1.cols) - 6); //#25067 + $k[$j++] = $1.y + 1; //#25067 + $1.jmv(); //#25067 + var _HE = $k[--$j]; //#25067 + $put($k[--$j], _HE, $get($get($1.fmap, 2), $1.fpb)); //#25067 + $k[$j++] = $1.pixs; //#25068 + $k[$j++] = $f($f($1.x + $1.cols) - 6); //#25068 + $k[$j++] = $f($f($1.rows - $1.y) - 2); //#25068 + $1.jmv(); //#25068 + var _HP = $k[--$j]; //#25068 + $put($k[--$j], _HP, $get($get($1.fmap, 3), $1.fpb)); //#25068 + } //#25068 + } //#25068 + $1.algnpat0 = $a([$a([$1.ki, $1.ki, -1]), $a([$1.ki, $1.wi, $1.ki]), $a([-1, $1.ki, $1.ki])]); //#25077 + $1.algnpat1 = $a([$a([-1, $1.ki, $1.ki]), $a([$1.ki, $1.wi, $1.ki]), $a([$1.ki, $1.ki, -1])]); //#25082 + $1.num = (~~Math.round($1.cols / 16)) - 1; //#25083 + $1.algnrpos = $a([3, 17]); //#25084 + if ($1.num > 0) { //#25087 + $k[$j++] = Infinity; //#25086 + for (var _Hs = 0, _Hr = $1.num; _Hs <= _Hr; _Hs += 1) { //#25086 + $k[$j++] = (~~(_Hs * ($f($1.cols - 7) / $1.num))) + 3; //#25086 + } //#25086 + $1.algnrpos = $a(); //#25086 + } //#25086 + $1.num = (~~Math.round($1.rows / 16)) - 1; //#25088 + $1.algncpos = $a([3, 17]); //#25089 + if ($1.num > 0) { //#25092 + $k[$j++] = Infinity; //#25091 + for (var _I1 = 0, _I0 = $1.num; _I1 <= _I0; _I1 += 1) { //#25091 + $k[$j++] = (~~(_I1 * ($f($1.rows - 7) / $1.num))) + 3; //#25091 + } //#25091 + $1.algncpos = $a(); //#25091 + } //#25091 + $1.putalgnpat = function() { + $1.pp = $k[--$j]; //#25094 + $1.py = $k[--$j]; //#25095 + $1.px = $k[--$j]; //#25096 + for (var _I8 = 0; _I8 <= 2; _I8 += 1) { //#25103 + $1.pb = _I8; //#25098 + for (var _I9 = 0; _I9 <= 2; _I9 += 1) { //#25102 + $1.pa = _I9; //#25100 + $k[$j++] = $1.pixs; //#25101 + $k[$j++] = $f($1.px + $1.pa); //#25101 + $k[$j++] = $f($1.py + $1.pb); //#25101 + $1.jmv(); //#25101 + var _IK = $k[--$j]; //#25101 + $put($k[--$j], _IK, $get($get($1.pp, $1.pb), $1.pa)); //#25101 + } //#25101 + } //#25101 + }; //#25104 + for (var _IO = 0, _IN = $1.algncpos.length - 1; _IO <= _IN; _IO += 1) { //#25115 + $1.j = _IO; //#25106 + $1.y = $get($1.algncpos, $1.j); //#25107 + for (var _IU = 0, _IT = $1.algnrpos.length - 1; _IU <= _IT; _IU += 1) { //#25114 + $1.i = _IU; //#25109 + $1.x = $get($1.algnrpos, $1.i); //#25110 + $k[$j++] = $1.pixs; //#25111 + $k[$j++] = $1.x; //#25111 + $k[$j++] = $1.y; //#25111 + $1.jmv(); //#25111 + var _Ib = $k[--$j]; //#25111 + if ($get($k[--$j], _Ib) == -1) { //#25113 + $k[$j++] = $f($1.x - 1); //#25112 + $k[$j++] = $f($1.y - 1); //#25112 + if ((($1.i + $1.j) % 2) == 0) { //#25112 + $k[$j++] = $1.algnpat0; //#25112 + } else { //#25112 + $k[$j++] = $1.algnpat1; //#25112 + } //#25112 + $1.putalgnpat(); //#25112 + } //#25112 + } //#25112 + } //#25112 + if (!$1.slave) { //#25167 + var _JT = $a([$a([6, 1]), $a([6, 2]), $a([6, 3]), $a([6, 4]), $a([6, 5]), $a([6, 6]), $a([5, 6]), $a([4, 6]), $a([3, 6]), $a([2, 6]), $a([1, 6]), $a([7, 1]), $a([7, 2]), $a([7, 3]), $a([7, 4]), $a([7, 5]), $a([7, 6]), $a([7, 7]), $a([6, 7]), $a([5, 7]), $a([4, 7]), $a([3, 7]), $a([2, 7]), $a([1, 7]), $a([8, 1]), $a([8, 2]), $a([8, 3]), $a([8, 4]), $a([8, 5]), $a([8, 6]), $a([8, 7]), $a([8, 8]), $a([7, 8]), $a([6, 8]), $a([5, 8]), $a([4, 8]), $a([3, 8]), $a([2, 8]), $a([1, 8]), $a([9, 1]), $a([9, 2]), $a([9, 3]), $a([9, 4]), $a([9, 5])]); //#25126 + for (var _JU = 0, _JV = _JT.length; _JU < _JV; _JU++) { //#25130 + $aload($get(_JT, _JU)); //#25128 + $1.y = $k[--$j]; //#25128 + $1.x = $k[--$j]; //#25128 + $k[$j++] = $a([$1.x, $1.y]); //#25129 + $k[$j++] = $a([-$1.x, $1.y]); //#25129 + $k[$j++] = $a([-$1.x, -$1.y]); //#25129 + $k[$j++] = $a([$1.x, -$1.y]); //#25129 + } //#25129 + $astore($a(176)); //#25131 + $1.metadatamap = $k[--$j]; //#25131 + $1.palettemap1 = $a([$a([4, 1]), $a([4, 2]), $a([5, 1]), $a([5, 2]), $a([2, 4]), $a([2, 5]), $a([1, 4]), $a([1, 5]), $a([-2, 1]), $a([-2, 2]), $a([-1, 1]), $a([-1, 2]), $a([-4, 4]), $a([-4, 5]), $a([-5, 4]), $a([-5, 5])]); //#25136 + $1.palettemap2 = $a([$a([-4, -5]), $a([-4, -4]), $a([-5, -5]), $a([-5, -4]), $a([-2, -2]), $a([-2, -1]), $a([-1, -2]), $a([-1, -1]), $a([2, -5]), $a([2, -4]), $a([1, -5]), $a([1, -4]), $a([4, -2]), $a([4, -1]), $a([5, -2]), $a([5, -1])]); //#25141 + } else { //#25167 + $k[$j++] = Infinity; //#25154 + for (var _KL = 1; _KL <= 19; _KL += 1) { //#25151 + $1.i = _KL; //#25149 + $k[$j++] = $a([0, $1.i]); //#25150 + $k[$j++] = $a([1, $1.i]); //#25150 + } //#25150 + for (var _KQ = 5; _KQ <= 12; _KQ += 1) { //#25155 + $1.i = _KQ; //#25153 + $k[$j++] = $a([2, $1.i]); //#25154 + $k[$j++] = $a([3, $1.i]); //#25154 + } //#25154 + $1.metadatamap = $a(); //#25154 + $k[$j++] = Infinity; //#25162 + for (var _KW = 5; _KW <= 12; _KW += 1) { //#25159 + $k[$j++] = _KW; //#25159 + $k[$j++] = Infinity; //#25159 + var _KX = $k[--$j]; //#25159 + var _KY = $k[--$j]; //#25159 + $k[$j++] = _KX; //#25159 + $k[$j++] = 4; //#25159 + $k[$j++] = _KY; //#25159 + var _KZ = $a(); //#25159 + $k[$j++] = _KZ; //#25159 + } //#25159 + for (var _Ka = 12; _Ka >= 5; _Ka -= 1) { //#25160 + $k[$j++] = _Ka; //#25160 + $k[$j++] = Infinity; //#25160 + var _Kb = $k[--$j]; //#25160 + var _Kc = $k[--$j]; //#25160 + $k[$j++] = _Kb; //#25160 + $k[$j++] = 5; //#25160 + $k[$j++] = _Kc; //#25160 + var _Kd = $a(); //#25160 + $k[$j++] = _Kd; //#25160 + } //#25160 + for (var _Ke = 5; _Ke <= 12; _Ke += 1) { //#25161 + $k[$j++] = _Ke; //#25161 + $k[$j++] = Infinity; //#25161 + var _Kf = $k[--$j]; //#25161 + var _Kg = $k[--$j]; //#25161 + $k[$j++] = _Kf; //#25161 + $k[$j++] = 6; //#25161 + $k[$j++] = _Kg; //#25161 + var _Kh = $a(); //#25161 + $k[$j++] = _Kh; //#25161 + } //#25161 + for (var _Ki = 12; _Ki >= 5; _Ki -= 1) { //#25162 + $k[$j++] = _Ki; //#25162 + $k[$j++] = Infinity; //#25162 + var _Kj = $k[--$j]; //#25162 + var _Kk = $k[--$j]; //#25162 + $k[$j++] = _Kj; //#25162 + $k[$j++] = 7; //#25162 + $k[$j++] = _Kk; //#25162 + var _Kl = $a(); //#25162 + $k[$j++] = _Kl; //#25162 + } //#25162 + $1.palettemap1 = $a(); //#25162 + $k[$j++] = Infinity; //#25166 + var _Kn = $1.palettemap1; //#25166 + for (var _Ko = 0, _Kp = _Kn.length; _Ko < _Kp; _Ko++) { //#25166 + $k[$j++] = $get(_Kn, _Ko); //#25166 + $k[$j++] = Infinity; //#25166 + var _Kr = $k[--$j]; //#25166 + var _Ks = $k[--$j]; //#25166 + $k[$j++] = _Kr; //#25166 + $aload(_Ks); //#25166 + var _Kt = $k[--$j]; //#25166 + var _Ku = $k[--$j]; //#25166 + $k[$j++] = -_Ku; //#25166 + $k[$j++] = -_Kt; //#25166 + var _Kv = $a(); //#25166 + $k[$j++] = _Kv; //#25166 + } //#25166 + $1.palettemap2 = $a(); //#25166 + } //#25167 + var _Kx = $1.metadatamap; //#25172 + for (var _Ky = 0, _Kz = _Kx.length; _Ky < _Kz; _Ky++) { //#25176 + var _L0 = $get(_Kx, _Ky); //#25176 + var _L1 = $get(_L0, 0); //#25173 + $k[$j++] = _L0; //#25173 + $k[$j++] = _L1; //#25173 + if (_L1 < 0) { //#25173 + var _L3 = $k[--$j]; //#25173 + var _L4 = $k[--$j]; //#25173 + $put(_L4, 0, $f($f(_L3 + $1.cols) - 1)); //#25173 + $k[$j++] = _L4; //#25173 + } else { //#25173 + $j--; //#25173 + } //#25173 + var _L5 = $k[--$j]; //#25174 + var _L6 = $get(_L5, 1); //#25174 + $k[$j++] = _L5; //#25174 + $k[$j++] = _L6; //#25174 + if (_L6 < 0) { //#25174 + var _L8 = $k[--$j]; //#25174 + var _L9 = $k[--$j]; //#25174 + $put(_L9, 1, $f($f(_L8 + $1.rows) - 1)); //#25174 + $k[$j++] = _L9; //#25174 + } else { //#25174 + $j--; //#25174 + } //#25174 + $j--; //#25175 + } //#25175 + var _LA = $1.palettemap1; //#25177 + for (var _LB = 0, _LC = _LA.length; _LB < _LC; _LB++) { //#25181 + var _LD = $get(_LA, _LB); //#25181 + var _LE = $get(_LD, 0); //#25178 + $k[$j++] = _LD; //#25178 + $k[$j++] = _LE; //#25178 + if (_LE < 0) { //#25178 + var _LG = $k[--$j]; //#25178 + var _LH = $k[--$j]; //#25178 + $put(_LH, 0, $f($f(_LG + $1.cols) - 1)); //#25178 + $k[$j++] = _LH; //#25178 + } else { //#25178 + $j--; //#25178 + } //#25178 + var _LI = $k[--$j]; //#25179 + var _LJ = $get(_LI, 1); //#25179 + $k[$j++] = _LI; //#25179 + $k[$j++] = _LJ; //#25179 + if (_LJ < 0) { //#25179 + var _LL = $k[--$j]; //#25179 + var _LM = $k[--$j]; //#25179 + $put(_LM, 1, $f($f(_LL + $1.rows) - 1)); //#25179 + $k[$j++] = _LM; //#25179 + } else { //#25179 + $j--; //#25179 + } //#25179 + $j--; //#25180 + } //#25180 + var _LN = $1.palettemap2; //#25182 + for (var _LO = 0, _LP = _LN.length; _LO < _LP; _LO++) { //#25186 + var _LQ = $get(_LN, _LO); //#25186 + var _LR = $get(_LQ, 0); //#25183 + $k[$j++] = _LQ; //#25183 + $k[$j++] = _LR; //#25183 + if (_LR < 0) { //#25183 + var _LT = $k[--$j]; //#25183 + var _LU = $k[--$j]; //#25183 + $put(_LU, 0, $f($f(_LT + $1.cols) - 1)); //#25183 + $k[$j++] = _LU; //#25183 + } else { //#25183 + $j--; //#25183 + } //#25183 + var _LV = $k[--$j]; //#25184 + var _LW = $get(_LV, 1); //#25184 + $k[$j++] = _LV; //#25184 + $k[$j++] = _LW; //#25184 + if (_LW < 0) { //#25184 + var _LY = $k[--$j]; //#25184 + var _LZ = $k[--$j]; //#25184 + $put(_LZ, 1, $f($f(_LY + $1.rows) - 1)); //#25184 + $k[$j++] = _LZ; //#25184 + } else { //#25184 + $j--; //#25184 + } //#25184 + $j--; //#25185 + } //#25185 + for (var _Lc = 0, _Lb = $f($1.nummetamodules - 1); _Lc <= _Lb; _Lc += 1) { //#25191 + $k[$j++] = $1.pixs; //#25190 + $aload($get($1.metadatamap, _Lc)); //#25190 + $1.jmv(); //#25190 + var _Lg = $k[--$j]; //#25190 + $put($k[--$j], _Lg, 0); //#25190 + } //#25190 + if (!$1.slave) { //#25204 + var _Lj = $1.colors; //#25196 + var _Lk = 16; //#25196 + if (16 > _Lj) { //#25196 + var _ = _Lj; //#25196 + _Lj = _Lk; //#25196 + _Lk = _; //#25196 + } //#25196 + for (var _Lm = 0, _Ll = _Lk - 1; _Lm <= _Ll; _Lm += 1) { //#25201 + $1.i = _Lm; //#25197 + var _Lp = $get($1.palettelayout, $1.i); //#25198 + $k[$j++] = _Lp; //#25199 + $k[$j++] = $1.pixs; //#25199 + $k[$j++] = _Lp; //#25199 + $aload($get($1.palettemap1, $1.i)); //#25199 + $1.jmv(); //#25199 + var _Lu = $k[--$j]; //#25199 + var _Lv = $k[--$j]; //#25199 + $put($k[--$j], _Lu, _Lv); //#25199 + var _Ly = $k[--$j]; //#25200 + $k[$j++] = $1.pixs; //#25200 + $k[$j++] = _Ly; //#25200 + $aload($get($1.palettemap2, $1.i)); //#25200 + $1.jmv(); //#25200 + var _M2 = $k[--$j]; //#25200 + var _M3 = $k[--$j]; //#25200 + $put($k[--$j], _M2, _M3); //#25200 + } //#25200 + $1.i = 16; //#25202 + } else { //#25204 + $1.i = 0; //#25204 + } //#25204 + $1.j = $1.nummetamodules; //#25208 + for (var _M9 = $1.i, _M8 = $1.palettelayout.length - 1; _M9 <= _M8; _M9 += 2) { //#25218 + $1.i = _M9; //#25210 + var _MC = $get($1.palettelayout, $1.i); //#25211 + $k[$j++] = _MC; //#25212 + $k[$j++] = $1.pixs; //#25212 + $k[$j++] = _MC; //#25212 + $aload($get($1.metadatamap, $1.j)); //#25212 + $1.jmv(); //#25212 + var _MH = $k[--$j]; //#25212 + var _MI = $k[--$j]; //#25212 + $put($k[--$j], _MH, _MI); //#25212 + var _ML = $k[--$j]; //#25213 + $k[$j++] = $1.pixs; //#25213 + $k[$j++] = _ML; //#25213 + $aload($get($1.metadatamap, $f($1.j + 2))); //#25213 + $1.jmv(); //#25213 + var _MP = $k[--$j]; //#25213 + var _MQ = $k[--$j]; //#25213 + $put($k[--$j], _MP, _MQ); //#25213 + var _MU = $get($1.palettelayout, $1.i + 1); //#25214 + $k[$j++] = _MU; //#25215 + $k[$j++] = $1.pixs; //#25215 + $k[$j++] = _MU; //#25215 + $aload($get($1.metadatamap, $f($1.j + 1))); //#25215 + $1.jmv(); //#25215 + var _MZ = $k[--$j]; //#25215 + var _Ma = $k[--$j]; //#25215 + $put($k[--$j], _MZ, _Ma); //#25215 + var _Md = $k[--$j]; //#25216 + $k[$j++] = $1.pixs; //#25216 + $k[$j++] = _Md; //#25216 + $aload($get($1.metadatamap, $f($1.j + 3))); //#25216 + $1.jmv(); //#25216 + var _Mh = $k[--$j]; //#25216 + var _Mi = $k[--$j]; //#25216 + $put($k[--$j], _Mh, _Mi); //#25216 + $1.j = $f($1.j + 4); //#25217 + } //#25217 + var _NA = $a([function() { + var _Ml = $k[--$j]; //#25222 + var _Mm = $k[--$j]; //#25222 + $k[$j++] = $f(_Mm + _Ml) % $1.colors; //#25222 + }, function() { + $j--; //#25223 + var _Mp = $k[--$j]; //#25223 + $k[$j++] = _Mp % $1.colors; //#25223 + }, function() { + var _Mq = $k[--$j]; //#25224 + var _Mr = $k[--$j]; //#25224 + $k[$j++] = _Mq; //#25224 + $k[$j++] = _Mr; //#25224 + $j--; //#25224 + var _Mt = $k[--$j]; //#25224 + $k[$j++] = _Mt % $1.colors; //#25224 + }, function() { + var _Mu = $k[--$j]; //#25225 + var _Mv = $k[--$j]; //#25225 + $k[$j++] = ((~~(_Mu / 3)) + (~~(_Mv / 2))) % $1.colors; //#25225 + }, function() { + var _Mx = $k[--$j]; //#25226 + var _My = $k[--$j]; //#25226 + $k[$j++] = ((~~(_Mx / 2)) + (~~(_My / 3))) % $1.colors; //#25226 + }, function() { + var _N0 = $k[--$j]; //#25227 + var _N2 = $f($k[--$j] + _N0); //#25227 + $k[$j++] = ((~~(_N2 / 2)) + (~~(_N2 / 3))) % $1.colors; //#25227 + }, function() { + var _N4 = $k[--$j]; //#25228 + var _N5 = $k[--$j]; //#25228 + $k[$j++] = ($f(((_N4 * (_N5 * _N5)) % 7) + ((($f(_N4 + (_N5 * _N5))) * 2) % 19))) % $1.colors; //#25228 + }, function() { + var _N7 = $k[--$j]; //#25229 + var _N8 = $k[--$j]; //#25229 + $k[$j++] = ($f(((_N8 * (_N7 * _N7)) % 5) + (($f((_N7 * _N7) + (_N8 * 2))) % 13))) % $1.colors; //#25229 + }]); //#25229 + $1.maskfuncs = _NA; //#25230 + if ($1.mask != -1) { //#25234 + $1.maskfuncs = $a([$get($1.maskfuncs, $1.mask)]); //#25232 + $1.bestmaskval = $1.mask; //#25233 + } //#25233 + $1.masks = $a($1.maskfuncs.length); //#25235 + for (var _NL = 0, _NK = $1.masks.length - 1; _NL <= _NK; _NL += 1) { //#25248 + $1.m = _NL; //#25237 + $1.mask = $a($1.rows * $1.cols); //#25238 + for (var _NR = 0, _NQ = $f($1.rows - 1); _NR <= _NQ; _NR += 1) { //#25246 + $1.j = _NR; //#25240 + for (var _NU = 0, _NT = $f($1.cols - 1); _NU <= _NT; _NU += 1) { //#25245 + $1.i = _NU; //#25242 + $k[$j++] = $1.pixs; //#25243 + $k[$j++] = $1.i; //#25243 + $k[$j++] = $1.j; //#25243 + $1.jmv(); //#25243 + var _NY = $k[--$j]; //#25243 + if ($get($k[--$j], _NY) == -1) { //#25243 + $k[$j++] = $1.i; //#25243 + $k[$j++] = $1.j; //#25243 + if ($get($1.maskfuncs, $1.m)() === true) { + break; + } //#25243 + } else { //#25243 + $k[$j++] = 0; //#25243 + } //#25243 + $k[$j++] = $1.mask; //#25244 + $k[$j++] = $1.i; //#25244 + $k[$j++] = $1.j; //#25244 + $1.jmv(); //#25244 + var _Nj = $k[--$j]; //#25244 + var _Nk = $k[--$j]; //#25244 + $put(_Nk, _Nj, $k[--$j]); //#25244 + } //#25244 + } //#25244 + $put($1.masks, $1.m, $1.mask); //#25247 + } //#25247 + $1.posx = 0; //#25251 + $1.posy = 0; //#25251 + $1.i = 0; //#25252 + for (;;) { //#25262 + if ($1.posx == $1.cols) { //#25254 + break; //#25254 + } //#25254 + $k[$j++] = $1.pixs; //#25255 + $k[$j++] = $1.posx; //#25255 + $k[$j++] = $1.posy; //#25255 + $1.jmv(); //#25255 + var _Nu = $k[--$j]; //#25255 + if ($get($k[--$j], _Nu) == -1) { //#25259 + var _O0 = $geti($1.bits, $1.i, $1.databpm); //#25256 + $k[$j++] = 0; //#25256 + for (var _O1 = 0, _O2 = _O0.length; _O1 < _O2; _O1++) { //#25256 + var _O4 = $k[--$j]; //#25256 + $k[$j++] = ($f(_O4 + $f($get(_O0, _O1) - 48))) * 2; //#25256 + } //#25256 + var _O5 = $k[--$j]; //#25256 + $k[$j++] = ~~(_O5 / 2); //#25257 + $k[$j++] = $1.pixs; //#25257 + $k[$j++] = $1.posx; //#25257 + $k[$j++] = $1.posy; //#25257 + $1.jmv(); //#25257 + var _O9 = $k[--$j]; //#25257 + var _OA = $k[--$j]; //#25257 + $put(_OA, _O9, $k[--$j]); //#25257 + $1.i = $1.i + $1.databpm; //#25258 + } //#25258 + $1.posy = $1.posy + 1; //#25260 + if ($1.posy == $1.rows) { //#25261 + $1.posy = 0; //#25261 + $1.posx = $1.posx + 1; //#25261 + } //#25261 + } //#25261 + $1.evalrle = function() { + $1.scrle = $k[--$j]; //#25266 + $1.scr1 = 0; //#25267 + $1.scr3 = 0; //#25267 + for (var _OL = 0, _OK = $1.scrle.length - 2; _OL <= _OK; _OL += 2) { //#25289 + $1.j = _OL; //#25269 + if ($get($1.scrle, $1.j + 1) != -1) { //#25288 + var _OR = $get($1.scrle, $1.j); //#25272 + $k[$j++] = _OR; //#25272 + if (_OR >= 5) { //#25272 + $1.scr1 = $f($f($k[--$j] - 2) + $1.scr1); //#25272 + } else { //#25272 + $j--; //#25272 + } //#25272 + if (($1.j >= 4) && ($1.j <= ($1.scrle.length - 5))) { //#25287 + var _OZ = $geti($1.scrle, $1.j - 4, 10); //#25275 + $k[$j++] = _OZ; //#25276 + for (var _Oa = 0, _Ob = _OZ.length; _Oa < _Ob; _Oa++) { //#25276 + $k[$j++] = $get(_OZ, _Oa) == 1; //#25276 + } //#25276 + $j--; //#25276 + for (var _Od = 0, _Oe = 4; _Od < _Oe; _Od++) { //#25276 + var _Of = $k[--$j]; //#25276 + var _Og = $k[--$j]; //#25276 + $k[$j++] = _Of; //#25276 + $k[$j++] = _Og; //#25276 + $j--; //#25276 + var _Oh = $k[--$j]; //#25276 + var _Oi = $k[--$j]; //#25276 + $k[$j++] = $an(_Oi, _Oh); //#25276 + } //#25276 + if ($k[--$j]) { //#25286 + $k[$j++] = Infinity; //#25277 + var _Ok = $k[--$j]; //#25277 + var _Ol = $k[--$j]; //#25277 + $k[$j++] = _Ok; //#25277 + $aload(_Ol); //#25277 + var _Om = $k[--$j]; //#25278 + var _On = $k[--$j]; //#25278 + var _Oo = $k[--$j]; //#25278 + var _Op = $k[--$j]; //#25278 + var _Oq = $k[--$j]; //#25278 + var _Or = $k[--$j]; //#25278 + var _Os = $k[--$j]; //#25278 + var _Ot = $k[--$j]; //#25278 + var _Ou = $k[--$j]; //#25278 + $k[$j++] = _Ou; //#25284 + $k[$j++] = _Ot; //#25284 + $k[$j++] = _Os; //#25284 + $k[$j++] = _Or; //#25284 + $k[$j++] = _Oq; //#25284 + $k[$j++] = _Op; //#25284 + $k[$j++] = _Oo; //#25284 + $k[$j++] = _On; //#25284 + $k[$j++] = _Om; //#25284 + if (($eq(_Ou, _Oq) && $eq(_Ou, _Om)) && $eq(_Os, _Oo)) { //#25284 + var _Ov = $k[--$j]; //#25280 + var _Ow = $k[--$j]; //#25280 + var _Ox = $k[--$j]; //#25280 + $1.c4 = _Ox; //#25280 + $1.c5 = _Ov; //#25280 + $k[$j++] = _Ox; //#25283 + $k[$j++] = _Ow; //#25283 + if ((($1.c4 == $1.bi) && ($1.c5 == $1.yi)) || ((($1.c4 == $1.yi) && ($1.c5 == $1.bi)) || ((($1.c4 == $1.gi) && ($1.c5 == $1.mi)) || (($1.c4 == $1.mi) && ($1.c5 == $1.gi))))) { //#25283 + $1.scr3 = $1.scr3 + 100; //#25283 + } //#25283 + } //#25283 + $cleartomark(); //#25285 + } else { //#25286 + $j--; //#25286 + } //#25286 + } //#25286 + } //#25286 + } //#25286 + $k[$j++] = $1.scr1; //#25290 + $k[$j++] = $1.scr3; //#25290 + }; //#25291 + $1.evalmask = function() { + $1.sym = $k[--$j]; //#25294 + $1.n1 = 0; //#25296 + $1.n2 = 0; //#25296 + $1.n3 = 0; //#25296 + var _PI = $1.rows; //#25297 + var _PJ = $1.cols; //#25297 + if (_PI < _PJ) { //#25297 + var _ = _PJ; //#25297 + _PJ = _PI; //#25297 + _PI = _; //#25297 + } //#25297 + $1.rle = $a($f((_PI * 2) + 2)); //#25297 + $1.lastpairs = $a($1.cols); //#25298 + $1.thispairs = $a($1.cols); //#25299 + for (var _PR = 0, _PQ = $f($1.cols - 1); _PR <= _PQ; _PR += 1) { //#25311 + $1.i = _PR; //#25303 + $k[$j++] = Infinity; //#25304 + $k[$j++] = 0; //#25307 + $k[$j++] = -1; //#25307 + for (var _PX = $1.i, _PY = $1.cols, _PW = $f(($1.rows * $1.cols) - 1); _PY < 0 ? _PX >= _PW : _PX <= _PW; _PX += _PY) { //#25307 + var _Pa = $get($1.sym, _PX); //#25306 + var _Pb = $k[--$j]; //#25306 + $k[$j++] = _Pb; //#25306 + $k[$j++] = _Pa; //#25306 + if ($eq(_Pb, _Pa)) { //#25306 + $j--; //#25306 + var _Pc = $k[--$j]; //#25306 + var _Pd = $k[--$j]; //#25306 + $k[$j++] = $f(_Pd + 1); //#25306 + $k[$j++] = _Pc; //#25306 + } else { //#25306 + var _Pe = $k[--$j]; //#25306 + $k[$j++] = 1; //#25306 + $k[$j++] = _Pe; //#25306 + } //#25306 + } //#25306 + var _Pg = $counttomark() + 2; //#25308 + $astore($geti($1.rle, 0, _Pg - 2)); //#25308 + $1.evalrle(); //#25309 + $1.n3 = $f($k[--$j] + $1.n3); //#25309 + $1.n1 = $f($k[--$j] + $1.n1); //#25309 + $j--; //#25310 + } //#25310 + for (var _Po = 0, _Pn = $f($1.rows - 1); _Po <= _Pn; _Po += 1) { //#25338 + $1.i = _Po; //#25314 + $1.symrow = $geti($1.sym, $1.i * $1.cols, $1.cols); //#25317 + $k[$j++] = Infinity; //#25318 + var _Pu = $1.symrow; //#25319 + $k[$j++] = 0; //#25321 + $k[$j++] = -1; //#25321 + for (var _Pv = 0, _Pw = _Pu.length; _Pv < _Pw; _Pv++) { //#25321 + var _Px = $get(_Pu, _Pv); //#25321 + var _Py = $k[--$j]; //#25320 + $k[$j++] = _Py; //#25320 + $k[$j++] = _Px; //#25320 + if ($eq(_Py, _Px)) { //#25320 + $j--; //#25320 + var _Pz = $k[--$j]; //#25320 + var _Q0 = $k[--$j]; //#25320 + $k[$j++] = $f(_Q0 + 1); //#25320 + $k[$j++] = _Pz; //#25320 + } else { //#25320 + var _Q1 = $k[--$j]; //#25320 + $k[$j++] = 1; //#25320 + $k[$j++] = _Q1; //#25320 + } //#25320 + } //#25320 + var _Q3 = $counttomark() + 2; //#25322 + $astore($geti($1.rle, 0, _Q3 - 2)); //#25322 + $1.evalrle(); //#25323 + $1.n3 = $f($k[--$j] + $1.n3); //#25323 + $1.n1 = $f($k[--$j] + $1.n1); //#25323 + $j--; //#25324 + var _Q9 = $1.thispairs; //#25327 + $1.thispairs = $1.lastpairs; //#25327 + $1.lastpairs = _Q9; //#25327 + var _QB = $1.symrow; //#25328 + $k[$j++] = -1; //#25328 + for (var _QC = 0, _QD = _QB.length; _QC < _QD; _QC++) { //#25328 + var _QE = $get(_QB, _QC); //#25328 + var _QF = $k[--$j]; //#25328 + $k[$j++] = _QE; //#25328 + $k[$j++] = _QF; //#25328 + if ($ne(_QE, _QF)) { //#25328 + $j--; //#25328 + var _QG = $k[--$j]; //#25328 + $k[$j++] = -1; //#25328 + $k[$j++] = _QG; //#25328 + } //#25328 + } //#25328 + $j--; //#25329 + $astore($1.thispairs); //#25330 + $j--; //#25330 + if ($1.i > 0) { //#25337 + $k[$j++] = Infinity; //#25332 + $aload($1.lastpairs); //#25333 + $aload($1.thispairs); //#25333 + $k[$j++] = $1.n2; //#25334 + for (var _QN = 0, _QO = $1.cols; _QN < _QO; _QN++) { //#25334 + var _QP = $k[--$j]; //#25334 + var _QQ = $k[--$j]; //#25334 + $k[$j++] = _QP; //#25334 + $k[$j++] = _QQ; //#25334 + if (_QQ != -1) { //#25334 + var _QS = $k[$j - 1 - $f($1.cols + 1)]; //#25334 + if ($eq($k[--$j], _QS)) { //#25334 + var _QU = $k[--$j]; //#25334 + $k[$j++] = $f(_QU + 3); //#25334 + } //#25334 + } else { //#25334 + $j--; //#25334 + } //#25334 + } //#25334 + $1.n2 = $k[--$j]; //#25335 + $cleartomark(); //#25336 + } //#25336 + } //#25336 + $k[$j++] = $f($f($1.n1 + $1.n2) + $1.n3); //#25340 + }; //#25341 + $1.bestscore = 999999999; //#25344 + for (var _Qb = 0, _Qa = $1.masks.length - 1; _Qb <= _Qa; _Qb += 1) { //#25362 + $1.m = _Qb; //#25346 + $1.masksym = $a($1.rows * $1.cols); //#25347 + for (var _Qi = 0, _Qh = $f(($1.rows * $1.cols) - 1); _Qi <= _Qh; _Qi += 1) { //#25351 + $1.i = _Qi; //#25349 + $put($1.masksym, $1.i, $xo($get($1.pixs, $1.i), $get($get($1.masks, $1.m), $1.i))); //#25350 + } //#25350 + if ($1.masks.length != 1) { //#25360 + $k[$j++] = $1.masksym; //#25353 + $1.evalmask(); //#25353 + $1.score = $k[--$j]; //#25353 + if ($1.score < $1.bestscore) { //#25358 + $1.bestsym = $1.masksym; //#25355 + $1.bestmaskval = $1.m; //#25356 + $1.bestscore = $1.score; //#25357 + } //#25357 + } else { //#25360 + $1.bestsym = $1.masksym; //#25360 + } //#25360 + } //#25360 + $1.pixs = $1.bestsym; //#25363 + $1.metamask = $1.bestmaskval; //#25364 + $1.addtometapart = function() { + var _R4 = $k[--$j]; //#25368 + $puti($1.metapart, $1.p, _R4); //#25368 + $1.p = _R4.length + $1.p; //#25369 + }; //#25370 + $1.addtometabits = function() { + var _R8 = $k[--$j]; //#25373 + $puti($1.metabits, $1.q, _R8); //#25373 + $1.q = _R8.length + $1.q; //#25374 + }; //#25375 + $1.metapart = $s(40); //#25377 + $1.metabits = $s($1.nummetabits); //#25378 + $1.p = 0; //#25379 + $1.q = 0; //#25379 + if (!$1.slave) { //#25434 + $k[$j++] = (~~(Math.round(Math.log($1.colors) / Math.log(2)))) - 1; //#25384 + $k[$j++] = 3; //#25384 + $1.tofixedbits(); //#25384 + $1.addtometapart(); //#25384 + $k[$j++] = $geti($1.metapart, 0, $1.p); //#25385 + $k[$j++] = 2; //#25385 + $k[$j++] = -1; //#25385 + $1.ldpc(); //#25385 + $1.addtometabits(); //#25385 + $1.p = 0; //#25385 + $k[$j++] = $1.metass; //#25388 + $k[$j++] = 1; //#25388 + $1.tofixedbits(); //#25388 + $1.addtometapart(); //#25388 + $k[$j++] = $1.metavf; //#25389 + $k[$j++] = 2; //#25389 + $1.tofixedbits(); //#25389 + $1.addtometapart(); //#25389 + $k[$j++] = $1.metamask; //#25390 + $k[$j++] = 3; //#25390 + $1.tofixedbits(); //#25390 + $1.addtometapart(); //#25390 + if ($1.hasslaves) { //#25391 + $k[$j++] = "1"; //#25391 + } else { //#25391 + $k[$j++] = "0"; //#25391 + } //#25391 + $1.addtometapart(); //#25391 + $k[$j++] = $geti($1.metapart, 0, $1.p); //#25392 + $k[$j++] = 2; //#25392 + $k[$j++] = -1; //#25392 + $1.ldpc(); //#25392 + $1.addtometabits(); //#25392 + $1.p = 0; //#25392 + if ($1.metass == 0) { //#25402 + $k[$j++] = $f(($f((~~($f($1.cols - 17) / 4)) - $get($a([0, 4, 8, 16]), $1.metavf))) - 1); //#25397 + $k[$j++] = $1.metavlen; //#25397 + $1.tofixedbits(); //#25397 + $1.addtometapart(); //#25397 + } else { //#25402 + $k[$j++] = (~~($f($1.cols - 17) / 4)) - 1; //#25400 + $k[$j++] = ~~($1.metavlen / 2); //#25400 + $1.tofixedbits(); //#25400 + $1.addtometapart(); //#25400 + $k[$j++] = (~~($f($1.rows - 17) / 4)) - 1; //#25402 + $k[$j++] = ~~($1.metavlen / 2); //#25402 + $1.tofixedbits(); //#25402 + $1.addtometapart(); //#25402 + } //#25402 + $k[$j++] = $1.datawc - 3; //#25404 + $k[$j++] = ~~($1.metaelen / 2); //#25404 + $1.tofixedbits(); //#25404 + $1.addtometapart(); //#25404 + $k[$j++] = $1.datawr - 4; //#25405 + $k[$j++] = ~~($1.metaelen / 2); //#25405 + $1.tofixedbits(); //#25405 + $1.addtometapart(); //#25405 + if ($1.hasslaves) { //#25408 + $k[$j++] = 0; //#25407 + $k[$j++] = 4; //#25407 + $1.tofixedbits(); //#25407 + $1.addtometapart(); //#25407 + } //#25407 + $k[$j++] = $geti($1.metapart, 0, $1.p); //#25409 + $k[$j++] = 2; //#25409 + $k[$j++] = -1; //#25409 + $1.ldpc(); //#25409 + $1.addtometabits(); //#25409 + $1.p = 0; //#25409 + } else { //#25434 + var _Rk = $1.sameshape ? 0 : 1; //#25414 + $k[$j++] = _Rk; //#25414 + $k[$j++] = 1; //#25414 + $1.tofixedbits(); //#25414 + $1.addtometapart(); //#25414 + var _Rm = $1.sameecc ? 0 : 1; //#25415 + $k[$j++] = _Rm; //#25415 + $k[$j++] = 1; //#25415 + $1.tofixedbits(); //#25415 + $1.addtometapart(); //#25415 + var _Ro = $1.hasslaves ? 1 : 0; //#25416 + $k[$j++] = _Ro; //#25416 + $k[$j++] = 1; //#25416 + $1.tofixedbits(); //#25416 + $1.addtometapart(); //#25416 + $k[$j++] = $geti($1.metapart, 0, $1.p); //#25417 + $k[$j++] = 2; //#25417 + $k[$j++] = -1; //#25417 + $1.ldpc(); //#25417 + $1.addtometabits(); //#25417 + $1.p = 0; //#25417 + if (!$1.sameshape) { //#25423 + $k[$j++] = (~~(($1.diffside - 17) / 4)) - 1; //#25422 + $k[$j++] = 5; //#25422 + $1.tofixedbits(); //#25422 + $1.addtometapart(); //#25422 + } //#25422 + if ($1.hasslaves) { //#25426 + $k[$j++] = 0; //#25425 + $k[$j++] = 3; //#25425 + $1.tofixedbits(); //#25425 + $1.addtometapart(); //#25425 + } //#25425 + $k[$j++] = $geti($1.metapart, 0, $1.p); //#25427 + $k[$j++] = 2; //#25427 + $k[$j++] = -1; //#25427 + $1.ldpc(); //#25427 + $1.addtometabits(); //#25427 + $1.p = 0; //#25427 + if (!$1.sameecc) { //#25433 + $k[$j++] = $1.datawc - 3; //#25431 + $k[$j++] = ~~($1.metaelen / 2); //#25431 + $1.tofixedbits(); //#25431 + $1.addtometapart(); //#25431 + $k[$j++] = $1.datawr - 4; //#25432 + $k[$j++] = ~~($1.metaelen / 2); //#25432 + $1.tofixedbits(); //#25432 + $1.addtometapart(); //#25432 + } //#25432 + $k[$j++] = $geti($1.metapart, 0, $1.p); //#25434 + $k[$j++] = 2; //#25434 + $k[$j++] = -1; //#25434 + $1.ldpc(); //#25434 + $1.addtometabits(); //#25434 + $1.p = 0; //#25434 + } //#25434 + for (var _S9 = $1.q, _S8 = $f($1.nummetabits - 1); _S9 <= _S8; _S9 += 1) { //#25439 + $put($1.metabits, _S9, 48); //#25438 + } //#25438 + $1.i = 0; //#25442 + $1.j = 0; //#25442 + if (!$1.slave) { //#25450 + var _SE = $geti($1.metabits, $1.i, 6); //#25444 + for (var _SF = 0, _SG = _SE.length; _SF < _SG; _SF++) { //#25448 + $k[$j++] = $get(_SE, _SF); //#25445 + if ($1.colors == 4) { //#25445 + $k[$j++] = $a([$1.bi, $1.yi]); //#25445 + } else { //#25445 + $k[$j++] = $a([$1.ki, $1.wi]); //#25445 + } //#25445 + var _SP = $k[--$j]; //#25445 + var _SR = $get(_SP, $f($k[--$j] - 48)); //#25445 + $k[$j++] = _SR; //#25446 + $k[$j++] = $1.pixs; //#25446 + $aload($get($1.metadatamap, $1.j)); //#25446 + $1.jmv(); //#25446 + var _SW = $k[--$j]; //#25446 + var _SX = $k[--$j]; //#25446 + $put(_SX, _SW, $k[--$j]); //#25446 + $1.j = $1.j + 1; //#25447 + } //#25447 + $1.i = $1.i + 6; //#25449 + } //#25449 + for (var _Se = 0, _Sf = ~~($f($1.nummetabits - $1.i) / $1.metabpm); _Se < _Sf; _Se++) { //#25457 + var _Sj = $geti($1.metabits, $1.i, $1.metabpm); //#25452 + $k[$j++] = 0; //#25452 + for (var _Sk = 0, _Sl = _Sj.length; _Sk < _Sl; _Sk++) { //#25452 + var _Sn = $k[--$j]; //#25452 + $k[$j++] = ($f(_Sn + $f($get(_Sj, _Sk) - 48))) * 2; //#25452 + } //#25452 + var _Sq = $get($1.metacolorindex, ~~($k[--$j] / 2)); //#25453 + $k[$j++] = _Sq; //#25454 + $k[$j++] = $1.pixs; //#25454 + $aload($get($1.metadatamap, $1.j)); //#25454 + $1.jmv(); //#25454 + var _Sv = $k[--$j]; //#25454 + var _Sw = $k[--$j]; //#25454 + $put(_Sw, _Sv, $k[--$j]); //#25454 + $1.i = $f($1.i + $1.metabpm); //#25455 + $1.j = $1.j + 1; //#25456 + } //#25456 + var _T8 = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", $1.cols], + ["pixy", $1.rows], + ["colormap", $1.palette], + ["height", ($1.rows * 2) / 72], + ["width", ($1.cols * 2) / 72], + ["opt", $1.options] + ]); //#25467 + $k[$j++] = _T8; //#25470 + if (!$1.dontdraw) { //#25470 + $0.renmatrix(); //#25470 + } //#25470 + }; + $0['gs1-cc'] = function() { + var $1 = {}; //#25503 + $1.options = $k[--$j]; //#25505 + $1.barcode = $k[--$j]; //#25506 + $1.parse = false; //#25508 + $1.dontlint = false; //#25509 + $1.dontdraw = false; //#25510 + $1.ccversion = "a"; //#25511 + $1.cccolumns = -1; //#25512 + $1.lintype = ""; //#25513 + $1.linwidth = -1; //#25514 + $forall($1.options, function() { //#25525 + var _3 = $k[--$j]; //#25525 + $1[$k[--$j]] = _3; //#25525 + }); //#25525 + $1.cccolumns = ~~$1.cccolumns; //#25527 + $1.linwidth = ~~$1.linwidth; //#25528 + if ($1.cccolumns == -1) { //#25547 + $k[$j++] = Infinity; //#25545 + $k[$j++] = 'ean13'; //#25538 + $k[$j++] = 4; //#25538 + $k[$j++] = 'upca'; //#25538 + $k[$j++] = 4; //#25538 + $k[$j++] = 'ean8'; //#25538 + $k[$j++] = 3; //#25538 + $k[$j++] = 'upce'; //#25538 + $k[$j++] = 2; //#25538 + $k[$j++] = 'gs1-128'; //#25538 + if ($ne($1.ccversion, "c")) { //#25538 + $k[$j++] = 4; //#25538 + } else { //#25538 + $k[$j++] = ~~(($1.linwidth - 52) / 17); //#25538 + } //#25538 + $k[$j++] = 'databaromni'; //#25545 + $k[$j++] = 4; //#25545 + $k[$j++] = 'databarstacked'; //#25545 + $k[$j++] = 2; //#25545 + $k[$j++] = 'databarstackedomni'; //#25545 + $k[$j++] = 2; //#25545 + $k[$j++] = 'databartruncated'; //#25545 + $k[$j++] = 4; //#25545 + $k[$j++] = 'databarlimited'; //#25545 + $k[$j++] = 3; //#25545 + $k[$j++] = 'databarexpanded'; //#25545 + $k[$j++] = 4; //#25545 + $k[$j++] = 'databarexpandedstacked'; //#25545 + $k[$j++] = 4; //#25545 + $1.cccolumns = $get($d(), $1.lintype); //#25546 + } //#25546 + $1.expand = function() { + var _E = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#25554 + $1.fncvals = _E; //#25555 + $k[$j++] = $1.fncvals; //#25556 + $0.parseinput(); //#25556 + }; //#25557 + $1.ais = $a([]); //#25560 + $1.vals = $a([]); //#25561 + var _I = $1.barcode; //#25562 + $k[$j++] = $geti(_I, 1, _I.length - 1); //#25575 + for (;;) { //#25575 + var _K = $k[--$j]; //#25564 + $k[$j++] = _K; //#25564 + if ($eq(_K, "")) { //#25564 + break; //#25564 + } //#25564 + $search($k[--$j], ")"); //#25565 + $j--; //#25565 + var _M = $k[--$j]; //#25566 + var _N = $k[--$j]; //#25566 + $k[$j++] = _M; //#25566 + $k[$j++] = _N; //#25566 + $j--; //#25566 + var _O = $k[--$j]; //#25567 + var _P = $k[--$j]; //#25567 + $k[$j++] = _O; //#25567 + $search(_P, "("); //#25567 + if ($k[--$j]) { //#25570 + var _R = $k[--$j]; //#25568 + var _S = $k[--$j]; //#25568 + $k[$j++] = _R; //#25568 + $k[$j++] = _S; //#25568 + $j--; //#25568 + var _T = $k[--$j]; //#25568 + var _U = $k[--$j]; //#25568 + var _V = $k[--$j]; //#25568 + $k[$j++] = _U; //#25568 + $k[$j++] = _V; //#25568 + $k[$j++] = _T; //#25568 + } else { //#25570 + var _W = $k[--$j]; //#25570 + var _X = $k[--$j]; //#25570 + $k[$j++] = ""; //#25570 + $k[$j++] = _X; //#25570 + $k[$j++] = _W; //#25570 + } //#25570 + $k[$j++] = Infinity; //#25572 + $aload($1.ais); //#25572 + var _a = $k[$j - 1 - ($counttomark() + 2)]; //#25572 + $k[$j++] = _a; //#25572 + $1.ais = $a(); //#25572 + $k[$j++] = Infinity; //#25573 + $aload($1.vals); //#25573 + var _e = $k[$j - 1 - ($counttomark() + 1)]; //#25573 + $k[$j++] = _e; //#25573 + $1.expand(); //#25573 + $1.vals = $a(); //#25573 + $j -= 2; //#25574 + } //#25574 + $j--; //#25576 + if (!$1.dontlint) { //#25578 + $k[$j++] = $1.ais; //#25578 + $k[$j++] = $1.vals; //#25578 + $0.gs1lint(); //#25578 + $j--; //#25578 + } //#25578 + $1.isupper = function() { + var _j = $k[--$j]; //#25581 + $k[$j++] = (_j >= 65) && (_j <= 90); //#25581 + }; //#25581 + $1.isnum0 = function() { + var _k = $k[--$j]; //#25582 + $k[$j++] = (_k >= 48) && (_k <= 57); //#25582 + }; //#25582 + $1.isnum1 = function() { + var _l = $k[--$j]; //#25583 + $k[$j++] = (_l >= 49) && (_l <= 57); //#25583 + }; //#25583 + for (;;) { //#25629 + if ($1.ais.length >= 1) { //#25591 + if (($eq($get($1.ais, 0), "10") || $eq($get($1.ais, 0), "11")) || $eq($get($1.ais, 0), "17")) { //#25590 + $k[$j++] = -1; //#25589 + $k[$j++] = "10"; //#25589 + break; //#25589 + } //#25589 + } //#25589 + if ($1.ais.length >= 1) { //#25624 + if ($eq($get($1.ais, 0), "90")) { //#25623 + $1.v = $get($1.vals, 0); //#25596 + if ($1.v.length >= 1) { //#25601 + $k[$j++] = $get($1.v, 0); //#25598 + $1.isupper(); //#25598 + if ($k[--$j]) { //#25600 + $k[$j++] = 0; //#25599 + $k[$j++] = "11"; //#25599 + break; //#25599 + } //#25599 + } //#25599 + if ($1.v.length >= 2) { //#25607 + $k[$j++] = $get($1.v, 0); //#25603 + $1.isnum1(); //#25603 + $k[$j++] = $get($1.v, 1); //#25604 + $1.isupper(); //#25604 + var _17 = $k[--$j]; //#25604 + var _18 = $k[--$j]; //#25604 + if ((_18 && _17)) { //#25606 + $k[$j++] = 1; //#25605 + $k[$j++] = "11"; //#25605 + break; //#25605 + } //#25605 + } //#25605 + if ($1.v.length >= 3) { //#25614 + $k[$j++] = $get($1.v, 0); //#25609 + $1.isnum1(); //#25609 + $k[$j++] = $get($1.v, 1); //#25610 + $1.isnum0(); //#25610 + var _1E = $k[--$j]; //#25610 + var _1F = $k[--$j]; //#25610 + $k[$j++] = $an(_1F, _1E); //#25611 + $k[$j++] = $get($1.v, 2); //#25611 + $1.isupper(); //#25611 + var _1I = $k[--$j]; //#25611 + var _1J = $k[--$j]; //#25611 + if ((_1J && _1I)) { //#25613 + $k[$j++] = 2; //#25612 + $k[$j++] = "11"; //#25612 + break; //#25612 + } //#25612 + } //#25612 + if ($1.v.length >= 4) { //#25622 + $k[$j++] = $get($1.v, 0); //#25616 + $1.isnum1(); //#25616 + $k[$j++] = $get($1.v, 1); //#25617 + $1.isnum0(); //#25617 + var _1P = $k[--$j]; //#25617 + var _1Q = $k[--$j]; //#25617 + $k[$j++] = $an(_1Q, _1P); //#25618 + $k[$j++] = $get($1.v, 2); //#25618 + $1.isnum0(); //#25618 + var _1T = $k[--$j]; //#25618 + var _1U = $k[--$j]; //#25618 + $k[$j++] = $an(_1U, _1T); //#25619 + $k[$j++] = $get($1.v, 3); //#25619 + $1.isupper(); //#25619 + var _1X = $k[--$j]; //#25619 + var _1Y = $k[--$j]; //#25619 + if ((_1Y && _1X)) { //#25621 + $k[$j++] = 3; //#25620 + $k[$j++] = "11"; //#25620 + break; //#25620 + } //#25620 + } //#25620 + } //#25620 + } //#25620 + $k[$j++] = -1; //#25627 + $k[$j++] = "0"; //#25627 + break; //#25627 + } //#25627 + $1.method = $k[--$j]; //#25630 + $1.npre = $k[--$j]; //#25631 + $1.fnc1 = -1; //#25633 + $1.lnumeric = -2; //#25633 + $1.lalphanumeric = -3; //#25633 + $1.liso646 = -4; //#25633 + $1.tobin = function() { + var _1c = $s($k[--$j]); //#25636 + $k[$j++] = _1c; //#25636 + for (var _1e = 0, _1d = _1c.length - 1; _1e <= _1d; _1e += 1) { //#25636 + var _1f = $k[--$j]; //#25636 + $put(_1f, _1e, 48); //#25636 + $k[$j++] = _1f; //#25636 + } //#25636 + var _1g = $k[--$j]; //#25637 + var _1j = $cvrs($s(_1g.length), $k[--$j], 2); //#25637 + $puti(_1g, _1g.length - _1j.length, _1j); //#25637 + $k[$j++] = _1g; //#25637 + }; //#25638 + $k[$j++] = Infinity; //#25643 + for (var _1k = 65; _1k <= 90; _1k += 1) { //#25641 + $k[$j++] = _1k; //#25641 + $k[$j++] = _1k - 65; //#25641 + $k[$j++] = 5; //#25641 + $1.tobin(); //#25641 + } //#25641 + for (var _1l = 48; _1l <= 57; _1l += 1) { //#25642 + $k[$j++] = _1l; //#25642 + $k[$j++] = _1l + 4; //#25642 + $k[$j++] = 6; //#25642 + $1.tobin(); //#25642 + } //#25642 + $k[$j++] = $1.fnc1; //#25643 + $k[$j++] = "11111"; //#25643 + $1.alpha = $d(); //#25644 + $k[$j++] = Infinity; //#25656 + for (var _1o = 0; _1o <= 119; _1o += 1) { //#25655 + var _1q = $strcpy($s(2), "00"); //#25648 + var _1s = $cvrs($s(2), _1o, 11); //#25648 + $puti(_1q, 2 - _1s.length, _1s); //#25649 + $k[$j++] = _1o; //#25650 + $k[$j++] = _1q; //#25650 + if ($get(_1q, 0) == 65) { //#25650 + var _1u = $k[--$j]; //#25650 + $put(_1u, 0, 94); //#25650 + $k[$j++] = _1u; //#25650 + } //#25650 + var _1v = $k[--$j]; //#25651 + $k[$j++] = _1v; //#25651 + if ($get(_1v, 1) == 65) { //#25651 + var _1x = $k[--$j]; //#25651 + $put(_1x, 1, 94); //#25651 + $k[$j++] = _1x; //#25651 + } //#25651 + var _1y = $k[--$j]; //#25652 + var _21 = $strcpy($s(7), "0000000"); //#25653 + var _23 = $cvrs($s(7), $f($k[--$j] + 8), 2); //#25653 + $puti(_21, 7 - _23.length, _23); //#25654 + $k[$j++] = _1y; //#25654 + $k[$j++] = _21; //#25654 + } //#25654 + $k[$j++] = $1.lalphanumeric; //#25656 + $k[$j++] = "0000"; //#25656 + $1.numeric = $d(); //#25657 + $k[$j++] = Infinity; //#25666 + for (var _26 = 48; _26 <= 57; _26 += 1) { //#25660 + $k[$j++] = _26; //#25660 + $k[$j++] = _26 - 43; //#25660 + $k[$j++] = 5; //#25660 + $1.tobin(); //#25660 + } //#25660 + $k[$j++] = $1.fnc1; //#25662 + $k[$j++] = "01111"; //#25662 + for (var _28 = 65; _28 <= 90; _28 += 1) { //#25662 + $k[$j++] = _28; //#25662 + $k[$j++] = _28 - 33; //#25662 + $k[$j++] = 6; //#25662 + $1.tobin(); //#25662 + } //#25662 + $k[$j++] = 42; //#25664 + $k[$j++] = "111010"; //#25664 + for (var _29 = 44; _29 <= 47; _29 += 1) { //#25664 + $k[$j++] = _29; //#25664 + $k[$j++] = _29 + 15; //#25664 + $k[$j++] = 6; //#25664 + $1.tobin(); //#25664 + } //#25664 + $k[$j++] = $1.lnumeric; //#25666 + $k[$j++] = "000"; //#25666 + $k[$j++] = $1.liso646; //#25666 + $k[$j++] = "00100"; //#25666 + $1.alphanumeric = $d(); //#25667 + $k[$j++] = Infinity; //#25681 + for (var _2D = 48; _2D <= 57; _2D += 1) { //#25670 + $k[$j++] = _2D; //#25670 + $k[$j++] = _2D - 43; //#25670 + $k[$j++] = 5; //#25670 + $1.tobin(); //#25670 + } //#25670 + $k[$j++] = $1.fnc1; //#25672 + $k[$j++] = "01111"; //#25672 + for (var _2F = 65; _2F <= 90; _2F += 1) { //#25672 + $k[$j++] = _2F; //#25672 + $k[$j++] = _2F - 1; //#25672 + $k[$j++] = 7; //#25672 + $1.tobin(); //#25672 + } //#25672 + for (var _2G = 97; _2G <= 122; _2G += 1) { //#25673 + $k[$j++] = _2G; //#25673 + $k[$j++] = _2G - 7; //#25673 + $k[$j++] = 7; //#25673 + $1.tobin(); //#25673 + } //#25673 + $k[$j++] = 33; //#25676 + $k[$j++] = "11101000"; //#25676 + $k[$j++] = 34; //#25676 + $k[$j++] = "11101001"; //#25676 + for (var _2H = 37; _2H <= 47; _2H += 1) { //#25676 + $k[$j++] = _2H; //#25676 + $k[$j++] = _2H + 197; //#25676 + $k[$j++] = 8; //#25676 + $1.tobin(); //#25676 + } //#25676 + for (var _2I = 58; _2I <= 63; _2I += 1) { //#25677 + $k[$j++] = _2I; //#25677 + $k[$j++] = _2I + 187; //#25677 + $k[$j++] = 8; //#25677 + $1.tobin(); //#25677 + } //#25677 + $k[$j++] = 95; //#25681 + $k[$j++] = "11111011"; //#25681 + $k[$j++] = 32; //#25681 + $k[$j++] = "11111100"; //#25681 + $k[$j++] = $1.lnumeric; //#25681 + $k[$j++] = "000"; //#25681 + $k[$j++] = $1.lalphanumeric; //#25681 + $k[$j++] = "00100"; //#25681 + $1.iso646 = $d(); //#25682 + if ($eq($1.method, "10")) { //#25715 + if ($eq($get($1.ais, 0), "11") || $eq($get($1.ais, 0), "17")) { //#25699 + var _2S = $get($1.vals, 0); //#25686 + var _2X = $strcpy($s(16), "0000000000000000"); //#25690 + var _2Z = $cvrs($s(16), ((~~$z($geti(_2S, 0, 2))) * 384) + ((((~~$z($geti(_2S, 2, 2))) - 1) * 32) + (~~$z($geti(_2S, 4, 2)))), 2); //#25690 + $puti(_2X, 16 - _2Z.length, _2Z); //#25691 + $k[$j++] = _2X; //#25694 + $k[$j++] = Infinity; //#25694 + var _2a = $k[--$j]; //#25693 + var _2b = $k[--$j]; //#25693 + $k[$j++] = _2a; //#25693 + $k[$j++] = 1; //#25693 + $k[$j++] = 0; //#25693 + $forall(_2b, function() { //#25693 + var _2c = $k[--$j]; //#25693 + $k[$j++] = $f(_2c - 48); //#25693 + }); //#25693 + var _2f = $eq($get($1.ais, 0), "11") ? 0 : 1; //#25694 + $k[$j++] = _2f; //#25694 + $1.cdf = $a(); //#25695 + $1.ais = $geti($1.ais, 1, $1.ais.length - 1); //#25696 + $1.vals = $geti($1.vals, 1, $1.vals.length - 1); //#25697 + } else { //#25699 + $1.cdf = $a([1, 0, 1, 1]); //#25699 + } //#25699 + if ($1.ais.length != 0) { //#25712 + if ($eq($get($1.ais, 0), "10")) { //#25708 + $k[$j++] = Infinity; //#25703 + $forall($get($1.vals, 0)); //#25703 + $1.gpf = $a(); //#25703 + if ($1.ais.length > 1) { //#25704 + $k[$j++] = Infinity; //#25704 + $aload($1.gpf); //#25704 + $k[$j++] = $1.fnc1; //#25704 + $1.gpf = $a(); //#25704 + } //#25704 + $1.ais = $geti($1.ais, 1, $1.ais.length - 1); //#25705 + $1.vals = $geti($1.vals, 1, $1.vals.length - 1); //#25706 + } else { //#25708 + $1.gpf = $a([$1.fnc1]); //#25708 + } //#25708 + } else { //#25712 + $k[$j++] = Infinity; //#25711 + $aload($1.cdf); //#25711 + $k[$j++] = 0; //#25711 + $k[$j++] = 0; //#25711 + $k[$j++] = 0; //#25711 + $k[$j++] = 0; //#25711 + $k[$j++] = 0; //#25711 + $k[$j++] = 1; //#25711 + $k[$j++] = 1; //#25711 + $k[$j++] = 1; //#25711 + $k[$j++] = 1; //#25711 + $1.cdf = $a(); //#25711 + $1.gpf = $a([]); //#25712 + } //#25712 + $1.mode = "numeric"; //#25714 + } //#25714 + if ($eq($1.method, "11")) { //#25807 + $1.cdf = $a([1, 1]); //#25718 + $1.ai90 = $get($1.vals, 0); //#25719 + if ($f($1.npre + 1) != $1.ai90.length) { //#25723 + $k[$j++] = $geti($1.ai90, $f($1.npre + 1), $f($f($1.ai90.length - $1.npre) - 1)); //#25721 + } else { //#25723 + $k[$j++] = ""; //#25723 + } //#25723 + $1.ai90rem = $k[--$j]; //#25725 + $k[$j++] = 'nalpha'; //#25726 + $k[$j++] = 0; //#25726 + $forall($1.ai90rem, function() { //#25726 + var _3M = $k[--$j]; //#25726 + if ((_3M >= 65) && (_3M <= 90)) { //#25726 + var _3N = $k[--$j]; //#25726 + $k[$j++] = $f(_3N + 1); //#25726 + } //#25726 + }); //#25726 + var _3O = $k[--$j]; //#25726 + $1[$k[--$j]] = _3O; //#25726 + $k[$j++] = 'nnums'; //#25727 + $k[$j++] = 0; //#25727 + $forall($1.ai90rem, function() { //#25727 + var _3R = $k[--$j]; //#25727 + if ((_3R >= 48) && (_3R <= 57)) { //#25727 + var _3S = $k[--$j]; //#25727 + $k[$j++] = $f(_3S + 1); //#25727 + } //#25727 + }); //#25727 + var _3T = $k[--$j]; //#25727 + $1[$k[--$j]] = _3T; //#25727 + $k[$j++] = 'mode'; //#25728 + if ($gt($1.nalpha, $1.nnums)) { //#25728 + $k[$j++] = "alpha"; //#25728 + } else { //#25728 + if ($1.nalpha == 0) { //#25728 + $k[$j++] = "numeric"; //#25728 + } else { //#25728 + $k[$j++] = "alphanumeric"; //#25728 + } //#25728 + } //#25728 + var _3Y = $k[--$j]; //#25728 + $1[$k[--$j]] = _3Y; //#25728 + if ($f($1.nalpha + $1.nnums) != $1.ai90rem.length) { //#25729 + $1.mode = "alphanumeric"; //#25729 + } //#25729 + $k[$j++] = Infinity; //#25734 + $aload($1.cdf); //#25731 + if ($eq($1.mode, "alphanumeric")) { //#25732 + $k[$j++] = 0; //#25732 + } //#25732 + if ($eq($1.mode, "numeric")) { //#25733 + $k[$j++] = 1; //#25733 + $k[$j++] = 0; //#25733 + } //#25733 + if ($eq($1.mode, "alpha")) { //#25734 + $k[$j++] = 1; //#25734 + $k[$j++] = 1; //#25734 + } //#25734 + $1.cdf = $a(); //#25734 + $k[$j++] = 'ais1'; //#25736 + if ($1.ais.length > 1) { //#25736 + $k[$j++] = $get($1.ais, 1); //#25736 + } else { //#25736 + $k[$j++] = -1; //#25736 + } //#25736 + var _3l = $k[--$j]; //#25736 + $1[$k[--$j]] = _3l; //#25736 + $k[$j++] = 'vals1'; //#25737 + if ($1.vals.length > 1) { //#25737 + $k[$j++] = $get($1.vals, 1); //#25737 + } else { //#25737 + $k[$j++] = -1; //#25737 + } //#25737 + var _3q = $k[--$j]; //#25737 + $1[$k[--$j]] = _3q; //#25737 + if ($eq($1.ais1, "21") || $eq($1.ais1, "8004")) { //#25741 + $k[$j++] = Infinity; //#25739 + $aload($1.cdf); //#25739 + if ($eq($1.ais1, "21")) { //#25739 + $k[$j++] = 1; //#25739 + $k[$j++] = 0; //#25739 + } else { //#25739 + $k[$j++] = 1; //#25739 + $k[$j++] = 1; //#25739 + } //#25739 + $1.cdf = $a(); //#25739 + } else { //#25741 + $k[$j++] = Infinity; //#25741 + $aload($1.cdf); //#25741 + $k[$j++] = 0; //#25741 + $1.cdf = $a(); //#25741 + } //#25741 + $k[$j++] = 'nval'; //#25743 + if ($1.npre != 0) { //#25743 + $k[$j++] = ~~$z($geti($1.ai90, 0, $1.npre)); //#25743 + } else { //#25743 + $k[$j++] = 0; //#25743 + } //#25743 + var _43 = $k[--$j]; //#25743 + $1[$k[--$j]] = _43; //#25743 + $search("BDHIJKLNPQRSTVXZ", $geti($1.ai90, $1.npre, 1)); //#25744 + if ($k[--$j]) { //#25748 + var _49 = $k[--$j]; //#25745 + var _4A = $k[--$j]; //#25745 + $k[$j++] = _49.length; //#25745 + $k[$j++] = _4A; //#25745 + $j--; //#25745 + var _4B = $k[--$j]; //#25745 + var _4C = $k[--$j]; //#25745 + $k[$j++] = _4B; //#25745 + $k[$j++] = _4C; //#25745 + $j--; //#25745 + $1.aval = $k[--$j]; //#25746 + } else { //#25748 + $j--; //#25748 + $1.aval = -1; //#25748 + } //#25748 + if (($1.nval < 31) && ($1.aval != -1)) { //#25774 + var _4H = $strcpy($s(5), "00000"); //#25751 + var _4K = $cvrs($s(5), $1.nval, 2); //#25751 + $puti(_4H, 5 - _4K.length, _4K); //#25752 + $k[$j++] = _4H; //#25753 + $k[$j++] = Infinity; //#25753 + var _4L = $k[--$j]; //#25753 + var _4M = $k[--$j]; //#25753 + $k[$j++] = _4L; //#25753 + $forall(_4M, function() { //#25753 + var _4N = $k[--$j]; //#25753 + $k[$j++] = $f(_4N - 48); //#25753 + }); //#25753 + $1.nbits = $a(); //#25753 + var _4Q = $strcpy($s(4), "0000"); //#25754 + var _4T = $cvrs($s(4), $1.aval, 2); //#25754 + $puti(_4Q, 4 - _4T.length, _4T); //#25755 + $k[$j++] = _4Q; //#25756 + $k[$j++] = Infinity; //#25756 + var _4U = $k[--$j]; //#25756 + var _4V = $k[--$j]; //#25756 + $k[$j++] = _4U; //#25756 + $forall(_4V, function() { //#25756 + var _4W = $k[--$j]; //#25756 + $k[$j++] = $f(_4W - 48); //#25756 + }); //#25756 + $1.abits = $a(); //#25756 + $k[$j++] = Infinity; //#25760 + $aload($1.cdf); //#25758 + $aload($1.nbits); //#25759 + $aload($1.abits); //#25760 + $1.cdf = $a(); //#25760 + } else { //#25774 + var _4d = $strcpy($s(10), "0000000000"); //#25763 + var _4g = $cvrs($s(10), $1.nval, 2); //#25763 + $puti(_4d, 10 - _4g.length, _4g); //#25764 + $k[$j++] = _4d; //#25765 + $k[$j++] = Infinity; //#25765 + var _4h = $k[--$j]; //#25765 + var _4i = $k[--$j]; //#25765 + $k[$j++] = _4h; //#25765 + $forall(_4i, function() { //#25765 + var _4j = $k[--$j]; //#25765 + $k[$j++] = $f(_4j - 48); //#25765 + }); //#25765 + $1.nbits = $a(); //#25765 + var _4m = $strcpy($s(5), "00000"); //#25766 + var _4r = $cvrs($s(5), $f($get($1.ai90, $1.npre) - 65), 2); //#25766 + $puti(_4m, 5 - _4r.length, _4r); //#25767 + $k[$j++] = _4m; //#25768 + $k[$j++] = Infinity; //#25768 + var _4s = $k[--$j]; //#25768 + var _4t = $k[--$j]; //#25768 + $k[$j++] = _4s; //#25768 + $forall(_4t, function() { //#25768 + var _4u = $k[--$j]; //#25768 + $k[$j++] = $f(_4u - 48); //#25768 + }); //#25768 + $1.abits = $a(); //#25768 + $k[$j++] = Infinity; //#25773 + $aload($1.cdf); //#25770 + $k[$j++] = 1; //#25772 + $k[$j++] = 1; //#25772 + $k[$j++] = 1; //#25772 + $k[$j++] = 1; //#25772 + $k[$j++] = 1; //#25772 + $aload($1.nbits); //#25772 + $aload($1.abits); //#25773 + $1.cdf = $a(); //#25773 + } //#25774 + if ($ne($1.mode, "alpha")) { //#25792 + $k[$j++] = Infinity; //#25777 + $forall($1.ai90rem); //#25777 + if ($1.ais.length > 1) { //#25777 + $k[$j++] = $1.fnc1; //#25777 + } //#25777 + $1.gpf = $a(); //#25777 + } else { //#25792 + $k[$j++] = Infinity; //#25779 + $forall($1.ai90rem); //#25779 + if ($1.ais.length > 1) { //#25779 + $k[$j++] = $1.fnc1; //#25779 + } //#25779 + $1.in = $a(); //#25779 + $1.out = $a($1.in.length * 6); //#25780 + $1.j = 0; //#25781 + for (var _5D = 0, _5C = $1.in.length - 1; _5D <= _5C; _5D += 1) { //#25786 + var _5H = $get($1.alpha, $get($1.in, _5D)); //#25783 + $k[$j++] = _5H; //#25784 + $k[$j++] = _5H; //#25784 + $k[$j++] = Infinity; //#25784 + var _5I = $k[--$j]; //#25784 + var _5J = $k[--$j]; //#25784 + $k[$j++] = _5I; //#25784 + $forall(_5J, function() { //#25784 + var _5K = $k[--$j]; //#25784 + $k[$j++] = $f(_5K - 48); //#25784 + }); //#25784 + $puti($1.out, $1.j, $a()); //#25784 + $1.j = $k[--$j].length + $1.j; //#25785 + } //#25785 + $k[$j++] = Infinity; //#25789 + $aload($1.cdf); //#25788 + $aload($geti($1.out, 0, $1.j)); //#25789 + $1.cdf = $a(); //#25789 + $1.gpf = $a([]); //#25791 + if ($1.ais.length > 1) { //#25792 + $1.mode = "numeric"; //#25792 + } //#25792 + } //#25792 + $1.ais = $geti($1.ais, 1, $1.ais.length - 1); //#25794 + $1.vals = $geti($1.vals, 1, $1.vals.length - 1); //#25795 + if ($1.ais.length != 0) { //#25806 + if ($eq($1.ais1, "21") || $eq($1.ais1, "8004")) { //#25805 + $k[$j++] = Infinity; //#25800 + $aload($1.gpf); //#25799 + $forall($1.vals1); //#25800 + $1.gpf = $a(); //#25800 + $1.ais = $geti($1.ais, 1, $1.ais.length - 1); //#25802 + $1.vals = $geti($1.vals, 1, $1.vals.length - 1); //#25803 + if ($1.ais.length != 0) { //#25804 + $k[$j++] = Infinity; //#25804 + $aload($1.gpf); //#25804 + $k[$j++] = $1.fnc1; //#25804 + $1.gpf = $a(); //#25804 + } //#25804 + } //#25804 + } //#25804 + } //#25804 + if ($eq($1.method, "0")) { //#25813 + $1.cdf = $a([0]); //#25810 + $1.gpf = $a([]); //#25811 + $1.mode = "numeric"; //#25812 + } //#25812 + $1.aifixed = new Map; //#25818 + $k[$j++] = Infinity; //#25820 + for (var _5w = 0; _5w <= 4; _5w += 1) { //#25820 + $k[$j++] = _5w; //#25820 + } //#25820 + var _5x = $a(); //#25820 + for (var _5y = 0, _5z = _5x.length; _5y < _5z; _5y++) { //#25823 + var _62 = $strcpy($s(2), "00"); //#25822 + $put(_62, 1, $f($get(_5x, _5y) + 48)); //#25822 + $put($1.aifixed, _62, _62); //#25822 + } //#25822 + $k[$j++] = Infinity; //#25828 + for (var _64 = 11; _64 <= 20; _64 += 1) { //#25825 + $k[$j++] = _64; //#25825 + } //#25825 + $k[$j++] = 23; //#25827 + for (var _65 = 31; _65 <= 36; _65 += 1) { //#25827 + $k[$j++] = _65; //#25827 + } //#25827 + $k[$j++] = 41; //#25828 + var _66 = $a(); //#25828 + for (var _67 = 0, _68 = _66.length; _67 < _68; _67++) { //#25831 + var _6B = $cvrs($s(2), $get(_66, _67), 10); //#25830 + $put($1.aifixed, _6B, _6B); //#25830 + } //#25830 + for (var _6F = 0, _6E = $1.ais.length - 1; _6F <= _6E; _6F += 1) { //#25849 + $1.i = _6F; //#25835 + $1.ai = $get($1.ais, $1.i); //#25836 + $1.val = $get($1.vals, $1.i); //#25837 + var _6P = $a(($1.gpf.length + $1.ai.length) + $1.val.length); //#25838 + $puti(_6P, 0, $1.gpf); //#25839 + $k[$j++] = _6P; //#25840 + $k[$j++] = _6P; //#25840 + $k[$j++] = $1.gpf.length; //#25840 + $k[$j++] = $1.ai; //#25840 + $k[$j++] = Infinity; //#25840 + var _6T = $k[--$j]; //#25840 + var _6U = $k[--$j]; //#25840 + $k[$j++] = _6T; //#25840 + $forall(_6U); //#25840 + var _6V = $a(); //#25840 + var _6W = $k[--$j]; //#25840 + $puti($k[--$j], _6W, _6V); //#25840 + var _6Y = $k[--$j]; //#25841 + $k[$j++] = _6Y; //#25841 + $k[$j++] = _6Y; //#25841 + $k[$j++] = $1.gpf.length + $1.ai.length; //#25841 + $k[$j++] = $1.val; //#25841 + $k[$j++] = Infinity; //#25841 + var _6c = $k[--$j]; //#25841 + var _6d = $k[--$j]; //#25841 + $k[$j++] = _6c; //#25841 + $forall(_6d); //#25841 + var _6e = $a(); //#25841 + var _6f = $k[--$j]; //#25841 + $puti($k[--$j], _6f, _6e); //#25841 + $1.gpf = $k[--$j]; //#25842 + var _6n = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; //#25843 + if (($1.i != ($1.ais.length - 1)) && (!_6n)) { //#25848 + var _6p = $a($1.gpf.length + 1); //#25844 + $puti(_6p, 0, $1.gpf); //#25845 + $put(_6p, $1.gpf.length, $1.fnc1); //#25846 + $1.gpf = _6p; //#25847 + } //#25847 + } //#25847 + $1.rembits = function() { + $1.used = $k[--$j]; //#25853 + if ($ne($1.ccversion, "c")) { //#25885 + var _73 = new Map([ + ["a", $a([$a([167, 138, 118, 108, 88, 78, 59]), $a([167, 138, 118, 98, 78]), $a([197, 167, 138, 108, 78])])], + ["b", $a([$a([336, 296, 256, 208, 160, 104, 56]), $a([768, 648, 536, 416, 304, 208, 152, 112, 72, 32]), $a([1184, 1016, 840, 672, 496, 352, 264, 208, 152, 96, 56])])] + ]); //#25864 + $1.bitcaps = $get($get(_73, $1.ccversion), $f($1.cccolumns - 2)); //#25866 + $k[$j++] = -1; //#25867 + $forall($1.bitcaps, function() { //#25867 + var _79 = $k[--$j]; //#25867 + $k[$j++] = _79; //#25867 + if ($ge(_79, $1.used)) { //#25867 + var _7B = $k[--$j]; //#25867 + var _7C = $k[--$j]; //#25867 + $k[$j++] = _7B; //#25867 + $k[$j++] = _7C; //#25867 + } //#25867 + $j--; //#25867 + }); //#25867 + var _7D = $k[--$j]; //#25868 + $k[$j++] = _7D; //#25868 + if (_7D != -1) { //#25868 + var _7F = $k[--$j]; //#25868 + $k[$j++] = $f(_7F - $1.used); //#25868 + } //#25868 + } else { //#25885 + var _7G = new Map([ + ["c", -1] + ]); //#25870 + var _7I = $get(_7G, $1.ccversion); //#25870 + var _7K = ~~Math.ceil($1.used / 8); //#25871 + $1.m = ((~~(_7K / 6)) * 5) + (_7K % 6); //#25871 + if ($1.m <= 40) { //#25872 + $k[$j++] = 8; //#25872 + } //#25872 + if (($1.m >= 41) && ($1.m <= 160)) { //#25873 + $k[$j++] = 16; //#25873 + } //#25873 + if (($1.m >= 161) && ($1.m <= 320)) { //#25874 + $k[$j++] = 32; //#25874 + } //#25874 + if (($1.m >= 321) && ($1.m <= 833)) { //#25875 + $k[$j++] = 64; //#25875 + } //#25875 + if ($1.m >= 834) { //#25876 + $k[$j++] = 32; //#25876 + } //#25876 + $1.eccws = $k[--$j]; //#25877 + $1.m = $f($f($1.m + $1.eccws) + 3); //#25878 + for (;;) { //#25882 + if (((~~Math.ceil($1.m / $1.cccolumns)) <= 30) || ($1.cccolumns >= 30)) { //#25880 + break; //#25880 + } //#25880 + $1.cccolumns = $f($1.cccolumns + 1); //#25881 + } //#25881 + $1.r = ~~Math.ceil($1.m / $1.cccolumns); //#25883 + var _7f = $f(($f(($1.cccolumns * $1.r) - $1.eccws)) - 3); //#25884 + $1.tgt = ($f(((~~(_7f / 5)) * 6) + (_7f % 5))) * 8; //#25884 + if ($1.used <= 8304) { //#25885 + $k[$j++] = $f($1.tgt - $1.used); //#25885 + } else { //#25885 + $k[$j++] = -1; //#25885 + } //#25885 + } //#25885 + var _7j = $k[--$j]; //#25887 + $k[$j++] = _7j; //#25900 + if (_7j == -1) { //#25900 + $j--; //#25888 + if ($eq($1.ccversion, "a")) { //#25896 + $1.ccversion = "b"; //#25890 + } else { //#25896 + if ($eq($1.ccversion, "b") && $eq($1.lintype, "gs1-128")) { //#25896 + $1.ccversion = "c"; //#25893 + $1.cccolumns = ~~(($1.linwidth - 52) / 17); //#25894 + } else { //#25896 + $1.ccversion = -1; //#25896 + } //#25896 + } //#25896 + $k[$j++] = $1.used; //#25899 + $1.rembits(); //#25899 + } //#25899 + }; //#25901 + $1.encode = function() { + var _7p = $k[--$j]; //#25904 + $k[$j++] = _7p; //#25904 + if ($ne(_7p, 'raw')) { //#25904 + var _7q = $k[--$j]; //#25904 + var _7s = $get(_7q, $k[--$j]); //#25904 + $k[$j++] = _7s; //#25904 + } else { //#25904 + $j--; //#25904 + } //#25904 + $k[$j++] = Infinity; //#25905 + var _7t = $k[--$j]; //#25905 + var _7u = $k[--$j]; //#25905 + $k[$j++] = _7t; //#25905 + $forall(_7u, function() { //#25905 + var _7v = $k[--$j]; //#25905 + $k[$j++] = $f(_7v - 48); //#25905 + }); //#25905 + var _7w = $a(); //#25905 + $puti($1.gpfenc, $1.j, _7w); //#25907 + $1.j = _7w.length + $1.j; //#25908 + }; //#25909 + $k[$j++] = Infinity; //#25912 + for (var _81 = 0, _82 = $1.gpf.length; _81 < _82; _81++) { //#25912 + $k[$j++] = 0; //#25912 + } //#25912 + $k[$j++] = 0; //#25912 + $k[$j++] = -1; //#25912 + $1.numericruns = $a(); //#25912 + $k[$j++] = Infinity; //#25913 + for (var _85 = 0, _86 = $1.gpf.length; _85 < _86; _85++) { //#25913 + $k[$j++] = 0; //#25913 + } //#25913 + $k[$j++] = 0; //#25913 + $1.alphanumericruns = $a(); //#25913 + $k[$j++] = Infinity; //#25914 + for (var _89 = 0, _8A = $1.gpf.length; _89 < _8A; _89++) { //#25914 + $k[$j++] = 0; //#25914 + } //#25914 + $k[$j++] = 9999; //#25914 + $1.nextiso646only = $a(); //#25914 + for (var _8D = $1.gpf.length - 1; _8D >= 0; _8D -= 1) { //#25936 + $1.i = _8D; //#25916 + var _8I = $strcpy($s(2), "00"); //#25918 + var _8L = $get($1.gpf, $1.i); //#25919 + $k[$j++] = $get($1.gpf, $1.i); //#25919 + $k[$j++] = _8I; //#25919 + $k[$j++] = _8I; //#25919 + $k[$j++] = 0; //#25919 + $k[$j++] = _8L; //#25919 + if (_8L == $1.fnc1) { //#25919 + $j--; //#25919 + $k[$j++] = 94; //#25919 + } //#25919 + var _8N = $k[--$j]; //#25919 + var _8O = $k[--$j]; //#25919 + $put($k[--$j], _8O, _8N); //#25919 + if ($1.i < ($1.gpf.length - 1)) { //#25920 + var _8S = $k[--$j]; //#25920 + var _8V = $get($1.gpf, $1.i + 1); //#25920 + $k[$j++] = _8S; //#25920 + $k[$j++] = _8S; //#25920 + $k[$j++] = 1; //#25920 + $k[$j++] = _8V; //#25920 + if (_8V == $1.fnc1) { //#25920 + $j--; //#25920 + $k[$j++] = 94; //#25920 + } //#25920 + var _8X = $k[--$j]; //#25920 + var _8Y = $k[--$j]; //#25920 + $put($k[--$j], _8Y, _8X); //#25920 + } //#25920 + var _8c = $get($1.numeric, $k[--$j]) !== undefined; //#25921 + if (_8c) { //#25924 + $put($1.numericruns, $1.i, $f($get($1.numericruns, $1.i + 2) + 2)); //#25922 + } else { //#25924 + $put($1.numericruns, $1.i, 0); //#25924 + } //#25924 + var _8k = $k[--$j]; //#25926 + var _8m = $get($1.alphanumeric, _8k) !== undefined; //#25926 + $k[$j++] = _8k; //#25930 + if (_8m) { //#25929 + $put($1.alphanumericruns, $1.i, $f($get($1.alphanumericruns, $1.i + 1) + 1)); //#25927 + } else { //#25929 + $put($1.alphanumericruns, $1.i, 0); //#25929 + } //#25929 + var _8u = $k[--$j]; //#25931 + var _8w = $get($1.iso646, _8u) !== undefined; //#25931 + var _8y = $get($1.alphanumeric, _8u) !== undefined; //#25931 + if (_8w && (!_8y)) { //#25934 + $put($1.nextiso646only, $1.i, 0); //#25932 + } else { //#25934 + $put($1.nextiso646only, $1.i, $f($get($1.nextiso646only, $1.i + 1) + 1)); //#25934 + } //#25934 + } //#25934 + $1.gpfenc = $a(8304); //#25939 + $1.i = 0; //#25940 + $1.j = 0; //#25940 + for (;;) { //#26030 + if ($1.i == $1.gpf.length) { //#25942 + break; //#25942 + } //#25942 + for (;;) { //#26029 + if ($eq($1.mode, "numeric")) { //#25978 + if ($1.i <= ($1.gpf.length - 2)) { //#25975 + var _9C = $s(2); //#25947 + var _9F = $get($1.gpf, $1.i); //#25948 + $k[$j++] = _9C; //#25948 + $k[$j++] = _9C; //#25948 + $k[$j++] = 0; //#25948 + $k[$j++] = _9F; //#25948 + if (_9F == $1.fnc1) { //#25948 + $j--; //#25948 + $k[$j++] = 94; //#25948 + } //#25948 + var _9H = $k[--$j]; //#25948 + var _9I = $k[--$j]; //#25948 + $put($k[--$j], _9I, _9H); //#25948 + var _9K = $k[--$j]; //#25949 + var _9N = $get($1.gpf, $1.i + 1); //#25949 + $k[$j++] = _9K; //#25949 + $k[$j++] = _9K; //#25949 + $k[$j++] = 1; //#25949 + $k[$j++] = _9N; //#25949 + if (_9N == $1.fnc1) { //#25949 + $j--; //#25949 + $k[$j++] = 94; //#25949 + } //#25949 + var _9P = $k[--$j]; //#25949 + var _9Q = $k[--$j]; //#25949 + $put($k[--$j], _9Q, _9P); //#25949 + var _9S = $k[--$j]; //#25950 + var _9U = $get($1.numeric, _9S) !== undefined; //#25950 + $k[$j++] = _9S; //#25954 + if (_9U) { //#25954 + $k[$j++] = $1.numeric; //#25951 + $1.encode(); //#25951 + $1.i = $1.i + 2; //#25952 + break; //#25953 + } //#25953 + $j--; //#25955 + $k[$j++] = $1.lalphanumeric; //#25956 + $k[$j++] = $1.numeric; //#25956 + $1.encode(); //#25956 + $1.mode = "alphanumeric"; //#25957 + break; //#25958 + } else { //#25975 + var _9b = $get($1.gpf, $1.i); //#25960 + if ((_9b < 48) || (_9b > 57)) { //#25964 + $k[$j++] = $1.lalphanumeric; //#25961 + $k[$j++] = $1.numeric; //#25961 + $1.encode(); //#25961 + $1.mode = "alphanumeric"; //#25962 + break; //#25963 + } //#25963 + $k[$j++] = 'rem'; //#25965 + $k[$j++] = $1.cdf.length + $1.j; //#25965 + $1.rembits(); //#25965 + var _9g = $k[--$j]; //#25965 + $1[$k[--$j]] = _9g; //#25965 + if (($1.rem >= 4) && ($1.rem <= 6)) { //#25975 + var _9n = $geti($strcpy($s(6), "000000"), 0, $1.rem); //#25967 + var _9s = $cvrs($s(4), $f($get($1.gpf, $1.i) - 47), 2); //#25968 + $puti(_9n, 4 - _9s.length, _9s); //#25969 + $k[$j++] = _9n; //#25969 + $k[$j++] = 'raw'; //#25969 + $1.encode(); //#25969 + $1.i = $1.i + 1; //#25970 + break; //#25971 + } else { //#25975 + var _9u = $s(2); //#25973 + $put(_9u, 0, $get($1.gpf, $1.i)); //#25973 + $put(_9u, 1, 94); //#25973 + $k[$j++] = _9u; //#25973 + $k[$j++] = $1.numeric; //#25973 + $1.encode(); //#25973 + $1.i = $1.i + 1; //#25974 + break; //#25975 + } //#25975 + } //#25975 + } //#25975 + if ($eq($1.mode, "alphanumeric")) { //#26005 + if ($get($1.gpf, $1.i) == $1.fnc1) { //#25986 + $k[$j++] = $1.fnc1; //#25982 + $k[$j++] = $1.alphanumeric; //#25982 + $1.encode(); //#25982 + $1.mode = "numeric"; //#25983 + $1.i = $1.i + 1; //#25984 + break; //#25985 + } //#25985 + var _AA = $get($1.gpf, $1.i); //#25987 + var _AC = $get($1.iso646, _AA) !== undefined; //#25987 + var _AE = $get($1.alphanumeric, _AA) !== undefined; //#25987 + if (_AC && (!_AE)) { //#25991 + $k[$j++] = $1.liso646; //#25988 + $k[$j++] = $1.alphanumeric; //#25988 + $1.encode(); //#25988 + $1.mode = "iso646"; //#25989 + break; //#25990 + } //#25990 + if ($get($1.numericruns, $1.i) >= 6) { //#25996 + $k[$j++] = $1.lnumeric; //#25993 + $k[$j++] = $1.alphanumeric; //#25993 + $1.encode(); //#25993 + $1.mode = "numeric"; //#25994 + break; //#25995 + } //#25995 + var _AO = $get($1.numericruns, $1.i); //#25997 + if ((_AO >= 4) && ($f(_AO + $1.i) == $1.gpf.length)) { //#26001 + $k[$j++] = $1.lnumeric; //#25998 + $k[$j++] = $1.alphanumeric; //#25998 + $1.encode(); //#25998 + $1.mode = "numeric"; //#25999 + break; //#26000 + } //#26000 + $k[$j++] = $get($1.gpf, $1.i); //#26002 + $k[$j++] = $1.alphanumeric; //#26002 + $1.encode(); //#26002 + $1.i = $1.i + 1; //#26003 + break; //#26004 + } //#26004 + if ($eq($1.mode, "iso646")) { //#26027 + if ($get($1.gpf, $1.i) == $1.fnc1) { //#26013 + $k[$j++] = $1.fnc1; //#26009 + $k[$j++] = $1.iso646; //#26009 + $1.encode(); //#26009 + $1.mode = "numeric"; //#26010 + $1.i = $1.i + 1; //#26011 + break; //#26012 + } //#26012 + if (($get($1.numericruns, $1.i) >= 4) && ($get($1.nextiso646only, $1.i) >= 10)) { //#26018 + $k[$j++] = $1.lnumeric; //#26015 + $k[$j++] = $1.iso646; //#26015 + $1.encode(); //#26015 + $1.mode = "numeric"; //#26016 + break; //#26017 + } //#26017 + if (($get($1.alphanumericruns, $1.i) >= 5) && ($get($1.nextiso646only, $1.i) >= 10)) { //#26023 + $k[$j++] = $1.lalphanumeric; //#26020 + $k[$j++] = $1.iso646; //#26020 + $1.encode(); //#26020 + $1.mode = "alphanumeric"; //#26021 + break; //#26022 + } //#26022 + $k[$j++] = $get($1.gpf, $1.i); //#26024 + $k[$j++] = $1.iso646; //#26024 + $1.encode(); //#26024 + $1.i = $1.i + 1; //#26025 + break; //#26026 + } //#26026 + } //#26026 + } //#26026 + $1.gpf = $geti($1.gpfenc, 0, $1.j); //#26031 + $k[$j++] = 'pad'; //#26034 + $k[$j++] = $1.cdf.length + $1.gpf.length; //#26034 + $1.rembits(); //#26034 + var _B7 = $a($k[--$j]); //#26034 + $1[$k[--$j]] = _B7; //#26034 + if ($1.pad.length > 0) { //#26046 + for (var _BC = 0, _BB = $1.pad.length - 1; _BC <= _BB; _BC += 5) { //#26039 + $1.i = _BC; //#26037 + var _BD = $1.pad; //#26038 + var _BE = $1.i; //#26038 + var _BF = $a([0, 0, 1, 0, 0]); //#26038 + var _BG = $1.pad; //#26038 + var _BH = $1.i; //#26038 + var _BI = 5; //#26038 + var _BJ = _BG.length - _BH; //#26038 + if ((_BG.length - _BH) > 5) { //#26038 + var _ = _BI; //#26038 + _BI = _BJ; //#26038 + _BJ = _; //#26038 + } //#26038 + $puti(_BD, _BE, $geti(_BF, 0, _BJ)); //#26038 + } //#26038 + if ($eq($1.mode, "numeric")) { //#26042 + $k[$j++] = Infinity; //#26041 + $k[$j++] = 0; //#26041 + $k[$j++] = 0; //#26041 + $k[$j++] = 0; //#26041 + $k[$j++] = 0; //#26041 + $aload($1.pad); //#26041 + $1.pad = $geti($a(), 0, $1.pad.length); //#26041 + } //#26041 + if ($eq($1.mode, "alpha")) { //#26045 + $k[$j++] = Infinity; //#26044 + $k[$j++] = 1; //#26044 + $k[$j++] = 1; //#26044 + $k[$j++] = 1; //#26044 + $k[$j++] = 1; //#26044 + $k[$j++] = 1; //#26044 + $k[$j++] = 0; //#26044 + $k[$j++] = 0; //#26044 + $k[$j++] = 0; //#26044 + $k[$j++] = 0; //#26044 + $aload($1.pad); //#26044 + $1.pad = $geti($a(), 0, $1.pad.length); //#26044 + } //#26044 + } //#26044 + $k[$j++] = Infinity; //#26052 + $aload($1.cdf); //#26050 + $aload($1.gpf); //#26051 + $aload($1.pad); //#26052 + $1.bits = $a(); //#26052 + if ($1.ccversion == "a") { //#26109 + $k[$j++] = Infinity; //#26058 + $k[$j++] = $a([0, 0, 0, 0, 0, 0, 1]); //#26058 + for (var _Bb = 0, _Bc = 68; _Bb < _Bc; _Bb++) { //#26058 + $k[$j++] = $a(7); //#26058 + } //#26058 + $1.pwr928 = $a(); //#26058 + for (var _Bf = 1; _Bf <= 68; _Bf += 1) { //#26069 + $1.j = _Bf; //#26061 + $1.v = 0; //#26062 + for (var _Bg = 6; _Bg >= 1; _Bg -= 1) { //#26067 + $1.i = _Bg; //#26064 + $1.v = $f(($get($get($1.pwr928, $1.j - 1), $1.i) * 2) + (~~($1.v / 928))); //#26065 + $put($get($1.pwr928, $1.j), $1.i, $1.v % 928); //#26066 + } //#26066 + $put($get($1.pwr928, $1.j), 0, $f(($get($get($1.pwr928, $1.j - 1), 0) * 2) + (~~($1.v / 928)))); //#26068 + } //#26068 + $k[$j++] = Infinity; //#26070 + for (var _C0 = 0, _C1 = 28; _C0 < _C1; _C0++) { //#26070 + $k[$j++] = 0; //#26070 + } //#26070 + $1.cws = $a(); //#26070 + $1.b = 0; //#26071 + $1.c = 0; //#26071 + for (;;) { //#26095 + if ($1.b == $1.bits.length) { //#26073 + break; //#26073 + } //#26073 + var _C5 = $1.bits; //#26074 + var _C6 = $1.b; //#26074 + var _C7 = $1.bits; //#26074 + var _C8 = $1.b; //#26074 + var _C9 = _C7.length - _C8; //#26074 + var _CA = 69; //#26074 + if (69 > (_C7.length - _C8)) { //#26074 + var _ = _C9; //#26074 + _C9 = _CA; //#26074 + _CA = _; //#26074 + } //#26074 + $1.bs = $geti(_C5, _C6, _CA); //#26074 + $1.bsl = $1.bs.length; //#26075 + $1.cs = $geti($1.cws, $1.c, (~~($1.bsl / 10)) + 1); //#26076 + $1.csl = $1.cs.length; //#26077 + for (var _CK = 0, _CJ = $1.bsl - 1; _CK <= _CJ; _CK += 1) { //#26087 + $1.i = _CK; //#26079 + for (var _CN = 0, _CM = $1.csl - 1; _CN <= _CM; _CN += 1) { //#26086 + $1.j = _CN; //#26081 + var _CO = $1.cs; //#26082 + var _CP = $1.j; //#26082 + $put(_CO, _CP, $f($get(_CO, _CP) + ($get($get($1.pwr928, $1.i), ($1.j + 7) - $1.csl) * $get($1.bs, ($1.bsl - $1.i) - 1)))); //#26085 + } //#26085 + } //#26085 + for (var _Cc = $1.csl - 1; _Cc >= 1; _Cc -= 1) { //#26092 + $1.i = _Cc; //#26089 + var _Cd = $1.cs; //#26090 + var _Ce = $1.i; //#26090 + $put(_Cd, _Ce - 1, $f($get(_Cd, _Ce - 1) + (~~($get($1.cs, $1.i) / 928)))); //#26090 + var _Cj = $1.cs; //#26091 + var _Ck = $1.i; //#26091 + $put(_Cj, _Ck, $get(_Cj, _Ck) % 928); //#26091 + } //#26091 + $1.b = $1.b + $1.bsl; //#26093 + $1.c = $1.c + $1.csl; //#26094 + } //#26094 + $1.cws = $geti($1.cws, 0, $1.c); //#26096 + $1.barcode = $s($1.cws.length * 4); //#26097 + for (var _Cx = 0, _Cw = $1.cws.length - 1; _Cx <= _Cw; _Cx += 1) { //#26103 + $1.i = _Cx; //#26099 + var _Cz = $strcpy($s(4), "^ "); //#26100 + var _D4 = $cvrs($s(4), $get($1.cws, $1.i), 10); //#26100 + $puti(_Cz, 4 - _D4.length, _D4); //#26101 + $puti($1.barcode, $1.i * 4, _Cz); //#26102 + } //#26102 + delete $1.options["parse"]; //#26104 + $put($1.options, "dontdraw", true); //#26105 + $put($1.options, "cca", true); //#26106 + $put($1.options, "columns", $1.cccolumns); //#26107 + $k[$j++] = 'args'; //#26108 + $k[$j++] = $1.barcode; //#26108 + $k[$j++] = $1.options; //#26108 + $0.micropdf417(); //#26108 + var _DE = $k[--$j]; //#26108 + $1[$k[--$j]] = _DE; //#26108 + } //#26108 + if ($1.ccversion == "b") { //#26123 + $1.barcode = $s(~~($1.bits.length / 8)); //#26112 + for (var _DL = 0, _DK = $1.barcode.length - 1; _DL <= _DK; _DL += 1) { //#26117 + $1.i = _DL; //#26114 + var _DO = $geti($1.bits, $1.i * 8, 8); //#26115 + $k[$j++] = 0; //#26115 + for (var _DP = 0, _DQ = _DO.length; _DP < _DQ; _DP++) { //#26115 + var _DS = $k[--$j]; //#26115 + $k[$j++] = $f(_DS + $get(_DO, _DP)) * 2; //#26115 + } //#26115 + $put($1.barcode, $1.i, ~~($k[--$j] / 2)); //#26116 + } //#26116 + delete $1.options["parse"]; //#26118 + $put($1.options, "dontdraw", true); //#26119 + $put($1.options, "ccb", true); //#26120 + $put($1.options, "columns", $1.cccolumns); //#26121 + $k[$j++] = 'args'; //#26122 + $k[$j++] = $1.barcode; //#26122 + $k[$j++] = $1.options; //#26122 + $0.micropdf417(); //#26122 + var _Dd = $k[--$j]; //#26122 + $1[$k[--$j]] = _Dd; //#26122 + } //#26122 + if ($1.ccversion == "c") { //#26138 + $1.barcode = $s(~~($1.bits.length / 8)); //#26126 + for (var _Dk = 0, _Dj = $1.barcode.length - 1; _Dk <= _Dj; _Dk += 1) { //#26131 + $1.i = _Dk; //#26128 + var _Dn = $geti($1.bits, $1.i * 8, 8); //#26129 + $k[$j++] = 0; //#26129 + for (var _Do = 0, _Dp = _Dn.length; _Do < _Dp; _Do++) { //#26129 + var _Dr = $k[--$j]; //#26129 + $k[$j++] = $f(_Dr + $get(_Dn, _Do)) * 2; //#26129 + } //#26129 + $put($1.barcode, $1.i, ~~($k[--$j] / 2)); //#26130 + } //#26130 + delete $1.options["parse"]; //#26132 + $put($1.options, "dontdraw", true); //#26133 + $put($1.options, "ccc", true); //#26134 + $put($1.options, "columns", $1.cccolumns); //#26135 + $put($1.options, "eclevel", (~~(Math.log($1.eccws) / Math.log(2))) - 1); //#26136 + $k[$j++] = 'args'; //#26137 + $k[$j++] = $1.barcode; //#26137 + $k[$j++] = $1.options; //#26137 + $0.pdf417(); //#26137 + var _E4 = $k[--$j]; //#26137 + $1[$k[--$j]] = _E4; //#26137 + } //#26137 + $k[$j++] = $1.args; //#26141 + if (!$1.dontdraw) { //#26141 + $0.renmatrix(); //#26141 + } //#26141 }; $0.ean13composite = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $search($1.barcode, "|"); - if ($k[--$j]) { - $1.linear = $k[--$j]; - $j--; - $1.comp = $k[--$j]; - } else { - $j--; - } - $$.save(); - $put($1.options, "lintype", "ean13"); - $put($1.options, "inkspread", "0"); - $put($1.options, "dontdraw", true); - $k[$j++] = $1.linear; - $k[$j++] = $1.options; - $0.ean13(); - $0.renlinear(); - $$.rmoveto(-1, 72); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = 1; - for (var _E = 0, _F = 93; _E < _F; _E++) { - $k[$j++] = 0; - } - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - for (var _G = 0, _H = 93; _G < _H; _G++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - for (var _I = 0, _J = 93; _I < _J; _I++) { - $k[$j++] = 0; - } - $k[$j++] = 1; - $k[$j++] = 0; - var _K = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renmatrix; - $k[$j++] = "pixs"; - $k[$j++] = _K; - $k[$j++] = "pixx"; - $k[$j++] = 97; - $k[$j++] = "pixy"; - $k[$j++] = 3; - $k[$j++] = "height"; - $k[$j++] = 6 / 72; - $k[$j++] = "width"; - $k[$j++] = 97 / 72; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _M = $d(); - $k[$j++] = _M; - $0.renmatrix(); - $$.rmoveto(-2, 6); - $k[$j++] = $1.comp; - $k[$j++] = $1.options; - $0["gs1-cc"](); - $0.renmatrix(); - $$.restore(); + var $1 = {}; //#26173 + $1.options = $k[--$j]; //#26175 + $1.barcode = $k[--$j]; //#26176 + $1.dontdraw = false; //#26178 + $forall($1.options, function() { //#26189 + var _3 = $k[--$j]; //#26189 + $1[$k[--$j]] = _3; //#26189 + }); //#26189 + $search($1.barcode, "|"); //#26192 + if ($k[--$j]) { //#26197 + $1.linear = $k[--$j]; //#26193 + $j--; //#26194 + $1.comp = $k[--$j]; //#26195 + } else { //#26197 + $j--; //#26197 + } //#26197 + $$.save(); //#26200 + $put($1.options, "lintype", "ean13"); //#26202 + $put($1.options, "inkspread", "0"); //#26203 + $put($1.options, "dontdraw", true); //#26204 + $k[$j++] = $1.linear; //#26207 + $k[$j++] = $1.options; //#26207 + $0.ean13(); //#26207 + $0.renlinear(); //#26207 + $$.rmoveto(-1, 72); //#26210 + $k[$j++] = Infinity; //#26221 + $k[$j++] = Infinity; //#26215 + $k[$j++] = 0; //#26213 + $k[$j++] = 1; //#26213 + for (var _E = 0, _F = 93; _E < _F; _E++) { //#26213 + $k[$j++] = 0; //#26213 + } //#26213 + $k[$j++] = 1; //#26214 + $k[$j++] = 0; //#26214 + $k[$j++] = 1; //#26214 + $k[$j++] = 0; //#26214 + for (var _G = 0, _H = 93; _G < _H; _G++) { //#26214 + $k[$j++] = 0; //#26214 + } //#26214 + $k[$j++] = 0; //#26215 + $k[$j++] = 1; //#26215 + $k[$j++] = 0; //#26215 + $k[$j++] = 1; //#26215 + for (var _I = 0, _J = 93; _I < _J; _I++) { //#26215 + $k[$j++] = 0; //#26215 + } //#26215 + $k[$j++] = 1; //#26215 + $k[$j++] = 0; //#26215 + var _K = $a(); //#26215 + $k[$j++] = 'ren'; //#26221 + $k[$j++] = $0.renmatrix; //#26221 + $k[$j++] = 'pixs'; //#26221 + $k[$j++] = _K; //#26221 + $k[$j++] = 'pixx'; //#26221 + $k[$j++] = 97; //#26221 + $k[$j++] = 'pixy'; //#26221 + $k[$j++] = 3; //#26221 + $k[$j++] = 'height'; //#26221 + $k[$j++] = 6 / 72; //#26221 + $k[$j++] = 'width'; //#26221 + $k[$j++] = 97 / 72; //#26221 + $k[$j++] = 'opt'; //#26221 + $k[$j++] = $1.options; //#26221 + var _M = $d(); //#26221 + $k[$j++] = _M; //#26222 + $0.renmatrix(); //#26222 + $$.rmoveto(-2, 6); //#26225 + $k[$j++] = $1.comp; //#26225 + $k[$j++] = $1.options; //#26225 + $0["gs1-cc"](); //#26225 + $0.renmatrix(); //#26225 + $$.restore(); //#26227 }; $0.ean8composite = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $search($1.barcode, "|"); - if ($k[--$j]) { - $1.linear = $k[--$j]; - $j--; - $1.comp = $k[--$j]; - } else { - $j--; - } - $$.save(); - $put($1.options, "lintype", "ean8"); - $put($1.options, "inkspread", "0"); - $put($1.options, "dontdraw", true); - $k[$j++] = $1.linear; - $k[$j++] = $1.options; - $0.ean8(); - $0.renlinear(); - $$.rmoveto(-1, 72); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = 1; - for (var _E = 0, _F = 65; _E < _F; _E++) { - $k[$j++] = 0; - } - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - for (var _G = 0, _H = 65; _G < _H; _G++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - for (var _I = 0, _J = 65; _I < _J; _I++) { - $k[$j++] = 0; - } - $k[$j++] = 1; - $k[$j++] = 0; - var _K = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renmatrix; - $k[$j++] = "pixs"; - $k[$j++] = _K; - $k[$j++] = "pixx"; - $k[$j++] = 69; - $k[$j++] = "pixy"; - $k[$j++] = 3; - $k[$j++] = "height"; - $k[$j++] = 6 / 72; - $k[$j++] = "width"; - $k[$j++] = 69 / 72; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _M = $d(); - $k[$j++] = _M; - $0.renmatrix(); - $k[$j++] = $1.comp; - $k[$j++] = $1.options; - $0["gs1-cc"](); - var _P = $k[--$j]; - $$.rmoveto($f(69 - $get(_P, "pixx")), 6); - $k[$j++] = _P; - $0.renmatrix(); - $$.restore(); + var $1 = {}; //#26259 + $1.options = $k[--$j]; //#26261 + $1.barcode = $k[--$j]; //#26262 + $1.dontdraw = false; //#26264 + $forall($1.options, function() { //#26275 + var _3 = $k[--$j]; //#26275 + $1[$k[--$j]] = _3; //#26275 + }); //#26275 + $search($1.barcode, "|"); //#26278 + if ($k[--$j]) { //#26283 + $1.linear = $k[--$j]; //#26279 + $j--; //#26280 + $1.comp = $k[--$j]; //#26281 + } else { //#26283 + $j--; //#26283 + } //#26283 + $$.save(); //#26286 + $put($1.options, "lintype", "ean8"); //#26289 + $put($1.options, "inkspread", "0"); //#26290 + $put($1.options, "dontdraw", true); //#26291 + $k[$j++] = $1.linear; //#26294 + $k[$j++] = $1.options; //#26294 + $0.ean8(); //#26294 + $0.renlinear(); //#26294 + $$.rmoveto(-1, 72); //#26297 + $k[$j++] = Infinity; //#26308 + $k[$j++] = Infinity; //#26302 + $k[$j++] = 0; //#26300 + $k[$j++] = 1; //#26300 + for (var _E = 0, _F = 65; _E < _F; _E++) { //#26300 + $k[$j++] = 0; //#26300 + } //#26300 + $k[$j++] = 1; //#26301 + $k[$j++] = 0; //#26301 + $k[$j++] = 1; //#26301 + $k[$j++] = 0; //#26301 + for (var _G = 0, _H = 65; _G < _H; _G++) { //#26301 + $k[$j++] = 0; //#26301 + } //#26301 + $k[$j++] = 0; //#26302 + $k[$j++] = 1; //#26302 + $k[$j++] = 0; //#26302 + $k[$j++] = 1; //#26302 + for (var _I = 0, _J = 65; _I < _J; _I++) { //#26302 + $k[$j++] = 0; //#26302 + } //#26302 + $k[$j++] = 1; //#26302 + $k[$j++] = 0; //#26302 + var _K = $a(); //#26302 + $k[$j++] = 'ren'; //#26308 + $k[$j++] = $0.renmatrix; //#26308 + $k[$j++] = 'pixs'; //#26308 + $k[$j++] = _K; //#26308 + $k[$j++] = 'pixx'; //#26308 + $k[$j++] = 69; //#26308 + $k[$j++] = 'pixy'; //#26308 + $k[$j++] = 3; //#26308 + $k[$j++] = 'height'; //#26308 + $k[$j++] = 6 / 72; //#26308 + $k[$j++] = 'width'; //#26308 + $k[$j++] = 69 / 72; //#26308 + $k[$j++] = 'opt'; //#26308 + $k[$j++] = $1.options; //#26308 + var _M = $d(); //#26308 + $k[$j++] = _M; //#26309 + $0.renmatrix(); //#26309 + $k[$j++] = $1.comp; //#26312 + $k[$j++] = $1.options; //#26312 + $0["gs1-cc"](); //#26312 + var _P = $k[--$j]; //#26313 + $$.rmoveto($f(69 - $get(_P, "pixx")), 6); //#26313 + $k[$j++] = _P; //#26314 + $0.renmatrix(); //#26314 + $$.restore(); //#26316 }; $0.upcacomposite = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $search($1.barcode, "|"); - if ($k[--$j]) { - $1.linear = $k[--$j]; - $j--; - $1.comp = $k[--$j]; - } else { - $j--; - } - $$.save(); - $put($1.options, "lintype", "ean13"); - $put($1.options, "inkspread", "0"); - $put($1.options, "dontdraw", true); - $k[$j++] = $1.linear; - $k[$j++] = $1.options; - $0.upca(); - $0.renlinear(); - $$.rmoveto(-1, 72); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = 1; - for (var _E = 0, _F = 93; _E < _F; _E++) { - $k[$j++] = 0; - } - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - for (var _G = 0, _H = 93; _G < _H; _G++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - for (var _I = 0, _J = 93; _I < _J; _I++) { - $k[$j++] = 0; - } - $k[$j++] = 1; - $k[$j++] = 0; - var _K = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renmatrix; - $k[$j++] = "pixs"; - $k[$j++] = _K; - $k[$j++] = "pixx"; - $k[$j++] = 97; - $k[$j++] = "pixy"; - $k[$j++] = 3; - $k[$j++] = "height"; - $k[$j++] = 6 / 72; - $k[$j++] = "width"; - $k[$j++] = 97 / 72; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _M = $d(); - $k[$j++] = _M; - $0.renmatrix(); - $$.rmoveto(-2, 6); - $k[$j++] = $1.comp; - $k[$j++] = $1.options; - $0["gs1-cc"](); - $0.renmatrix(); - $$.restore(); + var $1 = {}; //#26348 + $1.options = $k[--$j]; //#26350 + $1.barcode = $k[--$j]; //#26351 + $1.dontdraw = false; //#26353 + $forall($1.options, function() { //#26364 + var _3 = $k[--$j]; //#26364 + $1[$k[--$j]] = _3; //#26364 + }); //#26364 + $search($1.barcode, "|"); //#26367 + if ($k[--$j]) { //#26372 + $1.linear = $k[--$j]; //#26368 + $j--; //#26369 + $1.comp = $k[--$j]; //#26370 + } else { //#26372 + $j--; //#26372 + } //#26372 + $$.save(); //#26375 + $put($1.options, "lintype", "ean13"); //#26377 + $put($1.options, "inkspread", "0"); //#26378 + $put($1.options, "dontdraw", true); //#26379 + $k[$j++] = $1.linear; //#26382 + $k[$j++] = $1.options; //#26382 + $0.upca(); //#26382 + $0.renlinear(); //#26382 + $$.rmoveto(-1, 72); //#26385 + $k[$j++] = Infinity; //#26396 + $k[$j++] = Infinity; //#26390 + $k[$j++] = 0; //#26388 + $k[$j++] = 1; //#26388 + for (var _E = 0, _F = 93; _E < _F; _E++) { //#26388 + $k[$j++] = 0; //#26388 + } //#26388 + $k[$j++] = 1; //#26389 + $k[$j++] = 0; //#26389 + $k[$j++] = 1; //#26389 + $k[$j++] = 0; //#26389 + for (var _G = 0, _H = 93; _G < _H; _G++) { //#26389 + $k[$j++] = 0; //#26389 + } //#26389 + $k[$j++] = 0; //#26390 + $k[$j++] = 1; //#26390 + $k[$j++] = 0; //#26390 + $k[$j++] = 1; //#26390 + for (var _I = 0, _J = 93; _I < _J; _I++) { //#26390 + $k[$j++] = 0; //#26390 + } //#26390 + $k[$j++] = 1; //#26390 + $k[$j++] = 0; //#26390 + var _K = $a(); //#26390 + $k[$j++] = 'ren'; //#26396 + $k[$j++] = $0.renmatrix; //#26396 + $k[$j++] = 'pixs'; //#26396 + $k[$j++] = _K; //#26396 + $k[$j++] = 'pixx'; //#26396 + $k[$j++] = 97; //#26396 + $k[$j++] = 'pixy'; //#26396 + $k[$j++] = 3; //#26396 + $k[$j++] = 'height'; //#26396 + $k[$j++] = 6 / 72; //#26396 + $k[$j++] = 'width'; //#26396 + $k[$j++] = 97 / 72; //#26396 + $k[$j++] = 'opt'; //#26396 + $k[$j++] = $1.options; //#26396 + var _M = $d(); //#26396 + $k[$j++] = _M; //#26397 + $0.renmatrix(); //#26397 + $$.rmoveto(-2, 6); //#26400 + $k[$j++] = $1.comp; //#26400 + $k[$j++] = $1.options; //#26400 + $0["gs1-cc"](); //#26400 + $0.renmatrix(); //#26400 + $$.restore(); //#26402 }; $0.upcecomposite = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $search($1.barcode, "|"); - if ($k[--$j]) { - $1.linear = $k[--$j]; - $j--; - $1.comp = $k[--$j]; - } else { - $j--; - } - $k[$j++] = Infinity; - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = 1; - for (var _9 = 0, _A = 49; _9 < _A; _9++) { - $k[$j++] = 0; - } - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - for (var _B = 0, _C = 49; _B < _C; _B++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - for (var _D = 0, _E = 49; _D < _E; _D++) { - $k[$j++] = 0; - } - $k[$j++] = 1; - $k[$j++] = 0; - var _F = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renmatrix; - $k[$j++] = "pixs"; - $k[$j++] = _F; - $k[$j++] = "pixx"; - $k[$j++] = 53; - $k[$j++] = "pixy"; - $k[$j++] = 3; - $k[$j++] = "height"; - $k[$j++] = 6 / 72; - $k[$j++] = "width"; - $k[$j++] = 53 / 72; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - $1.sep = $d(); - $$.save(); - $put($1.options, "lintype", "upce"); - $put($1.options, "inkspread", "0"); - $put($1.options, "dontdraw", true); - $k[$j++] = $1.linear; - $k[$j++] = $1.options; - $0.upce(); - $0.renlinear(); - $$.rmoveto(-1, 72); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = 1; - for (var _N = 0, _O = 49; _N < _O; _N++) { - $k[$j++] = 0; - } - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - for (var _P = 0, _Q = 49; _P < _Q; _P++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - for (var _R = 0, _S = 49; _R < _S; _R++) { - $k[$j++] = 0; - } - $k[$j++] = 1; - $k[$j++] = 0; - var _T = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renmatrix; - $k[$j++] = "pixs"; - $k[$j++] = _T; - $k[$j++] = "pixx"; - $k[$j++] = 53; - $k[$j++] = "pixy"; - $k[$j++] = 3; - $k[$j++] = "height"; - $k[$j++] = 6 / 72; - $k[$j++] = "width"; - $k[$j++] = 53 / 72; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _V = $d(); - $k[$j++] = _V; - $0.renmatrix(); - $$.rmoveto(-2, 6); - $k[$j++] = $1.comp; - $k[$j++] = $1.options; - $0["gs1-cc"](); - $0.renmatrix(); - $$.restore(); + var $1 = {}; //#26434 + $1.options = $k[--$j]; //#26436 + $1.barcode = $k[--$j]; //#26437 + $1.dontdraw = false; //#26439 + $forall($1.options, function() { //#26450 + var _3 = $k[--$j]; //#26450 + $1[$k[--$j]] = _3; //#26450 + }); //#26450 + $search($1.barcode, "|"); //#26453 + if ($k[--$j]) { //#26458 + $1.linear = $k[--$j]; //#26454 + $j--; //#26455 + $1.comp = $k[--$j]; //#26456 + } else { //#26458 + $j--; //#26458 + } //#26458 + $k[$j++] = Infinity; //#26473 + $k[$j++] = Infinity; //#26467 + $k[$j++] = 0; //#26465 + $k[$j++] = 1; //#26465 + for (var _9 = 0, _A = 49; _9 < _A; _9++) { //#26465 + $k[$j++] = 0; //#26465 + } //#26465 + $k[$j++] = 1; //#26466 + $k[$j++] = 0; //#26466 + $k[$j++] = 1; //#26466 + $k[$j++] = 0; //#26466 + for (var _B = 0, _C = 49; _B < _C; _B++) { //#26466 + $k[$j++] = 0; //#26466 + } //#26466 + $k[$j++] = 0; //#26467 + $k[$j++] = 1; //#26467 + $k[$j++] = 0; //#26467 + $k[$j++] = 1; //#26467 + for (var _D = 0, _E = 49; _D < _E; _D++) { //#26467 + $k[$j++] = 0; //#26467 + } //#26467 + $k[$j++] = 1; //#26467 + $k[$j++] = 0; //#26467 + var _F = $a(); //#26467 + $k[$j++] = 'ren'; //#26473 + $k[$j++] = $0.renmatrix; //#26473 + $k[$j++] = 'pixs'; //#26473 + $k[$j++] = _F; //#26473 + $k[$j++] = 'pixx'; //#26473 + $k[$j++] = 53; //#26473 + $k[$j++] = 'pixy'; //#26473 + $k[$j++] = 3; //#26473 + $k[$j++] = 'height'; //#26473 + $k[$j++] = 6 / 72; //#26473 + $k[$j++] = 'width'; //#26473 + $k[$j++] = 53 / 72; //#26473 + $k[$j++] = 'opt'; //#26473 + $k[$j++] = $1.options; //#26473 + $1.sep = $d(); //#26474 + $$.save(); //#26476 + $put($1.options, "lintype", "upce"); //#26478 + $put($1.options, "inkspread", "0"); //#26479 + $put($1.options, "dontdraw", true); //#26480 + $k[$j++] = $1.linear; //#26483 + $k[$j++] = $1.options; //#26483 + $0.upce(); //#26483 + $0.renlinear(); //#26483 + $$.rmoveto(-1, 72); //#26486 + $k[$j++] = Infinity; //#26497 + $k[$j++] = Infinity; //#26491 + $k[$j++] = 0; //#26489 + $k[$j++] = 1; //#26489 + for (var _N = 0, _O = 49; _N < _O; _N++) { //#26489 + $k[$j++] = 0; //#26489 + } //#26489 + $k[$j++] = 1; //#26490 + $k[$j++] = 0; //#26490 + $k[$j++] = 1; //#26490 + $k[$j++] = 0; //#26490 + for (var _P = 0, _Q = 49; _P < _Q; _P++) { //#26490 + $k[$j++] = 0; //#26490 + } //#26490 + $k[$j++] = 0; //#26491 + $k[$j++] = 1; //#26491 + $k[$j++] = 0; //#26491 + $k[$j++] = 1; //#26491 + for (var _R = 0, _S = 49; _R < _S; _R++) { //#26491 + $k[$j++] = 0; //#26491 + } //#26491 + $k[$j++] = 1; //#26491 + $k[$j++] = 0; //#26491 + var _T = $a(); //#26491 + $k[$j++] = 'ren'; //#26497 + $k[$j++] = $0.renmatrix; //#26497 + $k[$j++] = 'pixs'; //#26497 + $k[$j++] = _T; //#26497 + $k[$j++] = 'pixx'; //#26497 + $k[$j++] = 53; //#26497 + $k[$j++] = 'pixy'; //#26497 + $k[$j++] = 3; //#26497 + $k[$j++] = 'height'; //#26497 + $k[$j++] = 6 / 72; //#26497 + $k[$j++] = 'width'; //#26497 + $k[$j++] = 53 / 72; //#26497 + $k[$j++] = 'opt'; //#26497 + $k[$j++] = $1.options; //#26497 + var _V = $d(); //#26497 + $k[$j++] = _V; //#26498 + $0.renmatrix(); //#26498 + $$.rmoveto(-2, 6); //#26501 + $k[$j++] = $1.comp; //#26501 + $k[$j++] = $1.options; //#26501 + $0["gs1-cc"](); //#26501 + $0.renmatrix(); //#26501 + $$.restore(); //#26503 }; $0.databaromnicomposite = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $search($1.barcode, "|"); - if ($k[--$j]) { - $1.linear = $k[--$j]; - $j--; - $1.comp = $k[--$j]; - } else { - $j--; - } - $$.save(); - $put($1.options, "lintype", "databaromni"); - $put($1.options, "linkage", true); - $put($1.options, "inkspread", "0"); - $put($1.options, "dontdraw", true); - $k[$j++] = $1.linear; - $k[$j++] = $1.options; - $0.databaromni(); - var _F = $k[--$j]; - $1.linsbs = $get(_F, "sbs"); - $1.linheight = $get($get(_F, "bhs"), 0) * 72; - $k[$j++] = _F; - $0.renlinear(); + var $1 = {}; //#26535 + $1.options = $k[--$j]; //#26537 + $1.barcode = $k[--$j]; //#26538 + $1.dontdraw = false; //#26540 + $forall($1.options, function() { //#26551 + var _3 = $k[--$j]; //#26551 + $1[$k[--$j]] = _3; //#26551 + }); //#26551 + $search($1.barcode, "|"); //#26554 + if ($k[--$j]) { //#26559 + $1.linear = $k[--$j]; //#26555 + $j--; //#26556 + $1.comp = $k[--$j]; //#26557 + } else { //#26559 + $j--; //#26559 + } //#26559 + $$.save(); //#26562 + $put($1.options, "lintype", "databaromni"); //#26564 + $put($1.options, "linkage", true); //#26565 + $put($1.options, "inkspread", "0"); //#26566 + $put($1.options, "dontdraw", true); //#26567 + $k[$j++] = $1.linear; //#26570 + $k[$j++] = $1.options; //#26570 + $0.databaromni(); //#26570 + var _F = $k[--$j]; //#26571 + $1.linsbs = $get(_F, "sbs"); //#26571 + $1.linheight = $get($get(_F, "bhs"), 0) * 72; //#26572 + $k[$j++] = _F; //#26573 + $0.renlinear(); //#26573 $1.sepfinder = function() { - $1.fp = $k[--$j]; - for (var _N = $1.fp, _M = $f($1.fp + 12); _N <= _M; _N += 1) { - $1.i = _N; - if ($get($1.bot, $1.i) == 0) { - if ($get($1.bot, $1.i - 1) == 1) { - $k[$j++] = 1; - } else { - var _X = $get($1.sep, $1.i - 1) == 0 ? 1 : 0; - $k[$j++] = _X; - } - } else { - $k[$j++] = 0; - } - $put($1.sep, $1.i, $k[--$j]); - } - $1.f3 = $a([ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1 ]); - $k[$j++] = true; - for (var _c = 0; _c <= 12; _c += 1) { - var _i = $k[--$j]; - $k[$j++] = _i && $eq($get($1.bot, $f(_c + $1.fp)), $get($1.f3, _c)); - } - if ($k[--$j]) { - $puti($1.sep, $1.fp, $a([ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ])); - } - }; - $k[$j++] = Infinity; - $k[$j++] = 0; - $forall($1.linsbs, function() { - var _o = $k[--$j]; - var _p = $k[--$j]; - var _q = _p == 1 ? 0 : 1; - $k[$j++] = _p; - for (var _r = 0, _s = _o; _r < _s; _r++) { - $k[$j++] = _q; - } - }); - $astore($a($counttomark() - 1)); - $1.bot = $k[--$j]; - $j -= 2; - $k[$j++] = Infinity; - $forall($1.bot, function() { - var _x = $k[--$j]; - $k[$j++] = $f(1 - _x); - }); - $1.sep = $a(); - $puti($1.sep, 0, $a([ 0, 0, 0 ])); - $puti($1.sep, $1.sep.length - 4, $a([ 0, 0, 0, 0 ])); - $k[$j++] = 18; - $1.sepfinder(); - $k[$j++] = 64; - $1.sepfinder(); - $$.rmoveto(0, $1.linheight); - var _19 = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.sep ], [ "pixx", $1.sep.length ], [ "pixy", 1 ], [ "height", 1 / 72 ], [ "width", $1.sep.length / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _19; - $0.renmatrix(); - $$.rmoveto(-5, 1); - $k[$j++] = $1.comp; - $k[$j++] = $1.options; - $0["gs1-cc"](); - $0.renmatrix(); - $$.restore(); + $1.fp = $k[--$j]; //#26577 + for (var _N = $1.fp, _M = $f($1.fp + 12); _N <= _M; _N += 1) { //#26590 + $1.i = _N; //#26579 + if ($get($1.bot, $1.i) == 0) { //#26587 + if ($get($1.bot, $1.i - 1) == 1) { //#26584 + $k[$j++] = 1; //#26582 + } else { //#26584 + var _X = ($get($1.sep, $1.i - 1) == 0) ? 1 : 0; //#26584 + $k[$j++] = _X; //#26584 + } //#26584 + } else { //#26587 + $k[$j++] = 0; //#26587 + } //#26587 + $put($1.sep, $1.i, $k[--$j]); //#26589 + } //#26589 + $1.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#26591 + $k[$j++] = true; //#26592 + for (var _c = 0; _c <= 12; _c += 1) { //#26592 + var _i = $k[--$j]; //#26592 + $k[$j++] = _i && $eq($get($1.bot, $f(_c + $1.fp)), $get($1.f3, _c)); //#26592 + } //#26592 + if ($k[--$j]) { //#26595 + $puti($1.sep, $1.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#26594 + } //#26594 + }; //#26596 + $k[$j++] = Infinity; //#26597 + $k[$j++] = 0; //#26598 + $forall($1.linsbs, function() { //#26598 + var _o = $k[--$j]; //#26598 + var _p = $k[--$j]; //#26598 + var _q = (_p == 1) ? 0 : 1; //#26598 + $k[$j++] = _p; //#26598 + for (var _r = 0, _s = _o; _r < _s; _r++) { //#26598 + $k[$j++] = _q //#26598 + } //#26598 + }); //#26598 + $astore($a($counttomark() - 1)); //#26599 + $1.bot = $k[--$j]; //#26599 + $j -= 2; //#26599 + $k[$j++] = Infinity; //#26600 + $forall($1.bot, function() { //#26600 + var _x = $k[--$j]; //#26600 + $k[$j++] = $f(1 - _x); //#26600 + }); //#26600 + $1.sep = $a(); //#26600 + $puti($1.sep, 0, $a([0, 0, 0])); //#26601 + $puti($1.sep, $1.sep.length - 4, $a([0, 0, 0, 0])); //#26602 + $k[$j++] = 18; //#26603 + $1.sepfinder(); //#26603 + $k[$j++] = 64; //#26603 + $1.sepfinder(); //#26603 + $$.rmoveto(0, $1.linheight); //#26604 + var _19 = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.sep], + ["pixx", $1.sep.length], + ["pixy", 1], + ["height", 1 / 72], + ["width", $1.sep.length / 72], + ["opt", $1.options] + ]); //#26611 + $k[$j++] = _19; //#26612 + $0.renmatrix(); //#26612 + $$.rmoveto(-5, 1); //#26615 + $k[$j++] = $1.comp; //#26615 + $k[$j++] = $1.options; //#26615 + $0["gs1-cc"](); //#26615 + $0.renmatrix(); //#26615 + $$.restore(); //#26617 }; $0.databarstackedcomposite = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $search($1.barcode, "|"); - if ($k[--$j]) { - $1.linear = $k[--$j]; - $j--; - $1.comp = $k[--$j]; - } else { - $j--; - } - $$.save(); - $put($1.options, "lintype", "databarstacked"); - $put($1.options, "linkage", true); - $put($1.options, "inkspread", "0"); - $put($1.options, "dontdraw", true); - $k[$j++] = $1.linear; - $k[$j++] = $1.options; - $0.databarstacked(); - var _F = $k[--$j]; - $1.bot = $geti($get(_F, "pixs"), 0, $get(_F, "pixx")); - $1.linheight = $get(_F, "pixy"); - $k[$j++] = _F; - $0.renmatrix(); + var $1 = {}; //#26648 + $1.options = $k[--$j]; //#26650 + $1.barcode = $k[--$j]; //#26651 + $1.dontdraw = false; //#26653 + $forall($1.options, function() { //#26664 + var _3 = $k[--$j]; //#26664 + $1[$k[--$j]] = _3; //#26664 + }); //#26664 + $search($1.barcode, "|"); //#26667 + if ($k[--$j]) { //#26672 + $1.linear = $k[--$j]; //#26668 + $j--; //#26669 + $1.comp = $k[--$j]; //#26670 + } else { //#26672 + $j--; //#26672 + } //#26672 + $$.save(); //#26675 + $put($1.options, "lintype", "databarstacked"); //#26677 + $put($1.options, "linkage", true); //#26678 + $put($1.options, "inkspread", "0"); //#26679 + $put($1.options, "dontdraw", true); //#26680 + $k[$j++] = $1.linear; //#26683 + $k[$j++] = $1.options; //#26683 + $0.databarstacked(); //#26683 + var _F = $k[--$j]; //#26684 + $1.bot = $geti($get(_F, "pixs"), 0, $get(_F, "pixx")); //#26684 + $1.linheight = $get(_F, "pixy"); //#26685 + $k[$j++] = _F; //#26686 + $0.renmatrix(); //#26686 $1.sepfinder = function() { - $1.fp = $k[--$j]; - for (var _O = $1.fp, _N = $f($1.fp + 12); _O <= _N; _O += 1) { - $1.i = _O; - if ($get($1.bot, $1.i) == 0) { - if ($get($1.bot, $1.i - 1) == 1) { - $k[$j++] = 1; - } else { - var _Y = $get($1.sep, $1.i - 1) == 0 ? 1 : 0; - $k[$j++] = _Y; - } - } else { - $k[$j++] = 0; - } - $put($1.sep, $1.i, $k[--$j]); - } - $1.f3 = $a([ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1 ]); - $k[$j++] = true; - for (var _d = 0; _d <= 12; _d += 1) { - var _j = $k[--$j]; - $k[$j++] = _j && $eq($get($1.bot, $f(_d + $1.fp)), $get($1.f3, _d)); - } - if ($k[--$j]) { - $puti($1.sep, $1.fp, $a([ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ])); - } - }; - $k[$j++] = Infinity; - var _o = $1.bot; - for (var _p = 0, _q = _o.length; _p < _q; _p++) { - $k[$j++] = $f(1 - $get(_o, _p)); - } - $1.sep = $a(); - $puti($1.sep, 0, $a([ 0, 0, 0, 0 ])); - $puti($1.sep, $1.sep.length - 4, $a([ 0, 0, 0, 0 ])); - $k[$j++] = 18; - $1.sepfinder(); - $$.rmoveto(0, $1.linheight); - var _13 = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.sep ], [ "pixx", $1.sep.length ], [ "pixy", 1 ], [ "height", 1 / 72 ], [ "width", $1.sep.length / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _13; - $0.renmatrix(); - $$.rmoveto(1, 1); - $k[$j++] = $1.comp; - $k[$j++] = $1.options; - $0["gs1-cc"](); - $0.renmatrix(); - $$.restore(); + $1.fp = $k[--$j]; //#26690 + for (var _O = $1.fp, _N = $f($1.fp + 12); _O <= _N; _O += 1) { //#26703 + $1.i = _O; //#26692 + if ($get($1.bot, $1.i) == 0) { //#26700 + if ($get($1.bot, $1.i - 1) == 1) { //#26697 + $k[$j++] = 1; //#26695 + } else { //#26697 + var _Y = ($get($1.sep, $1.i - 1) == 0) ? 1 : 0; //#26697 + $k[$j++] = _Y; //#26697 + } //#26697 + } else { //#26700 + $k[$j++] = 0; //#26700 + } //#26700 + $put($1.sep, $1.i, $k[--$j]); //#26702 + } //#26702 + $1.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#26704 + $k[$j++] = true; //#26705 + for (var _d = 0; _d <= 12; _d += 1) { //#26705 + var _j = $k[--$j]; //#26705 + $k[$j++] = _j && $eq($get($1.bot, $f(_d + $1.fp)), $get($1.f3, _d)); //#26705 + } //#26705 + if ($k[--$j]) { //#26708 + $puti($1.sep, $1.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#26707 + } //#26707 + }; //#26709 + $k[$j++] = Infinity; //#26710 + var _o = $1.bot; //#26710 + for (var _p = 0, _q = _o.length; _p < _q; _p++) { //#26710 + $k[$j++] = $f(1 - $get(_o, _p)); //#26710 + } //#26710 + $1.sep = $a(); //#26710 + $puti($1.sep, 0, $a([0, 0, 0, 0])); //#26711 + $puti($1.sep, $1.sep.length - 4, $a([0, 0, 0, 0])); //#26712 + $k[$j++] = 18; //#26713 + $1.sepfinder(); //#26713 + $$.rmoveto(0, $1.linheight); //#26714 + var _13 = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.sep], + ["pixx", $1.sep.length], + ["pixy", 1], + ["height", 1 / 72], + ["width", $1.sep.length / 72], + ["opt", $1.options] + ]); //#26721 + $k[$j++] = _13; //#26722 + $0.renmatrix(); //#26722 + $$.rmoveto(1, 1); //#26725 + $k[$j++] = $1.comp; //#26725 + $k[$j++] = $1.options; //#26725 + $0["gs1-cc"](); //#26725 + $0.renmatrix(); //#26725 + $$.restore(); //#26727 }; $0.databarstackedomnicomposite = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $search($1.barcode, "|"); - if ($k[--$j]) { - $1.linear = $k[--$j]; - $j--; - $1.comp = $k[--$j]; - } else { - $j--; - } - $$.save(); - $put($1.options, "lintype", "databarstackedomni"); - $put($1.options, "linkage", true); - $put($1.options, "inkspread", "0"); - $put($1.options, "dontdraw", true); - $k[$j++] = $1.linear; - $k[$j++] = $1.options; - $0.databarstackedomni(); - var _F = $k[--$j]; - $1.bot = $geti($get(_F, "pixs"), 0, $get(_F, "pixx")); - $1.linheight = $get(_F, "pixy"); - $k[$j++] = _F; - $0.renmatrix(); + var $1 = {}; //#26758 + $1.options = $k[--$j]; //#26760 + $1.barcode = $k[--$j]; //#26761 + $1.dontdraw = false; //#26763 + $forall($1.options, function() { //#26774 + var _3 = $k[--$j]; //#26774 + $1[$k[--$j]] = _3; //#26774 + }); //#26774 + $search($1.barcode, "|"); //#26777 + if ($k[--$j]) { //#26782 + $1.linear = $k[--$j]; //#26778 + $j--; //#26779 + $1.comp = $k[--$j]; //#26780 + } else { //#26782 + $j--; //#26782 + } //#26782 + $$.save(); //#26785 + $put($1.options, "lintype", "databarstackedomni"); //#26787 + $put($1.options, "linkage", true); //#26788 + $put($1.options, "inkspread", "0"); //#26789 + $put($1.options, "dontdraw", true); //#26790 + $k[$j++] = $1.linear; //#26793 + $k[$j++] = $1.options; //#26793 + $0.databarstackedomni(); //#26793 + var _F = $k[--$j]; //#26794 + $1.bot = $geti($get(_F, "pixs"), 0, $get(_F, "pixx")); //#26794 + $1.linheight = $get(_F, "pixy"); //#26795 + $k[$j++] = _F; //#26796 + $0.renmatrix(); //#26796 $1.sepfinder = function() { - $1.fp = $k[--$j]; - for (var _O = $1.fp, _N = $f($1.fp + 12); _O <= _N; _O += 1) { - $1.i = _O; - if ($get($1.bot, $1.i) == 0) { - if ($get($1.bot, $1.i - 1) == 1) { - $k[$j++] = 1; - } else { - var _Y = $get($1.sep, $1.i - 1) == 0 ? 1 : 0; - $k[$j++] = _Y; - } - } else { - $k[$j++] = 0; - } - $put($1.sep, $1.i, $k[--$j]); - } - $1.f3 = $a([ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1 ]); - $k[$j++] = true; - for (var _d = 0; _d <= 12; _d += 1) { - var _j = $k[--$j]; - $k[$j++] = _j && $eq($get($1.bot, $f(_d + $1.fp)), $get($1.f3, _d)); - } - if ($k[--$j]) { - $puti($1.sep, $1.fp, $a([ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ])); - } - }; - $k[$j++] = Infinity; - var _o = $1.bot; - for (var _p = 0, _q = _o.length; _p < _q; _p++) { - $k[$j++] = $f(1 - $get(_o, _p)); - } - $1.sep = $a(); - $puti($1.sep, 0, $a([ 0, 0, 0, 0 ])); - $puti($1.sep, $1.sep.length - 4, $a([ 0, 0, 0, 0 ])); - $k[$j++] = 18; - $1.sepfinder(); - $$.rmoveto(0, $1.linheight); - var _13 = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.sep ], [ "pixx", $1.sep.length ], [ "pixy", 1 ], [ "height", 1 / 72 ], [ "width", $1.sep.length / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _13; - $0.renmatrix(); - $$.rmoveto(1, 1); - $k[$j++] = $1.comp; - $k[$j++] = $1.options; - $0["gs1-cc"](); - $0.renmatrix(); - $$.restore(); + $1.fp = $k[--$j]; //#26800 + for (var _O = $1.fp, _N = $f($1.fp + 12); _O <= _N; _O += 1) { //#26813 + $1.i = _O; //#26802 + if ($get($1.bot, $1.i) == 0) { //#26810 + if ($get($1.bot, $1.i - 1) == 1) { //#26807 + $k[$j++] = 1; //#26805 + } else { //#26807 + var _Y = ($get($1.sep, $1.i - 1) == 0) ? 1 : 0; //#26807 + $k[$j++] = _Y; //#26807 + } //#26807 + } else { //#26810 + $k[$j++] = 0; //#26810 + } //#26810 + $put($1.sep, $1.i, $k[--$j]); //#26812 + } //#26812 + $1.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#26814 + $k[$j++] = true; //#26815 + for (var _d = 0; _d <= 12; _d += 1) { //#26815 + var _j = $k[--$j]; //#26815 + $k[$j++] = _j && $eq($get($1.bot, $f(_d + $1.fp)), $get($1.f3, _d)); //#26815 + } //#26815 + if ($k[--$j]) { //#26818 + $puti($1.sep, $1.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#26817 + } //#26817 + }; //#26819 + $k[$j++] = Infinity; //#26820 + var _o = $1.bot; //#26820 + for (var _p = 0, _q = _o.length; _p < _q; _p++) { //#26820 + $k[$j++] = $f(1 - $get(_o, _p)); //#26820 + } //#26820 + $1.sep = $a(); //#26820 + $puti($1.sep, 0, $a([0, 0, 0, 0])); //#26821 + $puti($1.sep, $1.sep.length - 4, $a([0, 0, 0, 0])); //#26822 + $k[$j++] = 18; //#26823 + $1.sepfinder(); //#26823 + $$.rmoveto(0, $1.linheight); //#26824 + var _13 = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.sep], + ["pixx", $1.sep.length], + ["pixy", 1], + ["height", 1 / 72], + ["width", $1.sep.length / 72], + ["opt", $1.options] + ]); //#26831 + $k[$j++] = _13; //#26832 + $0.renmatrix(); //#26832 + $$.rmoveto(1, 1); //#26835 + $k[$j++] = $1.comp; //#26835 + $k[$j++] = $1.options; //#26835 + $0["gs1-cc"](); //#26835 + $0.renmatrix(); //#26835 + $$.restore(); //#26837 }; $0.databartruncatedcomposite = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $search($1.barcode, "|"); - if ($k[--$j]) { - $1.linear = $k[--$j]; - $j--; - $1.comp = $k[--$j]; - } else { - $j--; - } - $$.save(); - $put($1.options, "lintype", "databartruncated"); - $put($1.options, "linkage", true); - $put($1.options, "inkspread", "0"); - $put($1.options, "dontdraw", true); - $k[$j++] = $1.linear; - $k[$j++] = $1.options; - $0.databartruncated(); - var _F = $k[--$j]; - $1.linsbs = $get(_F, "sbs"); - $1.linheight = $get($get(_F, "bhs"), 0) * 72; - $k[$j++] = _F; - $0.renlinear(); + var $1 = {}; //#26869 + $1.options = $k[--$j]; //#26871 + $1.barcode = $k[--$j]; //#26872 + $1.dontdraw = false; //#26874 + $forall($1.options, function() { //#26885 + var _3 = $k[--$j]; //#26885 + $1[$k[--$j]] = _3; //#26885 + }); //#26885 + $search($1.barcode, "|"); //#26888 + if ($k[--$j]) { //#26893 + $1.linear = $k[--$j]; //#26889 + $j--; //#26890 + $1.comp = $k[--$j]; //#26891 + } else { //#26893 + $j--; //#26893 + } //#26893 + $$.save(); //#26896 + $put($1.options, "lintype", "databartruncated"); //#26898 + $put($1.options, "linkage", true); //#26899 + $put($1.options, "inkspread", "0"); //#26900 + $put($1.options, "dontdraw", true); //#26901 + $k[$j++] = $1.linear; //#26904 + $k[$j++] = $1.options; //#26904 + $0.databartruncated(); //#26904 + var _F = $k[--$j]; //#26905 + $1.linsbs = $get(_F, "sbs"); //#26905 + $1.linheight = $get($get(_F, "bhs"), 0) * 72; //#26906 + $k[$j++] = _F; //#26907 + $0.renlinear(); //#26907 $1.sepfinder = function() { - $1.fp = $k[--$j]; - for (var _N = $1.fp, _M = $f($1.fp + 12); _N <= _M; _N += 1) { - $1.i = _N; - if ($get($1.bot, $1.i) == 0) { - if ($get($1.bot, $1.i - 1) == 1) { - $k[$j++] = 1; - } else { - var _X = $get($1.sep, $1.i - 1) == 0 ? 1 : 0; - $k[$j++] = _X; - } - } else { - $k[$j++] = 0; - } - $put($1.sep, $1.i, $k[--$j]); - } - $1.f3 = $a([ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1 ]); - $k[$j++] = true; - for (var _c = 0; _c <= 12; _c += 1) { - var _i = $k[--$j]; - $k[$j++] = _i && $eq($get($1.bot, $f(_c + $1.fp)), $get($1.f3, _c)); - } - if ($k[--$j]) { - $puti($1.sep, $1.fp, $a([ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ])); - } - }; - $k[$j++] = Infinity; - $k[$j++] = 0; - $forall($1.linsbs, function() { - var _o = $k[--$j]; - var _p = $k[--$j]; - var _q = _p == 1 ? 0 : 1; - $k[$j++] = _p; - for (var _r = 0, _s = _o; _r < _s; _r++) { - $k[$j++] = _q; - } - }); - $astore($a($counttomark() - 1)); - $1.bot = $k[--$j]; - $j -= 2; - $k[$j++] = Infinity; - $forall($1.bot, function() { - var _x = $k[--$j]; - $k[$j++] = $f(1 - _x); - }); - $1.sep = $a(); - $puti($1.sep, 0, $a([ 0, 0, 0 ])); - $puti($1.sep, $1.sep.length - 4, $a([ 0, 0, 0, 0 ])); - $k[$j++] = 18; - $1.sepfinder(); - $k[$j++] = 64; - $1.sepfinder(); - $$.rmoveto(0, $1.linheight); - var _19 = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.sep ], [ "pixx", $1.sep.length ], [ "pixy", 1 ], [ "height", 1 / 72 ], [ "width", $1.sep.length / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _19; - $0.renmatrix(); - $$.rmoveto(-5, 1); - $k[$j++] = $1.comp; - $k[$j++] = $1.options; - $0["gs1-cc"](); - $0.renmatrix(); - $$.restore(); + $1.fp = $k[--$j]; //#26911 + for (var _N = $1.fp, _M = $f($1.fp + 12); _N <= _M; _N += 1) { //#26924 + $1.i = _N; //#26913 + if ($get($1.bot, $1.i) == 0) { //#26921 + if ($get($1.bot, $1.i - 1) == 1) { //#26918 + $k[$j++] = 1; //#26916 + } else { //#26918 + var _X = ($get($1.sep, $1.i - 1) == 0) ? 1 : 0; //#26918 + $k[$j++] = _X; //#26918 + } //#26918 + } else { //#26921 + $k[$j++] = 0; //#26921 + } //#26921 + $put($1.sep, $1.i, $k[--$j]); //#26923 + } //#26923 + $1.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#26925 + $k[$j++] = true; //#26926 + for (var _c = 0; _c <= 12; _c += 1) { //#26926 + var _i = $k[--$j]; //#26926 + $k[$j++] = _i && $eq($get($1.bot, $f(_c + $1.fp)), $get($1.f3, _c)); //#26926 + } //#26926 + if ($k[--$j]) { //#26929 + $puti($1.sep, $1.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#26928 + } //#26928 + }; //#26930 + $k[$j++] = Infinity; //#26931 + $k[$j++] = 0; //#26932 + $forall($1.linsbs, function() { //#26932 + var _o = $k[--$j]; //#26932 + var _p = $k[--$j]; //#26932 + var _q = (_p == 1) ? 0 : 1; //#26932 + $k[$j++] = _p; //#26932 + for (var _r = 0, _s = _o; _r < _s; _r++) { //#26932 + $k[$j++] = _q //#26932 + } //#26932 + }); //#26932 + $astore($a($counttomark() - 1)); //#26933 + $1.bot = $k[--$j]; //#26933 + $j -= 2; //#26933 + $k[$j++] = Infinity; //#26934 + $forall($1.bot, function() { //#26934 + var _x = $k[--$j]; //#26934 + $k[$j++] = $f(1 - _x); //#26934 + }); //#26934 + $1.sep = $a(); //#26934 + $puti($1.sep, 0, $a([0, 0, 0])); //#26935 + $puti($1.sep, $1.sep.length - 4, $a([0, 0, 0, 0])); //#26936 + $k[$j++] = 18; //#26937 + $1.sepfinder(); //#26937 + $k[$j++] = 64; //#26937 + $1.sepfinder(); //#26937 + $$.rmoveto(0, $1.linheight); //#26938 + var _19 = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.sep], + ["pixx", $1.sep.length], + ["pixy", 1], + ["height", 1 / 72], + ["width", $1.sep.length / 72], + ["opt", $1.options] + ]); //#26945 + $k[$j++] = _19; //#26946 + $0.renmatrix(); //#26946 + $$.rmoveto(-5, 1); //#26949 + $k[$j++] = $1.comp; //#26949 + $k[$j++] = $1.options; //#26949 + $0["gs1-cc"](); //#26949 + $0.renmatrix(); //#26949 + $$.restore(); //#26951 }; $0.databarlimitedcomposite = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $search($1.barcode, "|"); - if ($k[--$j]) { - $1.linear = $k[--$j]; - $j--; - $1.comp = $k[--$j]; - } else { - $j--; - } - $$.save(); - $put($1.options, "lintype", "databarlimited"); - $put($1.options, "linkage", true); - $put($1.options, "inkspread", "0"); - $put($1.options, "dontdraw", true); - $k[$j++] = $1.linear; - $k[$j++] = $1.options; - $0.databarlimited(); - var _F = $k[--$j]; - $1.linsbs = $get(_F, "sbs"); - $1.linheight = $get($get(_F, "bhs"), 0) * 72; - $k[$j++] = _F; - $0.renlinear(); - $k[$j++] = Infinity; - $k[$j++] = 1; - $forall($1.linsbs, function() { - var _K = $k[--$j]; - var _L = $k[--$j]; - var _M = _L == 0 ? 1 : 0; - $k[$j++] = _L; - for (var _N = 0, _O = _K; _N < _O; _N++) { - $k[$j++] = _M; - } - }); - $astore($a($counttomark() - 1)); - $1.sep = $k[--$j]; - $j -= 2; - $puti($1.sep, 0, $a([ 0, 0, 0 ])); - $puti($1.sep, $1.sep.length - 9, $a([ 0, 0, 0, 0, 0, 0, 0, 0, 0 ])); - $$.rmoveto(0, $1.linheight); - var _c = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.sep ], [ "pixx", $1.sep.length ], [ "pixy", 1 ], [ "height", 1 / 72 ], [ "width", $1.sep.length / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _c; - $0.renmatrix(); - $k[$j++] = $1.comp; - $k[$j++] = $1.options; - $0["gs1-cc"](); - var _f = $k[--$j]; - $$.rmoveto($f(72 - $get(_f, "pixx")), 1); - $k[$j++] = _f; - $0.renmatrix(); - $$.restore(); + var $1 = {}; //#26983 + $1.options = $k[--$j]; //#26985 + $1.barcode = $k[--$j]; //#26986 + $1.dontdraw = false; //#26988 + $forall($1.options, function() { //#26999 + var _3 = $k[--$j]; //#26999 + $1[$k[--$j]] = _3; //#26999 + }); //#26999 + $search($1.barcode, "|"); //#27002 + if ($k[--$j]) { //#27007 + $1.linear = $k[--$j]; //#27003 + $j--; //#27004 + $1.comp = $k[--$j]; //#27005 + } else { //#27007 + $j--; //#27007 + } //#27007 + $$.save(); //#27010 + $put($1.options, "lintype", "databarlimited"); //#27012 + $put($1.options, "linkage", true); //#27013 + $put($1.options, "inkspread", "0"); //#27014 + $put($1.options, "dontdraw", true); //#27015 + $k[$j++] = $1.linear; //#27018 + $k[$j++] = $1.options; //#27018 + $0.databarlimited(); //#27018 + var _F = $k[--$j]; //#27019 + $1.linsbs = $get(_F, "sbs"); //#27019 + $1.linheight = $get($get(_F, "bhs"), 0) * 72; //#27020 + $k[$j++] = _F; //#27021 + $0.renlinear(); //#27021 + $k[$j++] = Infinity; //#27024 + $k[$j++] = 1; //#27025 + $forall($1.linsbs, function() { //#27025 + var _K = $k[--$j]; //#27025 + var _L = $k[--$j]; //#27025 + var _M = (_L == 0) ? 1 : 0; //#27025 + $k[$j++] = _L; //#27025 + for (var _N = 0, _O = _K; _N < _O; _N++) { //#27025 + $k[$j++] = _M //#27025 + } //#27025 + }); //#27025 + $astore($a($counttomark() - 1)); //#27026 + $1.sep = $k[--$j]; //#27026 + $j -= 2; //#27026 + $puti($1.sep, 0, $a([0, 0, 0])); //#27027 + $puti($1.sep, $1.sep.length - 9, $a([0, 0, 0, 0, 0, 0, 0, 0, 0])); //#27028 + $$.rmoveto(0, $1.linheight); //#27029 + var _c = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.sep], + ["pixx", $1.sep.length], + ["pixy", 1], + ["height", 1 / 72], + ["width", $1.sep.length / 72], + ["opt", $1.options] + ]); //#27036 + $k[$j++] = _c; //#27037 + $0.renmatrix(); //#27037 + $k[$j++] = $1.comp; //#27040 + $k[$j++] = $1.options; //#27040 + $0["gs1-cc"](); //#27040 + var _f = $k[--$j]; //#27041 + $$.rmoveto($f(72 - $get(_f, "pixx")), 1); //#27041 + $k[$j++] = _f; //#27042 + $0.renmatrix(); //#27042 + $$.restore(); //#27044 }; $0.databarexpandedcomposite = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $search($1.barcode, "|"); - if ($k[--$j]) { - $1.linear = $k[--$j]; - $j--; - $1.comp = $k[--$j]; - } else { - $j--; - } - $$.save(); - $put($1.options, "lintype", "databarexpanded"); - $put($1.options, "linkage", true); - $put($1.options, "inkspread", "0"); - $put($1.options, "dontdraw", true); - $k[$j++] = $1.linear; - $k[$j++] = $1.options; - $0.databarexpanded(); - var _F = $k[--$j]; - $1.linsbs = $get(_F, "sbs"); - $1.linheight = $get($get(_F, "bhs"), 0) * 72; - $k[$j++] = _F; - $0.renlinear(); + var $1 = {}; //#27076 + $1.options = $k[--$j]; //#27078 + $1.barcode = $k[--$j]; //#27079 + $1.dontdraw = false; //#27081 + $forall($1.options, function() { //#27092 + var _3 = $k[--$j]; //#27092 + $1[$k[--$j]] = _3; //#27092 + }); //#27092 + $search($1.barcode, "|"); //#27095 + if ($k[--$j]) { //#27100 + $1.linear = $k[--$j]; //#27096 + $j--; //#27097 + $1.comp = $k[--$j]; //#27098 + } else { //#27100 + $j--; //#27100 + } //#27100 + $$.save(); //#27103 + $put($1.options, "lintype", "databarexpanded"); //#27105 + $put($1.options, "linkage", true); //#27106 + $put($1.options, "inkspread", "0"); //#27107 + $put($1.options, "dontdraw", true); //#27108 + $k[$j++] = $1.linear; //#27111 + $k[$j++] = $1.options; //#27111 + $0.databarexpanded(); //#27111 + var _F = $k[--$j]; //#27112 + $1.linsbs = $get(_F, "sbs"); //#27112 + $1.linheight = $get($get(_F, "bhs"), 0) * 72; //#27113 + $k[$j++] = _F; //#27114 + $0.renlinear(); //#27114 $1.sepfinder = function() { - $1.fp = $k[--$j]; - for (var _N = $1.fp, _M = $f($1.fp + 12); _N <= _M; _N += 1) { - $1.i = _N; - if ($get($1.bot, $1.i) == 0) { - if ($get($1.bot, $1.i - 1) == 1) { - $k[$j++] = 1; - } else { - var _X = $get($1.sep, $1.i - 1) == 0 ? 1 : 0; - $k[$j++] = _X; - } - } else { - $k[$j++] = 0; - } - $put($1.sep, $1.i, $k[--$j]); - } - }; - $k[$j++] = Infinity; - $k[$j++] = 0; - $forall($1.linsbs, function() { - var _c = $k[--$j]; - var _d = $k[--$j]; - var _e = _d == 1 ? 0 : 1; - $k[$j++] = _d; - for (var _f = 0, _g = _c; _f < _g; _f++) { - $k[$j++] = _e; - } - }); - $astore($a($counttomark() - 1)); - $1.bot = $k[--$j]; - $j -= 2; - $k[$j++] = Infinity; - $forall($1.bot, function() { - var _l = $k[--$j]; - $k[$j++] = $f(1 - _l); - }); - $1.sep = $a(); - $puti($1.sep, 0, $a([ 0, 0, 0 ])); - $puti($1.sep, $1.sep.length - 4, $a([ 0, 0, 0, 0 ])); - $k[$j++] = Infinity; - for (var _u = 18, _t = $1.bot.length - 13; _u <= _t; _u += 98) { - $k[$j++] = _u; - } - for (var _x = 69, _w = $1.bot.length - 13; _x <= _w; _x += 98) { - $k[$j++] = _x; - } - var _y = $a(); - for (var _z = 0, _10 = _y.length; _z < _10; _z++) { - $k[$j++] = $get(_y, _z); - $1.sepfinder(); - } - $$.rmoveto(0, $1.linheight); - var _17 = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.sep ], [ "pixx", $1.sep.length ], [ "pixy", 1 ], [ "height", 1 / 72 ], [ "width", $1.sep.length / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _17; - $0.renmatrix(); - $$.rmoveto(1, 1); - $k[$j++] = $1.comp; - $k[$j++] = $1.options; - $0["gs1-cc"](); - $0.renmatrix(); - $$.restore(); + $1.fp = $k[--$j]; //#27118 + for (var _N = $1.fp, _M = $f($1.fp + 12); _N <= _M; _N += 1) { //#27131 + $1.i = _N; //#27120 + if ($get($1.bot, $1.i) == 0) { //#27128 + if ($get($1.bot, $1.i - 1) == 1) { //#27125 + $k[$j++] = 1; //#27123 + } else { //#27125 + var _X = ($get($1.sep, $1.i - 1) == 0) ? 1 : 0; //#27125 + $k[$j++] = _X; //#27125 + } //#27125 + } else { //#27128 + $k[$j++] = 0; //#27128 + } //#27128 + $put($1.sep, $1.i, $k[--$j]); //#27130 + } //#27130 + }; //#27132 + $k[$j++] = Infinity; //#27133 + $k[$j++] = 0; //#27134 + $forall($1.linsbs, function() { //#27134 + var _c = $k[--$j]; //#27134 + var _d = $k[--$j]; //#27134 + var _e = (_d == 1) ? 0 : 1; //#27134 + $k[$j++] = _d; //#27134 + for (var _f = 0, _g = _c; _f < _g; _f++) { //#27134 + $k[$j++] = _e //#27134 + } //#27134 + }); //#27134 + $astore($a($counttomark() - 1)); //#27135 + $1.bot = $k[--$j]; //#27135 + $j -= 2; //#27135 + $k[$j++] = Infinity; //#27136 + $forall($1.bot, function() { //#27136 + var _l = $k[--$j]; //#27136 + $k[$j++] = $f(1 - _l); //#27136 + }); //#27136 + $1.sep = $a(); //#27136 + $puti($1.sep, 0, $a([0, 0, 0])); //#27137 + $puti($1.sep, $1.sep.length - 4, $a([0, 0, 0, 0])); //#27138 + $k[$j++] = Infinity; //#27141 + for (var _u = 18, _t = $1.bot.length - 13; _u <= _t; _u += 98) { //#27140 + $k[$j++] = _u; //#27140 + } //#27140 + for (var _x = 69, _w = $1.bot.length - 13; _x <= _w; _x += 98) { //#27141 + $k[$j++] = _x; //#27141 + } //#27141 + var _y = $a(); //#27141 + for (var _z = 0, _10 = _y.length; _z < _10; _z++) { //#27142 + $k[$j++] = $get(_y, _z); //#27142 + $1.sepfinder(); //#27142 + } //#27142 + $$.rmoveto(0, $1.linheight); //#27143 + var _17 = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.sep], + ["pixx", $1.sep.length], + ["pixy", 1], + ["height", 1 / 72], + ["width", $1.sep.length / 72], + ["opt", $1.options] + ]); //#27150 + $k[$j++] = _17; //#27151 + $0.renmatrix(); //#27151 + $$.rmoveto(1, 1); //#27154 + $k[$j++] = $1.comp; //#27154 + $k[$j++] = $1.options; //#27154 + $0["gs1-cc"](); //#27154 + $0.renmatrix(); //#27154 + $$.restore(); //#27156 }; $0.databarexpandedstackedcomposite = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $search($1.barcode, "|"); - if ($k[--$j]) { - $1.linear = $k[--$j]; - $j--; - $1.comp = $k[--$j]; - } else { - $j--; - } - $$.save(); - $put($1.options, "lintype", "databarexpandedstacked"); - $put($1.options, "linkage", true); - $put($1.options, "inkspread", "0"); - $put($1.options, "dontdraw", true); - $k[$j++] = $1.linear; - $k[$j++] = $1.options; - $0.databarexpandedstacked(); - var _F = $k[--$j]; - $1.bot = $geti($get(_F, "pixs"), 0, $get(_F, "pixx")); - $1.linheight = $get(_F, "pixy"); - $k[$j++] = _F; - $0.renmatrix(); + var $1 = {}; //#27187 + $1.options = $k[--$j]; //#27189 + $1.barcode = $k[--$j]; //#27190 + $1.dontdraw = false; //#27192 + $forall($1.options, function() { //#27203 + var _3 = $k[--$j]; //#27203 + $1[$k[--$j]] = _3; //#27203 + }); //#27203 + $search($1.barcode, "|"); //#27206 + if ($k[--$j]) { //#27211 + $1.linear = $k[--$j]; //#27207 + $j--; //#27208 + $1.comp = $k[--$j]; //#27209 + } else { //#27211 + $j--; //#27211 + } //#27211 + $$.save(); //#27214 + $put($1.options, "lintype", "databarexpandedstacked"); //#27216 + $put($1.options, "linkage", true); //#27217 + $put($1.options, "inkspread", "0"); //#27218 + $put($1.options, "dontdraw", true); //#27219 + $k[$j++] = $1.linear; //#27222 + $k[$j++] = $1.options; //#27222 + $0.databarexpandedstacked(); //#27222 + var _F = $k[--$j]; //#27223 + $1.bot = $geti($get(_F, "pixs"), 0, $get(_F, "pixx")); //#27223 + $1.linheight = $get(_F, "pixy"); //#27224 + $k[$j++] = _F; //#27225 + $0.renmatrix(); //#27225 $1.sepfinder = function() { - $1.fp = $k[--$j]; - for (var _O = $1.fp, _N = $f($1.fp + 12); _O <= _N; _O += 1) { - $1.i = _O; - if ($get($1.bot, $1.i) == 0) { - if ($get($1.bot, $1.i - 1) == 1) { - $k[$j++] = 1; - } else { - var _Y = $get($1.sep, $1.i - 1) == 0 ? 1 : 0; - $k[$j++] = _Y; - } - } else { - $k[$j++] = 0; - } - $put($1.sep, $1.i, $k[--$j]); - } - }; - $k[$j++] = Infinity; - var _c = $1.bot; - for (var _d = 0, _e = _c.length; _d < _e; _d++) { - $k[$j++] = $f(1 - $get(_c, _d)); - } - $1.sep = $a(); - $puti($1.sep, 0, $a([ 0, 0, 0, 0 ])); - $puti($1.sep, $1.sep.length - 4, $a([ 0, 0, 0, 0 ])); - $k[$j++] = Infinity; - for (var _o = 19, _n = $1.bot.length - 13; _o <= _n; _o += 98) { - $k[$j++] = _o; - } - for (var _r = 70, _q = $1.bot.length - 13; _r <= _q; _r += 98) { - $k[$j++] = _r; - } - var _s = $a(); - for (var _t = 0, _u = _s.length; _t < _u; _t++) { - $k[$j++] = $get(_s, _t); - $1.sepfinder(); - } - $$.rmoveto(0, $1.linheight); - var _11 = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.sep ], [ "pixx", $1.sep.length ], [ "pixy", 1 ], [ "height", 1 / 72 ], [ "width", $1.sep.length / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _11; - $0.renmatrix(); - var _14 = $get($1.bot, 0) == 0 ? 2 : 0; - $$.rmoveto(_14, 1); - $k[$j++] = $1.comp; - $k[$j++] = $1.options; - $0["gs1-cc"](); - $0.renmatrix(); - $$.restore(); - }; - $0["gs1-128composite"] = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $search($1.barcode, "|"); - if ($k[--$j]) { - $1.linear = $k[--$j]; - $j--; - $1.comp = $k[--$j]; - } else { - $j--; - } - $$.save(); - $put($1.options, "inkspread", "0"); - $put($1.options, "dontdraw", true); - $put($1.options, "linkagea", true); - $k[$j++] = $1.linear; - $k[$j++] = Infinity; - $forall($1.options); - var _E = $d(); - $k[$j++] = _E; - $0["gs1-128"](); - var _G = $get($k[--$j], "sbs"); - $k[$j++] = 0; - $forall(_G, function() { - var _H = $k[--$j]; - var _I = $k[--$j]; - $k[$j++] = $f(_I + _H); - }); - $1.linwidth = $k[--$j]; - $put($1.options, "lintype", "gs1-128"); - $put($1.options, "linwidth", $1.linwidth); - $k[$j++] = $1.comp; - $k[$j++] = $1.options; - $0["gs1-cc"](); - $1.compsym = $k[--$j]; - if ($get($1.compsym, "pixx") == 99) { - $k[$j++] = "a"; - } else { - $k[$j++] = "c"; - } - $1.linktype = $k[--$j]; - if ($eq($1.linktype, "a")) { - $put($1.options, "linkagea", true); - $put($1.options, "linkagec", false); - } else { - $put($1.options, "linkagea", false); - $put($1.options, "linkagec", true); - } - $k[$j++] = $1.linear; - $k[$j++] = Infinity; - $forall($1.options); - var _a = $d(); - $k[$j++] = _a; - $0["gs1-128"](); - var _b = $k[--$j]; - $1.linsbs = $get(_b, "sbs"); - $1.linheight = $get($get(_b, "bhs"), 0) * 72; - $k[$j++] = _b; - $0.renlinear(); - $k[$j++] = Infinity; - $k[$j++] = 1; - $forall($1.linsbs, function() { - var _g = $k[--$j]; - var _h = $k[--$j]; - var _i = _h == 0 ? 1 : 0; - $k[$j++] = _h; - for (var _j = 0, _k = _g; _j < _k; _j++) { - $k[$j++] = _i; - } - }); - $astore($a($counttomark() - 1)); - $1.sep = $k[--$j]; - $j -= 2; - $$.rmoveto(0, $1.linheight); - var _t = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.sep ], [ "pixx", $1.sep.length ], [ "pixy", 1 ], [ "height", 1 / 72 ], [ "width", $1.sep.length / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _t; - $0.renmatrix(); - if ($eq($1.linktype, "a")) { - $1.s = ~~($f($1.linwidth - 2) / 11); - $1.p = ~~(($1.s - 9) / 2); - $k[$j++] = "x"; - $k[$j++] = ($1.s - $1.p - 1) * 11 + 10; - if ($1.p == 0) { - var _10 = $k[--$j]; - $k[$j++] = $f(_10 + 2); - } - var _11 = $k[--$j]; - $1[$k[--$j]] = $f(_11 - 99); - $$.rmoveto($1.x, 1); - } else { - $$.rmoveto(-7, 1); - } - $k[$j++] = $1.compsym; - $0.renmatrix(); - $$.restore(); + $1.fp = $k[--$j]; //#27229 + for (var _O = $1.fp, _N = $f($1.fp + 12); _O <= _N; _O += 1) { //#27242 + $1.i = _O; //#27231 + if ($get($1.bot, $1.i) == 0) { //#27239 + if ($get($1.bot, $1.i - 1) == 1) { //#27236 + $k[$j++] = 1; //#27234 + } else { //#27236 + var _Y = ($get($1.sep, $1.i - 1) == 0) ? 1 : 0; //#27236 + $k[$j++] = _Y; //#27236 + } //#27236 + } else { //#27239 + $k[$j++] = 0; //#27239 + } //#27239 + $put($1.sep, $1.i, $k[--$j]); //#27241 + } //#27241 + }; //#27243 + $k[$j++] = Infinity; //#27244 + var _c = $1.bot; //#27244 + for (var _d = 0, _e = _c.length; _d < _e; _d++) { //#27244 + $k[$j++] = $f(1 - $get(_c, _d)); //#27244 + } //#27244 + $1.sep = $a(); //#27244 + $puti($1.sep, 0, $a([0, 0, 0, 0])); //#27245 + $puti($1.sep, $1.sep.length - 4, $a([0, 0, 0, 0])); //#27246 + $k[$j++] = Infinity; //#27249 + for (var _o = 19, _n = $1.bot.length - 13; _o <= _n; _o += 98) { //#27248 + $k[$j++] = _o; //#27248 + } //#27248 + for (var _r = 70, _q = $1.bot.length - 13; _r <= _q; _r += 98) { //#27249 + $k[$j++] = _r; //#27249 + } //#27249 + var _s = $a(); //#27249 + for (var _t = 0, _u = _s.length; _t < _u; _t++) { //#27250 + $k[$j++] = $get(_s, _t); //#27250 + $1.sepfinder(); //#27250 + } //#27250 + $$.rmoveto(0, $1.linheight); //#27251 + var _11 = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.sep], + ["pixx", $1.sep.length], + ["pixy", 1], + ["height", 1 / 72], + ["width", $1.sep.length / 72], + ["opt", $1.options] + ]); //#27258 + $k[$j++] = _11; //#27259 + $0.renmatrix(); //#27259 + var _14 = ($get($1.bot, 0) == 0) ? 2 : 0; //#27262 + $$.rmoveto(_14, 1); //#27262 + $k[$j++] = $1.comp; //#27263 + $k[$j++] = $1.options; //#27263 + $0["gs1-cc"](); //#27263 + $0.renmatrix(); //#27263 + $$.restore(); //#27265 + }; + $0['gs1-128composite'] = function() { + var $1 = {}; //#27297 + $1.options = $k[--$j]; //#27299 + $1.barcode = $k[--$j]; //#27300 + $1.dontdraw = false; //#27302 + $forall($1.options, function() { //#27313 + var _3 = $k[--$j]; //#27313 + $1[$k[--$j]] = _3; //#27313 + }); //#27313 + $search($1.barcode, "|"); //#27316 + if ($k[--$j]) { //#27321 + $1.linear = $k[--$j]; //#27317 + $j--; //#27318 + $1.comp = $k[--$j]; //#27319 + } else { //#27321 + $j--; //#27321 + } //#27321 + $$.save(); //#27324 + $put($1.options, "inkspread", "0"); //#27326 + $put($1.options, "dontdraw", true); //#27327 + $put($1.options, "linkagea", true); //#27330 + $k[$j++] = $1.linear; //#27331 + $k[$j++] = Infinity; //#27331 + $forall($1.options); //#27331 + var _E = $d(); //#27331 + $k[$j++] = _E; //#27331 + $0["gs1-128"](); //#27331 + var _G = $get($k[--$j], "sbs"); //#27332 + $k[$j++] = 0; //#27332 + $forall(_G, function() { //#27332 + var _H = $k[--$j]; //#27332 + var _I = $k[--$j]; //#27332 + $k[$j++] = $f(_I + _H); //#27332 + }); //#27332 + $1.linwidth = $k[--$j]; //#27332 + $put($1.options, "lintype", "gs1-128"); //#27335 + $put($1.options, "linwidth", $1.linwidth); //#27336 + $k[$j++] = $1.comp; //#27337 + $k[$j++] = $1.options; //#27337 + $0["gs1-cc"](); //#27337 + $1.compsym = $k[--$j]; //#27337 + if ($get($1.compsym, "pixx") == 99) { //#27338 + $k[$j++] = "a"; //#27338 + } else { //#27338 + $k[$j++] = "c"; //#27338 + } //#27338 + $1.linktype = $k[--$j]; //#27338 + if ($eq($1.linktype, "a")) { //#27346 + $put($1.options, "linkagea", true); //#27342 + $put($1.options, "linkagec", false); //#27343 + } else { //#27346 + $put($1.options, "linkagea", false); //#27345 + $put($1.options, "linkagec", true); //#27346 + } //#27346 + $k[$j++] = $1.linear; //#27348 + $k[$j++] = Infinity; //#27348 + $forall($1.options); //#27348 + var _a = $d(); //#27348 + $k[$j++] = _a; //#27348 + $0["gs1-128"](); //#27348 + var _b = $k[--$j]; //#27349 + $1.linsbs = $get(_b, "sbs"); //#27349 + $1.linheight = $get($get(_b, "bhs"), 0) * 72; //#27350 + $k[$j++] = _b; //#27351 + $0.renlinear(); //#27351 + $k[$j++] = Infinity; //#27354 + $k[$j++] = 1; //#27355 + $forall($1.linsbs, function() { //#27355 + var _g = $k[--$j]; //#27355 + var _h = $k[--$j]; //#27355 + var _i = (_h == 0) ? 1 : 0; //#27355 + $k[$j++] = _h; //#27355 + for (var _j = 0, _k = _g; _j < _k; _j++) { //#27355 + $k[$j++] = _i //#27355 + } //#27355 + }); //#27355 + $astore($a($counttomark() - 1)); //#27356 + $1.sep = $k[--$j]; //#27356 + $j -= 2; //#27356 + $$.rmoveto(0, $1.linheight); //#27357 + var _t = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.sep], + ["pixx", $1.sep.length], + ["pixy", 1], + ["height", 1 / 72], + ["width", $1.sep.length / 72], + ["opt", $1.options] + ]); //#27364 + $k[$j++] = _t; //#27365 + $0.renmatrix(); //#27365 + if ($eq($1.linktype, "a")) { //#27374 + $1.s = ~~($f($1.linwidth - 2) / 11); //#27369 + $1.p = ~~(($1.s - 9) / 2); //#27370 + $k[$j++] = 'x'; //#27371 + $k[$j++] = ((($1.s - $1.p) - 1) * 11) + 10; //#27371 + if ($1.p == 0) { //#27371 + var _10 = $k[--$j]; //#27371 + $k[$j++] = $f(_10 + 2); //#27371 + } //#27371 + var _11 = $k[--$j]; //#27371 + $1[$k[--$j]] = $f(_11 - 99); //#27371 + $$.rmoveto($1.x, 1); //#27372 + } else { //#27374 + $$.rmoveto(-7, 1); //#27374 + } //#27374 + $k[$j++] = $1.compsym; //#27377 + $0.renmatrix(); //#27377 + $$.restore(); //#27379 }; $0.gs1datamatrix = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.parse = false; - $1.dontlint = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); + var $1 = {}; //#27411 + $1.options = $k[--$j]; //#27413 + $1.barcode = $k[--$j]; //#27414 + $1.dontdraw = false; //#27416 + $1.parse = false; //#27417 + $1.dontlint = false; //#27418 + $forall($1.options, function() { //#27429 + var _3 = $k[--$j]; //#27429 + $1[$k[--$j]] = _3; //#27429 + }); //#27429 $1.expand = function() { - var _6 = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _6; - $k[$j++] = $1.fncvals; - $0.parseinput(); - }; - $1.ais = $a([]); - $1.vals = $a([]); - var _A = $1.barcode; - $k[$j++] = $geti(_A, 1, _A.length - 1); - for (;;) { - var _C = $k[--$j]; - $k[$j++] = _C; - if ($eq(_C, "")) { - break; - } - $search($k[--$j], ")"); - $j--; - var _E = $k[--$j]; - var _F = $k[--$j]; - $k[$j++] = _E; - $k[$j++] = _F; - $j--; - var _G = $k[--$j]; - var _H = $k[--$j]; - $k[$j++] = _G; - $search(_H, "("); - if ($k[--$j]) { - var _J = $k[--$j]; - var _K = $k[--$j]; - $k[$j++] = _J; - $k[$j++] = _K; - $j--; - var _L = $k[--$j]; - var _M = $k[--$j]; - var _N = $k[--$j]; - $k[$j++] = _M; - $k[$j++] = _N; - $k[$j++] = _L; - } else { - var _O = $k[--$j]; - var _P = $k[--$j]; - $k[$j++] = ""; - $k[$j++] = _P; - $k[$j++] = _O; - } - $k[$j++] = Infinity; - $aload($1.ais); - var _S = $k[$j - 1 - ($counttomark() + 2)]; - $k[$j++] = _S; - $1.ais = $a(); - $k[$j++] = Infinity; - $aload($1.vals); - var _W = $k[$j - 1 - ($counttomark() + 1)]; - $k[$j++] = _W; - $1.expand(); - $1.vals = $a(); - $j -= 2; - } - $j--; - if (!$1.dontlint) { - $k[$j++] = $1.ais; - $k[$j++] = $1.vals; - $0.gs1lint(); - $j--; - } - $1.aifixed = new Map(); - $k[$j++] = Infinity; - for (var _b = 0; _b <= 4; _b += 1) { - $k[$j++] = _b; - } - var _c = $a(); - for (var _d = 0, _e = _c.length; _d < _e; _d++) { - var _h = $strcpy($s(2), "00"); - $put(_h, 1, $f($get(_c, _d) + 48)); - $put($1.aifixed, _h, _h); - } - $k[$j++] = Infinity; - for (var _j = 11; _j <= 20; _j += 1) { - $k[$j++] = _j; - } - $k[$j++] = 23; - for (var _k = 31; _k <= 36; _k += 1) { - $k[$j++] = _k; - } - $k[$j++] = 41; - var _l = $a(); - for (var _m = 0, _n = _l.length; _m < _n; _m++) { - var _q = $cvrs($s(2), $get(_l, _m), 10); - $put($1.aifixed, _q, _q); - } - $1.fnc1 = -1; - $1.dmtx = $a([ $1.fnc1 ]); - for (var _w = 0, _v = $1.ais.length - 1; _w <= _v; _w += 1) { - $1.i = _w; - $1.ai = $get($1.ais, $1.i); - $1.val = $get($1.vals, $1.i); - var _16 = $a($1.dmtx.length + $1.ai.length + $1.val.length); - $puti(_16, 0, $1.dmtx); - $k[$j++] = _16; - $k[$j++] = _16; - $k[$j++] = $1.dmtx.length; - $k[$j++] = Infinity; - var _1B = $1.ai; - $forall(_1B); - var _1C = $a(); - var _1D = $k[--$j]; - $puti($k[--$j], _1D, _1C); - var _1F = $k[--$j]; - $k[$j++] = _1F; - $k[$j++] = _1F; - $k[$j++] = $1.dmtx.length + $1.ai.length; - $k[$j++] = Infinity; - var _1K = $1.val; - $forall(_1K); - var _1L = $a(); - var _1M = $k[--$j]; - $puti($k[--$j], _1M, _1L); - $1.dmtx = $k[--$j]; - var _1U = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; - if ($1.i != $1.ais.length - 1 && !_1U) { - var _1W = $a($1.dmtx.length + 1); - $puti(_1W, 0, $1.dmtx); - $put(_1W, $1.dmtx.length, $1.fnc1); - $1.dmtx = _1W; - } - } - $1.barcode = $s(($1.dmtx.length + 1) * 5); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.dmtx.length) { - break; - } - var _1g = $get($1.dmtx, $1.i); - $k[$j++] = _1g; - if (_1g == $1.fnc1) { - $j--; - $puti($1.barcode, $1.j, "^FNC1"); - $1.j = $1.j + 4; - } else { - $put($1.barcode, $1.j, $k[--$j]); - } - $1.i = $1.i + 1; - $1.j = $1.j + 1; - } - $1.barcode = $geti($1.barcode, 0, $1.j); - delete $1.options["parse"]; - $put($1.options, "dontdraw", true); - $put($1.options, "parsefnc", true); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.datamatrix(); - var _1y = $k[--$j]; - $1[$k[--$j]] = _1y; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var _6 = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#27436 + $1.fncvals = _6; //#27437 + $k[$j++] = $1.fncvals; //#27438 + $0.parseinput(); //#27438 + }; //#27439 + $1.ais = $a([]); //#27442 + $1.vals = $a([]); //#27443 + var _A = $1.barcode; //#27444 + $k[$j++] = $geti(_A, 1, _A.length - 1); //#27457 + for (;;) { //#27457 + var _C = $k[--$j]; //#27446 + $k[$j++] = _C; //#27446 + if ($eq(_C, "")) { //#27446 + break; //#27446 + } //#27446 + $search($k[--$j], ")"); //#27447 + $j--; //#27447 + var _E = $k[--$j]; //#27448 + var _F = $k[--$j]; //#27448 + $k[$j++] = _E; //#27448 + $k[$j++] = _F; //#27448 + $j--; //#27448 + var _G = $k[--$j]; //#27449 + var _H = $k[--$j]; //#27449 + $k[$j++] = _G; //#27449 + $search(_H, "("); //#27449 + if ($k[--$j]) { //#27452 + var _J = $k[--$j]; //#27450 + var _K = $k[--$j]; //#27450 + $k[$j++] = _J; //#27450 + $k[$j++] = _K; //#27450 + $j--; //#27450 + var _L = $k[--$j]; //#27450 + var _M = $k[--$j]; //#27450 + var _N = $k[--$j]; //#27450 + $k[$j++] = _M; //#27450 + $k[$j++] = _N; //#27450 + $k[$j++] = _L; //#27450 + } else { //#27452 + var _O = $k[--$j]; //#27452 + var _P = $k[--$j]; //#27452 + $k[$j++] = ""; //#27452 + $k[$j++] = _P; //#27452 + $k[$j++] = _O; //#27452 + } //#27452 + $k[$j++] = Infinity; //#27454 + $aload($1.ais); //#27454 + var _S = $k[$j - 1 - ($counttomark() + 2)]; //#27454 + $k[$j++] = _S; //#27454 + $1.ais = $a(); //#27454 + $k[$j++] = Infinity; //#27455 + $aload($1.vals); //#27455 + var _W = $k[$j - 1 - ($counttomark() + 1)]; //#27455 + $k[$j++] = _W; //#27455 + $1.expand(); //#27455 + $1.vals = $a(); //#27455 + $j -= 2; //#27456 + } //#27456 + $j--; //#27458 + if (!$1.dontlint) { //#27460 + $k[$j++] = $1.ais; //#27460 + $k[$j++] = $1.vals; //#27460 + $0.gs1lint(); //#27460 + $j--; //#27460 + } //#27460 + $1.aifixed = new Map; //#27465 + $k[$j++] = Infinity; //#27467 + for (var _b = 0; _b <= 4; _b += 1) { //#27467 + $k[$j++] = _b; //#27467 + } //#27467 + var _c = $a(); //#27467 + for (var _d = 0, _e = _c.length; _d < _e; _d++) { //#27470 + var _h = $strcpy($s(2), "00"); //#27469 + $put(_h, 1, $f($get(_c, _d) + 48)); //#27469 + $put($1.aifixed, _h, _h); //#27469 + } //#27469 + $k[$j++] = Infinity; //#27475 + for (var _j = 11; _j <= 20; _j += 1) { //#27472 + $k[$j++] = _j; //#27472 + } //#27472 + $k[$j++] = 23; //#27474 + for (var _k = 31; _k <= 36; _k += 1) { //#27474 + $k[$j++] = _k; //#27474 + } //#27474 + $k[$j++] = 41; //#27475 + var _l = $a(); //#27475 + for (var _m = 0, _n = _l.length; _m < _n; _m++) { //#27478 + var _q = $cvrs($s(2), $get(_l, _m), 10); //#27477 + $put($1.aifixed, _q, _q); //#27477 + } //#27477 + $1.fnc1 = -1; //#27481 + $1.dmtx = $a([$1.fnc1]); //#27482 + for (var _w = 0, _v = $1.ais.length - 1; _w <= _v; _w += 1) { //#27498 + $1.i = _w; //#27484 + $1.ai = $get($1.ais, $1.i); //#27485 + $1.val = $get($1.vals, $1.i); //#27486 + var _16 = $a(($1.dmtx.length + $1.ai.length) + $1.val.length); //#27487 + $puti(_16, 0, $1.dmtx); //#27488 + $k[$j++] = _16; //#27489 + $k[$j++] = _16; //#27489 + $k[$j++] = $1.dmtx.length; //#27489 + $k[$j++] = $1.ai; //#27489 + $k[$j++] = Infinity; //#27489 + var _1A = $k[--$j]; //#27489 + var _1B = $k[--$j]; //#27489 + $k[$j++] = _1A; //#27489 + $forall(_1B); //#27489 + var _1C = $a(); //#27489 + var _1D = $k[--$j]; //#27489 + $puti($k[--$j], _1D, _1C); //#27489 + var _1F = $k[--$j]; //#27490 + $k[$j++] = _1F; //#27490 + $k[$j++] = _1F; //#27490 + $k[$j++] = $1.dmtx.length + $1.ai.length; //#27490 + $k[$j++] = $1.val; //#27490 + $k[$j++] = Infinity; //#27490 + var _1J = $k[--$j]; //#27490 + var _1K = $k[--$j]; //#27490 + $k[$j++] = _1J; //#27490 + $forall(_1K); //#27490 + var _1L = $a(); //#27490 + var _1M = $k[--$j]; //#27490 + $puti($k[--$j], _1M, _1L); //#27490 + $1.dmtx = $k[--$j]; //#27491 + var _1U = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; //#27492 + if (($1.i != ($1.ais.length - 1)) && (!_1U)) { //#27497 + var _1W = $a($1.dmtx.length + 1); //#27493 + $puti(_1W, 0, $1.dmtx); //#27494 + $put(_1W, $1.dmtx.length, $1.fnc1); //#27495 + $1.dmtx = _1W; //#27496 + } //#27496 + } //#27496 + $1.barcode = $s(($1.dmtx.length + 1) * 5); //#27501 + $1.i = 0; //#27502 + $1.j = 0; //#27502 + for (;;) { //#27512 + if ($1.i == $1.dmtx.length) { //#27503 + break; //#27503 + } //#27503 + var _1g = $get($1.dmtx, $1.i); //#27504 + $k[$j++] = _1g; //#27509 + if (_1g == $1.fnc1) { //#27508 + $j--; //#27505 + $puti($1.barcode, $1.j, "^FNC1"); //#27505 + $1.j = $1.j + 4; //#27506 + } else { //#27508 + $put($1.barcode, $1.j, $k[--$j]); //#27508 + } //#27508 + $1.i = $1.i + 1; //#27510 + $1.j = $1.j + 1; //#27511 + } //#27511 + $1.barcode = $geti($1.barcode, 0, $1.j); //#27513 + delete $1.options["parse"]; //#27516 + $put($1.options, "dontdraw", true); //#27517 + $put($1.options, "parsefnc", true); //#27518 + $k[$j++] = 'args'; //#27519 + $k[$j++] = $1.barcode; //#27519 + $k[$j++] = $1.options; //#27519 + $0.datamatrix(); //#27519 + var _1y = $k[--$j]; //#27519 + $1[$k[--$j]] = _1y; //#27519 + $put($1.args, "opt", $1.options); //#27521 + $k[$j++] = $1.args; //#27524 + if (!$1.dontdraw) { //#27524 + $0.renmatrix(); //#27524 + } //#27524 }; $0.gs1datamatrixrectangular = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.parse = false; - $1.dontlint = false; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); + var $1 = {}; //#27556 + $1.options = $k[--$j]; //#27558 + $1.barcode = $k[--$j]; //#27559 + $1.parse = false; //#27561 + $1.dontlint = false; //#27562 + $1.dontdraw = false; //#27563 + $forall($1.options, function() { //#27574 + var _3 = $k[--$j]; //#27574 + $1[$k[--$j]] = _3; //#27574 + }); //#27574 $1.expand = function() { - var _6 = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _6; - $k[$j++] = $1.fncvals; - $0.parseinput(); - }; - $1.ais = $a([]); - $1.vals = $a([]); - var _A = $1.barcode; - $k[$j++] = $geti(_A, 1, _A.length - 1); - for (;;) { - var _C = $k[--$j]; - $k[$j++] = _C; - if ($eq(_C, "")) { - break; - } - $search($k[--$j], ")"); - $j--; - var _E = $k[--$j]; - var _F = $k[--$j]; - $k[$j++] = _E; - $k[$j++] = _F; - $j--; - var _G = $k[--$j]; - var _H = $k[--$j]; - $k[$j++] = _G; - $search(_H, "("); - if ($k[--$j]) { - var _J = $k[--$j]; - var _K = $k[--$j]; - $k[$j++] = _J; - $k[$j++] = _K; - $j--; - var _L = $k[--$j]; - var _M = $k[--$j]; - var _N = $k[--$j]; - $k[$j++] = _M; - $k[$j++] = _N; - $k[$j++] = _L; - } else { - var _O = $k[--$j]; - var _P = $k[--$j]; - $k[$j++] = ""; - $k[$j++] = _P; - $k[$j++] = _O; - } - $k[$j++] = Infinity; - $aload($1.ais); - var _S = $k[$j - 1 - ($counttomark() + 2)]; - $k[$j++] = _S; - $1.ais = $a(); - $k[$j++] = Infinity; - $aload($1.vals); - var _W = $k[$j - 1 - ($counttomark() + 1)]; - $k[$j++] = _W; - $1.expand(); - $1.vals = $a(); - $j -= 2; - } - $j--; - if (!$1.dontlint) { - $k[$j++] = $1.ais; - $k[$j++] = $1.vals; - $0.gs1lint(); - $j--; - } - $1.aifixed = new Map(); - $k[$j++] = Infinity; - for (var _b = 0; _b <= 4; _b += 1) { - $k[$j++] = _b; - } - var _c = $a(); - for (var _d = 0, _e = _c.length; _d < _e; _d++) { - var _h = $strcpy($s(2), "00"); - $put(_h, 1, $f($get(_c, _d) + 48)); - $put($1.aifixed, _h, _h); - } - $k[$j++] = Infinity; - for (var _j = 11; _j <= 20; _j += 1) { - $k[$j++] = _j; - } - $k[$j++] = 23; - for (var _k = 31; _k <= 36; _k += 1) { - $k[$j++] = _k; - } - $k[$j++] = 41; - var _l = $a(); - for (var _m = 0, _n = _l.length; _m < _n; _m++) { - var _q = $cvrs($s(2), $get(_l, _m), 10); - $put($1.aifixed, _q, _q); - } - $1.fnc1 = -1; - $1.dmtx = $a([ $1.fnc1 ]); - for (var _w = 0, _v = $1.ais.length - 1; _w <= _v; _w += 1) { - $1.i = _w; - $1.ai = $get($1.ais, $1.i); - $1.val = $get($1.vals, $1.i); - var _16 = $a($1.dmtx.length + $1.ai.length + $1.val.length); - $puti(_16, 0, $1.dmtx); - $k[$j++] = _16; - $k[$j++] = _16; - $k[$j++] = $1.dmtx.length; - $k[$j++] = Infinity; - var _1B = $1.ai; - $forall(_1B); - var _1C = $a(); - var _1D = $k[--$j]; - $puti($k[--$j], _1D, _1C); - var _1F = $k[--$j]; - $k[$j++] = _1F; - $k[$j++] = _1F; - $k[$j++] = $1.dmtx.length + $1.ai.length; - $k[$j++] = Infinity; - var _1K = $1.val; - $forall(_1K); - var _1L = $a(); - var _1M = $k[--$j]; - $puti($k[--$j], _1M, _1L); - $1.dmtx = $k[--$j]; - var _1U = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; - if ($1.i != $1.ais.length - 1 && !_1U) { - var _1W = $a($1.dmtx.length + 1); - $puti(_1W, 0, $1.dmtx); - $put(_1W, $1.dmtx.length, $1.fnc1); - $1.dmtx = _1W; - } - } - $1.barcode = $s(($1.dmtx.length + 1) * 5); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.dmtx.length) { - break; - } - var _1g = $get($1.dmtx, $1.i); - $k[$j++] = _1g; - if (_1g == $1.fnc1) { - $j--; - $puti($1.barcode, $1.j, "^FNC1"); - $1.j = $1.j + 4; - } else { - $put($1.barcode, $1.j, $k[--$j]); - } - $1.i = $1.i + 1; - $1.j = $1.j + 1; - } - $1.barcode = $geti($1.barcode, 0, $1.j); - delete $1.options["parse"]; - $put($1.options, "dontdraw", true); - $put($1.options, "parsefnc", true); - $put($1.options, "format", "rectangle"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.datamatrix(); - var _1z = $k[--$j]; - $1[$k[--$j]] = _1z; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var _6 = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#27581 + $1.fncvals = _6; //#27582 + $k[$j++] = $1.fncvals; //#27583 + $0.parseinput(); //#27583 + }; //#27584 + $1.ais = $a([]); //#27587 + $1.vals = $a([]); //#27588 + var _A = $1.barcode; //#27589 + $k[$j++] = $geti(_A, 1, _A.length - 1); //#27602 + for (;;) { //#27602 + var _C = $k[--$j]; //#27591 + $k[$j++] = _C; //#27591 + if ($eq(_C, "")) { //#27591 + break; //#27591 + } //#27591 + $search($k[--$j], ")"); //#27592 + $j--; //#27592 + var _E = $k[--$j]; //#27593 + var _F = $k[--$j]; //#27593 + $k[$j++] = _E; //#27593 + $k[$j++] = _F; //#27593 + $j--; //#27593 + var _G = $k[--$j]; //#27594 + var _H = $k[--$j]; //#27594 + $k[$j++] = _G; //#27594 + $search(_H, "("); //#27594 + if ($k[--$j]) { //#27597 + var _J = $k[--$j]; //#27595 + var _K = $k[--$j]; //#27595 + $k[$j++] = _J; //#27595 + $k[$j++] = _K; //#27595 + $j--; //#27595 + var _L = $k[--$j]; //#27595 + var _M = $k[--$j]; //#27595 + var _N = $k[--$j]; //#27595 + $k[$j++] = _M; //#27595 + $k[$j++] = _N; //#27595 + $k[$j++] = _L; //#27595 + } else { //#27597 + var _O = $k[--$j]; //#27597 + var _P = $k[--$j]; //#27597 + $k[$j++] = ""; //#27597 + $k[$j++] = _P; //#27597 + $k[$j++] = _O; //#27597 + } //#27597 + $k[$j++] = Infinity; //#27599 + $aload($1.ais); //#27599 + var _S = $k[$j - 1 - ($counttomark() + 2)]; //#27599 + $k[$j++] = _S; //#27599 + $1.ais = $a(); //#27599 + $k[$j++] = Infinity; //#27600 + $aload($1.vals); //#27600 + var _W = $k[$j - 1 - ($counttomark() + 1)]; //#27600 + $k[$j++] = _W; //#27600 + $1.expand(); //#27600 + $1.vals = $a(); //#27600 + $j -= 2; //#27601 + } //#27601 + $j--; //#27603 + if (!$1.dontlint) { //#27605 + $k[$j++] = $1.ais; //#27605 + $k[$j++] = $1.vals; //#27605 + $0.gs1lint(); //#27605 + $j--; //#27605 + } //#27605 + $1.aifixed = new Map; //#27610 + $k[$j++] = Infinity; //#27612 + for (var _b = 0; _b <= 4; _b += 1) { //#27612 + $k[$j++] = _b; //#27612 + } //#27612 + var _c = $a(); //#27612 + for (var _d = 0, _e = _c.length; _d < _e; _d++) { //#27615 + var _h = $strcpy($s(2), "00"); //#27614 + $put(_h, 1, $f($get(_c, _d) + 48)); //#27614 + $put($1.aifixed, _h, _h); //#27614 + } //#27614 + $k[$j++] = Infinity; //#27620 + for (var _j = 11; _j <= 20; _j += 1) { //#27617 + $k[$j++] = _j; //#27617 + } //#27617 + $k[$j++] = 23; //#27619 + for (var _k = 31; _k <= 36; _k += 1) { //#27619 + $k[$j++] = _k; //#27619 + } //#27619 + $k[$j++] = 41; //#27620 + var _l = $a(); //#27620 + for (var _m = 0, _n = _l.length; _m < _n; _m++) { //#27623 + var _q = $cvrs($s(2), $get(_l, _m), 10); //#27622 + $put($1.aifixed, _q, _q); //#27622 + } //#27622 + $1.fnc1 = -1; //#27626 + $1.dmtx = $a([$1.fnc1]); //#27627 + for (var _w = 0, _v = $1.ais.length - 1; _w <= _v; _w += 1) { //#27643 + $1.i = _w; //#27629 + $1.ai = $get($1.ais, $1.i); //#27630 + $1.val = $get($1.vals, $1.i); //#27631 + var _16 = $a(($1.dmtx.length + $1.ai.length) + $1.val.length); //#27632 + $puti(_16, 0, $1.dmtx); //#27633 + $k[$j++] = _16; //#27634 + $k[$j++] = _16; //#27634 + $k[$j++] = $1.dmtx.length; //#27634 + $k[$j++] = $1.ai; //#27634 + $k[$j++] = Infinity; //#27634 + var _1A = $k[--$j]; //#27634 + var _1B = $k[--$j]; //#27634 + $k[$j++] = _1A; //#27634 + $forall(_1B); //#27634 + var _1C = $a(); //#27634 + var _1D = $k[--$j]; //#27634 + $puti($k[--$j], _1D, _1C); //#27634 + var _1F = $k[--$j]; //#27635 + $k[$j++] = _1F; //#27635 + $k[$j++] = _1F; //#27635 + $k[$j++] = $1.dmtx.length + $1.ai.length; //#27635 + $k[$j++] = $1.val; //#27635 + $k[$j++] = Infinity; //#27635 + var _1J = $k[--$j]; //#27635 + var _1K = $k[--$j]; //#27635 + $k[$j++] = _1J; //#27635 + $forall(_1K); //#27635 + var _1L = $a(); //#27635 + var _1M = $k[--$j]; //#27635 + $puti($k[--$j], _1M, _1L); //#27635 + $1.dmtx = $k[--$j]; //#27636 + var _1U = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; //#27637 + if (($1.i != ($1.ais.length - 1)) && (!_1U)) { //#27642 + var _1W = $a($1.dmtx.length + 1); //#27638 + $puti(_1W, 0, $1.dmtx); //#27639 + $put(_1W, $1.dmtx.length, $1.fnc1); //#27640 + $1.dmtx = _1W; //#27641 + } //#27641 + } //#27641 + $1.barcode = $s(($1.dmtx.length + 1) * 5); //#27646 + $1.i = 0; //#27647 + $1.j = 0; //#27647 + for (;;) { //#27657 + if ($1.i == $1.dmtx.length) { //#27648 + break; //#27648 + } //#27648 + var _1g = $get($1.dmtx, $1.i); //#27649 + $k[$j++] = _1g; //#27654 + if (_1g == $1.fnc1) { //#27653 + $j--; //#27650 + $puti($1.barcode, $1.j, "^FNC1"); //#27650 + $1.j = $1.j + 4; //#27651 + } else { //#27653 + $put($1.barcode, $1.j, $k[--$j]); //#27653 + } //#27653 + $1.i = $1.i + 1; //#27655 + $1.j = $1.j + 1; //#27656 + } //#27656 + $1.barcode = $geti($1.barcode, 0, $1.j); //#27658 + delete $1.options["parse"]; //#27661 + $put($1.options, "dontdraw", true); //#27662 + $put($1.options, "parsefnc", true); //#27663 + $put($1.options, "format", "rectangle"); //#27664 + $k[$j++] = 'args'; //#27665 + $k[$j++] = $1.barcode; //#27665 + $k[$j++] = $1.options; //#27665 + $0.datamatrix(); //#27665 + var _1z = $k[--$j]; //#27665 + $1[$k[--$j]] = _1z; //#27665 + $put($1.args, "opt", $1.options); //#27667 + $k[$j++] = $1.args; //#27670 + if (!$1.dontdraw) { //#27670 + $0.renmatrix(); //#27670 + } //#27670 }; $0.gs1qrcode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.parse = false; - $1.dontlint = false; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); + var $1 = {}; //#27701 + $1.options = $k[--$j]; //#27703 + $1.barcode = $k[--$j]; //#27704 + $1.parse = false; //#27706 + $1.dontlint = false; //#27707 + $1.dontdraw = false; //#27708 + $forall($1.options, function() { //#27719 + var _3 = $k[--$j]; //#27719 + $1[$k[--$j]] = _3; //#27719 + }); //#27719 $1.expand = function() { - var _6 = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _6; - $k[$j++] = $1.fncvals; - $0.parseinput(); - }; - $1.ais = $a([]); - $1.vals = $a([]); - var _A = $1.barcode; - $k[$j++] = $geti(_A, 1, _A.length - 1); - for (;;) { - var _C = $k[--$j]; - $k[$j++] = _C; - if ($eq(_C, "")) { - break; - } - $search($k[--$j], ")"); - $j--; - var _E = $k[--$j]; - var _F = $k[--$j]; - $k[$j++] = _E; - $k[$j++] = _F; - $j--; - var _G = $k[--$j]; - var _H = $k[--$j]; - $k[$j++] = _G; - $search(_H, "("); - if ($k[--$j]) { - var _J = $k[--$j]; - var _K = $k[--$j]; - $k[$j++] = _J; - $k[$j++] = _K; - $j--; - var _L = $k[--$j]; - var _M = $k[--$j]; - var _N = $k[--$j]; - $k[$j++] = _M; - $k[$j++] = _N; - $k[$j++] = _L; - } else { - var _O = $k[--$j]; - var _P = $k[--$j]; - $k[$j++] = ""; - $k[$j++] = _P; - $k[$j++] = _O; - } - $k[$j++] = Infinity; - $aload($1.ais); - var _S = $k[$j - 1 - ($counttomark() + 2)]; - $k[$j++] = _S; - $1.ais = $a(); - $k[$j++] = Infinity; - $aload($1.vals); - var _W = $k[$j - 1 - ($counttomark() + 1)]; - $k[$j++] = _W; - $1.expand(); - $1.vals = $a(); - $j -= 2; - } - $j--; - if (!$1.dontlint) { - $k[$j++] = $1.ais; - $k[$j++] = $1.vals; - $0.gs1lint(); - $j--; - } - $1.aifixed = new Map(); - $k[$j++] = Infinity; - for (var _b = 0; _b <= 4; _b += 1) { - $k[$j++] = _b; - } - var _c = $a(); - for (var _d = 0, _e = _c.length; _d < _e; _d++) { - var _h = $strcpy($s(2), "00"); - $put(_h, 1, $f($get(_c, _d) + 48)); - $put($1.aifixed, _h, _h); - } - $k[$j++] = Infinity; - for (var _j = 11; _j <= 20; _j += 1) { - $k[$j++] = _j; - } - $k[$j++] = 23; - for (var _k = 31; _k <= 36; _k += 1) { - $k[$j++] = _k; - } - $k[$j++] = 41; - var _l = $a(); - for (var _m = 0, _n = _l.length; _m < _n; _m++) { - var _q = $cvrs($s(2), $get(_l, _m), 10); - $put($1.aifixed, _q, _q); - } - $1.fnc1 = -1; - $1.qrc = $a([ $1.fnc1 ]); - for (var _w = 0, _v = $1.ais.length - 1; _w <= _v; _w += 1) { - $1.i = _w; - $1.ai = $get($1.ais, $1.i); - $1.val = $get($1.vals, $1.i); - var _16 = $a($1.qrc.length + $1.ai.length + $1.val.length); - $puti(_16, 0, $1.qrc); - $k[$j++] = _16; - $k[$j++] = _16; - $k[$j++] = $1.qrc.length; - $k[$j++] = Infinity; - var _1B = $1.ai; - $forall(_1B); - var _1C = $a(); - var _1D = $k[--$j]; - $puti($k[--$j], _1D, _1C); - var _1F = $k[--$j]; - $k[$j++] = _1F; - $k[$j++] = _1F; - $k[$j++] = $1.qrc.length + $1.ai.length; - $k[$j++] = Infinity; - var _1K = $1.val; - $forall(_1K); - var _1L = $a(); - var _1M = $k[--$j]; - $puti($k[--$j], _1M, _1L); - $1.qrc = $k[--$j]; - var _1U = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; - if ($1.i != $1.ais.length - 1 && !_1U) { - var _1W = $a($1.qrc.length + 1); - $puti(_1W, 0, $1.qrc); - $put(_1W, $1.qrc.length, $1.fnc1); - $1.qrc = _1W; - } - } - $1.barcode = $s(($1.qrc.length + 1) * 5); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.qrc.length) { - break; - } - var _1g = $get($1.qrc, $1.i); - $k[$j++] = _1g; - if (_1g == $1.fnc1) { - $j--; - $puti($1.barcode, $1.j, "^FNC1"); - $1.j = $1.j + 4; - } else { - $put($1.barcode, $1.j, $k[--$j]); - } - $1.i = $1.i + 1; - $1.j = $1.j + 1; - } - $1.barcode = $geti($1.barcode, 0, $1.j); - delete $1.options["parse"]; - $put($1.options, "dontdraw", true); - $put($1.options, "parsefnc", true); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.qrcode(); - var _1y = $k[--$j]; - $1[$k[--$j]] = _1y; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var _6 = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#27726 + $1.fncvals = _6; //#27727 + $k[$j++] = $1.fncvals; //#27728 + $0.parseinput(); //#27728 + }; //#27729 + $1.ais = $a([]); //#27732 + $1.vals = $a([]); //#27733 + var _A = $1.barcode; //#27734 + $k[$j++] = $geti(_A, 1, _A.length - 1); //#27747 + for (;;) { //#27747 + var _C = $k[--$j]; //#27736 + $k[$j++] = _C; //#27736 + if ($eq(_C, "")) { //#27736 + break; //#27736 + } //#27736 + $search($k[--$j], ")"); //#27737 + $j--; //#27737 + var _E = $k[--$j]; //#27738 + var _F = $k[--$j]; //#27738 + $k[$j++] = _E; //#27738 + $k[$j++] = _F; //#27738 + $j--; //#27738 + var _G = $k[--$j]; //#27739 + var _H = $k[--$j]; //#27739 + $k[$j++] = _G; //#27739 + $search(_H, "("); //#27739 + if ($k[--$j]) { //#27742 + var _J = $k[--$j]; //#27740 + var _K = $k[--$j]; //#27740 + $k[$j++] = _J; //#27740 + $k[$j++] = _K; //#27740 + $j--; //#27740 + var _L = $k[--$j]; //#27740 + var _M = $k[--$j]; //#27740 + var _N = $k[--$j]; //#27740 + $k[$j++] = _M; //#27740 + $k[$j++] = _N; //#27740 + $k[$j++] = _L; //#27740 + } else { //#27742 + var _O = $k[--$j]; //#27742 + var _P = $k[--$j]; //#27742 + $k[$j++] = ""; //#27742 + $k[$j++] = _P; //#27742 + $k[$j++] = _O; //#27742 + } //#27742 + $k[$j++] = Infinity; //#27744 + $aload($1.ais); //#27744 + var _S = $k[$j - 1 - ($counttomark() + 2)]; //#27744 + $k[$j++] = _S; //#27744 + $1.ais = $a(); //#27744 + $k[$j++] = Infinity; //#27745 + $aload($1.vals); //#27745 + var _W = $k[$j - 1 - ($counttomark() + 1)]; //#27745 + $k[$j++] = _W; //#27745 + $1.expand(); //#27745 + $1.vals = $a(); //#27745 + $j -= 2; //#27746 + } //#27746 + $j--; //#27748 + if (!$1.dontlint) { //#27750 + $k[$j++] = $1.ais; //#27750 + $k[$j++] = $1.vals; //#27750 + $0.gs1lint(); //#27750 + $j--; //#27750 + } //#27750 + $1.aifixed = new Map; //#27755 + $k[$j++] = Infinity; //#27757 + for (var _b = 0; _b <= 4; _b += 1) { //#27757 + $k[$j++] = _b; //#27757 + } //#27757 + var _c = $a(); //#27757 + for (var _d = 0, _e = _c.length; _d < _e; _d++) { //#27760 + var _h = $strcpy($s(2), "00"); //#27759 + $put(_h, 1, $f($get(_c, _d) + 48)); //#27759 + $put($1.aifixed, _h, _h); //#27759 + } //#27759 + $k[$j++] = Infinity; //#27765 + for (var _j = 11; _j <= 20; _j += 1) { //#27762 + $k[$j++] = _j; //#27762 + } //#27762 + $k[$j++] = 23; //#27764 + for (var _k = 31; _k <= 36; _k += 1) { //#27764 + $k[$j++] = _k; //#27764 + } //#27764 + $k[$j++] = 41; //#27765 + var _l = $a(); //#27765 + for (var _m = 0, _n = _l.length; _m < _n; _m++) { //#27768 + var _q = $cvrs($s(2), $get(_l, _m), 10); //#27767 + $put($1.aifixed, _q, _q); //#27767 + } //#27767 + $1.fnc1 = -1; //#27771 + $1.qrc = $a([$1.fnc1]); //#27772 + for (var _w = 0, _v = $1.ais.length - 1; _w <= _v; _w += 1) { //#27788 + $1.i = _w; //#27774 + $1.ai = $get($1.ais, $1.i); //#27775 + $1.val = $get($1.vals, $1.i); //#27776 + var _16 = $a(($1.qrc.length + $1.ai.length) + $1.val.length); //#27777 + $puti(_16, 0, $1.qrc); //#27778 + $k[$j++] = _16; //#27779 + $k[$j++] = _16; //#27779 + $k[$j++] = $1.qrc.length; //#27779 + $k[$j++] = $1.ai; //#27779 + $k[$j++] = Infinity; //#27779 + var _1A = $k[--$j]; //#27779 + var _1B = $k[--$j]; //#27779 + $k[$j++] = _1A; //#27779 + $forall(_1B); //#27779 + var _1C = $a(); //#27779 + var _1D = $k[--$j]; //#27779 + $puti($k[--$j], _1D, _1C); //#27779 + var _1F = $k[--$j]; //#27780 + $k[$j++] = _1F; //#27780 + $k[$j++] = _1F; //#27780 + $k[$j++] = $1.qrc.length + $1.ai.length; //#27780 + $k[$j++] = $1.val; //#27780 + $k[$j++] = Infinity; //#27780 + var _1J = $k[--$j]; //#27780 + var _1K = $k[--$j]; //#27780 + $k[$j++] = _1J; //#27780 + $forall(_1K); //#27780 + var _1L = $a(); //#27780 + var _1M = $k[--$j]; //#27780 + $puti($k[--$j], _1M, _1L); //#27780 + $1.qrc = $k[--$j]; //#27781 + var _1U = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; //#27782 + if (($1.i != ($1.ais.length - 1)) && (!_1U)) { //#27787 + var _1W = $a($1.qrc.length + 1); //#27783 + $puti(_1W, 0, $1.qrc); //#27784 + $put(_1W, $1.qrc.length, $1.fnc1); //#27785 + $1.qrc = _1W; //#27786 + } //#27786 + } //#27786 + $1.barcode = $s(($1.qrc.length + 1) * 5); //#27791 + $1.i = 0; //#27792 + $1.j = 0; //#27792 + for (;;) { //#27802 + if ($1.i == $1.qrc.length) { //#27793 + break; //#27793 + } //#27793 + var _1g = $get($1.qrc, $1.i); //#27794 + $k[$j++] = _1g; //#27799 + if (_1g == $1.fnc1) { //#27798 + $j--; //#27795 + $puti($1.barcode, $1.j, "^FNC1"); //#27795 + $1.j = $1.j + 4; //#27796 + } else { //#27798 + $put($1.barcode, $1.j, $k[--$j]); //#27798 + } //#27798 + $1.i = $1.i + 1; //#27800 + $1.j = $1.j + 1; //#27801 + } //#27801 + $1.barcode = $geti($1.barcode, 0, $1.j); //#27803 + delete $1.options["parse"]; //#27806 + $put($1.options, "dontdraw", true); //#27807 + $put($1.options, "parsefnc", true); //#27808 + $k[$j++] = 'args'; //#27809 + $k[$j++] = $1.barcode; //#27809 + $k[$j++] = $1.options; //#27809 + $0.qrcode(); //#27809 + var _1y = $k[--$j]; //#27809 + $1[$k[--$j]] = _1y; //#27809 + $put($1.args, "opt", $1.options); //#27811 + $k[$j++] = $1.args; //#27814 + if (!$1.dontdraw) { //#27814 + $0.renmatrix(); //#27814 + } //#27814 }; $0.gs1dotcode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.parse = false; - $1.dontlint = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); + var $1 = {}; //#27846 + $1.options = $k[--$j]; //#27848 + $1.barcode = $k[--$j]; //#27849 + $1.dontdraw = false; //#27851 + $1.parse = false; //#27852 + $1.dontlint = false; //#27853 + $forall($1.options, function() { //#27864 + var _3 = $k[--$j]; //#27864 + $1[$k[--$j]] = _3; //#27864 + }); //#27864 $1.expand = function() { - var _6 = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _6; - $k[$j++] = $1.fncvals; - $0.parseinput(); - }; - $1.ais = $a([]); - $1.vals = $a([]); - var _A = $1.barcode; - $k[$j++] = $geti(_A, 1, _A.length - 1); - for (;;) { - var _C = $k[--$j]; - $k[$j++] = _C; - if ($eq(_C, "")) { - break; - } - $search($k[--$j], ")"); - $j--; - var _E = $k[--$j]; - var _F = $k[--$j]; - $k[$j++] = _E; - $k[$j++] = _F; - $j--; - var _G = $k[--$j]; - var _H = $k[--$j]; - $k[$j++] = _G; - $search(_H, "("); - if ($k[--$j]) { - var _J = $k[--$j]; - var _K = $k[--$j]; - $k[$j++] = _J; - $k[$j++] = _K; - $j--; - var _L = $k[--$j]; - var _M = $k[--$j]; - var _N = $k[--$j]; - $k[$j++] = _M; - $k[$j++] = _N; - $k[$j++] = _L; - } else { - var _O = $k[--$j]; - var _P = $k[--$j]; - $k[$j++] = ""; - $k[$j++] = _P; - $k[$j++] = _O; - } - $k[$j++] = Infinity; - $aload($1.ais); - var _S = $k[$j - 1 - ($counttomark() + 2)]; - $k[$j++] = _S; - $1.ais = $a(); - $k[$j++] = Infinity; - $aload($1.vals); - var _W = $k[$j - 1 - ($counttomark() + 1)]; - $k[$j++] = _W; - $1.expand(); - $1.vals = $a(); - $j -= 2; - } - $j--; - if (!$1.dontlint) { - $k[$j++] = $1.ais; - $k[$j++] = $1.vals; - $0.gs1lint(); - $j--; - } - $1.aifixed = new Map(); - $k[$j++] = Infinity; - for (var _b = 0; _b <= 4; _b += 1) { - $k[$j++] = _b; - } - var _c = $a(); - for (var _d = 0, _e = _c.length; _d < _e; _d++) { - var _h = $strcpy($s(2), "00"); - $put(_h, 1, $f($get(_c, _d) + 48)); - $put($1.aifixed, _h, _h); - } - $k[$j++] = Infinity; - for (var _j = 11; _j <= 20; _j += 1) { - $k[$j++] = _j; - } - $k[$j++] = 23; - for (var _k = 31; _k <= 36; _k += 1) { - $k[$j++] = _k; - } - $k[$j++] = 41; - var _l = $a(); - for (var _m = 0, _n = _l.length; _m < _n; _m++) { - var _q = $cvrs($s(2), $get(_l, _m), 10); - $put($1.aifixed, _q, _q); - } - $1.fnc1 = -1; - $1.dmtx = $a([ $1.fnc1 ]); - for (var _w = 0, _v = $1.ais.length - 1; _w <= _v; _w += 1) { - $1.i = _w; - $1.ai = $get($1.ais, $1.i); - $1.val = $get($1.vals, $1.i); - var _16 = $a($1.dmtx.length + $1.ai.length + $1.val.length); - $puti(_16, 0, $1.dmtx); - $k[$j++] = _16; - $k[$j++] = _16; - $k[$j++] = $1.dmtx.length; - $k[$j++] = Infinity; - var _1B = $1.ai; - $forall(_1B); - var _1C = $a(); - var _1D = $k[--$j]; - $puti($k[--$j], _1D, _1C); - var _1F = $k[--$j]; - $k[$j++] = _1F; - $k[$j++] = _1F; - $k[$j++] = $1.dmtx.length + $1.ai.length; - $k[$j++] = Infinity; - var _1K = $1.val; - $forall(_1K); - var _1L = $a(); - var _1M = $k[--$j]; - $puti($k[--$j], _1M, _1L); - $1.dmtx = $k[--$j]; - var _1U = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; - if ($1.i != $1.ais.length - 1 && !_1U) { - var _1W = $a($1.dmtx.length + 1); - $puti(_1W, 0, $1.dmtx); - $put(_1W, $1.dmtx.length, $1.fnc1); - $1.dmtx = _1W; - } - } - $1.barcode = $s(($1.dmtx.length + 1) * 5); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.dmtx.length) { - break; - } - var _1g = $get($1.dmtx, $1.i); - $k[$j++] = _1g; - if (_1g == $1.fnc1) { - $j--; - $puti($1.barcode, $1.j, "^FNC1"); - $1.j = $1.j + 4; - } else { - $put($1.barcode, $1.j, $k[--$j]); - } - $1.i = $1.i + 1; - $1.j = $1.j + 1; - } - $1.barcode = $geti($1.barcode, 0, $1.j); - delete $1.options["parse"]; - $put($1.options, "dontdraw", true); - $put($1.options, "parsefnc", true); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.dotcode(); - var _1y = $k[--$j]; - $1[$k[--$j]] = _1y; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var _6 = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#27871 + $1.fncvals = _6; //#27872 + $k[$j++] = $1.fncvals; //#27873 + $0.parseinput(); //#27873 + }; //#27874 + $1.ais = $a([]); //#27877 + $1.vals = $a([]); //#27878 + var _A = $1.barcode; //#27879 + $k[$j++] = $geti(_A, 1, _A.length - 1); //#27892 + for (;;) { //#27892 + var _C = $k[--$j]; //#27881 + $k[$j++] = _C; //#27881 + if ($eq(_C, "")) { //#27881 + break; //#27881 + } //#27881 + $search($k[--$j], ")"); //#27882 + $j--; //#27882 + var _E = $k[--$j]; //#27883 + var _F = $k[--$j]; //#27883 + $k[$j++] = _E; //#27883 + $k[$j++] = _F; //#27883 + $j--; //#27883 + var _G = $k[--$j]; //#27884 + var _H = $k[--$j]; //#27884 + $k[$j++] = _G; //#27884 + $search(_H, "("); //#27884 + if ($k[--$j]) { //#27887 + var _J = $k[--$j]; //#27885 + var _K = $k[--$j]; //#27885 + $k[$j++] = _J; //#27885 + $k[$j++] = _K; //#27885 + $j--; //#27885 + var _L = $k[--$j]; //#27885 + var _M = $k[--$j]; //#27885 + var _N = $k[--$j]; //#27885 + $k[$j++] = _M; //#27885 + $k[$j++] = _N; //#27885 + $k[$j++] = _L; //#27885 + } else { //#27887 + var _O = $k[--$j]; //#27887 + var _P = $k[--$j]; //#27887 + $k[$j++] = ""; //#27887 + $k[$j++] = _P; //#27887 + $k[$j++] = _O; //#27887 + } //#27887 + $k[$j++] = Infinity; //#27889 + $aload($1.ais); //#27889 + var _S = $k[$j - 1 - ($counttomark() + 2)]; //#27889 + $k[$j++] = _S; //#27889 + $1.ais = $a(); //#27889 + $k[$j++] = Infinity; //#27890 + $aload($1.vals); //#27890 + var _W = $k[$j - 1 - ($counttomark() + 1)]; //#27890 + $k[$j++] = _W; //#27890 + $1.expand(); //#27890 + $1.vals = $a(); //#27890 + $j -= 2; //#27891 + } //#27891 + $j--; //#27893 + if (!$1.dontlint) { //#27895 + $k[$j++] = $1.ais; //#27895 + $k[$j++] = $1.vals; //#27895 + $0.gs1lint(); //#27895 + $j--; //#27895 + } //#27895 + $1.aifixed = new Map; //#27900 + $k[$j++] = Infinity; //#27902 + for (var _b = 0; _b <= 4; _b += 1) { //#27902 + $k[$j++] = _b; //#27902 + } //#27902 + var _c = $a(); //#27902 + for (var _d = 0, _e = _c.length; _d < _e; _d++) { //#27905 + var _h = $strcpy($s(2), "00"); //#27904 + $put(_h, 1, $f($get(_c, _d) + 48)); //#27904 + $put($1.aifixed, _h, _h); //#27904 + } //#27904 + $k[$j++] = Infinity; //#27910 + for (var _j = 11; _j <= 20; _j += 1) { //#27907 + $k[$j++] = _j; //#27907 + } //#27907 + $k[$j++] = 23; //#27909 + for (var _k = 31; _k <= 36; _k += 1) { //#27909 + $k[$j++] = _k; //#27909 + } //#27909 + $k[$j++] = 41; //#27910 + var _l = $a(); //#27910 + for (var _m = 0, _n = _l.length; _m < _n; _m++) { //#27913 + var _q = $cvrs($s(2), $get(_l, _m), 10); //#27912 + $put($1.aifixed, _q, _q); //#27912 + } //#27912 + $1.fnc1 = -1; //#27916 + $1.dmtx = $a([$1.fnc1]); //#27917 + for (var _w = 0, _v = $1.ais.length - 1; _w <= _v; _w += 1) { //#27933 + $1.i = _w; //#27919 + $1.ai = $get($1.ais, $1.i); //#27920 + $1.val = $get($1.vals, $1.i); //#27921 + var _16 = $a(($1.dmtx.length + $1.ai.length) + $1.val.length); //#27922 + $puti(_16, 0, $1.dmtx); //#27923 + $k[$j++] = _16; //#27924 + $k[$j++] = _16; //#27924 + $k[$j++] = $1.dmtx.length; //#27924 + $k[$j++] = $1.ai; //#27924 + $k[$j++] = Infinity; //#27924 + var _1A = $k[--$j]; //#27924 + var _1B = $k[--$j]; //#27924 + $k[$j++] = _1A; //#27924 + $forall(_1B); //#27924 + var _1C = $a(); //#27924 + var _1D = $k[--$j]; //#27924 + $puti($k[--$j], _1D, _1C); //#27924 + var _1F = $k[--$j]; //#27925 + $k[$j++] = _1F; //#27925 + $k[$j++] = _1F; //#27925 + $k[$j++] = $1.dmtx.length + $1.ai.length; //#27925 + $k[$j++] = $1.val; //#27925 + $k[$j++] = Infinity; //#27925 + var _1J = $k[--$j]; //#27925 + var _1K = $k[--$j]; //#27925 + $k[$j++] = _1J; //#27925 + $forall(_1K); //#27925 + var _1L = $a(); //#27925 + var _1M = $k[--$j]; //#27925 + $puti($k[--$j], _1M, _1L); //#27925 + $1.dmtx = $k[--$j]; //#27926 + var _1U = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; //#27927 + if (($1.i != ($1.ais.length - 1)) && (!_1U)) { //#27932 + var _1W = $a($1.dmtx.length + 1); //#27928 + $puti(_1W, 0, $1.dmtx); //#27929 + $put(_1W, $1.dmtx.length, $1.fnc1); //#27930 + $1.dmtx = _1W; //#27931 + } //#27931 + } //#27931 + $1.barcode = $s(($1.dmtx.length + 1) * 5); //#27936 + $1.i = 0; //#27937 + $1.j = 0; //#27937 + for (;;) { //#27947 + if ($1.i == $1.dmtx.length) { //#27938 + break; //#27938 + } //#27938 + var _1g = $get($1.dmtx, $1.i); //#27939 + $k[$j++] = _1g; //#27944 + if (_1g == $1.fnc1) { //#27943 + $j--; //#27940 + $puti($1.barcode, $1.j, "^FNC1"); //#27940 + $1.j = $1.j + 4; //#27941 + } else { //#27943 + $put($1.barcode, $1.j, $k[--$j]); //#27943 + } //#27943 + $1.i = $1.i + 1; //#27945 + $1.j = $1.j + 1; //#27946 + } //#27946 + $1.barcode = $geti($1.barcode, 0, $1.j); //#27948 + delete $1.options["parse"]; //#27951 + $put($1.options, "dontdraw", true); //#27952 + $put($1.options, "parsefnc", true); //#27953 + $k[$j++] = 'args'; //#27954 + $k[$j++] = $1.barcode; //#27954 + $k[$j++] = $1.options; //#27954 + $0.dotcode(); //#27954 + var _1y = $k[--$j]; //#27954 + $1[$k[--$j]] = _1y; //#27954 + $put($1.args, "opt", $1.options); //#27956 + $k[$j++] = $1.args; //#27959 + if (!$1.dontdraw) { //#27959 + $0.renmatrix(); //#27959 + } //#27959 }; $0.hibccode39 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.textxoffset = 0; - $1.validatecheck = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.textxoffset = +$1.textxoffset; - $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; - $1.charvals = new Map(); - for (var _9 = 0; _9 <= 42; _9 += 1) { - $put($1.charvals, $geti($1.barchars, _9, 1), _9); - } - for (var _F = 0, _E = $1.barcode.length - 1; _F <= _E; _F += 1) { - var _J = $get($1.charvals, $geti($1.barcode, _F, 1)) !== undefined; - if (!_J) { - $k[$j++] = "bwipp.hibccode39badCharacter"; - $k[$j++] = "HIBC Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _M = $k[--$j]; - $k[$j++] = $f(_M - 1); - } - var _N = $k[--$j]; - $1[$k[--$j]] = _N; - $1.checksum = 41; - for (var _R = 0, _Q = $f($1.barlen - 1); _R <= _Q; _R += 1) { - $1.checksum = $f($get($1.charvals, $geti($1.barcode, _R, 1)) + $1.checksum); - } - $1.checksum = $1.checksum % 43; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.hibccode39badCheckDigit"; - $k[$j++] = "Incorrect HIBC Code 39 check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - var _j = $s($f($1.barlen + 2)); - $puti(_j, 1, $1.barcode); - $1.barcode = _j; - $put($1.barcode, 0, 43); - $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); - $1.text = $s($f($1.barlen + 4)); - $put($1.text, 0, 42); - $puti($1.text, 1, $1.barcode); - var _10 = $get($1.barcode, $f($1.barlen + 1)); - $k[$j++] = $1.text; - $k[$j++] = $f($1.barlen + 2); - $k[$j++] = _10; - if (_10 == 32) { - $j--; - $k[$j++] = 95; - } - var _11 = $k[--$j]; - var _12 = $k[--$j]; - $put($k[--$j], _12, _11); - $put($1.text, $f($1.barlen + 3), 42); - $put($1.options, "dontdraw", true); - $put($1.options, "includecheck", false); - $put($1.options, "validatecheck", false); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.code39(); - var _1B = $k[--$j]; - $1[$k[--$j]] = _1B; - $put($1.args, "txt", $a([ $a([ $1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ]) ])); - $put($1.args, "textxalign", "center"); - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#27989 + $1.options = $k[--$j]; //#27991 + $1.barcode = $k[--$j]; //#27992 + $1.dontdraw = false; //#27994 + $1.textfont = "OCR-B"; //#27995 + $1.textsize = 10; //#27996 + $1.textyoffset = -8; //#27997 + $1.textxoffset = 0; //#27998 + $1.validatecheck = false; //#27999 + $forall($1.options, function() { //#28010 + var _3 = $k[--$j]; //#28010 + $1[$k[--$j]] = _3; //#28010 + }); //#28010 + $1.textfont = "" + $1.textfont; //#28012 + $1.textsize = +$1.textsize; //#28013 + $1.textyoffset = +$1.textyoffset; //#28014 + $1.textxoffset = +$1.textxoffset; //#28015 + $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#28018 + $1.charvals = new Map; //#28019 + for (var _9 = 0; _9 <= 42; _9 += 1) { //#28020 + $put($1.charvals, $geti($1.barchars, _9, 1), _9); //#28020 + } //#28020 + for (var _F = 0, _E = $1.barcode.length - 1; _F <= _E; _F += 1) { //#28027 + var _J = $get($1.charvals, $geti($1.barcode, _F, 1)) !== undefined; //#28024 + if (!_J) { //#28026 + $k[$j++] = 'bwipp.hibccode39badCharacter'; //#28025 + $k[$j++] = "HIBC Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#28025 + $0.raiseerror(); //#28025 + } //#28025 + } //#28025 + $k[$j++] = 'barlen'; //#28029 + $k[$j++] = $1.barcode.length; //#28029 + if ($1.validatecheck) { //#28029 + var _M = $k[--$j]; //#28029 + $k[$j++] = $f(_M - 1); //#28029 + } //#28029 + var _N = $k[--$j]; //#28029 + $1[$k[--$j]] = _N; //#28029 + $1.checksum = 41; //#28031 + for (var _R = 0, _Q = $f($1.barlen - 1); _R <= _Q; _R += 1) { //#28035 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, _R, 1)) + $1.checksum); //#28034 + } //#28034 + $1.checksum = $1.checksum % 43; //#28036 + if ($1.validatecheck) { //#28042 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#28040 + $k[$j++] = 'bwipp.hibccode39badCheckDigit'; //#28039 + $k[$j++] = "Incorrect HIBC Code 39 check digit provided"; //#28039 + $0.raiseerror(); //#28039 + } //#28039 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#28041 + } //#28041 + var _j = $s($f($1.barlen + 2)); //#28044 + $puti(_j, 1, $1.barcode); //#28044 + $1.barcode = _j; //#28044 + $put($1.barcode, 0, 43); //#28045 + $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); //#28046 + $1.text = $s($f($1.barlen + 4)); //#28048 + $put($1.text, 0, 42); //#28049 + $puti($1.text, 1, $1.barcode); //#28050 + var _10 = $get($1.barcode, $f($1.barlen + 1)); //#28051 + $k[$j++] = $1.text; //#28051 + $k[$j++] = $f($1.barlen + 2); //#28051 + $k[$j++] = _10; //#28051 + if (_10 == 32) { //#28051 + $j--; //#28051 + $k[$j++] = 95; //#28051 + } //#28051 + var _11 = $k[--$j]; //#28051 + var _12 = $k[--$j]; //#28051 + $put($k[--$j], _12, _11); //#28051 + $put($1.text, $f($1.barlen + 3), 42); //#28052 + $put($1.options, "dontdraw", true); //#28055 + $put($1.options, "includecheck", false); //#28056 + $put($1.options, "validatecheck", false); //#28057 + $k[$j++] = 'args'; //#28058 + $k[$j++] = $1.barcode; //#28058 + $k[$j++] = $1.options; //#28058 + $0.code39(); //#28058 + var _1B = $k[--$j]; //#28058 + $1[$k[--$j]] = _1B; //#28058 + $put($1.args, "txt", $a([$a([$1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])])); //#28060 + $put($1.args, "textxalign", "center"); //#28061 + $put($1.args, "opt", $1.options); //#28062 + $k[$j++] = $1.args; //#28065 + if (!$1.dontdraw) { //#28065 + $0.renlinear(); //#28065 + } //#28065 }; $0.hibccode128 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.textxoffset = 0; - $1.validatecheck = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.textxoffset = +$1.textxoffset; - $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; - $1.charvals = new Map(); - for (var _9 = 0; _9 <= 42; _9 += 1) { - $put($1.charvals, $geti($1.barchars, _9, 1), _9); - } - for (var _F = 0, _E = $1.barcode.length - 1; _F <= _E; _F += 1) { - var _J = $get($1.charvals, $geti($1.barcode, _F, 1)) !== undefined; - if (!_J) { - $k[$j++] = "bwipp.hibccode128badCharacter"; - $k[$j++] = "HIBC Code 128 must contain only digits, capital letters, spaces and the symbols -.$/+%"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _M = $k[--$j]; - $k[$j++] = $f(_M - 1); - } - var _N = $k[--$j]; - $1[$k[--$j]] = _N; - $1.checksum = 41; - for (var _R = 0, _Q = $f($1.barlen - 1); _R <= _Q; _R += 1) { - $1.checksum = $f($get($1.charvals, $geti($1.barcode, _R, 1)) + $1.checksum); - } - $1.checksum = $1.checksum % 43; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.hibccode128badCheckDigit"; - $k[$j++] = "Incorrect HIBC Code 128 check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - var _j = $s($f($1.barlen + 2)); - $puti(_j, 1, $1.barcode); - $1.barcode = _j; - $put($1.barcode, 0, 43); - $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); - $1.text = $s($f($1.barlen + 4)); - $put($1.text, 0, 42); - $puti($1.text, 1, $1.barcode); - var _10 = $get($1.barcode, $f($1.barlen + 1)); - $k[$j++] = $1.text; - $k[$j++] = $f($1.barlen + 2); - $k[$j++] = _10; - if (_10 == 32) { - $j--; - $k[$j++] = 95; - } - var _11 = $k[--$j]; - var _12 = $k[--$j]; - $put($k[--$j], _12, _11); - $put($1.text, $f($1.barlen + 3), 42); - $put($1.options, "dontdraw", true); - $put($1.options, "validatecheck", false); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.code128(); - var _1A = $k[--$j]; - $1[$k[--$j]] = _1A; - $put($1.args, "txt", $a([ $a([ $1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ]) ])); - $put($1.args, "textxalign", "center"); - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#28095 + $1.options = $k[--$j]; //#28097 + $1.barcode = $k[--$j]; //#28098 + $1.dontdraw = false; //#28100 + $1.textfont = "OCR-B"; //#28101 + $1.textsize = 10; //#28102 + $1.textyoffset = -8; //#28103 + $1.textxoffset = 0; //#28104 + $1.validatecheck = false; //#28105 + $forall($1.options, function() { //#28116 + var _3 = $k[--$j]; //#28116 + $1[$k[--$j]] = _3; //#28116 + }); //#28116 + $1.textfont = "" + $1.textfont; //#28118 + $1.textsize = +$1.textsize; //#28119 + $1.textyoffset = +$1.textyoffset; //#28120 + $1.textxoffset = +$1.textxoffset; //#28121 + $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#28124 + $1.charvals = new Map; //#28125 + for (var _9 = 0; _9 <= 42; _9 += 1) { //#28126 + $put($1.charvals, $geti($1.barchars, _9, 1), _9); //#28126 + } //#28126 + for (var _F = 0, _E = $1.barcode.length - 1; _F <= _E; _F += 1) { //#28133 + var _J = $get($1.charvals, $geti($1.barcode, _F, 1)) !== undefined; //#28130 + if (!_J) { //#28132 + $k[$j++] = 'bwipp.hibccode128badCharacter'; //#28131 + $k[$j++] = "HIBC Code 128 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#28131 + $0.raiseerror(); //#28131 + } //#28131 + } //#28131 + $k[$j++] = 'barlen'; //#28135 + $k[$j++] = $1.barcode.length; //#28135 + if ($1.validatecheck) { //#28135 + var _M = $k[--$j]; //#28135 + $k[$j++] = $f(_M - 1); //#28135 + } //#28135 + var _N = $k[--$j]; //#28135 + $1[$k[--$j]] = _N; //#28135 + $1.checksum = 41; //#28137 + for (var _R = 0, _Q = $f($1.barlen - 1); _R <= _Q; _R += 1) { //#28141 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, _R, 1)) + $1.checksum); //#28140 + } //#28140 + $1.checksum = $1.checksum % 43; //#28142 + if ($1.validatecheck) { //#28148 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#28146 + $k[$j++] = 'bwipp.hibccode128badCheckDigit'; //#28145 + $k[$j++] = "Incorrect HIBC Code 128 check digit provided"; //#28145 + $0.raiseerror(); //#28145 + } //#28145 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#28147 + } //#28147 + var _j = $s($f($1.barlen + 2)); //#28150 + $puti(_j, 1, $1.barcode); //#28150 + $1.barcode = _j; //#28150 + $put($1.barcode, 0, 43); //#28151 + $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); //#28152 + $1.text = $s($f($1.barlen + 4)); //#28154 + $put($1.text, 0, 42); //#28155 + $puti($1.text, 1, $1.barcode); //#28156 + var _10 = $get($1.barcode, $f($1.barlen + 1)); //#28157 + $k[$j++] = $1.text; //#28157 + $k[$j++] = $f($1.barlen + 2); //#28157 + $k[$j++] = _10; //#28157 + if (_10 == 32) { //#28157 + $j--; //#28157 + $k[$j++] = 95; //#28157 + } //#28157 + var _11 = $k[--$j]; //#28157 + var _12 = $k[--$j]; //#28157 + $put($k[--$j], _12, _11); //#28157 + $put($1.text, $f($1.barlen + 3), 42); //#28158 + $put($1.options, "dontdraw", true); //#28161 + $put($1.options, "validatecheck", false); //#28162 + $k[$j++] = 'args'; //#28163 + $k[$j++] = $1.barcode; //#28163 + $k[$j++] = $1.options; //#28163 + $0.code128(); //#28163 + var _1A = $k[--$j]; //#28163 + $1[$k[--$j]] = _1A; //#28163 + $put($1.args, "txt", $a([$a([$1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])])); //#28165 + $put($1.args, "textxalign", "center"); //#28166 + $put($1.args, "opt", $1.options); //#28167 + $k[$j++] = $1.args; //#28170 + if (!$1.dontdraw) { //#28170 + $0.renlinear(); //#28170 + } //#28170 }; $0.hibcdatamatrix = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.validatecheck = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; - $1.charvals = new Map(); - for (var _5 = 0; _5 <= 42; _5 += 1) { - $put($1.charvals, $geti($1.barchars, _5, 1), _5); - } - for (var _B = 0, _A = $1.barcode.length - 1; _B <= _A; _B += 1) { - var _F = $get($1.charvals, $geti($1.barcode, _B, 1)) !== undefined; - if (!_F) { - $k[$j++] = "bwipp.hibcdatamatrixBadCharacter"; - $k[$j++] = "HIBC Data Matrix must contain only digits, capital letters, spaces and the symbols -.$/+%"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _I = $k[--$j]; - $k[$j++] = $f(_I - 1); - } - var _J = $k[--$j]; - $1[$k[--$j]] = _J; - $1.checksum = 41; - for (var _N = 0, _M = $f($1.barlen - 1); _N <= _M; _N += 1) { - $1.checksum = $f($get($1.charvals, $geti($1.barcode, _N, 1)) + $1.checksum); - } - $1.checksum = $1.checksum % 43; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.hibcdatamatrixBadCheckDigit"; - $k[$j++] = "Incorrect HIBC Data Matrix check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - var _f = $s($f($1.barlen + 2)); - $puti(_f, 1, $1.barcode); - $1.barcode = _f; - $put($1.barcode, 0, 43); - $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); - $put($1.options, "dontdraw", true); - $put($1.options, "validatecheck", false); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.datamatrix(); - var _r = $k[--$j]; - $1[$k[--$j]] = _r; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#28200 + $1.options = $k[--$j]; //#28202 + $1.barcode = $k[--$j]; //#28203 + $1.dontdraw = false; //#28205 + $1.validatecheck = false; //#28206 + $forall($1.options, function() { //#28217 + var _3 = $k[--$j]; //#28217 + $1[$k[--$j]] = _3; //#28217 + }); //#28217 + $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#28220 + $1.charvals = new Map; //#28221 + for (var _5 = 0; _5 <= 42; _5 += 1) { //#28222 + $put($1.charvals, $geti($1.barchars, _5, 1), _5); //#28222 + } //#28222 + for (var _B = 0, _A = $1.barcode.length - 1; _B <= _A; _B += 1) { //#28229 + var _F = $get($1.charvals, $geti($1.barcode, _B, 1)) !== undefined; //#28226 + if (!_F) { //#28228 + $k[$j++] = 'bwipp.hibcdatamatrixBadCharacter'; //#28227 + $k[$j++] = "HIBC Data Matrix must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#28227 + $0.raiseerror(); //#28227 + } //#28227 + } //#28227 + $k[$j++] = 'barlen'; //#28231 + $k[$j++] = $1.barcode.length; //#28231 + if ($1.validatecheck) { //#28231 + var _I = $k[--$j]; //#28231 + $k[$j++] = $f(_I - 1); //#28231 + } //#28231 + var _J = $k[--$j]; //#28231 + $1[$k[--$j]] = _J; //#28231 + $1.checksum = 41; //#28233 + for (var _N = 0, _M = $f($1.barlen - 1); _N <= _M; _N += 1) { //#28237 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, _N, 1)) + $1.checksum); //#28236 + } //#28236 + $1.checksum = $1.checksum % 43; //#28238 + if ($1.validatecheck) { //#28244 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#28242 + $k[$j++] = 'bwipp.hibcdatamatrixBadCheckDigit'; //#28241 + $k[$j++] = "Incorrect HIBC Data Matrix check digit provided"; //#28241 + $0.raiseerror(); //#28241 + } //#28241 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#28243 + } //#28243 + var _f = $s($f($1.barlen + 2)); //#28246 + $puti(_f, 1, $1.barcode); //#28246 + $1.barcode = _f; //#28246 + $put($1.barcode, 0, 43); //#28247 + $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); //#28248 + $put($1.options, "dontdraw", true); //#28251 + $put($1.options, "validatecheck", false); //#28252 + $k[$j++] = 'args'; //#28253 + $k[$j++] = $1.barcode; //#28253 + $k[$j++] = $1.options; //#28253 + $0.datamatrix(); //#28253 + var _r = $k[--$j]; //#28253 + $1[$k[--$j]] = _r; //#28253 + $put($1.args, "opt", $1.options); //#28255 + $k[$j++] = $1.args; //#28258 + if (!$1.dontdraw) { //#28258 + $0.renmatrix(); //#28258 + } //#28258 }; $0.hibcdatamatrixrectangular = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.validatecheck = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; - $1.charvals = new Map(); - for (var _5 = 0; _5 <= 42; _5 += 1) { - $put($1.charvals, $geti($1.barchars, _5, 1), _5); - } - for (var _B = 0, _A = $1.barcode.length - 1; _B <= _A; _B += 1) { - var _F = $get($1.charvals, $geti($1.barcode, _B, 1)) !== undefined; - if (!_F) { - $k[$j++] = "bwipp.hibcdatamatrixrectangularBadCharacter"; - $k[$j++] = "HIBC Data Matrix Rectangular must contain only digits, capital letters, spaces and the symbols -.$/+%"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _I = $k[--$j]; - $k[$j++] = $f(_I - 1); - } - var _J = $k[--$j]; - $1[$k[--$j]] = _J; - $1.checksum = 41; - for (var _N = 0, _M = $f($1.barlen - 1); _N <= _M; _N += 1) { - $1.checksum = $f($get($1.charvals, $geti($1.barcode, _N, 1)) + $1.checksum); - } - $1.checksum = $1.checksum % 43; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.hibcdatamatrixrectangularBadCheckDigit"; - $k[$j++] = "Incorrect HIBC Data Matrix Rectangular check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - var _f = $s($f($1.barlen + 2)); - $puti(_f, 1, $1.barcode); - $1.barcode = _f; - $put($1.barcode, 0, 43); - $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); - $put($1.options, "dontdraw", true); - $put($1.options, "validatecheck", false); - $put($1.options, "format", "rectangle"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.datamatrix(); - var _s = $k[--$j]; - $1[$k[--$j]] = _s; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#28288 + $1.options = $k[--$j]; //#28290 + $1.barcode = $k[--$j]; //#28291 + $1.dontdraw = false; //#28293 + $1.validatecheck = false; //#28294 + $forall($1.options, function() { //#28305 + var _3 = $k[--$j]; //#28305 + $1[$k[--$j]] = _3; //#28305 + }); //#28305 + $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#28308 + $1.charvals = new Map; //#28309 + for (var _5 = 0; _5 <= 42; _5 += 1) { //#28310 + $put($1.charvals, $geti($1.barchars, _5, 1), _5); //#28310 + } //#28310 + for (var _B = 0, _A = $1.barcode.length - 1; _B <= _A; _B += 1) { //#28317 + var _F = $get($1.charvals, $geti($1.barcode, _B, 1)) !== undefined; //#28314 + if (!_F) { //#28316 + $k[$j++] = 'bwipp.hibcdatamatrixrectangularBadCharacter'; //#28315 + $k[$j++] = "HIBC Data Matrix Rectangular must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#28315 + $0.raiseerror(); //#28315 + } //#28315 + } //#28315 + $k[$j++] = 'barlen'; //#28319 + $k[$j++] = $1.barcode.length; //#28319 + if ($1.validatecheck) { //#28319 + var _I = $k[--$j]; //#28319 + $k[$j++] = $f(_I - 1); //#28319 + } //#28319 + var _J = $k[--$j]; //#28319 + $1[$k[--$j]] = _J; //#28319 + $1.checksum = 41; //#28321 + for (var _N = 0, _M = $f($1.barlen - 1); _N <= _M; _N += 1) { //#28325 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, _N, 1)) + $1.checksum); //#28324 + } //#28324 + $1.checksum = $1.checksum % 43; //#28326 + if ($1.validatecheck) { //#28332 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#28330 + $k[$j++] = 'bwipp.hibcdatamatrixrectangularBadCheckDigit'; //#28329 + $k[$j++] = "Incorrect HIBC Data Matrix Rectangular check digit provided"; //#28329 + $0.raiseerror(); //#28329 + } //#28329 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#28331 + } //#28331 + var _f = $s($f($1.barlen + 2)); //#28334 + $puti(_f, 1, $1.barcode); //#28334 + $1.barcode = _f; //#28334 + $put($1.barcode, 0, 43); //#28335 + $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); //#28336 + $put($1.options, "dontdraw", true); //#28339 + $put($1.options, "validatecheck", false); //#28340 + $put($1.options, "format", "rectangle"); //#28341 + $k[$j++] = 'args'; //#28342 + $k[$j++] = $1.barcode; //#28342 + $k[$j++] = $1.options; //#28342 + $0.datamatrix(); //#28342 + var _s = $k[--$j]; //#28342 + $1[$k[--$j]] = _s; //#28342 + $put($1.args, "opt", $1.options); //#28344 + $k[$j++] = $1.args; //#28347 + if (!$1.dontdraw) { //#28347 + $0.renmatrix(); //#28347 + } //#28347 }; $0.hibcpdf417 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.columns = 2; - $1.validatecheck = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.columns = ~~$1.columns; - $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; - $1.charvals = new Map(); - for (var _6 = 0; _6 <= 42; _6 += 1) { - $put($1.charvals, $geti($1.barchars, _6, 1), _6); - } - for (var _C = 0, _B = $1.barcode.length - 1; _C <= _B; _C += 1) { - var _G = $get($1.charvals, $geti($1.barcode, _C, 1)) !== undefined; - if (!_G) { - $k[$j++] = "bwipp.hibcpdf417BadCharacter"; - $k[$j++] = "HIBC PDF417 must contain only digits, capital letters, spaces and the symbols -.$/+%"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _J = $k[--$j]; - $k[$j++] = $f(_J - 1); - } - var _K = $k[--$j]; - $1[$k[--$j]] = _K; - $1.checksum = 41; - for (var _O = 0, _N = $f($1.barlen - 1); _O <= _N; _O += 1) { - $1.checksum = $f($get($1.charvals, $geti($1.barcode, _O, 1)) + $1.checksum); - } - $1.checksum = $1.checksum % 43; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.hibcpdf417BadCheckDigit"; - $k[$j++] = "Incorrect HIBC PDF417 check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - var _g = $s($f($1.barlen + 2)); - $puti(_g, 1, $1.barcode); - $1.barcode = _g; - $put($1.barcode, 0, 43); - $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); - $put($1.options, "dontdraw", true); - $put($1.options, "columns", $1.columns); - $put($1.options, "validatecheck", false); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.pdf417(); - var _u = $k[--$j]; - $1[$k[--$j]] = _u; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#28377 + $1.options = $k[--$j]; //#28379 + $1.barcode = $k[--$j]; //#28380 + $1.dontdraw = false; //#28382 + $1.columns = 2; //#28383 + $1.validatecheck = false; //#28384 + $forall($1.options, function() { //#28395 + var _3 = $k[--$j]; //#28395 + $1[$k[--$j]] = _3; //#28395 + }); //#28395 + $1.columns = ~~$1.columns; //#28397 + $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#28400 + $1.charvals = new Map; //#28401 + for (var _6 = 0; _6 <= 42; _6 += 1) { //#28402 + $put($1.charvals, $geti($1.barchars, _6, 1), _6); //#28402 + } //#28402 + for (var _C = 0, _B = $1.barcode.length - 1; _C <= _B; _C += 1) { //#28409 + var _G = $get($1.charvals, $geti($1.barcode, _C, 1)) !== undefined; //#28406 + if (!_G) { //#28408 + $k[$j++] = 'bwipp.hibcpdf417BadCharacter'; //#28407 + $k[$j++] = "HIBC PDF417 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#28407 + $0.raiseerror(); //#28407 + } //#28407 + } //#28407 + $k[$j++] = 'barlen'; //#28411 + $k[$j++] = $1.barcode.length; //#28411 + if ($1.validatecheck) { //#28411 + var _J = $k[--$j]; //#28411 + $k[$j++] = $f(_J - 1); //#28411 + } //#28411 + var _K = $k[--$j]; //#28411 + $1[$k[--$j]] = _K; //#28411 + $1.checksum = 41; //#28413 + for (var _O = 0, _N = $f($1.barlen - 1); _O <= _N; _O += 1) { //#28417 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, _O, 1)) + $1.checksum); //#28416 + } //#28416 + $1.checksum = $1.checksum % 43; //#28418 + if ($1.validatecheck) { //#28424 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#28422 + $k[$j++] = 'bwipp.hibcpdf417BadCheckDigit'; //#28421 + $k[$j++] = "Incorrect HIBC PDF417 check digit provided"; //#28421 + $0.raiseerror(); //#28421 + } //#28421 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#28423 + } //#28423 + var _g = $s($f($1.barlen + 2)); //#28426 + $puti(_g, 1, $1.barcode); //#28426 + $1.barcode = _g; //#28426 + $put($1.barcode, 0, 43); //#28427 + $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); //#28428 + $put($1.options, "dontdraw", true); //#28431 + $put($1.options, "columns", $1.columns); //#28432 + $put($1.options, "validatecheck", false); //#28433 + $k[$j++] = 'args'; //#28434 + $k[$j++] = $1.barcode; //#28434 + $k[$j++] = $1.options; //#28434 + $0.pdf417(); //#28434 + var _u = $k[--$j]; //#28434 + $1[$k[--$j]] = _u; //#28434 + $put($1.args, "opt", $1.options); //#28436 + $k[$j++] = $1.args; //#28439 + if (!$1.dontdraw) { //#28439 + $0.renmatrix(); //#28439 + } //#28439 }; $0.hibcmicropdf417 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.columns = 2; - $1.validatecheck = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.columns = ~~$1.columns; - $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; - $1.charvals = new Map(); - for (var _6 = 0; _6 <= 42; _6 += 1) { - $put($1.charvals, $geti($1.barchars, _6, 1), _6); - } - for (var _C = 0, _B = $1.barcode.length - 1; _C <= _B; _C += 1) { - var _G = $get($1.charvals, $geti($1.barcode, _C, 1)) !== undefined; - if (!_G) { - $k[$j++] = "bwipp.hibcmicropdf417BadCharacter"; - $k[$j++] = "HIBC MicroPDF417 must contain only digits, capital letters, spaces and the symbols -.$/+%"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _J = $k[--$j]; - $k[$j++] = $f(_J - 1); - } - var _K = $k[--$j]; - $1[$k[--$j]] = _K; - $1.checksum = 41; - for (var _O = 0, _N = $f($1.barlen - 1); _O <= _N; _O += 1) { - $1.checksum = $f($get($1.charvals, $geti($1.barcode, _O, 1)) + $1.checksum); - } - $1.checksum = $1.checksum % 43; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.hibcmicropdf417BadCheckDigit"; - $k[$j++] = "Incorrect HIBC MicroPDF417 check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - var _g = $s($f($1.barlen + 2)); - $puti(_g, 1, $1.barcode); - $1.barcode = _g; - $put($1.barcode, 0, 43); - $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); - $put($1.options, "dontdraw", true); - $put($1.options, "columns", $1.columns); - $put($1.options, "validatecheck", false); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.micropdf417(); - var _u = $k[--$j]; - $1[$k[--$j]] = _u; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#28469 + $1.options = $k[--$j]; //#28471 + $1.barcode = $k[--$j]; //#28472 + $1.dontdraw = false; //#28474 + $1.columns = 2; //#28475 + $1.validatecheck = false; //#28476 + $forall($1.options, function() { //#28487 + var _3 = $k[--$j]; //#28487 + $1[$k[--$j]] = _3; //#28487 + }); //#28487 + $1.columns = ~~$1.columns; //#28489 + $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#28492 + $1.charvals = new Map; //#28493 + for (var _6 = 0; _6 <= 42; _6 += 1) { //#28494 + $put($1.charvals, $geti($1.barchars, _6, 1), _6); //#28494 + } //#28494 + for (var _C = 0, _B = $1.barcode.length - 1; _C <= _B; _C += 1) { //#28501 + var _G = $get($1.charvals, $geti($1.barcode, _C, 1)) !== undefined; //#28498 + if (!_G) { //#28500 + $k[$j++] = 'bwipp.hibcmicropdf417BadCharacter'; //#28499 + $k[$j++] = "HIBC MicroPDF417 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#28499 + $0.raiseerror(); //#28499 + } //#28499 + } //#28499 + $k[$j++] = 'barlen'; //#28503 + $k[$j++] = $1.barcode.length; //#28503 + if ($1.validatecheck) { //#28503 + var _J = $k[--$j]; //#28503 + $k[$j++] = $f(_J - 1); //#28503 + } //#28503 + var _K = $k[--$j]; //#28503 + $1[$k[--$j]] = _K; //#28503 + $1.checksum = 41; //#28505 + for (var _O = 0, _N = $f($1.barlen - 1); _O <= _N; _O += 1) { //#28509 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, _O, 1)) + $1.checksum); //#28508 + } //#28508 + $1.checksum = $1.checksum % 43; //#28510 + if ($1.validatecheck) { //#28516 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#28514 + $k[$j++] = 'bwipp.hibcmicropdf417BadCheckDigit'; //#28513 + $k[$j++] = "Incorrect HIBC MicroPDF417 check digit provided"; //#28513 + $0.raiseerror(); //#28513 + } //#28513 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#28515 + } //#28515 + var _g = $s($f($1.barlen + 2)); //#28518 + $puti(_g, 1, $1.barcode); //#28518 + $1.barcode = _g; //#28518 + $put($1.barcode, 0, 43); //#28519 + $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); //#28520 + $put($1.options, "dontdraw", true); //#28523 + $put($1.options, "columns", $1.columns); //#28524 + $put($1.options, "validatecheck", false); //#28525 + $k[$j++] = 'args'; //#28526 + $k[$j++] = $1.barcode; //#28526 + $k[$j++] = $1.options; //#28526 + $0.micropdf417(); //#28526 + var _u = $k[--$j]; //#28526 + $1[$k[--$j]] = _u; //#28526 + $put($1.args, "opt", $1.options); //#28528 + $k[$j++] = $1.args; //#28531 + if (!$1.dontdraw) { //#28531 + $0.renmatrix(); //#28531 + } //#28531 }; $0.hibcqrcode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.validatecheck = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; - $1.charvals = new Map(); - for (var _5 = 0; _5 <= 42; _5 += 1) { - $put($1.charvals, $geti($1.barchars, _5, 1), _5); - } - for (var _B = 0, _A = $1.barcode.length - 1; _B <= _A; _B += 1) { - var _F = $get($1.charvals, $geti($1.barcode, _B, 1)) !== undefined; - if (!_F) { - $k[$j++] = "bwipp.hibcqrcodeBadCharacter"; - $k[$j++] = "HIBC QR Code must contain only digits, capital letters, spaces and the symbols -.$/+%"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _I = $k[--$j]; - $k[$j++] = $f(_I - 1); - } - var _J = $k[--$j]; - $1[$k[--$j]] = _J; - $1.checksum = 41; - for (var _N = 0, _M = $f($1.barlen - 1); _N <= _M; _N += 1) { - $1.checksum = $f($get($1.charvals, $geti($1.barcode, _N, 1)) + $1.checksum); - } - $1.checksum = $1.checksum % 43; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.hibcqrcodeBadCheckDigit"; - $k[$j++] = "Incorrect HIBC QR Code check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - var _f = $s($f($1.barlen + 2)); - $puti(_f, 1, $1.barcode); - $1.barcode = _f; - $put($1.barcode, 0, 43); - $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); - $put($1.options, "dontdraw", true); - $put($1.options, "validatecheck", false); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.qrcode(); - var _r = $k[--$j]; - $1[$k[--$j]] = _r; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#28561 + $1.options = $k[--$j]; //#28563 + $1.barcode = $k[--$j]; //#28564 + $1.dontdraw = false; //#28566 + $1.validatecheck = false; //#28567 + $forall($1.options, function() { //#28578 + var _3 = $k[--$j]; //#28578 + $1[$k[--$j]] = _3; //#28578 + }); //#28578 + $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#28581 + $1.charvals = new Map; //#28582 + for (var _5 = 0; _5 <= 42; _5 += 1) { //#28583 + $put($1.charvals, $geti($1.barchars, _5, 1), _5); //#28583 + } //#28583 + for (var _B = 0, _A = $1.barcode.length - 1; _B <= _A; _B += 1) { //#28590 + var _F = $get($1.charvals, $geti($1.barcode, _B, 1)) !== undefined; //#28587 + if (!_F) { //#28589 + $k[$j++] = 'bwipp.hibcqrcodeBadCharacter'; //#28588 + $k[$j++] = "HIBC QR Code must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#28588 + $0.raiseerror(); //#28588 + } //#28588 + } //#28588 + $k[$j++] = 'barlen'; //#28592 + $k[$j++] = $1.barcode.length; //#28592 + if ($1.validatecheck) { //#28592 + var _I = $k[--$j]; //#28592 + $k[$j++] = $f(_I - 1); //#28592 + } //#28592 + var _J = $k[--$j]; //#28592 + $1[$k[--$j]] = _J; //#28592 + $1.checksum = 41; //#28594 + for (var _N = 0, _M = $f($1.barlen - 1); _N <= _M; _N += 1) { //#28598 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, _N, 1)) + $1.checksum); //#28597 + } //#28597 + $1.checksum = $1.checksum % 43; //#28599 + if ($1.validatecheck) { //#28605 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#28603 + $k[$j++] = 'bwipp.hibcqrcodeBadCheckDigit'; //#28602 + $k[$j++] = "Incorrect HIBC QR Code check digit provided"; //#28602 + $0.raiseerror(); //#28602 + } //#28602 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#28604 + } //#28604 + var _f = $s($f($1.barlen + 2)); //#28607 + $puti(_f, 1, $1.barcode); //#28607 + $1.barcode = _f; //#28607 + $put($1.barcode, 0, 43); //#28608 + $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); //#28609 + $put($1.options, "dontdraw", true); //#28612 + $put($1.options, "validatecheck", false); //#28613 + $k[$j++] = 'args'; //#28614 + $k[$j++] = $1.barcode; //#28614 + $k[$j++] = $1.options; //#28614 + $0.qrcode(); //#28614 + var _r = $k[--$j]; //#28614 + $1[$k[--$j]] = _r; //#28614 + $put($1.args, "opt", $1.options); //#28616 + $k[$j++] = $1.args; //#28619 + if (!$1.dontdraw) { //#28619 + $0.renmatrix(); //#28619 + } //#28619 }; $0.hibccodablockf = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.validatecheck = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; - $1.charvals = new Map(); - for (var _5 = 0; _5 <= 42; _5 += 1) { - $put($1.charvals, $geti($1.barchars, _5, 1), _5); - } - for (var _B = 0, _A = $1.barcode.length - 1; _B <= _A; _B += 1) { - var _F = $get($1.charvals, $geti($1.barcode, _B, 1)) !== undefined; - if (!_F) { - $k[$j++] = "bwipp.codablockfBadCharacter"; - $k[$j++] = "HIBC Codablock F must contain only digits, capital letters, spaces and the symbols -.$/+%"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _I = $k[--$j]; - $k[$j++] = $f(_I - 1); - } - var _J = $k[--$j]; - $1[$k[--$j]] = _J; - $1.checksum = 41; - for (var _N = 0, _M = $f($1.barlen - 1); _N <= _M; _N += 1) { - $1.checksum = $f($get($1.charvals, $geti($1.barcode, _N, 1)) + $1.checksum); - } - $1.checksum = $1.checksum % 43; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.hibccodablockfBadCheckDigit"; - $k[$j++] = "Incorrect HIBC Codablock F check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - var _f = $s($f($1.barlen + 2)); - $puti(_f, 1, $1.barcode); - $1.barcode = _f; - $put($1.barcode, 0, 43); - $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); - $put($1.options, "dontdraw", true); - $put($1.options, "validatecheck", false); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.codablockf(); - var _r = $k[--$j]; - $1[$k[--$j]] = _r; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#28649 + $1.options = $k[--$j]; //#28651 + $1.barcode = $k[--$j]; //#28652 + $1.dontdraw = false; //#28654 + $1.validatecheck = false; //#28655 + $forall($1.options, function() { //#28666 + var _3 = $k[--$j]; //#28666 + $1[$k[--$j]] = _3; //#28666 + }); //#28666 + $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#28669 + $1.charvals = new Map; //#28670 + for (var _5 = 0; _5 <= 42; _5 += 1) { //#28671 + $put($1.charvals, $geti($1.barchars, _5, 1), _5); //#28671 + } //#28671 + for (var _B = 0, _A = $1.barcode.length - 1; _B <= _A; _B += 1) { //#28678 + var _F = $get($1.charvals, $geti($1.barcode, _B, 1)) !== undefined; //#28675 + if (!_F) { //#28677 + $k[$j++] = 'bwipp.codablockfBadCharacter'; //#28676 + $k[$j++] = "HIBC Codablock F must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#28676 + $0.raiseerror(); //#28676 + } //#28676 + } //#28676 + $k[$j++] = 'barlen'; //#28680 + $k[$j++] = $1.barcode.length; //#28680 + if ($1.validatecheck) { //#28680 + var _I = $k[--$j]; //#28680 + $k[$j++] = $f(_I - 1); //#28680 + } //#28680 + var _J = $k[--$j]; //#28680 + $1[$k[--$j]] = _J; //#28680 + $1.checksum = 41; //#28682 + for (var _N = 0, _M = $f($1.barlen - 1); _N <= _M; _N += 1) { //#28686 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, _N, 1)) + $1.checksum); //#28685 + } //#28685 + $1.checksum = $1.checksum % 43; //#28687 + if ($1.validatecheck) { //#28693 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#28691 + $k[$j++] = 'bwipp.hibccodablockfBadCheckDigit'; //#28690 + $k[$j++] = "Incorrect HIBC Codablock F check digit provided"; //#28690 + $0.raiseerror(); //#28690 + } //#28690 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#28692 + } //#28692 + var _f = $s($f($1.barlen + 2)); //#28695 + $puti(_f, 1, $1.barcode); //#28695 + $1.barcode = _f; //#28695 + $put($1.barcode, 0, 43); //#28696 + $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); //#28697 + $put($1.options, "dontdraw", true); //#28700 + $put($1.options, "validatecheck", false); //#28701 + $k[$j++] = 'args'; //#28702 + $k[$j++] = $1.barcode; //#28702 + $k[$j++] = $1.options; //#28702 + $0.codablockf(); //#28702 + var _r = $k[--$j]; //#28702 + $1[$k[--$j]] = _r; //#28702 + $put($1.args, "opt", $1.options); //#28704 + $k[$j++] = $1.args; //#28707 + if (!$1.dontdraw) { //#28707 + $0.renmatrix(); //#28707 + } //#28707 }; $0.hibcazteccode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.validatecheck = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; - $1.charvals = new Map(); - for (var _5 = 0; _5 <= 42; _5 += 1) { - $put($1.charvals, $geti($1.barchars, _5, 1), _5); - } - for (var _B = 0, _A = $1.barcode.length - 1; _B <= _A; _B += 1) { - var _F = $get($1.charvals, $geti($1.barcode, _B, 1)) !== undefined; - if (!_F) { - $k[$j++] = "bwipp.hibcazteccodeBadCharacter"; - $k[$j++] = "HIBC Aztec Code must contain only digits, capital letters, spaces and the symbols -.$/+%"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _I = $k[--$j]; - $k[$j++] = $f(_I - 1); - } - var _J = $k[--$j]; - $1[$k[--$j]] = _J; - $1.checksum = 41; - for (var _N = 0, _M = $f($1.barlen - 1); _N <= _M; _N += 1) { - $1.checksum = $f($get($1.charvals, $geti($1.barcode, _N, 1)) + $1.checksum); - } - $1.checksum = $1.checksum % 43; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.hibcazteccodeBadCheckDigit"; - $k[$j++] = "Incorrect HIBC Aztec Code check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - var _f = $s($f($1.barlen + 2)); - $puti(_f, 1, $1.barcode); - $1.barcode = _f; - $put($1.barcode, 0, 43); - $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); - $put($1.options, "dontdraw", true); - $put($1.options, "validatecheck", false); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.azteccode(); - var _r = $k[--$j]; - $1[$k[--$j]] = _r; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#28737 + $1.options = $k[--$j]; //#28739 + $1.barcode = $k[--$j]; //#28740 + $1.dontdraw = false; //#28742 + $1.validatecheck = false; //#28743 + $forall($1.options, function() { //#28754 + var _3 = $k[--$j]; //#28754 + $1[$k[--$j]] = _3; //#28754 + }); //#28754 + $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#28757 + $1.charvals = new Map; //#28758 + for (var _5 = 0; _5 <= 42; _5 += 1) { //#28759 + $put($1.charvals, $geti($1.barchars, _5, 1), _5); //#28759 + } //#28759 + for (var _B = 0, _A = $1.barcode.length - 1; _B <= _A; _B += 1) { //#28766 + var _F = $get($1.charvals, $geti($1.barcode, _B, 1)) !== undefined; //#28763 + if (!_F) { //#28765 + $k[$j++] = 'bwipp.hibcazteccodeBadCharacter'; //#28764 + $k[$j++] = "HIBC Aztec Code must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#28764 + $0.raiseerror(); //#28764 + } //#28764 + } //#28764 + $k[$j++] = 'barlen'; //#28768 + $k[$j++] = $1.barcode.length; //#28768 + if ($1.validatecheck) { //#28768 + var _I = $k[--$j]; //#28768 + $k[$j++] = $f(_I - 1); //#28768 + } //#28768 + var _J = $k[--$j]; //#28768 + $1[$k[--$j]] = _J; //#28768 + $1.checksum = 41; //#28770 + for (var _N = 0, _M = $f($1.barlen - 1); _N <= _M; _N += 1) { //#28774 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, _N, 1)) + $1.checksum); //#28773 + } //#28773 + $1.checksum = $1.checksum % 43; //#28775 + if ($1.validatecheck) { //#28781 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#28779 + $k[$j++] = 'bwipp.hibcazteccodeBadCheckDigit'; //#28778 + $k[$j++] = "Incorrect HIBC Aztec Code check digit provided"; //#28778 + $0.raiseerror(); //#28778 + } //#28778 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#28780 + } //#28780 + var _f = $s($f($1.barlen + 2)); //#28783 + $puti(_f, 1, $1.barcode); //#28783 + $1.barcode = _f; //#28783 + $put($1.barcode, 0, 43); //#28784 + $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); //#28785 + $put($1.options, "dontdraw", true); //#28788 + $put($1.options, "validatecheck", false); //#28789 + $k[$j++] = 'args'; //#28790 + $k[$j++] = $1.barcode; //#28790 + $k[$j++] = $1.options; //#28790 + $0.azteccode(); //#28790 + var _r = $k[--$j]; //#28790 + $1[$k[--$j]] = _r; //#28790 + $put($1.args, "opt", $1.options); //#28792 + $k[$j++] = $1.args; //#28795 + if (!$1.dontdraw) { //#28795 + $0.renmatrix(); //#28795 + } //#28795 }; $0.channelcode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.shortfinder = false; - $1.includetext = false; - $1.includecheck = false; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.height = +$1.height; - if ($1.barcode.length < 2 || $1.barcode.length > 7) { - $k[$j++] = "bwipp.channelcodeBadLength"; - $k[$j++] = "Channel Code must be 2 to 7 digits"; - $0.raiseerror(); - } - $forall($1.barcode, function() { - var _9 = $k[--$j]; - if (_9 < 48 || _9 > 57) { - $k[$j++] = "bwipp.channelcodeBadCharacter"; - $k[$j++] = "Channel Code must contain only digits"; - $0.raiseerror(); - } - }); - if (~~$z($1.barcode) > $get($a([ 26, 292, 3493, 44072, 576688, 7742862 ]), $1.barcode.length - 2)) { - $k[$j++] = "bwipp.channelcodeTooBig"; - $k[$j++] = "The Channel Code value is too big for the number of channels"; - $0.raiseerror(); - } + var $1 = {}; //#28825 + $1.options = $k[--$j]; //#28827 + $1.barcode = $k[--$j]; //#28828 + $1.dontdraw = false; //#28830 + $1.shortfinder = false; //#28831 + $1.includetext = false; //#28832 + $1.includecheck = false; //#28833 + $1.height = 1; //#28834 + $forall($1.options, function() { //#28845 + var _3 = $k[--$j]; //#28845 + $1[$k[--$j]] = _3; //#28845 + }); //#28845 + $1.height = +$1.height; //#28847 + if (($1.barcode.length < 2) || ($1.barcode.length > 7)) { //#28852 + $k[$j++] = 'bwipp.channelcodeBadLength'; //#28851 + $k[$j++] = "Channel Code must be 2 to 7 digits"; //#28851 + $0.raiseerror(); //#28851 + } //#28851 + $forall($1.barcode, function() { //#28857 + var _9 = $k[--$j]; //#28854 + if ((_9 < 48) || (_9 > 57)) { //#28856 + $k[$j++] = 'bwipp.channelcodeBadCharacter'; //#28855 + $k[$j++] = "Channel Code must contain only digits"; //#28855 + $0.raiseerror(); //#28855 + } //#28855 + }); //#28855 + if ((~~$z($1.barcode)) > $get($a([26, 292, 3493, 44072, 576688, 7742862]), $1.barcode.length - 2)) { //#28860 + $k[$j++] = 'bwipp.channelcodeTooBig'; //#28859 + $k[$j++] = "The Channel Code value is too big for the number of channels"; //#28859 + $0.raiseerror(); //#28859 + } //#28859 $1.nextb = function() { - var _E = $k[--$j]; - var _N = $f($get($1.s, _E) + $f($get($1.b, $f(_E - 1)) + $f($get($1.b, $f(_E - 2)) + $get($1.s, $f(_E - 1))))) > 4 ? 1 : 2; - $k[$j++] = _E; - $k[$j++] = _N; - if (_E < $f($1.chan + 2)) { - var _P = $k[--$j]; - var _Q = $k[--$j]; - var _R = $k[--$j]; - $k[$j++] = _R; - $k[$j++] = _Q; - $k[$j++] = _P; - for (var _T = _P, _S = _R; _T <= _S; _T += 1) { - var _V = $k[--$j]; - var _W = $k[--$j]; - $put($1.b, _W, _T); - var _X = $k[--$j]; - var _Y = $k[--$j]; - $k[$j++] = _Y; - $k[$j++] = _X; - $k[$j++] = _W; - $k[$j++] = _V; - $k[$j++] = $f($f(_X - _T) + 1); - $k[$j++] = _Y; - $k[$j++] = $f(_W + 1); - $1.nexts(); - } - } else { - var _Z = $k[--$j]; - var _a = $k[--$j]; - var _b = $k[--$j]; - $k[$j++] = _b; - $k[$j++] = _a; - $k[$j++] = _Z; - if ($le(_Z, _b)) { - var _d = $k[--$j]; - var _e = $k[--$j]; - var _f = $k[--$j]; - $put($1.b, _e, _f); - $k[$j++] = _f; - $k[$j++] = _e; - $k[$j++] = _d; - if ($1.value == $1.target) { - $k[$j++] = Infinity; - for (var _i = 3; _i <= 10; _i += 1) { - $k[$j++] = $get($1.s, _i); - $k[$j++] = $get($1.b, _i); - } - $1.out = $geti($a(), 0, $1.chan * 2); - } - $1.value = $1.value + 1; - } - } - $j -= 4; - }; + var _E = $k[--$j]; //#28863 + var _N = (($f($get($1.s, _E) + ($f($get($1.b, $f(_E - 1)) + $f($get($1.b, $f(_E - 2)) + $get($1.s, $f(_E - 1))))))) > 4) ? 1 : 2; //#28868 + $k[$j++] = _E; //#28884 + $k[$j++] = _N; //#28884 + if (_E < $f($1.chan + 2)) { //#28882 + var _P = $k[--$j]; //#28870 + var _Q = $k[--$j]; //#28870 + var _R = $k[--$j]; //#28870 + $k[$j++] = _R; //#28873 + $k[$j++] = _Q; //#28873 + $k[$j++] = _P; //#28873 + for (var _T = _P, _S = _R; _T <= _S; _T += 1) { //#28873 + var _V = $k[--$j]; //#28871 + var _W = $k[--$j]; //#28871 + $put($1.b, _W, _T); //#28871 + var _X = $k[--$j]; //#28872 + var _Y = $k[--$j]; //#28872 + $k[$j++] = _Y; //#28872 + $k[$j++] = _X; //#28872 + $k[$j++] = _W; //#28872 + $k[$j++] = _V; //#28872 + $k[$j++] = $f($f(_X - _T) + 1); //#28872 + $k[$j++] = _Y; //#28872 + $k[$j++] = $f(_W + 1); //#28872 + $1.nexts(); //#28872 + } //#28872 + } else { //#28882 + var _Z = $k[--$j]; //#28875 + var _a = $k[--$j]; //#28875 + var _b = $k[--$j]; //#28875 + $k[$j++] = _b; //#28883 + $k[$j++] = _a; //#28883 + $k[$j++] = _Z; //#28883 + if ($le(_Z, _b)) { //#28883 + var _d = $k[--$j]; //#28876 + var _e = $k[--$j]; //#28876 + var _f = $k[--$j]; //#28876 + $put($1.b, _e, _f); //#28876 + $k[$j++] = _f; //#28881 + $k[$j++] = _e; //#28881 + $k[$j++] = _d; //#28881 + if ($1.value == $1.target) { //#28881 + $k[$j++] = Infinity; //#28879 + for (var _i = 3; _i <= 10; _i += 1) { //#28879 + $k[$j++] = $get($1.s, _i); //#28879 + $k[$j++] = $get($1.b, _i); //#28879 + } //#28879 + $1.out = $geti($a(), 0, $1.chan * 2); //#28880 + } //#28880 + $1.value = $1.value + 1; //#28882 + } //#28882 + } //#28882 + $j -= 4; //#28885 + }; //#28886 $1.nexts = function() { - var _r = $k[--$j]; - $k[$j++] = _r; - if (_r < $f($1.chan + 2)) { - $k[$j++] = 1; - } else { - var _t = $k[--$j]; - var _u = $k[--$j]; - $k[$j++] = _u; - $k[$j++] = _t; - $k[$j++] = _u; - } - var _v = $k[--$j]; - var _w = $k[--$j]; - var _x = $k[--$j]; - $k[$j++] = _x; - $k[$j++] = _w; - for (var _z = _v, _y = _x; _z <= _y; _z += 1) { - var _11 = $k[--$j]; - $put($1.s, _11, _z); - var _12 = $k[--$j]; - var _13 = $k[--$j]; - $k[$j++] = _13; - $k[$j++] = _12; - $k[$j++] = _11; - $k[$j++] = $f($f(_12 - _z) + 1); - $k[$j++] = _13; - $k[$j++] = _11; - $1.nextb(); - } - $j -= 3; - }; + var _r = $k[--$j]; //#28889 + $k[$j++] = _r; //#28889 + if (_r < $f($1.chan + 2)) { //#28889 + $k[$j++] = 1; //#28889 + } else { //#28889 + var _t = $k[--$j]; //#28889 + var _u = $k[--$j]; //#28889 + $k[$j++] = _u; //#28889 + $k[$j++] = _t; //#28889 + $k[$j++] = _u; //#28889 + } //#28889 + var _v = $k[--$j]; //#28889 + var _w = $k[--$j]; //#28889 + var _x = $k[--$j]; //#28889 + $k[$j++] = _x; //#28892 + $k[$j++] = _w; //#28892 + for (var _z = _v, _y = _x; _z <= _y; _z += 1) { //#28892 + var _11 = $k[--$j]; //#28890 + $put($1.s, _11, _z); //#28890 + var _12 = $k[--$j]; //#28891 + var _13 = $k[--$j]; //#28891 + $k[$j++] = _13; //#28891 + $k[$j++] = _12; //#28891 + $k[$j++] = _11; //#28891 + $k[$j++] = $f($f(_12 - _z) + 1); //#28891 + $k[$j++] = _13; //#28891 + $k[$j++] = _11; //#28891 + $1.nextb(); //#28891 + } //#28891 + $j -= 3; //#28893 + }; //#28894 $1.encode = function() { - $1.chan = $k[--$j]; - $1.target = $k[--$j]; - $1.value = 0; - $1.out = -1; - $1.b = $a([ 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]); - $1.s = $a([ 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]); - var _18 = $1.chan; - $k[$j++] = _18; - $k[$j++] = _18; - $k[$j++] = 3; - $1.nexts(); - $k[$j++] = $1.out; - }; - $1.barlen = $1.barcode.length; - $k[$j++] = "finder"; - if ($1.shortfinder) { - $k[$j++] = $a([ 1, 1, 1, 1, 1 ]); - } else { - $k[$j++] = $a([ 1, 1, 1, 1, 1, 1, 1, 1, 1 ]); - } - var _1E = $k[--$j]; - $1[$k[--$j]] = _1E; - $k[$j++] = "data"; - $k[$j++] = ~~$z($1.barcode); - $k[$j++] = $1.barlen + 1; - $1.encode(); - var _1I = $k[--$j]; - $1[$k[--$j]] = _1I; - $1.check = $a([]); - if ($1.includecheck) { - $1.mod23 = $get($a([ $a([]), $a([]), $a([ 13, 12, 4, 9, 3, 1 ]), $a([ 13, 2, 12, 3, 18, 16, 4, 1 ]), $a([ 11, 16, 17, 8, 20, 4, 10, 2, 5, 1 ]), $a([ 1, 4, 16, 18, 3, 12, 2, 8, 9, 13, 6, 1 ]), $a([ 20, 16, 22, 13, 15, 12, 5, 4, 8, 9, 21, 3, 7, 1 ]), $a([ 2, 6, 18, 8, 1, 3, 9, 4, 12, 13, 16, 2, 6, 18, 8, 1 ]) ]), $1.barlen); - $k[$j++] = 0; - for (var _1Z = 0, _1Y = $1.data.length - 1; _1Z <= _1Y; _1Z += 1) { - var _1e = $k[--$j]; - $k[$j++] = $f(_1e + $f($get($1.data, _1Z) - 1) * $get($1.mod23, _1Z)); - } - var _1f = $k[--$j]; - $k[$j++] = _1f % 23; - $k[$j++] = 3; - $1.encode(); - $1.check = $k[--$j]; - } - $k[$j++] = Infinity; - $aload($1.finder); - $aload($1.data); - $aload($1.check); - $1.sbs = $a(); - $1.txt = $a($1.barlen); - for (var _1p = 0, _1o = $1.barlen - 1; _1p <= _1o; _1p += 1) { - $1.i = _1p; - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), 0, 0, "", 0 ])); - } - $k[$j++] = Infinity; - var _1w = $1.sbs; - $k[$j++] = Infinity; - for (var _1y = 0, _1z = ~~(($1.sbs.length + 1) / 2); _1y < _1z; _1y++) { - $k[$j++] = $1.height; - } - var _21 = $a(); - $k[$j++] = Infinity; - for (var _23 = 0, _24 = ~~(($1.sbs.length + 1) / 2); _23 < _24; _23++) { - $k[$j++] = 0; - } - var _25 = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _1w; - $k[$j++] = "bhs"; - $k[$j++] = _21; - $k[$j++] = "bbs"; - $k[$j++] = _25; - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - $k[$j++] = "textxalign"; - $k[$j++] = "center"; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _28 = $d(); - $k[$j++] = _28; - if (!$1.dontdraw) { - $0.renlinear(); - } + $1.chan = $k[--$j]; //#28897 + $1.target = $k[--$j]; //#28898 + $1.value = 0; //#28899 + $1.out = -1; //#28900 + $1.b = $a([1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0]); //#28901 + $1.s = $a([0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0]); //#28902 + var _18 = $1.chan; //#28903 + $k[$j++] = _18; //#28903 + $k[$j++] = _18; //#28903 + $k[$j++] = 3; //#28903 + $1.nexts(); //#28903 + $k[$j++] = $1.out; //#28904 + }; //#28905 + $1.barlen = $1.barcode.length; //#28907 + $k[$j++] = 'finder'; //#28910 + if ($1.shortfinder) { //#28910 + $k[$j++] = $a([1, 1, 1, 1, 1]); //#28910 + } else { //#28910 + $k[$j++] = $a([1, 1, 1, 1, 1, 1, 1, 1, 1]); //#28910 + } //#28910 + var _1E = $k[--$j]; //#28910 + $1[$k[--$j]] = _1E; //#28910 + $k[$j++] = 'data'; //#28913 + $k[$j++] = ~~$z($1.barcode); //#28913 + $k[$j++] = $1.barlen + 1; //#28913 + $1.encode(); //#28913 + var _1I = $k[--$j]; //#28913 + $1[$k[--$j]] = _1I; //#28913 + $1.check = $a([]); //#28916 + if ($1.includecheck) { //#28932 + $1.mod23 = $get($a([$a([]), $a([]), $a([13, 12, 4, 9, 3, 1]), $a([13, 2, 12, 3, 18, 16, 4, 1]), $a([11, 16, 17, 8, 20, 4, 10, 2, 5, 1]), $a([1, 4, 16, 18, 3, 12, 2, 8, 9, 13, 6, 1]), $a([20, 16, 22, 13, 15, 12, 5, 4, 8, 9, 21, 3, 7, 1]), $a([2, 6, 18, 8, 1, 3, 9, 4, 12, 13, 16, 2, 6, 18, 8, 1])]), $1.barlen); //#28926 + $k[$j++] = 0; //#28930 + for (var _1Z = 0, _1Y = $1.data.length - 1; _1Z <= _1Y; _1Z += 1) { //#28930 + var _1e = $k[--$j]; //#28929 + $k[$j++] = $f(_1e + ($f($get($1.data, _1Z) - 1) * $get($1.mod23, _1Z))); //#28929 + } //#28929 + var _1f = $k[--$j]; //#28931 + $k[$j++] = _1f % 23; //#28931 + $k[$j++] = 3; //#28931 + $1.encode(); //#28931 + $1.check = $k[--$j]; //#28931 + } //#28931 + $k[$j++] = Infinity; //#28938 + $aload($1.finder); //#28936 + $aload($1.data); //#28937 + $aload($1.check); //#28938 + $1.sbs = $a(); //#28938 + $1.txt = $a($1.barlen); //#28942 + for (var _1p = 0, _1o = $1.barlen - 1; _1p <= _1o; _1p += 1) { //#28946 + $1.i = _1p; //#28944 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), 0, 0, "", 0])); //#28945 + } //#28945 + $k[$j++] = Infinity; //#28956 + var _1w = $1.sbs; //#28951 + $k[$j++] = Infinity; //#28952 + for (var _1y = 0, _1z = ~~(($1.sbs.length + 1) / 2); _1y < _1z; _1y++) { //#28952 + $k[$j++] = $1.height; //#28952 + } //#28952 + var _21 = $a(); //#28952 + $k[$j++] = Infinity; //#28953 + for (var _23 = 0, _24 = ~~(($1.sbs.length + 1) / 2); _23 < _24; _23++) { //#28953 + $k[$j++] = 0; //#28953 + } //#28953 + var _25 = $a(); //#28953 + $k[$j++] = 'ren'; //#28956 + $k[$j++] = $0.renlinear; //#28956 + $k[$j++] = 'sbs'; //#28956 + $k[$j++] = _1w; //#28956 + $k[$j++] = 'bhs'; //#28956 + $k[$j++] = _21; //#28956 + $k[$j++] = 'bbs'; //#28956 + $k[$j++] = _25; //#28956 + $k[$j++] = 'txt'; //#28956 + $k[$j++] = $1.txt; //#28956 + $k[$j++] = 'textxalign'; //#28956 + $k[$j++] = "center"; //#28956 + $k[$j++] = 'opt'; //#28956 + $k[$j++] = $1.options; //#28956 + var _28 = $d(); //#28956 + $k[$j++] = _28; //#28959 + if (!$1.dontdraw) { //#28959 + $0.renlinear(); //#28959 + } //#28959 }; $0.renlinear = function() { - if ($0.bwipjs_dontdraw) { - return; - } - var $1 = {}; - $1.args = $k[--$j]; - $1.sbs = $a([]); - $1.bhs = $a([]); - $1.bbs = $a([]); - $1.txt = $a([]); - $1.barcolor = "unset"; - $1.includetext = false; - $1.textcolor = "unset"; - $1.textxalign = "unset"; - $1.textyalign = "unset"; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = 0; - $1.textgaps = 0; - $1.alttext = ""; - $1.bordercolor = "unset"; - $1.backgroundcolor = "unset"; - $1.inkspread = 0; - $1.width = 0; - $1.barratio = 1; - $1.spaceratio = 1; - $1.showborder = false; - $1.borderleft = 10; - $1.borderright = 10; - $1.bordertop = 1; - $1.borderbottom = 1; - $1.borderwidth = .5; - $1.guardwhitespace = false; - $1.guardleftpos = 0; - $1.guardleftypos = 0; - $1.guardrightpos = 0; - $1.guardrightypos = 0; - $1.guardwidth = 7; - $1.guardheight = 7; - $forall($1.args, function() { - var _7 = $k[--$j]; - $1[$k[--$j]] = _7; - }); - var _9 = $1.opt; - for (var _E = _9.size, _D = _9.keys(), _C = 0; _C < _E; _C++) { - var _A = _D.next().value; - $1[_A] = _9.get(_A); - } - $1.barcolor = "" + $1.barcolor; - $1.textcolor = "" + $1.textcolor; - $1.textxalign = "" + $1.textxalign; - $1.textyalign = "" + $1.textyalign; - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.textgaps = +$1.textgaps; - $1.alttext = "" + $1.alttext; - $1.bordercolor = "" + $1.bordercolor; - $1.backgroundcolor = "" + $1.backgroundcolor; - $1.inkspread = +$1.inkspread; - $1.width = +$1.width; - $1.barratio = +$1.barratio; - $1.spaceratio = +$1.spaceratio; - $1.borderleft = +$1.borderleft; - $1.borderright = +$1.borderright; - $1.bordertop = +$1.bordertop; - $1.borderbottom = +$1.borderbottom; - $1.borderwidth = +$1.borderwidth; - $1.guardleftpos = +$1.guardleftpos; - $1.guardleftypos = +$1.guardleftypos; - $1.guardrightpos = +$1.guardrightpos; - $1.guardrightypos = +$1.guardrightypos; - $1.guardwidth = +$1.guardwidth; - $1.guardheight = +$1.guardheight; - $1.bars = $a(~~(($1.sbs.length + 1) / 2)); - $1.x = 0; - $1.maxh = 0; - for (var _k = 0, _j = ~~(($1.sbs.length + 1) / 2) * 2 - 2; _k <= _j; _k += 1) { - $1.i = _k; - if ($1.i % 2 == 0) { - $1.d = $f($f($get($1.sbs, $1.i) * $1.barratio - $1.barratio) + 1); - if ($get($1.sbs, $1.i) != 0) { - $1.h = $get($1.bhs, ~~($1.i / 2)) * 72; - $1.c = $f($1.d / 2 + $1.x); - $1.y = $get($1.bbs, ~~($1.i / 2)) * 72; - $1.w = $f($1.d - $1.inkspread); - $put($1.bars, ~~($1.i / 2), $a([ $1.h, $1.c, $1.y, $1.w ])); - if ($f($1.h + $1.y) > $1.maxh) { - $1.maxh = $f($1.h + $1.y); - } - } else { - $put($1.bars, ~~($1.i / 2), -1); - } - } else { - $1.d = $f($f($get($1.sbs, $1.i) * $1.spaceratio - $1.spaceratio) + 1); - } - $1.x = $f($1.x + $1.d); - } - $$.save(); - var _1P = $$.currpos(); - $$.translate(_1P.x, _1P.y); - if ($1.width != 0) { - $$.scale($1.width * 72 / $1.x, 1); - } - $$.newpath(); - $$.moveto(-$1.borderleft, -$1.borderbottom); - $$.rlineto($f($f($1.x + $1.borderleft) + $1.borderright), 0); - $$.rlineto(0, $f($f($1.maxh + $1.borderbottom) + $1.bordertop)); - $$.rlineto(-$f($f($1.x + $1.borderleft) + $1.borderright), 0); - $$.rlineto(0, -$f($f($1.maxh + $1.borderbottom) + $1.bordertop)); - $$.closepath(); - if ($1.showborder) { - $$.save(); - if ($ne($1.bordercolor, "unset")) { - $$.setcolor($1.bordercolor); - } - $$.setlinewidth($1.borderwidth); - $$.stroke(); - $$.restore(); - } - $$.save(); - if ($ne($1.barcolor, "unset")) { - $$.setcolor($1.barcolor); - } - var _1n = $1.bars; - for (var _1o = 0, _1p = _1n.length; _1o < _1p; _1o++) { - var _1q = $get(_1n, _1o); - $k[$j++] = _1q; - if (_1q != -1) { - $aload($k[--$j]); - $$.newpath(); - $$.setlinewidth($k[--$j]); - var _1t = $k[--$j]; - $$.moveto($k[--$j], _1t); - $$.rlineto(0, $k[--$j]); - $$.stroke(); - } else { - $j--; - } - } - $$.restore(); - if ($ne($1.textcolor, "unset")) { - $$.setcolor($1.textcolor); - } - if ($1.includetext) { - if ($eq($1.textxalign, "unset") && $eq($1.textyalign, "unset") && $eq($1.alttext, "")) { - $1.s = 0; - $1.fn = ""; - var _22 = $1.txt; - for (var _23 = 0, _24 = _22.length; _23 < _24; _23++) { - $forall($get(_22, _23)); - var _26 = $k[--$j]; - var _27 = $k[--$j]; - $k[$j++] = _27; - $k[$j++] = _26; - if (_26 != $1.s || $ne(_27, $1.fn)) { - var _2A = $k[--$j]; - var _2B = $k[--$j]; - $1.s = _2A; - $1.fn = _2B; - $$.selectfont(_2B, _2A); - } else { - $j -= 2; - } - var _2C = $k[--$j]; - $$.moveto($k[--$j], _2C); - $$.show($k[--$j], 0, 0); - } - } else { - $$.selectfont($1.textfont, $1.textsize); - if ($eq($1.alttext, "")) { - $k[$j++] = Infinity; - var _2I = $1.txt; - for (var _2J = 0, _2K = _2I.length; _2J < _2K; _2J++) { - $forall($get($get(_2I, _2J), 0)); - } - $1.txt = $a(); - $1.tstr = $s($1.txt.length); - for (var _2S = 0, _2R = $1.txt.length - 1; _2S <= _2R; _2S += 1) { - $put($1.tstr, _2S, $get($1.txt, _2S)); - } - } else { - $1.tstr = $1.alttext; - } - if ($1.tstr.length == 0) { - $k[$j++] = 0; - } else { - $$.save(); - $$.newpath(); - $$.moveto(0, 0); - $$.charpath("0", false); - var _2Y = $$.pathbbox(); - $$.restore(); - $k[$j++] = _2Y.ury; - } - $1.textascent = $k[--$j]; - var _2b = $$.stringwidth($1.tstr); - $1.textwidth = $f(_2b.w + ($1.tstr.length - 1) * $1.textgaps); - $1.textxpos = $f($1.textxoffset + $f($1.x - $1.textwidth) / 2); - if ($eq($1.textxalign, "left")) { - $1.textxpos = $1.textxoffset; - } - if ($eq($1.textxalign, "right")) { - $1.textxpos = $f($f($1.x - $1.textxoffset) - $1.textwidth); - } - if ($eq($1.textxalign, "offleft")) { - $1.textxpos = -$f($1.textwidth + $1.textxoffset); - } - if ($eq($1.textxalign, "offright")) { - $1.textxpos = $f($1.x + $1.textxoffset); - } - if ($eq($1.textxalign, "justify") && $1.textwidth < $1.x) { - $1.textxpos = 0; - $1.textgaps = $f($1.x - $1.textwidth) / ($1.tstr.length - 1); - } - $1.textypos = -$f($f($1.textyoffset + $1.textascent) + 1); - if ($eq($1.textyalign, "above")) { - $1.textypos = $f($f($1.textyoffset + $1.maxh) + 1); - } - if ($eq($1.textyalign, "center")) { - $1.textypos = $f($1.textyoffset + $f($1.maxh - $1.textascent) / 2); - } - $$.moveto($1.textxpos, $1.textypos); - $$.show($1.tstr, $1.textgaps, 0); - } - } - if ($1.guardwhitespace) { - $$.selectfont("OCR-B", $1.guardheight * 2); - if ($1.guardleftpos != 0) { - $$.moveto($f(-$1.guardleftpos - 1), $f($f($1.guardleftypos - $1.guardheight / 2) - 1.5)); - $$.show("<", 0, 0); - } - if ($1.guardrightpos != 0) { - $$.moveto($f($f($f($1.guardrightpos + $1.x) - $1.guardwidth) + 1), $f($f($1.guardrightypos - $1.guardheight / 2) - 1.5)); - $$.show(">", 0, 0); - } - } - $$.restore(); + if ($0.bwipjs_dontdraw) { //#28980 + return; //#28980 + } //#28980 + var $1 = {}; //#28981 + $1.args = $k[--$j]; //#28983 + $1.sbs = $a([]); //#28986 + $1.bhs = $a([]); //#28987 + $1.bbs = $a([]); //#28988 + $1.txt = $a([]); //#28989 + $1.barcolor = "unset"; //#28990 + $1.includetext = false; //#28991 + $1.textcolor = "unset"; //#28992 + $1.textxalign = "unset"; //#28993 + $1.textyalign = "unset"; //#28994 + $1.textfont = "OCR-B"; //#28995 + $1.textsize = 10; //#28996 + $1.textxoffset = 0; //#28997 + $1.textyoffset = 0; //#28998 + $1.textgaps = 0; //#28999 + $1.alttext = ""; //#29000 + $1.bordercolor = "unset"; //#29001 + $1.backgroundcolor = "unset"; //#29002 + $1.inkspread = 0; //#29003 + $1.width = 0; //#29004 + $1.barratio = 1; //#29005 + $1.spaceratio = 1; //#29006 + $1.showborder = false; //#29007 + $1.borderleft = 10; //#29008 + $1.borderright = 10; //#29009 + $1.bordertop = 1; //#29010 + $1.borderbottom = 1; //#29011 + $1.borderwidth = 0.5; //#29012 + $1.guardwhitespace = false; //#29013 + $1.guardleftpos = 0; //#29014 + $1.guardleftypos = 0; //#29015 + $1.guardrightpos = 0; //#29016 + $1.guardrightypos = 0; //#29017 + $1.guardwidth = 7; //#29018 + $1.guardheight = 7; //#29019 + $forall($1.args, function() { //#29022 + var _7 = $k[--$j]; //#29022 + $1[$k[--$j]] = _7; //#29022 + }); //#29022 + var _9 = $1.opt; //#29023 + for (var _E = _9.size, _D = _9.keys(), _C = 0; _C < _E; _C++) { //#29023 + var _A = _D.next().value; //#29023 + $1[_A] = _9.get(_A); //#29023 + } //#29023 + $1.barcolor = "" + $1.barcolor; //#29025 + $1.textcolor = "" + $1.textcolor; //#29026 + $1.textxalign = "" + $1.textxalign; //#29027 + $1.textyalign = "" + $1.textyalign; //#29028 + $1.textfont = "" + $1.textfont; //#29029 + $1.textsize = +$1.textsize; //#29030 + $1.textxoffset = +$1.textxoffset; //#29031 + $1.textyoffset = +$1.textyoffset; //#29032 + $1.textgaps = +$1.textgaps; //#29033 + $1.alttext = "" + $1.alttext; //#29034 + $1.bordercolor = "" + $1.bordercolor; //#29035 + $1.backgroundcolor = "" + $1.backgroundcolor; //#29036 + $1.inkspread = +$1.inkspread; //#29037 + $1.width = +$1.width; //#29038 + $1.barratio = +$1.barratio; //#29039 + $1.spaceratio = +$1.spaceratio; //#29040 + $1.borderleft = +$1.borderleft; //#29041 + $1.borderright = +$1.borderright; //#29042 + $1.bordertop = +$1.bordertop; //#29043 + $1.borderbottom = +$1.borderbottom; //#29044 + $1.borderwidth = +$1.borderwidth; //#29045 + $1.guardleftpos = +$1.guardleftpos; //#29046 + $1.guardleftypos = +$1.guardleftypos; //#29047 + $1.guardrightpos = +$1.guardrightpos; //#29048 + $1.guardrightypos = +$1.guardrightypos; //#29049 + $1.guardwidth = +$1.guardwidth; //#29050 + $1.guardheight = +$1.guardheight; //#29051 + $1.bars = $a(~~(($1.sbs.length + 1) / 2)); //#29054 + $1.x = 0; //#29055 + $1.maxh = 0; //#29055 + for (var _k = 0, _j = ((~~(($1.sbs.length + 1) / 2)) * 2) - 2; _k <= _j; _k += 1) { //#29074 + $1.i = _k; //#29057 + if (($1.i % 2) == 0) { //#29071 + $1.d = $f(($f(($get($1.sbs, $1.i) * $1.barratio) - $1.barratio)) + 1); //#29059 + if ($get($1.sbs, $1.i) != 0) { //#29068 + $1.h = $get($1.bhs, ~~($1.i / 2)) * 72; //#29061 + $1.c = $f(($1.d / 2) + $1.x); //#29062 + $1.y = $get($1.bbs, ~~($1.i / 2)) * 72; //#29063 + $1.w = $f($1.d - $1.inkspread); //#29064 + $put($1.bars, ~~($1.i / 2), $a([$1.h, $1.c, $1.y, $1.w])); //#29065 + if ($f($1.h + $1.y) > $1.maxh) { //#29066 + $1.maxh = $f($1.h + $1.y); //#29066 + } //#29066 + } else { //#29068 + $put($1.bars, ~~($1.i / 2), -1); //#29068 + } //#29068 + } else { //#29071 + $1.d = $f(($f(($get($1.sbs, $1.i) * $1.spaceratio) - $1.spaceratio)) + 1); //#29071 + } //#29071 + $1.x = $f($1.x + $1.d); //#29073 + } //#29073 + $$.save(); //#29076 + var _1P = $$.currpos(); //#29078 + $$.translate(_1P.x, _1P.y); //#29078 + if ($1.width != 0) { //#29083 + $$.scale(($1.width * 72) / $1.x, 1); //#29082 + } //#29082 + $$.newpath(); //#29086 + $$.moveto(-$1.borderleft, -$1.borderbottom); //#29087 + $$.rlineto($f($f($1.x + $1.borderleft) + $1.borderright), 0); //#29088 + $$.rlineto(0, $f($f($1.maxh + $1.borderbottom) + $1.bordertop)); //#29089 + $$.rlineto(-($f($f($1.x + $1.borderleft) + $1.borderright)), 0); //#29090 + $$.rlineto(0, -($f($f($1.maxh + $1.borderbottom) + $1.bordertop))); //#29091 + $$.closepath(); //#29092 + if ($1.showborder) { //#29100 + $$.save(); //#29096 + if ($ne($1.bordercolor, "unset")) { //#29097 + $$.setcolor($1.bordercolor); //#29097 + } //#29097 + $$.setlinewidth($1.borderwidth); //#29098 + $$.stroke(); //#29098 + $$.restore(); //#29099 + } //#29099 + $$.save(); //#29103 + if ($ne($1.barcolor, "unset")) { //#29105 + $$.setcolor($1.barcolor); //#29105 + } //#29105 + var _1n = $1.bars; //#29106 + for (var _1o = 0, _1p = _1n.length; _1o < _1p; _1o++) { //#29112 + var _1q = $get(_1n, _1o); //#29112 + $k[$j++] = _1q; //#29111 + if (_1q != -1) { //#29110 + $aload($k[--$j]); //#29108 + $$.newpath(); //#29108 + $$.setlinewidth($k[--$j]); //#29108 + var _1t = $k[--$j]; //#29108 + $$.moveto($k[--$j], _1t); //#29108 + $$.rlineto(0, $k[--$j]); //#29108 + $$.stroke(); //#29108 + } else { //#29110 + $j--; //#29110 + } //#29110 + } //#29110 + $$.restore(); //#29113 + if ($ne($1.textcolor, "unset")) { //#29116 + $$.setcolor($1.textcolor); //#29116 + } //#29116 + if ($1.includetext) { //#29173 + if (($eq($1.textxalign, "unset") && $eq($1.textyalign, "unset")) && $eq($1.alttext, "")) { //#29171 + $1.s = 0; //#29119 + $1.fn = ""; //#29119 + var _22 = $1.txt; //#29120 + for (var _23 = 0, _24 = _22.length; _23 < _24; _23++) { //#29129 + $forall($get(_22, _23)); //#29121 + var _26 = $k[--$j]; //#29122 + var _27 = $k[--$j]; //#29122 + $k[$j++] = _27; //#29127 + $k[$j++] = _26; //#29127 + if ((_26 != $1.s) || $ne(_27, $1.fn)) { //#29126 + var _2A = $k[--$j]; //#29123 + var _2B = $k[--$j]; //#29123 + $1.s = _2A; //#29123 + $1.fn = _2B; //#29123 + $$.selectfont(_2B, _2A); //#29124 + } else { //#29126 + $j -= 2; //#29126 + } //#29126 + var _2C = $k[--$j]; //#29128 + $$.moveto($k[--$j], _2C); //#29128 + $$.show($k[--$j], 0, 0); //#29128 + } //#29128 + } else { //#29171 + $$.selectfont($1.textfont, $1.textsize); //#29131 + if ($eq($1.alttext, "")) { //#29137 + $k[$j++] = Infinity; //#29133 + var _2I = $1.txt; //#29133 + for (var _2J = 0, _2K = _2I.length; _2J < _2K; _2J++) { //#29133 + $forall($get($get(_2I, _2J), 0)); //#29133 + } //#29133 + $1.txt = $a(); //#29133 + $1.tstr = $s($1.txt.length); //#29134 + for (var _2S = 0, _2R = $1.txt.length - 1; _2S <= _2R; _2S += 1) { //#29135 + $put($1.tstr, _2S, $get($1.txt, _2S)); //#29135 + } //#29135 + } else { //#29137 + $1.tstr = $1.alttext; //#29137 + } //#29137 + if ($1.tstr.length == 0) { //#29147 + $k[$j++] = 0; //#29142 + } else { //#29147 + $$.save(); //#29144 + $$.newpath(); //#29145 + $$.moveto(0, 0); //#29145 + $$.charpath("0", false); //#29145 + var _2Y = $$.pathbbox(); //#29145 + $$.restore(); //#29147 + $k[$j++] = _2Y.ury; //#29147 + } //#29147 + $1.textascent = $k[--$j]; //#29156 + var _2b = $$.stringwidth($1.tstr); //#29157 + $1.textwidth = $f(_2b.w + (($1.tstr.length - 1) * $1.textgaps)); //#29157 + $1.textxpos = $f($1.textxoffset + ($f($1.x - $1.textwidth) / 2)); //#29159 + if ($eq($1.textxalign, "left")) { //#29160 + $1.textxpos = $1.textxoffset; //#29160 + } //#29160 + if ($eq($1.textxalign, "right")) { //#29161 + $1.textxpos = $f($f($1.x - $1.textxoffset) - $1.textwidth); //#29161 + } //#29161 + if ($eq($1.textxalign, "offleft")) { //#29162 + $1.textxpos = -$f($1.textwidth + $1.textxoffset); //#29162 + } //#29162 + if ($eq($1.textxalign, "offright")) { //#29163 + $1.textxpos = $f($1.x + $1.textxoffset); //#29163 + } //#29163 + if ($eq($1.textxalign, "justify") && ($1.textwidth < $1.x)) { //#29167 + $1.textxpos = 0; //#29165 + $1.textgaps = $f($1.x - $1.textwidth) / ($1.tstr.length - 1); //#29166 + } //#29166 + $1.textypos = -($f($f($1.textyoffset + $1.textascent) + 1)); //#29168 + if ($eq($1.textyalign, "above")) { //#29169 + $1.textypos = $f($f($1.textyoffset + $1.maxh) + 1); //#29169 + } //#29169 + if ($eq($1.textyalign, "center")) { //#29170 + $1.textypos = $f($1.textyoffset + ($f($1.maxh - $1.textascent) / 2)); //#29170 + } //#29170 + $$.moveto($1.textxpos, $1.textypos); //#29171 + $$.show($1.tstr, $1.textgaps, 0); //#29171 + } //#29171 + } //#29171 + if ($1.guardwhitespace) { //#29186 + $$.selectfont("OCR-B", $1.guardheight * 2); //#29177 + if ($1.guardleftpos != 0) { //#29181 + $$.moveto($f((-$1.guardleftpos) - 1), $f(($f($1.guardleftypos - ($1.guardheight / 2))) - 1.5)); //#29179 + $$.show("<", 0, 0); //#29180 + } //#29180 + if ($1.guardrightpos != 0) { //#29185 + $$.moveto($f(($f($f($1.guardrightpos + $1.x) - $1.guardwidth)) + 1), $f(($f($1.guardrightypos - ($1.guardheight / 2))) - 1.5)); //#29183 + $$.show(">", 0, 0); //#29184 + } //#29184 + } //#29184 + $$.restore(); //#29188 }; $0.renmaximatrix = function() { - if ($0.bwipjs_dontdraw) { - return; - } - var $1 = {}; - $1.args = $k[--$j]; - $1.barcolor = "unset"; - $1.backgroundcolor = "unset"; - $forall($1.args, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - var _5 = $1.opt; - for (var _A = _5.size, _9 = _5.keys(), _8 = 0; _8 < _A; _8++) { - var _6 = _9.next().value; - $1[_6] = _5.get(_6); - } - $1.barcolor = "" + $1.barcolor; - $1.backgroundcolor = "" + $1.backgroundcolor; - $$.save(); - if ($ne($1.barcolor, "unset")) { - $$.setcolor($1.barcolor); - } - $$.maxicode($1.pixs); - $$.restore(); + if ($0.bwipjs_dontdraw) { //#29208 + return; //#29208 + } //#29208 + var $1 = {}; //#29210 + $1.args = $k[--$j]; //#29212 + $1.barcolor = "unset"; //#29215 + $1.backgroundcolor = "unset"; //#29216 + $forall($1.args, function() { //#29219 + var _3 = $k[--$j]; //#29219 + $1[$k[--$j]] = _3; //#29219 + }); //#29219 + var _5 = $1.opt; //#29220 + for (var _A = _5.size, _9 = _5.keys(), _8 = 0; _8 < _A; _8++) { //#29220 + var _6 = _9.next().value; //#29220 + $1[_6] = _5.get(_6); //#29220 + } //#29220 + $1.barcolor = "" + $1.barcolor; //#29222 + $1.backgroundcolor = "" + $1.backgroundcolor; //#29223 + $$.save(); //#29225 + if ($ne($1.barcolor, "unset")) { //#29227 + $$.setcolor($1.barcolor); //#29227 + } //#29227 + $$.maxicode($1.pixs); //#29228 + $$.restore(); //#29230 }; + // bwip-js/barcode-ftr.js + // + // This code is injected below the cross-compiled barcode.ps. + + // The BWIPP symbol is a factory object. When called, it returns this + // function, which is a re-usable postscript emulation for BWIPP. return function(bwipjs, encoder, text, opts, dontdraw) { if (!$0[encoder]) { - throw new Error("bwipp.unknownEncoder: " + encoder); + throw new Error('bwipp.unknownEncoder: ' + encoder); } - if (typeof text !== "string") { - throw new Error("bwipp.typeError: barcode text not a string (" + text + ")"); + if (typeof text !== 'string') { + throw new Error('bwipp.typeError: barcode text not a string (' + + text + ')'); } opts = opts || {}; - if (typeof opts === "string") { - var tmp = opts.split(" "); + if (typeof opts === 'string') { + var tmp = opts.split(' '); opts = {}; for (var i = 0; i < tmp.length; i++) { if (!tmp[i]) { continue; } - var eq = tmp[i].indexOf("="); + var eq = tmp[i].indexOf('='); if (eq == -1) { opts[tmp[i]] = true; } else { opts[tmp[i].substr(0, eq)] = tmp[i].substr(eq + 1); } } - } else if (typeof opts !== "object" || opts.constructor !== Object) { - throw new Error("bwipp.typeError: options not an object"); + } else if (typeof opts !== 'object' || opts.constructor !== Object) { + throw new Error('bwipp.typeError: options not an object'); } + + // Convert utf-16 to utf-8 but leave binary (8-bit) strings untouched. if (/[\u0100-\uffff]/.test(text)) { text = unescape(encodeURIComponent(text)); } + + // Handle the `parse` option here rather than in BWIPP - eliminates + // conflict with the parsefnc option and allows removing the parsing + // code from BWIPP. if (opts.parse) { text = text.replace(/\^(\d\d\d)/g, function($0, $1) { var v = +$1; if (v > 255) { - throw new Error("bwipp.rangeError:" + " ^NNN out-of-range (" + $0 + ")"); + throw new Error('bwipp.rangeError:' + + ' ^NNN out-of-range (' + $0 + ')'); } return String.fromCharCode(v); }); delete opts.parse; } + + // Don't draw? (See file runtest) $0.bwipjs_dontdraw = opts.dontdraw || dontdraw || false; - var map = new Map(); + + // Convert opts to a Map + var map = new Map; for (var id in opts) { if (opts.hasOwnProperty(id)) { map.set(id, opts[id]); } } + + // Invoke the encoder $$ = bwipjs; - $k = [ text, map ]; + $k = [text, map]; $j = 2; $0[encoder](); + + // Return what is left on the stack. This branch should only be taken + // when running with the dontdraw option. if ($j) { return $k.splice(0, $j); } + return true; - }; + } } - -BWIPP.VERSION = "2021-02-06"; +BWIPP.VERSION = '2021-02-06'; // file : bwipjs.js // // Graphics-context interface to the BWIPP cross-compiled code @@ -33912,10 +35807,10 @@ function DrawingBuiltin(opts) { var w2 = (lw/2)|0; if (x0 == x1) { // Vertical line - x0 = x0 - w2; - x1 = x1 + lw - w2 - 1; + x0 = x0 - lw + w2; // big half + x1 = x1 + w2 - 1; // small half } else { - // Horizontal line + // Horizontal line (inverted halves) y0 = y0 - w2; y1 = y1 + lw - w2 - 1; } @@ -36368,7 +38263,7 @@ return { toCanvas:ToCanvas, render:Render, raw:Raw, fixupOptions:FixupOptions, loadFont:FontLib.loadFont, - VERSION:'2.1.1 (2021-02-24)', + VERSION:'2.1.2 (2021-04-06)', // Internals BWIPJS:BWIPJS, BWIPP:BWIPP, STBTT:STBTT, FontLib:FontLib, diff --git a/dist/node-bwipjs.js b/dist/node-bwipjs.js index 4a207d65..512963ee 100644 --- a/dist/node-bwipjs.js +++ b/dist/node-bwipjs.js @@ -275,19 +275,43 @@ function Raw(encoder, text, options) { } return stack; } +// bwip-js // Barcode Writer in Pure JavaScript +// https://github.com/metafloor/bwip-js +// +// This code was automatically generated from: +// Barcode Writer in Pure PostScript - Version 2021-02-06 +// +// Copyright (c) 2011-2021 Mark Warren +// Copyright (c) 2004-2021 Terry Burton +// +// Licensed MIT. See the LICENSE file in the bwip-js root directory. function BWIPP() { "use strict"; + // bwip-js/barcode-hdr.js + // + // This code is injected above the cross-compiled barcode.ps. + + // The BWIPJS object (graphics interface) var $$ = null; + + // The global dictionary. Each renderer and encoder declare a + // $1 local dict. var $0 = { - $error: new Map() + $error: new Map // the postscript error object }; - var $j = 0; - var $k = []; + + var $j = 0; // stack pointer + var $k = []; // operand stack + + // Array ctor + // $a() : Build a new array up to the Infinity-marker on the stack. + // $a(arr) : Convert native array to a "view" of the array. + // $a(len) : Create a new array of length `len` function $a(a) { if (!arguments.length) { - for (var i = $j - 1; i >= 0 && $k[i] !== Infinity; i--) ; + for (var i = $j - 1; i >= 0 && $k[i] !== Infinity; i--); if (i < 0) { - throw new Error("array-marker-not-found"); + throw new Error('array-marker-not-found'); } a = $k.splice(i + 1, $j - 1 - i); $j = i; @@ -297,41 +321,55 @@ function BWIPP() { a[i] = null; } } - a.b = a; - a.o = 0; + a.b = a; // base array + a.o = 0; // offset into base return a; } + + // dict ctor + // $d() : look for the Infinity marker on the stack function $d() { + // Build the dictionary in the order the keys/values were pushed so enumeration + // occurs in the correct sequence. for (var mark = $j - 1; mark >= 0 && $k[mark] !== Infinity; mark -= 2) { if ($k[mark - 1] === Infinity) { - throw new Error("dict-malformed-stack"); + throw new Error('dict-malformed-stack'); } } if (mark < 0) { - throw "dict-marker-not-found"; + throw 'dict-marker-not-found'; } - var d = new Map(); + var d = new Map; for (var i = mark + 1; i < $j; i += 2) { - var k = $k[i]; + // Unlike javascript, postscript dict keys differentiate between + // numbers and the string representation of a number. + var k = $k[i]; // "key" into the dict entry var t = typeof k; - if (t == "number" || t == "string") { + if (t == 'number' || t == 'string') { d.set(k, $k[i + 1]); } else if (k instanceof Uint8Array) { d.set($z(k), $k[i + 1]); } else { - throw "dict-not-a-valid-key(" + k + ")"; + throw 'dict-not-a-valid-key(' + k + ')'; } } $j = mark; return d; } + + // string ctor + // s(number) : create zero-filled string of number-length + // s(string) : make a copy of the string + // s(uint8[]) : make a copy of the string + // + // Returns a Uint8Array-string. function $s(v) { var t = typeof v; - if (t === "number") { + if (t === 'number') { return new Uint8Array(v); } - if (t !== "string") { - v = "" + v; + if (t !== 'string') { + v = '' + v; } var s = new Uint8Array(v.length); for (var i = 0; i < v.length; i++) { @@ -339,9 +377,11 @@ function BWIPP() { } return s; } + + // ... n c roll function $r(n, c) { if ($j < n) { - throw "roll: --stack-underflow--"; + throw 'roll: --stack-underflow--'; } if (!c) { return; @@ -351,20 +391,27 @@ function BWIPP() { } else { var t = $k.splice($j - n, n - c); } - $k.splice.apply($k, [ $j - t.length, 0 ].concat(t)); + $k.splice.apply($k, [$j - t.length, 0].concat(t)); } + + // Primarily designed to convert uint8-string to string, but will call the + // the toString() method on any value. function $z(s) { if (s instanceof Uint8Array) { - for (var i = 0, l = s.length; i < l && s[i]; i++) ; + // Postscript treats nul-char as end of string, even if string is + // longer. + for (var i = 0, l = s.length; i < l && s[i]; i++); if (i < l) { return String.fromCharCode.apply(null, s.subarray(0, i)); } - return String.fromCharCode.apply(null, s); + return String.fromCharCode.apply(null, s) } - return "" + s; + return '' + s; } + + // Copies source to dest and returns a view of just the copied characters function $strcpy(dst, src) { - if (typeof dst === "string") { + if (typeof dst === 'string') { dst = $s(dst); } if (src instanceof Uint8Array) { @@ -378,6 +425,8 @@ function BWIPP() { } return src.length < dst.length ? dst.subarray(0, src.length) : dst; } + + // Copies source to dest and should (but doesn't) return a view of just the copied elements function $arrcpy(dst, src) { for (var i = 0, l = src.length; i < l; i++) { dst[i] = src[i]; @@ -385,26 +434,38 @@ function BWIPP() { dst.length = src.length; return dst; } + + // cvs operator - convert a value to its string representation + // s : string to store into + // v : any value function $cvs(s, v) { var t = typeof v; - if (t == "number" || t == "boolean" || v === null) { - v = "" + v; - } else if (t !== "string") { - v = "--nostringval--"; + if (t == 'number' || t == 'boolean' || v === null) { + v = '' + v; + } else if (t !== 'string') { + v = '--nostringval--'; } for (var i = 0, l = v.length; i < l; i++) { s[i] = v.charCodeAt(i); } $k[$j++] = i < s.length ? s.subarray(0, i) : s; } + // cvrs operator - convert a number to a radix string + // s : string to store into + // n : number + // r : radix function $cvrs(s, n, r) { return $strcpy(s, (~~n).toString(r).toUpperCase()); } + + // get operator + // s : source + // k : key function $get(s, k) { if (s instanceof Uint8Array) { return s[k]; } - if (typeof s === "string") { + if (typeof s === 'string') { return s.charCodeAt(k); } if (s instanceof Array) { @@ -415,100 +476,137 @@ function BWIPP() { } return s.get(k); } + + // put operator + // d : dest + // k : key + // v : value function $put(d, k, v) { if (d instanceof Uint8Array) { d[k] = v; } else if (d instanceof Array) { d.b[d.o + k] = v; - } else if (typeof d == "object") { + } else if (typeof d == 'object') { if (k instanceof Uint8Array) { d.set($z(k), v); } else { d.set(k, v); } } else { - throw "put-not-writable-" + typeof d; + throw 'put-not-writable-' + (typeof d); } } + + // getinterval operator + // s : src + // o : offset + // l : length function $geti(s, o, l) { if (s instanceof Uint8Array) { return s.subarray(o, o + l); } if (s instanceof Array) { var a = new Array(l); - a.b = s.b; - a.o = s.o + o; + a.b = s.b; // base array + a.o = s.o + o; // offset into base return a; } + // Must be a string return s.substr(o, l); } + + // putinterval operator + // d : dst + // o : offset + // s : src function $puti(d, o, s) { if (d instanceof Uint8Array) { - if (typeof s == "string") { + if (typeof s == 'string') { for (var i = 0, l = s.length; i < l; i++) { d[o + i] = s.charCodeAt(i); } } else { + // When both d and s are the same, we want to copy + // backwards, which works for the general case as well. for (var i = s.length - 1; i >= 0; i--) { d[o + i] = s[i]; } } } else if (d instanceof Array) { + // Operate on the base arrays var darr = d.b; var doff = o + d.o; var sarr = s.b; var soff = s.o; + for (var i = 0, l = s.length; i < l; i++) { darr[doff + i] = sarr[soff + i]; } } else { - throw "putinterval-not-writable-" + typeof d; + throw 'putinterval-not-writable-' + (typeof d); } } + + // type operator function $type(v) { + // null can be mis-typed - get it out of the way if (v === null || v === undefined) { - return "nulltype"; + return 'nulltype'; } var t = typeof v; - if (t == "number") { - return v % 1 ? "realtype" : "integertype"; + if (t == 'number') { + return v % 1 ? 'realtype' : 'integertype'; } - if (t == "boolean") { - return "booleantype"; + if (t == 'boolean') { + return 'booleantype'; } - if (t == "string" || v instanceof Uint8Array) { - return "stringtype"; + if (t == 'string' || v instanceof Uint8Array) { + return 'stringtype'; } - if (t == "function") { - return "operatortype"; + if (t == 'function') { + return 'operatortype'; } if (v instanceof Array) { - return "arraytype"; - } - return "dicttype"; + return 'arraytype'; + } + return 'dicttype'; + // filetype + // fonttype + // gstatetype + // marktype (v === Infinity) + // nametype + // savetype } + + // search operator + // string seek search suffix match prefix true %if-found + // string false %if-not-found function $search(str, seek) { if (!(str instanceof Uint8Array)) { str = $s(str); } var ls = str.length; + + // Virtually all uses of search in BWIPP are for single-characters. + // Optimize for that case. if (seek.length == 1) { var lk = 1; var cd = seek instanceof Uint8Array ? seek[0] : seek.charCodeAt(0); - for (var i = 0; i < ls && str[i] != cd; i++) ; + for (var i = 0; i < ls && str[i] != cd; i++); } else { + // Slow path, if (!(seek instanceof Uint8Array)) { seek = $(seek); } var lk = seek.length; var cd = seek[0]; - for (var i = 0; i < ls && str[i] != cd; i++) ; + for (var i = 0; i < ls && str[i] != cd; i++); while (i < ls) { - for (var j = 1; j < lk && str[i + j] === seek[j]; j++) ; + for (var j = 1; j < lk && str[i + j] === seek[j]; j++); if (j === lk) { break; } - for (i++; i < ls && str[i] != cd; i++) ; + for (i++; i < ls && str[i] != cd; i++); } } if (i < ls) { @@ -521,6 +619,9 @@ function BWIPP() { $k[$j++] = false; } } + + // The callback is omitted when forall is being used just to push onto the + // stack. The callback normally returns undefined. A return of true means break. function $forall(o, cb) { if (o instanceof Uint8Array) { for (var i = 0, l = o.length; i < l; i++) { @@ -531,11 +632,12 @@ function BWIPP() { if (cb && cb()) break; } } else if (o instanceof Array) { + // The array may be a view. for (var a = o.b, i = o.o, l = o.o + o.length; i < l; i++) { $k[$j++] = a[i]; if (cb && cb()) break; } - } else if (typeof o === "string") { + } else if (typeof o === 'string') { for (var i = 0, l = o.length; i < l; i++) { $k[$j++] = o.charCodeAt(i); if (cb && cb()) break; @@ -555,26 +657,33 @@ function BWIPP() { } } } + function $cleartomark() { - while ($j > 0 && $k[--$j] !== Infinity) ; + while ($j > 0 && $k[--$j] !== Infinity); } + function $counttomark() { - for (var i = $j - 1; i >= 0 && $k[i] !== Infinity; i--) ; + for (var i = $j - 1; i >= 0 && $k[i] !== Infinity; i--); return $j - i - 1; } + function $aload(a) { for (var i = 0, l = a.length, b = a.b, o = a.o; i < l; i++) { $k[$j++] = b[o + i]; } + // This push has been optimized out. See $.aload() in psc.js. + //$k[$j++] = a; } + function $astore(a) { for (var i = 0, l = a.length, b = a.b, o = a.o + l - 1; i < l; i++) { b[o - i] = $k[--$j]; } $k[$j++] = a; } + function $eq(a, b) { - if (typeof a === "string" && typeof b === "string") { + if (typeof a === 'string' && typeof b === 'string') { return a == b; } if (a instanceof Uint8Array && b instanceof Uint8Array) { @@ -588,7 +697,8 @@ function BWIPP() { } return true; } - if (a instanceof Uint8Array && typeof b === "string" || b instanceof Uint8Array && typeof a === "string") { + if (a instanceof Uint8Array && typeof b === 'string' || + b instanceof Uint8Array && typeof a === 'string') { if (a instanceof Uint8Array) { a = $z(a); } else { @@ -598,9 +708,11 @@ function BWIPP() { } return a == b; } + function $ne(a, b) { return !$eq(a, b); } + function $lt(a, b) { if (a instanceof Uint8Array) { a = $z(a); @@ -610,6 +722,7 @@ function BWIPP() { } return a < b; } + function $le(a, b) { if (a instanceof Uint8Array) { a = $z(a); @@ -619,6 +732,7 @@ function BWIPP() { } return a <= b; } + function $gt(a, b) { if (a instanceof Uint8Array) { a = $z(a); @@ -628,6 +742,7 @@ function BWIPP() { } return a > b; } + function $ge(a, b) { if (a instanceof Uint8Array) { a = $z(a); @@ -637,32530 +752,34310 @@ function BWIPP() { } return a >= b; } - function $an(a, b) { - return typeof a === "boolean" ? a && b : a & b; + + function $an(a, b) { // and + return (typeof a === 'boolean') ? a && b : a & b; } - function $or(a, b) { - return typeof a === "boolean" ? a || b : a | b; + + function $or(a, b) { // or + return (typeof a === 'boolean') ? a || b : a | b; } - function $xo(a, b) { - return typeof a === "boolean" ? !a && b || a && !b : a ^ b; + + function $xo(a, b) { // xor + return (typeof a === 'boolean') ? !a && b || a && !b : a ^ b; } + function $nt(a) { - return typeof a == "boolean" ? !a : ~a; + return typeof a == 'boolean' ? !a : ~a; } - var $f = function(fa) { + // emulate single-precision floating-point (pseudo-polyfill for Math.fround) + var $f = (function(fa) { return function(v) { return Number.isInteger(v) ? v : (fa[0] = v, fa[0]); }; - }(new Float32Array(1)); + })(new Float32Array(1)); + + // DEBUG-BEGIN function $stack() { - console.log("[[["); + console.log('[[['); for (var i = $j - 1; i >= 0; i--) { console.log(tostring($k[i])); } - console.log("]]]"); + console.log(']]]'); + function tostring(v) { + // null can be mis-typed - get it out of the way if (v === null) { - return "null"; + return 'null'; } else if (v === undefined) { - return ""; + return ''; } else if (v instanceof Array) { - var s = "["; + var s = '['; for (var j = v.o, a = v.b, l = v.length + v.o; j < l; j++) { - s += (j == v.o ? "" : ",") + tostring(a[j]); + s += (j == v.o ? '' : ',') + tostring(a[j]); } - return s + "]"; + return s + ']'; } else if (v instanceof Uint8Array) { - return "(" + $z[v] + ")"; - } else if (typeof v === "object") { - var s = "<<"; + return '(' + $z[v] + ')'; + } else if (typeof v === 'object') { + var s = '<<'; for (var id in v) { - s += (s.length == 7 ? "" : ",") + id + ":" + tostring(v[id]); + s += (s.length == 7 ? '' : ',') + id + ':' + tostring(v[id]); } - return s + ">>"; - } else if (typeof v === "string") { + return s + '>>'; + } else if (typeof v === 'string') { return '"' + v + '"'; } else { - return "" + v; + return '' + v; } } } + // DEBUG-END $0.raiseerror = function() { - $put($0.$error, "errorinfo", $k[--$j]); - $put($0.$error, "errorname", $k[--$j]); - $put($0.$error, "command", null); - $put($0.$error, "newerror", true); - throw new Error($z($0.$error.get("errorname")) + ": " + $z($0.$error.get("errorinfo"))); + $put($0.$error, 'errorinfo', $k[--$j]); //#55 + $put($0.$error, 'errorname', $k[--$j]); //#56 + $put($0.$error, 'command', null); //#57 + $put($0.$error, 'newerror', true); //#58 + throw new Error($z($0.$error.get("errorname")) + ": " + $z($0.$error.get("errorinfo"))); //#59 }; $0.parseinput = function() { - var $1 = {}; - $1.fncvals = $k[--$j]; - $1.barcode = $k[--$j]; - var _2 = "parse"; - $1[_2] = $get($1.fncvals, _2); - delete $1.fncvals[_2]; - var _6 = "parsefnc"; - $1[_6] = $get($1.fncvals, _6); - delete $1.fncvals[_6]; - var _A = "parseonly"; - var _C = $get($1.fncvals, _A) !== undefined; - $1[_A] = _C; - delete $1.fncvals[_A]; - var _E = "eci"; - var _G = $get($1.fncvals, _E) !== undefined; - $1[_E] = _G; - delete $1.fncvals[_E]; - $1.msg = $a($1.barcode.length); - $1.j = 0; - $k[$j++] = $1.barcode; - for (;;) { - $search($k[--$j], "^"); - var _M = $k[--$j]; - var _N = $k[--$j]; - $k[$j++] = _M; - $k[$j++] = _N.length; - $k[$j++] = $1.msg; - $k[$j++] = $1.j; - $k[$j++] = Infinity; - var _R = _N; - $forall(_R); - var _S = $a(); - var _T = $k[--$j]; - $puti($k[--$j], _T, _S); - $1.j = $f($k[--$j] + $1.j); - if ($k[--$j]) { - $j--; - for (var _Y = 0, _Z = 1; _Y < _Z; _Y++) { - if ($an($nt($1.parse), $nt($1.parsefnc))) { - $put($1.msg, $1.j, 94); - $1.j = $f($1.j + 1); - break; - } - $put($1.msg, $1.j, 94); - $1.j = $f($1.j + 1); - if ($1.parse) { - var _j = $k[--$j]; - $k[$j++] = _j; - if (_j.length >= 3) { - var _k = $k[--$j]; - var _l = $geti(_k, 0, 3); - $k[$j++] = _k; - $k[$j++] = true; - for (var _m = 0, _n = _l.length; _m < _n; _m++) { - var _o = $get(_l, _m); - if (_o < 48 || _o > 57) { - $j--; - $k[$j++] = false; - } - } - if ($k[--$j]) { - var _q = $k[--$j]; - var _s = ~~$z($geti(_q, 0, 3)); - $k[$j++] = _q; - $k[$j++] = _s; - if (_s > 255) { - $j -= 2; - $k[$j++] = "bwipp.invalidOrdinal"; - $k[$j++] = "Ordinal must be 000 to 255"; - $0.raiseerror(); - } - $1.j = $f($1.j - 1); - $put($1.msg, $1.j, $k[--$j]); - $1.j = $f($1.j + 1); - var _y = $k[--$j]; - $k[$j++] = $geti(_y, 3, _y.length - 3); - } - } - } - if ($or($1.parseonly, $nt($1.parsefnc)) || $get($1.msg, $f($1.j - 1)) != 94) { - break; - } - $1.j = $f($1.j - 1); - var _16 = $k[--$j]; - $k[$j++] = _16; - if (_16.length < 3) { - $j--; - $k[$j++] = "bwipp.truncatedFNC"; - $k[$j++] = "Function character truncated"; - $0.raiseerror(); - } - var _17 = $k[--$j]; - $k[$j++] = _17; - if ($get(_17, 0) == 94) { - $put($1.msg, $1.j, 94); - $1.j = $f($1.j + 1); - var _1C = $k[--$j]; - $k[$j++] = $geti(_1C, 1, _1C.length - 1); - break; - } - var _1E = $k[--$j]; - $k[$j++] = _1E; - if ($eq($geti(_1E, 0, 3), "ECI") && $1.eci) { - var _1H = $k[--$j]; - $k[$j++] = _1H; - if (_1H.length < 9) { - $j--; - $k[$j++] = "bwipp.truncatedECI"; - $k[$j++] = "ECI truncated"; - $0.raiseerror(); - } - var _1I = $k[--$j]; - var _1J = $geti(_1I, 3, 6); - $k[$j++] = _1I; - $k[$j++] = _1J; - for (var _1K = 0, _1L = _1J.length; _1K < _1L; _1K++) { - var _1M = $get(_1J, _1K); - if (_1M < 48 || _1M > 57) { - $j -= 2; - $k[$j++] = "bwipp.invalidECI"; - $k[$j++] = "ECI must be 000000 to 999999"; - $0.raiseerror(); - } - } - var _1N = $k[--$j]; - $k[$j++] = 0; - $forall(_1N, function() { - var _1O = $k[--$j]; - var _1P = $k[--$j]; - $k[$j++] = $f(_1P - $f(_1O - 48)) * 10; - }); - $put($1.msg, $1.j, ~~($k[--$j] / 10) - 1e6); - $1.j = $f($1.j + 1); - var _1U = $k[--$j]; - $k[$j++] = $geti(_1U, 9, _1U.length - 9); - break; - } - var _1W = $k[--$j]; - $k[$j++] = _1W; - if (_1W.length < 4) { - $j--; - $k[$j++] = "bwipp.truncatedFNC"; - $k[$j++] = "Function character truncated"; - $0.raiseerror(); - } - var _1X = $k[--$j]; - var _1Y = $geti(_1X, 0, 4); - var _1a = $get($1.fncvals, _1Y) !== undefined; - $k[$j++] = _1X; - $k[$j++] = _1Y; - if (!_1a) { - var _1b = $k[--$j]; - var _1c = $s(_1b.length + 28); - $puti(_1c, 28, _1b); - $puti(_1c, 0, "Unknown function character: "); - var _1d = $k[--$j]; - $k[$j++] = _1c; - $k[$j++] = _1d; - $j--; - var _1e = $k[--$j]; - $k[$j++] = "bwipp.unknownFNC"; - $k[$j++] = _1e; - $0.raiseerror(); - } - $put($1.msg, $1.j, $get($1.fncvals, $k[--$j])); - $1.j = $f($1.j + 1); - var _1l = $k[--$j]; - $k[$j++] = $geti(_1l, 4, _1l.length - 4); - break; - } - } else { - break; - } - } - if ($nt($1.parseonly)) { - $k[$j++] = $geti($1.msg, 0, $1.j); - } else { - $k[$j++] = $s($1.j); - for (var _1v = 0, _1u = $f($1.j - 1); _1v <= _1u; _1v += 1) { - var _1w = $k[--$j]; - $put(_1w, _1v, $get($1.msg, _1v)); - $k[$j++] = _1w; - } - } + var $1 = {}; //#80 + $1.fncvals = $k[--$j]; //#82 + $1.barcode = $k[--$j]; //#83 + var _2 = 'parse'; //#85 + $1[_2] = $get($1.fncvals, _2); //#85 + delete $1.fncvals[_2]; //#85 + var _6 = 'parsefnc'; //#86 + $1[_6] = $get($1.fncvals, _6); //#86 + delete $1.fncvals[_6]; //#86 + var _A = 'parseonly'; //#87 + var _C = $get($1.fncvals, _A) !== undefined; //#87 + $1[_A] = _C; //#87 + delete $1.fncvals[_A]; //#87 + var _E = 'eci'; //#88 + var _G = $get($1.fncvals, _E) !== undefined; //#88 + $1[_E] = _G; //#88 + delete $1.fncvals[_E]; //#88 + $1.msg = $a($1.barcode.length); //#90 + $1.j = 0; //#91 + $k[$j++] = $1.barcode; //#186 + for (;;) { //#186 + $search($k[--$j], "^"); //#93 + var _M = $k[--$j]; //#93 + var _N = $k[--$j]; //#93 + $k[$j++] = _M; //#96 + $k[$j++] = _N.length; //#96 + $k[$j++] = $1.msg; //#96 + $k[$j++] = $1.j; //#96 + $k[$j++] = _N; //#96 + $k[$j++] = Infinity; //#96 + var _Q = $k[--$j]; //#96 + var _R = $k[--$j]; //#96 + $k[$j++] = _Q; //#96 + $forall(_R); //#96 + var _S = $a(); //#96 + var _T = $k[--$j]; //#96 + $puti($k[--$j], _T, _S); //#96 + $1.j = $f($k[--$j] + $1.j); //#97 + if ($k[--$j]) { //#184 + $j--; //#99 + for (var _Y = 0, _Z = 1; _Y < _Z; _Y++) { //#182 + if ($an($nt($1.parse), $nt($1.parsefnc))) { //#106 + $put($1.msg, $1.j, 94); //#103 + $1.j = $f($1.j + 1); //#104 + break; //#105 + } //#105 + $put($1.msg, $1.j, 94); //#109 + $1.j = $f($1.j + 1); //#110 + if ($1.parse) { //#129 + var _j = $k[--$j]; //#114 + $k[$j++] = _j; //#128 + if (_j.length >= 3) { //#128 + var _k = $k[--$j]; //#115 + var _l = $geti(_k, 0, 3); //#115 + $k[$j++] = _k; //#117 + $k[$j++] = true; //#117 + for (var _m = 0, _n = _l.length; _m < _n; _m++) { //#117 + var _o = $get(_l, _m); //#117 + if ((_o < 48) || (_o > 57)) { //#116 + $j--; //#116 + $k[$j++] = false; //#116 + } //#116 + } //#116 + if ($k[--$j]) { //#127 + var _q = $k[--$j]; //#119 + var _s = ~~$z($geti(_q, 0, 3)); //#119 + $k[$j++] = _q; //#122 + $k[$j++] = _s; //#122 + if (_s > 255) { //#122 + $j -= 2; //#120 + $k[$j++] = 'bwipp.invalidOrdinal'; //#121 + $k[$j++] = "Ordinal must be 000 to 255"; //#121 + $0.raiseerror(); //#121 + } //#121 + $1.j = $f($1.j - 1); //#123 + $put($1.msg, $1.j, $k[--$j]); //#124 + $1.j = $f($1.j + 1); //#125 + var _y = $k[--$j]; //#126 + $k[$j++] = $geti(_y, 3, _y.length - 3); //#126 + } //#126 + } //#126 + } //#126 + if (($or($1.parseonly, $nt($1.parsefnc))) || ($get($1.msg, $f($1.j - 1)) != 94)) { //#134 + break; //#134 + } //#134 + $1.j = $f($1.j - 1); //#137 + var _16 = $k[--$j]; //#138 + $k[$j++] = _16; //#141 + if (_16.length < 3) { //#141 + $j--; //#139 + $k[$j++] = 'bwipp.truncatedFNC'; //#140 + $k[$j++] = "Function character truncated"; //#140 + $0.raiseerror(); //#140 + } //#140 + var _17 = $k[--$j]; //#142 + $k[$j++] = _17; //#147 + if ($get(_17, 0) == 94) { //#147 + $put($1.msg, $1.j, 94); //#143 + $1.j = $f($1.j + 1); //#144 + var _1C = $k[--$j]; //#145 + $k[$j++] = $geti(_1C, 1, _1C.length - 1); //#146 + break; //#146 + } //#146 + var _1E = $k[--$j]; //#148 + $k[$j++] = _1E; //#165 + if ($eq($geti(_1E, 0, 3), "ECI") && $1.eci) { //#165 + var _1H = $k[--$j]; //#149 + $k[$j++] = _1H; //#152 + if (_1H.length < 9) { //#152 + $j--; //#150 + $k[$j++] = 'bwipp.truncatedECI'; //#151 + $k[$j++] = "ECI truncated"; //#151 + $0.raiseerror(); //#151 + } //#151 + var _1I = $k[--$j]; //#153 + var _1J = $geti(_1I, 3, 6); //#153 + $k[$j++] = _1I; //#159 + $k[$j++] = _1J; //#159 + for (var _1K = 0, _1L = _1J.length; _1K < _1L; _1K++) { //#159 + var _1M = $get(_1J, _1K); //#159 + if ((_1M < 48) || (_1M > 57)) { //#158 + $j -= 2; //#156 + $k[$j++] = 'bwipp.invalidECI'; //#157 + $k[$j++] = "ECI must be 000000 to 999999"; //#157 + $0.raiseerror(); //#157 + } //#157 + } //#157 + var _1N = $k[--$j]; //#160 + $k[$j++] = 0; //#160 + $forall(_1N, function() { //#160 + var _1O = $k[--$j]; //#160 + var _1P = $k[--$j]; //#160 + $k[$j++] = ($f(_1P - $f(_1O - 48))) * 10; //#160 + }); //#160 + $put($1.msg, $1.j, (~~($k[--$j] / 10)) - 1000000); //#161 + $1.j = $f($1.j + 1); //#162 + var _1U = $k[--$j]; //#163 + $k[$j++] = $geti(_1U, 9, _1U.length - 9); //#164 + break; //#164 + } //#164 + var _1W = $k[--$j]; //#166 + $k[$j++] = _1W; //#169 + if (_1W.length < 4) { //#169 + $j--; //#167 + $k[$j++] = 'bwipp.truncatedFNC'; //#168 + $k[$j++] = "Function character truncated"; //#168 + $0.raiseerror(); //#168 + } //#168 + var _1X = $k[--$j]; //#170 + var _1Y = $geti(_1X, 0, 4); //#170 + var _1a = $get($1.fncvals, _1Y) !== undefined; //#170 + $k[$j++] = _1X; //#175 + $k[$j++] = _1Y; //#175 + if (!_1a) { //#175 + var _1b = $k[--$j]; //#171 + var _1c = $s(_1b.length + 28); //#171 + $puti(_1c, 28, _1b); //#171 + $puti(_1c, 0, "Unknown function character: "); //#172 + var _1d = $k[--$j]; //#173 + $k[$j++] = _1c; //#173 + $k[$j++] = _1d; //#173 + $j--; //#173 + var _1e = $k[--$j]; //#174 + $k[$j++] = 'bwipp.unknownFNC'; //#174 + $k[$j++] = _1e; //#174 + $0.raiseerror(); //#174 + } //#174 + $put($1.msg, $1.j, $get($1.fncvals, $k[--$j])); //#177 + $1.j = $f($1.j + 1); //#178 + var _1l = $k[--$j]; //#179 + $k[$j++] = $geti(_1l, 4, _1l.length - 4); //#180 + break; //#180 + } //#180 + } else { //#184 + break; //#184 + } //#184 + } //#184 + if ($nt($1.parseonly)) { //#192 + $k[$j++] = $geti($1.msg, 0, $1.j); //#189 + } else { //#192 + $k[$j++] = $s($1.j); //#192 + for (var _1v = 0, _1u = $f($1.j - 1); _1v <= _1u; _1v += 1) { //#192 + var _1w = $k[--$j]; //#192 + $put(_1w, _1v, $get($1.msg, _1v)); //#192 + $k[$j++] = _1w; //#192 + } //#192 + } //#192 }; $0.gs1lint = function() { - var $1 = {}; - $1.vals = $k[--$j]; - $1.ais = $k[--$j]; + var $1 = {}; //#217 + $1.vals = $k[--$j]; //#219 + $1.ais = $k[--$j]; //#220 $1.lintnumeric = function() { - var _2 = $k[--$j]; - $k[$j++] = true; - $forall(_2, function() { - var _3 = $k[--$j]; - if (_3 < 48 || _3 > 57) { - $j--; - $k[$j++] = false; - return true; - } - }); - if ($nt($k[--$j])) { - $j--; - $k[$j++] = "bwipp.GS1notNumeric"; - $k[$j++] = "Not numeric"; - $k[$j++] = false; - return true; - } - }; + var _2 = $k[--$j]; //#223 + $k[$j++] = true; //#225 + $forall(_2, function() { //#225 + var _3 = $k[--$j]; //#224 + if ((_3 < 48) || (_3 > 57)) { //#224 + $j--; //#224 + $k[$j++] = false; //#224 + return true; //#224 + } //#224 + }); //#224 + if ($nt($k[--$j])) { //#226 + $j--; //#226 + $k[$j++] = 'bwipp.GS1notNumeric'; //#226 + $k[$j++] = "Not numeric"; //#226 + $k[$j++] = false; //#226 + return true; //#226 + } //#226 + }; //#227 $1.lintcset82 = function() { - var _5 = $k[--$j]; - $k[$j++] = true; - $forall(_5, function() { - var _6 = $s(1); - $put(_6, 0, $k[--$j]); - $search("!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", _6); - if ($nt($k[--$j])) { - $j -= 2; - $k[$j++] = false; - return true; - } - $j -= 3; - }); - if ($nt($k[--$j])) { - $j--; - $k[$j++] = "bwipp.GS1badCSET82character"; - $k[$j++] = "Invalid CSET 82 character"; - $k[$j++] = false; - return true; - } - }; + var _5 = $k[--$j]; //#230 + $k[$j++] = true; //#235 + $forall(_5, function() { //#235 + var _6 = $s(1); //#231 + $put(_6, 0, $k[--$j]); //#231 + $search("!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", _6); //#233 + if ($nt($k[--$j])) { //#233 + $j -= 2; //#233 + $k[$j++] = false; //#233 + return true; //#233 + } //#233 + $j -= 3; //#234 + }); //#234 + if ($nt($k[--$j])) { //#236 + $j--; //#236 + $k[$j++] = 'bwipp.GS1badCSET82character'; //#236 + $k[$j++] = "Invalid CSET 82 character"; //#236 + $k[$j++] = false; //#236 + return true; //#236 + } //#236 + }; //#237 $1.lintcset39 = function() { - var _A = $k[--$j]; - $k[$j++] = true; - $forall(_A, function() { - var _B = $s(1); - $put(_B, 0, $k[--$j]); - $search("#-/0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", _B); - if ($nt($k[--$j])) { - $j -= 2; - $k[$j++] = false; - return true; - } - $j -= 3; - }); - if ($nt($k[--$j])) { - $j--; - $k[$j++] = "bwipp.GS1badCSET39character"; - $k[$j++] = "Invalid CSET 39 character"; - $k[$j++] = false; - return true; - } - }; + var _A = $k[--$j]; //#240 + $k[$j++] = true; //#245 + $forall(_A, function() { //#245 + var _B = $s(1); //#241 + $put(_B, 0, $k[--$j]); //#241 + $search("#-/0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", _B); //#243 + if ($nt($k[--$j])) { //#243 + $j -= 2; //#243 + $k[$j++] = false; //#243 + return true; //#243 + } //#243 + $j -= 3; //#244 + }); //#244 + if ($nt($k[--$j])) { //#246 + $j--; //#246 + $k[$j++] = 'bwipp.GS1badCSET39character'; //#246 + $k[$j++] = "Invalid CSET 39 character"; //#246 + $k[$j++] = false; //#246 + return true; //#246 + } //#246 + }; //#247 $1.lintkey = function() { - var _F = $k[--$j]; - $k[$j++] = _F; - if (_F.length < 2) { - $j -= 2; - $k[$j++] = "bwipp.GS1keyTooShort"; - $k[$j++] = "Key is too short"; - $k[$j++] = false; - return true; - } - var _G = $k[--$j]; - var _H = $get(_G, 0); - var _I = $get(_G, 1); - if (_H < 48 || _H > 57 || (_I < 48 || _I > 57)) { - $j--; - $k[$j++] = "bwipp.GS1badGCP"; - $k[$j++] = "Non-numeric company prefix"; - $k[$j++] = false; - return true; - } - }; + var _F = $k[--$j]; //#250 + $k[$j++] = _F; //#250 + if (_F.length < 2) { //#250 + $j -= 2; //#250 + $k[$j++] = 'bwipp.GS1keyTooShort'; //#250 + $k[$j++] = "Key is too short"; //#250 + $k[$j++] = false; //#250 + return true; //#250 + } //#250 + var _G = $k[--$j]; //#251 + var _H = $get(_G, 0); //#251 + var _I = $get(_G, 1); //#252 + if (((_H < 48) || (_H > 57)) || ((_I < 48) || (_I > 57))) { //#254 + $j--; //#253 + $k[$j++] = 'bwipp.GS1badGCP'; //#253 + $k[$j++] = "Non-numeric company prefix"; //#253 + $k[$j++] = false; //#253 + return true; //#253 + } //#253 + }; //#255 $1.lintimporteridx = function() { - $search("-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", $k[--$j]); - if ($nt($k[--$j])) { - $j -= 2; - $k[$j++] = "bwipp.GS1badImporterIndex"; - $k[$j++] = "Invalid importer index"; - $k[$j++] = false; - return true; - } - $j -= 3; - }; + $search("-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", $k[--$j]); //#259 + if ($nt($k[--$j])) { //#259 + $j -= 2; //#259 + $k[$j++] = 'bwipp.GS1badImporterIndex'; //#259 + $k[$j++] = "Invalid importer index"; //#259 + $k[$j++] = false; //#259 + return true; //#259 + } //#259 + $j -= 3; //#260 + }; //#261 $1.lintcsum = function() { - $k[$j++] = Infinity; - var _L = $k[--$j]; - var _M = $k[--$j]; - var _N = _M.length % 2 == 0 ? 3 : 1; - $k[$j++] = _L; - $k[$j++] = _N; - $forall(_M, function() { - var _O = $k[--$j]; - var _P = $k[--$j]; - $k[$j++] = $f(_O - 48) * _P; - $k[$j++] = $f(4 - _P); - }); - $j--; - var _Q = $counttomark() + 1; - $k[$j++] = 0; - for (var _R = 0, _S = _Q - 1; _R < _S; _R++) { - var _T = $k[--$j]; - var _U = $k[--$j]; - $k[$j++] = $f(_U + _T); - } - var _V = $k[--$j]; - var _W = $k[--$j]; - $k[$j++] = _V; - $k[$j++] = _W; - $j--; - if ($k[--$j] % 10 != 0) { - $j--; - $k[$j++] = "bwipp.GS1badChecksum"; - $k[$j++] = "Bad checksum"; - $k[$j++] = false; - return true; - } - }; - $k[$j++] = Infinity; - $k[$j++] = 0; - for (var _Y = 0, _Z = "!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".length; _Y < _Z; _Y++) { - var _b = $k[--$j]; - $k[$j++] = $get("!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", _Y); - $k[$j++] = _b; - $k[$j++] = $f(_b + 1); - } - $j--; - $1.cset82 = $d(); - $k[$j++] = Infinity; - $k[$j++] = 0; - for (var _d = 0, _e = "23456789ABCDEFGHJKLMNPQRSTUVWXYZ".length; _d < _e; _d++) { - var _g = $k[--$j]; - $k[$j++] = $get("23456789ABCDEFGHJKLMNPQRSTUVWXYZ", _d); - $k[$j++] = _g; - $k[$j++] = $f(_g + 1); - } - $j--; - $1.cset32 = $d(); + $k[$j++] = Infinity; //#264 + var _L = $k[--$j]; //#264 + var _M = $k[--$j]; //#264 + var _N = ((_M.length % 2) == 0) ? 3 : 1; //#265 + $k[$j++] = _L; //#266 + $k[$j++] = _N; //#266 + $forall(_M, function() { //#266 + var _O = $k[--$j]; //#266 + var _P = $k[--$j]; //#266 + $k[$j++] = $f(_O - 48) * _P; //#266 + $k[$j++] = $f(4 - _P); //#266 + }); //#266 + $j--; //#266 + var _Q = $counttomark() + 1; //#267 + $k[$j++] = 0; //#267 + for (var _R = 0, _S = _Q - 1; _R < _S; _R++) { //#267 + var _T = $k[--$j]; //#267 + var _U = $k[--$j]; //#267 + $k[$j++] = $f(_U + _T); //#267 + } //#267 + var _V = $k[--$j]; //#267 + var _W = $k[--$j]; //#267 + $k[$j++] = _V; //#267 + $k[$j++] = _W; //#267 + $j--; //#267 + if (($k[--$j] % 10) != 0) { //#268 + $j--; //#268 + $k[$j++] = 'bwipp.GS1badChecksum'; //#268 + $k[$j++] = "Bad checksum"; //#268 + $k[$j++] = false; //#268 + return true; //#268 + } //#268 + }; //#269 + $k[$j++] = Infinity; //#273 + $k[$j++] = 0; //#273 + for (var _Y = 0, _Z = "!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".length; _Y < _Z; _Y++) { //#273 + var _b = $k[--$j]; //#273 + $k[$j++] = $get("!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", _Y); //#273 + $k[$j++] = _b; //#273 + $k[$j++] = $f(_b + 1); //#273 + } //#273 + $j--; //#273 + $1.cset82 = $d(); //#274 + $k[$j++] = Infinity; //#278 + $k[$j++] = 0; //#278 + for (var _d = 0, _e = "23456789ABCDEFGHJKLMNPQRSTUVWXYZ".length; _d < _e; _d++) { //#278 + var _g = $k[--$j]; //#278 + $k[$j++] = $get("23456789ABCDEFGHJKLMNPQRSTUVWXYZ", _d); //#278 + $k[$j++] = _g; //#278 + $k[$j++] = $f(_g + 1); //#278 + } //#278 + $j--; //#278 + $1.cset32 = $d(); //#279 $1.lintcsumalpha = function() { - var _i = $k[--$j]; - $k[$j++] = _i; - if (_i.length < 2) { - $j -= 2; - $k[$j++] = "bwipp.GS1alphaTooShort"; - $k[$j++] = "Alphanumeric string is too short to check"; - $k[$j++] = false; - return true; - } - var _j = $k[--$j]; - $k[$j++] = _j; - $k[$j++] = _j.length - 2; - $k[$j++] = Infinity; - var _m = $geti(_j, 0, _j.length - 2); - $forall(_m, function() { - var _n = $k[--$j]; - var _p = $get($1.cset82, _n) !== undefined; - $k[$j++] = _n; - if (_p) { - var _s = $get($1.cset82, $k[--$j]); - $k[$j++] = _s; - } else { - $k[$j++] = -1; - return true; - } - }); - var _t = $k[--$j]; - $k[$j++] = _t; - if (_t == -1) { - $cleartomark(); - $j -= 3; - $k[$j++] = "bwipp.GS1UnknownCSET82Character"; - $k[$j++] = "Unknown CSET 82 character"; - $k[$j++] = false; - return true; - } - $astore($a($counttomark())); - var _w = $k[--$j]; - var _x = $k[--$j]; - $k[$j++] = _w; - $k[$j++] = _x; - $j--; - var _y = $k[--$j]; - var _z = $k[--$j]; - var _11 = $geti($k[--$j], _z, 2); - $k[$j++] = _y; - $k[$j++] = Infinity; - var _13 = _11; - $forall(_13, function() { - var _14 = $k[--$j]; - var _16 = $get($1.cset32, _14) !== undefined; - $k[$j++] = _14; - if (_16) { - var _19 = $get($1.cset32, $k[--$j]); - $k[$j++] = _19; - } else { - $k[$j++] = -1; - return true; - } - }); - var _1A = $k[--$j]; - $k[$j++] = _1A; - if (_1A == -1) { - $cleartomark(); - $j -= 2; - $k[$j++] = "bwipp.GS1UnknownCSET32Character"; - $k[$j++] = "Unknown CSET 32 character"; - $k[$j++] = false; - return true; - } - $astore($a($counttomark())); - var _1D = $k[--$j]; - var _1E = $k[--$j]; - $k[$j++] = _1D; - $k[$j++] = _1E; - $j--; - var _1F = $k[--$j]; - var _1I = $k[--$j]; - var _1J = $a([ 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83 ]); - var _1K = _1I.length; - $k[$j++] = $f(($get(_1F, 0) << 5) + $get(_1F, 1)); - $k[$j++] = _1I; - $k[$j++] = _1J; - $k[$j++] = _1K; - if (_1K > _1J.length) { - $j -= 5; - $k[$j++] = "bwipp.GS1alphaTooLong"; - $k[$j++] = "Alphanumeric string is too long to check"; - $k[$j++] = false; - return true; - } - var _1L = $k[--$j]; - var _1N = $geti($k[--$j], 0, _1L); - for (var _1O = 0, _1P = _1N.length; _1O < _1P; _1O++) { - var _1R = $k[--$j]; - $k[$j++] = $get(_1N, _1O); - $k[$j++] = _1R; - } - var _1S = $k[--$j]; - $k[$j++] = 0; - $forall(_1S, function() { - var _1T = $k[--$j]; - var _1U = $k[--$j]; - var _1V = $k[--$j]; - $k[$j++] = $f(_1U + _1V * _1T); - }); - var _1W = $k[--$j]; - if ($k[--$j] != _1W % 1021) { - $j--; - $k[$j++] = "bwipp.GS1badAlphaCheckCharacters"; - $k[$j++] = "Bad alphanumeric check characters"; - $k[$j++] = false; - return true; - } - }; - $k[$j++] = Infinity; - var _1Y = $a([ "004", "008", "010", "012", "016", "020", "024", "028", "031", "032", "036", "040", "044", "048", "050", "051", "052", "056", "060", "064", "068", "070", "072", "074", "076", "084", "086", "090", "092", "096", "100", "104", "108", "112", "116", "120", "124", "132", "136", "140", "144", "148", "152", "156", "158", "162", "166", "170", "174", "175", "178", "180", "184", "188", "191", "192", "196", "203", "204", "208", "212", "214", "218", "222", "226", "231", "232", "233", "234", "238", "239", "242", "246", "248", "250", "254", "258", "260", "262", "266", "268", "270", "275", "276", "288", "292", "296", "300", "304", "308", "312", "316", "320", "324", "328", "332", "334", "336", "340", "344", "348", "352", "356", "360", "364", "368", "372", "376", "380", "384", "388", "392", "398", "400", "404", "408", "410", "414", "417", "418", "422", "426", "428", "430", "434", "438", "440", "442", "446", "450", "454", "458", "462", "466", "470", "474", "478", "480", "484", "492", "496", "498", "499", "500", "504", "508", "512", "516", "520", "524", "528", "531", "533", "534", "535", "540", "548", "554", "558", "562", "566", "570", "574", "578", "580", "581", "583", "584", "585", "586", "591", "598", "600", "604", "608", "612", "616", "620", "624", "626", "630", "634", "638", "642", "643", "646", "652", "654", "659", "660", "662", "663", "666", "670", "674", "678", "682", "686", "688", "690", "694", "702", "703", "704", "705", "706", "710", "716", "724", "728", "729", "732", "740", "744", "748", "752", "756", "760", "762", "764", "768", "772", "776", "780", "784", "788", "792", "795", "796", "798", "800", "804", "807", "818", "826", "831", "832", "833", "834", "840", "850", "854", "858", "860", "862", "876", "882", "887", "894" ]); - for (var _1Z = 0, _1a = _1Y.length; _1Z < _1a; _1Z++) { - var _1b = $get(_1Y, _1Z); - $k[$j++] = _1b; - $k[$j++] = _1b; - } - $1.iso3166 = $d(); + var _i = $k[--$j]; //#282 + $k[$j++] = _i; //#282 + if (_i.length < 2) { //#282 + $j -= 2; //#282 + $k[$j++] = 'bwipp.GS1alphaTooShort'; //#282 + $k[$j++] = "Alphanumeric string is too short to check"; //#282 + $k[$j++] = false; //#282 + return true; //#282 + } //#282 + var _j = $k[--$j]; //#283 + $k[$j++] = _j; //#285 + $k[$j++] = _j.length - 2; //#285 + $k[$j++] = $geti(_j, 0, _j.length - 2); //#285 + $k[$j++] = Infinity; //#285 + var _l = $k[--$j]; //#285 + var _m = $k[--$j]; //#285 + $k[$j++] = _l; //#287 + $forall(_m, function() { //#287 + var _n = $k[--$j]; //#286 + var _p = $get($1.cset82, _n) !== undefined; //#286 + $k[$j++] = _n; //#286 + if (_p) { //#286 + var _s = $get($1.cset82, $k[--$j]); //#286 + $k[$j++] = _s; //#286 + } else { //#286 + $k[$j++] = -1; //#286 + return true; //#286 + } //#286 + }); //#286 + var _t = $k[--$j]; //#288 + $k[$j++] = _t; //#288 + if (_t == -1) { //#288 + $cleartomark(); //#288 + $j -= 3; //#288 + $k[$j++] = 'bwipp.GS1UnknownCSET82Character'; //#288 + $k[$j++] = "Unknown CSET 82 character"; //#288 + $k[$j++] = false; //#288 + return true; //#288 + } //#288 + $astore($a($counttomark())); //#289 + var _w = $k[--$j]; //#289 + var _x = $k[--$j]; //#289 + $k[$j++] = _w; //#289 + $k[$j++] = _x; //#289 + $j--; //#289 + var _y = $k[--$j]; //#290 + var _z = $k[--$j]; //#290 + var _11 = $geti($k[--$j], _z, 2); //#291 + $k[$j++] = _y; //#291 + $k[$j++] = _11; //#291 + $k[$j++] = Infinity; //#291 + var _12 = $k[--$j]; //#291 + var _13 = $k[--$j]; //#291 + $k[$j++] = _12; //#293 + $forall(_13, function() { //#293 + var _14 = $k[--$j]; //#292 + var _16 = $get($1.cset32, _14) !== undefined; //#292 + $k[$j++] = _14; //#292 + if (_16) { //#292 + var _19 = $get($1.cset32, $k[--$j]); //#292 + $k[$j++] = _19; //#292 + } else { //#292 + $k[$j++] = -1; //#292 + return true; //#292 + } //#292 + }); //#292 + var _1A = $k[--$j]; //#294 + $k[$j++] = _1A; //#294 + if (_1A == -1) { //#294 + $cleartomark(); //#294 + $j -= 2; //#294 + $k[$j++] = 'bwipp.GS1UnknownCSET32Character'; //#294 + $k[$j++] = "Unknown CSET 32 character"; //#294 + $k[$j++] = false; //#294 + return true; //#294 + } //#294 + $astore($a($counttomark())); //#295 + var _1D = $k[--$j]; //#295 + var _1E = $k[--$j]; //#295 + $k[$j++] = _1D; //#295 + $k[$j++] = _1E; //#295 + $j--; //#295 + var _1F = $k[--$j]; //#296 + var _1I = $k[--$j]; //#296 + var _1J = $a([2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83]); //#297 + var _1K = _1I.length; //#299 + $k[$j++] = $f(($get(_1F, 0) << 5) + $get(_1F, 1)); //#299 + $k[$j++] = _1I; //#299 + $k[$j++] = _1J; //#299 + $k[$j++] = _1K; //#299 + if (_1K > _1J.length) { //#299 + $j -= 5; //#299 + $k[$j++] = 'bwipp.GS1alphaTooLong'; //#299 + $k[$j++] = "Alphanumeric string is too long to check"; //#299 + $k[$j++] = false; //#299 + return true; //#299 + } //#299 + var _1L = $k[--$j]; //#300 + var _1N = $geti($k[--$j], 0, _1L); //#300 + for (var _1O = 0, _1P = _1N.length; _1O < _1P; _1O++) { //#300 + var _1R = $k[--$j]; //#300 + $k[$j++] = $get(_1N, _1O); //#300 + $k[$j++] = _1R; //#300 + } //#300 + var _1S = $k[--$j]; //#301 + $k[$j++] = 0; //#301 + $forall(_1S, function() { //#301 + var _1T = $k[--$j]; //#301 + var _1U = $k[--$j]; //#301 + var _1V = $k[--$j]; //#301 + $k[$j++] = $f(_1U + (_1V * _1T)); //#301 + }); //#301 + var _1W = $k[--$j]; //#301 + if ($k[--$j] != (_1W % 1021)) { //#302 + $j--; //#302 + $k[$j++] = 'bwipp.GS1badAlphaCheckCharacters'; //#302 + $k[$j++] = "Bad alphanumeric check characters"; //#302 + $k[$j++] = false; //#302 + return true; //#302 + } //#302 + }; //#303 + $k[$j++] = Infinity; //#324 + var _1Y = $a(['004', '008', '010', '012', '016', '020', '024', '028', '031', '032', '036', '040', '044', '048', '050', '051', '052', '056', '060', '064', '068', '070', '072', '074', '076', '084', '086', '090', '092', '096', '100', '104', '108', '112', '116', '120', '124', '132', '136', '140', '144', '148', '152', '156', '158', '162', '166', '170', '174', '175', '178', '180', '184', '188', '191', '192', '196', '203', '204', '208', '212', '214', '218', '222', '226', '231', '232', '233', '234', '238', '239', '242', '246', '248', '250', '254', '258', '260', '262', '266', '268', '270', '275', '276', '288', '292', '296', '300', '304', '308', '312', '316', '320', '324', '328', '332', '334', '336', '340', '344', '348', '352', '356', '360', '364', '368', '372', '376', '380', '384', '388', '392', '398', '400', '404', '408', '410', '414', '417', '418', '422', '426', '428', '430', '434', '438', '440', '442', '446', '450', '454', '458', '462', '466', '470', '474', '478', '480', '484', '492', '496', '498', '499', '500', '504', '508', '512', '516', '520', '524', '528', '531', '533', '534', '535', '540', '548', '554', '558', '562', '566', '570', '574', '578', '580', '581', '583', '584', '585', '586', '591', '598', '600', '604', '608', '612', '616', '620', '624', '626', '630', '634', '638', '642', '643', '646', '652', '654', '659', '660', '662', '663', '666', '670', '674', '678', '682', '686', '688', '690', '694', '702', '703', '704', '705', '706', '710', '716', '724', '728', '729', '732', '740', '744', '748', '752', '756', '760', '762', '764', '768', '772', '776', '780', '784', '788', '792', '795', '796', '798', '800', '804', '807', '818', '826', '831', '832', '833', '834', '840', '850', '854', '858', '860', '862', '876', '882', '887', '894']); //#323 + for (var _1Z = 0, _1a = _1Y.length; _1Z < _1a; _1Z++) { //#324 + var _1b = $get(_1Y, _1Z); //#324 + $k[$j++] = _1b; //#324 + $k[$j++] = _1b; //#324 + } //#324 + $1.iso3166 = $d(); //#324 $1.lintiso3166 = function() { - var _1f = $get($1.iso3166, $k[--$j]) !== undefined; - if (!_1f) { - $j--; - $k[$j++] = "bwipp.GS1UnknownCountry"; - $k[$j++] = "Unknown country code"; - $k[$j++] = false; - return true; - } - }; + var _1f = $get($1.iso3166, $k[--$j]) !== undefined; //#327 + if (!_1f) { //#327 + $j--; //#327 + $k[$j++] = 'bwipp.GS1UnknownCountry'; //#327 + $k[$j++] = "Unknown country code"; //#327 + $k[$j++] = false; //#327 + return true; //#327 + } //#327 + }; //#328 $1.lintiso3166999 = function() { - var _1g = $k[--$j]; - $k[$j++] = _1g; - if ($ne(_1g, "999")) { - var _1j = $get($1.iso3166, $k[--$j]) !== undefined; - if (!_1j) { - $j--; - $k[$j++] = "bwipp.GS1UnknownCountryOr999"; - $k[$j++] = "Unknown country code or not 999"; - $k[$j++] = false; - return true; - } - } else { - $j--; - } - }; + var _1g = $k[--$j]; //#331 + $k[$j++] = _1g; //#335 + if ($ne(_1g, '999')) { //#334 + var _1j = $get($1.iso3166, $k[--$j]) !== undefined; //#332 + if (!_1j) { //#332 + $j--; //#332 + $k[$j++] = 'bwipp.GS1UnknownCountryOr999'; //#332 + $k[$j++] = "Unknown country code or not 999"; //#332 + $k[$j++] = false; //#332 + return true; //#332 + } //#332 + } else { //#334 + $j--; //#334 + } //#334 + }; //#336 $1.lintiso3166list = function() { - var _1k = $k[--$j]; - $k[$j++] = _1k; - if (_1k.length % 3 != 0) { - $j -= 2; - $k[$j++] = "bwipp.GS1BadCountryListLength"; - $k[$j++] = "Not a group of three-digit country codes"; - $k[$j++] = false; - return true; - } - var _1l = $k[--$j]; - $k[$j++] = _1l; - $k[$j++] = true; - for (var _1n = 0, _1m = _1l.length - 1; _1n <= _1m; _1n += 3) { - var _1o = $k[--$j]; - var _1p = $k[--$j]; - var _1s = $get($1.iso3166, $geti(_1p, _1n, 3)) !== undefined; - $k[$j++] = _1p; - $k[$j++] = _1o; - if (!_1s) { - $j -= 2; - $k[$j++] = false; - break; - } - } - if ($nt($k[--$j])) { - $j--; - $k[$j++] = "bwipp.GS1UnknownCountry"; - $k[$j++] = "Unknown country code"; - $k[$j++] = false; - return true; - } - $j--; - }; - $k[$j++] = Infinity; - var _1u = $a([ "AD", "AE", "AF", "AG", "AI", "AL", "AM", "AO", "AQ", "AR", "AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GS", "GT", "GU", "GW", "GY", "HK", "HM", "HN", "HR", "HT", "HU", "ID", "IE", "IL", "IM", "IN", "IO", "IQ", "IR", "IS", "IT", "JE", "JM", "JO", "JP", "KE", "KG", "KH", "KI", "KM", "KN", "KP", "KR", "KW", "KY", "KZ", "LA", "LB", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MF", "MG", "MH", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MS", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PE", "PF", "PG", "PH", "PK", "PL", "PM", "PN", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RS", "RU", "RW", "SA", "SB", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "SS", "ST", "SV", "SX", "SY", "SZ", "TC", "TD", "TF", "TG", "TH", "TJ", "TK", "TL", "TM", "TN", "TO", "TR", "TT", "TV", "TW", "TZ", "UA", "UG", "UM", "US", "UY", "UZ", "VA", "VC", "VE", "VG", "VI", "VN", "VU", "WF", "WS", "YE", "YT", "ZA", "ZM", "ZW" ]); - for (var _1v = 0, _1w = _1u.length; _1v < _1w; _1v++) { - var _1x = $get(_1u, _1v); - $k[$j++] = _1x; - $k[$j++] = _1x; - } - $1.iso3166alpha2 = $d(); + var _1k = $k[--$j]; //#339 + $k[$j++] = _1k; //#341 + if ((_1k.length % 3) != 0) { //#341 + $j -= 2; //#340 + $k[$j++] = 'bwipp.GS1BadCountryListLength'; //#340 + $k[$j++] = "Not a group of three-digit country codes"; //#340 + $k[$j++] = false; //#340 + return true; //#340 + } //#340 + var _1l = $k[--$j]; //#343 + $k[$j++] = _1l; //#346 + $k[$j++] = true; //#346 + for (var _1n = 0, _1m = _1l.length - 1; _1n <= _1m; _1n += 3) { //#346 + var _1o = $k[--$j]; //#344 + var _1p = $k[--$j]; //#344 + var _1s = $get($1.iso3166, $geti(_1p, _1n, 3)) !== undefined; //#345 + $k[$j++] = _1p; //#345 + $k[$j++] = _1o; //#345 + if (!_1s) { //#345 + $j -= 2; //#345 + $k[$j++] = false; //#345 + break; //#345 + } //#345 + } //#345 + if ($nt($k[--$j])) { //#347 + $j--; //#347 + $k[$j++] = 'bwipp.GS1UnknownCountry'; //#347 + $k[$j++] = "Unknown country code"; //#347 + $k[$j++] = false; //#347 + return true; //#347 + } //#347 + $j--; //#348 + }; //#349 + $k[$j++] = Infinity; //#376 + var _1u = $a(['AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AW', 'AX', 'AZ', 'BA', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BR', 'BS', 'BT', 'BV', 'BW', 'BY', 'BZ', 'CA', 'CC', 'CD', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CO', 'CR', 'CU', 'CV', 'CW', 'CX', 'CY', 'CZ', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'EC', 'EE', 'EG', 'EH', 'ER', 'ES', 'ET', 'FI', 'FJ', 'FK', 'FM', 'FO', 'FR', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG', 'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS', 'GT', 'GU', 'GW', 'GY', 'HK', 'HM', 'HN', 'HR', 'HT', 'HU', 'ID', 'IE', 'IL', 'IM', 'IN', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM', 'JO', 'JP', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG', 'MH', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NC', 'NE', 'NF', 'NG', 'NI', 'NL', 'NO', 'NP', 'NR', 'NU', 'NZ', 'OM', 'PA', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM', 'PN', 'PR', 'PS', 'PT', 'PW', 'PY', 'QA', 'RE', 'RO', 'RS', 'RU', 'RW', 'SA', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SV', 'SX', 'SY', 'SZ', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA', 'UG', 'UM', 'US', 'UY', 'UZ', 'VA', 'VC', 'VE', 'VG', 'VI', 'VN', 'VU', 'WF', 'WS', 'YE', 'YT', 'ZA', 'ZM', 'ZW']); //#375 + for (var _1v = 0, _1w = _1u.length; _1v < _1w; _1v++) { //#376 + var _1x = $get(_1u, _1v); //#376 + $k[$j++] = _1x; //#376 + $k[$j++] = _1x; //#376 + } //#376 + $1.iso3166alpha2 = $d(); //#376 $1.lintiso3166alpha2 = function() { - var _21 = $get($1.iso3166alpha2, $k[--$j]) !== undefined; - if (!_21) { - $j--; - $k[$j++] = "bwipp.GS1UnknownCountryAlpha"; - $k[$j++] = "Unknown country alpha code"; - $k[$j++] = false; - return true; - } - }; - $k[$j++] = Infinity; - var _22 = $a([ "008", "012", "032", "036", "044", "048", "050", "051", "052", "060", "064", "068", "072", "084", "090", "096", "104", "108", "116", "124", "132", "136", "144", "152", "156", "170", "174", "188", "191", "192", "203", "208", "214", "222", "230", "232", "238", "242", "262", "270", "292", "320", "324", "328", "332", "340", "344", "348", "352", "356", "360", "364", "368", "376", "388", "392", "398", "400", "404", "408", "410", "414", "417", "418", "422", "426", "430", "434", "446", "454", "458", "462", "480", "484", "496", "498", "504", "512", "516", "524", "532", "533", "548", "554", "558", "566", "578", "586", "590", "598", "600", "604", "608", "634", "643", "646", "654", "682", "690", "694", "702", "704", "706", "710", "728", "748", "752", "756", "760", "764", "776", "780", "784", "788", "800", "807", "818", "826", "834", "840", "858", "860", "882", "886", "901", "927", "928", "929", "930", "931", "932", "933", "934", "936", "938", "940", "941", "943", "944", "946", "947", "948", "949", "950", "951", "952", "953", "955", "956", "957", "958", "959", "960", "961", "962", "963", "964", "965", "967", "968", "969", "970", "971", "972", "973", "975", "976", "977", "978", "979", "980", "981", "984", "985", "986", "990", "994", "997", "999" ]); - for (var _23 = 0, _24 = _22.length; _23 < _24; _23++) { - var _25 = $get(_22, _23); - $k[$j++] = _25; - $k[$j++] = _25; - } - $1.iso4217 = $d(); + var _21 = $get($1.iso3166alpha2, $k[--$j]) !== undefined; //#379 + if (!_21) { //#379 + $j--; //#379 + $k[$j++] = 'bwipp.GS1UnknownCountryAlpha'; //#379 + $k[$j++] = "Unknown country alpha code"; //#379 + $k[$j++] = false; //#379 + return true; //#379 + } //#379 + }; //#380 + $k[$j++] = Infinity; //#405 + var _22 = $a(['008', '012', '032', '036', '044', '048', '050', '051', '052', '060', '064', '068', '072', '084', '090', '096', '104', '108', '116', '124', '132', '136', '144', '152', '156', '170', '174', '188', '191', '192', '203', '208', '214', '222', '230', '232', '238', '242', '262', '270', '292', '320', '324', '328', '332', '340', '344', '348', '352', '356', '360', '364', '368', '376', '388', '392', '398', '400', '404', '408', '410', '414', '417', '418', '422', '426', '430', '434', '446', '454', '458', '462', '480', '484', '496', '498', '504', '512', '516', '524', '532', '533', '548', '554', '558', '566', '578', '586', '590', '598', '600', '604', '608', '634', '643', '646', '654', '682', '690', '694', '702', '704', '706', '710', '728', '748', '752', '756', '760', '764', '776', '780', '784', '788', '800', '807', '818', '826', '834', '840', '858', '860', '882', '886', '901', '927', '928', '929', '930', '931', '932', '933', '934', '936', '938', '940', '941', '943', '944', '946', '947', '948', '949', '950', '951', '952', '953', '955', '956', '957', '958', '959', '960', '961', '962', '963', '964', '965', '967', '968', '969', '970', '971', '972', '973', '975', '976', '977', '978', '979', '980', '981', '984', '985', '986', '990', '994', '997', '999']); //#404 + for (var _23 = 0, _24 = _22.length; _23 < _24; _23++) { //#405 + var _25 = $get(_22, _23); //#405 + $k[$j++] = _25; //#405 + $k[$j++] = _25; //#405 + } //#405 + $1.iso4217 = $d(); //#405 $1.lintiso4217 = function() { - var _29 = $get($1.iso4217, $k[--$j]) !== undefined; - if (!_29) { - $j--; - $k[$j++] = "bwipp.GS1UnknownCurrency"; - $k[$j++] = "Unknown currency code"; - $k[$j++] = false; - return true; - } - }; + var _29 = $get($1.iso4217, $k[--$j]) !== undefined; //#408 + if (!_29) { //#408 + $j--; //#408 + $k[$j++] = 'bwipp.GS1UnknownCurrency'; //#408 + $k[$j++] = "Unknown currency code"; //#408 + $k[$j++] = false; //#408 + return true; //#408 + } //#408 + }; //#409 $1.lintiban = function() { - var _2A = $k[--$j]; - $k[$j++] = _2A; - if (_2A.length < 4) { - $j -= 2; - $k[$j++] = "bwipp.GS1tooShort"; - $k[$j++] = "IBAN too short"; - $k[$j++] = false; - return true; - } - var _2B = $k[--$j]; - $k[$j++] = _2B; - $k[$j++] = true; - $forall(_2B, function() { - var _2C = $s(1); - $put(_2C, 0, $k[--$j]); - $search("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", _2C); - if ($nt($k[--$j])) { - $j -= 2; - $k[$j++] = false; - return true; - } - $j -= 3; - }); - if ($nt($k[--$j])) { - $j--; - $k[$j++] = "bwipp.GS1badIBANcharacter"; - $k[$j++] = "Invalid IBAN character"; - $k[$j++] = false; - return true; - } - var _2G = $k[--$j]; - $k[$j++] = _2G; - $k[$j++] = Infinity; - $k[$j++] = _2G; - $k[$j++] = Infinity; - var _2J = $k[--$j]; - var _2K = $k[--$j]; - $k[$j++] = _2J; - $forall(_2K); - $r($counttomark(), -4); - $astore($a($counttomark())); - var _2O = $k[--$j]; - var _2P = $k[--$j]; - $k[$j++] = _2O; - $k[$j++] = _2P; - $j--; - $forall($k[--$j], function() { - var _2S = $f($k[--$j] - 48); - $k[$j++] = _2S; - if (_2S > 9) { - var _2U = $f($k[--$j] - 7); - $k[$j++] = ~~(_2U / 10); - $k[$j++] = _2U % 10; - } - }); - $astore($a($counttomark())); - var _2X = $k[--$j]; - var _2Y = $k[--$j]; - $k[$j++] = _2X; - $k[$j++] = _2Y; - $j--; - var _2Z = $k[--$j]; - $k[$j++] = 0; - $forall(_2Z, function() { - var _2a = $k[--$j]; - var _2b = $k[--$j]; - $k[$j++] = $f(_2a + _2b * 10) % 97; - }); - if ($k[--$j] != 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1badIBANchecksum"; - $k[$j++] = "IBAN checksum incorrect"; - $k[$j++] = false; - return true; - } - var _2e = $geti($k[--$j], 0, 2); - $k[$j++] = _2e; - $1.lintiso3166alpha2(); - }; + var _2A = $k[--$j]; //#412 + $k[$j++] = _2A; //#412 + if (_2A.length < 4) { //#412 + $j -= 2; //#412 + $k[$j++] = 'bwipp.GS1tooShort'; //#412 + $k[$j++] = "IBAN too short"; //#412 + $k[$j++] = false; //#412 + return true; //#412 + } //#412 + var _2B = $k[--$j]; //#413 + $k[$j++] = _2B; //#418 + $k[$j++] = true; //#418 + $forall(_2B, function() { //#418 + var _2C = $s(1); //#414 + $put(_2C, 0, $k[--$j]); //#414 + $search("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", _2C); //#416 + if ($nt($k[--$j])) { //#416 + $j -= 2; //#416 + $k[$j++] = false; //#416 + return true; //#416 + } //#416 + $j -= 3; //#417 + }); //#417 + if ($nt($k[--$j])) { //#419 + $j--; //#419 + $k[$j++] = 'bwipp.GS1badIBANcharacter'; //#419 + $k[$j++] = "Invalid IBAN character"; //#419 + $k[$j++] = false; //#419 + return true; //#419 + } //#419 + var _2G = $k[--$j]; //#420 + $k[$j++] = _2G; //#420 + $k[$j++] = _2G; //#420 + $k[$j++] = Infinity; //#420 + var _2H = $k[--$j]; //#420 + var _2I = $k[--$j]; //#420 + $k[$j++] = _2H; //#420 + $k[$j++] = _2I; //#420 + $k[$j++] = Infinity; //#420 + var _2J = $k[--$j]; //#420 + var _2K = $k[--$j]; //#420 + $k[$j++] = _2J; //#420 + $forall(_2K); //#420 + $r($counttomark(), -4); //#420 + $astore($a($counttomark())); //#420 + var _2O = $k[--$j]; //#420 + var _2P = $k[--$j]; //#420 + $k[$j++] = _2O; //#420 + $k[$j++] = _2P; //#420 + $j--; //#420 + $forall($k[--$j], function() { //#422 + var _2S = $f($k[--$j] - 48); //#421 + $k[$j++] = _2S; //#421 + if (_2S > 9) { //#421 + var _2U = $f($k[--$j] - 7); //#421 + $k[$j++] = ~~(_2U / 10); //#421 + $k[$j++] = _2U % 10; //#421 + } //#421 + }); //#421 + $astore($a($counttomark())); //#422 + var _2X = $k[--$j]; //#422 + var _2Y = $k[--$j]; //#422 + $k[$j++] = _2X; //#422 + $k[$j++] = _2Y; //#422 + $j--; //#422 + var _2Z = $k[--$j]; //#423 + $k[$j++] = 0; //#423 + $forall(_2Z, function() { //#423 + var _2a = $k[--$j]; //#423 + var _2b = $k[--$j]; //#423 + $k[$j++] = ($f(_2a + (_2b * 10))) % 97; //#423 + }); //#423 + if ($k[--$j] != 1) { //#424 + $j -= 2; //#424 + $k[$j++] = 'bwipp.GS1badIBANchecksum'; //#424 + $k[$j++] = "IBAN checksum incorrect"; //#424 + $k[$j++] = false; //#424 + return true; //#424 + } //#424 + var _2e = $geti($k[--$j], 0, 2); //#425 + $k[$j++] = _2e; //#425 + $1.lintiso3166alpha2(); //#425 + }; //#426 $1.lintzero = function() { - if ($ne($k[--$j], "0")) { - $j--; - $k[$j++] = "bwipp.GS1zeroRequired"; - $k[$j++] = "Zero is required"; - $k[$j++] = false; - return true; - } - }; + if ($ne($k[--$j], "0")) { //#429 + $j--; //#429 + $k[$j++] = 'bwipp.GS1zeroRequired'; //#429 + $k[$j++] = "Zero is required"; //#429 + $k[$j++] = false; //#429 + return true; //#429 + } //#429 + }; //#430 $1.lintnonzero = function() { - var _2g = $k[--$j]; - $k[$j++] = false; - $forall(_2g, function() { - if ($k[--$j] != 48) { - $j--; - $k[$j++] = true; - } - }); - if ($nt($k[--$j])) { - $j--; - $k[$j++] = "bwipp.GS1zeroNotPermitted"; - $k[$j++] = "Zero not permitted"; - $k[$j++] = false; - return true; - } - }; + var _2g = $k[--$j]; //#433 + $k[$j++] = false; //#433 + $forall(_2g, function() { //#433 + if ($k[--$j] != 48) { //#433 + $j--; //#433 + $k[$j++] = true; //#433 + } //#433 + }); //#433 + if ($nt($k[--$j])) { //#434 + $j--; //#434 + $k[$j++] = 'bwipp.GS1zeroNotPermitted'; //#434 + $k[$j++] = "Zero not permitted"; //#434 + $k[$j++] = false; //#434 + return true; //#434 + } //#434 + }; //#435 $1.lintnozeroprefix = function() { - var _2j = $k[--$j]; - if (_2j.length > 1 && $get(_2j, 0) == 48) { - $j--; - $k[$j++] = "bwipp.GS1badZeroPrefix"; - $k[$j++] = "Zero prefix is not permitted"; - $k[$j++] = false; - return true; - } - }; + var _2j = $k[--$j]; //#438 + if ((_2j.length > 1) && ($get(_2j, 0) == 48)) { //#440 + $j--; //#439 + $k[$j++] = 'bwipp.GS1badZeroPrefix'; //#439 + $k[$j++] = "Zero prefix is not permitted"; //#439 + $k[$j++] = false; //#439 + return true; //#439 + } //#439 + }; //#441 $1.lintyymmd0 = function() { - var _2l = $k[--$j]; - var _2n = ~~$z($geti(_2l, 2, 2)); - $k[$j++] = _2l; - if (_2n < 1 || _2n > 12) { - $j--; - $k[$j++] = "bwipp.GS1badMonth"; - $k[$j++] = "Invalid month"; - $k[$j++] = false; - return true; - } - var _2o = $k[--$j]; - var _2q = ~~$z($geti(_2o, 0, 2)); - var _2r = _2q - 21; - $k[$j++] = _2o; - $k[$j++] = _2q; - $k[$j++] = _2r; - if (_2r >= 51) { - $j--; - var _2s = $k[--$j]; - $k[$j++] = $f(_2s + 1900); - } else { - if ($k[--$j] <= -50) { - var _2u = $k[--$j]; - $k[$j++] = $f(_2u + 2100); - } else { - var _2v = $k[--$j]; - $k[$j++] = $f(_2v + 2e3); - } - } - var _2w = $k[--$j]; - $k[$j++] = _2w % 400 == 0 || _2w % 4 == 0 && _2w % 100 != 0; - $k[$j++] = Infinity; - var _2x = $k[--$j]; - var _2z = $k[--$j] ? 29 : 28; - $k[$j++] = _2x; - $k[$j++] = 31; - $k[$j++] = _2z; - $k[$j++] = 31; - $k[$j++] = 30; - $k[$j++] = 31; - $k[$j++] = 30; - $k[$j++] = 31; - $k[$j++] = 31; - $k[$j++] = 30; - $k[$j++] = 31; - $k[$j++] = 30; - $k[$j++] = 31; - var _30 = $a(); - var _31 = $k[--$j]; - if ($get(_30, ~~$z($geti(_31, 2, 2)) - 1) < ~~$z($geti(_31, 4, 2))) { - $j--; - $k[$j++] = "bwipp.GS1badDay"; - $k[$j++] = "Invalid day of month"; - $k[$j++] = false; - return true; - } - }; + var _2l = $k[--$j]; //#444 + var _2n = ~~$z($geti(_2l, 2, 2)); //#444 + $k[$j++] = _2l; //#444 + if ((_2n < 1) || (_2n > 12)) { //#444 + $j--; //#444 + $k[$j++] = 'bwipp.GS1badMonth'; //#444 + $k[$j++] = "Invalid month"; //#444 + $k[$j++] = false; //#444 + return true; //#444 + } //#444 + var _2o = $k[--$j]; //#445 + var _2q = ~~$z($geti(_2o, 0, 2)); //#445 + var _2r = _2q - 21; //#446 + $k[$j++] = _2o; //#446 + $k[$j++] = _2q; //#446 + $k[$j++] = _2r; //#446 + if (_2r >= 51) { //#446 + $j--; //#446 + var _2s = $k[--$j]; //#446 + $k[$j++] = $f(_2s + 1900); //#446 + } else { //#446 + if ($k[--$j] <= -50) { //#446 + var _2u = $k[--$j]; //#446 + $k[$j++] = $f(_2u + 2100); //#446 + } else { //#446 + var _2v = $k[--$j]; //#446 + $k[$j++] = $f(_2v + 2000); //#446 + } //#446 + } //#446 + var _2w = $k[--$j]; //#447 + $k[$j++] = ((_2w % 400) == 0) || (((_2w % 4) == 0) && ((_2w % 100) != 0)); //#448 + $k[$j++] = Infinity; //#448 + var _2x = $k[--$j]; //#448 + var _2z = $k[--$j] ? 29 : 28; //#448 + $k[$j++] = _2x; //#448 + $k[$j++] = 31; //#448 + $k[$j++] = _2z; //#448 + $k[$j++] = 31; //#448 + $k[$j++] = 30; //#448 + $k[$j++] = 31; //#448 + $k[$j++] = 30; //#448 + $k[$j++] = 31; //#448 + $k[$j++] = 31; //#448 + $k[$j++] = 30; //#448 + $k[$j++] = 31; //#448 + $k[$j++] = 30; //#448 + $k[$j++] = 31; //#448 + var _30 = $a(); //#448 + var _31 = $k[--$j]; //#449 + if ($get(_30, (~~$z($geti(_31, 2, 2))) - 1) < (~~$z($geti(_31, 4, 2)))) { //#450 + $j--; //#450 + $k[$j++] = 'bwipp.GS1badDay'; //#450 + $k[$j++] = "Invalid day of month"; //#450 + $k[$j++] = false; //#450 + return true; //#450 + } //#450 + }; //#451 $1.lintyymmdd = function() { - var _35 = $k[--$j]; - $k[$j++] = _35; - if (_35.length != 6) { - $j--; - $k[$j++] = "bwipp.GS1badDateLength"; - $k[$j++] = "Invalid length for date"; - $k[$j++] = false; - return true; - } - var _36 = $k[--$j]; - $k[$j++] = _36; - if (~~$z($geti(_36, 4, 2)) < 1) { - $j--; - $k[$j++] = "bwipp.GS1badDay"; - $k[$j++] = "Invalid day of month"; - $k[$j++] = false; - return true; - } - $1.lintyymmd0(); - }; + var _35 = $k[--$j]; //#454 + $k[$j++] = _35; //#454 + if (_35.length != 6) { //#454 + $j--; //#454 + $k[$j++] = 'bwipp.GS1badDateLength'; //#454 + $k[$j++] = "Invalid length for date"; //#454 + $k[$j++] = false; //#454 + return true; //#454 + } //#454 + var _36 = $k[--$j]; //#455 + $k[$j++] = _36; //#455 + if ((~~$z($geti(_36, 4, 2))) < 1) { //#455 + $j--; //#455 + $k[$j++] = 'bwipp.GS1badDay'; //#455 + $k[$j++] = "Invalid day of month"; //#455 + $k[$j++] = false; //#455 + return true; //#455 + } //#455 + $1.lintyymmd0(); //#456 + }; //#457 $1.lintyymmddhh = function() { - var _38 = $k[--$j]; - $k[$j++] = _38; - if (_38.length != 8) { - $j--; - $k[$j++] = "bwipp.GS1badYYMMDDHHLength"; - $k[$j++] = "Invalid length for date with hour"; - $k[$j++] = false; - return true; - } - var _39 = $k[--$j]; - $k[$j++] = _39; - if (~~$z($geti(_39, 6, 2)) > 23) { - $j -= 2; - $k[$j++] = "bwipp.GS1badHour"; - $k[$j++] = "Invalid hour of day"; - $k[$j++] = false; - return true; - } - var _3C = $geti($k[--$j], 0, 6); - $k[$j++] = _3C; - $1.lintyymmdd(); - }; + var _38 = $k[--$j]; //#460 + $k[$j++] = _38; //#460 + if (_38.length != 8) { //#460 + $j--; //#460 + $k[$j++] = 'bwipp.GS1badYYMMDDHHLength'; //#460 + $k[$j++] = "Invalid length for date with hour"; //#460 + $k[$j++] = false; //#460 + return true; //#460 + } //#460 + var _39 = $k[--$j]; //#461 + $k[$j++] = _39; //#461 + if ((~~$z($geti(_39, 6, 2))) > 23) { //#461 + $j -= 2; //#461 + $k[$j++] = 'bwipp.GS1badHour'; //#461 + $k[$j++] = "Invalid hour of day"; //#461 + $k[$j++] = false; //#461 + return true; //#461 + } //#461 + var _3C = $geti($k[--$j], 0, 6); //#462 + $k[$j++] = _3C; //#462 + $1.lintyymmdd(); //#462 + }; //#463 $1.linthhmm = function() { - var _3D = $k[--$j]; - $k[$j++] = _3D; - if (~~$z($geti(_3D, 0, 2)) > 23) { - $j -= 2; - $k[$j++] = "bwipp.GS1badHour"; - $k[$j++] = "Invalid hour of day"; - $k[$j++] = false; - return true; - } - if (~~$z($geti($k[--$j], 2, 2)) > 59) { - $j--; - $k[$j++] = "bwipp.GS1badMinute"; - $k[$j++] = "Invalid minute in the hour"; - $k[$j++] = false; - return true; - } - }; + var _3D = $k[--$j]; //#466 + $k[$j++] = _3D; //#466 + if ((~~$z($geti(_3D, 0, 2))) > 23) { //#466 + $j -= 2; //#466 + $k[$j++] = 'bwipp.GS1badHour'; //#466 + $k[$j++] = "Invalid hour of day"; //#466 + $k[$j++] = false; //#466 + return true; //#466 + } //#466 + if ((~~$z($geti($k[--$j], 2, 2))) > 59) { //#467 + $j--; //#467 + $k[$j++] = 'bwipp.GS1badMinute'; //#467 + $k[$j++] = "Invalid minute in the hour"; //#467 + $k[$j++] = false; //#467 + return true; //#467 + } //#467 + }; //#468 $1.lintmmoptss = function() { - var _3H = $k[--$j]; - var _3I = _3H.length; - $k[$j++] = _3H; - if (_3I != 2 && _3I != 4) { - $j--; - $k[$j++] = "bwipp.GS1badTimeLength"; - $k[$j++] = "Invalid length for optional minutes and seconds"; - $k[$j++] = false; - return true; - } - var _3J = $k[--$j]; - $k[$j++] = _3J; - if (~~$z($geti(_3J, 0, 2)) > 59) { - $j -= 2; - $k[$j++] = "bwipp.GS1badMinute"; - $k[$j++] = "Invalid minute in the hour"; - $k[$j++] = false; - return true; - } - var _3L = $k[--$j]; - $k[$j++] = _3L; - if (_3L.length >= 4) { - var _3M = $k[--$j]; - $k[$j++] = _3M; - if (~~$z($geti(_3M, 2, 2)) > 59) { - $j -= 2; - $k[$j++] = "bwipp.GS1badSecond"; - $k[$j++] = "Invalid second in the minute"; - $k[$j++] = false; - return true; - } - } - $j--; - }; + var _3H = $k[--$j]; //#471 + var _3I = _3H.length; //#471 + $k[$j++] = _3H; //#473 + if ((_3I != 2) && (_3I != 4)) { //#473 + $j--; //#472 + $k[$j++] = 'bwipp.GS1badTimeLength'; //#472 + $k[$j++] = "Invalid length for optional minutes and seconds"; //#472 + $k[$j++] = false; //#472 + return true; //#472 + } //#472 + var _3J = $k[--$j]; //#474 + $k[$j++] = _3J; //#474 + if ((~~$z($geti(_3J, 0, 2))) > 59) { //#474 + $j -= 2; //#474 + $k[$j++] = 'bwipp.GS1badMinute'; //#474 + $k[$j++] = "Invalid minute in the hour"; //#474 + $k[$j++] = false; //#474 + return true; //#474 + } //#474 + var _3L = $k[--$j]; //#475 + $k[$j++] = _3L; //#477 + if (_3L.length >= 4) { //#477 + var _3M = $k[--$j]; //#476 + $k[$j++] = _3M; //#476 + if ((~~$z($geti(_3M, 2, 2))) > 59) { //#476 + $j -= 2; //#476 + $k[$j++] = 'bwipp.GS1badSecond'; //#476 + $k[$j++] = "Invalid second in the minute"; //#476 + $k[$j++] = false; //#476 + return true; //#476 + } //#476 + } //#476 + $j--; //#478 + }; //#479 $1.lintyesno = function() { - var _3O = $k[--$j]; - if ($ne(_3O, "0") && $ne(_3O, "1")) { - $j--; - $k[$j++] = "bwipp.GS1badBoolean"; - $k[$j++] = "Neither 0 nor 1 for yes or no"; - $k[$j++] = false; - return true; - } - }; + var _3O = $k[--$j]; //#482 + if ($ne(_3O, "0") && $ne(_3O, "1")) { //#484 + $j--; //#483 + $k[$j++] = 'bwipp.GS1badBoolean'; //#483 + $k[$j++] = "Neither 0 nor 1 for yes or no"; //#483 + $k[$j++] = false; //#483 + return true; //#483 + } //#483 + }; //#485 $1.lintwinding = function() { - var _3P = $k[--$j]; - if ($ne(_3P, "0") && ($ne(_3P, "1") && $ne(_3P, "9"))) { - $j--; - $k[$j++] = "bwipp.GS1badWinding"; - $k[$j++] = "Invalid winding direction"; - $k[$j++] = false; - return true; - } - }; + var _3P = $k[--$j]; //#488 + if ($ne(_3P, "0") && ($ne(_3P, "1") && $ne(_3P, "9"))) { //#490 + $j--; //#489 + $k[$j++] = 'bwipp.GS1badWinding'; //#489 + $k[$j++] = "Invalid winding direction"; //#489 + $k[$j++] = false; //#489 + return true; //#489 + } //#489 + }; //#491 $1.lintpieceoftotal = function() { - var _3Q = $k[--$j]; - $k[$j++] = _3Q; - if (_3Q.length % 2 != 0) { - $j -= 2; - $k[$j++] = "bwipp.GS1badPieceTotalLength"; - $k[$j++] = "Invalid piece/total length"; - $k[$j++] = false; - return true; - } - var _3R = $k[--$j]; - var _3T = ~~$z($geti(_3R, 0, ~~(_3R.length / 2))); - $k[$j++] = _3R; - $k[$j++] = _3T; - if (_3T == 0) { - $j -= 3; - $k[$j++] = "bwipp.GS1badPieceNumber"; - $k[$j++] = "Invalid piece number"; - $k[$j++] = false; - return true; - } - var _3U = $k[--$j]; - var _3V = $k[--$j]; - var _3W = ~~(_3V.length / 2); - var _3Y = ~~$z($geti(_3V, _3W, _3W)); - $k[$j++] = _3U; - $k[$j++] = _3Y; - if (_3Y == 0) { - $j -= 3; - $k[$j++] = "bwipp.GS1badPieceTotal"; - $k[$j++] = "Invalid total number"; - $k[$j++] = false; - return true; - } - var _3Z = $k[--$j]; - if ($gt($k[--$j], _3Z)) { - $j--; - $k[$j++] = "bwipp.GS1pieceExceedsTotal"; - $k[$j++] = "Piece number exceeds total"; - $k[$j++] = false; - return true; - } - }; + var _3Q = $k[--$j]; //#494 + $k[$j++] = _3Q; //#494 + if ((_3Q.length % 2) != 0) { //#494 + $j -= 2; //#494 + $k[$j++] = 'bwipp.GS1badPieceTotalLength'; //#494 + $k[$j++] = "Invalid piece/total length"; //#494 + $k[$j++] = false; //#494 + return true; //#494 + } //#494 + var _3R = $k[--$j]; //#495 + var _3T = ~~$z($geti(_3R, 0, ~~(_3R.length / 2))); //#496 + $k[$j++] = _3R; //#496 + $k[$j++] = _3T; //#496 + if (_3T == 0) { //#496 + $j -= 3; //#496 + $k[$j++] = 'bwipp.GS1badPieceNumber'; //#496 + $k[$j++] = "Invalid piece number"; //#496 + $k[$j++] = false; //#496 + return true; //#496 + } //#496 + var _3U = $k[--$j]; //#497 + var _3V = $k[--$j]; //#497 + var _3W = ~~(_3V.length / 2); //#497 + var _3Y = ~~$z($geti(_3V, _3W, _3W)); //#498 + $k[$j++] = _3U; //#498 + $k[$j++] = _3Y; //#498 + if (_3Y == 0) { //#498 + $j -= 3; //#498 + $k[$j++] = 'bwipp.GS1badPieceTotal'; //#498 + $k[$j++] = "Invalid total number"; //#498 + $k[$j++] = false; //#498 + return true; //#498 + } //#498 + var _3Z = $k[--$j]; //#499 + if ($gt($k[--$j], _3Z)) { //#499 + $j--; //#499 + $k[$j++] = 'bwipp.GS1pieceExceedsTotal'; //#499 + $k[$j++] = "Piece number exceeds total"; //#499 + $k[$j++] = false; //#499 + return true; //#499 + } //#499 + }; //#500 $1.lintpcenc = function() { - for (;;) { - $search($k[--$j], "%"); - if ($nt($k[--$j])) { - $j--; - break; - } - $j -= 2; - var _3d = $k[--$j]; - $k[$j++] = _3d; - if (_3d.length < 2) { - $j -= 2; - $k[$j++] = "bwipp.GS1badPercentEscape"; - $k[$j++] = "Invalid % escape"; - $k[$j++] = false; - break; - } - var _3e = $k[--$j]; - var _3f = $geti(_3e, 0, 2); - $k[$j++] = _3e; - $k[$j++] = true; - for (var _3g = 0, _3h = _3f.length; _3g < _3h; _3g++) { - var _3j = $s(1); - $put(_3j, 0, $get(_3f, _3g)); - $search("0123456789ABCDEFabcdef", _3j); - if ($nt($k[--$j])) { - $j -= 2; - $k[$j++] = false; - return true; - } - $j -= 3; - } - if ($nt($k[--$j])) { - $j -= 2; - $k[$j++] = "bwipp.GS1badPercentChars"; - $k[$j++] = "Invalid characters for percent encoding"; - $k[$j++] = false; - break; - } - } - }; + for (;;) { //#513 + $search($k[--$j], "%"); //#504 + if ($nt($k[--$j])) { //#504 + $j--; //#504 + break; //#504 + } //#504 + $j -= 2; //#505 + var _3d = $k[--$j]; //#505 + $k[$j++] = _3d; //#505 + if (_3d.length < 2) { //#505 + $j -= 2; //#505 + $k[$j++] = 'bwipp.GS1badPercentEscape'; //#505 + $k[$j++] = "Invalid % escape"; //#505 + $k[$j++] = false; //#505 + break; //#505 + } //#505 + var _3e = $k[--$j]; //#506 + var _3f = $geti(_3e, 0, 2); //#506 + $k[$j++] = _3e; //#511 + $k[$j++] = true; //#511 + for (var _3g = 0, _3h = _3f.length; _3g < _3h; _3g++) { //#511 + var _3j = $s(1); //#507 + $put(_3j, 0, $get(_3f, _3g)); //#507 + $search("0123456789ABCDEFabcdef", _3j); //#509 + if ($nt($k[--$j])) { //#509 + $j -= 2; //#509 + $k[$j++] = false; //#509 + return true; //#509 + } //#509 + $j -= 3; //#510 + } //#510 + if ($nt($k[--$j])) { //#512 + $j -= 2; //#512 + $k[$j++] = 'bwipp.GS1badPercentChars'; //#512 + $k[$j++] = "Invalid characters for percent encoding"; //#512 + $k[$j++] = false; //#512 + break; //#512 + } //#512 + } //#512 + }; //#514 $1.lintcouponcode = function() { - var _3m = $k[--$j]; - $k[$j++] = _3m; - $k[$j++] = true; - $forall(_3m, function() { - var _3n = $k[--$j]; - if (_3n < 48 || _3n > 57) { - $j--; - $k[$j++] = false; - return true; - } - }); - if ($nt($k[--$j])) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponNotNumeric"; - $k[$j++] = "Coupon not numeric"; - $k[$j++] = false; - return true; - } - var _3p = $k[--$j]; - $k[$j++] = _3p; - if (_3p.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortGCPVLI"; - $k[$j++] = "Coupon too short: Missing GCP VLI"; - $k[$j++] = false; - return true; - } - var _3q = $k[--$j]; - var _3s = ~~$z($geti(_3q, 0, 1)); - $k[$j++] = _3q; - $k[$j++] = _3s; - if (_3s > 6) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBadGCPVLI"; - $k[$j++] = "Coupon GCP length indicator must be 0-6"; - $k[$j++] = false; - return true; - } - var _3t = $k[--$j]; - var _3u = $k[--$j]; - $k[$j++] = _3u; - $k[$j++] = $f($f(_3t + 6) + 1); - if ($f($f(_3t + 6) + 1) > _3u.length) { - $j -= 3; - $k[$j++] = "bwipp.GS1couponTooShortGCP"; - $k[$j++] = "Coupon too short: GCP truncated"; - $k[$j++] = false; - return true; - } - var _3v = $k[--$j]; - var _3w = $k[--$j]; - var _3x = $geti(_3w, _3v, $f(_3w.length - _3v)); - $k[$j++] = _3x; - if (_3x.length < 6) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortOfferCode"; - $k[$j++] = "Coupon too short: Offer Code truncated"; - $k[$j++] = false; - return true; - } - var _3y = $k[--$j]; - var _3z = $geti(_3y, 6, _3y.length - 6); - $k[$j++] = _3z; - if (_3z.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortSaveValueVLI"; - $k[$j++] = "Coupon too short: Missing Save Value VLI"; - $k[$j++] = false; - return true; - } - var _40 = $k[--$j]; - var _42 = ~~$z($geti(_40, 0, 1)); - $k[$j++] = _40; - $k[$j++] = _42; - if (_42 < 1 || _42 > 5) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBadSaveValueVLI"; - $k[$j++] = "Coupon Save Value length indicator must be 1-5"; - $k[$j++] = false; - return true; - } - var _43 = $k[--$j]; - var _44 = $k[--$j]; - $k[$j++] = _44; - $k[$j++] = $f(_43 + 1); - if ($f(_43 + 1) > _44.length) { - $j -= 3; - $k[$j++] = "bwipp.GS1couponTooShortSaveValue"; - $k[$j++] = "Coupon too short: Save Value truncated"; - $k[$j++] = false; - return true; - } - var _45 = $k[--$j]; - var _46 = $k[--$j]; - var _47 = $geti(_46, _45, $f(_46.length - _45)); - $k[$j++] = _47; - if (_47.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShort1stPurchaseRequirementVLI"; - $k[$j++] = "Coupon too short: Missing 1st Purchase Requirement VLI"; - $k[$j++] = false; - return true; - } - var _48 = $k[--$j]; - var _4A = ~~$z($geti(_48, 0, 1)); - $k[$j++] = _48; - $k[$j++] = _4A; - if (_4A < 1 || _4A > 5) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBad1stPurchaseRequirementVLI"; - $k[$j++] = "Coupon 1st Purchase Requirement length indicator must be 1-5"; - $k[$j++] = false; - return true; - } - var _4B = $k[--$j]; - var _4C = $k[--$j]; - $k[$j++] = _4C; - $k[$j++] = $f(_4B + 1); - if ($f(_4B + 1) > _4C.length) { - $j -= 3; - $k[$j++] = "bwipp.GS1couponTooShort1stPurchaseRequirement"; - $k[$j++] = "Coupon too short: 1st Purchase Requirement truncated"; - $k[$j++] = false; - return true; - } - var _4D = $k[--$j]; - var _4E = $k[--$j]; - var _4F = $geti(_4E, _4D, $f(_4E.length - _4D)); - $k[$j++] = _4F; - if (_4F.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShort1stPurchaseRequirementCode"; - $k[$j++] = "Coupon too short: Missing 1st Purchase Requirement Code"; - $k[$j++] = false; - return true; - } - var _4G = $k[--$j]; - var _4I = ~~$z($geti(_4G, 0, 1)); - $k[$j++] = _4G; - if (_4I > 4 && _4I != 9) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBad1stPurchaseRequirementCode"; - $k[$j++] = "Coupon 1st Purchase Requirement Code must be 0-4 or 9"; - $k[$j++] = false; - return true; - } - var _4J = $k[--$j]; - var _4K = $geti(_4J, 1, _4J.length - 1); - $k[$j++] = _4K; - if (_4K.length < 3) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShort1stPurchaseFamilyCode"; - $k[$j++] = "Coupon too short: 1st Purchase Family Code truncated"; - $k[$j++] = false; - return true; - } - var _4L = $k[--$j]; - var _4M = $geti(_4L, 3, _4L.length - 3); - $k[$j++] = _4M; - if (_4M.length >= 1) { - var _4N = $k[--$j]; - $k[$j++] = _4N; - if (~~$z($geti(_4N, 0, 1)) == 1) { - var _4P = $k[--$j]; - var _4Q = $geti(_4P, 1, _4P.length - 1); - $k[$j++] = _4Q; - if (_4Q.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortAdditionalPurchaseRulesCode"; - $k[$j++] = "Coupon too short: Missing Additional Purchase Rules Code"; - $k[$j++] = false; - return true; - } - var _4R = $k[--$j]; - $k[$j++] = _4R; - if (~~$z($geti(_4R, 0, 1)) > 3) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBadAdditionalPurchaseRulesCode"; - $k[$j++] = "Coupon Additional Purchase Rules Code must be 0-3"; - $k[$j++] = false; - return true; - } - var _4T = $k[--$j]; - var _4U = $geti(_4T, 1, _4T.length - 1); - $k[$j++] = _4U; - if (_4U.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShort2ndPurchaseRequirementVLI"; - $k[$j++] = "Coupon too short: Missing 2nd Purchase Requirement VLI"; - $k[$j++] = false; - return true; - } - var _4V = $k[--$j]; - var _4X = ~~$z($geti(_4V, 0, 1)); - $k[$j++] = _4V; - $k[$j++] = _4X; - if (_4X < 1 || _4X > 5) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBad2ndPurchaseRequirementVLI"; - $k[$j++] = "Coupon 2nd Purchase Requirement length indicator must be 1-5"; - $k[$j++] = false; - return true; - } - var _4Y = $k[--$j]; - var _4Z = $k[--$j]; - $k[$j++] = _4Z; - $k[$j++] = $f(_4Y + 1); - if ($f(_4Y + 1) > _4Z.length) { - $j -= 3; - $k[$j++] = "bwipp.GS1couponTooShort2ndPurchaseRequirement"; - $k[$j++] = "Coupon too short: 2nd Purchase Requirement truncated"; - $k[$j++] = false; - return true; - } - var _4a = $k[--$j]; - var _4b = $k[--$j]; - var _4c = $geti(_4b, _4a, $f(_4b.length - _4a)); - $k[$j++] = _4c; - if (_4c.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShort2ndPurchaseRequirementCode"; - $k[$j++] = "Coupon too short: Missing 2nd Purchase Requirement Code"; - $k[$j++] = false; - return true; - } - var _4d = $k[--$j]; - var _4f = ~~$z($geti(_4d, 0, 1)); - $k[$j++] = _4d; - if (_4f > 4 && _4f != 9) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBad2ndPurchaseRequirementCode"; - $k[$j++] = "Coupon 2nd Purchase Requirement Code must be 0-4 or 9"; - $k[$j++] = false; - return true; - } - var _4g = $k[--$j]; - var _4h = $geti(_4g, 1, _4g.length - 1); - $k[$j++] = _4h; - if (_4h.length < 3) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShort2ndPurchaseFamilyCode"; - $k[$j++] = "Coupon too short: 2nd Purchase Family Code truncated"; - $k[$j++] = false; - return true; - } - var _4i = $k[--$j]; - var _4j = $geti(_4i, 3, _4i.length - 3); - $k[$j++] = _4j; - if (_4j.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShort2ndPurchaseGCPVLI"; - $k[$j++] = "Coupon too short: Missing 2nd Purchase GCP VLI"; - $k[$j++] = false; - return true; - } - var _4k = $k[--$j]; - var _4m = ~~$z($geti(_4k, 0, 1)); - $k[$j++] = _4k; - $k[$j++] = _4m; - if (_4m > 6 && _4m != 9) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBad2ndPurchaseGCPVLI"; - $k[$j++] = "Coupon 2nd Purchase GCP length indicator must be 0-6 or 9"; - $k[$j++] = false; - return true; - } - var _4n = $k[--$j]; - $k[$j++] = _4n; - if (_4n != 9) { - var _4o = $k[--$j]; - $k[$j++] = $f(_4o + 6); - } else { - $j--; - $k[$j++] = 0; - } - var _4p = $k[--$j]; - var _4q = $k[--$j]; - $k[$j++] = _4q; - $k[$j++] = $f(_4p + 1); - if ($f(_4p + 1) > _4q.length) { - $j -= 3; - $k[$j++] = "bwipp.GS1couponTooShort2ndPurchaseGCP"; - $k[$j++] = "Coupon too short: 2nd Purchase GCP truncated"; - $k[$j++] = false; - return true; - } - var _4r = $k[--$j]; - var _4s = $k[--$j]; - $k[$j++] = $geti(_4s, _4r, $f(_4s.length - _4r)); - } - } - var _4u = $k[--$j]; - $k[$j++] = _4u; - if (_4u.length >= 1) { - var _4v = $k[--$j]; - $k[$j++] = _4v; - if (~~$z($geti(_4v, 0, 1)) == 2) { - var _4x = $k[--$j]; - var _4y = $geti(_4x, 1, _4x.length - 1); - $k[$j++] = _4y; - if (_4y.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShort3rdPurchaseRequirementVLI"; - $k[$j++] = "Coupon too short: Missing 3rd Purchase Requirement VLI"; - $k[$j++] = false; - return true; - } - var _4z = $k[--$j]; - var _51 = ~~$z($geti(_4z, 0, 1)); - $k[$j++] = _4z; - $k[$j++] = _51; - if (_51 < 1 || _51 > 5) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBad3rdPurchaseRequirementVLI"; - $k[$j++] = "Coupon 3rd Purchase Requirement length indicator must be 1-5"; - $k[$j++] = false; - return true; - } - var _52 = $k[--$j]; - var _53 = $k[--$j]; - $k[$j++] = _53; - $k[$j++] = $f(_52 + 1); - if ($f(_52 + 1) > _53.length) { - $j -= 3; - $k[$j++] = "bwipp.GS1couponTooShort3rdPurchaseRequirement"; - $k[$j++] = "Coupon too short: 3rd Purchase Requirement truncated"; - $k[$j++] = false; - return true; - } - var _54 = $k[--$j]; - var _55 = $k[--$j]; - var _56 = $geti(_55, _54, $f(_55.length - _54)); - $k[$j++] = _56; - if (_56.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShort3rdPurchaseRequirementCode"; - $k[$j++] = "Coupon too short: Missing 3rd Purchase Requirement Code"; - $k[$j++] = false; - return true; - } - var _57 = $k[--$j]; - var _59 = ~~$z($geti(_57, 0, 1)); - $k[$j++] = _57; - if (_59 > 4 && _59 != 9) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBad3rdPurchaseRequirementCode"; - $k[$j++] = "Coupon 3rd Purchase Requirement Code must be 0-4 or 9"; - $k[$j++] = false; - return true; - } - var _5A = $k[--$j]; - var _5B = $geti(_5A, 1, _5A.length - 1); - $k[$j++] = _5B; - if (_5B.length < 3) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShort3rdPurchaseFamilyCode"; - $k[$j++] = "Coupon too short: 3rd Purchase Family Code truncated"; - $k[$j++] = false; - return true; - } - var _5C = $k[--$j]; - var _5D = $geti(_5C, 3, _5C.length - 3); - $k[$j++] = _5D; - if (_5D.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShort3rdPurchaseGCPVLI"; - $k[$j++] = "Coupon too short: Missing 3rd Purchase GCP VLI"; - $k[$j++] = false; - return true; - } - var _5E = $k[--$j]; - var _5G = ~~$z($geti(_5E, 0, 1)); - $k[$j++] = _5E; - $k[$j++] = _5G; - if (_5G > 6 && _5G != 9) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBad3rdPurchaseGCPVLI"; - $k[$j++] = "Coupon 3rd Purchase GCP length indicator must be 0-6 or 9"; - $k[$j++] = false; - return true; - } - var _5H = $k[--$j]; - $k[$j++] = _5H; - if (_5H != 9) { - var _5I = $k[--$j]; - $k[$j++] = $f(_5I + 6); - } else { - $j--; - $k[$j++] = 0; - } - var _5J = $k[--$j]; - var _5K = $k[--$j]; - $k[$j++] = _5K; - $k[$j++] = $f(_5J + 1); - if ($f(_5J + 1) > _5K.length) { - $j -= 3; - $k[$j++] = "bwipp.GS1couponTooShort3rdPurchaseGCP"; - $k[$j++] = "Coupon too short: 3rd Purchase GCP truncated"; - $k[$j++] = false; - return true; - } - var _5L = $k[--$j]; - var _5M = $k[--$j]; - $k[$j++] = $geti(_5M, _5L, $f(_5M.length - _5L)); - } - } - $1.couponexpire = -1; - var _5O = $k[--$j]; - $k[$j++] = _5O; - if (_5O.length >= 1) { - var _5P = $k[--$j]; - $k[$j++] = _5P; - if (~~$z($geti(_5P, 0, 1)) == 3) { - var _5R = $k[--$j]; - var _5S = $geti(_5R, 1, _5R.length - 1); - $k[$j++] = _5S; - if (_5S.length < 6) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortExpirationDate"; - $k[$j++] = "Coupon too short: Expiration date"; - $k[$j++] = false; - return true; - } - var _5T = $k[--$j]; - var _5V = ~~$z($geti(_5T, 2, 2)); - $k[$j++] = _5T; - if (_5V < 1 || _5V > 12) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponExpirationDateBadMonth"; - $k[$j++] = "Invalid month in expiration date"; - $k[$j++] = false; - return true; - } - var _5W = $k[--$j]; - var _5Y = ~~$z($geti(_5W, 0, 2)); - var _5Z = _5Y - 21; - $k[$j++] = _5W; - $k[$j++] = _5Y; - $k[$j++] = _5Z; - if (_5Z >= 51) { - $j--; - var _5a = $k[--$j]; - $k[$j++] = $f(_5a + 1900); - } else { - if ($k[--$j] <= -50) { - var _5c = $k[--$j]; - $k[$j++] = $f(_5c + 2100); - } else { - var _5d = $k[--$j]; - $k[$j++] = $f(_5d + 2e3); - } - } - var _5e = $k[--$j]; - $k[$j++] = _5e % 400 == 0 || _5e % 4 == 0 && _5e % 100 != 0; - $k[$j++] = Infinity; - var _5f = $k[--$j]; - var _5h = $k[--$j] ? 29 : 28; - $k[$j++] = _5f; - $k[$j++] = 31; - $k[$j++] = _5h; - $k[$j++] = 31; - $k[$j++] = 30; - $k[$j++] = 31; - $k[$j++] = 30; - $k[$j++] = 31; - $k[$j++] = 31; - $k[$j++] = 30; - $k[$j++] = 31; - $k[$j++] = 30; - $k[$j++] = 31; - var _5i = $a(); - var _5j = $k[--$j]; - var _5n = ~~$z($geti(_5j, 4, 2)); - $k[$j++] = _5j; - if ($get(_5i, ~~$z($geti(_5j, 2, 2)) - 1) < _5n || _5n < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponExpirationDateBadDay"; - $k[$j++] = "Invalid day of month in expiration date"; - $k[$j++] = false; - return true; - } - var _5o = $k[--$j]; - $1.couponexpire = ~~$z($geti(_5o, 0, 6)); - $k[$j++] = $geti(_5o, 6, _5o.length - 6); - } - } - var _5r = $k[--$j]; - $k[$j++] = _5r; - if (_5r.length >= 1) { - var _5s = $k[--$j]; - $k[$j++] = _5s; - if (~~$z($geti(_5s, 0, 1)) == 4) { - var _5u = $k[--$j]; - var _5v = $geti(_5u, 1, _5u.length - 1); - $k[$j++] = _5v; - if (_5v.length < 6) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortStartDate"; - $k[$j++] = "Coupon too short: Start date"; - $k[$j++] = false; - return true; - } - var _5w = $k[--$j]; - var _5y = ~~$z($geti(_5w, 2, 2)); - $k[$j++] = _5w; - if (_5y < 1 || _5y > 12) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponStartDateBadMonth"; - $k[$j++] = "Invalid month in start date"; - $k[$j++] = false; - return true; - } - var _5z = $k[--$j]; - var _61 = ~~$z($geti(_5z, 0, 2)); - var _62 = _61 - 21; - $k[$j++] = _5z; - $k[$j++] = _61; - $k[$j++] = _62; - if (_62 >= 51) { - $j--; - var _63 = $k[--$j]; - $k[$j++] = $f(_63 + 1900); - } else { - if ($k[--$j] <= -50) { - var _65 = $k[--$j]; - $k[$j++] = $f(_65 + 2100); - } else { - var _66 = $k[--$j]; - $k[$j++] = $f(_66 + 2e3); - } - } - var _67 = $k[--$j]; - $k[$j++] = _67 % 400 == 0 || _67 % 4 == 0 && _67 % 100 != 0; - $k[$j++] = Infinity; - var _68 = $k[--$j]; - var _6A = $k[--$j] ? 29 : 28; - $k[$j++] = _68; - $k[$j++] = 31; - $k[$j++] = _6A; - $k[$j++] = 31; - $k[$j++] = 30; - $k[$j++] = 31; - $k[$j++] = 30; - $k[$j++] = 31; - $k[$j++] = 31; - $k[$j++] = 30; - $k[$j++] = 31; - $k[$j++] = 30; - $k[$j++] = 31; - var _6B = $a(); - var _6C = $k[--$j]; - var _6G = ~~$z($geti(_6C, 4, 2)); - $k[$j++] = _6C; - if ($get(_6B, ~~$z($geti(_6C, 2, 2)) - 1) < _6G || _6G < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponStartDateBadDay"; - $k[$j++] = "Invalid day of month in start date"; - $k[$j++] = false; - return true; - } - var _6H = $k[--$j]; - $1.couponstart = ~~$z($geti(_6H, 0, 6)); - $k[$j++] = _6H; - if ($1.couponexpire != -1 && $1.couponexpire < $1.couponstart) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponExpireDateBeforeStartDate"; - $k[$j++] = "Coupon expires before it starts"; - $k[$j++] = false; - return true; - } - var _6M = $k[--$j]; - $k[$j++] = $geti(_6M, 6, _6M.length - 6); - } - } - var _6O = $k[--$j]; - $k[$j++] = _6O; - if (_6O.length >= 1) { - var _6P = $k[--$j]; - $k[$j++] = _6P; - if (~~$z($geti(_6P, 0, 1)) == 5) { - var _6R = $k[--$j]; - var _6S = $geti(_6R, 1, _6R.length - 1); - $k[$j++] = _6S; - if (_6S.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortSerialNumberVLI"; - $k[$j++] = "Coupon too short: Missing Serial Number VLI"; - $k[$j++] = false; - return true; - } - var _6T = $k[--$j]; - var _6U = $geti(_6T, 0, 1); - $k[$j++] = _6T; - $k[$j++] = ~~$z(_6U) + 6 + 1; - if (~~$z(_6U) + 6 + 1 > _6T.length) { - $j -= 3; - $k[$j++] = "bwipp.GS1couponTooShortSerialNumber"; - $k[$j++] = "Coupon too short: Serial Number truncated"; - $k[$j++] = false; - return true; - } - var _6V = $k[--$j]; - var _6W = $k[--$j]; - $k[$j++] = $geti(_6W, _6V, $f(_6W.length - _6V)); - } - } - var _6Y = $k[--$j]; - $k[$j++] = _6Y; - if (_6Y.length >= 1) { - var _6Z = $k[--$j]; - $k[$j++] = _6Z; - if (~~$z($geti(_6Z, 0, 1)) == 6) { - var _6b = $k[--$j]; - var _6c = $geti(_6b, 1, _6b.length - 1); - $k[$j++] = _6c; - if (_6c.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortRetailerGCPGLNVLI"; - $k[$j++] = "Coupon too short: Missing Retailer GCP/GLN VLI"; - $k[$j++] = false; - return true; - } - var _6d = $k[--$j]; - var _6f = ~~$z($geti(_6d, 0, 1)); - $k[$j++] = _6d; - $k[$j++] = _6f; - if (_6f < 1 || _6f > 7) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBadRetailerGCPGLNVLI"; - $k[$j++] = "Coupon Retailer GCP/GLN length indicator must be 1-7"; - $k[$j++] = false; - return true; - } - var _6g = $k[--$j]; - var _6h = $k[--$j]; - $k[$j++] = _6h; - $k[$j++] = $f($f(_6g + 6) + 1); - if ($f($f(_6g + 6) + 1) > _6h.length) { - $j -= 3; - $k[$j++] = "bwipp.GS1couponTooShortRetailerGCPGLN"; - $k[$j++] = "Coupon too short: Retailer GCP/GLN truncated"; - $k[$j++] = false; - return true; - } - var _6i = $k[--$j]; - var _6j = $k[--$j]; - $k[$j++] = $geti(_6j, _6i, $f(_6j.length - _6i)); - } - } - var _6l = $k[--$j]; - $k[$j++] = _6l; - if (_6l.length >= 1) { - var _6m = $k[--$j]; - $k[$j++] = _6m; - if (~~$z($geti(_6m, 0, 1)) == 9) { - var _6o = $k[--$j]; - var _6p = $geti(_6o, 1, _6o.length - 1); - $k[$j++] = _6p; - if (_6p.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortSaveValueCode"; - $k[$j++] = "Coupon too short: Missing Save Value Code"; - $k[$j++] = false; - return true; - } - var _6q = $k[--$j]; - var _6s = ~~$z($geti(_6q, 0, 1)); - $k[$j++] = _6q; - if (_6s > 6 || (_6s == 3 || _6s == 4)) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBadSaveValueCode"; - $k[$j++] = "Coupon Save Value Code must be 0,1,2,5 or 6"; - $k[$j++] = false; - return true; - } - var _6t = $k[--$j]; - var _6u = $geti(_6t, 1, _6t.length - 1); - $k[$j++] = _6u; - if (_6u.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortSaveValueAppliesToItem"; - $k[$j++] = "Coupon too short: Missing Save Value Applies to Item"; - $k[$j++] = false; - return true; - } - var _6v = $k[--$j]; - $k[$j++] = _6v; - if (~~$z($geti(_6v, 0, 1)) > 2) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBadSaveValueAppliesToItem"; - $k[$j++] = "Coupon Save Value Applies to Item must be 0-2"; - $k[$j++] = false; - return true; - } - var _6x = $k[--$j]; - var _6y = $geti(_6x, 1, _6x.length - 1); - $k[$j++] = _6y; - if (_6y.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortStoreCouponFlag"; - $k[$j++] = "Coupon too short: Missing Store Coupon Flag"; - $k[$j++] = false; - return true; - } - var _6z = $k[--$j]; - var _70 = $geti(_6z, 1, _6z.length - 1); - $k[$j++] = _70; - if (_70.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortDontMultiplyFlag"; - $k[$j++] = "Coupon too short: Missing Don't Multiply Flag"; - $k[$j++] = false; - return true; - } - var _71 = $k[--$j]; - $k[$j++] = _71; - if (~~$z($geti(_71, 0, 1)) > 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBadDontMultiplyFlag"; - $k[$j++] = "Don't Multiply Flag must be 0 or 1"; - $k[$j++] = false; - return true; - } - var _73 = $k[--$j]; - $k[$j++] = $geti(_73, 1, _73.length - 1); - } - } - var _75 = $k[--$j]; - $k[$j++] = _75; - if (_75.length != 0) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponUnrecognisedOptionalField"; - $k[$j++] = "Coupon fields must be 1,2,3,4,5,6 or 9, increasing order"; - $k[$j++] = false; - return true; - } - $j--; - }; + var _3m = $k[--$j]; //#517 + $k[$j++] = _3m; //#519 + $k[$j++] = true; //#519 + $forall(_3m, function() { //#519 + var _3n = $k[--$j]; //#518 + if ((_3n < 48) || (_3n > 57)) { //#518 + $j--; //#518 + $k[$j++] = false; //#518 + return true; //#518 + } //#518 + }); //#518 + if ($nt($k[--$j])) { //#520 + $j -= 2; //#520 + $k[$j++] = 'bwipp.GS1couponNotNumeric'; //#520 + $k[$j++] = "Coupon not numeric"; //#520 + $k[$j++] = false; //#520 + return true; //#520 + } //#520 + var _3p = $k[--$j]; //#523 + $k[$j++] = _3p; //#525 + if (_3p.length < 1) { //#525 + $j -= 2; //#524 + $k[$j++] = 'bwipp.GS1couponTooShortGCPVLI'; //#524 + $k[$j++] = "Coupon too short: Missing GCP VLI"; //#524 + $k[$j++] = false; //#524 + return true; //#524 + } //#524 + var _3q = $k[--$j]; //#526 + var _3s = ~~$z($geti(_3q, 0, 1)); //#526 + $k[$j++] = _3q; //#528 + $k[$j++] = _3s; //#528 + if (_3s > 6) { //#528 + $j -= 2; //#527 + $k[$j++] = 'bwipp.GS1couponBadGCPVLI'; //#527 + $k[$j++] = "Coupon GCP length indicator must be 0-6"; //#527 + $k[$j++] = false; //#527 + return true; //#527 + } //#527 + var _3t = $k[--$j]; //#529 + var _3u = $k[--$j]; //#530 + $k[$j++] = _3u; //#532 + $k[$j++] = $f($f(_3t + 6) + 1); //#532 + if (($f($f(_3t + 6) + 1)) > _3u.length) { //#532 + $j -= 3; //#531 + $k[$j++] = 'bwipp.GS1couponTooShortGCP'; //#531 + $k[$j++] = "Coupon too short: GCP truncated"; //#531 + $k[$j++] = false; //#531 + return true; //#531 + } //#531 + var _3v = $k[--$j]; //#533 + var _3w = $k[--$j]; //#533 + var _3x = $geti(_3w, _3v, $f(_3w.length - _3v)); //#533 + $k[$j++] = _3x; //#538 + if (_3x.length < 6) { //#538 + $j -= 2; //#537 + $k[$j++] = 'bwipp.GS1couponTooShortOfferCode'; //#537 + $k[$j++] = "Coupon too short: Offer Code truncated"; //#537 + $k[$j++] = false; //#537 + return true; //#537 + } //#537 + var _3y = $k[--$j]; //#539 + var _3z = $geti(_3y, 6, _3y.length - 6); //#539 + $k[$j++] = _3z; //#544 + if (_3z.length < 1) { //#544 + $j -= 2; //#543 + $k[$j++] = 'bwipp.GS1couponTooShortSaveValueVLI'; //#543 + $k[$j++] = "Coupon too short: Missing Save Value VLI"; //#543 + $k[$j++] = false; //#543 + return true; //#543 + } //#543 + var _40 = $k[--$j]; //#545 + var _42 = ~~$z($geti(_40, 0, 1)); //#545 + $k[$j++] = _40; //#547 + $k[$j++] = _42; //#547 + if ((_42 < 1) || (_42 > 5)) { //#547 + $j -= 2; //#546 + $k[$j++] = 'bwipp.GS1couponBadSaveValueVLI'; //#546 + $k[$j++] = "Coupon Save Value length indicator must be 1-5"; //#546 + $k[$j++] = false; //#546 + return true; //#546 + } //#546 + var _43 = $k[--$j]; //#548 + var _44 = $k[--$j]; //#549 + $k[$j++] = _44; //#551 + $k[$j++] = $f(_43 + 1); //#551 + if ($f(_43 + 1) > _44.length) { //#551 + $j -= 3; //#550 + $k[$j++] = 'bwipp.GS1couponTooShortSaveValue'; //#550 + $k[$j++] = "Coupon too short: Save Value truncated"; //#550 + $k[$j++] = false; //#550 + return true; //#550 + } //#550 + var _45 = $k[--$j]; //#552 + var _46 = $k[--$j]; //#552 + var _47 = $geti(_46, _45, $f(_46.length - _45)); //#552 + $k[$j++] = _47; //#557 + if (_47.length < 1) { //#557 + $j -= 2; //#556 + $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseRequirementVLI'; //#556 + $k[$j++] = "Coupon too short: Missing 1st Purchase Requirement VLI"; //#556 + $k[$j++] = false; //#556 + return true; //#556 + } //#556 + var _48 = $k[--$j]; //#558 + var _4A = ~~$z($geti(_48, 0, 1)); //#558 + $k[$j++] = _48; //#560 + $k[$j++] = _4A; //#560 + if ((_4A < 1) || (_4A > 5)) { //#560 + $j -= 2; //#559 + $k[$j++] = 'bwipp.GS1couponBad1stPurchaseRequirementVLI'; //#559 + $k[$j++] = "Coupon 1st Purchase Requirement length indicator must be 1-5"; //#559 + $k[$j++] = false; //#559 + return true; //#559 + } //#559 + var _4B = $k[--$j]; //#561 + var _4C = $k[--$j]; //#562 + $k[$j++] = _4C; //#564 + $k[$j++] = $f(_4B + 1); //#564 + if ($f(_4B + 1) > _4C.length) { //#564 + $j -= 3; //#563 + $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseRequirement'; //#563 + $k[$j++] = "Coupon too short: 1st Purchase Requirement truncated"; //#563 + $k[$j++] = false; //#563 + return true; //#563 + } //#563 + var _4D = $k[--$j]; //#565 + var _4E = $k[--$j]; //#565 + var _4F = $geti(_4E, _4D, $f(_4E.length - _4D)); //#565 + $k[$j++] = _4F; //#570 + if (_4F.length < 1) { //#570 + $j -= 2; //#569 + $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseRequirementCode'; //#569 + $k[$j++] = "Coupon too short: Missing 1st Purchase Requirement Code"; //#569 + $k[$j++] = false; //#569 + return true; //#569 + } //#569 + var _4G = $k[--$j]; //#571 + var _4I = ~~$z($geti(_4G, 0, 1)); //#571 + $k[$j++] = _4G; //#573 + if ((_4I > 4) && (_4I != 9)) { //#573 + $j -= 2; //#572 + $k[$j++] = 'bwipp.GS1couponBad1stPurchaseRequirementCode'; //#572 + $k[$j++] = "Coupon 1st Purchase Requirement Code must be 0-4 or 9"; //#572 + $k[$j++] = false; //#572 + return true; //#572 + } //#572 + var _4J = $k[--$j]; //#574 + var _4K = $geti(_4J, 1, _4J.length - 1); //#574 + $k[$j++] = _4K; //#579 + if (_4K.length < 3) { //#579 + $j -= 2; //#578 + $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseFamilyCode'; //#578 + $k[$j++] = "Coupon too short: 1st Purchase Family Code truncated"; //#578 + $k[$j++] = false; //#578 + return true; //#578 + } //#578 + var _4L = $k[--$j]; //#580 + var _4M = $geti(_4L, 3, _4L.length - 3); //#580 + $k[$j++] = _4M; //#636 + if (_4M.length >= 1) { //#636 + var _4N = $k[--$j]; //#583 + $k[$j++] = _4N; //#636 + if ((~~$z($geti(_4N, 0, 1))) == 1) { //#636 + var _4P = $k[--$j]; //#584 + var _4Q = $geti(_4P, 1, _4P.length - 1); //#584 + $k[$j++] = _4Q; //#589 + if (_4Q.length < 1) { //#589 + $j -= 2; //#588 + $k[$j++] = 'bwipp.GS1couponTooShortAdditionalPurchaseRulesCode'; //#588 + $k[$j++] = "Coupon too short: Missing Additional Purchase Rules Code"; //#588 + $k[$j++] = false; //#588 + return true; //#588 + } //#588 + var _4R = $k[--$j]; //#590 + $k[$j++] = _4R; //#592 + if ((~~$z($geti(_4R, 0, 1))) > 3) { //#592 + $j -= 2; //#591 + $k[$j++] = 'bwipp.GS1couponBadAdditionalPurchaseRulesCode'; //#591 + $k[$j++] = "Coupon Additional Purchase Rules Code must be 0-3"; //#591 + $k[$j++] = false; //#591 + return true; //#591 + } //#591 + var _4T = $k[--$j]; //#593 + var _4U = $geti(_4T, 1, _4T.length - 1); //#593 + $k[$j++] = _4U; //#598 + if (_4U.length < 1) { //#598 + $j -= 2; //#597 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseRequirementVLI'; //#597 + $k[$j++] = "Coupon too short: Missing 2nd Purchase Requirement VLI"; //#597 + $k[$j++] = false; //#597 + return true; //#597 + } //#597 + var _4V = $k[--$j]; //#599 + var _4X = ~~$z($geti(_4V, 0, 1)); //#599 + $k[$j++] = _4V; //#601 + $k[$j++] = _4X; //#601 + if ((_4X < 1) || (_4X > 5)) { //#601 + $j -= 2; //#600 + $k[$j++] = 'bwipp.GS1couponBad2ndPurchaseRequirementVLI'; //#600 + $k[$j++] = "Coupon 2nd Purchase Requirement length indicator must be 1-5"; //#600 + $k[$j++] = false; //#600 + return true; //#600 + } //#600 + var _4Y = $k[--$j]; //#602 + var _4Z = $k[--$j]; //#603 + $k[$j++] = _4Z; //#605 + $k[$j++] = $f(_4Y + 1); //#605 + if ($f(_4Y + 1) > _4Z.length) { //#605 + $j -= 3; //#604 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseRequirement'; //#604 + $k[$j++] = "Coupon too short: 2nd Purchase Requirement truncated"; //#604 + $k[$j++] = false; //#604 + return true; //#604 + } //#604 + var _4a = $k[--$j]; //#606 + var _4b = $k[--$j]; //#606 + var _4c = $geti(_4b, _4a, $f(_4b.length - _4a)); //#606 + $k[$j++] = _4c; //#611 + if (_4c.length < 1) { //#611 + $j -= 2; //#610 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseRequirementCode'; //#610 + $k[$j++] = "Coupon too short: Missing 2nd Purchase Requirement Code"; //#610 + $k[$j++] = false; //#610 + return true; //#610 + } //#610 + var _4d = $k[--$j]; //#612 + var _4f = ~~$z($geti(_4d, 0, 1)); //#612 + $k[$j++] = _4d; //#614 + if ((_4f > 4) && (_4f != 9)) { //#614 + $j -= 2; //#613 + $k[$j++] = 'bwipp.GS1couponBad2ndPurchaseRequirementCode'; //#613 + $k[$j++] = "Coupon 2nd Purchase Requirement Code must be 0-4 or 9"; //#613 + $k[$j++] = false; //#613 + return true; //#613 + } //#613 + var _4g = $k[--$j]; //#615 + var _4h = $geti(_4g, 1, _4g.length - 1); //#615 + $k[$j++] = _4h; //#620 + if (_4h.length < 3) { //#620 + $j -= 2; //#619 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseFamilyCode'; //#619 + $k[$j++] = "Coupon too short: 2nd Purchase Family Code truncated"; //#619 + $k[$j++] = false; //#619 + return true; //#619 + } //#619 + var _4i = $k[--$j]; //#621 + var _4j = $geti(_4i, 3, _4i.length - 3); //#621 + $k[$j++] = _4j; //#626 + if (_4j.length < 1) { //#626 + $j -= 2; //#625 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseGCPVLI'; //#625 + $k[$j++] = "Coupon too short: Missing 2nd Purchase GCP VLI"; //#625 + $k[$j++] = false; //#625 + return true; //#625 + } //#625 + var _4k = $k[--$j]; //#627 + var _4m = ~~$z($geti(_4k, 0, 1)); //#627 + $k[$j++] = _4k; //#629 + $k[$j++] = _4m; //#629 + if ((_4m > 6) && (_4m != 9)) { //#629 + $j -= 2; //#628 + $k[$j++] = 'bwipp.GS1couponBad2ndPurchaseGCPVLI'; //#628 + $k[$j++] = "Coupon 2nd Purchase GCP length indicator must be 0-6 or 9"; //#628 + $k[$j++] = false; //#628 + return true; //#628 + } //#628 + var _4n = $k[--$j]; //#630 + $k[$j++] = _4n; //#630 + if (_4n != 9) { //#630 + var _4o = $k[--$j]; //#630 + $k[$j++] = $f(_4o + 6); //#630 + } else { //#630 + $j--; //#630 + $k[$j++] = 0; //#630 + } //#630 + var _4p = $k[--$j]; //#630 + var _4q = $k[--$j]; //#631 + $k[$j++] = _4q; //#633 + $k[$j++] = $f(_4p + 1); //#633 + if ($f(_4p + 1) > _4q.length) { //#633 + $j -= 3; //#632 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseGCP'; //#632 + $k[$j++] = "Coupon too short: 2nd Purchase GCP truncated"; //#632 + $k[$j++] = false; //#632 + return true; //#632 + } //#632 + var _4r = $k[--$j]; //#634 + var _4s = $k[--$j]; //#634 + $k[$j++] = $geti(_4s, _4r, $f(_4s.length - _4r)); //#634 + } //#634 + } //#634 + var _4u = $k[--$j]; //#639 + $k[$j++] = _4u; //#683 + if (_4u.length >= 1) { //#683 + var _4v = $k[--$j]; //#639 + $k[$j++] = _4v; //#683 + if ((~~$z($geti(_4v, 0, 1))) == 2) { //#683 + var _4x = $k[--$j]; //#640 + var _4y = $geti(_4x, 1, _4x.length - 1); //#640 + $k[$j++] = _4y; //#645 + if (_4y.length < 1) { //#645 + $j -= 2; //#644 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseRequirementVLI'; //#644 + $k[$j++] = "Coupon too short: Missing 3rd Purchase Requirement VLI"; //#644 + $k[$j++] = false; //#644 + return true; //#644 + } //#644 + var _4z = $k[--$j]; //#646 + var _51 = ~~$z($geti(_4z, 0, 1)); //#646 + $k[$j++] = _4z; //#648 + $k[$j++] = _51; //#648 + if ((_51 < 1) || (_51 > 5)) { //#648 + $j -= 2; //#647 + $k[$j++] = 'bwipp.GS1couponBad3rdPurchaseRequirementVLI'; //#647 + $k[$j++] = "Coupon 3rd Purchase Requirement length indicator must be 1-5"; //#647 + $k[$j++] = false; //#647 + return true; //#647 + } //#647 + var _52 = $k[--$j]; //#649 + var _53 = $k[--$j]; //#650 + $k[$j++] = _53; //#652 + $k[$j++] = $f(_52 + 1); //#652 + if ($f(_52 + 1) > _53.length) { //#652 + $j -= 3; //#651 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseRequirement'; //#651 + $k[$j++] = "Coupon too short: 3rd Purchase Requirement truncated"; //#651 + $k[$j++] = false; //#651 + return true; //#651 + } //#651 + var _54 = $k[--$j]; //#653 + var _55 = $k[--$j]; //#653 + var _56 = $geti(_55, _54, $f(_55.length - _54)); //#653 + $k[$j++] = _56; //#658 + if (_56.length < 1) { //#658 + $j -= 2; //#657 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseRequirementCode'; //#657 + $k[$j++] = "Coupon too short: Missing 3rd Purchase Requirement Code"; //#657 + $k[$j++] = false; //#657 + return true; //#657 + } //#657 + var _57 = $k[--$j]; //#659 + var _59 = ~~$z($geti(_57, 0, 1)); //#659 + $k[$j++] = _57; //#661 + if ((_59 > 4) && (_59 != 9)) { //#661 + $j -= 2; //#660 + $k[$j++] = 'bwipp.GS1couponBad3rdPurchaseRequirementCode'; //#660 + $k[$j++] = "Coupon 3rd Purchase Requirement Code must be 0-4 or 9"; //#660 + $k[$j++] = false; //#660 + return true; //#660 + } //#660 + var _5A = $k[--$j]; //#662 + var _5B = $geti(_5A, 1, _5A.length - 1); //#662 + $k[$j++] = _5B; //#667 + if (_5B.length < 3) { //#667 + $j -= 2; //#666 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseFamilyCode'; //#666 + $k[$j++] = "Coupon too short: 3rd Purchase Family Code truncated"; //#666 + $k[$j++] = false; //#666 + return true; //#666 + } //#666 + var _5C = $k[--$j]; //#668 + var _5D = $geti(_5C, 3, _5C.length - 3); //#668 + $k[$j++] = _5D; //#673 + if (_5D.length < 1) { //#673 + $j -= 2; //#672 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseGCPVLI'; //#672 + $k[$j++] = "Coupon too short: Missing 3rd Purchase GCP VLI"; //#672 + $k[$j++] = false; //#672 + return true; //#672 + } //#672 + var _5E = $k[--$j]; //#674 + var _5G = ~~$z($geti(_5E, 0, 1)); //#674 + $k[$j++] = _5E; //#676 + $k[$j++] = _5G; //#676 + if ((_5G > 6) && (_5G != 9)) { //#676 + $j -= 2; //#675 + $k[$j++] = 'bwipp.GS1couponBad3rdPurchaseGCPVLI'; //#675 + $k[$j++] = "Coupon 3rd Purchase GCP length indicator must be 0-6 or 9"; //#675 + $k[$j++] = false; //#675 + return true; //#675 + } //#675 + var _5H = $k[--$j]; //#677 + $k[$j++] = _5H; //#677 + if (_5H != 9) { //#677 + var _5I = $k[--$j]; //#677 + $k[$j++] = $f(_5I + 6); //#677 + } else { //#677 + $j--; //#677 + $k[$j++] = 0; //#677 + } //#677 + var _5J = $k[--$j]; //#677 + var _5K = $k[--$j]; //#678 + $k[$j++] = _5K; //#680 + $k[$j++] = $f(_5J + 1); //#680 + if ($f(_5J + 1) > _5K.length) { //#680 + $j -= 3; //#679 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseGCP'; //#679 + $k[$j++] = "Coupon too short: 3rd Purchase GCP truncated"; //#679 + $k[$j++] = false; //#679 + return true; //#679 + } //#679 + var _5L = $k[--$j]; //#681 + var _5M = $k[--$j]; //#681 + $k[$j++] = $geti(_5M, _5L, $f(_5M.length - _5L)); //#681 + } //#681 + } //#681 + $1.couponexpire = -1; //#686 + var _5O = $k[--$j]; //#687 + $k[$j++] = _5O; //#705 + if (_5O.length >= 1) { //#705 + var _5P = $k[--$j]; //#687 + $k[$j++] = _5P; //#705 + if ((~~$z($geti(_5P, 0, 1))) == 3) { //#705 + var _5R = $k[--$j]; //#688 + var _5S = $geti(_5R, 1, _5R.length - 1); //#688 + $k[$j++] = _5S; //#693 + if (_5S.length < 6) { //#693 + $j -= 2; //#692 + $k[$j++] = 'bwipp.GS1couponTooShortExpirationDate'; //#692 + $k[$j++] = "Coupon too short: Expiration date"; //#692 + $k[$j++] = false; //#692 + return true; //#692 + } //#692 + var _5T = $k[--$j]; //#694 + var _5V = ~~$z($geti(_5T, 2, 2)); //#694 + $k[$j++] = _5T; //#694 + if ((_5V < 1) || (_5V > 12)) { //#694 + $j -= 2; //#694 + $k[$j++] = 'bwipp.GS1couponExpirationDateBadMonth'; //#694 + $k[$j++] = "Invalid month in expiration date"; //#694 + $k[$j++] = false; //#694 + return true; //#694 + } //#694 + var _5W = $k[--$j]; //#695 + var _5Y = ~~$z($geti(_5W, 0, 2)); //#695 + var _5Z = _5Y - 21; //#696 + $k[$j++] = _5W; //#696 + $k[$j++] = _5Y; //#696 + $k[$j++] = _5Z; //#696 + if (_5Z >= 51) { //#696 + $j--; //#696 + var _5a = $k[--$j]; //#696 + $k[$j++] = $f(_5a + 1900); //#696 + } else { //#696 + if ($k[--$j] <= -50) { //#696 + var _5c = $k[--$j]; //#696 + $k[$j++] = $f(_5c + 2100); //#696 + } else { //#696 + var _5d = $k[--$j]; //#696 + $k[$j++] = $f(_5d + 2000); //#696 + } //#696 + } //#696 + var _5e = $k[--$j]; //#697 + $k[$j++] = ((_5e % 400) == 0) || (((_5e % 4) == 0) && ((_5e % 100) != 0)); //#698 + $k[$j++] = Infinity; //#698 + var _5f = $k[--$j]; //#698 + var _5h = $k[--$j] ? 29 : 28; //#698 + $k[$j++] = _5f; //#698 + $k[$j++] = 31; //#698 + $k[$j++] = _5h; //#698 + $k[$j++] = 31; //#698 + $k[$j++] = 30; //#698 + $k[$j++] = 31; //#698 + $k[$j++] = 30; //#698 + $k[$j++] = 31; //#698 + $k[$j++] = 31; //#698 + $k[$j++] = 30; //#698 + $k[$j++] = 31; //#698 + $k[$j++] = 30; //#698 + $k[$j++] = 31; //#698 + var _5i = $a(); //#698 + var _5j = $k[--$j]; //#699 + var _5n = ~~$z($geti(_5j, 4, 2)); //#700 + $k[$j++] = _5j; //#701 + if (($get(_5i, (~~$z($geti(_5j, 2, 2))) - 1) < _5n) || (_5n < 1)) { //#701 + $j -= 2; //#701 + $k[$j++] = 'bwipp.GS1couponExpirationDateBadDay'; //#701 + $k[$j++] = "Invalid day of month in expiration date"; //#701 + $k[$j++] = false; //#701 + return true; //#701 + } //#701 + var _5o = $k[--$j]; //#702 + $1.couponexpire = ~~$z($geti(_5o, 0, 6)); //#702 + $k[$j++] = $geti(_5o, 6, _5o.length - 6); //#703 + } //#703 + } //#703 + var _5r = $k[--$j]; //#708 + $k[$j++] = _5r; //#729 + if (_5r.length >= 1) { //#729 + var _5s = $k[--$j]; //#708 + $k[$j++] = _5s; //#729 + if ((~~$z($geti(_5s, 0, 1))) == 4) { //#729 + var _5u = $k[--$j]; //#709 + var _5v = $geti(_5u, 1, _5u.length - 1); //#709 + $k[$j++] = _5v; //#714 + if (_5v.length < 6) { //#714 + $j -= 2; //#713 + $k[$j++] = 'bwipp.GS1couponTooShortStartDate'; //#713 + $k[$j++] = "Coupon too short: Start date"; //#713 + $k[$j++] = false; //#713 + return true; //#713 + } //#713 + var _5w = $k[--$j]; //#715 + var _5y = ~~$z($geti(_5w, 2, 2)); //#715 + $k[$j++] = _5w; //#715 + if ((_5y < 1) || (_5y > 12)) { //#715 + $j -= 2; //#715 + $k[$j++] = 'bwipp.GS1couponStartDateBadMonth'; //#715 + $k[$j++] = "Invalid month in start date"; //#715 + $k[$j++] = false; //#715 + return true; //#715 + } //#715 + var _5z = $k[--$j]; //#716 + var _61 = ~~$z($geti(_5z, 0, 2)); //#716 + var _62 = _61 - 21; //#717 + $k[$j++] = _5z; //#717 + $k[$j++] = _61; //#717 + $k[$j++] = _62; //#717 + if (_62 >= 51) { //#717 + $j--; //#717 + var _63 = $k[--$j]; //#717 + $k[$j++] = $f(_63 + 1900); //#717 + } else { //#717 + if ($k[--$j] <= -50) { //#717 + var _65 = $k[--$j]; //#717 + $k[$j++] = $f(_65 + 2100); //#717 + } else { //#717 + var _66 = $k[--$j]; //#717 + $k[$j++] = $f(_66 + 2000); //#717 + } //#717 + } //#717 + var _67 = $k[--$j]; //#718 + $k[$j++] = ((_67 % 400) == 0) || (((_67 % 4) == 0) && ((_67 % 100) != 0)); //#719 + $k[$j++] = Infinity; //#719 + var _68 = $k[--$j]; //#719 + var _6A = $k[--$j] ? 29 : 28; //#719 + $k[$j++] = _68; //#719 + $k[$j++] = 31; //#719 + $k[$j++] = _6A; //#719 + $k[$j++] = 31; //#719 + $k[$j++] = 30; //#719 + $k[$j++] = 31; //#719 + $k[$j++] = 30; //#719 + $k[$j++] = 31; //#719 + $k[$j++] = 31; //#719 + $k[$j++] = 30; //#719 + $k[$j++] = 31; //#719 + $k[$j++] = 30; //#719 + $k[$j++] = 31; //#719 + var _6B = $a(); //#719 + var _6C = $k[--$j]; //#720 + var _6G = ~~$z($geti(_6C, 4, 2)); //#721 + $k[$j++] = _6C; //#722 + if (($get(_6B, (~~$z($geti(_6C, 2, 2))) - 1) < _6G) || (_6G < 1)) { //#722 + $j -= 2; //#722 + $k[$j++] = 'bwipp.GS1couponStartDateBadDay'; //#722 + $k[$j++] = "Invalid day of month in start date"; //#722 + $k[$j++] = false; //#722 + return true; //#722 + } //#722 + var _6H = $k[--$j]; //#723 + $1.couponstart = ~~$z($geti(_6H, 0, 6)); //#723 + $k[$j++] = _6H; //#726 + if (($1.couponexpire != -1) && ($1.couponexpire < $1.couponstart)) { //#726 + $j -= 2; //#725 + $k[$j++] = 'bwipp.GS1couponExpireDateBeforeStartDate'; //#725 + $k[$j++] = "Coupon expires before it starts"; //#725 + $k[$j++] = false; //#725 + return true; //#725 + } //#725 + var _6M = $k[--$j]; //#727 + $k[$j++] = $geti(_6M, 6, _6M.length - 6); //#727 + } //#727 + } //#727 + var _6O = $k[--$j]; //#732 + $k[$j++] = _6O; //#745 + if (_6O.length >= 1) { //#745 + var _6P = $k[--$j]; //#732 + $k[$j++] = _6P; //#745 + if ((~~$z($geti(_6P, 0, 1))) == 5) { //#745 + var _6R = $k[--$j]; //#733 + var _6S = $geti(_6R, 1, _6R.length - 1); //#733 + $k[$j++] = _6S; //#738 + if (_6S.length < 1) { //#738 + $j -= 2; //#737 + $k[$j++] = 'bwipp.GS1couponTooShortSerialNumberVLI'; //#737 + $k[$j++] = "Coupon too short: Missing Serial Number VLI"; //#737 + $k[$j++] = false; //#737 + return true; //#737 + } //#737 + var _6T = $k[--$j]; //#739 + var _6U = $geti(_6T, 0, 1); //#739 + $k[$j++] = _6T; //#742 + $k[$j++] = ((~~$z(_6U)) + 6) + 1; //#742 + if ((((~~$z(_6U)) + 6) + 1) > _6T.length) { //#742 + $j -= 3; //#741 + $k[$j++] = 'bwipp.GS1couponTooShortSerialNumber'; //#741 + $k[$j++] = "Coupon too short: Serial Number truncated"; //#741 + $k[$j++] = false; //#741 + return true; //#741 + } //#741 + var _6V = $k[--$j]; //#743 + var _6W = $k[--$j]; //#743 + $k[$j++] = $geti(_6W, _6V, $f(_6W.length - _6V)); //#743 + } //#743 + } //#743 + var _6Y = $k[--$j]; //#748 + $k[$j++] = _6Y; //#764 + if (_6Y.length >= 1) { //#764 + var _6Z = $k[--$j]; //#748 + $k[$j++] = _6Z; //#764 + if ((~~$z($geti(_6Z, 0, 1))) == 6) { //#764 + var _6b = $k[--$j]; //#749 + var _6c = $geti(_6b, 1, _6b.length - 1); //#749 + $k[$j++] = _6c; //#754 + if (_6c.length < 1) { //#754 + $j -= 2; //#753 + $k[$j++] = 'bwipp.GS1couponTooShortRetailerGCPGLNVLI'; //#753 + $k[$j++] = "Coupon too short: Missing Retailer GCP/GLN VLI"; //#753 + $k[$j++] = false; //#753 + return true; //#753 + } //#753 + var _6d = $k[--$j]; //#755 + var _6f = ~~$z($geti(_6d, 0, 1)); //#755 + $k[$j++] = _6d; //#757 + $k[$j++] = _6f; //#757 + if ((_6f < 1) || (_6f > 7)) { //#757 + $j -= 2; //#756 + $k[$j++] = 'bwipp.GS1couponBadRetailerGCPGLNVLI'; //#756 + $k[$j++] = "Coupon Retailer GCP/GLN length indicator must be 1-7"; //#756 + $k[$j++] = false; //#756 + return true; //#756 + } //#756 + var _6g = $k[--$j]; //#758 + var _6h = $k[--$j]; //#759 + $k[$j++] = _6h; //#761 + $k[$j++] = $f($f(_6g + 6) + 1); //#761 + if (($f($f(_6g + 6) + 1)) > _6h.length) { //#761 + $j -= 3; //#760 + $k[$j++] = 'bwipp.GS1couponTooShortRetailerGCPGLN'; //#760 + $k[$j++] = "Coupon too short: Retailer GCP/GLN truncated"; //#760 + $k[$j++] = false; //#760 + return true; //#760 + } //#760 + var _6i = $k[--$j]; //#762 + var _6j = $k[--$j]; //#762 + $k[$j++] = $geti(_6j, _6i, $f(_6j.length - _6i)); //#762 + } //#762 + } //#762 + var _6l = $k[--$j]; //#767 + $k[$j++] = _6l; //#803 + if (_6l.length >= 1) { //#803 + var _6m = $k[--$j]; //#767 + $k[$j++] = _6m; //#803 + if ((~~$z($geti(_6m, 0, 1))) == 9) { //#803 + var _6o = $k[--$j]; //#768 + var _6p = $geti(_6o, 1, _6o.length - 1); //#768 + $k[$j++] = _6p; //#773 + if (_6p.length < 1) { //#773 + $j -= 2; //#772 + $k[$j++] = 'bwipp.GS1couponTooShortSaveValueCode'; //#772 + $k[$j++] = "Coupon too short: Missing Save Value Code"; //#772 + $k[$j++] = false; //#772 + return true; //#772 + } //#772 + var _6q = $k[--$j]; //#774 + var _6s = ~~$z($geti(_6q, 0, 1)); //#774 + $k[$j++] = _6q; //#776 + if ((_6s > 6) || ((_6s == 3) || (_6s == 4))) { //#776 + $j -= 2; //#775 + $k[$j++] = 'bwipp.GS1couponBadSaveValueCode'; //#775 + $k[$j++] = "Coupon Save Value Code must be 0,1,2,5 or 6"; //#775 + $k[$j++] = false; //#775 + return true; //#775 + } //#775 + var _6t = $k[--$j]; //#777 + var _6u = $geti(_6t, 1, _6t.length - 1); //#777 + $k[$j++] = _6u; //#782 + if (_6u.length < 1) { //#782 + $j -= 2; //#781 + $k[$j++] = 'bwipp.GS1couponTooShortSaveValueAppliesToItem'; //#781 + $k[$j++] = "Coupon too short: Missing Save Value Applies to Item"; //#781 + $k[$j++] = false; //#781 + return true; //#781 + } //#781 + var _6v = $k[--$j]; //#783 + $k[$j++] = _6v; //#785 + if ((~~$z($geti(_6v, 0, 1))) > 2) { //#785 + $j -= 2; //#784 + $k[$j++] = 'bwipp.GS1couponBadSaveValueAppliesToItem'; //#784 + $k[$j++] = "Coupon Save Value Applies to Item must be 0-2"; //#784 + $k[$j++] = false; //#784 + return true; //#784 + } //#784 + var _6x = $k[--$j]; //#786 + var _6y = $geti(_6x, 1, _6x.length - 1); //#786 + $k[$j++] = _6y; //#791 + if (_6y.length < 1) { //#791 + $j -= 2; //#790 + $k[$j++] = 'bwipp.GS1couponTooShortStoreCouponFlag'; //#790 + $k[$j++] = "Coupon too short: Missing Store Coupon Flag"; //#790 + $k[$j++] = false; //#790 + return true; //#790 + } //#790 + var _6z = $k[--$j]; //#792 + var _70 = $geti(_6z, 1, _6z.length - 1); //#792 + $k[$j++] = _70; //#797 + if (_70.length < 1) { //#797 + $j -= 2; //#796 + $k[$j++] = 'bwipp.GS1couponTooShortDontMultiplyFlag'; //#796 + $k[$j++] = "Coupon too short: Missing Don't Multiply Flag"; //#796 + $k[$j++] = false; //#796 + return true; //#796 + } //#796 + var _71 = $k[--$j]; //#798 + $k[$j++] = _71; //#800 + if ((~~$z($geti(_71, 0, 1))) > 1) { //#800 + $j -= 2; //#799 + $k[$j++] = 'bwipp.GS1couponBadDontMultiplyFlag'; //#799 + $k[$j++] = "Don't Multiply Flag must be 0 or 1"; //#799 + $k[$j++] = false; //#799 + return true; //#799 + } //#799 + var _73 = $k[--$j]; //#801 + $k[$j++] = $geti(_73, 1, _73.length - 1); //#801 + } //#801 + } //#801 + var _75 = $k[--$j]; //#805 + $k[$j++] = _75; //#807 + if (_75.length != 0) { //#807 + $j -= 2; //#806 + $k[$j++] = 'bwipp.GS1couponUnrecognisedOptionalField'; //#806 + $k[$j++] = "Coupon fields must be 1,2,3,4,5,6 or 9, increasing order"; //#806 + $k[$j++] = false; //#806 + return true; //#806 + } //#806 + $j--; //#808 + }; //#809 $1.lintcouponposoffer = function() { - var _76 = $k[--$j]; - $k[$j++] = _76; - $k[$j++] = true; - $forall(_76, function() { - var _77 = $k[--$j]; - if (_77 < 48 || _77 > 57) { - $j--; - $k[$j++] = false; - return true; - } - }); - if ($nt($k[--$j])) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponNotNumeric"; - $k[$j++] = "Coupon not numeric"; - $k[$j++] = false; - return true; - } - var _79 = $k[--$j]; - $k[$j++] = _79; - if (_79.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortFormatCode"; - $k[$j++] = "Coupon too short: Missing Format Code"; - $k[$j++] = false; - return true; - } - var _7A = $k[--$j]; - var _7B = $geti(_7A, 0, 1); - $k[$j++] = _7A; - if ($ne(_7B, "0") && $ne(_7B, "1")) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBadFormatCode"; - $k[$j++] = "Coupon format must be 0 or 1"; - $k[$j++] = false; - return true; - } - var _7C = $k[--$j]; - var _7D = $geti(_7C, 1, _7C.length - 1); - $k[$j++] = _7D; - if (_7D.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortFunderVLI"; - $k[$j++] = "Coupon too short: Missing Funder VLI"; - $k[$j++] = false; - return true; - } - var _7E = $k[--$j]; - var _7G = ~~$z($geti(_7E, 0, 1)); - $k[$j++] = _7E; - $k[$j++] = _7G; - if (_7G > 6) { - $j -= 3; - $k[$j++] = "bwipp.GS1couponBadFunderVLI"; - $k[$j++] = "Coupon Funder length indicator must be 0-6"; - $k[$j++] = false; - return true; - } - var _7H = $k[--$j]; - var _7I = $k[--$j]; - $k[$j++] = _7I; - $k[$j++] = $f($f(_7H + 6) + 1); - if ($f($f(_7H + 6) + 1) > _7I.length) { - $j -= 3; - $k[$j++] = "bwipp.GS1couponTooShortFunder"; - $k[$j++] = "Coupon too short: Truncated Funder ID"; - $k[$j++] = false; - return true; - } - var _7J = $k[--$j]; - var _7K = $k[--$j]; - var _7L = $geti(_7K, _7J, $f(_7K.length - _7J)); - $k[$j++] = _7L; - if (_7L.length < 6) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortOfferCode"; - $k[$j++] = "Coupon too short: Truncated Offer Code"; - $k[$j++] = false; - return true; - } - var _7M = $k[--$j]; - var _7N = $geti(_7M, 6, _7M.length - 6); - $k[$j++] = _7N; - if (_7N.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortSnVLI"; - $k[$j++] = "Coupon too short: Missing SN VLI"; - $k[$j++] = false; - return true; - } - var _7O = $k[--$j]; - var _7P = $geti(_7O, 0, 1); - $k[$j++] = _7O; - $k[$j++] = ~~$z(_7P) + 6 + 1; - if (~~$z(_7P) + 6 + 1 > _7O.length) { - $j -= 3; - $k[$j++] = "bwipp.GS1couponTooShortSn"; - $k[$j++] = "Coupon too short: Truncated SN"; - $k[$j++] = false; - return true; - } - var _7Q = $k[--$j]; - var _7R = $k[--$j]; - var _7S = $geti(_7R, _7Q, $f(_7R.length - _7Q)); - $k[$j++] = _7S; - if (_7S.length != 0) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooLong"; - $k[$j++] = "Coupon too long"; - $k[$j++] = false; - return true; - } - $j--; - }; - var _7U = new Map([ [ "cset", "N" ], [ "min", 18 ], [ "max", 18 ], [ "check", $a([ "lintcsum", "lintkey" ]) ] ]); - var _7X = new Map([ [ "cset", "N" ], [ "min", 14 ], [ "max", 14 ], [ "check", $a([ "lintcsum", "lintkey" ]) ] ]); - var _7Y = $a([ _7X ]); - var _7a = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 20 ], [ "check", $a([]) ] ]); - var _7d = new Map([ [ "cset", "N" ], [ "min", 6 ], [ "max", 6 ], [ "check", $a([ "lintyymmd0" ]) ] ]); - var _7e = $a([ _7d ]); - var _7g = new Map([ [ "cset", "N" ], [ "min", 2 ], [ "max", 2 ], [ "check", $a([]) ] ]); - var _7j = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 20 ], [ "check", $a([]) ] ]); - var _7k = $a([ _7j ]); - var _7m = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 28 ], [ "check", $a([]) ] ]); - var _7p = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 30 ], [ "check", $a([]) ] ]); - var _7q = $a([ _7p ]); - var _7s = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 6 ], [ "check", $a([]) ] ]); - var _7v = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 20 ], [ "check", $a([]) ] ]); - var _7y = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 30 ], [ "check", $a([]) ] ]); - var _7z = $a([ _7y ]); - var _81 = new Map([ [ "cset", "N" ], [ "min", 13 ], [ "max", 13 ], [ "check", $a([ "lintcsum", "lintkey" ]) ] ]); - var _83 = new Map([ [ "cset", "X" ], [ "min", 0 ], [ "max", 17 ], [ "check", $a([]) ] ]); - var _86 = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 20 ], [ "check", $a([]) ] ]); - var _89 = new Map([ [ "cset", "N" ], [ "min", 13 ], [ "max", 13 ], [ "check", $a([ "lintcsum", "lintkey" ]) ] ]); - var _8B = new Map([ [ "cset", "N" ], [ "min", 0 ], [ "max", 12 ], [ "check", $a([]) ] ]); - var _8E = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 8 ], [ "check", $a([]) ] ]); - var _8H = new Map([ [ "cset", "N" ], [ "min", 6 ], [ "max", 6 ], [ "check", $a([]) ] ]); - var _8I = $a([ _8H ]); - var _8K = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 8 ], [ "check", $a([]) ] ]); - var _8N = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 15 ], [ "check", $a([]) ] ]); - var _8O = $a([ _8N ]); - var _8Q = new Map([ [ "cset", "N" ], [ "min", 3 ], [ "max", 3 ], [ "check", $a([ "lintiso4217" ]) ] ]); - var _8S = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 15 ], [ "check", $a([]) ] ]); - var _8T = $a([ _8Q, _8S ]); - var _8V = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 15 ], [ "check", $a([]) ] ]); - var _8W = $a([ _8V ]); - var _8Y = new Map([ [ "cset", "N" ], [ "min", 3 ], [ "max", 3 ], [ "check", $a([ "lintiso4217" ]) ] ]); - var _8a = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 15 ], [ "check", $a([]) ] ]); - var _8b = $a([ _8Y, _8a ]); - var _8d = new Map([ [ "cset", "N" ], [ "min", 4 ], [ "max", 4 ], [ "check", $a([]) ] ]); - var _8e = $a([ _8d ]); - var _8g = new Map([ [ "cset", "N" ], [ "min", 6 ], [ "max", 6 ], [ "check", $a([]) ] ]); - var _8h = $a([ _8g ]); - var _8j = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 30 ], [ "check", $a([]) ] ]); - var _8m = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 30 ], [ "check", $a([ "lintkey" ]) ] ]); - var _8p = new Map([ [ "cset", "N" ], [ "min", 17 ], [ "max", 17 ], [ "check", $a([ "lintcsum", "lintkey" ]) ] ]); - var _8s = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 30 ], [ "check", $a([]) ] ]); - var _8v = new Map([ [ "cset", "N" ], [ "min", 13 ], [ "max", 13 ], [ "check", $a([ "lintcsum", "lintkey" ]) ] ]); - var _8w = $a([ _8v ]); - var _8y = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 20 ], [ "check", $a([]) ] ]); - var _91 = new Map([ [ "cset", "N" ], [ "min", 3 ], [ "max", 3 ], [ "check", $a([ "lintiso3166" ]) ] ]); - var _93 = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 9 ], [ "check", $a([]) ] ]); - var _96 = new Map([ [ "cset", "N" ], [ "min", 3 ], [ "max", 3 ], [ "check", $a([ "lintiso3166" ]) ] ]); - var _99 = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 15 ], [ "check", $a([ "lintiso3166list" ]) ] ]); - var _9C = new Map([ [ "cset", "N" ], [ "min", 3 ], [ "max", 3 ], [ "check", $a([ "lintiso3166" ]) ] ]); - var _9F = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 15 ], [ "check", $a([ "lintiso3166list" ]) ] ]); - var _9I = new Map([ [ "cset", "N" ], [ "min", 3 ], [ "max", 3 ], [ "check", $a([ "lintiso3166" ]) ] ]); - var _9L = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 3 ], [ "check", $a([]) ] ]); - var _9O = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 35 ], [ "check", $a([ "lintpcenc" ]) ] ]); - var _9P = $a([ _9O ]); - var _9R = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 70 ], [ "check", $a([ "lintpcenc" ]) ] ]); - var _9S = $a([ _9R ]); - var _9U = new Map([ [ "cset", "X" ], [ "min", 2 ], [ "max", 2 ], [ "check", $a([ "lintiso3166alpha2" ]) ] ]); - var _9X = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 30 ], [ "check", $a([]) ] ]); - var _9a = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 35 ], [ "check", $a([ "lintpcenc" ]) ] ]); - var _9b = $a([ _9a ]); - var _9d = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 70 ], [ "check", $a([ "lintpcenc" ]) ] ]); - var _9e = $a([ _9d ]); - var _9g = new Map([ [ "cset", "X" ], [ "min", 2 ], [ "max", 2 ], [ "check", $a([ "lintiso3166alpha2" ]) ] ]); - var _9j = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 20 ], [ "check", $a([]) ] ]); - var _9m = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 30 ], [ "check", $a([]) ] ]); - var _9p = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 35 ], [ "check", $a([ "lintpcenc" ]) ] ]); - var _9s = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 1 ], [ "check", $a([ "lintyesno" ]) ] ]); - var _9t = $a([ _9s ]); - var _9v = new Map([ [ "cset", "N" ], [ "min", 6 ], [ "max", 6 ], [ "check", $a([ "lintyymmd0" ]) ] ]); - var _9x = new Map([ [ "cset", "N" ], [ "min", 4 ], [ "max", 4 ], [ "check", $a([ "linthhmm" ]) ] ]); - var _9y = $a([ _9v, _9x ]); - var _A0 = new Map([ [ "cset", "N" ], [ "min", 6 ], [ "max", 6 ], [ "check", $a([ "lintyymmdd" ]) ] ]); - var _A3 = new Map([ [ "cset", "N" ], [ "min", 13 ], [ "max", 13 ], [ "check", $a([]) ] ]); - var _A6 = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 30 ], [ "check", $a([]) ] ]); - var _A9 = new Map([ [ "cset", "N" ], [ "min", 6 ], [ "max", 6 ], [ "check", $a([ "lintyymmdd" ]) ] ]); - var _AB = new Map([ [ "cset", "N" ], [ "min", 4 ], [ "max", 4 ], [ "check", $a([ "linthhmm" ]) ] ]); - var _AE = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 4 ], [ "check", $a([]) ] ]); - var _AH = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 12 ], [ "check", $a([]) ] ]); - var _AK = new Map([ [ "cset", "N" ], [ "min", 6 ], [ "max", 6 ], [ "check", $a([ "lintyymmdd" ]) ] ]); - var _AN = new Map([ [ "cset", "N" ], [ "min", 6 ], [ "max", 6 ], [ "check", $a([ "lintyymmdd" ]) ] ]); - var _AP = new Map([ [ "cset", "N" ], [ "min", 0 ], [ "max", 6 ], [ "check", $a([ "lintyymmdd" ]) ] ]); - var _AS = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 3 ], [ "check", $a([]) ] ]); - var _AV = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 10 ], [ "check", $a([]) ] ]); - var _AY = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 2 ], [ "check", $a([]) ] ]); - var _Ab = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 20 ], [ "check", $a([]) ] ]); - var _Ac = $a([ _Ab ]); - var _Ae = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 30 ], [ "check", $a([ "lintkey" ]) ] ]); - var _Ah = new Map([ [ "cset", "N" ], [ "min", 3 ], [ "max", 3 ], [ "check", $a([ "lintiso3166999" ]) ] ]); - var _Aj = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 27 ], [ "check", $a([]) ] ]); - var _Ak = $a([ _Ah, _Aj ]); - var _Am = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 1 ], [ "check", $a([]) ] ]); - var _Ao = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 1 ], [ "check", $a([]) ] ]); - var _Aq = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 1 ], [ "check", $a([]) ] ]); - var _As = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 1 ], [ "check", $a([ "lintimporteridx" ]) ] ]); - var _Av = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 20 ], [ "check", $a([]) ] ]); - var _Aw = $a([ _Av ]); - var _Ay = new Map([ [ "cset", "X" ], [ "min", 2 ], [ "max", 2 ], [ "check", $a([]) ] ]); - var _B0 = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 28 ], [ "check", $a([]) ] ]); - var _B1 = $a([ _Ay, _B0 ]); - var _B3 = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 20 ], [ "check", $a([]) ] ]); - var _B6 = new Map([ [ "cset", "N" ], [ "min", 4 ], [ "max", 4 ], [ "check", $a([ "lintnonzero" ]) ] ]); - var _B8 = new Map([ [ "cset", "N" ], [ "min", 5 ], [ "max", 5 ], [ "check", $a([ "lintnonzero" ]) ] ]); - var _BA = new Map([ [ "cset", "N" ], [ "min", 3 ], [ "max", 3 ], [ "check", $a([ "lintnonzero" ]) ] ]); - var _BC = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 1 ], [ "check", $a([ "lintwinding" ]) ] ]); - var _BE = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 1 ], [ "check", $a([]) ] ]); - var _BH = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 20 ], [ "check", $a([]) ] ]); - var _BK = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 1 ], [ "check", $a([ "lintzero" ]) ] ]); - var _BM = new Map([ [ "cset", "N" ], [ "min", 13 ], [ "max", 13 ], [ "check", $a([ "lintcsum", "lintkey" ]) ] ]); - var _BO = new Map([ [ "cset", "X" ], [ "min", 0 ], [ "max", 16 ], [ "check", $a([]) ] ]); - var _BR = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 30 ], [ "check", $a([ "lintkey" ]) ] ]); - var _BU = new Map([ [ "cset", "N" ], [ "min", 6 ], [ "max", 6 ], [ "check", $a([]) ] ]); - var _BX = new Map([ [ "cset", "N" ], [ "min", 14 ], [ "max", 14 ], [ "check", $a([ "lintcsum" ]) ] ]); - var _BZ = new Map([ [ "cset", "N" ], [ "min", 4 ], [ "max", 4 ], [ "check", $a([ "lintpieceoftotal" ]) ] ]); - var _Bc = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 34 ], [ "check", $a([ "lintiban" ]) ] ]); - var _Bf = new Map([ [ "cset", "N" ], [ "min", 8 ], [ "max", 8 ], [ "check", $a([ "lintyymmddhh" ]) ] ]); - var _Bh = new Map([ [ "cset", "N" ], [ "min", 0 ], [ "max", 4 ], [ "check", $a([ "lintmmoptss" ]) ] ]); - var _Bk = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 50 ], [ "check", $a([]) ] ]); - var _Bn = new Map([ [ "cset", "C" ], [ "min", 1 ], [ "max", 30 ], [ "check", $a([ "lintkey" ]) ] ]); - var _Bq = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 12 ], [ "check", $a([ "lintnozeroprefix" ]) ] ]); - var _Bt = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 20 ], [ "check", $a([]) ] ]); - var _Bw = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 25 ], [ "check", $a([ "lintcsumalpha", "lintkey" ]) ] ]); - var _Bz = new Map([ [ "cset", "N" ], [ "min", 18 ], [ "max", 18 ], [ "check", $a([ "lintcsum" ]) ] ]); - var _C0 = $a([ _Bz ]); - var _C2 = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 10 ], [ "check", $a([]) ] ]); - var _C5 = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 25 ], [ "check", $a([]) ] ]); - var _C8 = new Map([ [ "cset", "N" ], [ "min", 14 ], [ "max", 14 ], [ "check", $a([ "lintcsum" ]) ] ]); - var _CA = new Map([ [ "cset", "N" ], [ "min", 4 ], [ "max", 4 ], [ "check", $a([ "lintpieceoftotal" ]) ] ]); - var _CD = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 70 ], [ "check", $a([ "lintcouponcode" ]) ] ]); - var _CG = new Map([ [ "cset", "N" ], [ "min", 4 ], [ "max", 4 ], [ "check", $a([]) ] ]); - var _CJ = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 70 ], [ "check", $a([ "lintcouponposoffer" ]) ] ]); - var _CM = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 70 ], [ "check", $a([]) ] ]); - var _CP = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 30 ], [ "check", $a([]) ] ]); - var _CS = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 90 ], [ "check", $a([]) ] ]); - var _CT = $a([ _CS ]); - var _CU = new Map([ [ "00", $a([ _7U ]) ], [ "01", _7Y ], [ "02", _7Y ], [ "10", $a([ _7a ]) ], [ "11", _7e ], [ "12", _7e ], [ "13", _7e ], [ "14", _7e ], [ "15", _7e ], [ "16", _7e ], [ "17", _7e ], [ "20", $a([ _7g ]) ], [ "21", _7k ], [ "22", _7k ], [ "235", $a([ _7m ]) ], [ "240", _7q ], [ "241", _7q ], [ "242", $a([ _7s ]) ], [ "243", $a([ _7v ]) ], [ "250", _7z ], [ "251", _7z ], [ "253", $a([ _81, _83 ]) ], [ "254", $a([ _86 ]) ], [ "255", $a([ _89, _8B ]) ], [ "30", $a([ _8E ]) ], [ "3100", _8I ], [ "3101", _8I ], [ "3102", _8I ], [ "3103", _8I ], [ "3104", _8I ], [ "3105", _8I ], [ "3110", _8I ], [ "3111", _8I ], [ "3112", _8I ], [ "3113", _8I ], [ "3114", _8I ], [ "3115", _8I ], [ "3120", _8I ], [ "3121", _8I ], [ "3122", _8I ], [ "3123", _8I ], [ "3124", _8I ], [ "3125", _8I ], [ "3130", _8I ], [ "3131", _8I ], [ "3132", _8I ], [ "3133", _8I ], [ "3134", _8I ], [ "3135", _8I ], [ "3140", _8I ], [ "3141", _8I ], [ "3142", _8I ], [ "3143", _8I ], [ "3144", _8I ], [ "3145", _8I ], [ "3150", _8I ], [ "3151", _8I ], [ "3152", _8I ], [ "3153", _8I ], [ "3154", _8I ], [ "3155", _8I ], [ "3160", _8I ], [ "3161", _8I ], [ "3162", _8I ], [ "3163", _8I ], [ "3164", _8I ], [ "3165", _8I ], [ "3200", _8I ], [ "3201", _8I ], [ "3202", _8I ], [ "3203", _8I ], [ "3204", _8I ], [ "3205", _8I ], [ "3210", _8I ], [ "3211", _8I ], [ "3212", _8I ], [ "3213", _8I ], [ "3214", _8I ], [ "3215", _8I ], [ "3220", _8I ], [ "3221", _8I ], [ "3222", _8I ], [ "3223", _8I ], [ "3224", _8I ], [ "3225", _8I ], [ "3230", _8I ], [ "3231", _8I ], [ "3232", _8I ], [ "3233", _8I ], [ "3234", _8I ], [ "3235", _8I ], [ "3240", _8I ], [ "3241", _8I ], [ "3242", _8I ], [ "3243", _8I ], [ "3244", _8I ], [ "3245", _8I ], [ "3250", _8I ], [ "3251", _8I ], [ "3252", _8I ], [ "3253", _8I ], [ "3254", _8I ], [ "3255", _8I ], [ "3260", _8I ], [ "3261", _8I ], [ "3262", _8I ], [ "3263", _8I ], [ "3264", _8I ], [ "3265", _8I ], [ "3270", _8I ], [ "3271", _8I ], [ "3272", _8I ], [ "3273", _8I ], [ "3274", _8I ], [ "3275", _8I ], [ "3280", _8I ], [ "3281", _8I ], [ "3282", _8I ], [ "3283", _8I ], [ "3284", _8I ], [ "3285", _8I ], [ "3290", _8I ], [ "3291", _8I ], [ "3292", _8I ], [ "3293", _8I ], [ "3294", _8I ], [ "3295", _8I ], [ "3300", _8I ], [ "3301", _8I ], [ "3302", _8I ], [ "3303", _8I ], [ "3304", _8I ], [ "3305", _8I ], [ "3310", _8I ], [ "3311", _8I ], [ "3312", _8I ], [ "3313", _8I ], [ "3314", _8I ], [ "3315", _8I ], [ "3320", _8I ], [ "3321", _8I ], [ "3322", _8I ], [ "3323", _8I ], [ "3324", _8I ], [ "3325", _8I ], [ "3330", _8I ], [ "3331", _8I ], [ "3332", _8I ], [ "3333", _8I ], [ "3334", _8I ], [ "3335", _8I ], [ "3340", _8I ], [ "3341", _8I ], [ "3342", _8I ], [ "3343", _8I ], [ "3344", _8I ], [ "3345", _8I ], [ "3350", _8I ], [ "3351", _8I ], [ "3352", _8I ], [ "3353", _8I ], [ "3354", _8I ], [ "3355", _8I ], [ "3360", _8I ], [ "3361", _8I ], [ "3362", _8I ], [ "3363", _8I ], [ "3364", _8I ], [ "3365", _8I ], [ "3370", _8I ], [ "3371", _8I ], [ "3372", _8I ], [ "3373", _8I ], [ "3374", _8I ], [ "3375", _8I ], [ "3400", _8I ], [ "3401", _8I ], [ "3402", _8I ], [ "3403", _8I ], [ "3404", _8I ], [ "3405", _8I ], [ "3410", _8I ], [ "3411", _8I ], [ "3412", _8I ], [ "3413", _8I ], [ "3414", _8I ], [ "3415", _8I ], [ "3420", _8I ], [ "3421", _8I ], [ "3422", _8I ], [ "3423", _8I ], [ "3424", _8I ], [ "3425", _8I ], [ "3430", _8I ], [ "3431", _8I ], [ "3432", _8I ], [ "3433", _8I ], [ "3434", _8I ], [ "3435", _8I ], [ "3440", _8I ], [ "3441", _8I ], [ "3442", _8I ], [ "3443", _8I ], [ "3444", _8I ], [ "3445", _8I ], [ "3450", _8I ], [ "3451", _8I ], [ "3452", _8I ], [ "3453", _8I ], [ "3454", _8I ], [ "3455", _8I ], [ "3460", _8I ], [ "3461", _8I ], [ "3462", _8I ], [ "3463", _8I ], [ "3464", _8I ], [ "3465", _8I ], [ "3470", _8I ], [ "3471", _8I ], [ "3472", _8I ], [ "3473", _8I ], [ "3474", _8I ], [ "3475", _8I ], [ "3480", _8I ], [ "3481", _8I ], [ "3482", _8I ], [ "3483", _8I ], [ "3484", _8I ], [ "3485", _8I ], [ "3490", _8I ], [ "3491", _8I ], [ "3492", _8I ], [ "3493", _8I ], [ "3494", _8I ], [ "3495", _8I ], [ "3500", _8I ], [ "3501", _8I ], [ "3502", _8I ], [ "3503", _8I ], [ "3504", _8I ], [ "3505", _8I ], [ "3510", _8I ], [ "3511", _8I ], [ "3512", _8I ], [ "3513", _8I ], [ "3514", _8I ], [ "3515", _8I ], [ "3520", _8I ], [ "3521", _8I ], [ "3522", _8I ], [ "3523", _8I ], [ "3524", _8I ], [ "3525", _8I ], [ "3530", _8I ], [ "3531", _8I ], [ "3532", _8I ], [ "3533", _8I ], [ "3534", _8I ], [ "3535", _8I ], [ "3540", _8I ], [ "3541", _8I ], [ "3542", _8I ], [ "3543", _8I ], [ "3544", _8I ], [ "3545", _8I ], [ "3550", _8I ], [ "3551", _8I ], [ "3552", _8I ], [ "3553", _8I ], [ "3554", _8I ], [ "3555", _8I ], [ "3560", _8I ], [ "3561", _8I ], [ "3562", _8I ], [ "3563", _8I ], [ "3564", _8I ], [ "3565", _8I ], [ "3570", _8I ], [ "3571", _8I ], [ "3572", _8I ], [ "3573", _8I ], [ "3574", _8I ], [ "3575", _8I ], [ "3600", _8I ], [ "3601", _8I ], [ "3602", _8I ], [ "3603", _8I ], [ "3604", _8I ], [ "3605", _8I ], [ "3610", _8I ], [ "3611", _8I ], [ "3612", _8I ], [ "3613", _8I ], [ "3614", _8I ], [ "3615", _8I ], [ "3620", _8I ], [ "3621", _8I ], [ "3622", _8I ], [ "3623", _8I ], [ "3624", _8I ], [ "3625", _8I ], [ "3630", _8I ], [ "3631", _8I ], [ "3632", _8I ], [ "3633", _8I ], [ "3634", _8I ], [ "3635", _8I ], [ "3640", _8I ], [ "3641", _8I ], [ "3642", _8I ], [ "3643", _8I ], [ "3644", _8I ], [ "3645", _8I ], [ "3650", _8I ], [ "3651", _8I ], [ "3652", _8I ], [ "3653", _8I ], [ "3654", _8I ], [ "3655", _8I ], [ "3660", _8I ], [ "3661", _8I ], [ "3662", _8I ], [ "3663", _8I ], [ "3664", _8I ], [ "3665", _8I ], [ "3670", _8I ], [ "3671", _8I ], [ "3672", _8I ], [ "3673", _8I ], [ "3674", _8I ], [ "3675", _8I ], [ "3680", _8I ], [ "3681", _8I ], [ "3682", _8I ], [ "3683", _8I ], [ "3684", _8I ], [ "3685", _8I ], [ "3690", _8I ], [ "3691", _8I ], [ "3692", _8I ], [ "3693", _8I ], [ "3694", _8I ], [ "3695", _8I ], [ "37", $a([ _8K ]) ], [ "3900", _8O ], [ "3901", _8O ], [ "3902", _8O ], [ "3903", _8O ], [ "3904", _8O ], [ "3905", _8O ], [ "3906", _8O ], [ "3907", _8O ], [ "3908", _8O ], [ "3909", _8O ], [ "3910", _8T ], [ "3911", _8T ], [ "3912", _8T ], [ "3913", _8T ], [ "3914", _8T ], [ "3915", _8T ], [ "3916", _8T ], [ "3917", _8T ], [ "3918", _8T ], [ "3919", _8T ], [ "3920", _8W ], [ "3921", _8W ], [ "3922", _8W ], [ "3923", _8W ], [ "3924", _8W ], [ "3925", _8W ], [ "3926", _8W ], [ "3927", _8W ], [ "3928", _8W ], [ "3929", _8W ], [ "3930", _8b ], [ "3931", _8b ], [ "3932", _8b ], [ "3933", _8b ], [ "3934", _8b ], [ "3935", _8b ], [ "3936", _8b ], [ "3937", _8b ], [ "3938", _8b ], [ "3939", _8b ], [ "3940", _8e ], [ "3941", _8e ], [ "3942", _8e ], [ "3943", _8e ], [ "3950", _8h ], [ "3951", _8h ], [ "3952", _8h ], [ "3953", _8h ], [ "3954", _8h ], [ "3955", _8h ], [ "400", $a([ _8j ]) ], [ "401", $a([ _8m ]) ], [ "402", $a([ _8p ]) ], [ "403", $a([ _8s ]) ], [ "410", _8w ], [ "411", _8w ], [ "412", _8w ], [ "413", _8w ], [ "414", _8w ], [ "415", _8w ], [ "416", _8w ], [ "417", _8w ], [ "420", $a([ _8y ]) ], [ "421", $a([ _91, _93 ]) ], [ "422", $a([ _96 ]) ], [ "423", $a([ _99 ]) ], [ "424", $a([ _9C ]) ], [ "425", $a([ _9F ]) ], [ "426", $a([ _9I ]) ], [ "427", $a([ _9L ]) ], [ "4300", _9P ], [ "4301", _9P ], [ "4302", _9S ], [ "4303", _9S ], [ "4304", _9S ], [ "4305", _9S ], [ "4306", _9S ], [ "4307", $a([ _9U ]) ], [ "4308", $a([ _9X ]) ], [ "4310", _9b ], [ "4311", _9b ], [ "4312", _9e ], [ "4313", _9e ], [ "4314", _9e ], [ "4315", _9e ], [ "4316", _9e ], [ "4317", $a([ _9g ]) ], [ "4318", $a([ _9j ]) ], [ "4319", $a([ _9m ]) ], [ "4320", $a([ _9p ]) ], [ "4321", _9t ], [ "4322", _9t ], [ "4323", _9t ], [ "4324", _9y ], [ "4325", _9y ], [ "4326", $a([ _A0 ]) ], [ "7001", $a([ _A3 ]) ], [ "7002", $a([ _A6 ]) ], [ "7003", $a([ _A9, _AB ]) ], [ "7004", $a([ _AE ]) ], [ "7005", $a([ _AH ]) ], [ "7006", $a([ _AK ]) ], [ "7007", $a([ _AN, _AP ]) ], [ "7008", $a([ _AS ]) ], [ "7009", $a([ _AV ]) ], [ "7010", $a([ _AY ]) ], [ "7020", _Ac ], [ "7021", _Ac ], [ "7022", _Ac ], [ "7023", $a([ _Ae ]) ], [ "7030", _Ak ], [ "7031", _Ak ], [ "7032", _Ak ], [ "7033", _Ak ], [ "7034", _Ak ], [ "7035", _Ak ], [ "7036", _Ak ], [ "7037", _Ak ], [ "7038", _Ak ], [ "7039", _Ak ], [ "7040", $a([ _Am, _Ao, _Aq, _As ]) ], [ "710", _Aw ], [ "711", _Aw ], [ "712", _Aw ], [ "713", _Aw ], [ "714", _Aw ], [ "7230", _B1 ], [ "7231", _B1 ], [ "7232", _B1 ], [ "7233", _B1 ], [ "7234", _B1 ], [ "7235", _B1 ], [ "7236", _B1 ], [ "7237", _B1 ], [ "7238", _B1 ], [ "7239", _B1 ], [ "7240", $a([ _B3 ]) ], [ "8001", $a([ _B6, _B8, _BA, _BC, _BE ]) ], [ "8002", $a([ _BH ]) ], [ "8003", $a([ _BK, _BM, _BO ]) ], [ "8004", $a([ _BR ]) ], [ "8005", $a([ _BU ]) ], [ "8006", $a([ _BX, _BZ ]) ], [ "8007", $a([ _Bc ]) ], [ "8008", $a([ _Bf, _Bh ]) ], [ "8009", $a([ _Bk ]) ], [ "8010", $a([ _Bn ]) ], [ "8011", $a([ _Bq ]) ], [ "8012", $a([ _Bt ]) ], [ "8013", $a([ _Bw ]) ], [ "8017", _C0 ], [ "8018", _C0 ], [ "8019", $a([ _C2 ]) ], [ "8020", $a([ _C5 ]) ], [ "8026", $a([ _C8, _CA ]) ], [ "8110", $a([ _CD ]) ], [ "8111", $a([ _CG ]) ], [ "8112", $a([ _CJ ]) ], [ "8200", $a([ _CM ]) ], [ "90", $a([ _CP ]) ], [ "91", _CT ], [ "92", _CT ], [ "93", _CT ], [ "94", _CT ], [ "95", _CT ], [ "96", _CT ], [ "97", _CT ], [ "98", _CT ], [ "99", _CT ] ]); - $1.gs1syntax = _CU; - $k[$j++] = true; - for (var _CX = 0, _CW = $1.vals.length - 1; _CX <= _CW; _CX += 1) { - $1.ai = $get($1.ais, _CX); - $1.val = $get($1.vals, _CX); - var _Ce = $get($1.gs1syntax, $1.ai) !== undefined; - if (_Ce) { - $forall($get($1.gs1syntax, $1.ai), function() { - $1.props = $k[--$j]; - var _Ck = $get($1.props, "max"); - var _Cl = $1.val; - var _Cm = _Cl.length; - if (_Ck > _Cl.length) { - var _ = _Cm; - _Cm = _Ck; - _Ck = _; - } - $1.eval = $geti($1.val, 0, _Ck); - var _Cr = $1.eval.length; - $1.val = $geti($1.val, _Cr, $1.val.length - _Cr); - if ($1.eval.length < $get($1.props, "min")) { - $j--; - $k[$j++] = "bwipp.GS1valueTooShort"; - $k[$j++] = "Too short"; - $k[$j++] = false; - return true; - } - var _Cx = new Map([ [ "N", "lintnumeric" ], [ "X", "lintcset82" ], [ "C", "lintcset39" ] ]); - $k[$j++] = $1.eval; - if ($1[$get(_Cx, $get($1.props, "cset"))]() === true) { + var _76 = $k[--$j]; //#812 + $k[$j++] = _76; //#814 + $k[$j++] = true; //#814 + $forall(_76, function() { //#814 + var _77 = $k[--$j]; //#813 + if ((_77 < 48) || (_77 > 57)) { //#813 + $j--; //#813 + $k[$j++] = false; //#813 + return true; //#813 + } //#813 + }); //#813 + if ($nt($k[--$j])) { //#815 + $j -= 2; //#815 + $k[$j++] = 'bwipp.GS1couponNotNumeric'; //#815 + $k[$j++] = "Coupon not numeric"; //#815 + $k[$j++] = false; //#815 + return true; //#815 + } //#815 + var _79 = $k[--$j]; //#817 + $k[$j++] = _79; //#819 + if (_79.length < 1) { //#819 + $j -= 2; //#818 + $k[$j++] = 'bwipp.GS1couponTooShortFormatCode'; //#818 + $k[$j++] = "Coupon too short: Missing Format Code"; //#818 + $k[$j++] = false; //#818 + return true; //#818 + } //#818 + var _7A = $k[--$j]; //#820 + var _7B = $geti(_7A, 0, 1); //#820 + $k[$j++] = _7A; //#822 + if ($ne(_7B, "0") && $ne(_7B, "1")) { //#822 + $j -= 2; //#821 + $k[$j++] = 'bwipp.GS1couponBadFormatCode'; //#821 + $k[$j++] = "Coupon format must be 0 or 1"; //#821 + $k[$j++] = false; //#821 + return true; //#821 + } //#821 + var _7C = $k[--$j]; //#823 + var _7D = $geti(_7C, 1, _7C.length - 1); //#823 + $k[$j++] = _7D; //#827 + if (_7D.length < 1) { //#827 + $j -= 2; //#826 + $k[$j++] = 'bwipp.GS1couponTooShortFunderVLI'; //#826 + $k[$j++] = "Coupon too short: Missing Funder VLI"; //#826 + $k[$j++] = false; //#826 + return true; //#826 + } //#826 + var _7E = $k[--$j]; //#828 + var _7G = ~~$z($geti(_7E, 0, 1)); //#828 + $k[$j++] = _7E; //#830 + $k[$j++] = _7G; //#830 + if (_7G > 6) { //#830 + $j -= 3; //#829 + $k[$j++] = 'bwipp.GS1couponBadFunderVLI'; //#829 + $k[$j++] = "Coupon Funder length indicator must be 0-6"; //#829 + $k[$j++] = false; //#829 + return true; //#829 + } //#829 + var _7H = $k[--$j]; //#831 + var _7I = $k[--$j]; //#832 + $k[$j++] = _7I; //#834 + $k[$j++] = $f($f(_7H + 6) + 1); //#834 + if (($f($f(_7H + 6) + 1)) > _7I.length) { //#834 + $j -= 3; //#833 + $k[$j++] = 'bwipp.GS1couponTooShortFunder'; //#833 + $k[$j++] = "Coupon too short: Truncated Funder ID"; //#833 + $k[$j++] = false; //#833 + return true; //#833 + } //#833 + var _7J = $k[--$j]; //#835 + var _7K = $k[--$j]; //#835 + var _7L = $geti(_7K, _7J, $f(_7K.length - _7J)); //#835 + $k[$j++] = _7L; //#839 + if (_7L.length < 6) { //#839 + $j -= 2; //#838 + $k[$j++] = 'bwipp.GS1couponTooShortOfferCode'; //#838 + $k[$j++] = "Coupon too short: Truncated Offer Code"; //#838 + $k[$j++] = false; //#838 + return true; //#838 + } //#838 + var _7M = $k[--$j]; //#840 + var _7N = $geti(_7M, 6, _7M.length - 6); //#840 + $k[$j++] = _7N; //#844 + if (_7N.length < 1) { //#844 + $j -= 2; //#843 + $k[$j++] = 'bwipp.GS1couponTooShortSnVLI'; //#843 + $k[$j++] = "Coupon too short: Missing SN VLI"; //#843 + $k[$j++] = false; //#843 + return true; //#843 + } //#843 + var _7O = $k[--$j]; //#845 + var _7P = $geti(_7O, 0, 1); //#845 + $k[$j++] = _7O; //#849 + $k[$j++] = ((~~$z(_7P)) + 6) + 1; //#849 + if ((((~~$z(_7P)) + 6) + 1) > _7O.length) { //#849 + $j -= 3; //#848 + $k[$j++] = 'bwipp.GS1couponTooShortSn'; //#848 + $k[$j++] = "Coupon too short: Truncated SN"; //#848 + $k[$j++] = false; //#848 + return true; //#848 + } //#848 + var _7Q = $k[--$j]; //#850 + var _7R = $k[--$j]; //#850 + var _7S = $geti(_7R, _7Q, $f(_7R.length - _7Q)); //#850 + $k[$j++] = _7S; //#853 + if (_7S.length != 0) { //#853 + $j -= 2; //#852 + $k[$j++] = 'bwipp.GS1couponTooLong'; //#852 + $k[$j++] = "Coupon too long"; //#852 + $k[$j++] = false; //#852 + return true; //#852 + } //#852 + $j--; //#854 + }; //#855 + var _7U = new Map([ + ["cset", 'N'], + ["min", 18], + ["max", 18], + ["check", $a(['lintcsum', 'lintkey'])] + ]); //#860 + var _7X = new Map([ + ["cset", 'N'], + ["min", 14], + ["max", 14], + ["check", $a(['lintcsum', 'lintkey'])] + ]); //#866 + var _7Y = $a([_7X]); //#866 + var _7a = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 20], + ["check", $a([])] + ]); //#873 + var _7d = new Map([ + ["cset", 'N'], + ["min", 6], + ["max", 6], + ["check", $a(['lintyymmd0'])] + ]); //#879 + var _7e = $a([_7d]); //#879 + var _7g = new Map([ + ["cset", 'N'], + ["min", 2], + ["max", 2], + ["check", $a([])] + ]); //#891 + var _7j = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 20], + ["check", $a([])] + ]); //#897 + var _7k = $a([_7j]); //#897 + var _7m = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 28], + ["check", $a([])] + ]); //#904 + var _7p = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 30], + ["check", $a([])] + ]); //#910 + var _7q = $a([_7p]); //#910 + var _7s = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 6], + ["check", $a([])] + ]); //#917 + var _7v = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 20], + ["check", $a([])] + ]); //#923 + var _7y = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 30], + ["check", $a([])] + ]); //#929 + var _7z = $a([_7y]); //#929 + var _81 = new Map([ + ["cset", 'N'], + ["min", 13], + ["max", 13], + ["check", $a(['lintcsum', 'lintkey'])] + ]); //#936 + var _83 = new Map([ + ["cset", 'X'], + ["min", 0], + ["max", 17], + ["check", $a([])] + ]); //#937 + var _86 = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 20], + ["check", $a([])] + ]); //#943 + var _89 = new Map([ + ["cset", 'N'], + ["min", 13], + ["max", 13], + ["check", $a(['lintcsum', 'lintkey'])] + ]); //#949 + var _8B = new Map([ + ["cset", 'N'], + ["min", 0], + ["max", 12], + ["check", $a([])] + ]); //#950 + var _8E = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 8], + ["check", $a([])] + ]); //#956 + var _8H = new Map([ + ["cset", 'N'], + ["min", 6], + ["max", 6], + ["check", $a([])] + ]); //#962 + var _8I = $a([_8H]); //#962 + var _8K = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 8], + ["check", $a([])] + ]); //#1285 + var _8N = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 15], + ["check", $a([])] + ]); //#1291 + var _8O = $a([_8N]); //#1291 + var _8Q = new Map([ + ["cset", 'N'], + ["min", 3], + ["max", 3], + ["check", $a(['lintiso4217'])] + ]); //#1306 + var _8S = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 15], + ["check", $a([])] + ]); //#1307 + var _8T = $a([_8Q, _8S]); //#1307 + var _8V = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 15], + ["check", $a([])] + ]); //#1322 + var _8W = $a([_8V]); //#1322 + var _8Y = new Map([ + ["cset", 'N'], + ["min", 3], + ["max", 3], + ["check", $a(['lintiso4217'])] + ]); //#1337 + var _8a = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 15], + ["check", $a([])] + ]); //#1338 + var _8b = $a([_8Y, _8a]); //#1338 + var _8d = new Map([ + ["cset", 'N'], + ["min", 4], + ["max", 4], + ["check", $a([])] + ]); //#1353 + var _8e = $a([_8d]); //#1353 + var _8g = new Map([ + ["cset", 'N'], + ["min", 6], + ["max", 6], + ["check", $a([])] + ]); //#1362 + var _8h = $a([_8g]); //#1362 + var _8j = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 30], + ["check", $a([])] + ]); //#1373 + var _8m = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 30], + ["check", $a(['lintkey'])] + ]); //#1379 + var _8p = new Map([ + ["cset", 'N'], + ["min", 17], + ["max", 17], + ["check", $a(['lintcsum', 'lintkey'])] + ]); //#1385 + var _8s = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 30], + ["check", $a([])] + ]); //#1391 + var _8v = new Map([ + ["cset", 'N'], + ["min", 13], + ["max", 13], + ["check", $a(['lintcsum', 'lintkey'])] + ]); //#1397 + var _8w = $a([_8v]); //#1397 + var _8y = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 20], + ["check", $a([])] + ]); //#1410 + var _91 = new Map([ + ["cset", 'N'], + ["min", 3], + ["max", 3], + ["check", $a(['lintiso3166'])] + ]); //#1416 + var _93 = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 9], + ["check", $a([])] + ]); //#1417 + var _96 = new Map([ + ["cset", 'N'], + ["min", 3], + ["max", 3], + ["check", $a(['lintiso3166'])] + ]); //#1423 + var _99 = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 15], + ["check", $a(['lintiso3166list'])] + ]); //#1429 + var _9C = new Map([ + ["cset", 'N'], + ["min", 3], + ["max", 3], + ["check", $a(['lintiso3166'])] + ]); //#1435 + var _9F = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 15], + ["check", $a(['lintiso3166list'])] + ]); //#1441 + var _9I = new Map([ + ["cset", 'N'], + ["min", 3], + ["max", 3], + ["check", $a(['lintiso3166'])] + ]); //#1447 + var _9L = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 3], + ["check", $a([])] + ]); //#1453 + var _9O = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 35], + ["check", $a(['lintpcenc'])] + ]); //#1459 + var _9P = $a([_9O]); //#1459 + var _9R = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 70], + ["check", $a(['lintpcenc'])] + ]); //#1466 + var _9S = $a([_9R]); //#1466 + var _9U = new Map([ + ["cset", 'X'], + ["min", 2], + ["max", 2], + ["check", $a(['lintiso3166alpha2'])] + ]); //#1476 + var _9X = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 30], + ["check", $a([])] + ]); //#1482 + var _9a = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 35], + ["check", $a(['lintpcenc'])] + ]); //#1488 + var _9b = $a([_9a]); //#1488 + var _9d = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 70], + ["check", $a(['lintpcenc'])] + ]); //#1495 + var _9e = $a([_9d]); //#1495 + var _9g = new Map([ + ["cset", 'X'], + ["min", 2], + ["max", 2], + ["check", $a(['lintiso3166alpha2'])] + ]); //#1505 + var _9j = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 20], + ["check", $a([])] + ]); //#1511 + var _9m = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 30], + ["check", $a([])] + ]); //#1517 + var _9p = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 35], + ["check", $a(['lintpcenc'])] + ]); //#1523 + var _9s = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 1], + ["check", $a(['lintyesno'])] + ]); //#1529 + var _9t = $a([_9s]); //#1529 + var _9v = new Map([ + ["cset", 'N'], + ["min", 6], + ["max", 6], + ["check", $a(['lintyymmd0'])] + ]); //#1537 + var _9x = new Map([ + ["cset", 'N'], + ["min", 4], + ["max", 4], + ["check", $a(['linthhmm'])] + ]); //#1538 + var _9y = $a([_9v, _9x]); //#1538 + var _A0 = new Map([ + ["cset", 'N'], + ["min", 6], + ["max", 6], + ["check", $a(['lintyymmdd'])] + ]); //#1545 + var _A3 = new Map([ + ["cset", 'N'], + ["min", 13], + ["max", 13], + ["check", $a([])] + ]); //#1551 + var _A6 = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 30], + ["check", $a([])] + ]); //#1557 + var _A9 = new Map([ + ["cset", 'N'], + ["min", 6], + ["max", 6], + ["check", $a(['lintyymmdd'])] + ]); //#1563 + var _AB = new Map([ + ["cset", 'N'], + ["min", 4], + ["max", 4], + ["check", $a(['linthhmm'])] + ]); //#1564 + var _AE = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 4], + ["check", $a([])] + ]); //#1570 + var _AH = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 12], + ["check", $a([])] + ]); //#1576 + var _AK = new Map([ + ["cset", 'N'], + ["min", 6], + ["max", 6], + ["check", $a(['lintyymmdd'])] + ]); //#1582 + var _AN = new Map([ + ["cset", 'N'], + ["min", 6], + ["max", 6], + ["check", $a(['lintyymmdd'])] + ]); //#1588 + var _AP = new Map([ + ["cset", 'N'], + ["min", 0], + ["max", 6], + ["check", $a(['lintyymmdd'])] + ]); //#1589 + var _AS = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 3], + ["check", $a([])] + ]); //#1595 + var _AV = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 10], + ["check", $a([])] + ]); //#1601 + var _AY = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 2], + ["check", $a([])] + ]); //#1607 + var _Ab = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 20], + ["check", $a([])] + ]); //#1613 + var _Ac = $a([_Ab]); //#1613 + var _Ae = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 30], + ["check", $a(['lintkey'])] + ]); //#1621 + var _Ah = new Map([ + ["cset", 'N'], + ["min", 3], + ["max", 3], + ["check", $a(['lintiso3166999'])] + ]); //#1627 + var _Aj = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 27], + ["check", $a([])] + ]); //#1628 + var _Ak = $a([_Ah, _Aj]); //#1628 + var _Am = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 1], + ["check", $a([])] + ]); //#1643 + var _Ao = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 1], + ["check", $a([])] + ]); //#1644 + var _Aq = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 1], + ["check", $a([])] + ]); //#1645 + var _As = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 1], + ["check", $a(['lintimporteridx'])] + ]); //#1646 + var _Av = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 20], + ["check", $a([])] + ]); //#1652 + var _Aw = $a([_Av]); //#1652 + var _Ay = new Map([ + ["cset", 'X'], + ["min", 2], + ["max", 2], + ["check", $a([])] + ]); //#1662 + var _B0 = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 28], + ["check", $a([])] + ]); //#1663 + var _B1 = $a([_Ay, _B0]); //#1663 + var _B3 = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 20], + ["check", $a([])] + ]); //#1678 + var _B6 = new Map([ + ["cset", 'N'], + ["min", 4], + ["max", 4], + ["check", $a(['lintnonzero'])] + ]); //#1684 + var _B8 = new Map([ + ["cset", 'N'], + ["min", 5], + ["max", 5], + ["check", $a(['lintnonzero'])] + ]); //#1685 + var _BA = new Map([ + ["cset", 'N'], + ["min", 3], + ["max", 3], + ["check", $a(['lintnonzero'])] + ]); //#1686 + var _BC = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 1], + ["check", $a(['lintwinding'])] + ]); //#1687 + var _BE = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 1], + ["check", $a([])] + ]); //#1688 + var _BH = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 20], + ["check", $a([])] + ]); //#1694 + var _BK = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 1], + ["check", $a(['lintzero'])] + ]); //#1700 + var _BM = new Map([ + ["cset", 'N'], + ["min", 13], + ["max", 13], + ["check", $a(['lintcsum', 'lintkey'])] + ]); //#1701 + var _BO = new Map([ + ["cset", 'X'], + ["min", 0], + ["max", 16], + ["check", $a([])] + ]); //#1702 + var _BR = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 30], + ["check", $a(['lintkey'])] + ]); //#1708 + var _BU = new Map([ + ["cset", 'N'], + ["min", 6], + ["max", 6], + ["check", $a([])] + ]); //#1714 + var _BX = new Map([ + ["cset", 'N'], + ["min", 14], + ["max", 14], + ["check", $a(['lintcsum'])] + ]); //#1720 + var _BZ = new Map([ + ["cset", 'N'], + ["min", 4], + ["max", 4], + ["check", $a(['lintpieceoftotal'])] + ]); //#1721 + var _Bc = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 34], + ["check", $a(['lintiban'])] + ]); //#1727 + var _Bf = new Map([ + ["cset", 'N'], + ["min", 8], + ["max", 8], + ["check", $a(['lintyymmddhh'])] + ]); //#1733 + var _Bh = new Map([ + ["cset", 'N'], + ["min", 0], + ["max", 4], + ["check", $a(['lintmmoptss'])] + ]); //#1734 + var _Bk = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 50], + ["check", $a([])] + ]); //#1740 + var _Bn = new Map([ + ["cset", 'C'], + ["min", 1], + ["max", 30], + ["check", $a(['lintkey'])] + ]); //#1746 + var _Bq = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 12], + ["check", $a(['lintnozeroprefix'])] + ]); //#1752 + var _Bt = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 20], + ["check", $a([])] + ]); //#1758 + var _Bw = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 25], + ["check", $a(['lintcsumalpha', 'lintkey'])] + ]); //#1764 + var _Bz = new Map([ + ["cset", 'N'], + ["min", 18], + ["max", 18], + ["check", $a(['lintcsum'])] + ]); //#1770 + var _C0 = $a([_Bz]); //#1770 + var _C2 = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 10], + ["check", $a([])] + ]); //#1777 + var _C5 = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 25], + ["check", $a([])] + ]); //#1783 + var _C8 = new Map([ + ["cset", 'N'], + ["min", 14], + ["max", 14], + ["check", $a(['lintcsum'])] + ]); //#1789 + var _CA = new Map([ + ["cset", 'N'], + ["min", 4], + ["max", 4], + ["check", $a(['lintpieceoftotal'])] + ]); //#1790 + var _CD = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 70], + ["check", $a(['lintcouponcode'])] + ]); //#1796 + var _CG = new Map([ + ["cset", 'N'], + ["min", 4], + ["max", 4], + ["check", $a([])] + ]); //#1802 + var _CJ = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 70], + ["check", $a(['lintcouponposoffer'])] + ]); //#1808 + var _CM = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 70], + ["check", $a([])] + ]); //#1814 + var _CP = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 30], + ["check", $a([])] + ]); //#1820 + var _CS = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 90], + ["check", $a([])] + ]); //#1826 + var _CT = $a([_CS]); //#1826 + var _CU = new Map([ + ["00", $a([_7U])], + ["01", _7Y], + ["02", _7Y], + ["10", $a([_7a])], + ["11", _7e], + ["12", _7e], + ["13", _7e], + ["14", _7e], + ["15", _7e], + ["16", _7e], + ["17", _7e], + ["20", $a([_7g])], + ["21", _7k], + ["22", _7k], + ["235", $a([_7m])], + ["240", _7q], + ["241", _7q], + ["242", $a([_7s])], + ["243", $a([_7v])], + ["250", _7z], + ["251", _7z], + ["253", $a([_81, _83])], + ["254", $a([_86])], + ["255", $a([_89, _8B])], + ["30", $a([_8E])], + ["3100", _8I], + ["3101", _8I], + ["3102", _8I], + ["3103", _8I], + ["3104", _8I], + ["3105", _8I], + ["3110", _8I], + ["3111", _8I], + ["3112", _8I], + ["3113", _8I], + ["3114", _8I], + ["3115", _8I], + ["3120", _8I], + ["3121", _8I], + ["3122", _8I], + ["3123", _8I], + ["3124", _8I], + ["3125", _8I], + ["3130", _8I], + ["3131", _8I], + ["3132", _8I], + ["3133", _8I], + ["3134", _8I], + ["3135", _8I], + ["3140", _8I], + ["3141", _8I], + ["3142", _8I], + ["3143", _8I], + ["3144", _8I], + ["3145", _8I], + ["3150", _8I], + ["3151", _8I], + ["3152", _8I], + ["3153", _8I], + ["3154", _8I], + ["3155", _8I], + ["3160", _8I], + ["3161", _8I], + ["3162", _8I], + ["3163", _8I], + ["3164", _8I], + ["3165", _8I], + ["3200", _8I], + ["3201", _8I], + ["3202", _8I], + ["3203", _8I], + ["3204", _8I], + ["3205", _8I], + ["3210", _8I], + ["3211", _8I], + ["3212", _8I], + ["3213", _8I], + ["3214", _8I], + ["3215", _8I], + ["3220", _8I], + ["3221", _8I], + ["3222", _8I], + ["3223", _8I], + ["3224", _8I], + ["3225", _8I], + ["3230", _8I], + ["3231", _8I], + ["3232", _8I], + ["3233", _8I], + ["3234", _8I], + ["3235", _8I], + ["3240", _8I], + ["3241", _8I], + ["3242", _8I], + ["3243", _8I], + ["3244", _8I], + ["3245", _8I], + ["3250", _8I], + ["3251", _8I], + ["3252", _8I], + ["3253", _8I], + ["3254", _8I], + ["3255", _8I], + ["3260", _8I], + ["3261", _8I], + ["3262", _8I], + ["3263", _8I], + ["3264", _8I], + ["3265", _8I], + ["3270", _8I], + ["3271", _8I], + ["3272", _8I], + ["3273", _8I], + ["3274", _8I], + ["3275", _8I], + ["3280", _8I], + ["3281", _8I], + ["3282", _8I], + ["3283", _8I], + ["3284", _8I], + ["3285", _8I], + ["3290", _8I], + ["3291", _8I], + ["3292", _8I], + ["3293", _8I], + ["3294", _8I], + ["3295", _8I], + ["3300", _8I], + ["3301", _8I], + ["3302", _8I], + ["3303", _8I], + ["3304", _8I], + ["3305", _8I], + ["3310", _8I], + ["3311", _8I], + ["3312", _8I], + ["3313", _8I], + ["3314", _8I], + ["3315", _8I], + ["3320", _8I], + ["3321", _8I], + ["3322", _8I], + ["3323", _8I], + ["3324", _8I], + ["3325", _8I], + ["3330", _8I], + ["3331", _8I], + ["3332", _8I], + ["3333", _8I], + ["3334", _8I], + ["3335", _8I], + ["3340", _8I], + ["3341", _8I], + ["3342", _8I], + ["3343", _8I], + ["3344", _8I], + ["3345", _8I], + ["3350", _8I], + ["3351", _8I], + ["3352", _8I], + ["3353", _8I], + ["3354", _8I], + ["3355", _8I], + ["3360", _8I], + ["3361", _8I], + ["3362", _8I], + ["3363", _8I], + ["3364", _8I], + ["3365", _8I], + ["3370", _8I], + ["3371", _8I], + ["3372", _8I], + ["3373", _8I], + ["3374", _8I], + ["3375", _8I], + ["3400", _8I], + ["3401", _8I], + ["3402", _8I], + ["3403", _8I], + ["3404", _8I], + ["3405", _8I], + ["3410", _8I], + ["3411", _8I], + ["3412", _8I], + ["3413", _8I], + ["3414", _8I], + ["3415", _8I], + ["3420", _8I], + ["3421", _8I], + ["3422", _8I], + ["3423", _8I], + ["3424", _8I], + ["3425", _8I], + ["3430", _8I], + ["3431", _8I], + ["3432", _8I], + ["3433", _8I], + ["3434", _8I], + ["3435", _8I], + ["3440", _8I], + ["3441", _8I], + ["3442", _8I], + ["3443", _8I], + ["3444", _8I], + ["3445", _8I], + ["3450", _8I], + ["3451", _8I], + ["3452", _8I], + ["3453", _8I], + ["3454", _8I], + ["3455", _8I], + ["3460", _8I], + ["3461", _8I], + ["3462", _8I], + ["3463", _8I], + ["3464", _8I], + ["3465", _8I], + ["3470", _8I], + ["3471", _8I], + ["3472", _8I], + ["3473", _8I], + ["3474", _8I], + ["3475", _8I], + ["3480", _8I], + ["3481", _8I], + ["3482", _8I], + ["3483", _8I], + ["3484", _8I], + ["3485", _8I], + ["3490", _8I], + ["3491", _8I], + ["3492", _8I], + ["3493", _8I], + ["3494", _8I], + ["3495", _8I], + ["3500", _8I], + ["3501", _8I], + ["3502", _8I], + ["3503", _8I], + ["3504", _8I], + ["3505", _8I], + ["3510", _8I], + ["3511", _8I], + ["3512", _8I], + ["3513", _8I], + ["3514", _8I], + ["3515", _8I], + ["3520", _8I], + ["3521", _8I], + ["3522", _8I], + ["3523", _8I], + ["3524", _8I], + ["3525", _8I], + ["3530", _8I], + ["3531", _8I], + ["3532", _8I], + ["3533", _8I], + ["3534", _8I], + ["3535", _8I], + ["3540", _8I], + ["3541", _8I], + ["3542", _8I], + ["3543", _8I], + ["3544", _8I], + ["3545", _8I], + ["3550", _8I], + ["3551", _8I], + ["3552", _8I], + ["3553", _8I], + ["3554", _8I], + ["3555", _8I], + ["3560", _8I], + ["3561", _8I], + ["3562", _8I], + ["3563", _8I], + ["3564", _8I], + ["3565", _8I], + ["3570", _8I], + ["3571", _8I], + ["3572", _8I], + ["3573", _8I], + ["3574", _8I], + ["3575", _8I], + ["3600", _8I], + ["3601", _8I], + ["3602", _8I], + ["3603", _8I], + ["3604", _8I], + ["3605", _8I], + ["3610", _8I], + ["3611", _8I], + ["3612", _8I], + ["3613", _8I], + ["3614", _8I], + ["3615", _8I], + ["3620", _8I], + ["3621", _8I], + ["3622", _8I], + ["3623", _8I], + ["3624", _8I], + ["3625", _8I], + ["3630", _8I], + ["3631", _8I], + ["3632", _8I], + ["3633", _8I], + ["3634", _8I], + ["3635", _8I], + ["3640", _8I], + ["3641", _8I], + ["3642", _8I], + ["3643", _8I], + ["3644", _8I], + ["3645", _8I], + ["3650", _8I], + ["3651", _8I], + ["3652", _8I], + ["3653", _8I], + ["3654", _8I], + ["3655", _8I], + ["3660", _8I], + ["3661", _8I], + ["3662", _8I], + ["3663", _8I], + ["3664", _8I], + ["3665", _8I], + ["3670", _8I], + ["3671", _8I], + ["3672", _8I], + ["3673", _8I], + ["3674", _8I], + ["3675", _8I], + ["3680", _8I], + ["3681", _8I], + ["3682", _8I], + ["3683", _8I], + ["3684", _8I], + ["3685", _8I], + ["3690", _8I], + ["3691", _8I], + ["3692", _8I], + ["3693", _8I], + ["3694", _8I], + ["3695", _8I], + ["37", $a([_8K])], + ["3900", _8O], + ["3901", _8O], + ["3902", _8O], + ["3903", _8O], + ["3904", _8O], + ["3905", _8O], + ["3906", _8O], + ["3907", _8O], + ["3908", _8O], + ["3909", _8O], + ["3910", _8T], + ["3911", _8T], + ["3912", _8T], + ["3913", _8T], + ["3914", _8T], + ["3915", _8T], + ["3916", _8T], + ["3917", _8T], + ["3918", _8T], + ["3919", _8T], + ["3920", _8W], + ["3921", _8W], + ["3922", _8W], + ["3923", _8W], + ["3924", _8W], + ["3925", _8W], + ["3926", _8W], + ["3927", _8W], + ["3928", _8W], + ["3929", _8W], + ["3930", _8b], + ["3931", _8b], + ["3932", _8b], + ["3933", _8b], + ["3934", _8b], + ["3935", _8b], + ["3936", _8b], + ["3937", _8b], + ["3938", _8b], + ["3939", _8b], + ["3940", _8e], + ["3941", _8e], + ["3942", _8e], + ["3943", _8e], + ["3950", _8h], + ["3951", _8h], + ["3952", _8h], + ["3953", _8h], + ["3954", _8h], + ["3955", _8h], + ["400", $a([_8j])], + ["401", $a([_8m])], + ["402", $a([_8p])], + ["403", $a([_8s])], + ["410", _8w], + ["411", _8w], + ["412", _8w], + ["413", _8w], + ["414", _8w], + ["415", _8w], + ["416", _8w], + ["417", _8w], + ["420", $a([_8y])], + ["421", $a([_91, _93])], + ["422", $a([_96])], + ["423", $a([_99])], + ["424", $a([_9C])], + ["425", $a([_9F])], + ["426", $a([_9I])], + ["427", $a([_9L])], + ["4300", _9P], + ["4301", _9P], + ["4302", _9S], + ["4303", _9S], + ["4304", _9S], + ["4305", _9S], + ["4306", _9S], + ["4307", $a([_9U])], + ["4308", $a([_9X])], + ["4310", _9b], + ["4311", _9b], + ["4312", _9e], + ["4313", _9e], + ["4314", _9e], + ["4315", _9e], + ["4316", _9e], + ["4317", $a([_9g])], + ["4318", $a([_9j])], + ["4319", $a([_9m])], + ["4320", $a([_9p])], + ["4321", _9t], + ["4322", _9t], + ["4323", _9t], + ["4324", _9y], + ["4325", _9y], + ["4326", $a([_A0])], + ["7001", $a([_A3])], + ["7002", $a([_A6])], + ["7003", $a([_A9, _AB])], + ["7004", $a([_AE])], + ["7005", $a([_AH])], + ["7006", $a([_AK])], + ["7007", $a([_AN, _AP])], + ["7008", $a([_AS])], + ["7009", $a([_AV])], + ["7010", $a([_AY])], + ["7020", _Ac], + ["7021", _Ac], + ["7022", _Ac], + ["7023", $a([_Ae])], + ["7030", _Ak], + ["7031", _Ak], + ["7032", _Ak], + ["7033", _Ak], + ["7034", _Ak], + ["7035", _Ak], + ["7036", _Ak], + ["7037", _Ak], + ["7038", _Ak], + ["7039", _Ak], + ["7040", $a([_Am, _Ao, _Aq, _As])], + ["710", _Aw], + ["711", _Aw], + ["712", _Aw], + ["713", _Aw], + ["714", _Aw], + ["7230", _B1], + ["7231", _B1], + ["7232", _B1], + ["7233", _B1], + ["7234", _B1], + ["7235", _B1], + ["7236", _B1], + ["7237", _B1], + ["7238", _B1], + ["7239", _B1], + ["7240", $a([_B3])], + ["8001", $a([_B6, _B8, _BA, _BC, _BE])], + ["8002", $a([_BH])], + ["8003", $a([_BK, _BM, _BO])], + ["8004", $a([_BR])], + ["8005", $a([_BU])], + ["8006", $a([_BX, _BZ])], + ["8007", $a([_Bc])], + ["8008", $a([_Bf, _Bh])], + ["8009", $a([_Bk])], + ["8010", $a([_Bn])], + ["8011", $a([_Bq])], + ["8012", $a([_Bt])], + ["8013", $a([_Bw])], + ["8017", _C0], + ["8018", _C0], + ["8019", $a([_C2])], + ["8020", $a([_C5])], + ["8026", $a([_C8, _CA])], + ["8110", $a([_CD])], + ["8111", $a([_CG])], + ["8112", $a([_CJ])], + ["8200", $a([_CM])], + ["90", $a([_CP])], + ["91", _CT], + ["92", _CT], + ["93", _CT], + ["94", _CT], + ["95", _CT], + ["96", _CT], + ["97", _CT], + ["98", _CT], + ["99", _CT] + ]); //#1837 + $1.gs1syntax = _CU; //#1839 + $k[$j++] = true; //#1866 + for (var _CX = 0, _CW = $1.vals.length - 1; _CX <= _CW; _CX += 1) { //#1866 + $1.ai = $get($1.ais, _CX); //#1843 + $1.val = $get($1.vals, _CX); //#1844 + var _Ce = $get($1.gs1syntax, $1.ai) !== undefined; //#1845 + if (_Ce) { //#1864 + $forall($get($1.gs1syntax, $1.ai), function() { //#1858 + $1.props = $k[--$j]; //#1847 + var _Ck = $get($1.props, 'max'); //#1848 + var _Cl = $1.val; //#1848 + var _Cm = _Cl.length; //#1848 + if (_Ck > _Cl.length) { //#1848 + var _ = _Cm; //#1848 + _Cm = _Ck; //#1848 + _Ck = _; //#1848 + } //#1848 + $1.eval = $geti($1.val, 0, _Ck); //#1849 + var _Cr = $1.eval.length; //#1850 + $1.val = $geti($1.val, _Cr, $1.val.length - _Cr); //#1850 + if ($1.eval.length < $get($1.props, 'min')) { //#1853 + $j--; //#1852 + $k[$j++] = 'bwipp.GS1valueTooShort'; //#1852 + $k[$j++] = "Too short"; //#1852 + $k[$j++] = false; //#1852 + return true; //#1852 + } //#1852 + var _Cx = new Map([ + ["N", 'lintnumeric'], + ["X", 'lintcset82'], + ["C", 'lintcset39'] + ]); //#1854 + $k[$j++] = $1.eval; //#1854 + if ($1[$get(_Cx, $get($1.props, 'cset'))]() === true) { return true; - } - if ($1.eval.length > 0) { - $forall($get($1.props, "check"), function() { - var _D8 = $1[$k[--$j]]; - $k[$j++] = $1.eval; + } //#1854 + if ($1.eval.length > 0) { //#1857 + $forall($get($1.props, 'check'), function() { //#1856 + var _D8 = $1[$k[--$j]]; //#1856 + $k[$j++] = $1.eval; //#1856 if (_D8() === true) { return true; - } - }); - } - }); - var _D9 = $k[--$j]; - $k[$j++] = _D9; - if ($nt(_D9)) { - break; - } - if ($1.val.length != 0) { - $j--; - $k[$j++] = "bwipp.GS1valueTooLong"; - $k[$j++] = "Too long"; - $k[$j++] = false; - break; - } - } else { - $j--; - $k[$j++] = "bwipp.GS1unknownAI"; - $k[$j++] = "Unrecognised AI"; - $k[$j++] = false; - break; - } - } - if ($nt($k[--$j])) { - var _DC = $k[--$j]; - var _DE = $s(_DC.length + $1.ai.length + 5); - $puti(_DE, 0, "AI "); - $puti(_DE, 3, $1.ai); - $puti(_DE, 3 + $1.ai.length, ": "); - $puti(_DE, 5 + $1.ai.length, _DC); - $k[$j++] = _DE; - $0.raiseerror(); - } - $k[$j++] = true; + } //#1856 + }); //#1856 + } //#1856 + }); //#1856 + var _D9 = $k[--$j]; //#1859 + $k[$j++] = _D9; //#1859 + if ($nt(_D9)) { //#1859 + break; //#1859 + } //#1859 + if ($1.val.length != 0) { //#1862 + $j--; //#1861 + $k[$j++] = 'bwipp.GS1valueTooLong'; //#1861 + $k[$j++] = "Too long"; //#1861 + $k[$j++] = false; //#1861 + break; //#1861 + } //#1861 + } else { //#1864 + $j--; //#1864 + $k[$j++] = 'bwipp.GS1unknownAI'; //#1864 + $k[$j++] = "Unrecognised AI"; //#1864 + $k[$j++] = false; //#1864 + break; //#1864 + } //#1864 + } //#1864 + if ($nt($k[--$j])) { //#1874 + var _DC = $k[--$j]; //#1868 + var _DE = $s((_DC.length + $1.ai.length) + 5); //#1868 + $puti(_DE, 0, "AI "); //#1869 + $puti(_DE, 3, $1.ai); //#1870 + $puti(_DE, 3 + $1.ai.length, ": "); //#1871 + $puti(_DE, 5 + $1.ai.length, _DC); //#1872 + $k[$j++] = _DE; //#1873 + $0.raiseerror(); //#1873 + } //#1873 + $k[$j++] = true; //#1877 }; $0.renmatrix = function() { - if ($0.bwipjs_dontdraw) { - return; - } - var $1 = {}; - $1.args = $k[--$j]; - $1.width = 1; - $1.height = 1; - $1.barcolor = "unset"; - $1.backgroundcolor = "unset"; - $1.colormap = "unset"; - $1.dotty = false; - $1.inkspread = 0; - $1.inkspreadh = 0; - $1.inkspreadv = 0; - $1.includetext = false; - $1.txt = $a([]); - $1.textcolor = "unset"; - $1.textxalign = "unset"; - $1.textyalign = "unset"; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = 0; - $1.textgaps = 0; - $1.alttext = ""; - $forall($1.args, function() { - var _4 = $k[--$j]; - $1[$k[--$j]] = _4; - }); - var _6 = $1.opt; - for (var _B = _6.size, _A = _6.keys(), _9 = 0; _9 < _B; _9++) { - var _7 = _A.next().value; - $1[_7] = _6.get(_7); - } - $1.width = +$1.width; - $1.height = +$1.height; - $1.barcolor = "" + $1.barcolor; - $1.backgroundcolor = "" + $1.backgroundcolor; - $1.inkspread = +$1.inkspread; - $1.inkspreadh = +$1.inkspreadh; - $1.inkspreadv = +$1.inkspreadv; - $1.textcolor = "" + $1.textcolor; - $1.textxalign = "" + $1.textxalign; - $1.textyalign = "" + $1.textyalign; - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.textgaps = +$1.textgaps; - $1.alttext = "" + $1.alttext; - if ($1.inkspread != 0) { - $1.inkspreadh = $1.inkspread; - } - if ($1.inkspread != 0) { - $1.inkspreadv = $1.inkspread; - } + if ($0.bwipjs_dontdraw) { //#2145 + return; //#2145 + } //#2145 + var $1 = {}; //#2147 + $1.args = $k[--$j]; //#2149 + $1.width = 1; //#2152 + $1.height = 1; //#2153 + $1.barcolor = "unset"; //#2154 + $1.backgroundcolor = "unset"; //#2155 + $1.colormap = "unset"; //#2156 + $1.dotty = false; //#2157 + $1.inkspread = 0; //#2158 + $1.inkspreadh = 0; //#2159 + $1.inkspreadv = 0; //#2160 + $1.includetext = false; //#2161 + $1.txt = $a([]); //#2162 + $1.textcolor = "unset"; //#2163 + $1.textxalign = "unset"; //#2164 + $1.textyalign = "unset"; //#2165 + $1.textfont = "OCR-B"; //#2166 + $1.textsize = 10; //#2167 + $1.textxoffset = 0; //#2168 + $1.textyoffset = 0; //#2169 + $1.textgaps = 0; //#2170 + $1.alttext = ""; //#2171 + $forall($1.args, function() { //#2174 + var _4 = $k[--$j]; //#2174 + $1[$k[--$j]] = _4; //#2174 + }); //#2174 + var _6 = $1.opt; //#2175 + for (var _B = _6.size, _A = _6.keys(), _9 = 0; _9 < _B; _9++) { //#2175 + var _7 = _A.next().value; //#2175 + $1[_7] = _6.get(_7); //#2175 + } //#2175 + $1.width = +$1.width; //#2177 + $1.height = +$1.height; //#2178 + $1.barcolor = "" + $1.barcolor; //#2179 + $1.backgroundcolor = "" + $1.backgroundcolor; //#2180 + $1.inkspread = +$1.inkspread; //#2181 + $1.inkspreadh = +$1.inkspreadh; //#2182 + $1.inkspreadv = +$1.inkspreadv; //#2183 + $1.textcolor = "" + $1.textcolor; //#2184 + $1.textxalign = "" + $1.textxalign; //#2185 + $1.textyalign = "" + $1.textyalign; //#2186 + $1.textfont = "" + $1.textfont; //#2187 + $1.textsize = +$1.textsize; //#2188 + $1.textxoffset = +$1.textxoffset; //#2189 + $1.textyoffset = +$1.textyoffset; //#2190 + $1.textgaps = +$1.textgaps; //#2191 + $1.alttext = "" + $1.alttext; //#2192 + if ($1.inkspread != 0) { //#2194 + $1.inkspreadh = $1.inkspread; //#2194 + } //#2194 + if ($1.inkspread != 0) { //#2195 + $1.inkspreadv = $1.inkspread; //#2195 + } //#2195 $1.xyget = function() { - var _X = $k[--$j]; - var _a = $get($1.pixs, $f($k[--$j] + _X * $1.pixx)); - $k[$j++] = _a; - }; + var _X = $k[--$j]; //#2197 + var _a = $get($1.pixs, $f($k[--$j] + (_X * $1.pixx))); //#2197 + $k[$j++] = _a; //#2197 + }; //#2197 $1.cget = function() { - var _c = $k[--$j]; - var _f = $get($1.cache, $f($k[--$j] + _c * $1.pixx)); - var _g = $k[--$j]; - $k[$j++] = $an(_g, _f); - }; + var _c = $k[--$j]; //#2198 + var _f = $get($1.cache, $f($k[--$j] + (_c * $1.pixx))); //#2198 + var _g = $k[--$j]; //#2198 + $k[$j++] = $an(_g, _f); //#2198 + }; //#2198 $1.cput = function() { - var _h = $k[--$j]; - $k[$j++] = _h; - if (_h % 4 == 0) { - var _i = $k[--$j]; - var _j = $k[--$j]; - var _k = $k[--$j]; - var _l = $1.pixx; - var _m = $1.cache; - $put(_m, $f(_k + _j * _l), $or($get(_m, $f(_k + _j * _l)), _i)); - } else { - $j -= 3; - } - }; + var _h = $k[--$j]; //#2200 + $k[$j++] = _h; //#2204 + if ((_h % 4) == 0) { //#2203 + var _i = $k[--$j]; //#2201 + var _j = $k[--$j]; //#2201 + var _k = $k[--$j]; //#2201 + var _l = $1.pixx; //#2201 + var _m = $1.cache; //#2201 + $put(_m, $f(_k + (_j * _l)), $or($get(_m, $f(_k + (_j * _l))), _i)); //#2201 + } else { //#2203 + $j -= 3; //#2203 + } //#2203 + }; //#2205 $1.abcd = function() { - $k[$j++] = $s(4); - $k[$j++] = 0; - $k[$j++] = Infinity; - var _p = $k[--$j]; - var _q = $k[--$j]; - var _r = $k[--$j]; - var _s = $k[--$j]; - var _v = $f($k[--$j] + _s * $1.pixx); - $k[$j++] = _r; - $k[$j++] = _q; - $k[$j++] = _p; - $k[$j++] = _v; - $aload($geti($1.pixs, _v, 2)); - var _y = $k[--$j]; - var _z = $k[--$j]; - var _13 = $geti($1.pixs, $f($k[--$j] + $1.pixx), 2); - $k[$j++] = _z; - $k[$j++] = _y; - $aload(_13); - var _14 = $a(); - for (var _15 = 0, _16 = _14.length; _15 < _16; _15++) { - var _18 = $k[--$j]; - var _19 = $k[--$j]; - $put(_19, _18, $f($get(_14, _15) + 48)); - $k[$j++] = _19; - $k[$j++] = $f(_18 + 1); - } - $j--; - }; + $k[$j++] = $s(4); //#2212 + $k[$j++] = 0; //#2212 + $k[$j++] = Infinity; //#2212 + var _p = $k[--$j]; //#2209 + var _q = $k[--$j]; //#2209 + var _r = $k[--$j]; //#2209 + var _s = $k[--$j]; //#2209 + var _v = $f($k[--$j] + (_s * $1.pixx)); //#2210 + $k[$j++] = _r; //#2211 + $k[$j++] = _q; //#2211 + $k[$j++] = _p; //#2211 + $k[$j++] = _v; //#2211 + $aload($geti($1.pixs, _v, 2)); //#2211 + var _y = $k[--$j]; //#2211 + var _z = $k[--$j]; //#2211 + var _13 = $geti($1.pixs, $f($k[--$j] + $1.pixx), 2); //#2212 + $k[$j++] = _z; //#2212 + $k[$j++] = _y; //#2212 + $aload(_13); //#2212 + var _14 = $a(); //#2212 + for (var _15 = 0, _16 = _14.length; _15 < _16; _15++) { //#2213 + var _18 = $k[--$j]; //#2213 + var _19 = $k[--$j]; //#2213 + $put(_19, _18, $f($get(_14, _15) + 48)); //#2213 + $k[$j++] = _19; //#2213 + $k[$j++] = $f(_18 + 1); //#2213 + } //#2213 + $j--; //#2213 + }; //#2214 $1.right = function() { - if ($1.dir != 1) { - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $k[$j++] = $1.dir; - $1.cput(); - $k[$j++] = $a([ $1.x, $1.y ]); - } - $1.x = $1.x + 1; - $1.dir = 1; - }; + if ($1.dir != 1) { //#2216 + $k[$j++] = $1.x; //#2216 + $k[$j++] = $1.y; //#2216 + $k[$j++] = $1.dir; //#2216 + $1.cput(); //#2216 + $k[$j++] = $a([$1.x, $1.y]); //#2216 + } //#2216 + $1.x = $1.x + 1; //#2216 + $1.dir = 1; //#2216 + }; //#2216 $1.down = function() { - if ($1.dir != 2) { - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $k[$j++] = $1.dir; - $1.cput(); - $k[$j++] = $a([ $1.x, $1.y ]); - } - $1.y = $1.y + 1; - $1.dir = 2; - }; + if ($1.dir != 2) { //#2217 + $k[$j++] = $1.x; //#2217 + $k[$j++] = $1.y; //#2217 + $k[$j++] = $1.dir; //#2217 + $1.cput(); //#2217 + $k[$j++] = $a([$1.x, $1.y]); //#2217 + } //#2217 + $1.y = $1.y + 1; //#2217 + $1.dir = 2; //#2217 + }; //#2217 $1.left = function() { - if ($1.dir != 4) { - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $k[$j++] = $1.dir; - $1.cput(); - $k[$j++] = $a([ $1.x, $1.y ]); - } - $1.x = $1.x - 1; - $1.dir = 4; - }; + if ($1.dir != 4) { //#2218 + $k[$j++] = $1.x; //#2218 + $k[$j++] = $1.y; //#2218 + $k[$j++] = $1.dir; //#2218 + $1.cput(); //#2218 + $k[$j++] = $a([$1.x, $1.y]); //#2218 + } //#2218 + $1.x = $1.x - 1; //#2218 + $1.dir = 4; //#2218 + }; //#2218 $1.up = function() { - if ($1.dir != 8) { - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $k[$j++] = $1.dir; - $1.cput(); - $k[$j++] = $a([ $1.x, $1.y ]); - } - $1.y = $1.y - 1; - $1.dir = 8; - }; + if ($1.dir != 8) { //#2219 + $k[$j++] = $1.x; //#2219 + $k[$j++] = $1.y; //#2219 + $k[$j++] = $1.dir; //#2219 + $1.cput(); //#2219 + $k[$j++] = $a([$1.x, $1.y]); //#2219 + } //#2219 + $1.y = $1.y - 1; //#2219 + $1.dir = 8; //#2219 + }; //#2219 $1.trace = function() { - $1.y = $k[--$j]; - $1.x = $k[--$j]; - $k[$j++] = "dir"; - $k[$j++] = $f($1.x + 1); - $k[$j++] = $f($1.y + 1); - $1.xyget(); - var _1l = $k[--$j] == 1 ? 8 : 4; - $1[$k[--$j]] = _1l; - $1.sx = $1.x; - $1.sy = $1.y; - $1.sdir = $1.dir; - $k[$j++] = Infinity; - for (;;) { - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $1.abcd(); - for (var _1s = 0, _1t = 1; _1s < _1t; _1s++) { - var _1u = $k[--$j]; - $k[$j++] = _1u; - if ($eq(_1u, "0001") || ($eq(_1u, "0011") || $eq(_1u, "1011"))) { - $j--; - $1.right(); - break; - } - var _1v = $k[--$j]; - $k[$j++] = _1v; - if ($eq(_1v, "0010") || ($eq(_1v, "1010") || $eq(_1v, "1110"))) { - $j--; - $1.down(); - break; - } - var _1w = $k[--$j]; - $k[$j++] = _1w; - if ($eq(_1w, "1000") || ($eq(_1w, "1100") || $eq(_1w, "1101"))) { - $j--; - $1.left(); - break; - } - var _1x = $k[--$j]; - $k[$j++] = _1x; - if ($eq(_1x, "0100") || ($eq(_1x, "0101") || $eq(_1x, "0111"))) { - $j--; - $1.up(); - break; - } - var _1y = $k[--$j]; - $k[$j++] = _1y; - if ($eq(_1y, "1001")) { - if ($1.dir == 2) { - $j--; - $1.left(); - break; - } else { - $j--; - $1.right(); - break; - } - } else { - if ($1.dir == 1) { - $j--; - $1.down(); - break; - } else { - $j--; - $1.up(); - break; - } - } - } - if ($eq($1.x, $1.sx) && $eq($1.y, $1.sy) && $1.dir == $1.sdir) { - break; - } - } - $astore($a($counttomark())); - var _29 = $k[--$j]; - var _2A = $k[--$j]; - $k[$j++] = _29; - $k[$j++] = _2A; - $j--; - }; + $1.y = $k[--$j]; //#2223 + $1.x = $k[--$j]; //#2223 + $k[$j++] = 'dir'; //#2225 + $k[$j++] = $f($1.x + 1); //#2225 + $k[$j++] = $f($1.y + 1); //#2225 + $1.xyget(); //#2225 + var _1l = ($k[--$j] == 1) ? 8 : 4; //#2225 + $1[$k[--$j]] = _1l; //#2225 + $1.sx = $1.x; //#2226 + $1.sy = $1.y; //#2226 + $1.sdir = $1.dir; //#2226 + $k[$j++] = Infinity; //#2230 + for (;;) { //#2244 + $k[$j++] = $1.x; //#2231 + $k[$j++] = $1.y; //#2231 + $1.abcd(); //#2231 + for (var _1s = 0, _1t = 1; _1s < _1t; _1s++) { //#2242 + var _1u = $k[--$j]; //#2233 + $k[$j++] = _1u; //#2233 + if ($eq(_1u, "0001") || ($eq(_1u, "0011") || $eq(_1u, "1011"))) { //#2233 + $j--; //#2233 + $1.right(); //#2233 + break; //#2233 + } //#2233 + var _1v = $k[--$j]; //#2234 + $k[$j++] = _1v; //#2234 + if ($eq(_1v, "0010") || ($eq(_1v, "1010") || $eq(_1v, "1110"))) { //#2234 + $j--; //#2234 + $1.down(); //#2234 + break; //#2234 + } //#2234 + var _1w = $k[--$j]; //#2235 + $k[$j++] = _1w; //#2235 + if ($eq(_1w, "1000") || ($eq(_1w, "1100") || $eq(_1w, "1101"))) { //#2235 + $j--; //#2235 + $1.left(); //#2235 + break; //#2235 + } //#2235 + var _1x = $k[--$j]; //#2236 + $k[$j++] = _1x; //#2236 + if ($eq(_1x, "0100") || ($eq(_1x, "0101") || $eq(_1x, "0111"))) { //#2236 + $j--; //#2236 + $1.up(); //#2236 + break; //#2236 + } //#2236 + var _1y = $k[--$j]; //#2237 + $k[$j++] = _1y; //#2241 + if ($eq(_1y, "1001")) { //#2240 + if ($1.dir == 2) { //#2238 + $j--; //#2238 + $1.left(); //#2238 + break; //#2238 + } else { //#2238 + $j--; //#2238 + $1.right(); //#2238 + break; //#2238 + } //#2238 + } else { //#2240 + if ($1.dir == 1) { //#2240 + $j--; //#2240 + $1.down(); //#2240 + break; //#2240 + } else { //#2240 + $j--; //#2240 + $1.up(); //#2240 + break; //#2240 + } //#2240 + } //#2240 + } //#2240 + if (($eq($1.x, $1.sx) && $eq($1.y, $1.sy)) && ($1.dir == $1.sdir)) { //#2243 + break; //#2243 + } //#2243 + } //#2243 + $astore($a($counttomark())); //#2245 + var _29 = $k[--$j]; //#2245 + var _2A = $k[--$j]; //#2245 + $k[$j++] = _29; //#2245 + $k[$j++] = _2A; //#2245 + $j--; //#2245 + }; //#2247 $1.drawlayer = function() { - $1.pixsorig = $1.pixs; - $1.pixs = $k[--$j]; - $k[$j++] = Infinity; - for (var _2E = 0, _2F = $1.pixx + 2; _2E < _2F; _2E++) { - $k[$j++] = 0; - } - for (var _2J = 0, _2K = $1.pixx, _2I = $1.pixs.length - 1; _2K < 0 ? _2J >= _2I : _2J <= _2I; _2J += _2K) { - $k[$j++] = 0; - $aload($geti($1.pixs, _2J, $1.pixx)); - $k[$j++] = 0; - } - for (var _2P = 0, _2Q = $1.pixx + 2; _2P < _2Q; _2P++) { - $k[$j++] = 0; - } - $1.pixs = $a(); - $1.pixx = $1.pixx + 2; - $1.pixy = $1.pixy + 2; - $k[$j++] = Infinity; - for (var _2V = 0, _2W = $1.pixs.length; _2V < _2W; _2V++) { - $k[$j++] = 0; - } - $1.cache = $a(); - $k[$j++] = Infinity; - for (var _2a = 0, _2Z = $1.pixy - 2; _2a <= _2Z; _2a += 1) { - $1.j = _2a; - for (var _2d = 0, _2c = $1.pixx - 2; _2d <= _2c; _2d += 1) { - $1.i = _2d; - $k[$j++] = "k"; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.abcd(); - var _2g = $k[--$j]; - $1[$k[--$j]] = _2g; - if ($eq($1.k, "0001") || $eq($1.k, "1001")) { - $k[$j++] = 8; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.cget(); - if ($k[--$j] == 0) { - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.trace(); - } - } - if ($eq($1.k, "1110")) { - $k[$j++] = 4; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.cget(); - if ($k[--$j] == 0) { - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.trace(); - } - } - } - } - $1.paths = $a(); - $1.pixx = $1.pixx - 2; - $1.pixy = $1.pixy - 2; - $$.newpath(); - var _2y = $1.paths; - for (var _2z = 0, _30 = _2y.length; _2z < _30; _2z++) { - $1.p = $get(_2y, _2z); - $1.len = $1.p.length; - $aload($get($1.p, $1.len - 1)); - $aload($get($1.p, 0)); - for (var _3A = 0, _39 = $1.len - 1; _3A <= _39; _3A += 1) { - $1.i = _3A; - $aload($get($1.p, ($1.i + 1) % $1.len)); - var _3F = $k[--$j]; - var _3G = $k[--$j]; - var _3H = $k[--$j]; - var _3I = $k[--$j]; - var _3J = $k[--$j]; - var _3K = $k[--$j]; - $k[$j++] = _3I; - $k[$j++] = _3H; - $k[$j++] = _3G; - $k[$j++] = _3F; - $k[$j++] = _3K; - $k[$j++] = _3I; - $k[$j++] = $1.inkspreadh; - if ($lt(_3F, _3J)) { - var _3M = $k[--$j]; - var _3N = $k[--$j]; - $k[$j++] = $f(_3N + _3M); - } else { - var _3O = $k[--$j]; - var _3P = $k[--$j]; - $k[$j++] = $f(_3P - _3O); - } - var _3Q = $k[--$j]; - var _3R = $k[--$j]; - var _3S = $k[--$j]; - var _3T = $k[--$j]; - var _3U = $k[--$j]; - $k[$j++] = _3U; - $k[$j++] = _3Q; - $k[$j++] = _3T; - $k[$j++] = _3S; - $k[$j++] = _3U; - $k[$j++] = $1.inkspreadv; - if ($gt(_3T, _3R)) { - var _3W = $k[--$j]; - var _3X = $k[--$j]; - $k[$j++] = $f(_3X + _3W); - } else { - var _3Y = $k[--$j]; - var _3Z = $k[--$j]; - $k[$j++] = $f(_3Z - _3Y); - } - var _3a = $k[--$j]; - var _3b = $k[--$j]; - var _3c = $k[--$j]; - var _3d = $k[--$j]; - $k[$j++] = _3c; - $k[$j++] = _3b; - $k[$j++] = _3d; - $k[$j++] = $f($1.pixy - _3a); - if ($1.i == 0) { - var _3g = $k[--$j]; - $$.moveto($k[--$j], _3g); - } else { - var _3i = $k[--$j]; - $$.lineto($k[--$j], _3i); - } - } - $$.closepath(); - $j -= 4; - } - $$.fill(); - $1.pixs = $1.pixsorig; - }; + $1.pixsorig = $1.pixs; //#2263 + $1.pixs = $k[--$j]; //#2264 + $k[$j++] = Infinity; //#2274 + for (var _2E = 0, _2F = $1.pixx + 2; _2E < _2F; _2E++) { //#2268 + $k[$j++] = 0; //#2268 + } //#2268 + for (var _2J = 0, _2K = $1.pixx, _2I = $1.pixs.length - 1; _2K < 0 ? _2J >= _2I : _2J <= _2I; _2J += _2K) { //#2273 + $k[$j++] = 0; //#2271 + $aload($geti($1.pixs, _2J, $1.pixx)); //#2271 + $k[$j++] = 0; //#2272 + } //#2272 + for (var _2P = 0, _2Q = $1.pixx + 2; _2P < _2Q; _2P++) { //#2274 + $k[$j++] = 0; //#2274 + } //#2274 + $1.pixs = $a(); //#2274 + $1.pixx = $1.pixx + 2; //#2276 + $1.pixy = $1.pixy + 2; //#2277 + $k[$j++] = Infinity; //#2280 + for (var _2V = 0, _2W = $1.pixs.length; _2V < _2W; _2V++) { //#2280 + $k[$j++] = 0; //#2280 + } //#2280 + $1.cache = $a(); //#2280 + $k[$j++] = Infinity; //#2296 + for (var _2a = 0, _2Z = $1.pixy - 2; _2a <= _2Z; _2a += 1) { //#2300 + $1.j = _2a; //#2285 + for (var _2d = 0, _2c = $1.pixx - 2; _2d <= _2c; _2d += 1) { //#2299 + $1.i = _2d; //#2287 + $k[$j++] = 'k'; //#2288 + $k[$j++] = $1.i; //#2288 + $k[$j++] = $1.j; //#2288 + $1.abcd(); //#2288 + var _2g = $k[--$j]; //#2288 + $1[$k[--$j]] = _2g; //#2288 + if ($eq($1.k, "0001") || $eq($1.k, "1001")) { //#2293 + $k[$j++] = 8; //#2290 + $k[$j++] = $1.i; //#2290 + $k[$j++] = $1.j; //#2290 + $1.cget(); //#2290 + if ($k[--$j] == 0) { //#2292 + $k[$j++] = $1.i; //#2291 + $k[$j++] = $1.j; //#2291 + $1.trace(); //#2291 + } //#2291 + } //#2291 + if ($eq($1.k, "1110")) { //#2298 + $k[$j++] = 4; //#2295 + $k[$j++] = $1.i; //#2295 + $k[$j++] = $1.j; //#2295 + $1.cget(); //#2295 + if ($k[--$j] == 0) { //#2297 + $k[$j++] = $1.i; //#2296 + $k[$j++] = $1.j; //#2296 + $1.trace(); //#2296 + } //#2296 + } //#2296 + } //#2296 + } //#2296 + $1.paths = $a(); //#2296 + $1.pixx = $1.pixx - 2; //#2304 + $1.pixy = $1.pixy - 2; //#2305 + $$.newpath(); //#2308 + var _2y = $1.paths; //#2309 + for (var _2z = 0, _30 = _2y.length; _2z < _30; _2z++) { //#2327 + $1.p = $get(_2y, _2z); //#2310 + $1.len = $1.p.length; //#2311 + $aload($get($1.p, $1.len - 1)); //#2312 + $aload($get($1.p, 0)); //#2313 + for (var _3A = 0, _39 = $1.len - 1; _3A <= _39; _3A += 1) { //#2324 + $1.i = _3A; //#2315 + $aload($get($1.p, ($1.i + 1) % $1.len)); //#2316 + var _3F = $k[--$j]; //#2316 + var _3G = $k[--$j]; //#2316 + var _3H = $k[--$j]; //#2316 + var _3I = $k[--$j]; //#2316 + var _3J = $k[--$j]; //#2316 + var _3K = $k[--$j]; //#2316 + $k[$j++] = _3I; //#2318 + $k[$j++] = _3H; //#2318 + $k[$j++] = _3G; //#2318 + $k[$j++] = _3F; //#2318 + $k[$j++] = _3K; //#2318 + $k[$j++] = _3I; //#2318 + $k[$j++] = $1.inkspreadh; //#2318 + if ($lt(_3F, _3J)) { //#2318 + var _3M = $k[--$j]; //#2318 + var _3N = $k[--$j]; //#2318 + $k[$j++] = $f(_3N + _3M); //#2318 + } else { //#2318 + var _3O = $k[--$j]; //#2318 + var _3P = $k[--$j]; //#2318 + $k[$j++] = $f(_3P - _3O); //#2318 + } //#2318 + var _3Q = $k[--$j]; //#2319 + var _3R = $k[--$j]; //#2319 + var _3S = $k[--$j]; //#2319 + var _3T = $k[--$j]; //#2319 + var _3U = $k[--$j]; //#2320 + $k[$j++] = _3U; //#2321 + $k[$j++] = _3Q; //#2321 + $k[$j++] = _3T; //#2321 + $k[$j++] = _3S; //#2321 + $k[$j++] = _3U; //#2321 + $k[$j++] = $1.inkspreadv; //#2321 + if ($gt(_3T, _3R)) { //#2321 + var _3W = $k[--$j]; //#2321 + var _3X = $k[--$j]; //#2321 + $k[$j++] = $f(_3X + _3W); //#2321 + } else { //#2321 + var _3Y = $k[--$j]; //#2321 + var _3Z = $k[--$j]; //#2321 + $k[$j++] = $f(_3Z - _3Y); //#2321 + } //#2321 + var _3a = $k[--$j]; //#2322 + var _3b = $k[--$j]; //#2322 + var _3c = $k[--$j]; //#2322 + var _3d = $k[--$j]; //#2322 + $k[$j++] = _3c; //#2323 + $k[$j++] = _3b; //#2323 + $k[$j++] = _3d; //#2323 + $k[$j++] = $f($1.pixy - _3a); //#2323 + if ($1.i == 0) { //#2323 + var _3g = $k[--$j]; //#2323 + $$.moveto($k[--$j], _3g); //#2323 + } else { //#2323 + var _3i = $k[--$j]; //#2323 + $$.lineto($k[--$j], _3i); //#2323 + } //#2323 + } //#2323 + $$.closepath(); //#2325 + $j -= 4; //#2326 + } //#2326 + $$.fill(); //#2328 + $1.pixs = $1.pixsorig; //#2330 + }; //#2332 $1.drawlayerdots = function() { - $1.pixsorig = $1.pixs; - $1.pixs = $k[--$j]; - $$.newpath(); - for (var _3p = 0, _3o = $1.pixs.length - 1; _3p <= _3o; _3p += 1) { - $1.x = _3p % $1.pixx; - $1.y = ~~(_3p / $1.pixx); - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $1.xyget(); - if ($k[--$j] == 1) { - $$.moveto($f($1.x + .5), $f($1.pixy - $1.y - .5)); - $$.arc($f($1.x + .5), $f($1.pixy - $1.y - .5), $f(.5 - $1.inkspread), 0, 360, 1); - } - } - $$.fill(); - $1.pixs = $1.pixsorig; - }; - $$.save(); - $1.inkspread = $1.inkspread / 2; - $1.inkspreadh = $1.inkspreadh / 2; - $1.inkspreadv = $1.inkspreadv / 2; - var _46 = $$.currpos(); - $$.translate(_46.x, _46.y); - $$.scale($1.width / $1.pixx * 72, $1.height / $1.pixy * 72); - $$.moveto(0, 0); - $$.lineto($1.pixx, 0); - $$.lineto($1.pixx, $1.pixy); - $$.lineto(0, $1.pixy); - $$.closepath(); - if ($eq($1.colormap, "unset")) { - var _4H = new Map([ [ 1, $1.barcolor ] ]); - $1.colormap = _4H; - } - var _4I = $1.colormap; - for (var _4N = _4I.size, _4M = _4I.keys(), _4L = 0; _4L < _4N; _4L++) { - var _4J = _4M.next().value; - $$.setcolor(_4I.get(_4J)); - $1.key = _4J; - $k[$j++] = Infinity; - var _4O = $1.pixs; - for (var _4P = 0, _4Q = _4O.length; _4P < _4Q; _4P++) { - var _4T = $eq($get(_4O, _4P), $1.key) ? 1 : 0; - $k[$j++] = _4T; - } - var _4U = $a(); - $k[$j++] = _4U; - if ($1.dotty) { - $1.drawlayerdots(); - } else { - $1.drawlayer(); - } - } - if ($ne($1.textcolor, "unset")) { - $$.setcolor($1.textcolor); - } - if ($1.includetext) { - if ($eq($1.textxalign, "unset") && $eq($1.textyalign, "unset") && $eq($1.alttext, "")) { - $1.s = 0; - $1.fn = ""; - var _4c = $1.txt; - for (var _4d = 0, _4e = _4c.length; _4d < _4e; _4d++) { - $forall($get(_4c, _4d)); - var _4g = $k[--$j]; - var _4h = $k[--$j]; - $k[$j++] = _4h; - $k[$j++] = _4g; - if (_4g != $1.s || $ne(_4h, $1.fn)) { - var _4k = $k[--$j]; - var _4l = $k[--$j]; - $1.s = _4k; - $1.fn = _4l; - $$.selectfont(_4l, _4k); - } else { - $j -= 2; - } - var _4m = $k[--$j]; - $$.moveto($k[--$j], _4m); - $$.show($k[--$j], 0, 0); - } - } else { - $$.selectfont($1.textfont, $1.textsize); - if ($eq($1.alttext, "")) { - $k[$j++] = Infinity; - var _4s = $1.txt; - for (var _4t = 0, _4u = _4s.length; _4t < _4u; _4t++) { - $forall($get($get(_4s, _4t), 0)); - } - $1.txt = $a(); - $1.tstr = $s($1.txt.length); - for (var _52 = 0, _51 = $1.txt.length - 1; _52 <= _51; _52 += 1) { - $put($1.tstr, _52, $get($1.txt, _52)); - } - } else { - $1.tstr = $1.alttext; - } - if ($1.tstr.length == 0) { - $k[$j++] = 0; - } else { - $$.save(); - $$.newpath(); - $$.moveto(0, 0); - $$.charpath("0", false); - var _58 = $$.pathbbox(); - $$.restore(); - $k[$j++] = _58.ury; - } - $1.textascent = $k[--$j]; - var _5B = $$.stringwidth($1.tstr); - $1.textwidth = $f(_5B.w + ($1.tstr.length - 1) * $1.textgaps); - $1.textxpos = $f($1.textxoffset + $f($1.x - $1.textwidth) / 2); - if ($eq($1.textxalign, "left")) { - $1.textxpos = $1.textxoffset; - } - if ($eq($1.textxalign, "right")) { - $1.textxpos = $f($f($1.x - $1.textxoffset) - $1.textwidth); - } - if ($eq($1.textxalign, "offleft")) { - $1.textxpos = -$f($1.textwidth + $1.textxoffset); - } - if ($eq($1.textxalign, "offright")) { - $1.textxpos = $f($1.x + $1.textxoffset); - } - if ($eq($1.textxalign, "justify") && $1.textwidth < $1.x) { - $1.textxpos = 0; - $1.textgaps = $f($1.x - $1.textwidth) / ($1.tstr.length - 1); - } - $1.textypos = -$f($f($1.textyoffset + $1.textascent) + 1); - if ($eq($1.textyalign, "above")) { - $1.textypos = $f($f($1.textyoffset + $1.pixy) + 1); - } - if ($eq($1.textyalign, "center")) { - $1.textypos = $f($1.textyoffset + $f($1.pixy - $1.textascent) / 2); - } - $$.moveto($1.textxpos, $1.textypos); - $$.show($1.tstr, $1.textgaps, 0); - } - } - $$.restore(); + $1.pixsorig = $1.pixs; //#2336 + $1.pixs = $k[--$j]; //#2337 + $$.newpath(); //#2339 + for (var _3p = 0, _3o = $1.pixs.length - 1; _3p <= _3o; _3p += 1) { //#2347 + $1.x = _3p % $1.pixx; //#2341 + $1.y = ~~(_3p / $1.pixx); //#2342 + $k[$j++] = $1.x; //#2343 + $k[$j++] = $1.y; //#2343 + $1.xyget(); //#2343 + if ($k[--$j] == 1) { //#2346 + $$.moveto($f($1.x + 0.5), $f(($1.pixy - $1.y) - 0.5)); //#2344 + $$.arc($f($1.x + 0.5), $f(($1.pixy - $1.y) - 0.5), $f(0.5 - $1.inkspread), 0, 360, 1); //#2345 + } //#2345 + } //#2345 + $$.fill(); //#2348 + $1.pixs = $1.pixsorig; //#2350 + }; //#2352 + $$.save(); //#2354 + $1.inkspread = $1.inkspread / 2; //#2357 + $1.inkspreadh = $1.inkspreadh / 2; //#2358 + $1.inkspreadv = $1.inkspreadv / 2; //#2359 + var _46 = $$.currpos(); //#2360 + $$.translate(_46.x, _46.y); //#2360 + $$.scale(($1.width / $1.pixx) * 72, ($1.height / $1.pixy) * 72); //#2361 + $$.moveto(0, 0); //#2362 + $$.lineto($1.pixx, 0); //#2362 + $$.lineto($1.pixx, $1.pixy); //#2362 + $$.lineto(0, $1.pixy); //#2362 + $$.closepath(); //#2362 + if ($eq($1.colormap, "unset")) { //#2367 + var _4H = new Map([ + [1, $1.barcolor] + ]); //#2366 + $1.colormap = _4H; //#2366 + } //#2366 + var _4I = $1.colormap; //#2369 + for (var _4N = _4I.size, _4M = _4I.keys(), _4L = 0; _4L < _4N; _4L++) { //#2375 + var _4J = _4M.next().value; //#2375 + $$.setcolor(_4I.get(_4J)); //#2370 + $1.key = _4J; //#2371 + $k[$j++] = Infinity; //#2373 + var _4O = $1.pixs; //#2373 + for (var _4P = 0, _4Q = _4O.length; _4P < _4Q; _4P++) { //#2373 + var _4T = $eq($get(_4O, _4P), $1.key) ? 1 : 0; //#2373 + $k[$j++] = _4T; //#2373 + } //#2373 + var _4U = $a(); //#2373 + $k[$j++] = _4U; //#2374 + if ($1.dotty) { //#2374 + $1.drawlayerdots(); //#2374 + } else { //#2374 + $1.drawlayer(); //#2374 + } //#2374 + } //#2374 + if ($ne($1.textcolor, "unset")) { //#2378 + $$.setcolor($1.textcolor); //#2378 + } //#2378 + if ($1.includetext) { //#2435 + if (($eq($1.textxalign, "unset") && $eq($1.textyalign, "unset")) && $eq($1.alttext, "")) { //#2433 + $1.s = 0; //#2381 + $1.fn = ""; //#2381 + var _4c = $1.txt; //#2382 + for (var _4d = 0, _4e = _4c.length; _4d < _4e; _4d++) { //#2391 + $forall($get(_4c, _4d)); //#2383 + var _4g = $k[--$j]; //#2384 + var _4h = $k[--$j]; //#2384 + $k[$j++] = _4h; //#2389 + $k[$j++] = _4g; //#2389 + if ((_4g != $1.s) || $ne(_4h, $1.fn)) { //#2388 + var _4k = $k[--$j]; //#2385 + var _4l = $k[--$j]; //#2385 + $1.s = _4k; //#2385 + $1.fn = _4l; //#2385 + $$.selectfont(_4l, _4k); //#2386 + } else { //#2388 + $j -= 2; //#2388 + } //#2388 + var _4m = $k[--$j]; //#2390 + $$.moveto($k[--$j], _4m); //#2390 + $$.show($k[--$j], 0, 0); //#2390 + } //#2390 + } else { //#2433 + $$.selectfont($1.textfont, $1.textsize); //#2393 + if ($eq($1.alttext, "")) { //#2399 + $k[$j++] = Infinity; //#2395 + var _4s = $1.txt; //#2395 + for (var _4t = 0, _4u = _4s.length; _4t < _4u; _4t++) { //#2395 + $forall($get($get(_4s, _4t), 0)); //#2395 + } //#2395 + $1.txt = $a(); //#2395 + $1.tstr = $s($1.txt.length); //#2396 + for (var _52 = 0, _51 = $1.txt.length - 1; _52 <= _51; _52 += 1) { //#2397 + $put($1.tstr, _52, $get($1.txt, _52)); //#2397 + } //#2397 + } else { //#2399 + $1.tstr = $1.alttext; //#2399 + } //#2399 + if ($1.tstr.length == 0) { //#2409 + $k[$j++] = 0; //#2404 + } else { //#2409 + $$.save(); //#2406 + $$.newpath(); //#2407 + $$.moveto(0, 0); //#2407 + $$.charpath("0", false); //#2407 + var _58 = $$.pathbbox(); //#2407 + $$.restore(); //#2409 + $k[$j++] = _58.ury; //#2409 + } //#2409 + $1.textascent = $k[--$j]; //#2418 + var _5B = $$.stringwidth($1.tstr); //#2419 + $1.textwidth = $f(_5B.w + (($1.tstr.length - 1) * $1.textgaps)); //#2419 + $1.textxpos = $f($1.textxoffset + ($f($1.x - $1.textwidth) / 2)); //#2421 + if ($eq($1.textxalign, "left")) { //#2422 + $1.textxpos = $1.textxoffset; //#2422 + } //#2422 + if ($eq($1.textxalign, "right")) { //#2423 + $1.textxpos = $f($f($1.x - $1.textxoffset) - $1.textwidth); //#2423 + } //#2423 + if ($eq($1.textxalign, "offleft")) { //#2424 + $1.textxpos = -$f($1.textwidth + $1.textxoffset); //#2424 + } //#2424 + if ($eq($1.textxalign, "offright")) { //#2425 + $1.textxpos = $f($1.x + $1.textxoffset); //#2425 + } //#2425 + if ($eq($1.textxalign, "justify") && ($1.textwidth < $1.x)) { //#2429 + $1.textxpos = 0; //#2427 + $1.textgaps = $f($1.x - $1.textwidth) / ($1.tstr.length - 1); //#2428 + } //#2428 + $1.textypos = -($f($f($1.textyoffset + $1.textascent) + 1)); //#2430 + if ($eq($1.textyalign, "above")) { //#2431 + $1.textypos = $f($f($1.textyoffset + $1.pixy) + 1); //#2431 + } //#2431 + if ($eq($1.textyalign, "center")) { //#2432 + $1.textypos = $f($1.textyoffset + ($f($1.pixy - $1.textascent) / 2)); //#2432 + } //#2432 + $$.moveto($1.textxpos, $1.textypos); //#2433 + $$.show($1.tstr, $1.textgaps, 0); //#2433 + } //#2433 + } //#2433 + $$.restore(); //#2437 }; $0.ean5 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 12; - $1.textxoffset = 0; - $1.textyoffset = "unset"; - $1.height = .7; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.height = +$1.height; - $1.textxoffset = +$1.textxoffset; - if ($eq($1.textyoffset, "unset")) { - $1.textyoffset = $f($1.height * 72 + 1); - } else { - $1.textyoffset = +$1.textyoffset; - } - if ($1.barcode.length != 5) { - $k[$j++] = "bwipp.ean5badLength"; - $k[$j++] = "EAN-5 add-on must be 5 digits"; - $0.raiseerror(); - } - $forall($1.barcode, function() { - var _E = $k[--$j]; - if (_E < 48 || _E > 57) { - $k[$j++] = "bwipp.ean5badCharacter"; - $k[$j++] = "EAN-5 add-on must contain only digits"; - $0.raiseerror(); - } - }); - $1.encs = $a([ "3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "112", "11" ]); - $1.barchars = "0123456789"; - $1.mirrormaps = $a([ "11000", "10100", "10010", "10001", "01100", "00110", "00011", "01010", "01001", "00101" ]); - $1.checksum = 0; - for (var _H = 0; _H <= 4; _H += 1) { - $1.i = _H; - $1.barchar = $f($get($1.barcode, $1.i) - 48); - if ($1.i % 2 == 0) { - $1.checksum = $f($1.barchar * 3 + $1.checksum); - } else { - $1.checksum = $f($1.barchar * 9 + $1.checksum); - } - } - $1.checksum = $1.checksum % 10; - $1.mirrormap = $get($1.mirrormaps, $1.checksum); - $1.sbs = $s(31); - $1.txt = $a(5); - for (var _W = 0; _W <= 4; _W += 1) { - $1.i = _W; - if ($1.i == 0) { - $puti($1.sbs, 0, $get($1.encs, 10)); - } else { - $puti($1.sbs, ($1.i - 1) * 6 + 7, $get($1.encs, 11)); - } - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - if ($get($1.mirrormap, $1.i) == 49) { - $1.enclen = $1.enc.length; - $1.revenc = $s($1.enclen); - for (var _v = 0, _u = $1.enclen - 1; _v <= _u; _v += 1) { - $1.j = _v; - $1.char = $get($1.enc, $1.j); - $put($1.revenc, $1.enclen - $1.j - 1, $1.char); - } - $1.enc = $1.revenc; - } - $puti($1.sbs, $1.i * 6 + 3, $1.enc); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $f(($1.i - 1) * 9 + 13 + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize ])); - } - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _1I = $1.sbs; - for (var _1J = 0, _1K = _1I.length; _1J < _1K; _1J++) { - $k[$j++] = $get(_1I, _1J) - 48; - } - var _1M = $a(); - $k[$j++] = Infinity; - for (var _1N = 0, _1O = 16; _1N < _1O; _1N++) { - $k[$j++] = $1.height; - } - var _1Q = $a(); - $k[$j++] = Infinity; - for (var _1R = 0, _1S = 16; _1R < _1S; _1R++) { - $k[$j++] = 0; - } - var _1T = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _1M; - $k[$j++] = "bhs"; - $k[$j++] = _1Q; - $k[$j++] = "bbs"; - $k[$j++] = _1T; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - $k[$j++] = "guardrightpos"; - $k[$j++] = 10; - $k[$j++] = "guardrightypos"; - $k[$j++] = $f($1.textyoffset + 4); - $k[$j++] = "bordertop"; - $k[$j++] = 10; - var _1Y = $d(); - $k[$j++] = _1Y; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#2555 + $1.options = $k[--$j]; //#2557 + $1.barcode = $k[--$j]; //#2558 + $1.dontdraw = false; //#2560 + $1.includetext = false; //#2561 + $1.textfont = "OCR-B"; //#2562 + $1.textsize = 12; //#2563 + $1.textxoffset = 0; //#2564 + $1.textyoffset = "unset"; //#2565 + $1.height = 0.7; //#2566 + $forall($1.options, function() { //#2577 + var _3 = $k[--$j]; //#2577 + $1[$k[--$j]] = _3; //#2577 + }); //#2577 + $1.textfont = "" + $1.textfont; //#2579 + $1.textsize = +$1.textsize; //#2580 + $1.height = +$1.height; //#2581 + $1.textxoffset = +$1.textxoffset; //#2582 + if ($eq($1.textyoffset, "unset")) { //#2586 + $1.textyoffset = $f(($1.height * 72) + 1); //#2584 + } else { //#2586 + $1.textyoffset = +$1.textyoffset; //#2586 + } //#2586 + if ($1.barcode.length != 5) { //#2592 + $k[$j++] = 'bwipp.ean5badLength'; //#2591 + $k[$j++] = "EAN-5 add-on must be 5 digits"; //#2591 + $0.raiseerror(); //#2591 + } //#2591 + $forall($1.barcode, function() { //#2597 + var _E = $k[--$j]; //#2594 + if ((_E < 48) || (_E > 57)) { //#2596 + $k[$j++] = 'bwipp.ean5badCharacter'; //#2595 + $k[$j++] = "EAN-5 add-on must contain only digits"; //#2595 + $0.raiseerror(); //#2595 + } //#2595 + }); //#2595 + $1.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "112", "11"]); //#2604 + $1.barchars = "0123456789"; //#2607 + $1.mirrormaps = $a(["11000", "10100", "10010", "10001", "01100", "00110", "00011", "01010", "01001", "00101"]); //#2613 + $1.checksum = 0; //#2614 + for (var _H = 0; _H <= 4; _H += 1) { //#2623 + $1.i = _H; //#2616 + $1.barchar = $f($get($1.barcode, $1.i) - 48); //#2617 + if (($1.i % 2) == 0) { //#2621 + $1.checksum = $f(($1.barchar * 3) + $1.checksum); //#2619 + } else { //#2621 + $1.checksum = $f(($1.barchar * 9) + $1.checksum); //#2621 + } //#2621 + } //#2621 + $1.checksum = $1.checksum % 10; //#2624 + $1.mirrormap = $get($1.mirrormaps, $1.checksum); //#2625 + $1.sbs = $s(31); //#2627 + $1.txt = $a(5); //#2628 + for (var _W = 0; _W <= 4; _W += 1) { //#2658 + $1.i = _W; //#2631 + if ($1.i == 0) { //#2637 + $puti($1.sbs, 0, $get($1.encs, 10)); //#2635 + } else { //#2637 + $puti($1.sbs, (($1.i - 1) * 6) + 7, $get($1.encs, 11)); //#2637 + } //#2637 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#2641 + $j--; //#2642 + $1.indx = $k[--$j].length; //#2643 + $j -= 2; //#2644 + $1.enc = $get($1.encs, $1.indx); //#2645 + if ($get($1.mirrormap, $1.i) == 49) { //#2655 + $1.enclen = $1.enc.length; //#2647 + $1.revenc = $s($1.enclen); //#2648 + for (var _v = 0, _u = $1.enclen - 1; _v <= _u; _v += 1) { //#2653 + $1.j = _v; //#2650 + $1.char = $get($1.enc, $1.j); //#2651 + $put($1.revenc, ($1.enclen - $1.j) - 1, $1.char); //#2652 + } //#2652 + $1.enc = $1.revenc; //#2654 + } //#2654 + $puti($1.sbs, ($1.i * 6) + 3, $1.enc); //#2656 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $f(((($1.i - 1) * 9) + 13) + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize])); //#2657 + } //#2657 + $k[$j++] = Infinity; //#2672 + $k[$j++] = Infinity; //#2663 + var _1I = $1.sbs; //#2663 + for (var _1J = 0, _1K = _1I.length; _1J < _1K; _1J++) { //#2663 + $k[$j++] = $get(_1I, _1J) - 48; //#2663 + } //#2663 + var _1M = $a(); //#2663 + $k[$j++] = Infinity; //#2664 + for (var _1N = 0, _1O = 16; _1N < _1O; _1N++) { //#2664 + $k[$j++] = $1.height; //#2664 + } //#2664 + var _1Q = $a(); //#2664 + $k[$j++] = Infinity; //#2665 + for (var _1R = 0, _1S = 16; _1R < _1S; _1R++) { //#2665 + $k[$j++] = 0; //#2665 + } //#2665 + var _1T = $a(); //#2665 + $k[$j++] = 'ren'; //#2668 + $k[$j++] = $0.renlinear; //#2668 + $k[$j++] = 'sbs'; //#2668 + $k[$j++] = _1M; //#2668 + $k[$j++] = 'bhs'; //#2668 + $k[$j++] = _1Q; //#2668 + $k[$j++] = 'bbs'; //#2668 + $k[$j++] = _1T; //#2668 + if ($1.includetext) { //#2668 + $k[$j++] = 'txt'; //#2667 + $k[$j++] = $1.txt; //#2667 + } //#2667 + $k[$j++] = 'opt'; //#2672 + $k[$j++] = $1.options; //#2672 + $k[$j++] = 'guardrightpos'; //#2672 + $k[$j++] = 10; //#2672 + $k[$j++] = 'guardrightypos'; //#2672 + $k[$j++] = $f($1.textyoffset + 4); //#2672 + $k[$j++] = 'bordertop'; //#2672 + $k[$j++] = 10; //#2672 + var _1Y = $d(); //#2672 + $k[$j++] = _1Y; //#2675 + if (!$1.dontdraw) { //#2675 + $0.renlinear(); //#2675 + } //#2675 }; $0.ean2 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 12; - $1.textxoffset = 0; - $1.textyoffset = "unset"; - $1.height = .7; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.height = +$1.height; - $1.textxoffset = +$1.textxoffset; - if ($eq($1.textyoffset, "unset")) { - $1.textyoffset = $f($1.height * 72 + 1); - } else { - $1.textyoffset = +$1.textyoffset; - } - if ($1.barcode.length != 2) { - $k[$j++] = "bwipp.ean2badLength"; - $k[$j++] = "EAN-2 add-on must be 2 digits"; - $0.raiseerror(); - } - $forall($1.barcode, function() { - var _E = $k[--$j]; - if (_E < 48 || _E > 57) { - $k[$j++] = "bwipp.ean2badCharacter"; - $k[$j++] = "EAN-2 add-on must contain only digits"; - $0.raiseerror(); - } - }); - $1.encs = $a([ "3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "112", "11" ]); - $1.barchars = "0123456789"; - $1.mirrormap = $get($a([ "00", "01", "10", "11" ]), ~~$z($geti($1.barcode, 0, 2)) % 4); - $1.sbs = $s(13); - $1.txt = $a(2); - for (var _M = 0; _M <= 1; _M += 1) { - $1.i = _M; - if ($1.i == 0) { - $puti($1.sbs, 0, $get($1.encs, 10)); - } else { - $puti($1.sbs, ($1.i - 1) * 6 + 7, $get($1.encs, 11)); - } - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - if ($get($1.mirrormap, $1.i) == 49) { - $1.enclen = $1.enc.length; - $1.revenc = $s($1.enclen); - for (var _l = 0, _k = $1.enclen - 1; _l <= _k; _l += 1) { - $1.j = _l; - $1.char = $get($1.enc, $1.j); - $put($1.revenc, $1.enclen - $1.j - 1, $1.char); - } - $1.enc = $1.revenc; - } - $puti($1.sbs, $1.i * 6 + 3, $1.enc); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $f(($1.i - 1) * 9 + 13 + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize ])); - } - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _18 = $1.sbs; - for (var _19 = 0, _1A = _18.length; _19 < _1A; _19++) { - $k[$j++] = $get(_18, _19) - 48; - } - var _1C = $a(); - $k[$j++] = Infinity; - for (var _1D = 0, _1E = 12; _1D < _1E; _1D++) { - $k[$j++] = $1.height; - } - var _1G = $a(); - $k[$j++] = Infinity; - for (var _1H = 0, _1I = 12; _1H < _1I; _1H++) { - $k[$j++] = 0; - } - var _1J = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _1C; - $k[$j++] = "bhs"; - $k[$j++] = _1G; - $k[$j++] = "bbs"; - $k[$j++] = _1J; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - $k[$j++] = "guardrightpos"; - $k[$j++] = 10; - $k[$j++] = "guardrightypos"; - $k[$j++] = $f($1.textyoffset + 4); - $k[$j++] = "bordertop"; - $k[$j++] = 10; - var _1O = $d(); - $k[$j++] = _1O; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#2704 + $1.options = $k[--$j]; //#2706 + $1.barcode = $k[--$j]; //#2707 + $1.dontdraw = false; //#2709 + $1.includetext = false; //#2710 + $1.textfont = "OCR-B"; //#2711 + $1.textsize = 12; //#2712 + $1.textxoffset = 0; //#2713 + $1.textyoffset = "unset"; //#2714 + $1.height = 0.7; //#2715 + $forall($1.options, function() { //#2726 + var _3 = $k[--$j]; //#2726 + $1[$k[--$j]] = _3; //#2726 + }); //#2726 + $1.textfont = "" + $1.textfont; //#2728 + $1.textsize = +$1.textsize; //#2729 + $1.height = +$1.height; //#2730 + $1.textxoffset = +$1.textxoffset; //#2731 + if ($eq($1.textyoffset, "unset")) { //#2735 + $1.textyoffset = $f(($1.height * 72) + 1); //#2733 + } else { //#2735 + $1.textyoffset = +$1.textyoffset; //#2735 + } //#2735 + if ($1.barcode.length != 2) { //#2741 + $k[$j++] = 'bwipp.ean2badLength'; //#2740 + $k[$j++] = "EAN-2 add-on must be 2 digits"; //#2740 + $0.raiseerror(); //#2740 + } //#2740 + $forall($1.barcode, function() { //#2746 + var _E = $k[--$j]; //#2743 + if ((_E < 48) || (_E > 57)) { //#2745 + $k[$j++] = 'bwipp.ean2badCharacter'; //#2744 + $k[$j++] = "EAN-2 add-on must contain only digits"; //#2744 + $0.raiseerror(); //#2744 + } //#2744 + }); //#2744 + $1.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "112", "11"]); //#2753 + $1.barchars = "0123456789"; //#2756 + $1.mirrormap = $get($a(["00", "01", "10", "11"]), (~~$z($geti($1.barcode, 0, 2))) % 4); //#2759 + $1.sbs = $s(13); //#2761 + $1.txt = $a(2); //#2762 + for (var _M = 0; _M <= 1; _M += 1) { //#2792 + $1.i = _M; //#2765 + if ($1.i == 0) { //#2771 + $puti($1.sbs, 0, $get($1.encs, 10)); //#2769 + } else { //#2771 + $puti($1.sbs, (($1.i - 1) * 6) + 7, $get($1.encs, 11)); //#2771 + } //#2771 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#2775 + $j--; //#2776 + $1.indx = $k[--$j].length; //#2777 + $j -= 2; //#2778 + $1.enc = $get($1.encs, $1.indx); //#2779 + if ($get($1.mirrormap, $1.i) == 49) { //#2789 + $1.enclen = $1.enc.length; //#2781 + $1.revenc = $s($1.enclen); //#2782 + for (var _l = 0, _k = $1.enclen - 1; _l <= _k; _l += 1) { //#2787 + $1.j = _l; //#2784 + $1.char = $get($1.enc, $1.j); //#2785 + $put($1.revenc, ($1.enclen - $1.j) - 1, $1.char); //#2786 + } //#2786 + $1.enc = $1.revenc; //#2788 + } //#2788 + $puti($1.sbs, ($1.i * 6) + 3, $1.enc); //#2790 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $f(((($1.i - 1) * 9) + 13) + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize])); //#2791 + } //#2791 + $k[$j++] = Infinity; //#2806 + $k[$j++] = Infinity; //#2797 + var _18 = $1.sbs; //#2797 + for (var _19 = 0, _1A = _18.length; _19 < _1A; _19++) { //#2797 + $k[$j++] = $get(_18, _19) - 48; //#2797 + } //#2797 + var _1C = $a(); //#2797 + $k[$j++] = Infinity; //#2798 + for (var _1D = 0, _1E = 12; _1D < _1E; _1D++) { //#2798 + $k[$j++] = $1.height; //#2798 + } //#2798 + var _1G = $a(); //#2798 + $k[$j++] = Infinity; //#2799 + for (var _1H = 0, _1I = 12; _1H < _1I; _1H++) { //#2799 + $k[$j++] = 0; //#2799 + } //#2799 + var _1J = $a(); //#2799 + $k[$j++] = 'ren'; //#2802 + $k[$j++] = $0.renlinear; //#2802 + $k[$j++] = 'sbs'; //#2802 + $k[$j++] = _1C; //#2802 + $k[$j++] = 'bhs'; //#2802 + $k[$j++] = _1G; //#2802 + $k[$j++] = 'bbs'; //#2802 + $k[$j++] = _1J; //#2802 + if ($1.includetext) { //#2802 + $k[$j++] = 'txt'; //#2801 + $k[$j++] = $1.txt; //#2801 + } //#2801 + $k[$j++] = 'opt'; //#2806 + $k[$j++] = $1.options; //#2806 + $k[$j++] = 'guardrightpos'; //#2806 + $k[$j++] = 10; //#2806 + $k[$j++] = 'guardrightypos'; //#2806 + $k[$j++] = $f($1.textyoffset + 4); //#2806 + $k[$j++] = 'bordertop'; //#2806 + $k[$j++] = 10; //#2806 + var _1O = $d(); //#2806 + $k[$j++] = _1O; //#2809 + if (!$1.dontdraw) { //#2809 + $0.renlinear(); //#2809 + } //#2809 }; $0.ean13 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 12; - $1.textxoffset = -10; - $1.textyoffset = -4; - $1.height = 1; - $1.addongap = 12; - $1.addontextfont = "unset"; - $1.addontextsize = "unset"; - $1.addontextxoffset = "unset"; - $1.addontextyoffset = "unset"; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.addongap = +$1.addongap; - if ($ne($1.addontextfont, "unset")) { - $1.addontextfont = "" + $1.addontextfont; - } - if ($ne($1.addontextsize, "unset")) { - $1.addontextsize = +$1.addontextsize; - } - if ($ne($1.addontextxoffset, "unset")) { - $1.addontextxoffset = +$1.addontextxoffset; - } - if ($ne($1.addontextyoffset, "unset")) { - $1.addontextyoffset = +$1.addontextyoffset; - } - $search($1.barcode, " "); - if ($k[--$j]) { - $1.barcode = $k[--$j]; - $j--; - $1.addon = $k[--$j]; - } else { - $j--; - $1.addon = ""; - } - if ($1.barcode.length != 12 && $1.barcode.length != 13) { - $k[$j++] = "bwipp.ean13badLength"; - $k[$j++] = "EAN-13 must be 12 or 13 digits"; - $0.raiseerror(); - } - $forall($1.barcode, function() { - var _Q = $k[--$j]; - if (_Q < 48 || _Q > 57) { - $k[$j++] = "bwipp.ean13badCharacter"; - $k[$j++] = "EAN-13 must contain only digits"; - $0.raiseerror(); - } - }); - if ($1.addon.length != 0 && $1.addon.length != 2 && $1.addon.length != 5) { - $k[$j++] = "bwipp.ean13badAddOnLength"; - $k[$j++] = "Add-on for EAN-13 must be 2 or 5 digits"; - $0.raiseerror(); - } - $1.pad = $s(13); - $1.checksum = 0; - for (var _V = 0; _V <= 11; _V += 1) { - $1.i = _V; - $1.barchar = $f($get($1.barcode, $1.i) - 48); - if ($1.i % 2 == 0) { - $1.checksum = $f($1.barchar + $1.checksum); - } else { - $1.checksum = $f($1.barchar * 3 + $1.checksum); - } - } - $1.checksum = $f(10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 13) { - if ($get($1.barcode, 12) != $f($1.checksum + 48)) { - $k[$j++] = "bwipp.ean13badCheckDigit"; - $k[$j++] = "Incorrect EAN-13 check digit provided"; - $0.raiseerror(); - } - } - $puti($1.pad, 0, $1.barcode); - $put($1.pad, 12, $f($1.checksum + 48)); - $1.barcode = $1.pad; - $1.encs = $a([ "3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111" ]); - $1.barchars = "0123456789"; - $1.mirrormaps = $a([ "000000", "001011", "001101", "001110", "010011", "011001", "011100", "010101", "010110", "011010" ]); - $1.sbs = $s(59); - $1.txt = $a(13); - $puti($1.sbs, 0, $get($1.encs, 10)); - $1.mirrormap = $get($1.mirrormaps, $get($1.barcode, 0) - 48); - $put($1.txt, 0, $a([ $geti($1.barcode, 0, 1), $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ])); - for (var _17 = 1; _17 <= 6; _17 += 1) { - $1.i = _17; - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - if ($get($1.mirrormap, $1.i - 1) == 49) { - $1.enclen = $1.enc.length; - $1.revenc = $s($1.enclen); - for (var _1O = 0, _1N = $1.enclen - 1; _1O <= _1N; _1O += 1) { - $1.j = _1O; - $1.char = $get($1.enc, $1.j); - $put($1.revenc, $1.enclen - $1.j - 1, $1.char); - } - $1.enc = $1.revenc; - } - $puti($1.sbs, ($1.i - 1) * 4 + 3, $1.enc); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $f(($1.i - 1) * 7 + 14 + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize ])); - } - $puti($1.sbs, (7 - 1) * 4 + 3, $get($1.encs, 11)); - for (var _1o = 7; _1o <= 12; _1o += 1) { - $1.i = _1o; - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, ($1.i - 1) * 4 + 8, $1.enc); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $f(($1.i - 1) * 7 + 18 + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize ])); - } - $puti($1.sbs, 56, $get($1.encs, 12)); - $k[$j++] = Infinity; - var _2E = $1.sbs; - for (var _2F = 0, _2G = _2E.length; _2F < _2G; _2F++) { - $k[$j++] = $get(_2E, _2F) - 48; - } - $1.sbs = $a(); - if ($1.includetext) { - $k[$j++] = Infinity; - $k[$j++] = $1.height; - $k[$j++] = $1.height; - for (var _2M = 0, _2N = 12; _2M < _2N; _2M++) { - $k[$j++] = $f($1.height - .075); - } - $k[$j++] = $1.height; - $k[$j++] = $1.height; - for (var _2R = 0, _2S = 12; _2R < _2S; _2R++) { - $k[$j++] = $f($1.height - .075); - } - $k[$j++] = $1.height; - $k[$j++] = $1.height; - $1.bhs = $a(); - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = 0; - for (var _2X = 0, _2Y = 12; _2X < _2Y; _2X++) { - $k[$j++] = .075; - } - $k[$j++] = 0; - $k[$j++] = 0; - for (var _2Z = 0, _2a = 12; _2Z < _2a; _2Z++) { - $k[$j++] = .075; - } - $k[$j++] = 0; - $k[$j++] = 0; - $1.bbs = $a(); - } else { - $k[$j++] = Infinity; - for (var _2c = 0, _2d = 30; _2c < _2d; _2c++) { - $k[$j++] = $1.height; - } - $1.bhs = $a(); - $k[$j++] = Infinity; - for (var _2g = 0, _2h = 30; _2g < _2h; _2g++) { - $k[$j++] = 0; - } - $1.bbs = $a(); - $1.txt = $a([]); - } - $1.guardrightypos = 0; - if ($ne($1.addon, "")) { - $k[$j++] = Infinity; - $k[$j++] = "dontdraw"; - $k[$j++] = true; - $k[$j++] = "includetext"; - $k[$j++] = true; - $k[$j++] = "height"; - $k[$j++] = $f($1.height - .15); - $k[$j++] = "textxoffset"; - if ($1.addontextxoffset != "unset") { - $k[$j++] = $1.addontextxoffset; - } else { - $k[$j++] = $f(95 + $1.addongap); - } - if ($1.addontextyoffset != "unset") { - $k[$j++] = "textyoffset"; - $k[$j++] = $1.addontextyoffset; - } - var _2s = $1.addontextsize != "unset" ? $1.addontextsize : $1.textsize; - var _2u = $ne($1.addontextfont, "unset") ? $1.addontextfont : $1.textfont; - $k[$j++] = "textsize"; - $k[$j++] = _2s; - $k[$j++] = "textfont"; - $k[$j++] = _2u; - $1.addopts = $d(); - if ($1.addon.length == 2) { - $k[$j++] = $1.addon; - $k[$j++] = $1.addopts; - $0.ean2(); - } - if ($1.addon.length == 5) { - $k[$j++] = $1.addon; - $k[$j++] = $1.addopts; - $0.ean5(); - } - $1.addcode = $k[--$j]; - $k[$j++] = Infinity; - $aload($1.sbs); - $k[$j++] = $1.addongap; - $aload($get($1.addcode, "sbs")); - $1.sbs = $a(); - $k[$j++] = Infinity; - $aload($1.bhs); - $forall($get($1.addcode, "bhs"), function() { - var _3B = $k[--$j]; - $k[$j++] = $f(_3B - .075); - }); - $1.bhs = $a(); - $k[$j++] = Infinity; - $aload($1.bbs); - $forall($get($1.addcode, "bbs"), function() { - var _3G = $k[--$j]; - $k[$j++] = $f(_3G + .075); - }); - $1.bbs = $a(); - $k[$j++] = Infinity; - $aload($1.txt); - $aload($get($1.addcode, "txt")); - $1.txt = $a(); - $1.guardrightypos = $f($1.height * 72 - 6); - } - var _3T = new Map([ [ "ren", $0.renlinear ], [ "sbs", $1.sbs ], [ "bhs", $1.bhs ], [ "bbs", $1.bbs ], [ "txt", $1.txt ], [ "opt", $1.options ], [ "guardrightpos", 10 ], [ "guardrightypos", $1.guardrightypos ], [ "borderbottom", 5 ] ]); - $k[$j++] = _3T; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#2840 + $1.options = $k[--$j]; //#2842 + $1.barcode = $k[--$j]; //#2843 + $1.dontdraw = false; //#2845 + $1.includetext = false; //#2846 + $1.textfont = "OCR-B"; //#2847 + $1.textsize = 12; //#2848 + $1.textxoffset = -10; //#2849 + $1.textyoffset = -4; //#2850 + $1.height = 1; //#2851 + $1.addongap = 12; //#2852 + $1.addontextfont = "unset"; //#2853 + $1.addontextsize = "unset"; //#2854 + $1.addontextxoffset = "unset"; //#2855 + $1.addontextyoffset = "unset"; //#2856 + $forall($1.options, function() { //#2867 + var _3 = $k[--$j]; //#2867 + $1[$k[--$j]] = _3; //#2867 + }); //#2867 + $1.textfont = "" + $1.textfont; //#2869 + $1.textsize = +$1.textsize; //#2870 + $1.textxoffset = +$1.textxoffset; //#2871 + $1.textyoffset = +$1.textyoffset; //#2872 + $1.height = +$1.height; //#2873 + $1.addongap = +$1.addongap; //#2874 + if ($ne($1.addontextfont, "unset")) { //#2875 + $1.addontextfont = "" + $1.addontextfont; //#2875 + } //#2875 + if ($ne($1.addontextsize, "unset")) { //#2876 + $1.addontextsize = +$1.addontextsize; //#2876 + } //#2876 + if ($ne($1.addontextxoffset, "unset")) { //#2877 + $1.addontextxoffset = +$1.addontextxoffset; //#2877 + } //#2877 + if ($ne($1.addontextyoffset, "unset")) { //#2878 + $1.addontextyoffset = +$1.addontextyoffset; //#2878 + } //#2878 + $search($1.barcode, " "); //#2881 + if ($k[--$j]) { //#2887 + $1.barcode = $k[--$j]; //#2882 + $j--; //#2883 + $1.addon = $k[--$j]; //#2884 + } else { //#2887 + $j--; //#2886 + $1.addon = ""; //#2887 + } //#2887 + if (($1.barcode.length != 12) && ($1.barcode.length != 13)) { //#2893 + $k[$j++] = 'bwipp.ean13badLength'; //#2892 + $k[$j++] = "EAN-13 must be 12 or 13 digits"; //#2892 + $0.raiseerror(); //#2892 + } //#2892 + $forall($1.barcode, function() { //#2898 + var _Q = $k[--$j]; //#2895 + if ((_Q < 48) || (_Q > 57)) { //#2897 + $k[$j++] = 'bwipp.ean13badCharacter'; //#2896 + $k[$j++] = "EAN-13 must contain only digits"; //#2896 + $0.raiseerror(); //#2896 + } //#2896 + }); //#2896 + if ((($1.addon.length != 0) && ($1.addon.length != 2)) && ($1.addon.length != 5)) { //#2901 + $k[$j++] = 'bwipp.ean13badAddOnLength'; //#2900 + $k[$j++] = "Add-on for EAN-13 must be 2 or 5 digits"; //#2900 + $0.raiseerror(); //#2900 + } //#2900 + $1.pad = $s(13); //#2904 + $1.checksum = 0; //#2905 + for (var _V = 0; _V <= 11; _V += 1) { //#2914 + $1.i = _V; //#2907 + $1.barchar = $f($get($1.barcode, $1.i) - 48); //#2908 + if (($1.i % 2) == 0) { //#2912 + $1.checksum = $f($1.barchar + $1.checksum); //#2910 + } else { //#2912 + $1.checksum = $f(($1.barchar * 3) + $1.checksum); //#2912 + } //#2912 + } //#2912 + $1.checksum = ($f(10 - ($1.checksum % 10))) % 10; //#2915 + if ($1.barcode.length == 13) { //#2920 + if ($get($1.barcode, 12) != $f($1.checksum + 48)) { //#2919 + $k[$j++] = 'bwipp.ean13badCheckDigit'; //#2918 + $k[$j++] = "Incorrect EAN-13 check digit provided"; //#2918 + $0.raiseerror(); //#2918 + } //#2918 + } //#2918 + $puti($1.pad, 0, $1.barcode); //#2921 + $put($1.pad, 12, $f($1.checksum + 48)); //#2922 + $1.barcode = $1.pad; //#2923 + $1.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111"]); //#2930 + $1.barchars = "0123456789"; //#2933 + $1.mirrormaps = $a(["000000", "001011", "001101", "001110", "010011", "011001", "011100", "010101", "010110", "011010"]); //#2939 + $1.sbs = $s(59); //#2941 + $1.txt = $a(13); //#2942 + $puti($1.sbs, 0, $get($1.encs, 10)); //#2945 + $1.mirrormap = $get($1.mirrormaps, $get($1.barcode, 0) - 48); //#2948 + $put($1.txt, 0, $a([$geti($1.barcode, 0, 1), $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])); //#2949 + for (var _17 = 1; _17 <= 6; _17 += 1) { //#2972 + $1.i = _17; //#2954 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#2955 + $j--; //#2956 + $1.indx = $k[--$j].length; //#2957 + $j -= 2; //#2958 + $1.enc = $get($1.encs, $1.indx); //#2959 + if ($get($1.mirrormap, $1.i - 1) == 49) { //#2969 + $1.enclen = $1.enc.length; //#2961 + $1.revenc = $s($1.enclen); //#2962 + for (var _1O = 0, _1N = $1.enclen - 1; _1O <= _1N; _1O += 1) { //#2967 + $1.j = _1O; //#2964 + $1.char = $get($1.enc, $1.j); //#2965 + $put($1.revenc, ($1.enclen - $1.j) - 1, $1.char); //#2966 + } //#2966 + $1.enc = $1.revenc; //#2968 + } //#2968 + $puti($1.sbs, (($1.i - 1) * 4) + 3, $1.enc); //#2970 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $f(((($1.i - 1) * 7) + 14) + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize])); //#2971 + } //#2971 + $puti($1.sbs, ((7 - 1) * 4) + 3, $get($1.encs, 11)); //#2975 + for (var _1o = 7; _1o <= 12; _1o += 1) { //#2988 + $1.i = _1o; //#2980 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#2981 + $j--; //#2982 + $1.indx = $k[--$j].length; //#2983 + $j -= 2; //#2984 + $1.enc = $get($1.encs, $1.indx); //#2985 + $puti($1.sbs, (($1.i - 1) * 4) + 8, $1.enc); //#2986 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $f(((($1.i - 1) * 7) + 18) + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize])); //#2987 + } //#2987 + $puti($1.sbs, 56, $get($1.encs, 12)); //#2991 + $k[$j++] = Infinity; //#2993 + var _2E = $1.sbs; //#2993 + for (var _2F = 0, _2G = _2E.length; _2F < _2G; _2F++) { //#2993 + $k[$j++] = $get(_2E, _2F) - 48; //#2993 + } //#2993 + $1.sbs = $a(); //#2993 + if ($1.includetext) { //#3000 + $k[$j++] = Infinity; //#2995 + $k[$j++] = $1.height; //#2995 + $k[$j++] = $1.height; //#2995 + for (var _2M = 0, _2N = 12; _2M < _2N; _2M++) { //#2995 + $k[$j++] = $f($1.height - 0.075); //#2995 + } //#2995 + $k[$j++] = $1.height; //#2995 + $k[$j++] = $1.height; //#2995 + for (var _2R = 0, _2S = 12; _2R < _2S; _2R++) { //#2995 + $k[$j++] = $f($1.height - 0.075); //#2995 + } //#2995 + $k[$j++] = $1.height; //#2995 + $k[$j++] = $1.height; //#2995 + $1.bhs = $a(); //#2995 + $k[$j++] = Infinity; //#2996 + $k[$j++] = 0; //#2996 + $k[$j++] = 0; //#2996 + for (var _2X = 0, _2Y = 12; _2X < _2Y; _2X++) { //#2996 + $k[$j++] = 0.075; //#2996 + } //#2996 + $k[$j++] = 0; //#2996 + $k[$j++] = 0; //#2996 + for (var _2Z = 0, _2a = 12; _2Z < _2a; _2Z++) { //#2996 + $k[$j++] = 0.075; //#2996 + } //#2996 + $k[$j++] = 0; //#2996 + $k[$j++] = 0; //#2996 + $1.bbs = $a(); //#2996 + } else { //#3000 + $k[$j++] = Infinity; //#2998 + for (var _2c = 0, _2d = 30; _2c < _2d; _2c++) { //#2998 + $k[$j++] = $1.height; //#2998 + } //#2998 + $1.bhs = $a(); //#2998 + $k[$j++] = Infinity; //#2999 + for (var _2g = 0, _2h = 30; _2g < _2h; _2g++) { //#2999 + $k[$j++] = 0; //#2999 + } //#2999 + $1.bbs = $a(); //#2999 + $1.txt = $a([]); //#3000 + } //#3000 + $1.guardrightypos = 0; //#3002 + if ($ne($1.addon, "")) { //#3023 + $k[$j++] = Infinity; //#3013 + $k[$j++] = 'dontdraw'; //#3010 + $k[$j++] = true; //#3010 + $k[$j++] = 'includetext'; //#3010 + $k[$j++] = true; //#3010 + $k[$j++] = 'height'; //#3010 + $k[$j++] = $f($1.height - 0.15); //#3010 + $k[$j++] = 'textxoffset'; //#3010 + if ($1.addontextxoffset != "unset") { //#3010 + $k[$j++] = $1.addontextxoffset; //#3010 + } else { //#3010 + $k[$j++] = $f(95 + $1.addongap); //#3010 + } //#3010 + if ($1.addontextyoffset != "unset") { //#3011 + $k[$j++] = 'textyoffset'; //#3011 + $k[$j++] = $1.addontextyoffset; //#3011 + } //#3011 + var _2s = ($1.addontextsize != "unset") ? $1.addontextsize : $1.textsize; //#3012 + var _2u = $ne($1.addontextfont, "unset") ? $1.addontextfont : $1.textfont; //#3013 + $k[$j++] = 'textsize'; //#3013 + $k[$j++] = _2s; //#3013 + $k[$j++] = 'textfont'; //#3013 + $k[$j++] = _2u; //#3013 + $1.addopts = $d(); //#3014 + if ($1.addon.length == 2) { //#3015 + $k[$j++] = $1.addon; //#3015 + $k[$j++] = $1.addopts; //#3015 + $0.ean2(); //#3015 + } //#3015 + if ($1.addon.length == 5) { //#3016 + $k[$j++] = $1.addon; //#3016 + $k[$j++] = $1.addopts; //#3016 + $0.ean5(); //#3016 + } //#3016 + $1.addcode = $k[--$j]; //#3017 + $k[$j++] = Infinity; //#3018 + $aload($1.sbs); //#3018 + $k[$j++] = $1.addongap; //#3018 + $aload($get($1.addcode, "sbs")); //#3018 + $1.sbs = $a(); //#3018 + $k[$j++] = Infinity; //#3019 + $aload($1.bhs); //#3019 + $forall($get($1.addcode, "bhs"), function() { //#3019 + var _3B = $k[--$j]; //#3019 + $k[$j++] = $f(_3B - 0.075); //#3019 + }); //#3019 + $1.bhs = $a(); //#3019 + $k[$j++] = Infinity; //#3020 + $aload($1.bbs); //#3020 + $forall($get($1.addcode, "bbs"), function() { //#3020 + var _3G = $k[--$j]; //#3020 + $k[$j++] = $f(_3G + 0.075); //#3020 + }); //#3020 + $1.bbs = $a(); //#3020 + $k[$j++] = Infinity; //#3021 + $aload($1.txt); //#3021 + $aload($get($1.addcode, "txt")); //#3021 + $1.txt = $a(); //#3021 + $1.guardrightypos = $f(($1.height * 72) - 6); //#3022 + } //#3022 + var _3T = new Map([ + ["ren", $0.renlinear], + ["sbs", $1.sbs], + ["bhs", $1.bhs], + ["bbs", $1.bbs], + ["txt", $1.txt], + ["opt", $1.options], + ["guardrightpos", 10], + ["guardrightypos", $1.guardrightypos], + ["borderbottom", 5] + ]); //#3035 + $k[$j++] = _3T; //#3038 + if (!$1.dontdraw) { //#3038 + $0.renlinear(); //#3038 + } //#3038 }; $0.ean8 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 12; - $1.textxoffset = 4; - $1.textyoffset = -4; - $1.height = 1; - $1.addongap = 12; - $1.addontextfont = "unset"; - $1.addontextsize = "unset"; - $1.addontextxoffset = "unset"; - $1.addontextyoffset = "unset"; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.addongap = +$1.addongap; - if ($ne($1.addontextfont, "unset")) { - $1.addontextfont = "" + $1.addontextfont; - } - if ($ne($1.addontextsize, "unset")) { - $1.addontextsize = +$1.addontextsize; - } - if ($ne($1.addontextxoffset, "unset")) { - $1.addontextxoffset = +$1.addontextxoffset; - } - if ($ne($1.addontextyoffset, "unset")) { - $1.addontextyoffset = +$1.addontextyoffset; - } - $search($1.barcode, " "); - if ($k[--$j]) { - $1.barcode = $k[--$j]; - $j--; - $1.addon = $k[--$j]; - } else { - $j--; - $1.addon = ""; - } - if ($1.barcode.length != 7 && $1.barcode.length != 8) { - $k[$j++] = "bwipp.ean8badLength"; - $k[$j++] = "EAN-8 must be 7 or 8 digits"; - $0.raiseerror(); - } - $forall($1.barcode, function() { - var _Q = $k[--$j]; - if (_Q < 48 || _Q > 57) { - $k[$j++] = "bwipp.ean8badCharacter"; - $k[$j++] = "EAN-8 must contain only digits"; - $0.raiseerror(); - } - }); - if ($1.addon.length != 0 && $1.addon.length != 2 && $1.addon.length != 5) { - $k[$j++] = "bwipp.ean8badAddOnLength"; - $k[$j++] = "Add-on for EAN-8 must be 2 or 5 digits"; - $0.raiseerror(); - } - $1.pad = $s(8); - $1.checksum = 0; - for (var _V = 0; _V <= 6; _V += 1) { - $1.i = _V; - $1.barchar = $f($get($1.barcode, $1.i) - 48); - if ($1.i % 2 != 0) { - $1.checksum = $f($1.barchar + $1.checksum); - } else { - $1.checksum = $f($1.barchar * 3 + $1.checksum); - } - } - $1.checksum = $f(10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 8) { - if ($get($1.barcode, 7) != $f($1.checksum + 48)) { - $k[$j++] = "bwipp.ean8badCheckDigit"; - $k[$j++] = "Incorrect EAN-8 check digit provided"; - $0.raiseerror(); - } - } - $puti($1.pad, 0, $1.barcode); - $put($1.pad, 7, $f($1.checksum + 48)); - $1.barcode = $1.pad; - $1.encs = $a([ "3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111" ]); - $1.barchars = "0123456789"; - $1.sbs = $s(43); - $1.txt = $a(8); - $puti($1.sbs, 0, $get($1.encs, 10)); - for (var _u = 0; _u <= 3; _u += 1) { - $1.i = _u; - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $1.i * 4 + 3, $1.enc); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $f($1.i * 7 + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize ])); - } - $puti($1.sbs, 4 * 4 + 3, $get($1.encs, 11)); - for (var _1K = 4; _1K <= 7; _1K += 1) { - $1.i = _1K; - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $1.i * 4 + 8, $1.enc); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $f($f($1.i * 7 + $1.textxoffset) + 4), $1.textyoffset, $1.textfont, $1.textsize ])); - } - $puti($1.sbs, 40, $get($1.encs, 12)); - $k[$j++] = Infinity; - var _1k = $1.sbs; - for (var _1l = 0, _1m = _1k.length; _1l < _1m; _1l++) { - $k[$j++] = $get(_1k, _1l) - 48; - } - $1.sbs = $a(); - if ($1.includetext) { - $k[$j++] = Infinity; - $k[$j++] = $1.height; - $k[$j++] = $1.height; - for (var _1s = 0, _1t = 8; _1s < _1t; _1s++) { - $k[$j++] = $f($1.height - .075); - } - $k[$j++] = $1.height; - $k[$j++] = $1.height; - for (var _1x = 0, _1y = 8; _1x < _1y; _1x++) { - $k[$j++] = $f($1.height - .075); - } - $k[$j++] = $1.height; - $k[$j++] = $1.height; - $1.bhs = $a(); - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = 0; - for (var _23 = 0, _24 = 8; _23 < _24; _23++) { - $k[$j++] = .075; - } - $k[$j++] = 0; - $k[$j++] = 0; - for (var _25 = 0, _26 = 8; _25 < _26; _25++) { - $k[$j++] = .075; - } - $k[$j++] = 0; - $k[$j++] = 0; - $1.bbs = $a(); - } else { - $k[$j++] = Infinity; - for (var _28 = 0, _29 = 22; _28 < _29; _28++) { - $k[$j++] = $1.height; - } - $1.bhs = $a(); - $k[$j++] = Infinity; - for (var _2C = 0, _2D = 22; _2C < _2D; _2C++) { - $k[$j++] = 0; - } - $1.bbs = $a(); - $1.txt = $a([]); - } - $1.guardrightypos = 0; - if ($ne($1.addon, "")) { - $k[$j++] = Infinity; - $k[$j++] = "dontdraw"; - $k[$j++] = true; - $k[$j++] = "includetext"; - $k[$j++] = true; - $k[$j++] = "height"; - $k[$j++] = $f($1.height - .15); - $k[$j++] = "textxoffset"; - if ($1.addontextxoffset != "unset") { - $k[$j++] = $1.addontextxoffset; - } else { - $k[$j++] = $f(67 + $1.addongap); - } - if ($1.addontextyoffset != "unset") { - $k[$j++] = "textyoffset"; - $k[$j++] = $1.addontextyoffset; - } - var _2O = $1.addontextsize != "unset" ? $1.addontextsize : $1.textsize; - var _2Q = $ne($1.addontextfont, "unset") ? $1.addontextfont : $1.textfont; - $k[$j++] = "textsize"; - $k[$j++] = _2O; - $k[$j++] = "textfont"; - $k[$j++] = _2Q; - $1.addopts = $d(); - if ($1.addon.length == 2) { - $k[$j++] = $1.addon; - $k[$j++] = $1.addopts; - $0.ean2(); - } - if ($1.addon.length == 5) { - $k[$j++] = $1.addon; - $k[$j++] = $1.addopts; - $0.ean5(); - } - $1.addcode = $k[--$j]; - $k[$j++] = Infinity; - $aload($1.sbs); - $k[$j++] = $1.addongap; - $aload($get($1.addcode, "sbs")); - $1.sbs = $a(); - $k[$j++] = Infinity; - $aload($1.bhs); - $forall($get($1.addcode, "bhs"), function() { - var _2h = $k[--$j]; - $k[$j++] = $f(_2h - .075); - }); - $1.bhs = $a(); - $k[$j++] = Infinity; - $aload($1.bbs); - $forall($get($1.addcode, "bbs"), function() { - var _2m = $k[--$j]; - $k[$j++] = $f(_2m + .075); - }); - $1.bbs = $a(); - $k[$j++] = Infinity; - $aload($1.txt); - $aload($get($1.addcode, "txt")); - $1.txt = $a(); - $1.guardrightypos = $f($1.height * 72 - 6); - } - var _2z = new Map([ [ "ren", $0.renlinear ], [ "sbs", $1.sbs ], [ "bhs", $1.bhs ], [ "bbs", $1.bbs ], [ "txt", $1.txt ], [ "opt", $1.options ], [ "guardleftpos", 10 ], [ "guardrightpos", 10 ], [ "guardrightypos", $1.guardrightypos ], [ "borderbottom", 5 ] ]); - $k[$j++] = _2z; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#3069 + $1.options = $k[--$j]; //#3071 + $1.barcode = $k[--$j]; //#3072 + $1.dontdraw = false; //#3074 + $1.includetext = false; //#3075 + $1.textfont = "OCR-B"; //#3076 + $1.textsize = 12; //#3077 + $1.textxoffset = 4; //#3078 + $1.textyoffset = -4; //#3079 + $1.height = 1; //#3080 + $1.addongap = 12; //#3081 + $1.addontextfont = "unset"; //#3082 + $1.addontextsize = "unset"; //#3083 + $1.addontextxoffset = "unset"; //#3084 + $1.addontextyoffset = "unset"; //#3085 + $forall($1.options, function() { //#3096 + var _3 = $k[--$j]; //#3096 + $1[$k[--$j]] = _3; //#3096 + }); //#3096 + $1.textfont = "" + $1.textfont; //#3098 + $1.textsize = +$1.textsize; //#3099 + $1.textxoffset = +$1.textxoffset; //#3100 + $1.textyoffset = +$1.textyoffset; //#3101 + $1.height = +$1.height; //#3102 + $1.addongap = +$1.addongap; //#3103 + if ($ne($1.addontextfont, "unset")) { //#3104 + $1.addontextfont = "" + $1.addontextfont; //#3104 + } //#3104 + if ($ne($1.addontextsize, "unset")) { //#3105 + $1.addontextsize = +$1.addontextsize; //#3105 + } //#3105 + if ($ne($1.addontextxoffset, "unset")) { //#3106 + $1.addontextxoffset = +$1.addontextxoffset; //#3106 + } //#3106 + if ($ne($1.addontextyoffset, "unset")) { //#3107 + $1.addontextyoffset = +$1.addontextyoffset; //#3107 + } //#3107 + $search($1.barcode, " "); //#3110 + if ($k[--$j]) { //#3116 + $1.barcode = $k[--$j]; //#3111 + $j--; //#3112 + $1.addon = $k[--$j]; //#3113 + } else { //#3116 + $j--; //#3115 + $1.addon = ""; //#3116 + } //#3116 + if (($1.barcode.length != 7) && ($1.barcode.length != 8)) { //#3122 + $k[$j++] = 'bwipp.ean8badLength'; //#3121 + $k[$j++] = "EAN-8 must be 7 or 8 digits"; //#3121 + $0.raiseerror(); //#3121 + } //#3121 + $forall($1.barcode, function() { //#3127 + var _Q = $k[--$j]; //#3124 + if ((_Q < 48) || (_Q > 57)) { //#3126 + $k[$j++] = 'bwipp.ean8badCharacter'; //#3125 + $k[$j++] = "EAN-8 must contain only digits"; //#3125 + $0.raiseerror(); //#3125 + } //#3125 + }); //#3125 + if ((($1.addon.length != 0) && ($1.addon.length != 2)) && ($1.addon.length != 5)) { //#3130 + $k[$j++] = 'bwipp.ean8badAddOnLength'; //#3129 + $k[$j++] = "Add-on for EAN-8 must be 2 or 5 digits"; //#3129 + $0.raiseerror(); //#3129 + } //#3129 + $1.pad = $s(8); //#3133 + $1.checksum = 0; //#3134 + for (var _V = 0; _V <= 6; _V += 1) { //#3143 + $1.i = _V; //#3136 + $1.barchar = $f($get($1.barcode, $1.i) - 48); //#3137 + if (($1.i % 2) != 0) { //#3141 + $1.checksum = $f($1.barchar + $1.checksum); //#3139 + } else { //#3141 + $1.checksum = $f(($1.barchar * 3) + $1.checksum); //#3141 + } //#3141 + } //#3141 + $1.checksum = ($f(10 - ($1.checksum % 10))) % 10; //#3144 + if ($1.barcode.length == 8) { //#3149 + if ($get($1.barcode, 7) != $f($1.checksum + 48)) { //#3148 + $k[$j++] = 'bwipp.ean8badCheckDigit'; //#3147 + $k[$j++] = "Incorrect EAN-8 check digit provided"; //#3147 + $0.raiseerror(); //#3147 + } //#3147 + } //#3147 + $puti($1.pad, 0, $1.barcode); //#3150 + $put($1.pad, 7, $f($1.checksum + 48)); //#3151 + $1.barcode = $1.pad; //#3152 + $1.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111"]); //#3159 + $1.barchars = "0123456789"; //#3162 + $1.sbs = $s(43); //#3164 + $1.txt = $a(8); //#3165 + $puti($1.sbs, 0, $get($1.encs, 10)); //#3168 + for (var _u = 0; _u <= 3; _u += 1) { //#3181 + $1.i = _u; //#3173 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#3174 + $j--; //#3175 + $1.indx = $k[--$j].length; //#3176 + $j -= 2; //#3177 + $1.enc = $get($1.encs, $1.indx); //#3178 + $puti($1.sbs, ($1.i * 4) + 3, $1.enc); //#3179 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $f(($1.i * 7) + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize])); //#3180 + } //#3180 + $puti($1.sbs, (4 * 4) + 3, $get($1.encs, 11)); //#3184 + for (var _1K = 4; _1K <= 7; _1K += 1) { //#3197 + $1.i = _1K; //#3189 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#3190 + $j--; //#3191 + $1.indx = $k[--$j].length; //#3192 + $j -= 2; //#3193 + $1.enc = $get($1.encs, $1.indx); //#3194 + $puti($1.sbs, ($1.i * 4) + 8, $1.enc); //#3195 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $f(($f(($1.i * 7) + $1.textxoffset)) + 4), $1.textyoffset, $1.textfont, $1.textsize])); //#3196 + } //#3196 + $puti($1.sbs, 40, $get($1.encs, 12)); //#3200 + $k[$j++] = Infinity; //#3202 + var _1k = $1.sbs; //#3202 + for (var _1l = 0, _1m = _1k.length; _1l < _1m; _1l++) { //#3202 + $k[$j++] = $get(_1k, _1l) - 48; //#3202 + } //#3202 + $1.sbs = $a(); //#3202 + if ($1.includetext) { //#3209 + $k[$j++] = Infinity; //#3204 + $k[$j++] = $1.height; //#3204 + $k[$j++] = $1.height; //#3204 + for (var _1s = 0, _1t = 8; _1s < _1t; _1s++) { //#3204 + $k[$j++] = $f($1.height - 0.075); //#3204 + } //#3204 + $k[$j++] = $1.height; //#3204 + $k[$j++] = $1.height; //#3204 + for (var _1x = 0, _1y = 8; _1x < _1y; _1x++) { //#3204 + $k[$j++] = $f($1.height - 0.075); //#3204 + } //#3204 + $k[$j++] = $1.height; //#3204 + $k[$j++] = $1.height; //#3204 + $1.bhs = $a(); //#3204 + $k[$j++] = Infinity; //#3205 + $k[$j++] = 0; //#3205 + $k[$j++] = 0; //#3205 + for (var _23 = 0, _24 = 8; _23 < _24; _23++) { //#3205 + $k[$j++] = 0.075; //#3205 + } //#3205 + $k[$j++] = 0; //#3205 + $k[$j++] = 0; //#3205 + for (var _25 = 0, _26 = 8; _25 < _26; _25++) { //#3205 + $k[$j++] = 0.075; //#3205 + } //#3205 + $k[$j++] = 0; //#3205 + $k[$j++] = 0; //#3205 + $1.bbs = $a(); //#3205 + } else { //#3209 + $k[$j++] = Infinity; //#3207 + for (var _28 = 0, _29 = 22; _28 < _29; _28++) { //#3207 + $k[$j++] = $1.height; //#3207 + } //#3207 + $1.bhs = $a(); //#3207 + $k[$j++] = Infinity; //#3208 + for (var _2C = 0, _2D = 22; _2C < _2D; _2C++) { //#3208 + $k[$j++] = 0; //#3208 + } //#3208 + $1.bbs = $a(); //#3208 + $1.txt = $a([]); //#3209 + } //#3209 + $1.guardrightypos = 0; //#3211 + if ($ne($1.addon, "")) { //#3232 + $k[$j++] = Infinity; //#3222 + $k[$j++] = 'dontdraw'; //#3219 + $k[$j++] = true; //#3219 + $k[$j++] = 'includetext'; //#3219 + $k[$j++] = true; //#3219 + $k[$j++] = 'height'; //#3219 + $k[$j++] = $f($1.height - 0.15); //#3219 + $k[$j++] = 'textxoffset'; //#3219 + if ($1.addontextxoffset != "unset") { //#3219 + $k[$j++] = $1.addontextxoffset; //#3219 + } else { //#3219 + $k[$j++] = $f(67 + $1.addongap); //#3219 + } //#3219 + if ($1.addontextyoffset != "unset") { //#3220 + $k[$j++] = 'textyoffset'; //#3220 + $k[$j++] = $1.addontextyoffset; //#3220 + } //#3220 + var _2O = ($1.addontextsize != "unset") ? $1.addontextsize : $1.textsize; //#3221 + var _2Q = $ne($1.addontextfont, "unset") ? $1.addontextfont : $1.textfont; //#3222 + $k[$j++] = 'textsize'; //#3222 + $k[$j++] = _2O; //#3222 + $k[$j++] = 'textfont'; //#3222 + $k[$j++] = _2Q; //#3222 + $1.addopts = $d(); //#3223 + if ($1.addon.length == 2) { //#3224 + $k[$j++] = $1.addon; //#3224 + $k[$j++] = $1.addopts; //#3224 + $0.ean2(); //#3224 + } //#3224 + if ($1.addon.length == 5) { //#3225 + $k[$j++] = $1.addon; //#3225 + $k[$j++] = $1.addopts; //#3225 + $0.ean5(); //#3225 + } //#3225 + $1.addcode = $k[--$j]; //#3226 + $k[$j++] = Infinity; //#3227 + $aload($1.sbs); //#3227 + $k[$j++] = $1.addongap; //#3227 + $aload($get($1.addcode, "sbs")); //#3227 + $1.sbs = $a(); //#3227 + $k[$j++] = Infinity; //#3228 + $aload($1.bhs); //#3228 + $forall($get($1.addcode, "bhs"), function() { //#3228 + var _2h = $k[--$j]; //#3228 + $k[$j++] = $f(_2h - 0.075); //#3228 + }); //#3228 + $1.bhs = $a(); //#3228 + $k[$j++] = Infinity; //#3229 + $aload($1.bbs); //#3229 + $forall($get($1.addcode, "bbs"), function() { //#3229 + var _2m = $k[--$j]; //#3229 + $k[$j++] = $f(_2m + 0.075); //#3229 + }); //#3229 + $1.bbs = $a(); //#3229 + $k[$j++] = Infinity; //#3230 + $aload($1.txt); //#3230 + $aload($get($1.addcode, "txt")); //#3230 + $1.txt = $a(); //#3230 + $1.guardrightypos = $f(($1.height * 72) - 6); //#3231 + } //#3231 + var _2z = new Map([ + ["ren", $0.renlinear], + ["sbs", $1.sbs], + ["bhs", $1.bhs], + ["bbs", $1.bbs], + ["txt", $1.txt], + ["opt", $1.options], + ["guardleftpos", 10], + ["guardrightpos", 10], + ["guardrightypos", $1.guardrightypos], + ["borderbottom", 5] + ]); //#3245 + $k[$j++] = _2z; //#3248 + if (!$1.dontdraw) { //#3248 + $0.renlinear(); //#3248 + } //#3248 }; $0.upca = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 12; - $1.textxoffset = -7; - $1.textyoffset = -4; - $1.height = 1; - $1.addongap = 12; - $1.addontextfont = "unset"; - $1.addontextsize = "unset"; - $1.addontextxoffset = "unset"; - $1.addontextyoffset = "unset"; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.addongap = +$1.addongap; - if ($ne($1.addontextfont, "unset")) { - $1.addontextfont = "" + $1.addontextfont; - } - if ($ne($1.addontextsize, "unset")) { - $1.addontextsize = +$1.addontextsize; - } - if ($ne($1.addontextxoffset, "unset")) { - $1.addontextxoffset = +$1.addontextxoffset; - } - if ($ne($1.addontextyoffset, "unset")) { - $1.addontextyoffset = +$1.addontextyoffset; - } - $search($1.barcode, " "); - if ($k[--$j]) { - $1.barcode = $k[--$j]; - $j--; - $1.addon = $k[--$j]; - } else { - $j--; - $1.addon = ""; - } - if ($1.barcode.length == 7 || $1.barcode.length == 8) { - $forall($1.barcode, function() { - var _Q = $k[--$j]; - if (_Q < 48 || _Q > 57) { - $k[$j++] = "bwipp.upcAupcEbadCharacter"; - $k[$j++] = "UPC-E must contain only digits"; - $0.raiseerror(); - } - }); - var _S = $get($1.barcode, 0); - if (_S != 48 && _S != 49) { - $k[$j++] = "bwipp.upcAupcEbadNumberSystem"; - $k[$j++] = "UPC-E must have number system 0 or 1"; - $0.raiseerror(); - } - for (var _T = 0, _U = 1; _T < _U; _T++) { - var _W = $1.barcode.length == 8 ? 12 : 11; - $1.upcacode = $s(_W); - if ($f($get($1.barcode, 6) - 48) <= 2) { - $puti($1.upcacode, 0, $geti($1.barcode, 0, 3)); - $puti($1.upcacode, 3, $geti($1.barcode, 6, 1)); - $puti($1.upcacode, 4, "0000"); - $puti($1.upcacode, 8, $geti($1.barcode, 3, 3)); - break; - } - if ($f($get($1.barcode, 6) - 48) == 3) { - $puti($1.upcacode, 0, $geti($1.barcode, 0, 4)); - $puti($1.upcacode, 4, "00000"); - $puti($1.upcacode, 9, $geti($1.barcode, 4, 2)); - break; - } - if ($f($get($1.barcode, 6) - 48) == 4) { - $puti($1.upcacode, 0, $geti($1.barcode, 0, 5)); - $puti($1.upcacode, 5, "00000"); - $puti($1.upcacode, 10, $geti($1.barcode, 5, 1)); - break; - } - if ($f($get($1.barcode, 6) - 48) >= 5) { - $puti($1.upcacode, 0, $geti($1.barcode, 0, 6)); - $puti($1.upcacode, 6, "0000"); - $puti($1.upcacode, 10, $geti($1.barcode, 6, 1)); - break; - } - } - if ($1.barcode.length == 8) { - $puti($1.upcacode, 11, $geti($1.barcode, 7, 1)); - } - $1.barcode = $1.upcacode; - } - if ($1.barcode.length != 11 && $1.barcode.length != 12) { - $k[$j++] = "bwipp.upcAbadLength"; - $k[$j++] = "UPC-A must be 11 or 12 digits"; - $0.raiseerror(); - } - var _1I = $1.barcode; - for (var _1J = 0, _1K = _1I.length; _1J < _1K; _1J++) { - var _1L = $get(_1I, _1J); - if (_1L < 48 || _1L > 57) { - $k[$j++] = "bwipp.upcAbadCharacter"; - $k[$j++] = "UPC-A must contain only digits"; - $0.raiseerror(); - } - } - if ($1.addon.length != 0 && $1.addon.length != 2 && $1.addon.length != 5) { - $k[$j++] = "bwipp.upcAbadAddOnLength"; - $k[$j++] = "Add-on for UPC-A must be 2 or 5 digits"; - $0.raiseerror(); - } - $1.pad = $s(12); - $1.checksum = 0; - for (var _1Q = 0; _1Q <= 10; _1Q += 1) { - $1.i = _1Q; - $1.barchar = $get($1.barcode, $1.i) - 48; - if ($1.i % 2 != 0) { - $1.checksum = $1.checksum + $1.barchar; - } else { - $1.checksum = $1.checksum + $1.barchar * 3; - } - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 12) { - if ($get($1.barcode, 11) != $1.checksum + 48) { - $k[$j++] = "bwipp.upcAbadCheckDigit"; - $k[$j++] = "Incorrect UPC check digit provided"; - $0.raiseerror(); - } - } - $puti($1.pad, 0, $1.barcode); - $put($1.pad, 11, $1.checksum + 48); - $1.barcode = $1.pad; - $1.encs = $a([ "3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111" ]); - $1.barchars = "0123456789"; - $1.sbs = $s(59); - $1.txt = $a(12); - $puti($1.sbs, 0, $get($1.encs, 10)); - for (var _1p = 0; _1p <= 5; _1p += 1) { - $1.i = _1p; - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $1.i * 4 + 3, $1.enc); - if ($1.i == 0) { - $put($1.txt, 0, $a([ $geti($1.barcode, 0, 1), $1.textxoffset, $1.textyoffset, $1.textfont, $f($1.textsize - 2) ])); - } else { - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $f($1.i * 7 + 11 + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize ])); - } - } - $puti($1.sbs, 6 * 4 + 3, $get($1.encs, 11)); - for (var _2O = 6; _2O <= 11; _2O += 1) { - $1.i = _2O; - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $1.i * 4 + 8, $1.enc); - if ($1.i == 11) { - $put($1.txt, 11, $a([ $geti($1.barcode, 11, 1), $f($1.textxoffset + 104), $1.textyoffset, $1.textfont, $f($1.textsize - 2) ])); - } else { - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $f($f($1.i * 7 + $1.textxoffset) + 15), $1.textyoffset, $1.textfont, $1.textsize ])); - } - } - $puti($1.sbs, 56, $get($1.encs, 12)); - $k[$j++] = Infinity; - var _2x = $1.sbs; - for (var _2y = 0, _2z = _2x.length; _2y < _2z; _2y++) { - $k[$j++] = $get(_2x, _2y) - 48; - } - $1.sbs = $a(); - if ($1.includetext) { - $k[$j++] = Infinity; - for (var _33 = 0, _34 = 4; _33 < _34; _33++) { - $k[$j++] = $1.height; - } - for (var _36 = 0, _37 = 10; _36 < _37; _36++) { - $k[$j++] = $f($1.height - .075); - } - $k[$j++] = $1.height; - $k[$j++] = $1.height; - for (var _3B = 0, _3C = 10; _3B < _3C; _3B++) { - $k[$j++] = $f($1.height - .075); - } - for (var _3E = 0, _3F = 4; _3E < _3F; _3E++) { - $k[$j++] = $1.height; - } - $1.bhs = $a(); - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - for (var _3I = 0, _3J = 10; _3I < _3J; _3I++) { - $k[$j++] = .075; - } - $k[$j++] = 0; - $k[$j++] = 0; - for (var _3K = 0, _3L = 10; _3K < _3L; _3K++) { - $k[$j++] = .075; - } - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $1.bbs = $a(); - } else { - $k[$j++] = Infinity; - for (var _3N = 0, _3O = 30; _3N < _3O; _3N++) { - $k[$j++] = $1.height; - } - $1.bhs = $a(); - $k[$j++] = Infinity; - for (var _3R = 0, _3S = 30; _3R < _3S; _3R++) { - $k[$j++] = 0; - } - $1.bbs = $a(); - $1.txt = $a([]); - } - $1.guardrightypos = 0; - if ($ne($1.addon, "")) { - $k[$j++] = Infinity; - $k[$j++] = "dontdraw"; - $k[$j++] = true; - $k[$j++] = "includetext"; - $k[$j++] = true; - $k[$j++] = "height"; - $k[$j++] = $f($1.height - .15); - $k[$j++] = "textxoffset"; - if ($1.addontextxoffset != "unset") { - $k[$j++] = $1.addontextxoffset; - } else { - $k[$j++] = $f(95 + $1.addongap); - } - if ($1.addontextyoffset != "unset") { - $k[$j++] = "textyoffset"; - $k[$j++] = $1.addontextyoffset; - } - var _3d = $1.addontextsize != "unset" ? $1.addontextsize : $1.textsize; - var _3f = $ne($1.addontextfont, "unset") ? $1.addontextfont : $1.textfont; - $k[$j++] = "textsize"; - $k[$j++] = _3d; - $k[$j++] = "textfont"; - $k[$j++] = _3f; - $1.addopts = $d(); - if ($1.addon.length == 2) { - $k[$j++] = $1.addon; - $k[$j++] = $1.addopts; - $0.ean2(); - } - if ($1.addon.length == 5) { - $k[$j++] = $1.addon; - $k[$j++] = $1.addopts; - $0.ean5(); - } - $1.addcode = $k[--$j]; - $k[$j++] = Infinity; - $aload($1.sbs); - $k[$j++] = $1.addongap; - $aload($get($1.addcode, "sbs")); - $1.sbs = $a(); - $k[$j++] = Infinity; - $aload($1.bhs); - $forall($get($1.addcode, "bhs"), function() { - var _3w = $k[--$j]; - $k[$j++] = $f(_3w - .075); - }); - $1.bhs = $a(); - $k[$j++] = Infinity; - $aload($1.bbs); - $forall($get($1.addcode, "bbs"), function() { - var _41 = $k[--$j]; - $k[$j++] = $f(_41 + .075); - }); - $1.bbs = $a(); - $k[$j++] = Infinity; - $aload($1.txt); - $aload($get($1.addcode, "txt")); - $1.txt = $a(); - $1.guardrightypos = $f($1.height * 72 - 6); - } - var _4E = new Map([ [ "ren", $0.renlinear ], [ "sbs", $1.sbs ], [ "bhs", $1.bhs ], [ "bbs", $1.bbs ], [ "txt", $1.txt ], [ "opt", $1.options ], [ "guardrightpos", 10 ], [ "guardrightypos", $1.guardrightypos ], [ "borderbottom", 5 ] ]); - $k[$j++] = _4E; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#3279 + $1.options = $k[--$j]; //#3281 + $1.barcode = $k[--$j]; //#3282 + $1.dontdraw = false; //#3284 + $1.includetext = false; //#3285 + $1.textfont = "OCR-B"; //#3286 + $1.textsize = 12; //#3287 + $1.textxoffset = -7; //#3288 + $1.textyoffset = -4; //#3289 + $1.height = 1; //#3290 + $1.addongap = 12; //#3291 + $1.addontextfont = "unset"; //#3292 + $1.addontextsize = "unset"; //#3293 + $1.addontextxoffset = "unset"; //#3294 + $1.addontextyoffset = "unset"; //#3295 + $forall($1.options, function() { //#3306 + var _3 = $k[--$j]; //#3306 + $1[$k[--$j]] = _3; //#3306 + }); //#3306 + $1.textfont = "" + $1.textfont; //#3308 + $1.textsize = +$1.textsize; //#3309 + $1.textxoffset = +$1.textxoffset; //#3310 + $1.textyoffset = +$1.textyoffset; //#3311 + $1.height = +$1.height; //#3312 + $1.addongap = +$1.addongap; //#3313 + if ($ne($1.addontextfont, "unset")) { //#3314 + $1.addontextfont = "" + $1.addontextfont; //#3314 + } //#3314 + if ($ne($1.addontextsize, "unset")) { //#3315 + $1.addontextsize = +$1.addontextsize; //#3315 + } //#3315 + if ($ne($1.addontextxoffset, "unset")) { //#3316 + $1.addontextxoffset = +$1.addontextxoffset; //#3316 + } //#3316 + if ($ne($1.addontextyoffset, "unset")) { //#3317 + $1.addontextyoffset = +$1.addontextyoffset; //#3317 + } //#3317 + $search($1.barcode, " "); //#3320 + if ($k[--$j]) { //#3326 + $1.barcode = $k[--$j]; //#3321 + $j--; //#3322 + $1.addon = $k[--$j]; //#3323 + } else { //#3326 + $j--; //#3325 + $1.addon = ""; //#3326 + } //#3326 + if (($1.barcode.length == 7) || ($1.barcode.length == 8)) { //#3372 + $forall($1.barcode, function() { //#3336 + var _Q = $k[--$j]; //#3333 + if ((_Q < 48) || (_Q > 57)) { //#3335 + $k[$j++] = 'bwipp.upcAupcEbadCharacter'; //#3334 + $k[$j++] = "UPC-E must contain only digits"; //#3334 + $0.raiseerror(); //#3334 + } //#3334 + }); //#3334 + var _S = $get($1.barcode, 0); //#3337 + if ((_S != 48) && (_S != 49)) { //#3339 + $k[$j++] = 'bwipp.upcAupcEbadNumberSystem'; //#3338 + $k[$j++] = "UPC-E must have number system 0 or 1"; //#3338 + $0.raiseerror(); //#3338 + } //#3338 + for (var _T = 0, _U = 1; _T < _U; _T++) { //#3367 + var _W = ($1.barcode.length == 8) ? 12 : 11; //#3341 + $1.upcacode = $s(_W); //#3341 + if ($f($get($1.barcode, 6) - 48) <= 2) { //#3348 + $puti($1.upcacode, 0, $geti($1.barcode, 0, 3)); //#3343 + $puti($1.upcacode, 3, $geti($1.barcode, 6, 1)); //#3344 + $puti($1.upcacode, 4, "0000"); //#3345 + $puti($1.upcacode, 8, $geti($1.barcode, 3, 3)); //#3346 + break; //#3347 + } //#3347 + if ($f($get($1.barcode, 6) - 48) == 3) { //#3354 + $puti($1.upcacode, 0, $geti($1.barcode, 0, 4)); //#3350 + $puti($1.upcacode, 4, "00000"); //#3351 + $puti($1.upcacode, 9, $geti($1.barcode, 4, 2)); //#3352 + break; //#3353 + } //#3353 + if ($f($get($1.barcode, 6) - 48) == 4) { //#3360 + $puti($1.upcacode, 0, $geti($1.barcode, 0, 5)); //#3356 + $puti($1.upcacode, 5, "00000"); //#3357 + $puti($1.upcacode, 10, $geti($1.barcode, 5, 1)); //#3358 + break; //#3359 + } //#3359 + if ($f($get($1.barcode, 6) - 48) >= 5) { //#3366 + $puti($1.upcacode, 0, $geti($1.barcode, 0, 6)); //#3362 + $puti($1.upcacode, 6, "0000"); //#3363 + $puti($1.upcacode, 10, $geti($1.barcode, 6, 1)); //#3364 + break; //#3365 + } //#3365 + } //#3365 + if ($1.barcode.length == 8) { //#3370 + $puti($1.upcacode, 11, $geti($1.barcode, 7, 1)); //#3369 + } //#3369 + $1.barcode = $1.upcacode; //#3371 + } //#3371 + if (($1.barcode.length != 11) && ($1.barcode.length != 12)) { //#3377 + $k[$j++] = 'bwipp.upcAbadLength'; //#3376 + $k[$j++] = "UPC-A must be 11 or 12 digits"; //#3376 + $0.raiseerror(); //#3376 + } //#3376 + var _1I = $1.barcode; //#3378 + for (var _1J = 0, _1K = _1I.length; _1J < _1K; _1J++) { //#3382 + var _1L = $get(_1I, _1J); //#3382 + if ((_1L < 48) || (_1L > 57)) { //#3381 + $k[$j++] = 'bwipp.upcAbadCharacter'; //#3380 + $k[$j++] = "UPC-A must contain only digits"; //#3380 + $0.raiseerror(); //#3380 + } //#3380 + } //#3380 + if ((($1.addon.length != 0) && ($1.addon.length != 2)) && ($1.addon.length != 5)) { //#3385 + $k[$j++] = 'bwipp.upcAbadAddOnLength'; //#3384 + $k[$j++] = "Add-on for UPC-A must be 2 or 5 digits"; //#3384 + $0.raiseerror(); //#3384 + } //#3384 + $1.pad = $s(12); //#3388 + $1.checksum = 0; //#3389 + for (var _1Q = 0; _1Q <= 10; _1Q += 1) { //#3398 + $1.i = _1Q; //#3391 + $1.barchar = $get($1.barcode, $1.i) - 48; //#3392 + if (($1.i % 2) != 0) { //#3396 + $1.checksum = $1.checksum + $1.barchar; //#3394 + } else { //#3396 + $1.checksum = $1.checksum + ($1.barchar * 3); //#3396 + } //#3396 + } //#3396 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#3399 + if ($1.barcode.length == 12) { //#3404 + if ($get($1.barcode, 11) != ($1.checksum + 48)) { //#3403 + $k[$j++] = 'bwipp.upcAbadCheckDigit'; //#3402 + $k[$j++] = "Incorrect UPC check digit provided"; //#3402 + $0.raiseerror(); //#3402 + } //#3402 + } //#3402 + $puti($1.pad, 0, $1.barcode); //#3405 + $put($1.pad, 11, $1.checksum + 48); //#3406 + $1.barcode = $1.pad; //#3407 + $1.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111"]); //#3414 + $1.barchars = "0123456789"; //#3417 + $1.sbs = $s(59); //#3419 + $1.txt = $a(12); //#3420 + $puti($1.sbs, 0, $get($1.encs, 10)); //#3423 + for (var _1p = 0; _1p <= 5; _1p += 1) { //#3440 + $1.i = _1p; //#3428 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#3429 + $j--; //#3430 + $1.indx = $k[--$j].length; //#3431 + $j -= 2; //#3432 + $1.enc = $get($1.encs, $1.indx); //#3433 + $puti($1.sbs, ($1.i * 4) + 3, $1.enc); //#3434 + if ($1.i == 0) { //#3438 + $put($1.txt, 0, $a([$geti($1.barcode, 0, 1), $1.textxoffset, $1.textyoffset, $1.textfont, $f($1.textsize - 2)])); //#3436 + } else { //#3438 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $f((($1.i * 7) + 11) + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize])); //#3438 + } //#3438 + } //#3438 + $puti($1.sbs, (6 * 4) + 3, $get($1.encs, 11)); //#3443 + for (var _2O = 6; _2O <= 11; _2O += 1) { //#3460 + $1.i = _2O; //#3448 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#3449 + $j--; //#3450 + $1.indx = $k[--$j].length; //#3451 + $j -= 2; //#3452 + $1.enc = $get($1.encs, $1.indx); //#3453 + $puti($1.sbs, ($1.i * 4) + 8, $1.enc); //#3454 + if ($1.i == 11) { //#3458 + $put($1.txt, 11, $a([$geti($1.barcode, 11, 1), $f($1.textxoffset + 104), $1.textyoffset, $1.textfont, $f($1.textsize - 2)])); //#3456 + } else { //#3458 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $f(($f(($1.i * 7) + $1.textxoffset)) + 15), $1.textyoffset, $1.textfont, $1.textsize])); //#3458 + } //#3458 + } //#3458 + $puti($1.sbs, 56, $get($1.encs, 12)); //#3463 + $k[$j++] = Infinity; //#3465 + var _2x = $1.sbs; //#3465 + for (var _2y = 0, _2z = _2x.length; _2y < _2z; _2y++) { //#3465 + $k[$j++] = $get(_2x, _2y) - 48; //#3465 + } //#3465 + $1.sbs = $a(); //#3465 + if ($1.includetext) { //#3472 + $k[$j++] = Infinity; //#3467 + for (var _33 = 0, _34 = 4; _33 < _34; _33++) { //#3467 + $k[$j++] = $1.height; //#3467 + } //#3467 + for (var _36 = 0, _37 = 10; _36 < _37; _36++) { //#3467 + $k[$j++] = $f($1.height - 0.075); //#3467 + } //#3467 + $k[$j++] = $1.height; //#3467 + $k[$j++] = $1.height; //#3467 + for (var _3B = 0, _3C = 10; _3B < _3C; _3B++) { //#3467 + $k[$j++] = $f($1.height - 0.075); //#3467 + } //#3467 + for (var _3E = 0, _3F = 4; _3E < _3F; _3E++) { //#3467 + $k[$j++] = $1.height; //#3467 + } //#3467 + $1.bhs = $a(); //#3467 + $k[$j++] = Infinity; //#3468 + $k[$j++] = 0; //#3468 + $k[$j++] = 0; //#3468 + $k[$j++] = 0; //#3468 + $k[$j++] = 0; //#3468 + for (var _3I = 0, _3J = 10; _3I < _3J; _3I++) { //#3468 + $k[$j++] = 0.075; //#3468 + } //#3468 + $k[$j++] = 0; //#3468 + $k[$j++] = 0; //#3468 + for (var _3K = 0, _3L = 10; _3K < _3L; _3K++) { //#3468 + $k[$j++] = 0.075; //#3468 + } //#3468 + $k[$j++] = 0; //#3468 + $k[$j++] = 0; //#3468 + $k[$j++] = 0; //#3468 + $k[$j++] = 0; //#3468 + $1.bbs = $a(); //#3468 + } else { //#3472 + $k[$j++] = Infinity; //#3470 + for (var _3N = 0, _3O = 30; _3N < _3O; _3N++) { //#3470 + $k[$j++] = $1.height; //#3470 + } //#3470 + $1.bhs = $a(); //#3470 + $k[$j++] = Infinity; //#3471 + for (var _3R = 0, _3S = 30; _3R < _3S; _3R++) { //#3471 + $k[$j++] = 0; //#3471 + } //#3471 + $1.bbs = $a(); //#3471 + $1.txt = $a([]); //#3472 + } //#3472 + $1.guardrightypos = 0; //#3474 + if ($ne($1.addon, "")) { //#3495 + $k[$j++] = Infinity; //#3485 + $k[$j++] = 'dontdraw'; //#3482 + $k[$j++] = true; //#3482 + $k[$j++] = 'includetext'; //#3482 + $k[$j++] = true; //#3482 + $k[$j++] = 'height'; //#3482 + $k[$j++] = $f($1.height - 0.15); //#3482 + $k[$j++] = 'textxoffset'; //#3482 + if ($1.addontextxoffset != "unset") { //#3482 + $k[$j++] = $1.addontextxoffset; //#3482 + } else { //#3482 + $k[$j++] = $f(95 + $1.addongap); //#3482 + } //#3482 + if ($1.addontextyoffset != "unset") { //#3483 + $k[$j++] = 'textyoffset'; //#3483 + $k[$j++] = $1.addontextyoffset; //#3483 + } //#3483 + var _3d = ($1.addontextsize != "unset") ? $1.addontextsize : $1.textsize; //#3484 + var _3f = $ne($1.addontextfont, "unset") ? $1.addontextfont : $1.textfont; //#3485 + $k[$j++] = 'textsize'; //#3485 + $k[$j++] = _3d; //#3485 + $k[$j++] = 'textfont'; //#3485 + $k[$j++] = _3f; //#3485 + $1.addopts = $d(); //#3486 + if ($1.addon.length == 2) { //#3487 + $k[$j++] = $1.addon; //#3487 + $k[$j++] = $1.addopts; //#3487 + $0.ean2(); //#3487 + } //#3487 + if ($1.addon.length == 5) { //#3488 + $k[$j++] = $1.addon; //#3488 + $k[$j++] = $1.addopts; //#3488 + $0.ean5(); //#3488 + } //#3488 + $1.addcode = $k[--$j]; //#3489 + $k[$j++] = Infinity; //#3490 + $aload($1.sbs); //#3490 + $k[$j++] = $1.addongap; //#3490 + $aload($get($1.addcode, "sbs")); //#3490 + $1.sbs = $a(); //#3490 + $k[$j++] = Infinity; //#3491 + $aload($1.bhs); //#3491 + $forall($get($1.addcode, "bhs"), function() { //#3491 + var _3w = $k[--$j]; //#3491 + $k[$j++] = $f(_3w - 0.075); //#3491 + }); //#3491 + $1.bhs = $a(); //#3491 + $k[$j++] = Infinity; //#3492 + $aload($1.bbs); //#3492 + $forall($get($1.addcode, "bbs"), function() { //#3492 + var _41 = $k[--$j]; //#3492 + $k[$j++] = $f(_41 + 0.075); //#3492 + }); //#3492 + $1.bbs = $a(); //#3492 + $k[$j++] = Infinity; //#3493 + $aload($1.txt); //#3493 + $aload($get($1.addcode, "txt")); //#3493 + $1.txt = $a(); //#3493 + $1.guardrightypos = $f(($1.height * 72) - 6); //#3494 + } //#3494 + var _4E = new Map([ + ["ren", $0.renlinear], + ["sbs", $1.sbs], + ["bhs", $1.bhs], + ["bbs", $1.bbs], + ["txt", $1.txt], + ["opt", $1.options], + ["guardrightpos", 10], + ["guardrightypos", $1.guardrightypos], + ["borderbottom", 5] + ]); //#3507 + $k[$j++] = _4E; //#3510 + if (!$1.dontdraw) { //#3510 + $0.renlinear(); //#3510 + } //#3510 }; $0.upce = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 12; - $1.textxoffset = -7; - $1.textyoffset = -4; - $1.height = 1; - $1.addongap = 12; - $1.addontextfont = "unset"; - $1.addontextsize = "unset"; - $1.addontextxoffset = "unset"; - $1.addontextyoffset = "unset"; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.addongap = +$1.addongap; - if ($ne($1.addontextfont, "unset")) { - $1.addontextfont = "" + $1.addontextfont; - } - if ($ne($1.addontextsize, "unset")) { - $1.addontextsize = +$1.addontextsize; - } - if ($ne($1.addontextxoffset, "unset")) { - $1.addontextxoffset = +$1.addontextxoffset; - } - if ($ne($1.addontextyoffset, "unset")) { - $1.addontextyoffset = +$1.addontextyoffset; - } - $search($1.barcode, " "); - if ($k[--$j]) { - $1.barcode = $k[--$j]; - $j--; - $1.addon = $k[--$j]; - } else { - $j--; - $1.addon = ""; - } - if ($1.barcode.length == 11 || $1.barcode.length == 12) { - $forall($1.barcode, function() { - var _Q = $k[--$j]; - if (_Q < 48 || _Q > 57) { - $k[$j++] = "bwipp.upcEupcAbadCharacter"; - $k[$j++] = "UPC-A must contain only digits"; - $0.raiseerror(); - } - }); - for (var _R = 0, _S = 1; _R < _S; _R++) { - var _U = $1.barcode.length == 12 ? 8 : 7; - $1.upcecode = $s(_U); - if ($f($get($1.barcode, 3) - 48) <= 2 && $eq($geti($1.barcode, 4, 4), "0000")) { - $puti($1.upcecode, 0, $geti($1.barcode, 0, 3)); - $puti($1.upcecode, 3, $geti($1.barcode, 8, 3)); - $puti($1.upcecode, 6, $geti($1.barcode, 3, 1)); - break; - } - if ($eq($geti($1.barcode, 4, 5), "00000")) { - $puti($1.upcecode, 0, $geti($1.barcode, 0, 4)); - $puti($1.upcecode, 4, $geti($1.barcode, 9, 2)); - $puti($1.upcecode, 6, "3"); - break; - } - if ($eq($geti($1.barcode, 5, 5), "00000")) { - $puti($1.upcecode, 0, $geti($1.barcode, 0, 5)); - $puti($1.upcecode, 5, $geti($1.barcode, 10, 1)); - $puti($1.upcecode, 6, "4"); - break; - } - if ($f($get($1.barcode, 10) - 48) >= 5 && $eq($geti($1.barcode, 6, 4), "0000")) { - $puti($1.upcecode, 0, $geti($1.barcode, 0, 6)); - $puti($1.upcecode, 6, $geti($1.barcode, 10, 1)); - break; - } - $k[$j++] = "bwipp.upcEupcAnotCompressible"; - $k[$j++] = "UPC-A cannot be converted to a UPC-E"; - $0.raiseerror(); - } - if ($1.barcode.length == 12) { - $puti($1.upcecode, 7, $geti($1.barcode, 11, 1)); - } - $1.barcode = $1.upcecode; - } - if ($1.barcode.length != 7 && $1.barcode.length != 8) { - $k[$j++] = "bwipp.upcEbadLength"; - $k[$j++] = "UPC-E must be 7 or 8 digits"; - $0.raiseerror(); - } - var _1I = $1.barcode; - for (var _1J = 0, _1K = _1I.length; _1J < _1K; _1J++) { - var _1L = $get(_1I, _1J); - if (_1L < 48 || _1L > 57) { - $k[$j++] = "bwipp.upcEbadCharacter"; - $k[$j++] = "UPC-E must contain only digits"; - $0.raiseerror(); - } - } - if ($1.addon.length != 0 && $1.addon.length != 2 && $1.addon.length != 5) { - $k[$j++] = "bwipp.upcEbadAddOnLength"; - $k[$j++] = "Add-on for UPC-E must be 2 or 5 digits"; - $0.raiseerror(); - } - var _1Q = $get($1.barcode, 0); - if (_1Q != 48 && _1Q != 49) { - $k[$j++] = "bwipp.upcEbadNumberSystem"; - $k[$j++] = "UPC-E must have number system 0 or 1"; - $0.raiseerror(); - } - $1.encs = $a([ "3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "111111" ]); - $1.barchars = "0123456789"; - $1.mirrormaps = $a([ "000111", "001011", "001101", "001110", "010011", "011001", "011100", "010101", "010110", "011010" ]); - for (var _1T = 0, _1U = 1; _1T < _1U; _1T++) { - $1.upcacode = $s(11); - if ($get($1.barcode, 6) - 48 <= 2) { - $puti($1.upcacode, 0, $geti($1.barcode, 0, 3)); - $puti($1.upcacode, 3, $geti($1.barcode, 6, 1)); - $puti($1.upcacode, 4, "0000"); - $puti($1.upcacode, 8, $geti($1.barcode, 3, 3)); - break; - } - if ($get($1.barcode, 6) - 48 == 3) { - $puti($1.upcacode, 0, $geti($1.barcode, 0, 4)); - $puti($1.upcacode, 4, "00000"); - $puti($1.upcacode, 9, $geti($1.barcode, 4, 2)); - break; - } - if ($get($1.barcode, 6) - 48 == 4) { - $puti($1.upcacode, 0, $geti($1.barcode, 0, 5)); - $puti($1.upcacode, 5, "00000"); - $puti($1.upcacode, 10, $geti($1.barcode, 5, 1)); - break; - } - if ($get($1.barcode, 6) - 48 >= 5) { - $puti($1.upcacode, 0, $geti($1.barcode, 0, 6)); - $puti($1.upcacode, 6, "0000"); - $puti($1.upcacode, 10, $geti($1.barcode, 6, 1)); - break; - } - } - $1.checksum = 0; - for (var _29 = 0; _29 <= 10; _29 += 1) { - $1.i = _29; - $1.barchar = $get($1.upcacode, $1.i) - 48; - if ($1.i % 2 != 0) { - $1.checksum = $1.checksum + $1.barchar; - } else { - $1.checksum = $1.checksum + $1.barchar * 3; - } - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 8) { - if ($get($1.barcode, 7) != $1.checksum + 48) { - $k[$j++] = "bwipp.upcEbadCheckDigit"; - $k[$j++] = "Incorrect UPC check digit provided"; - $0.raiseerror(); - } - } - $1.pad = $s(8); - $puti($1.pad, 0, $1.barcode); - $put($1.pad, 7, $1.checksum + 48); - $1.barcode = $1.pad; - $1.txt = $a(8); - $put($1.txt, 0, $a([ $geti($1.barcode, 0, 1), $1.textxoffset, $1.textyoffset, $1.textfont, $f($1.textsize - 2) ])); - $1.mirrormap = $get($1.mirrormaps, $1.checksum); - if ($get($1.barcode, 0) == 48) { - $1.invt = $s($1.mirrormap.length); - for (var _2l = 0, _2k = $1.mirrormap.length - 1; _2l <= _2k; _2l += 1) { - $1.i = _2l; - if ($get($1.mirrormap, $1.i) == 48) { - $put($1.invt, $1.i, 49); - } else { - $put($1.invt, $1.i, 48); - } - } - $1.mirrormap = $1.invt; - } - $1.sbs = $s(33); - $puti($1.sbs, 0, $get($1.encs, 10)); - for (var _2y = 1; _2y <= 6; _2y += 1) { - $1.i = _2y; - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - if ($get($1.mirrormap, $1.i - 1) == 49) { - $1.enclen = $1.enc.length; - $1.revenc = $s($1.enclen); - for (var _3F = 0, _3E = $1.enclen - 1; _3F <= _3E; _3F += 1) { - $1.j = _3F; - $1.char = $get($1.enc, $1.j); - $put($1.revenc, $1.enclen - $1.j - 1, $1.char); - } - $1.enc = $1.revenc; - } - $puti($1.sbs, ($1.i - 1) * 4 + 3, $1.enc); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $f(($1.i - 1) * 7 + 11 + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize ])); - } - $put($1.txt, 7, $a([ $geti($1.barcode, 7, 1), $f(6 * 7 + 18 + $1.textxoffset), $1.textyoffset, $1.textfont, $f($1.textsize - 2) ])); - $puti($1.sbs, 27, $get($1.encs, 11)); - $k[$j++] = Infinity; - var _3n = $1.sbs; - for (var _3o = 0, _3p = _3n.length; _3o < _3p; _3o++) { - $k[$j++] = $get(_3n, _3o) - 48; - } - $1.sbs = $a(); - if ($1.includetext) { - $k[$j++] = Infinity; - $k[$j++] = $1.height; - $k[$j++] = $1.height; - for (var _3v = 0, _3w = 12; _3v < _3w; _3v++) { - $k[$j++] = $f($1.height - .075); - } - $k[$j++] = $1.height; - $k[$j++] = $1.height; - $k[$j++] = $1.height; - $1.bhs = $a(); - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = 0; - for (var _42 = 0, _43 = 12; _42 < _43; _42++) { - $k[$j++] = .075; - } - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $1.bbs = $a(); - } else { - $k[$j++] = Infinity; - for (var _45 = 0, _46 = 17; _45 < _46; _45++) { - $k[$j++] = $1.height; - } - $1.bhs = $a(); - $k[$j++] = Infinity; - for (var _49 = 0, _4A = 17; _49 < _4A; _49++) { - $k[$j++] = 0; - } - $1.bbs = $a(); - $1.txt = $a([]); - } - $1.guardrightypos = 0; - if ($ne($1.addon, "")) { - $k[$j++] = Infinity; - $k[$j++] = "dontdraw"; - $k[$j++] = true; - $k[$j++] = "includetext"; - $k[$j++] = true; - $k[$j++] = "height"; - $k[$j++] = $f($1.height - .15); - $k[$j++] = "textxoffset"; - if ($1.addontextxoffset != "unset") { - $k[$j++] = $1.addontextxoffset; - } else { - $k[$j++] = $f(51 + $1.addongap); - } - if ($1.addontextyoffset != "unset") { - $k[$j++] = "textyoffset"; - $k[$j++] = $1.addontextyoffset; - } - var _4L = $1.addontextsize != "unset" ? $1.addontextsize : $1.textsize; - var _4N = $ne($1.addontextfont, "unset") ? $1.addontextfont : $1.textfont; - $k[$j++] = "textsize"; - $k[$j++] = _4L; - $k[$j++] = "textfont"; - $k[$j++] = _4N; - $1.addopts = $d(); - if ($1.addon.length == 2) { - $k[$j++] = $1.addon; - $k[$j++] = $1.addopts; - $0.ean2(); - } - if ($1.addon.length == 5) { - $k[$j++] = $1.addon; - $k[$j++] = $1.addopts; - $0.ean5(); - } - $1.addcode = $k[--$j]; - $k[$j++] = Infinity; - $aload($1.sbs); - $k[$j++] = $1.addongap; - $aload($get($1.addcode, "sbs")); - $1.sbs = $a(); - $k[$j++] = Infinity; - $aload($1.bhs); - $forall($get($1.addcode, "bhs"), function() { - var _4e = $k[--$j]; - $k[$j++] = $f(_4e - .075); - }); - $1.bhs = $a(); - $k[$j++] = Infinity; - $aload($1.bbs); - $forall($get($1.addcode, "bbs"), function() { - var _4j = $k[--$j]; - $k[$j++] = $f(_4j + .075); - }); - $1.bbs = $a(); - $k[$j++] = Infinity; - $aload($1.txt); - $aload($get($1.addcode, "txt")); - $1.txt = $a(); - $1.guardrightypos = $f($1.height * 72 - 6); - } - var _4w = new Map([ [ "ren", $0.renlinear ], [ "sbs", $1.sbs ], [ "bhs", $1.bhs ], [ "bbs", $1.bbs ], [ "txt", $1.txt ], [ "opt", $1.options ], [ "guardrightpos", 10 ], [ "guardrightypos", $1.guardrightypos ], [ "borderbottom", 5 ] ]); - $k[$j++] = _4w; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#3541 + $1.options = $k[--$j]; //#3543 + $1.barcode = $k[--$j]; //#3544 + $1.dontdraw = false; //#3546 + $1.includetext = false; //#3547 + $1.textfont = "OCR-B"; //#3548 + $1.textsize = 12; //#3549 + $1.textxoffset = -7; //#3550 + $1.textyoffset = -4; //#3551 + $1.height = 1; //#3552 + $1.addongap = 12; //#3553 + $1.addontextfont = "unset"; //#3554 + $1.addontextsize = "unset"; //#3555 + $1.addontextxoffset = "unset"; //#3556 + $1.addontextyoffset = "unset"; //#3557 + $forall($1.options, function() { //#3568 + var _3 = $k[--$j]; //#3568 + $1[$k[--$j]] = _3; //#3568 + }); //#3568 + $1.textfont = "" + $1.textfont; //#3570 + $1.textsize = +$1.textsize; //#3571 + $1.textxoffset = +$1.textxoffset; //#3572 + $1.textyoffset = +$1.textyoffset; //#3573 + $1.height = +$1.height; //#3574 + $1.addongap = +$1.addongap; //#3575 + if ($ne($1.addontextfont, "unset")) { //#3576 + $1.addontextfont = "" + $1.addontextfont; //#3576 + } //#3576 + if ($ne($1.addontextsize, "unset")) { //#3577 + $1.addontextsize = +$1.addontextsize; //#3577 + } //#3577 + if ($ne($1.addontextxoffset, "unset")) { //#3578 + $1.addontextxoffset = +$1.addontextxoffset; //#3578 + } //#3578 + if ($ne($1.addontextyoffset, "unset")) { //#3579 + $1.addontextyoffset = +$1.addontextyoffset; //#3579 + } //#3579 + $search($1.barcode, " "); //#3582 + if ($k[--$j]) { //#3588 + $1.barcode = $k[--$j]; //#3583 + $j--; //#3584 + $1.addon = $k[--$j]; //#3585 + } else { //#3588 + $j--; //#3587 + $1.addon = ""; //#3588 + } //#3588 + if (($1.barcode.length == 11) || ($1.barcode.length == 12)) { //#3630 + $forall($1.barcode, function() { //#3598 + var _Q = $k[--$j]; //#3595 + if ((_Q < 48) || (_Q > 57)) { //#3597 + $k[$j++] = 'bwipp.upcEupcAbadCharacter'; //#3596 + $k[$j++] = "UPC-A must contain only digits"; //#3596 + $0.raiseerror(); //#3596 + } //#3596 + }); //#3596 + for (var _R = 0, _S = 1; _R < _S; _R++) { //#3625 + var _U = ($1.barcode.length == 12) ? 8 : 7; //#3600 + $1.upcecode = $s(_U); //#3600 + if (($f($get($1.barcode, 3) - 48) <= 2) && $eq($geti($1.barcode, 4, 4), "0000")) { //#3606 + $puti($1.upcecode, 0, $geti($1.barcode, 0, 3)); //#3602 + $puti($1.upcecode, 3, $geti($1.barcode, 8, 3)); //#3603 + $puti($1.upcecode, 6, $geti($1.barcode, 3, 1)); //#3604 + break; //#3605 + } //#3605 + if ($eq($geti($1.barcode, 4, 5), "00000")) { //#3612 + $puti($1.upcecode, 0, $geti($1.barcode, 0, 4)); //#3608 + $puti($1.upcecode, 4, $geti($1.barcode, 9, 2)); //#3609 + $puti($1.upcecode, 6, "3"); //#3610 + break; //#3611 + } //#3611 + if ($eq($geti($1.barcode, 5, 5), "00000")) { //#3618 + $puti($1.upcecode, 0, $geti($1.barcode, 0, 5)); //#3614 + $puti($1.upcecode, 5, $geti($1.barcode, 10, 1)); //#3615 + $puti($1.upcecode, 6, "4"); //#3616 + break; //#3617 + } //#3617 + if (($f($get($1.barcode, 10) - 48) >= 5) && $eq($geti($1.barcode, 6, 4), "0000")) { //#3623 + $puti($1.upcecode, 0, $geti($1.barcode, 0, 6)); //#3620 + $puti($1.upcecode, 6, $geti($1.barcode, 10, 1)); //#3621 + break; //#3622 + } //#3622 + $k[$j++] = 'bwipp.upcEupcAnotCompressible'; //#3624 + $k[$j++] = "UPC-A cannot be converted to a UPC-E"; //#3624 + $0.raiseerror(); //#3624 + } //#3624 + if ($1.barcode.length == 12) { //#3628 + $puti($1.upcecode, 7, $geti($1.barcode, 11, 1)); //#3627 + } //#3627 + $1.barcode = $1.upcecode; //#3629 + } //#3629 + if (($1.barcode.length != 7) && ($1.barcode.length != 8)) { //#3635 + $k[$j++] = 'bwipp.upcEbadLength'; //#3634 + $k[$j++] = "UPC-E must be 7 or 8 digits"; //#3634 + $0.raiseerror(); //#3634 + } //#3634 + var _1I = $1.barcode; //#3636 + for (var _1J = 0, _1K = _1I.length; _1J < _1K; _1J++) { //#3640 + var _1L = $get(_1I, _1J); //#3640 + if ((_1L < 48) || (_1L > 57)) { //#3639 + $k[$j++] = 'bwipp.upcEbadCharacter'; //#3638 + $k[$j++] = "UPC-E must contain only digits"; //#3638 + $0.raiseerror(); //#3638 + } //#3638 + } //#3638 + if ((($1.addon.length != 0) && ($1.addon.length != 2)) && ($1.addon.length != 5)) { //#3643 + $k[$j++] = 'bwipp.upcEbadAddOnLength'; //#3642 + $k[$j++] = "Add-on for UPC-E must be 2 or 5 digits"; //#3642 + $0.raiseerror(); //#3642 + } //#3642 + var _1Q = $get($1.barcode, 0); //#3646 + if ((_1Q != 48) && (_1Q != 49)) { //#3648 + $k[$j++] = 'bwipp.upcEbadNumberSystem'; //#3647 + $k[$j++] = "UPC-E must have number system 0 or 1"; //#3647 + $0.raiseerror(); //#3647 + } //#3647 + $1.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "111111"]); //#3655 + $1.barchars = "0123456789"; //#3658 + $1.mirrormaps = $a(["000111", "001011", "001101", "001110", "010011", "011001", "011100", "010101", "010110", "011010"]); //#3663 + for (var _1T = 0, _1U = 1; _1T < _1U; _1T++) { //#3693 + $1.upcacode = $s(11); //#3667 + if (($get($1.barcode, 6) - 48) <= 2) { //#3674 + $puti($1.upcacode, 0, $geti($1.barcode, 0, 3)); //#3669 + $puti($1.upcacode, 3, $geti($1.barcode, 6, 1)); //#3670 + $puti($1.upcacode, 4, "0000"); //#3671 + $puti($1.upcacode, 8, $geti($1.barcode, 3, 3)); //#3672 + break; //#3673 + } //#3673 + if (($get($1.barcode, 6) - 48) == 3) { //#3680 + $puti($1.upcacode, 0, $geti($1.barcode, 0, 4)); //#3676 + $puti($1.upcacode, 4, "00000"); //#3677 + $puti($1.upcacode, 9, $geti($1.barcode, 4, 2)); //#3678 + break; //#3679 + } //#3679 + if (($get($1.barcode, 6) - 48) == 4) { //#3686 + $puti($1.upcacode, 0, $geti($1.barcode, 0, 5)); //#3682 + $puti($1.upcacode, 5, "00000"); //#3683 + $puti($1.upcacode, 10, $geti($1.barcode, 5, 1)); //#3684 + break; //#3685 + } //#3685 + if (($get($1.barcode, 6) - 48) >= 5) { //#3692 + $puti($1.upcacode, 0, $geti($1.barcode, 0, 6)); //#3688 + $puti($1.upcacode, 6, "0000"); //#3689 + $puti($1.upcacode, 10, $geti($1.barcode, 6, 1)); //#3690 + break; //#3691 + } //#3691 + } //#3691 + $1.checksum = 0; //#3694 + for (var _29 = 0; _29 <= 10; _29 += 1) { //#3703 + $1.i = _29; //#3696 + $1.barchar = $get($1.upcacode, $1.i) - 48; //#3697 + if (($1.i % 2) != 0) { //#3701 + $1.checksum = $1.checksum + $1.barchar; //#3699 + } else { //#3701 + $1.checksum = $1.checksum + ($1.barchar * 3); //#3701 + } //#3701 + } //#3701 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#3704 + if ($1.barcode.length == 8) { //#3709 + if ($get($1.barcode, 7) != ($1.checksum + 48)) { //#3708 + $k[$j++] = 'bwipp.upcEbadCheckDigit'; //#3707 + $k[$j++] = "Incorrect UPC check digit provided"; //#3707 + $0.raiseerror(); //#3707 + } //#3707 + } //#3707 + $1.pad = $s(8); //#3710 + $puti($1.pad, 0, $1.barcode); //#3711 + $put($1.pad, 7, $1.checksum + 48); //#3712 + $1.barcode = $1.pad; //#3713 + $1.txt = $a(8); //#3714 + $put($1.txt, 0, $a([$geti($1.barcode, 0, 1), $1.textxoffset, $1.textyoffset, $1.textfont, $f($1.textsize - 2)])); //#3715 + $1.mirrormap = $get($1.mirrormaps, $1.checksum); //#3718 + if ($get($1.barcode, 0) == 48) { //#3732 + $1.invt = $s($1.mirrormap.length); //#3722 + for (var _2l = 0, _2k = $1.mirrormap.length - 1; _2l <= _2k; _2l += 1) { //#3730 + $1.i = _2l; //#3724 + if ($get($1.mirrormap, $1.i) == 48) { //#3728 + $put($1.invt, $1.i, 49); //#3726 + } else { //#3728 + $put($1.invt, $1.i, 48); //#3728 + } //#3728 + } //#3728 + $1.mirrormap = $1.invt; //#3731 + } //#3731 + $1.sbs = $s(33); //#3734 + $puti($1.sbs, 0, $get($1.encs, 10)); //#3737 + for (var _2y = 1; _2y <= 6; _2y += 1) { //#3759 + $1.i = _2y; //#3740 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#3742 + $j--; //#3743 + $1.indx = $k[--$j].length; //#3744 + $j -= 2; //#3745 + $1.enc = $get($1.encs, $1.indx); //#3746 + if ($get($1.mirrormap, $1.i - 1) == 49) { //#3756 + $1.enclen = $1.enc.length; //#3748 + $1.revenc = $s($1.enclen); //#3749 + for (var _3F = 0, _3E = $1.enclen - 1; _3F <= _3E; _3F += 1) { //#3754 + $1.j = _3F; //#3751 + $1.char = $get($1.enc, $1.j); //#3752 + $put($1.revenc, ($1.enclen - $1.j) - 1, $1.char); //#3753 + } //#3753 + $1.enc = $1.revenc; //#3755 + } //#3755 + $puti($1.sbs, (($1.i - 1) * 4) + 3, $1.enc); //#3757 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $f(((($1.i - 1) * 7) + 11) + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize])); //#3758 + } //#3758 + $put($1.txt, 7, $a([$geti($1.barcode, 7, 1), $f(((6 * 7) + 18) + $1.textxoffset), $1.textyoffset, $1.textfont, $f($1.textsize - 2)])); //#3761 + $puti($1.sbs, 27, $get($1.encs, 11)); //#3764 + $k[$j++] = Infinity; //#3766 + var _3n = $1.sbs; //#3766 + for (var _3o = 0, _3p = _3n.length; _3o < _3p; _3o++) { //#3766 + $k[$j++] = $get(_3n, _3o) - 48; //#3766 + } //#3766 + $1.sbs = $a(); //#3766 + if ($1.includetext) { //#3773 + $k[$j++] = Infinity; //#3768 + $k[$j++] = $1.height; //#3768 + $k[$j++] = $1.height; //#3768 + for (var _3v = 0, _3w = 12; _3v < _3w; _3v++) { //#3768 + $k[$j++] = $f($1.height - 0.075); //#3768 + } //#3768 + $k[$j++] = $1.height; //#3768 + $k[$j++] = $1.height; //#3768 + $k[$j++] = $1.height; //#3768 + $1.bhs = $a(); //#3768 + $k[$j++] = Infinity; //#3769 + $k[$j++] = 0; //#3769 + $k[$j++] = 0; //#3769 + for (var _42 = 0, _43 = 12; _42 < _43; _42++) { //#3769 + $k[$j++] = 0.075; //#3769 + } //#3769 + $k[$j++] = 0; //#3769 + $k[$j++] = 0; //#3769 + $k[$j++] = 0; //#3769 + $1.bbs = $a(); //#3769 + } else { //#3773 + $k[$j++] = Infinity; //#3771 + for (var _45 = 0, _46 = 17; _45 < _46; _45++) { //#3771 + $k[$j++] = $1.height; //#3771 + } //#3771 + $1.bhs = $a(); //#3771 + $k[$j++] = Infinity; //#3772 + for (var _49 = 0, _4A = 17; _49 < _4A; _49++) { //#3772 + $k[$j++] = 0; //#3772 + } //#3772 + $1.bbs = $a(); //#3772 + $1.txt = $a([]); //#3773 + } //#3773 + $1.guardrightypos = 0; //#3775 + if ($ne($1.addon, "")) { //#3796 + $k[$j++] = Infinity; //#3786 + $k[$j++] = 'dontdraw'; //#3783 + $k[$j++] = true; //#3783 + $k[$j++] = 'includetext'; //#3783 + $k[$j++] = true; //#3783 + $k[$j++] = 'height'; //#3783 + $k[$j++] = $f($1.height - 0.15); //#3783 + $k[$j++] = 'textxoffset'; //#3783 + if ($1.addontextxoffset != "unset") { //#3783 + $k[$j++] = $1.addontextxoffset; //#3783 + } else { //#3783 + $k[$j++] = $f(51 + $1.addongap); //#3783 + } //#3783 + if ($1.addontextyoffset != "unset") { //#3784 + $k[$j++] = 'textyoffset'; //#3784 + $k[$j++] = $1.addontextyoffset; //#3784 + } //#3784 + var _4L = ($1.addontextsize != "unset") ? $1.addontextsize : $1.textsize; //#3785 + var _4N = $ne($1.addontextfont, "unset") ? $1.addontextfont : $1.textfont; //#3786 + $k[$j++] = 'textsize'; //#3786 + $k[$j++] = _4L; //#3786 + $k[$j++] = 'textfont'; //#3786 + $k[$j++] = _4N; //#3786 + $1.addopts = $d(); //#3787 + if ($1.addon.length == 2) { //#3788 + $k[$j++] = $1.addon; //#3788 + $k[$j++] = $1.addopts; //#3788 + $0.ean2(); //#3788 + } //#3788 + if ($1.addon.length == 5) { //#3789 + $k[$j++] = $1.addon; //#3789 + $k[$j++] = $1.addopts; //#3789 + $0.ean5(); //#3789 + } //#3789 + $1.addcode = $k[--$j]; //#3790 + $k[$j++] = Infinity; //#3791 + $aload($1.sbs); //#3791 + $k[$j++] = $1.addongap; //#3791 + $aload($get($1.addcode, "sbs")); //#3791 + $1.sbs = $a(); //#3791 + $k[$j++] = Infinity; //#3792 + $aload($1.bhs); //#3792 + $forall($get($1.addcode, "bhs"), function() { //#3792 + var _4e = $k[--$j]; //#3792 + $k[$j++] = $f(_4e - 0.075); //#3792 + }); //#3792 + $1.bhs = $a(); //#3792 + $k[$j++] = Infinity; //#3793 + $aload($1.bbs); //#3793 + $forall($get($1.addcode, "bbs"), function() { //#3793 + var _4j = $k[--$j]; //#3793 + $k[$j++] = $f(_4j + 0.075); //#3793 + }); //#3793 + $1.bbs = $a(); //#3793 + $k[$j++] = Infinity; //#3794 + $aload($1.txt); //#3794 + $aload($get($1.addcode, "txt")); //#3794 + $1.txt = $a(); //#3794 + $1.guardrightypos = $f(($1.height * 72) - 6); //#3795 + } //#3795 + var _4w = new Map([ + ["ren", $0.renlinear], + ["sbs", $1.sbs], + ["bhs", $1.bhs], + ["bbs", $1.bbs], + ["txt", $1.txt], + ["opt", $1.options], + ["guardrightpos", 10], + ["guardrightypos", $1.guardrightypos], + ["borderbottom", 5] + ]); //#3808 + $k[$j++] = _4w; //#3811 + if (!$1.dontdraw) { //#3811 + $0.renlinear(); //#3811 + } //#3811 }; $0.isbn = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.isbntextfont = "OCR-A"; - $1.isbntextsize = 8; - $1.isbntextxoffset = "unset"; - $1.isbntextyoffset = "unset"; - $1.height = 1; - $1.addongap = 12; - $1.legacy = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.isbntextfont = "" + $1.isbntextfont; - $1.isbntextsize = +$1.isbntextsize; - if ($ne($1.isbntextxoffset, "unset")) { - $1.isbntextxoffset = +$1.isbntextxoffset; - } - if ($ne($1.isbntextyoffset, "unset")) { - $1.isbntextyoffset = +$1.isbntextyoffset; - } - $1.height = +$1.height; - $1.addongap = +$1.addongap; - $search($1.barcode, " "); - if ($k[--$j]) { - $1.barcode = $k[--$j]; - $j--; - $1.addon = $k[--$j]; - } else { - $j--; - $1.addon = ""; - } - if ($1.barcode.length != 15 && $1.barcode.length != 17 && ($1.barcode.length != 11 && $1.barcode.length != 13)) { - $k[$j++] = "bwipp.isbnBadLength"; - $k[$j++] = "ISBN-13 must be 15 or 17 characters including dashes. ISBN-10 must be 11 or 13 characters including dashes"; - $0.raiseerror(); - } - if ($1.addon.length != 0 && $1.addon.length != 2 && $1.addon.length != 5) { - $k[$j++] = "bwipp.isbnBadAddOnLength"; - $k[$j++] = "Add-on for ISBN must be 2 or 5 digits"; - $0.raiseerror(); - } - if ($1.barcode.length >= 15) { - var _Q = $geti($1.barcode, 0, 4); - if ($ne(_Q, "978-") && $ne(_Q, "979-")) { - $k[$j++] = "bwipp.isbn13badPrefix"; - $k[$j++] = "ISBN-13 prefix must be 978- or 979-"; - $0.raiseerror(); - } - $1.wasdash = false; - $1.numdash = 0; - $1.numdigit = 0; - var _S = $geti($1.barcode, 5, 9); - for (var _T = 0, _U = _S.length; _T < _U; _T++) { - var _V = $get(_S, _T); - $k[$j++] = _V; - if (_V == 45) { - if ($1.wasdash) { - $k[$j++] = "bwipp.isbn13adjacentDashes"; - $k[$j++] = "ISBN-13 does not permit adjacent dashes"; - $0.raiseerror(); - } - $1.wasdash = true; - $1.numdash = $1.numdash + 1; - } - var _Y = $k[--$j]; - if (_Y >= 48 && _Y <= 57) { - $1.wasdash = false; - $1.numdigit = $1.numdigit + 1; - } - } - if ($1.numdash != 2 || $1.numdigit != 7) { - $k[$j++] = "bwipp.isbn13numDashesDigits"; - $k[$j++] = "Incorrect number of dashes and digits for ISBN-13"; - $0.raiseerror(); - } - var _d = $get($1.barcode, 14); - if (_d < 48 || _d > 57) { - $k[$j++] = "bwipp.isbn13character15"; - $k[$j++] = "ISBN-13 character 15 must be a digit"; - $0.raiseerror(); - } - if ($1.barcode.length == 17) { - if ($ne($geti($1.barcode, 15, 1), "-")) { - $k[$j++] = "bwipp.isbn13character16"; - $k[$j++] = "ISBN-13 penultimate character must be a dash"; - $0.raiseerror(); - } - var _i = $get($1.barcode, 16); - if (_i < 48 || _i > 57) { - $k[$j++] = "bwipp.isbn13character17"; - $k[$j++] = "ISBN-13 final character must be a digit"; - $0.raiseerror(); - } - } - } else { - var _k = $get($1.barcode, 0); - if (_k < 48 || _k > 57) { - $k[$j++] = "bwipp.isbn10FirstDigit"; - $k[$j++] = "ISBN-10 first character must be a digit"; - $0.raiseerror(); - } - $1.wasdash = false; - $1.numdash = 0; - $1.numdigit = 0; - var _m = $geti($1.barcode, 1, 9); - for (var _n = 0, _o = _m.length; _n < _o; _n++) { - var _p = $get(_m, _n); - $k[$j++] = _p; - if (_p == 45) { - if ($1.wasdash) { - $k[$j++] = "bwipp.isbn10adjacentDashes"; - $k[$j++] = "ISBN-10 does not permit adjacent dashes"; - $0.raiseerror(); - } - $1.wasdash = true; - $1.numdash = $1.numdash + 1; - } - var _s = $k[--$j]; - if (_s >= 48 && _s <= 57) { - $1.wasdash = false; - $1.numdigit = $1.numdigit + 1; - } - } - if ($1.numdash != 2 || $1.numdigit != 7) { - $k[$j++] = "bwipp.isbn10numDashesDigits"; - $k[$j++] = "Incorrect number of dashes and digits for ISBN-10"; - $0.raiseerror(); - } - var _x = $get($1.barcode, 10); - if (_x < 48 || _x > 57) { - $k[$j++] = "bwipp.isbn10character11"; - $k[$j++] = "ISBN-10 character 11 must be a digit"; - $0.raiseerror(); - } - if ($1.barcode.length == 13) { - if ($ne($geti($1.barcode, 11, 1), "-")) { - $k[$j++] = "bwipp.isbn10character12"; - $k[$j++] = "ISBN-10 penultimate character must be a dash"; - $0.raiseerror(); - } - var _12 = $get($1.barcode, 12); - if ((_12 < 48 || _12 > 57) && _12 != 88) { - $k[$j++] = "bwipp.isbn10character13"; - $k[$j++] = "ISBN-10 final character must be a digit or X"; - $0.raiseerror(); - } - } - } - $1.isbntxt = $1.barcode; - if ($1.isbntxt.length <= 13) { - $1.isbn = $s(10); - $1.checksum = 0; - $1.i = 0; - $1.n = 0; - for (;;) { - $1.isbnchar = $f($get($1.isbntxt, $1.i) - 48); - if ($1.isbnchar != -3) { - $put($1.isbn, $1.n, $f($1.isbnchar + 48)); - if ($1.n < 9) { - $1.checksum = $f($1.checksum + (10 - $1.n) * $1.isbnchar); - } - $1.n = $1.n + 1; - } - $1.i = $1.i + 1; - if ($1.i == $1.isbntxt.length) { - break; - } - } - var _1M = $f(11 - $1.checksum % 11) % 11; - $k[$j++] = "checksum"; - $k[$j++] = _1M; - if (_1M == 10) { - $j--; - $k[$j++] = 40; - } - var _1N = $k[--$j]; - $1[$k[--$j]] = $f(_1N + 48); - $1.isbn = $geti($1.isbn, 0, 9); - if ($1.isbntxt.length == 13) { - if ($get($1.isbntxt, 12) != $1.checksum) { - $k[$j++] = "bwipp.isbn10badCheckDigit"; - $k[$j++] = "Incorrect ISBN-10 check digit provided"; - $0.raiseerror(); - } - } - } - if (!$1.legacy || $1.isbntxt.length >= 15) { - if ($1.isbntxt.length <= 13) { - $1.pad = $s(15); - $puti($1.pad, 0, "978-"); - $puti($1.pad, 4, $geti($1.isbntxt, 0, 11)); - $1.isbntxt = $1.pad; - } - $1.isbn = $s(13); - $1.checksum = 0; - $1.i = 0; - $1.n = 0; - for (;;) { - $1.isbnchar = $get($1.isbntxt, $1.i) - 48; - if ($1.isbnchar != -3) { - $put($1.isbn, $1.n, $1.isbnchar + 48); - if ($1.n < 12) { - $k[$j++] = "checksum"; - $k[$j++] = $1.isbnchar; - if ($1.n % 2 != 0) { - var _1p = $k[--$j]; - $k[$j++] = _1p * 3; - } - var _1r = $k[--$j]; - $1[$k[--$j]] = $f(_1r + $1.checksum); - } - $1.n = $1.n + 1; - } - $1.i = $1.i + 1; - if ($1.i == $1.isbntxt.length) { - break; - } - } - $1.checksum = (10 - $1.checksum % 10) % 10 + 48; - $1.isbn = $geti($1.isbn, 0, 12); - if ($1.isbntxt.length == 17) { - if ($get($1.isbntxt, 16) != $1.checksum) { - $k[$j++] = "bwipp.isbn13badCheckDigit"; - $k[$j++] = "Incorrect ISBN-13 check digit provided"; - $0.raiseerror(); - } - } - } - var _25 = $1.isbn.length == 12 ? 22 : 18; - $1.pad = $s(_25); - $puti($1.pad, 0, "ISBN "); - $puti($1.pad, 5, $1.isbntxt); - $put($1.pad, $1.pad.length - 2, 45); - $put($1.pad, $1.pad.length - 1, $1.checksum); - $1.isbntxt = $1.pad; - $1.barcode = $s(12); - if ($1.isbn.length == 9) { - $puti($1.barcode, 0, "978"); - $puti($1.barcode, 3, $1.isbn); - } else { - $puti($1.barcode, 0, $1.isbn); - } - if ($ne($1.addon, "")) { - var _2P = $s(12 + $1.addon.length + 1); - $puti(_2P, 0, $1.barcode); - $puti(_2P, 12, " "); - $puti(_2P, 13, $1.addon); - $1.barcode = _2P; - } - $put($1.options, "dontdraw", true); - $put($1.options, "addongap", $1.addongap); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.ean13(); - var _2X = $k[--$j]; - $1[$k[--$j]] = _2X; - if ($1.includetext) { - if ($1.isbntextxoffset == "unset") { - $k[$j++] = "isbntextxoffset"; - if ($1.isbn.length == 9) { - $k[$j++] = -1; - } else { - $k[$j++] = -12; - } - var _2c = $k[--$j]; - $1[$k[--$j]] = _2c; - } - if ($1.isbntextyoffset == "unset") { - $1.isbntextyoffset = $f($1.height * 72 + 3); - } - var _2h = $get($1.args, "txt") !== undefined; - if (_2h) { - $1.txt = $get($1.args, "txt"); - $1.newtxt = $a($1.txt.length + 1); - $puti($1.newtxt, 0, $1.txt); - $put($1.newtxt, $1.newtxt.length - 1, $a([ $1.isbntxt, $1.isbntextxoffset, $1.isbntextyoffset, $1.isbntextfont, $1.isbntextsize ])); - $put($1.args, "txt", $1.newtxt); - } else { - $put($1.args, "txt", $a([ $a([ $1.isbntxt, $1.isbntextxoffset, $1.isbntextyoffset, $1.isbntextfont, $1.isbntextsize ]) ])); - } - } - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#3841 + $1.options = $k[--$j]; //#3843 + $1.barcode = $k[--$j]; //#3844 + $1.dontdraw = false; //#3846 + $1.includetext = false; //#3847 + $1.isbntextfont = 'OCR-A'; //#3848 + $1.isbntextsize = 8; //#3849 + $1.isbntextxoffset = "unset"; //#3850 + $1.isbntextyoffset = "unset"; //#3851 + $1.height = 1; //#3852 + $1.addongap = 12; //#3853 + $1.legacy = false; //#3854 + $forall($1.options, function() { //#3865 + var _3 = $k[--$j]; //#3865 + $1[$k[--$j]] = _3; //#3865 + }); //#3865 + $1.isbntextfont = "" + $1.isbntextfont; //#3867 + $1.isbntextsize = +$1.isbntextsize; //#3868 + if ($ne($1.isbntextxoffset, "unset")) { //#3869 + $1.isbntextxoffset = +$1.isbntextxoffset; //#3869 + } //#3869 + if ($ne($1.isbntextyoffset, "unset")) { //#3870 + $1.isbntextyoffset = +$1.isbntextyoffset; //#3870 + } //#3870 + $1.height = +$1.height; //#3871 + $1.addongap = +$1.addongap; //#3872 + $search($1.barcode, " "); //#3875 + if ($k[--$j]) { //#3881 + $1.barcode = $k[--$j]; //#3876 + $j--; //#3877 + $1.addon = $k[--$j]; //#3878 + } else { //#3881 + $j--; //#3880 + $1.addon = ""; //#3881 + } //#3881 + if ((($1.barcode.length != 15) && ($1.barcode.length != 17)) && (($1.barcode.length != 11) && ($1.barcode.length != 13))) { //#3888 + $k[$j++] = 'bwipp.isbnBadLength'; //#3887 + $k[$j++] = "ISBN-13 must be 15 or 17 characters including dashes. ISBN-10 must be 11 or 13 characters including dashes"; //#3887 + $0.raiseerror(); //#3887 + } //#3887 + if ((($1.addon.length != 0) && ($1.addon.length != 2)) && ($1.addon.length != 5)) { //#3891 + $k[$j++] = 'bwipp.isbnBadAddOnLength'; //#3890 + $k[$j++] = "Add-on for ISBN must be 2 or 5 digits"; //#3890 + $0.raiseerror(); //#3890 + } //#3890 + if ($1.barcode.length >= 15) { //#3955 + var _Q = $geti($1.barcode, 0, 4); //#3893 + if ($ne(_Q, "978-") && $ne(_Q, "979-")) { //#3895 + $k[$j++] = 'bwipp.isbn13badPrefix'; //#3894 + $k[$j++] = "ISBN-13 prefix must be 978- or 979-"; //#3894 + $0.raiseerror(); //#3894 + } //#3894 + $1.wasdash = false; //#3896 + $1.numdash = 0; //#3896 + $1.numdigit = 0; //#3896 + var _S = $geti($1.barcode, 5, 9); //#3897 + for (var _T = 0, _U = _S.length; _T < _U; _T++) { //#3910 + var _V = $get(_S, _T); //#3910 + $k[$j++] = _V; //#3905 + if (_V == 45) { //#3905 + if ($1.wasdash) { //#3902 + $k[$j++] = 'bwipp.isbn13adjacentDashes'; //#3901 + $k[$j++] = "ISBN-13 does not permit adjacent dashes"; //#3901 + $0.raiseerror(); //#3901 + } //#3901 + $1.wasdash = true; //#3903 + $1.numdash = $1.numdash + 1; //#3904 + } //#3904 + var _Y = $k[--$j]; //#3906 + if ((_Y >= 48) && (_Y <= 57)) { //#3909 + $1.wasdash = false; //#3907 + $1.numdigit = $1.numdigit + 1; //#3908 + } //#3908 + } //#3908 + if (($1.numdash != 2) || ($1.numdigit != 7)) { //#3913 + $k[$j++] = 'bwipp.isbn13numDashesDigits'; //#3912 + $k[$j++] = "Incorrect number of dashes and digits for ISBN-13"; //#3912 + $0.raiseerror(); //#3912 + } //#3912 + var _d = $get($1.barcode, 14); //#3914 + if ((_d < 48) || (_d > 57)) { //#3916 + $k[$j++] = 'bwipp.isbn13character15'; //#3915 + $k[$j++] = "ISBN-13 character 15 must be a digit"; //#3915 + $0.raiseerror(); //#3915 + } //#3915 + if ($1.barcode.length == 17) { //#3924 + if ($ne($geti($1.barcode, 15, 1), "-")) { //#3920 + $k[$j++] = 'bwipp.isbn13character16'; //#3919 + $k[$j++] = "ISBN-13 penultimate character must be a dash"; //#3919 + $0.raiseerror(); //#3919 + } //#3919 + var _i = $get($1.barcode, 16); //#3921 + if ((_i < 48) || (_i > 57)) { //#3923 + $k[$j++] = 'bwipp.isbn13character17'; //#3922 + $k[$j++] = "ISBN-13 final character must be a digit"; //#3922 + $0.raiseerror(); //#3922 + } //#3922 + } //#3922 + } else { //#3955 + var _k = $get($1.barcode, 0); //#3926 + if ((_k < 48) || (_k > 57)) { //#3928 + $k[$j++] = 'bwipp.isbn10FirstDigit'; //#3927 + $k[$j++] = "ISBN-10 first character must be a digit"; //#3927 + $0.raiseerror(); //#3927 + } //#3927 + $1.wasdash = false; //#3929 + $1.numdash = 0; //#3929 + $1.numdigit = 0; //#3929 + var _m = $geti($1.barcode, 1, 9); //#3930 + for (var _n = 0, _o = _m.length; _n < _o; _n++) { //#3943 + var _p = $get(_m, _n); //#3943 + $k[$j++] = _p; //#3938 + if (_p == 45) { //#3938 + if ($1.wasdash) { //#3935 + $k[$j++] = 'bwipp.isbn10adjacentDashes'; //#3934 + $k[$j++] = "ISBN-10 does not permit adjacent dashes"; //#3934 + $0.raiseerror(); //#3934 + } //#3934 + $1.wasdash = true; //#3936 + $1.numdash = $1.numdash + 1; //#3937 + } //#3937 + var _s = $k[--$j]; //#3939 + if ((_s >= 48) && (_s <= 57)) { //#3942 + $1.wasdash = false; //#3940 + $1.numdigit = $1.numdigit + 1; //#3941 + } //#3941 + } //#3941 + if (($1.numdash != 2) || ($1.numdigit != 7)) { //#3946 + $k[$j++] = 'bwipp.isbn10numDashesDigits'; //#3945 + $k[$j++] = "Incorrect number of dashes and digits for ISBN-10"; //#3945 + $0.raiseerror(); //#3945 + } //#3945 + var _x = $get($1.barcode, 10); //#3947 + if ((_x < 48) || (_x > 57)) { //#3949 + $k[$j++] = 'bwipp.isbn10character11'; //#3948 + $k[$j++] = "ISBN-10 character 11 must be a digit"; //#3948 + $0.raiseerror(); //#3948 + } //#3948 + if ($1.barcode.length == 13) { //#3957 + if ($ne($geti($1.barcode, 11, 1), "-")) { //#3953 + $k[$j++] = 'bwipp.isbn10character12'; //#3952 + $k[$j++] = "ISBN-10 penultimate character must be a dash"; //#3952 + $0.raiseerror(); //#3952 + } //#3952 + var _12 = $get($1.barcode, 12); //#3954 + if (((_12 < 48) || (_12 > 57)) && (_12 != 88)) { //#3956 + $k[$j++] = 'bwipp.isbn10character13'; //#3955 + $k[$j++] = "ISBN-10 final character must be a digit or X"; //#3955 + $0.raiseerror(); //#3955 + } //#3955 + } //#3955 + } //#3955 + $1.isbntxt = $1.barcode; //#3960 + if ($1.isbntxt.length <= 13) { //#3986 + $1.isbn = $s(10); //#3964 + $1.checksum = 0; //#3965 + $1.i = 0; //#3966 + $1.n = 0; //#3966 + for (;;) { //#3978 + $1.isbnchar = $f($get($1.isbntxt, $1.i) - 48); //#3968 + if ($1.isbnchar != -3) { //#3975 + $put($1.isbn, $1.n, $f($1.isbnchar + 48)); //#3970 + if ($1.n < 9) { //#3973 + $1.checksum = $f($1.checksum + ((10 - $1.n) * $1.isbnchar)); //#3972 + } //#3972 + $1.n = $1.n + 1; //#3974 + } //#3974 + $1.i = $1.i + 1; //#3976 + if ($1.i == $1.isbntxt.length) { //#3977 + break; //#3977 + } //#3977 + } //#3977 + var _1M = ($f(11 - ($1.checksum % 11))) % 11; //#3979 + $k[$j++] = 'checksum'; //#3979 + $k[$j++] = _1M; //#3979 + if (_1M == 10) { //#3979 + $j--; //#3979 + $k[$j++] = 40; //#3979 + } //#3979 + var _1N = $k[--$j]; //#3979 + $1[$k[--$j]] = $f(_1N + 48); //#3979 + $1.isbn = $geti($1.isbn, 0, 9); //#3980 + if ($1.isbntxt.length == 13) { //#3985 + if ($get($1.isbntxt, 12) != $1.checksum) { //#3984 + $k[$j++] = 'bwipp.isbn10badCheckDigit'; //#3983 + $k[$j++] = "Incorrect ISBN-10 check digit provided"; //#3983 + $0.raiseerror(); //#3983 + } //#3983 + } //#3983 + } //#3983 + if ((!$1.legacy) || ($1.isbntxt.length >= 15)) { //#4022 + if ($1.isbntxt.length <= 13) { //#3996 + $1.pad = $s(15); //#3992 + $puti($1.pad, 0, "978-"); //#3993 + $puti($1.pad, 4, $geti($1.isbntxt, 0, 11)); //#3994 + $1.isbntxt = $1.pad; //#3995 + } //#3995 + $1.isbn = $s(13); //#3999 + $1.checksum = 0; //#4000 + $1.i = 0; //#4001 + $1.n = 0; //#4001 + for (;;) { //#4013 + $1.isbnchar = $get($1.isbntxt, $1.i) - 48; //#4003 + if ($1.isbnchar != -3) { //#4010 + $put($1.isbn, $1.n, $1.isbnchar + 48); //#4005 + if ($1.n < 12) { //#4008 + $k[$j++] = 'checksum'; //#4007 + $k[$j++] = $1.isbnchar; //#4007 + if (($1.n % 2) != 0) { //#4007 + var _1p = $k[--$j]; //#4007 + $k[$j++] = _1p * 3; //#4007 + } //#4007 + var _1r = $k[--$j]; //#4007 + $1[$k[--$j]] = $f(_1r + $1.checksum); //#4007 + } //#4007 + $1.n = $1.n + 1; //#4009 + } //#4009 + $1.i = $1.i + 1; //#4011 + if ($1.i == $1.isbntxt.length) { //#4012 + break; //#4012 + } //#4012 + } //#4012 + $1.checksum = ((10 - ($1.checksum % 10)) % 10) + 48; //#4014 + $1.isbn = $geti($1.isbn, 0, 12); //#4015 + if ($1.isbntxt.length == 17) { //#4020 + if ($get($1.isbntxt, 16) != $1.checksum) { //#4019 + $k[$j++] = 'bwipp.isbn13badCheckDigit'; //#4018 + $k[$j++] = "Incorrect ISBN-13 check digit provided"; //#4018 + $0.raiseerror(); //#4018 + } //#4018 + } //#4018 + } //#4018 + var _25 = ($1.isbn.length == 12) ? 22 : 18; //#4025 + $1.pad = $s(_25); //#4025 + $puti($1.pad, 0, "ISBN "); //#4026 + $puti($1.pad, 5, $1.isbntxt); //#4027 + $put($1.pad, $1.pad.length - 2, 45); //#4028 + $put($1.pad, $1.pad.length - 1, $1.checksum); //#4029 + $1.isbntxt = $1.pad; //#4030 + $1.barcode = $s(12); //#4033 + if ($1.isbn.length == 9) { //#4038 + $puti($1.barcode, 0, "978"); //#4035 + $puti($1.barcode, 3, $1.isbn); //#4036 + } else { //#4038 + $puti($1.barcode, 0, $1.isbn); //#4038 + } //#4038 + if ($ne($1.addon, "")) { //#4048 + var _2P = $s((12 + $1.addon.length) + 1); //#4043 + $puti(_2P, 0, $1.barcode); //#4044 + $puti(_2P, 12, " "); //#4045 + $puti(_2P, 13, $1.addon); //#4046 + $1.barcode = _2P; //#4047 + } //#4047 + $put($1.options, "dontdraw", true); //#4051 + $put($1.options, "addongap", $1.addongap); //#4052 + $k[$j++] = 'args'; //#4053 + $k[$j++] = $1.barcode; //#4053 + $k[$j++] = $1.options; //#4053 + $0.ean13(); //#4053 + var _2X = $k[--$j]; //#4053 + $1[$k[--$j]] = _2X; //#4053 + if ($1.includetext) { //#4072 + if ($1.isbntextxoffset == "unset") { //#4059 + $k[$j++] = 'isbntextxoffset'; //#4058 + if ($1.isbn.length == 9) { //#4058 + $k[$j++] = -1; //#4058 + } else { //#4058 + $k[$j++] = -12; //#4058 + } //#4058 + var _2c = $k[--$j]; //#4058 + $1[$k[--$j]] = _2c; //#4058 + } //#4058 + if ($1.isbntextyoffset == "unset") { //#4062 + $1.isbntextyoffset = $f(($1.height * 72) + 3); //#4061 + } //#4061 + var _2h = $get($1.args, "txt") !== undefined; //#4063 + if (_2h) { //#4070 + $1.txt = $get($1.args, "txt"); //#4064 + $1.newtxt = $a($1.txt.length + 1); //#4065 + $puti($1.newtxt, 0, $1.txt); //#4066 + $put($1.newtxt, $1.newtxt.length - 1, $a([$1.isbntxt, $1.isbntextxoffset, $1.isbntextyoffset, $1.isbntextfont, $1.isbntextsize])); //#4067 + $put($1.args, "txt", $1.newtxt); //#4068 + } else { //#4070 + $put($1.args, "txt", $a([$a([$1.isbntxt, $1.isbntextxoffset, $1.isbntextyoffset, $1.isbntextfont, $1.isbntextsize])])); //#4070 + } //#4070 + } //#4070 + $put($1.args, "opt", $1.options); //#4074 + $k[$j++] = $1.args; //#4077 + if (!$1.dontdraw) { //#4077 + $0.renlinear(); //#4077 + } //#4077 }; $0.ismn = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.ismntextfont = "OCR-A"; - $1.ismntextsize = 8; - $1.ismntextxoffset = "unset"; - $1.ismntextyoffset = "unset"; - $1.height = 1; - $1.addongap = 12; - $1.legacy = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.ismntextfont = "" + $1.ismntextfont; - $1.ismntextsize = +$1.ismntextsize; - if ($ne($1.ismntextxoffset, "unset")) { - $1.ismntextxoffset = +$1.ismntextxoffset; - } - if ($ne($1.ismntextyoffset, "unset")) { - $1.ismntextyoffset = +$1.ismntextyoffset; - } - $1.height = +$1.height; - $1.addongap = +$1.addongap; - $search($1.barcode, " "); - if ($k[--$j]) { - $1.barcode = $k[--$j]; - $j--; - $1.addon = $k[--$j]; - } else { - $j--; - $1.addon = ""; - } - if ($1.barcode.length != 15 && $1.barcode.length != 17 && ($1.barcode.length != 11 && $1.barcode.length != 13)) { - $k[$j++] = "bwipp.ismnBadLength"; - $k[$j++] = "ISMN-13 must be 15 or 17 characters including dashes. ISMN-10 must be 11 or 13 characters including dashes"; - $0.raiseerror(); - } - if ($1.addon.length != 0 && $1.addon.length != 2 && $1.addon.length != 5) { - $k[$j++] = "bwipp.ismnBadAddOnLength"; - $k[$j++] = "Add-on for ISMN must be 2 or 5 digits"; - $0.raiseerror(); - } - if ($1.barcode.length >= 15) { - if ($ne($geti($1.barcode, 0, 4), "979-")) { - $k[$j++] = "bwipp.ismn13badPrefix"; - $k[$j++] = "ISMN-13 prefix must be 979-"; - $0.raiseerror(); - } - $1.wasdash = false; - $1.numdash = 0; - $1.numdigit = 0; - var _S = $geti($1.barcode, 5, 9); - for (var _T = 0, _U = _S.length; _T < _U; _T++) { - var _V = $get(_S, _T); - $k[$j++] = _V; - if (_V == 45) { - if ($1.wasdash) { - $k[$j++] = "bwipp.ismn13adjacentDashes"; - $k[$j++] = "ISMN-13 does not permit adjacent dashes"; - $0.raiseerror(); - } - $1.wasdash = true; - $1.numdash = $1.numdash + 1; - } - var _Y = $k[--$j]; - if (_Y >= 48 && _Y <= 57) { - $1.wasdash = false; - $1.numdigit = $1.numdigit + 1; - } - } - if ($1.numdash != 2 || $1.numdigit != 7) { - $k[$j++] = "bwipp.ismn13numDashesDigits"; - $k[$j++] = "Incorrect number of dashes and digits for ISMN-13"; - $0.raiseerror(); - } - var _d = $get($1.barcode, 14); - if (_d < 48 || _d > 57) { - $k[$j++] = "bwipp.ismn13character15"; - $k[$j++] = "ISMN-13 character 15 must be a digit"; - $0.raiseerror(); - } - if ($1.barcode.length == 17) { - if ($ne($geti($1.barcode, 15, 1), "-")) { - $k[$j++] = "bwipp.ismn13character16"; - $k[$j++] = "ISMN-13 penultimate character must be a dash"; - $0.raiseerror(); - } - var _i = $get($1.barcode, 16); - if (_i < 48 || _i > 57) { - $k[$j++] = "bwipp.ismn13character17"; - $k[$j++] = "ISMN-13 final character must be a digit"; - $0.raiseerror(); - } - } - } else { - if ($ne($geti($1.barcode, 0, 2), "M-")) { - $k[$j++] = "bwipp.ismn10badPrefix"; - $k[$j++] = "ISMN-10 prefix must be M-"; - $0.raiseerror(); - } - var _m = $get($1.barcode, 2); - if (_m < 48 || _m > 57) { - $k[$j++] = "bwipp.ismn10character3"; - $k[$j++] = "ISMN-10 character 3 must be a digit"; - $0.raiseerror(); - } - $1.wasdash = false; - $1.numdash = 0; - $1.numdigit = 0; - var _o = $geti($1.barcode, 3, 7); - for (var _p = 0, _q = _o.length; _p < _q; _p++) { - var _r = $get(_o, _p); - $k[$j++] = _r; - if (_r == 45) { - if ($1.wasdash) { - $k[$j++] = "bwipp.ismn10adjacentDashes"; - $k[$j++] = "ISMN-10 does not permit adjacent dashes"; - $0.raiseerror(); - } - $1.wasdash = true; - $1.numdash = $1.numdash + 1; - } - var _u = $k[--$j]; - if (_u >= 48 && _u <= 57) { - $1.wasdash = false; - $1.numdigit = $1.numdigit + 1; - } - } - if ($1.numdash != 1 || $1.numdigit != 6) { - $k[$j++] = "bwipp.ismn10numDashesDigits"; - $k[$j++] = "Incorrect number of dashes and digits for ISMN-10"; - $0.raiseerror(); - } - var _z = $get($1.barcode, 10); - if (_z < 48 || _z > 57) { - $k[$j++] = "bwipp.ismn10character11"; - $k[$j++] = "ISMN-10 character 11 must be a digit"; - $0.raiseerror(); - } - if ($1.barcode.length == 13) { - if ($ne($geti($1.barcode, 11, 1), "-")) { - $k[$j++] = "bwipp.ismn10character12"; - $k[$j++] = "ISMN-10 penultimate character must be a dash"; - $0.raiseerror(); - } - var _14 = $get($1.barcode, 12); - if ((_14 < 48 || _14 > 57) && _14 != 88) { - $k[$j++] = "bwipp.ismn10character13"; - $k[$j++] = "ISMN-10 final character must be a digit or X"; - $0.raiseerror(); - } - } - } - $1.ismntxt = $1.barcode; - $1.legacytxt = ""; - if ($1.ismntxt.length <= 13) { - $1.legacytxt = $1.ismntxt; - $1.pad = $s($1.ismntxt.length + 4); - $puti($1.pad, 0, "979-0-"); - $puti($1.pad, 6, $geti($1.ismntxt, 2, $1.ismntxt.length - 2)); - $1.ismntxt = $1.pad; - } - $1.ismn = $s(13); - $1.checksum = 0; - $1.i = 0; - $1.n = 0; - for (;;) { - $1.ismnchar = $get($1.ismntxt, $1.i) - 48; - if ($1.ismnchar != -3) { - $put($1.ismn, $1.n, $1.ismnchar + 48); - if ($1.n < 12) { - if ($1.n % 2 == 0) { - $1.checksum = $1.ismnchar + $1.checksum; - } else { - $1.checksum = $1.ismnchar * 3 + $1.checksum; - } - } - $1.n = $1.n + 1; - } - $1.i = $1.i + 1; - if ($1.i == $1.ismntxt.length) { - break; - } - } - $1.checksum = (10 - $1.checksum % 10) % 10 + 48; - if ($1.barcode.length == 13 || $1.barcode.length == 17) { - var _1b = $1.barcode; - if ($get(_1b, _1b.length - 1) != $1.checksum) { - $k[$j++] = "bwipp.ismnBadCheckDigit"; - $k[$j++] = "Incorrect ISMN check digit provided"; - $0.raiseerror(); - } - } - if ($1.legacy && $ne($1.legacytxt, "")) { - $1.ismntxt = $1.legacytxt; - $1.pad = $s(18); - } else { - $1.pad = $s(22); - } - $puti($1.pad, 0, "ISMN "); - $puti($1.pad, 5, $1.ismntxt); - $put($1.pad, $1.pad.length - 2, 45); - $put($1.pad, $1.pad.length - 1, $1.checksum); - $1.ismntxt = $1.pad; - $1.barcode = $geti($1.ismn, 0, 12); - if ($ne($1.addon, "")) { - var _1w = $s(12 + $1.addon.length + 1); - $puti(_1w, 0, $1.barcode); - $puti(_1w, 12, " "); - $puti(_1w, 13, $1.addon); - $1.barcode = _1w; - } - $put($1.options, "dontdraw", true); - $put($1.options, "addongap", $1.addongap); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.ean13(); - var _24 = $k[--$j]; - $1[$k[--$j]] = _24; - if ($1.includetext) { - if ($1.ismntextxoffset == "unset") { - $k[$j++] = "ismntextxoffset"; - if ($1.ismntxt.length == 18) { - $k[$j++] = -1; - } else { - $k[$j++] = -12; - } - var _29 = $k[--$j]; - $1[$k[--$j]] = _29; - } - if ($1.ismntextyoffset == "unset") { - $1.ismntextyoffset = $f($1.height * 72 + 3); - } - var _2E = $get($1.args, "txt") !== undefined; - if (_2E) { - $1.txt = $get($1.args, "txt"); - $1.newtxt = $a($1.txt.length + 1); - $puti($1.newtxt, 0, $1.txt); - $put($1.newtxt, $1.newtxt.length - 1, $a([ $1.ismntxt, $1.ismntextxoffset, $1.ismntextyoffset, $1.ismntextfont, $1.ismntextsize ])); - $put($1.args, "txt", $1.newtxt); - } else { - $put($1.args, "txt", $a([ $a([ $1.ismntxt, $1.ismntextxoffset, $1.ismntextyoffset, $1.ismntextfont, $1.ismntextsize ]) ])); - } - } - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#4107 + $1.options = $k[--$j]; //#4109 + $1.barcode = $k[--$j]; //#4110 + $1.dontdraw = false; //#4112 + $1.includetext = false; //#4113 + $1.ismntextfont = 'OCR-A'; //#4114 + $1.ismntextsize = 8; //#4115 + $1.ismntextxoffset = "unset"; //#4116 + $1.ismntextyoffset = "unset"; //#4117 + $1.height = 1; //#4118 + $1.addongap = 12; //#4119 + $1.legacy = false; //#4120 + $forall($1.options, function() { //#4131 + var _3 = $k[--$j]; //#4131 + $1[$k[--$j]] = _3; //#4131 + }); //#4131 + $1.ismntextfont = "" + $1.ismntextfont; //#4133 + $1.ismntextsize = +$1.ismntextsize; //#4134 + if ($ne($1.ismntextxoffset, "unset")) { //#4135 + $1.ismntextxoffset = +$1.ismntextxoffset; //#4135 + } //#4135 + if ($ne($1.ismntextyoffset, "unset")) { //#4136 + $1.ismntextyoffset = +$1.ismntextyoffset; //#4136 + } //#4136 + $1.height = +$1.height; //#4137 + $1.addongap = +$1.addongap; //#4138 + $search($1.barcode, " "); //#4141 + if ($k[--$j]) { //#4147 + $1.barcode = $k[--$j]; //#4142 + $j--; //#4143 + $1.addon = $k[--$j]; //#4144 + } else { //#4147 + $j--; //#4146 + $1.addon = ""; //#4147 + } //#4147 + if ((($1.barcode.length != 15) && ($1.barcode.length != 17)) && (($1.barcode.length != 11) && ($1.barcode.length != 13))) { //#4154 + $k[$j++] = 'bwipp.ismnBadLength'; //#4153 + $k[$j++] = "ISMN-13 must be 15 or 17 characters including dashes. ISMN-10 must be 11 or 13 characters including dashes"; //#4153 + $0.raiseerror(); //#4153 + } //#4153 + if ((($1.addon.length != 0) && ($1.addon.length != 2)) && ($1.addon.length != 5)) { //#4157 + $k[$j++] = 'bwipp.ismnBadAddOnLength'; //#4156 + $k[$j++] = "Add-on for ISMN must be 2 or 5 digits"; //#4156 + $0.raiseerror(); //#4156 + } //#4156 + if ($1.barcode.length >= 15) { //#4224 + if ($ne($geti($1.barcode, 0, 4), "979-")) { //#4161 + $k[$j++] = 'bwipp.ismn13badPrefix'; //#4160 + $k[$j++] = "ISMN-13 prefix must be 979-"; //#4160 + $0.raiseerror(); //#4160 + } //#4160 + $1.wasdash = false; //#4162 + $1.numdash = 0; //#4162 + $1.numdigit = 0; //#4162 + var _S = $geti($1.barcode, 5, 9); //#4163 + for (var _T = 0, _U = _S.length; _T < _U; _T++) { //#4176 + var _V = $get(_S, _T); //#4176 + $k[$j++] = _V; //#4171 + if (_V == 45) { //#4171 + if ($1.wasdash) { //#4168 + $k[$j++] = 'bwipp.ismn13adjacentDashes'; //#4167 + $k[$j++] = "ISMN-13 does not permit adjacent dashes"; //#4167 + $0.raiseerror(); //#4167 + } //#4167 + $1.wasdash = true; //#4169 + $1.numdash = $1.numdash + 1; //#4170 + } //#4170 + var _Y = $k[--$j]; //#4172 + if ((_Y >= 48) && (_Y <= 57)) { //#4175 + $1.wasdash = false; //#4173 + $1.numdigit = $1.numdigit + 1; //#4174 + } //#4174 + } //#4174 + if (($1.numdash != 2) || ($1.numdigit != 7)) { //#4179 + $k[$j++] = 'bwipp.ismn13numDashesDigits'; //#4178 + $k[$j++] = "Incorrect number of dashes and digits for ISMN-13"; //#4178 + $0.raiseerror(); //#4178 + } //#4178 + var _d = $get($1.barcode, 14); //#4180 + if ((_d < 48) || (_d > 57)) { //#4182 + $k[$j++] = 'bwipp.ismn13character15'; //#4181 + $k[$j++] = "ISMN-13 character 15 must be a digit"; //#4181 + $0.raiseerror(); //#4181 + } //#4181 + if ($1.barcode.length == 17) { //#4190 + if ($ne($geti($1.barcode, 15, 1), "-")) { //#4186 + $k[$j++] = 'bwipp.ismn13character16'; //#4185 + $k[$j++] = "ISMN-13 penultimate character must be a dash"; //#4185 + $0.raiseerror(); //#4185 + } //#4185 + var _i = $get($1.barcode, 16); //#4187 + if ((_i < 48) || (_i > 57)) { //#4189 + $k[$j++] = 'bwipp.ismn13character17'; //#4188 + $k[$j++] = "ISMN-13 final character must be a digit"; //#4188 + $0.raiseerror(); //#4188 + } //#4188 + } //#4188 + } else { //#4224 + if ($ne($geti($1.barcode, 0, 2), "M-")) { //#4194 + $k[$j++] = 'bwipp.ismn10badPrefix'; //#4193 + $k[$j++] = "ISMN-10 prefix must be M-"; //#4193 + $0.raiseerror(); //#4193 + } //#4193 + var _m = $get($1.barcode, 2); //#4195 + if ((_m < 48) || (_m > 57)) { //#4197 + $k[$j++] = 'bwipp.ismn10character3'; //#4196 + $k[$j++] = "ISMN-10 character 3 must be a digit"; //#4196 + $0.raiseerror(); //#4196 + } //#4196 + $1.wasdash = false; //#4198 + $1.numdash = 0; //#4198 + $1.numdigit = 0; //#4198 + var _o = $geti($1.barcode, 3, 7); //#4199 + for (var _p = 0, _q = _o.length; _p < _q; _p++) { //#4212 + var _r = $get(_o, _p); //#4212 + $k[$j++] = _r; //#4207 + if (_r == 45) { //#4207 + if ($1.wasdash) { //#4204 + $k[$j++] = 'bwipp.ismn10adjacentDashes'; //#4203 + $k[$j++] = "ISMN-10 does not permit adjacent dashes"; //#4203 + $0.raiseerror(); //#4203 + } //#4203 + $1.wasdash = true; //#4205 + $1.numdash = $1.numdash + 1; //#4206 + } //#4206 + var _u = $k[--$j]; //#4208 + if ((_u >= 48) && (_u <= 57)) { //#4211 + $1.wasdash = false; //#4209 + $1.numdigit = $1.numdigit + 1; //#4210 + } //#4210 + } //#4210 + if (($1.numdash != 1) || ($1.numdigit != 6)) { //#4215 + $k[$j++] = 'bwipp.ismn10numDashesDigits'; //#4214 + $k[$j++] = "Incorrect number of dashes and digits for ISMN-10"; //#4214 + $0.raiseerror(); //#4214 + } //#4214 + var _z = $get($1.barcode, 10); //#4216 + if ((_z < 48) || (_z > 57)) { //#4218 + $k[$j++] = 'bwipp.ismn10character11'; //#4217 + $k[$j++] = "ISMN-10 character 11 must be a digit"; //#4217 + $0.raiseerror(); //#4217 + } //#4217 + if ($1.barcode.length == 13) { //#4226 + if ($ne($geti($1.barcode, 11, 1), "-")) { //#4222 + $k[$j++] = 'bwipp.ismn10character12'; //#4221 + $k[$j++] = "ISMN-10 penultimate character must be a dash"; //#4221 + $0.raiseerror(); //#4221 + } //#4221 + var _14 = $get($1.barcode, 12); //#4223 + if (((_14 < 48) || (_14 > 57)) && (_14 != 88)) { //#4225 + $k[$j++] = 'bwipp.ismn10character13'; //#4224 + $k[$j++] = "ISMN-10 final character must be a digit or X"; //#4224 + $0.raiseerror(); //#4224 + } //#4224 + } //#4224 + } //#4224 + $1.ismntxt = $1.barcode; //#4229 + $1.legacytxt = ""; //#4232 + if ($1.ismntxt.length <= 13) { //#4239 + $1.legacytxt = $1.ismntxt; //#4234 + $1.pad = $s($1.ismntxt.length + 4); //#4235 + $puti($1.pad, 0, "979-0-"); //#4236 + $puti($1.pad, 6, $geti($1.ismntxt, 2, $1.ismntxt.length - 2)); //#4237 + $1.ismntxt = $1.pad; //#4238 + } //#4238 + $1.ismn = $s(13); //#4242 + $1.checksum = 0; //#4243 + $1.i = 0; //#4244 + $1.n = 0; //#4244 + for (;;) { //#4260 + $1.ismnchar = $get($1.ismntxt, $1.i) - 48; //#4246 + if ($1.ismnchar != -3) { //#4257 + $put($1.ismn, $1.n, $1.ismnchar + 48); //#4248 + if ($1.n < 12) { //#4255 + if (($1.n % 2) == 0) { //#4253 + $1.checksum = $1.ismnchar + $1.checksum; //#4251 + } else { //#4253 + $1.checksum = ($1.ismnchar * 3) + $1.checksum; //#4253 + } //#4253 + } //#4253 + $1.n = $1.n + 1; //#4256 + } //#4256 + $1.i = $1.i + 1; //#4258 + if ($1.i == $1.ismntxt.length) { //#4259 + break; //#4259 + } //#4259 + } //#4259 + $1.checksum = ((10 - ($1.checksum % 10)) % 10) + 48; //#4261 + if (($1.barcode.length == 13) || ($1.barcode.length == 17)) { //#4268 + var _1b = $1.barcode; //#4265 + if ($get(_1b, _1b.length - 1) != $1.checksum) { //#4267 + $k[$j++] = 'bwipp.ismnBadCheckDigit'; //#4266 + $k[$j++] = "Incorrect ISMN check digit provided"; //#4266 + $0.raiseerror(); //#4266 + } //#4266 + } //#4266 + if ($1.legacy && $ne($1.legacytxt, "")) { //#4275 + $1.ismntxt = $1.legacytxt; //#4272 + $1.pad = $s(18); //#4273 + } else { //#4275 + $1.pad = $s(22); //#4275 + } //#4275 + $puti($1.pad, 0, "ISMN "); //#4277 + $puti($1.pad, 5, $1.ismntxt); //#4278 + $put($1.pad, $1.pad.length - 2, 45); //#4279 + $put($1.pad, $1.pad.length - 1, $1.checksum); //#4280 + $1.ismntxt = $1.pad; //#4281 + $1.barcode = $geti($1.ismn, 0, 12); //#4284 + if ($ne($1.addon, "")) { //#4293 + var _1w = $s((12 + $1.addon.length) + 1); //#4288 + $puti(_1w, 0, $1.barcode); //#4289 + $puti(_1w, 12, " "); //#4290 + $puti(_1w, 13, $1.addon); //#4291 + $1.barcode = _1w; //#4292 + } //#4292 + $put($1.options, "dontdraw", true); //#4296 + $put($1.options, "addongap", $1.addongap); //#4297 + $k[$j++] = 'args'; //#4298 + $k[$j++] = $1.barcode; //#4298 + $k[$j++] = $1.options; //#4298 + $0.ean13(); //#4298 + var _24 = $k[--$j]; //#4298 + $1[$k[--$j]] = _24; //#4298 + if ($1.includetext) { //#4317 + if ($1.ismntextxoffset == "unset") { //#4304 + $k[$j++] = 'ismntextxoffset'; //#4303 + if ($1.ismntxt.length == 18) { //#4303 + $k[$j++] = -1; //#4303 + } else { //#4303 + $k[$j++] = -12; //#4303 + } //#4303 + var _29 = $k[--$j]; //#4303 + $1[$k[--$j]] = _29; //#4303 + } //#4303 + if ($1.ismntextyoffset == "unset") { //#4307 + $1.ismntextyoffset = $f(($1.height * 72) + 3); //#4306 + } //#4306 + var _2E = $get($1.args, "txt") !== undefined; //#4308 + if (_2E) { //#4315 + $1.txt = $get($1.args, "txt"); //#4309 + $1.newtxt = $a($1.txt.length + 1); //#4310 + $puti($1.newtxt, 0, $1.txt); //#4311 + $put($1.newtxt, $1.newtxt.length - 1, $a([$1.ismntxt, $1.ismntextxoffset, $1.ismntextyoffset, $1.ismntextfont, $1.ismntextsize])); //#4312 + $put($1.args, "txt", $1.newtxt); //#4313 + } else { //#4315 + $put($1.args, "txt", $a([$a([$1.ismntxt, $1.ismntextxoffset, $1.ismntextyoffset, $1.ismntextfont, $1.ismntextsize])])); //#4315 + } //#4315 + } //#4315 + $put($1.args, "opt", $1.options); //#4319 + $k[$j++] = $1.args; //#4322 + if (!$1.dontdraw) { //#4322 + $0.renlinear(); //#4322 + } //#4322 }; $0.issn = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.issntxt = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.issntextfont = "OCR-A"; - $1.issntextsize = 8; - $1.issntextxoffset = "unset"; - $1.issntextyoffset = "unset"; - $1.height = 1; - $1.addongap = 12; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.issntextfont = "" + $1.issntextfont; - $1.issntextsize = +$1.issntextsize; - if ($ne($1.issntextxoffset, "unset")) { - $1.issntextxoffset = +$1.issntextxoffset; - } - if ($ne($1.issntextyoffset, "unset")) { - $1.issntextyoffset = +$1.issntextyoffset; - } - $1.height = +$1.height; - $1.addongap = +$1.addongap; - $search($1.issntxt, " "); - if ($k[--$j]) { - $1.issntxt = $k[--$j]; - $j--; - $1.seqvar = $k[--$j]; - } else { - $j--; - $1.seqvar = "00"; - } - $search($1.seqvar, " "); - if ($k[--$j]) { - $1.seqvar = $k[--$j]; - $j--; - $1.addon = $k[--$j]; - } else { - $j--; - $1.addon = ""; - } - if ($1.issntxt.length != 8 && $1.issntxt.length != 9) { - $k[$j++] = "bwipp.issnBadLength"; - $k[$j++] = "ISSN must be 8 or 9 characters including dash, in the format XXXX-XXXX"; - $0.raiseerror(); - } - var _O = $geti($1.issntxt, 0, 4); - for (var _P = 0, _Q = _O.length; _P < _Q; _P++) { - var _R = $get(_O, _P); - if (_R < 48 || _R > 57) { - $k[$j++] = "bwipp.issnFirstThroughFourthNotNumeric"; - $k[$j++] = "ISSN first four characters must be numeral characters"; - $0.raiseerror(); - } - } - if ($ne($geti($1.issntxt, 4, 1), "-")) { - $k[$j++] = "bwipp.issnNeedsDash"; - $k[$j++] = "ISSN fifth character must be a dash"; - $0.raiseerror(); - } - var _V = $geti($1.issntxt, 5, 3); - for (var _W = 0, _X = _V.length; _W < _X; _W++) { - var _Y = $get(_V, _W); - if (_Y < 48 || _Y > 57) { - $k[$j++] = "bwipp.issnSixthThroughEighthNotNumeric"; - $k[$j++] = "ISSN sixth through eighth characters must be numerals"; - $0.raiseerror(); - } - } - if ($1.issntxt.length == 9) { - var _b = $get($1.issntxt, 8); - if ((_b < 48 || _b > 57) && _b != 88) { - $k[$j++] = "bwipp.issnNinthCharacterBadFormat"; - $k[$j++] = "ISSN ninth character must be a number or the character X"; - $0.raiseerror(); - } - } - if ($1.seqvar.length != 2) { - $k[$j++] = "bwipp.issnBadSequenceVariantLength"; - $k[$j++] = "Sequence variant for ISSN must be 2 digits"; - $0.raiseerror(); - } - $forall($1.seqvar, function() { - var _e = $k[--$j]; - if (_e < 48 || _e > 57) { - $k[$j++] = "bwipp.issnSequenceVariantBadCharacter"; - $k[$j++] = "Sequence variant for ISSN must contain only digits"; - $0.raiseerror(); - } - }); - if ($1.addon.length != 0 && $1.addon.length != 2 && $1.addon.length != 5) { - $k[$j++] = "bwipp.issnBadAddOnLength"; - $k[$j++] = "Add-on for ISSN must be 2 or 5 digits"; - $0.raiseerror(); - } - $1.issn = $s(8); - $1.checksum = 0; - $1.i = 0; - $1.n = 0; - for (;;) { - $1.issnchar = $f($get($1.issntxt, $1.i) - 48); - if ($1.issnchar != -3) { - $put($1.issn, $1.n, $f($1.issnchar + 48)); - if ($1.n < 7) { - $1.checksum = $f($1.checksum + $1.issnchar * (8 - $1.n)); - } - $1.n = $1.n + 1; - } - $1.i = $1.i + 1; - if ($1.i == $1.issntxt.length) { - break; - } - } - $1.checksum = $f(11 - $1.checksum % 11) % 11; - var _10 = $f($1.checksum + 48); - $k[$j++] = "checksum"; - $k[$j++] = _10; - if (_10 == 58) { - $j--; - $k[$j++] = 88; - } - var _11 = $k[--$j]; - $1[$k[--$j]] = _11; - if ($1.issntxt.length == 9) { - if ($get($1.issntxt, 8) != $1.checksum) { - $k[$j++] = "bwipp.issnBadCheckDigit"; - $k[$j++] = "Incorrect ISSN check digit provided"; - $0.raiseerror(); - } - } - $1.pad = $s(14); - $puti($1.pad, 0, "ISSN "); - $puti($1.pad, 5, $1.issntxt); - $put($1.pad, 13, $1.checksum); - $1.issntxt = $1.pad; - $1.barcode = $geti($1.issn, 0, 7); - $1.barcode = $s(12); - $puti($1.barcode, 0, "977"); - $puti($1.barcode, 3, $1.issn); - $puti($1.barcode, 10, $1.seqvar); - if ($ne($1.addon, "")) { - var _1O = $s(12 + $1.addon.length + 1); - $puti(_1O, 0, $1.barcode); - $puti(_1O, 12, " "); - $puti(_1O, 13, $1.addon); - $1.barcode = _1O; - } - $put($1.options, "dontdraw", true); - $put($1.options, "addongap", $1.addongap); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.ean13(); - var _1W = $k[--$j]; - $1[$k[--$j]] = _1W; - if ($1.includetext) { - if ($1.issntextxoffset == "unset") { - $1.issntextxoffset = 10; - } - if ($1.issntextyoffset == "unset") { - $1.issntextyoffset = $f($1.height * 72 + 3); - } - var _1d = $get($1.args, "txt") !== undefined; - if (_1d) { - $1.txt = $get($1.args, "txt"); - $1.newtxt = $a($1.txt.length + 1); - $puti($1.newtxt, 0, $1.txt); - $put($1.newtxt, $1.newtxt.length - 1, $a([ $1.issntxt, $1.issntextxoffset, $1.issntextyoffset, $1.issntextfont, $1.issntextsize ])); - $put($1.args, "txt", $1.newtxt); - } else { - $put($1.args, "txt", $a([ $a([ $1.issntxt, $1.issntextxoffset, $1.issntextyoffset, $1.issntextfont, $1.issntextsize ]) ])); - } - } - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#4352 + $1.options = $k[--$j]; //#4354 + $1.issntxt = $k[--$j]; //#4355 + $1.dontdraw = false; //#4357 + $1.includetext = false; //#4358 + $1.issntextfont = 'OCR-A'; //#4359 + $1.issntextsize = 8; //#4360 + $1.issntextxoffset = "unset"; //#4361 + $1.issntextyoffset = "unset"; //#4362 + $1.height = 1; //#4363 + $1.addongap = 12; //#4364 + $forall($1.options, function() { //#4375 + var _3 = $k[--$j]; //#4375 + $1[$k[--$j]] = _3; //#4375 + }); //#4375 + $1.issntextfont = "" + $1.issntextfont; //#4377 + $1.issntextsize = +$1.issntextsize; //#4378 + if ($ne($1.issntextxoffset, "unset")) { //#4379 + $1.issntextxoffset = +$1.issntextxoffset; //#4379 + } //#4379 + if ($ne($1.issntextyoffset, "unset")) { //#4380 + $1.issntextyoffset = +$1.issntextyoffset; //#4380 + } //#4380 + $1.height = +$1.height; //#4381 + $1.addongap = +$1.addongap; //#4382 + $search($1.issntxt, " "); //#4385 + if ($k[--$j]) { //#4391 + $1.issntxt = $k[--$j]; //#4386 + $j--; //#4387 + $1.seqvar = $k[--$j]; //#4388 + } else { //#4391 + $j--; //#4390 + $1.seqvar = "00"; //#4391 + } //#4391 + $search($1.seqvar, " "); //#4395 + if ($k[--$j]) { //#4401 + $1.seqvar = $k[--$j]; //#4396 + $j--; //#4397 + $1.addon = $k[--$j]; //#4398 + } else { //#4401 + $j--; //#4400 + $1.addon = ""; //#4401 + } //#4401 + if (($1.issntxt.length != 8) && ($1.issntxt.length != 9)) { //#4407 + $k[$j++] = 'bwipp.issnBadLength'; //#4406 + $k[$j++] = "ISSN must be 8 or 9 characters including dash, in the format XXXX-XXXX"; //#4406 + $0.raiseerror(); //#4406 + } //#4406 + var _O = $geti($1.issntxt, 0, 4); //#4408 + for (var _P = 0, _Q = _O.length; _P < _Q; _P++) { //#4412 + var _R = $get(_O, _P); //#4412 + if ((_R < 48) || (_R > 57)) { //#4411 + $k[$j++] = 'bwipp.issnFirstThroughFourthNotNumeric'; //#4410 + $k[$j++] = "ISSN first four characters must be numeral characters"; //#4410 + $0.raiseerror(); //#4410 + } //#4410 + } //#4410 + if ($ne($geti($1.issntxt, 4, 1), "-")) { //#4415 + $k[$j++] = 'bwipp.issnNeedsDash'; //#4414 + $k[$j++] = "ISSN fifth character must be a dash"; //#4414 + $0.raiseerror(); //#4414 + } //#4414 + var _V = $geti($1.issntxt, 5, 3); //#4416 + for (var _W = 0, _X = _V.length; _W < _X; _W++) { //#4420 + var _Y = $get(_V, _W); //#4420 + if ((_Y < 48) || (_Y > 57)) { //#4419 + $k[$j++] = 'bwipp.issnSixthThroughEighthNotNumeric'; //#4418 + $k[$j++] = "ISSN sixth through eighth characters must be numerals"; //#4418 + $0.raiseerror(); //#4418 + } //#4418 + } //#4418 + if ($1.issntxt.length == 9) { //#4425 + var _b = $get($1.issntxt, 8); //#4422 + if (((_b < 48) || (_b > 57)) && (_b != 88)) { //#4424 + $k[$j++] = 'bwipp.issnNinthCharacterBadFormat'; //#4423 + $k[$j++] = "ISSN ninth character must be a number or the character X"; //#4423 + $0.raiseerror(); //#4423 + } //#4423 + } //#4423 + if ($1.seqvar.length != 2) { //#4428 + $k[$j++] = 'bwipp.issnBadSequenceVariantLength'; //#4427 + $k[$j++] = "Sequence variant for ISSN must be 2 digits"; //#4427 + $0.raiseerror(); //#4427 + } //#4427 + $forall($1.seqvar, function() { //#4433 + var _e = $k[--$j]; //#4430 + if ((_e < 48) || (_e > 57)) { //#4432 + $k[$j++] = 'bwipp.issnSequenceVariantBadCharacter'; //#4431 + $k[$j++] = "Sequence variant for ISSN must contain only digits"; //#4431 + $0.raiseerror(); //#4431 + } //#4431 + }); //#4431 + if ((($1.addon.length != 0) && ($1.addon.length != 2)) && ($1.addon.length != 5)) { //#4436 + $k[$j++] = 'bwipp.issnBadAddOnLength'; //#4435 + $k[$j++] = "Add-on for ISSN must be 2 or 5 digits"; //#4435 + $0.raiseerror(); //#4435 + } //#4435 + $1.issn = $s(8); //#4439 + $1.checksum = 0; //#4440 + $1.i = 0; //#4441 + $1.n = 0; //#4441 + for (;;) { //#4453 + $1.issnchar = $f($get($1.issntxt, $1.i) - 48); //#4443 + if ($1.issnchar != -3) { //#4450 + $put($1.issn, $1.n, $f($1.issnchar + 48)); //#4445 + if ($1.n < 7) { //#4448 + $1.checksum = $f($1.checksum + ($1.issnchar * (8 - $1.n))); //#4447 + } //#4447 + $1.n = $1.n + 1; //#4449 + } //#4449 + $1.i = $1.i + 1; //#4451 + if ($1.i == $1.issntxt.length) { //#4452 + break; //#4452 + } //#4452 + } //#4452 + $1.checksum = ($f(11 - ($1.checksum % 11))) % 11; //#4454 + var _10 = $f($1.checksum + 48); //#4455 + $k[$j++] = 'checksum'; //#4455 + $k[$j++] = _10; //#4455 + if (_10 == 58) { //#4455 + $j--; //#4455 + $k[$j++] = 88; //#4455 + } //#4455 + var _11 = $k[--$j]; //#4455 + $1[$k[--$j]] = _11; //#4455 + if ($1.issntxt.length == 9) { //#4460 + if ($get($1.issntxt, 8) != $1.checksum) { //#4459 + $k[$j++] = 'bwipp.issnBadCheckDigit'; //#4458 + $k[$j++] = "Incorrect ISSN check digit provided"; //#4458 + $0.raiseerror(); //#4458 + } //#4458 + } //#4458 + $1.pad = $s(14); //#4463 + $puti($1.pad, 0, "ISSN "); //#4464 + $puti($1.pad, 5, $1.issntxt); //#4465 + $put($1.pad, 13, $1.checksum); //#4466 + $1.issntxt = $1.pad; //#4467 + $1.barcode = $geti($1.issn, 0, 7); //#4470 + $1.barcode = $s(12); //#4473 + $puti($1.barcode, 0, "977"); //#4474 + $puti($1.barcode, 3, $1.issn); //#4475 + $puti($1.barcode, 10, $1.seqvar); //#4476 + if ($ne($1.addon, "")) { //#4485 + var _1O = $s((12 + $1.addon.length) + 1); //#4480 + $puti(_1O, 0, $1.barcode); //#4481 + $puti(_1O, 12, " "); //#4482 + $puti(_1O, 13, $1.addon); //#4483 + $1.barcode = _1O; //#4484 + } //#4484 + $put($1.options, "dontdraw", true); //#4488 + $put($1.options, "addongap", $1.addongap); //#4489 + $k[$j++] = 'args'; //#4490 + $k[$j++] = $1.barcode; //#4490 + $k[$j++] = $1.options; //#4490 + $0.ean13(); //#4490 + var _1W = $k[--$j]; //#4490 + $1[$k[--$j]] = _1W; //#4490 + if ($1.includetext) { //#4507 + if ($1.issntextxoffset == "unset") { //#4494 + $1.issntextxoffset = 10; //#4494 + } //#4494 + if ($1.issntextyoffset == "unset") { //#4497 + $1.issntextyoffset = $f(($1.height * 72) + 3); //#4496 + } //#4496 + var _1d = $get($1.args, "txt") !== undefined; //#4498 + if (_1d) { //#4505 + $1.txt = $get($1.args, "txt"); //#4499 + $1.newtxt = $a($1.txt.length + 1); //#4500 + $puti($1.newtxt, 0, $1.txt); //#4501 + $put($1.newtxt, $1.newtxt.length - 1, $a([$1.issntxt, $1.issntextxoffset, $1.issntextyoffset, $1.issntextfont, $1.issntextsize])); //#4502 + $put($1.args, "txt", $1.newtxt); //#4503 + } else { //#4505 + $put($1.args, "txt", $a([$a([$1.issntxt, $1.issntextxoffset, $1.issntextyoffset, $1.issntextfont, $1.issntextsize])])); //#4505 + } //#4505 + } //#4505 + $put($1.args, "opt", $1.options); //#4509 + $k[$j++] = $1.args; //#4512 + if (!$1.dontdraw) { //#4512 + $0.renlinear(); //#4512 + } //#4512 }; $0.code128 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = 1; - $1.encoding = "auto"; - $1.raw = false; - $1.parse = false; - $1.parsefnc = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.sta = -1; - $1.stb = -2; - $1.stc = -3; - $1.swa = -4; - $1.swb = -5; - $1.swc = -6; - $1.fn1 = -7; - $1.fn2 = -8; - $1.fn3 = -9; - $1.fn4 = -10; - $1.sft = -11; - $1.stp = -12; - $1.lka = -13; - $1.lkc = -14; - var _I = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "FNC1", $1.fn1 ], [ "FNC1", $1.fn1 ], [ "FNC2", $1.fn2 ], [ "FNC3", $1.fn3 ], [ "LNKA", $1.lka ], [ "LNKC", $1.lkc ] ]); - $1.fncvals = _I; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _L = $k[--$j]; - $1[$k[--$j]] = _L; - $1.msglen = $1.msg.length; - $1.charmaps = $a([ $a([ 32, 32, "00" ]), $a([ "!", "!", "01" ]), $a([ '"', '"', "02" ]), $a([ "#", "#", "03" ]), $a([ "$", "$", "04" ]), $a([ "%", "%", "05" ]), $a([ "&", "&", "06" ]), $a([ "'", "'", "07" ]), $a([ 40, 40, "08" ]), $a([ 41, 41, "09" ]), $a([ "*", "*", "10" ]), $a([ "+", "+", "11" ]), $a([ ",", ",", "12" ]), $a([ "-", "-", "13" ]), $a([ ".", ".", "14" ]), $a([ "/", "/", "15" ]), $a([ "0", "0", "16" ]), $a([ "1", "1", "17" ]), $a([ "2", "2", "18" ]), $a([ "3", "3", "19" ]), $a([ "4", "4", "20" ]), $a([ "5", "5", "21" ]), $a([ "6", "6", "22" ]), $a([ "7", "7", "23" ]), $a([ "8", "8", "24" ]), $a([ "9", "9", "25" ]), $a([ ":", ":", "26" ]), $a([ ";", ";", "27" ]), $a([ "<", "<", "28" ]), $a([ "=", "=", "29" ]), $a([ ">", ">", "30" ]), $a([ "?", "?", "31" ]), $a([ "@", "@", "32" ]), $a([ "A", "A", "33" ]), $a([ "B", "B", "34" ]), $a([ "C", "C", "35" ]), $a([ "D", "D", "36" ]), $a([ "E", "E", "37" ]), $a([ "F", "F", "38" ]), $a([ "G", "G", "39" ]), $a([ "H", "H", "40" ]), $a([ "I", "I", "41" ]), $a([ "J", "J", "42" ]), $a([ "K", "K", "43" ]), $a([ "L", "L", "44" ]), $a([ "M", "M", "45" ]), $a([ "N", "N", "46" ]), $a([ "O", "O", "47" ]), $a([ "P", "P", "48" ]), $a([ "Q", "Q", "49" ]), $a([ "R", "R", "50" ]), $a([ "S", "S", "51" ]), $a([ "T", "T", "52" ]), $a([ "U", "U", "53" ]), $a([ "V", "V", "54" ]), $a([ "W", "W", "55" ]), $a([ "X", "X", "56" ]), $a([ "Y", "Y", "57" ]), $a([ "Z", "Z", "58" ]), $a([ "[", "[", "59" ]), $a([ 92, 92, "60" ]), $a([ "]", "]", "61" ]), $a([ "^", "^", "62" ]), $a([ "_", "_", "63" ]), $a([ 0, "`", "64" ]), $a([ 1, "a", "65" ]), $a([ 2, "b", "66" ]), $a([ 3, "c", "67" ]), $a([ 4, "d", "68" ]), $a([ 5, "e", "69" ]), $a([ 6, "f", "70" ]), $a([ 7, "g", "71" ]), $a([ 8, "h", "72" ]), $a([ 9, "i", "73" ]), $a([ 10, "j", "74" ]), $a([ 11, "k", "75" ]), $a([ 12, "l", "76" ]), $a([ 13, "m", "77" ]), $a([ 14, "n", "78" ]), $a([ 15, "o", "79" ]), $a([ 16, "p", "80" ]), $a([ 17, "q", "81" ]), $a([ 18, "r", "82" ]), $a([ 19, "s", "83" ]), $a([ 20, "t", "84" ]), $a([ 21, "u", "85" ]), $a([ 22, "v", "86" ]), $a([ 23, "w", "87" ]), $a([ 24, "x", "88" ]), $a([ 25, "y", "89" ]), $a([ 26, "z", "90" ]), $a([ 27, "{", "91" ]), $a([ 28, "|", "92" ]), $a([ 29, "}", "93" ]), $a([ 30, "~", "94" ]), $a([ 31, 127, "95" ]), $a([ $1.fn3, $1.fn3, "96" ]), $a([ $1.fn2, $1.fn2, "97" ]), $a([ $1.sft, $1.sft, "98" ]), $a([ $1.swc, $1.swc, "99" ]), $a([ $1.swb, $1.fn4, $1.swb ]), $a([ $1.fn4, $1.swa, $1.swa ]), $a([ $1.fn1, $1.fn1, $1.fn1 ]), $a([ $1.sta, $1.sta, $1.sta ]), $a([ $1.stb, $1.stb, $1.stb ]), $a([ $1.stc, $1.stc, $1.stc ]), $a([ $1.stp, $1.stp, $1.stp ]) ]); - $1.charvals = $a([ new Map(), new Map(), new Map() ]); - for (var _2e = 0, _2d = $1.charmaps.length - 1; _2e <= _2d; _2e += 1) { - $1.i = _2e; - $1.encs = $get($1.charmaps, $1.i); - for (var _2i = 0; _2i <= 2; _2i += 1) { - $1.j = _2i; - var _2l = $get($1.encs, $1.j); - $k[$j++] = _2l; - if ($eq($type(_2l), "stringtype")) { - var _2o = $get($k[--$j], 0); - $k[$j++] = _2o; - } - $put($get($1.charvals, $1.j), $k[--$j], $1.i); - } - } - $1.seta = $get($1.charvals, 0); - $1.setb = $get($1.charvals, 1); - $1.setc = $get($1.charvals, 2); - $put($1.seta, $1.lka, $get($1.seta, $1.swb)); - $put($1.seta, $1.lkc, $get($1.seta, $1.swc)); - $put($1.setb, $1.lka, $get($1.setb, $1.swc)); - $put($1.setb, $1.lkc, $get($1.setb, $1.swa)); - $put($1.setc, $1.lka, $get($1.setc, $1.swa)); - $put($1.setc, $1.lkc, $get($1.setc, $1.swb)); - if ($1.raw) { - $1.encoding = "raw"; - } - if ($eq($1.encoding, "raw")) { - $1.cws = $a($1.barcode.length); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.barcode.length) { - break; - } - $1.cw = ~~$z($geti($1.barcode, $1.i + 1, 3)); - $put($1.cws, $1.j, $1.cw); - $1.i = $1.i + 4; - $1.j = $1.j + 1; - } - $1.cws = $geti($1.cws, 0, $1.j); - $1.text = ""; - } - if ($eq($1.encoding, "auto")) { - $1.text = $s($1.msglen); - for (var _3q = 0, _3p = $1.msglen - 1; _3q <= _3p; _3q += 1) { - $1.i = _3q; - var _3v = $get($1.msg, $1.i); - $k[$j++] = $1.text; - $k[$j++] = $1.i; - $k[$j++] = _3v; - if (_3v < 0) { - $j--; - $k[$j++] = 32; - } - var _3w = $k[--$j]; - var _3x = $k[--$j]; - $put($k[--$j], _3x, _3w); - } - $k[$j++] = Infinity; - for (var _40 = 0, _41 = $1.msglen; _40 < _41; _40++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numSA = $a(); - $k[$j++] = Infinity; - for (var _44 = 0, _45 = $1.msglen; _44 < _45; _44++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numEA = $a(); - for (var _48 = $1.msglen - 1; _48 >= 0; _48 -= 1) { - $1.i = _48; - if ($get($1.msg, $1.i) >= 0) { - if ($get($1.msg, $1.i) >= 128) { - $put($1.numEA, $1.i, $f($get($1.numEA, $1.i + 1) + 1)); - } else { - $put($1.numSA, $1.i, $f($get($1.numSA, $1.i + 1) + 1)); - } - } - } - $1.ea = false; - $1.msgtmp = $a([]); - for (var _4S = 0, _4R = $1.msglen - 1; _4S <= _4R; _4S += 1) { - $1.i = _4S; - $1.c = $get($1.msg, $1.i); - if (!$xo($1.ea, $1.c < 128) && $1.c >= 0) { - if ($1.ea) { - $k[$j++] = $1.numSA; - } else { - $k[$j++] = $1.numEA; - } - var _4e = $get($k[--$j], $1.i); - var _4h = $f(_4e + $1.i) == $1.msglen ? 3 : 5; - if (_4e < _4h) { - $k[$j++] = Infinity; - $aload($1.msgtmp); - $k[$j++] = $1.fn4; - $1.msgtmp = $a(); - } else { - $k[$j++] = Infinity; - $aload($1.msgtmp); - $k[$j++] = $1.fn4; - $k[$j++] = $1.fn4; - $1.msgtmp = $a(); - $1.ea = !$1.ea; - } - } - $k[$j++] = Infinity; - $aload($1.msgtmp); - if ($1.c >= 0) { - $k[$j++] = $1.c & 127; - } else { - $k[$j++] = $1.c; - } - $1.msgtmp = $a(); - } - $1.msg = $1.msgtmp; - $1.msglen = $1.msg.length; + var $1 = {}; //#4542 + $1.options = $k[--$j]; //#4544 + $1.barcode = $k[--$j]; //#4545 + $1.dontdraw = false; //#4547 + $1.includetext = false; //#4548 + $1.textfont = "OCR-B"; //#4549 + $1.textsize = 10; //#4550 + $1.textxoffset = 0; //#4551 + $1.textyoffset = -8; //#4552 + $1.height = 1; //#4553 + $1.encoding = "auto"; //#4554 + $1.raw = false; //#4555 + $1.parse = false; //#4556 + $1.parsefnc = false; //#4557 + $forall($1.options, function() { //#4568 + var _3 = $k[--$j]; //#4568 + $1[$k[--$j]] = _3; //#4568 + }); //#4568 + $1.textfont = "" + $1.textfont; //#4570 + $1.textsize = +$1.textsize; //#4571 + $1.textxoffset = +$1.textxoffset; //#4572 + $1.textyoffset = +$1.textyoffset; //#4573 + $1.height = +$1.height; //#4574 + $1.sta = -1; //#4577 + $1.stb = -2; //#4577 + $1.stc = -3; //#4577 + $1.swa = -4; //#4578 + $1.swb = -5; //#4578 + $1.swc = -6; //#4578 + $1.fn1 = -7; //#4579 + $1.fn2 = -8; //#4579 + $1.fn3 = -9; //#4579 + $1.fn4 = -10; //#4580 + $1.sft = -11; //#4580 + $1.stp = -12; //#4580 + $1.lka = -13; //#4581 + $1.lkc = -14; //#4581 + var _I = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["FNC1", $1.fn1], + ["FNC1", $1.fn1], + ["FNC2", $1.fn2], + ["FNC3", $1.fn3], + ["LNKA", $1.lka], + ["LNKC", $1.lkc] + ]); //#4593 + $1.fncvals = _I; //#4594 + $k[$j++] = 'msg'; //#4595 + $k[$j++] = $1.barcode; //#4595 + $k[$j++] = $1.fncvals; //#4595 + $0.parseinput(); //#4595 + var _L = $k[--$j]; //#4595 + $1[$k[--$j]] = _L; //#4595 + $1.msglen = $1.msg.length; //#4596 + $1.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$1.fn3, $1.fn3, "96"]), $a([$1.fn2, $1.fn2, "97"]), $a([$1.sft, $1.sft, "98"]), $a([$1.swc, $1.swc, "99"]), $a([$1.swb, $1.fn4, $1.swb]), $a([$1.fn4, $1.swa, $1.swa]), $a([$1.fn1, $1.fn1, $1.fn1]), $a([$1.sta, $1.sta, $1.sta]), $a([$1.stb, $1.stb, $1.stb]), $a([$1.stc, $1.stc, $1.stc]), $a([$1.stp, $1.stp, $1.stp])]); //#4637 + $1.charvals = $a([new Map, new Map, new Map]); //#4640 + for (var _2e = 0, _2d = $1.charmaps.length - 1; _2e <= _2d; _2e += 1) { //#4649 + $1.i = _2e; //#4642 + $1.encs = $get($1.charmaps, $1.i); //#4643 + for (var _2i = 0; _2i <= 2; _2i += 1) { //#4648 + $1.j = _2i; //#4645 + var _2l = $get($1.encs, $1.j); //#4646 + $k[$j++] = _2l; //#4646 + if ($eq($type(_2l), 'stringtype')) { //#4646 + var _2o = $get($k[--$j], 0); //#4646 + $k[$j++] = _2o; //#4646 + } //#4646 + $put($get($1.charvals, $1.j), $k[--$j], $1.i); //#4647 + } //#4647 + } //#4647 + $1.seta = $get($1.charvals, 0); //#4650 + $1.setb = $get($1.charvals, 1); //#4651 + $1.setc = $get($1.charvals, 2); //#4652 + $put($1.seta, $1.lka, $get($1.seta, $1.swb)); //#4655 + $put($1.seta, $1.lkc, $get($1.seta, $1.swc)); //#4655 + $put($1.setb, $1.lka, $get($1.setb, $1.swc)); //#4656 + $put($1.setb, $1.lkc, $get($1.setb, $1.swa)); //#4656 + $put($1.setc, $1.lka, $get($1.setc, $1.swa)); //#4657 + $put($1.setc, $1.lkc, $get($1.setc, $1.swb)); //#4657 + if ($1.raw) { //#4659 + $1.encoding = "raw"; //#4659 + } //#4659 + if ($eq($1.encoding, "raw")) { //#4673 + $1.cws = $a($1.barcode.length); //#4662 + $1.i = 0; //#4663 + $1.j = 0; //#4663 + for (;;) { //#4670 + if ($1.i == $1.barcode.length) { //#4665 + break; //#4665 + } //#4665 + $1.cw = ~~$z($geti($1.barcode, $1.i + 1, 3)); //#4666 + $put($1.cws, $1.j, $1.cw); //#4667 + $1.i = $1.i + 4; //#4668 + $1.j = $1.j + 1; //#4669 + } //#4669 + $1.cws = $geti($1.cws, 0, $1.j); //#4671 + $1.text = ""; //#4672 + } //#4672 + if ($eq($1.encoding, "auto")) { //#4898 + $1.text = $s($1.msglen); //#4677 + for (var _3q = 0, _3p = $1.msglen - 1; _3q <= _3p; _3q += 1) { //#4681 + $1.i = _3q; //#4679 + var _3v = $get($1.msg, $1.i); //#4680 + $k[$j++] = $1.text; //#4680 + $k[$j++] = $1.i; //#4680 + $k[$j++] = _3v; //#4680 + if (_3v < 0) { //#4680 + $j--; //#4680 + $k[$j++] = 32; //#4680 + } //#4680 + var _3w = $k[--$j]; //#4680 + var _3x = $k[--$j]; //#4680 + $put($k[--$j], _3x, _3w); //#4680 + } //#4680 + $k[$j++] = Infinity; //#4684 + for (var _40 = 0, _41 = $1.msglen; _40 < _41; _40++) { //#4684 + $k[$j++] = 0; //#4684 + } //#4684 + $k[$j++] = 0; //#4684 + $1.numSA = $a(); //#4684 + $k[$j++] = Infinity; //#4685 + for (var _44 = 0, _45 = $1.msglen; _44 < _45; _44++) { //#4685 + $k[$j++] = 0; //#4685 + } //#4685 + $k[$j++] = 0; //#4685 + $1.numEA = $a(); //#4685 + for (var _48 = $1.msglen - 1; _48 >= 0; _48 -= 1) { //#4695 + $1.i = _48; //#4687 + if ($get($1.msg, $1.i) >= 0) { //#4694 + if ($get($1.msg, $1.i) >= 128) { //#4692 + $put($1.numEA, $1.i, $f($get($1.numEA, $1.i + 1) + 1)); //#4690 + } else { //#4692 + $put($1.numSA, $1.i, $f($get($1.numSA, $1.i + 1) + 1)); //#4692 + } //#4692 + } //#4692 + } //#4692 + $1.ea = false; //#4698 + $1.msgtmp = $a([]); //#4698 + for (var _4S = 0, _4R = $1.msglen - 1; _4S <= _4R; _4S += 1) { //#4713 + $1.i = _4S; //#4700 + $1.c = $get($1.msg, $1.i); //#4701 + if ((!$xo($1.ea, $1.c < 128)) && ($1.c >= 0)) { //#4711 + if ($1.ea) { //#4703 + $k[$j++] = $1.numSA; //#4703 + } else { //#4703 + $k[$j++] = $1.numEA; //#4703 + } //#4703 + var _4e = $get($k[--$j], $1.i); //#4703 + var _4h = ($f(_4e + $1.i) == $1.msglen) ? 3 : 5; //#4704 + if (_4e < _4h) { //#4709 + $k[$j++] = Infinity; //#4706 + $aload($1.msgtmp); //#4706 + $k[$j++] = $1.fn4; //#4706 + $1.msgtmp = $a(); //#4706 + } else { //#4709 + $k[$j++] = Infinity; //#4708 + $aload($1.msgtmp); //#4708 + $k[$j++] = $1.fn4; //#4708 + $k[$j++] = $1.fn4; //#4708 + $1.msgtmp = $a(); //#4708 + $1.ea = !$1.ea; //#4709 + } //#4709 + } //#4709 + $k[$j++] = Infinity; //#4712 + $aload($1.msgtmp); //#4712 + if ($1.c >= 0) { //#4712 + $k[$j++] = $1.c & 127; //#4712 + } else { //#4712 + $k[$j++] = $1.c; //#4712 + } //#4712 + $1.msgtmp = $a(); //#4712 + } //#4712 + $1.msg = $1.msgtmp; //#4714 + $1.msglen = $1.msg.length; //#4715 $1.numsscr = function() { - $1.n = 0; - $1.s = 0; - $1.p = $k[--$j]; - for (;;) { - if ($1.p >= $1.msglen) { - break; - } - var _52 = $get($1.msg, $1.p); - var _54 = $get($1.setc, _52) !== undefined; - $k[$j++] = _52; - if (!_54) { - $j--; - break; - } - var _55 = $k[--$j]; - $k[$j++] = _55; - if (_55 <= -1) { - var _57 = $k[--$j]; - if (_57 == $1.fn1 && $1.s % 2 == 0) { - $1.s = $1.s + 1; - } else { - break; - } - } else { - $j--; - } - $1.n = $1.n + 1; - $1.s = $1.s + 1; - $1.p = $f($1.p + 1); - } - $k[$j++] = $1.n; - $k[$j++] = $1.s; - }; + $1.n = 0; //#4719 + $1.s = 0; //#4719 + $1.p = $k[--$j]; //#4720 + for (;;) { //#4733 + if ($1.p >= $1.msglen) { //#4721 + break; //#4721 + } //#4721 + var _52 = $get($1.msg, $1.p); //#4722 + var _54 = $get($1.setc, _52) !== undefined; //#4723 + $k[$j++] = _52; //#4723 + if (!_54) { //#4723 + $j--; //#4723 + break; //#4723 + } //#4723 + var _55 = $k[--$j]; //#4724 + $k[$j++] = _55; //#4729 + if (_55 <= -1) { //#4728 + var _57 = $k[--$j]; //#4726 + if ((_57 == $1.fn1) && (($1.s % 2) == 0)) { //#4726 + $1.s = $1.s + 1; //#4726 + } else { //#4726 + break; //#4726 + } //#4726 + } else { //#4728 + $j--; //#4728 + } //#4728 + $1.n = $1.n + 1; //#4730 + $1.s = $1.s + 1; //#4731 + $1.p = $f($1.p + 1); //#4732 + } //#4732 + $k[$j++] = $1.n; //#4734 + $k[$j++] = $1.s; //#4734 + }; //#4735 $1.enca = function() { - $put($1.cws, $1.j, $get($1.seta, $k[--$j])); - $1.j = $1.j + 1; - }; + $put($1.cws, $1.j, $get($1.seta, $k[--$j])); //#4739 + $1.j = $1.j + 1; //#4740 + }; //#4741 $1.encb = function() { - $put($1.cws, $1.j, $get($1.setb, $k[--$j])); - $1.j = $1.j + 1; - }; + $put($1.cws, $1.j, $get($1.setb, $k[--$j])); //#4743 + $1.j = $1.j + 1; //#4744 + }; //#4745 $1.encc = function() { - var _5R = $k[--$j]; - $k[$j++] = _5R; - if ($ne($type(_5R), "arraytype")) { - var _5V = $get($1.setc, $k[--$j]); - $k[$j++] = _5V; - } else { - $aload($k[--$j]); - var _5X = $k[--$j]; - var _5Y = $k[--$j]; - $k[$j++] = $f($f(_5X - 48) + $f(_5Y - 48) * 10); - } - $put($1.cws, $1.j, $k[--$j]); - $1.j = $1.j + 1; - }; + var _5R = $k[--$j]; //#4747 + $k[$j++] = _5R; //#4751 + if ($ne($type(_5R), 'arraytype')) { //#4750 + var _5V = $get($1.setc, $k[--$j]); //#4748 + $k[$j++] = _5V; //#4748 + } else { //#4750 + $aload($k[--$j]); //#4750 + var _5X = $k[--$j]; //#4750 + var _5Y = $k[--$j]; //#4750 + $k[$j++] = $f($f(_5X - 48) + ($f(_5Y - 48) * 10)); //#4750 + } //#4750 + $put($1.cws, $1.j, $k[--$j]); //#4752 + $1.j = $1.j + 1; //#4753 + }; //#4754 $1.anotb = function() { - var _5d = $k[--$j]; - var _5f = $get($1.seta, _5d) !== undefined; - var _5h = $get($1.setb, _5d) !== undefined; - $k[$j++] = _5f && !_5h; - }; + var _5d = $k[--$j]; //#4757 + var _5f = $get($1.seta, _5d) !== undefined; //#4757 + var _5h = $get($1.setb, _5d) !== undefined; //#4757 + $k[$j++] = _5f && (!_5h); //#4757 + }; //#4757 $1.bnota = function() { - var _5i = $k[--$j]; - var _5k = $get($1.setb, _5i) !== undefined; - var _5m = $get($1.seta, _5i) !== undefined; - $k[$j++] = _5k && !_5m; - }; - $k[$j++] = Infinity; - for (var _5o = 0, _5p = $1.msg.length; _5o < _5p; _5o++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextanotb = $a(); - $k[$j++] = Infinity; - for (var _5s = 0, _5t = $1.msg.length; _5s < _5t; _5s++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextbnota = $a(); - for (var _5w = $1.msg.length - 1; _5w >= 0; _5w -= 1) { - $1.i = _5w; - $k[$j++] = $get($1.msg, $1.i); - $1.anotb(); - if ($k[--$j]) { - $put($1.nextanotb, $1.i, 0); - } else { - $put($1.nextanotb, $1.i, $f($get($1.nextanotb, $1.i + 1) + 1)); - } - $k[$j++] = $get($1.msg, $1.i); - $1.bnota(); - if ($k[--$j]) { - $put($1.nextbnota, $1.i, 0); - } else { - $put($1.nextbnota, $1.i, $f($get($1.nextbnota, $1.i + 1) + 1)); - } - } + var _5i = $k[--$j]; //#4758 + var _5k = $get($1.setb, _5i) !== undefined; //#4758 + var _5m = $get($1.seta, _5i) !== undefined; //#4758 + $k[$j++] = _5k && (!_5m); //#4758 + }; //#4758 + $k[$j++] = Infinity; //#4761 + for (var _5o = 0, _5p = $1.msg.length; _5o < _5p; _5o++) { //#4761 + $k[$j++] = 0; //#4761 + } //#4761 + $k[$j++] = 9999; //#4761 + $1.nextanotb = $a(); //#4761 + $k[$j++] = Infinity; //#4762 + for (var _5s = 0, _5t = $1.msg.length; _5s < _5t; _5s++) { //#4762 + $k[$j++] = 0; //#4762 + } //#4762 + $k[$j++] = 9999; //#4762 + $1.nextbnota = $a(); //#4762 + for (var _5w = $1.msg.length - 1; _5w >= 0; _5w -= 1) { //#4775 + $1.i = _5w; //#4764 + $k[$j++] = $get($1.msg, $1.i); //#4765 + $1.anotb(); //#4765 + if ($k[--$j]) { //#4768 + $put($1.nextanotb, $1.i, 0); //#4766 + } else { //#4768 + $put($1.nextanotb, $1.i, $f($get($1.nextanotb, $1.i + 1) + 1)); //#4768 + } //#4768 + $k[$j++] = $get($1.msg, $1.i); //#4770 + $1.bnota(); //#4770 + if ($k[--$j]) { //#4773 + $put($1.nextbnota, $1.i, 0); //#4771 + } else { //#4773 + $put($1.nextbnota, $1.i, $f($get($1.nextbnota, $1.i + 1) + 1)); //#4773 + } //#4773 + } //#4773 $1.abeforeb = function() { - var _6J = $k[--$j]; - $k[$j++] = $lt($get($1.nextanotb, _6J), $get($1.nextbnota, _6J)); - }; + var _6J = $k[--$j]; //#4778 + $k[$j++] = $lt($get($1.nextanotb, _6J), $get($1.nextbnota, _6J)); //#4778 + }; //#4778 $1.bbeforea = function() { - var _6O = $k[--$j]; - $k[$j++] = $lt($get($1.nextbnota, _6O), $get($1.nextanotb, _6O)); - }; - $1.cws = $a($1.barcode.length * 2 + 3); - $1.j = 0; - if ($1.msglen > 0) { - $k[$j++] = 0; - $1.numsscr(); - } else { - $k[$j++] = -1; - $k[$j++] = -1; - } - $1.nums = $k[--$j]; - $1.nchars = $k[--$j]; - for (;;) { - if ($1.msglen == 0) { - $k[$j++] = $1.stb; - $1.enca(); - $1.cset = "setb"; - break; - } - if ($1.msglen == 2 && $1.nums == 2) { - $k[$j++] = $1.stc; - $1.enca(); - $1.cset = "setc"; - break; - } - if ($1.nums >= 4) { - $k[$j++] = $1.stc; - $1.enca(); - $1.cset = "setc"; - break; - } - $k[$j++] = 0; - $1.abeforeb(); - if ($k[--$j]) { - $k[$j++] = $1.sta; - $1.enca(); - $1.cset = "seta"; - break; - } - $k[$j++] = $1.stb; - $1.enca(); - $1.cset = "setb"; - break; - } - $1.i = 0; - for (;;) { - if ($1.i == $1.msglen) { - break; - } - $k[$j++] = $1.i; - $1.numsscr(); - $1.nums = $k[--$j]; - $1.nchars = $k[--$j]; - for (;;) { - if (($eq($1.cset, "seta") || $eq($1.cset, "setb")) && $1.nums >= 4 && $get($1.msg, $1.i) != $1.fn1) { - if ($1.nums % 2 == 0) { - $k[$j++] = $1.swc; - if ($eq($1.cset, "seta")) { - $1.enca(); - } else { - $1.encb(); - } - $1.cset = "setc"; - break; - } else { - $k[$j++] = $get($1.msg, $1.i); - if ($eq($1.cset, "seta")) { - $1.enca(); - } else { - $1.encb(); - } - $1.i = $1.i + 1; - $k[$j++] = $1.swc; - if ($eq($1.cset, "seta")) { - $1.enca(); - } else { - $1.encb(); - } - $1.cset = "setc"; - break; - } - } - $k[$j++] = $eq($1.cset, "setb"); - $k[$j++] = $get($1.msg, $1.i); - $1.anotb(); - var _78 = $k[--$j]; - var _79 = $k[--$j]; - if (_79 && _78) { - if ($1.i < $1.msglen - 1) { - $k[$j++] = $1.i + 1; - $1.bbeforea(); - if ($k[--$j]) { - $k[$j++] = $1.sft; - $1.encb(); - $k[$j++] = $get($1.msg, $1.i); - $1.enca(); - $1.i = $1.i + 1; - break; - } - } - $k[$j++] = $1.swa; - $1.encb(); - $1.cset = "seta"; - break; - } - $k[$j++] = $eq($1.cset, "seta"); - $k[$j++] = $get($1.msg, $1.i); - $1.bnota(); - var _7O = $k[--$j]; - var _7P = $k[--$j]; - if (_7P && _7O) { - if ($1.i < $1.msglen - 1) { - $k[$j++] = $1.i + 1; - $1.abeforeb(); - if ($k[--$j]) { - $k[$j++] = $1.sft; - $1.enca(); - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $1.i = $1.i + 1; - break; - } - } - $k[$j++] = $1.swb; - $1.enca(); - $1.cset = "setb"; - break; - } - if ($eq($1.cset, "setc") && $1.nums < 2 && $get($1.msg, $1.i) > -1) { - $k[$j++] = $1.i; - $1.abeforeb(); - if ($k[--$j]) { - $k[$j++] = $1.swa; - $1.encc(); - $1.cset = "seta"; - break; - } - $k[$j++] = $1.swb; - $1.encc(); - $1.cset = "setb"; - break; - } - if ($eq($1.cset, "seta")) { - $k[$j++] = $get($1.msg, $1.i); - $1.enca(); - $1.i = $1.i + 1; - break; - } - if ($eq($1.cset, "setb")) { - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $1.i = $1.i + 1; - break; - } - if ($eq($1.cset, "setc")) { - if ($get($1.msg, $1.i) <= -1) { - $k[$j++] = $get($1.msg, $1.i); - $1.encc(); - $1.i = $1.i + 1; - } else { - $k[$j++] = $geti($1.msg, $1.i, 2); - $1.encc(); - $1.i = $1.i + 2; - } - break; - } - break; - } - } - $1.cws = $geti($1.cws, 0, $1.j); - } - var _89 = $a($1.j + 2); - $puti(_89, 0, $1.cws); - $1.cws = _89; - $1.csum = $get($1.cws, 0); - for (var _8F = 1, _8E = $1.j - 1; _8F <= _8E; _8F += 1) { - $1.i = _8F; - $1.csum = $f($1.csum + $get($1.cws, $1.i) * $1.i); - } - $1.csum = $1.csum % 103; - $put($1.cws, $1.j, $1.csum); - $put($1.cws, $1.j + 1, $get($1.seta, $1.stp)); - $1.encs = $a([ "212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "211214", "211232", "2331112" ]); - $1.sbs = $s($1.cws.length * 6 + 1); - for (var _8Z = 0, _8Y = $1.cws.length - 1; _8Z <= _8Y; _8Z += 1) { - $1.i = _8Z; - $puti($1.sbs, $1.i * 6, $get($1.encs, $get($1.cws, $1.i))); - } - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _8h = $1.sbs; - for (var _8i = 0, _8j = _8h.length; _8i < _8j; _8i++) { - $k[$j++] = $get(_8h, _8i) - 48; - } - var _8l = $a(); - $k[$j++] = Infinity; - for (var _8n = 0, _8o = ~~(($1.sbs.length + 1) / 2); _8n < _8o; _8n++) { - $k[$j++] = $1.height; - } - var _8q = $a(); - $k[$j++] = Infinity; - for (var _8s = 0, _8t = ~~(($1.sbs.length + 1) / 2); _8s < _8t; _8s++) { - $k[$j++] = 0; - } - var _8u = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _8l; - $k[$j++] = "bhs"; - $k[$j++] = _8q; - $k[$j++] = "bbs"; - $k[$j++] = _8u; - $k[$j++] = "txt"; - $k[$j++] = $a([ $a([ $1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ]) ]); - $k[$j++] = "textxalign"; - $k[$j++] = "center"; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _93 = $d(); - $k[$j++] = _93; - if (!$1.dontdraw) { - $0.renlinear(); - } + var _6O = $k[--$j]; //#4779 + $k[$j++] = $lt($get($1.nextbnota, _6O), $get($1.nextanotb, _6O)); //#4779 + }; //#4779 + $1.cws = $a(($1.barcode.length * 2) + 3); //#4781 + $1.j = 0; //#4784 + if ($1.msglen > 0) { //#4785 + $k[$j++] = 0; //#4785 + $1.numsscr(); //#4785 + } else { //#4785 + $k[$j++] = -1; //#4785 + $k[$j++] = -1; //#4785 + } //#4785 + $1.nums = $k[--$j]; //#4785 + $1.nchars = $k[--$j]; //#4785 + for (;;) { //#4810 + if ($1.msglen == 0) { //#4791 + $k[$j++] = $1.stb; //#4788 + $1.enca(); //#4788 + $1.cset = "setb"; //#4789 + break; //#4790 + } //#4790 + if (($1.msglen == 2) && ($1.nums == 2)) { //#4796 + $k[$j++] = $1.stc; //#4793 + $1.enca(); //#4793 + $1.cset = "setc"; //#4794 + break; //#4795 + } //#4795 + if ($1.nums >= 4) { //#4801 + $k[$j++] = $1.stc; //#4798 + $1.enca(); //#4798 + $1.cset = "setc"; //#4799 + break; //#4800 + } //#4800 + $k[$j++] = 0; //#4802 + $1.abeforeb(); //#4802 + if ($k[--$j]) { //#4806 + $k[$j++] = $1.sta; //#4803 + $1.enca(); //#4803 + $1.cset = "seta"; //#4804 + break; //#4805 + } //#4805 + $k[$j++] = $1.stb; //#4807 + $1.enca(); //#4807 + $1.cset = "setb"; //#4808 + break; //#4809 + } //#4809 + $1.i = 0; //#4813 + for (;;) { //#4896 + if ($1.i == $1.msglen) { //#4814 + break; //#4814 + } //#4814 + $k[$j++] = $1.i; //#4816 + $1.numsscr(); //#4816 + $1.nums = $k[--$j]; //#4816 + $1.nchars = $k[--$j]; //#4816 + for (;;) { //#4894 + if ((($eq($1.cset, "seta") || $eq($1.cset, "setb")) && ($1.nums >= 4)) && ($get($1.msg, $1.i) != $1.fn1)) { //#4833 + if (($1.nums % 2) == 0) { //#4831 + $k[$j++] = $1.swc; //#4823 + if ($eq($1.cset, "seta")) { //#4823 + $1.enca(); //#4823 + } else { //#4823 + $1.encb(); //#4823 + } //#4823 + $1.cset = "setc"; //#4824 + break; //#4825 + } else { //#4831 + $k[$j++] = $get($1.msg, $1.i); //#4827 + if ($eq($1.cset, "seta")) { //#4827 + $1.enca(); //#4827 + } else { //#4827 + $1.encb(); //#4827 + } //#4827 + $1.i = $1.i + 1; //#4828 + $k[$j++] = $1.swc; //#4829 + if ($eq($1.cset, "seta")) { //#4829 + $1.enca(); //#4829 + } else { //#4829 + $1.encb(); //#4829 + } //#4829 + $1.cset = "setc"; //#4830 + break; //#4831 + } //#4831 + } //#4831 + $k[$j++] = $eq($1.cset, "setb"); //#4834 + $k[$j++] = $get($1.msg, $1.i); //#4834 + $1.anotb(); //#4834 + var _78 = $k[--$j]; //#4834 + var _79 = $k[--$j]; //#4834 + if ((_79 && _78)) { //#4846 + if ($1.i < ($1.msglen - 1)) { //#4842 + $k[$j++] = $1.i + 1; //#4836 + $1.bbeforea(); //#4836 + if ($k[--$j]) { //#4841 + $k[$j++] = $1.sft; //#4837 + $1.encb(); //#4837 + $k[$j++] = $get($1.msg, $1.i); //#4838 + $1.enca(); //#4838 + $1.i = $1.i + 1; //#4839 + break; //#4840 + } //#4840 + } //#4840 + $k[$j++] = $1.swa; //#4843 + $1.encb(); //#4843 + $1.cset = "seta"; //#4844 + break; //#4845 + } //#4845 + $k[$j++] = $eq($1.cset, "seta"); //#4847 + $k[$j++] = $get($1.msg, $1.i); //#4847 + $1.bnota(); //#4847 + var _7O = $k[--$j]; //#4847 + var _7P = $k[--$j]; //#4847 + if ((_7P && _7O)) { //#4859 + if ($1.i < ($1.msglen - 1)) { //#4855 + $k[$j++] = $1.i + 1; //#4849 + $1.abeforeb(); //#4849 + if ($k[--$j]) { //#4854 + $k[$j++] = $1.sft; //#4850 + $1.enca(); //#4850 + $k[$j++] = $get($1.msg, $1.i); //#4851 + $1.encb(); //#4851 + $1.i = $1.i + 1; //#4852 + break; //#4853 + } //#4853 + } //#4853 + $k[$j++] = $1.swb; //#4856 + $1.enca(); //#4856 + $1.cset = "setb"; //#4857 + break; //#4858 + } //#4858 + if (($eq($1.cset, "setc") && ($1.nums < 2)) && ($get($1.msg, $1.i) > -1)) { //#4869 + $k[$j++] = $1.i; //#4861 + $1.abeforeb(); //#4861 + if ($k[--$j]) { //#4865 + $k[$j++] = $1.swa; //#4862 + $1.encc(); //#4862 + $1.cset = "seta"; //#4863 + break; //#4864 + } //#4864 + $k[$j++] = $1.swb; //#4866 + $1.encc(); //#4866 + $1.cset = "setb"; //#4867 + break; //#4868 + } //#4868 + if ($eq($1.cset, "seta")) { //#4876 + $k[$j++] = $get($1.msg, $1.i); //#4873 + $1.enca(); //#4873 + $1.i = $1.i + 1; //#4874 + break; //#4875 + } //#4875 + if ($eq($1.cset, "setb")) { //#4881 + $k[$j++] = $get($1.msg, $1.i); //#4878 + $1.encb(); //#4878 + $1.i = $1.i + 1; //#4879 + break; //#4880 + } //#4880 + if ($eq($1.cset, "setc")) { //#4891 + if ($get($1.msg, $1.i) <= -1) { //#4888 + $k[$j++] = $get($1.msg, $1.i); //#4884 + $1.encc(); //#4884 + $1.i = $1.i + 1; //#4885 + } else { //#4888 + $k[$j++] = $geti($1.msg, $1.i, 2); //#4887 + $1.encc(); //#4887 + $1.i = $1.i + 2; //#4888 + } //#4888 + break; //#4890 + } //#4890 + break; //#4893 + } //#4893 + } //#4893 + $1.cws = $geti($1.cws, 0, $1.j); //#4897 + } //#4897 + var _89 = $a($1.j + 2); //#4901 + $puti(_89, 0, $1.cws); //#4901 + $1.cws = _89; //#4901 + $1.csum = $get($1.cws, 0); //#4902 + for (var _8F = 1, _8E = $1.j - 1; _8F <= _8E; _8F += 1) { //#4906 + $1.i = _8F; //#4904 + $1.csum = $f($1.csum + ($get($1.cws, $1.i) * $1.i)); //#4905 + } //#4905 + $1.csum = $1.csum % 103; //#4907 + $put($1.cws, $1.j, $1.csum); //#4908 + $put($1.cws, $1.j + 1, $get($1.seta, $1.stp)); //#4909 + $1.encs = $a(["212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "211214", "211232", "2331112"]); //#4929 + $1.sbs = $s(($1.cws.length * 6) + 1); //#4932 + for (var _8Z = 0, _8Y = $1.cws.length - 1; _8Z <= _8Y; _8Z += 1) { //#4936 + $1.i = _8Z; //#4934 + $puti($1.sbs, $1.i * 6, $get($1.encs, $get($1.cws, $1.i))); //#4935 + } //#4935 + $k[$j++] = Infinity; //#4946 + $k[$j++] = Infinity; //#4941 + var _8h = $1.sbs; //#4941 + for (var _8i = 0, _8j = _8h.length; _8i < _8j; _8i++) { //#4941 + $k[$j++] = $get(_8h, _8i) - 48; //#4941 + } //#4941 + var _8l = $a(); //#4941 + $k[$j++] = Infinity; //#4942 + for (var _8n = 0, _8o = ~~(($1.sbs.length + 1) / 2); _8n < _8o; _8n++) { //#4942 + $k[$j++] = $1.height; //#4942 + } //#4942 + var _8q = $a(); //#4942 + $k[$j++] = Infinity; //#4943 + for (var _8s = 0, _8t = ~~(($1.sbs.length + 1) / 2); _8s < _8t; _8s++) { //#4943 + $k[$j++] = 0; //#4943 + } //#4943 + var _8u = $a(); //#4943 + $k[$j++] = 'ren'; //#4946 + $k[$j++] = $0.renlinear; //#4946 + $k[$j++] = 'sbs'; //#4946 + $k[$j++] = _8l; //#4946 + $k[$j++] = 'bhs'; //#4946 + $k[$j++] = _8q; //#4946 + $k[$j++] = 'bbs'; //#4946 + $k[$j++] = _8u; //#4946 + $k[$j++] = 'txt'; //#4946 + $k[$j++] = $a([$a([$1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])]); //#4946 + $k[$j++] = 'textxalign'; //#4946 + $k[$j++] = "center"; //#4946 + $k[$j++] = 'opt'; //#4946 + $k[$j++] = $1.options; //#4946 + var _93 = $d(); //#4946 + $k[$j++] = _93; //#4949 + if (!$1.dontdraw) { //#4949 + $0.renlinear(); //#4949 + } //#4949 }; - $0["gs1-128"] = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = .5; - $1.linkagea = false; - $1.linkagec = false; - $1.parse = false; - $1.dontlint = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.text = $1.barcode; + $0['gs1-128'] = function() { + var $1 = {}; //#4981 + $1.options = $k[--$j]; //#4983 + $1.barcode = $k[--$j]; //#4984 + $1.dontdraw = false; //#4986 + $1.includetext = false; //#4987 + $1.textfont = "OCR-B"; //#4988 + $1.textsize = 10; //#4989 + $1.textxoffset = 0; //#4990 + $1.textyoffset = -8; //#4991 + $1.height = 0.5; //#4992 + $1.linkagea = false; //#4993 + $1.linkagec = false; //#4994 + $1.parse = false; //#4995 + $1.dontlint = false; //#4996 + $forall($1.options, function() { //#5007 + var _3 = $k[--$j]; //#5007 + $1[$k[--$j]] = _3; //#5007 + }); //#5007 + $1.textfont = "" + $1.textfont; //#5009 + $1.textsize = +$1.textsize; //#5010 + $1.textxoffset = +$1.textxoffset; //#5011 + $1.textyoffset = +$1.textyoffset; //#5012 + $1.height = +$1.height; //#5013 + $1.text = $1.barcode; //#5015 $1.expand = function() { - var _C = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _C; - $k[$j++] = $1.fncvals; - $0.parseinput(); - }; - $1.ais = $a([]); - $1.vals = $a([]); - var _G = $1.barcode; - $k[$j++] = $geti(_G, 1, _G.length - 1); - for (;;) { - var _I = $k[--$j]; - $k[$j++] = _I; - if ($eq(_I, "")) { - break; - } - $search($k[--$j], ")"); - $j--; - var _K = $k[--$j]; - var _L = $k[--$j]; - $k[$j++] = _K; - $k[$j++] = _L; - $j--; - var _M = $k[--$j]; - var _N = $k[--$j]; - $k[$j++] = _M; - $search(_N, "("); - if ($k[--$j]) { - var _P = $k[--$j]; - var _Q = $k[--$j]; - $k[$j++] = _P; - $k[$j++] = _Q; - $j--; - var _R = $k[--$j]; - var _S = $k[--$j]; - var _T = $k[--$j]; - $k[$j++] = _S; - $k[$j++] = _T; - $k[$j++] = _R; - } else { - var _U = $k[--$j]; - var _V = $k[--$j]; - $k[$j++] = ""; - $k[$j++] = _V; - $k[$j++] = _U; - } - $k[$j++] = Infinity; - $aload($1.ais); - var _Y = $k[$j - 1 - ($counttomark() + 2)]; - $k[$j++] = _Y; - $1.ais = $a(); - $k[$j++] = Infinity; - $aload($1.vals); - var _c = $k[$j - 1 - ($counttomark() + 1)]; - $k[$j++] = _c; - $1.expand(); - $1.vals = $a(); - $j -= 2; - } - $j--; - if (!$1.dontlint) { - $k[$j++] = $1.ais; - $k[$j++] = $1.vals; - $0.gs1lint(); - $j--; - } - $1.aifixed = new Map(); - $k[$j++] = Infinity; - for (var _h = 0; _h <= 4; _h += 1) { - $k[$j++] = _h; - } - var _i = $a(); - for (var _j = 0, _k = _i.length; _j < _k; _j++) { - var _n = $strcpy($s(2), "00"); - $put(_n, 1, $f($get(_i, _j) + 48)); - $put($1.aifixed, _n, _n); - } - $k[$j++] = Infinity; - for (var _p = 11; _p <= 20; _p += 1) { - $k[$j++] = _p; - } - $k[$j++] = 23; - for (var _q = 31; _q <= 36; _q += 1) { - $k[$j++] = _q; - } - $k[$j++] = 41; - var _r = $a(); - for (var _s = 0, _t = _r.length; _s < _t; _s++) { - var _w = $cvrs($s(2), $get(_r, _s), 10); - $put($1.aifixed, _w, _w); - } - $1.fnc1 = -1; - $1.c128 = $a([ $1.fnc1 ]); - for (var _12 = 0, _11 = $1.ais.length - 1; _12 <= _11; _12 += 1) { - $1.i = _12; - $1.ai = $get($1.ais, $1.i); - $1.val = $get($1.vals, $1.i); - var _1C = $a($1.c128.length + $1.ai.length + $1.val.length); - $puti(_1C, 0, $1.c128); - $k[$j++] = _1C; - $k[$j++] = _1C; - $k[$j++] = $1.c128.length; - $k[$j++] = Infinity; - var _1H = $1.ai; - $forall(_1H); - var _1I = $a(); - var _1J = $k[--$j]; - $puti($k[--$j], _1J, _1I); - var _1L = $k[--$j]; - $k[$j++] = _1L; - $k[$j++] = _1L; - $k[$j++] = $1.c128.length + $1.ai.length; - $k[$j++] = Infinity; - var _1Q = $1.val; - $forall(_1Q); - var _1R = $a(); - var _1S = $k[--$j]; - $puti($k[--$j], _1S, _1R); - $1.c128 = $k[--$j]; - var _1a = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; - if ($1.i != $1.ais.length - 1 && !_1a) { - var _1c = $a($1.c128.length + 1); - $puti(_1c, 0, $1.c128); - $put(_1c, $1.c128.length, $1.fnc1); - $1.c128 = _1c; - } - } - $1.barcode = $s(($1.c128.length + 1) * 5); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.c128.length) { - break; - } - var _1m = $get($1.c128, $1.i); - $k[$j++] = _1m; - if (_1m == $1.fnc1) { - $j--; - $puti($1.barcode, $1.j, "^FNC1"); - $1.j = $1.j + 4; - } else { - $put($1.barcode, $1.j, $k[--$j]); - } - $1.i = $1.i + 1; - $1.j = $1.j + 1; - } - if ($1.linkagea || $1.linkagec) { - $k[$j++] = $1.barcode; - $k[$j++] = $1.j; - if ($1.linkagea) { - $k[$j++] = "^LNKA"; - } else { - $k[$j++] = "^LNKC"; - } - var _21 = $k[--$j]; - var _22 = $k[--$j]; - $puti($k[--$j], _22, _21); - $1.j = $1.j + 5; - } - $1.barcode = $geti($1.barcode, 0, $1.j); - delete $1.options["parse"]; - $put($1.options, "height", $1.height); - $put($1.options, "dontdraw", true); - $put($1.options, "parsefnc", true); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.code128(); - var _2F = $k[--$j]; - $1[$k[--$j]] = _2F; - $put($1.args, "txt", $a([ $a([ $1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ]) ])); - $put($1.args, "textxalign", "center"); - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var _C = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#5022 + $1.fncvals = _C; //#5023 + $k[$j++] = $1.fncvals; //#5024 + $0.parseinput(); //#5024 + }; //#5025 + $1.ais = $a([]); //#5028 + $1.vals = $a([]); //#5029 + var _G = $1.barcode; //#5030 + $k[$j++] = $geti(_G, 1, _G.length - 1); //#5043 + for (;;) { //#5043 + var _I = $k[--$j]; //#5032 + $k[$j++] = _I; //#5032 + if ($eq(_I, "")) { //#5032 + break; //#5032 + } //#5032 + $search($k[--$j], ")"); //#5033 + $j--; //#5033 + var _K = $k[--$j]; //#5034 + var _L = $k[--$j]; //#5034 + $k[$j++] = _K; //#5034 + $k[$j++] = _L; //#5034 + $j--; //#5034 + var _M = $k[--$j]; //#5035 + var _N = $k[--$j]; //#5035 + $k[$j++] = _M; //#5035 + $search(_N, "("); //#5035 + if ($k[--$j]) { //#5038 + var _P = $k[--$j]; //#5036 + var _Q = $k[--$j]; //#5036 + $k[$j++] = _P; //#5036 + $k[$j++] = _Q; //#5036 + $j--; //#5036 + var _R = $k[--$j]; //#5036 + var _S = $k[--$j]; //#5036 + var _T = $k[--$j]; //#5036 + $k[$j++] = _S; //#5036 + $k[$j++] = _T; //#5036 + $k[$j++] = _R; //#5036 + } else { //#5038 + var _U = $k[--$j]; //#5038 + var _V = $k[--$j]; //#5038 + $k[$j++] = ""; //#5038 + $k[$j++] = _V; //#5038 + $k[$j++] = _U; //#5038 + } //#5038 + $k[$j++] = Infinity; //#5040 + $aload($1.ais); //#5040 + var _Y = $k[$j - 1 - ($counttomark() + 2)]; //#5040 + $k[$j++] = _Y; //#5040 + $1.ais = $a(); //#5040 + $k[$j++] = Infinity; //#5041 + $aload($1.vals); //#5041 + var _c = $k[$j - 1 - ($counttomark() + 1)]; //#5041 + $k[$j++] = _c; //#5041 + $1.expand(); //#5041 + $1.vals = $a(); //#5041 + $j -= 2; //#5042 + } //#5042 + $j--; //#5044 + if (!$1.dontlint) { //#5046 + $k[$j++] = $1.ais; //#5046 + $k[$j++] = $1.vals; //#5046 + $0.gs1lint(); //#5046 + $j--; //#5046 + } //#5046 + $1.aifixed = new Map; //#5051 + $k[$j++] = Infinity; //#5053 + for (var _h = 0; _h <= 4; _h += 1) { //#5053 + $k[$j++] = _h; //#5053 + } //#5053 + var _i = $a(); //#5053 + for (var _j = 0, _k = _i.length; _j < _k; _j++) { //#5056 + var _n = $strcpy($s(2), "00"); //#5055 + $put(_n, 1, $f($get(_i, _j) + 48)); //#5055 + $put($1.aifixed, _n, _n); //#5055 + } //#5055 + $k[$j++] = Infinity; //#5061 + for (var _p = 11; _p <= 20; _p += 1) { //#5058 + $k[$j++] = _p; //#5058 + } //#5058 + $k[$j++] = 23; //#5060 + for (var _q = 31; _q <= 36; _q += 1) { //#5060 + $k[$j++] = _q; //#5060 + } //#5060 + $k[$j++] = 41; //#5061 + var _r = $a(); //#5061 + for (var _s = 0, _t = _r.length; _s < _t; _s++) { //#5064 + var _w = $cvrs($s(2), $get(_r, _s), 10); //#5063 + $put($1.aifixed, _w, _w); //#5063 + } //#5063 + $1.fnc1 = -1; //#5067 + $1.c128 = $a([$1.fnc1]); //#5068 + for (var _12 = 0, _11 = $1.ais.length - 1; _12 <= _11; _12 += 1) { //#5084 + $1.i = _12; //#5070 + $1.ai = $get($1.ais, $1.i); //#5071 + $1.val = $get($1.vals, $1.i); //#5072 + var _1C = $a(($1.c128.length + $1.ai.length) + $1.val.length); //#5073 + $puti(_1C, 0, $1.c128); //#5074 + $k[$j++] = _1C; //#5075 + $k[$j++] = _1C; //#5075 + $k[$j++] = $1.c128.length; //#5075 + $k[$j++] = $1.ai; //#5075 + $k[$j++] = Infinity; //#5075 + var _1G = $k[--$j]; //#5075 + var _1H = $k[--$j]; //#5075 + $k[$j++] = _1G; //#5075 + $forall(_1H); //#5075 + var _1I = $a(); //#5075 + var _1J = $k[--$j]; //#5075 + $puti($k[--$j], _1J, _1I); //#5075 + var _1L = $k[--$j]; //#5076 + $k[$j++] = _1L; //#5076 + $k[$j++] = _1L; //#5076 + $k[$j++] = $1.c128.length + $1.ai.length; //#5076 + $k[$j++] = $1.val; //#5076 + $k[$j++] = Infinity; //#5076 + var _1P = $k[--$j]; //#5076 + var _1Q = $k[--$j]; //#5076 + $k[$j++] = _1P; //#5076 + $forall(_1Q); //#5076 + var _1R = $a(); //#5076 + var _1S = $k[--$j]; //#5076 + $puti($k[--$j], _1S, _1R); //#5076 + $1.c128 = $k[--$j]; //#5077 + var _1a = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; //#5078 + if (($1.i != ($1.ais.length - 1)) && (!_1a)) { //#5083 + var _1c = $a($1.c128.length + 1); //#5079 + $puti(_1c, 0, $1.c128); //#5080 + $put(_1c, $1.c128.length, $1.fnc1); //#5081 + $1.c128 = _1c; //#5082 + } //#5082 + } //#5082 + $1.barcode = $s(($1.c128.length + 1) * 5); //#5087 + $1.i = 0; //#5088 + $1.j = 0; //#5088 + for (;;) { //#5098 + if ($1.i == $1.c128.length) { //#5089 + break; //#5089 + } //#5089 + var _1m = $get($1.c128, $1.i); //#5090 + $k[$j++] = _1m; //#5095 + if (_1m == $1.fnc1) { //#5094 + $j--; //#5091 + $puti($1.barcode, $1.j, "^FNC1"); //#5091 + $1.j = $1.j + 4; //#5092 + } else { //#5094 + $put($1.barcode, $1.j, $k[--$j]); //#5094 + } //#5094 + $1.i = $1.i + 1; //#5096 + $1.j = $1.j + 1; //#5097 + } //#5097 + if ($1.linkagea || $1.linkagec) { //#5102 + $k[$j++] = $1.barcode; //#5100 + $k[$j++] = $1.j; //#5100 + if ($1.linkagea) { //#5100 + $k[$j++] = "^LNKA"; //#5100 + } else { //#5100 + $k[$j++] = "^LNKC"; //#5100 + } //#5100 + var _21 = $k[--$j]; //#5100 + var _22 = $k[--$j]; //#5100 + $puti($k[--$j], _22, _21); //#5100 + $1.j = $1.j + 5; //#5101 + } //#5101 + $1.barcode = $geti($1.barcode, 0, $1.j); //#5103 + delete $1.options["parse"]; //#5106 + $put($1.options, "height", $1.height); //#5107 + $put($1.options, "dontdraw", true); //#5108 + $put($1.options, "parsefnc", true); //#5109 + $k[$j++] = 'args'; //#5110 + $k[$j++] = $1.barcode; //#5110 + $k[$j++] = $1.options; //#5110 + $0.code128(); //#5110 + var _2F = $k[--$j]; //#5110 + $1[$k[--$j]] = _2F; //#5110 + $put($1.args, "txt", $a([$a([$1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])])); //#5112 + $put($1.args, "textxalign", "center"); //#5113 + $put($1.args, "opt", $1.options); //#5114 + $k[$j++] = $1.args; //#5117 + if (!$1.dontdraw) { //#5117 + $0.renlinear(); //#5117 + } //#5117 }; $0.ean14 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.text = $1.barcode; - var _B = $1.barcode; - $k[$j++] = $s(_B.length); - $k[$j++] = 0; - $forall(_B, function() { - var _D = $k[--$j]; - $k[$j++] = _D; - if (_D != 32) { - var _E = $k[--$j]; - var _F = $k[--$j]; - var _G = $k[--$j]; - $put(_G, _F, _E); - $k[$j++] = _G; - $k[$j++] = $f(_F + 1); - } else { - $j--; - } - }); - var _H = $k[--$j]; - $1.barcode = $geti($k[--$j], 0, _H); - $1.hasspace = $1.text.length != $1.barcode.length; - if ($ne($geti($1.barcode, 0, 4), "(01)")) { - $k[$j++] = "bwipp.ean14badAI"; - $k[$j++] = "GS1-14 must begin with (01) application identifier"; - $0.raiseerror(); - } - if ($1.barcode.length != 17 && $1.barcode.length != 18) { - $k[$j++] = "bwipp.ean14badLength"; - $k[$j++] = "GS1-14 must be 13 or 14 digits"; - $0.raiseerror(); - } - var _S = $geti($1.barcode, 4, $1.barcode.length - 4); - for (var _T = 0, _U = _S.length; _T < _U; _T++) { - var _V = $get(_S, _T); - if (_V < 48 || _V > 57) { - $k[$j++] = "bwipp.ean14badCharacter"; - $k[$j++] = "GS1-14 must contain only digits"; - $0.raiseerror(); - } - } - $1.checksum = 0; - for (var _W = 0; _W <= 12; _W += 1) { - $1.i = _W; - $k[$j++] = "checksum"; - $k[$j++] = $1.checksum; - $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); - if ($1.i % 2 == 0) { - var _c = $k[--$j]; - $k[$j++] = _c * 3; - } - var _d = $k[--$j]; - var _e = $k[--$j]; - $1[$k[--$j]] = $f(_e + _d); - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 18) { - if ($get($1.barcode, 17) != $1.checksum + 48) { - $k[$j++] = "bwipp.ean14badCheckDigit"; - $k[$j++] = "Incorrect GS1-14 check digit provided"; - $0.raiseerror(); - } - } else { - var _l = $s(18); - $puti(_l, 0, $1.barcode); - $put(_l, 17, $1.checksum + 48); - $1.barcode = _l; - var _q = $1.hasspace ? 2 : 1; - var _r = $s($1.text.length + _q); - $puti(_r, _r.length - 2, " "); - $put(_r, _r.length - 1, $1.checksum + 48); - $puti(_r, 0, $1.text); - $1.text = _r; - } - $1.gtin = $geti($1.barcode, 4, 14); - $1.barcode = $s(21); - $puti($1.barcode, 0, "^FNC101"); - $puti($1.barcode, 7, $1.gtin); - $put($1.options, "dontdraw", true); - $put($1.options, "parsefnc", true); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.code128(); - var _14 = $k[--$j]; - $1[$k[--$j]] = _14; - $put($1.args, "txt", $a([ $a([ $1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ]) ])); - $put($1.args, "textxalign", "center"); - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#5147 + $1.options = $k[--$j]; //#5149 + $1.barcode = $k[--$j]; //#5150 + $1.dontdraw = false; //#5152 + $1.includetext = false; //#5153 + $1.textfont = "OCR-B"; //#5154 + $1.textsize = 10; //#5155 + $1.textxoffset = 0; //#5156 + $1.textyoffset = -8; //#5157 + $1.height = 1; //#5158 + $forall($1.options, function() { //#5169 + var _3 = $k[--$j]; //#5169 + $1[$k[--$j]] = _3; //#5169 + }); //#5169 + $1.textfont = "" + $1.textfont; //#5171 + $1.textsize = +$1.textsize; //#5172 + $1.textxoffset = +$1.textxoffset; //#5173 + $1.textyoffset = +$1.textyoffset; //#5174 + $1.height = +$1.height; //#5175 + $1.text = $1.barcode; //#5178 + var _B = $1.barcode; //#5179 + $k[$j++] = $s(_B.length); //#5180 + $k[$j++] = 0; //#5180 + $forall(_B, function() { //#5180 + var _D = $k[--$j]; //#5180 + $k[$j++] = _D; //#5180 + if (_D != 32) { //#5180 + var _E = $k[--$j]; //#5180 + var _F = $k[--$j]; //#5180 + var _G = $k[--$j]; //#5180 + $put(_G, _F, _E); //#5180 + $k[$j++] = _G; //#5180 + $k[$j++] = $f(_F + 1); //#5180 + } else { //#5180 + $j--; //#5180 + } //#5180 + }); //#5180 + var _H = $k[--$j]; //#5181 + $1.barcode = $geti($k[--$j], 0, _H); //#5181 + $1.hasspace = $1.text.length != $1.barcode.length; //#5182 + if ($ne($geti($1.barcode, 0, 4), "(01)")) { //#5187 + $k[$j++] = 'bwipp.ean14badAI'; //#5186 + $k[$j++] = "GS1-14 must begin with (01) application identifier"; //#5186 + $0.raiseerror(); //#5186 + } //#5186 + if (($1.barcode.length != 17) && ($1.barcode.length != 18)) { //#5190 + $k[$j++] = 'bwipp.ean14badLength'; //#5189 + $k[$j++] = "GS1-14 must be 13 or 14 digits"; //#5189 + $0.raiseerror(); //#5189 + } //#5189 + var _S = $geti($1.barcode, 4, $1.barcode.length - 4); //#5191 + for (var _T = 0, _U = _S.length; _T < _U; _T++) { //#5195 + var _V = $get(_S, _T); //#5195 + if ((_V < 48) || (_V > 57)) { //#5194 + $k[$j++] = 'bwipp.ean14badCharacter'; //#5193 + $k[$j++] = "GS1-14 must contain only digits"; //#5193 + $0.raiseerror(); //#5193 + } //#5193 + } //#5193 + $1.checksum = 0; //#5198 + for (var _W = 0; _W <= 12; _W += 1) { //#5202 + $1.i = _W; //#5200 + $k[$j++] = 'checksum'; //#5201 + $k[$j++] = $1.checksum; //#5201 + $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); //#5201 + if (($1.i % 2) == 0) { //#5201 + var _c = $k[--$j]; //#5201 + $k[$j++] = _c * 3; //#5201 + } //#5201 + var _d = $k[--$j]; //#5201 + var _e = $k[--$j]; //#5201 + $1[$k[--$j]] = $f(_e + _d); //#5201 + } //#5201 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#5203 + if ($1.barcode.length == 18) { //#5217 + if ($get($1.barcode, 17) != ($1.checksum + 48)) { //#5207 + $k[$j++] = 'bwipp.ean14badCheckDigit'; //#5206 + $k[$j++] = "Incorrect GS1-14 check digit provided"; //#5206 + $0.raiseerror(); //#5206 + } //#5206 + } else { //#5217 + var _l = $s(18); //#5209 + $puti(_l, 0, $1.barcode); //#5210 + $put(_l, 17, $1.checksum + 48); //#5211 + $1.barcode = _l; //#5212 + var _q = $1.hasspace ? 2 : 1; //#5213 + var _r = $s($1.text.length + _q); //#5213 + $puti(_r, _r.length - 2, " "); //#5214 + $put(_r, _r.length - 1, $1.checksum + 48); //#5215 + $puti(_r, 0, $1.text); //#5216 + $1.text = _r; //#5217 + } //#5217 + $1.gtin = $geti($1.barcode, 4, 14); //#5219 + $1.barcode = $s(21); //#5222 + $puti($1.barcode, 0, "^FNC101"); //#5223 + $puti($1.barcode, 7, $1.gtin); //#5224 + $put($1.options, "dontdraw", true); //#5227 + $put($1.options, "parsefnc", true); //#5228 + $k[$j++] = 'args'; //#5229 + $k[$j++] = $1.barcode; //#5229 + $k[$j++] = $1.options; //#5229 + $0.code128(); //#5229 + var _14 = $k[--$j]; //#5229 + $1[$k[--$j]] = _14; //#5229 + $put($1.args, "txt", $a([$a([$1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])])); //#5231 + $put($1.args, "textxalign", "center"); //#5232 + $put($1.args, "opt", $1.options); //#5233 + $k[$j++] = $1.args; //#5236 + if (!$1.dontdraw) { //#5236 + $0.renlinear(); //#5236 + } //#5236 }; $0.sscc18 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.text = $1.barcode; - var _B = $1.barcode; - $k[$j++] = $s(_B.length); - $k[$j++] = 0; - $forall(_B, function() { - var _D = $k[--$j]; - $k[$j++] = _D; - if (_D != 32) { - var _E = $k[--$j]; - var _F = $k[--$j]; - var _G = $k[--$j]; - $put(_G, _F, _E); - $k[$j++] = _G; - $k[$j++] = $f(_F + 1); - } else { - $j--; - } - }); - var _H = $k[--$j]; - $1.barcode = $geti($k[--$j], 0, _H); - $1.hasspace = $1.text.length != $1.barcode.length; - if ($ne($geti($1.barcode, 0, 4), "(00)")) { - $k[$j++] = "bwipp.sscc18badAI"; - $k[$j++] = "SSCC-18 must begin with (00) application identifier"; - $0.raiseerror(); - } - if ($1.barcode.length != 21 && $1.barcode.length != 22) { - $k[$j++] = "bwipp.sscc18badLength"; - $k[$j++] = "SSCC-18 must be 17 or 18 digits"; - $0.raiseerror(); - } - var _S = $geti($1.barcode, 4, $1.barcode.length - 4); - for (var _T = 0, _U = _S.length; _T < _U; _T++) { - var _V = $get(_S, _T); - if (_V < 48 || _V > 57) { - $k[$j++] = "bwipp.sscc18badCharacter"; - $k[$j++] = "SSCC-18 must contain only digits"; - $0.raiseerror(); - } - } - $1.checksum = 0; - for (var _W = 0; _W <= 16; _W += 1) { - $1.i = _W; - $k[$j++] = "checksum"; - $k[$j++] = $1.checksum; - $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); - if ($1.i % 2 == 0) { - var _c = $k[--$j]; - $k[$j++] = _c * 3; - } - var _d = $k[--$j]; - var _e = $k[--$j]; - $1[$k[--$j]] = $f(_e + _d); - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 22) { - if ($get($1.barcode, 21) != $1.checksum + 48) { - $k[$j++] = "bwipp.sscc18badCheckDigit"; - $k[$j++] = "Incorrect SSCC-18 check digit provided"; - $0.raiseerror(); - } - } else { - var _l = $s(22); - $puti(_l, 0, $1.barcode); - $put(_l, 21, $1.checksum + 48); - $1.barcode = _l; - var _q = $1.hasspace ? 2 : 1; - var _r = $s($1.text.length + _q); - $puti(_r, _r.length - 2, " "); - $put(_r, _r.length - 1, $1.checksum + 48); - $puti(_r, 0, $1.text); - $1.text = _r; - } - $1.sscc = $geti($1.barcode, 4, 18); - $1.barcode = $s(25); - $puti($1.barcode, 0, "^FNC100"); - $puti($1.barcode, 7, $1.sscc); - $put($1.options, "dontdraw", true); - $put($1.options, "parsefnc", true); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.code128(); - var _14 = $k[--$j]; - $1[$k[--$j]] = _14; - $put($1.args, "txt", $a([ $a([ $1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ]) ])); - $put($1.args, "textxalign", "center"); - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#5266 + $1.options = $k[--$j]; //#5268 + $1.barcode = $k[--$j]; //#5269 + $1.dontdraw = false; //#5271 + $1.includetext = false; //#5272 + $1.textfont = "OCR-B"; //#5273 + $1.textsize = 10; //#5274 + $1.textxoffset = 0; //#5275 + $1.textyoffset = -8; //#5276 + $1.height = 1; //#5277 + $forall($1.options, function() { //#5288 + var _3 = $k[--$j]; //#5288 + $1[$k[--$j]] = _3; //#5288 + }); //#5288 + $1.textfont = "" + $1.textfont; //#5290 + $1.textsize = +$1.textsize; //#5291 + $1.textxoffset = +$1.textxoffset; //#5292 + $1.textyoffset = +$1.textyoffset; //#5293 + $1.height = +$1.height; //#5294 + $1.text = $1.barcode; //#5297 + var _B = $1.barcode; //#5298 + $k[$j++] = $s(_B.length); //#5299 + $k[$j++] = 0; //#5299 + $forall(_B, function() { //#5299 + var _D = $k[--$j]; //#5299 + $k[$j++] = _D; //#5299 + if (_D != 32) { //#5299 + var _E = $k[--$j]; //#5299 + var _F = $k[--$j]; //#5299 + var _G = $k[--$j]; //#5299 + $put(_G, _F, _E); //#5299 + $k[$j++] = _G; //#5299 + $k[$j++] = $f(_F + 1); //#5299 + } else { //#5299 + $j--; //#5299 + } //#5299 + }); //#5299 + var _H = $k[--$j]; //#5300 + $1.barcode = $geti($k[--$j], 0, _H); //#5300 + $1.hasspace = $1.text.length != $1.barcode.length; //#5301 + if ($ne($geti($1.barcode, 0, 4), "(00)")) { //#5306 + $k[$j++] = 'bwipp.sscc18badAI'; //#5305 + $k[$j++] = "SSCC-18 must begin with (00) application identifier"; //#5305 + $0.raiseerror(); //#5305 + } //#5305 + if (($1.barcode.length != 21) && ($1.barcode.length != 22)) { //#5309 + $k[$j++] = 'bwipp.sscc18badLength'; //#5308 + $k[$j++] = "SSCC-18 must be 17 or 18 digits"; //#5308 + $0.raiseerror(); //#5308 + } //#5308 + var _S = $geti($1.barcode, 4, $1.barcode.length - 4); //#5310 + for (var _T = 0, _U = _S.length; _T < _U; _T++) { //#5314 + var _V = $get(_S, _T); //#5314 + if ((_V < 48) || (_V > 57)) { //#5313 + $k[$j++] = 'bwipp.sscc18badCharacter'; //#5312 + $k[$j++] = "SSCC-18 must contain only digits"; //#5312 + $0.raiseerror(); //#5312 + } //#5312 + } //#5312 + $1.checksum = 0; //#5317 + for (var _W = 0; _W <= 16; _W += 1) { //#5321 + $1.i = _W; //#5319 + $k[$j++] = 'checksum'; //#5320 + $k[$j++] = $1.checksum; //#5320 + $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); //#5320 + if (($1.i % 2) == 0) { //#5320 + var _c = $k[--$j]; //#5320 + $k[$j++] = _c * 3; //#5320 + } //#5320 + var _d = $k[--$j]; //#5320 + var _e = $k[--$j]; //#5320 + $1[$k[--$j]] = $f(_e + _d); //#5320 + } //#5320 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#5322 + if ($1.barcode.length == 22) { //#5336 + if ($get($1.barcode, 21) != ($1.checksum + 48)) { //#5326 + $k[$j++] = 'bwipp.sscc18badCheckDigit'; //#5325 + $k[$j++] = "Incorrect SSCC-18 check digit provided"; //#5325 + $0.raiseerror(); //#5325 + } //#5325 + } else { //#5336 + var _l = $s(22); //#5328 + $puti(_l, 0, $1.barcode); //#5329 + $put(_l, 21, $1.checksum + 48); //#5330 + $1.barcode = _l; //#5331 + var _q = $1.hasspace ? 2 : 1; //#5332 + var _r = $s($1.text.length + _q); //#5332 + $puti(_r, _r.length - 2, " "); //#5333 + $put(_r, _r.length - 1, $1.checksum + 48); //#5334 + $puti(_r, 0, $1.text); //#5335 + $1.text = _r; //#5336 + } //#5336 + $1.sscc = $geti($1.barcode, 4, 18); //#5338 + $1.barcode = $s(25); //#5341 + $puti($1.barcode, 0, "^FNC100"); //#5342 + $puti($1.barcode, 7, $1.sscc); //#5343 + $put($1.options, "dontdraw", true); //#5346 + $put($1.options, "parsefnc", true); //#5347 + $k[$j++] = 'args'; //#5348 + $k[$j++] = $1.barcode; //#5348 + $k[$j++] = $1.options; //#5348 + $0.code128(); //#5348 + var _14 = $k[--$j]; //#5348 + $1[$k[--$j]] = _14; //#5348 + $put($1.args, "txt", $a([$a([$1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])])); //#5350 + $put($1.args, "textxalign", "center"); //#5351 + $put($1.args, "opt", $1.options); //#5352 + $k[$j++] = $1.args; //#5355 + if (!$1.dontdraw) { //#5355 + $0.renlinear(); //#5355 + } //#5355 }; $0.code39 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includecheck = false; - $1.validatecheck = false; - $1.includetext = false; - $1.includecheckintext = false; - $1.hidestars = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; - $1.charvals = new Map(); - for (var _9 = 0; _9 <= 42; _9 += 1) { - $put($1.charvals, $geti($1.barchars, _9, 1), _9); - } - for (var _F = 0, _E = $1.barcode.length - 1; _F <= _E; _F += 1) { - var _J = $get($1.charvals, $geti($1.barcode, _F, 1)) !== undefined; - if (!_J) { - $k[$j++] = "bwipp.code39badCharacter"; - $k[$j++] = "Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _M = $k[--$j]; - $k[$j++] = $f(_M - 1); - } - var _N = $k[--$j]; - $1[$k[--$j]] = _N; - $1.checksum = 0; - for (var _R = 0, _Q = $f($1.barlen - 1); _R <= _Q; _R += 1) { - $1.checksum = $f($get($1.charvals, $geti($1.barcode, _R, 1)) + $1.checksum); - } - $1.checksum = $1.checksum % 43; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.code39badCheckDigit"; - $k[$j++] = "Incorrect Code 39 check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - $1.includecheck = true; - } - $1.encs = $a([ "1113313111", "3113111131", "1133111131", "3133111111", "1113311131", "3113311111", "1133311111", "1113113131", "3113113111", "1133113111", "3111131131", "1131131131", "3131131111", "1111331131", "3111331111", "1131331111", "1111133131", "3111133111", "1131133111", "1111333111", "3111111331", "1131111331", "3131111311", "1111311331", "3111311311", "1131311311", "1111113331", "3111113311", "1131113311", "1111313311", "3311111131", "1331111131", "3331111111", "1311311131", "3311311111", "1331311111", "1311113131", "3311113111", "1331113111", "1313131111", "1313111311", "1311131311", "1113131311", "1311313111" ]); - var _l = $1.includecheck ? 3 : 2; - $1.sbs = $s($f($1.barlen + _l) * 10); - var _p = $1.includecheck ? 3 : 2; - $1.txt = $a($f($1.barlen + _p)); - $puti($1.sbs, 0, $get($1.encs, 43)); - if (!$1.hidestars) { - $put($1.txt, 0, $a([ "*", 0, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, 0, $a([ "", 0, $1.textyoffset, $1.textfont, $1.textsize ])); - } - for (var _17 = 0, _16 = $f($1.barlen - 1); _17 <= _16; _17 += 1) { - $1.i = _17; - $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); - $puti($1.sbs, $1.i * 10 + 10, $get($1.encs, $1.indx)); - $put($1.txt, $1.i + 1, $a([ $geti($1.barcode, $1.i, 1), ($1.i + 1) * 16, $1.textyoffset, $1.textfont, $1.textsize ])); - } - if ($1.includecheck) { - $puti($1.sbs, $f($1.barlen * 10 + 10), $get($1.encs, $1.checksum)); - if ($1.includecheckintext) { - $put($1.txt, $f($1.barlen + 1), $a([ $geti($1.barchars, $1.checksum, 1), $f($1.barlen + 1) * 16, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $f($1.barlen + 1), $a([ "", $f($1.barlen + 1) * 16, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $puti($1.sbs, $f($1.barlen * 10 + 20), $get($1.encs, 43)); - if (!$1.hidestars) { - $put($1.txt, $f($1.barlen + 2), $a([ "*", $f($1.barlen + 2) * 16, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $f($1.barlen + 2), $a([ "", $f($1.barlen + 2) * 16, $1.textyoffset, $1.textfont, $1.textsize ])); - } - } else { - $puti($1.sbs, $f($1.barlen * 10 + 10), $get($1.encs, 43)); - if (!$1.hidestars) { - $put($1.txt, $f($1.barlen + 1), $a([ "*", $f($1.barlen + 1) * 16, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $f($1.barlen + 1), $a([ "", $f($1.barlen + 1) * 16, $1.textyoffset, $1.textfont, $1.textsize ])); - } - } - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _2S = $1.sbs; - for (var _2T = 0, _2U = _2S.length; _2T < _2U; _2T++) { - $k[$j++] = $get(_2S, _2T) - 48; - } - var _2W = $a(); - $k[$j++] = Infinity; - for (var _2Y = 0, _2Z = ~~(($1.sbs.length + 1) / 2); _2Y < _2Z; _2Y++) { - $k[$j++] = $1.height; - } - var _2b = $a(); - $k[$j++] = Infinity; - for (var _2d = 0, _2e = ~~(($1.sbs.length + 1) / 2); _2d < _2e; _2d++) { - $k[$j++] = 0; - } - var _2f = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _2W; - $k[$j++] = "bhs"; - $k[$j++] = _2b; - $k[$j++] = "bbs"; - $k[$j++] = _2f; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _2j = $d(); - $k[$j++] = _2j; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#5384 + $1.options = $k[--$j]; //#5386 + $1.barcode = $k[--$j]; //#5387 + $1.dontdraw = false; //#5389 + $1.includecheck = false; //#5390 + $1.validatecheck = false; //#5391 + $1.includetext = false; //#5392 + $1.includecheckintext = false; //#5393 + $1.hidestars = false; //#5394 + $1.textfont = "OCR-B"; //#5395 + $1.textsize = 10; //#5396 + $1.textyoffset = -8; //#5397 + $1.height = 1; //#5398 + $forall($1.options, function() { //#5409 + var _3 = $k[--$j]; //#5409 + $1[$k[--$j]] = _3; //#5409 + }); //#5409 + $1.textfont = "" + $1.textfont; //#5411 + $1.textsize = +$1.textsize; //#5412 + $1.textyoffset = +$1.textyoffset; //#5413 + $1.height = +$1.height; //#5414 + $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#5417 + $1.charvals = new Map; //#5418 + for (var _9 = 0; _9 <= 42; _9 += 1) { //#5419 + $put($1.charvals, $geti($1.barchars, _9, 1), _9); //#5419 + } //#5419 + for (var _F = 0, _E = $1.barcode.length - 1; _F <= _E; _F += 1) { //#5426 + var _J = $get($1.charvals, $geti($1.barcode, _F, 1)) !== undefined; //#5423 + if (!_J) { //#5425 + $k[$j++] = 'bwipp.code39badCharacter'; //#5424 + $k[$j++] = "Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#5424 + $0.raiseerror(); //#5424 + } //#5424 + } //#5424 + $k[$j++] = 'barlen'; //#5428 + $k[$j++] = $1.barcode.length; //#5428 + if ($1.validatecheck) { //#5428 + var _M = $k[--$j]; //#5428 + $k[$j++] = $f(_M - 1); //#5428 + } //#5428 + var _N = $k[--$j]; //#5428 + $1[$k[--$j]] = _N; //#5428 + $1.checksum = 0; //#5430 + for (var _R = 0, _Q = $f($1.barlen - 1); _R <= _Q; _R += 1) { //#5434 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, _R, 1)) + $1.checksum); //#5433 + } //#5433 + $1.checksum = $1.checksum % 43; //#5435 + if ($1.validatecheck) { //#5442 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#5439 + $k[$j++] = 'bwipp.code39badCheckDigit'; //#5438 + $k[$j++] = "Incorrect Code 39 check digit provided"; //#5438 + $0.raiseerror(); //#5438 + } //#5438 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#5440 + $1.includecheck = true; //#5441 + } //#5441 + $1.encs = $a(["1113313111", "3113111131", "1133111131", "3133111111", "1113311131", "3113311111", "1133311111", "1113113131", "3113113111", "1133113111", "3111131131", "1131131131", "3131131111", "1111331131", "3111331111", "1131331111", "1111133131", "3111133111", "1131133111", "1111333111", "3111111331", "1131111331", "3131111311", "1111311331", "3111311311", "1131311311", "1111113331", "3111113311", "1131113311", "1111313311", "3311111131", "1331111131", "3331111111", "1311311131", "3311311111", "1331311111", "1311113131", "3311113111", "1331113111", "1313131111", "1313111311", "1311131311", "1113131311", "1311313111"]); //#5455 + var _l = $1.includecheck ? 3 : 2; //#5457 + $1.sbs = $s($f($1.barlen + _l) * 10); //#5457 + var _p = $1.includecheck ? 3 : 2; //#5458 + $1.txt = $a($f($1.barlen + _p)); //#5458 + $puti($1.sbs, 0, $get($1.encs, 43)); //#5461 + if (!$1.hidestars) { //#5465 + $put($1.txt, 0, $a(["*", 0, $1.textyoffset, $1.textfont, $1.textsize])); //#5463 + } else { //#5465 + $put($1.txt, 0, $a(["", 0, $1.textyoffset, $1.textfont, $1.textsize])); //#5465 + } //#5465 + for (var _17 = 0, _16 = $f($1.barlen - 1); _17 <= _16; _17 += 1) { //#5473 + $1.i = _17; //#5469 + $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); //#5470 + $puti($1.sbs, ($1.i * 10) + 10, $get($1.encs, $1.indx)); //#5471 + $put($1.txt, $1.i + 1, $a([$geti($1.barcode, $1.i, 1), ($1.i + 1) * 16, $1.textyoffset, $1.textfont, $1.textsize])); //#5472 + } //#5472 + if ($1.includecheck) { //#5494 + $puti($1.sbs, $f(($1.barlen * 10) + 10), $get($1.encs, $1.checksum)); //#5477 + if ($1.includecheckintext) { //#5481 + $put($1.txt, $f($1.barlen + 1), $a([$geti($1.barchars, $1.checksum, 1), $f($1.barlen + 1) * 16, $1.textyoffset, $1.textfont, $1.textsize])); //#5479 + } else { //#5481 + $put($1.txt, $f($1.barlen + 1), $a(["", $f($1.barlen + 1) * 16, $1.textyoffset, $1.textfont, $1.textsize])); //#5481 + } //#5481 + $puti($1.sbs, $f(($1.barlen * 10) + 20), $get($1.encs, 43)); //#5483 + if (!$1.hidestars) { //#5487 + $put($1.txt, $f($1.barlen + 2), $a(["*", $f($1.barlen + 2) * 16, $1.textyoffset, $1.textfont, $1.textsize])); //#5485 + } else { //#5487 + $put($1.txt, $f($1.barlen + 2), $a(["", $f($1.barlen + 2) * 16, $1.textyoffset, $1.textfont, $1.textsize])); //#5487 + } //#5487 + } else { //#5494 + $puti($1.sbs, $f(($1.barlen * 10) + 10), $get($1.encs, 43)); //#5490 + if (!$1.hidestars) { //#5494 + $put($1.txt, $f($1.barlen + 1), $a(["*", $f($1.barlen + 1) * 16, $1.textyoffset, $1.textfont, $1.textsize])); //#5492 + } else { //#5494 + $put($1.txt, $f($1.barlen + 1), $a(["", $f($1.barlen + 1) * 16, $1.textyoffset, $1.textfont, $1.textsize])); //#5494 + } //#5494 + } //#5494 + $k[$j++] = Infinity; //#5507 + $k[$j++] = Infinity; //#5501 + var _2S = $1.sbs; //#5501 + for (var _2T = 0, _2U = _2S.length; _2T < _2U; _2T++) { //#5501 + $k[$j++] = $get(_2S, _2T) - 48; //#5501 + } //#5501 + var _2W = $a(); //#5501 + $k[$j++] = Infinity; //#5502 + for (var _2Y = 0, _2Z = ~~(($1.sbs.length + 1) / 2); _2Y < _2Z; _2Y++) { //#5502 + $k[$j++] = $1.height; //#5502 + } //#5502 + var _2b = $a(); //#5502 + $k[$j++] = Infinity; //#5503 + for (var _2d = 0, _2e = ~~(($1.sbs.length + 1) / 2); _2d < _2e; _2d++) { //#5503 + $k[$j++] = 0; //#5503 + } //#5503 + var _2f = $a(); //#5503 + $k[$j++] = 'ren'; //#5506 + $k[$j++] = $0.renlinear; //#5506 + $k[$j++] = 'sbs'; //#5506 + $k[$j++] = _2W; //#5506 + $k[$j++] = 'bhs'; //#5506 + $k[$j++] = _2b; //#5506 + $k[$j++] = 'bbs'; //#5506 + $k[$j++] = _2f; //#5506 + if ($1.includetext) { //#5506 + $k[$j++] = 'txt'; //#5505 + $k[$j++] = $1.txt; //#5505 + } //#5505 + $k[$j++] = 'opt'; //#5507 + $k[$j++] = $1.options; //#5507 + var _2j = $d(); //#5507 + $k[$j++] = _2j; //#5510 + if (!$1.dontdraw) { //#5510 + $0.renlinear(); //#5510 + } //#5510 }; $0.code39ext = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.parse = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - var _6 = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _6; - $k[$j++] = "barcode"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _9 = $k[--$j]; - $1[$k[--$j]] = _9; - $1.barlen = $1.barcode.length; - delete $1.options["parse"]; - $forall($1.barcode, function() { - if ($k[--$j] >= 128) { - $k[$j++] = "bwipp.code39extBadCharacter"; - $k[$j++] = "Code 39 Extended must contain only ASCII characters"; - $0.raiseerror(); - } - }); - $1.extencs = $a([ "%U", "$A", "$B", "$C", "$D", "$E", "$F", "$G", "$H", "$I", "$J", "$K", "$L", "$M", "$N", "$O", "$P", "$Q", "$R", "$S", "$T", "$U", "$V", "$W", "$X", "$Y", "$Z", "%A", "%B", "%C", "%D", "%E", " ", "/A", "/B", "/C", "/D", "/E", "/F", "/G", "/H", "/I", "/J", "/K", "/L", "-", ".", "/O", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "/Z", "%F", "%G", "%H", "%I", "%J", "%V", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "%K", "%L", "%M", "%N", "%O", "%W", "+A", "+B", "+C", "+D", "+E", "+F", "+G", "+H", "+I", "+J", "+K", "+L", "+M", "+N", "+O", "+P", "+Q", "+R", "+S", "+T", "+U", "+V", "+W", "+X", "+Y", "+Z", "%P", "%Q", "%R", "%S", "%T" ]); - $1.newcode = $s($1.barlen * 2); - $1.newtext = $s($1.barlen * 2); - $1.j = 0; - for (var _M = 0, _L = $1.barlen - 1; _M <= _L; _M += 1) { - $1.i = _M; - $1.extchar = $get($1.extencs, $get($1.barcode, $1.i)); - $puti($1.newcode, $1.j, $1.extchar); - $put($1.newtext, $1.j, $get($1.barcode, $1.i)); - if ($1.extchar.length != 1) { - $puti($1.newtext, $1.j + 1, " "); - } - $1.j = $1.j + $1.extchar.length; - } - $1.newcode = $geti($1.newcode, 0, $1.j); - $1.newtext = $geti($1.newtext, 0, $1.j); - $put($1.options, "dontdraw", true); - $k[$j++] = "args"; - $k[$j++] = $1.newcode; - $k[$j++] = $1.options; - $0.code39(); - var _o = $k[--$j]; - $1[$k[--$j]] = _o; - if ($1.includetext) { - $1.txt = $get($1.args, "txt"); - for (var _v = 0, _u = $1.newtext.length - 1; _v <= _u; _v += 1) { - $1.i = _v; - $1.txtentry = $get($1.txt, $1.i + 1); - $put($1.txtentry, 0, $geti($1.newtext, $1.i, 1)); - $put($1.txt, $1.i + 1, $1.txtentry); - } - $put($1.args, "txt", $1.txt); - } - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#5541 + $1.options = $k[--$j]; //#5543 + $1.barcode = $k[--$j]; //#5544 + $1.dontdraw = false; //#5546 + $1.includetext = false; //#5547 + $1.parse = false; //#5548 + $forall($1.options, function() { //#5559 + var _3 = $k[--$j]; //#5559 + $1[$k[--$j]] = _3; //#5559 + }); //#5559 + var _6 = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#5565 + $1.fncvals = _6; //#5566 + $k[$j++] = 'barcode'; //#5567 + $k[$j++] = $1.barcode; //#5567 + $k[$j++] = $1.fncvals; //#5567 + $0.parseinput(); //#5567 + var _9 = $k[--$j]; //#5567 + $1[$k[--$j]] = _9; //#5567 + $1.barlen = $1.barcode.length; //#5568 + delete $1.options["parse"]; //#5569 + $forall($1.barcode, function() { //#5576 + if ($k[--$j] >= 128) { //#5575 + $k[$j++] = 'bwipp.code39extBadCharacter'; //#5574 + $k[$j++] = "Code 39 Extended must contain only ASCII characters"; //#5574 + $0.raiseerror(); //#5574 + } //#5574 + }); //#5574 + $1.extencs = $a(["%U", "$A", "$B", "$C", "$D", "$E", "$F", "$G", "$H", "$I", "$J", "$K", "$L", "$M", "$N", "$O", "$P", "$Q", "$R", "$S", "$T", "$U", "$V", "$W", "$X", "$Y", "$Z", "%A", "%B", "%C", "%D", "%E", " ", "/A", "/B", "/C", "/D", "/E", "/F", "/G", "/H", "/I", "/J", "/K", "/L", "-", ".", "/O", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "/Z", "%F", "%G", "%H", "%I", "%J", "%V", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "%K", "%L", "%M", "%N", "%O", "%W", "+A", "+B", "+C", "+D", "+E", "+F", "+G", "+H", "+I", "+J", "+K", "+L", "+M", "+N", "+O", "+P", "+Q", "+R", "+S", "+T", "+U", "+V", "+W", "+X", "+Y", "+Z", "%P", "%Q", "%R", "%S", "%T"]); //#5588 + $1.newcode = $s($1.barlen * 2); //#5590 + $1.newtext = $s($1.barlen * 2); //#5591 + $1.j = 0; //#5592 + for (var _M = 0, _L = $1.barlen - 1; _M <= _L; _M += 1) { //#5600 + $1.i = _M; //#5594 + $1.extchar = $get($1.extencs, $get($1.barcode, $1.i)); //#5595 + $puti($1.newcode, $1.j, $1.extchar); //#5596 + $put($1.newtext, $1.j, $get($1.barcode, $1.i)); //#5597 + if ($1.extchar.length != 1) { //#5598 + $puti($1.newtext, $1.j + 1, " "); //#5598 + } //#5598 + $1.j = $1.j + $1.extchar.length; //#5599 + } //#5599 + $1.newcode = $geti($1.newcode, 0, $1.j); //#5601 + $1.newtext = $geti($1.newtext, 0, $1.j); //#5602 + $put($1.options, "dontdraw", true); //#5605 + $k[$j++] = 'args'; //#5606 + $k[$j++] = $1.newcode; //#5606 + $k[$j++] = $1.options; //#5606 + $0.code39(); //#5606 + var _o = $k[--$j]; //#5606 + $1[$k[--$j]] = _o; //#5606 + if ($1.includetext) { //#5618 + $1.txt = $get($1.args, "txt"); //#5610 + for (var _v = 0, _u = $1.newtext.length - 1; _v <= _u; _v += 1) { //#5616 + $1.i = _v; //#5612 + $1.txtentry = $get($1.txt, $1.i + 1); //#5613 + $put($1.txtentry, 0, $geti($1.newtext, $1.i, 1)); //#5614 + $put($1.txt, $1.i + 1, $1.txtentry); //#5615 + } //#5615 + $put($1.args, "txt", $1.txt); //#5617 + } //#5617 + $put($1.args, "opt", $1.options); //#5619 + $k[$j++] = $1.args; //#5622 + if (!$1.dontdraw) { //#5622 + $0.renlinear(); //#5622 + } //#5622 }; $0.code32 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.textxoffset = 0; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - if ($1.barcode.length != 8 && $1.barcode.length != 9) { - $k[$j++] = "bwipp.code32badLength"; - $k[$j++] = "Italian Pharmacode must be 8 or 9 digits"; - $0.raiseerror(); - } - $forall($1.barcode, function() { - var _C = $k[--$j]; - if (_C < 48 || _C > 57) { - $k[$j++] = "bwipp.code32badCharacter"; - $k[$j++] = "Italian Pharmacode must contain only digits"; - $0.raiseerror(); - } - }); - $1.checksum = 0; - for (var _D = 0; _D <= 7; _D += 1) { - $1.i = _D; - $k[$j++] = $f($get($1.barcode, $1.i) - 48); - if ($1.i % 2 != 0) { - var _I = $k[--$j]; - $k[$j++] = _I * 2; - } - var _J = $k[--$j]; - $k[$j++] = _J; - if (_J > 9) { - var _K = $k[--$j]; - $k[$j++] = $f(_K - 9); - } - $1.checksum = $f($k[--$j] + $1.checksum); - } - $1.checksum = $1.checksum % 10; - if ($1.barcode.length == 9) { - if ($get($1.barcode, 8) != $f($1.checksum + 48)) { - $k[$j++] = "bwipp.code32badCheckDigit"; - $k[$j++] = "Incorrect Italian Pharmacode check digit provided"; - $0.raiseerror(); - } - } - var _S = $s(10); - $puti(_S, 0, $1.barcode); - $put(_S, 8, $f($1.checksum + 48)); - $1.text = _S; - $1.val = $cvrs($s(6), ~~$z($1.text), 32); - $1.barcode = $s(6); - for (var _Z = 0; _Z <= 5; _Z += 1) { - $put($1.barcode, _Z, 48); - } - $puti($1.barcode, 6 - $1.val.length, $1.val); - for (var _e = 0; _e <= 5; _e += 1) { - var _g = $get($1.barcode, _e); - $k[$j++] = _e; - $k[$j++] = _g; - $k[$j++] = _g; - for (var _h = 0, _i = "AEIO".length; _h < _i; _h++) { - if ($k[--$j] >= $get("AEIO", _h)) { - var _l = $k[--$j]; - $k[$j++] = $f(_l + 1); - } - var _m = $k[--$j]; - $k[$j++] = _m; - $k[$j++] = _m; - } - $j--; - var _o = $k[--$j]; - $put($1.barcode, $k[--$j], _o); - } - $puti($1.text, 1, $geti($1.text, 0, 9)); - $put($1.text, 0, 65); - $put($1.options, "dontdraw", true); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.code39(); - var _x = $k[--$j]; - $1[$k[--$j]] = _x; - $put($1.args, "txt", $a([ $a([ $1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ]) ])); - $put($1.args, "textxalign", "center"); - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#5652 + $1.options = $k[--$j]; //#5654 + $1.barcode = $k[--$j]; //#5655 + $1.dontdraw = false; //#5657 + $1.includetext = false; //#5658 + $1.textfont = "OCR-B"; //#5659 + $1.textsize = 10; //#5660 + $1.textyoffset = -8; //#5661 + $1.textxoffset = 0; //#5662 + $1.height = 1; //#5663 + $forall($1.options, function() { //#5674 + var _3 = $k[--$j]; //#5674 + $1[$k[--$j]] = _3; //#5674 + }); //#5674 + $1.textfont = "" + $1.textfont; //#5676 + $1.textsize = +$1.textsize; //#5677 + $1.textyoffset = +$1.textyoffset; //#5678 + $1.height = +$1.height; //#5679 + if (($1.barcode.length != 8) && ($1.barcode.length != 9)) { //#5684 + $k[$j++] = 'bwipp.code32badLength'; //#5683 + $k[$j++] = "Italian Pharmacode must be 8 or 9 digits"; //#5683 + $0.raiseerror(); //#5683 + } //#5683 + $forall($1.barcode, function() { //#5689 + var _C = $k[--$j]; //#5686 + if ((_C < 48) || (_C > 57)) { //#5688 + $k[$j++] = 'bwipp.code32badCharacter'; //#5687 + $k[$j++] = "Italian Pharmacode must contain only digits"; //#5687 + $0.raiseerror(); //#5687 + } //#5687 + }); //#5687 + $1.checksum = 0; //#5692 + for (var _D = 0; _D <= 7; _D += 1) { //#5697 + $1.i = _D; //#5694 + $k[$j++] = $f($get($1.barcode, $1.i) - 48); //#5695 + if (($1.i % 2) != 0) { //#5695 + var _I = $k[--$j]; //#5695 + $k[$j++] = _I * 2; //#5695 + } //#5695 + var _J = $k[--$j]; //#5695 + $k[$j++] = _J; //#5695 + if (_J > 9) { //#5695 + var _K = $k[--$j]; //#5695 + $k[$j++] = $f(_K - 9); //#5695 + } //#5695 + $1.checksum = $f($k[--$j] + $1.checksum); //#5696 + } //#5696 + $1.checksum = $1.checksum % 10; //#5698 + if ($1.barcode.length == 9) { //#5703 + if ($get($1.barcode, 8) != $f($1.checksum + 48)) { //#5702 + $k[$j++] = 'bwipp.code32badCheckDigit'; //#5701 + $k[$j++] = "Incorrect Italian Pharmacode check digit provided"; //#5701 + $0.raiseerror(); //#5701 + } //#5701 + } //#5701 + var _S = $s(10); //#5704 + $puti(_S, 0, $1.barcode); //#5705 + $put(_S, 8, $f($1.checksum + 48)); //#5706 + $1.text = _S; //#5707 + $1.val = $cvrs($s(6), ~~$z($1.text), 32); //#5710 + $1.barcode = $s(6); //#5711 + for (var _Z = 0; _Z <= 5; _Z += 1) { //#5712 + $put($1.barcode, _Z, 48); //#5712 + } //#5712 + $puti($1.barcode, 6 - $1.val.length, $1.val); //#5713 + for (var _e = 0; _e <= 5; _e += 1) { //#5720 + var _g = $get($1.barcode, _e); //#5717 + $k[$j++] = _e; //#5718 + $k[$j++] = _g; //#5718 + $k[$j++] = _g; //#5718 + for (var _h = 0, _i = "AEIO".length; _h < _i; _h++) { //#5718 + if ($k[--$j] >= $get("AEIO", _h)) { //#5718 + var _l = $k[--$j]; //#5718 + $k[$j++] = $f(_l + 1); //#5718 + } //#5718 + var _m = $k[--$j]; //#5718 + $k[$j++] = _m; //#5718 + $k[$j++] = _m; //#5718 + } //#5718 + $j--; //#5718 + var _o = $k[--$j]; //#5719 + $put($1.barcode, $k[--$j], _o); //#5719 + } //#5719 + $puti($1.text, 1, $geti($1.text, 0, 9)); //#5723 + $put($1.text, 0, 65); //#5724 + $put($1.options, "dontdraw", true); //#5727 + $k[$j++] = 'args'; //#5728 + $k[$j++] = $1.barcode; //#5728 + $k[$j++] = $1.options; //#5728 + $0.code39(); //#5728 + var _x = $k[--$j]; //#5728 + $1[$k[--$j]] = _x; //#5728 + $put($1.args, "txt", $a([$a([$1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])])); //#5730 + $put($1.args, "textxalign", "center"); //#5731 + $put($1.args, "opt", $1.options); //#5732 + $k[$j++] = $1.args; //#5735 + if (!$1.dontdraw) { //#5735 + $0.renlinear(); //#5735 + } //#5735 }; $0.pzn = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.textxoffset = 0; - $1.height = 1; - $1.pzn8 = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.textxoffset = +$1.textxoffset; - $1.height = +$1.height; - if ($1.pzn8) { - if ($1.barcode.length != 7 && $1.barcode.length != 8) { - $k[$j++] = "bwipp.pzn8badLength"; - $k[$j++] = "PZN8 must be 7 or 8 digits"; - $0.raiseerror(); - } - } else { - if ($1.barcode.length != 6 && $1.barcode.length != 7) { - $k[$j++] = "bwipp.pzn7badLength"; - $k[$j++] = "PZN7 must be 6 or 7 digits"; - $0.raiseerror(); - } - } - $forall($1.barcode, function() { - var _G = $k[--$j]; - if (_G < 48 || _G > 57) { - $k[$j++] = "bwipp.pznBadCharacter"; - $k[$j++] = "PZN must contain only digits"; - $0.raiseerror(); - } - }); - var _I = $1.pzn8 ? 9 : 8; - $1.msglen = _I; - $1.checksum = 0; - for (var _L = 0, _K = $1.msglen - 3; _L <= _K; _L += 1) { - $1.i = _L; - var _R = $1.pzn8 ? 1 : 2; - $1.checksum = $f($f($get($1.barcode, $1.i) - 48) * ($1.i + _R) + $1.checksum); - } - $1.checksum = $1.checksum % 11; - if ($1.checksum == 10) { - $k[$j++] = "bwipp.pznBadInputSequence"; - $k[$j++] = "Incorrect PZN input sequence provided"; - $0.raiseerror(); - } - if ($1.barcode.length == $1.msglen - 1) { - if ($get($1.barcode, $1.msglen - 2) != $f($1.checksum + 48)) { - $k[$j++] = "bwipp.pznBadCheckDigit"; - $k[$j++] = "Incorrect PZN check digit provided"; - $0.raiseerror(); - } - } - var _c = $s($1.msglen); - $put(_c, 0, 45); - $puti(_c, 1, $1.barcode); - $put(_c, $1.msglen - 1, $f($1.checksum + 48)); - $1.msg = _c; - $put($1.options, "dontdraw", true); - $k[$j++] = "args"; - $k[$j++] = $1.msg; - $k[$j++] = $1.options; - $0.code39(); - var _j = $k[--$j]; - $1[$k[--$j]] = _j; - $1.text = $s($1.msglen + 5); - $puti($1.text, 0, "PZN - "); - $puti($1.text, 6, $geti($1.msg, 1, $1.msglen - 1)); - $put($1.args, "txt", $a([ $a([ $1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ]) ])); - $put($1.args, "textxalign", "center"); - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#5765 + $1.options = $k[--$j]; //#5767 + $1.barcode = $k[--$j]; //#5768 + $1.dontdraw = false; //#5770 + $1.includetext = false; //#5771 + $1.textfont = "OCR-B"; //#5772 + $1.textsize = 10; //#5773 + $1.textyoffset = -8; //#5774 + $1.textxoffset = 0; //#5775 + $1.height = 1; //#5776 + $1.pzn8 = false; //#5777 + $forall($1.options, function() { //#5788 + var _3 = $k[--$j]; //#5788 + $1[$k[--$j]] = _3; //#5788 + }); //#5788 + $1.textfont = "" + $1.textfont; //#5790 + $1.textsize = +$1.textsize; //#5791 + $1.textyoffset = +$1.textyoffset; //#5792 + $1.textxoffset = +$1.textxoffset; //#5793 + $1.height = +$1.height; //#5794 + if ($1.pzn8) { //#5803 + if (($1.barcode.length != 7) && ($1.barcode.length != 8)) { //#5800 + $k[$j++] = 'bwipp.pzn8badLength'; //#5799 + $k[$j++] = "PZN8 must be 7 or 8 digits"; //#5799 + $0.raiseerror(); //#5799 + } //#5799 + } else { //#5803 + if (($1.barcode.length != 6) && ($1.barcode.length != 7)) { //#5804 + $k[$j++] = 'bwipp.pzn7badLength'; //#5803 + $k[$j++] = "PZN7 must be 6 or 7 digits"; //#5803 + $0.raiseerror(); //#5803 + } //#5803 + } //#5803 + $forall($1.barcode, function() { //#5810 + var _G = $k[--$j]; //#5807 + if ((_G < 48) || (_G > 57)) { //#5809 + $k[$j++] = 'bwipp.pznBadCharacter'; //#5808 + $k[$j++] = "PZN must contain only digits"; //#5808 + $0.raiseerror(); //#5808 + } //#5808 + }); //#5808 + var _I = $1.pzn8 ? 9 : 8; //#5813 + $1.msglen = _I; //#5813 + $1.checksum = 0; //#5814 + for (var _L = 0, _K = $1.msglen - 3; _L <= _K; _L += 1) { //#5819 + $1.i = _L; //#5816 + var _R = $1.pzn8 ? 1 : 2; //#5817 + $1.checksum = $f(($f($get($1.barcode, $1.i) - 48) * ($1.i + _R)) + $1.checksum); //#5818 + } //#5818 + $1.checksum = $1.checksum % 11; //#5820 + if ($1.checksum == 10) { //#5823 + $k[$j++] = 'bwipp.pznBadInputSequence'; //#5822 + $k[$j++] = "Incorrect PZN input sequence provided"; //#5822 + $0.raiseerror(); //#5822 + } //#5822 + if ($1.barcode.length == ($1.msglen - 1)) { //#5828 + if ($get($1.barcode, $1.msglen - 2) != $f($1.checksum + 48)) { //#5827 + $k[$j++] = 'bwipp.pznBadCheckDigit'; //#5826 + $k[$j++] = "Incorrect PZN check digit provided"; //#5826 + $0.raiseerror(); //#5826 + } //#5826 + } //#5826 + var _c = $s($1.msglen); //#5829 + $put(_c, 0, 45); //#5830 + $puti(_c, 1, $1.barcode); //#5831 + $put(_c, $1.msglen - 1, $f($1.checksum + 48)); //#5832 + $1.msg = _c; //#5833 + $put($1.options, "dontdraw", true); //#5836 + $k[$j++] = 'args'; //#5837 + $k[$j++] = $1.msg; //#5837 + $k[$j++] = $1.options; //#5837 + $0.code39(); //#5837 + var _j = $k[--$j]; //#5837 + $1[$k[--$j]] = _j; //#5837 + $1.text = $s($1.msglen + 5); //#5840 + $puti($1.text, 0, "PZN - "); //#5841 + $puti($1.text, 6, $geti($1.msg, 1, $1.msglen - 1)); //#5842 + $put($1.args, "txt", $a([$a([$1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])])); //#5844 + $put($1.args, "textxalign", "center"); //#5845 + $put($1.args, "opt", $1.options); //#5846 + $k[$j++] = $1.args; //#5849 + if (!$1.dontdraw) { //#5849 + $0.renlinear(); //#5849 + } //#5849 }; $0.code93 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includecheck = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = 1; - $1.parse = false; - $1.parsefnc = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.encs = $a([ "131112", "111213", "111312", "111411", "121113", "121212", "121311", "111114", "131211", "141111", "211113", "211212", "211311", "221112", "221211", "231111", "112113", "112212", "112311", "122112", "132111", "111123", "111222", "111321", "121122", "131121", "212112", "212211", "211122", "211221", "221121", "222111", "112122", "112221", "122121", "123111", "121131", "311112", "311211", "321111", "112131", "113121", "211131", "121221", "312111", "311121", "122211", "111141", "1111411" ]); - $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; - $1.sft1 = -1; - $1.sft2 = -2; - $1.sft3 = -3; - $1.sft4 = -4; - var _G = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "SFT$", $1.sft1 ], [ "SFT%", $1.sft2 ], [ "SFT/", $1.sft3 ], [ "SFT+", $1.sft4 ] ]); - $1.fncvals = _G; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _J = $k[--$j]; - $1[$k[--$j]] = _J; - $1.msglen = $1.msg.length; - if ($1.includecheck) { - $1.sbs = $s($1.msglen * 6 + 25); - } else { - $1.sbs = $s($1.msglen * 6 + 13); - } - $1.txt = $a($1.msglen); - $puti($1.sbs, 0, $get($1.encs, 47)); - $1.checksum1 = 0; - $1.checksum2 = 0; - for (var _Y = 0, _X = $1.msglen - 1; _Y <= _X; _Y += 1) { - $1.i = _Y; - var _b = $get($1.msg, $1.i); - $k[$j++] = _b; - if (_b < 0) { - $1.indx = $f(42 - $k[--$j]); - $1.char = " "; - } else { - var _d = $s(1); - $put(_d, 0, $k[--$j]); - $1.char = _d; - $search($1.barchars, $1.char); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - } - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $1.i * 6 + 6, $1.enc); - $put($1.txt, $1.i, $a([ $1.char, $1.i * 9 + 9, $1.textyoffset, $1.textfont, $1.textsize ])); - $1.checksum1 = $1.checksum1 + (($1.msglen - $1.i - 1) % 20 + 1) * $1.indx; - $1.checksum2 = $1.checksum2 + (($1.msglen - $1.i) % 15 + 1) * $1.indx; - } - if ($1.includecheck) { - $1.checksum1 = $1.checksum1 % 47; - $1.checksum2 = ($1.checksum2 + $1.checksum1) % 47; - $puti($1.sbs, $1.msglen * 6 + 6, $get($1.encs, $1.checksum1)); - $puti($1.sbs, $1.msglen * 6 + 12, $get($1.encs, $1.checksum2)); - $puti($1.sbs, $1.msglen * 6 + 18, $get($1.encs, 48)); - } else { - $puti($1.sbs, $1.msglen * 6 + 6, $get($1.encs, 48)); - } - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _1Q = $1.sbs; - for (var _1R = 0, _1S = _1Q.length; _1R < _1S; _1R++) { - $k[$j++] = $get(_1Q, _1R) - 48; - } - var _1U = $a(); - $k[$j++] = Infinity; - for (var _1W = 0, _1X = ~~(($1.sbs.length + 1) / 2); _1W < _1X; _1W++) { - $k[$j++] = $1.height; - } - var _1Z = $a(); - $k[$j++] = Infinity; - for (var _1b = 0, _1c = ~~(($1.sbs.length + 1) / 2); _1b < _1c; _1b++) { - $k[$j++] = 0; - } - var _1d = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _1U; - $k[$j++] = "bhs"; - $k[$j++] = _1Z; - $k[$j++] = "bbs"; - $k[$j++] = _1d; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _1h = $d(); - $k[$j++] = _1h; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#5879 + $1.options = $k[--$j]; //#5881 + $1.barcode = $k[--$j]; //#5882 + $1.dontdraw = false; //#5884 + $1.includecheck = false; //#5885 + $1.includetext = false; //#5886 + $1.textfont = "OCR-B"; //#5887 + $1.textsize = 10; //#5888 + $1.textyoffset = -8; //#5889 + $1.height = 1; //#5890 + $1.parse = false; //#5891 + $1.parsefnc = false; //#5892 + $forall($1.options, function() { //#5903 + var _3 = $k[--$j]; //#5903 + $1[$k[--$j]] = _3; //#5903 + }); //#5903 + $1.textfont = "" + $1.textfont; //#5905 + $1.textsize = +$1.textsize; //#5906 + $1.textyoffset = +$1.textyoffset; //#5907 + $1.height = +$1.height; //#5908 + $1.encs = $a(["131112", "111213", "111312", "111411", "121113", "121212", "121311", "111114", "131211", "141111", "211113", "211212", "211311", "221112", "221211", "231111", "112113", "112212", "112311", "122112", "132111", "111123", "111222", "111321", "121122", "131121", "212112", "212211", "211122", "211221", "221121", "222111", "112122", "112221", "122121", "123111", "121131", "311112", "311211", "321111", "112131", "113121", "211131", "121221", "312111", "311121", "122211", "111141", "1111411"]); //#5921 + $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#5924 + $1.sft1 = -1; //#5927 + $1.sft2 = -2; //#5927 + $1.sft3 = -3; //#5927 + $1.sft4 = -4; //#5927 + var _G = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["SFT$", $1.sft1], + ["SFT%", $1.sft2], + ["SFT/", $1.sft3], + ["SFT+", $1.sft4] + ]); //#5934 + $1.fncvals = _G; //#5935 + $k[$j++] = 'msg'; //#5936 + $k[$j++] = $1.barcode; //#5936 + $k[$j++] = $1.fncvals; //#5936 + $0.parseinput(); //#5936 + var _J = $k[--$j]; //#5936 + $1[$k[--$j]] = _J; //#5936 + $1.msglen = $1.msg.length; //#5937 + if ($1.includecheck) { //#5942 + $1.sbs = $s(($1.msglen * 6) + 25); //#5940 + } else { //#5942 + $1.sbs = $s(($1.msglen * 6) + 13); //#5942 + } //#5942 + $1.txt = $a($1.msglen); //#5944 + $puti($1.sbs, 0, $get($1.encs, 47)); //#5947 + $1.checksum1 = 0; //#5949 + $1.checksum2 = 0; //#5949 + for (var _Y = 0, _X = $1.msglen - 1; _Y <= _X; _Y += 1) { //#5968 + $1.i = _Y; //#5951 + var _b = $get($1.msg, $1.i); //#5953 + $k[$j++] = _b; //#5962 + if (_b < 0) { //#5961 + $1.indx = $f(42 - $k[--$j]); //#5954 + $1.char = " "; //#5955 + } else { //#5961 + var _d = $s(1); //#5957 + $put(_d, 0, $k[--$j]); //#5957 + $1.char = _d; //#5957 + $search($1.barchars, $1.char); //#5958 + $j--; //#5959 + $1.indx = $k[--$j].length; //#5960 + $j -= 2; //#5961 + } //#5961 + $1.enc = $get($1.encs, $1.indx); //#5963 + $puti($1.sbs, ($1.i * 6) + 6, $1.enc); //#5964 + $put($1.txt, $1.i, $a([$1.char, ($1.i * 9) + 9, $1.textyoffset, $1.textfont, $1.textsize])); //#5965 + $1.checksum1 = $1.checksum1 + ((((($1.msglen - $1.i) - 1) % 20) + 1) * $1.indx); //#5966 + $1.checksum2 = $1.checksum2 + (((($1.msglen - $1.i) % 15) + 1) * $1.indx); //#5967 + } //#5967 + if ($1.includecheck) { //#5980 + $1.checksum1 = $1.checksum1 % 47; //#5972 + $1.checksum2 = ($1.checksum2 + $1.checksum1) % 47; //#5973 + $puti($1.sbs, ($1.msglen * 6) + 6, $get($1.encs, $1.checksum1)); //#5974 + $puti($1.sbs, ($1.msglen * 6) + 12, $get($1.encs, $1.checksum2)); //#5975 + $puti($1.sbs, ($1.msglen * 6) + 18, $get($1.encs, 48)); //#5977 + } else { //#5980 + $puti($1.sbs, ($1.msglen * 6) + 6, $get($1.encs, 48)); //#5980 + } //#5980 + $k[$j++] = Infinity; //#5992 + $k[$j++] = Infinity; //#5986 + var _1Q = $1.sbs; //#5986 + for (var _1R = 0, _1S = _1Q.length; _1R < _1S; _1R++) { //#5986 + $k[$j++] = $get(_1Q, _1R) - 48; //#5986 + } //#5986 + var _1U = $a(); //#5986 + $k[$j++] = Infinity; //#5987 + for (var _1W = 0, _1X = ~~(($1.sbs.length + 1) / 2); _1W < _1X; _1W++) { //#5987 + $k[$j++] = $1.height; //#5987 + } //#5987 + var _1Z = $a(); //#5987 + $k[$j++] = Infinity; //#5988 + for (var _1b = 0, _1c = ~~(($1.sbs.length + 1) / 2); _1b < _1c; _1b++) { //#5988 + $k[$j++] = 0; //#5988 + } //#5988 + var _1d = $a(); //#5988 + $k[$j++] = 'ren'; //#5991 + $k[$j++] = $0.renlinear; //#5991 + $k[$j++] = 'sbs'; //#5991 + $k[$j++] = _1U; //#5991 + $k[$j++] = 'bhs'; //#5991 + $k[$j++] = _1Z; //#5991 + $k[$j++] = 'bbs'; //#5991 + $k[$j++] = _1d; //#5991 + if ($1.includetext) { //#5991 + $k[$j++] = 'txt'; //#5990 + $k[$j++] = $1.txt; //#5990 + } //#5990 + $k[$j++] = 'opt'; //#5992 + $k[$j++] = $1.options; //#5992 + var _1h = $d(); //#5992 + $k[$j++] = _1h; //#5995 + if (!$1.dontdraw) { //#5995 + $0.renlinear(); //#5995 + } //#5995 }; $0.code93ext = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.parse = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - var _6 = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _6; - $k[$j++] = "barcode"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _9 = $k[--$j]; - $1[$k[--$j]] = _9; - $1.barlen = $1.barcode.length; - delete $1.options["parse"]; - $1.extencs = $a([ "^SFT%U", "^SFT$A", "^SFT$B", "^SFT$C", "^SFT$D", "^SFT$E", "^SFT$F", "^SFT$G", "^SFT$H", "^SFT$I", "^SFT$J", "^SFT$K", "^SFT$L", "^SFT$M", "^SFT$N", "^SFT$O", "^SFT$P", "^SFT$Q", "^SFT$R", "^SFT$S", "^SFT$T", "^SFT$U", "^SFT$V", "^SFT$W", "^SFT$X", "^SFT$Y", "^SFT$Z", "^SFT%A", "^SFT%B", "^SFT%C", "^SFT%D", "^SFT%E", " ", "^SFT/A", "^SFT/B", "^SFT/C", "^SFT/D", "^SFT/E", "^SFT/F", "^SFT/G", "^SFT/H", "^SFT/I", "^SFT/J", "^SFT/K", "^SFT/L", "-", ".", "^SFT/O", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "^SFT/Z", "^SFT%F", "^SFT%G", "^SFT%H", "^SFT%I", "^SFT%J", "^SFT%V", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "^SFT%K", "^SFT%L", "^SFT%M", "^SFT%N", "^SFT%O", "^SFT%W", "^SFT+A", "^SFT+B", "^SFT+C", "^SFT+D", "^SFT+E", "^SFT+F", "^SFT+G", "^SFT+H", "^SFT+I", "^SFT+J", "^SFT+K", "^SFT+L", "^SFT+M", "^SFT+N", "^SFT+O", "^SFT+P", "^SFT+Q", "^SFT+R", "^SFT+S", "^SFT+T", "^SFT+U", "^SFT+V", "^SFT+W", "^SFT+X", "^SFT+Y", "^SFT+Z", "^SFT%P", "^SFT%Q", "^SFT%R", "^SFT%S", "^SFT%T" ]); - $1.newcode = $s($1.barlen * 6); - $1.newtext = $s($1.barlen * 6); - $1.j = 0; - $1.k = 0; - for (var _K = 0, _J = $1.barlen - 1; _K <= _J; _K += 1) { - $1.i = _K; - $1.extchar = $get($1.extencs, $get($1.barcode, $1.i)); - $1.extlen = $1.extchar.length; - $puti($1.newcode, $1.j, $1.extchar); - $put($1.newtext, $1.k, $get($1.barcode, $1.i)); - if ($1.extlen != 1) { - $puti($1.newtext, $1.k + 1, " "); - } - $1.j = $1.j + $1.extlen; - var _g = $1.extlen == 1 ? 1 : 2; - $1.k = $1.k + _g; - } - $1.newcode = $geti($1.newcode, 0, $1.j); - $1.newtext = $geti($1.newtext, 0, $1.k); - $put($1.options, "dontdraw", true); - $put($1.options, "parsefnc", true); - $k[$j++] = "args"; - $k[$j++] = $1.newcode; - $k[$j++] = $1.options; - $0.code93(); - var _r = $k[--$j]; - $1[$k[--$j]] = _r; - if ($1.includetext) { - $1.txt = $get($1.args, "txt"); - for (var _y = 0, _x = $1.newtext.length - 1; _y <= _x; _y += 1) { - $1.i = _y; - $1.txtentry = $get($1.txt, $1.i); - $put($1.txtentry, 0, $geti($1.newtext, $1.i, 1)); - $put($1.txt, $1.i, $1.txtentry); - } - $put($1.args, "txt", $1.txt); - } - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#6026 + $1.options = $k[--$j]; //#6028 + $1.barcode = $k[--$j]; //#6029 + $1.dontdraw = false; //#6031 + $1.includetext = false; //#6032 + $1.parse = false; //#6033 + $forall($1.options, function() { //#6044 + var _3 = $k[--$j]; //#6044 + $1[$k[--$j]] = _3; //#6044 + }); //#6044 + var _6 = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#6050 + $1.fncvals = _6; //#6051 + $k[$j++] = 'barcode'; //#6052 + $k[$j++] = $1.barcode; //#6052 + $k[$j++] = $1.fncvals; //#6052 + $0.parseinput(); //#6052 + var _9 = $k[--$j]; //#6052 + $1[$k[--$j]] = _9; //#6052 + $1.barlen = $1.barcode.length; //#6053 + delete $1.options["parse"]; //#6054 + $1.extencs = $a(["^SFT%U", "^SFT$A", "^SFT$B", "^SFT$C", "^SFT$D", "^SFT$E", "^SFT$F", "^SFT$G", "^SFT$H", "^SFT$I", "^SFT$J", "^SFT$K", "^SFT$L", "^SFT$M", "^SFT$N", "^SFT$O", "^SFT$P", "^SFT$Q", "^SFT$R", "^SFT$S", "^SFT$T", "^SFT$U", "^SFT$V", "^SFT$W", "^SFT$X", "^SFT$Y", "^SFT$Z", "^SFT%A", "^SFT%B", "^SFT%C", "^SFT%D", "^SFT%E", " ", "^SFT/A", "^SFT/B", "^SFT/C", "^SFT/D", "^SFT/E", "^SFT/F", "^SFT/G", "^SFT/H", "^SFT/I", "^SFT/J", "^SFT/K", "^SFT/L", "-", ".", "^SFT/O", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "^SFT/Z", "^SFT%F", "^SFT%G", "^SFT%H", "^SFT%I", "^SFT%J", "^SFT%V", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "^SFT%K", "^SFT%L", "^SFT%M", "^SFT%N", "^SFT%O", "^SFT%W", "^SFT+A", "^SFT+B", "^SFT+C", "^SFT+D", "^SFT+E", "^SFT+F", "^SFT+G", "^SFT+H", "^SFT+I", "^SFT+J", "^SFT+K", "^SFT+L", "^SFT+M", "^SFT+N", "^SFT+O", "^SFT+P", "^SFT+Q", "^SFT+R", "^SFT+S", "^SFT+T", "^SFT+U", "^SFT+V", "^SFT+W", "^SFT+X", "^SFT+Y", "^SFT+Z", "^SFT%P", "^SFT%Q", "^SFT%R", "^SFT%S", "^SFT%T"]); //#6074 + $1.newcode = $s($1.barlen * 6); //#6076 + $1.newtext = $s($1.barlen * 6); //#6077 + $1.j = 0; //#6078 + $1.k = 0; //#6078 + for (var _K = 0, _J = $1.barlen - 1; _K <= _J; _K += 1) { //#6088 + $1.i = _K; //#6080 + $1.extchar = $get($1.extencs, $get($1.barcode, $1.i)); //#6081 + $1.extlen = $1.extchar.length; //#6082 + $puti($1.newcode, $1.j, $1.extchar); //#6083 + $put($1.newtext, $1.k, $get($1.barcode, $1.i)); //#6084 + if ($1.extlen != 1) { //#6085 + $puti($1.newtext, $1.k + 1, " "); //#6085 + } //#6085 + $1.j = $1.j + $1.extlen; //#6086 + var _g = ($1.extlen == 1) ? 1 : 2; //#6087 + $1.k = $1.k + _g; //#6087 + } //#6087 + $1.newcode = $geti($1.newcode, 0, $1.j); //#6089 + $1.newtext = $geti($1.newtext, 0, $1.k); //#6090 + $put($1.options, "dontdraw", true); //#6093 + $put($1.options, "parsefnc", true); //#6094 + $k[$j++] = 'args'; //#6095 + $k[$j++] = $1.newcode; //#6095 + $k[$j++] = $1.options; //#6095 + $0.code93(); //#6095 + var _r = $k[--$j]; //#6095 + $1[$k[--$j]] = _r; //#6095 + if ($1.includetext) { //#6107 + $1.txt = $get($1.args, "txt"); //#6099 + for (var _y = 0, _x = $1.newtext.length - 1; _y <= _x; _y += 1) { //#6105 + $1.i = _y; //#6101 + $1.txtentry = $get($1.txt, $1.i); //#6102 + $put($1.txtentry, 0, $geti($1.newtext, $1.i, 1)); //#6103 + $put($1.txt, $1.i, $1.txtentry); //#6104 + } //#6104 + $put($1.args, "txt", $1.txt); //#6106 + } //#6106 + $put($1.args, "opt", $1.options); //#6108 + $k[$j++] = $1.args; //#6111 + if (!$1.dontdraw) { //#6111 + $0.renlinear(); //#6111 + } //#6111 }; $0.interleaved2of5 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includecheck = false; - $1.includetext = false; - $1.includecheckintext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $forall($1.barcode, function() { - var _A = $k[--$j]; - if (_A < 48 || _A > 57) { - $k[$j++] = "bwipp.interleaved2of5badCharacter"; - $k[$j++] = "Interleaved 2 of 5 must contain only digits"; - $0.raiseerror(); - } - }); - $1.barlen = $1.barcode.length; - if ($1.barlen % 2 == 0 && $1.includecheck || $1.barlen % 2 != 0 && !$1.includecheck) { - $1.pad = $s($1.barlen + 1); - $put($1.pad, 0, 48); - $puti($1.pad, 1, $1.barcode); - $1.barcode = $1.pad; - $1.barlen = $1.barlen + 1; - } - if ($1.includecheck) { - $1.checksum = 0; - for (var _Q = 0, _P = $1.barlen - 1; _Q <= _P; _Q += 1) { - $1.i = _Q; - if ($1.i % 2 == 0) { - $1.checksum = $1.checksum + ($get($1.barcode, $1.i) - 48) * 3; - } else { - $1.checksum = $1.checksum + ($get($1.barcode, $1.i) - 48); - } - } - $1.checksum = (10 - $1.checksum % 10) % 10; - $1.pad = $s($1.barlen + 1); - $puti($1.pad, 0, $1.barcode); - $put($1.pad, $1.barlen, $1.checksum + 48); - $1.barcode = $1.pad; - $1.barlen = $1.barlen + 1; - } - $1.encs = $a([ "11221", "21112", "12112", "22111", "11212", "21211", "12211", "11122", "21121", "12121", "1111", "2111" ]); - $1.barchars = "0123456789"; - $1.sbs = $s($1.barlen * 5 + 8); - $1.txt = $a($1.barlen); - $puti($1.sbs, 0, $get($1.encs, 10)); - for (var _u = 0, _t = $1.barlen - 1; _u <= _t; _u += 2) { - $1.i = _u; - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enca = $get($1.encs, $1.indx); - $search($1.barchars, $geti($1.barcode, $1.i + 1, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.encb = $get($1.encs, $1.indx); - $1.intl = $s($1.enca.length * 2); - for (var _1F = 0, _1E = $1.enca.length - 1; _1F <= _1E; _1F += 1) { - $1.j = _1F; - $1.achar = $get($1.enca, $1.j); - $1.bchar = $get($1.encb, $1.j); - $put($1.intl, $1.j * 2, $1.achar); - $put($1.intl, $1.j * 2 + 1, $1.bchar); - } - $puti($1.sbs, $1.i * 5 + 4, $1.intl); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $1.i * 9 + 4, $1.textyoffset, $1.textfont, $1.textsize ])); - if ($1.includecheck && !$1.includecheckintext && $1.barlen - 2 == $1.i) { - $put($1.txt, $1.i + 1, $a([ " ", ($1.i + 1) * 9 + 4, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $1.i + 1, $a([ $geti($1.barcode, $1.i + 1, 1), ($1.i + 1) * 9 + 4, $1.textyoffset, $1.textfont, $1.textsize ])); - } - } - $puti($1.sbs, $1.barlen * 5 + 4, $get($1.encs, 11)); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _24 = $1.sbs; - for (var _25 = 0, _26 = _24.length; _25 < _26; _25++) { - $k[$j++] = $get(_24, _25) - 48; - } - var _28 = $a(); - $k[$j++] = Infinity; - for (var _2A = 0, _2B = ~~(($1.sbs.length + 1) / 2); _2A < _2B; _2A++) { - $k[$j++] = $1.height; - } - var _2D = $a(); - $k[$j++] = Infinity; - for (var _2F = 0, _2G = ~~(($1.sbs.length + 1) / 2); _2F < _2G; _2F++) { - $k[$j++] = 0; - } - var _2H = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _28; - $k[$j++] = "bhs"; - $k[$j++] = _2D; - $k[$j++] = "bbs"; - $k[$j++] = _2H; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "barratio"; - $k[$j++] = 2; - $k[$j++] = "spaceratio"; - $k[$j++] = 2; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _2L = $d(); - $k[$j++] = _2L; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#6140 + $1.options = $k[--$j]; //#6142 + $1.barcode = $k[--$j]; //#6143 + $1.dontdraw = false; //#6145 + $1.includecheck = false; //#6146 + $1.includetext = false; //#6147 + $1.includecheckintext = false; //#6148 + $1.textfont = "OCR-B"; //#6149 + $1.textsize = 10; //#6150 + $1.textyoffset = -8; //#6151 + $1.height = 1; //#6152 + $forall($1.options, function() { //#6163 + var _3 = $k[--$j]; //#6163 + $1[$k[--$j]] = _3; //#6163 + }); //#6163 + $1.textfont = "" + $1.textfont; //#6165 + $1.textsize = +$1.textsize; //#6166 + $1.textyoffset = +$1.textyoffset; //#6167 + $1.height = +$1.height; //#6168 + $forall($1.barcode, function() { //#6175 + var _A = $k[--$j]; //#6172 + if ((_A < 48) || (_A > 57)) { //#6174 + $k[$j++] = 'bwipp.interleaved2of5badCharacter'; //#6173 + $k[$j++] = "Interleaved 2 of 5 must contain only digits"; //#6173 + $0.raiseerror(); //#6173 + } //#6173 + }); //#6173 + $1.barlen = $1.barcode.length; //#6177 + if (((($1.barlen % 2) == 0) && $1.includecheck) || ((($1.barlen % 2) != 0) && (!$1.includecheck))) { //#6188 + $1.pad = $s($1.barlen + 1); //#6183 + $put($1.pad, 0, 48); //#6184 + $puti($1.pad, 1, $1.barcode); //#6185 + $1.barcode = $1.pad; //#6186 + $1.barlen = $1.barlen + 1; //#6187 + } //#6187 + if ($1.includecheck) { //#6207 + $1.checksum = 0; //#6192 + for (var _Q = 0, _P = $1.barlen - 1; _Q <= _P; _Q += 1) { //#6200 + $1.i = _Q; //#6194 + if (($1.i % 2) == 0) { //#6198 + $1.checksum = $1.checksum + (($get($1.barcode, $1.i) - 48) * 3); //#6196 + } else { //#6198 + $1.checksum = $1.checksum + ($get($1.barcode, $1.i) - 48); //#6198 + } //#6198 + } //#6198 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#6201 + $1.pad = $s($1.barlen + 1); //#6202 + $puti($1.pad, 0, $1.barcode); //#6203 + $put($1.pad, $1.barlen, $1.checksum + 48); //#6204 + $1.barcode = $1.pad; //#6205 + $1.barlen = $1.barlen + 1; //#6206 + } //#6206 + $1.encs = $a(["11221", "21112", "12112", "22111", "11212", "21211", "12211", "11122", "21121", "12121", "1111", "2111"]); //#6214 + $1.barchars = "0123456789"; //#6217 + $1.sbs = $s(($1.barlen * 5) + 8); //#6218 + $1.txt = $a($1.barlen); //#6219 + $puti($1.sbs, 0, $get($1.encs, 10)); //#6222 + for (var _u = 0, _t = $1.barlen - 1; _u <= _t; _u += 2) { //#6256 + $1.i = _u; //#6225 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#6227 + $j--; //#6228 + $1.indx = $k[--$j].length; //#6229 + $j -= 2; //#6230 + $1.enca = $get($1.encs, $1.indx); //#6231 + $search($1.barchars, $geti($1.barcode, $1.i + 1, 1)); //#6233 + $j--; //#6234 + $1.indx = $k[--$j].length; //#6235 + $j -= 2; //#6236 + $1.encb = $get($1.encs, $1.indx); //#6237 + $1.intl = $s($1.enca.length * 2); //#6240 + for (var _1F = 0, _1E = $1.enca.length - 1; _1F <= _1E; _1F += 1) { //#6247 + $1.j = _1F; //#6242 + $1.achar = $get($1.enca, $1.j); //#6243 + $1.bchar = $get($1.encb, $1.j); //#6244 + $put($1.intl, $1.j * 2, $1.achar); //#6245 + $put($1.intl, ($1.j * 2) + 1, $1.bchar); //#6246 + } //#6246 + $puti($1.sbs, ($1.i * 5) + 4, $1.intl); //#6249 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), ($1.i * 9) + 4, $1.textyoffset, $1.textfont, $1.textsize])); //#6250 + if (($1.includecheck && (!$1.includecheckintext)) && (($1.barlen - 2) == $1.i)) { //#6254 + $put($1.txt, $1.i + 1, $a([" ", (($1.i + 1) * 9) + 4, $1.textyoffset, $1.textfont, $1.textsize])); //#6252 + } else { //#6254 + $put($1.txt, $1.i + 1, $a([$geti($1.barcode, $1.i + 1, 1), (($1.i + 1) * 9) + 4, $1.textyoffset, $1.textfont, $1.textsize])); //#6254 + } //#6254 + } //#6254 + $puti($1.sbs, ($1.barlen * 5) + 4, $get($1.encs, 11)); //#6259 + $k[$j++] = Infinity; //#6272 + $k[$j++] = Infinity; //#6264 + var _24 = $1.sbs; //#6264 + for (var _25 = 0, _26 = _24.length; _25 < _26; _25++) { //#6264 + $k[$j++] = $get(_24, _25) - 48; //#6264 + } //#6264 + var _28 = $a(); //#6264 + $k[$j++] = Infinity; //#6265 + for (var _2A = 0, _2B = ~~(($1.sbs.length + 1) / 2); _2A < _2B; _2A++) { //#6265 + $k[$j++] = $1.height; //#6265 + } //#6265 + var _2D = $a(); //#6265 + $k[$j++] = Infinity; //#6266 + for (var _2F = 0, _2G = ~~(($1.sbs.length + 1) / 2); _2F < _2G; _2F++) { //#6266 + $k[$j++] = 0; //#6266 + } //#6266 + var _2H = $a(); //#6266 + $k[$j++] = 'ren'; //#6269 + $k[$j++] = $0.renlinear; //#6269 + $k[$j++] = 'sbs'; //#6269 + $k[$j++] = _28; //#6269 + $k[$j++] = 'bhs'; //#6269 + $k[$j++] = _2D; //#6269 + $k[$j++] = 'bbs'; //#6269 + $k[$j++] = _2H; //#6269 + if ($1.includetext) { //#6269 + $k[$j++] = 'txt'; //#6268 + $k[$j++] = $1.txt; //#6268 + } //#6268 + $k[$j++] = 'barratio'; //#6272 + $k[$j++] = 2; //#6272 + $k[$j++] = 'spaceratio'; //#6272 + $k[$j++] = 2; //#6272 + $k[$j++] = 'opt'; //#6272 + $k[$j++] = $1.options; //#6272 + var _2L = $d(); //#6272 + $k[$j++] = _2L; //#6275 + if (!$1.dontdraw) { //#6275 + $0.renlinear(); //#6275 + } //#6275 }; $0.itf14 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.includecheckintext = true; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = 3; - $1.height = .5; - $1.showborder = true; - $1.borderwidth = 4; - $1.borderleft = 15; - $1.borderright = 15; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.borderwidth = +$1.borderwidth; - $1.borderleft = +$1.borderleft; - $1.borderright = +$1.borderright; - $1.text = $1.barcode; - var _E = $1.barcode; - $k[$j++] = $s(_E.length); - $k[$j++] = 0; - $forall(_E, function() { - var _G = $k[--$j]; - $k[$j++] = _G; - if (_G != 32) { - var _H = $k[--$j]; - var _I = $k[--$j]; - var _J = $k[--$j]; - $put(_J, _I, _H); - $k[$j++] = _J; - $k[$j++] = $f(_I + 1); - } else { - $j--; - } - }); - var _K = $k[--$j]; - $1.barcode = $geti($k[--$j], 0, _K); - $1.hasspace = $1.text.length != $1.barcode.length; - if ($1.barcode.length != 13 && $1.barcode.length != 14) { - $k[$j++] = "bwipp.itf14badLength"; - $k[$j++] = "ITF-14 must be 13 or 14 digits"; - $0.raiseerror(); - } - var _R = $1.barcode; - for (var _S = 0, _T = _R.length; _S < _T; _S++) { - var _U = $get(_R, _S); - if (_U < 48 || _U > 57) { - $k[$j++] = "bwipp.itf14badCharacter"; - $k[$j++] = "ITF-14 must contain only digits"; - $0.raiseerror(); - } - } - $1.checksum = 0; - for (var _V = 0; _V <= 12; _V += 1) { - $1.i = _V; - $k[$j++] = "checksum"; - $k[$j++] = $1.checksum; - $k[$j++] = $f($get($1.barcode, $1.i) - 48); - if ($1.i % 2 == 0) { - var _b = $k[--$j]; - $k[$j++] = _b * 3; - } - var _c = $k[--$j]; - var _d = $k[--$j]; - $1[$k[--$j]] = $f(_d + _c); - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 14) { - if ($get($1.barcode, 13) != $1.checksum + 48) { - $k[$j++] = "bwipp.itf14badCheckDigit"; - $k[$j++] = "Incorrect ITF-14 check digit provided"; - $0.raiseerror(); - } - } else { - var _k = $s(14); - $puti(_k, 0, $1.barcode); - $put(_k, 13, $1.checksum + 48); - $1.barcode = _k; - var _p = $1.hasspace ? 2 : 1; - var _q = $s($1.text.length + _p); - $puti(_q, _q.length - 2, " "); - $put(_q, _q.length - 1, $1.checksum + 48); - $puti(_q, 0, $1.text); - $1.text = _q; - } - $put($1.options, "dontdraw", true); - $put($1.options, "showborder", $1.showborder); - $put($1.options, "borderwidth", $1.borderwidth); - $put($1.options, "borderleft", $1.borderleft); - $put($1.options, "borderright", $1.borderright); - $put($1.options, "height", $1.height); - $put($1.options, "textyoffset", $1.textyoffset); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.interleaved2of5(); - var _18 = $k[--$j]; - $1[$k[--$j]] = _18; - $put($1.args, "txt", $a([ $a([ $1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ]) ])); - $put($1.args, "textxalign", "center"); - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#6305 + $1.options = $k[--$j]; //#6307 + $1.barcode = $k[--$j]; //#6308 + $1.dontdraw = false; //#6310 + $1.includetext = false; //#6311 + $1.includecheckintext = true; //#6312 + $1.textfont = "OCR-B"; //#6313 + $1.textsize = 10; //#6314 + $1.textxoffset = 0; //#6315 + $1.textyoffset = 3; //#6316 + $1.height = 0.5; //#6317 + $1.showborder = true; //#6318 + $1.borderwidth = 4; //#6319 + $1.borderleft = 15; //#6320 + $1.borderright = 15; //#6321 + $forall($1.options, function() { //#6332 + var _3 = $k[--$j]; //#6332 + $1[$k[--$j]] = _3; //#6332 + }); //#6332 + $1.textfont = "" + $1.textfont; //#6334 + $1.textsize = +$1.textsize; //#6335 + $1.textxoffset = +$1.textxoffset; //#6336 + $1.textyoffset = +$1.textyoffset; //#6337 + $1.height = +$1.height; //#6338 + $1.borderwidth = +$1.borderwidth; //#6339 + $1.borderleft = +$1.borderleft; //#6340 + $1.borderright = +$1.borderright; //#6341 + $1.text = $1.barcode; //#6344 + var _E = $1.barcode; //#6345 + $k[$j++] = $s(_E.length); //#6346 + $k[$j++] = 0; //#6346 + $forall(_E, function() { //#6346 + var _G = $k[--$j]; //#6346 + $k[$j++] = _G; //#6346 + if (_G != 32) { //#6346 + var _H = $k[--$j]; //#6346 + var _I = $k[--$j]; //#6346 + var _J = $k[--$j]; //#6346 + $put(_J, _I, _H); //#6346 + $k[$j++] = _J; //#6346 + $k[$j++] = $f(_I + 1); //#6346 + } else { //#6346 + $j--; //#6346 + } //#6346 + }); //#6346 + var _K = $k[--$j]; //#6347 + $1.barcode = $geti($k[--$j], 0, _K); //#6347 + $1.hasspace = $1.text.length != $1.barcode.length; //#6348 + if (($1.barcode.length != 13) && ($1.barcode.length != 14)) { //#6353 + $k[$j++] = 'bwipp.itf14badLength'; //#6352 + $k[$j++] = "ITF-14 must be 13 or 14 digits"; //#6352 + $0.raiseerror(); //#6352 + } //#6352 + var _R = $1.barcode; //#6354 + for (var _S = 0, _T = _R.length; _S < _T; _S++) { //#6358 + var _U = $get(_R, _S); //#6358 + if ((_U < 48) || (_U > 57)) { //#6357 + $k[$j++] = 'bwipp.itf14badCharacter'; //#6356 + $k[$j++] = "ITF-14 must contain only digits"; //#6356 + $0.raiseerror(); //#6356 + } //#6356 + } //#6356 + $1.checksum = 0; //#6361 + for (var _V = 0; _V <= 12; _V += 1) { //#6365 + $1.i = _V; //#6363 + $k[$j++] = 'checksum'; //#6364 + $k[$j++] = $1.checksum; //#6364 + $k[$j++] = $f($get($1.barcode, $1.i) - 48); //#6364 + if (($1.i % 2) == 0) { //#6364 + var _b = $k[--$j]; //#6364 + $k[$j++] = _b * 3; //#6364 + } //#6364 + var _c = $k[--$j]; //#6364 + var _d = $k[--$j]; //#6364 + $1[$k[--$j]] = $f(_d + _c); //#6364 + } //#6364 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#6366 + if ($1.barcode.length == 14) { //#6380 + if ($get($1.barcode, 13) != ($1.checksum + 48)) { //#6370 + $k[$j++] = 'bwipp.itf14badCheckDigit'; //#6369 + $k[$j++] = "Incorrect ITF-14 check digit provided"; //#6369 + $0.raiseerror(); //#6369 + } //#6369 + } else { //#6380 + var _k = $s(14); //#6372 + $puti(_k, 0, $1.barcode); //#6373 + $put(_k, 13, $1.checksum + 48); //#6374 + $1.barcode = _k; //#6375 + var _p = $1.hasspace ? 2 : 1; //#6376 + var _q = $s($1.text.length + _p); //#6376 + $puti(_q, _q.length - 2, " "); //#6377 + $put(_q, _q.length - 1, $1.checksum + 48); //#6378 + $puti(_q, 0, $1.text); //#6379 + $1.text = _q; //#6380 + } //#6380 + $put($1.options, "dontdraw", true); //#6384 + $put($1.options, "showborder", $1.showborder); //#6385 + $put($1.options, "borderwidth", $1.borderwidth); //#6386 + $put($1.options, "borderleft", $1.borderleft); //#6387 + $put($1.options, "borderright", $1.borderright); //#6388 + $put($1.options, "height", $1.height); //#6389 + $put($1.options, "textyoffset", $1.textyoffset); //#6390 + $k[$j++] = 'args'; //#6391 + $k[$j++] = $1.barcode; //#6391 + $k[$j++] = $1.options; //#6391 + $0.interleaved2of5(); //#6391 + var _18 = $k[--$j]; //#6391 + $1[$k[--$j]] = _18; //#6391 + $put($1.args, "txt", $a([$a([$1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])])); //#6393 + $put($1.args, "textxalign", "center"); //#6394 + $put($1.args, "opt", $1.options); //#6395 + $k[$j++] = $1.args; //#6398 + if (!$1.dontdraw) { //#6398 + $0.renlinear(); //#6398 + } //#6398 }; $0.identcode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - if ($1.barcode.length != 11 && $1.barcode.length != 12) { - $k[$j++] = "bwipp.identcodeBadLength"; - $k[$j++] = "Deutsche Post Identcode must be 11 or 12 digits"; - $0.raiseerror(); - } - $forall($1.barcode, function() { - var _D = $k[--$j]; - if (_D < 48 || _D > 57) { - $k[$j++] = "bwipp.identcodeBadCharacter"; - $k[$j++] = "Deutsche Post Identcode must contain only digits"; - $0.raiseerror(); - } - }); - $1.checksum = 0; - for (var _E = 0; _E <= 10; _E += 1) { - $1.i = _E; - $k[$j++] = "checksum"; - $k[$j++] = $1.checksum; - $k[$j++] = $f($get($1.barcode, $1.i) - 48); - if ($1.i % 2 == 0) { - var _K = $k[--$j]; - $k[$j++] = _K * 4; - } else { - var _L = $k[--$j]; - $k[$j++] = _L * 9; - } - var _M = $k[--$j]; - var _N = $k[--$j]; - $1[$k[--$j]] = $f(_N + _M); - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 12) { - if ($get($1.barcode, 11) != $1.checksum + 48) { - $k[$j++] = "bwipp.identcodeBadCheckDigit"; - $k[$j++] = "Incorrect Deutsche Post Identcode check digit provided"; - $0.raiseerror(); - } - } - var _U = $s(12); - $puti(_U, 0, $1.barcode); - $put(_U, 11, $1.checksum + 48); - $1.barcode = _U; - $1.text = $strcpy($s(16), " . . "); - $puti($1.text, 0, $geti($1.barcode, 0, 2)); - $puti($1.text, 3, $geti($1.barcode, 2, 3)); - $puti($1.text, 7, $geti($1.barcode, 5, 3)); - $puti($1.text, 11, $geti($1.barcode, 8, 3)); - $puti($1.text, 15, $geti($1.barcode, 11, 1)); - $put($1.options, "dontdraw", true); - $put($1.options, "includecheck", false); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.interleaved2of5(); - var _s = $k[--$j]; - $1[$k[--$j]] = _s; - $put($1.args, "txt", $a([ $a([ $1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ]) ])); - $put($1.args, "textxalign", "center"); - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#6428 + $1.options = $k[--$j]; //#6430 + $1.barcode = $k[--$j]; //#6431 + $1.dontdraw = false; //#6433 + $1.includetext = false; //#6434 + $1.textfont = "OCR-B"; //#6435 + $1.textsize = 10; //#6436 + $1.textxoffset = 0; //#6437 + $1.textyoffset = -8; //#6438 + $1.height = 1; //#6439 + $forall($1.options, function() { //#6450 + var _3 = $k[--$j]; //#6450 + $1[$k[--$j]] = _3; //#6450 + }); //#6450 + $1.textfont = "" + $1.textfont; //#6452 + $1.textsize = +$1.textsize; //#6453 + $1.textxoffset = +$1.textxoffset; //#6454 + $1.textyoffset = +$1.textyoffset; //#6455 + $1.height = +$1.height; //#6456 + if (($1.barcode.length != 11) && ($1.barcode.length != 12)) { //#6461 + $k[$j++] = 'bwipp.identcodeBadLength'; //#6460 + $k[$j++] = "Deutsche Post Identcode must be 11 or 12 digits"; //#6460 + $0.raiseerror(); //#6460 + } //#6460 + $forall($1.barcode, function() { //#6466 + var _D = $k[--$j]; //#6463 + if ((_D < 48) || (_D > 57)) { //#6465 + $k[$j++] = 'bwipp.identcodeBadCharacter'; //#6464 + $k[$j++] = "Deutsche Post Identcode must contain only digits"; //#6464 + $0.raiseerror(); //#6464 + } //#6464 + }); //#6464 + $1.checksum = 0; //#6469 + for (var _E = 0; _E <= 10; _E += 1) { //#6473 + $1.i = _E; //#6471 + $k[$j++] = 'checksum'; //#6472 + $k[$j++] = $1.checksum; //#6472 + $k[$j++] = $f($get($1.barcode, $1.i) - 48); //#6472 + if (($1.i % 2) == 0) { //#6472 + var _K = $k[--$j]; //#6472 + $k[$j++] = _K * 4; //#6472 + } else { //#6472 + var _L = $k[--$j]; //#6472 + $k[$j++] = _L * 9; //#6472 + } //#6472 + var _M = $k[--$j]; //#6472 + var _N = $k[--$j]; //#6472 + $1[$k[--$j]] = $f(_N + _M); //#6472 + } //#6472 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#6474 + if ($1.barcode.length == 12) { //#6479 + if ($get($1.barcode, 11) != ($1.checksum + 48)) { //#6478 + $k[$j++] = 'bwipp.identcodeBadCheckDigit'; //#6477 + $k[$j++] = "Incorrect Deutsche Post Identcode check digit provided"; //#6477 + $0.raiseerror(); //#6477 + } //#6477 + } //#6477 + var _U = $s(12); //#6480 + $puti(_U, 0, $1.barcode); //#6481 + $put(_U, 11, $1.checksum + 48); //#6482 + $1.barcode = _U; //#6483 + $1.text = $strcpy($s(16), " . . "); //#6486 + $puti($1.text, 0, $geti($1.barcode, 0, 2)); //#6487 + $puti($1.text, 3, $geti($1.barcode, 2, 3)); //#6488 + $puti($1.text, 7, $geti($1.barcode, 5, 3)); //#6489 + $puti($1.text, 11, $geti($1.barcode, 8, 3)); //#6490 + $puti($1.text, 15, $geti($1.barcode, 11, 1)); //#6491 + $put($1.options, "dontdraw", true); //#6494 + $put($1.options, "includecheck", false); //#6495 + $k[$j++] = 'args'; //#6496 + $k[$j++] = $1.barcode; //#6496 + $k[$j++] = $1.options; //#6496 + $0.interleaved2of5(); //#6496 + var _s = $k[--$j]; //#6496 + $1[$k[--$j]] = _s; //#6496 + $put($1.args, "txt", $a([$a([$1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])])); //#6498 + $put($1.args, "textxalign", "center"); //#6499 + $put($1.args, "opt", $1.options); //#6500 + $k[$j++] = $1.args; //#6503 + if (!$1.dontdraw) { //#6503 + $0.renlinear(); //#6503 + } //#6503 }; $0.leitcode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - if ($1.barcode.length != 13 && $1.barcode.length != 14) { - $k[$j++] = "bwipp.leitcodeBadLength"; - $k[$j++] = "Deutsche Post Leitcode must be 13 or 14 digits"; - $0.raiseerror(); - } - $forall($1.barcode, function() { - var _D = $k[--$j]; - if (_D < 48 || _D > 57) { - $k[$j++] = "bwipp.leitcodeBadCharacter"; - $k[$j++] = "Deutsche Post Leitcode must contain only digits"; - $0.raiseerror(); - } - }); - $1.checksum = 0; - for (var _E = 0; _E <= 12; _E += 1) { - $1.i = _E; - $k[$j++] = "checksum"; - $k[$j++] = $1.checksum; - $k[$j++] = $f($get($1.barcode, $1.i) - 48); - if ($1.i % 2 == 0) { - var _K = $k[--$j]; - $k[$j++] = _K * 4; - } else { - var _L = $k[--$j]; - $k[$j++] = _L * 9; - } - var _M = $k[--$j]; - var _N = $k[--$j]; - $1[$k[--$j]] = $f(_N + _M); - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 14) { - if ($get($1.barcode, 13) != $1.checksum + 48) { - $k[$j++] = "bwipp.leitcodeBadCheckDigit"; - $k[$j++] = "Incorrect Deutsche Post Leitcode check digit provided"; - $0.raiseerror(); - } - } - var _U = $s(14); - $puti(_U, 0, $1.barcode); - $put(_U, 13, $1.checksum + 48); - $1.barcode = _U; - $1.text = $strcpy($s(18), " . . . "); - $puti($1.text, 0, $geti($1.barcode, 0, 5)); - $puti($1.text, 6, $geti($1.barcode, 5, 3)); - $puti($1.text, 10, $geti($1.barcode, 8, 3)); - $puti($1.text, 14, $geti($1.barcode, 11, 2)); - $puti($1.text, 17, $geti($1.barcode, 13, 1)); - $put($1.options, "dontdraw", true); - $put($1.options, "includecheck", false); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.interleaved2of5(); - var _s = $k[--$j]; - $1[$k[--$j]] = _s; - $put($1.args, "txt", $a([ $a([ $1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ]) ])); - $put($1.args, "textxalign", "center"); - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#6533 + $1.options = $k[--$j]; //#6535 + $1.barcode = $k[--$j]; //#6536 + $1.dontdraw = false; //#6538 + $1.includetext = false; //#6539 + $1.textfont = "OCR-B"; //#6540 + $1.textsize = 10; //#6541 + $1.textxoffset = 0; //#6542 + $1.textyoffset = -8; //#6543 + $1.height = 1; //#6544 + $forall($1.options, function() { //#6555 + var _3 = $k[--$j]; //#6555 + $1[$k[--$j]] = _3; //#6555 + }); //#6555 + $1.textfont = "" + $1.textfont; //#6557 + $1.textsize = +$1.textsize; //#6558 + $1.textxoffset = +$1.textxoffset; //#6559 + $1.textyoffset = +$1.textyoffset; //#6560 + $1.height = +$1.height; //#6561 + if (($1.barcode.length != 13) && ($1.barcode.length != 14)) { //#6566 + $k[$j++] = 'bwipp.leitcodeBadLength'; //#6565 + $k[$j++] = "Deutsche Post Leitcode must be 13 or 14 digits"; //#6565 + $0.raiseerror(); //#6565 + } //#6565 + $forall($1.barcode, function() { //#6571 + var _D = $k[--$j]; //#6568 + if ((_D < 48) || (_D > 57)) { //#6570 + $k[$j++] = 'bwipp.leitcodeBadCharacter'; //#6569 + $k[$j++] = "Deutsche Post Leitcode must contain only digits"; //#6569 + $0.raiseerror(); //#6569 + } //#6569 + }); //#6569 + $1.checksum = 0; //#6574 + for (var _E = 0; _E <= 12; _E += 1) { //#6578 + $1.i = _E; //#6576 + $k[$j++] = 'checksum'; //#6577 + $k[$j++] = $1.checksum; //#6577 + $k[$j++] = $f($get($1.barcode, $1.i) - 48); //#6577 + if (($1.i % 2) == 0) { //#6577 + var _K = $k[--$j]; //#6577 + $k[$j++] = _K * 4; //#6577 + } else { //#6577 + var _L = $k[--$j]; //#6577 + $k[$j++] = _L * 9; //#6577 + } //#6577 + var _M = $k[--$j]; //#6577 + var _N = $k[--$j]; //#6577 + $1[$k[--$j]] = $f(_N + _M); //#6577 + } //#6577 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#6579 + if ($1.barcode.length == 14) { //#6584 + if ($get($1.barcode, 13) != ($1.checksum + 48)) { //#6583 + $k[$j++] = 'bwipp.leitcodeBadCheckDigit'; //#6582 + $k[$j++] = "Incorrect Deutsche Post Leitcode check digit provided"; //#6582 + $0.raiseerror(); //#6582 + } //#6582 + } //#6582 + var _U = $s(14); //#6585 + $puti(_U, 0, $1.barcode); //#6586 + $put(_U, 13, $1.checksum + 48); //#6587 + $1.barcode = _U; //#6588 + $1.text = $strcpy($s(18), " . . . "); //#6591 + $puti($1.text, 0, $geti($1.barcode, 0, 5)); //#6592 + $puti($1.text, 6, $geti($1.barcode, 5, 3)); //#6593 + $puti($1.text, 10, $geti($1.barcode, 8, 3)); //#6594 + $puti($1.text, 14, $geti($1.barcode, 11, 2)); //#6595 + $puti($1.text, 17, $geti($1.barcode, 13, 1)); //#6596 + $put($1.options, "dontdraw", true); //#6599 + $put($1.options, "includecheck", false); //#6600 + $k[$j++] = 'args'; //#6601 + $k[$j++] = $1.barcode; //#6601 + $k[$j++] = $1.options; //#6601 + $0.interleaved2of5(); //#6601 + var _s = $k[--$j]; //#6601 + $1[$k[--$j]] = _s; //#6601 + $put($1.args, "txt", $a([$a([$1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])])); //#6603 + $put($1.args, "textxalign", "center"); //#6604 + $put($1.args, "opt", $1.options); //#6605 + $k[$j++] = $1.args; //#6608 + if (!$1.dontdraw) { //#6608 + $0.renlinear(); //#6608 + } //#6608 }; $0.databaromni = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.height = 33 / 72; - $1.linkage = false; - $1.format = "omni"; - $1.barxmult = 33; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - if ($eq($1.format, "truncated")) { - $1.height = 13 / 72; - } - $1.height = +$1.height; - $1.barxmult = ~~$1.barxmult; - if ($ne($geti($1.barcode, 0, 4), "(01)")) { - $k[$j++] = "bwipp.databaromniBadAI"; - $k[$j++] = "GS1 DataBar Omnidirectional must begin with (01) application identifier"; - $0.raiseerror(); - } - if ($1.barcode.length != 17 && $1.barcode.length != 18) { - $k[$j++] = "bwipp.databaromniBadLength"; - $k[$j++] = "GS1 DataBar Omnidirectional must be 13 or 14 digits"; - $0.raiseerror(); - } - var _E = $geti($1.barcode, 4, $1.barcode.length - 4); - for (var _F = 0, _G = _E.length; _F < _G; _F++) { - var _H = $get(_E, _F); - if (_H < 48 || _H > 57) { - $k[$j++] = "bwipp.databaromniBadCharacter"; - $k[$j++] = "GS1 DataBar Omnidirectional must contain only digits"; - $0.raiseerror(); - } - } - $1.checksum = 0; - for (var _I = 0; _I <= 12; _I += 1) { - $1.i = _I; - $k[$j++] = "checksum"; - $k[$j++] = $1.checksum; - $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); - if ($1.i % 2 == 0) { - var _O = $k[--$j]; - $k[$j++] = _O * 3; - } - var _P = $k[--$j]; - var _Q = $k[--$j]; - $1[$k[--$j]] = $f(_Q + _P); - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 18) { - if ($get($1.barcode, 17) != $1.checksum + 48) { - $k[$j++] = "bwipp.databaromniBadCheckDigit"; - $k[$j++] = "Incorrect GS1 DataBar Omnidirectional check digit provided"; - $0.raiseerror(); - } - } - var _X = $s(18); - $puti(_X, 0, $1.barcode); - $put(_X, 17, $1.checksum + 48); - $1.barcode = _X; - $1.txt = $a($1.barcode.length); - for (var _e = 0, _d = $1.barcode.length - 1; _e <= _d; _e += 1) { - $1.i = _e; - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), 0, 0, "", 0 ])); - } + var $1 = {}; //#6638 + $1.options = $k[--$j]; //#6640 + $1.barcode = $k[--$j]; //#6641 + $1.dontdraw = false; //#6643 + $1.height = 33 / 72; //#6644 + $1.linkage = false; //#6645 + $1.format = "omni"; //#6646 + $1.barxmult = 33; //#6647 + $forall($1.options, function() { //#6658 + var _3 = $k[--$j]; //#6658 + $1[$k[--$j]] = _3; //#6658 + }); //#6658 + if ($eq($1.format, "truncated")) { //#6660 + $1.height = 13 / 72; //#6660 + } //#6660 + $1.height = +$1.height; //#6661 + $1.barxmult = ~~$1.barxmult; //#6662 + if ($ne($geti($1.barcode, 0, 4), "(01)")) { //#6667 + $k[$j++] = 'bwipp.databaromniBadAI'; //#6666 + $k[$j++] = "GS1 DataBar Omnidirectional must begin with (01) application identifier"; //#6666 + $0.raiseerror(); //#6666 + } //#6666 + if (($1.barcode.length != 17) && ($1.barcode.length != 18)) { //#6670 + $k[$j++] = 'bwipp.databaromniBadLength'; //#6669 + $k[$j++] = "GS1 DataBar Omnidirectional must be 13 or 14 digits"; //#6669 + $0.raiseerror(); //#6669 + } //#6669 + var _E = $geti($1.barcode, 4, $1.barcode.length - 4); //#6671 + for (var _F = 0, _G = _E.length; _F < _G; _F++) { //#6675 + var _H = $get(_E, _F); //#6675 + if ((_H < 48) || (_H > 57)) { //#6674 + $k[$j++] = 'bwipp.databaromniBadCharacter'; //#6673 + $k[$j++] = "GS1 DataBar Omnidirectional must contain only digits"; //#6673 + $0.raiseerror(); //#6673 + } //#6673 + } //#6673 + $1.checksum = 0; //#6678 + for (var _I = 0; _I <= 12; _I += 1) { //#6682 + $1.i = _I; //#6680 + $k[$j++] = 'checksum'; //#6681 + $k[$j++] = $1.checksum; //#6681 + $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); //#6681 + if (($1.i % 2) == 0) { //#6681 + var _O = $k[--$j]; //#6681 + $k[$j++] = _O * 3; //#6681 + } //#6681 + var _P = $k[--$j]; //#6681 + var _Q = $k[--$j]; //#6681 + $1[$k[--$j]] = $f(_Q + _P); //#6681 + } //#6681 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#6683 + if ($1.barcode.length == 18) { //#6688 + if ($get($1.barcode, 17) != ($1.checksum + 48)) { //#6687 + $k[$j++] = 'bwipp.databaromniBadCheckDigit'; //#6686 + $k[$j++] = "Incorrect GS1 DataBar Omnidirectional check digit provided"; //#6686 + $0.raiseerror(); //#6686 + } //#6686 + } //#6686 + var _X = $s(18); //#6689 + $puti(_X, 0, $1.barcode); //#6690 + $put(_X, 17, $1.checksum + 48); //#6691 + $1.barcode = _X; //#6692 + $1.txt = $a($1.barcode.length); //#6695 + for (var _e = 0, _d = $1.barcode.length - 1; _e <= _d; _e += 1) { //#6699 + $1.i = _e; //#6697 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), 0, 0, "", 0])); //#6698 + } //#6698 $1.ncr = function() { - var _l = $k[--$j]; - var _m = $k[--$j]; - var _n = $f(_m - _l); - if (_l < $f(_m - _l)) { - var _ = _n; - _n = _l; - _l = _; - } - $k[$j++] = _n; - $k[$j++] = 1; - $k[$j++] = 1; - for (var _p = _m, _o = $f(_l + 1); _p >= _o; _p -= 1) { - var _q = $k[--$j]; - var _r = $k[--$j]; - var _s = $k[--$j]; - $k[$j++] = _s; - $k[$j++] = _r; - $k[$j++] = _q * _p; - if ($le(_r, _s)) { - var _t = $k[--$j]; - var _u = $k[--$j]; - $k[$j++] = $f(_u + 1); - $k[$j++] = ~~(_t / _u); - } - } - for (;;) { - var _v = $k[--$j]; - var _w = $k[--$j]; - var _x = $k[--$j]; - $k[$j++] = _x; - $k[$j++] = _w; - $k[$j++] = _v; - if ($gt(_w, _x)) { - break; - } - var _y = $k[--$j]; - var _z = $k[--$j]; - $k[$j++] = $f(_z + 1); - $k[$j++] = ~~(_y / _z); - } - var _10 = $k[--$j]; - var _11 = $k[--$j]; - $k[$j++] = _10; - $k[$j++] = _11; - $j--; - var _12 = $k[--$j]; - var _13 = $k[--$j]; - $k[$j++] = _12; - $k[$j++] = _13; - $j--; - }; + var _l = $k[--$j]; //#6702 + var _m = $k[--$j]; //#6702 + var _n = $f(_m - _l); //#6702 + if (_l < $f(_m - _l)) { //#6702 + var _ = _n; //#6702 + _n = _l; //#6702 + _l = _; //#6702 + } //#6702 + $k[$j++] = _n; //#6709 + $k[$j++] = 1; //#6709 + $k[$j++] = 1; //#6709 + for (var _p = _m, _o = $f(_l + 1); _p >= _o; _p -= 1) { //#6709 + var _q = $k[--$j]; //#6705 + var _r = $k[--$j]; //#6706 + var _s = $k[--$j]; //#6706 + $k[$j++] = _s; //#6708 + $k[$j++] = _r; //#6708 + $k[$j++] = _q * _p; //#6708 + if ($le(_r, _s)) { //#6708 + var _t = $k[--$j]; //#6707 + var _u = $k[--$j]; //#6707 + $k[$j++] = $f(_u + 1); //#6707 + $k[$j++] = ~~(_t / _u); //#6707 + } //#6707 + } //#6707 + for (;;) { //#6713 + var _v = $k[--$j]; //#6711 + var _w = $k[--$j]; //#6711 + var _x = $k[--$j]; //#6711 + $k[$j++] = _x; //#6711 + $k[$j++] = _w; //#6711 + $k[$j++] = _v; //#6711 + if ($gt(_w, _x)) { //#6711 + break; //#6711 + } //#6711 + var _y = $k[--$j]; //#6712 + var _z = $k[--$j]; //#6712 + $k[$j++] = $f(_z + 1); //#6712 + $k[$j++] = ~~(_y / _z); //#6712 + } //#6712 + var _10 = $k[--$j]; //#6714 + var _11 = $k[--$j]; //#6714 + $k[$j++] = _10; //#6714 + $k[$j++] = _11; //#6714 + $j--; //#6714 + var _12 = $k[--$j]; //#6714 + var _13 = $k[--$j]; //#6714 + $k[$j++] = _12; //#6714 + $k[$j++] = _13; //#6714 + $j--; //#6714 + }; //#6715 $1.getRSSwidths = function() { - $1.oe = $k[--$j]; - $1.el = $k[--$j]; - $1.mw = $k[--$j]; - $1.nm = $k[--$j]; - $1.val = $k[--$j]; - $1.out = $a($1.el); - $1.mask = 0; - for (var _1D = 0, _1C = $f($1.el - 2); _1D <= _1C; _1D += 1) { - $1.bar = _1D; - $1.ew = 1; - var _1F = $1.bar; - $1.mask = $1.mask | (_1F < 0 ? 1 >>> -_1F : 1 << _1F); - for (;;) { - $k[$j++] = "sval"; - $k[$j++] = $f($f($1.nm - $1.ew) - 1); - $k[$j++] = $f($f($1.el - $1.bar) - 2); - $1.ncr(); - var _1K = $k[--$j]; - $1[$k[--$j]] = _1K; - if ($1.oe && $1.mask == 0 && $f($f($f($1.nm - $1.ew) - $1.el * 2) + $1.bar * 2) >= -2) { - $k[$j++] = "sval"; - $k[$j++] = $1.sval; - $k[$j++] = $f($f($f($1.nm - $1.ew) - $1.el) + $1.bar); - $k[$j++] = $f($f($1.el - $1.bar) - 2); - $1.ncr(); - var _1Z = $k[--$j]; - var _1a = $k[--$j]; - $1[$k[--$j]] = $f(_1a - _1Z); - } - if ($f($1.el - $1.bar) > 2) { - $1.lval = 0; - for (var _1k = $f($f($f($f($1.nm - $1.ew) - $1.el) + $1.bar) + 2), _1j = $f($1.mw + 1); _1k >= _1j; _1k -= 1) { - $k[$j++] = $f($f($f($1.nm - _1k) - $1.ew) - 1); - $k[$j++] = $f($f($1.el - $1.bar) - 3); - $1.ncr(); - $1.lval = $f($k[--$j] + $1.lval); - } - $1.sval = $f($1.sval - $1.lval * $f($f($1.el - $1.bar) - 1)); - } else { - if ($f($1.nm - $1.ew) > $1.mw) { - $1.sval = $f($1.sval - 1); - } - } - $1.val = $f($1.val - $1.sval); - if ($1.val < 0) { - break; - } - $1.ew = $1.ew + 1; - var _24 = $1.bar; - $1.mask = $1.mask & ~(_24 < 0 ? 1 >>> -_24 : 1 << _24); - } - $1.val = $f($1.val + $1.sval); - $1.nm = $f($1.nm - $1.ew); - $put($1.out, $1.bar, $1.ew); - } - $put($1.out, $f($1.el - 1), $1.nm); - $k[$j++] = $1.out; - }; - $k[$j++] = Infinity; - var _2H = $1.linkage ? 1 : 0; - var _2J = $geti($1.barcode, 4, 13); - $k[$j++] = _2H; - for (var _2K = 0, _2L = _2J.length; _2K < _2L; _2K++) { - $k[$j++] = $f($get(_2J, _2K) - 48); - } - $1.binval = $a(); - for (var _2O = 0; _2O <= 12; _2O += 1) { - $1.i = _2O; - var _2P = $1.binval; - var _2Q = $1.i; - $put(_2P, _2Q + 1, $f($get(_2P, _2Q + 1) + $get($1.binval, $1.i) % 4537077 * 10)); - $put($1.binval, $1.i, ~~($get($1.binval, $1.i) / 4537077)); - } - $1.right = $get($1.binval, 13) % 4537077; - var _2c = $1.binval; - $put(_2c, 13, ~~($get(_2c, 13) / 4537077)); - $1.left = 0; - $1.i = true; - for (var _2e = 0; _2e <= 13; _2e += 1) { - $1.j = _2e; - var _2h = $get($1.binval, $1.j); - $k[$j++] = _2h; - if (_2h == 0 && $1.i) { - $j--; - } else { - $1.i = false; - $1.left = $f($1.left + $k[--$j] * ~~Math.pow(10, 13 - $1.j)); - } - } - $1.d1 = ~~($1.left / 1597); - $1.d2 = $1.left % 1597; - $1.d3 = ~~($1.right / 1597); - $1.d4 = $1.right % 1597; - $1.tab164 = $a([ 160, 0, 12, 4, 8, 1, 161, 1, 960, 161, 10, 6, 6, 3, 80, 10, 2014, 961, 8, 8, 4, 5, 31, 34, 2714, 2015, 6, 10, 3, 6, 10, 70, 2840, 2715, 4, 12, 1, 8, 1, 126 ]); - $1.tab154 = $a([ 335, 0, 5, 10, 2, 7, 4, 84, 1035, 336, 7, 8, 4, 5, 20, 35, 1515, 1036, 9, 6, 6, 3, 48, 10, 1596, 1516, 11, 4, 8, 1, 81, 1 ]); - $1.i = 0; - for (;;) { - if ($1.d1 <= $get($1.tab164, $1.i)) { - var _2y = $geti($1.tab164, $1.i + 1, 7); - for (var _2z = 0, _30 = _2y.length; _2z < _30; _2z++) { - $k[$j++] = $get(_2y, _2z); - } - $1.d1te = $k[--$j]; - $1.d1to = $k[--$j]; - $1.d1mwe = $k[--$j]; - $1.d1mwo = $k[--$j]; - $1.d1ele = $k[--$j]; - $1.d1elo = $k[--$j]; - $1.d1gs = $k[--$j]; - break; - } - $1.i = $1.i + 8; - } - $1.i = 0; - for (;;) { - if ($1.d2 <= $get($1.tab154, $1.i)) { - var _3G = $geti($1.tab154, $1.i + 1, 7); - for (var _3H = 0, _3I = _3G.length; _3H < _3I; _3H++) { - $k[$j++] = $get(_3G, _3H); - } - $1.d2te = $k[--$j]; - $1.d2to = $k[--$j]; - $1.d2mwe = $k[--$j]; - $1.d2mwo = $k[--$j]; - $1.d2ele = $k[--$j]; - $1.d2elo = $k[--$j]; - $1.d2gs = $k[--$j]; - break; - } - $1.i = $1.i + 8; - } - $1.i = 0; - for (;;) { - if ($1.d3 <= $get($1.tab164, $1.i)) { - var _3Y = $geti($1.tab164, $1.i + 1, 7); - for (var _3Z = 0, _3a = _3Y.length; _3Z < _3a; _3Z++) { - $k[$j++] = $get(_3Y, _3Z); - } - $1.d3te = $k[--$j]; - $1.d3to = $k[--$j]; - $1.d3mwe = $k[--$j]; - $1.d3mwo = $k[--$j]; - $1.d3ele = $k[--$j]; - $1.d3elo = $k[--$j]; - $1.d3gs = $k[--$j]; - break; - } - $1.i = $1.i + 8; - } - $1.i = 0; - for (;;) { - if ($1.d4 <= $get($1.tab154, $1.i)) { - var _3q = $geti($1.tab154, $1.i + 1, 7); - for (var _3r = 0, _3s = _3q.length; _3r < _3s; _3r++) { - $k[$j++] = $get(_3q, _3r); - } - $1.d4te = $k[--$j]; - $1.d4to = $k[--$j]; - $1.d4mwe = $k[--$j]; - $1.d4mwo = $k[--$j]; - $1.d4ele = $k[--$j]; - $1.d4elo = $k[--$j]; - $1.d4gs = $k[--$j]; - break; - } - $1.i = $1.i + 8; - } - $k[$j++] = "d1wo"; - $k[$j++] = ~~($f($1.d1 - $1.d1gs) / $1.d1te); - $k[$j++] = $1.d1elo; - $k[$j++] = $1.d1mwo; - $k[$j++] = 4; - $k[$j++] = false; - $1.getRSSwidths(); - var _47 = $k[--$j]; - $1[$k[--$j]] = _47; - $k[$j++] = "d1we"; - $k[$j++] = $f($1.d1 - $1.d1gs) % $1.d1te; - $k[$j++] = $1.d1ele; - $k[$j++] = $1.d1mwe; - $k[$j++] = 4; - $k[$j++] = true; - $1.getRSSwidths(); - var _4E = $k[--$j]; - $1[$k[--$j]] = _4E; - $k[$j++] = "d2wo"; - $k[$j++] = $f($1.d2 - $1.d2gs) % $1.d2to; - $k[$j++] = $1.d2elo; - $k[$j++] = $1.d2mwo; - $k[$j++] = 4; - $k[$j++] = true; - $1.getRSSwidths(); - var _4L = $k[--$j]; - $1[$k[--$j]] = _4L; - $k[$j++] = "d2we"; - $k[$j++] = ~~($f($1.d2 - $1.d2gs) / $1.d2to); - $k[$j++] = $1.d2ele; - $k[$j++] = $1.d2mwe; - $k[$j++] = 4; - $k[$j++] = false; - $1.getRSSwidths(); - var _4S = $k[--$j]; - $1[$k[--$j]] = _4S; - $k[$j++] = "d3wo"; - $k[$j++] = ~~($f($1.d3 - $1.d3gs) / $1.d3te); - $k[$j++] = $1.d3elo; - $k[$j++] = $1.d3mwo; - $k[$j++] = 4; - $k[$j++] = false; - $1.getRSSwidths(); - var _4Z = $k[--$j]; - $1[$k[--$j]] = _4Z; - $k[$j++] = "d3we"; - $k[$j++] = $f($1.d3 - $1.d3gs) % $1.d3te; - $k[$j++] = $1.d3ele; - $k[$j++] = $1.d3mwe; - $k[$j++] = 4; - $k[$j++] = true; - $1.getRSSwidths(); - var _4g = $k[--$j]; - $1[$k[--$j]] = _4g; - $k[$j++] = "d4wo"; - $k[$j++] = $f($1.d4 - $1.d4gs) % $1.d4to; - $k[$j++] = $1.d4elo; - $k[$j++] = $1.d4mwo; - $k[$j++] = 4; - $k[$j++] = true; - $1.getRSSwidths(); - var _4n = $k[--$j]; - $1[$k[--$j]] = _4n; - $k[$j++] = "d4we"; - $k[$j++] = ~~($f($1.d4 - $1.d4gs) / $1.d4to); - $k[$j++] = $1.d4ele; - $k[$j++] = $1.d4mwe; - $k[$j++] = 4; - $k[$j++] = false; - $1.getRSSwidths(); - var _4u = $k[--$j]; - $1[$k[--$j]] = _4u; - $1.d1w = $a(8); - for (var _4x = 0; _4x <= 3; _4x += 1) { - $1.i = _4x; - $put($1.d1w, $1.i * 2, $get($1.d1wo, $1.i)); - $put($1.d1w, $1.i * 2 + 1, $get($1.d1we, $1.i)); - } - $1.d2w = $a(8); - for (var _59 = 0; _59 <= 3; _59 += 1) { - $1.i = _59; - $put($1.d2w, 7 - $1.i * 2, $get($1.d2wo, $1.i)); - $put($1.d2w, 6 - $1.i * 2, $get($1.d2we, $1.i)); - } - $1.d3w = $a(8); - for (var _5L = 0; _5L <= 3; _5L += 1) { - $1.i = _5L; - $put($1.d3w, 7 - $1.i * 2, $get($1.d3wo, $1.i)); - $put($1.d3w, 6 - $1.i * 2, $get($1.d3we, $1.i)); - } - $1.d4w = $a(8); - for (var _5X = 0; _5X <= 3; _5X += 1) { - $1.i = _5X; - $put($1.d4w, $1.i * 2, $get($1.d4wo, $1.i)); - $put($1.d4w, $1.i * 2 + 1, $get($1.d4we, $1.i)); - } - $k[$j++] = Infinity; - var _5i = $1.d1w; - for (var _5j = 0, _5k = _5i.length; _5j < _5k; _5j++) { - $k[$j++] = $get(_5i, _5j); - } - var _5m = $1.d2w; - for (var _5n = 0, _5o = _5m.length; _5n < _5o; _5n++) { - $k[$j++] = $get(_5m, _5n); - } - var _5q = $1.d3w; - for (var _5r = 0, _5s = _5q.length; _5r < _5s; _5r++) { - $k[$j++] = $get(_5q, _5r); - } - var _5u = $1.d4w; - for (var _5v = 0, _5w = _5u.length; _5v < _5w; _5v++) { - $k[$j++] = $get(_5u, _5v); - } - $1.widths = $a(); - $1.checkweights = $a([ 1, 3, 9, 27, 2, 6, 18, 54, 58, 72, 24, 8, 29, 36, 12, 4, 74, 51, 17, 32, 37, 65, 48, 16, 64, 34, 23, 69, 49, 68, 46, 59 ]); - $1.checkwidths = $a([ 3, 8, 2, 1, 1, 3, 5, 5, 1, 1, 3, 3, 7, 1, 1, 3, 1, 9, 1, 1, 2, 7, 4, 1, 1, 2, 5, 6, 1, 1, 2, 3, 8, 1, 1, 1, 5, 7, 1, 1, 1, 3, 9, 1, 1 ]); - $1.checksum = 0; - for (var _61 = 0; _61 <= 31; _61 += 1) { - $1.i = _61; - $1.checksum = $f($1.checksum + $get($1.widths, $1.i) * $get($1.checkweights, $1.i)); - } - $1.checksum = $1.checksum % 79; - if ($1.checksum >= 8) { - $1.checksum = $f($1.checksum + 1); - } - if ($1.checksum >= 72) { - $1.checksum = $f($1.checksum + 1); - } - $1.checklt = $geti($1.checkwidths, ~~($1.checksum / 9) * 5, 5); - $1.checkrtrev = $geti($1.checkwidths, $1.checksum % 9 * 5, 5); - $1.checkrt = $a(5); - for (var _6L = 0; _6L <= 4; _6L += 1) { - $1.i = _6L; - $put($1.checkrt, $1.i, $get($1.checkrtrev, 4 - $1.i)); - } - if ($eq($1.format, "omni") || $eq($1.format, "truncated")) { - $k[$j++] = Infinity; - var _6T = $1.d1w; - $k[$j++] = 1; - for (var _6U = 0, _6V = _6T.length; _6U < _6V; _6U++) { - $k[$j++] = $get(_6T, _6U); - } - var _6X = $1.checklt; - for (var _6Y = 0, _6Z = _6X.length; _6Y < _6Z; _6Y++) { - $k[$j++] = $get(_6X, _6Y); - } - var _6b = $1.d2w; - for (var _6c = 0, _6d = _6b.length; _6c < _6d; _6c++) { - $k[$j++] = $get(_6b, _6c); - } - var _6f = $1.d4w; - for (var _6g = 0, _6h = _6f.length; _6g < _6h; _6g++) { - $k[$j++] = $get(_6f, _6g); - } - var _6j = $1.checkrt; - for (var _6k = 0, _6l = _6j.length; _6k < _6l; _6k++) { - $k[$j++] = $get(_6j, _6k); - } - var _6n = $1.d3w; - for (var _6o = 0, _6p = _6n.length; _6o < _6p; _6o++) { - $k[$j++] = $get(_6n, _6o); - } - $k[$j++] = 1; - $k[$j++] = 1; - $1.sbs = $a(); - $k[$j++] = Infinity; - var _6s = $1.sbs; - $k[$j++] = Infinity; - for (var _6u = 0, _6v = ~~(($1.sbs.length + 1) / 2); _6u < _6v; _6u++) { - $k[$j++] = $1.height; - } - var _6x = $a(); - $k[$j++] = Infinity; - for (var _6z = 0, _70 = ~~(($1.sbs.length + 1) / 2); _6z < _70; _6z++) { - $k[$j++] = 0; - } - var _71 = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _6s; - $k[$j++] = "bhs"; - $k[$j++] = _6x; - $k[$j++] = "bbs"; - $k[$j++] = _71; - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - $k[$j++] = "textxalign"; - $k[$j++] = "center"; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _74 = $d(); - $k[$j++] = _74; - if (!$1.dontdraw) { - $0.renlinear(); - } - } else { - $k[$j++] = Infinity; - var _76 = $1.d1w; - $k[$j++] = 1; - $k[$j++] = 1; - for (var _77 = 0, _78 = _76.length; _77 < _78; _77++) { - $k[$j++] = $get(_76, _77); - } - var _7A = $1.checklt; - for (var _7B = 0, _7C = _7A.length; _7B < _7C; _7B++) { - $k[$j++] = $get(_7A, _7B); - } - var _7E = $1.d2w; - for (var _7F = 0, _7G = _7E.length; _7F < _7G; _7F++) { - $k[$j++] = $get(_7E, _7F); - } - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 0; - $1.top = $a(); - $k[$j++] = Infinity; - var _7J = $1.d4w; - $k[$j++] = 1; - $k[$j++] = 1; - for (var _7K = 0, _7L = _7J.length; _7K < _7L; _7K++) { - $k[$j++] = $get(_7J, _7K); - } - var _7N = $1.checkrt; - for (var _7O = 0, _7P = _7N.length; _7O < _7P; _7O++) { - $k[$j++] = $get(_7N, _7O); - } - var _7R = $1.d3w; - for (var _7S = 0, _7T = _7R.length; _7S < _7T; _7S++) { - $k[$j++] = $get(_7R, _7S); - } - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 0; - $1.bot = $a(); - for (var _7W = 0; _7W <= 24; _7W += 2) { - $1.i = _7W; - for (var _7a = 0, _7b = $get($1.top, $1.i); _7a < _7b; _7a++) { - $k[$j++] = 0; - } - for (var _7f = 0, _7g = $get($1.top, $1.i + 1); _7f < _7g; _7f++) { - $k[$j++] = 1; - } - } - $astore($a(50)); - $1.top = $k[--$j]; - for (var _7j = 0; _7j <= 24; _7j += 2) { - $1.i = _7j; - for (var _7n = 0, _7o = $get($1.bot, $1.i); _7n < _7o; _7n++) { - $k[$j++] = 1; - } - for (var _7s = 0, _7t = $get($1.bot, $1.i + 1); _7s < _7t; _7s++) { - $k[$j++] = 0; - } - } - $astore($a(50)); - $1.bot = $k[--$j]; - if ($eq($1.format, "stacked")) { - $1.sep = $a(50); - $put($1.sep, 0, 0); - for (var _7z = 1; _7z <= 49; _7z += 1) { - $1.i = _7z; - if ($eq($get($1.top, $1.i), $get($1.bot, $1.i))) { - $put($1.sep, $1.i, $f(1 - $get($1.top, $1.i))); - } else { - $put($1.sep, $1.i, $f(1 - $get($1.sep, $1.i - 1))); - } - } - $puti($1.sep, 0, $a([ 0, 0, 0, 0 ])); - $puti($1.sep, 46, $a([ 0, 0, 0, 0 ])); - $k[$j++] = Infinity; - for (var _8K = 0, _8L = 5; _8K < _8L; _8K++) { - $aload($1.top); - } - $aload($1.sep); - for (var _8O = 0, _8P = 7; _8O < _8P; _8O++) { - $aload($1.bot); - } - $1.pixs = $a(); - $1.pixy = ~~($1.pixs.length / 50); - } - if ($eq($1.format, "stackedomni")) { - $k[$j++] = Infinity; - $forall($1.top, function() { - var _8V = $k[--$j]; - $k[$j++] = $f(1 - _8V); - }); - $1.sep1 = $a(); - $puti($1.sep1, 0, $a([ 0, 0, 0, 0 ])); - $puti($1.sep1, 46, $a([ 0, 0, 0, 0 ])); - for (var _8b = 18; _8b <= 30; _8b += 1) { - $1.i = _8b; - if ($get($1.top, $1.i) == 0) { - if ($get($1.top, $1.i - 1) == 1) { - $k[$j++] = 1; - } else { - var _8l = $get($1.sep1, $1.i - 1) == 0 ? 1 : 0; - $k[$j++] = _8l; - } - } else { - $k[$j++] = 0; - } - $put($1.sep1, $1.i, $k[--$j]); - } - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - for (var _8p = 0, _8q = 21; _8p < _8q; _8p++) { - $k[$j++] = 0; - $k[$j++] = 1; - } - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $1.sep2 = $a(); - $k[$j++] = Infinity; - $forall($1.bot, function() { - var _8t = $k[--$j]; - $k[$j++] = $f(1 - _8t); - }); - $1.sep3 = $a(); - $puti($1.sep3, 0, $a([ 0, 0, 0, 0 ])); - $puti($1.sep3, 46, $a([ 0, 0, 0, 0 ])); - for (var _8z = 19; _8z <= 31; _8z += 1) { - $1.i = _8z; - if ($get($1.bot, $1.i) == 0) { - if ($get($1.bot, $1.i - 1) == 1) { - $k[$j++] = 1; - } else { - var _99 = $get($1.sep3, $1.i - 1) == 0 ? 1 : 0; - $k[$j++] = _99; - } - } else { - $k[$j++] = 0; - } - $put($1.sep3, $1.i, $k[--$j]); - } - $1.f3 = $a([ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1 ]); - $k[$j++] = true; - for (var _9E = 0; _9E <= 12; _9E += 1) { - var _9J = $k[--$j]; - $k[$j++] = _9J && $eq($get($1.bot, _9E + 19), $get($1.f3, _9E)); - } - if ($k[--$j]) { - $puti($1.sep3, 19, $a([ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ])); - } - $k[$j++] = Infinity; - for (var _9O = 0, _9P = $1.barxmult; _9O < _9P; _9O++) { - $aload($1.top); - } - $aload($1.sep1); - $aload($1.sep2); - $aload($1.sep3); - for (var _9V = 0, _9W = $1.barxmult; _9V < _9W; _9V++) { - $aload($1.bot); - } - $1.pixs = $a(); - $1.pixy = ~~($1.pixs.length / 50); - } - var _9e = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", 50 ], [ "pixy", $1.pixy ], [ "height", $1.pixy / 72 ], [ "width", 50 / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _9e; - if (!$1.dontdraw) { - $0.renmatrix(); - } - } + $1.oe = $k[--$j]; //#6718 + $1.el = $k[--$j]; //#6719 + $1.mw = $k[--$j]; //#6720 + $1.nm = $k[--$j]; //#6721 + $1.val = $k[--$j]; //#6722 + $1.out = $a($1.el); //#6723 + $1.mask = 0; //#6724 + for (var _1D = 0, _1C = $f($1.el - 2); _1D <= _1C; _1D += 1) { //#6751 + $1.bar = _1D; //#6726 + $1.ew = 1; //#6727 + var _1F = $1.bar; //#6728 + $1.mask = $1.mask | ((_1F < 0 ? 1 >>> -_1F : 1 << _1F)); //#6728 + for (;;) { //#6747 + $k[$j++] = 'sval'; //#6729 + $k[$j++] = $f($f($1.nm - $1.ew) - 1); //#6729 + $k[$j++] = $f($f($1.el - $1.bar) - 2); //#6729 + $1.ncr(); //#6729 + var _1K = $k[--$j]; //#6729 + $1[$k[--$j]] = _1K; //#6729 + if (($1.oe && ($1.mask == 0)) && (($f(($f($f($1.nm - $1.ew) - ($1.el * 2))) + ($1.bar * 2))) >= -2)) { //#6732 + $k[$j++] = 'sval'; //#6731 + $k[$j++] = $1.sval; //#6731 + $k[$j++] = $f(($f($f($1.nm - $1.ew) - $1.el)) + $1.bar); //#6731 + $k[$j++] = $f($f($1.el - $1.bar) - 2); //#6731 + $1.ncr(); //#6731 + var _1Z = $k[--$j]; //#6731 + var _1a = $k[--$j]; //#6731 + $1[$k[--$j]] = $f(_1a - _1Z); //#6731 + } //#6731 + if ($f($1.el - $1.bar) > 2) { //#6741 + $1.lval = 0; //#6734 + for (var _1k = $f(($f(($f($f($1.nm - $1.ew) - $1.el)) + $1.bar)) + 2), _1j = $f($1.mw + 1); _1k >= _1j; _1k -= 1) { //#6738 + $k[$j++] = $f(($f($f($1.nm - _1k) - $1.ew)) - 1); //#6736 + $k[$j++] = $f($f($1.el - $1.bar) - 3); //#6736 + $1.ncr(); //#6736 + $1.lval = $f($k[--$j] + $1.lval); //#6737 + } //#6737 + $1.sval = $f($1.sval - ($1.lval * ($f($f($1.el - $1.bar) - 1)))); //#6739 + } else { //#6741 + if ($f($1.nm - $1.ew) > $1.mw) { //#6741 + $1.sval = $f($1.sval - 1); //#6741 + } //#6741 + } //#6741 + $1.val = $f($1.val - $1.sval); //#6743 + if ($1.val < 0) { //#6744 + break; //#6744 + } //#6744 + $1.ew = $1.ew + 1; //#6745 + var _24 = $1.bar; //#6746 + $1.mask = $1.mask & (~((_24 < 0 ? 1 >>> -_24 : 1 << _24))); //#6746 + } //#6746 + $1.val = $f($1.val + $1.sval); //#6748 + $1.nm = $f($1.nm - $1.ew); //#6749 + $put($1.out, $1.bar, $1.ew); //#6750 + } //#6750 + $put($1.out, $f($1.el - 1), $1.nm); //#6752 + $k[$j++] = $1.out; //#6753 + }; //#6754 + $k[$j++] = Infinity; //#6758 + var _2H = $1.linkage ? 1 : 0; //#6757 + var _2J = $geti($1.barcode, 4, 13); //#6758 + $k[$j++] = _2H; //#6758 + for (var _2K = 0, _2L = _2J.length; _2K < _2L; _2K++) { //#6758 + $k[$j++] = $f($get(_2J, _2K) - 48); //#6758 + } //#6758 + $1.binval = $a(); //#6758 + for (var _2O = 0; _2O <= 12; _2O += 1) { //#6765 + $1.i = _2O; //#6762 + var _2P = $1.binval; //#6763 + var _2Q = $1.i; //#6763 + $put(_2P, _2Q + 1, $f($get(_2P, _2Q + 1) + (($get($1.binval, $1.i) % 4537077) * 10))); //#6763 + $put($1.binval, $1.i, ~~($get($1.binval, $1.i) / 4537077)); //#6764 + } //#6764 + $1.right = $get($1.binval, 13) % 4537077; //#6766 + var _2c = $1.binval; //#6767 + $put(_2c, 13, ~~($get(_2c, 13) / 4537077)); //#6767 + $1.left = 0; //#6769 + $1.i = true; //#6770 + for (var _2e = 0; _2e <= 13; _2e += 1) { //#6780 + $1.j = _2e; //#6772 + var _2h = $get($1.binval, $1.j); //#6773 + $k[$j++] = _2h; //#6779 + if ((_2h == 0) && $1.i) { //#6778 + $j--; //#6775 + } else { //#6778 + $1.i = false; //#6777 + $1.left = $f($1.left + ($k[--$j] * (~~Math.pow(10, 13 - $1.j)))); //#6778 + } //#6778 + } //#6778 + $1.d1 = ~~($1.left / 1597); //#6782 + $1.d2 = $1.left % 1597; //#6783 + $1.d3 = ~~($1.right / 1597); //#6784 + $1.d4 = $1.right % 1597; //#6785 + $1.tab164 = $a([160, 0, 12, 4, 8, 1, 161, 1, 960, 161, 10, 6, 6, 3, 80, 10, 2014, 961, 8, 8, 4, 5, 31, 34, 2714, 2015, 6, 10, 3, 6, 10, 70, 2840, 2715, 4, 12, 1, 8, 1, 126]); //#6793 + $1.tab154 = $a([335, 0, 5, 10, 2, 7, 4, 84, 1035, 336, 7, 8, 4, 5, 20, 35, 1515, 1036, 9, 6, 6, 3, 48, 10, 1596, 1516, 11, 4, 8, 1, 81, 1]); //#6800 + $1.i = 0; //#6802 + for (;;) { //#6812 + if ($1.d1 <= $get($1.tab164, $1.i)) { //#6810 + var _2y = $geti($1.tab164, $1.i + 1, 7); //#6804 + for (var _2z = 0, _30 = _2y.length; _2z < _30; _2z++) { //#6804 + $k[$j++] = $get(_2y, _2z); //#6804 + } //#6804 + $1.d1te = $k[--$j]; //#6805 + $1.d1to = $k[--$j]; //#6805 + $1.d1mwe = $k[--$j]; //#6806 + $1.d1mwo = $k[--$j]; //#6806 + $1.d1ele = $k[--$j]; //#6807 + $1.d1elo = $k[--$j]; //#6807 + $1.d1gs = $k[--$j]; //#6808 + break; //#6809 + } //#6809 + $1.i = $1.i + 8; //#6811 + } //#6811 + $1.i = 0; //#6814 + for (;;) { //#6824 + if ($1.d2 <= $get($1.tab154, $1.i)) { //#6822 + var _3G = $geti($1.tab154, $1.i + 1, 7); //#6816 + for (var _3H = 0, _3I = _3G.length; _3H < _3I; _3H++) { //#6816 + $k[$j++] = $get(_3G, _3H); //#6816 + } //#6816 + $1.d2te = $k[--$j]; //#6817 + $1.d2to = $k[--$j]; //#6817 + $1.d2mwe = $k[--$j]; //#6818 + $1.d2mwo = $k[--$j]; //#6818 + $1.d2ele = $k[--$j]; //#6819 + $1.d2elo = $k[--$j]; //#6819 + $1.d2gs = $k[--$j]; //#6820 + break; //#6821 + } //#6821 + $1.i = $1.i + 8; //#6823 + } //#6823 + $1.i = 0; //#6826 + for (;;) { //#6836 + if ($1.d3 <= $get($1.tab164, $1.i)) { //#6834 + var _3Y = $geti($1.tab164, $1.i + 1, 7); //#6828 + for (var _3Z = 0, _3a = _3Y.length; _3Z < _3a; _3Z++) { //#6828 + $k[$j++] = $get(_3Y, _3Z); //#6828 + } //#6828 + $1.d3te = $k[--$j]; //#6829 + $1.d3to = $k[--$j]; //#6829 + $1.d3mwe = $k[--$j]; //#6830 + $1.d3mwo = $k[--$j]; //#6830 + $1.d3ele = $k[--$j]; //#6831 + $1.d3elo = $k[--$j]; //#6831 + $1.d3gs = $k[--$j]; //#6832 + break; //#6833 + } //#6833 + $1.i = $1.i + 8; //#6835 + } //#6835 + $1.i = 0; //#6838 + for (;;) { //#6848 + if ($1.d4 <= $get($1.tab154, $1.i)) { //#6846 + var _3q = $geti($1.tab154, $1.i + 1, 7); //#6840 + for (var _3r = 0, _3s = _3q.length; _3r < _3s; _3r++) { //#6840 + $k[$j++] = $get(_3q, _3r); //#6840 + } //#6840 + $1.d4te = $k[--$j]; //#6841 + $1.d4to = $k[--$j]; //#6841 + $1.d4mwe = $k[--$j]; //#6842 + $1.d4mwo = $k[--$j]; //#6842 + $1.d4ele = $k[--$j]; //#6843 + $1.d4elo = $k[--$j]; //#6843 + $1.d4gs = $k[--$j]; //#6844 + break; //#6845 + } //#6845 + $1.i = $1.i + 8; //#6847 + } //#6847 + $k[$j++] = 'd1wo'; //#6850 + $k[$j++] = ~~($f($1.d1 - $1.d1gs) / $1.d1te); //#6850 + $k[$j++] = $1.d1elo; //#6850 + $k[$j++] = $1.d1mwo; //#6850 + $k[$j++] = 4; //#6850 + $k[$j++] = false; //#6850 + $1.getRSSwidths(); //#6850 + var _47 = $k[--$j]; //#6850 + $1[$k[--$j]] = _47; //#6850 + $k[$j++] = 'd1we'; //#6851 + $k[$j++] = $f($1.d1 - $1.d1gs) % $1.d1te; //#6851 + $k[$j++] = $1.d1ele; //#6851 + $k[$j++] = $1.d1mwe; //#6851 + $k[$j++] = 4; //#6851 + $k[$j++] = true; //#6851 + $1.getRSSwidths(); //#6851 + var _4E = $k[--$j]; //#6851 + $1[$k[--$j]] = _4E; //#6851 + $k[$j++] = 'd2wo'; //#6852 + $k[$j++] = $f($1.d2 - $1.d2gs) % $1.d2to; //#6852 + $k[$j++] = $1.d2elo; //#6852 + $k[$j++] = $1.d2mwo; //#6852 + $k[$j++] = 4; //#6852 + $k[$j++] = true; //#6852 + $1.getRSSwidths(); //#6852 + var _4L = $k[--$j]; //#6852 + $1[$k[--$j]] = _4L; //#6852 + $k[$j++] = 'd2we'; //#6853 + $k[$j++] = ~~($f($1.d2 - $1.d2gs) / $1.d2to); //#6853 + $k[$j++] = $1.d2ele; //#6853 + $k[$j++] = $1.d2mwe; //#6853 + $k[$j++] = 4; //#6853 + $k[$j++] = false; //#6853 + $1.getRSSwidths(); //#6853 + var _4S = $k[--$j]; //#6853 + $1[$k[--$j]] = _4S; //#6853 + $k[$j++] = 'd3wo'; //#6854 + $k[$j++] = ~~($f($1.d3 - $1.d3gs) / $1.d3te); //#6854 + $k[$j++] = $1.d3elo; //#6854 + $k[$j++] = $1.d3mwo; //#6854 + $k[$j++] = 4; //#6854 + $k[$j++] = false; //#6854 + $1.getRSSwidths(); //#6854 + var _4Z = $k[--$j]; //#6854 + $1[$k[--$j]] = _4Z; //#6854 + $k[$j++] = 'd3we'; //#6855 + $k[$j++] = $f($1.d3 - $1.d3gs) % $1.d3te; //#6855 + $k[$j++] = $1.d3ele; //#6855 + $k[$j++] = $1.d3mwe; //#6855 + $k[$j++] = 4; //#6855 + $k[$j++] = true; //#6855 + $1.getRSSwidths(); //#6855 + var _4g = $k[--$j]; //#6855 + $1[$k[--$j]] = _4g; //#6855 + $k[$j++] = 'd4wo'; //#6856 + $k[$j++] = $f($1.d4 - $1.d4gs) % $1.d4to; //#6856 + $k[$j++] = $1.d4elo; //#6856 + $k[$j++] = $1.d4mwo; //#6856 + $k[$j++] = 4; //#6856 + $k[$j++] = true; //#6856 + $1.getRSSwidths(); //#6856 + var _4n = $k[--$j]; //#6856 + $1[$k[--$j]] = _4n; //#6856 + $k[$j++] = 'd4we'; //#6857 + $k[$j++] = ~~($f($1.d4 - $1.d4gs) / $1.d4to); //#6857 + $k[$j++] = $1.d4ele; //#6857 + $k[$j++] = $1.d4mwe; //#6857 + $k[$j++] = 4; //#6857 + $k[$j++] = false; //#6857 + $1.getRSSwidths(); //#6857 + var _4u = $k[--$j]; //#6857 + $1[$k[--$j]] = _4u; //#6857 + $1.d1w = $a(8); //#6859 + for (var _4x = 0; _4x <= 3; _4x += 1) { //#6864 + $1.i = _4x; //#6861 + $put($1.d1w, $1.i * 2, $get($1.d1wo, $1.i)); //#6862 + $put($1.d1w, ($1.i * 2) + 1, $get($1.d1we, $1.i)); //#6863 + } //#6863 + $1.d2w = $a(8); //#6866 + for (var _59 = 0; _59 <= 3; _59 += 1) { //#6871 + $1.i = _59; //#6868 + $put($1.d2w, 7 - ($1.i * 2), $get($1.d2wo, $1.i)); //#6869 + $put($1.d2w, 6 - ($1.i * 2), $get($1.d2we, $1.i)); //#6870 + } //#6870 + $1.d3w = $a(8); //#6873 + for (var _5L = 0; _5L <= 3; _5L += 1) { //#6878 + $1.i = _5L; //#6875 + $put($1.d3w, 7 - ($1.i * 2), $get($1.d3wo, $1.i)); //#6876 + $put($1.d3w, 6 - ($1.i * 2), $get($1.d3we, $1.i)); //#6877 + } //#6877 + $1.d4w = $a(8); //#6880 + for (var _5X = 0; _5X <= 3; _5X += 1) { //#6885 + $1.i = _5X; //#6882 + $put($1.d4w, $1.i * 2, $get($1.d4wo, $1.i)); //#6883 + $put($1.d4w, ($1.i * 2) + 1, $get($1.d4we, $1.i)); //#6884 + } //#6884 + $k[$j++] = Infinity; //#6891 + var _5i = $1.d1w; //#6888 + for (var _5j = 0, _5k = _5i.length; _5j < _5k; _5j++) { //#6888 + $k[$j++] = $get(_5i, _5j); //#6888 + } //#6888 + var _5m = $1.d2w; //#6889 + for (var _5n = 0, _5o = _5m.length; _5n < _5o; _5n++) { //#6889 + $k[$j++] = $get(_5m, _5n); //#6889 + } //#6889 + var _5q = $1.d3w; //#6890 + for (var _5r = 0, _5s = _5q.length; _5r < _5s; _5r++) { //#6890 + $k[$j++] = $get(_5q, _5r); //#6890 + } //#6890 + var _5u = $1.d4w; //#6891 + for (var _5v = 0, _5w = _5u.length; _5v < _5w; _5v++) { //#6891 + $k[$j++] = $get(_5u, _5v); //#6891 + } //#6891 + $1.widths = $a(); //#6891 + $1.checkweights = $a([1, 3, 9, 27, 2, 6, 18, 54, 58, 72, 24, 8, 29, 36, 12, 4, 74, 51, 17, 32, 37, 65, 48, 16, 64, 34, 23, 69, 49, 68, 46, 59]); //#6899 + $1.checkwidths = $a([3, 8, 2, 1, 1, 3, 5, 5, 1, 1, 3, 3, 7, 1, 1, 3, 1, 9, 1, 1, 2, 7, 4, 1, 1, 2, 5, 6, 1, 1, 2, 3, 8, 1, 1, 1, 5, 7, 1, 1, 1, 3, 9, 1, 1]); //#6905 + $1.checksum = 0; //#6907 + for (var _61 = 0; _61 <= 31; _61 += 1) { //#6911 + $1.i = _61; //#6909 + $1.checksum = $f($1.checksum + ($get($1.widths, $1.i) * $get($1.checkweights, $1.i))); //#6910 + } //#6910 + $1.checksum = $1.checksum % 79; //#6912 + if ($1.checksum >= 8) { //#6913 + $1.checksum = $f($1.checksum + 1); //#6913 + } //#6913 + if ($1.checksum >= 72) { //#6914 + $1.checksum = $f($1.checksum + 1); //#6914 + } //#6914 + $1.checklt = $geti($1.checkwidths, (~~($1.checksum / 9)) * 5, 5); //#6915 + $1.checkrtrev = $geti($1.checkwidths, ($1.checksum % 9) * 5, 5); //#6916 + $1.checkrt = $a(5); //#6917 + for (var _6L = 0; _6L <= 4; _6L += 1) { //#6921 + $1.i = _6L; //#6919 + $put($1.checkrt, $1.i, $get($1.checkrtrev, 4 - $1.i)); //#6920 + } //#6920 + if ($eq($1.format, "omni") || $eq($1.format, "truncated")) { //#7043 + $k[$j++] = Infinity; //#6928 + var _6T = $1.d1w; //#6927 + $k[$j++] = 1; //#6927 + for (var _6U = 0, _6V = _6T.length; _6U < _6V; _6U++) { //#6927 + $k[$j++] = $get(_6T, _6U); //#6927 + } //#6927 + var _6X = $1.checklt; //#6927 + for (var _6Y = 0, _6Z = _6X.length; _6Y < _6Z; _6Y++) { //#6927 + $k[$j++] = $get(_6X, _6Y); //#6927 + } //#6927 + var _6b = $1.d2w; //#6927 + for (var _6c = 0, _6d = _6b.length; _6c < _6d; _6c++) { //#6927 + $k[$j++] = $get(_6b, _6c); //#6927 + } //#6927 + var _6f = $1.d4w; //#6928 + for (var _6g = 0, _6h = _6f.length; _6g < _6h; _6g++) { //#6928 + $k[$j++] = $get(_6f, _6g); //#6928 + } //#6928 + var _6j = $1.checkrt; //#6928 + for (var _6k = 0, _6l = _6j.length; _6k < _6l; _6k++) { //#6928 + $k[$j++] = $get(_6j, _6k); //#6928 + } //#6928 + var _6n = $1.d3w; //#6928 + for (var _6o = 0, _6p = _6n.length; _6o < _6p; _6o++) { //#6928 + $k[$j++] = $get(_6n, _6o); //#6928 + } //#6928 + $k[$j++] = 1; //#6928 + $k[$j++] = 1; //#6928 + $1.sbs = $a(); //#6928 + $k[$j++] = Infinity; //#6938 + var _6s = $1.sbs; //#6933 + $k[$j++] = Infinity; //#6934 + for (var _6u = 0, _6v = ~~(($1.sbs.length + 1) / 2); _6u < _6v; _6u++) { //#6934 + $k[$j++] = $1.height; //#6934 + } //#6934 + var _6x = $a(); //#6934 + $k[$j++] = Infinity; //#6935 + for (var _6z = 0, _70 = ~~(($1.sbs.length + 1) / 2); _6z < _70; _6z++) { //#6935 + $k[$j++] = 0; //#6935 + } //#6935 + var _71 = $a(); //#6935 + $k[$j++] = 'ren'; //#6938 + $k[$j++] = $0.renlinear; //#6938 + $k[$j++] = 'sbs'; //#6938 + $k[$j++] = _6s; //#6938 + $k[$j++] = 'bhs'; //#6938 + $k[$j++] = _6x; //#6938 + $k[$j++] = 'bbs'; //#6938 + $k[$j++] = _71; //#6938 + $k[$j++] = 'txt'; //#6938 + $k[$j++] = $1.txt; //#6938 + $k[$j++] = 'textxalign'; //#6938 + $k[$j++] = "center"; //#6938 + $k[$j++] = 'opt'; //#6938 + $k[$j++] = $1.options; //#6938 + var _74 = $d(); //#6938 + $k[$j++] = _74; //#6941 + if (!$1.dontdraw) { //#6941 + $0.renlinear(); //#6941 + } //#6941 + } else { //#7043 + $k[$j++] = Infinity; //#6945 + var _76 = $1.d1w; //#6945 + $k[$j++] = 1; //#6945 + $k[$j++] = 1; //#6945 + for (var _77 = 0, _78 = _76.length; _77 < _78; _77++) { //#6945 + $k[$j++] = $get(_76, _77); //#6945 + } //#6945 + var _7A = $1.checklt; //#6945 + for (var _7B = 0, _7C = _7A.length; _7B < _7C; _7B++) { //#6945 + $k[$j++] = $get(_7A, _7B); //#6945 + } //#6945 + var _7E = $1.d2w; //#6945 + for (var _7F = 0, _7G = _7E.length; _7F < _7G; _7F++) { //#6945 + $k[$j++] = $get(_7E, _7F); //#6945 + } //#6945 + $k[$j++] = 1; //#6945 + $k[$j++] = 1; //#6945 + $k[$j++] = 0; //#6945 + $1.top = $a(); //#6945 + $k[$j++] = Infinity; //#6946 + var _7J = $1.d4w; //#6946 + $k[$j++] = 1; //#6946 + $k[$j++] = 1; //#6946 + for (var _7K = 0, _7L = _7J.length; _7K < _7L; _7K++) { //#6946 + $k[$j++] = $get(_7J, _7K); //#6946 + } //#6946 + var _7N = $1.checkrt; //#6946 + for (var _7O = 0, _7P = _7N.length; _7O < _7P; _7O++) { //#6946 + $k[$j++] = $get(_7N, _7O); //#6946 + } //#6946 + var _7R = $1.d3w; //#6946 + for (var _7S = 0, _7T = _7R.length; _7S < _7T; _7S++) { //#6946 + $k[$j++] = $get(_7R, _7S); //#6946 + } //#6946 + $k[$j++] = 1; //#6946 + $k[$j++] = 1; //#6946 + $k[$j++] = 0; //#6946 + $1.bot = $a(); //#6946 + for (var _7W = 0; _7W <= 24; _7W += 2) { //#6951 + $1.i = _7W; //#6948 + for (var _7a = 0, _7b = $get($1.top, $1.i); _7a < _7b; _7a++) { //#6949 + $k[$j++] = 0; //#6949 + } //#6949 + for (var _7f = 0, _7g = $get($1.top, $1.i + 1); _7f < _7g; _7f++) { //#6950 + $k[$j++] = 1; //#6950 + } //#6950 + } //#6950 + $astore($a(50)); //#6952 + $1.top = $k[--$j]; //#6952 + for (var _7j = 0; _7j <= 24; _7j += 2) { //#6957 + $1.i = _7j; //#6954 + for (var _7n = 0, _7o = $get($1.bot, $1.i); _7n < _7o; _7n++) { //#6955 + $k[$j++] = 1; //#6955 + } //#6955 + for (var _7s = 0, _7t = $get($1.bot, $1.i + 1); _7s < _7t; _7s++) { //#6956 + $k[$j++] = 0; //#6956 + } //#6956 + } //#6956 + $astore($a(50)); //#6958 + $1.bot = $k[--$j]; //#6958 + if ($eq($1.format, "stacked")) { //#6980 + $1.sep = $a(50); //#6962 + $put($1.sep, 0, 0); //#6963 + for (var _7z = 1; _7z <= 49; _7z += 1) { //#6971 + $1.i = _7z; //#6965 + if ($eq($get($1.top, $1.i), $get($1.bot, $1.i))) { //#6969 + $put($1.sep, $1.i, $f(1 - $get($1.top, $1.i))); //#6967 + } else { //#6969 + $put($1.sep, $1.i, $f(1 - $get($1.sep, $1.i - 1))); //#6969 + } //#6969 + } //#6969 + $puti($1.sep, 0, $a([0, 0, 0, 0])); //#6972 + $puti($1.sep, 46, $a([0, 0, 0, 0])); //#6973 + $k[$j++] = Infinity; //#6977 + for (var _8K = 0, _8L = 5; _8K < _8L; _8K++) { //#6975 + $aload($1.top); //#6975 + } //#6975 + $aload($1.sep); //#6976 + for (var _8O = 0, _8P = 7; _8O < _8P; _8O++) { //#6977 + $aload($1.bot); //#6977 + } //#6977 + $1.pixs = $a(); //#6977 + $1.pixy = ~~($1.pixs.length / 50); //#6979 + } //#6979 + if ($eq($1.format, "stackedomni")) { //#7030 + $k[$j++] = Infinity; //#6984 + $forall($1.top, function() { //#6984 + var _8V = $k[--$j]; //#6984 + $k[$j++] = $f(1 - _8V); //#6984 + }); //#6984 + $1.sep1 = $a(); //#6984 + $puti($1.sep1, 0, $a([0, 0, 0, 0])); //#6985 + $puti($1.sep1, 46, $a([0, 0, 0, 0])); //#6986 + for (var _8b = 18; _8b <= 30; _8b += 1) { //#6999 + $1.i = _8b; //#6988 + if ($get($1.top, $1.i) == 0) { //#6996 + if ($get($1.top, $1.i - 1) == 1) { //#6993 + $k[$j++] = 1; //#6991 + } else { //#6993 + var _8l = ($get($1.sep1, $1.i - 1) == 0) ? 1 : 0; //#6993 + $k[$j++] = _8l; //#6993 + } //#6993 + } else { //#6996 + $k[$j++] = 0; //#6996 + } //#6996 + $put($1.sep1, $1.i, $k[--$j]); //#6998 + } //#6998 + $k[$j++] = Infinity; //#7000 + $k[$j++] = 0; //#7000 + $k[$j++] = 0; //#7000 + $k[$j++] = 0; //#7000 + $k[$j++] = 0; //#7000 + for (var _8p = 0, _8q = 21; _8p < _8q; _8p++) { //#7000 + $k[$j++] = 0; //#7000 + $k[$j++] = 1; //#7000 + } //#7000 + $k[$j++] = 0; //#7000 + $k[$j++] = 0; //#7000 + $k[$j++] = 0; //#7000 + $k[$j++] = 0; //#7000 + $1.sep2 = $a(); //#7000 + $k[$j++] = Infinity; //#7001 + $forall($1.bot, function() { //#7001 + var _8t = $k[--$j]; //#7001 + $k[$j++] = $f(1 - _8t); //#7001 + }); //#7001 + $1.sep3 = $a(); //#7001 + $puti($1.sep3, 0, $a([0, 0, 0, 0])); //#7002 + $puti($1.sep3, 46, $a([0, 0, 0, 0])); //#7003 + for (var _8z = 19; _8z <= 31; _8z += 1) { //#7016 + $1.i = _8z; //#7005 + if ($get($1.bot, $1.i) == 0) { //#7013 + if ($get($1.bot, $1.i - 1) == 1) { //#7010 + $k[$j++] = 1; //#7008 + } else { //#7010 + var _99 = ($get($1.sep3, $1.i - 1) == 0) ? 1 : 0; //#7010 + $k[$j++] = _99; //#7010 + } //#7010 + } else { //#7013 + $k[$j++] = 0; //#7013 + } //#7013 + $put($1.sep3, $1.i, $k[--$j]); //#7015 + } //#7015 + $1.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#7017 + $k[$j++] = true; //#7018 + for (var _9E = 0; _9E <= 12; _9E += 1) { //#7018 + var _9J = $k[--$j]; //#7018 + $k[$j++] = _9J && $eq($get($1.bot, _9E + 19), $get($1.f3, _9E)); //#7018 + } //#7018 + if ($k[--$j]) { //#7021 + $puti($1.sep3, 19, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#7020 + } //#7020 + $k[$j++] = Infinity; //#7027 + for (var _9O = 0, _9P = $1.barxmult; _9O < _9P; _9O++) { //#7023 + $aload($1.top); //#7023 + } //#7023 + $aload($1.sep1); //#7024 + $aload($1.sep2); //#7025 + $aload($1.sep3); //#7026 + for (var _9V = 0, _9W = $1.barxmult; _9V < _9W; _9V++) { //#7027 + $aload($1.bot); //#7027 + } //#7027 + $1.pixs = $a(); //#7027 + $1.pixy = ~~($1.pixs.length / 50); //#7029 + } //#7029 + var _9e = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", 50], + ["pixy", $1.pixy], + ["height", $1.pixy / 72], + ["width", 50 / 72], + ["opt", $1.options] + ]); //#7040 + $k[$j++] = _9e; //#7043 + if (!$1.dontdraw) { //#7043 + $0.renmatrix(); //#7043 + } //#7043 + } //#7043 }; $0.databarstacked = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - if ($ne($geti($1.barcode, 0, 4), "(01)")) { - $k[$j++] = "bwipp.databarstackedBadAI"; - $k[$j++] = "GS1 DataBar Stacked must begin with (01) application identifier"; - $0.raiseerror(); - } - if ($1.barcode.length != 17 && $1.barcode.length != 18) { - $k[$j++] = "bwipp.databarstackedBadLength"; - $k[$j++] = "GS1 DataBar Stacked must be 13 or 14 digits"; - $0.raiseerror(); - } - var _B = $geti($1.barcode, 4, $1.barcode.length - 4); - for (var _C = 0, _D = _B.length; _C < _D; _C++) { - var _E = $get(_B, _C); - if (_E < 48 || _E > 57) { - $k[$j++] = "bwipp.databarstackedBadCharacter"; - $k[$j++] = "GS1 DataBar Stacked must contain only digits"; - $0.raiseerror(); - } - } - $1.checksum = 0; - for (var _F = 0; _F <= 12; _F += 1) { - $1.i = _F; - $k[$j++] = "checksum"; - $k[$j++] = $1.checksum; - $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); - if ($1.i % 2 == 0) { - var _L = $k[--$j]; - $k[$j++] = _L * 3; - } - var _M = $k[--$j]; - var _N = $k[--$j]; - $1[$k[--$j]] = $f(_N + _M); - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 18) { - if ($get($1.barcode, 17) != $1.checksum + 48) { - $k[$j++] = "bwipp.databarstackedBadCheckDigit"; - $k[$j++] = "Incorrect GS1 DataBar Stacked check digit provided"; - $0.raiseerror(); - } - } - var _U = $s(18); - $puti(_U, 0, $1.barcode); - $put(_U, 17, $1.checksum + 48); - $1.barcode = _U; - $put($1.options, "dontdraw", true); - $put($1.options, "format", "stacked"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.databaromni(); - var _b = $k[--$j]; - $1[$k[--$j]] = _b; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#7075 + $1.options = $k[--$j]; //#7077 + $1.barcode = $k[--$j]; //#7078 + $1.dontdraw = false; //#7080 + $forall($1.options, function() { //#7091 + var _3 = $k[--$j]; //#7091 + $1[$k[--$j]] = _3; //#7091 + }); //#7091 + if ($ne($geti($1.barcode, 0, 4), "(01)")) { //#7096 + $k[$j++] = 'bwipp.databarstackedBadAI'; //#7095 + $k[$j++] = "GS1 DataBar Stacked must begin with (01) application identifier"; //#7095 + $0.raiseerror(); //#7095 + } //#7095 + if (($1.barcode.length != 17) && ($1.barcode.length != 18)) { //#7099 + $k[$j++] = 'bwipp.databarstackedBadLength'; //#7098 + $k[$j++] = "GS1 DataBar Stacked must be 13 or 14 digits"; //#7098 + $0.raiseerror(); //#7098 + } //#7098 + var _B = $geti($1.barcode, 4, $1.barcode.length - 4); //#7100 + for (var _C = 0, _D = _B.length; _C < _D; _C++) { //#7104 + var _E = $get(_B, _C); //#7104 + if ((_E < 48) || (_E > 57)) { //#7103 + $k[$j++] = 'bwipp.databarstackedBadCharacter'; //#7102 + $k[$j++] = "GS1 DataBar Stacked must contain only digits"; //#7102 + $0.raiseerror(); //#7102 + } //#7102 + } //#7102 + $1.checksum = 0; //#7107 + for (var _F = 0; _F <= 12; _F += 1) { //#7111 + $1.i = _F; //#7109 + $k[$j++] = 'checksum'; //#7110 + $k[$j++] = $1.checksum; //#7110 + $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); //#7110 + if (($1.i % 2) == 0) { //#7110 + var _L = $k[--$j]; //#7110 + $k[$j++] = _L * 3; //#7110 + } //#7110 + var _M = $k[--$j]; //#7110 + var _N = $k[--$j]; //#7110 + $1[$k[--$j]] = $f(_N + _M); //#7110 + } //#7110 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#7112 + if ($1.barcode.length == 18) { //#7117 + if ($get($1.barcode, 17) != ($1.checksum + 48)) { //#7116 + $k[$j++] = 'bwipp.databarstackedBadCheckDigit'; //#7115 + $k[$j++] = "Incorrect GS1 DataBar Stacked check digit provided"; //#7115 + $0.raiseerror(); //#7115 + } //#7115 + } //#7115 + var _U = $s(18); //#7118 + $puti(_U, 0, $1.barcode); //#7119 + $put(_U, 17, $1.checksum + 48); //#7120 + $1.barcode = _U; //#7121 + $put($1.options, "dontdraw", true); //#7124 + $put($1.options, "format", "stacked"); //#7125 + $k[$j++] = 'args'; //#7127 + $k[$j++] = $1.barcode; //#7127 + $k[$j++] = $1.options; //#7127 + $0.databaromni(); //#7127 + var _b = $k[--$j]; //#7127 + $1[$k[--$j]] = _b; //#7127 + $put($1.args, "opt", $1.options); //#7129 + $k[$j++] = $1.args; //#7132 + if (!$1.dontdraw) { //#7132 + $0.renmatrix(); //#7132 + } //#7132 }; $0.databarstackedomni = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - if ($ne($geti($1.barcode, 0, 4), "(01)")) { - $k[$j++] = "bwipp.databarstackedomniBadAI"; - $k[$j++] = "GS1 DataBar Stacked Omnidirectional must begin with (01) application identifier"; - $0.raiseerror(); - } - if ($1.barcode.length != 17 && $1.barcode.length != 18) { - $k[$j++] = "bwipp.databarstackedomniBadLength"; - $k[$j++] = "GS1 DataBar Stacked Omnidirectional must be 13 or 14 digits"; - $0.raiseerror(); - } - var _B = $geti($1.barcode, 4, $1.barcode.length - 4); - for (var _C = 0, _D = _B.length; _C < _D; _C++) { - var _E = $get(_B, _C); - if (_E < 48 || _E > 57) { - $k[$j++] = "bwipp.databarstackedomniBadCharacter"; - $k[$j++] = "GS1 DataBar Stacked Omnidirectional must contain only digits"; - $0.raiseerror(); - } - } - $1.checksum = 0; - for (var _F = 0; _F <= 12; _F += 1) { - $1.i = _F; - $k[$j++] = "checksum"; - $k[$j++] = $1.checksum; - $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); - if ($1.i % 2 == 0) { - var _L = $k[--$j]; - $k[$j++] = _L * 3; - } - var _M = $k[--$j]; - var _N = $k[--$j]; - $1[$k[--$j]] = $f(_N + _M); - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 18) { - if ($get($1.barcode, 17) != $1.checksum + 48) { - $k[$j++] = "bwipp.databarstackedomniBadCheckDigit"; - $k[$j++] = "Incorrect GS1 DataBar Stacked Omnidirectional check digit provided"; - $0.raiseerror(); - } - } - var _U = $s(18); - $puti(_U, 0, $1.barcode); - $put(_U, 17, $1.checksum + 48); - $1.barcode = _U; - $put($1.options, "dontdraw", true); - $put($1.options, "format", "stackedomni"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.databaromni(); - var _b = $k[--$j]; - $1[$k[--$j]] = _b; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#7162 + $1.options = $k[--$j]; //#7164 + $1.barcode = $k[--$j]; //#7165 + $1.dontdraw = false; //#7167 + $forall($1.options, function() { //#7178 + var _3 = $k[--$j]; //#7178 + $1[$k[--$j]] = _3; //#7178 + }); //#7178 + if ($ne($geti($1.barcode, 0, 4), "(01)")) { //#7183 + $k[$j++] = 'bwipp.databarstackedomniBadAI'; //#7182 + $k[$j++] = "GS1 DataBar Stacked Omnidirectional must begin with (01) application identifier"; //#7182 + $0.raiseerror(); //#7182 + } //#7182 + if (($1.barcode.length != 17) && ($1.barcode.length != 18)) { //#7186 + $k[$j++] = 'bwipp.databarstackedomniBadLength'; //#7185 + $k[$j++] = "GS1 DataBar Stacked Omnidirectional must be 13 or 14 digits"; //#7185 + $0.raiseerror(); //#7185 + } //#7185 + var _B = $geti($1.barcode, 4, $1.barcode.length - 4); //#7187 + for (var _C = 0, _D = _B.length; _C < _D; _C++) { //#7191 + var _E = $get(_B, _C); //#7191 + if ((_E < 48) || (_E > 57)) { //#7190 + $k[$j++] = 'bwipp.databarstackedomniBadCharacter'; //#7189 + $k[$j++] = "GS1 DataBar Stacked Omnidirectional must contain only digits"; //#7189 + $0.raiseerror(); //#7189 + } //#7189 + } //#7189 + $1.checksum = 0; //#7194 + for (var _F = 0; _F <= 12; _F += 1) { //#7198 + $1.i = _F; //#7196 + $k[$j++] = 'checksum'; //#7197 + $k[$j++] = $1.checksum; //#7197 + $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); //#7197 + if (($1.i % 2) == 0) { //#7197 + var _L = $k[--$j]; //#7197 + $k[$j++] = _L * 3; //#7197 + } //#7197 + var _M = $k[--$j]; //#7197 + var _N = $k[--$j]; //#7197 + $1[$k[--$j]] = $f(_N + _M); //#7197 + } //#7197 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#7199 + if ($1.barcode.length == 18) { //#7204 + if ($get($1.barcode, 17) != ($1.checksum + 48)) { //#7203 + $k[$j++] = 'bwipp.databarstackedomniBadCheckDigit'; //#7202 + $k[$j++] = "Incorrect GS1 DataBar Stacked Omnidirectional check digit provided"; //#7202 + $0.raiseerror(); //#7202 + } //#7202 + } //#7202 + var _U = $s(18); //#7205 + $puti(_U, 0, $1.barcode); //#7206 + $put(_U, 17, $1.checksum + 48); //#7207 + $1.barcode = _U; //#7208 + $put($1.options, "dontdraw", true); //#7211 + $put($1.options, "format", "stackedomni"); //#7212 + $k[$j++] = 'args'; //#7214 + $k[$j++] = $1.barcode; //#7214 + $k[$j++] = $1.options; //#7214 + $0.databaromni(); //#7214 + var _b = $k[--$j]; //#7214 + $1[$k[--$j]] = _b; //#7214 + $put($1.args, "opt", $1.options); //#7216 + $k[$j++] = $1.args; //#7219 + if (!$1.dontdraw) { //#7219 + $0.renmatrix(); //#7219 + } //#7219 }; $0.databartruncated = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - if ($ne($geti($1.barcode, 0, 4), "(01)")) { - $k[$j++] = "bwipp.databartruncatedBadAI"; - $k[$j++] = "GS1 DataBar Truncated must begin with (01) application identifier"; - $0.raiseerror(); - } - if ($1.barcode.length != 17 && $1.barcode.length != 18) { - $k[$j++] = "bwipp.databartruncatedBadLength"; - $k[$j++] = "GS1 DataBar Truncated must be 13 or 14 digits"; - $0.raiseerror(); - } - var _B = $geti($1.barcode, 4, $1.barcode.length - 4); - for (var _C = 0, _D = _B.length; _C < _D; _C++) { - var _E = $get(_B, _C); - if (_E < 48 || _E > 57) { - $k[$j++] = "bwipp.databartruncatedBadCharacter"; - $k[$j++] = "GS1 DataBar Truncated must contain only digits"; - $0.raiseerror(); - } - } - $1.checksum = 0; - for (var _F = 0; _F <= 12; _F += 1) { - $1.i = _F; - $k[$j++] = "checksum"; - $k[$j++] = $1.checksum; - $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); - if ($1.i % 2 == 0) { - var _L = $k[--$j]; - $k[$j++] = _L * 3; - } - var _M = $k[--$j]; - var _N = $k[--$j]; - $1[$k[--$j]] = $f(_N + _M); - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 18) { - if ($get($1.barcode, 17) != $1.checksum + 48) { - $k[$j++] = "bwipp.databartruncatedBadCheckDigit"; - $k[$j++] = "Incorrect GS1 DataBar Truncated check digit provided"; - $0.raiseerror(); - } - } - var _U = $s(18); - $puti(_U, 0, $1.barcode); - $put(_U, 17, $1.checksum + 48); - $1.barcode = _U; - $put($1.options, "dontdraw", true); - $put($1.options, "format", "truncated"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.databaromni(); - var _b = $k[--$j]; - $1[$k[--$j]] = _b; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#7249 + $1.options = $k[--$j]; //#7251 + $1.barcode = $k[--$j]; //#7252 + $1.dontdraw = false; //#7254 + $forall($1.options, function() { //#7265 + var _3 = $k[--$j]; //#7265 + $1[$k[--$j]] = _3; //#7265 + }); //#7265 + if ($ne($geti($1.barcode, 0, 4), "(01)")) { //#7270 + $k[$j++] = 'bwipp.databartruncatedBadAI'; //#7269 + $k[$j++] = "GS1 DataBar Truncated must begin with (01) application identifier"; //#7269 + $0.raiseerror(); //#7269 + } //#7269 + if (($1.barcode.length != 17) && ($1.barcode.length != 18)) { //#7273 + $k[$j++] = 'bwipp.databartruncatedBadLength'; //#7272 + $k[$j++] = "GS1 DataBar Truncated must be 13 or 14 digits"; //#7272 + $0.raiseerror(); //#7272 + } //#7272 + var _B = $geti($1.barcode, 4, $1.barcode.length - 4); //#7274 + for (var _C = 0, _D = _B.length; _C < _D; _C++) { //#7278 + var _E = $get(_B, _C); //#7278 + if ((_E < 48) || (_E > 57)) { //#7277 + $k[$j++] = 'bwipp.databartruncatedBadCharacter'; //#7276 + $k[$j++] = "GS1 DataBar Truncated must contain only digits"; //#7276 + $0.raiseerror(); //#7276 + } //#7276 + } //#7276 + $1.checksum = 0; //#7281 + for (var _F = 0; _F <= 12; _F += 1) { //#7285 + $1.i = _F; //#7283 + $k[$j++] = 'checksum'; //#7284 + $k[$j++] = $1.checksum; //#7284 + $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); //#7284 + if (($1.i % 2) == 0) { //#7284 + var _L = $k[--$j]; //#7284 + $k[$j++] = _L * 3; //#7284 + } //#7284 + var _M = $k[--$j]; //#7284 + var _N = $k[--$j]; //#7284 + $1[$k[--$j]] = $f(_N + _M); //#7284 + } //#7284 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#7286 + if ($1.barcode.length == 18) { //#7291 + if ($get($1.barcode, 17) != ($1.checksum + 48)) { //#7290 + $k[$j++] = 'bwipp.databartruncatedBadCheckDigit'; //#7289 + $k[$j++] = "Incorrect GS1 DataBar Truncated check digit provided"; //#7289 + $0.raiseerror(); //#7289 + } //#7289 + } //#7289 + var _U = $s(18); //#7292 + $puti(_U, 0, $1.barcode); //#7293 + $put(_U, 17, $1.checksum + 48); //#7294 + $1.barcode = _U; //#7295 + $put($1.options, "dontdraw", true); //#7298 + $put($1.options, "format", "truncated"); //#7299 + $k[$j++] = 'args'; //#7301 + $k[$j++] = $1.barcode; //#7301 + $k[$j++] = $1.options; //#7301 + $0.databaromni(); //#7301 + var _b = $k[--$j]; //#7301 + $1[$k[--$j]] = _b; //#7301 + $put($1.args, "opt", $1.options); //#7303 + $k[$j++] = $1.args; //#7306 + if (!$1.dontdraw) { //#7306 + $0.renlinear(); //#7306 + } //#7306 }; $0.databarlimited = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.height = 10 / 72; - $1.linkage = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.height = +$1.height; - if ($ne($geti($1.barcode, 0, 4), "(01)")) { - $k[$j++] = "bwipp.databarlimitedBadAI"; - $k[$j++] = "GS1 DataBar Limited must begin with (01) application identifier"; - $0.raiseerror(); - } - if ($1.barcode.length != 17 && $1.barcode.length != 18) { - $k[$j++] = "bwipp.databarlimitedBadLength"; - $k[$j++] = "GS1 DataBar Limited must be 13 or 14 digits"; - $0.raiseerror(); - } - var _B = $get($1.barcode, 4); - if (_B < 48 || _B > 49) { - $k[$j++] = "bwipp.databarlimitedBadStartDigit"; - $k[$j++] = "GS1 DataBar Limited must begin with 0 or 1"; - $0.raiseerror(); - } - var _E = $geti($1.barcode, 5, $1.barcode.length - 5); - for (var _F = 0, _G = _E.length; _F < _G; _F++) { - var _H = $get(_E, _F); - if (_H < 48 || _H > 57) { - $k[$j++] = "bwipp.databarlimitedBadCharacter"; - $k[$j++] = "GS1 DataBar Limited must contain only digits"; - $0.raiseerror(); - } - } - $1.checksum = 0; - for (var _I = 0; _I <= 12; _I += 1) { - $1.i = _I; - $k[$j++] = "checksum"; - $k[$j++] = $1.checksum; - $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); - if ($1.i % 2 == 0) { - var _O = $k[--$j]; - $k[$j++] = _O * 3; - } - var _P = $k[--$j]; - var _Q = $k[--$j]; - $1[$k[--$j]] = $f(_Q + _P); - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 18) { - if ($get($1.barcode, 17) != $1.checksum + 48) { - $k[$j++] = "bwipp.databarlimitedBadCheckDigit"; - $k[$j++] = "Incorrect GS1 DataBar Limited check digit provided"; - $0.raiseerror(); - } - } - var _X = $s(18); - $puti(_X, 0, $1.barcode); - $put(_X, 17, $1.checksum + 48); - $1.barcode = _X; - $k[$j++] = Infinity; - var _b = $geti($1.barcode, 4, 13); - for (var _c = 0, _d = _b.length; _c < _d; _c++) { - $k[$j++] = $f($get(_b, _c) - 48); - } - $1.binval = $a(); - if ($1.linkage) { - $1.linkval = $a([ 2, 0, 1, 5, 1, 3, 3, 5, 3, 1, 0, 9, 6 ]); - for (var _k = 0, _j = $1.binval.length - 1; _k <= _j; _k += 1) { - $1.i = _k; - $put($1.binval, $1.i, $f($get($1.binval, $1.i) + $get($1.linkval, $1.i))); - } - } - $1.txt = $a($1.barcode.length); - for (var _x = 0, _w = $1.barcode.length - 1; _x <= _w; _x += 1) { - $1.i = _x; - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), 0, 0, "", 0 ])); - } + var $1 = {}; //#7335 + $1.options = $k[--$j]; //#7337 + $1.barcode = $k[--$j]; //#7338 + $1.dontdraw = false; //#7340 + $1.height = 10 / 72; //#7341 + $1.linkage = false; //#7342 + $forall($1.options, function() { //#7353 + var _3 = $k[--$j]; //#7353 + $1[$k[--$j]] = _3; //#7353 + }); //#7353 + $1.height = +$1.height; //#7355 + if ($ne($geti($1.barcode, 0, 4), "(01)")) { //#7360 + $k[$j++] = 'bwipp.databarlimitedBadAI'; //#7359 + $k[$j++] = "GS1 DataBar Limited must begin with (01) application identifier"; //#7359 + $0.raiseerror(); //#7359 + } //#7359 + if (($1.barcode.length != 17) && ($1.barcode.length != 18)) { //#7363 + $k[$j++] = 'bwipp.databarlimitedBadLength'; //#7362 + $k[$j++] = "GS1 DataBar Limited must be 13 or 14 digits"; //#7362 + $0.raiseerror(); //#7362 + } //#7362 + var _B = $get($1.barcode, 4); //#7364 + if ((_B < 48) || (_B > 49)) { //#7366 + $k[$j++] = 'bwipp.databarlimitedBadStartDigit'; //#7365 + $k[$j++] = "GS1 DataBar Limited must begin with 0 or 1"; //#7365 + $0.raiseerror(); //#7365 + } //#7365 + var _E = $geti($1.barcode, 5, $1.barcode.length - 5); //#7367 + for (var _F = 0, _G = _E.length; _F < _G; _F++) { //#7371 + var _H = $get(_E, _F); //#7371 + if ((_H < 48) || (_H > 57)) { //#7370 + $k[$j++] = 'bwipp.databarlimitedBadCharacter'; //#7369 + $k[$j++] = "GS1 DataBar Limited must contain only digits"; //#7369 + $0.raiseerror(); //#7369 + } //#7369 + } //#7369 + $1.checksum = 0; //#7374 + for (var _I = 0; _I <= 12; _I += 1) { //#7378 + $1.i = _I; //#7376 + $k[$j++] = 'checksum'; //#7377 + $k[$j++] = $1.checksum; //#7377 + $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); //#7377 + if (($1.i % 2) == 0) { //#7377 + var _O = $k[--$j]; //#7377 + $k[$j++] = _O * 3; //#7377 + } //#7377 + var _P = $k[--$j]; //#7377 + var _Q = $k[--$j]; //#7377 + $1[$k[--$j]] = $f(_Q + _P); //#7377 + } //#7377 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#7379 + if ($1.barcode.length == 18) { //#7384 + if ($get($1.barcode, 17) != ($1.checksum + 48)) { //#7383 + $k[$j++] = 'bwipp.databarlimitedBadCheckDigit'; //#7382 + $k[$j++] = "Incorrect GS1 DataBar Limited check digit provided"; //#7382 + $0.raiseerror(); //#7382 + } //#7382 + } //#7382 + var _X = $s(18); //#7385 + $puti(_X, 0, $1.barcode); //#7386 + $put(_X, 17, $1.checksum + 48); //#7387 + $1.barcode = _X; //#7388 + $k[$j++] = Infinity; //#7392 + var _b = $geti($1.barcode, 4, 13); //#7392 + for (var _c = 0, _d = _b.length; _c < _d; _c++) { //#7392 + $k[$j++] = $f($get(_b, _c) - 48); //#7392 + } //#7392 + $1.binval = $a(); //#7392 + if ($1.linkage) { //#7400 + $1.linkval = $a([2, 0, 1, 5, 1, 3, 3, 5, 3, 1, 0, 9, 6]); //#7395 + for (var _k = 0, _j = $1.binval.length - 1; _k <= _j; _k += 1) { //#7399 + $1.i = _k; //#7397 + $put($1.binval, $1.i, $f($get($1.binval, $1.i) + $get($1.linkval, $1.i))); //#7398 + } //#7398 + } //#7398 + $1.txt = $a($1.barcode.length); //#7403 + for (var _x = 0, _w = $1.barcode.length - 1; _x <= _w; _x += 1) { //#7407 + $1.i = _x; //#7405 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), 0, 0, "", 0])); //#7406 + } //#7406 $1.ncr = function() { - var _14 = $k[--$j]; - var _15 = $k[--$j]; - var _16 = $f(_15 - _14); - if (_14 < $f(_15 - _14)) { - var _ = _16; - _16 = _14; - _14 = _; - } - $k[$j++] = _16; - $k[$j++] = 1; - $k[$j++] = 1; - for (var _18 = _15, _17 = $f(_14 + 1); _18 >= _17; _18 -= 1) { - var _19 = $k[--$j]; - var _1A = $k[--$j]; - var _1B = $k[--$j]; - $k[$j++] = _1B; - $k[$j++] = _1A; - $k[$j++] = _19 * _18; - if ($le(_1A, _1B)) { - var _1C = $k[--$j]; - var _1D = $k[--$j]; - $k[$j++] = $f(_1D + 1); - $k[$j++] = ~~(_1C / _1D); - } - } - for (;;) { - var _1E = $k[--$j]; - var _1F = $k[--$j]; - var _1G = $k[--$j]; - $k[$j++] = _1G; - $k[$j++] = _1F; - $k[$j++] = _1E; - if ($gt(_1F, _1G)) { - break; - } - var _1H = $k[--$j]; - var _1I = $k[--$j]; - $k[$j++] = $f(_1I + 1); - $k[$j++] = ~~(_1H / _1I); - } - var _1J = $k[--$j]; - var _1K = $k[--$j]; - $k[$j++] = _1J; - $k[$j++] = _1K; - $j--; - var _1L = $k[--$j]; - var _1M = $k[--$j]; - $k[$j++] = _1L; - $k[$j++] = _1M; - $j--; - }; + var _14 = $k[--$j]; //#7410 + var _15 = $k[--$j]; //#7410 + var _16 = $f(_15 - _14); //#7410 + if (_14 < $f(_15 - _14)) { //#7410 + var _ = _16; //#7410 + _16 = _14; //#7410 + _14 = _; //#7410 + } //#7410 + $k[$j++] = _16; //#7417 + $k[$j++] = 1; //#7417 + $k[$j++] = 1; //#7417 + for (var _18 = _15, _17 = $f(_14 + 1); _18 >= _17; _18 -= 1) { //#7417 + var _19 = $k[--$j]; //#7413 + var _1A = $k[--$j]; //#7414 + var _1B = $k[--$j]; //#7414 + $k[$j++] = _1B; //#7416 + $k[$j++] = _1A; //#7416 + $k[$j++] = _19 * _18; //#7416 + if ($le(_1A, _1B)) { //#7416 + var _1C = $k[--$j]; //#7415 + var _1D = $k[--$j]; //#7415 + $k[$j++] = $f(_1D + 1); //#7415 + $k[$j++] = ~~(_1C / _1D); //#7415 + } //#7415 + } //#7415 + for (;;) { //#7421 + var _1E = $k[--$j]; //#7419 + var _1F = $k[--$j]; //#7419 + var _1G = $k[--$j]; //#7419 + $k[$j++] = _1G; //#7419 + $k[$j++] = _1F; //#7419 + $k[$j++] = _1E; //#7419 + if ($gt(_1F, _1G)) { //#7419 + break; //#7419 + } //#7419 + var _1H = $k[--$j]; //#7420 + var _1I = $k[--$j]; //#7420 + $k[$j++] = $f(_1I + 1); //#7420 + $k[$j++] = ~~(_1H / _1I); //#7420 + } //#7420 + var _1J = $k[--$j]; //#7422 + var _1K = $k[--$j]; //#7422 + $k[$j++] = _1J; //#7422 + $k[$j++] = _1K; //#7422 + $j--; //#7422 + var _1L = $k[--$j]; //#7422 + var _1M = $k[--$j]; //#7422 + $k[$j++] = _1L; //#7422 + $k[$j++] = _1M; //#7422 + $j--; //#7422 + }; //#7423 $1.getRSSwidths = function() { - $1.oe = $k[--$j]; - $1.el = $k[--$j]; - $1.mw = $k[--$j]; - $1.nm = $k[--$j]; - $1.val = $k[--$j]; - $1.out = $a($1.el); - $1.mask = 0; - for (var _1W = 0, _1V = $f($1.el - 2); _1W <= _1V; _1W += 1) { - $1.bar = _1W; - $1.ew = 1; - var _1Y = $1.bar; - $1.mask = $1.mask | (_1Y < 0 ? 1 >>> -_1Y : 1 << _1Y); - for (;;) { - $k[$j++] = "sval"; - $k[$j++] = $f($f($1.nm - $1.ew) - 1); - $k[$j++] = $f($f($1.el - $1.bar) - 2); - $1.ncr(); - var _1d = $k[--$j]; - $1[$k[--$j]] = _1d; - if ($1.oe && $1.mask == 0 && $f($f($f($1.nm - $1.ew) - $1.el * 2) + $1.bar * 2) >= -2) { - $k[$j++] = "sval"; - $k[$j++] = $1.sval; - $k[$j++] = $f($f($f($1.nm - $1.ew) - $1.el) + $1.bar); - $k[$j++] = $f($f($1.el - $1.bar) - 2); - $1.ncr(); - var _1s = $k[--$j]; - var _1t = $k[--$j]; - $1[$k[--$j]] = $f(_1t - _1s); - } - if ($f($1.el - $1.bar) > 2) { - $1.lval = 0; - for (var _23 = $f($f($f($f($1.nm - $1.ew) - $1.el) + $1.bar) + 2), _22 = $f($1.mw + 1); _23 >= _22; _23 -= 1) { - $k[$j++] = $f($f($f($1.nm - _23) - $1.ew) - 1); - $k[$j++] = $f($f($1.el - $1.bar) - 3); - $1.ncr(); - $1.lval = $f($k[--$j] + $1.lval); - } - $1.sval = $f($1.sval - $1.lval * $f($f($1.el - $1.bar) - 1)); - } else { - if ($f($1.nm - $1.ew) > $1.mw) { - $1.sval = $f($1.sval - 1); - } - } - $1.val = $f($1.val - $1.sval); - if ($1.val < 0) { - break; - } - $1.ew = $1.ew + 1; - var _2N = $1.bar; - $1.mask = $1.mask & ~(_2N < 0 ? 1 >>> -_2N : 1 << _2N); - } - $1.val = $f($1.val + $1.sval); - $1.nm = $f($1.nm - $1.ew); - $put($1.out, $1.bar, $1.ew); - } - $put($1.out, $f($1.el - 1), $1.nm); - $k[$j++] = $1.out; - }; - for (var _2Z = 0; _2Z <= 11; _2Z += 1) { - $1.i = _2Z; - var _2a = $1.binval; - var _2b = $1.i; - $put(_2a, _2b + 1, $f($get(_2a, _2b + 1) + $get($1.binval, $1.i) % 2013571 * 10)); - $put($1.binval, $1.i, ~~($get($1.binval, $1.i) / 2013571)); - } - $1.d2 = $get($1.binval, 12) % 2013571; - var _2n = $1.binval; - $put(_2n, 12, ~~($get(_2n, 12) / 2013571)); - $1.d1 = 0; - $1.i = true; - for (var _2p = 0; _2p <= 12; _2p += 1) { - $1.j = _2p; - var _2s = $get($1.binval, $1.j); - $k[$j++] = _2s; - if (_2s == 0 && $1.i) { - $j--; - } else { - $1.i = false; - $1.d1 = $f($1.d1 + $k[--$j] * ~~Math.pow(10, 12 - $1.j)); - } - } - $1.tab267 = $a([ 183063, 0, 17, 9, 6, 3, 6538, 28, 820063, 183064, 13, 13, 5, 4, 875, 728, 1000775, 820064, 9, 17, 3, 6, 28, 6454, 1491020, 1000776, 15, 11, 5, 4, 2415, 203, 1979844, 1491021, 11, 15, 4, 5, 203, 2408, 1996938, 1979845, 19, 7, 8, 1, 17094, 1, 2013570, 1996939, 7, 19, 1, 8, 1, 16632 ]); - $1.i = 0; - for (;;) { - if ($1.d1 <= $get($1.tab267, $1.i)) { - var _34 = $geti($1.tab267, $1.i + 1, 7); - for (var _35 = 0, _36 = _34.length; _35 < _36; _35++) { - $k[$j++] = $get(_34, _35); - } - $1.d1te = $k[--$j]; - $1.d1to = $k[--$j]; - $1.d1mwe = $k[--$j]; - $1.d1mwo = $k[--$j]; - $1.d1ele = $k[--$j]; - $1.d1elo = $k[--$j]; - $1.d1gs = $k[--$j]; - break; - } - $1.i = $1.i + 8; - } - $1.i = 0; - for (;;) { - if ($1.d2 <= $get($1.tab267, $1.i)) { - var _3M = $geti($1.tab267, $1.i + 1, 7); - for (var _3N = 0, _3O = _3M.length; _3N < _3O; _3N++) { - $k[$j++] = $get(_3M, _3N); - } - $1.d2te = $k[--$j]; - $1.d2to = $k[--$j]; - $1.d2mwe = $k[--$j]; - $1.d2mwo = $k[--$j]; - $1.d2ele = $k[--$j]; - $1.d2elo = $k[--$j]; - $1.d2gs = $k[--$j]; - break; - } - $1.i = $1.i + 8; - } - $k[$j++] = "d1wo"; - $k[$j++] = ~~($f($1.d1 - $1.d1gs) / $1.d1te); - $k[$j++] = $1.d1elo; - $k[$j++] = $1.d1mwo; - $k[$j++] = 7; - $k[$j++] = false; - $1.getRSSwidths(); - var _3d = $k[--$j]; - $1[$k[--$j]] = _3d; - $k[$j++] = "d1we"; - $k[$j++] = $f($1.d1 - $1.d1gs) % $1.d1te; - $k[$j++] = $1.d1ele; - $k[$j++] = $1.d1mwe; - $k[$j++] = 7; - $k[$j++] = true; - $1.getRSSwidths(); - var _3k = $k[--$j]; - $1[$k[--$j]] = _3k; - $k[$j++] = "d2wo"; - $k[$j++] = ~~($f($1.d2 - $1.d2gs) / $1.d2te); - $k[$j++] = $1.d2elo; - $k[$j++] = $1.d2mwo; - $k[$j++] = 7; - $k[$j++] = false; - $1.getRSSwidths(); - var _3r = $k[--$j]; - $1[$k[--$j]] = _3r; - $k[$j++] = "d2we"; - $k[$j++] = $f($1.d2 - $1.d2gs) % $1.d2te; - $k[$j++] = $1.d2ele; - $k[$j++] = $1.d2mwe; - $k[$j++] = 7; - $k[$j++] = true; - $1.getRSSwidths(); - var _3y = $k[--$j]; - $1[$k[--$j]] = _3y; - $1.d1w = $a(14); - for (var _41 = 0; _41 <= 6; _41 += 1) { - $1.i = _41; - $put($1.d1w, $1.i * 2, $get($1.d1wo, $1.i)); - $put($1.d1w, $1.i * 2 + 1, $get($1.d1we, $1.i)); - } - $1.d2w = $a(14); - for (var _4D = 0; _4D <= 6; _4D += 1) { - $1.i = _4D; - $put($1.d2w, $1.i * 2, $get($1.d2wo, $1.i)); - $put($1.d2w, $1.i * 2 + 1, $get($1.d2we, $1.i)); - } - $k[$j++] = Infinity; - var _4O = $1.d1w; - for (var _4P = 0, _4Q = _4O.length; _4P < _4Q; _4P++) { - $k[$j++] = $get(_4O, _4P); - } - var _4S = $1.d2w; - for (var _4T = 0, _4U = _4S.length; _4T < _4U; _4T++) { - $k[$j++] = $get(_4S, _4T); - } - $1.widths = $a(); - $1.checkweights = $a([ 1, 3, 9, 27, 81, 65, 17, 51, 64, 14, 42, 37, 22, 66, 20, 60, 2, 6, 18, 54, 73, 41, 34, 13, 39, 28, 84, 74 ]); - $k[$j++] = Infinity; - for (var _4Y = 0; _4Y <= 43; _4Y += 1) { - $k[$j++] = _4Y; - } - $k[$j++] = 45; - $k[$j++] = 52; - $k[$j++] = 57; - for (var _4Z = 63; _4Z <= 66; _4Z += 1) { - $k[$j++] = _4Z; - } - for (var _4a = 73; _4a <= 79; _4a += 1) { - $k[$j++] = _4a; - } - $k[$j++] = 82; - for (var _4b = 126; _4b <= 130; _4b += 1) { - $k[$j++] = _4b; - } - $k[$j++] = 132; - for (var _4c = 141; _4c <= 146; _4c += 1) { - $k[$j++] = _4c; - } - for (var _4d = 210; _4d <= 217; _4d += 1) { - $k[$j++] = _4d; - } - $k[$j++] = 220; - for (var _4e = 316; _4e <= 320; _4e += 1) { - $k[$j++] = _4e; - } - $k[$j++] = 322; - $k[$j++] = 323; - $k[$j++] = 326; - $k[$j++] = 337; - $1.checkseq = $a(); - $1.checksum = 0; - for (var _4g = 0; _4g <= 27; _4g += 1) { - $1.i = _4g; - $1.checksum = $f($1.checksum + $get($1.widths, $1.i) * $get($1.checkweights, $1.i)); - } - $1.checksum = $1.checksum % 89; - $1.seq = $get($1.checkseq, $1.checksum); - $k[$j++] = "swidths"; - $k[$j++] = ~~($1.seq / 21); - $k[$j++] = 8; - $k[$j++] = 3; - $k[$j++] = 6; - $k[$j++] = false; - $1.getRSSwidths(); - var _4t = $k[--$j]; - $1[$k[--$j]] = _4t; - $k[$j++] = "bwidths"; - $k[$j++] = $1.seq % 21; - $k[$j++] = 8; - $k[$j++] = 3; - $k[$j++] = 6; - $k[$j++] = false; - $1.getRSSwidths(); - var _4w = $k[--$j]; - $1[$k[--$j]] = _4w; - $1.checkwidths = $a([ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1 ]); - for (var _4z = 0; _4z <= 5; _4z += 1) { - $1.i = _4z; - $put($1.checkwidths, $1.i * 2, $get($1.swidths, $1.i)); - $put($1.checkwidths, $1.i * 2 + 1, $get($1.bwidths, $1.i)); - } - $k[$j++] = Infinity; - var _5A = $1.d1w; - $k[$j++] = 1; - for (var _5B = 0, _5C = _5A.length; _5B < _5C; _5B++) { - $k[$j++] = $get(_5A, _5B); - } - var _5E = $1.checkwidths; - for (var _5F = 0, _5G = _5E.length; _5F < _5G; _5F++) { - $k[$j++] = $get(_5E, _5F); - } - var _5I = $1.d2w; - for (var _5J = 0, _5K = _5I.length; _5J < _5K; _5J++) { - $k[$j++] = $get(_5I, _5J); - } - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 5; - $1.sbs = $a(); - $k[$j++] = Infinity; - var _5N = $1.sbs; - $k[$j++] = Infinity; - for (var _5P = 0, _5Q = ~~(($1.sbs.length + 1) / 2); _5P < _5Q; _5P++) { - $k[$j++] = $1.height; - } - var _5S = $a(); - $k[$j++] = Infinity; - for (var _5U = 0, _5V = ~~(($1.sbs.length + 1) / 2); _5U < _5V; _5U++) { - $k[$j++] = 0; - } - var _5W = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _5N; - $k[$j++] = "bhs"; - $k[$j++] = _5S; - $k[$j++] = "bbs"; - $k[$j++] = _5W; - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - $k[$j++] = "textxalign"; - $k[$j++] = "center"; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _5Z = $d(); - $k[$j++] = _5Z; - if (!$1.dontdraw) { - $0.renlinear(); - } + $1.oe = $k[--$j]; //#7426 + $1.el = $k[--$j]; //#7427 + $1.mw = $k[--$j]; //#7428 + $1.nm = $k[--$j]; //#7429 + $1.val = $k[--$j]; //#7430 + $1.out = $a($1.el); //#7431 + $1.mask = 0; //#7432 + for (var _1W = 0, _1V = $f($1.el - 2); _1W <= _1V; _1W += 1) { //#7459 + $1.bar = _1W; //#7434 + $1.ew = 1; //#7435 + var _1Y = $1.bar; //#7436 + $1.mask = $1.mask | ((_1Y < 0 ? 1 >>> -_1Y : 1 << _1Y)); //#7436 + for (;;) { //#7455 + $k[$j++] = 'sval'; //#7437 + $k[$j++] = $f($f($1.nm - $1.ew) - 1); //#7437 + $k[$j++] = $f($f($1.el - $1.bar) - 2); //#7437 + $1.ncr(); //#7437 + var _1d = $k[--$j]; //#7437 + $1[$k[--$j]] = _1d; //#7437 + if (($1.oe && ($1.mask == 0)) && (($f(($f($f($1.nm - $1.ew) - ($1.el * 2))) + ($1.bar * 2))) >= -2)) { //#7440 + $k[$j++] = 'sval'; //#7439 + $k[$j++] = $1.sval; //#7439 + $k[$j++] = $f(($f($f($1.nm - $1.ew) - $1.el)) + $1.bar); //#7439 + $k[$j++] = $f($f($1.el - $1.bar) - 2); //#7439 + $1.ncr(); //#7439 + var _1s = $k[--$j]; //#7439 + var _1t = $k[--$j]; //#7439 + $1[$k[--$j]] = $f(_1t - _1s); //#7439 + } //#7439 + if ($f($1.el - $1.bar) > 2) { //#7449 + $1.lval = 0; //#7442 + for (var _23 = $f(($f(($f($f($1.nm - $1.ew) - $1.el)) + $1.bar)) + 2), _22 = $f($1.mw + 1); _23 >= _22; _23 -= 1) { //#7446 + $k[$j++] = $f(($f($f($1.nm - _23) - $1.ew)) - 1); //#7444 + $k[$j++] = $f($f($1.el - $1.bar) - 3); //#7444 + $1.ncr(); //#7444 + $1.lval = $f($k[--$j] + $1.lval); //#7445 + } //#7445 + $1.sval = $f($1.sval - ($1.lval * ($f($f($1.el - $1.bar) - 1)))); //#7447 + } else { //#7449 + if ($f($1.nm - $1.ew) > $1.mw) { //#7449 + $1.sval = $f($1.sval - 1); //#7449 + } //#7449 + } //#7449 + $1.val = $f($1.val - $1.sval); //#7451 + if ($1.val < 0) { //#7452 + break; //#7452 + } //#7452 + $1.ew = $1.ew + 1; //#7453 + var _2N = $1.bar; //#7454 + $1.mask = $1.mask & (~((_2N < 0 ? 1 >>> -_2N : 1 << _2N))); //#7454 + } //#7454 + $1.val = $f($1.val + $1.sval); //#7456 + $1.nm = $f($1.nm - $1.ew); //#7457 + $put($1.out, $1.bar, $1.ew); //#7458 + } //#7458 + $put($1.out, $f($1.el - 1), $1.nm); //#7460 + $k[$j++] = $1.out; //#7461 + }; //#7462 + for (var _2Z = 0; _2Z <= 11; _2Z += 1) { //#7468 + $1.i = _2Z; //#7465 + var _2a = $1.binval; //#7466 + var _2b = $1.i; //#7466 + $put(_2a, _2b + 1, $f($get(_2a, _2b + 1) + (($get($1.binval, $1.i) % 2013571) * 10))); //#7466 + $put($1.binval, $1.i, ~~($get($1.binval, $1.i) / 2013571)); //#7467 + } //#7467 + $1.d2 = $get($1.binval, 12) % 2013571; //#7469 + var _2n = $1.binval; //#7470 + $put(_2n, 12, ~~($get(_2n, 12) / 2013571)); //#7470 + $1.d1 = 0; //#7472 + $1.i = true; //#7473 + for (var _2p = 0; _2p <= 12; _2p += 1) { //#7483 + $1.j = _2p; //#7475 + var _2s = $get($1.binval, $1.j); //#7476 + $k[$j++] = _2s; //#7482 + if ((_2s == 0) && $1.i) { //#7481 + $j--; //#7478 + } else { //#7481 + $1.i = false; //#7480 + $1.d1 = $f($1.d1 + ($k[--$j] * (~~Math.pow(10, 12 - $1.j)))); //#7481 + } //#7481 + } //#7481 + $1.tab267 = $a([183063, 0, 17, 9, 6, 3, 6538, 28, 820063, 183064, 13, 13, 5, 4, 875, 728, 1000775, 820064, 9, 17, 3, 6, 28, 6454, 1491020, 1000776, 15, 11, 5, 4, 2415, 203, 1979844, 1491021, 11, 15, 4, 5, 203, 2408, 1996938, 1979845, 19, 7, 8, 1, 17094, 1, 2013570, 1996939, 7, 19, 1, 8, 1, 16632]); //#7493 + $1.i = 0; //#7495 + for (;;) { //#7505 + if ($1.d1 <= $get($1.tab267, $1.i)) { //#7503 + var _34 = $geti($1.tab267, $1.i + 1, 7); //#7497 + for (var _35 = 0, _36 = _34.length; _35 < _36; _35++) { //#7497 + $k[$j++] = $get(_34, _35); //#7497 + } //#7497 + $1.d1te = $k[--$j]; //#7498 + $1.d1to = $k[--$j]; //#7498 + $1.d1mwe = $k[--$j]; //#7499 + $1.d1mwo = $k[--$j]; //#7499 + $1.d1ele = $k[--$j]; //#7500 + $1.d1elo = $k[--$j]; //#7500 + $1.d1gs = $k[--$j]; //#7501 + break; //#7502 + } //#7502 + $1.i = $1.i + 8; //#7504 + } //#7504 + $1.i = 0; //#7507 + for (;;) { //#7517 + if ($1.d2 <= $get($1.tab267, $1.i)) { //#7515 + var _3M = $geti($1.tab267, $1.i + 1, 7); //#7509 + for (var _3N = 0, _3O = _3M.length; _3N < _3O; _3N++) { //#7509 + $k[$j++] = $get(_3M, _3N); //#7509 + } //#7509 + $1.d2te = $k[--$j]; //#7510 + $1.d2to = $k[--$j]; //#7510 + $1.d2mwe = $k[--$j]; //#7511 + $1.d2mwo = $k[--$j]; //#7511 + $1.d2ele = $k[--$j]; //#7512 + $1.d2elo = $k[--$j]; //#7512 + $1.d2gs = $k[--$j]; //#7513 + break; //#7514 + } //#7514 + $1.i = $1.i + 8; //#7516 + } //#7516 + $k[$j++] = 'd1wo'; //#7519 + $k[$j++] = ~~($f($1.d1 - $1.d1gs) / $1.d1te); //#7519 + $k[$j++] = $1.d1elo; //#7519 + $k[$j++] = $1.d1mwo; //#7519 + $k[$j++] = 7; //#7519 + $k[$j++] = false; //#7519 + $1.getRSSwidths(); //#7519 + var _3d = $k[--$j]; //#7519 + $1[$k[--$j]] = _3d; //#7519 + $k[$j++] = 'd1we'; //#7520 + $k[$j++] = $f($1.d1 - $1.d1gs) % $1.d1te; //#7520 + $k[$j++] = $1.d1ele; //#7520 + $k[$j++] = $1.d1mwe; //#7520 + $k[$j++] = 7; //#7520 + $k[$j++] = true; //#7520 + $1.getRSSwidths(); //#7520 + var _3k = $k[--$j]; //#7520 + $1[$k[--$j]] = _3k; //#7520 + $k[$j++] = 'd2wo'; //#7521 + $k[$j++] = ~~($f($1.d2 - $1.d2gs) / $1.d2te); //#7521 + $k[$j++] = $1.d2elo; //#7521 + $k[$j++] = $1.d2mwo; //#7521 + $k[$j++] = 7; //#7521 + $k[$j++] = false; //#7521 + $1.getRSSwidths(); //#7521 + var _3r = $k[--$j]; //#7521 + $1[$k[--$j]] = _3r; //#7521 + $k[$j++] = 'd2we'; //#7522 + $k[$j++] = $f($1.d2 - $1.d2gs) % $1.d2te; //#7522 + $k[$j++] = $1.d2ele; //#7522 + $k[$j++] = $1.d2mwe; //#7522 + $k[$j++] = 7; //#7522 + $k[$j++] = true; //#7522 + $1.getRSSwidths(); //#7522 + var _3y = $k[--$j]; //#7522 + $1[$k[--$j]] = _3y; //#7522 + $1.d1w = $a(14); //#7524 + for (var _41 = 0; _41 <= 6; _41 += 1) { //#7529 + $1.i = _41; //#7526 + $put($1.d1w, $1.i * 2, $get($1.d1wo, $1.i)); //#7527 + $put($1.d1w, ($1.i * 2) + 1, $get($1.d1we, $1.i)); //#7528 + } //#7528 + $1.d2w = $a(14); //#7531 + for (var _4D = 0; _4D <= 6; _4D += 1) { //#7536 + $1.i = _4D; //#7533 + $put($1.d2w, $1.i * 2, $get($1.d2wo, $1.i)); //#7534 + $put($1.d2w, ($1.i * 2) + 1, $get($1.d2we, $1.i)); //#7535 + } //#7535 + $k[$j++] = Infinity; //#7540 + var _4O = $1.d1w; //#7539 + for (var _4P = 0, _4Q = _4O.length; _4P < _4Q; _4P++) { //#7539 + $k[$j++] = $get(_4O, _4P); //#7539 + } //#7539 + var _4S = $1.d2w; //#7540 + for (var _4T = 0, _4U = _4S.length; _4T < _4U; _4T++) { //#7540 + $k[$j++] = $get(_4S, _4T); //#7540 + } //#7540 + $1.widths = $a(); //#7540 + $1.checkweights = $a([1, 3, 9, 27, 81, 65, 17, 51, 64, 14, 42, 37, 22, 66, 20, 60, 2, 6, 18, 54, 73, 41, 34, 13, 39, 28, 84, 74]); //#7546 + $k[$j++] = Infinity; //#7561 + for (var _4Y = 0; _4Y <= 43; _4Y += 1) { //#7549 + $k[$j++] = _4Y; //#7549 + } //#7549 + $k[$j++] = 45; //#7551 + $k[$j++] = 52; //#7551 + $k[$j++] = 57; //#7551 + for (var _4Z = 63; _4Z <= 66; _4Z += 1) { //#7551 + $k[$j++] = _4Z; //#7551 + } //#7551 + for (var _4a = 73; _4a <= 79; _4a += 1) { //#7552 + $k[$j++] = _4a; //#7552 + } //#7552 + $k[$j++] = 82; //#7554 + for (var _4b = 126; _4b <= 130; _4b += 1) { //#7554 + $k[$j++] = _4b; //#7554 + } //#7554 + $k[$j++] = 132; //#7556 + for (var _4c = 141; _4c <= 146; _4c += 1) { //#7556 + $k[$j++] = _4c; //#7556 + } //#7556 + for (var _4d = 210; _4d <= 217; _4d += 1) { //#7557 + $k[$j++] = _4d; //#7557 + } //#7557 + $k[$j++] = 220; //#7559 + for (var _4e = 316; _4e <= 320; _4e += 1) { //#7559 + $k[$j++] = _4e; //#7559 + } //#7559 + $k[$j++] = 322; //#7561 + $k[$j++] = 323; //#7561 + $k[$j++] = 326; //#7561 + $k[$j++] = 337; //#7561 + $1.checkseq = $a(); //#7561 + $1.checksum = 0; //#7564 + for (var _4g = 0; _4g <= 27; _4g += 1) { //#7568 + $1.i = _4g; //#7566 + $1.checksum = $f($1.checksum + ($get($1.widths, $1.i) * $get($1.checkweights, $1.i))); //#7567 + } //#7567 + $1.checksum = $1.checksum % 89; //#7569 + $1.seq = $get($1.checkseq, $1.checksum); //#7570 + $k[$j++] = 'swidths'; //#7571 + $k[$j++] = ~~($1.seq / 21); //#7571 + $k[$j++] = 8; //#7571 + $k[$j++] = 3; //#7571 + $k[$j++] = 6; //#7571 + $k[$j++] = false; //#7571 + $1.getRSSwidths(); //#7571 + var _4t = $k[--$j]; //#7571 + $1[$k[--$j]] = _4t; //#7571 + $k[$j++] = 'bwidths'; //#7572 + $k[$j++] = $1.seq % 21; //#7572 + $k[$j++] = 8; //#7572 + $k[$j++] = 3; //#7572 + $k[$j++] = 6; //#7572 + $k[$j++] = false; //#7572 + $1.getRSSwidths(); //#7572 + var _4w = $k[--$j]; //#7572 + $1[$k[--$j]] = _4w; //#7572 + $1.checkwidths = $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1]); //#7574 + for (var _4z = 0; _4z <= 5; _4z += 1) { //#7579 + $1.i = _4z; //#7576 + $put($1.checkwidths, $1.i * 2, $get($1.swidths, $1.i)); //#7577 + $put($1.checkwidths, ($1.i * 2) + 1, $get($1.bwidths, $1.i)); //#7578 + } //#7578 + $k[$j++] = Infinity; //#7582 + var _5A = $1.d1w; //#7582 + $k[$j++] = 1; //#7582 + for (var _5B = 0, _5C = _5A.length; _5B < _5C; _5B++) { //#7582 + $k[$j++] = $get(_5A, _5B); //#7582 + } //#7582 + var _5E = $1.checkwidths; //#7582 + for (var _5F = 0, _5G = _5E.length; _5F < _5G; _5F++) { //#7582 + $k[$j++] = $get(_5E, _5F); //#7582 + } //#7582 + var _5I = $1.d2w; //#7582 + for (var _5J = 0, _5K = _5I.length; _5J < _5K; _5J++) { //#7582 + $k[$j++] = $get(_5I, _5J); //#7582 + } //#7582 + $k[$j++] = 1; //#7582 + $k[$j++] = 1; //#7582 + $k[$j++] = 5; //#7582 + $1.sbs = $a(); //#7582 + $k[$j++] = Infinity; //#7593 + var _5N = $1.sbs; //#7588 + $k[$j++] = Infinity; //#7589 + for (var _5P = 0, _5Q = ~~(($1.sbs.length + 1) / 2); _5P < _5Q; _5P++) { //#7589 + $k[$j++] = $1.height; //#7589 + } //#7589 + var _5S = $a(); //#7589 + $k[$j++] = Infinity; //#7590 + for (var _5U = 0, _5V = ~~(($1.sbs.length + 1) / 2); _5U < _5V; _5U++) { //#7590 + $k[$j++] = 0; //#7590 + } //#7590 + var _5W = $a(); //#7590 + $k[$j++] = 'ren'; //#7593 + $k[$j++] = $0.renlinear; //#7593 + $k[$j++] = 'sbs'; //#7593 + $k[$j++] = _5N; //#7593 + $k[$j++] = 'bhs'; //#7593 + $k[$j++] = _5S; //#7593 + $k[$j++] = 'bbs'; //#7593 + $k[$j++] = _5W; //#7593 + $k[$j++] = 'txt'; //#7593 + $k[$j++] = $1.txt; //#7593 + $k[$j++] = 'textxalign'; //#7593 + $k[$j++] = "center"; //#7593 + $k[$j++] = 'opt'; //#7593 + $k[$j++] = $1.options; //#7593 + var _5Z = $d(); //#7593 + $k[$j++] = _5Z; //#7596 + if (!$1.dontdraw) { //#7596 + $0.renlinear(); //#7596 + } //#7596 }; $0.databarexpanded = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.parse = false; - $1.dontlint = false; - $1.dontdraw = false; - $1.height = 34 / 72; - $1.format = "expanded"; - $1.segments = -1; - $1.linkage = false; - $1.barxmult = 34; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.height = +$1.height; - $1.segments = ~~$1.segments; - $1.barxmult = ~~$1.barxmult; - if ($1.segments == -1) { - var _A = $eq($1.format, "expandedstacked") ? 4 : 22; - $1.segments = _A; - } else { - if ($1.segments < 2 || $1.segments > 22 || $1.segments % 2 != 0) { - $k[$j++] = "bwipp.gs1databarexpandedBadSegments"; - $k[$j++] = "The number of segments must be even from 2 to 22"; - $0.raiseerror(); - } - } + var $1 = {}; //#7628 + $1.options = $k[--$j]; //#7630 + $1.barcode = $k[--$j]; //#7631 + $1.parse = false; //#7633 + $1.dontlint = false; //#7634 + $1.dontdraw = false; //#7635 + $1.height = 34 / 72; //#7636 + $1.format = "expanded"; //#7637 + $1.segments = -1; //#7638 + $1.linkage = false; //#7639 + $1.barxmult = 34; //#7640 + $forall($1.options, function() { //#7651 + var _3 = $k[--$j]; //#7651 + $1[$k[--$j]] = _3; //#7651 + }); //#7651 + $1.height = +$1.height; //#7653 + $1.segments = ~~$1.segments; //#7654 + $1.barxmult = ~~$1.barxmult; //#7655 + if ($1.segments == -1) { //#7661 + var _A = $eq($1.format, "expandedstacked") ? 4 : 22; //#7658 + $1.segments = _A; //#7658 + } else { //#7661 + if ((($1.segments < 2) || ($1.segments > 22)) || (($1.segments % 2) != 0)) { //#7662 + $k[$j++] = 'bwipp.gs1databarexpandedBadSegments'; //#7661 + $k[$j++] = "The number of segments must be even from 2 to 22"; //#7661 + $0.raiseerror(); //#7661 + } //#7661 + } //#7661 $1.expand = function() { - var _F = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _F; - $k[$j++] = $1.fncvals; - $0.parseinput(); - }; - $1.ais = $a([]); - $1.vals = $a([]); - var _J = $1.barcode; - $k[$j++] = $geti(_J, 1, _J.length - 1); - for (;;) { - var _L = $k[--$j]; - $k[$j++] = _L; - if ($eq(_L, "")) { - break; - } - $search($k[--$j], ")"); - $j--; - var _N = $k[--$j]; - var _O = $k[--$j]; - $k[$j++] = _N; - $k[$j++] = _O; - $j--; - var _P = $k[--$j]; - var _Q = $k[--$j]; - $k[$j++] = _P; - $search(_Q, "("); - if ($k[--$j]) { - var _S = $k[--$j]; - var _T = $k[--$j]; - $k[$j++] = _S; - $k[$j++] = _T; - $j--; - var _U = $k[--$j]; - var _V = $k[--$j]; - var _W = $k[--$j]; - $k[$j++] = _V; - $k[$j++] = _W; - $k[$j++] = _U; - } else { - var _X = $k[--$j]; - var _Y = $k[--$j]; - $k[$j++] = ""; - $k[$j++] = _Y; - $k[$j++] = _X; - } - $k[$j++] = Infinity; - $aload($1.ais); - var _b = $k[$j - 1 - ($counttomark() + 2)]; - $k[$j++] = _b; - $1.ais = $a(); - $k[$j++] = Infinity; - $aload($1.vals); - var _f = $k[$j - 1 - ($counttomark() + 1)]; - $k[$j++] = _f; - $1.expand(); - $1.vals = $a(); - $j -= 2; - } - $j--; - if (!$1.dontlint) { - $k[$j++] = $1.ais; - $k[$j++] = $1.vals; - $0.gs1lint(); - $j--; - } - for (;;) { - if ($1.ais.length == 2) { - if ($eq($get($1.ais, 0), "01") && $eq($get($1.ais, 1), "3103")) { - if ($eq($geti($get($1.vals, 0), 0, 1), "9") && ~~$z($get($1.vals, 1)) <= 32767) { - $k[$j++] = "0100"; - $k[$j++] = false; - break; - } - } - } - if ($1.ais.length == 2) { - if ($eq($get($1.ais, 0), "01") && $eq($get($1.ais, 1), "3202")) { - if ($eq($geti($get($1.vals, 0), 0, 1), "9") && ~~$z($get($1.vals, 1)) <= 9999) { - $k[$j++] = "0101"; - $k[$j++] = false; - break; - } - } - } - if ($1.ais.length == 2) { - if ($eq($get($1.ais, 0), "01") && $eq($get($1.ais, 1), "3203")) { - if ($eq($geti($get($1.vals, 0), 0, 1), "9") && ~~$z($get($1.vals, 1)) <= 22767) { - $k[$j++] = "0101"; - $k[$j++] = false; - break; - } - } - } - var _1F = $1.ais.length; - if (_1F == 2 || _1F == 3) { - $k[$j++] = "ai310x"; - $k[$j++] = false; - for (var _1G = 3100; _1G <= 3109; _1G += 1) { - var _1L = $k[--$j]; - $k[$j++] = _1L || $eq($cvrs($s(4), _1G, 10), $get($1.ais, 1)); - } - var _1M = $k[--$j]; - $1[$k[--$j]] = _1M; - $k[$j++] = "ai320x"; - $k[$j++] = false; - for (var _1O = 3200; _1O <= 3209; _1O += 1) { - var _1T = $k[--$j]; - $k[$j++] = _1T || $eq($cvrs($s(4), _1O, 10), $get($1.ais, 1)); - } - var _1U = $k[--$j]; - $1[$k[--$j]] = _1U; - if ($1.ais.length == 3) { - var _1X = $a([ "11", "13", "15", "17" ]); - $k[$j++] = "aibad"; - $k[$j++] = true; - for (var _1Y = 0, _1Z = _1X.length; _1Y < _1Z; _1Y++) { - var _1d = $k[--$j]; - $k[$j++] = _1d && $ne($get(_1X, _1Y), $get($1.ais, 2)); - } - var _1e = $k[--$j]; - $1[$k[--$j]] = _1e; - } else { - $1.aibad = false; - } - if ($eq($get($1.ais, 0), "01") && ($1.ai310x || $1.ai320x) && !$1.aibad) { - if ($1.ais.length == 3) { - var _1u = ~~$z($geti($get($1.vals, 2), 2, 2)); - var _1y = ~~$z($geti($get($1.vals, 2), 4, 2)); - if ($eq($geti($get($1.vals, 0), 0, 1), "9") && ~~$z($get($1.vals, 1)) <= 99999 && (_1u >= 1 && _1u <= 12) && (_1y >= 0 && _1y <= 31)) { - if ($1.ai310x && $eq($get($1.ais, 2), "11")) { - $k[$j++] = "0111000"; - $k[$j++] = false; - break; - } - if ($1.ai320x && $eq($get($1.ais, 2), "11")) { - $k[$j++] = "0111001"; - $k[$j++] = false; - break; - } - if ($1.ai310x && $eq($get($1.ais, 2), "13")) { - $k[$j++] = "0111010"; - $k[$j++] = false; - break; - } - if ($1.ai320x && $eq($get($1.ais, 2), "13")) { - $k[$j++] = "0111011"; - $k[$j++] = false; - break; - } - if ($1.ai310x && $eq($get($1.ais, 2), "15")) { - $k[$j++] = "0111100"; - $k[$j++] = false; - break; - } - if ($1.ai320x && $eq($get($1.ais, 2), "15")) { - $k[$j++] = "0111101"; - $k[$j++] = false; - break; - } - if ($1.ai310x && $eq($get($1.ais, 2), "17")) { - $k[$j++] = "0111110"; - $k[$j++] = false; - break; - } - if ($1.ai320x && $eq($get($1.ais, 2), "17")) { - $k[$j++] = "0111111"; - $k[$j++] = false; - break; - } - } - } else { - if ($eq($geti($get($1.vals, 0), 0, 1), "9") && ~~$z($get($1.vals, 1)) <= 99999) { - if ($1.ai310x) { - $k[$j++] = "0111000"; - $k[$j++] = false; - break; - } - if ($1.ai320x) { - $k[$j++] = "0111001"; - $k[$j++] = false; - break; - } - } - } - } - } - if ($1.ais.length >= 2) { - $k[$j++] = "ai392x"; - $k[$j++] = false; - for (var _2V = 3920; _2V <= 3923; _2V += 1) { - var _2a = $k[--$j]; - $k[$j++] = _2a || $eq($cvrs($s(4), _2V, 10), $get($1.ais, 1)); - } - var _2b = $k[--$j]; - $1[$k[--$j]] = _2b; - if ($eq($get($1.ais, 0), "01") && $1.ai392x) { - if ($eq($geti($get($1.vals, 0), 0, 1), "9")) { - $k[$j++] = "01100"; - $k[$j++] = true; - break; - } - } - } - if ($1.ais.length >= 2) { - $k[$j++] = "ai393x"; - $k[$j++] = false; - for (var _2k = 3930; _2k <= 3933; _2k += 1) { - var _2p = $k[--$j]; - $k[$j++] = _2p || $eq($cvrs($s(4), _2k, 10), $get($1.ais, 1)); - } - var _2q = $k[--$j]; - $1[$k[--$j]] = _2q; - if ($eq($get($1.ais, 0), "01") && $1.ai393x) { - if ($eq($geti($get($1.vals, 0), 0, 1), "9")) { - $k[$j++] = "01101"; - $k[$j++] = true; - break; - } - } - } - if ($eq($get($1.ais, 0), "01")) { - $k[$j++] = "1"; - $k[$j++] = true; - break; - } - $k[$j++] = "00"; - $k[$j++] = true; - break; - } - $1.gpfallow = $k[--$j]; - $1.method = $k[--$j]; + var _F = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#7670 + $1.fncvals = _F; //#7671 + $k[$j++] = $1.fncvals; //#7672 + $0.parseinput(); //#7672 + }; //#7673 + $1.ais = $a([]); //#7676 + $1.vals = $a([]); //#7677 + var _J = $1.barcode; //#7678 + $k[$j++] = $geti(_J, 1, _J.length - 1); //#7691 + for (;;) { //#7691 + var _L = $k[--$j]; //#7680 + $k[$j++] = _L; //#7680 + if ($eq(_L, "")) { //#7680 + break; //#7680 + } //#7680 + $search($k[--$j], ")"); //#7681 + $j--; //#7681 + var _N = $k[--$j]; //#7682 + var _O = $k[--$j]; //#7682 + $k[$j++] = _N; //#7682 + $k[$j++] = _O; //#7682 + $j--; //#7682 + var _P = $k[--$j]; //#7683 + var _Q = $k[--$j]; //#7683 + $k[$j++] = _P; //#7683 + $search(_Q, "("); //#7683 + if ($k[--$j]) { //#7686 + var _S = $k[--$j]; //#7684 + var _T = $k[--$j]; //#7684 + $k[$j++] = _S; //#7684 + $k[$j++] = _T; //#7684 + $j--; //#7684 + var _U = $k[--$j]; //#7684 + var _V = $k[--$j]; //#7684 + var _W = $k[--$j]; //#7684 + $k[$j++] = _V; //#7684 + $k[$j++] = _W; //#7684 + $k[$j++] = _U; //#7684 + } else { //#7686 + var _X = $k[--$j]; //#7686 + var _Y = $k[--$j]; //#7686 + $k[$j++] = ""; //#7686 + $k[$j++] = _Y; //#7686 + $k[$j++] = _X; //#7686 + } //#7686 + $k[$j++] = Infinity; //#7688 + $aload($1.ais); //#7688 + var _b = $k[$j - 1 - ($counttomark() + 2)]; //#7688 + $k[$j++] = _b; //#7688 + $1.ais = $a(); //#7688 + $k[$j++] = Infinity; //#7689 + $aload($1.vals); //#7689 + var _f = $k[$j - 1 - ($counttomark() + 1)]; //#7689 + $k[$j++] = _f; //#7689 + $1.expand(); //#7689 + $1.vals = $a(); //#7689 + $j -= 2; //#7690 + } //#7690 + $j--; //#7692 + if (!$1.dontlint) { //#7694 + $k[$j++] = $1.ais; //#7694 + $k[$j++] = $1.vals; //#7694 + $0.gs1lint(); //#7694 + $j--; //#7694 + } //#7694 + for (;;) { //#7782 + if ($1.ais.length == 2) { //#7706 + if ($eq($get($1.ais, 0), "01") && $eq($get($1.ais, 1), "3103")) { //#7705 + if ($eq($geti($get($1.vals, 0), 0, 1), "9") && ((~~$z($get($1.vals, 1))) <= 32767)) { //#7704 + $k[$j++] = "0100"; //#7703 + $k[$j++] = false; //#7703 + break; //#7703 + } //#7703 + } //#7703 + } //#7703 + if ($1.ais.length == 2) { //#7715 + if ($eq($get($1.ais, 0), "01") && $eq($get($1.ais, 1), "3202")) { //#7714 + if ($eq($geti($get($1.vals, 0), 0, 1), "9") && ((~~$z($get($1.vals, 1))) <= 9999)) { //#7713 + $k[$j++] = "0101"; //#7712 + $k[$j++] = false; //#7712 + break; //#7712 + } //#7712 + } //#7712 + } //#7712 + if ($1.ais.length == 2) { //#7724 + if ($eq($get($1.ais, 0), "01") && $eq($get($1.ais, 1), "3203")) { //#7723 + if ($eq($geti($get($1.vals, 0), 0, 1), "9") && ((~~$z($get($1.vals, 1))) <= 22767)) { //#7722 + $k[$j++] = "0101"; //#7721 + $k[$j++] = false; //#7721 + break; //#7721 + } //#7721 + } //#7721 + } //#7721 + var _1F = $1.ais.length; //#7727 + if ((_1F == 2) || (_1F == 3)) { //#7758 + $k[$j++] = 'ai310x'; //#7728 + $k[$j++] = false; //#7728 + for (var _1G = 3100; _1G <= 3109; _1G += 1) { //#7728 + var _1L = $k[--$j]; //#7728 + $k[$j++] = _1L || $eq($cvrs($s(4), _1G, 10), $get($1.ais, 1)); //#7728 + } //#7728 + var _1M = $k[--$j]; //#7728 + $1[$k[--$j]] = _1M; //#7728 + $k[$j++] = 'ai320x'; //#7729 + $k[$j++] = false; //#7729 + for (var _1O = 3200; _1O <= 3209; _1O += 1) { //#7729 + var _1T = $k[--$j]; //#7729 + $k[$j++] = _1T || $eq($cvrs($s(4), _1O, 10), $get($1.ais, 1)); //#7729 + } //#7729 + var _1U = $k[--$j]; //#7729 + $1[$k[--$j]] = _1U; //#7729 + if ($1.ais.length == 3) { //#7733 + var _1X = $a(["11", "13", "15", "17"]); //#7731 + $k[$j++] = 'aibad'; //#7731 + $k[$j++] = true; //#7731 + for (var _1Y = 0, _1Z = _1X.length; _1Y < _1Z; _1Y++) { //#7731 + var _1d = $k[--$j]; //#7731 + $k[$j++] = _1d && $ne($get(_1X, _1Y), $get($1.ais, 2)); //#7731 + } //#7731 + var _1e = $k[--$j]; //#7731 + $1[$k[--$j]] = _1e; //#7731 + } else { //#7733 + $1.aibad = false; //#7733 + } //#7733 + if (($eq($get($1.ais, 0), "01") && ($1.ai310x || $1.ai320x)) && (!$1.aibad)) { //#7757 + if ($1.ais.length == 3) { //#7754 + var _1u = ~~$z($geti($get($1.vals, 2), 2, 2)); //#7739 + var _1y = ~~$z($geti($get($1.vals, 2), 4, 2)); //#7740 + if ((($eq($geti($get($1.vals, 0), 0, 1), "9") && ((~~$z($get($1.vals, 1))) <= 99999)) && ((_1u >= 1) && (_1u <= 12))) && ((_1y >= 0) && (_1y <= 31))) { //#7749 + if ($1.ai310x && $eq($get($1.ais, 2), "11")) { //#7741 + $k[$j++] = "0111000"; //#7741 + $k[$j++] = false; //#7741 + break; //#7741 + } //#7741 + if ($1.ai320x && $eq($get($1.ais, 2), "11")) { //#7742 + $k[$j++] = "0111001"; //#7742 + $k[$j++] = false; //#7742 + break; //#7742 + } //#7742 + if ($1.ai310x && $eq($get($1.ais, 2), "13")) { //#7743 + $k[$j++] = "0111010"; //#7743 + $k[$j++] = false; //#7743 + break; //#7743 + } //#7743 + if ($1.ai320x && $eq($get($1.ais, 2), "13")) { //#7744 + $k[$j++] = "0111011"; //#7744 + $k[$j++] = false; //#7744 + break; //#7744 + } //#7744 + if ($1.ai310x && $eq($get($1.ais, 2), "15")) { //#7745 + $k[$j++] = "0111100"; //#7745 + $k[$j++] = false; //#7745 + break; //#7745 + } //#7745 + if ($1.ai320x && $eq($get($1.ais, 2), "15")) { //#7746 + $k[$j++] = "0111101"; //#7746 + $k[$j++] = false; //#7746 + break; //#7746 + } //#7746 + if ($1.ai310x && $eq($get($1.ais, 2), "17")) { //#7747 + $k[$j++] = "0111110"; //#7747 + $k[$j++] = false; //#7747 + break; //#7747 + } //#7747 + if ($1.ai320x && $eq($get($1.ais, 2), "17")) { //#7748 + $k[$j++] = "0111111"; //#7748 + $k[$j++] = false; //#7748 + break; //#7748 + } //#7748 + } //#7748 + } else { //#7754 + if ($eq($geti($get($1.vals, 0), 0, 1), "9") && ((~~$z($get($1.vals, 1))) <= 99999)) { //#7755 + if ($1.ai310x) { //#7753 + $k[$j++] = "0111000"; //#7753 + $k[$j++] = false; //#7753 + break; //#7753 + } //#7753 + if ($1.ai320x) { //#7754 + $k[$j++] = "0111001"; //#7754 + $k[$j++] = false; //#7754 + break; //#7754 + } //#7754 + } //#7754 + } //#7754 + } //#7754 + } //#7754 + if ($1.ais.length >= 2) { //#7766 + $k[$j++] = 'ai392x'; //#7762 + $k[$j++] = false; //#7762 + for (var _2V = 3920; _2V <= 3923; _2V += 1) { //#7762 + var _2a = $k[--$j]; //#7762 + $k[$j++] = _2a || $eq($cvrs($s(4), _2V, 10), $get($1.ais, 1)); //#7762 + } //#7762 + var _2b = $k[--$j]; //#7762 + $1[$k[--$j]] = _2b; //#7762 + if ($eq($get($1.ais, 0), "01") && $1.ai392x) { //#7765 + if ($eq($geti($get($1.vals, 0), 0, 1), "9")) { //#7764 + $k[$j++] = "01100"; //#7764 + $k[$j++] = true; //#7764 + break; //#7764 + } //#7764 + } //#7764 + } //#7764 + if ($1.ais.length >= 2) { //#7774 + $k[$j++] = 'ai393x'; //#7770 + $k[$j++] = false; //#7770 + for (var _2k = 3930; _2k <= 3933; _2k += 1) { //#7770 + var _2p = $k[--$j]; //#7770 + $k[$j++] = _2p || $eq($cvrs($s(4), _2k, 10), $get($1.ais, 1)); //#7770 + } //#7770 + var _2q = $k[--$j]; //#7770 + $1[$k[--$j]] = _2q; //#7770 + if ($eq($get($1.ais, 0), "01") && $1.ai393x) { //#7773 + if ($eq($geti($get($1.vals, 0), 0, 1), "9")) { //#7772 + $k[$j++] = "01101"; //#7772 + $k[$j++] = true; //#7772 + break; //#7772 + } //#7772 + } //#7772 + } //#7772 + if ($eq($get($1.ais, 0), "01")) { //#7777 + $k[$j++] = "1"; //#7777 + $k[$j++] = true; //#7777 + break; //#7777 + } //#7777 + $k[$j++] = "00"; //#7780 + $k[$j++] = true; //#7780 + break; //#7780 + } //#7780 + $1.gpfallow = $k[--$j]; //#7783 + $1.method = $k[--$j]; //#7784 $1.conv12to40 = function() { - var _33 = $strcpy($s(40), "0000000000000000000000000000000000000000"); - var _34 = $k[--$j]; - var _38 = $cvrs($s(10), ~~$z($geti(_34, 0, 3)), 2); - $puti($geti(_33, 0, 10), 10 - _38.length, _38); - var _3C = $cvrs($s(10), ~~$z($geti(_34, 3, 3)), 2); - $puti($geti(_33, 10, 10), 10 - _3C.length, _3C); - var _3G = $cvrs($s(10), ~~$z($geti(_34, 6, 3)), 2); - $puti($geti(_33, 20, 10), 10 - _3G.length, _3G); - var _3K = $cvrs($s(10), ~~$z($geti(_34, 9, 3)), 2); - $puti($geti(_33, 30, 10), 10 - _3K.length, _3K); - $k[$j++] = _33; - $k[$j++] = _34; - $j--; - }; + var _33 = $strcpy($s(40), "0000000000000000000000000000000000000000"); //#7787 + var _34 = $k[--$j]; //#7788 + var _38 = $cvrs($s(10), ~~$z($geti(_34, 0, 3)), 2); //#7788 + $puti($geti(_33, 0, 10), 10 - _38.length, _38); //#7788 + var _3C = $cvrs($s(10), ~~$z($geti(_34, 3, 3)), 2); //#7789 + $puti($geti(_33, 10, 10), 10 - _3C.length, _3C); //#7789 + var _3G = $cvrs($s(10), ~~$z($geti(_34, 6, 3)), 2); //#7790 + $puti($geti(_33, 20, 10), 10 - _3G.length, _3G); //#7790 + var _3K = $cvrs($s(10), ~~$z($geti(_34, 9, 3)), 2); //#7791 + $puti($geti(_33, 30, 10), 10 - _3K.length, _3K); //#7791 + $k[$j++] = _33; //#7792 + $k[$j++] = _34; //#7792 + $j--; //#7792 + }; //#7793 $1.conv13to44 = function() { - var _3M = $strcpy($s(44), "00000000000000000000000000000000000000000000"); - var _3N = $k[--$j]; - var _3R = $cvrs($s(4), ~~$z($geti(_3N, 0, 1)), 2); - $puti($geti(_3M, 0, 4), 4 - _3R.length, _3R); - $k[$j++] = _3M; - $k[$j++] = _3M; - $k[$j++] = $geti(_3N, 1, 12); - $1.conv12to40(); - var _3T = $k[--$j]; - $puti($k[--$j], 4, _3T); - }; + var _3M = $strcpy($s(44), "00000000000000000000000000000000000000000000"); //#7796 + var _3N = $k[--$j]; //#7797 + var _3R = $cvrs($s(4), ~~$z($geti(_3N, 0, 1)), 2); //#7797 + $puti($geti(_3M, 0, 4), 4 - _3R.length, _3R); //#7797 + $k[$j++] = _3M; //#7798 + $k[$j++] = _3M; //#7798 + $k[$j++] = $geti(_3N, 1, 12); //#7798 + $1.conv12to40(); //#7798 + var _3T = $k[--$j]; //#7798 + $puti($k[--$j], 4, _3T); //#7798 + }; //#7799 $1.tobin = function() { - var _3W = $s($k[--$j]); - $k[$j++] = _3W; - for (var _3Y = 0, _3X = _3W.length - 1; _3Y <= _3X; _3Y += 1) { - var _3Z = $k[--$j]; - $put(_3Z, _3Y, 48); - $k[$j++] = _3Z; - } - var _3a = $k[--$j]; - var _3d = $cvrs($s(_3a.length), $k[--$j], 2); - $puti(_3a, _3a.length - _3d.length, _3d); - $k[$j++] = _3a; - }; - $1.fnc1 = -1; - $1.lnumeric = -2; - $1.lalphanumeric = -3; - $1.liso646 = -4; - if ($eq($1.method, "00")) { - $1.cdf = $a([]); - $1.gpf = $a([]); - } - if ($eq($1.method, "1")) { - $k[$j++] = "cdf"; - $k[$j++] = $geti($get($1.vals, 0), 0, 13); - $1.conv13to44(); - var _3l = $k[--$j]; - $1[$k[--$j]] = _3l; - $k[$j++] = Infinity; - var _3n = $1.cdf; - for (var _3o = 0, _3p = _3n.length; _3o < _3p; _3o++) { - $k[$j++] = $f($get(_3n, _3o) - 48); - } - $1.cdf = $a(); - $1.gpf = $a([]); - $1.ais = $geti($1.ais, 1, $1.ais.length - 1); - $1.vals = $geti($1.vals, 1, $1.vals.length - 1); - } - if ($eq($1.method, "0100")) { - $1.cdf = $s(55); - $k[$j++] = $1.cdf; - $k[$j++] = 0; - $k[$j++] = $geti($get($1.vals, 0), 1, 12); - $1.conv12to40(); - var _45 = $k[--$j]; - var _46 = $k[--$j]; - $puti($k[--$j], _46, _45); - $k[$j++] = $1.cdf; - $k[$j++] = 40; - $k[$j++] = ~~$z($get($1.vals, 1)); - $k[$j++] = 15; - $1.tobin(); - var _4B = $k[--$j]; - var _4C = $k[--$j]; - $puti($k[--$j], _4C, _4B); - $k[$j++] = Infinity; - var _4E = $1.cdf; - for (var _4F = 0, _4G = _4E.length; _4F < _4G; _4F++) { - $k[$j++] = $get(_4E, _4F) - 48; - } - $1.cdf = $a(); - $1.gpf = $a([]); - $1.ais = $a([]); - $1.vals = $a([]); - } - if ($eq($1.method, "0101")) { - $1.cdf = $s(55); - $k[$j++] = $1.cdf; - $k[$j++] = 0; - $k[$j++] = $geti($get($1.vals, 0), 1, 12); - $1.conv12to40(); - var _4S = $k[--$j]; - var _4T = $k[--$j]; - $puti($k[--$j], _4T, _4S); - if ($eq($get($1.ais, 1), "3202")) { - $k[$j++] = ~~$z($get($1.vals, 1)); - $k[$j++] = 15; - $1.tobin(); - } else { - $k[$j++] = ~~$z($get($1.vals, 1)) + 1e4; - $k[$j++] = 15; - $1.tobin(); - } - $puti($1.cdf, 40, $k[--$j]); - $k[$j++] = Infinity; - var _4d = $1.cdf; - for (var _4e = 0, _4f = _4d.length; _4e < _4f; _4e++) { - $k[$j++] = $get(_4d, _4e) - 48; - } - $1.cdf = $a(); - $1.gpf = $a([]); - $1.ais = $a([]); - $1.vals = $a([]); - } - if ($1.method.length == 7) { - $1.cdf = $s(76); - $k[$j++] = $1.cdf; - $k[$j++] = 0; - $k[$j++] = $geti($get($1.vals, 0), 1, 12); - $1.conv12to40(); - var _4r = $k[--$j]; - var _4s = $k[--$j]; - $puti($k[--$j], _4s, _4r); - var _4u = $s(6); - $puti(_4u, 0, $geti($get($1.ais, 1), 3, 1)); - $puti(_4u, 1, $geti($get($1.vals, 1), 1, 5)); - $k[$j++] = ~~$z(_4u); - $k[$j++] = 20; - $1.tobin(); - $puti($1.cdf, 40, $k[--$j]); - if ($1.ais.length == 3) { - var _55 = $get($1.vals, 2); - $k[$j++] = ~~$z($geti(_55, 0, 2)) * 384 + ((~~$z($geti(_55, 2, 2)) - 1) * 32 + ~~$z($geti(_55, 4, 2))); - } else { - $k[$j++] = 38400; - } - $k[$j++] = 16; - $1.tobin(); - $puti($1.cdf, 60, $k[--$j]); - $k[$j++] = Infinity; - var _5B = $1.cdf; - for (var _5C = 0, _5D = _5B.length; _5C < _5D; _5C++) { - $k[$j++] = $get(_5B, _5C) - 48; - } - $1.cdf = $a(); - $1.gpf = $a([]); - $1.ais = $a([]); - $1.vals = $a([]); - } - if ($eq($1.method, "01100")) { - $1.cdf = $s(42); - $k[$j++] = $1.cdf; - $k[$j++] = 0; - $k[$j++] = $geti($get($1.vals, 0), 1, 12); - $1.conv12to40(); - var _5P = $k[--$j]; - var _5Q = $k[--$j]; - $puti($k[--$j], _5Q, _5P); - $k[$j++] = $1.cdf; - $k[$j++] = 40; - $k[$j++] = ~~$z($geti($get($1.ais, 1), 3, 1)); - $k[$j++] = 2; - $1.tobin(); - var _5W = $k[--$j]; - var _5X = $k[--$j]; - $puti($k[--$j], _5X, _5W); - $k[$j++] = Infinity; - var _5Z = $1.cdf; - for (var _5a = 0, _5b = _5Z.length; _5a < _5b; _5a++) { - $k[$j++] = $get(_5Z, _5a) - 48; - } - $1.cdf = $a(); - $k[$j++] = Infinity; - $forall($get($1.vals, 1)); - if ($1.ais.length > 2) { - $k[$j++] = $1.fnc1; - } - $1.gpf = $a(); - $1.ais = $geti($1.ais, 2, $1.ais.length - 2); - $1.vals = $geti($1.vals, 2, $1.vals.length - 2); - } - if ($eq($1.method, "01101")) { - $1.cdf = $s(52); - $k[$j++] = $1.cdf; - $k[$j++] = 0; - $k[$j++] = $geti($get($1.vals, 0), 1, 12); - $1.conv12to40(); - var _5v = $k[--$j]; - var _5w = $k[--$j]; - $puti($k[--$j], _5w, _5v); - $k[$j++] = $1.cdf; - $k[$j++] = 40; - $k[$j++] = ~~$z($geti($get($1.ais, 1), 3, 1)); - $k[$j++] = 2; - $1.tobin(); - var _62 = $k[--$j]; - var _63 = $k[--$j]; - $puti($k[--$j], _63, _62); - $k[$j++] = $1.cdf; - $k[$j++] = 42; - $k[$j++] = ~~$z($geti($get($1.vals, 1), 0, 3)); - $k[$j++] = 10; - $1.tobin(); - var _69 = $k[--$j]; - var _6A = $k[--$j]; - $puti($k[--$j], _6A, _69); - $k[$j++] = Infinity; - var _6C = $1.cdf; - for (var _6D = 0, _6E = _6C.length; _6D < _6E; _6D++) { - $k[$j++] = $get(_6C, _6D) - 48; - } - $1.cdf = $a(); - $k[$j++] = Infinity; - var _6I = $get($1.vals, 1); - var _6J = $geti(_6I, 3, _6I.length - 3); - for (var _6K = 0, _6L = _6J.length; _6K < _6L; _6K++) { - $k[$j++] = $get(_6J, _6K); - } - if ($1.ais.length > 2) { - $k[$j++] = $1.fnc1; - } - $1.gpf = $a(); - $1.ais = $geti($1.ais, 2, $1.ais.length - 2); - $1.vals = $geti($1.vals, 2, $1.vals.length - 2); - } - if ($1.gpfallow) { - $1.vlf = $a(2); - } else { - $1.vlf = $a([]); - } - $1.aifixed = new Map(); - $k[$j++] = Infinity; - for (var _6Z = 0; _6Z <= 4; _6Z += 1) { - $k[$j++] = _6Z; - } - var _6a = $a(); - for (var _6b = 0, _6c = _6a.length; _6b < _6c; _6b++) { - var _6f = $strcpy($s(2), "00"); - $put(_6f, 1, $f($get(_6a, _6b) + 48)); - $put($1.aifixed, _6f, _6f); - } - $k[$j++] = Infinity; - for (var _6h = 11; _6h <= 20; _6h += 1) { - $k[$j++] = _6h; - } - $k[$j++] = 23; - for (var _6i = 31; _6i <= 36; _6i += 1) { - $k[$j++] = _6i; - } - $k[$j++] = 41; - var _6j = $a(); - for (var _6k = 0, _6l = _6j.length; _6k < _6l; _6k++) { - var _6o = $cvrs($s(2), $get(_6j, _6k), 10); - $put($1.aifixed, _6o, _6o); - } - $k[$j++] = Infinity; - for (var _6q = 0; _6q <= 119; _6q += 1) { - var _6s = $strcpy($s(2), "00"); - var _6u = $cvrs($s(2), _6q, 11); - $puti(_6s, 2 - _6u.length, _6u); - $k[$j++] = _6q; - $k[$j++] = _6s; - if ($get(_6s, 0) == 65) { - var _6w = $k[--$j]; - $put(_6w, 0, 94); - $k[$j++] = _6w; - } - var _6x = $k[--$j]; - $k[$j++] = _6x; - if ($get(_6x, 1) == 65) { - var _6z = $k[--$j]; - $put(_6z, 1, 94); - $k[$j++] = _6z; - } - var _70 = $k[--$j]; - var _73 = $strcpy($s(7), "0000000"); - var _75 = $cvrs($s(7), $f($k[--$j] + 8), 2); - $puti(_73, 7 - _75.length, _75); - $k[$j++] = _70; - $k[$j++] = _73; - } - $k[$j++] = $1.lalphanumeric; - $k[$j++] = "0000"; - $1.numeric = $d(); - $k[$j++] = Infinity; - for (var _78 = 48; _78 <= 57; _78 += 1) { - $k[$j++] = _78; - $k[$j++] = _78 - 43; - $k[$j++] = 5; - $1.tobin(); - } - $k[$j++] = $1.fnc1; - $k[$j++] = "01111"; - for (var _7A = 65; _7A <= 90; _7A += 1) { - $k[$j++] = _7A; - $k[$j++] = _7A - 33; - $k[$j++] = 6; - $1.tobin(); - } - $k[$j++] = 42; - $k[$j++] = "111010"; - for (var _7B = 44; _7B <= 47; _7B += 1) { - $k[$j++] = _7B; - $k[$j++] = _7B + 15; - $k[$j++] = 6; - $1.tobin(); - } - $k[$j++] = $1.lnumeric; - $k[$j++] = "000"; - $k[$j++] = $1.liso646; - $k[$j++] = "00100"; - $1.alphanumeric = $d(); - $k[$j++] = Infinity; - for (var _7F = 48; _7F <= 57; _7F += 1) { - $k[$j++] = _7F; - $k[$j++] = _7F - 43; - $k[$j++] = 5; - $1.tobin(); - } - $k[$j++] = $1.fnc1; - $k[$j++] = "01111"; - for (var _7H = 65; _7H <= 90; _7H += 1) { - $k[$j++] = _7H; - $k[$j++] = _7H - 1; - $k[$j++] = 7; - $1.tobin(); - } - for (var _7I = 97; _7I <= 122; _7I += 1) { - $k[$j++] = _7I; - $k[$j++] = _7I - 7; - $k[$j++] = 7; - $1.tobin(); - } - $k[$j++] = 33; - $k[$j++] = "11101000"; - $k[$j++] = 34; - $k[$j++] = "11101001"; - for (var _7J = 37; _7J <= 47; _7J += 1) { - $k[$j++] = _7J; - $k[$j++] = _7J + 197; - $k[$j++] = 8; - $1.tobin(); - } - for (var _7K = 58; _7K <= 63; _7K += 1) { - $k[$j++] = _7K; - $k[$j++] = _7K + 187; - $k[$j++] = 8; - $1.tobin(); - } - $k[$j++] = 95; - $k[$j++] = "11111011"; - $k[$j++] = 32; - $k[$j++] = "11111100"; - $k[$j++] = $1.lnumeric; - $k[$j++] = "000"; - $k[$j++] = $1.lalphanumeric; - $k[$j++] = "00100"; - $1.iso646 = $d(); - for (var _7Q = 0, _7P = $1.ais.length - 1; _7Q <= _7P; _7Q += 1) { - $1.i = _7Q; - $1.ai = $get($1.ais, $1.i); - $1.val = $get($1.vals, $1.i); - var _7a = $a($1.gpf.length + $1.ai.length + $1.val.length); - $puti(_7a, 0, $1.gpf); - $k[$j++] = _7a; - $k[$j++] = _7a; - $k[$j++] = $1.gpf.length; - $k[$j++] = Infinity; - var _7f = $1.ai; - $forall(_7f); - var _7g = $a(); - var _7h = $k[--$j]; - $puti($k[--$j], _7h, _7g); - var _7j = $k[--$j]; - $k[$j++] = _7j; - $k[$j++] = _7j; - $k[$j++] = $1.gpf.length + $1.ai.length; - $k[$j++] = Infinity; - var _7o = $1.val; - $forall(_7o); - var _7p = $a(); - var _7q = $k[--$j]; - $puti($k[--$j], _7q, _7p); - $1.gpf = $k[--$j]; - var _7y = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; - if ($1.i != $1.ais.length - 1 && !_7y) { - var _80 = $a($1.gpf.length + 1); - $puti(_80, 0, $1.gpf); - $put(_80, $1.gpf.length, $1.fnc1); - $1.gpf = _80; - } - } + var _3W = $s($k[--$j]); //#7802 + $k[$j++] = _3W; //#7802 + for (var _3Y = 0, _3X = _3W.length - 1; _3Y <= _3X; _3Y += 1) { //#7802 + var _3Z = $k[--$j]; //#7802 + $put(_3Z, _3Y, 48); //#7802 + $k[$j++] = _3Z; //#7802 + } //#7802 + var _3a = $k[--$j]; //#7803 + var _3d = $cvrs($s(_3a.length), $k[--$j], 2); //#7803 + $puti(_3a, _3a.length - _3d.length, _3d); //#7803 + $k[$j++] = _3a; //#7803 + }; //#7804 + $1.fnc1 = -1; //#7806 + $1.lnumeric = -2; //#7806 + $1.lalphanumeric = -3; //#7806 + $1.liso646 = -4; //#7806 + if ($eq($1.method, "00")) { //#7811 + $1.cdf = $a([]); //#7809 + $1.gpf = $a([]); //#7810 + } //#7810 + if ($eq($1.method, "1")) { //#7819 + $k[$j++] = 'cdf'; //#7814 + $k[$j++] = $geti($get($1.vals, 0), 0, 13); //#7814 + $1.conv13to44(); //#7814 + var _3l = $k[--$j]; //#7814 + $1[$k[--$j]] = _3l; //#7814 + $k[$j++] = Infinity; //#7815 + var _3n = $1.cdf; //#7815 + for (var _3o = 0, _3p = _3n.length; _3o < _3p; _3o++) { //#7815 + $k[$j++] = $f($get(_3n, _3o) - 48); //#7815 + } //#7815 + $1.cdf = $a(); //#7815 + $1.gpf = $a([]); //#7816 + $1.ais = $geti($1.ais, 1, $1.ais.length - 1); //#7817 + $1.vals = $geti($1.vals, 1, $1.vals.length - 1); //#7818 + } //#7818 + if ($eq($1.method, "0100")) { //#7829 + $1.cdf = $s(55); //#7822 + $k[$j++] = $1.cdf; //#7823 + $k[$j++] = 0; //#7823 + $k[$j++] = $geti($get($1.vals, 0), 1, 12); //#7823 + $1.conv12to40(); //#7823 + var _45 = $k[--$j]; //#7823 + var _46 = $k[--$j]; //#7823 + $puti($k[--$j], _46, _45); //#7823 + $k[$j++] = $1.cdf; //#7824 + $k[$j++] = 40; //#7824 + $k[$j++] = ~~$z($get($1.vals, 1)); //#7824 + $k[$j++] = 15; //#7824 + $1.tobin(); //#7824 + var _4B = $k[--$j]; //#7824 + var _4C = $k[--$j]; //#7824 + $puti($k[--$j], _4C, _4B); //#7824 + $k[$j++] = Infinity; //#7825 + var _4E = $1.cdf; //#7825 + for (var _4F = 0, _4G = _4E.length; _4F < _4G; _4F++) { //#7825 + $k[$j++] = $get(_4E, _4F) - 48; //#7825 + } //#7825 + $1.cdf = $a(); //#7825 + $1.gpf = $a([]); //#7826 + $1.ais = $a([]); //#7827 + $1.vals = $a([]); //#7828 + } //#7828 + if ($eq($1.method, "0101")) { //#7844 + $1.cdf = $s(55); //#7832 + $k[$j++] = $1.cdf; //#7833 + $k[$j++] = 0; //#7833 + $k[$j++] = $geti($get($1.vals, 0), 1, 12); //#7833 + $1.conv12to40(); //#7833 + var _4S = $k[--$j]; //#7833 + var _4T = $k[--$j]; //#7833 + $puti($k[--$j], _4T, _4S); //#7833 + if ($eq($get($1.ais, 1), "3202")) { //#7837 + $k[$j++] = ~~$z($get($1.vals, 1)); //#7835 + $k[$j++] = 15; //#7835 + $1.tobin(); //#7835 + } else { //#7837 + $k[$j++] = (~~$z($get($1.vals, 1))) + 10000; //#7837 + $k[$j++] = 15; //#7837 + $1.tobin(); //#7837 + } //#7837 + $puti($1.cdf, 40, $k[--$j]); //#7839 + $k[$j++] = Infinity; //#7840 + var _4d = $1.cdf; //#7840 + for (var _4e = 0, _4f = _4d.length; _4e < _4f; _4e++) { //#7840 + $k[$j++] = $get(_4d, _4e) - 48; //#7840 + } //#7840 + $1.cdf = $a(); //#7840 + $1.gpf = $a([]); //#7841 + $1.ais = $a([]); //#7842 + $1.vals = $a([]); //#7843 + } //#7843 + if ($1.method.length == 7) { //#7865 + $1.cdf = $s(76); //#7847 + $k[$j++] = $1.cdf; //#7848 + $k[$j++] = 0; //#7848 + $k[$j++] = $geti($get($1.vals, 0), 1, 12); //#7848 + $1.conv12to40(); //#7848 + var _4r = $k[--$j]; //#7848 + var _4s = $k[--$j]; //#7848 + $puti($k[--$j], _4s, _4r); //#7848 + var _4u = $s(6); //#7849 + $puti(_4u, 0, $geti($get($1.ais, 1), 3, 1)); //#7849 + $puti(_4u, 1, $geti($get($1.vals, 1), 1, 5)); //#7850 + $k[$j++] = ~~$z(_4u); //#7850 + $k[$j++] = 20; //#7850 + $1.tobin(); //#7850 + $puti($1.cdf, 40, $k[--$j]); //#7851 + if ($1.ais.length == 3) { //#7858 + var _55 = $get($1.vals, 2); //#7853 + $k[$j++] = ((~~$z($geti(_55, 0, 2))) * 384) + ((((~~$z($geti(_55, 2, 2))) - 1) * 32) + (~~$z($geti(_55, 4, 2)))); //#7856 + } else { //#7858 + $k[$j++] = 38400; //#7858 + } //#7858 + $k[$j++] = 16; //#7860 + $1.tobin(); //#7860 + $puti($1.cdf, 60, $k[--$j]); //#7860 + $k[$j++] = Infinity; //#7861 + var _5B = $1.cdf; //#7861 + for (var _5C = 0, _5D = _5B.length; _5C < _5D; _5C++) { //#7861 + $k[$j++] = $get(_5B, _5C) - 48; //#7861 + } //#7861 + $1.cdf = $a(); //#7861 + $1.gpf = $a([]); //#7862 + $1.ais = $a([]); //#7863 + $1.vals = $a([]); //#7864 + } //#7864 + if ($eq($1.method, "01100")) { //#7875 + $1.cdf = $s(42); //#7868 + $k[$j++] = $1.cdf; //#7869 + $k[$j++] = 0; //#7869 + $k[$j++] = $geti($get($1.vals, 0), 1, 12); //#7869 + $1.conv12to40(); //#7869 + var _5P = $k[--$j]; //#7869 + var _5Q = $k[--$j]; //#7869 + $puti($k[--$j], _5Q, _5P); //#7869 + $k[$j++] = $1.cdf; //#7870 + $k[$j++] = 40; //#7870 + $k[$j++] = ~~$z($geti($get($1.ais, 1), 3, 1)); //#7870 + $k[$j++] = 2; //#7870 + $1.tobin(); //#7870 + var _5W = $k[--$j]; //#7870 + var _5X = $k[--$j]; //#7870 + $puti($k[--$j], _5X, _5W); //#7870 + $k[$j++] = Infinity; //#7871 + var _5Z = $1.cdf; //#7871 + for (var _5a = 0, _5b = _5Z.length; _5a < _5b; _5a++) { //#7871 + $k[$j++] = $get(_5Z, _5a) - 48; //#7871 + } //#7871 + $1.cdf = $a(); //#7871 + $k[$j++] = Infinity; //#7872 + $forall($get($1.vals, 1)); //#7872 + if ($1.ais.length > 2) { //#7872 + $k[$j++] = $1.fnc1; //#7872 + } //#7872 + $1.gpf = $a(); //#7872 + $1.ais = $geti($1.ais, 2, $1.ais.length - 2); //#7873 + $1.vals = $geti($1.vals, 2, $1.vals.length - 2); //#7874 + } //#7874 + if ($eq($1.method, "01101")) { //#7886 + $1.cdf = $s(52); //#7878 + $k[$j++] = $1.cdf; //#7879 + $k[$j++] = 0; //#7879 + $k[$j++] = $geti($get($1.vals, 0), 1, 12); //#7879 + $1.conv12to40(); //#7879 + var _5v = $k[--$j]; //#7879 + var _5w = $k[--$j]; //#7879 + $puti($k[--$j], _5w, _5v); //#7879 + $k[$j++] = $1.cdf; //#7880 + $k[$j++] = 40; //#7880 + $k[$j++] = ~~$z($geti($get($1.ais, 1), 3, 1)); //#7880 + $k[$j++] = 2; //#7880 + $1.tobin(); //#7880 + var _62 = $k[--$j]; //#7880 + var _63 = $k[--$j]; //#7880 + $puti($k[--$j], _63, _62); //#7880 + $k[$j++] = $1.cdf; //#7881 + $k[$j++] = 42; //#7881 + $k[$j++] = ~~$z($geti($get($1.vals, 1), 0, 3)); //#7881 + $k[$j++] = 10; //#7881 + $1.tobin(); //#7881 + var _69 = $k[--$j]; //#7881 + var _6A = $k[--$j]; //#7881 + $puti($k[--$j], _6A, _69); //#7881 + $k[$j++] = Infinity; //#7882 + var _6C = $1.cdf; //#7882 + for (var _6D = 0, _6E = _6C.length; _6D < _6E; _6D++) { //#7882 + $k[$j++] = $get(_6C, _6D) - 48; //#7882 + } //#7882 + $1.cdf = $a(); //#7882 + $k[$j++] = Infinity; //#7883 + var _6I = $get($1.vals, 1); //#7883 + var _6J = $geti(_6I, 3, _6I.length - 3); //#7883 + for (var _6K = 0, _6L = _6J.length; _6K < _6L; _6K++) { //#7883 + $k[$j++] = $get(_6J, _6K); //#7883 + } //#7883 + if ($1.ais.length > 2) { //#7883 + $k[$j++] = $1.fnc1; //#7883 + } //#7883 + $1.gpf = $a(); //#7883 + $1.ais = $geti($1.ais, 2, $1.ais.length - 2); //#7884 + $1.vals = $geti($1.vals, 2, $1.vals.length - 2); //#7885 + } //#7885 + if ($1.gpfallow) { //#7892 + $1.vlf = $a(2); //#7890 + } else { //#7892 + $1.vlf = $a([]); //#7892 + } //#7892 + $1.aifixed = new Map; //#7898 + $k[$j++] = Infinity; //#7900 + for (var _6Z = 0; _6Z <= 4; _6Z += 1) { //#7900 + $k[$j++] = _6Z; //#7900 + } //#7900 + var _6a = $a(); //#7900 + for (var _6b = 0, _6c = _6a.length; _6b < _6c; _6b++) { //#7903 + var _6f = $strcpy($s(2), "00"); //#7902 + $put(_6f, 1, $f($get(_6a, _6b) + 48)); //#7902 + $put($1.aifixed, _6f, _6f); //#7902 + } //#7902 + $k[$j++] = Infinity; //#7908 + for (var _6h = 11; _6h <= 20; _6h += 1) { //#7905 + $k[$j++] = _6h; //#7905 + } //#7905 + $k[$j++] = 23; //#7907 + for (var _6i = 31; _6i <= 36; _6i += 1) { //#7907 + $k[$j++] = _6i; //#7907 + } //#7907 + $k[$j++] = 41; //#7908 + var _6j = $a(); //#7908 + for (var _6k = 0, _6l = _6j.length; _6k < _6l; _6k++) { //#7911 + var _6o = $cvrs($s(2), $get(_6j, _6k), 10); //#7910 + $put($1.aifixed, _6o, _6o); //#7910 + } //#7910 + $k[$j++] = Infinity; //#7923 + for (var _6q = 0; _6q <= 119; _6q += 1) { //#7922 + var _6s = $strcpy($s(2), "00"); //#7915 + var _6u = $cvrs($s(2), _6q, 11); //#7915 + $puti(_6s, 2 - _6u.length, _6u); //#7916 + $k[$j++] = _6q; //#7917 + $k[$j++] = _6s; //#7917 + if ($get(_6s, 0) == 65) { //#7917 + var _6w = $k[--$j]; //#7917 + $put(_6w, 0, 94); //#7917 + $k[$j++] = _6w; //#7917 + } //#7917 + var _6x = $k[--$j]; //#7918 + $k[$j++] = _6x; //#7918 + if ($get(_6x, 1) == 65) { //#7918 + var _6z = $k[--$j]; //#7918 + $put(_6z, 1, 94); //#7918 + $k[$j++] = _6z; //#7918 + } //#7918 + var _70 = $k[--$j]; //#7919 + var _73 = $strcpy($s(7), "0000000"); //#7920 + var _75 = $cvrs($s(7), $f($k[--$j] + 8), 2); //#7920 + $puti(_73, 7 - _75.length, _75); //#7921 + $k[$j++] = _70; //#7921 + $k[$j++] = _73; //#7921 + } //#7921 + $k[$j++] = $1.lalphanumeric; //#7923 + $k[$j++] = "0000"; //#7923 + $1.numeric = $d(); //#7924 + $k[$j++] = Infinity; //#7933 + for (var _78 = 48; _78 <= 57; _78 += 1) { //#7927 + $k[$j++] = _78; //#7927 + $k[$j++] = _78 - 43; //#7927 + $k[$j++] = 5; //#7927 + $1.tobin(); //#7927 + } //#7927 + $k[$j++] = $1.fnc1; //#7929 + $k[$j++] = "01111"; //#7929 + for (var _7A = 65; _7A <= 90; _7A += 1) { //#7929 + $k[$j++] = _7A; //#7929 + $k[$j++] = _7A - 33; //#7929 + $k[$j++] = 6; //#7929 + $1.tobin(); //#7929 + } //#7929 + $k[$j++] = 42; //#7931 + $k[$j++] = "111010"; //#7931 + for (var _7B = 44; _7B <= 47; _7B += 1) { //#7931 + $k[$j++] = _7B; //#7931 + $k[$j++] = _7B + 15; //#7931 + $k[$j++] = 6; //#7931 + $1.tobin(); //#7931 + } //#7931 + $k[$j++] = $1.lnumeric; //#7933 + $k[$j++] = "000"; //#7933 + $k[$j++] = $1.liso646; //#7933 + $k[$j++] = "00100"; //#7933 + $1.alphanumeric = $d(); //#7934 + $k[$j++] = Infinity; //#7948 + for (var _7F = 48; _7F <= 57; _7F += 1) { //#7937 + $k[$j++] = _7F; //#7937 + $k[$j++] = _7F - 43; //#7937 + $k[$j++] = 5; //#7937 + $1.tobin(); //#7937 + } //#7937 + $k[$j++] = $1.fnc1; //#7939 + $k[$j++] = "01111"; //#7939 + for (var _7H = 65; _7H <= 90; _7H += 1) { //#7939 + $k[$j++] = _7H; //#7939 + $k[$j++] = _7H - 1; //#7939 + $k[$j++] = 7; //#7939 + $1.tobin(); //#7939 + } //#7939 + for (var _7I = 97; _7I <= 122; _7I += 1) { //#7940 + $k[$j++] = _7I; //#7940 + $k[$j++] = _7I - 7; //#7940 + $k[$j++] = 7; //#7940 + $1.tobin(); //#7940 + } //#7940 + $k[$j++] = 33; //#7943 + $k[$j++] = "11101000"; //#7943 + $k[$j++] = 34; //#7943 + $k[$j++] = "11101001"; //#7943 + for (var _7J = 37; _7J <= 47; _7J += 1) { //#7943 + $k[$j++] = _7J; //#7943 + $k[$j++] = _7J + 197; //#7943 + $k[$j++] = 8; //#7943 + $1.tobin(); //#7943 + } //#7943 + for (var _7K = 58; _7K <= 63; _7K += 1) { //#7944 + $k[$j++] = _7K; //#7944 + $k[$j++] = _7K + 187; //#7944 + $k[$j++] = 8; //#7944 + $1.tobin(); //#7944 + } //#7944 + $k[$j++] = 95; //#7948 + $k[$j++] = "11111011"; //#7948 + $k[$j++] = 32; //#7948 + $k[$j++] = "11111100"; //#7948 + $k[$j++] = $1.lnumeric; //#7948 + $k[$j++] = "000"; //#7948 + $k[$j++] = $1.lalphanumeric; //#7948 + $k[$j++] = "00100"; //#7948 + $1.iso646 = $d(); //#7949 + for (var _7Q = 0, _7P = $1.ais.length - 1; _7Q <= _7P; _7Q += 1) { //#7967 + $1.i = _7Q; //#7953 + $1.ai = $get($1.ais, $1.i); //#7954 + $1.val = $get($1.vals, $1.i); //#7955 + var _7a = $a(($1.gpf.length + $1.ai.length) + $1.val.length); //#7956 + $puti(_7a, 0, $1.gpf); //#7957 + $k[$j++] = _7a; //#7958 + $k[$j++] = _7a; //#7958 + $k[$j++] = $1.gpf.length; //#7958 + $k[$j++] = $1.ai; //#7958 + $k[$j++] = Infinity; //#7958 + var _7e = $k[--$j]; //#7958 + var _7f = $k[--$j]; //#7958 + $k[$j++] = _7e; //#7958 + $forall(_7f); //#7958 + var _7g = $a(); //#7958 + var _7h = $k[--$j]; //#7958 + $puti($k[--$j], _7h, _7g); //#7958 + var _7j = $k[--$j]; //#7959 + $k[$j++] = _7j; //#7959 + $k[$j++] = _7j; //#7959 + $k[$j++] = $1.gpf.length + $1.ai.length; //#7959 + $k[$j++] = $1.val; //#7959 + $k[$j++] = Infinity; //#7959 + var _7n = $k[--$j]; //#7959 + var _7o = $k[--$j]; //#7959 + $k[$j++] = _7n; //#7959 + $forall(_7o); //#7959 + var _7p = $a(); //#7959 + var _7q = $k[--$j]; //#7959 + $puti($k[--$j], _7q, _7p); //#7959 + $1.gpf = $k[--$j]; //#7960 + var _7y = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; //#7961 + if (($1.i != ($1.ais.length - 1)) && (!_7y)) { //#7966 + var _80 = $a($1.gpf.length + 1); //#7962 + $puti(_80, 0, $1.gpf); //#7963 + $put(_80, $1.gpf.length, $1.fnc1); //#7964 + $1.gpf = _80; //#7965 + } //#7965 + } //#7965 $1.rembits = function() { - var _84 = $k[--$j]; - var _85 = 48; - var _86 = ~~Math.ceil(_84 / 12) * 12; - if (~~Math.ceil(_84 / 12) * 12 < 48) { - var _ = _85; - _85 = _86; - _86 = _; - } - var _87 = ~~(_86 / 12); - $k[$j++] = _84; - $k[$j++] = _86; - $k[$j++] = _87; - if (_87 % $1.segments == 1) { - var _89 = $k[--$j]; - var _8A = $k[--$j]; - $k[$j++] = $f(_89 + 1) * 12; - $k[$j++] = _8A; - $j--; - } else { - $j--; - } - var _8B = $k[--$j]; - var _8C = $k[--$j]; - $k[$j++] = $f(_8B - _8C); - }; + var _84 = $k[--$j]; //#7971 + var _85 = 48; //#7973 + var _86 = (~~Math.ceil(_84 / 12)) * 12; //#7973 + if (((~~Math.ceil(_84 / 12)) * 12) < 48) { //#7973 + var _ = _85; //#7973 + _85 = _86; //#7973 + _86 = _; //#7973 + } //#7973 + var _87 = ~~(_86 / 12); //#7974 + $k[$j++] = _84; //#7978 + $k[$j++] = _86; //#7978 + $k[$j++] = _87; //#7978 + if ((_87 % $1.segments) == 1) { //#7977 + var _89 = $k[--$j]; //#7975 + var _8A = $k[--$j]; //#7975 + $k[$j++] = $f(_89 + 1) * 12; //#7975 + $k[$j++] = _8A; //#7975 + $j--; //#7975 + } else { //#7977 + $j--; //#7977 + } //#7977 + var _8B = $k[--$j]; //#7979 + var _8C = $k[--$j]; //#7979 + $k[$j++] = $f(_8B - _8C); //#7979 + }; //#7980 $1.encode = function() { - var _8D = $k[--$j]; - $k[$j++] = _8D; - if ($ne(_8D, "raw")) { - var _8E = $k[--$j]; - var _8G = $get(_8E, $k[--$j]); - $k[$j++] = _8G; - } else { - $j--; - } - $k[$j++] = Infinity; - var _8H = $k[--$j]; - var _8I = $k[--$j]; - $k[$j++] = _8H; - $forall(_8I, function() { - var _8J = $k[--$j]; - $k[$j++] = $f(_8J - 48); - }); - var _8K = $a(); - $puti($1.gpfenc, $1.j, _8K); - $1.j = _8K.length + $1.j; - }; - $k[$j++] = Infinity; - for (var _8P = 0, _8Q = $1.gpf.length; _8P < _8Q; _8P++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $k[$j++] = -1; - $1.numericruns = $a(); - $k[$j++] = Infinity; - for (var _8T = 0, _8U = $1.gpf.length; _8T < _8U; _8T++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.alphanumericruns = $a(); - $k[$j++] = Infinity; - for (var _8X = 0, _8Y = $1.gpf.length; _8X < _8Y; _8X++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextiso646only = $a(); - for (var _8b = $1.gpf.length - 1; _8b >= 0; _8b -= 1) { - $1.i = _8b; - var _8g = $strcpy($s(2), "00"); - var _8j = $get($1.gpf, $1.i); - $k[$j++] = $get($1.gpf, $1.i); - $k[$j++] = _8g; - $k[$j++] = _8g; - $k[$j++] = 0; - $k[$j++] = _8j; - if (_8j == $1.fnc1) { - $j--; - $k[$j++] = 94; - } - var _8l = $k[--$j]; - var _8m = $k[--$j]; - $put($k[--$j], _8m, _8l); - if ($1.i < $1.gpf.length - 1) { - var _8q = $k[--$j]; - var _8t = $get($1.gpf, $1.i + 1); - $k[$j++] = _8q; - $k[$j++] = _8q; - $k[$j++] = 1; - $k[$j++] = _8t; - if (_8t == $1.fnc1) { - $j--; - $k[$j++] = 94; - } - var _8v = $k[--$j]; - var _8w = $k[--$j]; - $put($k[--$j], _8w, _8v); - } - var _90 = $get($1.numeric, $k[--$j]) !== undefined; - if (_90) { - $put($1.numericruns, $1.i, $f($get($1.numericruns, $1.i + 2) + 2)); - } else { - $put($1.numericruns, $1.i, 0); - } - var _98 = $k[--$j]; - var _9A = $get($1.alphanumeric, _98) !== undefined; - $k[$j++] = _98; - if (_9A) { - $put($1.alphanumericruns, $1.i, $f($get($1.alphanumericruns, $1.i + 1) + 1)); - } else { - $put($1.alphanumericruns, $1.i, 0); - } - var _9I = $k[--$j]; - var _9K = $get($1.iso646, _9I) !== undefined; - var _9M = $get($1.alphanumeric, _9I) !== undefined; - if (_9K && !_9M) { - $put($1.nextiso646only, $1.i, 0); - } else { - $put($1.nextiso646only, $1.i, $f($get($1.nextiso646only, $1.i + 1) + 1)); - } - } - $1.gpfenc = $a(252); - $1.i = 0; - $1.j = 0; - $1.mode = "numeric"; - for (;;) { - if ($1.i == $1.gpf.length) { - break; - } - for (;;) { - if ($eq($1.mode, "numeric")) { - if ($1.i <= $1.gpf.length - 2) { - var _9a = $s(2); - var _9d = $get($1.gpf, $1.i); - $k[$j++] = _9a; - $k[$j++] = _9a; - $k[$j++] = 0; - $k[$j++] = _9d; - if (_9d == $1.fnc1) { - $j--; - $k[$j++] = 94; - } - var _9f = $k[--$j]; - var _9g = $k[--$j]; - $put($k[--$j], _9g, _9f); - var _9i = $k[--$j]; - var _9l = $get($1.gpf, $1.i + 1); - $k[$j++] = _9i; - $k[$j++] = _9i; - $k[$j++] = 1; - $k[$j++] = _9l; - if (_9l == $1.fnc1) { - $j--; - $k[$j++] = 94; - } - var _9n = $k[--$j]; - var _9o = $k[--$j]; - $put($k[--$j], _9o, _9n); - var _9q = $k[--$j]; - var _9s = $get($1.numeric, _9q) !== undefined; - $k[$j++] = _9q; - if (_9s) { - $k[$j++] = $1.numeric; - $1.encode(); - $1.i = $1.i + 2; - break; - } - $j--; - $k[$j++] = $1.lalphanumeric; - $k[$j++] = $1.numeric; - $1.encode(); - $1.mode = "alphanumeric"; - break; - } else { - var _9z = $get($1.gpf, $1.i); - if (_9z < 48 || _9z > 57) { - $k[$j++] = $1.lalphanumeric; - $k[$j++] = $1.numeric; - $1.encode(); - $1.mode = "alphanumeric"; - break; - } - $k[$j++] = "rem"; - $k[$j++] = 12 + 1 + $1.method.length + $1.vlf.length + $1.cdf.length + $1.j; - $1.rembits(); - var _A6 = $k[--$j]; - $1[$k[--$j]] = _A6; - if ($1.rem >= 4 && $1.rem <= 6) { - var _AD = $geti($strcpy($s(6), "000000"), 0, $1.rem); - var _AI = $cvrs($s(4), $f($get($1.gpf, $1.i) - 47), 2); - $puti(_AD, 4 - _AI.length, _AI); - $k[$j++] = _AD; - $k[$j++] = "raw"; - $1.encode(); - $1.i = $1.i + 1; - break; - } else { - var _AK = $s(2); - $put(_AK, 0, $get($1.gpf, $1.i)); - $put(_AK, 1, 94); - $k[$j++] = _AK; - $k[$j++] = $1.numeric; - $1.encode(); - $1.i = $1.i + 1; - break; - } - } - } - if ($eq($1.mode, "alphanumeric")) { - if ($get($1.gpf, $1.i) == $1.fnc1) { - $k[$j++] = $1.fnc1; - $k[$j++] = $1.alphanumeric; - $1.encode(); - $1.mode = "numeric"; - $1.i = $1.i + 1; - break; - } - var _Aa = $get($1.gpf, $1.i); - var _Ac = $get($1.iso646, _Aa) !== undefined; - var _Ae = $get($1.alphanumeric, _Aa) !== undefined; - if (_Ac && !_Ae) { - $k[$j++] = $1.liso646; - $k[$j++] = $1.alphanumeric; - $1.encode(); - $1.mode = "iso646"; - break; - } - if ($get($1.numericruns, $1.i) >= 6) { - $k[$j++] = $1.lnumeric; - $k[$j++] = $1.alphanumeric; - $1.encode(); - $1.mode = "numeric"; - break; - } - var _Ao = $get($1.numericruns, $1.i); - if (_Ao >= 4 && $f(_Ao + $1.i) == $1.gpf.length) { - $k[$j++] = $1.lnumeric; - $k[$j++] = $1.alphanumeric; - $1.encode(); - $1.mode = "numeric"; - break; - } - $k[$j++] = $get($1.gpf, $1.i); - $k[$j++] = $1.alphanumeric; - $1.encode(); - $1.i = $1.i + 1; - break; - } - if ($eq($1.mode, "iso646")) { - if ($get($1.gpf, $1.i) == $1.fnc1) { - $k[$j++] = $1.fnc1; - $k[$j++] = $1.iso646; - $1.encode(); - $1.mode = "numeric"; - $1.i = $1.i + 1; - break; - } - if ($get($1.numericruns, $1.i) >= 4 && $get($1.nextiso646only, $1.i) >= 10) { - $k[$j++] = $1.lnumeric; - $k[$j++] = $1.iso646; - $1.encode(); - $1.mode = "numeric"; - break; - } - if ($get($1.alphanumericruns, $1.i) >= 5 && $get($1.nextiso646only, $1.i) >= 10) { - $k[$j++] = $1.lalphanumeric; - $k[$j++] = $1.iso646; - $1.encode(); - $1.mode = "alphanumeric"; - break; - } - $k[$j++] = $get($1.gpf, $1.i); - $k[$j++] = $1.iso646; - $1.encode(); - $1.i = $1.i + 1; - break; - } - } - } - $1.gpf = $geti($1.gpfenc, 0, $1.j); - var _BY = 1 + 12 + $1.method.length + $1.vlf.length + $1.cdf.length + $1.gpf.length; - $k[$j++] = _BY; - $k[$j++] = _BY; - $1.rembits(); - var _BZ = $k[--$j]; - $1.pad = $a(_BZ); - $k[$j++] = _BZ; - if ($1.vlf.length != 0) { - var _Bc = $k[--$j]; - var _Be = ~~($f($k[--$j] + _Bc) / 12); - $put($1.vlf, 0, _Be % 2); - var _Bg = _Be <= 14 ? 0 : 1; - $put($1.vlf, 1, _Bg); - } else { - $j -= 2; - } - if ($1.pad.length > 0) { - for (var _Bl = 0, _Bk = $1.pad.length - 1; _Bl <= _Bk; _Bl += 5) { - $1.i = _Bl; - var _Bm = $1.pad; - var _Bn = $1.i; - var _Bo = $a([ 0, 0, 1, 0, 0 ]); - var _Bp = $1.pad; - var _Bq = $1.i; - var _Br = 5; - var _Bs = _Bp.length - _Bq; - if (_Bp.length - _Bq > 5) { - var _ = _Br; - _Br = _Bs; - _Bs = _; - } - $puti(_Bm, _Bn, $geti(_Bo, 0, _Bs)); - } - if ($eq($1.mode, "numeric")) { - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $aload($1.pad); - $1.pad = $geti($a(), 0, $1.pad.length); - } - } - $k[$j++] = Infinity; - var _C0 = $1.linkage ? 1 : 0; - $k[$j++] = _C0; - $forall($1.method, function() { - var _C2 = $k[--$j]; - $k[$j++] = $f(_C2 - 48); - }); - $aload($1.vlf); - $aload($1.cdf); - $aload($1.gpf); - $aload($1.pad); - $1.binval = $a(); - $1.datalen = ~~($1.binval.length / 12); + var _8D = $k[--$j]; //#7983 + $k[$j++] = _8D; //#7983 + if ($ne(_8D, 'raw')) { //#7983 + var _8E = $k[--$j]; //#7983 + var _8G = $get(_8E, $k[--$j]); //#7983 + $k[$j++] = _8G; //#7983 + } else { //#7983 + $j--; //#7983 + } //#7983 + $k[$j++] = Infinity; //#7984 + var _8H = $k[--$j]; //#7984 + var _8I = $k[--$j]; //#7984 + $k[$j++] = _8H; //#7984 + $forall(_8I, function() { //#7984 + var _8J = $k[--$j]; //#7984 + $k[$j++] = $f(_8J - 48); //#7984 + }); //#7984 + var _8K = $a(); //#7984 + $puti($1.gpfenc, $1.j, _8K); //#7986 + $1.j = _8K.length + $1.j; //#7987 + }; //#7988 + $k[$j++] = Infinity; //#7991 + for (var _8P = 0, _8Q = $1.gpf.length; _8P < _8Q; _8P++) { //#7991 + $k[$j++] = 0; //#7991 + } //#7991 + $k[$j++] = 0; //#7991 + $k[$j++] = -1; //#7991 + $1.numericruns = $a(); //#7991 + $k[$j++] = Infinity; //#7992 + for (var _8T = 0, _8U = $1.gpf.length; _8T < _8U; _8T++) { //#7992 + $k[$j++] = 0; //#7992 + } //#7992 + $k[$j++] = 0; //#7992 + $1.alphanumericruns = $a(); //#7992 + $k[$j++] = Infinity; //#7993 + for (var _8X = 0, _8Y = $1.gpf.length; _8X < _8Y; _8X++) { //#7993 + $k[$j++] = 0; //#7993 + } //#7993 + $k[$j++] = 9999; //#7993 + $1.nextiso646only = $a(); //#7993 + for (var _8b = $1.gpf.length - 1; _8b >= 0; _8b -= 1) { //#8015 + $1.i = _8b; //#7995 + var _8g = $strcpy($s(2), "00"); //#7997 + var _8j = $get($1.gpf, $1.i); //#7998 + $k[$j++] = $get($1.gpf, $1.i); //#7998 + $k[$j++] = _8g; //#7998 + $k[$j++] = _8g; //#7998 + $k[$j++] = 0; //#7998 + $k[$j++] = _8j; //#7998 + if (_8j == $1.fnc1) { //#7998 + $j--; //#7998 + $k[$j++] = 94; //#7998 + } //#7998 + var _8l = $k[--$j]; //#7998 + var _8m = $k[--$j]; //#7998 + $put($k[--$j], _8m, _8l); //#7998 + if ($1.i < ($1.gpf.length - 1)) { //#7999 + var _8q = $k[--$j]; //#7999 + var _8t = $get($1.gpf, $1.i + 1); //#7999 + $k[$j++] = _8q; //#7999 + $k[$j++] = _8q; //#7999 + $k[$j++] = 1; //#7999 + $k[$j++] = _8t; //#7999 + if (_8t == $1.fnc1) { //#7999 + $j--; //#7999 + $k[$j++] = 94; //#7999 + } //#7999 + var _8v = $k[--$j]; //#7999 + var _8w = $k[--$j]; //#7999 + $put($k[--$j], _8w, _8v); //#7999 + } //#7999 + var _90 = $get($1.numeric, $k[--$j]) !== undefined; //#8000 + if (_90) { //#8003 + $put($1.numericruns, $1.i, $f($get($1.numericruns, $1.i + 2) + 2)); //#8001 + } else { //#8003 + $put($1.numericruns, $1.i, 0); //#8003 + } //#8003 + var _98 = $k[--$j]; //#8005 + var _9A = $get($1.alphanumeric, _98) !== undefined; //#8005 + $k[$j++] = _98; //#8009 + if (_9A) { //#8008 + $put($1.alphanumericruns, $1.i, $f($get($1.alphanumericruns, $1.i + 1) + 1)); //#8006 + } else { //#8008 + $put($1.alphanumericruns, $1.i, 0); //#8008 + } //#8008 + var _9I = $k[--$j]; //#8010 + var _9K = $get($1.iso646, _9I) !== undefined; //#8010 + var _9M = $get($1.alphanumeric, _9I) !== undefined; //#8010 + if (_9K && (!_9M)) { //#8013 + $put($1.nextiso646only, $1.i, 0); //#8011 + } else { //#8013 + $put($1.nextiso646only, $1.i, $f($get($1.nextiso646only, $1.i + 1) + 1)); //#8013 + } //#8013 + } //#8013 + $1.gpfenc = $a(252); //#8018 + $1.i = 0; //#8019 + $1.j = 0; //#8019 + $1.mode = "numeric"; //#8019 + for (;;) { //#8109 + if ($1.i == $1.gpf.length) { //#8021 + break; //#8021 + } //#8021 + for (;;) { //#8108 + if ($eq($1.mode, "numeric")) { //#8057 + if ($1.i <= ($1.gpf.length - 2)) { //#8054 + var _9a = $s(2); //#8026 + var _9d = $get($1.gpf, $1.i); //#8027 + $k[$j++] = _9a; //#8027 + $k[$j++] = _9a; //#8027 + $k[$j++] = 0; //#8027 + $k[$j++] = _9d; //#8027 + if (_9d == $1.fnc1) { //#8027 + $j--; //#8027 + $k[$j++] = 94; //#8027 + } //#8027 + var _9f = $k[--$j]; //#8027 + var _9g = $k[--$j]; //#8027 + $put($k[--$j], _9g, _9f); //#8027 + var _9i = $k[--$j]; //#8028 + var _9l = $get($1.gpf, $1.i + 1); //#8028 + $k[$j++] = _9i; //#8028 + $k[$j++] = _9i; //#8028 + $k[$j++] = 1; //#8028 + $k[$j++] = _9l; //#8028 + if (_9l == $1.fnc1) { //#8028 + $j--; //#8028 + $k[$j++] = 94; //#8028 + } //#8028 + var _9n = $k[--$j]; //#8028 + var _9o = $k[--$j]; //#8028 + $put($k[--$j], _9o, _9n); //#8028 + var _9q = $k[--$j]; //#8029 + var _9s = $get($1.numeric, _9q) !== undefined; //#8029 + $k[$j++] = _9q; //#8033 + if (_9s) { //#8033 + $k[$j++] = $1.numeric; //#8030 + $1.encode(); //#8030 + $1.i = $1.i + 2; //#8031 + break; //#8032 + } //#8032 + $j--; //#8034 + $k[$j++] = $1.lalphanumeric; //#8035 + $k[$j++] = $1.numeric; //#8035 + $1.encode(); //#8035 + $1.mode = "alphanumeric"; //#8036 + break; //#8037 + } else { //#8054 + var _9z = $get($1.gpf, $1.i); //#8039 + if ((_9z < 48) || (_9z > 57)) { //#8043 + $k[$j++] = $1.lalphanumeric; //#8040 + $k[$j++] = $1.numeric; //#8040 + $1.encode(); //#8040 + $1.mode = "alphanumeric"; //#8041 + break; //#8042 + } //#8042 + $k[$j++] = 'rem'; //#8044 + $k[$j++] = ((((12 + 1) + $1.method.length) + $1.vlf.length) + $1.cdf.length) + $1.j; //#8044 + $1.rembits(); //#8044 + var _A6 = $k[--$j]; //#8044 + $1[$k[--$j]] = _A6; //#8044 + if (($1.rem >= 4) && ($1.rem <= 6)) { //#8054 + var _AD = $geti($strcpy($s(6), "000000"), 0, $1.rem); //#8046 + var _AI = $cvrs($s(4), $f($get($1.gpf, $1.i) - 47), 2); //#8047 + $puti(_AD, 4 - _AI.length, _AI); //#8048 + $k[$j++] = _AD; //#8048 + $k[$j++] = 'raw'; //#8048 + $1.encode(); //#8048 + $1.i = $1.i + 1; //#8049 + break; //#8050 + } else { //#8054 + var _AK = $s(2); //#8052 + $put(_AK, 0, $get($1.gpf, $1.i)); //#8052 + $put(_AK, 1, 94); //#8052 + $k[$j++] = _AK; //#8052 + $k[$j++] = $1.numeric; //#8052 + $1.encode(); //#8052 + $1.i = $1.i + 1; //#8053 + break; //#8054 + } //#8054 + } //#8054 + } //#8054 + if ($eq($1.mode, "alphanumeric")) { //#8084 + if ($get($1.gpf, $1.i) == $1.fnc1) { //#8065 + $k[$j++] = $1.fnc1; //#8061 + $k[$j++] = $1.alphanumeric; //#8061 + $1.encode(); //#8061 + $1.mode = "numeric"; //#8062 + $1.i = $1.i + 1; //#8063 + break; //#8064 + } //#8064 + var _Aa = $get($1.gpf, $1.i); //#8066 + var _Ac = $get($1.iso646, _Aa) !== undefined; //#8066 + var _Ae = $get($1.alphanumeric, _Aa) !== undefined; //#8066 + if (_Ac && (!_Ae)) { //#8070 + $k[$j++] = $1.liso646; //#8067 + $k[$j++] = $1.alphanumeric; //#8067 + $1.encode(); //#8067 + $1.mode = "iso646"; //#8068 + break; //#8069 + } //#8069 + if ($get($1.numericruns, $1.i) >= 6) { //#8075 + $k[$j++] = $1.lnumeric; //#8072 + $k[$j++] = $1.alphanumeric; //#8072 + $1.encode(); //#8072 + $1.mode = "numeric"; //#8073 + break; //#8074 + } //#8074 + var _Ao = $get($1.numericruns, $1.i); //#8076 + if ((_Ao >= 4) && ($f(_Ao + $1.i) == $1.gpf.length)) { //#8080 + $k[$j++] = $1.lnumeric; //#8077 + $k[$j++] = $1.alphanumeric; //#8077 + $1.encode(); //#8077 + $1.mode = "numeric"; //#8078 + break; //#8079 + } //#8079 + $k[$j++] = $get($1.gpf, $1.i); //#8081 + $k[$j++] = $1.alphanumeric; //#8081 + $1.encode(); //#8081 + $1.i = $1.i + 1; //#8082 + break; //#8083 + } //#8083 + if ($eq($1.mode, "iso646")) { //#8106 + if ($get($1.gpf, $1.i) == $1.fnc1) { //#8092 + $k[$j++] = $1.fnc1; //#8088 + $k[$j++] = $1.iso646; //#8088 + $1.encode(); //#8088 + $1.mode = "numeric"; //#8089 + $1.i = $1.i + 1; //#8090 + break; //#8091 + } //#8091 + if (($get($1.numericruns, $1.i) >= 4) && ($get($1.nextiso646only, $1.i) >= 10)) { //#8097 + $k[$j++] = $1.lnumeric; //#8094 + $k[$j++] = $1.iso646; //#8094 + $1.encode(); //#8094 + $1.mode = "numeric"; //#8095 + break; //#8096 + } //#8096 + if (($get($1.alphanumericruns, $1.i) >= 5) && ($get($1.nextiso646only, $1.i) >= 10)) { //#8102 + $k[$j++] = $1.lalphanumeric; //#8099 + $k[$j++] = $1.iso646; //#8099 + $1.encode(); //#8099 + $1.mode = "alphanumeric"; //#8100 + break; //#8101 + } //#8101 + $k[$j++] = $get($1.gpf, $1.i); //#8103 + $k[$j++] = $1.iso646; //#8103 + $1.encode(); //#8103 + $1.i = $1.i + 1; //#8104 + break; //#8105 + } //#8105 + } //#8105 + } //#8105 + $1.gpf = $geti($1.gpfenc, 0, $1.j); //#8110 + var _BY = ((((1 + 12) + $1.method.length) + $1.vlf.length) + $1.cdf.length) + $1.gpf.length; //#8114 + $k[$j++] = _BY; //#8114 + $k[$j++] = _BY; //#8114 + $1.rembits(); //#8114 + var _BZ = $k[--$j]; //#8114 + $1.pad = $a(_BZ); //#8114 + $k[$j++] = _BZ; //#8121 + if ($1.vlf.length != 0) { //#8120 + var _Bc = $k[--$j]; //#8116 + var _Be = ~~($f($k[--$j] + _Bc) / 12); //#8117 + $put($1.vlf, 0, _Be % 2); //#8117 + var _Bg = (_Be <= 14) ? 0 : 1; //#8118 + $put($1.vlf, 1, _Bg); //#8118 + } else { //#8120 + $j -= 2; //#8120 + } //#8120 + if ($1.pad.length > 0) { //#8130 + for (var _Bl = 0, _Bk = $1.pad.length - 1; _Bl <= _Bk; _Bl += 5) { //#8126 + $1.i = _Bl; //#8124 + var _Bm = $1.pad; //#8125 + var _Bn = $1.i; //#8125 + var _Bo = $a([0, 0, 1, 0, 0]); //#8125 + var _Bp = $1.pad; //#8125 + var _Bq = $1.i; //#8125 + var _Br = 5; //#8125 + var _Bs = _Bp.length - _Bq; //#8125 + if ((_Bp.length - _Bq) > 5) { //#8125 + var _ = _Br; //#8125 + _Br = _Bs; //#8125 + _Bs = _; //#8125 + } //#8125 + $puti(_Bm, _Bn, $geti(_Bo, 0, _Bs)); //#8125 + } //#8125 + if ($eq($1.mode, "numeric")) { //#8129 + $k[$j++] = Infinity; //#8128 + $k[$j++] = 0; //#8128 + $k[$j++] = 0; //#8128 + $k[$j++] = 0; //#8128 + $k[$j++] = 0; //#8128 + $aload($1.pad); //#8128 + $1.pad = $geti($a(), 0, $1.pad.length); //#8128 + } //#8128 + } //#8128 + $k[$j++] = Infinity; //#8139 + var _C0 = $1.linkage ? 1 : 0; //#8134 + $k[$j++] = _C0; //#8135 + $forall($1.method, function() { //#8135 + var _C2 = $k[--$j]; //#8135 + $k[$j++] = $f(_C2 - 48); //#8135 + }); //#8135 + $aload($1.vlf); //#8136 + $aload($1.cdf); //#8137 + $aload($1.gpf); //#8138 + $aload($1.pad); //#8139 + $1.binval = $a(); //#8139 + $1.datalen = ~~($1.binval.length / 12); //#8141 $1.ncr = function() { - var _C9 = $k[--$j]; - var _CA = $k[--$j]; - var _CB = $f(_CA - _C9); - if (_C9 < $f(_CA - _C9)) { - var _ = _CB; - _CB = _C9; - _C9 = _; - } - $k[$j++] = _CB; - $k[$j++] = 1; - $k[$j++] = 1; - for (var _CD = _CA, _CC = $f(_C9 + 1); _CD >= _CC; _CD -= 1) { - var _CE = $k[--$j]; - var _CF = $k[--$j]; - var _CG = $k[--$j]; - $k[$j++] = _CG; - $k[$j++] = _CF; - $k[$j++] = _CE * _CD; - if ($le(_CF, _CG)) { - var _CH = $k[--$j]; - var _CI = $k[--$j]; - $k[$j++] = $f(_CI + 1); - $k[$j++] = ~~(_CH / _CI); - } - } - for (;;) { - var _CJ = $k[--$j]; - var _CK = $k[--$j]; - var _CL = $k[--$j]; - $k[$j++] = _CL; - $k[$j++] = _CK; - $k[$j++] = _CJ; - if ($gt(_CK, _CL)) { - break; - } - var _CM = $k[--$j]; - var _CN = $k[--$j]; - $k[$j++] = $f(_CN + 1); - $k[$j++] = ~~(_CM / _CN); - } - var _CO = $k[--$j]; - var _CP = $k[--$j]; - $k[$j++] = _CO; - $k[$j++] = _CP; - $j--; - var _CQ = $k[--$j]; - var _CR = $k[--$j]; - $k[$j++] = _CQ; - $k[$j++] = _CR; - $j--; - }; + var _C9 = $k[--$j]; //#8144 + var _CA = $k[--$j]; //#8144 + var _CB = $f(_CA - _C9); //#8144 + if (_C9 < $f(_CA - _C9)) { //#8144 + var _ = _CB; //#8144 + _CB = _C9; //#8144 + _C9 = _; //#8144 + } //#8144 + $k[$j++] = _CB; //#8151 + $k[$j++] = 1; //#8151 + $k[$j++] = 1; //#8151 + for (var _CD = _CA, _CC = $f(_C9 + 1); _CD >= _CC; _CD -= 1) { //#8151 + var _CE = $k[--$j]; //#8147 + var _CF = $k[--$j]; //#8148 + var _CG = $k[--$j]; //#8148 + $k[$j++] = _CG; //#8150 + $k[$j++] = _CF; //#8150 + $k[$j++] = _CE * _CD; //#8150 + if ($le(_CF, _CG)) { //#8150 + var _CH = $k[--$j]; //#8149 + var _CI = $k[--$j]; //#8149 + $k[$j++] = $f(_CI + 1); //#8149 + $k[$j++] = ~~(_CH / _CI); //#8149 + } //#8149 + } //#8149 + for (;;) { //#8155 + var _CJ = $k[--$j]; //#8153 + var _CK = $k[--$j]; //#8153 + var _CL = $k[--$j]; //#8153 + $k[$j++] = _CL; //#8153 + $k[$j++] = _CK; //#8153 + $k[$j++] = _CJ; //#8153 + if ($gt(_CK, _CL)) { //#8153 + break; //#8153 + } //#8153 + var _CM = $k[--$j]; //#8154 + var _CN = $k[--$j]; //#8154 + $k[$j++] = $f(_CN + 1); //#8154 + $k[$j++] = ~~(_CM / _CN); //#8154 + } //#8154 + var _CO = $k[--$j]; //#8156 + var _CP = $k[--$j]; //#8156 + $k[$j++] = _CO; //#8156 + $k[$j++] = _CP; //#8156 + $j--; //#8156 + var _CQ = $k[--$j]; //#8156 + var _CR = $k[--$j]; //#8156 + $k[$j++] = _CQ; //#8156 + $k[$j++] = _CR; //#8156 + $j--; //#8156 + }; //#8157 $1.getRSSwidths = function() { - $1.oe = $k[--$j]; - $1.el = $k[--$j]; - $1.mw = $k[--$j]; - $1.nm = $k[--$j]; - $1.val = $k[--$j]; - $1.out = $a($1.el); - $1.mask = 0; - for (var _Cb = 0, _Ca = $f($1.el - 2); _Cb <= _Ca; _Cb += 1) { - $1.bar = _Cb; - $1.ew = 1; - var _Cd = $1.bar; - $1.mask = $1.mask | (_Cd < 0 ? 1 >>> -_Cd : 1 << _Cd); - for (;;) { - $k[$j++] = "sval"; - $k[$j++] = $f($f($1.nm - $1.ew) - 1); - $k[$j++] = $f($f($1.el - $1.bar) - 2); - $1.ncr(); - var _Ci = $k[--$j]; - $1[$k[--$j]] = _Ci; - if ($1.oe && $1.mask == 0 && $f($f($f($1.nm - $1.ew) - $1.el * 2) + $1.bar * 2) >= -2) { - $k[$j++] = "sval"; - $k[$j++] = $1.sval; - $k[$j++] = $f($f($f($1.nm - $1.ew) - $1.el) + $1.bar); - $k[$j++] = $f($f($1.el - $1.bar) - 2); - $1.ncr(); - var _Cx = $k[--$j]; - var _Cy = $k[--$j]; - $1[$k[--$j]] = $f(_Cy - _Cx); - } - if ($f($1.el - $1.bar) > 2) { - $1.lval = 0; - for (var _D8 = $f($f($f($f($1.nm - $1.ew) - $1.el) + $1.bar) + 2), _D7 = $f($1.mw + 1); _D8 >= _D7; _D8 -= 1) { - $k[$j++] = $f($f($f($1.nm - _D8) - $1.ew) - 1); - $k[$j++] = $f($f($1.el - $1.bar) - 3); - $1.ncr(); - $1.lval = $f($k[--$j] + $1.lval); - } - $1.sval = $f($1.sval - $1.lval * $f($f($1.el - $1.bar) - 1)); - } else { - if ($f($1.nm - $1.ew) > $1.mw) { - $1.sval = $f($1.sval - 1); - } - } - $1.val = $f($1.val - $1.sval); - if ($1.val < 0) { - break; - } - $1.ew = $1.ew + 1; - var _DS = $1.bar; - $1.mask = $1.mask & ~(_DS < 0 ? 1 >>> -_DS : 1 << _DS); - } - $1.val = $f($1.val + $1.sval); - $1.nm = $f($1.nm - $1.ew); - $put($1.out, $1.bar, $1.ew); - } - $put($1.out, $f($1.el - 1), $1.nm); - $k[$j++] = $1.out; - }; - $1.tab174 = $a([ 347, 0, 12, 5, 7, 2, 87, 4, 1387, 348, 10, 7, 5, 4, 52, 20, 2947, 1388, 8, 9, 4, 5, 30, 52, 3987, 2948, 6, 11, 3, 6, 10, 104, 4191, 3988, 4, 13, 1, 8, 1, 204 ]); - $1.dxw = $a($1.datalen); - for (var _Dj = 0, _Di = $1.datalen - 1; _Dj <= _Di; _Dj += 1) { - $1.x = _Dj; - $1.d = $geti($1.binval, $1.x * 12, 12); - $k[$j++] = "d"; - $k[$j++] = 0; - for (var _Dn = 0; _Dn <= 11; _Dn += 1) { - $1.j = _Dn; - var _Ds = $k[--$j]; - $k[$j++] = $f(_Ds + ~~Math.pow(2, 11 - $1.j) * $get($1.d, $1.j)); - } - var _Dt = $k[--$j]; - $1[$k[--$j]] = _Dt; - $1.j = 0; - for (;;) { - if ($le($1.d, $get($1.tab174, $1.j))) { - var _E1 = $geti($1.tab174, $1.j + 1, 7); - for (var _E2 = 0, _E3 = _E1.length; _E2 < _E3; _E2++) { - $k[$j++] = $get(_E1, _E2); - } - $1.dte = $k[--$j]; - $1.dto = $k[--$j]; - $1.dmwe = $k[--$j]; - $1.dmwo = $k[--$j]; - $1.dele = $k[--$j]; - $1.delo = $k[--$j]; - $1.dgs = $k[--$j]; - break; - } - $1.j = $1.j + 8; - } - $k[$j++] = "dwo"; - $k[$j++] = ~~($f($1.d - $1.dgs) / $1.dte); - $k[$j++] = $1.delo; - $k[$j++] = $1.dmwo; - $k[$j++] = 4; - $k[$j++] = true; - $1.getRSSwidths(); - var _EI = $k[--$j]; - $1[$k[--$j]] = _EI; - $k[$j++] = "dwe"; - $k[$j++] = $f($1.d - $1.dgs) % $1.dte; - $k[$j++] = $1.dele; - $k[$j++] = $1.dmwe; - $k[$j++] = 4; - $k[$j++] = false; - $1.getRSSwidths(); - var _EP = $k[--$j]; - $1[$k[--$j]] = _EP; - $1.dw = $a(8); - if ($1.x % 2 == 0) { - for (var _ET = 0; _ET <= 3; _ET += 1) { - $1.j = _ET; - $put($1.dw, 7 - $1.j * 2, $get($1.dwo, $1.j)); - $put($1.dw, 6 - $1.j * 2, $get($1.dwe, $1.j)); - } - } else { - for (var _Ee = 0; _Ee <= 3; _Ee += 1) { - $1.j = _Ee; - $put($1.dw, $1.j * 2, $get($1.dwo, $1.j)); - $put($1.dw, $1.j * 2 + 1, $get($1.dwe, $1.j)); - } - } - $put($1.dxw, $1.x, $1.dw); - } - $1.finderwidths = $a([ 1, 8, 4, 1, 1, 1, 1, 4, 8, 1, 3, 6, 4, 1, 1, 1, 1, 4, 6, 3, 3, 4, 6, 1, 1, 1, 1, 6, 4, 3, 3, 2, 8, 1, 1, 1, 1, 8, 2, 3, 2, 6, 5, 1, 1, 1, 1, 5, 6, 2, 2, 2, 9, 1, 1, 1, 1, 9, 2, 2 ]); - $1.finderseq = $a([ $a([ 0, 1 ]), $a([ 0, 3, 2 ]), $a([ 0, 5, 2, 7 ]), $a([ 0, 9, 2, 7, 4 ]), $a([ 0, 9, 2, 7, 6, 11 ]), $a([ 0, 9, 2, 7, 8, 11, 10 ]), $a([ 0, 1, 2, 3, 4, 5, 6, 7 ]), $a([ 0, 1, 2, 3, 4, 5, 6, 9, 8 ]), $a([ 0, 1, 2, 3, 4, 5, 6, 9, 10, 11 ]), $a([ 0, 1, 2, 3, 4, 7, 6, 9, 8, 11, 10 ]) ]); - $1.seq = $get($1.finderseq, ~~(($1.datalen - 2) / 2)); - $1.fxw = $a($1.seq.length); - for (var _FB = 0, _FA = $1.seq.length - 1; _FB <= _FA; _FB += 1) { - $1.x = _FB; - $put($1.fxw, $1.x, $geti($1.finderwidths, $get($1.seq, $1.x) * 5, 5)); - } - $1.checkweights = $a([ -1, -1, -1, -1, -1, -1, -1, -1, 77, 96, 32, 81, 27, 9, 3, 1, 20, 60, 180, 118, 143, 7, 21, 63, 205, 209, 140, 117, 39, 13, 145, 189, 193, 157, 49, 147, 19, 57, 171, 91, 132, 44, 85, 169, 197, 136, 186, 62, 185, 133, 188, 142, 4, 12, 36, 108, 50, 87, 29, 80, 97, 173, 128, 113, 150, 28, 84, 41, 123, 158, 52, 156, 166, 196, 206, 139, 187, 203, 138, 46, 76, 17, 51, 153, 37, 111, 122, 155, 146, 119, 110, 107, 106, 176, 129, 43, 16, 48, 144, 10, 30, 90, 59, 177, 164, 125, 112, 178, 200, 137, 116, 109, 70, 210, 208, 202, 184, 130, 179, 115, 190, 204, 68, 93, 31, 151, 191, 134, 148, 22, 66, 198, 172, 94, 71, 2, 40, 154, 192, 64, 162, 54, 18, 6, 120, 149, 25, 75, 14, 42, 126, 167, 175, 199, 207, 69, 23, 78, 26, 79, 103, 98, 83, 38, 114, 131, 182, 124, 159, 53, 88, 170, 127, 183, 61, 161, 55, 165, 73, 8, 24, 72, 5, 15, 89, 100, 174, 58, 160, 194, 135, 45 ]); - $k[$j++] = Infinity; - $forall($1.seq, function() { - $aload($geti($1.checkweights, $k[--$j] * 16, 16)); - }); - var _FO = $a(); - $1.checkweightseq = $geti(_FO, 8, _FO.length - 8); - $k[$j++] = Infinity; - var _FQ = $1.dxw; - for (var _FR = 0, _FS = _FQ.length; _FR < _FS; _FR++) { - $forall($get(_FQ, _FR)); - } - $1.widths = $a(); - $1.checksum = 0; - for (var _FX = 0, _FW = $1.widths.length - 1; _FX <= _FW; _FX += 1) { - $1.i = _FX; - $1.checksum = $f($1.checksum + $get($1.widths, $1.i) * $get($1.checkweightseq, $1.i)); - } - $1.checksum = $f($1.checksum % 211 + ($1.datalen - 3) * 211); - $1.i = 0; - for (;;) { - if ($1.checksum <= $get($1.tab174, $1.i)) { - var _Fn = $geti($1.tab174, $1.i + 1, 7); - for (var _Fo = 0, _Fp = _Fn.length; _Fo < _Fp; _Fo++) { - $k[$j++] = $get(_Fn, _Fo); - } - $1.cte = $k[--$j]; - $1.cto = $k[--$j]; - $1.cmwe = $k[--$j]; - $1.cmwo = $k[--$j]; - $1.cele = $k[--$j]; - $1.celo = $k[--$j]; - $1.cgs = $k[--$j]; - break; - } - $1.i = $1.i + 8; - } - $k[$j++] = "cwo"; - $k[$j++] = ~~($f($1.checksum - $1.cgs) / $1.cte); - $k[$j++] = $1.celo; - $k[$j++] = $1.cmwo; - $k[$j++] = 4; - $k[$j++] = true; - $1.getRSSwidths(); - var _G4 = $k[--$j]; - $1[$k[--$j]] = _G4; - $k[$j++] = "cwe"; - $k[$j++] = $f($1.checksum - $1.cgs) % $1.cte; - $k[$j++] = $1.cele; - $k[$j++] = $1.cmwe; - $k[$j++] = 4; - $k[$j++] = false; - $1.getRSSwidths(); - var _GB = $k[--$j]; - $1[$k[--$j]] = _GB; - $1.cw = $a(8); - for (var _GE = 0; _GE <= 3; _GE += 1) { - $1.i = _GE; - $put($1.cw, $1.i * 2, $get($1.cwo, $1.i)); - $put($1.cw, $1.i * 2 + 1, $get($1.cwe, $1.i)); - } - var _GP = $a(22); - $put(_GP, 0, $1.cw); - $puti(_GP, 1, $1.dxw); - $1.dxw = $geti(_GP, 0, $1.datalen + 1); - $1.datalen = $1.dxw.length; - $1.rows = $a(~~Math.ceil($1.datalen / $1.segments)); - $1.numrows = $1.rows.length; - for (var _Gb = 0, _Ga = $1.numrows - 1; _Gb <= _Ga; _Gb += 1) { - $1.r = _Gb; - $k[$j++] = Infinity; - if ($1.segments % 4 != 0 && $1.r % 2 == 1) { - $k[$j++] = 0; - } - $k[$j++] = 1; - $k[$j++] = 1; - for (var _Gg = 0, _Gf = $1.segments - 1; _Gg <= _Gf; _Gg += 1) { - $1.pos = _Gg + $1.r * $1.segments; - if ($1.pos < $1.datalen) { - $forall($get($1.dxw, $1.pos)); - if ($1.pos % 2 == 0) { - $forall($get($1.fxw, ~~($1.pos / 2))); - } - } - } - var _Gs = $counttomark() + 2; - $k[$j++] = 1; - $k[$j++] = 1; - $astore($a(_Gs)); - $put($1.rows, $1.r, $k[--$j]); - $j--; - } - if ($ne($1.format, "expandedstacked")) { - var _Gz = $get($1.rows, 0); - $1.sbs = $geti(_Gz, 1, _Gz.length - 1); - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _H3 = 0, _H2 = $1.datalen - 1; _H3 <= _H2; _H3 += 1) { - $1.i = _H3; - $forall($get($1.dxw, $1.i)); - if ($1.i % 2 == 0) { - $forall($get($1.fxw, ~~($1.i / 2))); - } - } - $k[$j++] = 1; - $k[$j++] = 1; - $1.sbs = $a(); - delete $1.options["parse"]; - $k[$j++] = Infinity; - var _HD = $1.sbs; - $k[$j++] = Infinity; - for (var _HF = 0, _HG = ~~(($1.sbs.length + 1) / 2); _HF < _HG; _HF++) { - $k[$j++] = $1.height; - } - var _HI = $a(); - $k[$j++] = Infinity; - for (var _HK = 0, _HL = ~~(($1.sbs.length + 1) / 2); _HK < _HL; _HK++) { - $k[$j++] = 0; - } - var _HM = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _HD; - $k[$j++] = "bhs"; - $k[$j++] = _HI; - $k[$j++] = "bbs"; - $k[$j++] = _HM; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _HO = $d(); - $k[$j++] = _HO; - if (!$1.dontdraw) { - $0.renlinear(); - } - } else { - $1.seps = $a($1.numrows); - for (var _HU = 0, _HT = $1.numrows - 1; _HU <= _HT; _HU += 1) { - $1.r = _HU; - $1.row = $get($1.rows, $1.r); - $k[$j++] = Infinity; - for (var _Ha = 0, _HZ = $1.row.length - 1; _Ha <= _HZ; _Ha += 2) { - $1.i = _Ha; - for (var _He = 0, _Hf = $get($1.row, $1.i); _He < _Hf; _He++) { - $k[$j++] = 0; - } - if ($1.i < $1.row.length - 1) { - for (var _Hl = 0, _Hm = $get($1.row, $1.i + 1); _Hl < _Hm; _Hl++) { - $k[$j++] = 1; - } - } - } - $astore($a($counttomark())); - $1.row = $k[--$j]; - $j--; - $k[$j++] = Infinity; - $forall($1.row, function() { - var _Hr = $k[--$j]; - $k[$j++] = $f(1 - _Hr); - }); - $1.sep = $a(); - $k[$j++] = Infinity; - for (var _Hv = 19, _Hu = $1.row.length - 13; _Hv <= _Hu; _Hv += 98) { - $k[$j++] = _Hv; - } - for (var _Hy = 68, _Hx = $1.row.length - 13; _Hy <= _Hx; _Hy += 98) { - $k[$j++] = _Hy; - } - $1.finderpos = $a(); - var _I0 = $1.finderpos; - for (var _I1 = 0, _I2 = _I0.length; _I1 < _I2; _I1++) { - var _I3 = $get(_I0, _I1); - for (var _I5 = _I3, _I4 = $f(_I3 + 14); _I5 <= _I4; _I5 += 1) { - $1.i = _I5; - if ($get($1.row, $1.i) == 0) { - if ($get($1.row, $1.i - 1) == 1) { - $k[$j++] = 1; - } else { - var _IF = $get($1.sep, $1.i - 1) == 0 ? 1 : 0; - $k[$j++] = _IF; - } - } else { - $k[$j++] = 0; - } - $put($1.sep, $1.i, $k[--$j]); - } - } - $puti($1.sep, 0, $a([ 0, 0, 0, 0 ])); - $puti($1.sep, $1.row.length - 4, $a([ 0, 0, 0, 0 ])); - if ($1.segments % 4 == 0 && $1.r % 2 == 1) { - if ($get($1.rows, $1.r).length != $get($1.rows, 0).length && $1.finderpos.length % 2 == 1) { - $k[$j++] = Infinity; - $k[$j++] = 0; - $aload($1.row); - $1.row = $a(); - $k[$j++] = Infinity; - $k[$j++] = 0; - $aload($1.sep); - $1.sep = $a(); - } else { - for (var _Ib = $1.row.length - 1; _Ib >= 0; _Ib -= 1) { - $k[$j++] = $get($1.row, _Ib); - } - $astore($1.row); - $j--; - for (var _Ig = $1.sep.length - 1; _Ig >= 0; _Ig -= 1) { - $k[$j++] = $get($1.sep, _Ig); - } - $astore($1.sep); - $j--; - } - } - $put($1.rows, $1.r, $1.row); - $put($1.seps, $1.r, $1.sep); - } - $1.pixx = $get($1.rows, 0).length; - $k[$j++] = Infinity; - for (var _It = 0, _Iu = $1.pixx; _It < _Iu; _It++) { - $k[$j++] = 0; - } - var _Iv = $a(); - $puti(_Iv, 0, $get($1.rows, $1.numrows - 1)); - $put($1.rows, $1.numrows - 1, _Iv); - $k[$j++] = Infinity; - for (var _J2 = 0, _J3 = $1.pixx; _J2 < _J3; _J2++) { - $k[$j++] = 0; - } - var _J4 = $a(); - $puti(_J4, 0, $get($1.seps, $1.numrows - 1)); - $put($1.seps, $1.numrows - 1, _J4); - $k[$j++] = Infinity; - for (var _JB = 0, _JC = ~~($1.pixx / 2) + 1; _JB < _JC; _JB++) { - $k[$j++] = 0; - $k[$j++] = 1; - } - $1.sep = $geti($a(), 0, $1.pixx); - $puti($1.sep, 0, $a([ 0, 0, 0, 0 ])); - $puti($1.sep, $1.pixx - 4, $a([ 0, 0, 0, 0 ])); - $k[$j++] = Infinity; - for (var _JN = 0, _JM = $1.numrows - 1; _JN <= _JM; _JN += 1) { - $1.r = _JN; - if ($1.r != 0) { - $aload($get($1.seps, $1.r)); - } - for (var _JT = 0, _JU = $1.barxmult; _JT < _JU; _JT++) { - $aload($get($1.rows, $1.r)); - } - if ($1.r != $1.numrows - 1) { - $aload($get($1.seps, $1.r)); - $aload($1.sep); - } - } - $1.pixs = $a(); - delete $1.options["parse"]; - var _Jo = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", $1.pixx ], [ "pixy", ~~($1.pixs.length / $1.pixx) ], [ "height", ~~($1.pixs.length / $1.pixx) / 72 ], [ "width", $1.pixx / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _Jo; - if (!$1.dontdraw) { - $0.renmatrix(); - } - } + $1.oe = $k[--$j]; //#8160 + $1.el = $k[--$j]; //#8161 + $1.mw = $k[--$j]; //#8162 + $1.nm = $k[--$j]; //#8163 + $1.val = $k[--$j]; //#8164 + $1.out = $a($1.el); //#8165 + $1.mask = 0; //#8166 + for (var _Cb = 0, _Ca = $f($1.el - 2); _Cb <= _Ca; _Cb += 1) { //#8193 + $1.bar = _Cb; //#8168 + $1.ew = 1; //#8169 + var _Cd = $1.bar; //#8170 + $1.mask = $1.mask | ((_Cd < 0 ? 1 >>> -_Cd : 1 << _Cd)); //#8170 + for (;;) { //#8189 + $k[$j++] = 'sval'; //#8171 + $k[$j++] = $f($f($1.nm - $1.ew) - 1); //#8171 + $k[$j++] = $f($f($1.el - $1.bar) - 2); //#8171 + $1.ncr(); //#8171 + var _Ci = $k[--$j]; //#8171 + $1[$k[--$j]] = _Ci; //#8171 + if (($1.oe && ($1.mask == 0)) && (($f(($f($f($1.nm - $1.ew) - ($1.el * 2))) + ($1.bar * 2))) >= -2)) { //#8174 + $k[$j++] = 'sval'; //#8173 + $k[$j++] = $1.sval; //#8173 + $k[$j++] = $f(($f($f($1.nm - $1.ew) - $1.el)) + $1.bar); //#8173 + $k[$j++] = $f($f($1.el - $1.bar) - 2); //#8173 + $1.ncr(); //#8173 + var _Cx = $k[--$j]; //#8173 + var _Cy = $k[--$j]; //#8173 + $1[$k[--$j]] = $f(_Cy - _Cx); //#8173 + } //#8173 + if ($f($1.el - $1.bar) > 2) { //#8183 + $1.lval = 0; //#8176 + for (var _D8 = $f(($f(($f($f($1.nm - $1.ew) - $1.el)) + $1.bar)) + 2), _D7 = $f($1.mw + 1); _D8 >= _D7; _D8 -= 1) { //#8180 + $k[$j++] = $f(($f($f($1.nm - _D8) - $1.ew)) - 1); //#8178 + $k[$j++] = $f($f($1.el - $1.bar) - 3); //#8178 + $1.ncr(); //#8178 + $1.lval = $f($k[--$j] + $1.lval); //#8179 + } //#8179 + $1.sval = $f($1.sval - ($1.lval * ($f($f($1.el - $1.bar) - 1)))); //#8181 + } else { //#8183 + if ($f($1.nm - $1.ew) > $1.mw) { //#8183 + $1.sval = $f($1.sval - 1); //#8183 + } //#8183 + } //#8183 + $1.val = $f($1.val - $1.sval); //#8185 + if ($1.val < 0) { //#8186 + break; //#8186 + } //#8186 + $1.ew = $1.ew + 1; //#8187 + var _DS = $1.bar; //#8188 + $1.mask = $1.mask & (~((_DS < 0 ? 1 >>> -_DS : 1 << _DS))); //#8188 + } //#8188 + $1.val = $f($1.val + $1.sval); //#8190 + $1.nm = $f($1.nm - $1.ew); //#8191 + $put($1.out, $1.bar, $1.ew); //#8192 + } //#8192 + $put($1.out, $f($1.el - 1), $1.nm); //#8194 + $k[$j++] = $1.out; //#8195 + }; //#8196 + $1.tab174 = $a([347, 0, 12, 5, 7, 2, 87, 4, 1387, 348, 10, 7, 5, 4, 52, 20, 2947, 1388, 8, 9, 4, 5, 30, 52, 3987, 2948, 6, 11, 3, 6, 10, 104, 4191, 3988, 4, 13, 1, 8, 1, 204]); //#8204 + $1.dxw = $a($1.datalen); //#8206 + for (var _Dj = 0, _Di = $1.datalen - 1; _Dj <= _Di; _Dj += 1) { //#8247 + $1.x = _Dj; //#8210 + $1.d = $geti($1.binval, $1.x * 12, 12); //#8212 + $k[$j++] = 'd'; //#8213 + $k[$j++] = 0; //#8213 + for (var _Dn = 0; _Dn <= 11; _Dn += 1) { //#8213 + $1.j = _Dn; //#8213 + var _Ds = $k[--$j]; //#8213 + $k[$j++] = $f(_Ds + ((~~Math.pow(2, 11 - $1.j)) * $get($1.d, $1.j))); //#8213 + } //#8213 + var _Dt = $k[--$j]; //#8213 + $1[$k[--$j]] = _Dt; //#8213 + $1.j = 0; //#8215 + for (;;) { //#8225 + if ($le($1.d, $get($1.tab174, $1.j))) { //#8223 + var _E1 = $geti($1.tab174, $1.j + 1, 7); //#8217 + for (var _E2 = 0, _E3 = _E1.length; _E2 < _E3; _E2++) { //#8217 + $k[$j++] = $get(_E1, _E2); //#8217 + } //#8217 + $1.dte = $k[--$j]; //#8218 + $1.dto = $k[--$j]; //#8218 + $1.dmwe = $k[--$j]; //#8219 + $1.dmwo = $k[--$j]; //#8219 + $1.dele = $k[--$j]; //#8220 + $1.delo = $k[--$j]; //#8220 + $1.dgs = $k[--$j]; //#8221 + break; //#8222 + } //#8222 + $1.j = $1.j + 8; //#8224 + } //#8224 + $k[$j++] = 'dwo'; //#8227 + $k[$j++] = ~~($f($1.d - $1.dgs) / $1.dte); //#8227 + $k[$j++] = $1.delo; //#8227 + $k[$j++] = $1.dmwo; //#8227 + $k[$j++] = 4; //#8227 + $k[$j++] = true; //#8227 + $1.getRSSwidths(); //#8227 + var _EI = $k[--$j]; //#8227 + $1[$k[--$j]] = _EI; //#8227 + $k[$j++] = 'dwe'; //#8228 + $k[$j++] = $f($1.d - $1.dgs) % $1.dte; //#8228 + $k[$j++] = $1.dele; //#8228 + $k[$j++] = $1.dmwe; //#8228 + $k[$j++] = 4; //#8228 + $k[$j++] = false; //#8228 + $1.getRSSwidths(); //#8228 + var _EP = $k[--$j]; //#8228 + $1[$k[--$j]] = _EP; //#8228 + $1.dw = $a(8); //#8230 + if (($1.x % 2) == 0) { //#8241 + for (var _ET = 0; _ET <= 3; _ET += 1) { //#8236 + $1.j = _ET; //#8233 + $put($1.dw, 7 - ($1.j * 2), $get($1.dwo, $1.j)); //#8234 + $put($1.dw, 6 - ($1.j * 2), $get($1.dwe, $1.j)); //#8235 + } //#8235 + } else { //#8241 + for (var _Ee = 0; _Ee <= 3; _Ee += 1) { //#8242 + $1.j = _Ee; //#8239 + $put($1.dw, $1.j * 2, $get($1.dwo, $1.j)); //#8240 + $put($1.dw, ($1.j * 2) + 1, $get($1.dwe, $1.j)); //#8241 + } //#8241 + } //#8241 + $put($1.dxw, $1.x, $1.dw); //#8245 + } //#8245 + $1.finderwidths = $a([1, 8, 4, 1, 1, 1, 1, 4, 8, 1, 3, 6, 4, 1, 1, 1, 1, 4, 6, 3, 3, 4, 6, 1, 1, 1, 1, 6, 4, 3, 3, 2, 8, 1, 1, 1, 1, 8, 2, 3, 2, 6, 5, 1, 1, 1, 1, 5, 6, 2, 2, 2, 9, 1, 1, 1, 1, 9, 2, 2]); //#8256 + $1.finderseq = $a([$a([0, 1]), $a([0, 3, 2]), $a([0, 5, 2, 7]), $a([0, 9, 2, 7, 4]), $a([0, 9, 2, 7, 6, 11]), $a([0, 9, 2, 7, 8, 11, 10]), $a([0, 1, 2, 3, 4, 5, 6, 7]), $a([0, 1, 2, 3, 4, 5, 6, 9, 8]), $a([0, 1, 2, 3, 4, 5, 6, 9, 10, 11]), $a([0, 1, 2, 3, 4, 7, 6, 9, 8, 11, 10])]); //#8269 + $1.seq = $get($1.finderseq, ~~(($1.datalen - 2) / 2)); //#8271 + $1.fxw = $a($1.seq.length); //#8272 + for (var _FB = 0, _FA = $1.seq.length - 1; _FB <= _FA; _FB += 1) { //#8276 + $1.x = _FB; //#8274 + $put($1.fxw, $1.x, $geti($1.finderwidths, $get($1.seq, $1.x) * 5, 5)); //#8275 + } //#8275 + $1.checkweights = $a([-1, -1, -1, -1, -1, -1, -1, -1, 77, 96, 32, 81, 27, 9, 3, 1, 20, 60, 180, 118, 143, 7, 21, 63, 205, 209, 140, 117, 39, 13, 145, 189, 193, 157, 49, 147, 19, 57, 171, 91, 132, 44, 85, 169, 197, 136, 186, 62, 185, 133, 188, 142, 4, 12, 36, 108, 50, 87, 29, 80, 97, 173, 128, 113, 150, 28, 84, 41, 123, 158, 52, 156, 166, 196, 206, 139, 187, 203, 138, 46, 76, 17, 51, 153, 37, 111, 122, 155, 146, 119, 110, 107, 106, 176, 129, 43, 16, 48, 144, 10, 30, 90, 59, 177, 164, 125, 112, 178, 200, 137, 116, 109, 70, 210, 208, 202, 184, 130, 179, 115, 190, 204, 68, 93, 31, 151, 191, 134, 148, 22, 66, 198, 172, 94, 71, 2, 40, 154, 192, 64, 162, 54, 18, 6, 120, 149, 25, 75, 14, 42, 126, 167, 175, 199, 207, 69, 23, 78, 26, 79, 103, 98, 83, 38, 114, 131, 182, 124, 159, 53, 88, 170, 127, 183, 61, 161, 55, 165, 73, 8, 24, 72, 5, 15, 89, 100, 174, 58, 160, 194, 135, 45]); //#8303 + $k[$j++] = Infinity; //#8306 + $forall($1.seq, function() { //#8306 + $aload($geti($1.checkweights, $k[--$j] * 16, 16)); //#8306 + }); //#8306 + var _FO = $a(); //#8306 + $1.checkweightseq = $geti(_FO, 8, _FO.length - 8); //#8307 + $k[$j++] = Infinity; //#8310 + var _FQ = $1.dxw; //#8310 + for (var _FR = 0, _FS = _FQ.length; _FR < _FS; _FR++) { //#8310 + $forall($get(_FQ, _FR)); //#8310 + } //#8310 + $1.widths = $a(); //#8310 + $1.checksum = 0; //#8313 + for (var _FX = 0, _FW = $1.widths.length - 1; _FX <= _FW; _FX += 1) { //#8317 + $1.i = _FX; //#8315 + $1.checksum = $f($1.checksum + ($get($1.widths, $1.i) * $get($1.checkweightseq, $1.i))); //#8316 + } //#8316 + $1.checksum = $f(($1.checksum % 211) + (($1.datalen - 3) * 211)); //#8318 + $1.i = 0; //#8320 + for (;;) { //#8330 + if ($1.checksum <= $get($1.tab174, $1.i)) { //#8328 + var _Fn = $geti($1.tab174, $1.i + 1, 7); //#8322 + for (var _Fo = 0, _Fp = _Fn.length; _Fo < _Fp; _Fo++) { //#8322 + $k[$j++] = $get(_Fn, _Fo); //#8322 + } //#8322 + $1.cte = $k[--$j]; //#8323 + $1.cto = $k[--$j]; //#8323 + $1.cmwe = $k[--$j]; //#8324 + $1.cmwo = $k[--$j]; //#8324 + $1.cele = $k[--$j]; //#8325 + $1.celo = $k[--$j]; //#8325 + $1.cgs = $k[--$j]; //#8326 + break; //#8327 + } //#8327 + $1.i = $1.i + 8; //#8329 + } //#8329 + $k[$j++] = 'cwo'; //#8332 + $k[$j++] = ~~($f($1.checksum - $1.cgs) / $1.cte); //#8332 + $k[$j++] = $1.celo; //#8332 + $k[$j++] = $1.cmwo; //#8332 + $k[$j++] = 4; //#8332 + $k[$j++] = true; //#8332 + $1.getRSSwidths(); //#8332 + var _G4 = $k[--$j]; //#8332 + $1[$k[--$j]] = _G4; //#8332 + $k[$j++] = 'cwe'; //#8333 + $k[$j++] = $f($1.checksum - $1.cgs) % $1.cte; //#8333 + $k[$j++] = $1.cele; //#8333 + $k[$j++] = $1.cmwe; //#8333 + $k[$j++] = 4; //#8333 + $k[$j++] = false; //#8333 + $1.getRSSwidths(); //#8333 + var _GB = $k[--$j]; //#8333 + $1[$k[--$j]] = _GB; //#8333 + $1.cw = $a(8); //#8335 + for (var _GE = 0; _GE <= 3; _GE += 1) { //#8340 + $1.i = _GE; //#8337 + $put($1.cw, $1.i * 2, $get($1.cwo, $1.i)); //#8338 + $put($1.cw, ($1.i * 2) + 1, $get($1.cwe, $1.i)); //#8339 + } //#8339 + var _GP = $a(22); //#8342 + $put(_GP, 0, $1.cw); //#8343 + $puti(_GP, 1, $1.dxw); //#8343 + $1.dxw = $geti(_GP, 0, $1.datalen + 1); //#8344 + $1.datalen = $1.dxw.length; //#8345 + $1.rows = $a(~~Math.ceil($1.datalen / $1.segments)); //#8348 + $1.numrows = $1.rows.length; //#8349 + for (var _Gb = 0, _Ga = $1.numrows - 1; _Gb <= _Ga; _Gb += 1) { //#8364 + $1.r = _Gb; //#8351 + $k[$j++] = Infinity; //#8352 + if ((($1.segments % 4) != 0) && (($1.r % 2) == 1)) { //#8353 + $k[$j++] = 0; //#8353 + } //#8353 + $k[$j++] = 1; //#8361 + $k[$j++] = 1; //#8361 + for (var _Gg = 0, _Gf = $1.segments - 1; _Gg <= _Gf; _Gg += 1) { //#8361 + $1.pos = _Gg + ($1.r * $1.segments); //#8356 + if ($1.pos < $1.datalen) { //#8360 + $forall($get($1.dxw, $1.pos)); //#8358 + if (($1.pos % 2) == 0) { //#8359 + $forall($get($1.fxw, ~~($1.pos / 2))); //#8359 + } //#8359 + } //#8359 + } //#8359 + var _Gs = $counttomark() + 2; //#8363 + $k[$j++] = 1; //#8363 + $k[$j++] = 1; //#8363 + $astore($a(_Gs)); //#8363 + $put($1.rows, $1.r, $k[--$j]); //#8363 + $j--; //#8363 + } //#8363 + if ($ne($1.format, "expandedstacked")) { //#8492 + var _Gz = $get($1.rows, 0); //#8369 + $1.sbs = $geti(_Gz, 1, _Gz.length - 1); //#8369 + $k[$j++] = Infinity; //#8378 + $k[$j++] = 1; //#8377 + for (var _H3 = 0, _H2 = $1.datalen - 1; _H3 <= _H2; _H3 += 1) { //#8377 + $1.i = _H3; //#8374 + $forall($get($1.dxw, $1.i)); //#8375 + if (($1.i % 2) == 0) { //#8376 + $forall($get($1.fxw, ~~($1.i / 2))); //#8376 + } //#8376 + } //#8376 + $k[$j++] = 1; //#8378 + $k[$j++] = 1; //#8378 + $1.sbs = $a(); //#8378 + delete $1.options["parse"]; //#8381 + $k[$j++] = Infinity; //#8388 + var _HD = $1.sbs; //#8385 + $k[$j++] = Infinity; //#8386 + for (var _HF = 0, _HG = ~~(($1.sbs.length + 1) / 2); _HF < _HG; _HF++) { //#8386 + $k[$j++] = $1.height; //#8386 + } //#8386 + var _HI = $a(); //#8386 + $k[$j++] = Infinity; //#8387 + for (var _HK = 0, _HL = ~~(($1.sbs.length + 1) / 2); _HK < _HL; _HK++) { //#8387 + $k[$j++] = 0; //#8387 + } //#8387 + var _HM = $a(); //#8387 + $k[$j++] = 'ren'; //#8388 + $k[$j++] = $0.renlinear; //#8388 + $k[$j++] = 'sbs'; //#8388 + $k[$j++] = _HD; //#8388 + $k[$j++] = 'bhs'; //#8388 + $k[$j++] = _HI; //#8388 + $k[$j++] = 'bbs'; //#8388 + $k[$j++] = _HM; //#8388 + $k[$j++] = 'opt'; //#8388 + $k[$j++] = $1.options; //#8388 + var _HO = $d(); //#8388 + $k[$j++] = _HO; //#8391 + if (!$1.dontdraw) { //#8391 + $0.renlinear(); //#8391 + } //#8391 + } else { //#8492 + $1.seps = $a($1.numrows); //#8395 + for (var _HU = 0, _HT = $1.numrows - 1; _HU <= _HT; _HU += 1) { //#8451 + $1.r = _HU; //#8398 + $1.row = $get($1.rows, $1.r); //#8399 + $k[$j++] = Infinity; //#8402 + for (var _Ha = 0, _HZ = $1.row.length - 1; _Ha <= _HZ; _Ha += 2) { //#8407 + $1.i = _Ha; //#8404 + for (var _He = 0, _Hf = $get($1.row, $1.i); _He < _Hf; _He++) { //#8405 + $k[$j++] = 0; //#8405 + } //#8405 + if ($1.i < ($1.row.length - 1)) { //#8406 + for (var _Hl = 0, _Hm = $get($1.row, $1.i + 1); _Hl < _Hm; _Hl++) { //#8406 + $k[$j++] = 1; //#8406 + } //#8406 + } //#8406 + } //#8406 + $astore($a($counttomark())); //#8408 + $1.row = $k[--$j]; //#8408 + $j--; //#8408 + $k[$j++] = Infinity; //#8411 + $forall($1.row, function() { //#8411 + var _Hr = $k[--$j]; //#8411 + $k[$j++] = $f(1 - _Hr); //#8411 + }); //#8411 + $1.sep = $a(); //#8411 + $k[$j++] = Infinity; //#8414 + for (var _Hv = 19, _Hu = $1.row.length - 13; _Hv <= _Hu; _Hv += 98) { //#8413 + $k[$j++] = _Hv; //#8413 + } //#8413 + for (var _Hy = 68, _Hx = $1.row.length - 13; _Hy <= _Hx; _Hy += 98) { //#8414 + $k[$j++] = _Hy; //#8414 + } //#8414 + $1.finderpos = $a(); //#8414 + var _I0 = $1.finderpos; //#8416 + for (var _I1 = 0, _I2 = _I0.length; _I1 < _I2; _I1++) { //#8430 + var _I3 = $get(_I0, _I1); //#8430 + for (var _I5 = _I3, _I4 = $f(_I3 + 14); _I5 <= _I4; _I5 += 1) { //#8429 + $1.i = _I5; //#8418 + if ($get($1.row, $1.i) == 0) { //#8426 + if ($get($1.row, $1.i - 1) == 1) { //#8423 + $k[$j++] = 1; //#8421 + } else { //#8423 + var _IF = ($get($1.sep, $1.i - 1) == 0) ? 1 : 0; //#8423 + $k[$j++] = _IF; //#8423 + } //#8423 + } else { //#8426 + $k[$j++] = 0; //#8426 + } //#8426 + $put($1.sep, $1.i, $k[--$j]); //#8428 + } //#8428 + } //#8428 + $puti($1.sep, 0, $a([0, 0, 0, 0])); //#8431 + $puti($1.sep, $1.row.length - 4, $a([0, 0, 0, 0])); //#8432 + if ((($1.segments % 4) == 0) && (($1.r % 2) == 1)) { //#8446 + if (($get($1.rows, $1.r).length != $get($1.rows, 0).length) && (($1.finderpos.length % 2) == 1)) { //#8444 + $k[$j++] = Infinity; //#8438 + $k[$j++] = 0; //#8438 + $aload($1.row); //#8438 + $1.row = $a(); //#8438 + $k[$j++] = Infinity; //#8439 + $k[$j++] = 0; //#8439 + $aload($1.sep); //#8439 + $1.sep = $a(); //#8439 + } else { //#8444 + for (var _Ib = $1.row.length - 1; _Ib >= 0; _Ib -= 1) { //#8441 + $k[$j++] = $get($1.row, _Ib); //#8441 + } //#8441 + $astore($1.row); //#8442 + $j--; //#8442 + for (var _Ig = $1.sep.length - 1; _Ig >= 0; _Ig -= 1) { //#8443 + $k[$j++] = $get($1.sep, _Ig); //#8443 + } //#8443 + $astore($1.sep); //#8444 + $j--; //#8444 + } //#8444 + } //#8444 + $put($1.rows, $1.r, $1.row); //#8448 + $put($1.seps, $1.r, $1.sep); //#8449 + } //#8449 + $1.pixx = $get($1.rows, 0).length; //#8454 + $k[$j++] = Infinity; //#8455 + for (var _It = 0, _Iu = $1.pixx; _It < _Iu; _It++) { //#8455 + $k[$j++] = 0; //#8455 + } //#8455 + var _Iv = $a(); //#8455 + $puti(_Iv, 0, $get($1.rows, $1.numrows - 1)); //#8455 + $put($1.rows, $1.numrows - 1, _Iv); //#8456 + $k[$j++] = Infinity; //#8457 + for (var _J2 = 0, _J3 = $1.pixx; _J2 < _J3; _J2++) { //#8457 + $k[$j++] = 0; //#8457 + } //#8457 + var _J4 = $a(); //#8457 + $puti(_J4, 0, $get($1.seps, $1.numrows - 1)); //#8457 + $put($1.seps, $1.numrows - 1, _J4); //#8458 + $k[$j++] = Infinity; //#8461 + for (var _JB = 0, _JC = (~~($1.pixx / 2)) + 1; _JB < _JC; _JB++) { //#8461 + $k[$j++] = 0; //#8461 + $k[$j++] = 1; //#8461 + } //#8461 + $1.sep = $geti($a(), 0, $1.pixx); //#8461 + $puti($1.sep, 0, $a([0, 0, 0, 0])); //#8462 + $puti($1.sep, $1.pixx - 4, $a([0, 0, 0, 0])); //#8463 + $k[$j++] = Infinity; //#8475 + for (var _JN = 0, _JM = $1.numrows - 1; _JN <= _JM; _JN += 1) { //#8477 + $1.r = _JN; //#8468 + if ($1.r != 0) { //#8471 + $aload($get($1.seps, $1.r)); //#8470 + } //#8470 + for (var _JT = 0, _JU = $1.barxmult; _JT < _JU; _JT++) { //#8472 + $aload($get($1.rows, $1.r)); //#8472 + } //#8472 + if ($1.r != ($1.numrows - 1)) { //#8476 + $aload($get($1.seps, $1.r)); //#8474 + $aload($1.sep); //#8475 + } //#8475 + } //#8475 + $1.pixs = $a(); //#8475 + delete $1.options["parse"]; //#8480 + var _Jo = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", $1.pixx], + ["pixy", ~~($1.pixs.length / $1.pixx)], + ["height", (~~($1.pixs.length / $1.pixx)) / 72], + ["width", $1.pixx / 72], + ["opt", $1.options] + ]); //#8489 + $k[$j++] = _Jo; //#8492 + if (!$1.dontdraw) { //#8492 + $0.renmatrix(); //#8492 + } //#8492 + } //#8492 }; $0.databarexpandedstacked = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $put($1.options, "dontdraw", true); - $put($1.options, "format", "expandedstacked"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.databarexpanded(); - var _9 = $k[--$j]; - $1[$k[--$j]] = _9; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#8524 + $1.options = $k[--$j]; //#8526 + $1.barcode = $k[--$j]; //#8527 + $1.dontdraw = false; //#8529 + $forall($1.options, function() { //#8540 + var _3 = $k[--$j]; //#8540 + $1[$k[--$j]] = _3; //#8540 + }); //#8540 + $put($1.options, "dontdraw", true); //#8543 + $put($1.options, "format", "expandedstacked"); //#8544 + $k[$j++] = 'args'; //#8546 + $k[$j++] = $1.barcode; //#8546 + $k[$j++] = $1.options; //#8546 + $0.databarexpanded(); //#8546 + var _9 = $k[--$j]; //#8546 + $1[$k[--$j]] = _9; //#8546 + $put($1.args, "opt", $1.options); //#8548 + $k[$j++] = $1.args; //#8551 + if (!$1.dontdraw) { //#8551 + $0.renmatrix(); //#8551 + } //#8551 }; $0.gs1northamericancoupon = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.coupontextfont = "OCR-B"; - $1.coupontextsize = 9; - $1.coupontextxoffset = "unset"; - $1.coupontextyoffset = "unset"; - $1.parse = false; - $1.dontlint = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.coupontextfont = "" + $1.coupontextfont; - $1.coupontextsize = +$1.coupontextsize; - if ($ne($1.coupontextxoffset, "unset")) { - $1.coupontextxoffset = +$1.coupontextxoffset; - } - if ($ne($1.coupontextyoffset, "unset")) { - $1.coupontextyoffset = +$1.coupontextyoffset; - } + var $1 = {}; //#8583 + $1.options = $k[--$j]; //#8585 + $1.barcode = $k[--$j]; //#8586 + $1.dontdraw = false; //#8588 + $1.includetext = false; //#8590 + $1.coupontextfont = "OCR-B"; //#8591 + $1.coupontextsize = 9; //#8592 + $1.coupontextxoffset = "unset"; //#8593 + $1.coupontextyoffset = "unset"; //#8594 + $1.parse = false; //#8595 + $1.dontlint = false; //#8596 + $forall($1.options, function() { //#8607 + var _3 = $k[--$j]; //#8607 + $1[$k[--$j]] = _3; //#8607 + }); //#8607 + $1.coupontextfont = "" + $1.coupontextfont; //#8609 + $1.coupontextsize = +$1.coupontextsize; //#8610 + if ($ne($1.coupontextxoffset, "unset")) { //#8611 + $1.coupontextxoffset = +$1.coupontextxoffset; //#8611 + } //#8611 + if ($ne($1.coupontextyoffset, "unset")) { //#8612 + $1.coupontextyoffset = +$1.coupontextyoffset; //#8612 + } //#8612 $1.expand = function() { - var _C = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _C; - $k[$j++] = $1.fncvals; - $0.parseinput(); - }; - $1.ais = $a([]); - $1.vals = $a([]); - var _G = $1.barcode; - $k[$j++] = $geti(_G, 1, _G.length - 1); - for (;;) { - var _I = $k[--$j]; - $k[$j++] = _I; - if ($eq(_I, "")) { - break; - } - $search($k[--$j], ")"); - $j--; - var _K = $k[--$j]; - var _L = $k[--$j]; - $k[$j++] = _K; - $k[$j++] = _L; - $j--; - var _M = $k[--$j]; - var _N = $k[--$j]; - $k[$j++] = _M; - $search(_N, "("); - if ($k[--$j]) { - var _P = $k[--$j]; - var _Q = $k[--$j]; - $k[$j++] = _P; - $k[$j++] = _Q; - $j--; - var _R = $k[--$j]; - var _S = $k[--$j]; - var _T = $k[--$j]; - $k[$j++] = _S; - $k[$j++] = _T; - $k[$j++] = _R; - } else { - var _U = $k[--$j]; - var _V = $k[--$j]; - $k[$j++] = ""; - $k[$j++] = _V; - $k[$j++] = _U; - } - $k[$j++] = Infinity; - $aload($1.ais); - var _Y = $k[$j - 1 - ($counttomark() + 2)]; - $k[$j++] = _Y; - $1.ais = $a(); - $k[$j++] = Infinity; - $aload($1.vals); - var _c = $k[$j - 1 - ($counttomark() + 1)]; - $k[$j++] = _c; - $1.expand(); - $1.vals = $a(); - $j -= 2; - } - $j--; - if ($1.ais.length != 1) { - $k[$j++] = "bwipp.gs1northamericancouponBadAIStructure"; - $k[$j++] = "A GS1 North American Coupon should consist of a single AI (8110)"; - $0.raiseerror(); - } - if ($ne($get($1.ais, 0), "8110")) { - $k[$j++] = "bwipp.gs1northamericancouponBadAIStructure"; - $k[$j++] = "A GS1 North American Coupon should consist of a single AI (8110)"; - $0.raiseerror(); - } - if (!$1.dontlint) { - $k[$j++] = $1.ais; - $k[$j++] = $1.vals; - $0.gs1lint(); - $j--; - } - $1.val = $get($1.vals, 0); - $1.vli = $f($get($1.val, 0) - 48); - if ($1.vli < 0 || $1.vli > 6) { - $k[$j++] = "bwipp.gs1northamericancouponBadVLI"; - $k[$j++] = "The AI (8110) data should start with a Company Prefix length indicator in the range 0 to 6"; - $0.raiseerror(); - } - $1.gcp = $geti($1.val, 1, $f($1.vli + 6)); - $1.cod = $geti($1.val, $f($1.vli + 7), 6); - $1.coupontext = $s($1.gcp.length + 7); - $puti($1.coupontext, 0, $1.gcp); - $puti($1.coupontext, $1.gcp.length, "-"); - $puti($1.coupontext, $1.gcp.length + 1, $1.cod); - delete $1.options["parse"]; - $put($1.options, "dontdraw", true); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.databarexpandedstacked(); - var _19 = $k[--$j]; - $1[$k[--$j]] = _19; - if ($1.includetext) { - if ($1.coupontextxoffset == "unset") { - $1.coupontextxoffset = 0; - } - if ($1.coupontextyoffset == "unset") { - $1.coupontextyoffset = $f($get($1.args, "height") * 72 + 3); - } - var _1H = $get($1.args, "txt") !== undefined; - if (_1H) { - $1.txt = $get($1.args, "txt"); - $1.newtxt = $a($1.txt.length + 1); - $puti($1.newtxt, 0, $1.txt); - $put($1.newtxt, $1.newtxt.length - 1, $a([ $1.coupontext, $1.coupontextxoffset, $1.coupontextyoffset, $1.coupontextfont, $1.coupontextsize ])); - $put($1.args, "txt", $1.newtxt); - } else { - $put($1.args, "txt", $a([ $a([ $1.coupontext, $1.coupontextxoffset, $1.coupontextyoffset, $1.coupontextfont, $1.coupontextsize ]) ])); - } - } - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var _C = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#8619 + $1.fncvals = _C; //#8620 + $k[$j++] = $1.fncvals; //#8621 + $0.parseinput(); //#8621 + }; //#8622 + $1.ais = $a([]); //#8625 + $1.vals = $a([]); //#8626 + var _G = $1.barcode; //#8627 + $k[$j++] = $geti(_G, 1, _G.length - 1); //#8640 + for (;;) { //#8640 + var _I = $k[--$j]; //#8629 + $k[$j++] = _I; //#8629 + if ($eq(_I, "")) { //#8629 + break; //#8629 + } //#8629 + $search($k[--$j], ")"); //#8630 + $j--; //#8630 + var _K = $k[--$j]; //#8631 + var _L = $k[--$j]; //#8631 + $k[$j++] = _K; //#8631 + $k[$j++] = _L; //#8631 + $j--; //#8631 + var _M = $k[--$j]; //#8632 + var _N = $k[--$j]; //#8632 + $k[$j++] = _M; //#8632 + $search(_N, "("); //#8632 + if ($k[--$j]) { //#8635 + var _P = $k[--$j]; //#8633 + var _Q = $k[--$j]; //#8633 + $k[$j++] = _P; //#8633 + $k[$j++] = _Q; //#8633 + $j--; //#8633 + var _R = $k[--$j]; //#8633 + var _S = $k[--$j]; //#8633 + var _T = $k[--$j]; //#8633 + $k[$j++] = _S; //#8633 + $k[$j++] = _T; //#8633 + $k[$j++] = _R; //#8633 + } else { //#8635 + var _U = $k[--$j]; //#8635 + var _V = $k[--$j]; //#8635 + $k[$j++] = ""; //#8635 + $k[$j++] = _V; //#8635 + $k[$j++] = _U; //#8635 + } //#8635 + $k[$j++] = Infinity; //#8637 + $aload($1.ais); //#8637 + var _Y = $k[$j - 1 - ($counttomark() + 2)]; //#8637 + $k[$j++] = _Y; //#8637 + $1.ais = $a(); //#8637 + $k[$j++] = Infinity; //#8638 + $aload($1.vals); //#8638 + var _c = $k[$j - 1 - ($counttomark() + 1)]; //#8638 + $k[$j++] = _c; //#8638 + $1.expand(); //#8638 + $1.vals = $a(); //#8638 + $j -= 2; //#8639 + } //#8639 + $j--; //#8641 + if ($1.ais.length != 1) { //#8646 + $k[$j++] = 'bwipp.gs1northamericancouponBadAIStructure'; //#8645 + $k[$j++] = "A GS1 North American Coupon should consist of a single AI (8110)"; //#8645 + $0.raiseerror(); //#8645 + } //#8645 + if ($ne($get($1.ais, 0), "8110")) { //#8649 + $k[$j++] = 'bwipp.gs1northamericancouponBadAIStructure'; //#8648 + $k[$j++] = "A GS1 North American Coupon should consist of a single AI (8110)"; //#8648 + $0.raiseerror(); //#8648 + } //#8648 + if (!$1.dontlint) { //#8651 + $k[$j++] = $1.ais; //#8651 + $k[$j++] = $1.vals; //#8651 + $0.gs1lint(); //#8651 + $j--; //#8651 + } //#8651 + $1.val = $get($1.vals, 0); //#8654 + $1.vli = $f($get($1.val, 0) - 48); //#8655 + if (($1.vli < 0) || ($1.vli > 6)) { //#8658 + $k[$j++] = 'bwipp.gs1northamericancouponBadVLI'; //#8657 + $k[$j++] = "The AI (8110) data should start with a Company Prefix length indicator in the range 0 to 6"; //#8657 + $0.raiseerror(); //#8657 + } //#8657 + $1.gcp = $geti($1.val, 1, $f($1.vli + 6)); //#8659 + $1.cod = $geti($1.val, $f($1.vli + 7), 6); //#8660 + $1.coupontext = $s($1.gcp.length + 7); //#8661 + $puti($1.coupontext, 0, $1.gcp); //#8662 + $puti($1.coupontext, $1.gcp.length, "-"); //#8663 + $puti($1.coupontext, $1.gcp.length + 1, $1.cod); //#8664 + delete $1.options["parse"]; //#8667 + $put($1.options, "dontdraw", true); //#8668 + $k[$j++] = 'args'; //#8670 + $k[$j++] = $1.barcode; //#8670 + $k[$j++] = $1.options; //#8670 + $0.databarexpandedstacked(); //#8670 + var _19 = $k[--$j]; //#8670 + $1[$k[--$j]] = _19; //#8670 + if ($1.includetext) { //#8689 + if ($1.coupontextxoffset == "unset") { //#8676 + $1.coupontextxoffset = 0; //#8675 + } //#8675 + if ($1.coupontextyoffset == "unset") { //#8679 + $1.coupontextyoffset = $f(($get($1.args, "height") * 72) + 3); //#8678 + } //#8678 + var _1H = $get($1.args, "txt") !== undefined; //#8680 + if (_1H) { //#8687 + $1.txt = $get($1.args, "txt"); //#8681 + $1.newtxt = $a($1.txt.length + 1); //#8682 + $puti($1.newtxt, 0, $1.txt); //#8683 + $put($1.newtxt, $1.newtxt.length - 1, $a([$1.coupontext, $1.coupontextxoffset, $1.coupontextyoffset, $1.coupontextfont, $1.coupontextsize])); //#8684 + $put($1.args, "txt", $1.newtxt); //#8685 + } else { //#8687 + $put($1.args, "txt", $a([$a([$1.coupontext, $1.coupontextxoffset, $1.coupontextyoffset, $1.coupontextfont, $1.coupontextsize])])); //#8687 + } //#8687 + } //#8687 + $put($1.args, "opt", $1.options); //#8691 + $k[$j++] = $1.args; //#8694 + if (!$1.dontdraw) { //#8694 + $0.renmatrix(); //#8694 + } //#8694 }; $0.pharmacode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.height = 8 * 2.835 / 72; - $1.nwidth = .5 * 2.835; - $1.wwidth = 1.5 * 2.835; - $1.swidth = 1 * 2.835; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.height = +$1.height; - $1.nwidth = +$1.nwidth; - $1.wwidth = +$1.wwidth; - $1.swidth = +$1.swidth; - if ($1.barcode.length < 1 || $1.barcode.length > 6) { - $k[$j++] = "bwipp.pharmacodeBadLength"; - $k[$j++] = "Pharmacode must be 1 to 6 digits"; - $0.raiseerror(); - } - $forall($1.barcode, function() { - var _C = $k[--$j]; - if (_C < 48 || _C > 57) { - $k[$j++] = "bwipp.pharmacodeBadCharacter"; - $k[$j++] = "Pharmacode must contain only digits"; - $0.raiseerror(); - } - }); - var _E = ~~$z($1.barcode); - if (_E < 3 || _E > 131070) { - $k[$j++] = "bwipp.pharmacodeBadValue"; - $k[$j++] = "Pharmacode value must be between 3 and 131070"; - $0.raiseerror(); - } - $1.txt = $a($1.barcode.length); - for (var _J = 0, _I = $1.barcode.length - 1; _J <= _I; _J += 1) { - $1.i = _J; - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), 0, 0, "", 0 ])); - } - $1.barcode = $cvrs($s(17), ~~$z($1.barcode) + 1, 2); - $1.barcode = $geti($1.barcode, 1, $1.barcode.length - 1); - $1.barlen = $1.barcode.length; - $1.sbs = $a($1.barlen * 2); - for (var _b = 0, _a = $1.barlen - 1; _b <= _a; _b += 1) { - $1.i = _b; - $1.enc = $geti($1.barcode, $1.i, 1); - if ($eq($1.enc, "0")) { - $put($1.sbs, $1.i * 2, $1.nwidth); - } else { - $put($1.sbs, $1.i * 2, $1.wwidth); - } - $put($1.sbs, $1.i * 2 + 1, $1.swidth); - } - $k[$j++] = Infinity; - var _p = $1.sbs; - $k[$j++] = Infinity; - for (var _r = 0, _s = ~~(($1.sbs.length + 1) / 2); _r < _s; _r++) { - $k[$j++] = $1.height; - } - var _u = $a(); - $k[$j++] = Infinity; - for (var _w = 0, _x = ~~(($1.sbs.length + 1) / 2); _w < _x; _w++) { - $k[$j++] = 0; - } - var _y = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _p; - $k[$j++] = "bhs"; - $k[$j++] = _u; - $k[$j++] = "bbs"; - $k[$j++] = _y; - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - $k[$j++] = "textxalign"; - $k[$j++] = "center"; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _11 = $d(); - $k[$j++] = _11; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#8723 + $1.options = $k[--$j]; //#8725 + $1.barcode = $k[--$j]; //#8726 + $1.dontdraw = false; //#8728 + $1.height = (8 * 2.835) / 72; //#8729 + $1.nwidth = 0.5 * 2.835; //#8730 + $1.wwidth = 1.5 * 2.835; //#8731 + $1.swidth = 1 * 2.835; //#8732 + $forall($1.options, function() { //#8743 + var _3 = $k[--$j]; //#8743 + $1[$k[--$j]] = _3; //#8743 + }); //#8743 + $1.height = +$1.height; //#8745 + $1.nwidth = +$1.nwidth; //#8746 + $1.wwidth = +$1.wwidth; //#8747 + $1.swidth = +$1.swidth; //#8748 + if (($1.barcode.length < 1) || ($1.barcode.length > 6)) { //#8753 + $k[$j++] = 'bwipp.pharmacodeBadLength'; //#8752 + $k[$j++] = "Pharmacode must be 1 to 6 digits"; //#8752 + $0.raiseerror(); //#8752 + } //#8752 + $forall($1.barcode, function() { //#8758 + var _C = $k[--$j]; //#8755 + if ((_C < 48) || (_C > 57)) { //#8757 + $k[$j++] = 'bwipp.pharmacodeBadCharacter'; //#8756 + $k[$j++] = "Pharmacode must contain only digits"; //#8756 + $0.raiseerror(); //#8756 + } //#8756 + }); //#8756 + var _E = ~~$z($1.barcode); //#8759 + if ((_E < 3) || (_E > 131070)) { //#8761 + $k[$j++] = 'bwipp.pharmacodeBadValue'; //#8760 + $k[$j++] = "Pharmacode value must be between 3 and 131070"; //#8760 + $0.raiseerror(); //#8760 + } //#8760 + $1.txt = $a($1.barcode.length); //#8764 + for (var _J = 0, _I = $1.barcode.length - 1; _J <= _I; _J += 1) { //#8768 + $1.i = _J; //#8766 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), 0, 0, "", 0])); //#8767 + } //#8767 + $1.barcode = $cvrs($s(17), (~~$z($1.barcode)) + 1, 2); //#8771 + $1.barcode = $geti($1.barcode, 1, $1.barcode.length - 1); //#8772 + $1.barlen = $1.barcode.length; //#8774 + $1.sbs = $a($1.barlen * 2); //#8775 + for (var _b = 0, _a = $1.barlen - 1; _b <= _a; _b += 1) { //#8786 + $1.i = _b; //#8778 + $1.enc = $geti($1.barcode, $1.i, 1); //#8779 + if ($eq($1.enc, "0")) { //#8783 + $put($1.sbs, $1.i * 2, $1.nwidth); //#8781 + } else { //#8783 + $put($1.sbs, $1.i * 2, $1.wwidth); //#8783 + } //#8783 + $put($1.sbs, ($1.i * 2) + 1, $1.swidth); //#8785 + } //#8785 + $k[$j++] = Infinity; //#8796 + var _p = $1.sbs; //#8791 + $k[$j++] = Infinity; //#8792 + for (var _r = 0, _s = ~~(($1.sbs.length + 1) / 2); _r < _s; _r++) { //#8792 + $k[$j++] = $1.height; //#8792 + } //#8792 + var _u = $a(); //#8792 + $k[$j++] = Infinity; //#8793 + for (var _w = 0, _x = ~~(($1.sbs.length + 1) / 2); _w < _x; _w++) { //#8793 + $k[$j++] = 0; //#8793 + } //#8793 + var _y = $a(); //#8793 + $k[$j++] = 'ren'; //#8796 + $k[$j++] = $0.renlinear; //#8796 + $k[$j++] = 'sbs'; //#8796 + $k[$j++] = _p; //#8796 + $k[$j++] = 'bhs'; //#8796 + $k[$j++] = _u; //#8796 + $k[$j++] = 'bbs'; //#8796 + $k[$j++] = _y; //#8796 + $k[$j++] = 'txt'; //#8796 + $k[$j++] = $1.txt; //#8796 + $k[$j++] = 'textxalign'; //#8796 + $k[$j++] = "center"; //#8796 + $k[$j++] = 'opt'; //#8796 + $k[$j++] = $1.options; //#8796 + var _11 = $d(); //#8796 + $k[$j++] = _11; //#8799 + if (!$1.dontdraw) { //#8799 + $0.renlinear(); //#8799 + } //#8799 }; $0.pharmacode2 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.height = 4; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.height = +$1.height; - if ($1.barcode.length < 1 || $1.barcode.length > 8) { - $k[$j++] = "bwipp.pharmacode2BadLength"; - $k[$j++] = "Two-track Pharmacode must be 1 to 6 digits"; - $0.raiseerror(); - } - $forall($1.barcode, function() { - var _9 = $k[--$j]; - if (_9 < 48 || _9 > 57) { - $k[$j++] = "bwipp.pharmacode2badCharacter"; - $k[$j++] = "Two-track Pharmacode must contain only digits"; - $0.raiseerror(); - } - }); - var _B = ~~$z($1.barcode); - if (_B < 4 || _B > 64570080) { - $k[$j++] = "bwipp.pharmacode2badValue"; - $k[$j++] = "Two-track Pharmacode value must be between 4 and 64570080"; - $0.raiseerror(); - } - $1.txt = $a($1.barcode.length); - for (var _G = 0, _F = $1.barcode.length - 1; _G <= _F; _G += 1) { - $1.i = _G; - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), 0, 0, "", 0 ])); - } - $1.encstr = $s(16); - $1.sbs = $a(32); - $1.bar = 1 / 25.4 * $1.height; - $1.spc = 1 / 25.4 * 72; - $1.i = 15; - $1.val = ~~$z($1.barcode); - for (;;) { - if ($1.val == 0) { - break; - } - var _T = $1.val % 3; - $1.val = ~~($f($1.val - $get($a([ 3, 1, 2 ]), _T)) / 3); - $put($1.encstr, $1.i, $get($a([ 2, 0, 1 ]), _T)); - $1.i = $1.i - 1; - } - $1.encstr = $geti($1.encstr, $1.i + 1, 15 - $1.i); - $1.bhs = $a($1.encstr.length); - $1.bbs = $a($1.encstr.length); - for (var _m = 0, _l = $1.encstr.length - 1; _m <= _l; _m += 1) { - $1.i = _m; - var _p = $get($1.encstr, $1.i); - $put($1.bhs, $1.i, $1.bar * $get($a([ 1, 1, 2 ]), _p)); - $put($1.bbs, $1.i, $get($a([ 0, $1.bar, 0 ]), _p)); - } - $k[$j++] = Infinity; - var _10 = $1.bhs; - var _11 = $1.bbs; - $k[$j++] = Infinity; - for (var _13 = 0, _14 = $1.encstr.length * 2; _13 < _14; _13++) { - $k[$j++] = $1.spc; - } - var _16 = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "bhs"; - $k[$j++] = _10; - $k[$j++] = "bbs"; - $k[$j++] = _11; - $k[$j++] = "sbs"; - $k[$j++] = _16; - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - $k[$j++] = "textxalign"; - $k[$j++] = "center"; - $k[$j++] = "textyoffset"; - $k[$j++] = 4; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _19 = $d(); - $k[$j++] = _19; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#8828 + $1.options = $k[--$j]; //#8830 + $1.barcode = $k[--$j]; //#8831 + $1.dontdraw = false; //#8833 + $1.includetext = false; //#8834 + $1.height = 4; //#8835 + $forall($1.options, function() { //#8846 + var _3 = $k[--$j]; //#8846 + $1[$k[--$j]] = _3; //#8846 + }); //#8846 + $1.height = +$1.height; //#8848 + if (($1.barcode.length < 1) || ($1.barcode.length > 8)) { //#8853 + $k[$j++] = 'bwipp.pharmacode2BadLength'; //#8852 + $k[$j++] = "Two-track Pharmacode must be 1 to 6 digits"; //#8852 + $0.raiseerror(); //#8852 + } //#8852 + $forall($1.barcode, function() { //#8858 + var _9 = $k[--$j]; //#8855 + if ((_9 < 48) || (_9 > 57)) { //#8857 + $k[$j++] = 'bwipp.pharmacode2badCharacter'; //#8856 + $k[$j++] = "Two-track Pharmacode must contain only digits"; //#8856 + $0.raiseerror(); //#8856 + } //#8856 + }); //#8856 + var _B = ~~$z($1.barcode); //#8859 + if ((_B < 4) || (_B > 64570080)) { //#8861 + $k[$j++] = 'bwipp.pharmacode2badValue'; //#8860 + $k[$j++] = "Two-track Pharmacode value must be between 4 and 64570080"; //#8860 + $0.raiseerror(); //#8860 + } //#8860 + $1.txt = $a($1.barcode.length); //#8864 + for (var _G = 0, _F = $1.barcode.length - 1; _G <= _F; _G += 1) { //#8868 + $1.i = _G; //#8866 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), 0, 0, "", 0])); //#8867 + } //#8867 + $1.encstr = $s(16); //#8870 + $1.sbs = $a(32); //#8871 + $1.bar = (1 / 25.4) * $1.height; //#8872 + $1.spc = (1 / 25.4) * 72; //#8873 + $1.i = 15; //#8876 + $1.val = ~~$z($1.barcode); //#8877 + for (;;) { //#8884 + if ($1.val == 0) { //#8879 + break; //#8879 + } //#8879 + var _T = $1.val % 3; //#8880 + $1.val = ~~($f($1.val - $get($a([3, 1, 2]), _T)) / 3); //#8881 + $put($1.encstr, $1.i, $get($a([2, 0, 1]), _T)); //#8882 + $1.i = $1.i - 1; //#8883 + } //#8883 + $1.encstr = $geti($1.encstr, $1.i + 1, 15 - $1.i); //#8885 + $1.bhs = $a($1.encstr.length); //#8888 + $1.bbs = $a($1.encstr.length); //#8889 + for (var _m = 0, _l = $1.encstr.length - 1; _m <= _l; _m += 1) { //#8895 + $1.i = _m; //#8891 + var _p = $get($1.encstr, $1.i); //#8892 + $put($1.bhs, $1.i, $1.bar * $get($a([1, 1, 2]), _p)); //#8893 + $put($1.bbs, $1.i, $get($a([0, $1.bar, 0]), _p)); //#8894 + } //#8894 + $k[$j++] = Infinity; //#8906 + var _10 = $1.bhs; //#8900 + var _11 = $1.bbs; //#8901 + $k[$j++] = Infinity; //#8902 + for (var _13 = 0, _14 = $1.encstr.length * 2; _13 < _14; _13++) { //#8902 + $k[$j++] = $1.spc; //#8902 + } //#8902 + var _16 = $a(); //#8902 + $k[$j++] = 'ren'; //#8906 + $k[$j++] = $0.renlinear; //#8906 + $k[$j++] = 'bhs'; //#8906 + $k[$j++] = _10; //#8906 + $k[$j++] = 'bbs'; //#8906 + $k[$j++] = _11; //#8906 + $k[$j++] = 'sbs'; //#8906 + $k[$j++] = _16; //#8906 + $k[$j++] = 'txt'; //#8906 + $k[$j++] = $1.txt; //#8906 + $k[$j++] = 'textxalign'; //#8906 + $k[$j++] = "center"; //#8906 + $k[$j++] = 'textyoffset'; //#8906 + $k[$j++] = 4; //#8906 + $k[$j++] = 'opt'; //#8906 + $k[$j++] = $1.options; //#8906 + var _19 = $d(); //#8906 + $k[$j++] = _19; //#8909 + if (!$1.dontdraw) { //#8909 + $0.renlinear(); //#8909 + } //#8909 }; $0.code2of5 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includecheck = false; - $1.validatecheck = false; - $1.includetext = false; - $1.includecheckintext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = 1; - $1.version = "industrial"; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $forall($1.barcode, function() { - var _A = $k[--$j]; - if (_A < 48 || _A > 57) { - $k[$j++] = "bwipp.code2of5badCharacter"; - $k[$j++] = "Code 25 must contain only digits"; - $0.raiseerror(); - } - }); - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _D = $k[--$j]; - $k[$j++] = $f(_D - 1); - } - var _E = $k[--$j]; - $1[$k[--$j]] = _E; - $1.checksum = 0; - for (var _I = 0, _H = $f($1.barlen - 1); _I <= _H; _I += 1) { - $1.i = _I; - $k[$j++] = "checksum"; - $k[$j++] = $1.checksum; - $k[$j++] = $f($get($1.barcode, $1.i) - 48); - if ($f($1.barlen - $1.i) % 2 != 0) { - var _P = $k[--$j]; - $k[$j++] = _P * 3; - } - var _Q = $k[--$j]; - var _R = $k[--$j]; - $1[$k[--$j]] = $f(_R + _Q); - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $1.checksum + 48) { - $k[$j++] = "bwipp.code2of5badCheckDigit"; - $k[$j++] = "Incorrect Code 25 check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - $1.includecheck = true; - } - var _h = new Map([ [ "industrial", $a([ "1111313111", "3111111131", "1131111131", "3131111111", "1111311131", "3111311111", "1131311111", "1111113131", "3111113111", "1131113111", "313111", "31113" ]) ], [ "iata", $a([ "1111313111", "3111111131", "1131111131", "3131111111", "1111311131", "3111311111", "1131311111", "1111113131", "3111113111", "1131113111", "1111", "311" ]) ], [ "matrix", $a([ "113311", "311131", "131131", "331111", "113131", "313111", "133111", "111331", "311311", "131311", "311111", "31111" ]) ], [ "coop", $a([ "331111", "111331", "113131", "113311", "131131", "131311", "133111", "311131", "311311", "313111", "3131", "133" ]) ], [ "datalogic", $a([ "113311", "311131", "131131", "331111", "113131", "313111", "133111", "111331", "311311", "131311", "1111", "311" ]) ] ]); - $1.versions = _h; - var _k = $get($1.versions, $1.version) !== undefined; - if (!_k) { - $k[$j++] = "bwipp.code2of5badVersion"; - $k[$j++] = "Unrecognised Code 25 version"; - $0.raiseerror(); - } - $1.encs = $get($1.versions, $1.version); - $1.cs = $get($1.encs, 0).length; - $k[$j++] = "cw"; - $k[$j++] = 0; - $forall($get($1.encs, 0), function() { - var _s = $k[--$j]; - var _t = $k[--$j]; - $k[$j++] = $f(_t + $f(_s - 48)); - }); - var _u = $k[--$j]; - $1[$k[--$j]] = _u; - $1.ss = $get($1.encs, 10).length; - $k[$j++] = "sw"; - $k[$j++] = 0; - $forall($get($1.encs, 10), function() { - var _10 = $k[--$j]; - var _11 = $k[--$j]; - $k[$j++] = $f(_11 + $f(_10 - 48)); - }); - var _12 = $k[--$j]; - $1[$k[--$j]] = _12; - $1.es = $get($1.encs, 11).length; - $1.barchars = "0123456789"; - $k[$j++] = "sbs"; - $k[$j++] = $1.barlen; - if ($1.includecheck) { - var _18 = $k[--$j]; - $k[$j++] = $f(_18 + 1); - } - var _1D = $s($f($f($k[--$j] * $1.cs + $1.ss) + $1.es)); - $1[$k[--$j]] = _1D; - $k[$j++] = "txt"; - $k[$j++] = $1.barlen; - if ($1.includecheck) { - var _1H = $k[--$j]; - $k[$j++] = $f(_1H + 1); - } - var _1J = $a($k[--$j]); - $1[$k[--$j]] = _1J; - $puti($1.sbs, 0, $get($1.encs, 10)); - for (var _1Q = 0, _1P = $f($1.barlen - 1); _1Q <= _1P; _1Q += 1) { - $1.i = _1Q; - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $1.i * $1.cs + $1.ss, $1.enc); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $f($1.i * $1.cw + $1.sw), $1.textyoffset, $1.textfont, $1.textsize ])); - } - if ($1.includecheck) { - $puti($1.sbs, $f($1.barlen * $1.cs + $1.ss), $get($1.encs, $1.checksum)); - $puti($1.sbs, $f($f($1.barlen * $1.cs + $1.cs) + $1.ss), $get($1.encs, 11)); - if ($1.includecheckintext) { - $put($1.txt, $1.barlen, $a([ $geti($1.barchars, $1.checksum, 1), $f($1.barlen * $1.cw + $1.sw), $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $1.barlen, $a([ " ", $f($1.barlen * $1.cw + $1.sw), $1.textyoffset, $1.textfont, $1.textsize ])); - } - } else { - $puti($1.sbs, $f($1.barlen * $1.cs + $1.ss), $get($1.encs, 11)); - } - $k[$j++] = Infinity; - $k[$j++] = Infinity; - $forall($1.sbs, function() { - var _2Y = $k[--$j]; - $k[$j++] = $f(_2Y - 48); - }); - var _2Z = $a(); - $k[$j++] = Infinity; - for (var _2b = 0, _2c = ~~(($1.sbs.length + 1) / 2); _2b < _2c; _2b++) { - $k[$j++] = $1.height; - } - var _2e = $a(); - $k[$j++] = Infinity; - for (var _2g = 0, _2h = ~~(($1.sbs.length + 1) / 2); _2g < _2h; _2g++) { - $k[$j++] = 0; - } - var _2i = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _2Z; - $k[$j++] = "bhs"; - $k[$j++] = _2e; - $k[$j++] = "bbs"; - $k[$j++] = _2i; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _2m = $d(); - $k[$j++] = _2m; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#8938 + $1.options = $k[--$j]; //#8940 + $1.barcode = $k[--$j]; //#8941 + $1.dontdraw = false; //#8943 + $1.includecheck = false; //#8944 + $1.validatecheck = false; //#8945 + $1.includetext = false; //#8946 + $1.includecheckintext = false; //#8947 + $1.textfont = "OCR-B"; //#8948 + $1.textsize = 10; //#8949 + $1.textyoffset = -8; //#8950 + $1.height = 1; //#8951 + $1.version = "industrial"; //#8952 + $forall($1.options, function() { //#8963 + var _3 = $k[--$j]; //#8963 + $1[$k[--$j]] = _3; //#8963 + }); //#8963 + $1.textfont = "" + $1.textfont; //#8965 + $1.textsize = +$1.textsize; //#8966 + $1.textyoffset = +$1.textyoffset; //#8967 + $1.height = +$1.height; //#8968 + $forall($1.barcode, function() { //#8975 + var _A = $k[--$j]; //#8972 + if ((_A < 48) || (_A > 57)) { //#8974 + $k[$j++] = 'bwipp.code2of5badCharacter'; //#8973 + $k[$j++] = "Code 25 must contain only digits"; //#8973 + $0.raiseerror(); //#8973 + } //#8973 + }); //#8973 + $k[$j++] = 'barlen'; //#8977 + $k[$j++] = $1.barcode.length; //#8977 + if ($1.validatecheck) { //#8977 + var _D = $k[--$j]; //#8977 + $k[$j++] = $f(_D - 1); //#8977 + } //#8977 + var _E = $k[--$j]; //#8977 + $1[$k[--$j]] = _E; //#8977 + $1.checksum = 0; //#8979 + for (var _I = 0, _H = $f($1.barlen - 1); _I <= _H; _I += 1) { //#8983 + $1.i = _I; //#8981 + $k[$j++] = 'checksum'; //#8982 + $k[$j++] = $1.checksum; //#8982 + $k[$j++] = $f($get($1.barcode, $1.i) - 48); //#8982 + if (($f($1.barlen - $1.i) % 2) != 0) { //#8982 + var _P = $k[--$j]; //#8982 + $k[$j++] = _P * 3; //#8982 + } //#8982 + var _Q = $k[--$j]; //#8982 + var _R = $k[--$j]; //#8982 + $1[$k[--$j]] = $f(_R + _Q); //#8982 + } //#8982 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#8984 + if ($1.validatecheck) { //#8991 + if ($get($1.barcode, $1.barlen) != ($1.checksum + 48)) { //#8988 + $k[$j++] = 'bwipp.code2of5badCheckDigit'; //#8987 + $k[$j++] = "Incorrect Code 25 check digit provided"; //#8987 + $0.raiseerror(); //#8987 + } //#8987 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#8989 + $1.includecheck = true; //#8990 + } //#8990 + var _h = new Map([ + ["industrial", $a(["1111313111", "3111111131", "1131111131", "3131111111", "1111311131", "3111311111", "1131311111", "1111113131", "3111113111", "1131113111", "313111", "31113"])], + ["iata", $a(["1111313111", "3111111131", "1131111131", "3131111111", "1111311131", "3111311111", "1131311111", "1111113131", "3111113111", "1131113111", "1111", "311"])], + ["matrix", $a(["113311", "311131", "131131", "331111", "113131", "313111", "133111", "111331", "311311", "131311", "311111", "31111"])], + ["coop", $a(["331111", "111331", "113131", "113311", "131131", "131311", "133111", "311131", "311311", "313111", "3131", "133"])], + ["datalogic", $a(["113311", "311131", "131131", "331111", "113131", "313111", "133111", "111331", "311311", "131311", "1111", "311"])] + ]); //#9015 + $1.versions = _h; //#9017 + var _k = $get($1.versions, $1.version) !== undefined; //#9018 + if (!_k) { //#9020 + $k[$j++] = 'bwipp.code2of5badVersion'; //#9019 + $k[$j++] = "Unrecognised Code 25 version"; //#9019 + $0.raiseerror(); //#9019 + } //#9019 + $1.encs = $get($1.versions, $1.version); //#9021 + $1.cs = $get($1.encs, 0).length; //#9023 + $k[$j++] = 'cw'; //#9024 + $k[$j++] = 0; //#9024 + $forall($get($1.encs, 0), function() { //#9024 + var _s = $k[--$j]; //#9024 + var _t = $k[--$j]; //#9024 + $k[$j++] = $f(_t + $f(_s - 48)); //#9024 + }); //#9024 + var _u = $k[--$j]; //#9024 + $1[$k[--$j]] = _u; //#9024 + $1.ss = $get($1.encs, 10).length; //#9025 + $k[$j++] = 'sw'; //#9026 + $k[$j++] = 0; //#9026 + $forall($get($1.encs, 10), function() { //#9026 + var _10 = $k[--$j]; //#9026 + var _11 = $k[--$j]; //#9026 + $k[$j++] = $f(_11 + $f(_10 - 48)); //#9026 + }); //#9026 + var _12 = $k[--$j]; //#9026 + $1[$k[--$j]] = _12; //#9026 + $1.es = $get($1.encs, 11).length; //#9027 + $1.barchars = "0123456789"; //#9030 + $k[$j++] = 'sbs'; //#9032 + $k[$j++] = $1.barlen; //#9032 + if ($1.includecheck) { //#9032 + var _18 = $k[--$j]; //#9032 + $k[$j++] = $f(_18 + 1); //#9032 + } //#9032 + var _1D = $s($f(($f(($k[--$j] * $1.cs) + $1.ss)) + $1.es)); //#9032 + $1[$k[--$j]] = _1D; //#9032 + $k[$j++] = 'txt'; //#9033 + $k[$j++] = $1.barlen; //#9033 + if ($1.includecheck) { //#9033 + var _1H = $k[--$j]; //#9033 + $k[$j++] = $f(_1H + 1); //#9033 + } //#9033 + var _1J = $a($k[--$j]); //#9033 + $1[$k[--$j]] = _1J; //#9033 + $puti($1.sbs, 0, $get($1.encs, 10)); //#9036 + for (var _1Q = 0, _1P = $f($1.barlen - 1); _1Q <= _1P; _1Q += 1) { //#9047 + $1.i = _1Q; //#9038 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#9040 + $j--; //#9041 + $1.indx = $k[--$j].length; //#9042 + $j -= 2; //#9043 + $1.enc = $get($1.encs, $1.indx); //#9044 + $puti($1.sbs, ($1.i * $1.cs) + $1.ss, $1.enc); //#9045 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $f(($1.i * $1.cw) + $1.sw), $1.textyoffset, $1.textfont, $1.textsize])); //#9046 + } //#9046 + if ($1.includecheck) { //#9059 + $puti($1.sbs, $f(($1.barlen * $1.cs) + $1.ss), $get($1.encs, $1.checksum)); //#9051 + $puti($1.sbs, $f(($f(($1.barlen * $1.cs) + $1.cs)) + $1.ss), $get($1.encs, 11)); //#9052 + if ($1.includecheckintext) { //#9056 + $put($1.txt, $1.barlen, $a([$geti($1.barchars, $1.checksum, 1), $f(($1.barlen * $1.cw) + $1.sw), $1.textyoffset, $1.textfont, $1.textsize])); //#9054 + } else { //#9056 + $put($1.txt, $1.barlen, $a([" ", $f(($1.barlen * $1.cw) + $1.sw), $1.textyoffset, $1.textfont, $1.textsize])); //#9056 + } //#9056 + } else { //#9059 + $puti($1.sbs, $f(($1.barlen * $1.cs) + $1.ss), $get($1.encs, 11)); //#9059 + } //#9059 + $k[$j++] = Infinity; //#9071 + $k[$j++] = Infinity; //#9065 + $forall($1.sbs, function() { //#9065 + var _2Y = $k[--$j]; //#9065 + $k[$j++] = $f(_2Y - 48); //#9065 + }); //#9065 + var _2Z = $a(); //#9065 + $k[$j++] = Infinity; //#9066 + for (var _2b = 0, _2c = ~~(($1.sbs.length + 1) / 2); _2b < _2c; _2b++) { //#9066 + $k[$j++] = $1.height; //#9066 + } //#9066 + var _2e = $a(); //#9066 + $k[$j++] = Infinity; //#9067 + for (var _2g = 0, _2h = ~~(($1.sbs.length + 1) / 2); _2g < _2h; _2g++) { //#9067 + $k[$j++] = 0; //#9067 + } //#9067 + var _2i = $a(); //#9067 + $k[$j++] = 'ren'; //#9070 + $k[$j++] = $0.renlinear; //#9070 + $k[$j++] = 'sbs'; //#9070 + $k[$j++] = _2Z; //#9070 + $k[$j++] = 'bhs'; //#9070 + $k[$j++] = _2e; //#9070 + $k[$j++] = 'bbs'; //#9070 + $k[$j++] = _2i; //#9070 + if ($1.includetext) { //#9070 + $k[$j++] = 'txt'; //#9069 + $k[$j++] = $1.txt; //#9069 + } //#9069 + $k[$j++] = 'opt'; //#9071 + $k[$j++] = $1.options; //#9071 + var _2m = $d(); //#9071 + $k[$j++] = _2m; //#9074 + if (!$1.dontdraw) { //#9074 + $0.renlinear(); //#9074 + } //#9074 }; $0.industrial2of5 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $put($1.options, "dontdraw", true); - $put($1.options, "version", "industrial"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.code2of5(); - var _E = $k[--$j]; - $1[$k[--$j]] = _E; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#9104 + $1.options = $k[--$j]; //#9106 + $1.barcode = $k[--$j]; //#9107 + $1.dontdraw = false; //#9109 + $1.includetext = false; //#9110 + $1.textfont = "OCR-B"; //#9111 + $1.textsize = 10; //#9112 + $1.textxoffset = 0; //#9113 + $1.textyoffset = -8; //#9114 + $1.height = 1; //#9115 + $forall($1.options, function() { //#9126 + var _3 = $k[--$j]; //#9126 + $1[$k[--$j]] = _3; //#9126 + }); //#9126 + $1.textfont = "" + $1.textfont; //#9128 + $1.textsize = +$1.textsize; //#9129 + $1.textxoffset = +$1.textxoffset; //#9130 + $1.textyoffset = +$1.textyoffset; //#9131 + $1.height = +$1.height; //#9132 + $put($1.options, "dontdraw", true); //#9135 + $put($1.options, "version", "industrial"); //#9136 + $k[$j++] = 'args'; //#9138 + $k[$j++] = $1.barcode; //#9138 + $k[$j++] = $1.options; //#9138 + $0.code2of5(); //#9138 + var _E = $k[--$j]; //#9138 + $1[$k[--$j]] = _E; //#9138 + $put($1.args, "opt", $1.options); //#9140 + $k[$j++] = $1.args; //#9143 + if (!$1.dontdraw) { //#9143 + $0.renlinear(); //#9143 + } //#9143 }; $0.iata2of5 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $put($1.options, "dontdraw", true); - $put($1.options, "version", "iata"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.code2of5(); - var _E = $k[--$j]; - $1[$k[--$j]] = _E; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#9173 + $1.options = $k[--$j]; //#9175 + $1.barcode = $k[--$j]; //#9176 + $1.dontdraw = false; //#9178 + $1.includetext = false; //#9179 + $1.textfont = "OCR-B"; //#9180 + $1.textsize = 10; //#9181 + $1.textxoffset = 0; //#9182 + $1.textyoffset = -8; //#9183 + $1.height = 1; //#9184 + $forall($1.options, function() { //#9195 + var _3 = $k[--$j]; //#9195 + $1[$k[--$j]] = _3; //#9195 + }); //#9195 + $1.textfont = "" + $1.textfont; //#9197 + $1.textsize = +$1.textsize; //#9198 + $1.textxoffset = +$1.textxoffset; //#9199 + $1.textyoffset = +$1.textyoffset; //#9200 + $1.height = +$1.height; //#9201 + $put($1.options, "dontdraw", true); //#9204 + $put($1.options, "version", "iata"); //#9205 + $k[$j++] = 'args'; //#9207 + $k[$j++] = $1.barcode; //#9207 + $k[$j++] = $1.options; //#9207 + $0.code2of5(); //#9207 + var _E = $k[--$j]; //#9207 + $1[$k[--$j]] = _E; //#9207 + $put($1.args, "opt", $1.options); //#9209 + $k[$j++] = $1.args; //#9212 + if (!$1.dontdraw) { //#9212 + $0.renlinear(); //#9212 + } //#9212 }; $0.matrix2of5 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $put($1.options, "dontdraw", true); - $put($1.options, "version", "matrix"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.code2of5(); - var _E = $k[--$j]; - $1[$k[--$j]] = _E; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#9242 + $1.options = $k[--$j]; //#9244 + $1.barcode = $k[--$j]; //#9245 + $1.dontdraw = false; //#9247 + $1.includetext = false; //#9248 + $1.textfont = "OCR-B"; //#9249 + $1.textsize = 10; //#9250 + $1.textxoffset = 0; //#9251 + $1.textyoffset = -8; //#9252 + $1.height = 1; //#9253 + $forall($1.options, function() { //#9264 + var _3 = $k[--$j]; //#9264 + $1[$k[--$j]] = _3; //#9264 + }); //#9264 + $1.textfont = "" + $1.textfont; //#9266 + $1.textsize = +$1.textsize; //#9267 + $1.textxoffset = +$1.textxoffset; //#9268 + $1.textyoffset = +$1.textyoffset; //#9269 + $1.height = +$1.height; //#9270 + $put($1.options, "dontdraw", true); //#9273 + $put($1.options, "version", "matrix"); //#9274 + $k[$j++] = 'args'; //#9276 + $k[$j++] = $1.barcode; //#9276 + $k[$j++] = $1.options; //#9276 + $0.code2of5(); //#9276 + var _E = $k[--$j]; //#9276 + $1[$k[--$j]] = _E; //#9276 + $put($1.args, "opt", $1.options); //#9278 + $k[$j++] = $1.args; //#9281 + if (!$1.dontdraw) { //#9281 + $0.renlinear(); //#9281 + } //#9281 }; $0.coop2of5 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $put($1.options, "dontdraw", true); - $put($1.options, "version", "coop"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.code2of5(); - var _E = $k[--$j]; - $1[$k[--$j]] = _E; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#9311 + $1.options = $k[--$j]; //#9313 + $1.barcode = $k[--$j]; //#9314 + $1.dontdraw = false; //#9316 + $1.includetext = false; //#9317 + $1.textfont = "OCR-B"; //#9318 + $1.textsize = 10; //#9319 + $1.textxoffset = 0; //#9320 + $1.textyoffset = -8; //#9321 + $1.height = 1; //#9322 + $forall($1.options, function() { //#9333 + var _3 = $k[--$j]; //#9333 + $1[$k[--$j]] = _3; //#9333 + }); //#9333 + $1.textfont = "" + $1.textfont; //#9335 + $1.textsize = +$1.textsize; //#9336 + $1.textxoffset = +$1.textxoffset; //#9337 + $1.textyoffset = +$1.textyoffset; //#9338 + $1.height = +$1.height; //#9339 + $put($1.options, "dontdraw", true); //#9342 + $put($1.options, "version", "coop"); //#9343 + $k[$j++] = 'args'; //#9345 + $k[$j++] = $1.barcode; //#9345 + $k[$j++] = $1.options; //#9345 + $0.code2of5(); //#9345 + var _E = $k[--$j]; //#9345 + $1[$k[--$j]] = _E; //#9345 + $put($1.args, "opt", $1.options); //#9347 + $k[$j++] = $1.args; //#9350 + if (!$1.dontdraw) { //#9350 + $0.renlinear(); //#9350 + } //#9350 }; $0.datalogic2of5 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $put($1.options, "dontdraw", true); - $put($1.options, "version", "datalogic"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.code2of5(); - var _E = $k[--$j]; - $1[$k[--$j]] = _E; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#9380 + $1.options = $k[--$j]; //#9382 + $1.barcode = $k[--$j]; //#9383 + $1.dontdraw = false; //#9385 + $1.includetext = false; //#9386 + $1.textfont = "OCR-B"; //#9387 + $1.textsize = 10; //#9388 + $1.textxoffset = 0; //#9389 + $1.textyoffset = -8; //#9390 + $1.height = 1; //#9391 + $forall($1.options, function() { //#9402 + var _3 = $k[--$j]; //#9402 + $1[$k[--$j]] = _3; //#9402 + }); //#9402 + $1.textfont = "" + $1.textfont; //#9404 + $1.textsize = +$1.textsize; //#9405 + $1.textxoffset = +$1.textxoffset; //#9406 + $1.textyoffset = +$1.textyoffset; //#9407 + $1.height = +$1.height; //#9408 + $put($1.options, "dontdraw", true); //#9411 + $put($1.options, "version", "datalogic"); //#9412 + $k[$j++] = 'args'; //#9414 + $k[$j++] = $1.barcode; //#9414 + $k[$j++] = $1.options; //#9414 + $0.code2of5(); //#9414 + var _E = $k[--$j]; //#9414 + $1[$k[--$j]] = _E; //#9414 + $put($1.args, "opt", $1.options); //#9416 + $k[$j++] = $1.args; //#9419 + if (!$1.dontdraw) { //#9419 + $0.renlinear(); //#9419 + } //#9419 }; $0.code11 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includecheck = false; - $1.validatecheck = false; - $1.includetext = false; - $1.includecheckintext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.encs = $a([ "111131", "311131", "131131", "331111", "113131", "313111", "133111", "111331", "311311", "311111", "113111", "113311" ]); - $1.barchars = "0123456789-"; - $1.charvals = new Map(); - for (var _A = 0; _A <= 10; _A += 1) { - $put($1.charvals, $geti($1.barchars, _A, 1), _A); - } - for (var _G = 0, _F = $1.barcode.length - 1; _G <= _F; _G += 1) { - var _K = $get($1.charvals, $geti($1.barcode, _G, 1)) !== undefined; - if (!_K) { - $k[$j++] = "bwipp.code11badCharacter"; - $k[$j++] = "Code 11 must contain only digits and dashes"; - $0.raiseerror(); - } - } - $1.barlen = $1.barcode.length; - if ($1.validatecheck) { - if ($1.barlen == 11) { - $k[$j++] = "bwipp.code11badLength"; - $k[$j++] = "Code 11 cannot be 11 characters using check digits"; - $0.raiseerror(); - } - var _Q = $1.barlen <= 10 ? 1 : 2; - $1.barlen = $1.barlen - _Q; - } - $k[$j++] = "numchecks"; - if ($1.includecheck || $1.validatecheck) { - var _U = $1.barlen >= 10 ? 2 : 1; - $k[$j++] = _U; - } else { - $k[$j++] = 0; - } - var _V = $k[--$j]; - $1[$k[--$j]] = _V; - $1.checksum1 = 0; - $1.checksum2 = 0; - for (var _Z = 0, _Y = $1.barlen - 1; _Z <= _Y; _Z += 1) { - $1.i = _Z; - $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); - $1.checksum1 = $f($1.checksum1 + (($1.barlen - $1.i - 1) % 10 + 1) * $1.indx); - $1.checksum2 = $f($1.checksum2 + (($1.barlen - $1.i) % 9 + 1) * $1.indx); - } - $1.checksum1 = $1.checksum1 % 11; - $1.checksum2 = $f($1.checksum2 + $1.checksum1) % 11; - if ($1.validatecheck) { - if ($1.numchecks == 1) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum1)) { - $k[$j++] = "bwipp.code11badCheckDigit"; - $k[$j++] = "Incorrect Code 11 check digit provided"; - $0.raiseerror(); - } - } else { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum1) || $get($1.barcode, $1.barlen + 1) != $get($1.barchars, $1.checksum2)) { - $k[$j++] = "bwipp.code11badCheckDigits"; - $k[$j++] = "Incorrect Code 11 check digits provided"; - $0.raiseerror(); - } - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - $1.includecheck = true; - } - $1.sbs = $s($f($f($1.barlen + $1.numchecks) * 6 + 12)); - $1.txt = $a($f($1.barlen + $1.numchecks)); - $puti($1.sbs, 0, $get($1.encs, 11)); - $1.xpos = 8; - for (var _1O = 0, _1N = $1.barlen - 1; _1O <= _1N; _1O += 1) { - $1.i = _1O; - $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $1.i * 6 + 6, $1.enc); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize ])); - for (var _1k = 0; _1k <= 5; _1k += 1) { - $1.xpos = $f($f($get($1.enc, _1k) - 48) + $1.xpos); - } - } - if ($1.includecheck) { - if ($1.barlen >= 10) { - $puti($1.sbs, $1.barlen * 6 + 6, $get($1.encs, $1.checksum1)); - $puti($1.sbs, $1.barlen * 6 + 12, $get($1.encs, $1.checksum2)); - if ($1.includecheckintext) { - $put($1.txt, $1.barlen, $a([ $geti($1.barchars, $1.checksum1, 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize ])); - $1.enc = $get($1.encs, $1.checksum1); - for (var _2E = 0; _2E <= 5; _2E += 1) { - $1.xpos = $f($f($get($1.enc, _2E) - 48) + $1.xpos); - } - $put($1.txt, $1.barlen + 1, $a([ $geti($1.barchars, $1.checksum2, 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $1.barlen, $a([ "", $1.xpos, $1.textyoffset, $1.textfont, $1.textsize ])); - $put($1.txt, $1.barlen + 1, $a([ "", $1.xpos, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $puti($1.sbs, $1.barlen * 6 + 18, $get($1.encs, 11)); - } else { - $puti($1.sbs, $1.barlen * 6 + 6, $get($1.encs, $1.checksum1)); - if ($1.includecheckintext) { - $put($1.txt, $1.barlen, $a([ $geti($1.barchars, $1.checksum1, 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $1.barlen, $a([ "", $1.xpos, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $puti($1.sbs, $1.barlen * 6 + 12, $get($1.encs, 11)); - } - } else { - $puti($1.sbs, $1.barlen * 6 + 6, $get($1.encs, 11)); - } - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _3F = $1.sbs; - for (var _3G = 0, _3H = _3F.length; _3G < _3H; _3G++) { - $k[$j++] = $get(_3F, _3G) - 48; - } - var _3J = $a(); - $k[$j++] = Infinity; - for (var _3L = 0, _3M = ~~(($1.sbs.length + 1) / 2); _3L < _3M; _3L++) { - $k[$j++] = $1.height; - } - var _3O = $a(); - $k[$j++] = Infinity; - for (var _3Q = 0, _3R = ~~(($1.sbs.length + 1) / 2); _3Q < _3R; _3Q++) { - $k[$j++] = 0; - } - var _3S = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _3J; - $k[$j++] = "bhs"; - $k[$j++] = _3O; - $k[$j++] = "bbs"; - $k[$j++] = _3S; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _3W = $d(); - $k[$j++] = _3W; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#9448 + $1.options = $k[--$j]; //#9450 + $1.barcode = $k[--$j]; //#9451 + $1.dontdraw = false; //#9453 + $1.includecheck = false; //#9454 + $1.validatecheck = false; //#9455 + $1.includetext = false; //#9456 + $1.includecheckintext = false; //#9457 + $1.textfont = "OCR-B"; //#9458 + $1.textsize = 10; //#9459 + $1.textyoffset = -8; //#9460 + $1.height = 1; //#9461 + $forall($1.options, function() { //#9472 + var _3 = $k[--$j]; //#9472 + $1[$k[--$j]] = _3; //#9472 + }); //#9472 + $1.textfont = "" + $1.textfont; //#9474 + $1.textsize = +$1.textsize; //#9475 + $1.textyoffset = +$1.textyoffset; //#9476 + $1.height = +$1.height; //#9477 + $1.encs = $a(["111131", "311131", "131131", "331111", "113131", "313111", "133111", "111331", "311311", "311111", "113111", "113311"]); //#9484 + $1.barchars = "0123456789-"; //#9487 + $1.charvals = new Map; //#9488 + for (var _A = 0; _A <= 10; _A += 1) { //#9489 + $put($1.charvals, $geti($1.barchars, _A, 1), _A); //#9489 + } //#9489 + for (var _G = 0, _F = $1.barcode.length - 1; _G <= _F; _G += 1) { //#9496 + var _K = $get($1.charvals, $geti($1.barcode, _G, 1)) !== undefined; //#9493 + if (!_K) { //#9495 + $k[$j++] = 'bwipp.code11badCharacter'; //#9494 + $k[$j++] = "Code 11 must contain only digits and dashes"; //#9494 + $0.raiseerror(); //#9494 + } //#9494 + } //#9494 + $1.barlen = $1.barcode.length; //#9498 + if ($1.validatecheck) { //#9504 + if ($1.barlen == 11) { //#9502 + $k[$j++] = 'bwipp.code11badLength'; //#9501 + $k[$j++] = "Code 11 cannot be 11 characters using check digits"; //#9501 + $0.raiseerror(); //#9501 + } //#9501 + var _Q = ($1.barlen <= 10) ? 1 : 2; //#9503 + $1.barlen = $1.barlen - _Q; //#9503 + } //#9503 + $k[$j++] = 'numchecks'; //#9506 + if ($1.includecheck || $1.validatecheck) { //#9506 + var _U = ($1.barlen >= 10) ? 2 : 1; //#9506 + $k[$j++] = _U; //#9506 + } else { //#9506 + $k[$j++] = 0; //#9506 + } //#9506 + var _V = $k[--$j]; //#9506 + $1[$k[--$j]] = _V; //#9506 + $1.checksum1 = 0; //#9507 + $1.checksum2 = 0; //#9507 + for (var _Z = 0, _Y = $1.barlen - 1; _Z <= _Y; _Z += 1) { //#9513 + $1.i = _Z; //#9509 + $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); //#9510 + $1.checksum1 = $f($1.checksum1 + ((((($1.barlen - $1.i) - 1) % 10) + 1) * $1.indx)); //#9511 + $1.checksum2 = $f($1.checksum2 + (((($1.barlen - $1.i) % 9) + 1) * $1.indx)); //#9512 + } //#9512 + $1.checksum1 = $1.checksum1 % 11; //#9514 + $1.checksum2 = $f($1.checksum2 + $1.checksum1) % 11; //#9515 + if ($1.validatecheck) { //#9529 + if ($1.numchecks == 1) { //#9524 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum1)) { //#9520 + $k[$j++] = 'bwipp.code11badCheckDigit'; //#9519 + $k[$j++] = "Incorrect Code 11 check digit provided"; //#9519 + $0.raiseerror(); //#9519 + } //#9519 + } else { //#9524 + if (($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum1)) || ($get($1.barcode, $1.barlen + 1) != $get($1.barchars, $1.checksum2))) { //#9525 + $k[$j++] = 'bwipp.code11badCheckDigits'; //#9524 + $k[$j++] = "Incorrect Code 11 check digits provided"; //#9524 + $0.raiseerror(); //#9524 + } //#9524 + } //#9524 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#9527 + $1.includecheck = true; //#9528 + } //#9528 + $1.sbs = $s($f(($f($1.barlen + $1.numchecks) * 6) + 12)); //#9531 + $1.txt = $a($f($1.barlen + $1.numchecks)); //#9532 + $puti($1.sbs, 0, $get($1.encs, 11)); //#9535 + $1.xpos = 8; //#9537 + for (var _1O = 0, _1N = $1.barlen - 1; _1O <= _1N; _1O += 1) { //#9547 + $1.i = _1O; //#9539 + $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); //#9540 + $1.enc = $get($1.encs, $1.indx); //#9541 + $puti($1.sbs, ($1.i * 6) + 6, $1.enc); //#9542 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9543 + for (var _1k = 0; _1k <= 5; _1k += 1) { //#9546 + $1.xpos = $f($f($get($1.enc, _1k) - 48) + $1.xpos); //#9545 + } //#9545 + } //#9545 + if ($1.includecheck) { //#9576 + if ($1.barlen >= 10) { //#9573 + $puti($1.sbs, ($1.barlen * 6) + 6, $get($1.encs, $1.checksum1)); //#9552 + $puti($1.sbs, ($1.barlen * 6) + 12, $get($1.encs, $1.checksum2)); //#9553 + if ($1.includecheckintext) { //#9563 + $put($1.txt, $1.barlen, $a([$geti($1.barchars, $1.checksum1, 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9555 + $1.enc = $get($1.encs, $1.checksum1); //#9556 + for (var _2E = 0; _2E <= 5; _2E += 1) { //#9559 + $1.xpos = $f($f($get($1.enc, _2E) - 48) + $1.xpos); //#9558 + } //#9558 + $put($1.txt, $1.barlen + 1, $a([$geti($1.barchars, $1.checksum2, 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9560 + } else { //#9563 + $put($1.txt, $1.barlen, $a(["", $1.xpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9562 + $put($1.txt, $1.barlen + 1, $a(["", $1.xpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9563 + } //#9563 + $puti($1.sbs, ($1.barlen * 6) + 18, $get($1.encs, 11)); //#9565 + } else { //#9573 + $puti($1.sbs, ($1.barlen * 6) + 6, $get($1.encs, $1.checksum1)); //#9567 + if ($1.includecheckintext) { //#9571 + $put($1.txt, $1.barlen, $a([$geti($1.barchars, $1.checksum1, 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9569 + } else { //#9571 + $put($1.txt, $1.barlen, $a(["", $1.xpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9571 + } //#9571 + $puti($1.sbs, ($1.barlen * 6) + 12, $get($1.encs, 11)); //#9573 + } //#9573 + } else { //#9576 + $puti($1.sbs, ($1.barlen * 6) + 6, $get($1.encs, 11)); //#9576 + } //#9576 + $k[$j++] = Infinity; //#9588 + $k[$j++] = Infinity; //#9582 + var _3F = $1.sbs; //#9582 + for (var _3G = 0, _3H = _3F.length; _3G < _3H; _3G++) { //#9582 + $k[$j++] = $get(_3F, _3G) - 48; //#9582 + } //#9582 + var _3J = $a(); //#9582 + $k[$j++] = Infinity; //#9583 + for (var _3L = 0, _3M = ~~(($1.sbs.length + 1) / 2); _3L < _3M; _3L++) { //#9583 + $k[$j++] = $1.height; //#9583 + } //#9583 + var _3O = $a(); //#9583 + $k[$j++] = Infinity; //#9584 + for (var _3Q = 0, _3R = ~~(($1.sbs.length + 1) / 2); _3Q < _3R; _3Q++) { //#9584 + $k[$j++] = 0; //#9584 + } //#9584 + var _3S = $a(); //#9584 + $k[$j++] = 'ren'; //#9587 + $k[$j++] = $0.renlinear; //#9587 + $k[$j++] = 'sbs'; //#9587 + $k[$j++] = _3J; //#9587 + $k[$j++] = 'bhs'; //#9587 + $k[$j++] = _3O; //#9587 + $k[$j++] = 'bbs'; //#9587 + $k[$j++] = _3S; //#9587 + if ($1.includetext) { //#9587 + $k[$j++] = 'txt'; //#9586 + $k[$j++] = $1.txt; //#9586 + } //#9586 + $k[$j++] = 'opt'; //#9588 + $k[$j++] = $1.options; //#9588 + var _3W = $d(); //#9588 + $k[$j++] = _3W; //#9591 + if (!$1.dontdraw) { //#9591 + $0.renlinear(); //#9591 + } //#9591 }; $0.bc412 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includecheck = false; - $1.validatecheck = false; - $1.includetext = false; - $1.includecheckintext = false; - $1.includestartstop = false; - $1.semi = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - if ($1.semi) { - $1.includecheck = true; - $1.includestartstop = true; - } - $1.barchars = "0R9GLVHA8EZ4NTS1J2Q6C7DYKBUIX3FWP5M"; - $1.charvals = new Map(); - for (var _A = 0; _A <= 34; _A += 1) { - $put($1.charvals, $geti($1.barchars, _A, 1), _A); - } - for (var _G = 0, _F = $1.barcode.length - 1; _G <= _F; _G += 1) { - var _K = $get($1.charvals, $geti($1.barcode, _G, 1)) !== undefined; - if (!_K) { - $k[$j++] = "bwipp.bc412badCharacter"; - $k[$j++] = "BC412 must contain only digits and capital letters except O"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _N = $k[--$j]; - $k[$j++] = $f(_N - 1); - } - var _O = $k[--$j]; - $1[$k[--$j]] = _O; - $1.checksum = 0; - for (var _S = 0, _R = $f($1.barlen - 1); _S <= _R; _S += 1) { - $1.checksum = $f($get($1.charvals, $geti($1.barcode, _S, 1)) + $1.checksum); - } - $1.checksum = $1.checksum % 35; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.bc412badCheckDigit"; - $k[$j++] = "Incorrect BC412 check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - $1.includecheck = true; - } - $1.encs = $a([ "11111115", "13111212", "11131113", "12111213", "12121311", "13131111", "12111312", "11131212", "11121411", "11151111", "15111111", "11111511", "12131211", "13121112", "13111212", "11111214", "12121113", "11111313", "13111113", "11121213", "11141112", "11121312", "11141211", "14121111", "12121212", "11131311", "13121211", "12111411", "14111211", "11111412", "12111114", "14111112", "12141111", "11121114", "12131112", "12", "111" ]); - $1.sbs = $s($f($f($1.barlen + 1) * 8 + 5)); - if ($1.includecheck) { - $1.txt = $a($f($1.barlen + 1)); - } else { - $1.txt = $a($1.barlen); - } - if ($1.includestartstop) { - $puti($1.sbs, 0, $get($1.encs, 35)); - $1.pos = 2; - $1.txtpos = 3; - } else { - $1.pos = 0; - $1.txtpos = 0; - } - for (var _x = 0, _w = $f($1.barlen - 1); _x <= _w; _x += 1) { - $1.i = _x; - $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); - $puti($1.sbs, $1.pos, $get($1.encs, $1.indx)); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $1.i * 12 + $1.txtpos, $1.textyoffset, $1.textfont, $1.textsize ])); - $1.pos = $1.pos + 8; - } - if ($1.includecheck) { - $puti($1.sbs, $1.pos, $get($1.encs, $1.checksum)); - if ($1.includecheckintext) { - $put($1.txt, $1.barlen, $a([ $geti($1.barchars, $1.checksum, 1), $f($1.barlen * 12 + $1.txtpos), $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $1.barlen, $a([ "", $f($1.barlen * 12 + $1.txtpos), $1.textyoffset, $1.textfont, $1.textsize ])); - } - $1.pos = $1.pos + 8; - } - if ($1.includestartstop) { - $puti($1.sbs, $1.pos, $get($1.encs, 36)); - $1.pos = $1.pos + 2; - } - $1.sbs = $geti($1.sbs, 0, $1.pos); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _1u = $1.sbs; - for (var _1v = 0, _1w = _1u.length; _1v < _1w; _1v++) { - $k[$j++] = $f($get(_1u, _1v) - 48); - } - var _1y = $a(); - $k[$j++] = Infinity; - for (var _20 = 0, _21 = ~~(($1.sbs.length + 1) / 2); _20 < _21; _20++) { - $k[$j++] = $1.height; - } - var _23 = $a(); - $k[$j++] = Infinity; - for (var _25 = 0, _26 = ~~(($1.sbs.length + 1) / 2); _25 < _26; _25++) { - $k[$j++] = 0; - } - var _27 = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _1y; - $k[$j++] = "bhs"; - $k[$j++] = _23; - $k[$j++] = "bbs"; - $k[$j++] = _27; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _2B = $d(); - $k[$j++] = _2B; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#9620 + $1.options = $k[--$j]; //#9622 + $1.barcode = $k[--$j]; //#9623 + $1.dontdraw = false; //#9625 + $1.includecheck = false; //#9626 + $1.validatecheck = false; //#9627 + $1.includetext = false; //#9628 + $1.includecheckintext = false; //#9629 + $1.includestartstop = false; //#9630 + $1.semi = false; //#9631 + $1.textfont = "OCR-B"; //#9632 + $1.textsize = 10; //#9633 + $1.textyoffset = -8; //#9634 + $1.height = 1; //#9635 + $forall($1.options, function() { //#9646 + var _3 = $k[--$j]; //#9646 + $1[$k[--$j]] = _3; //#9646 + }); //#9646 + $1.textfont = "" + $1.textfont; //#9648 + $1.textsize = +$1.textsize; //#9649 + $1.textyoffset = +$1.textyoffset; //#9650 + $1.height = +$1.height; //#9651 + if ($1.semi) { //#9656 + $1.includecheck = true; //#9654 + $1.includestartstop = true; //#9655 + } //#9655 + $1.barchars = "0R9GLVHA8EZ4NTS1J2Q6C7DYKBUIX3FWP5M"; //#9659 + $1.charvals = new Map; //#9660 + for (var _A = 0; _A <= 34; _A += 1) { //#9661 + $put($1.charvals, $geti($1.barchars, _A, 1), _A); //#9661 + } //#9661 + for (var _G = 0, _F = $1.barcode.length - 1; _G <= _F; _G += 1) { //#9668 + var _K = $get($1.charvals, $geti($1.barcode, _G, 1)) !== undefined; //#9665 + if (!_K) { //#9667 + $k[$j++] = 'bwipp.bc412badCharacter'; //#9666 + $k[$j++] = "BC412 must contain only digits and capital letters except O"; //#9666 + $0.raiseerror(); //#9666 + } //#9666 + } //#9666 + $k[$j++] = 'barlen'; //#9670 + $k[$j++] = $1.barcode.length; //#9670 + if ($1.validatecheck) { //#9670 + var _N = $k[--$j]; //#9670 + $k[$j++] = $f(_N - 1); //#9670 + } //#9670 + var _O = $k[--$j]; //#9670 + $1[$k[--$j]] = _O; //#9670 + $1.checksum = 0; //#9672 + for (var _S = 0, _R = $f($1.barlen - 1); _S <= _R; _S += 1) { //#9676 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, _S, 1)) + $1.checksum); //#9675 + } //#9675 + $1.checksum = $1.checksum % 35; //#9677 + if ($1.validatecheck) { //#9684 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#9681 + $k[$j++] = 'bwipp.bc412badCheckDigit'; //#9680 + $k[$j++] = "Incorrect BC412 check digit provided"; //#9680 + $0.raiseerror(); //#9680 + } //#9680 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#9682 + $1.includecheck = true; //#9683 + } //#9683 + $1.encs = $a(["11111115", "13111212", "11131113", "12111213", "12121311", "13131111", "12111312", "11131212", "11121411", "11151111", "15111111", "11111511", "12131211", "13121112", "13111212", "11111214", "12121113", "11111313", "13111113", "11121213", "11141112", "11121312", "11141211", "14121111", "12121212", "11131311", "13121211", "12111411", "14111211", "11111412", "12111114", "14111112", "12141111", "11121114", "12131112", "12", "111"]); //#9696 + $1.sbs = $s($f(($f($1.barlen + 1) * 8) + 5)); //#9698 + if ($1.includecheck) { //#9702 + $1.txt = $a($f($1.barlen + 1)); //#9700 + } else { //#9702 + $1.txt = $a($1.barlen); //#9702 + } //#9702 + if ($1.includestartstop) { //#9712 + $puti($1.sbs, 0, $get($1.encs, 35)); //#9707 + $1.pos = 2; //#9708 + $1.txtpos = 3; //#9709 + } else { //#9712 + $1.pos = 0; //#9711 + $1.txtpos = 0; //#9712 + } //#9712 + for (var _x = 0, _w = $f($1.barlen - 1); _x <= _w; _x += 1) { //#9721 + $1.i = _x; //#9716 + $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); //#9717 + $puti($1.sbs, $1.pos, $get($1.encs, $1.indx)); //#9718 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), ($1.i * 12) + $1.txtpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9719 + $1.pos = $1.pos + 8; //#9720 + } //#9720 + if ($1.includecheck) { //#9732 + $puti($1.sbs, $1.pos, $get($1.encs, $1.checksum)); //#9725 + if ($1.includecheckintext) { //#9729 + $put($1.txt, $1.barlen, $a([$geti($1.barchars, $1.checksum, 1), $f(($1.barlen * 12) + $1.txtpos), $1.textyoffset, $1.textfont, $1.textsize])); //#9727 + } else { //#9729 + $put($1.txt, $1.barlen, $a(["", $f(($1.barlen * 12) + $1.txtpos), $1.textyoffset, $1.textfont, $1.textsize])); //#9729 + } //#9729 + $1.pos = $1.pos + 8; //#9731 + } //#9731 + if ($1.includestartstop) { //#9738 + $puti($1.sbs, $1.pos, $get($1.encs, 36)); //#9736 + $1.pos = $1.pos + 2; //#9737 + } //#9737 + $1.sbs = $geti($1.sbs, 0, $1.pos); //#9741 + $k[$j++] = Infinity; //#9750 + $k[$j++] = Infinity; //#9744 + var _1u = $1.sbs; //#9744 + for (var _1v = 0, _1w = _1u.length; _1v < _1w; _1v++) { //#9744 + $k[$j++] = $f($get(_1u, _1v) - 48); //#9744 + } //#9744 + var _1y = $a(); //#9744 + $k[$j++] = Infinity; //#9745 + for (var _20 = 0, _21 = ~~(($1.sbs.length + 1) / 2); _20 < _21; _20++) { //#9745 + $k[$j++] = $1.height; //#9745 + } //#9745 + var _23 = $a(); //#9745 + $k[$j++] = Infinity; //#9746 + for (var _25 = 0, _26 = ~~(($1.sbs.length + 1) / 2); _25 < _26; _25++) { //#9746 + $k[$j++] = 0; //#9746 + } //#9746 + var _27 = $a(); //#9746 + $k[$j++] = 'ren'; //#9749 + $k[$j++] = $0.renlinear; //#9749 + $k[$j++] = 'sbs'; //#9749 + $k[$j++] = _1y; //#9749 + $k[$j++] = 'bhs'; //#9749 + $k[$j++] = _23; //#9749 + $k[$j++] = 'bbs'; //#9749 + $k[$j++] = _27; //#9749 + if ($1.includetext) { //#9749 + $k[$j++] = 'txt'; //#9748 + $k[$j++] = $1.txt; //#9748 + } //#9748 + $k[$j++] = 'opt'; //#9750 + $k[$j++] = $1.options; //#9750 + var _2B = $d(); //#9750 + $k[$j++] = _2B; //#9753 + if (!$1.dontdraw) { //#9753 + $0.renlinear(); //#9753 + } //#9753 }; $0.rationalizedCodabar = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.altstartstop = false; - $1.includecheck = false; - $1.validatecheck = false; - $1.includetext = false; - $1.includecheckintext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.encs = $a([ "11111331", "11113311", "11131131", "33111111", "11311311", "31111311", "13111131", "13113111", "13311111", "31131111", "11133111", "11331111", "31113131", "31311131", "31313111", "11313131", "11331311", "13131131", "11131331", "11133311" ]); - if ($1.altstartstop) { - $1.barchars = "0123456789-$:/.+TN*E"; - } else { - $1.barchars = "0123456789-$:/.+ABCD"; - } - $1.charvals = new Map(); - for (var _B = 0; _B <= 19; _B += 1) { - $put($1.charvals, $geti($1.barchars, _B, 1), _B); - } - $1.bodyvals = new Map(); - for (var _F = 0; _F <= 15; _F += 1) { - $put($1.bodyvals, $geti($1.barchars, _F, 1), _F); - } - $1.ssvals = new Map(); - for (var _J = 16; _J <= 19; _J += 1) { - $put($1.ssvals, $geti($1.barchars, _J, 1), _J); - } - var _Q = $get($1.ssvals, $geti($1.barcode, 0, 1)) !== undefined; - var _V = $get($1.ssvals, $geti($1.barcode, $1.barcode.length - 1, 1)) !== undefined; - if (!_Q || !_V) { - if ($1.altstartstop) { - $k[$j++] = "bwipp.rationalizedCodabarBadAltStartStop"; - $k[$j++] = "Codabar start and stop characters must be one of E N T or *"; - $0.raiseerror(); - } else { - $k[$j++] = "bwipp.rationalizedCodabarBadStartStop"; - $k[$j++] = "Codabar start and stop characters must be one of A B C or D"; - $0.raiseerror(); - } - } - for (var _Z = 1, _Y = $1.barcode.length - 2; _Z <= _Y; _Z += 1) { - var _d = $get($1.bodyvals, $geti($1.barcode, _Z, 1)) !== undefined; - if (!_d) { - $k[$j++] = "bwipp.rationalizedCodabarBadCharacter"; - $k[$j++] = "Codabar body must contain only digits and symbols - $ : / . +"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _g = $k[--$j]; - $k[$j++] = $f(_g - 1); - } - var _h = $k[--$j]; - $1[$k[--$j]] = _h; - $1.checksum = 0; - for (var _l = 0, _k = $f($1.barlen - 2); _l <= _k; _l += 1) { - $1.checksum = $f($get($1.charvals, $geti($1.barcode, _l, 1)) + $1.checksum); - } - $1.checksum = $f($get($1.charvals, $geti($1.barcode, $1.barcode.length - 1, 1)) + $1.checksum); - $1.checksum = $f(16 - $1.checksum % 16) % 16; - if ($1.validatecheck) { - if ($get($1.barcode, $f($1.barlen - 1)) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.rationalizedCodabarBadCheckDigit"; - $k[$j++] = "Incorrect Codabar check digit provided"; - $0.raiseerror(); - } - var _16 = $s($1.barlen); - $puti(_16, 0, $geti($1.barcode, 0, $f($1.barlen - 1))); - $puti(_16, $f($1.barlen - 1), $geti($1.barcode, $1.barlen, 1)); - $1.barcode = _16; - $1.includecheck = true; - } - $k[$j++] = "sbs"; - $k[$j++] = $1.barlen; - if ($1.includecheck) { - var _1G = $k[--$j]; - $k[$j++] = $f(_1G + 1); - } - var _1I = $s($k[--$j] * 8); - $1[$k[--$j]] = _1I; - $k[$j++] = "txt"; - $k[$j++] = $1.barlen; - if ($1.includecheck) { - var _1M = $k[--$j]; - $k[$j++] = $f(_1M + 1); - } - var _1O = $a($k[--$j]); - $1[$k[--$j]] = _1O; - $1.xpos = 0; - for (var _1S = 0, _1R = $f($1.barlen - 2); _1S <= _1R; _1S += 1) { - $1.i = _1S; - $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $1.i * 8, $1.enc); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize ])); - for (var _1o = 0; _1o <= 7; _1o += 1) { - $1.xpos = $f($f($get($1.enc, _1o) - 48) + $1.xpos); - } - } - if ($1.includecheck) { - $puti($1.sbs, $f($1.barlen * 8 - 8), $get($1.encs, $1.checksum)); - if ($1.includecheckintext) { - $put($1.txt, $f($1.barlen - 1), $a([ $geti($1.barchars, $1.checksum, 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $f($1.barlen - 1), $a([ " ", $1.xpos, $1.textyoffset, $1.textfont, $1.textsize ])); - } - for (var _2G = 0; _2G <= 7; _2G += 1) { - $1.xpos = $f($f($get($get($1.encs, $1.checksum), _2G) - 48) + $1.xpos); - } - $1.indx = $get($1.charvals, $geti($1.barcode, $f($1.barlen - 1), 1)); - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $1.barlen * 8, $1.enc); - $put($1.txt, $1.barlen, $a([ $geti($1.barcode, $f($1.barlen - 1), 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $1.indx = $get($1.charvals, $geti($1.barcode, $f($1.barlen - 1), 1)); - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $f($1.barlen * 8 - 8), $1.enc); - $put($1.txt, $f($1.barlen - 1), $a([ $geti($1.barcode, $f($1.barlen - 1), 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $k[$j++] = Infinity; - $k[$j++] = Infinity; - $forall($1.sbs, function() { - var _33 = $k[--$j]; - $k[$j++] = $f(_33 - 48); - }); - var _34 = $a(); - $k[$j++] = Infinity; - for (var _36 = 0, _37 = ~~(($1.sbs.length + 1) / 2); _36 < _37; _36++) { - $k[$j++] = $1.height; - } - var _39 = $a(); - $k[$j++] = Infinity; - for (var _3B = 0, _3C = ~~(($1.sbs.length + 1) / 2); _3B < _3C; _3B++) { - $k[$j++] = 0; - } - var _3D = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _34; - $k[$j++] = "bhs"; - $k[$j++] = _39; - $k[$j++] = "bbs"; - $k[$j++] = _3D; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _3H = $d(); - $k[$j++] = _3H; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#9782 + $1.options = $k[--$j]; //#9784 + $1.barcode = $k[--$j]; //#9785 + $1.dontdraw = false; //#9787 + $1.altstartstop = false; //#9788 + $1.includecheck = false; //#9789 + $1.validatecheck = false; //#9790 + $1.includetext = false; //#9791 + $1.includecheckintext = false; //#9792 + $1.textfont = "OCR-B"; //#9793 + $1.textsize = 10; //#9794 + $1.textyoffset = -8; //#9795 + $1.height = 1; //#9796 + $forall($1.options, function() { //#9807 + var _3 = $k[--$j]; //#9807 + $1[$k[--$j]] = _3; //#9807 + }); //#9807 + $1.textfont = "" + $1.textfont; //#9809 + $1.textsize = +$1.textsize; //#9810 + $1.textyoffset = +$1.textyoffset; //#9811 + $1.height = +$1.height; //#9812 + $1.encs = $a(["11111331", "11113311", "11131131", "33111111", "11311311", "31111311", "13111131", "13113111", "13311111", "31131111", "11133111", "11331111", "31113131", "31311131", "31313111", "11313131", "11331311", "13131131", "11131331", "11133311"]); //#9820 + if ($1.altstartstop) { //#9826 + $1.barchars = "0123456789-$:/.+TN*E"; //#9824 + } else { //#9826 + $1.barchars = "0123456789-$:/.+ABCD"; //#9826 + } //#9826 + $1.charvals = new Map; //#9828 + for (var _B = 0; _B <= 19; _B += 1) { //#9829 + $put($1.charvals, $geti($1.barchars, _B, 1), _B); //#9829 + } //#9829 + $1.bodyvals = new Map; //#9830 + for (var _F = 0; _F <= 15; _F += 1) { //#9831 + $put($1.bodyvals, $geti($1.barchars, _F, 1), _F); //#9831 + } //#9831 + $1.ssvals = new Map; //#9832 + for (var _J = 16; _J <= 19; _J += 1) { //#9833 + $put($1.ssvals, $geti($1.barchars, _J, 1), _J); //#9833 + } //#9833 + var _Q = $get($1.ssvals, $geti($1.barcode, 0, 1)) !== undefined; //#9836 + var _V = $get($1.ssvals, $geti($1.barcode, $1.barcode.length - 1, 1)) !== undefined; //#9837 + if ((!_Q) || (!_V)) { //#9843 + if ($1.altstartstop) { //#9841 + $k[$j++] = 'bwipp.rationalizedCodabarBadAltStartStop'; //#9839 + $k[$j++] = "Codabar start and stop characters must be one of E N T or *"; //#9839 + $0.raiseerror(); //#9839 + } else { //#9841 + $k[$j++] = 'bwipp.rationalizedCodabarBadStartStop'; //#9841 + $k[$j++] = "Codabar start and stop characters must be one of A B C or D"; //#9841 + $0.raiseerror(); //#9841 + } //#9841 + } //#9841 + for (var _Z = 1, _Y = $1.barcode.length - 2; _Z <= _Y; _Z += 1) { //#9848 + var _d = $get($1.bodyvals, $geti($1.barcode, _Z, 1)) !== undefined; //#9845 + if (!_d) { //#9847 + $k[$j++] = 'bwipp.rationalizedCodabarBadCharacter'; //#9846 + $k[$j++] = "Codabar body must contain only digits and symbols - $ : / . +"; //#9846 + $0.raiseerror(); //#9846 + } //#9846 + } //#9846 + $k[$j++] = 'barlen'; //#9850 + $k[$j++] = $1.barcode.length; //#9850 + if ($1.validatecheck) { //#9850 + var _g = $k[--$j]; //#9850 + $k[$j++] = $f(_g - 1); //#9850 + } //#9850 + var _h = $k[--$j]; //#9850 + $1[$k[--$j]] = _h; //#9850 + $1.checksum = 0; //#9852 + for (var _l = 0, _k = $f($1.barlen - 2); _l <= _k; _l += 1) { //#9856 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, _l, 1)) + $1.checksum); //#9855 + } //#9855 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, $1.barcode.length - 1, 1)) + $1.checksum); //#9858 + $1.checksum = ($f(16 - ($1.checksum % 16))) % 16; //#9859 + if ($1.validatecheck) { //#9869 + if ($get($1.barcode, $f($1.barlen - 1)) != $get($1.barchars, $1.checksum)) { //#9863 + $k[$j++] = 'bwipp.rationalizedCodabarBadCheckDigit'; //#9862 + $k[$j++] = "Incorrect Codabar check digit provided"; //#9862 + $0.raiseerror(); //#9862 + } //#9862 + var _16 = $s($1.barlen); //#9864 + $puti(_16, 0, $geti($1.barcode, 0, $f($1.barlen - 1))); //#9865 + $puti(_16, $f($1.barlen - 1), $geti($1.barcode, $1.barlen, 1)); //#9866 + $1.barcode = _16; //#9867 + $1.includecheck = true; //#9868 + } //#9868 + $k[$j++] = 'sbs'; //#9871 + $k[$j++] = $1.barlen; //#9871 + if ($1.includecheck) { //#9871 + var _1G = $k[--$j]; //#9871 + $k[$j++] = $f(_1G + 1); //#9871 + } //#9871 + var _1I = $s($k[--$j] * 8); //#9871 + $1[$k[--$j]] = _1I; //#9871 + $k[$j++] = 'txt'; //#9872 + $k[$j++] = $1.barlen; //#9872 + if ($1.includecheck) { //#9872 + var _1M = $k[--$j]; //#9872 + $k[$j++] = $f(_1M + 1); //#9872 + } //#9872 + var _1O = $a($k[--$j]); //#9872 + $1[$k[--$j]] = _1O; //#9872 + $1.xpos = 0; //#9874 + for (var _1S = 0, _1R = $f($1.barlen - 2); _1S <= _1R; _1S += 1) { //#9884 + $1.i = _1S; //#9876 + $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); //#9877 + $1.enc = $get($1.encs, $1.indx); //#9878 + $puti($1.sbs, $1.i * 8, $1.enc); //#9879 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9880 + for (var _1o = 0; _1o <= 7; _1o += 1) { //#9883 + $1.xpos = $f($f($get($1.enc, _1o) - 48) + $1.xpos); //#9882 + } //#9882 + } //#9882 + if ($1.includecheck) { //#9908 + $puti($1.sbs, $f(($1.barlen * 8) - 8), $get($1.encs, $1.checksum)); //#9889 + if ($1.includecheckintext) { //#9893 + $put($1.txt, $f($1.barlen - 1), $a([$geti($1.barchars, $1.checksum, 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9891 + } else { //#9893 + $put($1.txt, $f($1.barlen - 1), $a([" ", $1.xpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9893 + } //#9893 + for (var _2G = 0; _2G <= 7; _2G += 1) { //#9897 + $1.xpos = $f($f($get($get($1.encs, $1.checksum), _2G) - 48) + $1.xpos); //#9896 + } //#9896 + $1.indx = $get($1.charvals, $geti($1.barcode, $f($1.barlen - 1), 1)); //#9899 + $1.enc = $get($1.encs, $1.indx); //#9900 + $puti($1.sbs, $1.barlen * 8, $1.enc); //#9901 + $put($1.txt, $1.barlen, $a([$geti($1.barcode, $f($1.barlen - 1), 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9902 + } else { //#9908 + $1.indx = $get($1.charvals, $geti($1.barcode, $f($1.barlen - 1), 1)); //#9905 + $1.enc = $get($1.encs, $1.indx); //#9906 + $puti($1.sbs, $f(($1.barlen * 8) - 8), $1.enc); //#9907 + $put($1.txt, $f($1.barlen - 1), $a([$geti($1.barcode, $f($1.barlen - 1), 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9908 + } //#9908 + $k[$j++] = Infinity; //#9920 + $k[$j++] = Infinity; //#9914 + $forall($1.sbs, function() { //#9914 + var _33 = $k[--$j]; //#9914 + $k[$j++] = $f(_33 - 48); //#9914 + }); //#9914 + var _34 = $a(); //#9914 + $k[$j++] = Infinity; //#9915 + for (var _36 = 0, _37 = ~~(($1.sbs.length + 1) / 2); _36 < _37; _36++) { //#9915 + $k[$j++] = $1.height; //#9915 + } //#9915 + var _39 = $a(); //#9915 + $k[$j++] = Infinity; //#9916 + for (var _3B = 0, _3C = ~~(($1.sbs.length + 1) / 2); _3B < _3C; _3B++) { //#9916 + $k[$j++] = 0; //#9916 + } //#9916 + var _3D = $a(); //#9916 + $k[$j++] = 'ren'; //#9919 + $k[$j++] = $0.renlinear; //#9919 + $k[$j++] = 'sbs'; //#9919 + $k[$j++] = _34; //#9919 + $k[$j++] = 'bhs'; //#9919 + $k[$j++] = _39; //#9919 + $k[$j++] = 'bbs'; //#9919 + $k[$j++] = _3D; //#9919 + if ($1.includetext) { //#9919 + $k[$j++] = 'txt'; //#9918 + $k[$j++] = $1.txt; //#9918 + } //#9918 + $k[$j++] = 'opt'; //#9920 + $k[$j++] = $1.options; //#9920 + var _3H = $d(); //#9920 + $k[$j++] = _3H; //#9923 + if (!$1.dontdraw) { //#9923 + $0.renlinear(); //#9923 + } //#9923 }; $0.onecode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.height = .15; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.height = +$1.height; - $1.barlen = $1.barcode.length; - $k[$j++] = Infinity; - var _9 = $eq($geti($1.barcode, 5, 1), "9") ? 14 : 11; - $k[$j++] = 2; - $k[$j++] = 2; - $k[$j++] = 5; - $k[$j++] = 5; - $k[$j++] = _9; - $k[$j++] = _9; - $k[$j++] = 20; - $k[$j++] = 20; - $k[$j++] = 25; - $k[$j++] = 25; - $k[$j++] = 29; - $k[$j++] = 29; - $1.txtdict = $d(); - $1.txt = $a($1.barlen + 6); - $1.spacecnt = 0; - for (var _F = 0, _E = $1.barlen - 1; _F <= _E; _F += 1) { - $1.i = _F; - var _I = $get($1.txtdict, $1.i) !== undefined; - if (_I) { - $put($1.txt, $1.i + $1.spacecnt, $a([ " ", 0, 0, "", 0 ])); - $1.spacecnt = $1.spacecnt + 1; - } - $put($1.txt, $1.i + $1.spacecnt, $a([ $geti($1.barcode, $1.i, 1), 0, 0, "", 0 ])); - } - $1.txt = $geti($1.txt, 0, $1.barcode.length + $1.spacecnt); + var $1 = {}; //#9952 + $1.options = $k[--$j]; //#9954 + $1.barcode = $k[--$j]; //#9955 + $1.dontdraw = false; //#9957 + $1.height = 0.15; //#9958 + $forall($1.options, function() { //#9969 + var _3 = $k[--$j]; //#9969 + $1[$k[--$j]] = _3; //#9969 + }); //#9969 + $1.height = +$1.height; //#9971 + $1.barlen = $1.barcode.length; //#9973 + $k[$j++] = Infinity; //#9982 + var _9 = $eq($geti($1.barcode, 5, 1), "9") ? 14 : 11; //#9979 + $k[$j++] = 2; //#9982 + $k[$j++] = 2; //#9982 + $k[$j++] = 5; //#9982 + $k[$j++] = 5; //#9982 + $k[$j++] = _9; //#9982 + $k[$j++] = _9; //#9982 + $k[$j++] = 20; //#9982 + $k[$j++] = 20; //#9982 + $k[$j++] = 25; //#9982 + $k[$j++] = 25; //#9982 + $k[$j++] = 29; //#9982 + $k[$j++] = 29; //#9982 + $1.txtdict = $d(); //#9983 + $1.txt = $a($1.barlen + 6); //#9984 + $1.spacecnt = 0; //#9985 + for (var _F = 0, _E = $1.barlen - 1; _F <= _E; _F += 1) { //#9993 + $1.i = _F; //#9987 + var _I = $get($1.txtdict, $1.i) !== undefined; //#9988 + if (_I) { //#9991 + $put($1.txt, $1.i + $1.spacecnt, $a([" ", 0, 0, "", 0])); //#9989 + $1.spacecnt = $1.spacecnt + 1; //#9990 + } //#9990 + $put($1.txt, $1.i + $1.spacecnt, $a([$geti($1.barcode, $1.i, 1), 0, 0, "", 0])); //#9992 + } //#9992 + $1.txt = $geti($1.txt, 0, $1.barcode.length + $1.spacecnt); //#9994 $1.normalize = function() { - $1.base = $k[--$j]; - $1.num = $k[--$j]; - for (var _c = $1.num.length - 1; _c >= 1; _c -= 1) { - $1.i = _c; - var _d = $1.num; - var _e = $1.i; - $put(_d, _e - 1, $f($get(_d, _e - 1) + ~~($get($1.num, $1.i) / $1.base))); - $put($1.num, $1.i, $get($1.num, $1.i) % $1.base); - } - for (;;) { - if ($lt($get($1.num, 0), $1.base)) { - break; - } - $k[$j++] = Infinity; - $k[$j++] = 0; - $forall($1.num); - $1.num = $a(); - $put($1.num, 0, $f($get($1.num, 0) + ~~($get($1.num, 1) / $1.base))); - $put($1.num, 1, $get($1.num, 1) % $1.base); - } - $k[$j++] = Infinity; - $1.i = true; - var _15 = $1.num; - for (var _16 = 0, _17 = _15.length; _16 < _17; _16++) { - var _18 = $get(_15, _16); - $k[$j++] = _18; - if (_18 == 0 && $1.i) { - $j--; - } else { - $1.i = false; - } - } - $1.num = $a(); - if ($1.num.length == 0) { - $1.num = $a([ 0 ]); - } - $k[$j++] = $1.num; - }; + $1.base = $k[--$j]; //#9997 + $1.num = $k[--$j]; //#9998 + for (var _c = $1.num.length - 1; _c >= 1; _c -= 1) { //#10003 + $1.i = _c; //#10000 + var _d = $1.num; //#10001 + var _e = $1.i; //#10001 + $put(_d, _e - 1, $f($get(_d, _e - 1) + (~~($get($1.num, $1.i) / $1.base)))); //#10001 + $put($1.num, $1.i, $get($1.num, $1.i) % $1.base); //#10002 + } //#10002 + for (;;) { //#10009 + if ($lt($get($1.num, 0), $1.base)) { //#10005 + break; //#10005 + } //#10005 + $k[$j++] = Infinity; //#10006 + $k[$j++] = 0; //#10006 + $forall($1.num); //#10006 + $1.num = $a(); //#10006 + $put($1.num, 0, $f($get($1.num, 0) + (~~($get($1.num, 1) / $1.base)))); //#10007 + $put($1.num, 1, $get($1.num, 1) % $1.base); //#10008 + } //#10008 + $k[$j++] = Infinity; //#10011 + $1.i = true; //#10011 + var _15 = $1.num; //#10011 + for (var _16 = 0, _17 = _15.length; _16 < _17; _16++) { //#10011 + var _18 = $get(_15, _16); //#10011 + $k[$j++] = _18; //#10011 + if ((_18 == 0) && $1.i) { //#10011 + $j--; //#10011 + } else { //#10011 + $1.i = false; //#10011 + } //#10011 + } //#10011 + $1.num = $a(); //#10011 + if ($1.num.length == 0) { //#10012 + $1.num = $a([0]); //#10012 + } //#10012 + $k[$j++] = $1.num; //#10013 + }; //#10014 $1.bigadd = function() { - var _1E = $k[--$j]; - var _1F = $k[--$j]; - $1.offset = Math.abs(_1E.length - _1F.length); - if (_1E.length < _1F.length) { - var _ = _1E; - _1E = _1F; - _1F = _; - } - $1.a = _1E; - $1.b = _1F; - for (var _1I = 0, _1H = $1.b.length - 1; _1I <= _1H; _1I += 1) { - var _1J = $1.a; - var _1K = $1.offset; - $put(_1J, _1I + _1K, $f($get(_1J, _1I + _1K) + $get($1.b, _1I))); - } - $k[$j++] = $1.a; - }; - if ($1.barlen == 20) { - $k[$j++] = $a([ 0 ]); - } - if ($1.barlen == 25) { - $k[$j++] = $a([ 1 ]); - } - if ($1.barlen == 29) { - $k[$j++] = $a([ 1, 0, 0, 0, 0, 1 ]); - } - if ($1.barlen == 31) { - $k[$j++] = $a([ 1, 0, 0, 0, 1, 0, 0, 0, 0, 1 ]); - } - var _1X = $k[--$j]; - $k[$j++] = "binval"; - $k[$j++] = _1X; - $k[$j++] = Infinity; - var _1a = $geti($1.barcode, 20, $1.barlen - 20); - for (var _1b = 0, _1c = _1a.length; _1b < _1c; _1b++) { - $k[$j++] = $f($get(_1a, _1b) - 48); - } - var _1e = $a(); - $k[$j++] = _1e; - $1.bigadd(); - var _1f = $k[--$j]; - $1[$k[--$j]] = _1f; - $k[$j++] = Infinity; - var _1h = $1.binval; - for (var _1i = 0, _1j = _1h.length; _1i < _1j; _1i++) { - $k[$j++] = $get(_1h, _1i); - } - $k[$j++] = $f($get($1.barcode, 0) - 48); - $1.binval = $a(); - $k[$j++] = Infinity; - var _1o = $1.binval; - for (var _1p = 0, _1q = _1o.length; _1p < _1q; _1p++) { - $k[$j++] = $get(_1o, _1p) * 5; - } - var _1s = $a(); - $k[$j++] = "binval"; - $k[$j++] = _1s; - $k[$j++] = $a([ $f($get($1.barcode, 1) - 48) ]); - $1.bigadd(); - $k[$j++] = 10; - $1.normalize(); - var _1w = $k[--$j]; - $1[$k[--$j]] = _1w; - $k[$j++] = Infinity; - var _1y = $1.binval; - for (var _1z = 0, _20 = _1y.length; _1z < _20; _1z++) { - $k[$j++] = $get(_1y, _1z); - } - var _23 = $geti($1.barcode, 2, 18); - for (var _24 = 0, _25 = _23.length; _24 < _25; _24++) { - $k[$j++] = $f($get(_23, _24) - 48); - } - $1.binval = $a(); - $1.bytes = $a(13); - $k[$j++] = Infinity; - var _29 = $1.binval; - for (var _2A = 0, _2B = _29.length; _2A < _2B; _2A++) { - $k[$j++] = $get(_29, _2A); - } - $1.bintmp = $a(); - for (var _2E = 12; _2E >= 0; _2E -= 1) { - $1.i = _2E; - for (var _2H = 0, _2G = $1.bintmp.length - 2; _2H <= _2G; _2H += 1) { - $1.j = _2H; - var _2I = $1.bintmp; - var _2J = $1.j; - $put(_2I, _2J + 1, $f($get(_2I, _2J + 1) + $get($1.bintmp, $1.j) % 256 * 10)); - $put($1.bintmp, $1.j, ~~($get($1.bintmp, $1.j) / 256)); - } - $put($1.bytes, $1.i, $get($1.bintmp, $1.bintmp.length - 1) % 256); - var _2Y = $1.bintmp; - var _2Z = $1.bintmp; - $put(_2Y, _2Z.length - 1, ~~($get(_2Y, _2Z.length - 1) / 256)); - } - $1.fcs = 2047; - $1.dat = $get($1.bytes, 0) << 5; - for (var _2d = 0, _2e = 6; _2d < _2e; _2d++) { - if ((($1.fcs ^ $1.dat) & 1024) != 0) { - $1.fcs = $1.fcs << 1 ^ 3893; - } else { - $1.fcs = $1.fcs << 1; - } - $1.fcs = $1.fcs & 2047; - $1.dat = $1.dat << 1; - } - for (var _2l = 1; _2l <= 12; _2l += 1) { - $1.dat = $get($1.bytes, _2l) << 3; - for (var _2o = 0, _2p = 8; _2o < _2p; _2o++) { - if ((($1.fcs ^ $1.dat) & 1024) != 0) { - $1.fcs = $1.fcs << 1 ^ 3893; - } else { - $1.fcs = $1.fcs << 1; - } - $1.fcs = $1.fcs & 2047; - $1.dat = $1.dat << 1; - } - } - $1.codewords = $a(10); - for (var _2x = 9; _2x >= 0; _2x -= 1) { - $1.i = _2x; - if ($1.i == 9) { - $1.b = 636; - } else { - $1.b = 1365; - } - for (var _31 = 0, _30 = $1.binval.length - 2; _31 <= _30; _31 += 1) { - $1.j = _31; - var _32 = $1.binval; - var _33 = $1.j; - $put(_32, _33 + 1, $f($get(_32, _33 + 1) + $get($1.binval, $1.j) % $1.b * 10)); - $put($1.binval, $1.j, ~~($get($1.binval, $1.j) / $1.b)); - } - $put($1.codewords, $1.i, $get($1.binval, $1.binval.length - 1) % $1.b); - var _3L = $1.binval; - var _3M = $1.binval; - $put(_3L, _3M.length - 1, ~~($get(_3L, _3M.length - 1) / $1.b)); - } - $put($1.codewords, 9, $get($1.codewords, 9) * 2); - if (($1.fcs & 1024) != 0) { - $put($1.codewords, 0, $f($get($1.codewords, 0) + 659)); - } - $1.tab513 = $a([ 31, 7936, 47, 7808, 55, 7552, 59, 7040, 61, 6016, 62, 3968, 79, 7744, 87, 7488, 91, 6976, 93, 5952, 94, 3904, 103, 7360, 107, 6848, 109, 5824, 110, 3776, 115, 6592, 117, 5568, 118, 3520, 121, 5056, 122, 3008, 124, 1984, 143, 7712, 151, 7456, 155, 6944, 157, 5920, 158, 3872, 167, 7328, 171, 6816, 173, 5792, 174, 3744, 179, 6560, 181, 5536, 182, 3488, 185, 5024, 186, 2976, 188, 1952, 199, 7264, 203, 6752, 205, 5728, 206, 3680, 211, 6496, 213, 5472, 214, 3424, 217, 4960, 218, 2912, 220, 1888, 227, 6368, 229, 5344, 230, 3296, 233, 4832, 234, 2784, 236, 1760, 241, 4576, 242, 2528, 244, 1504, 248, 992, 271, 7696, 279, 7440, 283, 6928, 285, 5904, 286, 3856, 295, 7312, 299, 6800, 301, 5776, 302, 3728, 307, 6544, 309, 5520, 310, 3472, 313, 5008, 314, 2960, 316, 1936, 327, 7248, 331, 6736, 333, 5712, 334, 3664, 339, 6480, 341, 5456, 342, 3408, 345, 4944, 346, 2896, 348, 1872, 355, 6352, 357, 5328, 358, 3280, 361, 4816, 362, 2768, 364, 1744, 369, 4560, 370, 2512, 372, 1488, 376, 976, 391, 7216, 395, 6704, 397, 5680, 398, 3632, 403, 6448, 405, 5424, 406, 3376, 409, 4912, 410, 2864, 412, 1840, 419, 6320, 421, 5296, 422, 3248, 425, 4784, 426, 2736, 428, 1712, 433, 4528, 434, 2480, 436, 1456, 440, 944, 451, 6256, 453, 5232, 454, 3184, 457, 4720, 458, 2672, 460, 1648, 465, 4464, 466, 2416, 468, 1392, 472, 880, 481, 4336, 482, 2288, 484, 1264, 488, 752, 527, 7688, 535, 7432, 539, 6920, 541, 5896, 542, 3848, 551, 7304, 555, 6792, 557, 5768, 558, 3720, 563, 6536, 565, 5512, 566, 3464, 569, 5e3, 570, 2952, 572, 1928, 583, 7240, 587, 6728, 589, 5704, 590, 3656, 595, 6472, 597, 5448, 598, 3400, 601, 4936, 602, 2888, 604, 1864, 611, 6344, 613, 5320, 614, 3272, 617, 4808, 618, 2760, 620, 1736, 625, 4552, 626, 2504, 628, 1480, 632, 968, 647, 7208, 651, 6696, 653, 5672, 654, 3624, 659, 6440, 661, 5416, 662, 3368, 665, 4904, 666, 2856, 668, 1832, 675, 6312, 677, 5288, 678, 3240, 681, 4776, 682, 2728, 684, 1704, 689, 4520, 690, 2472, 692, 1448, 696, 936, 707, 6248, 709, 5224, 710, 3176, 713, 4712, 714, 2664, 716, 1640, 721, 4456, 722, 2408, 724, 1384, 728, 872, 737, 4328, 738, 2280, 740, 1256, 775, 7192, 779, 6680, 781, 5656, 782, 3608, 787, 6424, 789, 5400, 790, 3352, 793, 4888, 794, 2840, 796, 1816, 803, 6296, 805, 5272, 806, 3224, 809, 4760, 810, 2712, 812, 1688, 817, 4504, 818, 2456, 820, 1432, 824, 920, 835, 6232, 837, 5208, 838, 3160, 841, 4696, 842, 2648, 844, 1624, 849, 4440, 850, 2392, 852, 1368, 865, 4312, 866, 2264, 868, 1240, 899, 6200, 901, 5176, 902, 3128, 905, 4664, 906, 2616, 908, 1592, 913, 4408, 914, 2360, 916, 1336, 929, 4280, 930, 2232, 932, 1208, 961, 4216, 962, 2168, 964, 1144, 1039, 7684, 1047, 7428, 1051, 6916, 1053, 5892, 1054, 3844, 1063, 7300, 1067, 6788, 1069, 5764, 1070, 3716, 1075, 6532, 1077, 5508, 1078, 3460, 1081, 4996, 1082, 2948, 1084, 1924, 1095, 7236, 1099, 6724, 1101, 5700, 1102, 3652, 1107, 6468, 1109, 5444, 1110, 3396, 1113, 4932, 1114, 2884, 1116, 1860, 1123, 6340, 1125, 5316, 1126, 3268, 1129, 4804, 1130, 2756, 1132, 1732, 1137, 4548, 1138, 2500, 1140, 1476, 1159, 7204, 1163, 6692, 1165, 5668, 1166, 3620, 1171, 6436, 1173, 5412, 1174, 3364, 1177, 4900, 1178, 2852, 1180, 1828, 1187, 6308, 1189, 5284, 1190, 3236, 1193, 4772, 1194, 2724, 1196, 1700, 1201, 4516, 1202, 2468, 1204, 1444, 1219, 6244, 1221, 5220, 1222, 3172, 1225, 4708, 1226, 2660, 1228, 1636, 1233, 4452, 1234, 2404, 1236, 1380, 1249, 4324, 1250, 2276, 1287, 7188, 1291, 6676, 1293, 5652, 1294, 3604, 1299, 6420, 1301, 5396, 1302, 3348, 1305, 4884, 1306, 2836, 1308, 1812, 1315, 6292, 1317, 5268, 1318, 3220, 1321, 4756, 1322, 2708, 1324, 1684, 1329, 4500, 1330, 2452, 1332, 1428, 1347, 6228, 1349, 5204, 1350, 3156, 1353, 4692, 1354, 2644, 1356, 1620, 1361, 4436, 1362, 2388, 1377, 4308, 1378, 2260, 1411, 6196, 1413, 5172, 1414, 3124, 1417, 4660, 1418, 2612, 1420, 1588, 1425, 4404, 1426, 2356, 1441, 4276, 1442, 2228, 1473, 4212, 1474, 2164, 1543, 7180, 1547, 6668, 1549, 5644, 1550, 3596, 1555, 6412, 1557, 5388, 1558, 3340, 1561, 4876, 1562, 2828, 1564, 1804, 1571, 6284, 1573, 5260, 1574, 3212, 1577, 4748, 1578, 2700, 1580, 1676, 1585, 4492, 1586, 2444, 1603, 6220, 1605, 5196, 1606, 3148, 1609, 4684, 1610, 2636, 1617, 4428, 1618, 2380, 1633, 4300, 1634, 2252, 1667, 6188, 1669, 5164, 1670, 3116, 1673, 4652, 1674, 2604, 1681, 4396, 1682, 2348, 1697, 4268, 1698, 2220, 1729, 4204, 1730, 2156, 1795, 6172, 1797, 5148, 1798, 3100, 1801, 4636, 1802, 2588, 1809, 4380, 1810, 2332, 1825, 4252, 1826, 2204, 1857, 4188, 1858, 2140, 1921, 4156, 1922, 2108, 2063, 7682, 2071, 7426, 2075, 6914, 2077, 5890, 2078, 3842, 2087, 7298, 2091, 6786, 2093, 5762, 2094, 3714, 2099, 6530, 2101, 5506, 2102, 3458, 2105, 4994, 2106, 2946, 2119, 7234, 2123, 6722, 2125, 5698, 2126, 3650, 2131, 6466, 2133, 5442, 2134, 3394, 2137, 4930, 2138, 2882, 2147, 6338, 2149, 5314, 2150, 3266, 2153, 4802, 2154, 2754, 2161, 4546, 2162, 2498, 2183, 7202, 2187, 6690, 2189, 5666, 2190, 3618, 2195, 6434, 2197, 5410, 2198, 3362, 2201, 4898, 2202, 2850, 2211, 6306, 2213, 5282, 2214, 3234, 2217, 4770, 2218, 2722, 2225, 4514, 2226, 2466, 2243, 6242, 2245, 5218, 2246, 3170, 2249, 4706, 2250, 2658, 2257, 4450, 2258, 2402, 2273, 4322, 2311, 7186, 2315, 6674, 2317, 5650, 2318, 3602, 2323, 6418, 2325, 5394, 2326, 3346, 2329, 4882, 2330, 2834, 2339, 6290, 2341, 5266, 2342, 3218, 2345, 4754, 2346, 2706, 2353, 4498, 2354, 2450, 2371, 6226, 2373, 5202, 2374, 3154, 2377, 4690, 2378, 2642, 2385, 4434, 2401, 4306, 2435, 6194, 2437, 5170, 2438, 3122, 2441, 4658, 2442, 2610, 2449, 4402, 2465, 4274, 2497, 4210, 2567, 7178, 2571, 6666, 2573, 5642, 2574, 3594, 2579, 6410, 2581, 5386, 2582, 3338, 2585, 4874, 2586, 2826, 2595, 6282, 2597, 5258, 2598, 3210, 2601, 4746, 2602, 2698, 2609, 4490, 2627, 6218, 2629, 5194, 2630, 3146, 2633, 4682, 2641, 4426, 2657, 4298, 2691, 6186, 2693, 5162, 2694, 3114, 2697, 4650, 2705, 4394, 2721, 4266, 2753, 4202, 2819, 6170, 2821, 5146, 2822, 3098, 2825, 4634, 2833, 4378, 2849, 4250, 2881, 4186, 2945, 4154, 3079, 7174, 3083, 6662, 3085, 5638, 3086, 3590, 3091, 6406, 3093, 5382, 3094, 3334, 3097, 4870, 3107, 6278, 3109, 5254, 3110, 3206, 3113, 4742, 3121, 4486, 3139, 6214, 3141, 5190, 3145, 4678, 3153, 4422, 3169, 4294, 3203, 6182, 3205, 5158, 3209, 4646, 3217, 4390, 3233, 4262, 3265, 4198, 3331, 6166, 3333, 5142, 3337, 4630, 3345, 4374, 3361, 4246, 3393, 4182, 3457, 4150, 3587, 6158, 3589, 5134, 3593, 4622, 3601, 4366, 3617, 4238, 3649, 4174, 3713, 4142, 3841, 4126, 4111, 7681, 4119, 7425, 4123, 6913, 4125, 5889, 4135, 7297, 4139, 6785, 4141, 5761, 4147, 6529, 4149, 5505, 4153, 4993, 4167, 7233, 4171, 6721, 4173, 5697, 4179, 6465, 4181, 5441, 4185, 4929, 4195, 6337, 4197, 5313, 4201, 4801, 4209, 4545, 4231, 7201, 4235, 6689, 4237, 5665, 4243, 6433, 4245, 5409, 4249, 4897, 4259, 6305, 4261, 5281, 4265, 4769, 4273, 4513, 4291, 6241, 4293, 5217, 4297, 4705, 4305, 4449, 4359, 7185, 4363, 6673, 4365, 5649, 4371, 6417, 4373, 5393, 4377, 4881, 4387, 6289, 4389, 5265, 4393, 4753, 4401, 4497, 4419, 6225, 4421, 5201, 4425, 4689, 4483, 6193, 4485, 5169, 4489, 4657, 4615, 7177, 4619, 6665, 4621, 5641, 4627, 6409, 4629, 5385, 4633, 4873, 4643, 6281, 4645, 5257, 4649, 4745, 4675, 6217, 4677, 5193, 4739, 6185, 4741, 5161, 4867, 6169, 4869, 5145, 5127, 7173, 5131, 6661, 5133, 5637, 5139, 6405, 5141, 5381, 5155, 6277, 5157, 5253, 5187, 6213, 5251, 6181, 5379, 6165, 5635, 6157, 6151, 7171, 6155, 6659, 6163, 6403, 6179, 6275, 6211, 5189, 4681, 4433, 4321, 3142, 2634, 2386, 2274, 1612, 1364, 1252, 856, 744, 496 ]); - $1.tab213 = $a([ 3, 6144, 5, 5120, 6, 3072, 9, 4608, 10, 2560, 12, 1536, 17, 4352, 18, 2304, 20, 1280, 24, 768, 33, 4224, 34, 2176, 36, 1152, 40, 640, 48, 384, 65, 4160, 66, 2112, 68, 1088, 72, 576, 80, 320, 96, 192, 129, 4128, 130, 2080, 132, 1056, 136, 544, 144, 288, 257, 4112, 258, 2064, 260, 1040, 264, 528, 513, 4104, 514, 2056, 516, 1032, 1025, 4100, 1026, 2052, 2049, 4098, 4097, 2050, 1028, 520, 272, 160 ]); - $1.chars = $a(10); - for (var _3Z = 0; _3Z <= 9; _3Z += 1) { - $1.i = _3Z; - var _3c = $get($1.codewords, $1.i); - $k[$j++] = _3c; - if (_3c <= 1286) { - var _3f = $get($1.tab513, $k[--$j]); - $k[$j++] = _3f; - } else { - var _3i = $get($1.tab213, $f($k[--$j] - 1287)); - $k[$j++] = _3i; - } - $put($1.chars, $1.i, $k[--$j]); - } - for (var _3m = 9; _3m >= 0; _3m -= 1) { - $1.i = _3m; - if ((~~Math.pow(2, $1.i) & $1.fcs) != 0) { - $put($1.chars, $1.i, $get($1.chars, $1.i) ^ 8191); - } - } - $1.barmap = $a([ 7, 2, 4, 3, 1, 10, 0, 0, 9, 12, 2, 8, 5, 5, 6, 11, 8, 9, 3, 1, 0, 1, 5, 12, 2, 5, 1, 8, 4, 4, 9, 11, 6, 3, 8, 10, 3, 9, 7, 6, 5, 11, 1, 4, 8, 5, 2, 12, 9, 10, 0, 2, 7, 1, 6, 7, 3, 6, 4, 9, 0, 3, 8, 6, 6, 4, 2, 7, 1, 1, 9, 9, 7, 10, 5, 2, 4, 0, 3, 8, 6, 2, 0, 4, 8, 11, 1, 0, 9, 8, 3, 12, 2, 6, 7, 7, 5, 1, 4, 10, 1, 12, 6, 9, 7, 3, 8, 0, 5, 8, 9, 7, 4, 6, 2, 10, 3, 4, 0, 5, 8, 4, 5, 7, 7, 11, 1, 9, 6, 0, 9, 6, 0, 6, 4, 8, 2, 1, 3, 2, 5, 9, 8, 12, 4, 11, 6, 1, 9, 5, 7, 4, 3, 3, 1, 2, 0, 7, 2, 0, 1, 3, 4, 1, 6, 10, 3, 5, 8, 7, 9, 4, 2, 11, 5, 6, 0, 8, 7, 12, 4, 2, 8, 1, 5, 10, 3, 0, 9, 3, 0, 9, 6, 5, 2, 4, 7, 8, 1, 7, 5, 0, 4, 5, 2, 3, 0, 10, 6, 12, 9, 2, 3, 11, 1, 6, 8, 8, 7, 9, 5, 4, 0, 11, 1, 5, 2, 2, 9, 1, 4, 12, 8, 3, 6, 6, 7, 0, 3, 7, 4, 7, 7, 5, 0, 12, 1, 11, 2, 9, 9, 0, 6, 8, 5, 3, 3, 10, 8, 2 ]); - $1.bbs = $a(65); - $1.bhs = $a(65); - for (var _3x = 0; _3x <= 64; _3x += 1) { - $1.i = _3x; - $1.dec = ($get($1.chars, $get($1.barmap, $1.i * 4)) & ~~Math.pow(2, $get($1.barmap, $1.i * 4 + 1))) != 0; - $1.asc = ($get($1.chars, $get($1.barmap, $1.i * 4 + 2)) & ~~Math.pow(2, $get($1.barmap, $1.i * 4 + 3))) != 0; - if (!$1.dec && !$1.asc) { - $put($1.bbs, $1.i, 3 * $1.height / 8); - $put($1.bhs, $1.i, 2 * $1.height / 8); - } - if (!$1.dec && $1.asc) { - $put($1.bbs, $1.i, 3 * $1.height / 8); - $put($1.bhs, $1.i, 5 * $1.height / 8); - } - if ($1.dec && !$1.asc) { - $put($1.bbs, $1.i, 0 * $1.height / 8); - $put($1.bhs, $1.i, 5 * $1.height / 8); - } - if ($1.dec && $1.asc) { - $put($1.bbs, $1.i, 0 * $1.height / 8); - $put($1.bhs, $1.i, 8 * $1.height / 8); - } - } - $k[$j++] = Infinity; - var _4k = $1.bbs; - var _4l = $1.bhs; - $k[$j++] = Infinity; - for (var _4n = 0, _4o = $1.bhs.length - 1; _4n < _4o; _4n++) { - $k[$j++] = 1.44; - $k[$j++] = 1.872; - } - $k[$j++] = 1.44; - var _4p = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "bbs"; - $k[$j++] = _4k; - $k[$j++] = "bhs"; - $k[$j++] = _4l; - $k[$j++] = "sbs"; - $k[$j++] = _4p; - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - $k[$j++] = "textxalign"; - $k[$j++] = "left"; - $k[$j++] = "textfont"; - $k[$j++] = "OCR-B"; - $k[$j++] = "textyoffset"; - $k[$j++] = 1; - $k[$j++] = "textxoffset"; - $k[$j++] = -.3; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _4s = $d(); - $k[$j++] = _4s; - if (!$1.dontdraw) { - $0.renlinear(); - } + var _1E = $k[--$j]; //#10017 + var _1F = $k[--$j]; //#10017 + $1.offset = Math.abs(_1E.length - _1F.length); //#10018 + if (_1E.length < _1F.length) { //#10019 + var _ = _1E; //#10019 + _1E = _1F; //#10019 + _1F = _; //#10019 + } //#10019 + $1.a = _1E; //#10020 + $1.b = _1F; //#10020 + for (var _1I = 0, _1H = $1.b.length - 1; _1I <= _1H; _1I += 1) { //#10023 + var _1J = $1.a; //#10022 + var _1K = $1.offset; //#10022 + $put(_1J, _1I + _1K, $f($get(_1J, _1I + _1K) + $get($1.b, _1I))); //#10022 + } //#10022 + $k[$j++] = $1.a; //#10024 + }; //#10025 + if ($1.barlen == 20) { //#10028 + $k[$j++] = $a([0]); //#10028 + } //#10028 + if ($1.barlen == 25) { //#10029 + $k[$j++] = $a([1]); //#10029 + } //#10029 + if ($1.barlen == 29) { //#10030 + $k[$j++] = $a([1, 0, 0, 0, 0, 1]); //#10030 + } //#10030 + if ($1.barlen == 31) { //#10031 + $k[$j++] = $a([1, 0, 0, 0, 1, 0, 0, 0, 0, 1]); //#10031 + } //#10031 + var _1X = $k[--$j]; //#10032 + $k[$j++] = 'binval'; //#10032 + $k[$j++] = _1X; //#10032 + $k[$j++] = Infinity; //#10032 + var _1a = $geti($1.barcode, 20, $1.barlen - 20); //#10032 + for (var _1b = 0, _1c = _1a.length; _1b < _1c; _1b++) { //#10032 + $k[$j++] = $f($get(_1a, _1b) - 48); //#10032 + } //#10032 + var _1e = $a(); //#10032 + $k[$j++] = _1e; //#10032 + $1.bigadd(); //#10032 + var _1f = $k[--$j]; //#10032 + $1[$k[--$j]] = _1f; //#10032 + $k[$j++] = Infinity; //#10033 + var _1h = $1.binval; //#10033 + for (var _1i = 0, _1j = _1h.length; _1i < _1j; _1i++) { //#10033 + $k[$j++] = $get(_1h, _1i); //#10033 + } //#10033 + $k[$j++] = $f($get($1.barcode, 0) - 48); //#10033 + $1.binval = $a(); //#10033 + $k[$j++] = Infinity; //#10034 + var _1o = $1.binval; //#10034 + for (var _1p = 0, _1q = _1o.length; _1p < _1q; _1p++) { //#10034 + $k[$j++] = $get(_1o, _1p) * 5; //#10034 + } //#10034 + var _1s = $a(); //#10034 + $k[$j++] = 'binval'; //#10034 + $k[$j++] = _1s; //#10034 + $k[$j++] = $a([$f($get($1.barcode, 1) - 48)]); //#10034 + $1.bigadd(); //#10034 + $k[$j++] = 10; //#10034 + $1.normalize(); //#10034 + var _1w = $k[--$j]; //#10034 + $1[$k[--$j]] = _1w; //#10034 + $k[$j++] = Infinity; //#10035 + var _1y = $1.binval; //#10035 + for (var _1z = 0, _20 = _1y.length; _1z < _20; _1z++) { //#10035 + $k[$j++] = $get(_1y, _1z); //#10035 + } //#10035 + var _23 = $geti($1.barcode, 2, 18); //#10035 + for (var _24 = 0, _25 = _23.length; _24 < _25; _24++) { //#10035 + $k[$j++] = $f($get(_23, _24) - 48); //#10035 + } //#10035 + $1.binval = $a(); //#10035 + $1.bytes = $a(13); //#10038 + $k[$j++] = Infinity; //#10039 + var _29 = $1.binval; //#10039 + for (var _2A = 0, _2B = _29.length; _2A < _2B; _2A++) { //#10039 + $k[$j++] = $get(_29, _2A); //#10039 + } //#10039 + $1.bintmp = $a(); //#10039 + for (var _2E = 12; _2E >= 0; _2E -= 1) { //#10049 + $1.i = _2E; //#10041 + for (var _2H = 0, _2G = $1.bintmp.length - 2; _2H <= _2G; _2H += 1) { //#10046 + $1.j = _2H; //#10043 + var _2I = $1.bintmp; //#10044 + var _2J = $1.j; //#10044 + $put(_2I, _2J + 1, $f($get(_2I, _2J + 1) + (($get($1.bintmp, $1.j) % 256) * 10))); //#10044 + $put($1.bintmp, $1.j, ~~($get($1.bintmp, $1.j) / 256)); //#10045 + } //#10045 + $put($1.bytes, $1.i, $get($1.bintmp, $1.bintmp.length - 1) % 256); //#10047 + var _2Y = $1.bintmp; //#10048 + var _2Z = $1.bintmp; //#10048 + $put(_2Y, _2Z.length - 1, ~~($get(_2Y, _2Z.length - 1) / 256)); //#10048 + } //#10048 + $1.fcs = 2047; //#10052 + $1.dat = $get($1.bytes, 0) << 5; //#10053 + for (var _2d = 0, _2e = 6; _2d < _2e; _2d++) { //#10062 + if ((($1.fcs ^ $1.dat) & 1024) != 0) { //#10058 + $1.fcs = ($1.fcs << 1) ^ 3893; //#10056 + } else { //#10058 + $1.fcs = $1.fcs << 1; //#10058 + } //#10058 + $1.fcs = $1.fcs & 2047; //#10060 + $1.dat = $1.dat << 1; //#10061 + } //#10061 + for (var _2l = 1; _2l <= 12; _2l += 1) { //#10074 + $1.dat = $get($1.bytes, _2l) << 3; //#10064 + for (var _2o = 0, _2p = 8; _2o < _2p; _2o++) { //#10073 + if ((($1.fcs ^ $1.dat) & 1024) != 0) { //#10069 + $1.fcs = ($1.fcs << 1) ^ 3893; //#10067 + } else { //#10069 + $1.fcs = $1.fcs << 1; //#10069 + } //#10069 + $1.fcs = $1.fcs & 2047; //#10071 + $1.dat = $1.dat << 1; //#10072 + } //#10072 + } //#10072 + $1.codewords = $a(10); //#10077 + for (var _2x = 9; _2x >= 0; _2x -= 1) { //#10092 + $1.i = _2x; //#10079 + if ($1.i == 9) { //#10083 + $1.b = 636; //#10081 + } else { //#10083 + $1.b = 1365; //#10083 + } //#10083 + for (var _31 = 0, _30 = $1.binval.length - 2; _31 <= _30; _31 += 1) { //#10089 + $1.j = _31; //#10086 + var _32 = $1.binval; //#10087 + var _33 = $1.j; //#10087 + $put(_32, _33 + 1, $f($get(_32, _33 + 1) + (($get($1.binval, $1.j) % $1.b) * 10))); //#10087 + $put($1.binval, $1.j, ~~($get($1.binval, $1.j) / $1.b)); //#10088 + } //#10088 + $put($1.codewords, $1.i, $get($1.binval, $1.binval.length - 1) % $1.b); //#10090 + var _3L = $1.binval; //#10091 + var _3M = $1.binval; //#10091 + $put(_3L, _3M.length - 1, ~~($get(_3L, _3M.length - 1) / $1.b)); //#10091 + } //#10091 + $put($1.codewords, 9, $get($1.codewords, 9) * 2); //#10095 + if (($1.fcs & 1024) != 0) { //#10098 + $put($1.codewords, 0, $f($get($1.codewords, 0) + 659)); //#10097 + } //#10097 + $1.tab513 = $a([31, 7936, 47, 7808, 55, 7552, 59, 7040, 61, 6016, 62, 3968, 79, 7744, 87, 7488, 91, 6976, 93, 5952, 94, 3904, 103, 7360, 107, 6848, 109, 5824, 110, 3776, 115, 6592, 117, 5568, 118, 3520, 121, 5056, 122, 3008, 124, 1984, 143, 7712, 151, 7456, 155, 6944, 157, 5920, 158, 3872, 167, 7328, 171, 6816, 173, 5792, 174, 3744, 179, 6560, 181, 5536, 182, 3488, 185, 5024, 186, 2976, 188, 1952, 199, 7264, 203, 6752, 205, 5728, 206, 3680, 211, 6496, 213, 5472, 214, 3424, 217, 4960, 218, 2912, 220, 1888, 227, 6368, 229, 5344, 230, 3296, 233, 4832, 234, 2784, 236, 1760, 241, 4576, 242, 2528, 244, 1504, 248, 992, 271, 7696, 279, 7440, 283, 6928, 285, 5904, 286, 3856, 295, 7312, 299, 6800, 301, 5776, 302, 3728, 307, 6544, 309, 5520, 310, 3472, 313, 5008, 314, 2960, 316, 1936, 327, 7248, 331, 6736, 333, 5712, 334, 3664, 339, 6480, 341, 5456, 342, 3408, 345, 4944, 346, 2896, 348, 1872, 355, 6352, 357, 5328, 358, 3280, 361, 4816, 362, 2768, 364, 1744, 369, 4560, 370, 2512, 372, 1488, 376, 976, 391, 7216, 395, 6704, 397, 5680, 398, 3632, 403, 6448, 405, 5424, 406, 3376, 409, 4912, 410, 2864, 412, 1840, 419, 6320, 421, 5296, 422, 3248, 425, 4784, 426, 2736, 428, 1712, 433, 4528, 434, 2480, 436, 1456, 440, 944, 451, 6256, 453, 5232, 454, 3184, 457, 4720, 458, 2672, 460, 1648, 465, 4464, 466, 2416, 468, 1392, 472, 880, 481, 4336, 482, 2288, 484, 1264, 488, 752, 527, 7688, 535, 7432, 539, 6920, 541, 5896, 542, 3848, 551, 7304, 555, 6792, 557, 5768, 558, 3720, 563, 6536, 565, 5512, 566, 3464, 569, 5000, 570, 2952, 572, 1928, 583, 7240, 587, 6728, 589, 5704, 590, 3656, 595, 6472, 597, 5448, 598, 3400, 601, 4936, 602, 2888, 604, 1864, 611, 6344, 613, 5320, 614, 3272, 617, 4808, 618, 2760, 620, 1736, 625, 4552, 626, 2504, 628, 1480, 632, 968, 647, 7208, 651, 6696, 653, 5672, 654, 3624, 659, 6440, 661, 5416, 662, 3368, 665, 4904, 666, 2856, 668, 1832, 675, 6312, 677, 5288, 678, 3240, 681, 4776, 682, 2728, 684, 1704, 689, 4520, 690, 2472, 692, 1448, 696, 936, 707, 6248, 709, 5224, 710, 3176, 713, 4712, 714, 2664, 716, 1640, 721, 4456, 722, 2408, 724, 1384, 728, 872, 737, 4328, 738, 2280, 740, 1256, 775, 7192, 779, 6680, 781, 5656, 782, 3608, 787, 6424, 789, 5400, 790, 3352, 793, 4888, 794, 2840, 796, 1816, 803, 6296, 805, 5272, 806, 3224, 809, 4760, 810, 2712, 812, 1688, 817, 4504, 818, 2456, 820, 1432, 824, 920, 835, 6232, 837, 5208, 838, 3160, 841, 4696, 842, 2648, 844, 1624, 849, 4440, 850, 2392, 852, 1368, 865, 4312, 866, 2264, 868, 1240, 899, 6200, 901, 5176, 902, 3128, 905, 4664, 906, 2616, 908, 1592, 913, 4408, 914, 2360, 916, 1336, 929, 4280, 930, 2232, 932, 1208, 961, 4216, 962, 2168, 964, 1144, 1039, 7684, 1047, 7428, 1051, 6916, 1053, 5892, 1054, 3844, 1063, 7300, 1067, 6788, 1069, 5764, 1070, 3716, 1075, 6532, 1077, 5508, 1078, 3460, 1081, 4996, 1082, 2948, 1084, 1924, 1095, 7236, 1099, 6724, 1101, 5700, 1102, 3652, 1107, 6468, 1109, 5444, 1110, 3396, 1113, 4932, 1114, 2884, 1116, 1860, 1123, 6340, 1125, 5316, 1126, 3268, 1129, 4804, 1130, 2756, 1132, 1732, 1137, 4548, 1138, 2500, 1140, 1476, 1159, 7204, 1163, 6692, 1165, 5668, 1166, 3620, 1171, 6436, 1173, 5412, 1174, 3364, 1177, 4900, 1178, 2852, 1180, 1828, 1187, 6308, 1189, 5284, 1190, 3236, 1193, 4772, 1194, 2724, 1196, 1700, 1201, 4516, 1202, 2468, 1204, 1444, 1219, 6244, 1221, 5220, 1222, 3172, 1225, 4708, 1226, 2660, 1228, 1636, 1233, 4452, 1234, 2404, 1236, 1380, 1249, 4324, 1250, 2276, 1287, 7188, 1291, 6676, 1293, 5652, 1294, 3604, 1299, 6420, 1301, 5396, 1302, 3348, 1305, 4884, 1306, 2836, 1308, 1812, 1315, 6292, 1317, 5268, 1318, 3220, 1321, 4756, 1322, 2708, 1324, 1684, 1329, 4500, 1330, 2452, 1332, 1428, 1347, 6228, 1349, 5204, 1350, 3156, 1353, 4692, 1354, 2644, 1356, 1620, 1361, 4436, 1362, 2388, 1377, 4308, 1378, 2260, 1411, 6196, 1413, 5172, 1414, 3124, 1417, 4660, 1418, 2612, 1420, 1588, 1425, 4404, 1426, 2356, 1441, 4276, 1442, 2228, 1473, 4212, 1474, 2164, 1543, 7180, 1547, 6668, 1549, 5644, 1550, 3596, 1555, 6412, 1557, 5388, 1558, 3340, 1561, 4876, 1562, 2828, 1564, 1804, 1571, 6284, 1573, 5260, 1574, 3212, 1577, 4748, 1578, 2700, 1580, 1676, 1585, 4492, 1586, 2444, 1603, 6220, 1605, 5196, 1606, 3148, 1609, 4684, 1610, 2636, 1617, 4428, 1618, 2380, 1633, 4300, 1634, 2252, 1667, 6188, 1669, 5164, 1670, 3116, 1673, 4652, 1674, 2604, 1681, 4396, 1682, 2348, 1697, 4268, 1698, 2220, 1729, 4204, 1730, 2156, 1795, 6172, 1797, 5148, 1798, 3100, 1801, 4636, 1802, 2588, 1809, 4380, 1810, 2332, 1825, 4252, 1826, 2204, 1857, 4188, 1858, 2140, 1921, 4156, 1922, 2108, 2063, 7682, 2071, 7426, 2075, 6914, 2077, 5890, 2078, 3842, 2087, 7298, 2091, 6786, 2093, 5762, 2094, 3714, 2099, 6530, 2101, 5506, 2102, 3458, 2105, 4994, 2106, 2946, 2119, 7234, 2123, 6722, 2125, 5698, 2126, 3650, 2131, 6466, 2133, 5442, 2134, 3394, 2137, 4930, 2138, 2882, 2147, 6338, 2149, 5314, 2150, 3266, 2153, 4802, 2154, 2754, 2161, 4546, 2162, 2498, 2183, 7202, 2187, 6690, 2189, 5666, 2190, 3618, 2195, 6434, 2197, 5410, 2198, 3362, 2201, 4898, 2202, 2850, 2211, 6306, 2213, 5282, 2214, 3234, 2217, 4770, 2218, 2722, 2225, 4514, 2226, 2466, 2243, 6242, 2245, 5218, 2246, 3170, 2249, 4706, 2250, 2658, 2257, 4450, 2258, 2402, 2273, 4322, 2311, 7186, 2315, 6674, 2317, 5650, 2318, 3602, 2323, 6418, 2325, 5394, 2326, 3346, 2329, 4882, 2330, 2834, 2339, 6290, 2341, 5266, 2342, 3218, 2345, 4754, 2346, 2706, 2353, 4498, 2354, 2450, 2371, 6226, 2373, 5202, 2374, 3154, 2377, 4690, 2378, 2642, 2385, 4434, 2401, 4306, 2435, 6194, 2437, 5170, 2438, 3122, 2441, 4658, 2442, 2610, 2449, 4402, 2465, 4274, 2497, 4210, 2567, 7178, 2571, 6666, 2573, 5642, 2574, 3594, 2579, 6410, 2581, 5386, 2582, 3338, 2585, 4874, 2586, 2826, 2595, 6282, 2597, 5258, 2598, 3210, 2601, 4746, 2602, 2698, 2609, 4490, 2627, 6218, 2629, 5194, 2630, 3146, 2633, 4682, 2641, 4426, 2657, 4298, 2691, 6186, 2693, 5162, 2694, 3114, 2697, 4650, 2705, 4394, 2721, 4266, 2753, 4202, 2819, 6170, 2821, 5146, 2822, 3098, 2825, 4634, 2833, 4378, 2849, 4250, 2881, 4186, 2945, 4154, 3079, 7174, 3083, 6662, 3085, 5638, 3086, 3590, 3091, 6406, 3093, 5382, 3094, 3334, 3097, 4870, 3107, 6278, 3109, 5254, 3110, 3206, 3113, 4742, 3121, 4486, 3139, 6214, 3141, 5190, 3145, 4678, 3153, 4422, 3169, 4294, 3203, 6182, 3205, 5158, 3209, 4646, 3217, 4390, 3233, 4262, 3265, 4198, 3331, 6166, 3333, 5142, 3337, 4630, 3345, 4374, 3361, 4246, 3393, 4182, 3457, 4150, 3587, 6158, 3589, 5134, 3593, 4622, 3601, 4366, 3617, 4238, 3649, 4174, 3713, 4142, 3841, 4126, 4111, 7681, 4119, 7425, 4123, 6913, 4125, 5889, 4135, 7297, 4139, 6785, 4141, 5761, 4147, 6529, 4149, 5505, 4153, 4993, 4167, 7233, 4171, 6721, 4173, 5697, 4179, 6465, 4181, 5441, 4185, 4929, 4195, 6337, 4197, 5313, 4201, 4801, 4209, 4545, 4231, 7201, 4235, 6689, 4237, 5665, 4243, 6433, 4245, 5409, 4249, 4897, 4259, 6305, 4261, 5281, 4265, 4769, 4273, 4513, 4291, 6241, 4293, 5217, 4297, 4705, 4305, 4449, 4359, 7185, 4363, 6673, 4365, 5649, 4371, 6417, 4373, 5393, 4377, 4881, 4387, 6289, 4389, 5265, 4393, 4753, 4401, 4497, 4419, 6225, 4421, 5201, 4425, 4689, 4483, 6193, 4485, 5169, 4489, 4657, 4615, 7177, 4619, 6665, 4621, 5641, 4627, 6409, 4629, 5385, 4633, 4873, 4643, 6281, 4645, 5257, 4649, 4745, 4675, 6217, 4677, 5193, 4739, 6185, 4741, 5161, 4867, 6169, 4869, 5145, 5127, 7173, 5131, 6661, 5133, 5637, 5139, 6405, 5141, 5381, 5155, 6277, 5157, 5253, 5187, 6213, 5251, 6181, 5379, 6165, 5635, 6157, 6151, 7171, 6155, 6659, 6163, 6403, 6179, 6275, 6211, 5189, 4681, 4433, 4321, 3142, 2634, 2386, 2274, 1612, 1364, 1252, 856, 744, 496]); //#10188 + $1.tab213 = $a([3, 6144, 5, 5120, 6, 3072, 9, 4608, 10, 2560, 12, 1536, 17, 4352, 18, 2304, 20, 1280, 24, 768, 33, 4224, 34, 2176, 36, 1152, 40, 640, 48, 384, 65, 4160, 66, 2112, 68, 1088, 72, 576, 80, 320, 96, 192, 129, 4128, 130, 2080, 132, 1056, 136, 544, 144, 288, 257, 4112, 258, 2064, 260, 1040, 264, 528, 513, 4104, 514, 2056, 516, 1032, 1025, 4100, 1026, 2052, 2049, 4098, 4097, 2050, 1028, 520, 272, 160]); //#10197 + $1.chars = $a(10); //#10199 + for (var _3Z = 0; _3Z <= 9; _3Z += 1) { //#10208 + $1.i = _3Z; //#10201 + var _3c = $get($1.codewords, $1.i); //#10202 + $k[$j++] = _3c; //#10206 + if (_3c <= 1286) { //#10205 + var _3f = $get($1.tab513, $k[--$j]); //#10203 + $k[$j++] = _3f; //#10203 + } else { //#10205 + var _3i = $get($1.tab213, $f($k[--$j] - 1287)); //#10205 + $k[$j++] = _3i; //#10205 + } //#10205 + $put($1.chars, $1.i, $k[--$j]); //#10207 + } //#10207 + for (var _3m = 9; _3m >= 0; _3m -= 1) { //#10215 + $1.i = _3m; //#10211 + if (((~~Math.pow(2, $1.i)) & $1.fcs) != 0) { //#10214 + $put($1.chars, $1.i, $get($1.chars, $1.i) ^ 8191); //#10213 + } //#10213 + } //#10213 + $1.barmap = $a([7, 2, 4, 3, 1, 10, 0, 0, 9, 12, 2, 8, 5, 5, 6, 11, 8, 9, 3, 1, 0, 1, 5, 12, 2, 5, 1, 8, 4, 4, 9, 11, 6, 3, 8, 10, 3, 9, 7, 6, 5, 11, 1, 4, 8, 5, 2, 12, 9, 10, 0, 2, 7, 1, 6, 7, 3, 6, 4, 9, 0, 3, 8, 6, 6, 4, 2, 7, 1, 1, 9, 9, 7, 10, 5, 2, 4, 0, 3, 8, 6, 2, 0, 4, 8, 11, 1, 0, 9, 8, 3, 12, 2, 6, 7, 7, 5, 1, 4, 10, 1, 12, 6, 9, 7, 3, 8, 0, 5, 8, 9, 7, 4, 6, 2, 10, 3, 4, 0, 5, 8, 4, 5, 7, 7, 11, 1, 9, 6, 0, 9, 6, 0, 6, 4, 8, 2, 1, 3, 2, 5, 9, 8, 12, 4, 11, 6, 1, 9, 5, 7, 4, 3, 3, 1, 2, 0, 7, 2, 0, 1, 3, 4, 1, 6, 10, 3, 5, 8, 7, 9, 4, 2, 11, 5, 6, 0, 8, 7, 12, 4, 2, 8, 1, 5, 10, 3, 0, 9, 3, 0, 9, 6, 5, 2, 4, 7, 8, 1, 7, 5, 0, 4, 5, 2, 3, 0, 10, 6, 12, 9, 2, 3, 11, 1, 6, 8, 8, 7, 9, 5, 4, 0, 11, 1, 5, 2, 2, 9, 1, 4, 12, 8, 3, 6, 6, 7, 0, 3, 7, 4, 7, 7, 5, 0, 12, 1, 11, 2, 9, 9, 0, 6, 8, 5, 3, 3, 10, 8, 2]); //#10232 + $1.bbs = $a(65); //#10234 + $1.bhs = $a(65); //#10235 + for (var _3x = 0; _3x <= 64; _3x += 1) { //#10256 + $1.i = _3x; //#10237 + $1.dec = ($get($1.chars, $get($1.barmap, $1.i * 4)) & (~~Math.pow(2, $get($1.barmap, ($1.i * 4) + 1)))) != 0; //#10238 + $1.asc = ($get($1.chars, $get($1.barmap, ($1.i * 4) + 2)) & (~~Math.pow(2, $get($1.barmap, ($1.i * 4) + 3)))) != 0; //#10239 + if ((!$1.dec) && (!$1.asc)) { //#10243 + $put($1.bbs, $1.i, (3 * $1.height) / 8); //#10241 + $put($1.bhs, $1.i, (2 * $1.height) / 8); //#10242 + } //#10242 + if ((!$1.dec) && $1.asc) { //#10247 + $put($1.bbs, $1.i, (3 * $1.height) / 8); //#10245 + $put($1.bhs, $1.i, (5 * $1.height) / 8); //#10246 + } //#10246 + if ($1.dec && (!$1.asc)) { //#10251 + $put($1.bbs, $1.i, (0 * $1.height) / 8); //#10249 + $put($1.bhs, $1.i, (5 * $1.height) / 8); //#10250 + } //#10250 + if ($1.dec && $1.asc) { //#10255 + $put($1.bbs, $1.i, (0 * $1.height) / 8); //#10253 + $put($1.bhs, $1.i, (8 * $1.height) / 8); //#10254 + } //#10254 + } //#10254 + $k[$j++] = Infinity; //#10269 + var _4k = $1.bbs; //#10261 + var _4l = $1.bhs; //#10262 + $k[$j++] = Infinity; //#10263 + for (var _4n = 0, _4o = $1.bhs.length - 1; _4n < _4o; _4n++) { //#10263 + $k[$j++] = 1.44; //#10263 + $k[$j++] = 1.872; //#10263 + } //#10263 + $k[$j++] = 1.44; //#10263 + var _4p = $a(); //#10263 + $k[$j++] = 'ren'; //#10269 + $k[$j++] = $0.renlinear; //#10269 + $k[$j++] = 'bbs'; //#10269 + $k[$j++] = _4k; //#10269 + $k[$j++] = 'bhs'; //#10269 + $k[$j++] = _4l; //#10269 + $k[$j++] = 'sbs'; //#10269 + $k[$j++] = _4p; //#10269 + $k[$j++] = 'txt'; //#10269 + $k[$j++] = $1.txt; //#10269 + $k[$j++] = 'textxalign'; //#10269 + $k[$j++] = "left"; //#10269 + $k[$j++] = 'textfont'; //#10269 + $k[$j++] = "OCR-B"; //#10269 + $k[$j++] = 'textyoffset'; //#10269 + $k[$j++] = 1; //#10269 + $k[$j++] = 'textxoffset'; //#10269 + $k[$j++] = -0.3; //#10269 + $k[$j++] = 'opt'; //#10269 + $k[$j++] = $1.options; //#10269 + var _4s = $d(); //#10269 + $k[$j++] = _4s; //#10272 + if (!$1.dontdraw) { //#10272 + $0.renlinear(); //#10272 + } //#10272 }; $0.postnet = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.validatecheck = false; - $1.includecheckintext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = .125; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _B = $k[--$j]; - $k[$j++] = $f(_B - 1); - } - var _C = $k[--$j]; - $1[$k[--$j]] = _C; - if ($1.barlen != 5 && $1.barlen != 9 && $1.barlen != 11) { - $k[$j++] = "bwipp.postnetBadLength"; - $k[$j++] = "USPS POSTNET must be 5, 9 or 11 digits excluding check digit"; - $0.raiseerror(); - } - $forall($1.barcode, function() { - var _I = $k[--$j]; - if (_I < 48 || _I > 57) { - $k[$j++] = "bwipp.postnetBadCharacter"; - $k[$j++] = "USPS POSTNET must contain only digits"; - $0.raiseerror(); - } - }); - $1.barchars = "0123456789"; - $1.checksum = 0; - for (var _L = 0, _K = $f($1.barlen - 1); _L <= _K; _L += 1) { - $1.i = _L; - $1.checksum = $f($1.checksum + $f($get($1.barcode, $1.i) - 48)); - } - $1.checksum = $f(10 - $1.checksum % 10) % 10; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.postnetBadCheckDigit"; - $k[$j++] = "Incorrect USPS POSTNET check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - $1.encs = $a([ "55222", "22255", "22525", "22552", "25225", "25252", "25522", "52225", "52252", "52522", "5", "5" ]); - $1.bhs = $a($f($1.barlen * 5 + 7)); - $1.txt = $a($f($1.barlen + 1)); - $1.enc = $get($1.encs, 10); - $1.heights = $a($1.enc.length); - for (var _m = 0, _l = $1.enc.length - 1; _m <= _l; _m += 1) { - $1.j = _m; - $put($1.heights, $1.j, ~~$z($geti($1.enc, $1.j, 1)) * $1.height / 5); - } - $puti($1.bhs, 0, $1.heights); - for (var _x = 0, _w = $f($1.barlen - 1); _x <= _w; _x += 1) { - $1.i = _x; - $1.enc = $get($1.encs, $f($get($1.barcode, $1.i) - 48)); - $1.heights = $a($1.enc.length); - for (var _17 = 0, _16 = $1.enc.length - 1; _17 <= _16; _17 += 1) { - $1.j = _17; - $put($1.heights, $1.j, ~~$z($geti($1.enc, $1.j, 1)) * $1.height / 5); - } - $puti($1.bhs, $1.i * 5 + 1, $1.heights); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), ($1.i * 5 + 1) * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $1.enc = $get($1.encs, $1.checksum); - $1.heights = $a($1.enc.length); - for (var _1Y = 0, _1X = $1.enc.length - 1; _1Y <= _1X; _1Y += 1) { - $1.j = _1Y; - $put($1.heights, $1.j, ~~$z($geti($1.enc, $1.j, 1)) * $1.height / 5); - } - $puti($1.bhs, $f($1.barlen * 5 + 1), $1.heights); - if ($1.includecheckintext) { - $put($1.txt, $1.barlen, $a([ $geti($1.barchars, $1.checksum, 1), $f($1.barlen * 5 + 1) * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $1.barlen, $a([ " ", $f($1.barlen * 5 + 1) * 72 / 25, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $1.enc = $get($1.encs, 11); - $1.heights = $a($1.enc.length); - for (var _26 = 0, _25 = $1.enc.length - 1; _26 <= _25; _26 += 1) { - $1.j = _26; - $put($1.heights, $1.j, ~~$z($geti($1.enc, $1.j, 1)) * $1.height / 5); - } - $puti($1.bhs, $f($1.barlen * 5 + 6), $1.heights); - $k[$j++] = Infinity; - var _2G = $1.bhs; - $k[$j++] = Infinity; - for (var _2I = 0, _2J = $1.bhs.length; _2I < _2J; _2I++) { - $k[$j++] = 0; - } - var _2K = $a(); - $k[$j++] = Infinity; - for (var _2M = 0, _2N = $1.bhs.length - 1; _2M < _2N; _2M++) { - $k[$j++] = 1.44; - $k[$j++] = 1.872; - } - $k[$j++] = 1.44; - var _2O = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "bhs"; - $k[$j++] = _2G; - $k[$j++] = "bbs"; - $k[$j++] = _2K; - $k[$j++] = "sbs"; - $k[$j++] = _2O; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _2S = $d(); - $k[$j++] = _2S; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#10301 + $1.options = $k[--$j]; //#10303 + $1.barcode = $k[--$j]; //#10304 + $1.dontdraw = false; //#10306 + $1.includetext = false; //#10307 + $1.validatecheck = false; //#10308 + $1.includecheckintext = false; //#10309 + $1.textfont = "OCR-B"; //#10310 + $1.textsize = 10; //#10311 + $1.textyoffset = -8; //#10312 + $1.height = 0.125; //#10313 + $forall($1.options, function() { //#10324 + var _3 = $k[--$j]; //#10324 + $1[$k[--$j]] = _3; //#10324 + }); //#10324 + $1.textfont = "" + $1.textfont; //#10326 + $1.textsize = +$1.textsize; //#10327 + $1.textyoffset = +$1.textyoffset; //#10328 + $1.height = +$1.height; //#10329 + $k[$j++] = 'barlen'; //#10331 + $k[$j++] = $1.barcode.length; //#10331 + if ($1.validatecheck) { //#10331 + var _B = $k[--$j]; //#10331 + $k[$j++] = $f(_B - 1); //#10331 + } //#10331 + var _C = $k[--$j]; //#10331 + $1[$k[--$j]] = _C; //#10331 + if ((($1.barlen != 5) && ($1.barlen != 9)) && ($1.barlen != 11)) { //#10336 + $k[$j++] = 'bwipp.postnetBadLength'; //#10335 + $k[$j++] = "USPS POSTNET must be 5, 9 or 11 digits excluding check digit"; //#10335 + $0.raiseerror(); //#10335 + } //#10335 + $forall($1.barcode, function() { //#10341 + var _I = $k[--$j]; //#10338 + if ((_I < 48) || (_I > 57)) { //#10340 + $k[$j++] = 'bwipp.postnetBadCharacter'; //#10339 + $k[$j++] = "USPS POSTNET must contain only digits"; //#10339 + $0.raiseerror(); //#10339 + } //#10339 + }); //#10339 + $1.barchars = "0123456789"; //#10344 + $1.checksum = 0; //#10346 + for (var _L = 0, _K = $f($1.barlen - 1); _L <= _K; _L += 1) { //#10350 + $1.i = _L; //#10348 + $1.checksum = $f($1.checksum + $f($get($1.barcode, $1.i) - 48)); //#10349 + } //#10349 + $1.checksum = ($f(10 - ($1.checksum % 10))) % 10; //#10351 + if ($1.validatecheck) { //#10357 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#10355 + $k[$j++] = 'bwipp.postnetBadCheckDigit'; //#10354 + $k[$j++] = "Incorrect USPS POSTNET check digit provided"; //#10354 + $0.raiseerror(); //#10354 + } //#10354 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#10356 + } //#10356 + $1.encs = $a(["55222", "22255", "22525", "22552", "25225", "25252", "25522", "52225", "52252", "52522", "5", "5"]); //#10364 + $1.bhs = $a($f(($1.barlen * 5) + 7)); //#10366 + $1.txt = $a($f($1.barlen + 1)); //#10367 + $1.enc = $get($1.encs, 10); //#10370 + $1.heights = $a($1.enc.length); //#10371 + for (var _m = 0, _l = $1.enc.length - 1; _m <= _l; _m += 1) { //#10375 + $1.j = _m; //#10373 + $put($1.heights, $1.j, ((~~$z($geti($1.enc, $1.j, 1))) * $1.height) / 5); //#10374 + } //#10374 + $puti($1.bhs, 0, $1.heights); //#10376 + for (var _x = 0, _w = $f($1.barlen - 1); _x <= _w; _x += 1) { //#10388 + $1.i = _x; //#10379 + $1.enc = $get($1.encs, $f($get($1.barcode, $1.i) - 48)); //#10380 + $1.heights = $a($1.enc.length); //#10381 + for (var _17 = 0, _16 = $1.enc.length - 1; _17 <= _16; _17 += 1) { //#10385 + $1.j = _17; //#10383 + $put($1.heights, $1.j, ((~~$z($geti($1.enc, $1.j, 1))) * $1.height) / 5); //#10384 + } //#10384 + $puti($1.bhs, ($1.i * 5) + 1, $1.heights); //#10386 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), (($1.i * 5) + 1) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#10387 + } //#10387 + $1.enc = $get($1.encs, $1.checksum); //#10391 + $1.heights = $a($1.enc.length); //#10392 + for (var _1Y = 0, _1X = $1.enc.length - 1; _1Y <= _1X; _1Y += 1) { //#10396 + $1.j = _1Y; //#10394 + $put($1.heights, $1.j, ((~~$z($geti($1.enc, $1.j, 1))) * $1.height) / 5); //#10395 + } //#10395 + $puti($1.bhs, $f(($1.barlen * 5) + 1), $1.heights); //#10397 + if ($1.includecheckintext) { //#10402 + $put($1.txt, $1.barlen, $a([$geti($1.barchars, $1.checksum, 1), ($f(($1.barlen * 5) + 1)) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#10400 + } else { //#10402 + $put($1.txt, $1.barlen, $a([" ", (($f(($1.barlen * 5) + 1)) * 72) / 25, $1.textyoffset, $1.textfont, $1.textsize])); //#10402 + } //#10402 + $1.enc = $get($1.encs, 11); //#10406 + $1.heights = $a($1.enc.length); //#10407 + for (var _26 = 0, _25 = $1.enc.length - 1; _26 <= _25; _26 += 1) { //#10411 + $1.j = _26; //#10409 + $put($1.heights, $1.j, ((~~$z($geti($1.enc, $1.j, 1))) * $1.height) / 5); //#10410 + } //#10410 + $puti($1.bhs, $f(($1.barlen * 5) + 6), $1.heights); //#10412 + $k[$j++] = Infinity; //#10423 + var _2G = $1.bhs; //#10417 + $k[$j++] = Infinity; //#10418 + for (var _2I = 0, _2J = $1.bhs.length; _2I < _2J; _2I++) { //#10418 + $k[$j++] = 0; //#10418 + } //#10418 + var _2K = $a(); //#10418 + $k[$j++] = Infinity; //#10419 + for (var _2M = 0, _2N = $1.bhs.length - 1; _2M < _2N; _2M++) { //#10419 + $k[$j++] = 1.44; //#10419 + $k[$j++] = 1.872; //#10419 + } //#10419 + $k[$j++] = 1.44; //#10419 + var _2O = $a(); //#10419 + $k[$j++] = 'ren'; //#10422 + $k[$j++] = $0.renlinear; //#10422 + $k[$j++] = 'bhs'; //#10422 + $k[$j++] = _2G; //#10422 + $k[$j++] = 'bbs'; //#10422 + $k[$j++] = _2K; //#10422 + $k[$j++] = 'sbs'; //#10422 + $k[$j++] = _2O; //#10422 + if ($1.includetext) { //#10422 + $k[$j++] = 'txt'; //#10421 + $k[$j++] = $1.txt; //#10421 + } //#10421 + $k[$j++] = 'opt'; //#10423 + $k[$j++] = $1.options; //#10423 + var _2S = $d(); //#10423 + $k[$j++] = _2S; //#10426 + if (!$1.dontdraw) { //#10426 + $0.renlinear(); //#10426 + } //#10426 }; $0.planet = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.validatecheck = false; - $1.includecheckintext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = .125; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _B = $k[--$j]; - $k[$j++] = $f(_B - 1); - } - var _C = $k[--$j]; - $1[$k[--$j]] = _C; - if ($1.barlen != 11 && $1.barlen != 13) { - $k[$j++] = "bwipp.planetBadLength"; - $k[$j++] = "USPS PLANET must be 11 or 13 digits excluding check digit"; - $0.raiseerror(); - } - $forall($1.barcode, function() { - var _H = $k[--$j]; - if (_H < 48 || _H > 57) { - $k[$j++] = "bwipp.planetBadCharacter"; - $k[$j++] = "USPS PLANET must contain only digits"; - $0.raiseerror(); - } - }); - $1.barchars = "0123456789"; - $1.checksum = 0; - for (var _K = 0, _J = $f($1.barlen - 1); _K <= _J; _K += 1) { - $1.i = _K; - $1.checksum = $f($1.checksum + $f($get($1.barcode, $1.i) - 48)); - } - $1.checksum = $f(10 - $1.checksum % 10) % 10; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.planetBadCheckDigit"; - $k[$j++] = "Incorrect USPS PLANET check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - $1.encs = $a([ "22555", "55522", "55252", "55225", "52552", "52525", "52255", "25552", "25525", "25255", "5", "5" ]); - $1.bhs = $a($f($1.barlen * 5 + 7)); - $1.txt = $a($f($1.barlen + 1)); - $1.enc = $get($1.encs, 10); - $1.heights = $a($1.enc.length); - for (var _l = 0, _k = $1.enc.length - 1; _l <= _k; _l += 1) { - $1.j = _l; - $put($1.heights, $1.j, ~~$z($geti($1.enc, $1.j, 1)) * $1.height / 5); - } - $puti($1.bhs, 0, $1.heights); - for (var _w = 0, _v = $f($1.barlen - 1); _w <= _v; _w += 1) { - $1.i = _w; - $1.enc = $get($1.encs, $f($get($1.barcode, $1.i) - 48)); - $1.heights = $a($1.enc.length); - for (var _16 = 0, _15 = $1.enc.length - 1; _16 <= _15; _16 += 1) { - $1.j = _16; - $put($1.heights, $1.j, ~~$z($geti($1.enc, $1.j, 1)) * $1.height / 5); - } - $puti($1.bhs, $1.i * 5 + 1, $1.heights); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), ($1.i * 5 + 1) * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $1.enc = $get($1.encs, $1.checksum); - $1.heights = $a($1.enc.length); - for (var _1X = 0, _1W = $1.enc.length - 1; _1X <= _1W; _1X += 1) { - $1.j = _1X; - $put($1.heights, $1.j, ~~$z($geti($1.enc, $1.j, 1)) * $1.height / 5); - } - $puti($1.bhs, $f($1.barlen * 5 + 1), $1.heights); - if ($1.includecheckintext) { - $put($1.txt, $1.barlen, $a([ $geti($1.barchars, $1.checksum, 1), $f($1.barlen * 5 + 1) * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $1.barlen, $a([ " ", $f($1.barlen * 5 + 1) * 72 / 25, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $1.enc = $get($1.encs, 11); - $1.heights = $a($1.enc.length); - for (var _25 = 0, _24 = $1.enc.length - 1; _25 <= _24; _25 += 1) { - $1.j = _25; - $put($1.heights, $1.j, ~~$z($geti($1.enc, $1.j, 1)) * $1.height / 5); - } - $puti($1.bhs, $f($1.barlen * 5 + 6), $1.heights); - $k[$j++] = Infinity; - var _2F = $1.bhs; - $k[$j++] = Infinity; - for (var _2H = 0, _2I = $1.bhs.length; _2H < _2I; _2H++) { - $k[$j++] = 0; - } - var _2J = $a(); - $k[$j++] = Infinity; - for (var _2L = 0, _2M = $1.bhs.length - 1; _2L < _2M; _2L++) { - $k[$j++] = 1.44; - $k[$j++] = 1.872; - } - $k[$j++] = 1.44; - var _2N = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "bhs"; - $k[$j++] = _2F; - $k[$j++] = "bbs"; - $k[$j++] = _2J; - $k[$j++] = "sbs"; - $k[$j++] = _2N; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _2R = $d(); - $k[$j++] = _2R; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#10455 + $1.options = $k[--$j]; //#10457 + $1.barcode = $k[--$j]; //#10458 + $1.dontdraw = false; //#10460 + $1.includetext = false; //#10461 + $1.validatecheck = false; //#10462 + $1.includecheckintext = false; //#10463 + $1.textfont = "OCR-B"; //#10464 + $1.textsize = 10; //#10465 + $1.textyoffset = -8; //#10466 + $1.height = 0.125; //#10467 + $forall($1.options, function() { //#10478 + var _3 = $k[--$j]; //#10478 + $1[$k[--$j]] = _3; //#10478 + }); //#10478 + $1.textfont = "" + $1.textfont; //#10480 + $1.textsize = +$1.textsize; //#10481 + $1.textyoffset = +$1.textyoffset; //#10482 + $1.height = +$1.height; //#10483 + $k[$j++] = 'barlen'; //#10485 + $k[$j++] = $1.barcode.length; //#10485 + if ($1.validatecheck) { //#10485 + var _B = $k[--$j]; //#10485 + $k[$j++] = $f(_B - 1); //#10485 + } //#10485 + var _C = $k[--$j]; //#10485 + $1[$k[--$j]] = _C; //#10485 + if (($1.barlen != 11) && ($1.barlen != 13)) { //#10490 + $k[$j++] = 'bwipp.planetBadLength'; //#10489 + $k[$j++] = "USPS PLANET must be 11 or 13 digits excluding check digit"; //#10489 + $0.raiseerror(); //#10489 + } //#10489 + $forall($1.barcode, function() { //#10495 + var _H = $k[--$j]; //#10492 + if ((_H < 48) || (_H > 57)) { //#10494 + $k[$j++] = 'bwipp.planetBadCharacter'; //#10493 + $k[$j++] = "USPS PLANET must contain only digits"; //#10493 + $0.raiseerror(); //#10493 + } //#10493 + }); //#10493 + $1.barchars = "0123456789"; //#10498 + $1.checksum = 0; //#10501 + for (var _K = 0, _J = $f($1.barlen - 1); _K <= _J; _K += 1) { //#10505 + $1.i = _K; //#10503 + $1.checksum = $f($1.checksum + $f($get($1.barcode, $1.i) - 48)); //#10504 + } //#10504 + $1.checksum = ($f(10 - ($1.checksum % 10))) % 10; //#10506 + if ($1.validatecheck) { //#10512 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#10510 + $k[$j++] = 'bwipp.planetBadCheckDigit'; //#10509 + $k[$j++] = "Incorrect USPS PLANET check digit provided"; //#10509 + $0.raiseerror(); //#10509 + } //#10509 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#10511 + } //#10511 + $1.encs = $a(["22555", "55522", "55252", "55225", "52552", "52525", "52255", "25552", "25525", "25255", "5", "5"]); //#10519 + $1.bhs = $a($f(($1.barlen * 5) + 7)); //#10521 + $1.txt = $a($f($1.barlen + 1)); //#10522 + $1.enc = $get($1.encs, 10); //#10525 + $1.heights = $a($1.enc.length); //#10526 + for (var _l = 0, _k = $1.enc.length - 1; _l <= _k; _l += 1) { //#10530 + $1.j = _l; //#10528 + $put($1.heights, $1.j, ((~~$z($geti($1.enc, $1.j, 1))) * $1.height) / 5); //#10529 + } //#10529 + $puti($1.bhs, 0, $1.heights); //#10531 + for (var _w = 0, _v = $f($1.barlen - 1); _w <= _v; _w += 1) { //#10543 + $1.i = _w; //#10534 + $1.enc = $get($1.encs, $f($get($1.barcode, $1.i) - 48)); //#10535 + $1.heights = $a($1.enc.length); //#10536 + for (var _16 = 0, _15 = $1.enc.length - 1; _16 <= _15; _16 += 1) { //#10540 + $1.j = _16; //#10538 + $put($1.heights, $1.j, ((~~$z($geti($1.enc, $1.j, 1))) * $1.height) / 5); //#10539 + } //#10539 + $puti($1.bhs, ($1.i * 5) + 1, $1.heights); //#10541 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), (($1.i * 5) + 1) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#10542 + } //#10542 + $1.enc = $get($1.encs, $1.checksum); //#10546 + $1.heights = $a($1.enc.length); //#10547 + for (var _1X = 0, _1W = $1.enc.length - 1; _1X <= _1W; _1X += 1) { //#10551 + $1.j = _1X; //#10549 + $put($1.heights, $1.j, ((~~$z($geti($1.enc, $1.j, 1))) * $1.height) / 5); //#10550 + } //#10550 + $puti($1.bhs, $f(($1.barlen * 5) + 1), $1.heights); //#10552 + if ($1.includecheckintext) { //#10557 + $put($1.txt, $1.barlen, $a([$geti($1.barchars, $1.checksum, 1), ($f(($1.barlen * 5) + 1)) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#10555 + } else { //#10557 + $put($1.txt, $1.barlen, $a([" ", (($f(($1.barlen * 5) + 1)) * 72) / 25, $1.textyoffset, $1.textfont, $1.textsize])); //#10557 + } //#10557 + $1.enc = $get($1.encs, 11); //#10561 + $1.heights = $a($1.enc.length); //#10562 + for (var _25 = 0, _24 = $1.enc.length - 1; _25 <= _24; _25 += 1) { //#10566 + $1.j = _25; //#10564 + $put($1.heights, $1.j, ((~~$z($geti($1.enc, $1.j, 1))) * $1.height) / 5); //#10565 + } //#10565 + $puti($1.bhs, $f(($1.barlen * 5) + 6), $1.heights); //#10567 + $k[$j++] = Infinity; //#10578 + var _2F = $1.bhs; //#10572 + $k[$j++] = Infinity; //#10573 + for (var _2H = 0, _2I = $1.bhs.length; _2H < _2I; _2H++) { //#10573 + $k[$j++] = 0; //#10573 + } //#10573 + var _2J = $a(); //#10573 + $k[$j++] = Infinity; //#10574 + for (var _2L = 0, _2M = $1.bhs.length - 1; _2L < _2M; _2L++) { //#10574 + $k[$j++] = 1.44; //#10574 + $k[$j++] = 1.872; //#10574 + } //#10574 + $k[$j++] = 1.44; //#10574 + var _2N = $a(); //#10574 + $k[$j++] = 'ren'; //#10577 + $k[$j++] = $0.renlinear; //#10577 + $k[$j++] = 'bhs'; //#10577 + $k[$j++] = _2F; //#10577 + $k[$j++] = 'bbs'; //#10577 + $k[$j++] = _2J; //#10577 + $k[$j++] = 'sbs'; //#10577 + $k[$j++] = _2N; //#10577 + if ($1.includetext) { //#10577 + $k[$j++] = 'txt'; //#10576 + $k[$j++] = $1.txt; //#10576 + } //#10576 + $k[$j++] = 'opt'; //#10578 + $k[$j++] = $1.options; //#10578 + var _2R = $d(); //#10578 + $k[$j++] = _2R; //#10581 + if (!$1.dontdraw) { //#10581 + $0.renlinear(); //#10581 + } //#10581 }; $0.royalmail = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.validatecheck = false; - $1.includecheckintext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = .175; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.barchars = "ZUVWXY501234B6789AHCDEFGNIJKLMTOPQRS"; - $1.charvals = new Map(); - for (var _9 = 0; _9 <= 35; _9 += 1) { - $put($1.charvals, $geti($1.barchars, _9, 1), _9); - } - for (var _F = 0, _E = $1.barcode.length - 1; _F <= _E; _F += 1) { - var _J = $get($1.charvals, $geti($1.barcode, _F, 1)) !== undefined; - if (!_J) { - $k[$j++] = "bwipp.royalmailBadCharacter"; - $k[$j++] = "RM4SCC must contain only capital letters and digits"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _M = $k[--$j]; - $k[$j++] = $f(_M - 1); - } - var _N = $k[--$j]; - $1[$k[--$j]] = _N; - $1.checksumrow = 0; - $1.checksumcol = 0; - for (var _R = 0, _Q = $f($1.barlen - 1); _R <= _Q; _R += 1) { - $1.i = _R; - $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); - $1.checksumrow = $1.checksumrow + ~~($1.indx / 6); - $1.checksumcol = $f($1.checksumcol + $1.indx % 6); - } - $1.checksum = $f($1.checksumrow % 6 * 6 + $1.checksumcol % 6); - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.royalmailBadCheckDigit"; - $k[$j++] = "Incorrect RM4SCC check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - $1.encs = $a([ "3300", "2211", "2301", "2310", "3201", "3210", "1122", "0033", "0123", "0132", "1023", "1032", "1302", "0213", "0303", "0312", "1203", "1212", "1320", "0231", "0321", "0330", "1221", "1230", "3102", "2013", "2103", "2112", "3003", "3012", "3120", "2031", "2121", "2130", "3021", "3030", "2", "3" ]); - $1.encstr = $s($f($1.barlen * 4 + 6)); - $1.txt = $a($f($1.barlen + 1)); - $puti($1.encstr, 0, $get($1.encs, 36)); - for (var _x = 0, _w = $f($1.barlen - 1); _x <= _w; _x += 1) { - $1.i = _x; - $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); - $puti($1.encstr, $1.i * 4 + 1, $get($1.encs, $1.indx)); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), ($1.i * 4 + 1) * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $puti($1.encstr, $f($1.barlen * 4 + 1), $get($1.encs, $1.checksum)); - if ($1.includecheckintext) { - $put($1.txt, $1.barlen, $a([ $geti($1.barchars, $1.checksum, 1), $f($1.barlen * 4 + 1) * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $1.barlen, $a([ " ", $f($1.barlen * 4 + 1) * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $puti($1.encstr, $f($1.barlen * 4 + 5), $get($1.encs, 37)); - $1.bbs = $a($1.encstr.length); - $1.bhs = $a($1.encstr.length); - for (var _1p = 0, _1o = $1.encstr.length - 1; _1p <= _1o; _1p += 1) { - $1.i = _1p; - $1.enc = $geti($1.encstr, $1.i, 1); - if ($eq($1.enc, "0")) { - $put($1.bbs, $1.i, 3 * $1.height / 8); - $put($1.bhs, $1.i, 2 * $1.height / 8); - } - if ($eq($1.enc, "1")) { - $put($1.bbs, $1.i, 0 * $1.height / 8); - $put($1.bhs, $1.i, 5 * $1.height / 8); - } - if ($eq($1.enc, "2")) { - $put($1.bbs, $1.i, 3 * $1.height / 8); - $put($1.bhs, $1.i, 5 * $1.height / 8); - } - if ($eq($1.enc, "3")) { - $put($1.bbs, $1.i, 0 * $1.height / 8); - $put($1.bhs, $1.i, 8 * $1.height / 8); - } - } - $k[$j++] = Infinity; - var _2L = $1.bbs; - var _2M = $1.bhs; - $k[$j++] = Infinity; - for (var _2O = 0, _2P = $1.bhs.length - 1; _2O < _2P; _2O++) { - $k[$j++] = 1.44; - $k[$j++] = 1.872; - } - $k[$j++] = 1.44; - var _2Q = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "bbs"; - $k[$j++] = _2L; - $k[$j++] = "bhs"; - $k[$j++] = _2M; - $k[$j++] = "sbs"; - $k[$j++] = _2Q; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _2U = $d(); - $k[$j++] = _2U; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#10610 + $1.options = $k[--$j]; //#10612 + $1.barcode = $k[--$j]; //#10613 + $1.dontdraw = false; //#10615 + $1.includetext = false; //#10616 + $1.validatecheck = false; //#10617 + $1.includecheckintext = false; //#10618 + $1.textfont = "OCR-B"; //#10619 + $1.textsize = 10; //#10620 + $1.textyoffset = -8; //#10621 + $1.height = 0.175; //#10622 + $forall($1.options, function() { //#10633 + var _3 = $k[--$j]; //#10633 + $1[$k[--$j]] = _3; //#10633 + }); //#10633 + $1.textfont = "" + $1.textfont; //#10635 + $1.textsize = +$1.textsize; //#10636 + $1.textyoffset = +$1.textyoffset; //#10637 + $1.height = +$1.height; //#10638 + $1.barchars = "ZUVWXY501234B6789AHCDEFGNIJKLMTOPQRS"; //#10641 + $1.charvals = new Map; //#10642 + for (var _9 = 0; _9 <= 35; _9 += 1) { //#10643 + $put($1.charvals, $geti($1.barchars, _9, 1), _9); //#10643 + } //#10643 + for (var _F = 0, _E = $1.barcode.length - 1; _F <= _E; _F += 1) { //#10650 + var _J = $get($1.charvals, $geti($1.barcode, _F, 1)) !== undefined; //#10647 + if (!_J) { //#10649 + $k[$j++] = 'bwipp.royalmailBadCharacter'; //#10648 + $k[$j++] = "RM4SCC must contain only capital letters and digits"; //#10648 + $0.raiseerror(); //#10648 + } //#10648 + } //#10648 + $k[$j++] = 'barlen'; //#10652 + $k[$j++] = $1.barcode.length; //#10652 + if ($1.validatecheck) { //#10652 + var _M = $k[--$j]; //#10652 + $k[$j++] = $f(_M - 1); //#10652 + } //#10652 + var _N = $k[--$j]; //#10652 + $1[$k[--$j]] = _N; //#10652 + $1.checksumrow = 0; //#10654 + $1.checksumcol = 0; //#10655 + for (var _R = 0, _Q = $f($1.barlen - 1); _R <= _Q; _R += 1) { //#10661 + $1.i = _R; //#10657 + $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); //#10658 + $1.checksumrow = $1.checksumrow + (~~($1.indx / 6)); //#10659 + $1.checksumcol = $f($1.checksumcol + ($1.indx % 6)); //#10660 + } //#10660 + $1.checksum = $f((($1.checksumrow % 6) * 6) + ($1.checksumcol % 6)); //#10662 + if ($1.validatecheck) { //#10668 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#10666 + $k[$j++] = 'bwipp.royalmailBadCheckDigit'; //#10665 + $k[$j++] = "Incorrect RM4SCC check digit provided"; //#10665 + $0.raiseerror(); //#10665 + } //#10665 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#10667 + } //#10667 + $1.encs = $a(["3300", "2211", "2301", "2310", "3201", "3210", "1122", "0033", "0123", "0132", "1023", "1032", "1302", "0213", "0303", "0312", "1203", "1212", "1320", "0231", "0321", "0330", "1221", "1230", "3102", "2013", "2103", "2112", "3003", "3012", "3120", "2031", "2121", "2130", "3021", "3030", "2", "3"]); //#10679 + $1.encstr = $s($f(($1.barlen * 4) + 6)); //#10681 + $1.txt = $a($f($1.barlen + 1)); //#10682 + $puti($1.encstr, 0, $get($1.encs, 36)); //#10685 + for (var _x = 0, _w = $f($1.barlen - 1); _x <= _w; _x += 1) { //#10692 + $1.i = _x; //#10688 + $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); //#10689 + $puti($1.encstr, ($1.i * 4) + 1, $get($1.encs, $1.indx)); //#10690 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), (($1.i * 4) + 1) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#10691 + } //#10691 + $puti($1.encstr, $f(($1.barlen * 4) + 1), $get($1.encs, $1.checksum)); //#10695 + if ($1.includecheckintext) { //#10699 + $put($1.txt, $1.barlen, $a([$geti($1.barchars, $1.checksum, 1), ($f(($1.barlen * 4) + 1)) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#10697 + } else { //#10699 + $put($1.txt, $1.barlen, $a([" ", ($f(($1.barlen * 4) + 1)) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#10699 + } //#10699 + $puti($1.encstr, $f(($1.barlen * 4) + 5), $get($1.encs, 37)); //#10703 + $1.bbs = $a($1.encstr.length); //#10705 + $1.bhs = $a($1.encstr.length); //#10706 + for (var _1p = 0, _1o = $1.encstr.length - 1; _1p <= _1o; _1p += 1) { //#10726 + $1.i = _1p; //#10708 + $1.enc = $geti($1.encstr, $1.i, 1); //#10709 + if ($eq($1.enc, "0")) { //#10713 + $put($1.bbs, $1.i, (3 * $1.height) / 8); //#10711 + $put($1.bhs, $1.i, (2 * $1.height) / 8); //#10712 + } //#10712 + if ($eq($1.enc, "1")) { //#10717 + $put($1.bbs, $1.i, (0 * $1.height) / 8); //#10715 + $put($1.bhs, $1.i, (5 * $1.height) / 8); //#10716 + } //#10716 + if ($eq($1.enc, "2")) { //#10721 + $put($1.bbs, $1.i, (3 * $1.height) / 8); //#10719 + $put($1.bhs, $1.i, (5 * $1.height) / 8); //#10720 + } //#10720 + if ($eq($1.enc, "3")) { //#10725 + $put($1.bbs, $1.i, (0 * $1.height) / 8); //#10723 + $put($1.bhs, $1.i, (8 * $1.height) / 8); //#10724 + } //#10724 + } //#10724 + $k[$j++] = Infinity; //#10737 + var _2L = $1.bbs; //#10731 + var _2M = $1.bhs; //#10732 + $k[$j++] = Infinity; //#10733 + for (var _2O = 0, _2P = $1.bhs.length - 1; _2O < _2P; _2O++) { //#10733 + $k[$j++] = 1.44; //#10733 + $k[$j++] = 1.872; //#10733 + } //#10733 + $k[$j++] = 1.44; //#10733 + var _2Q = $a(); //#10733 + $k[$j++] = 'ren'; //#10736 + $k[$j++] = $0.renlinear; //#10736 + $k[$j++] = 'bbs'; //#10736 + $k[$j++] = _2L; //#10736 + $k[$j++] = 'bhs'; //#10736 + $k[$j++] = _2M; //#10736 + $k[$j++] = 'sbs'; //#10736 + $k[$j++] = _2Q; //#10736 + if ($1.includetext) { //#10736 + $k[$j++] = 'txt'; //#10735 + $k[$j++] = $1.txt; //#10735 + } //#10735 + $k[$j++] = 'opt'; //#10737 + $k[$j++] = $1.options; //#10737 + var _2U = $d(); //#10737 + $k[$j++] = _2U; //#10740 + if (!$1.dontdraw) { //#10740 + $0.renlinear(); //#10740 + } //#10740 }; $0.auspost = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = .175; - $1.custinfoenc = "character"; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.encs = $a([ "000", "001", "002", "010", "011", "012", "020", "021", "022", "100", "101", "102", "110", "111", "112", "120", "121", "122", "200", "201", "202", "210", "211", "212", "220", "221", "222", "300", "301", "302", "310", "311", "312", "320", "321", "322", "023", "030", "031", "032", "033", "103", "113", "123", "130", "131", "132", "133", "203", "213", "223", "230", "231", "232", "233", "303", "313", "323", "330", "331", "332", "333", "003", "013", "00", "01", "02", "10", "11", "12", "20", "21", "22", "30", "13", "3" ]); - $1.barchars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz #"; - $1.barlen = $1.barcode.length; - if ($eq($geti($1.barcode, 0, 2), "11")) { - $k[$j++] = 37; - } - if ($eq($geti($1.barcode, 0, 2), "45")) { - $k[$j++] = 37; - } - if ($eq($geti($1.barcode, 0, 2), "59")) { - $k[$j++] = 52; - } - if ($eq($geti($1.barcode, 0, 2), "62")) { - $k[$j++] = 67; - } - $1.encstr = $s($k[--$j]); - $1.txt = $a($1.barlen - 2); - $puti($1.encstr, 0, $get($1.encs, 74)); - for (var _Q = 0; _Q <= 1; _Q += 1) { - $1.i = _Q; - $puti($1.encstr, $1.i * 2 + 2, $get($1.encs, ~~$z($geti($1.barcode, $1.i, 1)) + 64)); - } - for (var _Y = 2; _Y <= 9; _Y += 1) { - $1.i = _Y; - $puti($1.encstr, $1.i * 2 + 2, $get($1.encs, ~~$z($geti($1.barcode, $1.i, 1)) + 64)); - $put($1.txt, $1.i - 2, $a([ $geti($1.barcode, $1.i, 1), (($1.i - 2) * 2 + 6) * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - } - if ($eq($1.custinfoenc, "numeric")) { - for (var _t = 0, _s = $1.barlen - 11; _t <= _s; _t += 1) { - $1.i = _t; - $puti($1.encstr, $1.i * 2 + 22, $get($1.encs, ~~$z($geti($1.barcode, $1.i + 10, 1)) + 64)); - $put($1.txt, $1.i + 8, $a([ $geti($1.barcode, $1.i + 10, 1), ($1.i * 2 + 22) * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $1.ciflen = ($1.barlen - 10) * 2; - } else { - for (var _1E = 0, _1D = $1.barlen - 11; _1E <= _1D; _1E += 1) { - $1.i = _1E; - $search($1.barchars, $geti($1.barcode, $1.i + 10, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - $puti($1.encstr, $1.i * 3 + 22, $1.enc); - $put($1.txt, $1.i + 8, $a([ $geti($1.barcode, $1.i + 10, 1), ($1.i * 3 + 22) * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $1.ciflen = ($1.barlen - 10) * 3; - } - for (var _1e = 22 + $1.ciflen, _1d = $1.encstr.length - 14; _1e <= _1d; _1e += 1) { - $puti($1.encstr, _1e, $get($1.encs, 75)); - } - $1.rstable = $a(64 * 64); - $k[$j++] = $1.rstable; - $k[$j++] = 0; - $k[$j++] = Infinity; - for (var _1k = 0, _1l = 64; _1k < _1l; _1k++) { - $k[$j++] = 0; - } - var _1m = $a(); - var _1n = $k[--$j]; - $puti($k[--$j], _1n, _1m); - $k[$j++] = $1.rstable; - $k[$j++] = 64; - $k[$j++] = Infinity; - for (var _1q = 0; _1q <= 63; _1q += 1) { - $k[$j++] = _1q; - } - var _1r = $a(); - var _1s = $k[--$j]; - $puti($k[--$j], _1s, _1r); - $1.prev = 1; - for (var _1u = 0, _1v = 64; _1u < _1v; _1u++) { - $1.next = $1.prev << 1; - if (($1.next & 64) != 0) { - $1.next = $1.next ^ 67; - } - for (var _1z = 0; _1z <= 63; _1z += 1) { - $1.j = _1z; + var $1 = {}; //#10769 + $1.options = $k[--$j]; //#10771 + $1.barcode = $k[--$j]; //#10772 + $1.dontdraw = false; //#10774 + $1.includetext = false; //#10775 + $1.textfont = "OCR-B"; //#10776 + $1.textsize = 10; //#10777 + $1.textyoffset = -8; //#10778 + $1.height = 0.175; //#10779 + $1.custinfoenc = "character"; //#10780 + $forall($1.options, function() { //#10791 + var _3 = $k[--$j]; //#10791 + $1[$k[--$j]] = _3; //#10791 + }); //#10791 + $1.textfont = "" + $1.textfont; //#10793 + $1.textsize = +$1.textsize; //#10794 + $1.textyoffset = +$1.textyoffset; //#10795 + $1.height = +$1.height; //#10796 + $1.encs = $a(["000", "001", "002", "010", "011", "012", "020", "021", "022", "100", "101", "102", "110", "111", "112", "120", "121", "122", "200", "201", "202", "210", "211", "212", "220", "221", "222", "300", "301", "302", "310", "311", "312", "320", "321", "322", "023", "030", "031", "032", "033", "103", "113", "123", "130", "131", "132", "133", "203", "213", "223", "230", "231", "232", "233", "303", "313", "323", "330", "331", "332", "333", "003", "013", "00", "01", "02", "10", "11", "12", "20", "21", "22", "30", "13", "3"]); //#10810 + $1.barchars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz #"; //#10813 + $1.barlen = $1.barcode.length; //#10815 + if ($eq($geti($1.barcode, 0, 2), "11")) { //#10816 + $k[$j++] = 37; //#10816 + } //#10816 + if ($eq($geti($1.barcode, 0, 2), "45")) { //#10817 + $k[$j++] = 37; //#10817 + } //#10817 + if ($eq($geti($1.barcode, 0, 2), "59")) { //#10818 + $k[$j++] = 52; //#10818 + } //#10818 + if ($eq($geti($1.barcode, 0, 2), "62")) { //#10819 + $k[$j++] = 67; //#10819 + } //#10819 + $1.encstr = $s($k[--$j]); //#10820 + $1.txt = $a($1.barlen - 2); //#10821 + $puti($1.encstr, 0, $get($1.encs, 74)); //#10824 + for (var _Q = 0; _Q <= 1; _Q += 1) { //#10831 + $1.i = _Q; //#10828 + $puti($1.encstr, ($1.i * 2) + 2, $get($1.encs, (~~$z($geti($1.barcode, $1.i, 1))) + 64)); //#10830 + } //#10830 + for (var _Y = 2; _Y <= 9; _Y += 1) { //#10839 + $1.i = _Y; //#10835 + $puti($1.encstr, ($1.i * 2) + 2, $get($1.encs, (~~$z($geti($1.barcode, $1.i, 1))) + 64)); //#10837 + $put($1.txt, $1.i - 2, $a([$geti($1.barcode, $1.i, 1), ((($1.i - 2) * 2) + 6) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#10838 + } //#10838 + if ($eq($1.custinfoenc, "numeric")) { //#10861 + for (var _t = 0, _s = $1.barlen - 11; _t <= _s; _t += 1) { //#10848 + $1.i = _t; //#10844 + $puti($1.encstr, ($1.i * 2) + 22, $get($1.encs, (~~$z($geti($1.barcode, $1.i + 10, 1))) + 64)); //#10846 + $put($1.txt, $1.i + 8, $a([$geti($1.barcode, $1.i + 10, 1), (($1.i * 2) + 22) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#10847 + } //#10847 + $1.ciflen = ($1.barlen - 10) * 2; //#10849 + } else { //#10861 + for (var _1E = 0, _1D = $1.barlen - 11; _1E <= _1D; _1E += 1) { //#10860 + $1.i = _1E; //#10852 + $search($1.barchars, $geti($1.barcode, $1.i + 10, 1)); //#10853 + $j--; //#10854 + $1.indx = $k[--$j].length; //#10855 + $j -= 2; //#10856 + $1.enc = $get($1.encs, $1.indx); //#10857 + $puti($1.encstr, ($1.i * 3) + 22, $1.enc); //#10858 + $put($1.txt, $1.i + 8, $a([$geti($1.barcode, $1.i + 10, 1), (($1.i * 3) + 22) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#10859 + } //#10859 + $1.ciflen = ($1.barlen - 10) * 3; //#10861 + } //#10861 + for (var _1e = 22 + $1.ciflen, _1d = $1.encstr.length - 14; _1e <= _1d; _1e += 1) { //#10867 + $puti($1.encstr, _1e, $get($1.encs, 75)); //#10866 + } //#10866 + $1.rstable = $a(64 * 64); //#10870 + $k[$j++] = $1.rstable; //#10871 + $k[$j++] = 0; //#10871 + $k[$j++] = Infinity; //#10871 + for (var _1k = 0, _1l = 64; _1k < _1l; _1k++) { //#10871 + $k[$j++] = 0; //#10871 + } //#10871 + var _1m = $a(); //#10871 + var _1n = $k[--$j]; //#10871 + $puti($k[--$j], _1n, _1m); //#10871 + $k[$j++] = $1.rstable; //#10872 + $k[$j++] = 64; //#10872 + $k[$j++] = Infinity; //#10872 + for (var _1q = 0; _1q <= 63; _1q += 1) { //#10872 + $k[$j++] = _1q; //#10872 + } //#10872 + var _1r = $a(); //#10872 + var _1s = $k[--$j]; //#10872 + $puti($k[--$j], _1s, _1r); //#10872 + $1.prev = 1; //#10873 + for (var _1u = 0, _1v = 64; _1u < _1v; _1u++) { //#10888 + $1.next = $1.prev << 1; //#10875 + if (($1.next & 64) != 0) { //#10878 + $1.next = $1.next ^ 67; //#10877 + } //#10877 + for (var _1z = 0; _1z <= 63; _1z += 1) { //#10886 + $1.j = _1z; //#10880 $1.nextcell = function() { - $k[$j++] = $1.rstable; - $k[$j++] = 64 * $1.next + $1.j; - }; - $1.nextcell(); - var _27 = $k[--$j]; - $put($k[--$j], _27, $get($1.rstable, 64 * $1.prev + $1.j) << 1); - $1.nextcell(); - var _29 = $k[--$j]; - if (($get($k[--$j], _29) & 64) != 0) { - $1.nextcell(); - $1.nextcell(); - var _2C = $k[--$j]; - var _2E = $get($k[--$j], _2C); - var _2F = $k[--$j]; - $put($k[--$j], _2F, _2E ^ 67); - } - } - $1.prev = $1.next; - } - $1.rscodes = $a(~~(($1.encstr.length - 16) / 3) + 4); - $k[$j++] = $1.rscodes; - $k[$j++] = 0; - $k[$j++] = Infinity; - for (var _2L = 0, _2M = 4; _2L < _2M; _2L++) { - $k[$j++] = 0; - } - var _2N = $a(); - var _2O = $k[--$j]; - $puti($k[--$j], _2O, _2N); - for (var _2S = 2, _2R = $1.encstr.length - 16; _2S <= _2R; _2S += 3) { - $1.i = _2S; - $put($1.rscodes, $1.rscodes.length - ~~(($1.i - 2) / 3) - 1, ~~$z($geti($1.encstr, $1.i, 1)) * 16 + ~~$z($geti($1.encstr, $1.i + 1, 1)) * 4 + ~~$z($geti($1.encstr, $1.i + 2, 1))); - } - for (var _2g = $1.rscodes.length - 5; _2g >= 0; _2g -= 1) { - $1.i = _2g; - for (var _2h = 0; _2h <= 4; _2h += 1) { - $1.j = _2h; - $put($1.rscodes, $1.i + $1.j, $xo($get($1.rscodes, $1.i + $1.j), $get($1.rstable, $f(64 * $get($a([ 48, 17, 29, 30, 1 ]), $1.j) + $get($1.rscodes, $1.i + 4))))); - } - } - $1.checkcode = $strcpy($s(12), "000000000000"); - for (var _2z = 0; _2z <= 3; _2z += 1) { - $1.i = _2z; - $1.enc = $cvrs($s(3), $get($1.rscodes, 3 - $1.i), 4); - $puti($1.checkcode, $1.i * 3 + (3 - $1.enc.length), $1.enc); - } - $puti($1.encstr, $1.encstr.length - 14, $1.checkcode); - $puti($1.encstr, $1.encstr.length - 2, $get($1.encs, 74)); - $1.bbs = $a($1.encstr.length); - $1.bhs = $a($1.encstr.length); - for (var _3M = 0, _3L = $1.encstr.length - 1; _3M <= _3L; _3M += 1) { - $1.i = _3M; - $1.enc = $geti($1.encstr, $1.i, 1); - if ($eq($1.enc, "0")) { - $put($1.bbs, $1.i, 0 * $1.height / 8); - $put($1.bhs, $1.i, 8 * $1.height / 8); - } - if ($eq($1.enc, "1")) { - $put($1.bbs, $1.i, 3 * $1.height / 8); - $put($1.bhs, $1.i, 5 * $1.height / 8); - } - if ($eq($1.enc, "2")) { - $put($1.bbs, $1.i, 0 * $1.height / 8); - $put($1.bhs, $1.i, 5 * $1.height / 8); - } - if ($eq($1.enc, "3")) { - $put($1.bbs, $1.i, 3 * $1.height / 8); - $put($1.bhs, $1.i, 2 * $1.height / 8); - } - } - $k[$j++] = Infinity; - var _3s = $1.bbs; - var _3t = $1.bhs; - $k[$j++] = Infinity; - for (var _3v = 0, _3w = $1.bhs.length - 1; _3v < _3w; _3v++) { - $k[$j++] = 1.44; - $k[$j++] = 1.872; - } - $k[$j++] = 1.44; - var _3x = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "bbs"; - $k[$j++] = _3s; - $k[$j++] = "bhs"; - $k[$j++] = _3t; - $k[$j++] = "sbs"; - $k[$j++] = _3x; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _41 = $d(); - $k[$j++] = _41; - if (!$1.dontdraw) { - $0.renlinear(); - } + $k[$j++] = $1.rstable; //#10881 + $k[$j++] = (64 * $1.next) + $1.j; //#10881 + }; //#10881 + $1.nextcell(); //#10882 + var _27 = $k[--$j]; //#10882 + $put($k[--$j], _27, $get($1.rstable, (64 * $1.prev) + $1.j) << 1); //#10882 + $1.nextcell(); //#10883 + var _29 = $k[--$j]; //#10883 + if (($get($k[--$j], _29) & 64) != 0) { //#10885 + $1.nextcell(); //#10884 + $1.nextcell(); //#10884 + var _2C = $k[--$j]; //#10884 + var _2E = $get($k[--$j], _2C); //#10884 + var _2F = $k[--$j]; //#10884 + $put($k[--$j], _2F, _2E ^ 67); //#10884 + } //#10884 + } //#10884 + $1.prev = $1.next; //#10887 + } //#10887 + $1.rscodes = $a((~~(($1.encstr.length - 16) / 3)) + 4); //#10891 + $k[$j++] = $1.rscodes; //#10892 + $k[$j++] = 0; //#10892 + $k[$j++] = Infinity; //#10892 + for (var _2L = 0, _2M = 4; _2L < _2M; _2L++) { //#10892 + $k[$j++] = 0; //#10892 + } //#10892 + var _2N = $a(); //#10892 + var _2O = $k[--$j]; //#10892 + $puti($k[--$j], _2O, _2N); //#10892 + for (var _2S = 2, _2R = $1.encstr.length - 16; _2S <= _2R; _2S += 3) { //#10900 + $1.i = _2S; //#10894 + $put($1.rscodes, ($1.rscodes.length - (~~(($1.i - 2) / 3))) - 1, (((~~$z($geti($1.encstr, $1.i, 1))) * 16) + ((~~$z($geti($1.encstr, $1.i + 1, 1))) * 4)) + (~~$z($geti($1.encstr, $1.i + 2, 1)))); //#10899 + } //#10899 + for (var _2g = $1.rscodes.length - 5; _2g >= 0; _2g -= 1) { //#10909 + $1.i = _2g; //#10902 + for (var _2h = 0; _2h <= 4; _2h += 1) { //#10908 + $1.j = _2h; //#10904 + $put($1.rscodes, $1.i + $1.j, $xo($get($1.rscodes, $1.i + $1.j), $get($1.rstable, $f((64 * $get($a([48, 17, 29, 30, 1]), $1.j)) + $get($1.rscodes, $1.i + 4))))); //#10907 + } //#10907 + } //#10907 + $1.checkcode = $strcpy($s(12), "000000000000"); //#10910 + for (var _2z = 0; _2z <= 3; _2z += 1) { //#10915 + $1.i = _2z; //#10912 + $1.enc = $cvrs($s(3), $get($1.rscodes, 3 - $1.i), 4); //#10913 + $puti($1.checkcode, ($1.i * 3) + (3 - $1.enc.length), $1.enc); //#10914 + } //#10914 + $puti($1.encstr, $1.encstr.length - 14, $1.checkcode); //#10918 + $puti($1.encstr, $1.encstr.length - 2, $get($1.encs, 74)); //#10919 + $1.bbs = $a($1.encstr.length); //#10921 + $1.bhs = $a($1.encstr.length); //#10922 + for (var _3M = 0, _3L = $1.encstr.length - 1; _3M <= _3L; _3M += 1) { //#10942 + $1.i = _3M; //#10924 + $1.enc = $geti($1.encstr, $1.i, 1); //#10925 + if ($eq($1.enc, "0")) { //#10929 + $put($1.bbs, $1.i, (0 * $1.height) / 8); //#10927 + $put($1.bhs, $1.i, (8 * $1.height) / 8); //#10928 + } //#10928 + if ($eq($1.enc, "1")) { //#10933 + $put($1.bbs, $1.i, (3 * $1.height) / 8); //#10931 + $put($1.bhs, $1.i, (5 * $1.height) / 8); //#10932 + } //#10932 + if ($eq($1.enc, "2")) { //#10937 + $put($1.bbs, $1.i, (0 * $1.height) / 8); //#10935 + $put($1.bhs, $1.i, (5 * $1.height) / 8); //#10936 + } //#10936 + if ($eq($1.enc, "3")) { //#10941 + $put($1.bbs, $1.i, (3 * $1.height) / 8); //#10939 + $put($1.bhs, $1.i, (2 * $1.height) / 8); //#10940 + } //#10940 + } //#10940 + $k[$j++] = Infinity; //#10953 + var _3s = $1.bbs; //#10947 + var _3t = $1.bhs; //#10948 + $k[$j++] = Infinity; //#10949 + for (var _3v = 0, _3w = $1.bhs.length - 1; _3v < _3w; _3v++) { //#10949 + $k[$j++] = 1.44; //#10949 + $k[$j++] = 1.872; //#10949 + } //#10949 + $k[$j++] = 1.44; //#10949 + var _3x = $a(); //#10949 + $k[$j++] = 'ren'; //#10952 + $k[$j++] = $0.renlinear; //#10952 + $k[$j++] = 'bbs'; //#10952 + $k[$j++] = _3s; //#10952 + $k[$j++] = 'bhs'; //#10952 + $k[$j++] = _3t; //#10952 + $k[$j++] = 'sbs'; //#10952 + $k[$j++] = _3x; //#10952 + if ($1.includetext) { //#10952 + $k[$j++] = 'txt'; //#10951 + $k[$j++] = $1.txt; //#10951 + } //#10951 + $k[$j++] = 'opt'; //#10953 + $k[$j++] = $1.options; //#10953 + var _41 = $d(); //#10953 + $k[$j++] = _41; //#10956 + if (!$1.dontdraw) { //#10956 + $0.renlinear(); //#10956 + } //#10956 }; $0.kix = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = .175; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.encs = $a([ "0033", "0123", "0132", "1023", "1032", "1122", "0213", "0303", "0312", "1203", "1212", "1302", "0231", "0321", "0330", "1221", "1230", "1320", "2013", "2103", "2112", "3003", "3012", "3102", "2031", "2121", "2130", "3021", "3030", "3120", "2211", "2301", "2310", "3201", "3210", "3300" ]); - $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; - $1.charvals = new Map(); - for (var _A = 0; _A <= 35; _A += 1) { - $put($1.charvals, $geti($1.barchars, _A, 1), _A); - } - for (var _G = 0, _F = $1.barcode.length - 1; _G <= _F; _G += 1) { - var _K = $get($1.charvals, $geti($1.barcode, _G, 1)) !== undefined; - if (!_K) { - $k[$j++] = "bwipp.kixBadCharacter"; - $k[$j++] = "KIX must contain only capital letters and digits"; - $0.raiseerror(); - } - } - $1.barlen = $1.barcode.length; - $1.encstr = $s($1.barlen * 4); - $1.txt = $a($1.barlen); - for (var _S = 0, _R = $1.barlen - 1; _S <= _R; _S += 1) { - $1.i = _S; - $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); - $puti($1.encstr, $1.i * 4, $get($1.encs, $1.indx)); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $1.i * 4 * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $1.bbs = $a($1.encstr.length); - $1.bhs = $a($1.encstr.length); - for (var _t = 0, _s = $1.encstr.length - 1; _t <= _s; _t += 1) { - $1.i = _t; - $1.enc = $geti($1.encstr, $1.i, 1); - if ($eq($1.enc, "0")) { - $put($1.bbs, $1.i, 3 * $1.height / 8); - $put($1.bhs, $1.i, 2 * $1.height / 8); - } - if ($eq($1.enc, "1")) { - $put($1.bbs, $1.i, 0 * $1.height / 8); - $put($1.bhs, $1.i, 5 * $1.height / 8); - } - if ($eq($1.enc, "2")) { - $put($1.bbs, $1.i, 3 * $1.height / 8); - $put($1.bhs, $1.i, 5 * $1.height / 8); - } - if ($eq($1.enc, "3")) { - $put($1.bbs, $1.i, 0 * $1.height / 8); - $put($1.bhs, $1.i, 8 * $1.height / 8); - } - } - $k[$j++] = Infinity; - var _1P = $1.bbs; - var _1Q = $1.bhs; - $k[$j++] = Infinity; - for (var _1S = 0, _1T = $1.bhs.length - 1; _1S < _1T; _1S++) { - $k[$j++] = 1.44; - $k[$j++] = 1.872; - } - $k[$j++] = 1.44; - var _1U = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "bbs"; - $k[$j++] = _1P; - $k[$j++] = "bhs"; - $k[$j++] = _1Q; - $k[$j++] = "sbs"; - $k[$j++] = _1U; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _1Y = $d(); - $k[$j++] = _1Y; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#10985 + $1.options = $k[--$j]; //#10987 + $1.barcode = $k[--$j]; //#10988 + $1.dontdraw = false; //#10990 + $1.includetext = false; //#10991 + $1.textfont = "OCR-B"; //#10992 + $1.textsize = 10; //#10993 + $1.textyoffset = -8; //#10994 + $1.height = 0.175; //#10995 + $forall($1.options, function() { //#11006 + var _3 = $k[--$j]; //#11006 + $1[$k[--$j]] = _3; //#11006 + }); //#11006 + $1.textfont = "" + $1.textfont; //#11008 + $1.textsize = +$1.textsize; //#11009 + $1.textyoffset = +$1.textyoffset; //#11010 + $1.height = +$1.height; //#11011 + $1.encs = $a(["0033", "0123", "0132", "1023", "1032", "1122", "0213", "0303", "0312", "1203", "1212", "1302", "0231", "0321", "0330", "1221", "1230", "1320", "2013", "2103", "2112", "3003", "3012", "3102", "2031", "2121", "2130", "3021", "3030", "3120", "2211", "2301", "2310", "3201", "3210", "3300"]); //#11021 + $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; //#11024 + $1.charvals = new Map; //#11025 + for (var _A = 0; _A <= 35; _A += 1) { //#11026 + $put($1.charvals, $geti($1.barchars, _A, 1), _A); //#11026 + } //#11026 + for (var _G = 0, _F = $1.barcode.length - 1; _G <= _F; _G += 1) { //#11033 + var _K = $get($1.charvals, $geti($1.barcode, _G, 1)) !== undefined; //#11030 + if (!_K) { //#11032 + $k[$j++] = 'bwipp.kixBadCharacter'; //#11031 + $k[$j++] = "KIX must contain only capital letters and digits"; //#11031 + $0.raiseerror(); //#11031 + } //#11031 + } //#11031 + $1.barlen = $1.barcode.length; //#11035 + $1.encstr = $s($1.barlen * 4); //#11036 + $1.txt = $a($1.barlen); //#11037 + for (var _S = 0, _R = $1.barlen - 1; _S <= _R; _S += 1) { //#11044 + $1.i = _S; //#11040 + $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); //#11041 + $puti($1.encstr, $1.i * 4, $get($1.encs, $1.indx)); //#11042 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), ($1.i * 4) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#11043 + } //#11043 + $1.bbs = $a($1.encstr.length); //#11046 + $1.bhs = $a($1.encstr.length); //#11047 + for (var _t = 0, _s = $1.encstr.length - 1; _t <= _s; _t += 1) { //#11067 + $1.i = _t; //#11049 + $1.enc = $geti($1.encstr, $1.i, 1); //#11050 + if ($eq($1.enc, "0")) { //#11054 + $put($1.bbs, $1.i, (3 * $1.height) / 8); //#11052 + $put($1.bhs, $1.i, (2 * $1.height) / 8); //#11053 + } //#11053 + if ($eq($1.enc, "1")) { //#11058 + $put($1.bbs, $1.i, (0 * $1.height) / 8); //#11056 + $put($1.bhs, $1.i, (5 * $1.height) / 8); //#11057 + } //#11057 + if ($eq($1.enc, "2")) { //#11062 + $put($1.bbs, $1.i, (3 * $1.height) / 8); //#11060 + $put($1.bhs, $1.i, (5 * $1.height) / 8); //#11061 + } //#11061 + if ($eq($1.enc, "3")) { //#11066 + $put($1.bbs, $1.i, (0 * $1.height) / 8); //#11064 + $put($1.bhs, $1.i, (8 * $1.height) / 8); //#11065 + } //#11065 + } //#11065 + $k[$j++] = Infinity; //#11078 + var _1P = $1.bbs; //#11072 + var _1Q = $1.bhs; //#11073 + $k[$j++] = Infinity; //#11074 + for (var _1S = 0, _1T = $1.bhs.length - 1; _1S < _1T; _1S++) { //#11074 + $k[$j++] = 1.44; //#11074 + $k[$j++] = 1.872; //#11074 + } //#11074 + $k[$j++] = 1.44; //#11074 + var _1U = $a(); //#11074 + $k[$j++] = 'ren'; //#11077 + $k[$j++] = $0.renlinear; //#11077 + $k[$j++] = 'bbs'; //#11077 + $k[$j++] = _1P; //#11077 + $k[$j++] = 'bhs'; //#11077 + $k[$j++] = _1Q; //#11077 + $k[$j++] = 'sbs'; //#11077 + $k[$j++] = _1U; //#11077 + if ($1.includetext) { //#11077 + $k[$j++] = 'txt'; //#11076 + $k[$j++] = $1.txt; //#11076 + } //#11076 + $k[$j++] = 'opt'; //#11078 + $k[$j++] = $1.options; //#11078 + var _1Y = $d(); //#11078 + $k[$j++] = _1Y; //#11081 + if (!$1.dontdraw) { //#11081 + $0.renlinear(); //#11081 + } //#11081 }; $0.japanpost = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.includecheckintext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = .175; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.encs = $a([ "300", "330", "312", "132", "321", "303", "123", "231", "213", "033", "030", "120", "102", "210", "012", "201", "021", "003", "333", "31", "13" ]); - $1.barchars = "0123456789-ABCDEFGHIJKLMNOPQRSTUVWXYZ"; - $1.barlen = $1.barcode.length; - $1.encstr = $s((20 + 1) * 3 + 4); - $1.digits = $a(20); - $1.txt = $a($1.barlen + 1); - $puti($1.encstr, 0, $get($1.encs, 19)); - $1.checksum = 0; - $1.j = 0; - $1.i = 0; - for (var _K = 0, _J = $1.barlen - 1; _K <= _J; _K += 1) { - $1.i = _K; - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - if ($1.indx >= 11 && $1.indx < 37) { - if ($1.j > 18) { - break; - } - $1.digit = ~~(($1.indx - 1) / 10) + 10; - $puti($1.encstr, $1.j * 3 + 2, $get($1.encs, $1.digit)); - $1.checksum = $1.checksum + $1.digit; - $put($1.digits, $1.j, $1.digit); - $1.j = $1.j + 1; - } - if ($1.j > 19) { - break; - } - $1.digit = 0; - if ($1.indx == 37) { - $1.digit = 14; - } - if ($1.indx >= 11 && $1.indx < 37) { - $1.digit = ($1.indx - 1) % 10; - } - if ($1.indx < 11) { - $1.digit = $1.indx; - } - $puti($1.encstr, $1.j * 3 + 2, $get($1.encs, $1.digit)); - $1.checksum = $1.checksum + $1.digit; - $put($1.digits, $1.j, $1.digit); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), ($1.j * 3 + 2) * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - $1.j = $1.j + 1; - } - for (var _19 = $1.j, _18 = 20 - 1; _19 <= _18; _19 += 1) { - $1.k = _19; - $puti($1.encstr, $1.k * 3 + 2, $get($1.encs, 14)); - $1.checksum = $1.checksum + 14; - $put($1.digits, $1.k, 14); - } - $1.checksum = 19 - $1.checksum % 19; - $puti($1.encstr, 2 + 20 * 3, $get($1.encs, $1.checksum)); - $puti($1.encstr, 2 + 21 * 3, $get($1.encs, 20)); - $1.checkdigit = " "; - if ($1.includecheckintext) { - $1.checkdigit = $geti($1.barchars, $1.checksum, 1); - } - $put($1.txt, $1.i + 1, $a([ $1.checkdigit, (20 * 3 + 2) * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - $puti($1.encstr, (20 + 1) * 3 + 2, $get($1.encs, 20)); - $1.bbs = $a(21 * 3 + 4); - $1.bhs = $a($1.bbs.length); - for (var _1i = 0, _1h = $1.bbs.length - 1; _1i <= _1h; _1i += 1) { - $1.i = _1i; - $1.enc = $geti($1.encstr, $1.i, 1); - $1.bunit = 0; - $1.hunit = 0; - if ($eq($1.enc, "0")) { - $1.bunit = 3; - $1.hunit = 2; - } - if ($eq($1.enc, "1")) { - $1.bunit = 0; - $1.hunit = 5; - } - if ($eq($1.enc, "2")) { - $1.bunit = 3; - $1.hunit = 5; - } - if ($eq($1.enc, "3")) { - $1.bunit = 0; - $1.hunit = 8; - } - $put($1.bbs, $1.i, $1.bunit * $1.height / 8); - $put($1.bhs, $1.i, $1.hunit * $1.height / 8); - } - $k[$j++] = Infinity; - var _1y = $1.bbs; - var _1z = $1.bhs; - $k[$j++] = Infinity; - for (var _21 = 0, _22 = $1.bhs.length - 1; _21 < _22; _21++) { - $k[$j++] = 1.44; - $k[$j++] = 1.872; - } - $k[$j++] = 1.44; - var _23 = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "bbs"; - $k[$j++] = _1y; - $k[$j++] = "bhs"; - $k[$j++] = _1z; - $k[$j++] = "sbs"; - $k[$j++] = _23; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _27 = $d(); - $k[$j++] = _27; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#11110 + $1.options = $k[--$j]; //#11112 + $1.barcode = $k[--$j]; //#11113 + $1.dontdraw = false; //#11115 + $1.includetext = false; //#11116 + $1.includecheckintext = false; //#11117 + $1.textfont = "OCR-B"; //#11118 + $1.textsize = 10; //#11119 + $1.textyoffset = -8; //#11120 + $1.height = 0.175; //#11121 + $forall($1.options, function() { //#11132 + var _3 = $k[--$j]; //#11132 + $1[$k[--$j]] = _3; //#11132 + }); //#11132 + $1.textfont = "" + $1.textfont; //#11134 + $1.textsize = +$1.textsize; //#11135 + $1.textyoffset = +$1.textyoffset; //#11136 + $1.height = +$1.height; //#11137 + $1.encs = $a(["300", "330", "312", "132", "321", "303", "123", "231", "213", "033", "030", "120", "102", "210", "012", "201", "021", "003", "333", "31", "13"]); //#11145 + $1.barchars = "0123456789-ABCDEFGHIJKLMNOPQRSTUVWXYZ"; //#11148 + $1.barlen = $1.barcode.length; //#11149 + $1.encstr = $s(((20 + 1) * 3) + 4); //#11151 + $1.digits = $a(20); //#11152 + $1.txt = $a($1.barlen + 1); //#11153 + $puti($1.encstr, 0, $get($1.encs, 19)); //#11156 + $1.checksum = 0; //#11158 + $1.j = 0; //#11159 + $1.i = 0; //#11159 + for (var _K = 0, _J = $1.barlen - 1; _K <= _J; _K += 1) { //#11193 + $1.i = _K; //#11161 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#11162 + $j--; //#11163 + $1.indx = $k[--$j].length; //#11164 + $j -= 2; //#11165 + if (($1.indx >= 11) && ($1.indx < 37)) { //#11176 + if ($1.j > 18) { //#11167 + break; //#11167 + } //#11167 + $1.digit = (~~(($1.indx - 1) / 10)) + 10; //#11171 + $puti($1.encstr, ($1.j * 3) + 2, $get($1.encs, $1.digit)); //#11172 + $1.checksum = $1.checksum + $1.digit; //#11173 + $put($1.digits, $1.j, $1.digit); //#11174 + $1.j = $1.j + 1; //#11175 + } //#11175 + if ($1.j > 19) { //#11177 + break; //#11177 + } //#11177 + $1.digit = 0; //#11178 + if ($1.indx == 37) { //#11181 + $1.digit = 14; //#11180 + } //#11180 + if (($1.indx >= 11) && ($1.indx < 37)) { //#11184 + $1.digit = ($1.indx - 1) % 10; //#11183 + } //#11183 + if ($1.indx < 11) { //#11187 + $1.digit = $1.indx; //#11186 + } //#11186 + $puti($1.encstr, ($1.j * 3) + 2, $get($1.encs, $1.digit)); //#11188 + $1.checksum = $1.checksum + $1.digit; //#11189 + $put($1.digits, $1.j, $1.digit); //#11190 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), (($1.j * 3) + 2) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#11191 + $1.j = $1.j + 1; //#11192 + } //#11192 + for (var _19 = $1.j, _18 = 20 - 1; _19 <= _18; _19 += 1) { //#11201 + $1.k = _19; //#11197 + $puti($1.encstr, ($1.k * 3) + 2, $get($1.encs, 14)); //#11198 + $1.checksum = $1.checksum + 14; //#11199 + $put($1.digits, $1.k, 14); //#11200 + } //#11200 + $1.checksum = 19 - ($1.checksum % 19); //#11204 + $puti($1.encstr, 2 + (20 * 3), $get($1.encs, $1.checksum)); //#11205 + $puti($1.encstr, 2 + (21 * 3), $get($1.encs, 20)); //#11208 + $1.checkdigit = " "; //#11209 + if ($1.includecheckintext) { //#11212 + $1.checkdigit = $geti($1.barchars, $1.checksum, 1); //#11211 + } //#11211 + $put($1.txt, $1.i + 1, $a([$1.checkdigit, ((20 * 3) + 2) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#11213 + $puti($1.encstr, ((20 + 1) * 3) + 2, $get($1.encs, 20)); //#11216 + $1.bbs = $a((21 * 3) + 4); //#11218 + $1.bhs = $a($1.bbs.length); //#11219 + for (var _1i = 0, _1h = $1.bbs.length - 1; _1i <= _1h; _1i += 1) { //#11243 + $1.i = _1i; //#11221 + $1.enc = $geti($1.encstr, $1.i, 1); //#11222 + $1.bunit = 0; //#11223 + $1.hunit = 0; //#11224 + if ($eq($1.enc, "0")) { //#11228 + $1.bunit = 3; //#11226 + $1.hunit = 2; //#11227 + } //#11227 + if ($eq($1.enc, "1")) { //#11232 + $1.bunit = 0; //#11230 + $1.hunit = 5; //#11231 + } //#11231 + if ($eq($1.enc, "2")) { //#11236 + $1.bunit = 3; //#11234 + $1.hunit = 5; //#11235 + } //#11235 + if ($eq($1.enc, "3")) { //#11240 + $1.bunit = 0; //#11238 + $1.hunit = 8; //#11239 + } //#11239 + $put($1.bbs, $1.i, ($1.bunit * $1.height) / 8); //#11241 + $put($1.bhs, $1.i, ($1.hunit * $1.height) / 8); //#11242 + } //#11242 + $k[$j++] = Infinity; //#11254 + var _1y = $1.bbs; //#11248 + var _1z = $1.bhs; //#11249 + $k[$j++] = Infinity; //#11250 + for (var _21 = 0, _22 = $1.bhs.length - 1; _21 < _22; _21++) { //#11250 + $k[$j++] = 1.44; //#11250 + $k[$j++] = 1.872; //#11250 + } //#11250 + $k[$j++] = 1.44; //#11250 + var _23 = $a(); //#11250 + $k[$j++] = 'ren'; //#11253 + $k[$j++] = $0.renlinear; //#11253 + $k[$j++] = 'bbs'; //#11253 + $k[$j++] = _1y; //#11253 + $k[$j++] = 'bhs'; //#11253 + $k[$j++] = _1z; //#11253 + $k[$j++] = 'sbs'; //#11253 + $k[$j++] = _23; //#11253 + if ($1.includetext) { //#11253 + $k[$j++] = 'txt'; //#11252 + $k[$j++] = $1.txt; //#11252 + } //#11252 + $k[$j++] = 'opt'; //#11254 + $k[$j++] = $1.options; //#11254 + var _27 = $d(); //#11254 + $k[$j++] = _27; //#11257 + if (!$1.dontdraw) { //#11257 + $0.renlinear(); //#11257 + } //#11257 }; $0.msi = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includecheck = false; - $1.includetext = false; - $1.includecheckintext = false; - $1.checktype = "mod10"; - $1.badmod11 = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.encs = $a([ "12121212", "12121221", "12122112", "12122121", "12211212", "12211221", "12212112", "12212121", "21121212", "21121221", "21", "121" ]); - $1.barchars = "0123456789"; - $1.barlen = $1.barcode.length; - $1.txtlen = $1.barlen; + var $1 = {}; //#11286 + $1.options = $k[--$j]; //#11288 + $1.barcode = $k[--$j]; //#11289 + $1.dontdraw = false; //#11291 + $1.includecheck = false; //#11292 + $1.includetext = false; //#11293 + $1.includecheckintext = false; //#11294 + $1.checktype = "mod10"; //#11295 + $1.badmod11 = false; //#11296 + $1.textfont = "OCR-B"; //#11297 + $1.textsize = 10; //#11298 + $1.textyoffset = -8; //#11299 + $1.height = 1; //#11300 + $forall($1.options, function() { //#11311 + var _3 = $k[--$j]; //#11311 + $1[$k[--$j]] = _3; //#11311 + }); //#11311 + $1.textfont = "" + $1.textfont; //#11313 + $1.textsize = +$1.textsize; //#11314 + $1.textyoffset = +$1.textyoffset; //#11315 + $1.height = +$1.height; //#11316 + $1.encs = $a(["12121212", "12121221", "12122112", "12122121", "12211212", "12211221", "12212112", "12212121", "21121212", "21121221", "21", "121"]); //#11323 + $1.barchars = "0123456789"; //#11326 + $1.barlen = $1.barcode.length; //#11328 + $1.txtlen = $1.barlen; //#11329 $1.mod10 = function() { - $1.code = $k[--$j]; - $k[$j++] = 0; - $k[$j++] = 0; - $forall($1.code, function() { - var _E = $k[--$j]; - var _F = $k[--$j]; - var _G = $k[--$j]; - $k[$j++] = $f($f(_E - 48) + _F * 10); - $k[$j++] = _G; - }); - $j--; - var _H = $k[--$j]; - $k[$j++] = _H * 2; - $k[$j++] = 0; - for (;;) { - var _I = $k[--$j]; - var _J = $k[--$j]; - var _K = ~~(_J / 10); - $k[$j++] = $f(_I + _J % 10); - $k[$j++] = _K; - if (_K == 0) { - $j--; - break; - } - var _L = $k[--$j]; - var _M = $k[--$j]; - $k[$j++] = _L; - $k[$j++] = _M; - } - $k[$j++] = 0; - $k[$j++] = 0; - $forall($1.code, function() { - var _O = $k[--$j]; - var _P = $k[--$j]; - var _Q = $k[--$j]; - $k[$j++] = $f(_P + $f(_O - 48)); - $k[$j++] = _Q; - }); - var _R = $k[--$j]; - var _S = $k[--$j]; - $k[$j++] = _R; - $k[$j++] = _S; - $j--; - var _T = $k[--$j]; - var _W = $s($1.code.length + 1); - $puti(_W, 0, $1.code); - $put(_W, $1.code.length, $f($f(10 - $f($k[--$j] + _T) % 10) % 10 + 48)); - $k[$j++] = _W; - }; + $1.code = $k[--$j]; //#11332 + $k[$j++] = 0; //#11333 + $k[$j++] = 0; //#11333 + $forall($1.code, function() { //#11333 + var _E = $k[--$j]; //#11333 + var _F = $k[--$j]; //#11333 + var _G = $k[--$j]; //#11333 + $k[$j++] = $f($f(_E - 48) + (_F * 10)); //#11333 + $k[$j++] = _G; //#11333 + }); //#11333 + $j--; //#11333 + var _H = $k[--$j]; //#11333 + $k[$j++] = _H * 2; //#11334 + $k[$j++] = 0; //#11334 + for (;;) { //#11334 + var _I = $k[--$j]; //#11334 + var _J = $k[--$j]; //#11334 + var _K = ~~(_J / 10); //#11334 + $k[$j++] = $f(_I + (_J % 10)); //#11334 + $k[$j++] = _K; //#11334 + if (_K == 0) { //#11334 + $j--; //#11334 + break; //#11334 + } //#11334 + var _L = $k[--$j]; //#11334 + var _M = $k[--$j]; //#11334 + $k[$j++] = _L; //#11334 + $k[$j++] = _M; //#11334 + } //#11334 + $k[$j++] = 0; //#11335 + $k[$j++] = 0; //#11335 + $forall($1.code, function() { //#11335 + var _O = $k[--$j]; //#11335 + var _P = $k[--$j]; //#11335 + var _Q = $k[--$j]; //#11335 + $k[$j++] = $f(_P + $f(_O - 48)); //#11335 + $k[$j++] = _Q; //#11335 + }); //#11335 + var _R = $k[--$j]; //#11335 + var _S = $k[--$j]; //#11335 + $k[$j++] = _R; //#11335 + $k[$j++] = _S; //#11335 + $j--; //#11335 + var _T = $k[--$j]; //#11335 + var _W = $s($1.code.length + 1); //#11337 + $puti(_W, 0, $1.code); //#11337 + $put(_W, $1.code.length, $f((($f(10 - ($f($k[--$j] + _T) % 10))) % 10) + 48)); //#11337 + $k[$j++] = _W; //#11337 + }; //#11338 $1.mod11 = function() { - $1.code = $k[--$j]; - $k[$j++] = $1.code.length - 1; - $forall($1.code, function() { - var _c = $k[--$j]; - var _d = $k[--$j]; - $k[$j++] = $f(_c - 48); - $k[$j++] = $f(_d % 6 + 2); - $k[$j++] = $f(_d - 1); - }); - $j--; - $k[$j++] = 0; - for (var _f = 0, _g = $1.code.length; _f < _g; _f++) { - var _h = $k[--$j]; - var _i = $k[--$j]; - var _j = $k[--$j]; - $k[$j++] = $f(_h + _j * _i); - } - var _l = $f(11 - $k[--$j] % 11) % 11; - $k[$j++] = _l; - if (_l == 10 && $1.badmod11) { - $j--; - var _o = $s($1.code.length + 2); - $puti(_o, 0, $1.code); - $puti(_o, $1.code.length, "10"); - $k[$j++] = _o; - } else { - var _s = $s($1.code.length + 1); - $puti(_s, 0, $1.code); - $put(_s, $1.code.length, $f($k[--$j] + 48)); - $k[$j++] = _s; - } - }; + $1.code = $k[--$j]; //#11341 + $k[$j++] = $1.code.length - 1; //#11342 + $forall($1.code, function() { //#11342 + var _c = $k[--$j]; //#11342 + var _d = $k[--$j]; //#11342 + $k[$j++] = $f(_c - 48); //#11342 + $k[$j++] = $f((_d % 6) + 2); //#11342 + $k[$j++] = $f(_d - 1); //#11342 + }); //#11342 + $j--; //#11342 + $k[$j++] = 0; //#11343 + for (var _f = 0, _g = $1.code.length; _f < _g; _f++) { //#11343 + var _h = $k[--$j]; //#11343 + var _i = $k[--$j]; //#11343 + var _j = $k[--$j]; //#11343 + $k[$j++] = $f(_h + (_j * _i)); //#11343 + } //#11343 + var _l = ($f(11 - ($k[--$j] % 11))) % 11; //#11345 + $k[$j++] = _l; //#11349 + if ((_l == 10) && $1.badmod11) { //#11348 + $j--; //#11346 + var _o = $s($1.code.length + 2); //#11346 + $puti(_o, 0, $1.code); //#11346 + $puti(_o, $1.code.length, "10"); //#11346 + $k[$j++] = _o; //#11346 + } else { //#11348 + var _s = $s($1.code.length + 1); //#11348 + $puti(_s, 0, $1.code); //#11348 + $put(_s, $1.code.length, $f($k[--$j] + 48)); //#11348 + $k[$j++] = _s; //#11348 + } //#11348 + }; //#11350 $1.ncrmod11 = function() { - $1.code = $k[--$j]; - $k[$j++] = $1.code.length - 1; - $forall($1.code, function() { - var _z = $k[--$j]; - var _10 = $k[--$j]; - $k[$j++] = $f(_z - 48); - $k[$j++] = $f(_10 % 8 + 2); - $k[$j++] = $f(_10 - 1); - }); - $j--; - $k[$j++] = 0; - for (var _12 = 0, _13 = $1.code.length; _12 < _13; _12++) { - var _14 = $k[--$j]; - var _15 = $k[--$j]; - var _16 = $k[--$j]; - $k[$j++] = $f(_14 + _16 * _15); - } - var _18 = $f(11 - $k[--$j] % 11) % 11; - $k[$j++] = _18; - if (_18 == 10 && $1.badmod11) { - $j--; - var _1B = $s($1.code.length + 2); - $puti(_1B, 0, $1.code); - $puti(_1B, $1.code.length, "10"); - $k[$j++] = _1B; - } else { - var _1F = $s($1.code.length + 1); - $puti(_1F, 0, $1.code); - $put(_1F, $1.code.length, $f($k[--$j] + 48)); - $k[$j++] = _1F; - } - }; - if ($1.includecheck) { - if ($eq($1.checktype, "mod10")) { - $k[$j++] = $1.barcode; - $1.mod10(); - } - if ($eq($1.checktype, "mod1010")) { - $k[$j++] = $1.barcode; - $1.mod10(); - $1.mod10(); - } - if ($eq($1.checktype, "mod11")) { - $k[$j++] = $1.barcode; - $1.mod11(); - } - if ($eq($1.checktype, "ncrmod11")) { - $k[$j++] = $1.barcode; - $1.ncrmod11(); - } - if ($eq($1.checktype, "mod1110")) { - $k[$j++] = $1.barcode; - $1.mod11(); - $1.mod10(); - } - if ($eq($1.checktype, "ncrmod1110")) { - $k[$j++] = $1.barcode; - $1.ncrmod11(); - $1.mod10(); - } - $1.barcode = $k[--$j]; - $1.barlen = $1.barcode.length; - if ($1.includecheckintext) { - $1.txtlen = $1.barlen; - } - } - $1.sbs = $s($1.barlen * 8 + 5); - $1.txt = $a($1.barlen); - $puti($1.sbs, 0, $get($1.encs, 10)); - for (var _1j = 0, _1i = $1.barlen - 1; _1j <= _1i; _1j += 1) { - $1.i = _1j; - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $1.i * 8 + 2, $1.enc); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $1.i * 12 + 3, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $puti($1.sbs, $1.barlen * 8 + 2, $get($1.encs, 11)); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _29 = $1.sbs; - for (var _2A = 0, _2B = _29.length; _2A < _2B; _2A++) { - $k[$j++] = $get(_29, _2A) - 48; - } - var _2D = $a(); - $k[$j++] = Infinity; - for (var _2F = 0, _2G = ~~(($1.sbs.length + 1) / 2); _2F < _2G; _2F++) { - $k[$j++] = $1.height; - } - var _2I = $a(); - $k[$j++] = Infinity; - for (var _2K = 0, _2L = ~~(($1.sbs.length + 1) / 2); _2K < _2L; _2K++) { - $k[$j++] = 0; - } - var _2M = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _2D; - $k[$j++] = "bhs"; - $k[$j++] = _2I; - $k[$j++] = "bbs"; - $k[$j++] = _2M; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $geti($1.txt, 0, $1.txtlen); - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _2S = $d(); - $k[$j++] = _2S; - if (!$1.dontdraw) { - $0.renlinear(); - } + $1.code = $k[--$j]; //#11353 + $k[$j++] = $1.code.length - 1; //#11354 + $forall($1.code, function() { //#11354 + var _z = $k[--$j]; //#11354 + var _10 = $k[--$j]; //#11354 + $k[$j++] = $f(_z - 48); //#11354 + $k[$j++] = $f((_10 % 8) + 2); //#11354 + $k[$j++] = $f(_10 - 1); //#11354 + }); //#11354 + $j--; //#11354 + $k[$j++] = 0; //#11355 + for (var _12 = 0, _13 = $1.code.length; _12 < _13; _12++) { //#11355 + var _14 = $k[--$j]; //#11355 + var _15 = $k[--$j]; //#11355 + var _16 = $k[--$j]; //#11355 + $k[$j++] = $f(_14 + (_16 * _15)); //#11355 + } //#11355 + var _18 = ($f(11 - ($k[--$j] % 11))) % 11; //#11357 + $k[$j++] = _18; //#11361 + if ((_18 == 10) && $1.badmod11) { //#11360 + $j--; //#11358 + var _1B = $s($1.code.length + 2); //#11358 + $puti(_1B, 0, $1.code); //#11358 + $puti(_1B, $1.code.length, "10"); //#11358 + $k[$j++] = _1B; //#11358 + } else { //#11360 + var _1F = $s($1.code.length + 1); //#11360 + $puti(_1F, 0, $1.code); //#11360 + $put(_1F, $1.code.length, $f($k[--$j] + 48)); //#11360 + $k[$j++] = _1F; //#11360 + } //#11360 + }; //#11362 + if ($1.includecheck) { //#11375 + if ($eq($1.checktype, "mod10")) { //#11366 + $k[$j++] = $1.barcode; //#11366 + $1.mod10(); //#11366 + } //#11366 + if ($eq($1.checktype, "mod1010")) { //#11367 + $k[$j++] = $1.barcode; //#11367 + $1.mod10(); //#11367 + $1.mod10(); //#11367 + } //#11367 + if ($eq($1.checktype, "mod11")) { //#11368 + $k[$j++] = $1.barcode; //#11368 + $1.mod11(); //#11368 + } //#11368 + if ($eq($1.checktype, "ncrmod11")) { //#11369 + $k[$j++] = $1.barcode; //#11369 + $1.ncrmod11(); //#11369 + } //#11369 + if ($eq($1.checktype, "mod1110")) { //#11370 + $k[$j++] = $1.barcode; //#11370 + $1.mod11(); //#11370 + $1.mod10(); //#11370 + } //#11370 + if ($eq($1.checktype, "ncrmod1110")) { //#11371 + $k[$j++] = $1.barcode; //#11371 + $1.ncrmod11(); //#11371 + $1.mod10(); //#11371 + } //#11371 + $1.barcode = $k[--$j]; //#11372 + $1.barlen = $1.barcode.length; //#11373 + if ($1.includecheckintext) { //#11374 + $1.txtlen = $1.barlen; //#11374 + } //#11374 + } //#11374 + $1.sbs = $s(($1.barlen * 8) + 5); //#11377 + $1.txt = $a($1.barlen); //#11378 + $puti($1.sbs, 0, $get($1.encs, 10)); //#11381 + for (var _1j = 0, _1i = $1.barlen - 1; _1j <= _1i; _1j += 1) { //#11393 + $1.i = _1j; //#11384 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#11386 + $j--; //#11387 + $1.indx = $k[--$j].length; //#11388 + $j -= 2; //#11389 + $1.enc = $get($1.encs, $1.indx); //#11390 + $puti($1.sbs, ($1.i * 8) + 2, $1.enc); //#11391 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), ($1.i * 12) + 3, $1.textyoffset, $1.textfont, $1.textsize])); //#11392 + } //#11392 + $puti($1.sbs, ($1.barlen * 8) + 2, $get($1.encs, 11)); //#11396 + $k[$j++] = Infinity; //#11407 + $k[$j++] = Infinity; //#11401 + var _29 = $1.sbs; //#11401 + for (var _2A = 0, _2B = _29.length; _2A < _2B; _2A++) { //#11401 + $k[$j++] = $get(_29, _2A) - 48; //#11401 + } //#11401 + var _2D = $a(); //#11401 + $k[$j++] = Infinity; //#11402 + for (var _2F = 0, _2G = ~~(($1.sbs.length + 1) / 2); _2F < _2G; _2F++) { //#11402 + $k[$j++] = $1.height; //#11402 + } //#11402 + var _2I = $a(); //#11402 + $k[$j++] = Infinity; //#11403 + for (var _2K = 0, _2L = ~~(($1.sbs.length + 1) / 2); _2K < _2L; _2K++) { //#11403 + $k[$j++] = 0; //#11403 + } //#11403 + var _2M = $a(); //#11403 + $k[$j++] = 'ren'; //#11406 + $k[$j++] = $0.renlinear; //#11406 + $k[$j++] = 'sbs'; //#11406 + $k[$j++] = _2D; //#11406 + $k[$j++] = 'bhs'; //#11406 + $k[$j++] = _2I; //#11406 + $k[$j++] = 'bbs'; //#11406 + $k[$j++] = _2M; //#11406 + if ($1.includetext) { //#11406 + $k[$j++] = 'txt'; //#11405 + $k[$j++] = $geti($1.txt, 0, $1.txtlen); //#11405 + } //#11405 + $k[$j++] = 'opt'; //#11407 + $k[$j++] = $1.options; //#11407 + var _2S = $d(); //#11407 + $k[$j++] = _2S; //#11410 + if (!$1.dontdraw) { //#11410 + $0.renlinear(); //#11410 + } //#11410 }; $0.plessey = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.validatecheck = false; - $1.includecheckintext = false; - $1.unidirectional = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.barchars = "0123456789ABCDEF"; - $1.charvals = new Map(); - for (var _9 = 0; _9 <= 15; _9 += 1) { - $put($1.charvals, $geti($1.barchars, _9, 1), _9); - } - for (var _F = 0, _E = $1.barcode.length - 1; _F <= _E; _F += 1) { - var _J = $get($1.charvals, $geti($1.barcode, _F, 1)) !== undefined; - if (!_J) { - $k[$j++] = "bwipp.plesseyBadCharacter"; - $k[$j++] = "Plessey must contain only digits and letters A B C D E F"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _M = $k[--$j]; - $k[$j++] = $f(_M - 2); - } - var _N = $k[--$j]; - $1[$k[--$j]] = _N; - $1.checkbits = $a($f($1.barlen * 4 + 8)); - $puti($1.checkbits, $1.barlen * 4, $a([ 0, 0, 0, 0, 0, 0, 0, 0 ])); - for (var _W = 0, _V = $f($1.barlen - 1); _W <= _V; _W += 1) { - $1.i = _W; - $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); - $puti($1.checkbits, $1.i * 4, $a([ $1.indx & 1, $1.indx >>> 1 & 1, $1.indx >>> 2 & 1, $1.indx >>> 3 ])); - } - $1.checksalt = $a([ 1, 1, 1, 1, 0, 1, 0, 0, 1 ]); - for (var _m = 0, _l = $f($1.barlen * 4 - 1); _m <= _l; _m += 1) { - $1.i = _m; - if ($get($1.checkbits, $1.i) == 1) { - for (var _q = 0; _q <= 8; _q += 1) { - $1.j = _q; - $put($1.checkbits, $1.i + $1.j, $xo($get($1.checkbits, $1.i + $1.j), $get($1.checksalt, $1.j))); - } - } - } - $1.checkval = 0; - for (var _11 = 0; _11 <= 7; _11 += 1) { - $1.i = _11; - $1.checkval = $f($1.checkval + ~~Math.pow(2, $1.i) * $get($1.checkbits, $f($1.barlen * 4 + $1.i))); - } - $1.checksum1 = $1.checkval & 15; - $1.checksum2 = $1.checkval >>> 4; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum1) || $get($1.barcode, $f($1.barlen + 1)) != $get($1.barchars, $1.checksum2)) { - $k[$j++] = "bwipp.plesseyBadCheckDigits"; - $k[$j++] = "Incorrect Plessey check digits provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - $1.encs = $a([ "14141414", "32141414", "14321414", "32321414", "14143214", "32143214", "14323214", "32323214", "14141432", "32141432", "14321432", "32321432", "14143232", "32143232", "14323232", "32323232", "32321432", "541412323", "323" ]); - var _1T = $1.unidirectional ? 27 : 33; - $1.sbs = $s($f($1.barlen * 8 + _1T)); - $1.txt = $a($f($1.barlen + 2)); - $puti($1.sbs, 0, $get($1.encs, 16)); - for (var _1c = 0, _1b = $f($1.barlen - 1); _1c <= _1b; _1c += 1) { - $1.i = _1c; - $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); - $puti($1.sbs, $1.i * 8 + 8, $get($1.encs, $1.indx)); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $1.i * 20 + 20, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $puti($1.sbs, $f($1.barlen * 8 + 8), $get($1.encs, $1.checksum1)); - $puti($1.sbs, $f($1.barlen * 8 + 16), $get($1.encs, $1.checksum2)); - if ($1.includecheckintext) { - $put($1.txt, $1.barlen, $a([ $geti($1.barchars, $1.checksum1, 1), $f($1.barlen * 20 + 20), $1.textyoffset, $1.textfont, $1.textsize ])); - $put($1.txt, $f($1.barlen + 1), $a([ $geti($1.barchars, $1.checksum2, 1), $f($f($1.barlen + 1) * 20 + 20), $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $1.barlen, $a([ " ", $f($1.barlen * 20 + 20), $1.textyoffset, $1.textfont, $1.textsize ])); - $put($1.txt, $f($1.barlen + 1), $a([ " ", $f($f($1.barlen + 1) * 20 + 20), $1.textyoffset, $1.textfont, $1.textsize ])); - } - var _2k = $1.unidirectional ? 18 : 17; - $puti($1.sbs, $f($1.barlen * 8 + 24), $get($1.encs, _2k)); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _2m = $1.sbs; - for (var _2n = 0, _2o = _2m.length; _2n < _2o; _2n++) { - $k[$j++] = $get(_2m, _2n) - 48; - } - var _2q = $a(); - $k[$j++] = Infinity; - for (var _2s = 0, _2t = ~~(($1.sbs.length + 1) / 2); _2s < _2t; _2s++) { - $k[$j++] = $1.height; - } - var _2v = $a(); - $k[$j++] = Infinity; - for (var _2x = 0, _2y = ~~(($1.sbs.length + 1) / 2); _2x < _2y; _2x++) { - $k[$j++] = 0; - } - var _2z = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _2q; - $k[$j++] = "bhs"; - $k[$j++] = _2v; - $k[$j++] = "bbs"; - $k[$j++] = _2z; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _33 = $d(); - $k[$j++] = _33; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#11439 + $1.options = $k[--$j]; //#11441 + $1.barcode = $k[--$j]; //#11442 + $1.dontdraw = false; //#11444 + $1.includetext = false; //#11445 + $1.validatecheck = false; //#11446 + $1.includecheckintext = false; //#11447 + $1.unidirectional = false; //#11448 + $1.textfont = "OCR-B"; //#11449 + $1.textsize = 10; //#11450 + $1.textyoffset = -8; //#11451 + $1.height = 1; //#11452 + $forall($1.options, function() { //#11463 + var _3 = $k[--$j]; //#11463 + $1[$k[--$j]] = _3; //#11463 + }); //#11463 + $1.textfont = "" + $1.textfont; //#11465 + $1.textsize = +$1.textsize; //#11466 + $1.textyoffset = +$1.textyoffset; //#11467 + $1.height = +$1.height; //#11468 + $1.barchars = "0123456789ABCDEF"; //#11471 + $1.charvals = new Map; //#11472 + for (var _9 = 0; _9 <= 15; _9 += 1) { //#11473 + $put($1.charvals, $geti($1.barchars, _9, 1), _9); //#11473 + } //#11473 + for (var _F = 0, _E = $1.barcode.length - 1; _F <= _E; _F += 1) { //#11480 + var _J = $get($1.charvals, $geti($1.barcode, _F, 1)) !== undefined; //#11477 + if (!_J) { //#11479 + $k[$j++] = 'bwipp.plesseyBadCharacter'; //#11478 + $k[$j++] = "Plessey must contain only digits and letters A B C D E F"; //#11478 + $0.raiseerror(); //#11478 + } //#11478 + } //#11478 + $k[$j++] = 'barlen'; //#11482 + $k[$j++] = $1.barcode.length; //#11482 + if ($1.validatecheck) { //#11482 + var _M = $k[--$j]; //#11482 + $k[$j++] = $f(_M - 2); //#11482 + } //#11482 + var _N = $k[--$j]; //#11482 + $1[$k[--$j]] = _N; //#11482 + $1.checkbits = $a($f(($1.barlen * 4) + 8)); //#11485 + $puti($1.checkbits, $1.barlen * 4, $a([0, 0, 0, 0, 0, 0, 0, 0])); //#11486 + for (var _W = 0, _V = $f($1.barlen - 1); _W <= _V; _W += 1) { //#11496 + $1.i = _W; //#11488 + $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); //#11489 + $puti($1.checkbits, $1.i * 4, $a([$1.indx & 1, ($1.indx >>> 1) & 1, ($1.indx >>> 2) & 1, $1.indx >>> 3])); //#11495 + } //#11495 + $1.checksalt = $a([1, 1, 1, 1, 0, 1, 0, 0, 1]); //#11497 + for (var _m = 0, _l = $f(($1.barlen * 4) - 1); _m <= _l; _m += 1) { //#11506 + $1.i = _m; //#11499 + if ($get($1.checkbits, $1.i) == 1) { //#11505 + for (var _q = 0; _q <= 8; _q += 1) { //#11504 + $1.j = _q; //#11502 + $put($1.checkbits, $1.i + $1.j, $xo($get($1.checkbits, $1.i + $1.j), $get($1.checksalt, $1.j))); //#11503 + } //#11503 + } //#11503 + } //#11503 + $1.checkval = 0; //#11507 + for (var _11 = 0; _11 <= 7; _11 += 1) { //#11511 + $1.i = _11; //#11509 + $1.checkval = $f($1.checkval + ((~~Math.pow(2, $1.i)) * $get($1.checkbits, $f(($1.barlen * 4) + $1.i)))); //#11510 + } //#11510 + $1.checksum1 = $1.checkval & 15; //#11512 + $1.checksum2 = $1.checkval >>> 4; //#11513 + if ($1.validatecheck) { //#11520 + if (($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum1)) || ($get($1.barcode, $f($1.barlen + 1)) != $get($1.barchars, $1.checksum2))) { //#11518 + $k[$j++] = 'bwipp.plesseyBadCheckDigits'; //#11517 + $k[$j++] = "Incorrect Plessey check digits provided"; //#11517 + $0.raiseerror(); //#11517 + } //#11517 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#11519 + } //#11519 + $1.encs = $a(["14141414", "32141414", "14321414", "32321414", "14143214", "32143214", "14323214", "32323214", "14141432", "32141432", "14321432", "32321432", "14143232", "32143232", "14323232", "32323232", "32321432", "541412323", "323"]); //#11529 + var _1T = $1.unidirectional ? 27 : 33; //#11531 + $1.sbs = $s($f(($1.barlen * 8) + _1T)); //#11531 + $1.txt = $a($f($1.barlen + 2)); //#11532 + $puti($1.sbs, 0, $get($1.encs, 16)); //#11535 + for (var _1c = 0, _1b = $f($1.barlen - 1); _1c <= _1b; _1c += 1) { //#11542 + $1.i = _1c; //#11538 + $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); //#11539 + $puti($1.sbs, ($1.i * 8) + 8, $get($1.encs, $1.indx)); //#11540 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), ($1.i * 20) + 20, $1.textyoffset, $1.textfont, $1.textsize])); //#11541 + } //#11541 + $puti($1.sbs, $f(($1.barlen * 8) + 8), $get($1.encs, $1.checksum1)); //#11545 + $puti($1.sbs, $f(($1.barlen * 8) + 16), $get($1.encs, $1.checksum2)); //#11546 + if ($1.includecheckintext) { //#11552 + $put($1.txt, $1.barlen, $a([$geti($1.barchars, $1.checksum1, 1), $f(($1.barlen * 20) + 20), $1.textyoffset, $1.textfont, $1.textsize])); //#11548 + $put($1.txt, $f($1.barlen + 1), $a([$geti($1.barchars, $1.checksum2, 1), $f(($f($1.barlen + 1) * 20) + 20), $1.textyoffset, $1.textfont, $1.textsize])); //#11549 + } else { //#11552 + $put($1.txt, $1.barlen, $a([" ", $f(($1.barlen * 20) + 20), $1.textyoffset, $1.textfont, $1.textsize])); //#11551 + $put($1.txt, $f($1.barlen + 1), $a([" ", $f(($f($1.barlen + 1) * 20) + 20), $1.textyoffset, $1.textfont, $1.textsize])); //#11552 + } //#11552 + var _2k = $1.unidirectional ? 18 : 17; //#11556 + $puti($1.sbs, $f(($1.barlen * 8) + 24), $get($1.encs, _2k)); //#11556 + $k[$j++] = Infinity; //#11567 + $k[$j++] = Infinity; //#11561 + var _2m = $1.sbs; //#11561 + for (var _2n = 0, _2o = _2m.length; _2n < _2o; _2n++) { //#11561 + $k[$j++] = $get(_2m, _2n) - 48; //#11561 + } //#11561 + var _2q = $a(); //#11561 + $k[$j++] = Infinity; //#11562 + for (var _2s = 0, _2t = ~~(($1.sbs.length + 1) / 2); _2s < _2t; _2s++) { //#11562 + $k[$j++] = $1.height; //#11562 + } //#11562 + var _2v = $a(); //#11562 + $k[$j++] = Infinity; //#11563 + for (var _2x = 0, _2y = ~~(($1.sbs.length + 1) / 2); _2x < _2y; _2x++) { //#11563 + $k[$j++] = 0; //#11563 + } //#11563 + var _2z = $a(); //#11563 + $k[$j++] = 'ren'; //#11566 + $k[$j++] = $0.renlinear; //#11566 + $k[$j++] = 'sbs'; //#11566 + $k[$j++] = _2q; //#11566 + $k[$j++] = 'bhs'; //#11566 + $k[$j++] = _2v; //#11566 + $k[$j++] = 'bbs'; //#11566 + $k[$j++] = _2z; //#11566 + if ($1.includetext) { //#11566 + $k[$j++] = 'txt'; //#11565 + $k[$j++] = $1.txt; //#11565 + } //#11565 + $k[$j++] = 'opt'; //#11567 + $k[$j++] = $1.options; //#11567 + var _33 = $d(); //#11567 + $k[$j++] = _33; //#11570 + if (!$1.dontdraw) { //#11570 + $0.renlinear(); //#11570 + } //#11570 }; $0.telepen = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.numeric = false; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = 1; - $1.parse = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - var _A = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _A; - $k[$j++] = "barcode"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _D = $k[--$j]; - $1[$k[--$j]] = _D; - $1.barlen = $1.barcode.length; - delete $1.options["parse"]; - $1.encs = $a([ "31313131", "1131313111", "33313111", "1111313131", "3111313111", "11333131", "13133131", "111111313111", "31333111", "1131113131", "33113131", "1111333111", "3111113131", "1113133111", "1311133111", "111111113131", "3131113111", "11313331", "333331", "111131113111", "31113331", "1133113111", "1313113111", "1111113331", "31131331", "113111113111", "3311113111", "1111131331", "311111113111", "1113111331", "1311111331", "11111111113111", "31313311", "1131311131", "33311131", "1111313311", "3111311131", "11333311", "13133311", "111111311131", "31331131", "1131113311", "33113311", "1111331131", "3111113311", "1113131131", "1311131131", "111111113311", "3131111131", "1131131311", "33131311", "111131111131", "3111131311", "1133111131", "1313111131", "111111131311", "3113111311", "113111111131", "3311111131", "111113111311", "311111111131", "111311111311", "131111111311", "11111111111131", "3131311111", "11313133", "333133", "111131311111", "31113133", "1133311111", "1313311111", "1111113133", "313333", "113111311111", "3311311111", "11113333", "311111311111", "11131333", "13111333", "11111111311111", "31311133", "1131331111", "33331111", "1111311133", "3111331111", "11331133", "13131133", "111111331111", "3113131111", "1131111133", "33111133", "111113131111", "3111111133", "111311131111", "131111131111", "111111111133", "31311313", "113131111111", "3331111111", "1111311313", "311131111111", "11331313", "13131313", "11111131111111", "3133111111", "1131111313", "33111313", "111133111111", "3111111313", "111313111111", "131113111111", "111111111313", "313111111111", "1131131113", "33131113", "11113111111111", "3111131113", "113311111111", "131311111111", "111111131113", "3113111113", "11311111111111", "331111111111", "111113111113", "31111111111111", "111311111113", "131111111113", "1111111111111111" ]); - $1.barlen = $1.barcode.length; - $1.sbs = $s($1.barlen * 16 + 48); - $1.txt = $a($1.barlen); - $1.enc = $get($1.encs, 95); - $puti($1.sbs, 0, $1.enc); - $1.l = $1.enc.length; - $1.checksum = 0; - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.barlen) { - break; - } - if ($1.numeric) { - if ($get($1.barcode, $1.i) > 16) { - $1.np = $geti($1.barcode, $1.i, 2); - if ($eq($geti($1.np, 1, 1), "X")) { - $1.indx = ~~$z($geti($1.np, 0, 1)) + 17; - } else { - $1.indx = ~~$z($1.np) + 27; - } - $put($1.txt, $1.j, $a([ $1.np, $1.j * 16 + 16, $1.textyoffset, $1.textfont, $1.textsize ])); - $1.i = $1.i + 2; - } else { - $1.indx = $get($1.barcode, $1.i); - $put($1.txt, $1.j, $a([ " ", $1.j * 16 + 16, $1.textyoffset, $1.textfont, $1.textsize ])); - $1.i = $1.i + 1; - } - } else { - $1.indx = $get($1.barcode, $1.i); - if ($1.indx >= 32 && $1.indx <= 126) { - $put($1.txt, $1.j, $a([ $geti($1.barcode, $1.i, 1), $1.j * 16 + 16, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $1.j, $a([ " ", $1.j * 16 + 16, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $1.i = $1.i + 1; - } - $1.checksum = $f($1.checksum + $1.indx); - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $1.l, $1.enc); - $1.l = $1.l + $1.enc.length; - $1.j = $1.j + 1; - } - $1.checksum = $f(127 - $1.checksum % 127) % 127; - $1.enc = $get($1.encs, $1.checksum); - $puti($1.sbs, $1.l, $1.enc); - $1.l = $1.l + $1.enc.length; - $1.enc = $get($1.encs, 122); - $puti($1.sbs, $1.l, $1.enc); - $1.l = $1.l + $1.enc.length; - $1.sbs = $geti($1.sbs, 0, $1.l); - $1.txt = $geti($1.txt, 0, $1.j); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _1u = $1.sbs; - for (var _1v = 0, _1w = _1u.length; _1v < _1w; _1v++) { - $k[$j++] = $f($get(_1u, _1v) - 48); - } - var _1y = $a(); - $k[$j++] = Infinity; - for (var _20 = 0, _21 = ~~(($1.sbs.length + 1) / 2); _20 < _21; _20++) { - $k[$j++] = $1.height; - } - var _23 = $a(); - $k[$j++] = Infinity; - for (var _25 = 0, _26 = ~~(($1.sbs.length + 1) / 2); _25 < _26; _25++) { - $k[$j++] = 0; - } - var _27 = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _1y; - $k[$j++] = "bhs"; - $k[$j++] = _23; - $k[$j++] = "bbs"; - $k[$j++] = _27; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _2B = $d(); - $k[$j++] = _2B; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#11600 + $1.options = $k[--$j]; //#11602 + $1.barcode = $k[--$j]; //#11603 + $1.numeric = false; //#11605 + $1.dontdraw = false; //#11606 + $1.includetext = false; //#11607 + $1.textfont = "OCR-B"; //#11608 + $1.textsize = 10; //#11609 + $1.textyoffset = -8; //#11610 + $1.height = 1; //#11611 + $1.parse = false; //#11612 + $forall($1.options, function() { //#11623 + var _3 = $k[--$j]; //#11623 + $1[$k[--$j]] = _3; //#11623 + }); //#11623 + $1.textfont = "" + $1.textfont; //#11625 + $1.textsize = +$1.textsize; //#11626 + $1.textyoffset = +$1.textyoffset; //#11627 + $1.height = +$1.height; //#11628 + var _A = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#11634 + $1.fncvals = _A; //#11635 + $k[$j++] = 'barcode'; //#11636 + $k[$j++] = $1.barcode; //#11636 + $k[$j++] = $1.fncvals; //#11636 + $0.parseinput(); //#11636 + var _D = $k[--$j]; //#11636 + $1[$k[--$j]] = _D; //#11636 + $1.barlen = $1.barcode.length; //#11637 + delete $1.options["parse"]; //#11638 + $1.encs = $a(["31313131", "1131313111", "33313111", "1111313131", "3111313111", "11333131", "13133131", "111111313111", "31333111", "1131113131", "33113131", "1111333111", "3111113131", "1113133111", "1311133111", "111111113131", "3131113111", "11313331", "333331", "111131113111", "31113331", "1133113111", "1313113111", "1111113331", "31131331", "113111113111", "3311113111", "1111131331", "311111113111", "1113111331", "1311111331", "11111111113111", "31313311", "1131311131", "33311131", "1111313311", "3111311131", "11333311", "13133311", "111111311131", "31331131", "1131113311", "33113311", "1111331131", "3111113311", "1113131131", "1311131131", "111111113311", "3131111131", "1131131311", "33131311", "111131111131", "3111131311", "1133111131", "1313111131", "111111131311", "3113111311", "113111111131", "3311111131", "111113111311", "311111111131", "111311111311", "131111111311", "11111111111131", "3131311111", "11313133", "333133", "111131311111", "31113133", "1133311111", "1313311111", "1111113133", "313333", "113111311111", "3311311111", "11113333", "311111311111", "11131333", "13111333", "11111111311111", "31311133", "1131331111", "33331111", "1111311133", "3111331111", "11331133", "13131133", "111111331111", "3113131111", "1131111133", "33111133", "111113131111", "3111111133", "111311131111", "131111131111", "111111111133", "31311313", "113131111111", "3331111111", "1111311313", "311131111111", "11331313", "13131313", "11111131111111", "3133111111", "1131111313", "33111313", "111133111111", "3111111313", "111313111111", "131113111111", "111111111313", "313111111111", "1131131113", "33131113", "11113111111111", "3111131113", "113311111111", "131311111111", "111111131113", "3113111113", "11311111111111", "331111111111", "111113111113", "31111111111111", "111311111113", "131111111113", "1111111111111111"]); //#11674 + $1.barlen = $1.barcode.length; //#11676 + $1.sbs = $s(($1.barlen * 16) + 48); //#11677 + $1.txt = $a($1.barlen); //#11678 + $1.enc = $get($1.encs, 95); //#11681 + $puti($1.sbs, 0, $1.enc); //#11682 + $1.l = $1.enc.length; //#11683 + $1.checksum = 0; //#11685 + $1.i = 0; //#11686 + $1.j = 0; //#11686 + for (;;) { //#11718 + if ($1.i == $1.barlen) { //#11688 + break; //#11688 + } //#11688 + if ($1.numeric) { //#11711 + if ($get($1.barcode, $1.i) > 16) { //#11702 + $1.np = $geti($1.barcode, $1.i, 2); //#11691 + if ($eq($geti($1.np, 1, 1), "X")) { //#11695 + $1.indx = (~~$z($geti($1.np, 0, 1))) + 17; //#11693 + } else { //#11695 + $1.indx = (~~$z($1.np)) + 27; //#11695 + } //#11695 + $put($1.txt, $1.j, $a([$1.np, ($1.j * 16) + 16, $1.textyoffset, $1.textfont, $1.textsize])); //#11697 + $1.i = $1.i + 2; //#11698 + } else { //#11702 + $1.indx = $get($1.barcode, $1.i); //#11700 + $put($1.txt, $1.j, $a([" ", ($1.j * 16) + 16, $1.textyoffset, $1.textfont, $1.textsize])); //#11701 + $1.i = $1.i + 1; //#11702 + } //#11702 + } else { //#11711 + $1.indx = $get($1.barcode, $1.i); //#11705 + if (($1.indx >= 32) && ($1.indx <= 126)) { //#11709 + $put($1.txt, $1.j, $a([$geti($1.barcode, $1.i, 1), ($1.j * 16) + 16, $1.textyoffset, $1.textfont, $1.textsize])); //#11707 + } else { //#11709 + $put($1.txt, $1.j, $a([" ", ($1.j * 16) + 16, $1.textyoffset, $1.textfont, $1.textsize])); //#11709 + } //#11709 + $1.i = $1.i + 1; //#11711 + } //#11711 + $1.checksum = $f($1.checksum + $1.indx); //#11713 + $1.enc = $get($1.encs, $1.indx); //#11714 + $puti($1.sbs, $1.l, $1.enc); //#11715 + $1.l = $1.l + $1.enc.length; //#11716 + $1.j = $1.j + 1; //#11717 + } //#11717 + $1.checksum = ($f(127 - ($1.checksum % 127))) % 127; //#11721 + $1.enc = $get($1.encs, $1.checksum); //#11722 + $puti($1.sbs, $1.l, $1.enc); //#11723 + $1.l = $1.l + $1.enc.length; //#11724 + $1.enc = $get($1.encs, 122); //#11727 + $puti($1.sbs, $1.l, $1.enc); //#11728 + $1.l = $1.l + $1.enc.length; //#11729 + $1.sbs = $geti($1.sbs, 0, $1.l); //#11732 + $1.txt = $geti($1.txt, 0, $1.j); //#11733 + $k[$j++] = Infinity; //#11744 + $k[$j++] = Infinity; //#11738 + var _1u = $1.sbs; //#11738 + for (var _1v = 0, _1w = _1u.length; _1v < _1w; _1v++) { //#11738 + $k[$j++] = $f($get(_1u, _1v) - 48); //#11738 + } //#11738 + var _1y = $a(); //#11738 + $k[$j++] = Infinity; //#11739 + for (var _20 = 0, _21 = ~~(($1.sbs.length + 1) / 2); _20 < _21; _20++) { //#11739 + $k[$j++] = $1.height; //#11739 + } //#11739 + var _23 = $a(); //#11739 + $k[$j++] = Infinity; //#11740 + for (var _25 = 0, _26 = ~~(($1.sbs.length + 1) / 2); _25 < _26; _25++) { //#11740 + $k[$j++] = 0; //#11740 + } //#11740 + var _27 = $a(); //#11740 + $k[$j++] = 'ren'; //#11743 + $k[$j++] = $0.renlinear; //#11743 + $k[$j++] = 'sbs'; //#11743 + $k[$j++] = _1y; //#11743 + $k[$j++] = 'bhs'; //#11743 + $k[$j++] = _23; //#11743 + $k[$j++] = 'bbs'; //#11743 + $k[$j++] = _27; //#11743 + if ($1.includetext) { //#11743 + $k[$j++] = 'txt'; //#11742 + $k[$j++] = $1.txt; //#11742 + } //#11742 + $k[$j++] = 'opt'; //#11744 + $k[$j++] = $1.options; //#11744 + var _2B = $d(); //#11744 + $k[$j++] = _2B; //#11747 + if (!$1.dontdraw) { //#11747 + $0.renlinear(); //#11747 + } //#11747 }; $0.telepennumeric = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $put($1.options, "dontdraw", true); - $put($1.options, "numeric", true); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.telepen(); - var _E = $k[--$j]; - $1[$k[--$j]] = _E; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#11777 + $1.options = $k[--$j]; //#11779 + $1.barcode = $k[--$j]; //#11780 + $1.dontdraw = false; //#11782 + $1.includetext = false; //#11783 + $1.textfont = "OCR-B"; //#11784 + $1.textsize = 10; //#11785 + $1.textxoffset = 0; //#11786 + $1.textyoffset = -8; //#11787 + $1.height = 1; //#11788 + $forall($1.options, function() { //#11799 + var _3 = $k[--$j]; //#11799 + $1[$k[--$j]] = _3; //#11799 + }); //#11799 + $1.textfont = "" + $1.textfont; //#11801 + $1.textsize = +$1.textsize; //#11802 + $1.textxoffset = +$1.textxoffset; //#11803 + $1.textyoffset = +$1.textyoffset; //#11804 + $1.height = +$1.height; //#11805 + $put($1.options, "dontdraw", true); //#11808 + $put($1.options, "numeric", true); //#11809 + $k[$j++] = 'args'; //#11811 + $k[$j++] = $1.barcode; //#11811 + $k[$j++] = $1.options; //#11811 + $0.telepen(); //#11811 + var _E = $k[--$j]; //#11811 + $1[$k[--$j]] = _E; //#11811 + $put($1.args, "opt", $1.options); //#11813 + $k[$j++] = $1.args; //#11816 + if (!$1.dontdraw) { //#11816 + $0.renlinear(); //#11816 + } //#11816 }; $0.posicode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = 1; - $1.encoding = "auto"; - $1.version = "a"; - $1.checkoffset = 0; - $1.raw = false; - $1.parse = false; - $1.parsefnc = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.encoding = "" + $1.encoding; - $1.version = "" + $1.version; - $1.checkoffset = ~~$1.checkoffset; - $1.height = +$1.height; - $1.la0 = -1; - $1.la1 = -2; - $1.la2 = -3; - $1.sf0 = -4; - $1.sf1 = -5; - $1.sf2 = -6; - $1.fn1 = -7; - $1.fn2 = -8; - $1.fn3 = -9; - $1.fn4 = -10; - var _1l = new Map([ [ "normal", $a([ $a([ "0", "^", "'" ]), $a([ "1", ";", 27 ]), $a([ "2", "<", 28 ]), $a([ "3", "=", 29 ]), $a([ "4", ">", 30 ]), $a([ "5", "?", 31 ]), $a([ "6", "@", "!" ]), $a([ "7", "[", '"' ]), $a([ "8", 92, "#" ]), $a([ "9", "]", "&" ]), $a([ "A", "a", 1 ]), $a([ "B", "b", 2 ]), $a([ "C", "c", 3 ]), $a([ "D", "d", 4 ]), $a([ "E", "e", 5 ]), $a([ "F", "f", 6 ]), $a([ "G", "g", 7 ]), $a([ "H", "h", 8 ]), $a([ "I", "i", 9 ]), $a([ "J", "j", 10 ]), $a([ "K", "k", 11 ]), $a([ "L", "l", 12 ]), $a([ "M", "m", 13 ]), $a([ "N", "n", 14 ]), $a([ "O", "o", 15 ]), $a([ "P", "p", 16 ]), $a([ "Q", "q", 17 ]), $a([ "R", "r", 18 ]), $a([ "S", "s", 19 ]), $a([ "T", "t", 20 ]), $a([ "U", "u", 21 ]), $a([ "V", "v", 22 ]), $a([ "W", "w", 23 ]), $a([ "X", "x", 24 ]), $a([ "Y", "y", 25 ]), $a([ "Z", "z", 26 ]), $a([ "-", "_", 40 ]), $a([ ".", "`", 41 ]), $a([ " ", 127, 0 ]), $a([ "$", "{", "*" ]), $a([ "/", "|", "," ]), $a([ "+", "}", ":" ]), $a([ "%", "~", $1.fn1 ]), $a([ $1.la1, $1.la0, $1.fn2 ]), $a([ $1.sf1, $1.sf0, $1.fn3 ]), $a([ $1.sf2, $1.sf2, $1.fn4 ]) ]) ], [ "limited", $a([ $a([ "0", -98, -98 ]), $a([ "1", -98, -98 ]), $a([ "2", -98, -98 ]), $a([ "3", -98, -98 ]), $a([ "4", -98, -98 ]), $a([ "5", -98, -98 ]), $a([ "6", -98, -98 ]), $a([ "7", -98, -98 ]), $a([ "8", -98, -98 ]), $a([ "9", -98, -98 ]), $a([ "A", -98, -98 ]), $a([ "B", -98, -98 ]), $a([ "C", -98, -98 ]), $a([ "D", -98, -98 ]), $a([ "E", -98, -98 ]), $a([ "F", -98, -98 ]), $a([ "G", -98, -98 ]), $a([ "H", -98, -98 ]), $a([ "I", -98, -98 ]), $a([ "J", -98, -98 ]), $a([ "K", -98, -98 ]), $a([ "L", -98, -98 ]), $a([ "M", -98, -98 ]), $a([ "N", -98, -98 ]), $a([ "O", -98, -98 ]), $a([ "P", -98, -98 ]), $a([ "Q", -98, -98 ]), $a([ "R", -98, -98 ]), $a([ "S", -98, -98 ]), $a([ "T", -98, -98 ]), $a([ "U", -98, -98 ]), $a([ "V", -98, -98 ]), $a([ "W", -98, -98 ]), $a([ "X", -98, -98 ]), $a([ "Y", -98, -98 ]), $a([ "Z", -98, -98 ]), $a([ "-", -98, -98 ]), $a([ ".", -98, -98 ]) ]) ] ]); - $k[$j++] = _1l; - if ($eq($1.version, "a") || $eq($1.version, "b")) { - $k[$j++] = "normal"; - } else { - $k[$j++] = "limited"; - } - var _1o = $k[--$j]; - $1.charmaps = $get($k[--$j], _1o); - var _1r = $1.charmaps; - var _1s = $1.charmaps; - var _1t = $1.charmaps; - $1.charvals = $a([ new Map(), new Map(), new Map() ]); - for (var _1x = 0, _1w = $1.charmaps.length - 1; _1x <= _1w; _1x += 1) { - $1.i = _1x; - $1.encs = $get($1.charmaps, $1.i); - for (var _21 = 0; _21 <= 2; _21 += 1) { - $1.j = _21; - var _24 = $get($1.encs, $1.j); - $k[$j++] = _24; - if ($eq($type(_24), "stringtype")) { - var _27 = $get($k[--$j], 0); - $k[$j++] = _27; - } - $put($get($1.charvals, $1.j), $k[--$j], $1.i); - } - } - $1.set0 = $get($1.charvals, 0); - $1.set1 = $get($1.charvals, 1); - $1.set2 = $get($1.charvals, 2); - if ($1.raw) { - $1.encoding = "raw"; - } - if ($eq($1.encoding, "raw")) { - $1.cws = $a($1.barcode.length); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.barcode.length) { - break; - } - $1.cw = ~~$z($geti($1.barcode, $1.i + 1, 3)); - $put($1.cws, $1.j, $1.cw); - $1.i = $1.i + 4; - $1.j = $1.j + 1; - } - $1.cws = $geti($1.cws, 0, $1.j); - $1.text = ""; - } - if ($eq($1.encoding, "auto")) { - var _2g = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "FNC1", $1.fn1 ], [ "FNC2", $1.fn2 ], [ "FNC3", $1.fn3 ] ]); - $1.fncvals = _2g; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _2j = $k[--$j]; - $1[$k[--$j]] = _2j; - $1.msglen = $1.msg.length; - $1.text = $s($1.msglen); - for (var _2q = 0, _2p = $1.msglen - 1; _2q <= _2p; _2q += 1) { - $1.i = _2q; - var _2v = $get($1.msg, $1.i); - $k[$j++] = $1.text; - $k[$j++] = $1.i; - $k[$j++] = _2v; - if (_2v < 0) { - $j--; - $k[$j++] = 32; - } - var _2w = $k[--$j]; - var _2x = $k[--$j]; - $put($k[--$j], _2x, _2w); - } - $k[$j++] = Infinity; - for (var _30 = 0, _31 = $1.msglen; _30 < _31; _30++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numSA = $a(); - $k[$j++] = Infinity; - for (var _34 = 0, _35 = $1.msglen; _34 < _35; _34++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numEA = $a(); - for (var _38 = $1.msglen - 1; _38 >= 0; _38 -= 1) { - $1.i = _38; - if ($get($1.msg, $1.i) >= 0) { - if ($get($1.msg, $1.i) >= 128) { - $put($1.numEA, $1.i, $f($get($1.numEA, $1.i + 1) + 1)); - } else { - $put($1.numSA, $1.i, $f($get($1.numSA, $1.i + 1) + 1)); - } - } - } - $1.ea = false; - $1.msgtmp = $a([]); - for (var _3S = 0, _3R = $1.msglen - 1; _3S <= _3R; _3S += 1) { - $1.i = _3S; - $1.c = $get($1.msg, $1.i); - if (!$xo($1.ea, $1.c < 128) && $1.c >= 0) { - if ($1.ea) { - $k[$j++] = $1.numSA; - } else { - $k[$j++] = $1.numEA; - } - var _3e = $get($k[--$j], $1.i); - var _3h = $f(_3e + $1.i) == $1.msglen ? 3 : 5; - if (_3e < _3h) { - $k[$j++] = Infinity; - $aload($1.msgtmp); - $k[$j++] = $1.fn4; - $1.msgtmp = $a(); - } else { - $k[$j++] = Infinity; - $aload($1.msgtmp); - $k[$j++] = $1.fn4; - $k[$j++] = $1.fn4; - $1.msgtmp = $a(); - $1.ea = !$1.ea; - } - } - $k[$j++] = Infinity; - $aload($1.msgtmp); - if ($1.c >= 0) { - $k[$j++] = $1.c & 127; - } else { - $k[$j++] = $1.c; - } - $1.msgtmp = $a(); - } - $1.msg = $1.msgtmp; - $1.msglen = $1.msg.length; + var $1 = {}; //#11846 + $1.options = $k[--$j]; //#11848 + $1.barcode = $k[--$j]; //#11849 + $1.dontdraw = false; //#11851 + $1.includetext = false; //#11852 + $1.textfont = "OCR-B"; //#11853 + $1.textsize = 10; //#11854 + $1.textxoffset = 0; //#11855 + $1.textyoffset = -8; //#11856 + $1.height = 1; //#11857 + $1.encoding = "auto"; //#11858 + $1.version = "a"; //#11859 + $1.checkoffset = 0; //#11860 + $1.raw = false; //#11861 + $1.parse = false; //#11862 + $1.parsefnc = false; //#11863 + $forall($1.options, function() { //#11874 + var _3 = $k[--$j]; //#11874 + $1[$k[--$j]] = _3; //#11874 + }); //#11874 + $1.textfont = "" + $1.textfont; //#11876 + $1.textsize = +$1.textsize; //#11877 + $1.textxoffset = +$1.textxoffset; //#11878 + $1.textyoffset = +$1.textyoffset; //#11879 + $1.encoding = "" + $1.encoding; //#11880 + $1.version = "" + $1.version; //#11881 + $1.checkoffset = ~~$1.checkoffset; //#11882 + $1.height = +$1.height; //#11883 + $1.la0 = -1; //#11886 + $1.la1 = -2; //#11886 + $1.la2 = -3; //#11886 + $1.sf0 = -4; //#11887 + $1.sf1 = -5; //#11887 + $1.sf2 = -6; //#11887 + $1.fn1 = -7; //#11888 + $1.fn2 = -8; //#11888 + $1.fn3 = -9; //#11888 + $1.fn4 = -10; //#11888 + var _1l = new Map([ + ["normal", $a([$a(["0", "^", "'"]), $a(["1", ";", 27]), $a(["2", "<", 28]), $a(["3", "=", 29]), $a(["4", ">", 30]), $a(["5", "?", 31]), $a(["6", "@", "!"]), $a(["7", "[", "\""]), $a(["8", 92, "#"]), $a(["9", "]", "&"]), $a(["A", "a", 1]), $a(["B", "b", 2]), $a(["C", "c", 3]), $a(["D", "d", 4]), $a(["E", "e", 5]), $a(["F", "f", 6]), $a(["G", "g", 7]), $a(["H", "h", 8]), $a(["I", "i", 9]), $a(["J", "j", 10]), $a(["K", "k", 11]), $a(["L", "l", 12]), $a(["M", "m", 13]), $a(["N", "n", 14]), $a(["O", "o", 15]), $a(["P", "p", 16]), $a(["Q", "q", 17]), $a(["R", "r", 18]), $a(["S", "s", 19]), $a(["T", "t", 20]), $a(["U", "u", 21]), $a(["V", "v", 22]), $a(["W", "w", 23]), $a(["X", "x", 24]), $a(["Y", "y", 25]), $a(["Z", "z", 26]), $a(["-", "_", 40]), $a([".", "`", 41]), $a([" ", 127, 0]), $a(["$", "{", "*"]), $a(["/", "|", ","]), $a(["+", "}", ":"]), $a(["%", "~", $1.fn1]), $a([$1.la1, $1.la0, $1.fn2]), $a([$1.sf1, $1.sf0, $1.fn3]), $a([$1.sf2, $1.sf2, $1.fn4])])], + ["limited", $a([$a(["0", -98, -98]), $a(["1", -98, -98]), $a(["2", -98, -98]), $a(["3", -98, -98]), $a(["4", -98, -98]), $a(["5", -98, -98]), $a(["6", -98, -98]), $a(["7", -98, -98]), $a(["8", -98, -98]), $a(["9", -98, -98]), $a(["A", -98, -98]), $a(["B", -98, -98]), $a(["C", -98, -98]), $a(["D", -98, -98]), $a(["E", -98, -98]), $a(["F", -98, -98]), $a(["G", -98, -98]), $a(["H", -98, -98]), $a(["I", -98, -98]), $a(["J", -98, -98]), $a(["K", -98, -98]), $a(["L", -98, -98]), $a(["M", -98, -98]), $a(["N", -98, -98]), $a(["O", -98, -98]), $a(["P", -98, -98]), $a(["Q", -98, -98]), $a(["R", -98, -98]), $a(["S", -98, -98]), $a(["T", -98, -98]), $a(["U", -98, -98]), $a(["V", -98, -98]), $a(["W", -98, -98]), $a(["X", -98, -98]), $a(["Y", -98, -98]), $a(["Z", -98, -98]), $a(["-", -98, -98]), $a([".", -98, -98])])] + ]); //#11926 + $k[$j++] = _1l; //#11929 + if ($eq($1.version, "a") || $eq($1.version, "b")) { //#11929 + $k[$j++] = 'normal'; //#11929 + } else { //#11929 + $k[$j++] = 'limited'; //#11929 + } //#11929 + var _1o = $k[--$j]; //#11929 + $1.charmaps = $get($k[--$j], _1o); //#11930 + var _1r = $1.charmaps; //#11934 + var _1s = $1.charmaps; //#11934 + var _1t = $1.charmaps; //#11934 + $1.charvals = $a([new Map, new Map, new Map]); //#11935 + for (var _1x = 0, _1w = $1.charmaps.length - 1; _1x <= _1w; _1x += 1) { //#11944 + $1.i = _1x; //#11937 + $1.encs = $get($1.charmaps, $1.i); //#11938 + for (var _21 = 0; _21 <= 2; _21 += 1) { //#11943 + $1.j = _21; //#11940 + var _24 = $get($1.encs, $1.j); //#11941 + $k[$j++] = _24; //#11941 + if ($eq($type(_24), 'stringtype')) { //#11941 + var _27 = $get($k[--$j], 0); //#11941 + $k[$j++] = _27; //#11941 + } //#11941 + $put($get($1.charvals, $1.j), $k[--$j], $1.i); //#11942 + } //#11942 + } //#11942 + $1.set0 = $get($1.charvals, 0); //#11945 + $1.set1 = $get($1.charvals, 1); //#11946 + $1.set2 = $get($1.charvals, 2); //#11947 + if ($1.raw) { //#11949 + $1.encoding = "raw"; //#11949 + } //#11949 + if ($eq($1.encoding, "raw")) { //#11963 + $1.cws = $a($1.barcode.length); //#11952 + $1.i = 0; //#11953 + $1.j = 0; //#11953 + for (;;) { //#11960 + if ($1.i == $1.barcode.length) { //#11955 + break; //#11955 + } //#11955 + $1.cw = ~~$z($geti($1.barcode, $1.i + 1, 3)); //#11956 + $put($1.cws, $1.j, $1.cw); //#11957 + $1.i = $1.i + 4; //#11958 + $1.j = $1.j + 1; //#11959 + } //#11959 + $1.cws = $geti($1.cws, 0, $1.j); //#11961 + $1.text = ""; //#11962 + } //#11962 + if ($eq($1.encoding, "auto")) { //#12078 + var _2g = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["FNC1", $1.fn1], + ["FNC2", $1.fn2], + ["FNC3", $1.fn3] + ]); //#11973 + $1.fncvals = _2g; //#11975 + $k[$j++] = 'msg'; //#11976 + $k[$j++] = $1.barcode; //#11976 + $k[$j++] = $1.fncvals; //#11976 + $0.parseinput(); //#11976 + var _2j = $k[--$j]; //#11976 + $1[$k[--$j]] = _2j; //#11976 + $1.msglen = $1.msg.length; //#11977 + $1.text = $s($1.msglen); //#11979 + for (var _2q = 0, _2p = $1.msglen - 1; _2q <= _2p; _2q += 1) { //#11983 + $1.i = _2q; //#11981 + var _2v = $get($1.msg, $1.i); //#11982 + $k[$j++] = $1.text; //#11982 + $k[$j++] = $1.i; //#11982 + $k[$j++] = _2v; //#11982 + if (_2v < 0) { //#11982 + $j--; //#11982 + $k[$j++] = 32; //#11982 + } //#11982 + var _2w = $k[--$j]; //#11982 + var _2x = $k[--$j]; //#11982 + $put($k[--$j], _2x, _2w); //#11982 + } //#11982 + $k[$j++] = Infinity; //#11986 + for (var _30 = 0, _31 = $1.msglen; _30 < _31; _30++) { //#11986 + $k[$j++] = 0; //#11986 + } //#11986 + $k[$j++] = 0; //#11986 + $1.numSA = $a(); //#11986 + $k[$j++] = Infinity; //#11987 + for (var _34 = 0, _35 = $1.msglen; _34 < _35; _34++) { //#11987 + $k[$j++] = 0; //#11987 + } //#11987 + $k[$j++] = 0; //#11987 + $1.numEA = $a(); //#11987 + for (var _38 = $1.msglen - 1; _38 >= 0; _38 -= 1) { //#11997 + $1.i = _38; //#11989 + if ($get($1.msg, $1.i) >= 0) { //#11996 + if ($get($1.msg, $1.i) >= 128) { //#11994 + $put($1.numEA, $1.i, $f($get($1.numEA, $1.i + 1) + 1)); //#11992 + } else { //#11994 + $put($1.numSA, $1.i, $f($get($1.numSA, $1.i + 1) + 1)); //#11994 + } //#11994 + } //#11994 + } //#11994 + $1.ea = false; //#12000 + $1.msgtmp = $a([]); //#12000 + for (var _3S = 0, _3R = $1.msglen - 1; _3S <= _3R; _3S += 1) { //#12015 + $1.i = _3S; //#12002 + $1.c = $get($1.msg, $1.i); //#12003 + if ((!$xo($1.ea, $1.c < 128)) && ($1.c >= 0)) { //#12013 + if ($1.ea) { //#12005 + $k[$j++] = $1.numSA; //#12005 + } else { //#12005 + $k[$j++] = $1.numEA; //#12005 + } //#12005 + var _3e = $get($k[--$j], $1.i); //#12005 + var _3h = ($f(_3e + $1.i) == $1.msglen) ? 3 : 5; //#12006 + if (_3e < _3h) { //#12011 + $k[$j++] = Infinity; //#12008 + $aload($1.msgtmp); //#12008 + $k[$j++] = $1.fn4; //#12008 + $1.msgtmp = $a(); //#12008 + } else { //#12011 + $k[$j++] = Infinity; //#12010 + $aload($1.msgtmp); //#12010 + $k[$j++] = $1.fn4; //#12010 + $k[$j++] = $1.fn4; //#12010 + $1.msgtmp = $a(); //#12010 + $1.ea = !$1.ea; //#12011 + } //#12011 + } //#12011 + $k[$j++] = Infinity; //#12014 + $aload($1.msgtmp); //#12014 + if ($1.c >= 0) { //#12014 + $k[$j++] = $1.c & 127; //#12014 + } else { //#12014 + $k[$j++] = $1.c; //#12014 + } //#12014 + $1.msgtmp = $a(); //#12014 + } //#12014 + $1.msg = $1.msgtmp; //#12016 + $1.msglen = $1.msg.length; //#12017 $1.enc = function() { - var _3x = $k[--$j]; - $put($1.cws, $1.j, $get(_3x, $k[--$j])); - $1.j = $1.j + 1; - }; - $1.cws = $a($1.msglen * 2); - $1.i = 0; - $1.j = 0; - $1.cset = "set0"; - for (;;) { - if ($1.i == $1.msglen) { - break; - } - for (;;) { - $1.char1 = $get($1.msg, $1.i); - $k[$j++] = "char2"; - if ($1.i + 1 < $1.msglen) { - $k[$j++] = $get($1.msg, $1.i + 1); - } else { - $k[$j++] = -99; - } - var _4F = $k[--$j]; - $1[$k[--$j]] = _4F; - var _4K = $get($1[$1.cset], $1.char1) !== undefined; - if (_4K) { - $k[$j++] = $1.char1; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $1.i = $1.i + 1; - break; - } - var _4R = $get($1.set2, $1.char1) !== undefined; - if (_4R) { - $k[$j++] = $1.sf2; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $k[$j++] = $1.char1; - $k[$j++] = $1.set2; - $1.enc(); - $1.i = $1.i + 1; - break; - } - var _4b = $get($1[$1.cset], $1.char2) !== undefined; - if (!_4b) { - if ($eq($1.cset, "set0")) { - $k[$j++] = $1.la1; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $1.cset = "set1"; - } else { - $k[$j++] = $1.la0; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $1.cset = "set0"; - } - break; - } else { - if ($eq($1.cset, "set0")) { - $k[$j++] = $1.sf1; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $k[$j++] = $1.char1; - $k[$j++] = $1.set1; - $1.enc(); - } else { - $k[$j++] = $1.sf0; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $k[$j++] = $1.char1; - $k[$j++] = $1.set0; - $1.enc(); - } - $1.i = $1.i + 1; - break; - } - break; - } - } - $1.cws = $geti($1.cws, 0, $1.j); - } - var _52 = new Map([ [ "a", $a([ "141112", "131212", "121312", "111412", "131113", "121213", "111313", "121114", "111214", "111115", "181111", "171211", "161311", "151411", "141511", "131611", "121711", "111811", "171112", "161212", "151312", "141412", "131512", "121612", "111712", "161113", "151213", "141313", "131413", "121513", "111613", "151114", "141214", "131314", "121414", "111514", "141115", "131215", "121315", "111415", "131116", "121216", "111316", "121117", "111217", "111118", "1<111112", "111111111;1" ]) ], [ "b", $a([ "151213", "141313", "131413", "121513", "141214", "131314", "121414", "131215", "121315", "121216", "191212", "181312", "171412", "161512", "151612", "141712", "131812", "121912", "181213", "171313", "161413", "151513", "141613", "131713", "121813", "171214", "161314", "151414", "141514", "131614", "121714", "161215", "151315", "141415", "131515", "121615", "151216", "141316", "131416", "121516", "141217", "131317", "121417", "131218", "121318", "121219", "1<121312", "121212121<1" ]) ], [ "limiteda", $a([ "111411", "111312", "111213", "111114", "121311", "121212", "121113", "141111", "131211", "131112", "171111", "161211", "151311", "141411", "131511", "121611", "111711", "161112", "151212", "141312", "131412", "121512", "111612", "151113", "141213", "131313", "121413", "111513", "141114", "131214", "121314", "111414", "131115", "121215", "111315", "121116", "111216", "111117", "151111", "1" ]) ], [ "limitedb", $a([ "121512", "121413", "121314", "121215", "131412", "131313", "131214", "151212", "141312", "141213", "181212", "171312", "161412", "151512", "141612", "131712", "121812", "171213", "161313", "151413", "141513", "131613", "121713", "161214", "151314", "141414", "131514", "121614", "151215", "141315", "131415", "121515", "141216", "131316", "121416", "131217", "121317", "121218", "141212", "1" ]) ] ]); - $1.encs = $get(_52, $1.version); - $1.c2w = $a([ $a([ 495, 330, 210, 126, 70, 35, 15, 5 ]), $a([ 165, 120, 84, 56, 35, 20, 10, 4 ]), $a([ 45, 36, 28, 21, 15, 10, 6, 3 ]), $a([ 9, 8, 7, 6, 5, 4, 3, 2 ]), $a([ 1, 1, 1, 1, 1, 1, 1, 1 ]) ]); - $1.v = 0; - var _5B = $1.cws; - for (var _5C = 0, _5D = _5B.length; _5C < _5D; _5C++) { - $1.cw = $get(_5B, _5C); - for (var _5F = 0, _5G = 6; _5F < _5G; _5F++) { - if ((($1.cw ^ $1.v) & 1) != 0) { - $1.v = $1.v ^ 7682; - } - $1.v = $1.v >>> 1; - $1.cw = $1.cw >>> 1; - } - } - $1.v = $1.v + $1.checkoffset; - if ($eq($1.version, "limiteda") || $eq($1.version, "limitedb")) { - $1.v = $1.v & 1023; - if ($1.v > 824 && $1.v < 853) { - $1.v = $1.v + 292; - } - } else { - $1.v = ($1.v & 1023) + 45; - } - $1.d = $a([ 2, 2, 2, 2, 2, 2 ]); - $1.r = 0; - $1.c = 0; - $1.w = 0; - $1.sum = 0; - for (;;) { - if ($1.sum == $1.v) { - break; - } - $1.t = $f($1.sum + $get($get($1.c2w, $1.r), $1.c)); - if ($1.t == $1.v) { - $1.w = $1.w + 1; - $put($1.d, $1.r, $1.w + 2); - $1.sum = $1.t; - } - if ($1.t > $1.v) { - $put($1.d, $1.r, $1.w + 2); - $1.r = $1.r + 1; - $1.w = 0; - } - if ($1.t < $1.v) { - $1.c = $1.c + 1; - $1.w = $1.w + 1; - $1.sum = $1.t; - } - } - $k[$j++] = 20; - for (var _5w = 0; _5w <= 4; _5w += 1) { - var _5z = $k[--$j]; - $k[$j++] = $f(_5z - $get($1.d, _5w)); - } - $put($1.d, 5, $k[--$j]); - if ($eq($1.version, "b") || $eq($1.version, "limitedb")) { - $k[$j++] = Infinity; - var _64 = $1.d; - for (var _65 = 0, _66 = _64.length; _65 < _66; _65++) { - $k[$j++] = $f($get(_64, _65) + 1); - } - $1.d = $a(); - } - $1.cbs = $strcpy($s(12), "111111111111"); - for (var _6B = 5; _6B >= 0; _6B -= 1) { - $1.i = _6B; - $put($1.cbs, (5 - $1.i) * 2 + 1, $f($get($1.d, $1.i) + 47)); - } - $1.sbs = $s($1.cws.length * 6 + 31); - var _6L = $get($1.encs, $1.encs.length - 2); - $puti($1.sbs, 0, _6L); - $1.j = _6L.length; - for (var _6P = 0, _6O = $1.cws.length - 1; _6P <= _6O; _6P += 1) { - $1.i = _6P; - $puti($1.sbs, $1.j, $get($1.encs, $get($1.cws, $1.i))); - $1.j = $1.j + 6; - } - $puti($1.sbs, $1.j, $1.cbs); - $1.j = $1.j + 12; - var _6e = $get($1.encs, $1.encs.length - 1); - $puti($1.sbs, $1.j, _6e); - $1.j = _6e.length + $1.j; - $1.sbs = $geti($1.sbs, 0, $1.j); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _6l = $1.sbs; - for (var _6m = 0, _6n = _6l.length; _6m < _6n; _6m++) { - $k[$j++] = $f($get(_6l, _6m) - 48); - } - var _6p = $a(); - $k[$j++] = Infinity; - for (var _6r = 0, _6s = ~~(($1.sbs.length + 1) / 2); _6r < _6s; _6r++) { - $k[$j++] = $1.height; - } - var _6u = $a(); - $k[$j++] = Infinity; - for (var _6w = 0, _6x = ~~(($1.sbs.length + 1) / 2); _6w < _6x; _6w++) { - $k[$j++] = 0; - } - var _6y = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _6p; - $k[$j++] = "bhs"; - $k[$j++] = _6u; - $k[$j++] = "bbs"; - $k[$j++] = _6y; - $k[$j++] = "txt"; - $k[$j++] = $a([ $a([ $1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ]) ]); - $k[$j++] = "textxalign"; - $k[$j++] = "center"; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _77 = $d(); - $k[$j++] = _77; - if (!$1.dontdraw) { - $0.renlinear(); - } + var _3x = $k[--$j]; //#12021 + $put($1.cws, $1.j, $get(_3x, $k[--$j])); //#12021 + $1.j = $1.j + 1; //#12022 + }; //#12023 + $1.cws = $a($1.msglen * 2); //#12025 + $1.i = 0; //#12026 + $1.j = 0; //#12026 + $1.cset = "set0"; //#12026 + for (;;) { //#12076 + if ($1.i == $1.msglen) { //#12028 + break; //#12028 + } //#12028 + for (;;) { //#12074 + $1.char1 = $get($1.msg, $1.i); //#12033 + $k[$j++] = 'char2'; //#12034 + if (($1.i + 1) < $1.msglen) { //#12034 + $k[$j++] = $get($1.msg, $1.i + 1); //#12034 + } else { //#12034 + $k[$j++] = -99; //#12034 + } //#12034 + var _4F = $k[--$j]; //#12034 + $1[$k[--$j]] = _4F; //#12034 + var _4K = $get($1[$1.cset], $1.char1) !== undefined; //#12037 + if (_4K) { //#12041 + $k[$j++] = $1.char1; //#12038 + $k[$j++] = $1[$1.cset]; //#12038 + $1.enc(); //#12038 + $1.i = $1.i + 1; //#12039 + break; //#12040 + } //#12040 + var _4R = $get($1.set2, $1.char1) !== undefined; //#12044 + if (_4R) { //#12049 + $k[$j++] = $1.sf2; //#12045 + $k[$j++] = $1[$1.cset]; //#12045 + $1.enc(); //#12045 + $k[$j++] = $1.char1; //#12046 + $k[$j++] = $1.set2; //#12046 + $1.enc(); //#12046 + $1.i = $1.i + 1; //#12047 + break; //#12048 + } //#12048 + var _4b = $get($1[$1.cset], $1.char2) !== undefined; //#12052 + if (!_4b) { //#12070 + if ($eq($1.cset, "set0")) { //#12058 + $k[$j++] = $1.la1; //#12054 + $k[$j++] = $1[$1.cset]; //#12054 + $1.enc(); //#12054 + $1.cset = "set1"; //#12055 + } else { //#12058 + $k[$j++] = $1.la0; //#12057 + $k[$j++] = $1[$1.cset]; //#12057 + $1.enc(); //#12057 + $1.cset = "set0"; //#12058 + } //#12058 + break; //#12060 + } else { //#12070 + if ($eq($1.cset, "set0")) { //#12067 + $k[$j++] = $1.sf1; //#12063 + $k[$j++] = $1[$1.cset]; //#12063 + $1.enc(); //#12063 + $k[$j++] = $1.char1; //#12064 + $k[$j++] = $1.set1; //#12064 + $1.enc(); //#12064 + } else { //#12067 + $k[$j++] = $1.sf0; //#12066 + $k[$j++] = $1[$1.cset]; //#12066 + $1.enc(); //#12066 + $k[$j++] = $1.char1; //#12067 + $k[$j++] = $1.set0; //#12067 + $1.enc(); //#12067 + } //#12067 + $1.i = $1.i + 1; //#12069 + break; //#12070 + } //#12070 + break; //#12073 + } //#12073 + } //#12073 + $1.cws = $geti($1.cws, 0, $1.j); //#12077 + } //#12077 + var _52 = new Map([ + ["a", $a(["141112", "131212", "121312", "111412", "131113", "121213", "111313", "121114", "111214", "111115", "181111", "171211", "161311", "151411", "141511", "131611", "121711", "111811", "171112", "161212", "151312", "141412", "131512", "121612", "111712", "161113", "151213", "141313", "131413", "121513", "111613", "151114", "141214", "131314", "121414", "111514", "141115", "131215", "121315", "111415", "131116", "121216", "111316", "121117", "111217", "111118", "1<111112", "111111111;1"])], + ["b", $a(["151213", "141313", "131413", "121513", "141214", "131314", "121414", "131215", "121315", "121216", "191212", "181312", "171412", "161512", "151612", "141712", "131812", "121912", "181213", "171313", "161413", "151513", "141613", "131713", "121813", "171214", "161314", "151414", "141514", "131614", "121714", "161215", "151315", "141415", "131515", "121615", "151216", "141316", "131416", "121516", "141217", "131317", "121417", "131218", "121318", "121219", "1<121312", "121212121<1"])], + ["limiteda", $a(["111411", "111312", "111213", "111114", "121311", "121212", "121113", "141111", "131211", "131112", "171111", "161211", "151311", "141411", "131511", "121611", "111711", "161112", "151212", "141312", "131412", "121512", "111612", "151113", "141213", "131313", "121413", "111513", "141114", "131214", "121314", "111414", "131115", "121215", "111315", "121116", "111216", "111117", "151111", "1"])], + ["limitedb", $a(["121512", "121413", "121314", "121215", "131412", "131313", "131214", "151212", "141312", "141213", "181212", "171312", "161412", "151512", "141612", "131712", "121812", "171213", "161313", "151413", "141513", "131613", "121713", "161214", "151314", "141414", "131514", "121614", "151215", "141315", "131415", "121515", "141216", "131316", "121416", "131217", "121317", "121218", "141212", "1"])] + ]); //#12124 + $1.encs = $get(_52, $1.version); //#12127 + $1.c2w = $a([$a([495, 330, 210, 126, 70, 35, 15, 5]), $a([165, 120, 84, 56, 35, 20, 10, 4]), $a([45, 36, 28, 21, 15, 10, 6, 3]), $a([9, 8, 7, 6, 5, 4, 3, 2]), $a([1, 1, 1, 1, 1, 1, 1, 1])]); //#12135 + $1.v = 0; //#12136 + var _5B = $1.cws; //#12137 + for (var _5C = 0, _5D = _5B.length; _5C < _5D; _5C++) { //#12146 + $1.cw = $get(_5B, _5C); //#12138 + for (var _5F = 0, _5G = 6; _5F < _5G; _5F++) { //#12145 + if ((($1.cw ^ $1.v) & 1) != 0) { //#12142 + $1.v = $1.v ^ 7682; //#12141 + } //#12141 + $1.v = $1.v >>> 1; //#12143 + $1.cw = $1.cw >>> 1; //#12144 + } //#12144 + } //#12144 + $1.v = $1.v + $1.checkoffset; //#12147 + if ($eq($1.version, "limiteda") || $eq($1.version, "limitedb")) { //#12155 + $1.v = $1.v & 1023; //#12150 + if (($1.v > 824) && ($1.v < 853)) { //#12153 + $1.v = $1.v + 292; //#12152 + } //#12152 + } else { //#12155 + $1.v = ($1.v & 1023) + 45; //#12155 + } //#12155 + $1.d = $a([2, 2, 2, 2, 2, 2]); //#12158 + $1.r = 0; //#12159 + $1.c = 0; //#12159 + $1.w = 0; //#12159 + $1.sum = 0; //#12159 + for (;;) { //#12178 + if ($1.sum == $1.v) { //#12161 + break; //#12161 + } //#12161 + $1.t = $f($1.sum + $get($get($1.c2w, $1.r), $1.c)); //#12162 + if ($1.t == $1.v) { //#12167 + $1.w = $1.w + 1; //#12164 + $put($1.d, $1.r, $1.w + 2); //#12165 + $1.sum = $1.t; //#12166 + } //#12166 + if ($1.t > $1.v) { //#12172 + $put($1.d, $1.r, $1.w + 2); //#12169 + $1.r = $1.r + 1; //#12170 + $1.w = 0; //#12171 + } //#12171 + if ($1.t < $1.v) { //#12177 + $1.c = $1.c + 1; //#12174 + $1.w = $1.w + 1; //#12175 + $1.sum = $1.t; //#12176 + } //#12176 + } //#12176 + $k[$j++] = 20; //#12179 + for (var _5w = 0; _5w <= 4; _5w += 1) { //#12179 + var _5z = $k[--$j]; //#12179 + $k[$j++] = $f(_5z - $get($1.d, _5w)); //#12179 + } //#12179 + $put($1.d, 5, $k[--$j]); //#12180 + if ($eq($1.version, "b") || $eq($1.version, "limitedb")) { //#12183 + $k[$j++] = Infinity; //#12182 + var _64 = $1.d; //#12182 + for (var _65 = 0, _66 = _64.length; _65 < _66; _65++) { //#12182 + $k[$j++] = $f($get(_64, _65) + 1); //#12182 + } //#12182 + $1.d = $a(); //#12182 + } //#12182 + $1.cbs = $strcpy($s(12), "111111111111"); //#12184 + for (var _6B = 5; _6B >= 0; _6B -= 1) { //#12188 + $1.i = _6B; //#12186 + $put($1.cbs, ((5 - $1.i) * 2) + 1, $f($get($1.d, $1.i) + 47)); //#12187 + } //#12187 + $1.sbs = $s(($1.cws.length * 6) + 31); //#12191 + var _6L = $get($1.encs, $1.encs.length - 2); //#12192 + $puti($1.sbs, 0, _6L); //#12193 + $1.j = _6L.length; //#12194 + for (var _6P = 0, _6O = $1.cws.length - 1; _6P <= _6O; _6P += 1) { //#12199 + $1.i = _6P; //#12196 + $puti($1.sbs, $1.j, $get($1.encs, $get($1.cws, $1.i))); //#12197 + $1.j = $1.j + 6; //#12198 + } //#12198 + $puti($1.sbs, $1.j, $1.cbs); //#12200 + $1.j = $1.j + 12; //#12201 + var _6e = $get($1.encs, $1.encs.length - 1); //#12202 + $puti($1.sbs, $1.j, _6e); //#12203 + $1.j = _6e.length + $1.j; //#12204 + $1.sbs = $geti($1.sbs, 0, $1.j); //#12205 + $k[$j++] = Infinity; //#12215 + $k[$j++] = Infinity; //#12210 + var _6l = $1.sbs; //#12210 + for (var _6m = 0, _6n = _6l.length; _6m < _6n; _6m++) { //#12210 + $k[$j++] = $f($get(_6l, _6m) - 48); //#12210 + } //#12210 + var _6p = $a(); //#12210 + $k[$j++] = Infinity; //#12211 + for (var _6r = 0, _6s = ~~(($1.sbs.length + 1) / 2); _6r < _6s; _6r++) { //#12211 + $k[$j++] = $1.height; //#12211 + } //#12211 + var _6u = $a(); //#12211 + $k[$j++] = Infinity; //#12212 + for (var _6w = 0, _6x = ~~(($1.sbs.length + 1) / 2); _6w < _6x; _6w++) { //#12212 + $k[$j++] = 0; //#12212 + } //#12212 + var _6y = $a(); //#12212 + $k[$j++] = 'ren'; //#12215 + $k[$j++] = $0.renlinear; //#12215 + $k[$j++] = 'sbs'; //#12215 + $k[$j++] = _6p; //#12215 + $k[$j++] = 'bhs'; //#12215 + $k[$j++] = _6u; //#12215 + $k[$j++] = 'bbs'; //#12215 + $k[$j++] = _6y; //#12215 + $k[$j++] = 'txt'; //#12215 + $k[$j++] = $a([$a([$1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])]); //#12215 + $k[$j++] = 'textxalign'; //#12215 + $k[$j++] = "center"; //#12215 + $k[$j++] = 'opt'; //#12215 + $k[$j++] = $1.options; //#12215 + var _77 = $d(); //#12215 + $k[$j++] = _77; //#12218 + if (!$1.dontdraw) { //#12218 + $0.renlinear(); //#12218 + } //#12218 }; $0.codablockf = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.rows = -1; - $1.columns = 8; - $1.rowheight = 10; - $1.sepheight = 1; - $1.parse = false; - $1.parsefnc = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.rows = ~~$1.rows; - $1.columns = ~~$1.columns; - $1.rowheight = ~~$1.rowheight; - $1.sepheight = ~~$1.sepheight; - $k[$j++] = "c"; - if ($1.columns >= 4 && $1.columns <= 62) { - $k[$j++] = $1.columns; - } else { - $k[$j++] = 8; - } - var _C = $k[--$j]; - $1[$k[--$j]] = _C; - $k[$j++] = "rows"; - if ($1.rows >= 2 && $1.rows <= 44) { - $k[$j++] = $1.rows; - } else { - $k[$j++] = -1; - } - var _H = $k[--$j]; - $1[$k[--$j]] = _H; - $1.swa = -1; - $1.swb = -2; - $1.swc = -3; - $1.sft = -4; - $1.fn1 = -5; - $1.fn2 = -6; - $1.fn3 = -7; - $1.fn4 = -8; - $1.sta = -9; - $1.stp = -10; - var _N = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "FNC1", $1.fn1 ], [ "FNC3", $1.fn3 ] ]); - $1.fncvals = _N; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _Q = $k[--$j]; - $1[$k[--$j]] = _Q; - $1.msglen = $1.msg.length; - $1.msgtmp = $a([]); - var _U = $1.msg; - for (var _V = 0, _W = _U.length; _V < _W; _V++) { - $1.char = $get(_U, _V); - $k[$j++] = Infinity; - $aload($1.msgtmp); - if ($1.char < 128) { - $k[$j++] = $1.char; - } else { - $k[$j++] = $1.fn4; - $k[$j++] = $1.char & 127; - } - $1.msgtmp = $a(); - } - $1.msg = $1.msgtmp; - $1.msglen = $1.msg.length; - $1.charmaps = $a([ $a([ 32, 32, "00" ]), $a([ "!", "!", "01" ]), $a([ '"', '"', "02" ]), $a([ "#", "#", "03" ]), $a([ "$", "$", "04" ]), $a([ "%", "%", "05" ]), $a([ "&", "&", "06" ]), $a([ "'", "'", "07" ]), $a([ 40, 40, "08" ]), $a([ 41, 41, "09" ]), $a([ "*", "*", "10" ]), $a([ "+", "+", "11" ]), $a([ ",", ",", "12" ]), $a([ "-", "-", "13" ]), $a([ ".", ".", "14" ]), $a([ "/", "/", "15" ]), $a([ "0", "0", "16" ]), $a([ "1", "1", "17" ]), $a([ "2", "2", "18" ]), $a([ "3", "3", "19" ]), $a([ "4", "4", "20" ]), $a([ "5", "5", "21" ]), $a([ "6", "6", "22" ]), $a([ "7", "7", "23" ]), $a([ "8", "8", "24" ]), $a([ "9", "9", "25" ]), $a([ ":", ":", "26" ]), $a([ ";", ";", "27" ]), $a([ "<", "<", "28" ]), $a([ "=", "=", "29" ]), $a([ ">", ">", "30" ]), $a([ "?", "?", "31" ]), $a([ "@", "@", "32" ]), $a([ "A", "A", "33" ]), $a([ "B", "B", "34" ]), $a([ "C", "C", "35" ]), $a([ "D", "D", "36" ]), $a([ "E", "E", "37" ]), $a([ "F", "F", "38" ]), $a([ "G", "G", "39" ]), $a([ "H", "H", "40" ]), $a([ "I", "I", "41" ]), $a([ "J", "J", "42" ]), $a([ "K", "K", "43" ]), $a([ "L", "L", "44" ]), $a([ "M", "M", "45" ]), $a([ "N", "N", "46" ]), $a([ "O", "O", "47" ]), $a([ "P", "P", "48" ]), $a([ "Q", "Q", "49" ]), $a([ "R", "R", "50" ]), $a([ "S", "S", "51" ]), $a([ "T", "T", "52" ]), $a([ "U", "U", "53" ]), $a([ "V", "V", "54" ]), $a([ "W", "W", "55" ]), $a([ "X", "X", "56" ]), $a([ "Y", "Y", "57" ]), $a([ "Z", "Z", "58" ]), $a([ "[", "[", "59" ]), $a([ 92, 92, "60" ]), $a([ "]", "]", "61" ]), $a([ "^", "^", "62" ]), $a([ "_", "_", "63" ]), $a([ 0, "`", "64" ]), $a([ 1, "a", "65" ]), $a([ 2, "b", "66" ]), $a([ 3, "c", "67" ]), $a([ 4, "d", "68" ]), $a([ 5, "e", "69" ]), $a([ 6, "f", "70" ]), $a([ 7, "g", "71" ]), $a([ 8, "h", "72" ]), $a([ 9, "i", "73" ]), $a([ 10, "j", "74" ]), $a([ 11, "k", "75" ]), $a([ 12, "l", "76" ]), $a([ 13, "m", "77" ]), $a([ 14, "n", "78" ]), $a([ 15, "o", "79" ]), $a([ 16, "p", "80" ]), $a([ 17, "q", "81" ]), $a([ 18, "r", "82" ]), $a([ 19, "s", "83" ]), $a([ 20, "t", "84" ]), $a([ 21, "u", "85" ]), $a([ 22, "v", "86" ]), $a([ 23, "w", "87" ]), $a([ 24, "x", "88" ]), $a([ 25, "y", "89" ]), $a([ 26, "z", "90" ]), $a([ 27, "{", "91" ]), $a([ 28, "|", "92" ]), $a([ 29, "}", "93" ]), $a([ 30, "~", "94" ]), $a([ 31, 127, "95" ]), $a([ $1.fn3, $1.fn3, "96" ]), $a([ $1.fn2, $1.fn2, "97" ]), $a([ $1.sft, $1.sft, "98" ]), $a([ $1.swc, $1.swc, "99" ]), $a([ $1.swb, $1.fn4, $1.swb ]), $a([ $1.fn4, $1.swa, $1.swa ]), $a([ $1.fn1, $1.fn1, $1.fn1 ]), $a([ $1.sta, $1.sta, $1.sta ]), $a([ $1.stp, $1.stp, $1.stp ]) ]); - $1.charvals = $a([ new Map(), new Map(), new Map() ]); - for (var _2o = 0, _2n = $1.charmaps.length - 1; _2o <= _2n; _2o += 1) { - $1.i = _2o; - $1.encs = $get($1.charmaps, $1.i); - for (var _2s = 0; _2s <= 2; _2s += 1) { - $1.j = _2s; - var _2v = $get($1.encs, $1.j); - $k[$j++] = _2v; - if ($eq($type(_2v), "stringtype")) { - var _2y = $get($k[--$j], 0); - $k[$j++] = _2y; - } - $put($get($1.charvals, $1.j), $k[--$j], $1.i); - } - } - $1.seta = $get($1.charvals, 0); - $1.setb = $get($1.charvals, 1); - $1.setc = $get($1.charvals, 2); + var $1 = {}; //#12248 + $1.options = $k[--$j]; //#12250 + $1.barcode = $k[--$j]; //#12251 + $1.dontdraw = false; //#12253 + $1.rows = -1; //#12254 + $1.columns = 8; //#12255 + $1.rowheight = 10; //#12256 + $1.sepheight = 1; //#12257 + $1.parse = false; //#12258 + $1.parsefnc = false; //#12259 + $forall($1.options, function() { //#12270 + var _3 = $k[--$j]; //#12270 + $1[$k[--$j]] = _3; //#12270 + }); //#12270 + $1.rows = ~~$1.rows; //#12272 + $1.columns = ~~$1.columns; //#12273 + $1.rowheight = ~~$1.rowheight; //#12274 + $1.sepheight = ~~$1.sepheight; //#12275 + $k[$j++] = 'c'; //#12277 + if (($1.columns >= 4) && ($1.columns <= 62)) { //#12277 + $k[$j++] = $1.columns; //#12277 + } else { //#12277 + $k[$j++] = 8; //#12277 + } //#12277 + var _C = $k[--$j]; //#12277 + $1[$k[--$j]] = _C; //#12277 + $k[$j++] = 'rows'; //#12278 + if (($1.rows >= 2) && ($1.rows <= 44)) { //#12278 + $k[$j++] = $1.rows; //#12278 + } else { //#12278 + $k[$j++] = -1; //#12278 + } //#12278 + var _H = $k[--$j]; //#12278 + $1[$k[--$j]] = _H; //#12278 + $1.swa = -1; //#12281 + $1.swb = -2; //#12281 + $1.swc = -3; //#12281 + $1.sft = -4; //#12281 + $1.fn1 = -5; //#12282 + $1.fn2 = -6; //#12282 + $1.fn3 = -7; //#12282 + $1.fn4 = -8; //#12282 + $1.sta = -9; //#12283 + $1.stp = -10; //#12283 + var _N = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["FNC1", $1.fn1], + ["FNC3", $1.fn3] + ]); //#12291 + $1.fncvals = _N; //#12293 + $k[$j++] = 'msg'; //#12294 + $k[$j++] = $1.barcode; //#12294 + $k[$j++] = $1.fncvals; //#12294 + $0.parseinput(); //#12294 + var _Q = $k[--$j]; //#12294 + $1[$k[--$j]] = _Q; //#12294 + $1.msglen = $1.msg.length; //#12295 + $1.msgtmp = $a([]); //#12298 + var _U = $1.msg; //#12299 + for (var _V = 0, _W = _U.length; _V < _W; _V++) { //#12302 + $1.char = $get(_U, _V); //#12300 + $k[$j++] = Infinity; //#12301 + $aload($1.msgtmp); //#12301 + if ($1.char < 128) { //#12301 + $k[$j++] = $1.char; //#12301 + } else { //#12301 + $k[$j++] = $1.fn4; //#12301 + $k[$j++] = $1.char & 127; //#12301 + } //#12301 + $1.msgtmp = $a(); //#12301 + } //#12301 + $1.msg = $1.msgtmp; //#12303 + $1.msglen = $1.msg.length; //#12304 + $1.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$1.fn3, $1.fn3, "96"]), $a([$1.fn2, $1.fn2, "97"]), $a([$1.sft, $1.sft, "98"]), $a([$1.swc, $1.swc, "99"]), $a([$1.swb, $1.fn4, $1.swb]), $a([$1.fn4, $1.swa, $1.swa]), $a([$1.fn1, $1.fn1, $1.fn1]), $a([$1.sta, $1.sta, $1.sta]), $a([$1.stp, $1.stp, $1.stp])]); //#12344 + $1.charvals = $a([new Map, new Map, new Map]); //#12347 + for (var _2o = 0, _2n = $1.charmaps.length - 1; _2o <= _2n; _2o += 1) { //#12356 + $1.i = _2o; //#12349 + $1.encs = $get($1.charmaps, $1.i); //#12350 + for (var _2s = 0; _2s <= 2; _2s += 1) { //#12355 + $1.j = _2s; //#12352 + var _2v = $get($1.encs, $1.j); //#12353 + $k[$j++] = _2v; //#12353 + if ($eq($type(_2v), 'stringtype')) { //#12353 + var _2y = $get($k[--$j], 0); //#12353 + $k[$j++] = _2y; //#12353 + } //#12353 + $put($get($1.charvals, $1.j), $k[--$j], $1.i); //#12354 + } //#12354 + } //#12354 + $1.seta = $get($1.charvals, 0); //#12357 + $1.setb = $get($1.charvals, 1); //#12358 + $1.setc = $get($1.charvals, 2); //#12359 $1.numsscr = function() { - $1.n = 0; - $1.s = 0; - $1.p = $k[--$j]; - for (;;) { - if ($1.p >= $1.msglen) { - break; - } - var _3F = $get($1.msg, $1.p); - var _3H = $get($1.setc, _3F) !== undefined; - $k[$j++] = _3F; - if (!_3H) { - $j--; - break; - } - if ($k[--$j] == $1.fn1) { - if ($1.s % 2 == 0) { - $1.s = $1.s + 1; - } else { - break; - } - } - $1.n = $1.n + 1; - $1.s = $1.s + 1; - $1.p = $f($1.p + 1); - } - $k[$j++] = $1.n; - $k[$j++] = $1.s; - }; + $1.n = 0; //#12363 + $1.s = 0; //#12363 + $1.p = $k[--$j]; //#12364 + for (;;) { //#12375 + if ($1.p >= $1.msglen) { //#12365 + break; //#12365 + } //#12365 + var _3F = $get($1.msg, $1.p); //#12366 + var _3H = $get($1.setc, _3F) !== undefined; //#12367 + $k[$j++] = _3F; //#12367 + if (!_3H) { //#12367 + $j--; //#12367 + break; //#12367 + } //#12367 + if ($k[--$j] == $1.fn1) { //#12371 + if (($1.s % 2) == 0) { //#12370 + $1.s = $1.s + 1; //#12370 + } else { //#12370 + break; //#12370 + } //#12370 + } //#12370 + $1.n = $1.n + 1; //#12372 + $1.s = $1.s + 1; //#12373 + $1.p = $f($1.p + 1); //#12374 + } //#12374 + $k[$j++] = $1.n; //#12376 + $k[$j++] = $1.s; //#12376 + }; //#12377 $1.enca = function() { - $put($1.cws, $1.j, $get($1.seta, $k[--$j])); - $1.j = $1.j + 1; - }; + $put($1.cws, $1.j, $get($1.seta, $k[--$j])); //#12381 + $1.j = $1.j + 1; //#12382 + }; //#12383 $1.encb = function() { - $put($1.cws, $1.j, $get($1.setb, $k[--$j])); - $1.j = $1.j + 1; - }; + $put($1.cws, $1.j, $get($1.setb, $k[--$j])); //#12385 + $1.j = $1.j + 1; //#12386 + }; //#12387 $1.encc = function() { - var _3d = $k[--$j]; - $k[$j++] = _3d; - if ($ne($type(_3d), "arraytype")) { - var _3h = $get($1.setc, $k[--$j]); - $k[$j++] = _3h; - } else { - $aload($k[--$j]); - var _3j = $k[--$j]; - var _3k = $k[--$j]; - $k[$j++] = $f($f(_3j - 48) + $f(_3k - 48) * 10); - } - $put($1.cws, $1.j, $k[--$j]); - $1.j = $1.j + 1; - }; + var _3d = $k[--$j]; //#12389 + $k[$j++] = _3d; //#12393 + if ($ne($type(_3d), 'arraytype')) { //#12392 + var _3h = $get($1.setc, $k[--$j]); //#12390 + $k[$j++] = _3h; //#12390 + } else { //#12392 + $aload($k[--$j]); //#12392 + var _3j = $k[--$j]; //#12392 + var _3k = $k[--$j]; //#12392 + $k[$j++] = $f($f(_3j - 48) + ($f(_3k - 48) * 10)); //#12392 + } //#12392 + $put($1.cws, $1.j, $k[--$j]); //#12394 + $1.j = $1.j + 1; //#12395 + }; //#12396 $1.anotb = function() { - var _3p = $k[--$j]; - var _3r = $get($1.seta, _3p) !== undefined; - var _3t = $get($1.setb, _3p) !== undefined; - $k[$j++] = _3r && !_3t; - }; + var _3p = $k[--$j]; //#12399 + var _3r = $get($1.seta, _3p) !== undefined; //#12399 + var _3t = $get($1.setb, _3p) !== undefined; //#12399 + $k[$j++] = _3r && (!_3t); //#12399 + }; //#12399 $1.bnota = function() { - var _3u = $k[--$j]; - var _3w = $get($1.setb, _3u) !== undefined; - var _3y = $get($1.seta, _3u) !== undefined; - $k[$j++] = _3w && !_3y; - }; - $k[$j++] = Infinity; - for (var _40 = 0, _41 = $1.msg.length; _40 < _41; _40++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextanotb = $a(); - $k[$j++] = Infinity; - for (var _44 = 0, _45 = $1.msg.length; _44 < _45; _44++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextbnota = $a(); - for (var _48 = $1.msg.length - 1; _48 >= 0; _48 -= 1) { - $1.i = _48; - $k[$j++] = $get($1.msg, $1.i); - $1.anotb(); - if ($k[--$j]) { - $put($1.nextanotb, $1.i, 0); - } else { - $put($1.nextanotb, $1.i, $f($get($1.nextanotb, $1.i + 1) + 1)); - } - $k[$j++] = $get($1.msg, $1.i); - $1.bnota(); - if ($k[--$j]) { - $put($1.nextbnota, $1.i, 0); - } else { - $put($1.nextbnota, $1.i, $f($get($1.nextbnota, $1.i + 1) + 1)); - } - } + var _3u = $k[--$j]; //#12400 + var _3w = $get($1.setb, _3u) !== undefined; //#12400 + var _3y = $get($1.seta, _3u) !== undefined; //#12400 + $k[$j++] = _3w && (!_3y); //#12400 + }; //#12400 + $k[$j++] = Infinity; //#12403 + for (var _40 = 0, _41 = $1.msg.length; _40 < _41; _40++) { //#12403 + $k[$j++] = 0; //#12403 + } //#12403 + $k[$j++] = 9999; //#12403 + $1.nextanotb = $a(); //#12403 + $k[$j++] = Infinity; //#12404 + for (var _44 = 0, _45 = $1.msg.length; _44 < _45; _44++) { //#12404 + $k[$j++] = 0; //#12404 + } //#12404 + $k[$j++] = 9999; //#12404 + $1.nextbnota = $a(); //#12404 + for (var _48 = $1.msg.length - 1; _48 >= 0; _48 -= 1) { //#12417 + $1.i = _48; //#12406 + $k[$j++] = $get($1.msg, $1.i); //#12407 + $1.anotb(); //#12407 + if ($k[--$j]) { //#12410 + $put($1.nextanotb, $1.i, 0); //#12408 + } else { //#12410 + $put($1.nextanotb, $1.i, $f($get($1.nextanotb, $1.i + 1) + 1)); //#12410 + } //#12410 + $k[$j++] = $get($1.msg, $1.i); //#12412 + $1.bnota(); //#12412 + if ($k[--$j]) { //#12415 + $put($1.nextbnota, $1.i, 0); //#12413 + } else { //#12415 + $put($1.nextbnota, $1.i, $f($get($1.nextbnota, $1.i + 1) + 1)); //#12415 + } //#12415 + } //#12415 $1.abeforeb = function() { - var _4V = $k[--$j]; - $k[$j++] = $lt($get($1.nextanotb, _4V), $get($1.nextbnota, _4V)); - }; + var _4V = $k[--$j]; //#12420 + $k[$j++] = $lt($get($1.nextanotb, _4V), $get($1.nextbnota, _4V)); //#12420 + }; //#12420 $1.bbeforea = function() { - var _4a = $k[--$j]; - $k[$j++] = $lt($get($1.nextbnota, _4a), $get($1.nextanotb, _4a)); - }; + var _4a = $k[--$j]; //#12421 + $k[$j++] = $lt($get($1.nextbnota, _4a), $get($1.nextanotb, _4a)); //#12421 + }; //#12421 $1.padrow = function() { - for (var _4g = 0, _4h = $k[--$j]; _4g < _4h; _4g++) { - for (;;) { - if ($eq($1.cset, "seta")) { - $k[$j++] = $1.swc; - $1.enca(); - $1.cset = "setc"; - break; - } - if ($eq($1.cset, "setb")) { - $k[$j++] = $1.swc; - $1.encb(); - $1.cset = "setc"; - break; - } - if ($eq($1.cset, "setc")) { - $k[$j++] = $1.swb; - $1.encc(); - $1.cset = "setb"; - break; - } - } - } - }; - $1.cws = $a($f($1.c + 5) * 44); - $1.i = 0; - $1.j = 0; - $1.r = 1; - $1.lastrow = false; - for (;;) { - if ($1.lastrow) { - break; - } - $k[$j++] = $1.sta; - $1.enca(); - if ($1.i < $1.msglen) { - $k[$j++] = $1.i; - $1.numsscr(); - } else { - $k[$j++] = -1; - $k[$j++] = -1; - } - $1.nums = $k[--$j]; - $1.nchars = $k[--$j]; - for (;;) { - if ($1.msglen == 0) { - $k[$j++] = $1.swb; - $1.enca(); - $1.cset = "setb"; - break; - } - if ($1.nums >= 2) { - $k[$j++] = $1.swc; - $1.enca(); - $1.cset = "setc"; - break; - } - $k[$j++] = $1.i; - $1.abeforeb(); - if ($k[--$j]) { - $k[$j++] = $1.sft; - $1.enca(); - $1.cset = "seta"; - break; - } - $k[$j++] = $1.swb; - $1.enca(); - $1.cset = "setb"; - break; - } - $1.j = $1.j + 1; - $1.endofrow = false; - for (;;) { - $1.rem = $f($f($1.c + 3) - $1.j % $f($1.c + 5)); - if ($1.i == $1.msglen || $1.endofrow) { - break; - } - $k[$j++] = $1.i; - $1.numsscr(); - $1.nums = $k[--$j]; - $1.nchars = $k[--$j]; - $k[$j++] = "remnums"; - if ($1.nums > $1.rem * 2) { - $k[$j++] = $1.rem * 2; - } else { - $k[$j++] = $1.nums; - } - var _5J = $k[--$j]; - $1[$k[--$j]] = _5J; - for (;;) { - if (($eq($1.cset, "seta") || $eq($1.cset, "setb")) && $1.remnums >= 4 && $get($1.msg, $1.i) != $1.fn1) { - if ($1.remnums % 2 == 0 && $1.rem >= 3) { - $k[$j++] = $1.swc; - if ($eq($1.cset, "seta")) { - $1.enca(); - } else { - $1.encb(); - } - $1.cset = "setc"; - for (var _5W = 0, _5X = 2; _5W < _5X; _5W++) { - if ($get($1.msg, $1.i) == $1.fn1) { - $k[$j++] = $1.fn1; - $1.encc(); - $1.i = $1.i + 1; - } else { - $k[$j++] = $geti($1.msg, $1.i, 2); - $1.encc(); - $1.i = $1.i + 2; - } - } - break; - } - if ($1.remnums % 2 != 0 && $1.rem >= 4) { - $k[$j++] = $get($1.msg, $1.i); - if ($eq($1.cset, "seta")) { - $1.enca(); - } else { - $1.encb(); - } - $1.i = $1.i + 1; - $k[$j++] = $1.swc; - if ($eq($1.cset, "seta")) { - $1.enca(); - } else { - $1.encb(); - } - $1.cset = "setc"; - for (var _5r = 0, _5s = 2; _5r < _5s; _5r++) { - if ($get($1.msg, $1.i) == $1.fn1) { - $k[$j++] = $1.fn1; - $1.encc(); - $1.i = $1.i + 1; - } else { - $k[$j++] = $geti($1.msg, $1.i, 2); - $1.encc(); - $1.i = $1.i + 2; - } - } - break; - } - } - $k[$j++] = $eq($1.cset, "setb"); - $k[$j++] = $get($1.msg, $1.i); - $1.anotb(); - var _67 = $k[--$j]; - var _68 = $k[--$j]; - if (_68 && _67 && $1.rem >= 2) { - if ($1.i < $1.msglen - 1) { - $k[$j++] = $1.i + 1; - $1.bbeforea(); - if ($k[--$j]) { - $k[$j++] = $1.sft; - $1.encb(); - $k[$j++] = $get($1.msg, $1.i); - $1.enca(); - $1.i = $1.i + 1; - break; - } - } - $k[$j++] = $1.swa; - $1.encb(); - $1.cset = "seta"; - $k[$j++] = $get($1.msg, $1.i); - $1.enca(); - $1.i = $1.i + 1; - break; - } - $k[$j++] = $eq($1.cset, "seta"); - $k[$j++] = $get($1.msg, $1.i); - $1.bnota(); - var _6S = $k[--$j]; - var _6T = $k[--$j]; - if (_6T && _6S && $1.rem >= 2) { - if ($1.i < $1.msglen - 1) { - $k[$j++] = $1.i + 1; - $1.abeforeb(); - if ($k[--$j]) { - $k[$j++] = $1.sft; - $1.enca(); - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $1.i = $1.i + 1; - break; - } - } - $k[$j++] = $1.swb; - $1.enca(); - $1.cset = "setb"; - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $1.i = $1.i + 1; - break; - } - if ($eq($1.cset, "setc") && $1.remnums < 2 && $1.rem >= 2) { - $k[$j++] = $1.i; - $1.abeforeb(); - if ($k[--$j]) { - $k[$j++] = $1.swa; - $1.encc(); - $1.cset = "seta"; - $k[$j++] = $get($1.msg, $1.i); - $1.enca(); - $1.i = $1.i + 1; - break; - } - $k[$j++] = $1.swb; - $1.encc(); - $1.cset = "setb"; - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $1.i = $1.i + 1; - break; - } - var _73 = $get($1.seta, $get($1.msg, $1.i)) !== undefined; - if ($eq($1.cset, "seta") && _73 && $1.rem >= 1) { - $k[$j++] = $get($1.msg, $1.i); - $1.enca(); - $1.i = $1.i + 1; - break; - } - var _7E = $get($1.setb, $get($1.msg, $1.i)) !== undefined; - if ($eq($1.cset, "setb") && _7E && $1.rem >= 1) { - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $1.i = $1.i + 1; - break; - } - if ($eq($1.cset, "setc") && $1.remnums >= 2 && $1.rem >= 1) { - if ($get($1.msg, $1.i) == $1.fn1) { - $k[$j++] = $1.fn1; - $1.encc(); - $1.i = $1.i + 1; - } else { - $k[$j++] = $geti($1.msg, $1.i, 2); - $1.encc(); - $1.i = $1.i + 2; - } - break; - } - $1.endofrow = true; - break; - } - } - if (($1.r >= $1.rows || $1.rows == -1) && $1.r > 1 && $1.i == $1.msglen && $1.rem >= 2) { - $k[$j++] = $f($1.rem - 2); - $1.padrow(); - $1.j = $1.j + 3; - $k[$j++] = $1.stp; - $1.enca(); - $1.lastrow = true; - } else { - $k[$j++] = $1.rem; - $1.padrow(); - $1.j = $1.j + 1; - $k[$j++] = $1.stp; - $1.enca(); - $1.r = $1.r + 1; - } - } - $1.cws = $geti($1.cws, 0, $1.j); - $k[$j++] = Infinity; - for (var _7o = 64; _7o <= 95; _7o += 1) { - $k[$j++] = _7o; - } - for (var _7p = 0; _7p <= 15; _7p += 1) { - $k[$j++] = _7p; - } - for (var _7q = 26; _7q <= 63; _7q += 1) { - $k[$j++] = _7q; - } - $1.abmap = $a(); - $k[$j++] = Infinity; - for (var _7s = 0; _7s <= 85; _7s += 1) { - $k[$j++] = _7s; - } - $1.cmap = $a(); - $1.chkmsg = $a($1.msglen); - $1.j = 0; - for (var _7y = 0, _7x = $1.msglen - 1; _7y <= _7x; _7y += 1) { - $1.i = _7y; - $1.char = $get($1.msg, $1.i); - if ($1.char >= 0) { - $put($1.chkmsg, $1.j, $1.char); - $1.j = $1.j + 1; - } - if ($1.char == $1.fn1 && $1.i != 0) { - $put($1.chkmsg, $1.j, 29); - $1.j = $1.j + 1; - } - } - $1.t1 = 0; - $1.t2 = 0; - $1.k1 = 0; - $1.k2 = 0; - for (var _8F = 0, _8E = $1.j - 1; _8F <= _8E; _8F += 1) { - $1.i = _8F; - $1.t1 = $get($1.chkmsg, $1.i) * $1.i % 86; - $1.t2 = $f($1.t1 + $get($1.chkmsg, $1.i)) % 86; - $1.k1 = $f($1.k1 + $1.t2) % 86; - $1.k2 = $f($1.k2 + $1.t1) % 86; - } - $k[$j++] = $1.cws; - $k[$j++] = $1.cws.length - 4; - if ($ne($1.cset, "setc")) { - $k[$j++] = $1.abmap; - } else { - $k[$j++] = $1.cmap; - } - var _8Z = $get($k[--$j], $1.k1); - var _8a = $k[--$j]; - $put($k[--$j], _8a, _8Z); - $k[$j++] = $1.cws; - $k[$j++] = $1.cws.length - 3; - if ($ne($1.cset, "setc")) { - $k[$j++] = $1.abmap; - } else { - $k[$j++] = $1.cmap; - } - var _8j = $get($k[--$j], $1.k2); - var _8k = $k[--$j]; - $put($k[--$j], _8k, _8j); - var _8m = $1.cws; - $k[$j++] = _8m; - $k[$j++] = 2; - if ($get(_8m, 2 - 1) != 99) { - $k[$j++] = $1.abmap; - } else { - $k[$j++] = $1.cmap; - } - var _8s = $get($k[--$j], $1.r - 2); - var _8t = $k[--$j]; - $put($k[--$j], _8t, _8s); - for (var _8x = 1, _8w = $1.r - 1; _8x <= _8w; _8x += 1) { - $1.i = _8x; - var _8y = $1.cws; - var _8z = $1.i; - var _90 = $1.c; - $k[$j++] = _8y; - $k[$j++] = $f(_8z * $f(_90 + 5) + 2); - if ($get(_8y, $f($f(_8z * $f(_90 + 5) + 2) - 1)) != 99) { - $k[$j++] = $1.abmap; - } else { - $k[$j++] = $1.cmap; - } - var _96 = $get($k[--$j], $1.i + 42); - var _97 = $k[--$j]; - $put($k[--$j], _97, _96); - } - for (var _9B = 0, _9A = $1.r - 1; _9B <= _9A; _9B += 1) { - $1.rcws = $geti($1.cws, _9B * $f($1.c + 5), $f($1.c + 4)); - $1.csum = $get($1.rcws, 0); - for (var _9K = 1, _9J = $1.rcws.length - 2; _9K <= _9J; _9K += 1) { - $1.i = _9K; - $1.csum = $f($1.csum + $get($1.rcws, $1.i) * $1.i); - } - $put($1.rcws, $1.rcws.length - 1, $1.csum % 103); - } - $1.encs = $a([ "212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "2331112" ]); - $1.rowbits = $a($1.r); - for (var _9Y = 0, _9X = $1.r - 1; _9Y <= _9X; _9Y += 1) { - $1.i = _9Y; - $k[$j++] = Infinity; - var _9d = $geti($1.cws, $1.i * $f($1.c + 5), $f($1.c + 5)); - for (var _9e = 0, _9f = _9d.length; _9e < _9f; _9e++) { - $forall($get($1.encs, $get(_9d, _9e)), function() { - var _9j = $k[--$j]; - $k[$j++] = $f(_9j - 48); - }); - } - $1.sbs = $a(); - $k[$j++] = Infinity; - var _9l = $1.sbs; - $k[$j++] = 0; - for (var _9m = 0, _9n = _9l.length; _9m < _9n; _9m++) { - var _9p = $k[--$j]; - var _9q = _9p == 1 ? 0 : 1; - $k[$j++] = _9p; - for (var _9r = 0, _9s = $get(_9l, _9m); _9r < _9s; _9r++) { - $k[$j++] = _9q; - } - } - $astore($a($counttomark() - 1)); - var _9v = $k[--$j]; - var _9w = $k[--$j]; - $k[$j++] = _9v; - $k[$j++] = _9w; - $j--; - var _9x = $k[--$j]; - var _9y = $k[--$j]; - $k[$j++] = _9x; - $k[$j++] = _9y; - $j--; - $put($1.rowbits, $1.i, $k[--$j]); - } - $1.symwid = $f($1.c * 11 + 57); - $k[$j++] = Infinity; - for (var _A5 = 0, _A6 = $1.symwid * $1.sepheight; _A5 < _A6; _A5++) { - $k[$j++] = 1; - } - for (var _A9 = 0, _A8 = $1.r - 2; _A9 <= _A8; _A9 += 1) { - $1.i = _A9; - for (var _AB = 0, _AC = $1.rowheight; _AB < _AC; _AB++) { - $aload($get($1.rowbits, $1.i)); - } - for (var _AH = 0, _AI = $1.sepheight; _AH < _AI; _AH++) { - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 0; - for (var _AK = 0, _AL = $f($1.symwid - 24); _AK < _AL; _AK++) { - $k[$j++] = 1; - } - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 1; - } - } - for (var _AN = 0, _AO = $1.rowheight; _AN < _AO; _AN++) { - $aload($get($1.rowbits, $1.r - 1)); - } - for (var _AU = 0, _AV = $1.symwid * $1.sepheight; _AU < _AV; _AU++) { - $k[$j++] = 1; - } - $1.pixs = $a(); - var _Af = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", $1.symwid ], [ "pixy", ~~($1.pixs.length / $1.symwid) ], [ "height", ~~($1.pixs.length / $1.symwid) / 72 ], [ "width", $1.symwid / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _Af; - if (!$1.dontdraw) { - $0.renmatrix(); - } + for (var _4g = 0, _4h = $k[--$j]; _4g < _4h; _4g++) { //#12431 + for (;;) { //#12430 + if ($eq($1.cset, "seta")) { //#12427 + $k[$j++] = $1.swc; //#12427 + $1.enca(); //#12427 + $1.cset = "setc"; //#12427 + break; //#12427 + } //#12427 + if ($eq($1.cset, "setb")) { //#12428 + $k[$j++] = $1.swc; //#12428 + $1.encb(); //#12428 + $1.cset = "setc"; //#12428 + break; //#12428 + } //#12428 + if ($eq($1.cset, "setc")) { //#12429 + $k[$j++] = $1.swb; //#12429 + $1.encc(); //#12429 + $1.cset = "setb"; //#12429 + break; //#12429 + } //#12429 + } //#12429 + } //#12429 + }; //#12432 + $1.cws = $a($f($1.c + 5) * 44); //#12435 + $1.i = 0; //#12437 + $1.j = 0; //#12437 + $1.r = 1; //#12437 + $1.lastrow = false; //#12438 + for (;;) { //#12607 + if ($1.lastrow) { //#12440 + break; //#12440 + } //#12440 + $k[$j++] = $1.sta; //#12443 + $1.enca(); //#12443 + if ($1.i < $1.msglen) { //#12444 + $k[$j++] = $1.i; //#12444 + $1.numsscr(); //#12444 + } else { //#12444 + $k[$j++] = -1; //#12444 + $k[$j++] = -1; //#12444 + } //#12444 + $1.nums = $k[--$j]; //#12444 + $1.nchars = $k[--$j]; //#12444 + for (;;) { //#12464 + if ($1.msglen == 0) { //#12450 + $k[$j++] = $1.swb; //#12447 + $1.enca(); //#12447 + $1.cset = "setb"; //#12448 + break; //#12449 + } //#12449 + if ($1.nums >= 2) { //#12455 + $k[$j++] = $1.swc; //#12452 + $1.enca(); //#12452 + $1.cset = "setc"; //#12453 + break; //#12454 + } //#12454 + $k[$j++] = $1.i; //#12456 + $1.abeforeb(); //#12456 + if ($k[--$j]) { //#12460 + $k[$j++] = $1.sft; //#12457 + $1.enca(); //#12457 + $1.cset = "seta"; //#12458 + break; //#12459 + } //#12459 + $k[$j++] = $1.swb; //#12461 + $1.enca(); //#12461 + $1.cset = "setb"; //#12462 + break; //#12463 + } //#12463 + $1.j = $1.j + 1; //#12465 + $1.endofrow = false; //#12468 + for (;;) { //#12592 + $1.rem = $f($f($1.c + 3) - ($1.j % $f($1.c + 5))); //#12469 + if (($1.i == $1.msglen) || $1.endofrow) { //#12471 + break; //#12471 + } //#12471 + $k[$j++] = $1.i; //#12473 + $1.numsscr(); //#12473 + $1.nums = $k[--$j]; //#12473 + $1.nchars = $k[--$j]; //#12473 + $k[$j++] = 'remnums'; //#12474 + if ($1.nums > ($1.rem * 2)) { //#12474 + $k[$j++] = $1.rem * 2; //#12474 + } else { //#12474 + $k[$j++] = $1.nums; //#12474 + } //#12474 + var _5J = $k[--$j]; //#12474 + $1[$k[--$j]] = _5J; //#12474 + for (;;) { //#12590 + if ((($eq($1.cset, "seta") || $eq($1.cset, "setb")) && ($1.remnums >= 4)) && ($get($1.msg, $1.i) != $1.fn1)) { //#12512 + if ((($1.remnums % 2) == 0) && ($1.rem >= 3)) { //#12494 + $k[$j++] = $1.swc; //#12482 + if ($eq($1.cset, "seta")) { //#12482 + $1.enca(); //#12482 + } else { //#12482 + $1.encb(); //#12482 + } //#12482 + $1.cset = "setc"; //#12483 + for (var _5W = 0, _5X = 2; _5W < _5X; _5W++) { //#12492 + if ($get($1.msg, $1.i) == $1.fn1) { //#12490 + $k[$j++] = $1.fn1; //#12486 + $1.encc(); //#12486 + $1.i = $1.i + 1; //#12487 + } else { //#12490 + $k[$j++] = $geti($1.msg, $1.i, 2); //#12489 + $1.encc(); //#12489 + $1.i = $1.i + 2; //#12490 + } //#12490 + } //#12490 + break; //#12493 + } //#12493 + if ((($1.remnums % 2) != 0) && ($1.rem >= 4)) { //#12511 + $k[$j++] = $get($1.msg, $1.i); //#12497 + if ($eq($1.cset, "seta")) { //#12497 + $1.enca(); //#12497 + } else { //#12497 + $1.encb(); //#12497 + } //#12497 + $1.i = $1.i + 1; //#12498 + $k[$j++] = $1.swc; //#12499 + if ($eq($1.cset, "seta")) { //#12499 + $1.enca(); //#12499 + } else { //#12499 + $1.encb(); //#12499 + } //#12499 + $1.cset = "setc"; //#12500 + for (var _5r = 0, _5s = 2; _5r < _5s; _5r++) { //#12509 + if ($get($1.msg, $1.i) == $1.fn1) { //#12507 + $k[$j++] = $1.fn1; //#12503 + $1.encc(); //#12503 + $1.i = $1.i + 1; //#12504 + } else { //#12507 + $k[$j++] = $geti($1.msg, $1.i, 2); //#12506 + $1.encc(); //#12506 + $1.i = $1.i + 2; //#12507 + } //#12507 + } //#12507 + break; //#12510 + } //#12510 + } //#12510 + $k[$j++] = $eq($1.cset, "setb"); //#12513 + $k[$j++] = $get($1.msg, $1.i); //#12513 + $1.anotb(); //#12513 + var _67 = $k[--$j]; //#12513 + var _68 = $k[--$j]; //#12513 + if ((_68 && _67) && ($1.rem >= 2)) { //#12528 + if ($1.i < ($1.msglen - 1)) { //#12522 + $k[$j++] = $1.i + 1; //#12516 + $1.bbeforea(); //#12516 + if ($k[--$j]) { //#12521 + $k[$j++] = $1.sft; //#12517 + $1.encb(); //#12517 + $k[$j++] = $get($1.msg, $1.i); //#12518 + $1.enca(); //#12518 + $1.i = $1.i + 1; //#12519 + break; //#12520 + } //#12520 + } //#12520 + $k[$j++] = $1.swa; //#12523 + $1.encb(); //#12523 + $1.cset = "seta"; //#12524 + $k[$j++] = $get($1.msg, $1.i); //#12525 + $1.enca(); //#12525 + $1.i = $1.i + 1; //#12526 + break; //#12527 + } //#12527 + $k[$j++] = $eq($1.cset, "seta"); //#12529 + $k[$j++] = $get($1.msg, $1.i); //#12529 + $1.bnota(); //#12529 + var _6S = $k[--$j]; //#12529 + var _6T = $k[--$j]; //#12529 + if ((_6T && _6S) && ($1.rem >= 2)) { //#12544 + if ($1.i < ($1.msglen - 1)) { //#12538 + $k[$j++] = $1.i + 1; //#12532 + $1.abeforeb(); //#12532 + if ($k[--$j]) { //#12537 + $k[$j++] = $1.sft; //#12533 + $1.enca(); //#12533 + $k[$j++] = $get($1.msg, $1.i); //#12534 + $1.encb(); //#12534 + $1.i = $1.i + 1; //#12535 + break; //#12536 + } //#12536 + } //#12536 + $k[$j++] = $1.swb; //#12539 + $1.enca(); //#12539 + $1.cset = "setb"; //#12540 + $k[$j++] = $get($1.msg, $1.i); //#12541 + $1.encb(); //#12541 + $1.i = $1.i + 1; //#12542 + break; //#12543 + } //#12543 + if (($eq($1.cset, "setc") && ($1.remnums < 2)) && ($1.rem >= 2)) { //#12559 + $k[$j++] = $1.i; //#12547 + $1.abeforeb(); //#12547 + if ($k[--$j]) { //#12553 + $k[$j++] = $1.swa; //#12548 + $1.encc(); //#12548 + $1.cset = "seta"; //#12549 + $k[$j++] = $get($1.msg, $1.i); //#12550 + $1.enca(); //#12550 + $1.i = $1.i + 1; //#12551 + break; //#12552 + } //#12552 + $k[$j++] = $1.swb; //#12554 + $1.encc(); //#12554 + $1.cset = "setb"; //#12555 + $k[$j++] = $get($1.msg, $1.i); //#12556 + $1.encb(); //#12556 + $1.i = $1.i + 1; //#12557 + break; //#12558 + } //#12558 + var _73 = $get($1.seta, $get($1.msg, $1.i)) !== undefined; //#12562 + if (($eq($1.cset, "seta") && _73) && ($1.rem >= 1)) { //#12567 + $k[$j++] = $get($1.msg, $1.i); //#12564 + $1.enca(); //#12564 + $1.i = $1.i + 1; //#12565 + break; //#12566 + } //#12566 + var _7E = $get($1.setb, $get($1.msg, $1.i)) !== undefined; //#12568 + if (($eq($1.cset, "setb") && _7E) && ($1.rem >= 1)) { //#12573 + $k[$j++] = $get($1.msg, $1.i); //#12570 + $1.encb(); //#12570 + $1.i = $1.i + 1; //#12571 + break; //#12572 + } //#12572 + if (($eq($1.cset, "setc") && ($1.remnums >= 2)) && ($1.rem >= 1)) { //#12584 + if ($get($1.msg, $1.i) == $1.fn1) { //#12581 + $k[$j++] = $1.fn1; //#12577 + $1.encc(); //#12577 + $1.i = $1.i + 1; //#12578 + } else { //#12581 + $k[$j++] = $geti($1.msg, $1.i, 2); //#12580 + $1.encc(); //#12580 + $1.i = $1.i + 2; //#12581 + } //#12581 + break; //#12583 + } //#12583 + $1.endofrow = true; //#12587 + break; //#12588 + } //#12588 + } //#12588 + if ((((($1.r >= $1.rows) || ($1.rows == -1)) && ($1.r > 1)) && ($1.i == $1.msglen)) && ($1.rem >= 2)) { //#12604 + $k[$j++] = $f($1.rem - 2); //#12596 + $1.padrow(); //#12596 + $1.j = $1.j + 3; //#12597 + $k[$j++] = $1.stp; //#12598 + $1.enca(); //#12598 + $1.lastrow = true; //#12599 + } else { //#12604 + $k[$j++] = $1.rem; //#12601 + $1.padrow(); //#12601 + $1.j = $1.j + 1; //#12602 + $k[$j++] = $1.stp; //#12603 + $1.enca(); //#12603 + $1.r = $1.r + 1; //#12604 + } //#12604 + } //#12604 + $1.cws = $geti($1.cws, 0, $1.j); //#12608 + $k[$j++] = Infinity; //#12614 + for (var _7o = 64; _7o <= 95; _7o += 1) { //#12612 + $k[$j++] = _7o; //#12612 + } //#12612 + for (var _7p = 0; _7p <= 15; _7p += 1) { //#12613 + $k[$j++] = _7p; //#12613 + } //#12613 + for (var _7q = 26; _7q <= 63; _7q += 1) { //#12614 + $k[$j++] = _7q; //#12614 + } //#12614 + $1.abmap = $a(); //#12614 + $k[$j++] = Infinity; //#12616 + for (var _7s = 0; _7s <= 85; _7s += 1) { //#12616 + $k[$j++] = _7s; //#12616 + } //#12616 + $1.cmap = $a(); //#12616 + $1.chkmsg = $a($1.msglen); //#12619 + $1.j = 0; //#12620 + for (var _7y = 0, _7x = $1.msglen - 1; _7y <= _7x; _7y += 1) { //#12626 + $1.i = _7y; //#12622 + $1.char = $get($1.msg, $1.i); //#12623 + if ($1.char >= 0) { //#12624 + $put($1.chkmsg, $1.j, $1.char); //#12624 + $1.j = $1.j + 1; //#12624 + } //#12624 + if (($1.char == $1.fn1) && ($1.i != 0)) { //#12625 + $put($1.chkmsg, $1.j, 29); //#12625 + $1.j = $1.j + 1; //#12625 + } //#12625 + } //#12625 + $1.t1 = 0; //#12627 + $1.t2 = 0; //#12627 + $1.k1 = 0; //#12627 + $1.k2 = 0; //#12627 + for (var _8F = 0, _8E = $1.j - 1; _8F <= _8E; _8F += 1) { //#12634 + $1.i = _8F; //#12629 + $1.t1 = ($get($1.chkmsg, $1.i) * $1.i) % 86; //#12630 + $1.t2 = $f($1.t1 + $get($1.chkmsg, $1.i)) % 86; //#12631 + $1.k1 = $f($1.k1 + $1.t2) % 86; //#12632 + $1.k2 = $f($1.k2 + $1.t1) % 86; //#12633 + } //#12633 + $k[$j++] = $1.cws; //#12635 + $k[$j++] = $1.cws.length - 4; //#12635 + if ($ne($1.cset, "setc")) { //#12635 + $k[$j++] = $1.abmap; //#12635 + } else { //#12635 + $k[$j++] = $1.cmap; //#12635 + } //#12635 + var _8Z = $get($k[--$j], $1.k1); //#12635 + var _8a = $k[--$j]; //#12635 + $put($k[--$j], _8a, _8Z); //#12635 + $k[$j++] = $1.cws; //#12636 + $k[$j++] = $1.cws.length - 3; //#12636 + if ($ne($1.cset, "setc")) { //#12636 + $k[$j++] = $1.abmap; //#12636 + } else { //#12636 + $k[$j++] = $1.cmap; //#12636 + } //#12636 + var _8j = $get($k[--$j], $1.k2); //#12636 + var _8k = $k[--$j]; //#12636 + $put($k[--$j], _8k, _8j); //#12636 + var _8m = $1.cws; //#12639 + $k[$j++] = _8m; //#12639 + $k[$j++] = 2; //#12639 + if ($get(_8m, 2 - 1) != 99) { //#12639 + $k[$j++] = $1.abmap; //#12639 + } else { //#12639 + $k[$j++] = $1.cmap; //#12639 + } //#12639 + var _8s = $get($k[--$j], $1.r - 2); //#12639 + var _8t = $k[--$j]; //#12639 + $put($k[--$j], _8t, _8s); //#12639 + for (var _8x = 1, _8w = $1.r - 1; _8x <= _8w; _8x += 1) { //#12643 + $1.i = _8x; //#12641 + var _8y = $1.cws; //#12642 + var _8z = $1.i; //#12642 + var _90 = $1.c; //#12642 + $k[$j++] = _8y; //#12642 + $k[$j++] = $f((_8z * $f(_90 + 5)) + 2); //#12642 + if ($get(_8y, $f(($f((_8z * $f(_90 + 5)) + 2)) - 1)) != 99) { //#12642 + $k[$j++] = $1.abmap; //#12642 + } else { //#12642 + $k[$j++] = $1.cmap; //#12642 + } //#12642 + var _96 = $get($k[--$j], $1.i + 42); //#12642 + var _97 = $k[--$j]; //#12642 + $put($k[--$j], _97, _96); //#12642 + } //#12642 + for (var _9B = 0, _9A = $1.r - 1; _9B <= _9A; _9B += 1) { //#12654 + $1.rcws = $geti($1.cws, _9B * $f($1.c + 5), $f($1.c + 4)); //#12647 + $1.csum = $get($1.rcws, 0); //#12648 + for (var _9K = 1, _9J = $1.rcws.length - 2; _9K <= _9J; _9K += 1) { //#12652 + $1.i = _9K; //#12650 + $1.csum = $f($1.csum + ($get($1.rcws, $1.i) * $1.i)); //#12651 + } //#12651 + $put($1.rcws, $1.rcws.length - 1, $1.csum % 103); //#12653 + } //#12653 + $1.encs = $a(["212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "2331112"]); //#12673 + $1.rowbits = $a($1.r); //#12676 + for (var _9Y = 0, _9X = $1.r - 1; _9Y <= _9X; _9Y += 1) { //#12688 + $1.i = _9Y; //#12678 + $k[$j++] = Infinity; //#12681 + var _9d = $geti($1.cws, $1.i * $f($1.c + 5), $f($1.c + 5)); //#12680 + for (var _9e = 0, _9f = _9d.length; _9e < _9f; _9e++) { //#12682 + $forall($get($1.encs, $get(_9d, _9e)), function() { //#12681 + var _9j = $k[--$j]; //#12681 + $k[$j++] = $f(_9j - 48); //#12681 + }); //#12681 + } //#12681 + $1.sbs = $a(); //#12681 + $k[$j++] = Infinity; //#12684 + var _9l = $1.sbs; //#12685 + $k[$j++] = 0; //#12685 + for (var _9m = 0, _9n = _9l.length; _9m < _9n; _9m++) { //#12685 + var _9p = $k[--$j]; //#12685 + var _9q = (_9p == 1) ? 0 : 1; //#12685 + $k[$j++] = _9p; //#12685 + for (var _9r = 0, _9s = $get(_9l, _9m); _9r < _9s; _9r++) { //#12685 + $k[$j++] = _9q //#12685 + } //#12685 + } //#12685 + $astore($a($counttomark() - 1)); //#12686 + var _9v = $k[--$j]; //#12686 + var _9w = $k[--$j]; //#12686 + $k[$j++] = _9v; //#12686 + $k[$j++] = _9w; //#12686 + $j--; //#12686 + var _9x = $k[--$j]; //#12686 + var _9y = $k[--$j]; //#12686 + $k[$j++] = _9x; //#12686 + $k[$j++] = _9y; //#12686 + $j--; //#12686 + $put($1.rowbits, $1.i, $k[--$j]); //#12687 + } //#12687 + $1.symwid = $f(($1.c * 11) + 57); //#12691 + $k[$j++] = Infinity; //#12704 + for (var _A5 = 0, _A6 = $1.symwid * $1.sepheight; _A5 < _A6; _A5++) { //#12693 + $k[$j++] = 1; //#12693 + } //#12693 + for (var _A9 = 0, _A8 = $1.r - 2; _A9 <= _A8; _A9 += 1) { //#12702 + $1.i = _A9; //#12695 + for (var _AB = 0, _AC = $1.rowheight; _AB < _AC; _AB++) { //#12696 + $aload($get($1.rowbits, $1.i)); //#12696 + } //#12696 + for (var _AH = 0, _AI = $1.sepheight; _AH < _AI; _AH++) { //#12701 + $k[$j++] = 1; //#12699 + $k[$j++] = 1; //#12699 + $k[$j++] = 0; //#12699 + $k[$j++] = 1; //#12699 + $k[$j++] = 0; //#12699 + $k[$j++] = 0; //#12699 + $k[$j++] = 0; //#12699 + $k[$j++] = 0; //#12699 + $k[$j++] = 1; //#12699 + $k[$j++] = 0; //#12699 + $k[$j++] = 0; //#12699 + for (var _AK = 0, _AL = $f($1.symwid - 24); _AK < _AL; _AK++) { //#12699 + $k[$j++] = 1; //#12699 + } //#12699 + $k[$j++] = 1; //#12700 + $k[$j++] = 1; //#12700 + $k[$j++] = 0; //#12700 + $k[$j++] = 0; //#12700 + $k[$j++] = 0; //#12700 + $k[$j++] = 1; //#12700 + $k[$j++] = 1; //#12700 + $k[$j++] = 1; //#12700 + $k[$j++] = 0; //#12700 + $k[$j++] = 1; //#12700 + $k[$j++] = 0; //#12700 + $k[$j++] = 1; //#12700 + $k[$j++] = 1; //#12700 + } //#12700 + } //#12700 + for (var _AN = 0, _AO = $1.rowheight; _AN < _AO; _AN++) { //#12703 + $aload($get($1.rowbits, $1.r - 1)); //#12703 + } //#12703 + for (var _AU = 0, _AV = $1.symwid * $1.sepheight; _AU < _AV; _AU++) { //#12704 + $k[$j++] = 1; //#12704 + } //#12704 + $1.pixs = $a(); //#12704 + var _Af = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", $1.symwid], + ["pixy", ~~($1.pixs.length / $1.symwid)], + ["height", (~~($1.pixs.length / $1.symwid)) / 72], + ["width", $1.symwid / 72], + ["opt", $1.options] + ]); //#12715 + $k[$j++] = _Af; //#12718 + if (!$1.dontdraw) { //#12718 + $0.renmatrix(); //#12718 + } //#12718 }; $0.code16k = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.mode = -1; - $1.pos = -1; - $1.rows = 0; - $1.rowheight = 8; - $1.sepheight = 1; - $1.encoding = "auto"; - $1.raw = false; - $1.parse = false; - $1.parsefnc = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.mode = ~~$1.mode; - $1.pos = ~~$1.pos; - $1.rows = ~~$1.rows; - $1.rowheight = ~~$1.rowheight; - $1.sepheight = ~~$1.sepheight; - if ($1.pos != -1) { - $1.rows = 16; - } - $1.swa = -1; - $1.swb = -2; - $1.swc = -3; - $1.sa1 = -4; - $1.sb1 = -5; - $1.sc1 = -6; - $1.sa2 = -7; - $1.sb2 = -8; - $1.sc2 = -9; - $1.pad = -10; - $1.sb3 = -11; - $1.sc3 = -12; - $1.fn1 = -13; - $1.fn2 = -14; - $1.fn3 = -15; - $1.fn4 = -16; - $1.charmaps = $a([ $a([ 32, 32, "00" ]), $a([ "!", "!", "01" ]), $a([ '"', '"', "02" ]), $a([ "#", "#", "03" ]), $a([ "$", "$", "04" ]), $a([ "%", "%", "05" ]), $a([ "&", "&", "06" ]), $a([ "'", "'", "07" ]), $a([ 40, 40, "08" ]), $a([ 41, 41, "09" ]), $a([ "*", "*", "10" ]), $a([ "+", "+", "11" ]), $a([ ",", ",", "12" ]), $a([ "-", "-", "13" ]), $a([ ".", ".", "14" ]), $a([ "/", "/", "15" ]), $a([ "0", "0", "16" ]), $a([ "1", "1", "17" ]), $a([ "2", "2", "18" ]), $a([ "3", "3", "19" ]), $a([ "4", "4", "20" ]), $a([ "5", "5", "21" ]), $a([ "6", "6", "22" ]), $a([ "7", "7", "23" ]), $a([ "8", "8", "24" ]), $a([ "9", "9", "25" ]), $a([ ":", ":", "26" ]), $a([ ";", ";", "27" ]), $a([ "<", "<", "28" ]), $a([ "=", "=", "29" ]), $a([ ">", ">", "30" ]), $a([ "?", "?", "31" ]), $a([ "@", "@", "32" ]), $a([ "A", "A", "33" ]), $a([ "B", "B", "34" ]), $a([ "C", "C", "35" ]), $a([ "D", "D", "36" ]), $a([ "E", "E", "37" ]), $a([ "F", "F", "38" ]), $a([ "G", "G", "39" ]), $a([ "H", "H", "40" ]), $a([ "I", "I", "41" ]), $a([ "J", "J", "42" ]), $a([ "K", "K", "43" ]), $a([ "L", "L", "44" ]), $a([ "M", "M", "45" ]), $a([ "N", "N", "46" ]), $a([ "O", "O", "47" ]), $a([ "P", "P", "48" ]), $a([ "Q", "Q", "49" ]), $a([ "R", "R", "50" ]), $a([ "S", "S", "51" ]), $a([ "T", "T", "52" ]), $a([ "U", "U", "53" ]), $a([ "V", "V", "54" ]), $a([ "W", "W", "55" ]), $a([ "X", "X", "56" ]), $a([ "Y", "Y", "57" ]), $a([ "Z", "Z", "58" ]), $a([ "[", "[", "59" ]), $a([ 92, 92, "60" ]), $a([ "]", "]", "61" ]), $a([ "^", "^", "62" ]), $a([ "_", "_", "63" ]), $a([ 0, "`", "64" ]), $a([ 1, "a", "65" ]), $a([ 2, "b", "66" ]), $a([ 3, "c", "67" ]), $a([ 4, "d", "68" ]), $a([ 5, "e", "69" ]), $a([ 6, "f", "70" ]), $a([ 7, "g", "71" ]), $a([ 8, "h", "72" ]), $a([ 9, "i", "73" ]), $a([ 10, "j", "74" ]), $a([ 11, "k", "75" ]), $a([ 12, "l", "76" ]), $a([ 13, "m", "77" ]), $a([ 14, "n", "78" ]), $a([ 15, "o", "79" ]), $a([ 16, "p", "80" ]), $a([ 17, "q", "81" ]), $a([ 18, "r", "82" ]), $a([ 19, "s", "83" ]), $a([ 20, "t", "84" ]), $a([ 21, "u", "85" ]), $a([ 22, "v", "86" ]), $a([ 23, "w", "87" ]), $a([ 24, "x", "88" ]), $a([ 25, "y", "89" ]), $a([ 26, "z", "90" ]), $a([ 27, "{", "91" ]), $a([ 28, "|", "92" ]), $a([ 29, "}", "93" ]), $a([ 30, "~", "94" ]), $a([ 31, 127, "95" ]), $a([ $1.fn3, $1.fn3, "96" ]), $a([ $1.fn2, $1.fn2, "97" ]), $a([ $1.sb1, $1.sa1, "98" ]), $a([ $1.swc, $1.swc, "99" ]), $a([ $1.swb, $1.fn4, $1.swb ]), $a([ $1.fn4, $1.swa, $1.swa ]), $a([ $1.fn1, $1.fn1, $1.fn1 ]), $a([ $1.pad, $1.pad, $1.pad ]), $a([ $1.sb2, $1.sa2, $1.sb1 ]), $a([ $1.sc2, $1.sc2, $1.sb2 ]), $a([ $1.sc3, $1.sc3, $1.sb3 ]) ]); - $1.charvals = $a([ new Map(), new Map(), new Map() ]); - for (var _2R = 0, _2Q = $1.charmaps.length - 1; _2R <= _2Q; _2R += 1) { - $1.i = _2R; - $1.encs = $get($1.charmaps, $1.i); - for (var _2V = 0; _2V <= 2; _2V += 1) { - $1.j = _2V; - var _2Y = $get($1.encs, $1.j); - $k[$j++] = _2Y; - if ($eq($type(_2Y), "stringtype")) { - var _2b = $get($k[--$j], 0); - $k[$j++] = _2b; - } - $put($get($1.charvals, $1.j), $k[--$j], $1.i); - } - } - $1.seta = $get($1.charvals, 0); - $1.setb = $get($1.charvals, 1); - $1.setc = $get($1.charvals, 2); - if ($1.raw) { - $1.encoding = "raw"; - } - if ($eq($1.encoding, "raw")) { - $1.cws = $a($1.barcode.length); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.barcode.length) { - break; - } - $1.cw = ~~$z($geti($1.barcode, $1.i + 1, 3)); - $put($1.cws, $1.j, $1.cw); - $1.i = $1.i + 4; - $1.j = $1.j + 1; - } - $1.cws = $geti($1.cws, 0, $1.j); - } - if ($eq($1.encoding, "auto")) { - var _3A = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "eci", true ], [ "FNC1", $1.fn1 ], [ "FNC2", $1.fn2 ], [ "FNC3", $1.fn3 ] ]); - $1.fncvals = _3A; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _3D = $k[--$j]; - $1[$k[--$j]] = _3D; - $1.msglen = $1.msg.length; - $k[$j++] = Infinity; - for (var _3H = 0, _3I = $1.msglen; _3H < _3I; _3H++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numSA = $a(); - $k[$j++] = Infinity; - for (var _3L = 0, _3M = $1.msglen; _3L < _3M; _3L++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numEA = $a(); - for (var _3P = $1.msglen - 1; _3P >= 0; _3P -= 1) { - $1.i = _3P; - if ($get($1.msg, $1.i) >= 0) { - if ($get($1.msg, $1.i) >= 128) { - $put($1.numEA, $1.i, $f($get($1.numEA, $1.i + 1) + 1)); - } else { - $put($1.numSA, $1.i, $f($get($1.numSA, $1.i + 1) + 1)); - } - } - } - $1.ea = false; - $1.msgtmp = $a([]); - for (var _3j = 0, _3i = $1.msglen - 1; _3j <= _3i; _3j += 1) { - $1.i = _3j; - $1.c = $get($1.msg, $1.i); - if (!$xo($1.ea, $1.c < 128) && $1.c >= 0) { - if ($1.ea) { - $k[$j++] = $1.numSA; - } else { - $k[$j++] = $1.numEA; - } - var _3v = $get($k[--$j], $1.i); - var _3y = $f(_3v + $1.i) == $1.msglen ? 3 : 5; - if (_3v < _3y) { - $k[$j++] = Infinity; - $aload($1.msgtmp); - $k[$j++] = $1.fn4; - $1.msgtmp = $a(); - } else { - $k[$j++] = Infinity; - $aload($1.msgtmp); - $k[$j++] = $1.fn4; - $k[$j++] = $1.fn4; - $1.msgtmp = $a(); - $1.ea = !$1.ea; - } - } - $k[$j++] = Infinity; - $aload($1.msgtmp); - if ($1.c >= 0) { - $k[$j++] = $1.c & 127; - } else { - $k[$j++] = $1.c; - } - $1.msgtmp = $a(); - } - $1.msg = $1.msgtmp; - $1.msglen = $1.msg.length; + var $1 = {}; //#12748 + $1.options = $k[--$j]; //#12750 + $1.barcode = $k[--$j]; //#12751 + $1.dontdraw = false; //#12753 + $1.mode = -1; //#12754 + $1.pos = -1; //#12755 + $1.rows = 0; //#12756 + $1.rowheight = 8; //#12757 + $1.sepheight = 1; //#12758 + $1.encoding = "auto"; //#12759 + $1.raw = false; //#12760 + $1.parse = false; //#12761 + $1.parsefnc = false; //#12762 + $forall($1.options, function() { //#12773 + var _3 = $k[--$j]; //#12773 + $1[$k[--$j]] = _3; //#12773 + }); //#12773 + $1.mode = ~~$1.mode; //#12775 + $1.pos = ~~$1.pos; //#12776 + $1.rows = ~~$1.rows; //#12777 + $1.rowheight = ~~$1.rowheight; //#12778 + $1.sepheight = ~~$1.sepheight; //#12779 + if ($1.pos != -1) { //#12781 + $1.rows = 16; //#12781 + } //#12781 + $1.swa = -1; //#12784 + $1.swb = -2; //#12784 + $1.swc = -3; //#12784 + $1.sa1 = -4; //#12785 + $1.sb1 = -5; //#12785 + $1.sc1 = -6; //#12785 + $1.sa2 = -7; //#12786 + $1.sb2 = -8; //#12786 + $1.sc2 = -9; //#12786 + $1.pad = -10; //#12787 + $1.sb3 = -11; //#12787 + $1.sc3 = -12; //#12787 + $1.fn1 = -13; //#12788 + $1.fn2 = -14; //#12788 + $1.fn3 = -15; //#12788 + $1.fn4 = -16; //#12788 + $1.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$1.fn3, $1.fn3, "96"]), $a([$1.fn2, $1.fn2, "97"]), $a([$1.sb1, $1.sa1, "98"]), $a([$1.swc, $1.swc, "99"]), $a([$1.swb, $1.fn4, $1.swb]), $a([$1.fn4, $1.swa, $1.swa]), $a([$1.fn1, $1.fn1, $1.fn1]), $a([$1.pad, $1.pad, $1.pad]), $a([$1.sb2, $1.sa2, $1.sb1]), $a([$1.sc2, $1.sc2, $1.sb2]), $a([$1.sc3, $1.sc3, $1.sb3])]); //#12829 + $1.charvals = $a([new Map, new Map, new Map]); //#12832 + for (var _2R = 0, _2Q = $1.charmaps.length - 1; _2R <= _2Q; _2R += 1) { //#12841 + $1.i = _2R; //#12834 + $1.encs = $get($1.charmaps, $1.i); //#12835 + for (var _2V = 0; _2V <= 2; _2V += 1) { //#12840 + $1.j = _2V; //#12837 + var _2Y = $get($1.encs, $1.j); //#12838 + $k[$j++] = _2Y; //#12838 + if ($eq($type(_2Y), 'stringtype')) { //#12838 + var _2b = $get($k[--$j], 0); //#12838 + $k[$j++] = _2b; //#12838 + } //#12838 + $put($get($1.charvals, $1.j), $k[--$j], $1.i); //#12839 + } //#12839 + } //#12839 + $1.seta = $get($1.charvals, 0); //#12842 + $1.setb = $get($1.charvals, 1); //#12843 + $1.setc = $get($1.charvals, 2); //#12844 + if ($1.raw) { //#12846 + $1.encoding = "raw"; //#12846 + } //#12846 + if ($eq($1.encoding, "raw")) { //#12859 + $1.cws = $a($1.barcode.length); //#12849 + $1.i = 0; //#12850 + $1.j = 0; //#12850 + for (;;) { //#12857 + if ($1.i == $1.barcode.length) { //#12852 + break; //#12852 + } //#12852 + $1.cw = ~~$z($geti($1.barcode, $1.i + 1, 3)); //#12853 + $put($1.cws, $1.j, $1.cw); //#12854 + $1.i = $1.i + 4; //#12855 + $1.j = $1.j + 1; //#12856 + } //#12856 + $1.cws = $geti($1.cws, 0, $1.j); //#12858 + } //#12858 + if ($eq($1.encoding, "auto")) { //#13310 + var _3A = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["eci", true], + ["FNC1", $1.fn1], + ["FNC2", $1.fn2], + ["FNC3", $1.fn3] + ]); //#12870 + $1.fncvals = _3A; //#12872 + $k[$j++] = 'msg'; //#12873 + $k[$j++] = $1.barcode; //#12873 + $k[$j++] = $1.fncvals; //#12873 + $0.parseinput(); //#12873 + var _3D = $k[--$j]; //#12873 + $1[$k[--$j]] = _3D; //#12873 + $1.msglen = $1.msg.length; //#12874 + $k[$j++] = Infinity; //#12877 + for (var _3H = 0, _3I = $1.msglen; _3H < _3I; _3H++) { //#12877 + $k[$j++] = 0; //#12877 + } //#12877 + $k[$j++] = 0; //#12877 + $1.numSA = $a(); //#12877 + $k[$j++] = Infinity; //#12878 + for (var _3L = 0, _3M = $1.msglen; _3L < _3M; _3L++) { //#12878 + $k[$j++] = 0; //#12878 + } //#12878 + $k[$j++] = 0; //#12878 + $1.numEA = $a(); //#12878 + for (var _3P = $1.msglen - 1; _3P >= 0; _3P -= 1) { //#12888 + $1.i = _3P; //#12880 + if ($get($1.msg, $1.i) >= 0) { //#12887 + if ($get($1.msg, $1.i) >= 128) { //#12885 + $put($1.numEA, $1.i, $f($get($1.numEA, $1.i + 1) + 1)); //#12883 + } else { //#12885 + $put($1.numSA, $1.i, $f($get($1.numSA, $1.i + 1) + 1)); //#12885 + } //#12885 + } //#12885 + } //#12885 + $1.ea = false; //#12891 + $1.msgtmp = $a([]); //#12891 + for (var _3j = 0, _3i = $1.msglen - 1; _3j <= _3i; _3j += 1) { //#12906 + $1.i = _3j; //#12893 + $1.c = $get($1.msg, $1.i); //#12894 + if ((!$xo($1.ea, $1.c < 128)) && ($1.c >= 0)) { //#12904 + if ($1.ea) { //#12896 + $k[$j++] = $1.numSA; //#12896 + } else { //#12896 + $k[$j++] = $1.numEA; //#12896 + } //#12896 + var _3v = $get($k[--$j], $1.i); //#12896 + var _3y = ($f(_3v + $1.i) == $1.msglen) ? 3 : 5; //#12897 + if (_3v < _3y) { //#12902 + $k[$j++] = Infinity; //#12899 + $aload($1.msgtmp); //#12899 + $k[$j++] = $1.fn4; //#12899 + $1.msgtmp = $a(); //#12899 + } else { //#12902 + $k[$j++] = Infinity; //#12901 + $aload($1.msgtmp); //#12901 + $k[$j++] = $1.fn4; //#12901 + $k[$j++] = $1.fn4; //#12901 + $1.msgtmp = $a(); //#12901 + $1.ea = !$1.ea; //#12902 + } //#12902 + } //#12902 + $k[$j++] = Infinity; //#12905 + $aload($1.msgtmp); //#12905 + if ($1.c >= 0) { //#12905 + $k[$j++] = $1.c & 127; //#12905 + } else { //#12905 + $k[$j++] = $1.c; //#12905 + } //#12905 + $1.msgtmp = $a(); //#12905 + } //#12905 + $1.msg = $1.msgtmp; //#12907 + $1.msglen = $1.msg.length; //#12908 $1.numsscr = function() { - $1.n = 0; - $1.s = 0; - $1.p = $k[--$j]; - for (;;) { - if ($1.p >= $1.msglen) { - break; - } - var _4J = $get($1.msg, $1.p); - var _4L = $get($1.setc, _4J) !== undefined; - $k[$j++] = _4J; - if (!_4L) { - $j--; - break; - } - if ($k[--$j] == $1.fn1) { - if ($1.s % 2 == 0) { - $1.s = $1.s + 1; - } else { - break; - } - } - $1.n = $1.n + 1; - $1.s = $1.s + 1; - $1.p = $f($1.p + 1); - } - $k[$j++] = $1.n; - $k[$j++] = $1.s; - }; + $1.n = 0; //#12912 + $1.s = 0; //#12912 + $1.p = $k[--$j]; //#12913 + for (;;) { //#12924 + if ($1.p >= $1.msglen) { //#12914 + break; //#12914 + } //#12914 + var _4J = $get($1.msg, $1.p); //#12915 + var _4L = $get($1.setc, _4J) !== undefined; //#12916 + $k[$j++] = _4J; //#12916 + if (!_4L) { //#12916 + $j--; //#12916 + break; //#12916 + } //#12916 + if ($k[--$j] == $1.fn1) { //#12920 + if (($1.s % 2) == 0) { //#12919 + $1.s = $1.s + 1; //#12919 + } else { //#12919 + break; //#12919 + } //#12919 + } //#12919 + $1.n = $1.n + 1; //#12921 + $1.s = $1.s + 1; //#12922 + $1.p = $f($1.p + 1); //#12923 + } //#12923 + $k[$j++] = $1.n; //#12925 + $k[$j++] = $1.s; //#12925 + }; //#12926 $1.enca = function() { - $put($1.cws, $1.j, $get($1.seta, $k[--$j])); - $1.j = $1.j + 1; - }; + $put($1.cws, $1.j, $get($1.seta, $k[--$j])); //#12930 + $1.j = $1.j + 1; //#12931 + }; //#12932 $1.encb = function() { - $put($1.cws, $1.j, $get($1.setb, $k[--$j])); - $1.j = $1.j + 1; - }; + $put($1.cws, $1.j, $get($1.setb, $k[--$j])); //#12934 + $1.j = $1.j + 1; //#12935 + }; //#12936 $1.encc = function() { - var _4h = $k[--$j]; - $k[$j++] = _4h; - if ($ne($type(_4h), "arraytype")) { - var _4l = $get($1.setc, $k[--$j]); - $k[$j++] = _4l; - } else { - $aload($k[--$j]); - var _4n = $k[--$j]; - var _4o = $k[--$j]; - $k[$j++] = $f($f(_4n - 48) + $f(_4o - 48) * 10); - } - $put($1.cws, $1.j, $k[--$j]); - $1.j = $1.j + 1; - }; + var _4h = $k[--$j]; //#12938 + $k[$j++] = _4h; //#12942 + if ($ne($type(_4h), 'arraytype')) { //#12941 + var _4l = $get($1.setc, $k[--$j]); //#12939 + $k[$j++] = _4l; //#12939 + } else { //#12941 + $aload($k[--$j]); //#12941 + var _4n = $k[--$j]; //#12941 + var _4o = $k[--$j]; //#12941 + $k[$j++] = $f($f(_4n - 48) + ($f(_4o - 48) * 10)); //#12941 + } //#12941 + $put($1.cws, $1.j, $k[--$j]); //#12943 + $1.j = $1.j + 1; //#12944 + }; //#12945 $1.anotb = function() { - var _4t = $k[--$j]; - var _4v = $get($1.seta, _4t) !== undefined; - var _4x = $get($1.setb, _4t) !== undefined; - $k[$j++] = _4v && !_4x; - }; + var _4t = $k[--$j]; //#12948 + var _4v = $get($1.seta, _4t) !== undefined; //#12948 + var _4x = $get($1.setb, _4t) !== undefined; //#12948 + $k[$j++] = _4v && (!_4x); //#12948 + }; //#12948 $1.bnota = function() { - var _4y = $k[--$j]; - var _50 = $get($1.setb, _4y) !== undefined; - var _52 = $get($1.seta, _4y) !== undefined; - $k[$j++] = _50 && !_52; - }; - $k[$j++] = Infinity; - for (var _54 = 0, _55 = $1.msg.length; _54 < _55; _54++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextanotb = $a(); - $k[$j++] = Infinity; - for (var _58 = 0, _59 = $1.msg.length; _58 < _59; _58++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextbnota = $a(); - for (var _5C = $1.msg.length - 1; _5C >= 0; _5C -= 1) { - $1.i = _5C; - $k[$j++] = $get($1.msg, $1.i); - $1.anotb(); - if ($k[--$j]) { - $put($1.nextanotb, $1.i, 0); - } else { - $put($1.nextanotb, $1.i, $f($get($1.nextanotb, $1.i + 1) + 1)); - } - $k[$j++] = $get($1.msg, $1.i); - $1.bnota(); - if ($k[--$j]) { - $put($1.nextbnota, $1.i, 0); - } else { - $put($1.nextbnota, $1.i, $f($get($1.nextbnota, $1.i + 1) + 1)); - } - } + var _4y = $k[--$j]; //#12949 + var _50 = $get($1.setb, _4y) !== undefined; //#12949 + var _52 = $get($1.seta, _4y) !== undefined; //#12949 + $k[$j++] = _50 && (!_52); //#12949 + }; //#12949 + $k[$j++] = Infinity; //#12952 + for (var _54 = 0, _55 = $1.msg.length; _54 < _55; _54++) { //#12952 + $k[$j++] = 0; //#12952 + } //#12952 + $k[$j++] = 9999; //#12952 + $1.nextanotb = $a(); //#12952 + $k[$j++] = Infinity; //#12953 + for (var _58 = 0, _59 = $1.msg.length; _58 < _59; _58++) { //#12953 + $k[$j++] = 0; //#12953 + } //#12953 + $k[$j++] = 9999; //#12953 + $1.nextbnota = $a(); //#12953 + for (var _5C = $1.msg.length - 1; _5C >= 0; _5C -= 1) { //#12966 + $1.i = _5C; //#12955 + $k[$j++] = $get($1.msg, $1.i); //#12956 + $1.anotb(); //#12956 + if ($k[--$j]) { //#12959 + $put($1.nextanotb, $1.i, 0); //#12957 + } else { //#12959 + $put($1.nextanotb, $1.i, $f($get($1.nextanotb, $1.i + 1) + 1)); //#12959 + } //#12959 + $k[$j++] = $get($1.msg, $1.i); //#12961 + $1.bnota(); //#12961 + if ($k[--$j]) { //#12964 + $put($1.nextbnota, $1.i, 0); //#12962 + } else { //#12964 + $put($1.nextbnota, $1.i, $f($get($1.nextbnota, $1.i + 1) + 1)); //#12964 + } //#12964 + } //#12964 $1.abeforeb = function() { - var _5Z = $k[--$j]; - $k[$j++] = $lt($get($1.nextanotb, _5Z), $get($1.nextbnota, _5Z)); - }; + var _5Z = $k[--$j]; //#12969 + $k[$j++] = $lt($get($1.nextanotb, _5Z), $get($1.nextbnota, _5Z)); //#12969 + }; //#12969 $1.bbeforea = function() { - var _5e = $k[--$j]; - $k[$j++] = $lt($get($1.nextbnota, _5e), $get($1.nextanotb, _5e)); - }; - $1.cws = $a($1.barcode.length * 2 + 3); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.pos != -1) { - $put($1.cws, 0, ~~($1.pos / 10) - 1); - $put($1.cws, 1, $1.pos % 10 - 1); - $1.j = 2; - $1.cset = "setb"; - $1.mode = 7; - break; - } - if ($1.msglen == 0) { - $1.cset = "setb"; - $1.mode = 1; - break; - } - if ($1.msglen >= 2) { - $k[$j++] = $get($1.msg, 0) == $1.fn1; - $k[$j++] = 1; - $1.numsscr(); - var _5v = $k[--$j]; - var _5w = $k[--$j]; - $k[$j++] = _5v; - $k[$j++] = _5w; - $j--; - var _5x = $k[--$j]; - var _5y = $k[--$j]; - if (_5y && _5x >= 2) { - $1.cset = "setc"; - $1.mode = 4; - $1.i = 1; - break; - } - } - if ($get($1.msg, 0) == $1.fn1) { - $1.cset = "setb"; - $1.mode = 3; - $1.i = 1; - break; - } - if ($1.msglen >= 2) { - $k[$j++] = 0; - $1.numsscr(); - var _63 = $k[--$j]; - var _64 = $k[--$j]; - $k[$j++] = _63; - $k[$j++] = _64; - $j--; - var _65 = $k[--$j]; - if (_65 >= 2 && _65 % 2 == 0) { - $1.cset = "setc"; - $1.mode = 2; - break; - } - $k[$j++] = 0; - $1.numsscr(); - var _66 = $k[--$j]; - var _67 = $k[--$j]; - $k[$j++] = _66; - $k[$j++] = _67; - $j--; - var _68 = $k[--$j]; - if (_68 >= 3 && _68 % 2 == 1) { - $k[$j++] = $get($1.msg, 0); - $1.encb(); - $1.cset = "setc"; - $1.mode = 5; - $1.i = 1; - break; - } - var _6E = $get($1.setb, $get($1.msg, 0)) !== undefined; - $k[$j++] = _6E; - $k[$j++] = 1; - $1.numsscr(); - var _6F = $k[--$j]; - var _6G = $k[--$j]; - $k[$j++] = _6F; - $k[$j++] = _6G; - $j--; - var _6H = $k[--$j]; - var _6I = $k[--$j]; - if (_6I && (_6H >= 2 && _6H % 2 == 0)) { - $k[$j++] = $get($1.msg, 0); - $1.encb(); - $1.cset = "setc"; - $1.mode = 5; - $1.i = 1; - break; - } - var _6O = $get($1.setb, $get($1.msg, 0)) !== undefined; - $k[$j++] = _6O; - $k[$j++] = 1; - $1.numsscr(); - var _6P = $k[--$j]; - var _6Q = $k[--$j]; - $k[$j++] = _6P; - $k[$j++] = _6Q; - $j--; - var _6R = $k[--$j]; - var _6S = $k[--$j]; - if (_6S && (_6R >= 3 && _6R % 2 == 1)) { - $k[$j++] = $get($1.msg, 0); - $1.encb(); - $k[$j++] = $get($1.msg, 1); - $1.encb(); - $1.cset = "setc"; - $1.mode = 6; - $1.i = 2; - break; - } - var _6a = $get($1.setb, $get($1.msg, 0)) !== undefined; - var _6e = $get($1.setb, $get($1.msg, 1)) !== undefined; - $k[$j++] = _6a && _6e; - $k[$j++] = 2; - $1.numsscr(); - var _6f = $k[--$j]; - var _6g = $k[--$j]; - $k[$j++] = _6f; - $k[$j++] = _6g; - $j--; - var _6h = $k[--$j]; - var _6i = $k[--$j]; - if (_6i && (_6h >= 2 && _6h % 2 == 0)) { - $k[$j++] = $get($1.msg, 0); - $1.encb(); - $k[$j++] = $get($1.msg, 1); - $1.encb(); - $1.cset = "setc"; - $1.mode = 6; - $1.i = 2; - break; - } - } - $k[$j++] = 0; - $1.abeforeb(); - if ($k[--$j]) { - $1.cset = "seta"; - $1.mode = 0; - break; - } - $1.cset = "setb"; - $1.mode = 1; - break; - } - for (;;) { - if ($1.i == $1.msglen) { - break; - } - $k[$j++] = $1.i; - $1.numsscr(); - $1.nums = $k[--$j]; - $1.nchars = $k[--$j]; - for (;;) { - if ($eq($1.cset, "seta")) { - if ($1.i < $1.msglen - 1) { - $k[$j++] = $get($1.msg, $1.i); - $1.bnota(); - $k[$j++] = $1.i + 1; - $1.abeforeb(); - var _70 = $k[--$j]; - var _71 = $k[--$j]; - if (_71 && _70) { - $k[$j++] = $1.sb1; - $1.enca(); - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $1.i = $1.i + 1; - break; - } - } - if ($1.i < $1.msglen - 2) { - $k[$j++] = $get($1.msg, $1.i); - $1.bnota(); - $k[$j++] = $get($1.msg, $1.i + 1); - $1.bnota(); - var _7F = $k[--$j]; - var _7G = $k[--$j]; - $k[$j++] = $an(_7G, _7F); - $k[$j++] = $1.i + 2; - $1.abeforeb(); - var _7I = $k[--$j]; - var _7J = $k[--$j]; - if (_7J && _7I) { - $k[$j++] = $1.sb2; - $1.enca(); - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $k[$j++] = $get($1.msg, $1.i + 1); - $1.encb(); - $1.i = $1.i + 2; - break; - } - } - $k[$j++] = $get($1.msg, $1.i); - $1.bnota(); - if ($k[--$j]) { - $k[$j++] = $1.swb; - $1.enca(); - $1.cset = "setb"; - break; - } - if ($1.i < $1.msglen - 4) { - var _7e = $get($1.seta, $get($1.msg, $1.i + 4)) !== undefined; - if ($1.nums == 4 && _7e) { - $k[$j++] = $1.sc2; - $1.enca(); - for (var _7g = 0, _7h = 2; _7g < _7h; _7g++) { - if ($get($1.msg, $1.i) == $1.fn1) { - $k[$j++] = $1.fn1; - $1.encc(); - $1.i = $1.i + 1; - } else { - $k[$j++] = $geti($1.msg, $1.i, 2); - $1.encc(); - $1.i = $1.i + 2; - } - } - break; - } - } - if ($1.i < $1.msglen - 6) { - var _7z = $get($1.seta, $get($1.msg, $1.i + 6)) !== undefined; - if ($1.nums == 6 && _7z) { - $k[$j++] = $1.sc3; - $1.enca(); - for (var _81 = 0, _82 = 3; _81 < _82; _81++) { - if ($get($1.msg, $1.i) == $1.fn1) { - $k[$j++] = $1.fn1; - $1.encc(); - $1.i = $1.i + 1; - } else { - $k[$j++] = $geti($1.msg, $1.i, 2); - $1.encc(); - $1.i = $1.i + 2; - } - } - break; - } - } - if ($1.nums >= 4 && $1.nums % 2 == 0) { - $k[$j++] = $1.swc; - $1.enca(); - $1.cset = "setc"; - break; - } - $k[$j++] = $get($1.msg, $1.i); - $1.enca(); - $1.i = $1.i + 1; - break; - } - if ($eq($1.cset, "setb")) { - if ($1.i < $1.msglen - 1) { - $k[$j++] = $get($1.msg, $1.i); - $1.anotb(); - $k[$j++] = $1.i + 1; - $1.bbeforea(); - var _8R = $k[--$j]; - var _8S = $k[--$j]; - if (_8S && _8R) { - $k[$j++] = $1.sa1; - $1.encb(); - $k[$j++] = $get($1.msg, $1.i); - $1.enca(); - $1.i = $1.i + 1; - break; - } - } - if ($1.i < $1.msglen - 2) { - $k[$j++] = $get($1.msg, $1.i); - $1.anotb(); - $k[$j++] = $get($1.msg, $1.i + 1); - $1.anotb(); - var _8g = $k[--$j]; - var _8h = $k[--$j]; - $k[$j++] = $an(_8h, _8g); - $k[$j++] = $1.i + 2; - $1.bbeforea(); - var _8j = $k[--$j]; - var _8k = $k[--$j]; - if (_8k && _8j) { - $k[$j++] = $1.sa2; - $1.encb(); - $k[$j++] = $get($1.msg, $1.i); - $1.enca(); - $k[$j++] = $get($1.msg, $1.i + 1); - $1.enca(); - $1.i = $1.i + 2; - break; - } - } - $k[$j++] = $get($1.msg, $1.i); - $1.anotb(); - if ($k[--$j]) { - $k[$j++] = $1.swa; - $1.encb(); - $1.cset = "seta"; - break; - } - if ($1.i < $1.msglen - 4) { - var _95 = $get($1.setb, $get($1.msg, $1.i + 4)) !== undefined; - if ($1.nums == 4 && _95) { - $k[$j++] = $1.sc2; - $1.encb(); - for (var _97 = 0, _98 = 2; _97 < _98; _97++) { - if ($get($1.msg, $1.i) == $1.fn1) { - $k[$j++] = $1.fn1; - $1.encc(); - $1.i = $1.i + 1; - } else { - $k[$j++] = $geti($1.msg, $1.i, 2); - $1.encc(); - $1.i = $1.i + 2; - } - } - break; - } - } - if ($1.i < $1.msglen - 6) { - var _9Q = $get($1.setb, $get($1.msg, $1.i + 6)) !== undefined; - if ($1.nums == 6 && _9Q) { - $k[$j++] = $1.sc3; - $1.encb(); - for (var _9S = 0, _9T = 3; _9S < _9T; _9S++) { - if ($get($1.msg, $1.i) == $1.fn1) { - $k[$j++] = $1.fn1; - $1.encc(); - $1.i = $1.i + 1; - } else { - $k[$j++] = $geti($1.msg, $1.i, 2); - $1.encc(); - $1.i = $1.i + 2; - } - } - break; - } - } - if ($1.nums >= 4 && $1.nums % 2 == 0) { - $k[$j++] = $1.swc; - $1.encb(); - $1.cset = "setc"; - break; - } - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $1.i = $1.i + 1; - break; - } - if ($eq($1.cset, "setc")) { - if ($1.nums >= 2) { - if ($get($1.msg, $1.i) == $1.fn1) { - $k[$j++] = $1.fn1; - $1.encc(); - $1.i = $1.i + 1; - } else { - $k[$j++] = $geti($1.msg, $1.i, 2); - $1.encc(); - $1.i = $1.i + 2; - } - break; - } - if ($1.i < $1.msglen - 1) { - var _A3 = $get($1.setb, $get($1.msg, $1.i)) !== undefined; - $k[$j++] = _A3; - $k[$j++] = $1.i + 1; - $1.numsscr(); - var _A5 = $k[--$j]; - var _A6 = $k[--$j]; - $k[$j++] = _A5; - $k[$j++] = _A6; - $j--; - var _A7 = $k[--$j]; - var _A8 = $k[--$j]; - if (_A8 && (_A7 >= 2 && _A7 % 2 == 0)) { - $k[$j++] = $1.sb1; - $1.encc(); - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $1.i = $1.i + 1; - break; - } - } - if ($1.i < $1.msglen - 1) { - var _AK = $get($1.setb, $get($1.msg, $1.i)) !== undefined; - $k[$j++] = _AK; - $k[$j++] = $1.i + 1; - $1.numsscr(); - var _AM = $k[--$j]; - var _AN = $k[--$j]; - $k[$j++] = _AM; - $k[$j++] = _AN; - $j--; - var _AO = $k[--$j]; - var _AP = $k[--$j]; - if (_AP && (_AO >= 3 && _AO % 2 == 1)) { - $k[$j++] = $1.sb2; - $1.encc(); - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $k[$j++] = $get($1.msg, $1.i + 1); - $1.encb(); - $1.i = $1.i + 2; - break; - } - } - if ($1.i < $1.msglen - 2) { - var _Ae = $get($1.setb, $get($1.msg, $1.i)) !== undefined; - var _Aj = $get($1.setb, $get($1.msg, $1.i + 1)) !== undefined; - $k[$j++] = _Ae && _Aj; - $k[$j++] = $1.i + 2; - $1.numsscr(); - var _Al = $k[--$j]; - var _Am = $k[--$j]; - $k[$j++] = _Al; - $k[$j++] = _Am; - $j--; - var _An = $k[--$j]; - var _Ao = $k[--$j]; - if (_Ao && (_An >= 2 && _An % 2 == 0)) { - $k[$j++] = $1.sb2; - $1.encc(); - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $k[$j++] = $get($1.msg, $1.i + 1); - $1.encb(); - $1.i = $1.i + 2; - break; - } - } - if ($1.i < $1.msglen - 3) { - var _B3 = $get($1.setb, $get($1.msg, $1.i)) !== undefined; - var _B8 = $get($1.setb, $get($1.msg, $1.i + 1)) !== undefined; - $k[$j++] = _B3 && _B8; - $k[$j++] = $1.i + 2; - $1.numsscr(); - var _BA = $k[--$j]; - var _BB = $k[--$j]; - $k[$j++] = _BA; - $k[$j++] = _BB; - $j--; - var _BC = $k[--$j]; - var _BD = $k[--$j]; - if (_BD && (_BC >= 3 && _BC % 2 == 1)) { - $k[$j++] = $1.sb3; - $1.encc(); - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $k[$j++] = $get($1.msg, $1.i + 1); - $1.encb(); - $k[$j++] = $get($1.msg, $1.i + 2); - $1.encb(); - $1.i = $1.i + 3; - break; - } - } - if ($1.i < $1.msglen - 3) { - var _BV = $get($1.setb, $get($1.msg, $1.i)) !== undefined; - var _Ba = $get($1.setb, $get($1.msg, $1.i + 1)) !== undefined; - var _Bf = $get($1.setb, $get($1.msg, $1.i + 2)) !== undefined; - $k[$j++] = _BV && _Ba && _Bf; - $k[$j++] = $1.i + 3; - $1.numsscr(); - var _Bh = $k[--$j]; - var _Bi = $k[--$j]; - $k[$j++] = _Bh; - $k[$j++] = _Bi; - $j--; - var _Bj = $k[--$j]; - var _Bk = $k[--$j]; - if (_Bk && (_Bj >= 2 && _Bj % 2 == 0)) { - $k[$j++] = $1.sb3; - $1.encc(); - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $k[$j++] = $get($1.msg, $1.i + 1); - $1.encb(); - $k[$j++] = $get($1.msg, $1.i + 2); - $1.encb(); - $1.i = $1.i + 3; - break; - } - } - $k[$j++] = $1.i; - $1.abeforeb(); - if ($k[--$j]) { - $k[$j++] = $1.swa; - $1.encc(); - $1.cset = "seta"; - break; - } - $k[$j++] = $1.swb; - $1.encc(); - $1.cset = "setb"; - break; - } - break; - } - } - $1.cws = $geti($1.cws, 0, $1.j); - } - $1.metrics = $a([ $a([ 2, 7 ]), $a([ 3, 12 ]), $a([ 4, 17 ]), $a([ 5, 22 ]), $a([ 6, 27 ]), $a([ 7, 32 ]), $a([ 8, 37 ]), $a([ 9, 42 ]), $a([ 10, 47 ]), $a([ 11, 52 ]), $a([ 12, 57 ]), $a([ 13, 62 ]), $a([ 14, 67 ]), $a([ 15, 72 ]), $a([ 16, 77 ]) ]); - $1.urows = $1.rows; - $1.i = 0; - for (;;) { - $1.m = $get($1.metrics, $1.i); - $1.r = $get($1.m, 0); - $1.dcws = $get($1.m, 1); - $1.okay = true; - if ($1.urows != 0 && $1.urows != $1.r) { - $1.okay = false; - } - if ($1.cws.length > $1.dcws) { - $1.okay = false; - } - if ($1.okay) { - break; - } - $1.i = $1.i + 1; - } - $k[$j++] = Infinity; - $aload($1.cws); - for (var _Cb = 0, _Cc = $f($1.dcws - $1.cws.length); _Cb < _Cc; _Cb++) { - $k[$j++] = 103; - } - $1.cws = $a(); - $k[$j++] = Infinity; - $k[$j++] = $f($f($1.r - 2) * 7 + $1.mode); - $aload($1.cws); - $1.cws = $a(); - $k[$j++] = 0; - for (var _Ck = 0, _Cj = $1.dcws; _Ck <= _Cj; _Ck += 1) { - var _Cn = $k[--$j]; - $k[$j++] = $f(_Cn + (_Ck + 2) * $get($1.cws, _Ck)); - } - $1.c1 = $k[--$j] % 107; - $k[$j++] = 0; - for (var _Cr = 0, _Cq = $1.dcws; _Cr <= _Cq; _Cr += 1) { - var _Cu = $k[--$j]; - $k[$j++] = $f(_Cu + (_Cr + 1) * $get($1.cws, _Cr)); - } - $1.c2 = $f($k[--$j] + $1.c1 * $f($1.dcws + 2)) % 107; - $k[$j++] = Infinity; - $aload($1.cws); - $k[$j++] = $1.c1; - $k[$j++] = $1.c2; - $1.cws = $a(); - $1.encs = $a([ "212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "211214", "211232", "211133" ]); - $1.startencs = $a([ "3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112" ]); - $1.stopencsodd = $a([ "3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411" ]); - $1.stopencseven = $a([ "2122", "1411", "1132", "1231", "1114", "3112", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411", "3211", "2221" ]); - if ($1.pos == -1 || ~~($1.pos / 10) % 2 == 1) { - $1.stopencs = $1.stopencsodd; - } else { - $1.stopencs = $1.stopencseven; - } - $1.rowbits = $a($1.r); - for (var _DE = 0, _DD = $f($1.r - 1); _DE <= _DD; _DE += 1) { - $1.i = _DE; - $k[$j++] = Infinity; - $k[$j++] = 10; - $forall($get($1.startencs, $1.i), function() { - var _DI = $k[--$j]; - $k[$j++] = $f(_DI - 48); - }); - var _DL = $geti($1.cws, $1.i * 5, 5); - $k[$j++] = 1; - for (var _DM = 0, _DN = _DL.length; _DM < _DN; _DM++) { - $forall($get($1.encs, $get(_DL, _DM)), function() { - var _DR = $k[--$j]; - $k[$j++] = $f(_DR - 48); - }); - } - $forall($get($1.stopencs, $1.i), function() { - var _DV = $k[--$j]; - $k[$j++] = $f(_DV - 48); - }); - $k[$j++] = 1; - $1.sbs = $a(); - $k[$j++] = Infinity; - var _DX = $1.sbs; - $k[$j++] = 1; - for (var _DY = 0, _DZ = _DX.length; _DY < _DZ; _DY++) { - var _Db = $k[--$j]; - var _Dc = _Db == 0 ? 1 : 0; - $k[$j++] = _Db; - for (var _Dd = 0, _De = $get(_DX, _DY); _Dd < _De; _Dd++) { - $k[$j++] = _Dc; - } - } - $astore($a($counttomark() - 1)); - var _Dh = $k[--$j]; - var _Di = $k[--$j]; - $k[$j++] = _Dh; - $k[$j++] = _Di; - $j--; - var _Dj = $k[--$j]; - var _Dk = $k[--$j]; - $k[$j++] = _Dj; - $k[$j++] = _Dk; - $j--; - $put($1.rowbits, $1.i, $k[--$j]); - } - $k[$j++] = Infinity; - for (var _Dp = 0, _Dq = 81 * $1.sepheight; _Dp < _Dq; _Dp++) { - $k[$j++] = 1; - } - for (var _Dt = 0, _Ds = $f($1.r - 2); _Dt <= _Ds; _Dt += 1) { - $1.i = _Dt; - for (var _Dv = 0, _Dw = $1.rowheight; _Dv < _Dw; _Dv++) { - $aload($get($1.rowbits, $1.i)); - } - for (var _E1 = 0, _E2 = $1.sepheight; _E1 < _E2; _E1++) { - for (var _E3 = 0, _E4 = 10; _E3 < _E4; _E3++) { - $k[$j++] = 0; - } - for (var _E5 = 0, _E6 = 70; _E5 < _E6; _E5++) { - $k[$j++] = 1; - } - $k[$j++] = 0; - } - } - for (var _E8 = 0, _E9 = $1.rowheight; _E8 < _E9; _E8++) { - $aload($get($1.rowbits, $f($1.r - 1))); - } - for (var _EE = 0, _EF = 81 * $1.sepheight; _EE < _EF; _EE++) { - $k[$j++] = 1; - } - $1.pixs = $a(); - var _EL = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", 81 ], [ "pixy", ~~($1.pixs.length / 81) ], [ "height", ~~($1.pixs.length / 81) / 72 ], [ "width", 81 / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _EL; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var _5e = $k[--$j]; //#12970 + $k[$j++] = $lt($get($1.nextbnota, _5e), $get($1.nextanotb, _5e)); //#12970 + }; //#12970 + $1.cws = $a(($1.barcode.length * 2) + 3); //#12972 + $1.i = 0; //#12975 + $1.j = 0; //#12975 + for (;;) { //#13065 + if ($1.pos != -1) { //#12986 + $put($1.cws, 0, (~~($1.pos / 10)) - 1); //#12980 + $put($1.cws, 1, ($1.pos % 10) - 1); //#12981 + $1.j = 2; //#12982 + $1.cset = "setb"; //#12983 + $1.mode = 7; //#12984 + break; //#12985 + } //#12985 + if ($1.msglen == 0) { //#12992 + $1.cset = "setb"; //#12989 + $1.mode = 1; //#12990 + break; //#12991 + } //#12991 + if ($1.msglen >= 2) { //#13001 + $k[$j++] = $get($1.msg, 0) == $1.fn1; //#12995 + $k[$j++] = 1; //#12995 + $1.numsscr(); //#12995 + var _5v = $k[--$j]; //#12995 + var _5w = $k[--$j]; //#12995 + $k[$j++] = _5v; //#12995 + $k[$j++] = _5w; //#12995 + $j--; //#12995 + var _5x = $k[--$j]; //#12995 + var _5y = $k[--$j]; //#12995 + if (_5y && (_5x >= 2)) { //#13000 + $1.cset = "setc"; //#12996 + $1.mode = 4; //#12997 + $1.i = 1; //#12998 + break; //#12999 + } //#12999 + } //#12999 + if ($get($1.msg, 0) == $1.fn1) { //#13008 + $1.cset = "setb"; //#13004 + $1.mode = 3; //#13005 + $1.i = 1; //#13006 + break; //#13007 + } //#13007 + if ($1.msglen >= 2) { //#13054 + $k[$j++] = 0; //#13011 + $1.numsscr(); //#13011 + var _63 = $k[--$j]; //#13011 + var _64 = $k[--$j]; //#13011 + $k[$j++] = _63; //#13011 + $k[$j++] = _64; //#13011 + $j--; //#13011 + var _65 = $k[--$j]; //#13011 + if ((_65 >= 2) && ((_65 % 2) == 0)) { //#13015 + $1.cset = "setc"; //#13012 + $1.mode = 2; //#13013 + break; //#13014 + } //#13014 + $k[$j++] = 0; //#13017 + $1.numsscr(); //#13017 + var _66 = $k[--$j]; //#13017 + var _67 = $k[--$j]; //#13017 + $k[$j++] = _66; //#13017 + $k[$j++] = _67; //#13017 + $j--; //#13017 + var _68 = $k[--$j]; //#13017 + if ((_68 >= 3) && ((_68 % 2) == 1)) { //#13023 + $k[$j++] = $get($1.msg, 0); //#13018 + $1.encb(); //#13018 + $1.cset = "setc"; //#13019 + $1.mode = 5; //#13020 + $1.i = 1; //#13021 + break; //#13022 + } //#13022 + var _6E = $get($1.setb, $get($1.msg, 0)) !== undefined; //#13025 + $k[$j++] = _6E; //#13026 + $k[$j++] = 1; //#13026 + $1.numsscr(); //#13026 + var _6F = $k[--$j]; //#13026 + var _6G = $k[--$j]; //#13026 + $k[$j++] = _6F; //#13026 + $k[$j++] = _6G; //#13026 + $j--; //#13026 + var _6H = $k[--$j]; //#13026 + var _6I = $k[--$j]; //#13026 + if (_6I && ((_6H >= 2) && ((_6H % 2) == 0))) { //#13032 + $k[$j++] = $get($1.msg, 0); //#13027 + $1.encb(); //#13027 + $1.cset = "setc"; //#13028 + $1.mode = 5; //#13029 + $1.i = 1; //#13030 + break; //#13031 + } //#13031 + var _6O = $get($1.setb, $get($1.msg, 0)) !== undefined; //#13034 + $k[$j++] = _6O; //#13035 + $k[$j++] = 1; //#13035 + $1.numsscr(); //#13035 + var _6P = $k[--$j]; //#13035 + var _6Q = $k[--$j]; //#13035 + $k[$j++] = _6P; //#13035 + $k[$j++] = _6Q; //#13035 + $j--; //#13035 + var _6R = $k[--$j]; //#13035 + var _6S = $k[--$j]; //#13035 + if (_6S && ((_6R >= 3) && ((_6R % 2) == 1))) { //#13042 + $k[$j++] = $get($1.msg, 0); //#13036 + $1.encb(); //#13036 + $k[$j++] = $get($1.msg, 1); //#13037 + $1.encb(); //#13037 + $1.cset = "setc"; //#13038 + $1.mode = 6; //#13039 + $1.i = 2; //#13040 + break; //#13041 + } //#13041 + var _6a = $get($1.setb, $get($1.msg, 0)) !== undefined; //#13044 + var _6e = $get($1.setb, $get($1.msg, 1)) !== undefined; //#13045 + $k[$j++] = _6a && _6e; //#13046 + $k[$j++] = 2; //#13046 + $1.numsscr(); //#13046 + var _6f = $k[--$j]; //#13046 + var _6g = $k[--$j]; //#13046 + $k[$j++] = _6f; //#13046 + $k[$j++] = _6g; //#13046 + $j--; //#13046 + var _6h = $k[--$j]; //#13046 + var _6i = $k[--$j]; //#13046 + if (_6i && ((_6h >= 2) && ((_6h % 2) == 0))) { //#13053 + $k[$j++] = $get($1.msg, 0); //#13047 + $1.encb(); //#13047 + $k[$j++] = $get($1.msg, 1); //#13048 + $1.encb(); //#13048 + $1.cset = "setc"; //#13049 + $1.mode = 6; //#13050 + $1.i = 2; //#13051 + break; //#13052 + } //#13052 + } //#13052 + $k[$j++] = 0; //#13056 + $1.abeforeb(); //#13056 + if ($k[--$j]) { //#13060 + $1.cset = "seta"; //#13057 + $1.mode = 0; //#13058 + break; //#13059 + } //#13059 + $1.cset = "setb"; //#13062 + $1.mode = 1; //#13063 + break; //#13064 + } //#13064 + for (;;) { //#13308 + if ($1.i == $1.msglen) { //#13068 + break; //#13068 + } //#13068 + $k[$j++] = $1.i; //#13070 + $1.numsscr(); //#13070 + $1.nums = $k[--$j]; //#13070 + $1.nchars = $k[--$j]; //#13070 + for (;;) { //#13306 + if ($eq($1.cset, "seta")) { //#13147 + if ($1.i < ($1.msglen - 1)) { //#13084 + $k[$j++] = $get($1.msg, $1.i); //#13077 + $1.bnota(); //#13077 + $k[$j++] = $1.i + 1; //#13078 + $1.abeforeb(); //#13078 + var _70 = $k[--$j]; //#13078 + var _71 = $k[--$j]; //#13078 + if ((_71 && _70)) { //#13083 + $k[$j++] = $1.sb1; //#13079 + $1.enca(); //#13079 + $k[$j++] = $get($1.msg, $1.i); //#13080 + $1.encb(); //#13080 + $1.i = $1.i + 1; //#13081 + break; //#13082 + } //#13082 + } //#13082 + if ($1.i < ($1.msglen - 2)) { //#13096 + $k[$j++] = $get($1.msg, $1.i); //#13087 + $1.bnota(); //#13087 + $k[$j++] = $get($1.msg, $1.i + 1); //#13088 + $1.bnota(); //#13088 + var _7F = $k[--$j]; //#13088 + var _7G = $k[--$j]; //#13088 + $k[$j++] = $an(_7G, _7F); //#13089 + $k[$j++] = $1.i + 2; //#13089 + $1.abeforeb(); //#13089 + var _7I = $k[--$j]; //#13089 + var _7J = $k[--$j]; //#13089 + if ((_7J && _7I)) { //#13095 + $k[$j++] = $1.sb2; //#13090 + $1.enca(); //#13090 + $k[$j++] = $get($1.msg, $1.i); //#13091 + $1.encb(); //#13091 + $k[$j++] = $get($1.msg, $1.i + 1); //#13092 + $1.encb(); //#13092 + $1.i = $1.i + 2; //#13093 + break; //#13094 + } //#13094 + } //#13094 + $k[$j++] = $get($1.msg, $1.i); //#13098 + $1.bnota(); //#13098 + if ($k[--$j]) { //#13102 + $k[$j++] = $1.swb; //#13099 + $1.enca(); //#13099 + $1.cset = "setb"; //#13100 + break; //#13101 + } //#13101 + if ($1.i < ($1.msglen - 4)) { //#13119 + var _7e = $get($1.seta, $get($1.msg, $1.i + 4)) !== undefined; //#13106 + if (($1.nums == 4) && _7e) { //#13118 + $k[$j++] = $1.sc2; //#13107 + $1.enca(); //#13107 + for (var _7g = 0, _7h = 2; _7g < _7h; _7g++) { //#13116 + if ($get($1.msg, $1.i) == $1.fn1) { //#13114 + $k[$j++] = $1.fn1; //#13110 + $1.encc(); //#13110 + $1.i = $1.i + 1; //#13111 + } else { //#13114 + $k[$j++] = $geti($1.msg, $1.i, 2); //#13113 + $1.encc(); //#13113 + $1.i = $1.i + 2; //#13114 + } //#13114 + } //#13114 + break; //#13117 + } //#13117 + } //#13117 + if ($1.i < ($1.msglen - 6)) { //#13136 + var _7z = $get($1.seta, $get($1.msg, $1.i + 6)) !== undefined; //#13123 + if (($1.nums == 6) && _7z) { //#13135 + $k[$j++] = $1.sc3; //#13124 + $1.enca(); //#13124 + for (var _81 = 0, _82 = 3; _81 < _82; _81++) { //#13133 + if ($get($1.msg, $1.i) == $1.fn1) { //#13131 + $k[$j++] = $1.fn1; //#13127 + $1.encc(); //#13127 + $1.i = $1.i + 1; //#13128 + } else { //#13131 + $k[$j++] = $geti($1.msg, $1.i, 2); //#13130 + $1.encc(); //#13130 + $1.i = $1.i + 2; //#13131 + } //#13131 + } //#13131 + break; //#13134 + } //#13134 + } //#13134 + if (($1.nums >= 4) && (($1.nums % 2) == 0)) { //#13142 + $k[$j++] = $1.swc; //#13139 + $1.enca(); //#13139 + $1.cset = "setc"; //#13140 + break; //#13141 + } //#13141 + $k[$j++] = $get($1.msg, $1.i); //#13144 + $1.enca(); //#13144 + $1.i = $1.i + 1; //#13145 + break; //#13146 + } //#13146 + if ($eq($1.cset, "setb")) { //#13221 + if ($1.i < ($1.msglen - 1)) { //#13158 + $k[$j++] = $get($1.msg, $1.i); //#13151 + $1.anotb(); //#13151 + $k[$j++] = $1.i + 1; //#13152 + $1.bbeforea(); //#13152 + var _8R = $k[--$j]; //#13152 + var _8S = $k[--$j]; //#13152 + if ((_8S && _8R)) { //#13157 + $k[$j++] = $1.sa1; //#13153 + $1.encb(); //#13153 + $k[$j++] = $get($1.msg, $1.i); //#13154 + $1.enca(); //#13154 + $1.i = $1.i + 1; //#13155 + break; //#13156 + } //#13156 + } //#13156 + if ($1.i < ($1.msglen - 2)) { //#13170 + $k[$j++] = $get($1.msg, $1.i); //#13161 + $1.anotb(); //#13161 + $k[$j++] = $get($1.msg, $1.i + 1); //#13162 + $1.anotb(); //#13162 + var _8g = $k[--$j]; //#13162 + var _8h = $k[--$j]; //#13162 + $k[$j++] = $an(_8h, _8g); //#13163 + $k[$j++] = $1.i + 2; //#13163 + $1.bbeforea(); //#13163 + var _8j = $k[--$j]; //#13163 + var _8k = $k[--$j]; //#13163 + if ((_8k && _8j)) { //#13169 + $k[$j++] = $1.sa2; //#13164 + $1.encb(); //#13164 + $k[$j++] = $get($1.msg, $1.i); //#13165 + $1.enca(); //#13165 + $k[$j++] = $get($1.msg, $1.i + 1); //#13166 + $1.enca(); //#13166 + $1.i = $1.i + 2; //#13167 + break; //#13168 + } //#13168 + } //#13168 + $k[$j++] = $get($1.msg, $1.i); //#13172 + $1.anotb(); //#13172 + if ($k[--$j]) { //#13176 + $k[$j++] = $1.swa; //#13173 + $1.encb(); //#13173 + $1.cset = "seta"; //#13174 + break; //#13175 + } //#13175 + if ($1.i < ($1.msglen - 4)) { //#13193 + var _95 = $get($1.setb, $get($1.msg, $1.i + 4)) !== undefined; //#13180 + if (($1.nums == 4) && _95) { //#13192 + $k[$j++] = $1.sc2; //#13181 + $1.encb(); //#13181 + for (var _97 = 0, _98 = 2; _97 < _98; _97++) { //#13190 + if ($get($1.msg, $1.i) == $1.fn1) { //#13188 + $k[$j++] = $1.fn1; //#13184 + $1.encc(); //#13184 + $1.i = $1.i + 1; //#13185 + } else { //#13188 + $k[$j++] = $geti($1.msg, $1.i, 2); //#13187 + $1.encc(); //#13187 + $1.i = $1.i + 2; //#13188 + } //#13188 + } //#13188 + break; //#13191 + } //#13191 + } //#13191 + if ($1.i < ($1.msglen - 6)) { //#13210 + var _9Q = $get($1.setb, $get($1.msg, $1.i + 6)) !== undefined; //#13197 + if (($1.nums == 6) && _9Q) { //#13209 + $k[$j++] = $1.sc3; //#13198 + $1.encb(); //#13198 + for (var _9S = 0, _9T = 3; _9S < _9T; _9S++) { //#13207 + if ($get($1.msg, $1.i) == $1.fn1) { //#13205 + $k[$j++] = $1.fn1; //#13201 + $1.encc(); //#13201 + $1.i = $1.i + 1; //#13202 + } else { //#13205 + $k[$j++] = $geti($1.msg, $1.i, 2); //#13204 + $1.encc(); //#13204 + $1.i = $1.i + 2; //#13205 + } //#13205 + } //#13205 + break; //#13208 + } //#13208 + } //#13208 + if (($1.nums >= 4) && (($1.nums % 2) == 0)) { //#13216 + $k[$j++] = $1.swc; //#13213 + $1.encb(); //#13213 + $1.cset = "setc"; //#13214 + break; //#13215 + } //#13215 + $k[$j++] = $get($1.msg, $1.i); //#13218 + $1.encb(); //#13218 + $1.i = $1.i + 1; //#13219 + break; //#13220 + } //#13220 + if ($eq($1.cset, "setc")) { //#13304 + if ($1.nums >= 2) { //#13233 + if ($get($1.msg, $1.i) == $1.fn1) { //#13230 + $k[$j++] = $1.fn1; //#13226 + $1.encc(); //#13226 + $1.i = $1.i + 1; //#13227 + } else { //#13230 + $k[$j++] = $geti($1.msg, $1.i, 2); //#13229 + $1.encc(); //#13229 + $1.i = $1.i + 2; //#13230 + } //#13230 + break; //#13232 + } //#13232 + if ($1.i < ($1.msglen - 1)) { //#13243 + var _A3 = $get($1.setb, $get($1.msg, $1.i)) !== undefined; //#13236 + $k[$j++] = _A3; //#13237 + $k[$j++] = $1.i + 1; //#13237 + $1.numsscr(); //#13237 + var _A5 = $k[--$j]; //#13237 + var _A6 = $k[--$j]; //#13237 + $k[$j++] = _A5; //#13237 + $k[$j++] = _A6; //#13237 + $j--; //#13237 + var _A7 = $k[--$j]; //#13237 + var _A8 = $k[--$j]; //#13237 + if (_A8 && ((_A7 >= 2) && ((_A7 % 2) == 0))) { //#13242 + $k[$j++] = $1.sb1; //#13238 + $1.encc(); //#13238 + $k[$j++] = $get($1.msg, $1.i); //#13239 + $1.encb(); //#13239 + $1.i = $1.i + 1; //#13240 + break; //#13241 + } //#13241 + } //#13241 + if ($1.i < ($1.msglen - 1)) { //#13254 + var _AK = $get($1.setb, $get($1.msg, $1.i)) !== undefined; //#13246 + $k[$j++] = _AK; //#13247 + $k[$j++] = $1.i + 1; //#13247 + $1.numsscr(); //#13247 + var _AM = $k[--$j]; //#13247 + var _AN = $k[--$j]; //#13247 + $k[$j++] = _AM; //#13247 + $k[$j++] = _AN; //#13247 + $j--; //#13247 + var _AO = $k[--$j]; //#13247 + var _AP = $k[--$j]; //#13247 + if (_AP && ((_AO >= 3) && ((_AO % 2) == 1))) { //#13253 + $k[$j++] = $1.sb2; //#13248 + $1.encc(); //#13248 + $k[$j++] = $get($1.msg, $1.i); //#13249 + $1.encb(); //#13249 + $k[$j++] = $get($1.msg, $1.i + 1); //#13250 + $1.encb(); //#13250 + $1.i = $1.i + 2; //#13251 + break; //#13252 + } //#13252 + } //#13252 + if ($1.i < ($1.msglen - 2)) { //#13266 + var _Ae = $get($1.setb, $get($1.msg, $1.i)) !== undefined; //#13257 + var _Aj = $get($1.setb, $get($1.msg, $1.i + 1)) !== undefined; //#13258 + $k[$j++] = _Ae && _Aj; //#13259 + $k[$j++] = $1.i + 2; //#13259 + $1.numsscr(); //#13259 + var _Al = $k[--$j]; //#13259 + var _Am = $k[--$j]; //#13259 + $k[$j++] = _Al; //#13259 + $k[$j++] = _Am; //#13259 + $j--; //#13259 + var _An = $k[--$j]; //#13259 + var _Ao = $k[--$j]; //#13259 + if (_Ao && ((_An >= 2) && ((_An % 2) == 0))) { //#13265 + $k[$j++] = $1.sb2; //#13260 + $1.encc(); //#13260 + $k[$j++] = $get($1.msg, $1.i); //#13261 + $1.encb(); //#13261 + $k[$j++] = $get($1.msg, $1.i + 1); //#13262 + $1.encb(); //#13262 + $1.i = $1.i + 2; //#13263 + break; //#13264 + } //#13264 + } //#13264 + if ($1.i < ($1.msglen - 3)) { //#13279 + var _B3 = $get($1.setb, $get($1.msg, $1.i)) !== undefined; //#13269 + var _B8 = $get($1.setb, $get($1.msg, $1.i + 1)) !== undefined; //#13270 + $k[$j++] = _B3 && _B8; //#13271 + $k[$j++] = $1.i + 2; //#13271 + $1.numsscr(); //#13271 + var _BA = $k[--$j]; //#13271 + var _BB = $k[--$j]; //#13271 + $k[$j++] = _BA; //#13271 + $k[$j++] = _BB; //#13271 + $j--; //#13271 + var _BC = $k[--$j]; //#13271 + var _BD = $k[--$j]; //#13271 + if (_BD && ((_BC >= 3) && ((_BC % 2) == 1))) { //#13278 + $k[$j++] = $1.sb3; //#13272 + $1.encc(); //#13272 + $k[$j++] = $get($1.msg, $1.i); //#13273 + $1.encb(); //#13273 + $k[$j++] = $get($1.msg, $1.i + 1); //#13274 + $1.encb(); //#13274 + $k[$j++] = $get($1.msg, $1.i + 2); //#13275 + $1.encb(); //#13275 + $1.i = $1.i + 3; //#13276 + break; //#13277 + } //#13277 + } //#13277 + if ($1.i < ($1.msglen - 3)) { //#13293 + var _BV = $get($1.setb, $get($1.msg, $1.i)) !== undefined; //#13282 + var _Ba = $get($1.setb, $get($1.msg, $1.i + 1)) !== undefined; //#13283 + var _Bf = $get($1.setb, $get($1.msg, $1.i + 2)) !== undefined; //#13284 + $k[$j++] = (_BV && _Ba) && _Bf; //#13285 + $k[$j++] = $1.i + 3; //#13285 + $1.numsscr(); //#13285 + var _Bh = $k[--$j]; //#13285 + var _Bi = $k[--$j]; //#13285 + $k[$j++] = _Bh; //#13285 + $k[$j++] = _Bi; //#13285 + $j--; //#13285 + var _Bj = $k[--$j]; //#13285 + var _Bk = $k[--$j]; //#13285 + if (_Bk && ((_Bj >= 2) && ((_Bj % 2) == 0))) { //#13292 + $k[$j++] = $1.sb3; //#13286 + $1.encc(); //#13286 + $k[$j++] = $get($1.msg, $1.i); //#13287 + $1.encb(); //#13287 + $k[$j++] = $get($1.msg, $1.i + 1); //#13288 + $1.encb(); //#13288 + $k[$j++] = $get($1.msg, $1.i + 2); //#13289 + $1.encb(); //#13289 + $1.i = $1.i + 3; //#13290 + break; //#13291 + } //#13291 + } //#13291 + $k[$j++] = $1.i; //#13295 + $1.abeforeb(); //#13295 + if ($k[--$j]) { //#13299 + $k[$j++] = $1.swa; //#13296 + $1.encc(); //#13296 + $1.cset = "seta"; //#13297 + break; //#13298 + } //#13298 + $k[$j++] = $1.swb; //#13301 + $1.encc(); //#13301 + $1.cset = "setb"; //#13302 + break; //#13303 + } //#13303 + break; //#13305 + } //#13305 + } //#13305 + $1.cws = $geti($1.cws, 0, $1.j); //#13309 + } //#13309 + $1.metrics = $a([$a([2, 7]), $a([3, 12]), $a([4, 17]), $a([5, 22]), $a([6, 27]), $a([7, 32]), $a([8, 37]), $a([9, 42]), $a([10, 47]), $a([11, 52]), $a([12, 57]), $a([13, 62]), $a([14, 67]), $a([15, 72]), $a([16, 77])]); //#13330 + $1.urows = $1.rows; //#13333 + $1.i = 0; //#13334 + for (;;) { //#13344 + $1.m = $get($1.metrics, $1.i); //#13336 + $1.r = $get($1.m, 0); //#13337 + $1.dcws = $get($1.m, 1); //#13338 + $1.okay = true; //#13339 + if (($1.urows != 0) && ($1.urows != $1.r)) { //#13340 + $1.okay = false; //#13340 + } //#13340 + if ($1.cws.length > $1.dcws) { //#13341 + $1.okay = false; //#13341 + } //#13341 + if ($1.okay) { //#13342 + break; //#13342 + } //#13342 + $1.i = $1.i + 1; //#13343 + } //#13343 + $k[$j++] = Infinity; //#13347 + $aload($1.cws); //#13347 + for (var _Cb = 0, _Cc = $f($1.dcws - $1.cws.length); _Cb < _Cc; _Cb++) { //#13347 + $k[$j++] = 103; //#13347 + } //#13347 + $1.cws = $a(); //#13347 + $k[$j++] = Infinity; //#13350 + $k[$j++] = $f(($f($1.r - 2) * 7) + $1.mode); //#13350 + $aload($1.cws); //#13350 + $1.cws = $a(); //#13350 + $k[$j++] = 0; //#13353 + for (var _Ck = 0, _Cj = $1.dcws; _Ck <= _Cj; _Ck += 1) { //#13353 + var _Cn = $k[--$j]; //#13353 + $k[$j++] = $f(_Cn + ((_Ck + 2) * $get($1.cws, _Ck))); //#13353 + } //#13353 + $1.c1 = $k[--$j] % 107; //#13354 + $k[$j++] = 0; //#13355 + for (var _Cr = 0, _Cq = $1.dcws; _Cr <= _Cq; _Cr += 1) { //#13355 + var _Cu = $k[--$j]; //#13355 + $k[$j++] = $f(_Cu + ((_Cr + 1) * $get($1.cws, _Cr))); //#13355 + } //#13355 + $1.c2 = ($f($k[--$j] + ($1.c1 * $f($1.dcws + 2)))) % 107; //#13356 + $k[$j++] = Infinity; //#13357 + $aload($1.cws); //#13357 + $k[$j++] = $1.c1; //#13357 + $k[$j++] = $1.c2; //#13357 + $1.cws = $a(); //#13357 + $1.encs = $a(["212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "211214", "211232", "211133"]); //#13377 + $1.startencs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112"]); //#13383 + $1.stopencsodd = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411"]); //#13387 + $1.stopencseven = $a(["2122", "1411", "1132", "1231", "1114", "3112", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411", "3211", "2221"]); //#13391 + if (($1.pos == -1) || (((~~($1.pos / 10)) % 2) == 1)) { //#13395 + $1.stopencs = $1.stopencsodd; //#13393 + } else { //#13395 + $1.stopencs = $1.stopencseven; //#13395 + } //#13395 + $1.rowbits = $a($1.r); //#13399 + for (var _DE = 0, _DD = $f($1.r - 1); _DE <= _DD; _DE += 1) { //#13416 + $1.i = _DE; //#13401 + $k[$j++] = Infinity; //#13410 + $k[$j++] = 10; //#13404 + $forall($get($1.startencs, $1.i), function() { //#13404 + var _DI = $k[--$j]; //#13404 + $k[$j++] = $f(_DI - 48); //#13404 + }); //#13404 + var _DL = $geti($1.cws, $1.i * 5, 5); //#13406 + $k[$j++] = 1; //#13408 + for (var _DM = 0, _DN = _DL.length; _DM < _DN; _DM++) { //#13408 + $forall($get($1.encs, $get(_DL, _DM)), function() { //#13407 + var _DR = $k[--$j]; //#13407 + $k[$j++] = $f(_DR - 48); //#13407 + }); //#13407 + } //#13407 + $forall($get($1.stopencs, $1.i), function() { //#13409 + var _DV = $k[--$j]; //#13409 + $k[$j++] = $f(_DV - 48); //#13409 + }); //#13409 + $k[$j++] = 1; //#13410 + $1.sbs = $a(); //#13410 + $k[$j++] = Infinity; //#13412 + var _DX = $1.sbs; //#13413 + $k[$j++] = 1; //#13413 + for (var _DY = 0, _DZ = _DX.length; _DY < _DZ; _DY++) { //#13413 + var _Db = $k[--$j]; //#13413 + var _Dc = (_Db == 0) ? 1 : 0; //#13413 + $k[$j++] = _Db; //#13413 + for (var _Dd = 0, _De = $get(_DX, _DY); _Dd < _De; _Dd++) { //#13413 + $k[$j++] = _Dc //#13413 + } //#13413 + } //#13413 + $astore($a($counttomark() - 1)); //#13414 + var _Dh = $k[--$j]; //#13414 + var _Di = $k[--$j]; //#13414 + $k[$j++] = _Dh; //#13414 + $k[$j++] = _Di; //#13414 + $j--; //#13414 + var _Dj = $k[--$j]; //#13414 + var _Dk = $k[--$j]; //#13414 + $k[$j++] = _Dj; //#13414 + $k[$j++] = _Dk; //#13414 + $j--; //#13414 + $put($1.rowbits, $1.i, $k[--$j]); //#13415 + } //#13415 + $k[$j++] = Infinity; //#13427 + for (var _Dp = 0, _Dq = 81 * $1.sepheight; _Dp < _Dq; _Dp++) { //#13420 + $k[$j++] = 1; //#13420 + } //#13420 + for (var _Dt = 0, _Ds = $f($1.r - 2); _Dt <= _Ds; _Dt += 1) { //#13425 + $1.i = _Dt; //#13422 + for (var _Dv = 0, _Dw = $1.rowheight; _Dv < _Dw; _Dv++) { //#13423 + $aload($get($1.rowbits, $1.i)); //#13423 + } //#13423 + for (var _E1 = 0, _E2 = $1.sepheight; _E1 < _E2; _E1++) { //#13424 + for (var _E3 = 0, _E4 = 10; _E3 < _E4; _E3++) { //#13424 + $k[$j++] = 0; //#13424 + } //#13424 + for (var _E5 = 0, _E6 = 70; _E5 < _E6; _E5++) { //#13424 + $k[$j++] = 1; //#13424 + } //#13424 + $k[$j++] = 0; //#13424 + } //#13424 + } //#13424 + for (var _E8 = 0, _E9 = $1.rowheight; _E8 < _E9; _E8++) { //#13426 + $aload($get($1.rowbits, $f($1.r - 1))); //#13426 + } //#13426 + for (var _EE = 0, _EF = 81 * $1.sepheight; _EE < _EF; _EE++) { //#13427 + $k[$j++] = 1; //#13427 + } //#13427 + $1.pixs = $a(); //#13427 + var _EL = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", 81], + ["pixy", ~~($1.pixs.length / 81)], + ["height", (~~($1.pixs.length / 81)) / 72], + ["width", 81 / 72], + ["opt", $1.options] + ]); //#13438 + $k[$j++] = _EL; //#13441 + if (!$1.dontdraw) { //#13441 + $0.renmatrix(); //#13441 + } //#13441 }; $0.code49 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.mode = -1; - $1.pos = -1; - $1.rows = 0; - $1.rowheight = 8; - $1.sepheight = 1; - $1.parse = false; - $1.parsefnc = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.mode = ~~$1.mode; - $1.pos = ~~$1.pos; - $1.rows = ~~$1.rows; - $1.rowheight = ~~$1.rowheight; - $1.sepheight = ~~$1.sepheight; - $1.s1 = -1; - $1.s2 = -2; - $1.fn1 = -3; - $1.fn2 = -4; - $1.fn3 = -5; - $1.ns = -6; - var _F = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "FNC1", $1.fn1 ], [ "FNC2", $1.fn2 ], [ "FNC3", $1.fn3 ] ]); - $1.fncvals = _F; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _I = $k[--$j]; - $1[$k[--$j]] = _I; - $1.msglen = $1.msg.length; - $1.charmap = $a([ "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "-", ".", " ", "$", "/", "+", "%", $1.s1, $1.s2, $1.fn1, $1.fn2, $1.fn3, $1.ns ]); - $1.charvals = new Map(); - for (var _S = 0; _S <= 48; _S += 1) { - $1.i = _S; - var _V = $get($1.charmap, $1.i); - $k[$j++] = _V; - if ($eq($type(_V), "stringtype")) { - var _Y = $get($k[--$j], 0); - $k[$j++] = _Y; - } - $put($1.charvals, $k[--$j], $1.i); - } - $1.combos = $a([ "1 ", "1A", "1B", "1C", "1D", "1E", "1F", "1G", "1H", "1I", "1J", "1K", "1L", "1M", "1N", "1O", "1P", "1Q", "1R", "1S", "1T", "1U", "1V", "1W", "1X", "1Y", "1Z", "11", "12", "13", "14", "15", " ", "16", "17", "18", " $", " %", "19", "10", "1-", "1.", "1$", " +", "1/", " -", " .", " /", " 0", " 1", " 2", " 3", " 4", " 5", " 6", " 7", " 8", " 9", "1+", "21", "22", "23", "24", "25", "26", " A", " B", " C", " D", " E", " F", " G", " H", " I", " J", " K", " L", " M", " N", " O", " P", " Q", " R", " S", " T", " U", " V", " W", " X", " Y", " Z", "27", "28", "29", "20", "2-", "2.", "2A", "2B", "2C", "2D", "2E", "2F", "2G", "2H", "2I", "2J", "2K", "2L", "2M", "2N", "2O", "2P", "2Q", "2R", "2S", "2T", "2U", "2V", "2W", "2X", "2Y", "2Z", "2$", "2/", "2+", "2%", "2 " ]); - for (var _d = 0; _d <= 127; _d += 1) { - $1.i = _d; - var _g = $get($1.combos, $1.i); - $1.c1 = $get(_g, 0); - $1.c2 = $get(_g, 1); - if ($1.c1 == 49) { - $put($1.charvals, $1.i, $a([ $get($1.charvals, $1.s1), $get($1.charvals, $1.c2) ])); - } - if ($1.c1 == 50) { - $put($1.charvals, $1.i, $a([ $get($1.charvals, $1.s2), $get($1.charvals, $1.c2) ])); - } - } + var $1 = {}; //#13471 + $1.options = $k[--$j]; //#13473 + $1.barcode = $k[--$j]; //#13474 + $1.dontdraw = false; //#13476 + $1.mode = -1; //#13477 + $1.pos = -1; //#13478 + $1.rows = 0; //#13479 + $1.rowheight = 8; //#13480 + $1.sepheight = 1; //#13481 + $1.parse = false; //#13482 + $1.parsefnc = false; //#13483 + $forall($1.options, function() { //#13494 + var _3 = $k[--$j]; //#13494 + $1[$k[--$j]] = _3; //#13494 + }); //#13494 + $1.mode = ~~$1.mode; //#13496 + $1.pos = ~~$1.pos; //#13497 + $1.rows = ~~$1.rows; //#13498 + $1.rowheight = ~~$1.rowheight; //#13499 + $1.sepheight = ~~$1.sepheight; //#13500 + $1.s1 = -1; //#13503 + $1.s2 = -2; //#13503 + $1.fn1 = -3; //#13503 + $1.fn2 = -4; //#13503 + $1.fn3 = -5; //#13503 + $1.ns = -6; //#13503 + var _F = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["FNC1", $1.fn1], + ["FNC2", $1.fn2], + ["FNC3", $1.fn3] + ]); //#13509 + $1.fncvals = _F; //#13510 + $k[$j++] = 'msg'; //#13511 + $k[$j++] = $1.barcode; //#13511 + $k[$j++] = $1.fncvals; //#13511 + $0.parseinput(); //#13511 + var _I = $k[--$j]; //#13511 + $1[$k[--$j]] = _I; //#13511 + $1.msglen = $1.msg.length; //#13512 + $1.charmap = $a(["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "-", ".", " ", "$", "/", "+", "%", $1.s1, $1.s2, $1.fn1, $1.fn2, $1.fn3, $1.ns]); //#13521 + $1.charvals = new Map; //#13524 + for (var _S = 0; _S <= 48; _S += 1) { //#13530 + $1.i = _S; //#13526 + var _V = $get($1.charmap, $1.i); //#13527 + $k[$j++] = _V; //#13528 + if ($eq($type(_V), 'stringtype')) { //#13528 + var _Y = $get($k[--$j], 0); //#13528 + $k[$j++] = _Y; //#13528 + } //#13528 + $put($1.charvals, $k[--$j], $1.i); //#13529 + } //#13529 + $1.combos = $a(["1 ", "1A", "1B", "1C", "1D", "1E", "1F", "1G", "1H", "1I", "1J", "1K", "1L", "1M", "1N", "1O", "1P", "1Q", "1R", "1S", "1T", "1U", "1V", "1W", "1X", "1Y", "1Z", "11", "12", "13", "14", "15", " ", "16", "17", "18", " $", " %", "19", "10", "1-", "1.", "1$", " +", "1/", " -", " .", " /", " 0", " 1", " 2", " 3", " 4", " 5", " 6", " 7", " 8", " 9", "1+", "21", "22", "23", "24", "25", "26", " A", " B", " C", " D", " E", " F", " G", " H", " I", " J", " K", " L", " M", " N", " O", " P", " Q", " R", " S", " T", " U", " V", " W", " X", " Y", " Z", "27", "28", "29", "20", "2-", "2.", "2A", "2B", "2C", "2D", "2E", "2F", "2G", "2H", "2I", "2J", "2K", "2L", "2M", "2N", "2O", "2P", "2Q", "2R", "2S", "2T", "2U", "2V", "2W", "2X", "2Y", "2Z", "2$", "2/", "2+", "2%", "2 "]); //#13542 + for (var _d = 0; _d <= 127; _d += 1) { //#13552 + $1.i = _d; //#13544 + var _g = $get($1.combos, $1.i); //#13545 + $1.c1 = $get(_g, 0); //#13545 + $1.c2 = $get(_g, 1); //#13545 + if ($1.c1 == 49) { //#13548 + $put($1.charvals, $1.i, $a([$get($1.charvals, $1.s1), $get($1.charvals, $1.c2)])); //#13547 + } //#13547 + if ($1.c1 == 50) { //#13551 + $put($1.charvals, $1.i, $a([$get($1.charvals, $1.s2), $get($1.charvals, $1.c2)])); //#13550 + } //#13550 + } //#13550 $1.encodealpha = function() { - var _15 = $get($1.charvals, $k[--$j]); - $k[$j++] = _15; - if ($ne($type(_15), "arraytype")) { - $astore($a(1)); - } - var _18 = $k[--$j]; - $puti($1.cws, $1.j, _18); - $1.j = _18.length + $1.j; - }; + var _15 = $get($1.charvals, $k[--$j]); //#13555 + $k[$j++] = _15; //#13556 + if ($ne($type(_15), 'arraytype')) { //#13556 + $astore($a(1)); //#13556 + } //#13556 + var _18 = $k[--$j]; //#13557 + $puti($1.cws, $1.j, _18); //#13557 + $1.j = _18.length + $1.j; //#13558 + }; //#13559 $1.base48 = function() { - var _1C = $k[--$j]; - $k[$j++] = 0; - $forall(_1C, function() { - var _1D = $k[--$j]; - var _1E = $k[--$j]; - $k[$j++] = $f($f(_1D - 48) + _1E * 10); - }); - $k[$j++] = Infinity; - var _1F = $k[--$j]; - var _1G = $k[--$j]; - var _1H = $k[--$j]; - $k[$j++] = _1F; - $k[$j++] = _1G; - for (var _1I = 0, _1J = $f(_1H - 1); _1I < _1J; _1I++) { - var _1K = $k[--$j]; - $k[$j++] = _1K % 48; - $k[$j++] = ~~(_1K / 48); - } - var _1L = $a(); - $k[$j++] = Infinity; - $k[$j++] = _1L; - for (var _1O = _1N.length - 1; _1O >= 0; _1O -= 1) { - var _1P = $k[--$j]; - $k[$j++] = $get(_1P, _1O); - $k[$j++] = _1P; - } - $j--; - var _1R = $a(); - $puti($1.cws, $1.j, _1R); - $1.j = _1R.length + $1.j; - }; + var _1C = $k[--$j]; //#13562 + $k[$j++] = 0; //#13562 + $forall(_1C, function() { //#13562 + var _1D = $k[--$j]; //#13562 + var _1E = $k[--$j]; //#13562 + $k[$j++] = $f($f(_1D - 48) + (_1E * 10)); //#13562 + }); //#13562 + $k[$j++] = Infinity; //#13563 + var _1F = $k[--$j]; //#13563 + var _1G = $k[--$j]; //#13563 + var _1H = $k[--$j]; //#13563 + $k[$j++] = _1F; //#13563 + $k[$j++] = _1G; //#13563 + for (var _1I = 0, _1J = $f(_1H - 1); _1I < _1J; _1I++) { //#13563 + var _1K = $k[--$j]; //#13563 + $k[$j++] = _1K % 48; //#13563 + $k[$j++] = ~~(_1K / 48); //#13563 + } //#13563 + var _1L = $a(); //#13563 + $k[$j++] = _1L; //#13564 + $k[$j++] = Infinity; //#13564 + var _1M = $k[--$j]; //#13564 + var _1N = $k[--$j]; //#13564 + $k[$j++] = _1M; //#13564 + $k[$j++] = _1N; //#13564 + for (var _1O = _1N.length - 1; _1O >= 0; _1O -= 1) { //#13564 + var _1P = $k[--$j]; //#13564 + $k[$j++] = $get(_1P, _1O); //#13564 + $k[$j++] = _1P; //#13564 + } //#13564 + $j--; //#13564 + var _1R = $a(); //#13564 + $puti($1.cws, $1.j, _1R); //#13565 + $1.j = _1R.length + $1.j; //#13566 + }; //#13567 $1.encodenumeric = function() { - $1.nums = $k[--$j]; - var _1X = $1.nums.length; - var _1Y = _1X % 5; - $k[$j++] = "pre"; - $k[$j++] = _1X; - $k[$j++] = _1Y; - if (_1Y != 2) { - var _1Z = $k[--$j]; - var _1a = $k[--$j]; - $k[$j++] = $f(_1a - _1Z); - } else { - var _1b = $k[--$j]; - var _1c = $k[--$j]; - $k[$j++] = $f($f(_1c - _1b) - 5); - } - var _1d = $k[--$j]; - $1[$k[--$j]] = _1d; - for (var _1h = 0, _1g = $f($1.pre - 1); _1h <= _1g; _1h += 5) { - $k[$j++] = 3; - $k[$j++] = $geti($1.nums, _1h, 5); - $1.base48(); - } - $1.nums = $geti($1.nums, $1.pre, $f($1.nums.length - $1.pre)); - var _1q = $1.nums.length; - $k[$j++] = _1q; - if (_1q == 1) { - $k[$j++] = $get($1.nums, $1.i); - $1.encodealpha(); - } - var _1u = $k[--$j]; - $k[$j++] = _1u; - if (_1u == 3) { - $k[$j++] = 2; - $k[$j++] = $1.nums; - $1.base48(); - } - var _1w = $k[--$j]; - $k[$j++] = _1w; - if (_1w == 4) { - $k[$j++] = 3; - $k[$j++] = Infinity; - $k[$j++] = 49; - $k[$j++] = 48; - $aload($1.nums); - var _1y = $a(); - $k[$j++] = _1y; - $1.base48(); - } - if ($k[--$j] == 7) { - $k[$j++] = 3; - $k[$j++] = Infinity; - $k[$j++] = 49; - $k[$j++] = 48; - $aload($geti($1.nums, 0, 4)); - var _22 = $a(); - $k[$j++] = _22; - $1.base48(); - $k[$j++] = 2; - $k[$j++] = $geti($1.nums, 4, 3); - $1.base48(); - } - }; - $k[$j++] = Infinity; - for (var _26 = 0, _27 = $1.msglen; _26 < _27; _26++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numericruns = $a(); - for (var _2A = $1.msglen - 1; _2A >= 0; _2A -= 1) { - $1.i = _2A; - var _2D = $get($1.msg, $1.i); - if (_2D >= 48 && _2D <= 57) { - $put($1.numericruns, $1.i, $f($get($1.numericruns, $1.i + 1) + 1)); - } else { - $put($1.numericruns, $1.i, 0); - } - } - if ($1.mode == -1) { - for (;;) { - if ($1.pos != -1) { - $1.mode = 3; - break; - } - if ($get($1.numericruns, 0) >= 5) { - $1.mode = 2; - break; - } - var _2S = $get($1.charvals, $get($1.msg, 0)); - $k[$j++] = _2S; - if ($ne($type(_2S), "arraytype")) { - $j--; - $1.mode = 0; - break; - } - var _2W = $get($k[--$j], 0) == 43 ? 4 : 5; - $1.mode = _2W; - break; - } - } - $1.cws = $a($1.msglen * 2 + 1); - $1.method = "alpha"; - $1.i = -1; - $1.j = -1; - if ($1.mode == 0 || $1.mode == 1) { - $1.method = "alpha"; - $1.i = 0; - $1.j = 0; - } - if ($1.mode == 2) { - $1.method = "numeric"; - $1.i = 0; - $1.j = 0; - } - if ($1.mode == 3) { - $1.posval = $a([ 12, 22, 13, 23, 33, 14, 24, 34, 44, 15, 25, 35, 45, 55, 16, 26, 36, 46, 56, 66, 17, 27, 37, 47, 57, 67, 77, 18, 28, 38, 48, 58, 68, 78, 88, 19, 29, 39, 49, 59, 69, 79, 89, 99 ]); - $k[$j++] = $1.cws; - $k[$j++] = 0; - for (var _2f = 0; _2f <= 43; _2f += 1) { - $k[$j++] = _2f; - if ($get($1.posval, _2f) != $1.pos) { - $j--; - } - } - var _2j = $k[--$j]; - var _2k = $k[--$j]; - $put($k[--$j], _2k, $f(_2j + 1)); - $1.method = "alpha"; - $1.i = 0; - $1.j = 1; - } - if ($1.mode == 4 || $1.mode == 5) { - $put($1.cws, 0, $get($get($1.charvals, $get($1.msg, 0)), 1)); - $1.method = "alpha"; - $1.i = 1; - $1.j = 1; - } - for (;;) { - if ($1.i == $1.msglen) { - break; - } - for (;;) { - if ($eq($1.method, "alpha")) { - if ($get($1.numericruns, $1.i) >= 5) { - $k[$j++] = $1.ns; - $1.encodealpha(); - $1.method = "numeric"; - break; - } - $k[$j++] = $get($1.msg, $1.i); - $1.encodealpha(); - $1.i = $1.i + 1; - break; - } - if ($eq($1.method, "numeric")) { - if ($get($1.numericruns, $1.i) < 5) { - $k[$j++] = $1.ns; - $1.encodealpha(); - $1.method = "alpha"; - break; - } - $k[$j++] = $geti($1.msg, $1.i, $get($1.numericruns, $1.i)); - $1.encodenumeric(); - $1.i = $f($1.i + $get($1.numericruns, $1.i)); - break; - } - } - } - $1.cws = $geti($1.cws, 0, $1.j); - $1.metrics = $a([ $a([ 2, 9 ]), $a([ 3, 16 ]), $a([ 4, 23 ]), $a([ 5, 30 ]), $a([ 6, 37 ]), $a([ 7, 42 ]), $a([ 8, 49 ]) ]); - $1.urows = $1.rows; - $1.i = 0; - for (;;) { - $1.m = $get($1.metrics, $1.i); - $1.r = $get($1.m, 0); - $1.dcws = $get($1.m, 1); - $1.okay = true; - if ($1.urows != 0 && $1.urows != $1.r) { - $1.okay = false; - } - if ($1.cws.length > $1.dcws) { - $1.okay = false; - } - if ($1.okay) { - break; - } - $1.i = $1.i + 1; - } - $k[$j++] = Infinity; - $aload($1.cws); - for (var _3n = 0, _3o = $f($1.dcws - $1.cws.length); _3n < _3o; _3n++) { - $k[$j++] = 48; - } - $1.cws = $a(); - $1.ccs = $a($1.r * 8); - $1.j = 0; - for (var _3u = 0, _3t = $f($1.r - 2); _3u <= _3t; _3u += 1) { - $1.i = _3u; - $1.cc = $geti($1.cws, $1.j, 7); - $puti($1.ccs, $1.i * 8, $1.cc); - var _43 = $1.cc; - $k[$j++] = $1.ccs; - $k[$j++] = $1.i * 8 + 7; - $k[$j++] = 0; - for (var _44 = 0, _45 = _43.length; _44 < _45; _44++) { - var _47 = $k[--$j]; - $k[$j++] = $f(_47 + $get(_43, _44)); - } - var _48 = $k[--$j]; - var _49 = $k[--$j]; - $put($k[--$j], _49, _48 % 49); - $1.j = $1.j + 7; - } - if ($1.j < $1.dcws) { - $puti($1.ccs, $1.ccs.length - 8, $geti($1.cws, $1.j, $f($1.dcws - $1.j))); - } - $1.cr7 = $f($f($1.r - 2) * 7 + $1.mode); - $put($1.ccs, $1.ccs.length - 2, $1.cr7); - var _4Q = $a([ 1, 9, 31, 26, 2, 12, 17, 23, 37, 18, 22, 6, 27, 44, 15, 43, 39, 11, 13, 5, 41, 33, 36, 8, 4, 32, 3, 19, 40, 25, 29, 10, 24, 30 ]); - $k[$j++] = _4Q; - $k[$j++] = _4Q; - $k[$j++] = Infinity; - var _4R = $k[--$j]; - var _4T = $geti($k[--$j], 0, 32); - $k[$j++] = _4R; - $k[$j++] = 20; - $aload(_4T); - $1.weightx = $a(); - var _4V = $k[--$j]; - $k[$j++] = _4V; - $k[$j++] = _4V; - $k[$j++] = Infinity; - var _4W = $k[--$j]; - var _4Y = $geti($k[--$j], 1, 32); - $k[$j++] = _4W; - $k[$j++] = 16; - $aload(_4Y); - $1.weighty = $a(); - $k[$j++] = Infinity; - var _4a = $k[--$j]; - var _4c = $geti($k[--$j], 2, 32); - $k[$j++] = _4a; - $k[$j++] = 38; - $aload(_4c); - $1.weightz = $a(); + $1.nums = $k[--$j]; //#13570 + var _1X = $1.nums.length; //#13571 + var _1Y = _1X % 5; //#13571 + $k[$j++] = 'pre'; //#13571 + $k[$j++] = _1X; //#13571 + $k[$j++] = _1Y; //#13571 + if (_1Y != 2) { //#13571 + var _1Z = $k[--$j]; //#13571 + var _1a = $k[--$j]; //#13571 + $k[$j++] = $f(_1a - _1Z); //#13571 + } else { //#13571 + var _1b = $k[--$j]; //#13571 + var _1c = $k[--$j]; //#13571 + $k[$j++] = $f($f(_1c - _1b) - 5); //#13571 + } //#13571 + var _1d = $k[--$j]; //#13571 + $1[$k[--$j]] = _1d; //#13571 + for (var _1h = 0, _1g = $f($1.pre - 1); _1h <= _1g; _1h += 5) { //#13572 + $k[$j++] = 3; //#13572 + $k[$j++] = $geti($1.nums, _1h, 5); //#13572 + $1.base48(); //#13572 + } //#13572 + $1.nums = $geti($1.nums, $1.pre, $f($1.nums.length - $1.pre)); //#13573 + var _1q = $1.nums.length; //#13575 + $k[$j++] = _1q; //#13575 + if (_1q == 1) { //#13575 + $k[$j++] = $get($1.nums, $1.i); //#13575 + $1.encodealpha(); //#13575 + } //#13575 + var _1u = $k[--$j]; //#13576 + $k[$j++] = _1u; //#13576 + if (_1u == 3) { //#13576 + $k[$j++] = 2; //#13576 + $k[$j++] = $1.nums; //#13576 + $1.base48(); //#13576 + } //#13576 + var _1w = $k[--$j]; //#13577 + $k[$j++] = _1w; //#13577 + if (_1w == 4) { //#13577 + $k[$j++] = 3; //#13577 + $k[$j++] = Infinity; //#13577 + $k[$j++] = 49; //#13577 + $k[$j++] = 48; //#13577 + $aload($1.nums); //#13577 + var _1y = $a(); //#13577 + $k[$j++] = _1y; //#13577 + $1.base48(); //#13577 + } //#13577 + if ($k[--$j] == 7) { //#13581 + $k[$j++] = 3; //#13579 + $k[$j++] = Infinity; //#13579 + $k[$j++] = 49; //#13579 + $k[$j++] = 48; //#13579 + $aload($geti($1.nums, 0, 4)); //#13579 + var _22 = $a(); //#13579 + $k[$j++] = _22; //#13579 + $1.base48(); //#13579 + $k[$j++] = 2; //#13580 + $k[$j++] = $geti($1.nums, 4, 3); //#13580 + $1.base48(); //#13580 + } //#13580 + }; //#13582 + $k[$j++] = Infinity; //#13585 + for (var _26 = 0, _27 = $1.msglen; _26 < _27; _26++) { //#13585 + $k[$j++] = 0; //#13585 + } //#13585 + $k[$j++] = 0; //#13585 + $1.numericruns = $a(); //#13585 + for (var _2A = $1.msglen - 1; _2A >= 0; _2A -= 1) { //#13594 + $1.i = _2A; //#13587 + var _2D = $get($1.msg, $1.i); //#13588 + if ((_2D >= 48) && (_2D <= 57)) { //#13592 + $put($1.numericruns, $1.i, $f($get($1.numericruns, $1.i + 1) + 1)); //#13590 + } else { //#13592 + $put($1.numericruns, $1.i, 0); //#13592 + } //#13592 + } //#13592 + if ($1.mode == -1) { //#13606 + for (;;) { //#13605 + if ($1.pos != -1) { //#13599 + $1.mode = 3; //#13599 + break; //#13599 + } //#13599 + if ($get($1.numericruns, 0) >= 5) { //#13600 + $1.mode = 2; //#13600 + break; //#13600 + } //#13600 + var _2S = $get($1.charvals, $get($1.msg, 0)); //#13601 + $k[$j++] = _2S; //#13602 + if ($ne($type(_2S), 'arraytype')) { //#13602 + $j--; //#13602 + $1.mode = 0; //#13602 + break; //#13602 + } //#13602 + var _2W = ($get($k[--$j], 0) == 43) ? 4 : 5; //#13603 + $1.mode = _2W; //#13603 + break; //#13604 + } //#13604 + } //#13604 + $1.cws = $a(($1.msglen * 2) + 1); //#13608 + $1.method = "alpha"; //#13609 + $1.i = -1; //#13609 + $1.j = -1; //#13609 + if (($1.mode == 0) || ($1.mode == 1)) { //#13612 + $1.method = "alpha"; //#13612 + $1.i = 0; //#13612 + $1.j = 0; //#13612 + } //#13612 + if ($1.mode == 2) { //#13613 + $1.method = "numeric"; //#13613 + $1.i = 0; //#13613 + $1.j = 0; //#13613 + } //#13613 + if ($1.mode == 3) { //#13627 + $1.posval = $a([12, 22, 13, 23, 33, 14, 24, 34, 44, 15, 25, 35, 45, 55, 16, 26, 36, 46, 56, 66, 17, 27, 37, 47, 57, 67, 77, 18, 28, 38, 48, 58, 68, 78, 88, 19, 29, 39, 49, 59, 69, 79, 89, 99]); //#13624 + $k[$j++] = $1.cws; //#13625 + $k[$j++] = 0; //#13625 + for (var _2f = 0; _2f <= 43; _2f += 1) { //#13625 + $k[$j++] = _2f; //#13625 + if ($get($1.posval, _2f) != $1.pos) { //#13625 + $j--; //#13625 + } //#13625 + } //#13625 + var _2j = $k[--$j]; //#13625 + var _2k = $k[--$j]; //#13625 + $put($k[--$j], _2k, $f(_2j + 1)); //#13625 + $1.method = "alpha"; //#13626 + $1.i = 0; //#13626 + $1.j = 1; //#13626 + } //#13626 + if (($1.mode == 4) || ($1.mode == 5)) { //#13631 + $put($1.cws, 0, $get($get($1.charvals, $get($1.msg, 0)), 1)); //#13629 + $1.method = "alpha"; //#13630 + $1.i = 1; //#13630 + $1.j = 1; //#13630 + } //#13630 + for (;;) { //#13658 + if ($1.i == $1.msglen) { //#13635 + break; //#13635 + } //#13635 + for (;;) { //#13657 + if ($eq($1.method, "alpha")) { //#13646 + if ($get($1.numericruns, $1.i) >= 5) { //#13642 + $k[$j++] = $1.ns; //#13639 + $1.encodealpha(); //#13639 + $1.method = "numeric"; //#13640 + break; //#13641 + } //#13641 + $k[$j++] = $get($1.msg, $1.i); //#13643 + $1.encodealpha(); //#13643 + $1.i = $1.i + 1; //#13644 + break; //#13645 + } //#13645 + if ($eq($1.method, "numeric")) { //#13656 + if ($get($1.numericruns, $1.i) < 5) { //#13652 + $k[$j++] = $1.ns; //#13649 + $1.encodealpha(); //#13649 + $1.method = "alpha"; //#13650 + break; //#13651 + } //#13651 + $k[$j++] = $geti($1.msg, $1.i, $get($1.numericruns, $1.i)); //#13653 + $1.encodenumeric(); //#13653 + $1.i = $f($1.i + $get($1.numericruns, $1.i)); //#13654 + break; //#13655 + } //#13655 + } //#13655 + } //#13655 + $1.cws = $geti($1.cws, 0, $1.j); //#13659 + $1.metrics = $a([$a([2, 9]), $a([3, 16]), $a([4, 23]), $a([5, 30]), $a([6, 37]), $a([7, 42]), $a([8, 49])]); //#13671 + $1.urows = $1.rows; //#13674 + $1.i = 0; //#13675 + for (;;) { //#13685 + $1.m = $get($1.metrics, $1.i); //#13677 + $1.r = $get($1.m, 0); //#13678 + $1.dcws = $get($1.m, 1); //#13679 + $1.okay = true; //#13680 + if (($1.urows != 0) && ($1.urows != $1.r)) { //#13681 + $1.okay = false; //#13681 + } //#13681 + if ($1.cws.length > $1.dcws) { //#13682 + $1.okay = false; //#13682 + } //#13682 + if ($1.okay) { //#13683 + break; //#13683 + } //#13683 + $1.i = $1.i + 1; //#13684 + } //#13684 + $k[$j++] = Infinity; //#13688 + $aload($1.cws); //#13688 + for (var _3n = 0, _3o = $f($1.dcws - $1.cws.length); _3n < _3o; _3n++) { //#13688 + $k[$j++] = 48; //#13688 + } //#13688 + $1.cws = $a(); //#13688 + $1.ccs = $a($1.r * 8); //#13691 + $1.j = 0; //#13692 + for (var _3u = 0, _3t = $f($1.r - 2); _3u <= _3t; _3u += 1) { //#13699 + $1.i = _3u; //#13694 + $1.cc = $geti($1.cws, $1.j, 7); //#13695 + $puti($1.ccs, $1.i * 8, $1.cc); //#13696 + var _43 = $1.cc; //#13697 + $k[$j++] = $1.ccs; //#13697 + $k[$j++] = ($1.i * 8) + 7; //#13697 + $k[$j++] = 0; //#13697 + for (var _44 = 0, _45 = _43.length; _44 < _45; _44++) { //#13697 + var _47 = $k[--$j]; //#13697 + $k[$j++] = $f(_47 + $get(_43, _44)); //#13697 + } //#13697 + var _48 = $k[--$j]; //#13697 + var _49 = $k[--$j]; //#13697 + $put($k[--$j], _49, _48 % 49); //#13697 + $1.j = $1.j + 7; //#13698 + } //#13698 + if ($1.j < $1.dcws) { //#13702 + $puti($1.ccs, $1.ccs.length - 8, $geti($1.cws, $1.j, $f($1.dcws - $1.j))); //#13701 + } //#13701 + $1.cr7 = $f(($f($1.r - 2) * 7) + $1.mode); //#13705 + $put($1.ccs, $1.ccs.length - 2, $1.cr7); //#13706 + var _4Q = $a([1, 9, 31, 26, 2, 12, 17, 23, 37, 18, 22, 6, 27, 44, 15, 43, 39, 11, 13, 5, 41, 33, 36, 8, 4, 32, 3, 19, 40, 25, 29, 10, 24, 30]); //#13710 + $k[$j++] = _4Q; //#13711 + $k[$j++] = _4Q; //#13711 + $k[$j++] = Infinity; //#13711 + var _4R = $k[--$j]; //#13711 + var _4T = $geti($k[--$j], 0, 32); //#13711 + $k[$j++] = _4R; //#13711 + $k[$j++] = 20; //#13711 + $aload(_4T); //#13711 + $1.weightx = $a(); //#13711 + var _4V = $k[--$j]; //#13712 + $k[$j++] = _4V; //#13712 + $k[$j++] = _4V; //#13712 + $k[$j++] = Infinity; //#13712 + var _4W = $k[--$j]; //#13712 + var _4Y = $geti($k[--$j], 1, 32); //#13712 + $k[$j++] = _4W; //#13712 + $k[$j++] = 16; //#13712 + $aload(_4Y); //#13712 + $1.weighty = $a(); //#13712 + $k[$j++] = Infinity; //#13713 + var _4a = $k[--$j]; //#13713 + var _4c = $geti($k[--$j], 2, 32); //#13713 + $k[$j++] = _4a; //#13713 + $k[$j++] = 38; //#13713 + $aload(_4c); //#13713 + $1.weightz = $a(); //#13713 $1.calccheck = function() { - $1.weights = $k[--$j]; - $1.score = 0; - for (var _4h = 0, _4g = ~~($f($1.r - 1) * 8 / 2) - 1; _4h <= _4g; _4h += 1) { - $1.i = _4h; - $1.score = $f($f($get($1.ccs, $1.i * 2) * 49 + $get($1.ccs, $1.i * 2 + 1)) * $get($1.weights, $1.i + 1) + $1.score); - } - $k[$j++] = $1.score; - }; - $1.lastrow = $geti($1.ccs, $1.ccs.length - 8, 8); - if ($1.r >= 7) { - $k[$j++] = $1.cr7 * $get($1.weightz, 0); - $k[$j++] = $1.weightz; - $1.calccheck(); - var _51 = $k[--$j]; - var _53 = $f($k[--$j] + _51) % 2401; - $k[$j++] = ~~(_53 / 49); - $k[$j++] = _53 % 49; - $astore($a(2)); - $puti($1.lastrow, 0, $k[--$j]); - } - $1.wr1 = $f($get($1.lastrow, 0) * 49 + $get($1.lastrow, 1)); - $k[$j++] = $1.cr7 * $get($1.weighty, 0); - $k[$j++] = $1.weighty; - $1.calccheck(); - var _5F = $k[--$j]; - var _5L = $f($f($k[--$j] + _5F) + $1.wr1 * $get($1.weighty, $f($1.r * 4 - 3))) % 2401; - $1.wr2 = _5L; - $k[$j++] = ~~(_5L / 49); - $k[$j++] = _5L % 49; - $astore($a(2)); - $puti($1.lastrow, 2, $k[--$j]); - $k[$j++] = $1.cr7 * $get($1.weightx, 0); - $k[$j++] = $1.weightx; - $1.calccheck(); - var _5T = $k[--$j]; - var _5d = $f($f($f($k[--$j] + _5T) + $1.wr1 * $get($1.weightx, $f($1.r * 4 - 3))) + $1.wr2 * $get($1.weightx, $f($1.r * 4 - 2))) % 2401; - $k[$j++] = ~~(_5d / 49); - $k[$j++] = _5d % 49; - $astore($a(2)); - $puti($1.lastrow, 4, $k[--$j]); - var _5j = $geti($1.ccs, $1.ccs.length - 8, 7); - $k[$j++] = 0; - for (var _5k = 0, _5l = _5j.length; _5k < _5l; _5k++) { - var _5n = $k[--$j]; - $k[$j++] = $f(_5n + $get(_5j, _5k)); - } - $put($1.ccs, $1.ccs.length - 1, $k[--$j] % 49); - $1.patterns = $a([ $a([ "11521132", "25112131", "14212132", "25121221", "14221222", "12412132", "23321221", "12421222", "21521221", "15112222", "15121312", "13312222", "24221311", "13321312", "11512222", "22421311", "11521312", "25112311", "14212312", "23312311", "12412312", "21512311", "16121131", "14321131", "12521131", "15212131", "15221221", "13412131", "13421221", "11612131", "16112221", "16121311", "14312221", "14321311", "12512221", "12521311", "15212311", "13412311", "11612311", "11131135", "31131133", "51131131", "21122134", "41122132", "21131224", "41131222", "11113135", "31113133", "51113131", "11122225", "31122223", "51122221", "11131315", "31131313", "51131311", "21113224", "41113222", "21122314", "41122312", "11113315", "31113313", "51113311", "12131134", "32131132", "21231133", "41231131", "22122133", "42122131", "11222134", "22131223", "42131221", "11231224", "31231222", "12113134", "32113132", "12122224", "32122222", "12131314", "32131312", "21231313", "41231311", "22113223", "42113221", "11213224", "22122313", "42122311", "11222314", "31222312", "12113314", "32113312", "21213313", "41213311", "13131133", "33131131", "22231132", "11331133", "31331131", "23122132", "12222133", "23131222", "12231223", "32231221", "21331222", "13113133", "33113131", "13122223", "33122221", "11313133", "13131313", "33131311", "11322223", "22231312", "11331313", "31331311", "23113222", "12213223", "23122312", "12222313", "32222311", "21322312", "13113313", "33113311", "22213312", "11313313", "31313311", "14131132", "23231131", "12331132", "21431131", "24122131", "13222132", "24131221", "13231222", "11422132", "22331221", "11431222", "14113132", "14122222", "12313132", "14131312", "12322222", "23231311", "12331312", "21431311", "24113221", "13213222", "24122311", "13222312", "11413222", "22322311", "11422312", "14113312", "23213311", "12313312", "21413311", "15131131", "13331131", "14222131", "14231221", "12422131", "12431221", "15113131", "15122221", "13313131", "15131311", "13322221", "11513131", "13331311", "11522221", "14213221", "14222311", "12413221", "12422311", "15113311", "13313311", "11513311", "11141134", "31141132", "21132133", "41132131", "21141223", "41141221", "11123134", "31123132", "11132224", "31132222", "11141314", "31141312", "21114133", "41114131", "21123223", "41123221", "21132313", "41132311", "11114224", "31114222", "11123314", "31123312", "21114313", "41114311", "12141133", "32141131", "21241132", "22132132", "11232133", "22141222", "11241223", "31241221", "12123133", "32123131", "12132223", "32132221", "12141313", "32141311", "21241312", "22114132", "11214133", "22123222", "11223223", "22132312", "11232313", "31232311", "12114223", "32114221", "12123313", "32123311", "21223312", "22114312", "11214313", "31214311", "13141132", "22241131", "11341132", "23132131", "12232132", "23141221", "12241222", "21341221", "13123132", "13132222", "11323132", "13141312", "11332222", "22241311", "11341312", "23114131", "12214132", "23123221", "12223222", "23132311", "12232312", "21332311", "13114222", "13123312", "11314222", "22223311", "11323312", "23114311", "12214312", "21314311", "14141131", "12341131", "13232131", "13241221", "11432131", "14123131", "14132221", "12323131", "14141311", "12332221", "12341311", "13214131", "13223221", "11414131", "13232311", "11423221", "11432311", "14114221", "14123311", "12314221", "12323311", "13214311", "11414311", "11151133", "31151131", "21142132", "21151222", "11133133", "31133131", "11142223", "31142221", "11151313", "31151311", "21124132", "21133222", "21142312", "11115133", "31115131", "11124223", "31124221", "11133313", "31133311", "21115222", "21124312", "12151132", "21251131", "22142131", "11242132", "22151221", "11251222", "12133132", "12142222", "12151312", "21251311", "22124131", "11224132", "22133221", "11233222", "22142311", "11242312", "12115132", "12124222", "12133312", "21233311", "22115221", "11215222", "22124311", "11224312", "13151131", "12242131", "12251221", "13133131", "13142221", "11333131", "13151311", "11342221", "12224131", "12233221", "12242311", "13115131", "13124221", "11315131", "13133311", "11324221", "11333311", "12215221", "12224311", "11161132", "21152131", "21161221", "11143132", "11152222", "11161312", "21134131", "21143221", "21152311", "11125132", "11134222", "11143312", "21116131", "21125221", "21134311", "12161131", "11252131", "12143131", "12152221", "12161311", "11234131", "11243221", "11252311", "12125131", "12134221", "12143311", "11216131", "11225221", "11234311", "11111236", "31111234", "51111232", "21111325", "41111323", "61111321", "11111416", "31111414", "51111412", "31211143", "51211141", "12111235", "32111233", "52111231", "21211234", "41211232", "22111324", "42111322", "11211325", "31211323", "51211321", "12111415", "32111413", "52111411", "21211414", "41211412", "12211144", "32211142", "21311143", "41311141", "13111234", "33111232", "22211233", "42211231", "11311234", "31311232", "23111323", "43111321", "12211324", "32211322", "21311323", "41311321", "13111414", "33111412", "22211413", "42211411", "11311414", "31311412", "13211143", "33211141", "22311142", "11411143", "31411141", "14111233", "34111231", "23211232", "12311233", "32311231", "21411232", "24111322", "13211323", "33211321", "22311322", "11411323", "31411321", "14111413", "34111411", "23211412", "12311413", "32311411", "21411412", "14211142", "23311141", "12411142", "21511141", "15111232", "24211231", "13311232", "22411231", "11511232", "25111321", "14211322", "23311321", "12411322", "21511321", "15111412", "24211411", "13311412", "22411411", "11511412", "15211141", "13411141", "11611141", "16111231", "14311231", "12511231", "15211321", "13411321", "11611321", "16111411", "14311411", "12511411", "21121144", "41121142", "11112145", "31112143", "51112141", "11121235", "31121233", "51121231", "21112234", "41112232", "21121324", "41121322", "11112325", "31112323", "51112321", "11121415", "31121413", "51121411", "21112414", "41112412", "22121143", "42121141", "11221144", "31221142", "12112144", "32112142", "12121234", "32121232", "21221233", "41221231", "22112233", "42112231", "11212234", "22121323", "42121321", "11221324", "31221322", "12112324", "32112322", "12121414", "32121412", "21221413", "41221411", "22112413", "42112411", "11212414", "31212412", "23121142", "12221143", "32221141", "21321142", "13112143", "33112141", "13121233", "33121231", "11312143", "22221232", "11321233", "31321231", "23112232", "12212233", "23121322", "12221323", "32221321", "21321322", "13112323", "33112321", "13121413", "33121411", "11312323", "22221412", "11321413", "31321411", "23112412", "12212413", "32212411", "21312412", "24121141", "13221142", "22321141", "11421142", "14112142", "14121232", "12312142", "23221231", "12321232", "21421231", "24112231", "13212232", "24121321", "13221322", "11412232", "22321321", "11421322", "14112322", "14121412", "12312322", "23221411", "12321412", "21421411", "24112411", "13212412", "22312411", "11412412", "14221141", "12421141", "15112141", "15121231", "13312141", "13321231", "11512141", "11521231", "14212231", "14221321", "12412231", "12421321", "15112321", "15121411", "13312321", "13321411", "11512321", "11521411", "14212411", "12412411", "21131143", "41131141", "11122144", "31122142", "11131234", "31131232", "21113143", "41113141", "21122233", "41122231", "21131323", "41131321", "11113234", "31113232", "11122324", "31122322", "11131414", "31131412", "21113323", "41113321", "21122413", "41122411", "11113414", "31113412", "22131142", "11231143", "31231141", "12122143", "32122141", "12131233", "32131231", "21231232", "22113142", "11213143", "22122232", "11222233", "22131322", "11231323", "31231321", "12113233", "32113231", "12122323", "32122321", "12131413", "32131411", "21231412", "22113322", "11213323", "22122412", "11222413", "31222411", "12113413", "32113411", "21213412", "23131141", "12231142", "21331141", "13122142", "13131232", "11322142", "22231231", "11331232", "23113141", "12213142", "23122231", "12222232", "23131321", "12231322", "21331321", "13113232", "13122322", "11313232", "13131412", "11322322", "22231411", "11331412", "23113321", "12213322", "23122411", "12222412", "21322411", "13113412", "22213411", "11313412", "13231141", "11431141", "14122141", "14131231", "12322141", "12331231", "13213141", "13222231", "11413141", "13231321", "11422231", "11431321", "14113231", "14122321", "12313231", "14131411", "12322321", "12331411", "13213321", "13222411", "11413321", "11422411", "14113411", "12313411", "21141142", "11132143", "31132141", "11141233", "31141231", "21123142", "21132232", "21141322", "11114143", "31114141", "11123233", "31123231", "11132323", "31132321", "11141413", "31141411", "21114232", "21123322", "21132412", "11114323", "31114321", "11123413", "31123411", "22141141", "11241142", "12132142", "12141232", "21241231", "22123141", "11223142", "22132231", "11232232", "22141321", "11241322", "12114142", "12123232", "12132322", "12141412", "21241411", "22114231", "11214232", "22123321", "11223322", "22132411", "11232412", "12114322", "12123412", "21223411", "12241141", "13132141", "13141231", "11332141", "11341231", "12223141", "12232231", "12241321", "13114141", "13123231", "11314141", "13132321", "11323231", "13141411", "11332321", "11341411", "12214231", "12223321", "12232411", "13114321", "13123411", "11314321", "11323411", "21151141", "11142142", "11151232", "21133141", "21142231", "21151321", "11124142", "11133232", "11142322", "11151412", "21115141", "21124231", "21133321", "21142411", "11115232", "11124322", "11133412", "11251141", "12142141", "12151231", "11233141", "11242231", "11251321", "12124141", "12133231", "12142321", "12151411", "11215141", "11224231", "11233321", "11242411", "12115231", "12124321", "12133411", "11152141", "11161231", "11134141", "11143231", "11152321", "11161411", "11116141", "11125231", "11134321", "11143411", "21111244", "41111242", "11111335", "31111333", "51111331", "21111424", "41111422", "11111515", "31111513", "51111511", "21211153", "41211151", "22111243", "42111241", "11211244", "31211242", "12111334", "32111332", "21211333", "41211331", "22111423", "42111421", "11211424", "31211422", "12111514", "32111512", "21211513", "41211511", "22211152", "11311153", "31311151", "23111242", "12211243", "32211241", "21311242", "13111333", "33111331", "22211332", "11311333", "31311331", "23111422", "12211423", "32211421", "21311422", "13111513", "33111511", "22211512", "11311513", "31311511", "23211151", "12311152", "21411151", "24111241", "13211242", "22311241", "11411242", "14111332", "23211331", "12311332", "21411331", "24111421", "13211422", "22311421", "11411422", "14111512", "23211511", "12311512", "21411511", "13311151", "11511151", "14211241", "12411241", "15111331", "13311331", "11511331", "14211421", "12411421", "15111511", "13311511", "11511511", "31121152", "21112153", "41112151", "21121243", "41121241", "11112244", "31112242", "11121334", "31121332", "21112333", "41112331", "21121423", "41121421", "11112424", "31112422", "11121514", "31121512", "21112513", "41112511", "12121153", "32121151", "21221152", "22112152", "11212153", "22121242", "11221243", "31221241", "12112243", "32112241", "12121333", "32121331", "21221332", "22112332", "11212333", "22121422", "11221423", "31221421", "12112423", "32112421", "12121513", "32121511", "21221512", "22112512", "11212513", "31212511", "13121152", "22221151", "11321152", "23112151", "12212152", "23121241", "12221242", "21321241", "13112242", "13121332", "11312242", "22221331", "11321332", "23112331", "12212332", "23121421", "12221422", "21321421", "13112422", "13121512", "11312422", "22221511", "11321512", "23112511", "12212512", "21312511", "14121151", "12321151", "13212151", "13221241", "11412151", "11421241", "14112241", "14121331", "12312241", "12321331", "13212331", "13221421", "11412331", "11421421", "14112421", "14121511", "12312421", "12321511", "13212511", "11412511", "11131153", "31131151", "21122152", "21131242", "11113153", "31113151", "11122243", "31122241", "11131333", "31131331", "21113242", "21122332", "21131422", "11113333", "31113331", "11122423", "31122421", "11131513", "31131511", "21113422", "21122512", "12131152", "21231151", "22122151", "11222152", "22131241", "11231242", "12113152", "12122242", "12131332", "21231331", "22113241", "11213242", "22122331", "11222332", "22131421", "11231422", "12113332", "12122422", "12131512", "21231511", "22113421", "11213422", "22122511", "11222512", "13131151", "11331151", "12222151", "12231241", "13113151", "13122241", "11313151", "13131331", "11322241", "11331331", "12213241", "12222331", "12231421", "13113331", "13122421", "11313331", "13131511", "11322421", "11331511", "12213421", "12222511", "11141152", "21132151", "21141241", "11123152", "11132242", "11141332", "21114151", "21123241", "21132331", "21141421", "11114242", "11123332", "11132422", "11141512", "21114331", "21123421", "21132511", "12141151", "11232151", "11241241", "12123151", "12132241", "12141331", "11214151", "11223241", "11232331", "11241421", "12114241", "12123331", "12132421", "12141511", "11214331", "11223421", "11232511", "11151151", "11133151", "11142241", "11151331", "11115151", "11124241", "11133331", "11142421", "11151511", "11111254", "31111252", "21111343", "41111341", "11111434", "31111432", "21111523", "41111521", "11111614", "31111612", "31211161", "12111253", "32111251", "21211252", "22111342", "11211343", "31211341", "12111433", "32111431", "21211432", "22111522", "11211523", "31211521", "12111613", "32111611", "21211612", "12211162", "21311161", "13111252", "22211251", "11311252", "23111341", "12211342", "21311341", "13111432", "22211431", "11311432", "23111521", "12211522", "21311521", "13111612", "22211611", "11311612", "13211161", "11411161", "14111251", "12311251", "13211341", "11411341", "14111431", "12311431", "13211521", "11411521", "14111611", "12311611", "21121162", "11112163", "31112161", "11121253", "31121251", "21112252", "21121342", "11112343", "31112341", "11121433", "31121431", "21112432", "21121522", "11112523", "31112521", "11121613", "31121611", "22121161", "11221162", "12112162", "12121252", "21221251", "22112251", "11212252", "22121341", "11221342", "12112342", "12121432", "21221431", "22112431", "11212432", "22121521", "11221522", "12112522", "12121612", "21221611", "12221161", "13112161", "13121251", "11312161", "11321251", "32121115", "52121113", "21221116", "41221114", "61221112", "22112116", "42112114", "31212115", "51212113", "13121116", "33121114", "22221115", "42221113", "11321116", "31321114", "51321112", "23112115", "43112113", "12212116", "32212114", "52212112", "21312115", "41312113", "61312111", "14121115", "34121113", "23221114", "43221112", "12321115", "32321113", "52321111", "21421114", "41421112", "24112114", "13212115", "33212113", "22312114", "42312112", "11412115", "31412113", "51412111", "15121114", "24221113", "13321114", "33321112", "22421113", "42421111", "11521114", "31521112", "25112113", "14212114", "34212112", "23312113", "43312111", "12412114", "32412112", "21512113", "41512111", "16121113", "25221112", "14321113", "34321111", "23421112", "12521113", "32521111", "15212113", "24312112", "13412113", "33412111", "22512112", "11612113", "31612111", "31131115", "51131113", "21122116", "41122114", "61122112", "31113115", "51113113", "12131116", "32131114", "52131112", "21231115", "41231113", "61231111", "22122115", "42122113", "11222116", "31222114", "51222112", "12113116", "32113114", "52113112", "21213115", "41213113", "61213111", "13131115", "33131113", "22231114", "42231112", "11331115", "31331113", "51331111", "23122114", "43122112", "12222115", "32222113", "52222111", "21322114", "41322112", "13113115", "33113113", "22213114", "42213112", "11313115", "31313113", "51313111", "14131114", "34131112", "23231113", "43231111", "12331114", "32331112", "21431113", "41431111", "24122113", "13222114", "33222112", "22322113", "42322111", "11422114", "31422112", "14113114", "34113112", "23213113", "43213111", "12313114", "32313112", "21413113", "41413111", "15131113", "24231112", "13331113", "33331111", "22431112", "25122112", "14222113", "34222111", "23322112", "12422113", "32422111", "21522112", "15113113", "24213112", "13313113", "33313111", "22413112", "11513113", "31513111", "16131112", "25231111", "14331112", "23431111", "15222112", "24322111", "13422112", "22522111", "16113112", "25213111", "14313112", "23413111", "12513112", "21613111", "11141116", "31141114", "51141112", "21132115", "41132113", "61132111", "11123116", "31123114", "51123112", "21114115", "41114113", "61114111", "12141115", "32141113", "52141111", "21241114", "41241112", "22132114", "42132112", "11232115", "31232113", "51232111", "12123115", "32123113", "52123111", "21223114", "41223112", "22114114", "42114112", "11214115", "31214113", "51214111", "13141114", "33141112", "22241113", "42241111", "11341114", "31341112", "23132113", "43132111", "12232114", "32232112", "21332113", "41332111", "13123114", "33123112", "22223113", "42223111", "11323114", "31323112", "23114113", "43114111", "12214114", "32214112", "21314113", "41314111", "14141113", "34141111", "23241112", "12341113", "32341111", "24132112", "13232113", "33232111", "22332112", "11432113", "31432111", "14123113", "34123111", "23223112", "12323113", "32323111", "21423112", "24114112", "13214113", "33214111", "22314112", "11414113", "31414111", "15141112", "24241111", "13341112", "25132111", "14232112", "23332111", "12432112", "15123112", "24223111", "13323112", "22423111", "11523112", "25114111", "14214112", "23314111", "12414112", "21514111", "16141111", "14341111", "15232111", "13432111", "16123111", "14323111", "12523111", "15214111", "13414111", "11614111", "11151115", "31151113", "51151111", "21142114", "41142112", "11133115", "31133113", "51133111", "21124114", "41124112", "11115115", "31115113", "51115111", "12151114", "32151112", "21251113", "41251111", "22142113", "42142111", "11242114", "31242112", "12133114", "32133112", "21233113", "41233111", "22124113", "42124111", "11224114", "31224112", "12115114", "32115112", "21215113", "41215111", "13151113", "33151111", "22251112", "23142112", "12242113", "32242111", "21342112", "13133113", "33133111", "22233112", "11333113", "31333111", "23124112", "12224113", "32224111", "21324112", "13115113", "33115111", "22215112", "11315113", "31315111", "14151112", "23251111", "24142111", "13242112", "22342111", "14133112", "23233111", "12333112", "21433111", "24124111", "13224112", "22324111", "11424112", "14115112", "23215111", "12315112", "21415111", "15151111", "14242111", "15133111", "13333111", "14224111", "12424111", "15115111", "13315111", "11515111", "11161114", "31161112", "21152113", "41152111", "11143114", "31143112", "21134113", "41134111", "11125114", "31125112", "21116113", "41116111", "12161113", "32161111", "22152112", "11252113", "31252111", "12143113", "32143111", "21243112", "22134112", "11234113", "31234111", "12125113", "32125111", "21225112", "22116112", "11216113", "31216111", "13161112", "23152111", "12252112", "13143112", "22243111", "11343112", "23134111", "12234112", "21334111", "13125112", "22225111", "11325112", "23116111", "12216112", "21316111", "14161111", "13252111", "14143111", "12343111", "13234111", "11434111", "14125111", "12325111", "13216111", "11416111", "31111216", "51111214", "31211125", "51211123", "32111215", "52111213", "21211216", "41211214", "61211212", "12211126", "32211124", "52211122", "21311125", "41311123", "61311121", "13111216", "33111214", "22211215", "42211213", "11311216", "31311214", "51311212", "13211125", "33211123", "22311124", "42311122", "11411125", "31411123", "51411121", "14111215", "34111213", "23211214", "43211212", "12311215", "32311213", "52311211", "21411214", "41411212", "14211124", "34211122", "23311123", "43311121", "12411124", "32411122", "21511123", "41511121", "15111214", "24211213", "13311214", "33311212", "22411213", "42411211", "11511214", "31511212", "15211123", "24311122", "13411123", "33411121", "22511122", "11611123", "31611121", "16111213", "25211212", "14311213", "34311211", "23411212", "12511213", "32511211", "21611212", "21121126", "41121124", "61121122", "31112125", "51112123", "31121215", "51121213", "21112216", "41112214", "61112212", "22121125", "42121123", "11221126", "31221124", "51221122", "12112126", "32112124", "52112122", "12121216", "32121214", "52121212", "21221215", "41221213", "61221211", "22112215", "42112213", "11212216", "31212214", "51212212", "23121124", "43121122", "12221125", "32221123", "52221121", "21321124", "41321122", "13112125", "33112123", "13121215", "33121213", "11312125", "22221214", "42221212", "11321215", "31321213", "51321211", "23112214", "43112212", "12212215", "32212213", "52212211", "21312214", "41312212", "24121123", "13221124", "33221122", "22321123", "42321121", "11421124", "31421122", "14112124", "34112122", "14121214", "34121212", "12312124", "23221213", "43221211", "12321214", "32321212", "21421213", "41421211", "24112213", "13212214", "33212212", "22312213", "42312211", "11412214", "31412212", "25121122", "14221123", "34221121", "23321122", "12421123", "32421121", "21521122", "15112123", "15121213", "13312123", "24221212", "13321213", "33321211", "11512123", "22421212", "11521213", "31521211", "25112212", "14212213", "34212211", "23312212", "12412213", "32412211", "21512212", "15221122", "24321121", "13421122", "22521121", "16112122", "16121212", "14312122", "25221211", "14321212", "12512122", "23421211", "12521212", "15212212", "24312211", "13412212", "22512211", "11612212", "21131125", "41131123", "61131121", "11122126", "31122124", "51122122", "11131216", "31131214", "51131212", "21113125", "41113123", "61113121", "21122215", "41122213", "61122211", "11113216", "31113214", "51113212", "22131124", "42131122", "11231125", "31231123", "51231121", "12122125", "32122123", "52122121", "12131215", "32131213", "52131211", "21231214", "41231212", "22113124", "42113122", "11213125", "22122214", "42122212", "11222215", "31222213", "51222211", "12113215", "32113213", "52113211", "21213214", "41213212", "23131123", "43131121", "12231124", "32231122", "21331123", "41331121", "13122124", "33122122", "13131214", "33131212", "11322124", "22231213", "42231211", "11331214", "31331212", "23113123", "43113121", "12213124", "23122213", "43122211", "12222214", "32222212", "21322213", "41322211", "13113214", "33113212", "22213213", "42213211", "11313214", "31313212", "24131122", "13231123", "33231121", "22331122", "11431123", "31431121", "14122123", "34122121", "14131213", "34131211", "12322123", "23231212", "12331213", "32331211", "21431212", "24113122", "13213123", "24122212", "13222213", "33222211", "11413123", "22322212", "11422213", "31422211", "14113213", "34113211", "23213212", "12313213", "32313211", "21413212", "25131121", "14231122", "23331121", "12431122", "15122122", "15131212", "13322122", "24231211", "13331212", "11522122", "22431211", "25113121", "14213122", "25122211", "14222212", "12413122", "23322211", "12422212", "21522211", "15113212", "24213211", "13313212", "22413211", "11513212", "15231121", "13431121", "16122121", "16131211", "14322121", "14331211", "12522121", "15213121", "15222211", "13413121", "13422211", "11613121", "16113211", "14313211", "12513211", "21141124", "41141122", "11132125", "31132123", "51132121", "11141215", "31141213", "51141211", "21123124", "41123122", "21132214", "41132212", "11114125", "31114123", "51114121", "11123215", "31123213", "51123211", "21114214", "41114212", "22141123", "42141121", "11241124", "31241122", "12132124", "32132122", "12141214", "32141212", "21241213", "41241211", "22123123", "42123121", "11223124", "22132213", "42132211", "11232214", "31232212", "12114124", "32114122", "12123214", "32123212", "21223213", "41223211", "22114213", "42114211", "11214214", "31214212", "23141122", "12241123", "32241121", "21341122", "13132123", "33132121", "13141213", "33141211", "11332123", "22241212", "11341213", "31341211", "23123122", "12223123", "23132212", "12232213", "32232211", "21332212", "13114123", "33114121", "13123213", "33123211", "11314123", "22223212", "11323213", "31323211", "23114212", "12214213", "32214211", "21314212", "24141121", "13241122", "22341121", "14132122", "14141212", "12332122", "23241211", "12341212", "24123121", "13223122", "24132211", "13232212", "11423122", "22332211", "11432212", "14114122", "14123212", "12314122", "23223211", "12323212", "21423211", "24114211", "13214212", "22314211", "11414212", "14241121", "15132121", "15141211", "13332121", "13341211", "14223121", "14232211", "12423121", "12432211", "15114121", "15123211", "13314121", "13323211", "11514121", "11523211", "14214211", "12414211", "21151123", "41151121", "11142124", "31142122", "11151214", "31151212", "21133123", "41133121", "21142213", "41142211", "11124124", "31124122", "11133214", "31133212", "21115123", "41115121", "21124213", "41124211", "11115214", "31115212", "22151122", "11251123", "31251121", "12142123", "32142121", "12151213", "32151211", "21251212", "22133122", "11233123", "22142212", "11242213", "31242211", "12124123", "32124121", "12133213", "32133211", "21233212", "22115122", "11215123", "22124212", "11224213", "31224211", "12115213", "32115211", "21215212", "23151121", "12251122", "13142122", "13151212", "11342122", "22251211", "23133121", "12233122", "23142211", "12242212", "21342211", "13124122", "13133212", "11324122", "22233211", "11333212", "23115121", "12215122", "23124211", "12224212", "21324211", "13115212", "22215211", "11315212", "13251121", "14142121", "14151211", "12342121", "13233121", "13242211", "11433121", "14124121", "14133211", "12324121", "12333211", "13215121", "13224211", "11415121", "11424211", "14115211", "12315211", "21161122", "11152123", "31152121", "11161213", "31161211", "21143122", "21152212", "11134123", "31134121", "11143213", "31143211", "21125122", "21134212", "11116123", "31116121", "11125213", "31125211", "22161121", "12152122", "12161212", "22143121", "11243122", "22152211", "11252212", "12134122", "12143212", "21243211", "22125121", "11225122", "22134211", "11234212", "12116122", "12125212", "21225211", "13152121", "13161211", "12243121", "12252211", "13134121", "13143211", "11334121", "11343211", "12225121", "12234211", "13116121", "13125211", "11316121", "11325211", "21111226", "41111224", "61111222", "31111315", "51111313", "21211135", "41211133", "61211131", "22111225", "42111223", "11211226", "31211224", "51211222", "12111316", "32111314", "52111312", "21211315", "41211313", "61211311", "22211134", "42211132", "11311135", "31311133", "51311131", "23111224", "43111222", "12211225", "32211223", "52211221", "21311224", "41311222", "13111315", "33111313", "22211314", "42211312", "11311315", "31311313", "51311311", "23211133", "43211131", "12311134", "32311132", "21411133", "41411131", "24111223", "13211224", "33211222", "22311223", "42311221", "11411224", "31411222", "14111314", "34111312", "23211313", "43211311", "12311314", "32311312", "21411313", "41411311", "24211132", "13311133", "33311131", "22411132", "11511133", "31511131", "25111222", "14211223", "34211221", "23311222", "12411223", "32411221", "21511222", "15111313", "24211312", "13311313", "33311311", "22411312", "11511313", "31511311", "25211131", "14311132", "23411131", "12511132", "21611131", "15211222", "24311221", "13411222", "22511221", "11611222", "16111312", "25211311", "14311312", "23411311", "12511312", "21611311", "31121134", "51121132", "21112135", "41112133", "61112131", "21121225", "41121223", "61121221", "11112226", "31112224", "51112222", "11121316", "31121314", "51121312", "21112315", "41112313", "61112311", "12121135", "32121133", "52121131", "21221134", "41221132", "22112134", "42112132", "11212135", "22121224", "42121222", "11221225", "31221223", "51221221", "12112225", "32112223", "52112221", "12121315", "32121313", "52121311", "21221314", "41221312", "22112314", "42112312", "11212315", "31212313", "51212311", "13121134", "33121132", "22221133", "42221131", "11321134", "31321132", "23112133", "43112131", "12212134", "23121223", "43121221", "12221224", "32221222", "21321223", "41321221", "13112224", "33112222", "13121314", "33121312", "11312224", "22221313", "42221311", "11321314", "31321312", "23112313", "43112311", "12212314", "32212312", "21312313", "41312311", "14121133", "34121131", "23221132", "12321133", "32321131", "21421132", "24112132", "13212133", "24121222", "13221223", "33221221", "11412133", "22321222", "11421223", "31421221", "14112223", "34112221", "14121313", "34121311", "12312223", "23221312", "12321313", "32321311", "21421312", "24112312", "13212313", "33212311", "22312312", "11412313", "31412311", "15121132", "24221131", "13321132", "22421131" ]), $a([ "22121116", "42121114", "31221115", "51221113", "32112115", "52112113", "21212116", "41212114", "61212112", "23121115", "43121113", "12221116", "32221114", "52221112", "21321115", "41321113", "61321111", "13112116", "33112114", "22212115", "42212113", "11312116", "31312114", "51312112", "24121114", "13221115", "33221113", "22321114", "42321112", "11421115", "31421113", "51421111", "14112115", "34112113", "23212114", "43212112", "12312115", "32312113", "52312111", "21412114", "41412112", "25121113", "14221114", "34221112", "23321113", "43321111", "12421114", "32421112", "21521113", "41521111", "15112114", "24212113", "13312114", "33312112", "22412113", "42412111", "11512114", "31512112", "15221113", "24321112", "13421113", "33421111", "22521112", "16112113", "25212112", "14312113", "34312111", "23412112", "12512113", "32512111", "21612112", "21131116", "41131114", "61131112", "31122115", "51122113", "21113116", "41113114", "61113112", "22131115", "42131113", "11231116", "31231114", "51231112", "12122116", "32122114", "52122112", "21222115", "41222113", "61222111", "22113115", "42113113", "11213116", "31213114", "51213112", "23131114", "43131112", "12231115", "32231113", "52231111", "21331114", "41331112", "13122115", "33122113", "22222114", "42222112", "11322115", "31322113", "51322111", "23113114", "43113112", "12213115", "32213113", "52213111", "21313114", "41313112", "24131113", "13231114", "33231112", "22331113", "42331111", "11431114", "31431112", "14122114", "34122112", "23222113", "43222111", "12322114", "32322112", "21422113", "41422111", "24113113", "13213114", "33213112", "22313113", "42313111", "11413114", "31413112", "25131112", "14231113", "34231111", "23331112", "12431113", "32431111", "15122113", "24222112", "13322113", "33322111", "22422112", "11522113", "31522111", "25113112", "14213113", "34213111", "23313112", "12413113", "32413111", "21513112", "15231112", "24331111", "13431112", "16122112", "25222111", "14322112", "23422111", "12522112", "15213112", "24313111", "13413112", "22513111", "11613112", "21141115", "41141113", "61141111", "11132116", "31132114", "51132112", "21123115", "41123113", "61123111", "11114116", "31114114", "51114112", "22141114", "42141112", "11241115", "31241113", "51241111", "12132115", "32132113", "52132111", "21232114", "41232112", "22123114", "42123112", "11223115", "31223113", "51223111", "12114115", "32114113", "52114111", "21214114", "41214112", "23141113", "43141111", "12241114", "32241112", "21341113", "41341111", "13132114", "33132112", "22232113", "42232111", "11332114", "31332112", "23123113", "43123111", "12223114", "32223112", "21323113", "41323111", "13114114", "33114112", "22214113", "42214111", "11314114", "31314112", "24141112", "13241113", "33241111", "22341112", "14132113", "34132111", "23232112", "12332113", "32332111", "21432112", "24123112", "13223113", "33223111", "22323112", "11423113", "31423111", "14114113", "34114111", "23214112", "12314113", "32314111", "21414112", "25141111", "14241112", "23341111", "15132112", "24232111", "13332112", "22432111", "25123111", "14223112", "23323111", "12423112", "21523111", "15114112", "24214111", "13314112", "22414111", "11514112", "15241111", "16132111", "14332111", "15223111", "13423111", "16114111", "14314111", "12514111", "21151114", "41151112", "11142115", "31142113", "51142111", "21133114", "41133112", "11124115", "31124113", "51124111", "21115114", "41115112", "22151113", "42151111", "11251114", "31251112", "12142114", "32142112", "21242113", "41242111", "22133113", "42133111", "11233114", "31233112", "12124114", "32124112", "21224113", "41224111", "22115113", "42115111", "11215114", "31215112", "23151112", "12251113", "32251111", "13142113", "33142111", "22242112", "11342113", "31342111", "23133112", "12233113", "32233111", "21333112", "13124113", "33124111", "22224112", "11324113", "31324111", "23115112", "12215113", "32215111", "21315112", "24151111", "13251112", "14142112", "23242111", "12342112", "24133111", "13233112", "22333111", "11433112", "14124112", "23224111", "12324112", "21424111", "24115111", "13215112", "22315111", "11415112", "14251111", "15142111", "13342111", "14233111", "12433111", "15124111", "13324111", "11524111", "14215111", "12415111", "21161113", "41161111", "11152114", "31152112", "21143113", "41143111", "11134114", "31134112", "21125113", "41125111", "11116114", "31116112", "22161112", "12152113", "32152111", "21252112", "22143112", "11243113", "31243111", "12134113", "32134111", "21234112", "22125112", "11225113", "31225111", "12116113", "32116111", "21216112", "23161111", "13152112", "22252111", "23143111", "12243112", "21343111", "13134112", "22234111", "11334112", "23125111", "12225112", "21325111", "13116112", "22216111", "11316112", "14152111", "13243111", "14134111", "12334111", "13225111", "11425111", "14116111", "12316111", "41111215", "61111213", "21211126", "41211124", "61211122", "22111216", "42111214", "31211215", "51211213", "22211125", "42211123", "11311126", "31311124", "51311122", "23111215", "43111213", "12211216", "32211214", "52211212", "21311215", "41311213", "61311211", "23211124", "43211122", "12311125", "32311123", "52311121", "21411124", "41411122", "24111214", "13211215", "33211213", "22311214", "42311212", "11411215", "31411213", "51411211", "24211123", "13311124", "33311122", "22411123", "42411121", "11511124", "31511122", "25111213", "14211214", "34211212", "23311213", "43311211", "12411214", "32411212", "21511213", "41511211", "25211122", "14311123", "34311121", "23411122", "12511123", "32511121", "21611122", "15211213", "24311212", "13411213", "33411211", "22511212", "11611213", "31611211", "31121125", "51121123", "21112126", "41112124", "61112122", "21121216", "41121214", "61121212", "31112215", "51112213", "12121126", "32121124", "52121122", "21221125", "41221123", "61221121", "22112125", "42112123", "11212126", "22121215", "42121213", "11221216", "31221214", "51221212", "12112216", "32112214", "52112212", "21212215", "41212213", "61212211", "13121125", "33121123", "22221124", "42221122", "11321125", "31321123", "51321121", "23112124", "43112122", "12212125", "23121214", "43121212", "12221215", "32221213", "52221211", "21321214", "41321212", "13112215", "33112213", "22212214", "42212212", "11312215", "31312213", "51312211", "14121124", "34121122", "23221123", "43221121", "12321124", "32321122", "21421123", "41421121", "24112123", "13212124", "24121213", "13221214", "33221212", "11412124", "22321213", "42321211", "11421214", "31421212", "14112214", "34112212", "23212213", "43212211", "12312214", "32312212", "21412213", "41412211", "15121123", "24221122", "13321123", "33321121", "22421122", "11521123", "31521121", "25112122", "14212123", "25121212", "14221213", "34221211", "12412123", "23321212", "12421213", "32421211", "21521212", "15112213", "24212212", "13312213", "33312211", "22412212", "11512213", "31512211", "16121122", "25221121", "14321122", "23421121", "12521122", "15212122", "15221212", "13412122", "24321211", "13421212", "11612122", "22521211", "16112212", "25212211", "14312212", "23412211", "12512212", "21612211", "11131126", "31131124", "51131122", "21122125", "41122123", "61122121", "21131215", "41131213", "61131211", "11113126", "31113124", "51113122", "11122216", "31122214", "51122212", "21113215", "41113213", "61113211", "12131125", "32131123", "52131121", "21231124", "41231122", "22122124", "42122122", "11222125", "22131214", "42131212", "11231215", "31231213", "51231211", "12113125", "32113123", "52113121", "12122215", "32122213", "52122211", "21222214", "41222212", "22113214", "42113212", "11213215", "31213213", "51213211", "13131124", "33131122", "22231123", "42231121", "11331124", "31331122", "23122123", "43122121", "12222124", "23131213", "43131211", "12231214", "32231212", "21331213", "41331211", "13113124", "33113122", "13122214", "33122212", "11313124", "22222213", "42222211", "11322214", "31322212", "23113213", "43113211", "12213214", "32213212", "21313213", "41313211", "14131123", "34131121", "23231122", "12331123", "32331121", "21431122", "24122122", "13222123", "24131212", "13231213", "33231211", "11422123", "22331212", "11431213", "31431211", "14113123", "34113121", "14122213", "34122211", "12313123", "23222212", "12322213", "32322211", "21422212", "24113212", "13213213", "33213211", "22313212", "11413213", "31413211", "15131122", "24231121", "13331122", "22431121", "25122121", "14222122", "25131211", "14231212", "12422122", "23331211", "12431212", "15113122", "15122212", "13313122", "24222211", "13322212", "11513122", "22422211", "11522212", "25113211", "14213212", "23313211", "12413212", "21513211", "16131121", "14331121", "15222121", "15231211", "13422121", "13431211", "16113121", "16122211", "14313121", "14322211", "12513121", "12522211", "15213211", "13413211", "11613211", "11141125", "31141123", "51141121", "21132124", "41132122", "21141214", "41141212", "11123125", "31123123", "51123121", "11132215", "31132213", "51132211", "21114124", "41114122", "21123214", "41123212", "11114215", "31114213", "51114211", "12141124", "32141122", "21241123", "41241121", "22132123", "42132121", "11232124", "22141213", "42141211", "11241214", "31241212", "12123124", "32123122", "12132214", "32132212", "21232213", "41232211", "22114123", "42114121", "11214124", "22123213", "42123211", "11223214", "31223212", "12114214", "32114212", "21214213", "41214211", "13141123", "33141121", "22241122", "11341123", "31341121", "23132122", "12232123", "23141212", "12241213", "32241211", "21341212", "13123123", "33123121", "13132213", "33132211", "11323123", "22232212", "11332213", "31332211", "23114122", "12214123", "23123212", "12223213", "32223211", "21323212", "13114213", "33114211", "22214212", "11314213", "31314211", "14141122", "23241121", "12341122", "24132121", "13232122", "24141211", "13241212", "11432122", "22341211", "14123122", "14132212", "12323122", "23232211", "12332212", "21432211", "24114121", "13214122", "24123211", "13223212", "11414122", "22323211", "11423212", "14114212", "23214211", "12314212", "21414211", "15141121", "13341121", "14232121", "14241211", "12432121", "15123121", "15132211", "13323121", "13332211", "11523121", "14214121", "14223211", "12414121", "12423211", "15114211", "13314211", "11514211", "11151124", "31151122", "21142123", "41142121", "21151213", "41151211", "11133124", "31133122", "11142214", "31142212", "21124123", "41124121", "21133213", "41133211", "11115124", "31115122", "11124214", "31124212", "21115213", "41115211", "12151123", "32151121", "21251122", "22142122", "11242123", "22151212", "11251213", "31251211", "12133123", "32133121", "12142213", "32142211", "21242212", "22124122", "11224123", "22133212", "11233213", "31233211", "12115123", "32115121", "12124213", "32124211", "21224212", "22115212", "11215213", "31215211", "13151122", "22251121", "23142121", "12242122", "23151211", "12251212", "13133122", "13142212", "11333122", "22242211", "11342212", "23124121", "12224122", "23133211", "12233212", "21333211", "13115122", "13124212", "11315122", "22224211", "11324212", "23115211", "12215212", "21315211", "14151121", "13242121", "13251211", "14133121", "14142211", "12333121", "12342211", "13224121", "13233211", "11424121", "11433211", "14115121", "14124211", "12315121", "12324211", "13215211", "11415211", "11161123", "31161121", "21152122", "21161212", "11143123", "31143121", "11152213", "31152211", "21134122", "21143212", "11125123", "31125121", "11134213", "31134211", "21116122", "21125212", "12161122", "22152121", "11252122", "22161211", "12143122", "12152212", "21252211", "22134121", "11234122", "22143211", "11243212", "12125122", "12134212", "21234211", "22116121", "11216122", "22125211", "11225212", "13161121", "12252121", "13143121", "13152211", "11343121", "12234121", "12243211", "13125121", "13134211", "11325121", "11334211", "12216121", "12225211", "31111225", "51111223", "21111316", "41111314", "61111312", "31211134", "51211132", "12111226", "32111224", "52111222", "21211225", "41211223", "61211221", "22111315", "42111313", "11211316", "31211314", "51211312", "12211135", "32211133", "52211131", "21311134", "41311132", "13111225", "33111223", "22211224", "42211222", "11311225", "31311223", "51311221", "23111314", "43111312", "12211315", "32211313", "52211311", "21311314", "41311312", "13211134", "33211132", "22311133", "42311131", "11411134", "31411132", "14111224", "34111222", "23211223", "43211221", "12311224", "32311222", "21411223", "41411221", "24111313", "13211314", "33211312", "22311313", "42311311", "11411314", "31411312", "14211133", "34211131", "23311132", "12411133", "32411131", "21511132", "15111223", "24211222", "13311223", "33311221", "22411222", "11511223", "31511221", "25111312", "14211313", "34211311", "23311312", "12411313", "32411311", "21511312", "15211132", "24311131", "13411132", "22511131", "11611132", "16111222", "25211221", "14311222", "23411221", "12511222", "21611221", "15211312", "24311311", "13411312", "22511311", "11611312", "21121135", "41121133", "61121131", "11112136", "31112134", "51112132", "11121226", "31121224", "51121222", "21112225", "41112223", "61112221", "21121315", "41121313", "61121311", "11112316", "31112314", "51112312", "22121134", "42121132", "11221135", "31221133", "51221131", "12112135", "32112133", "52112131", "12121225", "32121223", "52121221", "21221224", "41221222", "22112224", "42112222", "11212225", "22121314", "42121312", "11221315", "31221313", "51221311", "12112315", "32112313", "52112311", "21212314", "41212312", "23121133", "43121131", "12221134", "32221132", "21321133", "41321131", "13112134", "33112132", "13121224", "33121222", "11312134", "22221223", "42221221", "11321224", "31321222", "23112223", "43112221", "12212224", "23121313", "43121311", "12221314", "32221312", "21321313", "41321311", "13112314", "33112312", "22212313", "42212311", "11312314", "31312312", "24121132", "13221133", "33221131", "22321132", "11421133", "31421131", "14112133", "34112131", "14121223", "34121221", "12312133", "23221222", "12321223", "32321221", "21421222", "24112222", "13212223", "24121312", "13221313", "33221311", "11412223", "22321312", "11421313", "31421311", "14112313", "34112311", "23212312", "12312313", "32312311", "21412312", "25121131", "14221132", "23321131", "12421132", "21521131", "15112132", "15121222", "13312132", "24221221", "13321222", "11512132", "22421221", "11521222", "25112221", "14212222", "25121311", "14221312", "12412222", "23321311", "12421312", "21521311", "15112312", "24212311", "13312312", "22412311", "11512312", "15221131", "13421131", "16112131", "16121221", "14312131", "14321221", "12512131", "12521221", "15212221", "15221311", "13412221", "13421311", "11612221", "16112311", "14312311", "12512311", "21131134", "41131132", "11122135", "31122133", "51122131", "11131225", "31131223", "51131221", "21113134", "41113132", "21122224", "41122222", "21131314", "41131312", "11113225", "31113223", "51113221", "11122315", "31122313", "51122311", "21113314", "41113312", "22131133", "42131131", "11231134", "31231132", "12122134", "32122132", "12131224", "32131222", "21231223", "41231221", "22113133", "42113131", "11213134", "22122223", "42122221", "11222224", "22131313", "42131311", "11231314", "31231312", "12113224", "32113222", "12122314", "32122312", "21222313", "41222311", "22113313", "42113311", "11213314", "31213312", "23131132", "12231133", "32231131", "21331132", "13122133", "33122131", "13131223", "33131221", "11322133", "22231222", "11331223", "31331221", "23113132", "12213133", "23122222", "12222223", "23131312", "12231313", "32231311", "21331312", "13113223", "33113221", "13122313", "33122311", "11313223", "22222312", "11322313", "31322311", "23113312", "12213313", "32213311", "21313312", "24131131", "13231132", "22331131", "11431132", "14122132", "14131222", "12322132", "23231221", "12331222", "21431221", "24113131", "13213132", "24122221", "13222222", "24131311", "11413132", "13231312", "11422222", "22331311", "11431312", "14113222", "14122312", "12313222", "23222311", "12322312", "21422311", "24113311", "13213312", "22313311", "11413312", "14231131", "12431131", "15122131", "15131221", "13322131", "13331221", "11522131", "14213131", "14222221", "12413131", "14231311", "12422221", "12431311", "15113221", "15122311", "13313221", "13322311", "11513221", "11522311", "14213311", "12413311", "21141133", "41141131", "11132134", "31132132", "11141224", "31141222", "21123133", "41123131", "21132223", "41132221", "21141313", "41141311", "11114134", "31114132", "11123224", "31123222", "11132314", "31132312", "21114223", "41114221", "21123313", "41123311", "11114314", "31114312", "22141132", "11241133", "31241131", "12132133", "32132131", "12141223", "32141221", "21241222", "22123132", "11223133", "22132222", "11232223", "22141312", "11241313", "31241311", "12114133", "32114131", "12123223", "32123221", "12132313", "32132311", "21232312", "22114222", "11214223", "22123312", "11223313", "31223311", "12114313", "32114311", "21214312", "23141131", "12241132", "21341131", "13132132", "13141222", "11332132", "22241221", "11341222", "23123131", "12223132", "23132221", "12232222", "23141311", "12241312", "21341311", "13114132", "13123222", "11314132", "13132312", "11323222", "22232311", "11332312", "23114221", "12214222", "23123311", "12223312", "21323311", "13114312", "22214311", "11314312", "13241131", "14132131", "14141221", "12332131", "12341221", "13223131", "13232221", "11423131", "13241311", "11432221", "14114131", "14123221", "12314131", "14132311", "12323221", "12332311", "13214221", "13223311", "11414221", "11423311", "14114311", "12314311", "21151132", "11142133", "31142131", "11151223", "31151221", "21133132", "21142222", "21151312", "11124133", "31124131", "11133223", "31133221", "11142313", "31142311", "21115132", "21124222", "21133312", "11115223", "31115221", "11124313", "31124311", "22151131", "11251132", "12142132", "12151222", "21251221", "22133131", "11233132", "22142221", "11242222", "22151311", "11251312", "12124132", "12133222", "12142312", "21242311", "22115131", "11215132", "22124221", "11224222", "22133311", "11233312", "12115222", "12124312", "21224311", "12251131", "13142131", "13151221", "11342131", "12233131", "12242221", "12251311", "13124131", "13133221", "11324131", "13142311", "11333221", "11342311", "12215131", "12224221", "12233311", "13115221", "13124311", "11315221", "11324311", "21161131", "11152132", "11161222", "21143131", "21152221", "21161311", "11134132", "11143222", "11152312", "21125131", "21134221", "21143311", "11116132", "11125222", "11134312", "12152131", "12161221", "11243131", "11252221", "12134131", "12143221", "12152311", "11225131", "11234221", "11243311", "12116131", "12125221", "12134311", "21111235", "41111233", "61111231", "11111326", "31111324", "51111322", "21111415", "41111413", "61111411", "21211144", "41211142", "22111234", "42111232", "11211235", "31211233", "51211231", "12111325", "32111323", "52111321", "21211324", "41211322", "22111414", "42111412", "11211415", "31211413", "51211411", "22211143", "42211141", "11311144", "31311142", "23111233", "43111231", "12211234", "32211232", "21311233", "41311231", "13111324", "33111322", "22211323", "42211321", "11311324", "31311322", "23111413", "43111411", "12211414", "32211412", "21311413", "41311411", "23211142", "12311143", "32311141", "21411142", "24111232", "13211233", "33211231", "22311232", "11411233", "31411231", "14111323", "34111321", "23211322", "12311323", "32311321", "21411322", "24111412", "13211413", "33211411", "22311412", "11411413", "31411411", "24211141", "13311142", "22411141", "11511142", "25111231", "14211232", "23311231", "12411232", "21511231", "15111322", "24211321", "13311322", "22411321", "11511322", "25111411", "14211412", "23311411", "12411412", "21511411", "14311141", "12511141", "15211231", "13411231", "11611231", "16111321", "14311321", "12511321", "15211411", "13411411", "11611411", "31121143", "51121141", "21112144", "41112142", "21121234", "41121232", "11112235", "31112233", "51112231", "11121325", "31121323", "51121321", "21112324", "41112322", "21121414", "41121412", "11112415", "31112413", "51112411", "12121144", "32121142", "21221143", "41221141", "22112143", "42112141", "11212144", "22121233", "42121231", "11221234", "31221232", "12112234", "32112232", "12121324", "32121322", "21221323", "41221321", "22112323", "42112321", "11212324", "22121413", "42121411", "11221414", "31221412", "12112414", "32112412", "21212413", "41212411", "13121143", "33121141", "22221142", "11321143", "31321141", "23112142", "12212143", "23121232", "12221233", "32221231", "21321232", "13112233", "33112231", "13121323", "33121321", "11312233", "22221322", "11321323", "31321321", "23112322", "12212323", "23121412", "12221413", "32221411", "21321412", "13112413", "33112411", "22212412", "11312413", "31312411", "14121142", "23221141", "12321142", "21421141", "24112141", "13212142", "24121231", "13221232", "11412142", "22321231", "11421232", "14112232", "14121322", "12312232", "23221321", "12321322", "21421321", "24112321", "13212322", "24121411", "13221412", "11412322", "22321411", "11421412", "14112412", "23212411", "12312412", "21412411", "15121141", "13321141", "11521141", "14212141", "14221231", "12412141", "12421231", "15112231", "15121321", "13312231", "13321321", "11512231", "11521321", "14212321", "14221411", "12412321", "12421411", "15112411", "13312411", "11512411", "11131144", "31131142", "21122143", "41122141", "21131233", "41131231", "11113144", "31113142", "11122234", "31122232", "11131324", "31131322", "21113233", "41113231", "21122323", "41122321", "21131413", "41131411", "11113324", "31113322", "11122414", "31122412", "21113413", "41113411", "12131143", "32131141", "21231142", "22122142", "11222143", "22131232", "11231233", "31231231", "12113143", "32113141", "12122233", "32122231", "12131323", "32131321", "21231322", "22113232", "11213233", "22122322", "11222323", "22131412", "11231413", "31231411", "12113323", "32113321", "12122413", "32122411", "21222412", "22113412", "11213413", "31213411", "13131142", "22231141", "11331142", "23122141", "12222142", "23131231", "12231232", "21331231", "13113142", "13122232", "11313142", "13131322", "11322232", "22231321", "11331322", "23113231", "12213232", "23122321", "12222322", "23131411", "12231412", "21331411", "13113322", "13122412", "11313322", "22222411", "11322412", "23113411", "12213412", "21313411", "14131141", "12331141", "13222141", "13231231", "11422141", "11431231", "14113141", "14122231", "12313141", "14131321", "12322231", "12331321", "13213231", "13222321", "11413231", "13231411", "11422321", "11431411", "14113321", "14122411", "12313321", "12322411", "13213411", "11413411", "11141143", "31141141", "21132142", "21141232", "11123143", "31123141", "11132233", "31132231", "11141323", "31141321", "21114142", "21123232", "21132322", "21141412", "11114233", "31114231", "11123323", "31123321", "11132413", "31132411", "21114322", "21123412", "12141142", "21241141", "22132141", "11232142", "22141231", "11241232", "12123142", "12132232", "12141322", "21241321", "22114141", "11214142", "22123231", "11223232", "22132321", "11232322", "22141411", "11241412", "12114232", "12123322", "12132412", "21232411", "22114321", "11214322", "22123411", "11223412", "13141141", "11341141", "12232141", "12241231", "13123141", "13132231", "11323141", "13141321", "11332231", "11341321", "12214141", "12223231", "12232321", "12241411", "13114231", "13123321", "11314231", "13132411", "11323321", "11332411", "12214321", "12223411", "11151142", "21142141", "21151231", "11133142", "11142232", "11151322", "21124141", "21133231", "21142321", "21151411", "11115142", "11124232", "11133322", "11142412", "21115231", "21124321", "21133411", "12151141", "11242141", "11251231", "12133141", "12142231", "12151321", "11224141", "11233231", "11242321", "11251411", "12115141", "12124231", "12133321", "12142411", "11215231", "11224321", "11233411", "11161141", "11143141", "11152231", "11161321", "11125141", "11134231", "11143321", "11152411", "11111245", "31111243", "51111241", "21111334", "41111332", "11111425", "31111423", "51111421", "21111514", "41111512", "31211152", "12111244", "32111242", "21211243", "41211241", "22111333", "42111331", "11211334", "31211332", "12111424", "32111422", "21211423", "41211421", "22111513", "42111511", "11211514", "31211512", "12211153", "32211151", "21311152", "13111243", "33111241", "22211242", "11311243", "31311241", "23111332", "12211333", "32211331", "21311332", "13111423", "33111421", "22211422", "11311423", "31311421", "23111512", "12211513", "32211511", "21311512", "13211152", "22311151", "11411152", "14111242", "23211241", "12311242", "21411241", "24111331", "13211332", "22311331", "11411332", "14111422", "23211421", "12311422", "21411421", "24111511", "13211512", "22311511", "11411512", "14211151", "12411151", "15111241", "13311241", "11511241", "14211331", "12411331", "15111421", "13311421", "11511421", "14211511", "12411511", "21121153", "41121151", "11112154", "31112152", "11121244", "31121242", "21112243", "41112241", "21121333", "41121331", "11112334", "31112332", "11121424", "31121422", "21112423", "41112421", "21121513", "41121511", "11112514", "31112512", "22121152", "11221153", "31221151", "12112153", "32112151", "12121243", "32121241", "21221242", "22112242", "11212243", "22121332", "11221333", "31221331", "12112333", "32112331", "12121423", "32121421", "21221422", "22112422", "11212423", "22121512", "11221513", "31221511", "12112513", "32112511", "21212512", "23121151", "12221152", "21321151", "13112152", "13121242", "11312152", "22221241", "11321242", "23112241", "12212242", "23121331", "12221332", "21321331", "13112332", "13121422", "11312332", "22221421", "11321422", "23112421", "12212422", "23121511", "12221512", "21321511", "13112512", "22212511", "11312512", "13221151", "11421151", "14112151", "14121241", "12312151", "12321241", "13212241", "13221331", "11412241", "11421331", "14112331", "14121421", "12312331", "12321421", "13212421", "13221511", "11412421", "11421511", "14112511", "12312511", "21131152", "11122153", "31122151", "11131243", "31131241", "21113152", "21122242", "21131332", "11113243", "31113241", "11122333", "31122331", "11131423", "31131421", "21113332", "21122422", "21131512", "11113423", "31113421", "11122513", "31122511", "22131151", "11231152", "12122152", "12131242", "21231241", "22113151", "11213152", "22122241", "11222242", "22131331", "11231332", "12113242", "12122332", "12131422", "21231421", "22113331", "11213332", "22122421", "11222422", "22131511", "11231512", "12113422", "12122512", "21222511", "12231151", "13122151", "13131241", "11322151", "11331241", "12213151", "12222241", "12231331", "13113241", "13122331", "11313241", "13131421", "11322331", "11331421", "12213331", "12222421", "12231511", "13113421", "13122511", "11313421", "11322511", "21141151", "11132152", "11141242", "21123151", "21132241", "21141331", "11114152", "11123242", "11132332", "11141422", "21114241", "21123331", "21132421", "21141511", "11114332", "11123422", "11132512", "11241151", "12132151", "12141241", "11223151", "11232241", "11241331", "12114151", "12123241", "12132331", "12141421", "11214241", "11223331", "11232421", "11241511", "12114331", "12123421", "12132511", "11142151", "11151241", "11124151", "11133241", "11142331", "11151421", "11115241", "11124331", "11133421", "11142511", "21111253", "41111251", "11111344", "31111342", "21111433", "41111431", "11111524", "31111522", "21111613", "41111611", "21211162", "22111252", "11211253", "31211251", "12111343", "32111341", "21211342", "22111432", "11211433", "31211431", "12111523", "32111521", "21211522", "22111612", "11211613", "31211611", "22211161", "11311162", "23111251", "12211252", "21311251", "13111342", "22211341", "11311342", "23111431", "12211432", "21311431", "13111522", "22211521", "11311522", "23111611", "12211612", "21311611", "12311161", "13211251", "11411251", "14111341", "12311341", "13211431", "11411431", "14111521", "12311521", "13211611", "11411611", "31121161", "21112162", "21121252", "11112253", "31112251", "11121343", "31121341", "21112342", "21121432", "11112433", "31112431", "11121523", "31121521", "21112522", "21121612", "12121162", "21221161", "22112161", "11212162", "22121251", "11221252", "12112252", "12121342", "21221341", "22112341", "11212342", "22121431", "11221432", "12112432", "12121522", "21221521", "22112521", "11212522", "22121611", "11221612", "13121161", "11321161", "12212161", "12221251", "13112251", "13121341", "11312251", "11321341", "12212341", "12221431", "13112431", "13121521", "11312431", "11321521", "12212521", "12221611", "11131162", "21122161", "21131251", "11113162" ]) ]); - $1.parity = $a([ "1001", "0101", "1100", "0011", "1010", "0110", "1111", "0000" ]); - $1.rowbits = $a($1.r); - for (var _5z = 0, _5y = $f($1.r - 1); _5z <= _5y; _5z += 1) { - $1.i = _5z; - $k[$j++] = "p"; - if ($1.i != $f($1.r - 1)) { - $k[$j++] = $get($1.parity, $1.i); - } else { - $k[$j++] = "0000"; - } - var _65 = $k[--$j]; - $1[$k[--$j]] = _65; - $1.ccrow = $geti($1.ccs, $1.i * 8, 8); - $k[$j++] = Infinity; - for (var _6A = 0; _6A <= 7; _6A += 2) { - $aload($geti($1.ccrow, _6A, 2)); - var _6D = $k[--$j]; - var _6E = $k[--$j]; - $k[$j++] = $f(_6D + _6E * 49); - } - $1.scrow = $a(); - $k[$j++] = Infinity; - $k[$j++] = 10; - $k[$j++] = 1; - $k[$j++] = 1; - for (var _6G = 0; _6G <= 3; _6G += 1) { - $1.j = _6G; - $forall($get($get($1.patterns, $f($get($1.p, $1.j) - 48)), $get($1.scrow, $1.j)), function() { - var _6Q = $k[--$j]; - $k[$j++] = $f(_6Q - 48); - }); - } - $k[$j++] = 4; - $k[$j++] = 1; - $1.sbs = $a(); - $k[$j++] = Infinity; - var _6S = $1.sbs; - $k[$j++] = 1; - for (var _6T = 0, _6U = _6S.length; _6T < _6U; _6T++) { - var _6W = $k[--$j]; - var _6X = _6W == 0 ? 1 : 0; - $k[$j++] = _6W; - for (var _6Y = 0, _6Z = $get(_6S, _6T); _6Y < _6Z; _6Y++) { - $k[$j++] = _6X; - } - } - $astore($a($counttomark() - 1)); - var _6c = $k[--$j]; - var _6d = $k[--$j]; - $k[$j++] = _6c; - $k[$j++] = _6d; - $j--; - var _6e = $k[--$j]; - var _6f = $k[--$j]; - $k[$j++] = _6e; - $k[$j++] = _6f; - $j--; - $put($1.rowbits, $1.i, $k[--$j]); - } - $k[$j++] = Infinity; - for (var _6k = 0, _6l = 81 * $1.sepheight; _6k < _6l; _6k++) { - $k[$j++] = 1; - } - for (var _6o = 0, _6n = $f($1.r - 2); _6o <= _6n; _6o += 1) { - $1.i = _6o; - for (var _6q = 0, _6r = $1.rowheight; _6q < _6r; _6q++) { - $aload($get($1.rowbits, $1.i)); - } - for (var _6w = 0, _6x = $1.sepheight; _6w < _6x; _6w++) { - for (var _6y = 0, _6z = 10; _6y < _6z; _6y++) { - $k[$j++] = 0; - } - for (var _70 = 0, _71 = 70; _70 < _71; _70++) { - $k[$j++] = 1; - } - $k[$j++] = 0; - } - } - for (var _73 = 0, _74 = $1.rowheight; _73 < _74; _73++) { - $aload($get($1.rowbits, $f($1.r - 1))); - } - for (var _79 = 0, _7A = 81 * $1.sepheight; _79 < _7A; _79++) { - $k[$j++] = 1; - } - $1.pixs = $a(); - var _7G = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", 81 ], [ "pixy", ~~($1.pixs.length / 81) ], [ "height", ~~($1.pixs.length / 81) / 72 ], [ "width", 81 / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _7G; - if (!$1.dontdraw) { - $0.renmatrix(); - } + $1.weights = $k[--$j]; //#13715 + $1.score = 0; //#13716 + for (var _4h = 0, _4g = (~~(($f($1.r - 1) * 8) / 2)) - 1; _4h <= _4g; _4h += 1) { //#13721 + $1.i = _4h; //#13718 + $1.score = $f((($f(($get($1.ccs, $1.i * 2) * 49) + $get($1.ccs, ($1.i * 2) + 1))) * $get($1.weights, $1.i + 1)) + $1.score); //#13720 + } //#13720 + $k[$j++] = $1.score; //#13722 + }; //#13723 + $1.lastrow = $geti($1.ccs, $1.ccs.length - 8, 8); //#13724 + if ($1.r >= 7) { //#13731 + $k[$j++] = $1.cr7 * $get($1.weightz, 0); //#13728 + $k[$j++] = $1.weightz; //#13728 + $1.calccheck(); //#13728 + var _51 = $k[--$j]; //#13728 + var _53 = $f($k[--$j] + _51) % 2401; //#13729 + $k[$j++] = ~~(_53 / 49); //#13729 + $k[$j++] = _53 % 49; //#13729 + $astore($a(2)); //#13729 + $puti($1.lastrow, 0, $k[--$j]); //#13730 + } //#13730 + $1.wr1 = $f(($get($1.lastrow, 0) * 49) + $get($1.lastrow, 1)); //#13732 + $k[$j++] = $1.cr7 * $get($1.weighty, 0); //#13735 + $k[$j++] = $1.weighty; //#13735 + $1.calccheck(); //#13735 + var _5F = $k[--$j]; //#13735 + var _5L = ($f($f($k[--$j] + _5F) + ($1.wr1 * $get($1.weighty, $f(($1.r * 4) - 3))))) % 2401; //#13737 + $1.wr2 = _5L; //#13737 + $k[$j++] = ~~(_5L / 49); //#13738 + $k[$j++] = _5L % 49; //#13738 + $astore($a(2)); //#13738 + $puti($1.lastrow, 2, $k[--$j]); //#13739 + $k[$j++] = $1.cr7 * $get($1.weightx, 0); //#13742 + $k[$j++] = $1.weightx; //#13742 + $1.calccheck(); //#13742 + var _5T = $k[--$j]; //#13742 + var _5d = ($f(($f($f($k[--$j] + _5T) + ($1.wr1 * $get($1.weightx, $f(($1.r * 4) - 3))))) + ($1.wr2 * $get($1.weightx, $f(($1.r * 4) - 2))))) % 2401; //#13746 + $k[$j++] = ~~(_5d / 49); //#13746 + $k[$j++] = _5d % 49; //#13746 + $astore($a(2)); //#13746 + $puti($1.lastrow, 4, $k[--$j]); //#13747 + var _5j = $geti($1.ccs, $1.ccs.length - 8, 7); //#13750 + $k[$j++] = 0; //#13750 + for (var _5k = 0, _5l = _5j.length; _5k < _5l; _5k++) { //#13750 + var _5n = $k[--$j]; //#13750 + $k[$j++] = $f(_5n + $get(_5j, _5k)); //#13750 + } //#13750 + $put($1.ccs, $1.ccs.length - 1, $k[--$j] % 49); //#13751 + $1.patterns = $a([$a(["11521132", "25112131", "14212132", "25121221", "14221222", "12412132", "23321221", "12421222", "21521221", "15112222", "15121312", "13312222", "24221311", "13321312", "11512222", "22421311", "11521312", "25112311", "14212312", "23312311", "12412312", "21512311", "16121131", "14321131", "12521131", "15212131", "15221221", "13412131", "13421221", "11612131", "16112221", "16121311", "14312221", "14321311", "12512221", "12521311", "15212311", "13412311", "11612311", "11131135", "31131133", "51131131", "21122134", "41122132", "21131224", "41131222", "11113135", "31113133", "51113131", "11122225", "31122223", "51122221", "11131315", "31131313", "51131311", "21113224", "41113222", "21122314", "41122312", "11113315", "31113313", "51113311", "12131134", "32131132", "21231133", "41231131", "22122133", "42122131", "11222134", "22131223", "42131221", "11231224", "31231222", "12113134", "32113132", "12122224", "32122222", "12131314", "32131312", "21231313", "41231311", "22113223", "42113221", "11213224", "22122313", "42122311", "11222314", "31222312", "12113314", "32113312", "21213313", "41213311", "13131133", "33131131", "22231132", "11331133", "31331131", "23122132", "12222133", "23131222", "12231223", "32231221", "21331222", "13113133", "33113131", "13122223", "33122221", "11313133", "13131313", "33131311", "11322223", "22231312", "11331313", "31331311", "23113222", "12213223", "23122312", "12222313", "32222311", "21322312", "13113313", "33113311", "22213312", "11313313", "31313311", "14131132", "23231131", "12331132", "21431131", "24122131", "13222132", "24131221", "13231222", "11422132", "22331221", "11431222", "14113132", "14122222", "12313132", "14131312", "12322222", "23231311", "12331312", "21431311", "24113221", "13213222", "24122311", "13222312", "11413222", "22322311", "11422312", "14113312", "23213311", "12313312", "21413311", "15131131", "13331131", "14222131", "14231221", "12422131", "12431221", "15113131", "15122221", "13313131", "15131311", "13322221", "11513131", "13331311", "11522221", "14213221", "14222311", "12413221", "12422311", "15113311", "13313311", "11513311", "11141134", "31141132", "21132133", "41132131", "21141223", "41141221", "11123134", "31123132", "11132224", "31132222", "11141314", "31141312", "21114133", "41114131", "21123223", "41123221", "21132313", "41132311", "11114224", "31114222", "11123314", "31123312", "21114313", "41114311", "12141133", "32141131", "21241132", "22132132", "11232133", "22141222", "11241223", "31241221", "12123133", "32123131", "12132223", "32132221", "12141313", "32141311", "21241312", "22114132", "11214133", "22123222", "11223223", "22132312", "11232313", "31232311", "12114223", "32114221", "12123313", "32123311", "21223312", "22114312", "11214313", "31214311", "13141132", "22241131", "11341132", "23132131", "12232132", "23141221", "12241222", "21341221", "13123132", "13132222", "11323132", "13141312", "11332222", "22241311", "11341312", "23114131", "12214132", "23123221", "12223222", "23132311", "12232312", "21332311", "13114222", "13123312", "11314222", "22223311", "11323312", "23114311", "12214312", "21314311", "14141131", "12341131", "13232131", "13241221", "11432131", "14123131", "14132221", "12323131", "14141311", "12332221", "12341311", "13214131", "13223221", "11414131", "13232311", "11423221", "11432311", "14114221", "14123311", "12314221", "12323311", "13214311", "11414311", "11151133", "31151131", "21142132", "21151222", "11133133", "31133131", "11142223", "31142221", "11151313", "31151311", "21124132", "21133222", "21142312", "11115133", "31115131", "11124223", "31124221", "11133313", "31133311", "21115222", "21124312", "12151132", "21251131", "22142131", "11242132", "22151221", "11251222", "12133132", "12142222", "12151312", "21251311", "22124131", "11224132", "22133221", "11233222", "22142311", "11242312", "12115132", "12124222", "12133312", "21233311", "22115221", "11215222", "22124311", "11224312", "13151131", "12242131", "12251221", "13133131", "13142221", "11333131", "13151311", "11342221", "12224131", "12233221", "12242311", "13115131", "13124221", "11315131", "13133311", "11324221", "11333311", "12215221", "12224311", "11161132", "21152131", "21161221", "11143132", "11152222", "11161312", "21134131", "21143221", "21152311", "11125132", "11134222", "11143312", "21116131", "21125221", "21134311", "12161131", "11252131", "12143131", "12152221", "12161311", "11234131", "11243221", "11252311", "12125131", "12134221", "12143311", "11216131", "11225221", "11234311", "11111236", "31111234", "51111232", "21111325", "41111323", "61111321", "11111416", "31111414", "51111412", "31211143", "51211141", "12111235", "32111233", "52111231", "21211234", "41211232", "22111324", "42111322", "11211325", "31211323", "51211321", "12111415", "32111413", "52111411", "21211414", "41211412", "12211144", "32211142", "21311143", "41311141", "13111234", "33111232", "22211233", "42211231", "11311234", "31311232", "23111323", "43111321", "12211324", "32211322", "21311323", "41311321", "13111414", "33111412", "22211413", "42211411", "11311414", "31311412", "13211143", "33211141", "22311142", "11411143", "31411141", "14111233", "34111231", "23211232", "12311233", "32311231", "21411232", "24111322", "13211323", "33211321", "22311322", "11411323", "31411321", "14111413", "34111411", "23211412", "12311413", "32311411", "21411412", "14211142", "23311141", "12411142", "21511141", "15111232", "24211231", "13311232", "22411231", "11511232", "25111321", "14211322", "23311321", "12411322", "21511321", "15111412", "24211411", "13311412", "22411411", "11511412", "15211141", "13411141", "11611141", "16111231", "14311231", "12511231", "15211321", "13411321", "11611321", "16111411", "14311411", "12511411", "21121144", "41121142", "11112145", "31112143", "51112141", "11121235", "31121233", "51121231", "21112234", "41112232", "21121324", "41121322", "11112325", "31112323", "51112321", "11121415", "31121413", "51121411", "21112414", "41112412", "22121143", "42121141", "11221144", "31221142", "12112144", "32112142", "12121234", "32121232", "21221233", "41221231", "22112233", "42112231", "11212234", "22121323", "42121321", "11221324", "31221322", "12112324", "32112322", "12121414", "32121412", "21221413", "41221411", "22112413", "42112411", "11212414", "31212412", "23121142", "12221143", "32221141", "21321142", "13112143", "33112141", "13121233", "33121231", "11312143", "22221232", "11321233", "31321231", "23112232", "12212233", "23121322", "12221323", "32221321", "21321322", "13112323", "33112321", "13121413", "33121411", "11312323", "22221412", "11321413", "31321411", "23112412", "12212413", "32212411", "21312412", "24121141", "13221142", "22321141", "11421142", "14112142", "14121232", "12312142", "23221231", "12321232", "21421231", "24112231", "13212232", "24121321", "13221322", "11412232", "22321321", "11421322", "14112322", "14121412", "12312322", "23221411", "12321412", "21421411", "24112411", "13212412", "22312411", "11412412", "14221141", "12421141", "15112141", "15121231", "13312141", "13321231", "11512141", "11521231", "14212231", "14221321", "12412231", "12421321", "15112321", "15121411", "13312321", "13321411", "11512321", "11521411", "14212411", "12412411", "21131143", "41131141", "11122144", "31122142", "11131234", "31131232", "21113143", "41113141", "21122233", "41122231", "21131323", "41131321", "11113234", "31113232", "11122324", "31122322", "11131414", "31131412", "21113323", "41113321", "21122413", "41122411", "11113414", "31113412", "22131142", "11231143", "31231141", "12122143", "32122141", "12131233", "32131231", "21231232", "22113142", "11213143", "22122232", "11222233", "22131322", "11231323", "31231321", "12113233", "32113231", "12122323", "32122321", "12131413", "32131411", "21231412", "22113322", "11213323", "22122412", "11222413", "31222411", "12113413", "32113411", "21213412", "23131141", "12231142", "21331141", "13122142", "13131232", "11322142", "22231231", "11331232", "23113141", "12213142", "23122231", "12222232", "23131321", "12231322", "21331321", "13113232", "13122322", "11313232", "13131412", "11322322", "22231411", "11331412", "23113321", "12213322", "23122411", "12222412", "21322411", "13113412", "22213411", "11313412", "13231141", "11431141", "14122141", "14131231", "12322141", "12331231", "13213141", "13222231", "11413141", "13231321", "11422231", "11431321", "14113231", "14122321", "12313231", "14131411", "12322321", "12331411", "13213321", "13222411", "11413321", "11422411", "14113411", "12313411", "21141142", "11132143", "31132141", "11141233", "31141231", "21123142", "21132232", "21141322", "11114143", "31114141", "11123233", "31123231", "11132323", "31132321", "11141413", "31141411", "21114232", "21123322", "21132412", "11114323", "31114321", "11123413", "31123411", "22141141", "11241142", "12132142", "12141232", "21241231", "22123141", "11223142", "22132231", "11232232", "22141321", "11241322", "12114142", "12123232", "12132322", "12141412", "21241411", "22114231", "11214232", "22123321", "11223322", "22132411", "11232412", "12114322", "12123412", "21223411", "12241141", "13132141", "13141231", "11332141", "11341231", "12223141", "12232231", "12241321", "13114141", "13123231", "11314141", "13132321", "11323231", "13141411", "11332321", "11341411", "12214231", "12223321", "12232411", "13114321", "13123411", "11314321", "11323411", "21151141", "11142142", "11151232", "21133141", "21142231", "21151321", "11124142", "11133232", "11142322", "11151412", "21115141", "21124231", "21133321", "21142411", "11115232", "11124322", "11133412", "11251141", "12142141", "12151231", "11233141", "11242231", "11251321", "12124141", "12133231", "12142321", "12151411", "11215141", "11224231", "11233321", "11242411", "12115231", "12124321", "12133411", "11152141", "11161231", "11134141", "11143231", "11152321", "11161411", "11116141", "11125231", "11134321", "11143411", "21111244", "41111242", "11111335", "31111333", "51111331", "21111424", "41111422", "11111515", "31111513", "51111511", "21211153", "41211151", "22111243", "42111241", "11211244", "31211242", "12111334", "32111332", "21211333", "41211331", "22111423", "42111421", "11211424", "31211422", "12111514", "32111512", "21211513", "41211511", "22211152", "11311153", "31311151", "23111242", "12211243", "32211241", "21311242", "13111333", "33111331", "22211332", "11311333", "31311331", "23111422", "12211423", "32211421", "21311422", "13111513", "33111511", "22211512", "11311513", "31311511", "23211151", "12311152", "21411151", "24111241", "13211242", "22311241", "11411242", "14111332", "23211331", "12311332", "21411331", "24111421", "13211422", "22311421", "11411422", "14111512", "23211511", "12311512", "21411511", "13311151", "11511151", "14211241", "12411241", "15111331", "13311331", "11511331", "14211421", "12411421", "15111511", "13311511", "11511511", "31121152", "21112153", "41112151", "21121243", "41121241", "11112244", "31112242", "11121334", "31121332", "21112333", "41112331", "21121423", "41121421", "11112424", "31112422", "11121514", "31121512", "21112513", "41112511", "12121153", "32121151", "21221152", "22112152", "11212153", "22121242", "11221243", "31221241", "12112243", "32112241", "12121333", "32121331", "21221332", "22112332", "11212333", "22121422", "11221423", "31221421", "12112423", "32112421", "12121513", "32121511", "21221512", "22112512", "11212513", "31212511", "13121152", "22221151", "11321152", "23112151", "12212152", "23121241", "12221242", "21321241", "13112242", "13121332", "11312242", "22221331", "11321332", "23112331", "12212332", "23121421", "12221422", "21321421", "13112422", "13121512", "11312422", "22221511", "11321512", "23112511", "12212512", "21312511", "14121151", "12321151", "13212151", "13221241", "11412151", "11421241", "14112241", "14121331", "12312241", "12321331", "13212331", "13221421", "11412331", "11421421", "14112421", "14121511", "12312421", "12321511", "13212511", "11412511", "11131153", "31131151", "21122152", "21131242", "11113153", "31113151", "11122243", "31122241", "11131333", "31131331", "21113242", "21122332", "21131422", "11113333", "31113331", "11122423", "31122421", "11131513", "31131511", "21113422", "21122512", "12131152", "21231151", "22122151", "11222152", "22131241", "11231242", "12113152", "12122242", "12131332", "21231331", "22113241", "11213242", "22122331", "11222332", "22131421", "11231422", "12113332", "12122422", "12131512", "21231511", "22113421", "11213422", "22122511", "11222512", "13131151", "11331151", "12222151", "12231241", "13113151", "13122241", "11313151", "13131331", "11322241", "11331331", "12213241", "12222331", "12231421", "13113331", "13122421", "11313331", "13131511", "11322421", "11331511", "12213421", "12222511", "11141152", "21132151", "21141241", "11123152", "11132242", "11141332", "21114151", "21123241", "21132331", "21141421", "11114242", "11123332", "11132422", "11141512", "21114331", "21123421", "21132511", "12141151", "11232151", "11241241", "12123151", "12132241", "12141331", "11214151", "11223241", "11232331", "11241421", "12114241", "12123331", "12132421", "12141511", "11214331", "11223421", "11232511", "11151151", "11133151", "11142241", "11151331", "11115151", "11124241", "11133331", "11142421", "11151511", "11111254", "31111252", "21111343", "41111341", "11111434", "31111432", "21111523", "41111521", "11111614", "31111612", "31211161", "12111253", "32111251", "21211252", "22111342", "11211343", "31211341", "12111433", "32111431", "21211432", "22111522", "11211523", "31211521", "12111613", "32111611", "21211612", "12211162", "21311161", "13111252", "22211251", "11311252", "23111341", "12211342", "21311341", "13111432", "22211431", "11311432", "23111521", "12211522", "21311521", "13111612", "22211611", "11311612", "13211161", "11411161", "14111251", "12311251", "13211341", "11411341", "14111431", "12311431", "13211521", "11411521", "14111611", "12311611", "21121162", "11112163", "31112161", "11121253", "31121251", "21112252", "21121342", "11112343", "31112341", "11121433", "31121431", "21112432", "21121522", "11112523", "31112521", "11121613", "31121611", "22121161", "11221162", "12112162", "12121252", "21221251", "22112251", "11212252", "22121341", "11221342", "12112342", "12121432", "21221431", "22112431", "11212432", "22121521", "11221522", "12112522", "12121612", "21221611", "12221161", "13112161", "13121251", "11312161", "11321251", "32121115", "52121113", "21221116", "41221114", "61221112", "22112116", "42112114", "31212115", "51212113", "13121116", "33121114", "22221115", "42221113", "11321116", "31321114", "51321112", "23112115", "43112113", "12212116", "32212114", "52212112", "21312115", "41312113", "61312111", "14121115", "34121113", "23221114", "43221112", "12321115", "32321113", "52321111", "21421114", "41421112", "24112114", "13212115", "33212113", "22312114", "42312112", "11412115", "31412113", "51412111", "15121114", "24221113", "13321114", "33321112", "22421113", "42421111", "11521114", "31521112", "25112113", "14212114", "34212112", "23312113", "43312111", "12412114", "32412112", "21512113", "41512111", "16121113", "25221112", "14321113", "34321111", "23421112", "12521113", "32521111", "15212113", "24312112", "13412113", "33412111", "22512112", "11612113", "31612111", "31131115", "51131113", "21122116", "41122114", "61122112", "31113115", "51113113", "12131116", "32131114", "52131112", "21231115", "41231113", "61231111", "22122115", "42122113", "11222116", "31222114", "51222112", "12113116", "32113114", "52113112", "21213115", "41213113", "61213111", "13131115", "33131113", "22231114", "42231112", "11331115", "31331113", "51331111", "23122114", "43122112", "12222115", "32222113", "52222111", "21322114", "41322112", "13113115", "33113113", "22213114", "42213112", "11313115", "31313113", "51313111", "14131114", "34131112", "23231113", "43231111", "12331114", "32331112", "21431113", "41431111", "24122113", "13222114", "33222112", "22322113", "42322111", "11422114", "31422112", "14113114", "34113112", "23213113", "43213111", "12313114", "32313112", "21413113", "41413111", "15131113", "24231112", "13331113", "33331111", "22431112", "25122112", "14222113", "34222111", "23322112", "12422113", "32422111", "21522112", "15113113", "24213112", "13313113", "33313111", "22413112", "11513113", "31513111", "16131112", "25231111", "14331112", "23431111", "15222112", "24322111", "13422112", "22522111", "16113112", "25213111", "14313112", "23413111", "12513112", "21613111", "11141116", "31141114", "51141112", "21132115", "41132113", "61132111", "11123116", "31123114", "51123112", "21114115", "41114113", "61114111", "12141115", "32141113", "52141111", "21241114", "41241112", "22132114", "42132112", "11232115", "31232113", "51232111", "12123115", "32123113", "52123111", "21223114", "41223112", "22114114", "42114112", "11214115", "31214113", "51214111", "13141114", "33141112", "22241113", "42241111", "11341114", "31341112", "23132113", "43132111", "12232114", "32232112", "21332113", "41332111", "13123114", "33123112", "22223113", "42223111", "11323114", "31323112", "23114113", "43114111", "12214114", "32214112", "21314113", "41314111", "14141113", "34141111", "23241112", "12341113", "32341111", "24132112", "13232113", "33232111", "22332112", "11432113", "31432111", "14123113", "34123111", "23223112", "12323113", "32323111", "21423112", "24114112", "13214113", "33214111", "22314112", "11414113", "31414111", "15141112", "24241111", "13341112", "25132111", "14232112", "23332111", "12432112", "15123112", "24223111", "13323112", "22423111", "11523112", "25114111", "14214112", "23314111", "12414112", "21514111", "16141111", "14341111", "15232111", "13432111", "16123111", "14323111", "12523111", "15214111", "13414111", "11614111", "11151115", "31151113", "51151111", "21142114", "41142112", "11133115", "31133113", "51133111", "21124114", "41124112", "11115115", "31115113", "51115111", "12151114", "32151112", "21251113", "41251111", "22142113", "42142111", "11242114", "31242112", "12133114", "32133112", "21233113", "41233111", "22124113", "42124111", "11224114", "31224112", "12115114", "32115112", "21215113", "41215111", "13151113", "33151111", "22251112", "23142112", "12242113", "32242111", "21342112", "13133113", "33133111", "22233112", "11333113", "31333111", "23124112", "12224113", "32224111", "21324112", "13115113", "33115111", "22215112", "11315113", "31315111", "14151112", "23251111", "24142111", "13242112", "22342111", "14133112", "23233111", "12333112", "21433111", "24124111", "13224112", "22324111", "11424112", "14115112", "23215111", "12315112", "21415111", "15151111", "14242111", "15133111", "13333111", "14224111", "12424111", "15115111", "13315111", "11515111", "11161114", "31161112", "21152113", "41152111", "11143114", "31143112", "21134113", "41134111", "11125114", "31125112", "21116113", "41116111", "12161113", "32161111", "22152112", "11252113", "31252111", "12143113", "32143111", "21243112", "22134112", "11234113", "31234111", "12125113", "32125111", "21225112", "22116112", "11216113", "31216111", "13161112", "23152111", "12252112", "13143112", "22243111", "11343112", "23134111", "12234112", "21334111", "13125112", "22225111", "11325112", "23116111", "12216112", "21316111", "14161111", "13252111", "14143111", "12343111", "13234111", "11434111", "14125111", "12325111", "13216111", "11416111", "31111216", "51111214", "31211125", "51211123", "32111215", "52111213", "21211216", "41211214", "61211212", "12211126", "32211124", "52211122", "21311125", "41311123", "61311121", "13111216", "33111214", "22211215", "42211213", "11311216", "31311214", "51311212", "13211125", "33211123", "22311124", "42311122", "11411125", "31411123", "51411121", "14111215", "34111213", "23211214", "43211212", "12311215", "32311213", "52311211", "21411214", "41411212", "14211124", "34211122", "23311123", "43311121", "12411124", "32411122", "21511123", "41511121", "15111214", "24211213", "13311214", "33311212", "22411213", "42411211", "11511214", "31511212", "15211123", "24311122", "13411123", "33411121", "22511122", "11611123", "31611121", "16111213", "25211212", "14311213", "34311211", "23411212", "12511213", "32511211", "21611212", "21121126", "41121124", "61121122", "31112125", "51112123", "31121215", "51121213", "21112216", "41112214", "61112212", "22121125", "42121123", "11221126", "31221124", "51221122", "12112126", "32112124", "52112122", "12121216", "32121214", "52121212", "21221215", "41221213", "61221211", "22112215", "42112213", "11212216", "31212214", "51212212", "23121124", "43121122", "12221125", "32221123", "52221121", "21321124", "41321122", "13112125", "33112123", "13121215", "33121213", "11312125", "22221214", "42221212", "11321215", "31321213", "51321211", "23112214", "43112212", "12212215", "32212213", "52212211", "21312214", "41312212", "24121123", "13221124", "33221122", "22321123", "42321121", "11421124", "31421122", "14112124", "34112122", "14121214", "34121212", "12312124", "23221213", "43221211", "12321214", "32321212", "21421213", "41421211", "24112213", "13212214", "33212212", "22312213", "42312211", "11412214", "31412212", "25121122", "14221123", "34221121", "23321122", "12421123", "32421121", "21521122", "15112123", "15121213", "13312123", "24221212", "13321213", "33321211", "11512123", "22421212", "11521213", "31521211", "25112212", "14212213", "34212211", "23312212", "12412213", "32412211", "21512212", "15221122", "24321121", "13421122", "22521121", "16112122", "16121212", "14312122", "25221211", "14321212", "12512122", "23421211", "12521212", "15212212", "24312211", "13412212", "22512211", "11612212", "21131125", "41131123", "61131121", "11122126", "31122124", "51122122", "11131216", "31131214", "51131212", "21113125", "41113123", "61113121", "21122215", "41122213", "61122211", "11113216", "31113214", "51113212", "22131124", "42131122", "11231125", "31231123", "51231121", "12122125", "32122123", "52122121", "12131215", "32131213", "52131211", "21231214", "41231212", "22113124", "42113122", "11213125", "22122214", "42122212", "11222215", "31222213", "51222211", "12113215", "32113213", "52113211", "21213214", "41213212", "23131123", "43131121", "12231124", "32231122", "21331123", "41331121", "13122124", "33122122", "13131214", "33131212", "11322124", "22231213", "42231211", "11331214", "31331212", "23113123", "43113121", "12213124", "23122213", "43122211", "12222214", "32222212", "21322213", "41322211", "13113214", "33113212", "22213213", "42213211", "11313214", "31313212", "24131122", "13231123", "33231121", "22331122", "11431123", "31431121", "14122123", "34122121", "14131213", "34131211", "12322123", "23231212", "12331213", "32331211", "21431212", "24113122", "13213123", "24122212", "13222213", "33222211", "11413123", "22322212", "11422213", "31422211", "14113213", "34113211", "23213212", "12313213", "32313211", "21413212", "25131121", "14231122", "23331121", "12431122", "15122122", "15131212", "13322122", "24231211", "13331212", "11522122", "22431211", "25113121", "14213122", "25122211", "14222212", "12413122", "23322211", "12422212", "21522211", "15113212", "24213211", "13313212", "22413211", "11513212", "15231121", "13431121", "16122121", "16131211", "14322121", "14331211", "12522121", "15213121", "15222211", "13413121", "13422211", "11613121", "16113211", "14313211", "12513211", "21141124", "41141122", "11132125", "31132123", "51132121", "11141215", "31141213", "51141211", "21123124", "41123122", "21132214", "41132212", "11114125", "31114123", "51114121", "11123215", "31123213", "51123211", "21114214", "41114212", "22141123", "42141121", "11241124", "31241122", "12132124", "32132122", "12141214", "32141212", "21241213", "41241211", "22123123", "42123121", "11223124", "22132213", "42132211", "11232214", "31232212", "12114124", "32114122", "12123214", "32123212", "21223213", "41223211", "22114213", "42114211", "11214214", "31214212", "23141122", "12241123", "32241121", "21341122", "13132123", "33132121", "13141213", "33141211", "11332123", "22241212", "11341213", "31341211", "23123122", "12223123", "23132212", "12232213", "32232211", "21332212", "13114123", "33114121", "13123213", "33123211", "11314123", "22223212", "11323213", "31323211", "23114212", "12214213", "32214211", "21314212", "24141121", "13241122", "22341121", "14132122", "14141212", "12332122", "23241211", "12341212", "24123121", "13223122", "24132211", "13232212", "11423122", "22332211", "11432212", "14114122", "14123212", "12314122", "23223211", "12323212", "21423211", "24114211", "13214212", "22314211", "11414212", "14241121", "15132121", "15141211", "13332121", "13341211", "14223121", "14232211", "12423121", "12432211", "15114121", "15123211", "13314121", "13323211", "11514121", "11523211", "14214211", "12414211", "21151123", "41151121", "11142124", "31142122", "11151214", "31151212", "21133123", "41133121", "21142213", "41142211", "11124124", "31124122", "11133214", "31133212", "21115123", "41115121", "21124213", "41124211", "11115214", "31115212", "22151122", "11251123", "31251121", "12142123", "32142121", "12151213", "32151211", "21251212", "22133122", "11233123", "22142212", "11242213", "31242211", "12124123", "32124121", "12133213", "32133211", "21233212", "22115122", "11215123", "22124212", "11224213", "31224211", "12115213", "32115211", "21215212", "23151121", "12251122", "13142122", "13151212", "11342122", "22251211", "23133121", "12233122", "23142211", "12242212", "21342211", "13124122", "13133212", "11324122", "22233211", "11333212", "23115121", "12215122", "23124211", "12224212", "21324211", "13115212", "22215211", "11315212", "13251121", "14142121", "14151211", "12342121", "13233121", "13242211", "11433121", "14124121", "14133211", "12324121", "12333211", "13215121", "13224211", "11415121", "11424211", "14115211", "12315211", "21161122", "11152123", "31152121", "11161213", "31161211", "21143122", "21152212", "11134123", "31134121", "11143213", "31143211", "21125122", "21134212", "11116123", "31116121", "11125213", "31125211", "22161121", "12152122", "12161212", "22143121", "11243122", "22152211", "11252212", "12134122", "12143212", "21243211", "22125121", "11225122", "22134211", "11234212", "12116122", "12125212", "21225211", "13152121", "13161211", "12243121", "12252211", "13134121", "13143211", "11334121", "11343211", "12225121", "12234211", "13116121", "13125211", "11316121", "11325211", "21111226", "41111224", "61111222", "31111315", "51111313", "21211135", "41211133", "61211131", "22111225", "42111223", "11211226", "31211224", "51211222", "12111316", "32111314", "52111312", "21211315", "41211313", "61211311", "22211134", "42211132", "11311135", "31311133", "51311131", "23111224", "43111222", "12211225", "32211223", "52211221", "21311224", "41311222", "13111315", "33111313", "22211314", "42211312", "11311315", "31311313", "51311311", "23211133", "43211131", "12311134", "32311132", "21411133", "41411131", "24111223", "13211224", "33211222", "22311223", "42311221", "11411224", "31411222", "14111314", "34111312", "23211313", "43211311", "12311314", "32311312", "21411313", "41411311", "24211132", "13311133", "33311131", "22411132", "11511133", "31511131", "25111222", "14211223", "34211221", "23311222", "12411223", "32411221", "21511222", "15111313", "24211312", "13311313", "33311311", "22411312", "11511313", "31511311", "25211131", "14311132", "23411131", "12511132", "21611131", "15211222", "24311221", "13411222", "22511221", "11611222", "16111312", "25211311", "14311312", "23411311", "12511312", "21611311", "31121134", "51121132", "21112135", "41112133", "61112131", "21121225", "41121223", "61121221", "11112226", "31112224", "51112222", "11121316", "31121314", "51121312", "21112315", "41112313", "61112311", "12121135", "32121133", "52121131", "21221134", "41221132", "22112134", "42112132", "11212135", "22121224", "42121222", "11221225", "31221223", "51221221", "12112225", "32112223", "52112221", "12121315", "32121313", "52121311", "21221314", "41221312", "22112314", "42112312", "11212315", "31212313", "51212311", "13121134", "33121132", "22221133", "42221131", "11321134", "31321132", "23112133", "43112131", "12212134", "23121223", "43121221", "12221224", "32221222", "21321223", "41321221", "13112224", "33112222", "13121314", "33121312", "11312224", "22221313", "42221311", "11321314", "31321312", "23112313", "43112311", "12212314", "32212312", "21312313", "41312311", "14121133", "34121131", "23221132", "12321133", "32321131", "21421132", "24112132", "13212133", "24121222", "13221223", "33221221", "11412133", "22321222", "11421223", "31421221", "14112223", "34112221", "14121313", "34121311", "12312223", "23221312", "12321313", "32321311", "21421312", "24112312", "13212313", "33212311", "22312312", "11412313", "31412311", "15121132", "24221131", "13321132", "22421131"]), $a(["22121116", "42121114", "31221115", "51221113", "32112115", "52112113", "21212116", "41212114", "61212112", "23121115", "43121113", "12221116", "32221114", "52221112", "21321115", "41321113", "61321111", "13112116", "33112114", "22212115", "42212113", "11312116", "31312114", "51312112", "24121114", "13221115", "33221113", "22321114", "42321112", "11421115", "31421113", "51421111", "14112115", "34112113", "23212114", "43212112", "12312115", "32312113", "52312111", "21412114", "41412112", "25121113", "14221114", "34221112", "23321113", "43321111", "12421114", "32421112", "21521113", "41521111", "15112114", "24212113", "13312114", "33312112", "22412113", "42412111", "11512114", "31512112", "15221113", "24321112", "13421113", "33421111", "22521112", "16112113", "25212112", "14312113", "34312111", "23412112", "12512113", "32512111", "21612112", "21131116", "41131114", "61131112", "31122115", "51122113", "21113116", "41113114", "61113112", "22131115", "42131113", "11231116", "31231114", "51231112", "12122116", "32122114", "52122112", "21222115", "41222113", "61222111", "22113115", "42113113", "11213116", "31213114", "51213112", "23131114", "43131112", "12231115", "32231113", "52231111", "21331114", "41331112", "13122115", "33122113", "22222114", "42222112", "11322115", "31322113", "51322111", "23113114", "43113112", "12213115", "32213113", "52213111", "21313114", "41313112", "24131113", "13231114", "33231112", "22331113", "42331111", "11431114", "31431112", "14122114", "34122112", "23222113", "43222111", "12322114", "32322112", "21422113", "41422111", "24113113", "13213114", "33213112", "22313113", "42313111", "11413114", "31413112", "25131112", "14231113", "34231111", "23331112", "12431113", "32431111", "15122113", "24222112", "13322113", "33322111", "22422112", "11522113", "31522111", "25113112", "14213113", "34213111", "23313112", "12413113", "32413111", "21513112", "15231112", "24331111", "13431112", "16122112", "25222111", "14322112", "23422111", "12522112", "15213112", "24313111", "13413112", "22513111", "11613112", "21141115", "41141113", "61141111", "11132116", "31132114", "51132112", "21123115", "41123113", "61123111", "11114116", "31114114", "51114112", "22141114", "42141112", "11241115", "31241113", "51241111", "12132115", "32132113", "52132111", "21232114", "41232112", "22123114", "42123112", "11223115", "31223113", "51223111", "12114115", "32114113", "52114111", "21214114", "41214112", "23141113", "43141111", "12241114", "32241112", "21341113", "41341111", "13132114", "33132112", "22232113", "42232111", "11332114", "31332112", "23123113", "43123111", "12223114", "32223112", "21323113", "41323111", "13114114", "33114112", "22214113", "42214111", "11314114", "31314112", "24141112", "13241113", "33241111", "22341112", "14132113", "34132111", "23232112", "12332113", "32332111", "21432112", "24123112", "13223113", "33223111", "22323112", "11423113", "31423111", "14114113", "34114111", "23214112", "12314113", "32314111", "21414112", "25141111", "14241112", "23341111", "15132112", "24232111", "13332112", "22432111", "25123111", "14223112", "23323111", "12423112", "21523111", "15114112", "24214111", "13314112", "22414111", "11514112", "15241111", "16132111", "14332111", "15223111", "13423111", "16114111", "14314111", "12514111", "21151114", "41151112", "11142115", "31142113", "51142111", "21133114", "41133112", "11124115", "31124113", "51124111", "21115114", "41115112", "22151113", "42151111", "11251114", "31251112", "12142114", "32142112", "21242113", "41242111", "22133113", "42133111", "11233114", "31233112", "12124114", "32124112", "21224113", "41224111", "22115113", "42115111", "11215114", "31215112", "23151112", "12251113", "32251111", "13142113", "33142111", "22242112", "11342113", "31342111", "23133112", "12233113", "32233111", "21333112", "13124113", "33124111", "22224112", "11324113", "31324111", "23115112", "12215113", "32215111", "21315112", "24151111", "13251112", "14142112", "23242111", "12342112", "24133111", "13233112", "22333111", "11433112", "14124112", "23224111", "12324112", "21424111", "24115111", "13215112", "22315111", "11415112", "14251111", "15142111", "13342111", "14233111", "12433111", "15124111", "13324111", "11524111", "14215111", "12415111", "21161113", "41161111", "11152114", "31152112", "21143113", "41143111", "11134114", "31134112", "21125113", "41125111", "11116114", "31116112", "22161112", "12152113", "32152111", "21252112", "22143112", "11243113", "31243111", "12134113", "32134111", "21234112", "22125112", "11225113", "31225111", "12116113", "32116111", "21216112", "23161111", "13152112", "22252111", "23143111", "12243112", "21343111", "13134112", "22234111", "11334112", "23125111", "12225112", "21325111", "13116112", "22216111", "11316112", "14152111", "13243111", "14134111", "12334111", "13225111", "11425111", "14116111", "12316111", "41111215", "61111213", "21211126", "41211124", "61211122", "22111216", "42111214", "31211215", "51211213", "22211125", "42211123", "11311126", "31311124", "51311122", "23111215", "43111213", "12211216", "32211214", "52211212", "21311215", "41311213", "61311211", "23211124", "43211122", "12311125", "32311123", "52311121", "21411124", "41411122", "24111214", "13211215", "33211213", "22311214", "42311212", "11411215", "31411213", "51411211", "24211123", "13311124", "33311122", "22411123", "42411121", "11511124", "31511122", "25111213", "14211214", "34211212", "23311213", "43311211", "12411214", "32411212", "21511213", "41511211", "25211122", "14311123", "34311121", "23411122", "12511123", "32511121", "21611122", "15211213", "24311212", "13411213", "33411211", "22511212", "11611213", "31611211", "31121125", "51121123", "21112126", "41112124", "61112122", "21121216", "41121214", "61121212", "31112215", "51112213", "12121126", "32121124", "52121122", "21221125", "41221123", "61221121", "22112125", "42112123", "11212126", "22121215", "42121213", "11221216", "31221214", "51221212", "12112216", "32112214", "52112212", "21212215", "41212213", "61212211", "13121125", "33121123", "22221124", "42221122", "11321125", "31321123", "51321121", "23112124", "43112122", "12212125", "23121214", "43121212", "12221215", "32221213", "52221211", "21321214", "41321212", "13112215", "33112213", "22212214", "42212212", "11312215", "31312213", "51312211", "14121124", "34121122", "23221123", "43221121", "12321124", "32321122", "21421123", "41421121", "24112123", "13212124", "24121213", "13221214", "33221212", "11412124", "22321213", "42321211", "11421214", "31421212", "14112214", "34112212", "23212213", "43212211", "12312214", "32312212", "21412213", "41412211", "15121123", "24221122", "13321123", "33321121", "22421122", "11521123", "31521121", "25112122", "14212123", "25121212", "14221213", "34221211", "12412123", "23321212", "12421213", "32421211", "21521212", "15112213", "24212212", "13312213", "33312211", "22412212", "11512213", "31512211", "16121122", "25221121", "14321122", "23421121", "12521122", "15212122", "15221212", "13412122", "24321211", "13421212", "11612122", "22521211", "16112212", "25212211", "14312212", "23412211", "12512212", "21612211", "11131126", "31131124", "51131122", "21122125", "41122123", "61122121", "21131215", "41131213", "61131211", "11113126", "31113124", "51113122", "11122216", "31122214", "51122212", "21113215", "41113213", "61113211", "12131125", "32131123", "52131121", "21231124", "41231122", "22122124", "42122122", "11222125", "22131214", "42131212", "11231215", "31231213", "51231211", "12113125", "32113123", "52113121", "12122215", "32122213", "52122211", "21222214", "41222212", "22113214", "42113212", "11213215", "31213213", "51213211", "13131124", "33131122", "22231123", "42231121", "11331124", "31331122", "23122123", "43122121", "12222124", "23131213", "43131211", "12231214", "32231212", "21331213", "41331211", "13113124", "33113122", "13122214", "33122212", "11313124", "22222213", "42222211", "11322214", "31322212", "23113213", "43113211", "12213214", "32213212", "21313213", "41313211", "14131123", "34131121", "23231122", "12331123", "32331121", "21431122", "24122122", "13222123", "24131212", "13231213", "33231211", "11422123", "22331212", "11431213", "31431211", "14113123", "34113121", "14122213", "34122211", "12313123", "23222212", "12322213", "32322211", "21422212", "24113212", "13213213", "33213211", "22313212", "11413213", "31413211", "15131122", "24231121", "13331122", "22431121", "25122121", "14222122", "25131211", "14231212", "12422122", "23331211", "12431212", "15113122", "15122212", "13313122", "24222211", "13322212", "11513122", "22422211", "11522212", "25113211", "14213212", "23313211", "12413212", "21513211", "16131121", "14331121", "15222121", "15231211", "13422121", "13431211", "16113121", "16122211", "14313121", "14322211", "12513121", "12522211", "15213211", "13413211", "11613211", "11141125", "31141123", "51141121", "21132124", "41132122", "21141214", "41141212", "11123125", "31123123", "51123121", "11132215", "31132213", "51132211", "21114124", "41114122", "21123214", "41123212", "11114215", "31114213", "51114211", "12141124", "32141122", "21241123", "41241121", "22132123", "42132121", "11232124", "22141213", "42141211", "11241214", "31241212", "12123124", "32123122", "12132214", "32132212", "21232213", "41232211", "22114123", "42114121", "11214124", "22123213", "42123211", "11223214", "31223212", "12114214", "32114212", "21214213", "41214211", "13141123", "33141121", "22241122", "11341123", "31341121", "23132122", "12232123", "23141212", "12241213", "32241211", "21341212", "13123123", "33123121", "13132213", "33132211", "11323123", "22232212", "11332213", "31332211", "23114122", "12214123", "23123212", "12223213", "32223211", "21323212", "13114213", "33114211", "22214212", "11314213", "31314211", "14141122", "23241121", "12341122", "24132121", "13232122", "24141211", "13241212", "11432122", "22341211", "14123122", "14132212", "12323122", "23232211", "12332212", "21432211", "24114121", "13214122", "24123211", "13223212", "11414122", "22323211", "11423212", "14114212", "23214211", "12314212", "21414211", "15141121", "13341121", "14232121", "14241211", "12432121", "15123121", "15132211", "13323121", "13332211", "11523121", "14214121", "14223211", "12414121", "12423211", "15114211", "13314211", "11514211", "11151124", "31151122", "21142123", "41142121", "21151213", "41151211", "11133124", "31133122", "11142214", "31142212", "21124123", "41124121", "21133213", "41133211", "11115124", "31115122", "11124214", "31124212", "21115213", "41115211", "12151123", "32151121", "21251122", "22142122", "11242123", "22151212", "11251213", "31251211", "12133123", "32133121", "12142213", "32142211", "21242212", "22124122", "11224123", "22133212", "11233213", "31233211", "12115123", "32115121", "12124213", "32124211", "21224212", "22115212", "11215213", "31215211", "13151122", "22251121", "23142121", "12242122", "23151211", "12251212", "13133122", "13142212", "11333122", "22242211", "11342212", "23124121", "12224122", "23133211", "12233212", "21333211", "13115122", "13124212", "11315122", "22224211", "11324212", "23115211", "12215212", "21315211", "14151121", "13242121", "13251211", "14133121", "14142211", "12333121", "12342211", "13224121", "13233211", "11424121", "11433211", "14115121", "14124211", "12315121", "12324211", "13215211", "11415211", "11161123", "31161121", "21152122", "21161212", "11143123", "31143121", "11152213", "31152211", "21134122", "21143212", "11125123", "31125121", "11134213", "31134211", "21116122", "21125212", "12161122", "22152121", "11252122", "22161211", "12143122", "12152212", "21252211", "22134121", "11234122", "22143211", "11243212", "12125122", "12134212", "21234211", "22116121", "11216122", "22125211", "11225212", "13161121", "12252121", "13143121", "13152211", "11343121", "12234121", "12243211", "13125121", "13134211", "11325121", "11334211", "12216121", "12225211", "31111225", "51111223", "21111316", "41111314", "61111312", "31211134", "51211132", "12111226", "32111224", "52111222", "21211225", "41211223", "61211221", "22111315", "42111313", "11211316", "31211314", "51211312", "12211135", "32211133", "52211131", "21311134", "41311132", "13111225", "33111223", "22211224", "42211222", "11311225", "31311223", "51311221", "23111314", "43111312", "12211315", "32211313", "52211311", "21311314", "41311312", "13211134", "33211132", "22311133", "42311131", "11411134", "31411132", "14111224", "34111222", "23211223", "43211221", "12311224", "32311222", "21411223", "41411221", "24111313", "13211314", "33211312", "22311313", "42311311", "11411314", "31411312", "14211133", "34211131", "23311132", "12411133", "32411131", "21511132", "15111223", "24211222", "13311223", "33311221", "22411222", "11511223", "31511221", "25111312", "14211313", "34211311", "23311312", "12411313", "32411311", "21511312", "15211132", "24311131", "13411132", "22511131", "11611132", "16111222", "25211221", "14311222", "23411221", "12511222", "21611221", "15211312", "24311311", "13411312", "22511311", "11611312", "21121135", "41121133", "61121131", "11112136", "31112134", "51112132", "11121226", "31121224", "51121222", "21112225", "41112223", "61112221", "21121315", "41121313", "61121311", "11112316", "31112314", "51112312", "22121134", "42121132", "11221135", "31221133", "51221131", "12112135", "32112133", "52112131", "12121225", "32121223", "52121221", "21221224", "41221222", "22112224", "42112222", "11212225", "22121314", "42121312", "11221315", "31221313", "51221311", "12112315", "32112313", "52112311", "21212314", "41212312", "23121133", "43121131", "12221134", "32221132", "21321133", "41321131", "13112134", "33112132", "13121224", "33121222", "11312134", "22221223", "42221221", "11321224", "31321222", "23112223", "43112221", "12212224", "23121313", "43121311", "12221314", "32221312", "21321313", "41321311", "13112314", "33112312", "22212313", "42212311", "11312314", "31312312", "24121132", "13221133", "33221131", "22321132", "11421133", "31421131", "14112133", "34112131", "14121223", "34121221", "12312133", "23221222", "12321223", "32321221", "21421222", "24112222", "13212223", "24121312", "13221313", "33221311", "11412223", "22321312", "11421313", "31421311", "14112313", "34112311", "23212312", "12312313", "32312311", "21412312", "25121131", "14221132", "23321131", "12421132", "21521131", "15112132", "15121222", "13312132", "24221221", "13321222", "11512132", "22421221", "11521222", "25112221", "14212222", "25121311", "14221312", "12412222", "23321311", "12421312", "21521311", "15112312", "24212311", "13312312", "22412311", "11512312", "15221131", "13421131", "16112131", "16121221", "14312131", "14321221", "12512131", "12521221", "15212221", "15221311", "13412221", "13421311", "11612221", "16112311", "14312311", "12512311", "21131134", "41131132", "11122135", "31122133", "51122131", "11131225", "31131223", "51131221", "21113134", "41113132", "21122224", "41122222", "21131314", "41131312", "11113225", "31113223", "51113221", "11122315", "31122313", "51122311", "21113314", "41113312", "22131133", "42131131", "11231134", "31231132", "12122134", "32122132", "12131224", "32131222", "21231223", "41231221", "22113133", "42113131", "11213134", "22122223", "42122221", "11222224", "22131313", "42131311", "11231314", "31231312", "12113224", "32113222", "12122314", "32122312", "21222313", "41222311", "22113313", "42113311", "11213314", "31213312", "23131132", "12231133", "32231131", "21331132", "13122133", "33122131", "13131223", "33131221", "11322133", "22231222", "11331223", "31331221", "23113132", "12213133", "23122222", "12222223", "23131312", "12231313", "32231311", "21331312", "13113223", "33113221", "13122313", "33122311", "11313223", "22222312", "11322313", "31322311", "23113312", "12213313", "32213311", "21313312", "24131131", "13231132", "22331131", "11431132", "14122132", "14131222", "12322132", "23231221", "12331222", "21431221", "24113131", "13213132", "24122221", "13222222", "24131311", "11413132", "13231312", "11422222", "22331311", "11431312", "14113222", "14122312", "12313222", "23222311", "12322312", "21422311", "24113311", "13213312", "22313311", "11413312", "14231131", "12431131", "15122131", "15131221", "13322131", "13331221", "11522131", "14213131", "14222221", "12413131", "14231311", "12422221", "12431311", "15113221", "15122311", "13313221", "13322311", "11513221", "11522311", "14213311", "12413311", "21141133", "41141131", "11132134", "31132132", "11141224", "31141222", "21123133", "41123131", "21132223", "41132221", "21141313", "41141311", "11114134", "31114132", "11123224", "31123222", "11132314", "31132312", "21114223", "41114221", "21123313", "41123311", "11114314", "31114312", "22141132", "11241133", "31241131", "12132133", "32132131", "12141223", "32141221", "21241222", "22123132", "11223133", "22132222", "11232223", "22141312", "11241313", "31241311", "12114133", "32114131", "12123223", "32123221", "12132313", "32132311", "21232312", "22114222", "11214223", "22123312", "11223313", "31223311", "12114313", "32114311", "21214312", "23141131", "12241132", "21341131", "13132132", "13141222", "11332132", "22241221", "11341222", "23123131", "12223132", "23132221", "12232222", "23141311", "12241312", "21341311", "13114132", "13123222", "11314132", "13132312", "11323222", "22232311", "11332312", "23114221", "12214222", "23123311", "12223312", "21323311", "13114312", "22214311", "11314312", "13241131", "14132131", "14141221", "12332131", "12341221", "13223131", "13232221", "11423131", "13241311", "11432221", "14114131", "14123221", "12314131", "14132311", "12323221", "12332311", "13214221", "13223311", "11414221", "11423311", "14114311", "12314311", "21151132", "11142133", "31142131", "11151223", "31151221", "21133132", "21142222", "21151312", "11124133", "31124131", "11133223", "31133221", "11142313", "31142311", "21115132", "21124222", "21133312", "11115223", "31115221", "11124313", "31124311", "22151131", "11251132", "12142132", "12151222", "21251221", "22133131", "11233132", "22142221", "11242222", "22151311", "11251312", "12124132", "12133222", "12142312", "21242311", "22115131", "11215132", "22124221", "11224222", "22133311", "11233312", "12115222", "12124312", "21224311", "12251131", "13142131", "13151221", "11342131", "12233131", "12242221", "12251311", "13124131", "13133221", "11324131", "13142311", "11333221", "11342311", "12215131", "12224221", "12233311", "13115221", "13124311", "11315221", "11324311", "21161131", "11152132", "11161222", "21143131", "21152221", "21161311", "11134132", "11143222", "11152312", "21125131", "21134221", "21143311", "11116132", "11125222", "11134312", "12152131", "12161221", "11243131", "11252221", "12134131", "12143221", "12152311", "11225131", "11234221", "11243311", "12116131", "12125221", "12134311", "21111235", "41111233", "61111231", "11111326", "31111324", "51111322", "21111415", "41111413", "61111411", "21211144", "41211142", "22111234", "42111232", "11211235", "31211233", "51211231", "12111325", "32111323", "52111321", "21211324", "41211322", "22111414", "42111412", "11211415", "31211413", "51211411", "22211143", "42211141", "11311144", "31311142", "23111233", "43111231", "12211234", "32211232", "21311233", "41311231", "13111324", "33111322", "22211323", "42211321", "11311324", "31311322", "23111413", "43111411", "12211414", "32211412", "21311413", "41311411", "23211142", "12311143", "32311141", "21411142", "24111232", "13211233", "33211231", "22311232", "11411233", "31411231", "14111323", "34111321", "23211322", "12311323", "32311321", "21411322", "24111412", "13211413", "33211411", "22311412", "11411413", "31411411", "24211141", "13311142", "22411141", "11511142", "25111231", "14211232", "23311231", "12411232", "21511231", "15111322", "24211321", "13311322", "22411321", "11511322", "25111411", "14211412", "23311411", "12411412", "21511411", "14311141", "12511141", "15211231", "13411231", "11611231", "16111321", "14311321", "12511321", "15211411", "13411411", "11611411", "31121143", "51121141", "21112144", "41112142", "21121234", "41121232", "11112235", "31112233", "51112231", "11121325", "31121323", "51121321", "21112324", "41112322", "21121414", "41121412", "11112415", "31112413", "51112411", "12121144", "32121142", "21221143", "41221141", "22112143", "42112141", "11212144", "22121233", "42121231", "11221234", "31221232", "12112234", "32112232", "12121324", "32121322", "21221323", "41221321", "22112323", "42112321", "11212324", "22121413", "42121411", "11221414", "31221412", "12112414", "32112412", "21212413", "41212411", "13121143", "33121141", "22221142", "11321143", "31321141", "23112142", "12212143", "23121232", "12221233", "32221231", "21321232", "13112233", "33112231", "13121323", "33121321", "11312233", "22221322", "11321323", "31321321", "23112322", "12212323", "23121412", "12221413", "32221411", "21321412", "13112413", "33112411", "22212412", "11312413", "31312411", "14121142", "23221141", "12321142", "21421141", "24112141", "13212142", "24121231", "13221232", "11412142", "22321231", "11421232", "14112232", "14121322", "12312232", "23221321", "12321322", "21421321", "24112321", "13212322", "24121411", "13221412", "11412322", "22321411", "11421412", "14112412", "23212411", "12312412", "21412411", "15121141", "13321141", "11521141", "14212141", "14221231", "12412141", "12421231", "15112231", "15121321", "13312231", "13321321", "11512231", "11521321", "14212321", "14221411", "12412321", "12421411", "15112411", "13312411", "11512411", "11131144", "31131142", "21122143", "41122141", "21131233", "41131231", "11113144", "31113142", "11122234", "31122232", "11131324", "31131322", "21113233", "41113231", "21122323", "41122321", "21131413", "41131411", "11113324", "31113322", "11122414", "31122412", "21113413", "41113411", "12131143", "32131141", "21231142", "22122142", "11222143", "22131232", "11231233", "31231231", "12113143", "32113141", "12122233", "32122231", "12131323", "32131321", "21231322", "22113232", "11213233", "22122322", "11222323", "22131412", "11231413", "31231411", "12113323", "32113321", "12122413", "32122411", "21222412", "22113412", "11213413", "31213411", "13131142", "22231141", "11331142", "23122141", "12222142", "23131231", "12231232", "21331231", "13113142", "13122232", "11313142", "13131322", "11322232", "22231321", "11331322", "23113231", "12213232", "23122321", "12222322", "23131411", "12231412", "21331411", "13113322", "13122412", "11313322", "22222411", "11322412", "23113411", "12213412", "21313411", "14131141", "12331141", "13222141", "13231231", "11422141", "11431231", "14113141", "14122231", "12313141", "14131321", "12322231", "12331321", "13213231", "13222321", "11413231", "13231411", "11422321", "11431411", "14113321", "14122411", "12313321", "12322411", "13213411", "11413411", "11141143", "31141141", "21132142", "21141232", "11123143", "31123141", "11132233", "31132231", "11141323", "31141321", "21114142", "21123232", "21132322", "21141412", "11114233", "31114231", "11123323", "31123321", "11132413", "31132411", "21114322", "21123412", "12141142", "21241141", "22132141", "11232142", "22141231", "11241232", "12123142", "12132232", "12141322", "21241321", "22114141", "11214142", "22123231", "11223232", "22132321", "11232322", "22141411", "11241412", "12114232", "12123322", "12132412", "21232411", "22114321", "11214322", "22123411", "11223412", "13141141", "11341141", "12232141", "12241231", "13123141", "13132231", "11323141", "13141321", "11332231", "11341321", "12214141", "12223231", "12232321", "12241411", "13114231", "13123321", "11314231", "13132411", "11323321", "11332411", "12214321", "12223411", "11151142", "21142141", "21151231", "11133142", "11142232", "11151322", "21124141", "21133231", "21142321", "21151411", "11115142", "11124232", "11133322", "11142412", "21115231", "21124321", "21133411", "12151141", "11242141", "11251231", "12133141", "12142231", "12151321", "11224141", "11233231", "11242321", "11251411", "12115141", "12124231", "12133321", "12142411", "11215231", "11224321", "11233411", "11161141", "11143141", "11152231", "11161321", "11125141", "11134231", "11143321", "11152411", "11111245", "31111243", "51111241", "21111334", "41111332", "11111425", "31111423", "51111421", "21111514", "41111512", "31211152", "12111244", "32111242", "21211243", "41211241", "22111333", "42111331", "11211334", "31211332", "12111424", "32111422", "21211423", "41211421", "22111513", "42111511", "11211514", "31211512", "12211153", "32211151", "21311152", "13111243", "33111241", "22211242", "11311243", "31311241", "23111332", "12211333", "32211331", "21311332", "13111423", "33111421", "22211422", "11311423", "31311421", "23111512", "12211513", "32211511", "21311512", "13211152", "22311151", "11411152", "14111242", "23211241", "12311242", "21411241", "24111331", "13211332", "22311331", "11411332", "14111422", "23211421", "12311422", "21411421", "24111511", "13211512", "22311511", "11411512", "14211151", "12411151", "15111241", "13311241", "11511241", "14211331", "12411331", "15111421", "13311421", "11511421", "14211511", "12411511", "21121153", "41121151", "11112154", "31112152", "11121244", "31121242", "21112243", "41112241", "21121333", "41121331", "11112334", "31112332", "11121424", "31121422", "21112423", "41112421", "21121513", "41121511", "11112514", "31112512", "22121152", "11221153", "31221151", "12112153", "32112151", "12121243", "32121241", "21221242", "22112242", "11212243", "22121332", "11221333", "31221331", "12112333", "32112331", "12121423", "32121421", "21221422", "22112422", "11212423", "22121512", "11221513", "31221511", "12112513", "32112511", "21212512", "23121151", "12221152", "21321151", "13112152", "13121242", "11312152", "22221241", "11321242", "23112241", "12212242", "23121331", "12221332", "21321331", "13112332", "13121422", "11312332", "22221421", "11321422", "23112421", "12212422", "23121511", "12221512", "21321511", "13112512", "22212511", "11312512", "13221151", "11421151", "14112151", "14121241", "12312151", "12321241", "13212241", "13221331", "11412241", "11421331", "14112331", "14121421", "12312331", "12321421", "13212421", "13221511", "11412421", "11421511", "14112511", "12312511", "21131152", "11122153", "31122151", "11131243", "31131241", "21113152", "21122242", "21131332", "11113243", "31113241", "11122333", "31122331", "11131423", "31131421", "21113332", "21122422", "21131512", "11113423", "31113421", "11122513", "31122511", "22131151", "11231152", "12122152", "12131242", "21231241", "22113151", "11213152", "22122241", "11222242", "22131331", "11231332", "12113242", "12122332", "12131422", "21231421", "22113331", "11213332", "22122421", "11222422", "22131511", "11231512", "12113422", "12122512", "21222511", "12231151", "13122151", "13131241", "11322151", "11331241", "12213151", "12222241", "12231331", "13113241", "13122331", "11313241", "13131421", "11322331", "11331421", "12213331", "12222421", "12231511", "13113421", "13122511", "11313421", "11322511", "21141151", "11132152", "11141242", "21123151", "21132241", "21141331", "11114152", "11123242", "11132332", "11141422", "21114241", "21123331", "21132421", "21141511", "11114332", "11123422", "11132512", "11241151", "12132151", "12141241", "11223151", "11232241", "11241331", "12114151", "12123241", "12132331", "12141421", "11214241", "11223331", "11232421", "11241511", "12114331", "12123421", "12132511", "11142151", "11151241", "11124151", "11133241", "11142331", "11151421", "11115241", "11124331", "11133421", "11142511", "21111253", "41111251", "11111344", "31111342", "21111433", "41111431", "11111524", "31111522", "21111613", "41111611", "21211162", "22111252", "11211253", "31211251", "12111343", "32111341", "21211342", "22111432", "11211433", "31211431", "12111523", "32111521", "21211522", "22111612", "11211613", "31211611", "22211161", "11311162", "23111251", "12211252", "21311251", "13111342", "22211341", "11311342", "23111431", "12211432", "21311431", "13111522", "22211521", "11311522", "23111611", "12211612", "21311611", "12311161", "13211251", "11411251", "14111341", "12311341", "13211431", "11411431", "14111521", "12311521", "13211611", "11411611", "31121161", "21112162", "21121252", "11112253", "31112251", "11121343", "31121341", "21112342", "21121432", "11112433", "31112431", "11121523", "31121521", "21112522", "21121612", "12121162", "21221161", "22112161", "11212162", "22121251", "11221252", "12112252", "12121342", "21221341", "22112341", "11212342", "22121431", "11221432", "12112432", "12121522", "21221521", "22112521", "11212522", "22121611", "11221612", "13121161", "11321161", "12212161", "12221251", "13112251", "13121341", "11312251", "11321341", "12212341", "12221431", "13112431", "13121521", "11312431", "11321521", "12212521", "12221611", "11131162", "21122161", "21131251", "11113162"])]); //#14443 + $1.parity = $a(["1001", "0101", "1100", "0011", "1010", "0110", "1111", "0000"]); //#14447 + $1.rowbits = $a($1.r); //#14450 + for (var _5z = 0, _5y = $f($1.r - 1); _5z <= _5y; _5z += 1) { //#14470 + $1.i = _5z; //#14452 + $k[$j++] = 'p'; //#14453 + if ($1.i != $f($1.r - 1)) { //#14453 + $k[$j++] = $get($1.parity, $1.i); //#14453 + } else { //#14453 + $k[$j++] = "0000"; //#14453 + } //#14453 + var _65 = $k[--$j]; //#14453 + $1[$k[--$j]] = _65; //#14453 + $1.ccrow = $geti($1.ccs, $1.i * 8, 8); //#14454 + $k[$j++] = Infinity; //#14456 + for (var _6A = 0; _6A <= 7; _6A += 2) { //#14456 + $aload($geti($1.ccrow, _6A, 2)); //#14456 + var _6D = $k[--$j]; //#14456 + var _6E = $k[--$j]; //#14456 + $k[$j++] = $f(_6D + (_6E * 49)); //#14456 + } //#14456 + $1.scrow = $a(); //#14456 + $k[$j++] = Infinity; //#14464 + $k[$j++] = 10; //#14463 + $k[$j++] = 1; //#14463 + $k[$j++] = 1; //#14463 + for (var _6G = 0; _6G <= 3; _6G += 1) { //#14463 + $1.j = _6G; //#14461 + $forall($get($get($1.patterns, $f($get($1.p, $1.j) - 48)), $get($1.scrow, $1.j)), function() { //#14462 + var _6Q = $k[--$j]; //#14462 + $k[$j++] = $f(_6Q - 48); //#14462 + }); //#14462 + } //#14462 + $k[$j++] = 4; //#14464 + $k[$j++] = 1; //#14464 + $1.sbs = $a(); //#14464 + $k[$j++] = Infinity; //#14466 + var _6S = $1.sbs; //#14467 + $k[$j++] = 1; //#14467 + for (var _6T = 0, _6U = _6S.length; _6T < _6U; _6T++) { //#14467 + var _6W = $k[--$j]; //#14467 + var _6X = (_6W == 0) ? 1 : 0; //#14467 + $k[$j++] = _6W; //#14467 + for (var _6Y = 0, _6Z = $get(_6S, _6T); _6Y < _6Z; _6Y++) { //#14467 + $k[$j++] = _6X //#14467 + } //#14467 + } //#14467 + $astore($a($counttomark() - 1)); //#14468 + var _6c = $k[--$j]; //#14468 + var _6d = $k[--$j]; //#14468 + $k[$j++] = _6c; //#14468 + $k[$j++] = _6d; //#14468 + $j--; //#14468 + var _6e = $k[--$j]; //#14468 + var _6f = $k[--$j]; //#14468 + $k[$j++] = _6e; //#14468 + $k[$j++] = _6f; //#14468 + $j--; //#14468 + $put($1.rowbits, $1.i, $k[--$j]); //#14469 + } //#14469 + $k[$j++] = Infinity; //#14481 + for (var _6k = 0, _6l = 81 * $1.sepheight; _6k < _6l; _6k++) { //#14474 + $k[$j++] = 1; //#14474 + } //#14474 + for (var _6o = 0, _6n = $f($1.r - 2); _6o <= _6n; _6o += 1) { //#14479 + $1.i = _6o; //#14476 + for (var _6q = 0, _6r = $1.rowheight; _6q < _6r; _6q++) { //#14477 + $aload($get($1.rowbits, $1.i)); //#14477 + } //#14477 + for (var _6w = 0, _6x = $1.sepheight; _6w < _6x; _6w++) { //#14478 + for (var _6y = 0, _6z = 10; _6y < _6z; _6y++) { //#14478 + $k[$j++] = 0; //#14478 + } //#14478 + for (var _70 = 0, _71 = 70; _70 < _71; _70++) { //#14478 + $k[$j++] = 1; //#14478 + } //#14478 + $k[$j++] = 0; //#14478 + } //#14478 + } //#14478 + for (var _73 = 0, _74 = $1.rowheight; _73 < _74; _73++) { //#14480 + $aload($get($1.rowbits, $f($1.r - 1))); //#14480 + } //#14480 + for (var _79 = 0, _7A = 81 * $1.sepheight; _79 < _7A; _79++) { //#14481 + $k[$j++] = 1; //#14481 + } //#14481 + $1.pixs = $a(); //#14481 + var _7G = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", 81], + ["pixy", ~~($1.pixs.length / 81)], + ["height", (~~($1.pixs.length / 81)) / 72], + ["width", 81 / 72], + ["opt", $1.options] + ]); //#14492 + $k[$j++] = _7G; //#14495 + if (!$1.dontdraw) { //#14495 + $0.renmatrix(); //#14495 + } //#14495 }; $0.flattermarken = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = .3; - $forall($1.barcode, function() { - var _3 = $k[--$j]; - if (_3 < 48 || _3 > 57) { - $k[$j++] = "bwipp.flattermarkenBadCharacter"; - $k[$j++] = "Flattermarken must contain only digits"; - $0.raiseerror(); - } - }); - $forall($1.options, function() { - var _5 = $k[--$j]; - $1[$k[--$j]] = _5; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $forall($1.barcode, function() { - var _C = $k[--$j]; - if (_C < 48 || _C > 57) { - $k[$j++] = "bwipp.flattermarkenBadCharacter"; - $k[$j++] = "Flattermarken must contain only digits"; - $0.raiseerror(); - } - }); - $1.encs = $a([ "0018", "0117", "0216", "0315", "0414", "0513", "0612", "0711", "0810", "0900" ]); - $1.barchars = "1234567890"; - $1.barlen = $1.barcode.length; - $1.sbs = $s($1.barlen * 4); - $1.txt = $a($1.barlen); - for (var _L = 0, _K = $1.barlen - 1; _L <= _K; _L += 1) { - $1.i = _L; - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $1.i * 4, $1.enc); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $1.i * 9, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _h = $1.sbs; - for (var _i = 0, _j = _h.length; _i < _j; _i++) { - $k[$j++] = $get(_h, _i) - 48; - } - var _l = $a(); - $k[$j++] = Infinity; - for (var _n = 0, _o = ~~(($1.sbs.length + 1) / 2); _n < _o; _n++) { - $k[$j++] = $1.height; - } - var _q = $a(); - $k[$j++] = Infinity; - for (var _s = 0, _t = ~~(($1.sbs.length + 1) / 2); _s < _t; _s++) { - $k[$j++] = 0; - } - var _u = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _l; - $k[$j++] = "bhs"; - $k[$j++] = _q; - $k[$j++] = "bbs"; - $k[$j++] = _u; - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _x = $d(); - $k[$j++] = _x; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#14786 + $1.options = $k[--$j]; //#14788 + $1.barcode = $k[--$j]; //#14789 + $1.dontdraw = false; //#14791 + $1.includetext = false; //#14792 + $1.textfont = "OCR-B"; //#14793 + $1.textsize = 10; //#14794 + $1.textyoffset = -8; //#14795 + $1.height = 0.3; //#14796 + $forall($1.barcode, function() { //#14803 + var _3 = $k[--$j]; //#14800 + if ((_3 < 48) || (_3 > 57)) { //#14802 + $k[$j++] = 'bwipp.flattermarkenBadCharacter'; //#14801 + $k[$j++] = "Flattermarken must contain only digits"; //#14801 + $0.raiseerror(); //#14801 + } //#14801 + }); //#14801 + $forall($1.options, function() { //#14814 + var _5 = $k[--$j]; //#14814 + $1[$k[--$j]] = _5; //#14814 + }); //#14814 + $1.textfont = "" + $1.textfont; //#14816 + $1.textsize = +$1.textsize; //#14817 + $1.textyoffset = +$1.textyoffset; //#14818 + $1.height = +$1.height; //#14819 + $forall($1.barcode, function() { //#14826 + var _C = $k[--$j]; //#14823 + if ((_C < 48) || (_C > 57)) { //#14825 + $k[$j++] = 'bwipp.flattermarkenBadCharacter'; //#14824 + $k[$j++] = "Flattermarken must contain only digits"; //#14824 + $0.raiseerror(); //#14824 + } //#14824 + }); //#14824 + $1.encs = $a(["0018", "0117", "0216", "0315", "0414", "0513", "0612", "0711", "0810", "0900"]); //#14832 + $1.barchars = "1234567890"; //#14835 + $1.barlen = $1.barcode.length; //#14837 + $1.sbs = $s($1.barlen * 4); //#14839 + $1.txt = $a($1.barlen); //#14840 + for (var _L = 0, _K = $1.barlen - 1; _L <= _K; _L += 1) { //#14852 + $1.i = _L; //#14843 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#14845 + $j--; //#14846 + $1.indx = $k[--$j].length; //#14847 + $j -= 2; //#14848 + $1.enc = $get($1.encs, $1.indx); //#14849 + $puti($1.sbs, $1.i * 4, $1.enc); //#14850 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $1.i * 9, $1.textyoffset, $1.textfont, $1.textsize])); //#14851 + } //#14851 + $k[$j++] = Infinity; //#14861 + $k[$j++] = Infinity; //#14857 + var _h = $1.sbs; //#14857 + for (var _i = 0, _j = _h.length; _i < _j; _i++) { //#14857 + $k[$j++] = $get(_h, _i) - 48; //#14857 + } //#14857 + var _l = $a(); //#14857 + $k[$j++] = Infinity; //#14858 + for (var _n = 0, _o = ~~(($1.sbs.length + 1) / 2); _n < _o; _n++) { //#14858 + $k[$j++] = $1.height; //#14858 + } //#14858 + var _q = $a(); //#14858 + $k[$j++] = Infinity; //#14859 + for (var _s = 0, _t = ~~(($1.sbs.length + 1) / 2); _s < _t; _s++) { //#14859 + $k[$j++] = 0; //#14859 + } //#14859 + var _u = $a(); //#14859 + $k[$j++] = 'ren'; //#14861 + $k[$j++] = $0.renlinear; //#14861 + $k[$j++] = 'sbs'; //#14861 + $k[$j++] = _l; //#14861 + $k[$j++] = 'bhs'; //#14861 + $k[$j++] = _q; //#14861 + $k[$j++] = 'bbs'; //#14861 + $k[$j++] = _u; //#14861 + $k[$j++] = 'txt'; //#14861 + $k[$j++] = $1.txt; //#14861 + $k[$j++] = 'opt'; //#14861 + $k[$j++] = $1.options; //#14861 + var _x = $d(); //#14861 + $k[$j++] = _x; //#14864 + if (!$1.dontdraw) { //#14864 + $0.renlinear(); //#14864 + } //#14864 }; $0.raw = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.height = +$1.height; - $forall($1.barcode, function() { - var _7 = $k[--$j]; - if (_7 < 49 || _7 > 57) { - $k[$j++] = "bwipp.rawBadCharacter"; - $k[$j++] = "Raw must contain only digits 1 to 9"; - $0.raiseerror(); - } - }); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - $forall($1.barcode, function() { - var _9 = $k[--$j]; - $k[$j++] = $f(_9 - 48); - }); - var _A = $a(); - $k[$j++] = Infinity; - for (var _C = 0, _D = ~~(($1.barcode.length + 1) / 2); _C < _D; _C++) { - $k[$j++] = $1.height; - } - var _F = $a(); - $k[$j++] = Infinity; - for (var _H = 0, _I = ~~(($1.barcode.length + 1) / 2); _H < _I; _H++) { - $k[$j++] = 0; - } - var _J = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _A; - $k[$j++] = "bhs"; - $k[$j++] = _F; - $k[$j++] = "bbs"; - $k[$j++] = _J; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _L = $d(); - $k[$j++] = _L; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#14893 + $1.options = $k[--$j]; //#14895 + $1.barcode = $k[--$j]; //#14896 + $1.dontdraw = false; //#14898 + $1.height = 1; //#14899 + $forall($1.options, function() { //#14910 + var _3 = $k[--$j]; //#14910 + $1[$k[--$j]] = _3; //#14910 + }); //#14910 + $1.height = +$1.height; //#14912 + $forall($1.barcode, function() { //#14919 + var _7 = $k[--$j]; //#14916 + if ((_7 < 49) || (_7 > 57)) { //#14918 + $k[$j++] = 'bwipp.rawBadCharacter'; //#14917 + $k[$j++] = "Raw must contain only digits 1 to 9"; //#14917 + $0.raiseerror(); //#14917 + } //#14917 + }); //#14917 + $k[$j++] = Infinity; //#14927 + $k[$j++] = Infinity; //#14924 + $forall($1.barcode, function() { //#14924 + var _9 = $k[--$j]; //#14924 + $k[$j++] = $f(_9 - 48); //#14924 + }); //#14924 + var _A = $a(); //#14924 + $k[$j++] = Infinity; //#14925 + for (var _C = 0, _D = ~~(($1.barcode.length + 1) / 2); _C < _D; _C++) { //#14925 + $k[$j++] = $1.height; //#14925 + } //#14925 + var _F = $a(); //#14925 + $k[$j++] = Infinity; //#14926 + for (var _H = 0, _I = ~~(($1.barcode.length + 1) / 2); _H < _I; _H++) { //#14926 + $k[$j++] = 0; //#14926 + } //#14926 + var _J = $a(); //#14926 + $k[$j++] = 'ren'; //#14927 + $k[$j++] = $0.renlinear; //#14927 + $k[$j++] = 'sbs'; //#14927 + $k[$j++] = _A; //#14927 + $k[$j++] = 'bhs'; //#14927 + $k[$j++] = _F; //#14927 + $k[$j++] = 'bbs'; //#14927 + $k[$j++] = _J; //#14927 + $k[$j++] = 'opt'; //#14927 + $k[$j++] = $1.options; //#14927 + var _L = $d(); //#14927 + $k[$j++] = _L; //#14930 + if (!$1.dontdraw) { //#14930 + $0.renlinear(); //#14930 + } //#14930 }; $0.daft = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.height = .175; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.height = +$1.height; - $forall($1.barcode, function() { - var _7 = $k[--$j]; - if (_7 != 68 && (_7 != 65 && (_7 != 70 && _7 != 84))) { - $k[$j++] = "bwipp.daftBadCharacter"; - $k[$j++] = "DAFT must contain only characters D, A, F and T"; - $0.raiseerror(); - } - }); - $1.barlen = $1.barcode.length; - $1.bbs = $a($1.barlen); - $1.bhs = $a($1.barlen); - for (var _F = 0, _E = $1.barlen - 1; _F <= _E; _F += 1) { - $1.i = _F; - $1.enc = $geti($1.barcode, $1.i, 1); - if ($eq($1.enc, "D")) { - $put($1.bbs, $1.i, 0 * $1.height / 8); - $put($1.bhs, $1.i, 5 * $1.height / 8); - } - if ($eq($1.enc, "A")) { - $put($1.bbs, $1.i, 3 * $1.height / 8); - $put($1.bhs, $1.i, 5 * $1.height / 8); - } - if ($eq($1.enc, "F")) { - $put($1.bbs, $1.i, 0 * $1.height / 8); - $put($1.bhs, $1.i, 8 * $1.height / 8); - } - if ($eq($1.enc, "T")) { - $put($1.bbs, $1.i, 3 * $1.height / 8); - $put($1.bhs, $1.i, 2 * $1.height / 8); - } - } - $k[$j++] = Infinity; - var _l = $1.bbs; - var _m = $1.bhs; - $k[$j++] = Infinity; - for (var _o = 0, _p = $1.bhs.length - 1; _o < _p; _o++) { - $k[$j++] = 1.44; - $k[$j++] = 1.872; - } - $k[$j++] = 1.44; - var _q = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "bbs"; - $k[$j++] = _l; - $k[$j++] = "bhs"; - $k[$j++] = _m; - $k[$j++] = "sbs"; - $k[$j++] = _q; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _s = $d(); - $k[$j++] = _s; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#14959 + $1.options = $k[--$j]; //#14961 + $1.barcode = $k[--$j]; //#14962 + $1.dontdraw = false; //#14964 + $1.height = 0.175; //#14965 + $forall($1.options, function() { //#14976 + var _3 = $k[--$j]; //#14976 + $1[$k[--$j]] = _3; //#14976 + }); //#14976 + $1.height = +$1.height; //#14978 + $forall($1.barcode, function() { //#14984 + var _7 = $k[--$j]; //#14981 + if ((_7 != 68) && ((_7 != 65) && ((_7 != 70) && (_7 != 84)))) { //#14983 + $k[$j++] = 'bwipp.daftBadCharacter'; //#14982 + $k[$j++] = "DAFT must contain only characters D, A, F and T"; //#14982 + $0.raiseerror(); //#14982 + } //#14982 + }); //#14982 + $1.barlen = $1.barcode.length; //#14986 + $1.bbs = $a($1.barlen); //#14988 + $1.bhs = $a($1.barlen); //#14989 + for (var _F = 0, _E = $1.barlen - 1; _F <= _E; _F += 1) { //#15009 + $1.i = _F; //#14991 + $1.enc = $geti($1.barcode, $1.i, 1); //#14992 + if ($eq($1.enc, "D")) { //#14996 + $put($1.bbs, $1.i, (0 * $1.height) / 8); //#14994 + $put($1.bhs, $1.i, (5 * $1.height) / 8); //#14995 + } //#14995 + if ($eq($1.enc, "A")) { //#15000 + $put($1.bbs, $1.i, (3 * $1.height) / 8); //#14998 + $put($1.bhs, $1.i, (5 * $1.height) / 8); //#14999 + } //#14999 + if ($eq($1.enc, "F")) { //#15004 + $put($1.bbs, $1.i, (0 * $1.height) / 8); //#15002 + $put($1.bhs, $1.i, (8 * $1.height) / 8); //#15003 + } //#15003 + if ($eq($1.enc, "T")) { //#15008 + $put($1.bbs, $1.i, (3 * $1.height) / 8); //#15006 + $put($1.bhs, $1.i, (2 * $1.height) / 8); //#15007 + } //#15007 + } //#15007 + $k[$j++] = Infinity; //#15017 + var _l = $1.bbs; //#15014 + var _m = $1.bhs; //#15015 + $k[$j++] = Infinity; //#15016 + for (var _o = 0, _p = $1.bhs.length - 1; _o < _p; _o++) { //#15016 + $k[$j++] = 1.44; //#15016 + $k[$j++] = 1.872; //#15016 + } //#15016 + $k[$j++] = 1.44; //#15016 + var _q = $a(); //#15016 + $k[$j++] = 'ren'; //#15017 + $k[$j++] = $0.renlinear; //#15017 + $k[$j++] = 'bbs'; //#15017 + $k[$j++] = _l; //#15017 + $k[$j++] = 'bhs'; //#15017 + $k[$j++] = _m; //#15017 + $k[$j++] = 'sbs'; //#15017 + $k[$j++] = _q; //#15017 + $k[$j++] = 'opt'; //#15017 + $k[$j++] = $1.options; //#15017 + var _s = $d(); //#15017 + $k[$j++] = _s; //#15020 + if (!$1.dontdraw) { //#15020 + $0.renlinear(); //#15020 + } //#15020 }; $0.symbol = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - var _H = new Map([ [ "fima", function() { - $1.sbs = $a([ 2.25, 2.25, 2.25, 11.25, 2.25, 11.25, 2.25, 2.25, 2.25 ]); - $1.bhs = $a([ .625, .625, .625, .625, .625 ]); - $1.bbs = $a([ 0, 0, 0, 0, 0 ]); - } ], [ "fimb", function() { - $1.sbs = $a([ 2.25, 6.75, 2.25, 2.25, 2.25, 6.25, 2.25, 2.25, 2.25, 6.75, 2.25 ]); - $1.bhs = $a([ .625, .625, .625, .625, .625, .625 ]); - $1.bbs = $a([ 0, 0, 0, 0, 0, 0 ]); - } ], [ "fimc", function() { - $1.sbs = $a([ 2.25, 2.25, 2.25, 6.75, 2.25, 6.75, 2.25, 6.75, 2.25, 2.25, 2.25 ]); - $1.bhs = $a([ .625, .625, .625, .625, .625, .625 ]); - $1.bbs = $a([ 0, 0, 0, 0, 0, 0 ]); - } ], [ "fimd", function() { - $1.sbs = $a([ 2.25, 2.25, 2.25, 2.25, 2.25, 6.75, 2.25, 6.75, 2.25, 2.25, 2.25, 2.25, 2.25 ]); - $1.bhs = $a([ .625, .625, .625, .625, .625, .625, .625 ]); - $1.bbs = $a([ 0, 0, 0, 0, 0, 0, 0 ]); - } ] ]); - $1.symbols = _H; - var _K = $get($1.symbols, $1.barcode) !== undefined; - if (!_K) { - $k[$j++] = "bwipp.symbolUnknownSymbol"; - $k[$j++] = "Unknown symbol name provided"; - $0.raiseerror(); - } + var $1 = {}; //#15049 + $1.options = $k[--$j]; //#15051 + $1.barcode = $k[--$j]; //#15052 + $1.dontdraw = false; //#15054 + $forall($1.options, function() { //#15065 + var _3 = $k[--$j]; //#15065 + $1[$k[--$j]] = _3; //#15065 + }); //#15065 + var _H = new Map([ + ["fima", function() { + $1.sbs = $a([2.25, 2.25, 2.25, 11.25, 2.25, 11.25, 2.25, 2.25, 2.25]); //#15069 + $1.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625]); //#15070 + $1.bbs = $a([0, 0, 0, 0, 0]); //#15071 + }], + ["fimb", function() { + $1.sbs = $a([2.25, 6.75, 2.25, 2.25, 2.25, 6.25, 2.25, 2.25, 2.25, 6.75, 2.25]); //#15074 + $1.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#15075 + $1.bbs = $a([0, 0, 0, 0, 0, 0]); //#15076 + }], + ["fimc", function() { + $1.sbs = $a([2.25, 2.25, 2.25, 6.75, 2.25, 6.75, 2.25, 6.75, 2.25, 2.25, 2.25]); //#15079 + $1.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#15080 + $1.bbs = $a([0, 0, 0, 0, 0, 0]); //#15081 + }], + ["fimd", function() { + $1.sbs = $a([2.25, 2.25, 2.25, 2.25, 2.25, 6.75, 2.25, 6.75, 2.25, 2.25, 2.25, 2.25, 2.25]); //#15084 + $1.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#15085 + $1.bbs = $a([0, 0, 0, 0, 0, 0, 0]); //#15086 + }] + ]); //#15086 + $1.symbols = _H; //#15088 + var _K = $get($1.symbols, $1.barcode) !== undefined; //#15091 + if (!_K) { //#15093 + $k[$j++] = 'bwipp.symbolUnknownSymbol'; //#15092 + $k[$j++] = "Unknown symbol name provided"; //#15092 + $0.raiseerror(); //#15092 + } //#15092 if ($get($1.symbols, $1.barcode)() === true) { return true; - } - var _S = new Map([ [ "ren", $0.renlinear ], [ "sbs", $1.sbs ], [ "bhs", $1.bhs ], [ "bbs", $1.bbs ], [ "opt", $1.options ] ]); - $k[$j++] = _S; - if (!$1.dontdraw) { - $0.renlinear(); - } + } //#15095 + var _S = new Map([ + ["ren", $0.renlinear], + ["sbs", $1.sbs], + ["bhs", $1.bhs], + ["bbs", $1.bbs], + ["opt", $1.options] + ]); //#15103 + $k[$j++] = _S; //#15106 + if (!$1.dontdraw) { //#15106 + $0.renlinear(); //#15106 + } //#15106 }; $0.pdf417 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.compact = false; - $1.eclevel = -1; - $1.columns = 0; - $1.rows = 0; - $1.rowmult = 3; - $1.encoding = "auto"; - $1.ccc = false; - $1.raw = false; - $1.parse = false; - $1.parsefnc = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.eclevel = ~~$1.eclevel; - $1.columns = ~~$1.columns; - $1.rows = ~~$1.rows; - $1.rowmult = +$1.rowmult; - if ($1.raw) { - $1.encoding = "raw"; - } - if ($eq($1.encoding, "raw")) { - $1.datcws = $a($1.barcode.length); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.barcode.length) { - break; - } - $1.cw = ~~$z($geti($1.barcode, $1.i + 1, 3)); - $put($1.datcws, $1.j, $1.cw); - $1.i = $1.i + 4; - $1.j = $1.j + 1; - } - $1.datcws = $geti($1.datcws, 0, $1.j); - } - if ($1.ccc) { - $1.encoding = "ccc"; - } + var $1 = {}; //#15136 + $1.options = $k[--$j]; //#15138 + $1.barcode = $k[--$j]; //#15139 + $1.dontdraw = false; //#15141 + $1.compact = false; //#15142 + $1.eclevel = -1; //#15143 + $1.columns = 0; //#15144 + $1.rows = 0; //#15145 + $1.rowmult = 3; //#15146 + $1.encoding = "auto"; //#15147 + $1.ccc = false; //#15148 + $1.raw = false; //#15149 + $1.parse = false; //#15150 + $1.parsefnc = false; //#15151 + $forall($1.options, function() { //#15162 + var _3 = $k[--$j]; //#15162 + $1[$k[--$j]] = _3; //#15162 + }); //#15162 + $1.eclevel = ~~$1.eclevel; //#15164 + $1.columns = ~~$1.columns; //#15165 + $1.rows = ~~$1.rows; //#15166 + $1.rowmult = +$1.rowmult; //#15167 + if ($1.raw) { //#15169 + $1.encoding = "raw"; //#15169 + } //#15169 + if ($eq($1.encoding, "raw")) { //#15183 + $1.datcws = $a($1.barcode.length); //#15173 + $1.i = 0; //#15174 + $1.j = 0; //#15174 + for (;;) { //#15181 + if ($1.i == $1.barcode.length) { //#15176 + break; //#15176 + } //#15176 + $1.cw = ~~$z($geti($1.barcode, $1.i + 1, 3)); //#15177 + $put($1.datcws, $1.j, $1.cw); //#15178 + $1.i = $1.i + 4; //#15179 + $1.j = $1.j + 1; //#15180 + } //#15180 + $1.datcws = $geti($1.datcws, 0, $1.j); //#15182 + } //#15182 + if ($1.ccc) { //#15185 + $1.encoding = "ccc"; //#15185 + } //#15185 $1.encb = function() { - $1.in = $k[--$j]; - $1.inlen = $1.in.length; - $1.out = $a(~~($1.inlen / 6) * 5 + $1.inlen % 6); - for (var _Y = 0, _X = ~~($1.inlen / 6) - 1; _Y <= _X; _Y += 1) { - $1.k = _Y; - $k[$j++] = Infinity; - $aload($geti($1.in, $1.k * 6, 3)); - $1.msbs = $a(); - $k[$j++] = Infinity; - $aload($1.msbs); - var _e = $k[--$j]; - var _f = $k[--$j]; - var _g = $k[--$j]; - $k[$j++] = $f($f(_e + _f * 256) + _g * 65536); - for (var _h = 0, _i = 3; _h < _i; _h++) { - var _j = $k[--$j]; - $k[$j++] = _j % 900; - $k[$j++] = ~~(_j / 900); - } - $1.mscs = $a(); - $k[$j++] = Infinity; - $aload($geti($1.in, $1.k * 6 + 3, 3)); - $1.lsbs = $a(); - $k[$j++] = Infinity; - $aload($1.lsbs); - var _q = $k[--$j]; - var _r = $k[--$j]; - var _s = $k[--$j]; - $k[$j++] = $f($f(_q + _r * 256) + _s * 65536); - for (var _t = 0, _u = 3; _t < _u; _t++) { - var _v = $k[--$j]; - $k[$j++] = _v % 900; - $k[$j++] = ~~(_v / 900); - } - $1.lscs = $a(); - var _y = $get($1.lscs, 0); - var _10 = $get($1.mscs, 0); - $put($1.out, $1.k * 5 + 4, $f(_y + _10 * 316) % 900); - var _14 = $get($1.lscs, 1); - var _16 = $get($1.mscs, 0); - var _18 = $get($1.mscs, 1); - $put($1.out, $1.k * 5 + 3, $f($f($f(~~($f(_y + _10 * 316) / 900) + _14) + _16 * 641) + _18 * 316) % 900); - var _1C = $get($1.lscs, 2); - var _1E = $get($1.mscs, 0); - var _1G = $get($1.mscs, 1); - var _1I = $get($1.mscs, 2); - $put($1.out, $1.k * 5 + 2, $f($f($f($f(~~($f($f($f(~~($f(_y + _10 * 316) / 900) + _14) + _16 * 641) + _18 * 316) / 900) + _1C) + _1E * 20) + _1G * 641) + _1I * 316) % 900); - var _1M = $get($1.lscs, 3); - var _1O = $get($1.mscs, 1); - var _1Q = $get($1.mscs, 2); - $put($1.out, $1.k * 5 + 1, $f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_y + _10 * 316) / 900) + _14) + _16 * 641) + _18 * 316) / 900) + _1C) + _1E * 20) + _1G * 641) + _1I * 316) / 900) + _1M) + _1O * 20) + _1Q * 641) % 900); - $put($1.out, $1.k * 5, $f(~~($f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_y + _10 * 316) / 900) + _14) + _16 * 641) + _18 * 316) / 900) + _1C) + _1E * 20) + _1G * 641) + _1I * 316) / 900) + _1M) + _1O * 20) + _1Q * 641) / 900) + $get($1.mscs, 2) * 20) % 900); - } - $1.rem = $1.inlen % 6; - if ($1.rem != 0) { - $k[$j++] = $1.out; - $k[$j++] = $1.out.length - $1.rem; - $k[$j++] = Infinity; - $aload($geti($1.in, $1.inlen - $1.rem, $1.rem)); - var _1h = $a(); - var _1i = $k[--$j]; - $puti($k[--$j], _1i, _1h); - } - $k[$j++] = $1.out; - }; - if ($eq($1.encoding, "byte") || $eq($1.encoding, "ccc")) { - $1.barlen = $1.barcode.length; - $1.datcws = $a(~~($1.barlen / 6) * 5 + $1.barlen % 6 + 1); - var _1t = $1.barlen % 6 == 0 ? 924 : 901; - $put($1.datcws, 0, _1t); - $k[$j++] = $1.datcws; - $k[$j++] = 1; - $k[$j++] = Infinity; - $forall($1.barcode); - var _1w = $a(); - $k[$j++] = _1w; - $1.encb(); - var _1x = $k[--$j]; - var _1y = $k[--$j]; - $puti($k[--$j], _1y, _1x); - if ($eq($1.encoding, "ccc")) { - $k[$j++] = Infinity; - $k[$j++] = 920; - $aload($1.datcws); - $1.datcws = $a(); - } - } - if ($eq($1.encoding, "auto")) { - var _26 = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "eci", true ] ]); - $1.fncvals = _26; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _29 = $k[--$j]; - $1[$k[--$j]] = _29; - $1.msglen = $1.msg.length; - $1.T = 0; - $1.N = 1; - $1.B = 2; - $1.A = 0; - $1.L = 1; - $1.M = 2; - $1.P = 3; - $1.tl = -1; - $1.nl = -2; - $1.bl = -3; - $1.bl6 = -4; - $1.bs = -5; - $1.al = -6; - $1.ll = -7; - $1.ml = -8; - $1.pl = -9; - $1.as = -10; - $1.ps = -11; - $1.charmaps = $a([ $a([ "A", "a", "0", ";" ]), $a([ "B", "b", "1", "<" ]), $a([ "C", "c", "2", ">" ]), $a([ "D", "d", "3", "@" ]), $a([ "E", "e", "4", "[" ]), $a([ "F", "f", "5", 92 ]), $a([ "G", "g", "6", "]" ]), $a([ "H", "h", "7", "_" ]), $a([ "I", "i", "8", "`" ]), $a([ "J", "j", "9", "~" ]), $a([ "K", "k", "&", "!" ]), $a([ "L", "l", 13, 13 ]), $a([ "M", "m", 9, 9 ]), $a([ "N", "n", ",", "," ]), $a([ "O", "o", ":", ":" ]), $a([ "P", "p", "#", 10 ]), $a([ "Q", "q", "-", "-" ]), $a([ "R", "r", ".", "." ]), $a([ "S", "s", "$", "$" ]), $a([ "T", "t", "/", "/" ]), $a([ "U", "u", "+", '"' ]), $a([ "V", "v", "%", "|" ]), $a([ "W", "w", "*", "*" ]), $a([ "X", "x", "=", 40 ]), $a([ "Y", "y", "^", 41 ]), $a([ "Z", "z", $1.pl, "?" ]), $a([ " ", " ", " ", "{" ]), $a([ $1.ll, $1.as, $1.ll, "}" ]), $a([ $1.ml, $1.ml, $1.al, "'" ]), $a([ $1.ps, $1.ps, $1.ps, $1.al ]) ]); - $1.charvals = $a([ new Map(), new Map(), new Map(), new Map() ]); - $1.alltext = new Map(); - for (var _2v = 0, _2u = $1.charmaps.length - 1; _2v <= _2u; _2v += 1) { - $1.i = _2v; - $1.encs = $get($1.charmaps, $1.i); - for (var _2z = 0; _2z <= 3; _2z += 1) { - $1.j = _2z; - var _32 = $get($1.encs, $1.j); - $k[$j++] = _32; - if ($eq($type(_32), "stringtype")) { - var _35 = $get($k[--$j], 0); - $k[$j++] = _35; - } - var _36 = $k[--$j]; - $put($get($1.charvals, $1.j), _36, $1.i); - $put($1.alltext, _36, -1); - } - } - $1.e = 1e4; - $1.latlen = $a([ $a([ 0, 1, 1, 2 ]), $a([ 2, 0, 1, 2 ]), $a([ 1, 1, 0, 1 ]), $a([ 1, 2, 2, 0 ]) ]); - $1.latseq = $a([ $a([ $a([]), $a([ $1.ll ]), $a([ $1.ml ]), $a([ $1.ml, $1.pl ]) ]), $a([ $a([ $1.ml, $1.al ]), $a([]), $a([ $1.ml ]), $a([ $1.ml, $1.pl ]) ]), $a([ $a([ $1.al ]), $a([ $1.ll ]), $a([]), $a([ $1.pl ]) ]), $a([ $a([ $1.al ]), $a([ $1.al, $1.ll ]), $a([ $1.al, $1.ml ]), $a([]) ]) ]); - $1.shftlen = $a([ $a([ $1.e, $1.e, $1.e, 1 ]), $a([ 1, $1.e, $1.e, 1 ]), $a([ $1.e, $1.e, $1.e, 1 ]), $a([ $1.e, $1.e, $1.e, $1.e ]) ]); - $k[$j++] = Infinity; - for (var _4B = 0, _4C = $1.msglen; _4B < _4C; _4B++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numdigits = $a(); - $k[$j++] = Infinity; - for (var _4F = 0, _4G = $1.msglen; _4F < _4G; _4F++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numtext = $a(); - $k[$j++] = Infinity; - for (var _4J = 0, _4K = $1.msglen; _4J < _4K; _4J++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numbytes = $a(); - $k[$j++] = Infinity; - for (var _4N = 0, _4O = $1.msglen; _4N < _4O; _4N++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.iseci = $a(); - for (var _4R = $1.msglen - 1; _4R >= 0; _4R -= 1) { - $1.i = _4R; - var _4U = $get($1.msg, $1.i); - if (_4U >= 48 && _4U <= 57) { - $put($1.numdigits, $1.i, $f($get($1.numdigits, $1.i + 1) + 1)); - } - var _4e = $get($1.alltext, $get($1.msg, $1.i)) !== undefined; - if (_4e && $get($1.numdigits, $1.i) < 13) { - $put($1.numtext, $1.i, $f($get($1.numtext, $1.i + 1) + 1)); - } - if ($get($1.msg, $1.i) >= 0 && $get($1.numtext, $1.i) < 5 && $get($1.numdigits, $1.i) < 13) { - $put($1.numbytes, $1.i, $f($get($1.numbytes, $1.i + 1) + 1)); - } - $put($1.iseci, $1.i, $get($1.msg, $1.i) <= -1e6); - } - $1.numdigits = $geti($1.numdigits, 0, $1.msglen); - $1.numtext = $geti($1.numtext, 0, $1.msglen); - $1.numbytes = $geti($1.numbytes, 0, $1.msglen); - $1.seq = $a([]); - $1.seqlen = 0; - $1.state = $1.T; - $1.p = 0; - for (;;) { - if ($1.p == $1.msglen) { - break; - } - if ($get($1.iseci, $1.p)) { - $1.eci = $get($1.msg, $1.p); - $k[$j++] = Infinity; - $aload($1.seq); - $k[$j++] = $a([ $1.eci ]); - $1.seq = $a(); - $1.p = $1.p + 1; - $k[$j++] = "seqlen"; - $k[$j++] = $1.seqlen; - if ($1.eci <= -1810900) { - $k[$j++] = 2; - } else { - var _5X = $1.eci <= -1000900 ? 3 : 2; - $k[$j++] = _5X; - } - var _5Y = $k[--$j]; - var _5Z = $k[--$j]; - $1[$k[--$j]] = $f(_5Z + _5Y); - } else { - $1.n = $get($1.numdigits, $1.p); - if ($1.n >= 13) { - $k[$j++] = Infinity; - $aload($1.seq); - $k[$j++] = $1.nl; - $k[$j++] = Infinity; - $aload($geti($1.msg, $1.p, $1.n)); - var _5l = $a(); - $k[$j++] = _5l; - $1.seq = $a(); - $1.state = $1.N; - $1.p = $f($1.p + $1.n); - $1.seqlen = $f($1.seqlen + 1 + $1.n); - } else { - $1.t = $get($1.numtext, $1.p); - if ($1.t >= 5) { - $k[$j++] = Infinity; - $aload($1.seq); - if ($1.state != $1.T) { - $k[$j++] = $1.tl; - } - $k[$j++] = Infinity; - $aload($geti($1.msg, $1.p, $1.t)); - var _64 = $a(); - $k[$j++] = _64; - $1.seq = $a(); - $1.state = $1.T; - $1.p = $f($1.p + $1.t); - $1.seqlen = $f($f($1.seqlen + 1) + $1.t); - } else { - $1.b = $get($1.numbytes, $1.p); - if ($1.b == 1 && $1.state == $1.T) { - $k[$j++] = Infinity; - $aload($1.seq); - $k[$j++] = $1.bs; - $k[$j++] = $a([ $get($1.msg, $1.p) ]); - $1.seq = $a(); - $1.p = $f($1.p + $1.b); - $1.seqlen = $f($1.seqlen + 2); - } else { - $k[$j++] = Infinity; - $aload($1.seq); - var _6T = $1.b % 6 != 0 ? $1.bl : $1.bl6; - $k[$j++] = _6T; - $k[$j++] = Infinity; - $aload($geti($1.msg, $1.p, $1.b)); - var _6Y = $a(); - $k[$j++] = _6Y; - $1.seq = $a(); - $1.state = $1.B; - $1.p = $f($1.p + $1.b); - $1.seqlen = $f($f($1.seqlen + 1) + $1.b); - } - } - } - } - } - $k[$j++] = Infinity; - $k[$j++] = $1.tl; - $k[$j++] = 900; - $k[$j++] = $1.bl; - $k[$j++] = 901; - $k[$j++] = $1.bl6; - $k[$j++] = 924; - $k[$j++] = $1.nl; - $k[$j++] = 902; - $k[$j++] = $1.bs; - $k[$j++] = 913; - $1.latchcws = $d(); + $1.in = $k[--$j]; //#15188 + $1.inlen = $1.in.length; //#15189 + $1.out = $a(((~~($1.inlen / 6)) * 5) + ($1.inlen % 6)); //#15190 + for (var _Y = 0, _X = (~~($1.inlen / 6)) - 1; _Y <= _X; _Y += 1) { //#15213 + $1.k = _Y; //#15192 + $k[$j++] = Infinity; //#15193 + $aload($geti($1.in, $1.k * 6, 3)); //#15193 + $1.msbs = $a(); //#15193 + $k[$j++] = Infinity; //#15196 + $aload($1.msbs); //#15195 + var _e = $k[--$j]; //#15195 + var _f = $k[--$j]; //#15195 + var _g = $k[--$j]; //#15195 + $k[$j++] = $f(($f(_e + (_f * 256))) + (_g * 65536)); //#15196 + for (var _h = 0, _i = 3; _h < _i; _h++) { //#15196 + var _j = $k[--$j]; //#15196 + $k[$j++] = _j % 900; //#15196 + $k[$j++] = ~~(_j / 900); //#15196 + } //#15196 + $1.mscs = $a(); //#15196 + $k[$j++] = Infinity; //#15198 + $aload($geti($1.in, ($1.k * 6) + 3, 3)); //#15198 + $1.lsbs = $a(); //#15198 + $k[$j++] = Infinity; //#15201 + $aload($1.lsbs); //#15200 + var _q = $k[--$j]; //#15200 + var _r = $k[--$j]; //#15200 + var _s = $k[--$j]; //#15200 + $k[$j++] = $f(($f(_q + (_r * 256))) + (_s * 65536)); //#15201 + for (var _t = 0, _u = 3; _t < _u; _t++) { //#15201 + var _v = $k[--$j]; //#15201 + $k[$j++] = _v % 900; //#15201 + $k[$j++] = ~~(_v / 900); //#15201 + } //#15201 + $1.lscs = $a(); //#15201 + var _y = $get($1.lscs, 0); //#15203 + var _10 = $get($1.mscs, 0); //#15203 + $put($1.out, ($1.k * 5) + 4, ($f(_y + (_10 * 316))) % 900); //#15204 + var _14 = $get($1.lscs, 1); //#15205 + var _16 = $get($1.mscs, 0); //#15205 + var _18 = $get($1.mscs, 1); //#15205 + $put($1.out, ($1.k * 5) + 3, ($f(($f(($f((~~(($f(_y + (_10 * 316))) / 900)) + _14)) + (_16 * 641))) + (_18 * 316))) % 900); //#15206 + var _1C = $get($1.lscs, 2); //#15207 + var _1E = $get($1.mscs, 0); //#15207 + var _1G = $get($1.mscs, 1); //#15207 + var _1I = $get($1.mscs, 2); //#15207 + $put($1.out, ($1.k * 5) + 2, ($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_y + (_10 * 316))) / 900)) + _14)) + (_16 * 641))) + (_18 * 316))) / 900)) + _1C)) + (_1E * 20))) + (_1G * 641))) + (_1I * 316))) % 900); //#15208 + var _1M = $get($1.lscs, 3); //#15209 + var _1O = $get($1.mscs, 1); //#15209 + var _1Q = $get($1.mscs, 2); //#15209 + $put($1.out, ($1.k * 5) + 1, ($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_y + (_10 * 316))) / 900)) + _14)) + (_16 * 641))) + (_18 * 316))) / 900)) + _1C)) + (_1E * 20))) + (_1G * 641))) + (_1I * 316))) / 900)) + _1M)) + (_1O * 20))) + (_1Q * 641))) % 900); //#15210 + $put($1.out, $1.k * 5, ($f((~~(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_y + (_10 * 316))) / 900)) + _14)) + (_16 * 641))) + (_18 * 316))) / 900)) + _1C)) + (_1E * 20))) + (_1G * 641))) + (_1I * 316))) / 900)) + _1M)) + (_1O * 20))) + (_1Q * 641))) / 900)) + ($get($1.mscs, 2) * 20))) % 900); //#15212 + } //#15212 + $1.rem = $1.inlen % 6; //#15214 + if ($1.rem != 0) { //#15219 + $k[$j++] = $1.out; //#15217 + $k[$j++] = $1.out.length - $1.rem; //#15217 + $k[$j++] = Infinity; //#15217 + $aload($geti($1.in, $1.inlen - $1.rem, $1.rem)); //#15217 + var _1h = $a(); //#15217 + var _1i = $k[--$j]; //#15218 + $puti($k[--$j], _1i, _1h); //#15218 + } //#15218 + $k[$j++] = $1.out; //#15220 + }; //#15221 + if ($eq($1.encoding, "byte") || $eq($1.encoding, "ccc")) { //#15229 + $1.barlen = $1.barcode.length; //#15224 + $1.datcws = $a((((~~($1.barlen / 6)) * 5) + ($1.barlen % 6)) + 1); //#15225 + var _1t = (($1.barlen % 6) == 0) ? 924 : 901; //#15226 + $put($1.datcws, 0, _1t); //#15226 + $k[$j++] = $1.datcws; //#15227 + $k[$j++] = 1; //#15227 + $k[$j++] = Infinity; //#15227 + $forall($1.barcode); //#15227 + var _1w = $a(); //#15227 + $k[$j++] = _1w; //#15227 + $1.encb(); //#15227 + var _1x = $k[--$j]; //#15227 + var _1y = $k[--$j]; //#15227 + $puti($k[--$j], _1y, _1x); //#15227 + if ($eq($1.encoding, "ccc")) { //#15228 + $k[$j++] = Infinity; //#15228 + $k[$j++] = 920; //#15228 + $aload($1.datcws); //#15228 + $1.datcws = $a(); //#15228 + } //#15228 + } //#15228 + if ($eq($1.encoding, "auto")) { //#15632 + var _26 = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["eci", true] + ]); //#15237 + $1.fncvals = _26; //#15239 + $k[$j++] = 'msg'; //#15240 + $k[$j++] = $1.barcode; //#15240 + $k[$j++] = $1.fncvals; //#15240 + $0.parseinput(); //#15240 + var _29 = $k[--$j]; //#15240 + $1[$k[--$j]] = _29; //#15240 + $1.msglen = $1.msg.length; //#15241 + $1.T = 0; //#15244 + $1.N = 1; //#15244 + $1.B = 2; //#15244 + $1.A = 0; //#15245 + $1.L = 1; //#15245 + $1.M = 2; //#15245 + $1.P = 3; //#15245 + $1.tl = -1; //#15248 + $1.nl = -2; //#15248 + $1.bl = -3; //#15248 + $1.bl6 = -4; //#15248 + $1.bs = -5; //#15248 + $1.al = -6; //#15251 + $1.ll = -7; //#15251 + $1.ml = -8; //#15251 + $1.pl = -9; //#15251 + $1.as = -10; //#15251 + $1.ps = -11; //#15251 + $1.charmaps = $a([$a(["A", "a", "0", ";"]), $a(["B", "b", "1", "<"]), $a(["C", "c", "2", ">"]), $a(["D", "d", "3", "@"]), $a(["E", "e", "4", "["]), $a(["F", "f", "5", 92]), $a(["G", "g", "6", "]"]), $a(["H", "h", "7", "_"]), $a(["I", "i", "8", "`"]), $a(["J", "j", "9", "~"]), $a(["K", "k", "&", "!"]), $a(["L", "l", 13, 13]), $a(["M", "m", 9, 9]), $a(["N", "n", ",", ","]), $a(["O", "o", ":", ":"]), $a(["P", "p", "#", 10]), $a(["Q", "q", "-", "-"]), $a(["R", "r", ".", "."]), $a(["S", "s", "$", "$"]), $a(["T", "t", "/", "/"]), $a(["U", "u", "+", "\""]), $a(["V", "v", "%", "|"]), $a(["W", "w", "*", "*"]), $a(["X", "x", "=", 40]), $a(["Y", "y", "^", 41]), $a(["Z", "z", $1.pl, "?"]), $a([" ", " ", " ", "{"]), $a([$1.ll, $1.as, $1.ll, "}"]), $a([$1.ml, $1.ml, $1.al, "'"]), $a([$1.ps, $1.ps, $1.ps, $1.al])]); //#15286 + $1.charvals = $a([new Map, new Map, new Map, new Map]); //#15289 + $1.alltext = new Map; //#15290 + for (var _2v = 0, _2u = $1.charmaps.length - 1; _2v <= _2u; _2v += 1) { //#15300 + $1.i = _2v; //#15292 + $1.encs = $get($1.charmaps, $1.i); //#15293 + for (var _2z = 0; _2z <= 3; _2z += 1) { //#15299 + $1.j = _2z; //#15295 + var _32 = $get($1.encs, $1.j); //#15296 + $k[$j++] = _32; //#15296 + if ($eq($type(_32), 'stringtype')) { //#15296 + var _35 = $get($k[--$j], 0); //#15296 + $k[$j++] = _35; //#15296 + } //#15296 + var _36 = $k[--$j]; //#15297 + $put($get($1.charvals, $1.j), _36, $1.i); //#15297 + $put($1.alltext, _36, -1); //#15298 + } //#15298 + } //#15298 + $1.e = 10000; //#15302 + $1.latlen = $a([$a([0, 1, 1, 2]), $a([2, 0, 1, 2]), $a([1, 1, 0, 1]), $a([1, 2, 2, 0])]); //#15310 + $1.latseq = $a([$a([$a([]), $a([$1.ll]), $a([$1.ml]), $a([$1.ml, $1.pl])]), $a([$a([$1.ml, $1.al]), $a([]), $a([$1.ml]), $a([$1.ml, $1.pl])]), $a([$a([$1.al]), $a([$1.ll]), $a([]), $a([$1.pl])]), $a([$a([$1.al]), $a([$1.al, $1.ll]), $a([$1.al, $1.ml]), $a([])])]); //#15318 + $1.shftlen = $a([$a([$1.e, $1.e, $1.e, 1]), $a([1, $1.e, $1.e, 1]), $a([$1.e, $1.e, $1.e, 1]), $a([$1.e, $1.e, $1.e, $1.e])]); //#15326 + $k[$j++] = Infinity; //#15329 + for (var _4B = 0, _4C = $1.msglen; _4B < _4C; _4B++) { //#15329 + $k[$j++] = 0; //#15329 + } //#15329 + $k[$j++] = 0; //#15329 + $1.numdigits = $a(); //#15329 + $k[$j++] = Infinity; //#15330 + for (var _4F = 0, _4G = $1.msglen; _4F < _4G; _4F++) { //#15330 + $k[$j++] = 0; //#15330 + } //#15330 + $k[$j++] = 0; //#15330 + $1.numtext = $a(); //#15330 + $k[$j++] = Infinity; //#15331 + for (var _4J = 0, _4K = $1.msglen; _4J < _4K; _4J++) { //#15331 + $k[$j++] = 0; //#15331 + } //#15331 + $k[$j++] = 0; //#15331 + $1.numbytes = $a(); //#15331 + $k[$j++] = Infinity; //#15332 + for (var _4N = 0, _4O = $1.msglen; _4N < _4O; _4N++) { //#15332 + $k[$j++] = 0; //#15332 + } //#15332 + $k[$j++] = 0; //#15332 + $1.iseci = $a(); //#15332 + for (var _4R = $1.msglen - 1; _4R >= 0; _4R -= 1) { //#15345 + $1.i = _4R; //#15334 + var _4U = $get($1.msg, $1.i); //#15335 + if ((_4U >= 48) && (_4U <= 57)) { //#15337 + $put($1.numdigits, $1.i, $f($get($1.numdigits, $1.i + 1) + 1)); //#15336 + } //#15336 + var _4e = $get($1.alltext, $get($1.msg, $1.i)) !== undefined; //#15338 + if (_4e && ($get($1.numdigits, $1.i) < 13)) { //#15340 + $put($1.numtext, $1.i, $f($get($1.numtext, $1.i + 1) + 1)); //#15339 + } //#15339 + if ((($get($1.msg, $1.i) >= 0) && ($get($1.numtext, $1.i) < 5)) && ($get($1.numdigits, $1.i) < 13)) { //#15343 + $put($1.numbytes, $1.i, $f($get($1.numbytes, $1.i + 1) + 1)); //#15342 + } //#15342 + $put($1.iseci, $1.i, $get($1.msg, $1.i) <= -1000000); //#15344 + } //#15344 + $1.numdigits = $geti($1.numdigits, 0, $1.msglen); //#15346 + $1.numtext = $geti($1.numtext, 0, $1.msglen); //#15347 + $1.numbytes = $geti($1.numbytes, 0, $1.msglen); //#15348 + $1.seq = $a([]); //#15350 + $1.seqlen = 0; //#15350 + $1.state = $1.T; //#15350 + $1.p = 0; //#15350 + for (;;) { //#15404 + if ($1.p == $1.msglen) { //#15351 + break; //#15351 + } //#15351 + if ($get($1.iseci, $1.p)) { //#15402 + $1.eci = $get($1.msg, $1.p); //#15353 + $k[$j++] = Infinity; //#15356 + $aload($1.seq); //#15355 + $k[$j++] = $a([$1.eci]); //#15356 + $1.seq = $a(); //#15356 + $1.p = $1.p + 1; //#15358 + $k[$j++] = 'seqlen'; //#15359 + $k[$j++] = $1.seqlen; //#15359 + if ($1.eci <= -1810900) { //#15359 + $k[$j++] = 2; //#15359 + } else { //#15359 + var _5X = ($1.eci <= -1000900) ? 3 : 2; //#15359 + $k[$j++] = _5X; //#15359 + } //#15359 + var _5Y = $k[--$j]; //#15359 + var _5Z = $k[--$j]; //#15359 + $1[$k[--$j]] = $f(_5Z + _5Y); //#15359 + } else { //#15402 + $1.n = $get($1.numdigits, $1.p); //#15361 + if ($1.n >= 13) { //#15402 + $k[$j++] = Infinity; //#15366 + $aload($1.seq); //#15364 + $k[$j++] = $1.nl; //#15366 + $k[$j++] = Infinity; //#15366 + $aload($geti($1.msg, $1.p, $1.n)); //#15366 + var _5l = $a(); //#15366 + $k[$j++] = _5l; //#15366 + $1.seq = $a(); //#15366 + $1.state = $1.N; //#15368 + $1.p = $f($1.p + $1.n); //#15369 + $1.seqlen = $f(($1.seqlen + 1) + $1.n); //#15370 + } else { //#15402 + $1.t = $get($1.numtext, $1.p); //#15372 + if ($1.t >= 5) { //#15402 + $k[$j++] = Infinity; //#15379 + $aload($1.seq); //#15375 + if ($1.state != $1.T) { //#15378 + $k[$j++] = $1.tl; //#15377 + } //#15377 + $k[$j++] = Infinity; //#15379 + $aload($geti($1.msg, $1.p, $1.t)); //#15379 + var _64 = $a(); //#15379 + $k[$j++] = _64; //#15379 + $1.seq = $a(); //#15379 + $1.state = $1.T; //#15381 + $1.p = $f($1.p + $1.t); //#15382 + $1.seqlen = $f($f($1.seqlen + 1) + $1.t); //#15383 + } else { //#15402 + $1.b = $get($1.numbytes, $1.p); //#15385 + if (($1.b == 1) && ($1.state == $1.T)) { //#15402 + $k[$j++] = Infinity; //#15390 + $aload($1.seq); //#15388 + $k[$j++] = $1.bs; //#15390 + $k[$j++] = $a([$get($1.msg, $1.p)]); //#15390 + $1.seq = $a(); //#15390 + $1.p = $f($1.p + $1.b); //#15392 + $1.seqlen = $f($1.seqlen + 2); //#15393 + } else { //#15402 + $k[$j++] = Infinity; //#15398 + $aload($1.seq); //#15396 + var _6T = (($1.b % 6) != 0) ? $1.bl : $1.bl6; //#15397 + $k[$j++] = _6T; //#15398 + $k[$j++] = Infinity; //#15398 + $aload($geti($1.msg, $1.p, $1.b)); //#15398 + var _6Y = $a(); //#15398 + $k[$j++] = _6Y; //#15398 + $1.seq = $a(); //#15398 + $1.state = $1.B; //#15400 + $1.p = $f($1.p + $1.b); //#15401 + $1.seqlen = $f($f($1.seqlen + 1) + $1.b); //#15402 + } //#15402 + } //#15402 + } //#15402 + } //#15402 + } //#15402 + $k[$j++] = Infinity; //#15407 + $k[$j++] = $1.tl; //#15407 + $k[$j++] = 900; //#15407 + $k[$j++] = $1.bl; //#15407 + $k[$j++] = 901; //#15407 + $k[$j++] = $1.bl6; //#15407 + $k[$j++] = 924; //#15407 + $k[$j++] = $1.nl; //#15407 + $k[$j++] = 902; //#15407 + $k[$j++] = $1.bs; //#15407 + $k[$j++] = 913; //#15407 + $1.latchcws = $d(); //#15408 $1.enca = function() { - var _6p = $get($get($1.charvals, $1.A), $k[--$j]); - $k[$j++] = _6p; - }; + var _6p = $get($get($1.charvals, $1.A), $k[--$j]); //#15411 + $k[$j++] = _6p; //#15411 + }; //#15411 $1.encl = function() { - var _6u = $get($get($1.charvals, $1.L), $k[--$j]); - $k[$j++] = _6u; - }; + var _6u = $get($get($1.charvals, $1.L), $k[--$j]); //#15412 + $k[$j++] = _6u; //#15412 + }; //#15412 $1.encm = function() { - var _6z = $get($get($1.charvals, $1.M), $k[--$j]); - $k[$j++] = _6z; - }; + var _6z = $get($get($1.charvals, $1.M), $k[--$j]); //#15413 + $k[$j++] = _6z; //#15413 + }; //#15413 $1.encp = function() { - var _74 = $get($get($1.charvals, $1.P), $k[--$j]); - $k[$j++] = _74; - }; - $1.textencfuncs = $a([ "enca", "encl", "encm", "encp" ]); + var _74 = $get($get($1.charvals, $1.P), $k[--$j]); //#15414 + $k[$j++] = _74; //#15414 + }; //#15414 + $1.textencfuncs = $a(['enca', 'encl', 'encm', 'encp']); //#15415 $1.addtotext = function() { - $put($1.text, $1.l, $k[--$j]); - $1.l = $1.l + 1; - }; + $put($1.text, $1.l, $k[--$j]); //#15418 + $1.l = $1.l + 1; //#15419 + }; //#15420 $1.enct = function() { - $1.in = $k[--$j]; - $1.curlen = $a([ $1.e, $1.e, $1.e, $1.e ]); - $put($1.curlen, $1.submode, 0); - $1.curseq = $a([ $a([]), $a([]), $a([]), $a([]) ]); - $forall($1.in, function() { - $1.char = $k[--$j]; - for (;;) { - $1.imp = false; - var _7T = $a([ $1.A, $1.L, $1.M, $1.P ]); - for (var _7U = 0, _7V = _7T.length; _7U < _7V; _7U++) { - $1.x = $get(_7T, _7U); - var _7b = $a([ $1.A, $1.L, $1.M, $1.P ]); - for (var _7c = 0, _7d = _7b.length; _7c < _7d; _7c++) { - $1.y = $get(_7b, _7c); - $1.cost = $f($get($1.curlen, $1.x) + $get($get($1.latlen, $1.x), $1.y)); - if ($1.cost < $get($1.curlen, $1.y)) { - $put($1.curlen, $1.y, $1.cost); - $k[$j++] = $1.curseq; - $k[$j++] = $1.y; - $k[$j++] = Infinity; - $aload($get($1.curseq, $1.x)); - $aload($get($get($1.latseq, $1.x), $1.y)); - var _84 = $a(); - var _85 = $k[--$j]; - $put($k[--$j], _85, _84); - $1.imp = true; - } - } - } - if (!$1.imp) { - break; - } - } - $1.nxtlen = $a([ $1.e, $1.e, $1.e, $1.e ]); - $1.nxtseq = $a(4); - var _8I = $a([ $1.A, $1.L, $1.M, $1.P ]); - for (var _8J = 0, _8K = _8I.length; _8J < _8K; _8J++) { - $1.x = $get(_8I, _8J); - for (;;) { - var _8Q = $get($get($1.charvals, $1.x), $1.char) !== undefined; - if (!_8Q) { - break; - } - $1.cost = $f($get($1.curlen, $1.x) + 1); - if ($1.cost < $get($1.nxtlen, $1.x)) { - $put($1.nxtlen, $1.x, $1.cost); - $k[$j++] = $1.nxtseq; - $k[$j++] = $1.x; - $k[$j++] = Infinity; - $aload($get($1.curseq, $1.x)); - $k[$j++] = $1.char; - var _8h = $a(); - var _8i = $k[--$j]; - $put($k[--$j], _8i, _8h); - } - var _8o = $a([ $1.A, $1.L, $1.M, $1.P ]); - for (var _8p = 0, _8q = _8o.length; _8p < _8q; _8p++) { - $1.y = $get(_8o, _8p); - if ($ne($1.x, $1.y)) { - $1.cost = $f($f($get($1.curlen, $1.y) + $get($get($1.shftlen, $1.y), $1.x)) + 1); - if ($1.cost < $get($1.nxtlen, $1.y)) { - $put($1.nxtlen, $1.y, $1.cost); - $k[$j++] = $1.nxtseq; - $k[$j++] = $1.y; - $k[$j++] = Infinity; - $aload($get($1.curseq, $1.y)); - var _9G = $1.x == $1.A ? $1.as : $1.ps; - $k[$j++] = _9G; - $k[$j++] = $1.char; - var _9I = $a(); - var _9J = $k[--$j]; - $put($k[--$j], _9J, _9I); - } - } - } - break; - } - } - $1.curlen = $1.nxtlen; - $1.curseq = $1.nxtseq; - }); - $1.minseq = $1.e; - var _9S = $a([ $1.A, $1.L, $1.M, $1.P ]); - for (var _9T = 0, _9U = _9S.length; _9T < _9U; _9T++) { - $1.k = $get(_9S, _9T); - if ($get($1.curlen, $1.k) < $1.minseq) { - $1.minseq = $get($1.curlen, $1.k); - $1.txtseq = $get($1.curseq, $1.k); - } - } - $1.text = $a($1.minseq); - $1.k = 0; - $1.l = 0; - for (;;) { - if ($1.k >= $1.txtseq.length) { - break; - } - $1.char = $get($1.txtseq, $1.k); - $k[$j++] = $1.char; + $1.in = $k[--$j]; //#15423 + $1.curlen = $a([$1.e, $1.e, $1.e, $1.e]); //#15425 + $put($1.curlen, $1.submode, 0); //#15426 + $1.curseq = $a([$a([]), $a([]), $a([]), $a([])]); //#15427 + $forall($1.in, function() { //#15497 + $1.char = $k[--$j]; //#15432 + for (;;) { //#15453 + $1.imp = false; //#15436 + var _7T = $a([$1.A, $1.L, $1.M, $1.P]); //#15437 + for (var _7U = 0, _7V = _7T.length; _7U < _7V; _7U++) { //#15451 + $1.x = $get(_7T, _7U); //#15438 + var _7b = $a([$1.A, $1.L, $1.M, $1.P]); //#15439 + for (var _7c = 0, _7d = _7b.length; _7c < _7d; _7c++) { //#15450 + $1.y = $get(_7b, _7c); //#15440 + $1.cost = $f($get($1.curlen, $1.x) + $get($get($1.latlen, $1.x), $1.y)); //#15441 + if ($1.cost < $get($1.curlen, $1.y)) { //#15449 + $put($1.curlen, $1.y, $1.cost); //#15443 + $k[$j++] = $1.curseq; //#15446 + $k[$j++] = $1.y; //#15446 + $k[$j++] = Infinity; //#15446 + $aload($get($1.curseq, $1.x)); //#15445 + $aload($get($get($1.latseq, $1.x), $1.y)); //#15446 + var _84 = $a(); //#15446 + var _85 = $k[--$j]; //#15447 + $put($k[--$j], _85, _84); //#15447 + $1.imp = true; //#15448 + } //#15448 + } //#15448 + } //#15448 + if (!$1.imp) { //#15452 + break; //#15452 + } //#15452 + } //#15452 + $1.nxtlen = $a([$1.e, $1.e, $1.e, $1.e]); //#15456 + $1.nxtseq = $a(4); //#15457 + var _8I = $a([$1.A, $1.L, $1.M, $1.P]); //#15459 + for (var _8J = 0, _8K = _8I.length; _8J < _8K; _8J++) { //#15492 + $1.x = $get(_8I, _8J); //#15460 + for (;;) { //#15490 + var _8Q = $get($get($1.charvals, $1.x), $1.char) !== undefined; //#15464 + if (!_8Q) { //#15464 + break; //#15464 + } //#15464 + $1.cost = $f($get($1.curlen, $1.x) + 1); //#15467 + if ($1.cost < $get($1.nxtlen, $1.x)) { //#15471 + $put($1.nxtlen, $1.x, $1.cost); //#15469 + $k[$j++] = $1.nxtseq; //#15470 + $k[$j++] = $1.x; //#15470 + $k[$j++] = Infinity; //#15470 + $aload($get($1.curseq, $1.x)); //#15470 + $k[$j++] = $1.char; //#15470 + var _8h = $a(); //#15470 + var _8i = $k[--$j]; //#15470 + $put($k[--$j], _8i, _8h); //#15470 + } //#15470 + var _8o = $a([$1.A, $1.L, $1.M, $1.P]); //#15474 + for (var _8p = 0, _8q = _8o.length; _8p < _8q; _8p++) { //#15487 + $1.y = $get(_8o, _8p); //#15475 + if ($ne($1.x, $1.y)) { //#15486 + $1.cost = $f($f($get($1.curlen, $1.y) + $get($get($1.shftlen, $1.y), $1.x)) + 1); //#15477 + if ($1.cost < $get($1.nxtlen, $1.y)) { //#15485 + $put($1.nxtlen, $1.y, $1.cost); //#15479 + $k[$j++] = $1.nxtseq; //#15483 + $k[$j++] = $1.y; //#15483 + $k[$j++] = Infinity; //#15483 + $aload($get($1.curseq, $1.y)); //#15481 + var _9G = ($1.x == $1.A) ? $1.as : $1.ps; //#15482 + $k[$j++] = _9G; //#15483 + $k[$j++] = $1.char; //#15483 + var _9I = $a(); //#15483 + var _9J = $k[--$j]; //#15484 + $put($k[--$j], _9J, _9I); //#15484 + } //#15484 + } //#15484 + } //#15484 + break; //#15489 + } //#15489 + } //#15489 + $1.curlen = $1.nxtlen; //#15494 + $1.curseq = $1.nxtseq; //#15495 + }); //#15495 + $1.minseq = $1.e; //#15500 + var _9S = $a([$1.A, $1.L, $1.M, $1.P]); //#15501 + for (var _9T = 0, _9U = _9S.length; _9T < _9U; _9T++) { //#15507 + $1.k = $get(_9S, _9T); //#15502 + if ($get($1.curlen, $1.k) < $1.minseq) { //#15506 + $1.minseq = $get($1.curlen, $1.k); //#15504 + $1.txtseq = $get($1.curseq, $1.k); //#15505 + } //#15505 + } //#15505 + $1.text = $a($1.minseq); //#15510 + $1.k = 0; //#15511 + $1.l = 0; //#15511 + for (;;) { //#15531 + if ($1.k >= $1.txtseq.length) { //#15512 + break; //#15512 + } //#15512 + $1.char = $get($1.txtseq, $1.k); //#15514 + $k[$j++] = $1.char; //#15517 if ($1[$get($1.textencfuncs, $1.submode)]() === true) { break; - } - $1.addtotext(); - $1.k = $1.k + 1; - if ($1.char == $1.as || $1.char == $1.ps) { - $k[$j++] = $get($1.txtseq, $1.k); - if ($1.char == $1.as) { - $1.enca(); - } else { - $1.encp(); - } - $1.addtotext(); - $1.k = $1.k + 1; - } - if ($1.char == $1.al) { - $1.submode = $1.A; - } - if ($1.char == $1.ll) { - $1.submode = $1.L; - } - if ($1.char == $1.ml) { - $1.submode = $1.M; - } - if ($1.char == $1.pl) { - $1.submode = $1.P; - } - } - if ($1.text.length % 2 == 1) { - if ($1.submode == $1.P) { - $k[$j++] = "pad"; - $k[$j++] = $1.al; - $1.encp(); - var _AJ = $k[--$j]; - $1[$k[--$j]] = _AJ; - $1.submode = $1.A; - } else { - $k[$j++] = "pad"; - $k[$j++] = $1.ps; + } //#15517 + $1.addtotext(); //#15517 + $1.k = $1.k + 1; //#15518 + if (($1.char == $1.as) || ($1.char == $1.ps)) { //#15524 + $k[$j++] = $get($1.txtseq, $1.k); //#15522 + if ($1.char == $1.as) { //#15522 + $1.enca(); //#15522 + } else { //#15522 + $1.encp(); //#15522 + } //#15522 + $1.addtotext(); //#15522 + $1.k = $1.k + 1; //#15523 + } //#15523 + if ($1.char == $1.al) { //#15527 + $1.submode = $1.A; //#15527 + } //#15527 + if ($1.char == $1.ll) { //#15528 + $1.submode = $1.L; //#15528 + } //#15528 + if ($1.char == $1.ml) { //#15529 + $1.submode = $1.M; //#15529 + } //#15529 + if ($1.char == $1.pl) { //#15530 + $1.submode = $1.P; //#15530 + } //#15530 + } //#15530 + if (($1.text.length % 2) == 1) { //#15541 + if ($1.submode == $1.P) { //#15538 + $k[$j++] = 'pad'; //#15535 + $k[$j++] = $1.al; //#15535 + $1.encp(); //#15535 + var _AJ = $k[--$j]; //#15535 + $1[$k[--$j]] = _AJ; //#15535 + $1.submode = $1.A; //#15536 + } else { //#15538 + $k[$j++] = 'pad'; //#15538 + $k[$j++] = $1.ps; //#15538 if ($1[$get($1.textencfuncs, $1.submode)]() === true) { return true; - } - var _AR = $k[--$j]; - $1[$k[--$j]] = _AR; - } - $k[$j++] = Infinity; - $aload($1.text); - $k[$j++] = $1.pad; - $1.text = $a(); - } - $1.out = $a(~~($1.text.length / 2)); - for (var _Aa = 0, _AZ = $1.out.length - 1; _Aa <= _AZ; _Aa += 1) { - $1.k = _Aa; - $put($1.out, $1.k, $f($get($1.text, $1.k * 2) * 30 + $get($1.text, $1.k * 2 + 1))); - } - $k[$j++] = $1.out; - }; + } //#15538 + var _AR = $k[--$j]; //#15538 + $1[$k[--$j]] = _AR; //#15538 + } //#15538 + $k[$j++] = Infinity; //#15540 + $aload($1.text); //#15540 + $k[$j++] = $1.pad; //#15540 + $1.text = $a(); //#15540 + } //#15540 + $1.out = $a(~~($1.text.length / 2)); //#15543 + for (var _Aa = 0, _AZ = $1.out.length - 1; _Aa <= _AZ; _Aa += 1) { //#15547 + $1.k = _Aa; //#15545 + $put($1.out, $1.k, $f(($get($1.text, $1.k * 2) * 30) + $get($1.text, ($1.k * 2) + 1))); //#15546 + } //#15546 + $k[$j++] = $1.out; //#15549 + }; //#15551 $1.encn = function() { - $1.in = $k[--$j]; - $1.out = $a([]); - for (var _Ao = 0, _An = $1.in.length - 1; _Ao <= _An; _Ao += 44) { - $1.k = _Ao; - $k[$j++] = Infinity; - var _At = $1.in.length - $1.k; - $k[$j++] = 1; - $k[$j++] = $1.in; - $k[$j++] = $1.k; - $k[$j++] = _At; - if (_At > 44) { - $j--; - $k[$j++] = 44; - } - var _Au = $k[--$j]; - var _Av = $k[--$j]; - var _Ax = $geti($k[--$j], _Av, _Au); - for (var _Ay = 0, _Az = _Ax.length; _Ay < _Az; _Ay++) { - $k[$j++] = $f($get(_Ax, _Ay) - 48); - } - $1.gmod = $a(); - $1.cwn = $a([]); - for (;;) { - $1.dv = 900; - $1.gmul = $a([]); - $1.val = 0; - for (;;) { - if ($1.gmod.length == 0) { - break; - } - $1.val = $f($1.val * 10 + $get($1.gmod, 0)); - $1.gmod = $geti($1.gmod, 1, $1.gmod.length - 1); - if ($1.val < $1.dv) { - if ($1.gmul.length != 0) { - $k[$j++] = Infinity; - $aload($1.gmul); - $k[$j++] = 0; - $1.gmul = $a(); - } - } else { - $k[$j++] = Infinity; - $aload($1.gmul); - $k[$j++] = ~~($1.val / $1.dv); - $1.gmul = $a(); - } - $1.val = $1.val % $1.dv; - } - $1.dv = $1.val; - $k[$j++] = Infinity; - $k[$j++] = $1.dv; - $aload($1.cwn); - $1.cwn = $a(); - $1.gmod = $1.gmul; - if ($1.gmul.length == 0) { - break; - } - } - $k[$j++] = Infinity; - $aload($1.out); - $aload($1.cwn); - $1.out = $a(); - } - $k[$j++] = $1.out; - }; + $1.in = $k[--$j]; //#15554 + $1.out = $a([]); //#15555 + for (var _Ao = 0, _An = $1.in.length - 1; _Ao <= _An; _Ao += 44) { //#15583 + $1.k = _Ao; //#15557 + $k[$j++] = Infinity; //#15560 + var _At = $1.in.length - $1.k; //#15559 + $k[$j++] = 1; //#15559 + $k[$j++] = $1.in; //#15559 + $k[$j++] = $1.k; //#15559 + $k[$j++] = _At; //#15559 + if (_At > 44) { //#15559 + $j--; //#15559 + $k[$j++] = 44; //#15559 + } //#15559 + var _Au = $k[--$j]; //#15559 + var _Av = $k[--$j]; //#15559 + var _Ax = $geti($k[--$j], _Av, _Au); //#15559 + for (var _Ay = 0, _Az = _Ax.length; _Ay < _Az; _Ay++) { //#15560 + $k[$j++] = $f($get(_Ax, _Ay) - 48); //#15560 + } //#15560 + $1.gmod = $a(); //#15560 + $1.cwn = $a([]); //#15562 + for (;;) { //#15581 + $1.dv = 900; //#15563 + $1.gmul = $a([]); //#15564 + $1.val = 0; //#15564 + for (;;) { //#15576 + if ($1.gmod.length == 0) { //#15565 + break; //#15565 + } //#15565 + $1.val = $f(($1.val * 10) + $get($1.gmod, 0)); //#15566 + $1.gmod = $geti($1.gmod, 1, $1.gmod.length - 1); //#15567 + if ($1.val < $1.dv) { //#15573 + if ($1.gmul.length != 0) { //#15571 + $k[$j++] = Infinity; //#15570 + $aload($1.gmul); //#15570 + $k[$j++] = 0; //#15570 + $1.gmul = $a(); //#15570 + } //#15570 + } else { //#15573 + $k[$j++] = Infinity; //#15573 + $aload($1.gmul); //#15573 + $k[$j++] = ~~($1.val / $1.dv); //#15573 + $1.gmul = $a(); //#15573 + } //#15573 + $1.val = $1.val % $1.dv; //#15575 + } //#15575 + $1.dv = $1.val; //#15577 + $k[$j++] = Infinity; //#15578 + $k[$j++] = $1.dv; //#15578 + $aload($1.cwn); //#15578 + $1.cwn = $a(); //#15578 + $1.gmod = $1.gmul; //#15579 + if ($1.gmul.length == 0) { //#15580 + break; //#15580 + } //#15580 + } //#15580 + $k[$j++] = Infinity; //#15582 + $aload($1.out); //#15582 + $aload($1.cwn); //#15582 + $1.out = $a(); //#15582 + } //#15582 + $k[$j++] = $1.out; //#15584 + }; //#15585 $1.ence = function() { - var _BY = $f(-$get($k[--$j], 0) - 1e6); - $k[$j++] = _BY; - if (_BY <= 899) { - var _BZ = $k[--$j]; - $k[$j++] = 927; - $k[$j++] = _BZ; - $astore($a(2)); - } else { - var _Bb = $k[--$j]; - $k[$j++] = _Bb; - if (_Bb <= 810899) { - var _Bc = $k[--$j]; - $k[$j++] = 926; - $k[$j++] = ~~(_Bc / 900) - 1; - $k[$j++] = _Bc % 900; - $astore($a(3)); - } else { - var _Be = $k[--$j]; - $k[$j++] = _Be; - if (_Be <= 811799) { - var _Bf = $k[--$j]; - $k[$j++] = 925; - $k[$j++] = $f(_Bf - 810900); - $astore($a(2)); - } else { - $k[$j++] = "bwipp.pdf417badECI"; - $k[$j++] = "PDF417 supports ECIs 000000 to 811799"; - $0.raiseerror(); - } - } - } - }; - $1.encfuncs = $a([ "enct", "encn", "encb" ]); + var _BY = $f((-$get($k[--$j], 0)) - 1000000); //#15589 + $k[$j++] = _BY; //#15597 + if (_BY <= 899) { //#15596 + var _BZ = $k[--$j]; //#15590 + $k[$j++] = 927; //#15590 + $k[$j++] = _BZ; //#15590 + $astore($a(2)); //#15590 + } else { //#15596 + var _Bb = $k[--$j]; //#15591 + $k[$j++] = _Bb; //#15597 + if (_Bb <= 810899) { //#15596 + var _Bc = $k[--$j]; //#15592 + $k[$j++] = 926; //#15592 + $k[$j++] = (~~(_Bc / 900)) - 1; //#15592 + $k[$j++] = _Bc % 900; //#15592 + $astore($a(3)); //#15592 + } else { //#15596 + var _Be = $k[--$j]; //#15593 + $k[$j++] = _Be; //#15597 + if (_Be <= 811799) { //#15596 + var _Bf = $k[--$j]; //#15594 + $k[$j++] = 925; //#15594 + $k[$j++] = $f(_Bf - 810900); //#15594 + $astore($a(2)); //#15594 + } else { //#15596 + $k[$j++] = 'bwipp.pdf417badECI'; //#15596 + $k[$j++] = "PDF417 supports ECIs 000000 to 811799"; //#15596 + $0.raiseerror(); //#15596 + } //#15596 + } //#15596 + } //#15596 + }; //#15598 + $1.encfuncs = $a(['enct', 'encn', 'encb']); //#15600 $1.addtocws = function() { - var _Bi = $k[--$j]; - $puti($1.datcws, $1.j, _Bi); - $1.j = _Bi.length + $1.j; - }; - $1.state = $1.T; - $1.submode = $1.A; - $1.datcws = $a($1.seqlen); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i >= $1.seq.length) { - break; - } - $1.chars = $get($1.seq, $1.i); - if ($eq($type($1.chars), "arraytype")) { - if ($get($1.chars, 0) <= -1e6) { - $k[$j++] = $1.chars; - $1.ence(); - $1.addtocws(); - } else { - $k[$j++] = $1.chars; + var _Bi = $k[--$j]; //#15603 + $puti($1.datcws, $1.j, _Bi); //#15603 + $1.j = _Bi.length + $1.j; //#15604 + }; //#15605 + $1.state = $1.T; //#15608 + $1.submode = $1.A; //#15608 + $1.datcws = $a($1.seqlen); //#15609 + $1.i = 0; //#15610 + $1.j = 0; //#15610 + for (;;) { //#15630 + if ($1.i >= $1.seq.length) { //#15611 + break; //#15611 + } //#15611 + $1.chars = $get($1.seq, $1.i); //#15612 + if ($eq($type($1.chars), 'arraytype')) { //#15626 + if ($get($1.chars, 0) <= -1000000) { //#15617 + $k[$j++] = $1.chars; //#15615 + $1.ence(); //#15615 + $1.addtocws(); //#15615 + } else { //#15617 + $k[$j++] = $1.chars; //#15617 if ($1[$get($1.encfuncs, $1.state)]() === true) { break; - } - $1.addtocws(); - } - } else { - $k[$j++] = $a([ $get($1.latchcws, $1.chars) ]); - $1.addtocws(); - if ($1.chars == $1.tl) { - $1.state = $1.T; - $1.submode = $1.A; - } - if ($1.chars == $1.nl) { - $1.state = $1.N; - } - if ($1.chars == $1.bl || $1.chars == $1.bl6) { - $1.state = $1.B; - } - if ($1.chars == $1.bs) { - $1.i = $1.i + 1; - $k[$j++] = $get($1.seq, $1.i); - $1.encb(); - $1.addtocws(); - } - } - $1.i = $1.i + 1; - } - $1.datcws = $geti($1.datcws, 0, $1.j); - } - $1.m = $1.datcws.length; - if ($1.eclevel == -1) { - if ($1.m <= 40) { - $1.eclevel = 2; - } - if ($1.m >= 41 && $1.m <= 160) { - $1.eclevel = 3; - } - if ($1.m >= 161 && $1.m <= 320) { - $1.eclevel = 4; - } - if ($1.m >= 321) { - $1.eclevel = 5; - } - } - $1.maxeclevel = ~~(Math.log(928 - 1 - $1.m) / Math.log(2)) - 1; - if ($1.eclevel > $1.maxeclevel) { - $1.eclevel = $1.maxeclevel; - } - $1.k = ~~Math.pow(2, $1.eclevel + 1); - if ($1.columns == 0) { - $1.columns = ~~Math.round(Math.sqrt(($1.m + $1.k) / 3)); - } - $k[$j++] = "c"; - if ($1.columns >= 1) { - $k[$j++] = $1.columns; - } else { - $k[$j++] = 1; - } - var _Cn = $k[--$j]; - $1[$k[--$j]] = _Cn; - $1.r = ~~Math.ceil(($1.m + $1.k + 1) / $1.columns); - if ($1.r < $1.rows && $1.rows <= 90) { - $1.r = $1.rows; - } - if ($1.r < 3) { - $1.r = 3; - } - var _Cx = $1.c; - var _Cy = $1.r; - var _Cz = $1.m; - var _D0 = 8; - var _D1 = ~~(Math.log($f($f(_Cx * _Cy - 1) - _Cz)) / Math.log(2)) - 1; - if (~~(Math.log($f($f(_Cx * _Cy - 1) - _Cz)) / Math.log(2)) - 1 > 8) { - var _ = _D0; - _D0 = _D1; - _D1 = _; - } - $1.maxeclevel = _D1; - if ($1.maxeclevel > $1.eclevel) { - $1.eclevel = $1.maxeclevel; - $1.k = ~~Math.pow(2, $1.eclevel + 1); - } - $1.n = $f($1.c * $1.r - $1.k); - $1.cws = $a($f($1.c * $1.r + 1)); - $put($1.cws, 0, $1.n); - $puti($1.cws, 1, $1.datcws); - $k[$j++] = $1.cws; - $k[$j++] = $1.m + 1; - $k[$j++] = Infinity; - for (var _DK = 0, _DL = $f($f($1.n - $1.m) - 1); _DK < _DL; _DK++) { - $k[$j++] = 900; - } - var _DM = $a(); - var _DN = $k[--$j]; - $puti($k[--$j], _DN, _DM); - $k[$j++] = $1.cws; - $k[$j++] = $1.n; - $k[$j++] = Infinity; - for (var _DS = 0, _DT = $1.k; _DS < _DT; _DS++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - var _DU = $a(); - var _DV = $k[--$j]; - $puti($k[--$j], _DV, _DU); - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _DX = 0, _DY = 928; _DX < _DY; _DX++) { - var _DZ = $k[--$j]; - $k[$j++] = _DZ; - $k[$j++] = _DZ * 3 % 929; - } - $1.rsalog = $a(); - $1.rslog = $a(929); - for (var _Dc = 1; _Dc <= 928; _Dc += 1) { - $put($1.rslog, $get($1.rsalog, _Dc), _Dc); - } + } //#15617 + $1.addtocws(); //#15617 + } //#15617 + } else { //#15626 + $k[$j++] = $a([$get($1.latchcws, $1.chars)]); //#15620 + $1.addtocws(); //#15620 + if ($1.chars == $1.tl) { //#15621 + $1.state = $1.T; //#15621 + $1.submode = $1.A; //#15621 + } //#15621 + if ($1.chars == $1.nl) { //#15622 + $1.state = $1.N; //#15622 + } //#15622 + if (($1.chars == $1.bl) || ($1.chars == $1.bl6)) { //#15623 + $1.state = $1.B; //#15623 + } //#15623 + if ($1.chars == $1.bs) { //#15627 + $1.i = $1.i + 1; //#15625 + $k[$j++] = $get($1.seq, $1.i); //#15626 + $1.encb(); //#15626 + $1.addtocws(); //#15626 + } //#15626 + } //#15626 + $1.i = $1.i + 1; //#15629 + } //#15629 + $1.datcws = $geti($1.datcws, 0, $1.j); //#15631 + } //#15631 + $1.m = $1.datcws.length; //#15635 + if ($1.eclevel == -1) { //#15641 + if ($1.m <= 40) { //#15637 + $1.eclevel = 2; //#15637 + } //#15637 + if (($1.m >= 41) && ($1.m <= 160)) { //#15638 + $1.eclevel = 3; //#15638 + } //#15638 + if (($1.m >= 161) && ($1.m <= 320)) { //#15639 + $1.eclevel = 4; //#15639 + } //#15639 + if ($1.m >= 321) { //#15640 + $1.eclevel = 5; //#15640 + } //#15640 + } //#15640 + $1.maxeclevel = (~~((Math.log((928 - 1) - $1.m)) / Math.log(2))) - 1; //#15644 + if ($1.eclevel > $1.maxeclevel) { //#15645 + $1.eclevel = $1.maxeclevel; //#15645 + } //#15645 + $1.k = ~~Math.pow(2, $1.eclevel + 1); //#15646 + if ($1.columns == 0) { //#15649 + $1.columns = ~~(Math.round(Math.sqrt(($1.m + $1.k) / 3))); //#15649 + } //#15649 + $k[$j++] = 'c'; //#15650 + if ($1.columns >= 1) { //#15650 + $k[$j++] = $1.columns; //#15650 + } else { //#15650 + $k[$j++] = 1; //#15650 + } //#15650 + var _Cn = $k[--$j]; //#15650 + $1[$k[--$j]] = _Cn; //#15650 + $1.r = ~~(Math.ceil((($1.m + $1.k) + 1) / $1.columns)); //#15653 + if (($1.r < $1.rows) && ($1.rows <= 90)) { //#15654 + $1.r = $1.rows; //#15654 + } //#15654 + if ($1.r < 3) { //#15655 + $1.r = 3; //#15655 + } //#15655 + var _Cx = $1.c; //#15658 + var _Cy = $1.r; //#15658 + var _Cz = $1.m; //#15658 + var _D0 = 8; //#15658 + var _D1 = (~~((Math.log($f(($f((_Cx * _Cy) - 1)) - _Cz))) / Math.log(2))) - 1; //#15658 + if (((~~((Math.log($f(($f((_Cx * _Cy) - 1)) - _Cz))) / Math.log(2))) - 1) > 8) { //#15658 + var _ = _D0; //#15658 + _D0 = _D1; //#15658 + _D1 = _; //#15658 + } //#15658 + $1.maxeclevel = _D1; //#15658 + if ($1.maxeclevel > $1.eclevel) { //#15662 + $1.eclevel = $1.maxeclevel; //#15660 + $1.k = ~~Math.pow(2, $1.eclevel + 1); //#15661 + } //#15661 + $1.n = $f(($1.c * $1.r) - $1.k); //#15665 + $1.cws = $a($f(($1.c * $1.r) + 1)); //#15666 + $put($1.cws, 0, $1.n); //#15667 + $puti($1.cws, 1, $1.datcws); //#15668 + $k[$j++] = $1.cws; //#15669 + $k[$j++] = $1.m + 1; //#15669 + $k[$j++] = Infinity; //#15669 + for (var _DK = 0, _DL = $f($f($1.n - $1.m) - 1); _DK < _DL; _DK++) { //#15669 + $k[$j++] = 900; //#15669 + } //#15669 + var _DM = $a(); //#15669 + var _DN = $k[--$j]; //#15669 + $puti($k[--$j], _DN, _DM); //#15669 + $k[$j++] = $1.cws; //#15670 + $k[$j++] = $1.n; //#15670 + $k[$j++] = Infinity; //#15670 + for (var _DS = 0, _DT = $1.k; _DS < _DT; _DS++) { //#15670 + $k[$j++] = 0; //#15670 + } //#15670 + $k[$j++] = 0; //#15670 + var _DU = $a(); //#15670 + var _DV = $k[--$j]; //#15670 + $puti($k[--$j], _DV, _DU); //#15670 + $k[$j++] = Infinity; //#15673 + $k[$j++] = 1; //#15673 + for (var _DX = 0, _DY = 928; _DX < _DY; _DX++) { //#15673 + var _DZ = $k[--$j]; //#15673 + $k[$j++] = _DZ; //#15673 + $k[$j++] = (_DZ * 3) % 929; //#15673 + } //#15673 + $1.rsalog = $a(); //#15673 + $1.rslog = $a(929); //#15674 + for (var _Dc = 1; _Dc <= 928; _Dc += 1) { //#15675 + $put($1.rslog, $get($1.rsalog, _Dc), _Dc); //#15675 + } //#15675 $1.rsprod = function() { - var _Dg = $k[--$j]; - var _Dh = $k[--$j]; - $k[$j++] = _Dh; - $k[$j++] = _Dg; - if (_Dg != 0 && _Dh != 0) { - var _Dk = $get($1.rslog, $k[--$j]); - var _Dp = $get($1.rsalog, $f(_Dk + $get($1.rslog, $k[--$j])) % 928); - $k[$j++] = _Dp; - } else { - $j -= 2; - $k[$j++] = 0; - } - }; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _Dr = 0, _Ds = $1.k; _Dr < _Ds; _Dr++) { - $k[$j++] = 0; - } - $1.coeffs = $a(); - for (var _Dw = 1, _Dv = $1.k; _Dw <= _Dv; _Dw += 1) { - $1.i = _Dw; - $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); - for (var _E3 = $1.i - 1; _E3 >= 1; _E3 -= 1) { - $1.j = _E3; - $k[$j++] = $1.coeffs; - $k[$j++] = $1.j; - $k[$j++] = $get($1.coeffs, $1.j - 1); - $k[$j++] = $get($1.coeffs, $1.j); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _EF = $k[--$j]; - var _EG = $k[--$j]; - var _EH = $k[--$j]; - $put($k[--$j], _EH, $f(_EG + _EF) % 929); - } - $k[$j++] = $1.coeffs; - $k[$j++] = 0; - $k[$j++] = $get($1.coeffs, 0); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _EP = $k[--$j]; - var _EQ = $k[--$j]; - $put($k[--$j], _EQ, _EP); - } - $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); - for (var _EW = $1.coeffs.length - 1; _EW >= 0; _EW -= 2) { - var _EX = $1.coeffs; - $put(_EX, _EW, $f(929 - $get(_EX, _EW))); - } - for (var _Eb = 0, _Ea = $f($1.n - 1); _Eb <= _Ea; _Eb += 1) { - $1.t = $f($get($1.cws, _Eb) + $get($1.cws, $1.n)) % 929; - for (var _Ej = 0, _Ei = $1.k - 1; _Ej <= _Ei; _Ej += 1) { - $1.j = _Ej; - $put($1.cws, $f($1.n + $1.j), $f($get($1.cws, $f($f($1.n + $1.j) + 1)) + $f(929 - $1.t * $get($1.coeffs, $1.k - $1.j - 1) % 929)) % 929); - } - } - for (var _F0 = $1.n, _Ez = $f($1.n + $1.k); _F0 <= _Ez; _F0 += 1) { - $put($1.cws, _F0, $f(929 - $get($1.cws, _F0)) % 929); - } - $1.cws = $geti($1.cws, 0, $1.cws.length - 1); - $1.clusters = $a([ $a([ 120256, 125680, 128380, 120032, 125560, 128318, 108736, 119920, 108640, 86080, 108592, 86048, 110016, 120560, 125820, 109792, 120440, 125758, 88256, 109680, 88160, 89536, 110320, 120700, 89312, 110200, 120638, 89200, 110140, 89840, 110460, 89720, 110398, 89980, 128506, 119520, 125304, 128190, 107712, 119408, 125244, 107616, 119352, 84032, 107568, 119324, 84e3, 107544, 83984, 108256, 119672, 125374, 85184, 108144, 119612, 85088, 108088, 119582, 85040, 108060, 85728, 108408, 119742, 85616, 108348, 85560, 108318, 85880, 108478, 85820, 85790, 107200, 119152, 125116, 107104, 119096, 125086, 83008, 107056, 119068, 82976, 107032, 82960, 82952, 83648, 107376, 119228, 83552, 107320, 119198, 83504, 107292, 83480, 83468, 83824, 107452, 83768, 107422, 83740, 83900, 106848, 118968, 125022, 82496, 106800, 118940, 82464, 106776, 118926, 82448, 106764, 82440, 106758, 82784, 106936, 119006, 82736, 106908, 82712, 106894, 82700, 82694, 106974, 82830, 82240, 106672, 118876, 82208, 106648, 118862, 82192, 106636, 82184, 106630, 82180, 82352, 82328, 82316, 82080, 118830, 106572, 106566, 82050, 117472, 124280, 127678, 103616, 117360, 124220, 103520, 117304, 124190, 75840, 103472, 75808, 104160, 117624, 124350, 76992, 104048, 117564, 76896, 103992, 76848, 76824, 77536, 104312, 117694, 77424, 104252, 77368, 77340, 77688, 104382, 77628, 77758, 121536, 126320, 128700, 121440, 126264, 128670, 111680, 121392, 126236, 111648, 121368, 126222, 111632, 121356, 103104, 117104, 124092, 112320, 103008, 117048, 124062, 112224, 121656, 126366, 93248, 74784, 102936, 117006, 93216, 112152, 93200, 75456, 103280, 117180, 93888, 75360, 103224, 117150, 93792, 112440, 121758, 93744, 75288, 93720, 75632, 103356, 94064, 75576, 103326, 94008, 112542, 93980, 75708, 94140, 75678, 94110, 121184, 126136, 128606, 111168, 121136, 126108, 111136, 121112, 126094, 111120, 121100, 111112, 111108, 102752, 116920, 123998, 111456, 102704, 116892, 91712, 74272, 121244, 116878, 91680, 74256, 102668, 91664, 111372, 102662, 74244, 74592, 102840, 116958, 92e3, 74544, 102812, 91952, 111516, 102798, 91928, 74508, 74502, 74680, 102878, 92088, 74652, 92060, 74638, 92046, 92126, 110912, 121008, 126044, 110880, 120984, 126030, 110864, 120972, 110856, 120966, 110852, 110850, 74048, 102576, 116828, 90944, 74016, 102552, 116814, 90912, 111e3, 121038, 90896, 73992, 102534, 90888, 110982, 90884, 74160, 102620, 91056, 74136, 102606, 91032, 111054, 91020, 74118, 91014, 91100, 91086, 110752, 120920, 125998, 110736, 120908, 110728, 120902, 110724, 110722, 73888, 102488, 116782, 90528, 73872, 102476, 90512, 110796, 102470, 90504, 73860, 90500, 73858, 73944, 90584, 90572, 90566, 120876, 120870, 110658, 102444, 73800, 90312, 90308, 90306, 101056, 116080, 123580, 100960, 116024, 70720, 100912, 115996, 70688, 100888, 70672, 70664, 71360, 101232, 116156, 71264, 101176, 116126, 71216, 101148, 71192, 71180, 71536, 101308, 71480, 101278, 71452, 71612, 71582, 118112, 124600, 127838, 105024, 118064, 124572, 104992, 118040, 124558, 104976, 118028, 104968, 118022, 100704, 115896, 123486, 105312, 100656, 115868, 79424, 70176, 118172, 115854, 79392, 105240, 100620, 79376, 70152, 79368, 70496, 100792, 115934, 79712, 70448, 118238, 79664, 105372, 100750, 79640, 70412, 79628, 70584, 100830, 79800, 70556, 79772, 70542, 70622, 79838, 122176, 126640, 128860, 122144, 126616, 128846, 122128, 126604, 122120, 126598, 122116, 104768, 117936, 124508, 113472, 104736, 126684, 124494, 113440, 122264, 126670, 113424, 104712, 117894, 113416, 122246, 104706, 69952, 100528, 115804, 78656, 69920, 100504, 115790, 96064, 78624, 104856, 117966, 96032, 113560, 122318, 100486, 96016, 78600, 104838, 96008, 69890, 70064, 100572, 78768, 70040, 100558, 96176, 78744, 104910, 96152, 113614, 70022, 78726, 70108, 78812, 70094, 96220, 78798, 122016, 126552, 128814, 122e3, 126540, 121992, 126534, 121988, 121986, 104608, 117848, 124462, 113056, 104592, 126574, 113040, 122060, 117830, 113032, 104580, 113028, 104578, 113026, 69792, 100440, 115758, 78240, 69776, 100428, 95136, 78224, 104652, 100422, 95120, 113100, 69764, 95112, 78212, 69762, 78210, 69848, 100462, 78296, 69836, 95192, 78284, 69830, 95180, 78278, 69870, 95214, 121936, 126508, 121928, 126502, 121924, 121922, 104528, 117804, 112848, 104520, 117798, 112840, 121958, 112836, 104514, 112834, 69712, 100396, 78032, 69704, 100390, 94672, 78024, 104550, 94664, 112870, 69698, 94660, 78018, 94658, 78060, 94700, 94694, 126486, 121890, 117782, 104484, 104482, 69672, 77928, 94440, 69666, 77922, 99680, 68160, 99632, 68128, 99608, 115342, 68112, 99596, 68104, 99590, 68448, 99768, 115422, 68400, 99740, 68376, 99726, 68364, 68358, 68536, 99806, 68508, 68494, 68574, 101696, 116400, 123740, 101664, 116376, 101648, 116364, 101640, 116358, 101636, 67904, 99504, 115292, 72512, 67872, 116444, 115278, 72480, 101784, 116430, 72464, 67848, 99462, 72456, 101766, 67842, 68016, 99548, 72624, 67992, 99534, 72600, 101838, 72588, 67974, 68060, 72668, 68046, 72654, 118432, 124760, 127918, 118416, 124748, 118408, 124742, 118404, 118402, 101536, 116312, 105888, 101520, 116300, 105872, 118476, 116294, 105864, 101508, 105860, 101506, 105858, 67744, 99416, 72096, 67728, 116334, 80800, 72080, 101580, 99398, 80784, 105932, 67716, 80776, 72068, 67714, 72066, 67800, 99438, 72152, 67788, 80856, 72140, 67782, 80844, 72134, 67822, 72174, 80878, 126800, 128940, 126792, 128934, 126788, 126786, 118352, 124716, 122576, 126828, 124710, 122568, 126822, 122564, 118338, 122562, 101456, 116268, 105680, 101448, 116262, 114128, 105672, 118374, 114120, 122598, 101442, 114116, 105666, 114114, 67664, 99372, 71888, 67656, 99366, 80336, 71880, 101478, 97232, 80328, 105702, 67650, 97224, 114150, 71874, 97220, 67692, 71916, 67686, 80364, 71910, 97260, 80358, 97254, 126760, 128918, 126756, 126754, 118312, 124694, 122472, 126774, 122468, 118306, 122466, 101416, 116246, 105576, 101412, 113896, 105572, 101410, 113892, 105570, 113890, 67624, 99350, 71784, 101430, 80104, 71780, 67618, 96744, 80100, 71778, 96740, 80098, 96738, 71798, 96758, 126738, 122420, 122418, 105524, 113780, 113778, 71732, 79988, 96500, 96498, 66880, 66848, 98968, 66832, 66824, 66820, 66992, 66968, 66956, 66950, 67036, 67022, 1e5, 99984, 115532, 99976, 115526, 99972, 99970, 66720, 98904, 69024, 100056, 98892, 69008, 100044, 69e3, 100038, 68996, 66690, 68994, 66776, 98926, 69080, 100078, 69068, 66758, 69062, 66798, 69102, 116560, 116552, 116548, 116546, 99920, 102096, 116588, 115494, 102088, 116582, 102084, 99906, 102082, 66640, 68816, 66632, 98854, 73168, 68808, 66628, 73160, 68804, 66626, 73156, 68802, 66668, 68844, 66662, 73196, 68838, 73190, 124840, 124836, 124834, 116520, 118632, 124854, 118628, 116514, 118626, 99880, 115478, 101992, 116534, 106216, 101988, 99874, 106212, 101986, 106210, 66600, 98838, 68712, 99894, 72936, 68708, 66594, 81384, 72932, 68706, 81380, 72930, 66614, 68726, 72950, 81398, 128980, 128978, 124820, 126900, 124818, 126898, 116500, 118580, 116498, 122740, 118578, 122738, 99860, 101940, 99858, 106100, 101938, 114420 ]), $a([ 128352, 129720, 125504, 128304, 129692, 125472, 128280, 129678, 125456, 128268, 125448, 128262, 125444, 125792, 128440, 129758, 120384, 125744, 128412, 120352, 125720, 128398, 120336, 125708, 120328, 125702, 120324, 120672, 125880, 128478, 110144, 120624, 125852, 110112, 120600, 125838, 110096, 120588, 110088, 120582, 110084, 110432, 120760, 125918, 89664, 110384, 120732, 89632, 110360, 120718, 89616, 110348, 89608, 110342, 89952, 110520, 120798, 89904, 110492, 89880, 110478, 89868, 90040, 110558, 90012, 89998, 125248, 128176, 129628, 125216, 128152, 129614, 125200, 128140, 125192, 128134, 125188, 125186, 119616, 125360, 128220, 119584, 125336, 128206, 119568, 125324, 119560, 125318, 119556, 119554, 108352, 119728, 125404, 108320, 119704, 125390, 108304, 119692, 108296, 119686, 108292, 108290, 85824, 108464, 119772, 85792, 108440, 119758, 85776, 108428, 85768, 108422, 85764, 85936, 108508, 85912, 108494, 85900, 85894, 85980, 85966, 125088, 128088, 129582, 125072, 128076, 125064, 128070, 125060, 125058, 119200, 125144, 128110, 119184, 125132, 119176, 125126, 119172, 119170, 107424, 119256, 125166, 107408, 119244, 107400, 119238, 107396, 107394, 83872, 107480, 119278, 83856, 107468, 83848, 107462, 83844, 83842, 83928, 107502, 83916, 83910, 83950, 125008, 128044, 125e3, 128038, 124996, 124994, 118992, 125036, 118984, 125030, 118980, 118978, 106960, 119020, 106952, 119014, 106948, 106946, 82896, 106988, 82888, 106982, 82884, 82882, 82924, 82918, 124968, 128022, 124964, 124962, 118888, 124982, 118884, 118882, 106728, 118902, 106724, 106722, 82408, 106742, 82404, 82402, 124948, 124946, 118836, 118834, 106612, 106610, 124224, 127664, 129372, 124192, 127640, 129358, 124176, 127628, 124168, 127622, 124164, 124162, 117568, 124336, 127708, 117536, 124312, 127694, 117520, 124300, 117512, 124294, 117508, 117506, 104256, 117680, 124380, 104224, 117656, 124366, 104208, 117644, 104200, 117638, 104196, 104194, 77632, 104368, 117724, 77600, 104344, 117710, 77584, 104332, 77576, 104326, 77572, 77744, 104412, 77720, 104398, 77708, 77702, 77788, 77774, 128672, 129880, 93168, 128656, 129868, 92664, 128648, 129862, 92412, 128644, 128642, 124064, 127576, 129326, 126368, 124048, 129902, 126352, 128716, 127558, 126344, 124036, 126340, 124034, 126338, 117152, 124120, 127598, 121760, 117136, 124108, 121744, 126412, 124102, 121736, 117124, 121732, 117122, 121730, 103328, 117208, 124142, 112544, 103312, 117196, 112528, 121804, 117190, 112520, 103300, 112516, 103298, 112514, 75680, 103384, 117230, 94112, 75664, 103372, 94096, 112588, 103366, 94088, 75652, 94084, 75650, 75736, 103406, 94168, 75724, 94156, 75718, 94150, 75758, 128592, 129836, 91640, 128584, 129830, 91388, 128580, 91262, 128578, 123984, 127532, 126160, 123976, 127526, 126152, 128614, 126148, 123970, 126146, 116944, 124012, 121296, 116936, 124006, 121288, 126182, 121284, 116930, 121282, 102864, 116972, 111568, 102856, 116966, 111560, 121318, 111556, 102850, 111554, 74704, 102892, 92112, 74696, 102886, 92104, 111590, 92100, 74690, 92098, 74732, 92140, 74726, 92134, 128552, 129814, 90876, 128548, 90750, 128546, 123944, 127510, 126056, 128566, 126052, 123938, 126050, 116840, 123958, 121064, 116836, 121060, 116834, 121058, 102632, 116854, 111080, 121078, 111076, 102626, 111074, 74216, 102646, 91112, 74212, 91108, 74210, 91106, 74230, 91126, 128532, 90494, 128530, 123924, 126004, 123922, 126002, 116788, 120948, 116786, 120946, 102516, 110836, 102514, 110834, 73972, 90612, 73970, 90610, 128522, 123914, 125978, 116762, 120890, 102458, 110714, 123552, 127320, 129198, 123536, 127308, 123528, 127302, 123524, 123522, 116128, 123608, 127342, 116112, 123596, 116104, 123590, 116100, 116098, 101280, 116184, 123630, 101264, 116172, 101256, 116166, 101252, 101250, 71584, 101336, 116206, 71568, 101324, 71560, 101318, 71556, 71554, 71640, 101358, 71628, 71622, 71662, 127824, 129452, 79352, 127816, 129446, 79100, 127812, 78974, 127810, 123472, 127276, 124624, 123464, 127270, 124616, 127846, 124612, 123458, 124610, 115920, 123500, 118224, 115912, 123494, 118216, 124646, 118212, 115906, 118210, 100816, 115948, 105424, 100808, 115942, 105416, 118246, 105412, 100802, 105410, 70608, 100844, 79824, 70600, 100838, 79816, 105446, 79812, 70594, 79810, 70636, 79852, 70630, 79846, 129960, 95728, 113404, 129956, 95480, 113278, 129954, 95356, 95294, 127784, 129430, 78588, 128872, 129974, 95996, 78462, 128868, 127778, 95870, 128866, 123432, 127254, 124520, 123428, 126696, 128886, 123426, 126692, 124514, 126690, 115816, 123446, 117992, 115812, 122344, 117988, 115810, 122340, 117986, 122338, 100584, 115830, 104936, 100580, 113640, 104932, 100578, 113636, 104930, 113634, 70120, 100598, 78824, 70116, 96232, 78820, 70114, 96228, 78818, 96226, 70134, 78838, 129940, 94968, 113022, 129938, 94844, 94782, 127764, 78206, 128820, 127762, 95102, 128818, 123412, 124468, 123410, 126580, 124466, 126578, 115764, 117876, 115762, 122100, 117874, 122098, 100468, 104692, 100466, 113140, 104690, 113138, 69876, 78324, 69874, 95220, 78322, 95218, 129930, 94588, 94526, 127754, 128794, 123402, 124442, 126522, 115738, 117818, 121978, 100410, 104570, 112890, 69754, 78074, 94714, 94398, 123216, 127148, 123208, 127142, 123204, 123202, 115408, 123244, 115400, 123238, 115396, 115394, 99792, 115436, 99784, 115430, 99780, 99778, 68560, 99820, 68552, 99814, 68548, 68546, 68588, 68582, 127400, 129238, 72444, 127396, 72318, 127394, 123176, 127126, 123752, 123172, 123748, 123170, 123746, 115304, 123190, 116456, 115300, 116452, 115298, 116450, 99560, 115318, 101864, 99556, 101860, 99554, 101858, 68072, 99574, 72680, 68068, 72676, 68066, 72674, 68086, 72694, 129492, 80632, 105854, 129490, 80508, 80446, 127380, 72062, 127924, 127378, 80766, 127922, 123156, 123700, 123154, 124788, 123698, 124786, 115252, 116340, 115250, 118516, 116338, 118514, 99444, 101620, 99442, 105972, 101618, 105970, 67828, 72180, 67826, 80884, 72178, 80882, 97008, 114044, 96888, 113982, 96828, 96798, 129482, 80252, 130010, 97148, 80190, 97086, 127370, 127898, 128954, 123146, 123674, 124730, 126842, 115226, 116282, 118394, 122618, 99386, 101498, 105722, 114170, 67706, 71930, 80378, 96632, 113854, 96572, 96542, 80062, 96702, 96444, 96414, 96350, 123048, 123044, 123042, 115048, 123062, 115044, 115042, 99048, 115062, 99044, 99042, 67048, 99062, 67044, 67042, 67062, 127188, 68990, 127186, 123028, 123316, 123026, 123314, 114996, 115572, 114994, 115570, 98932, 100084, 98930, 100082, 66804, 69108, 66802, 69106, 129258, 73084, 73022, 127178, 127450, 123018, 123290, 123834, 114970, 115514, 116602, 98874, 99962, 102138, 66682, 68858, 73210, 81272, 106174, 81212, 81182, 72894, 81342, 97648, 114364, 97592, 114334, 97564, 97550, 81084, 97724, 81054, 97694, 97464, 114270, 97436, 97422, 80990, 97502, 97372, 97358, 97326, 114868, 114866, 98676, 98674, 66292, 66290, 123098, 114842, 115130, 98618, 99194, 66170, 67322, 69310, 73404, 73374, 81592, 106334, 81564, 81550, 73310, 81630, 97968, 114524, 97944, 114510, 97932, 97926, 81500, 98012, 81486, 97998, 97880, 114478, 97868, 97862, 81454, 97902, 97836, 97830, 69470, 73564, 73550, 81752, 106414, 81740, 81734, 73518, 81774, 81708, 81702 ]), $a([ 109536, 120312, 86976, 109040, 120060, 86496, 108792, 119934, 86256, 108668, 86136, 129744, 89056, 110072, 129736, 88560, 109820, 129732, 88312, 109694, 129730, 88188, 128464, 129772, 89592, 128456, 129766, 89340, 128452, 89214, 128450, 125904, 128492, 125896, 128486, 125892, 125890, 120784, 125932, 120776, 125926, 120772, 120770, 110544, 120812, 110536, 120806, 110532, 84928, 108016, 119548, 84448, 107768, 119422, 84208, 107644, 84088, 107582, 84028, 129640, 85488, 108284, 129636, 85240, 108158, 129634, 85116, 85054, 128232, 129654, 85756, 128228, 85630, 128226, 125416, 128246, 125412, 125410, 119784, 125430, 119780, 119778, 108520, 119798, 108516, 108514, 83424, 107256, 119166, 83184, 107132, 83064, 107070, 83004, 82974, 129588, 83704, 107390, 129586, 83580, 83518, 128116, 83838, 128114, 125172, 125170, 119284, 119282, 107508, 107506, 82672, 106876, 82552, 106814, 82492, 82462, 129562, 82812, 82750, 128058, 125050, 119034, 82296, 106686, 82236, 82206, 82366, 82108, 82078, 76736, 103920, 117500, 76256, 103672, 117374, 76016, 103548, 75896, 103486, 75836, 129384, 77296, 104188, 129380, 77048, 104062, 129378, 76924, 76862, 127720, 129398, 77564, 127716, 77438, 127714, 124392, 127734, 124388, 124386, 117736, 124406, 117732, 117730, 104424, 117750, 104420, 104418, 112096, 121592, 126334, 92608, 111856, 121468, 92384, 111736, 121406, 92272, 111676, 92216, 111646, 92188, 75232, 103160, 117118, 93664, 74992, 103036, 93424, 112252, 102974, 93304, 74812, 93244, 74782, 93214, 129332, 75512, 103294, 129908, 129330, 93944, 75388, 129906, 93820, 75326, 93758, 127604, 75646, 128756, 127602, 94078, 128754, 124148, 126452, 124146, 126450, 117236, 121844, 117234, 121842, 103412, 103410, 91584, 111344, 121212, 91360, 111224, 121150, 91248, 111164, 91192, 111134, 91164, 91150, 74480, 102780, 91888, 74360, 102718, 91768, 111422, 91708, 74270, 91678, 129306, 74620, 129850, 92028, 74558, 91966, 127546, 128634, 124026, 126202, 116986, 121338, 102906, 90848, 110968, 121022, 90736, 110908, 90680, 110878, 90652, 90638, 74104, 102590, 91e3, 74044, 90940, 74014, 90910, 74174, 91070, 90480, 110780, 90424, 110750, 90396, 90382, 73916, 90556, 73886, 90526, 90296, 110686, 90268, 90254, 73822, 90334, 90204, 90190, 71136, 101112, 116094, 70896, 100988, 70776, 100926, 70716, 70686, 129204, 71416, 101246, 129202, 71292, 71230, 127348, 71550, 127346, 123636, 123634, 116212, 116210, 101364, 101362, 79296, 105200, 118140, 79072, 105080, 118078, 78960, 105020, 78904, 104990, 78876, 78862, 70384, 100732, 79600, 70264, 100670, 79480, 105278, 79420, 70174, 79390, 129178, 70524, 129466, 79740, 70462, 79678, 127290, 127866, 123514, 124666, 115962, 118266, 100858, 113376, 122232, 126654, 95424, 113264, 122172, 95328, 113208, 122142, 95280, 113180, 95256, 113166, 95244, 78560, 104824, 117950, 95968, 78448, 104764, 95856, 113468, 104734, 95800, 78364, 95772, 78350, 95758, 70008, 100542, 78712, 69948, 96120, 78652, 69918, 96060, 78622, 96030, 70078, 78782, 96190, 94912, 113008, 122044, 94816, 112952, 122014, 94768, 112924, 94744, 112910, 94732, 94726, 78192, 104636, 95088, 78136, 104606, 95032, 113054, 95004, 78094, 94990, 69820, 78268, 69790, 95164, 78238, 95134, 94560, 112824, 121950, 94512, 112796, 94488, 112782, 94476, 94470, 78008, 104542, 94648, 77980, 94620, 77966, 94606, 69726, 78046, 94686, 94384, 112732, 94360, 112718, 94348, 94342, 77916, 94428, 77902, 94414, 94296, 112686, 94284, 94278, 77870, 94318, 94252, 94246, 68336, 99708, 68216, 99646, 68156, 68126, 68476, 68414, 127162, 123258, 115450, 99834, 72416, 101752, 116414, 72304, 101692, 72248, 101662, 72220, 72206, 67960, 99518, 72568, 67900, 72508, 67870, 72478, 68030, 72638, 80576, 105840, 118460, 80480, 105784, 118430, 80432, 105756, 80408, 105742, 80396, 80390, 72048, 101564, 80752, 71992, 101534, 80696, 71964, 80668, 71950, 80654, 67772, 72124, 67742, 80828, 72094, 80798, 114016, 122552, 126814, 96832, 113968, 122524, 96800, 113944, 122510, 96784, 113932, 96776, 113926, 96772, 80224, 105656, 118366, 97120, 80176, 105628, 97072, 114076, 105614, 97048, 80140, 97036, 80134, 97030, 71864, 101470, 80312, 71836, 97208, 80284, 71822, 97180, 80270, 97166, 67678, 71902, 80350, 97246, 96576, 113840, 122460, 96544, 113816, 122446, 96528, 113804, 96520, 113798, 96516, 96514, 80048, 105564, 96688, 80024, 105550, 96664, 113870, 96652, 80006, 96646, 71772, 80092, 71758, 96732, 80078, 96718, 96416, 113752, 122414, 96400, 113740, 96392, 113734, 96388, 96386, 79960, 105518, 96472, 79948, 96460, 79942, 96454, 71726, 79982, 96494, 96336, 113708, 96328, 113702, 96324, 96322, 79916, 96364, 79910, 96358, 96296, 113686, 96292, 96290, 79894, 96310, 66936, 99006, 66876, 66846, 67006, 68976, 100028, 68920, 99998, 68892, 68878, 66748, 69052, 66718, 69022, 73056, 102072, 116574, 73008, 102044, 72984, 102030, 72972, 72966, 68792, 99934, 73144, 68764, 73116, 68750, 73102, 66654, 68830, 73182, 81216, 106160, 118620, 81184, 106136, 118606, 81168, 106124, 81160, 106118, 81156, 81154, 72880, 101980, 81328, 72856, 101966, 81304, 106190, 81292, 72838, 81286, 68700, 72924, 68686, 81372, 72910, 81358, 114336, 122712, 126894, 114320, 122700, 114312, 122694, 114308, 114306, 81056, 106072, 118574, 97696, 81040, 106060, 97680, 114380, 106054, 97672, 81028, 97668, 81026, 97666, 72792, 101934, 81112, 72780, 97752, 81100, 72774, 97740, 81094, 97734, 68654, 72814, 81134, 97774, 114256, 122668, 114248, 122662, 114244, 114242, 80976, 106028, 97488, 80968, 106022, 97480, 114278, 97476, 80962, 97474, 72748, 81004, 72742, 97516, 80998, 97510, 114216, 122646, 114212, 114210, 80936, 106006, 97384, 80932, 97380, 80930, 97378, 72726, 80950, 97398, 114196, 114194, 80916, 97332, 80914, 97330, 66236, 66206, 67256, 99166, 67228, 67214, 66142, 67294, 69296, 100188, 69272, 100174, 69260, 69254, 67164, 69340, 67150, 69326, 73376, 102232, 116654, 73360, 102220, 73352, 102214, 73348, 73346, 69208, 100142, 73432, 102254, 73420, 69190, 73414, 67118, 69230, 73454, 106320, 118700, 106312, 118694, 106308, 106306, 73296, 102188, 81616, 106348, 102182, 81608, 73284, 81604, 73282, 81602, 69164, 73324, 69158, 81644, 73318, 81638, 122792, 126934, 122788, 122786, 106280, 118678, 114536, 106276, 114532, 106274, 114530, 73256, 102166, 81512, 73252, 98024, 81508, 73250, 98020, 81506, 98018, 69142, 73270, 81526, 98038, 122772, 122770, 106260, 114484, 106258, 114482, 73236, 81460, 73234, 97908, 81458, 97906, 122762, 106250, 114458, 73226, 81434, 97850, 66396, 66382, 67416, 99246, 67404, 67398, 66350, 67438, 69456, 100268, 69448, 100262, 69444, 69442, 67372, 69484, 67366, 69478, 102312, 116694, 102308, 102306, 69416, 100246, 73576, 102326, 73572, 69410, 73570, 67350, 69430, 73590, 118740, 118738, 102292, 106420, 102290, 106418, 69396, 73524, 69394, 81780, 73522, 81778, 118730, 102282, 106394, 69386, 73498, 81722, 66476, 66470, 67496, 99286, 67492, 67490, 66454, 67510, 100308, 100306, 67476, 69556, 67474, 69554, 116714 ]) ]); + var _Dg = $k[--$j]; //#15679 + var _Dh = $k[--$j]; //#15679 + $k[$j++] = _Dh; //#15683 + $k[$j++] = _Dg; //#15683 + if ((_Dg != 0) && (_Dh != 0)) { //#15682 + var _Dk = $get($1.rslog, $k[--$j]); //#15680 + var _Dp = $get($1.rsalog, $f(_Dk + $get($1.rslog, $k[--$j])) % 928); //#15680 + $k[$j++] = _Dp; //#15680 + } else { //#15682 + $j -= 2; //#15682 + $k[$j++] = 0; //#15682 + } //#15682 + }; //#15684 + $k[$j++] = Infinity; //#15687 + $k[$j++] = 1; //#15687 + for (var _Dr = 0, _Ds = $1.k; _Dr < _Ds; _Dr++) { //#15687 + $k[$j++] = 0; //#15687 + } //#15687 + $1.coeffs = $a(); //#15687 + for (var _Dw = 1, _Dv = $1.k; _Dw <= _Dv; _Dw += 1) { //#15696 + $1.i = _Dw; //#15689 + $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); //#15690 + for (var _E3 = $1.i - 1; _E3 >= 1; _E3 -= 1) { //#15694 + $1.j = _E3; //#15692 + $k[$j++] = $1.coeffs; //#15693 + $k[$j++] = $1.j; //#15693 + $k[$j++] = $get($1.coeffs, $1.j - 1); //#15693 + $k[$j++] = $get($1.coeffs, $1.j); //#15693 + $k[$j++] = $get($1.rsalog, $1.i); //#15693 + $1.rsprod(); //#15693 + var _EF = $k[--$j]; //#15693 + var _EG = $k[--$j]; //#15693 + var _EH = $k[--$j]; //#15693 + $put($k[--$j], _EH, $f(_EG + _EF) % 929); //#15693 + } //#15693 + $k[$j++] = $1.coeffs; //#15695 + $k[$j++] = 0; //#15695 + $k[$j++] = $get($1.coeffs, 0); //#15695 + $k[$j++] = $get($1.rsalog, $1.i); //#15695 + $1.rsprod(); //#15695 + var _EP = $k[--$j]; //#15695 + var _EQ = $k[--$j]; //#15695 + $put($k[--$j], _EQ, _EP); //#15695 + } //#15695 + $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); //#15697 + for (var _EW = $1.coeffs.length - 1; _EW >= 0; _EW -= 2) { //#15698 + var _EX = $1.coeffs; //#15698 + $put(_EX, _EW, $f(929 - $get(_EX, _EW))); //#15698 + } //#15698 + for (var _Eb = 0, _Ea = $f($1.n - 1); _Eb <= _Ea; _Eb += 1) { //#15707 + $1.t = $f($get($1.cws, _Eb) + $get($1.cws, $1.n)) % 929; //#15702 + for (var _Ej = 0, _Ei = $1.k - 1; _Ej <= _Ei; _Ej += 1) { //#15706 + $1.j = _Ej; //#15704 + $put($1.cws, $f($1.n + $1.j), ($f($get($1.cws, $f($f($1.n + $1.j) + 1)) + ($f(929 - (($1.t * $get($1.coeffs, ($1.k - $1.j) - 1)) % 929))))) % 929); //#15705 + } //#15705 + } //#15705 + for (var _F0 = $1.n, _Ez = $f($1.n + $1.k); _F0 <= _Ez; _F0 += 1) { //#15708 + $put($1.cws, _F0, $f(929 - $get($1.cws, _F0)) % 929); //#15708 + } //#15708 + $1.cws = $geti($1.cws, 0, $1.cws.length - 1); //#15711 + $1.clusters = $a([$a([120256, 125680, 128380, 120032, 125560, 128318, 108736, 119920, 108640, 86080, 108592, 86048, 110016, 120560, 125820, 109792, 120440, 125758, 88256, 109680, 88160, 89536, 110320, 120700, 89312, 110200, 120638, 89200, 110140, 89840, 110460, 89720, 110398, 89980, 128506, 119520, 125304, 128190, 107712, 119408, 125244, 107616, 119352, 84032, 107568, 119324, 84000, 107544, 83984, 108256, 119672, 125374, 85184, 108144, 119612, 85088, 108088, 119582, 85040, 108060, 85728, 108408, 119742, 85616, 108348, 85560, 108318, 85880, 108478, 85820, 85790, 107200, 119152, 125116, 107104, 119096, 125086, 83008, 107056, 119068, 82976, 107032, 82960, 82952, 83648, 107376, 119228, 83552, 107320, 119198, 83504, 107292, 83480, 83468, 83824, 107452, 83768, 107422, 83740, 83900, 106848, 118968, 125022, 82496, 106800, 118940, 82464, 106776, 118926, 82448, 106764, 82440, 106758, 82784, 106936, 119006, 82736, 106908, 82712, 106894, 82700, 82694, 106974, 82830, 82240, 106672, 118876, 82208, 106648, 118862, 82192, 106636, 82184, 106630, 82180, 82352, 82328, 82316, 82080, 118830, 106572, 106566, 82050, 117472, 124280, 127678, 103616, 117360, 124220, 103520, 117304, 124190, 75840, 103472, 75808, 104160, 117624, 124350, 76992, 104048, 117564, 76896, 103992, 76848, 76824, 77536, 104312, 117694, 77424, 104252, 77368, 77340, 77688, 104382, 77628, 77758, 121536, 126320, 128700, 121440, 126264, 128670, 111680, 121392, 126236, 111648, 121368, 126222, 111632, 121356, 103104, 117104, 124092, 112320, 103008, 117048, 124062, 112224, 121656, 126366, 93248, 74784, 102936, 117006, 93216, 112152, 93200, 75456, 103280, 117180, 93888, 75360, 103224, 117150, 93792, 112440, 121758, 93744, 75288, 93720, 75632, 103356, 94064, 75576, 103326, 94008, 112542, 93980, 75708, 94140, 75678, 94110, 121184, 126136, 128606, 111168, 121136, 126108, 111136, 121112, 126094, 111120, 121100, 111112, 111108, 102752, 116920, 123998, 111456, 102704, 116892, 91712, 74272, 121244, 116878, 91680, 74256, 102668, 91664, 111372, 102662, 74244, 74592, 102840, 116958, 92000, 74544, 102812, 91952, 111516, 102798, 91928, 74508, 74502, 74680, 102878, 92088, 74652, 92060, 74638, 92046, 92126, 110912, 121008, 126044, 110880, 120984, 126030, 110864, 120972, 110856, 120966, 110852, 110850, 74048, 102576, 116828, 90944, 74016, 102552, 116814, 90912, 111000, 121038, 90896, 73992, 102534, 90888, 110982, 90884, 74160, 102620, 91056, 74136, 102606, 91032, 111054, 91020, 74118, 91014, 91100, 91086, 110752, 120920, 125998, 110736, 120908, 110728, 120902, 110724, 110722, 73888, 102488, 116782, 90528, 73872, 102476, 90512, 110796, 102470, 90504, 73860, 90500, 73858, 73944, 90584, 90572, 90566, 120876, 120870, 110658, 102444, 73800, 90312, 90308, 90306, 101056, 116080, 123580, 100960, 116024, 70720, 100912, 115996, 70688, 100888, 70672, 70664, 71360, 101232, 116156, 71264, 101176, 116126, 71216, 101148, 71192, 71180, 71536, 101308, 71480, 101278, 71452, 71612, 71582, 118112, 124600, 127838, 105024, 118064, 124572, 104992, 118040, 124558, 104976, 118028, 104968, 118022, 100704, 115896, 123486, 105312, 100656, 115868, 79424, 70176, 118172, 115854, 79392, 105240, 100620, 79376, 70152, 79368, 70496, 100792, 115934, 79712, 70448, 118238, 79664, 105372, 100750, 79640, 70412, 79628, 70584, 100830, 79800, 70556, 79772, 70542, 70622, 79838, 122176, 126640, 128860, 122144, 126616, 128846, 122128, 126604, 122120, 126598, 122116, 104768, 117936, 124508, 113472, 104736, 126684, 124494, 113440, 122264, 126670, 113424, 104712, 117894, 113416, 122246, 104706, 69952, 100528, 115804, 78656, 69920, 100504, 115790, 96064, 78624, 104856, 117966, 96032, 113560, 122318, 100486, 96016, 78600, 104838, 96008, 69890, 70064, 100572, 78768, 70040, 100558, 96176, 78744, 104910, 96152, 113614, 70022, 78726, 70108, 78812, 70094, 96220, 78798, 122016, 126552, 128814, 122000, 126540, 121992, 126534, 121988, 121986, 104608, 117848, 124462, 113056, 104592, 126574, 113040, 122060, 117830, 113032, 104580, 113028, 104578, 113026, 69792, 100440, 115758, 78240, 69776, 100428, 95136, 78224, 104652, 100422, 95120, 113100, 69764, 95112, 78212, 69762, 78210, 69848, 100462, 78296, 69836, 95192, 78284, 69830, 95180, 78278, 69870, 95214, 121936, 126508, 121928, 126502, 121924, 121922, 104528, 117804, 112848, 104520, 117798, 112840, 121958, 112836, 104514, 112834, 69712, 100396, 78032, 69704, 100390, 94672, 78024, 104550, 94664, 112870, 69698, 94660, 78018, 94658, 78060, 94700, 94694, 126486, 121890, 117782, 104484, 104482, 69672, 77928, 94440, 69666, 77922, 99680, 68160, 99632, 68128, 99608, 115342, 68112, 99596, 68104, 99590, 68448, 99768, 115422, 68400, 99740, 68376, 99726, 68364, 68358, 68536, 99806, 68508, 68494, 68574, 101696, 116400, 123740, 101664, 116376, 101648, 116364, 101640, 116358, 101636, 67904, 99504, 115292, 72512, 67872, 116444, 115278, 72480, 101784, 116430, 72464, 67848, 99462, 72456, 101766, 67842, 68016, 99548, 72624, 67992, 99534, 72600, 101838, 72588, 67974, 68060, 72668, 68046, 72654, 118432, 124760, 127918, 118416, 124748, 118408, 124742, 118404, 118402, 101536, 116312, 105888, 101520, 116300, 105872, 118476, 116294, 105864, 101508, 105860, 101506, 105858, 67744, 99416, 72096, 67728, 116334, 80800, 72080, 101580, 99398, 80784, 105932, 67716, 80776, 72068, 67714, 72066, 67800, 99438, 72152, 67788, 80856, 72140, 67782, 80844, 72134, 67822, 72174, 80878, 126800, 128940, 126792, 128934, 126788, 126786, 118352, 124716, 122576, 126828, 124710, 122568, 126822, 122564, 118338, 122562, 101456, 116268, 105680, 101448, 116262, 114128, 105672, 118374, 114120, 122598, 101442, 114116, 105666, 114114, 67664, 99372, 71888, 67656, 99366, 80336, 71880, 101478, 97232, 80328, 105702, 67650, 97224, 114150, 71874, 97220, 67692, 71916, 67686, 80364, 71910, 97260, 80358, 97254, 126760, 128918, 126756, 126754, 118312, 124694, 122472, 126774, 122468, 118306, 122466, 101416, 116246, 105576, 101412, 113896, 105572, 101410, 113892, 105570, 113890, 67624, 99350, 71784, 101430, 80104, 71780, 67618, 96744, 80100, 71778, 96740, 80098, 96738, 71798, 96758, 126738, 122420, 122418, 105524, 113780, 113778, 71732, 79988, 96500, 96498, 66880, 66848, 98968, 66832, 66824, 66820, 66992, 66968, 66956, 66950, 67036, 67022, 100000, 99984, 115532, 99976, 115526, 99972, 99970, 66720, 98904, 69024, 100056, 98892, 69008, 100044, 69000, 100038, 68996, 66690, 68994, 66776, 98926, 69080, 100078, 69068, 66758, 69062, 66798, 69102, 116560, 116552, 116548, 116546, 99920, 102096, 116588, 115494, 102088, 116582, 102084, 99906, 102082, 66640, 68816, 66632, 98854, 73168, 68808, 66628, 73160, 68804, 66626, 73156, 68802, 66668, 68844, 66662, 73196, 68838, 73190, 124840, 124836, 124834, 116520, 118632, 124854, 118628, 116514, 118626, 99880, 115478, 101992, 116534, 106216, 101988, 99874, 106212, 101986, 106210, 66600, 98838, 68712, 99894, 72936, 68708, 66594, 81384, 72932, 68706, 81380, 72930, 66614, 68726, 72950, 81398, 128980, 128978, 124820, 126900, 124818, 126898, 116500, 118580, 116498, 122740, 118578, 122738, 99860, 101940, 99858, 106100, 101938, 114420]), $a([128352, 129720, 125504, 128304, 129692, 125472, 128280, 129678, 125456, 128268, 125448, 128262, 125444, 125792, 128440, 129758, 120384, 125744, 128412, 120352, 125720, 128398, 120336, 125708, 120328, 125702, 120324, 120672, 125880, 128478, 110144, 120624, 125852, 110112, 120600, 125838, 110096, 120588, 110088, 120582, 110084, 110432, 120760, 125918, 89664, 110384, 120732, 89632, 110360, 120718, 89616, 110348, 89608, 110342, 89952, 110520, 120798, 89904, 110492, 89880, 110478, 89868, 90040, 110558, 90012, 89998, 125248, 128176, 129628, 125216, 128152, 129614, 125200, 128140, 125192, 128134, 125188, 125186, 119616, 125360, 128220, 119584, 125336, 128206, 119568, 125324, 119560, 125318, 119556, 119554, 108352, 119728, 125404, 108320, 119704, 125390, 108304, 119692, 108296, 119686, 108292, 108290, 85824, 108464, 119772, 85792, 108440, 119758, 85776, 108428, 85768, 108422, 85764, 85936, 108508, 85912, 108494, 85900, 85894, 85980, 85966, 125088, 128088, 129582, 125072, 128076, 125064, 128070, 125060, 125058, 119200, 125144, 128110, 119184, 125132, 119176, 125126, 119172, 119170, 107424, 119256, 125166, 107408, 119244, 107400, 119238, 107396, 107394, 83872, 107480, 119278, 83856, 107468, 83848, 107462, 83844, 83842, 83928, 107502, 83916, 83910, 83950, 125008, 128044, 125000, 128038, 124996, 124994, 118992, 125036, 118984, 125030, 118980, 118978, 106960, 119020, 106952, 119014, 106948, 106946, 82896, 106988, 82888, 106982, 82884, 82882, 82924, 82918, 124968, 128022, 124964, 124962, 118888, 124982, 118884, 118882, 106728, 118902, 106724, 106722, 82408, 106742, 82404, 82402, 124948, 124946, 118836, 118834, 106612, 106610, 124224, 127664, 129372, 124192, 127640, 129358, 124176, 127628, 124168, 127622, 124164, 124162, 117568, 124336, 127708, 117536, 124312, 127694, 117520, 124300, 117512, 124294, 117508, 117506, 104256, 117680, 124380, 104224, 117656, 124366, 104208, 117644, 104200, 117638, 104196, 104194, 77632, 104368, 117724, 77600, 104344, 117710, 77584, 104332, 77576, 104326, 77572, 77744, 104412, 77720, 104398, 77708, 77702, 77788, 77774, 128672, 129880, 93168, 128656, 129868, 92664, 128648, 129862, 92412, 128644, 128642, 124064, 127576, 129326, 126368, 124048, 129902, 126352, 128716, 127558, 126344, 124036, 126340, 124034, 126338, 117152, 124120, 127598, 121760, 117136, 124108, 121744, 126412, 124102, 121736, 117124, 121732, 117122, 121730, 103328, 117208, 124142, 112544, 103312, 117196, 112528, 121804, 117190, 112520, 103300, 112516, 103298, 112514, 75680, 103384, 117230, 94112, 75664, 103372, 94096, 112588, 103366, 94088, 75652, 94084, 75650, 75736, 103406, 94168, 75724, 94156, 75718, 94150, 75758, 128592, 129836, 91640, 128584, 129830, 91388, 128580, 91262, 128578, 123984, 127532, 126160, 123976, 127526, 126152, 128614, 126148, 123970, 126146, 116944, 124012, 121296, 116936, 124006, 121288, 126182, 121284, 116930, 121282, 102864, 116972, 111568, 102856, 116966, 111560, 121318, 111556, 102850, 111554, 74704, 102892, 92112, 74696, 102886, 92104, 111590, 92100, 74690, 92098, 74732, 92140, 74726, 92134, 128552, 129814, 90876, 128548, 90750, 128546, 123944, 127510, 126056, 128566, 126052, 123938, 126050, 116840, 123958, 121064, 116836, 121060, 116834, 121058, 102632, 116854, 111080, 121078, 111076, 102626, 111074, 74216, 102646, 91112, 74212, 91108, 74210, 91106, 74230, 91126, 128532, 90494, 128530, 123924, 126004, 123922, 126002, 116788, 120948, 116786, 120946, 102516, 110836, 102514, 110834, 73972, 90612, 73970, 90610, 128522, 123914, 125978, 116762, 120890, 102458, 110714, 123552, 127320, 129198, 123536, 127308, 123528, 127302, 123524, 123522, 116128, 123608, 127342, 116112, 123596, 116104, 123590, 116100, 116098, 101280, 116184, 123630, 101264, 116172, 101256, 116166, 101252, 101250, 71584, 101336, 116206, 71568, 101324, 71560, 101318, 71556, 71554, 71640, 101358, 71628, 71622, 71662, 127824, 129452, 79352, 127816, 129446, 79100, 127812, 78974, 127810, 123472, 127276, 124624, 123464, 127270, 124616, 127846, 124612, 123458, 124610, 115920, 123500, 118224, 115912, 123494, 118216, 124646, 118212, 115906, 118210, 100816, 115948, 105424, 100808, 115942, 105416, 118246, 105412, 100802, 105410, 70608, 100844, 79824, 70600, 100838, 79816, 105446, 79812, 70594, 79810, 70636, 79852, 70630, 79846, 129960, 95728, 113404, 129956, 95480, 113278, 129954, 95356, 95294, 127784, 129430, 78588, 128872, 129974, 95996, 78462, 128868, 127778, 95870, 128866, 123432, 127254, 124520, 123428, 126696, 128886, 123426, 126692, 124514, 126690, 115816, 123446, 117992, 115812, 122344, 117988, 115810, 122340, 117986, 122338, 100584, 115830, 104936, 100580, 113640, 104932, 100578, 113636, 104930, 113634, 70120, 100598, 78824, 70116, 96232, 78820, 70114, 96228, 78818, 96226, 70134, 78838, 129940, 94968, 113022, 129938, 94844, 94782, 127764, 78206, 128820, 127762, 95102, 128818, 123412, 124468, 123410, 126580, 124466, 126578, 115764, 117876, 115762, 122100, 117874, 122098, 100468, 104692, 100466, 113140, 104690, 113138, 69876, 78324, 69874, 95220, 78322, 95218, 129930, 94588, 94526, 127754, 128794, 123402, 124442, 126522, 115738, 117818, 121978, 100410, 104570, 112890, 69754, 78074, 94714, 94398, 123216, 127148, 123208, 127142, 123204, 123202, 115408, 123244, 115400, 123238, 115396, 115394, 99792, 115436, 99784, 115430, 99780, 99778, 68560, 99820, 68552, 99814, 68548, 68546, 68588, 68582, 127400, 129238, 72444, 127396, 72318, 127394, 123176, 127126, 123752, 123172, 123748, 123170, 123746, 115304, 123190, 116456, 115300, 116452, 115298, 116450, 99560, 115318, 101864, 99556, 101860, 99554, 101858, 68072, 99574, 72680, 68068, 72676, 68066, 72674, 68086, 72694, 129492, 80632, 105854, 129490, 80508, 80446, 127380, 72062, 127924, 127378, 80766, 127922, 123156, 123700, 123154, 124788, 123698, 124786, 115252, 116340, 115250, 118516, 116338, 118514, 99444, 101620, 99442, 105972, 101618, 105970, 67828, 72180, 67826, 80884, 72178, 80882, 97008, 114044, 96888, 113982, 96828, 96798, 129482, 80252, 130010, 97148, 80190, 97086, 127370, 127898, 128954, 123146, 123674, 124730, 126842, 115226, 116282, 118394, 122618, 99386, 101498, 105722, 114170, 67706, 71930, 80378, 96632, 113854, 96572, 96542, 80062, 96702, 96444, 96414, 96350, 123048, 123044, 123042, 115048, 123062, 115044, 115042, 99048, 115062, 99044, 99042, 67048, 99062, 67044, 67042, 67062, 127188, 68990, 127186, 123028, 123316, 123026, 123314, 114996, 115572, 114994, 115570, 98932, 100084, 98930, 100082, 66804, 69108, 66802, 69106, 129258, 73084, 73022, 127178, 127450, 123018, 123290, 123834, 114970, 115514, 116602, 98874, 99962, 102138, 66682, 68858, 73210, 81272, 106174, 81212, 81182, 72894, 81342, 97648, 114364, 97592, 114334, 97564, 97550, 81084, 97724, 81054, 97694, 97464, 114270, 97436, 97422, 80990, 97502, 97372, 97358, 97326, 114868, 114866, 98676, 98674, 66292, 66290, 123098, 114842, 115130, 98618, 99194, 66170, 67322, 69310, 73404, 73374, 81592, 106334, 81564, 81550, 73310, 81630, 97968, 114524, 97944, 114510, 97932, 97926, 81500, 98012, 81486, 97998, 97880, 114478, 97868, 97862, 81454, 97902, 97836, 97830, 69470, 73564, 73550, 81752, 106414, 81740, 81734, 73518, 81774, 81708, 81702]), $a([109536, 120312, 86976, 109040, 120060, 86496, 108792, 119934, 86256, 108668, 86136, 129744, 89056, 110072, 129736, 88560, 109820, 129732, 88312, 109694, 129730, 88188, 128464, 129772, 89592, 128456, 129766, 89340, 128452, 89214, 128450, 125904, 128492, 125896, 128486, 125892, 125890, 120784, 125932, 120776, 125926, 120772, 120770, 110544, 120812, 110536, 120806, 110532, 84928, 108016, 119548, 84448, 107768, 119422, 84208, 107644, 84088, 107582, 84028, 129640, 85488, 108284, 129636, 85240, 108158, 129634, 85116, 85054, 128232, 129654, 85756, 128228, 85630, 128226, 125416, 128246, 125412, 125410, 119784, 125430, 119780, 119778, 108520, 119798, 108516, 108514, 83424, 107256, 119166, 83184, 107132, 83064, 107070, 83004, 82974, 129588, 83704, 107390, 129586, 83580, 83518, 128116, 83838, 128114, 125172, 125170, 119284, 119282, 107508, 107506, 82672, 106876, 82552, 106814, 82492, 82462, 129562, 82812, 82750, 128058, 125050, 119034, 82296, 106686, 82236, 82206, 82366, 82108, 82078, 76736, 103920, 117500, 76256, 103672, 117374, 76016, 103548, 75896, 103486, 75836, 129384, 77296, 104188, 129380, 77048, 104062, 129378, 76924, 76862, 127720, 129398, 77564, 127716, 77438, 127714, 124392, 127734, 124388, 124386, 117736, 124406, 117732, 117730, 104424, 117750, 104420, 104418, 112096, 121592, 126334, 92608, 111856, 121468, 92384, 111736, 121406, 92272, 111676, 92216, 111646, 92188, 75232, 103160, 117118, 93664, 74992, 103036, 93424, 112252, 102974, 93304, 74812, 93244, 74782, 93214, 129332, 75512, 103294, 129908, 129330, 93944, 75388, 129906, 93820, 75326, 93758, 127604, 75646, 128756, 127602, 94078, 128754, 124148, 126452, 124146, 126450, 117236, 121844, 117234, 121842, 103412, 103410, 91584, 111344, 121212, 91360, 111224, 121150, 91248, 111164, 91192, 111134, 91164, 91150, 74480, 102780, 91888, 74360, 102718, 91768, 111422, 91708, 74270, 91678, 129306, 74620, 129850, 92028, 74558, 91966, 127546, 128634, 124026, 126202, 116986, 121338, 102906, 90848, 110968, 121022, 90736, 110908, 90680, 110878, 90652, 90638, 74104, 102590, 91000, 74044, 90940, 74014, 90910, 74174, 91070, 90480, 110780, 90424, 110750, 90396, 90382, 73916, 90556, 73886, 90526, 90296, 110686, 90268, 90254, 73822, 90334, 90204, 90190, 71136, 101112, 116094, 70896, 100988, 70776, 100926, 70716, 70686, 129204, 71416, 101246, 129202, 71292, 71230, 127348, 71550, 127346, 123636, 123634, 116212, 116210, 101364, 101362, 79296, 105200, 118140, 79072, 105080, 118078, 78960, 105020, 78904, 104990, 78876, 78862, 70384, 100732, 79600, 70264, 100670, 79480, 105278, 79420, 70174, 79390, 129178, 70524, 129466, 79740, 70462, 79678, 127290, 127866, 123514, 124666, 115962, 118266, 100858, 113376, 122232, 126654, 95424, 113264, 122172, 95328, 113208, 122142, 95280, 113180, 95256, 113166, 95244, 78560, 104824, 117950, 95968, 78448, 104764, 95856, 113468, 104734, 95800, 78364, 95772, 78350, 95758, 70008, 100542, 78712, 69948, 96120, 78652, 69918, 96060, 78622, 96030, 70078, 78782, 96190, 94912, 113008, 122044, 94816, 112952, 122014, 94768, 112924, 94744, 112910, 94732, 94726, 78192, 104636, 95088, 78136, 104606, 95032, 113054, 95004, 78094, 94990, 69820, 78268, 69790, 95164, 78238, 95134, 94560, 112824, 121950, 94512, 112796, 94488, 112782, 94476, 94470, 78008, 104542, 94648, 77980, 94620, 77966, 94606, 69726, 78046, 94686, 94384, 112732, 94360, 112718, 94348, 94342, 77916, 94428, 77902, 94414, 94296, 112686, 94284, 94278, 77870, 94318, 94252, 94246, 68336, 99708, 68216, 99646, 68156, 68126, 68476, 68414, 127162, 123258, 115450, 99834, 72416, 101752, 116414, 72304, 101692, 72248, 101662, 72220, 72206, 67960, 99518, 72568, 67900, 72508, 67870, 72478, 68030, 72638, 80576, 105840, 118460, 80480, 105784, 118430, 80432, 105756, 80408, 105742, 80396, 80390, 72048, 101564, 80752, 71992, 101534, 80696, 71964, 80668, 71950, 80654, 67772, 72124, 67742, 80828, 72094, 80798, 114016, 122552, 126814, 96832, 113968, 122524, 96800, 113944, 122510, 96784, 113932, 96776, 113926, 96772, 80224, 105656, 118366, 97120, 80176, 105628, 97072, 114076, 105614, 97048, 80140, 97036, 80134, 97030, 71864, 101470, 80312, 71836, 97208, 80284, 71822, 97180, 80270, 97166, 67678, 71902, 80350, 97246, 96576, 113840, 122460, 96544, 113816, 122446, 96528, 113804, 96520, 113798, 96516, 96514, 80048, 105564, 96688, 80024, 105550, 96664, 113870, 96652, 80006, 96646, 71772, 80092, 71758, 96732, 80078, 96718, 96416, 113752, 122414, 96400, 113740, 96392, 113734, 96388, 96386, 79960, 105518, 96472, 79948, 96460, 79942, 96454, 71726, 79982, 96494, 96336, 113708, 96328, 113702, 96324, 96322, 79916, 96364, 79910, 96358, 96296, 113686, 96292, 96290, 79894, 96310, 66936, 99006, 66876, 66846, 67006, 68976, 100028, 68920, 99998, 68892, 68878, 66748, 69052, 66718, 69022, 73056, 102072, 116574, 73008, 102044, 72984, 102030, 72972, 72966, 68792, 99934, 73144, 68764, 73116, 68750, 73102, 66654, 68830, 73182, 81216, 106160, 118620, 81184, 106136, 118606, 81168, 106124, 81160, 106118, 81156, 81154, 72880, 101980, 81328, 72856, 101966, 81304, 106190, 81292, 72838, 81286, 68700, 72924, 68686, 81372, 72910, 81358, 114336, 122712, 126894, 114320, 122700, 114312, 122694, 114308, 114306, 81056, 106072, 118574, 97696, 81040, 106060, 97680, 114380, 106054, 97672, 81028, 97668, 81026, 97666, 72792, 101934, 81112, 72780, 97752, 81100, 72774, 97740, 81094, 97734, 68654, 72814, 81134, 97774, 114256, 122668, 114248, 122662, 114244, 114242, 80976, 106028, 97488, 80968, 106022, 97480, 114278, 97476, 80962, 97474, 72748, 81004, 72742, 97516, 80998, 97510, 114216, 122646, 114212, 114210, 80936, 106006, 97384, 80932, 97380, 80930, 97378, 72726, 80950, 97398, 114196, 114194, 80916, 97332, 80914, 97330, 66236, 66206, 67256, 99166, 67228, 67214, 66142, 67294, 69296, 100188, 69272, 100174, 69260, 69254, 67164, 69340, 67150, 69326, 73376, 102232, 116654, 73360, 102220, 73352, 102214, 73348, 73346, 69208, 100142, 73432, 102254, 73420, 69190, 73414, 67118, 69230, 73454, 106320, 118700, 106312, 118694, 106308, 106306, 73296, 102188, 81616, 106348, 102182, 81608, 73284, 81604, 73282, 81602, 69164, 73324, 69158, 81644, 73318, 81638, 122792, 126934, 122788, 122786, 106280, 118678, 114536, 106276, 114532, 106274, 114530, 73256, 102166, 81512, 73252, 98024, 81508, 73250, 98020, 81506, 98018, 69142, 73270, 81526, 98038, 122772, 122770, 106260, 114484, 106258, 114482, 73236, 81460, 73234, 97908, 81458, 97906, 122762, 106250, 114458, 73226, 81434, 97850, 66396, 66382, 67416, 99246, 67404, 67398, 66350, 67438, 69456, 100268, 69448, 100262, 69444, 69442, 67372, 69484, 67366, 69478, 102312, 116694, 102308, 102306, 69416, 100246, 73576, 102326, 73572, 69410, 73570, 67350, 69430, 73590, 118740, 118738, 102292, 106420, 102290, 106418, 69396, 73524, 69394, 81780, 73522, 81778, 118730, 102282, 106394, 69386, 73498, 81722, 66476, 66470, 67496, 99286, 67492, 67490, 66454, 67510, 100308, 100306, 67476, 69556, 67474, 69554, 116714])]); //#15953 $1.cwtobits = function() { - var _FD = $get($1.clusters, $k[--$j]); - $1.v = $get(_FD, $k[--$j]); - $k[$j++] = Infinity; - for (var _FG = 0, _FH = 17; _FG < _FH; _FG++) { - $k[$j++] = 0; - } - var _FK = $cvrs($s(17), $1.v, 2); - for (var _FL = 0, _FM = _FK.length; _FL < _FM; _FL++) { - $k[$j++] = $get(_FK, _FL) - 48; - } - var _FO = $a(); - $k[$j++] = $geti(_FO, _FO.length - 17, 17); - }; - if ($1.compact) { - $1.rwid = $f($f($f(17 * $1.c + 17) + 17) + 1); - } else { - $1.rwid = $f($f($f($f(17 * $1.c + 17) + 17) + 17) + 18); - } - $1.pixs = $a($1.rwid * $1.r); - for (var _FY = 0, _FX = $1.r - 1; _FY <= _FX; _FY += 1) { - $1.i = _FY; - if ($1.i % 3 == 0) { - $1.lcw = ~~($1.i / 3) * 30 + ~~(($1.r - 1) / 3); - $1.rcw = $f($f(~~($1.i / 3) * 30 + $1.c) - 1); - } - if ($1.i % 3 == 1) { - $1.lcw = ~~($1.i / 3) * 30 + $1.eclevel * 3 + ($1.r - 1) % 3; - $1.rcw = ~~($1.i / 3) * 30 + ~~(($1.r - 1) / 3); - } - if ($1.i % 3 == 2) { - $1.lcw = $f($f(~~($1.i / 3) * 30 + $1.c) - 1); - $1.rcw = ~~($1.i / 3) * 30 + $1.eclevel * 3 + ($1.r - 1) % 3; - } - $k[$j++] = $1.pixs; - $k[$j++] = $1.rwid * $1.i; - $k[$j++] = Infinity; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = $1.lcw; - $k[$j++] = $1.i % 3; - $1.cwtobits(); - $forall($k[--$j]); - var _G0 = $geti($1.cws, $1.c * $1.i, $1.c); - for (var _G1 = 0, _G2 = _G0.length; _G1 < _G2; _G1++) { - $k[$j++] = $get(_G0, _G1); - $k[$j++] = $1.i % 3; - $1.cwtobits(); - $forall($k[--$j]); - } - if ($1.compact) { - $k[$j++] = 1; - } else { - $k[$j++] = $1.rcw; - $k[$j++] = $1.i % 3; - $1.cwtobits(); - $forall($k[--$j]); - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 1; - } - var _GA = $a(); - var _GB = $k[--$j]; - $puti($k[--$j], _GB, _GA); - } - var _GK = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", $1.rwid ], [ "pixy", $1.r ], [ "height", $1.r / 72 * $1.rowmult ], [ "width", $1.rwid / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _GK; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var _FD = $get($1.clusters, $k[--$j]); //#15957 + $1.v = $get(_FD, $k[--$j]); //#15957 + $k[$j++] = Infinity; //#15958 + for (var _FG = 0, _FH = 17; _FG < _FH; _FG++) { //#15958 + $k[$j++] = 0; //#15958 + } //#15958 + var _FK = $cvrs($s(17), $1.v, 2); //#15958 + for (var _FL = 0, _FM = _FK.length; _FL < _FM; _FL++) { //#15958 + $k[$j++] = $get(_FK, _FL) - 48; //#15958 + } //#15958 + var _FO = $a(); //#15958 + $k[$j++] = $geti(_FO, _FO.length - 17, 17); //#15959 + }; //#15960 + if ($1.compact) { //#15966 + $1.rwid = $f(($f(($f((17 * $1.c) + 17)) + 17)) + 1); //#15964 + } else { //#15966 + $1.rwid = $f(($f(($f(($f((17 * $1.c) + 17)) + 17)) + 17)) + 18); //#15966 + } //#15966 + $1.pixs = $a($1.rwid * $1.r); //#15968 + for (var _FY = 0, _FX = $1.r - 1; _FY <= _FX; _FY += 1) { //#15998 + $1.i = _FY; //#15971 + if (($1.i % 3) == 0) { //#15976 + $1.lcw = ((~~($1.i / 3)) * 30) + (~~(($1.r - 1) / 3)); //#15974 + $1.rcw = $f(($f(((~~($1.i / 3)) * 30) + $1.c)) - 1); //#15975 + } //#15975 + if (($1.i % 3) == 1) { //#15980 + $1.lcw = (((~~($1.i / 3)) * 30) + ($1.eclevel * 3)) + (($1.r - 1) % 3); //#15978 + $1.rcw = ((~~($1.i / 3)) * 30) + (~~(($1.r - 1) / 3)); //#15979 + } //#15979 + if (($1.i % 3) == 2) { //#15984 + $1.lcw = $f(($f(((~~($1.i / 3)) * 30) + $1.c)) - 1); //#15982 + $1.rcw = (((~~($1.i / 3)) * 30) + ($1.eclevel * 3)) + (($1.r - 1) % 3); //#15983 + } //#15983 + $k[$j++] = $1.pixs; //#15994 + $k[$j++] = $1.rwid * $1.i; //#15994 + $k[$j++] = Infinity; //#15994 + $k[$j++] = 1; //#15988 + $k[$j++] = 1; //#15988 + $k[$j++] = 1; //#15988 + $k[$j++] = 1; //#15988 + $k[$j++] = 1; //#15988 + $k[$j++] = 1; //#15988 + $k[$j++] = 1; //#15988 + $k[$j++] = 1; //#15988 + $k[$j++] = 0; //#15988 + $k[$j++] = 1; //#15988 + $k[$j++] = 0; //#15988 + $k[$j++] = 1; //#15988 + $k[$j++] = 0; //#15988 + $k[$j++] = 1; //#15988 + $k[$j++] = 0; //#15988 + $k[$j++] = 0; //#15988 + $k[$j++] = 0; //#15988 + $k[$j++] = $1.lcw; //#15988 + $k[$j++] = $1.i % 3; //#15988 + $1.cwtobits(); //#15988 + $forall($k[--$j]); //#15988 + var _G0 = $geti($1.cws, $1.c * $1.i, $1.c); //#15989 + for (var _G1 = 0, _G2 = _G0.length; _G1 < _G2; _G1++) { //#15989 + $k[$j++] = $get(_G0, _G1); //#15989 + $k[$j++] = $1.i % 3; //#15989 + $1.cwtobits(); //#15989 + $forall($k[--$j]); //#15989 + } //#15989 + if ($1.compact) { //#15994 + $k[$j++] = 1; //#15991 + } else { //#15994 + $k[$j++] = $1.rcw; //#15993 + $k[$j++] = $1.i % 3; //#15993 + $1.cwtobits(); //#15993 + $forall($k[--$j]); //#15993 + $k[$j++] = 1; //#15994 + $k[$j++] = 1; //#15994 + $k[$j++] = 1; //#15994 + $k[$j++] = 1; //#15994 + $k[$j++] = 1; //#15994 + $k[$j++] = 1; //#15994 + $k[$j++] = 1; //#15994 + $k[$j++] = 0; //#15994 + $k[$j++] = 1; //#15994 + $k[$j++] = 0; //#15994 + $k[$j++] = 0; //#15994 + $k[$j++] = 0; //#15994 + $k[$j++] = 1; //#15994 + $k[$j++] = 0; //#15994 + $k[$j++] = 1; //#15994 + $k[$j++] = 0; //#15994 + $k[$j++] = 0; //#15994 + $k[$j++] = 1; //#15994 + } //#15994 + var _GA = $a(); //#15994 + var _GB = $k[--$j]; //#15996 + $puti($k[--$j], _GB, _GA); //#15996 + } //#15996 + var _GK = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", $1.rwid], + ["pixy", $1.r], + ["height", ($1.r / 72) * $1.rowmult], + ["width", $1.rwid / 72], + ["opt", $1.options] + ]); //#16008 + $k[$j++] = _GK; //#16011 + if (!$1.dontdraw) { //#16011 + $0.renmatrix(); //#16011 + } //#16011 }; $0.pdf417compact = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $put($1.options, "dontdraw", true); - $put($1.options, "compact", true); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.pdf417(); - var _9 = $k[--$j]; - $1[$k[--$j]] = _9; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#16041 + $1.options = $k[--$j]; //#16043 + $1.barcode = $k[--$j]; //#16044 + $1.dontdraw = false; //#16046 + $forall($1.options, function() { //#16057 + var _3 = $k[--$j]; //#16057 + $1[$k[--$j]] = _3; //#16057 + }); //#16057 + $put($1.options, "dontdraw", true); //#16060 + $put($1.options, "compact", true); //#16061 + $k[$j++] = 'args'; //#16063 + $k[$j++] = $1.barcode; //#16063 + $k[$j++] = $1.options; //#16063 + $0.pdf417(); //#16063 + var _9 = $k[--$j]; //#16063 + $1[$k[--$j]] = _9; //#16063 + $put($1.args, "opt", $1.options); //#16065 + $k[$j++] = $1.args; //#16068 + if (!$1.dontdraw) { //#16068 + $0.renmatrix(); //#16068 + } //#16068 }; $0.micropdf417 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.version = "unset"; - $1.columns = 0; - $1.rows = 0; - $1.rowmult = 2; - $1.encoding = "auto"; - $1.cca = false; - $1.ccb = false; - $1.raw = false; - $1.parse = false; - $1.parsefnc = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - if ($ne($1.version, "unset")) { - $search($1.version, "x"); - $j--; - $1.columns = $k[--$j]; - $j--; - $1.rows = $k[--$j]; - } - $1.columns = ~~$z($1.columns); - $1.rows = ~~$z($1.rows); - $1.rowmult = +$1.rowmult; - if ($1.raw) { - $1.encoding = "raw"; - } - if ($1.cca) { - $1.encoding = "cca"; - } - if ($eq($1.encoding, "raw") || $eq($1.encoding, "cca")) { - $1.datcws = $a($1.barcode.length); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.barcode.length) { - break; - } - $1.cw = ~~$z($geti($1.barcode, $1.i + 1, 3)); - $put($1.datcws, $1.j, $1.cw); - $1.i = $1.i + 4; - $1.j = $1.j + 1; - } - $1.datcws = $geti($1.datcws, 0, $1.j); - } - if ($1.ccb) { - $1.encoding = "ccb"; - } + var $1 = {}; //#16098 + $1.options = $k[--$j]; //#16100 + $1.barcode = $k[--$j]; //#16101 + $1.dontdraw = false; //#16103 + $1.version = "unset"; //#16104 + $1.columns = 0; //#16105 + $1.rows = 0; //#16106 + $1.rowmult = 2; //#16107 + $1.encoding = "auto"; //#16108 + $1.cca = false; //#16109 + $1.ccb = false; //#16110 + $1.raw = false; //#16111 + $1.parse = false; //#16112 + $1.parsefnc = false; //#16113 + $forall($1.options, function() { //#16124 + var _3 = $k[--$j]; //#16124 + $1[$k[--$j]] = _3; //#16124 + }); //#16124 + if ($ne($1.version, "unset")) { //#16130 + $search($1.version, "x"); //#16127 + $j--; //#16128 + $1.columns = $k[--$j]; //#16128 + $j--; //#16129 + $1.rows = $k[--$j]; //#16129 + } //#16129 + $1.columns = ~~$z($1.columns); //#16132 + $1.rows = ~~$z($1.rows); //#16133 + $1.rowmult = +$1.rowmult; //#16134 + if ($1.raw) { //#16136 + $1.encoding = "raw"; //#16136 + } //#16136 + if ($1.cca) { //#16137 + $1.encoding = "cca"; //#16137 + } //#16137 + if ($eq($1.encoding, "raw") || $eq($1.encoding, "cca")) { //#16151 + $1.datcws = $a($1.barcode.length); //#16141 + $1.i = 0; //#16142 + $1.j = 0; //#16142 + for (;;) { //#16149 + if ($1.i == $1.barcode.length) { //#16144 + break; //#16144 + } //#16144 + $1.cw = ~~$z($geti($1.barcode, $1.i + 1, 3)); //#16145 + $put($1.datcws, $1.j, $1.cw); //#16146 + $1.i = $1.i + 4; //#16147 + $1.j = $1.j + 1; //#16148 + } //#16148 + $1.datcws = $geti($1.datcws, 0, $1.j); //#16150 + } //#16150 + if ($1.ccb) { //#16153 + $1.encoding = "ccb"; //#16153 + } //#16153 $1.encb = function() { - $1.in = $k[--$j]; - $1.inlen = $1.in.length; - $1.out = $a(~~($1.inlen / 6) * 5 + $1.inlen % 6); - for (var _d = 0, _c = ~~($1.inlen / 6) - 1; _d <= _c; _d += 1) { - $1.k = _d; - $k[$j++] = Infinity; - $aload($geti($1.in, $1.k * 6, 3)); - $1.msbs = $a(); - $k[$j++] = Infinity; - $aload($1.msbs); - var _j = $k[--$j]; - var _k = $k[--$j]; - var _l = $k[--$j]; - $k[$j++] = $f($f(_j + _k * 256) + _l * 65536); - for (var _m = 0, _n = 3; _m < _n; _m++) { - var _o = $k[--$j]; - $k[$j++] = _o % 900; - $k[$j++] = ~~(_o / 900); - } - $1.mscs = $a(); - $k[$j++] = Infinity; - $aload($geti($1.in, $1.k * 6 + 3, 3)); - $1.lsbs = $a(); - $k[$j++] = Infinity; - $aload($1.lsbs); - var _v = $k[--$j]; - var _w = $k[--$j]; - var _x = $k[--$j]; - $k[$j++] = $f($f(_v + _w * 256) + _x * 65536); - for (var _y = 0, _z = 3; _y < _z; _y++) { - var _10 = $k[--$j]; - $k[$j++] = _10 % 900; - $k[$j++] = ~~(_10 / 900); - } - $1.lscs = $a(); - var _13 = $get($1.lscs, 0); - var _15 = $get($1.mscs, 0); - $put($1.out, $1.k * 5 + 4, $f(_13 + _15 * 316) % 900); - var _19 = $get($1.lscs, 1); - var _1B = $get($1.mscs, 0); - var _1D = $get($1.mscs, 1); - $put($1.out, $1.k * 5 + 3, $f($f($f(~~($f(_13 + _15 * 316) / 900) + _19) + _1B * 641) + _1D * 316) % 900); - var _1H = $get($1.lscs, 2); - var _1J = $get($1.mscs, 0); - var _1L = $get($1.mscs, 1); - var _1N = $get($1.mscs, 2); - $put($1.out, $1.k * 5 + 2, $f($f($f($f(~~($f($f($f(~~($f(_13 + _15 * 316) / 900) + _19) + _1B * 641) + _1D * 316) / 900) + _1H) + _1J * 20) + _1L * 641) + _1N * 316) % 900); - var _1R = $get($1.lscs, 3); - var _1T = $get($1.mscs, 1); - var _1V = $get($1.mscs, 2); - $put($1.out, $1.k * 5 + 1, $f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_13 + _15 * 316) / 900) + _19) + _1B * 641) + _1D * 316) / 900) + _1H) + _1J * 20) + _1L * 641) + _1N * 316) / 900) + _1R) + _1T * 20) + _1V * 641) % 900); - $put($1.out, $1.k * 5, $f(~~($f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_13 + _15 * 316) / 900) + _19) + _1B * 641) + _1D * 316) / 900) + _1H) + _1J * 20) + _1L * 641) + _1N * 316) / 900) + _1R) + _1T * 20) + _1V * 641) / 900) + $get($1.mscs, 2) * 20) % 900); - } - $1.rem = $1.inlen % 6; - if ($1.rem != 0) { - $k[$j++] = $1.out; - $k[$j++] = $1.out.length - $1.rem; - $k[$j++] = Infinity; - $aload($geti($1.in, $1.inlen - $1.rem, $1.rem)); - var _1m = $a(); - var _1n = $k[--$j]; - $puti($k[--$j], _1n, _1m); - } - $k[$j++] = $1.out; - }; - if ($eq($1.encoding, "byte") || $eq($1.encoding, "ccb")) { - $1.barlen = $1.barcode.length; - $1.datcws = $a(~~($1.barlen / 6) * 5 + $1.barlen % 6 + 1); - var _1y = $1.barlen % 6 == 0 ? 924 : 901; - $put($1.datcws, 0, _1y); - $k[$j++] = $1.datcws; - $k[$j++] = 1; - $k[$j++] = Infinity; - $forall($1.barcode); - var _21 = $a(); - $k[$j++] = _21; - $1.encb(); - var _22 = $k[--$j]; - var _23 = $k[--$j]; - $puti($k[--$j], _23, _22); - if ($eq($1.encoding, "ccb")) { - $k[$j++] = Infinity; - $k[$j++] = 920; - $aload($1.datcws); - $1.datcws = $a(); - } - } - if ($eq($1.encoding, "auto")) { - var _2B = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "eci", true ] ]); - $1.fncvals = _2B; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _2E = $k[--$j]; - $1[$k[--$j]] = _2E; - $1.msglen = $1.msg.length; - $1.T = 0; - $1.N = 1; - $1.B = 2; - $1.A = 0; - $1.L = 1; - $1.M = 2; - $1.P = 3; - $1.tl = -1; - $1.nl = -2; - $1.bl = -3; - $1.bl6 = -4; - $1.bs = -5; - $1.al = -6; - $1.ll = -7; - $1.ml = -8; - $1.pl = -9; - $1.as = -10; - $1.ps = -11; - $1.charmaps = $a([ $a([ "A", "a", "0", ";" ]), $a([ "B", "b", "1", "<" ]), $a([ "C", "c", "2", ">" ]), $a([ "D", "d", "3", "@" ]), $a([ "E", "e", "4", "[" ]), $a([ "F", "f", "5", 92 ]), $a([ "G", "g", "6", "]" ]), $a([ "H", "h", "7", "_" ]), $a([ "I", "i", "8", "`" ]), $a([ "J", "j", "9", "~" ]), $a([ "K", "k", "&", "!" ]), $a([ "L", "l", 13, 13 ]), $a([ "M", "m", 9, 9 ]), $a([ "N", "n", ",", "," ]), $a([ "O", "o", ":", ":" ]), $a([ "P", "p", "#", 10 ]), $a([ "Q", "q", "-", "-" ]), $a([ "R", "r", ".", "." ]), $a([ "S", "s", "$", "$" ]), $a([ "T", "t", "/", "/" ]), $a([ "U", "u", "+", '"' ]), $a([ "V", "v", "%", "|" ]), $a([ "W", "w", "*", "*" ]), $a([ "X", "x", "=", 40 ]), $a([ "Y", "y", "^", 41 ]), $a([ "Z", "z", $1.pl, "?" ]), $a([ " ", " ", " ", "{" ]), $a([ $1.ll, $1.as, $1.ll, "}" ]), $a([ $1.ml, $1.ml, $1.al, "'" ]), $a([ $1.ps, $1.ps, $1.ps, $1.al ]) ]); - $1.charvals = $a([ new Map(), new Map(), new Map(), new Map() ]); - $1.alltext = new Map(); - for (var _30 = 0, _2z = $1.charmaps.length - 1; _30 <= _2z; _30 += 1) { - $1.i = _30; - $1.encs = $get($1.charmaps, $1.i); - for (var _34 = 0; _34 <= 3; _34 += 1) { - $1.j = _34; - var _37 = $get($1.encs, $1.j); - $k[$j++] = _37; - if ($eq($type(_37), "stringtype")) { - var _3A = $get($k[--$j], 0); - $k[$j++] = _3A; - } - var _3B = $k[--$j]; - $put($get($1.charvals, $1.j), _3B, $1.i); - $put($1.alltext, _3B, -1); - } - } - $1.e = 1e4; - $1.latlen = $a([ $a([ 0, 1, 1, 2 ]), $a([ 2, 0, 1, 2 ]), $a([ 1, 1, 0, 1 ]), $a([ 1, 2, 2, 0 ]) ]); - $1.latseq = $a([ $a([ $a([]), $a([ $1.ll ]), $a([ $1.ml ]), $a([ $1.ml, $1.pl ]) ]), $a([ $a([ $1.ml, $1.al ]), $a([]), $a([ $1.ml ]), $a([ $1.ml, $1.pl ]) ]), $a([ $a([ $1.al ]), $a([ $1.ll ]), $a([]), $a([ $1.pl ]) ]), $a([ $a([ $1.al ]), $a([ $1.al, $1.ll ]), $a([ $1.al, $1.ml ]), $a([]) ]) ]); - $1.shftlen = $a([ $a([ $1.e, $1.e, $1.e, 1 ]), $a([ 1, $1.e, $1.e, 1 ]), $a([ $1.e, $1.e, $1.e, 1 ]), $a([ $1.e, $1.e, $1.e, $1.e ]) ]); - $k[$j++] = Infinity; - for (var _4G = 0, _4H = $1.msglen; _4G < _4H; _4G++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numdigits = $a(); - $k[$j++] = Infinity; - for (var _4K = 0, _4L = $1.msglen; _4K < _4L; _4K++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numtext = $a(); - $k[$j++] = Infinity; - for (var _4O = 0, _4P = $1.msglen; _4O < _4P; _4O++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numbytes = $a(); - $k[$j++] = Infinity; - for (var _4S = 0, _4T = $1.msglen; _4S < _4T; _4S++) { - $k[$j++] = 0; - } - $1.iseci = $a(); - for (var _4W = $1.msglen - 1; _4W >= 0; _4W -= 1) { - $1.i = _4W; - var _4Z = $get($1.msg, $1.i); - if (_4Z >= 48 && _4Z <= 57) { - $put($1.numdigits, $1.i, $f($get($1.numdigits, $1.i + 1) + 1)); - } - var _4j = $get($1.alltext, $get($1.msg, $1.i)) !== undefined; - if (_4j && $get($1.numdigits, $1.i) < 13) { - $put($1.numtext, $1.i, $f($get($1.numtext, $1.i + 1) + 1)); - } - if ($get($1.msg, $1.i) >= 0 && $get($1.numtext, $1.i) < 5 && $get($1.numdigits, $1.i) < 13) { - $put($1.numbytes, $1.i, $f($get($1.numbytes, $1.i + 1) + 1)); - } - $put($1.iseci, $1.i, $get($1.msg, $1.i) <= -1e6); - } - $1.numdigits = $geti($1.numdigits, 0, $1.msglen); - $1.numtext = $geti($1.numtext, 0, $1.msglen); - $1.numbytes = $geti($1.numbytes, 0, $1.msglen); - $1.seq = $a([]); - $1.seqlen = 0; - $1.state = $1.B; - $1.p = 0; - for (;;) { - if ($1.p == $1.msglen) { - break; - } - if ($get($1.iseci, $1.p)) { - $1.eci = $get($1.msg, $1.p); - $k[$j++] = Infinity; - $aload($1.seq); - $k[$j++] = $a([ $1.eci ]); - $1.seq = $a(); - $1.p = $1.p + 1; - $k[$j++] = "seqlen"; - $k[$j++] = $1.seqlen; - if ($1.eci <= -1810900) { - $k[$j++] = 2; - } else { - var _5c = $1.eci <= -1000900 ? 3 : 2; - $k[$j++] = _5c; - } - var _5d = $k[--$j]; - var _5e = $k[--$j]; - $1[$k[--$j]] = $f(_5e + _5d); - } else { - $1.n = $get($1.numdigits, $1.p); - if ($1.n >= 13) { - $k[$j++] = Infinity; - $aload($1.seq); - $k[$j++] = $1.nl; - $k[$j++] = Infinity; - $aload($geti($1.msg, $1.p, $1.n)); - var _5q = $a(); - $k[$j++] = _5q; - $1.seq = $a(); - $1.state = $1.N; - $1.p = $f($1.p + $1.n); - $1.seqlen = $f($1.seqlen + 1 + $1.n); - } else { - $1.t = $get($1.numtext, $1.p); - if ($1.t >= 5) { - $k[$j++] = Infinity; - $aload($1.seq); - if ($1.state != $1.T) { - $k[$j++] = $1.tl; - } - $k[$j++] = Infinity; - $aload($geti($1.msg, $1.p, $1.t)); - var _69 = $a(); - $k[$j++] = _69; - $1.seq = $a(); - $1.state = $1.T; - $1.p = $f($1.p + $1.t); - $1.seqlen = $f($f($1.seqlen + 1) + $1.t); - } else { - $1.b = $get($1.numbytes, $1.p); - if ($1.b == 1 && $1.state == $1.T) { - $k[$j++] = Infinity; - $aload($1.seq); - $k[$j++] = $1.bs; - $k[$j++] = $a([ $get($1.msg, $1.p) ]); - $1.seq = $a(); - $1.p = $f($1.p + $1.b); - $1.seqlen = $f($1.seqlen + 2); - } else { - $k[$j++] = Infinity; - $aload($1.seq); - var _6Y = $1.b % 6 != 0 ? $1.bl : $1.bl6; - $k[$j++] = _6Y; - $k[$j++] = Infinity; - $aload($geti($1.msg, $1.p, $1.b)); - var _6d = $a(); - $k[$j++] = _6d; - $1.seq = $a(); - $1.state = $1.B; - $1.p = $f($1.p + $1.b); - $1.seqlen = $f($f($1.seqlen + 1) + $1.b); - } - } - } - } - } - $k[$j++] = Infinity; - $k[$j++] = $1.tl; - $k[$j++] = 900; - $k[$j++] = $1.bl; - $k[$j++] = 901; - $k[$j++] = $1.bl6; - $k[$j++] = 924; - $k[$j++] = $1.nl; - $k[$j++] = 902; - $k[$j++] = $1.bs; - $k[$j++] = 913; - $1.latchcws = $d(); + $1.in = $k[--$j]; //#16156 + $1.inlen = $1.in.length; //#16157 + $1.out = $a(((~~($1.inlen / 6)) * 5) + ($1.inlen % 6)); //#16158 + for (var _d = 0, _c = (~~($1.inlen / 6)) - 1; _d <= _c; _d += 1) { //#16181 + $1.k = _d; //#16160 + $k[$j++] = Infinity; //#16161 + $aload($geti($1.in, $1.k * 6, 3)); //#16161 + $1.msbs = $a(); //#16161 + $k[$j++] = Infinity; //#16164 + $aload($1.msbs); //#16163 + var _j = $k[--$j]; //#16163 + var _k = $k[--$j]; //#16163 + var _l = $k[--$j]; //#16163 + $k[$j++] = $f(($f(_j + (_k * 256))) + (_l * 65536)); //#16164 + for (var _m = 0, _n = 3; _m < _n; _m++) { //#16164 + var _o = $k[--$j]; //#16164 + $k[$j++] = _o % 900; //#16164 + $k[$j++] = ~~(_o / 900); //#16164 + } //#16164 + $1.mscs = $a(); //#16164 + $k[$j++] = Infinity; //#16166 + $aload($geti($1.in, ($1.k * 6) + 3, 3)); //#16166 + $1.lsbs = $a(); //#16166 + $k[$j++] = Infinity; //#16169 + $aload($1.lsbs); //#16168 + var _v = $k[--$j]; //#16168 + var _w = $k[--$j]; //#16168 + var _x = $k[--$j]; //#16168 + $k[$j++] = $f(($f(_v + (_w * 256))) + (_x * 65536)); //#16169 + for (var _y = 0, _z = 3; _y < _z; _y++) { //#16169 + var _10 = $k[--$j]; //#16169 + $k[$j++] = _10 % 900; //#16169 + $k[$j++] = ~~(_10 / 900); //#16169 + } //#16169 + $1.lscs = $a(); //#16169 + var _13 = $get($1.lscs, 0); //#16171 + var _15 = $get($1.mscs, 0); //#16171 + $put($1.out, ($1.k * 5) + 4, ($f(_13 + (_15 * 316))) % 900); //#16172 + var _19 = $get($1.lscs, 1); //#16173 + var _1B = $get($1.mscs, 0); //#16173 + var _1D = $get($1.mscs, 1); //#16173 + $put($1.out, ($1.k * 5) + 3, ($f(($f(($f((~~(($f(_13 + (_15 * 316))) / 900)) + _19)) + (_1B * 641))) + (_1D * 316))) % 900); //#16174 + var _1H = $get($1.lscs, 2); //#16175 + var _1J = $get($1.mscs, 0); //#16175 + var _1L = $get($1.mscs, 1); //#16175 + var _1N = $get($1.mscs, 2); //#16175 + $put($1.out, ($1.k * 5) + 2, ($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_13 + (_15 * 316))) / 900)) + _19)) + (_1B * 641))) + (_1D * 316))) / 900)) + _1H)) + (_1J * 20))) + (_1L * 641))) + (_1N * 316))) % 900); //#16176 + var _1R = $get($1.lscs, 3); //#16177 + var _1T = $get($1.mscs, 1); //#16177 + var _1V = $get($1.mscs, 2); //#16177 + $put($1.out, ($1.k * 5) + 1, ($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_13 + (_15 * 316))) / 900)) + _19)) + (_1B * 641))) + (_1D * 316))) / 900)) + _1H)) + (_1J * 20))) + (_1L * 641))) + (_1N * 316))) / 900)) + _1R)) + (_1T * 20))) + (_1V * 641))) % 900); //#16178 + $put($1.out, $1.k * 5, ($f((~~(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_13 + (_15 * 316))) / 900)) + _19)) + (_1B * 641))) + (_1D * 316))) / 900)) + _1H)) + (_1J * 20))) + (_1L * 641))) + (_1N * 316))) / 900)) + _1R)) + (_1T * 20))) + (_1V * 641))) / 900)) + ($get($1.mscs, 2) * 20))) % 900); //#16180 + } //#16180 + $1.rem = $1.inlen % 6; //#16182 + if ($1.rem != 0) { //#16187 + $k[$j++] = $1.out; //#16185 + $k[$j++] = $1.out.length - $1.rem; //#16185 + $k[$j++] = Infinity; //#16185 + $aload($geti($1.in, $1.inlen - $1.rem, $1.rem)); //#16185 + var _1m = $a(); //#16185 + var _1n = $k[--$j]; //#16186 + $puti($k[--$j], _1n, _1m); //#16186 + } //#16186 + $k[$j++] = $1.out; //#16188 + }; //#16189 + if ($eq($1.encoding, "byte") || $eq($1.encoding, "ccb")) { //#16197 + $1.barlen = $1.barcode.length; //#16192 + $1.datcws = $a((((~~($1.barlen / 6)) * 5) + ($1.barlen % 6)) + 1); //#16193 + var _1y = (($1.barlen % 6) == 0) ? 924 : 901; //#16194 + $put($1.datcws, 0, _1y); //#16194 + $k[$j++] = $1.datcws; //#16195 + $k[$j++] = 1; //#16195 + $k[$j++] = Infinity; //#16195 + $forall($1.barcode); //#16195 + var _21 = $a(); //#16195 + $k[$j++] = _21; //#16195 + $1.encb(); //#16195 + var _22 = $k[--$j]; //#16195 + var _23 = $k[--$j]; //#16195 + $puti($k[--$j], _23, _22); //#16195 + if ($eq($1.encoding, "ccb")) { //#16196 + $k[$j++] = Infinity; //#16196 + $k[$j++] = 920; //#16196 + $aload($1.datcws); //#16196 + $1.datcws = $a(); //#16196 + } //#16196 + } //#16196 + if ($eq($1.encoding, "auto")) { //#16601 + var _2B = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["eci", true] + ]); //#16205 + $1.fncvals = _2B; //#16207 + $k[$j++] = 'msg'; //#16208 + $k[$j++] = $1.barcode; //#16208 + $k[$j++] = $1.fncvals; //#16208 + $0.parseinput(); //#16208 + var _2E = $k[--$j]; //#16208 + $1[$k[--$j]] = _2E; //#16208 + $1.msglen = $1.msg.length; //#16209 + $1.T = 0; //#16212 + $1.N = 1; //#16212 + $1.B = 2; //#16212 + $1.A = 0; //#16213 + $1.L = 1; //#16213 + $1.M = 2; //#16213 + $1.P = 3; //#16213 + $1.tl = -1; //#16216 + $1.nl = -2; //#16216 + $1.bl = -3; //#16216 + $1.bl6 = -4; //#16216 + $1.bs = -5; //#16216 + $1.al = -6; //#16219 + $1.ll = -7; //#16219 + $1.ml = -8; //#16219 + $1.pl = -9; //#16219 + $1.as = -10; //#16219 + $1.ps = -11; //#16219 + $1.charmaps = $a([$a(["A", "a", "0", ";"]), $a(["B", "b", "1", "<"]), $a(["C", "c", "2", ">"]), $a(["D", "d", "3", "@"]), $a(["E", "e", "4", "["]), $a(["F", "f", "5", 92]), $a(["G", "g", "6", "]"]), $a(["H", "h", "7", "_"]), $a(["I", "i", "8", "`"]), $a(["J", "j", "9", "~"]), $a(["K", "k", "&", "!"]), $a(["L", "l", 13, 13]), $a(["M", "m", 9, 9]), $a(["N", "n", ",", ","]), $a(["O", "o", ":", ":"]), $a(["P", "p", "#", 10]), $a(["Q", "q", "-", "-"]), $a(["R", "r", ".", "."]), $a(["S", "s", "$", "$"]), $a(["T", "t", "/", "/"]), $a(["U", "u", "+", "\""]), $a(["V", "v", "%", "|"]), $a(["W", "w", "*", "*"]), $a(["X", "x", "=", 40]), $a(["Y", "y", "^", 41]), $a(["Z", "z", $1.pl, "?"]), $a([" ", " ", " ", "{"]), $a([$1.ll, $1.as, $1.ll, "}"]), $a([$1.ml, $1.ml, $1.al, "'"]), $a([$1.ps, $1.ps, $1.ps, $1.al])]); //#16254 + $1.charvals = $a([new Map, new Map, new Map, new Map]); //#16257 + $1.alltext = new Map; //#16258 + for (var _30 = 0, _2z = $1.charmaps.length - 1; _30 <= _2z; _30 += 1) { //#16268 + $1.i = _30; //#16260 + $1.encs = $get($1.charmaps, $1.i); //#16261 + for (var _34 = 0; _34 <= 3; _34 += 1) { //#16267 + $1.j = _34; //#16263 + var _37 = $get($1.encs, $1.j); //#16264 + $k[$j++] = _37; //#16264 + if ($eq($type(_37), 'stringtype')) { //#16264 + var _3A = $get($k[--$j], 0); //#16264 + $k[$j++] = _3A; //#16264 + } //#16264 + var _3B = $k[--$j]; //#16265 + $put($get($1.charvals, $1.j), _3B, $1.i); //#16265 + $put($1.alltext, _3B, -1); //#16266 + } //#16266 + } //#16266 + $1.e = 10000; //#16270 + $1.latlen = $a([$a([0, 1, 1, 2]), $a([2, 0, 1, 2]), $a([1, 1, 0, 1]), $a([1, 2, 2, 0])]); //#16278 + $1.latseq = $a([$a([$a([]), $a([$1.ll]), $a([$1.ml]), $a([$1.ml, $1.pl])]), $a([$a([$1.ml, $1.al]), $a([]), $a([$1.ml]), $a([$1.ml, $1.pl])]), $a([$a([$1.al]), $a([$1.ll]), $a([]), $a([$1.pl])]), $a([$a([$1.al]), $a([$1.al, $1.ll]), $a([$1.al, $1.ml]), $a([])])]); //#16286 + $1.shftlen = $a([$a([$1.e, $1.e, $1.e, 1]), $a([1, $1.e, $1.e, 1]), $a([$1.e, $1.e, $1.e, 1]), $a([$1.e, $1.e, $1.e, $1.e])]); //#16294 + $k[$j++] = Infinity; //#16297 + for (var _4G = 0, _4H = $1.msglen; _4G < _4H; _4G++) { //#16297 + $k[$j++] = 0; //#16297 + } //#16297 + $k[$j++] = 0; //#16297 + $1.numdigits = $a(); //#16297 + $k[$j++] = Infinity; //#16298 + for (var _4K = 0, _4L = $1.msglen; _4K < _4L; _4K++) { //#16298 + $k[$j++] = 0; //#16298 + } //#16298 + $k[$j++] = 0; //#16298 + $1.numtext = $a(); //#16298 + $k[$j++] = Infinity; //#16299 + for (var _4O = 0, _4P = $1.msglen; _4O < _4P; _4O++) { //#16299 + $k[$j++] = 0; //#16299 + } //#16299 + $k[$j++] = 0; //#16299 + $1.numbytes = $a(); //#16299 + $k[$j++] = Infinity; //#16300 + for (var _4S = 0, _4T = $1.msglen; _4S < _4T; _4S++) { //#16300 + $k[$j++] = 0; //#16300 + } //#16300 + $1.iseci = $a(); //#16300 + for (var _4W = $1.msglen - 1; _4W >= 0; _4W -= 1) { //#16313 + $1.i = _4W; //#16302 + var _4Z = $get($1.msg, $1.i); //#16303 + if ((_4Z >= 48) && (_4Z <= 57)) { //#16305 + $put($1.numdigits, $1.i, $f($get($1.numdigits, $1.i + 1) + 1)); //#16304 + } //#16304 + var _4j = $get($1.alltext, $get($1.msg, $1.i)) !== undefined; //#16306 + if (_4j && ($get($1.numdigits, $1.i) < 13)) { //#16308 + $put($1.numtext, $1.i, $f($get($1.numtext, $1.i + 1) + 1)); //#16307 + } //#16307 + if ((($get($1.msg, $1.i) >= 0) && ($get($1.numtext, $1.i) < 5)) && ($get($1.numdigits, $1.i) < 13)) { //#16311 + $put($1.numbytes, $1.i, $f($get($1.numbytes, $1.i + 1) + 1)); //#16310 + } //#16310 + $put($1.iseci, $1.i, $get($1.msg, $1.i) <= -1000000); //#16312 + } //#16312 + $1.numdigits = $geti($1.numdigits, 0, $1.msglen); //#16314 + $1.numtext = $geti($1.numtext, 0, $1.msglen); //#16315 + $1.numbytes = $geti($1.numbytes, 0, $1.msglen); //#16316 + $1.seq = $a([]); //#16318 + $1.seqlen = 0; //#16318 + $1.state = $1.B; //#16318 + $1.p = 0; //#16318 + for (;;) { //#16372 + if ($1.p == $1.msglen) { //#16319 + break; //#16319 + } //#16319 + if ($get($1.iseci, $1.p)) { //#16370 + $1.eci = $get($1.msg, $1.p); //#16321 + $k[$j++] = Infinity; //#16324 + $aload($1.seq); //#16323 + $k[$j++] = $a([$1.eci]); //#16324 + $1.seq = $a(); //#16324 + $1.p = $1.p + 1; //#16326 + $k[$j++] = 'seqlen'; //#16327 + $k[$j++] = $1.seqlen; //#16327 + if ($1.eci <= -1810900) { //#16327 + $k[$j++] = 2; //#16327 + } else { //#16327 + var _5c = ($1.eci <= -1000900) ? 3 : 2; //#16327 + $k[$j++] = _5c; //#16327 + } //#16327 + var _5d = $k[--$j]; //#16327 + var _5e = $k[--$j]; //#16327 + $1[$k[--$j]] = $f(_5e + _5d); //#16327 + } else { //#16370 + $1.n = $get($1.numdigits, $1.p); //#16329 + if ($1.n >= 13) { //#16370 + $k[$j++] = Infinity; //#16334 + $aload($1.seq); //#16332 + $k[$j++] = $1.nl; //#16334 + $k[$j++] = Infinity; //#16334 + $aload($geti($1.msg, $1.p, $1.n)); //#16334 + var _5q = $a(); //#16334 + $k[$j++] = _5q; //#16334 + $1.seq = $a(); //#16334 + $1.state = $1.N; //#16336 + $1.p = $f($1.p + $1.n); //#16337 + $1.seqlen = $f(($1.seqlen + 1) + $1.n); //#16338 + } else { //#16370 + $1.t = $get($1.numtext, $1.p); //#16340 + if ($1.t >= 5) { //#16370 + $k[$j++] = Infinity; //#16347 + $aload($1.seq); //#16343 + if ($1.state != $1.T) { //#16346 + $k[$j++] = $1.tl; //#16345 + } //#16345 + $k[$j++] = Infinity; //#16347 + $aload($geti($1.msg, $1.p, $1.t)); //#16347 + var _69 = $a(); //#16347 + $k[$j++] = _69; //#16347 + $1.seq = $a(); //#16347 + $1.state = $1.T; //#16349 + $1.p = $f($1.p + $1.t); //#16350 + $1.seqlen = $f($f($1.seqlen + 1) + $1.t); //#16351 + } else { //#16370 + $1.b = $get($1.numbytes, $1.p); //#16353 + if (($1.b == 1) && ($1.state == $1.T)) { //#16370 + $k[$j++] = Infinity; //#16358 + $aload($1.seq); //#16356 + $k[$j++] = $1.bs; //#16358 + $k[$j++] = $a([$get($1.msg, $1.p)]); //#16358 + $1.seq = $a(); //#16358 + $1.p = $f($1.p + $1.b); //#16360 + $1.seqlen = $f($1.seqlen + 2); //#16361 + } else { //#16370 + $k[$j++] = Infinity; //#16366 + $aload($1.seq); //#16364 + var _6Y = (($1.b % 6) != 0) ? $1.bl : $1.bl6; //#16365 + $k[$j++] = _6Y; //#16366 + $k[$j++] = Infinity; //#16366 + $aload($geti($1.msg, $1.p, $1.b)); //#16366 + var _6d = $a(); //#16366 + $k[$j++] = _6d; //#16366 + $1.seq = $a(); //#16366 + $1.state = $1.B; //#16368 + $1.p = $f($1.p + $1.b); //#16369 + $1.seqlen = $f($f($1.seqlen + 1) + $1.b); //#16370 + } //#16370 + } //#16370 + } //#16370 + } //#16370 + } //#16370 + $k[$j++] = Infinity; //#16375 + $k[$j++] = $1.tl; //#16375 + $k[$j++] = 900; //#16375 + $k[$j++] = $1.bl; //#16375 + $k[$j++] = 901; //#16375 + $k[$j++] = $1.bl6; //#16375 + $k[$j++] = 924; //#16375 + $k[$j++] = $1.nl; //#16375 + $k[$j++] = 902; //#16375 + $k[$j++] = $1.bs; //#16375 + $k[$j++] = 913; //#16375 + $1.latchcws = $d(); //#16376 $1.enca = function() { - var _6u = $get($get($1.charvals, $1.A), $k[--$j]); - $k[$j++] = _6u; - }; + var _6u = $get($get($1.charvals, $1.A), $k[--$j]); //#16379 + $k[$j++] = _6u; //#16379 + }; //#16379 $1.encl = function() { - var _6z = $get($get($1.charvals, $1.L), $k[--$j]); - $k[$j++] = _6z; - }; + var _6z = $get($get($1.charvals, $1.L), $k[--$j]); //#16380 + $k[$j++] = _6z; //#16380 + }; //#16380 $1.encm = function() { - var _74 = $get($get($1.charvals, $1.M), $k[--$j]); - $k[$j++] = _74; - }; + var _74 = $get($get($1.charvals, $1.M), $k[--$j]); //#16381 + $k[$j++] = _74; //#16381 + }; //#16381 $1.encp = function() { - var _79 = $get($get($1.charvals, $1.P), $k[--$j]); - $k[$j++] = _79; - }; - $1.textencfuncs = $a([ "enca", "encl", "encm", "encp" ]); + var _79 = $get($get($1.charvals, $1.P), $k[--$j]); //#16382 + $k[$j++] = _79; //#16382 + }; //#16382 + $1.textencfuncs = $a(['enca', 'encl', 'encm', 'encp']); //#16383 $1.addtotext = function() { - $put($1.text, $1.l, $k[--$j]); - $1.l = $1.l + 1; - }; + $put($1.text, $1.l, $k[--$j]); //#16386 + $1.l = $1.l + 1; //#16387 + }; //#16388 $1.enct = function() { - $1.in = $k[--$j]; - $1.curlen = $a([ $1.e, $1.e, $1.e, $1.e ]); - $put($1.curlen, $1.submode, 0); - $1.curseq = $a([ $a([]), $a([]), $a([]), $a([]) ]); - $forall($1.in, function() { - $1.char = $k[--$j]; - for (;;) { - $1.imp = false; - var _7Y = $a([ $1.A, $1.L, $1.M, $1.P ]); - for (var _7Z = 0, _7a = _7Y.length; _7Z < _7a; _7Z++) { - $1.x = $get(_7Y, _7Z); - var _7g = $a([ $1.A, $1.L, $1.M, $1.P ]); - for (var _7h = 0, _7i = _7g.length; _7h < _7i; _7h++) { - $1.y = $get(_7g, _7h); - $1.cost = $f($get($1.curlen, $1.x) + $get($get($1.latlen, $1.x), $1.y)); - if ($1.cost < $get($1.curlen, $1.y)) { - $put($1.curlen, $1.y, $1.cost); - $k[$j++] = $1.curseq; - $k[$j++] = $1.y; - $k[$j++] = Infinity; - $aload($get($1.curseq, $1.x)); - $aload($get($get($1.latseq, $1.x), $1.y)); - var _89 = $a(); - var _8A = $k[--$j]; - $put($k[--$j], _8A, _89); - $1.imp = true; - } - } - } - if (!$1.imp) { - break; - } - } - $1.nxtlen = $a([ $1.e, $1.e, $1.e, $1.e ]); - $1.nxtseq = $a(4); - var _8N = $a([ $1.A, $1.L, $1.M, $1.P ]); - for (var _8O = 0, _8P = _8N.length; _8O < _8P; _8O++) { - $1.x = $get(_8N, _8O); - for (;;) { - var _8V = $get($get($1.charvals, $1.x), $1.char) !== undefined; - if (!_8V) { - break; - } - $1.cost = $f($get($1.curlen, $1.x) + 1); - if ($1.cost < $get($1.nxtlen, $1.x)) { - $put($1.nxtlen, $1.x, $1.cost); - $k[$j++] = $1.nxtseq; - $k[$j++] = $1.x; - $k[$j++] = Infinity; - $aload($get($1.curseq, $1.x)); - $k[$j++] = $1.char; - var _8m = $a(); - var _8n = $k[--$j]; - $put($k[--$j], _8n, _8m); - } - var _8t = $a([ $1.A, $1.L, $1.M, $1.P ]); - for (var _8u = 0, _8v = _8t.length; _8u < _8v; _8u++) { - $1.y = $get(_8t, _8u); - if ($ne($1.x, $1.y)) { - $1.cost = $f($f($get($1.curlen, $1.y) + $get($get($1.shftlen, $1.y), $1.x)) + 1); - if ($1.cost < $get($1.nxtlen, $1.y)) { - $put($1.nxtlen, $1.y, $1.cost); - $k[$j++] = $1.nxtseq; - $k[$j++] = $1.y; - $k[$j++] = Infinity; - $aload($get($1.curseq, $1.y)); - var _9L = $1.x == $1.A ? $1.as : $1.ps; - $k[$j++] = _9L; - $k[$j++] = $1.char; - var _9N = $a(); - var _9O = $k[--$j]; - $put($k[--$j], _9O, _9N); - } - } - } - break; - } - } - $1.curlen = $1.nxtlen; - $1.curseq = $1.nxtseq; - }); - $1.minseq = $1.e; - var _9X = $a([ $1.A, $1.L, $1.M, $1.P ]); - for (var _9Y = 0, _9Z = _9X.length; _9Y < _9Z; _9Y++) { - $1.k = $get(_9X, _9Y); - if ($get($1.curlen, $1.k) < $1.minseq) { - $1.minseq = $get($1.curlen, $1.k); - $1.txtseq = $get($1.curseq, $1.k); - } - } - $1.text = $a($1.minseq); - $1.k = 0; - $1.l = 0; - for (;;) { - if ($1.k >= $1.txtseq.length) { - break; - } - $1.char = $get($1.txtseq, $1.k); - $k[$j++] = $1.char; + $1.in = $k[--$j]; //#16392 + $1.curlen = $a([$1.e, $1.e, $1.e, $1.e]); //#16394 + $put($1.curlen, $1.submode, 0); //#16395 + $1.curseq = $a([$a([]), $a([]), $a([]), $a([])]); //#16396 + $forall($1.in, function() { //#16466 + $1.char = $k[--$j]; //#16401 + for (;;) { //#16422 + $1.imp = false; //#16405 + var _7Y = $a([$1.A, $1.L, $1.M, $1.P]); //#16406 + for (var _7Z = 0, _7a = _7Y.length; _7Z < _7a; _7Z++) { //#16420 + $1.x = $get(_7Y, _7Z); //#16407 + var _7g = $a([$1.A, $1.L, $1.M, $1.P]); //#16408 + for (var _7h = 0, _7i = _7g.length; _7h < _7i; _7h++) { //#16419 + $1.y = $get(_7g, _7h); //#16409 + $1.cost = $f($get($1.curlen, $1.x) + $get($get($1.latlen, $1.x), $1.y)); //#16410 + if ($1.cost < $get($1.curlen, $1.y)) { //#16418 + $put($1.curlen, $1.y, $1.cost); //#16412 + $k[$j++] = $1.curseq; //#16415 + $k[$j++] = $1.y; //#16415 + $k[$j++] = Infinity; //#16415 + $aload($get($1.curseq, $1.x)); //#16414 + $aload($get($get($1.latseq, $1.x), $1.y)); //#16415 + var _89 = $a(); //#16415 + var _8A = $k[--$j]; //#16416 + $put($k[--$j], _8A, _89); //#16416 + $1.imp = true; //#16417 + } //#16417 + } //#16417 + } //#16417 + if (!$1.imp) { //#16421 + break; //#16421 + } //#16421 + } //#16421 + $1.nxtlen = $a([$1.e, $1.e, $1.e, $1.e]); //#16425 + $1.nxtseq = $a(4); //#16426 + var _8N = $a([$1.A, $1.L, $1.M, $1.P]); //#16428 + for (var _8O = 0, _8P = _8N.length; _8O < _8P; _8O++) { //#16461 + $1.x = $get(_8N, _8O); //#16429 + for (;;) { //#16459 + var _8V = $get($get($1.charvals, $1.x), $1.char) !== undefined; //#16433 + if (!_8V) { //#16433 + break; //#16433 + } //#16433 + $1.cost = $f($get($1.curlen, $1.x) + 1); //#16436 + if ($1.cost < $get($1.nxtlen, $1.x)) { //#16440 + $put($1.nxtlen, $1.x, $1.cost); //#16438 + $k[$j++] = $1.nxtseq; //#16439 + $k[$j++] = $1.x; //#16439 + $k[$j++] = Infinity; //#16439 + $aload($get($1.curseq, $1.x)); //#16439 + $k[$j++] = $1.char; //#16439 + var _8m = $a(); //#16439 + var _8n = $k[--$j]; //#16439 + $put($k[--$j], _8n, _8m); //#16439 + } //#16439 + var _8t = $a([$1.A, $1.L, $1.M, $1.P]); //#16443 + for (var _8u = 0, _8v = _8t.length; _8u < _8v; _8u++) { //#16456 + $1.y = $get(_8t, _8u); //#16444 + if ($ne($1.x, $1.y)) { //#16455 + $1.cost = $f($f($get($1.curlen, $1.y) + $get($get($1.shftlen, $1.y), $1.x)) + 1); //#16446 + if ($1.cost < $get($1.nxtlen, $1.y)) { //#16454 + $put($1.nxtlen, $1.y, $1.cost); //#16448 + $k[$j++] = $1.nxtseq; //#16452 + $k[$j++] = $1.y; //#16452 + $k[$j++] = Infinity; //#16452 + $aload($get($1.curseq, $1.y)); //#16450 + var _9L = ($1.x == $1.A) ? $1.as : $1.ps; //#16451 + $k[$j++] = _9L; //#16452 + $k[$j++] = $1.char; //#16452 + var _9N = $a(); //#16452 + var _9O = $k[--$j]; //#16453 + $put($k[--$j], _9O, _9N); //#16453 + } //#16453 + } //#16453 + } //#16453 + break; //#16458 + } //#16458 + } //#16458 + $1.curlen = $1.nxtlen; //#16463 + $1.curseq = $1.nxtseq; //#16464 + }); //#16464 + $1.minseq = $1.e; //#16469 + var _9X = $a([$1.A, $1.L, $1.M, $1.P]); //#16470 + for (var _9Y = 0, _9Z = _9X.length; _9Y < _9Z; _9Y++) { //#16476 + $1.k = $get(_9X, _9Y); //#16471 + if ($get($1.curlen, $1.k) < $1.minseq) { //#16475 + $1.minseq = $get($1.curlen, $1.k); //#16473 + $1.txtseq = $get($1.curseq, $1.k); //#16474 + } //#16474 + } //#16474 + $1.text = $a($1.minseq); //#16479 + $1.k = 0; //#16480 + $1.l = 0; //#16480 + for (;;) { //#16500 + if ($1.k >= $1.txtseq.length) { //#16481 + break; //#16481 + } //#16481 + $1.char = $get($1.txtseq, $1.k); //#16483 + $k[$j++] = $1.char; //#16486 if ($1[$get($1.textencfuncs, $1.submode)]() === true) { break; - } - $1.addtotext(); - $1.k = $1.k + 1; - if ($1.char == $1.as || $1.char == $1.ps) { - $k[$j++] = $get($1.txtseq, $1.k); - if ($1.char == $1.as) { - $1.enca(); - } else { - $1.encp(); - } - $1.addtotext(); - $1.k = $1.k + 1; - } - if ($1.char == $1.al) { - $1.submode = $1.A; - } - if ($1.char == $1.ll) { - $1.submode = $1.L; - } - if ($1.char == $1.ml) { - $1.submode = $1.M; - } - if ($1.char == $1.pl) { - $1.submode = $1.P; - } - } - if ($1.text.length % 2 == 1) { - if ($1.submode == $1.P) { - $k[$j++] = "pad"; - $k[$j++] = $1.al; - $1.encp(); - var _AO = $k[--$j]; - $1[$k[--$j]] = _AO; - $1.submode = $1.A; - } else { - $k[$j++] = "pad"; - $k[$j++] = $1.ps; + } //#16486 + $1.addtotext(); //#16486 + $1.k = $1.k + 1; //#16487 + if (($1.char == $1.as) || ($1.char == $1.ps)) { //#16493 + $k[$j++] = $get($1.txtseq, $1.k); //#16491 + if ($1.char == $1.as) { //#16491 + $1.enca(); //#16491 + } else { //#16491 + $1.encp(); //#16491 + } //#16491 + $1.addtotext(); //#16491 + $1.k = $1.k + 1; //#16492 + } //#16492 + if ($1.char == $1.al) { //#16496 + $1.submode = $1.A; //#16496 + } //#16496 + if ($1.char == $1.ll) { //#16497 + $1.submode = $1.L; //#16497 + } //#16497 + if ($1.char == $1.ml) { //#16498 + $1.submode = $1.M; //#16498 + } //#16498 + if ($1.char == $1.pl) { //#16499 + $1.submode = $1.P; //#16499 + } //#16499 + } //#16499 + if (($1.text.length % 2) == 1) { //#16510 + if ($1.submode == $1.P) { //#16507 + $k[$j++] = 'pad'; //#16504 + $k[$j++] = $1.al; //#16504 + $1.encp(); //#16504 + var _AO = $k[--$j]; //#16504 + $1[$k[--$j]] = _AO; //#16504 + $1.submode = $1.A; //#16505 + } else { //#16507 + $k[$j++] = 'pad'; //#16507 + $k[$j++] = $1.ps; //#16507 if ($1[$get($1.textencfuncs, $1.submode)]() === true) { return true; - } - var _AW = $k[--$j]; - $1[$k[--$j]] = _AW; - } - $k[$j++] = Infinity; - $aload($1.text); - $k[$j++] = $1.pad; - $1.text = $a(); - } - $1.out = $a(~~($1.text.length / 2)); - for (var _Af = 0, _Ae = $1.out.length - 1; _Af <= _Ae; _Af += 1) { - $1.k = _Af; - $put($1.out, $1.k, $f($get($1.text, $1.k * 2) * 30 + $get($1.text, $1.k * 2 + 1))); - } - $k[$j++] = $1.out; - }; + } //#16507 + var _AW = $k[--$j]; //#16507 + $1[$k[--$j]] = _AW; //#16507 + } //#16507 + $k[$j++] = Infinity; //#16509 + $aload($1.text); //#16509 + $k[$j++] = $1.pad; //#16509 + $1.text = $a(); //#16509 + } //#16509 + $1.out = $a(~~($1.text.length / 2)); //#16512 + for (var _Af = 0, _Ae = $1.out.length - 1; _Af <= _Ae; _Af += 1) { //#16516 + $1.k = _Af; //#16514 + $put($1.out, $1.k, $f(($get($1.text, $1.k * 2) * 30) + $get($1.text, ($1.k * 2) + 1))); //#16515 + } //#16515 + $k[$j++] = $1.out; //#16518 + }; //#16520 $1.encn = function() { - $1.in = $k[--$j]; - $1.out = $a([]); - for (var _At = 0, _As = $1.in.length - 1; _At <= _As; _At += 44) { - $1.k = _At; - $k[$j++] = Infinity; - var _Ay = $1.in.length - $1.k; - $k[$j++] = 1; - $k[$j++] = $1.in; - $k[$j++] = $1.k; - $k[$j++] = _Ay; - if (_Ay > 44) { - $j--; - $k[$j++] = 44; - } - var _Az = $k[--$j]; - var _B0 = $k[--$j]; - var _B2 = $geti($k[--$j], _B0, _Az); - for (var _B3 = 0, _B4 = _B2.length; _B3 < _B4; _B3++) { - $k[$j++] = $f($get(_B2, _B3) - 48); - } - $1.gmod = $a(); - $1.cwn = $a([]); - for (;;) { - $1.dv = 900; - $1.gmul = $a([]); - $1.val = 0; - for (;;) { - if ($1.gmod.length == 0) { - break; - } - $1.val = $f($1.val * 10 + $get($1.gmod, 0)); - $1.gmod = $geti($1.gmod, 1, $1.gmod.length - 1); - if ($1.val < $1.dv) { - if ($1.gmul.length != 0) { - $k[$j++] = Infinity; - $aload($1.gmul); - $k[$j++] = 0; - $1.gmul = $a(); - } - } else { - $k[$j++] = Infinity; - $aload($1.gmul); - $k[$j++] = ~~($1.val / $1.dv); - $1.gmul = $a(); - } - $1.val = $1.val % $1.dv; - } - $1.dv = $1.val; - $k[$j++] = Infinity; - $k[$j++] = $1.dv; - $aload($1.cwn); - $1.cwn = $a(); - $1.gmod = $1.gmul; - if ($1.gmul.length == 0) { - break; - } - } - $k[$j++] = Infinity; - $aload($1.out); - $aload($1.cwn); - $1.out = $a(); - } - $k[$j++] = $1.out; - }; + $1.in = $k[--$j]; //#16523 + $1.out = $a([]); //#16524 + for (var _At = 0, _As = $1.in.length - 1; _At <= _As; _At += 44) { //#16552 + $1.k = _At; //#16526 + $k[$j++] = Infinity; //#16529 + var _Ay = $1.in.length - $1.k; //#16528 + $k[$j++] = 1; //#16528 + $k[$j++] = $1.in; //#16528 + $k[$j++] = $1.k; //#16528 + $k[$j++] = _Ay; //#16528 + if (_Ay > 44) { //#16528 + $j--; //#16528 + $k[$j++] = 44; //#16528 + } //#16528 + var _Az = $k[--$j]; //#16528 + var _B0 = $k[--$j]; //#16528 + var _B2 = $geti($k[--$j], _B0, _Az); //#16528 + for (var _B3 = 0, _B4 = _B2.length; _B3 < _B4; _B3++) { //#16529 + $k[$j++] = $f($get(_B2, _B3) - 48); //#16529 + } //#16529 + $1.gmod = $a(); //#16529 + $1.cwn = $a([]); //#16531 + for (;;) { //#16550 + $1.dv = 900; //#16532 + $1.gmul = $a([]); //#16533 + $1.val = 0; //#16533 + for (;;) { //#16545 + if ($1.gmod.length == 0) { //#16534 + break; //#16534 + } //#16534 + $1.val = $f(($1.val * 10) + $get($1.gmod, 0)); //#16535 + $1.gmod = $geti($1.gmod, 1, $1.gmod.length - 1); //#16536 + if ($1.val < $1.dv) { //#16542 + if ($1.gmul.length != 0) { //#16540 + $k[$j++] = Infinity; //#16539 + $aload($1.gmul); //#16539 + $k[$j++] = 0; //#16539 + $1.gmul = $a(); //#16539 + } //#16539 + } else { //#16542 + $k[$j++] = Infinity; //#16542 + $aload($1.gmul); //#16542 + $k[$j++] = ~~($1.val / $1.dv); //#16542 + $1.gmul = $a(); //#16542 + } //#16542 + $1.val = $1.val % $1.dv; //#16544 + } //#16544 + $1.dv = $1.val; //#16546 + $k[$j++] = Infinity; //#16547 + $k[$j++] = $1.dv; //#16547 + $aload($1.cwn); //#16547 + $1.cwn = $a(); //#16547 + $1.gmod = $1.gmul; //#16548 + if ($1.gmul.length == 0) { //#16549 + break; //#16549 + } //#16549 + } //#16549 + $k[$j++] = Infinity; //#16551 + $aload($1.out); //#16551 + $aload($1.cwn); //#16551 + $1.out = $a(); //#16551 + } //#16551 + $k[$j++] = $1.out; //#16553 + }; //#16554 $1.ence = function() { - var _Bd = $f(-$get($k[--$j], 0) - 1e6); - $k[$j++] = _Bd; - if (_Bd <= 899) { - var _Be = $k[--$j]; - $k[$j++] = 927; - $k[$j++] = _Be; - $astore($a(2)); - } else { - var _Bg = $k[--$j]; - $k[$j++] = _Bg; - if (_Bg <= 810899) { - var _Bh = $k[--$j]; - $k[$j++] = 926; - $k[$j++] = ~~(_Bh / 900) - 1; - $k[$j++] = _Bh % 900; - $astore($a(3)); - } else { - var _Bj = $k[--$j]; - $k[$j++] = _Bj; - if (_Bj <= 811799) { - var _Bk = $k[--$j]; - $k[$j++] = 925; - $k[$j++] = $f(_Bk - 810900); - $astore($a(2)); - } else { - $k[$j++] = "bwipp.pdf417badECI"; - $k[$j++] = "PDF417 supports ECIs 000000 to 811799"; - $0.raiseerror(); - } - } - } - }; - $1.encfuncs = $a([ "enct", "encn", "encb" ]); + var _Bd = $f((-$get($k[--$j], 0)) - 1000000); //#16558 + $k[$j++] = _Bd; //#16566 + if (_Bd <= 899) { //#16565 + var _Be = $k[--$j]; //#16559 + $k[$j++] = 927; //#16559 + $k[$j++] = _Be; //#16559 + $astore($a(2)); //#16559 + } else { //#16565 + var _Bg = $k[--$j]; //#16560 + $k[$j++] = _Bg; //#16566 + if (_Bg <= 810899) { //#16565 + var _Bh = $k[--$j]; //#16561 + $k[$j++] = 926; //#16561 + $k[$j++] = (~~(_Bh / 900)) - 1; //#16561 + $k[$j++] = _Bh % 900; //#16561 + $astore($a(3)); //#16561 + } else { //#16565 + var _Bj = $k[--$j]; //#16562 + $k[$j++] = _Bj; //#16566 + if (_Bj <= 811799) { //#16565 + var _Bk = $k[--$j]; //#16563 + $k[$j++] = 925; //#16563 + $k[$j++] = $f(_Bk - 810900); //#16563 + $astore($a(2)); //#16563 + } else { //#16565 + $k[$j++] = 'bwipp.pdf417badECI'; //#16565 + $k[$j++] = "PDF417 supports ECIs 000000 to 811799"; //#16565 + $0.raiseerror(); //#16565 + } //#16565 + } //#16565 + } //#16565 + }; //#16567 + $1.encfuncs = $a(['enct', 'encn', 'encb']); //#16569 $1.addtocws = function() { - var _Bn = $k[--$j]; - $puti($1.datcws, $1.j, _Bn); - $1.j = _Bn.length + $1.j; - }; - $1.datcws = $a($1.seqlen); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i >= $1.seq.length) { - break; - } - $1.chars = $get($1.seq, $1.i); - if ($eq($type($1.chars), "arraytype")) { - if ($get($1.chars, 0) <= -1e6) { - $k[$j++] = $1.chars; - $1.ence(); - $1.addtocws(); - } else { - $k[$j++] = $1.chars; + var _Bn = $k[--$j]; //#16572 + $puti($1.datcws, $1.j, _Bn); //#16572 + $1.j = _Bn.length + $1.j; //#16573 + }; //#16574 + $1.datcws = $a($1.seqlen); //#16578 + $1.i = 0; //#16579 + $1.j = 0; //#16579 + for (;;) { //#16599 + if ($1.i >= $1.seq.length) { //#16580 + break; //#16580 + } //#16580 + $1.chars = $get($1.seq, $1.i); //#16581 + if ($eq($type($1.chars), 'arraytype')) { //#16595 + if ($get($1.chars, 0) <= -1000000) { //#16586 + $k[$j++] = $1.chars; //#16584 + $1.ence(); //#16584 + $1.addtocws(); //#16584 + } else { //#16586 + $k[$j++] = $1.chars; //#16586 if ($1[$get($1.encfuncs, $1.state)]() === true) { break; - } - $1.addtocws(); - } - } else { - $k[$j++] = $a([ $get($1.latchcws, $1.chars) ]); - $1.addtocws(); - if ($1.chars == $1.tl) { - $1.state = $1.T; - $1.submode = $1.A; - } - if ($1.chars == $1.nl) { - $1.state = $1.N; - } - if ($1.chars == $1.bl || $1.chars == $1.bl6) { - $1.state = $1.B; - } - if ($1.chars == $1.bs) { - $1.i = $1.i + 1; - $k[$j++] = $get($1.seq, $1.i); - $1.encb(); - $1.addtocws(); - } - } - $1.i = $1.i + 1; - } - $1.datcws = $geti($1.datcws, 0, $1.j); - } - $1.metrics = $a([ $a([ 1, 11, 7, 1, 0, 9 ]), $a([ 1, 14, 7, 8, 0, 8 ]), $a([ 1, 17, 7, 36, 0, 36 ]), $a([ 1, 20, 8, 19, 0, 19 ]), $a([ 1, 24, 8, 9, 0, 17 ]), $a([ 1, 28, 8, 25, 0, 33 ]), $a([ 2, 8, 8, 1, 0, 1 ]), $a([ 2, 11, 9, 1, 0, 9 ]), $a([ 2, 14, 9, 8, 0, 8 ]), $a([ 2, 17, 10, 36, 0, 36 ]), $a([ 2, 20, 11, 19, 0, 19 ]), $a([ 2, 23, 13, 9, 0, 17 ]), $a([ 2, 26, 15, 27, 0, 35 ]), $a([ 3, 6, 12, 1, 1, 1 ]), $a([ 3, 8, 14, 7, 7, 7 ]), $a([ 3, 10, 16, 15, 15, 15 ]), $a([ 3, 12, 18, 25, 25, 25 ]), $a([ 3, 15, 21, 37, 37, 37 ]), $a([ 3, 20, 26, 1, 17, 33 ]), $a([ 3, 26, 32, 1, 9, 17 ]), $a([ 3, 32, 38, 21, 29, 37 ]), $a([ 3, 38, 44, 15, 31, 47 ]), $a([ 3, 44, 50, 1, 25, 49 ]), $a([ 4, 4, 8, 47, 19, 43 ]), $a([ 4, 6, 12, 1, 1, 1 ]), $a([ 4, 8, 14, 7, 7, 7 ]), $a([ 4, 10, 16, 15, 15, 15 ]), $a([ 4, 12, 18, 25, 25, 25 ]), $a([ 4, 15, 21, 37, 37, 37 ]), $a([ 4, 20, 26, 1, 17, 33 ]), $a([ 4, 26, 32, 1, 9, 17 ]), $a([ 4, 32, 38, 21, 29, 37 ]), $a([ 4, 38, 44, 15, 31, 47 ]), $a([ 4, 44, 50, 1, 25, 49 ]) ]); - $1.ccametrics = $a([ $a([ 2, 5, 4, 39, 0, 19 ]), $a([ 2, 6, 4, 1, 0, 33 ]), $a([ 2, 7, 5, 32, 0, 12 ]), $a([ 2, 8, 5, 8, 0, 40 ]), $a([ 2, 9, 6, 14, 0, 46 ]), $a([ 2, 10, 6, 43, 0, 23 ]), $a([ 2, 12, 7, 20, 0, 52 ]), $a([ 3, 4, 4, 11, 43, 23 ]), $a([ 3, 5, 5, 1, 33, 13 ]), $a([ 3, 6, 6, 5, 37, 17 ]), $a([ 3, 7, 7, 15, 47, 27 ]), $a([ 3, 8, 7, 21, 1, 33 ]), $a([ 4, 3, 4, 40, 20, 52 ]), $a([ 4, 4, 5, 43, 23, 3 ]), $a([ 4, 5, 6, 46, 26, 6 ]), $a([ 4, 6, 7, 34, 14, 46 ]), $a([ 4, 7, 8, 29, 9, 41 ]) ]); - if ($1.cca) { - $1.metrics = $1.ccametrics; - } - $1.urows = $1.rows; - $1.ucols = $1.columns; - $1.i = 0; - for (;;) { - $1.m = $get($1.metrics, $1.i); - $1.c = $get($1.m, 0); - $1.r = $get($1.m, 1); - $1.k = $get($1.m, 2); - $1.rapl = $get($1.m, 3); - $1.rapc = $get($1.m, 4); - $1.rapr = $get($1.m, 5); - $1.ncws = $f($1.r * $1.c - $1.k); - $1.okay = true; - if ($1.datcws.length > $1.ncws) { - $1.okay = false; - } - if ($1.urows != 0 && $1.urows != $1.r) { - $1.okay = false; - } - if ($1.ucols != 0 && $1.ucols != $1.c) { - $1.okay = false; - } - if ($1.okay) { - break; - } - $1.i = $1.i + 1; - } - $1.m = $1.datcws.length; - $1.n = $f($1.c * $1.r - $1.k); - $1.cws = $a($f($1.c * $1.r + 1)); - $puti($1.cws, 0, $1.datcws); - $k[$j++] = $1.cws; - $k[$j++] = $1.m; - $k[$j++] = Infinity; - for (var _E8 = 0, _E9 = $f($1.n - $1.m); _E8 < _E9; _E8++) { - $k[$j++] = 900; - } - var _EA = $a(); - var _EB = $k[--$j]; - $puti($k[--$j], _EB, _EA); - $k[$j++] = $1.cws; - $k[$j++] = $1.n; - $k[$j++] = Infinity; - for (var _EG = 0, _EH = $1.k; _EG < _EH; _EG++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - var _EI = $a(); - var _EJ = $k[--$j]; - $puti($k[--$j], _EJ, _EI); - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _EL = 0, _EM = 928; _EL < _EM; _EL++) { - var _EN = $k[--$j]; - $k[$j++] = _EN; - $k[$j++] = _EN * 3 % 929; - } - $1.rsalog = $a(); - $1.rslog = $a(929); - for (var _EQ = 1; _EQ <= 928; _EQ += 1) { - $put($1.rslog, $get($1.rsalog, _EQ), _EQ); - } + } //#16586 + $1.addtocws(); //#16586 + } //#16586 + } else { //#16595 + $k[$j++] = $a([$get($1.latchcws, $1.chars)]); //#16589 + $1.addtocws(); //#16589 + if ($1.chars == $1.tl) { //#16590 + $1.state = $1.T; //#16590 + $1.submode = $1.A; //#16590 + } //#16590 + if ($1.chars == $1.nl) { //#16591 + $1.state = $1.N; //#16591 + } //#16591 + if (($1.chars == $1.bl) || ($1.chars == $1.bl6)) { //#16592 + $1.state = $1.B; //#16592 + } //#16592 + if ($1.chars == $1.bs) { //#16596 + $1.i = $1.i + 1; //#16594 + $k[$j++] = $get($1.seq, $1.i); //#16595 + $1.encb(); //#16595 + $1.addtocws(); //#16595 + } //#16595 + } //#16595 + $1.i = $1.i + 1; //#16598 + } //#16598 + $1.datcws = $geti($1.datcws, 0, $1.j); //#16600 + } //#16600 + $1.metrics = $a([$a([1, 11, 7, 1, 0, 9]), $a([1, 14, 7, 8, 0, 8]), $a([1, 17, 7, 36, 0, 36]), $a([1, 20, 8, 19, 0, 19]), $a([1, 24, 8, 9, 0, 17]), $a([1, 28, 8, 25, 0, 33]), $a([2, 8, 8, 1, 0, 1]), $a([2, 11, 9, 1, 0, 9]), $a([2, 14, 9, 8, 0, 8]), $a([2, 17, 10, 36, 0, 36]), $a([2, 20, 11, 19, 0, 19]), $a([2, 23, 13, 9, 0, 17]), $a([2, 26, 15, 27, 0, 35]), $a([3, 6, 12, 1, 1, 1]), $a([3, 8, 14, 7, 7, 7]), $a([3, 10, 16, 15, 15, 15]), $a([3, 12, 18, 25, 25, 25]), $a([3, 15, 21, 37, 37, 37]), $a([3, 20, 26, 1, 17, 33]), $a([3, 26, 32, 1, 9, 17]), $a([3, 32, 38, 21, 29, 37]), $a([3, 38, 44, 15, 31, 47]), $a([3, 44, 50, 1, 25, 49]), $a([4, 4, 8, 47, 19, 43]), $a([4, 6, 12, 1, 1, 1]), $a([4, 8, 14, 7, 7, 7]), $a([4, 10, 16, 15, 15, 15]), $a([4, 12, 18, 25, 25, 25]), $a([4, 15, 21, 37, 37, 37]), $a([4, 20, 26, 1, 17, 33]), $a([4, 26, 32, 1, 9, 17]), $a([4, 32, 38, 21, 29, 37]), $a([4, 38, 44, 15, 31, 47]), $a([4, 44, 50, 1, 25, 49])]); //#16640 + $1.ccametrics = $a([$a([2, 5, 4, 39, 0, 19]), $a([2, 6, 4, 1, 0, 33]), $a([2, 7, 5, 32, 0, 12]), $a([2, 8, 5, 8, 0, 40]), $a([2, 9, 6, 14, 0, 46]), $a([2, 10, 6, 43, 0, 23]), $a([2, 12, 7, 20, 0, 52]), $a([3, 4, 4, 11, 43, 23]), $a([3, 5, 5, 1, 33, 13]), $a([3, 6, 6, 5, 37, 17]), $a([3, 7, 7, 15, 47, 27]), $a([3, 8, 7, 21, 1, 33]), $a([4, 3, 4, 40, 20, 52]), $a([4, 4, 5, 43, 23, 3]), $a([4, 5, 6, 46, 26, 6]), $a([4, 6, 7, 34, 14, 46]), $a([4, 7, 8, 29, 9, 41])]); //#16662 + if ($1.cca) { //#16663 + $1.metrics = $1.ccametrics; //#16663 + } //#16663 + $1.urows = $1.rows; //#16666 + $1.ucols = $1.columns; //#16667 + $1.i = 0; //#16668 + for (;;) { //#16684 + $1.m = $get($1.metrics, $1.i); //#16670 + $1.c = $get($1.m, 0); //#16671 + $1.r = $get($1.m, 1); //#16672 + $1.k = $get($1.m, 2); //#16673 + $1.rapl = $get($1.m, 3); //#16674 + $1.rapc = $get($1.m, 4); //#16675 + $1.rapr = $get($1.m, 5); //#16676 + $1.ncws = $f(($1.r * $1.c) - $1.k); //#16677 + $1.okay = true; //#16678 + if ($1.datcws.length > $1.ncws) { //#16679 + $1.okay = false; //#16679 + } //#16679 + if (($1.urows != 0) && ($1.urows != $1.r)) { //#16680 + $1.okay = false; //#16680 + } //#16680 + if (($1.ucols != 0) && ($1.ucols != $1.c)) { //#16681 + $1.okay = false; //#16681 + } //#16681 + if ($1.okay) { //#16682 + break; //#16682 + } //#16682 + $1.i = $1.i + 1; //#16683 + } //#16683 + $1.m = $1.datcws.length; //#16685 + $1.n = $f(($1.c * $1.r) - $1.k); //#16688 + $1.cws = $a($f(($1.c * $1.r) + 1)); //#16689 + $puti($1.cws, 0, $1.datcws); //#16690 + $k[$j++] = $1.cws; //#16691 + $k[$j++] = $1.m; //#16691 + $k[$j++] = Infinity; //#16691 + for (var _E8 = 0, _E9 = $f($1.n - $1.m); _E8 < _E9; _E8++) { //#16691 + $k[$j++] = 900; //#16691 + } //#16691 + var _EA = $a(); //#16691 + var _EB = $k[--$j]; //#16691 + $puti($k[--$j], _EB, _EA); //#16691 + $k[$j++] = $1.cws; //#16692 + $k[$j++] = $1.n; //#16692 + $k[$j++] = Infinity; //#16692 + for (var _EG = 0, _EH = $1.k; _EG < _EH; _EG++) { //#16692 + $k[$j++] = 0; //#16692 + } //#16692 + $k[$j++] = 0; //#16692 + var _EI = $a(); //#16692 + var _EJ = $k[--$j]; //#16692 + $puti($k[--$j], _EJ, _EI); //#16692 + $k[$j++] = Infinity; //#16695 + $k[$j++] = 1; //#16695 + for (var _EL = 0, _EM = 928; _EL < _EM; _EL++) { //#16695 + var _EN = $k[--$j]; //#16695 + $k[$j++] = _EN; //#16695 + $k[$j++] = (_EN * 3) % 929; //#16695 + } //#16695 + $1.rsalog = $a(); //#16695 + $1.rslog = $a(929); //#16696 + for (var _EQ = 1; _EQ <= 928; _EQ += 1) { //#16697 + $put($1.rslog, $get($1.rsalog, _EQ), _EQ); //#16697 + } //#16697 $1.rsprod = function() { - var _EU = $k[--$j]; - var _EV = $k[--$j]; - $k[$j++] = _EV; - $k[$j++] = _EU; - if (_EU != 0 && _EV != 0) { - var _EY = $get($1.rslog, $k[--$j]); - var _Ed = $get($1.rsalog, $f(_EY + $get($1.rslog, $k[--$j])) % 928); - $k[$j++] = _Ed; - } else { - $j -= 2; - $k[$j++] = 0; - } - }; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _Ef = 0, _Eg = $1.k; _Ef < _Eg; _Ef++) { - $k[$j++] = 0; - } - $1.coeffs = $a(); - for (var _Ek = 1, _Ej = $1.k; _Ek <= _Ej; _Ek += 1) { - $1.i = _Ek; - $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); - for (var _Er = $1.i - 1; _Er >= 1; _Er -= 1) { - $1.j = _Er; - $k[$j++] = $1.coeffs; - $k[$j++] = $1.j; - $k[$j++] = $get($1.coeffs, $1.j - 1); - $k[$j++] = $get($1.coeffs, $1.j); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _F3 = $k[--$j]; - var _F4 = $k[--$j]; - var _F5 = $k[--$j]; - $put($k[--$j], _F5, $f(_F4 + _F3) % 929); - } - $k[$j++] = $1.coeffs; - $k[$j++] = 0; - $k[$j++] = $get($1.coeffs, 0); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _FD = $k[--$j]; - var _FE = $k[--$j]; - $put($k[--$j], _FE, _FD); - } - $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); - for (var _FK = $1.coeffs.length - 1; _FK >= 0; _FK -= 2) { - var _FL = $1.coeffs; - $put(_FL, _FK, $f(929 - $get(_FL, _FK))); - } - for (var _FP = 0, _FO = $f($1.n - 1); _FP <= _FO; _FP += 1) { - $1.t = $f($get($1.cws, _FP) + $get($1.cws, $1.n)) % 929; - for (var _FX = 0, _FW = $f($1.k - 1); _FX <= _FW; _FX += 1) { - $1.j = _FX; - $put($1.cws, $f($1.n + $1.j), $f($get($1.cws, $f($f($1.n + $1.j) + 1)) + $f(929 - $1.t * $get($1.coeffs, $f($f($1.k - $1.j) - 1)) % 929)) % 929); - } - } - for (var _Fo = $1.n, _Fn = $f($1.n + $1.k); _Fo <= _Fn; _Fo += 1) { - $put($1.cws, _Fo, $f(929 - $get($1.cws, _Fo)) % 929); - } - $1.cws = $geti($1.cws, 0, $1.cws.length - 1); - $1.clusters = $a([ $a([ 120256, 125680, 128380, 120032, 125560, 128318, 108736, 119920, 108640, 86080, 108592, 86048, 110016, 120560, 125820, 109792, 120440, 125758, 88256, 109680, 88160, 89536, 110320, 120700, 89312, 110200, 120638, 89200, 110140, 89840, 110460, 89720, 110398, 89980, 128506, 119520, 125304, 128190, 107712, 119408, 125244, 107616, 119352, 84032, 107568, 119324, 84e3, 107544, 83984, 108256, 119672, 125374, 85184, 108144, 119612, 85088, 108088, 119582, 85040, 108060, 85728, 108408, 119742, 85616, 108348, 85560, 108318, 85880, 108478, 85820, 85790, 107200, 119152, 125116, 107104, 119096, 125086, 83008, 107056, 119068, 82976, 107032, 82960, 82952, 83648, 107376, 119228, 83552, 107320, 119198, 83504, 107292, 83480, 83468, 83824, 107452, 83768, 107422, 83740, 83900, 106848, 118968, 125022, 82496, 106800, 118940, 82464, 106776, 118926, 82448, 106764, 82440, 106758, 82784, 106936, 119006, 82736, 106908, 82712, 106894, 82700, 82694, 106974, 82830, 82240, 106672, 118876, 82208, 106648, 118862, 82192, 106636, 82184, 106630, 82180, 82352, 82328, 82316, 82080, 118830, 106572, 106566, 82050, 117472, 124280, 127678, 103616, 117360, 124220, 103520, 117304, 124190, 75840, 103472, 75808, 104160, 117624, 124350, 76992, 104048, 117564, 76896, 103992, 76848, 76824, 77536, 104312, 117694, 77424, 104252, 77368, 77340, 77688, 104382, 77628, 77758, 121536, 126320, 128700, 121440, 126264, 128670, 111680, 121392, 126236, 111648, 121368, 126222, 111632, 121356, 103104, 117104, 124092, 112320, 103008, 117048, 124062, 112224, 121656, 126366, 93248, 74784, 102936, 117006, 93216, 112152, 93200, 75456, 103280, 117180, 93888, 75360, 103224, 117150, 93792, 112440, 121758, 93744, 75288, 93720, 75632, 103356, 94064, 75576, 103326, 94008, 112542, 93980, 75708, 94140, 75678, 94110, 121184, 126136, 128606, 111168, 121136, 126108, 111136, 121112, 126094, 111120, 121100, 111112, 111108, 102752, 116920, 123998, 111456, 102704, 116892, 91712, 74272, 121244, 116878, 91680, 74256, 102668, 91664, 111372, 102662, 74244, 74592, 102840, 116958, 92e3, 74544, 102812, 91952, 111516, 102798, 91928, 74508, 74502, 74680, 102878, 92088, 74652, 92060, 74638, 92046, 92126, 110912, 121008, 126044, 110880, 120984, 126030, 110864, 120972, 110856, 120966, 110852, 110850, 74048, 102576, 116828, 90944, 74016, 102552, 116814, 90912, 111e3, 121038, 90896, 73992, 102534, 90888, 110982, 90884, 74160, 102620, 91056, 74136, 102606, 91032, 111054, 91020, 74118, 91014, 91100, 91086, 110752, 120920, 125998, 110736, 120908, 110728, 120902, 110724, 110722, 73888, 102488, 116782, 90528, 73872, 102476, 90512, 110796, 102470, 90504, 73860, 90500, 73858, 73944, 90584, 90572, 90566, 120876, 120870, 110658, 102444, 73800, 90312, 90308, 90306, 101056, 116080, 123580, 100960, 116024, 70720, 100912, 115996, 70688, 100888, 70672, 70664, 71360, 101232, 116156, 71264, 101176, 116126, 71216, 101148, 71192, 71180, 71536, 101308, 71480, 101278, 71452, 71612, 71582, 118112, 124600, 127838, 105024, 118064, 124572, 104992, 118040, 124558, 104976, 118028, 104968, 118022, 100704, 115896, 123486, 105312, 100656, 115868, 79424, 70176, 118172, 115854, 79392, 105240, 100620, 79376, 70152, 79368, 70496, 100792, 115934, 79712, 70448, 118238, 79664, 105372, 100750, 79640, 70412, 79628, 70584, 100830, 79800, 70556, 79772, 70542, 70622, 79838, 122176, 126640, 128860, 122144, 126616, 128846, 122128, 126604, 122120, 126598, 122116, 104768, 117936, 124508, 113472, 104736, 126684, 124494, 113440, 122264, 126670, 113424, 104712, 117894, 113416, 122246, 104706, 69952, 100528, 115804, 78656, 69920, 100504, 115790, 96064, 78624, 104856, 117966, 96032, 113560, 122318, 100486, 96016, 78600, 104838, 96008, 69890, 70064, 100572, 78768, 70040, 100558, 96176, 78744, 104910, 96152, 113614, 70022, 78726, 70108, 78812, 70094, 96220, 78798, 122016, 126552, 128814, 122e3, 126540, 121992, 126534, 121988, 121986, 104608, 117848, 124462, 113056, 104592, 126574, 113040, 122060, 117830, 113032, 104580, 113028, 104578, 113026, 69792, 100440, 115758, 78240, 69776, 100428, 95136, 78224, 104652, 100422, 95120, 113100, 69764, 95112, 78212, 69762, 78210, 69848, 100462, 78296, 69836, 95192, 78284, 69830, 95180, 78278, 69870, 95214, 121936, 126508, 121928, 126502, 121924, 121922, 104528, 117804, 112848, 104520, 117798, 112840, 121958, 112836, 104514, 112834, 69712, 100396, 78032, 69704, 100390, 94672, 78024, 104550, 94664, 112870, 69698, 94660, 78018, 94658, 78060, 94700, 94694, 126486, 121890, 117782, 104484, 104482, 69672, 77928, 94440, 69666, 77922, 99680, 68160, 99632, 68128, 99608, 115342, 68112, 99596, 68104, 99590, 68448, 99768, 115422, 68400, 99740, 68376, 99726, 68364, 68358, 68536, 99806, 68508, 68494, 68574, 101696, 116400, 123740, 101664, 116376, 101648, 116364, 101640, 116358, 101636, 67904, 99504, 115292, 72512, 67872, 116444, 115278, 72480, 101784, 116430, 72464, 67848, 99462, 72456, 101766, 67842, 68016, 99548, 72624, 67992, 99534, 72600, 101838, 72588, 67974, 68060, 72668, 68046, 72654, 118432, 124760, 127918, 118416, 124748, 118408, 124742, 118404, 118402, 101536, 116312, 105888, 101520, 116300, 105872, 118476, 116294, 105864, 101508, 105860, 101506, 105858, 67744, 99416, 72096, 67728, 116334, 80800, 72080, 101580, 99398, 80784, 105932, 67716, 80776, 72068, 67714, 72066, 67800, 99438, 72152, 67788, 80856, 72140, 67782, 80844, 72134, 67822, 72174, 80878, 126800, 128940, 126792, 128934, 126788, 126786, 118352, 124716, 122576, 126828, 124710, 122568, 126822, 122564, 118338, 122562, 101456, 116268, 105680, 101448, 116262, 114128, 105672, 118374, 114120, 122598, 101442, 114116, 105666, 114114, 67664, 99372, 71888, 67656, 99366, 80336, 71880, 101478, 97232, 80328, 105702, 67650, 97224, 114150, 71874, 97220, 67692, 71916, 67686, 80364, 71910, 97260, 80358, 97254, 126760, 128918, 126756, 126754, 118312, 124694, 122472, 126774, 122468, 118306, 122466, 101416, 116246, 105576, 101412, 113896, 105572, 101410, 113892, 105570, 113890, 67624, 99350, 71784, 101430, 80104, 71780, 67618, 96744, 80100, 71778, 96740, 80098, 96738, 71798, 96758, 126738, 122420, 122418, 105524, 113780, 113778, 71732, 79988, 96500, 96498, 66880, 66848, 98968, 66832, 66824, 66820, 66992, 66968, 66956, 66950, 67036, 67022, 1e5, 99984, 115532, 99976, 115526, 99972, 99970, 66720, 98904, 69024, 100056, 98892, 69008, 100044, 69e3, 100038, 68996, 66690, 68994, 66776, 98926, 69080, 100078, 69068, 66758, 69062, 66798, 69102, 116560, 116552, 116548, 116546, 99920, 102096, 116588, 115494, 102088, 116582, 102084, 99906, 102082, 66640, 68816, 66632, 98854, 73168, 68808, 66628, 73160, 68804, 66626, 73156, 68802, 66668, 68844, 66662, 73196, 68838, 73190, 124840, 124836, 124834, 116520, 118632, 124854, 118628, 116514, 118626, 99880, 115478, 101992, 116534, 106216, 101988, 99874, 106212, 101986, 106210, 66600, 98838, 68712, 99894, 72936, 68708, 66594, 81384, 72932, 68706, 81380, 72930, 66614, 68726, 72950, 81398, 128980, 128978, 124820, 126900, 124818, 126898, 116500, 118580, 116498, 122740, 118578, 122738, 99860, 101940, 99858, 106100, 101938, 114420 ]), $a([ 128352, 129720, 125504, 128304, 129692, 125472, 128280, 129678, 125456, 128268, 125448, 128262, 125444, 125792, 128440, 129758, 120384, 125744, 128412, 120352, 125720, 128398, 120336, 125708, 120328, 125702, 120324, 120672, 125880, 128478, 110144, 120624, 125852, 110112, 120600, 125838, 110096, 120588, 110088, 120582, 110084, 110432, 120760, 125918, 89664, 110384, 120732, 89632, 110360, 120718, 89616, 110348, 89608, 110342, 89952, 110520, 120798, 89904, 110492, 89880, 110478, 89868, 90040, 110558, 90012, 89998, 125248, 128176, 129628, 125216, 128152, 129614, 125200, 128140, 125192, 128134, 125188, 125186, 119616, 125360, 128220, 119584, 125336, 128206, 119568, 125324, 119560, 125318, 119556, 119554, 108352, 119728, 125404, 108320, 119704, 125390, 108304, 119692, 108296, 119686, 108292, 108290, 85824, 108464, 119772, 85792, 108440, 119758, 85776, 108428, 85768, 108422, 85764, 85936, 108508, 85912, 108494, 85900, 85894, 85980, 85966, 125088, 128088, 129582, 125072, 128076, 125064, 128070, 125060, 125058, 119200, 125144, 128110, 119184, 125132, 119176, 125126, 119172, 119170, 107424, 119256, 125166, 107408, 119244, 107400, 119238, 107396, 107394, 83872, 107480, 119278, 83856, 107468, 83848, 107462, 83844, 83842, 83928, 107502, 83916, 83910, 83950, 125008, 128044, 125e3, 128038, 124996, 124994, 118992, 125036, 118984, 125030, 118980, 118978, 106960, 119020, 106952, 119014, 106948, 106946, 82896, 106988, 82888, 106982, 82884, 82882, 82924, 82918, 124968, 128022, 124964, 124962, 118888, 124982, 118884, 118882, 106728, 118902, 106724, 106722, 82408, 106742, 82404, 82402, 124948, 124946, 118836, 118834, 106612, 106610, 124224, 127664, 129372, 124192, 127640, 129358, 124176, 127628, 124168, 127622, 124164, 124162, 117568, 124336, 127708, 117536, 124312, 127694, 117520, 124300, 117512, 124294, 117508, 117506, 104256, 117680, 124380, 104224, 117656, 124366, 104208, 117644, 104200, 117638, 104196, 104194, 77632, 104368, 117724, 77600, 104344, 117710, 77584, 104332, 77576, 104326, 77572, 77744, 104412, 77720, 104398, 77708, 77702, 77788, 77774, 128672, 129880, 93168, 128656, 129868, 92664, 128648, 129862, 92412, 128644, 128642, 124064, 127576, 129326, 126368, 124048, 129902, 126352, 128716, 127558, 126344, 124036, 126340, 124034, 126338, 117152, 124120, 127598, 121760, 117136, 124108, 121744, 126412, 124102, 121736, 117124, 121732, 117122, 121730, 103328, 117208, 124142, 112544, 103312, 117196, 112528, 121804, 117190, 112520, 103300, 112516, 103298, 112514, 75680, 103384, 117230, 94112, 75664, 103372, 94096, 112588, 103366, 94088, 75652, 94084, 75650, 75736, 103406, 94168, 75724, 94156, 75718, 94150, 75758, 128592, 129836, 91640, 128584, 129830, 91388, 128580, 91262, 128578, 123984, 127532, 126160, 123976, 127526, 126152, 128614, 126148, 123970, 126146, 116944, 124012, 121296, 116936, 124006, 121288, 126182, 121284, 116930, 121282, 102864, 116972, 111568, 102856, 116966, 111560, 121318, 111556, 102850, 111554, 74704, 102892, 92112, 74696, 102886, 92104, 111590, 92100, 74690, 92098, 74732, 92140, 74726, 92134, 128552, 129814, 90876, 128548, 90750, 128546, 123944, 127510, 126056, 128566, 126052, 123938, 126050, 116840, 123958, 121064, 116836, 121060, 116834, 121058, 102632, 116854, 111080, 121078, 111076, 102626, 111074, 74216, 102646, 91112, 74212, 91108, 74210, 91106, 74230, 91126, 128532, 90494, 128530, 123924, 126004, 123922, 126002, 116788, 120948, 116786, 120946, 102516, 110836, 102514, 110834, 73972, 90612, 73970, 90610, 128522, 123914, 125978, 116762, 120890, 102458, 110714, 123552, 127320, 129198, 123536, 127308, 123528, 127302, 123524, 123522, 116128, 123608, 127342, 116112, 123596, 116104, 123590, 116100, 116098, 101280, 116184, 123630, 101264, 116172, 101256, 116166, 101252, 101250, 71584, 101336, 116206, 71568, 101324, 71560, 101318, 71556, 71554, 71640, 101358, 71628, 71622, 71662, 127824, 129452, 79352, 127816, 129446, 79100, 127812, 78974, 127810, 123472, 127276, 124624, 123464, 127270, 124616, 127846, 124612, 123458, 124610, 115920, 123500, 118224, 115912, 123494, 118216, 124646, 118212, 115906, 118210, 100816, 115948, 105424, 100808, 115942, 105416, 118246, 105412, 100802, 105410, 70608, 100844, 79824, 70600, 100838, 79816, 105446, 79812, 70594, 79810, 70636, 79852, 70630, 79846, 129960, 95728, 113404, 129956, 95480, 113278, 129954, 95356, 95294, 127784, 129430, 78588, 128872, 129974, 95996, 78462, 128868, 127778, 95870, 128866, 123432, 127254, 124520, 123428, 126696, 128886, 123426, 126692, 124514, 126690, 115816, 123446, 117992, 115812, 122344, 117988, 115810, 122340, 117986, 122338, 100584, 115830, 104936, 100580, 113640, 104932, 100578, 113636, 104930, 113634, 70120, 100598, 78824, 70116, 96232, 78820, 70114, 96228, 78818, 96226, 70134, 78838, 129940, 94968, 113022, 129938, 94844, 94782, 127764, 78206, 128820, 127762, 95102, 128818, 123412, 124468, 123410, 126580, 124466, 126578, 115764, 117876, 115762, 122100, 117874, 122098, 100468, 104692, 100466, 113140, 104690, 113138, 69876, 78324, 69874, 95220, 78322, 95218, 129930, 94588, 94526, 127754, 128794, 123402, 124442, 126522, 115738, 117818, 121978, 100410, 104570, 112890, 69754, 78074, 94714, 94398, 123216, 127148, 123208, 127142, 123204, 123202, 115408, 123244, 115400, 123238, 115396, 115394, 99792, 115436, 99784, 115430, 99780, 99778, 68560, 99820, 68552, 99814, 68548, 68546, 68588, 68582, 127400, 129238, 72444, 127396, 72318, 127394, 123176, 127126, 123752, 123172, 123748, 123170, 123746, 115304, 123190, 116456, 115300, 116452, 115298, 116450, 99560, 115318, 101864, 99556, 101860, 99554, 101858, 68072, 99574, 72680, 68068, 72676, 68066, 72674, 68086, 72694, 129492, 80632, 105854, 129490, 80508, 80446, 127380, 72062, 127924, 127378, 80766, 127922, 123156, 123700, 123154, 124788, 123698, 124786, 115252, 116340, 115250, 118516, 116338, 118514, 99444, 101620, 99442, 105972, 101618, 105970, 67828, 72180, 67826, 80884, 72178, 80882, 97008, 114044, 96888, 113982, 96828, 96798, 129482, 80252, 130010, 97148, 80190, 97086, 127370, 127898, 128954, 123146, 123674, 124730, 126842, 115226, 116282, 118394, 122618, 99386, 101498, 105722, 114170, 67706, 71930, 80378, 96632, 113854, 96572, 96542, 80062, 96702, 96444, 96414, 96350, 123048, 123044, 123042, 115048, 123062, 115044, 115042, 99048, 115062, 99044, 99042, 67048, 99062, 67044, 67042, 67062, 127188, 68990, 127186, 123028, 123316, 123026, 123314, 114996, 115572, 114994, 115570, 98932, 100084, 98930, 100082, 66804, 69108, 66802, 69106, 129258, 73084, 73022, 127178, 127450, 123018, 123290, 123834, 114970, 115514, 116602, 98874, 99962, 102138, 66682, 68858, 73210, 81272, 106174, 81212, 81182, 72894, 81342, 97648, 114364, 97592, 114334, 97564, 97550, 81084, 97724, 81054, 97694, 97464, 114270, 97436, 97422, 80990, 97502, 97372, 97358, 97326, 114868, 114866, 98676, 98674, 66292, 66290, 123098, 114842, 115130, 98618, 99194, 66170, 67322, 69310, 73404, 73374, 81592, 106334, 81564, 81550, 73310, 81630, 97968, 114524, 97944, 114510, 97932, 97926, 81500, 98012, 81486, 97998, 97880, 114478, 97868, 97862, 81454, 97902, 97836, 97830, 69470, 73564, 73550, 81752, 106414, 81740, 81734, 73518, 81774, 81708, 81702 ]), $a([ 109536, 120312, 86976, 109040, 120060, 86496, 108792, 119934, 86256, 108668, 86136, 129744, 89056, 110072, 129736, 88560, 109820, 129732, 88312, 109694, 129730, 88188, 128464, 129772, 89592, 128456, 129766, 89340, 128452, 89214, 128450, 125904, 128492, 125896, 128486, 125892, 125890, 120784, 125932, 120776, 125926, 120772, 120770, 110544, 120812, 110536, 120806, 110532, 84928, 108016, 119548, 84448, 107768, 119422, 84208, 107644, 84088, 107582, 84028, 129640, 85488, 108284, 129636, 85240, 108158, 129634, 85116, 85054, 128232, 129654, 85756, 128228, 85630, 128226, 125416, 128246, 125412, 125410, 119784, 125430, 119780, 119778, 108520, 119798, 108516, 108514, 83424, 107256, 119166, 83184, 107132, 83064, 107070, 83004, 82974, 129588, 83704, 107390, 129586, 83580, 83518, 128116, 83838, 128114, 125172, 125170, 119284, 119282, 107508, 107506, 82672, 106876, 82552, 106814, 82492, 82462, 129562, 82812, 82750, 128058, 125050, 119034, 82296, 106686, 82236, 82206, 82366, 82108, 82078, 76736, 103920, 117500, 76256, 103672, 117374, 76016, 103548, 75896, 103486, 75836, 129384, 77296, 104188, 129380, 77048, 104062, 129378, 76924, 76862, 127720, 129398, 77564, 127716, 77438, 127714, 124392, 127734, 124388, 124386, 117736, 124406, 117732, 117730, 104424, 117750, 104420, 104418, 112096, 121592, 126334, 92608, 111856, 121468, 92384, 111736, 121406, 92272, 111676, 92216, 111646, 92188, 75232, 103160, 117118, 93664, 74992, 103036, 93424, 112252, 102974, 93304, 74812, 93244, 74782, 93214, 129332, 75512, 103294, 129908, 129330, 93944, 75388, 129906, 93820, 75326, 93758, 127604, 75646, 128756, 127602, 94078, 128754, 124148, 126452, 124146, 126450, 117236, 121844, 117234, 121842, 103412, 103410, 91584, 111344, 121212, 91360, 111224, 121150, 91248, 111164, 91192, 111134, 91164, 91150, 74480, 102780, 91888, 74360, 102718, 91768, 111422, 91708, 74270, 91678, 129306, 74620, 129850, 92028, 74558, 91966, 127546, 128634, 124026, 126202, 116986, 121338, 102906, 90848, 110968, 121022, 90736, 110908, 90680, 110878, 90652, 90638, 74104, 102590, 91e3, 74044, 90940, 74014, 90910, 74174, 91070, 90480, 110780, 90424, 110750, 90396, 90382, 73916, 90556, 73886, 90526, 90296, 110686, 90268, 90254, 73822, 90334, 90204, 90190, 71136, 101112, 116094, 70896, 100988, 70776, 100926, 70716, 70686, 129204, 71416, 101246, 129202, 71292, 71230, 127348, 71550, 127346, 123636, 123634, 116212, 116210, 101364, 101362, 79296, 105200, 118140, 79072, 105080, 118078, 78960, 105020, 78904, 104990, 78876, 78862, 70384, 100732, 79600, 70264, 100670, 79480, 105278, 79420, 70174, 79390, 129178, 70524, 129466, 79740, 70462, 79678, 127290, 127866, 123514, 124666, 115962, 118266, 100858, 113376, 122232, 126654, 95424, 113264, 122172, 95328, 113208, 122142, 95280, 113180, 95256, 113166, 95244, 78560, 104824, 117950, 95968, 78448, 104764, 95856, 113468, 104734, 95800, 78364, 95772, 78350, 95758, 70008, 100542, 78712, 69948, 96120, 78652, 69918, 96060, 78622, 96030, 70078, 78782, 96190, 94912, 113008, 122044, 94816, 112952, 122014, 94768, 112924, 94744, 112910, 94732, 94726, 78192, 104636, 95088, 78136, 104606, 95032, 113054, 95004, 78094, 94990, 69820, 78268, 69790, 95164, 78238, 95134, 94560, 112824, 121950, 94512, 112796, 94488, 112782, 94476, 94470, 78008, 104542, 94648, 77980, 94620, 77966, 94606, 69726, 78046, 94686, 94384, 112732, 94360, 112718, 94348, 94342, 77916, 94428, 77902, 94414, 94296, 112686, 94284, 94278, 77870, 94318, 94252, 94246, 68336, 99708, 68216, 99646, 68156, 68126, 68476, 68414, 127162, 123258, 115450, 99834, 72416, 101752, 116414, 72304, 101692, 72248, 101662, 72220, 72206, 67960, 99518, 72568, 67900, 72508, 67870, 72478, 68030, 72638, 80576, 105840, 118460, 80480, 105784, 118430, 80432, 105756, 80408, 105742, 80396, 80390, 72048, 101564, 80752, 71992, 101534, 80696, 71964, 80668, 71950, 80654, 67772, 72124, 67742, 80828, 72094, 80798, 114016, 122552, 126814, 96832, 113968, 122524, 96800, 113944, 122510, 96784, 113932, 96776, 113926, 96772, 80224, 105656, 118366, 97120, 80176, 105628, 97072, 114076, 105614, 97048, 80140, 97036, 80134, 97030, 71864, 101470, 80312, 71836, 97208, 80284, 71822, 97180, 80270, 97166, 67678, 71902, 80350, 97246, 96576, 113840, 122460, 96544, 113816, 122446, 96528, 113804, 96520, 113798, 96516, 96514, 80048, 105564, 96688, 80024, 105550, 96664, 113870, 96652, 80006, 96646, 71772, 80092, 71758, 96732, 80078, 96718, 96416, 113752, 122414, 96400, 113740, 96392, 113734, 96388, 96386, 79960, 105518, 96472, 79948, 96460, 79942, 96454, 71726, 79982, 96494, 96336, 113708, 96328, 113702, 96324, 96322, 79916, 96364, 79910, 96358, 96296, 113686, 96292, 96290, 79894, 96310, 66936, 99006, 66876, 66846, 67006, 68976, 100028, 68920, 99998, 68892, 68878, 66748, 69052, 66718, 69022, 73056, 102072, 116574, 73008, 102044, 72984, 102030, 72972, 72966, 68792, 99934, 73144, 68764, 73116, 68750, 73102, 66654, 68830, 73182, 81216, 106160, 118620, 81184, 106136, 118606, 81168, 106124, 81160, 106118, 81156, 81154, 72880, 101980, 81328, 72856, 101966, 81304, 106190, 81292, 72838, 81286, 68700, 72924, 68686, 81372, 72910, 81358, 114336, 122712, 126894, 114320, 122700, 114312, 122694, 114308, 114306, 81056, 106072, 118574, 97696, 81040, 106060, 97680, 114380, 106054, 97672, 81028, 97668, 81026, 97666, 72792, 101934, 81112, 72780, 97752, 81100, 72774, 97740, 81094, 97734, 68654, 72814, 81134, 97774, 114256, 122668, 114248, 122662, 114244, 114242, 80976, 106028, 97488, 80968, 106022, 97480, 114278, 97476, 80962, 97474, 72748, 81004, 72742, 97516, 80998, 97510, 114216, 122646, 114212, 114210, 80936, 106006, 97384, 80932, 97380, 80930, 97378, 72726, 80950, 97398, 114196, 114194, 80916, 97332, 80914, 97330, 66236, 66206, 67256, 99166, 67228, 67214, 66142, 67294, 69296, 100188, 69272, 100174, 69260, 69254, 67164, 69340, 67150, 69326, 73376, 102232, 116654, 73360, 102220, 73352, 102214, 73348, 73346, 69208, 100142, 73432, 102254, 73420, 69190, 73414, 67118, 69230, 73454, 106320, 118700, 106312, 118694, 106308, 106306, 73296, 102188, 81616, 106348, 102182, 81608, 73284, 81604, 73282, 81602, 69164, 73324, 69158, 81644, 73318, 81638, 122792, 126934, 122788, 122786, 106280, 118678, 114536, 106276, 114532, 106274, 114530, 73256, 102166, 81512, 73252, 98024, 81508, 73250, 98020, 81506, 98018, 69142, 73270, 81526, 98038, 122772, 122770, 106260, 114484, 106258, 114482, 73236, 81460, 73234, 97908, 81458, 97906, 122762, 106250, 114458, 73226, 81434, 97850, 66396, 66382, 67416, 99246, 67404, 67398, 66350, 67438, 69456, 100268, 69448, 100262, 69444, 69442, 67372, 69484, 67366, 69478, 102312, 116694, 102308, 102306, 69416, 100246, 73576, 102326, 73572, 69410, 73570, 67350, 69430, 73590, 118740, 118738, 102292, 106420, 102290, 106418, 69396, 73524, 69394, 81780, 73522, 81778, 118730, 102282, 106394, 69386, 73498, 81722, 66476, 66470, 67496, 99286, 67492, 67490, 66454, 67510, 100308, 100306, 67476, 69556, 67474, 69554, 116714 ]) ]); - $1.raps = $a([ $a([ 802, 930, 946, 818, 882, 890, 826, 954, 922, 986, 970, 906, 778, 794, 786, 914, 978, 982, 980, 916, 948, 932, 934, 942, 940, 936, 808, 812, 814, 806, 822, 950, 918, 790, 788, 820, 884, 868, 870, 878, 876, 872, 840, 856, 860, 862, 846, 844, 836, 838, 834, 866 ]), $a([ 718, 590, 622, 558, 550, 566, 534, 530, 538, 570, 562, 546, 610, 626, 634, 762, 754, 758, 630, 628, 612, 614, 582, 578, 706, 738, 742, 740, 748, 620, 556, 552, 616, 744, 712, 716, 708, 710, 646, 654, 652, 668, 664, 696, 688, 656, 720, 592, 600, 604, 732, 734 ]) ]); + var _EU = $k[--$j]; //#16701 + var _EV = $k[--$j]; //#16701 + $k[$j++] = _EV; //#16705 + $k[$j++] = _EU; //#16705 + if ((_EU != 0) && (_EV != 0)) { //#16704 + var _EY = $get($1.rslog, $k[--$j]); //#16702 + var _Ed = $get($1.rsalog, $f(_EY + $get($1.rslog, $k[--$j])) % 928); //#16702 + $k[$j++] = _Ed; //#16702 + } else { //#16704 + $j -= 2; //#16704 + $k[$j++] = 0; //#16704 + } //#16704 + }; //#16706 + $k[$j++] = Infinity; //#16709 + $k[$j++] = 1; //#16709 + for (var _Ef = 0, _Eg = $1.k; _Ef < _Eg; _Ef++) { //#16709 + $k[$j++] = 0; //#16709 + } //#16709 + $1.coeffs = $a(); //#16709 + for (var _Ek = 1, _Ej = $1.k; _Ek <= _Ej; _Ek += 1) { //#16718 + $1.i = _Ek; //#16711 + $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); //#16712 + for (var _Er = $1.i - 1; _Er >= 1; _Er -= 1) { //#16716 + $1.j = _Er; //#16714 + $k[$j++] = $1.coeffs; //#16715 + $k[$j++] = $1.j; //#16715 + $k[$j++] = $get($1.coeffs, $1.j - 1); //#16715 + $k[$j++] = $get($1.coeffs, $1.j); //#16715 + $k[$j++] = $get($1.rsalog, $1.i); //#16715 + $1.rsprod(); //#16715 + var _F3 = $k[--$j]; //#16715 + var _F4 = $k[--$j]; //#16715 + var _F5 = $k[--$j]; //#16715 + $put($k[--$j], _F5, $f(_F4 + _F3) % 929); //#16715 + } //#16715 + $k[$j++] = $1.coeffs; //#16717 + $k[$j++] = 0; //#16717 + $k[$j++] = $get($1.coeffs, 0); //#16717 + $k[$j++] = $get($1.rsalog, $1.i); //#16717 + $1.rsprod(); //#16717 + var _FD = $k[--$j]; //#16717 + var _FE = $k[--$j]; //#16717 + $put($k[--$j], _FE, _FD); //#16717 + } //#16717 + $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); //#16719 + for (var _FK = $1.coeffs.length - 1; _FK >= 0; _FK -= 2) { //#16720 + var _FL = $1.coeffs; //#16720 + $put(_FL, _FK, $f(929 - $get(_FL, _FK))); //#16720 + } //#16720 + for (var _FP = 0, _FO = $f($1.n - 1); _FP <= _FO; _FP += 1) { //#16729 + $1.t = $f($get($1.cws, _FP) + $get($1.cws, $1.n)) % 929; //#16724 + for (var _FX = 0, _FW = $f($1.k - 1); _FX <= _FW; _FX += 1) { //#16728 + $1.j = _FX; //#16726 + $put($1.cws, $f($1.n + $1.j), ($f($get($1.cws, $f($f($1.n + $1.j) + 1)) + ($f(929 - (($1.t * $get($1.coeffs, $f($f($1.k - $1.j) - 1))) % 929))))) % 929); //#16727 + } //#16727 + } //#16727 + for (var _Fo = $1.n, _Fn = $f($1.n + $1.k); _Fo <= _Fn; _Fo += 1) { //#16730 + $put($1.cws, _Fo, $f(929 - $get($1.cws, _Fo)) % 929); //#16730 + } //#16730 + $1.cws = $geti($1.cws, 0, $1.cws.length - 1); //#16733 + $1.clusters = $a([$a([120256, 125680, 128380, 120032, 125560, 128318, 108736, 119920, 108640, 86080, 108592, 86048, 110016, 120560, 125820, 109792, 120440, 125758, 88256, 109680, 88160, 89536, 110320, 120700, 89312, 110200, 120638, 89200, 110140, 89840, 110460, 89720, 110398, 89980, 128506, 119520, 125304, 128190, 107712, 119408, 125244, 107616, 119352, 84032, 107568, 119324, 84000, 107544, 83984, 108256, 119672, 125374, 85184, 108144, 119612, 85088, 108088, 119582, 85040, 108060, 85728, 108408, 119742, 85616, 108348, 85560, 108318, 85880, 108478, 85820, 85790, 107200, 119152, 125116, 107104, 119096, 125086, 83008, 107056, 119068, 82976, 107032, 82960, 82952, 83648, 107376, 119228, 83552, 107320, 119198, 83504, 107292, 83480, 83468, 83824, 107452, 83768, 107422, 83740, 83900, 106848, 118968, 125022, 82496, 106800, 118940, 82464, 106776, 118926, 82448, 106764, 82440, 106758, 82784, 106936, 119006, 82736, 106908, 82712, 106894, 82700, 82694, 106974, 82830, 82240, 106672, 118876, 82208, 106648, 118862, 82192, 106636, 82184, 106630, 82180, 82352, 82328, 82316, 82080, 118830, 106572, 106566, 82050, 117472, 124280, 127678, 103616, 117360, 124220, 103520, 117304, 124190, 75840, 103472, 75808, 104160, 117624, 124350, 76992, 104048, 117564, 76896, 103992, 76848, 76824, 77536, 104312, 117694, 77424, 104252, 77368, 77340, 77688, 104382, 77628, 77758, 121536, 126320, 128700, 121440, 126264, 128670, 111680, 121392, 126236, 111648, 121368, 126222, 111632, 121356, 103104, 117104, 124092, 112320, 103008, 117048, 124062, 112224, 121656, 126366, 93248, 74784, 102936, 117006, 93216, 112152, 93200, 75456, 103280, 117180, 93888, 75360, 103224, 117150, 93792, 112440, 121758, 93744, 75288, 93720, 75632, 103356, 94064, 75576, 103326, 94008, 112542, 93980, 75708, 94140, 75678, 94110, 121184, 126136, 128606, 111168, 121136, 126108, 111136, 121112, 126094, 111120, 121100, 111112, 111108, 102752, 116920, 123998, 111456, 102704, 116892, 91712, 74272, 121244, 116878, 91680, 74256, 102668, 91664, 111372, 102662, 74244, 74592, 102840, 116958, 92000, 74544, 102812, 91952, 111516, 102798, 91928, 74508, 74502, 74680, 102878, 92088, 74652, 92060, 74638, 92046, 92126, 110912, 121008, 126044, 110880, 120984, 126030, 110864, 120972, 110856, 120966, 110852, 110850, 74048, 102576, 116828, 90944, 74016, 102552, 116814, 90912, 111000, 121038, 90896, 73992, 102534, 90888, 110982, 90884, 74160, 102620, 91056, 74136, 102606, 91032, 111054, 91020, 74118, 91014, 91100, 91086, 110752, 120920, 125998, 110736, 120908, 110728, 120902, 110724, 110722, 73888, 102488, 116782, 90528, 73872, 102476, 90512, 110796, 102470, 90504, 73860, 90500, 73858, 73944, 90584, 90572, 90566, 120876, 120870, 110658, 102444, 73800, 90312, 90308, 90306, 101056, 116080, 123580, 100960, 116024, 70720, 100912, 115996, 70688, 100888, 70672, 70664, 71360, 101232, 116156, 71264, 101176, 116126, 71216, 101148, 71192, 71180, 71536, 101308, 71480, 101278, 71452, 71612, 71582, 118112, 124600, 127838, 105024, 118064, 124572, 104992, 118040, 124558, 104976, 118028, 104968, 118022, 100704, 115896, 123486, 105312, 100656, 115868, 79424, 70176, 118172, 115854, 79392, 105240, 100620, 79376, 70152, 79368, 70496, 100792, 115934, 79712, 70448, 118238, 79664, 105372, 100750, 79640, 70412, 79628, 70584, 100830, 79800, 70556, 79772, 70542, 70622, 79838, 122176, 126640, 128860, 122144, 126616, 128846, 122128, 126604, 122120, 126598, 122116, 104768, 117936, 124508, 113472, 104736, 126684, 124494, 113440, 122264, 126670, 113424, 104712, 117894, 113416, 122246, 104706, 69952, 100528, 115804, 78656, 69920, 100504, 115790, 96064, 78624, 104856, 117966, 96032, 113560, 122318, 100486, 96016, 78600, 104838, 96008, 69890, 70064, 100572, 78768, 70040, 100558, 96176, 78744, 104910, 96152, 113614, 70022, 78726, 70108, 78812, 70094, 96220, 78798, 122016, 126552, 128814, 122000, 126540, 121992, 126534, 121988, 121986, 104608, 117848, 124462, 113056, 104592, 126574, 113040, 122060, 117830, 113032, 104580, 113028, 104578, 113026, 69792, 100440, 115758, 78240, 69776, 100428, 95136, 78224, 104652, 100422, 95120, 113100, 69764, 95112, 78212, 69762, 78210, 69848, 100462, 78296, 69836, 95192, 78284, 69830, 95180, 78278, 69870, 95214, 121936, 126508, 121928, 126502, 121924, 121922, 104528, 117804, 112848, 104520, 117798, 112840, 121958, 112836, 104514, 112834, 69712, 100396, 78032, 69704, 100390, 94672, 78024, 104550, 94664, 112870, 69698, 94660, 78018, 94658, 78060, 94700, 94694, 126486, 121890, 117782, 104484, 104482, 69672, 77928, 94440, 69666, 77922, 99680, 68160, 99632, 68128, 99608, 115342, 68112, 99596, 68104, 99590, 68448, 99768, 115422, 68400, 99740, 68376, 99726, 68364, 68358, 68536, 99806, 68508, 68494, 68574, 101696, 116400, 123740, 101664, 116376, 101648, 116364, 101640, 116358, 101636, 67904, 99504, 115292, 72512, 67872, 116444, 115278, 72480, 101784, 116430, 72464, 67848, 99462, 72456, 101766, 67842, 68016, 99548, 72624, 67992, 99534, 72600, 101838, 72588, 67974, 68060, 72668, 68046, 72654, 118432, 124760, 127918, 118416, 124748, 118408, 124742, 118404, 118402, 101536, 116312, 105888, 101520, 116300, 105872, 118476, 116294, 105864, 101508, 105860, 101506, 105858, 67744, 99416, 72096, 67728, 116334, 80800, 72080, 101580, 99398, 80784, 105932, 67716, 80776, 72068, 67714, 72066, 67800, 99438, 72152, 67788, 80856, 72140, 67782, 80844, 72134, 67822, 72174, 80878, 126800, 128940, 126792, 128934, 126788, 126786, 118352, 124716, 122576, 126828, 124710, 122568, 126822, 122564, 118338, 122562, 101456, 116268, 105680, 101448, 116262, 114128, 105672, 118374, 114120, 122598, 101442, 114116, 105666, 114114, 67664, 99372, 71888, 67656, 99366, 80336, 71880, 101478, 97232, 80328, 105702, 67650, 97224, 114150, 71874, 97220, 67692, 71916, 67686, 80364, 71910, 97260, 80358, 97254, 126760, 128918, 126756, 126754, 118312, 124694, 122472, 126774, 122468, 118306, 122466, 101416, 116246, 105576, 101412, 113896, 105572, 101410, 113892, 105570, 113890, 67624, 99350, 71784, 101430, 80104, 71780, 67618, 96744, 80100, 71778, 96740, 80098, 96738, 71798, 96758, 126738, 122420, 122418, 105524, 113780, 113778, 71732, 79988, 96500, 96498, 66880, 66848, 98968, 66832, 66824, 66820, 66992, 66968, 66956, 66950, 67036, 67022, 100000, 99984, 115532, 99976, 115526, 99972, 99970, 66720, 98904, 69024, 100056, 98892, 69008, 100044, 69000, 100038, 68996, 66690, 68994, 66776, 98926, 69080, 100078, 69068, 66758, 69062, 66798, 69102, 116560, 116552, 116548, 116546, 99920, 102096, 116588, 115494, 102088, 116582, 102084, 99906, 102082, 66640, 68816, 66632, 98854, 73168, 68808, 66628, 73160, 68804, 66626, 73156, 68802, 66668, 68844, 66662, 73196, 68838, 73190, 124840, 124836, 124834, 116520, 118632, 124854, 118628, 116514, 118626, 99880, 115478, 101992, 116534, 106216, 101988, 99874, 106212, 101986, 106210, 66600, 98838, 68712, 99894, 72936, 68708, 66594, 81384, 72932, 68706, 81380, 72930, 66614, 68726, 72950, 81398, 128980, 128978, 124820, 126900, 124818, 126898, 116500, 118580, 116498, 122740, 118578, 122738, 99860, 101940, 99858, 106100, 101938, 114420]), $a([128352, 129720, 125504, 128304, 129692, 125472, 128280, 129678, 125456, 128268, 125448, 128262, 125444, 125792, 128440, 129758, 120384, 125744, 128412, 120352, 125720, 128398, 120336, 125708, 120328, 125702, 120324, 120672, 125880, 128478, 110144, 120624, 125852, 110112, 120600, 125838, 110096, 120588, 110088, 120582, 110084, 110432, 120760, 125918, 89664, 110384, 120732, 89632, 110360, 120718, 89616, 110348, 89608, 110342, 89952, 110520, 120798, 89904, 110492, 89880, 110478, 89868, 90040, 110558, 90012, 89998, 125248, 128176, 129628, 125216, 128152, 129614, 125200, 128140, 125192, 128134, 125188, 125186, 119616, 125360, 128220, 119584, 125336, 128206, 119568, 125324, 119560, 125318, 119556, 119554, 108352, 119728, 125404, 108320, 119704, 125390, 108304, 119692, 108296, 119686, 108292, 108290, 85824, 108464, 119772, 85792, 108440, 119758, 85776, 108428, 85768, 108422, 85764, 85936, 108508, 85912, 108494, 85900, 85894, 85980, 85966, 125088, 128088, 129582, 125072, 128076, 125064, 128070, 125060, 125058, 119200, 125144, 128110, 119184, 125132, 119176, 125126, 119172, 119170, 107424, 119256, 125166, 107408, 119244, 107400, 119238, 107396, 107394, 83872, 107480, 119278, 83856, 107468, 83848, 107462, 83844, 83842, 83928, 107502, 83916, 83910, 83950, 125008, 128044, 125000, 128038, 124996, 124994, 118992, 125036, 118984, 125030, 118980, 118978, 106960, 119020, 106952, 119014, 106948, 106946, 82896, 106988, 82888, 106982, 82884, 82882, 82924, 82918, 124968, 128022, 124964, 124962, 118888, 124982, 118884, 118882, 106728, 118902, 106724, 106722, 82408, 106742, 82404, 82402, 124948, 124946, 118836, 118834, 106612, 106610, 124224, 127664, 129372, 124192, 127640, 129358, 124176, 127628, 124168, 127622, 124164, 124162, 117568, 124336, 127708, 117536, 124312, 127694, 117520, 124300, 117512, 124294, 117508, 117506, 104256, 117680, 124380, 104224, 117656, 124366, 104208, 117644, 104200, 117638, 104196, 104194, 77632, 104368, 117724, 77600, 104344, 117710, 77584, 104332, 77576, 104326, 77572, 77744, 104412, 77720, 104398, 77708, 77702, 77788, 77774, 128672, 129880, 93168, 128656, 129868, 92664, 128648, 129862, 92412, 128644, 128642, 124064, 127576, 129326, 126368, 124048, 129902, 126352, 128716, 127558, 126344, 124036, 126340, 124034, 126338, 117152, 124120, 127598, 121760, 117136, 124108, 121744, 126412, 124102, 121736, 117124, 121732, 117122, 121730, 103328, 117208, 124142, 112544, 103312, 117196, 112528, 121804, 117190, 112520, 103300, 112516, 103298, 112514, 75680, 103384, 117230, 94112, 75664, 103372, 94096, 112588, 103366, 94088, 75652, 94084, 75650, 75736, 103406, 94168, 75724, 94156, 75718, 94150, 75758, 128592, 129836, 91640, 128584, 129830, 91388, 128580, 91262, 128578, 123984, 127532, 126160, 123976, 127526, 126152, 128614, 126148, 123970, 126146, 116944, 124012, 121296, 116936, 124006, 121288, 126182, 121284, 116930, 121282, 102864, 116972, 111568, 102856, 116966, 111560, 121318, 111556, 102850, 111554, 74704, 102892, 92112, 74696, 102886, 92104, 111590, 92100, 74690, 92098, 74732, 92140, 74726, 92134, 128552, 129814, 90876, 128548, 90750, 128546, 123944, 127510, 126056, 128566, 126052, 123938, 126050, 116840, 123958, 121064, 116836, 121060, 116834, 121058, 102632, 116854, 111080, 121078, 111076, 102626, 111074, 74216, 102646, 91112, 74212, 91108, 74210, 91106, 74230, 91126, 128532, 90494, 128530, 123924, 126004, 123922, 126002, 116788, 120948, 116786, 120946, 102516, 110836, 102514, 110834, 73972, 90612, 73970, 90610, 128522, 123914, 125978, 116762, 120890, 102458, 110714, 123552, 127320, 129198, 123536, 127308, 123528, 127302, 123524, 123522, 116128, 123608, 127342, 116112, 123596, 116104, 123590, 116100, 116098, 101280, 116184, 123630, 101264, 116172, 101256, 116166, 101252, 101250, 71584, 101336, 116206, 71568, 101324, 71560, 101318, 71556, 71554, 71640, 101358, 71628, 71622, 71662, 127824, 129452, 79352, 127816, 129446, 79100, 127812, 78974, 127810, 123472, 127276, 124624, 123464, 127270, 124616, 127846, 124612, 123458, 124610, 115920, 123500, 118224, 115912, 123494, 118216, 124646, 118212, 115906, 118210, 100816, 115948, 105424, 100808, 115942, 105416, 118246, 105412, 100802, 105410, 70608, 100844, 79824, 70600, 100838, 79816, 105446, 79812, 70594, 79810, 70636, 79852, 70630, 79846, 129960, 95728, 113404, 129956, 95480, 113278, 129954, 95356, 95294, 127784, 129430, 78588, 128872, 129974, 95996, 78462, 128868, 127778, 95870, 128866, 123432, 127254, 124520, 123428, 126696, 128886, 123426, 126692, 124514, 126690, 115816, 123446, 117992, 115812, 122344, 117988, 115810, 122340, 117986, 122338, 100584, 115830, 104936, 100580, 113640, 104932, 100578, 113636, 104930, 113634, 70120, 100598, 78824, 70116, 96232, 78820, 70114, 96228, 78818, 96226, 70134, 78838, 129940, 94968, 113022, 129938, 94844, 94782, 127764, 78206, 128820, 127762, 95102, 128818, 123412, 124468, 123410, 126580, 124466, 126578, 115764, 117876, 115762, 122100, 117874, 122098, 100468, 104692, 100466, 113140, 104690, 113138, 69876, 78324, 69874, 95220, 78322, 95218, 129930, 94588, 94526, 127754, 128794, 123402, 124442, 126522, 115738, 117818, 121978, 100410, 104570, 112890, 69754, 78074, 94714, 94398, 123216, 127148, 123208, 127142, 123204, 123202, 115408, 123244, 115400, 123238, 115396, 115394, 99792, 115436, 99784, 115430, 99780, 99778, 68560, 99820, 68552, 99814, 68548, 68546, 68588, 68582, 127400, 129238, 72444, 127396, 72318, 127394, 123176, 127126, 123752, 123172, 123748, 123170, 123746, 115304, 123190, 116456, 115300, 116452, 115298, 116450, 99560, 115318, 101864, 99556, 101860, 99554, 101858, 68072, 99574, 72680, 68068, 72676, 68066, 72674, 68086, 72694, 129492, 80632, 105854, 129490, 80508, 80446, 127380, 72062, 127924, 127378, 80766, 127922, 123156, 123700, 123154, 124788, 123698, 124786, 115252, 116340, 115250, 118516, 116338, 118514, 99444, 101620, 99442, 105972, 101618, 105970, 67828, 72180, 67826, 80884, 72178, 80882, 97008, 114044, 96888, 113982, 96828, 96798, 129482, 80252, 130010, 97148, 80190, 97086, 127370, 127898, 128954, 123146, 123674, 124730, 126842, 115226, 116282, 118394, 122618, 99386, 101498, 105722, 114170, 67706, 71930, 80378, 96632, 113854, 96572, 96542, 80062, 96702, 96444, 96414, 96350, 123048, 123044, 123042, 115048, 123062, 115044, 115042, 99048, 115062, 99044, 99042, 67048, 99062, 67044, 67042, 67062, 127188, 68990, 127186, 123028, 123316, 123026, 123314, 114996, 115572, 114994, 115570, 98932, 100084, 98930, 100082, 66804, 69108, 66802, 69106, 129258, 73084, 73022, 127178, 127450, 123018, 123290, 123834, 114970, 115514, 116602, 98874, 99962, 102138, 66682, 68858, 73210, 81272, 106174, 81212, 81182, 72894, 81342, 97648, 114364, 97592, 114334, 97564, 97550, 81084, 97724, 81054, 97694, 97464, 114270, 97436, 97422, 80990, 97502, 97372, 97358, 97326, 114868, 114866, 98676, 98674, 66292, 66290, 123098, 114842, 115130, 98618, 99194, 66170, 67322, 69310, 73404, 73374, 81592, 106334, 81564, 81550, 73310, 81630, 97968, 114524, 97944, 114510, 97932, 97926, 81500, 98012, 81486, 97998, 97880, 114478, 97868, 97862, 81454, 97902, 97836, 97830, 69470, 73564, 73550, 81752, 106414, 81740, 81734, 73518, 81774, 81708, 81702]), $a([109536, 120312, 86976, 109040, 120060, 86496, 108792, 119934, 86256, 108668, 86136, 129744, 89056, 110072, 129736, 88560, 109820, 129732, 88312, 109694, 129730, 88188, 128464, 129772, 89592, 128456, 129766, 89340, 128452, 89214, 128450, 125904, 128492, 125896, 128486, 125892, 125890, 120784, 125932, 120776, 125926, 120772, 120770, 110544, 120812, 110536, 120806, 110532, 84928, 108016, 119548, 84448, 107768, 119422, 84208, 107644, 84088, 107582, 84028, 129640, 85488, 108284, 129636, 85240, 108158, 129634, 85116, 85054, 128232, 129654, 85756, 128228, 85630, 128226, 125416, 128246, 125412, 125410, 119784, 125430, 119780, 119778, 108520, 119798, 108516, 108514, 83424, 107256, 119166, 83184, 107132, 83064, 107070, 83004, 82974, 129588, 83704, 107390, 129586, 83580, 83518, 128116, 83838, 128114, 125172, 125170, 119284, 119282, 107508, 107506, 82672, 106876, 82552, 106814, 82492, 82462, 129562, 82812, 82750, 128058, 125050, 119034, 82296, 106686, 82236, 82206, 82366, 82108, 82078, 76736, 103920, 117500, 76256, 103672, 117374, 76016, 103548, 75896, 103486, 75836, 129384, 77296, 104188, 129380, 77048, 104062, 129378, 76924, 76862, 127720, 129398, 77564, 127716, 77438, 127714, 124392, 127734, 124388, 124386, 117736, 124406, 117732, 117730, 104424, 117750, 104420, 104418, 112096, 121592, 126334, 92608, 111856, 121468, 92384, 111736, 121406, 92272, 111676, 92216, 111646, 92188, 75232, 103160, 117118, 93664, 74992, 103036, 93424, 112252, 102974, 93304, 74812, 93244, 74782, 93214, 129332, 75512, 103294, 129908, 129330, 93944, 75388, 129906, 93820, 75326, 93758, 127604, 75646, 128756, 127602, 94078, 128754, 124148, 126452, 124146, 126450, 117236, 121844, 117234, 121842, 103412, 103410, 91584, 111344, 121212, 91360, 111224, 121150, 91248, 111164, 91192, 111134, 91164, 91150, 74480, 102780, 91888, 74360, 102718, 91768, 111422, 91708, 74270, 91678, 129306, 74620, 129850, 92028, 74558, 91966, 127546, 128634, 124026, 126202, 116986, 121338, 102906, 90848, 110968, 121022, 90736, 110908, 90680, 110878, 90652, 90638, 74104, 102590, 91000, 74044, 90940, 74014, 90910, 74174, 91070, 90480, 110780, 90424, 110750, 90396, 90382, 73916, 90556, 73886, 90526, 90296, 110686, 90268, 90254, 73822, 90334, 90204, 90190, 71136, 101112, 116094, 70896, 100988, 70776, 100926, 70716, 70686, 129204, 71416, 101246, 129202, 71292, 71230, 127348, 71550, 127346, 123636, 123634, 116212, 116210, 101364, 101362, 79296, 105200, 118140, 79072, 105080, 118078, 78960, 105020, 78904, 104990, 78876, 78862, 70384, 100732, 79600, 70264, 100670, 79480, 105278, 79420, 70174, 79390, 129178, 70524, 129466, 79740, 70462, 79678, 127290, 127866, 123514, 124666, 115962, 118266, 100858, 113376, 122232, 126654, 95424, 113264, 122172, 95328, 113208, 122142, 95280, 113180, 95256, 113166, 95244, 78560, 104824, 117950, 95968, 78448, 104764, 95856, 113468, 104734, 95800, 78364, 95772, 78350, 95758, 70008, 100542, 78712, 69948, 96120, 78652, 69918, 96060, 78622, 96030, 70078, 78782, 96190, 94912, 113008, 122044, 94816, 112952, 122014, 94768, 112924, 94744, 112910, 94732, 94726, 78192, 104636, 95088, 78136, 104606, 95032, 113054, 95004, 78094, 94990, 69820, 78268, 69790, 95164, 78238, 95134, 94560, 112824, 121950, 94512, 112796, 94488, 112782, 94476, 94470, 78008, 104542, 94648, 77980, 94620, 77966, 94606, 69726, 78046, 94686, 94384, 112732, 94360, 112718, 94348, 94342, 77916, 94428, 77902, 94414, 94296, 112686, 94284, 94278, 77870, 94318, 94252, 94246, 68336, 99708, 68216, 99646, 68156, 68126, 68476, 68414, 127162, 123258, 115450, 99834, 72416, 101752, 116414, 72304, 101692, 72248, 101662, 72220, 72206, 67960, 99518, 72568, 67900, 72508, 67870, 72478, 68030, 72638, 80576, 105840, 118460, 80480, 105784, 118430, 80432, 105756, 80408, 105742, 80396, 80390, 72048, 101564, 80752, 71992, 101534, 80696, 71964, 80668, 71950, 80654, 67772, 72124, 67742, 80828, 72094, 80798, 114016, 122552, 126814, 96832, 113968, 122524, 96800, 113944, 122510, 96784, 113932, 96776, 113926, 96772, 80224, 105656, 118366, 97120, 80176, 105628, 97072, 114076, 105614, 97048, 80140, 97036, 80134, 97030, 71864, 101470, 80312, 71836, 97208, 80284, 71822, 97180, 80270, 97166, 67678, 71902, 80350, 97246, 96576, 113840, 122460, 96544, 113816, 122446, 96528, 113804, 96520, 113798, 96516, 96514, 80048, 105564, 96688, 80024, 105550, 96664, 113870, 96652, 80006, 96646, 71772, 80092, 71758, 96732, 80078, 96718, 96416, 113752, 122414, 96400, 113740, 96392, 113734, 96388, 96386, 79960, 105518, 96472, 79948, 96460, 79942, 96454, 71726, 79982, 96494, 96336, 113708, 96328, 113702, 96324, 96322, 79916, 96364, 79910, 96358, 96296, 113686, 96292, 96290, 79894, 96310, 66936, 99006, 66876, 66846, 67006, 68976, 100028, 68920, 99998, 68892, 68878, 66748, 69052, 66718, 69022, 73056, 102072, 116574, 73008, 102044, 72984, 102030, 72972, 72966, 68792, 99934, 73144, 68764, 73116, 68750, 73102, 66654, 68830, 73182, 81216, 106160, 118620, 81184, 106136, 118606, 81168, 106124, 81160, 106118, 81156, 81154, 72880, 101980, 81328, 72856, 101966, 81304, 106190, 81292, 72838, 81286, 68700, 72924, 68686, 81372, 72910, 81358, 114336, 122712, 126894, 114320, 122700, 114312, 122694, 114308, 114306, 81056, 106072, 118574, 97696, 81040, 106060, 97680, 114380, 106054, 97672, 81028, 97668, 81026, 97666, 72792, 101934, 81112, 72780, 97752, 81100, 72774, 97740, 81094, 97734, 68654, 72814, 81134, 97774, 114256, 122668, 114248, 122662, 114244, 114242, 80976, 106028, 97488, 80968, 106022, 97480, 114278, 97476, 80962, 97474, 72748, 81004, 72742, 97516, 80998, 97510, 114216, 122646, 114212, 114210, 80936, 106006, 97384, 80932, 97380, 80930, 97378, 72726, 80950, 97398, 114196, 114194, 80916, 97332, 80914, 97330, 66236, 66206, 67256, 99166, 67228, 67214, 66142, 67294, 69296, 100188, 69272, 100174, 69260, 69254, 67164, 69340, 67150, 69326, 73376, 102232, 116654, 73360, 102220, 73352, 102214, 73348, 73346, 69208, 100142, 73432, 102254, 73420, 69190, 73414, 67118, 69230, 73454, 106320, 118700, 106312, 118694, 106308, 106306, 73296, 102188, 81616, 106348, 102182, 81608, 73284, 81604, 73282, 81602, 69164, 73324, 69158, 81644, 73318, 81638, 122792, 126934, 122788, 122786, 106280, 118678, 114536, 106276, 114532, 106274, 114530, 73256, 102166, 81512, 73252, 98024, 81508, 73250, 98020, 81506, 98018, 69142, 73270, 81526, 98038, 122772, 122770, 106260, 114484, 106258, 114482, 73236, 81460, 73234, 97908, 81458, 97906, 122762, 106250, 114458, 73226, 81434, 97850, 66396, 66382, 67416, 99246, 67404, 67398, 66350, 67438, 69456, 100268, 69448, 100262, 69444, 69442, 67372, 69484, 67366, 69478, 102312, 116694, 102308, 102306, 69416, 100246, 73576, 102326, 73572, 69410, 73570, 67350, 69430, 73590, 118740, 118738, 102292, 106420, 102290, 106418, 69396, 73524, 69394, 81780, 73522, 81778, 118730, 102282, 106394, 69386, 73498, 81722, 66476, 66470, 67496, 99286, 67492, 67490, 66454, 67510, 100308, 100306, 67476, 69556, 67474, 69554, 116714])]); //#16975 + $1.raps = $a([$a([802, 930, 946, 818, 882, 890, 826, 954, 922, 986, 970, 906, 778, 794, 786, 914, 978, 982, 980, 916, 948, 932, 934, 942, 940, 936, 808, 812, 814, 806, 822, 950, 918, 790, 788, 820, 884, 868, 870, 878, 876, 872, 840, 856, 860, 862, 846, 844, 836, 838, 834, 866]), $a([718, 590, 622, 558, 550, 566, 534, 530, 538, 570, 562, 546, 610, 626, 634, 762, 754, 758, 630, 628, 612, 614, 582, 578, 706, 738, 742, 740, 748, 620, 556, 552, 616, 744, 712, 716, 708, 710, 646, 654, 652, 668, 664, 696, 688, 656, 720, 592, 600, 604, 732, 734])]); //#16990 $1.cwtobits = function() { - var _G4 = $get($1.clusters, $k[--$j]); - $1.v = $get(_G4, $k[--$j]); - $k[$j++] = Infinity; - for (var _G7 = 0, _G8 = 17; _G7 < _G8; _G7++) { - $k[$j++] = 0; - } - var _GB = $cvrs($s(17), $1.v, 2); - for (var _GC = 0, _GD = _GB.length; _GC < _GD; _GC++) { - $k[$j++] = $get(_GB, _GC) - 48; - } - var _GF = $a(); - $k[$j++] = $geti(_GF, _GF.length - 17, 17); - }; + var _G4 = $get($1.clusters, $k[--$j]); //#16994 + $1.v = $get(_G4, $k[--$j]); //#16994 + $k[$j++] = Infinity; //#16995 + for (var _G7 = 0, _G8 = 17; _G7 < _G8; _G7++) { //#16995 + $k[$j++] = 0; //#16995 + } //#16995 + var _GB = $cvrs($s(17), $1.v, 2); //#16995 + for (var _GC = 0, _GD = _GB.length; _GC < _GD; _GC++) { //#16995 + $k[$j++] = $get(_GB, _GC) - 48; //#16995 + } //#16995 + var _GF = $a(); //#16995 + $k[$j++] = $geti(_GF, _GF.length - 17, 17); //#16996 + }; //#16997 $1.raptobits = function() { - var _GJ = $get($1.raps, $k[--$j]); - $1.v = $get(_GJ, $k[--$j]); - $k[$j++] = Infinity; - for (var _GM = 0, _GN = 10; _GM < _GN; _GM++) { - $k[$j++] = 0; - } - var _GQ = $cvrs($s(10), $1.v, 2); - for (var _GR = 0, _GS = _GQ.length; _GR < _GS; _GR++) { - $k[$j++] = $get(_GQ, _GR) - 48; - } - var _GU = $a(); - $k[$j++] = $geti(_GU, _GU.length - 10, 10); - }; - $1.rwid = $get($a([ 38, 55, 82, 99 ]), $f($1.c - 1)); - if ($1.c == 3 && $1.cca) { - $1.rwid = 72; - } - $1.pixs = $a($1.rwid * $1.r); - for (var _Gg = 0, _Gf = $f($1.r - 1); _Gg <= _Gf; _Gg += 1) { - $1.i = _Gg; - $1.clst = $f($f($1.i + $1.rapl) - 1) % 3; - $k[$j++] = $1.pixs; - $k[$j++] = $1.rwid * $1.i; - $k[$j++] = Infinity; - if ($1.c == 1) { - $k[$j++] = $f($f($1.i + $1.rapl) - 1) % 52; - $k[$j++] = 0; - $1.raptobits(); - $aload($k[--$j]); - $k[$j++] = $get($1.cws, $1.i); - $k[$j++] = $1.clst; - $1.cwtobits(); - $aload($k[--$j]); - $k[$j++] = $f($f($1.i + $1.rapr) - 1) % 52; - $k[$j++] = 0; - $1.raptobits(); - $aload($k[--$j]); - } - if ($1.c == 2) { - $k[$j++] = $f($f($1.i + $1.rapl) - 1) % 52; - $k[$j++] = 0; - $1.raptobits(); - $aload($k[--$j]); - $k[$j++] = $get($1.cws, $1.i * 2); - $k[$j++] = $1.clst; - $1.cwtobits(); - $aload($k[--$j]); - $k[$j++] = $get($1.cws, $1.i * 2 + 1); - $k[$j++] = $1.clst; - $1.cwtobits(); - $aload($k[--$j]); - $k[$j++] = $f($f($1.i + $1.rapr) - 1) % 52; - $k[$j++] = 0; - $1.raptobits(); - $aload($k[--$j]); - } - if ($1.c == 3) { - if (!$1.cca) { - $k[$j++] = $f($f($1.i + $1.rapl) - 1) % 52; - $k[$j++] = 0; - $1.raptobits(); - $aload($k[--$j]); - } - $k[$j++] = $get($1.cws, $1.i * 3); - $k[$j++] = $1.clst; - $1.cwtobits(); - $aload($k[--$j]); - $k[$j++] = $f($f($1.i + $1.rapc) - 1) % 52; - $k[$j++] = 1; - $1.raptobits(); - $aload($k[--$j]); - $k[$j++] = $get($1.cws, $1.i * 3 + 1); - $k[$j++] = $1.clst; - $1.cwtobits(); - $aload($k[--$j]); - $k[$j++] = $get($1.cws, $1.i * 3 + 2); - $k[$j++] = $1.clst; - $1.cwtobits(); - $aload($k[--$j]); - $k[$j++] = $f($f($1.i + $1.rapr) - 1) % 52; - $k[$j++] = 0; - $1.raptobits(); - $aload($k[--$j]); - } - if ($1.c == 4) { - $k[$j++] = $f($f($1.i + $1.rapl) - 1) % 52; - $k[$j++] = 0; - $1.raptobits(); - $aload($k[--$j]); - $k[$j++] = $get($1.cws, $1.i * 4); - $k[$j++] = $1.clst; - $1.cwtobits(); - $aload($k[--$j]); - $k[$j++] = $get($1.cws, $1.i * 4 + 1); - $k[$j++] = $1.clst; - $1.cwtobits(); - $aload($k[--$j]); - $k[$j++] = $f($f($1.i + $1.rapc) - 1) % 52; - $k[$j++] = 1; - $1.raptobits(); - $aload($k[--$j]); - $k[$j++] = $get($1.cws, $1.i * 4 + 2); - $k[$j++] = $1.clst; - $1.cwtobits(); - $aload($k[--$j]); - $k[$j++] = $get($1.cws, $1.i * 4 + 3); - $k[$j++] = $1.clst; - $1.cwtobits(); - $aload($k[--$j]); - $k[$j++] = $f($f($1.i + $1.rapr) - 1) % 52; - $k[$j++] = 0; - $1.raptobits(); - $aload($k[--$j]); - } - $k[$j++] = 1; - var _I9 = $a(); - var _IA = $k[--$j]; - $puti($k[--$j], _IA, _I9); - } - var _IJ = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", $1.rwid ], [ "pixy", $1.r ], [ "height", $1.r / 72 * $1.rowmult ], [ "width", $1.rwid / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _IJ; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var _GJ = $get($1.raps, $k[--$j]); //#17001 + $1.v = $get(_GJ, $k[--$j]); //#17001 + $k[$j++] = Infinity; //#17002 + for (var _GM = 0, _GN = 10; _GM < _GN; _GM++) { //#17002 + $k[$j++] = 0; //#17002 + } //#17002 + var _GQ = $cvrs($s(10), $1.v, 2); //#17002 + for (var _GR = 0, _GS = _GQ.length; _GR < _GS; _GR++) { //#17002 + $k[$j++] = $get(_GQ, _GR) - 48; //#17002 + } //#17002 + var _GU = $a(); //#17002 + $k[$j++] = $geti(_GU, _GU.length - 10, 10); //#17003 + }; //#17004 + $1.rwid = $get($a([38, 55, 82, 99]), $f($1.c - 1)); //#17007 + if (($1.c == 3) && $1.cca) { //#17008 + $1.rwid = 72; //#17008 + } //#17008 + $1.pixs = $a($1.rwid * $1.r); //#17009 + for (var _Gg = 0, _Gf = $f($1.r - 1); _Gg <= _Gf; _Gg += 1) { //#17047 + $1.i = _Gg; //#17012 + $1.clst = ($f($f($1.i + $1.rapl) - 1)) % 3; //#17013 + $k[$j++] = $1.pixs; //#17045 + $k[$j++] = $1.rwid * $1.i; //#17045 + $k[$j++] = Infinity; //#17045 + if ($1.c == 1) { //#17019 + $k[$j++] = ($f($f($1.i + $1.rapl) - 1)) % 52; //#17016 + $k[$j++] = 0; //#17016 + $1.raptobits(); //#17016 + $aload($k[--$j]); //#17016 + $k[$j++] = $get($1.cws, $1.i); //#17017 + $k[$j++] = $1.clst; //#17017 + $1.cwtobits(); //#17017 + $aload($k[--$j]); //#17017 + $k[$j++] = ($f($f($1.i + $1.rapr) - 1)) % 52; //#17018 + $k[$j++] = 0; //#17018 + $1.raptobits(); //#17018 + $aload($k[--$j]); //#17018 + } //#17018 + if ($1.c == 2) { //#17025 + $k[$j++] = ($f($f($1.i + $1.rapl) - 1)) % 52; //#17021 + $k[$j++] = 0; //#17021 + $1.raptobits(); //#17021 + $aload($k[--$j]); //#17021 + $k[$j++] = $get($1.cws, $1.i * 2); //#17022 + $k[$j++] = $1.clst; //#17022 + $1.cwtobits(); //#17022 + $aload($k[--$j]); //#17022 + $k[$j++] = $get($1.cws, ($1.i * 2) + 1); //#17023 + $k[$j++] = $1.clst; //#17023 + $1.cwtobits(); //#17023 + $aload($k[--$j]); //#17023 + $k[$j++] = ($f($f($1.i + $1.rapr) - 1)) % 52; //#17024 + $k[$j++] = 0; //#17024 + $1.raptobits(); //#17024 + $aload($k[--$j]); //#17024 + } //#17024 + if ($1.c == 3) { //#17035 + if (!$1.cca) { //#17029 + $k[$j++] = ($f($f($1.i + $1.rapl) - 1)) % 52; //#17028 + $k[$j++] = 0; //#17028 + $1.raptobits(); //#17028 + $aload($k[--$j]); //#17028 + } //#17028 + $k[$j++] = $get($1.cws, $1.i * 3); //#17030 + $k[$j++] = $1.clst; //#17030 + $1.cwtobits(); //#17030 + $aload($k[--$j]); //#17030 + $k[$j++] = ($f($f($1.i + $1.rapc) - 1)) % 52; //#17031 + $k[$j++] = 1; //#17031 + $1.raptobits(); //#17031 + $aload($k[--$j]); //#17031 + $k[$j++] = $get($1.cws, ($1.i * 3) + 1); //#17032 + $k[$j++] = $1.clst; //#17032 + $1.cwtobits(); //#17032 + $aload($k[--$j]); //#17032 + $k[$j++] = $get($1.cws, ($1.i * 3) + 2); //#17033 + $k[$j++] = $1.clst; //#17033 + $1.cwtobits(); //#17033 + $aload($k[--$j]); //#17033 + $k[$j++] = ($f($f($1.i + $1.rapr) - 1)) % 52; //#17034 + $k[$j++] = 0; //#17034 + $1.raptobits(); //#17034 + $aload($k[--$j]); //#17034 + } //#17034 + if ($1.c == 4) { //#17044 + $k[$j++] = ($f($f($1.i + $1.rapl) - 1)) % 52; //#17037 + $k[$j++] = 0; //#17037 + $1.raptobits(); //#17037 + $aload($k[--$j]); //#17037 + $k[$j++] = $get($1.cws, $1.i * 4); //#17038 + $k[$j++] = $1.clst; //#17038 + $1.cwtobits(); //#17038 + $aload($k[--$j]); //#17038 + $k[$j++] = $get($1.cws, ($1.i * 4) + 1); //#17039 + $k[$j++] = $1.clst; //#17039 + $1.cwtobits(); //#17039 + $aload($k[--$j]); //#17039 + $k[$j++] = ($f($f($1.i + $1.rapc) - 1)) % 52; //#17040 + $k[$j++] = 1; //#17040 + $1.raptobits(); //#17040 + $aload($k[--$j]); //#17040 + $k[$j++] = $get($1.cws, ($1.i * 4) + 2); //#17041 + $k[$j++] = $1.clst; //#17041 + $1.cwtobits(); //#17041 + $aload($k[--$j]); //#17041 + $k[$j++] = $get($1.cws, ($1.i * 4) + 3); //#17042 + $k[$j++] = $1.clst; //#17042 + $1.cwtobits(); //#17042 + $aload($k[--$j]); //#17042 + $k[$j++] = ($f($f($1.i + $1.rapr) - 1)) % 52; //#17043 + $k[$j++] = 0; //#17043 + $1.raptobits(); //#17043 + $aload($k[--$j]); //#17043 + } //#17043 + $k[$j++] = 1; //#17045 + var _I9 = $a(); //#17045 + var _IA = $k[--$j]; //#17046 + $puti($k[--$j], _IA, _I9); //#17046 + } //#17046 + var _IJ = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", $1.rwid], + ["pixy", $1.r], + ["height", ($1.r / 72) * $1.rowmult], + ["width", $1.rwid / 72], + ["opt", $1.options] + ]); //#17057 + $k[$j++] = _IJ; //#17060 + if (!$1.dontdraw) { //#17060 + $0.renmatrix(); //#17060 + } //#17060 }; $0.datamatrix = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.columns = 0; - $1.rows = 0; - $1.format = "square"; - $1.version = "unset"; - $1.parse = false; - $1.parsefnc = false; - $1.encoding = "auto"; - $1.mailmark = false; - $1.raw = false; - $1.dmre = false; - $1.dindmre = false; - $1.isodmre = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - if ($ne($1.version, "unset")) { - $search($1.version, "x"); - $j--; - $1.rows = $k[--$j]; - $j--; - $1.columns = $k[--$j]; - } - $1.columns = ~~$z($1.columns); - $1.rows = ~~$z($1.rows); - $1.isodmre = $1.dmre; - $k[$j++] = Infinity; - $k[$j++] = $a([ 10, 10, 1, 1, 5, 1 ]); - $k[$j++] = $a([ 12, 12, 1, 1, 7, 1 ]); - $k[$j++] = $a([ 14, 14, 1, 1, 10, 1 ]); - $k[$j++] = $a([ 16, 16, 1, 1, 12, 1 ]); - $k[$j++] = $a([ 18, 18, 1, 1, 14, 1 ]); - $k[$j++] = $a([ 20, 20, 1, 1, 18, 1 ]); - $k[$j++] = $a([ 22, 22, 1, 1, 20, 1 ]); - $k[$j++] = $a([ 24, 24, 1, 1, 24, 1 ]); - $k[$j++] = $a([ 26, 26, 1, 1, 28, 1 ]); - $k[$j++] = $a([ 32, 32, 2, 2, 36, 1 ]); - $k[$j++] = $a([ 36, 36, 2, 2, 42, 1 ]); - $k[$j++] = $a([ 40, 40, 2, 2, 48, 1 ]); - $k[$j++] = $a([ 44, 44, 2, 2, 56, 1 ]); - $k[$j++] = $a([ 48, 48, 2, 2, 68, 1 ]); - $k[$j++] = $a([ 52, 52, 2, 2, 84, 2 ]); - $k[$j++] = $a([ 64, 64, 4, 4, 112, 2 ]); - $k[$j++] = $a([ 72, 72, 4, 4, 144, 4 ]); - $k[$j++] = $a([ 80, 80, 4, 4, 192, 4 ]); - $k[$j++] = $a([ 88, 88, 4, 4, 224, 4 ]); - $k[$j++] = $a([ 96, 96, 4, 4, 272, 4 ]); - $k[$j++] = $a([ 104, 104, 4, 4, 336, 6 ]); - $k[$j++] = $a([ 120, 120, 6, 6, 408, 6 ]); - $k[$j++] = $a([ 132, 132, 6, 6, 496, 8 ]); - $k[$j++] = $a([ 144, 144, 6, 6, 620, 10 ]); - $k[$j++] = $a([ 8, 18, 1, 1, 7, 1 ]); - $k[$j++] = $a([ 8, 32, 1, 2, 11, 1 ]); - if ($1.dindmre || $1.isodmre) { - $k[$j++] = $a([ 8, 48, 1, 2, 15, 1 ]); - } - if ($1.dindmre || $1.isodmre) { - $k[$j++] = $a([ 8, 64, 1, 4, 18, 1 ]); - } - if ($1.isodmre) { - $k[$j++] = $a([ 8, 80, 1, 4, 22, 1 ]); - } - if ($1.isodmre) { - $k[$j++] = $a([ 8, 96, 1, 4, 28, 1 ]); - } - if ($1.isodmre) { - $k[$j++] = $a([ 8, 120, 1, 6, 32, 1 ]); - } - if ($1.isodmre) { - $k[$j++] = $a([ 8, 144, 1, 6, 36, 1 ]); - } - $k[$j++] = $a([ 12, 26, 1, 1, 14, 1 ]); - $k[$j++] = $a([ 12, 36, 1, 2, 18, 1 ]); - if ($1.dindmre || $1.isodmre) { - $k[$j++] = $a([ 12, 64, 1, 4, 27, 1 ]); - } - if ($1.isodmre) { - $k[$j++] = $a([ 12, 88, 1, 4, 36, 1 ]); - } - $k[$j++] = $a([ 16, 36, 1, 2, 24, 1 ]); - $k[$j++] = $a([ 16, 48, 1, 2, 28, 1 ]); - if ($1.dindmre || $1.isodmre) { - $k[$j++] = $a([ 16, 64, 1, 4, 36, 1 ]); - } - if ($1.isodmre) { - $k[$j++] = $a([ 20, 36, 1, 2, 28, 1 ]); - } - if ($1.isodmre) { - $k[$j++] = $a([ 20, 44, 1, 2, 34, 1 ]); - } - if ($1.isodmre) { - $k[$j++] = $a([ 20, 64, 1, 4, 42, 1 ]); - } - if ($1.isodmre) { - $k[$j++] = $a([ 22, 48, 1, 2, 38, 1 ]); - } - if ($1.dindmre) { - $k[$j++] = $a([ 24, 32, 1, 2, 28, 1 ]); - } - if ($1.dindmre) { - $k[$j++] = $a([ 24, 36, 1, 2, 33, 1 ]); - } - if ($1.dindmre || $1.isodmre) { - $k[$j++] = $a([ 24, 48, 1, 2, 41, 1 ]); - } - if ($1.dindmre || $1.isodmre) { - $k[$j++] = $a([ 24, 64, 1, 4, 46, 1 ]); - } - if ($1.dindmre) { - $k[$j++] = $a([ 26, 32, 1, 2, 32, 1 ]); - } - if ($1.dindmre || $1.isodmre) { - $k[$j++] = $a([ 26, 40, 1, 2, 38, 1 ]); - } - if ($1.dindmre || $1.isodmre) { - $k[$j++] = $a([ 26, 48, 1, 2, 42, 1 ]); - } - if ($1.dindmre || $1.isodmre) { - $k[$j++] = $a([ 26, 64, 1, 4, 50, 1 ]); - } - $1.metrics = $a(); - $1.urows = $1.rows; - $1.ucols = $1.columns; - $1.fullcws = $a([]); - var _1Z = $1.metrics; - for (var _1a = 0, _1b = _1Z.length; _1a < _1b; _1a++) { - $1.m = $get(_1Z, _1a); - $1.rows = $get($1.m, 0); - $1.cols = $get($1.m, 1); - $1.regh = $get($1.m, 2); - $1.regv = $get($1.m, 3); - $1.rscw = $get($1.m, 4); - $1.rsbl = $get($1.m, 5); - $1.mrows = $f($1.rows - 2 * $1.regh); - $1.mcols = $f($1.cols - 2 * $1.regv); - $1.ncws = $f(~~($1.mrows * $1.mcols / 8) - $1.rscw); - $1.okay = true; - if ($1.urows != 0 && $1.urows != $1.rows) { - $1.okay = false; - } - if ($1.ucols != 0 && $1.ucols != $1.cols) { - $1.okay = false; - } - if ($eq($1.format, "square") && $ne($1.rows, $1.cols)) { - $1.okay = false; - } - if ($eq($1.format, "rectangle") && $eq($1.rows, $1.cols)) { - $1.okay = false; - } - if ($1.okay) { - $k[$j++] = Infinity; - $aload($1.fullcws); - $k[$j++] = $1.ncws; - $1.fullcws = $a(); - } - } - $k[$j++] = Infinity; - for (var _2C = 0, _2D = 1558; _2C < _2D; _2C++) { - $k[$j++] = 1e4; - } - $1.numremcws = $a(); - var _2F = $1.fullcws; - for (var _2G = 0, _2H = _2F.length; _2G < _2H; _2G++) { - $put($1.numremcws, $f($get(_2F, _2G) - 1), 1); - } - for (var _2K = 1556; _2K >= 0; _2K -= 1) { - $1.i = _2K; - if ($get($1.numremcws, $1.i) != 1) { - $put($1.numremcws, $1.i, $f($get($1.numremcws, $1.i + 1) + 1)); - } - } - if ($1.raw) { - $1.encoding = "raw"; - } - if ($eq($1.encoding, "raw")) { - $1.cws = $a($1.barcode.length); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.barcode.length) { - break; - } - $1.cw = ~~$z($geti($1.barcode, $1.i + 1, 3)); - $put($1.cws, $1.j, $1.cw); - $1.i = $1.i + 4; - $1.j = $1.j + 1; - } - $1.cws = $geti($1.cws, 0, $1.j); - } - if ($eq($1.encoding, "auto")) { - $1.fnc1 = -1; - $1.prog = -2; - $1.m05 = -3; - $1.m06 = -4; - $1.lC = -5; - $1.lB = -6; - $1.lX = -7; - $1.lT = -8; - $1.lE = -9; - $1.unl = -10; - $1.sapp = -11; - $1.usft = -12; - $1.sft1 = -13; - $1.sft2 = -14; - $1.sft3 = -15; - $1.eci = -16; - $1.pad = -17; - $1.unlcw = 254; - var _2p = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "eci", true ], [ "FNC1", $1.fnc1 ], [ "PROG", $1.prog ] ]); - $1.fncvals = _2p; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _2s = $k[--$j]; - $1[$k[--$j]] = _2s; - $1.msglen = $1.msg.length; - if ($1.msglen >= 9) { - $aload($geti($1.msg, 0, 7)); - var _2y = $k[--$j]; - var _2z = $k[--$j]; - $k[$j++] = _2y == 29; - $k[$j++] = _2z; - $j--; - var _30 = $k[--$j]; - var _31 = $k[--$j]; - var _32 = $k[--$j]; - var _33 = $k[--$j]; - var _34 = $k[--$j]; - var _35 = $k[--$j]; - if (_30 && _31 == 48 && _32 == 30 && _33 == 62 && _34 == 41 && _35 == 91) { - $aload($geti($1.msg, $1.msglen - 2, 2)); - var _39 = $k[--$j]; - var _3A = $k[--$j]; - if (_39 == 4 && _3A == 30) { - if ($get($1.msg, 5) == 53) { - $k[$j++] = Infinity; - $k[$j++] = $1.m05; - $aload($geti($1.msg, 7, $1.msg.length - 9)); - $1.msg = $a(); - } - if ($get($1.msg, 5) == 54) { - $k[$j++] = Infinity; - $k[$j++] = $1.m06; - $aload($geti($1.msg, 7, $1.msg.length - 9)); - $1.msg = $a(); - } - } - } - } - $1.msglen = $1.msg.length; - $k[$j++] = Infinity; - for (var _3Q = 0; _3Q <= 128; _3Q += 1) { - $k[$j++] = _3Q; - $k[$j++] = _3Q + 1; - } - $k[$j++] = $1.pad; - $k[$j++] = 129; - for (var _3S = 0; _3S <= 99; _3S += 1) { - var _3U = $cvrs($s(2), _3S, 10); - var _3W = $strcpy($s(2), "00"); - $puti(_3W, 2 - _3U.length, _3U); - $k[$j++] = _3W; - $k[$j++] = _3S + 130; - } - var _3j = $a([ $1.lC, $1.lB, $1.fnc1, $1.sapp, $1.prog, $1.usft, $1.m05, $1.m06, $1.lX, $1.lT, $1.lE, $1.eci ]); - $k[$j++] = 229; - for (var _3k = 0, _3l = _3j.length; _3k < _3l; _3k++) { - var _3o = $f($k[--$j] + 1); - $k[$j++] = $get(_3j, _3k); - $k[$j++] = _3o; - $k[$j++] = _3o; - } - $j--; - $1.Avals = $d(); - $k[$j++] = Infinity; - var _3q = $1.Avals; - for (var _3v = _3q.size, _3u = _3q.keys(), _3t = 0; _3t < _3v; _3t++) { - var _3r = _3u.next().value; - $k[$j++] = _3r; - $k[$j++] = Infinity; - $k[$j++] = _3q.get(_3r); - var _3y = $a(); - $k[$j++] = _3y; - } - $1.Avals = $d(); - $k[$j++] = Infinity; - $k[$j++] = $1.sft1; - $k[$j++] = 0; - $k[$j++] = $1.sft2; - $k[$j++] = 1; - $k[$j++] = $1.sft3; - $k[$j++] = 2; - $k[$j++] = 32; - $k[$j++] = 3; - for (var _43 = 48; _43 <= 57; _43 += 1) { - $k[$j++] = _43; - $k[$j++] = _43 - 44; - } - for (var _44 = 65; _44 <= 90; _44 += 1) { - $k[$j++] = _44; - $k[$j++] = _44 - 51; - } - $1.CNvals = $d(); - $k[$j++] = Infinity; - for (var _46 = 0; _46 <= 31; _46 += 1) { - $k[$j++] = _46; - $k[$j++] = _46; - } - $1.C1vals = $d(); - $k[$j++] = Infinity; - for (var _48 = 33; _48 <= 47; _48 += 1) { - $k[$j++] = _48; - $k[$j++] = _48 - 33; - } - for (var _49 = 58; _49 <= 64; _49 += 1) { - $k[$j++] = _49; - $k[$j++] = _49 - 43; - } - for (var _4A = 91; _4A <= 95; _4A += 1) { - $k[$j++] = _4A; - $k[$j++] = _4A - 69; - } - $k[$j++] = $1.fnc1; - $k[$j++] = 27; - $k[$j++] = $1.usft; - $k[$j++] = 30; - $1.C2vals = $d(); - $k[$j++] = Infinity; - for (var _4E = 96; _4E <= 127; _4E += 1) { - $k[$j++] = _4E; - $k[$j++] = _4E - 96; - } - $1.C3vals = $d(); - $k[$j++] = Infinity; - var _4G = $1.CNvals; - for (var _4L = _4G.size, _4K = _4G.keys(), _4J = 0; _4J < _4L; _4J++) { - var _4H = _4K.next().value; - $k[$j++] = _4H; - $k[$j++] = Infinity; - $k[$j++] = _4G.get(_4H); - var _4O = $a(); - $k[$j++] = _4O; - } - var _4P = $1.C1vals; - for (var _4U = _4P.size, _4T = _4P.keys(), _4S = 0; _4S < _4U; _4S++) { - var _4Q = _4T.next().value; - $k[$j++] = _4Q; - $k[$j++] = Infinity; - $k[$j++] = $get($1.CNvals, $1.sft1); - $k[$j++] = _4P.get(_4Q); - var _4a = $a(); - $k[$j++] = _4a; - } - var _4b = $1.C2vals; - for (var _4g = _4b.size, _4f = _4b.keys(), _4e = 0; _4e < _4g; _4e++) { - var _4c = _4f.next().value; - $k[$j++] = _4c; - $k[$j++] = Infinity; - $k[$j++] = $get($1.CNvals, $1.sft2); - $k[$j++] = _4b.get(_4c); - var _4m = $a(); - $k[$j++] = _4m; - } - var _4n = $1.C3vals; - for (var _4s = _4n.size, _4r = _4n.keys(), _4q = 0; _4q < _4s; _4q++) { - var _4o = _4r.next().value; - $k[$j++] = _4o; - $k[$j++] = Infinity; - $k[$j++] = $get($1.CNvals, $1.sft3); - $k[$j++] = _4n.get(_4o); - var _4y = $a(); - $k[$j++] = _4y; - } - $1.Cvals = $d(); - $k[$j++] = Infinity; - $k[$j++] = $1.sft1; - $k[$j++] = 0; - $k[$j++] = $1.sft2; - $k[$j++] = 1; - $k[$j++] = $1.sft3; - $k[$j++] = 2; - $k[$j++] = 32; - $k[$j++] = 3; - for (var _53 = 48; _53 <= 57; _53 += 1) { - $k[$j++] = _53; - $k[$j++] = _53 - 44; - } - for (var _54 = 97; _54 <= 122; _54 += 1) { - $k[$j++] = _54; - $k[$j++] = _54 - 83; - } - $1.TNvals = $d(); - $k[$j++] = Infinity; - for (var _56 = 0; _56 <= 31; _56 += 1) { - $k[$j++] = _56; - $k[$j++] = _56; - } - $1.T1vals = $d(); - $k[$j++] = Infinity; - for (var _58 = 33; _58 <= 47; _58 += 1) { - $k[$j++] = _58; - $k[$j++] = _58 - 33; - } - for (var _59 = 58; _59 <= 64; _59 += 1) { - $k[$j++] = _59; - $k[$j++] = _59 - 43; - } - for (var _5A = 91; _5A <= 95; _5A += 1) { - $k[$j++] = _5A; - $k[$j++] = _5A - 69; - } - $k[$j++] = $1.fnc1; - $k[$j++] = 27; - $k[$j++] = $1.usft; - $k[$j++] = 30; - $1.T2vals = $d(); - $k[$j++] = Infinity; - $k[$j++] = 96; - $k[$j++] = 0; - for (var _5E = 65; _5E <= 90; _5E += 1) { - $k[$j++] = _5E; - $k[$j++] = _5E - 64; - } - for (var _5F = 123; _5F <= 127; _5F += 1) { - $k[$j++] = _5F; - $k[$j++] = _5F - 96; - } - $1.T3vals = $d(); - $k[$j++] = Infinity; - var _5H = $1.TNvals; - for (var _5M = _5H.size, _5L = _5H.keys(), _5K = 0; _5K < _5M; _5K++) { - var _5I = _5L.next().value; - $k[$j++] = _5I; - $k[$j++] = Infinity; - $k[$j++] = _5H.get(_5I); - var _5P = $a(); - $k[$j++] = _5P; - } - var _5Q = $1.T1vals; - for (var _5V = _5Q.size, _5U = _5Q.keys(), _5T = 0; _5T < _5V; _5T++) { - var _5R = _5U.next().value; - $k[$j++] = _5R; - $k[$j++] = Infinity; - $k[$j++] = $get($1.TNvals, $1.sft1); - $k[$j++] = _5Q.get(_5R); - var _5b = $a(); - $k[$j++] = _5b; - } - var _5c = $1.T2vals; - for (var _5h = _5c.size, _5g = _5c.keys(), _5f = 0; _5f < _5h; _5f++) { - var _5d = _5g.next().value; - $k[$j++] = _5d; - $k[$j++] = Infinity; - $k[$j++] = $get($1.TNvals, $1.sft2); - $k[$j++] = _5c.get(_5d); - var _5n = $a(); - $k[$j++] = _5n; - } - var _5o = $1.T3vals; - for (var _5t = _5o.size, _5s = _5o.keys(), _5r = 0; _5r < _5t; _5r++) { - var _5p = _5s.next().value; - $k[$j++] = _5p; - $k[$j++] = Infinity; - $k[$j++] = $get($1.TNvals, $1.sft3); - $k[$j++] = _5o.get(_5p); - var _5z = $a(); - $k[$j++] = _5z; - } - $1.Tvals = $d(); - for (var _61 = 128; _61 <= 255; _61 += 1) { - $1.i = _61; - $k[$j++] = $1.Avals; - $k[$j++] = $1.i; - $k[$j++] = Infinity; - $aload($get($1.Avals, $1.usft)); - $aload($get($1.Avals, $1.i - 128)); - var _6A = $a(); - var _6B = $k[--$j]; - $put($k[--$j], _6B, _6A); - $k[$j++] = $1.Cvals; - $k[$j++] = $1.i; - $k[$j++] = Infinity; - $aload($get($1.Cvals, $1.usft)); - $aload($get($1.Cvals, $1.i - 128)); - var _6L = $a(); - var _6M = $k[--$j]; - $put($k[--$j], _6M, _6L); - $k[$j++] = $1.Tvals; - $k[$j++] = $1.i; - $k[$j++] = Infinity; - $aload($get($1.Tvals, $1.usft)); - $aload($get($1.Tvals, $1.i - 128)); - var _6W = $a(); - var _6X = $k[--$j]; - $put($k[--$j], _6X, _6W); - } - $k[$j++] = Infinity; - $k[$j++] = 13; - $k[$j++] = 0; - $k[$j++] = 42; - $k[$j++] = 1; - $k[$j++] = 62; - $k[$j++] = 2; - $k[$j++] = 32; - $k[$j++] = 3; - for (var _6Z = 48; _6Z <= 57; _6Z += 1) { - $k[$j++] = _6Z; - $k[$j++] = _6Z - 44; - } - for (var _6a = 65; _6a <= 90; _6a += 1) { - $k[$j++] = _6a; - $k[$j++] = _6a - 51; - } - $1.Xvals = $d(); - $k[$j++] = Infinity; - var _6c = $1.Xvals; - for (var _6h = _6c.size, _6g = _6c.keys(), _6f = 0; _6f < _6h; _6f++) { - var _6d = _6g.next().value; - $k[$j++] = _6d; - $k[$j++] = Infinity; - $k[$j++] = _6c.get(_6d); - var _6k = $a(); - $k[$j++] = _6k; - } - $1.Xvals = $d(); - $k[$j++] = Infinity; - for (var _6m = 64; _6m <= 94; _6m += 1) { - $k[$j++] = _6m; - $k[$j++] = _6m - 64; - } - $k[$j++] = $1.unl; - $k[$j++] = 31; - for (var _6o = 32; _6o <= 63; _6o += 1) { - $k[$j++] = _6o; - $k[$j++] = _6o; - } - $1.Evals = $d(); - $k[$j++] = Infinity; - var _6q = $1.Evals; - for (var _6v = _6q.size, _6u = _6q.keys(), _6t = 0; _6t < _6v; _6t++) { - var _6r = _6u.next().value; - $k[$j++] = _6r; - $k[$j++] = Infinity; - $k[$j++] = _6q.get(_6r); - var _6y = $a(); - $k[$j++] = _6y; - } - $1.Evals = $d(); - $k[$j++] = Infinity; - for (var _70 = 0; _70 <= 255; _70 += 1) { - $k[$j++] = _70; - $k[$j++] = _70; - } - $1.Bvals = $d(); - $k[$j++] = Infinity; - var _72 = $1.Bvals; - for (var _77 = _72.size, _76 = _72.keys(), _75 = 0; _75 < _77; _75++) { - var _73 = _76.next().value; - $k[$j++] = _73; - $k[$j++] = Infinity; - $k[$j++] = _72.get(_73); - var _7A = $a(); - $k[$j++] = _7A; - } - $1.Bvals = $d(); - $1.encvals = $a([ $1.Avals, $1.Cvals, $1.Tvals, $1.Xvals, $1.Evals, $1.Bvals ]); - $k[$j++] = Infinity; - for (var _7K = 0, _7L = $1.msglen; _7K < _7L; _7K++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numD = $a(); - $k[$j++] = Infinity; - for (var _7O = 0, _7P = $1.msglen; _7O < _7P; _7O++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextXterm = $a(); - $k[$j++] = Infinity; - for (var _7S = 0, _7T = $1.msglen; _7S < _7T; _7S++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextNonX = $a(); - $k[$j++] = Infinity; - for (var _7W = 0, _7X = $1.msglen; _7W < _7X; _7W++) { - $k[$j++] = false; - } - $k[$j++] = false; - $1.isECI = $a(); - for (var _7a = $1.msglen - 1; _7a >= 0; _7a -= 1) { - $1.i = _7a; - $1.barchar = $get($1.msg, $1.i); - if ($1.barchar >= 48 && $1.barchar <= 57) { - $put($1.numD, $1.i, $f($get($1.numD, $1.i + 1) + 1)); - } - if ($1.barchar == 13 || $1.barchar == 42 || $1.barchar == 62) { - $put($1.nextXterm, $1.i, 0); - } else { - $put($1.nextXterm, $1.i, $f($get($1.nextXterm, $1.i + 1) + 1)); - } - var _7x = $get($1.Xvals, $1.barchar) !== undefined; - if (!_7x) { - $put($1.nextNonX, $1.i, 0); - } else { - $put($1.nextNonX, $1.i, $f($get($1.nextNonX, $1.i + 1) + 1)); - } - $put($1.isECI, $1.i, $1.barchar <= -1e6); - } - $k[$j++] = Infinity; - var _88 = $1.nextXterm; - for (var _89 = 0, _8A = _88.length; _89 < _8A; _89++) { - var _8B = $get(_88, _89); - $k[$j++] = _8B; - if (_8B > 1e4) { - $j--; - $k[$j++] = 1e4; - } - } - $1.nextXterm = $a(); - $k[$j++] = Infinity; - var _8D = $1.nextNonX; - for (var _8E = 0, _8F = _8D.length; _8E < _8F; _8E++) { - var _8G = $get(_8D, _8E); - $k[$j++] = _8G; - if (_8G > 1e4) { - $j--; - $k[$j++] = 1e4; - } - } - $1.nextNonX = $a(); + var $1 = {}; //#17090 + $1.options = $k[--$j]; //#17092 + $1.barcode = $k[--$j]; //#17093 + $1.dontdraw = false; //#17095 + $1.columns = 0; //#17096 + $1.rows = 0; //#17097 + $1.format = "square"; //#17098 + $1.version = "unset"; //#17099 + $1.parse = false; //#17100 + $1.parsefnc = false; //#17101 + $1.encoding = "auto"; //#17102 + $1.mailmark = false; //#17103 + $1.raw = false; //#17104 + $1.dmre = false; //#17105 + $1.dindmre = false; //#17106 + $1.isodmre = false; //#17107 + $forall($1.options, function() { //#17118 + var _3 = $k[--$j]; //#17118 + $1[$k[--$j]] = _3; //#17118 + }); //#17118 + if ($ne($1.version, "unset")) { //#17124 + $search($1.version, "x"); //#17121 + $j--; //#17122 + $1.rows = $k[--$j]; //#17122 + $j--; //#17123 + $1.columns = $k[--$j]; //#17123 + } //#17123 + $1.columns = ~~$z($1.columns); //#17126 + $1.rows = ~~$z($1.rows); //#17127 + $1.isodmre = $1.dmre; //#17129 + $k[$j++] = Infinity; //#17186 + $k[$j++] = $a([10, 10, 1, 1, 5, 1]); //#17162 + $k[$j++] = $a([12, 12, 1, 1, 7, 1]); //#17162 + $k[$j++] = $a([14, 14, 1, 1, 10, 1]); //#17162 + $k[$j++] = $a([16, 16, 1, 1, 12, 1]); //#17162 + $k[$j++] = $a([18, 18, 1, 1, 14, 1]); //#17162 + $k[$j++] = $a([20, 20, 1, 1, 18, 1]); //#17162 + $k[$j++] = $a([22, 22, 1, 1, 20, 1]); //#17162 + $k[$j++] = $a([24, 24, 1, 1, 24, 1]); //#17162 + $k[$j++] = $a([26, 26, 1, 1, 28, 1]); //#17162 + $k[$j++] = $a([32, 32, 2, 2, 36, 1]); //#17162 + $k[$j++] = $a([36, 36, 2, 2, 42, 1]); //#17162 + $k[$j++] = $a([40, 40, 2, 2, 48, 1]); //#17162 + $k[$j++] = $a([44, 44, 2, 2, 56, 1]); //#17162 + $k[$j++] = $a([48, 48, 2, 2, 68, 1]); //#17162 + $k[$j++] = $a([52, 52, 2, 2, 84, 2]); //#17162 + $k[$j++] = $a([64, 64, 4, 4, 112, 2]); //#17162 + $k[$j++] = $a([72, 72, 4, 4, 144, 4]); //#17162 + $k[$j++] = $a([80, 80, 4, 4, 192, 4]); //#17162 + $k[$j++] = $a([88, 88, 4, 4, 224, 4]); //#17162 + $k[$j++] = $a([96, 96, 4, 4, 272, 4]); //#17162 + $k[$j++] = $a([104, 104, 4, 4, 336, 6]); //#17162 + $k[$j++] = $a([120, 120, 6, 6, 408, 6]); //#17162 + $k[$j++] = $a([132, 132, 6, 6, 496, 8]); //#17162 + $k[$j++] = $a([144, 144, 6, 6, 620, 10]); //#17162 + $k[$j++] = $a([8, 18, 1, 1, 7, 1]); //#17162 + $k[$j++] = $a([8, 32, 1, 2, 11, 1]); //#17162 + if ($1.dindmre || $1.isodmre) { //#17162 + $k[$j++] = $a([8, 48, 1, 2, 15, 1]); //#17162 + } //#17162 + if ($1.dindmre || $1.isodmre) { //#17163 + $k[$j++] = $a([8, 64, 1, 4, 18, 1]); //#17163 + } //#17163 + if ($1.isodmre) { //#17164 + $k[$j++] = $a([8, 80, 1, 4, 22, 1]); //#17164 + } //#17164 + if ($1.isodmre) { //#17165 + $k[$j++] = $a([8, 96, 1, 4, 28, 1]); //#17165 + } //#17165 + if ($1.isodmre) { //#17166 + $k[$j++] = $a([8, 120, 1, 6, 32, 1]); //#17166 + } //#17166 + if ($1.isodmre) { //#17167 + $k[$j++] = $a([8, 144, 1, 6, 36, 1]); //#17167 + } //#17167 + $k[$j++] = $a([12, 26, 1, 1, 14, 1]); //#17170 + $k[$j++] = $a([12, 36, 1, 2, 18, 1]); //#17170 + if ($1.dindmre || $1.isodmre) { //#17170 + $k[$j++] = $a([12, 64, 1, 4, 27, 1]); //#17170 + } //#17170 + if ($1.isodmre) { //#17171 + $k[$j++] = $a([12, 88, 1, 4, 36, 1]); //#17171 + } //#17171 + $k[$j++] = $a([16, 36, 1, 2, 24, 1]); //#17174 + $k[$j++] = $a([16, 48, 1, 2, 28, 1]); //#17174 + if ($1.dindmre || $1.isodmre) { //#17174 + $k[$j++] = $a([16, 64, 1, 4, 36, 1]); //#17174 + } //#17174 + if ($1.isodmre) { //#17175 + $k[$j++] = $a([20, 36, 1, 2, 28, 1]); //#17175 + } //#17175 + if ($1.isodmre) { //#17176 + $k[$j++] = $a([20, 44, 1, 2, 34, 1]); //#17176 + } //#17176 + if ($1.isodmre) { //#17177 + $k[$j++] = $a([20, 64, 1, 4, 42, 1]); //#17177 + } //#17177 + if ($1.isodmre) { //#17178 + $k[$j++] = $a([22, 48, 1, 2, 38, 1]); //#17178 + } //#17178 + if ($1.dindmre) { //#17179 + $k[$j++] = $a([24, 32, 1, 2, 28, 1]); //#17179 + } //#17179 + if ($1.dindmre) { //#17180 + $k[$j++] = $a([24, 36, 1, 2, 33, 1]); //#17180 + } //#17180 + if ($1.dindmre || $1.isodmre) { //#17181 + $k[$j++] = $a([24, 48, 1, 2, 41, 1]); //#17181 + } //#17181 + if ($1.dindmre || $1.isodmre) { //#17182 + $k[$j++] = $a([24, 64, 1, 4, 46, 1]); //#17182 + } //#17182 + if ($1.dindmre) { //#17183 + $k[$j++] = $a([26, 32, 1, 2, 32, 1]); //#17183 + } //#17183 + if ($1.dindmre || $1.isodmre) { //#17184 + $k[$j++] = $a([26, 40, 1, 2, 38, 1]); //#17184 + } //#17184 + if ($1.dindmre || $1.isodmre) { //#17185 + $k[$j++] = $a([26, 48, 1, 2, 42, 1]); //#17185 + } //#17185 + if ($1.dindmre || $1.isodmre) { //#17186 + $k[$j++] = $a([26, 64, 1, 4, 50, 1]); //#17186 + } //#17186 + $1.metrics = $a(); //#17186 + $1.urows = $1.rows; //#17190 + $1.ucols = $1.columns; //#17191 + $1.fullcws = $a([]); //#17192 + var _1Z = $1.metrics; //#17193 + for (var _1a = 0, _1b = _1Z.length; _1a < _1b; _1a++) { //#17210 + $1.m = $get(_1Z, _1a); //#17194 + $1.rows = $get($1.m, 0); //#17195 + $1.cols = $get($1.m, 1); //#17196 + $1.regh = $get($1.m, 2); //#17197 + $1.regv = $get($1.m, 3); //#17198 + $1.rscw = $get($1.m, 4); //#17199 + $1.rsbl = $get($1.m, 5); //#17200 + $1.mrows = $f($1.rows - (2 * $1.regh)); //#17201 + $1.mcols = $f($1.cols - (2 * $1.regv)); //#17202 + $1.ncws = $f((~~(($1.mrows * $1.mcols) / 8)) - $1.rscw); //#17203 + $1.okay = true; //#17204 + if (($1.urows != 0) && ($1.urows != $1.rows)) { //#17205 + $1.okay = false; //#17205 + } //#17205 + if (($1.ucols != 0) && ($1.ucols != $1.cols)) { //#17206 + $1.okay = false; //#17206 + } //#17206 + if ($eq($1.format, "square") && $ne($1.rows, $1.cols)) { //#17207 + $1.okay = false; //#17207 + } //#17207 + if ($eq($1.format, "rectangle") && $eq($1.rows, $1.cols)) { //#17208 + $1.okay = false; //#17208 + } //#17208 + if ($1.okay) { //#17209 + $k[$j++] = Infinity; //#17209 + $aload($1.fullcws); //#17209 + $k[$j++] = $1.ncws; //#17209 + $1.fullcws = $a(); //#17209 + } //#17209 + } //#17209 + $k[$j++] = Infinity; //#17211 + for (var _2C = 0, _2D = 1558; _2C < _2D; _2C++) { //#17211 + $k[$j++] = 10000; //#17211 + } //#17211 + $1.numremcws = $a(); //#17211 + var _2F = $1.fullcws; //#17212 + for (var _2G = 0, _2H = _2F.length; _2G < _2H; _2G++) { //#17212 + $put($1.numremcws, $f($get(_2F, _2G) - 1), 1); //#17212 + } //#17212 + for (var _2K = 1556; _2K >= 0; _2K -= 1) { //#17218 + $1.i = _2K; //#17214 + if ($get($1.numremcws, $1.i) != 1) { //#17217 + $put($1.numremcws, $1.i, $f($get($1.numremcws, $1.i + 1) + 1)); //#17216 + } //#17216 + } //#17216 + if ($1.raw) { //#17220 + $1.encoding = "raw"; //#17220 + } //#17220 + if ($eq($1.encoding, "raw")) { //#17233 + $1.cws = $a($1.barcode.length); //#17223 + $1.i = 0; //#17224 + $1.j = 0; //#17224 + for (;;) { //#17231 + if ($1.i == $1.barcode.length) { //#17226 + break; //#17226 + } //#17226 + $1.cw = ~~$z($geti($1.barcode, $1.i + 1, 3)); //#17227 + $put($1.cws, $1.j, $1.cw); //#17228 + $1.i = $1.i + 4; //#17229 + $1.j = $1.j + 1; //#17230 + } //#17230 + $1.cws = $geti($1.cws, 0, $1.j); //#17232 + } //#17232 + if ($eq($1.encoding, "auto")) { //#17733 + $1.fnc1 = -1; //#17238 + $1.prog = -2; //#17238 + $1.m05 = -3; //#17238 + $1.m06 = -4; //#17238 + $1.lC = -5; //#17239 + $1.lB = -6; //#17239 + $1.lX = -7; //#17239 + $1.lT = -8; //#17239 + $1.lE = -9; //#17239 + $1.unl = -10; //#17239 + $1.sapp = -11; //#17240 + $1.usft = -12; //#17240 + $1.sft1 = -13; //#17240 + $1.sft2 = -14; //#17240 + $1.sft3 = -15; //#17240 + $1.eci = -16; //#17240 + $1.pad = -17; //#17240 + $1.unlcw = 254; //#17241 + var _2p = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["eci", true], + ["FNC1", $1.fnc1], + ["PROG", $1.prog] + ]); //#17249 + $1.fncvals = _2p; //#17252 + $k[$j++] = 'msg'; //#17253 + $k[$j++] = $1.barcode; //#17253 + $k[$j++] = $1.fncvals; //#17253 + $0.parseinput(); //#17253 + var _2s = $k[--$j]; //#17253 + $1[$k[--$j]] = _2s; //#17253 + $1.msglen = $1.msg.length; //#17254 + if ($1.msglen >= 9) { //#17271 + $aload($geti($1.msg, 0, 7)); //#17258 + var _2y = $k[--$j]; //#17259 + var _2z = $k[--$j]; //#17259 + $k[$j++] = _2y == 29; //#17259 + $k[$j++] = _2z; //#17259 + $j--; //#17259 + var _30 = $k[--$j]; //#17259 + var _31 = $k[--$j]; //#17259 + var _32 = $k[--$j]; //#17259 + var _33 = $k[--$j]; //#17260 + var _34 = $k[--$j]; //#17260 + var _35 = $k[--$j]; //#17260 + if (((((_30 && (_31 == 48)) && (_32 == 30)) && (_33 == 62)) && (_34 == 41)) && (_35 == 91)) { //#17270 + $aload($geti($1.msg, $1.msglen - 2, 2)); //#17261 + var _39 = $k[--$j]; //#17262 + var _3A = $k[--$j]; //#17262 + if ((_39 == 4) && (_3A == 30)) { //#17269 + if ($get($1.msg, 5) == 53) { //#17265 + $k[$j++] = Infinity; //#17264 + $k[$j++] = $1.m05; //#17264 + $aload($geti($1.msg, 7, $1.msg.length - 9)); //#17264 + $1.msg = $a(); //#17264 + } //#17264 + if ($get($1.msg, 5) == 54) { //#17268 + $k[$j++] = Infinity; //#17267 + $k[$j++] = $1.m06; //#17267 + $aload($geti($1.msg, 7, $1.msg.length - 9)); //#17267 + $1.msg = $a(); //#17267 + } //#17267 + } //#17267 + } //#17267 + } //#17267 + $1.msglen = $1.msg.length; //#17272 + $k[$j++] = Infinity; //#17281 + for (var _3Q = 0; _3Q <= 128; _3Q += 1) { //#17275 + $k[$j++] = _3Q; //#17275 + $k[$j++] = _3Q + 1; //#17275 + } //#17275 + $k[$j++] = $1.pad; //#17280 + $k[$j++] = 129; //#17280 + for (var _3S = 0; _3S <= 99; _3S += 1) { //#17280 + var _3U = $cvrs($s(2), _3S, 10); //#17278 + var _3W = $strcpy($s(2), "00"); //#17278 + $puti(_3W, 2 - _3U.length, _3U); //#17278 + $k[$j++] = _3W; //#17279 + $k[$j++] = _3S + 130; //#17279 + } //#17279 + var _3j = $a([$1.lC, $1.lB, $1.fnc1, $1.sapp, $1.prog, $1.usft, $1.m05, $1.m06, $1.lX, $1.lT, $1.lE, $1.eci]); //#17281 + $k[$j++] = 229; //#17281 + for (var _3k = 0, _3l = _3j.length; _3k < _3l; _3k++) { //#17281 + var _3o = $f($k[--$j] + 1); //#17281 + $k[$j++] = $get(_3j, _3k); //#17281 + $k[$j++] = _3o; //#17281 + $k[$j++] = _3o; //#17281 + } //#17281 + $j--; //#17281 + $1.Avals = $d(); //#17282 + $k[$j++] = Infinity; //#17284 + var _3q = $1.Avals; //#17284 + for (var _3v = _3q.size, _3u = _3q.keys(), _3t = 0; _3t < _3v; _3t++) { //#17284 + var _3r = _3u.next().value; //#17284 + $k[$j++] = _3r; //#17284 + $k[$j++] = _3q.get(_3r); //#17284 + $k[$j++] = Infinity; //#17284 + var _3w = $k[--$j]; //#17284 + var _3x = $k[--$j]; //#17284 + $k[$j++] = _3w; //#17284 + $k[$j++] = _3x; //#17284 + var _3y = $a(); //#17284 + $k[$j++] = _3y; //#17284 + } //#17284 + $1.Avals = $d(); //#17285 + $k[$j++] = Infinity; //#17293 + $k[$j++] = $1.sft1; //#17292 + $k[$j++] = 0; //#17292 + $k[$j++] = $1.sft2; //#17292 + $k[$j++] = 1; //#17292 + $k[$j++] = $1.sft3; //#17292 + $k[$j++] = 2; //#17292 + $k[$j++] = 32; //#17292 + $k[$j++] = 3; //#17292 + for (var _43 = 48; _43 <= 57; _43 += 1) { //#17292 + $k[$j++] = _43; //#17292 + $k[$j++] = _43 - 44; //#17292 + } //#17292 + for (var _44 = 65; _44 <= 90; _44 += 1) { //#17293 + $k[$j++] = _44; //#17293 + $k[$j++] = _44 - 51; //#17293 + } //#17293 + $1.CNvals = $d(); //#17294 + $k[$j++] = Infinity; //#17295 + for (var _46 = 0; _46 <= 31; _46 += 1) { //#17295 + $k[$j++] = _46; //#17295 + $k[$j++] = _46; //#17295 + } //#17295 + $1.C1vals = $d(); //#17295 + $k[$j++] = Infinity; //#17301 + for (var _48 = 33; _48 <= 47; _48 += 1) { //#17297 + $k[$j++] = _48; //#17297 + $k[$j++] = _48 - 33; //#17297 + } //#17297 + for (var _49 = 58; _49 <= 64; _49 += 1) { //#17298 + $k[$j++] = _49; //#17298 + $k[$j++] = _49 - 43; //#17298 + } //#17298 + for (var _4A = 91; _4A <= 95; _4A += 1) { //#17299 + $k[$j++] = _4A; //#17299 + $k[$j++] = _4A - 69; //#17299 + } //#17299 + $k[$j++] = $1.fnc1; //#17301 + $k[$j++] = 27; //#17301 + $k[$j++] = $1.usft; //#17301 + $k[$j++] = 30; //#17301 + $1.C2vals = $d(); //#17302 + $k[$j++] = Infinity; //#17303 + for (var _4E = 96; _4E <= 127; _4E += 1) { //#17303 + $k[$j++] = _4E; //#17303 + $k[$j++] = _4E - 96; //#17303 + } //#17303 + $1.C3vals = $d(); //#17303 + $k[$j++] = Infinity; //#17308 + var _4G = $1.CNvals; //#17305 + for (var _4L = _4G.size, _4K = _4G.keys(), _4J = 0; _4J < _4L; _4J++) { //#17305 + var _4H = _4K.next().value; //#17305 + $k[$j++] = _4H; //#17305 + $k[$j++] = _4G.get(_4H); //#17305 + $k[$j++] = Infinity; //#17305 + var _4M = $k[--$j]; //#17305 + var _4N = $k[--$j]; //#17305 + $k[$j++] = _4M; //#17305 + $k[$j++] = _4N; //#17305 + var _4O = $a(); //#17305 + $k[$j++] = _4O; //#17305 + } //#17305 + var _4P = $1.C1vals; //#17306 + for (var _4U = _4P.size, _4T = _4P.keys(), _4S = 0; _4S < _4U; _4S++) { //#17306 + var _4Q = _4T.next().value; //#17306 + $k[$j++] = _4Q; //#17306 + $k[$j++] = _4P.get(_4Q); //#17306 + $k[$j++] = Infinity; //#17306 + var _4V = $k[--$j]; //#17306 + var _4W = $k[--$j]; //#17306 + $k[$j++] = _4V; //#17306 + $k[$j++] = $get($1.CNvals, $1.sft1); //#17306 + $k[$j++] = _4W; //#17306 + var _4a = $a(); //#17306 + $k[$j++] = _4a; //#17306 + } //#17306 + var _4b = $1.C2vals; //#17307 + for (var _4g = _4b.size, _4f = _4b.keys(), _4e = 0; _4e < _4g; _4e++) { //#17307 + var _4c = _4f.next().value; //#17307 + $k[$j++] = _4c; //#17307 + $k[$j++] = _4b.get(_4c); //#17307 + $k[$j++] = Infinity; //#17307 + var _4h = $k[--$j]; //#17307 + var _4i = $k[--$j]; //#17307 + $k[$j++] = _4h; //#17307 + $k[$j++] = $get($1.CNvals, $1.sft2); //#17307 + $k[$j++] = _4i; //#17307 + var _4m = $a(); //#17307 + $k[$j++] = _4m; //#17307 + } //#17307 + var _4n = $1.C3vals; //#17308 + for (var _4s = _4n.size, _4r = _4n.keys(), _4q = 0; _4q < _4s; _4q++) { //#17308 + var _4o = _4r.next().value; //#17308 + $k[$j++] = _4o; //#17308 + $k[$j++] = _4n.get(_4o); //#17308 + $k[$j++] = Infinity; //#17308 + var _4t = $k[--$j]; //#17308 + var _4u = $k[--$j]; //#17308 + $k[$j++] = _4t; //#17308 + $k[$j++] = $get($1.CNvals, $1.sft3); //#17308 + $k[$j++] = _4u; //#17308 + var _4y = $a(); //#17308 + $k[$j++] = _4y; //#17308 + } //#17308 + $1.Cvals = $d(); //#17309 + $k[$j++] = Infinity; //#17317 + $k[$j++] = $1.sft1; //#17316 + $k[$j++] = 0; //#17316 + $k[$j++] = $1.sft2; //#17316 + $k[$j++] = 1; //#17316 + $k[$j++] = $1.sft3; //#17316 + $k[$j++] = 2; //#17316 + $k[$j++] = 32; //#17316 + $k[$j++] = 3; //#17316 + for (var _53 = 48; _53 <= 57; _53 += 1) { //#17316 + $k[$j++] = _53; //#17316 + $k[$j++] = _53 - 44; //#17316 + } //#17316 + for (var _54 = 97; _54 <= 122; _54 += 1) { //#17317 + $k[$j++] = _54; //#17317 + $k[$j++] = _54 - 83; //#17317 + } //#17317 + $1.TNvals = $d(); //#17318 + $k[$j++] = Infinity; //#17319 + for (var _56 = 0; _56 <= 31; _56 += 1) { //#17319 + $k[$j++] = _56; //#17319 + $k[$j++] = _56; //#17319 + } //#17319 + $1.T1vals = $d(); //#17319 + $k[$j++] = Infinity; //#17325 + for (var _58 = 33; _58 <= 47; _58 += 1) { //#17321 + $k[$j++] = _58; //#17321 + $k[$j++] = _58 - 33; //#17321 + } //#17321 + for (var _59 = 58; _59 <= 64; _59 += 1) { //#17322 + $k[$j++] = _59; //#17322 + $k[$j++] = _59 - 43; //#17322 + } //#17322 + for (var _5A = 91; _5A <= 95; _5A += 1) { //#17323 + $k[$j++] = _5A; //#17323 + $k[$j++] = _5A - 69; //#17323 + } //#17323 + $k[$j++] = $1.fnc1; //#17325 + $k[$j++] = 27; //#17325 + $k[$j++] = $1.usft; //#17325 + $k[$j++] = 30; //#17325 + $1.T2vals = $d(); //#17326 + $k[$j++] = Infinity; //#17330 + $k[$j++] = 96; //#17329 + $k[$j++] = 0; //#17329 + for (var _5E = 65; _5E <= 90; _5E += 1) { //#17329 + $k[$j++] = _5E; //#17329 + $k[$j++] = _5E - 64; //#17329 + } //#17329 + for (var _5F = 123; _5F <= 127; _5F += 1) { //#17330 + $k[$j++] = _5F; //#17330 + $k[$j++] = _5F - 96; //#17330 + } //#17330 + $1.T3vals = $d(); //#17331 + $k[$j++] = Infinity; //#17336 + var _5H = $1.TNvals; //#17333 + for (var _5M = _5H.size, _5L = _5H.keys(), _5K = 0; _5K < _5M; _5K++) { //#17333 + var _5I = _5L.next().value; //#17333 + $k[$j++] = _5I; //#17333 + $k[$j++] = _5H.get(_5I); //#17333 + $k[$j++] = Infinity; //#17333 + var _5N = $k[--$j]; //#17333 + var _5O = $k[--$j]; //#17333 + $k[$j++] = _5N; //#17333 + $k[$j++] = _5O; //#17333 + var _5P = $a(); //#17333 + $k[$j++] = _5P; //#17333 + } //#17333 + var _5Q = $1.T1vals; //#17334 + for (var _5V = _5Q.size, _5U = _5Q.keys(), _5T = 0; _5T < _5V; _5T++) { //#17334 + var _5R = _5U.next().value; //#17334 + $k[$j++] = _5R; //#17334 + $k[$j++] = _5Q.get(_5R); //#17334 + $k[$j++] = Infinity; //#17334 + var _5W = $k[--$j]; //#17334 + var _5X = $k[--$j]; //#17334 + $k[$j++] = _5W; //#17334 + $k[$j++] = $get($1.TNvals, $1.sft1); //#17334 + $k[$j++] = _5X; //#17334 + var _5b = $a(); //#17334 + $k[$j++] = _5b; //#17334 + } //#17334 + var _5c = $1.T2vals; //#17335 + for (var _5h = _5c.size, _5g = _5c.keys(), _5f = 0; _5f < _5h; _5f++) { //#17335 + var _5d = _5g.next().value; //#17335 + $k[$j++] = _5d; //#17335 + $k[$j++] = _5c.get(_5d); //#17335 + $k[$j++] = Infinity; //#17335 + var _5i = $k[--$j]; //#17335 + var _5j = $k[--$j]; //#17335 + $k[$j++] = _5i; //#17335 + $k[$j++] = $get($1.TNvals, $1.sft2); //#17335 + $k[$j++] = _5j; //#17335 + var _5n = $a(); //#17335 + $k[$j++] = _5n; //#17335 + } //#17335 + var _5o = $1.T3vals; //#17336 + for (var _5t = _5o.size, _5s = _5o.keys(), _5r = 0; _5r < _5t; _5r++) { //#17336 + var _5p = _5s.next().value; //#17336 + $k[$j++] = _5p; //#17336 + $k[$j++] = _5o.get(_5p); //#17336 + $k[$j++] = Infinity; //#17336 + var _5u = $k[--$j]; //#17336 + var _5v = $k[--$j]; //#17336 + $k[$j++] = _5u; //#17336 + $k[$j++] = $get($1.TNvals, $1.sft3); //#17336 + $k[$j++] = _5v; //#17336 + var _5z = $a(); //#17336 + $k[$j++] = _5z; //#17336 + } //#17336 + $1.Tvals = $d(); //#17337 + for (var _61 = 128; _61 <= 255; _61 += 1) { //#17345 + $1.i = _61; //#17341 + $k[$j++] = $1.Avals; //#17342 + $k[$j++] = $1.i; //#17342 + $k[$j++] = Infinity; //#17342 + $aload($get($1.Avals, $1.usft)); //#17342 + $aload($get($1.Avals, $1.i - 128)); //#17342 + var _6A = $a(); //#17342 + var _6B = $k[--$j]; //#17342 + $put($k[--$j], _6B, _6A); //#17342 + $k[$j++] = $1.Cvals; //#17343 + $k[$j++] = $1.i; //#17343 + $k[$j++] = Infinity; //#17343 + $aload($get($1.Cvals, $1.usft)); //#17343 + $aload($get($1.Cvals, $1.i - 128)); //#17343 + var _6L = $a(); //#17343 + var _6M = $k[--$j]; //#17343 + $put($k[--$j], _6M, _6L); //#17343 + $k[$j++] = $1.Tvals; //#17344 + $k[$j++] = $1.i; //#17344 + $k[$j++] = Infinity; //#17344 + $aload($get($1.Tvals, $1.usft)); //#17344 + $aload($get($1.Tvals, $1.i - 128)); //#17344 + var _6W = $a(); //#17344 + var _6X = $k[--$j]; //#17344 + $put($k[--$j], _6X, _6W); //#17344 + } //#17344 + $k[$j++] = Infinity; //#17353 + $k[$j++] = 13; //#17352 + $k[$j++] = 0; //#17352 + $k[$j++] = 42; //#17352 + $k[$j++] = 1; //#17352 + $k[$j++] = 62; //#17352 + $k[$j++] = 2; //#17352 + $k[$j++] = 32; //#17352 + $k[$j++] = 3; //#17352 + for (var _6Z = 48; _6Z <= 57; _6Z += 1) { //#17352 + $k[$j++] = _6Z; //#17352 + $k[$j++] = _6Z - 44; //#17352 + } //#17352 + for (var _6a = 65; _6a <= 90; _6a += 1) { //#17353 + $k[$j++] = _6a; //#17353 + $k[$j++] = _6a - 51; //#17353 + } //#17353 + $1.Xvals = $d(); //#17354 + $k[$j++] = Infinity; //#17356 + var _6c = $1.Xvals; //#17356 + for (var _6h = _6c.size, _6g = _6c.keys(), _6f = 0; _6f < _6h; _6f++) { //#17356 + var _6d = _6g.next().value; //#17356 + $k[$j++] = _6d; //#17356 + $k[$j++] = _6c.get(_6d); //#17356 + $k[$j++] = Infinity; //#17356 + var _6i = $k[--$j]; //#17356 + var _6j = $k[--$j]; //#17356 + $k[$j++] = _6i; //#17356 + $k[$j++] = _6j; //#17356 + var _6k = $a(); //#17356 + $k[$j++] = _6k; //#17356 + } //#17356 + $1.Xvals = $d(); //#17357 + $k[$j++] = Infinity; //#17362 + for (var _6m = 64; _6m <= 94; _6m += 1) { //#17360 + $k[$j++] = _6m; //#17360 + $k[$j++] = _6m - 64; //#17360 + } //#17360 + $k[$j++] = $1.unl; //#17362 + $k[$j++] = 31; //#17362 + for (var _6o = 32; _6o <= 63; _6o += 1) { //#17362 + $k[$j++] = _6o; //#17362 + $k[$j++] = _6o; //#17362 + } //#17362 + $1.Evals = $d(); //#17363 + $k[$j++] = Infinity; //#17365 + var _6q = $1.Evals; //#17365 + for (var _6v = _6q.size, _6u = _6q.keys(), _6t = 0; _6t < _6v; _6t++) { //#17365 + var _6r = _6u.next().value; //#17365 + $k[$j++] = _6r; //#17365 + $k[$j++] = _6q.get(_6r); //#17365 + $k[$j++] = Infinity; //#17365 + var _6w = $k[--$j]; //#17365 + var _6x = $k[--$j]; //#17365 + $k[$j++] = _6w; //#17365 + $k[$j++] = _6x; //#17365 + var _6y = $a(); //#17365 + $k[$j++] = _6y; //#17365 + } //#17365 + $1.Evals = $d(); //#17366 + $k[$j++] = Infinity; //#17369 + for (var _70 = 0; _70 <= 255; _70 += 1) { //#17369 + $k[$j++] = _70; //#17369 + $k[$j++] = _70; //#17369 + } //#17369 + $1.Bvals = $d(); //#17370 + $k[$j++] = Infinity; //#17372 + var _72 = $1.Bvals; //#17372 + for (var _77 = _72.size, _76 = _72.keys(), _75 = 0; _75 < _77; _75++) { //#17372 + var _73 = _76.next().value; //#17372 + $k[$j++] = _73; //#17372 + $k[$j++] = _72.get(_73); //#17372 + $k[$j++] = Infinity; //#17372 + var _78 = $k[--$j]; //#17372 + var _79 = $k[--$j]; //#17372 + $k[$j++] = _78; //#17372 + $k[$j++] = _79; //#17372 + var _7A = $a(); //#17372 + $k[$j++] = _7A; //#17372 + } //#17372 + $1.Bvals = $d(); //#17373 + $1.encvals = $a([$1.Avals, $1.Cvals, $1.Tvals, $1.Xvals, $1.Evals, $1.Bvals]); //#17375 + $k[$j++] = Infinity; //#17377 + for (var _7K = 0, _7L = $1.msglen; _7K < _7L; _7K++) { //#17377 + $k[$j++] = 0; //#17377 + } //#17377 + $k[$j++] = 0; //#17377 + $1.numD = $a(); //#17377 + $k[$j++] = Infinity; //#17378 + for (var _7O = 0, _7P = $1.msglen; _7O < _7P; _7O++) { //#17378 + $k[$j++] = 0; //#17378 + } //#17378 + $k[$j++] = 9999; //#17378 + $1.nextXterm = $a(); //#17378 + $k[$j++] = Infinity; //#17379 + for (var _7S = 0, _7T = $1.msglen; _7S < _7T; _7S++) { //#17379 + $k[$j++] = 0; //#17379 + } //#17379 + $k[$j++] = 9999; //#17379 + $1.nextNonX = $a(); //#17379 + $k[$j++] = Infinity; //#17380 + for (var _7W = 0, _7X = $1.msglen; _7W < _7X; _7W++) { //#17380 + $k[$j++] = false; //#17380 + } //#17380 + $k[$j++] = false; //#17380 + $1.isECI = $a(); //#17380 + for (var _7a = $1.msglen - 1; _7a >= 0; _7a -= 1) { //#17398 + $1.i = _7a; //#17382 + $1.barchar = $get($1.msg, $1.i); //#17383 + if (($1.barchar >= 48) && ($1.barchar <= 57)) { //#17386 + $put($1.numD, $1.i, $f($get($1.numD, $1.i + 1) + 1)); //#17385 + } //#17385 + if ((($1.barchar == 13) || ($1.barchar == 42)) || ($1.barchar == 62)) { //#17390 + $put($1.nextXterm, $1.i, 0); //#17388 + } else { //#17390 + $put($1.nextXterm, $1.i, $f($get($1.nextXterm, $1.i + 1) + 1)); //#17390 + } //#17390 + var _7x = $get($1.Xvals, $1.barchar) !== undefined; //#17392 + if (!_7x) { //#17395 + $put($1.nextNonX, $1.i, 0); //#17393 + } else { //#17395 + $put($1.nextNonX, $1.i, $f($get($1.nextNonX, $1.i + 1) + 1)); //#17395 + } //#17395 + $put($1.isECI, $1.i, $1.barchar <= -1000000); //#17397 + } //#17397 + $k[$j++] = Infinity; //#17399 + var _88 = $1.nextXterm; //#17399 + for (var _89 = 0, _8A = _88.length; _89 < _8A; _89++) { //#17399 + var _8B = $get(_88, _89); //#17399 + $k[$j++] = _8B; //#17399 + if (_8B > 10000) { //#17399 + $j--; //#17399 + $k[$j++] = 10000; //#17399 + } //#17399 + } //#17399 + $1.nextXterm = $a(); //#17399 + $k[$j++] = Infinity; //#17400 + var _8D = $1.nextNonX; //#17400 + for (var _8E = 0, _8F = _8D.length; _8E < _8F; _8E++) { //#17400 + var _8G = $get(_8D, _8E); //#17400 + $k[$j++] = _8G; //#17400 + if (_8G > 10000) { //#17400 + $j--; //#17400 + $k[$j++] = 10000; //#17400 + } //#17400 + } //#17400 + $1.nextNonX = $a(); //#17400 $1.isD = function() { - $k[$j++] = $1.char >= 48 && $1.char <= 57; - }; + $k[$j++] = ($1.char >= 48) && ($1.char <= 57); //#17402 + }; //#17402 $1.isC = function() { - var _8M = $get($1.CNvals, $1.char) !== undefined; - $k[$j++] = _8M; - }; + var _8M = $get($1.CNvals, $1.char) !== undefined; //#17403 + $k[$j++] = _8M; //#17403 + }; //#17403 $1.isT = function() { - var _8P = $get($1.TNvals, $1.char) !== undefined; - $k[$j++] = _8P; - }; + var _8P = $get($1.TNvals, $1.char) !== undefined; //#17404 + $k[$j++] = _8P; //#17404 + }; //#17404 $1.isX = function() { - var _8S = $get($1.Xvals, $1.char) !== undefined; - $k[$j++] = _8S; - }; + var _8S = $get($1.Xvals, $1.char) !== undefined; //#17405 + $k[$j++] = _8S; //#17405 + }; //#17405 $1.isE = function() { - var _8V = $get($1.Evals, $1.char) !== undefined; - $k[$j++] = _8V; - }; + var _8V = $get($1.Evals, $1.char) !== undefined; //#17406 + $k[$j++] = _8V; //#17406 + }; //#17406 $1.isEA = function() { - $k[$j++] = $1.char > 127; - }; + $k[$j++] = $1.char > 127; //#17407 + }; //#17407 $1.isFN = function() { - $k[$j++] = $1.char < 0; - }; + $k[$j++] = $1.char < 0; //#17408 + }; //#17408 $1.XtermFirst = function() { - var _8Y = $k[--$j]; - $k[$j++] = $lt($get($1.nextXterm, _8Y), $get($1.nextNonX, _8Y)); - }; - $1.A = 0; - $1.C = 1; - $1.T = 2; - $1.X = 3; - $1.E = 4; - $1.B = 5; + var _8Y = $k[--$j]; //#17409 + $k[$j++] = $lt($get($1.nextXterm, _8Y), $get($1.nextNonX, _8Y)); //#17409 + }; //#17409 + $1.A = 0; //#17411 + $1.C = 1; //#17411 + $1.T = 2; //#17411 + $1.X = 3; //#17411 + $1.E = 4; //#17411 + $1.B = 5; //#17411 $1.lookup = function() { - $1.ac = 1; - $1.cc = 2; - $1.tc = 2; - $1.xc = 2; - $1.ec = 2; - $1.bc = 2.25; - if ($1.mode == $1.A) { - $1.ac = 0; - $1.cc = 1; - $1.tc = 1; - $1.xc = 1; - $1.ec = 1; - $1.bc = 1.25; - } - if ($1.mode == $1.C) { - $1.cc = 0; - } - if ($1.mode == $1.T) { - $1.tc = 0; - } - if ($1.mode == $1.X) { - $1.xc = 0; - } - if ($1.mode == $1.E) { - $1.ec = 0; - } - if ($1.mode == $1.B) { - $1.bc = 0; - } - for (var _8p = 0, _8q = 1; _8p < _8q; _8p++) { - if ($get($1.isECI, $1.i)) { - $k[$j++] = $1.A; - break; - } - if ($1.mailmark && $1.i < 45) { - $k[$j++] = $1.C; - break; - } - $1.k = 0; - for (;;) { - if ($1.i + $1.k == $1.msglen) { - var _91 = $a([ "ac", "cc", "tc", "xc", "ec", "bc" ]); - for (var _92 = 0, _93 = _91.length; _92 < _93; _92++) { - var _94 = $get(_91, _92); - $1[_94] = Math.ceil($1[_94]); - } - var _9B = $a([ $1.cc, $1.tc, $1.xc, $1.ec, $1.bc ]); - $k[$j++] = true; - for (var _9C = 0, _9D = _9B.length; _9C < _9D; _9C++) { - var _9G = $k[--$j]; - $k[$j++] = _9G && $1.ac <= $get(_9B, _9C); - } - if ($k[--$j]) { - $k[$j++] = $1.A; - break; - } - var _9O = $a([ $1.ac, $1.cc, $1.tc, $1.xc, $1.ec ]); - $k[$j++] = true; - for (var _9P = 0, _9Q = _9O.length; _9P < _9Q; _9P++) { - var _9T = $k[--$j]; - $k[$j++] = _9T && $1.bc < $get(_9O, _9P); - } - if ($k[--$j]) { - $k[$j++] = $1.B; - break; - } - var _9b = $a([ $1.ac, $1.cc, $1.tc, $1.xc, $1.bc ]); - $k[$j++] = true; - for (var _9c = 0, _9d = _9b.length; _9c < _9d; _9c++) { - var _9g = $k[--$j]; - $k[$j++] = _9g && $1.ec < $get(_9b, _9c); - } - if ($k[--$j]) { - $k[$j++] = $1.E; - break; - } - var _9o = $a([ $1.ac, $1.cc, $1.xc, $1.ec, $1.bc ]); - $k[$j++] = true; - for (var _9p = 0, _9q = _9o.length; _9p < _9q; _9p++) { - var _9t = $k[--$j]; - $k[$j++] = _9t && $1.tc < $get(_9o, _9p); - } - if ($k[--$j]) { - $k[$j++] = $1.T; - break; - } - var _A1 = $a([ $1.ac, $1.cc, $1.tc, $1.ec, $1.bc ]); - $k[$j++] = true; - for (var _A2 = 0, _A3 = _A1.length; _A2 < _A3; _A2++) { - var _A6 = $k[--$j]; - $k[$j++] = _A6 && $1.xc < $get(_A1, _A2); - } - if ($k[--$j]) { - $k[$j++] = $1.X; - break; - } - $k[$j++] = $1.C; - break; - } - $1.char = $get($1.msg, $1.i + $1.k); - $k[$j++] = "ac"; - $k[$j++] = $1.ac; - $1.isD(); - if ($k[--$j]) { - var _AG = $k[--$j]; - $k[$j++] = $f(_AG + 1 / 2); - } else { - $1.isEA(); - if ($k[--$j]) { - var _AI = $k[--$j]; - $k[$j++] = Math.ceil(_AI) + 2; - } else { - var _AJ = $k[--$j]; - $k[$j++] = Math.ceil(_AJ) + 1; - } - } - var _AK = $k[--$j]; - $1[$k[--$j]] = _AK; - $k[$j++] = "cc"; - $k[$j++] = $1.cc; - $1.isC(); - if ($k[--$j]) { - var _AO = $k[--$j]; - $k[$j++] = $f(_AO + .66666667); - } else { - $1.isEA(); - if ($k[--$j]) { - var _AQ = $k[--$j]; - $k[$j++] = $f(_AQ + 2.66666667); - } else { - var _AR = $k[--$j]; - $k[$j++] = $f(_AR + 1.33333334); - } - } - var _AS = $k[--$j]; - $1[$k[--$j]] = _AS; - $k[$j++] = "tc"; - $k[$j++] = $1.tc; - $1.isT(); - if ($k[--$j]) { - var _AW = $k[--$j]; - $k[$j++] = $f(_AW + .66666667); - } else { - $1.isEA(); - if ($k[--$j]) { - var _AY = $k[--$j]; - $k[$j++] = $f(_AY + 2.66666667); - } else { - var _AZ = $k[--$j]; - $k[$j++] = $f(_AZ + 1.33333334); - } - } - var _Aa = $k[--$j]; - $1[$k[--$j]] = _Aa; - $k[$j++] = "xc"; - $k[$j++] = $1.xc; - $1.isX(); - if ($k[--$j]) { - var _Ae = $k[--$j]; - $k[$j++] = $f(_Ae + .66666667); - } else { - $1.isEA(); - if ($k[--$j]) { - var _Ag = $k[--$j]; - $k[$j++] = $f(_Ag + 4.33333334); - } else { - var _Ah = $k[--$j]; - $k[$j++] = $f(_Ah + 3.33333334); - } - } - var _Ai = $k[--$j]; - $1[$k[--$j]] = _Ai; - $k[$j++] = "ec"; - $k[$j++] = $1.ec; - $1.isE(); - if ($k[--$j]) { - var _Am = $k[--$j]; - $k[$j++] = $f(_Am + 3 / 4); - } else { - $1.isEA(); - if ($k[--$j]) { - var _Ao = $k[--$j]; - $k[$j++] = $f(_Ao + 17 / 4); - } else { - var _Ap = $k[--$j]; - $k[$j++] = $f(_Ap + 13 / 4); - } - } - var _Aq = $k[--$j]; - $1[$k[--$j]] = _Aq; - $k[$j++] = "bc"; - $k[$j++] = $1.bc; - $1.isFN(); - if ($k[--$j]) { - var _Au = $k[--$j]; - $k[$j++] = $f(_Au + 4); - } else { - var _Av = $k[--$j]; - $k[$j++] = $f(_Av + 1); - } - var _Aw = $k[--$j]; - $1[$k[--$j]] = _Aw; - if ($1.k >= 4) { - var _B4 = $a([ $1.cc, $1.tc, $1.xc, $1.ec, $1.bc ]); - $k[$j++] = true; - for (var _B5 = 0, _B6 = _B4.length; _B5 < _B6; _B5++) { - var _B9 = $k[--$j]; - $k[$j++] = _B9 && $1.ac + 1 <= $get(_B4, _B5); - } - if ($k[--$j]) { - $k[$j++] = $1.A; - break; - } - if ($1.bc + 1 <= $1.ac) { - $k[$j++] = $1.B; - break; - } - var _BJ = $a([ $1.cc, $1.tc, $1.xc, $1.ec ]); - $k[$j++] = true; - for (var _BK = 0, _BL = _BJ.length; _BK < _BL; _BK++) { - var _BO = $k[--$j]; - $k[$j++] = _BO && $1.bc + 1 < $get(_BJ, _BK); - } - if ($k[--$j]) { - $k[$j++] = $1.B; - break; - } - var _BW = $a([ $1.ac, $1.cc, $1.tc, $1.xc, $1.bc ]); - $k[$j++] = true; - for (var _BX = 0, _BY = _BW.length; _BX < _BY; _BX++) { - var _Bb = $k[--$j]; - $k[$j++] = _Bb && $1.ec + 1 < $get(_BW, _BX); - } - if ($k[--$j]) { - $k[$j++] = $1.E; - break; - } - var _Bj = $a([ $1.ac, $1.cc, $1.xc, $1.ec, $1.bc ]); - $k[$j++] = true; - for (var _Bk = 0, _Bl = _Bj.length; _Bk < _Bl; _Bk++) { - var _Bo = $k[--$j]; - $k[$j++] = _Bo && $1.tc + 1 < $get(_Bj, _Bk); - } - if ($k[--$j]) { - $k[$j++] = $1.T; - break; - } - var _Bw = $a([ $1.ac, $1.cc, $1.tc, $1.ec, $1.bc ]); - $k[$j++] = true; - for (var _Bx = 0, _By = _Bw.length; _Bx < _By; _Bx++) { - var _C1 = $k[--$j]; - $k[$j++] = _C1 && $1.xc + 1 < $get(_Bw, _Bx); - } - if ($k[--$j]) { - $k[$j++] = $1.X; - break; - } - var _C8 = $a([ $1.ac, $1.tc, $1.ec, $1.bc ]); - $k[$j++] = true; - for (var _C9 = 0, _CA = _C8.length; _C9 < _CA; _C9++) { - var _CD = $k[--$j]; - $k[$j++] = _CD && $1.cc + 1 < $get(_C8, _C9); - } - if ($k[--$j]) { - if ($1.cc < $1.xc) { - $k[$j++] = $1.C; - break; - } - if ($1.cc == $1.xc) { - $k[$j++] = $1.i + $1.k + 1; - $1.XtermFirst(); - if ($k[--$j]) { - $k[$j++] = $1.X; - break; - } else { - $k[$j++] = $1.C; - break; - } - } - } - } - $1.k = $1.k + 1; - } - } - }; + $1.ac = 1; //#17414 + $1.cc = 2; //#17414 + $1.tc = 2; //#17414 + $1.xc = 2; //#17414 + $1.ec = 2; //#17414 + $1.bc = 2.25; //#17414 + if ($1.mode == $1.A) { //#17415 + $1.ac = 0; //#17415 + $1.cc = 1; //#17415 + $1.tc = 1; //#17415 + $1.xc = 1; //#17415 + $1.ec = 1; //#17415 + $1.bc = 1.25; //#17415 + } //#17415 + if ($1.mode == $1.C) { //#17416 + $1.cc = 0; //#17416 + } //#17416 + if ($1.mode == $1.T) { //#17417 + $1.tc = 0; //#17417 + } //#17417 + if ($1.mode == $1.X) { //#17418 + $1.xc = 0; //#17418 + } //#17418 + if ($1.mode == $1.E) { //#17419 + $1.ec = 0; //#17419 + } //#17419 + if ($1.mode == $1.B) { //#17420 + $1.bc = 0; //#17420 + } //#17420 + for (var _8p = 0, _8q = 1; _8p < _8q; _8p++) { //#17455 + if ($get($1.isECI, $1.i)) { //#17422 + $k[$j++] = $1.A; //#17422 + break; //#17422 + } //#17422 + if ($1.mailmark && ($1.i < 45)) { //#17423 + $k[$j++] = $1.C; //#17423 + break; //#17423 + } //#17423 + $1.k = 0; //#17424 + for (;;) { //#17454 + if (($1.i + $1.k) == $1.msglen) { //#17433 + var _91 = $a(['ac', 'cc', 'tc', 'xc', 'ec', 'bc']); //#17426 + for (var _92 = 0, _93 = _91.length; _92 < _93; _92++) { //#17426 + var _94 = $get(_91, _92); //#17426 + $1[_94] = Math.ceil($1[_94]); //#17426 + } //#17426 + var _9B = $a([$1.cc, $1.tc, $1.xc, $1.ec, $1.bc]); //#17427 + $k[$j++] = true; //#17427 + for (var _9C = 0, _9D = _9B.length; _9C < _9D; _9C++) { //#17427 + var _9G = $k[--$j]; //#17427 + $k[$j++] = _9G && ($1.ac <= $get(_9B, _9C)); //#17427 + } //#17427 + if ($k[--$j]) { //#17427 + $k[$j++] = $1.A; //#17427 + break; //#17427 + } //#17427 + var _9O = $a([$1.ac, $1.cc, $1.tc, $1.xc, $1.ec]); //#17428 + $k[$j++] = true; //#17428 + for (var _9P = 0, _9Q = _9O.length; _9P < _9Q; _9P++) { //#17428 + var _9T = $k[--$j]; //#17428 + $k[$j++] = _9T && ($1.bc < $get(_9O, _9P)); //#17428 + } //#17428 + if ($k[--$j]) { //#17428 + $k[$j++] = $1.B; //#17428 + break; //#17428 + } //#17428 + var _9b = $a([$1.ac, $1.cc, $1.tc, $1.xc, $1.bc]); //#17429 + $k[$j++] = true; //#17429 + for (var _9c = 0, _9d = _9b.length; _9c < _9d; _9c++) { //#17429 + var _9g = $k[--$j]; //#17429 + $k[$j++] = _9g && ($1.ec < $get(_9b, _9c)); //#17429 + } //#17429 + if ($k[--$j]) { //#17429 + $k[$j++] = $1.E; //#17429 + break; //#17429 + } //#17429 + var _9o = $a([$1.ac, $1.cc, $1.xc, $1.ec, $1.bc]); //#17430 + $k[$j++] = true; //#17430 + for (var _9p = 0, _9q = _9o.length; _9p < _9q; _9p++) { //#17430 + var _9t = $k[--$j]; //#17430 + $k[$j++] = _9t && ($1.tc < $get(_9o, _9p)); //#17430 + } //#17430 + if ($k[--$j]) { //#17430 + $k[$j++] = $1.T; //#17430 + break; //#17430 + } //#17430 + var _A1 = $a([$1.ac, $1.cc, $1.tc, $1.ec, $1.bc]); //#17431 + $k[$j++] = true; //#17431 + for (var _A2 = 0, _A3 = _A1.length; _A2 < _A3; _A2++) { //#17431 + var _A6 = $k[--$j]; //#17431 + $k[$j++] = _A6 && ($1.xc < $get(_A1, _A2)); //#17431 + } //#17431 + if ($k[--$j]) { //#17431 + $k[$j++] = $1.X; //#17431 + break; //#17431 + } //#17431 + $k[$j++] = $1.C; //#17432 + break; //#17432 + } //#17432 + $1.char = $get($1.msg, $1.i + $1.k); //#17434 + $k[$j++] = 'ac'; //#17435 + $k[$j++] = $1.ac; //#17435 + $1.isD(); //#17435 + if ($k[--$j]) { //#17435 + var _AG = $k[--$j]; //#17435 + $k[$j++] = $f(_AG + (1 / 2)); //#17435 + } else { //#17435 + $1.isEA(); //#17435 + if ($k[--$j]) { //#17435 + var _AI = $k[--$j]; //#17435 + $k[$j++] = Math.ceil(_AI) + 2; //#17435 + } else { //#17435 + var _AJ = $k[--$j]; //#17435 + $k[$j++] = Math.ceil(_AJ) + 1; //#17435 + } //#17435 + } //#17435 + var _AK = $k[--$j]; //#17435 + $1[$k[--$j]] = _AK; //#17435 + $k[$j++] = 'cc'; //#17436 + $k[$j++] = $1.cc; //#17436 + $1.isC(); //#17436 + if ($k[--$j]) { //#17436 + var _AO = $k[--$j]; //#17436 + $k[$j++] = $f(_AO + 0.66666667); //#17436 + } else { //#17436 + $1.isEA(); //#17436 + if ($k[--$j]) { //#17436 + var _AQ = $k[--$j]; //#17436 + $k[$j++] = $f(_AQ + 2.66666667); //#17436 + } else { //#17436 + var _AR = $k[--$j]; //#17436 + $k[$j++] = $f(_AR + 1.33333334); //#17436 + } //#17436 + } //#17436 + var _AS = $k[--$j]; //#17436 + $1[$k[--$j]] = _AS; //#17436 + $k[$j++] = 'tc'; //#17437 + $k[$j++] = $1.tc; //#17437 + $1.isT(); //#17437 + if ($k[--$j]) { //#17437 + var _AW = $k[--$j]; //#17437 + $k[$j++] = $f(_AW + 0.66666667); //#17437 + } else { //#17437 + $1.isEA(); //#17437 + if ($k[--$j]) { //#17437 + var _AY = $k[--$j]; //#17437 + $k[$j++] = $f(_AY + 2.66666667); //#17437 + } else { //#17437 + var _AZ = $k[--$j]; //#17437 + $k[$j++] = $f(_AZ + 1.33333334); //#17437 + } //#17437 + } //#17437 + var _Aa = $k[--$j]; //#17437 + $1[$k[--$j]] = _Aa; //#17437 + $k[$j++] = 'xc'; //#17438 + $k[$j++] = $1.xc; //#17438 + $1.isX(); //#17438 + if ($k[--$j]) { //#17438 + var _Ae = $k[--$j]; //#17438 + $k[$j++] = $f(_Ae + 0.66666667); //#17438 + } else { //#17438 + $1.isEA(); //#17438 + if ($k[--$j]) { //#17438 + var _Ag = $k[--$j]; //#17438 + $k[$j++] = $f(_Ag + 4.33333334); //#17438 + } else { //#17438 + var _Ah = $k[--$j]; //#17438 + $k[$j++] = $f(_Ah + 3.33333334); //#17438 + } //#17438 + } //#17438 + var _Ai = $k[--$j]; //#17438 + $1[$k[--$j]] = _Ai; //#17438 + $k[$j++] = 'ec'; //#17439 + $k[$j++] = $1.ec; //#17439 + $1.isE(); //#17439 + if ($k[--$j]) { //#17439 + var _Am = $k[--$j]; //#17439 + $k[$j++] = $f(_Am + (3 / 4)); //#17439 + } else { //#17439 + $1.isEA(); //#17439 + if ($k[--$j]) { //#17439 + var _Ao = $k[--$j]; //#17439 + $k[$j++] = $f(_Ao + (17 / 4)); //#17439 + } else { //#17439 + var _Ap = $k[--$j]; //#17439 + $k[$j++] = $f(_Ap + (13 / 4)); //#17439 + } //#17439 + } //#17439 + var _Aq = $k[--$j]; //#17439 + $1[$k[--$j]] = _Aq; //#17439 + $k[$j++] = 'bc'; //#17440 + $k[$j++] = $1.bc; //#17440 + $1.isFN(); //#17440 + if ($k[--$j]) { //#17440 + var _Au = $k[--$j]; //#17440 + $k[$j++] = $f(_Au + 4); //#17440 + } else { //#17440 + var _Av = $k[--$j]; //#17440 + $k[$j++] = $f(_Av + 1); //#17440 + } //#17440 + var _Aw = $k[--$j]; //#17440 + $1[$k[--$j]] = _Aw; //#17440 + if ($1.k >= 4) { //#17452 + var _B4 = $a([$1.cc, $1.tc, $1.xc, $1.ec, $1.bc]); //#17442 + $k[$j++] = true; //#17442 + for (var _B5 = 0, _B6 = _B4.length; _B5 < _B6; _B5++) { //#17442 + var _B9 = $k[--$j]; //#17442 + $k[$j++] = _B9 && (($1.ac + 1) <= $get(_B4, _B5)); //#17442 + } //#17442 + if ($k[--$j]) { //#17442 + $k[$j++] = $1.A; //#17442 + break; //#17442 + } //#17442 + if (($1.bc + 1) <= $1.ac) { //#17443 + $k[$j++] = $1.B; //#17443 + break; //#17443 + } //#17443 + var _BJ = $a([$1.cc, $1.tc, $1.xc, $1.ec]); //#17444 + $k[$j++] = true; //#17444 + for (var _BK = 0, _BL = _BJ.length; _BK < _BL; _BK++) { //#17444 + var _BO = $k[--$j]; //#17444 + $k[$j++] = _BO && (($1.bc + 1) < $get(_BJ, _BK)); //#17444 + } //#17444 + if ($k[--$j]) { //#17444 + $k[$j++] = $1.B; //#17444 + break; //#17444 + } //#17444 + var _BW = $a([$1.ac, $1.cc, $1.tc, $1.xc, $1.bc]); //#17445 + $k[$j++] = true; //#17445 + for (var _BX = 0, _BY = _BW.length; _BX < _BY; _BX++) { //#17445 + var _Bb = $k[--$j]; //#17445 + $k[$j++] = _Bb && (($1.ec + 1) < $get(_BW, _BX)); //#17445 + } //#17445 + if ($k[--$j]) { //#17445 + $k[$j++] = $1.E; //#17445 + break; //#17445 + } //#17445 + var _Bj = $a([$1.ac, $1.cc, $1.xc, $1.ec, $1.bc]); //#17446 + $k[$j++] = true; //#17446 + for (var _Bk = 0, _Bl = _Bj.length; _Bk < _Bl; _Bk++) { //#17446 + var _Bo = $k[--$j]; //#17446 + $k[$j++] = _Bo && (($1.tc + 1) < $get(_Bj, _Bk)); //#17446 + } //#17446 + if ($k[--$j]) { //#17446 + $k[$j++] = $1.T; //#17446 + break; //#17446 + } //#17446 + var _Bw = $a([$1.ac, $1.cc, $1.tc, $1.ec, $1.bc]); //#17447 + $k[$j++] = true; //#17447 + for (var _Bx = 0, _By = _Bw.length; _Bx < _By; _Bx++) { //#17447 + var _C1 = $k[--$j]; //#17447 + $k[$j++] = _C1 && (($1.xc + 1) < $get(_Bw, _Bx)); //#17447 + } //#17447 + if ($k[--$j]) { //#17447 + $k[$j++] = $1.X; //#17447 + break; //#17447 + } //#17447 + var _C8 = $a([$1.ac, $1.tc, $1.ec, $1.bc]); //#17448 + $k[$j++] = true; //#17448 + for (var _C9 = 0, _CA = _C8.length; _C9 < _CA; _C9++) { //#17448 + var _CD = $k[--$j]; //#17448 + $k[$j++] = _CD && (($1.cc + 1) < $get(_C8, _C9)); //#17448 + } //#17448 + if ($k[--$j]) { //#17451 + if ($1.cc < $1.xc) { //#17449 + $k[$j++] = $1.C; //#17449 + break; //#17449 + } //#17449 + if ($1.cc == $1.xc) { //#17450 + $k[$j++] = ($1.i + $1.k) + 1; //#17450 + $1.XtermFirst(); //#17450 + if ($k[--$j]) { //#17450 + $k[$j++] = $1.X; //#17450 + break; //#17450 + } else { //#17450 + $k[$j++] = $1.C; //#17450 + break; //#17450 + } //#17450 + } //#17450 + } //#17450 + } //#17450 + $1.k = $1.k + 1; //#17453 + } //#17453 + } //#17453 + }; //#17456 $1.addtocws = function() { - var _CQ = $k[--$j]; - $puti($1.cws, $1.j, _CQ); - $1.j = _CQ.length + $1.j; - }; + var _CQ = $k[--$j]; //#17459 + $puti($1.cws, $1.j, _CQ); //#17459 + $1.j = _CQ.length + $1.j; //#17460 + }; //#17461 $1.ECItocws = function() { - var _CV = $f(-$k[--$j] - 1e6); - $k[$j++] = _CV; - if (_CV <= 126) { - var _CW = $k[--$j]; - $k[$j++] = $f(_CW + 1); - $astore($a(1)); - } else { - var _CY = $k[--$j]; - $k[$j++] = _CY; - if (_CY <= 16382) { - var _Ca = $f($k[--$j] - 127); - $k[$j++] = ~~(_Ca / 254) + 128; - $k[$j++] = $f(_Ca % 254 + 1); - $astore($a(2)); - } else { - var _Cd = $f($k[--$j] - 16383); - $k[$j++] = ~~(_Cd / 64516) + 192; - $k[$j++] = ~~(_Cd / 254) % 254 + 1; - $k[$j++] = $f(_Cd % 254 + 1); - $astore($a(3)); - } - } - }; + var _CV = $f((-$k[--$j]) - 1000000); //#17465 + $k[$j++] = _CV; //#17479 + if (_CV <= 126) { //#17478 + var _CW = $k[--$j]; //#17466 + $k[$j++] = $f(_CW + 1); //#17467 + $astore($a(1)); //#17467 + } else { //#17478 + var _CY = $k[--$j]; //#17468 + $k[$j++] = _CY; //#17479 + if (_CY <= 16382) { //#17478 + var _Ca = $f($k[--$j] - 127); //#17470 + $k[$j++] = (~~(_Ca / 254)) + 128; //#17472 + $k[$j++] = $f((_Ca % 254) + 1); //#17472 + $astore($a(2)); //#17472 + } else { //#17478 + var _Cd = $f($k[--$j] - 16383); //#17475 + $k[$j++] = (~~(_Cd / 64516)) + 192; //#17478 + $k[$j++] = ((~~(_Cd / 254)) % 254) + 1; //#17478 + $k[$j++] = $f((_Cd % 254) + 1); //#17478 + $astore($a(3)); //#17478 + } //#17478 + } //#17478 + }; //#17480 $1.encA = function() { - for (var _Cf = 0, _Cg = 1; _Cf < _Cg; _Cf++) { - if ($get($1.isECI, $1.i)) { - $k[$j++] = $get($1.Avals, $1.eci); - $1.addtocws(); - $k[$j++] = $get($1.msg, $1.i); - $1.ECItocws(); - $1.addtocws(); - $1.i = $1.i + 1; - break; - } - if ($get($1.numD, $1.i) >= 2) { - var _Cu = $s(2); - $put(_Cu, 0, $get($1.msg, $1.i)); - $put(_Cu, 1, $get($1.msg, $1.i + 1)); - $k[$j++] = $get($1.Avals, _Cu); - $1.addtocws(); - $1.i = $1.i + 2; - break; - } - $k[$j++] = "newmode"; - $1.lookup(); - var _D4 = $k[--$j]; - $1[$k[--$j]] = _D4; - if ($1.newmode != $1.mode) { - $k[$j++] = $get($1.Avals, $get($a([ -1, $1.lC, $1.lT, $1.lX, $1.lE, $1.lB ]), $1.newmode)); - $1.addtocws(); - $1.mode = $1.newmode; - break; - } - $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); - $1.addtocws(); - $1.i = $1.i + 1; - break; - } - }; + for (var _Cf = 0, _Cg = 1; _Cf < _Cg; _Cf++) { //#17504 + if ($get($1.isECI, $1.i)) { //#17489 + $k[$j++] = $get($1.Avals, $1.eci); //#17485 + $1.addtocws(); //#17485 + $k[$j++] = $get($1.msg, $1.i); //#17486 + $1.ECItocws(); //#17486 + $1.addtocws(); //#17486 + $1.i = $1.i + 1; //#17487 + break; //#17488 + } //#17488 + if ($get($1.numD, $1.i) >= 2) { //#17494 + var _Cu = $s(2); //#17491 + $put(_Cu, 0, $get($1.msg, $1.i)); //#17491 + $put(_Cu, 1, $get($1.msg, $1.i + 1)); //#17491 + $k[$j++] = $get($1.Avals, _Cu); //#17491 + $1.addtocws(); //#17491 + $1.i = $1.i + 2; //#17492 + break; //#17493 + } //#17493 + $k[$j++] = 'newmode'; //#17495 + $1.lookup(); //#17495 + var _D4 = $k[--$j]; //#17495 + $1[$k[--$j]] = _D4; //#17495 + if ($1.newmode != $1.mode) { //#17500 + $k[$j++] = $get($1.Avals, $get($a([-1, $1.lC, $1.lT, $1.lX, $1.lE, $1.lB]), $1.newmode)); //#17497 + $1.addtocws(); //#17497 + $1.mode = $1.newmode; //#17498 + break; //#17499 + } //#17499 + $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); //#17501 + $1.addtocws(); //#17501 + $1.i = $1.i + 1; //#17502 + break; //#17503 + } //#17503 + }; //#17505 $1.CTXvalstocws = function() { - $1.in = $k[--$j]; - $k[$j++] = Infinity; - for (var _DS = 0, _DR = $1.in.length - 1; _DS <= _DR; _DS += 3) { - var _DU = $geti($1.in, _DS, 3); - $k[$j++] = 0; - for (var _DV = 0, _DW = _DU.length; _DV < _DW; _DV++) { - var _DY = $k[--$j]; - $k[$j++] = $f(_DY + $get(_DU, _DV)) * 40; - } - var _Da = ~~($k[--$j] / 40) + 1; - $k[$j++] = ~~(_Da / 256); - $k[$j++] = _Da % 256; - } - $astore($a($counttomark())); - var _Dd = $k[--$j]; - var _De = $k[--$j]; - $k[$j++] = _Dd; - $k[$j++] = _De; - $j--; - }; + $1.in = $k[--$j]; //#17508 + $k[$j++] = Infinity; //#17509 + for (var _DS = 0, _DR = $1.in.length - 1; _DS <= _DR; _DS += 3) { //#17513 + var _DU = $geti($1.in, _DS, 3); //#17511 + $k[$j++] = 0; //#17511 + for (var _DV = 0, _DW = _DU.length; _DV < _DW; _DV++) { //#17511 + var _DY = $k[--$j]; //#17511 + $k[$j++] = $f(_DY + $get(_DU, _DV)) * 40; //#17511 + } //#17511 + var _Da = (~~($k[--$j] / 40)) + 1; //#17512 + $k[$j++] = ~~(_Da / 256); //#17512 + $k[$j++] = _Da % 256; //#17512 + } //#17512 + $astore($a($counttomark())); //#17514 + var _Dd = $k[--$j]; //#17514 + var _De = $k[--$j]; //#17514 + $k[$j++] = _Dd; //#17514 + $k[$j++] = _De; //#17514 + $j--; //#17514 + }; //#17515 $1.encCTX = function() { - $1.p = 0; - $1.ctxvals = $a(2500); - $1.done = false; - for (;;) { - if ($1.i == $1.msglen) { - break; - } - var _Do = $get($get($1.encvals, $1.mode), $get($1.msg, $1.i)) !== undefined; - if (!_Do) { - break; - } - if ($1.p % 3 == 0) { - $k[$j++] = "newmode"; - $1.lookup(); - var _Dq = $k[--$j]; - $1[$k[--$j]] = _Dq; - if ($ne($1.newmode, $1.mode)) { - $k[$j++] = $geti($1.ctxvals, 0, $1.p); - $1.CTXvalstocws(); - $1.addtocws(); - $k[$j++] = $a([ $1.unlcw ]); - $1.addtocws(); - if ($1.newmode != $1.A) { - $k[$j++] = $get($1.Avals, $get($a([ -1, $1.lC, $1.lT, $1.lX, $1.lE, $1.lB ]), $1.newmode)); - $1.addtocws(); - } - $1.mode = $1.newmode; - $1.done = true; - break; - } - if ($1.msglen - $1.i <= 3) { - $1.remcws = $get($1.numremcws, $1.j + ~~($1.p / 3) * 2); - $k[$j++] = Infinity; - var _EM = $geti($1.msg, $1.i, $1.msglen - $1.i); - for (var _EN = 0, _EO = _EM.length; _EN < _EO; _EN++) { - var _EP = $get(_EM, _EN); - var _ET = $get($get($1.encvals, $1.mode), _EP) !== undefined; - $k[$j++] = _EP; - if (_ET) { - $aload($get($get($1.encvals, $1.mode), $k[--$j])); - } else { - $j--; - $k[$j++] = -1; - $k[$j++] = -1; - $k[$j++] = -1; - $k[$j++] = -1; - } - } - $1.remvals = $a(); - if ($1.remcws == 2 && $1.remvals.length == 3) { - $k[$j++] = Infinity; - $aload($geti($1.ctxvals, 0, $1.p)); - $aload($1.remvals); - var _Eg = $a(); - $k[$j++] = _Eg; - $1.CTXvalstocws(); - $1.addtocws(); - $1.mode = $1.A; - $1.i = $1.msglen; - $1.done = true; - break; - } - if ($1.remcws == 2 && $1.remvals.length == 2 && $1.mode != $1.X) { - $k[$j++] = Infinity; - $aload($geti($1.ctxvals, 0, $1.p)); - $aload($1.remvals); - $aload($get($get($1.encvals, $1.mode), $1.sft1)); - var _Ew = $a(); - $k[$j++] = _Ew; - $1.CTXvalstocws(); - $1.addtocws(); - $1.mode = $1.A; - $1.i = $1.msglen; - $1.done = true; - break; - } - if ($1.remcws == 2 && $1.remvals.length == 1) { - $k[$j++] = $geti($1.ctxvals, 0, $1.p); - $1.CTXvalstocws(); - $1.addtocws(); - $k[$j++] = $a([ $1.unlcw ]); - $1.addtocws(); - $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); - $1.addtocws(); - $1.mode = $1.A; - $1.i = $1.msglen; - $1.done = true; - break; - } - if ($1.remcws == 1 && $1.remvals.length == 1) { - $k[$j++] = $geti($1.ctxvals, 0, $1.p); - $1.CTXvalstocws(); - $1.addtocws(); - $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); - $1.addtocws(); - $1.mode = $1.A; - $1.i = $1.msglen; - $1.done = true; - break; - } - } - } - var _FV = $get($get($1.encvals, $1.mode), $get($1.msg, $1.i)); - $puti($1.ctxvals, $1.p, _FV); - $1.p = _FV.length + $1.p; - $1.i = $1.i + 1; - } - if (!$1.done) { - for (;;) { - if ($1.p % 3 == 0) { - break; - } - $1.i = $1.i - 1; - $1.p = $1.p - $get($get($1.encvals, $1.mode), $get($1.msg, $1.i)).length; - } - $k[$j++] = Infinity; - $aload($geti($1.ctxvals, 0, $1.p)); - var _Fo = $a(); - $k[$j++] = _Fo; - $1.CTXvalstocws(); - $1.addtocws(); - $k[$j++] = $a([ $1.unlcw ]); - $1.addtocws(); - $1.mode = $1.A; - if ($1.i != $1.msglen && $nt($get($1.isECI, $1.i))) { - if ($get($1.numD, $1.i) >= 2) { - var _G0 = $s(2); - $put(_G0, 0, $get($1.msg, $1.i)); - $put(_G0, 1, $get($1.msg, $1.i + 1)); - $k[$j++] = $get($1.Avals, _G0); - $1.addtocws(); - $1.i = $1.i + 2; - } else { - $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); - $1.addtocws(); - $1.i = $1.i + 1; - } - } - } - }; + $1.p = 0; //#17518 + $1.ctxvals = $a(2500); //#17519 + $1.done = false; //#17520 + for (;;) { //#17597 + if ($1.i == $1.msglen) { //#17524 + break; //#17524 + } //#17524 + var _Do = $get($get($1.encvals, $1.mode), $get($1.msg, $1.i)) !== undefined; //#17525 + if (!_Do) { //#17525 + break; //#17525 + } //#17525 + if (($1.p % 3) == 0) { //#17592 + $k[$j++] = 'newmode'; //#17527 + $1.lookup(); //#17527 + var _Dq = $k[--$j]; //#17527 + $1[$k[--$j]] = _Dq; //#17527 + if ($ne($1.newmode, $1.mode)) { //#17537 + $k[$j++] = $geti($1.ctxvals, 0, $1.p); //#17529 + $1.CTXvalstocws(); //#17529 + $1.addtocws(); //#17529 + $k[$j++] = $a([$1.unlcw]); //#17530 + $1.addtocws(); //#17530 + if ($1.newmode != $1.A) { //#17533 + $k[$j++] = $get($1.Avals, $get($a([-1, $1.lC, $1.lT, $1.lX, $1.lE, $1.lB]), $1.newmode)); //#17532 + $1.addtocws(); //#17532 + } //#17532 + $1.mode = $1.newmode; //#17534 + $1.done = true; //#17535 + break; //#17536 + } //#17536 + if (($1.msglen - $1.i) <= 3) { //#17591 + $1.remcws = $get($1.numremcws, $1.j + ((~~($1.p / 3)) * 2)); //#17539 + $k[$j++] = Infinity; //#17545 + var _EM = $geti($1.msg, $1.i, $1.msglen - $1.i); //#17541 + for (var _EN = 0, _EO = _EM.length; _EN < _EO; _EN++) { //#17547 + var _EP = $get(_EM, _EN); //#17547 + var _ET = $get($get($1.encvals, $1.mode), _EP) !== undefined; //#17542 + $k[$j++] = _EP; //#17546 + if (_ET) { //#17545 + $aload($get($get($1.encvals, $1.mode), $k[--$j])); //#17543 + } else { //#17545 + $j--; //#17545 + $k[$j++] = -1; //#17545 + $k[$j++] = -1; //#17545 + $k[$j++] = -1; //#17545 + $k[$j++] = -1; //#17545 + } //#17545 + } //#17545 + $1.remvals = $a(); //#17545 + if (($1.remcws == 2) && ($1.remvals.length == 3)) { //#17559 + $k[$j++] = Infinity; //#17553 + $aload($geti($1.ctxvals, 0, $1.p)); //#17552 + $aload($1.remvals); //#17553 + var _Eg = $a(); //#17553 + $k[$j++] = _Eg; //#17554 + $1.CTXvalstocws(); //#17554 + $1.addtocws(); //#17554 + $1.mode = $1.A; //#17555 + $1.i = $1.msglen; //#17556 + $1.done = true; //#17557 + break; //#17558 + } //#17558 + if ((($1.remcws == 2) && ($1.remvals.length == 2)) && ($1.mode != $1.X)) { //#17571 + $k[$j++] = Infinity; //#17565 + $aload($geti($1.ctxvals, 0, $1.p)); //#17563 + $aload($1.remvals); //#17564 + $aload($get($get($1.encvals, $1.mode), $1.sft1)); //#17565 + var _Ew = $a(); //#17565 + $k[$j++] = _Ew; //#17566 + $1.CTXvalstocws(); //#17566 + $1.addtocws(); //#17566 + $1.mode = $1.A; //#17567 + $1.i = $1.msglen; //#17568 + $1.done = true; //#17569 + break; //#17570 + } //#17570 + if (($1.remcws == 2) && ($1.remvals.length == 1)) { //#17581 + $k[$j++] = $geti($1.ctxvals, 0, $1.p); //#17574 + $1.CTXvalstocws(); //#17574 + $1.addtocws(); //#17574 + $k[$j++] = $a([$1.unlcw]); //#17575 + $1.addtocws(); //#17575 + $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); //#17576 + $1.addtocws(); //#17576 + $1.mode = $1.A; //#17577 + $1.i = $1.msglen; //#17578 + $1.done = true; //#17579 + break; //#17580 + } //#17580 + if (($1.remcws == 1) && ($1.remvals.length == 1)) { //#17590 + $k[$j++] = $geti($1.ctxvals, 0, $1.p); //#17584 + $1.CTXvalstocws(); //#17584 + $1.addtocws(); //#17584 + $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); //#17585 + $1.addtocws(); //#17585 + $1.mode = $1.A; //#17586 + $1.i = $1.msglen; //#17587 + $1.done = true; //#17588 + break; //#17589 + } //#17589 + } //#17589 + } //#17589 + var _FV = $get($get($1.encvals, $1.mode), $get($1.msg, $1.i)); //#17593 + $puti($1.ctxvals, $1.p, _FV); //#17594 + $1.p = _FV.length + $1.p; //#17595 + $1.i = $1.i + 1; //#17596 + } //#17596 + if (!$1.done) { //#17621 + for (;;) { //#17605 + if (($1.p % 3) == 0) { //#17602 + break; //#17602 + } //#17602 + $1.i = $1.i - 1; //#17603 + $1.p = $1.p - $get($get($1.encvals, $1.mode), $get($1.msg, $1.i)).length; //#17604 + } //#17604 + $k[$j++] = Infinity; //#17607 + $aload($geti($1.ctxvals, 0, $1.p)); //#17607 + var _Fo = $a(); //#17607 + $k[$j++] = _Fo; //#17608 + $1.CTXvalstocws(); //#17608 + $1.addtocws(); //#17608 + $k[$j++] = $a([$1.unlcw]); //#17609 + $1.addtocws(); //#17609 + $1.mode = $1.A; //#17610 + if (($1.i != $1.msglen) && $nt($get($1.isECI, $1.i))) { //#17620 + if ($get($1.numD, $1.i) >= 2) { //#17618 + var _G0 = $s(2); //#17614 + $put(_G0, 0, $get($1.msg, $1.i)); //#17614 + $put(_G0, 1, $get($1.msg, $1.i + 1)); //#17614 + $k[$j++] = $get($1.Avals, _G0); //#17614 + $1.addtocws(); //#17614 + $1.i = $1.i + 2; //#17615 + } else { //#17618 + $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); //#17617 + $1.addtocws(); //#17617 + $1.i = $1.i + 1; //#17618 + } //#17618 + } //#17618 + } //#17618 + }; //#17623 $1.Evalstocws = function() { - $1.in = $k[--$j]; - $1.inlen = $1.in.length; - $1.outlen = ~~Math.ceil($1.in.length / 4 * 3); - $k[$j++] = Infinity; - $aload($1.in); - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $1.in = $a(); - $k[$j++] = Infinity; - for (var _GN = 0, _GM = $1.inlen - 1; _GN <= _GM; _GN += 4) { - var _GP = $geti($1.in, _GN, 4); - $k[$j++] = 0; - for (var _GQ = 0, _GR = _GP.length; _GQ < _GR; _GQ++) { - var _GT = $k[--$j]; - $k[$j++] = $or(_GT, $get(_GP, _GQ)) << 6; - } - var _GV = $k[--$j] >>> 6; - $k[$j++] = _GV >>> 16 & 255; - $k[$j++] = _GV >>> 8 & 255; - $k[$j++] = _GV & 255; - } - $astore($a($counttomark())); - var _GY = $k[--$j]; - var _GZ = $k[--$j]; - $k[$j++] = _GY; - $k[$j++] = _GZ; - $j--; - var _Gc = $geti($k[--$j], 0, $1.outlen); - $k[$j++] = _Gc; - }; + $1.in = $k[--$j]; //#17626 + $1.inlen = $1.in.length; //#17627 + $1.outlen = ~~(Math.ceil(($1.in.length / 4) * 3)); //#17628 + $k[$j++] = Infinity; //#17629 + $aload($1.in); //#17629 + $k[$j++] = 0; //#17629 + $k[$j++] = 0; //#17629 + $k[$j++] = 0; //#17629 + $1.in = $a(); //#17629 + $k[$j++] = Infinity; //#17630 + for (var _GN = 0, _GM = $1.inlen - 1; _GN <= _GM; _GN += 4) { //#17636 + var _GP = $geti($1.in, _GN, 4); //#17632 + $k[$j++] = 0; //#17632 + for (var _GQ = 0, _GR = _GP.length; _GQ < _GR; _GQ++) { //#17632 + var _GT = $k[--$j]; //#17632 + $k[$j++] = $or(_GT, $get(_GP, _GQ)) << 6; //#17632 + } //#17632 + var _GV = $k[--$j] >>> 6; //#17633 + $k[$j++] = (_GV >>> 16) & 255; //#17635 + $k[$j++] = (_GV >>> 8) & 255; //#17635 + $k[$j++] = _GV & 255; //#17635 + } //#17635 + $astore($a($counttomark())); //#17637 + var _GY = $k[--$j]; //#17637 + var _GZ = $k[--$j]; //#17637 + $k[$j++] = _GY; //#17637 + $k[$j++] = _GZ; //#17637 + $j--; //#17637 + var _Gc = $geti($k[--$j], 0, $1.outlen); //#17638 + $k[$j++] = _Gc; //#17638 + }; //#17639 $1.encE = function() { - $1.p = 0; - $1.edifactvals = $a(2100); - for (;;) { - if ($1.i == $1.msglen) { - break; - } - var _Gk = $get($1.Evals, $get($1.msg, $1.i)) !== undefined; - if (!_Gk) { - break; - } - if ($1.p % 4 == 0) { - if ($1.msglen - $1.i <= 2) { - $1.remcws = $get($1.numremcws, $1.j + ~~($1.p / 4) * 3); - $k[$j++] = Infinity; - var _Gw = $geti($1.msg, $1.i, $1.msglen - $1.i); - for (var _Gx = 0, _Gy = _Gw.length; _Gx < _Gy; _Gx++) { - $aload($get($1.Avals, $get(_Gw, _Gx))); - } - $1.remvals = $a(); - if (($1.remcws == 1 || $1.remcws == 2) && $1.remvals.length <= $1.remcws) { - $k[$j++] = $geti($1.edifactvals, 0, $1.p); - $1.Evalstocws(); - $1.addtocws(); - $k[$j++] = $1.remvals; - $1.addtocws(); - $1.mode = $1.A; - $1.i = $1.msglen; - break; - } - } - $1.lookup(); - if ($k[--$j] != $1.mode) { - break; - } - } - var _HJ = $get($1.Evals, $get($1.msg, $1.i)); - $puti($1.edifactvals, $1.p, _HJ); - $1.p = _HJ.length + $1.p; - $1.i = $1.i + 1; - } - if ($1.mode != $1.A) { - $1.remcws = $f($get($1.numremcws, $1.j + ~~($1.p / 4) * 3 - 1) - 1); - if ($1.p % 4 != 0 || $1.i != $1.msglen || $1.remcws >= 3) { - var _Ha = $get($1.Evals, $1.unl); - $puti($1.edifactvals, $1.p, _Ha); - $1.p = _Ha.length + $1.p; - } - $k[$j++] = $geti($1.edifactvals, 0, $1.p); - $1.Evalstocws(); - $1.addtocws(); - $1.mode = $1.A; - if ($1.i != $1.msglen && $nt($get($1.isECI, $1.i))) { - if ($get($1.numD, $1.i) >= 2) { - var _Hq = $s(2); - $put(_Hq, 0, $get($1.msg, $1.i)); - $put(_Hq, 1, $get($1.msg, $1.i + 1)); - $k[$j++] = $get($1.Avals, _Hq); - $1.addtocws(); - $1.i = $1.i + 2; - } else { - $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); - $1.addtocws(); - $1.i = $1.i + 1; - } - } - } - }; + $1.p = 0; //#17642 + $1.edifactvals = $a(2100); //#17643 + for (;;) { //#17672 + if ($1.i == $1.msglen) { //#17647 + break; //#17647 + } //#17647 + var _Gk = $get($1.Evals, $get($1.msg, $1.i)) !== undefined; //#17648 + if (!_Gk) { //#17648 + break; //#17648 + } //#17648 + if (($1.p % 4) == 0) { //#17667 + if (($1.msglen - $1.i) <= 2) { //#17665 + $1.remcws = $get($1.numremcws, $1.j + ((~~($1.p / 4)) * 3)); //#17651 + $k[$j++] = Infinity; //#17654 + var _Gw = $geti($1.msg, $1.i, $1.msglen - $1.i); //#17653 + for (var _Gx = 0, _Gy = _Gw.length; _Gx < _Gy; _Gx++) { //#17655 + $aload($get($1.Avals, $get(_Gw, _Gx))); //#17654 + } //#17654 + $1.remvals = $a(); //#17654 + if ((($1.remcws == 1) || ($1.remcws == 2)) && ($1.remvals.length <= $1.remcws)) { //#17664 + $k[$j++] = $geti($1.edifactvals, 0, $1.p); //#17659 + $1.Evalstocws(); //#17659 + $1.addtocws(); //#17659 + $k[$j++] = $1.remvals; //#17660 + $1.addtocws(); //#17660 + $1.mode = $1.A; //#17661 + $1.i = $1.msglen; //#17662 + break; //#17663 + } //#17663 + } //#17663 + $1.lookup(); //#17666 + if ($k[--$j] != $1.mode) { //#17666 + break; //#17666 + } //#17666 + } //#17666 + var _HJ = $get($1.Evals, $get($1.msg, $1.i)); //#17668 + $puti($1.edifactvals, $1.p, _HJ); //#17669 + $1.p = _HJ.length + $1.p; //#17670 + $1.i = $1.i + 1; //#17671 + } //#17671 + if ($1.mode != $1.A) { //#17694 + $1.remcws = $f($get($1.numremcws, ($1.j + ((~~($1.p / 4)) * 3)) - 1) - 1); //#17676 + if (((($1.p % 4) != 0) || ($1.i != $1.msglen)) || ($1.remcws >= 3)) { //#17681 + var _Ha = $get($1.Evals, $1.unl); //#17678 + $puti($1.edifactvals, $1.p, _Ha); //#17679 + $1.p = _Ha.length + $1.p; //#17680 + } //#17680 + $k[$j++] = $geti($1.edifactvals, 0, $1.p); //#17682 + $1.Evalstocws(); //#17682 + $1.addtocws(); //#17682 + $1.mode = $1.A; //#17683 + if (($1.i != $1.msglen) && $nt($get($1.isECI, $1.i))) { //#17693 + if ($get($1.numD, $1.i) >= 2) { //#17691 + var _Hq = $s(2); //#17687 + $put(_Hq, 0, $get($1.msg, $1.i)); //#17687 + $put(_Hq, 1, $get($1.msg, $1.i + 1)); //#17687 + $k[$j++] = $get($1.Avals, _Hq); //#17687 + $1.addtocws(); //#17687 + $1.i = $1.i + 2; //#17688 + } else { //#17691 + $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); //#17690 + $1.addtocws(); //#17690 + $1.i = $1.i + 1; //#17691 + } //#17691 + } //#17691 + } //#17691 + }; //#17696 $1.encB = function() { - $1.p = 0; - $1.bvals = $a(1558); - for (;;) { - if ($1.i == $1.msglen) { - break; - } - $1.lookup(); - if ($k[--$j] != $1.mode) { - break; - } - $put($1.bvals, $1.p, $get($1.msg, $1.i)); - $1.p = $1.p + 1; - $1.i = $1.i + 1; - } - $1.remcws = $f($get($1.numremcws, $1.j + $1.p) - 1); - $k[$j++] = Infinity; - if ($1.remcws == 0 && $1.i == $1.msglen) { - $k[$j++] = 0; - } else { - if ($1.p < 250) { - $k[$j++] = $1.p; - } else { - $k[$j++] = ~~($1.p / 250) + 249; - $k[$j++] = $1.p % 250; - } - } - $aload($geti($1.bvals, 0, $1.p)); - $1.bvals = $a(); - for (var _IZ = 0, _IY = $1.bvals.length - 1; _IZ <= _IY; _IZ += 1) { - $1.p = _IZ; - var _If = $f(($1.j + $1.p + 1) * 149 % 255 + 1 + $get($1.bvals, $1.p)); - $k[$j++] = _If; - if (_If >= 256) { - var _Ig = $k[--$j]; - $k[$j++] = $f(_Ig - 256); - } - $put($1.bvals, $1.p, $k[--$j]); - } - $k[$j++] = $1.bvals; - $1.addtocws(); - $1.mode = $1.A; - }; - $1.cws = $a(1558); - $1.mode = $1.A; - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i >= $1.msglen) { - break; - } - if ($1[$get($a([ "encA", "encCTX", "encCTX", "encCTX", "encE", "encB" ]), $1.mode)]() === true) { + $1.p = 0; //#17699 + $1.bvals = $a(1558); //#17699 + for (;;) { //#17705 + if ($1.i == $1.msglen) { //#17700 + break; //#17700 + } //#17700 + $1.lookup(); //#17701 + if ($k[--$j] != $1.mode) { //#17701 + break; //#17701 + } //#17701 + $put($1.bvals, $1.p, $get($1.msg, $1.i)); //#17702 + $1.p = $1.p + 1; //#17703 + $1.i = $1.i + 1; //#17704 + } //#17704 + $1.remcws = $f($get($1.numremcws, $1.j + $1.p) - 1); //#17706 + $k[$j++] = Infinity; //#17713 + if (($1.remcws == 0) && ($1.i == $1.msglen)) { //#17711 + $k[$j++] = 0; //#17709 + } else { //#17711 + if ($1.p < 250) { //#17711 + $k[$j++] = $1.p; //#17711 + } else { //#17711 + $k[$j++] = (~~($1.p / 250)) + 249; //#17711 + $k[$j++] = $1.p % 250; //#17711 + } //#17711 + } //#17711 + $aload($geti($1.bvals, 0, $1.p)); //#17713 + $1.bvals = $a(); //#17713 + for (var _IZ = 0, _IY = $1.bvals.length - 1; _IZ <= _IY; _IZ += 1) { //#17720 + $1.p = _IZ; //#17716 + var _If = $f(((((($1.j + $1.p) + 1) * 149) % 255) + 1) + $get($1.bvals, $1.p)); //#17718 + $k[$j++] = _If; //#17718 + if (_If >= 256) { //#17718 + var _Ig = $k[--$j]; //#17718 + $k[$j++] = $f(_Ig - 256); //#17718 + } //#17718 + $put($1.bvals, $1.p, $k[--$j]); //#17719 + } //#17719 + $k[$j++] = $1.bvals; //#17721 + $1.addtocws(); //#17721 + $1.mode = $1.A; //#17722 + }; //#17723 + $1.cws = $a(1558); //#17726 + $1.mode = $1.A; //#17727 + $1.i = 0; //#17727 + $1.j = 0; //#17727 + for (;;) { //#17730 + if ($1.i >= $1.msglen) { //#17728 + break; //#17728 + } //#17728 + if ($1[$get($a(['encA', 'encCTX', 'encCTX', 'encCTX', 'encE', 'encB']), $1.mode)]() === true) { break; - } - } - $1.cws = $geti($1.cws, 0, $1.j); - } - $1.datlen = $1.cws.length; - $1.remcws = $f($get($1.numremcws, $1.j - 1) - 1); - if ($1.remcws > 0) { - $k[$j++] = Infinity; - $aload($1.cws); - for (var _J4 = 0, _J5 = $1.remcws; _J4 < _J5; _J4++) { - $k[$j++] = 129; - } - $1.cws = $a(); - for (var _JB = $1.datlen + 1, _JA = $f($f($1.datlen + $1.remcws) - 1); _JB <= _JA; _JB += 1) { - $1.i = _JB; - var _JD = ($1.i + 1) * 149 % 253 + 1 + 129; - $k[$j++] = _JD; - if (_JD > 254) { - var _JE = $k[--$j]; - $k[$j++] = $f(_JE - 254); - } - $put($1.cws, $1.i, $k[--$j]); - } - } - $1.i = 0; - for (;;) { - $1.m = $get($1.metrics, $1.i); - $1.rows = $get($1.m, 0); - $1.cols = $get($1.m, 1); - $1.regh = $get($1.m, 2); - $1.regv = $get($1.m, 3); - $1.rscw = $get($1.m, 4); - $1.rsbl = $get($1.m, 5); - $1.mrows = $f($1.rows - 2 * $1.regh); - $1.mcols = $f($1.cols - 2 * $1.regv); - $1.rrows = ~~($1.mrows / $1.regh); - $1.rcols = ~~($1.mcols / $1.regv); - $1.ncws = $f(~~($1.mrows * $1.mcols / 8) - $1.rscw); - $1.okay = true; - if ($1.cws.length != $1.ncws) { - $1.okay = false; - } - if ($1.urows != 0 && $1.urows != $1.rows) { - $1.okay = false; - } - if ($1.ucols != 0 && $1.ucols != $1.cols) { - $1.okay = false; - } - if ($eq($1.format, "square") && $ne($1.rows, $1.cols)) { - $1.okay = false; - } - if ($eq($1.format, "rectangle") && $eq($1.rows, $1.cols)) { - $1.okay = false; - } - if ($1.okay) { - break; - } - $1.i = $1.i + 1; - } - $1.cwbs = $a($1.rsbl); - $1.ecbs = $a($1.rsbl); - for (var _K4 = 0, _K3 = $f($1.rsbl - 1); _K4 <= _K3; _K4 += 1) { - $1.i = _K4; - if ($1.cws.length != 1558) { - $1.cwbsize = ~~($1.cws.length / $1.rsbl); - } else { - if ($1.i <= 7) { - $1.cwbsize = 156; - } else { - $1.cwbsize = 155; - } - } - $1.cwb = $a($1.cwbsize); - for (var _KD = 0, _KC = $1.cwbsize - 1; _KD <= _KC; _KD += 1) { - $1.j = _KD; - $put($1.cwb, $1.j, $get($1.cws, $f($1.j * $1.rsbl + $1.i))); - } - $put($1.cwbs, $1.i, $1.cwb); - $k[$j++] = $1.ecbs; - $k[$j++] = $1.i; - $k[$j++] = Infinity; - for (var _KS = 0, _KT = ~~($1.rscw / $1.rsbl); _KS < _KT; _KS++) { - $k[$j++] = 0; - } - var _KU = $a(); - var _KV = $k[--$j]; - $put($k[--$j], _KV, _KU); - } - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _KX = 0, _KY = 255; _KX < _KY; _KX++) { - var _KZ = $k[--$j]; - var _Ka = _KZ * 2; - $k[$j++] = _KZ; - $k[$j++] = _Ka; - if (_Ka >= 256) { - var _Kb = $k[--$j]; - $k[$j++] = _Kb ^ 301; - } - } - $1.rsalog = $a(); - $1.rslog = $a(256); - for (var _Ke = 1; _Ke <= 255; _Ke += 1) { - $put($1.rslog, $get($1.rsalog, _Ke), _Ke); - } + } //#17729 + } //#17729 + $1.cws = $geti($1.cws, 0, $1.j); //#17731 + } //#17731 + $1.datlen = $1.cws.length; //#17736 + $1.remcws = $f($get($1.numremcws, $1.j - 1) - 1); //#17737 + if ($1.remcws > 0) { //#17746 + $k[$j++] = Infinity; //#17739 + $aload($1.cws); //#17739 + for (var _J4 = 0, _J5 = $1.remcws; _J4 < _J5; _J4++) { //#17739 + $k[$j++] = 129; //#17739 + } //#17739 + $1.cws = $a(); //#17739 + for (var _JB = $1.datlen + 1, _JA = $f($f($1.datlen + $1.remcws) - 1); _JB <= _JA; _JB += 1) { //#17745 + $1.i = _JB; //#17741 + var _JD = (((($1.i + 1) * 149) % 253) + 1) + 129; //#17743 + $k[$j++] = _JD; //#17743 + if (_JD > 254) { //#17743 + var _JE = $k[--$j]; //#17743 + $k[$j++] = $f(_JE - 254); //#17743 + } //#17743 + $put($1.cws, $1.i, $k[--$j]); //#17744 + } //#17744 + } //#17744 + $1.i = 0; //#17749 + for (;;) { //#17770 + $1.m = $get($1.metrics, $1.i); //#17750 + $1.rows = $get($1.m, 0); //#17751 + $1.cols = $get($1.m, 1); //#17752 + $1.regh = $get($1.m, 2); //#17753 + $1.regv = $get($1.m, 3); //#17754 + $1.rscw = $get($1.m, 4); //#17755 + $1.rsbl = $get($1.m, 5); //#17756 + $1.mrows = $f($1.rows - (2 * $1.regh)); //#17757 + $1.mcols = $f($1.cols - (2 * $1.regv)); //#17758 + $1.rrows = ~~($1.mrows / $1.regh); //#17759 + $1.rcols = ~~($1.mcols / $1.regv); //#17760 + $1.ncws = $f((~~(($1.mrows * $1.mcols) / 8)) - $1.rscw); //#17761 + $1.okay = true; //#17762 + if ($1.cws.length != $1.ncws) { //#17763 + $1.okay = false; //#17763 + } //#17763 + if (($1.urows != 0) && ($1.urows != $1.rows)) { //#17764 + $1.okay = false; //#17764 + } //#17764 + if (($1.ucols != 0) && ($1.ucols != $1.cols)) { //#17765 + $1.okay = false; //#17765 + } //#17765 + if ($eq($1.format, "square") && $ne($1.rows, $1.cols)) { //#17766 + $1.okay = false; //#17766 + } //#17766 + if ($eq($1.format, "rectangle") && $eq($1.rows, $1.cols)) { //#17767 + $1.okay = false; //#17767 + } //#17767 + if ($1.okay) { //#17768 + break; //#17768 + } //#17768 + $1.i = $1.i + 1; //#17769 + } //#17769 + $1.cwbs = $a($1.rsbl); //#17773 + $1.ecbs = $a($1.rsbl); //#17774 + for (var _K4 = 0, _K3 = $f($1.rsbl - 1); _K4 <= _K3; _K4 += 1) { //#17789 + $1.i = _K4; //#17776 + if ($1.cws.length != 1558) { //#17780 + $1.cwbsize = ~~($1.cws.length / $1.rsbl); //#17778 + } else { //#17780 + if ($1.i <= 7) { //#17780 + $1.cwbsize = 156; //#17780 + } else { //#17780 + $1.cwbsize = 155; //#17780 + } //#17780 + } //#17780 + $1.cwb = $a($1.cwbsize); //#17782 + for (var _KD = 0, _KC = $1.cwbsize - 1; _KD <= _KC; _KD += 1) { //#17786 + $1.j = _KD; //#17784 + $put($1.cwb, $1.j, $get($1.cws, $f(($1.j * $1.rsbl) + $1.i))); //#17785 + } //#17785 + $put($1.cwbs, $1.i, $1.cwb); //#17787 + $k[$j++] = $1.ecbs; //#17788 + $k[$j++] = $1.i; //#17788 + $k[$j++] = Infinity; //#17788 + for (var _KS = 0, _KT = ~~($1.rscw / $1.rsbl); _KS < _KT; _KS++) { //#17788 + $k[$j++] = 0; //#17788 + } //#17788 + var _KU = $a(); //#17788 + var _KV = $k[--$j]; //#17788 + $put($k[--$j], _KV, _KU); //#17788 + } //#17788 + $k[$j++] = Infinity; //#17792 + $k[$j++] = 1; //#17792 + for (var _KX = 0, _KY = 255; _KX < _KY; _KX++) { //#17792 + var _KZ = $k[--$j]; //#17792 + var _Ka = _KZ * 2; //#17792 + $k[$j++] = _KZ; //#17792 + $k[$j++] = _Ka; //#17792 + if (_Ka >= 256) { //#17792 + var _Kb = $k[--$j]; //#17792 + $k[$j++] = _Kb ^ 301; //#17792 + } //#17792 + } //#17792 + $1.rsalog = $a(); //#17792 + $1.rslog = $a(256); //#17793 + for (var _Ke = 1; _Ke <= 255; _Ke += 1) { //#17794 + $put($1.rslog, $get($1.rsalog, _Ke), _Ke); //#17794 + } //#17794 $1.rsprod = function() { - var _Ki = $k[--$j]; - var _Kj = $k[--$j]; - $k[$j++] = _Kj; - $k[$j++] = _Ki; - if (_Ki != 0 && _Kj != 0) { - var _Km = $get($1.rslog, $k[--$j]); - var _Kr = $get($1.rsalog, $f(_Km + $get($1.rslog, $k[--$j])) % 255); - $k[$j++] = _Kr; - } else { - $j -= 2; - $k[$j++] = 0; - } - }; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _Ku = 0, _Kv = ~~($1.rscw / $1.rsbl); _Ku < _Kv; _Ku++) { - $k[$j++] = 0; - } - $1.coeffs = $a(); - for (var _L0 = 1, _Kz = ~~($1.rscw / $1.rsbl); _L0 <= _Kz; _L0 += 1) { - $1.i = _L0; - $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); - for (var _L7 = $1.i - 1; _L7 >= 1; _L7 -= 1) { - $1.j = _L7; - $k[$j++] = $1.coeffs; - $k[$j++] = $1.j; - $k[$j++] = $get($1.coeffs, $1.j - 1); - $k[$j++] = $get($1.coeffs, $1.j); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _LJ = $k[--$j]; - var _LK = $k[--$j]; - var _LL = $k[--$j]; - $put($k[--$j], _LL, $xo(_LK, _LJ)); - } - $k[$j++] = $1.coeffs; - $k[$j++] = 0; - $k[$j++] = $get($1.coeffs, 0); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _LT = $k[--$j]; - var _LU = $k[--$j]; - $put($k[--$j], _LU, _LT); - } - $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); - for (var _Lb = 0, _La = $1.cwbs.length - 1; _Lb <= _La; _Lb += 1) { - $1.i = _Lb; - $1.cwb = $get($1.cwbs, $1.i); - $1.ecb = $get($1.ecbs, $1.i); - for (var _Lk = 0, _Lj = $1.cwb.length - 1; _Lk <= _Lj; _Lk += 1) { - $1.t = $xo($get($1.cwb, _Lk), $get($1.ecb, 0)); - for (var _Lq = $1.ecb.length - 1; _Lq >= 0; _Lq -= 1) { - $1.j = _Lq; - $1.p = $1.ecb.length - $1.j - 1; - $k[$j++] = $1.ecb; - $k[$j++] = $1.p; - $k[$j++] = $1.t; - $k[$j++] = $get($1.coeffs, $1.j); - $1.rsprod(); - var _Lz = $k[--$j]; - var _M0 = $k[--$j]; - $put($k[--$j], _M0, _Lz); - if ($1.j > 0) { - $put($1.ecb, $1.p, $xo($get($1.ecb, $1.p + 1), $get($1.ecb, $1.p))); - } - } - } - } - if ($1.ncws == 1558) { - $k[$j++] = Infinity; - var _MD = $geti($1.ecbs, 8, 2); - for (var _ME = 0, _MF = _MD.length; _ME < _MF; _ME++) { - $k[$j++] = $get(_MD, _ME); - } - var _MI = $geti($1.ecbs, 0, 8); - for (var _MJ = 0, _MK = _MI.length; _MJ < _MK; _MJ++) { - $k[$j++] = $get(_MI, _MJ); - } - $1.ecbs = $a(); - } - $k[$j++] = Infinity; - var _MN = $1.cws; - for (var _MO = 0, _MP = _MN.length; _MO < _MP; _MO++) { - $k[$j++] = $get(_MN, _MO); - } - for (var _MS = 0, _MT = $1.rscw; _MS < _MT; _MS++) { - $k[$j++] = 0; - } - $1.cws = $a(); - for (var _MX = 0, _MW = $f($1.rscw - 1); _MX <= _MW; _MX += 1) { - $1.i = _MX; - $put($1.cws, $f($1.ncws + $1.i), $get($get($1.ecbs, $1.i % $1.rsbl), ~~($1.i / $1.rsbl))); - } + var _Ki = $k[--$j]; //#17798 + var _Kj = $k[--$j]; //#17798 + $k[$j++] = _Kj; //#17802 + $k[$j++] = _Ki; //#17802 + if ((_Ki != 0) && (_Kj != 0)) { //#17801 + var _Km = $get($1.rslog, $k[--$j]); //#17799 + var _Kr = $get($1.rsalog, $f(_Km + $get($1.rslog, $k[--$j])) % 255); //#17799 + $k[$j++] = _Kr; //#17799 + } else { //#17801 + $j -= 2; //#17801 + $k[$j++] = 0; //#17801 + } //#17801 + }; //#17803 + $k[$j++] = Infinity; //#17806 + $k[$j++] = 1; //#17806 + for (var _Ku = 0, _Kv = ~~($1.rscw / $1.rsbl); _Ku < _Kv; _Ku++) { //#17806 + $k[$j++] = 0; //#17806 + } //#17806 + $1.coeffs = $a(); //#17806 + for (var _L0 = 1, _Kz = ~~($1.rscw / $1.rsbl); _L0 <= _Kz; _L0 += 1) { //#17815 + $1.i = _L0; //#17808 + $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); //#17809 + for (var _L7 = $1.i - 1; _L7 >= 1; _L7 -= 1) { //#17813 + $1.j = _L7; //#17811 + $k[$j++] = $1.coeffs; //#17812 + $k[$j++] = $1.j; //#17812 + $k[$j++] = $get($1.coeffs, $1.j - 1); //#17812 + $k[$j++] = $get($1.coeffs, $1.j); //#17812 + $k[$j++] = $get($1.rsalog, $1.i); //#17812 + $1.rsprod(); //#17812 + var _LJ = $k[--$j]; //#17812 + var _LK = $k[--$j]; //#17812 + var _LL = $k[--$j]; //#17812 + $put($k[--$j], _LL, $xo(_LK, _LJ)); //#17812 + } //#17812 + $k[$j++] = $1.coeffs; //#17814 + $k[$j++] = 0; //#17814 + $k[$j++] = $get($1.coeffs, 0); //#17814 + $k[$j++] = $get($1.rsalog, $1.i); //#17814 + $1.rsprod(); //#17814 + var _LT = $k[--$j]; //#17814 + var _LU = $k[--$j]; //#17814 + $put($k[--$j], _LU, _LT); //#17814 + } //#17814 + $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); //#17816 + for (var _Lb = 0, _La = $1.cwbs.length - 1; _Lb <= _La; _Lb += 1) { //#17832 + $1.i = _Lb; //#17820 + $1.cwb = $get($1.cwbs, $1.i); //#17821 + $1.ecb = $get($1.ecbs, $1.i); //#17822 + for (var _Lk = 0, _Lj = $1.cwb.length - 1; _Lk <= _Lj; _Lk += 1) { //#17831 + $1.t = $xo($get($1.cwb, _Lk), $get($1.ecb, 0)); //#17824 + for (var _Lq = $1.ecb.length - 1; _Lq >= 0; _Lq -= 1) { //#17830 + $1.j = _Lq; //#17826 + $1.p = ($1.ecb.length - $1.j) - 1; //#17827 + $k[$j++] = $1.ecb; //#17828 + $k[$j++] = $1.p; //#17828 + $k[$j++] = $1.t; //#17828 + $k[$j++] = $get($1.coeffs, $1.j); //#17828 + $1.rsprod(); //#17828 + var _Lz = $k[--$j]; //#17828 + var _M0 = $k[--$j]; //#17828 + $put($k[--$j], _M0, _Lz); //#17828 + if ($1.j > 0) { //#17829 + $put($1.ecb, $1.p, $xo($get($1.ecb, $1.p + 1), $get($1.ecb, $1.p))); //#17829 + } //#17829 + } //#17829 + } //#17829 + } //#17829 + if ($1.ncws == 1558) { //#17837 + $k[$j++] = Infinity; //#17836 + var _MD = $geti($1.ecbs, 8, 2); //#17836 + for (var _ME = 0, _MF = _MD.length; _ME < _MF; _ME++) { //#17836 + $k[$j++] = $get(_MD, _ME); //#17836 + } //#17836 + var _MI = $geti($1.ecbs, 0, 8); //#17836 + for (var _MJ = 0, _MK = _MI.length; _MJ < _MK; _MJ++) { //#17836 + $k[$j++] = $get(_MI, _MJ); //#17836 + } //#17836 + $1.ecbs = $a(); //#17836 + } //#17836 + $k[$j++] = Infinity; //#17840 + var _MN = $1.cws; //#17840 + for (var _MO = 0, _MP = _MN.length; _MO < _MP; _MO++) { //#17840 + $k[$j++] = $get(_MN, _MO); //#17840 + } //#17840 + for (var _MS = 0, _MT = $1.rscw; _MS < _MT; _MS++) { //#17840 + $k[$j++] = 0; //#17840 + } //#17840 + $1.cws = $a(); //#17840 + for (var _MX = 0, _MW = $f($1.rscw - 1); _MX <= _MW; _MX += 1) { //#17844 + $1.i = _MX; //#17842 + $put($1.cws, $f($1.ncws + $1.i), $get($get($1.ecbs, $1.i % $1.rsbl), ~~($1.i / $1.rsbl))); //#17843 + } //#17843 $1.module = function() { - var _Mi = $k[--$j]; - var _Mj = $k[--$j]; - var _Mk = $k[--$j]; - var _Mn = $strcpy($s(8), "00000000"); - var _Mp = $cvrs($s(8), $k[--$j], 2); - $puti(_Mn, 8 - _Mp.length, _Mp); - $k[$j++] = _Mk; - $k[$j++] = _Mj; - $k[$j++] = _Mi; - $k[$j++] = _Mn; - for (var _Mq = 7; _Mq >= 0; _Mq -= 1) { - var _Mr = $k[--$j]; - $k[$j++] = $f($get(_Mr, _Mq) - 48); - $k[$j++] = _Mr; - } - $j--; - var _Mt = $k[--$j]; - var _Mu = $k[--$j]; - var _Mv = $k[--$j]; - var _Mw = $k[--$j]; - var _Mx = $k[--$j]; - var _My = $k[--$j]; - var _Mz = $k[--$j]; - var _N0 = $k[--$j]; - var _N1 = $k[--$j]; - var _N2 = $k[--$j]; - var _N3 = $k[--$j]; - $k[$j++] = _N0; - $k[$j++] = _Mz; - $k[$j++] = _My; - $k[$j++] = _Mx; - $k[$j++] = _Mw; - $k[$j++] = _Mv; - $k[$j++] = _Mu; - $k[$j++] = _Mt; - $k[$j++] = _N3; - $k[$j++] = _N2; - $forall(_N1, function() { + var _Mi = $k[--$j]; //#17849 + var _Mj = $k[--$j]; //#17849 + var _Mk = $k[--$j]; //#17849 + var _Mn = $strcpy($s(8), "00000000"); //#17850 + var _Mp = $cvrs($s(8), $k[--$j], 2); //#17850 + $puti(_Mn, 8 - _Mp.length, _Mp); //#17851 + $k[$j++] = _Mk; //#17852 + $k[$j++] = _Mj; //#17852 + $k[$j++] = _Mi; //#17852 + $k[$j++] = _Mn; //#17852 + for (var _Mq = 7; _Mq >= 0; _Mq -= 1) { //#17852 + var _Mr = $k[--$j]; //#17852 + $k[$j++] = $f($get(_Mr, _Mq) - 48); //#17852 + $k[$j++] = _Mr; //#17852 + } //#17852 + $j--; //#17852 + var _Mt = $k[--$j]; //#17853 + var _Mu = $k[--$j]; //#17853 + var _Mv = $k[--$j]; //#17853 + var _Mw = $k[--$j]; //#17853 + var _Mx = $k[--$j]; //#17853 + var _My = $k[--$j]; //#17853 + var _Mz = $k[--$j]; //#17853 + var _N0 = $k[--$j]; //#17853 + var _N1 = $k[--$j]; //#17853 + var _N2 = $k[--$j]; //#17853 + var _N3 = $k[--$j]; //#17853 + $k[$j++] = _N0; //#17870 + $k[$j++] = _Mz; //#17870 + $k[$j++] = _My; //#17870 + $k[$j++] = _Mx; //#17870 + $k[$j++] = _Mw; //#17870 + $k[$j++] = _Mv; //#17870 + $k[$j++] = _Mu; //#17870 + $k[$j++] = _Mt; //#17870 + $k[$j++] = _N3; //#17870 + $k[$j++] = _N2; //#17870 + $forall(_N1, function() { //#17870 if ($k[--$j]() === true) { return true; - } - var _N5 = $k[--$j]; - var _N6 = $k[--$j]; - $k[$j++] = _N6; - $k[$j++] = _N5; - if (_N6 < 0) { - var _N7 = $k[--$j]; - var _N8 = $k[--$j]; - $k[$j++] = $f(_N8 + $1.mrows); - $k[$j++] = $f(_N7 + $f(4 - $f($1.mrows + 4) % 8)); - } - var _NB = $k[--$j]; - $k[$j++] = _NB; - if (_NB < 0) { - var _ND = $k[--$j]; - var _NE = $k[--$j]; - $k[$j++] = $f(_NE + $f(4 - $f($1.mcols + 4) % 8)); - $k[$j++] = $f(_ND + $1.mcols); - } - var _NG = $k[--$j]; - var _NH = $k[--$j]; - $k[$j++] = _NH; - $k[$j++] = _NG; - if (_NH >= $1.mrows) { - var _NJ = $k[--$j]; - var _NK = $k[--$j]; - $k[$j++] = $f(_NK - $1.mrows); - $k[$j++] = _NJ; - } - var _NM = $k[--$j]; - var _NN = $k[--$j]; - var _NQ = $k[--$j]; - var _NR = $k[--$j]; - $put($1.mmat, $f(_NM + _NN * $1.mcols), $k[--$j]); - $k[$j++] = _NR; - $k[$j++] = _NQ; - }); - }; - var _Nj = $a([ function() { - var _NT = $k[--$j]; - var _NU = $k[--$j]; - $k[$j++] = _NU; - $k[$j++] = _NT; - $k[$j++] = $f(_NU - 2); - $k[$j++] = $f(_NT - 2); + } //#17856 + var _N5 = $k[--$j]; //#17857 + var _N6 = $k[--$j]; //#17857 + $k[$j++] = _N6; //#17860 + $k[$j++] = _N5; //#17860 + if (_N6 < 0) { //#17860 + var _N7 = $k[--$j]; //#17858 + var _N8 = $k[--$j]; //#17858 + $k[$j++] = $f(_N8 + $1.mrows); //#17859 + $k[$j++] = $f(_N7 + ($f(4 - ($f($1.mrows + 4) % 8)))); //#17859 + } //#17859 + var _NB = $k[--$j]; //#17861 + $k[$j++] = _NB; //#17864 + if (_NB < 0) { //#17864 + var _ND = $k[--$j]; //#17862 + var _NE = $k[--$j]; //#17862 + $k[$j++] = $f(_NE + ($f(4 - ($f($1.mcols + 4) % 8)))); //#17863 + $k[$j++] = $f(_ND + $1.mcols); //#17863 + } //#17863 + var _NG = $k[--$j]; //#17865 + var _NH = $k[--$j]; //#17865 + $k[$j++] = _NH; //#17867 + $k[$j++] = _NG; //#17867 + if (_NH >= $1.mrows) { //#17867 + var _NJ = $k[--$j]; //#17866 + var _NK = $k[--$j]; //#17866 + $k[$j++] = $f(_NK - $1.mrows); //#17866 + $k[$j++] = _NJ; //#17866 + } //#17866 + var _NM = $k[--$j]; //#17868 + var _NN = $k[--$j]; //#17868 + var _NQ = $k[--$j]; //#17869 + var _NR = $k[--$j]; //#17869 + $put($1.mmat, $f(_NM + (_NN * $1.mcols)), $k[--$j]); //#17869 + $k[$j++] = _NR; //#17869 + $k[$j++] = _NQ; //#17869 + }); //#17869 + }; //#17871 + var _Nj = $a([function() { + var _NT = $k[--$j]; //#17875 + var _NU = $k[--$j]; //#17875 + $k[$j++] = _NU; //#17875 + $k[$j++] = _NT; //#17875 + $k[$j++] = $f(_NU - 2); //#17875 + $k[$j++] = $f(_NT - 2); //#17875 }, function() { - var _NV = $k[--$j]; - var _NW = $k[--$j]; - $k[$j++] = _NW; - $k[$j++] = _NV; - $k[$j++] = $f(_NW - 2); - $k[$j++] = $f(_NV - 1); + var _NV = $k[--$j]; //#17875 + var _NW = $k[--$j]; //#17875 + $k[$j++] = _NW; //#17875 + $k[$j++] = _NV; //#17875 + $k[$j++] = $f(_NW - 2); //#17875 + $k[$j++] = $f(_NV - 1); //#17875 }, function() { - var _NX = $k[--$j]; - var _NY = $k[--$j]; - $k[$j++] = _NY; - $k[$j++] = _NX; - $k[$j++] = $f(_NY - 1); - $k[$j++] = $f(_NX - 2); + var _NX = $k[--$j]; //#17876 + var _NY = $k[--$j]; //#17876 + $k[$j++] = _NY; //#17876 + $k[$j++] = _NX; //#17876 + $k[$j++] = $f(_NY - 1); //#17876 + $k[$j++] = $f(_NX - 2); //#17876 }, function() { - var _NZ = $k[--$j]; - var _Na = $k[--$j]; - $k[$j++] = _Na; - $k[$j++] = _NZ; - $k[$j++] = $f(_Na - 1); - $k[$j++] = $f(_NZ - 1); + var _NZ = $k[--$j]; //#17876 + var _Na = $k[--$j]; //#17876 + $k[$j++] = _Na; //#17876 + $k[$j++] = _NZ; //#17876 + $k[$j++] = $f(_Na - 1); //#17876 + $k[$j++] = $f(_NZ - 1); //#17876 }, function() { - var _Nb = $k[--$j]; - var _Nc = $k[--$j]; - $k[$j++] = _Nc; - $k[$j++] = _Nb; - $k[$j++] = $f(_Nc - 1); - $k[$j++] = _Nb; + var _Nb = $k[--$j]; //#17877 + var _Nc = $k[--$j]; //#17877 + $k[$j++] = _Nc; //#17877 + $k[$j++] = _Nb; //#17877 + $k[$j++] = $f(_Nc - 1); //#17877 + $k[$j++] = _Nb; //#17877 }, function() { - var _Nd = $k[--$j]; - var _Ne = $k[--$j]; - $k[$j++] = _Ne; - $k[$j++] = _Nd; - $k[$j++] = _Ne; - $k[$j++] = $f(_Nd - 2); + var _Nd = $k[--$j]; //#17877 + var _Ne = $k[--$j]; //#17877 + $k[$j++] = _Ne; //#17877 + $k[$j++] = _Nd; //#17877 + $k[$j++] = _Ne; //#17877 + $k[$j++] = $f(_Nd - 2); //#17877 }, function() { - var _Nf = $k[--$j]; - var _Ng = $k[--$j]; - $k[$j++] = _Ng; - $k[$j++] = _Nf; - $k[$j++] = _Ng; - $k[$j++] = $f(_Nf - 1); + var _Nf = $k[--$j]; //#17878 + var _Ng = $k[--$j]; //#17878 + $k[$j++] = _Ng; //#17878 + $k[$j++] = _Nf; //#17878 + $k[$j++] = _Ng; //#17878 + $k[$j++] = $f(_Nf - 1); //#17878 }, function() { - var _Nh = $k[--$j]; - var _Ni = $k[--$j]; - $k[$j++] = _Ni; - $k[$j++] = _Nh; - $k[$j++] = _Ni; - $k[$j++] = _Nh; - } ]); - $1.dmn = _Nj; - var _Ns = $a([ function() { - $k[$j++] = $f($1.mrows - 1); - $k[$j++] = 0; + var _Nh = $k[--$j]; //#17878 + var _Ni = $k[--$j]; //#17878 + $k[$j++] = _Ni; //#17878 + $k[$j++] = _Nh; //#17878 + $k[$j++] = _Ni; //#17878 + $k[$j++] = _Nh; //#17878 + }]); //#17878 + $1.dmn = _Nj; //#17879 + var _Ns = $a([function() { + $k[$j++] = $f($1.mrows - 1); //#17882 + $k[$j++] = 0; //#17882 }, function() { - $k[$j++] = $f($1.mrows - 1); - $k[$j++] = 1; + $k[$j++] = $f($1.mrows - 1); //#17882 + $k[$j++] = 1; //#17882 }, function() { - $k[$j++] = $f($1.mrows - 1); - $k[$j++] = 2; + $k[$j++] = $f($1.mrows - 1); //#17883 + $k[$j++] = 2; //#17883 }, function() { - $k[$j++] = 0; - $k[$j++] = $f($1.mcols - 2); + $k[$j++] = 0; //#17883 + $k[$j++] = $f($1.mcols - 2); //#17883 }, function() { - $k[$j++] = 0; - $k[$j++] = $f($1.mcols - 1); + $k[$j++] = 0; //#17884 + $k[$j++] = $f($1.mcols - 1); //#17884 }, function() { - $k[$j++] = 1; - $k[$j++] = $f($1.mcols - 1); + $k[$j++] = 1; //#17884 + $k[$j++] = $f($1.mcols - 1); //#17884 }, function() { - $k[$j++] = 2; - $k[$j++] = $f($1.mcols - 1); + $k[$j++] = 2; //#17885 + $k[$j++] = $f($1.mcols - 1); //#17885 }, function() { - $k[$j++] = 3; - $k[$j++] = $f($1.mcols - 1); - } ]); - $1.dmc1 = _Ns; - var _O1 = $a([ function() { - $k[$j++] = $f($1.mrows - 3); - $k[$j++] = 0; + $k[$j++] = 3; //#17885 + $k[$j++] = $f($1.mcols - 1); //#17885 + }]); //#17885 + $1.dmc1 = _Ns; //#17886 + var _O1 = $a([function() { + $k[$j++] = $f($1.mrows - 3); //#17889 + $k[$j++] = 0; //#17889 }, function() { - $k[$j++] = $f($1.mrows - 2); - $k[$j++] = 0; + $k[$j++] = $f($1.mrows - 2); //#17889 + $k[$j++] = 0; //#17889 }, function() { - $k[$j++] = $f($1.mrows - 1); - $k[$j++] = 0; + $k[$j++] = $f($1.mrows - 1); //#17890 + $k[$j++] = 0; //#17890 }, function() { - $k[$j++] = 0; - $k[$j++] = $f($1.mcols - 4); + $k[$j++] = 0; //#17890 + $k[$j++] = $f($1.mcols - 4); //#17890 }, function() { - $k[$j++] = 0; - $k[$j++] = $f($1.mcols - 3); + $k[$j++] = 0; //#17891 + $k[$j++] = $f($1.mcols - 3); //#17891 }, function() { - $k[$j++] = 0; - $k[$j++] = $f($1.mcols - 2); + $k[$j++] = 0; //#17891 + $k[$j++] = $f($1.mcols - 2); //#17891 }, function() { - $k[$j++] = 0; - $k[$j++] = $f($1.mcols - 1); + $k[$j++] = 0; //#17892 + $k[$j++] = $f($1.mcols - 1); //#17892 }, function() { - $k[$j++] = 1; - $k[$j++] = $f($1.mcols - 1); - } ]); - $1.dmc2 = _O1; - var _OA = $a([ function() { - $k[$j++] = $f($1.mrows - 3); - $k[$j++] = 0; + $k[$j++] = 1; //#17892 + $k[$j++] = $f($1.mcols - 1); //#17892 + }]); //#17892 + $1.dmc2 = _O1; //#17893 + var _OA = $a([function() { + $k[$j++] = $f($1.mrows - 3); //#17896 + $k[$j++] = 0; //#17896 }, function() { - $k[$j++] = $f($1.mrows - 2); - $k[$j++] = 0; + $k[$j++] = $f($1.mrows - 2); //#17896 + $k[$j++] = 0; //#17896 }, function() { - $k[$j++] = $f($1.mrows - 1); - $k[$j++] = 0; + $k[$j++] = $f($1.mrows - 1); //#17897 + $k[$j++] = 0; //#17897 }, function() { - $k[$j++] = 0; - $k[$j++] = $f($1.mcols - 2); + $k[$j++] = 0; //#17897 + $k[$j++] = $f($1.mcols - 2); //#17897 }, function() { - $k[$j++] = 0; - $k[$j++] = $f($1.mcols - 1); + $k[$j++] = 0; //#17898 + $k[$j++] = $f($1.mcols - 1); //#17898 }, function() { - $k[$j++] = 1; - $k[$j++] = $f($1.mcols - 1); + $k[$j++] = 1; //#17898 + $k[$j++] = $f($1.mcols - 1); //#17898 }, function() { - $k[$j++] = 2; - $k[$j++] = $f($1.mcols - 1); + $k[$j++] = 2; //#17899 + $k[$j++] = $f($1.mcols - 1); //#17899 }, function() { - $k[$j++] = 3; - $k[$j++] = $f($1.mcols - 1); - } ]); - $1.dmc3 = _OA; - var _OK = $a([ function() { - $k[$j++] = $f($1.mrows - 1); - $k[$j++] = 0; + $k[$j++] = 3; //#17899 + $k[$j++] = $f($1.mcols - 1); //#17899 + }]); //#17899 + $1.dmc3 = _OA; //#17900 + var _OK = $a([function() { + $k[$j++] = $f($1.mrows - 1); //#17903 + $k[$j++] = 0; //#17903 }, function() { - $k[$j++] = $f($1.mrows - 1); - $k[$j++] = $f($1.mcols - 1); + $k[$j++] = $f($1.mrows - 1); //#17903 + $k[$j++] = $f($1.mcols - 1); //#17903 }, function() { - $k[$j++] = 0; - $k[$j++] = $f($1.mcols - 3); + $k[$j++] = 0; //#17904 + $k[$j++] = $f($1.mcols - 3); //#17904 }, function() { - $k[$j++] = 0; - $k[$j++] = $f($1.mcols - 2); + $k[$j++] = 0; //#17904 + $k[$j++] = $f($1.mcols - 2); //#17904 }, function() { - $k[$j++] = 0; - $k[$j++] = $f($1.mcols - 1); + $k[$j++] = 0; //#17905 + $k[$j++] = $f($1.mcols - 1); //#17905 }, function() { - $k[$j++] = 1; - $k[$j++] = $f($1.mcols - 3); + $k[$j++] = 1; //#17905 + $k[$j++] = $f($1.mcols - 3); //#17905 }, function() { - $k[$j++] = 1; - $k[$j++] = $f($1.mcols - 2); + $k[$j++] = 1; //#17906 + $k[$j++] = $f($1.mcols - 2); //#17906 }, function() { - $k[$j++] = 1; - $k[$j++] = $f($1.mcols - 1); - } ]); - $1.dmc4 = _OK; - $k[$j++] = Infinity; - for (var _ON = 0, _OO = $1.mrows * $1.mcols; _ON < _OO; _ON++) { - $k[$j++] = -1; - } - $1.mmat = $a(); - for (var _OR = $1.cws.length - 1; _OR >= 0; _OR -= 1) { - $k[$j++] = $get($1.cws, _OR); - } - $k[$j++] = 4; - $k[$j++] = 0; - for (;;) { - var _OU = $k[--$j]; - var _OV = $k[--$j]; - $k[$j++] = _OV; - $k[$j++] = _OU; - if (_OU == 0 && _OV == $1.mrows) { - $k[$j++] = $1.dmc1; - $1.module(); - } - var _OY = $k[--$j]; - var _OZ = $k[--$j]; - $k[$j++] = _OZ; - $k[$j++] = _OY; - if (_OY == 0 && _OZ == $f($1.mrows - 2) && $1.mcols % 4 != 0) { - $k[$j++] = $1.dmc2; - $1.module(); - } - var _Od = $k[--$j]; - var _Oe = $k[--$j]; - $k[$j++] = _Oe; - $k[$j++] = _Od; - if (_Od == 0 && _Oe == $f($1.mrows - 2) && $1.mcols % 8 == 4) { - $k[$j++] = $1.dmc3; - $1.module(); - } - var _Oi = $k[--$j]; - var _Oj = $k[--$j]; - $k[$j++] = _Oj; - $k[$j++] = _Oi; - if (_Oi == 2 && _Oj == $f($1.mrows + 4) && $1.mcols % 8 == 0) { - $k[$j++] = $1.dmc4; - $1.module(); - } - for (;;) { - var _On = $k[--$j]; - var _Oo = $k[--$j]; - $k[$j++] = _Oo; - $k[$j++] = _On; - if (_On >= 0 && _Oo < $1.mrows) { - var _Oq = $k[--$j]; - var _Or = $k[--$j]; - $k[$j++] = _Or; - $k[$j++] = _Oq; - if ($get($1.mmat, $f(_Oq + _Or * $1.mcols)) == -1) { - $k[$j++] = $1.dmn; - $1.module(); - } - } - var _Ow = $k[--$j]; - var _Ox = $k[--$j]; - $k[$j++] = $f(_Ox - 2); - $k[$j++] = $f(_Ow + 2); - if (!($f(_Ow + 2) < $1.mcols && $f(_Ox - 2) >= 0)) { - break; - } - } - var _Oz = $k[--$j]; - var _P0 = $k[--$j]; - $k[$j++] = $f(_P0 + 1); - $k[$j++] = $f(_Oz + 3); - for (;;) { - var _P1 = $k[--$j]; - var _P2 = $k[--$j]; - $k[$j++] = _P2; - $k[$j++] = _P1; - if (_P1 < $1.mcols && _P2 >= 0) { - var _P4 = $k[--$j]; - var _P5 = $k[--$j]; - $k[$j++] = _P5; - $k[$j++] = _P4; - if ($get($1.mmat, $f(_P4 + _P5 * $1.mcols)) == -1) { - $k[$j++] = $1.dmn; - $1.module(); - } - } - var _PA = $k[--$j]; - var _PB = $k[--$j]; - $k[$j++] = $f(_PB + 2); - $k[$j++] = $f(_PA - 2); - if (!($f(_PA - 2) >= 0 && $f(_PB + 2) < $1.mrows)) { - break; - } - } - var _PD = $k[--$j]; - var _PE = $k[--$j]; - $k[$j++] = $f(_PE + 3); - $k[$j++] = $f(_PD + 1); - if (!($f(_PD + 1) < $1.mcols || $f(_PE + 3) < $1.mrows)) { - $j -= 2; - break; - } - } - if ($get($1.mmat, $f($1.mrows * $1.mcols - 1)) == -1) { - $puti($1.mmat, $f($1.mrows * $f($1.mcols - 1) - 2), $a([ 1, 0 ])); - $puti($1.mmat, $f($1.mrows * $1.mcols - 2), $a([ 0, 1 ])); - } - $1.pixs = $a($1.rows * $1.cols); - $1.cwpos = 0; - for (var _PY = 0, _PX = $f($1.rows - 1); _PY <= _PX; _PY += 1) { - $1.i = _PY; - if ($1.i % ($1.rrows + 2) == 0) { - $k[$j++] = $1.pixs; - $k[$j++] = $1.i * $1.cols; - $k[$j++] = Infinity; - for (var _Pf = 0, _Pg = ~~($1.cols / 2); _Pf < _Pg; _Pf++) { - $k[$j++] = 1; - $k[$j++] = 0; - } - var _Ph = $a(); - var _Pi = $k[--$j]; - $puti($k[--$j], _Pi, _Ph); - } - if ($1.i % ($1.rrows + 2) == $1.rrows + 1) { - $k[$j++] = $1.pixs; - $k[$j++] = $1.i * $1.cols; - $k[$j++] = Infinity; - for (var _Pr = 0, _Ps = $1.cols; _Pr < _Ps; _Pr++) { - $k[$j++] = 1; - } - var _Pt = $a(); - var _Pu = $k[--$j]; - $puti($k[--$j], _Pu, _Pt); - } - if ($1.i % ($1.rrows + 2) != 0 && $1.i % ($1.rrows + 2) != $1.rrows + 1) { - for (var _Q3 = 0, _Q2 = $f($1.cols - 1); _Q3 <= _Q2; _Q3 += 1) { - $1.j = _Q3; - if ($1.j % ($1.rcols + 2) == 0) { - $put($1.pixs, $f($1.i * $1.cols + $1.j), 1); - } - if ($1.j % ($1.rcols + 2) == $1.rcols + 1) { - $put($1.pixs, $f($1.i * $1.cols + $1.j), $1.i % 2); - } - if ($1.j % ($1.rcols + 2) != 0 && $1.j % ($1.rcols + 2) != $1.rcols + 1) { - $put($1.pixs, $f($1.i * $1.cols + $1.j), $get($1.mmat, $1.cwpos)); - $1.cwpos = $1.cwpos + 1; - } - } - } - } - var _Qb = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", $1.cols ], [ "pixy", $1.rows ], [ "height", $1.rows * 2 / 72 ], [ "width", $1.cols * 2 / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _Qb; - if (!$1.dontdraw) { - $0.renmatrix(); - } + $k[$j++] = 1; //#17906 + $k[$j++] = $f($1.mcols - 1); //#17906 + }]); //#17906 + $1.dmc4 = _OK; //#17907 + $k[$j++] = Infinity; //#17909 + for (var _ON = 0, _OO = $1.mrows * $1.mcols; _ON < _OO; _ON++) { //#17909 + $k[$j++] = -1; //#17909 + } //#17909 + $1.mmat = $a(); //#17909 + for (var _OR = $1.cws.length - 1; _OR >= 0; _OR -= 1) { //#17910 + $k[$j++] = $get($1.cws, _OR); //#17910 + } //#17910 + $k[$j++] = 4; //#17950 + $k[$j++] = 0; //#17950 + for (;;) { //#17950 + var _OU = $k[--$j]; //#17913 + var _OV = $k[--$j]; //#17913 + $k[$j++] = _OV; //#17915 + $k[$j++] = _OU; //#17915 + if ((_OU == 0) && (_OV == $1.mrows)) { //#17915 + $k[$j++] = $1.dmc1; //#17914 + $1.module(); //#17914 + } //#17914 + var _OY = $k[--$j]; //#17916 + var _OZ = $k[--$j]; //#17916 + $k[$j++] = _OZ; //#17918 + $k[$j++] = _OY; //#17918 + if (((_OY == 0) && (_OZ == $f($1.mrows - 2))) && (($1.mcols % 4) != 0)) { //#17918 + $k[$j++] = $1.dmc2; //#17917 + $1.module(); //#17917 + } //#17917 + var _Od = $k[--$j]; //#17919 + var _Oe = $k[--$j]; //#17919 + $k[$j++] = _Oe; //#17921 + $k[$j++] = _Od; //#17921 + if (((_Od == 0) && (_Oe == $f($1.mrows - 2))) && (($1.mcols % 8) == 4)) { //#17921 + $k[$j++] = $1.dmc3; //#17920 + $1.module(); //#17920 + } //#17920 + var _Oi = $k[--$j]; //#17922 + var _Oj = $k[--$j]; //#17922 + $k[$j++] = _Oj; //#17924 + $k[$j++] = _Oi; //#17924 + if (((_Oi == 2) && (_Oj == $f($1.mrows + 4))) && (($1.mcols % 8) == 0)) { //#17924 + $k[$j++] = $1.dmc4; //#17923 + $1.module(); //#17923 + } //#17923 + for (;;) { //#17934 + var _On = $k[--$j]; //#17927 + var _Oo = $k[--$j]; //#17927 + $k[$j++] = _Oo; //#17931 + $k[$j++] = _On; //#17931 + if ((_On >= 0) && (_Oo < $1.mrows)) { //#17931 + var _Oq = $k[--$j]; //#17928 + var _Or = $k[--$j]; //#17928 + $k[$j++] = _Or; //#17930 + $k[$j++] = _Oq; //#17930 + if ($get($1.mmat, $f(_Oq + (_Or * $1.mcols))) == -1) { //#17930 + $k[$j++] = $1.dmn; //#17929 + $1.module(); //#17929 + } //#17929 + } //#17929 + var _Ow = $k[--$j]; //#17932 + var _Ox = $k[--$j]; //#17932 + $k[$j++] = $f(_Ox - 2); //#17933 + $k[$j++] = $f(_Ow + 2); //#17933 + if (!(($f(_Ow + 2) < $1.mcols) && ($f(_Ox - 2) >= 0))) { //#17933 + break; //#17933 + } //#17933 + } //#17933 + var _Oz = $k[--$j]; //#17935 + var _P0 = $k[--$j]; //#17935 + $k[$j++] = $f(_P0 + 1); //#17945 + $k[$j++] = $f(_Oz + 3); //#17945 + for (;;) { //#17945 + var _P1 = $k[--$j]; //#17938 + var _P2 = $k[--$j]; //#17938 + $k[$j++] = _P2; //#17942 + $k[$j++] = _P1; //#17942 + if ((_P1 < $1.mcols) && (_P2 >= 0)) { //#17942 + var _P4 = $k[--$j]; //#17939 + var _P5 = $k[--$j]; //#17939 + $k[$j++] = _P5; //#17941 + $k[$j++] = _P4; //#17941 + if ($get($1.mmat, $f(_P4 + (_P5 * $1.mcols))) == -1) { //#17941 + $k[$j++] = $1.dmn; //#17940 + $1.module(); //#17940 + } //#17940 + } //#17940 + var _PA = $k[--$j]; //#17943 + var _PB = $k[--$j]; //#17943 + $k[$j++] = $f(_PB + 2); //#17944 + $k[$j++] = $f(_PA - 2); //#17944 + if (!(($f(_PA - 2) >= 0) && ($f(_PB + 2) < $1.mrows))) { //#17944 + break; //#17944 + } //#17944 + } //#17944 + var _PD = $k[--$j]; //#17946 + var _PE = $k[--$j]; //#17946 + $k[$j++] = $f(_PE + 3); //#17948 + $k[$j++] = $f(_PD + 1); //#17948 + if (!(($f(_PD + 1) < $1.mcols) || ($f(_PE + 3) < $1.mrows))) { //#17948 + $j -= 2; //#17948 + break; //#17948 + } //#17948 + } //#17948 + if ($get($1.mmat, $f(($1.mrows * $1.mcols) - 1)) == -1) { //#17956 + $puti($1.mmat, $f(($1.mrows * $f($1.mcols - 1)) - 2), $a([1, 0])); //#17954 + $puti($1.mmat, $f(($1.mrows * $1.mcols) - 2), $a([0, 1])); //#17955 + } //#17955 + $1.pixs = $a($1.rows * $1.cols); //#17959 + $1.cwpos = 0; //#17960 + for (var _PY = 0, _PX = $f($1.rows - 1); _PY <= _PX; _PY += 1) { //#17976 + $1.i = _PY; //#17962 + if (($1.i % ($1.rrows + 2)) == 0) { //#17963 + $k[$j++] = $1.pixs; //#17963 + $k[$j++] = $1.i * $1.cols; //#17963 + $k[$j++] = Infinity; //#17963 + for (var _Pf = 0, _Pg = ~~($1.cols / 2); _Pf < _Pg; _Pf++) { //#17963 + $k[$j++] = 1; //#17963 + $k[$j++] = 0; //#17963 + } //#17963 + var _Ph = $a(); //#17963 + var _Pi = $k[--$j]; //#17963 + $puti($k[--$j], _Pi, _Ph); //#17963 + } //#17963 + if (($1.i % ($1.rrows + 2)) == ($1.rrows + 1)) { //#17964 + $k[$j++] = $1.pixs; //#17964 + $k[$j++] = $1.i * $1.cols; //#17964 + $k[$j++] = Infinity; //#17964 + for (var _Pr = 0, _Ps = $1.cols; _Pr < _Ps; _Pr++) { //#17964 + $k[$j++] = 1; //#17964 + } //#17964 + var _Pt = $a(); //#17964 + var _Pu = $k[--$j]; //#17964 + $puti($k[--$j], _Pu, _Pt); //#17964 + } //#17964 + if ((($1.i % ($1.rrows + 2)) != 0) && (($1.i % ($1.rrows + 2)) != ($1.rrows + 1))) { //#17975 + for (var _Q3 = 0, _Q2 = $f($1.cols - 1); _Q3 <= _Q2; _Q3 += 1) { //#17974 + $1.j = _Q3; //#17967 + if (($1.j % ($1.rcols + 2)) == 0) { //#17968 + $put($1.pixs, $f(($1.i * $1.cols) + $1.j), 1); //#17968 + } //#17968 + if (($1.j % ($1.rcols + 2)) == ($1.rcols + 1)) { //#17969 + $put($1.pixs, $f(($1.i * $1.cols) + $1.j), $1.i % 2); //#17969 + } //#17969 + if ((($1.j % ($1.rcols + 2)) != 0) && (($1.j % ($1.rcols + 2)) != ($1.rcols + 1))) { //#17973 + $put($1.pixs, $f(($1.i * $1.cols) + $1.j), $get($1.mmat, $1.cwpos)); //#17971 + $1.cwpos = $1.cwpos + 1; //#17972 + } //#17972 + } //#17972 + } //#17972 + } //#17972 + var _Qb = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", $1.cols], + ["pixy", $1.rows], + ["height", ($1.rows * 2) / 72], + ["width", ($1.cols * 2) / 72], + ["opt", $1.options] + ]); //#17986 + $k[$j++] = _Qb; //#17989 + if (!$1.dontdraw) { //#17989 + $0.renmatrix(); //#17989 + } //#17989 }; $0.datamatrixrectangular = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $put($1.options, "dontdraw", true); - $put($1.options, "format", "rectangle"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.datamatrix(); - var _9 = $k[--$j]; - $1[$k[--$j]] = _9; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#18019 + $1.options = $k[--$j]; //#18021 + $1.barcode = $k[--$j]; //#18022 + $1.dontdraw = false; //#18024 + $forall($1.options, function() { //#18035 + var _3 = $k[--$j]; //#18035 + $1[$k[--$j]] = _3; //#18035 + }); //#18035 + $put($1.options, "dontdraw", true); //#18038 + $put($1.options, "format", "rectangle"); //#18039 + $k[$j++] = 'args'; //#18041 + $k[$j++] = $1.barcode; //#18041 + $k[$j++] = $1.options; //#18041 + $0.datamatrix(); //#18041 + var _9 = $k[--$j]; //#18041 + $1[$k[--$j]] = _9; //#18041 + $put($1.args, "opt", $1.options); //#18043 + $k[$j++] = $1.args; //#18046 + if (!$1.dontdraw) { //#18046 + $0.renmatrix(); //#18046 + } //#18046 }; $0.datamatrixrectangularextension = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.dmre = false; - $1.dindmre = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $put($1.options, "dontdraw", true); - $put($1.options, "format", "rectangle"); - if (!($1.dindmre || $1.dmre)) { - $put($1.options, "dmre", true); - } else { - $put($1.options, "dmre", $1.dmre); - $put($1.options, "dindmre", $1.dindmre); - } - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.datamatrix(); - var _G = $k[--$j]; - $1[$k[--$j]] = _G; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#18076 + $1.options = $k[--$j]; //#18078 + $1.barcode = $k[--$j]; //#18079 + $1.dontdraw = false; //#18081 + $1.dmre = false; //#18083 + $1.dindmre = false; //#18084 + $forall($1.options, function() { //#18095 + var _3 = $k[--$j]; //#18095 + $1[$k[--$j]] = _3; //#18095 + }); //#18095 + $put($1.options, "dontdraw", true); //#18098 + $put($1.options, "format", "rectangle"); //#18099 + if (!($1.dindmre || $1.dmre)) { //#18105 + $put($1.options, "dmre", true); //#18102 + } else { //#18105 + $put($1.options, "dmre", $1.dmre); //#18104 + $put($1.options, "dindmre", $1.dindmre); //#18105 + } //#18105 + $k[$j++] = 'args'; //#18108 + $k[$j++] = $1.barcode; //#18108 + $k[$j++] = $1.options; //#18108 + $0.datamatrix(); //#18108 + var _G = $k[--$j]; //#18108 + $1[$k[--$j]] = _G; //#18108 + $put($1.args, "opt", $1.options); //#18110 + $k[$j++] = $1.args; //#18113 + if (!$1.dontdraw) { //#18113 + $0.renmatrix(); //#18113 + } //#18113 }; $0.mailmark = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.type = "unset"; - $1.parse = false; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - var _6 = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _6; - $k[$j++] = "barcode"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _9 = $k[--$j]; - $1[$k[--$j]] = _9; - $1.barlen = $1.barcode.length; - delete $1.options["parse"]; - var _D = new Map([ [ "7", "24x24" ], [ "9", "32x32" ], [ "29", "16x48" ] ]); - $1.version = $get(_D, $1["type"]); - var _G = new Map([ [ "7", "square" ], [ "9", "square" ], [ "29", "rectangle" ] ]); - $1.format = $get(_G, $1["type"]); - if ($1.barcode.length < 45) { - $k[$j++] = "bwipp.mailmarkBadLength"; - $k[$j++] = "Royal Mail Mailmark must contain at least 45 characters of Mailmark formatted data, including any required space padding"; - $0.raiseerror(); - } - if ($ne($geti($1.barcode, 0, 4), "JGB ")) { - $k[$j++] = "bwipp.mailmarkBadIndicator"; - $k[$j++] = "Royal Mail Mailmark must begin with JGB identifier"; - $0.raiseerror(); - } - $put($1.options, "dontdraw", true); - $put($1.options, "version", $1.version); - $put($1.options, "format", $1.format); - $put($1.options, "mailmark", true); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.datamatrix(); - var _U = $k[--$j]; - $1[$k[--$j]] = _U; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#18144 + $1.options = $k[--$j]; //#18146 + $1.barcode = $k[--$j]; //#18147 + $1.type = "unset"; //#18149 + $1.parse = false; //#18150 + $1.dontdraw = false; //#18151 + $forall($1.options, function() { //#18162 + var _3 = $k[--$j]; //#18162 + $1[$k[--$j]] = _3; //#18162 + }); //#18162 + var _6 = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#18168 + $1.fncvals = _6; //#18169 + $k[$j++] = 'barcode'; //#18170 + $k[$j++] = $1.barcode; //#18170 + $k[$j++] = $1.fncvals; //#18170 + $0.parseinput(); //#18170 + var _9 = $k[--$j]; //#18170 + $1[$k[--$j]] = _9; //#18170 + $1.barlen = $1.barcode.length; //#18171 + delete $1.options["parse"]; //#18172 + var _D = new Map([ + ["7", "24x24"], + ["9", "32x32"], + ["29", "16x48"] + ]); //#18178 + $1.version = $get(_D, $1['type']); //#18179 + var _G = new Map([ + ["7", "square"], + ["9", "square"], + ["29", "rectangle"] + ]); //#18184 + $1.format = $get(_G, $1['type']); //#18185 + if ($1.barcode.length < 45) { //#18190 + $k[$j++] = 'bwipp.mailmarkBadLength'; //#18189 + $k[$j++] = "Royal Mail Mailmark must contain at least 45 characters of Mailmark formatted data, including any required space padding"; //#18189 + $0.raiseerror(); //#18189 + } //#18189 + if ($ne($geti($1.barcode, 0, 4), "JGB ")) { //#18193 + $k[$j++] = 'bwipp.mailmarkBadIndicator'; //#18192 + $k[$j++] = "Royal Mail Mailmark must begin with JGB identifier"; //#18192 + $0.raiseerror(); //#18192 + } //#18192 + $put($1.options, "dontdraw", true); //#18196 + $put($1.options, "version", $1.version); //#18197 + $put($1.options, "format", $1.format); //#18198 + $put($1.options, "mailmark", true); //#18199 + $k[$j++] = 'args'; //#18200 + $k[$j++] = $1.barcode; //#18200 + $k[$j++] = $1.options; //#18200 + $0.datamatrix(); //#18200 + var _U = $k[--$j]; //#18200 + $1[$k[--$j]] = _U; //#18200 + $put($1.args, "opt", $1.options); //#18202 + $k[$j++] = $1.args; //#18205 + if (!$1.dontdraw) { //#18205 + $0.renmatrix(); //#18205 + } //#18205 }; $0.qrcode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.format = "unset"; - $1.version = "unset"; - $1.eclevel = "unset"; - $1.parse = false; - $1.parsefnc = false; - $1.mask = -1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.mask = ~~$1.mask; - if ($ne($1.version, "unset")) { - if ($eq($1.format, "unset")) { - $k[$j++] = "full"; - if ($eq($geti($1.version, 0, 1), "M")) { - $j--; - $k[$j++] = "micro"; - } - if ($eq($geti($1.version, 0, 1), "R")) { - $j--; - $k[$j++] = "rmqr"; - } - $1.format = $k[--$j]; - } - } else { - if ($eq($1.format, "unset")) { - $1.format = "full"; - } - } - if ($eq($1.eclevel, "unset")) { - $k[$j++] = "eclevel"; - if ($ne($1.format, "micro")) { - $k[$j++] = "M"; - } else { - $k[$j++] = "L"; - } - var _G = $k[--$j]; - $1[$k[--$j]] = _G; - } - $1.fn1 = -1; - var _L = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "eci", true ], [ "FNC1", $1.fn1 ] ]); - $1.fncvals = _L; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _O = $k[--$j]; - $1[$k[--$j]] = _O; - $1.msglen = $1.msg.length; - $1.fnc1first = false; - if ($1.msglen > 0) { - if ($get($1.msg, 0) == $1.fn1) { - $1.fnc1first = true; - $k[$j++] = Infinity; - var _X = $geti($1.msg, 1, $1.msglen - 1); - for (var _Y = 0, _Z = _X.length; _Y < _Z; _Y++) { - var _a = $get(_X, _Y); - $k[$j++] = _a; - if (_a == 37) { - var _b = $k[--$j]; - $k[$j++] = _b; - $k[$j++] = _b; - } - } - $1.msg = $a(); - $1.msglen = $1.msg.length; - } - } - var _e = $a([ "v1to9", "v10to26", "v27to40", "vM1", "vM2", "vM3", "vM4", "vR7x43", "vR7x59", "vR7x77", "vR7x99", "vR7x139", "vR9x43", "vR9x59", "vR9x77", "vR9x99", "vR9x139", "vR11x27", "vR11x43", "vR11x59", "vR11x77", "vR11x99", "vR11x139", "vR13x27", "vR13x43", "vR13x59", "vR13x77", "vR13x99", "vR13x139", "vR15x43", "vR15x59", "vR15x77", "vR15x99", "vR15x139", "vR17x43", "vR17x59", "vR17x77", "vR17x99", "vR17x139" ]); - $k[$j++] = 0; - for (var _f = 0, _g = _e.length; _f < _g; _f++) { - var _i = $k[--$j]; - $1[$get(_e, _f)] = _i; - $k[$j++] = $f(_i + 1); - } - $j--; - $1.N = 0; - $1.A = 1; - $1.B = 2; - $1.K = 3; - $1.E = 4; - $k[$j++] = Infinity; - $k[$j++] = Infinity; - for (var _j = 48; _j <= 57; _j += 1) { - $k[$j++] = _j; - } - var _k = $a(); - for (var _l = 0, _m = _k.length; _l < _m; _l++) { - $k[$j++] = $get(_k, _l); - $k[$j++] = -1; - } - $1.Nexcl = $d(); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - $k[$j++] = 32; - $k[$j++] = 36; - $k[$j++] = 37; - $k[$j++] = 42; - $k[$j++] = 43; - $k[$j++] = 45; - $k[$j++] = 46; - $k[$j++] = 47; - $k[$j++] = 58; - for (var _p = 65; _p <= 90; _p += 1) { - $k[$j++] = _p; - } - $k[$j++] = $1.fn1; - var _r = $a(); - for (var _s = 0, _t = _r.length; _s < _t; _s++) { - $k[$j++] = $get(_r, _s); - $k[$j++] = -1; - } - $1.Aexcl = $d(); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - for (var _w = 0; _w <= 31; _w += 1) { - $k[$j++] = _w; - } - $k[$j++] = 33; - $k[$j++] = 34; - $k[$j++] = 35; - $k[$j++] = 38; - $k[$j++] = 39; - $k[$j++] = 40; - $k[$j++] = 41; - $k[$j++] = 44; - for (var _x = 59; _x <= 64; _x += 1) { - $k[$j++] = _x; - } - for (var _y = 91; _y <= 127; _y += 1) { - $k[$j++] = _y; - } - for (var _z = 160; _z <= 223; _z += 1) { - $k[$j++] = _z; - } - var _10 = $a(); - for (var _11 = 0, _12 = _10.length; _11 < _12; _11++) { - $k[$j++] = $get(_10, _11); - $k[$j++] = -1; - } - $1.Bexcl = $d(); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - for (var _15 = 129; _15 <= 159; _15 += 1) { - $k[$j++] = _15; - } - for (var _16 = 224; _16 <= 235; _16 += 1) { - $k[$j++] = _16; - } - var _17 = $a(); - for (var _18 = 0, _19 = _17.length; _18 < _19; _18++) { - $k[$j++] = $get(_17, _18); - $k[$j++] = -1; - } - $1.Kexcl = $d(); - $k[$j++] = Infinity; - $k[$j++] = $a([ "0001", "0010", "0100", "1000", "0111" ]); - $k[$j++] = $a([ "0001", "0010", "0100", "1000", "0111" ]); - $k[$j++] = $a([ "0001", "0010", "0100", "1000", "0111" ]); - $k[$j++] = $a([ "", -1, -1, -1, -1 ]); - $k[$j++] = $a([ "0", "1", -1, -1, -1 ]); - $k[$j++] = $a([ "00", "01", "10", "11", -1 ]); - $k[$j++] = $a([ "000", "001", "010", "011", -1 ]); - for (var _1J = 0, _1K = 32; _1J < _1K; _1J++) { - $k[$j++] = $a([ "001", "010", "011", "100", -1 ]); - } - $1.mids = $a(); - $1.cclens = $a([ $a([ 10, 9, 8, 8 ]), $a([ 12, 11, 16, 10 ]), $a([ 14, 13, 16, 12 ]), $a([ 3, -1, -1, -1 ]), $a([ 4, 3, -1, -1 ]), $a([ 5, 4, 4, 3 ]), $a([ 6, 5, 5, 4 ]), $a([ 4, 3, 3, 2 ]), $a([ 5, 5, 4, 3 ]), $a([ 6, 5, 5, 4 ]), $a([ 7, 6, 5, 5 ]), $a([ 7, 6, 6, 5 ]), $a([ 5, 5, 4, 3 ]), $a([ 6, 5, 5, 4 ]), $a([ 7, 6, 5, 5 ]), $a([ 7, 6, 6, 5 ]), $a([ 8, 7, 6, 6 ]), $a([ 4, 4, 3, 2 ]), $a([ 6, 5, 5, 4 ]), $a([ 7, 6, 5, 5 ]), $a([ 7, 6, 6, 5 ]), $a([ 8, 7, 6, 6 ]), $a([ 8, 7, 7, 6 ]), $a([ 5, 5, 4, 3 ]), $a([ 6, 6, 5, 5 ]), $a([ 7, 6, 6, 5 ]), $a([ 8, 7, 6, 6 ]), $a([ 8, 7, 7, 6 ]), $a([ 8, 8, 7, 7 ]), $a([ 7, 6, 6, 5 ]), $a([ 7, 7, 6, 5 ]), $a([ 8, 7, 7, 6 ]), $a([ 8, 7, 7, 6 ]), $a([ 9, 8, 7, 7 ]), $a([ 7, 6, 6, 5 ]), $a([ 8, 7, 6, 6 ]), $a([ 8, 7, 7, 6 ]), $a([ 8, 8, 7, 6 ]), $a([ 9, 8, 8, 7 ]) ]); - $k[$j++] = Infinity; - for (var _21 = 0, _22 = 3; _21 < _22; _21++) { - $k[$j++] = 4; - } - $k[$j++] = 3; - $k[$j++] = 5; - $k[$j++] = 7; - $k[$j++] = 9; - for (var _23 = 0, _24 = 32; _23 < _24; _23++) { - $k[$j++] = 3; - } - $1.termlens = $a(); + var $1 = {}; //#18235 + $1.options = $k[--$j]; //#18237 + $1.barcode = $k[--$j]; //#18238 + $1.dontdraw = false; //#18240 + $1.format = "unset"; //#18241 + $1.version = "unset"; //#18242 + $1.eclevel = "unset"; //#18243 + $1.parse = false; //#18244 + $1.parsefnc = false; //#18245 + $1.mask = -1; //#18246 + $forall($1.options, function() { //#18257 + var _3 = $k[--$j]; //#18257 + $1[$k[--$j]] = _3; //#18257 + }); //#18257 + $1.mask = ~~$1.mask; //#18259 + if ($ne($1.version, "unset")) { //#18270 + if ($eq($1.format, "unset")) { //#18268 + $k[$j++] = "full"; //#18265 + if ($eq($geti($1.version, 0, 1), "M")) { //#18265 + $j--; //#18265 + $k[$j++] = "micro"; //#18265 + } //#18265 + if ($eq($geti($1.version, 0, 1), "R")) { //#18266 + $j--; //#18266 + $k[$j++] = "rmqr"; //#18266 + } //#18266 + $1.format = $k[--$j]; //#18267 + } //#18267 + } else { //#18270 + if ($eq($1.format, "unset")) { //#18270 + $1.format = "full"; //#18270 + } //#18270 + } //#18270 + if ($eq($1.eclevel, "unset")) { //#18274 + $k[$j++] = 'eclevel'; //#18274 + if ($ne($1.format, "micro")) { //#18274 + $k[$j++] = "M"; //#18274 + } else { //#18274 + $k[$j++] = "L"; //#18274 + } //#18274 + var _G = $k[--$j]; //#18274 + $1[$k[--$j]] = _G; //#18274 + } //#18274 + $1.fn1 = -1; //#18277 + var _L = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["eci", true], + ["FNC1", $1.fn1] + ]); //#18282 + $1.fncvals = _L; //#18283 + $k[$j++] = 'msg'; //#18284 + $k[$j++] = $1.barcode; //#18284 + $k[$j++] = $1.fncvals; //#18284 + $0.parseinput(); //#18284 + var _O = $k[--$j]; //#18284 + $1[$k[--$j]] = _O; //#18284 + $1.msglen = $1.msg.length; //#18285 + $1.fnc1first = false; //#18288 + if ($1.msglen > 0) { //#18295 + if ($get($1.msg, 0) == $1.fn1) { //#18294 + $1.fnc1first = true; //#18291 + $k[$j++] = Infinity; //#18292 + var _X = $geti($1.msg, 1, $1.msglen - 1); //#18292 + for (var _Y = 0, _Z = _X.length; _Y < _Z; _Y++) { //#18292 + var _a = $get(_X, _Y); //#18292 + $k[$j++] = _a; //#18292 + if (_a == 37) { //#18292 + var _b = $k[--$j]; //#18292 + $k[$j++] = _b; //#18292 + $k[$j++] = _b; //#18292 + } //#18292 + } //#18292 + $1.msg = $a(); //#18292 + $1.msglen = $1.msg.length; //#18293 + } //#18293 + } //#18293 + var _e = $a(['v1to9', 'v10to26', 'v27to40', 'vM1', 'vM2', 'vM3', 'vM4', 'vR7x43', 'vR7x59', 'vR7x77', 'vR7x99', 'vR7x139', 'vR9x43', 'vR9x59', 'vR9x77', 'vR9x99', 'vR9x139', 'vR11x27', 'vR11x43', 'vR11x59', 'vR11x77', 'vR11x99', 'vR11x139', 'vR13x27', 'vR13x43', 'vR13x59', 'vR13x77', 'vR13x99', 'vR13x139', 'vR15x43', 'vR15x59', 'vR15x77', 'vR15x99', 'vR15x139', 'vR17x43', 'vR17x59', 'vR17x77', 'vR17x99', 'vR17x139']); //#18306 + $k[$j++] = 0; //#18307 + for (var _f = 0, _g = _e.length; _f < _g; _f++) { //#18307 + var _i = $k[--$j]; //#18307 + $1[$get(_e, _f)] = _i; //#18307 + $k[$j++] = $f(_i + 1); //#18307 + } //#18307 + $j--; //#18307 + $1.N = 0; //#18313 + $1.A = 1; //#18313 + $1.B = 2; //#18313 + $1.K = 3; //#18313 + $1.E = 4; //#18313 + $k[$j++] = Infinity; //#18318 + $k[$j++] = Infinity; //#18317 + for (var _j = 48; _j <= 57; _j += 1) { //#18317 + $k[$j++] = _j; //#18317 + } //#18317 + var _k = $a(); //#18317 + for (var _l = 0, _m = _k.length; _l < _m; _l++) { //#18318 + $k[$j++] = $get(_k, _l); //#18318 + $k[$j++] = -1; //#18318 + } //#18318 + $1.Nexcl = $d(); //#18319 + $k[$j++] = Infinity; //#18326 + $k[$j++] = Infinity; //#18325 + $k[$j++] = 32; //#18324 + $k[$j++] = 36; //#18324 + $k[$j++] = 37; //#18324 + $k[$j++] = 42; //#18324 + $k[$j++] = 43; //#18324 + $k[$j++] = 45; //#18324 + $k[$j++] = 46; //#18324 + $k[$j++] = 47; //#18324 + $k[$j++] = 58; //#18324 + for (var _p = 65; _p <= 90; _p += 1) { //#18324 + $k[$j++] = _p; //#18324 + } //#18324 + $k[$j++] = $1.fn1; //#18325 + var _r = $a(); //#18325 + for (var _s = 0, _t = _r.length; _s < _t; _s++) { //#18326 + $k[$j++] = $get(_r, _s); //#18326 + $k[$j++] = -1; //#18326 + } //#18326 + $1.Aexcl = $d(); //#18327 + $k[$j++] = Infinity; //#18336 + $k[$j++] = Infinity; //#18335 + for (var _w = 0; _w <= 31; _w += 1) { //#18331 + $k[$j++] = _w; //#18331 + } //#18331 + $k[$j++] = 33; //#18333 + $k[$j++] = 34; //#18333 + $k[$j++] = 35; //#18333 + $k[$j++] = 38; //#18333 + $k[$j++] = 39; //#18333 + $k[$j++] = 40; //#18333 + $k[$j++] = 41; //#18333 + $k[$j++] = 44; //#18333 + for (var _x = 59; _x <= 64; _x += 1) { //#18333 + $k[$j++] = _x; //#18333 + } //#18333 + for (var _y = 91; _y <= 127; _y += 1) { //#18334 + $k[$j++] = _y; //#18334 + } //#18334 + for (var _z = 160; _z <= 223; _z += 1) { //#18335 + $k[$j++] = _z; //#18335 + } //#18335 + var _10 = $a(); //#18335 + for (var _11 = 0, _12 = _10.length; _11 < _12; _11++) { //#18336 + $k[$j++] = $get(_10, _11); //#18336 + $k[$j++] = -1; //#18336 + } //#18336 + $1.Bexcl = $d(); //#18337 + $k[$j++] = Infinity; //#18343 + $k[$j++] = Infinity; //#18342 + for (var _15 = 129; _15 <= 159; _15 += 1) { //#18341 + $k[$j++] = _15; //#18341 + } //#18341 + for (var _16 = 224; _16 <= 235; _16 += 1) { //#18342 + $k[$j++] = _16; //#18342 + } //#18342 + var _17 = $a(); //#18342 + for (var _18 = 0, _19 = _17.length; _18 < _19; _18++) { //#18343 + $k[$j++] = $get(_17, _18); //#18343 + $k[$j++] = -1; //#18343 + } //#18343 + $1.Kexcl = $d(); //#18344 + $k[$j++] = Infinity; //#18356 + $k[$j++] = $a(["0001", "0010", "0100", "1000", "0111"]); //#18357 + $k[$j++] = $a(["0001", "0010", "0100", "1000", "0111"]); //#18357 + $k[$j++] = $a(["0001", "0010", "0100", "1000", "0111"]); //#18357 + $k[$j++] = $a(["", -1, -1, -1, -1]); //#18357 + $k[$j++] = $a(["0", "1", -1, -1, -1]); //#18357 + $k[$j++] = $a(["00", "01", "10", "11", -1]); //#18357 + $k[$j++] = $a(["000", "001", "010", "011", -1]); //#18357 + for (var _1J = 0, _1K = 32; _1J < _1K; _1J++) { //#18357 + $k[$j++] = $a(["001", "010", "011", "100", -1]); //#18356 + } //#18356 + $1.mids = $a(); //#18356 + $1.cclens = $a([$a([10, 9, 8, 8]), $a([12, 11, 16, 10]), $a([14, 13, 16, 12]), $a([3, -1, -1, -1]), $a([4, 3, -1, -1]), $a([5, 4, 4, 3]), $a([6, 5, 5, 4]), $a([4, 3, 3, 2]), $a([5, 5, 4, 3]), $a([6, 5, 5, 4]), $a([7, 6, 5, 5]), $a([7, 6, 6, 5]), $a([5, 5, 4, 3]), $a([6, 5, 5, 4]), $a([7, 6, 5, 5]), $a([7, 6, 6, 5]), $a([8, 7, 6, 6]), $a([4, 4, 3, 2]), $a([6, 5, 5, 4]), $a([7, 6, 5, 5]), $a([7, 6, 6, 5]), $a([8, 7, 6, 6]), $a([8, 7, 7, 6]), $a([5, 5, 4, 3]), $a([6, 6, 5, 5]), $a([7, 6, 6, 5]), $a([8, 7, 6, 6]), $a([8, 7, 7, 6]), $a([8, 8, 7, 7]), $a([7, 6, 6, 5]), $a([7, 7, 6, 5]), $a([8, 7, 7, 6]), $a([8, 7, 7, 6]), $a([9, 8, 7, 7]), $a([7, 6, 6, 5]), $a([8, 7, 6, 6]), $a([8, 7, 7, 6]), $a([8, 8, 7, 6]), $a([9, 8, 8, 7])]); //#18400 + $k[$j++] = Infinity; //#18411 + for (var _21 = 0, _22 = 3; _21 < _22; _21++) { //#18405 + $k[$j++] = 4; //#18404 + } //#18404 + $k[$j++] = 3; //#18412 + $k[$j++] = 5; //#18412 + $k[$j++] = 7; //#18412 + $k[$j++] = 9; //#18412 + for (var _23 = 0, _24 = 32; _23 < _24; _23++) { //#18412 + $k[$j++] = 3; //#18411 + } //#18411 + $1.termlens = $a(); //#18411 $1.tobin = function() { - var _27 = $s($k[--$j]); - $k[$j++] = _27; - for (var _29 = 0, _28 = _27.length - 1; _29 <= _28; _29 += 1) { - var _2A = $k[--$j]; - $put(_2A, _29, 48); - $k[$j++] = _2A; - } - var _2B = $k[--$j]; - var _2E = $cvrs($s(_2B.length), $k[--$j], 2); - $puti(_2B, _2B.length - _2E.length, _2E); - $k[$j++] = _2B; - }; - $1.charmap = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:"; - $1.charvals = new Map(); - for (var _2F = 0; _2F <= 44; _2F += 1) { - $put($1.charvals, $get($1.charmap, _2F), _2F); - } + var _27 = $s($k[--$j]); //#18417 + $k[$j++] = _27; //#18417 + for (var _29 = 0, _28 = _27.length - 1; _29 <= _28; _29 += 1) { //#18417 + var _2A = $k[--$j]; //#18417 + $put(_2A, _29, 48); //#18417 + $k[$j++] = _2A; //#18417 + } //#18417 + var _2B = $k[--$j]; //#18418 + var _2E = $cvrs($s(_2B.length), $k[--$j], 2); //#18418 + $puti(_2B, _2B.length - _2E.length, _2E); //#18418 + $k[$j++] = _2B; //#18418 + }; //#18419 + $1.charmap = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:"; //#18422 + $1.charvals = new Map; //#18423 + for (var _2F = 0; _2F <= 44; _2F += 1) { //#18424 + $put($1.charvals, $get($1.charmap, _2F), _2F); //#18424 + } //#18424 $1.encA = function() { - $1.in = $k[--$j]; - if ($1.fnc1first) { - $k[$j++] = Infinity; - $forall($1.in, function() { - var _2M = $k[--$j]; - $k[$j++] = _2M; - if (_2M == $1.fn1) { - $j--; - $k[$j++] = 37; - } - }); - $1.in = $a(); - } - $1.out = $s(~~($1.in.length * 11 / 2) + 1); - $1.k = 0; - $1.m = 0; - for (;;) { - if ($1.k == $1.in.length) { - break; - } - if ($1.k < $1.in.length - 1) { - $k[$j++] = $f($get($1.charvals, $get($1.in, $1.k)) * 45 + $get($1.charvals, $get($1.in, $1.k + 1))); - $k[$j++] = 11; - $1.tobin(); - $1.k = $1.k + 2; - } else { - $k[$j++] = $get($1.charvals, $get($1.in, $1.k)); - $k[$j++] = 6; - $1.tobin(); - $1.k = $1.k + 1; - } - var _2m = $k[--$j]; - $puti($1.out, $1.m, _2m); - $1.m = _2m.length + $1.m; - } - $k[$j++] = $geti($1.out, 0, $1.m); - }; + $1.in = $k[--$j]; //#18427 + if ($1.fnc1first) { //#18430 + $k[$j++] = Infinity; //#18429 + $forall($1.in, function() { //#18429 + var _2M = $k[--$j]; //#18429 + $k[$j++] = _2M; //#18429 + if (_2M == $1.fn1) { //#18429 + $j--; //#18429 + $k[$j++] = 37; //#18429 + } //#18429 + }); //#18429 + $1.in = $a(); //#18429 + } //#18429 + $1.out = $s((~~(($1.in.length * 11) / 2)) + 1); //#18431 + $1.k = 0; //#18432 + $1.m = 0; //#18432 + for (;;) { //#18443 + if ($1.k == $1.in.length) { //#18433 + break; //#18433 + } //#18433 + if ($1.k < ($1.in.length - 1)) { //#18439 + $k[$j++] = $f(($get($1.charvals, $get($1.in, $1.k)) * 45) + $get($1.charvals, $get($1.in, $1.k + 1))); //#18435 + $k[$j++] = 11; //#18435 + $1.tobin(); //#18435 + $1.k = $1.k + 2; //#18436 + } else { //#18439 + $k[$j++] = $get($1.charvals, $get($1.in, $1.k)); //#18438 + $k[$j++] = 6; //#18438 + $1.tobin(); //#18438 + $1.k = $1.k + 1; //#18439 + } //#18439 + var _2m = $k[--$j]; //#18441 + $puti($1.out, $1.m, _2m); //#18441 + $1.m = _2m.length + $1.m; //#18442 + } //#18442 + $k[$j++] = $geti($1.out, 0, $1.m); //#18444 + }; //#18445 $1.encN = function() { - $1.in = $k[--$j]; - $1.out = $s(~~($1.in.length * 10 / 3) + 1); - $1.k = 0; - $1.m = 0; - for (;;) { - if ($1.k == $1.in.length) { - break; - } - if ($1.k < $1.in.length - 2) { - var _32 = $geti($1.in, $1.k, 3); - $k[$j++] = 0; - for (var _33 = 0, _34 = _32.length; _33 < _34; _33++) { - var _36 = $k[--$j]; - $k[$j++] = $f($get(_32, _33) + $f(_36 * 10 - 48)); - } - $k[$j++] = 10; - $1.tobin(); - $1.k = $1.k + 3; - } else { - if ($1.k == $1.in.length - 2) { - var _3C = $geti($1.in, $1.k, 2); - $k[$j++] = 0; - for (var _3D = 0, _3E = _3C.length; _3D < _3E; _3D++) { - var _3G = $k[--$j]; - $k[$j++] = $f($get(_3C, _3D) + $f(_3G * 10 - 48)); - } - $k[$j++] = 7; - $1.tobin(); - $1.k = $1.k + 2; - } else { - var _3K = $geti($1.in, $1.k, 1); - $k[$j++] = 0; - for (var _3L = 0, _3M = _3K.length; _3L < _3M; _3L++) { - var _3O = $k[--$j]; - $k[$j++] = $f($get(_3K, _3L) + $f(_3O * 10 - 48)); - } - $k[$j++] = 4; - $1.tobin(); - $1.k = $1.k + 1; - } - } - var _3Q = $k[--$j]; - $puti($1.out, $1.m, _3Q); - $1.m = _3Q.length + $1.m; - } - $k[$j++] = $geti($1.out, 0, $1.m); - }; + $1.in = $k[--$j]; //#18448 + $1.out = $s((~~(($1.in.length * 10) / 3)) + 1); //#18449 + $1.k = 0; //#18450 + $1.m = 0; //#18450 + for (;;) { //#18466 + if ($1.k == $1.in.length) { //#18451 + break; //#18451 + } //#18451 + if ($1.k < ($1.in.length - 2)) { //#18461 + var _32 = $geti($1.in, $1.k, 3); //#18453 + $k[$j++] = 0; //#18453 + for (var _33 = 0, _34 = _32.length; _33 < _34; _33++) { //#18453 + var _36 = $k[--$j]; //#18453 + $k[$j++] = $f($get(_32, _33) + ($f((_36 * 10) - 48))); //#18453 + } //#18453 + $k[$j++] = 10; //#18453 + $1.tobin(); //#18453 + $1.k = $1.k + 3; //#18454 + } else { //#18461 + if ($1.k == ($1.in.length - 2)) { //#18461 + var _3C = $geti($1.in, $1.k, 2); //#18457 + $k[$j++] = 0; //#18457 + for (var _3D = 0, _3E = _3C.length; _3D < _3E; _3D++) { //#18457 + var _3G = $k[--$j]; //#18457 + $k[$j++] = $f($get(_3C, _3D) + ($f((_3G * 10) - 48))); //#18457 + } //#18457 + $k[$j++] = 7; //#18457 + $1.tobin(); //#18457 + $1.k = $1.k + 2; //#18458 + } else { //#18461 + var _3K = $geti($1.in, $1.k, 1); //#18460 + $k[$j++] = 0; //#18460 + for (var _3L = 0, _3M = _3K.length; _3L < _3M; _3L++) { //#18460 + var _3O = $k[--$j]; //#18460 + $k[$j++] = $f($get(_3K, _3L) + ($f((_3O * 10) - 48))); //#18460 + } //#18460 + $k[$j++] = 4; //#18460 + $1.tobin(); //#18460 + $1.k = $1.k + 1; //#18461 + } //#18461 + } //#18461 + var _3Q = $k[--$j]; //#18464 + $puti($1.out, $1.m, _3Q); //#18464 + $1.m = _3Q.length + $1.m; //#18465 + } //#18465 + $k[$j++] = $geti($1.out, 0, $1.m); //#18467 + }; //#18468 $1.encB = function() { - $1.in = $k[--$j]; - if ($1.fnc1first) { - $k[$j++] = Infinity; - $forall($1.in, function() { - var _3a = $k[--$j]; - $k[$j++] = _3a; - if (_3a == $1.fn1) { - $j--; - $k[$j++] = 29; - } - }); - $1.in = $a(); - } - $1.out = $s($1.in.length * 8); - for (var _3h = 0, _3g = $1.in.length - 1; _3h <= _3g; _3h += 1) { - $1.k = _3h; - $k[$j++] = ~~$z($get($1.in, $1.k)); - $k[$j++] = 8; - $1.tobin(); - $puti($1.out, $1.k * 8, $k[--$j]); - } - $k[$j++] = $1.out; - }; + $1.in = $k[--$j]; //#18471 + if ($1.fnc1first) { //#18474 + $k[$j++] = Infinity; //#18473 + $forall($1.in, function() { //#18473 + var _3a = $k[--$j]; //#18473 + $k[$j++] = _3a; //#18473 + if (_3a == $1.fn1) { //#18473 + $j--; //#18473 + $k[$j++] = 29; //#18473 + } //#18473 + }); //#18473 + $1.in = $a(); //#18473 + } //#18473 + $1.out = $s($1.in.length * 8); //#18475 + for (var _3h = 0, _3g = $1.in.length - 1; _3h <= _3g; _3h += 1) { //#18480 + $1.k = _3h; //#18477 + $k[$j++] = ~~$z($get($1.in, $1.k)); //#18478 + $k[$j++] = 8; //#18478 + $1.tobin(); //#18478 + $puti($1.out, $1.k * 8, $k[--$j]); //#18479 + } //#18479 + $k[$j++] = $1.out; //#18481 + }; //#18482 $1.encK = function() { - $1.in = $k[--$j]; - $1.out = $s(~~($1.in.length / 2) * 13); - $1.k = 0; - $1.m = 0; - for (;;) { - if ($1.k == $1.in.length) { - break; - } - var _40 = $f($get($1.in, $1.k) * 256 + $get($1.in, $1.k + 1)); - $k[$j++] = _40; - if (_40 < 57408) { - $k[$j++] = 33088; - } else { - $k[$j++] = 49472; - } - var _41 = $k[--$j]; - var _43 = $f($k[--$j] - _41); - $k[$j++] = $f((_43 >>> 8) * 192 + (_43 & 255)); - $k[$j++] = 13; - $1.tobin(); - var _44 = $k[--$j]; - $puti($1.out, $1.m, _44); - $1.m = _44.length + $1.m; - $1.k = $1.k + 2; - } - $k[$j++] = $1.out; - }; + $1.in = $k[--$j]; //#18485 + $1.out = $s((~~($1.in.length / 2)) * 13); //#18486 + $1.k = 0; //#18487 + $1.m = 0; //#18487 + for (;;) { //#18495 + if ($1.k == $1.in.length) { //#18488 + break; //#18488 + } //#18488 + var _40 = $f(($get($1.in, $1.k) * 256) + $get($1.in, $1.k + 1)); //#18490 + $k[$j++] = _40; //#18490 + if (_40 < 57408) { //#18490 + $k[$j++] = 33088; //#18490 + } else { //#18490 + $k[$j++] = 49472; //#18490 + } //#18490 + var _41 = $k[--$j]; //#18490 + var _43 = $f($k[--$j] - _41); //#18491 + $k[$j++] = $f(((_43 >>> 8) * 192) + (_43 & 255)); //#18492 + $k[$j++] = 13; //#18492 + $1.tobin(); //#18492 + var _44 = $k[--$j]; //#18492 + $puti($1.out, $1.m, _44); //#18492 + $1.m = _44.length + $1.m; //#18493 + $1.k = $1.k + 2; //#18494 + } //#18494 + $k[$j++] = $1.out; //#18496 + }; //#18497 $1.encE = function() { - var _4C = $f(-$get($k[--$j], 0) - 1e6); - $k[$j++] = _4C; - if (_4C <= 127) { - $k[$j++] = 8; - $1.tobin(); - } else { - var _4D = $k[--$j]; - $k[$j++] = _4D; - if (_4D <= 16383) { - var _4E = $k[--$j]; - $k[$j++] = $f(_4E + 32768); - $k[$j++] = 16; - $1.tobin(); - } else { - var _4F = $k[--$j]; - $k[$j++] = $f(_4F + 12582912); - $k[$j++] = 24; - $1.tobin(); - } - } - }; - $1.encfuncs = $a([ "encN", "encA", "encB", "encK", "encE" ]); + var _4C = $f((-$get($k[--$j], 0)) - 1000000); //#18501 + $k[$j++] = _4C; //#18507 + if (_4C <= 127) { //#18506 + $k[$j++] = 8; //#18502 + $1.tobin(); //#18502 + } else { //#18506 + var _4D = $k[--$j]; //#18503 + $k[$j++] = _4D; //#18507 + if (_4D <= 16383) { //#18506 + var _4E = $k[--$j]; //#18504 + $k[$j++] = $f(_4E + 32768); //#18504 + $k[$j++] = 16; //#18504 + $1.tobin(); //#18504 + } else { //#18506 + var _4F = $k[--$j]; //#18506 + $k[$j++] = $f(_4F + 12582912); //#18506 + $k[$j++] = 24; //#18506 + $1.tobin(); //#18506 + } //#18506 + } //#18506 + }; //#18508 + $1.encfuncs = $a(['encN', 'encA', 'encB', 'encK', 'encE']); //#18510 $1.addtobits = function() { - var _4H = $k[--$j]; - $puti($1.bits, $1.j, _4H); - $1.j = _4H.length + $1.j; - }; - $k[$j++] = Infinity; - for (var _4M = 0, _4N = $1.msglen; _4M < _4N; _4M++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numNs = $a(); - $k[$j++] = Infinity; - for (var _4Q = 0, _4R = $1.msglen; _4Q < _4R; _4Q++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numAs = $a(); - $k[$j++] = Infinity; - for (var _4U = 0, _4V = $1.msglen; _4U < _4V; _4U++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numBs = $a(); - $k[$j++] = Infinity; - for (var _4Y = 0, _4Z = $1.msglen; _4Y < _4Z; _4Y++) { - $k[$j++] = 0; - } - $k[$j++] = -1; - $1.numKs = $a(); - $k[$j++] = Infinity; - for (var _4c = 0, _4d = $1.msglen; _4c < _4d; _4c++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextNs = $a(); - $k[$j++] = Infinity; - for (var _4g = 0, _4h = $1.msglen; _4g < _4h; _4g++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextBs = $a(); - $k[$j++] = Infinity; - for (var _4k = 0, _4l = $1.msglen; _4k < _4l; _4k++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextAs = $a(); - $k[$j++] = Infinity; - for (var _4o = 0, _4p = $1.msglen; _4o < _4p; _4o++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextKs = $a(); - $1.isECI = $a($1.msglen); - for (var _4u = $1.msglen - 1; _4u >= 0; _4u -= 1) { - $1.i = _4u; - $1.barchar = $get($1.msg, $1.i); - var _50 = $get($1.Kexcl, $1.barchar) !== undefined; - if (_50) { - $put($1.nextKs, $1.i, 0); - $put($1.numKs, $1.i, $f($get($1.numKs, $1.i + 1) + 1)); - } else { - $put($1.nextKs, $1.i, $f($get($1.nextKs, $1.i + 1) + 1)); - } - var _5F = $get($1.Nexcl, $1.barchar) !== undefined; - if (_5F) { - $put($1.nextNs, $1.i, 0); - $put($1.numNs, $1.i, $f($get($1.numNs, $1.i + 1) + 1)); - } else { - $put($1.nextNs, $1.i, $f($get($1.nextNs, $1.i + 1) + 1)); - } - var _5U = $get($1.Bexcl, $1.barchar) !== undefined; - if (_5U) { - $put($1.nextBs, $1.i, 0); - $put($1.numBs, $1.i, $f($get($1.numBs, $1.i + 1) + 1)); - } else { - $put($1.nextBs, $1.i, $f($get($1.nextBs, $1.i + 1) + 1)); - } - var _5j = $get($1.Aexcl, $1.barchar) !== undefined; - if (_5j) { - $put($1.nextAs, $1.i, 0); - $put($1.numAs, $1.i, $f($get($1.numAs, $1.i + 1) + 1)); - } else { - $put($1.nextAs, $1.i, $f($get($1.nextAs, $1.i + 1) + 1)); - } - $put($1.isECI, $1.i, $1.barchar <= -1e6); - } - $k[$j++] = Infinity; - var _5z = $1.numKs; - for (var _60 = 0, _61 = _5z.length; _60 < _61; _60++) { - $k[$j++] = ~~($f($get(_5z, _60) + 1) / 2); - } - $1.numKs = $a(); + var _4H = $k[--$j]; //#18513 + $puti($1.bits, $1.j, _4H); //#18513 + $1.j = _4H.length + $1.j; //#18514 + }; //#18515 + $k[$j++] = Infinity; //#18517 + for (var _4M = 0, _4N = $1.msglen; _4M < _4N; _4M++) { //#18517 + $k[$j++] = 0; //#18517 + } //#18517 + $k[$j++] = 0; //#18517 + $1.numNs = $a(); //#18517 + $k[$j++] = Infinity; //#18518 + for (var _4Q = 0, _4R = $1.msglen; _4Q < _4R; _4Q++) { //#18518 + $k[$j++] = 0; //#18518 + } //#18518 + $k[$j++] = 0; //#18518 + $1.numAs = $a(); //#18518 + $k[$j++] = Infinity; //#18519 + for (var _4U = 0, _4V = $1.msglen; _4U < _4V; _4U++) { //#18519 + $k[$j++] = 0; //#18519 + } //#18519 + $k[$j++] = 0; //#18519 + $1.numBs = $a(); //#18519 + $k[$j++] = Infinity; //#18520 + for (var _4Y = 0, _4Z = $1.msglen; _4Y < _4Z; _4Y++) { //#18520 + $k[$j++] = 0; //#18520 + } //#18520 + $k[$j++] = -1; //#18520 + $1.numKs = $a(); //#18520 + $k[$j++] = Infinity; //#18521 + for (var _4c = 0, _4d = $1.msglen; _4c < _4d; _4c++) { //#18521 + $k[$j++] = 0; //#18521 + } //#18521 + $k[$j++] = 9999; //#18521 + $1.nextNs = $a(); //#18521 + $k[$j++] = Infinity; //#18522 + for (var _4g = 0, _4h = $1.msglen; _4g < _4h; _4g++) { //#18522 + $k[$j++] = 0; //#18522 + } //#18522 + $k[$j++] = 9999; //#18522 + $1.nextBs = $a(); //#18522 + $k[$j++] = Infinity; //#18523 + for (var _4k = 0, _4l = $1.msglen; _4k < _4l; _4k++) { //#18523 + $k[$j++] = 0; //#18523 + } //#18523 + $k[$j++] = 9999; //#18523 + $1.nextAs = $a(); //#18523 + $k[$j++] = Infinity; //#18524 + for (var _4o = 0, _4p = $1.msglen; _4o < _4p; _4o++) { //#18524 + $k[$j++] = 0; //#18524 + } //#18524 + $k[$j++] = 9999; //#18524 + $1.nextKs = $a(); //#18524 + $1.isECI = $a($1.msglen); //#18525 + for (var _4u = $1.msglen - 1; _4u >= 0; _4u -= 1) { //#18554 + $1.i = _4u; //#18527 + $1.barchar = $get($1.msg, $1.i); //#18528 + var _50 = $get($1.Kexcl, $1.barchar) !== undefined; //#18529 + if (_50) { //#18533 + $put($1.nextKs, $1.i, 0); //#18530 + $put($1.numKs, $1.i, $f($get($1.numKs, $1.i + 1) + 1)); //#18531 + } else { //#18533 + $put($1.nextKs, $1.i, $f($get($1.nextKs, $1.i + 1) + 1)); //#18533 + } //#18533 + var _5F = $get($1.Nexcl, $1.barchar) !== undefined; //#18535 + if (_5F) { //#18539 + $put($1.nextNs, $1.i, 0); //#18536 + $put($1.numNs, $1.i, $f($get($1.numNs, $1.i + 1) + 1)); //#18537 + } else { //#18539 + $put($1.nextNs, $1.i, $f($get($1.nextNs, $1.i + 1) + 1)); //#18539 + } //#18539 + var _5U = $get($1.Bexcl, $1.barchar) !== undefined; //#18541 + if (_5U) { //#18545 + $put($1.nextBs, $1.i, 0); //#18542 + $put($1.numBs, $1.i, $f($get($1.numBs, $1.i + 1) + 1)); //#18543 + } else { //#18545 + $put($1.nextBs, $1.i, $f($get($1.nextBs, $1.i + 1) + 1)); //#18545 + } //#18545 + var _5j = $get($1.Aexcl, $1.barchar) !== undefined; //#18547 + if (_5j) { //#18551 + $put($1.nextAs, $1.i, 0); //#18548 + $put($1.numAs, $1.i, $f($get($1.numAs, $1.i + 1) + 1)); //#18549 + } else { //#18551 + $put($1.nextAs, $1.i, $f($get($1.nextAs, $1.i + 1) + 1)); //#18551 + } //#18551 + $put($1.isECI, $1.i, $1.barchar <= -1000000); //#18553 + } //#18553 + $k[$j++] = Infinity; //#18555 + var _5z = $1.numKs; //#18555 + for (var _60 = 0, _61 = _5z.length; _60 < _61; _60++) { //#18555 + $k[$j++] = ~~($f($get(_5z, _60) + 1) / 2); //#18555 + } //#18555 + $1.numKs = $a(); //#18555 $1.KbeforeB = function() { - var _67 = $get($k[--$j], $1.ver); - $k[$j++] = $ge($1.numK, _67) && $get($1.nextBs, $f($1.numK * 2 + $1.i)) == 0; - }; + var _67 = $get($k[--$j], $1.ver); //#18557 + $k[$j++] = $ge($1.numK, _67) && ($get($1.nextBs, $f(($1.numK * 2) + $1.i)) == 0); //#18557 + }; //#18557 $1.KbeforeA = function() { - var _6F = $get($k[--$j], $1.ver); - $k[$j++] = $ge($1.numK, _6F) && $get($1.nextAs, $f($1.numK * 2 + $1.i)) == 0; - }; + var _6F = $get($k[--$j], $1.ver); //#18558 + $k[$j++] = $ge($1.numK, _6F) && ($get($1.nextAs, $f(($1.numK * 2) + $1.i)) == 0); //#18558 + }; //#18558 $1.KbeforeN = function() { - var _6N = $get($k[--$j], $1.ver); - $k[$j++] = $ge($1.numK, _6N) && $get($1.nextNs, $f($1.numK * 2 + $1.i)) == 0; - }; + var _6N = $get($k[--$j], $1.ver); //#18559 + $k[$j++] = $ge($1.numK, _6N) && ($get($1.nextNs, $f(($1.numK * 2) + $1.i)) == 0); //#18559 + }; //#18559 $1.KbeforeE = function() { - var _6V = $get($k[--$j], $1.ver); - $k[$j++] = $ge($1.numK, _6V) && $f($1.numK * 2 + $1.i) == $1.msglen; - }; + var _6V = $get($k[--$j], $1.ver); //#18560 + $k[$j++] = $ge($1.numK, _6V) && (($f(($1.numK * 2) + $1.i)) == $1.msglen); //#18560 + }; //#18560 $1.AbeforeK = function() { - var _6c = $get($k[--$j], $1.ver); - $k[$j++] = $ge($1.numA, _6c) && $get($1.nextKs, $f($1.numA + $1.i)) == 0; - }; + var _6c = $get($k[--$j], $1.ver); //#18561 + $k[$j++] = $ge($1.numA, _6c) && ($get($1.nextKs, $f($1.numA + $1.i)) == 0); //#18561 + }; //#18561 $1.AbeforeB = function() { - var _6k = $get($k[--$j], $1.ver); - $k[$j++] = $ge($1.numA, _6k) && $get($1.nextBs, $f($1.numA + $1.i)) == 0; - }; + var _6k = $get($k[--$j], $1.ver); //#18562 + $k[$j++] = $ge($1.numA, _6k) && ($get($1.nextBs, $f($1.numA + $1.i)) == 0); //#18562 + }; //#18562 $1.AbeforeN = function() { - var _6s = $get($k[--$j], $1.ver); - $k[$j++] = $ge($1.numA, _6s) && $get($1.nextNs, $f($1.numA + $1.i)) == 0; - }; + var _6s = $get($k[--$j], $1.ver); //#18563 + $k[$j++] = $ge($1.numA, _6s) && ($get($1.nextNs, $f($1.numA + $1.i)) == 0); //#18563 + }; //#18563 $1.AbeforeE = function() { - var _70 = $get($k[--$j], $1.ver); - $k[$j++] = $ge($1.numA, _70) && $f($1.numA + $1.i) == $1.msglen; - }; + var _70 = $get($k[--$j], $1.ver); //#18564 + $k[$j++] = $ge($1.numA, _70) && ($f($1.numA + $1.i) == $1.msglen); //#18564 + }; //#18564 $1.NbeforeK = function() { - var _77 = $get($k[--$j], $1.ver); - $k[$j++] = $ge($1.numN, _77) && $get($1.nextKs, $f($1.numN + $1.i)) == 0; - }; + var _77 = $get($k[--$j], $1.ver); //#18565 + $k[$j++] = $ge($1.numN, _77) && ($get($1.nextKs, $f($1.numN + $1.i)) == 0); //#18565 + }; //#18565 $1.NbeforeB = function() { - var _7F = $get($k[--$j], $1.ver); - $k[$j++] = $ge($1.numN, _7F) && $get($1.nextBs, $f($1.numN + $1.i)) == 0; - }; + var _7F = $get($k[--$j], $1.ver); //#18566 + $k[$j++] = $ge($1.numN, _7F) && ($get($1.nextBs, $f($1.numN + $1.i)) == 0); //#18566 + }; //#18566 $1.NbeforeA = function() { - var _7N = $get($k[--$j], $1.ver); - $k[$j++] = $ge($1.numN, _7N) && $get($1.nextAs, $f($1.numN + $1.i)) == 0; - }; + var _7N = $get($k[--$j], $1.ver); //#18567 + $k[$j++] = $ge($1.numN, _7N) && ($get($1.nextAs, $f($1.numN + $1.i)) == 0); //#18567 + }; //#18567 $1.NbeforeE = function() { - var _7V = $get($k[--$j], $1.ver); - $k[$j++] = $ge($1.numN, _7V) && $f($1.numN + $1.i) == $1.msglen; - }; - if ($ne($1.version, "unset")) { - $k[$j++] = Infinity; - for (var _7a = 0; _7a <= 9; _7a += 1) { - $k[$j++] = $cvrs($s(2), _7a, 10); - $k[$j++] = $1.v1to9; - } - for (var _7e = 10; _7e <= 26; _7e += 1) { - $k[$j++] = $cvrs($s(2), _7e, 10); - $k[$j++] = $1.v10to26; - } - for (var _7i = 27; _7i <= 40; _7i += 1) { - $k[$j++] = $cvrs($s(2), _7i, 10); - $k[$j++] = $1.v27to40; - } - $k[$j++] = "M1"; - $k[$j++] = $1.vM1; - $k[$j++] = "M2"; - $k[$j++] = $1.vM2; - $k[$j++] = "M3"; - $k[$j++] = $1.vM3; - $k[$j++] = "M4"; - $k[$j++] = $1.vM4; - $k[$j++] = "R7x43"; - $k[$j++] = $1.vR7x43; - $k[$j++] = "R7x59"; - $k[$j++] = $1.vR7x59; - $k[$j++] = "R7x77"; - $k[$j++] = $1.vR7x77; - $k[$j++] = "R7x99"; - $k[$j++] = $1.vR7x99; - $k[$j++] = "R7x139"; - $k[$j++] = $1.vR7x139; - $k[$j++] = "R9x43"; - $k[$j++] = $1.vR9x43; - $k[$j++] = "R9x59"; - $k[$j++] = $1.vR9x59; - $k[$j++] = "R9x77"; - $k[$j++] = $1.vR9x77; - $k[$j++] = "R9x99"; - $k[$j++] = $1.vR9x99; - $k[$j++] = "R9x139"; - $k[$j++] = $1.vR9x139; - $k[$j++] = "R11x27"; - $k[$j++] = $1.vR11x27; - $k[$j++] = "R11x43"; - $k[$j++] = $1.vR11x43; - $k[$j++] = "R11x59"; - $k[$j++] = $1.vR11x59; - $k[$j++] = "R11x77"; - $k[$j++] = $1.vR11x77; - $k[$j++] = "R11x99"; - $k[$j++] = $1.vR11x99; - $k[$j++] = "R11x139"; - $k[$j++] = $1.vR11x139; - $k[$j++] = "R13x27"; - $k[$j++] = $1.vR13x27; - $k[$j++] = "R13x43"; - $k[$j++] = $1.vR13x43; - $k[$j++] = "R13x59"; - $k[$j++] = $1.vR13x59; - $k[$j++] = "R13x77"; - $k[$j++] = $1.vR13x77; - $k[$j++] = "R13x99"; - $k[$j++] = $1.vR13x99; - $k[$j++] = "R13x139"; - $k[$j++] = $1.vR13x139; - $k[$j++] = "R15x43"; - $k[$j++] = $1.vR15x43; - $k[$j++] = "R15x59"; - $k[$j++] = $1.vR15x59; - $k[$j++] = "R15x77"; - $k[$j++] = $1.vR15x77; - $k[$j++] = "R15x99"; - $k[$j++] = $1.vR15x99; - $k[$j++] = "R15x139"; - $k[$j++] = $1.vR15x139; - $k[$j++] = "R17x43"; - $k[$j++] = $1.vR17x43; - $k[$j++] = "R17x59"; - $k[$j++] = $1.vR17x59; - $k[$j++] = "R17x77"; - $k[$j++] = $1.vR17x77; - $k[$j++] = "R17x99"; - $k[$j++] = $1.vR17x99; - $k[$j++] = "R17x139"; - $k[$j++] = $1.vR17x139; - var _8O = $get($d(), $1.version); - $k[$j++] = "verset"; - $k[$j++] = Infinity; - $k[$j++] = _8O; - var _8R = $a(); - $1[$k[--$j]] = _8R; - } else { - if ($eq($1.format, "full")) { - $1.verset = $a([ $1.v1to9, $1.v10to26, $1.v27to40 ]); - } - if ($eq($1.format, "micro")) { - $1.verset = $a([ $1.vM1, $1.vM2, $1.vM3, $1.vM4 ]); - } - } - $k[$j++] = Infinity; - for (var _8e = 0, _8f = 39; _8e < _8f; _8e++) { - $k[$j++] = -1; - } - $1.msgbits = $a(); - $1.e = 1e4; - var _8h = $1.verset; - for (var _8i = 0, _8j = _8h.length; _8i < _8j; _8i++) { - $1.ver = $get(_8h, _8i); - $1.mode = -1; - $1.seq = $a([]); - $1.i = 0; - for (;;) { - if ($1.i >= $1.msglen) { - break; - } - $1.numK = $get($1.numKs, $1.i); - $1.numB = $get($1.numBs, $1.i); - $1.numA = $get($1.numAs, $1.i); - $1.numN = $get($1.numNs, $1.i); - $1.eci = $get($1.isECI, $1.i); - if ($eq($1.ver, $1.vM1) && $1.numA >= 1) { - $1.seq = -1; - break; - } - if ($eq($1.ver, $1.vM1) && $1.numB >= 1) { - $1.seq = -1; - break; - } - if ($eq($1.ver, $1.vM1) && $1.numK >= 1) { - $1.seq = -1; - break; - } - if ($eq($1.ver, $1.vM1) && $1.eci) { - $1.seq = -1; - break; - } - if ($eq($1.ver, $1.vM2) && $1.numB >= 1) { - $1.seq = -1; - break; - } - if ($eq($1.ver, $1.vM2) && $1.numK >= 1) { - $1.seq = -1; - break; - } - if ($eq($1.ver, $1.vM2) && $1.eci) { - $1.seq = -1; - break; - } - if ($eq($1.ver, $1.vM3) && $1.eci) { - $1.seq = -1; - break; - } - if ($eq($1.ver, $1.vM4) && $1.eci) { - $1.seq = -1; - break; - } - if ($ge($1.ver, $1.vR7x43) && $1.eci) { - $1.seq = -1; - break; - } - for (;;) { - if ($1.eci) { - $k[$j++] = $1.E; - break; - } - if ($ge($1.ver, $1.vR7x43)) { - $k[$j++] = $1.B; + var _7V = $get($k[--$j], $1.ver); //#18568 + $k[$j++] = $ge($1.numN, _7V) && ($f($1.numN + $1.i) == $1.msglen); //#18568 + }; //#18568 + if ($ne($1.version, "unset")) { //#18599 + $k[$j++] = Infinity; //#18594 + for (var _7a = 0; _7a <= 9; _7a += 1) { //#18581 + $k[$j++] = $cvrs($s(2), _7a, 10); //#18581 + $k[$j++] = $1.v1to9; //#18581 + } //#18581 + for (var _7e = 10; _7e <= 26; _7e += 1) { //#18582 + $k[$j++] = $cvrs($s(2), _7e, 10); //#18582 + $k[$j++] = $1.v10to26; //#18582 + } //#18582 + for (var _7i = 27; _7i <= 40; _7i += 1) { //#18583 + $k[$j++] = $cvrs($s(2), _7i, 10); //#18583 + $k[$j++] = $1.v27to40; //#18583 + } //#18583 + $k[$j++] = "M1"; //#18594 + $k[$j++] = $1.vM1; //#18594 + $k[$j++] = "M2"; //#18594 + $k[$j++] = $1.vM2; //#18594 + $k[$j++] = "M3"; //#18594 + $k[$j++] = $1.vM3; //#18594 + $k[$j++] = "M4"; //#18594 + $k[$j++] = $1.vM4; //#18594 + $k[$j++] = "R7x43"; //#18594 + $k[$j++] = $1.vR7x43; //#18594 + $k[$j++] = "R7x59"; //#18594 + $k[$j++] = $1.vR7x59; //#18594 + $k[$j++] = "R7x77"; //#18594 + $k[$j++] = $1.vR7x77; //#18594 + $k[$j++] = "R7x99"; //#18594 + $k[$j++] = $1.vR7x99; //#18594 + $k[$j++] = "R7x139"; //#18594 + $k[$j++] = $1.vR7x139; //#18594 + $k[$j++] = "R9x43"; //#18594 + $k[$j++] = $1.vR9x43; //#18594 + $k[$j++] = "R9x59"; //#18594 + $k[$j++] = $1.vR9x59; //#18594 + $k[$j++] = "R9x77"; //#18594 + $k[$j++] = $1.vR9x77; //#18594 + $k[$j++] = "R9x99"; //#18594 + $k[$j++] = $1.vR9x99; //#18594 + $k[$j++] = "R9x139"; //#18594 + $k[$j++] = $1.vR9x139; //#18594 + $k[$j++] = "R11x27"; //#18594 + $k[$j++] = $1.vR11x27; //#18594 + $k[$j++] = "R11x43"; //#18594 + $k[$j++] = $1.vR11x43; //#18594 + $k[$j++] = "R11x59"; //#18594 + $k[$j++] = $1.vR11x59; //#18594 + $k[$j++] = "R11x77"; //#18594 + $k[$j++] = $1.vR11x77; //#18594 + $k[$j++] = "R11x99"; //#18594 + $k[$j++] = $1.vR11x99; //#18594 + $k[$j++] = "R11x139"; //#18594 + $k[$j++] = $1.vR11x139; //#18594 + $k[$j++] = "R13x27"; //#18594 + $k[$j++] = $1.vR13x27; //#18594 + $k[$j++] = "R13x43"; //#18594 + $k[$j++] = $1.vR13x43; //#18594 + $k[$j++] = "R13x59"; //#18594 + $k[$j++] = $1.vR13x59; //#18594 + $k[$j++] = "R13x77"; //#18594 + $k[$j++] = $1.vR13x77; //#18594 + $k[$j++] = "R13x99"; //#18594 + $k[$j++] = $1.vR13x99; //#18594 + $k[$j++] = "R13x139"; //#18594 + $k[$j++] = $1.vR13x139; //#18594 + $k[$j++] = "R15x43"; //#18594 + $k[$j++] = $1.vR15x43; //#18594 + $k[$j++] = "R15x59"; //#18594 + $k[$j++] = $1.vR15x59; //#18594 + $k[$j++] = "R15x77"; //#18594 + $k[$j++] = $1.vR15x77; //#18594 + $k[$j++] = "R15x99"; //#18594 + $k[$j++] = $1.vR15x99; //#18594 + $k[$j++] = "R15x139"; //#18594 + $k[$j++] = $1.vR15x139; //#18594 + $k[$j++] = "R17x43"; //#18594 + $k[$j++] = $1.vR17x43; //#18594 + $k[$j++] = "R17x59"; //#18594 + $k[$j++] = $1.vR17x59; //#18594 + $k[$j++] = "R17x77"; //#18594 + $k[$j++] = $1.vR17x77; //#18594 + $k[$j++] = "R17x99"; //#18594 + $k[$j++] = $1.vR17x99; //#18594 + $k[$j++] = "R17x139"; //#18594 + $k[$j++] = $1.vR17x139; //#18594 + var _8O = $get($d(), $1.version); //#18595 + $k[$j++] = 'verset'; //#18595 + $k[$j++] = _8O; //#18595 + $k[$j++] = Infinity; //#18595 + var _8P = $k[--$j]; //#18595 + var _8Q = $k[--$j]; //#18595 + $k[$j++] = _8P; //#18595 + $k[$j++] = _8Q; //#18595 + var _8R = $a(); //#18595 + $1[$k[--$j]] = _8R; //#18595 + } else { //#18599 + if ($eq($1.format, "full")) { //#18598 + $1.verset = $a([$1.v1to9, $1.v10to26, $1.v27to40]); //#18598 + } //#18598 + if ($eq($1.format, "micro")) { //#18599 + $1.verset = $a([$1.vM1, $1.vM2, $1.vM3, $1.vM4]); //#18599 + } //#18599 + } //#18599 + $k[$j++] = Infinity; //#18604 + for (var _8e = 0, _8f = 39; _8e < _8f; _8e++) { //#18604 + $k[$j++] = -1; //#18604 + } //#18604 + $1.msgbits = $a(); //#18604 + $1.e = 10000; //#18605 + var _8h = $1.verset; //#18606 + for (var _8i = 0, _8j = _8h.length; _8i < _8j; _8i++) { //#18741 + $1.ver = $get(_8h, _8i); //#18607 + $1.mode = -1; //#18610 + $1.seq = $a([]); //#18610 + $1.i = 0; //#18610 + for (;;) { //#18711 + if ($1.i >= $1.msglen) { //#18611 + break; //#18611 + } //#18611 + $1.numK = $get($1.numKs, $1.i); //#18612 + $1.numB = $get($1.numBs, $1.i); //#18613 + $1.numA = $get($1.numAs, $1.i); //#18614 + $1.numN = $get($1.numNs, $1.i); //#18615 + $1.eci = $get($1.isECI, $1.i); //#18616 + if ($eq($1.ver, $1.vM1) && ($1.numA >= 1)) { //#18617 + $1.seq = -1; //#18617 + break; //#18617 + } //#18617 + if ($eq($1.ver, $1.vM1) && ($1.numB >= 1)) { //#18618 + $1.seq = -1; //#18618 + break; //#18618 + } //#18618 + if ($eq($1.ver, $1.vM1) && ($1.numK >= 1)) { //#18619 + $1.seq = -1; //#18619 + break; //#18619 + } //#18619 + if ($eq($1.ver, $1.vM1) && $1.eci) { //#18620 + $1.seq = -1; //#18620 + break; //#18620 + } //#18620 + if ($eq($1.ver, $1.vM2) && ($1.numB >= 1)) { //#18621 + $1.seq = -1; //#18621 + break; //#18621 + } //#18621 + if ($eq($1.ver, $1.vM2) && ($1.numK >= 1)) { //#18622 + $1.seq = -1; //#18622 + break; //#18622 + } //#18622 + if ($eq($1.ver, $1.vM2) && $1.eci) { //#18623 + $1.seq = -1; //#18623 + break; //#18623 + } //#18623 + if ($eq($1.ver, $1.vM3) && $1.eci) { //#18624 + $1.seq = -1; //#18624 + break; //#18624 + } //#18624 + if ($eq($1.ver, $1.vM4) && $1.eci) { //#18625 + $1.seq = -1; //#18625 + break; //#18625 + } //#18625 + if ($ge($1.ver, $1.vR7x43) && $1.eci) { //#18626 + $1.seq = -1; //#18626 + break; //#18626 + } //#18626 + for (;;) { //#18691 + if ($1.eci) { //#18630 + $k[$j++] = $1.E; //#18629 + break; //#18629 + } //#18629 + if ($ge($1.ver, $1.vR7x43)) { //#18633 + $k[$j++] = $1.B; //#18632 + break; //#18632 + } //#18632 + if ($1.mode == -1) { //#18652 + $k[$j++] = $a([1, 1, 1, $1.e, $1.e, 1, 1]); //#18635 + $1.KbeforeA(); //#18635 + if ($k[--$j]) { //#18635 + $k[$j++] = $1.K; //#18635 + break; //#18635 + } //#18635 + $k[$j++] = $a([1, 1, 1, $1.e, $1.e, 1, 1]); //#18636 + $1.KbeforeN(); //#18636 + if ($k[--$j]) { //#18636 + $k[$j++] = $1.K; //#18636 + break; //#18636 + } //#18636 + $k[$j++] = $a([5, 5, 6, $1.e, $1.e, 2, 3]); //#18637 + $1.KbeforeB(); //#18637 + if ($k[--$j]) { //#18637 + $k[$j++] = $1.K; //#18637 + break; //#18637 + } //#18637 + $k[$j++] = $a([1, 1, 1, $1.e, $1.e, 1, 1]); //#18638 + $1.KbeforeE(); //#18638 + if ($k[--$j]) { //#18638 + $k[$j++] = $1.K; //#18638 + break; //#18638 + } //#18638 + if ($1.numK >= 1) { //#18639 + $k[$j++] = $1.B; //#18639 + break; //#18639 + } //#18639 + $k[$j++] = $a([6, 7, 8, $1.e, $1.e, 3, 4]); //#18640 + $1.AbeforeB(); //#18640 + if ($k[--$j]) { //#18640 + $k[$j++] = $1.A; //#18640 + break; //#18640 + } //#18640 + $k[$j++] = $a([1, 1, 1, $1.e, 1, 1, 1]); //#18641 + $1.AbeforeN(); //#18641 + if ($k[--$j]) { //#18641 + $k[$j++] = $1.A; //#18641 + break; //#18641 + } //#18641 + $k[$j++] = $a([1, 1, 1, $1.e, 1, 1, 1]); //#18642 + $1.AbeforeE(); //#18642 + if ($k[--$j]) { //#18642 + $k[$j++] = $1.A; //#18642 + break; //#18642 + } //#18642 + if ($1.numA >= 1) { //#18645 + var _AF = $ne($1.ver, $1.vM2) ? $1.B : $1.A; //#18644 + $k[$j++] = _AF; //#18644 + break; //#18644 + } //#18644 + $k[$j++] = $a([4, 4, 5, $1.e, $1.e, 2, 3]); //#18646 + $1.NbeforeB(); //#18646 + if ($k[--$j]) { //#18646 + $k[$j++] = $1.N; //#18646 + break; //#18646 + } //#18646 + $k[$j++] = $a([1, 1, 1, $1.e, $1.e, 1, 1]); //#18647 + $1.NbeforeB(); //#18647 + if ($k[--$j]) { //#18647 + $k[$j++] = $1.B; //#18647 + break; //#18647 + } //#18647 + $k[$j++] = $a([7, 8, 9, $1.e, 3, 4, 5]); //#18648 + $1.NbeforeA(); //#18648 + if ($k[--$j]) { //#18648 + $k[$j++] = $1.N; //#18648 + break; //#18648 + } //#18648 + $k[$j++] = $a([1, 1, 1, $1.e, 1, 1, 1]); //#18649 + $1.NbeforeA(); //#18649 + if ($k[--$j]) { //#18649 + $k[$j++] = $1.A; //#18649 + break; //#18649 + } //#18649 + if ($1.numN >= 1) { //#18650 + $k[$j++] = $1.N; //#18650 + break; //#18650 + } //#18650 + $k[$j++] = $1.B; //#18651 + break; //#18651 + } //#18651 + if ($1.mode == $1.B) { //#18667 + $k[$j++] = $a([9, 12, 13, $1.e, $1.e, 4, 5]); //#18654 + $1.KbeforeB(); //#18654 + if ($k[--$j]) { //#18654 + $k[$j++] = $1.K; //#18654 + break; //#18654 + } //#18654 + $k[$j++] = $a([9, 10, 12, $1.e, $1.e, 4, 5]); //#18655 + $1.KbeforeA(); //#18655 + if ($k[--$j]) { //#18655 + $k[$j++] = $1.K; //#18655 + break; //#18655 + } //#18655 + $k[$j++] = $a([9, 10, 11, $1.e, $1.e, 5, 6]); //#18656 + $1.KbeforeN(); //#18656 + if ($k[--$j]) { //#18656 + $k[$j++] = $1.K; //#18656 + break; //#18656 + } //#18656 + $k[$j++] = $a([4, 5, 6, $1.e, $1.e, 2, 3]); //#18657 + $1.KbeforeE(); //#18657 + if ($k[--$j]) { //#18657 + $k[$j++] = $1.K; //#18657 + break; //#18657 + } //#18657 + $k[$j++] = $a([11, 12, 14, $1.e, $1.e, 5, 7]); //#18658 + $1.AbeforeK(); //#18658 + if ($k[--$j]) { //#18658 + $k[$j++] = $1.A; //#18658 + break; //#18658 + } //#18658 + $k[$j++] = $a([11, 15, 16, $1.e, $1.e, 6, 7]); //#18659 + $1.AbeforeB(); //#18659 + if ($k[--$j]) { //#18659 + $k[$j++] = $1.A; //#18659 + break; //#18659 + } //#18659 + $k[$j++] = $a([12, 13, 15, $1.e, $1.e, 6, 8]); //#18660 + $1.AbeforeN(); //#18660 + if ($k[--$j]) { //#18660 + $k[$j++] = $1.A; //#18660 + break; //#18660 + } //#18660 + $k[$j++] = $a([6, 7, 8, $1.e, $1.e, 3, 4]); //#18661 + $1.AbeforeE(); //#18661 + if ($k[--$j]) { //#18661 + $k[$j++] = $1.A; //#18661 + break; //#18661 + } //#18661 + $k[$j++] = $a([6, 7, 8, $1.e, $1.e, 3, 4]); //#18662 + $1.NbeforeK(); //#18662 + if ($k[--$j]) { //#18662 + $k[$j++] = $1.N; //#18662 + break; //#18662 + } //#18662 + $k[$j++] = $a([6, 8, 9, $1.e, $1.e, 3, 4]); //#18663 + $1.NbeforeB(); //#18663 + if ($k[--$j]) { //#18663 + $k[$j++] = $1.N; //#18663 + break; //#18663 + } //#18663 + $k[$j++] = $a([6, 7, 8, $1.e, $1.e, 3, 4]); //#18664 + $1.NbeforeA(); //#18664 + if ($k[--$j]) { //#18664 + $k[$j++] = $1.N; //#18664 + break; //#18664 + } //#18664 + $k[$j++] = $a([3, 4, 5, $1.e, $1.e, 2, 3]); //#18665 + $1.NbeforeE(); //#18665 + if ($k[--$j]) { //#18665 + $k[$j++] = $1.N; //#18665 + break; //#18665 + } //#18665 + $k[$j++] = $1.B; //#18666 + break; //#18666 + } //#18666 + if ($1.mode == $1.A) { //#18676 + if ($1.numK >= 1) { //#18669 + $k[$j++] = $1.K; //#18669 + break; //#18669 + } //#18669 + if ($1.numB >= 1) { //#18670 + $k[$j++] = $1.B; //#18670 + break; //#18670 + } //#18670 + $k[$j++] = $a([13, 15, 17, $1.e, 5, 7, 9]); //#18671 + $1.NbeforeA(); //#18671 + if ($k[--$j]) { //#18671 + $k[$j++] = $1.N; //#18671 + break; //#18671 + } //#18671 + $k[$j++] = $a([13, 17, 18, $1.e, $1.e, 7, 9]); //#18672 + $1.NbeforeB(); //#18672 + if ($k[--$j]) { //#18672 + $k[$j++] = $1.N; //#18672 + break; //#18672 + } //#18672 + $k[$j++] = $a([7, 8, 9, $1.e, 3, 4, 5]); //#18673 + $1.NbeforeE(); //#18673 + if ($k[--$j]) { //#18673 + $k[$j++] = $1.N; //#18673 + break; //#18673 + } //#18673 + if (($1.numA >= 1) || ($1.numN >= 1)) { //#18674 + $k[$j++] = $1.A; //#18674 + break; //#18674 + } //#18674 + $k[$j++] = $1.B; //#18675 + break; //#18675 + } //#18675 + if ($1.mode == $1.N) { //#18683 + if ($1.numK >= 1) { //#18678 + $k[$j++] = $1.K; //#18678 + break; //#18678 + } //#18678 + if ($1.numB >= 1) { //#18679 + $k[$j++] = $1.B; //#18679 + break; //#18679 + } //#18679 + if ($1.numA >= 1) { //#18680 + $k[$j++] = $1.A; //#18680 + break; //#18680 + } //#18680 + if ($1.numN >= 1) { //#18681 + $k[$j++] = $1.N; //#18681 + break; //#18681 + } //#18681 + $k[$j++] = $1.B; //#18682 + break; //#18682 + } //#18682 + if ($1.mode == $1.K) { //#18690 + if ($1.numB >= 1) { //#18685 + $k[$j++] = $1.B; //#18685 + break; //#18685 + } //#18685 + if ($1.numA >= 1) { //#18686 + $k[$j++] = $1.A; //#18686 + break; //#18686 + } //#18686 + if ($1.numN >= 1) { //#18687 + $k[$j++] = $1.N; //#18687 + break; //#18687 + } //#18687 + if ($1.numK >= 1) { //#18688 + $k[$j++] = $1.K; //#18688 + break; //#18688 + } //#18688 + $k[$j++] = $1.B; //#18689 + break; //#18689 + } //#18689 + } //#18689 + var _CL = $k[--$j]; //#18692 + $k[$j++] = _CL; //#18692 + if ((_CL == $1.K) && $1.fnc1first) { //#18692 + $j--; //#18692 + $k[$j++] = $1.B; //#18692 + } //#18692 + var _CP = $k[--$j]; //#18693 + $k[$j++] = _CP; //#18709 + if (_CP == $1.mode) { //#18708 + $j--; //#18694 + var _CV = ($1.mode == $1.K) ? 2 : 1; //#18695 + $1.dat = $geti($1.msg, $1.i, _CV); //#18695 + $k[$j++] = Infinity; //#18698 + $aload($1.seq); //#18697 + $k[$j++] = Infinity; //#18698 + var _CY = $k[--$j]; //#18698 + var _CZ = $k[--$j]; //#18698 + $k[$j++] = _CY; //#18698 + $aload(_CZ); //#18698 + $aload($1.dat); //#18698 + var _Cb = $a(); //#18698 + $k[$j++] = _Cb; //#18698 + $1.seq = $a(); //#18698 + } else { //#18708 + $1.mode = $k[--$j]; //#18701 + if ($1.mode == $1.K) { //#18702 + $k[$j++] = $1.K; //#18702 + $k[$j++] = $geti($1.msg, $1.i, $1.numK * 2); //#18702 + } //#18702 + if ($1.mode == $1.B) { //#18703 + $k[$j++] = $1.B; //#18703 + $k[$j++] = $geti($1.msg, $1.i, $1.numB); //#18703 + } //#18703 + if ($1.mode == $1.A) { //#18704 + $k[$j++] = $1.A; //#18704 + $k[$j++] = $geti($1.msg, $1.i, $1.numA); //#18704 + } //#18704 + if ($1.mode == $1.N) { //#18705 + $k[$j++] = $1.N; //#18705 + $k[$j++] = $geti($1.msg, $1.i, $1.numN); //#18705 + } //#18705 + if ($1.mode == $1.E) { //#18706 + $1.mode = -1; //#18706 + $k[$j++] = $1.E; //#18706 + $k[$j++] = $geti($1.msg, $1.i, 1); //#18706 + } //#18706 + $1.dat = $k[--$j]; //#18707 + $1.sw = $k[--$j]; //#18707 + $k[$j++] = Infinity; //#18708 + $aload($1.seq); //#18708 + $k[$j++] = $1.sw; //#18708 + $k[$j++] = $1.dat; //#18708 + $1.seq = $a(); //#18708 + } //#18708 + $1.i = $1.i + $1.dat.length; //#18710 + } //#18710 + for (;;) { //#18740 + if ($1.seq == -1) { //#18715 + break; //#18715 + } //#18715 + $1.bits = $s(23648); //#18716 + $1.j = 0; //#18717 + if ($1.fnc1first) { //#18720 + if ($lt($1.ver, $1.vR7x43)) { //#18719 + $k[$j++] = "0101"; //#18719 + } else { //#18719 + $k[$j++] = "101"; //#18719 + } //#18719 + $1.addtobits(); //#18719 + } //#18719 + $1.abort = false; //#18721 + for (var _DR = 0, _DQ = $1.seq.length - 1; _DR <= _DQ; _DR += 2) { //#18735 + $1.i = _DR; //#18723 + $1.mode = $get($1.seq, $1.i); //#18724 + $k[$j++] = $get($get($1.mids, $1.ver), $1.mode); //#18725 + $1.addtobits(); //#18725 + $1.chars = $get($1.seq, $1.i + 1); //#18726 + if ($1.mode != $1.E) { //#18733 + $1.cclen = $get($get($1.cclens, $1.ver), $1.mode); //#18728 + if ($1.chars.length >= (~~Math.pow(2, $1.cclen))) { //#18731 + $1.abort = true; //#18730 + break; //#18730 + } //#18730 + $k[$j++] = $1.chars.length; //#18732 + if ($1.mode == $1.K) { //#18732 + var _Dp = $k[--$j]; //#18732 + $k[$j++] = ~~(_Dp / 2); //#18732 + } //#18732 + $k[$j++] = $1.cclen; //#18732 + $1.tobin(); //#18732 + $1.addtobits(); //#18732 + } //#18732 + $k[$j++] = $1.chars; //#18734 + if ($1[$get($1.encfuncs, $1.mode)]() === true) { break; - } - if ($1.mode == -1) { - $k[$j++] = $a([ 1, 1, 1, $1.e, $1.e, 1, 1 ]); - $1.KbeforeA(); - if ($k[--$j]) { - $k[$j++] = $1.K; - break; - } - $k[$j++] = $a([ 1, 1, 1, $1.e, $1.e, 1, 1 ]); - $1.KbeforeN(); - if ($k[--$j]) { - $k[$j++] = $1.K; - break; - } - $k[$j++] = $a([ 5, 5, 6, $1.e, $1.e, 2, 3 ]); - $1.KbeforeB(); - if ($k[--$j]) { - $k[$j++] = $1.K; - break; - } - $k[$j++] = $a([ 1, 1, 1, $1.e, $1.e, 1, 1 ]); - $1.KbeforeE(); - if ($k[--$j]) { - $k[$j++] = $1.K; - break; - } - if ($1.numK >= 1) { - $k[$j++] = $1.B; - break; - } - $k[$j++] = $a([ 6, 7, 8, $1.e, $1.e, 3, 4 ]); - $1.AbeforeB(); - if ($k[--$j]) { - $k[$j++] = $1.A; - break; - } - $k[$j++] = $a([ 1, 1, 1, $1.e, 1, 1, 1 ]); - $1.AbeforeN(); - if ($k[--$j]) { - $k[$j++] = $1.A; - break; - } - $k[$j++] = $a([ 1, 1, 1, $1.e, 1, 1, 1 ]); - $1.AbeforeE(); - if ($k[--$j]) { - $k[$j++] = $1.A; - break; - } - if ($1.numA >= 1) { - var _AF = $ne($1.ver, $1.vM2) ? $1.B : $1.A; - $k[$j++] = _AF; - break; - } - $k[$j++] = $a([ 4, 4, 5, $1.e, $1.e, 2, 3 ]); - $1.NbeforeB(); - if ($k[--$j]) { - $k[$j++] = $1.N; - break; - } - $k[$j++] = $a([ 1, 1, 1, $1.e, $1.e, 1, 1 ]); - $1.NbeforeB(); - if ($k[--$j]) { - $k[$j++] = $1.B; - break; - } - $k[$j++] = $a([ 7, 8, 9, $1.e, 3, 4, 5 ]); - $1.NbeforeA(); - if ($k[--$j]) { - $k[$j++] = $1.N; - break; - } - $k[$j++] = $a([ 1, 1, 1, $1.e, 1, 1, 1 ]); - $1.NbeforeA(); - if ($k[--$j]) { - $k[$j++] = $1.A; - break; - } - if ($1.numN >= 1) { - $k[$j++] = $1.N; - break; - } - $k[$j++] = $1.B; + } //#18734 + $1.addtobits(); //#18734 + } //#18734 + if ($1.abort) { //#18736 + break; //#18736 + } //#18736 + $1.bits = $geti($1.bits, 0, $1.j); //#18737 + $put($1.msgbits, $1.ver, $1.bits); //#18738 + break; //#18739 + } //#18739 + } //#18739 + $1.metrics = $a([$a(["micro", "M1", $1.vM1, 11, 11, 98, 99, 36, $a([2, 99, 99, 99]), $a([1, 0, -1, -1, -1, -1, -1, -1])]), $a(["micro", "M2", $1.vM2, 13, 13, 98, 99, 80, $a([5, 6, 99, 99]), $a([1, 0, 1, 0, -1, -1, -1, -1])]), $a(["micro", "M3", $1.vM3, 15, 15, 98, 99, 132, $a([6, 8, 99, 99]), $a([1, 0, 1, 0, -1, -1, -1, -1])]), $a(["micro", "M4", $1.vM4, 17, 17, 98, 99, 192, $a([8, 10, 14, 99]), $a([1, 0, 1, 0, 1, 0, -1, -1])]), $a(["full", "1", $1.v1to9, 21, 21, 98, 99, 208, $a([7, 10, 13, 17]), $a([1, 0, 1, 0, 1, 0, 1, 0])]), $a(["full", "2", $1.v1to9, 25, 25, 18, 99, 359, $a([10, 16, 22, 28]), $a([1, 0, 1, 0, 1, 0, 1, 0])]), $a(["full", "3", $1.v1to9, 29, 29, 22, 99, 567, $a([15, 26, 36, 44]), $a([1, 0, 1, 0, 2, 0, 2, 0])]), $a(["full", "4", $1.v1to9, 33, 33, 26, 99, 807, $a([20, 36, 52, 64]), $a([1, 0, 2, 0, 2, 0, 4, 0])]), $a(["full", "5", $1.v1to9, 37, 37, 30, 99, 1079, $a([26, 48, 72, 88]), $a([1, 0, 2, 0, 2, 2, 2, 2])]), $a(["full", "6", $1.v1to9, 41, 41, 34, 99, 1383, $a([36, 64, 96, 112]), $a([2, 0, 4, 0, 4, 0, 4, 0])]), $a(["full", "7", $1.v1to9, 45, 45, 22, 38, 1568, $a([40, 72, 108, 130]), $a([2, 0, 4, 0, 2, 4, 4, 1])]), $a(["full", "8", $1.v1to9, 49, 49, 24, 42, 1936, $a([48, 88, 132, 156]), $a([2, 0, 2, 2, 4, 2, 4, 2])]), $a(["full", "9", $1.v1to9, 53, 53, 26, 46, 2336, $a([60, 110, 160, 192]), $a([2, 0, 3, 2, 4, 4, 4, 4])]), $a(["full", "10", $1.v10to26, 57, 57, 28, 50, 2768, $a([72, 130, 192, 224]), $a([2, 2, 4, 1, 6, 2, 6, 2])]), $a(["full", "11", $1.v10to26, 61, 61, 30, 54, 3232, $a([80, 150, 224, 264]), $a([4, 0, 1, 4, 4, 4, 3, 8])]), $a(["full", "12", $1.v10to26, 65, 65, 32, 58, 3728, $a([96, 176, 260, 308]), $a([2, 2, 6, 2, 4, 6, 7, 4])]), $a(["full", "13", $1.v10to26, 69, 69, 34, 62, 4256, $a([104, 198, 288, 352]), $a([4, 0, 8, 1, 8, 4, 12, 4])]), $a(["full", "14", $1.v10to26, 73, 73, 26, 46, 4651, $a([120, 216, 320, 384]), $a([3, 1, 4, 5, 11, 5, 11, 5])]), $a(["full", "15", $1.v10to26, 77, 77, 26, 48, 5243, $a([132, 240, 360, 432]), $a([5, 1, 5, 5, 5, 7, 11, 7])]), $a(["full", "16", $1.v10to26, 81, 81, 26, 50, 5867, $a([144, 280, 408, 480]), $a([5, 1, 7, 3, 15, 2, 3, 13])]), $a(["full", "17", $1.v10to26, 85, 85, 30, 54, 6523, $a([168, 308, 448, 532]), $a([1, 5, 10, 1, 1, 15, 2, 17])]), $a(["full", "18", $1.v10to26, 89, 89, 30, 56, 7211, $a([180, 338, 504, 588]), $a([5, 1, 9, 4, 17, 1, 2, 19])]), $a(["full", "19", $1.v10to26, 93, 93, 30, 58, 7931, $a([196, 364, 546, 650]), $a([3, 4, 3, 11, 17, 4, 9, 16])]), $a(["full", "20", $1.v10to26, 97, 97, 34, 62, 8683, $a([224, 416, 600, 700]), $a([3, 5, 3, 13, 15, 5, 15, 10])]), $a(["full", "21", $1.v10to26, 101, 101, 28, 50, 9252, $a([224, 442, 644, 750]), $a([4, 4, 17, 0, 17, 6, 19, 6])]), $a(["full", "22", $1.v10to26, 105, 105, 26, 50, 10068, $a([252, 476, 690, 816]), $a([2, 7, 17, 0, 7, 16, 34, 0])]), $a(["full", "23", $1.v10to26, 109, 109, 30, 54, 10916, $a([270, 504, 750, 900]), $a([4, 5, 4, 14, 11, 14, 16, 14])]), $a(["full", "24", $1.v10to26, 113, 113, 28, 54, 11796, $a([300, 560, 810, 960]), $a([6, 4, 6, 14, 11, 16, 30, 2])]), $a(["full", "25", $1.v10to26, 117, 117, 32, 58, 12708, $a([312, 588, 870, 1050]), $a([8, 4, 8, 13, 7, 22, 22, 13])]), $a(["full", "26", $1.v10to26, 121, 121, 30, 58, 13652, $a([336, 644, 952, 1110]), $a([10, 2, 19, 4, 28, 6, 33, 4])]), $a(["full", "27", $1.v27to40, 125, 125, 34, 62, 14628, $a([360, 700, 1020, 1200]), $a([8, 4, 22, 3, 8, 26, 12, 28])]), $a(["full", "28", $1.v27to40, 129, 129, 26, 50, 15371, $a([390, 728, 1050, 1260]), $a([3, 10, 3, 23, 4, 31, 11, 31])]), $a(["full", "29", $1.v27to40, 133, 133, 30, 54, 16411, $a([420, 784, 1140, 1350]), $a([7, 7, 21, 7, 1, 37, 19, 26])]), $a(["full", "30", $1.v27to40, 137, 137, 26, 52, 17483, $a([450, 812, 1200, 1440]), $a([5, 10, 19, 10, 15, 25, 23, 25])]), $a(["full", "31", $1.v27to40, 141, 141, 30, 56, 18587, $a([480, 868, 1290, 1530]), $a([13, 3, 2, 29, 42, 1, 23, 28])]), $a(["full", "32", $1.v27to40, 145, 145, 34, 60, 19723, $a([510, 924, 1350, 1620]), $a([17, 0, 10, 23, 10, 35, 19, 35])]), $a(["full", "33", $1.v27to40, 149, 149, 30, 58, 20891, $a([540, 980, 1440, 1710]), $a([17, 1, 14, 21, 29, 19, 11, 46])]), $a(["full", "34", $1.v27to40, 153, 153, 34, 62, 22091, $a([570, 1036, 1530, 1800]), $a([13, 6, 14, 23, 44, 7, 59, 1])]), $a(["full", "35", $1.v27to40, 157, 157, 30, 54, 23008, $a([570, 1064, 1590, 1890]), $a([12, 7, 12, 26, 39, 14, 22, 41])]), $a(["full", "36", $1.v27to40, 161, 161, 24, 50, 24272, $a([600, 1120, 1680, 1980]), $a([6, 14, 6, 34, 46, 10, 2, 64])]), $a(["full", "37", $1.v27to40, 165, 165, 28, 54, 25568, $a([630, 1204, 1770, 2100]), $a([17, 4, 29, 14, 49, 10, 24, 46])]), $a(["full", "38", $1.v27to40, 169, 169, 32, 58, 26896, $a([660, 1260, 1860, 2220]), $a([4, 18, 13, 32, 48, 14, 42, 32])]), $a(["full", "39", $1.v27to40, 173, 173, 26, 54, 28256, $a([720, 1316, 1950, 2310]), $a([20, 4, 40, 7, 43, 22, 10, 67])]), $a(["full", "40", $1.v27to40, 177, 177, 30, 58, 29648, $a([750, 1372, 2040, 2430]), $a([19, 6, 18, 31, 34, 34, 20, 61])]), $a(["rmqr", "R7x43", $1.vR7x43, 7, 43, 22, 99, 104, $a([99, 7, 99, 10]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x59", $1.vR7x59, 7, 59, 20, 40, 171, $a([99, 9, 99, 14]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x77", $1.vR7x77, 7, 77, 26, 52, 261, $a([99, 12, 99, 22]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x99", $1.vR7x99, 7, 99, 24, 50, 358, $a([99, 16, 99, 30]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x139", $1.vR7x139, 7, 139, 28, 56, 545, $a([99, 24, 99, 44]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R9x43", $1.vR9x43, 9, 43, 22, 99, 170, $a([99, 9, 99, 14]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R9x59", $1.vR9x59, 9, 59, 20, 40, 267, $a([99, 12, 99, 22]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R9x77", $1.vR9x77, 9, 77, 26, 52, 393, $a([99, 18, 99, 32]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R9x99", $1.vR9x99, 9, 99, 24, 50, 532, $a([99, 24, 99, 44]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R9x139", $1.vR9x139, 9, 139, 28, 56, 797, $a([99, 36, 99, 66]), $a([-1, -1, 1, 1, -1, -1, 3, 0])]), $a(["rmqr", "R11x27", $1.vR11x27, 11, 27, 98, 99, 122, $a([99, 8, 99, 10]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R11x43", $1.vR11x43, 11, 43, 22, 99, 249, $a([99, 12, 99, 20]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R11x59", $1.vR11x59, 11, 59, 20, 40, 376, $a([99, 16, 99, 32]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R11x77", $1.vR11x77, 11, 77, 26, 52, 538, $a([99, 24, 99, 44]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R11x99", $1.vR11x99, 11, 99, 24, 50, 719, $a([99, 32, 99, 60]), $a([-1, -1, 1, 1, -1, -1, 1, 1])]), $a(["rmqr", "R11x139", $1.vR11x139, 11, 139, 28, 56, 1062, $a([99, 48, 99, 90]), $a([-1, -1, 2, 0, -1, -1, 3, 0])]), $a(["rmqr", "R13x27", $1.vR13x27, 13, 27, 98, 99, 172, $a([99, 9, 99, 14]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R13x43", $1.vR13x43, 13, 43, 22, 99, 329, $a([99, 14, 99, 28]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R13x59", $1.vR13x59, 13, 59, 20, 40, 486, $a([99, 22, 99, 40]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R13x77", $1.vR13x77, 13, 77, 26, 52, 684, $a([99, 32, 99, 56]), $a([-1, -1, 1, 1, -1, -1, 1, 1])]), $a(["rmqr", "R13x99", $1.vR13x99, 13, 99, 24, 50, 907, $a([99, 40, 99, 78]), $a([-1, -1, 1, 1, -1, -1, 1, 2])]), $a(["rmqr", "R13x139", $1.vR13x139, 13, 139, 28, 56, 1328, $a([99, 60, 99, 112]), $a([-1, -1, 2, 1, -1, -1, 2, 2])]), $a(["rmqr", "R15x43", $1.vR15x43, 15, 43, 22, 99, 409, $a([99, 18, 99, 36]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R15x59", $1.vR15x59, 15, 59, 20, 40, 596, $a([99, 26, 99, 48]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R15x77", $1.vR15x77, 15, 77, 26, 52, 830, $a([99, 36, 99, 72]), $a([-1, -1, 1, 1, -1, -1, 2, 1])]), $a(["rmqr", "R15x99", $1.vR15x99, 15, 99, 24, 50, 1095, $a([99, 48, 99, 88]), $a([-1, -1, 2, 0, -1, -1, 4, 0])]), $a(["rmqr", "R15x139", $1.vR15x139, 15, 139, 28, 56, 1594, $a([99, 72, 99, 130]), $a([-1, -1, 2, 1, -1, -1, 1, 4])]), $a(["rmqr", "R17x43", $1.vR17x43, 17, 43, 22, 99, 489, $a([99, 22, 99, 40]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R17x59", $1.vR17x59, 17, 59, 20, 40, 706, $a([99, 32, 99, 60]), $a([-1, -1, 2, 0, -1, -1, 2, 0])]), $a(["rmqr", "R17x77", $1.vR17x77, 17, 77, 26, 52, 976, $a([99, 44, 99, 84]), $a([-1, -1, 2, 0, -1, -1, 1, 2])]), $a(["rmqr", "R17x99", $1.vR17x99, 17, 99, 24, 50, 1283, $a([99, 60, 99, 104]), $a([-1, -1, 2, 1, -1, -1, 4, 0])]), $a(["rmqr", "R17x139", $1.vR17x139, 17, 139, 28, 56, 1860, $a([99, 80, 99, 156]), $a([-1, -1, 4, 0, -1, -1, 2, 4])])]); //#18823 + $k[$j++] = 'eclval'; //#18824 + $search("LMQH", $1.eclevel); //#18824 + $j--; //#18824 + var _Iz = $k[--$j]; //#18824 + var _J0 = $k[--$j]; //#18824 + $k[$j++] = _Iz.length; //#18824 + $k[$j++] = _J0; //#18824 + $j--; //#18824 + var _J1 = $k[--$j]; //#18824 + var _J2 = $k[--$j]; //#18824 + $k[$j++] = _J1; //#18824 + $k[$j++] = _J2; //#18824 + $j--; //#18824 + var _J3 = $k[--$j]; //#18824 + $1[$k[--$j]] = _J3; //#18824 + for (var _J7 = 0, _J6 = $1.metrics.length - 1; _J7 <= _J6; _J7 += 1) { //#18863 + $1.i = _J7; //#18826 + $1.m = $get($1.metrics, $1.i); //#18827 + $1.frmt = $get($1.m, 0); //#18828 + $1.vers = $get($1.m, 1); //#18829 + $1.vergrp = $get($1.m, 2); //#18830 + $1.verind = $1.i - 44; //#18831 + $1.rows = $get($1.m, 3); //#18832 + $1.cols = $get($1.m, 4); //#18833 + $1.asp2 = $get($1.m, 5); //#18834 + $1.asp3 = $get($1.m, 6); //#18835 + $1.nmod = $get($1.m, 7); //#18836 + $1.ncws = ~~($1.nmod / 8); //#18837 + $1.rbit = $1.nmod % 8; //#18838 + $1.lc4b = false; //#18839 + if ($eq($1.vers, "M1") || $eq($1.vers, "M3")) { //#18844 + $1.ncws = $1.ncws + 1; //#18841 + $1.rbit = 0; //#18842 + $1.lc4b = true; //#18843 + } //#18843 + $1.ecws = $get($get($1.m, 8), $1.eclval); //#18845 + $1.dcws = $f($1.ncws - $1.ecws); //#18846 + var _Jf = $1.lc4b ? 4 : 0; //#18847 + $1.dmod = $f(($1.dcws * 8) - _Jf); //#18847 + $1.ecb1 = $get($get($1.m, 9), $1.eclval * 2); //#18848 + $1.ecb2 = $get($get($1.m, 9), $f(($1.eclval * 2) + 1)); //#18849 + $1.okay = true; //#18850 + if ($ne($1.format, $1.frmt)) { //#18851 + $1.okay = false; //#18851 + } //#18851 + if ($eq($1.frmt, "micro") && $1.fnc1first) { //#18852 + $1.okay = false; //#18852 + } //#18852 + if ($ne($1.version, "unset") && $ne($1.version, $1.vers)) { //#18853 + $1.okay = false; //#18853 + } //#18853 + if (($1.ecb1 == -1) || ($1.ecb2 == -1)) { //#18854 + $1.okay = false; //#18854 + } //#18854 + $1.verbits = $get($1.msgbits, $1.vergrp); //#18855 + if ($1.verbits == -1) { //#18859 + $1.okay = false; //#18857 + } else { //#18859 + if ($1.verbits.length > $1.dmod) { //#18859 + $1.okay = false; //#18859 + } //#18859 + } //#18859 + $1.term = $geti("000000000", 0, $get($1.termlens, $1.vergrp)); //#18861 + if ($1.okay) { //#18862 + break; //#18862 + } //#18862 + } //#18862 + if (!$1.okay) { //#18867 + $k[$j++] = 'bwipp.qrcodeNoValidSymbol'; //#18866 + $k[$j++] = "No valid symbol available"; //#18866 + $0.raiseerror(); //#18866 + } //#18866 + $1.format = $1.frmt; //#18869 + $1.version = $1.vers; //#18870 + $1.msgbits = $1.verbits; //#18871 + $1.dcpb = ~~($1.dcws / $f($1.ecb1 + $1.ecb2)); //#18872 + $1.ecpb = (~~($1.ncws / $f($1.ecb1 + $1.ecb2))) - $1.dcpb; //#18873 + var _KJ = $1.term; //#18876 + var _KK = $1.dmod; //#18876 + var _KL = $1.msgbits; //#18876 + var _KM = $1.term; //#18876 + var _KN = _KM.length; //#18876 + var _KO = $f(_KK - _KL.length); //#18876 + if ($f(_KK - _KL.length) > _KM.length) { //#18876 + var _ = _KN; //#18876 + _KN = _KO; //#18876 + _KO = _; //#18876 + } //#18876 + $1.term = $geti(_KJ, 0, _KO); //#18876 + var _KS = $s($1.msgbits.length + $1.term.length); //#18877 + $puti(_KS, 0, $1.msgbits); //#18878 + $puti(_KS, $1.msgbits.length, $1.term); //#18879 + $1.msgbits = _KS; //#18880 + $1.pad = $s($1.dmod); //#18883 + for (var _Ka = 0, _KZ = $1.pad.length - 1; _Ka <= _KZ; _Ka += 1) { //#18884 + $put($1.pad, _Ka, 48); //#18884 + } //#18884 + $puti($1.pad, 0, $1.msgbits); //#18885 + $1.padstrs = $a(["11101100", "00010001"]); //#18886 + $1.padnum = 0; //#18887 + var _Ki = $1.lc4b ? 5 : 1; //#18888 + for (var _Kk = ~~(Math.ceil($1.msgbits.length / 8) * 8), _Kj = $f($1.dmod - _Ki); _Kk <= _Kj; _Kk += 8) { //#18891 + $puti($1.pad, _Kk, $get($1.padstrs, $1.padnum)); //#18889 + $1.padnum = ($1.padnum + 1) % 2; //#18890 + } //#18890 + $1.cws = $a($1.dcws); //#18894 + for (var _Ku = 0, _Kt = $1.cws.length - 1; _Ku <= _Kt; _Ku += 1) { //#18906 + $1.c = _Ku; //#18896 + $1.bpcw = 8; //#18897 + if ($1.lc4b && ($1.c == ($1.cws.length - 1))) { //#18898 + $1.bpcw = 4; //#18898 + } //#18898 + $1.cwb = $geti($1.pad, $1.c * 8, $1.bpcw); //#18899 + $1.cw = 0; //#18900 + for (var _L4 = 0, _L3 = $1.bpcw - 1; _L4 <= _L3; _L4 += 1) { //#18904 + $1.i = _L4; //#18902 + $1.cw = $f($1.cw + ((~~(Math.pow(2, ($1.bpcw - $1.i) - 1))) * $f($get($1.cwb, $1.i) - 48))); //#18903 + } //#18903 + $put($1.cws, $1.c, $1.cw); //#18905 + } //#18905 + if ($1.lc4b) { //#18909 + var _LF = $1.cws; //#18909 + var _LG = $1.cws; //#18909 + $put(_LF, _LG.length - 1, $get(_LF, _LG.length - 1) << 4); //#18909 + } //#18909 + var _LJ = $get($1.options, 'debugcws') !== undefined; //#18911 + if (_LJ) { //#18911 + $k[$j++] = 'bwipp.debugcws'; //#18911 + $k[$j++] = $1.cws; //#18911 + $0.raiseerror(); //#18911 + } //#18911 + $k[$j++] = Infinity; //#18914 + $k[$j++] = 1; //#18914 + for (var _LL = 0, _LM = 255; _LL < _LM; _LL++) { //#18914 + var _LN = $k[--$j]; //#18914 + var _LO = _LN * 2; //#18914 + $k[$j++] = _LN; //#18914 + $k[$j++] = _LO; //#18914 + if (_LO >= 256) { //#18914 + var _LP = $k[--$j]; //#18914 + $k[$j++] = _LP ^ 285; //#18914 + } //#18914 + } //#18914 + $1.rsalog = $a(); //#18914 + $1.rslog = $a(256); //#18915 + for (var _LS = 1; _LS <= 255; _LS += 1) { //#18916 + $put($1.rslog, $get($1.rsalog, _LS), _LS); //#18916 + } //#18916 + $1.rsprod = function() { + var _LW = $k[--$j]; //#18920 + var _LX = $k[--$j]; //#18920 + $k[$j++] = _LX; //#18924 + $k[$j++] = _LW; //#18924 + if ((_LW != 0) && (_LX != 0)) { //#18923 + var _La = $get($1.rslog, $k[--$j]); //#18921 + var _Lf = $get($1.rsalog, $f(_La + $get($1.rslog, $k[--$j])) % 255); //#18921 + $k[$j++] = _Lf; //#18921 + } else { //#18923 + $j -= 2; //#18923 + $k[$j++] = 0; //#18923 + } //#18923 + }; //#18925 + $k[$j++] = Infinity; //#18928 + $k[$j++] = 1; //#18928 + for (var _Lh = 0, _Li = $1.ecpb; _Lh < _Li; _Lh++) { //#18928 + $k[$j++] = 0; //#18928 + } //#18928 + $1.coeffs = $a(); //#18928 + for (var _Lm = 0, _Ll = $1.ecpb - 1; _Lm <= _Ll; _Lm += 1) { //#18937 + $1.i = _Lm; //#18930 + $put($1.coeffs, $1.i + 1, $get($1.coeffs, $1.i)); //#18931 + for (var _Lt = $1.i; _Lt >= 1; _Lt -= 1) { //#18935 + $1.j = _Lt; //#18933 + $k[$j++] = $1.coeffs; //#18934 + $k[$j++] = $1.j; //#18934 + $k[$j++] = $get($1.coeffs, $1.j - 1); //#18934 + $k[$j++] = $get($1.coeffs, $1.j); //#18934 + $k[$j++] = $get($1.rsalog, $1.i); //#18934 + $1.rsprod(); //#18934 + var _M5 = $k[--$j]; //#18934 + var _M6 = $k[--$j]; //#18934 + var _M7 = $k[--$j]; //#18934 + $put($k[--$j], _M7, $xo(_M6, _M5)); //#18934 + } //#18934 + $k[$j++] = $1.coeffs; //#18936 + $k[$j++] = 0; //#18936 + $k[$j++] = $get($1.coeffs, 0); //#18936 + $k[$j++] = $get($1.rsalog, $1.i); //#18936 + $1.rsprod(); //#18936 + var _MF = $k[--$j]; //#18936 + var _MG = $k[--$j]; //#18936 + $put($k[--$j], _MG, _MF); //#18936 + } //#18936 + $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); //#18938 + $1.rscodes = function() { + $1.rscws = $k[--$j]; //#18942 + $1.rsnd = $1.rscws.length; //#18943 + $k[$j++] = Infinity; //#18944 + $forall($1.rscws); //#18944 + for (var _MP = 0, _MQ = $1.ecpb; _MP < _MQ; _MP++) { //#18944 + $k[$j++] = 0; //#18944 + } //#18944 + $1.rscws = $a(); //#18944 + for (var _MU = 0, _MT = $1.rsnd - 1; _MU <= _MT; _MU += 1) { //#18952 + $1.m = _MU; //#18946 + $1.k = $get($1.rscws, $1.m); //#18947 + for (var _Ma = 0, _MZ = $1.ecpb - 1; _Ma <= _MZ; _Ma += 1) { //#18951 + $1.j = _Ma; //#18949 + $k[$j++] = $1.rscws; //#18950 + $k[$j++] = ($1.m + $1.j) + 1; //#18950 + $k[$j++] = $get($1.coeffs, ($1.ecpb - $1.j) - 1); //#18950 + $k[$j++] = $1.k; //#18950 + $1.rsprod(); //#18950 + var _Mn = $k[--$j]; //#18950 + var _Mo = $k[--$j]; //#18950 + $put($k[--$j], _Mo, $xo(_Mn, $get($1.rscws, ($1.m + $1.j) + 1))); //#18950 + } //#18950 + } //#18950 + $k[$j++] = $geti($1.rscws, $1.rsnd, $1.ecpb); //#18953 + }; //#18954 + $1.dcwsb = $a($f($1.ecb1 + $1.ecb2)); //#18957 + $1.ecwsb = $a($f($1.ecb1 + $1.ecb2)); //#18958 + for (var _N2 = 0, _N1 = $f($1.ecb1 - 1); _N2 <= _N1; _N2 += 1) { //#18963 + $1.i = _N2; //#18960 + $put($1.dcwsb, $1.i, $geti($1.cws, $1.i * $1.dcpb, $1.dcpb)); //#18961 + $k[$j++] = $1.ecwsb; //#18962 + $k[$j++] = $1.i; //#18962 + $k[$j++] = $get($1.dcwsb, $1.i); //#18962 + $1.rscodes(); //#18962 + var _NF = $k[--$j]; //#18962 + var _NG = $k[--$j]; //#18962 + $put($k[--$j], _NG, _NF); //#18962 + } //#18962 + for (var _NK = 0, _NJ = $f($1.ecb2 - 1); _NK <= _NJ; _NK += 1) { //#18968 + $1.i = _NK; //#18965 + $put($1.dcwsb, $f($1.ecb1 + $1.i), $geti($1.cws, $f(($1.ecb1 * $1.dcpb) + ($1.i * ($1.dcpb + 1))), $1.dcpb + 1)); //#18966 + $k[$j++] = $1.ecwsb; //#18967 + $k[$j++] = $f($1.ecb1 + $1.i); //#18967 + $k[$j++] = $get($1.dcwsb, $f($1.ecb1 + $1.i)); //#18967 + $1.rscodes(); //#18967 + var _Nc = $k[--$j]; //#18967 + var _Nd = $k[--$j]; //#18967 + $put($k[--$j], _Nd, _Nc); //#18967 + } //#18967 + $1.cws = $a($1.ncws); //#18971 + $1.cw = 0; //#18972 + for (var _Nj = 0, _Ni = $1.dcpb; _Nj <= _Ni; _Nj += 1) { //#18982 + $1.i = _Nj; //#18974 + for (var _Nn = 0, _Nm = $f($f($1.ecb1 + $1.ecb2) - 1); _Nn <= _Nm; _Nn += 1) { //#18981 + $1.j = _Nn; //#18976 + if ($1.i < $get($1.dcwsb, $1.j).length) { //#18980 + $put($1.cws, $1.cw, $get($get($1.dcwsb, $1.j), $1.i)); //#18978 + $1.cw = $1.cw + 1; //#18979 + } //#18979 + } //#18979 + } //#18979 + for (var _O2 = 0, _O1 = $1.ecpb - 1; _O2 <= _O1; _O2 += 1) { //#18990 + $1.i = _O2; //#18984 + for (var _O6 = 0, _O5 = $f($f($1.ecb1 + $1.ecb2) - 1); _O6 <= _O5; _O6 += 1) { //#18989 + $1.j = _O6; //#18986 + $put($1.cws, $1.cw, $get($get($1.ecwsb, $1.j), $1.i)); //#18987 + $1.cw = $1.cw + 1; //#18988 + } //#18988 + } //#18988 + if ($1.rbit > 0) { //#18998 + $1.pad = $a($1.cws.length + 1); //#18994 + $puti($1.pad, 0, $1.cws); //#18995 + $put($1.pad, $1.pad.length - 1, 0); //#18996 + $1.cws = $1.pad; //#18997 + } //#18997 + if ($1.lc4b) { //#19009 + var _OO = $1.cws; //#19002 + var _OP = $1.dcws; //#19002 + $put(_OO, $f(_OP - 1), $get(_OO, $f(_OP - 1)) >>> 4); //#19002 + for (var _OU = $f($1.dcws - 1), _OT = $1.ncws - 2; _OU <= _OT; _OU += 1) { //#19007 + $1.i = _OU; //#19004 + $put($1.cws, $1.i, ($get($1.cws, $1.i) & 15) << 4); //#19005 + $put($1.cws, $1.i, (($get($1.cws, $1.i + 1) >>> 4) & 15) | $get($1.cws, $1.i)); //#19006 + } //#19006 + $put($1.cws, $1.ncws - 1, ($get($1.cws, $1.ncws - 1) & 15) << 4); //#19008 + } //#19008 + var _Oo = $get($1.options, 'debugecc') !== undefined; //#19011 + if (_Oo) { //#19011 + $k[$j++] = 'bwipp.debugecc'; //#19011 + $k[$j++] = $1.cws; //#19011 + $0.raiseerror(); //#19011 + } //#19011 + $k[$j++] = Infinity; //#19014 + for (var _Os = 0, _Ot = $1.rows * $1.cols; _Os < _Ot; _Os++) { //#19014 + $k[$j++] = -1; //#19014 + } //#19014 + $1.pixs = $a(); //#19014 + $1.qmv = function() { + var _Ow = $k[--$j]; //#19015 + var _Ox = $k[--$j]; //#19015 + $k[$j++] = $f(_Ox + (_Ow * $1.cols)); //#19015 + }; //#19015 + if ($eq($1.format, "full")) { //#19024 + for (var _P1 = 8, _P0 = $f($1.cols - 9); _P1 <= _P0; _P1 += 1) { //#19023 + $1.i = _P1; //#19020 + $k[$j++] = $1.pixs; //#19021 + $k[$j++] = $1.i; //#19021 + $k[$j++] = 6; //#19021 + $1.qmv(); //#19021 + var _P5 = $k[--$j]; //#19021 + $put($k[--$j], _P5, ($1.i + 1) % 2); //#19021 + $k[$j++] = $1.pixs; //#19022 + $k[$j++] = 6; //#19022 + $k[$j++] = $1.i; //#19022 + $1.qmv(); //#19022 + var _PA = $k[--$j]; //#19022 + $put($k[--$j], _PA, ($1.i + 1) % 2); //#19022 + } //#19022 + } //#19022 + if ($eq($1.format, "micro")) { //#19031 + for (var _PF = 8, _PE = $f($1.cols - 1); _PF <= _PE; _PF += 1) { //#19030 + $1.i = _PF; //#19027 + $k[$j++] = $1.pixs; //#19028 + $k[$j++] = $1.i; //#19028 + $k[$j++] = 0; //#19028 + $1.qmv(); //#19028 + var _PJ = $k[--$j]; //#19028 + $put($k[--$j], _PJ, ($1.i + 1) % 2); //#19028 + $k[$j++] = $1.pixs; //#19029 + $k[$j++] = 0; //#19029 + $k[$j++] = $1.i; //#19029 + $1.qmv(); //#19029 + var _PO = $k[--$j]; //#19029 + $put($k[--$j], _PO, ($1.i + 1) % 2); //#19029 + } //#19029 + } //#19029 + if ($eq($1.format, "rmqr")) { //#19050 + for (var _PT = 3, _PS = $f($1.cols - 4); _PT <= _PS; _PT += 1) { //#19037 + $1.i = _PT; //#19034 + $k[$j++] = $1.pixs; //#19035 + $k[$j++] = $1.i; //#19035 + $k[$j++] = 0; //#19035 + $1.qmv(); //#19035 + var _PX = $k[--$j]; //#19035 + $put($k[--$j], _PX, ($1.i + 1) % 2); //#19035 + $k[$j++] = $1.pixs; //#19036 + $k[$j++] = $1.i; //#19036 + $k[$j++] = $f($1.rows - 1); //#19036 + $1.qmv(); //#19036 + var _Pd = $k[--$j]; //#19036 + $put($k[--$j], _Pd, ($1.i + 1) % 2); //#19036 + } //#19036 + for (var _Ph = 3, _Pg = $f($1.rows - 4); _Ph <= _Pg; _Ph += 1) { //#19042 + $1.i = _Ph; //#19039 + $k[$j++] = $1.pixs; //#19040 + $k[$j++] = 0; //#19040 + $k[$j++] = $1.i; //#19040 + $1.qmv(); //#19040 + var _Pl = $k[--$j]; //#19040 + $put($k[--$j], _Pl, ($1.i + 1) % 2); //#19040 + $k[$j++] = $1.pixs; //#19041 + $k[$j++] = $f($1.cols - 1); //#19041 + $k[$j++] = $1.i; //#19041 + $1.qmv(); //#19041 + var _Pr = $k[--$j]; //#19041 + $put($k[--$j], _Pr, ($1.i + 1) % 2); //#19041 + } //#19041 + for (var _Py = $f($1.asp2 - 1), _Pz = $f($1.asp3 - $1.asp2), _Px = $f($1.cols - 13); _Pz < 0 ? _Py >= _Px : _Py <= _Px; _Py += _Pz) { //#19049 + $1.i = _Py; //#19044 + for (var _Q2 = 3, _Q1 = $f($1.rows - 4); _Q2 <= _Q1; _Q2 += 1) { //#19048 + $1.j = _Q2; //#19046 + $k[$j++] = $1.pixs; //#19047 + $k[$j++] = $1.i; //#19047 + $k[$j++] = $1.j; //#19047 + $1.qmv(); //#19047 + var _Q7 = $k[--$j]; //#19047 + $put($k[--$j], _Q7, ($1.j + 1) % 2); //#19047 + } //#19047 + } //#19047 + } //#19047 + $1.fpat = $a([$a([1, 1, 1, 1, 1, 1, 1, 0]), $a([1, 0, 0, 0, 0, 0, 1, 0]), $a([1, 0, 1, 1, 1, 0, 1, 0]), $a([1, 0, 1, 1, 1, 0, 1, 0]), $a([1, 0, 1, 1, 1, 0, 1, 0]), $a([1, 0, 0, 0, 0, 0, 1, 0]), $a([1, 1, 1, 1, 1, 1, 1, 0]), $a([0, 0, 0, 0, 0, 0, 0, 0])]); //#19062 + $1.fsubpat = $a([$a([1, 1, 1, 1, 1, 9, 9, 9]), $a([1, 0, 0, 0, 1, 9, 9, 9]), $a([1, 0, 1, 0, 1, 9, 9, 9]), $a([1, 0, 0, 0, 1, 9, 9, 9]), $a([1, 1, 1, 1, 1, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9])]); //#19072 + $1.fcorpat = $a([$a([1, 1, 1, 9, 9, 9, 9, 9]), $a([1, 0, 9, 9, 9, 9, 9, 9]), $a([1, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9])]); //#19082 + $1.fnullpat = $a([$a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9])]); //#19092 + var _Qy = new Map([ + ["full", $a([$1.fpat, $1.fpat, $1.fpat, $1.fnullpat])], + ["micro", $a([$1.fpat, $1.fnullpat, $1.fnullpat, $1.fnullpat])], + ["rmqr", $a([$1.fpat, $1.fcorpat, $1.fcorpat, $1.fsubpat])] + ]); //#19097 + $1.fpats = $get(_Qy, $1.format); //#19098 + for (var _R1 = 0; _R1 <= 7; _R1 += 1) { //#19112 + $1.y = _R1; //#19100 + for (var _R2 = 0; _R2 <= 7; _R2 += 1) { //#19111 + $1.x = _R2; //#19102 + $1.fpb0 = $get($get($get($1.fpats, 0), $1.y), $1.x); //#19103 + $1.fpb1 = $get($get($get($1.fpats, 1), $1.y), $1.x); //#19104 + $1.fpb2 = $get($get($get($1.fpats, 2), $1.y), $1.x); //#19105 + $1.fpb3 = $get($get($get($1.fpats, 3), $1.y), $1.x); //#19106 + if (($1.fpb0 != 9) && ($1.y < $1.rows)) { //#19107 + $k[$j++] = $1.pixs; //#19107 + $k[$j++] = $1.x; //#19107 + $k[$j++] = $1.y; //#19107 + $1.qmv(); //#19107 + var _RY = $k[--$j]; //#19107 + $put($k[--$j], _RY, $1.fpb0); //#19107 + } //#19107 + if ($1.fpb1 != 9) { //#19108 + $k[$j++] = $1.pixs; //#19108 + $k[$j++] = $f($f($1.cols - $1.x) - 1); //#19108 + $k[$j++] = $1.y; //#19108 + $1.qmv(); //#19108 + var _Rg = $k[--$j]; //#19108 + $put($k[--$j], _Rg, $1.fpb1); //#19108 + } //#19108 + if ($1.fpb2 != 9) { //#19109 + $k[$j++] = $1.pixs; //#19109 + $k[$j++] = $1.x; //#19109 + $k[$j++] = $f($f($1.rows - $1.y) - 1); //#19109 + $1.qmv(); //#19109 + var _Ro = $k[--$j]; //#19109 + $put($k[--$j], _Ro, $1.fpb2); //#19109 + } //#19109 + if ($1.fpb3 != 9) { //#19110 + $k[$j++] = $1.pixs; //#19110 + $k[$j++] = $f($f($1.cols - $1.x) - 1); //#19110 + $k[$j++] = $f($f($1.rows - $1.y) - 1); //#19110 + $1.qmv(); //#19110 + var _Rx = $k[--$j]; //#19110 + $put($k[--$j], _Rx, $1.fpb3); //#19110 + } //#19110 + } //#19110 + } //#19110 + $1.putalgnpat = function() { + $1.py = $k[--$j]; //#19116 + $1.px = $k[--$j]; //#19117 + for (var _S1 = 0; _S1 <= 4; _S1 += 1) { //#19127 + $1.pb = _S1; //#19119 + for (var _S2 = 0; _S2 <= 4; _S2 += 1) { //#19126 + $1.pa = _S2; //#19121 + $1.algnb = $get($get($1.algnpat, $1.pb), $1.pa); //#19122 + if ($1.algnb != 9) { //#19125 + $k[$j++] = $1.pixs; //#19124 + $k[$j++] = $f($1.px + $1.pa); //#19124 + $k[$j++] = $f($1.py + $1.pb); //#19124 + $1.qmv(); //#19124 + var _SF = $k[--$j]; //#19124 + $put($k[--$j], _SF, $1.algnb); //#19124 + } //#19124 + } //#19124 + } //#19124 + }; //#19128 + if ($eq($1.format, "full")) { //#19149 + $1.algnpat = $a([$a([1, 1, 1, 1, 1]), $a([1, 0, 0, 0, 1]), $a([1, 0, 1, 0, 1]), $a([1, 0, 0, 0, 1]), $a([1, 1, 1, 1, 1])]); //#19136 + for (var _ST = $f($1.asp2 - 2), _SU = $f($1.asp3 - $1.asp2), _SS = $f($1.cols - 13); _SU < 0 ? _ST >= _SS : _ST <= _SS; _ST += _SU) { //#19141 + $1.i = _ST; //#19138 + $k[$j++] = $1.i; //#19139 + $k[$j++] = 4; //#19139 + $1.putalgnpat(); //#19139 + $k[$j++] = 4; //#19140 + $k[$j++] = $1.i; //#19140 + $1.putalgnpat(); //#19140 + } //#19140 + for (var _Sc = $f($1.asp2 - 2), _Sd = $f($1.asp3 - $1.asp2), _Sb = $f($1.cols - 9); _Sd < 0 ? _Sc >= _Sb : _Sc <= _Sb; _Sc += _Sd) { //#19148 + $1.x = _Sc; //#19143 + for (var _Sj = $f($1.asp2 - 2), _Sk = $f($1.asp3 - $1.asp2), _Si = $f($1.rows - 9); _Sk < 0 ? _Sj >= _Si : _Sj <= _Si; _Sj += _Sk) { //#19147 + $1.y = _Sj; //#19145 + $k[$j++] = $1.x; //#19146 + $k[$j++] = $1.y; //#19146 + $1.putalgnpat(); //#19146 + } //#19146 + } //#19146 + } //#19146 + if ($eq($1.format, "rmqr")) { //#19163 + $1.algnpat = $a([$a([1, 1, 1, 9, 9]), $a([1, 0, 1, 9, 9]), $a([1, 1, 1, 9, 9]), $a([9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9])]); //#19157 + for (var _Sz = $f($1.asp2 - 2), _T0 = $f($1.asp3 - $1.asp2), _Sy = $f($1.cols - 13); _T0 < 0 ? _Sz >= _Sy : _Sz <= _Sy; _Sz += _T0) { //#19162 + $1.i = _Sz; //#19159 + $k[$j++] = $1.i; //#19160 + $k[$j++] = 0; //#19160 + $1.putalgnpat(); //#19160 + $k[$j++] = $1.i; //#19161 + $k[$j++] = $f($1.rows - 3); //#19161 + $1.putalgnpat(); //#19161 + } //#19161 + } //#19161 + var _W1 = new Map([ + ["full", $a([$a([$a([0, 8]), $a([8, $f($1.cols - 1)])]), $a([$a([1, 8]), $a([8, $f($1.cols - 2)])]), $a([$a([2, 8]), $a([8, $f($1.cols - 3)])]), $a([$a([3, 8]), $a([8, $f($1.cols - 4)])]), $a([$a([4, 8]), $a([8, $f($1.cols - 5)])]), $a([$a([5, 8]), $a([8, $f($1.cols - 6)])]), $a([$a([7, 8]), $a([8, $f($1.cols - 7)])]), $a([$a([8, 8]), $a([$f($1.cols - 8), 8])]), $a([$a([8, 7]), $a([$f($1.cols - 7), 8])]), $a([$a([8, 5]), $a([$f($1.cols - 6), 8])]), $a([$a([8, 4]), $a([$f($1.cols - 5), 8])]), $a([$a([8, 3]), $a([$f($1.cols - 4), 8])]), $a([$a([8, 2]), $a([$f($1.cols - 3), 8])]), $a([$a([8, 1]), $a([$f($1.cols - 2), 8])]), $a([$a([8, 0]), $a([$f($1.cols - 1), 8])])])], + ["micro", $a([$a([$a([1, 8])]), $a([$a([2, 8])]), $a([$a([3, 8])]), $a([$a([4, 8])]), $a([$a([5, 8])]), $a([$a([6, 8])]), $a([$a([7, 8])]), $a([$a([8, 8])]), $a([$a([8, 7])]), $a([$a([8, 6])]), $a([$a([8, 5])]), $a([$a([8, 4])]), $a([$a([8, 3])]), $a([$a([8, 2])]), $a([$a([8, 1])])])], + ["rmqr", $a([$a([$a([11, 3]), $a([$f($1.cols - 3), $f($1.rows - 6)])]), $a([$a([11, 2]), $a([$f($1.cols - 4), $f($1.rows - 6)])]), $a([$a([11, 1]), $a([$f($1.cols - 5), $f($1.rows - 6)])]), $a([$a([10, 5]), $a([$f($1.cols - 6), $f($1.rows - 2)])]), $a([$a([10, 4]), $a([$f($1.cols - 6), $f($1.rows - 3)])]), $a([$a([10, 3]), $a([$f($1.cols - 6), $f($1.rows - 4)])]), $a([$a([10, 2]), $a([$f($1.cols - 6), $f($1.rows - 5)])]), $a([$a([10, 1]), $a([$f($1.cols - 6), $f($1.rows - 6)])]), $a([$a([9, 5]), $a([$f($1.cols - 7), $f($1.rows - 2)])]), $a([$a([9, 4]), $a([$f($1.cols - 7), $f($1.rows - 3)])]), $a([$a([9, 3]), $a([$f($1.cols - 7), $f($1.rows - 4)])]), $a([$a([9, 2]), $a([$f($1.cols - 7), $f($1.rows - 5)])]), $a([$a([9, 1]), $a([$f($1.cols - 7), $f($1.rows - 6)])]), $a([$a([8, 5]), $a([$f($1.cols - 8), $f($1.rows - 2)])]), $a([$a([8, 4]), $a([$f($1.cols - 8), $f($1.rows - 3)])]), $a([$a([8, 3]), $a([$f($1.cols - 8), $f($1.rows - 4)])]), $a([$a([8, 2]), $a([$f($1.cols - 8), $f($1.rows - 5)])]), $a([$a([8, 1]), $a([$f($1.cols - 8), $f($1.rows - 6)])])])] + ]); //#19185 + $1.formatmap = $get(_W1, $1.format); //#19187 + $forall($1.formatmap, function() { //#19190 + $forall($k[--$j], function() { //#19189 + $forall($k[--$j]); //#19189 + $1.qmv(); //#19189 + $put($1.pixs, $k[--$j], 1); //#19189 + }); //#19189 + }); //#19189 + if ($eq($1.format, "full") && ($1.cols >= 45)) { //#19206 + $1.versionmap = $a([$a([$a([$f($1.cols - 9), 5]), $a([5, $f($1.cols - 9)])]), $a([$a([$f($1.cols - 10), 5]), $a([5, $f($1.cols - 10)])]), $a([$a([$f($1.cols - 11), 5]), $a([5, $f($1.cols - 11)])]), $a([$a([$f($1.cols - 9), 4]), $a([4, $f($1.cols - 9)])]), $a([$a([$f($1.cols - 10), 4]), $a([4, $f($1.cols - 10)])]), $a([$a([$f($1.cols - 11), 4]), $a([4, $f($1.cols - 11)])]), $a([$a([$f($1.cols - 9), 3]), $a([3, $f($1.cols - 9)])]), $a([$a([$f($1.cols - 10), 3]), $a([3, $f($1.cols - 10)])]), $a([$a([$f($1.cols - 11), 3]), $a([3, $f($1.cols - 11)])]), $a([$a([$f($1.cols - 9), 2]), $a([2, $f($1.cols - 9)])]), $a([$a([$f($1.cols - 10), 2]), $a([2, $f($1.cols - 10)])]), $a([$a([$f($1.cols - 11), 2]), $a([2, $f($1.cols - 11)])]), $a([$a([$f($1.cols - 9), 1]), $a([1, $f($1.cols - 9)])]), $a([$a([$f($1.cols - 10), 1]), $a([1, $f($1.cols - 10)])]), $a([$a([$f($1.cols - 11), 1]), $a([1, $f($1.cols - 11)])]), $a([$a([$f($1.cols - 9), 0]), $a([0, $f($1.cols - 9)])]), $a([$a([$f($1.cols - 10), 0]), $a([0, $f($1.cols - 10)])]), $a([$a([$f($1.cols - 11), 0]), $a([0, $f($1.cols - 11)])])]); //#19204 + } else { //#19206 + $1.versionmap = $a([]); //#19206 + } //#19206 + var _Xf = $1.versionmap; //#19208 + for (var _Xg = 0, _Xh = _Xf.length; _Xg < _Xh; _Xg++) { //#19210 + $forall($get(_Xf, _Xg), function() { //#19209 + $forall($k[--$j]); //#19209 + $1.qmv(); //#19209 + $put($1.pixs, $k[--$j], 0); //#19209 + }); //#19209 + } //#19209 + if ($eq($1.format, "full")) { //#19215 + $k[$j++] = $1.pixs; //#19214 + $k[$j++] = 8; //#19214 + $k[$j++] = $f($1.rows - 8); //#19214 + $1.qmv(); //#19214 + var _Xp = $k[--$j]; //#19214 + $put($k[--$j], _Xp, 0); //#19214 + } //#19214 + var _Y9 = $a([function() { + var _Xr = $k[--$j]; //#19220 + var _Xs = $k[--$j]; //#19220 + $k[$j++] = $f(_Xs + _Xr) % 2; //#19220 + }, function() { + var _Xt = $k[--$j]; //#19221 + var _Xu = $k[--$j]; //#19221 + $k[$j++] = _Xt; //#19221 + $k[$j++] = _Xu; //#19221 + $j--; //#19221 + var _Xv = $k[--$j]; //#19221 + $k[$j++] = _Xv % 2; //#19221 + }, function() { + $j--; //#19222 + var _Xw = $k[--$j]; //#19222 + $k[$j++] = _Xw % 3; //#19222 + }, function() { + var _Xx = $k[--$j]; //#19223 + var _Xy = $k[--$j]; //#19223 + $k[$j++] = $f(_Xy + _Xx) % 3; //#19223 + }, function() { + var _Xz = $k[--$j]; //#19224 + var _Y0 = $k[--$j]; //#19224 + $k[$j++] = ((~~(_Xz / 2)) + (~~(_Y0 / 3))) % 2; //#19224 + }, function() { + var _Y1 = $k[--$j]; //#19225 + var _Y3 = $k[--$j] * _Y1; //#19225 + $k[$j++] = $f((_Y3 % 2) + (_Y3 % 3)); //#19225 + }, function() { + var _Y4 = $k[--$j]; //#19226 + var _Y6 = $k[--$j] * _Y4; //#19226 + $k[$j++] = ($f((_Y6 % 2) + (_Y6 % 3))) % 2; //#19226 + }, function() { + var _Y7 = $k[--$j]; //#19227 + var _Y8 = $k[--$j]; //#19227 + $k[$j++] = ($f(((_Y8 * _Y7) % 3) + ($f(_Y8 + _Y7) % 2))) % 2; //#19227 + }]); //#19227 + var _YK = $a([function() { + var _YA = $k[--$j]; //#19230 + var _YB = $k[--$j]; //#19230 + $k[$j++] = _YA; //#19230 + $k[$j++] = _YB; //#19230 + $j--; //#19230 + var _YC = $k[--$j]; //#19230 + $k[$j++] = _YC % 2; //#19230 + }, function() { + var _YD = $k[--$j]; //#19231 + var _YE = $k[--$j]; //#19231 + $k[$j++] = ((~~(_YD / 2)) + (~~(_YE / 3))) % 2; //#19231 + }, function() { + var _YF = $k[--$j]; //#19232 + var _YH = $k[--$j] * _YF; //#19232 + $k[$j++] = ($f((_YH % 2) + (_YH % 3))) % 2; //#19232 + }, function() { + var _YI = $k[--$j]; //#19233 + var _YJ = $k[--$j]; //#19233 + $k[$j++] = ($f(((_YJ * _YI) % 3) + ($f(_YJ + _YI) % 2))) % 2; //#19233 + }]); //#19233 + var _YN = $a([function() { + var _YL = $k[--$j]; //#19236 + var _YM = $k[--$j]; //#19236 + $k[$j++] = ((~~(_YL / 2)) + (~~(_YM / 3))) % 2; //#19236 + }]); //#19236 + var _YO = new Map([ + ["full", _Y9], + ["micro", _YK], + ["rmqr", _YN] + ]); //#19236 + $1.maskfuncs = $get(_YO, $1.format); //#19238 + if ($1.mask != -1) { //#19242 + $1.maskfuncs = $a([$get($1.maskfuncs, $1.mask - 1)]); //#19240 + $1.bestmaskval = $1.mask - 1; //#19241 + } //#19241 + $1.masks = $a($1.maskfuncs.length); //#19243 + for (var _Yb = 0, _Ya = $1.masks.length - 1; _Yb <= _Ya; _Yb += 1) { //#19257 + $1.m = _Yb; //#19245 + $1.mask = $a($1.rows * $1.cols); //#19246 + for (var _Yh = 0, _Yg = $f($1.rows - 1); _Yh <= _Yg; _Yh += 1) { //#19255 + $1.j = _Yh; //#19248 + for (var _Yk = 0, _Yj = $f($1.cols - 1); _Yk <= _Yj; _Yk += 1) { //#19254 + $1.i = _Yk; //#19250 + $k[$j++] = $1.i; //#19251 + $k[$j++] = $1.j; //#19251 + if ($get($1.maskfuncs, $1.m)() === true) { break; - } - if ($1.mode == $1.B) { - $k[$j++] = $a([ 9, 12, 13, $1.e, $1.e, 4, 5 ]); - $1.KbeforeB(); - if ($k[--$j]) { - $k[$j++] = $1.K; - break; - } - $k[$j++] = $a([ 9, 10, 12, $1.e, $1.e, 4, 5 ]); - $1.KbeforeA(); - if ($k[--$j]) { - $k[$j++] = $1.K; - break; - } - $k[$j++] = $a([ 9, 10, 11, $1.e, $1.e, 5, 6 ]); - $1.KbeforeN(); - if ($k[--$j]) { - $k[$j++] = $1.K; - break; - } - $k[$j++] = $a([ 4, 5, 6, $1.e, $1.e, 2, 3 ]); - $1.KbeforeE(); - if ($k[--$j]) { - $k[$j++] = $1.K; - break; - } - $k[$j++] = $a([ 11, 12, 14, $1.e, $1.e, 5, 7 ]); - $1.AbeforeK(); - if ($k[--$j]) { - $k[$j++] = $1.A; - break; - } - $k[$j++] = $a([ 11, 15, 16, $1.e, $1.e, 6, 7 ]); - $1.AbeforeB(); - if ($k[--$j]) { - $k[$j++] = $1.A; - break; - } - $k[$j++] = $a([ 12, 13, 15, $1.e, $1.e, 6, 8 ]); - $1.AbeforeN(); - if ($k[--$j]) { - $k[$j++] = $1.A; - break; - } - $k[$j++] = $a([ 6, 7, 8, $1.e, $1.e, 3, 4 ]); - $1.AbeforeE(); - if ($k[--$j]) { - $k[$j++] = $1.A; - break; - } - $k[$j++] = $a([ 6, 7, 8, $1.e, $1.e, 3, 4 ]); - $1.NbeforeK(); - if ($k[--$j]) { - $k[$j++] = $1.N; - break; - } - $k[$j++] = $a([ 6, 8, 9, $1.e, $1.e, 3, 4 ]); - $1.NbeforeB(); - if ($k[--$j]) { - $k[$j++] = $1.N; - break; - } - $k[$j++] = $a([ 6, 7, 8, $1.e, $1.e, 3, 4 ]); - $1.NbeforeA(); - if ($k[--$j]) { - $k[$j++] = $1.N; - break; - } - $k[$j++] = $a([ 3, 4, 5, $1.e, $1.e, 2, 3 ]); - $1.NbeforeE(); - if ($k[--$j]) { - $k[$j++] = $1.N; - break; - } - $k[$j++] = $1.B; + } //#19251 + var _Yq = $k[--$j]; //#19251 + $k[$j++] = _Yq == 0; //#19252 + $k[$j++] = $1.pixs; //#19252 + $k[$j++] = $1.i; //#19252 + $k[$j++] = $1.j; //#19252 + $1.qmv(); //#19252 + var _Yu = $k[--$j]; //#19252 + var _Yw = $get($k[--$j], _Yu); //#19252 + var _Yx = $k[--$j]; //#19252 + var _Yy = (_Yx && (_Yw == -1)) ? 1 : 0; //#19252 + $k[$j++] = _Yy; //#19253 + $k[$j++] = $1.mask; //#19253 + $k[$j++] = $1.i; //#19253 + $k[$j++] = $1.j; //#19253 + $1.qmv(); //#19253 + var _Z2 = $k[--$j]; //#19253 + var _Z3 = $k[--$j]; //#19253 + $put(_Z3, _Z2, $k[--$j]); //#19253 + } //#19253 + } //#19253 + $put($1.masks, $1.m, $1.mask); //#19256 + } //#19256 + var _ZA = $ne($1.format, "rmqr") ? 1 : 2; //#19260 + $1.posx = $f($1.cols - _ZA); //#19260 + $1.posy = $f($1.rows - 1); //#19261 + $1.dir = -1; //#19262 + $1.col = 1; //#19263 + $1.num = 0; //#19264 + for (;;) { //#19287 + if ($1.posx < 0) { //#19266 + break; //#19266 + } //#19266 + $k[$j++] = $1.pixs; //#19267 + $k[$j++] = $1.posx; //#19267 + $k[$j++] = $1.posy; //#19267 + $1.qmv(); //#19267 + var _ZG = $k[--$j]; //#19267 + if ($get($k[--$j], _ZG) == -1) { //#19271 + var _ZL = $get($1.cws, ~~($1.num / 8)); //#19268 + var _ZN = -(7 - ($1.num % 8)); //#19268 + $k[$j++] = ((_ZN < 0 ? _ZL >>> -_ZN : _ZL << _ZN)) & 1; //#19269 + $k[$j++] = $1.pixs; //#19269 + $k[$j++] = $1.posx; //#19269 + $k[$j++] = $1.posy; //#19269 + $1.qmv(); //#19269 + var _ZR = $k[--$j]; //#19269 + var _ZS = $k[--$j]; //#19269 + $put(_ZS, _ZR, $k[--$j]); //#19269 + $1.num = $1.num + 1; //#19270 + } //#19270 + if ($1.col == 1) { //#19284 + $1.col = 0; //#19273 + $1.posx = $f($1.posx - 1); //#19274 + } else { //#19284 + $1.col = 1; //#19276 + $1.posx = $f($1.posx + 1); //#19277 + $1.posy = $f($1.posy + $1.dir); //#19278 + if (($1.posy < 0) || ($1.posy >= $1.rows)) { //#19285 + $1.dir = $1.dir * -1; //#19280 + $1.posy = $f($1.posy + $1.dir); //#19281 + $1.posx = $f($1.posx - 2); //#19282 + if ($eq($1.format, "full") && ($1.posx == 6)) { //#19284 + $1.posx = $f($1.posx - 1); //#19284 + } //#19284 + } //#19284 + } //#19284 + } //#19284 + $1.evalfulln1n3 = function() { + $1.scrle = $k[--$j]; //#19291 + $k[$j++] = 'scr1'; //#19293 + $k[$j++] = 0; //#19293 + $forall($1.scrle, function() { //#19293 + var _Zm = $k[--$j]; //#19293 + $k[$j++] = _Zm; //#19293 + if (_Zm >= 5) { //#19293 + var _Zn = $k[--$j]; //#19293 + var _Zp = $f($f($k[--$j] + _Zn) - 2); //#19293 + $k[$j++] = _Zp; //#19293 + $k[$j++] = _Zp; //#19293 + } //#19293 + $j--; //#19293 + }); //#19293 + var _Zq = $k[--$j]; //#19293 + $1[$k[--$j]] = _Zq; //#19293 + $1.scr3 = 0; //#19295 + for (var _Zu = 3, _Zt = $1.scrle.length - 3; _Zu <= _Zt; _Zu += 2) { //#19310 + $1.j = _Zu; //#19297 + if (($get($1.scrle, $1.j) % 3) == 0) { //#19309 + $1.fact = ~~($get($1.scrle, $1.j) / 3); //#19299 + var _a3 = $geti($1.scrle, $1.j - 2, 5); //#19300 + for (var _a4 = 0, _a5 = _a3.length; _a4 < _a5; _a4++) { //#19300 + $k[$j++] = $get(_a3, _a4) == $1.fact; //#19300 + } //#19300 + var _a8 = $k[--$j]; //#19300 + var _a9 = $k[--$j]; //#19300 + var _aA = $k[--$j]; //#19300 + $k[$j++] = $an(_a9, _a8); //#19300 + $k[$j++] = _aA; //#19300 + $j--; //#19300 + var _aB = $k[--$j]; //#19300 + var _aC = $k[--$j]; //#19300 + var _aD = $k[--$j]; //#19300 + if (_aD && (_aC && _aB)) { //#19308 + if (($1.j == 3) || (($1.j + 4) >= $1.scrle.length)) { //#19305 + $1.scr3 = $1.scr3 + 40; //#19302 + } else { //#19305 + if (($get($1.scrle, $1.j - 3) >= 4) || ($get($1.scrle, $1.j + 3) >= 4)) { //#19306 + $1.scr3 = $1.scr3 + 40; //#19305 + } //#19305 + } //#19305 + } //#19305 + } //#19305 + } //#19305 + $k[$j++] = $1.scr1; //#19311 + $k[$j++] = $1.scr3; //#19311 + }; //#19312 + $1.evalfull = function() { + $1.sym = $k[--$j]; //#19316 + $1.n1 = 0; //#19318 + $1.n2 = 0; //#19318 + $1.n3 = 0; //#19318 + $1.rle = $a($f($1.cols + 1)); //#19319 + $1.lastpairs = $a($1.cols); //#19320 + $1.thispairs = $a($1.cols); //#19321 + $1.colsadd1 = $f($1.cols + 1); //#19322 + for (var _ab = 0, _aa = $f($1.cols - 1); _ab <= _aa; _ab += 1) { //#19361 + $1.i = _ab; //#19324 + $k[$j++] = Infinity; //#19327 + var _ad = $1.cols; //#19328 + $k[$j++] = 0; //#19330 + $k[$j++] = 0; //#19330 + for (var _af = $1.i, _ag = _ad, _ae = $f((_ad * _ad) - 1); _ag < 0 ? _af >= _ae : _af <= _ae; _af += _ag) { //#19330 + var _ai = $get($1.sym, _af); //#19329 + var _aj = $k[--$j]; //#19329 + $k[$j++] = _ai; //#19329 + if ($eq(_aj, _ai)) { //#19329 + var _ak = $k[--$j]; //#19329 + var _al = $k[--$j]; //#19329 + $k[$j++] = $f(_al + 1); //#19329 + $k[$j++] = _ak; //#19329 + } else { //#19329 + var _am = $k[--$j]; //#19329 + $k[$j++] = 1; //#19329 + $k[$j++] = _am; //#19329 + } //#19329 + } //#19329 + $j--; //#19331 + var _ao = $counttomark() + 2; //#19332 + $astore($geti($1.rle, 0, _ao - 2)); //#19332 + $1.evalfulln1n3(); //#19333 + $1.n3 = $f($k[--$j] + $1.n3); //#19333 + $1.n1 = $f($k[--$j] + $1.n1); //#19333 + $j--; //#19334 + $1.symrow = $geti($1.sym, $1.i * $1.cols, $1.cols); //#19337 + $k[$j++] = Infinity; //#19338 + var _az = $1.symrow; //#19339 + $k[$j++] = 0; //#19341 + $k[$j++] = 0; //#19341 + for (var _b0 = 0, _b1 = _az.length; _b0 < _b1; _b0++) { //#19341 + var _b2 = $get(_az, _b0); //#19341 + var _b3 = $k[--$j]; //#19340 + $k[$j++] = _b2; //#19340 + if ($eq(_b3, _b2)) { //#19340 + var _b4 = $k[--$j]; //#19340 + var _b5 = $k[--$j]; //#19340 + $k[$j++] = $f(_b5 + 1); //#19340 + $k[$j++] = _b4; //#19340 + } else { //#19340 + var _b6 = $k[--$j]; //#19340 + $k[$j++] = 1; //#19340 + $k[$j++] = _b6; //#19340 + } //#19340 + } //#19340 + $j--; //#19342 + var _b8 = $counttomark() + 2; //#19343 + $astore($geti($1.rle, 0, _b8 - 2)); //#19343 + $1.evalfulln1n3(); //#19344 + $1.n3 = $f($k[--$j] + $1.n3); //#19344 + $1.n1 = $f($k[--$j] + $1.n1); //#19344 + $j--; //#19345 + var _bE = $1.thispairs; //#19348 + $1.thispairs = $1.lastpairs; //#19348 + $1.lastpairs = _bE; //#19348 + var _bI = ($get($1.symrow, 0) == 1) ? 0 : 1; //#19349 + var _bJ = $1.symrow; //#19350 + $k[$j++] = _bI; //#19350 + for (var _bK = 0, _bL = _bJ.length; _bK < _bL; _bK++) { //#19350 + var _bM = $get(_bJ, _bK); //#19350 + var _bN = $k[--$j]; //#19350 + $k[$j++] = $f(_bN + _bM); //#19350 + $k[$j++] = _bM; //#19350 + } //#19350 + $j--; //#19351 + $astore($1.thispairs); //#19352 + $j--; //#19352 + if ($1.i > 0) { //#19359 + $k[$j++] = Infinity; //#19354 + $aload($1.lastpairs); //#19355 + $aload($1.thispairs); //#19355 + $k[$j++] = $1.n2; //#19356 + for (var _bU = 0, _bV = $1.cols; _bU < _bV; _bU++) { //#19356 + var _bW = $k[--$j]; //#19356 + var _bX = $k[--$j]; //#19356 + $k[$j++] = _bW; //#19356 + $k[$j++] = _bX; //#19356 + var _bZ = $k[$j - 1 - $1.colsadd1]; //#19356 + if (($f($k[--$j] + _bZ) & 3) == 0) { //#19356 + var _bb = $k[--$j]; //#19356 + $k[$j++] = $f(_bb + 3); //#19356 + } //#19356 + } //#19356 + $1.n2 = $k[--$j]; //#19357 + $cleartomark(); //#19358 + } //#19358 + } //#19358 + $k[$j++] = 'dark'; //#19364 + $k[$j++] = 0; //#19364 + $forall($1.sym, function() { //#19364 + var _be = $k[--$j]; //#19364 + var _bf = $k[--$j]; //#19364 + $k[$j++] = $f(_bf + _be); //#19364 + }); //#19364 + var _bg = $k[--$j]; //#19364 + $1[$k[--$j]] = _bg; //#19364 + var _bj = $1.cols; //#19365 + $1.n4 = (~~((Math.abs($f((($1.dark * 100) / (_bj * _bj)) - 50))) / 5)) * 10; //#19365 + $k[$j++] = $f(($f($f($1.n1 + $1.n2) + $1.n3)) + $1.n4); //#19367 + }; //#19368 + $1.evalmicro = function() { + $1.sym = $k[--$j]; //#19372 + $1.dkrhs = 0; //#19373 + $1.dkbot = 0; //#19373 + for (var _br = 1, _bq = $f($1.cols - 1); _br <= _bq; _br += 1) { //#19378 + $1.i = _br; //#19375 + $k[$j++] = 'dkrhs'; //#19376 + $k[$j++] = $1.dkrhs; //#19376 + $k[$j++] = $1.sym; //#19376 + $k[$j++] = $f($1.cols - 1); //#19376 + $k[$j++] = $1.i; //#19376 + $1.qmv(); //#19376 + var _bw = $k[--$j]; //#19376 + var _by = $get($k[--$j], _bw); //#19376 + var _bz = $k[--$j]; //#19376 + $1[$k[--$j]] = $f(_bz + _by); //#19376 + $k[$j++] = 'dkbot'; //#19377 + $k[$j++] = $1.dkbot; //#19377 + $k[$j++] = $1.sym; //#19377 + $k[$j++] = $1.i; //#19377 + $k[$j++] = $f($1.cols - 1); //#19377 + $1.qmv(); //#19377 + var _c5 = $k[--$j]; //#19377 + var _c7 = $get($k[--$j], _c5); //#19377 + var _c8 = $k[--$j]; //#19377 + $1[$k[--$j]] = $f(_c8 + _c7); //#19377 + } //#19377 + if ($1.dkrhs <= $1.dkbot) { //#19382 + $k[$j++] = -(($1.dkrhs * 16) + $1.dkbot); //#19380 + } else { //#19382 + $k[$j++] = -(($1.dkbot * 16) + $1.dkrhs); //#19382 + } //#19382 + }; //#19384 + $1.bestscore = 999999999; //#19387 + for (var _cI = 0, _cH = $1.masks.length - 1; _cI <= _cH; _cI += 1) { //#19409 + $1.m = _cI; //#19389 + $1.masksym = $a($1.rows * $1.cols); //#19390 + for (var _cP = 0, _cO = $f(($1.rows * $1.cols) - 1); _cP <= _cO; _cP += 1) { //#19394 + $1.i = _cP; //#19392 + $put($1.masksym, $1.i, $xo($get($1.pixs, $1.i), $get($get($1.masks, $1.m), $1.i))); //#19393 + } //#19393 + if ($1.masks.length != 1) { //#19407 + if ($eq($1.format, "full")) { //#19399 + $k[$j++] = $1.masksym; //#19397 + $1.evalfull(); //#19397 + $1.score = $k[--$j]; //#19397 + } else { //#19399 + $k[$j++] = $1.masksym; //#19399 + $1.evalmicro(); //#19399 + $1.score = $k[--$j]; //#19399 + } //#19399 + if ($1.score < $1.bestscore) { //#19405 + $1.bestsym = $1.masksym; //#19402 + $1.bestmaskval = $1.m; //#19403 + $1.bestscore = $1.score; //#19404 + } //#19404 + } else { //#19407 + $1.bestsym = $1.masksym; //#19407 + } //#19407 + } //#19407 + $1.pixs = $1.bestsym; //#19410 + if ($eq($1.format, "full")) { //#19415 + $k[$j++] = $1.pixs; //#19414 + $k[$j++] = 8; //#19414 + $k[$j++] = $f($1.cols - 8); //#19414 + $1.qmv(); //#19414 + var _cq = $k[--$j]; //#19414 + $put($k[--$j], _cq, 1); //#19414 + } //#19414 + if ($eq($1.format, "full")) { //#19433 + $1.fmtvals = $a([21522, 20773, 24188, 23371, 17913, 16590, 20375, 19104, 30660, 29427, 32170, 30877, 26159, 25368, 27713, 26998, 5769, 5054, 7399, 6608, 1890, 597, 3340, 2107, 13663, 12392, 16177, 14854, 9396, 8579, 11994, 11245]); //#19424 + $k[$j++] = 'ecid'; //#19425 + $search("MLHQ", $1.eclevel); //#19425 + $j--; //#19425 + var _cv = $k[--$j]; //#19425 + var _cw = $k[--$j]; //#19425 + $k[$j++] = _cv.length; //#19425 + $k[$j++] = _cw; //#19425 + $j--; //#19425 + var _cx = $k[--$j]; //#19425 + var _cy = $k[--$j]; //#19425 + $k[$j++] = _cx; //#19425 + $k[$j++] = _cy; //#19425 + $j--; //#19425 + var _cz = $k[--$j]; //#19425 + $1[$k[--$j]] = _cz; //#19425 + $1.fmtval = $get($1.fmtvals, ($1.ecid << 3) + $1.bestmaskval); //#19426 + for (var _d7 = 0, _d6 = $1.formatmap.length - 1; _d7 <= _d6; _d7 += 1) { //#19432 + $1.i = _d7; //#19428 + $forall($get($1.formatmap, $1.i), function() { //#19431 + var _dC = $k[--$j]; //#19430 + $k[$j++] = $1.pixs; //#19430 + $aload(_dC); //#19430 + $1.qmv(); //#19430 + var _dD = $1.fmtval; //#19430 + var _dF = -(14 - $1.i); //#19430 + var _dG = $k[--$j]; //#19430 + $put($k[--$j], _dG, ((_dF < 0 ? _dD >>> -_dF : _dD << _dF)) & 1); //#19430 + }); //#19430 + } //#19430 + } //#19430 + if ($eq($1.format, "micro")) { //#19447 + $1.fmtvals = $a([17477, 16754, 20011, 19228, 21934, 20633, 24512, 23287, 26515, 25252, 28157, 26826, 30328, 29519, 31766, 31009, 1758, 1001, 3248, 2439, 5941, 4610, 7515, 6252, 9480, 8255, 12134, 10833, 13539, 12756, 16013, 15290]); //#19440 + $1.symid = $get($get($a([$a([0]), $a([1, 2]), $a([3, 4]), $a([5, 6, 7])]), ~~($f($1.cols - 11) / 2)), $1.eclval); //#19441 + $1.fmtval = $get($1.fmtvals, ($1.symid << 2) + $1.bestmaskval); //#19442 + for (var _dZ = 0, _dY = $1.formatmap.length - 1; _dZ <= _dY; _dZ += 1) { //#19446 + $1.i = _dZ; //#19444 + $k[$j++] = $1.pixs; //#19445 + $aload($get($get($1.formatmap, $1.i), 0)); //#19445 + $1.qmv(); //#19445 + var _df = $1.fmtval; //#19445 + var _dh = -(14 - $1.i); //#19445 + var _di = $k[--$j]; //#19445 + $put($k[--$j], _di, ((_dh < 0 ? _df >>> -_dh : _df << _dh)) & 1); //#19445 + } //#19445 + } //#19445 + if ($eq($1.format, "rmqr")) { //#19477 + $1.fmtvals1 = $a([129714, 124311, 121821, 115960, 112748, 108361, 104707, 99878, 98062, 90155, 89697, 82244, 81360, 74485, 72895, 66458, 61898, 61167, 53413, 53120, 45844, 44081, 37499, 36190, 29814, 27475, 21785, 19004, 13992, 10637, 6087, 2274, 258919, 257090, 250376, 249133, 242105, 241308, 233686, 233459, 227035, 223742, 219060, 215185, 209925, 207648, 202090, 199247, 194591, 190266, 186736, 181845, 178881, 173540, 170926, 165003, 163235, 156294, 154828, 148457, 147325, 139352, 138770, 131383]); //#19458 + $1.fmtvals2 = $a([133755, 136542, 142100, 144433, 149669, 153472, 158154, 161519, 167879, 168162, 175784, 176525, 183577, 184892, 191606, 193363, 196867, 204326, 204908, 212809, 213981, 220408, 221874, 228759, 230591, 236442, 239056, 244469, 247393, 252228, 255758, 260139, 942, 7307, 8897, 15844, 16752, 24149, 24607, 32570, 34322, 39223, 42877, 47192, 50380, 56297, 58787, 64134, 67798, 71667, 76217, 79516, 84488, 87341, 93031, 95298, 101738, 102991, 109573, 111392, 118708, 118929, 126683, 127486]); //#19468 + $k[$j++] = 'fmtvalu'; //#19469 + $search("MH", $1.eclevel); //#19469 + $j--; //#19469 + var _do = $k[--$j]; //#19469 + var _dp = $k[--$j]; //#19469 + $k[$j++] = _do.length; //#19469 + $k[$j++] = _dp; //#19469 + $j--; //#19469 + var _dq = $k[--$j]; //#19469 + var _dr = $k[--$j]; //#19469 + $k[$j++] = _dq; //#19469 + $k[$j++] = _dr; //#19469 + $j--; //#19469 + var _ds = $k[--$j]; //#19469 + $1[$k[--$j]] = (_ds << 5) + $1.verind; //#19469 + $1.fmtval1 = $get($1.fmtvals1, $1.fmtvalu); //#19470 + $1.fmtval2 = $get($1.fmtvals2, $1.fmtvalu); //#19471 + for (var _e3 = 0, _e2 = $1.formatmap.length - 1; _e3 <= _e2; _e3 += 1) { //#19476 + $1.i = _e3; //#19473 + $k[$j++] = $1.pixs; //#19474 + $aload($get($get($1.formatmap, $1.i), 0)); //#19474 + $1.qmv(); //#19474 + var _e9 = $1.fmtval1; //#19474 + var _eB = -(17 - $1.i); //#19474 + var _eC = $k[--$j]; //#19474 + $put($k[--$j], _eC, ((_eB < 0 ? _e9 >>> -_eB : _e9 << _eB)) & 1); //#19474 + $k[$j++] = $1.pixs; //#19475 + $aload($get($get($1.formatmap, $1.i), 1)); //#19475 + $1.qmv(); //#19475 + var _eJ = $1.fmtval2; //#19475 + var _eL = -(17 - $1.i); //#19475 + var _eM = $k[--$j]; //#19475 + $put($k[--$j], _eM, ((_eL < 0 ? _eJ >>> -_eL : _eJ << _eL)) & 1); //#19475 + } //#19475 + } //#19475 + if ($eq($1.format, "full") && ($1.cols >= 45)) { //#19495 + $1.vervals = $a([31892, 34236, 39577, 42195, 48118, 51042, 55367, 58893, 63784, 68472, 70749, 76311, 79154, 84390, 87683, 92361, 96236, 102084, 102881, 110507, 110734, 117786, 119615, 126325, 127568, 133589, 136957, 141498, 145311, 150283, 152622, 158308, 161089, 167017]); //#19487 + $1.verval = $get($1.vervals, (~~($f($1.cols - 17) / 4)) - 7); //#19488 + for (var _eW = 0, _eV = $1.versionmap.length - 1; _eW <= _eV; _eW += 1) { //#19494 + $1.i = _eW; //#19490 + $forall($get($1.versionmap, $1.i), function() { //#19493 + var _eb = $k[--$j]; //#19492 + $k[$j++] = $1.pixs; //#19492 + $forall(_eb); //#19492 + $1.qmv(); //#19492 + var _ec = $1.verval; //#19492 + var _ee = -(17 - $1.i); //#19492 + var _ef = $k[--$j]; //#19492 + $put($k[--$j], _ef, ((_ee < 0 ? _ec >>> -_ee : _ec << _ee)) & 1); //#19492 + }); //#19492 + } //#19492 + } //#19492 + var _en = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", $1.cols], + ["pixy", $1.rows], + ["height", ($1.rows * 2) / 72], + ["width", ($1.cols * 2) / 72], + ["opt", $1.options] + ]); //#19505 + $k[$j++] = _en; //#19508 + if (!$1.dontdraw) { //#19508 + $0.renmatrix(); //#19508 + } //#19508 + }; + $0.swissqrcode = function() { + var $1 = {}; //#19539 + $1.options = $k[--$j]; //#19541 + $1.barcode = $k[--$j]; //#19542 + $1.dontdraw = false; //#19544 + $1.parse = false; //#19546 + $forall($1.options, function() { //#19557 + var _3 = $k[--$j]; //#19557 + $1[$k[--$j]] = _3; //#19557 + }); //#19557 + var _6 = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#19563 + $1.fncvals = _6; //#19564 + $k[$j++] = 'barcode'; //#19565 + $k[$j++] = $1.barcode; //#19565 + $k[$j++] = $1.fncvals; //#19565 + $0.parseinput(); //#19565 + var _9 = $k[--$j]; //#19565 + $1[$k[--$j]] = _9; //#19565 + $1.barlen = $1.barcode.length; //#19566 + delete $1.options["parse"]; //#19567 + if ($1.barcode.length > 997) { //#19572 + $k[$j++] = 'bwipp.swissqrcodeBadLength'; //#19571 + $k[$j++] = "Swiss QR Code input must not exceed 997 digits"; //#19571 + $0.raiseerror(); //#19571 + } //#19571 + $put($1.options, "dontdraw", true); //#19575 + $k[$j++] = 'args'; //#19576 + $k[$j++] = $1.barcode; //#19576 + $k[$j++] = $1.options; //#19576 + $0.qrcode(); //#19576 + var _H = $k[--$j]; //#19576 + $1[$k[--$j]] = _H; //#19576 + $put($1.args, "opt", $1.options); //#19578 + $k[$j++] = $1.args; //#19647 + if (!$1.dontdraw) { //#19647 + $$.save(); //#19592 + var _N = $$.currpos(); //#19593 + $$.translate(_N.x, _N.y); //#19593 + var _O = 72 / 25.4; //#19594 + $$.scale(_O, _O); //#19594 + $$.save(); //#19597 + $$.newpath(); //#19598 + $$.moveto(0, 0); //#19599 + $$.lineto(46, 0); //#19600 + $$.lineto(46, 46); //#19601 + $$.lineto(0, 46); //#19602 + $$.closepath(); //#19603 + $$.moveto(19.5, 19.5); //#19604 + $$.lineto(19.5, 26.5); //#19605 + $$.lineto(26.5, 26.5); //#19606 + $$.lineto(26.5, 19.5); //#19607 + $$.closepath(); //#19608 + $$.clip(); //#19609 + $$.save(); //#19612 + $$.moveto(0, 0); //#19613 + var _R = (46 / $get($1.args, "pixx")) / 2; //#19614 + $$.scale(_R, _R); //#19614 + $0.renmatrix(); //#19615 + $$.restore(); //#19616 + $$.restore(); //#19618 + $$.translate(19.5, 19.5); //#19621 + var _S = 7 / 83; //#19622 + $$.scale(_S, _S); //#19622 + $$.newpath(); //#19624 + $$.moveto(6, 6); //#19625 + $$.lineto(6, 77); //#19626 + $$.lineto(77, 77); //#19627 + $$.lineto(77, 6); //#19628 + $$.closepath(); //#19629 + $$.moveto(49, 18); //#19630 + $$.lineto(49, 34); //#19631 + $$.lineto(65, 34); //#19632 + $$.lineto(65, 49); //#19633 + $$.lineto(49, 49); //#19634 + $$.lineto(49, 65); //#19635 + $$.lineto(34, 65); //#19636 + $$.lineto(34, 49); //#19637 + $$.lineto(18, 49); //#19638 + $$.lineto(18, 34); //#19639 + $$.lineto(34, 34); //#19640 + $$.lineto(34, 18); //#19641 + $$.closepath(); //#19642 + $$.setrgbcolor(0, 0, 0); //#19643 + $$.fill(); //#19643 + $$.restore(); //#19645 + } //#19645 + }; + $0.microqrcode = function() { + var $1 = {}; //#19677 + $1.options = $k[--$j]; //#19679 + $1.barcode = $k[--$j]; //#19680 + $1.dontdraw = false; //#19682 + $forall($1.options, function() { //#19693 + var _3 = $k[--$j]; //#19693 + $1[$k[--$j]] = _3; //#19693 + }); //#19693 + $put($1.options, "dontdraw", true); //#19696 + $put($1.options, "format", "micro"); //#19697 + $k[$j++] = 'args'; //#19699 + $k[$j++] = $1.barcode; //#19699 + $k[$j++] = $1.options; //#19699 + $0.qrcode(); //#19699 + var _9 = $k[--$j]; //#19699 + $1[$k[--$j]] = _9; //#19699 + $put($1.args, "opt", $1.options); //#19701 + $k[$j++] = $1.args; //#19704 + if (!$1.dontdraw) { //#19704 + $0.renmatrix(); //#19704 + } //#19704 + }; + $0.rectangularmicroqrcode = function() { + var $1 = {}; //#19734 + $1.options = $k[--$j]; //#19736 + $1.barcode = $k[--$j]; //#19737 + $1.dontdraw = false; //#19739 + $forall($1.options, function() { //#19750 + var _3 = $k[--$j]; //#19750 + $1[$k[--$j]] = _3; //#19750 + }); //#19750 + $put($1.options, "dontdraw", true); //#19753 + $put($1.options, "format", "rmqr"); //#19754 + $k[$j++] = 'args'; //#19756 + $k[$j++] = $1.barcode; //#19756 + $k[$j++] = $1.options; //#19756 + $0.qrcode(); //#19756 + var _9 = $k[--$j]; //#19756 + $1[$k[--$j]] = _9; //#19756 + $put($1.args, "opt", $1.options); //#19758 + $k[$j++] = $1.args; //#19761 + if (!$1.dontdraw) { //#19761 + $0.renmatrix(); //#19761 + } //#19761 + }; + $0.maxicode = function() { + var $1 = {}; //#19791 + $1.options = $k[--$j]; //#19793 + $1.barcode = $k[--$j]; //#19794 + $1.dontdraw = false; //#19796 + $1.mode = -1; //#19797 + $1.sam = -1; //#19798 + $1.parse = false; //#19799 + $1.parsefnc = false; //#19800 + $forall($1.options, function() { //#19811 + var _3 = $k[--$j]; //#19811 + $1[$k[--$j]] = _3; //#19811 + }); //#19811 + $1.mode = ~~$1.mode; //#19813 + $1.sam = ~~$1.sam; //#19814 + var _9 = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["eci", true] + ]); //#19820 + $1.fncvals = _9; //#19822 + $k[$j++] = 'msg'; //#19823 + $k[$j++] = $1.barcode; //#19823 + $k[$j++] = $1.fncvals; //#19823 + $0.parseinput(); //#19823 + var _C = $k[--$j]; //#19823 + $1[$k[--$j]] = _C; //#19823 + $1.msglen = $1.msg.length; //#19824 + if (($1.mode == 2) || ($1.mode == 3)) { //#19863 + $1.barcode = $s($1.msglen); //#19830 + for (var _L = 0, _K = $1.msglen - 1; _L <= _K; _L += 1) { //#19836 + $1.i = _L; //#19832 + if ($get($1.msg, $1.i) > 0) { //#19835 + $put($1.barcode, $1.i, $get($1.msg, $1.i)); //#19834 + } //#19834 + } //#19834 + $1.barlen = $1.barcode.length; //#19837 + if ($eq($geti($1.barcode, 0, 7), "\x5b\x29\x3e\x1e\x30\x31\x1d")) { //#19844 + $1.fid = $geti($1.barcode, 0, 9); //#19841 + $1.barcode = $geti($1.barcode, 9, $1.barlen - 9); //#19842 + } else { //#19844 + $1.fid = ""; //#19844 + } //#19844 + $search($1.barcode, "\x1d"); //#19848 + $j--; //#19848 + $1.pcode = $k[--$j]; //#19848 + $j--; //#19849 + $search($k[--$j], "\x1d"); //#19849 + $j--; //#19849 + $1.ccode = $k[--$j]; //#19849 + $j--; //#19850 + $search($k[--$j], "\x1d"); //#19850 + $j--; //#19850 + $1.scode = $k[--$j]; //#19850 + $j--; //#19851 + $1.barcode = $k[--$j]; //#19851 + var _l = $s($1.barcode.length + $1.fid.length); //#19854 + $puti(_l, 0, $1.fid); //#19855 + $puti(_l, $1.fid.length, $1.barcode); //#19856 + $1.barcode = _l; //#19857 + $1.barlen = $1.barcode.length; //#19858 + $k[$j++] = Infinity; //#19860 + var _q = $1.barcode; //#19860 + for (var _r = 0, _s = _q.length; _r < _s; _r++) { //#19860 + $k[$j++] = $get(_q, _r); //#19860 + } //#19860 + $1.msg = $a(); //#19860 + $1.msglen = $1.msg.length; //#19861 + } //#19861 + $1.eci = -1; //#19866 + $1.pad = -2; //#19866 + $1.ns = -3; //#19866 + $1.la = -4; //#19867 + $1.lb = -5; //#19867 + $1.sa = -6; //#19868 + $1.sb = -7; //#19868 + $1.sc = -8; //#19868 + $1.sd = -9; //#19868 + $1.se = -10; //#19868 + $1.sa2 = -11; //#19869 + $1.sa3 = -12; //#19869 + $1.lkc = -13; //#19870 + $1.lkd = -14; //#19870 + $1.lke = -15; //#19870 + $1.pd2 = -16; //#19871 + $1.pd3 = -17; //#19871 + $1.charmaps = $a([$a([13, "`", 192, 224, 0]), $a(["A", "a", 193, 225, 1]), $a(["B", "b", 194, 226, 2]), $a(["C", "c", 195, 227, 3]), $a(["D", "d", 196, 228, 4]), $a(["E", "e", 197, 229, 5]), $a(["F", "f", 198, 230, 6]), $a(["G", "g", 199, 231, 7]), $a(["H", "h", 200, 232, 8]), $a(["I", "i", 201, 233, 9]), $a(["J", "j", 202, 234, 10]), $a(["K", "k", 203, 235, 11]), $a(["L", "l", 204, 236, 12]), $a(["M", "m", 205, 237, 13]), $a(["N", "n", 206, 238, 14]), $a(["O", "o", 207, 239, 15]), $a(["P", "p", 208, 240, 16]), $a(["Q", "q", 209, 241, 17]), $a(["R", "r", 210, 242, 18]), $a(["S", "s", 211, 243, 19]), $a(["T", "t", 212, 244, 20]), $a(["U", "u", 213, 245, 21]), $a(["V", "v", 214, 246, 22]), $a(["W", "w", 215, 247, 23]), $a(["X", "x", 216, 248, 24]), $a(["Y", "y", 217, 249, 25]), $a(["Z", "z", 218, 250, 26]), $a([$1.eci, $1.eci, $1.eci, $1.eci, $1.eci]), $a([28, 28, 28, 28, $1.pad]), $a([29, 29, 29, 29, $1.pad]), $a([30, 30, 30, 30, 27]), $a([$1.ns, $1.ns, $1.ns, $1.ns, $1.ns]), $a([" ", "{", 219, 251, 28]), $a([$1.pad, $1.pad, 220, 252, 29]), $a(["\"", "}", 221, 253, 30]), $a(["#", "~", 222, 254, 31]), $a(["$", 127, 223, 255, 159]), $a(["%", ";", 170, 161, 160]), $a(["&", "<", 172, 168, 162]), $a(["'", "=", 177, 171, 163]), $a([40, ">", 178, 175, 164]), $a([41, "?", 179, 176, 165]), $a(["*", "[", 181, 180, 166]), $a(["+", 92, 185, 183, 167]), $a([",", "]", 186, 184, 169]), $a(["-", "^", 188, 187, 173]), $a([".", "_", 189, 191, 174]), $a(["/", " ", 190, 138, 182]), $a(["0", ",", 128, 139, 149]), $a(["1", ".", 129, 140, 150]), $a(["2", "/", 130, 141, 151]), $a(["3", ":", 131, 142, 152]), $a(["4", "@", 132, 143, 153]), $a(["5", "!", 133, 144, 154]), $a(["6", "|", 134, 145, 155]), $a(["7", $1.pd2, 135, 146, 156]), $a(["8", $1.sa2, 136, 147, 157]), $a(["9", $1.sa3, 137, 148, 158]), $a([":", $1.pd3, $1.la, $1.la, $1.la]), $a([$1.sb, $1.sa, " ", " ", " "]), $a([$1.sc, $1.sc, $1.lkc, $1.sc, $1.sc]), $a([$1.sd, $1.sd, $1.sd, $1.lkd, $1.sd]), $a([$1.se, $1.se, $1.se, $1.se, $1.lke]), $a([$1.lb, $1.la, $1.lb, $1.lb, $1.lb])]); //#19940 + $1.charvals = $a([new Map, new Map, new Map, new Map, new Map]); //#19943 + for (var _2j = 0, _2i = $1.charmaps.length - 1; _2j <= _2i; _2j += 1) { //#19952 + $1.i = _2j; //#19945 + $1.encs = $get($1.charmaps, $1.i); //#19946 + for (var _2n = 0; _2n <= 4; _2n += 1) { //#19951 + $1.j = _2n; //#19948 + var _2q = $get($1.encs, $1.j); //#19949 + $k[$j++] = _2q; //#19949 + if ($eq($type(_2q), 'stringtype')) { //#19949 + var _2t = $get($k[--$j], 0); //#19949 + $k[$j++] = _2t; //#19949 + } //#19949 + $put($get($1.charvals, $1.j), $k[--$j], $1.i); //#19950 + } //#19950 + } //#19950 + $1.seta = $get($1.charvals, 0); //#19953 + $1.setb = $get($1.charvals, 1); //#19954 + $1.setc = $get($1.charvals, 2); //#19955 + $1.setd = $get($1.charvals, 3); //#19956 + $1.sete = $get($1.charvals, 4); //#19957 + $k[$j++] = Infinity; //#19960 + for (var _3A = 0, _3B = $1.msglen + 1; _3A < _3B; _3A++) { //#19960 + $k[$j++] = 0; //#19960 + } //#19960 + $1.nseq = $a(); //#19960 + for (var _3E = $1.msglen - 1; _3E >= 0; _3E -= 1) { //#19968 + $1.i = _3E; //#19962 + var _3H = $get($1.msg, $1.i); //#19963 + if ((_3H >= 48) && (_3H <= 57)) { //#19966 + $put($1.nseq, $1.i, $f($get($1.nseq, $1.i + 1) + 1)); //#19964 + } else { //#19966 + $put($1.nseq, $1.i, 0); //#19966 + } //#19966 + } //#19966 + $1.nseq = $geti($1.nseq, 0, $1.msglen); //#19969 + $1.prefixinset = function() { + $k[$j++] = 0; //#19976 + for (;;) { //#19976 + var _3S = $k[--$j]; //#19974 + var _3T = $k[--$j]; //#19974 + $k[$j++] = _3T; //#19974 + $k[$j++] = _3S; //#19974 + if (_3S >= _3T.length) { //#19974 + break; //#19974 + } //#19974 + var _3U = $k[--$j]; //#19975 + var _3V = $k[--$j]; //#19975 + var _3X = $k[--$j]; //#19975 + var _3Y = $get(_3X, $get(_3V, _3U)) !== undefined; //#19975 + $k[$j++] = _3X; //#19975 + $k[$j++] = _3V; //#19975 + $k[$j++] = _3U; //#19975 + if (_3Y) { //#19975 + var _3Z = $k[--$j]; //#19975 + $k[$j++] = $f(_3Z + 1); //#19975 + } else { //#19975 + break; //#19975 + } //#19975 + } //#19975 + var _3a = $k[--$j]; //#19977 + var _3b = $k[--$j]; //#19977 + $k[$j++] = _3a; //#19977 + $k[$j++] = _3b; //#19977 + $j--; //#19977 + var _3c = $k[--$j]; //#19977 + var _3d = $k[--$j]; //#19977 + $k[$j++] = _3c; //#19977 + $k[$j++] = _3d; //#19977 + $j--; //#19977 + }; //#19978 + $1.enc = function() { + var _3e = $k[--$j]; //#19981 + $put($1.out, $1.j, $get(_3e, $k[--$j])); //#19981 + $1.j = $1.j + 1; //#19982 + }; //#19983 + $1.out = $a(144); //#19985 + $1.i = 0; //#19986 + $1.j = 0; //#19986 + $1.cset = "seta"; //#19986 + for (;;) { //#20138 + if ($1.i == $1.msglen) { //#19995 + if ($ne($1.cset, "seta") && $ne($1.cset, "setb")) { //#19993 + $k[$j++] = $1.la; //#19991 + $k[$j++] = $1[$1.cset]; //#19991 + $1.enc(); //#19991 + $1.cset = "seta"; //#19992 + } //#19992 + break; //#19994 + } //#19994 + for (;;) { //#20137 + if ($get($1.msg, $1.i) <= -1000000) { //#20024 + $k[$j++] = $1.eci; //#19999 + $k[$j++] = $1[$1.cset]; //#19999 + $1.enc(); //#19999 + var _41 = $f((-$get($1.msg, $1.i)) - 1000000); //#20001 + $k[$j++] = _41; //#20019 + if (_41 <= 31) { //#20018 + var _42 = $k[--$j]; //#20002 + $k[$j++] = _42 & 63; //#20003 + $astore($a(1)); //#20003 + } else { //#20018 + var _44 = $k[--$j]; //#20004 + $k[$j++] = _44; //#20019 + if (_44 <= 1023) { //#20018 + var _45 = $k[--$j]; //#20005 + $k[$j++] = ((_45 >>> 6) & 31) | 32; //#20007 + $k[$j++] = _45 & 63; //#20007 + $astore($a(2)); //#20007 + } else { //#20018 + var _47 = $k[--$j]; //#20008 + $k[$j++] = _47; //#20019 + if (_47 <= 32767) { //#20018 + var _48 = $k[--$j]; //#20009 + $k[$j++] = ((_48 >>> 12) & 47) | 48; //#20012 + $k[$j++] = (_48 >>> 6) & 63; //#20012 + $k[$j++] = _48 & 63; //#20012 + $astore($a(3)); //#20012 + } else { //#20018 + var _4A = $k[--$j]; //#20014 + $k[$j++] = ((_4A >>> 18) & 55) | 56; //#20018 + $k[$j++] = (_4A >>> 12) & 63; //#20018 + $k[$j++] = (_4A >>> 6) & 63; //#20018 + $k[$j++] = _4A & 63; //#20018 + $astore($a(4)); //#20018 + } //#20018 + } //#20018 + } //#20018 + var _4C = $k[--$j]; //#20020 + $puti($1.out, $1.j, _4C); //#20020 + $1.j = _4C.length + $1.j; //#20021 + $1.i = $1.i + 1; //#20022 + break; //#20023 + } //#20023 + if ($get($1.nseq, $1.i) >= 9) { //#20035 + var _4M = $geti($1.msg, $1.i, 9); //#20028 + $k[$j++] = 0; //#20028 + for (var _4N = 0, _4O = _4M.length; _4N < _4O; _4N++) { //#20028 + var _4Q = $k[--$j]; //#20028 + $k[$j++] = ($f(_4Q + $f($get(_4M, _4N) - 48))) * 10; //#20028 + } //#20028 + var _4R = $k[--$j]; //#20028 + $k[$j++] = ~~(_4R / 10); //#20029 + for (var _4S = 0, _4T = 4; _4S < _4T; _4S++) { //#20029 + var _4U = $k[--$j]; //#20029 + $k[$j++] = _4U & 63; //#20029 + $k[$j++] = _4U >>> 6; //#20029 + } //#20029 + $k[$j++] = $get($1[$1.cset], $1.ns); //#20030 + for (var _4Z = 0; _4Z <= 10; _4Z += 2) { //#20030 + var _4a = $k[$j - 1 - _4Z]; //#20030 + $k[$j++] = _4a; //#20030 + } //#20030 + $astore($a(6)); //#20030 + var _4c = $k[--$j]; //#20030 + var _4d = $k[--$j]; //#20030 + var _4e = $k[--$j]; //#20030 + var _4f = $k[--$j]; //#20030 + var _4g = $k[--$j]; //#20030 + var _4h = $k[--$j]; //#20030 + var _4i = $k[--$j]; //#20030 + $k[$j++] = _4c; //#20030 + $k[$j++] = _4i; //#20030 + $k[$j++] = _4h; //#20030 + $k[$j++] = _4g; //#20030 + $k[$j++] = _4f; //#20030 + $k[$j++] = _4e; //#20030 + $k[$j++] = _4d; //#20030 + for (var _4j = 0, _4k = 6; _4j < _4k; _4j++) { //#20030 + $j--; //#20030 + } //#20030 + $puti($1.out, $1.j, $k[--$j]); //#20031 + $1.i = $1.i + 9; //#20032 + $1.j = $1.j + 6; //#20033 + break; //#20034 + } //#20034 + $1.char1 = $get($1.msg, $1.i); //#20038 + $k[$j++] = 'char2'; //#20039 + if (($1.i + 1) < $1.msglen) { //#20039 + $k[$j++] = $get($1.msg, $1.i + 1); //#20039 + } else { //#20039 + $k[$j++] = -99; //#20039 + } //#20039 + var _4y = $k[--$j]; //#20039 + $1[$k[--$j]] = _4y; //#20039 + $k[$j++] = 'char3'; //#20040 + if (($1.i + 2) < $1.msglen) { //#20040 + $k[$j++] = $get($1.msg, $1.i + 2); //#20040 + } else { //#20040 + $k[$j++] = -99; //#20040 + } //#20040 + var _55 = $k[--$j]; //#20040 + $1[$k[--$j]] = _55; //#20040 + var _5A = $get($1[$1.cset], $1.char1) !== undefined; //#20043 + if (_5A) { //#20047 + $k[$j++] = $1.char1; //#20044 + $k[$j++] = $1[$1.cset]; //#20044 + $1.enc(); //#20044 + $1.i = $1.i + 1; //#20045 + break; //#20046 + } //#20046 + var _5I = $get($1.setb, $1.char1) !== undefined; //#20050 + if ($eq($1.cset, "seta") && _5I) { //#20060 + var _5L = $get($1.setb, $1.char2) !== undefined; //#20051 + if (_5L) { //#20057 + $k[$j++] = $1.lb; //#20052 + $k[$j++] = $1.seta; //#20052 + $1.enc(); //#20052 + $1.cset = "setb"; //#20053 + } else { //#20057 + $k[$j++] = $1.sb; //#20055 + $k[$j++] = $1.seta; //#20055 + $1.enc(); //#20055 + $k[$j++] = $1.char1; //#20056 + $k[$j++] = $1.setb; //#20056 + $1.enc(); //#20056 + $1.i = $1.i + 1; //#20057 + } //#20057 + break; //#20059 + } //#20059 + var _5W = $get($1.seta, $1.char1) !== undefined; //#20063 + if ($eq($1.cset, "setb") && _5W) { //#20088 + var _5X = $1.seta; //#20064 + var _5Y = $1.msg; //#20064 + var _5Z = $1.i; //#20064 + var _5a = $1.msglen; //#20064 + var _5b = $1.i; //#20064 + var _5c = _5a - _5b; //#20064 + var _5d = 4; //#20064 + if (4 > (_5a - _5b)) { //#20064 + var _ = _5c; //#20064 + _5c = _5d; //#20064 + _5d = _; //#20064 + } //#20064 + $k[$j++] = 'p'; //#20064 + $k[$j++] = _5X; //#20064 + $k[$j++] = $geti(_5Y, _5Z, _5d); //#20064 + $1.prefixinset(); //#20064 + var _5f = $k[--$j]; //#20064 + $1[$k[--$j]] = _5f; //#20064 + if ($1.p == 1) { //#20069 + $k[$j++] = $1.sa; //#20066 + $k[$j++] = $1.setb; //#20066 + $1.enc(); //#20066 + $k[$j++] = $1.char1; //#20067 + $k[$j++] = $1.seta; //#20067 + $1.enc(); //#20067 + $1.i = $1.i + 1; //#20068 + } //#20068 + if ($1.p == 2) { //#20075 + $k[$j++] = $1.sa2; //#20071 + $k[$j++] = $1.setb; //#20071 + $1.enc(); //#20071 + $k[$j++] = $1.char1; //#20072 + $k[$j++] = $1.seta; //#20072 + $1.enc(); //#20072 + $k[$j++] = $1.char2; //#20073 + $k[$j++] = $1.seta; //#20073 + $1.enc(); //#20073 + $1.i = $1.i + 2; //#20074 + } //#20074 + if ($1.p == 3) { //#20082 + $k[$j++] = $1.sa3; //#20077 + $k[$j++] = $1.setb; //#20077 + $1.enc(); //#20077 + $k[$j++] = $1.char1; //#20078 + $k[$j++] = $1.seta; //#20078 + $1.enc(); //#20078 + $k[$j++] = $1.char2; //#20079 + $k[$j++] = $1.seta; //#20079 + $1.enc(); //#20079 + $k[$j++] = $1.char3; //#20080 + $k[$j++] = $1.seta; //#20080 + $1.enc(); //#20080 + $1.i = $1.i + 3; //#20081 + } //#20081 + if ($1.p >= 4) { //#20086 + $k[$j++] = $1.la; //#20084 + $k[$j++] = $1.setb; //#20084 + $1.enc(); //#20084 + $1.cset = "seta"; //#20085 + } //#20085 + break; //#20087 + } //#20087 + var _6A = $get($1.seta, $1.char1) !== undefined; //#20091 + if (_6A) { //#20095 + $k[$j++] = $1.la; //#20092 + $k[$j++] = $1[$1.cset]; //#20092 + $1.enc(); //#20092 + $1.cset = "seta"; //#20093 + break; //#20094 + } //#20094 + var _6G = $get($1.setb, $1.char1) !== undefined; //#20096 + if (_6G) { //#20100 + $k[$j++] = $1.lb; //#20097 + $k[$j++] = $1[$1.cset]; //#20097 + $1.enc(); //#20097 + $1.cset = "setb"; //#20098 + break; //#20099 + } //#20099 + var _6M = $get($1.setc, $1.char1) !== undefined; //#20103 + if (_6M) { //#20103 + $1.setx = "setc"; //#20103 + $1.sx = $1.sc; //#20103 + $1.lkx = $1.lkc; //#20103 + } //#20103 + var _6R = $get($1.setd, $1.char1) !== undefined; //#20104 + if (_6R) { //#20104 + $1.setx = "setd"; //#20104 + $1.sx = $1.sd; //#20104 + $1.lkx = $1.lkd; //#20104 + } //#20104 + var _6W = $get($1.sete, $1.char1) !== undefined; //#20105 + if (_6W) { //#20105 + $1.setx = "sete"; //#20105 + $1.sx = $1.se; //#20105 + $1.lkx = $1.lke; //#20105 + } //#20105 + var _6a = $1[$1.setx]; //#20108 + var _6b = $1.msg; //#20108 + var _6c = $1.i; //#20108 + var _6d = $1.msglen; //#20108 + var _6e = $1.i; //#20108 + var _6f = _6d - _6e; //#20108 + var _6g = 4; //#20108 + if (4 > (_6d - _6e)) { //#20108 + var _ = _6f; //#20108 + _6f = _6g; //#20108 + _6g = _; //#20108 + } //#20108 + $k[$j++] = 'p'; //#20108 + $k[$j++] = _6a; //#20108 + $k[$j++] = $geti(_6b, _6c, _6g); //#20108 + $1.prefixinset(); //#20108 + var _6i = $k[--$j]; //#20108 + $1[$k[--$j]] = _6i; //#20108 + if ($1.p == 1) { //#20113 + $k[$j++] = $1.sx; //#20110 + $k[$j++] = $1[$1.cset]; //#20110 + $1.enc(); //#20110 + $k[$j++] = $1.char1; //#20111 + $k[$j++] = $1[$1.setx]; //#20111 + $1.enc(); //#20111 + $1.i = $1.i + 1; //#20112 + } //#20112 + if ($1.p == 2) { //#20120 + $k[$j++] = $1.sx; //#20115 + $k[$j++] = $1[$1.cset]; //#20115 + $1.enc(); //#20115 + $k[$j++] = $1.char1; //#20116 + $k[$j++] = $1[$1.setx]; //#20116 + $1.enc(); //#20116 + $k[$j++] = $1.sx; //#20117 + $k[$j++] = $1[$1.cset]; //#20117 + $1.enc(); //#20117 + $k[$j++] = $1.char2; //#20118 + $k[$j++] = $1[$1.setx]; //#20118 + $1.enc(); //#20118 + $1.i = $1.i + 2; //#20119 + } //#20119 + if ($1.p == 3) { //#20129 + $k[$j++] = $1.sx; //#20122 + $k[$j++] = $1[$1.cset]; //#20122 + $1.enc(); //#20122 + $k[$j++] = $1.char1; //#20123 + $k[$j++] = $1[$1.setx]; //#20123 + $1.enc(); //#20123 + $k[$j++] = $1.sx; //#20124 + $k[$j++] = $1[$1.cset]; //#20124 + $1.enc(); //#20124 + $k[$j++] = $1.char2; //#20125 + $k[$j++] = $1[$1.setx]; //#20125 + $1.enc(); //#20125 + $k[$j++] = $1.sx; //#20126 + $k[$j++] = $1[$1.cset]; //#20126 + $1.enc(); //#20126 + $k[$j++] = $1.char3; //#20127 + $k[$j++] = $1[$1.setx]; //#20127 + $1.enc(); //#20127 + $1.i = $1.i + 3; //#20128 + } //#20128 + if ($1.p >= 4) { //#20134 + $k[$j++] = $1.sx; //#20131 + $k[$j++] = $1[$1.cset]; //#20131 + $1.enc(); //#20131 + $k[$j++] = $1.lkx; //#20132 + $k[$j++] = $1[$1.setx]; //#20132 + $1.enc(); //#20132 + $1.cset = $1.setx; //#20133 + } //#20133 + break; //#20136 + } //#20136 + } //#20136 + $1.encmsg = $geti($1.out, 0, $1.j); //#20139 + $1.padval = $get($1[$1.cset], $1.pad); //#20140 + $1.sami = $a([]); //#20143 + if ($1.sam != -1) { //#20148 + $1.sami = $a(2); //#20145 + $put($1.sami, 0, $get($1.seta, $1.pad)); //#20146 + $put($1.sami, 1, (((~~($1.sam / 10)) - 1) * 8) + (($1.sam % 10) - 1)); //#20147 + } //#20147 + $k[$j++] = Infinity; //#20149 + $aload($1.sami); //#20149 + $aload($1.encmsg); //#20149 + $1.encmsg = $a(); //#20149 + if (($1.mode == 2) || ($1.mode == 3)) { //#20204 + var _7v = $strcpy($s(4), "0000"); //#20155 + var _7y = $cvrs($s(4), ~~$1.mode, 2); //#20155 + $puti(_7v, 4 - _7y.length, _7y); //#20155 + $1.mdb = _7v; //#20155 + var _80 = $strcpy($s(10), "0000000000"); //#20156 + var _83 = $cvrs($s(10), ~~$z($1.ccode), 2); //#20156 + $puti(_80, 10 - _83.length, _83); //#20156 + $1.ccb = _80; //#20156 + var _85 = $strcpy($s(10), "0000000000"); //#20157 + var _88 = $cvrs($s(10), ~~$z($1.scode), 2); //#20157 + $puti(_85, 10 - _88.length, _88); //#20157 + $1.scb = _85; //#20157 + $1.pcb = $strcpy($s(36), "000000000000000000000000000000000000"); //#20158 + if ($1.mode == 2) { //#20171 + var _8F = $cvrs($s(6), $1.pcode.length, 2); //#20161 + $puti($1.pcb, 6 - _8F.length, _8F); //#20161 + var _8J = $cvrs($s(30), ~~$z($1.pcode), 2); //#20162 + $puti($1.pcb, 36 - _8J.length, _8J); //#20162 + } else { //#20171 + $k[$j++] = Infinity; //#20167 + var _8L = $strcpy($s(6), " "); //#20166 + $k[$j++] = _8L; //#20166 + $k[$j++] = _8L; //#20166 + $k[$j++] = 0; //#20166 + if ($1.pcode.length > 6) { //#20166 + $k[$j++] = $geti($1.pcode, 0, 6); //#20166 + } else { //#20166 + $k[$j++] = $1.pcode; //#20166 + } //#20166 + var _8Q = $k[--$j]; //#20166 + var _8R = $k[--$j]; //#20166 + $puti($k[--$j], _8R, _8Q); //#20166 + $forall($k[--$j], function() { //#20167 + var _8W = $get($1.seta, $k[--$j]); //#20167 + $k[$j++] = _8W; //#20167 + }); //#20167 + $1.pccw = $a(); //#20167 + for (var _8Y = 0; _8Y <= 5; _8Y += 1) { //#20172 + $1.i = _8Y; //#20170 + var _8e = $cvrs($s(6), $get($1.pccw, $1.i), 2); //#20171 + $puti($1.pcb, ((6 * $1.i) + 6) - _8e.length, _8e); //#20171 + } //#20171 + } //#20171 + $1.scm = $s(60); //#20176 + $puti($1.scm, 2, $1.mdb); //#20177 + $puti($1.scm, 38, $geti($1.pcb, 0, 4)); //#20178 + $puti($1.scm, 30, $geti($1.pcb, 4, 6)); //#20179 + $puti($1.scm, 24, $geti($1.pcb, 10, 6)); //#20180 + $puti($1.scm, 18, $geti($1.pcb, 16, 6)); //#20181 + $puti($1.scm, 12, $geti($1.pcb, 22, 6)); //#20182 + $puti($1.scm, 6, $geti($1.pcb, 28, 6)); //#20183 + $puti($1.scm, 0, $geti($1.pcb, 34, 2)); //#20184 + $puti($1.scm, 52, $geti($1.ccb, 0, 2)); //#20185 + $puti($1.scm, 42, $geti($1.ccb, 2, 6)); //#20186 + $puti($1.scm, 36, $geti($1.ccb, 8, 2)); //#20187 + $puti($1.scm, 54, $geti($1.scb, 0, 6)); //#20188 + $puti($1.scm, 48, $geti($1.scb, 6, 4)); //#20189 + $1.pri = $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0]); //#20192 + for (var _9K = 0; _9K <= 59; _9K += 1) { //#20198 + $1.i = _9K; //#20194 + $1.ps = ~~($1.i / 6); //#20195 + $1.ep = (~~(Math.pow(2, 5 - ($1.i % 6)))) * ($get($1.scm, $1.i) - 48); //#20196 + $put($1.pri, $1.ps, $f($get($1.pri, $1.ps) + $1.ep)); //#20197 + } //#20197 + $k[$j++] = Infinity; //#20201 + for (var _9W = 0, _9X = 84; _9W < _9X; _9W++) { //#20201 + $k[$j++] = $1.padval; //#20201 + } //#20201 + $1.sec = $a(); //#20201 + $puti($1.sec, 0, $1.encmsg); //#20202 + } //#20202 + if (((($1.mode == 4) || ($1.mode == 5)) || ($1.mode == 6)) || ($1.mode == -1)) { //#20223 + if ($1.mode == -1) { //#20212 + var _9i = ($1.encmsg.length <= 77) ? 5 : 4; //#20211 + $1.mode = _9i; //#20211 + } //#20211 + $k[$j++] = Infinity; //#20215 + var _9k = ($1.mode == 5) ? 78 : 94; //#20215 + for (var _9l = 0, _9m = _9k; _9l < _9m; _9l++) { //#20215 + $k[$j++] = $1.padval; //#20215 + } //#20215 + $1.cws = $a(); //#20215 + $put($1.cws, 0, $1.mode); //#20216 + $puti($1.cws, 1, $1.encmsg); //#20217 + $1.pri = $geti($1.cws, 0, 10); //#20220 + $1.sec = $geti($1.cws, 10, $1.cws.length - 10); //#20221 + } //#20221 + $k[$j++] = Infinity; //#20226 + $k[$j++] = 1; //#20226 + for (var _9y = 0, _9z = 63; _9y < _9z; _9y++) { //#20226 + var _A0 = $k[--$j]; //#20226 + var _A1 = _A0 * 2; //#20226 + $k[$j++] = _A0; //#20226 + $k[$j++] = _A1; //#20226 + if (_A1 >= 64) { //#20226 + var _A2 = $k[--$j]; //#20226 + $k[$j++] = _A2 ^ 67; //#20226 + } //#20226 + } //#20226 + $1.rsalog = $a(); //#20226 + $1.rslog = $a(64); //#20227 + for (var _A5 = 1; _A5 <= 63; _A5 += 1) { //#20228 + $put($1.rslog, $get($1.rsalog, _A5), _A5); //#20228 + } //#20228 + $1.rsprod = function() { + var _A9 = $k[--$j]; //#20232 + var _AA = $k[--$j]; //#20232 + $k[$j++] = _AA; //#20236 + $k[$j++] = _A9; //#20236 + if ((_A9 != 0) && (_AA != 0)) { //#20235 + var _AD = $get($1.rslog, $k[--$j]); //#20233 + var _AI = $get($1.rsalog, $f(_AD + $get($1.rslog, $k[--$j])) % 63); //#20233 + $k[$j++] = _AI; //#20233 + } else { //#20235 + $j -= 2; //#20235 + $k[$j++] = 0; //#20235 + } //#20235 + }; //#20237 + $1.rscodes = function() { + $1.rsnum = $k[--$j]; //#20242 + $1.cwb = $k[--$j]; //#20243 + $k[$j++] = Infinity; //#20246 + $k[$j++] = 1; //#20246 + for (var _AM = 0, _AN = $1.rsnum; _AM < _AN; _AM++) { //#20246 + $k[$j++] = 0; //#20246 + } //#20246 + $1.coeffs = $a(); //#20246 + for (var _AR = 1, _AQ = $1.rsnum; _AR <= _AQ; _AR += 1) { //#20255 + $1.i = _AR; //#20248 + $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); //#20249 + for (var _AY = $1.i - 1; _AY >= 1; _AY -= 1) { //#20253 + $1.j = _AY; //#20251 + $k[$j++] = $1.coeffs; //#20252 + $k[$j++] = $1.j; //#20252 + $k[$j++] = $get($1.coeffs, $1.j - 1); //#20252 + $k[$j++] = $get($1.coeffs, $1.j); //#20252 + $k[$j++] = $get($1.rsalog, $1.i); //#20252 + $1.rsprod(); //#20252 + var _Ak = $k[--$j]; //#20252 + var _Al = $k[--$j]; //#20252 + var _Am = $k[--$j]; //#20252 + $put($k[--$j], _Am, $xo(_Al, _Ak)); //#20252 + } //#20252 + $k[$j++] = $1.coeffs; //#20254 + $k[$j++] = 0; //#20254 + $k[$j++] = $get($1.coeffs, 0); //#20254 + $k[$j++] = $get($1.rsalog, $1.i); //#20254 + $1.rsprod(); //#20254 + var _Au = $k[--$j]; //#20254 + var _Av = $k[--$j]; //#20254 + $put($k[--$j], _Av, _Au); //#20254 + } //#20254 + $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); //#20256 + $k[$j++] = Infinity; //#20259 + for (var _B1 = 0, _B2 = $1.rsnum; _B1 < _B2; _B1++) { //#20259 + $k[$j++] = 0; //#20259 + } //#20259 + $1.ecb = $a(); //#20259 + for (var _B6 = 0, _B5 = $1.cwb.length - 1; _B6 <= _B5; _B6 += 1) { //#20268 + $1.t = $xo($get($1.cwb, _B6), $get($1.ecb, 0)); //#20261 + for (var _BC = $1.ecb.length - 1; _BC >= 0; _BC -= 1) { //#20267 + $1.i = _BC; //#20263 + $1.p = ($1.ecb.length - $1.i) - 1; //#20264 + $k[$j++] = $1.ecb; //#20265 + $k[$j++] = $1.p; //#20265 + $k[$j++] = $1.t; //#20265 + $k[$j++] = $get($1.coeffs, $1.i); //#20265 + $1.rsprod(); //#20265 + var _BL = $k[--$j]; //#20265 + var _BM = $k[--$j]; //#20265 + $put($k[--$j], _BM, _BL); //#20265 + if ($1.i > 0) { //#20266 + $put($1.ecb, $1.p, $xo($get($1.ecb, $1.p + 1), $get($1.ecb, $1.p))); //#20266 + } //#20266 + } //#20266 + } //#20266 + $k[$j++] = $1.ecb; //#20270 + }; //#20272 + $k[$j++] = Infinity; //#20275 + for (var _Ba = 0, _BZ = $1.sec.length - 1; _Ba <= _BZ; _Ba += 2) { //#20275 + $k[$j++] = $get($1.sec, _Ba); //#20275 + } //#20275 + $1.seco = $a(); //#20275 + $k[$j++] = Infinity; //#20276 + for (var _Bg = 1, _Bf = $1.sec.length - 1; _Bg <= _Bf; _Bg += 2) { //#20276 + $k[$j++] = $get($1.sec, _Bg); //#20276 + } //#20276 + $1.sece = $a(); //#20276 + var _Bl = ($1.sec.length == 84) ? 20 : 28; //#20279 + $1.scodes = _Bl; //#20279 + $k[$j++] = 'secochk'; //#20280 + $k[$j++] = $1.seco; //#20280 + $k[$j++] = $1.scodes; //#20280 + $1.rscodes(); //#20280 + var _Bo = $k[--$j]; //#20280 + $1[$k[--$j]] = _Bo; //#20280 + $k[$j++] = 'secechk'; //#20281 + $k[$j++] = $1.sece; //#20281 + $k[$j++] = $1.scodes; //#20281 + $1.rscodes(); //#20281 + var _Bs = $k[--$j]; //#20281 + $1[$k[--$j]] = _Bs; //#20281 + $k[$j++] = Infinity; //#20284 + for (var _Bw = 0, _Bv = $1.scodes - 1; _Bw <= _Bv; _Bw += 1) { //#20284 + $k[$j++] = $get($1.secochk, _Bw); //#20284 + $k[$j++] = $get($1.secechk, _Bw); //#20284 + } //#20284 + $1.secchk = $a(); //#20284 + $k[$j++] = Infinity; //#20291 + $aload($1.pri); //#20288 + $k[$j++] = $1.pri; //#20289 + $k[$j++] = 10; //#20289 + $1.rscodes(); //#20289 + $aload($k[--$j]); //#20289 + $aload($1.sec); //#20290 + $aload($1.secchk); //#20291 + $1.codewords = $a(); //#20291 + $k[$j++] = Infinity; //#20295 + for (var _C8 = 0, _C9 = 864; _C8 < _C9; _C8++) { //#20295 + $k[$j++] = 0; //#20295 + } //#20295 + $1.mods = $a(); //#20295 + for (var _CB = 0; _CB <= 143; _CB += 1) { //#20300 + $1.i = _CB; //#20297 + $k[$j++] = Infinity; //#20298 + var _CG = $cvrs($s(6), $get($1.codewords, $1.i), 2); //#20298 + for (var _CH = 0, _CI = _CG.length; _CH < _CI; _CH++) { //#20298 + $k[$j++] = $get(_CG, _CH) - 48; //#20298 + } //#20298 + $1.cw = $a(); //#20298 + $puti($1.mods, (6 * $1.i) + (6 - $1.cw.length), $1.cw); //#20299 + } //#20299 + $1.modmap = $a([469, 529, 286, 316, 347, 346, 673, 672, 703, 702, 647, 676, 283, 282, 313, 312, 370, 610, 618, 379, 378, 409, 408, 439, 705, 704, 559, 589, 588, 619, 458, 518, 640, 701, 675, 674, 285, 284, 315, 314, 310, 340, 531, 289, 288, 319, 349, 348, 456, 486, 517, 516, 471, 470, 369, 368, 399, 398, 429, 428, 549, 548, 579, 578, 609, 608, 649, 648, 679, 678, 709, 708, 639, 638, 669, 668, 699, 698, 279, 278, 309, 308, 339, 338, 381, 380, 411, 410, 441, 440, 561, 560, 591, 590, 621, 620, 547, 546, 577, 576, 607, 606, 367, 366, 397, 396, 427, 426, 291, 290, 321, 320, 351, 350, 651, 650, 681, 680, 711, 710, 1, 0, 31, 30, 61, 60, 3, 2, 33, 32, 63, 62, 5, 4, 35, 34, 65, 64, 7, 6, 37, 36, 67, 66, 9, 8, 39, 38, 69, 68, 11, 10, 41, 40, 71, 70, 13, 12, 43, 42, 73, 72, 15, 14, 45, 44, 75, 74, 17, 16, 47, 46, 77, 76, 19, 18, 49, 48, 79, 78, 21, 20, 51, 50, 81, 80, 23, 22, 53, 52, 83, 82, 25, 24, 55, 54, 85, 84, 27, 26, 57, 56, 87, 86, 117, 116, 147, 146, 177, 176, 115, 114, 145, 144, 175, 174, 113, 112, 143, 142, 173, 172, 111, 110, 141, 140, 171, 170, 109, 108, 139, 138, 169, 168, 107, 106, 137, 136, 167, 166, 105, 104, 135, 134, 165, 164, 103, 102, 133, 132, 163, 162, 101, 100, 131, 130, 161, 160, 99, 98, 129, 128, 159, 158, 97, 96, 127, 126, 157, 156, 95, 94, 125, 124, 155, 154, 93, 92, 123, 122, 153, 152, 91, 90, 121, 120, 151, 150, 181, 180, 211, 210, 241, 240, 183, 182, 213, 212, 243, 242, 185, 184, 215, 214, 245, 244, 187, 186, 217, 216, 247, 246, 189, 188, 219, 218, 249, 248, 191, 190, 221, 220, 251, 250, 193, 192, 223, 222, 253, 252, 195, 194, 225, 224, 255, 254, 197, 196, 227, 226, 257, 256, 199, 198, 229, 228, 259, 258, 201, 200, 231, 230, 261, 260, 203, 202, 233, 232, 263, 262, 205, 204, 235, 234, 265, 264, 207, 206, 237, 236, 267, 266, 297, 296, 327, 326, 357, 356, 295, 294, 325, 324, 355, 354, 293, 292, 323, 322, 353, 352, 277, 276, 307, 306, 337, 336, 275, 274, 305, 304, 335, 334, 273, 272, 303, 302, 333, 332, 271, 270, 301, 300, 331, 330, 361, 360, 391, 390, 421, 420, 363, 362, 393, 392, 423, 422, 365, 364, 395, 394, 425, 424, 383, 382, 413, 412, 443, 442, 385, 384, 415, 414, 445, 444, 387, 386, 417, 416, 447, 446, 477, 476, 507, 506, 537, 536, 475, 474, 505, 504, 535, 534, 473, 472, 503, 502, 533, 532, 455, 454, 485, 484, 515, 514, 453, 452, 483, 482, 513, 512, 451, 450, 481, 480, 511, 510, 541, 540, 571, 570, 601, 600, 543, 542, 573, 572, 603, 602, 545, 544, 575, 574, 605, 604, 563, 562, 593, 592, 623, 622, 565, 564, 595, 594, 625, 624, 567, 566, 597, 596, 627, 626, 657, 656, 687, 686, 717, 716, 655, 654, 685, 684, 715, 714, 653, 652, 683, 682, 713, 712, 637, 636, 667, 666, 697, 696, 635, 634, 665, 664, 695, 694, 633, 632, 663, 662, 693, 692, 631, 630, 661, 660, 691, 690, 721, 720, 751, 750, 781, 780, 723, 722, 753, 752, 783, 782, 725, 724, 755, 754, 785, 784, 727, 726, 757, 756, 787, 786, 729, 728, 759, 758, 789, 788, 731, 730, 761, 760, 791, 790, 733, 732, 763, 762, 793, 792, 735, 734, 765, 764, 795, 794, 737, 736, 767, 766, 797, 796, 739, 738, 769, 768, 799, 798, 741, 740, 771, 770, 801, 800, 743, 742, 773, 772, 803, 802, 745, 744, 775, 774, 805, 804, 747, 746, 777, 776, 807, 806, 837, 836, 867, 866, 897, 896, 835, 834, 865, 864, 895, 894, 833, 832, 863, 862, 893, 892, 831, 830, 861, 860, 891, 890, 829, 828, 859, 858, 889, 888, 827, 826, 857, 856, 887, 886, 825, 824, 855, 854, 885, 884, 823, 822, 853, 852, 883, 882, 821, 820, 851, 850, 881, 880, 819, 818, 849, 848, 879, 878, 817, 816, 847, 846, 877, 876, 815, 814, 845, 844, 875, 874, 813, 812, 843, 842, 873, 872, 811, 810, 841, 840, 871, 870, 901, 900, 931, 930, 961, 960, 903, 902, 933, 932, 963, 962, 905, 904, 935, 934, 965, 964, 907, 906, 937, 936, 967, 966, 909, 908, 939, 938, 969, 968, 911, 910, 941, 940, 971, 970, 913, 912, 943, 942, 973, 972, 915, 914, 945, 944, 975, 974, 917, 916, 947, 946, 977, 976, 919, 918, 949, 948, 979, 978, 921, 920, 951, 950, 981, 980, 923, 922, 953, 952, 983, 982, 925, 924, 955, 954, 985, 984, 927, 926, 957, 956, 987, 986, 58, 89, 88, 118, 149, 148, 178, 209, 208, 238, 269, 268, 298, 329, 328, 358, 389, 388, 418, 449, 448, 478, 509, 508, 538, 569, 568, 598, 629, 628, 658, 689, 688, 718, 749, 748, 778, 809, 808, 838, 869, 868, 898, 929, 928, 958, 989, 988]); //#20348 + $1.pixs = $a(864); //#20351 + $1.j = 0; //#20352 + for (var _CT = 0, _CS = $1.mods.length - 1; _CT <= _CS; _CT += 1) { //#20359 + $1.i = _CT; //#20354 + if ($get($1.mods, $1.i) == 1) { //#20358 + $put($1.pixs, $1.j, $get($1.modmap, $1.i)); //#20356 + $1.j = $1.j + 1; //#20357 + } //#20357 + } //#20357 + $k[$j++] = Infinity; //#20360 + var _Cf = $geti($1.pixs, 0, $1.j); //#20360 + for (var _Cg = 0, _Ch = _Cf.length; _Cg < _Ch; _Cg++) { //#20360 + $k[$j++] = $get(_Cf, _Cg); //#20360 + } //#20360 + $k[$j++] = 28; //#20360 + $k[$j++] = 29; //#20360 + $k[$j++] = 280; //#20360 + $k[$j++] = 281; //#20360 + $k[$j++] = 311; //#20360 + $k[$j++] = 457; //#20360 + $k[$j++] = 488; //#20360 + $k[$j++] = 500; //#20360 + $k[$j++] = 530; //#20360 + $k[$j++] = 670; //#20360 + $k[$j++] = 700; //#20360 + $k[$j++] = 677; //#20360 + $k[$j++] = 707; //#20360 + $1.pixs = $a(); //#20360 + var _Cm = new Map([ + ["ren", $0.renmaximatrix], + ["pixs", $1.pixs], + ["opt", $1.options] + ]); //#20366 + $k[$j++] = _Cm; //#20369 + if (!$1.dontdraw) { //#20369 + $0.renmaximatrix(); //#20369 + } //#20369 + }; + $0.azteccode = function() { + var $1 = {}; //#20399 + $1.options = $k[--$j]; //#20401 + $1.barcode = $k[--$j]; //#20402 + $1.dontdraw = false; //#20404 + $1.format = "unset"; //#20405 + $1.readerinit = false; //#20406 + $1.layers = -1; //#20407 + $1.eclevel = 23; //#20408 + $1.ecaddchars = 3; //#20409 + $1.raw = false; //#20410 + $1.parse = false; //#20411 + $1.parsefnc = false; //#20412 + $forall($1.options, function() { //#20423 + var _3 = $k[--$j]; //#20423 + $1[$k[--$j]] = _3; //#20423 + }); //#20423 + $1.layers = ~~$1.layers; //#20425 + $1.eclevel = +$1.eclevel; //#20426 + $1.ecaddchars = ~~$1.ecaddchars; //#20427 + $1.fn1 = -1; //#20430 + var _B = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["eci", true], + ["FNC1", $1.fn1] + ]); //#20435 + $1.fncvals = _B; //#20436 + $k[$j++] = 'msg'; //#20437 + $k[$j++] = $1.barcode; //#20437 + $k[$j++] = $1.fncvals; //#20437 + $0.parseinput(); //#20437 + var _E = $k[--$j]; //#20437 + $1[$k[--$j]] = _E; //#20437 + $1.msglen = $1.msg.length; //#20438 + $1.msgbits = ""; //#20441 + if ($ne($1.format, "rune") && $1.raw) { //#20442 + $1.msgbits = $1.barcode; //#20442 + } //#20442 + if ($ne($1.format, "rune") && (!$1.raw)) { //#20780 + $1.U = 0; //#20446 + $1.L = 1; //#20446 + $1.M = 2; //#20446 + $1.P = 3; //#20446 + $1.D = 4; //#20446 + $1.B = 5; //#20446 + $1.lu = -2; //#20449 + $1.ll = -3; //#20449 + $1.lm = -4; //#20449 + $1.lp = -5; //#20450 + $1.ld = -6; //#20450 + $1.su = -7; //#20450 + $1.sp = -8; //#20451 + $1.sb = -9; //#20451 + $1.fl = -10; //#20451 + $1.p2 = -11; //#20452 + $1.p3 = -12; //#20452 + $1.p4 = -13; //#20452 + $1.p5 = -14; //#20452 + $1.charmaps = $a([$a([$1.sp, $1.sp, $1.sp, $1.fl, $1.sp]), $a([32, 32, 32, 13, 32]), $a(["A", "a", 1, $1.p2, "0"]), $a(["B", "b", 2, $1.p3, "1"]), $a(["C", "c", 3, $1.p4, "2"]), $a(["D", "d", 4, $1.p5, "3"]), $a(["E", "e", 5, "!", "4"]), $a(["F", "f", 6, "\"", "5"]), $a(["G", "g", 7, "#", "6"]), $a(["H", "h", 8, "$", "7"]), $a(["I", "i", 9, "%", "8"]), $a(["J", "j", 10, "&", "9"]), $a(["K", "k", 11, "'", ","]), $a(["L", "l", 12, 40, "."]), $a(["M", "m", 13, 41, $1.lu]), $a(["N", "n", 27, "*", $1.su]), $a(["O", "o", 28, "+", -99]), $a(["P", "p", 29, ",", -99]), $a(["Q", "q", 30, "-", -99]), $a(["R", "r", 31, ".", -99]), $a(["S", "s", "@", "/", -99]), $a(["T", "t", 92, ":", -99]), $a(["U", "u", "^", ";", -99]), $a(["V", "v", "_", "<", -99]), $a(["W", "w", "`", "=", -99]), $a(["X", "x", "|", ">", -99]), $a(["Y", "y", "~", "?", -99]), $a(["Z", "z", 127, "[", -99]), $a([$1.ll, $1.su, $1.ll, "]", -99]), $a([$1.lm, $1.lm, $1.lu, "{", -99]), $a([$1.ld, $1.ld, $1.lp, "}", -99]), $a([$1.sb, $1.sb, $1.sb, $1.lu, -99])]); //#20489 + $1.charvals = $a([new Map, new Map, new Map, new Map, new Map]); //#20492 + for (var _1K = 0, _1J = $1.charmaps.length - 1; _1K <= _1J; _1K += 1) { //#20501 + $1.i = _1K; //#20494 + $1.encs = $get($1.charmaps, $1.i); //#20495 + for (var _1O = 0; _1O <= 4; _1O += 1) { //#20500 + $1.j = _1O; //#20497 + var _1R = $get($1.encs, $1.j); //#20498 + $k[$j++] = _1R; //#20498 + if ($eq($type(_1R), 'stringtype')) { //#20498 + var _1U = $get($k[--$j], 0); //#20498 + $k[$j++] = _1U; //#20498 + } //#20498 + $put($get($1.charvals, $1.j), $k[--$j], $1.i); //#20499 + } //#20499 + } //#20499 + var _1e = new Map([ + ["\x0d\x0a", $1.p2], + [". ", $1.p3], + [", ", $1.p4], + [": ", $1.p5] + ]); //#20508 + $1.pcomp = _1e; //#20509 + $1.e = 10000; //#20511 + $1.latlen = $a([$a([0, 5, 5, 10, 5, 10]), $a([9, 0, 5, 10, 5, 10]), $a([5, 5, 0, 5, 10, 10]), $a([5, 10, 10, 0, 10, 15]), $a([4, 9, 9, 14, 0, 14]), $a([0, 0, 0, 0, 0, 0])]); //#20521 + $1.latseq = $a([$a([$a([]), $a([$1.ll]), $a([$1.lm]), $a([$1.lm, $1.lp]), $a([$1.ld]), $a([$1.sb])]), $a([$a([$1.ld, $1.lu]), $a([]), $a([$1.lm]), $a([$1.lm, $1.lp]), $a([$1.ld]), $a([$1.sb])]), $a([$a([$1.lu]), $a([$1.ll]), $a([]), $a([$1.lp]), $a([$1.lu, $1.ld]), $a([$1.sb])]), $a([$a([$1.lu]), $a([$1.lu, $1.ll]), $a([$1.lu, $1.lm]), $a([]), $a([$1.lu, $1.ld]), $a([$1.lu, $1.sb])]), $a([$a([$1.lu]), $a([$1.lu, $1.ll]), $a([$1.lu, $1.lm]), $a([$1.lu, $1.lm, $1.lp]), $a([]), $a([$1.lu, $1.sb])]), $a([$a([$1.lu]), $a([$1.ll]), $a([$1.lm]), $a([]), $a([]), $a([])])]); //#20531 + $1.shftlen = $a([$a([$1.e, $1.e, $1.e, 5, $1.e]), $a([5, $1.e, $1.e, 5, $1.e]), $a([$1.e, $1.e, $1.e, 5, $1.e]), $a([$1.e, $1.e, $1.e, $1.e, $1.e]), $a([4, $1.e, $1.e, 4, $1.e])]); //#20540 + $1.charsize = function() { + var _3X = $k[--$j]; //#20543 + $k[$j++] = _3X; //#20554 + if (_3X >= 0) { //#20552 + $j--; //#20545 + var _3a = $get($a([5, 5, 5, 5, 4, 8]), $k[--$j]); //#20545 + $k[$j++] = _3a; //#20545 + } else { //#20552 + var _3b = $k[--$j]; //#20547 + var _3c = $k[--$j]; //#20547 + $k[$j++] = _3b; //#20547 + $k[$j++] = _3c; //#20547 + $j--; //#20547 + var _3d = $k[--$j]; //#20548 + $k[$j++] = _3d; //#20553 + if (_3d == $1.fn1) { //#20552 + $j--; //#20549 + $k[$j++] = 8; //#20549 + } else { //#20552 + var _3g = $f((-$k[--$j]) - 1000000); //#20551 + $k[$j++] = _3g; //#20551 + if (_3g == 0) { //#20551 + $j--; //#20551 + $k[$j++] = 1; //#20551 + } //#20551 + var _3h = $k[--$j]; //#20552 + $k[$j++] = (((~~(Math.log(_3h) / Math.log(10))) + 1) * 4) + 8; //#20552 + } //#20552 + } //#20552 + }; //#20555 + $1.curlen = $a([0, $1.e, $1.e, $1.e, $1.e, $1.e]); //#20558 + $1.curseq = $a([$a([]), $a([]), $a([]), $a([]), $a([]), $a([])]); //#20559 + $1.backto = $1.U; //#20561 + $1.lastchar = ""; //#20562 + $forall($1.msg, function() { //#20664 + $1.char = $k[--$j]; //#20567 + for (;;) { //#20593 + $1.imp = false; //#20571 + var _44 = $a([$1.U, $1.L, $1.M, $1.P, $1.D, $1.B]); //#20572 + for (var _45 = 0, _46 = _44.length; _45 < _46; _45++) { //#20591 + $1.x = $get(_44, _45); //#20573 + var _4E = $a([$1.U, $1.L, $1.M, $1.P, $1.D, $1.B]); //#20574 + for (var _4F = 0, _4G = _4E.length; _4F < _4G; _4F++) { //#20590 + $1.y = $get(_4E, _4F); //#20575 + if (($1.x != $1.B) || ($1.y == $1.backto)) { //#20589 + $1.cost = $f($get($1.curlen, $1.x) + $get($get($1.latlen, $1.x), $1.y)); //#20577 + if ($1.cost < $get($1.curlen, $1.y)) { //#20588 + $put($1.curlen, $1.y, $1.cost); //#20579 + $k[$j++] = $1.curseq; //#20582 + $k[$j++] = $1.y; //#20582 + $k[$j++] = Infinity; //#20582 + $aload($get($1.curseq, $1.x)); //#20581 + $aload($get($get($1.latseq, $1.x), $1.y)); //#20582 + var _4l = $a(); //#20582 + var _4m = $k[--$j]; //#20583 + $put($k[--$j], _4m, _4l); //#20583 + if ($1.y == $1.B) { //#20586 + $k[$j++] = 'backto'; //#20585 + if (($1.x == $1.P) || ($1.x == $1.D)) { //#20585 + $k[$j++] = $1.U; //#20585 + } else { //#20585 + $k[$j++] = $1.x; //#20585 + } //#20585 + var _4w = $k[--$j]; //#20585 + $1[$k[--$j]] = _4w; //#20585 + } //#20585 + $1.imp = true; //#20587 + } //#20587 + } //#20587 + } //#20587 + } //#20587 + if (!$1.imp) { //#20592 + break; //#20592 + } //#20592 + } //#20592 + $1.nxtlen = $a([$1.e, $1.e, $1.e, $1.e, $1.e, $1.e]); //#20596 + $1.nxtseq = $a(6); //#20597 + var _5D = $a([$1.U, $1.L, $1.M, $1.P, $1.D, $1.B]); //#20599 + for (var _5E = 0, _5F = _5D.length; _5E < _5F; _5E++) { //#20638 + $1.x = $get(_5D, _5E); //#20600 + for (;;) { //#20636 + if ($1.char >= 0) { //#20608 + if ($1.x != $1.B) { //#20606 + var _5O = $get($get($1.charvals, $1.x), $1.char) !== undefined; //#20606 + if (!_5O) { //#20606 + break; //#20606 + } //#20606 + } //#20606 + } else { //#20608 + if ($1.x != $1.P) { //#20608 + break; //#20608 + } //#20608 + } //#20608 + $k[$j++] = 'cost'; //#20612 + $k[$j++] = $get($1.curlen, $1.x); //#20612 + $k[$j++] = $1.x; //#20612 + $k[$j++] = $1.char; //#20612 + $1.charsize(); //#20612 + var _5W = $k[--$j]; //#20612 + var _5X = $k[--$j]; //#20612 + $1[$k[--$j]] = $f(_5X + _5W); //#20612 + if ($1.cost < $get($1.nxtlen, $1.x)) { //#20616 + $put($1.nxtlen, $1.x, $1.cost); //#20614 + $k[$j++] = $1.nxtseq; //#20615 + $k[$j++] = $1.x; //#20615 + $k[$j++] = Infinity; //#20615 + $aload($get($1.curseq, $1.x)); //#20615 + $k[$j++] = $1.char; //#20615 + var _5m = $a(); //#20615 + var _5n = $k[--$j]; //#20615 + $put($k[--$j], _5n, _5m); //#20615 + } //#20615 + if ($1.x == $1.B) { //#20619 + break; //#20619 + } //#20619 + var _5w = $a([$1.U, $1.L, $1.M, $1.P, $1.D]); //#20620 + for (var _5x = 0, _5y = _5w.length; _5x < _5y; _5x++) { //#20633 + $1.y = $get(_5w, _5x); //#20621 + if ($ne($1.x, $1.y)) { //#20632 + $k[$j++] = 'cost'; //#20623 + $k[$j++] = $f($get($1.curlen, $1.y) + $get($get($1.shftlen, $1.y), $1.x)); //#20623 + $k[$j++] = $1.x; //#20623 + $k[$j++] = $1.char; //#20623 + $1.charsize(); //#20623 + var _6C = $k[--$j]; //#20623 + var _6D = $k[--$j]; //#20623 + $1[$k[--$j]] = $f(_6D + _6C); //#20623 + if ($1.cost < $get($1.nxtlen, $1.y)) { //#20631 + $put($1.nxtlen, $1.y, $1.cost); //#20625 + $k[$j++] = $1.nxtseq; //#20629 + $k[$j++] = $1.y; //#20629 + $k[$j++] = Infinity; //#20629 + $aload($get($1.curseq, $1.y)); //#20627 + var _6T = ($1.x == $1.U) ? $1.su : $1.sp; //#20628 + $k[$j++] = _6T; //#20629 + $k[$j++] = $1.char; //#20629 + var _6V = $a(); //#20629 + var _6W = $k[--$j]; //#20630 + $put($k[--$j], _6W, _6V); //#20630 + } //#20630 + } //#20630 + } //#20630 + break; //#20635 + } //#20635 + } //#20635 + if ($ne($1.lastchar, "") && ($1.char >= 0)) { //#20649 + var _6a = $s(2); //#20642 + $put(_6a, 0, $1.lastchar); //#20642 + $put(_6a, 1, $1.char); //#20642 + $1.pchars = _6a; //#20642 + var _6f = $get($1.pcomp, $1.pchars) !== undefined; //#20643 + if (_6f) { //#20648 + if ($lt($get($1.curlen, $1.P), $get($1.nxtlen, $1.P))) { //#20647 + $put($1.nxtlen, $1.P, $get($1.curlen, $1.P)); //#20645 + $k[$j++] = $1.nxtseq; //#20646 + $k[$j++] = $1.P; //#20646 + $k[$j++] = Infinity; //#20646 + $aload($get($1.curseq, $1.P)); //#20646 + $j--; //#20646 + $k[$j++] = $get($1.pcomp, $1.pchars); //#20646 + var _6z = $a(); //#20646 + var _70 = $k[--$j]; //#20646 + $put($k[--$j], _70, _6z); //#20646 + } //#20646 + } //#20646 + } //#20646 + if ($ne($get($1.nxtseq, $1.B), null)) { //#20658 + $1.numbytes = 0; //#20653 + $forall($get($1.nxtseq, $1.B), function() { //#20656 + if ($k[--$j] == $1.sb) { //#20655 + $k[$j++] = 0; //#20655 + } else { //#20655 + $k[$j++] = $1.numbytes + 1; //#20655 + } //#20655 + $1.numbytes = $k[--$j]; //#20655 + }); //#20655 + if ($1.numbytes == 32) { //#20657 + $put($1.nxtlen, $1.B, $f($get($1.nxtlen, $1.B) + 11)); //#20657 + } //#20657 + } //#20657 + $1.curlen = $1.nxtlen; //#20660 + $1.curseq = $1.nxtseq; //#20661 + $k[$j++] = 'lastchar'; //#20662 + if ($1.char >= 0) { //#20662 + $k[$j++] = $1.char; //#20662 + } else { //#20662 + $k[$j++] = ""; //#20662 + } //#20662 + var _7M = $k[--$j]; //#20662 + $1[$k[--$j]] = _7M; //#20662 + }); //#20662 + $1.minseq = $1.e; //#20667 + var _7V = $a([$1.U, $1.L, $1.M, $1.P, $1.D, $1.B]); //#20668 + for (var _7W = 0, _7X = _7V.length; _7W < _7X; _7W++) { //#20674 + $1.i = $get(_7V, _7W); //#20669 + if ($get($1.curlen, $1.i) < $1.minseq) { //#20673 + $1.minseq = $get($1.curlen, $1.i); //#20671 + $1.seq = $get($1.curseq, $1.i); //#20672 + } //#20672 + } //#20672 + $1.tobin = function() { + var _7k = $s($k[--$j]); //#20678 + $k[$j++] = _7k; //#20678 + for (var _7m = 0, _7l = _7k.length - 1; _7m <= _7l; _7m += 1) { //#20678 + var _7n = $k[--$j]; //#20678 + $put(_7n, _7m, 48); //#20678 + $k[$j++] = _7n; //#20678 + } //#20678 + var _7o = $k[--$j]; //#20679 + var _7r = $cvrs($s(_7o.length), $k[--$j], 2); //#20679 + $puti(_7o, _7o.length - _7r.length, _7r); //#20679 + $k[$j++] = _7o; //#20679 + }; //#20680 + $1.encu = function() { + var _7w = $get($get($1.charvals, $1.U), $k[--$j]); //#20682 + $k[$j++] = _7w; //#20682 + $k[$j++] = 5; //#20682 + $1.tobin(); //#20682 + }; //#20682 + $1.encl = function() { + var _81 = $get($get($1.charvals, $1.L), $k[--$j]); //#20683 + $k[$j++] = _81; //#20683 + $k[$j++] = 5; //#20683 + $1.tobin(); //#20683 + }; //#20683 + $1.encm = function() { + var _86 = $get($get($1.charvals, $1.M), $k[--$j]); //#20684 + $k[$j++] = _86; //#20684 + $k[$j++] = 5; //#20684 + $1.tobin(); //#20684 + }; //#20684 + $1.encd = function() { + var _8B = $get($get($1.charvals, $1.D), $k[--$j]); //#20685 + $k[$j++] = _8B; //#20685 + $k[$j++] = 4; //#20685 + $1.tobin(); //#20685 + }; //#20685 + $1.encp = function() { + var _8C = $k[--$j]; //#20688 + $k[$j++] = _8C; //#20705 + if (_8C == $1.fn1) { //#20704 + $j--; //#20689 + $k[$j++] = "00000000"; //#20689 + } else { //#20704 + var _8E = $k[--$j]; //#20691 + $k[$j++] = _8E; //#20705 + if (_8E <= -1000000) { //#20704 + var _8G = $f((-$k[--$j]) - 1000000); //#20692 + $k[$j++] = _8G; //#20692 + $k[$j++] = _8G; //#20692 + if (_8G == 0) { //#20692 + $j--; //#20692 + $k[$j++] = 1; //#20692 + } //#20692 + var _8I = ~~(Math.log($k[--$j]) / Math.log(10)); //#20694 + var _8J = $s(((_8I + 1) * 4) + 8); //#20694 + $puti(_8J, 0, "00000"); //#20695 + $k[$j++] = _8I; //#20696 + $k[$j++] = _8J; //#20696 + $k[$j++] = _8J; //#20696 + $k[$j++] = _8I + 1; //#20696 + $k[$j++] = 3; //#20696 + $1.tobin(); //#20696 + var _8K = $k[--$j]; //#20696 + $puti($k[--$j], 5, _8K); //#20696 + var _8M = $k[--$j]; //#20697 + var _8N = $k[--$j]; //#20697 + var _8O = $k[--$j]; //#20697 + $k[$j++] = _8M; //#20701 + $k[$j++] = _8O; //#20701 + for (var _8P = _8N; _8P >= 0; _8P -= 1) { //#20701 + var _8Q = $k[--$j]; //#20698 + var _8R = $k[--$j]; //#20699 + $k[$j++] = _8R; //#20700 + $k[$j++] = ~~(_8Q / 10); //#20700 + $k[$j++] = _8R; //#20700 + $k[$j++] = (_8P * 4) + 8; //#20700 + $k[$j++] = $f((_8Q % 10) + 2); //#20700 + $k[$j++] = 4; //#20700 + $1.tobin(); //#20700 + var _8S = $k[--$j]; //#20700 + var _8T = $k[--$j]; //#20700 + $puti($k[--$j], _8T, _8S); //#20700 + } //#20700 + $j--; //#20702 + } else { //#20704 + var _8Z = $get($get($1.charvals, $1.P), $k[--$j]); //#20704 + $k[$j++] = _8Z; //#20704 + $k[$j++] = 5; //#20704 + $1.tobin(); //#20704 + } //#20704 + } //#20704 + }; //#20706 + $1.encfuncs = $a(['encu', 'encl', 'encm', 'encp', 'encd']); //#20708 + $1.addtomsgbits = function() { + $1.v = $k[--$j]; //#20711 + $puti($1.msgbits, $1.j, $1.v); //#20712 + $1.j = $1.j + $1.v.length; //#20713 + }; //#20714 + $1.state = $1.U; //#20717 + $1.msgbits = $s($1.minseq); //#20718 + $1.i = 0; //#20719 + $1.j = 0; //#20719 + for (;;) { //#20778 + if ($1.i >= $1.seq.length) { //#20720 + break; //#20720 + } //#20720 + if ($1.state != $1.B) { //#20773 + $1.char = $get($1.seq, $1.i); //#20724 + $k[$j++] = $1.char; //#20727 + if ($1[$get($1.encfuncs, $1.state)]() === true) { break; - } - if ($1.mode == $1.A) { - if ($1.numK >= 1) { - $k[$j++] = $1.K; - break; - } - if ($1.numB >= 1) { - $k[$j++] = $1.B; - break; - } - $k[$j++] = $a([ 13, 15, 17, $1.e, 5, 7, 9 ]); - $1.NbeforeA(); - if ($k[--$j]) { - $k[$j++] = $1.N; - break; - } - $k[$j++] = $a([ 13, 17, 18, $1.e, $1.e, 7, 9 ]); - $1.NbeforeB(); - if ($k[--$j]) { - $k[$j++] = $1.N; - break; - } - $k[$j++] = $a([ 7, 8, 9, $1.e, 3, 4, 5 ]); - $1.NbeforeE(); - if ($k[--$j]) { - $k[$j++] = $1.N; - break; - } - if ($1.numA >= 1 || $1.numN >= 1) { - $k[$j++] = $1.A; - break; - } - $k[$j++] = $1.B; - break; - } - if ($1.mode == $1.N) { - if ($1.numK >= 1) { - $k[$j++] = $1.K; - break; - } - if ($1.numB >= 1) { - $k[$j++] = $1.B; - break; - } - if ($1.numA >= 1) { - $k[$j++] = $1.A; - break; - } - if ($1.numN >= 1) { - $k[$j++] = $1.N; - break; - } - $k[$j++] = $1.B; - break; - } - if ($1.mode == $1.K) { - if ($1.numB >= 1) { - $k[$j++] = $1.B; - break; - } - if ($1.numA >= 1) { - $k[$j++] = $1.A; - break; - } - if ($1.numN >= 1) { - $k[$j++] = $1.N; - break; - } - if ($1.numK >= 1) { - $k[$j++] = $1.K; - break; - } - $k[$j++] = $1.B; - break; - } - } - var _CL = $k[--$j]; - $k[$j++] = _CL; - if (_CL == $1.K && $1.fnc1first) { - $j--; - $k[$j++] = $1.B; - } - var _CP = $k[--$j]; - $k[$j++] = _CP; - if (_CP == $1.mode) { - $j--; - var _CV = $1.mode == $1.K ? 2 : 1; - $1.dat = $geti($1.msg, $1.i, _CV); - $k[$j++] = Infinity; - $aload($1.seq); - $k[$j++] = Infinity; - var _CY = $k[--$j]; - var _CZ = $k[--$j]; - $k[$j++] = _CY; - $aload(_CZ); - $aload($1.dat); - var _Cb = $a(); - $k[$j++] = _Cb; - $1.seq = $a(); - } else { - $1.mode = $k[--$j]; - if ($1.mode == $1.K) { - $k[$j++] = $1.K; - $k[$j++] = $geti($1.msg, $1.i, $1.numK * 2); - } - if ($1.mode == $1.B) { - $k[$j++] = $1.B; - $k[$j++] = $geti($1.msg, $1.i, $1.numB); - } - if ($1.mode == $1.A) { - $k[$j++] = $1.A; - $k[$j++] = $geti($1.msg, $1.i, $1.numA); - } - if ($1.mode == $1.N) { - $k[$j++] = $1.N; - $k[$j++] = $geti($1.msg, $1.i, $1.numN); - } - if ($1.mode == $1.E) { - $1.mode = -1; - $k[$j++] = $1.E; - $k[$j++] = $geti($1.msg, $1.i, 1); - } - $1.dat = $k[--$j]; - $1.sw = $k[--$j]; - $k[$j++] = Infinity; - $aload($1.seq); - $k[$j++] = $1.sw; - $k[$j++] = $1.dat; - $1.seq = $a(); - } - $1.i = $1.i + $1.dat.length; - } - for (;;) { - if ($1.seq == -1) { - break; - } - $1.bits = $s(23648); - $1.j = 0; - if ($1.fnc1first) { - if ($lt($1.ver, $1.vR7x43)) { - $k[$j++] = "0101"; - } else { - $k[$j++] = "101"; - } - $1.addtobits(); - } - $1.abort = false; - for (var _DR = 0, _DQ = $1.seq.length - 1; _DR <= _DQ; _DR += 2) { - $1.i = _DR; - $1.mode = $get($1.seq, $1.i); - $k[$j++] = $get($get($1.mids, $1.ver), $1.mode); - $1.addtobits(); - $1.chars = $get($1.seq, $1.i + 1); - if ($1.mode != $1.E) { - $1.cclen = $get($get($1.cclens, $1.ver), $1.mode); - if ($1.chars.length >= ~~Math.pow(2, $1.cclen)) { - $1.abort = true; - break; - } - $k[$j++] = $1.chars.length; - if ($1.mode == $1.K) { - var _Dp = $k[--$j]; - $k[$j++] = ~~(_Dp / 2); - } - $k[$j++] = $1.cclen; - $1.tobin(); - $1.addtobits(); - } - $k[$j++] = $1.chars; - if ($1[$get($1.encfuncs, $1.mode)]() === true) { - break; - } - $1.addtobits(); - } - if ($1.abort) { - break; - } - $1.bits = $geti($1.bits, 0, $1.j); - $put($1.msgbits, $1.ver, $1.bits); - break; - } - } - $1.metrics = $a([ $a([ "micro", "M1", $1.vM1, 11, 11, 98, 99, 36, $a([ 2, 99, 99, 99 ]), $a([ 1, 0, -1, -1, -1, -1, -1, -1 ]) ]), $a([ "micro", "M2", $1.vM2, 13, 13, 98, 99, 80, $a([ 5, 6, 99, 99 ]), $a([ 1, 0, 1, 0, -1, -1, -1, -1 ]) ]), $a([ "micro", "M3", $1.vM3, 15, 15, 98, 99, 132, $a([ 6, 8, 99, 99 ]), $a([ 1, 0, 1, 0, -1, -1, -1, -1 ]) ]), $a([ "micro", "M4", $1.vM4, 17, 17, 98, 99, 192, $a([ 8, 10, 14, 99 ]), $a([ 1, 0, 1, 0, 1, 0, -1, -1 ]) ]), $a([ "full", "1", $1.v1to9, 21, 21, 98, 99, 208, $a([ 7, 10, 13, 17 ]), $a([ 1, 0, 1, 0, 1, 0, 1, 0 ]) ]), $a([ "full", "2", $1.v1to9, 25, 25, 18, 99, 359, $a([ 10, 16, 22, 28 ]), $a([ 1, 0, 1, 0, 1, 0, 1, 0 ]) ]), $a([ "full", "3", $1.v1to9, 29, 29, 22, 99, 567, $a([ 15, 26, 36, 44 ]), $a([ 1, 0, 1, 0, 2, 0, 2, 0 ]) ]), $a([ "full", "4", $1.v1to9, 33, 33, 26, 99, 807, $a([ 20, 36, 52, 64 ]), $a([ 1, 0, 2, 0, 2, 0, 4, 0 ]) ]), $a([ "full", "5", $1.v1to9, 37, 37, 30, 99, 1079, $a([ 26, 48, 72, 88 ]), $a([ 1, 0, 2, 0, 2, 2, 2, 2 ]) ]), $a([ "full", "6", $1.v1to9, 41, 41, 34, 99, 1383, $a([ 36, 64, 96, 112 ]), $a([ 2, 0, 4, 0, 4, 0, 4, 0 ]) ]), $a([ "full", "7", $1.v1to9, 45, 45, 22, 38, 1568, $a([ 40, 72, 108, 130 ]), $a([ 2, 0, 4, 0, 2, 4, 4, 1 ]) ]), $a([ "full", "8", $1.v1to9, 49, 49, 24, 42, 1936, $a([ 48, 88, 132, 156 ]), $a([ 2, 0, 2, 2, 4, 2, 4, 2 ]) ]), $a([ "full", "9", $1.v1to9, 53, 53, 26, 46, 2336, $a([ 60, 110, 160, 192 ]), $a([ 2, 0, 3, 2, 4, 4, 4, 4 ]) ]), $a([ "full", "10", $1.v10to26, 57, 57, 28, 50, 2768, $a([ 72, 130, 192, 224 ]), $a([ 2, 2, 4, 1, 6, 2, 6, 2 ]) ]), $a([ "full", "11", $1.v10to26, 61, 61, 30, 54, 3232, $a([ 80, 150, 224, 264 ]), $a([ 4, 0, 1, 4, 4, 4, 3, 8 ]) ]), $a([ "full", "12", $1.v10to26, 65, 65, 32, 58, 3728, $a([ 96, 176, 260, 308 ]), $a([ 2, 2, 6, 2, 4, 6, 7, 4 ]) ]), $a([ "full", "13", $1.v10to26, 69, 69, 34, 62, 4256, $a([ 104, 198, 288, 352 ]), $a([ 4, 0, 8, 1, 8, 4, 12, 4 ]) ]), $a([ "full", "14", $1.v10to26, 73, 73, 26, 46, 4651, $a([ 120, 216, 320, 384 ]), $a([ 3, 1, 4, 5, 11, 5, 11, 5 ]) ]), $a([ "full", "15", $1.v10to26, 77, 77, 26, 48, 5243, $a([ 132, 240, 360, 432 ]), $a([ 5, 1, 5, 5, 5, 7, 11, 7 ]) ]), $a([ "full", "16", $1.v10to26, 81, 81, 26, 50, 5867, $a([ 144, 280, 408, 480 ]), $a([ 5, 1, 7, 3, 15, 2, 3, 13 ]) ]), $a([ "full", "17", $1.v10to26, 85, 85, 30, 54, 6523, $a([ 168, 308, 448, 532 ]), $a([ 1, 5, 10, 1, 1, 15, 2, 17 ]) ]), $a([ "full", "18", $1.v10to26, 89, 89, 30, 56, 7211, $a([ 180, 338, 504, 588 ]), $a([ 5, 1, 9, 4, 17, 1, 2, 19 ]) ]), $a([ "full", "19", $1.v10to26, 93, 93, 30, 58, 7931, $a([ 196, 364, 546, 650 ]), $a([ 3, 4, 3, 11, 17, 4, 9, 16 ]) ]), $a([ "full", "20", $1.v10to26, 97, 97, 34, 62, 8683, $a([ 224, 416, 600, 700 ]), $a([ 3, 5, 3, 13, 15, 5, 15, 10 ]) ]), $a([ "full", "21", $1.v10to26, 101, 101, 28, 50, 9252, $a([ 224, 442, 644, 750 ]), $a([ 4, 4, 17, 0, 17, 6, 19, 6 ]) ]), $a([ "full", "22", $1.v10to26, 105, 105, 26, 50, 10068, $a([ 252, 476, 690, 816 ]), $a([ 2, 7, 17, 0, 7, 16, 34, 0 ]) ]), $a([ "full", "23", $1.v10to26, 109, 109, 30, 54, 10916, $a([ 270, 504, 750, 900 ]), $a([ 4, 5, 4, 14, 11, 14, 16, 14 ]) ]), $a([ "full", "24", $1.v10to26, 113, 113, 28, 54, 11796, $a([ 300, 560, 810, 960 ]), $a([ 6, 4, 6, 14, 11, 16, 30, 2 ]) ]), $a([ "full", "25", $1.v10to26, 117, 117, 32, 58, 12708, $a([ 312, 588, 870, 1050 ]), $a([ 8, 4, 8, 13, 7, 22, 22, 13 ]) ]), $a([ "full", "26", $1.v10to26, 121, 121, 30, 58, 13652, $a([ 336, 644, 952, 1110 ]), $a([ 10, 2, 19, 4, 28, 6, 33, 4 ]) ]), $a([ "full", "27", $1.v27to40, 125, 125, 34, 62, 14628, $a([ 360, 700, 1020, 1200 ]), $a([ 8, 4, 22, 3, 8, 26, 12, 28 ]) ]), $a([ "full", "28", $1.v27to40, 129, 129, 26, 50, 15371, $a([ 390, 728, 1050, 1260 ]), $a([ 3, 10, 3, 23, 4, 31, 11, 31 ]) ]), $a([ "full", "29", $1.v27to40, 133, 133, 30, 54, 16411, $a([ 420, 784, 1140, 1350 ]), $a([ 7, 7, 21, 7, 1, 37, 19, 26 ]) ]), $a([ "full", "30", $1.v27to40, 137, 137, 26, 52, 17483, $a([ 450, 812, 1200, 1440 ]), $a([ 5, 10, 19, 10, 15, 25, 23, 25 ]) ]), $a([ "full", "31", $1.v27to40, 141, 141, 30, 56, 18587, $a([ 480, 868, 1290, 1530 ]), $a([ 13, 3, 2, 29, 42, 1, 23, 28 ]) ]), $a([ "full", "32", $1.v27to40, 145, 145, 34, 60, 19723, $a([ 510, 924, 1350, 1620 ]), $a([ 17, 0, 10, 23, 10, 35, 19, 35 ]) ]), $a([ "full", "33", $1.v27to40, 149, 149, 30, 58, 20891, $a([ 540, 980, 1440, 1710 ]), $a([ 17, 1, 14, 21, 29, 19, 11, 46 ]) ]), $a([ "full", "34", $1.v27to40, 153, 153, 34, 62, 22091, $a([ 570, 1036, 1530, 1800 ]), $a([ 13, 6, 14, 23, 44, 7, 59, 1 ]) ]), $a([ "full", "35", $1.v27to40, 157, 157, 30, 54, 23008, $a([ 570, 1064, 1590, 1890 ]), $a([ 12, 7, 12, 26, 39, 14, 22, 41 ]) ]), $a([ "full", "36", $1.v27to40, 161, 161, 24, 50, 24272, $a([ 600, 1120, 1680, 1980 ]), $a([ 6, 14, 6, 34, 46, 10, 2, 64 ]) ]), $a([ "full", "37", $1.v27to40, 165, 165, 28, 54, 25568, $a([ 630, 1204, 1770, 2100 ]), $a([ 17, 4, 29, 14, 49, 10, 24, 46 ]) ]), $a([ "full", "38", $1.v27to40, 169, 169, 32, 58, 26896, $a([ 660, 1260, 1860, 2220 ]), $a([ 4, 18, 13, 32, 48, 14, 42, 32 ]) ]), $a([ "full", "39", $1.v27to40, 173, 173, 26, 54, 28256, $a([ 720, 1316, 1950, 2310 ]), $a([ 20, 4, 40, 7, 43, 22, 10, 67 ]) ]), $a([ "full", "40", $1.v27to40, 177, 177, 30, 58, 29648, $a([ 750, 1372, 2040, 2430 ]), $a([ 19, 6, 18, 31, 34, 34, 20, 61 ]) ]), $a([ "rmqr", "R7x43", $1.vR7x43, 7, 43, 22, 99, 104, $a([ 99, 7, 99, 10 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 0 ]) ]), $a([ "rmqr", "R7x59", $1.vR7x59, 7, 59, 20, 40, 171, $a([ 99, 9, 99, 14 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 0 ]) ]), $a([ "rmqr", "R7x77", $1.vR7x77, 7, 77, 26, 52, 261, $a([ 99, 12, 99, 22 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 0 ]) ]), $a([ "rmqr", "R7x99", $1.vR7x99, 7, 99, 24, 50, 358, $a([ 99, 16, 99, 30 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 0 ]) ]), $a([ "rmqr", "R7x139", $1.vR7x139, 7, 139, 28, 56, 545, $a([ 99, 24, 99, 44 ]), $a([ -1, -1, 1, 0, -1, -1, 2, 0 ]) ]), $a([ "rmqr", "R9x43", $1.vR9x43, 9, 43, 22, 99, 170, $a([ 99, 9, 99, 14 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 0 ]) ]), $a([ "rmqr", "R9x59", $1.vR9x59, 9, 59, 20, 40, 267, $a([ 99, 12, 99, 22 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 0 ]) ]), $a([ "rmqr", "R9x77", $1.vR9x77, 9, 77, 26, 52, 393, $a([ 99, 18, 99, 32 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 1 ]) ]), $a([ "rmqr", "R9x99", $1.vR9x99, 9, 99, 24, 50, 532, $a([ 99, 24, 99, 44 ]), $a([ -1, -1, 1, 0, -1, -1, 2, 0 ]) ]), $a([ "rmqr", "R9x139", $1.vR9x139, 9, 139, 28, 56, 797, $a([ 99, 36, 99, 66 ]), $a([ -1, -1, 1, 1, -1, -1, 3, 0 ]) ]), $a([ "rmqr", "R11x27", $1.vR11x27, 11, 27, 98, 99, 122, $a([ 99, 8, 99, 10 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 0 ]) ]), $a([ "rmqr", "R11x43", $1.vR11x43, 11, 43, 22, 99, 249, $a([ 99, 12, 99, 20 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 0 ]) ]), $a([ "rmqr", "R11x59", $1.vR11x59, 11, 59, 20, 40, 376, $a([ 99, 16, 99, 32 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 1 ]) ]), $a([ "rmqr", "R11x77", $1.vR11x77, 11, 77, 26, 52, 538, $a([ 99, 24, 99, 44 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 1 ]) ]), $a([ "rmqr", "R11x99", $1.vR11x99, 11, 99, 24, 50, 719, $a([ 99, 32, 99, 60 ]), $a([ -1, -1, 1, 1, -1, -1, 1, 1 ]) ]), $a([ "rmqr", "R11x139", $1.vR11x139, 11, 139, 28, 56, 1062, $a([ 99, 48, 99, 90 ]), $a([ -1, -1, 2, 0, -1, -1, 3, 0 ]) ]), $a([ "rmqr", "R13x27", $1.vR13x27, 13, 27, 98, 99, 172, $a([ 99, 9, 99, 14 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 0 ]) ]), $a([ "rmqr", "R13x43", $1.vR13x43, 13, 43, 22, 99, 329, $a([ 99, 14, 99, 28 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 0 ]) ]), $a([ "rmqr", "R13x59", $1.vR13x59, 13, 59, 20, 40, 486, $a([ 99, 22, 99, 40 ]), $a([ -1, -1, 1, 0, -1, -1, 2, 0 ]) ]), $a([ "rmqr", "R13x77", $1.vR13x77, 13, 77, 26, 52, 684, $a([ 99, 32, 99, 56 ]), $a([ -1, -1, 1, 1, -1, -1, 1, 1 ]) ]), $a([ "rmqr", "R13x99", $1.vR13x99, 13, 99, 24, 50, 907, $a([ 99, 40, 99, 78 ]), $a([ -1, -1, 1, 1, -1, -1, 1, 2 ]) ]), $a([ "rmqr", "R13x139", $1.vR13x139, 13, 139, 28, 56, 1328, $a([ 99, 60, 99, 112 ]), $a([ -1, -1, 2, 1, -1, -1, 2, 2 ]) ]), $a([ "rmqr", "R15x43", $1.vR15x43, 15, 43, 22, 99, 409, $a([ 99, 18, 99, 36 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 1 ]) ]), $a([ "rmqr", "R15x59", $1.vR15x59, 15, 59, 20, 40, 596, $a([ 99, 26, 99, 48 ]), $a([ -1, -1, 1, 0, -1, -1, 2, 0 ]) ]), $a([ "rmqr", "R15x77", $1.vR15x77, 15, 77, 26, 52, 830, $a([ 99, 36, 99, 72 ]), $a([ -1, -1, 1, 1, -1, -1, 2, 1 ]) ]), $a([ "rmqr", "R15x99", $1.vR15x99, 15, 99, 24, 50, 1095, $a([ 99, 48, 99, 88 ]), $a([ -1, -1, 2, 0, -1, -1, 4, 0 ]) ]), $a([ "rmqr", "R15x139", $1.vR15x139, 15, 139, 28, 56, 1594, $a([ 99, 72, 99, 130 ]), $a([ -1, -1, 2, 1, -1, -1, 1, 4 ]) ]), $a([ "rmqr", "R17x43", $1.vR17x43, 17, 43, 22, 99, 489, $a([ 99, 22, 99, 40 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 1 ]) ]), $a([ "rmqr", "R17x59", $1.vR17x59, 17, 59, 20, 40, 706, $a([ 99, 32, 99, 60 ]), $a([ -1, -1, 2, 0, -1, -1, 2, 0 ]) ]), $a([ "rmqr", "R17x77", $1.vR17x77, 17, 77, 26, 52, 976, $a([ 99, 44, 99, 84 ]), $a([ -1, -1, 2, 0, -1, -1, 1, 2 ]) ]), $a([ "rmqr", "R17x99", $1.vR17x99, 17, 99, 24, 50, 1283, $a([ 99, 60, 99, 104 ]), $a([ -1, -1, 2, 1, -1, -1, 4, 0 ]) ]), $a([ "rmqr", "R17x139", $1.vR17x139, 17, 139, 28, 56, 1860, $a([ 99, 80, 99, 156 ]), $a([ -1, -1, 4, 0, -1, -1, 2, 4 ]) ]) ]); - $k[$j++] = "eclval"; - $search("LMQH", $1.eclevel); - $j--; - var _Iz = $k[--$j]; - var _J0 = $k[--$j]; - $k[$j++] = _Iz.length; - $k[$j++] = _J0; - $j--; - var _J1 = $k[--$j]; - var _J2 = $k[--$j]; - $k[$j++] = _J1; - $k[$j++] = _J2; - $j--; - var _J3 = $k[--$j]; - $1[$k[--$j]] = _J3; - for (var _J7 = 0, _J6 = $1.metrics.length - 1; _J7 <= _J6; _J7 += 1) { - $1.i = _J7; - $1.m = $get($1.metrics, $1.i); - $1.frmt = $get($1.m, 0); - $1.vers = $get($1.m, 1); - $1.vergrp = $get($1.m, 2); - $1.verind = $1.i - 44; - $1.rows = $get($1.m, 3); - $1.cols = $get($1.m, 4); - $1.asp2 = $get($1.m, 5); - $1.asp3 = $get($1.m, 6); - $1.nmod = $get($1.m, 7); - $1.ncws = ~~($1.nmod / 8); - $1.rbit = $1.nmod % 8; - $1.lc4b = false; - if ($eq($1.vers, "M1") || $eq($1.vers, "M3")) { - $1.ncws = $1.ncws + 1; - $1.rbit = 0; - $1.lc4b = true; - } - $1.ecws = $get($get($1.m, 8), $1.eclval); - $1.dcws = $f($1.ncws - $1.ecws); - var _Jf = $1.lc4b ? 4 : 0; - $1.dmod = $f($1.dcws * 8 - _Jf); - $1.ecb1 = $get($get($1.m, 9), $1.eclval * 2); - $1.ecb2 = $get($get($1.m, 9), $f($1.eclval * 2 + 1)); - $1.okay = true; - if ($ne($1.format, $1.frmt)) { - $1.okay = false; - } - if ($eq($1.frmt, "micro") && $1.fnc1first) { - $1.okay = false; - } - if ($ne($1.version, "unset") && $ne($1.version, $1.vers)) { - $1.okay = false; - } - if ($1.ecb1 == -1 || $1.ecb2 == -1) { - $1.okay = false; - } - $1.verbits = $get($1.msgbits, $1.vergrp); - if ($1.verbits == -1) { - $1.okay = false; - } else { - if ($1.verbits.length > $1.dmod) { - $1.okay = false; - } - } - $1.term = $geti("000000000", 0, $get($1.termlens, $1.vergrp)); - if ($1.okay) { - break; - } - } - if (!$1.okay) { - $k[$j++] = "bwipp.qrcodeNoValidSymbol"; - $k[$j++] = "No valid symbol available"; - $0.raiseerror(); - } - $1.format = $1.frmt; - $1.version = $1.vers; - $1.msgbits = $1.verbits; - $1.dcpb = ~~($1.dcws / $f($1.ecb1 + $1.ecb2)); - $1.ecpb = ~~($1.ncws / $f($1.ecb1 + $1.ecb2)) - $1.dcpb; - var _KJ = $1.term; - var _KK = $1.dmod; - var _KL = $1.msgbits; - var _KM = $1.term; - var _KN = _KM.length; - var _KO = $f(_KK - _KL.length); - if ($f(_KK - _KL.length) > _KM.length) { - var _ = _KN; - _KN = _KO; - _KO = _; - } - $1.term = $geti(_KJ, 0, _KO); - var _KS = $s($1.msgbits.length + $1.term.length); - $puti(_KS, 0, $1.msgbits); - $puti(_KS, $1.msgbits.length, $1.term); - $1.msgbits = _KS; - $1.pad = $s($1.dmod); - for (var _Ka = 0, _KZ = $1.pad.length - 1; _Ka <= _KZ; _Ka += 1) { - $put($1.pad, _Ka, 48); - } - $puti($1.pad, 0, $1.msgbits); - $1.padstrs = $a([ "11101100", "00010001" ]); - $1.padnum = 0; - var _Ki = $1.lc4b ? 5 : 1; - for (var _Kk = ~~(Math.ceil($1.msgbits.length / 8) * 8), _Kj = $f($1.dmod - _Ki); _Kk <= _Kj; _Kk += 8) { - $puti($1.pad, _Kk, $get($1.padstrs, $1.padnum)); - $1.padnum = ($1.padnum + 1) % 2; - } - $1.cws = $a($1.dcws); - for (var _Ku = 0, _Kt = $1.cws.length - 1; _Ku <= _Kt; _Ku += 1) { - $1.c = _Ku; - $1.bpcw = 8; - if ($1.lc4b && $1.c == $1.cws.length - 1) { - $1.bpcw = 4; - } - $1.cwb = $geti($1.pad, $1.c * 8, $1.bpcw); - $1.cw = 0; - for (var _L4 = 0, _L3 = $1.bpcw - 1; _L4 <= _L3; _L4 += 1) { - $1.i = _L4; - $1.cw = $f($1.cw + ~~Math.pow(2, $1.bpcw - $1.i - 1) * $f($get($1.cwb, $1.i) - 48)); - } - $put($1.cws, $1.c, $1.cw); - } - if ($1.lc4b) { - var _LF = $1.cws; - var _LG = $1.cws; - $put(_LF, _LG.length - 1, $get(_LF, _LG.length - 1) << 4); - } - var _LJ = $get($1.options, "debugcws") !== undefined; - if (_LJ) { - $k[$j++] = "bwipp.debugcws"; - $k[$j++] = $1.cws; - $0.raiseerror(); - } - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _LL = 0, _LM = 255; _LL < _LM; _LL++) { - var _LN = $k[--$j]; - var _LO = _LN * 2; - $k[$j++] = _LN; - $k[$j++] = _LO; - if (_LO >= 256) { - var _LP = $k[--$j]; - $k[$j++] = _LP ^ 285; - } - } - $1.rsalog = $a(); - $1.rslog = $a(256); - for (var _LS = 1; _LS <= 255; _LS += 1) { - $put($1.rslog, $get($1.rsalog, _LS), _LS); - } - $1.rsprod = function() { - var _LW = $k[--$j]; - var _LX = $k[--$j]; - $k[$j++] = _LX; - $k[$j++] = _LW; - if (_LW != 0 && _LX != 0) { - var _La = $get($1.rslog, $k[--$j]); - var _Lf = $get($1.rsalog, $f(_La + $get($1.rslog, $k[--$j])) % 255); - $k[$j++] = _Lf; - } else { - $j -= 2; - $k[$j++] = 0; - } - }; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _Lh = 0, _Li = $1.ecpb; _Lh < _Li; _Lh++) { - $k[$j++] = 0; - } - $1.coeffs = $a(); - for (var _Lm = 0, _Ll = $1.ecpb - 1; _Lm <= _Ll; _Lm += 1) { - $1.i = _Lm; - $put($1.coeffs, $1.i + 1, $get($1.coeffs, $1.i)); - for (var _Lt = $1.i; _Lt >= 1; _Lt -= 1) { - $1.j = _Lt; - $k[$j++] = $1.coeffs; - $k[$j++] = $1.j; - $k[$j++] = $get($1.coeffs, $1.j - 1); - $k[$j++] = $get($1.coeffs, $1.j); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _M5 = $k[--$j]; - var _M6 = $k[--$j]; - var _M7 = $k[--$j]; - $put($k[--$j], _M7, $xo(_M6, _M5)); - } - $k[$j++] = $1.coeffs; - $k[$j++] = 0; - $k[$j++] = $get($1.coeffs, 0); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _MF = $k[--$j]; - var _MG = $k[--$j]; - $put($k[--$j], _MG, _MF); - } - $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); + } //#20727 + $1.addtomsgbits(); //#20727 + $1.i = $1.i + 1; //#20728 + if (($1.char == $1.su) || ($1.char == $1.sp)) { //#20734 + $k[$j++] = $get($1.seq, $1.i); //#20732 + if ($1.char == $1.su) { //#20732 + $1.encu(); //#20732 + } else { //#20732 + $1.encp(); //#20732 + } //#20732 + $1.addtomsgbits(); //#20732 + $1.i = $1.i + 1; //#20733 + } //#20733 + if ($1.char == $1.lu) { //#20737 + $1.state = $1.U; //#20737 + } //#20737 + if ($1.char == $1.ll) { //#20738 + $1.state = $1.L; //#20738 + } //#20738 + if ($1.char == $1.lm) { //#20739 + $1.state = $1.M; //#20739 + } //#20739 + if ($1.char == $1.lp) { //#20740 + $1.state = $1.P; //#20740 + } //#20740 + if ($1.char == $1.ld) { //#20741 + $1.state = $1.D; //#20741 + } //#20741 + if ($1.char == $1.sb) { //#20742 + $1.state = $1.B; //#20742 + } //#20742 + } else { //#20773 + $1.numbytes = 0; //#20747 + for (;;) { //#20751 + if (($1.i + $1.numbytes) >= $1.seq.length) { //#20748 + break; //#20748 + } //#20748 + if ($get($1.seq, $1.i + $1.numbytes) < 0) { //#20749 + break; //#20749 + } //#20749 + $1.numbytes = $1.numbytes + 1; //#20750 + } //#20750 + if ($1.numbytes <= 31) { //#20758 + $k[$j++] = $1.numbytes; //#20755 + $k[$j++] = 5; //#20755 + $1.tobin(); //#20755 + $1.addtomsgbits(); //#20755 + } else { //#20758 + $k[$j++] = 0; //#20757 + $k[$j++] = 5; //#20757 + $1.tobin(); //#20757 + $1.addtomsgbits(); //#20757 + $k[$j++] = $1.numbytes - 31; //#20758 + $k[$j++] = 11; //#20758 + $1.tobin(); //#20758 + $1.addtomsgbits(); //#20758 + } //#20758 + for (var _9b = 0, _9c = $1.numbytes; _9b < _9c; _9b++) { //#20765 + $k[$j++] = $get($1.seq, $1.i); //#20763 + $k[$j++] = 8; //#20763 + $1.tobin(); //#20763 + $1.addtomsgbits(); //#20763 + $1.i = $1.i + 1; //#20764 + } //#20764 + if ($1.i < $1.seq.length) { //#20774 + $1.char = $get($1.seq, $1.i); //#20769 + $1.i = $1.i + 1; //#20770 + if ($1.char == $1.lu) { //#20771 + $1.state = $1.U; //#20771 + } //#20771 + if ($1.char == $1.ll) { //#20772 + $1.state = $1.L; //#20772 + } //#20772 + if ($1.char == $1.lm) { //#20773 + $1.state = $1.M; //#20773 + } //#20773 + } //#20773 + } //#20773 + } //#20773 + } //#20773 + $1.metrics = $a([$a(["rune", 0, 0, 0, 6]), $a(["compact", 1, 1, 17, 6]), $a(["full", 1, 1, 21, 6]), $a(["compact", 2, 0, 40, 6]), $a(["full", 2, 1, 48, 6]), $a(["compact", 3, 0, 51, 8]), $a(["full", 3, 1, 60, 8]), $a(["compact", 4, 0, 76, 8]), $a(["full", 4, 1, 88, 8]), $a(["full", 5, 1, 120, 8]), $a(["full", 6, 1, 156, 8]), $a(["full", 7, 1, 196, 8]), $a(["full", 8, 1, 240, 8]), $a(["full", 9, 1, 230, 10]), $a(["full", 10, 1, 272, 10]), $a(["full", 11, 1, 316, 10]), $a(["full", 12, 1, 364, 10]), $a(["full", 13, 1, 416, 10]), $a(["full", 14, 1, 470, 10]), $a(["full", 15, 1, 528, 10]), $a(["full", 16, 1, 588, 10]), $a(["full", 17, 1, 652, 10]), $a(["full", 18, 1, 720, 10]), $a(["full", 19, 1, 790, 10]), $a(["full", 20, 1, 864, 10]), $a(["full", 21, 1, 940, 10]), $a(["full", 22, 1, 1020, 10]), $a(["full", 23, 0, 920, 12]), $a(["full", 24, 0, 992, 12]), $a(["full", 25, 0, 1066, 12]), $a(["full", 26, 0, 1144, 12]), $a(["full", 27, 0, 1224, 12]), $a(["full", 28, 0, 1306, 12]), $a(["full", 29, 0, 1392, 12]), $a(["full", 30, 0, 1480, 12]), $a(["full", 31, 0, 1570, 12]), $a(["full", 32, 0, 1664, 12])]); //#20797 + $1.i = 0; //#20799 + for (;;) { //#20817 + $1.m = $get($1.metrics, $1.i); //#20801 + $1.frmt = $get($1.m, 0); //#20802 + $1.mlyr = $get($1.m, 1); //#20803 + $1.icap = $get($1.m, 2); //#20804 + $1.ncws = $get($1.m, 3); //#20805 + $1.bpcw = $get($1.m, 4); //#20806 + $1.numecw = ~~(Math.ceil($f((($1.ncws * $1.eclevel) / 100) + $1.ecaddchars))); //#20807 + if ($1.msgbits.length == 0) { //#20808 + $1.numecw = 0; //#20808 + } //#20808 + $1.numdcw = $f($1.ncws - $1.numecw); //#20809 + $1.okay = true; //#20810 + if ($ne($1.format, "unset") && $ne($1.format, $1.frmt)) { //#20811 + $1.okay = false; //#20811 + } //#20811 + if ($1.readerinit && ($1.icap != 1)) { //#20812 + $1.okay = false; //#20812 + } //#20812 + if (($1.layers != -1) && ($1.layers != $1.mlyr)) { //#20813 + $1.okay = false; //#20813 + } //#20813 + if ((~~Math.ceil($1.msgbits.length / $1.bpcw)) > $1.numdcw) { //#20814 + $1.okay = false; //#20814 + } //#20814 + if ($1.okay) { //#20815 + break; //#20815 + } //#20815 + $1.i = $1.i + 1; //#20816 + } //#20816 + $1.layers = $1.mlyr; //#20818 + $1.format = $1.frmt; //#20819 + $1.allzero = function() { + var _B6 = $k[--$j]; //#20822 + $k[$j++] = $eq(_B6, $geti("000000000000", 0, _B6.length)); //#20822 + }; //#20822 + $1.allones = function() { + var _B8 = $k[--$j]; //#20823 + $k[$j++] = $eq(_B8, $geti("111111111111", 0, _B8.length)); //#20823 + }; //#20823 + $1.cws = $a($1.ncws); //#20824 + $1.m = 0; //#20825 + $1.c = 0; //#20825 + for (;;) { //#20852 + if ($1.msgbits.length <= $1.m) { //#20827 + break; //#20827 + } //#20827 + if (($1.msgbits.length - $1.m) >= $1.bpcw) { //#20841 + $1.cwb = $geti($1.msgbits, $1.m, $f($1.bpcw - 1)); //#20829 + $1.cwf = $geti($1.msgbits, $f($f($1.m + $1.bpcw) - 1), 1); //#20830 + $k[$j++] = $1.cwb; //#20831 + $1.allzero(); //#20831 + if ($k[--$j]) { //#20831 + $1.cwf = "1"; //#20831 + $1.m = $1.m - 1; //#20831 + } //#20831 + $k[$j++] = $1.cwb; //#20832 + $1.allones(); //#20832 + if ($k[--$j]) { //#20832 + $1.cwf = "0"; //#20832 + $1.m = $1.m - 1; //#20832 + } //#20832 + var _BV = $s(12); //#20834 + $puti(_BV, 0, $1.cwb); //#20834 + $puti(_BV, $f($1.bpcw - 1), $1.cwf); //#20835 + $1.cwb = $geti(_BV, 0, $1.bpcw); //#20837 + } else { //#20841 + $1.cwb = $geti($1.msgbits, $1.m, $1.msgbits.length - $1.m); //#20839 + var _Bh = $strcpy($s(12), "111111111111"); //#20840 + $puti(_Bh, 0, $1.cwb); //#20840 + $1.cwb = $geti(_Bh, 0, $1.bpcw); //#20840 + $k[$j++] = $1.cwb; //#20841 + $1.allones(); //#20841 + if ($k[--$j]) { //#20841 + $puti($1.cwb, $1.cwb.length - 1, "0"); //#20841 + } //#20841 + } //#20841 + $1.cw = 0; //#20844 + for (var _Br = 0, _Bq = $f($1.bpcw - 1); _Br <= _Bq; _Br += 1) { //#20848 + $1.i = _Br; //#20846 + $1.cw = $f($1.cw + ((~~(Math.pow(2, $f($f($1.bpcw - $1.i) - 1)))) * $f($get($1.cwb, $1.i) - 48))); //#20847 + } //#20847 + $put($1.cws, $1.c, $1.cw); //#20849 + $1.m = $f($1.m + $1.bpcw); //#20850 + $1.c = $1.c + 1; //#20851 + } //#20851 + $1.cws = $geti($1.cws, 0, $1.c); //#20853 $1.rscodes = function() { - $1.rscws = $k[--$j]; - $1.rsnd = $1.rscws.length; - $k[$j++] = Infinity; - $forall($1.rscws); - for (var _MP = 0, _MQ = $1.ecpb; _MP < _MQ; _MP++) { - $k[$j++] = 0; - } - $1.rscws = $a(); - for (var _MU = 0, _MT = $1.rsnd - 1; _MU <= _MT; _MU += 1) { - $1.m = _MU; - $1.k = $get($1.rscws, $1.m); - for (var _Ma = 0, _MZ = $1.ecpb - 1; _Ma <= _MZ; _Ma += 1) { - $1.j = _Ma; - $k[$j++] = $1.rscws; - $k[$j++] = $1.m + $1.j + 1; - $k[$j++] = $get($1.coeffs, $1.ecpb - $1.j - 1); - $k[$j++] = $1.k; - $1.rsprod(); - var _Mn = $k[--$j]; - var _Mo = $k[--$j]; - $put($k[--$j], _Mo, $xo(_Mn, $get($1.rscws, $1.m + $1.j + 1))); - } - } - $k[$j++] = $geti($1.rscws, $1.rsnd, $1.ecpb); - }; - $1.dcwsb = $a($f($1.ecb1 + $1.ecb2)); - $1.ecwsb = $a($f($1.ecb1 + $1.ecb2)); - for (var _N2 = 0, _N1 = $f($1.ecb1 - 1); _N2 <= _N1; _N2 += 1) { - $1.i = _N2; - $put($1.dcwsb, $1.i, $geti($1.cws, $1.i * $1.dcpb, $1.dcpb)); - $k[$j++] = $1.ecwsb; - $k[$j++] = $1.i; - $k[$j++] = $get($1.dcwsb, $1.i); - $1.rscodes(); - var _NF = $k[--$j]; - var _NG = $k[--$j]; - $put($k[--$j], _NG, _NF); - } - for (var _NK = 0, _NJ = $f($1.ecb2 - 1); _NK <= _NJ; _NK += 1) { - $1.i = _NK; - $put($1.dcwsb, $f($1.ecb1 + $1.i), $geti($1.cws, $f($1.ecb1 * $1.dcpb + $1.i * ($1.dcpb + 1)), $1.dcpb + 1)); - $k[$j++] = $1.ecwsb; - $k[$j++] = $f($1.ecb1 + $1.i); - $k[$j++] = $get($1.dcwsb, $f($1.ecb1 + $1.i)); - $1.rscodes(); - var _Nc = $k[--$j]; - var _Nd = $k[--$j]; - $put($k[--$j], _Nd, _Nc); - } - $1.cws = $a($1.ncws); - $1.cw = 0; - for (var _Nj = 0, _Ni = $1.dcpb; _Nj <= _Ni; _Nj += 1) { - $1.i = _Nj; - for (var _Nn = 0, _Nm = $f($f($1.ecb1 + $1.ecb2) - 1); _Nn <= _Nm; _Nn += 1) { - $1.j = _Nn; - if ($1.i < $get($1.dcwsb, $1.j).length) { - $put($1.cws, $1.cw, $get($get($1.dcwsb, $1.j), $1.i)); - $1.cw = $1.cw + 1; - } - } - } - for (var _O2 = 0, _O1 = $1.ecpb - 1; _O2 <= _O1; _O2 += 1) { - $1.i = _O2; - for (var _O6 = 0, _O5 = $f($f($1.ecb1 + $1.ecb2) - 1); _O6 <= _O5; _O6 += 1) { - $1.j = _O6; - $put($1.cws, $1.cw, $get($get($1.ecwsb, $1.j), $1.i)); - $1.cw = $1.cw + 1; - } - } - if ($1.rbit > 0) { - $1.pad = $a($1.cws.length + 1); - $puti($1.pad, 0, $1.cws); - $put($1.pad, $1.pad.length - 1, 0); - $1.cws = $1.pad; - } - if ($1.lc4b) { - var _OO = $1.cws; - var _OP = $1.dcws; - $put(_OO, $f(_OP - 1), $get(_OO, $f(_OP - 1)) >>> 4); - for (var _OU = $f($1.dcws - 1), _OT = $1.ncws - 2; _OU <= _OT; _OU += 1) { - $1.i = _OU; - $put($1.cws, $1.i, ($get($1.cws, $1.i) & 15) << 4); - $put($1.cws, $1.i, $get($1.cws, $1.i + 1) >>> 4 & 15 | $get($1.cws, $1.i)); - } - $put($1.cws, $1.ncws - 1, ($get($1.cws, $1.ncws - 1) & 15) << 4); - } - var _Oo = $get($1.options, "debugecc") !== undefined; - if (_Oo) { - $k[$j++] = "bwipp.debugecc"; - $k[$j++] = $1.cws; - $0.raiseerror(); - } - $k[$j++] = Infinity; - for (var _Os = 0, _Ot = $1.rows * $1.cols; _Os < _Ot; _Os++) { - $k[$j++] = -1; - } - $1.pixs = $a(); - $1.qmv = function() { - var _Ow = $k[--$j]; - var _Ox = $k[--$j]; - $k[$j++] = $f(_Ox + _Ow * $1.cols); - }; - if ($eq($1.format, "full")) { - for (var _P1 = 8, _P0 = $f($1.cols - 9); _P1 <= _P0; _P1 += 1) { - $1.i = _P1; - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = 6; - $1.qmv(); - var _P5 = $k[--$j]; - $put($k[--$j], _P5, ($1.i + 1) % 2); - $k[$j++] = $1.pixs; - $k[$j++] = 6; - $k[$j++] = $1.i; - $1.qmv(); - var _PA = $k[--$j]; - $put($k[--$j], _PA, ($1.i + 1) % 2); - } - } - if ($eq($1.format, "micro")) { - for (var _PF = 8, _PE = $f($1.cols - 1); _PF <= _PE; _PF += 1) { - $1.i = _PF; - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = 0; - $1.qmv(); - var _PJ = $k[--$j]; - $put($k[--$j], _PJ, ($1.i + 1) % 2); - $k[$j++] = $1.pixs; - $k[$j++] = 0; - $k[$j++] = $1.i; - $1.qmv(); - var _PO = $k[--$j]; - $put($k[--$j], _PO, ($1.i + 1) % 2); - } - } - if ($eq($1.format, "rmqr")) { - for (var _PT = 3, _PS = $f($1.cols - 4); _PT <= _PS; _PT += 1) { - $1.i = _PT; - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = 0; - $1.qmv(); - var _PX = $k[--$j]; - $put($k[--$j], _PX, ($1.i + 1) % 2); - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = $f($1.rows - 1); - $1.qmv(); - var _Pd = $k[--$j]; - $put($k[--$j], _Pd, ($1.i + 1) % 2); - } - for (var _Ph = 3, _Pg = $f($1.rows - 4); _Ph <= _Pg; _Ph += 1) { - $1.i = _Ph; - $k[$j++] = $1.pixs; - $k[$j++] = 0; - $k[$j++] = $1.i; - $1.qmv(); - var _Pl = $k[--$j]; - $put($k[--$j], _Pl, ($1.i + 1) % 2); - $k[$j++] = $1.pixs; - $k[$j++] = $f($1.cols - 1); - $k[$j++] = $1.i; - $1.qmv(); - var _Pr = $k[--$j]; - $put($k[--$j], _Pr, ($1.i + 1) % 2); - } - for (var _Py = $f($1.asp2 - 1), _Pz = $f($1.asp3 - $1.asp2), _Px = $f($1.cols - 13); _Pz < 0 ? _Py >= _Px : _Py <= _Px; _Py += _Pz) { - $1.i = _Py; - for (var _Q2 = 3, _Q1 = $f($1.rows - 4); _Q2 <= _Q1; _Q2 += 1) { - $1.j = _Q2; - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.qmv(); - var _Q7 = $k[--$j]; - $put($k[--$j], _Q7, ($1.j + 1) % 2); - } - } - } - $1.fpat = $a([ $a([ 1, 1, 1, 1, 1, 1, 1, 0 ]), $a([ 1, 0, 0, 0, 0, 0, 1, 0 ]), $a([ 1, 0, 1, 1, 1, 0, 1, 0 ]), $a([ 1, 0, 1, 1, 1, 0, 1, 0 ]), $a([ 1, 0, 1, 1, 1, 0, 1, 0 ]), $a([ 1, 0, 0, 0, 0, 0, 1, 0 ]), $a([ 1, 1, 1, 1, 1, 1, 1, 0 ]), $a([ 0, 0, 0, 0, 0, 0, 0, 0 ]) ]); - $1.fsubpat = $a([ $a([ 1, 1, 1, 1, 1, 9, 9, 9 ]), $a([ 1, 0, 0, 0, 1, 9, 9, 9 ]), $a([ 1, 0, 1, 0, 1, 9, 9, 9 ]), $a([ 1, 0, 0, 0, 1, 9, 9, 9 ]), $a([ 1, 1, 1, 1, 1, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]) ]); - $1.fcorpat = $a([ $a([ 1, 1, 1, 9, 9, 9, 9, 9 ]), $a([ 1, 0, 9, 9, 9, 9, 9, 9 ]), $a([ 1, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]) ]); - $1.fnullpat = $a([ $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]) ]); - var _Qy = new Map([ [ "full", $a([ $1.fpat, $1.fpat, $1.fpat, $1.fnullpat ]) ], [ "micro", $a([ $1.fpat, $1.fnullpat, $1.fnullpat, $1.fnullpat ]) ], [ "rmqr", $a([ $1.fpat, $1.fcorpat, $1.fcorpat, $1.fsubpat ]) ] ]); - $1.fpats = $get(_Qy, $1.format); - for (var _R1 = 0; _R1 <= 7; _R1 += 1) { - $1.y = _R1; - for (var _R2 = 0; _R2 <= 7; _R2 += 1) { - $1.x = _R2; - $1.fpb0 = $get($get($get($1.fpats, 0), $1.y), $1.x); - $1.fpb1 = $get($get($get($1.fpats, 1), $1.y), $1.x); - $1.fpb2 = $get($get($get($1.fpats, 2), $1.y), $1.x); - $1.fpb3 = $get($get($get($1.fpats, 3), $1.y), $1.x); - if ($1.fpb0 != 9 && $1.y < $1.rows) { - $k[$j++] = $1.pixs; - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $1.qmv(); - var _RY = $k[--$j]; - $put($k[--$j], _RY, $1.fpb0); - } - if ($1.fpb1 != 9) { - $k[$j++] = $1.pixs; - $k[$j++] = $f($f($1.cols - $1.x) - 1); - $k[$j++] = $1.y; - $1.qmv(); - var _Rg = $k[--$j]; - $put($k[--$j], _Rg, $1.fpb1); - } - if ($1.fpb2 != 9) { - $k[$j++] = $1.pixs; - $k[$j++] = $1.x; - $k[$j++] = $f($f($1.rows - $1.y) - 1); - $1.qmv(); - var _Ro = $k[--$j]; - $put($k[--$j], _Ro, $1.fpb2); - } - if ($1.fpb3 != 9) { - $k[$j++] = $1.pixs; - $k[$j++] = $f($f($1.cols - $1.x) - 1); - $k[$j++] = $f($f($1.rows - $1.y) - 1); - $1.qmv(); - var _Rx = $k[--$j]; - $put($k[--$j], _Rx, $1.fpb3); - } - } - } - $1.putalgnpat = function() { - $1.py = $k[--$j]; - $1.px = $k[--$j]; - for (var _S1 = 0; _S1 <= 4; _S1 += 1) { - $1.pb = _S1; - for (var _S2 = 0; _S2 <= 4; _S2 += 1) { - $1.pa = _S2; - $1.algnb = $get($get($1.algnpat, $1.pb), $1.pa); - if ($1.algnb != 9) { - $k[$j++] = $1.pixs; - $k[$j++] = $f($1.px + $1.pa); - $k[$j++] = $f($1.py + $1.pb); - $1.qmv(); - var _SF = $k[--$j]; - $put($k[--$j], _SF, $1.algnb); - } - } - } - }; - if ($eq($1.format, "full")) { - $1.algnpat = $a([ $a([ 1, 1, 1, 1, 1 ]), $a([ 1, 0, 0, 0, 1 ]), $a([ 1, 0, 1, 0, 1 ]), $a([ 1, 0, 0, 0, 1 ]), $a([ 1, 1, 1, 1, 1 ]) ]); - for (var _ST = $f($1.asp2 - 2), _SU = $f($1.asp3 - $1.asp2), _SS = $f($1.cols - 13); _SU < 0 ? _ST >= _SS : _ST <= _SS; _ST += _SU) { - $1.i = _ST; - $k[$j++] = $1.i; - $k[$j++] = 4; - $1.putalgnpat(); - $k[$j++] = 4; - $k[$j++] = $1.i; - $1.putalgnpat(); - } - for (var _Sc = $f($1.asp2 - 2), _Sd = $f($1.asp3 - $1.asp2), _Sb = $f($1.cols - 9); _Sd < 0 ? _Sc >= _Sb : _Sc <= _Sb; _Sc += _Sd) { - $1.x = _Sc; - for (var _Sj = $f($1.asp2 - 2), _Sk = $f($1.asp3 - $1.asp2), _Si = $f($1.rows - 9); _Sk < 0 ? _Sj >= _Si : _Sj <= _Si; _Sj += _Sk) { - $1.y = _Sj; - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $1.putalgnpat(); - } - } - } - if ($eq($1.format, "rmqr")) { - $1.algnpat = $a([ $a([ 1, 1, 1, 9, 9 ]), $a([ 1, 0, 1, 9, 9 ]), $a([ 1, 1, 1, 9, 9 ]), $a([ 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9 ]) ]); - for (var _Sz = $f($1.asp2 - 2), _T0 = $f($1.asp3 - $1.asp2), _Sy = $f($1.cols - 13); _T0 < 0 ? _Sz >= _Sy : _Sz <= _Sy; _Sz += _T0) { - $1.i = _Sz; - $k[$j++] = $1.i; - $k[$j++] = 0; - $1.putalgnpat(); - $k[$j++] = $1.i; - $k[$j++] = $f($1.rows - 3); - $1.putalgnpat(); - } - } - var _W1 = new Map([ [ "full", $a([ $a([ $a([ 0, 8 ]), $a([ 8, $f($1.cols - 1) ]) ]), $a([ $a([ 1, 8 ]), $a([ 8, $f($1.cols - 2) ]) ]), $a([ $a([ 2, 8 ]), $a([ 8, $f($1.cols - 3) ]) ]), $a([ $a([ 3, 8 ]), $a([ 8, $f($1.cols - 4) ]) ]), $a([ $a([ 4, 8 ]), $a([ 8, $f($1.cols - 5) ]) ]), $a([ $a([ 5, 8 ]), $a([ 8, $f($1.cols - 6) ]) ]), $a([ $a([ 7, 8 ]), $a([ 8, $f($1.cols - 7) ]) ]), $a([ $a([ 8, 8 ]), $a([ $f($1.cols - 8), 8 ]) ]), $a([ $a([ 8, 7 ]), $a([ $f($1.cols - 7), 8 ]) ]), $a([ $a([ 8, 5 ]), $a([ $f($1.cols - 6), 8 ]) ]), $a([ $a([ 8, 4 ]), $a([ $f($1.cols - 5), 8 ]) ]), $a([ $a([ 8, 3 ]), $a([ $f($1.cols - 4), 8 ]) ]), $a([ $a([ 8, 2 ]), $a([ $f($1.cols - 3), 8 ]) ]), $a([ $a([ 8, 1 ]), $a([ $f($1.cols - 2), 8 ]) ]), $a([ $a([ 8, 0 ]), $a([ $f($1.cols - 1), 8 ]) ]) ]) ], [ "micro", $a([ $a([ $a([ 1, 8 ]) ]), $a([ $a([ 2, 8 ]) ]), $a([ $a([ 3, 8 ]) ]), $a([ $a([ 4, 8 ]) ]), $a([ $a([ 5, 8 ]) ]), $a([ $a([ 6, 8 ]) ]), $a([ $a([ 7, 8 ]) ]), $a([ $a([ 8, 8 ]) ]), $a([ $a([ 8, 7 ]) ]), $a([ $a([ 8, 6 ]) ]), $a([ $a([ 8, 5 ]) ]), $a([ $a([ 8, 4 ]) ]), $a([ $a([ 8, 3 ]) ]), $a([ $a([ 8, 2 ]) ]), $a([ $a([ 8, 1 ]) ]) ]) ], [ "rmqr", $a([ $a([ $a([ 11, 3 ]), $a([ $f($1.cols - 3), $f($1.rows - 6) ]) ]), $a([ $a([ 11, 2 ]), $a([ $f($1.cols - 4), $f($1.rows - 6) ]) ]), $a([ $a([ 11, 1 ]), $a([ $f($1.cols - 5), $f($1.rows - 6) ]) ]), $a([ $a([ 10, 5 ]), $a([ $f($1.cols - 6), $f($1.rows - 2) ]) ]), $a([ $a([ 10, 4 ]), $a([ $f($1.cols - 6), $f($1.rows - 3) ]) ]), $a([ $a([ 10, 3 ]), $a([ $f($1.cols - 6), $f($1.rows - 4) ]) ]), $a([ $a([ 10, 2 ]), $a([ $f($1.cols - 6), $f($1.rows - 5) ]) ]), $a([ $a([ 10, 1 ]), $a([ $f($1.cols - 6), $f($1.rows - 6) ]) ]), $a([ $a([ 9, 5 ]), $a([ $f($1.cols - 7), $f($1.rows - 2) ]) ]), $a([ $a([ 9, 4 ]), $a([ $f($1.cols - 7), $f($1.rows - 3) ]) ]), $a([ $a([ 9, 3 ]), $a([ $f($1.cols - 7), $f($1.rows - 4) ]) ]), $a([ $a([ 9, 2 ]), $a([ $f($1.cols - 7), $f($1.rows - 5) ]) ]), $a([ $a([ 9, 1 ]), $a([ $f($1.cols - 7), $f($1.rows - 6) ]) ]), $a([ $a([ 8, 5 ]), $a([ $f($1.cols - 8), $f($1.rows - 2) ]) ]), $a([ $a([ 8, 4 ]), $a([ $f($1.cols - 8), $f($1.rows - 3) ]) ]), $a([ $a([ 8, 3 ]), $a([ $f($1.cols - 8), $f($1.rows - 4) ]) ]), $a([ $a([ 8, 2 ]), $a([ $f($1.cols - 8), $f($1.rows - 5) ]) ]), $a([ $a([ 8, 1 ]), $a([ $f($1.cols - 8), $f($1.rows - 6) ]) ]) ]) ] ]); - $1.formatmap = $get(_W1, $1.format); - $forall($1.formatmap, function() { - $forall($k[--$j], function() { - $forall($k[--$j]); - $1.qmv(); - $put($1.pixs, $k[--$j], 1); - }); - }); - if ($eq($1.format, "full") && $1.cols >= 45) { - $1.versionmap = $a([ $a([ $a([ $f($1.cols - 9), 5 ]), $a([ 5, $f($1.cols - 9) ]) ]), $a([ $a([ $f($1.cols - 10), 5 ]), $a([ 5, $f($1.cols - 10) ]) ]), $a([ $a([ $f($1.cols - 11), 5 ]), $a([ 5, $f($1.cols - 11) ]) ]), $a([ $a([ $f($1.cols - 9), 4 ]), $a([ 4, $f($1.cols - 9) ]) ]), $a([ $a([ $f($1.cols - 10), 4 ]), $a([ 4, $f($1.cols - 10) ]) ]), $a([ $a([ $f($1.cols - 11), 4 ]), $a([ 4, $f($1.cols - 11) ]) ]), $a([ $a([ $f($1.cols - 9), 3 ]), $a([ 3, $f($1.cols - 9) ]) ]), $a([ $a([ $f($1.cols - 10), 3 ]), $a([ 3, $f($1.cols - 10) ]) ]), $a([ $a([ $f($1.cols - 11), 3 ]), $a([ 3, $f($1.cols - 11) ]) ]), $a([ $a([ $f($1.cols - 9), 2 ]), $a([ 2, $f($1.cols - 9) ]) ]), $a([ $a([ $f($1.cols - 10), 2 ]), $a([ 2, $f($1.cols - 10) ]) ]), $a([ $a([ $f($1.cols - 11), 2 ]), $a([ 2, $f($1.cols - 11) ]) ]), $a([ $a([ $f($1.cols - 9), 1 ]), $a([ 1, $f($1.cols - 9) ]) ]), $a([ $a([ $f($1.cols - 10), 1 ]), $a([ 1, $f($1.cols - 10) ]) ]), $a([ $a([ $f($1.cols - 11), 1 ]), $a([ 1, $f($1.cols - 11) ]) ]), $a([ $a([ $f($1.cols - 9), 0 ]), $a([ 0, $f($1.cols - 9) ]) ]), $a([ $a([ $f($1.cols - 10), 0 ]), $a([ 0, $f($1.cols - 10) ]) ]), $a([ $a([ $f($1.cols - 11), 0 ]), $a([ 0, $f($1.cols - 11) ]) ]) ]); - } else { - $1.versionmap = $a([]); - } - var _Xf = $1.versionmap; - for (var _Xg = 0, _Xh = _Xf.length; _Xg < _Xh; _Xg++) { - $forall($get(_Xf, _Xg), function() { - $forall($k[--$j]); - $1.qmv(); - $put($1.pixs, $k[--$j], 0); - }); - } - if ($eq($1.format, "full")) { - $k[$j++] = $1.pixs; - $k[$j++] = 8; - $k[$j++] = $f($1.rows - 8); - $1.qmv(); - var _Xp = $k[--$j]; - $put($k[--$j], _Xp, 0); - } - var _Y9 = $a([ function() { - var _Xr = $k[--$j]; - var _Xs = $k[--$j]; - $k[$j++] = $f(_Xs + _Xr) % 2; - }, function() { - var _Xt = $k[--$j]; - var _Xu = $k[--$j]; - $k[$j++] = _Xt; - $k[$j++] = _Xu; - $j--; - var _Xv = $k[--$j]; - $k[$j++] = _Xv % 2; - }, function() { - $j--; - var _Xw = $k[--$j]; - $k[$j++] = _Xw % 3; - }, function() { - var _Xx = $k[--$j]; - var _Xy = $k[--$j]; - $k[$j++] = $f(_Xy + _Xx) % 3; - }, function() { - var _Xz = $k[--$j]; - var _Y0 = $k[--$j]; - $k[$j++] = (~~(_Xz / 2) + ~~(_Y0 / 3)) % 2; - }, function() { - var _Y1 = $k[--$j]; - var _Y3 = $k[--$j] * _Y1; - $k[$j++] = $f(_Y3 % 2 + _Y3 % 3); - }, function() { - var _Y4 = $k[--$j]; - var _Y6 = $k[--$j] * _Y4; - $k[$j++] = $f(_Y6 % 2 + _Y6 % 3) % 2; - }, function() { - var _Y7 = $k[--$j]; - var _Y8 = $k[--$j]; - $k[$j++] = $f(_Y8 * _Y7 % 3 + $f(_Y8 + _Y7) % 2) % 2; - } ]); - var _YK = $a([ function() { - var _YA = $k[--$j]; - var _YB = $k[--$j]; - $k[$j++] = _YA; - $k[$j++] = _YB; - $j--; - var _YC = $k[--$j]; - $k[$j++] = _YC % 2; - }, function() { - var _YD = $k[--$j]; - var _YE = $k[--$j]; - $k[$j++] = (~~(_YD / 2) + ~~(_YE / 3)) % 2; - }, function() { - var _YF = $k[--$j]; - var _YH = $k[--$j] * _YF; - $k[$j++] = $f(_YH % 2 + _YH % 3) % 2; - }, function() { - var _YI = $k[--$j]; - var _YJ = $k[--$j]; - $k[$j++] = $f(_YJ * _YI % 3 + $f(_YJ + _YI) % 2) % 2; - } ]); - var _YN = $a([ function() { - var _YL = $k[--$j]; - var _YM = $k[--$j]; - $k[$j++] = (~~(_YL / 2) + ~~(_YM / 3)) % 2; - } ]); - var _YO = new Map([ [ "full", _Y9 ], [ "micro", _YK ], [ "rmqr", _YN ] ]); - $1.maskfuncs = $get(_YO, $1.format); - if ($1.mask != -1) { - $1.maskfuncs = $a([ $get($1.maskfuncs, $1.mask - 1) ]); - $1.bestmaskval = $1.mask - 1; - } - $1.masks = $a($1.maskfuncs.length); - for (var _Yb = 0, _Ya = $1.masks.length - 1; _Yb <= _Ya; _Yb += 1) { - $1.m = _Yb; - $1.mask = $a($1.rows * $1.cols); - for (var _Yh = 0, _Yg = $f($1.rows - 1); _Yh <= _Yg; _Yh += 1) { - $1.j = _Yh; - for (var _Yk = 0, _Yj = $f($1.cols - 1); _Yk <= _Yj; _Yk += 1) { - $1.i = _Yk; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - if ($get($1.maskfuncs, $1.m)() === true) { - break; - } - var _Yq = $k[--$j]; - $k[$j++] = _Yq == 0; - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.qmv(); - var _Yu = $k[--$j]; - var _Yw = $get($k[--$j], _Yu); - var _Yx = $k[--$j]; - var _Yy = _Yx && _Yw == -1 ? 1 : 0; - $k[$j++] = _Yy; - $k[$j++] = $1.mask; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.qmv(); - var _Z2 = $k[--$j]; - var _Z3 = $k[--$j]; - $put(_Z3, _Z2, $k[--$j]); - } - } - $put($1.masks, $1.m, $1.mask); - } - var _ZA = $ne($1.format, "rmqr") ? 1 : 2; - $1.posx = $f($1.cols - _ZA); - $1.posy = $f($1.rows - 1); - $1.dir = -1; - $1.col = 1; - $1.num = 0; - for (;;) { - if ($1.posx < 0) { - break; - } - $k[$j++] = $1.pixs; - $k[$j++] = $1.posx; - $k[$j++] = $1.posy; - $1.qmv(); - var _ZG = $k[--$j]; - if ($get($k[--$j], _ZG) == -1) { - var _ZL = $get($1.cws, ~~($1.num / 8)); - var _ZN = -(7 - $1.num % 8); - $k[$j++] = (_ZN < 0 ? _ZL >>> -_ZN : _ZL << _ZN) & 1; - $k[$j++] = $1.pixs; - $k[$j++] = $1.posx; - $k[$j++] = $1.posy; - $1.qmv(); - var _ZR = $k[--$j]; - var _ZS = $k[--$j]; - $put(_ZS, _ZR, $k[--$j]); - $1.num = $1.num + 1; - } - if ($1.col == 1) { - $1.col = 0; - $1.posx = $f($1.posx - 1); - } else { - $1.col = 1; - $1.posx = $f($1.posx + 1); - $1.posy = $f($1.posy + $1.dir); - if ($1.posy < 0 || $1.posy >= $1.rows) { - $1.dir = $1.dir * -1; - $1.posy = $f($1.posy + $1.dir); - $1.posx = $f($1.posx - 2); - if ($eq($1.format, "full") && $1.posx == 6) { - $1.posx = $f($1.posx - 1); - } - } - } - } - $1.evalfulln1n3 = function() { - $1.scrle = $k[--$j]; - $k[$j++] = "scr1"; - $k[$j++] = 0; - $forall($1.scrle, function() { - var _Zm = $k[--$j]; - $k[$j++] = _Zm; - if (_Zm >= 5) { - var _Zn = $k[--$j]; - var _Zp = $f($f($k[--$j] + _Zn) - 2); - $k[$j++] = _Zp; - $k[$j++] = _Zp; - } - $j--; - }); - var _Zq = $k[--$j]; - $1[$k[--$j]] = _Zq; - $1.scr3 = 0; - for (var _Zu = 3, _Zt = $1.scrle.length - 3; _Zu <= _Zt; _Zu += 2) { - $1.j = _Zu; - if ($get($1.scrle, $1.j) % 3 == 0) { - $1.fact = ~~($get($1.scrle, $1.j) / 3); - var _a3 = $geti($1.scrle, $1.j - 2, 5); - for (var _a4 = 0, _a5 = _a3.length; _a4 < _a5; _a4++) { - $k[$j++] = $get(_a3, _a4) == $1.fact; - } - var _a8 = $k[--$j]; - var _a9 = $k[--$j]; - var _aA = $k[--$j]; - $k[$j++] = $an(_a9, _a8); - $k[$j++] = _aA; - $j--; - var _aB = $k[--$j]; - var _aC = $k[--$j]; - var _aD = $k[--$j]; - if (_aD && (_aC && _aB)) { - if ($1.j == 3 || $1.j + 4 >= $1.scrle.length) { - $1.scr3 = $1.scr3 + 40; - } else { - if ($get($1.scrle, $1.j - 3) >= 4 || $get($1.scrle, $1.j + 3) >= 4) { - $1.scr3 = $1.scr3 + 40; - } - } - } - } - } - $k[$j++] = $1.scr1; - $k[$j++] = $1.scr3; - }; - $1.evalfull = function() { - $1.sym = $k[--$j]; - $1.n1 = 0; - $1.n2 = 0; - $1.n3 = 0; - $1.rle = $a($f($1.cols + 1)); - $1.lastpairs = $a($1.cols); - $1.thispairs = $a($1.cols); - $1.colsadd1 = $f($1.cols + 1); - for (var _ab = 0, _aa = $f($1.cols - 1); _ab <= _aa; _ab += 1) { - $1.i = _ab; - $k[$j++] = Infinity; - var _ad = $1.cols; - $k[$j++] = 0; - $k[$j++] = 0; - for (var _af = $1.i, _ag = _ad, _ae = $f(_ad * _ad - 1); _ag < 0 ? _af >= _ae : _af <= _ae; _af += _ag) { - var _ai = $get($1.sym, _af); - var _aj = $k[--$j]; - $k[$j++] = _ai; - if ($eq(_aj, _ai)) { - var _ak = $k[--$j]; - var _al = $k[--$j]; - $k[$j++] = $f(_al + 1); - $k[$j++] = _ak; - } else { - var _am = $k[--$j]; - $k[$j++] = 1; - $k[$j++] = _am; - } - } - $j--; - var _ao = $counttomark() + 2; - $astore($geti($1.rle, 0, _ao - 2)); - $1.evalfulln1n3(); - $1.n3 = $f($k[--$j] + $1.n3); - $1.n1 = $f($k[--$j] + $1.n1); - $j--; - $1.symrow = $geti($1.sym, $1.i * $1.cols, $1.cols); - $k[$j++] = Infinity; - var _az = $1.symrow; - $k[$j++] = 0; - $k[$j++] = 0; - for (var _b0 = 0, _b1 = _az.length; _b0 < _b1; _b0++) { - var _b2 = $get(_az, _b0); - var _b3 = $k[--$j]; - $k[$j++] = _b2; - if ($eq(_b3, _b2)) { - var _b4 = $k[--$j]; - var _b5 = $k[--$j]; - $k[$j++] = $f(_b5 + 1); - $k[$j++] = _b4; - } else { - var _b6 = $k[--$j]; - $k[$j++] = 1; - $k[$j++] = _b6; - } - } - $j--; - var _b8 = $counttomark() + 2; - $astore($geti($1.rle, 0, _b8 - 2)); - $1.evalfulln1n3(); - $1.n3 = $f($k[--$j] + $1.n3); - $1.n1 = $f($k[--$j] + $1.n1); - $j--; - var _bE = $1.thispairs; - $1.thispairs = $1.lastpairs; - $1.lastpairs = _bE; - var _bI = $get($1.symrow, 0) == 1 ? 0 : 1; - var _bJ = $1.symrow; - $k[$j++] = _bI; - for (var _bK = 0, _bL = _bJ.length; _bK < _bL; _bK++) { - var _bM = $get(_bJ, _bK); - var _bN = $k[--$j]; - $k[$j++] = $f(_bN + _bM); - $k[$j++] = _bM; - } - $j--; - $astore($1.thispairs); - $j--; - if ($1.i > 0) { - $k[$j++] = Infinity; - $aload($1.lastpairs); - $aload($1.thispairs); - $k[$j++] = $1.n2; - for (var _bU = 0, _bV = $1.cols; _bU < _bV; _bU++) { - var _bW = $k[--$j]; - var _bX = $k[--$j]; - $k[$j++] = _bW; - $k[$j++] = _bX; - var _bZ = $k[$j - 1 - $1.colsadd1]; - if (($f($k[--$j] + _bZ) & 3) == 0) { - var _bb = $k[--$j]; - $k[$j++] = $f(_bb + 3); - } - } - $1.n2 = $k[--$j]; - $cleartomark(); - } - } - $k[$j++] = "dark"; - $k[$j++] = 0; - $forall($1.sym, function() { - var _be = $k[--$j]; - var _bf = $k[--$j]; - $k[$j++] = $f(_bf + _be); - }); - var _bg = $k[--$j]; - $1[$k[--$j]] = _bg; - var _bj = $1.cols; - $1.n4 = ~~(Math.abs($f($1.dark * 100 / (_bj * _bj) - 50)) / 5) * 10; - $k[$j++] = $f($f($f($1.n1 + $1.n2) + $1.n3) + $1.n4); - }; - $1.evalmicro = function() { - $1.sym = $k[--$j]; - $1.dkrhs = 0; - $1.dkbot = 0; - for (var _br = 1, _bq = $f($1.cols - 1); _br <= _bq; _br += 1) { - $1.i = _br; - $k[$j++] = "dkrhs"; - $k[$j++] = $1.dkrhs; - $k[$j++] = $1.sym; - $k[$j++] = $f($1.cols - 1); - $k[$j++] = $1.i; - $1.qmv(); - var _bw = $k[--$j]; - var _by = $get($k[--$j], _bw); - var _bz = $k[--$j]; - $1[$k[--$j]] = $f(_bz + _by); - $k[$j++] = "dkbot"; - $k[$j++] = $1.dkbot; - $k[$j++] = $1.sym; - $k[$j++] = $1.i; - $k[$j++] = $f($1.cols - 1); - $1.qmv(); - var _c5 = $k[--$j]; - var _c7 = $get($k[--$j], _c5); - var _c8 = $k[--$j]; - $1[$k[--$j]] = $f(_c8 + _c7); - } - if ($1.dkrhs <= $1.dkbot) { - $k[$j++] = -($1.dkrhs * 16 + $1.dkbot); - } else { - $k[$j++] = -($1.dkbot * 16 + $1.dkrhs); - } - }; - $1.bestscore = 999999999; - for (var _cI = 0, _cH = $1.masks.length - 1; _cI <= _cH; _cI += 1) { - $1.m = _cI; - $1.masksym = $a($1.rows * $1.cols); - for (var _cP = 0, _cO = $f($1.rows * $1.cols - 1); _cP <= _cO; _cP += 1) { - $1.i = _cP; - $put($1.masksym, $1.i, $xo($get($1.pixs, $1.i), $get($get($1.masks, $1.m), $1.i))); - } - if ($1.masks.length != 1) { - if ($eq($1.format, "full")) { - $k[$j++] = $1.masksym; - $1.evalfull(); - $1.score = $k[--$j]; - } else { - $k[$j++] = $1.masksym; - $1.evalmicro(); - $1.score = $k[--$j]; - } - if ($1.score < $1.bestscore) { - $1.bestsym = $1.masksym; - $1.bestmaskval = $1.m; - $1.bestscore = $1.score; - } - } else { - $1.bestsym = $1.masksym; - } - } - $1.pixs = $1.bestsym; - if ($eq($1.format, "full")) { - $k[$j++] = $1.pixs; - $k[$j++] = 8; - $k[$j++] = $f($1.cols - 8); - $1.qmv(); - var _cq = $k[--$j]; - $put($k[--$j], _cq, 1); - } - if ($eq($1.format, "full")) { - $1.fmtvals = $a([ 21522, 20773, 24188, 23371, 17913, 16590, 20375, 19104, 30660, 29427, 32170, 30877, 26159, 25368, 27713, 26998, 5769, 5054, 7399, 6608, 1890, 597, 3340, 2107, 13663, 12392, 16177, 14854, 9396, 8579, 11994, 11245 ]); - $k[$j++] = "ecid"; - $search("MLHQ", $1.eclevel); - $j--; - var _cv = $k[--$j]; - var _cw = $k[--$j]; - $k[$j++] = _cv.length; - $k[$j++] = _cw; - $j--; - var _cx = $k[--$j]; - var _cy = $k[--$j]; - $k[$j++] = _cx; - $k[$j++] = _cy; - $j--; - var _cz = $k[--$j]; - $1[$k[--$j]] = _cz; - $1.fmtval = $get($1.fmtvals, ($1.ecid << 3) + $1.bestmaskval); - for (var _d7 = 0, _d6 = $1.formatmap.length - 1; _d7 <= _d6; _d7 += 1) { - $1.i = _d7; - $forall($get($1.formatmap, $1.i), function() { - var _dC = $k[--$j]; - $k[$j++] = $1.pixs; - $aload(_dC); - $1.qmv(); - var _dD = $1.fmtval; - var _dF = -(14 - $1.i); - var _dG = $k[--$j]; - $put($k[--$j], _dG, (_dF < 0 ? _dD >>> -_dF : _dD << _dF) & 1); - }); - } - } - if ($eq($1.format, "micro")) { - $1.fmtvals = $a([ 17477, 16754, 20011, 19228, 21934, 20633, 24512, 23287, 26515, 25252, 28157, 26826, 30328, 29519, 31766, 31009, 1758, 1001, 3248, 2439, 5941, 4610, 7515, 6252, 9480, 8255, 12134, 10833, 13539, 12756, 16013, 15290 ]); - $1.symid = $get($get($a([ $a([ 0 ]), $a([ 1, 2 ]), $a([ 3, 4 ]), $a([ 5, 6, 7 ]) ]), ~~($f($1.cols - 11) / 2)), $1.eclval); - $1.fmtval = $get($1.fmtvals, ($1.symid << 2) + $1.bestmaskval); - for (var _dZ = 0, _dY = $1.formatmap.length - 1; _dZ <= _dY; _dZ += 1) { - $1.i = _dZ; - $k[$j++] = $1.pixs; - $aload($get($get($1.formatmap, $1.i), 0)); - $1.qmv(); - var _df = $1.fmtval; - var _dh = -(14 - $1.i); - var _di = $k[--$j]; - $put($k[--$j], _di, (_dh < 0 ? _df >>> -_dh : _df << _dh) & 1); - } - } - if ($eq($1.format, "rmqr")) { - $1.fmtvals1 = $a([ 129714, 124311, 121821, 115960, 112748, 108361, 104707, 99878, 98062, 90155, 89697, 82244, 81360, 74485, 72895, 66458, 61898, 61167, 53413, 53120, 45844, 44081, 37499, 36190, 29814, 27475, 21785, 19004, 13992, 10637, 6087, 2274, 258919, 257090, 250376, 249133, 242105, 241308, 233686, 233459, 227035, 223742, 219060, 215185, 209925, 207648, 202090, 199247, 194591, 190266, 186736, 181845, 178881, 173540, 170926, 165003, 163235, 156294, 154828, 148457, 147325, 139352, 138770, 131383 ]); - $1.fmtvals2 = $a([ 133755, 136542, 142100, 144433, 149669, 153472, 158154, 161519, 167879, 168162, 175784, 176525, 183577, 184892, 191606, 193363, 196867, 204326, 204908, 212809, 213981, 220408, 221874, 228759, 230591, 236442, 239056, 244469, 247393, 252228, 255758, 260139, 942, 7307, 8897, 15844, 16752, 24149, 24607, 32570, 34322, 39223, 42877, 47192, 50380, 56297, 58787, 64134, 67798, 71667, 76217, 79516, 84488, 87341, 93031, 95298, 101738, 102991, 109573, 111392, 118708, 118929, 126683, 127486 ]); - $k[$j++] = "fmtvalu"; - $search("MH", $1.eclevel); - $j--; - var _do = $k[--$j]; - var _dp = $k[--$j]; - $k[$j++] = _do.length; - $k[$j++] = _dp; - $j--; - var _dq = $k[--$j]; - var _dr = $k[--$j]; - $k[$j++] = _dq; - $k[$j++] = _dr; - $j--; - var _ds = $k[--$j]; - $1[$k[--$j]] = (_ds << 5) + $1.verind; - $1.fmtval1 = $get($1.fmtvals1, $1.fmtvalu); - $1.fmtval2 = $get($1.fmtvals2, $1.fmtvalu); - for (var _e3 = 0, _e2 = $1.formatmap.length - 1; _e3 <= _e2; _e3 += 1) { - $1.i = _e3; - $k[$j++] = $1.pixs; - $aload($get($get($1.formatmap, $1.i), 0)); - $1.qmv(); - var _e9 = $1.fmtval1; - var _eB = -(17 - $1.i); - var _eC = $k[--$j]; - $put($k[--$j], _eC, (_eB < 0 ? _e9 >>> -_eB : _e9 << _eB) & 1); - $k[$j++] = $1.pixs; - $aload($get($get($1.formatmap, $1.i), 1)); - $1.qmv(); - var _eJ = $1.fmtval2; - var _eL = -(17 - $1.i); - var _eM = $k[--$j]; - $put($k[--$j], _eM, (_eL < 0 ? _eJ >>> -_eL : _eJ << _eL) & 1); - } - } - if ($eq($1.format, "full") && $1.cols >= 45) { - $1.vervals = $a([ 31892, 34236, 39577, 42195, 48118, 51042, 55367, 58893, 63784, 68472, 70749, 76311, 79154, 84390, 87683, 92361, 96236, 102084, 102881, 110507, 110734, 117786, 119615, 126325, 127568, 133589, 136957, 141498, 145311, 150283, 152622, 158308, 161089, 167017 ]); - $1.verval = $get($1.vervals, ~~($f($1.cols - 17) / 4) - 7); - for (var _eW = 0, _eV = $1.versionmap.length - 1; _eW <= _eV; _eW += 1) { - $1.i = _eW; - $forall($get($1.versionmap, $1.i), function() { - var _eb = $k[--$j]; - $k[$j++] = $1.pixs; - $forall(_eb); - $1.qmv(); - var _ec = $1.verval; - var _ee = -(17 - $1.i); - var _ef = $k[--$j]; - $put($k[--$j], _ef, (_ee < 0 ? _ec >>> -_ee : _ec << _ee) & 1); - }); - } - } - var _en = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", $1.cols ], [ "pixy", $1.rows ], [ "height", $1.rows * 2 / 72 ], [ "width", $1.cols * 2 / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _en; - if (!$1.dontdraw) { - $0.renmatrix(); - } - }; - $0.swissqrcode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.parse = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - var _6 = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _6; - $k[$j++] = "barcode"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _9 = $k[--$j]; - $1[$k[--$j]] = _9; - $1.barlen = $1.barcode.length; - delete $1.options["parse"]; - if ($1.barcode.length > 997) { - $k[$j++] = "bwipp.swissqrcodeBadLength"; - $k[$j++] = "Swiss QR Code input must not exceed 997 digits"; - $0.raiseerror(); - } - $put($1.options, "dontdraw", true); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.qrcode(); - var _H = $k[--$j]; - $1[$k[--$j]] = _H; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $$.save(); - var _N = $$.currpos(); - $$.translate(_N.x, _N.y); - var _O = 72 / 25.4; - $$.scale(_O, _O); - $$.save(); - $$.newpath(); - $$.moveto(0, 0); - $$.lineto(46, 0); - $$.lineto(46, 46); - $$.lineto(0, 46); - $$.closepath(); - $$.moveto(19.5, 19.5); - $$.lineto(19.5, 26.5); - $$.lineto(26.5, 26.5); - $$.lineto(26.5, 19.5); - $$.closepath(); - $$.clip(); - $$.save(); - $$.moveto(0, 0); - var _R = 46 / $get($1.args, "pixx") / 2; - $$.scale(_R, _R); - $0.renmatrix(); - $$.restore(); - $$.restore(); - $$.translate(19.5, 19.5); - var _S = 7 / 83; - $$.scale(_S, _S); - $$.newpath(); - $$.moveto(6, 6); - $$.lineto(6, 77); - $$.lineto(77, 77); - $$.lineto(77, 6); - $$.closepath(); - $$.moveto(49, 18); - $$.lineto(49, 34); - $$.lineto(65, 34); - $$.lineto(65, 49); - $$.lineto(49, 49); - $$.lineto(49, 65); - $$.lineto(34, 65); - $$.lineto(34, 49); - $$.lineto(18, 49); - $$.lineto(18, 34); - $$.lineto(34, 34); - $$.lineto(34, 18); - $$.closepath(); - $$.setrgbcolor(0, 0, 0); - $$.fill(); - $$.restore(); - } + $1.rspm = $k[--$j]; //#20858 + $1.rsgf = $k[--$j]; //#20859 + $1.rsnc = $k[--$j]; //#20860 + $1.rscws = $k[--$j]; //#20861 + $k[$j++] = Infinity; //#20864 + $k[$j++] = 1; //#20864 + for (var _CC = 0, _CD = $f($1.rsgf - 1); _CC < _CD; _CC++) { //#20864 + var _CE = $k[--$j]; //#20864 + var _CF = _CE * 2; //#20864 + $k[$j++] = _CE; //#20864 + $k[$j++] = _CF; //#20864 + if (_CF >= $1.rsgf) { //#20864 + var _CI = $k[--$j]; //#20864 + $k[$j++] = $xo(_CI, $1.rspm); //#20864 + } //#20864 + } //#20864 + $1.rsalog = $a(); //#20864 + $1.rslog = $a($1.rsgf); //#20865 + for (var _CO = 1, _CN = $f($1.rsgf - 1); _CO <= _CN; _CO += 1) { //#20866 + $put($1.rslog, $get($1.rsalog, _CO), _CO); //#20866 + } //#20866 + $1.rsprod = function() { + var _CS = $k[--$j]; //#20870 + var _CT = $k[--$j]; //#20870 + $k[$j++] = _CT; //#20874 + $k[$j++] = _CS; //#20874 + if ((_CS != 0) && (_CT != 0)) { //#20873 + var _CW = $get($1.rslog, $k[--$j]); //#20871 + var _Cc = $get($1.rsalog, $f(_CW + $get($1.rslog, $k[--$j])) % $f($1.rsgf - 1)); //#20871 + $k[$j++] = _Cc; //#20871 + } else { //#20873 + $j -= 2; //#20873 + $k[$j++] = 0; //#20873 + } //#20873 + }; //#20875 + $k[$j++] = Infinity; //#20878 + $k[$j++] = 1; //#20878 + for (var _Ce = 0, _Cf = $1.rsnc; _Ce < _Cf; _Ce++) { //#20878 + $k[$j++] = 0; //#20878 + } //#20878 + $1.coeffs = $a(); //#20878 + for (var _Cj = 1, _Ci = $1.rsnc; _Cj <= _Ci; _Cj += 1) { //#20887 + $1.i = _Cj; //#20880 + $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); //#20881 + for (var _Cq = $1.i - 1; _Cq >= 1; _Cq -= 1) { //#20885 + $1.j = _Cq; //#20883 + $k[$j++] = $1.coeffs; //#20884 + $k[$j++] = $1.j; //#20884 + $k[$j++] = $get($1.coeffs, $1.j - 1); //#20884 + $k[$j++] = $get($1.coeffs, $1.j); //#20884 + $k[$j++] = $get($1.rsalog, $1.i); //#20884 + $1.rsprod(); //#20884 + var _D2 = $k[--$j]; //#20884 + var _D3 = $k[--$j]; //#20884 + var _D4 = $k[--$j]; //#20884 + $put($k[--$j], _D4, $xo(_D3, _D2)); //#20884 + } //#20884 + $k[$j++] = $1.coeffs; //#20886 + $k[$j++] = 0; //#20886 + $k[$j++] = $get($1.coeffs, 0); //#20886 + $k[$j++] = $get($1.rsalog, $1.i); //#20886 + $1.rsprod(); //#20886 + var _DC = $k[--$j]; //#20886 + var _DD = $k[--$j]; //#20886 + $put($k[--$j], _DD, _DC); //#20886 + } //#20886 + $1.nd = $1.rscws.length; //#20890 + $k[$j++] = Infinity; //#20891 + $forall($1.rscws); //#20891 + for (var _DI = 0, _DJ = $1.rsnc; _DI < _DJ; _DI++) { //#20891 + $k[$j++] = 0; //#20891 + } //#20891 + $k[$j++] = 0; //#20891 + $1.rscws = $a(); //#20891 + for (var _DN = 0, _DM = $1.nd - 1; _DN <= _DM; _DN += 1) { //#20898 + $1.k = $xo($get($1.rscws, _DN), $get($1.rscws, $1.nd)); //#20893 + for (var _DV = 0, _DU = $f($1.rsnc - 1); _DV <= _DU; _DV += 1) { //#20897 + $1.j = _DV; //#20895 + $k[$j++] = $1.rscws; //#20896 + $k[$j++] = $1.nd + $1.j; //#20896 + $k[$j++] = $get($1.rscws, ($1.nd + $1.j) + 1); //#20896 + $k[$j++] = $1.k; //#20896 + $k[$j++] = $get($1.coeffs, $f($f($1.rsnc - $1.j) - 1)); //#20896 + $1.rsprod(); //#20896 + var _Di = $k[--$j]; //#20896 + var _Dj = $k[--$j]; //#20896 + var _Dk = $k[--$j]; //#20896 + $put($k[--$j], _Dk, $xo(_Dj, _Di)); //#20896 + } //#20896 + } //#20896 + $k[$j++] = $geti($1.rscws, 0, $1.rscws.length - 1); //#20901 + }; //#20903 + if ($eq($1.format, "full")) { //#20916 + $1.mode = ($f($1.layers - 1) << 11) + ($1.cws.length - 1); //#20907 + if ($1.readerinit) { //#20908 + $1.mode = $1.mode | 1024; //#20908 + } //#20908 + $1.mode = $a([($1.mode & 61440) >>> 12, ($1.mode & 3840) >>> 8, ($1.mode & 240) >>> 4, $1.mode & 15]); //#20914 + $k[$j++] = 'mode'; //#20915 + $k[$j++] = $1.mode; //#20915 + $k[$j++] = 6; //#20915 + $k[$j++] = 16; //#20915 + $k[$j++] = 19; //#20915 + $1.rscodes(); //#20915 + var _E0 = $k[--$j]; //#20915 + $1[$k[--$j]] = _E0; //#20915 + } //#20915 + if ($eq($1.format, "compact")) { //#20925 + $1.mode = ($f($1.layers - 1) << 6) + ($1.cws.length - 1); //#20918 + if ($1.readerinit) { //#20919 + $1.mode = $1.mode | 32; //#20919 + } //#20919 + $1.mode = $a([($1.mode & 240) >>> 4, $1.mode & 15]); //#20923 + $k[$j++] = 'mode'; //#20924 + $k[$j++] = $1.mode; //#20924 + $k[$j++] = 5; //#20924 + $k[$j++] = 16; //#20924 + $k[$j++] = 19; //#20924 + $1.rscodes(); //#20924 + var _EB = $k[--$j]; //#20924 + $1[$k[--$j]] = _EB; //#20924 + } //#20924 + if ($eq($1.format, "rune")) { //#20934 + $1.mode = ~~$z($1.barcode); //#20927 + $1.mode = $a([($1.mode & 240) >>> 4, $1.mode & 15]); //#20931 + $k[$j++] = 'mode'; //#20932 + $k[$j++] = $1.mode; //#20932 + $k[$j++] = 5; //#20932 + $k[$j++] = 16; //#20932 + $k[$j++] = 19; //#20932 + $1.rscodes(); //#20932 + var _EJ = $k[--$j]; //#20932 + $1[$k[--$j]] = _EJ; //#20932 + $k[$j++] = Infinity; //#20933 + var _EL = $1.mode; //#20933 + for (var _EM = 0, _EN = _EL.length; _EM < _EN; _EM++) { //#20933 + $k[$j++] = $get(_EL, _EM) ^ 10; //#20933 + } //#20933 + $1.mode = $a(); //#20933 + } //#20933 + $1.modebits = $s($1.mode.length * 4); //#20935 + for (var _EU = 0, _ET = $1.modebits.length - 1; _EU <= _ET; _EU += 1) { //#20936 + $puti($1.modebits, _EU, "0"); //#20936 + } //#20936 + for (var _EY = 0, _EX = $1.mode.length - 1; _EY <= _EX; _EY += 1) { //#20940 + $1.i = _EY; //#20938 + var _Ee = $cvrs($s(4), $get($1.mode, $1.i), 2); //#20939 + $puti($1.modebits, (4 - _Ee.length) + (4 * $1.i), _Ee); //#20939 + } //#20939 + $1.rsparams = $a([$a([]), $a([]), $a([]), $a([]), $a([]), $a([]), $a([64, 67]), $a([]), $a([256, 301]), $a([]), $a([1024, 1033]), $a([]), $a([4096, 4201])]); //#20952 + $k[$j++] = 'cws'; //#20953 + $k[$j++] = $1.cws; //#20953 + $k[$j++] = $f($1.ncws - $1.cws.length); //#20953 + $forall($get($1.rsparams, $1.bpcw)); //#20953 + $1.rscodes(); //#20953 + var _F0 = $k[--$j]; //#20953 + $1[$k[--$j]] = _F0; //#20953 + if ($eq($1.format, "full")) { //#20957 + $1.databits = $s($f((($1.layers * $1.layers) * 16) + ($1.layers * 112))); //#20955 + } else { //#20957 + $1.databits = $s($f((($1.layers * $1.layers) * 16) + ($1.layers * 88))); //#20957 + } //#20957 + for (var _FD = 0, _FC = $1.databits.length - 1; _FD <= _FC; _FD += 1) { //#20959 + $puti($1.databits, _FD, "0"); //#20959 + } //#20959 + for (var _FH = 0, _FG = $f($1.ncws - 1); _FH <= _FG; _FH += 1) { //#20965 + $1.i = _FH; //#20961 + var _FO = $cvrs($s($1.bpcw), $get($1.cws, $1.i), 2); //#20962 + $puti($1.databits, $f(($f($f($1.bpcw - _FO.length) + ($1.bpcw * $1.i))) + ($f($1.databits.length - ($1.ncws * $1.bpcw)))), _FO); //#20964 + } //#20964 + $1.cmv = function() { + var _FW = $k[--$j]; //#20968 + var _FX = $k[--$j]; //#20968 + $k[$j++] = $f(($f(_FX - (_FW * $1.size))) + $1.mid); //#20968 + }; //#20968 + $1.lmv = function() { + $1.lbit = $k[--$j]; //#20972 + $1.llyr = $k[--$j]; //#20973 + $1.lwid = $f($1.fw + ($1.llyr * 4)); //#20974 + $1.ldir = ~~((~~($1.lbit / 2)) / $1.lwid); //#20975 + if ($1.ldir == 0) { //#20980 + $k[$j++] = $f(((-(~~($f($1.lwid - 1) / 2))) + 1) + ((~~($1.lbit / 2)) % $1.lwid)); //#20979 + $k[$j++] = $f(($f((~~(($1.fw - 1) / 2)) + ($1.llyr * 2))) + ($1.lbit % 2)); //#20979 + $1.cmv(); //#20979 + } //#20979 + if ($1.ldir == 1) { //#20985 + $k[$j++] = $f(($f((~~($1.fw / 2)) + ($1.llyr * 2))) + ($1.lbit % 2)); //#20984 + $k[$j++] = $f(((~~($f($1.lwid - 1) / 2)) - 1) - ((~~($1.lbit / 2)) % $1.lwid)); //#20984 + $1.cmv(); //#20984 + } //#20984 + if ($1.ldir == 2) { //#20990 + $k[$j++] = -($f(((-(~~($1.lwid / 2))) + 1) + ((~~($1.lbit / 2)) % $1.lwid))); //#20989 + $k[$j++] = -($f(($f((~~($1.fw / 2)) + ($1.llyr * 2))) + ($1.lbit % 2))); //#20989 + $1.cmv(); //#20989 + } //#20989 + if ($1.ldir == 3) { //#20995 + $k[$j++] = -($f(($f((~~(($1.fw - 1) / 2)) + ($1.llyr * 2))) + ($1.lbit % 2))); //#20994 + $k[$j++] = -($f(((~~($1.lwid / 2)) - 1) - ((~~($1.lbit / 2)) % $1.lwid))); //#20994 + $1.cmv(); //#20994 + } //#20994 + }; //#20996 + if ($eq($1.format, "full")) { //#21000 + $1.fw = 12; //#21000 + } else { //#21000 + $1.fw = 9; //#21000 + } //#21000 + $1.size = $f(($f($1.fw + ($1.layers * 4))) + 2); //#21001 + $k[$j++] = Infinity; //#21002 + for (var _GC = 0, _GD = $1.size * $1.size; _GC < _GD; _GC++) { //#21002 + $k[$j++] = -1; //#21002 + } //#21002 + $1.pixs = $a(); //#21002 + $1.mid = $f(((~~($f($1.size - 1) / 2)) * $1.size) + (~~($f($1.size - 1) / 2))); //#21003 + $1.i = 0; //#21006 + for (var _GK = 1, _GJ = $1.layers; _GK <= _GJ; _GK += 1) { //#21014 + $1.layer = _GK; //#21008 + for (var _GO = 0, _GN = (($1.fw + ($1.layer * 4)) * 8) - 1; _GO <= _GN; _GO += 1) { //#21013 + $1.pos = _GO; //#21010 + $k[$j++] = $1.pixs; //#21011 + $k[$j++] = $1.layer; //#21011 + $k[$j++] = $1.pos; //#21011 + $1.lmv(); //#21011 + var _GW = $k[--$j]; //#21011 + $put($k[--$j], _GW, $get($1.databits, ($1.databits.length - $1.i) - 1) - 48); //#21011 + $1.i = $1.i + 1; //#21012 + } //#21012 + } //#21012 + if ($eq($1.format, "full")) { //#21041 + $1.fw = 13; //#21018 + $1.size = $f(($f(($f($1.fw + ($1.layers * 4))) + 2)) + ((~~($f(($f($1.layers + 10.5) / 7.5) - 1))) * 2)); //#21019 + $1.mid = ~~(($1.size * $1.size) / 2); //#21020 + $k[$j++] = Infinity; //#21021 + for (var _Gh = 0, _Gi = $1.size * $1.size; _Gh < _Gi; _Gh++) { //#21021 + $k[$j++] = -2; //#21021 + } //#21021 + $1.npixs = $a(); //#21021 + for (var _Gm = 0, _Gl = ~~($1.size / 2); _Gm <= _Gl; _Gm += 16) { //#21031 + $1.i = _Gm; //#21023 + for (var _Gp = 0, _Go = $f($1.size - 1); _Gp <= _Go; _Gp += 1) { //#21030 + $1.j = _Gp; //#21025 + $k[$j++] = $1.npixs; //#21026 + $k[$j++] = (-(~~($1.size / 2))) + $1.j; //#21026 + $k[$j++] = $1.i; //#21026 + $1.cmv(); //#21026 + var _Gy = $k[--$j]; //#21026 + $puti($k[--$j], _Gy, $a([((((~~($1.size / 2)) + $1.j) + $1.i) + 1) % 2])); //#21026 + $k[$j++] = $1.npixs; //#21027 + $k[$j++] = (-(~~($1.size / 2))) + $1.j; //#21027 + $k[$j++] = -$1.i; //#21027 + $1.cmv(); //#21027 + var _H8 = $k[--$j]; //#21027 + $puti($k[--$j], _H8, $a([((((~~($1.size / 2)) + $1.j) + $1.i) + 1) % 2])); //#21027 + $k[$j++] = $1.npixs; //#21028 + $k[$j++] = $1.i; //#21028 + $k[$j++] = (-(~~($1.size / 2))) + $1.j; //#21028 + $1.cmv(); //#21028 + var _HI = $k[--$j]; //#21028 + $puti($k[--$j], _HI, $a([((((~~($1.size / 2)) + $1.j) + $1.i) + 1) % 2])); //#21028 + $k[$j++] = $1.npixs; //#21029 + $k[$j++] = -$1.i; //#21029 + $k[$j++] = (-(~~($1.size / 2))) + $1.j; //#21029 + $1.cmv(); //#21029 + var _HS = $k[--$j]; //#21029 + $puti($k[--$j], _HS, $a([((((~~($1.size / 2)) + $1.j) + $1.i) + 1) % 2])); //#21029 + } //#21029 + } //#21029 + $1.j = 0; //#21032 + for (var _HW = 0, _HV = $1.npixs.length - 1; _HW <= _HV; _HW += 1) { //#21039 + $1.i = _HW; //#21034 + if ($get($1.npixs, $1.i) == -2) { //#21038 + $put($1.npixs, $1.i, $get($1.pixs, $1.j)); //#21036 + $1.j = $1.j + 1; //#21037 + } //#21037 + } //#21037 + $1.pixs = $1.npixs; //#21040 + } //#21040 + $1.fw = ~~($1.fw / 2); //#21044 + for (var _Hl = -$1.fw, _Hk = $1.fw; _Hl <= _Hk; _Hl += 1) { //#21053 + $1.i = _Hl; //#21046 + for (var _Hp = -$1.fw, _Ho = $1.fw; _Hp <= _Ho; _Hp += 1) { //#21052 + $1.j = _Hp; //#21048 + $k[$j++] = $1.pixs; //#21049 + $k[$j++] = $1.i; //#21049 + $k[$j++] = $1.j; //#21049 + $1.cmv(); //#21049 + if (Math.abs($1.i) > Math.abs($1.j)) { //#21050 + $k[$j++] = Math.abs($1.i); //#21050 + } else { //#21050 + $k[$j++] = Math.abs($1.j); //#21050 + } //#21050 + var _Hx = $k[--$j]; //#21050 + var _Hy = $k[--$j]; //#21051 + $put($k[--$j], _Hy, $f(_Hx + 1) % 2); //#21051 + } //#21051 + } //#21051 + var _Ia = $a([$a([-($1.fw + 1), $1.fw, 1]), $a([-($1.fw + 1), $1.fw + 1, 1]), $a([-$1.fw, $1.fw + 1, 1]), $a([$1.fw + 1, $1.fw + 1, 1]), $a([$1.fw + 1, $1.fw, 1]), $a([$1.fw + 1, -$1.fw, 1]), $a([$1.fw, $1.fw + 1, 0]), $a([$1.fw + 1, -($1.fw + 1), 0]), $a([$1.fw, -($1.fw + 1), 0]), $a([-$1.fw, -($1.fw + 1), 0]), $a([-($1.fw + 1), -($1.fw + 1), 0]), $a([-($1.fw + 1), -$1.fw, 0])]); //#21061 + for (var _Ib = 0, _Ic = _Ia.length; _Ib < _Ic; _Ib++) { //#21062 + $k[$j++] = $1.pixs; //#21062 + $forall($get(_Ia, _Ib)); //#21062 + var _If = $k[--$j]; //#21062 + var _Ig = $k[--$j]; //#21062 + var _Ih = $k[--$j]; //#21062 + $k[$j++] = _If; //#21062 + $k[$j++] = _Ih; //#21062 + $k[$j++] = _Ig; //#21062 + $1.cmv(); //#21062 + var _Ii = $k[--$j]; //#21062 + var _Ij = $k[--$j]; //#21062 + $put($k[--$j], _Ii, _Ij); //#21062 + } //#21062 + if ($eq($1.format, "full")) { //#21078 + $1.modemap = $a([$a([-5, 7]), $a([-4, 7]), $a([-3, 7]), $a([-2, 7]), $a([-1, 7]), $a([1, 7]), $a([2, 7]), $a([3, 7]), $a([4, 7]), $a([5, 7]), $a([7, 5]), $a([7, 4]), $a([7, 3]), $a([7, 2]), $a([7, 1]), $a([7, -1]), $a([7, -2]), $a([7, -3]), $a([7, -4]), $a([7, -5]), $a([5, -7]), $a([4, -7]), $a([3, -7]), $a([2, -7]), $a([1, -7]), $a([-1, -7]), $a([-2, -7]), $a([-3, -7]), $a([-4, -7]), $a([-5, -7]), $a([-7, -5]), $a([-7, -4]), $a([-7, -3]), $a([-7, -2]), $a([-7, -1]), $a([-7, 1]), $a([-7, 2]), $a([-7, 3]), $a([-7, 4]), $a([-7, 5])]); //#21071 + } else { //#21078 + $1.modemap = $a([$a([-3, 5]), $a([-2, 5]), $a([-1, 5]), $a([0, 5]), $a([1, 5]), $a([2, 5]), $a([3, 5]), $a([5, 3]), $a([5, 2]), $a([5, 1]), $a([5, 0]), $a([5, -1]), $a([5, -2]), $a([5, -3]), $a([3, -5]), $a([2, -5]), $a([1, -5]), $a([0, -5]), $a([-1, -5]), $a([-2, -5]), $a([-3, -5]), $a([-5, -3]), $a([-5, -2]), $a([-5, -1]), $a([-5, 0]), $a([-5, 1]), $a([-5, 2]), $a([-5, 3])]); //#21078 + } //#21078 + for (var _Jw = 0, _Jv = $1.modemap.length - 1; _Jw <= _Jv; _Jw += 1) { //#21083 + $1.i = _Jw; //#21081 + $k[$j++] = $1.pixs; //#21082 + $forall($get($1.modemap, $1.i)); //#21082 + $1.cmv(); //#21082 + var _K4 = $k[--$j]; //#21082 + $put($k[--$j], _K4, $get($1.modebits, $1.i) - 48); //#21082 + } //#21082 + var _KC = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", $1.size], + ["pixy", $1.size], + ["height", ($1.size * 2) / 72], + ["width", ($1.size * 2) / 72], + ["opt", $1.options] + ]); //#21092 + $k[$j++] = _KC; //#21095 + if (!$1.dontdraw) { //#21095 + $0.renmatrix(); //#21095 + } //#21095 }; - $0.microqrcode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $put($1.options, "dontdraw", true); - $put($1.options, "format", "micro"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.qrcode(); - var _9 = $k[--$j]; - $1[$k[--$j]] = _9; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + $0.azteccodecompact = function() { + var $1 = {}; //#21125 + $1.options = $k[--$j]; //#21127 + $1.barcode = $k[--$j]; //#21128 + $1.dontdraw = false; //#21130 + $forall($1.options, function() { //#21141 + var _3 = $k[--$j]; //#21141 + $1[$k[--$j]] = _3; //#21141 + }); //#21141 + $put($1.options, "dontdraw", true); //#21144 + $put($1.options, "format", "compact"); //#21145 + $k[$j++] = 'args'; //#21147 + $k[$j++] = $1.barcode; //#21147 + $k[$j++] = $1.options; //#21147 + $0.azteccode(); //#21147 + var _9 = $k[--$j]; //#21147 + $1[$k[--$j]] = _9; //#21147 + $put($1.args, "opt", $1.options); //#21149 + $k[$j++] = $1.args; //#21152 + if (!$1.dontdraw) { //#21152 + $0.renmatrix(); //#21152 + } //#21152 }; - $0.rectangularmicroqrcode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $put($1.options, "dontdraw", true); - $put($1.options, "format", "rmqr"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.qrcode(); - var _9 = $k[--$j]; - $1[$k[--$j]] = _9; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } - }; - $0.maxicode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.mode = -1; - $1.sam = -1; - $1.parse = false; - $1.parsefnc = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.mode = ~~$1.mode; - $1.sam = ~~$1.sam; - var _9 = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "eci", true ] ]); - $1.fncvals = _9; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _C = $k[--$j]; - $1[$k[--$j]] = _C; - $1.msglen = $1.msg.length; - if ($1.mode == 2 || $1.mode == 3) { - $1.barcode = $s($1.msglen); - for (var _L = 0, _K = $1.msglen - 1; _L <= _K; _L += 1) { - $1.i = _L; - if ($get($1.msg, $1.i) > 0) { - $put($1.barcode, $1.i, $get($1.msg, $1.i)); - } - } - $1.barlen = $1.barcode.length; - if ($eq($geti($1.barcode, 0, 7), "[)>01")) { - $1.fid = $geti($1.barcode, 0, 9); - $1.barcode = $geti($1.barcode, 9, $1.barlen - 9); - } else { - $1.fid = ""; - } - $search($1.barcode, ""); - $j--; - $1.pcode = $k[--$j]; - $j--; - $search($k[--$j], ""); - $j--; - $1.ccode = $k[--$j]; - $j--; - $search($k[--$j], ""); - $j--; - $1.scode = $k[--$j]; - $j--; - $1.barcode = $k[--$j]; - var _l = $s($1.barcode.length + $1.fid.length); - $puti(_l, 0, $1.fid); - $puti(_l, $1.fid.length, $1.barcode); - $1.barcode = _l; - $1.barlen = $1.barcode.length; - $k[$j++] = Infinity; - var _q = $1.barcode; - for (var _r = 0, _s = _q.length; _r < _s; _r++) { - $k[$j++] = $get(_q, _r); - } - $1.msg = $a(); - $1.msglen = $1.msg.length; - } - $1.eci = -1; - $1.pad = -2; - $1.ns = -3; - $1.la = -4; - $1.lb = -5; - $1.sa = -6; - $1.sb = -7; - $1.sc = -8; - $1.sd = -9; - $1.se = -10; - $1.sa2 = -11; - $1.sa3 = -12; - $1.lkc = -13; - $1.lkd = -14; - $1.lke = -15; - $1.pd2 = -16; - $1.pd3 = -17; - $1.charmaps = $a([ $a([ 13, "`", 192, 224, 0 ]), $a([ "A", "a", 193, 225, 1 ]), $a([ "B", "b", 194, 226, 2 ]), $a([ "C", "c", 195, 227, 3 ]), $a([ "D", "d", 196, 228, 4 ]), $a([ "E", "e", 197, 229, 5 ]), $a([ "F", "f", 198, 230, 6 ]), $a([ "G", "g", 199, 231, 7 ]), $a([ "H", "h", 200, 232, 8 ]), $a([ "I", "i", 201, 233, 9 ]), $a([ "J", "j", 202, 234, 10 ]), $a([ "K", "k", 203, 235, 11 ]), $a([ "L", "l", 204, 236, 12 ]), $a([ "M", "m", 205, 237, 13 ]), $a([ "N", "n", 206, 238, 14 ]), $a([ "O", "o", 207, 239, 15 ]), $a([ "P", "p", 208, 240, 16 ]), $a([ "Q", "q", 209, 241, 17 ]), $a([ "R", "r", 210, 242, 18 ]), $a([ "S", "s", 211, 243, 19 ]), $a([ "T", "t", 212, 244, 20 ]), $a([ "U", "u", 213, 245, 21 ]), $a([ "V", "v", 214, 246, 22 ]), $a([ "W", "w", 215, 247, 23 ]), $a([ "X", "x", 216, 248, 24 ]), $a([ "Y", "y", 217, 249, 25 ]), $a([ "Z", "z", 218, 250, 26 ]), $a([ $1.eci, $1.eci, $1.eci, $1.eci, $1.eci ]), $a([ 28, 28, 28, 28, $1.pad ]), $a([ 29, 29, 29, 29, $1.pad ]), $a([ 30, 30, 30, 30, 27 ]), $a([ $1.ns, $1.ns, $1.ns, $1.ns, $1.ns ]), $a([ " ", "{", 219, 251, 28 ]), $a([ $1.pad, $1.pad, 220, 252, 29 ]), $a([ '"', "}", 221, 253, 30 ]), $a([ "#", "~", 222, 254, 31 ]), $a([ "$", 127, 223, 255, 159 ]), $a([ "%", ";", 170, 161, 160 ]), $a([ "&", "<", 172, 168, 162 ]), $a([ "'", "=", 177, 171, 163 ]), $a([ 40, ">", 178, 175, 164 ]), $a([ 41, "?", 179, 176, 165 ]), $a([ "*", "[", 181, 180, 166 ]), $a([ "+", 92, 185, 183, 167 ]), $a([ ",", "]", 186, 184, 169 ]), $a([ "-", "^", 188, 187, 173 ]), $a([ ".", "_", 189, 191, 174 ]), $a([ "/", " ", 190, 138, 182 ]), $a([ "0", ",", 128, 139, 149 ]), $a([ "1", ".", 129, 140, 150 ]), $a([ "2", "/", 130, 141, 151 ]), $a([ "3", ":", 131, 142, 152 ]), $a([ "4", "@", 132, 143, 153 ]), $a([ "5", "!", 133, 144, 154 ]), $a([ "6", "|", 134, 145, 155 ]), $a([ "7", $1.pd2, 135, 146, 156 ]), $a([ "8", $1.sa2, 136, 147, 157 ]), $a([ "9", $1.sa3, 137, 148, 158 ]), $a([ ":", $1.pd3, $1.la, $1.la, $1.la ]), $a([ $1.sb, $1.sa, " ", " ", " " ]), $a([ $1.sc, $1.sc, $1.lkc, $1.sc, $1.sc ]), $a([ $1.sd, $1.sd, $1.sd, $1.lkd, $1.sd ]), $a([ $1.se, $1.se, $1.se, $1.se, $1.lke ]), $a([ $1.lb, $1.la, $1.lb, $1.lb, $1.lb ]) ]); - $1.charvals = $a([ new Map(), new Map(), new Map(), new Map(), new Map() ]); - for (var _2j = 0, _2i = $1.charmaps.length - 1; _2j <= _2i; _2j += 1) { - $1.i = _2j; - $1.encs = $get($1.charmaps, $1.i); - for (var _2n = 0; _2n <= 4; _2n += 1) { - $1.j = _2n; - var _2q = $get($1.encs, $1.j); - $k[$j++] = _2q; - if ($eq($type(_2q), "stringtype")) { - var _2t = $get($k[--$j], 0); - $k[$j++] = _2t; - } - $put($get($1.charvals, $1.j), $k[--$j], $1.i); - } - } - $1.seta = $get($1.charvals, 0); - $1.setb = $get($1.charvals, 1); - $1.setc = $get($1.charvals, 2); - $1.setd = $get($1.charvals, 3); - $1.sete = $get($1.charvals, 4); - $k[$j++] = Infinity; - for (var _3A = 0, _3B = $1.msglen + 1; _3A < _3B; _3A++) { - $k[$j++] = 0; - } - $1.nseq = $a(); - for (var _3E = $1.msglen - 1; _3E >= 0; _3E -= 1) { - $1.i = _3E; - var _3H = $get($1.msg, $1.i); - if (_3H >= 48 && _3H <= 57) { - $put($1.nseq, $1.i, $f($get($1.nseq, $1.i + 1) + 1)); - } else { - $put($1.nseq, $1.i, 0); - } - } - $1.nseq = $geti($1.nseq, 0, $1.msglen); - $1.prefixinset = function() { - $k[$j++] = 0; - for (;;) { - var _3S = $k[--$j]; - var _3T = $k[--$j]; - $k[$j++] = _3T; - $k[$j++] = _3S; - if (_3S >= _3T.length) { - break; - } - var _3U = $k[--$j]; - var _3V = $k[--$j]; - var _3X = $k[--$j]; - var _3Y = $get(_3X, $get(_3V, _3U)) !== undefined; - $k[$j++] = _3X; - $k[$j++] = _3V; - $k[$j++] = _3U; - if (_3Y) { - var _3Z = $k[--$j]; - $k[$j++] = $f(_3Z + 1); - } else { - break; - } - } - var _3a = $k[--$j]; - var _3b = $k[--$j]; - $k[$j++] = _3a; - $k[$j++] = _3b; - $j--; - var _3c = $k[--$j]; - var _3d = $k[--$j]; - $k[$j++] = _3c; - $k[$j++] = _3d; - $j--; - }; - $1.enc = function() { - var _3e = $k[--$j]; - $put($1.out, $1.j, $get(_3e, $k[--$j])); - $1.j = $1.j + 1; - }; - $1.out = $a(144); - $1.i = 0; - $1.j = 0; - $1.cset = "seta"; - for (;;) { - if ($1.i == $1.msglen) { - if ($ne($1.cset, "seta") && $ne($1.cset, "setb")) { - $k[$j++] = $1.la; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $1.cset = "seta"; - } - break; - } - for (;;) { - if ($get($1.msg, $1.i) <= -1e6) { - $k[$j++] = $1.eci; - $k[$j++] = $1[$1.cset]; - $1.enc(); - var _41 = $f(-$get($1.msg, $1.i) - 1e6); - $k[$j++] = _41; - if (_41 <= 31) { - var _42 = $k[--$j]; - $k[$j++] = _42 & 63; - $astore($a(1)); - } else { - var _44 = $k[--$j]; - $k[$j++] = _44; - if (_44 <= 1023) { - var _45 = $k[--$j]; - $k[$j++] = _45 >>> 6 & 31 | 32; - $k[$j++] = _45 & 63; - $astore($a(2)); - } else { - var _47 = $k[--$j]; - $k[$j++] = _47; - if (_47 <= 32767) { - var _48 = $k[--$j]; - $k[$j++] = _48 >>> 12 & 47 | 48; - $k[$j++] = _48 >>> 6 & 63; - $k[$j++] = _48 & 63; - $astore($a(3)); - } else { - var _4A = $k[--$j]; - $k[$j++] = _4A >>> 18 & 55 | 56; - $k[$j++] = _4A >>> 12 & 63; - $k[$j++] = _4A >>> 6 & 63; - $k[$j++] = _4A & 63; - $astore($a(4)); - } - } - } - var _4C = $k[--$j]; - $puti($1.out, $1.j, _4C); - $1.j = _4C.length + $1.j; - $1.i = $1.i + 1; - break; - } - if ($get($1.nseq, $1.i) >= 9) { - var _4M = $geti($1.msg, $1.i, 9); - $k[$j++] = 0; - for (var _4N = 0, _4O = _4M.length; _4N < _4O; _4N++) { - var _4Q = $k[--$j]; - $k[$j++] = $f(_4Q + $f($get(_4M, _4N) - 48)) * 10; - } - var _4R = $k[--$j]; - $k[$j++] = ~~(_4R / 10); - for (var _4S = 0, _4T = 4; _4S < _4T; _4S++) { - var _4U = $k[--$j]; - $k[$j++] = _4U & 63; - $k[$j++] = _4U >>> 6; - } - $k[$j++] = $get($1[$1.cset], $1.ns); - for (var _4Z = 0; _4Z <= 10; _4Z += 2) { - var _4a = $k[$j - 1 - _4Z]; - $k[$j++] = _4a; - } - $astore($a(6)); - var _4c = $k[--$j]; - var _4d = $k[--$j]; - var _4e = $k[--$j]; - var _4f = $k[--$j]; - var _4g = $k[--$j]; - var _4h = $k[--$j]; - var _4i = $k[--$j]; - $k[$j++] = _4c; - $k[$j++] = _4i; - $k[$j++] = _4h; - $k[$j++] = _4g; - $k[$j++] = _4f; - $k[$j++] = _4e; - $k[$j++] = _4d; - for (var _4j = 0, _4k = 6; _4j < _4k; _4j++) { - $j--; - } - $puti($1.out, $1.j, $k[--$j]); - $1.i = $1.i + 9; - $1.j = $1.j + 6; - break; - } - $1.char1 = $get($1.msg, $1.i); - $k[$j++] = "char2"; - if ($1.i + 1 < $1.msglen) { - $k[$j++] = $get($1.msg, $1.i + 1); - } else { - $k[$j++] = -99; - } - var _4y = $k[--$j]; - $1[$k[--$j]] = _4y; - $k[$j++] = "char3"; - if ($1.i + 2 < $1.msglen) { - $k[$j++] = $get($1.msg, $1.i + 2); - } else { - $k[$j++] = -99; - } - var _55 = $k[--$j]; - $1[$k[--$j]] = _55; - var _5A = $get($1[$1.cset], $1.char1) !== undefined; - if (_5A) { - $k[$j++] = $1.char1; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $1.i = $1.i + 1; - break; - } - var _5I = $get($1.setb, $1.char1) !== undefined; - if ($eq($1.cset, "seta") && _5I) { - var _5L = $get($1.setb, $1.char2) !== undefined; - if (_5L) { - $k[$j++] = $1.lb; - $k[$j++] = $1.seta; - $1.enc(); - $1.cset = "setb"; - } else { - $k[$j++] = $1.sb; - $k[$j++] = $1.seta; - $1.enc(); - $k[$j++] = $1.char1; - $k[$j++] = $1.setb; - $1.enc(); - $1.i = $1.i + 1; - } - break; - } - var _5W = $get($1.seta, $1.char1) !== undefined; - if ($eq($1.cset, "setb") && _5W) { - var _5X = $1.seta; - var _5Y = $1.msg; - var _5Z = $1.i; - var _5a = $1.msglen; - var _5b = $1.i; - var _5c = _5a - _5b; - var _5d = 4; - if (4 > _5a - _5b) { - var _ = _5c; - _5c = _5d; - _5d = _; - } - $k[$j++] = "p"; - $k[$j++] = _5X; - $k[$j++] = $geti(_5Y, _5Z, _5d); - $1.prefixinset(); - var _5f = $k[--$j]; - $1[$k[--$j]] = _5f; - if ($1.p == 1) { - $k[$j++] = $1.sa; - $k[$j++] = $1.setb; - $1.enc(); - $k[$j++] = $1.char1; - $k[$j++] = $1.seta; - $1.enc(); - $1.i = $1.i + 1; - } - if ($1.p == 2) { - $k[$j++] = $1.sa2; - $k[$j++] = $1.setb; - $1.enc(); - $k[$j++] = $1.char1; - $k[$j++] = $1.seta; - $1.enc(); - $k[$j++] = $1.char2; - $k[$j++] = $1.seta; - $1.enc(); - $1.i = $1.i + 2; - } - if ($1.p == 3) { - $k[$j++] = $1.sa3; - $k[$j++] = $1.setb; - $1.enc(); - $k[$j++] = $1.char1; - $k[$j++] = $1.seta; - $1.enc(); - $k[$j++] = $1.char2; - $k[$j++] = $1.seta; - $1.enc(); - $k[$j++] = $1.char3; - $k[$j++] = $1.seta; - $1.enc(); - $1.i = $1.i + 3; - } - if ($1.p >= 4) { - $k[$j++] = $1.la; - $k[$j++] = $1.setb; - $1.enc(); - $1.cset = "seta"; - } - break; - } - var _6A = $get($1.seta, $1.char1) !== undefined; - if (_6A) { - $k[$j++] = $1.la; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $1.cset = "seta"; - break; - } - var _6G = $get($1.setb, $1.char1) !== undefined; - if (_6G) { - $k[$j++] = $1.lb; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $1.cset = "setb"; - break; - } - var _6M = $get($1.setc, $1.char1) !== undefined; - if (_6M) { - $1.setx = "setc"; - $1.sx = $1.sc; - $1.lkx = $1.lkc; - } - var _6R = $get($1.setd, $1.char1) !== undefined; - if (_6R) { - $1.setx = "setd"; - $1.sx = $1.sd; - $1.lkx = $1.lkd; - } - var _6W = $get($1.sete, $1.char1) !== undefined; - if (_6W) { - $1.setx = "sete"; - $1.sx = $1.se; - $1.lkx = $1.lke; - } - var _6a = $1[$1.setx]; - var _6b = $1.msg; - var _6c = $1.i; - var _6d = $1.msglen; - var _6e = $1.i; - var _6f = _6d - _6e; - var _6g = 4; - if (4 > _6d - _6e) { - var _ = _6f; - _6f = _6g; - _6g = _; - } - $k[$j++] = "p"; - $k[$j++] = _6a; - $k[$j++] = $geti(_6b, _6c, _6g); - $1.prefixinset(); - var _6i = $k[--$j]; - $1[$k[--$j]] = _6i; - if ($1.p == 1) { - $k[$j++] = $1.sx; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $k[$j++] = $1.char1; - $k[$j++] = $1[$1.setx]; - $1.enc(); - $1.i = $1.i + 1; - } - if ($1.p == 2) { - $k[$j++] = $1.sx; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $k[$j++] = $1.char1; - $k[$j++] = $1[$1.setx]; - $1.enc(); - $k[$j++] = $1.sx; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $k[$j++] = $1.char2; - $k[$j++] = $1[$1.setx]; - $1.enc(); - $1.i = $1.i + 2; - } - if ($1.p == 3) { - $k[$j++] = $1.sx; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $k[$j++] = $1.char1; - $k[$j++] = $1[$1.setx]; - $1.enc(); - $k[$j++] = $1.sx; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $k[$j++] = $1.char2; - $k[$j++] = $1[$1.setx]; - $1.enc(); - $k[$j++] = $1.sx; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $k[$j++] = $1.char3; - $k[$j++] = $1[$1.setx]; - $1.enc(); - $1.i = $1.i + 3; - } - if ($1.p >= 4) { - $k[$j++] = $1.sx; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $k[$j++] = $1.lkx; - $k[$j++] = $1[$1.setx]; - $1.enc(); - $1.cset = $1.setx; - } - break; - } - } - $1.encmsg = $geti($1.out, 0, $1.j); - $1.padval = $get($1[$1.cset], $1.pad); - $1.sami = $a([]); - if ($1.sam != -1) { - $1.sami = $a(2); - $put($1.sami, 0, $get($1.seta, $1.pad)); - $put($1.sami, 1, (~~($1.sam / 10) - 1) * 8 + ($1.sam % 10 - 1)); - } - $k[$j++] = Infinity; - $aload($1.sami); - $aload($1.encmsg); - $1.encmsg = $a(); - if ($1.mode == 2 || $1.mode == 3) { - var _7v = $strcpy($s(4), "0000"); - var _7y = $cvrs($s(4), ~~$1.mode, 2); - $puti(_7v, 4 - _7y.length, _7y); - $1.mdb = _7v; - var _80 = $strcpy($s(10), "0000000000"); - var _83 = $cvrs($s(10), ~~$z($1.ccode), 2); - $puti(_80, 10 - _83.length, _83); - $1.ccb = _80; - var _85 = $strcpy($s(10), "0000000000"); - var _88 = $cvrs($s(10), ~~$z($1.scode), 2); - $puti(_85, 10 - _88.length, _88); - $1.scb = _85; - $1.pcb = $strcpy($s(36), "000000000000000000000000000000000000"); - if ($1.mode == 2) { - var _8F = $cvrs($s(6), $1.pcode.length, 2); - $puti($1.pcb, 6 - _8F.length, _8F); - var _8J = $cvrs($s(30), ~~$z($1.pcode), 2); - $puti($1.pcb, 36 - _8J.length, _8J); - } else { - $k[$j++] = Infinity; - var _8L = $strcpy($s(6), " "); - $k[$j++] = _8L; - $k[$j++] = _8L; - $k[$j++] = 0; - if ($1.pcode.length > 6) { - $k[$j++] = $geti($1.pcode, 0, 6); - } else { - $k[$j++] = $1.pcode; - } - var _8Q = $k[--$j]; - var _8R = $k[--$j]; - $puti($k[--$j], _8R, _8Q); - $forall($k[--$j], function() { - var _8W = $get($1.seta, $k[--$j]); - $k[$j++] = _8W; - }); - $1.pccw = $a(); - for (var _8Y = 0; _8Y <= 5; _8Y += 1) { - $1.i = _8Y; - var _8e = $cvrs($s(6), $get($1.pccw, $1.i), 2); - $puti($1.pcb, 6 * $1.i + 6 - _8e.length, _8e); - } - } - $1.scm = $s(60); - $puti($1.scm, 2, $1.mdb); - $puti($1.scm, 38, $geti($1.pcb, 0, 4)); - $puti($1.scm, 30, $geti($1.pcb, 4, 6)); - $puti($1.scm, 24, $geti($1.pcb, 10, 6)); - $puti($1.scm, 18, $geti($1.pcb, 16, 6)); - $puti($1.scm, 12, $geti($1.pcb, 22, 6)); - $puti($1.scm, 6, $geti($1.pcb, 28, 6)); - $puti($1.scm, 0, $geti($1.pcb, 34, 2)); - $puti($1.scm, 52, $geti($1.ccb, 0, 2)); - $puti($1.scm, 42, $geti($1.ccb, 2, 6)); - $puti($1.scm, 36, $geti($1.ccb, 8, 2)); - $puti($1.scm, 54, $geti($1.scb, 0, 6)); - $puti($1.scm, 48, $geti($1.scb, 6, 4)); - $1.pri = $a([ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]); - for (var _9K = 0; _9K <= 59; _9K += 1) { - $1.i = _9K; - $1.ps = ~~($1.i / 6); - $1.ep = ~~Math.pow(2, 5 - $1.i % 6) * ($get($1.scm, $1.i) - 48); - $put($1.pri, $1.ps, $f($get($1.pri, $1.ps) + $1.ep)); - } - $k[$j++] = Infinity; - for (var _9W = 0, _9X = 84; _9W < _9X; _9W++) { - $k[$j++] = $1.padval; - } - $1.sec = $a(); - $puti($1.sec, 0, $1.encmsg); - } - if ($1.mode == 4 || $1.mode == 5 || $1.mode == 6 || $1.mode == -1) { - if ($1.mode == -1) { - var _9i = $1.encmsg.length <= 77 ? 5 : 4; - $1.mode = _9i; - } - $k[$j++] = Infinity; - var _9k = $1.mode == 5 ? 78 : 94; - for (var _9l = 0, _9m = _9k; _9l < _9m; _9l++) { - $k[$j++] = $1.padval; - } - $1.cws = $a(); - $put($1.cws, 0, $1.mode); - $puti($1.cws, 1, $1.encmsg); - $1.pri = $geti($1.cws, 0, 10); - $1.sec = $geti($1.cws, 10, $1.cws.length - 10); - } - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _9y = 0, _9z = 63; _9y < _9z; _9y++) { - var _A0 = $k[--$j]; - var _A1 = _A0 * 2; - $k[$j++] = _A0; - $k[$j++] = _A1; - if (_A1 >= 64) { - var _A2 = $k[--$j]; - $k[$j++] = _A2 ^ 67; - } - } - $1.rsalog = $a(); - $1.rslog = $a(64); - for (var _A5 = 1; _A5 <= 63; _A5 += 1) { - $put($1.rslog, $get($1.rsalog, _A5), _A5); - } - $1.rsprod = function() { - var _A9 = $k[--$j]; - var _AA = $k[--$j]; - $k[$j++] = _AA; - $k[$j++] = _A9; - if (_A9 != 0 && _AA != 0) { - var _AD = $get($1.rslog, $k[--$j]); - var _AI = $get($1.rsalog, $f(_AD + $get($1.rslog, $k[--$j])) % 63); - $k[$j++] = _AI; - } else { - $j -= 2; - $k[$j++] = 0; - } - }; - $1.rscodes = function() { - $1.rsnum = $k[--$j]; - $1.cwb = $k[--$j]; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _AM = 0, _AN = $1.rsnum; _AM < _AN; _AM++) { - $k[$j++] = 0; - } - $1.coeffs = $a(); - for (var _AR = 1, _AQ = $1.rsnum; _AR <= _AQ; _AR += 1) { - $1.i = _AR; - $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); - for (var _AY = $1.i - 1; _AY >= 1; _AY -= 1) { - $1.j = _AY; - $k[$j++] = $1.coeffs; - $k[$j++] = $1.j; - $k[$j++] = $get($1.coeffs, $1.j - 1); - $k[$j++] = $get($1.coeffs, $1.j); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _Ak = $k[--$j]; - var _Al = $k[--$j]; - var _Am = $k[--$j]; - $put($k[--$j], _Am, $xo(_Al, _Ak)); - } - $k[$j++] = $1.coeffs; - $k[$j++] = 0; - $k[$j++] = $get($1.coeffs, 0); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _Au = $k[--$j]; - var _Av = $k[--$j]; - $put($k[--$j], _Av, _Au); - } - $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); - $k[$j++] = Infinity; - for (var _B1 = 0, _B2 = $1.rsnum; _B1 < _B2; _B1++) { - $k[$j++] = 0; - } - $1.ecb = $a(); - for (var _B6 = 0, _B5 = $1.cwb.length - 1; _B6 <= _B5; _B6 += 1) { - $1.t = $xo($get($1.cwb, _B6), $get($1.ecb, 0)); - for (var _BC = $1.ecb.length - 1; _BC >= 0; _BC -= 1) { - $1.i = _BC; - $1.p = $1.ecb.length - $1.i - 1; - $k[$j++] = $1.ecb; - $k[$j++] = $1.p; - $k[$j++] = $1.t; - $k[$j++] = $get($1.coeffs, $1.i); - $1.rsprod(); - var _BL = $k[--$j]; - var _BM = $k[--$j]; - $put($k[--$j], _BM, _BL); - if ($1.i > 0) { - $put($1.ecb, $1.p, $xo($get($1.ecb, $1.p + 1), $get($1.ecb, $1.p))); - } - } - } - $k[$j++] = $1.ecb; - }; - $k[$j++] = Infinity; - for (var _Ba = 0, _BZ = $1.sec.length - 1; _Ba <= _BZ; _Ba += 2) { - $k[$j++] = $get($1.sec, _Ba); - } - $1.seco = $a(); - $k[$j++] = Infinity; - for (var _Bg = 1, _Bf = $1.sec.length - 1; _Bg <= _Bf; _Bg += 2) { - $k[$j++] = $get($1.sec, _Bg); - } - $1.sece = $a(); - var _Bl = $1.sec.length == 84 ? 20 : 28; - $1.scodes = _Bl; - $k[$j++] = "secochk"; - $k[$j++] = $1.seco; - $k[$j++] = $1.scodes; - $1.rscodes(); - var _Bo = $k[--$j]; - $1[$k[--$j]] = _Bo; - $k[$j++] = "secechk"; - $k[$j++] = $1.sece; - $k[$j++] = $1.scodes; - $1.rscodes(); - var _Bs = $k[--$j]; - $1[$k[--$j]] = _Bs; - $k[$j++] = Infinity; - for (var _Bw = 0, _Bv = $1.scodes - 1; _Bw <= _Bv; _Bw += 1) { - $k[$j++] = $get($1.secochk, _Bw); - $k[$j++] = $get($1.secechk, _Bw); - } - $1.secchk = $a(); - $k[$j++] = Infinity; - $aload($1.pri); - $k[$j++] = $1.pri; - $k[$j++] = 10; - $1.rscodes(); - $aload($k[--$j]); - $aload($1.sec); - $aload($1.secchk); - $1.codewords = $a(); - $k[$j++] = Infinity; - for (var _C8 = 0, _C9 = 864; _C8 < _C9; _C8++) { - $k[$j++] = 0; - } - $1.mods = $a(); - for (var _CB = 0; _CB <= 143; _CB += 1) { - $1.i = _CB; - $k[$j++] = Infinity; - var _CG = $cvrs($s(6), $get($1.codewords, $1.i), 2); - for (var _CH = 0, _CI = _CG.length; _CH < _CI; _CH++) { - $k[$j++] = $get(_CG, _CH) - 48; - } - $1.cw = $a(); - $puti($1.mods, 6 * $1.i + (6 - $1.cw.length), $1.cw); - } - $1.modmap = $a([ 469, 529, 286, 316, 347, 346, 673, 672, 703, 702, 647, 676, 283, 282, 313, 312, 370, 610, 618, 379, 378, 409, 408, 439, 705, 704, 559, 589, 588, 619, 458, 518, 640, 701, 675, 674, 285, 284, 315, 314, 310, 340, 531, 289, 288, 319, 349, 348, 456, 486, 517, 516, 471, 470, 369, 368, 399, 398, 429, 428, 549, 548, 579, 578, 609, 608, 649, 648, 679, 678, 709, 708, 639, 638, 669, 668, 699, 698, 279, 278, 309, 308, 339, 338, 381, 380, 411, 410, 441, 440, 561, 560, 591, 590, 621, 620, 547, 546, 577, 576, 607, 606, 367, 366, 397, 396, 427, 426, 291, 290, 321, 320, 351, 350, 651, 650, 681, 680, 711, 710, 1, 0, 31, 30, 61, 60, 3, 2, 33, 32, 63, 62, 5, 4, 35, 34, 65, 64, 7, 6, 37, 36, 67, 66, 9, 8, 39, 38, 69, 68, 11, 10, 41, 40, 71, 70, 13, 12, 43, 42, 73, 72, 15, 14, 45, 44, 75, 74, 17, 16, 47, 46, 77, 76, 19, 18, 49, 48, 79, 78, 21, 20, 51, 50, 81, 80, 23, 22, 53, 52, 83, 82, 25, 24, 55, 54, 85, 84, 27, 26, 57, 56, 87, 86, 117, 116, 147, 146, 177, 176, 115, 114, 145, 144, 175, 174, 113, 112, 143, 142, 173, 172, 111, 110, 141, 140, 171, 170, 109, 108, 139, 138, 169, 168, 107, 106, 137, 136, 167, 166, 105, 104, 135, 134, 165, 164, 103, 102, 133, 132, 163, 162, 101, 100, 131, 130, 161, 160, 99, 98, 129, 128, 159, 158, 97, 96, 127, 126, 157, 156, 95, 94, 125, 124, 155, 154, 93, 92, 123, 122, 153, 152, 91, 90, 121, 120, 151, 150, 181, 180, 211, 210, 241, 240, 183, 182, 213, 212, 243, 242, 185, 184, 215, 214, 245, 244, 187, 186, 217, 216, 247, 246, 189, 188, 219, 218, 249, 248, 191, 190, 221, 220, 251, 250, 193, 192, 223, 222, 253, 252, 195, 194, 225, 224, 255, 254, 197, 196, 227, 226, 257, 256, 199, 198, 229, 228, 259, 258, 201, 200, 231, 230, 261, 260, 203, 202, 233, 232, 263, 262, 205, 204, 235, 234, 265, 264, 207, 206, 237, 236, 267, 266, 297, 296, 327, 326, 357, 356, 295, 294, 325, 324, 355, 354, 293, 292, 323, 322, 353, 352, 277, 276, 307, 306, 337, 336, 275, 274, 305, 304, 335, 334, 273, 272, 303, 302, 333, 332, 271, 270, 301, 300, 331, 330, 361, 360, 391, 390, 421, 420, 363, 362, 393, 392, 423, 422, 365, 364, 395, 394, 425, 424, 383, 382, 413, 412, 443, 442, 385, 384, 415, 414, 445, 444, 387, 386, 417, 416, 447, 446, 477, 476, 507, 506, 537, 536, 475, 474, 505, 504, 535, 534, 473, 472, 503, 502, 533, 532, 455, 454, 485, 484, 515, 514, 453, 452, 483, 482, 513, 512, 451, 450, 481, 480, 511, 510, 541, 540, 571, 570, 601, 600, 543, 542, 573, 572, 603, 602, 545, 544, 575, 574, 605, 604, 563, 562, 593, 592, 623, 622, 565, 564, 595, 594, 625, 624, 567, 566, 597, 596, 627, 626, 657, 656, 687, 686, 717, 716, 655, 654, 685, 684, 715, 714, 653, 652, 683, 682, 713, 712, 637, 636, 667, 666, 697, 696, 635, 634, 665, 664, 695, 694, 633, 632, 663, 662, 693, 692, 631, 630, 661, 660, 691, 690, 721, 720, 751, 750, 781, 780, 723, 722, 753, 752, 783, 782, 725, 724, 755, 754, 785, 784, 727, 726, 757, 756, 787, 786, 729, 728, 759, 758, 789, 788, 731, 730, 761, 760, 791, 790, 733, 732, 763, 762, 793, 792, 735, 734, 765, 764, 795, 794, 737, 736, 767, 766, 797, 796, 739, 738, 769, 768, 799, 798, 741, 740, 771, 770, 801, 800, 743, 742, 773, 772, 803, 802, 745, 744, 775, 774, 805, 804, 747, 746, 777, 776, 807, 806, 837, 836, 867, 866, 897, 896, 835, 834, 865, 864, 895, 894, 833, 832, 863, 862, 893, 892, 831, 830, 861, 860, 891, 890, 829, 828, 859, 858, 889, 888, 827, 826, 857, 856, 887, 886, 825, 824, 855, 854, 885, 884, 823, 822, 853, 852, 883, 882, 821, 820, 851, 850, 881, 880, 819, 818, 849, 848, 879, 878, 817, 816, 847, 846, 877, 876, 815, 814, 845, 844, 875, 874, 813, 812, 843, 842, 873, 872, 811, 810, 841, 840, 871, 870, 901, 900, 931, 930, 961, 960, 903, 902, 933, 932, 963, 962, 905, 904, 935, 934, 965, 964, 907, 906, 937, 936, 967, 966, 909, 908, 939, 938, 969, 968, 911, 910, 941, 940, 971, 970, 913, 912, 943, 942, 973, 972, 915, 914, 945, 944, 975, 974, 917, 916, 947, 946, 977, 976, 919, 918, 949, 948, 979, 978, 921, 920, 951, 950, 981, 980, 923, 922, 953, 952, 983, 982, 925, 924, 955, 954, 985, 984, 927, 926, 957, 956, 987, 986, 58, 89, 88, 118, 149, 148, 178, 209, 208, 238, 269, 268, 298, 329, 328, 358, 389, 388, 418, 449, 448, 478, 509, 508, 538, 569, 568, 598, 629, 628, 658, 689, 688, 718, 749, 748, 778, 809, 808, 838, 869, 868, 898, 929, 928, 958, 989, 988 ]); - $1.pixs = $a(864); - $1.j = 0; - for (var _CT = 0, _CS = $1.mods.length - 1; _CT <= _CS; _CT += 1) { - $1.i = _CT; - if ($get($1.mods, $1.i) == 1) { - $put($1.pixs, $1.j, $get($1.modmap, $1.i)); - $1.j = $1.j + 1; - } - } - $k[$j++] = Infinity; - var _Cf = $geti($1.pixs, 0, $1.j); - for (var _Cg = 0, _Ch = _Cf.length; _Cg < _Ch; _Cg++) { - $k[$j++] = $get(_Cf, _Cg); - } - $k[$j++] = 28; - $k[$j++] = 29; - $k[$j++] = 280; - $k[$j++] = 281; - $k[$j++] = 311; - $k[$j++] = 457; - $k[$j++] = 488; - $k[$j++] = 500; - $k[$j++] = 530; - $k[$j++] = 670; - $k[$j++] = 700; - $k[$j++] = 677; - $k[$j++] = 707; - $1.pixs = $a(); - var _Cm = new Map([ [ "ren", $0.renmaximatrix ], [ "pixs", $1.pixs ], [ "opt", $1.options ] ]); - $k[$j++] = _Cm; - if (!$1.dontdraw) { - $0.renmaximatrix(); - } - }; - $0.azteccode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.format = "unset"; - $1.readerinit = false; - $1.layers = -1; - $1.eclevel = 23; - $1.ecaddchars = 3; - $1.raw = false; - $1.parse = false; - $1.parsefnc = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.layers = ~~$1.layers; - $1.eclevel = +$1.eclevel; - $1.ecaddchars = ~~$1.ecaddchars; - $1.fn1 = -1; - var _B = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "eci", true ], [ "FNC1", $1.fn1 ] ]); - $1.fncvals = _B; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _E = $k[--$j]; - $1[$k[--$j]] = _E; - $1.msglen = $1.msg.length; - $1.msgbits = ""; - if ($ne($1.format, "rune") && $1.raw) { - $1.msgbits = $1.barcode; - } - if ($ne($1.format, "rune") && !$1.raw) { - $1.U = 0; - $1.L = 1; - $1.M = 2; - $1.P = 3; - $1.D = 4; - $1.B = 5; - $1.lu = -2; - $1.ll = -3; - $1.lm = -4; - $1.lp = -5; - $1.ld = -6; - $1.su = -7; - $1.sp = -8; - $1.sb = -9; - $1.fl = -10; - $1.p2 = -11; - $1.p3 = -12; - $1.p4 = -13; - $1.p5 = -14; - $1.charmaps = $a([ $a([ $1.sp, $1.sp, $1.sp, $1.fl, $1.sp ]), $a([ 32, 32, 32, 13, 32 ]), $a([ "A", "a", 1, $1.p2, "0" ]), $a([ "B", "b", 2, $1.p3, "1" ]), $a([ "C", "c", 3, $1.p4, "2" ]), $a([ "D", "d", 4, $1.p5, "3" ]), $a([ "E", "e", 5, "!", "4" ]), $a([ "F", "f", 6, '"', "5" ]), $a([ "G", "g", 7, "#", "6" ]), $a([ "H", "h", 8, "$", "7" ]), $a([ "I", "i", 9, "%", "8" ]), $a([ "J", "j", 10, "&", "9" ]), $a([ "K", "k", 11, "'", "," ]), $a([ "L", "l", 12, 40, "." ]), $a([ "M", "m", 13, 41, $1.lu ]), $a([ "N", "n", 27, "*", $1.su ]), $a([ "O", "o", 28, "+", -99 ]), $a([ "P", "p", 29, ",", -99 ]), $a([ "Q", "q", 30, "-", -99 ]), $a([ "R", "r", 31, ".", -99 ]), $a([ "S", "s", "@", "/", -99 ]), $a([ "T", "t", 92, ":", -99 ]), $a([ "U", "u", "^", ";", -99 ]), $a([ "V", "v", "_", "<", -99 ]), $a([ "W", "w", "`", "=", -99 ]), $a([ "X", "x", "|", ">", -99 ]), $a([ "Y", "y", "~", "?", -99 ]), $a([ "Z", "z", 127, "[", -99 ]), $a([ $1.ll, $1.su, $1.ll, "]", -99 ]), $a([ $1.lm, $1.lm, $1.lu, "{", -99 ]), $a([ $1.ld, $1.ld, $1.lp, "}", -99 ]), $a([ $1.sb, $1.sb, $1.sb, $1.lu, -99 ]) ]); - $1.charvals = $a([ new Map(), new Map(), new Map(), new Map(), new Map() ]); - for (var _1K = 0, _1J = $1.charmaps.length - 1; _1K <= _1J; _1K += 1) { - $1.i = _1K; - $1.encs = $get($1.charmaps, $1.i); - for (var _1O = 0; _1O <= 4; _1O += 1) { - $1.j = _1O; - var _1R = $get($1.encs, $1.j); - $k[$j++] = _1R; - if ($eq($type(_1R), "stringtype")) { - var _1U = $get($k[--$j], 0); - $k[$j++] = _1U; - } - $put($get($1.charvals, $1.j), $k[--$j], $1.i); - } - } - var _1e = new Map([ [ "\r\n", $1.p2 ], [ ". ", $1.p3 ], [ ", ", $1.p4 ], [ ": ", $1.p5 ] ]); - $1.pcomp = _1e; - $1.e = 1e4; - $1.latlen = $a([ $a([ 0, 5, 5, 10, 5, 10 ]), $a([ 9, 0, 5, 10, 5, 10 ]), $a([ 5, 5, 0, 5, 10, 10 ]), $a([ 5, 10, 10, 0, 10, 15 ]), $a([ 4, 9, 9, 14, 0, 14 ]), $a([ 0, 0, 0, 0, 0, 0 ]) ]); - $1.latseq = $a([ $a([ $a([]), $a([ $1.ll ]), $a([ $1.lm ]), $a([ $1.lm, $1.lp ]), $a([ $1.ld ]), $a([ $1.sb ]) ]), $a([ $a([ $1.ld, $1.lu ]), $a([]), $a([ $1.lm ]), $a([ $1.lm, $1.lp ]), $a([ $1.ld ]), $a([ $1.sb ]) ]), $a([ $a([ $1.lu ]), $a([ $1.ll ]), $a([]), $a([ $1.lp ]), $a([ $1.lu, $1.ld ]), $a([ $1.sb ]) ]), $a([ $a([ $1.lu ]), $a([ $1.lu, $1.ll ]), $a([ $1.lu, $1.lm ]), $a([]), $a([ $1.lu, $1.ld ]), $a([ $1.lu, $1.sb ]) ]), $a([ $a([ $1.lu ]), $a([ $1.lu, $1.ll ]), $a([ $1.lu, $1.lm ]), $a([ $1.lu, $1.lm, $1.lp ]), $a([]), $a([ $1.lu, $1.sb ]) ]), $a([ $a([ $1.lu ]), $a([ $1.ll ]), $a([ $1.lm ]), $a([]), $a([]), $a([]) ]) ]); - $1.shftlen = $a([ $a([ $1.e, $1.e, $1.e, 5, $1.e ]), $a([ 5, $1.e, $1.e, 5, $1.e ]), $a([ $1.e, $1.e, $1.e, 5, $1.e ]), $a([ $1.e, $1.e, $1.e, $1.e, $1.e ]), $a([ 4, $1.e, $1.e, 4, $1.e ]) ]); - $1.charsize = function() { - var _3X = $k[--$j]; - $k[$j++] = _3X; - if (_3X >= 0) { - $j--; - var _3a = $get($a([ 5, 5, 5, 5, 4, 8 ]), $k[--$j]); - $k[$j++] = _3a; - } else { - var _3b = $k[--$j]; - var _3c = $k[--$j]; - $k[$j++] = _3b; - $k[$j++] = _3c; - $j--; - var _3d = $k[--$j]; - $k[$j++] = _3d; - if (_3d == $1.fn1) { - $j--; - $k[$j++] = 8; - } else { - var _3g = $f(-$k[--$j] - 1e6); - $k[$j++] = _3g; - if (_3g == 0) { - $j--; - $k[$j++] = 1; - } - var _3h = $k[--$j]; - $k[$j++] = (~~(Math.log(_3h) / Math.log(10)) + 1) * 4 + 8; - } - } - }; - $1.curlen = $a([ 0, $1.e, $1.e, $1.e, $1.e, $1.e ]); - $1.curseq = $a([ $a([]), $a([]), $a([]), $a([]), $a([]), $a([]) ]); - $1.backto = $1.U; - $1.lastchar = ""; - $forall($1.msg, function() { - $1.char = $k[--$j]; - for (;;) { - $1.imp = false; - var _44 = $a([ $1.U, $1.L, $1.M, $1.P, $1.D, $1.B ]); - for (var _45 = 0, _46 = _44.length; _45 < _46; _45++) { - $1.x = $get(_44, _45); - var _4E = $a([ $1.U, $1.L, $1.M, $1.P, $1.D, $1.B ]); - for (var _4F = 0, _4G = _4E.length; _4F < _4G; _4F++) { - $1.y = $get(_4E, _4F); - if ($1.x != $1.B || $1.y == $1.backto) { - $1.cost = $f($get($1.curlen, $1.x) + $get($get($1.latlen, $1.x), $1.y)); - if ($1.cost < $get($1.curlen, $1.y)) { - $put($1.curlen, $1.y, $1.cost); - $k[$j++] = $1.curseq; - $k[$j++] = $1.y; - $k[$j++] = Infinity; - $aload($get($1.curseq, $1.x)); - $aload($get($get($1.latseq, $1.x), $1.y)); - var _4l = $a(); - var _4m = $k[--$j]; - $put($k[--$j], _4m, _4l); - if ($1.y == $1.B) { - $k[$j++] = "backto"; - if ($1.x == $1.P || $1.x == $1.D) { - $k[$j++] = $1.U; - } else { - $k[$j++] = $1.x; - } - var _4w = $k[--$j]; - $1[$k[--$j]] = _4w; - } - $1.imp = true; - } - } - } - } - if (!$1.imp) { - break; - } - } - $1.nxtlen = $a([ $1.e, $1.e, $1.e, $1.e, $1.e, $1.e ]); - $1.nxtseq = $a(6); - var _5D = $a([ $1.U, $1.L, $1.M, $1.P, $1.D, $1.B ]); - for (var _5E = 0, _5F = _5D.length; _5E < _5F; _5E++) { - $1.x = $get(_5D, _5E); - for (;;) { - if ($1.char >= 0) { - if ($1.x != $1.B) { - var _5O = $get($get($1.charvals, $1.x), $1.char) !== undefined; - if (!_5O) { - break; - } - } - } else { - if ($1.x != $1.P) { - break; - } - } - $k[$j++] = "cost"; - $k[$j++] = $get($1.curlen, $1.x); - $k[$j++] = $1.x; - $k[$j++] = $1.char; - $1.charsize(); - var _5W = $k[--$j]; - var _5X = $k[--$j]; - $1[$k[--$j]] = $f(_5X + _5W); - if ($1.cost < $get($1.nxtlen, $1.x)) { - $put($1.nxtlen, $1.x, $1.cost); - $k[$j++] = $1.nxtseq; - $k[$j++] = $1.x; - $k[$j++] = Infinity; - $aload($get($1.curseq, $1.x)); - $k[$j++] = $1.char; - var _5m = $a(); - var _5n = $k[--$j]; - $put($k[--$j], _5n, _5m); - } - if ($1.x == $1.B) { - break; - } - var _5w = $a([ $1.U, $1.L, $1.M, $1.P, $1.D ]); - for (var _5x = 0, _5y = _5w.length; _5x < _5y; _5x++) { - $1.y = $get(_5w, _5x); - if ($ne($1.x, $1.y)) { - $k[$j++] = "cost"; - $k[$j++] = $f($get($1.curlen, $1.y) + $get($get($1.shftlen, $1.y), $1.x)); - $k[$j++] = $1.x; - $k[$j++] = $1.char; - $1.charsize(); - var _6C = $k[--$j]; - var _6D = $k[--$j]; - $1[$k[--$j]] = $f(_6D + _6C); - if ($1.cost < $get($1.nxtlen, $1.y)) { - $put($1.nxtlen, $1.y, $1.cost); - $k[$j++] = $1.nxtseq; - $k[$j++] = $1.y; - $k[$j++] = Infinity; - $aload($get($1.curseq, $1.y)); - var _6T = $1.x == $1.U ? $1.su : $1.sp; - $k[$j++] = _6T; - $k[$j++] = $1.char; - var _6V = $a(); - var _6W = $k[--$j]; - $put($k[--$j], _6W, _6V); - } - } - } - break; - } - } - if ($ne($1.lastchar, "") && $1.char >= 0) { - var _6a = $s(2); - $put(_6a, 0, $1.lastchar); - $put(_6a, 1, $1.char); - $1.pchars = _6a; - var _6f = $get($1.pcomp, $1.pchars) !== undefined; - if (_6f) { - if ($lt($get($1.curlen, $1.P), $get($1.nxtlen, $1.P))) { - $put($1.nxtlen, $1.P, $get($1.curlen, $1.P)); - $k[$j++] = $1.nxtseq; - $k[$j++] = $1.P; - $k[$j++] = Infinity; - $aload($get($1.curseq, $1.P)); - $j--; - $k[$j++] = $get($1.pcomp, $1.pchars); - var _6z = $a(); - var _70 = $k[--$j]; - $put($k[--$j], _70, _6z); - } - } - } - if ($ne($get($1.nxtseq, $1.B), null)) { - $1.numbytes = 0; - $forall($get($1.nxtseq, $1.B), function() { - if ($k[--$j] == $1.sb) { - $k[$j++] = 0; - } else { - $k[$j++] = $1.numbytes + 1; - } - $1.numbytes = $k[--$j]; - }); - if ($1.numbytes == 32) { - $put($1.nxtlen, $1.B, $f($get($1.nxtlen, $1.B) + 11)); - } - } - $1.curlen = $1.nxtlen; - $1.curseq = $1.nxtseq; - $k[$j++] = "lastchar"; - if ($1.char >= 0) { - $k[$j++] = $1.char; - } else { - $k[$j++] = ""; - } - var _7M = $k[--$j]; - $1[$k[--$j]] = _7M; - }); - $1.minseq = $1.e; - var _7V = $a([ $1.U, $1.L, $1.M, $1.P, $1.D, $1.B ]); - for (var _7W = 0, _7X = _7V.length; _7W < _7X; _7W++) { - $1.i = $get(_7V, _7W); - if ($get($1.curlen, $1.i) < $1.minseq) { - $1.minseq = $get($1.curlen, $1.i); - $1.seq = $get($1.curseq, $1.i); - } - } - $1.tobin = function() { - var _7k = $s($k[--$j]); - $k[$j++] = _7k; - for (var _7m = 0, _7l = _7k.length - 1; _7m <= _7l; _7m += 1) { - var _7n = $k[--$j]; - $put(_7n, _7m, 48); - $k[$j++] = _7n; - } - var _7o = $k[--$j]; - var _7r = $cvrs($s(_7o.length), $k[--$j], 2); - $puti(_7o, _7o.length - _7r.length, _7r); - $k[$j++] = _7o; - }; - $1.encu = function() { - var _7w = $get($get($1.charvals, $1.U), $k[--$j]); - $k[$j++] = _7w; - $k[$j++] = 5; - $1.tobin(); - }; - $1.encl = function() { - var _81 = $get($get($1.charvals, $1.L), $k[--$j]); - $k[$j++] = _81; - $k[$j++] = 5; - $1.tobin(); - }; - $1.encm = function() { - var _86 = $get($get($1.charvals, $1.M), $k[--$j]); - $k[$j++] = _86; - $k[$j++] = 5; - $1.tobin(); - }; - $1.encd = function() { - var _8B = $get($get($1.charvals, $1.D), $k[--$j]); - $k[$j++] = _8B; - $k[$j++] = 4; - $1.tobin(); - }; - $1.encp = function() { - var _8C = $k[--$j]; - $k[$j++] = _8C; - if (_8C == $1.fn1) { - $j--; - $k[$j++] = "00000000"; - } else { - var _8E = $k[--$j]; - $k[$j++] = _8E; - if (_8E <= -1e6) { - var _8G = $f(-$k[--$j] - 1e6); - $k[$j++] = _8G; - $k[$j++] = _8G; - if (_8G == 0) { - $j--; - $k[$j++] = 1; - } - var _8I = ~~(Math.log($k[--$j]) / Math.log(10)); - var _8J = $s((_8I + 1) * 4 + 8); - $puti(_8J, 0, "00000"); - $k[$j++] = _8I; - $k[$j++] = _8J; - $k[$j++] = _8J; - $k[$j++] = _8I + 1; - $k[$j++] = 3; - $1.tobin(); - var _8K = $k[--$j]; - $puti($k[--$j], 5, _8K); - var _8M = $k[--$j]; - var _8N = $k[--$j]; - var _8O = $k[--$j]; - $k[$j++] = _8M; - $k[$j++] = _8O; - for (var _8P = _8N; _8P >= 0; _8P -= 1) { - var _8Q = $k[--$j]; - var _8R = $k[--$j]; - $k[$j++] = _8R; - $k[$j++] = ~~(_8Q / 10); - $k[$j++] = _8R; - $k[$j++] = _8P * 4 + 8; - $k[$j++] = $f(_8Q % 10 + 2); - $k[$j++] = 4; - $1.tobin(); - var _8S = $k[--$j]; - var _8T = $k[--$j]; - $puti($k[--$j], _8T, _8S); - } - $j--; - } else { - var _8Z = $get($get($1.charvals, $1.P), $k[--$j]); - $k[$j++] = _8Z; - $k[$j++] = 5; - $1.tobin(); - } - } - }; - $1.encfuncs = $a([ "encu", "encl", "encm", "encp", "encd" ]); - $1.addtomsgbits = function() { - $1.v = $k[--$j]; - $puti($1.msgbits, $1.j, $1.v); - $1.j = $1.j + $1.v.length; - }; - $1.state = $1.U; - $1.msgbits = $s($1.minseq); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i >= $1.seq.length) { - break; - } - if ($1.state != $1.B) { - $1.char = $get($1.seq, $1.i); - $k[$j++] = $1.char; - if ($1[$get($1.encfuncs, $1.state)]() === true) { - break; - } - $1.addtomsgbits(); - $1.i = $1.i + 1; - if ($1.char == $1.su || $1.char == $1.sp) { - $k[$j++] = $get($1.seq, $1.i); - if ($1.char == $1.su) { - $1.encu(); - } else { - $1.encp(); - } - $1.addtomsgbits(); - $1.i = $1.i + 1; - } - if ($1.char == $1.lu) { - $1.state = $1.U; - } - if ($1.char == $1.ll) { - $1.state = $1.L; - } - if ($1.char == $1.lm) { - $1.state = $1.M; - } - if ($1.char == $1.lp) { - $1.state = $1.P; - } - if ($1.char == $1.ld) { - $1.state = $1.D; - } - if ($1.char == $1.sb) { - $1.state = $1.B; - } - } else { - $1.numbytes = 0; - for (;;) { - if ($1.i + $1.numbytes >= $1.seq.length) { - break; - } - if ($get($1.seq, $1.i + $1.numbytes) < 0) { - break; - } - $1.numbytes = $1.numbytes + 1; - } - if ($1.numbytes <= 31) { - $k[$j++] = $1.numbytes; - $k[$j++] = 5; - $1.tobin(); - $1.addtomsgbits(); - } else { - $k[$j++] = 0; - $k[$j++] = 5; - $1.tobin(); - $1.addtomsgbits(); - $k[$j++] = $1.numbytes - 31; - $k[$j++] = 11; - $1.tobin(); - $1.addtomsgbits(); - } - for (var _9b = 0, _9c = $1.numbytes; _9b < _9c; _9b++) { - $k[$j++] = $get($1.seq, $1.i); - $k[$j++] = 8; - $1.tobin(); - $1.addtomsgbits(); - $1.i = $1.i + 1; - } - if ($1.i < $1.seq.length) { - $1.char = $get($1.seq, $1.i); - $1.i = $1.i + 1; - if ($1.char == $1.lu) { - $1.state = $1.U; - } - if ($1.char == $1.ll) { - $1.state = $1.L; - } - if ($1.char == $1.lm) { - $1.state = $1.M; - } - } - } - } - } - $1.metrics = $a([ $a([ "rune", 0, 0, 0, 6 ]), $a([ "compact", 1, 1, 17, 6 ]), $a([ "full", 1, 1, 21, 6 ]), $a([ "compact", 2, 0, 40, 6 ]), $a([ "full", 2, 1, 48, 6 ]), $a([ "compact", 3, 0, 51, 8 ]), $a([ "full", 3, 1, 60, 8 ]), $a([ "compact", 4, 0, 76, 8 ]), $a([ "full", 4, 1, 88, 8 ]), $a([ "full", 5, 1, 120, 8 ]), $a([ "full", 6, 1, 156, 8 ]), $a([ "full", 7, 1, 196, 8 ]), $a([ "full", 8, 1, 240, 8 ]), $a([ "full", 9, 1, 230, 10 ]), $a([ "full", 10, 1, 272, 10 ]), $a([ "full", 11, 1, 316, 10 ]), $a([ "full", 12, 1, 364, 10 ]), $a([ "full", 13, 1, 416, 10 ]), $a([ "full", 14, 1, 470, 10 ]), $a([ "full", 15, 1, 528, 10 ]), $a([ "full", 16, 1, 588, 10 ]), $a([ "full", 17, 1, 652, 10 ]), $a([ "full", 18, 1, 720, 10 ]), $a([ "full", 19, 1, 790, 10 ]), $a([ "full", 20, 1, 864, 10 ]), $a([ "full", 21, 1, 940, 10 ]), $a([ "full", 22, 1, 1020, 10 ]), $a([ "full", 23, 0, 920, 12 ]), $a([ "full", 24, 0, 992, 12 ]), $a([ "full", 25, 0, 1066, 12 ]), $a([ "full", 26, 0, 1144, 12 ]), $a([ "full", 27, 0, 1224, 12 ]), $a([ "full", 28, 0, 1306, 12 ]), $a([ "full", 29, 0, 1392, 12 ]), $a([ "full", 30, 0, 1480, 12 ]), $a([ "full", 31, 0, 1570, 12 ]), $a([ "full", 32, 0, 1664, 12 ]) ]); - $1.i = 0; - for (;;) { - $1.m = $get($1.metrics, $1.i); - $1.frmt = $get($1.m, 0); - $1.mlyr = $get($1.m, 1); - $1.icap = $get($1.m, 2); - $1.ncws = $get($1.m, 3); - $1.bpcw = $get($1.m, 4); - $1.numecw = ~~Math.ceil($f($1.ncws * $1.eclevel / 100 + $1.ecaddchars)); - if ($1.msgbits.length == 0) { - $1.numecw = 0; - } - $1.numdcw = $f($1.ncws - $1.numecw); - $1.okay = true; - if ($ne($1.format, "unset") && $ne($1.format, $1.frmt)) { - $1.okay = false; - } - if ($1.readerinit && $1.icap != 1) { - $1.okay = false; - } - if ($1.layers != -1 && $1.layers != $1.mlyr) { - $1.okay = false; - } - if (~~Math.ceil($1.msgbits.length / $1.bpcw) > $1.numdcw) { - $1.okay = false; - } - if ($1.okay) { - break; - } - $1.i = $1.i + 1; - } - $1.layers = $1.mlyr; - $1.format = $1.frmt; - $1.allzero = function() { - var _B6 = $k[--$j]; - $k[$j++] = $eq(_B6, $geti("000000000000", 0, _B6.length)); - }; - $1.allones = function() { - var _B8 = $k[--$j]; - $k[$j++] = $eq(_B8, $geti("111111111111", 0, _B8.length)); - }; - $1.cws = $a($1.ncws); - $1.m = 0; - $1.c = 0; - for (;;) { - if ($1.msgbits.length <= $1.m) { - break; - } - if ($1.msgbits.length - $1.m >= $1.bpcw) { - $1.cwb = $geti($1.msgbits, $1.m, $f($1.bpcw - 1)); - $1.cwf = $geti($1.msgbits, $f($f($1.m + $1.bpcw) - 1), 1); - $k[$j++] = $1.cwb; - $1.allzero(); - if ($k[--$j]) { - $1.cwf = "1"; - $1.m = $1.m - 1; - } - $k[$j++] = $1.cwb; - $1.allones(); - if ($k[--$j]) { - $1.cwf = "0"; - $1.m = $1.m - 1; - } - var _BV = $s(12); - $puti(_BV, 0, $1.cwb); - $puti(_BV, $f($1.bpcw - 1), $1.cwf); - $1.cwb = $geti(_BV, 0, $1.bpcw); - } else { - $1.cwb = $geti($1.msgbits, $1.m, $1.msgbits.length - $1.m); - var _Bh = $strcpy($s(12), "111111111111"); - $puti(_Bh, 0, $1.cwb); - $1.cwb = $geti(_Bh, 0, $1.bpcw); - $k[$j++] = $1.cwb; - $1.allones(); - if ($k[--$j]) { - $puti($1.cwb, $1.cwb.length - 1, "0"); - } - } - $1.cw = 0; - for (var _Br = 0, _Bq = $f($1.bpcw - 1); _Br <= _Bq; _Br += 1) { - $1.i = _Br; - $1.cw = $f($1.cw + ~~Math.pow(2, $f($f($1.bpcw - $1.i) - 1)) * $f($get($1.cwb, $1.i) - 48)); - } - $put($1.cws, $1.c, $1.cw); - $1.m = $f($1.m + $1.bpcw); - $1.c = $1.c + 1; - } - $1.cws = $geti($1.cws, 0, $1.c); - $1.rscodes = function() { - $1.rspm = $k[--$j]; - $1.rsgf = $k[--$j]; - $1.rsnc = $k[--$j]; - $1.rscws = $k[--$j]; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _CC = 0, _CD = $f($1.rsgf - 1); _CC < _CD; _CC++) { - var _CE = $k[--$j]; - var _CF = _CE * 2; - $k[$j++] = _CE; - $k[$j++] = _CF; - if (_CF >= $1.rsgf) { - var _CI = $k[--$j]; - $k[$j++] = $xo(_CI, $1.rspm); - } - } - $1.rsalog = $a(); - $1.rslog = $a($1.rsgf); - for (var _CO = 1, _CN = $f($1.rsgf - 1); _CO <= _CN; _CO += 1) { - $put($1.rslog, $get($1.rsalog, _CO), _CO); - } - $1.rsprod = function() { - var _CS = $k[--$j]; - var _CT = $k[--$j]; - $k[$j++] = _CT; - $k[$j++] = _CS; - if (_CS != 0 && _CT != 0) { - var _CW = $get($1.rslog, $k[--$j]); - var _Cc = $get($1.rsalog, $f(_CW + $get($1.rslog, $k[--$j])) % $f($1.rsgf - 1)); - $k[$j++] = _Cc; - } else { - $j -= 2; - $k[$j++] = 0; - } - }; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _Ce = 0, _Cf = $1.rsnc; _Ce < _Cf; _Ce++) { - $k[$j++] = 0; - } - $1.coeffs = $a(); - for (var _Cj = 1, _Ci = $1.rsnc; _Cj <= _Ci; _Cj += 1) { - $1.i = _Cj; - $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); - for (var _Cq = $1.i - 1; _Cq >= 1; _Cq -= 1) { - $1.j = _Cq; - $k[$j++] = $1.coeffs; - $k[$j++] = $1.j; - $k[$j++] = $get($1.coeffs, $1.j - 1); - $k[$j++] = $get($1.coeffs, $1.j); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _D2 = $k[--$j]; - var _D3 = $k[--$j]; - var _D4 = $k[--$j]; - $put($k[--$j], _D4, $xo(_D3, _D2)); - } - $k[$j++] = $1.coeffs; - $k[$j++] = 0; - $k[$j++] = $get($1.coeffs, 0); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _DC = $k[--$j]; - var _DD = $k[--$j]; - $put($k[--$j], _DD, _DC); - } - $1.nd = $1.rscws.length; - $k[$j++] = Infinity; - $forall($1.rscws); - for (var _DI = 0, _DJ = $1.rsnc; _DI < _DJ; _DI++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.rscws = $a(); - for (var _DN = 0, _DM = $1.nd - 1; _DN <= _DM; _DN += 1) { - $1.k = $xo($get($1.rscws, _DN), $get($1.rscws, $1.nd)); - for (var _DV = 0, _DU = $f($1.rsnc - 1); _DV <= _DU; _DV += 1) { - $1.j = _DV; - $k[$j++] = $1.rscws; - $k[$j++] = $1.nd + $1.j; - $k[$j++] = $get($1.rscws, $1.nd + $1.j + 1); - $k[$j++] = $1.k; - $k[$j++] = $get($1.coeffs, $f($f($1.rsnc - $1.j) - 1)); - $1.rsprod(); - var _Di = $k[--$j]; - var _Dj = $k[--$j]; - var _Dk = $k[--$j]; - $put($k[--$j], _Dk, $xo(_Dj, _Di)); - } - } - $k[$j++] = $geti($1.rscws, 0, $1.rscws.length - 1); - }; - if ($eq($1.format, "full")) { - $1.mode = ($f($1.layers - 1) << 11) + ($1.cws.length - 1); - if ($1.readerinit) { - $1.mode = $1.mode | 1024; - } - $1.mode = $a([ ($1.mode & 61440) >>> 12, ($1.mode & 3840) >>> 8, ($1.mode & 240) >>> 4, $1.mode & 15 ]); - $k[$j++] = "mode"; - $k[$j++] = $1.mode; - $k[$j++] = 6; - $k[$j++] = 16; - $k[$j++] = 19; - $1.rscodes(); - var _E0 = $k[--$j]; - $1[$k[--$j]] = _E0; - } - if ($eq($1.format, "compact")) { - $1.mode = ($f($1.layers - 1) << 6) + ($1.cws.length - 1); - if ($1.readerinit) { - $1.mode = $1.mode | 32; - } - $1.mode = $a([ ($1.mode & 240) >>> 4, $1.mode & 15 ]); - $k[$j++] = "mode"; - $k[$j++] = $1.mode; - $k[$j++] = 5; - $k[$j++] = 16; - $k[$j++] = 19; - $1.rscodes(); - var _EB = $k[--$j]; - $1[$k[--$j]] = _EB; - } - if ($eq($1.format, "rune")) { - $1.mode = ~~$z($1.barcode); - $1.mode = $a([ ($1.mode & 240) >>> 4, $1.mode & 15 ]); - $k[$j++] = "mode"; - $k[$j++] = $1.mode; - $k[$j++] = 5; - $k[$j++] = 16; - $k[$j++] = 19; - $1.rscodes(); - var _EJ = $k[--$j]; - $1[$k[--$j]] = _EJ; - $k[$j++] = Infinity; - var _EL = $1.mode; - for (var _EM = 0, _EN = _EL.length; _EM < _EN; _EM++) { - $k[$j++] = $get(_EL, _EM) ^ 10; - } - $1.mode = $a(); - } - $1.modebits = $s($1.mode.length * 4); - for (var _EU = 0, _ET = $1.modebits.length - 1; _EU <= _ET; _EU += 1) { - $puti($1.modebits, _EU, "0"); - } - for (var _EY = 0, _EX = $1.mode.length - 1; _EY <= _EX; _EY += 1) { - $1.i = _EY; - var _Ee = $cvrs($s(4), $get($1.mode, $1.i), 2); - $puti($1.modebits, 4 - _Ee.length + 4 * $1.i, _Ee); - } - $1.rsparams = $a([ $a([]), $a([]), $a([]), $a([]), $a([]), $a([]), $a([ 64, 67 ]), $a([]), $a([ 256, 301 ]), $a([]), $a([ 1024, 1033 ]), $a([]), $a([ 4096, 4201 ]) ]); - $k[$j++] = "cws"; - $k[$j++] = $1.cws; - $k[$j++] = $f($1.ncws - $1.cws.length); - $forall($get($1.rsparams, $1.bpcw)); - $1.rscodes(); - var _F0 = $k[--$j]; - $1[$k[--$j]] = _F0; - if ($eq($1.format, "full")) { - $1.databits = $s($f($1.layers * $1.layers * 16 + $1.layers * 112)); - } else { - $1.databits = $s($f($1.layers * $1.layers * 16 + $1.layers * 88)); - } - for (var _FD = 0, _FC = $1.databits.length - 1; _FD <= _FC; _FD += 1) { - $puti($1.databits, _FD, "0"); - } - for (var _FH = 0, _FG = $f($1.ncws - 1); _FH <= _FG; _FH += 1) { - $1.i = _FH; - var _FO = $cvrs($s($1.bpcw), $get($1.cws, $1.i), 2); - $puti($1.databits, $f($f($f($1.bpcw - _FO.length) + $1.bpcw * $1.i) + $f($1.databits.length - $1.ncws * $1.bpcw)), _FO); - } - $1.cmv = function() { - var _FW = $k[--$j]; - var _FX = $k[--$j]; - $k[$j++] = $f($f(_FX - _FW * $1.size) + $1.mid); - }; - $1.lmv = function() { - $1.lbit = $k[--$j]; - $1.llyr = $k[--$j]; - $1.lwid = $f($1.fw + $1.llyr * 4); - $1.ldir = ~~(~~($1.lbit / 2) / $1.lwid); - if ($1.ldir == 0) { - $k[$j++] = $f(-~~($f($1.lwid - 1) / 2) + 1 + ~~($1.lbit / 2) % $1.lwid); - $k[$j++] = $f($f(~~(($1.fw - 1) / 2) + $1.llyr * 2) + $1.lbit % 2); - $1.cmv(); - } - if ($1.ldir == 1) { - $k[$j++] = $f($f(~~($1.fw / 2) + $1.llyr * 2) + $1.lbit % 2); - $k[$j++] = $f(~~($f($1.lwid - 1) / 2) - 1 - ~~($1.lbit / 2) % $1.lwid); - $1.cmv(); - } - if ($1.ldir == 2) { - $k[$j++] = -$f(-~~($1.lwid / 2) + 1 + ~~($1.lbit / 2) % $1.lwid); - $k[$j++] = -$f($f(~~($1.fw / 2) + $1.llyr * 2) + $1.lbit % 2); - $1.cmv(); - } - if ($1.ldir == 3) { - $k[$j++] = -$f($f(~~(($1.fw - 1) / 2) + $1.llyr * 2) + $1.lbit % 2); - $k[$j++] = -$f(~~($1.lwid / 2) - 1 - ~~($1.lbit / 2) % $1.lwid); - $1.cmv(); - } - }; - if ($eq($1.format, "full")) { - $1.fw = 12; - } else { - $1.fw = 9; - } - $1.size = $f($f($1.fw + $1.layers * 4) + 2); - $k[$j++] = Infinity; - for (var _GC = 0, _GD = $1.size * $1.size; _GC < _GD; _GC++) { - $k[$j++] = -1; - } - $1.pixs = $a(); - $1.mid = $f(~~($f($1.size - 1) / 2) * $1.size + ~~($f($1.size - 1) / 2)); - $1.i = 0; - for (var _GK = 1, _GJ = $1.layers; _GK <= _GJ; _GK += 1) { - $1.layer = _GK; - for (var _GO = 0, _GN = ($1.fw + $1.layer * 4) * 8 - 1; _GO <= _GN; _GO += 1) { - $1.pos = _GO; - $k[$j++] = $1.pixs; - $k[$j++] = $1.layer; - $k[$j++] = $1.pos; - $1.lmv(); - var _GW = $k[--$j]; - $put($k[--$j], _GW, $get($1.databits, $1.databits.length - $1.i - 1) - 48); - $1.i = $1.i + 1; - } - } - if ($eq($1.format, "full")) { - $1.fw = 13; - $1.size = $f($f($f($1.fw + $1.layers * 4) + 2) + ~~$f($f($1.layers + 10.5) / 7.5 - 1) * 2); - $1.mid = ~~($1.size * $1.size / 2); - $k[$j++] = Infinity; - for (var _Gh = 0, _Gi = $1.size * $1.size; _Gh < _Gi; _Gh++) { - $k[$j++] = -2; - } - $1.npixs = $a(); - for (var _Gm = 0, _Gl = ~~($1.size / 2); _Gm <= _Gl; _Gm += 16) { - $1.i = _Gm; - for (var _Gp = 0, _Go = $f($1.size - 1); _Gp <= _Go; _Gp += 1) { - $1.j = _Gp; - $k[$j++] = $1.npixs; - $k[$j++] = -~~($1.size / 2) + $1.j; - $k[$j++] = $1.i; - $1.cmv(); - var _Gy = $k[--$j]; - $puti($k[--$j], _Gy, $a([ (~~($1.size / 2) + $1.j + $1.i + 1) % 2 ])); - $k[$j++] = $1.npixs; - $k[$j++] = -~~($1.size / 2) + $1.j; - $k[$j++] = -$1.i; - $1.cmv(); - var _H8 = $k[--$j]; - $puti($k[--$j], _H8, $a([ (~~($1.size / 2) + $1.j + $1.i + 1) % 2 ])); - $k[$j++] = $1.npixs; - $k[$j++] = $1.i; - $k[$j++] = -~~($1.size / 2) + $1.j; - $1.cmv(); - var _HI = $k[--$j]; - $puti($k[--$j], _HI, $a([ (~~($1.size / 2) + $1.j + $1.i + 1) % 2 ])); - $k[$j++] = $1.npixs; - $k[$j++] = -$1.i; - $k[$j++] = -~~($1.size / 2) + $1.j; - $1.cmv(); - var _HS = $k[--$j]; - $puti($k[--$j], _HS, $a([ (~~($1.size / 2) + $1.j + $1.i + 1) % 2 ])); - } - } - $1.j = 0; - for (var _HW = 0, _HV = $1.npixs.length - 1; _HW <= _HV; _HW += 1) { - $1.i = _HW; - if ($get($1.npixs, $1.i) == -2) { - $put($1.npixs, $1.i, $get($1.pixs, $1.j)); - $1.j = $1.j + 1; - } - } - $1.pixs = $1.npixs; - } - $1.fw = ~~($1.fw / 2); - for (var _Hl = -$1.fw, _Hk = $1.fw; _Hl <= _Hk; _Hl += 1) { - $1.i = _Hl; - for (var _Hp = -$1.fw, _Ho = $1.fw; _Hp <= _Ho; _Hp += 1) { - $1.j = _Hp; - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.cmv(); - if (Math.abs($1.i) > Math.abs($1.j)) { - $k[$j++] = Math.abs($1.i); - } else { - $k[$j++] = Math.abs($1.j); - } - var _Hx = $k[--$j]; - var _Hy = $k[--$j]; - $put($k[--$j], _Hy, $f(_Hx + 1) % 2); - } - } - var _Ia = $a([ $a([ -($1.fw + 1), $1.fw, 1 ]), $a([ -($1.fw + 1), $1.fw + 1, 1 ]), $a([ -$1.fw, $1.fw + 1, 1 ]), $a([ $1.fw + 1, $1.fw + 1, 1 ]), $a([ $1.fw + 1, $1.fw, 1 ]), $a([ $1.fw + 1, -$1.fw, 1 ]), $a([ $1.fw, $1.fw + 1, 0 ]), $a([ $1.fw + 1, -($1.fw + 1), 0 ]), $a([ $1.fw, -($1.fw + 1), 0 ]), $a([ -$1.fw, -($1.fw + 1), 0 ]), $a([ -($1.fw + 1), -($1.fw + 1), 0 ]), $a([ -($1.fw + 1), -$1.fw, 0 ]) ]); - for (var _Ib = 0, _Ic = _Ia.length; _Ib < _Ic; _Ib++) { - $k[$j++] = $1.pixs; - $forall($get(_Ia, _Ib)); - var _If = $k[--$j]; - var _Ig = $k[--$j]; - var _Ih = $k[--$j]; - $k[$j++] = _If; - $k[$j++] = _Ih; - $k[$j++] = _Ig; - $1.cmv(); - var _Ii = $k[--$j]; - var _Ij = $k[--$j]; - $put($k[--$j], _Ii, _Ij); - } - if ($eq($1.format, "full")) { - $1.modemap = $a([ $a([ -5, 7 ]), $a([ -4, 7 ]), $a([ -3, 7 ]), $a([ -2, 7 ]), $a([ -1, 7 ]), $a([ 1, 7 ]), $a([ 2, 7 ]), $a([ 3, 7 ]), $a([ 4, 7 ]), $a([ 5, 7 ]), $a([ 7, 5 ]), $a([ 7, 4 ]), $a([ 7, 3 ]), $a([ 7, 2 ]), $a([ 7, 1 ]), $a([ 7, -1 ]), $a([ 7, -2 ]), $a([ 7, -3 ]), $a([ 7, -4 ]), $a([ 7, -5 ]), $a([ 5, -7 ]), $a([ 4, -7 ]), $a([ 3, -7 ]), $a([ 2, -7 ]), $a([ 1, -7 ]), $a([ -1, -7 ]), $a([ -2, -7 ]), $a([ -3, -7 ]), $a([ -4, -7 ]), $a([ -5, -7 ]), $a([ -7, -5 ]), $a([ -7, -4 ]), $a([ -7, -3 ]), $a([ -7, -2 ]), $a([ -7, -1 ]), $a([ -7, 1 ]), $a([ -7, 2 ]), $a([ -7, 3 ]), $a([ -7, 4 ]), $a([ -7, 5 ]) ]); - } else { - $1.modemap = $a([ $a([ -3, 5 ]), $a([ -2, 5 ]), $a([ -1, 5 ]), $a([ 0, 5 ]), $a([ 1, 5 ]), $a([ 2, 5 ]), $a([ 3, 5 ]), $a([ 5, 3 ]), $a([ 5, 2 ]), $a([ 5, 1 ]), $a([ 5, 0 ]), $a([ 5, -1 ]), $a([ 5, -2 ]), $a([ 5, -3 ]), $a([ 3, -5 ]), $a([ 2, -5 ]), $a([ 1, -5 ]), $a([ 0, -5 ]), $a([ -1, -5 ]), $a([ -2, -5 ]), $a([ -3, -5 ]), $a([ -5, -3 ]), $a([ -5, -2 ]), $a([ -5, -1 ]), $a([ -5, 0 ]), $a([ -5, 1 ]), $a([ -5, 2 ]), $a([ -5, 3 ]) ]); - } - for (var _Jw = 0, _Jv = $1.modemap.length - 1; _Jw <= _Jv; _Jw += 1) { - $1.i = _Jw; - $k[$j++] = $1.pixs; - $forall($get($1.modemap, $1.i)); - $1.cmv(); - var _K4 = $k[--$j]; - $put($k[--$j], _K4, $get($1.modebits, $1.i) - 48); - } - var _KC = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", $1.size ], [ "pixy", $1.size ], [ "height", $1.size * 2 / 72 ], [ "width", $1.size * 2 / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _KC; - if (!$1.dontdraw) { - $0.renmatrix(); - } - }; - $0.azteccodecompact = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $put($1.options, "dontdraw", true); - $put($1.options, "format", "compact"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.azteccode(); - var _9 = $k[--$j]; - $1[$k[--$j]] = _9; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } - }; - $0.aztecrune = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $put($1.options, "dontdraw", true); - $put($1.options, "format", "rune"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.azteccode(); - var _9 = $k[--$j]; - $1[$k[--$j]] = _9; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + $0.aztecrune = function() { + var $1 = {}; //#21182 + $1.options = $k[--$j]; //#21184 + $1.barcode = $k[--$j]; //#21185 + $1.dontdraw = false; //#21187 + $forall($1.options, function() { //#21198 + var _3 = $k[--$j]; //#21198 + $1[$k[--$j]] = _3; //#21198 + }); //#21198 + $put($1.options, "dontdraw", true); //#21201 + $put($1.options, "format", "rune"); //#21202 + $k[$j++] = 'args'; //#21204 + $k[$j++] = $1.barcode; //#21204 + $k[$j++] = $1.options; //#21204 + $0.azteccode(); //#21204 + var _9 = $k[--$j]; //#21204 + $1[$k[--$j]] = _9; //#21204 + $put($1.args, "opt", $1.options); //#21206 + $k[$j++] = $1.args; //#21209 + if (!$1.dontdraw) { //#21209 + $0.renmatrix(); //#21209 + } //#21209 }; $0.codeone = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.version = "unset"; - $1.parse = false; - $1.parsefnc = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.stype = $eq($geti($1.version, 0, 1), "S"); - if ($1.stype) { - $1.vals = $a([ "1", "1010", "1100100", "1111101000", "10011100010000", "11000011010100000", "11110100001001000000", "100110001001011010000000", "101111101011110000100000000", "111011100110101100101000000000", "1001010100000010111110010000000000", "1011101001000011101101110100000000000", "1110100011010100101001010001000000000000", "10010001100001001110011100101010000000000000", "10110101111001100010000011110100100000000000000", "11100011010111111010100100110001101000000000000000", "100011100001101111001001101111110000010000000000000000", "101100011010001010111100001011101100010100000000000000000" ]); + var $1 = {}; //#21239 + $1.options = $k[--$j]; //#21241 + $1.barcode = $k[--$j]; //#21242 + $1.dontdraw = false; //#21244 + $1.version = "unset"; //#21245 + $1.parse = false; //#21246 + $1.parsefnc = false; //#21247 + $forall($1.options, function() { //#21258 + var _3 = $k[--$j]; //#21258 + $1[$k[--$j]] = _3; //#21258 + }); //#21258 + $1.stype = $eq($geti($1.version, 0, 1), "S"); //#21260 + if ($1.stype) { //#21895 + $1.vals = $a(["1", "1010", "1100100", "1111101000", "10011100010000", "11000011010100000", "11110100001001000000", "100110001001011010000000", "101111101011110000100000000", "111011100110101100101000000000", "1001010100000010111110010000000000", "1011101001000011101101110100000000000", "1110100011010100101001010001000000000000", "10010001100001001110011100101010000000000000", "10110101111001100010000011110100100000000000000", "11100011010111111010100100110001101000000000000000", "100011100001101111001001101111110000010000000000000000", "101100011010001010111100001011101100010100000000000000000"]); //#21282 $1.normalize = function() { - $1.base = $k[--$j]; - $1.num = $k[--$j]; - for (var _C = $1.num.length - 1; _C >= 1; _C -= 1) { - $1.i = _C; - var _D = $1.num; - var _E = $1.i; - $put(_D, _E - 1, $f($get(_D, _E - 1) + ~~($get($1.num, $1.i) / $1.base))); - $put($1.num, $1.i, $get($1.num, $1.i) % $1.base); - } - for (;;) { - if ($lt($get($1.num, 0), $1.base)) { - break; - } - $k[$j++] = Infinity; - $k[$j++] = 0; - $forall($1.num); - $1.num = $a(); - $put($1.num, 0, $f($get($1.num, 0) + ~~($get($1.num, 1) / $1.base))); - $put($1.num, 1, $get($1.num, 1) % $1.base); - } - $k[$j++] = Infinity; - $1.i = true; - var _f = $1.num; - for (var _g = 0, _h = _f.length; _g < _h; _g++) { - var _i = $get(_f, _g); - $k[$j++] = _i; - if (_i == 0 && $1.i) { - $j--; - } else { - $1.i = false; - } - } - $1.num = $a(); - if ($1.num.length == 0) { - $1.num = $a([ 0 ]); - } - $k[$j++] = $1.num; - }; + $1.base = $k[--$j]; //#21285 + $1.num = $k[--$j]; //#21286 + for (var _C = $1.num.length - 1; _C >= 1; _C -= 1) { //#21291 + $1.i = _C; //#21288 + var _D = $1.num; //#21289 + var _E = $1.i; //#21289 + $put(_D, _E - 1, $f($get(_D, _E - 1) + (~~($get($1.num, $1.i) / $1.base)))); //#21289 + $put($1.num, $1.i, $get($1.num, $1.i) % $1.base); //#21290 + } //#21290 + for (;;) { //#21297 + if ($lt($get($1.num, 0), $1.base)) { //#21293 + break; //#21293 + } //#21293 + $k[$j++] = Infinity; //#21294 + $k[$j++] = 0; //#21294 + $forall($1.num); //#21294 + $1.num = $a(); //#21294 + $put($1.num, 0, $f($get($1.num, 0) + (~~($get($1.num, 1) / $1.base)))); //#21295 + $put($1.num, 1, $get($1.num, 1) % $1.base); //#21296 + } //#21296 + $k[$j++] = Infinity; //#21299 + $1.i = true; //#21299 + var _f = $1.num; //#21299 + for (var _g = 0, _h = _f.length; _g < _h; _g++) { //#21299 + var _i = $get(_f, _g); //#21299 + $k[$j++] = _i; //#21299 + if ((_i == 0) && $1.i) { //#21299 + $j--; //#21299 + } else { //#21299 + $1.i = false; //#21299 + } //#21299 + } //#21299 + $1.num = $a(); //#21299 + if ($1.num.length == 0) { //#21300 + $1.num = $a([0]); //#21300 + } //#21300 + $k[$j++] = $1.num; //#21301 + }; //#21302 $1.bigadd = function() { - var _o = $k[--$j]; - var _p = $k[--$j]; - $1.offset = Math.abs(_o.length - _p.length); - if (_o.length < _p.length) { - var _ = _o; - _o = _p; - _p = _; - } - $1.a = _o; - $1.b = _p; - for (var _s = 0, _r = $1.b.length - 1; _s <= _r; _s += 1) { - var _t = $1.a; - var _u = $1.offset; - $put(_t, _s + _u, $f($get(_t, _s + _u) + $get($1.b, _s))); - } - $k[$j++] = $1.a; - }; - $1.barlen = $1.barcode.length; - $1.v = $a([ 1 ]); - for (var _13 = 0, _12 = $1.barlen - 1; _13 <= _12; _13 += 1) { - $1.i = _13; - $k[$j++] = Infinity; - $forall($get($1.vals, $1.i), function() { - var _17 = $k[--$j]; - $k[$j++] = $f(_17 - 48) * $f($get($1.barcode, $1.barlen - $1.i - 1) - 48); - }); - var _1C = $a(); - $k[$j++] = _1C; - $k[$j++] = $1.v; - $1.bigadd(); - $1.v = $k[--$j]; - } - $k[$j++] = "v"; - $k[$j++] = $1.v; - $k[$j++] = 2; - $1.normalize(); - var _1G = $k[--$j]; - $1[$k[--$j]] = _1G; - $k[$j++] = Infinity; - for (var _1J = 0, _1K = (5 - $1.v.length % 5) % 5; _1J < _1K; _1J++) { - $k[$j++] = 0; - } - $aload($1.v); - $1.v = $a(); - $1.cws = $a(~~($1.v.length / 5)); - for (var _1R = 0, _1Q = $1.cws.length - 1; _1R <= _1Q; _1R += 1) { - $1.i = _1R; - var _1U = $geti($1.v, $1.i * 5, 5); - $k[$j++] = 0; - for (var _1V = 0, _1W = _1U.length; _1V < _1W; _1V++) { - var _1Y = $k[--$j]; - $k[$j++] = $f(_1Y + $get(_1U, _1V)) * 2; - } - $put($1.cws, $1.i, ~~($k[--$j] / 2)); - } - $1.metrics = $a([ $a([ "S-10", 8, 11, 10, 4, 4, 1, 99, 99, 99 ]), $a([ "S-20", 8, 21, 20, 8, 8, 1, 99, 99, 99 ]), $a([ "S-30", 8, 31, 30, 12, 12, 1, 99, 99, 99 ]) ]); - } else { - $1.fnc1 = -1; - $1.fnc3 = -2; - var _1k = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "eci", true ], [ "FNC1", $1.fnc1 ], [ "FNC3", $1.fnc3 ] ]); - $1.fncvals = _1k; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _1n = $k[--$j]; - $1[$k[--$j]] = _1n; - $1.msglen = $1.msg.length; - $1.lC = -5; - $1.lB = -6; - $1.lX = -7; - $1.lT = -8; - $1.lD = -9; - $1.unl = -10; - $1.fnc2 = -11; - $1.fnc4 = -12; - $1.sft1 = -13; - $1.sft2 = -14; - $1.sft3 = -15; - $1.eci = -16; - $1.pad = -17; - $1.fnc1lD = -18; - $1.unlcw = 255; - $1.eciesc = 92; - var _1q = $1.msg; - $k[$j++] = "numecis"; - $k[$j++] = 0; - for (var _1r = 0, _1s = _1q.length; _1r < _1s; _1r++) { - if ($get(_1q, _1r) <= -1e6) { - var _1u = $k[--$j]; - $k[$j++] = $f(_1u + 1); - } - } - var _1v = $k[--$j]; - $1[$k[--$j]] = _1v; - if ($1.numecis > 0) { - $1.msgtmp = $a($f($f($1.msg.length * 2 + $1.numecis * 6) + 2)); - $put($1.msgtmp, 0, $1.pad); - $put($1.msgtmp, 1, $1.eciesc); - $1.j = 2; - for (var _27 = 0, _26 = $1.msg.length - 1; _27 <= _26; _27 += 1) { - var _29 = $get($1.msg, _27); - $k[$j++] = _29; - if (_29 <= -1e6) { - var _2D = $geti($cvrs($s(7), -$k[--$j], 10), 1, 6); - for (var _2E = 0, _2F = _2D.length; _2E < _2F; _2E++) { - $k[$j++] = $get(_2D, _2E); - } - $astore($a(6)); - $puti($1.msgtmp, $1.j + 1, $k[--$j]); - $put($1.msgtmp, $1.j, $1.eciesc); - $1.j = $1.j + 7; - } else { - var _2P = $k[--$j]; - $k[$j++] = _2P; - if (_2P != $1.eciesc) { - $put($1.msgtmp, $1.j, $k[--$j]); - $1.j = $1.j + 1; - } else { - $j--; - $put($1.msgtmp, $1.j, $1.eciesc); - $put($1.msgtmp, $1.j + 1, $1.eciesc); - $1.j = $1.j + 2; - } - } - } - $1.msg = $geti($1.msgtmp, 0, $1.j); - $1.msglen = $1.msg.length; - } - $1.metrics = $a([ $a([ "A", 16, 18, 16, 10, 10, 1, 4, 99, 6 ]), $a([ "B", 22, 22, 20, 19, 16, 1, 4, 99, 8 ]), $a([ "C", 28, 32, 28, 44, 26, 1, 4, 22, 11 ]), $a([ "D", 40, 42, 36, 91, 44, 1, 4, 16, 16 ]), $a([ "E", 52, 54, 48, 182, 70, 1, 4, 22, 22 ]), $a([ "F", 70, 76, 68, 370, 140, 2, 4, 22, 31 ]), $a([ "G", 104, 98, 88, 732, 280, 4, 6, 21, 47 ]), $a([ "H", 148, 134, 120, 1480, 560, 8, 6, 20, 69 ]), $a([ "T-16", 16, 17, 16, 10, 10, 1, 99, 99, 99 ]), $a([ "T-32", 16, 33, 32, 24, 16, 1, 99, 99, 99 ]), $a([ "T-48", 16, 49, 48, 38, 22, 1, 99, 99, 99 ]) ]); - $1.fullcws = $a([]); - var _2t = $1.metrics; - for (var _2u = 0, _2v = _2t.length; _2u < _2v; _2u++) { - $1.m = $get(_2t, _2u); - $1.vers = $get($1.m, 0); - $1.dcws = $get($1.m, 4); - $1.okay = true; - if ($eq($1.version, "unset")) { - if ($1.vers.length != 1) { - $1.okay = false; - } - } else { - if ($ne($1.version, $1.vers)) { - $1.okay = false; - } - } - if ($1.okay) { - $k[$j++] = Infinity; - $aload($1.fullcws); - $k[$j++] = $1.dcws; - $1.fullcws = $a(); - } - } - $k[$j++] = Infinity; - for (var _39 = 0, _3A = 1480; _39 < _3A; _39++) { - $k[$j++] = 1e4; - } - $1.numremcws = $a(); - var _3C = $1.fullcws; - for (var _3D = 0, _3E = _3C.length; _3D < _3E; _3D++) { - $put($1.numremcws, $f($get(_3C, _3D) - 1), 1); - } - for (var _3H = 1478; _3H >= 0; _3H -= 1) { - $1.i = _3H; - if ($get($1.numremcws, $1.i) != 1) { - $put($1.numremcws, $1.i, $f($get($1.numremcws, $1.i + 1) + 1)); - } - } - $k[$j++] = Infinity; - for (var _3Q = 0; _3Q <= 128; _3Q += 1) { - $k[$j++] = _3Q; - $k[$j++] = _3Q + 1; - } - $k[$j++] = $1.pad; - $k[$j++] = 129; - for (var _3S = 0; _3S <= 99; _3S += 1) { - var _3U = $cvrs($s(2), _3S, 10); - var _3W = $strcpy($s(2), "00"); - $puti(_3W, 2 - _3U.length, _3U); - $k[$j++] = _3W; - $k[$j++] = _3S + 130; - } - var _3e = $a([ $1.lC, $1.lB, $1.fnc1, $1.fnc2, $1.fnc3, $1.fnc4, $1.fnc1lD ]); - $k[$j++] = 229; - for (var _3f = 0, _3g = _3e.length; _3f < _3g; _3f++) { - var _3j = $f($k[--$j] + 1); - $k[$j++] = $get(_3e, _3f); - $k[$j++] = _3j; - $k[$j++] = _3j; - } - $j--; - $k[$j++] = $1.lX; - $k[$j++] = 238; - $k[$j++] = $1.lT; - $k[$j++] = 239; - $1.Avals = $d(); - $k[$j++] = Infinity; - var _3n = $1.Avals; - for (var _3s = _3n.size, _3r = _3n.keys(), _3q = 0; _3q < _3s; _3q++) { - var _3o = _3r.next().value; - $k[$j++] = _3o; - $k[$j++] = Infinity; - $k[$j++] = _3n.get(_3o); - var _3v = $a(); - $k[$j++] = _3v; - } - $1.Avals = $d(); - $k[$j++] = Infinity; - $k[$j++] = $1.sft1; - $k[$j++] = 0; - $k[$j++] = $1.sft2; - $k[$j++] = 1; - $k[$j++] = $1.sft3; - $k[$j++] = 2; - $k[$j++] = 32; - $k[$j++] = 3; - for (var _40 = 48; _40 <= 57; _40 += 1) { - $k[$j++] = _40; - $k[$j++] = _40 - 44; - } - for (var _41 = 65; _41 <= 90; _41 += 1) { - $k[$j++] = _41; - $k[$j++] = _41 - 51; - } - $1.CNvals = $d(); - $k[$j++] = Infinity; - for (var _43 = 0; _43 <= 31; _43 += 1) { - $k[$j++] = _43; - $k[$j++] = _43; - } - $1.C1vals = $d(); - $k[$j++] = Infinity; - for (var _45 = 33; _45 <= 47; _45 += 1) { - $k[$j++] = _45; - $k[$j++] = _45 - 33; - } - for (var _46 = 58; _46 <= 64; _46 += 1) { - $k[$j++] = _46; - $k[$j++] = _46 - 43; - } - for (var _47 = 91; _47 <= 95; _47 += 1) { - $k[$j++] = _47; - $k[$j++] = _47 - 69; - } - $k[$j++] = $1.fnc1; - $k[$j++] = 27; - $k[$j++] = $1.fnc2; - $k[$j++] = 28; - $k[$j++] = $1.fnc3; - $k[$j++] = 29; - $k[$j++] = $1.fnc4; - $k[$j++] = 30; - $k[$j++] = $1.pad; - $k[$j++] = 31; - $1.C2vals = $d(); - $k[$j++] = Infinity; - for (var _4E = 96; _4E <= 127; _4E += 1) { - $k[$j++] = _4E; - $k[$j++] = _4E - 96; - } - $1.C3vals = $d(); - $k[$j++] = Infinity; - var _4G = $1.CNvals; - for (var _4L = _4G.size, _4K = _4G.keys(), _4J = 0; _4J < _4L; _4J++) { - var _4H = _4K.next().value; - $k[$j++] = _4H; - $k[$j++] = Infinity; - $k[$j++] = _4G.get(_4H); - var _4O = $a(); - $k[$j++] = _4O; - } - var _4P = $1.C1vals; - for (var _4U = _4P.size, _4T = _4P.keys(), _4S = 0; _4S < _4U; _4S++) { - var _4Q = _4T.next().value; - $k[$j++] = _4Q; - $k[$j++] = Infinity; - $k[$j++] = $get($1.CNvals, $1.sft1); - $k[$j++] = _4P.get(_4Q); - var _4a = $a(); - $k[$j++] = _4a; - } - var _4b = $1.C2vals; - for (var _4g = _4b.size, _4f = _4b.keys(), _4e = 0; _4e < _4g; _4e++) { - var _4c = _4f.next().value; - $k[$j++] = _4c; - $k[$j++] = Infinity; - $k[$j++] = $get($1.CNvals, $1.sft2); - $k[$j++] = _4b.get(_4c); - var _4m = $a(); - $k[$j++] = _4m; - } - var _4n = $1.C3vals; - for (var _4s = _4n.size, _4r = _4n.keys(), _4q = 0; _4q < _4s; _4q++) { - var _4o = _4r.next().value; - $k[$j++] = _4o; - $k[$j++] = Infinity; - $k[$j++] = $get($1.CNvals, $1.sft3); - $k[$j++] = _4n.get(_4o); - var _4y = $a(); - $k[$j++] = _4y; - } - $1.Cvals = $d(); - $k[$j++] = Infinity; - $k[$j++] = $1.sft1; - $k[$j++] = 0; - $k[$j++] = $1.sft2; - $k[$j++] = 1; - $k[$j++] = $1.sft3; - $k[$j++] = 2; - $k[$j++] = 32; - $k[$j++] = 3; - for (var _53 = 48; _53 <= 57; _53 += 1) { - $k[$j++] = _53; - $k[$j++] = _53 - 44; - } - for (var _54 = 97; _54 <= 122; _54 += 1) { - $k[$j++] = _54; - $k[$j++] = _54 - 83; - } - $1.TNvals = $d(); - $k[$j++] = Infinity; - for (var _56 = 0; _56 <= 31; _56 += 1) { - $k[$j++] = _56; - $k[$j++] = _56; - } - $1.T1vals = $d(); - $k[$j++] = Infinity; - for (var _58 = 33; _58 <= 47; _58 += 1) { - $k[$j++] = _58; - $k[$j++] = _58 - 33; - } - for (var _59 = 58; _59 <= 64; _59 += 1) { - $k[$j++] = _59; - $k[$j++] = _59 - 43; - } - for (var _5A = 91; _5A <= 95; _5A += 1) { - $k[$j++] = _5A; - $k[$j++] = _5A - 69; - } - $k[$j++] = $1.fnc1; - $k[$j++] = 27; - $k[$j++] = $1.fnc2; - $k[$j++] = 28; - $k[$j++] = $1.fnc3; - $k[$j++] = 29; - $k[$j++] = $1.fnc4; - $k[$j++] = 30; - $k[$j++] = $1.pad; - $k[$j++] = 31; - $1.T2vals = $d(); - $k[$j++] = Infinity; - $k[$j++] = 96; - $k[$j++] = 0; - for (var _5H = 65; _5H <= 90; _5H += 1) { - $k[$j++] = _5H; - $k[$j++] = _5H - 64; - } - for (var _5I = 123; _5I <= 127; _5I += 1) { - $k[$j++] = _5I; - $k[$j++] = _5I - 96; - } - $1.T3vals = $d(); - $k[$j++] = Infinity; - var _5K = $1.TNvals; - for (var _5P = _5K.size, _5O = _5K.keys(), _5N = 0; _5N < _5P; _5N++) { - var _5L = _5O.next().value; - $k[$j++] = _5L; - $k[$j++] = Infinity; - $k[$j++] = _5K.get(_5L); - var _5S = $a(); - $k[$j++] = _5S; - } - var _5T = $1.T1vals; - for (var _5Y = _5T.size, _5X = _5T.keys(), _5W = 0; _5W < _5Y; _5W++) { - var _5U = _5X.next().value; - $k[$j++] = _5U; - $k[$j++] = Infinity; - $k[$j++] = $get($1.TNvals, $1.sft1); - $k[$j++] = _5T.get(_5U); - var _5e = $a(); - $k[$j++] = _5e; - } - var _5f = $1.T2vals; - for (var _5k = _5f.size, _5j = _5f.keys(), _5i = 0; _5i < _5k; _5i++) { - var _5g = _5j.next().value; - $k[$j++] = _5g; - $k[$j++] = Infinity; - $k[$j++] = $get($1.TNvals, $1.sft2); - $k[$j++] = _5f.get(_5g); - var _5q = $a(); - $k[$j++] = _5q; - } - var _5r = $1.T3vals; - for (var _5w = _5r.size, _5v = _5r.keys(), _5u = 0; _5u < _5w; _5u++) { - var _5s = _5v.next().value; - $k[$j++] = _5s; - $k[$j++] = Infinity; - $k[$j++] = $get($1.TNvals, $1.sft3); - $k[$j++] = _5r.get(_5s); - var _62 = $a(); - $k[$j++] = _62; - } - $1.Tvals = $d(); - for (var _64 = 128; _64 <= 255; _64 += 1) { - $1.i = _64; - $k[$j++] = $1.Avals; - $k[$j++] = $1.i; - $k[$j++] = Infinity; - $aload($get($1.Avals, $1.fnc4)); - $aload($get($1.Avals, $1.i - 128)); - var _6D = $a(); - var _6E = $k[--$j]; - $put($k[--$j], _6E, _6D); - $k[$j++] = $1.Cvals; - $k[$j++] = $1.i; - $k[$j++] = Infinity; - $aload($get($1.Cvals, $1.fnc4)); - $aload($get($1.Cvals, $1.i - 128)); - var _6O = $a(); - var _6P = $k[--$j]; - $put($k[--$j], _6P, _6O); - $k[$j++] = $1.Tvals; - $k[$j++] = $1.i; - $k[$j++] = Infinity; - $aload($get($1.Tvals, $1.fnc4)); - $aload($get($1.Tvals, $1.i - 128)); - var _6Z = $a(); - var _6a = $k[--$j]; - $put($k[--$j], _6a, _6Z); - } - $k[$j++] = Infinity; - $k[$j++] = 13; - $k[$j++] = 0; - $k[$j++] = 42; - $k[$j++] = 1; - $k[$j++] = 62; - $k[$j++] = 2; - $k[$j++] = 32; - $k[$j++] = 3; - for (var _6c = 48; _6c <= 57; _6c += 1) { - $k[$j++] = _6c; - $k[$j++] = _6c - 44; - } - for (var _6d = 65; _6d <= 90; _6d += 1) { - $k[$j++] = _6d; - $k[$j++] = _6d - 51; - } - $1.Xvals = $d(); - $k[$j++] = Infinity; - var _6f = $1.Xvals; - for (var _6k = _6f.size, _6j = _6f.keys(), _6i = 0; _6i < _6k; _6i++) { - var _6g = _6j.next().value; - $k[$j++] = _6g; - $k[$j++] = Infinity; - $k[$j++] = _6f.get(_6g); - var _6n = $a(); - $k[$j++] = _6n; - } - $1.Xvals = $d(); - $k[$j++] = Infinity; - for (var _6p = 0; _6p <= 255; _6p += 1) { - $k[$j++] = _6p; - $k[$j++] = _6p; - } - $1.Bvals = $d(); - $k[$j++] = Infinity; - var _6r = $1.Bvals; - for (var _6w = _6r.size, _6v = _6r.keys(), _6u = 0; _6u < _6w; _6u++) { - var _6s = _6v.next().value; - $k[$j++] = _6s; - $k[$j++] = Infinity; - $k[$j++] = _6r.get(_6s); - var _6z = $a(); - $k[$j++] = _6z; - } - $1.Bvals = $d(); - $1.encvals = $a([ $1.Avals, $1.Cvals, $1.Tvals, $1.Xvals, -1, $1.Bvals ]); - $k[$j++] = Infinity; - for (var _78 = 0, _79 = $1.msglen; _78 < _79; _78++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numD = $a(); - $k[$j++] = Infinity; - for (var _7C = 0, _7D = $1.msglen; _7C < _7D; _7C++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextXterm = $a(); - $k[$j++] = Infinity; - for (var _7G = 0, _7H = $1.msglen; _7G < _7H; _7G++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextNonX = $a(); - for (var _7K = $1.msglen - 1; _7K >= 0; _7K -= 1) { - $1.i = _7K; - $1.barchar = $get($1.msg, $1.i); - if ($1.barchar >= 48 && $1.barchar <= 57) { - $put($1.numD, $1.i, $f($get($1.numD, $1.i + 1) + 1)); - } - if ($1.barchar == 13 || $1.barchar == 42 || $1.barchar == 62) { - $put($1.nextXterm, $1.i, 0); - } else { - $put($1.nextXterm, $1.i, $f($get($1.nextXterm, $1.i + 1) + 1)); - } - var _7h = $get($1.Xvals, $1.barchar) !== undefined; - if (!_7h) { - $put($1.nextNonX, $1.i, 0); - } else { - $put($1.nextNonX, $1.i, $f($get($1.nextNonX, $1.i + 1) + 1)); - } - } - $k[$j++] = Infinity; - var _7p = $1.nextXterm; - for (var _7q = 0, _7r = _7p.length; _7q < _7r; _7q++) { - var _7s = $get(_7p, _7q); - $k[$j++] = _7s; - if (_7s > 1e4) { - $j--; - $k[$j++] = 1e4; - } - } - $1.nextXterm = $a(); - $k[$j++] = Infinity; - var _7u = $1.nextNonX; - for (var _7v = 0, _7w = _7u.length; _7v < _7w; _7v++) { - var _7x = $get(_7u, _7v); - $k[$j++] = _7x; - if (_7x > 1e4) { - $j--; - $k[$j++] = 1e4; - } - } - $1.nextNonX = $a(); + var _o = $k[--$j]; //#21305 + var _p = $k[--$j]; //#21305 + $1.offset = Math.abs(_o.length - _p.length); //#21306 + if (_o.length < _p.length) { //#21307 + var _ = _o; //#21307 + _o = _p; //#21307 + _p = _; //#21307 + } //#21307 + $1.a = _o; //#21308 + $1.b = _p; //#21308 + for (var _s = 0, _r = $1.b.length - 1; _s <= _r; _s += 1) { //#21311 + var _t = $1.a; //#21310 + var _u = $1.offset; //#21310 + $put(_t, _s + _u, $f($get(_t, _s + _u) + $get($1.b, _s))); //#21310 + } //#21310 + $k[$j++] = $1.a; //#21312 + }; //#21313 + $1.barlen = $1.barcode.length; //#21315 + $1.v = $a([1]); //#21318 + for (var _13 = 0, _12 = $1.barlen - 1; _13 <= _12; _13 += 1) { //#21323 + $1.i = _13; //#21320 + $k[$j++] = Infinity; //#21321 + $forall($get($1.vals, $1.i), function() { //#21321 + var _17 = $k[--$j]; //#21321 + $k[$j++] = $f(_17 - 48) * $f($get($1.barcode, ($1.barlen - $1.i) - 1) - 48); //#21321 + }); //#21321 + var _1C = $a(); //#21321 + $k[$j++] = _1C; //#21322 + $k[$j++] = $1.v; //#21322 + $1.bigadd(); //#21322 + $1.v = $k[--$j]; //#21322 + } //#21322 + $k[$j++] = 'v'; //#21324 + $k[$j++] = $1.v; //#21324 + $k[$j++] = 2; //#21324 + $1.normalize(); //#21324 + var _1G = $k[--$j]; //#21324 + $1[$k[--$j]] = _1G; //#21324 + $k[$j++] = Infinity; //#21327 + for (var _1J = 0, _1K = (5 - ($1.v.length % 5)) % 5; _1J < _1K; _1J++) { //#21327 + $k[$j++] = 0; //#21327 + } //#21327 + $aload($1.v); //#21327 + $1.v = $a(); //#21327 + $1.cws = $a(~~($1.v.length / 5)); //#21328 + for (var _1R = 0, _1Q = $1.cws.length - 1; _1R <= _1Q; _1R += 1) { //#21334 + $1.i = _1R; //#21330 + var _1U = $geti($1.v, $1.i * 5, 5); //#21331 + $k[$j++] = 0; //#21332 + for (var _1V = 0, _1W = _1U.length; _1V < _1W; _1V++) { //#21332 + var _1Y = $k[--$j]; //#21332 + $k[$j++] = $f(_1Y + $get(_1U, _1V)) * 2; //#21332 + } //#21332 + $put($1.cws, $1.i, ~~($k[--$j] / 2)); //#21333 + } //#21333 + $1.metrics = $a([$a(["S-10", 8, 11, 10, 4, 4, 1, 99, 99, 99]), $a(["S-20", 8, 21, 20, 8, 8, 1, 99, 99, 99]), $a(["S-30", 8, 31, 30, 12, 12, 1, 99, 99, 99])]); //#21342 + } else { //#21895 + $1.fnc1 = -1; //#21347 + $1.fnc3 = -2; //#21347 + var _1k = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["eci", true], + ["FNC1", $1.fnc1], + ["FNC3", $1.fnc3] + ]); //#21353 + $1.fncvals = _1k; //#21354 + $k[$j++] = 'msg'; //#21355 + $k[$j++] = $1.barcode; //#21355 + $k[$j++] = $1.fncvals; //#21355 + $0.parseinput(); //#21355 + var _1n = $k[--$j]; //#21355 + $1[$k[--$j]] = _1n; //#21355 + $1.msglen = $1.msg.length; //#21356 + $1.lC = -5; //#21359 + $1.lB = -6; //#21359 + $1.lX = -7; //#21359 + $1.lT = -8; //#21359 + $1.lD = -9; //#21359 + $1.unl = -10; //#21359 + $1.fnc2 = -11; //#21360 + $1.fnc4 = -12; //#21360 + $1.sft1 = -13; //#21360 + $1.sft2 = -14; //#21360 + $1.sft3 = -15; //#21360 + $1.eci = -16; //#21360 + $1.pad = -17; //#21360 + $1.fnc1lD = -18; //#21360 + $1.unlcw = 255; //#21361 + $1.eciesc = 92; //#21364 + var _1q = $1.msg; //#21365 + $k[$j++] = 'numecis'; //#21365 + $k[$j++] = 0; //#21365 + for (var _1r = 0, _1s = _1q.length; _1r < _1s; _1r++) { //#21365 + if ($get(_1q, _1r) <= -1000000) { //#21365 + var _1u = $k[--$j]; //#21365 + $k[$j++] = $f(_1u + 1); //#21365 + } //#21365 + } //#21365 + var _1v = $k[--$j]; //#21365 + $1[$k[--$j]] = _1v; //#21365 + if ($1.numecis > 0) { //#21392 + $1.msgtmp = $a($f(($f(($1.msg.length * 2) + ($1.numecis * 6))) + 2)); //#21367 + $put($1.msgtmp, 0, $1.pad); //#21368 + $put($1.msgtmp, 1, $1.eciesc); //#21369 + $1.j = 2; //#21370 + for (var _27 = 0, _26 = $1.msg.length - 1; _27 <= _26; _27 += 1) { //#21389 + var _29 = $get($1.msg, _27); //#21372 + $k[$j++] = _29; //#21388 + if (_29 <= -1000000) { //#21386 + var _2D = $geti($cvrs($s(7), -$k[--$j], 10), 1, 6); //#21374 + for (var _2E = 0, _2F = _2D.length; _2E < _2F; _2E++) { //#21374 + $k[$j++] = $get(_2D, _2E); //#21374 + } //#21374 + $astore($a(6)); //#21374 + $puti($1.msgtmp, $1.j + 1, $k[--$j]); //#21375 + $put($1.msgtmp, $1.j, $1.eciesc); //#21376 + $1.j = $1.j + 7; //#21377 + } else { //#21386 + var _2P = $k[--$j]; //#21379 + $k[$j++] = _2P; //#21387 + if (_2P != $1.eciesc) { //#21386 + $put($1.msgtmp, $1.j, $k[--$j]); //#21380 + $1.j = $1.j + 1; //#21381 + } else { //#21386 + $j--; //#21383 + $put($1.msgtmp, $1.j, $1.eciesc); //#21384 + $put($1.msgtmp, $1.j + 1, $1.eciesc); //#21385 + $1.j = $1.j + 2; //#21386 + } //#21386 + } //#21386 + } //#21386 + $1.msg = $geti($1.msgtmp, 0, $1.j); //#21390 + $1.msglen = $1.msg.length; //#21391 + } //#21391 + $1.metrics = $a([$a(["A", 16, 18, 16, 10, 10, 1, 4, 99, 6]), $a(["B", 22, 22, 20, 19, 16, 1, 4, 99, 8]), $a(["C", 28, 32, 28, 44, 26, 1, 4, 22, 11]), $a(["D", 40, 42, 36, 91, 44, 1, 4, 16, 16]), $a(["E", 52, 54, 48, 182, 70, 1, 4, 22, 22]), $a(["F", 70, 76, 68, 370, 140, 2, 4, 22, 31]), $a(["G", 104, 98, 88, 732, 280, 4, 6, 21, 47]), $a(["H", 148, 134, 120, 1480, 560, 8, 6, 20, 69]), $a(["T-16", 16, 17, 16, 10, 10, 1, 99, 99, 99]), $a(["T-32", 16, 33, 32, 24, 16, 1, 99, 99, 99]), $a(["T-48", 16, 49, 48, 38, 22, 1, 99, 99, 99])]); //#21408 + $1.fullcws = $a([]); //#21411 + var _2t = $1.metrics; //#21412 + for (var _2u = 0, _2v = _2t.length; _2u < _2v; _2u++) { //#21423 + $1.m = $get(_2t, _2u); //#21413 + $1.vers = $get($1.m, 0); //#21414 + $1.dcws = $get($1.m, 4); //#21415 + $1.okay = true; //#21416 + if ($eq($1.version, "unset")) { //#21420 + if ($1.vers.length != 1) { //#21418 + $1.okay = false; //#21418 + } //#21418 + } else { //#21420 + if ($ne($1.version, $1.vers)) { //#21420 + $1.okay = false; //#21420 + } //#21420 + } //#21420 + if ($1.okay) { //#21422 + $k[$j++] = Infinity; //#21422 + $aload($1.fullcws); //#21422 + $k[$j++] = $1.dcws; //#21422 + $1.fullcws = $a(); //#21422 + } //#21422 + } //#21422 + $k[$j++] = Infinity; //#21424 + for (var _39 = 0, _3A = 1480; _39 < _3A; _39++) { //#21424 + $k[$j++] = 10000; //#21424 + } //#21424 + $1.numremcws = $a(); //#21424 + var _3C = $1.fullcws; //#21425 + for (var _3D = 0, _3E = _3C.length; _3D < _3E; _3D++) { //#21425 + $put($1.numremcws, $f($get(_3C, _3D) - 1), 1); //#21425 + } //#21425 + for (var _3H = 1478; _3H >= 0; _3H -= 1) { //#21431 + $1.i = _3H; //#21427 + if ($get($1.numremcws, $1.i) != 1) { //#21430 + $put($1.numremcws, $1.i, $f($get($1.numremcws, $1.i + 1) + 1)); //#21429 + } //#21429 + } //#21429 + $k[$j++] = Infinity; //#21442 + for (var _3Q = 0; _3Q <= 128; _3Q += 1) { //#21434 + $k[$j++] = _3Q; //#21434 + $k[$j++] = _3Q + 1; //#21434 + } //#21434 + $k[$j++] = $1.pad; //#21439 + $k[$j++] = 129; //#21439 + for (var _3S = 0; _3S <= 99; _3S += 1) { //#21439 + var _3U = $cvrs($s(2), _3S, 10); //#21437 + var _3W = $strcpy($s(2), "00"); //#21437 + $puti(_3W, 2 - _3U.length, _3U); //#21437 + $k[$j++] = _3W; //#21438 + $k[$j++] = _3S + 130; //#21438 + } //#21438 + var _3e = $a([$1.lC, $1.lB, $1.fnc1, $1.fnc2, $1.fnc3, $1.fnc4, $1.fnc1lD]); //#21440 + $k[$j++] = 229; //#21440 + for (var _3f = 0, _3g = _3e.length; _3f < _3g; _3f++) { //#21440 + var _3j = $f($k[--$j] + 1); //#21440 + $k[$j++] = $get(_3e, _3f); //#21440 + $k[$j++] = _3j; //#21440 + $k[$j++] = _3j; //#21440 + } //#21440 + $j--; //#21440 + $k[$j++] = $1.lX; //#21442 + $k[$j++] = 238; //#21442 + $k[$j++] = $1.lT; //#21442 + $k[$j++] = 239; //#21442 + $1.Avals = $d(); //#21444 + $k[$j++] = Infinity; //#21446 + var _3n = $1.Avals; //#21446 + for (var _3s = _3n.size, _3r = _3n.keys(), _3q = 0; _3q < _3s; _3q++) { //#21446 + var _3o = _3r.next().value; //#21446 + $k[$j++] = _3o; //#21446 + $k[$j++] = _3n.get(_3o); //#21446 + $k[$j++] = Infinity; //#21446 + var _3t = $k[--$j]; //#21446 + var _3u = $k[--$j]; //#21446 + $k[$j++] = _3t; //#21446 + $k[$j++] = _3u; //#21446 + var _3v = $a(); //#21446 + $k[$j++] = _3v; //#21446 + } //#21446 + $1.Avals = $d(); //#21447 + $k[$j++] = Infinity; //#21455 + $k[$j++] = $1.sft1; //#21454 + $k[$j++] = 0; //#21454 + $k[$j++] = $1.sft2; //#21454 + $k[$j++] = 1; //#21454 + $k[$j++] = $1.sft3; //#21454 + $k[$j++] = 2; //#21454 + $k[$j++] = 32; //#21454 + $k[$j++] = 3; //#21454 + for (var _40 = 48; _40 <= 57; _40 += 1) { //#21454 + $k[$j++] = _40; //#21454 + $k[$j++] = _40 - 44; //#21454 + } //#21454 + for (var _41 = 65; _41 <= 90; _41 += 1) { //#21455 + $k[$j++] = _41; //#21455 + $k[$j++] = _41 - 51; //#21455 + } //#21455 + $1.CNvals = $d(); //#21456 + $k[$j++] = Infinity; //#21457 + for (var _43 = 0; _43 <= 31; _43 += 1) { //#21457 + $k[$j++] = _43; //#21457 + $k[$j++] = _43; //#21457 + } //#21457 + $1.C1vals = $d(); //#21457 + $k[$j++] = Infinity; //#21466 + for (var _45 = 33; _45 <= 47; _45 += 1) { //#21459 + $k[$j++] = _45; //#21459 + $k[$j++] = _45 - 33; //#21459 + } //#21459 + for (var _46 = 58; _46 <= 64; _46 += 1) { //#21460 + $k[$j++] = _46; //#21460 + $k[$j++] = _46 - 43; //#21460 + } //#21460 + for (var _47 = 91; _47 <= 95; _47 += 1) { //#21461 + $k[$j++] = _47; //#21461 + $k[$j++] = _47 - 69; //#21461 + } //#21461 + $k[$j++] = $1.fnc1; //#21466 + $k[$j++] = 27; //#21466 + $k[$j++] = $1.fnc2; //#21466 + $k[$j++] = 28; //#21466 + $k[$j++] = $1.fnc3; //#21466 + $k[$j++] = 29; //#21466 + $k[$j++] = $1.fnc4; //#21466 + $k[$j++] = 30; //#21466 + $k[$j++] = $1.pad; //#21466 + $k[$j++] = 31; //#21466 + $1.C2vals = $d(); //#21467 + $k[$j++] = Infinity; //#21468 + for (var _4E = 96; _4E <= 127; _4E += 1) { //#21468 + $k[$j++] = _4E; //#21468 + $k[$j++] = _4E - 96; //#21468 + } //#21468 + $1.C3vals = $d(); //#21468 + $k[$j++] = Infinity; //#21473 + var _4G = $1.CNvals; //#21470 + for (var _4L = _4G.size, _4K = _4G.keys(), _4J = 0; _4J < _4L; _4J++) { //#21470 + var _4H = _4K.next().value; //#21470 + $k[$j++] = _4H; //#21470 + $k[$j++] = _4G.get(_4H); //#21470 + $k[$j++] = Infinity; //#21470 + var _4M = $k[--$j]; //#21470 + var _4N = $k[--$j]; //#21470 + $k[$j++] = _4M; //#21470 + $k[$j++] = _4N; //#21470 + var _4O = $a(); //#21470 + $k[$j++] = _4O; //#21470 + } //#21470 + var _4P = $1.C1vals; //#21471 + for (var _4U = _4P.size, _4T = _4P.keys(), _4S = 0; _4S < _4U; _4S++) { //#21471 + var _4Q = _4T.next().value; //#21471 + $k[$j++] = _4Q; //#21471 + $k[$j++] = _4P.get(_4Q); //#21471 + $k[$j++] = Infinity; //#21471 + var _4V = $k[--$j]; //#21471 + var _4W = $k[--$j]; //#21471 + $k[$j++] = _4V; //#21471 + $k[$j++] = $get($1.CNvals, $1.sft1); //#21471 + $k[$j++] = _4W; //#21471 + var _4a = $a(); //#21471 + $k[$j++] = _4a; //#21471 + } //#21471 + var _4b = $1.C2vals; //#21472 + for (var _4g = _4b.size, _4f = _4b.keys(), _4e = 0; _4e < _4g; _4e++) { //#21472 + var _4c = _4f.next().value; //#21472 + $k[$j++] = _4c; //#21472 + $k[$j++] = _4b.get(_4c); //#21472 + $k[$j++] = Infinity; //#21472 + var _4h = $k[--$j]; //#21472 + var _4i = $k[--$j]; //#21472 + $k[$j++] = _4h; //#21472 + $k[$j++] = $get($1.CNvals, $1.sft2); //#21472 + $k[$j++] = _4i; //#21472 + var _4m = $a(); //#21472 + $k[$j++] = _4m; //#21472 + } //#21472 + var _4n = $1.C3vals; //#21473 + for (var _4s = _4n.size, _4r = _4n.keys(), _4q = 0; _4q < _4s; _4q++) { //#21473 + var _4o = _4r.next().value; //#21473 + $k[$j++] = _4o; //#21473 + $k[$j++] = _4n.get(_4o); //#21473 + $k[$j++] = Infinity; //#21473 + var _4t = $k[--$j]; //#21473 + var _4u = $k[--$j]; //#21473 + $k[$j++] = _4t; //#21473 + $k[$j++] = $get($1.CNvals, $1.sft3); //#21473 + $k[$j++] = _4u; //#21473 + var _4y = $a(); //#21473 + $k[$j++] = _4y; //#21473 + } //#21473 + $1.Cvals = $d(); //#21474 + $k[$j++] = Infinity; //#21482 + $k[$j++] = $1.sft1; //#21481 + $k[$j++] = 0; //#21481 + $k[$j++] = $1.sft2; //#21481 + $k[$j++] = 1; //#21481 + $k[$j++] = $1.sft3; //#21481 + $k[$j++] = 2; //#21481 + $k[$j++] = 32; //#21481 + $k[$j++] = 3; //#21481 + for (var _53 = 48; _53 <= 57; _53 += 1) { //#21481 + $k[$j++] = _53; //#21481 + $k[$j++] = _53 - 44; //#21481 + } //#21481 + for (var _54 = 97; _54 <= 122; _54 += 1) { //#21482 + $k[$j++] = _54; //#21482 + $k[$j++] = _54 - 83; //#21482 + } //#21482 + $1.TNvals = $d(); //#21483 + $k[$j++] = Infinity; //#21484 + for (var _56 = 0; _56 <= 31; _56 += 1) { //#21484 + $k[$j++] = _56; //#21484 + $k[$j++] = _56; //#21484 + } //#21484 + $1.T1vals = $d(); //#21484 + $k[$j++] = Infinity; //#21493 + for (var _58 = 33; _58 <= 47; _58 += 1) { //#21486 + $k[$j++] = _58; //#21486 + $k[$j++] = _58 - 33; //#21486 + } //#21486 + for (var _59 = 58; _59 <= 64; _59 += 1) { //#21487 + $k[$j++] = _59; //#21487 + $k[$j++] = _59 - 43; //#21487 + } //#21487 + for (var _5A = 91; _5A <= 95; _5A += 1) { //#21488 + $k[$j++] = _5A; //#21488 + $k[$j++] = _5A - 69; //#21488 + } //#21488 + $k[$j++] = $1.fnc1; //#21493 + $k[$j++] = 27; //#21493 + $k[$j++] = $1.fnc2; //#21493 + $k[$j++] = 28; //#21493 + $k[$j++] = $1.fnc3; //#21493 + $k[$j++] = 29; //#21493 + $k[$j++] = $1.fnc4; //#21493 + $k[$j++] = 30; //#21493 + $k[$j++] = $1.pad; //#21493 + $k[$j++] = 31; //#21493 + $1.T2vals = $d(); //#21494 + $k[$j++] = Infinity; //#21498 + $k[$j++] = 96; //#21497 + $k[$j++] = 0; //#21497 + for (var _5H = 65; _5H <= 90; _5H += 1) { //#21497 + $k[$j++] = _5H; //#21497 + $k[$j++] = _5H - 64; //#21497 + } //#21497 + for (var _5I = 123; _5I <= 127; _5I += 1) { //#21498 + $k[$j++] = _5I; //#21498 + $k[$j++] = _5I - 96; //#21498 + } //#21498 + $1.T3vals = $d(); //#21499 + $k[$j++] = Infinity; //#21504 + var _5K = $1.TNvals; //#21501 + for (var _5P = _5K.size, _5O = _5K.keys(), _5N = 0; _5N < _5P; _5N++) { //#21501 + var _5L = _5O.next().value; //#21501 + $k[$j++] = _5L; //#21501 + $k[$j++] = _5K.get(_5L); //#21501 + $k[$j++] = Infinity; //#21501 + var _5Q = $k[--$j]; //#21501 + var _5R = $k[--$j]; //#21501 + $k[$j++] = _5Q; //#21501 + $k[$j++] = _5R; //#21501 + var _5S = $a(); //#21501 + $k[$j++] = _5S; //#21501 + } //#21501 + var _5T = $1.T1vals; //#21502 + for (var _5Y = _5T.size, _5X = _5T.keys(), _5W = 0; _5W < _5Y; _5W++) { //#21502 + var _5U = _5X.next().value; //#21502 + $k[$j++] = _5U; //#21502 + $k[$j++] = _5T.get(_5U); //#21502 + $k[$j++] = Infinity; //#21502 + var _5Z = $k[--$j]; //#21502 + var _5a = $k[--$j]; //#21502 + $k[$j++] = _5Z; //#21502 + $k[$j++] = $get($1.TNvals, $1.sft1); //#21502 + $k[$j++] = _5a; //#21502 + var _5e = $a(); //#21502 + $k[$j++] = _5e; //#21502 + } //#21502 + var _5f = $1.T2vals; //#21503 + for (var _5k = _5f.size, _5j = _5f.keys(), _5i = 0; _5i < _5k; _5i++) { //#21503 + var _5g = _5j.next().value; //#21503 + $k[$j++] = _5g; //#21503 + $k[$j++] = _5f.get(_5g); //#21503 + $k[$j++] = Infinity; //#21503 + var _5l = $k[--$j]; //#21503 + var _5m = $k[--$j]; //#21503 + $k[$j++] = _5l; //#21503 + $k[$j++] = $get($1.TNvals, $1.sft2); //#21503 + $k[$j++] = _5m; //#21503 + var _5q = $a(); //#21503 + $k[$j++] = _5q; //#21503 + } //#21503 + var _5r = $1.T3vals; //#21504 + for (var _5w = _5r.size, _5v = _5r.keys(), _5u = 0; _5u < _5w; _5u++) { //#21504 + var _5s = _5v.next().value; //#21504 + $k[$j++] = _5s; //#21504 + $k[$j++] = _5r.get(_5s); //#21504 + $k[$j++] = Infinity; //#21504 + var _5x = $k[--$j]; //#21504 + var _5y = $k[--$j]; //#21504 + $k[$j++] = _5x; //#21504 + $k[$j++] = $get($1.TNvals, $1.sft3); //#21504 + $k[$j++] = _5y; //#21504 + var _62 = $a(); //#21504 + $k[$j++] = _62; //#21504 + } //#21504 + $1.Tvals = $d(); //#21505 + for (var _64 = 128; _64 <= 255; _64 += 1) { //#21513 + $1.i = _64; //#21509 + $k[$j++] = $1.Avals; //#21510 + $k[$j++] = $1.i; //#21510 + $k[$j++] = Infinity; //#21510 + $aload($get($1.Avals, $1.fnc4)); //#21510 + $aload($get($1.Avals, $1.i - 128)); //#21510 + var _6D = $a(); //#21510 + var _6E = $k[--$j]; //#21510 + $put($k[--$j], _6E, _6D); //#21510 + $k[$j++] = $1.Cvals; //#21511 + $k[$j++] = $1.i; //#21511 + $k[$j++] = Infinity; //#21511 + $aload($get($1.Cvals, $1.fnc4)); //#21511 + $aload($get($1.Cvals, $1.i - 128)); //#21511 + var _6O = $a(); //#21511 + var _6P = $k[--$j]; //#21511 + $put($k[--$j], _6P, _6O); //#21511 + $k[$j++] = $1.Tvals; //#21512 + $k[$j++] = $1.i; //#21512 + $k[$j++] = Infinity; //#21512 + $aload($get($1.Tvals, $1.fnc4)); //#21512 + $aload($get($1.Tvals, $1.i - 128)); //#21512 + var _6Z = $a(); //#21512 + var _6a = $k[--$j]; //#21512 + $put($k[--$j], _6a, _6Z); //#21512 + } //#21512 + $k[$j++] = Infinity; //#21521 + $k[$j++] = 13; //#21520 + $k[$j++] = 0; //#21520 + $k[$j++] = 42; //#21520 + $k[$j++] = 1; //#21520 + $k[$j++] = 62; //#21520 + $k[$j++] = 2; //#21520 + $k[$j++] = 32; //#21520 + $k[$j++] = 3; //#21520 + for (var _6c = 48; _6c <= 57; _6c += 1) { //#21520 + $k[$j++] = _6c; //#21520 + $k[$j++] = _6c - 44; //#21520 + } //#21520 + for (var _6d = 65; _6d <= 90; _6d += 1) { //#21521 + $k[$j++] = _6d; //#21521 + $k[$j++] = _6d - 51; //#21521 + } //#21521 + $1.Xvals = $d(); //#21522 + $k[$j++] = Infinity; //#21524 + var _6f = $1.Xvals; //#21524 + for (var _6k = _6f.size, _6j = _6f.keys(), _6i = 0; _6i < _6k; _6i++) { //#21524 + var _6g = _6j.next().value; //#21524 + $k[$j++] = _6g; //#21524 + $k[$j++] = _6f.get(_6g); //#21524 + $k[$j++] = Infinity; //#21524 + var _6l = $k[--$j]; //#21524 + var _6m = $k[--$j]; //#21524 + $k[$j++] = _6l; //#21524 + $k[$j++] = _6m; //#21524 + var _6n = $a(); //#21524 + $k[$j++] = _6n; //#21524 + } //#21524 + $1.Xvals = $d(); //#21525 + $k[$j++] = Infinity; //#21528 + for (var _6p = 0; _6p <= 255; _6p += 1) { //#21528 + $k[$j++] = _6p; //#21528 + $k[$j++] = _6p; //#21528 + } //#21528 + $1.Bvals = $d(); //#21529 + $k[$j++] = Infinity; //#21531 + var _6r = $1.Bvals; //#21531 + for (var _6w = _6r.size, _6v = _6r.keys(), _6u = 0; _6u < _6w; _6u++) { //#21531 + var _6s = _6v.next().value; //#21531 + $k[$j++] = _6s; //#21531 + $k[$j++] = _6r.get(_6s); //#21531 + $k[$j++] = Infinity; //#21531 + var _6x = $k[--$j]; //#21531 + var _6y = $k[--$j]; //#21531 + $k[$j++] = _6x; //#21531 + $k[$j++] = _6y; //#21531 + var _6z = $a(); //#21531 + $k[$j++] = _6z; //#21531 + } //#21531 + $1.Bvals = $d(); //#21532 + $1.encvals = $a([$1.Avals, $1.Cvals, $1.Tvals, $1.Xvals, -1, $1.Bvals]); //#21534 + $k[$j++] = Infinity; //#21536 + for (var _78 = 0, _79 = $1.msglen; _78 < _79; _78++) { //#21536 + $k[$j++] = 0; //#21536 + } //#21536 + $k[$j++] = 0; //#21536 + $1.numD = $a(); //#21536 + $k[$j++] = Infinity; //#21537 + for (var _7C = 0, _7D = $1.msglen; _7C < _7D; _7C++) { //#21537 + $k[$j++] = 0; //#21537 + } //#21537 + $k[$j++] = 9999; //#21537 + $1.nextXterm = $a(); //#21537 + $k[$j++] = Infinity; //#21538 + for (var _7G = 0, _7H = $1.msglen; _7G < _7H; _7G++) { //#21538 + $k[$j++] = 0; //#21538 + } //#21538 + $k[$j++] = 9999; //#21538 + $1.nextNonX = $a(); //#21538 + for (var _7K = $1.msglen - 1; _7K >= 0; _7K -= 1) { //#21555 + $1.i = _7K; //#21540 + $1.barchar = $get($1.msg, $1.i); //#21541 + if (($1.barchar >= 48) && ($1.barchar <= 57)) { //#21544 + $put($1.numD, $1.i, $f($get($1.numD, $1.i + 1) + 1)); //#21543 + } //#21543 + if ((($1.barchar == 13) || ($1.barchar == 42)) || ($1.barchar == 62)) { //#21548 + $put($1.nextXterm, $1.i, 0); //#21546 + } else { //#21548 + $put($1.nextXterm, $1.i, $f($get($1.nextXterm, $1.i + 1) + 1)); //#21548 + } //#21548 + var _7h = $get($1.Xvals, $1.barchar) !== undefined; //#21550 + if (!_7h) { //#21553 + $put($1.nextNonX, $1.i, 0); //#21551 + } else { //#21553 + $put($1.nextNonX, $1.i, $f($get($1.nextNonX, $1.i + 1) + 1)); //#21553 + } //#21553 + } //#21553 + $k[$j++] = Infinity; //#21556 + var _7p = $1.nextXterm; //#21556 + for (var _7q = 0, _7r = _7p.length; _7q < _7r; _7q++) { //#21556 + var _7s = $get(_7p, _7q); //#21556 + $k[$j++] = _7s; //#21556 + if (_7s > 10000) { //#21556 + $j--; //#21556 + $k[$j++] = 10000; //#21556 + } //#21556 + } //#21556 + $1.nextXterm = $a(); //#21556 + $k[$j++] = Infinity; //#21557 + var _7u = $1.nextNonX; //#21557 + for (var _7v = 0, _7w = _7u.length; _7v < _7w; _7v++) { //#21557 + var _7x = $get(_7u, _7v); //#21557 + $k[$j++] = _7x; //#21557 + if (_7x > 10000) { //#21557 + $j--; //#21557 + $k[$j++] = 10000; //#21557 + } //#21557 + } //#21557 + $1.nextNonX = $a(); //#21557 $1.isD = function() { - $k[$j++] = $1.char >= 48 && $1.char <= 57; - }; + $k[$j++] = ($1.char >= 48) && ($1.char <= 57); //#21559 + }; //#21559 $1.isC = function() { - var _83 = $get($1.CNvals, $1.char) !== undefined; - $k[$j++] = _83; - }; + var _83 = $get($1.CNvals, $1.char) !== undefined; //#21560 + $k[$j++] = _83; //#21560 + }; //#21560 $1.isT = function() { - var _86 = $get($1.TNvals, $1.char) !== undefined; - $k[$j++] = _86; - }; + var _86 = $get($1.TNvals, $1.char) !== undefined; //#21561 + $k[$j++] = _86; //#21561 + }; //#21561 $1.isX = function() { - var _89 = $get($1.Xvals, $1.char) !== undefined; - $k[$j++] = _89; - }; + var _89 = $get($1.Xvals, $1.char) !== undefined; //#21562 + $k[$j++] = _89; //#21562 + }; //#21562 $1.isEA = function() { - $k[$j++] = $1.char > 127; - }; + $k[$j++] = $1.char > 127; //#21563 + }; //#21563 $1.isFN = function() { - $k[$j++] = $1.char < 0; - }; + $k[$j++] = $1.char < 0; //#21564 + }; //#21564 $1.XtermFirst = function() { - var _8C = $k[--$j]; - $k[$j++] = $lt($get($1.nextXterm, _8C), $get($1.nextNonX, _8C)); - }; - $1.A = 0; - $1.C = 1; - $1.T = 2; - $1.X = 3; - $1.D = 4; - $1.B = 5; - $1.lookup = function() { - $1.ac = 1; - $1.cc = 2; - $1.tc = 2; - $1.xc = 2; - $1.bc = 3; - if ($1.mode == $1.A) { - $1.ac = 0; - $1.cc = 1; - $1.tc = 1; - $1.xc = 1; - $1.bc = 2; - } - if ($1.mode == $1.C) { - $1.cc = 0; - } - if ($1.mode == $1.T) { - $1.tc = 0; - } - if ($1.mode == $1.X) { - $1.xc = 0; - } - if ($1.mode == $1.B) { - $1.bc = 0; - } - for (var _8R = 0, _8S = 1; _8R < _8S; _8R++) { - $1.k = 0; - for (;;) { - if ($1.i + $1.k == $1.msglen) { - var _8a = $a([ $1.ac, $1.cc, $1.tc, $1.xc ]); - $k[$j++] = true; - for (var _8b = 0, _8c = _8a.length; _8b < _8c; _8b++) { - var _8f = $k[--$j]; - $k[$j++] = _8f && $1.bc <= Math.ceil($get(_8a, _8b)); - } - if ($k[--$j]) { - $k[$j++] = $1.B; - break; - } - var _8m = $a([ $1.cc, $1.tc, $1.xc, $1.bc ]); - $k[$j++] = true; - for (var _8n = 0, _8o = _8m.length; _8n < _8o; _8n++) { - var _8r = $k[--$j]; - $k[$j++] = _8r && $1.ac <= Math.ceil($get(_8m, _8n)); - } - if ($k[--$j]) { - $k[$j++] = $1.A; - break; - } - var _8w = $a([ $1.tc, $1.xc ]); - $k[$j++] = true; - for (var _8x = 0, _8y = _8w.length; _8x < _8y; _8x++) { - var _91 = $k[--$j]; - $k[$j++] = _91 && Math.ceil($1.cc) <= Math.ceil($get(_8w, _8x)); - } - if ($k[--$j]) { - $k[$j++] = $1.C; - break; - } - var _95 = $a([ $1.xc ]); - $k[$j++] = true; - for (var _96 = 0, _97 = _95.length; _96 < _97; _96++) { - var _9A = $k[--$j]; - $k[$j++] = _9A && Math.ceil($1.tc) <= Math.ceil($get(_95, _96)); - } - if ($k[--$j]) { - $k[$j++] = $1.T; - break; - } - $k[$j++] = $1.X; - break; - } - $1.char = $get($1.msg, $1.i + $1.k); - $k[$j++] = "ac"; - $k[$j++] = $1.ac; - $1.isD(); - if ($k[--$j]) { - var _9K = $k[--$j]; - $k[$j++] = $f(_9K + 1 / 2); - } else { - $1.isEA(); - if ($k[--$j]) { - var _9M = $k[--$j]; - $k[$j++] = Math.ceil(_9M) + 2; - } else { - var _9N = $k[--$j]; - $k[$j++] = Math.ceil(_9N) + 1; - } - } - var _9O = $k[--$j]; - $1[$k[--$j]] = _9O; - $k[$j++] = "cc"; - $k[$j++] = $1.cc; - $1.isC(); - if ($k[--$j]) { - var _9S = $k[--$j]; - $k[$j++] = $f(_9S + .66666667); - } else { - $1.isEA(); - if ($k[--$j]) { - var _9U = $k[--$j]; - $k[$j++] = $f(_9U + 2.66666667); - } else { - var _9V = $k[--$j]; - $k[$j++] = $f(_9V + 1.33333334); - } - } - var _9W = $k[--$j]; - $1[$k[--$j]] = _9W; - $k[$j++] = "tc"; - $k[$j++] = $1.tc; - $1.isT(); - if ($k[--$j]) { - var _9a = $k[--$j]; - $k[$j++] = $f(_9a + .66666667); - } else { - $1.isEA(); - if ($k[--$j]) { - var _9c = $k[--$j]; - $k[$j++] = $f(_9c + 2.66666667); - } else { - var _9d = $k[--$j]; - $k[$j++] = $f(_9d + 1.33333334); - } - } - var _9e = $k[--$j]; - $1[$k[--$j]] = _9e; - $k[$j++] = "xc"; - $k[$j++] = $1.xc; - $1.isX(); - if ($k[--$j]) { - var _9i = $k[--$j]; - $k[$j++] = $f(_9i + .66666667); - } else { - $1.isEA(); - if ($k[--$j]) { - var _9k = $k[--$j]; - $k[$j++] = $f(_9k + 4.33333334); - } else { - var _9l = $k[--$j]; - $k[$j++] = $f(_9l + 3.33333334); - } - } - var _9m = $k[--$j]; - $1[$k[--$j]] = _9m; - $k[$j++] = "bc"; - $k[$j++] = $1.bc; - $1.isFN(); - if ($k[--$j]) { - var _9q = $k[--$j]; - $k[$j++] = $f(_9q + 3); - } else { - var _9r = $k[--$j]; - $k[$j++] = $f(_9r + 1); - } - var _9s = $k[--$j]; - $1[$k[--$j]] = _9s; - if ($1.k >= 3) { - var _9z = $a([ $1.ac, $1.cc, $1.tc, $1.xc ]); - $k[$j++] = true; - for (var _A0 = 0, _A1 = _9z.length; _A0 < _A1; _A0++) { - var _A4 = $k[--$j]; - $k[$j++] = _A4 && $1.bc + 1 <= Math.ceil($get(_9z, _A0)); - } - if ($k[--$j]) { - $k[$j++] = $1.B; - break; - } - var _AB = $a([ $1.cc, $1.tc, $1.xc, $1.bc ]); - $k[$j++] = true; - for (var _AC = 0, _AD = _AB.length; _AC < _AD; _AC++) { - var _AG = $k[--$j]; - $k[$j++] = _AG && $1.ac + 1 <= Math.ceil($get(_AB, _AC)); - } - if ($k[--$j]) { - $k[$j++] = $1.A; - break; - } - var _AN = $a([ $1.ac, $1.cc, $1.xc, $1.bc ]); - $k[$j++] = true; - for (var _AO = 0, _AP = _AN.length; _AO < _AP; _AO++) { - var _AS = $k[--$j]; - $k[$j++] = _AS && Math.ceil($1.tc) + 1 <= Math.ceil($get(_AN, _AO)); - } - if ($k[--$j]) { - $k[$j++] = $1.T; - break; - } - var _AX = $a([ $1.ac, $1.tc ]); - $k[$j++] = true; - for (var _AY = 0, _AZ = _AX.length; _AY < _AZ; _AY++) { - var _Ac = $k[--$j]; - $k[$j++] = _Ac && Math.ceil($1.cc) + 1 <= Math.ceil($get(_AX, _AY)); - } - if ($k[--$j]) { - if (Math.ceil($1.cc) < Math.ceil($1.xc)) { - $k[$j++] = $1.C; - break; - } - if ($1.cc == $1.xc) { - $k[$j++] = $1.i + $1.k + 1; - $1.XtermFirst(); - if ($k[--$j]) { - $k[$j++] = $1.X; - break; - } else { - $k[$j++] = $1.C; - break; - } - } - } - var _As = $a([ $1.ac, $1.cc, $1.tc, $1.bc ]); - $k[$j++] = true; - for (var _At = 0, _Au = _As.length; _At < _Au; _At++) { - var _Ax = $k[--$j]; - $k[$j++] = _Ax && Math.ceil($1.xc) + 1 <= Math.ceil($get(_As, _At)); - } - if ($k[--$j]) { - $k[$j++] = $1.X; - break; - } - } - $1.k = $1.k + 1; - } - } - }; - $1.addtocws = function() { - var _B1 = $k[--$j]; - $puti($1.cws, $1.j, _B1); - $1.j = _B1.length + $1.j; - }; - $1.tobin = function() { - var _B6 = $s($k[--$j]); - $k[$j++] = _B6; - for (var _B8 = 0, _B7 = _B6.length - 1; _B8 <= _B7; _B8 += 1) { - var _B9 = $k[--$j]; - $put(_B9, _B8, 48); - $k[$j++] = _B9; - } - var _BA = $k[--$j]; - var _BD = $cvrs($s(_BA.length), $k[--$j], 2); - $puti(_BA, _BA.length - _BD.length, _BD); - $k[$j++] = Infinity; - var _BF = _BA; - $forall(_BF, function() { - var _BG = $k[--$j]; - $k[$j++] = $f(_BG - 48); - }); - var _BH = $a(); - $k[$j++] = _BH; - }; - $1.encA = function() { - for (var _BI = 0, _BJ = 1; _BI < _BJ; _BI++) { - if ($get($1.numD, $1.i) >= 21) { - $1.Dbits = $a([ 1, 1, 1, 1 ]); - $1.mode = $1.D; - break; - } - var _BR = $get($1.numD, $1.i); - if (_BR >= 13 && $f(_BR + $1.i) == $1.msglen) { - $1.Dbits = $a([ 1, 1, 1, 1 ]); - $1.mode = $1.D; - break; - } - if ($get($1.numD, $1.i) >= 2) { - var _BZ = $s(2); - $put(_BZ, 0, $get($1.msg, $1.i)); - $put(_BZ, 1, $get($1.msg, $1.i + 1)); - $k[$j++] = $get($1.Avals, _BZ); - $1.addtocws(); - $1.i = $1.i + 2; - break; - } - if ($get($1.msg, $1.i) == $1.fnc1) { - if ($get($1.numD, $1.i + 1) >= 15) { - $k[$j++] = $get($1.Avals, $1.fnc1lD); - $1.addtocws(); - $1.i = $1.i + 1; - $1.Dbits = $a([]); - $1.mode = $1.D; - break; - } - var _By = $get($1.numD, $1.i + 1); - if (_By >= 7 && $f($f(_By + $1.i) + 1) == $1.msglen) { - $k[$j++] = $get($1.Avals, $1.fnc1lD); - $1.addtocws(); - $1.i = $1.i + 1; - $1.Dbits = $a([]); - $1.mode = $1.D; - break; - } - } - $k[$j++] = "newmode"; - $1.lookup(); - var _C7 = $k[--$j]; - $1[$k[--$j]] = _C7; - if ($1.newmode != $1.mode) { - $k[$j++] = $get($1.Avals, $get($a([ -1, $1.lC, $1.lT, $1.lX, $1.lD, $1.lB ]), $1.newmode)); - $1.addtocws(); - $1.mode = $1.newmode; - break; - } - $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); - $1.addtocws(); - $1.i = $1.i + 1; - break; - } - }; - $1.CTXvalstocws = function() { - $1.in = $k[--$j]; - $k[$j++] = Infinity; - for (var _CV = 0, _CU = $1.in.length - 1; _CV <= _CU; _CV += 3) { - var _CX = $geti($1.in, _CV, 3); - $k[$j++] = 0; - for (var _CY = 0, _CZ = _CX.length; _CY < _CZ; _CY++) { - var _Cb = $k[--$j]; - $k[$j++] = $f(_Cb + $get(_CX, _CY)) * 40; - } - var _Cd = ~~($k[--$j] / 40) + 1; - $k[$j++] = ~~(_Cd / 256); - $k[$j++] = _Cd % 256; - } - $astore($a($counttomark())); - var _Cg = $k[--$j]; - var _Ch = $k[--$j]; - $k[$j++] = _Cg; - $k[$j++] = _Ch; - $j--; - }; - $1.encCTX = function() { - $1.p = 0; - $1.ctxvals = $a(2220); - for (;;) { - if ($1.i == $1.msglen) { - break; - } - if ($1.p % 3 == 0) { - if ($get($1.numD, $1.i) >= 12) { - $k[$j++] = $geti($1.ctxvals, 0, $1.p); - $1.CTXvalstocws(); - $1.addtocws(); - $k[$j++] = $a([ $1.unlcw ]); - $1.addtocws(); - $1.mode = $1.A; - break; - } - var _Cx = $get($1.numD, $1.i); - if (_Cx >= 8 && $f(_Cx + $1.i) == $1.msglen) { - $k[$j++] = $geti($1.ctxvals, 0, $1.p); - $1.CTXvalstocws(); - $1.addtocws(); - $k[$j++] = $a([ $1.unlcw ]); - $1.addtocws(); - $1.mode = $1.A; - break; - } - if ($1.mode == $1.X) { - var _DC = $get($1.Xvals, $get($1.msg, $1.i)) !== undefined; - if (!_DC) { - $k[$j++] = $geti($1.ctxvals, 0, $1.p); - $1.CTXvalstocws(); - $1.addtocws(); - if ($get($1.numremcws, $1.j) != 1 || $get($1.msg, $1.i) > 127) { - $k[$j++] = $a([ $1.unlcw ]); - $1.addtocws(); - } - $1.mode = $1.A; - break; - } - if ($1.i + 1 < $1.msglen) { - var _DV = $get($1.Xvals, $get($1.msg, $1.i + 1)) !== undefined; - if (!_DV) { - break; - } - if ($1.i + 2 < $1.msglen) { - var _Dc = $get($1.Xvals, $get($1.msg, $1.i + 2)) !== undefined; - if (!_Dc) { - break; - } - } - } - } else { - $1.lookup(); - if ($k[--$j] != $1.mode) { - $k[$j++] = $geti($1.ctxvals, 0, $1.p); - $1.CTXvalstocws(); - $1.addtocws(); - $k[$j++] = $a([ $1.unlcw ]); - $1.addtocws(); - $1.mode = $1.A; - break; - } - } - if ($1.msglen - $1.i <= 3) { - $1.remcws = $get($1.numremcws, $1.j + ~~($1.p / 3) * 2); - $k[$j++] = Infinity; - var _Dv = $geti($1.msg, $1.i, $1.msglen - $1.i); - for (var _Dw = 0, _Dx = _Dv.length; _Dw < _Dx; _Dw++) { - var _Dy = $get(_Dv, _Dw); - var _E2 = $get($get($1.encvals, $1.mode), _Dy) !== undefined; - $k[$j++] = _Dy; - if (_E2) { - $aload($get($get($1.encvals, $1.mode), $k[--$j])); - } else { - $j--; - $k[$j++] = -1; - $k[$j++] = -1; - $k[$j++] = -1; - $k[$j++] = -1; - } - } - $1.remvals = $a(); - if ($1.remcws == 2 && $1.remvals.length == 3) { - $k[$j++] = Infinity; - $aload($geti($1.ctxvals, 0, $1.p)); - $aload($1.remvals); - var _EF = $a(); - $k[$j++] = _EF; - $1.CTXvalstocws(); - $1.addtocws(); - $1.mode = $1.A; - $1.i = $1.msglen; - break; - } - if ($1.remcws == 2 && $1.remvals.length == 2 && $1.mode != $1.X) { - $k[$j++] = Infinity; - $aload($geti($1.ctxvals, 0, $1.p)); - $aload($1.remvals); - $aload($get($get($1.encvals, $1.mode), $1.sft1)); - var _EV = $a(); - $k[$j++] = _EV; - $1.CTXvalstocws(); - $1.addtocws(); - $1.mode = $1.A; - $1.i = $1.msglen; - break; - } - if ($1.remcws == 2 && $1.remvals.length == 1) { - $k[$j++] = $geti($1.ctxvals, 0, $1.p); - $1.CTXvalstocws(); - $1.addtocws(); - $k[$j++] = $a([ $1.unlcw ]); - $1.addtocws(); - $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); - $1.addtocws(); - $1.mode = $1.A; - $1.i = $1.msglen; - break; - } - if ($1.remcws == 1 && $1.remvals.length == 1) { - $k[$j++] = $geti($1.ctxvals, 0, $1.p); - $1.CTXvalstocws(); - $1.addtocws(); - $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); - $1.addtocws(); - $1.mode = $1.A; - $1.i = $1.msglen; - break; - } - } - } - var _F4 = $get($get($1.encvals, $1.mode), $get($1.msg, $1.i)); - $puti($1.ctxvals, $1.p, _F4); - $1.p = _F4.length + $1.p; - $1.i = $1.i + 1; - } - if ($1.mode != $1.A) { - for (;;) { - if ($1.p % 3 == 0) { - break; - } - $1.i = $1.i - 1; - $1.p = $1.p - $get($get($1.encvals, $1.mode), $get($1.msg, $1.i)).length; - } - $k[$j++] = Infinity; - $aload($geti($1.ctxvals, 0, $1.p)); - var _FO = $a(); - $k[$j++] = _FO; - $1.CTXvalstocws(); - $1.addtocws(); - $k[$j++] = $a([ $1.unlcw ]); - $1.addtocws(); - $1.mode = $1.A; - if ($1.i != $1.msglen) { - if ($get($1.numD, $1.i) >= 2) { - var _FX = $s(2); - $put(_FX, 0, $get($1.msg, $1.i)); - $put(_FX, 1, $get($1.msg, $1.i + 1)); - $k[$j++] = $get($1.Avals, _FX); - $1.addtocws(); - $1.i = $1.i + 2; - } else { - $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); - $1.addtocws(); - $1.i = $1.i + 1; - } - } - } - }; - $1.encD = function() { - for (;;) { - if ($get($1.numD, $1.i) < 3) { - $1.Drem = (8 - $1.Dbits.length % 8) % 8; - $1.remcws = $get($1.numremcws, $1.j + ~~($1.Dbits.length / 8)); - if (($f($get($1.numremcws, $1.j + ~~($1.Dbits.length / 8) - 1) - 1) == 0 && $1.Drem == 0 || $1.remcws == 1 && $1.Drem != 0) && $1.i == $1.msglen) { - if ($1.Drem == 4 || $1.Drem == 6) { - $k[$j++] = Infinity; - $aload($1.Dbits); - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $1.Dbits = $a(); - } - if ($1.Drem == 2 || $1.Drem == 6) { - $k[$j++] = Infinity; - $aload($1.Dbits); - $k[$j++] = 0; - $k[$j++] = 1; - $1.Dbits = $a(); - } - break; - } - if (($1.i == $1.msglen - 1 && $get($1.numD, $1.i) == 1 || $1.i == $1.msglen - 2 && $get($1.numD, $1.i) == 2) && $1.remcws == 1 && $1.Drem == 0) { - break; - } - if (!($1.i == $1.msglen - 1 && $get($1.numD, $1.i) == 1 && $1.remcws == 1 && ($1.Drem == 4 || $1.Drem == 6))) { - $k[$j++] = Infinity; - $aload($1.Dbits); - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $1.Dbits = $a(); - $1.Drem = (8 - $1.Dbits.length % 8) % 8; - } - if ($1.Drem == 4 || $1.Drem == 6) { - if ($get($1.numD, $1.i) >= 1) { - $k[$j++] = Infinity; - $aload($1.Dbits); - $k[$j++] = $f($f($get($1.msg, $1.i) - 48) + 1); - $k[$j++] = 4; - $1.tobin(); - $aload($k[--$j]); - $1.Dbits = $a(); - $1.i = $1.i + 1; - } else { - $k[$j++] = Infinity; - $aload($1.Dbits); - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $1.Dbits = $a(); - } - $1.Drem = $1.Drem - 4; - } - if ($1.Drem == 2) { - $k[$j++] = Infinity; - $aload($1.Dbits); - $k[$j++] = 0; - $k[$j++] = 1; - $1.Dbits = $a(); - $1.Drem = 0; - } - break; - } - $k[$j++] = Infinity; - $aload($1.Dbits); - var _Gu = $geti($1.msg, $1.i, 3); - $k[$j++] = 0; - for (var _Gv = 0, _Gw = _Gu.length; _Gv < _Gw; _Gv++) { - var _Gy = $k[--$j]; - $k[$j++] = $f(_Gy + $f($get(_Gu, _Gv) - 48)) * 10; - } - var _Gz = $k[--$j]; - $k[$j++] = ~~(_Gz / 10) + 1; - $k[$j++] = 10; - $1.tobin(); - $aload($k[--$j]); - $1.Dbits = $a(); - $1.i = $1.i + 3; - } - $k[$j++] = Infinity; - for (var _H5 = 0, _H4 = $1.Dbits.length - 1; _H5 <= _H4; _H5 += 8) { - var _H7 = $geti($1.Dbits, _H5, 8); - $k[$j++] = 0; - for (var _H8 = 0, _H9 = _H7.length; _H8 < _H9; _H8++) { - var _HB = $k[--$j]; - $k[$j++] = $f(_HB + $get(_H7, _H8)) * 2; - } - var _HC = $k[--$j]; - $k[$j++] = ~~(_HC / 2); - } - $astore($a($counttomark())); - var _HF = $k[--$j]; - var _HG = $k[--$j]; - $k[$j++] = _HF; - $k[$j++] = _HG; - $j--; - $1.addtocws(); - $1.mode = $1.A; - }; - $1.encB = function() { - $1.p = 0; - $1.bvals = $a(1480); - for (;;) { - if ($1.i == $1.msglen) { - break; - } - if ($get($1.msg, $1.i) < 0) { - break; - } - $1.lookup(); - if ($k[--$j] != $1.mode) { - break; - } - $put($1.bvals, $1.p, $get($1.msg, $1.i)); - $1.p = $1.p + 1; - $1.i = $1.i + 1; - } - $1.remcws = $f($get($1.numremcws, $1.j + $1.p) - 1); - $k[$j++] = Infinity; - if ($1.remcws == 0 && $1.i == $1.msglen) { - $k[$j++] = 0; - } else { - if ($1.p < 250) { - $k[$j++] = $1.p; - } else { - $k[$j++] = ~~($1.p / 250) + 249; - $k[$j++] = $1.p % 250; - } - } - $aload($geti($1.bvals, 0, $1.p)); - $1.bvals = $a(); - $k[$j++] = $1.bvals; - $1.addtocws(); - $1.mode = $1.A; - }; - $1.cws = $a(1480); - $1.mode = $1.A; - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i >= $1.msglen) { - break; - } - if ($1[$get($a([ "encA", "encCTX", "encCTX", "encCTX", "encD", "encB" ]), $1.mode)]() === true) { - break; - } - } - $1.cws = $geti($1.cws, 0, $1.j); - } - $1.i = 0; - for (;;) { - $1.m = $get($1.metrics, $1.i); - $1.vers = $get($1.m, 0); - $1.rows = $get($1.m, 1); - $1.cols = $get($1.m, 2); - $1.dcol = $get($1.m, 3); - $1.dcws = $get($1.m, 4); - $1.rscw = $get($1.m, 5); - $1.rsbl = $get($1.m, 6); - $1.riso = $get($1.m, 7); - $1.risi = $get($1.m, 8); - $1.risl = $get($1.m, 9); - $1.dcpb = ~~($1.dcws / $1.rsbl); - $1.ecpb = ~~($1.rscw / $1.rsbl); - $1.okay = true; - if ($ne($1.version, "unset") && $ne($1.version, $1.vers)) { - $1.okay = false; - } - if ($1.cws.length > $1.dcws) { - $1.okay = false; - } - if ($1.okay) { - break; - } - $1.i = $1.i + 1; - } - if (!$1.stype) { - $k[$j++] = Infinity; - $aload($1.cws); - for (var _Ib = 0, _Ic = $f($1.dcws - $1.cws.length); _Ib < _Ic; _Ib++) { - $k[$j++] = 129; - } - $1.cws = $a(); - } else { - $k[$j++] = Infinity; - for (var _Ig = 0, _Ih = $f($1.dcws - $1.cws.length); _Ig < _Ih; _Ig++) { - $k[$j++] = 0; - } - $aload($1.cws); - $1.cws = $a(); - } - var _Il = $get($1.options, "debugcws") !== undefined; - if (_Il) { - $k[$j++] = "bwipp.debugcws"; - $k[$j++] = $1.cws; - $0.raiseerror(); - } - $1.cwbs = $a($1.rsbl); - $1.ecbs = $a($1.rsbl); - for (var _It = 0, _Is = $f($1.rsbl - 1); _It <= _Is; _It += 1) { - $1.i = _It; - $1.cwb = $a($1.dcpb); - for (var _Iy = 0, _Ix = $1.dcpb - 1; _Iy <= _Ix; _Iy += 1) { - $1.j = _Iy; - $put($1.cwb, $1.j, $get($1.cws, $f($1.j * $1.rsbl + $1.i))); - } - $put($1.cwbs, $1.i, $1.cwb); - } - var _JA = $1.stype ? 32 : 256; - $1.gf = _JA; - $1["gf-1"] = $1.gf - 1; - var _JD = $1.stype ? 37 : 301; - $1.pm = _JD; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _JF = 0, _JG = $1["gf-1"]; _JF < _JG; _JF++) { - var _JH = $k[--$j]; - var _JI = _JH * 2; - $k[$j++] = _JH; - $k[$j++] = _JI; - if (_JI >= $1.gf) { - var _JL = $k[--$j]; - $k[$j++] = _JL ^ $1.pm; - } - } - $1.rsalog = $a(); - $1.rslog = $a($1.gf); - for (var _JR = 1, _JQ = $1["gf-1"]; _JR <= _JQ; _JR += 1) { - $put($1.rslog, $get($1.rsalog, _JR), _JR); - } - $1.rsprod = function() { - var _JV = $k[--$j]; - var _JW = $k[--$j]; - $k[$j++] = _JW; - $k[$j++] = _JV; - if (_JV != 0 && _JW != 0) { - var _JZ = $get($1.rslog, $k[--$j]); - var _Jf = $get($1.rsalog, $f(_JZ + $get($1.rslog, $k[--$j])) % $1["gf-1"]); - $k[$j++] = _Jf; - } else { - $j -= 2; - $k[$j++] = 0; - } - }; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _Jh = 0, _Ji = $1.ecpb; _Jh < _Ji; _Jh++) { - $k[$j++] = 0; - } - $1.coeffs = $a(); - for (var _Jm = 0, _Jl = $1.ecpb - 1; _Jm <= _Jl; _Jm += 1) { - $1.i = _Jm; - $put($1.coeffs, $1.i + 1, $get($1.coeffs, $1.i)); - for (var _Jt = $1.i; _Jt >= 1; _Jt -= 1) { - $1.j = _Jt; - $k[$j++] = $1.coeffs; - $k[$j++] = $1.j; - $k[$j++] = $get($1.coeffs, $1.j - 1); - $k[$j++] = $get($1.coeffs, $1.j); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _K5 = $k[--$j]; - var _K6 = $k[--$j]; - var _K7 = $k[--$j]; - $put($k[--$j], _K7, $xo(_K6, _K5)); - } - $k[$j++] = $1.coeffs; - $k[$j++] = 0; - $k[$j++] = $get($1.coeffs, 0); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _KF = $k[--$j]; - var _KG = $k[--$j]; - $put($k[--$j], _KG, _KF); - } - $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); - for (var _KN = 0, _KM = $1.cwbs.length - 1; _KN <= _KM; _KN += 1) { - $1.i = _KN; - $k[$j++] = Infinity; - $aload($get($1.cwbs, $1.i)); - for (var _KS = 0, _KT = $1.ecpb; _KS < _KT; _KS++) { - $k[$j++] = 0; - } - $1.rscws = $a(); - for (var _KX = 0, _KW = $1.dcpb - 1; _KX <= _KW; _KX += 1) { - $1.m = _KX; - $1.k = $get($1.rscws, $1.m); - for (var _Kd = 0, _Kc = $1.ecpb - 1; _Kd <= _Kc; _Kd += 1) { - $1.j = _Kd; - $k[$j++] = $1.rscws; - $k[$j++] = $1.m + $1.j + 1; - $k[$j++] = $get($1.coeffs, $1.ecpb - $1.j - 1); - $k[$j++] = $1.k; - $1.rsprod(); - var _Kq = $k[--$j]; - var _Kr = $k[--$j]; - $put($k[--$j], _Kr, $xo(_Kq, $get($1.rscws, $1.m + $1.j + 1))); - } - } - $put($1.ecbs, $1.i, $geti($1.rscws, $1.dcpb, $1.ecpb)); - } - $k[$j++] = Infinity; - $aload($1.cws); - for (var _L1 = 0, _L2 = $1.rscw; _L1 < _L2; _L1++) { - $k[$j++] = 0; - } - $1.cws = $a(); - for (var _L6 = 0, _L5 = $f($1.rscw - 1); _L6 <= _L5; _L6 += 1) { - $1.i = _L6; - $put($1.cws, $f($1.dcws + $1.i), $get($get($1.ecbs, $1.i % $1.rsbl), ~~($1.i / $1.rsbl))); - } - var _LK = $1.stype ? 5 : 8; - $1.mmat = $a($f($1.dcws + $1.rscw) * _LK); - $1.r = 0; - $1.c = 0; - var _LN = $1.stype ? 2 : 1; - for (var _LQ = 0, _LR = _LN, _LP = $1.cws.length - 1; _LR < 0 ? _LQ >= _LP : _LQ <= _LP; _LQ += _LR) { - $1.i = _LQ; - if (!$1.stype) { - var _LU = $strcpy($s(8), "00000000"); - var _LZ = $cvrs($s(8), $get($1.cws, $1.i), 2); - $puti(_LU, 8 - _LZ.length, _LZ); - $k[$j++] = Infinity; - var _Lb = _LU; - $forall(_Lb, function() { - var _Lc = $k[--$j]; - $k[$j++] = $f(_Lc - 48); - }); - var _Ld = $a(); - $1.top = $geti(_Ld, 0, 4); - $1.bot = $geti(_Ld, 4, 4); - } else { - var _Lh = $strcpy($s(5), "00000"); - var _Lm = $cvrs($s(5), $get($1.cws, $1.i), 2); - $puti(_Lh, 5 - _Lm.length, _Lm); - $k[$j++] = Infinity; - var _Lo = _Lh; - $forall(_Lo, function() { - var _Lp = $k[--$j]; - $k[$j++] = $f(_Lp - 48); - }); - $1.c1 = $a(); - var _Ls = $strcpy($s(5), "00000"); - var _Lx = $cvrs($s(5), $get($1.cws, $1.i + 1), 2); - $puti(_Ls, 5 - _Lx.length, _Lx); - $k[$j++] = Infinity; - var _Lz = _Ls; - $forall(_Lz, function() { - var _M0 = $k[--$j]; - $k[$j++] = $f(_M0 - 48); - }); - $1.c2 = $a(); - $k[$j++] = Infinity; - $aload($geti($1.c1, 0, 3)); - $aload($geti($1.c2, 0, 2)); - $1.top = $a(); - $k[$j++] = Infinity; - $aload($geti($1.c1, 3, 2)); - $aload($geti($1.c2, 2, 3)); - $1.bot = $a(); - } - $puti($1.mmat, $f($1.r * $1.dcol + $1.c), $1.top); - $puti($1.mmat, $f(($1.r + 1) * $1.dcol + $1.c), $1.bot); - $1.c = $1.c + $1.top.length; - if ($1.c == $1.dcol) { - $1.c = 0; - $1.r = $1.r + 2; - } - } - $1.mmv = function() { - var _MS = $k[--$j]; - var _MT = $k[--$j]; - $k[$j++] = $f(_MT + _MS * $1.cols); - }; - $k[$j++] = Infinity; - for (var _MW = 0, _MX = $1.rows * $1.cols; _MW < _MX; _MW++) { - $k[$j++] = -1; - } - $1.pixs = $a(); - var _N3 = $a([ function() { - for (var _Ma = 0, _Mb = $1.cols; _Ma < _Mb; _Ma++) { - $k[$j++] = 0; - } - }, function() { - for (var _Md = 0, _Me = $1.cols; _Md < _Me; _Md++) { - $k[$j++] = 1; - } - }, function() { - $k[$j++] = 0; - for (var _Mg = 0, _Mh = $f($1.cols - 2); _Mg < _Mh; _Mg++) { - $k[$j++] = 1; - } - $k[$j++] = 0; - }, function() { - $k[$j++] = 0; - $k[$j++] = 1; - for (var _Mj = 0, _Mk = $f($1.cols - 4); _Mj < _Mk; _Mj++) { - $k[$j++] = 0; - } - $k[$j++] = 1; - $k[$j++] = 0; - }, function() { - for (var _Mm = 0, _Mn = ~~($f($1.cols - 1) / 2); _Mm < _Mn; _Mm++) { - $k[$j++] = -1; - } - $k[$j++] = 1; - for (var _Mp = 0, _Mq = ~~($f($1.cols - 1) / 2); _Mp < _Mq; _Mp++) { - $k[$j++] = -1; - } - }, function() { - for (var _Ms = 0, _Mt = ~~($f($1.cols - 1) / 2); _Ms < _Mt; _Ms++) { - $k[$j++] = -1; - } - $k[$j++] = 0; - for (var _Mv = 0, _Mw = ~~($f($1.cols - 1) / 2); _Mv < _Mw; _Mv++) { - $k[$j++] = -1; - } - }, function() { - $k[$j++] = 1; - for (var _My = 0, _Mz = $f($1.cols - 2); _My < _Mz; _My++) { - $k[$j++] = 0; - } - $k[$j++] = 1; - }, function() { - $k[$j++] = 1; - $k[$j++] = 0; - for (var _N1 = 0, _N2 = $f($1.cols - 4); _N1 < _N2; _N1++) { - $k[$j++] = 1; - } - $k[$j++] = 0; - $k[$j++] = 1; - } ]); - $1.artifact = _N3; - var _N4 = new Map([ [ "A", "121343" ], [ "B", "12134343" ], [ "C", "12121343" ], [ "D", "1213434343" ], [ "E", "1212134343" ], [ "F", "1212121343" ], [ "G", "121213434343" ], [ "H", "121212134343" ], [ "S", "56661278" ], [ "T", "5666666666127878" ] ]); - $1.cpat = $get(_N4, $geti($1.vers, 0, 1)); - $k[$j++] = $1.pixs; - $k[$j++] = 0; - $k[$j++] = ~~($f($1.rows - $1.cpat.length) / 2); - $1.mmv(); - $k[$j++] = Infinity; - $forall($1.cpat, function() { - if ($get($1.artifact, $f($k[--$j] - 49))() === true) { - return true; - } - }); - var _NF = $a(); - var _NG = $k[--$j]; - $puti($k[--$j], _NG, _NF); - for (var _NK = 0, _NJ = $f($1.risl - 1); _NK <= _NJ; _NK += 1) { - $1.i = _NK; - for (var _NP = $1.riso, _NQ = $1.risi, _NO = $f($1.cols - 1); _NQ < 0 ? _NP >= _NO : _NP <= _NO; _NP += _NQ) { - $1.j = _NP; - var _NS = $1.i % 12 == 0 ? 1 : 0; - var _NT = $a([ 1, _NS ]); - $k[$j++] = _NT; - $k[$j++] = _NT; - $k[$j++] = $1.pixs; - $k[$j++] = $1.j; - $k[$j++] = $1.i; - $1.mmv(); - var _NX = $k[--$j]; - var _NY = $k[--$j]; - $puti(_NY, _NX, $k[--$j]); - if ($1.i != $f($1.risl - 1)) { - $k[$j++] = $1.pixs; - $k[$j++] = $f($f($1.cols - $1.j) - 2); - $k[$j++] = $f($f($1.rows - $1.i) - 1); - $1.mmv(); - var _Nh = $k[--$j]; - var _Ni = $k[--$j]; - $puti(_Ni, _Nh, $k[--$j]); - } else { - $j--; - } - } - } - var _ON = new Map([ [ "A", $a([ $a([ 12, 5 ]) ]) ], [ "B", $a([ $a([ 16, 7 ]) ]) ], [ "C", $a([ $a([ 26, 12 ]) ]) ], [ "D", $a([]) ], [ "E", $a([ $a([ 26, 23 ]) ]) ], [ "F", $a([ $a([ 26, 32 ]), $a([ 70, 32 ]), $a([ 26, 34 ]), $a([ 70, 34 ]) ]) ], [ "G", $a([ $a([ 27, 48 ]), $a([ 69, 48 ]) ]) ], [ "H", $a([ $a([ 26, 70 ]), $a([ 66, 70 ]), $a([ 106, 70 ]), $a([ 26, 72 ]), $a([ 66, 72 ]), $a([ 106, 72 ]) ]) ], [ "S-10", $a([]) ], [ "S-20", $a([ $a([ 10, 4 ]) ]) ], [ "S-30", $a([ $a([ 15, 4 ]), $a([ 15, 6 ]) ]) ], [ "T-16", $a([ $a([ 8, 10 ]) ]) ], [ "T-32", $a([ $a([ 16, 10 ]), $a([ 16, 12 ]) ]) ], [ "T-48", $a([ $a([ 24, 10 ]), $a([ 24, 12 ]), $a([ 24, 14 ]) ]) ] ]); - $forall($get(_ON, $1.vers), function() { - var _OR = $k[--$j]; - $k[$j++] = $1.pixs; - $aload(_OR); - $1.mmv(); - var _OS = $k[--$j]; - $put($k[--$j], _OS, 1); - }); - $1.j = 0; - for (var _OW = 0, _OV = $1.pixs.length - 1; _OW <= _OV; _OW += 1) { - $1.i = _OW; - if ($get($1.pixs, $1.i) == -1) { - $put($1.pixs, $1.i, $get($1.mmat, $1.j)); - $1.j = $1.j + 1; - } - } - var _Om = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", $1.cols ], [ "pixy", $1.rows ], [ "height", $1.rows / 72 * 2 ], [ "width", $1.cols / 72 * 2 ], [ "opt", $1.options ] ]); - $k[$j++] = _Om; - if (!$1.dontdraw) { - $0.renmatrix(); - } - }; - $0.hanxin = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.version = "unset"; - $1.eclevel = "unset"; - $1.parse = false; - $1.parsefnc = false; - $1.mask = -1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.mask = ~~$1.mask; - var _8 = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ] ]); - $1.fncvals = _8; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _B = $k[--$j]; - $1[$k[--$j]] = _B; - $1.msglen = $1.msg.length; - if ($eq($1.eclevel, "unset")) { - $1.eclevel = "L2"; - } - $1.tobin = function() { - var _G = $s($k[--$j]); - $k[$j++] = _G; - for (var _I = 0, _H = _G.length - 1; _I <= _H; _I += 1) { - var _J = $k[--$j]; - $put(_J, _I, 48); - $k[$j++] = _J; - } - var _K = $k[--$j]; - var _N = $cvrs($s(_K.length), $k[--$j], 2); - $puti(_K, _K.length - _N.length, _N); - $k[$j++] = _K; - }; - $1.bits = $s(4 + 13 + $1.msglen * 8); - $puti($1.bits, 0, "0011"); - $k[$j++] = $1.bits; - $k[$j++] = 4; - $k[$j++] = $1.msglen; - $k[$j++] = 13; - $1.tobin(); - var _T = $k[--$j]; - var _U = $k[--$j]; - $puti($k[--$j], _U, _T); - for (var _Y = 0, _X = $1.msglen - 1; _Y <= _X; _Y += 1) { - $1.i = _Y; - $k[$j++] = $1.bits; - $k[$j++] = 17 + $1.i * 8; - $k[$j++] = $get($1.msg, $1.i); - $k[$j++] = 8; - $1.tobin(); - var _e = $k[--$j]; - var _f = $k[--$j]; - $puti($k[--$j], _f, _e); - } - $1.metrics = $a([ $a([ "1", 23, -1, 0, 205, $a([ 1, 21, 4 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 17, 8 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 13, 12 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 9, 16 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]) ]), $a([ "2", 25, -1, 0, 301, $a([ 1, 31, 6 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 25, 12 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 19, 18 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 15, 22 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]) ]), $a([ "3", 27, -1, 0, 405, $a([ 1, 42, 8 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 34, 16 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 26, 24 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 20, 30 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]) ]), $a([ "4", 29, 14, 1, 439, $a([ 1, 46, 8 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 38, 16 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 30, 24 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 22, 32 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]) ]), $a([ "5", 31, 16, 1, 555, $a([ 1, 57, 12 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 49, 20 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 37, 32 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 14, 20 ]), $a([ 1, 13, 22 ]), $a([ 0, -1, -1 ]) ]), $a([ "6", 33, 16, 1, 675, $a([ 1, 70, 14 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 58, 26 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 24, 20 ]), $a([ 1, 22, 18 ]), $a([ 0, -1, -1 ]), $a([ 1, 16, 24 ]), $a([ 1, 18, 26 ]), $a([ 0, -1, -1 ]) ]), $a([ "7", 35, 17, 1, 805, $a([ 1, 84, 16 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 70, 30 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 26, 22 ]), $a([ 1, 28, 24 ]), $a([ 0, -1, -1 ]), $a([ 2, 14, 20 ]), $a([ 1, 12, 20 ]), $a([ 0, -1, -1 ]) ]), $a([ "8", 37, 18, 1, 943, $a([ 1, 99, 18 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 40, 18 ]), $a([ 1, 41, 18 ]), $a([ 0, -1, -1 ]), $a([ 1, 31, 26 ]), $a([ 1, 32, 28 ]), $a([ 0, -1, -1 ]), $a([ 2, 16, 24 ]), $a([ 1, 15, 22 ]), $a([ 0, -1, -1 ]) ]), $a([ "9", 39, 19, 1, 1089, $a([ 1, 114, 22 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 2, 48, 20 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 2, 24, 20 ]), $a([ 1, 26, 22 ]), $a([ 0, -1, -1 ]), $a([ 2, 18, 28 ]), $a([ 1, 18, 26 ]), $a([ 0, -1, -1 ]) ]), $a([ "10", 41, 20, 1, 1243, $a([ 1, 131, 24 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 52, 22 ]), $a([ 1, 57, 24 ]), $a([ 0, -1, -1 ]), $a([ 2, 27, 24 ]), $a([ 1, 29, 24 ]), $a([ 0, -1, -1 ]), $a([ 2, 21, 32 ]), $a([ 1, 19, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "11", 43, 14, 2, 1289, $a([ 1, 135, 26 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 56, 24 ]), $a([ 1, 57, 24 ]), $a([ 0, -1, -1 ]), $a([ 2, 28, 24 ]), $a([ 1, 31, 26 ]), $a([ 0, -1, -1 ]), $a([ 2, 22, 32 ]), $a([ 1, 21, 32 ]), $a([ 0, -1, -1 ]) ]), $a([ "12", 45, 15, 2, 1455, $a([ 1, 153, 28 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 62, 26 ]), $a([ 1, 65, 28 ]), $a([ 0, -1, -1 ]), $a([ 2, 32, 28 ]), $a([ 1, 33, 28 ]), $a([ 0, -1, -1 ]), $a([ 3, 17, 26 ]), $a([ 1, 22, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "13", 47, 16, 2, 1629, $a([ 1, 86, 16 ]), $a([ 1, 85, 16 ]), $a([ 0, -1, -1 ]), $a([ 1, 71, 30 ]), $a([ 1, 72, 30 ]), $a([ 0, -1, -1 ]), $a([ 2, 37, 32 ]), $a([ 1, 35, 30 ]), $a([ 0, -1, -1 ]), $a([ 3, 20, 30 ]), $a([ 1, 21, 32 ]), $a([ 0, -1, -1 ]) ]), $a([ "14", 49, 16, 2, 1805, $a([ 1, 94, 18 ]), $a([ 1, 95, 18 ]), $a([ 0, -1, -1 ]), $a([ 2, 51, 22 ]), $a([ 1, 55, 24 ]), $a([ 0, -1, -1 ]), $a([ 3, 30, 26 ]), $a([ 1, 31, 26 ]), $a([ 0, -1, -1 ]), $a([ 4, 18, 28 ]), $a([ 1, 17, 24 ]), $a([ 0, -1, -1 ]) ]), $a([ "15", 51, 17, 2, 1995, $a([ 1, 104, 20 ]), $a([ 1, 105, 20 ]), $a([ 0, -1, -1 ]), $a([ 2, 57, 24 ]), $a([ 1, 61, 26 ]), $a([ 0, -1, -1 ]), $a([ 3, 33, 28 ]), $a([ 1, 36, 30 ]), $a([ 0, -1, -1 ]), $a([ 4, 20, 30 ]), $a([ 1, 19, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "16", 53, 17, 2, 2187, $a([ 1, 115, 22 ]), $a([ 1, 114, 22 ]), $a([ 0, -1, -1 ]), $a([ 2, 65, 28 ]), $a([ 1, 61, 26 ]), $a([ 0, -1, -1 ]), $a([ 3, 38, 32 ]), $a([ 1, 33, 30 ]), $a([ 0, -1, -1 ]), $a([ 5, 19, 28 ]), $a([ 1, 14, 24 ]), $a([ 0, -1, -1 ]) ]), $a([ "17", 55, 18, 2, 2393, $a([ 1, 126, 24 ]), $a([ 1, 125, 24 ]), $a([ 0, -1, -1 ]), $a([ 2, 70, 30 ]), $a([ 1, 69, 30 ]), $a([ 0, -1, -1 ]), $a([ 4, 33, 28 ]), $a([ 1, 29, 26 ]), $a([ 0, -1, -1 ]), $a([ 5, 20, 30 ]), $a([ 1, 19, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "18", 57, 19, 2, 2607, $a([ 1, 136, 26 ]), $a([ 1, 137, 26 ]), $a([ 0, -1, -1 ]), $a([ 3, 56, 24 ]), $a([ 1, 59, 26 ]), $a([ 0, -1, -1 ]), $a([ 5, 35, 30 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 6, 18, 28 ]), $a([ 1, 21, 28 ]), $a([ 0, -1, -1 ]) ]), $a([ "19", 59, 20, 2, 2829, $a([ 1, 148, 28 ]), $a([ 1, 149, 28 ]), $a([ 0, -1, -1 ]), $a([ 3, 61, 26 ]), $a([ 1, 64, 28 ]), $a([ 0, -1, -1 ]), $a([ 7, 24, 20 ]), $a([ 1, 23, 22 ]), $a([ 0, -1, -1 ]), $a([ 6, 20, 30 ]), $a([ 1, 21, 32 ]), $a([ 0, -1, -1 ]) ]), $a([ "20", 61, 20, 2, 3053, $a([ 3, 107, 20 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 3, 65, 28 ]), $a([ 1, 72, 30 ]), $a([ 0, -1, -1 ]), $a([ 7, 26, 22 ]), $a([ 1, 23, 22 ]), $a([ 0, -1, -1 ]), $a([ 7, 19, 28 ]), $a([ 1, 20, 32 ]), $a([ 0, -1, -1 ]) ]), $a([ "21", 63, 21, 2, 3291, $a([ 3, 115, 22 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 4, 56, 24 ]), $a([ 1, 63, 28 ]), $a([ 0, -1, -1 ]), $a([ 7, 28, 24 ]), $a([ 1, 25, 22 ]), $a([ 0, -1, -1 ]), $a([ 8, 18, 28 ]), $a([ 1, 21, 22 ]), $a([ 0, -1, -1 ]) ]), $a([ "22", 65, 16, 3, 3383, $a([ 2, 116, 22 ]), $a([ 1, 122, 24 ]), $a([ 0, -1, -1 ]), $a([ 4, 56, 24 ]), $a([ 1, 72, 30 ]), $a([ 0, -1, -1 ]), $a([ 7, 28, 24 ]), $a([ 1, 32, 26 ]), $a([ 0, -1, -1 ]), $a([ 8, 18, 28 ]), $a([ 1, 24, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "23", 67, 17, 3, 3631, $a([ 3, 127, 24 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 5, 51, 22 ]), $a([ 1, 62, 26 ]), $a([ 0, -1, -1 ]), $a([ 7, 30, 26 ]), $a([ 1, 35, 26 ]), $a([ 0, -1, -1 ]), $a([ 8, 20, 30 ]), $a([ 1, 21, 32 ]), $a([ 0, -1, -1 ]) ]), $a([ "24", 69, 17, 3, 3887, $a([ 2, 135, 26 ]), $a([ 1, 137, 26 ]), $a([ 0, -1, -1 ]), $a([ 5, 56, 24 ]), $a([ 1, 59, 26 ]), $a([ 0, -1, -1 ]), $a([ 7, 33, 28 ]), $a([ 1, 30, 28 ]), $a([ 0, -1, -1 ]), $a([ 11, 16, 24 ]), $a([ 1, 19, 26 ]), $a([ 0, -1, -1 ]) ]), $a([ "25", 71, 18, 3, 4151, $a([ 3, 105, 20 ]), $a([ 1, 121, 22 ]), $a([ 0, -1, -1 ]), $a([ 5, 61, 26 ]), $a([ 1, 57, 26 ]), $a([ 0, -1, -1 ]), $a([ 9, 28, 24 ]), $a([ 1, 28, 22 ]), $a([ 0, -1, -1 ]), $a([ 10, 19, 28 ]), $a([ 1, 18, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "26", 73, 18, 3, 4423, $a([ 2, 157, 30 ]), $a([ 1, 150, 28 ]), $a([ 0, -1, -1 ]), $a([ 5, 65, 28 ]), $a([ 1, 61, 26 ]), $a([ 0, -1, -1 ]), $a([ 8, 33, 28 ]), $a([ 1, 34, 30 ]), $a([ 0, -1, -1 ]), $a([ 10, 19, 28 ]), $a([ 2, 15, 26 ]), $a([ 0, -1, -1 ]) ]), $a([ "27", 75, 19, 3, 4703, $a([ 3, 126, 24 ]), $a([ 1, 115, 22 ]), $a([ 0, -1, -1 ]), $a([ 7, 51, 22 ]), $a([ 1, 54, 22 ]), $a([ 0, -1, -1 ]), $a([ 8, 35, 30 ]), $a([ 1, 37, 30 ]), $a([ 0, -1, -1 ]), $a([ 15, 15, 22 ]), $a([ 1, 10, 22 ]), $a([ 0, -1, -1 ]) ]), $a([ "28", 77, 19, 3, 4991, $a([ 4, 105, 20 ]), $a([ 1, 103, 20 ]), $a([ 0, -1, -1 ]), $a([ 7, 56, 24 ]), $a([ 1, 45, 18 ]), $a([ 0, -1, -1 ]), $a([ 10, 31, 26 ]), $a([ 1, 27, 26 ]), $a([ 0, -1, -1 ]), $a([ 10, 17, 26 ]), $a([ 3, 20, 28 ]), $a([ 1, 21, 28 ]) ]), $a([ "29", 79, 20, 3, 5287, $a([ 3, 139, 26 ]), $a([ 1, 137, 28 ]), $a([ 0, -1, -1 ]), $a([ 6, 66, 28 ]), $a([ 1, 66, 30 ]), $a([ 0, -1, -1 ]), $a([ 9, 36, 30 ]), $a([ 1, 34, 32 ]), $a([ 0, -1, -1 ]), $a([ 13, 19, 28 ]), $a([ 1, 17, 32 ]), $a([ 0, -1, -1 ]) ]), $a([ "30", 81, 20, 3, 5591, $a([ 6, 84, 16 ]), $a([ 1, 82, 16 ]), $a([ 0, -1, -1 ]), $a([ 6, 70, 30 ]), $a([ 1, 68, 30 ]), $a([ 0, -1, -1 ]), $a([ 7, 35, 30 ]), $a([ 3, 33, 28 ]), $a([ 1, 32, 28 ]), $a([ 13, 20, 30 ]), $a([ 1, 20, 28 ]), $a([ 0, -1, -1 ]) ]), $a([ "31", 83, 21, 3, 5903, $a([ 5, 105, 20 ]), $a([ 1, 94, 18 ]), $a([ 0, -1, -1 ]), $a([ 6, 74, 32 ]), $a([ 1, 71, 30 ]), $a([ 0, -1, -1 ]), $a([ 11, 33, 28 ]), $a([ 1, 34, 32 ]), $a([ 0, -1, -1 ]), $a([ 13, 19, 28 ]), $a([ 3, 16, 26 ]), $a([ 0, -1, -1 ]) ]), $a([ "32", 85, 17, 4, 6033, $a([ 4, 127, 24 ]), $a([ 1, 126, 24 ]), $a([ 0, -1, -1 ]), $a([ 7, 66, 28 ]), $a([ 1, 66, 30 ]), $a([ 0, -1, -1 ]), $a([ 12, 30, 24 ]), $a([ 1, 24, 28 ]), $a([ 1, 24, 30 ]), $a([ 15, 19, 28 ]), $a([ 1, 17, 32 ]), $a([ 0, -1, -1 ]) ]), $a([ "33", 87, 17, 4, 6353, $a([ 7, 84, 16 ]), $a([ 1, 78, 16 ]), $a([ 0, -1, -1 ]), $a([ 7, 70, 30 ]), $a([ 1, 66, 28 ]), $a([ 0, -1, -1 ]), $a([ 12, 33, 28 ]), $a([ 1, 32, 30 ]), $a([ 0, -1, -1 ]), $a([ 14, 21, 32 ]), $a([ 1, 24, 28 ]), $a([ 0, -1, -1 ]) ]), $a([ "34", 89, 18, 4, 6689, $a([ 5, 117, 22 ]), $a([ 1, 117, 24 ]), $a([ 0, -1, -1 ]), $a([ 8, 66, 28 ]), $a([ 1, 58, 26 ]), $a([ 0, -1, -1 ]), $a([ 11, 38, 32 ]), $a([ 1, 34, 32 ]), $a([ 0, -1, -1 ]), $a([ 15, 20, 30 ]), $a([ 2, 17, 26 ]), $a([ 0, -1, -1 ]) ]), $a([ "35", 91, 18, 4, 7025, $a([ 4, 148, 28 ]), $a([ 1, 146, 28 ]), $a([ 0, -1, -1 ]), $a([ 8, 68, 30 ]), $a([ 1, 70, 24 ]), $a([ 0, -1, -1 ]), $a([ 10, 36, 32 ]), $a([ 3, 38, 28 ]), $a([ 0, -1, -1 ]), $a([ 16, 19, 28 ]), $a([ 3, 16, 26 ]), $a([ 0, -1, -1 ]) ]), $a([ "36", 93, 19, 4, 7377, $a([ 4, 126, 24 ]), $a([ 2, 135, 26 ]), $a([ 0, -1, -1 ]), $a([ 8, 70, 28 ]), $a([ 2, 43, 26 ]), $a([ 0, -1, -1 ]), $a([ 13, 32, 28 ]), $a([ 2, 41, 30 ]), $a([ 0, -1, -1 ]), $a([ 17, 19, 28 ]), $a([ 3, 15, 26 ]), $a([ 0, -1, -1 ]) ]), $a([ "37", 95, 19, 4, 7729, $a([ 5, 136, 26 ]), $a([ 1, 132, 24 ]), $a([ 0, -1, -1 ]), $a([ 5, 67, 30 ]), $a([ 4, 68, 28 ]), $a([ 1, 69, 28 ]), $a([ 14, 35, 30 ]), $a([ 1, 32, 24 ]), $a([ 0, -1, -1 ]), $a([ 18, 18, 26 ]), $a([ 3, 16, 28 ]), $a([ 1, 14, 28 ]) ]), $a([ "38", 97, 19, 4, 8089, $a([ 3, 142, 26 ]), $a([ 3, 141, 28 ]), $a([ 0, -1, -1 ]), $a([ 8, 70, 30 ]), $a([ 1, 73, 32 ]), $a([ 1, 74, 32 ]), $a([ 12, 34, 30 ]), $a([ 3, 34, 26 ]), $a([ 1, 35, 28 ]), $a([ 18, 21, 32 ]), $a([ 1, 27, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "39", 99, 20, 4, 8465, $a([ 5, 116, 22 ]), $a([ 2, 103, 20 ]), $a([ 1, 102, 20 ]), $a([ 9, 74, 32 ]), $a([ 1, 74, 30 ]), $a([ 0, -1, -1 ]), $a([ 14, 34, 28 ]), $a([ 2, 32, 32 ]), $a([ 1, 32, 30 ]), $a([ 19, 21, 32 ]), $a([ 1, 25, 26 ]), $a([ 0, -1, -1 ]) ]), $a([ "40", 101, 20, 4, 8841, $a([ 7, 116, 22 ]), $a([ 1, 117, 22 ]), $a([ 0, -1, -1 ]), $a([ 11, 65, 28 ]), $a([ 1, 58, 24 ]), $a([ 0, -1, -1 ]), $a([ 15, 38, 32 ]), $a([ 1, 27, 28 ]), $a([ 0, -1, -1 ]), $a([ 20, 20, 30 ]), $a([ 1, 20, 32 ]), $a([ 1, 21, 32 ]) ]), $a([ "41", 103, 17, 5, 9009, $a([ 6, 136, 26 ]), $a([ 1, 130, 24 ]), $a([ 0, -1, -1 ]), $a([ 11, 66, 28 ]), $a([ 1, 62, 30 ]), $a([ 0, -1, -1 ]), $a([ 14, 34, 28 ]), $a([ 3, 34, 32 ]), $a([ 1, 30, 30 ]), $a([ 18, 20, 30 ]), $a([ 3, 20, 28 ]), $a([ 2, 15, 26 ]) ]), $a([ "42", 105, 17, 5, 9401, $a([ 5, 105, 20 ]), $a([ 2, 115, 22 ]), $a([ 2, 116, 22 ]), $a([ 10, 75, 32 ]), $a([ 1, 73, 32 ]), $a([ 0, -1, -1 ]), $a([ 16, 38, 32 ]), $a([ 1, 27, 28 ]), $a([ 0, -1, -1 ]), $a([ 22, 19, 28 ]), $a([ 2, 16, 30 ]), $a([ 1, 19, 30 ]) ]), $a([ "43", 107, 18, 5, 9799, $a([ 6, 147, 28 ]), $a([ 1, 146, 28 ]), $a([ 0, -1, -1 ]), $a([ 11, 66, 28 ]), $a([ 2, 65, 30 ]), $a([ 0, -1, -1 ]), $a([ 18, 33, 28 ]), $a([ 2, 33, 30 ]), $a([ 0, -1, -1 ]), $a([ 22, 21, 32 ]), $a([ 1, 28, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "44", 109, 18, 5, 10207, $a([ 6, 116, 22 ]), $a([ 3, 125, 24 ]), $a([ 0, -1, -1 ]), $a([ 11, 75, 32 ]), $a([ 1, 68, 30 ]), $a([ 0, -1, -1 ]), $a([ 13, 35, 28 ]), $a([ 6, 34, 32 ]), $a([ 1, 30, 30 ]), $a([ 23, 21, 32 ]), $a([ 1, 26, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "45", 111, 18, 5, 10623, $a([ 7, 105, 20 ]), $a([ 4, 95, 18 ]), $a([ 0, -1, -1 ]), $a([ 12, 67, 28 ]), $a([ 1, 63, 30 ]), $a([ 1, 62, 32 ]), $a([ 21, 31, 26 ]), $a([ 2, 33, 32 ]), $a([ 0, -1, -1 ]), $a([ 23, 21, 32 ]), $a([ 2, 24, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "46", 113, 19, 5, 11045, $a([ 10, 116, 22 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 12, 74, 32 ]), $a([ 1, 78, 30 ]), $a([ 0, -1, -1 ]), $a([ 18, 37, 32 ]), $a([ 1, 39, 30 ]), $a([ 1, 41, 28 ]), $a([ 25, 21, 32 ]), $a([ 1, 27, 28 ]), $a([ 0, -1, -1 ]) ]), $a([ "47", 115, 19, 5, 11477, $a([ 5, 126, 24 ]), $a([ 4, 115, 22 ]), $a([ 1, 114, 22 ]), $a([ 12, 67, 28 ]), $a([ 2, 66, 32 ]), $a([ 1, 68, 30 ]), $a([ 21, 35, 30 ]), $a([ 1, 39, 30 ]), $a([ 0, -1, -1 ]), $a([ 26, 21, 32 ]), $a([ 1, 28, 28 ]), $a([ 0, -1, -1 ]) ]), $a([ "48", 117, 19, 5, 11917, $a([ 9, 126, 24 ]), $a([ 1, 117, 22 ]), $a([ 0, -1, -1 ]), $a([ 13, 75, 32 ]), $a([ 1, 68, 30 ]), $a([ 0, -1, -1 ]), $a([ 20, 35, 30 ]), $a([ 3, 35, 28 ]), $a([ 0, -1, -1 ]), $a([ 27, 21, 32 ]), $a([ 1, 28, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "49", 119, 17, 6, 12111, $a([ 9, 126, 24 ]), $a([ 1, 137, 26 ]), $a([ 0, -1, -1 ]), $a([ 13, 71, 30 ]), $a([ 2, 68, 32 ]), $a([ 0, -1, -1 ]), $a([ 20, 37, 32 ]), $a([ 1, 39, 28 ]), $a([ 1, 38, 28 ]), $a([ 24, 20, 32 ]), $a([ 5, 25, 28 ]), $a([ 0, -1, -1 ]) ]), $a([ "50", 121, 17, 6, 12559, $a([ 8, 147, 28 ]), $a([ 1, 141, 28 ]), $a([ 0, -1, -1 ]), $a([ 10, 73, 32 ]), $a([ 4, 74, 30 ]), $a([ 1, 73, 30 ]), $a([ 16, 36, 32 ]), $a([ 6, 39, 30 ]), $a([ 1, 37, 30 ]), $a([ 27, 21, 32 ]), $a([ 3, 20, 26 ]), $a([ 0, -1, -1 ]) ]), $a([ "51", 123, 18, 6, 13025, $a([ 9, 137, 26 ]), $a([ 1, 135, 26 ]), $a([ 0, -1, -1 ]), $a([ 12, 70, 30 ]), $a([ 4, 75, 32 ]), $a([ 0, -1, -1 ]), $a([ 24, 35, 30 ]), $a([ 1, 40, 28 ]), $a([ 0, -1, -1 ]), $a([ 23, 20, 32 ]), $a([ 8, 24, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "52", 125, 18, 6, 13489, $a([ 14, 95, 18 ]), $a([ 1, 86, 18 ]), $a([ 0, -1, -1 ]), $a([ 13, 73, 32 ]), $a([ 3, 77, 30 ]), $a([ 0, -1, -1 ]), $a([ 24, 35, 30 ]), $a([ 2, 35, 28 ]), $a([ 0, -1, -1 ]), $a([ 26, 21, 32 ]), $a([ 5, 21, 30 ]), $a([ 1, 23, 30 ]) ]), $a([ "53", 127, 18, 6, 13961, $a([ 9, 147, 28 ]), $a([ 1, 142, 28 ]), $a([ 0, -1, -1 ]), $a([ 10, 73, 30 ]), $a([ 6, 70, 32 ]), $a([ 1, 71, 32 ]), $a([ 25, 35, 30 ]), $a([ 2, 34, 26 ]), $a([ 0, -1, -1 ]), $a([ 29, 21, 32 ]), $a([ 4, 22, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "54", 129, 18, 6, 14441, $a([ 11, 126, 24 ]), $a([ 1, 131, 24 ]), $a([ 0, -1, -1 ]), $a([ 16, 74, 32 ]), $a([ 1, 79, 30 ]), $a([ 0, -1, -1 ]), $a([ 25, 38, 32 ]), $a([ 1, 25, 30 ]), $a([ 0, -1, -1 ]), $a([ 33, 21, 32 ]), $a([ 1, 28, 28 ]), $a([ 0, -1, -1 ]) ]), $a([ "55", 131, 19, 6, 14939, $a([ 14, 105, 20 ]), $a([ 1, 99, 18 ]), $a([ 0, -1, -1 ]), $a([ 19, 65, 28 ]), $a([ 1, 72, 28 ]), $a([ 0, -1, -1 ]), $a([ 24, 37, 32 ]), $a([ 2, 40, 30 ]), $a([ 1, 41, 30 ]), $a([ 31, 21, 32 ]), $a([ 4, 24, 32 ]), $a([ 0, -1, -1 ]) ]), $a([ "56", 133, 19, 6, 15435, $a([ 10, 147, 28 ]), $a([ 1, 151, 28 ]), $a([ 0, -1, -1 ]), $a([ 15, 71, 30 ]), $a([ 3, 71, 32 ]), $a([ 1, 73, 32 ]), $a([ 24, 37, 32 ]), $a([ 3, 38, 30 ]), $a([ 1, 39, 30 ]), $a([ 36, 19, 30 ]), $a([ 3, 29, 26 ]), $a([ 0, -1, -1 ]) ]), $a([ "57", 135, 19, 6, 15939, $a([ 15, 105, 20 ]), $a([ 1, 99, 18 ]), $a([ 0, -1, -1 ]), $a([ 19, 70, 30 ]), $a([ 1, 64, 28 ]), $a([ 0, -1, -1 ]), $a([ 27, 38, 32 ]), $a([ 2, 25, 26 ]), $a([ 0, -1, -1 ]), $a([ 38, 20, 30 ]), $a([ 2, 18, 28 ]), $a([ 0, -1, -1 ]) ]), $a([ "58", 137, 17, 7, 16171, $a([ 14, 105, 20 ]), $a([ 1, 113, 22 ]), $a([ 1, 114, 22 ]), $a([ 17, 67, 30 ]), $a([ 3, 92, 32 ]), $a([ 0, -1, -1 ]), $a([ 30, 35, 30 ]), $a([ 1, 41, 30 ]), $a([ 0, -1, -1 ]), $a([ 36, 21, 32 ]), $a([ 1, 26, 30 ]), $a([ 1, 27, 30 ]) ]), $a([ "59", 139, 17, 7, 16691, $a([ 11, 146, 28 ]), $a([ 1, 146, 26 ]), $a([ 0, -1, -1 ]), $a([ 20, 70, 30 ]), $a([ 1, 60, 26 ]), $a([ 0, -1, -1 ]), $a([ 29, 38, 32 ]), $a([ 1, 24, 32 ]), $a([ 0, -1, -1 ]), $a([ 40, 20, 30 ]), $a([ 2, 17, 26 ]), $a([ 0, -1, -1 ]) ]), $a([ "60", 141, 18, 7, 17215, $a([ 3, 137, 26 ]), $a([ 1, 136, 26 ]), $a([ 10, 126, 24 ]), $a([ 22, 65, 28 ]), $a([ 1, 75, 30 ]), $a([ 0, -1, -1 ]), $a([ 30, 37, 32 ]), $a([ 1, 51, 30 ]), $a([ 0, -1, -1 ]), $a([ 42, 20, 30 ]), $a([ 1, 21, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "61", 143, 18, 7, 17751, $a([ 12, 126, 24 ]), $a([ 2, 118, 22 ]), $a([ 1, 116, 22 ]), $a([ 19, 74, 32 ]), $a([ 1, 74, 30 ]), $a([ 1, 72, 28 ]), $a([ 30, 38, 32 ]), $a([ 2, 29, 30 ]), $a([ 0, -1, -1 ]), $a([ 39, 20, 32 ]), $a([ 2, 37, 26 ]), $a([ 1, 38, 26 ]) ]), $a([ "62", 145, 18, 7, 18295, $a([ 12, 126, 24 ]), $a([ 3, 136, 26 ]), $a([ 0, -1, -1 ]), $a([ 21, 70, 30 ]), $a([ 2, 65, 28 ]), $a([ 0, -1, -1 ]), $a([ 34, 35, 30 ]), $a([ 1, 44, 32 ]), $a([ 0, -1, -1 ]), $a([ 42, 20, 30 ]), $a([ 2, 19, 28 ]), $a([ 2, 18, 28 ]) ]), $a([ "63", 147, 18, 7, 18847, $a([ 12, 126, 24 ]), $a([ 3, 117, 22 ]), $a([ 1, 116, 22 ]), $a([ 25, 61, 26 ]), $a([ 2, 62, 28 ]), $a([ 0, -1, -1 ]), $a([ 34, 35, 30 ]), $a([ 1, 40, 32 ]), $a([ 1, 41, 32 ]), $a([ 45, 20, 30 ]), $a([ 1, 20, 32 ]), $a([ 1, 21, 32 ]) ]), $a([ "64", 149, 19, 7, 19403, $a([ 15, 105, 20 ]), $a([ 2, 115, 22 ]), $a([ 2, 116, 22 ]), $a([ 25, 65, 28 ]), $a([ 1, 72, 28 ]), $a([ 0, -1, -1 ]), $a([ 18, 35, 30 ]), $a([ 17, 37, 32 ]), $a([ 1, 50, 32 ]), $a([ 42, 20, 30 ]), $a([ 6, 19, 28 ]), $a([ 1, 15, 28 ]) ]), $a([ "65", 151, 19, 7, 19971, $a([ 19, 105, 20 ]), $a([ 1, 101, 20 ]), $a([ 0, -1, -1 ]), $a([ 33, 51, 22 ]), $a([ 1, 65, 22 ]), $a([ 0, -1, -1 ]), $a([ 40, 33, 28 ]), $a([ 1, 28, 28 ]), $a([ 0, -1, -1 ]), $a([ 49, 20, 30 ]), $a([ 1, 18, 28 ]), $a([ 0, -1, -1 ]) ]), $a([ "66", 153, 17, 8, 20229, $a([ 18, 105, 20 ]), $a([ 2, 117, 22 ]), $a([ 0, -1, -1 ]), $a([ 26, 65, 28 ]), $a([ 1, 80, 30 ]), $a([ 0, -1, -1 ]), $a([ 35, 35, 30 ]), $a([ 3, 35, 28 ]), $a([ 1, 36, 28 ]), $a([ 52, 18, 28 ]), $a([ 2, 38, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "67", 155, 17, 8, 20805, $a([ 26, 84, 16 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 26, 70, 30 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 45, 31, 26 ]), $a([ 1, 9, 26 ]), $a([ 0, -1, -1 ]), $a([ 52, 20, 30 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]) ]), $a([ "68", 157, 17, 8, 21389, $a([ 16, 126, 24 ]), $a([ 1, 114, 22 ]), $a([ 1, 115, 22 ]), $a([ 23, 70, 30 ]), $a([ 3, 65, 28 ]), $a([ 1, 66, 28 ]), $a([ 40, 35, 30 ]), $a([ 1, 43, 30 ]), $a([ 0, -1, -1 ]), $a([ 46, 20, 30 ]), $a([ 7, 19, 28 ]), $a([ 1, 16, 28 ]) ]), $a([ "69", 159, 18, 8, 21993, $a([ 19, 116, 22 ]), $a([ 1, 105, 22 ]), $a([ 0, -1, -1 ]), $a([ 20, 70, 30 ]), $a([ 7, 66, 28 ]), $a([ 1, 63, 28 ]), $a([ 40, 35, 30 ]), $a([ 1, 42, 32 ]), $a([ 1, 43, 32 ]), $a([ 54, 20, 30 ]), $a([ 1, 19, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "70", 161, 18, 8, 22593, $a([ 17, 126, 24 ]), $a([ 2, 115, 22 ]), $a([ 0, -1, -1 ]), $a([ 24, 70, 30 ]), $a([ 4, 74, 32 ]), $a([ 0, -1, -1 ]), $a([ 48, 31, 26 ]), $a([ 2, 18, 26 ]), $a([ 0, -1, -1 ]), $a([ 54, 19, 28 ]), $a([ 6, 15, 26 ]), $a([ 1, 14, 26 ]) ]), $a([ "71", 163, 18, 8, 23201, $a([ 29, 84, 16 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 29, 70, 30 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 6, 34, 30 ]), $a([ 3, 36, 30 ]), $a([ 38, 33, 28 ]), $a([ 58, 20, 30 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]) ]), $a([ "72", 165, 18, 8, 23817, $a([ 16, 147, 28 ]), $a([ 1, 149, 28 ]), $a([ 0, -1, -1 ]), $a([ 31, 66, 28 ]), $a([ 1, 37, 26 ]), $a([ 0, -1, -1 ]), $a([ 48, 33, 28 ]), $a([ 1, 23, 26 ]), $a([ 0, -1, -1 ]), $a([ 53, 20, 30 ]), $a([ 6, 19, 28 ]), $a([ 1, 17, 28 ]) ]), $a([ "73", 167, 19, 8, 24453, $a([ 20, 115, 22 ]), $a([ 2, 134, 24 ]), $a([ 0, -1, -1 ]), $a([ 29, 66, 28 ]), $a([ 2, 56, 26 ]), $a([ 2, 57, 26 ]), $a([ 45, 36, 30 ]), $a([ 2, 15, 28 ]), $a([ 0, -1, -1 ]), $a([ 59, 20, 30 ]), $a([ 2, 21, 32 ]), $a([ 0, -1, -1 ]) ]), $a([ "74", 169, 19, 8, 25085, $a([ 17, 147, 28 ]), $a([ 1, 134, 26 ]), $a([ 0, -1, -1 ]), $a([ 26, 70, 30 ]), $a([ 5, 75, 32 ]), $a([ 0, -1, -1 ]), $a([ 47, 35, 30 ]), $a([ 1, 48, 32 ]), $a([ 0, -1, -1 ]), $a([ 64, 18, 28 ]), $a([ 2, 33, 30 ]), $a([ 1, 35, 30 ]) ]), $a([ "75", 171, 17, 9, 25373, $a([ 22, 115, 22 ]), $a([ 1, 133, 24 ]), $a([ 0, -1, -1 ]), $a([ 33, 65, 28 ]), $a([ 1, 74, 28 ]), $a([ 0, -1, -1 ]), $a([ 43, 36, 30 ]), $a([ 5, 27, 28 ]), $a([ 1, 30, 28 ]), $a([ 57, 20, 30 ]), $a([ 5, 21, 32 ]), $a([ 1, 24, 32 ]) ]), $a([ "76", 173, 17, 9, 26021, $a([ 18, 136, 26 ]), $a([ 2, 142, 26 ]), $a([ 0, -1, -1 ]), $a([ 33, 66, 28 ]), $a([ 2, 49, 26 ]), $a([ 0, -1, -1 ]), $a([ 48, 35, 30 ]), $a([ 2, 38, 28 ]), $a([ 0, -1, -1 ]), $a([ 64, 20, 30 ]), $a([ 1, 20, 32 ]), $a([ 0, -1, -1 ]) ]), $a([ "77", 175, 17, 9, 26677, $a([ 19, 126, 24 ]), $a([ 2, 135, 26 ]), $a([ 1, 136, 26 ]), $a([ 32, 66, 28 ]), $a([ 2, 55, 26 ]), $a([ 2, 56, 26 ]), $a([ 49, 36, 30 ]), $a([ 2, 18, 32 ]), $a([ 0, -1, -1 ]), $a([ 65, 18, 28 ]), $a([ 5, 27, 30 ]), $a([ 1, 29, 30 ]) ]), $a([ "78", 177, 18, 9, 27335, $a([ 20, 137, 26 ]), $a([ 1, 130, 26 ]), $a([ 0, -1, -1 ]), $a([ 30, 75, 32 ]), $a([ 2, 71, 32 ]), $a([ 0, -1, -1 ]), $a([ 46, 35, 30 ]), $a([ 6, 39, 32 ]), $a([ 0, -1, -1 ]), $a([ 3, 12, 30 ]), $a([ 70, 19, 28 ]), $a([ 0, -1, -1 ]) ]), $a([ "79", 179, 18, 9, 28007, $a([ 20, 147, 28 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 35, 70, 30 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 49, 35, 30 ]), $a([ 5, 35, 28 ]), $a([ 0, -1, -1 ]), $a([ 70, 20, 30 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]) ]), $a([ "80", 181, 18, 9, 28687, $a([ 21, 136, 26 ]), $a([ 1, 155, 28 ]), $a([ 0, -1, -1 ]), $a([ 34, 70, 30 ]), $a([ 1, 64, 28 ]), $a([ 1, 65, 28 ]), $a([ 54, 35, 30 ]), $a([ 1, 45, 30 ]), $a([ 0, -1, -1 ]), $a([ 68, 20, 30 ]), $a([ 3, 18, 28 ]), $a([ 1, 19, 28 ]) ]), $a([ "81", 183, 18, 9, 29375, $a([ 19, 126, 24 ]), $a([ 5, 115, 22 ]), $a([ 1, 114, 22 ]), $a([ 33, 70, 30 ]), $a([ 3, 65, 28 ]), $a([ 1, 64, 28 ]), $a([ 52, 35, 30 ]), $a([ 3, 41, 32 ]), $a([ 1, 40, 32 ]), $a([ 67, 20, 30 ]), $a([ 5, 21, 32 ]), $a([ 1, 24, 32 ]) ]), $a([ "82", 185, 18, 9, 30071, $a([ 2, 150, 28 ]), $a([ 21, 136, 26 ]), $a([ 0, -1, -1 ]), $a([ 32, 70, 30 ]), $a([ 6, 65, 28 ]), $a([ 0, -1, -1 ]), $a([ 52, 38, 32 ]), $a([ 2, 27, 32 ]), $a([ 0, -1, -1 ]), $a([ 73, 20, 30 ]), $a([ 2, 22, 32 ]), $a([ 0, -1, -1 ]) ]), $a([ "83", 187, 17, 10, 30387, $a([ 21, 126, 24 ]), $a([ 4, 136, 26 ]), $a([ 0, -1, -1 ]), $a([ 30, 74, 32 ]), $a([ 6, 73, 30 ]), $a([ 0, -1, -1 ]), $a([ 54, 35, 30 ]), $a([ 4, 40, 32 ]), $a([ 0, -1, -1 ]), $a([ 75, 20, 30 ]), $a([ 1, 20, 28 ]), $a([ 0, -1, -1 ]) ]), $a([ "84", 189, 17, 10, 31091, $a([ 30, 105, 20 ]), $a([ 1, 114, 22 ]), $a([ 0, -1, -1 ]), $a([ 3, 45, 22 ]), $a([ 55, 47, 20 ]), $a([ 0, -1, -1 ]), $a([ 2, 26, 26 ]), $a([ 62, 33, 28 ]), $a([ 0, -1, -1 ]), $a([ 79, 18, 28 ]), $a([ 4, 33, 30 ]), $a([ 0, -1, -1 ]) ]) ]); - $1.eclval = $get($1.eclevel, 1) - 49; - for (var _IM = 0; _IM <= 83; _IM += 1) { - $1.i = _IM; - $1.m = $get($1.metrics, $1.i); - $1.vers = $get($1.m, 0); - $1.size = $get($1.m, 1); - $1.alnk = $get($1.m, 2); - $1.alnn = $get($1.m, 3); - $1.alnr = $f($1.size - $1.alnk * $1.alnn); - $1.nmod = $get($1.m, 4); - $1.ncws = ~~($1.nmod / 8); - $1.rbit = $1.nmod % 8; - $1.ecbs = $geti($1.m, 5 + $1.eclval * 3, 3); - var _Ii = $1.ecbs; - $k[$j++] = "ecws"; - $k[$j++] = 0; - for (var _Ij = 0, _Ik = _Ii.length; _Ij < _Ik; _Ij++) { - var _Il = $get(_Ii, _Ij); - var _Io = $k[--$j]; - $k[$j++] = $f(_Io + $get(_Il, 0) * $get(_Il, 2)); - } - var _Ip = $k[--$j]; - $1[$k[--$j]] = _Ip; - $1.dcws = $f($1.ncws - $1.ecws); - $1.dmod = $1.dcws * 8; - $1.okay = true; - if ($ne($1.version, "unset") && $ne($1.version, $1.vers)) { - $1.okay = false; - } - if ($1.bits.length > $1.dmod) { - $1.okay = false; - } - if ($1.okay) { - break; - } - } - if (!$1.okay) { - $k[$j++] = "bwipp.hanxinNoValidSymbol"; - $k[$j++] = "No valid symbol available"; - $0.raiseerror(); - } - $1.version = $1.vers; - $1.msgbits = $1.bits; - $1.e1nb = $get($get($1.ecbs, 0), 0); - $1.e2nb = $get($get($1.ecbs, 1), 0); - $1.e3nb = $get($get($1.ecbs, 2), 0); - $1.e1dcws = $get($get($1.ecbs, 0), 1); - $1.e2dcws = $get($get($1.ecbs, 1), 1); - $1.e3dcws = $get($get($1.ecbs, 2), 1); - $1.e1ecws = $get($get($1.ecbs, 0), 2); - $1.e2ecws = $get($get($1.ecbs, 1), 2); - $1.e3ecws = $get($get($1.ecbs, 2), 2); - $1.pad = $s($1.dmod); - for (var _JY = 0, _JX = $1.pad.length - 1; _JY <= _JX; _JY += 1) { - $put($1.pad, _JY, 48); - } - $puti($1.pad, 0, $1.msgbits); - $1.cws = $a($1.dcws); - for (var _Jg = 0, _Jf = $1.cws.length - 1; _Jg <= _Jf; _Jg += 1) { - $1.c = _Jg; - $1.cwb = $geti($1.pad, $1.c * 8, 8); - $1.cw = 0; - for (var _Jk = 0; _Jk <= 7; _Jk += 1) { - $1.i = _Jk; - $1.cw = $f($1.cw + ~~Math.pow(2, 8 - $1.i - 1) * $f($get($1.cwb, $1.i) - 48)); - } - $put($1.cws, $1.c, $1.cw); - } - $1.rscodes = function() { - $1.rspm = $k[--$j]; - $1.rsgf = $k[--$j]; - $1.rsnc = $k[--$j]; - $1.rscws = $k[--$j]; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _Jy = 0, _Jz = $f($1.rsgf - 1); _Jy < _Jz; _Jy++) { - var _K0 = $k[--$j]; - var _K1 = _K0 * 2; - $k[$j++] = _K0; - $k[$j++] = _K1; - if (_K1 >= $1.rsgf) { - var _K4 = $k[--$j]; - $k[$j++] = $xo(_K4, $1.rspm); - } - } - $1.rsalog = $a(); - $1.rslog = $a($1.rsgf); - for (var _KA = 1, _K9 = $f($1.rsgf - 1); _KA <= _K9; _KA += 1) { - $put($1.rslog, $get($1.rsalog, _KA), _KA); - } - $1.rsprod = function() { - var _KE = $k[--$j]; - var _KF = $k[--$j]; - $k[$j++] = _KF; - $k[$j++] = _KE; - if (_KE != 0 && _KF != 0) { - var _KI = $get($1.rslog, $k[--$j]); - var _KO = $get($1.rsalog, $f(_KI + $get($1.rslog, $k[--$j])) % $f($1.rsgf - 1)); - $k[$j++] = _KO; - } else { - $j -= 2; - $k[$j++] = 0; - } - }; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _KQ = 0, _KR = $1.rsnc; _KQ < _KR; _KQ++) { - $k[$j++] = 0; - } - $1.coeffs = $a(); - for (var _KV = 1, _KU = $1.rsnc; _KV <= _KU; _KV += 1) { - $1.i = _KV; - $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); - for (var _Kc = $1.i - 1; _Kc >= 1; _Kc -= 1) { - $1.j = _Kc; - $k[$j++] = $1.coeffs; - $k[$j++] = $1.j; - $k[$j++] = $get($1.coeffs, $1.j - 1); - $k[$j++] = $get($1.coeffs, $1.j); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _Ko = $k[--$j]; - var _Kp = $k[--$j]; - var _Kq = $k[--$j]; - $put($k[--$j], _Kq, $xo(_Kp, _Ko)); - } - $k[$j++] = $1.coeffs; - $k[$j++] = 0; - $k[$j++] = $get($1.coeffs, 0); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _Ky = $k[--$j]; - var _Kz = $k[--$j]; - $put($k[--$j], _Kz, _Ky); - } - $1.nd = $1.rscws.length; - $k[$j++] = Infinity; - $forall($1.rscws); - for (var _L4 = 0, _L5 = $1.rsnc; _L4 < _L5; _L4++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.rscws = $a(); - for (var _L9 = 0, _L8 = $1.nd - 1; _L9 <= _L8; _L9 += 1) { - $1.k = $xo($get($1.rscws, _L9), $get($1.rscws, $1.nd)); - for (var _LH = 0, _LG = $f($1.rsnc - 1); _LH <= _LG; _LH += 1) { - $1.j = _LH; - $k[$j++] = $1.rscws; - $k[$j++] = $1.nd + $1.j; - $k[$j++] = $get($1.rscws, $1.nd + $1.j + 1); - $k[$j++] = $1.k; - $k[$j++] = $get($1.coeffs, $f($f($1.rsnc - $1.j) - 1)); - $1.rsprod(); - var _LU = $k[--$j]; - var _LV = $k[--$j]; - var _LW = $k[--$j]; - $put($k[--$j], _LW, $xo(_LV, _LU)); - } - } - $k[$j++] = $geti($1.rscws, 0, $1.rscws.length - 1); - }; - $1.dcwsb = $a($f($f($1.e1nb + $1.e2nb) + $1.e3nb)); - $1.ecwsb = $a($1.dcwsb.length); - $1.in = 0; - $1.out = 0; - for (var _Li = 0, _Lj = $1.e1nb; _Li < _Lj; _Li++) { - $k[$j++] = $geti($1.cws, $1.in, $1.e1dcws); - $k[$j++] = $1.e1ecws; - $k[$j++] = 256; - $k[$j++] = 355; - $1.rscodes(); - var _Lp = $k[--$j]; - $put($1.dcwsb, $1.out, $geti(_Lp, 0, $1.e1dcws)); - $put($1.ecwsb, $1.out, $geti(_Lp, $1.e1dcws, $1.e1ecws)); - $1.in = $f($1.in + $1.e1dcws); - $1.out = $1.out + 1; - } - for (var _M3 = 0, _M4 = $1.e2nb; _M3 < _M4; _M3++) { - $k[$j++] = $geti($1.cws, $1.in, $1.e2dcws); - $k[$j++] = $1.e2ecws; - $k[$j++] = 256; - $k[$j++] = 355; - $1.rscodes(); - var _MA = $k[--$j]; - $put($1.dcwsb, $1.out, $geti(_MA, 0, $1.e2dcws)); - $put($1.ecwsb, $1.out, $geti(_MA, $1.e2dcws, $1.e2ecws)); - $1.in = $f($1.in + $1.e2dcws); - $1.out = $1.out + 1; - } - for (var _MO = 0, _MP = $1.e3nb; _MO < _MP; _MO++) { - $k[$j++] = $geti($1.cws, $1.in, $1.e3dcws); - $k[$j++] = $1.e3ecws; - $k[$j++] = 256; - $k[$j++] = 355; - $1.rscodes(); - var _MV = $k[--$j]; - $put($1.dcwsb, $1.out, $geti(_MV, 0, $1.e3dcws)); - $put($1.ecwsb, $1.out, $geti(_MV, $1.e3dcws, $1.e3ecws)); - $1.in = $f($1.in + $1.e3dcws); - $1.out = $1.out + 1; - } - $1.cws = $a($1.ncws); - $1.cw = 0; - for (var _Mm = 0, _Ml = $1.dcwsb.length - 1; _Mm <= _Ml; _Mm += 1) { - $1.i = _Mm; - var _Mp = $get($1.dcwsb, $1.i); - $puti($1.cws, $1.cw, _Mp); - $1.cw = _Mp.length + $1.cw; - var _Mv = $get($1.ecwsb, $1.i); - $puti($1.cws, $1.cw, _Mv); - $1.cw = _Mv.length + $1.cw; - } - $k[$j++] = Infinity; - var _Mz = $1.ncws; - var _N0 = 12; - var _N1 = _Mz - 1; - if (_Mz - 1 > 12) { - var _ = _N0; - _N0 = _N1; - _N1 = _; - } - for (var _N3 = 0, _N2 = _N1; _N3 <= _N2; _N3 += 1) { - for (var _N6 = _N3, _N5 = $1.ncws - 1; _N6 <= _N5; _N6 += 13) { - $k[$j++] = _N6; - if (_N6 < $1.ncws) { - var _NA = $get($1.cws, $k[--$j]); - $k[$j++] = _NA; - } else { - $j--; - } - } - } - $1.cws = $a(); - if ($1.rbit > 0) { - $1.pad = $a($1.cws.length + 1); - $puti($1.pad, 0, $1.cws); - $put($1.pad, $1.pad.length - 1, 0); - $1.cws = $1.pad; - } - $k[$j++] = Infinity; - for (var _NM = 0, _NN = $1.size * $1.size; _NM < _NN; _NM++) { - $k[$j++] = -1; - } - $1.pixs = $a(); - $1.qmv = function() { - var _NQ = $k[--$j]; - var _NR = $k[--$j]; - $k[$j++] = $f(_NR + _NQ * $1.size); - }; - if ($1.alnn != 0) { - $1.trmv = function() { - var _NU = $k[--$j]; - var _NW = $k[--$j]; - $k[$j++] = $f($f($f(_NU * $1.size + $1.size) - 1) - _NW); - }; - $1.aplot = function() { - var _NX = $k[--$j]; - var _NY = $k[--$j]; - var _NZ = $k[--$j]; - $k[$j++] = _NX; - $k[$j++] = _NZ; - $k[$j++] = _NY; - $k[$j++] = _NX; - $k[$j++] = _NY; - $k[$j++] = _NZ; - $1.trmv(); - var _Nb = $k[--$j]; - $put($1.pixs, _Nb, $k[--$j]); - $1.trmv(); - var _Ne = $k[--$j]; - $put($1.pixs, _Ne, $k[--$j]); - }; - $1.i = 0; - $1.stag = 0; - for (;;) { - if ($1.i >= $1.size) { - break; - } - for (var _Nk = 0, _Nj = $f($1.size - 1); _Nk <= _Nj; _Nk += 1) { - $1.j = _Nk; - if ($f($1.j + $1.alnr) < $1.size) { - $k[$j++] = (~~($1.j / $1.alnk) + $1.stag) % 2 == 0 && !($1.i == 0 && $1.j < $1.alnk) || $1.j % $1.alnk == 0; - } else { - $k[$j++] = $f($1.alnn + $1.stag) % 2 == 0; - } - if ($k[--$j]) { - $k[$j++] = $1.j; - $k[$j++] = $1.i; - $k[$j++] = 1; - $1.aplot(); - var _O1 = $1.j; - var _O2 = $1.i; - $k[$j++] = _O1 + 1; - $k[$j++] = _O2 + 1; - if (_O2 + 1 < $1.size && _O1 + 1 < $1.size) { - $k[$j++] = 0; - $1.aplot(); - } else { - $j -= 2; - } - } - } - if ($f($1.i + $1.alnr) == $1.size) { - $1.i = $f($f($1.i + $1.alnr) - 1); - } else { - $1.i = $f($1.i + $1.alnk); - } - $1.stag = 1 - $1.stag; - } - for (var _OH = $1.alnk, _OI = $1.alnk, _OG = $f($1.size - 2); _OI < 0 ? _OH >= _OG : _OH <= _OG; _OH += _OI) { - $1.i = _OH; - if (~~($1.i / $1.alnk) % 2 != 0) { - $k[$j++] = $1.pixs; - $k[$j++] = 0; - $k[$j++] = $1.i - 1; - $1.trmv(); - var _ON = $k[--$j]; - $put($k[--$j], _ON, 0); - $k[$j++] = $1.pixs; - $k[$j++] = 0; - $k[$j++] = $1.i + 1; - $1.trmv(); - var _OR = $k[--$j]; - $put($k[--$j], _OR, 0); - $k[$j++] = $1.pixs; - $k[$j++] = 1; - $k[$j++] = $1.i - 1; - $1.trmv(); - var _OV = $k[--$j]; - $put($k[--$j], _OV, 0); - $k[$j++] = $1.pixs; - $k[$j++] = 1; - $k[$j++] = $1.i; - $1.trmv(); - var _OZ = $k[--$j]; - $put($k[--$j], _OZ, 0); - $k[$j++] = $1.pixs; - $k[$j++] = 1; - $k[$j++] = $1.i + 1; - $1.trmv(); - var _Od = $k[--$j]; - $put($k[--$j], _Od, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $1.i - 1; - $k[$j++] = 0; - $1.trmv(); - var _Oh = $k[--$j]; - $put($k[--$j], _Oh, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $1.i + 1; - $k[$j++] = 0; - $1.trmv(); - var _Ol = $k[--$j]; - $put($k[--$j], _Ol, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $1.i - 1; - $k[$j++] = 1; - $1.trmv(); - var _Op = $k[--$j]; - $put($k[--$j], _Op, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = 1; - $1.trmv(); - var _Ot = $k[--$j]; - $put($k[--$j], _Ot, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $1.i + 1; - $k[$j++] = 1; - $1.trmv(); - var _Ox = $k[--$j]; - $put($k[--$j], _Ox, 0); - } - $k[$j++] = $1.pixs; - $k[$j++] = $f($1.size - 1); - $k[$j++] = $1.i - 1; - $1.trmv(); - var _P2 = $k[--$j]; - if ($get($k[--$j], _P2) != 1) { - $k[$j++] = $1.pixs; - $k[$j++] = $f($1.size - 1); - $k[$j++] = $1.i - 1; - $1.trmv(); - var _P8 = $k[--$j]; - $put($k[--$j], _P8, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $f($1.size - 2); - $k[$j++] = $1.i - 1; - $1.trmv(); - var _PD = $k[--$j]; - $put($k[--$j], _PD, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $f($1.size - 2); - $k[$j++] = $1.i; - $1.trmv(); - var _PI = $k[--$j]; - $put($k[--$j], _PI, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $f($1.size - 2); - $k[$j++] = $1.i + 1; - $1.trmv(); - var _PN = $k[--$j]; - $put($k[--$j], _PN, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $f($1.size - 1); - $k[$j++] = $1.i + 1; - $1.trmv(); - var _PS = $k[--$j]; - $put($k[--$j], _PS, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $1.i - 1; - $k[$j++] = $f($1.size - 1); - $1.trmv(); - var _PX = $k[--$j]; - $put($k[--$j], _PX, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $1.i - 1; - $k[$j++] = $f($1.size - 2); - $1.trmv(); - var _Pc = $k[--$j]; - $put($k[--$j], _Pc, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = $f($1.size - 2); - $1.trmv(); - var _Ph = $k[--$j]; - $put($k[--$j], _Ph, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $1.i + 1; - $k[$j++] = $f($1.size - 2); - $1.trmv(); - var _Pm = $k[--$j]; - $put($k[--$j], _Pm, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $1.i + 1; - $k[$j++] = $f($1.size - 1); - $1.trmv(); - var _Pr = $k[--$j]; - $put($k[--$j], _Pr, 0); - } - } - } - $1.fpat = $a([ $a([ 1, 1, 1, 1, 1, 1, 1, 0 ]), $a([ 1, 0, 0, 0, 0, 0, 0, 0 ]), $a([ 1, 0, 1, 1, 1, 1, 1, 0 ]), $a([ 1, 0, 1, 0, 0, 0, 0, 0 ]), $a([ 1, 0, 1, 0, 1, 1, 1, 0 ]), $a([ 1, 0, 1, 0, 1, 1, 1, 0 ]), $a([ 1, 0, 1, 0, 1, 1, 1, 0 ]), $a([ 0, 0, 0, 0, 0, 0, 0, 0 ]) ]); - $1.fpat2 = $a([ $a([ 1, 1, 1, 0, 1, 0, 1, 0 ]), $a([ 1, 1, 1, 0, 1, 0, 1, 0 ]), $a([ 1, 1, 1, 0, 1, 0, 1, 0 ]), $a([ 0, 0, 0, 0, 1, 0, 1, 0 ]), $a([ 1, 1, 1, 1, 1, 0, 1, 0 ]), $a([ 0, 0, 0, 0, 0, 0, 1, 0 ]), $a([ 1, 1, 1, 1, 1, 1, 1, 0 ]), $a([ 0, 0, 0, 0, 0, 0, 0, 0 ]) ]); - for (var _QD = 0, _QC = $1.fpat.length - 1; _QD <= _QC; _QD += 1) { - $1.y = _QD; - for (var _QH = 0, _QG = $get($1.fpat, 0).length - 1; _QH <= _QG; _QH += 1) { - $1.x = _QH; - $1.fpb = $get($get($1.fpat, $1.y), $1.x); - $1.fpb2 = $get($get($1.fpat2, $1.y), $1.x); - $k[$j++] = $1.pixs; - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $1.qmv(); - var _QW = $k[--$j]; - $put($k[--$j], _QW, $1.fpb); - $k[$j++] = $1.pixs; - $k[$j++] = $f($f($1.size - $1.x) - 1); - $k[$j++] = $1.y; - $1.qmv(); - var _Qd = $k[--$j]; - $put($k[--$j], _Qd, $1.fpb); - $k[$j++] = $1.pixs; - $k[$j++] = $f($f($1.size - $1.x) - 1); - $k[$j++] = $f($f($1.size - $1.y) - 1); - $1.qmv(); - var _Ql = $k[--$j]; - $put($k[--$j], _Ql, $1.fpb); - $k[$j++] = $1.pixs; - $k[$j++] = $1.x; - $k[$j++] = $f($f($1.size - $1.y) - 1); - $1.qmv(); - var _Qs = $k[--$j]; - $put($k[--$j], _Qs, $1.fpb2); - } - } - $1.functionmap = $a([ $a([ $a([ 0, 8 ]), $a([ $f($1.size - 1), $f($1.size - 9) ]) ]), $a([ $a([ 1, 8 ]), $a([ $f($1.size - 2), $f($1.size - 9) ]) ]), $a([ $a([ 2, 8 ]), $a([ $f($1.size - 3), $f($1.size - 9) ]) ]), $a([ $a([ 3, 8 ]), $a([ $f($1.size - 4), $f($1.size - 9) ]) ]), $a([ $a([ 4, 8 ]), $a([ $f($1.size - 5), $f($1.size - 9) ]) ]), $a([ $a([ 5, 8 ]), $a([ $f($1.size - 6), $f($1.size - 9) ]) ]), $a([ $a([ 6, 8 ]), $a([ $f($1.size - 7), $f($1.size - 9) ]) ]), $a([ $a([ 7, 8 ]), $a([ $f($1.size - 8), $f($1.size - 9) ]) ]), $a([ $a([ 8, 8 ]), $a([ $f($1.size - 9), $f($1.size - 9) ]) ]), $a([ $a([ 8, 7 ]), $a([ $f($1.size - 9), $f($1.size - 8) ]) ]), $a([ $a([ 8, 6 ]), $a([ $f($1.size - 9), $f($1.size - 7) ]) ]), $a([ $a([ 8, 5 ]), $a([ $f($1.size - 9), $f($1.size - 6) ]) ]), $a([ $a([ 8, 4 ]), $a([ $f($1.size - 9), $f($1.size - 5) ]) ]), $a([ $a([ 8, 3 ]), $a([ $f($1.size - 9), $f($1.size - 4) ]) ]), $a([ $a([ 8, 2 ]), $a([ $f($1.size - 9), $f($1.size - 3) ]) ]), $a([ $a([ 8, 1 ]), $a([ $f($1.size - 9), $f($1.size - 2) ]) ]), $a([ $a([ 8, 0 ]), $a([ $f($1.size - 9), $f($1.size - 1) ]) ]), $a([ $a([ $f($1.size - 9), 0 ]), $a([ 8, $f($1.size - 1) ]) ]), $a([ $a([ $f($1.size - 9), 1 ]), $a([ 8, $f($1.size - 2) ]) ]), $a([ $a([ $f($1.size - 9), 2 ]), $a([ 8, $f($1.size - 3) ]) ]), $a([ $a([ $f($1.size - 9), 3 ]), $a([ 8, $f($1.size - 4) ]) ]), $a([ $a([ $f($1.size - 9), 4 ]), $a([ 8, $f($1.size - 5) ]) ]), $a([ $a([ $f($1.size - 9), 5 ]), $a([ 8, $f($1.size - 6) ]) ]), $a([ $a([ $f($1.size - 9), 6 ]), $a([ 8, $f($1.size - 7) ]) ]), $a([ $a([ $f($1.size - 9), 7 ]), $a([ 8, $f($1.size - 8) ]) ]), $a([ $a([ $f($1.size - 9), 8 ]), $a([ 8, $f($1.size - 9) ]) ]), $a([ $a([ $f($1.size - 8), 8 ]), $a([ 7, $f($1.size - 9) ]) ]), $a([ $a([ $f($1.size - 7), 8 ]), $a([ 6, $f($1.size - 9) ]) ]), $a([ $a([ $f($1.size - 6), 8 ]), $a([ 5, $f($1.size - 9) ]) ]), $a([ $a([ $f($1.size - 5), 8 ]), $a([ 4, $f($1.size - 9) ]) ]), $a([ $a([ $f($1.size - 4), 8 ]), $a([ 3, $f($1.size - 9) ]) ]), $a([ $a([ $f($1.size - 3), 8 ]), $a([ 2, $f($1.size - 9) ]) ]), $a([ $a([ $f($1.size - 2), 8 ]), $a([ 1, $f($1.size - 9) ]) ]), $a([ $a([ $f($1.size - 1), 8 ]), $a([ 0, $f($1.size - 9) ]) ]) ]); - var _Tf = $1.functionmap; - for (var _Tg = 0, _Th = _Tf.length; _Tg < _Th; _Tg++) { - $forall($get(_Tf, _Tg), function() { - $forall($k[--$j]); - $1.qmv(); - $put($1.pixs, $k[--$j], 0); - }); - } - var _Ts = $a([ function() { - $j -= 2; - $k[$j++] = 1; - }, function() { - var _Tm = $k[--$j]; - var _Tn = $k[--$j]; - $k[$j++] = $f(_Tn + _Tm) % 2; - }, function() { - var _To = $k[--$j]; - var _Tp = $k[--$j]; - $k[$j++] = $f($f(_To + _Tp) % 3 + _Tp % 3) % 2; - }, function() { - var _Tq = $k[--$j]; - var _Tr = $k[--$j]; - $k[$j++] = $f(_Tr % _Tq + $f(_Tq % _Tr + $f(_Tq % 3 + _Tr % 3))) % 2; - } ]); - $1.maskfuncs = _Ts; - if ($1.mask != -1) { - $1.maskfuncs = $a([ $get($1.maskfuncs, $1.mask - 1) ]); - $1.bestmaskval = $1.mask - 1; - } - $1.masks = $a($1.maskfuncs.length); - for (var _U3 = 0, _U2 = $1.masks.length - 1; _U3 <= _U2; _U3 += 1) { - $1.m = _U3; - $1.mask = $a($1.size * $1.size); - for (var _U9 = 0, _U8 = $f($1.size - 1); _U9 <= _U8; _U9 += 1) { - $1.j = _U9; - for (var _UC = 0, _UB = $f($1.size - 1); _UC <= _UB; _UC += 1) { - $1.i = _UC; - $k[$j++] = $1.i + 1; - $k[$j++] = $1.j + 1; - if ($get($1.maskfuncs, $1.m)() === true) { - break; - } - var _UI = $k[--$j]; - $k[$j++] = _UI == 0; - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.qmv(); - var _UM = $k[--$j]; - var _UO = $get($k[--$j], _UM); - var _UP = $k[--$j]; - var _UQ = _UP && _UO == -1 ? 1 : 0; - $k[$j++] = _UQ; - $k[$j++] = $1.mask; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.qmv(); - var _UU = $k[--$j]; - var _UV = $k[--$j]; - $put(_UV, _UU, $k[--$j]); - } - } - $put($1.masks, $1.m, $1.mask); - } - $1.posx = 0; - $1.posy = 0; - $1.num = 0; - for (;;) { - if ($1.posy == $1.size) { - break; - } - $k[$j++] = $1.pixs; - $k[$j++] = $1.posx; - $k[$j++] = $1.posy; - $1.qmv(); - var _Uf = $k[--$j]; - if ($get($k[--$j], _Uf) == -1) { - var _Uk = $get($1.cws, ~~($1.num / 8)); - var _Um = -(7 - $1.num % 8); - $k[$j++] = (_Um < 0 ? _Uk >>> -_Um : _Uk << _Um) & 1; - $k[$j++] = $1.pixs; - $k[$j++] = $1.posx; - $k[$j++] = $1.posy; - $1.qmv(); - var _Uq = $k[--$j]; - var _Ur = $k[--$j]; - $put(_Ur, _Uq, $k[--$j]); - $1.num = $1.num + 1; - } - $1.posx = $1.posx + 1; - if ($1.posx == $1.size) { - $1.posx = 0; - $1.posy = $1.posy + 1; - } - } - $1.evalfulln1n3 = function() { - $1.scrle = $k[--$j]; - $k[$j++] = "scr1"; - $k[$j++] = 0; - $forall($1.scrle, function() { - var _V0 = $k[--$j]; - $k[$j++] = _V0; - if (_V0 >= 3) { - var _V1 = $k[--$j]; - var _V3 = $f($k[--$j] + _V1 * 4); - $k[$j++] = _V3; - $k[$j++] = _V3; - } - $j--; - }); - var _V4 = $k[--$j]; - $1[$k[--$j]] = _V4; - $1.scr3 = 0; - for (var _V8 = 5, _V7 = $1.scrle.length - 1; _V8 <= _V7; _V8 += 2) { - $1.j = _V8; - if ($get($1.scrle, $1.j) % 3 == 0) { - $1.fact = ~~($get($1.scrle, $1.j) / 3); - var _VH = $geti($1.scrle, $1.j - 4, 4); - for (var _VI = 0, _VJ = _VH.length; _VI < _VJ; _VI++) { - $k[$j++] = $get(_VH, _VI) == $1.fact; - } - var _VM = $k[--$j]; - var _VN = $k[--$j]; - var _VO = $k[--$j]; - var _VP = $k[--$j]; - if (_VP && (_VO && (_VN && _VM))) { - if ($1.j == 5 || $1.j + 2 >= $1.scrle.length) { - $1.scr3 = $1.scr3 + 50; - } else { - if ($get($1.scrle, $1.j - 5) >= 3 || $get($1.scrle, $1.j + 1) >= 3) { - $1.scr3 = $1.scr3 + 50; - } - } - } - } - } - for (var _Vd = 1, _Vc = $1.scrle.length - 5; _Vd <= _Vc; _Vd += 2) { - $1.j = _Vd; - if ($get($1.scrle, $1.j) % 3 == 0) { - $1.fact = ~~($get($1.scrle, $1.j) / 3); - var _Vm = $geti($1.scrle, $1.j + 1, 4); - for (var _Vn = 0, _Vo = _Vm.length; _Vn < _Vo; _Vn++) { - $k[$j++] = $get(_Vm, _Vn) == $1.fact; - } - var _Vr = $k[--$j]; - var _Vs = $k[--$j]; - var _Vt = $k[--$j]; - var _Vu = $k[--$j]; - if (_Vu && (_Vt && (_Vs && _Vr))) { - if ($1.j == 1 || $1.j + 6 >= $1.scrle.length) { - $1.scr3 = $1.scr3 + 50; - } else { - if ($get($1.scrle, $1.j - 1) >= 3 || $get($1.scrle, $1.j + 5) >= 3) { - $1.scr3 = $1.scr3 + 50; - } - } - } - } - } - $k[$j++] = $1.scr1; - $k[$j++] = $1.scr3; - }; - $1.evalfull = function() { - $1.sym = $k[--$j]; - $1.n1 = 0; - $1.n3 = 0; - $1.rle = $a($f($1.size + 1)); - $1.lastpairs = $a($1.size); - $1.thispairs = $a($1.size); - $1.sizeadd1 = $f($1.size + 1); - for (var _WI = 0, _WH = $f($1.size - 1); _WI <= _WH; _WI += 1) { - $1.i = _WI; - $k[$j++] = Infinity; - var _WK = $1.size; - $k[$j++] = 0; - $k[$j++] = 0; - for (var _WM = $1.i, _WN = _WK, _WL = $f(_WK * _WK - 1); _WN < 0 ? _WM >= _WL : _WM <= _WL; _WM += _WN) { - var _WP = $get($1.sym, _WM); - var _WQ = $k[--$j]; - $k[$j++] = _WP; - if ($eq(_WQ, _WP)) { - var _WR = $k[--$j]; - var _WS = $k[--$j]; - $k[$j++] = $f(_WS + 1); - $k[$j++] = _WR; - } else { - var _WT = $k[--$j]; - $k[$j++] = 1; - $k[$j++] = _WT; - } - } - $j--; - var _WV = $counttomark() + 2; - $astore($geti($1.rle, 0, _WV - 2)); - $1.evalfulln1n3(); - $1.n3 = $f($k[--$j] + $1.n3); - $1.n1 = $f($k[--$j] + $1.n1); - $j--; - $1.symrow = $geti($1.sym, $1.i * $1.size, $1.size); - $k[$j++] = Infinity; - var _Wg = $1.symrow; - $k[$j++] = 0; - $k[$j++] = 0; - for (var _Wh = 0, _Wi = _Wg.length; _Wh < _Wi; _Wh++) { - var _Wj = $get(_Wg, _Wh); - var _Wk = $k[--$j]; - $k[$j++] = _Wj; - if ($eq(_Wk, _Wj)) { - var _Wl = $k[--$j]; - var _Wm = $k[--$j]; - $k[$j++] = $f(_Wm + 1); - $k[$j++] = _Wl; - } else { - var _Wn = $k[--$j]; - $k[$j++] = 1; - $k[$j++] = _Wn; - } - } - $j--; - var _Wp = $counttomark() + 2; - $astore($geti($1.rle, 0, _Wp - 2)); - $1.evalfulln1n3(); - $1.n3 = $f($k[--$j] + $1.n3); - $1.n1 = $f($k[--$j] + $1.n1); - $j--; - } - $k[$j++] = $f($1.n1 + $1.n3); - }; - $1.bestscore = 999999999; - for (var _Wz = 0, _Wy = $1.masks.length - 1; _Wz <= _Wy; _Wz += 1) { - $1.m = _Wz; - $1.masksym = $a($1.size * $1.size); - for (var _X6 = 0, _X5 = $f($1.size * $1.size - 1); _X6 <= _X5; _X6 += 1) { - $1.i = _X6; - $put($1.masksym, $1.i, $xo($get($1.pixs, $1.i), $get($get($1.masks, $1.m), $1.i))); - } - if ($1.masks.length != 1) { - $k[$j++] = $1.masksym; - $1.evalfull(); - $1.score = $k[--$j]; - if ($1.score < $1.bestscore) { - $1.bestsym = $1.masksym; - $1.bestmaskval = $1.m; - $1.bestscore = $1.score; - } - } else { - $1.bestsym = $1.masksym; - } - } - $1.pixs = $1.bestsym; - $1.funval = ((~~($f($1.size - 21) / 2) + 20) * 4 + $1.eclval) * 4 + $1.bestmaskval; - $k[$j++] = $a([ ($1.funval & 3840) >>> 8, ($1.funval & 240) >>> 4, $1.funval & 15 ]); - $k[$j++] = 4; - $k[$j++] = 16; - $k[$j++] = 19; - $1.rscodes(); - $1.funvals = $k[--$j]; - $k[$j++] = Infinity; - $forall($1.funvals, function() { - $k[$j++] = 4; - $1.tobin(); - $forall($k[--$j], function() { - var _Xb = $k[--$j]; - $k[$j++] = $f(_Xb - 48); - }); - }); - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $1.funbits = $a(); - for (var _Xf = 0, _Xe = $1.functionmap.length - 1; _Xf <= _Xe; _Xf += 1) { - $1.i = _Xf; - $forall($get($1.functionmap, $1.i), function() { - var _Xk = $k[--$j]; - $k[$j++] = $1.pixs; - $aload(_Xk); - $1.qmv(); - var _Xo = $k[--$j]; - $put($k[--$j], _Xo, $get($1.funbits, $1.i)); - }); - } - var _Xw = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", $1.size ], [ "pixy", $1.size ], [ "height", $1.size * 2 / 72 ], [ "width", $1.size * 2 / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _Xw; - if (!$1.dontdraw) { - $0.renmatrix(); - } - }; - $0.dotcode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.rows = -1; - $1.columns = -1; - $1.ratio = -1; - $1.parse = false; - $1.parsefnc = false; - $1.raw = false; - $1.fast = false; - $1.mask = -1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.rows = ~~$1.rows; - $1.columns = ~~$1.columns; - $1.ratio = +$1.ratio; - $1.mask = ~~$1.mask; - if ($1.ratio == -1 && $1.rows == -1 && $1.columns == -1) { - $1.ratio = 3 / 2; - } - $1.laa = -1; - $1.lab = -2; - $1.lac = -3; - $1.bin = -4; - $1.sfa = -5; - $1.sfb = -6; - $1.sb2 = -7; - $1.sb3 = -8; - $1.sb4 = -9; - $1.sb5 = -10; - $1.sb6 = -11; - $1.sfc = -12; - $1.sc2 = -13; - $1.sc3 = -14; - $1.sc4 = -15; - $1.sc5 = -16; - $1.sc6 = -17; - $1.sc7 = -18; - $1.bsa = -19; - $1.bsb = -20; - $1.tma = -21; - $1.tmb = -22; - $1.tmc = -23; - $1.tms = -24; - $1.fn1 = -25; - $1.fn2 = -26; - $1.fn3 = -27; - $1.crl = -28; - $1.aim = -29; - $1.m05 = -30; - $1.m06 = -31; - $1.m12 = -32; - $1.mac = -33; - var _G = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "eci", true ], [ "FNC1", $1.fn1 ], [ "FNC3", $1.fn3 ] ]); - $1.fncvals = _G; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _J = $k[--$j]; - $1[$k[--$j]] = _J; - $1.msglen = $1.msg.length; - var _M = $1.msg; - $k[$j++] = "numecis"; - $k[$j++] = 0; - for (var _N = 0, _O = _M.length; _N < _O; _N++) { - if ($get(_M, _N) <= -1e6) { - var _Q = $k[--$j]; - $k[$j++] = $f(_Q + 1); - } - } - var _R = $k[--$j]; - $1[$k[--$j]] = _R; - $1.msgtmp = $a($f($1.msg.length + $1.numecis * 6)); - $1.j = 0; - for (var _Y = 0, _X = $1.msg.length - 1; _Y <= _X; _Y += 1) { - var _a = $get($1.msg, _Y); - $k[$j++] = _a; - if (_a <= -1e6) { - var _e = $geti($cvrs($s(7), -$k[--$j], 10), 1, 6); - for (var _f = 0, _g = _e.length; _f < _g; _f++) { - $k[$j++] = $get(_e, _f); - } - $astore($a(6)); - $puti($1.msgtmp, $1.j + 1, $k[--$j]); - $put($1.msgtmp, $1.j, $1.fn2); - $1.j = $1.j + 7; - } else { - $put($1.msgtmp, $1.j, $k[--$j]); - $1.j = $1.j + 1; - } - } - $1.msg = $1.msgtmp; - $1.msglen = $1.msg.length; - $1.charmaps = $a([ $a([ 32, 32, "00" ]), $a([ "!", "!", "01" ]), $a([ '"', '"', "02" ]), $a([ "#", "#", "03" ]), $a([ "$", "$", "04" ]), $a([ "%", "%", "05" ]), $a([ "&", "&", "06" ]), $a([ "'", "'", "07" ]), $a([ 40, 40, "08" ]), $a([ 41, 41, "09" ]), $a([ "*", "*", "10" ]), $a([ "+", "+", "11" ]), $a([ ",", ",", "12" ]), $a([ "-", "-", "13" ]), $a([ ".", ".", "14" ]), $a([ "/", "/", "15" ]), $a([ "0", "0", "16" ]), $a([ "1", "1", "17" ]), $a([ "2", "2", "18" ]), $a([ "3", "3", "19" ]), $a([ "4", "4", "20" ]), $a([ "5", "5", "21" ]), $a([ "6", "6", "22" ]), $a([ "7", "7", "23" ]), $a([ "8", "8", "24" ]), $a([ "9", "9", "25" ]), $a([ ":", ":", "26" ]), $a([ ";", ";", "27" ]), $a([ "<", "<", "28" ]), $a([ "=", "=", "29" ]), $a([ ">", ">", "30" ]), $a([ "?", "?", "31" ]), $a([ "@", "@", "32" ]), $a([ "A", "A", "33" ]), $a([ "B", "B", "34" ]), $a([ "C", "C", "35" ]), $a([ "D", "D", "36" ]), $a([ "E", "E", "37" ]), $a([ "F", "F", "38" ]), $a([ "G", "G", "39" ]), $a([ "H", "H", "40" ]), $a([ "I", "I", "41" ]), $a([ "J", "J", "42" ]), $a([ "K", "K", "43" ]), $a([ "L", "L", "44" ]), $a([ "M", "M", "45" ]), $a([ "N", "N", "46" ]), $a([ "O", "O", "47" ]), $a([ "P", "P", "48" ]), $a([ "Q", "Q", "49" ]), $a([ "R", "R", "50" ]), $a([ "S", "S", "51" ]), $a([ "T", "T", "52" ]), $a([ "U", "U", "53" ]), $a([ "V", "V", "54" ]), $a([ "W", "W", "55" ]), $a([ "X", "X", "56" ]), $a([ "Y", "Y", "57" ]), $a([ "Z", "Z", "58" ]), $a([ "[", "[", "59" ]), $a([ 92, 92, "60" ]), $a([ "]", "]", "61" ]), $a([ "^", "^", "62" ]), $a([ "_", "_", "63" ]), $a([ 0, "`", "64" ]), $a([ 1, "a", "65" ]), $a([ 2, "b", "66" ]), $a([ 3, "c", "67" ]), $a([ 4, "d", "68" ]), $a([ 5, "e", "69" ]), $a([ 6, "f", "70" ]), $a([ 7, "g", "71" ]), $a([ 8, "h", "72" ]), $a([ 9, "i", "73" ]), $a([ 10, "j", "74" ]), $a([ 11, "k", "75" ]), $a([ 12, "l", "76" ]), $a([ 13, "m", "77" ]), $a([ 14, "n", "78" ]), $a([ 15, "o", "79" ]), $a([ 16, "p", "80" ]), $a([ 17, "q", "81" ]), $a([ 18, "r", "82" ]), $a([ 19, "s", "83" ]), $a([ 20, "t", "84" ]), $a([ 21, "u", "85" ]), $a([ 22, "v", "86" ]), $a([ 23, "w", "87" ]), $a([ 24, "x", "88" ]), $a([ 25, "y", "89" ]), $a([ 26, "z", "90" ]), $a([ 27, "{", "91" ]), $a([ 28, "|", "92" ]), $a([ 29, "}", "93" ]), $a([ 30, "~", "94" ]), $a([ 31, 127, "95" ]), $a([ $1.sfb, $1.crl, "96" ]), $a([ $1.sb2, 9, "97" ]), $a([ $1.sb3, 28, "98" ]), $a([ $1.sb4, 29, "99" ]), $a([ $1.sb5, 30, $1.aim ]), $a([ $1.sb6, $1.sfa, $1.laa ]), $a([ $1.lab, $1.laa, $1.sfb ]), $a([ $1.sc2, $1.sc2, $1.sb2 ]), $a([ $1.sc3, $1.sc3, $1.sb3 ]), $a([ $1.sc4, $1.sc4, $1.sb4 ]), $a([ $1.lac, $1.lac, $1.lab ]), $a([ $1.fn1, $1.fn1, $1.fn1 ]), $a([ $1.fn2, $1.fn2, $1.fn2 ]), $a([ $1.fn3, $1.fn3, $1.fn3 ]), $a([ $1.bsa, $1.bsa, $1.bsa ]), $a([ $1.bsb, $1.bsb, $1.bsb ]), $a([ $1.bin, $1.bin, $1.bin ]) ]); - $1.charvals = $a([ new Map(), new Map(), new Map() ]); - for (var _3W = 0, _3V = $1.charmaps.length - 1; _3W <= _3V; _3W += 1) { - $1.i = _3W; - $1.encs = $get($1.charmaps, $1.i); - for (var _3a = 0; _3a <= 2; _3a += 1) { - $1.j = _3a; - var _3d = $get($1.encs, $1.j); - $k[$j++] = _3d; - if ($eq($type(_3d), "stringtype")) { - var _3g = $get($k[--$j], 0); - $k[$j++] = _3g; - } - $put($get($1.charvals, $1.j), $k[--$j], $1.i); - } - } - $1.Avals = $get($1.charvals, 0); - $1.Bvals = $get($1.charvals, 1); - $put($1.Bvals, $1.m05, 97); - $put($1.Bvals, $1.m06, 98); - $put($1.Bvals, $1.m12, 99); - $put($1.Bvals, $1.mac, 100); - $1.Cvals = $get($1.charvals, 2); - $k[$j++] = Infinity; - var _4A = $a([ $1.sc2, $1.sc3, $1.sc4, $1.sc5, $1.sc6, $1.sc7, $1.tma, $1.tmb, $1.tmc, $1.tms ]); - $k[$j++] = 102; - for (var _4B = 0, _4C = _4A.length; _4B < _4C; _4B++) { - var _4F = $f($k[--$j] + 1); - $k[$j++] = $get(_4A, _4B); - $k[$j++] = _4F; - $k[$j++] = _4F; - } - $j--; - $1.BINvals = $d(); - $k[$j++] = Infinity; - for (var _4I = 0, _4J = $1.msglen + 1; _4I < _4J; _4I++) { - $k[$j++] = 0; - } - $1.nDigits = $a(); - $k[$j++] = Infinity; - for (var _4M = 0, _4N = $1.msglen + 1; _4M < _4N; _4M++) { - $k[$j++] = false; - } - $1.SeventeenTen = $a(); - $k[$j++] = Infinity; - for (var _4Q = 0, _4R = $1.msglen + 1; _4Q < _4R; _4Q++) { - $k[$j++] = false; - } - $1.ECI = $a(); - $k[$j++] = Infinity; - for (var _4U = 0, _4V = $1.msglen + 1; _4U < _4V; _4U++) { - $k[$j++] = false; - } - $1.DatumA = $a(); - $k[$j++] = Infinity; - for (var _4Y = 0, _4Z = $1.msglen + 1; _4Y < _4Z; _4Y++) { - $k[$j++] = false; - } - $1.DatumB = $a(); - $k[$j++] = Infinity; - for (var _4c = 0, _4d = $1.msglen + 1; _4c < _4d; _4c++) { - $k[$j++] = false; - } - $1.DatumC = $a(); - $k[$j++] = Infinity; - for (var _4g = 0, _4h = $1.msglen + 8; _4g < _4h; _4g++) { - $k[$j++] = false; - } - $1.Binary = $a(); - $k[$j++] = Infinity; - for (var _4k = 0, _4l = $1.msglen + 1; _4k < _4l; _4k++) { - $k[$j++] = 0; - } - $1.AheadC = $a(); - $k[$j++] = Infinity; - for (var _4o = 0, _4p = $1.msglen + 1; _4o < _4p; _4o++) { - $k[$j++] = 0; - } - $1.TryC = $a(); - $k[$j++] = Infinity; - for (var _4s = 0, _4t = $1.msglen + 1; _4s < _4t; _4s++) { - $k[$j++] = 0; - } - $1.AheadA = $a(); - $k[$j++] = Infinity; - for (var _4w = 0, _4x = $1.msglen + 1; _4w < _4x; _4w++) { - $k[$j++] = 0; - } - $1.AheadB = $a(); - $k[$j++] = Infinity; - for (var _50 = 0, _51 = $1.msglen + 1; _50 < _51; _50++) { - $k[$j++] = 0; - } - $1.UntilEndSeg = $a(); - for (var _54 = $1.msglen - 1; _54 >= 0; _54 -= 1) { - $1.i = _54; - $1.barchar = $get($1.msg, $1.i); - if ($1.barchar >= 48 && $1.barchar <= 57) { - $put($1.nDigits, $1.i, $f($get($1.nDigits, $1.i + 1) + 1)); - } - var _5H = $get($1.Avals, $1.barchar) !== undefined; - if (_5H) { - $put($1.DatumA, $1.i, true); - } - var _5M = $get($1.Bvals, $1.barchar) !== undefined; - if (_5M) { - $put($1.DatumB, $1.i, true); - } - $1.CRLF = false; - if ($1.barchar == 13 && $1.i < $1.msglen - 1) { - if ($get($1.msg, $1.i + 1) == 10) { - $1.CRLF = true; - } - } - if ($1.CRLF) { - $put($1.DatumB, $1.i, true); - } - if ($get($1.nDigits, $1.i) >= 2) { - $put($1.DatumC, $1.i, true); - } - if ($1.barchar < 0) { - $put($1.DatumC, $1.i, true); - } - if ($1.barchar >= 128) { - $put($1.Binary, $1.i, true); - } - if ($get($1.nDigits, $1.i) >= 10) { - $k[$j++] = Infinity; - $aload($geti($1.msg, $1.i, 10)); - for (var _5p = 0, _5q = 1; _5p < _5q; _5p++) { - if ($k[--$j] != 48) { - $k[$j++] = false; - break; - } - if ($k[--$j] != 49) { - $k[$j++] = false; - break; - } - $j -= 6; - if ($k[--$j] != 55) { - $k[$j++] = false; - break; - } - if ($k[--$j] != 49) { - $k[$j++] = false; - break; - } - $k[$j++] = true; - } - $put($1.SeventeenTen, $1.i, $k[--$j]); - $cleartomark(); - } - if ($get($1.nDigits, $1.i + 1) >= 6 && $get($1.msg, $1.i) == $1.fn2) { - $put($1.ECI, $1.i, true); - } - if ($1.barchar < 0 && $1.barchar != $1.fn3) { - $put($1.AheadC, $1.i, $f($get($1.AheadC, $1.i + 1) + 1)); - } else { - if ($get($1.nDigits, $1.i) <= 1) { - $put($1.AheadC, $1.i, 0); - } else { - $put($1.AheadC, $1.i, $f($get($1.AheadC, $1.i + 2) + 1)); - } - } - if ($get($1.nDigits, $1.i) > 0 && $gt($get($1.AheadC, $1.i), $get($1.AheadC, $1.i + 1))) { - $put($1.TryC, $1.i, $get($1.AheadC, $1.i)); - } - if ($get($1.DatumA, $1.i) && $get($1.TryC, $1.i) < 2 && $1.barchar != $1.fn3) { - $put($1.AheadA, $1.i, $f($get($1.AheadA, $1.i + 1) + 1)); - } - if ($get($1.DatumB, $1.i) && $get($1.TryC, $1.i) < 2 && $1.barchar != $1.fn3) { - $k[$j++] = $1.AheadB; - $k[$j++] = $1.i; - $k[$j++] = $1.AheadB; - $k[$j++] = $1.i + 1; - if ($1.CRLF) { - var _73 = $k[--$j]; - $k[$j++] = $f(_73 + 1); - } - var _74 = $k[--$j]; - var _76 = $get($k[--$j], _74); - var _77 = $k[--$j]; - $put($k[--$j], _77, $f(_76 + 1)); - } - if ($1.barchar != $1.fn3) { - $put($1.UntilEndSeg, $1.i, $f($get($1.UntilEndSeg, $1.i + 1) + 1)); - } - } - $1.A = 0; - $1.B = 1; - $1.C = 2; - $1.BIN = 3; - $1.addtocws = function() { - var _7G = $k[--$j]; - $puti($1.cws, $1.j, _7G); - $1.j = _7G.length + $1.j; - }; - $1.base259to103 = function() { - $1.in = $k[--$j]; - $1.inlen = $1.in.length; - $k[$j++] = Infinity; - for (var _7N = 0, _7O = 5 - $1.inlen; _7N < _7O; _7N++) { - $k[$j++] = 0; - } - $aload($1.in); - $1.in = $a(); - $1.out = $a(6); - $k[$j++] = Infinity; - $aload($geti($1.in, 0, 2)); - $1.msbs = $a(); - $k[$j++] = Infinity; - $aload($1.msbs); - var _7W = $k[--$j]; - var _7X = $k[--$j]; - $k[$j++] = $f(_7W + _7X * 259); - for (var _7Y = 0, _7Z = 2; _7Y < _7Z; _7Y++) { - var _7a = $k[--$j]; - $k[$j++] = _7a % 103; - $k[$j++] = ~~(_7a / 103); - } - $1.mscs = $a(); - $k[$j++] = Infinity; - $aload($geti($1.in, 2, 3)); - $1.lsbs = $a(); - $k[$j++] = Infinity; - $aload($1.lsbs); - var _7g = $k[--$j]; - var _7h = $k[--$j]; - var _7i = $k[--$j]; - $k[$j++] = $f($f(_7g + _7h * 259) + _7i * 67081); - for (var _7j = 0, _7k = 3; _7j < _7k; _7j++) { - var _7l = $k[--$j]; - $k[$j++] = _7l % 103; - $k[$j++] = ~~(_7l / 103); - } - $1.lscs = $a(); - var _7o = $get($1.lscs, 0); - var _7q = $get($1.mscs, 0); - $put($1.out, 5, $f(_7o + _7q * 42) % 103); - var _7t = $get($1.lscs, 1); - var _7v = $get($1.mscs, 0); - var _7x = $get($1.mscs, 1); - $put($1.out, 4, $f($f($f(~~($f(_7o + _7q * 42) / 103) + _7t) + _7v * 68) + _7x * 42) % 103); - var _80 = $get($1.lscs, 2); - var _82 = $get($1.mscs, 0); - var _84 = $get($1.mscs, 1); - var _86 = $get($1.mscs, 2); - $put($1.out, 3, $f($f($f($f(~~($f($f($f(~~($f(_7o + _7q * 42) / 103) + _7t) + _7v * 68) + _7x * 42) / 103) + _80) + _82 * 92) + _84 * 68) + _86 * 42) % 103); - var _89 = $get($1.lscs, 3); - var _8B = $get($1.mscs, 0); - var _8D = $get($1.mscs, 1); - var _8F = $get($1.mscs, 2); - $put($1.out, 2, $f($f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_7o + _7q * 42) / 103) + _7t) + _7v * 68) + _7x * 42) / 103) + _80) + _82 * 92) + _84 * 68) + _86 * 42) / 103) + _89) + _8B * 15) + _8D * 92) + _8F * 68) % 103); - var _8I = $get($1.mscs, 1); - var _8K = $get($1.mscs, 2); - $put($1.out, 1, $f($f(~~($f($f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_7o + _7q * 42) / 103) + _7t) + _7v * 68) + _7x * 42) / 103) + _80) + _82 * 92) + _84 * 68) + _86 * 42) / 103) + _89) + _8B * 15) + _8D * 92) + _8F * 68) / 103) + _8I * 15) + _8K * 92) % 103); - $put($1.out, 0, $f(~~($f($f(~~($f($f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_7o + _7q * 42) / 103) + _7t) + _7v * 68) + _7x * 42) / 103) + _80) + _82 * 92) + _84 * 68) + _86 * 42) / 103) + _89) + _8B * 15) + _8D * 92) + _8F * 68) / 103) + _8I * 15) + _8K * 92) / 103) + $get($1.mscs, 2) * 15) % 103); - $k[$j++] = $geti($1.out, 6 - $1.inlen - 1, $1.inlen + 1); - }; - $1.finaliseBIN = function() { - if ($1.bpos != 0) { - $k[$j++] = $geti($1.bvals, 0, $1.bpos); - $1.base259to103(); - $aload($k[--$j]); - $1.bpos = 0; - } - }; - $1.addtobin = function() { - $put($1.bvals, $1.bpos, $k[--$j]); - $1.bpos = $1.bpos + 1; - if ($1.bpos == 5) { - $1.finaliseBIN(); - } - }; - $1.ECIabc = function() { - var _8f = $geti($1.msg, $1.i + 1, 6); - $k[$j++] = 0; - for (var _8g = 0, _8h = _8f.length; _8g < _8h; _8g++) { - var _8j = $k[--$j]; - $k[$j++] = $f(_8j + $f($get(_8f, _8g) - 48)) * 10; - } - var _8l = ~~($k[--$j] / 10); - $k[$j++] = _8l; - if (_8l >= 40) { - var _8n = $f($k[--$j] - 40); - var _8o = _8n % 12769; - $k[$j++] = ~~(_8n / 12769) + 40; - $k[$j++] = ~~(_8o / 113); - $k[$j++] = _8o % 113; - } - }; - $1.ECIbin = function() { - $k[$j++] = Infinity; - var _8r = $geti($1.msg, $1.i + 1, 6); - $k[$j++] = 0; - for (var _8s = 0, _8t = _8r.length; _8s < _8t; _8s++) { - var _8v = $k[--$j]; - $k[$j++] = $f(_8v + $f($get(_8r, _8s) - 48)) * 10; - } - var _8x = ~~($k[--$j] / 10); - $k[$j++] = _8x; - if (_8x >= 65536) { - var _8y = $k[--$j]; - var _8z = _8y % 65536; - $k[$j++] = 258; - $k[$j++] = ~~(_8y / 65536); - $k[$j++] = ~~(_8z / 256); - $k[$j++] = _8z % 256; - } else { - var _90 = $k[--$j]; - $k[$j++] = _90; - if (_90 >= 256) { - var _91 = $k[--$j]; - $k[$j++] = 257; - $k[$j++] = ~~(_91 / 256); - $k[$j++] = _91 % 256; - } else { - var _92 = $k[--$j]; - $k[$j++] = 256; - $k[$j++] = _92; - } - } - var _93 = $a(); - for (var _94 = 0, _95 = _93.length; _94 < _95; _94++) { - $k[$j++] = $get(_93, _94); - $1.addtobin(); - } - }; - $1.encC = function() { - for (var _97 = 0, _98 = 1; _97 < _98; _97++) { - if ($1.i == $1.segstart) { - for (var _9B = 0, _9C = 1; _9B < _9C; _9B++) { - if ($1.i > $f($1.segend - 7)) { - $k[$j++] = 0; - break; - } - if ($get($1.msg, $1.segstart) != 91) { - $k[$j++] = 0; - break; - } - if ($get($1.msg, $1.segstart + 1) != 41) { - $k[$j++] = 0; - break; - } - if ($get($1.msg, $1.segstart + 2) != 62) { - $k[$j++] = 0; - break; - } - if ($get($1.msg, $1.segstart + 3) != 30) { - $k[$j++] = 0; - break; - } - var _9T = $get($1.msg, $1.segstart + 4); - if (_9T < 48 || _9T > 57) { - $k[$j++] = 0; - break; - } - var _9W = $get($1.msg, $1.segstart + 5); - if (_9W < 48 || _9W > 57) { - $k[$j++] = 0; - break; - } - if ($get($1.msg, $f($1.segend - 1)) != 4) { - $k[$j++] = 0; - break; - } - var _9g = $f($f($get($1.msg, $1.segstart + 4) - 48) * 10 + $f($get($1.msg, $1.segstart + 5) - 48)); - $k[$j++] = _9g; - if (_9g != 5 && (_9g != 6 && _9g != 12)) { - $j--; - $k[$j++] = $1.mac; - break; - } - if ($get($1.msg, $1.segstart + 6) != 29) { - $j--; - $k[$j++] = 0; - break; - } - if ($get($1.msg, $f($1.segend - 2)) != 30) { - $j--; - $k[$j++] = 0; - break; - } - var _9o = $k[--$j]; - $k[$j++] = _9o; - if (_9o == 5) { - $j--; - $k[$j++] = $1.m05; - break; - } - if ($k[--$j] == 6) { - $k[$j++] = $1.m06; - break; - } - $k[$j++] = $1.m12; - break; - } - $1.inmac = $k[--$j]; - if ($1.inmac != 0) { - $1.mode = $1.B; - $k[$j++] = $a([ $get($1.Bvals, $1.inmac) ]); - $1.addtocws(); - var _A3 = $1.inmac != $1.mac ? 7 : 6; - $1.i = $1.i + _A3; - break; - } - } - if ($1.i == $1.segstart) { - if ($get($1.nDigits, $1.i) >= 2) { - $k[$j++] = $a([ $get($1.Cvals, $1.fn1) ]); - $1.addtocws(); - } - if ($get($1.msg, $1.i) == $1.fn1 && $get($1.nDigits, $1.i + 1) >= 2) { - $1.i = $1.i + 1; - } - } - if ($get($1.SeventeenTen, $1.i)) { - $k[$j++] = $a([ $get($1.Cvals, $1.aim), $f($f($get($1.msg, $1.i + 2) - 48) * 10 + $f($get($1.msg, $1.i + 3) - 48)), $f($f($get($1.msg, $1.i + 4) - 48) * 10 + $f($get($1.msg, $1.i + 5) - 48)), $f($f($get($1.msg, $1.i + 6) - 48) * 10 + $f($get($1.msg, $1.i + 7) - 48)) ]); - $1.addtocws(); - $1.i = $1.i + 10; - break; - } - if ($get($1.DatumC, $1.i)) { - var _Aq = $get($1.msg, $1.i); - if (_Aq == $1.fn1 || (_Aq == $1.fn2 || _Aq == $1.fn3)) { - $k[$j++] = $a([ $get($1.Cvals, $get($1.msg, $1.i)) ]); - $1.addtocws(); - if ($get($1.ECI, $1.i)) { - $k[$j++] = Infinity; - $1.ECIabc(); - var _B3 = $a(); - $k[$j++] = _B3; - $1.addtocws(); - $1.i = $1.i + 7; - break; - } - if ($get($1.msg, $1.i) == $1.fn3 && $1.segstart != $1.i) { - $1.i = $1.i + 1; - $1.inmac = 0; - $1.segstart = $1.i; - $1.segend = $f($1.i + $get($1.UntilEndSeg, $1.i)); - break; - } - $1.i = $1.i + 1; - break; - } - $k[$j++] = $a([ $f($f($get($1.msg, $1.i) - 48) * 10 + $f($get($1.msg, $1.i + 1) - 48)) ]); - $1.addtocws(); - $1.i = $1.i + 2; - break; - } - if ($get($1.Binary, $1.i)) { - if ($get($1.nDigits, $1.i + 1) > 0) { - if ($get($1.msg, $1.i) < 160) { - $k[$j++] = $a([ $get($1.Cvals, $1.bsa), $get($1.Avals, $f($get($1.msg, $1.i) - 128)) ]); - $1.addtocws(); - } else { - $k[$j++] = $a([ $get($1.Cvals, $1.bsb), $get($1.Bvals, $f($get($1.msg, $1.i) - 128)) ]); - $1.addtocws(); - } - $1.i = $1.i + 1; - break; - } - $k[$j++] = $a([ $get($1.Cvals, $1.bin) ]); - $1.addtocws(); - $1.mode = $1.BIN; - break; - } - $1.m = $get($1.AheadA, $1.i); - $1.n = $get($1.AheadB, $1.i); - if ($gt($1.m, $1.n)) { - $k[$j++] = $a([ $get($1.Cvals, $1.laa) ]); - $1.addtocws(); - $1.mode = $1.A; - break; - } - if ($1.i == $1.segstart) { - var _CE = $get($1.msg, $1.i); - if (_CE == 9 || (_CE == 28 || (_CE == 29 || _CE == 30))) { - $k[$j++] = $a([ $get($1.Cvals, $1.laa) ]); - $1.addtocws(); - $1.mode = $1.A; - break; - } - } - if ($1.n > 4) { - $k[$j++] = $a([ $get($1.Cvals, $1.lab) ]); - $1.addtocws(); - $1.mode = $1.B; - break; - } - $k[$j++] = $a([ $get($1.Cvals, $get($a([ $1.sfb, $1.sb2, $1.sb3, $1.sb4 ]), $f($1.n - 1))) ]); - $1.addtocws(); - for (var _Cb = 0, _Cc = $1.n; _Cb < _Cc; _Cb++) { - $k[$j++] = $a([ $get($1.Bvals, $get($1.msg, $1.i)) ]); - $1.addtocws(); - $1.i = $1.i + 1; - } - break; - } - }; - $1.encB = function() { - for (var _Ck = 0, _Cl = 1; _Ck < _Cl; _Ck++) { - $1.n = $get($1.TryC, $1.i); - if ($1.n >= 2) { - if ($1.n > 4) { - $k[$j++] = $a([ $get($1.Bvals, $1.lac) ]); - $1.addtocws(); - $1.mode = $1.C; - break; - } - $k[$j++] = $a([ $get($1.Bvals, $get($a([ $1.sfc, $1.sc2, $1.sc3, $1.sc4 ]), $f($1.n - 1))) ]); - $1.addtocws(); - for (var _D7 = 0, _D8 = $1.n; _D7 < _D8; _D7++) { - if ($get($1.msg, $1.i) < 0) { - $k[$j++] = $a([ $get($1.Cvals, $get($1.msg, $1.i)) ]); - $1.addtocws(); - $1.i = $1.i + 1; - } else { - $k[$j++] = $a([ $f($f($get($1.msg, $1.i) - 48) * 10 + $f($get($1.msg, $1.i + 1) - 48)) ]); - $1.addtocws(); - $1.i = $1.i + 2; - } - } - break; - } - if ($get($1.DatumB, $1.i)) { - var _DW = $get($1.msg, $1.i); - if (_DW == $1.fn1 || (_DW == $1.fn2 || _DW == $1.fn3)) { - $k[$j++] = $a([ $get($1.Bvals, $get($1.msg, $1.i)) ]); - $1.addtocws(); - if ($get($1.ECI, $1.i)) { - $k[$j++] = Infinity; - $1.ECIabc(); - var _Dj = $a(); - $k[$j++] = _Dj; - $1.addtocws(); - $1.i = $1.i + 7; - break; - } - if ($get($1.msg, $1.i) == $1.fn3 && $1.i != $1.segstart) { - $1.i = $1.i + 1; - $1.mode = $1.C; - $1.inmac = 0; - $1.segstart = $1.i; - $1.segend = $f($1.i + $get($1.UntilEndSeg, $1.i)); - break; - } - $1.i = $1.i + 1; - break; - } - if ($get($1.msg, $1.i) == 13 && $1.i < $1.msglen - 1) { - if ($get($1.msg, $1.i + 1) == 10) { - $k[$j++] = $a([ $get($1.Bvals, $1.crl) ]); - $1.addtocws(); - $1.i = $1.i + 2; - break; - } - } - $k[$j++] = $a([ $get($1.Bvals, $get($1.msg, $1.i)) ]); - $1.addtocws(); - $1.i = $1.i + 1; - break; - } - if ($get($1.Binary, $1.i)) { - if ($get($1.DatumB, $1.i + 1)) { - if ($get($1.msg, $1.i) < 160) { - $k[$j++] = $a([ $get($1.Bvals, $1.bsa), $get($1.Avals, $f($get($1.msg, $1.i) - 128)) ]); - $1.addtocws(); - } else { - $k[$j++] = $a([ $get($1.Bvals, $1.bsb), $get($1.Bvals, $f($get($1.msg, $1.i) - 128)) ]); - $1.addtocws(); - } - $1.i = $1.i + 1; - break; - } - $k[$j++] = $a([ $get($1.Bvals, $1.bin) ]); - $1.addtocws(); - $1.mode = $1.BIN; - break; - } - if ($get($1.AheadA, $1.i) == 1) { - $k[$j++] = $a([ $get($1.Bvals, $1.sfa), $get($1.Avals, $get($1.msg, $1.i)) ]); - $1.addtocws(); - $1.i = $1.i + 1; - break; - } - $k[$j++] = $a([ $get($1.Bvals, $1.laa) ]); - $1.addtocws(); - $1.mode = $1.A; - break; - } - }; - $1.encA = function() { - for (var _F8 = 0, _F9 = 1; _F8 < _F9; _F8++) { - $1.n = $get($1.TryC, $1.i); - if ($1.n >= 2) { - if ($1.n > 4) { - $k[$j++] = $a([ $get($1.Avals, $1.lac) ]); - $1.addtocws(); - $1.mode = $1.C; - break; - } - $k[$j++] = $a([ $get($1.Avals, $get($a([ $1.sfc, $1.sc2, $1.sc3, $1.sc4 ]), $f($1.n - 1))) ]); - $1.addtocws(); - for (var _FV = 0, _FW = $1.n; _FV < _FW; _FV++) { - if ($get($1.msg, $1.i) < 0) { - $k[$j++] = $a([ $get($1.Cvals, $get($1.msg, $1.i)) ]); - $1.addtocws(); - $1.i = $1.i + 1; - } else { - $k[$j++] = $a([ $f($f($get($1.msg, $1.i) - 48) * 10 + $f($get($1.msg, $1.i + 1) - 48)) ]); - $1.addtocws(); - $1.i = $1.i + 2; - } - } - break; - } - if ($get($1.DatumA, $1.i)) { - var _Fu = $get($1.msg, $1.i); - if (_Fu == $1.fn1 || (_Fu == $1.fn2 || _Fu == $1.fn3)) { - $k[$j++] = $a([ $get($1.Avals, $get($1.msg, $1.i)) ]); - $1.addtocws(); - if ($get($1.ECI, $1.i)) { - $k[$j++] = Infinity; - $1.ECIabc(); - var _G7 = $a(); - $k[$j++] = _G7; - $1.addtocws(); - $1.i = $1.i + 7; - break; - } - if ($get($1.msg, $1.i) == $1.fn3 && $1.i != $1.segstart) { - $1.i = $1.i + 1; - $1.mode = $1.C; - $1.inmac = 0; - $1.segstart = $1.i; - $1.segend = $f($1.i + $get($1.UntilEndSeg, $1.i)); - break; - } - $1.i = $1.i + 1; - break; - } - $k[$j++] = $a([ $get($1.Avals, $get($1.msg, $1.i)) ]); - $1.addtocws(); - $1.i = $1.i + 1; - break; - } - if ($get($1.Binary, $1.i)) { - if ($get($1.DatumA, $1.i + 1)) { - if ($get($1.msg, $1.i) < 160) { - $k[$j++] = $a([ $get($1.Avals, $1.bsa), $get($1.Avals, $f($get($1.msg, $1.i) - 128)) ]); - $1.addtocws(); - } else { - $k[$j++] = $a([ $get($1.Avals, $1.bsb), $get($1.Bvals, $f($get($1.msg, $1.i) - 128)) ]); - $1.addtocws(); - } - $1.i = $1.i + 1; - break; - } - $k[$j++] = $a([ $get($1.Avals, $1.bin) ]); - $1.addtocws(); - $1.mode = $1.BIN; - break; - } - $1.n = $get($1.AheadB, $1.i); - if ($1.n > 6) { - $k[$j++] = $a([ $get($1.Avals, $1.lab) ]); - $1.addtocws(); - $1.mode = $1.B; - break; - } - $k[$j++] = $a([ $get($1.Avals, $get($a([ $1.sfb, $1.sb2, $1.sb3, $1.sb4, $1.sb5, $1.sb6 ]), $f($1.n - 1))) ]); - $1.addtocws(); - for (var _HN = 0, _HO = $1.n; _HN < _HO; _HN++) { - $k[$j++] = $a([ $get($1.Bvals, $get($1.msg, $1.i)) ]); - $1.addtocws(); - $1.i = $1.i + 1; - } - break; - } - }; - $1.encBIN = function() { - for (var _HW = 0, _HX = 1; _HW < _HX; _HW++) { - $1.n = $get($1.TryC, $1.i); - if ($1.n >= 2) { - $k[$j++] = Infinity; - $1.finaliseBIN(); - var _Hc = $a(); - $k[$j++] = _Hc; - $1.addtocws(); - if ($1.n > 7) { - var _Hi = $k[--$j]; - $1.mode = $1.C; - $k[$j++] = $f(_Hi + $a([ $get($1.BINvals, $1.tmc) ])); - break; - } - $k[$j++] = $a([ $get($1.BINvals, $get($a([ $1.sc2, $1.sc3, $1.sc4, $1.sc5, $1.sc6, $1.sc7 ]), $f($1.n - 2))) ]); - $1.addtocws(); - for (var _Hx = 0, _Hy = $1.n; _Hx < _Hy; _Hx++) { - if ($get($1.msg, $1.i) < 0) { - $k[$j++] = $a([ $get($1.Cvals, $get($1.msg, $1.i)) ]); - $1.addtocws(); - $1.i = $1.i + 1; - } else { - $k[$j++] = $a([ $f($f($get($1.msg, $1.i) - 48) * 10 + $f($get($1.msg, $1.i + 1) - 48)) ]); - $1.addtocws(); - $1.i = $1.i + 2; - } - } - break; - } - if ($get($1.ECI, $1.i) && $get($1.Binary, $1.i + 7)) { - $k[$j++] = Infinity; - $1.ECIbin(); - var _IN = $a(); - $k[$j++] = _IN; - $1.addtocws(); - $1.i = $1.i + 7; - if ($1.i == $1.msglen) { - $k[$j++] = Infinity; - $1.finaliseBIN(); - var _IR = $a(); - $k[$j++] = _IR; - $1.addtocws(); - } - break; - } - if ($get($1.msg, $1.i) >= 0) { - if ($get($1.Binary, $1.i) || $get($1.Binary, $1.i + 1) || $get($1.Binary, $1.i + 2) || $get($1.Binary, $1.i + 3) || $get($1.ECI, $1.i + 1) && $get($1.Binary, $1.i + 8)) { - $k[$j++] = Infinity; - $k[$j++] = $get($1.msg, $1.i); - $1.addtobin(); - var _Iq = $a(); - $k[$j++] = _Iq; - $1.addtocws(); - $1.i = $1.i + 1; - if ($1.i == $1.msglen) { - $k[$j++] = Infinity; - $1.finaliseBIN(); - var _Iu = $a(); - $k[$j++] = _Iu; - $1.addtocws(); - } - break; - } - } - $k[$j++] = Infinity; - $1.finaliseBIN(); - var _Iv = $a(); - $k[$j++] = _Iv; - $1.addtocws(); - if ($1.i != $1.msglen - 1) { - if ($get($1.msg, $1.i) == $1.fn3 && $1.i != $1.segstart) { - $k[$j++] = $a([ $get($1.BINvals, $1.tms) ]); - $1.addtocws(); - $1.i = $1.i + 1; - $1.mode = $1.C; - $1.inmac = 0; - $1.segstart = $1.i; - $1.segend = $f($1.i + $get($1.UntilEndSeg, $1.i)); - break; - } - if ($gt($get($1.AheadA, $1.i), $get($1.AheadB, $1.i))) { - $k[$j++] = $a([ $get($1.BINvals, $1.tma) ]); - $1.addtocws(); - $1.mode = $1.A; - } else { - $k[$j++] = $a([ $get($1.BINvals, $1.tmb) ]); - $1.addtocws(); - $1.mode = $1.B; - } - break; - } - break; - } - }; - $1.cws = $a($1.msglen * 2 + 1); - $1.mode = $1.C; - $1.bvals = $a(5); - $1.bpos = 0; - $1.inmac = 0; - $1.segstart = 0; - $1.segend = $get($1.UntilEndSeg, 0); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i >= $1.msglen) { - break; - } - if ($1.inmac != 0) { - if ($1.inmac != $1.mac && $1.i == $f($1.segend - 2)) { - $1.i = $1.i + 2; - if ($1.i >= $1.msglen) { - break; - } - } - if ($1.inmac == $1.mac && $1.i == $f($1.segend - 1)) { - $1.i = $1.i + 1; - if ($1.i >= $1.msglen) { - break; - } - } - } - if ($1[$get($a([ "encA", "encB", "encC", "encBIN" ]), $1.mode)]() === true) { - break; - } - } - $1.cws = $geti($1.cws, 0, $1.j); - $1.nd = $1.cws.length; - $1.minarea = (($1.nd + 3 + ~~($1.nd / 2)) * 9 + 2) * 2; - if ($1.ratio != -1) { - $1.hgt = Math.sqrt($1.minarea / $1.ratio); - $1.wid = Math.sqrt($1.minarea * $1.ratio); - $1.h = ~~$1.hgt; - $1.w = ~~$1.wid; - if (($1.h + $1.w) % 2 == 1) { - if ($1.h * $1.w < $1.minarea) { - $1.h = $1.h + 1; - $1.w = $1.w + 1; - } - } else { - if ($1.hgt * $1.w < $1.wid * $1.h) { - $1.w = $1.w + 1; - if ($1.h * $1.w < $1.minarea) { - $1.w = $1.w - 1; - $1.h = $1.h + 1; - if ($1.h * $1.w < $1.minarea) { - $1.w = $1.w + 2; - } - } - } else { - $1.h = $1.h + 1; - if ($1.h * $1.w < $1.minarea) { - $1.h = $1.h - 1; - $1.w = $1.w + 1; - if ($1.h * $1.w < $1.minarea) { - $1.h = $1.h + 2; - } - } - } - } - $1.rows = $1.h; - $1.columns = $1.w; - } else { - if ($1.columns == -1) { - var _Kk = ~~(($1.minarea + $1.rows - 1) / $1.rows); - $k[$j++] = "columns"; - $k[$j++] = _Kk; - if ((_Kk + $1.rows) % 2 == 0) { - var _Km = $k[--$j]; - $k[$j++] = $f(_Km + 1); - } - var _Kn = $k[--$j]; - $1[$k[--$j]] = _Kn; - } - if ($1.rows == -1) { - var _Kt = ~~(($1.minarea + $1.columns - 1) / $1.columns); - $k[$j++] = "rows"; - $k[$j++] = _Kt; - if ((_Kt + $1.columns) % 2 == 0) { - var _Kv = $k[--$j]; - $k[$j++] = $f(_Kv + 1); - } - var _Kw = $k[--$j]; - $1[$k[--$j]] = _Kw; - } - } - $1.ndots = ~~($1.rows * $1.columns / 2); - for (;;) { - var _L1 = $1.nd + 1; - if ((_L1 + (~~(_L1 / 2) + 3)) * 9 + 2 > $1.ndots) { - break; - } - $1.nd = $1.nd + 1; - } - $1.nc = ~~($1.nd / 2) + 3; - $1.nw = $1.nd + $1.nc; - $1.rembits = $1.ndots - ($1.nw * 9 + 2); - if ($1.nd > $1.cws.length) { - $k[$j++] = Infinity; - $aload($1.cws); - var _LE = $1.mode == $1.BIN ? 109 : 106; - $k[$j++] = _LE; - for (var _LH = 0, _LI = $1.nd - $1.cws.length - 1; _LH < _LI; _LH++) { - $k[$j++] = 106; - } - $1.cws = $a(); - } - $1.encs = $a([ "101010101", "010101011", "010101101", "010110101", "011010101", "101010110", "101011010", "101101010", "110101010", "010101110", "010110110", "010111010", "011010110", "011011010", "011101010", "100101011", "100101101", "100110101", "101001011", "101001101", "101010011", "101011001", "101100101", "101101001", "110010101", "110100101", "110101001", "001010111", "001011011", "001011101", "001101011", "001101101", "001110101", "010010111", "010011011", "010011101", "010100111", "010110011", "010111001", "011001011", "011001101", "011010011", "011011001", "011100101", "011101001", "100101110", "100110110", "100111010", "101001110", "101011100", "101100110", "101101100", "101110010", "101110100", "110010110", "110011010", "110100110", "110101100", "110110010", "110110100", "111001010", "111010010", "111010100", "001011110", "001101110", "001110110", "001111010", "010011110", "010111100", "011001110", "011011100", "011100110", "011101100", "011110010", "011110100", "100010111", "100011011", "100011101", "100100111", "100110011", "100111001", "101000111", "101100011", "101110001", "110001011", "110001101", "110010011", "110011001", "110100011", "110110001", "111000101", "111001001", "111010001", "000101111", "000110111", "000111011", "000111101", "001001111", "001100111", "001110011", "001111001", "010001111", "011000111", "011100011", "011110001", "100011110", "100111100", "101111000", "110001110", "110011100", "110111000", "111000110", "111001100" ]); - if ($1.rows % 2 == 0) { - $1.sixedges = $a([ $a([ $1.columns - 1, $1.rows - 2 ]), $a([ 0, $1.rows - 2 ]), $a([ $1.columns - 2, $1.rows - 1 ]), $a([ 1, $1.rows - 1 ]), $a([ $1.columns - 1, 0 ]), $a([ 0, 0 ]) ]); - } else { - $1.sixedges = $a([ $a([ $1.columns - 2, 0 ]), $a([ $1.columns - 2, $1.rows - 1 ]), $a([ $1.columns - 1, 1 ]), $a([ $1.columns - 1, $1.rows - 2 ]), $a([ 0, 0 ]), $a([ 0, $1.rows - 1 ]) ]); - } - $1.dmv = function() { - var _Lp = $k[--$j]; - var _Lq = $k[--$j]; - $k[$j++] = $f(_Lq + _Lp * $1.columns); - }; - $1.outline = $a($1.rows * $1.columns); - for (var _Lw = 0, _Lv = $1.rows - 1; _Lw <= _Lv; _Lw += 1) { - $1.y = _Lw; - for (var _Lz = 0, _Ly = $1.columns - 1; _Lz <= _Ly; _Lz += 1) { - $1.x = _Lz; - $k[$j++] = $1.outline; - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $1.dmv(); - var _M5 = $k[--$j]; - $put($k[--$j], _M5, ($1.x + $1.y) % 2 - 1); - } - } - var _M7 = $1.sixedges; - for (var _M8 = 0, _M9 = _M7.length; _M8 < _M9; _M8++) { - $k[$j++] = $1.outline; - $aload($get(_M7, _M8)); - $1.dmv(); - var _MC = $k[--$j]; - $put($k[--$j], _MC, 1); - } - $1.clearcol = function() { - $1.x = $k[--$j]; - $k[$j++] = true; - for (var _MI = $1.x & 1, _MH = $1.rows - 1; _MI <= _MH; _MI += 2) { - $k[$j++] = $1.x; - $k[$j++] = _MI; - $1.dmv(); - if ($get($1.sym, $k[--$j]) == 1) { - $j--; - $k[$j++] = false; - break; - } - } - }; - $1.clearrow = function() { - $1.y = $k[--$j]; - $k[$j++] = true; - for (var _MR = $1.y & 1, _MQ = $1.columns - 1; _MR <= _MQ; _MR += 2) { - $k[$j++] = _MR; - $k[$j++] = $1.y; - $1.dmv(); - if ($get($1.sym, $k[--$j]) == 1) { - $j--; - $k[$j++] = false; - break; - } - } - }; - $1.evalsymbol = function() { - $1.sym = $k[--$j]; - $1.worst = 9999999; - var _Mb = $a([ $a([ "x", 0 ]), $a([ "x", 1 ]), $a([ "y", 0 ]), $a([ "y", 1 ]) ]); - for (var _Mc = 0, _Md = _Mb.length; _Mc < _Md; _Mc++) { - $aload($get(_Mb, _Mc)); - $1.fl = $k[--$j]; - $1.dir = $k[--$j]; - $1.sum = 0; - $1.first = -1; - $1.last = -1; - var _Mi = $eq($1.dir, "x") ? $1.columns : $1.rows; - for (var _Mk = 0, _Mj = _Mi - 1; _Mk <= _Mj; _Mk += 1) { - $1[$1.dir] = _Mk; - var _Mm = $1.sym; - var _Mo = $1[$1.dir]; - var _Mq = $eq($1.dir, "x") ? $1.rows : $1.columns; - var _Mt = (_Mq - 1) * $1.fl; - if ($eq($1.dir, "y")) { - var _ = _Mt; - _Mt = _Mo; - _Mo = _; - } - $k[$j++] = _Mm; - $k[$j++] = _Mo; - $k[$j++] = _Mt; - $1.dmv(); - var _Mu = $k[--$j]; - if ($get($k[--$j], _Mu) == 1) { - if ($1.first == -1) { - $1.first = $1[$1.dir]; - } - $1.last = $1[$1.dir]; - $1.sum = $1.sum + 1; - } - } - var _N7 = $eq($1.dir, "x") ? $1.rows : $1.columns; - var _N8 = $f($f($1.sum + $1.last) - $1.first) * _N7; - $k[$j++] = _N8; - if (_N8 < $1.worst) { - $1.worst = $k[--$j]; - } else { - $j--; - } - } - $1.pen = 0; - if ($1.rows % 2 == 1 || $1.rows <= 12) { - $1.sum = 0; - $1.p = 0; - for (var _NF = 1, _NE = $1.columns - 2; _NF <= _NE; _NF += 1) { - $k[$j++] = _NF; - $1.clearcol(); - if ($k[--$j]) { - $1.sum = $1.sum + 1; - $k[$j++] = "p"; - if ($1.sum == 1) { - $k[$j++] = $1.rows; - } else { - $k[$j++] = $1.p * $1.rows; - } - var _NM = $k[--$j]; - $1[$k[--$j]] = _NM; - } else { - $1.sum = 0; - $1.pen = $1.pen + $1.p; - $1.p = 0; - } - } - $1.pen = $1.pen + $1.p; - } - if ($1.rows % 2 == 0 || $1.columns <= 12) { - $1.sum = 0; - $1.p = 0; - for (var _NW = 1, _NV = $1.rows - 2; _NW <= _NV; _NW += 1) { - $k[$j++] = _NW; - $1.clearrow(); - if ($k[--$j]) { - $1.sum = $1.sum + 1; - $k[$j++] = "p"; - if ($1.sum == 1) { - $k[$j++] = $1.columns; - } else { - $k[$j++] = $1.p * $1.columns; - } - var _Nd = $k[--$j]; - $1[$k[--$j]] = _Nd; - } else { - $1.sum = 0; - $1.pen = $1.pen + $1.p; - $1.p = 0; - } - } - $1.pen = $1.pen + $1.p; - } - $k[$j++] = Infinity; - for (var _Nk = 0, _Nl = ($1.columns + 4) * 2; _Nk < _Nl; _Nk++) { - $k[$j++] = 0; - } - for (var _Np = 0, _Nq = $1.columns, _No = $1.sym.length - 1; _Nq < 0 ? _Np >= _No : _Np <= _No; _Np += _Nq) { - $k[$j++] = 0; - $k[$j++] = 0; - $aload($geti($1.sym, _Np, $1.columns)); - $k[$j++] = 0; - $k[$j++] = 0; - } - for (var _Nv = 0, _Nw = ($1.columns + 4) * 2; _Nv < _Nw; _Nv++) { - $k[$j++] = 0; - } - $1.symp = $a(); - $1.columns = $1.columns + 4; - $1.rows = $1.rows + 4; - $1.sum = 0; - for (var _O2 = 2, _O1 = $1.rows - 3; _O2 <= _O1; _O2 += 1) { - $1.y = _O2; - for (var _O6 = ($1.y & 1) + 2, _O5 = $1.columns - 3; _O6 <= _O5; _O6 += 2) { - $1.x = _O6; - for (var _O7 = 0, _O8 = 1; _O7 < _O8; _O7++) { - $k[$j++] = $1.symp; - $k[$j++] = $1.x - 1; - $k[$j++] = $1.y - 1; - $1.dmv(); - var _OC = $k[--$j]; - if ($get($k[--$j], _OC) == 1) { - break; - } - $k[$j++] = $1.symp; - $k[$j++] = $1.x + 1; - $k[$j++] = $1.y - 1; - $1.dmv(); - var _OI = $k[--$j]; - if ($get($k[--$j], _OI) == 1) { - break; - } - $k[$j++] = $1.symp; - $k[$j++] = $1.x - 1; - $k[$j++] = $1.y + 1; - $1.dmv(); - var _OO = $k[--$j]; - if ($get($k[--$j], _OO) == 1) { - break; - } - $k[$j++] = $1.symp; - $k[$j++] = $1.x + 1; - $k[$j++] = $1.y + 1; - $1.dmv(); - var _OU = $k[--$j]; - if ($get($k[--$j], _OU) == 1) { - break; - } - $k[$j++] = $1.symp; - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $1.dmv(); - var _Oa = $k[--$j]; - if ($get($k[--$j], _Oa) == 0) { - $1.sum = $1.sum + 1; - break; - } - $k[$j++] = $1.symp; - $k[$j++] = $1.x - 2; - $k[$j++] = $1.y; - $1.dmv(); - var _Oh = $k[--$j]; - if ($get($k[--$j], _Oh) == 1) { - break; - } - $k[$j++] = $1.symp; - $k[$j++] = $1.x; - $k[$j++] = $1.y - 2; - $1.dmv(); - var _On = $k[--$j]; - if ($get($k[--$j], _On) == 1) { - break; - } - $k[$j++] = $1.symp; - $k[$j++] = $1.x + 2; - $k[$j++] = $1.y; - $1.dmv(); - var _Ot = $k[--$j]; - if ($get($k[--$j], _Ot) == 1) { - break; - } - $k[$j++] = $1.symp; - $k[$j++] = $1.x; - $k[$j++] = $1.y + 2; - $1.dmv(); - var _Oz = $k[--$j]; - if ($get($k[--$j], _Oz) == 1) { - break; - } - $1.sum = $1.sum + 1; - } - } - } - $1.columns = $1.columns - 4; - $1.rows = $1.rows - 4; - if ($1.worst == 0) { - $k[$j++] = -99999; - } else { - $k[$j++] = $f($f($1.worst - $1.sum * $1.sum) - $1.pen); - } - }; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _PA = 0, _PB = 112; _PA < _PB; _PA++) { - var _PC = $k[--$j]; - $k[$j++] = _PC; - $k[$j++] = _PC * 3 % 113; - } - $1.rsalog = $a(); - $1.step = ~~($1.nw / 112) + 1; - $1.offset = function() { - var _PG = $k[--$j]; - $k[$j++] = $f(_PG * $1.step + $1.start); - }; - $1.bestscore = -99999999; - $k[$j++] = "masks"; - if ($1.mask != -1) { - $k[$j++] = $a([ $1.mask ]); - } else { - if ($1.fast) { - $k[$j++] = $a([ 3, 2, 1, 0 ]); - } else { - $k[$j++] = $a([ 0, 1, 2, 3 ]); - } - } - var _PO = $k[--$j]; - $1[$k[--$j]] = _PO; - $1.litmasks = $a(4); - $forall($1.masks, function() { - $1.mask = $k[--$j]; - $k[$j++] = Infinity; - var _PX = $1.cws; - $k[$j++] = $1.mask; - $k[$j++] = $get($a([ 0, 3, 7, 17 ]), $1.mask); - $k[$j++] = 0; - for (var _PY = 0, _PZ = _PX.length; _PY < _PZ; _PY++) { - var _Pb = $k[--$j]; - var _Pc = $k[--$j]; - $k[$j++] = $f($get(_PX, _PY) + _Pb) % 113; - $k[$j++] = _Pc; - $k[$j++] = $f(_Pb + _Pc); - } - $j -= 2; - for (var _Pe = 0, _Pf = $1.nc; _Pe < _Pf; _Pe++) { - $k[$j++] = 0; - } - $1.rscws = $a(); - for (var _Pj = 0, _Pi = $1.step - 1; _Pj <= _Pi; _Pj += 1) { - $1.start = _Pj; - $1.ND = ~~(($1.nd + 1 - $1.start + $1.step - 1) / $1.step); - $1.NW = ~~(($1.nw + 1 - $1.start + $1.step - 1) / $1.step); - $1.NC = $1.NW - $1.ND; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _Pv = 0, _Pw = $1.NC; _Pv < _Pw; _Pv++) { - $k[$j++] = 0; - } - $1.coeffs = $a(); - for (var _Q0 = 1, _Pz = $1.NC; _Q0 <= _Pz; _Q0 += 1) { - $1.i = _Q0; - for (var _Q2 = $1.NC; _Q2 >= 1; _Q2 -= 1) { - $1.j = _Q2; - $put($1.coeffs, $1.j, $f($f($get($1.coeffs, $1.j) + 113) - $get($1.rsalog, $1.i) * $get($1.coeffs, $1.j - 1) % 113) % 113); - } - } - for (var _QG = 0, _QF = $1.ND - 1; _QG <= _QF; _QG += 1) { - $k[$j++] = "t"; - $k[$j++] = $1.rscws; - $k[$j++] = _QG; - $1.offset(); - var _QI = $k[--$j]; - var _QK = $get($k[--$j], _QI); - $k[$j++] = _QK; - $k[$j++] = $1.rscws; - $k[$j++] = $1.ND; - $1.offset(); - var _QN = $k[--$j]; - var _QP = $get($k[--$j], _QN); - var _QQ = $k[--$j]; - $1[$k[--$j]] = $f(_QQ + _QP) % 113; - for (var _QU = 0, _QT = $1.NC - 2; _QU <= _QT; _QU += 1) { - $1.j = _QU; - $k[$j++] = $1.rscws; - $k[$j++] = $1.ND + $1.j; - $1.offset(); - $k[$j++] = $1.rscws; - $k[$j++] = $1.ND + $1.j + 1; - $1.offset(); - var _Qb = $k[--$j]; - var _Qd = $get($k[--$j], _Qb); - var _Qi = $k[--$j]; - $put($k[--$j], _Qi, $f($f(_Qd + 113) - $1.t * $get($1.coeffs, $1.j + 1) % 113) % 113); - } - $k[$j++] = $1.rscws; - $k[$j++] = $1.ND + $1.NC - 1; - $1.offset(); - var _Qr = $k[--$j]; - $put($k[--$j], _Qr, $f(113 - $1.t * $get($1.coeffs, $1.NC) % 113) % 113); - } - for (var _Qw = $1.ND, _Qv = $1.NW - 1; _Qw <= _Qv; _Qw += 1) { - $k[$j++] = _Qw; - $k[$j++] = $1.rscws; - $k[$j++] = _Qw; - $1.offset(); - var _Qz = $k[--$j]; - var _R0 = $k[--$j]; - var _R1 = $k[--$j]; - $k[$j++] = _R0; - $k[$j++] = _Qz; - $k[$j++] = 113; - $k[$j++] = $1.rscws; - $k[$j++] = _R1; - $1.offset(); - var _R2 = $k[--$j]; - var _R4 = $get($k[--$j], _R2); - var _R5 = $k[--$j]; - var _R6 = $k[--$j]; - $put($k[--$j], _R6, $f(_R5 - _R4) % 113); - } - } - $1.bits = $s($1.ndots); - $puti($1.bits, 0, $get($a([ "00", "01", "10", "11" ]), $1.mask)); - for (var _RG = 1, _RF = $1.nw; _RG <= _RF; _RG += 1) { - $1.i = _RG; - $puti($1.bits, ($1.i - 1) * 9 + 2, $get($1.encs, $get($1.rscws, $1.i))); - } - if ($1.rembits > 0) { - $puti($1.bits, $1.nw * 9 + 2, $geti("11111111111111111", 0, $1.rembits)); - } - var _RT = $1.outline; - $1.pixs = $arrcpy($a(_RT.length), _RT); - $1.posx = 0; - $k[$j++] = "posy"; - if ($1.rows % 2 == 0) { - $k[$j++] = 0; - } else { - $k[$j++] = $1.rows - 1; - } - var _RY = $k[--$j]; - $1[$k[--$j]] = _RY; - var _Rc = $geti($1.bits, 0, $1.bits.length - 6); - for (var _Rd = 0, _Re = _Rc.length; _Rd < _Re; _Rd++) { - $k[$j++] = $get(_Rc, _Rd); - for (;;) { - $k[$j++] = $1.pixs; - $k[$j++] = $1.posx; - $k[$j++] = $1.posy; - $1.dmv(); - var _Rj = $k[--$j]; - if ($get($k[--$j], _Rj) == -1) { - break; - } - if ($1.rows % 2 == 0) { - $1.posy = $1.posy + 1; - if ($1.posy == $1.rows) { - $1.posy = 0; - $1.posx = $1.posx + 1; - } - } else { - $1.posx = $1.posx + 1; - if ($1.posx == $1.columns) { - $1.posx = 0; - $1.posy = $1.posy - 1; - } - } - } - $k[$j++] = $1.pixs; - $k[$j++] = $1.posx; - $k[$j++] = $1.posy; - $1.dmv(); - var _Ry = $k[--$j]; - var _Rz = $k[--$j]; - $put(_Rz, _Ry, $f($k[--$j] - 48)); - } - for (var _S1 = 0; _S1 <= 5; _S1 += 1) { - $1.i = _S1; - $k[$j++] = $1.pixs; - $aload($get($1.sixedges, $1.i)); - $1.dmv(); - var _SA = $k[--$j]; - $put($k[--$j], _SA, $get($1.bits, $1.bits.length - 6 + $1.i) - 48); - } - $k[$j++] = "score"; - $k[$j++] = $1.pixs; - $1.evalsymbol(); - var _SD = $k[--$j]; - $1[$k[--$j]] = _SD; - if ($1.score > $1.bestscore) { - $1.bestsym = $1.pixs; - $1.bestscore = $1.score; - if ($1.fast && $1.bestscore > ~~($1.rows * $1.columns / 2)) { - return true; - } - } - var _SN = $1.pixs; - $1.litmask = $arrcpy($a(_SN.length), _SN); - for (var _SQ = 0; _SQ <= 5; _SQ += 1) { - $1.i = _SQ; - $k[$j++] = $1.litmask; - $aload($get($1.sixedges, $1.i)); - $1.dmv(); - var _SV = $k[--$j]; - $put($k[--$j], _SV, 1); - } - $put($1.litmasks, $1.mask, $1.litmask); - if ($1.fast) { - $k[$j++] = "score"; - $k[$j++] = $1.litmask; - $1.evalsymbol(); - var _Sc = $k[--$j]; - $1[$k[--$j]] = _Sc; - if ($gt($1.score, $1.bestscore)) { - $1.bestsym = $1.litmask; - $1.bestscore = $1.score; - if ($1.bestscore > ~~($1.rows * $1.columns / 2)) { - return true; - } - } - } - }); - $1.pixs = $1.bestsym; - if (!$1.fast && $1.bestscore <= ~~($1.rows * $1.columns / 2)) { - $1.bestscore = -99999999; - $forall($1.masks, function() { - $1.litmask = $get($1.litmasks, $k[--$j]); - $k[$j++] = "score"; - $k[$j++] = $1.litmask; - $1.evalsymbol(); - var _Sv = $k[--$j]; - $1[$k[--$j]] = _Sv; - if ($1.score > $1.bestscore) { - $1.bestsym = $1.litmask; - $1.bestscore = $1.score; - } - }); - $1.pixs = $1.bestsym; - } - var _T8 = new Map([ [ "ren", $0.renmatrix ], [ "dotty", true ], [ "pixs", $1.pixs ], [ "pixx", $1.columns ], [ "pixy", $1.rows ], [ "height", $1.rows * 2 / 72 ], [ "width", $1.columns * 2 / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _T8; - if (!$1.dontdraw) { - $0.renmatrix(); - } - }; - $0.ultracode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.eclevel = "EC2"; - $1.parse = false; - $1.parsefnc = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.fn1 = -1; - $1.fn3 = -2; - var _9 = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "FNC1", $1.fn1 ], [ "FNC3", $1.fn3 ] ]); - $1.fncvals = _9; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _C = $k[--$j]; - $1[$k[--$j]] = _C; - $1.msglen = $1.msg.length; - $1.start = 257; - $1.scr = $a([]); - $1.link1 = 0; - $1.scp = $a([]); - $k[$j++] = Infinity; - $aload($1.scr); - $aload($1.scp); - $forall($1.msg, function() { - var _K = $k[--$j]; - $k[$j++] = _K; - if (_K == $1.fn1) { - $j--; - $k[$j++] = 268; - } - var _M = $k[--$j]; - $k[$j++] = _M; - if (_M == $1.fn3) { - $j--; - $k[$j++] = 269; - } - }); - $1.dcws = $a(); - $1.mcc = $1.dcws.length + 3; - $1.eclval = $get($1.eclevel, 2) - 48; - if ($1.eclval != 0) { - $k[$j++] = "qcc"; - $k[$j++] = $get($a([ 0, 1, 2, 4, 6, 8 ]), $1.eclval); - $k[$j++] = ~~($1.mcc / 25); - if ($1.mcc % 25 != 0) { - var _Y = $k[--$j]; - $k[$j++] = $f(_Y + 1); - } - var _Z = $k[--$j]; - var _a = $k[--$j]; - $1[$k[--$j]] = $f(_a * _Z + 5); - } else { - $1.qcc = 3; - } - $1.acc = $1.qcc - 3 + 78 * $1.link1; - $1.tcc = $1.mcc + $1.qcc; - $1.metrics = $a([ $a([ 2, 4, 34, 5 ]), $a([ 3, 33, 82, 13 ]), $a([ 4, 82, 158, 23 ]), $a([ 5, 134, 282, 30 ]) ]); - for (var _l = 0; _l <= 3; _l += 1) { - $1.i = _l; - $1.m = $get($1.metrics, $1.i); - $1.rows = $get($1.m, 0); - $1.minc = $get($1.m, 1); - $1.maxc = $get($1.m, 2); - $1.mcol = $get($1.m, 3); - $1.okay = true; - if ($1.tcc < $1.minc || $1.tcc > $1.maxc) { - $1.okay = false; - } - if ($1.okay) { - break; - } - } - if (!$1.okay) { - $k[$j++] = "bwipp.ultracodeNoValidSymbol"; - $k[$j++] = "No valid symbol available"; - $0.raiseerror(); - } - for (var _14 = $1.mcol; _14 <= 61; _14 += 1) { - $1.columns = _14; - $k[$j++] = $1.columns; - if ($1.columns >= 15) { - var _17 = $k[--$j]; - $k[$j++] = $f(_17 - 1); - } - if ($1.columns >= 31) { - var _19 = $k[--$j]; - $k[$j++] = $f(_19 - 1); - } - if ($1.columns >= 47) { - var _1B = $k[--$j]; - $k[$j++] = $f(_1B - 1); - } - var _1F = $f($f($k[--$j] * $1.rows - 3) - $1.tcc); - $k[$j++] = _1F; - if (_1F >= 0) { - $1.pads = $k[--$j]; - break; - } - $j--; - } - $1.dcc = $f($1.columns - $1.mcol); - $k[$j++] = Infinity; - $k[$j++] = $1.start; - $k[$j++] = $1.mcc; - $k[$j++] = $1.acc; - $aload($1.scr); - $aload($1.dcws); - for (var _1P = 0, _1Q = $1.qcc; _1P < _1Q; _1P++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.rsseq = $a(); - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _1S = 0, _1T = 282; _1S < _1T; _1S++) { - var _1U = $k[--$j]; - $k[$j++] = _1U; - $k[$j++] = _1U * 3 % 283; - } - $1.rsalog = $a(); - $1.rslog = $a(283); - for (var _1X = 1; _1X <= 282; _1X += 1) { - $put($1.rslog, $get($1.rsalog, _1X), _1X); - } - $1.rsprod = function() { - var _1b = $k[--$j]; - var _1c = $k[--$j]; - $k[$j++] = _1c; - $k[$j++] = _1b; - if (_1b != 0 && _1c != 0) { - var _1f = $get($1.rslog, $k[--$j]); - var _1k = $get($1.rsalog, $f(_1f + $get($1.rslog, $k[--$j])) % 282); - $k[$j++] = _1k; - } else { - $j -= 2; - $k[$j++] = 0; - } - }; - $1.n = $1.mcc; - $1.k = $1.qcc; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _1o = 0, _1p = $1.k; _1o < _1p; _1o++) { - $k[$j++] = 0; - } - $1.coeffs = $a(); - for (var _1t = 1, _1s = $1.k; _1t <= _1s; _1t += 1) { - $1.i = _1t; - $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); - for (var _20 = $1.i - 1; _20 >= 1; _20 -= 1) { - $1.j = _20; - $k[$j++] = $1.coeffs; - $k[$j++] = $1.j; - $k[$j++] = $get($1.coeffs, $1.j - 1); - $k[$j++] = $get($1.coeffs, $1.j); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _2C = $k[--$j]; - var _2D = $k[--$j]; - var _2E = $k[--$j]; - $put($k[--$j], _2E, $f(_2D + _2C) % 283); - } - $k[$j++] = $1.coeffs; - $k[$j++] = 0; - $k[$j++] = $get($1.coeffs, 0); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _2M = $k[--$j]; - var _2N = $k[--$j]; - $put($k[--$j], _2N, _2M); - } - $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); - for (var _2T = $1.coeffs.length - 1; _2T >= 0; _2T -= 2) { - var _2U = $1.coeffs; - $put(_2U, _2T, $f(283 - $get(_2U, _2T))); - } - for (var _2Y = 0, _2X = $1.n - 1; _2Y <= _2X; _2Y += 1) { - $1.t = $f($get($1.rsseq, _2Y) + $get($1.rsseq, $1.n)) % 283; - for (var _2g = 0, _2f = $1.k - 1; _2g <= _2f; _2g += 1) { - $1.j = _2g; - $put($1.rsseq, $1.n + $1.j, $f($get($1.rsseq, $1.n + $1.j + 1) + $f(283 - $1.t * $get($1.coeffs, $1.k - $1.j - 1) % 283)) % 283); - } - } - for (var _2x = $1.n, _2w = $1.n + $1.k; _2x <= _2w; _2x += 1) { - $put($1.rsseq, _2x, $f(283 - $get($1.rsseq, _2x)) % 283); - } - $1.ecws = $geti($1.rsseq, $1.n, $1.k); - $1.dccu = $a([ 51363, 51563, 51653, 53153, 53163, 53513, 53563, 53613, 53653, 56153, 56163, 56313, 56353, 56363, 56513, 56563, 51316, 51356, 51536, 51616, 53156, 53516, 53536, 53616, 53636, 53656, 56136, 56156, 56316, 56356, 56516, 56536 ]); - $1.dccl = $a([ 61351, 61361, 61531, 61561, 61631, 61651, 63131, 63151, 63161, 63531, 63561, 63631, 65131, 65161, 65351, 65631, 31351, 31361, 31531, 31561, 31631, 31651, 35131, 35151, 35161, 35361, 35631, 35651, 36131, 36151, 36351, 36531 ]); - $1.tiles = $a([ 13135, 13136, 13153, 13156, 13163, 13165, 13513, 13515, 13516, 13531, 13535, 13536, 13561, 13563, 13565, 13613, 13615, 13616, 13631, 13635, 13636, 13651, 13653, 13656, 15135, 15136, 15153, 15163, 15165, 15313, 15315, 15316, 15351, 15353, 15356, 15361, 15363, 15365, 15613, 15615, 15616, 15631, 15635, 15636, 15651, 15653, 15656, 16135, 16136, 16153, 16156, 16165, 16313, 16315, 16316, 16351, 16353, 16356, 16361, 16363, 16365, 16513, 16515, 16516, 16531, 16535, 16536, 16561, 16563, 16565, 31315, 31316, 31351, 31356, 31361, 31365, 31513, 31515, 31516, 31531, 31535, 31536, 31561, 31563, 31565, 31613, 31615, 31631, 31635, 31636, 31651, 31653, 31656, 35131, 35135, 35136, 35151, 35153, 35156, 35161, 35163, 35165, 35315, 35316, 35351, 35356, 35361, 35365, 35613, 35615, 35616, 35631, 35635, 35636, 35651, 35653, 35656, 36131, 36135, 36136, 36151, 36153, 36156, 36163, 36165, 36315, 36316, 36351, 36356, 36361, 36365, 36513, 36515, 36516, 36531, 36535, 36536, 36561, 36563, 36565, 51313, 51315, 51316, 51351, 51353, 51356, 51361, 51363, 51365, 51513, 51516, 51531, 51536, 51561, 51563, 51613, 51615, 51616, 51631, 51635, 51636, 51651, 51653, 51656, 53131, 53135, 53136, 53151, 53153, 53156, 53161, 53163, 53165, 53513, 53516, 53531, 53536, 53561, 53563, 53613, 53615, 53616, 53631, 53635, 53636, 53651, 53653, 53656, 56131, 56135, 56136, 56151, 56153, 56156, 56161, 56163, 56165, 56313, 56315, 56316, 56351, 56353, 56356, 56361, 56363, 56365, 56513, 56516, 56531, 56536, 56561, 56563, 61313, 61315, 61316, 61351, 61353, 61356, 61361, 61363, 61365, 61513, 61515, 61516, 61531, 61535, 61536, 61561, 61563, 61565, 61615, 61631, 61635, 61651, 61653, 63131, 63135, 63136, 63151, 63153, 63156, 63161, 63163, 63165, 63513, 63515, 63516, 63531, 63535, 63536, 63561, 63563, 63565, 63613, 63615, 63631, 63635, 63651, 63653, 65131, 65135, 65136, 65151, 65153, 65156, 65161, 65163, 65165, 65313, 65315, 65316, 65351, 65353, 65356, 65361, 65363, 65365, 65613, 65615, 65631, 65635, 65651, 65653, 56565, 51515 ]); - $1.rows = $f($1.rows * 6 + 1); - $1.columns = $1.columns + 6; - $k[$j++] = Infinity; - for (var _3C = 0, _3D = $1.rows * $1.columns; _3C < _3D; _3C++) { - $k[$j++] = -1; - } - $1.pixs = $a(); - $1.qmv = function() { - var _3G = $k[--$j]; - var _3H = $k[--$j]; - $k[$j++] = $f(_3H + _3G * $1.columns); - }; - for (var _3K = 0, _3J = $1.columns - 1; _3K <= _3J; _3K += 1) { - $1.i = _3K; - for (var _3N = 0, _3M = $f($1.rows - 1); _3N <= _3M; _3N += 6) { - $1.j = _3N; - if ($1.i >= 5) { - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.qmv(); - var _3T = $k[--$j]; - $put($k[--$j], _3T, $1.i % 2 * 9); - } - } - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = 0; - $1.qmv(); - var _3X = $k[--$j]; - $put($k[--$j], _3X, 9); - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = $f($1.rows - 1); - $1.qmv(); - var _3c = $k[--$j]; - $put($k[--$j], _3c, 9); - } - for (var _3g = 1, _3f = $f($1.rows - 2); _3g <= _3f; _3g += 1) { - $1.i = _3g; - for (var _3j = 3, _3i = $1.columns - 1; _3j <= _3i; _3j += 16) { - $1.j = _3j; - $k[$j++] = $1.pixs; - $k[$j++] = $1.j; - $k[$j++] = $1.i; - $1.qmv(); - var _3o = $k[--$j]; - $put($k[--$j], _3o, (1 - $1.i % 2) * 9); - } - $k[$j++] = $1.pixs; - $k[$j++] = 0; - $k[$j++] = $1.i; - $1.qmv(); - var _3s = $k[--$j]; - $put($k[--$j], _3s, 9); - $k[$j++] = $1.pixs; - $k[$j++] = 1; - $k[$j++] = $1.i; - $1.qmv(); - var _3x = $k[--$j]; - $put($k[--$j], _3x, (1 - $1.i % 2) * 9); - $k[$j++] = $1.pixs; - $k[$j++] = 2; - $k[$j++] = $1.i; - $1.qmv(); - var _41 = $k[--$j]; - $put($k[--$j], _41, 0); - $k[$j++] = $1.pixs; - $k[$j++] = 3; - $k[$j++] = $1.i; - $1.qmv(); - var _45 = $k[--$j]; - $put($k[--$j], _45, 9); - $k[$j++] = $1.pixs; - $k[$j++] = 4; - $k[$j++] = $1.i; - $1.qmv(); - var _49 = $k[--$j]; - $put($k[--$j], _49, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $1.columns - 1; - $k[$j++] = $1.i; - $1.qmv(); - var _4E = $k[--$j]; - $put($k[--$j], _4E, 9); - } - $1.i = ~~($1.rows / 2) - 5; - $k[$j++] = Infinity; - var _4L = $cvrs($s(5), $get($1.dccu, $1.dcc), 10); - for (var _4M = 0, _4N = _4L.length; _4M < _4N; _4M++) { - $k[$j++] = $get(_4L, _4M) - 48; - } - var _4T = $cvrs($s(5), $get($1.dccl, $1.dcc), 10); - $k[$j++] = 0; - for (var _4U = 0, _4V = _4T.length; _4U < _4V; _4U++) { - $k[$j++] = $get(_4T, _4U) - 48; - } - var _4X = $a(); - for (var _4Y = 0, _4Z = _4X.length; _4Y < _4Z; _4Y++) { - $k[$j++] = $get(_4X, _4Y); - $k[$j++] = $1.pixs; - $k[$j++] = 2; - $k[$j++] = $1.i; - $1.qmv(); - var _4d = $k[--$j]; - var _4e = $k[--$j]; - $put(_4e, _4d, $k[--$j]); - $1.i = $1.i + 1; - } - $k[$j++] = Infinity; - $k[$j++] = $1.start; - $k[$j++] = $1.mcc; - $aload($1.ecws); - $k[$j++] = $1.tcc; - $k[$j++] = 283; - $k[$j++] = $1.acc; - $aload($1.scr); - $aload($1.dcws); - for (var _4p = 0, _4q = $1.pads; _4p < _4q; _4p++) { - $k[$j++] = 284; - } - $k[$j++] = $1.qcc; - $1.tileseq = $a(); - $1.x = 5; - $1.y = 1; - var _4t = $1.tileseq; - for (var _4u = 0, _4v = _4t.length; _4u < _4v; _4u++) { - var _50 = $cvrs($s(5), $get($1.tiles, $get(_4t, _4u)), 10); - for (var _51 = 0, _52 = _50.length; _51 < _52; _51++) { - $k[$j++] = $get(_50, _51); - $k[$j++] = $1.pixs; - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $1.qmv(); - var _57 = $k[--$j]; - var _58 = $k[--$j]; - $put(_58, _57, $f($k[--$j] - 48)); - $1.y = $1.y + 1; - } - if ($1.y != $f($1.rows - 1)) { - $1.y = $1.y + 1; - } else { - $1.x = $1.x + 1; - $1.y = 1; - $k[$j++] = $1.pixs; - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $1.qmv(); - var _5I = $k[--$j]; - if ($get($k[--$j], _5I) != -1) { - $1.x = $1.x + 1; - } - } - } - var _5R = new Map([ [ 0, "00000000" ], [ 9, "000000FF" ], [ 1, "FF000000" ], [ 3, "00FF0000" ], [ 5, "0000FF00" ], [ 6, "7F00FF00" ] ]); - var _5T = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", $1.columns ], [ "pixy", $1.rows ], [ "height", $1.rows / 72 * 2 ], [ "width", $1.columns / 72 * 2 ], [ "colormap", _5R ], [ "opt", $1.options ] ]); - $k[$j++] = _5T; - if (!$1.dontdraw) { - $0.renmatrix(); - } - }; - $0.jabcode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.rows = -1; - $1.columns = -1; - $1.slave = false; - $1.colors = 16; - $1.eclevel = 6; - $1.raw = false; - $1.parse = false; - $1.parsefnc = false; - $1.mask = -1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.rows = ~~$1.rows; - $1.columns = ~~$1.columns; - $1.colors = ~~$1.colors; - $1.eclevel = ~~$1.eclevel; - $1.mask = ~~$1.mask; - $1.databpm = ~~Math.round(Math.log($1.colors) / Math.log(2)); - var _B = $1.colors; - $k[$j++] = "metabpm"; - $k[$j++] = _B; - if (_B > 8) { - $j--; - $k[$j++] = 8; - } - var _C = $k[--$j]; - $1[$k[--$j]] = ~~Math.round(Math.log(_C) / Math.log(2)); - $1.fn1 = -1; - var _H = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "FNC1", $1.fn1 ] ]); - $1.fncvals = _H; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _K = $k[--$j]; - $1[$k[--$j]] = _K; - $1.msglen = $1.msg.length; - $1.addtobits = function() { - var _N = $k[--$j]; - $puti($1.bits, $1.j, _N); - $1.j = _N.length + $1.j; - }; - $1.tofixedbits = function() { - var _S = $strcpy($s(13), "0000000000000"); - var _T = $k[--$j]; - var _W = $cvrs($s(13), $k[--$j], 2); - $puti(_S, $f(_T - _W.length), _W); - $k[$j++] = $geti(_S, 0, _T); - }; - var _Z = $1.msglen <= 15 ? 4 : 17; - $1.bits = $s(7 + _Z + $1.msglen * 8 + 12); - $1.j = 0; - $k[$j++] = 31; - $k[$j++] = 5; - $1.tofixedbits(); - $1.addtobits(); - $k[$j++] = "00"; - $1.addtobits(); - if ($1.msglen <= 15) { - $k[$j++] = $1.msglen; - $k[$j++] = 4; - $1.tofixedbits(); - $1.addtobits(); - } else { - $k[$j++] = "0000"; - $1.addtobits(); - $k[$j++] = $1.msglen - 16; - $k[$j++] = 13; - $1.tofixedbits(); - $1.addtobits(); - } - for (var _h = 0, _g = $1.msglen - 1; _h <= _g; _h += 1) { - $k[$j++] = $get($1.msg, _h); - $k[$j++] = 8; - $1.tofixedbits(); - $1.addtobits(); - } - $k[$j++] = 28; - $k[$j++] = 5; - $1.tofixedbits(); - $1.addtobits(); - $k[$j++] = 31; - $k[$j++] = 5; - $1.tofixedbits(); - $1.addtobits(); - $k[$j++] = "11"; - $1.addtobits(); - $1.diffside = 21; - $1.sameshape = false; - $1.sameecc = false; - $1.hasslaves = false; - $1.metrics = function() { - $1.mc = $k[--$j]; - $1.mr = $k[--$j]; - var _m = $1.mc; - var _n = $1.mr; - var _o = $1.mc; - var _p = $1.mr; - var _q = $1.colors; - var _r = 64; - if (64 > _q) { - var _ = _q; - _q = _r; - _r = _; - } - var _t = $1.slave ? 7 : 17; - $k[$j++] = _m * _n; - $k[$j++] = ((~~($f(_o - 25) / 16) + 2) * (~~($f(_p - 25) / 16) + 2) - 4) * 7; - $k[$j++] = _r * 2; - $k[$j++] = _t * 4; - if (!$1.slave) { - var _x = $eq($1.mr, $1.mc) ? 0 : 1; - $1.metass = _x; - var _y = $1.mr; - var _z = $1.mc; - if ($lt(_y, _z)) { - var _ = _z; - _z = _y; - _y = _; - } - $1.metavf = $get($a([ 0, 1, 2, 2, 3, 3, 3, 3 ]), ~~($f(_y - 21) / 16)); - $k[$j++] = "metavlen"; - if ($1.metass == 0) { - $k[$j++] = $a([ 2, 2, 3, 4 ]); - } else { - $k[$j++] = $a([ 4, 6, 8, 10 ]); - } - var _17 = $get($k[--$j], $1.metavf); - $1[$k[--$j]] = _17; - $1.metaelen = $f($1.metavf * 2 + 10); - $k[$j++] = $f($f(7 + $1.metavlen) + $1.metaelen); - if ($1.hasslaves) { - var _1D = $k[--$j]; - $k[$j++] = $f(_1D + 4); - } - var _1G = ~~Math.ceil($k[--$j] * 2 / $1.metabpm); - $1.nummetabits = $f(_1G * $1.metabpm + 6); - $k[$j++] = _1G + 6; - } else { - $k[$j++] = 3; - if (!$1.sameshape) { - var _1J = $k[--$j]; - $k[$j++] = $f(_1J + 5); - } - if ($1.hasslaves) { - var _1L = $k[--$j]; - $k[$j++] = $f(_1L + 3); - } - if (!$1.sameecc) { - var _1N = $1.mr; - var _1O = $1.mc; - if ($lt(_1N, _1O)) { - var _ = _1O; - _1O = _1N; - _1N = _; - } - var _1R = $k[--$j]; - $k[$j++] = $f(_1R + $get($a([ 10, 12, 14, 14, 16, 16, 16, 16 ]), ~~($f(_1N - 21) / 16))); - } - var _1U = ~~Math.ceil($k[--$j] * 2 / $1.metabpm); - $1.nummetabits = _1U * $1.metabpm; - $k[$j++] = _1U; - } - var _1W = $k[--$j]; - $1.nummetamodules = _1W; - var _1X = $k[--$j]; - var _1Y = $k[--$j]; - var _1Z = $k[--$j]; - $1.numdatamodules = $f($k[--$j] - $f(_1Z + $f(_1Y + $f(_1X + _1W)))); - $1.numdatabits = $1.numdatamodules * $1.databpm; - }; - $1.coderate = $get($a([ .67, .63, .57, .55, .5, .43, .34, .25, .2, .17, .14 ]), $1.eclevel); - $1.grosslen = ~~Math.ceil($1.bits.length / $1.coderate); - $1.snapsize = function() { - var _1j = ~~Math.ceil($k[--$j]) - 18; - $k[$j++] = _1j; - if (_1j < 0) { - $j--; - $k[$j++] = 0; - } - var _1k = $k[--$j]; - $k[$j++] = ~~(_1k / 4) * 4 + 21; - }; - if ($1.rows == -1 && $1.columns == -1) { - $k[$j++] = "size"; - $k[$j++] = Math.sqrt($1.grosslen); - $1.snapsize(); - var _1o = $k[--$j]; - $1[$k[--$j]] = _1o; - for (;;) { - $k[$j++] = $1.size; - $k[$j++] = $1.size; - $1.metrics(); - if ($1.grosslen <= $1.numdatabits) { - break; - } - $1.size = $f($1.size + 4); - } - $1.rows = $1.size; - $1.columns = $1.size; - } else { - if ($1.columns == -1 && $1.rows != -1) { - $k[$j++] = "columns"; - $k[$j++] = $1.grosslen / $1.rows; - $1.snapsize(); - var _21 = $k[--$j]; - $1[$k[--$j]] = _21; - for (;;) { - $k[$j++] = $1.rows; - $k[$j++] = $1.columns; - $1.metrics(); - if ($1.grosslen <= $1.numdatabits) { - break; - } - $1.columns = $f($1.columns + 4); - } - } - if ($1.rows == -1 && $1.columns != -1) { - $k[$j++] = "rows"; - $k[$j++] = $1.grosslen / $1.columns; - $1.snapsize(); - var _2C = $k[--$j]; - $1[$k[--$j]] = _2C; - for (;;) { - $k[$j++] = $1.rows; - $k[$j++] = $1.columns; - $1.metrics(); - if ($1.grosslen <= $1.numdatabits) { - break; - } - $1.rows = $f($1.rows + 4); - } - } - if ($1.rows != -1 && $1.columns != -1) { - $k[$j++] = $1.rows; - $k[$j++] = $1.columns; - $1.metrics(); - } - } - $1.C = $1.numdatabits; - $1.cols = $1.columns; - if ($1.rows > 145 || $1.cols > 145) { - $k[$j++] = "bwipp.jabcodeNoValidSymbol"; - $k[$j++] = "No valid symbol available"; - $0.raiseerror(); - } - $1.min = $1.C; - for (var _2S = 3; _2S <= 8; _2S += 1) { - $1.i = _2S; - for (var _2U = $1.i + 1; _2U <= 9; _2U += 1) { - $1.j = _2U; - $1.dist = ~~($1.C / $1.j) * $1.j - ~~($1.C / $1.j) * $1.i - $1.bits.length; - if ($1.dist < $1.min && $1.dist >= 0) { - $1.datawc = $1.i; - $1.datawr = $1.j; - $1.min = $1.dist; - } - } - } - $1.tmpbits = $s(~~($1.C / $1.datawr) * $1.datawr - ~~($1.C / $1.datawr) * $1.datawc); - $puti($1.tmpbits, 0, $1.bits); - for (var _2u = $1.bits.length, _2t = $1.tmpbits.length - 1; _2u <= _2t; _2u += 1) { - var _2w = $get($1.tmpbits, _2u - 1); - $k[$j++] = _2u; - $k[$j++] = _2w; - if (_2w % 2 == 0) { - var _2x = $k[--$j]; - $k[$j++] = $f(_2x + 1); - } else { - var _2y = $k[--$j]; - $k[$j++] = $f(_2y - 1); - } - var _30 = $k[--$j]; - $put($1.tmpbits, $k[--$j], _30); - } - $1.bits = $1.tmpbits; - $1.m0 = 22609 + 1; - $1.m1 = 62509 - 65536; - $1.m2 = 19605; - $1.m3 = 32557; - $1.lcg64_temper = function() { - $1.p00 = $1.m0 * $1.s0; - $1.p01 = $1.m0 * $1.s1; - $1.p02 = $1.m0 * $1.s2; - $1.p03 = $1.m0 * $1.s3; - $1.p10 = $1.m1 * $1.s0; - $1.p11 = $1.m1 * $1.s1; - $1.p12 = $1.m1 * $1.s2; - $1.p13 = $1.m1 * $1.s3; - $1.p20 = $1.m2 * $1.s0; - $1.p21 = $1.m2 * $1.s1; - $1.p22 = $1.m2 * $1.s2; - $1.p23 = $1.m2 * $1.s3; - $1.p30 = $1.m3 * $1.s0; - $1.p31 = $1.m3 * $1.s1; - $1.p32 = $1.m3 * $1.s2; - $1.p33 = $1.m3 * $1.s3; - $1.s3 = $1.p33 % 65536 + 1; - $1.s2 = $1.p32 % 65536 + ~~($1.p33 / 65536) + $1.p23 % 65536; - $1.s1 = $1.p31 % 65536 + ~~($1.p32 / 65536) + ($1.p22 % 65536 + ~~($1.p23 / 65536)) + $1.p13 % 65536; - $1.s0 = $1.p30 % 65536 + ~~($1.p31 / 65536) + ($1.p21 % 65536 + ~~($1.p22 / 65536)) + ($1.p12 % 65536 + ~~($1.p13 / 65536)) + $1.p03 % 65536; - $1.s3 = $1.s3 + 65536; - $1.s2 = $1.s2 + 65535; - $1.s1 = $1.s1 + 65535; - $1.s0 = $1.s0 + 65535; - $1.s2 = ~~($1.s3 / 65536) + $1.s2; - $1.s3 = $1.s3 % 65536; - $1.s1 = ~~($1.s2 / 65536) + $1.s1; - $1.s2 = $1.s2 % 65536; - $1.s0 = ~~($1.s1 / 65536) + $1.s0; - $1.s1 = $1.s1 % 65536; - $1.s0 = $1.s0 % 65536; - var _45 = (($1.s0 - 32768) * 65536 + $1.s1 ^ 2147483648) & 4294967295; - var _46 = _45 ^ _45 >>> 11; - var _47 = _46 ^ _46 << 7 & -1658038656; - var _48 = (_47 ^ _47 << 15 & -272236544) & 4294967295; - $k[$j++] = _48 ^ _48 >>> 18; - }; - $1.createMatrixA = function() { - $k[$j++] = "nb_pcb"; - if ($1.wr < 4) { - $k[$j++] = ~~($1.Pg_sub_block / 2); - } else { - $k[$j++] = ~~($1.Pg_sub_block / $1.wr) * $1.wc; - } - var _4E = $k[--$j]; - $1[$k[--$j]] = _4E; - $1.offset = ~~Math.ceil($1.Pg_sub_block / 32); - $1.effwidth = $1.offset * 32; - $1.matrixA = $a($1.offset * $1.nb_pcb); - for (var _4O = 0, _4N = $1.offset * $1.nb_pcb - 1; _4O <= _4N; _4O += 1) { - $put($1.matrixA, _4O, 0); - } - $1.permutation = $a($1.Pg_sub_block); - for (var _4U = 0, _4T = $1.Pg_sub_block - 1; _4U <= _4T; _4U += 1) { - $put($1.permutation, _4U, _4U); - } - for (var _4Z = 0, _4Y = ~~($1.Pg_sub_block / $1.wr) - 1; _4Z <= _4Y; _4Z += 1) { - $1.i = _4Z; - for (var _4c = 0, _4b = $f($1.wr - 1); _4c <= _4b; _4c += 1) { - $1.j = _4c; - var _4d = $1.matrixA; - var _4e = $1.i; - var _4f = $1.effwidth; - var _4g = $1.wr; - var _4h = $1.j; - var _4n = $f(31 - $f($1.i * $f($1.effwidth + $1.wr) + $1.j) % 32); - $put(_4d, ~~($f(_4e * $f(_4f + _4g) + _4h) / 32), $get(_4d, ~~($f(_4e * $f(_4f + _4g) + _4h) / 32)) | (_4n < 0 ? 1 >>> -_4n : 1 << _4n)); - } - } - $1.s0 = 0; - $1.s1 = 0; - $1.s2 = 11; - $1.s3 = 64569; - for (var _4q = 1, _4p = $f($1.wc - 1); _4q <= _4p; _4q += 1) { - $1.i = _4q; - $1.off_index = ~~($1.Pg_sub_block / $1.wr) * $1.i; - for (var _4w = 0, _4v = $1.Pg_sub_block - 1; _4w <= _4v; _4w += 1) { - $1.j = _4w; - $1.lcg64_temper(); - var _4x = $k[--$j]; - $k[$j++] = _4x; - if (_4x < 0) { - var _4y = $k[--$j]; - $k[$j++] = $f((_4y ^ 2147483648) + 2147483648); - } - $1.pos = ~~($k[--$j] / 4294967296 * ($1.Pg_sub_block - $1.j)); - for (var _55 = 0, _54 = ~~($1.Pg_sub_block / $1.wr) - 1; _55 <= _54; _55 += 1) { - $1.k = _55; - var _56 = $1.matrixA; - var _57 = $1.off_index; - var _58 = $1.k; - var _59 = $1.offset; - var _5A = $1.j; - var _5I = $get($1.matrixA, ~~($get($1.permutation, $1.pos) / 32) + $1.k * $1.offset); - var _5M = -$f(31 - $get($1.permutation, $1.pos) % 32); - var _5O = 31 - $1.j % 32; - $put(_56, (_57 + _58) * _59 + ~~(_5A / 32), $get(_56, (_57 + _58) * _59 + ~~(_5A / 32)) | (_5O < 0 ? ((_5M < 0 ? _5I >>> -_5M : _5I << _5M) & 1) >>> -_5O : ((_5M < 0 ? _5I >>> -_5M : _5I << _5M) & 1) << _5O)); - } - var _5R = $1.permutation; - var _5S = $1.Pg_sub_block; - var _5T = $1.j; - $put(_5R, _5S - 1 - _5T, $get($1.permutation, $1.pos)); - $put($1.permutation, $1.pos, $get(_5R, _5S - 1 - _5T)); - } - } - }; - $1.createMetadataMatrixA = function() { - $1.nb_pcb = ~~($1.Pg_sub_block / 2); - $1.offset = ~~Math.ceil($1.Pg_sub_block / 32); - $1.matrixA = $a($1.offset * $1.nb_pcb); - for (var _5g = 0, _5f = $1.offset * $1.nb_pcb - 1; _5g <= _5f; _5g += 1) { - $put($1.matrixA, _5g, 0); - } - $1.permutation = $a($1.Pg_sub_block); - for (var _5m = 0, _5l = $1.Pg_sub_block - 1; _5m <= _5l; _5m += 1) { - $put($1.permutation, _5m, _5m); - } - $1.s0 = 0; - $1.s1 = 0; - $1.s2 = 0; - $1.s3 = 38545; - $1.nb_once = ~~(~~$f($1.nb_pcb / $1.wc * $1.Pg_sub_block + 3) / $1.nb_pcb); - for (var _5u = 0, _5t = $1.nb_pcb - 1; _5u <= _5t; _5u += 1) { - $1.i = _5u; - for (var _5x = 0, _5w = $1.nb_once - 1; _5x <= _5w; _5x += 1) { - $1.j = _5x; - $1.lcg64_temper(); - var _5y = $k[--$j]; - $k[$j++] = _5y; - if (_5y < 0) { - var _5z = $k[--$j]; - $k[$j++] = $f((_5z ^ 2147483648) + 2147483648); - } - $1.pos = ~~($k[--$j] / 4294967296 * ($1.Pg_sub_block - $1.j)); - var _63 = $1.matrixA; - var _64 = $1.i; - var _65 = $1.offset; - var _68 = $get($1.permutation, $1.pos); - var _6D = $f(31 - $get($1.permutation, $1.pos) % 32); - $put(_63, _64 * _65 + ~~(_68 / 32), $get(_63, _64 * _65 + ~~(_68 / 32)) | (_6D < 0 ? 1 >>> -_6D : 1 << _6D)); - var _6G = $1.permutation; - var _6H = $1.Pg_sub_block; - var _6I = $1.j; - $put(_6G, _6H - 1 - _6I, $get($1.permutation, $1.pos)); - $put($1.permutation, $1.pos, $get(_6G, _6H - 1 - _6I)); - } - } - }; - $1.GaussJordan = function() { - $k[$j++] = "nb_pcb"; - if ($1.wr < 4) { - $k[$j++] = ~~($1.Pg_sub_block / 2); - } else { - $k[$j++] = ~~($1.Pg_sub_block / $1.wr) * $1.wc; - } - var _6S = $k[--$j]; - $1[$k[--$j]] = _6S; - $1.offset = ~~Math.ceil($1.Pg_sub_block / 32); - var _6V = $1.matrixA; - $1.matrixH = $arrcpy($a(_6V.length), _6V); - $k[$j++] = Infinity; - for (var _6Z = 0, _6a = $1.Pg_sub_block; _6Z < _6a; _6Z++) { - $k[$j++] = 0; - } - $1.column_arrangement = $a(); - $k[$j++] = Infinity; - for (var _6d = 0, _6e = $1.Pg_sub_block; _6d < _6e; _6d++) { - $k[$j++] = false; - } - $1.processed_column = $a(); - $k[$j++] = Infinity; - for (var _6h = 0, _6i = $1.nb_pcb; _6h < _6i; _6h++) { - $k[$j++] = 0; - } - $1.zero_lines_nb = $a(); - $k[$j++] = Infinity; - for (var _6l = 0, _6m = $1.Pg_sub_block * 2; _6l < _6m; _6l++) { - $k[$j++] = 0; - } - $1.swap_col = $a(); - $1.zero_lines = 0; - $1.loop0 = 0; - for (var _6q = 0, _6p = $1.nb_pcb - 1; _6q <= _6p; _6q += 1) { - $1.i = _6q; - $1.pivot_column = $1.Pg_sub_block + 1; - for (var _6u = 0, _6t = $1.Pg_sub_block - 1; _6u <= _6t; _6u += 1) { - $1.j = _6u; - var _6z = $get($1.matrixH, ~~(($1.offset * 32 * $1.i + $1.j) / 32)); - var _73 = -(31 - ($1.offset * 32 * $1.i + $1.j) % 32); - if (((_73 < 0 ? _6z >>> -_73 : _6z << _73) & 1) == 1) { - $1.pivot_column = $1.j; - break; - } - } - if ($1.pivot_column < $1.Pg_sub_block) { - $put($1.processed_column, $1.pivot_column, true); - $put($1.column_arrangement, $1.pivot_column, $1.i); - if ($1.pivot_column >= $1.nb_pcb) { - $put($1.swap_col, $1.loop0 * 2, $1.pivot_column); - $1.loop0 = $1.loop0 + 1; - } - $1.off_index = ~~($1.pivot_column / 32); - $1.off_index1 = $1.pivot_column % 32; - for (var _7M = 0, _7L = $1.nb_pcb - 1; _7M <= _7L; _7M += 1) { - $1.j = _7M; - if ($1.i != $1.j) { - var _7T = $get($1.matrixH, $1.off_index + $1.j * $1.offset); - var _7V = -(31 - $1.off_index1); - if (((_7V < 0 ? _7T >>> -_7V : _7T << _7V) & 1) == 1) { - for (var _7Y = 0, _7X = $1.offset - 1; _7Y <= _7X; _7Y += 1) { - $1.k = _7Y; - var _7Z = $1.matrixH; - var _7a = $1.offset; - var _7b = $1.j; - var _7c = $1.k; - $put(_7Z, _7a * _7b + _7c, $xo($get(_7Z, _7a * _7b + _7c), $get($1.matrixH, $1.offset * $1.i + $1.k))); - } - } - } - } - } else { - $put($1.zero_lines_nb, $1.zero_lines, $1.i); - $1.zero_lines = $1.zero_lines + 1; - } - } - $1.matrix_rank = $1.nb_pcb - $1.zero_lines; - $1.loop2 = 0; - for (var _7s = $1.matrix_rank, _7r = $1.nb_pcb - 1; _7s <= _7r; _7s += 1) { - $1.i = _7s; - if ($get($1.column_arrangement, $1.i) > 0) { - for (var _7y = 0, _7x = $1.nb_pcb - 1; _7y <= _7x; _7y += 1) { - $1.j = _7y; - if ($nt($get($1.processed_column, $1.j))) { - $put($1.column_arrangement, $1.j, $get($1.column_arrangement, $1.i)); - $put($1.column_arrangement, $1.i, 0); - $put($1.processed_column, $1.j, true); - $put($1.processed_column, $1.i, false); - $put($1.swap_col, $1.loop0 * 2, $1.i); - $put($1.swap_col, $1.loop0 * 2 + 1, $1.j); - $put($1.column_arrangement, $1.i, $1.j); - $1.loop0 = $1.loop0 + 1; - $1.loop2 = $1.loop2 + 1; - break; - } - } - } - } - $1.loop1 = 0; - for (var _8Q = 0, _8P = $1.nb_pcb - 1; _8Q <= _8P; _8Q += 1) { - $1.kl = _8Q; - if ($nt($get($1.processed_column, $1.kl)) && $1.loop1 < $1.loop0 - $1.loop2) { - $put($1.column_arrangement, $1.kl, $get($1.column_arrangement, $get($1.swap_col, $1.loop1 * 2))); - $put($1.processed_column, $1.kl, true); - $put($1.swap_col, $1.loop1 * 2 + 1, $1.kl); - $1.loop1 = $1.loop1 + 1; - } - } - $1.loop1 = 0; - for (var _8m = 0, _8l = $1.nb_pcb - 1; _8m <= _8l; _8m += 1) { - $1.kl = _8m; - if ($nt($get($1.processed_column, $1.kl))) { - $put($1.column_arrangement, $1.kl, $get($1.zero_lines_nb, $1.loop1)); - $1.loop1 = $1.loop1 + 1; - } - } - for (var _8y = 0, _8x = $1.nb_pcb - 1; _8y <= _8x; _8y += 1) { - $1.i = _8y; - for (var _91 = 0, _90 = $1.offset - 1; _91 <= _90; _91 += 1) { - $1.j = _91; - $put($1.matrixA, $1.i * $1.offset + $1.j, $get($1.matrixH, $f($get($1.column_arrangement, $1.i) * $1.offset + $1.j))); - } - } - $1.tmp = 0; - for (var _9F = 0, _9E = $1.loop0 - 1; _9F <= _9E; _9F += 1) { - $1.i = _9F; - for (var _9I = 0, _9H = $1.nb_pcb - 1; _9I <= _9H; _9I += 1) { - $1.j = _9I; - var _9P = $get($1.matrixA, ~~($get($1.swap_col, $1.i * 2) / 32) + $1.j * $1.offset); - var _9T = -$f(31 - $get($1.swap_col, $1.i * 2) % 32); - $1.tmp = (-((_9T < 0 ? _9P >>> -_9T : _9P << _9T) & 1) ^ $1.tmp) & 1 ^ $1.tmp; - var _9W = $1.matrixA; - var _9Z = $get($1.swap_col, $1.i * 2); - var _9a = $1.j; - var _9b = $1.offset; - var _9j = $get($1.matrixA, ~~($get($1.swap_col, $1.i * 2 + 1) / 32) + $1.j * $1.offset); - var _9n = -$f(31 - $get($1.swap_col, $1.i * 2 + 1) % 32); - var _9y = $f(31 - $get($1.swap_col, $1.i * 2) % 32); - $put(_9W, ~~(_9Z / 32) + _9a * _9b, $get(_9W, ~~(_9Z / 32) + _9a * _9b) ^ (-((_9n < 0 ? _9j >>> -_9n : _9j << _9n) & 1) ^ $get($1.matrixA, ~~($get($1.swap_col, $1.i * 2) / 32) + $1.j * $1.offset)) & (_9y < 0 ? 1 >>> -_9y : 1 << _9y)); - var _9z = $1.matrixA; - var _A2 = $get($1.swap_col, $1.i * 2 + 1); - var _A3 = $1.j; - var _A4 = $1.offset; - var _AH = $f(31 - $get($1.swap_col, $1.i * 2 + 1) % 32); - $put(_9z, ~~(_A2 / 32) + _A3 * _A4, $get(_9z, ~~(_A2 / 32) + _A3 * _A4) ^ (-($1.tmp & 1) ^ $get($1.matrixA, ~~($get($1.swap_col, $1.i * 2 + 1) / 32) + $1.j * $1.offset)) & (_AH < 0 ? 1 >>> -_AH : 1 << _AH)); - } - } - }; - $1.createGeneratorMatrix = function() { - $1.pn = $1.Pg_sub_block - $1.matrix_rank; - $1.offset = ~~Math.ceil($1.pn / 32); - $1.effwidth = $1.offset * 32; - $1.offset_cap = ~~Math.ceil($1.Pg_sub_block / 32); - $1.G = $a($1.offset * $1.Pg_sub_block); - for (var _AT = 0, _AS = $1.offset * $1.Pg_sub_block - 1; _AT <= _AS; _AT += 1) { - $put($1.G, _AT, 0); - } - for (var _AX = 0, _AW = $1.pn - 1; _AX <= _AW; _AX += 1) { - $1.i = _AX; - var _AY = $1.G; - var _AZ = $1.Pg_sub_block; - var _Aa = $1.pn; - var _Ab = $1.i; - var _Ac = $1.offset; - var _Ad = $1.i; - var _Ag = 31 - $1.i % 32; - $put(_AY, (_AZ - _Aa + _Ab) * _Ac + ~~(_Ad / 32), $get(_AY, (_AZ - _Aa + _Ab) * _Ac + ~~(_Ad / 32)) | (_Ag < 0 ? 1 >>> -_Ag : 1 << _Ag)); - } - $1.matrix_index = $1.Pg_sub_block - $1.pn; - $1.loop0 = 0; - for (var _An = 0, _Am = ($1.Pg_sub_block - $1.pn) * $1.effwidth - 1; _An <= _Am; _An += 1) { - $1.i = _An; - if ($1.matrix_index >= $1.Pg_sub_block) { - $1.loop0 = $1.loop0 + 1; - $1.matrix_index = $1.Pg_sub_block - $1.pn; - } - if ($1.i % $1.effwidth < $1.pn) { - var _Aw = $1.G; - var _Ax = $1.i; - var _B3 = $get($1.matrixA, ~~($1.matrix_index / 32) + $1.offset_cap * $1.loop0); - var _B5 = -(31 - $1.matrix_index % 32); - var _BA = 31 - $1.i % 32; - $put(_Aw, ~~(_Ax / 32), $get(_Aw, ~~(_Ax / 32)) ^ (-((_B5 < 0 ? _B3 >>> -_B5 : _B3 << _B5) & 1) ^ $get($1.G, ~~($1.i / 32))) & (_BA < 0 ? 1 >>> -_BA : 1 << _BA)); - $1.matrix_index = $1.matrix_index + 1; - } - } - }; - $1.ldpc = function() { - $1.wr = $k[--$j]; - $1.wc = $k[--$j]; - $k[$j++] = Infinity; - var _BE = $k[--$j]; - var _BF = $k[--$j]; - $k[$j++] = _BE; - $forall(_BF, function() { - var _BG = $k[--$j]; - $k[$j++] = $f(_BG - 48); - }); - $1.data = $a(); - $1.Pn = $1.data.length; - if ($1.wr != -1) { - $1.Pg = ~~(Math.ceil(Math.ceil($1.Pn * $1.wr / $f($1.wr - $1.wc)) / $1.wr) * $1.wr); - $1.nb_sub_blocks = ~~($1.Pg / 2700) + 1; - $1.Pg_sub_block = ~~(~~($1.Pg / $1.nb_sub_blocks) / $1.wr) * $1.wr; - $1.Pn_sub_block = ~~($1.Pg_sub_block * $f($1.wr - $1.wc) / $1.wr); - $1.nb_sub_blocks = ~~($1.Pg / $1.Pg_sub_block); - $k[$j++] = "encoding_iterations"; - $k[$j++] = ~~($1.Pg / $1.Pg_sub_block); - if ($1.Pn_sub_block * $1.nb_sub_blocks < $1.Pn) { - var _Bg = $k[--$j]; - $k[$j++] = $f(_Bg - 1); - } - var _Bh = $k[--$j]; - $1[$k[--$j]] = _Bh; - $1.createMatrixA(); - } else { - $1.Pg = $1.Pn * 2; - $1.nb_sub_blocks = 1; - $1.Pg_sub_block = $1.Pg; - $1.Pn_sub_block = $1.Pn; - $1.encoding_iterations = 1; - $1.createMetadataMatrixA(); - } - $1.GaussJordan(); - $1.createGeneratorMatrix(); - $1.ecc_encoded_data = $a($1.Pg); - $1.offset = ~~Math.ceil(($1.Pg_sub_block - $1.matrix_rank) / 32); - for (var _Bs = 0, _Br = $1.encoding_iterations - 1; _Bs <= _Br; _Bs += 1) { - $1.iter = _Bs; - for (var _Bv = 0, _Bu = $1.Pg_sub_block - 1; _Bv <= _Bu; _Bv += 1) { - $1.i = _Bv; - $1.temp = 0; - $1.loop0 = 0; - $1.offset_index = $1.offset * $1.i; - for (var _C3 = $1.iter * $1.Pn_sub_block, _C2 = ($1.iter + 1) * $1.Pn_sub_block - 1; _C3 <= _C2; _C3 += 1) { - var _C9 = $get($1.G, $1.offset_index + ~~($1.loop0 / 32)); - var _CB = -(31 - $1.loop0 % 32); - $1.temp = $get($1.data, _C3) & ((_CB < 0 ? _C9 >>> -_CB : _C9 << _CB) & 1) ^ $1.temp; - $1.loop0 = $1.loop0 + 1; - } - $put($1.ecc_encoded_data, $1.i + $1.iter * $1.Pg_sub_block, $1.temp); - } - } - if ($1.encoding_iterations != $1.nb_sub_blocks) { - $1.start = $1.encoding_iterations * $1.Pn_sub_block; - $1.last_index = $1.encoding_iterations * $1.Pg_sub_block; - $1.Pg_sub_block = $1.Pg - $1.encoding_iterations * $1.Pg_sub_block; - $1.Pn_sub_block = ~~($1.Pg_sub_block * $f($1.wr - $1.wc) / $1.wr); - $1.createMatrixA(); - $1.GaussJordan(); - $1.createGeneratorMatrix(); - $1.offset = ~~Math.ceil(($1.Pg_sub_block - $1.matrix_rank) / 32); - for (var _Ca = 0, _CZ = $1.Pg_sub_block - 1; _Ca <= _CZ; _Ca += 1) { - $1.i = _Ca; - $1.temp = 0; - $1.loop0 = 0; - $1.offset_index = $1.offset * $1.i; - for (var _Cg = $1.start, _Cf = $1.Pn - 1; _Cg <= _Cf; _Cg += 1) { - var _Cm = $get($1.G, $1.offset_index + ~~($1.loop0 / 32)); - var _Co = -(31 - $1.loop0 % 32); - $1.temp = $get($1.data, _Cg) & ((_Co < 0 ? _Cm >>> -_Co : _Cm << _Co) & 1) ^ $1.temp; - $1.loop0 = $1.loop0 + 1; - } - $put($1.ecc_encoded_data, $1.i + $1.last_index, $1.temp); - } - } - $1.out = $s($1.Pg); - for (var _Cz = 0, _Cy = $1.Pg - 1; _Cz <= _Cy; _Cz += 1) { - $put($1.out, _Cz, $f($get($1.ecc_encoded_data, _Cz) + 48)); - } - $k[$j++] = $1.out; - }; - $k[$j++] = "bits"; - $k[$j++] = $1.bits; - $k[$j++] = $1.datawc; - $k[$j++] = $1.datawr; - $1.ldpc(); - var _D7 = $k[--$j]; - $1[$k[--$j]] = _D7; - $1.s0 = 0; - $1.s1 = 0; - $1.s2 = 3; - $1.s3 = 30151; - for (var _DA = $1.bits.length - 1; _DA >= 1; _DA -= 1) { - $1.l = _DA; - $1.lcg64_temper(); - var _DB = $k[--$j]; - $k[$j++] = _DB; - if (_DB < 0) { - var _DC = $k[--$j]; - $k[$j++] = $f((_DC ^ 2147483648) + 2147483648); - } - $1.r = ~~($k[--$j] / 4294967296 * ($1.l + 1)); - $put($1.bits, $1.l, $get($1.bits, $1.r)); - $put($1.bits, $1.r, $get($1.bits, $1.l)); - } - $1.tmpbits = $s($1.C); - $puti($1.tmpbits, 0, $1.bits); - $1.j = $1.bits.length; - for (var _DW = 0, _DX = ~~($f($f($1.C - $1.j) + 1) / 2); _DW < _DX; _DW++) { - $put($1.tmpbits, $1.j, 48); - if ($1.j + 1 < $1.C) { - $put($1.tmpbits, $1.j + 1, 49); - } - $1.j = $1.j + 2; - } - $1.bits = $1.tmpbits; - if ($1.colors == 4) { - $1.bi = 0; - $1.gi = 1; - $1.mi = 2; - $1.yi = 3; - $1.ki = 4; - $1.wi = 5; - $k[$j++] = Infinity; - $k[$j++] = $1.bi; - $k[$j++] = "0000FF"; - $k[$j++] = $1.gi; - $k[$j++] = "00FF00"; - $k[$j++] = $1.mi; - $k[$j++] = "FF00FF"; - $k[$j++] = $1.yi; - $k[$j++] = "FFFF00"; - $k[$j++] = $1.ki; - $k[$j++] = "000000"; - $k[$j++] = $1.wi; - $k[$j++] = "FFFFFF"; - $1.palette = $d(); - $1.metacolorindex = $a([ $1.bi, $1.gi, $1.mi, $1.yi ]); - $1.palettelayout = $a([ $1.bi, $1.gi, $1.mi, $1.yi ]); - } else { - var _E4 = new Map([ [ 8, $a([ 2, 2, 2 ]) ], [ 16, $a([ 4, 2, 2 ]) ], [ 32, $a([ 4, 4, 2 ]) ], [ 64, $a([ 4, 4, 4 ]) ], [ 128, $a([ 8, 4, 4 ]) ], [ 256, $a([ 8, 8, 4 ]) ] ]); - $1.rgbres = $get(_E4, $1.colors); - $k[$j++] = "rvals"; - $k[$j++] = $get($1.rgbres, 0); - $k[$j++] = Infinity; - var _E9 = $k[--$j]; - var _EB = $f($k[--$j] - 1); - $k[$j++] = _E9; - $k[$j++] = _EB; - for (var _ED = 0, _EC = _EB; _ED <= _EC; _ED += 1) { - var _EE = $k[--$j]; - $k[$j++] = ~~Math.round(_ED * (255 / _EE)); - $k[$j++] = _EE; - } - $j--; - var _EF = $a(); - $1[$k[--$j]] = _EF; - $k[$j++] = "gvals"; - $k[$j++] = $get($1.rgbres, 1); - $k[$j++] = Infinity; - var _EJ = $k[--$j]; - var _EL = $f($k[--$j] - 1); - $k[$j++] = _EJ; - $k[$j++] = _EL; - for (var _EN = 0, _EM = _EL; _EN <= _EM; _EN += 1) { - var _EO = $k[--$j]; - $k[$j++] = ~~Math.round(_EN * (255 / _EO)); - $k[$j++] = _EO; - } - $j--; - var _EP = $a(); - $1[$k[--$j]] = _EP; - $k[$j++] = "bvals"; - $k[$j++] = $get($1.rgbres, 2); - $k[$j++] = Infinity; - var _ET = $k[--$j]; - var _EV = $f($k[--$j] - 1); - $k[$j++] = _ET; - $k[$j++] = _EV; - for (var _EX = 0, _EW = _EV; _EX <= _EW; _EX += 1) { - var _EY = $k[--$j]; - $k[$j++] = ~~Math.round(_EX * (255 / _EY)); - $k[$j++] = _EY; - } - $j--; - var _EZ = $a(); - $1[$k[--$j]] = _EZ; - var _Eb = $1.colors; - $1.palette = new Map(); - var _Ec = $1.colors; - var _Ed = 64; - if (64 > _Ec) { - var _ = _Ec; - _Ec = _Ed; - _Ed = _; - } - $1.palettelayout = $a(_Ed); - $1.i = 0; - $1.j = 8; - $forall($1.rvals, function() { - $1.r = $k[--$j]; - $forall($1.gvals, function() { - $1.g = $k[--$j]; - $forall($1.bvals, function() { - $1.b = $k[--$j]; - var _Ep = $strcpy($s(6), "000000"); - var _Er = $cvrs($s(6), $1.r << 16 | $1.g << 8 | $1.b, 16); - $puti(_Ep, 6 - _Er.length, _Er); - $k[$j++] = _Ep; - $k[$j++] = false; - if ($eq(_Ep, "000000")) { - $1.ki = $1.i; - $j--; - $k[$j++] = true; - } - var _Et = $k[--$j]; - var _Eu = $k[--$j]; - $k[$j++] = _Eu; - $k[$j++] = _Et; - if ($eq(_Eu, "0000FF")) { - $1.bi = $1.i; - $j--; - $k[$j++] = true; - } - var _Ew = $k[--$j]; - var _Ex = $k[--$j]; - $k[$j++] = _Ex; - $k[$j++] = _Ew; - if ($eq(_Ex, "00FF00")) { - $1.gi = $1.i; - $j--; - $k[$j++] = true; - } - var _Ez = $k[--$j]; - var _F0 = $k[--$j]; - $k[$j++] = _F0; - $k[$j++] = _Ez; - if ($eq(_F0, "00FFFF")) { - $1.ci = $1.i; - $j--; - $k[$j++] = true; - } - var _F2 = $k[--$j]; - var _F3 = $k[--$j]; - $k[$j++] = _F3; - $k[$j++] = _F2; - if ($eq(_F3, "FF0000")) { - $1.ri = $1.i; - $j--; - $k[$j++] = true; - } - var _F5 = $k[--$j]; - var _F6 = $k[--$j]; - $k[$j++] = _F6; - $k[$j++] = _F5; - if ($eq(_F6, "FF00FF")) { - $1.mi = $1.i; - $j--; - $k[$j++] = true; - } - var _F8 = $k[--$j]; - var _F9 = $k[--$j]; - $k[$j++] = _F9; - $k[$j++] = _F8; - if ($eq(_F9, "FFFF00")) { - $1.yi = $1.i; - $j--; - $k[$j++] = true; - } - var _FB = $k[--$j]; - var _FC = $k[--$j]; - $k[$j++] = _FC; - $k[$j++] = _FB; - if ($eq(_FC, "FFFFFF")) { - $1.wi = $1.i; - $j--; - $k[$j++] = true; - } - if ($nt($k[--$j])) { - if ($1.colors <= 64 || ($1.colors == 128 && ($1.r == 0 || $1.r == 73 || $1.r == 182 || $1.r == 255) || $1.colors == 256 && ($1.r == 0 || $1.r == 73 || $1.r == 182 || $1.r == 255) && ($1.g == 0 || $1.g == 73 || $1.g == 182 || $1.g == 255))) { - $put($1.palettelayout, $1.j, $1.i); - $1.j = $1.j + 1; - } - } - $put($1.palette, $1.i, $k[--$j]); - $1.i = $1.i + 1; - }); - }); - }); - $puti($1.palettelayout, 0, $a([ $1.ki, $1.bi, $1.gi, $1.ci, $1.ri, $1.mi, $1.yi, $1.wi ])); - $1.metacolorindex = $a([ $1.ki, $1.bi, $1.gi, $1.ci, $1.ri, $1.mi, $1.yi, $1.wi ]); - } - $k[$j++] = Infinity; - for (var _Fx = 0, _Fy = $1.rows * $1.cols; _Fx < _Fy; _Fx++) { - $k[$j++] = -1; - } - $1.pixs = $a(); - $1.jmv = function() { - var _G1 = $k[--$j]; - var _G2 = $k[--$j]; - $k[$j++] = $f(_G2 + _G1 * $1.cols); - }; - if (!$1.slave) { - $1.fpat = $a([ $a([ 1, 1, 1, 0, 0 ]), $a([ 1, 2, 2, 0, 0 ]), $a([ 1, 2, 1, 2, 1 ]), $a([ 0, 0, 2, 2, 1 ]), $a([ 0, 0, 1, 1, 1 ]) ]); - $1.fmap = $a([ $a([ -1, $1.bi, $1.yi ]), $a([ -1, $1.yi, $1.bi ]), $a([ -1, $1.gi, $1.mi ]), $a([ -1, $1.mi, $1.gi ]) ]); - } else { - $1.fpat = $a([ $a([ 0, 0, 0, 0, 0 ]), $a([ 0, 2, 2, 0, 0 ]), $a([ 0, 2, 1, 2, 0 ]), $a([ 0, 0, 2, 2, 0 ]), $a([ 0, 0, 0, 0, 0 ]) ]); - $1.fmap = $a([ $a([ -1, $1.ki, $1.wi ]), $a([ -1, $1.ki, $1.wi ]), $a([ -1, $1.ki, $1.wi ]), $a([ -1, $1.ki, $1.wi ]) ]); - } - for (var _Gg = 0; _Gg <= 4; _Gg += 1) { - $1.y = _Gg; - for (var _Gh = 0; _Gh <= 4; _Gh += 1) { - $1.x = _Gh; - $1.fpb = $get($get($1.fpat, $1.y), $1.x); - $k[$j++] = $1.pixs; - $k[$j++] = $1.x + 1; - $k[$j++] = $1.y + 1; - $1.jmv(); - var _Gu = $k[--$j]; - $put($k[--$j], _Gu, $get($get($1.fmap, 0), $1.fpb)); - $k[$j++] = $1.pixs; - $k[$j++] = $1.x + 1; - $k[$j++] = $f($f($1.rows - $1.y) - 2); - $1.jmv(); - var _H4 = $k[--$j]; - $put($k[--$j], _H4, $get($get($1.fmap, 1), $1.fpb)); - $k[$j++] = $1.pixs; - $k[$j++] = $f($f($1.x + $1.cols) - 6); - $k[$j++] = $1.y + 1; - $1.jmv(); - var _HE = $k[--$j]; - $put($k[--$j], _HE, $get($get($1.fmap, 2), $1.fpb)); - $k[$j++] = $1.pixs; - $k[$j++] = $f($f($1.x + $1.cols) - 6); - $k[$j++] = $f($f($1.rows - $1.y) - 2); - $1.jmv(); - var _HP = $k[--$j]; - $put($k[--$j], _HP, $get($get($1.fmap, 3), $1.fpb)); - } - } - $1.algnpat0 = $a([ $a([ $1.ki, $1.ki, -1 ]), $a([ $1.ki, $1.wi, $1.ki ]), $a([ -1, $1.ki, $1.ki ]) ]); - $1.algnpat1 = $a([ $a([ -1, $1.ki, $1.ki ]), $a([ $1.ki, $1.wi, $1.ki ]), $a([ $1.ki, $1.ki, -1 ]) ]); - $1.num = ~~Math.round($1.cols / 16) - 1; - $1.algnrpos = $a([ 3, 17 ]); - if ($1.num > 0) { - $k[$j++] = Infinity; - for (var _Hs = 0, _Hr = $1.num; _Hs <= _Hr; _Hs += 1) { - $k[$j++] = ~~(_Hs * ($f($1.cols - 7) / $1.num)) + 3; - } - $1.algnrpos = $a(); - } - $1.num = ~~Math.round($1.rows / 16) - 1; - $1.algncpos = $a([ 3, 17 ]); - if ($1.num > 0) { - $k[$j++] = Infinity; - for (var _I1 = 0, _I0 = $1.num; _I1 <= _I0; _I1 += 1) { - $k[$j++] = ~~(_I1 * ($f($1.rows - 7) / $1.num)) + 3; - } - $1.algncpos = $a(); - } - $1.putalgnpat = function() { - $1.pp = $k[--$j]; - $1.py = $k[--$j]; - $1.px = $k[--$j]; - for (var _I8 = 0; _I8 <= 2; _I8 += 1) { - $1.pb = _I8; - for (var _I9 = 0; _I9 <= 2; _I9 += 1) { - $1.pa = _I9; - $k[$j++] = $1.pixs; - $k[$j++] = $f($1.px + $1.pa); - $k[$j++] = $f($1.py + $1.pb); - $1.jmv(); - var _IK = $k[--$j]; - $put($k[--$j], _IK, $get($get($1.pp, $1.pb), $1.pa)); - } - } - }; - for (var _IO = 0, _IN = $1.algncpos.length - 1; _IO <= _IN; _IO += 1) { - $1.j = _IO; - $1.y = $get($1.algncpos, $1.j); - for (var _IU = 0, _IT = $1.algnrpos.length - 1; _IU <= _IT; _IU += 1) { - $1.i = _IU; - $1.x = $get($1.algnrpos, $1.i); - $k[$j++] = $1.pixs; - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $1.jmv(); - var _Ib = $k[--$j]; - if ($get($k[--$j], _Ib) == -1) { - $k[$j++] = $f($1.x - 1); - $k[$j++] = $f($1.y - 1); - if (($1.i + $1.j) % 2 == 0) { - $k[$j++] = $1.algnpat0; - } else { - $k[$j++] = $1.algnpat1; - } - $1.putalgnpat(); - } - } - } - if (!$1.slave) { - var _JT = $a([ $a([ 6, 1 ]), $a([ 6, 2 ]), $a([ 6, 3 ]), $a([ 6, 4 ]), $a([ 6, 5 ]), $a([ 6, 6 ]), $a([ 5, 6 ]), $a([ 4, 6 ]), $a([ 3, 6 ]), $a([ 2, 6 ]), $a([ 1, 6 ]), $a([ 7, 1 ]), $a([ 7, 2 ]), $a([ 7, 3 ]), $a([ 7, 4 ]), $a([ 7, 5 ]), $a([ 7, 6 ]), $a([ 7, 7 ]), $a([ 6, 7 ]), $a([ 5, 7 ]), $a([ 4, 7 ]), $a([ 3, 7 ]), $a([ 2, 7 ]), $a([ 1, 7 ]), $a([ 8, 1 ]), $a([ 8, 2 ]), $a([ 8, 3 ]), $a([ 8, 4 ]), $a([ 8, 5 ]), $a([ 8, 6 ]), $a([ 8, 7 ]), $a([ 8, 8 ]), $a([ 7, 8 ]), $a([ 6, 8 ]), $a([ 5, 8 ]), $a([ 4, 8 ]), $a([ 3, 8 ]), $a([ 2, 8 ]), $a([ 1, 8 ]), $a([ 9, 1 ]), $a([ 9, 2 ]), $a([ 9, 3 ]), $a([ 9, 4 ]), $a([ 9, 5 ]) ]); - for (var _JU = 0, _JV = _JT.length; _JU < _JV; _JU++) { - $aload($get(_JT, _JU)); - $1.y = $k[--$j]; - $1.x = $k[--$j]; - $k[$j++] = $a([ $1.x, $1.y ]); - $k[$j++] = $a([ -$1.x, $1.y ]); - $k[$j++] = $a([ -$1.x, -$1.y ]); - $k[$j++] = $a([ $1.x, -$1.y ]); - } - $astore($a(176)); - $1.metadatamap = $k[--$j]; - $1.palettemap1 = $a([ $a([ 4, 1 ]), $a([ 4, 2 ]), $a([ 5, 1 ]), $a([ 5, 2 ]), $a([ 2, 4 ]), $a([ 2, 5 ]), $a([ 1, 4 ]), $a([ 1, 5 ]), $a([ -2, 1 ]), $a([ -2, 2 ]), $a([ -1, 1 ]), $a([ -1, 2 ]), $a([ -4, 4 ]), $a([ -4, 5 ]), $a([ -5, 4 ]), $a([ -5, 5 ]) ]); - $1.palettemap2 = $a([ $a([ -4, -5 ]), $a([ -4, -4 ]), $a([ -5, -5 ]), $a([ -5, -4 ]), $a([ -2, -2 ]), $a([ -2, -1 ]), $a([ -1, -2 ]), $a([ -1, -1 ]), $a([ 2, -5 ]), $a([ 2, -4 ]), $a([ 1, -5 ]), $a([ 1, -4 ]), $a([ 4, -2 ]), $a([ 4, -1 ]), $a([ 5, -2 ]), $a([ 5, -1 ]) ]); - } else { - $k[$j++] = Infinity; - for (var _KL = 1; _KL <= 19; _KL += 1) { - $1.i = _KL; - $k[$j++] = $a([ 0, $1.i ]); - $k[$j++] = $a([ 1, $1.i ]); - } - for (var _KQ = 5; _KQ <= 12; _KQ += 1) { - $1.i = _KQ; - $k[$j++] = $a([ 2, $1.i ]); - $k[$j++] = $a([ 3, $1.i ]); - } - $1.metadatamap = $a(); - $k[$j++] = Infinity; - for (var _KW = 5; _KW <= 12; _KW += 1) { - $k[$j++] = Infinity; - $k[$j++] = 4; - $k[$j++] = _KW; - var _KZ = $a(); - $k[$j++] = _KZ; - } - for (var _Ka = 12; _Ka >= 5; _Ka -= 1) { - $k[$j++] = Infinity; - $k[$j++] = 5; - $k[$j++] = _Ka; - var _Kd = $a(); - $k[$j++] = _Kd; - } - for (var _Ke = 5; _Ke <= 12; _Ke += 1) { - $k[$j++] = Infinity; - $k[$j++] = 6; - $k[$j++] = _Ke; - var _Kh = $a(); - $k[$j++] = _Kh; - } - for (var _Ki = 12; _Ki >= 5; _Ki -= 1) { - $k[$j++] = Infinity; - $k[$j++] = 7; - $k[$j++] = _Ki; - var _Kl = $a(); - $k[$j++] = _Kl; - } - $1.palettemap1 = $a(); - $k[$j++] = Infinity; - var _Kn = $1.palettemap1; - for (var _Ko = 0, _Kp = _Kn.length; _Ko < _Kp; _Ko++) { - $k[$j++] = Infinity; - var _Ks = $get(_Kn, _Ko); - $aload(_Ks); - var _Kt = $k[--$j]; - var _Ku = $k[--$j]; - $k[$j++] = -_Ku; - $k[$j++] = -_Kt; - var _Kv = $a(); - $k[$j++] = _Kv; - } - $1.palettemap2 = $a(); - } - var _Kx = $1.metadatamap; - for (var _Ky = 0, _Kz = _Kx.length; _Ky < _Kz; _Ky++) { - var _L0 = $get(_Kx, _Ky); - var _L1 = $get(_L0, 0); - $k[$j++] = _L0; - $k[$j++] = _L1; - if (_L1 < 0) { - var _L3 = $k[--$j]; - var _L4 = $k[--$j]; - $put(_L4, 0, $f($f(_L3 + $1.cols) - 1)); - $k[$j++] = _L4; - } else { - $j--; - } - var _L5 = $k[--$j]; - var _L6 = $get(_L5, 1); - $k[$j++] = _L5; - $k[$j++] = _L6; - if (_L6 < 0) { - var _L8 = $k[--$j]; - var _L9 = $k[--$j]; - $put(_L9, 1, $f($f(_L8 + $1.rows) - 1)); - $k[$j++] = _L9; - } else { - $j--; - } - $j--; - } - var _LA = $1.palettemap1; - for (var _LB = 0, _LC = _LA.length; _LB < _LC; _LB++) { - var _LD = $get(_LA, _LB); - var _LE = $get(_LD, 0); - $k[$j++] = _LD; - $k[$j++] = _LE; - if (_LE < 0) { - var _LG = $k[--$j]; - var _LH = $k[--$j]; - $put(_LH, 0, $f($f(_LG + $1.cols) - 1)); - $k[$j++] = _LH; - } else { - $j--; - } - var _LI = $k[--$j]; - var _LJ = $get(_LI, 1); - $k[$j++] = _LI; - $k[$j++] = _LJ; - if (_LJ < 0) { - var _LL = $k[--$j]; - var _LM = $k[--$j]; - $put(_LM, 1, $f($f(_LL + $1.rows) - 1)); - $k[$j++] = _LM; - } else { - $j--; - } - $j--; - } - var _LN = $1.palettemap2; - for (var _LO = 0, _LP = _LN.length; _LO < _LP; _LO++) { - var _LQ = $get(_LN, _LO); - var _LR = $get(_LQ, 0); - $k[$j++] = _LQ; - $k[$j++] = _LR; - if (_LR < 0) { - var _LT = $k[--$j]; - var _LU = $k[--$j]; - $put(_LU, 0, $f($f(_LT + $1.cols) - 1)); - $k[$j++] = _LU; - } else { - $j--; - } - var _LV = $k[--$j]; - var _LW = $get(_LV, 1); - $k[$j++] = _LV; - $k[$j++] = _LW; - if (_LW < 0) { - var _LY = $k[--$j]; - var _LZ = $k[--$j]; - $put(_LZ, 1, $f($f(_LY + $1.rows) - 1)); - $k[$j++] = _LZ; - } else { - $j--; - } - $j--; - } - for (var _Lc = 0, _Lb = $f($1.nummetamodules - 1); _Lc <= _Lb; _Lc += 1) { - $k[$j++] = $1.pixs; - $aload($get($1.metadatamap, _Lc)); - $1.jmv(); - var _Lg = $k[--$j]; - $put($k[--$j], _Lg, 0); - } - if (!$1.slave) { - var _Lj = $1.colors; - var _Lk = 16; - if (16 > _Lj) { - var _ = _Lj; - _Lj = _Lk; - _Lk = _; - } - for (var _Lm = 0, _Ll = _Lk - 1; _Lm <= _Ll; _Lm += 1) { - $1.i = _Lm; - var _Lp = $get($1.palettelayout, $1.i); - $k[$j++] = _Lp; - $k[$j++] = $1.pixs; - $k[$j++] = _Lp; - $aload($get($1.palettemap1, $1.i)); - $1.jmv(); - var _Lu = $k[--$j]; - var _Lv = $k[--$j]; - $put($k[--$j], _Lu, _Lv); - var _Ly = $k[--$j]; - $k[$j++] = $1.pixs; - $k[$j++] = _Ly; - $aload($get($1.palettemap2, $1.i)); - $1.jmv(); - var _M2 = $k[--$j]; - var _M3 = $k[--$j]; - $put($k[--$j], _M2, _M3); - } - $1.i = 16; - } else { - $1.i = 0; - } - $1.j = $1.nummetamodules; - for (var _M9 = $1.i, _M8 = $1.palettelayout.length - 1; _M9 <= _M8; _M9 += 2) { - $1.i = _M9; - var _MC = $get($1.palettelayout, $1.i); - $k[$j++] = _MC; - $k[$j++] = $1.pixs; - $k[$j++] = _MC; - $aload($get($1.metadatamap, $1.j)); - $1.jmv(); - var _MH = $k[--$j]; - var _MI = $k[--$j]; - $put($k[--$j], _MH, _MI); - var _ML = $k[--$j]; - $k[$j++] = $1.pixs; - $k[$j++] = _ML; - $aload($get($1.metadatamap, $f($1.j + 2))); - $1.jmv(); - var _MP = $k[--$j]; - var _MQ = $k[--$j]; - $put($k[--$j], _MP, _MQ); - var _MU = $get($1.palettelayout, $1.i + 1); - $k[$j++] = _MU; - $k[$j++] = $1.pixs; - $k[$j++] = _MU; - $aload($get($1.metadatamap, $f($1.j + 1))); - $1.jmv(); - var _MZ = $k[--$j]; - var _Ma = $k[--$j]; - $put($k[--$j], _MZ, _Ma); - var _Md = $k[--$j]; - $k[$j++] = $1.pixs; - $k[$j++] = _Md; - $aload($get($1.metadatamap, $f($1.j + 3))); - $1.jmv(); - var _Mh = $k[--$j]; - var _Mi = $k[--$j]; - $put($k[--$j], _Mh, _Mi); - $1.j = $f($1.j + 4); - } - var _NA = $a([ function() { - var _Ml = $k[--$j]; - var _Mm = $k[--$j]; - $k[$j++] = $f(_Mm + _Ml) % $1.colors; - }, function() { - $j--; - var _Mp = $k[--$j]; - $k[$j++] = _Mp % $1.colors; - }, function() { - var _Mq = $k[--$j]; - var _Mr = $k[--$j]; - $k[$j++] = _Mq; - $k[$j++] = _Mr; - $j--; - var _Mt = $k[--$j]; - $k[$j++] = _Mt % $1.colors; - }, function() { - var _Mu = $k[--$j]; - var _Mv = $k[--$j]; - $k[$j++] = (~~(_Mu / 3) + ~~(_Mv / 2)) % $1.colors; - }, function() { - var _Mx = $k[--$j]; - var _My = $k[--$j]; - $k[$j++] = (~~(_Mx / 2) + ~~(_My / 3)) % $1.colors; - }, function() { - var _N0 = $k[--$j]; - var _N2 = $f($k[--$j] + _N0); - $k[$j++] = (~~(_N2 / 2) + ~~(_N2 / 3)) % $1.colors; - }, function() { - var _N4 = $k[--$j]; - var _N5 = $k[--$j]; - $k[$j++] = $f(_N4 * (_N5 * _N5) % 7 + $f(_N4 + _N5 * _N5) * 2 % 19) % $1.colors; - }, function() { - var _N7 = $k[--$j]; - var _N8 = $k[--$j]; - $k[$j++] = $f(_N8 * (_N7 * _N7) % 5 + $f(_N7 * _N7 + _N8 * 2) % 13) % $1.colors; - } ]); - $1.maskfuncs = _NA; - if ($1.mask != -1) { - $1.maskfuncs = $a([ $get($1.maskfuncs, $1.mask) ]); - $1.bestmaskval = $1.mask; - } - $1.masks = $a($1.maskfuncs.length); - for (var _NL = 0, _NK = $1.masks.length - 1; _NL <= _NK; _NL += 1) { - $1.m = _NL; - $1.mask = $a($1.rows * $1.cols); - for (var _NR = 0, _NQ = $f($1.rows - 1); _NR <= _NQ; _NR += 1) { - $1.j = _NR; - for (var _NU = 0, _NT = $f($1.cols - 1); _NU <= _NT; _NU += 1) { - $1.i = _NU; - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.jmv(); - var _NY = $k[--$j]; - if ($get($k[--$j], _NY) == -1) { - $k[$j++] = $1.i; - $k[$j++] = $1.j; - if ($get($1.maskfuncs, $1.m)() === true) { - break; - } - } else { - $k[$j++] = 0; - } - $k[$j++] = $1.mask; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.jmv(); - var _Nj = $k[--$j]; - var _Nk = $k[--$j]; - $put(_Nk, _Nj, $k[--$j]); - } - } - $put($1.masks, $1.m, $1.mask); - } - $1.posx = 0; - $1.posy = 0; - $1.i = 0; - for (;;) { - if ($1.posx == $1.cols) { - break; - } - $k[$j++] = $1.pixs; - $k[$j++] = $1.posx; - $k[$j++] = $1.posy; - $1.jmv(); - var _Nu = $k[--$j]; - if ($get($k[--$j], _Nu) == -1) { - var _O0 = $geti($1.bits, $1.i, $1.databpm); - $k[$j++] = 0; - for (var _O1 = 0, _O2 = _O0.length; _O1 < _O2; _O1++) { - var _O4 = $k[--$j]; - $k[$j++] = $f(_O4 + $f($get(_O0, _O1) - 48)) * 2; - } - var _O5 = $k[--$j]; - $k[$j++] = ~~(_O5 / 2); - $k[$j++] = $1.pixs; - $k[$j++] = $1.posx; - $k[$j++] = $1.posy; - $1.jmv(); - var _O9 = $k[--$j]; - var _OA = $k[--$j]; - $put(_OA, _O9, $k[--$j]); - $1.i = $1.i + $1.databpm; - } - $1.posy = $1.posy + 1; - if ($1.posy == $1.rows) { - $1.posy = 0; - $1.posx = $1.posx + 1; - } - } - $1.evalrle = function() { - $1.scrle = $k[--$j]; - $1.scr1 = 0; - $1.scr3 = 0; - for (var _OL = 0, _OK = $1.scrle.length - 2; _OL <= _OK; _OL += 2) { - $1.j = _OL; - if ($get($1.scrle, $1.j + 1) != -1) { - var _OR = $get($1.scrle, $1.j); - $k[$j++] = _OR; - if (_OR >= 5) { - $1.scr1 = $f($f($k[--$j] - 2) + $1.scr1); - } else { - $j--; - } - if ($1.j >= 4 && $1.j <= $1.scrle.length - 5) { - var _OZ = $geti($1.scrle, $1.j - 4, 10); - $k[$j++] = _OZ; - for (var _Oa = 0, _Ob = _OZ.length; _Oa < _Ob; _Oa++) { - $k[$j++] = $get(_OZ, _Oa) == 1; - } - $j--; - for (var _Od = 0, _Oe = 4; _Od < _Oe; _Od++) { - var _Of = $k[--$j]; - var _Og = $k[--$j]; - $k[$j++] = _Of; - $k[$j++] = _Og; - $j--; - var _Oh = $k[--$j]; - var _Oi = $k[--$j]; - $k[$j++] = $an(_Oi, _Oh); - } - if ($k[--$j]) { - $k[$j++] = Infinity; - var _Ok = $k[--$j]; - var _Ol = $k[--$j]; - $k[$j++] = _Ok; - $aload(_Ol); - var _Om = $k[--$j]; - var _On = $k[--$j]; - var _Oo = $k[--$j]; - var _Op = $k[--$j]; - var _Oq = $k[--$j]; - var _Or = $k[--$j]; - var _Os = $k[--$j]; - var _Ot = $k[--$j]; - var _Ou = $k[--$j]; - $k[$j++] = _Ou; - $k[$j++] = _Ot; - $k[$j++] = _Os; - $k[$j++] = _Or; - $k[$j++] = _Oq; - $k[$j++] = _Op; - $k[$j++] = _Oo; - $k[$j++] = _On; - $k[$j++] = _Om; - if ($eq(_Ou, _Oq) && $eq(_Ou, _Om) && $eq(_Os, _Oo)) { - var _Ov = $k[--$j]; - var _Ow = $k[--$j]; - var _Ox = $k[--$j]; - $1.c4 = _Ox; - $1.c5 = _Ov; - $k[$j++] = _Ox; - $k[$j++] = _Ow; - if ($1.c4 == $1.bi && $1.c5 == $1.yi || ($1.c4 == $1.yi && $1.c5 == $1.bi || ($1.c4 == $1.gi && $1.c5 == $1.mi || $1.c4 == $1.mi && $1.c5 == $1.gi))) { - $1.scr3 = $1.scr3 + 100; - } - } - $cleartomark(); - } else { - $j--; - } - } - } - } - $k[$j++] = $1.scr1; - $k[$j++] = $1.scr3; - }; - $1.evalmask = function() { - $1.sym = $k[--$j]; - $1.n1 = 0; - $1.n2 = 0; - $1.n3 = 0; - var _PI = $1.rows; - var _PJ = $1.cols; - if (_PI < _PJ) { - var _ = _PJ; - _PJ = _PI; - _PI = _; - } - $1.rle = $a($f(_PI * 2 + 2)); - $1.lastpairs = $a($1.cols); - $1.thispairs = $a($1.cols); - for (var _PR = 0, _PQ = $f($1.cols - 1); _PR <= _PQ; _PR += 1) { - $1.i = _PR; - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = -1; - for (var _PX = $1.i, _PY = $1.cols, _PW = $f($1.rows * $1.cols - 1); _PY < 0 ? _PX >= _PW : _PX <= _PW; _PX += _PY) { - var _Pa = $get($1.sym, _PX); - var _Pb = $k[--$j]; - $k[$j++] = _Pb; - $k[$j++] = _Pa; - if ($eq(_Pb, _Pa)) { - $j--; - var _Pc = $k[--$j]; - var _Pd = $k[--$j]; - $k[$j++] = $f(_Pd + 1); - $k[$j++] = _Pc; - } else { - var _Pe = $k[--$j]; - $k[$j++] = 1; - $k[$j++] = _Pe; - } - } - var _Pg = $counttomark() + 2; - $astore($geti($1.rle, 0, _Pg - 2)); - $1.evalrle(); - $1.n3 = $f($k[--$j] + $1.n3); - $1.n1 = $f($k[--$j] + $1.n1); - $j--; - } - for (var _Po = 0, _Pn = $f($1.rows - 1); _Po <= _Pn; _Po += 1) { - $1.i = _Po; - $1.symrow = $geti($1.sym, $1.i * $1.cols, $1.cols); - $k[$j++] = Infinity; - var _Pu = $1.symrow; - $k[$j++] = 0; - $k[$j++] = -1; - for (var _Pv = 0, _Pw = _Pu.length; _Pv < _Pw; _Pv++) { - var _Px = $get(_Pu, _Pv); - var _Py = $k[--$j]; - $k[$j++] = _Py; - $k[$j++] = _Px; - if ($eq(_Py, _Px)) { - $j--; - var _Pz = $k[--$j]; - var _Q0 = $k[--$j]; - $k[$j++] = $f(_Q0 + 1); - $k[$j++] = _Pz; - } else { - var _Q1 = $k[--$j]; - $k[$j++] = 1; - $k[$j++] = _Q1; - } - } - var _Q3 = $counttomark() + 2; - $astore($geti($1.rle, 0, _Q3 - 2)); - $1.evalrle(); - $1.n3 = $f($k[--$j] + $1.n3); - $1.n1 = $f($k[--$j] + $1.n1); - $j--; - var _Q9 = $1.thispairs; - $1.thispairs = $1.lastpairs; - $1.lastpairs = _Q9; - var _QB = $1.symrow; - $k[$j++] = -1; - for (var _QC = 0, _QD = _QB.length; _QC < _QD; _QC++) { - var _QE = $get(_QB, _QC); - var _QF = $k[--$j]; - $k[$j++] = _QE; - $k[$j++] = _QF; - if ($ne(_QE, _QF)) { - $j--; - var _QG = $k[--$j]; - $k[$j++] = -1; - $k[$j++] = _QG; - } - } - $j--; - $astore($1.thispairs); - $j--; - if ($1.i > 0) { - $k[$j++] = Infinity; - $aload($1.lastpairs); - $aload($1.thispairs); - $k[$j++] = $1.n2; - for (var _QN = 0, _QO = $1.cols; _QN < _QO; _QN++) { - var _QP = $k[--$j]; - var _QQ = $k[--$j]; - $k[$j++] = _QP; - $k[$j++] = _QQ; - if (_QQ != -1) { - var _QS = $k[$j - 1 - $f($1.cols + 1)]; - if ($eq($k[--$j], _QS)) { - var _QU = $k[--$j]; - $k[$j++] = $f(_QU + 3); - } - } else { - $j--; - } - } - $1.n2 = $k[--$j]; - $cleartomark(); - } - } - $k[$j++] = $f($f($1.n1 + $1.n2) + $1.n3); - }; - $1.bestscore = 999999999; - for (var _Qb = 0, _Qa = $1.masks.length - 1; _Qb <= _Qa; _Qb += 1) { - $1.m = _Qb; - $1.masksym = $a($1.rows * $1.cols); - for (var _Qi = 0, _Qh = $f($1.rows * $1.cols - 1); _Qi <= _Qh; _Qi += 1) { - $1.i = _Qi; - $put($1.masksym, $1.i, $xo($get($1.pixs, $1.i), $get($get($1.masks, $1.m), $1.i))); - } - if ($1.masks.length != 1) { - $k[$j++] = $1.masksym; - $1.evalmask(); - $1.score = $k[--$j]; - if ($1.score < $1.bestscore) { - $1.bestsym = $1.masksym; - $1.bestmaskval = $1.m; - $1.bestscore = $1.score; - } - } else { - $1.bestsym = $1.masksym; - } - } - $1.pixs = $1.bestsym; - $1.metamask = $1.bestmaskval; - $1.addtometapart = function() { - var _R4 = $k[--$j]; - $puti($1.metapart, $1.p, _R4); - $1.p = _R4.length + $1.p; - }; - $1.addtometabits = function() { - var _R8 = $k[--$j]; - $puti($1.metabits, $1.q, _R8); - $1.q = _R8.length + $1.q; - }; - $1.metapart = $s(40); - $1.metabits = $s($1.nummetabits); - $1.p = 0; - $1.q = 0; - if (!$1.slave) { - $k[$j++] = ~~Math.round(Math.log($1.colors) / Math.log(2)) - 1; - $k[$j++] = 3; - $1.tofixedbits(); - $1.addtometapart(); - $k[$j++] = $geti($1.metapart, 0, $1.p); - $k[$j++] = 2; - $k[$j++] = -1; - $1.ldpc(); - $1.addtometabits(); - $1.p = 0; - $k[$j++] = $1.metass; - $k[$j++] = 1; - $1.tofixedbits(); - $1.addtometapart(); - $k[$j++] = $1.metavf; - $k[$j++] = 2; - $1.tofixedbits(); - $1.addtometapart(); - $k[$j++] = $1.metamask; - $k[$j++] = 3; - $1.tofixedbits(); - $1.addtometapart(); - if ($1.hasslaves) { - $k[$j++] = "1"; - } else { - $k[$j++] = "0"; - } - $1.addtometapart(); - $k[$j++] = $geti($1.metapart, 0, $1.p); - $k[$j++] = 2; - $k[$j++] = -1; - $1.ldpc(); - $1.addtometabits(); - $1.p = 0; - if ($1.metass == 0) { - $k[$j++] = $f($f(~~($f($1.cols - 17) / 4) - $get($a([ 0, 4, 8, 16 ]), $1.metavf)) - 1); - $k[$j++] = $1.metavlen; - $1.tofixedbits(); - $1.addtometapart(); - } else { - $k[$j++] = ~~($f($1.cols - 17) / 4) - 1; - $k[$j++] = ~~($1.metavlen / 2); - $1.tofixedbits(); - $1.addtometapart(); - $k[$j++] = ~~($f($1.rows - 17) / 4) - 1; - $k[$j++] = ~~($1.metavlen / 2); - $1.tofixedbits(); - $1.addtometapart(); - } - $k[$j++] = $1.datawc - 3; - $k[$j++] = ~~($1.metaelen / 2); - $1.tofixedbits(); - $1.addtometapart(); - $k[$j++] = $1.datawr - 4; - $k[$j++] = ~~($1.metaelen / 2); - $1.tofixedbits(); - $1.addtometapart(); - if ($1.hasslaves) { - $k[$j++] = 0; - $k[$j++] = 4; - $1.tofixedbits(); - $1.addtometapart(); - } - $k[$j++] = $geti($1.metapart, 0, $1.p); - $k[$j++] = 2; - $k[$j++] = -1; - $1.ldpc(); - $1.addtometabits(); - $1.p = 0; - } else { - var _Rk = $1.sameshape ? 0 : 1; - $k[$j++] = _Rk; - $k[$j++] = 1; - $1.tofixedbits(); - $1.addtometapart(); - var _Rm = $1.sameecc ? 0 : 1; - $k[$j++] = _Rm; - $k[$j++] = 1; - $1.tofixedbits(); - $1.addtometapart(); - var _Ro = $1.hasslaves ? 1 : 0; - $k[$j++] = _Ro; - $k[$j++] = 1; - $1.tofixedbits(); - $1.addtometapart(); - $k[$j++] = $geti($1.metapart, 0, $1.p); - $k[$j++] = 2; - $k[$j++] = -1; - $1.ldpc(); - $1.addtometabits(); - $1.p = 0; - if (!$1.sameshape) { - $k[$j++] = ~~(($1.diffside - 17) / 4) - 1; - $k[$j++] = 5; - $1.tofixedbits(); - $1.addtometapart(); - } - if ($1.hasslaves) { - $k[$j++] = 0; - $k[$j++] = 3; - $1.tofixedbits(); - $1.addtometapart(); - } - $k[$j++] = $geti($1.metapart, 0, $1.p); - $k[$j++] = 2; - $k[$j++] = -1; - $1.ldpc(); - $1.addtometabits(); - $1.p = 0; - if (!$1.sameecc) { - $k[$j++] = $1.datawc - 3; - $k[$j++] = ~~($1.metaelen / 2); - $1.tofixedbits(); - $1.addtometapart(); - $k[$j++] = $1.datawr - 4; - $k[$j++] = ~~($1.metaelen / 2); - $1.tofixedbits(); - $1.addtometapart(); - } - $k[$j++] = $geti($1.metapart, 0, $1.p); - $k[$j++] = 2; - $k[$j++] = -1; - $1.ldpc(); - $1.addtometabits(); - $1.p = 0; - } - for (var _S9 = $1.q, _S8 = $f($1.nummetabits - 1); _S9 <= _S8; _S9 += 1) { - $put($1.metabits, _S9, 48); - } - $1.i = 0; - $1.j = 0; - if (!$1.slave) { - var _SE = $geti($1.metabits, $1.i, 6); - for (var _SF = 0, _SG = _SE.length; _SF < _SG; _SF++) { - $k[$j++] = $get(_SE, _SF); - if ($1.colors == 4) { - $k[$j++] = $a([ $1.bi, $1.yi ]); - } else { - $k[$j++] = $a([ $1.ki, $1.wi ]); - } - var _SP = $k[--$j]; - var _SR = $get(_SP, $f($k[--$j] - 48)); - $k[$j++] = _SR; - $k[$j++] = $1.pixs; - $aload($get($1.metadatamap, $1.j)); - $1.jmv(); - var _SW = $k[--$j]; - var _SX = $k[--$j]; - $put(_SX, _SW, $k[--$j]); - $1.j = $1.j + 1; - } - $1.i = $1.i + 6; - } - for (var _Se = 0, _Sf = ~~($f($1.nummetabits - $1.i) / $1.metabpm); _Se < _Sf; _Se++) { - var _Sj = $geti($1.metabits, $1.i, $1.metabpm); - $k[$j++] = 0; - for (var _Sk = 0, _Sl = _Sj.length; _Sk < _Sl; _Sk++) { - var _Sn = $k[--$j]; - $k[$j++] = $f(_Sn + $f($get(_Sj, _Sk) - 48)) * 2; - } - var _Sq = $get($1.metacolorindex, ~~($k[--$j] / 2)); - $k[$j++] = _Sq; - $k[$j++] = $1.pixs; - $aload($get($1.metadatamap, $1.j)); - $1.jmv(); - var _Sv = $k[--$j]; - var _Sw = $k[--$j]; - $put(_Sw, _Sv, $k[--$j]); - $1.i = $f($1.i + $1.metabpm); - $1.j = $1.j + 1; - } - var _T8 = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", $1.cols ], [ "pixy", $1.rows ], [ "colormap", $1.palette ], [ "height", $1.rows * 2 / 72 ], [ "width", $1.cols * 2 / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _T8; - if (!$1.dontdraw) { - $0.renmatrix(); - } - }; - $0["gs1-cc"] = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.parse = false; - $1.dontlint = false; - $1.dontdraw = false; - $1.ccversion = "a"; - $1.cccolumns = -1; - $1.lintype = ""; - $1.linwidth = -1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.cccolumns = ~~$1.cccolumns; - $1.linwidth = ~~$1.linwidth; - if ($1.cccolumns == -1) { - $k[$j++] = Infinity; - $k[$j++] = "ean13"; - $k[$j++] = 4; - $k[$j++] = "upca"; - $k[$j++] = 4; - $k[$j++] = "ean8"; - $k[$j++] = 3; - $k[$j++] = "upce"; - $k[$j++] = 2; - $k[$j++] = "gs1-128"; - if ($ne($1.ccversion, "c")) { - $k[$j++] = 4; - } else { - $k[$j++] = ~~(($1.linwidth - 52) / 17); - } - $k[$j++] = "databaromni"; - $k[$j++] = 4; - $k[$j++] = "databarstacked"; - $k[$j++] = 2; - $k[$j++] = "databarstackedomni"; - $k[$j++] = 2; - $k[$j++] = "databartruncated"; - $k[$j++] = 4; - $k[$j++] = "databarlimited"; - $k[$j++] = 3; - $k[$j++] = "databarexpanded"; - $k[$j++] = 4; - $k[$j++] = "databarexpandedstacked"; - $k[$j++] = 4; - $1.cccolumns = $get($d(), $1.lintype); - } - $1.expand = function() { - var _E = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _E; - $k[$j++] = $1.fncvals; - $0.parseinput(); - }; - $1.ais = $a([]); - $1.vals = $a([]); - var _I = $1.barcode; - $k[$j++] = $geti(_I, 1, _I.length - 1); - for (;;) { - var _K = $k[--$j]; - $k[$j++] = _K; - if ($eq(_K, "")) { - break; - } - $search($k[--$j], ")"); - $j--; - var _M = $k[--$j]; - var _N = $k[--$j]; - $k[$j++] = _M; - $k[$j++] = _N; - $j--; - var _O = $k[--$j]; - var _P = $k[--$j]; - $k[$j++] = _O; - $search(_P, "("); - if ($k[--$j]) { - var _R = $k[--$j]; - var _S = $k[--$j]; - $k[$j++] = _R; - $k[$j++] = _S; - $j--; - var _T = $k[--$j]; - var _U = $k[--$j]; - var _V = $k[--$j]; - $k[$j++] = _U; - $k[$j++] = _V; - $k[$j++] = _T; - } else { - var _W = $k[--$j]; - var _X = $k[--$j]; - $k[$j++] = ""; - $k[$j++] = _X; - $k[$j++] = _W; - } - $k[$j++] = Infinity; - $aload($1.ais); - var _a = $k[$j - 1 - ($counttomark() + 2)]; - $k[$j++] = _a; - $1.ais = $a(); - $k[$j++] = Infinity; - $aload($1.vals); - var _e = $k[$j - 1 - ($counttomark() + 1)]; - $k[$j++] = _e; - $1.expand(); - $1.vals = $a(); - $j -= 2; - } - $j--; - if (!$1.dontlint) { - $k[$j++] = $1.ais; - $k[$j++] = $1.vals; - $0.gs1lint(); - $j--; - } - $1.isupper = function() { - var _j = $k[--$j]; - $k[$j++] = _j >= 65 && _j <= 90; - }; - $1.isnum0 = function() { - var _k = $k[--$j]; - $k[$j++] = _k >= 48 && _k <= 57; - }; - $1.isnum1 = function() { - var _l = $k[--$j]; - $k[$j++] = _l >= 49 && _l <= 57; - }; - for (;;) { - if ($1.ais.length >= 1) { - if ($eq($get($1.ais, 0), "10") || $eq($get($1.ais, 0), "11") || $eq($get($1.ais, 0), "17")) { - $k[$j++] = -1; - $k[$j++] = "10"; - break; - } - } - if ($1.ais.length >= 1) { - if ($eq($get($1.ais, 0), "90")) { - $1.v = $get($1.vals, 0); - if ($1.v.length >= 1) { - $k[$j++] = $get($1.v, 0); - $1.isupper(); - if ($k[--$j]) { - $k[$j++] = 0; - $k[$j++] = "11"; - break; - } - } - if ($1.v.length >= 2) { - $k[$j++] = $get($1.v, 0); - $1.isnum1(); - $k[$j++] = $get($1.v, 1); - $1.isupper(); - var _17 = $k[--$j]; - var _18 = $k[--$j]; - if (_18 && _17) { - $k[$j++] = 1; - $k[$j++] = "11"; - break; - } - } - if ($1.v.length >= 3) { - $k[$j++] = $get($1.v, 0); - $1.isnum1(); - $k[$j++] = $get($1.v, 1); - $1.isnum0(); - var _1E = $k[--$j]; - var _1F = $k[--$j]; - $k[$j++] = $an(_1F, _1E); - $k[$j++] = $get($1.v, 2); - $1.isupper(); - var _1I = $k[--$j]; - var _1J = $k[--$j]; - if (_1J && _1I) { - $k[$j++] = 2; - $k[$j++] = "11"; - break; - } - } - if ($1.v.length >= 4) { - $k[$j++] = $get($1.v, 0); - $1.isnum1(); - $k[$j++] = $get($1.v, 1); - $1.isnum0(); - var _1P = $k[--$j]; - var _1Q = $k[--$j]; - $k[$j++] = $an(_1Q, _1P); - $k[$j++] = $get($1.v, 2); - $1.isnum0(); - var _1T = $k[--$j]; - var _1U = $k[--$j]; - $k[$j++] = $an(_1U, _1T); - $k[$j++] = $get($1.v, 3); - $1.isupper(); - var _1X = $k[--$j]; - var _1Y = $k[--$j]; - if (_1Y && _1X) { - $k[$j++] = 3; - $k[$j++] = "11"; - break; - } - } - } - } - $k[$j++] = -1; - $k[$j++] = "0"; - break; - } - $1.method = $k[--$j]; - $1.npre = $k[--$j]; - $1.fnc1 = -1; - $1.lnumeric = -2; - $1.lalphanumeric = -3; - $1.liso646 = -4; - $1.tobin = function() { - var _1c = $s($k[--$j]); - $k[$j++] = _1c; - for (var _1e = 0, _1d = _1c.length - 1; _1e <= _1d; _1e += 1) { - var _1f = $k[--$j]; - $put(_1f, _1e, 48); - $k[$j++] = _1f; - } - var _1g = $k[--$j]; - var _1j = $cvrs($s(_1g.length), $k[--$j], 2); - $puti(_1g, _1g.length - _1j.length, _1j); - $k[$j++] = _1g; - }; - $k[$j++] = Infinity; - for (var _1k = 65; _1k <= 90; _1k += 1) { - $k[$j++] = _1k; - $k[$j++] = _1k - 65; - $k[$j++] = 5; - $1.tobin(); - } - for (var _1l = 48; _1l <= 57; _1l += 1) { - $k[$j++] = _1l; - $k[$j++] = _1l + 4; - $k[$j++] = 6; - $1.tobin(); - } - $k[$j++] = $1.fnc1; - $k[$j++] = "11111"; - $1.alpha = $d(); - $k[$j++] = Infinity; - for (var _1o = 0; _1o <= 119; _1o += 1) { - var _1q = $strcpy($s(2), "00"); - var _1s = $cvrs($s(2), _1o, 11); - $puti(_1q, 2 - _1s.length, _1s); - $k[$j++] = _1o; - $k[$j++] = _1q; - if ($get(_1q, 0) == 65) { - var _1u = $k[--$j]; - $put(_1u, 0, 94); - $k[$j++] = _1u; - } - var _1v = $k[--$j]; - $k[$j++] = _1v; - if ($get(_1v, 1) == 65) { - var _1x = $k[--$j]; - $put(_1x, 1, 94); - $k[$j++] = _1x; - } - var _1y = $k[--$j]; - var _21 = $strcpy($s(7), "0000000"); - var _23 = $cvrs($s(7), $f($k[--$j] + 8), 2); - $puti(_21, 7 - _23.length, _23); - $k[$j++] = _1y; - $k[$j++] = _21; - } - $k[$j++] = $1.lalphanumeric; - $k[$j++] = "0000"; - $1.numeric = $d(); - $k[$j++] = Infinity; - for (var _26 = 48; _26 <= 57; _26 += 1) { - $k[$j++] = _26; - $k[$j++] = _26 - 43; - $k[$j++] = 5; - $1.tobin(); - } - $k[$j++] = $1.fnc1; - $k[$j++] = "01111"; - for (var _28 = 65; _28 <= 90; _28 += 1) { - $k[$j++] = _28; - $k[$j++] = _28 - 33; - $k[$j++] = 6; - $1.tobin(); - } - $k[$j++] = 42; - $k[$j++] = "111010"; - for (var _29 = 44; _29 <= 47; _29 += 1) { - $k[$j++] = _29; - $k[$j++] = _29 + 15; - $k[$j++] = 6; - $1.tobin(); - } - $k[$j++] = $1.lnumeric; - $k[$j++] = "000"; - $k[$j++] = $1.liso646; - $k[$j++] = "00100"; - $1.alphanumeric = $d(); - $k[$j++] = Infinity; - for (var _2D = 48; _2D <= 57; _2D += 1) { - $k[$j++] = _2D; - $k[$j++] = _2D - 43; - $k[$j++] = 5; - $1.tobin(); - } - $k[$j++] = $1.fnc1; - $k[$j++] = "01111"; - for (var _2F = 65; _2F <= 90; _2F += 1) { - $k[$j++] = _2F; - $k[$j++] = _2F - 1; - $k[$j++] = 7; - $1.tobin(); - } - for (var _2G = 97; _2G <= 122; _2G += 1) { - $k[$j++] = _2G; - $k[$j++] = _2G - 7; - $k[$j++] = 7; - $1.tobin(); - } - $k[$j++] = 33; - $k[$j++] = "11101000"; - $k[$j++] = 34; - $k[$j++] = "11101001"; - for (var _2H = 37; _2H <= 47; _2H += 1) { - $k[$j++] = _2H; - $k[$j++] = _2H + 197; - $k[$j++] = 8; - $1.tobin(); - } - for (var _2I = 58; _2I <= 63; _2I += 1) { - $k[$j++] = _2I; - $k[$j++] = _2I + 187; - $k[$j++] = 8; - $1.tobin(); - } - $k[$j++] = 95; - $k[$j++] = "11111011"; - $k[$j++] = 32; - $k[$j++] = "11111100"; - $k[$j++] = $1.lnumeric; - $k[$j++] = "000"; - $k[$j++] = $1.lalphanumeric; - $k[$j++] = "00100"; - $1.iso646 = $d(); - if ($eq($1.method, "10")) { - if ($eq($get($1.ais, 0), "11") || $eq($get($1.ais, 0), "17")) { - var _2S = $get($1.vals, 0); - var _2X = $strcpy($s(16), "0000000000000000"); - var _2Z = $cvrs($s(16), ~~$z($geti(_2S, 0, 2)) * 384 + ((~~$z($geti(_2S, 2, 2)) - 1) * 32 + ~~$z($geti(_2S, 4, 2))), 2); - $puti(_2X, 16 - _2Z.length, _2Z); - $k[$j++] = _2X; - $k[$j++] = Infinity; - var _2a = $k[--$j]; - var _2b = $k[--$j]; - $k[$j++] = _2a; - $k[$j++] = 1; - $k[$j++] = 0; - $forall(_2b, function() { - var _2c = $k[--$j]; - $k[$j++] = $f(_2c - 48); - }); - var _2f = $eq($get($1.ais, 0), "11") ? 0 : 1; - $k[$j++] = _2f; - $1.cdf = $a(); - $1.ais = $geti($1.ais, 1, $1.ais.length - 1); - $1.vals = $geti($1.vals, 1, $1.vals.length - 1); - } else { - $1.cdf = $a([ 1, 0, 1, 1 ]); - } - if ($1.ais.length != 0) { - if ($eq($get($1.ais, 0), "10")) { - $k[$j++] = Infinity; - $forall($get($1.vals, 0)); - $1.gpf = $a(); - if ($1.ais.length > 1) { - $k[$j++] = Infinity; - $aload($1.gpf); - $k[$j++] = $1.fnc1; - $1.gpf = $a(); - } - $1.ais = $geti($1.ais, 1, $1.ais.length - 1); - $1.vals = $geti($1.vals, 1, $1.vals.length - 1); - } else { - $1.gpf = $a([ $1.fnc1 ]); - } - } else { - $k[$j++] = Infinity; - $aload($1.cdf); - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $1.cdf = $a(); - $1.gpf = $a([]); - } - $1.mode = "numeric"; - } - if ($eq($1.method, "11")) { - $1.cdf = $a([ 1, 1 ]); - $1.ai90 = $get($1.vals, 0); - if ($f($1.npre + 1) != $1.ai90.length) { - $k[$j++] = $geti($1.ai90, $f($1.npre + 1), $f($f($1.ai90.length - $1.npre) - 1)); - } else { - $k[$j++] = ""; - } - $1.ai90rem = $k[--$j]; - $k[$j++] = "nalpha"; - $k[$j++] = 0; - $forall($1.ai90rem, function() { - var _3M = $k[--$j]; - if (_3M >= 65 && _3M <= 90) { - var _3N = $k[--$j]; - $k[$j++] = $f(_3N + 1); - } - }); - var _3O = $k[--$j]; - $1[$k[--$j]] = _3O; - $k[$j++] = "nnums"; - $k[$j++] = 0; - $forall($1.ai90rem, function() { - var _3R = $k[--$j]; - if (_3R >= 48 && _3R <= 57) { - var _3S = $k[--$j]; - $k[$j++] = $f(_3S + 1); - } - }); - var _3T = $k[--$j]; - $1[$k[--$j]] = _3T; - $k[$j++] = "mode"; - if ($gt($1.nalpha, $1.nnums)) { - $k[$j++] = "alpha"; - } else { - if ($1.nalpha == 0) { - $k[$j++] = "numeric"; - } else { - $k[$j++] = "alphanumeric"; - } - } - var _3Y = $k[--$j]; - $1[$k[--$j]] = _3Y; - if ($f($1.nalpha + $1.nnums) != $1.ai90rem.length) { - $1.mode = "alphanumeric"; - } - $k[$j++] = Infinity; - $aload($1.cdf); - if ($eq($1.mode, "alphanumeric")) { - $k[$j++] = 0; - } - if ($eq($1.mode, "numeric")) { - $k[$j++] = 1; - $k[$j++] = 0; - } - if ($eq($1.mode, "alpha")) { - $k[$j++] = 1; - $k[$j++] = 1; - } - $1.cdf = $a(); - $k[$j++] = "ais1"; - if ($1.ais.length > 1) { - $k[$j++] = $get($1.ais, 1); - } else { - $k[$j++] = -1; - } - var _3l = $k[--$j]; - $1[$k[--$j]] = _3l; - $k[$j++] = "vals1"; - if ($1.vals.length > 1) { - $k[$j++] = $get($1.vals, 1); - } else { - $k[$j++] = -1; - } - var _3q = $k[--$j]; - $1[$k[--$j]] = _3q; - if ($eq($1.ais1, "21") || $eq($1.ais1, "8004")) { - $k[$j++] = Infinity; - $aload($1.cdf); - if ($eq($1.ais1, "21")) { - $k[$j++] = 1; - $k[$j++] = 0; - } else { - $k[$j++] = 1; - $k[$j++] = 1; - } - $1.cdf = $a(); - } else { - $k[$j++] = Infinity; - $aload($1.cdf); - $k[$j++] = 0; - $1.cdf = $a(); - } - $k[$j++] = "nval"; - if ($1.npre != 0) { - $k[$j++] = ~~$z($geti($1.ai90, 0, $1.npre)); - } else { - $k[$j++] = 0; - } - var _43 = $k[--$j]; - $1[$k[--$j]] = _43; - $search("BDHIJKLNPQRSTVXZ", $geti($1.ai90, $1.npre, 1)); - if ($k[--$j]) { - var _49 = $k[--$j]; - var _4A = $k[--$j]; - $k[$j++] = _49.length; - $k[$j++] = _4A; - $j--; - var _4B = $k[--$j]; - var _4C = $k[--$j]; - $k[$j++] = _4B; - $k[$j++] = _4C; - $j--; - $1.aval = $k[--$j]; - } else { - $j--; - $1.aval = -1; - } - if ($1.nval < 31 && $1.aval != -1) { - var _4H = $strcpy($s(5), "00000"); - var _4K = $cvrs($s(5), $1.nval, 2); - $puti(_4H, 5 - _4K.length, _4K); - $k[$j++] = Infinity; - var _4M = _4H; - $forall(_4M, function() { - var _4N = $k[--$j]; - $k[$j++] = $f(_4N - 48); - }); - $1.nbits = $a(); - var _4Q = $strcpy($s(4), "0000"); - var _4T = $cvrs($s(4), $1.aval, 2); - $puti(_4Q, 4 - _4T.length, _4T); - $k[$j++] = Infinity; - var _4V = _4Q; - $forall(_4V, function() { - var _4W = $k[--$j]; - $k[$j++] = $f(_4W - 48); - }); - $1.abits = $a(); - $k[$j++] = Infinity; - $aload($1.cdf); - $aload($1.nbits); - $aload($1.abits); - $1.cdf = $a(); - } else { - var _4d = $strcpy($s(10), "0000000000"); - var _4g = $cvrs($s(10), $1.nval, 2); - $puti(_4d, 10 - _4g.length, _4g); - $k[$j++] = Infinity; - var _4i = _4d; - $forall(_4i, function() { - var _4j = $k[--$j]; - $k[$j++] = $f(_4j - 48); - }); - $1.nbits = $a(); - var _4m = $strcpy($s(5), "00000"); - var _4r = $cvrs($s(5), $f($get($1.ai90, $1.npre) - 65), 2); - $puti(_4m, 5 - _4r.length, _4r); - $k[$j++] = Infinity; - var _4t = _4m; - $forall(_4t, function() { - var _4u = $k[--$j]; - $k[$j++] = $f(_4u - 48); - }); - $1.abits = $a(); - $k[$j++] = Infinity; - $aload($1.cdf); - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $aload($1.nbits); - $aload($1.abits); - $1.cdf = $a(); - } - if ($ne($1.mode, "alpha")) { - $k[$j++] = Infinity; - $forall($1.ai90rem); - if ($1.ais.length > 1) { - $k[$j++] = $1.fnc1; - } - $1.gpf = $a(); - } else { - $k[$j++] = Infinity; - $forall($1.ai90rem); - if ($1.ais.length > 1) { - $k[$j++] = $1.fnc1; - } - $1.in = $a(); - $1.out = $a($1.in.length * 6); - $1.j = 0; - for (var _5D = 0, _5C = $1.in.length - 1; _5D <= _5C; _5D += 1) { - var _5H = $get($1.alpha, $get($1.in, _5D)); - $k[$j++] = _5H; - $k[$j++] = Infinity; - var _5J = _5H; - $forall(_5J, function() { - var _5K = $k[--$j]; - $k[$j++] = $f(_5K - 48); - }); - $puti($1.out, $1.j, $a()); - $1.j = $k[--$j].length + $1.j; - } - $k[$j++] = Infinity; - $aload($1.cdf); - $aload($geti($1.out, 0, $1.j)); - $1.cdf = $a(); - $1.gpf = $a([]); - if ($1.ais.length > 1) { - $1.mode = "numeric"; - } - } - $1.ais = $geti($1.ais, 1, $1.ais.length - 1); - $1.vals = $geti($1.vals, 1, $1.vals.length - 1); - if ($1.ais.length != 0) { - if ($eq($1.ais1, "21") || $eq($1.ais1, "8004")) { - $k[$j++] = Infinity; - $aload($1.gpf); - $forall($1.vals1); - $1.gpf = $a(); - $1.ais = $geti($1.ais, 1, $1.ais.length - 1); - $1.vals = $geti($1.vals, 1, $1.vals.length - 1); - if ($1.ais.length != 0) { - $k[$j++] = Infinity; - $aload($1.gpf); - $k[$j++] = $1.fnc1; - $1.gpf = $a(); - } - } - } - } - if ($eq($1.method, "0")) { - $1.cdf = $a([ 0 ]); - $1.gpf = $a([]); - $1.mode = "numeric"; - } - $1.aifixed = new Map(); - $k[$j++] = Infinity; - for (var _5w = 0; _5w <= 4; _5w += 1) { - $k[$j++] = _5w; - } - var _5x = $a(); - for (var _5y = 0, _5z = _5x.length; _5y < _5z; _5y++) { - var _62 = $strcpy($s(2), "00"); - $put(_62, 1, $f($get(_5x, _5y) + 48)); - $put($1.aifixed, _62, _62); - } - $k[$j++] = Infinity; - for (var _64 = 11; _64 <= 20; _64 += 1) { - $k[$j++] = _64; - } - $k[$j++] = 23; - for (var _65 = 31; _65 <= 36; _65 += 1) { - $k[$j++] = _65; - } - $k[$j++] = 41; - var _66 = $a(); - for (var _67 = 0, _68 = _66.length; _67 < _68; _67++) { - var _6B = $cvrs($s(2), $get(_66, _67), 10); - $put($1.aifixed, _6B, _6B); - } - for (var _6F = 0, _6E = $1.ais.length - 1; _6F <= _6E; _6F += 1) { - $1.i = _6F; - $1.ai = $get($1.ais, $1.i); - $1.val = $get($1.vals, $1.i); - var _6P = $a($1.gpf.length + $1.ai.length + $1.val.length); - $puti(_6P, 0, $1.gpf); - $k[$j++] = _6P; - $k[$j++] = _6P; - $k[$j++] = $1.gpf.length; - $k[$j++] = Infinity; - var _6U = $1.ai; - $forall(_6U); - var _6V = $a(); - var _6W = $k[--$j]; - $puti($k[--$j], _6W, _6V); - var _6Y = $k[--$j]; - $k[$j++] = _6Y; - $k[$j++] = _6Y; - $k[$j++] = $1.gpf.length + $1.ai.length; - $k[$j++] = Infinity; - var _6d = $1.val; - $forall(_6d); - var _6e = $a(); - var _6f = $k[--$j]; - $puti($k[--$j], _6f, _6e); - $1.gpf = $k[--$j]; - var _6n = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; - if ($1.i != $1.ais.length - 1 && !_6n) { - var _6p = $a($1.gpf.length + 1); - $puti(_6p, 0, $1.gpf); - $put(_6p, $1.gpf.length, $1.fnc1); - $1.gpf = _6p; - } - } - $1.rembits = function() { - $1.used = $k[--$j]; - if ($ne($1.ccversion, "c")) { - var _73 = new Map([ [ "a", $a([ $a([ 167, 138, 118, 108, 88, 78, 59 ]), $a([ 167, 138, 118, 98, 78 ]), $a([ 197, 167, 138, 108, 78 ]) ]) ], [ "b", $a([ $a([ 336, 296, 256, 208, 160, 104, 56 ]), $a([ 768, 648, 536, 416, 304, 208, 152, 112, 72, 32 ]), $a([ 1184, 1016, 840, 672, 496, 352, 264, 208, 152, 96, 56 ]) ]) ] ]); - $1.bitcaps = $get($get(_73, $1.ccversion), $f($1.cccolumns - 2)); - $k[$j++] = -1; - $forall($1.bitcaps, function() { - var _79 = $k[--$j]; - $k[$j++] = _79; - if ($ge(_79, $1.used)) { - var _7B = $k[--$j]; - var _7C = $k[--$j]; - $k[$j++] = _7B; - $k[$j++] = _7C; - } - $j--; - }); - var _7D = $k[--$j]; - $k[$j++] = _7D; - if (_7D != -1) { - var _7F = $k[--$j]; - $k[$j++] = $f(_7F - $1.used); - } - } else { - var _7G = new Map([ [ "c", -1 ] ]); - var _7I = $get(_7G, $1.ccversion); - var _7K = ~~Math.ceil($1.used / 8); - $1.m = ~~(_7K / 6) * 5 + _7K % 6; - if ($1.m <= 40) { - $k[$j++] = 8; - } - if ($1.m >= 41 && $1.m <= 160) { - $k[$j++] = 16; - } - if ($1.m >= 161 && $1.m <= 320) { - $k[$j++] = 32; - } - if ($1.m >= 321 && $1.m <= 833) { - $k[$j++] = 64; - } - if ($1.m >= 834) { - $k[$j++] = 32; - } - $1.eccws = $k[--$j]; - $1.m = $f($f($1.m + $1.eccws) + 3); - for (;;) { - if (~~Math.ceil($1.m / $1.cccolumns) <= 30 || $1.cccolumns >= 30) { - break; - } - $1.cccolumns = $f($1.cccolumns + 1); - } - $1.r = ~~Math.ceil($1.m / $1.cccolumns); - var _7f = $f($f($1.cccolumns * $1.r - $1.eccws) - 3); - $1.tgt = $f(~~(_7f / 5) * 6 + _7f % 5) * 8; - if ($1.used <= 8304) { - $k[$j++] = $f($1.tgt - $1.used); - } else { - $k[$j++] = -1; - } - } - var _7j = $k[--$j]; - $k[$j++] = _7j; - if (_7j == -1) { - $j--; - if ($eq($1.ccversion, "a")) { - $1.ccversion = "b"; - } else { - if ($eq($1.ccversion, "b") && $eq($1.lintype, "gs1-128")) { - $1.ccversion = "c"; - $1.cccolumns = ~~(($1.linwidth - 52) / 17); - } else { - $1.ccversion = -1; - } - } - $k[$j++] = $1.used; - $1.rembits(); - } - }; - $1.encode = function() { - var _7p = $k[--$j]; - $k[$j++] = _7p; - if ($ne(_7p, "raw")) { - var _7q = $k[--$j]; - var _7s = $get(_7q, $k[--$j]); - $k[$j++] = _7s; - } else { - $j--; - } - $k[$j++] = Infinity; - var _7t = $k[--$j]; - var _7u = $k[--$j]; - $k[$j++] = _7t; - $forall(_7u, function() { - var _7v = $k[--$j]; - $k[$j++] = $f(_7v - 48); - }); - var _7w = $a(); - $puti($1.gpfenc, $1.j, _7w); - $1.j = _7w.length + $1.j; - }; - $k[$j++] = Infinity; - for (var _81 = 0, _82 = $1.gpf.length; _81 < _82; _81++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $k[$j++] = -1; - $1.numericruns = $a(); - $k[$j++] = Infinity; - for (var _85 = 0, _86 = $1.gpf.length; _85 < _86; _85++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.alphanumericruns = $a(); - $k[$j++] = Infinity; - for (var _89 = 0, _8A = $1.gpf.length; _89 < _8A; _89++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextiso646only = $a(); - for (var _8D = $1.gpf.length - 1; _8D >= 0; _8D -= 1) { - $1.i = _8D; - var _8I = $strcpy($s(2), "00"); - var _8L = $get($1.gpf, $1.i); - $k[$j++] = $get($1.gpf, $1.i); - $k[$j++] = _8I; - $k[$j++] = _8I; - $k[$j++] = 0; - $k[$j++] = _8L; - if (_8L == $1.fnc1) { - $j--; - $k[$j++] = 94; - } - var _8N = $k[--$j]; - var _8O = $k[--$j]; - $put($k[--$j], _8O, _8N); - if ($1.i < $1.gpf.length - 1) { - var _8S = $k[--$j]; - var _8V = $get($1.gpf, $1.i + 1); - $k[$j++] = _8S; - $k[$j++] = _8S; - $k[$j++] = 1; - $k[$j++] = _8V; - if (_8V == $1.fnc1) { - $j--; - $k[$j++] = 94; - } - var _8X = $k[--$j]; - var _8Y = $k[--$j]; - $put($k[--$j], _8Y, _8X); - } - var _8c = $get($1.numeric, $k[--$j]) !== undefined; - if (_8c) { - $put($1.numericruns, $1.i, $f($get($1.numericruns, $1.i + 2) + 2)); - } else { - $put($1.numericruns, $1.i, 0); - } - var _8k = $k[--$j]; - var _8m = $get($1.alphanumeric, _8k) !== undefined; - $k[$j++] = _8k; - if (_8m) { - $put($1.alphanumericruns, $1.i, $f($get($1.alphanumericruns, $1.i + 1) + 1)); - } else { - $put($1.alphanumericruns, $1.i, 0); - } - var _8u = $k[--$j]; - var _8w = $get($1.iso646, _8u) !== undefined; - var _8y = $get($1.alphanumeric, _8u) !== undefined; - if (_8w && !_8y) { - $put($1.nextiso646only, $1.i, 0); - } else { - $put($1.nextiso646only, $1.i, $f($get($1.nextiso646only, $1.i + 1) + 1)); - } - } - $1.gpfenc = $a(8304); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.gpf.length) { - break; - } - for (;;) { - if ($eq($1.mode, "numeric")) { - if ($1.i <= $1.gpf.length - 2) { - var _9C = $s(2); - var _9F = $get($1.gpf, $1.i); - $k[$j++] = _9C; - $k[$j++] = _9C; - $k[$j++] = 0; - $k[$j++] = _9F; - if (_9F == $1.fnc1) { - $j--; - $k[$j++] = 94; - } - var _9H = $k[--$j]; - var _9I = $k[--$j]; - $put($k[--$j], _9I, _9H); - var _9K = $k[--$j]; - var _9N = $get($1.gpf, $1.i + 1); - $k[$j++] = _9K; - $k[$j++] = _9K; - $k[$j++] = 1; - $k[$j++] = _9N; - if (_9N == $1.fnc1) { - $j--; - $k[$j++] = 94; - } - var _9P = $k[--$j]; - var _9Q = $k[--$j]; - $put($k[--$j], _9Q, _9P); - var _9S = $k[--$j]; - var _9U = $get($1.numeric, _9S) !== undefined; - $k[$j++] = _9S; - if (_9U) { - $k[$j++] = $1.numeric; - $1.encode(); - $1.i = $1.i + 2; - break; - } - $j--; - $k[$j++] = $1.lalphanumeric; - $k[$j++] = $1.numeric; - $1.encode(); - $1.mode = "alphanumeric"; - break; - } else { - var _9b = $get($1.gpf, $1.i); - if (_9b < 48 || _9b > 57) { - $k[$j++] = $1.lalphanumeric; - $k[$j++] = $1.numeric; - $1.encode(); - $1.mode = "alphanumeric"; - break; - } - $k[$j++] = "rem"; - $k[$j++] = $1.cdf.length + $1.j; - $1.rembits(); - var _9g = $k[--$j]; - $1[$k[--$j]] = _9g; - if ($1.rem >= 4 && $1.rem <= 6) { - var _9n = $geti($strcpy($s(6), "000000"), 0, $1.rem); - var _9s = $cvrs($s(4), $f($get($1.gpf, $1.i) - 47), 2); - $puti(_9n, 4 - _9s.length, _9s); - $k[$j++] = _9n; - $k[$j++] = "raw"; - $1.encode(); - $1.i = $1.i + 1; - break; - } else { - var _9u = $s(2); - $put(_9u, 0, $get($1.gpf, $1.i)); - $put(_9u, 1, 94); - $k[$j++] = _9u; - $k[$j++] = $1.numeric; - $1.encode(); - $1.i = $1.i + 1; - break; - } - } - } - if ($eq($1.mode, "alphanumeric")) { - if ($get($1.gpf, $1.i) == $1.fnc1) { - $k[$j++] = $1.fnc1; - $k[$j++] = $1.alphanumeric; - $1.encode(); - $1.mode = "numeric"; - $1.i = $1.i + 1; - break; - } - var _AA = $get($1.gpf, $1.i); - var _AC = $get($1.iso646, _AA) !== undefined; - var _AE = $get($1.alphanumeric, _AA) !== undefined; - if (_AC && !_AE) { - $k[$j++] = $1.liso646; - $k[$j++] = $1.alphanumeric; - $1.encode(); - $1.mode = "iso646"; - break; - } - if ($get($1.numericruns, $1.i) >= 6) { - $k[$j++] = $1.lnumeric; - $k[$j++] = $1.alphanumeric; - $1.encode(); - $1.mode = "numeric"; - break; - } - var _AO = $get($1.numericruns, $1.i); - if (_AO >= 4 && $f(_AO + $1.i) == $1.gpf.length) { - $k[$j++] = $1.lnumeric; - $k[$j++] = $1.alphanumeric; - $1.encode(); - $1.mode = "numeric"; - break; - } - $k[$j++] = $get($1.gpf, $1.i); - $k[$j++] = $1.alphanumeric; - $1.encode(); - $1.i = $1.i + 1; + var _8C = $k[--$j]; //#21565 + $k[$j++] = $lt($get($1.nextXterm, _8C), $get($1.nextNonX, _8C)); //#21565 + }; //#21565 + $1.A = 0; //#21567 + $1.C = 1; //#21567 + $1.T = 2; //#21567 + $1.X = 3; //#21567 + $1.D = 4; //#21567 + $1.B = 5; //#21567 + $1.lookup = function() { + $1.ac = 1; //#21570 + $1.cc = 2; //#21570 + $1.tc = 2; //#21570 + $1.xc = 2; //#21570 + $1.bc = 3; //#21570 + if ($1.mode == $1.A) { //#21571 + $1.ac = 0; //#21571 + $1.cc = 1; //#21571 + $1.tc = 1; //#21571 + $1.xc = 1; //#21571 + $1.bc = 2; //#21571 + } //#21571 + if ($1.mode == $1.C) { //#21572 + $1.cc = 0; //#21572 + } //#21572 + if ($1.mode == $1.T) { //#21573 + $1.tc = 0; //#21573 + } //#21573 + if ($1.mode == $1.X) { //#21574 + $1.xc = 0; //#21574 + } //#21574 + if ($1.mode == $1.B) { //#21575 + $1.bc = 0; //#21575 + } //#21575 + for (var _8R = 0, _8S = 1; _8R < _8S; _8R++) { //#21603 + $1.k = 0; //#21577 + for (;;) { //#21602 + if (($1.i + $1.k) == $1.msglen) { //#21584 + var _8a = $a([$1.ac, $1.cc, $1.tc, $1.xc]); //#21579 + $k[$j++] = true; //#21579 + for (var _8b = 0, _8c = _8a.length; _8b < _8c; _8b++) { //#21579 + var _8f = $k[--$j]; //#21579 + $k[$j++] = _8f && ($1.bc <= Math.ceil($get(_8a, _8b))); //#21579 + } //#21579 + if ($k[--$j]) { //#21579 + $k[$j++] = $1.B; //#21579 + break; //#21579 + } //#21579 + var _8m = $a([$1.cc, $1.tc, $1.xc, $1.bc]); //#21580 + $k[$j++] = true; //#21580 + for (var _8n = 0, _8o = _8m.length; _8n < _8o; _8n++) { //#21580 + var _8r = $k[--$j]; //#21580 + $k[$j++] = _8r && ($1.ac <= Math.ceil($get(_8m, _8n))); //#21580 + } //#21580 + if ($k[--$j]) { //#21580 + $k[$j++] = $1.A; //#21580 + break; //#21580 + } //#21580 + var _8w = $a([$1.tc, $1.xc]); //#21581 + $k[$j++] = true; //#21581 + for (var _8x = 0, _8y = _8w.length; _8x < _8y; _8x++) { //#21581 + var _91 = $k[--$j]; //#21581 + $k[$j++] = _91 && (Math.ceil($1.cc) <= Math.ceil($get(_8w, _8x))); //#21581 + } //#21581 + if ($k[--$j]) { //#21581 + $k[$j++] = $1.C; //#21581 + break; //#21581 + } //#21581 + var _95 = $a([$1.xc]); //#21582 + $k[$j++] = true; //#21582 + for (var _96 = 0, _97 = _95.length; _96 < _97; _96++) { //#21582 + var _9A = $k[--$j]; //#21582 + $k[$j++] = _9A && (Math.ceil($1.tc) <= Math.ceil($get(_95, _96))); //#21582 + } //#21582 + if ($k[--$j]) { //#21582 + $k[$j++] = $1.T; //#21582 + break; //#21582 + } //#21582 + $k[$j++] = $1.X; //#21583 + break; //#21583 + } //#21583 + $1.char = $get($1.msg, $1.i + $1.k); //#21585 + $k[$j++] = 'ac'; //#21586 + $k[$j++] = $1.ac; //#21586 + $1.isD(); //#21586 + if ($k[--$j]) { //#21586 + var _9K = $k[--$j]; //#21586 + $k[$j++] = $f(_9K + (1 / 2)); //#21586 + } else { //#21586 + $1.isEA(); //#21586 + if ($k[--$j]) { //#21586 + var _9M = $k[--$j]; //#21586 + $k[$j++] = Math.ceil(_9M) + 2; //#21586 + } else { //#21586 + var _9N = $k[--$j]; //#21586 + $k[$j++] = Math.ceil(_9N) + 1; //#21586 + } //#21586 + } //#21586 + var _9O = $k[--$j]; //#21586 + $1[$k[--$j]] = _9O; //#21586 + $k[$j++] = 'cc'; //#21587 + $k[$j++] = $1.cc; //#21587 + $1.isC(); //#21587 + if ($k[--$j]) { //#21587 + var _9S = $k[--$j]; //#21587 + $k[$j++] = $f(_9S + 0.66666667); //#21587 + } else { //#21587 + $1.isEA(); //#21587 + if ($k[--$j]) { //#21587 + var _9U = $k[--$j]; //#21587 + $k[$j++] = $f(_9U + 2.66666667); //#21587 + } else { //#21587 + var _9V = $k[--$j]; //#21587 + $k[$j++] = $f(_9V + 1.33333334); //#21587 + } //#21587 + } //#21587 + var _9W = $k[--$j]; //#21587 + $1[$k[--$j]] = _9W; //#21587 + $k[$j++] = 'tc'; //#21588 + $k[$j++] = $1.tc; //#21588 + $1.isT(); //#21588 + if ($k[--$j]) { //#21588 + var _9a = $k[--$j]; //#21588 + $k[$j++] = $f(_9a + 0.66666667); //#21588 + } else { //#21588 + $1.isEA(); //#21588 + if ($k[--$j]) { //#21588 + var _9c = $k[--$j]; //#21588 + $k[$j++] = $f(_9c + 2.66666667); //#21588 + } else { //#21588 + var _9d = $k[--$j]; //#21588 + $k[$j++] = $f(_9d + 1.33333334); //#21588 + } //#21588 + } //#21588 + var _9e = $k[--$j]; //#21588 + $1[$k[--$j]] = _9e; //#21588 + $k[$j++] = 'xc'; //#21589 + $k[$j++] = $1.xc; //#21589 + $1.isX(); //#21589 + if ($k[--$j]) { //#21589 + var _9i = $k[--$j]; //#21589 + $k[$j++] = $f(_9i + 0.66666667); //#21589 + } else { //#21589 + $1.isEA(); //#21589 + if ($k[--$j]) { //#21589 + var _9k = $k[--$j]; //#21589 + $k[$j++] = $f(_9k + 4.33333334); //#21589 + } else { //#21589 + var _9l = $k[--$j]; //#21589 + $k[$j++] = $f(_9l + 3.33333334); //#21589 + } //#21589 + } //#21589 + var _9m = $k[--$j]; //#21589 + $1[$k[--$j]] = _9m; //#21589 + $k[$j++] = 'bc'; //#21590 + $k[$j++] = $1.bc; //#21590 + $1.isFN(); //#21590 + if ($k[--$j]) { //#21590 + var _9q = $k[--$j]; //#21590 + $k[$j++] = $f(_9q + 3); //#21590 + } else { //#21590 + var _9r = $k[--$j]; //#21590 + $k[$j++] = $f(_9r + 1); //#21590 + } //#21590 + var _9s = $k[--$j]; //#21590 + $1[$k[--$j]] = _9s; //#21590 + if ($1.k >= 3) { //#21600 + var _9z = $a([$1.ac, $1.cc, $1.tc, $1.xc]); //#21592 + $k[$j++] = true; //#21592 + for (var _A0 = 0, _A1 = _9z.length; _A0 < _A1; _A0++) { //#21592 + var _A4 = $k[--$j]; //#21592 + $k[$j++] = _A4 && (($1.bc + 1) <= Math.ceil($get(_9z, _A0))); //#21592 + } //#21592 + if ($k[--$j]) { //#21592 + $k[$j++] = $1.B; //#21592 + break; //#21592 + } //#21592 + var _AB = $a([$1.cc, $1.tc, $1.xc, $1.bc]); //#21593 + $k[$j++] = true; //#21593 + for (var _AC = 0, _AD = _AB.length; _AC < _AD; _AC++) { //#21593 + var _AG = $k[--$j]; //#21593 + $k[$j++] = _AG && (($1.ac + 1) <= Math.ceil($get(_AB, _AC))); //#21593 + } //#21593 + if ($k[--$j]) { //#21593 + $k[$j++] = $1.A; //#21593 + break; //#21593 + } //#21593 + var _AN = $a([$1.ac, $1.cc, $1.xc, $1.bc]); //#21594 + $k[$j++] = true; //#21594 + for (var _AO = 0, _AP = _AN.length; _AO < _AP; _AO++) { //#21594 + var _AS = $k[--$j]; //#21594 + $k[$j++] = _AS && ((Math.ceil($1.tc) + 1) <= Math.ceil($get(_AN, _AO))); //#21594 + } //#21594 + if ($k[--$j]) { //#21594 + $k[$j++] = $1.T; //#21594 + break; //#21594 + } //#21594 + var _AX = $a([$1.ac, $1.tc]); //#21595 + $k[$j++] = true; //#21595 + for (var _AY = 0, _AZ = _AX.length; _AY < _AZ; _AY++) { //#21595 + var _Ac = $k[--$j]; //#21595 + $k[$j++] = _Ac && ((Math.ceil($1.cc) + 1) <= Math.ceil($get(_AX, _AY))); //#21595 + } //#21595 + if ($k[--$j]) { //#21598 + if (Math.ceil($1.cc) < Math.ceil($1.xc)) { //#21596 + $k[$j++] = $1.C; //#21596 + break; //#21596 + } //#21596 + if ($1.cc == $1.xc) { //#21597 + $k[$j++] = ($1.i + $1.k) + 1; //#21597 + $1.XtermFirst(); //#21597 + if ($k[--$j]) { //#21597 + $k[$j++] = $1.X; //#21597 + break; //#21597 + } else { //#21597 + $k[$j++] = $1.C; //#21597 + break; //#21597 + } //#21597 + } //#21597 + } //#21597 + var _As = $a([$1.ac, $1.cc, $1.tc, $1.bc]); //#21599 + $k[$j++] = true; //#21599 + for (var _At = 0, _Au = _As.length; _At < _Au; _At++) { //#21599 + var _Ax = $k[--$j]; //#21599 + $k[$j++] = _Ax && ((Math.ceil($1.xc) + 1) <= Math.ceil($get(_As, _At))); //#21599 + } //#21599 + if ($k[--$j]) { //#21599 + $k[$j++] = $1.X; //#21599 + break; //#21599 + } //#21599 + } //#21599 + $1.k = $1.k + 1; //#21601 + } //#21601 + } //#21601 + }; //#21604 + $1.addtocws = function() { + var _B1 = $k[--$j]; //#21607 + $puti($1.cws, $1.j, _B1); //#21607 + $1.j = _B1.length + $1.j; //#21608 + }; //#21609 + $1.tobin = function() { + var _B6 = $s($k[--$j]); //#21612 + $k[$j++] = _B6; //#21612 + for (var _B8 = 0, _B7 = _B6.length - 1; _B8 <= _B7; _B8 += 1) { //#21612 + var _B9 = $k[--$j]; //#21612 + $put(_B9, _B8, 48); //#21612 + $k[$j++] = _B9; //#21612 + } //#21612 + var _BA = $k[--$j]; //#21613 + var _BD = $cvrs($s(_BA.length), $k[--$j], 2); //#21613 + $puti(_BA, _BA.length - _BD.length, _BD); //#21613 + $k[$j++] = _BA; //#21614 + $k[$j++] = Infinity; //#21614 + var _BE = $k[--$j]; //#21614 + var _BF = $k[--$j]; //#21614 + $k[$j++] = _BE; //#21614 + $forall(_BF, function() { //#21614 + var _BG = $k[--$j]; //#21614 + $k[$j++] = $f(_BG - 48); //#21614 + }); //#21614 + var _BH = $a(); //#21614 + $k[$j++] = _BH; //#21614 + }; //#21615 + $1.encA = function() { + for (var _BI = 0, _BJ = 1; _BI < _BJ; _BI++) { //#21659 + if ($get($1.numD, $1.i) >= 21) { //#21623 + $1.Dbits = $a([1, 1, 1, 1]); //#21620 + $1.mode = $1.D; //#21621 + break; //#21622 + } //#21622 + var _BR = $get($1.numD, $1.i); //#21624 + if ((_BR >= 13) && ($f(_BR + $1.i) == $1.msglen)) { //#21628 + $1.Dbits = $a([1, 1, 1, 1]); //#21625 + $1.mode = $1.D; //#21626 + break; //#21627 + } //#21627 + if ($get($1.numD, $1.i) >= 2) { //#21633 + var _BZ = $s(2); //#21630 + $put(_BZ, 0, $get($1.msg, $1.i)); //#21630 + $put(_BZ, 1, $get($1.msg, $1.i + 1)); //#21630 + $k[$j++] = $get($1.Avals, _BZ); //#21630 + $1.addtocws(); //#21630 + $1.i = $1.i + 2; //#21631 + break; //#21632 + } //#21632 + if ($get($1.msg, $1.i) == $1.fnc1) { //#21649 + if ($get($1.numD, $1.i + 1) >= 15) { //#21641 + $k[$j++] = $get($1.Avals, $1.fnc1lD); //#21636 + $1.addtocws(); //#21636 + $1.i = $1.i + 1; //#21637 + $1.Dbits = $a([]); //#21638 + $1.mode = $1.D; //#21639 + break; //#21640 + } //#21640 + var _By = $get($1.numD, $1.i + 1); //#21642 + if ((_By >= 7) && (($f($f(_By + $1.i) + 1)) == $1.msglen)) { //#21648 + $k[$j++] = $get($1.Avals, $1.fnc1lD); //#21643 + $1.addtocws(); //#21643 + $1.i = $1.i + 1; //#21644 + $1.Dbits = $a([]); //#21645 + $1.mode = $1.D; //#21646 + break; //#21647 + } //#21647 + } //#21647 + $k[$j++] = 'newmode'; //#21650 + $1.lookup(); //#21650 + var _C7 = $k[--$j]; //#21650 + $1[$k[--$j]] = _C7; //#21650 + if ($1.newmode != $1.mode) { //#21655 + $k[$j++] = $get($1.Avals, $get($a([-1, $1.lC, $1.lT, $1.lX, $1.lD, $1.lB]), $1.newmode)); //#21652 + $1.addtocws(); //#21652 + $1.mode = $1.newmode; //#21653 + break; //#21654 + } //#21654 + $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); //#21656 + $1.addtocws(); //#21656 + $1.i = $1.i + 1; //#21657 + break; //#21658 + } //#21658 + }; //#21660 + $1.CTXvalstocws = function() { + $1.in = $k[--$j]; //#21663 + $k[$j++] = Infinity; //#21664 + for (var _CV = 0, _CU = $1.in.length - 1; _CV <= _CU; _CV += 3) { //#21668 + var _CX = $geti($1.in, _CV, 3); //#21666 + $k[$j++] = 0; //#21666 + for (var _CY = 0, _CZ = _CX.length; _CY < _CZ; _CY++) { //#21666 + var _Cb = $k[--$j]; //#21666 + $k[$j++] = $f(_Cb + $get(_CX, _CY)) * 40; //#21666 + } //#21666 + var _Cd = (~~($k[--$j] / 40)) + 1; //#21667 + $k[$j++] = ~~(_Cd / 256); //#21667 + $k[$j++] = _Cd % 256; //#21667 + } //#21667 + $astore($a($counttomark())); //#21669 + var _Cg = $k[--$j]; //#21669 + var _Ch = $k[--$j]; //#21669 + $k[$j++] = _Cg; //#21669 + $k[$j++] = _Ch; //#21669 + $j--; //#21669 + }; //#21670 + $1.encCTX = function() { + $1.p = 0; //#21673 + $1.ctxvals = $a(2220); //#21674 + for (;;) { //#21771 + if ($1.i == $1.msglen) { //#21678 + break; //#21678 + } //#21678 + if (($1.p % 3) == 0) { //#21766 + if ($get($1.numD, $1.i) >= 12) { //#21685 + $k[$j++] = $geti($1.ctxvals, 0, $1.p); //#21681 + $1.CTXvalstocws(); //#21681 + $1.addtocws(); //#21681 + $k[$j++] = $a([$1.unlcw]); //#21682 + $1.addtocws(); //#21682 + $1.mode = $1.A; //#21683 + break; //#21684 + } //#21684 + var _Cx = $get($1.numD, $1.i); //#21686 + if ((_Cx >= 8) && ($f(_Cx + $1.i) == $1.msglen)) { //#21691 + $k[$j++] = $geti($1.ctxvals, 0, $1.p); //#21687 + $1.CTXvalstocws(); //#21687 + $1.addtocws(); //#21687 + $k[$j++] = $a([$1.unlcw]); //#21688 + $1.addtocws(); //#21688 + $1.mode = $1.A; //#21689 + break; //#21690 + } //#21690 + if ($1.mode == $1.X) { //#21713 + var _DC = $get($1.Xvals, $get($1.msg, $1.i)) !== undefined; //#21693 + if (!_DC) { //#21701 + $k[$j++] = $geti($1.ctxvals, 0, $1.p); //#21694 + $1.CTXvalstocws(); //#21694 + $1.addtocws(); //#21694 + if (($get($1.numremcws, $1.j) != 1) || ($get($1.msg, $1.i) > 127)) { //#21698 + $k[$j++] = $a([$1.unlcw]); //#21697 + $1.addtocws(); //#21697 + } //#21697 + $1.mode = $1.A; //#21699 + break; //#21700 + } //#21700 + if (($1.i + 1) < $1.msglen) { //#21707 + var _DV = $get($1.Xvals, $get($1.msg, $1.i + 1)) !== undefined; //#21703 + if (!_DV) { //#21703 + break; //#21703 + } //#21703 + if (($1.i + 2) < $1.msglen) { //#21706 + var _Dc = $get($1.Xvals, $get($1.msg, $1.i + 2)) !== undefined; //#21705 + if (!_Dc) { //#21705 + break; //#21705 + } //#21705 + } //#21705 + } //#21705 + } else { //#21713 + $1.lookup(); //#21709 + if ($k[--$j] != $1.mode) { //#21714 + $k[$j++] = $geti($1.ctxvals, 0, $1.p); //#21710 + $1.CTXvalstocws(); //#21710 + $1.addtocws(); //#21710 + $k[$j++] = $a([$1.unlcw]); //#21711 + $1.addtocws(); //#21711 + $1.mode = $1.A; //#21712 + break; //#21713 + } //#21713 + } //#21713 + if (($1.msglen - $1.i) <= 3) { //#21765 + $1.remcws = $get($1.numremcws, $1.j + ((~~($1.p / 3)) * 2)); //#21717 + $k[$j++] = Infinity; //#21723 + var _Dv = $geti($1.msg, $1.i, $1.msglen - $1.i); //#21719 + for (var _Dw = 0, _Dx = _Dv.length; _Dw < _Dx; _Dw++) { //#21725 + var _Dy = $get(_Dv, _Dw); //#21725 + var _E2 = $get($get($1.encvals, $1.mode), _Dy) !== undefined; //#21720 + $k[$j++] = _Dy; //#21724 + if (_E2) { //#21723 + $aload($get($get($1.encvals, $1.mode), $k[--$j])); //#21721 + } else { //#21723 + $j--; //#21723 + $k[$j++] = -1; //#21723 + $k[$j++] = -1; //#21723 + $k[$j++] = -1; //#21723 + $k[$j++] = -1; //#21723 + } //#21723 + } //#21723 + $1.remvals = $a(); //#21723 + if (($1.remcws == 2) && ($1.remvals.length == 3)) { //#21736 + $k[$j++] = Infinity; //#21731 + $aload($geti($1.ctxvals, 0, $1.p)); //#21730 + $aload($1.remvals); //#21731 + var _EF = $a(); //#21731 + $k[$j++] = _EF; //#21732 + $1.CTXvalstocws(); //#21732 + $1.addtocws(); //#21732 + $1.mode = $1.A; //#21733 + $1.i = $1.msglen; //#21734 + break; //#21735 + } //#21735 + if ((($1.remcws == 2) && ($1.remvals.length == 2)) && ($1.mode != $1.X)) { //#21747 + $k[$j++] = Infinity; //#21742 + $aload($geti($1.ctxvals, 0, $1.p)); //#21740 + $aload($1.remvals); //#21741 + $aload($get($get($1.encvals, $1.mode), $1.sft1)); //#21742 + var _EV = $a(); //#21742 + $k[$j++] = _EV; //#21743 + $1.CTXvalstocws(); //#21743 + $1.addtocws(); //#21743 + $1.mode = $1.A; //#21744 + $1.i = $1.msglen; //#21745 + break; //#21746 + } //#21746 + if (($1.remcws == 2) && ($1.remvals.length == 1)) { //#21756 + $k[$j++] = $geti($1.ctxvals, 0, $1.p); //#21750 + $1.CTXvalstocws(); //#21750 + $1.addtocws(); //#21750 + $k[$j++] = $a([$1.unlcw]); //#21751 + $1.addtocws(); //#21751 + $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); //#21752 + $1.addtocws(); //#21752 + $1.mode = $1.A; //#21753 + $1.i = $1.msglen; //#21754 + break; //#21755 + } //#21755 + if (($1.remcws == 1) && ($1.remvals.length == 1)) { //#21764 + $k[$j++] = $geti($1.ctxvals, 0, $1.p); //#21759 + $1.CTXvalstocws(); //#21759 + $1.addtocws(); //#21759 + $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); //#21760 + $1.addtocws(); //#21760 + $1.mode = $1.A; //#21761 + $1.i = $1.msglen; //#21762 + break; //#21763 + } //#21763 + } //#21763 + } //#21763 + var _F4 = $get($get($1.encvals, $1.mode), $get($1.msg, $1.i)); //#21767 + $puti($1.ctxvals, $1.p, _F4); //#21768 + $1.p = _F4.length + $1.p; //#21769 + $1.i = $1.i + 1; //#21770 + } //#21770 + if ($1.mode != $1.A) { //#21795 + for (;;) { //#21779 + if (($1.p % 3) == 0) { //#21776 + break; //#21776 + } //#21776 + $1.i = $1.i - 1; //#21777 + $1.p = $1.p - $get($get($1.encvals, $1.mode), $get($1.msg, $1.i)).length; //#21778 + } //#21778 + $k[$j++] = Infinity; //#21781 + $aload($geti($1.ctxvals, 0, $1.p)); //#21781 + var _FO = $a(); //#21781 + $k[$j++] = _FO; //#21782 + $1.CTXvalstocws(); //#21782 + $1.addtocws(); //#21782 + $k[$j++] = $a([$1.unlcw]); //#21783 + $1.addtocws(); //#21783 + $1.mode = $1.A; //#21784 + if ($1.i != $1.msglen) { //#21794 + if ($get($1.numD, $1.i) >= 2) { //#21792 + var _FX = $s(2); //#21788 + $put(_FX, 0, $get($1.msg, $1.i)); //#21788 + $put(_FX, 1, $get($1.msg, $1.i + 1)); //#21788 + $k[$j++] = $get($1.Avals, _FX); //#21788 + $1.addtocws(); //#21788 + $1.i = $1.i + 2; //#21789 + } else { //#21792 + $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); //#21791 + $1.addtocws(); //#21791 + $1.i = $1.i + 1; //#21792 + } //#21792 + } //#21792 + } //#21792 + }; //#21797 + $1.encD = function() { + for (;;) { //#21856 + if ($get($1.numD, $1.i) < 3) { //#21846 + $1.Drem = (8 - ($1.Dbits.length % 8)) % 8; //#21805 + $1.remcws = $get($1.numremcws, $1.j + (~~($1.Dbits.length / 8))); //#21806 + if (((($f($get($1.numremcws, ($1.j + (~~($1.Dbits.length / 8))) - 1) - 1) == 0) && ($1.Drem == 0)) || (($1.remcws == 1) && ($1.Drem != 0))) && ($1.i == $1.msglen)) { //#21815 + if (($1.Drem == 4) || ($1.Drem == 6)) { //#21812 + $k[$j++] = Infinity; //#21812 + $aload($1.Dbits); //#21812 + $k[$j++] = 1; //#21812 + $k[$j++] = 1; //#21812 + $k[$j++] = 1; //#21812 + $k[$j++] = 1; //#21812 + $1.Dbits = $a(); //#21812 + } //#21812 + if (($1.Drem == 2) || ($1.Drem == 6)) { //#21813 + $k[$j++] = Infinity; //#21813 + $aload($1.Dbits); //#21813 + $k[$j++] = 0; //#21813 + $k[$j++] = 1; //#21813 + $1.Dbits = $a(); //#21813 + } //#21813 + break; //#21814 + } //#21814 + if ((((($1.i == ($1.msglen - 1)) && ($get($1.numD, $1.i) == 1)) || (($1.i == ($1.msglen - 2)) && ($get($1.numD, $1.i) == 2))) && ($1.remcws == 1)) && ($1.Drem == 0)) { //#21820 + break; //#21820 + } //#21820 + if (!(((($1.i == ($1.msglen - 1)) && ($get($1.numD, $1.i) == 1)) && ($1.remcws == 1)) && (($1.Drem == 4) || ($1.Drem == 6)))) { //#21827 + $k[$j++] = Infinity; //#21825 + $aload($1.Dbits); //#21825 + $k[$j++] = 1; //#21825 + $k[$j++] = 1; //#21825 + $k[$j++] = 1; //#21825 + $k[$j++] = 1; //#21825 + $k[$j++] = 1; //#21825 + $k[$j++] = 1; //#21825 + $1.Dbits = $a(); //#21825 + $1.Drem = (8 - ($1.Dbits.length % 8)) % 8; //#21826 + } //#21826 + if (($1.Drem == 4) || ($1.Drem == 6)) { //#21838 + if ($get($1.numD, $1.i) >= 1) { //#21835 + $k[$j++] = Infinity; //#21832 + $aload($1.Dbits); //#21832 + $k[$j++] = $f($f($get($1.msg, $1.i) - 48) + 1); //#21832 + $k[$j++] = 4; //#21832 + $1.tobin(); //#21832 + $aload($k[--$j]); //#21832 + $1.Dbits = $a(); //#21832 + $1.i = $1.i + 1; //#21833 + } else { //#21835 + $k[$j++] = Infinity; //#21835 + $aload($1.Dbits); //#21835 + $k[$j++] = 1; //#21835 + $k[$j++] = 1; //#21835 + $k[$j++] = 1; //#21835 + $k[$j++] = 1; //#21835 + $1.Dbits = $a(); //#21835 + } //#21835 + $1.Drem = $1.Drem - 4; //#21837 + } //#21837 + if ($1.Drem == 2) { //#21842 + $k[$j++] = Infinity; //#21840 + $aload($1.Dbits); //#21840 + $k[$j++] = 0; //#21840 + $k[$j++] = 1; //#21840 + $1.Dbits = $a(); //#21840 + $1.Drem = 0; //#21841 + } //#21841 + break; //#21844 + } //#21844 + $k[$j++] = Infinity; //#21852 + $aload($1.Dbits); //#21850 + var _Gu = $geti($1.msg, $1.i, 3); //#21851 + $k[$j++] = 0; //#21851 + for (var _Gv = 0, _Gw = _Gu.length; _Gv < _Gw; _Gv++) { //#21851 + var _Gy = $k[--$j]; //#21851 + $k[$j++] = ($f(_Gy + $f($get(_Gu, _Gv) - 48))) * 10; //#21851 + } //#21851 + var _Gz = $k[--$j]; //#21851 + $k[$j++] = (~~(_Gz / 10)) + 1; //#21852 + $k[$j++] = 10; //#21852 + $1.tobin(); //#21852 + $aload($k[--$j]); //#21852 + $1.Dbits = $a(); //#21852 + $1.i = $1.i + 3; //#21854 + } //#21854 + $k[$j++] = Infinity; //#21858 + for (var _H5 = 0, _H4 = $1.Dbits.length - 1; _H5 <= _H4; _H5 += 8) { //#21861 + var _H7 = $geti($1.Dbits, _H5, 8); //#21860 + $k[$j++] = 0; //#21860 + for (var _H8 = 0, _H9 = _H7.length; _H8 < _H9; _H8++) { //#21860 + var _HB = $k[--$j]; //#21860 + $k[$j++] = $f(_HB + $get(_H7, _H8)) * 2; //#21860 + } //#21860 + var _HC = $k[--$j]; //#21860 + $k[$j++] = ~~(_HC / 2); //#21860 + } //#21860 + $astore($a($counttomark())); //#21862 + var _HF = $k[--$j]; //#21862 + var _HG = $k[--$j]; //#21862 + $k[$j++] = _HF; //#21862 + $k[$j++] = _HG; //#21862 + $j--; //#21862 + $1.addtocws(); //#21862 + $1.mode = $1.A; //#21863 + }; //#21865 + $1.encB = function() { + $1.p = 0; //#21868 + $1.bvals = $a(1480); //#21868 + for (;;) { //#21875 + if ($1.i == $1.msglen) { //#21869 + break; //#21869 + } //#21869 + if ($get($1.msg, $1.i) < 0) { //#21870 + break; //#21870 + } //#21870 + $1.lookup(); //#21871 + if ($k[--$j] != $1.mode) { //#21871 + break; //#21871 + } //#21871 + $put($1.bvals, $1.p, $get($1.msg, $1.i)); //#21872 + $1.p = $1.p + 1; //#21873 + $1.i = $1.i + 1; //#21874 + } //#21874 + $1.remcws = $f($get($1.numremcws, $1.j + $1.p) - 1); //#21876 + $k[$j++] = Infinity; //#21883 + if (($1.remcws == 0) && ($1.i == $1.msglen)) { //#21881 + $k[$j++] = 0; //#21879 + } else { //#21881 + if ($1.p < 250) { //#21881 + $k[$j++] = $1.p; //#21881 + } else { //#21881 + $k[$j++] = (~~($1.p / 250)) + 249; //#21881 + $k[$j++] = $1.p % 250; //#21881 + } //#21881 + } //#21881 + $aload($geti($1.bvals, 0, $1.p)); //#21883 + $1.bvals = $a(); //#21883 + $k[$j++] = $1.bvals; //#21885 + $1.addtocws(); //#21885 + $1.mode = $1.A; //#21886 + }; //#21887 + $1.cws = $a(1480); //#21890 + $1.mode = $1.A; //#21891 + $1.i = 0; //#21891 + $1.j = 0; //#21891 + for (;;) { //#21894 + if ($1.i >= $1.msglen) { //#21892 + break; //#21892 + } //#21892 + if ($1[$get($a(['encA', 'encCTX', 'encCTX', 'encCTX', 'encD', 'encB']), $1.mode)]() === true) { break; - } - if ($eq($1.mode, "iso646")) { - if ($get($1.gpf, $1.i) == $1.fnc1) { - $k[$j++] = $1.fnc1; - $k[$j++] = $1.iso646; - $1.encode(); - $1.mode = "numeric"; - $1.i = $1.i + 1; - break; - } - if ($get($1.numericruns, $1.i) >= 4 && $get($1.nextiso646only, $1.i) >= 10) { - $k[$j++] = $1.lnumeric; - $k[$j++] = $1.iso646; - $1.encode(); - $1.mode = "numeric"; - break; - } - if ($get($1.alphanumericruns, $1.i) >= 5 && $get($1.nextiso646only, $1.i) >= 10) { - $k[$j++] = $1.lalphanumeric; - $k[$j++] = $1.iso646; - $1.encode(); - $1.mode = "alphanumeric"; + } //#21893 + } //#21893 + $1.cws = $geti($1.cws, 0, $1.j); //#21895 + } //#21895 + $1.i = 0; //#21900 + for (;;) { //#21920 + $1.m = $get($1.metrics, $1.i); //#21902 + $1.vers = $get($1.m, 0); //#21903 + $1.rows = $get($1.m, 1); //#21904 + $1.cols = $get($1.m, 2); //#21905 + $1.dcol = $get($1.m, 3); //#21906 + $1.dcws = $get($1.m, 4); //#21907 + $1.rscw = $get($1.m, 5); //#21908 + $1.rsbl = $get($1.m, 6); //#21909 + $1.riso = $get($1.m, 7); //#21910 + $1.risi = $get($1.m, 8); //#21911 + $1.risl = $get($1.m, 9); //#21912 + $1.dcpb = ~~($1.dcws / $1.rsbl); //#21913 + $1.ecpb = ~~($1.rscw / $1.rsbl); //#21914 + $1.okay = true; //#21915 + if ($ne($1.version, "unset") && $ne($1.version, $1.vers)) { //#21916 + $1.okay = false; //#21916 + } //#21916 + if ($1.cws.length > $1.dcws) { //#21917 + $1.okay = false; //#21917 + } //#21917 + if ($1.okay) { //#21918 + break; //#21918 + } //#21918 + $1.i = $1.i + 1; //#21919 + } //#21919 + if (!$1.stype) { //#21926 + $k[$j++] = Infinity; //#21924 + $aload($1.cws); //#21924 + for (var _Ib = 0, _Ic = $f($1.dcws - $1.cws.length); _Ib < _Ic; _Ib++) { //#21924 + $k[$j++] = 129; //#21924 + } //#21924 + $1.cws = $a(); //#21924 + } else { //#21926 + $k[$j++] = Infinity; //#21926 + for (var _Ig = 0, _Ih = $f($1.dcws - $1.cws.length); _Ig < _Ih; _Ig++) { //#21926 + $k[$j++] = 0; //#21926 + } //#21926 + $aload($1.cws); //#21926 + $1.cws = $a(); //#21926 + } //#21926 + var _Il = $get($1.options, 'debugcws') !== undefined; //#21929 + if (_Il) { //#21929 + $k[$j++] = 'bwipp.debugcws'; //#21929 + $k[$j++] = $1.cws; //#21929 + $0.raiseerror(); //#21929 + } //#21929 + $1.cwbs = $a($1.rsbl); //#21932 + $1.ecbs = $a($1.rsbl); //#21933 + for (var _It = 0, _Is = $f($1.rsbl - 1); _It <= _Is; _It += 1) { //#21942 + $1.i = _It; //#21935 + $1.cwb = $a($1.dcpb); //#21936 + for (var _Iy = 0, _Ix = $1.dcpb - 1; _Iy <= _Ix; _Iy += 1) { //#21940 + $1.j = _Iy; //#21938 + $put($1.cwb, $1.j, $get($1.cws, $f(($1.j * $1.rsbl) + $1.i))); //#21939 + } //#21939 + $put($1.cwbs, $1.i, $1.cwb); //#21941 + } //#21941 + var _JA = $1.stype ? 32 : 256; //#21945 + $1.gf = _JA; //#21945 + $1['gf-1'] = $1.gf - 1; //#21946 + var _JD = $1.stype ? 37 : 301; //#21947 + $1.pm = _JD; //#21947 + $k[$j++] = Infinity; //#21948 + $k[$j++] = 1; //#21948 + for (var _JF = 0, _JG = $1["gf-1"]; _JF < _JG; _JF++) { //#21948 + var _JH = $k[--$j]; //#21948 + var _JI = _JH * 2; //#21948 + $k[$j++] = _JH; //#21948 + $k[$j++] = _JI; //#21948 + if (_JI >= $1.gf) { //#21948 + var _JL = $k[--$j]; //#21948 + $k[$j++] = _JL ^ $1.pm; //#21948 + } //#21948 + } //#21948 + $1.rsalog = $a(); //#21948 + $1.rslog = $a($1.gf); //#21949 + for (var _JR = 1, _JQ = $1["gf-1"]; _JR <= _JQ; _JR += 1) { //#21950 + $put($1.rslog, $get($1.rsalog, _JR), _JR); //#21950 + } //#21950 + $1.rsprod = function() { + var _JV = $k[--$j]; //#21952 + var _JW = $k[--$j]; //#21952 + $k[$j++] = _JW; //#21956 + $k[$j++] = _JV; //#21956 + if ((_JV != 0) && (_JW != 0)) { //#21955 + var _JZ = $get($1.rslog, $k[--$j]); //#21953 + var _Jf = $get($1.rsalog, $f(_JZ + $get($1.rslog, $k[--$j])) % $1["gf-1"]); //#21953 + $k[$j++] = _Jf; //#21953 + } else { //#21955 + $j -= 2; //#21955 + $k[$j++] = 0; //#21955 + } //#21955 + }; //#21957 + $k[$j++] = Infinity; //#21960 + $k[$j++] = 1; //#21960 + for (var _Jh = 0, _Ji = $1.ecpb; _Jh < _Ji; _Jh++) { //#21960 + $k[$j++] = 0; //#21960 + } //#21960 + $1.coeffs = $a(); //#21960 + for (var _Jm = 0, _Jl = $1.ecpb - 1; _Jm <= _Jl; _Jm += 1) { //#21969 + $1.i = _Jm; //#21962 + $put($1.coeffs, $1.i + 1, $get($1.coeffs, $1.i)); //#21963 + for (var _Jt = $1.i; _Jt >= 1; _Jt -= 1) { //#21967 + $1.j = _Jt; //#21965 + $k[$j++] = $1.coeffs; //#21966 + $k[$j++] = $1.j; //#21966 + $k[$j++] = $get($1.coeffs, $1.j - 1); //#21966 + $k[$j++] = $get($1.coeffs, $1.j); //#21966 + $k[$j++] = $get($1.rsalog, $1.i); //#21966 + $1.rsprod(); //#21966 + var _K5 = $k[--$j]; //#21966 + var _K6 = $k[--$j]; //#21966 + var _K7 = $k[--$j]; //#21966 + $put($k[--$j], _K7, $xo(_K6, _K5)); //#21966 + } //#21966 + $k[$j++] = $1.coeffs; //#21968 + $k[$j++] = 0; //#21968 + $k[$j++] = $get($1.coeffs, 0); //#21968 + $k[$j++] = $get($1.rsalog, $1.i); //#21968 + $1.rsprod(); //#21968 + var _KF = $k[--$j]; //#21968 + var _KG = $k[--$j]; //#21968 + $put($k[--$j], _KG, _KF); //#21968 + } //#21968 + $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); //#21970 + for (var _KN = 0, _KM = $1.cwbs.length - 1; _KN <= _KM; _KN += 1) { //#21985 + $1.i = _KN; //#21974 + $k[$j++] = Infinity; //#21975 + $aload($get($1.cwbs, $1.i)); //#21975 + for (var _KS = 0, _KT = $1.ecpb; _KS < _KT; _KS++) { //#21975 + $k[$j++] = 0; //#21975 + } //#21975 + $1.rscws = $a(); //#21975 + for (var _KX = 0, _KW = $1.dcpb - 1; _KX <= _KW; _KX += 1) { //#21983 + $1.m = _KX; //#21977 + $1.k = $get($1.rscws, $1.m); //#21978 + for (var _Kd = 0, _Kc = $1.ecpb - 1; _Kd <= _Kc; _Kd += 1) { //#21982 + $1.j = _Kd; //#21980 + $k[$j++] = $1.rscws; //#21981 + $k[$j++] = ($1.m + $1.j) + 1; //#21981 + $k[$j++] = $get($1.coeffs, ($1.ecpb - $1.j) - 1); //#21981 + $k[$j++] = $1.k; //#21981 + $1.rsprod(); //#21981 + var _Kq = $k[--$j]; //#21981 + var _Kr = $k[--$j]; //#21981 + $put($k[--$j], _Kr, $xo(_Kq, $get($1.rscws, ($1.m + $1.j) + 1))); //#21981 + } //#21981 + } //#21981 + $put($1.ecbs, $1.i, $geti($1.rscws, $1.dcpb, $1.ecpb)); //#21984 + } //#21984 + $k[$j++] = Infinity; //#21988 + $aload($1.cws); //#21988 + for (var _L1 = 0, _L2 = $1.rscw; _L1 < _L2; _L1++) { //#21988 + $k[$j++] = 0; //#21988 + } //#21988 + $1.cws = $a(); //#21988 + for (var _L6 = 0, _L5 = $f($1.rscw - 1); _L6 <= _L5; _L6 += 1) { //#21992 + $1.i = _L6; //#21990 + $put($1.cws, $f($1.dcws + $1.i), $get($get($1.ecbs, $1.i % $1.rsbl), ~~($1.i / $1.rsbl))); //#21991 + } //#21991 + var _LK = $1.stype ? 5 : 8; //#21995 + $1.mmat = $a($f($1.dcws + $1.rscw) * _LK); //#21995 + $1.r = 0; //#21996 + $1.c = 0; //#21996 + var _LN = $1.stype ? 2 : 1; //#21997 + for (var _LQ = 0, _LR = _LN, _LP = $1.cws.length - 1; _LR < 0 ? _LQ >= _LP : _LQ <= _LP; _LQ += _LR) { //#22018 + $1.i = _LQ; //#21998 + if (!$1.stype) { //#22012 + var _LU = $strcpy($s(8), "00000000"); //#22000 + var _LZ = $cvrs($s(8), $get($1.cws, $1.i), 2); //#22000 + $puti(_LU, 8 - _LZ.length, _LZ); //#22001 + $k[$j++] = _LU; //#22001 + $k[$j++] = Infinity; //#22001 + var _La = $k[--$j]; //#22001 + var _Lb = $k[--$j]; //#22001 + $k[$j++] = _La; //#22001 + $forall(_Lb, function() { //#22001 + var _Lc = $k[--$j]; //#22001 + $k[$j++] = $f(_Lc - 48); //#22001 + }); //#22001 + var _Ld = $a(); //#22001 + $1.top = $geti(_Ld, 0, 4); //#22002 + $1.bot = $geti(_Ld, 4, 4); //#22003 + } else { //#22012 + var _Lh = $strcpy($s(5), "00000"); //#22005 + var _Lm = $cvrs($s(5), $get($1.cws, $1.i), 2); //#22005 + $puti(_Lh, 5 - _Lm.length, _Lm); //#22006 + $k[$j++] = _Lh; //#22006 + $k[$j++] = Infinity; //#22006 + var _Ln = $k[--$j]; //#22006 + var _Lo = $k[--$j]; //#22006 + $k[$j++] = _Ln; //#22006 + $forall(_Lo, function() { //#22006 + var _Lp = $k[--$j]; //#22006 + $k[$j++] = $f(_Lp - 48); //#22006 + }); //#22006 + $1.c1 = $a(); //#22007 + var _Ls = $strcpy($s(5), "00000"); //#22008 + var _Lx = $cvrs($s(5), $get($1.cws, $1.i + 1), 2); //#22008 + $puti(_Ls, 5 - _Lx.length, _Lx); //#22009 + $k[$j++] = _Ls; //#22009 + $k[$j++] = Infinity; //#22009 + var _Ly = $k[--$j]; //#22009 + var _Lz = $k[--$j]; //#22009 + $k[$j++] = _Ly; //#22009 + $forall(_Lz, function() { //#22009 + var _M0 = $k[--$j]; //#22009 + $k[$j++] = $f(_M0 - 48); //#22009 + }); //#22009 + $1.c2 = $a(); //#22010 + $k[$j++] = Infinity; //#22011 + $aload($geti($1.c1, 0, 3)); //#22011 + $aload($geti($1.c2, 0, 2)); //#22011 + $1.top = $a(); //#22011 + $k[$j++] = Infinity; //#22012 + $aload($geti($1.c1, 3, 2)); //#22012 + $aload($geti($1.c2, 2, 3)); //#22012 + $1.bot = $a(); //#22012 + } //#22012 + $puti($1.mmat, $f(($1.r * $1.dcol) + $1.c), $1.top); //#22014 + $puti($1.mmat, $f((($1.r + 1) * $1.dcol) + $1.c), $1.bot); //#22015 + $1.c = $1.c + $1.top.length; //#22016 + if ($1.c == $1.dcol) { //#22017 + $1.c = 0; //#22017 + $1.r = $1.r + 2; //#22017 + } //#22017 + } //#22017 + $1.mmv = function() { + var _MS = $k[--$j]; //#22021 + var _MT = $k[--$j]; //#22021 + $k[$j++] = $f(_MT + (_MS * $1.cols)); //#22021 + }; //#22021 + $k[$j++] = Infinity; //#22022 + for (var _MW = 0, _MX = $1.rows * $1.cols; _MW < _MX; _MW++) { //#22022 + $k[$j++] = -1; //#22022 + } //#22022 + $1.pixs = $a(); //#22022 + var _N3 = $a([function() { + for (var _Ma = 0, _Mb = $1.cols; _Ma < _Mb; _Ma++) { //#22026 + $k[$j++] = 0; //#22026 + } //#22026 + }, function() { + for (var _Md = 0, _Me = $1.cols; _Md < _Me; _Md++) { //#22027 + $k[$j++] = 1; //#22027 + } //#22027 + }, function() { + $k[$j++] = 0; //#22028 + for (var _Mg = 0, _Mh = $f($1.cols - 2); _Mg < _Mh; _Mg++) { //#22028 + $k[$j++] = 1; //#22028 + } //#22028 + $k[$j++] = 0; //#22028 + }, function() { + $k[$j++] = 0; //#22029 + $k[$j++] = 1; //#22029 + for (var _Mj = 0, _Mk = $f($1.cols - 4); _Mj < _Mk; _Mj++) { //#22029 + $k[$j++] = 0; //#22029 + } //#22029 + $k[$j++] = 1; //#22029 + $k[$j++] = 0; //#22029 + }, function() { + for (var _Mm = 0, _Mn = ~~($f($1.cols - 1) / 2); _Mm < _Mn; _Mm++) { //#22030 + $k[$j++] = -1; //#22030 + } //#22030 + $k[$j++] = 1; //#22030 + for (var _Mp = 0, _Mq = ~~($f($1.cols - 1) / 2); _Mp < _Mq; _Mp++) { //#22030 + $k[$j++] = -1; //#22030 + } //#22030 + }, function() { + for (var _Ms = 0, _Mt = ~~($f($1.cols - 1) / 2); _Ms < _Mt; _Ms++) { //#22031 + $k[$j++] = -1; //#22031 + } //#22031 + $k[$j++] = 0; //#22031 + for (var _Mv = 0, _Mw = ~~($f($1.cols - 1) / 2); _Mv < _Mw; _Mv++) { //#22031 + $k[$j++] = -1; //#22031 + } //#22031 + }, function() { + $k[$j++] = 1; //#22032 + for (var _My = 0, _Mz = $f($1.cols - 2); _My < _Mz; _My++) { //#22032 + $k[$j++] = 0; //#22032 + } //#22032 + $k[$j++] = 1; //#22032 + }, function() { + $k[$j++] = 1; //#22033 + $k[$j++] = 0; //#22033 + for (var _N1 = 0, _N2 = $f($1.cols - 4); _N1 < _N2; _N1++) { //#22033 + $k[$j++] = 1; //#22033 + } //#22033 + $k[$j++] = 0; //#22033 + $k[$j++] = 1; //#22033 + }]); //#22033 + $1.artifact = _N3; //#22034 + var _N4 = new Map([ + ["A", "121343"], + ["B", "12134343"], + ["C", "12121343"], + ["D", "1213434343"], + ["E", "1212134343"], + ["F", "1212121343"], + ["G", "121213434343"], + ["H", "121212134343"], + ["S", "56661278"], + ["T", "5666666666127878"] + ]); //#22045 + $1.cpat = $get(_N4, $geti($1.vers, 0, 1)); //#22046 + $k[$j++] = $1.pixs; //#22047 + $k[$j++] = 0; //#22047 + $k[$j++] = ~~($f($1.rows - $1.cpat.length) / 2); //#22047 + $1.mmv(); //#22047 + $k[$j++] = Infinity; //#22048 + $forall($1.cpat, function() { //#22048 + if ($get($1.artifact, $f($k[--$j] - 49))() === true) { + return true; + } //#22048 + }); //#22048 + var _NF = $a(); //#22048 + var _NG = $k[--$j]; //#22048 + $puti($k[--$j], _NG, _NF); //#22048 + for (var _NK = 0, _NJ = $f($1.risl - 1); _NK <= _NJ; _NK += 1) { //#22063 + $1.i = _NK; //#22052 + for (var _NP = $1.riso, _NQ = $1.risi, _NO = $f($1.cols - 1); _NQ < 0 ? _NP >= _NO : _NP <= _NO; _NP += _NQ) { //#22062 + $1.j = _NP; //#22054 + var _NS = (($1.i % 12) == 0) ? 1 : 0; //#22055 + var _NT = $a([1, _NS]); //#22055 + $k[$j++] = _NT; //#22056 + $k[$j++] = _NT; //#22056 + $k[$j++] = $1.pixs; //#22056 + $k[$j++] = $1.j; //#22056 + $k[$j++] = $1.i; //#22056 + $1.mmv(); //#22056 + var _NX = $k[--$j]; //#22057 + var _NY = $k[--$j]; //#22057 + $puti(_NY, _NX, $k[--$j]); //#22057 + if ($1.i != $f($1.risl - 1)) { //#22061 + $k[$j++] = $1.pixs; //#22059 + $k[$j++] = $f($f($1.cols - $1.j) - 2); //#22059 + $k[$j++] = $f($f($1.rows - $1.i) - 1); //#22059 + $1.mmv(); //#22059 + var _Nh = $k[--$j]; //#22060 + var _Ni = $k[--$j]; //#22060 + $puti(_Ni, _Nh, $k[--$j]); //#22060 + } else { //#22061 + $j--; //#22061 + } //#22061 + } //#22061 + } //#22061 + var _ON = new Map([ + ["A", $a([$a([12, 5])])], + ["B", $a([$a([16, 7])])], + ["C", $a([$a([26, 12])])], + ["D", $a([])], + ["E", $a([$a([26, 23])])], + ["F", $a([$a([26, 32]), $a([70, 32]), $a([26, 34]), $a([70, 34])])], + ["G", $a([$a([27, 48]), $a([69, 48])])], + ["H", $a([$a([26, 70]), $a([66, 70]), $a([106, 70]), $a([26, 72]), $a([66, 72]), $a([106, 72])])], + ["S-10", $a([])], + ["S-20", $a([$a([10, 4])])], + ["S-30", $a([$a([15, 4]), $a([15, 6])])], + ["T-16", $a([$a([8, 10])])], + ["T-32", $a([$a([16, 10]), $a([16, 12])])], + ["T-48", $a([$a([24, 10]), $a([24, 12]), $a([24, 14])])] + ]); //#22080 + $forall($get(_ON, $1.vers), function() { //#22081 + var _OR = $k[--$j]; //#22081 + $k[$j++] = $1.pixs; //#22081 + $aload(_OR); //#22081 + $1.mmv(); //#22081 + var _OS = $k[--$j]; //#22081 + $put($k[--$j], _OS, 1); //#22081 + }); //#22081 + $1.j = 0; //#22084 + for (var _OW = 0, _OV = $1.pixs.length - 1; _OW <= _OV; _OW += 1) { //#22091 + $1.i = _OW; //#22086 + if ($get($1.pixs, $1.i) == -1) { //#22090 + $put($1.pixs, $1.i, $get($1.mmat, $1.j)); //#22088 + $1.j = $1.j + 1; //#22089 + } //#22089 + } //#22089 + var _Om = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", $1.cols], + ["pixy", $1.rows], + ["height", ($1.rows / 72) * 2], + ["width", ($1.cols / 72) * 2], + ["opt", $1.options] + ]); //#22101 + $k[$j++] = _Om; //#22104 + if (!$1.dontdraw) { //#22104 + $0.renmatrix(); //#22104 + } //#22104 + }; + $0.hanxin = function() { + var $1 = {}; //#22134 + $1.options = $k[--$j]; //#22136 + $1.barcode = $k[--$j]; //#22137 + $1.dontdraw = false; //#22139 + $1.version = "unset"; //#22140 + $1.eclevel = "unset"; //#22141 + $1.parse = false; //#22142 + $1.parsefnc = false; //#22143 + $1.mask = -1; //#22144 + $forall($1.options, function() { //#22155 + var _3 = $k[--$j]; //#22155 + $1[$k[--$j]] = _3; //#22155 + }); //#22155 + $1.mask = ~~$1.mask; //#22157 + var _8 = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc] + ]); //#22162 + $1.fncvals = _8; //#22164 + $k[$j++] = 'msg'; //#22165 + $k[$j++] = $1.barcode; //#22165 + $k[$j++] = $1.fncvals; //#22165 + $0.parseinput(); //#22165 + var _B = $k[--$j]; //#22165 + $1[$k[--$j]] = _B; //#22165 + $1.msglen = $1.msg.length; //#22166 + if ($eq($1.eclevel, "unset")) { //#22169 + $1.eclevel = "L2"; //#22169 + } //#22169 + $1.tobin = function() { + var _G = $s($k[--$j]); //#22172 + $k[$j++] = _G; //#22172 + for (var _I = 0, _H = _G.length - 1; _I <= _H; _I += 1) { //#22172 + var _J = $k[--$j]; //#22172 + $put(_J, _I, 48); //#22172 + $k[$j++] = _J; //#22172 + } //#22172 + var _K = $k[--$j]; //#22173 + var _N = $cvrs($s(_K.length), $k[--$j], 2); //#22173 + $puti(_K, _K.length - _N.length, _N); //#22174 + $k[$j++] = _K; //#22174 + }; //#22175 + $1.bits = $s((4 + 13) + ($1.msglen * 8)); //#22178 + $puti($1.bits, 0, "0011"); //#22179 + $k[$j++] = $1.bits; //#22180 + $k[$j++] = 4; //#22180 + $k[$j++] = $1.msglen; //#22180 + $k[$j++] = 13; //#22180 + $1.tobin(); //#22180 + var _T = $k[--$j]; //#22180 + var _U = $k[--$j]; //#22180 + $puti($k[--$j], _U, _T); //#22180 + for (var _Y = 0, _X = $1.msglen - 1; _Y <= _X; _Y += 1) { //#22184 + $1.i = _Y; //#22182 + $k[$j++] = $1.bits; //#22183 + $k[$j++] = 17 + ($1.i * 8); //#22183 + $k[$j++] = $get($1.msg, $1.i); //#22183 + $k[$j++] = 8; //#22183 + $1.tobin(); //#22183 + var _e = $k[--$j]; //#22183 + var _f = $k[--$j]; //#22183 + $puti($k[--$j], _f, _e); //#22183 + } //#22183 + $1.metrics = $a([$a(["1", 23, -1, 0, 205, $a([1, 21, 4]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 17, 8]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 13, 12]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 9, 16]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["2", 25, -1, 0, 301, $a([1, 31, 6]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 25, 12]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 19, 18]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 15, 22]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["3", 27, -1, 0, 405, $a([1, 42, 8]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 34, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 26, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["4", 29, 14, 1, 439, $a([1, 46, 8]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 38, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 30, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 22, 32]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["5", 31, 16, 1, 555, $a([1, 57, 12]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 49, 20]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 37, 32]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 14, 20]), $a([1, 13, 22]), $a([0, -1, -1])]), $a(["6", 33, 16, 1, 675, $a([1, 70, 14]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 58, 26]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 24, 20]), $a([1, 22, 18]), $a([0, -1, -1]), $a([1, 16, 24]), $a([1, 18, 26]), $a([0, -1, -1])]), $a(["7", 35, 17, 1, 805, $a([1, 84, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 26, 22]), $a([1, 28, 24]), $a([0, -1, -1]), $a([2, 14, 20]), $a([1, 12, 20]), $a([0, -1, -1])]), $a(["8", 37, 18, 1, 943, $a([1, 99, 18]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 40, 18]), $a([1, 41, 18]), $a([0, -1, -1]), $a([1, 31, 26]), $a([1, 32, 28]), $a([0, -1, -1]), $a([2, 16, 24]), $a([1, 15, 22]), $a([0, -1, -1])]), $a(["9", 39, 19, 1, 1089, $a([1, 114, 22]), $a([0, -1, -1]), $a([0, -1, -1]), $a([2, 48, 20]), $a([0, -1, -1]), $a([0, -1, -1]), $a([2, 24, 20]), $a([1, 26, 22]), $a([0, -1, -1]), $a([2, 18, 28]), $a([1, 18, 26]), $a([0, -1, -1])]), $a(["10", 41, 20, 1, 1243, $a([1, 131, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 52, 22]), $a([1, 57, 24]), $a([0, -1, -1]), $a([2, 27, 24]), $a([1, 29, 24]), $a([0, -1, -1]), $a([2, 21, 32]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["11", 43, 14, 2, 1289, $a([1, 135, 26]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 56, 24]), $a([1, 57, 24]), $a([0, -1, -1]), $a([2, 28, 24]), $a([1, 31, 26]), $a([0, -1, -1]), $a([2, 22, 32]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["12", 45, 15, 2, 1455, $a([1, 153, 28]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 62, 26]), $a([1, 65, 28]), $a([0, -1, -1]), $a([2, 32, 28]), $a([1, 33, 28]), $a([0, -1, -1]), $a([3, 17, 26]), $a([1, 22, 30]), $a([0, -1, -1])]), $a(["13", 47, 16, 2, 1629, $a([1, 86, 16]), $a([1, 85, 16]), $a([0, -1, -1]), $a([1, 71, 30]), $a([1, 72, 30]), $a([0, -1, -1]), $a([2, 37, 32]), $a([1, 35, 30]), $a([0, -1, -1]), $a([3, 20, 30]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["14", 49, 16, 2, 1805, $a([1, 94, 18]), $a([1, 95, 18]), $a([0, -1, -1]), $a([2, 51, 22]), $a([1, 55, 24]), $a([0, -1, -1]), $a([3, 30, 26]), $a([1, 31, 26]), $a([0, -1, -1]), $a([4, 18, 28]), $a([1, 17, 24]), $a([0, -1, -1])]), $a(["15", 51, 17, 2, 1995, $a([1, 104, 20]), $a([1, 105, 20]), $a([0, -1, -1]), $a([2, 57, 24]), $a([1, 61, 26]), $a([0, -1, -1]), $a([3, 33, 28]), $a([1, 36, 30]), $a([0, -1, -1]), $a([4, 20, 30]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["16", 53, 17, 2, 2187, $a([1, 115, 22]), $a([1, 114, 22]), $a([0, -1, -1]), $a([2, 65, 28]), $a([1, 61, 26]), $a([0, -1, -1]), $a([3, 38, 32]), $a([1, 33, 30]), $a([0, -1, -1]), $a([5, 19, 28]), $a([1, 14, 24]), $a([0, -1, -1])]), $a(["17", 55, 18, 2, 2393, $a([1, 126, 24]), $a([1, 125, 24]), $a([0, -1, -1]), $a([2, 70, 30]), $a([1, 69, 30]), $a([0, -1, -1]), $a([4, 33, 28]), $a([1, 29, 26]), $a([0, -1, -1]), $a([5, 20, 30]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["18", 57, 19, 2, 2607, $a([1, 136, 26]), $a([1, 137, 26]), $a([0, -1, -1]), $a([3, 56, 24]), $a([1, 59, 26]), $a([0, -1, -1]), $a([5, 35, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([6, 18, 28]), $a([1, 21, 28]), $a([0, -1, -1])]), $a(["19", 59, 20, 2, 2829, $a([1, 148, 28]), $a([1, 149, 28]), $a([0, -1, -1]), $a([3, 61, 26]), $a([1, 64, 28]), $a([0, -1, -1]), $a([7, 24, 20]), $a([1, 23, 22]), $a([0, -1, -1]), $a([6, 20, 30]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["20", 61, 20, 2, 3053, $a([3, 107, 20]), $a([0, -1, -1]), $a([0, -1, -1]), $a([3, 65, 28]), $a([1, 72, 30]), $a([0, -1, -1]), $a([7, 26, 22]), $a([1, 23, 22]), $a([0, -1, -1]), $a([7, 19, 28]), $a([1, 20, 32]), $a([0, -1, -1])]), $a(["21", 63, 21, 2, 3291, $a([3, 115, 22]), $a([0, -1, -1]), $a([0, -1, -1]), $a([4, 56, 24]), $a([1, 63, 28]), $a([0, -1, -1]), $a([7, 28, 24]), $a([1, 25, 22]), $a([0, -1, -1]), $a([8, 18, 28]), $a([1, 21, 22]), $a([0, -1, -1])]), $a(["22", 65, 16, 3, 3383, $a([2, 116, 22]), $a([1, 122, 24]), $a([0, -1, -1]), $a([4, 56, 24]), $a([1, 72, 30]), $a([0, -1, -1]), $a([7, 28, 24]), $a([1, 32, 26]), $a([0, -1, -1]), $a([8, 18, 28]), $a([1, 24, 30]), $a([0, -1, -1])]), $a(["23", 67, 17, 3, 3631, $a([3, 127, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([5, 51, 22]), $a([1, 62, 26]), $a([0, -1, -1]), $a([7, 30, 26]), $a([1, 35, 26]), $a([0, -1, -1]), $a([8, 20, 30]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["24", 69, 17, 3, 3887, $a([2, 135, 26]), $a([1, 137, 26]), $a([0, -1, -1]), $a([5, 56, 24]), $a([1, 59, 26]), $a([0, -1, -1]), $a([7, 33, 28]), $a([1, 30, 28]), $a([0, -1, -1]), $a([11, 16, 24]), $a([1, 19, 26]), $a([0, -1, -1])]), $a(["25", 71, 18, 3, 4151, $a([3, 105, 20]), $a([1, 121, 22]), $a([0, -1, -1]), $a([5, 61, 26]), $a([1, 57, 26]), $a([0, -1, -1]), $a([9, 28, 24]), $a([1, 28, 22]), $a([0, -1, -1]), $a([10, 19, 28]), $a([1, 18, 30]), $a([0, -1, -1])]), $a(["26", 73, 18, 3, 4423, $a([2, 157, 30]), $a([1, 150, 28]), $a([0, -1, -1]), $a([5, 65, 28]), $a([1, 61, 26]), $a([0, -1, -1]), $a([8, 33, 28]), $a([1, 34, 30]), $a([0, -1, -1]), $a([10, 19, 28]), $a([2, 15, 26]), $a([0, -1, -1])]), $a(["27", 75, 19, 3, 4703, $a([3, 126, 24]), $a([1, 115, 22]), $a([0, -1, -1]), $a([7, 51, 22]), $a([1, 54, 22]), $a([0, -1, -1]), $a([8, 35, 30]), $a([1, 37, 30]), $a([0, -1, -1]), $a([15, 15, 22]), $a([1, 10, 22]), $a([0, -1, -1])]), $a(["28", 77, 19, 3, 4991, $a([4, 105, 20]), $a([1, 103, 20]), $a([0, -1, -1]), $a([7, 56, 24]), $a([1, 45, 18]), $a([0, -1, -1]), $a([10, 31, 26]), $a([1, 27, 26]), $a([0, -1, -1]), $a([10, 17, 26]), $a([3, 20, 28]), $a([1, 21, 28])]), $a(["29", 79, 20, 3, 5287, $a([3, 139, 26]), $a([1, 137, 28]), $a([0, -1, -1]), $a([6, 66, 28]), $a([1, 66, 30]), $a([0, -1, -1]), $a([9, 36, 30]), $a([1, 34, 32]), $a([0, -1, -1]), $a([13, 19, 28]), $a([1, 17, 32]), $a([0, -1, -1])]), $a(["30", 81, 20, 3, 5591, $a([6, 84, 16]), $a([1, 82, 16]), $a([0, -1, -1]), $a([6, 70, 30]), $a([1, 68, 30]), $a([0, -1, -1]), $a([7, 35, 30]), $a([3, 33, 28]), $a([1, 32, 28]), $a([13, 20, 30]), $a([1, 20, 28]), $a([0, -1, -1])]), $a(["31", 83, 21, 3, 5903, $a([5, 105, 20]), $a([1, 94, 18]), $a([0, -1, -1]), $a([6, 74, 32]), $a([1, 71, 30]), $a([0, -1, -1]), $a([11, 33, 28]), $a([1, 34, 32]), $a([0, -1, -1]), $a([13, 19, 28]), $a([3, 16, 26]), $a([0, -1, -1])]), $a(["32", 85, 17, 4, 6033, $a([4, 127, 24]), $a([1, 126, 24]), $a([0, -1, -1]), $a([7, 66, 28]), $a([1, 66, 30]), $a([0, -1, -1]), $a([12, 30, 24]), $a([1, 24, 28]), $a([1, 24, 30]), $a([15, 19, 28]), $a([1, 17, 32]), $a([0, -1, -1])]), $a(["33", 87, 17, 4, 6353, $a([7, 84, 16]), $a([1, 78, 16]), $a([0, -1, -1]), $a([7, 70, 30]), $a([1, 66, 28]), $a([0, -1, -1]), $a([12, 33, 28]), $a([1, 32, 30]), $a([0, -1, -1]), $a([14, 21, 32]), $a([1, 24, 28]), $a([0, -1, -1])]), $a(["34", 89, 18, 4, 6689, $a([5, 117, 22]), $a([1, 117, 24]), $a([0, -1, -1]), $a([8, 66, 28]), $a([1, 58, 26]), $a([0, -1, -1]), $a([11, 38, 32]), $a([1, 34, 32]), $a([0, -1, -1]), $a([15, 20, 30]), $a([2, 17, 26]), $a([0, -1, -1])]), $a(["35", 91, 18, 4, 7025, $a([4, 148, 28]), $a([1, 146, 28]), $a([0, -1, -1]), $a([8, 68, 30]), $a([1, 70, 24]), $a([0, -1, -1]), $a([10, 36, 32]), $a([3, 38, 28]), $a([0, -1, -1]), $a([16, 19, 28]), $a([3, 16, 26]), $a([0, -1, -1])]), $a(["36", 93, 19, 4, 7377, $a([4, 126, 24]), $a([2, 135, 26]), $a([0, -1, -1]), $a([8, 70, 28]), $a([2, 43, 26]), $a([0, -1, -1]), $a([13, 32, 28]), $a([2, 41, 30]), $a([0, -1, -1]), $a([17, 19, 28]), $a([3, 15, 26]), $a([0, -1, -1])]), $a(["37", 95, 19, 4, 7729, $a([5, 136, 26]), $a([1, 132, 24]), $a([0, -1, -1]), $a([5, 67, 30]), $a([4, 68, 28]), $a([1, 69, 28]), $a([14, 35, 30]), $a([1, 32, 24]), $a([0, -1, -1]), $a([18, 18, 26]), $a([3, 16, 28]), $a([1, 14, 28])]), $a(["38", 97, 19, 4, 8089, $a([3, 142, 26]), $a([3, 141, 28]), $a([0, -1, -1]), $a([8, 70, 30]), $a([1, 73, 32]), $a([1, 74, 32]), $a([12, 34, 30]), $a([3, 34, 26]), $a([1, 35, 28]), $a([18, 21, 32]), $a([1, 27, 30]), $a([0, -1, -1])]), $a(["39", 99, 20, 4, 8465, $a([5, 116, 22]), $a([2, 103, 20]), $a([1, 102, 20]), $a([9, 74, 32]), $a([1, 74, 30]), $a([0, -1, -1]), $a([14, 34, 28]), $a([2, 32, 32]), $a([1, 32, 30]), $a([19, 21, 32]), $a([1, 25, 26]), $a([0, -1, -1])]), $a(["40", 101, 20, 4, 8841, $a([7, 116, 22]), $a([1, 117, 22]), $a([0, -1, -1]), $a([11, 65, 28]), $a([1, 58, 24]), $a([0, -1, -1]), $a([15, 38, 32]), $a([1, 27, 28]), $a([0, -1, -1]), $a([20, 20, 30]), $a([1, 20, 32]), $a([1, 21, 32])]), $a(["41", 103, 17, 5, 9009, $a([6, 136, 26]), $a([1, 130, 24]), $a([0, -1, -1]), $a([11, 66, 28]), $a([1, 62, 30]), $a([0, -1, -1]), $a([14, 34, 28]), $a([3, 34, 32]), $a([1, 30, 30]), $a([18, 20, 30]), $a([3, 20, 28]), $a([2, 15, 26])]), $a(["42", 105, 17, 5, 9401, $a([5, 105, 20]), $a([2, 115, 22]), $a([2, 116, 22]), $a([10, 75, 32]), $a([1, 73, 32]), $a([0, -1, -1]), $a([16, 38, 32]), $a([1, 27, 28]), $a([0, -1, -1]), $a([22, 19, 28]), $a([2, 16, 30]), $a([1, 19, 30])]), $a(["43", 107, 18, 5, 9799, $a([6, 147, 28]), $a([1, 146, 28]), $a([0, -1, -1]), $a([11, 66, 28]), $a([2, 65, 30]), $a([0, -1, -1]), $a([18, 33, 28]), $a([2, 33, 30]), $a([0, -1, -1]), $a([22, 21, 32]), $a([1, 28, 30]), $a([0, -1, -1])]), $a(["44", 109, 18, 5, 10207, $a([6, 116, 22]), $a([3, 125, 24]), $a([0, -1, -1]), $a([11, 75, 32]), $a([1, 68, 30]), $a([0, -1, -1]), $a([13, 35, 28]), $a([6, 34, 32]), $a([1, 30, 30]), $a([23, 21, 32]), $a([1, 26, 30]), $a([0, -1, -1])]), $a(["45", 111, 18, 5, 10623, $a([7, 105, 20]), $a([4, 95, 18]), $a([0, -1, -1]), $a([12, 67, 28]), $a([1, 63, 30]), $a([1, 62, 32]), $a([21, 31, 26]), $a([2, 33, 32]), $a([0, -1, -1]), $a([23, 21, 32]), $a([2, 24, 30]), $a([0, -1, -1])]), $a(["46", 113, 19, 5, 11045, $a([10, 116, 22]), $a([0, -1, -1]), $a([0, -1, -1]), $a([12, 74, 32]), $a([1, 78, 30]), $a([0, -1, -1]), $a([18, 37, 32]), $a([1, 39, 30]), $a([1, 41, 28]), $a([25, 21, 32]), $a([1, 27, 28]), $a([0, -1, -1])]), $a(["47", 115, 19, 5, 11477, $a([5, 126, 24]), $a([4, 115, 22]), $a([1, 114, 22]), $a([12, 67, 28]), $a([2, 66, 32]), $a([1, 68, 30]), $a([21, 35, 30]), $a([1, 39, 30]), $a([0, -1, -1]), $a([26, 21, 32]), $a([1, 28, 28]), $a([0, -1, -1])]), $a(["48", 117, 19, 5, 11917, $a([9, 126, 24]), $a([1, 117, 22]), $a([0, -1, -1]), $a([13, 75, 32]), $a([1, 68, 30]), $a([0, -1, -1]), $a([20, 35, 30]), $a([3, 35, 28]), $a([0, -1, -1]), $a([27, 21, 32]), $a([1, 28, 30]), $a([0, -1, -1])]), $a(["49", 119, 17, 6, 12111, $a([9, 126, 24]), $a([1, 137, 26]), $a([0, -1, -1]), $a([13, 71, 30]), $a([2, 68, 32]), $a([0, -1, -1]), $a([20, 37, 32]), $a([1, 39, 28]), $a([1, 38, 28]), $a([24, 20, 32]), $a([5, 25, 28]), $a([0, -1, -1])]), $a(["50", 121, 17, 6, 12559, $a([8, 147, 28]), $a([1, 141, 28]), $a([0, -1, -1]), $a([10, 73, 32]), $a([4, 74, 30]), $a([1, 73, 30]), $a([16, 36, 32]), $a([6, 39, 30]), $a([1, 37, 30]), $a([27, 21, 32]), $a([3, 20, 26]), $a([0, -1, -1])]), $a(["51", 123, 18, 6, 13025, $a([9, 137, 26]), $a([1, 135, 26]), $a([0, -1, -1]), $a([12, 70, 30]), $a([4, 75, 32]), $a([0, -1, -1]), $a([24, 35, 30]), $a([1, 40, 28]), $a([0, -1, -1]), $a([23, 20, 32]), $a([8, 24, 30]), $a([0, -1, -1])]), $a(["52", 125, 18, 6, 13489, $a([14, 95, 18]), $a([1, 86, 18]), $a([0, -1, -1]), $a([13, 73, 32]), $a([3, 77, 30]), $a([0, -1, -1]), $a([24, 35, 30]), $a([2, 35, 28]), $a([0, -1, -1]), $a([26, 21, 32]), $a([5, 21, 30]), $a([1, 23, 30])]), $a(["53", 127, 18, 6, 13961, $a([9, 147, 28]), $a([1, 142, 28]), $a([0, -1, -1]), $a([10, 73, 30]), $a([6, 70, 32]), $a([1, 71, 32]), $a([25, 35, 30]), $a([2, 34, 26]), $a([0, -1, -1]), $a([29, 21, 32]), $a([4, 22, 30]), $a([0, -1, -1])]), $a(["54", 129, 18, 6, 14441, $a([11, 126, 24]), $a([1, 131, 24]), $a([0, -1, -1]), $a([16, 74, 32]), $a([1, 79, 30]), $a([0, -1, -1]), $a([25, 38, 32]), $a([1, 25, 30]), $a([0, -1, -1]), $a([33, 21, 32]), $a([1, 28, 28]), $a([0, -1, -1])]), $a(["55", 131, 19, 6, 14939, $a([14, 105, 20]), $a([1, 99, 18]), $a([0, -1, -1]), $a([19, 65, 28]), $a([1, 72, 28]), $a([0, -1, -1]), $a([24, 37, 32]), $a([2, 40, 30]), $a([1, 41, 30]), $a([31, 21, 32]), $a([4, 24, 32]), $a([0, -1, -1])]), $a(["56", 133, 19, 6, 15435, $a([10, 147, 28]), $a([1, 151, 28]), $a([0, -1, -1]), $a([15, 71, 30]), $a([3, 71, 32]), $a([1, 73, 32]), $a([24, 37, 32]), $a([3, 38, 30]), $a([1, 39, 30]), $a([36, 19, 30]), $a([3, 29, 26]), $a([0, -1, -1])]), $a(["57", 135, 19, 6, 15939, $a([15, 105, 20]), $a([1, 99, 18]), $a([0, -1, -1]), $a([19, 70, 30]), $a([1, 64, 28]), $a([0, -1, -1]), $a([27, 38, 32]), $a([2, 25, 26]), $a([0, -1, -1]), $a([38, 20, 30]), $a([2, 18, 28]), $a([0, -1, -1])]), $a(["58", 137, 17, 7, 16171, $a([14, 105, 20]), $a([1, 113, 22]), $a([1, 114, 22]), $a([17, 67, 30]), $a([3, 92, 32]), $a([0, -1, -1]), $a([30, 35, 30]), $a([1, 41, 30]), $a([0, -1, -1]), $a([36, 21, 32]), $a([1, 26, 30]), $a([1, 27, 30])]), $a(["59", 139, 17, 7, 16691, $a([11, 146, 28]), $a([1, 146, 26]), $a([0, -1, -1]), $a([20, 70, 30]), $a([1, 60, 26]), $a([0, -1, -1]), $a([29, 38, 32]), $a([1, 24, 32]), $a([0, -1, -1]), $a([40, 20, 30]), $a([2, 17, 26]), $a([0, -1, -1])]), $a(["60", 141, 18, 7, 17215, $a([3, 137, 26]), $a([1, 136, 26]), $a([10, 126, 24]), $a([22, 65, 28]), $a([1, 75, 30]), $a([0, -1, -1]), $a([30, 37, 32]), $a([1, 51, 30]), $a([0, -1, -1]), $a([42, 20, 30]), $a([1, 21, 30]), $a([0, -1, -1])]), $a(["61", 143, 18, 7, 17751, $a([12, 126, 24]), $a([2, 118, 22]), $a([1, 116, 22]), $a([19, 74, 32]), $a([1, 74, 30]), $a([1, 72, 28]), $a([30, 38, 32]), $a([2, 29, 30]), $a([0, -1, -1]), $a([39, 20, 32]), $a([2, 37, 26]), $a([1, 38, 26])]), $a(["62", 145, 18, 7, 18295, $a([12, 126, 24]), $a([3, 136, 26]), $a([0, -1, -1]), $a([21, 70, 30]), $a([2, 65, 28]), $a([0, -1, -1]), $a([34, 35, 30]), $a([1, 44, 32]), $a([0, -1, -1]), $a([42, 20, 30]), $a([2, 19, 28]), $a([2, 18, 28])]), $a(["63", 147, 18, 7, 18847, $a([12, 126, 24]), $a([3, 117, 22]), $a([1, 116, 22]), $a([25, 61, 26]), $a([2, 62, 28]), $a([0, -1, -1]), $a([34, 35, 30]), $a([1, 40, 32]), $a([1, 41, 32]), $a([45, 20, 30]), $a([1, 20, 32]), $a([1, 21, 32])]), $a(["64", 149, 19, 7, 19403, $a([15, 105, 20]), $a([2, 115, 22]), $a([2, 116, 22]), $a([25, 65, 28]), $a([1, 72, 28]), $a([0, -1, -1]), $a([18, 35, 30]), $a([17, 37, 32]), $a([1, 50, 32]), $a([42, 20, 30]), $a([6, 19, 28]), $a([1, 15, 28])]), $a(["65", 151, 19, 7, 19971, $a([19, 105, 20]), $a([1, 101, 20]), $a([0, -1, -1]), $a([33, 51, 22]), $a([1, 65, 22]), $a([0, -1, -1]), $a([40, 33, 28]), $a([1, 28, 28]), $a([0, -1, -1]), $a([49, 20, 30]), $a([1, 18, 28]), $a([0, -1, -1])]), $a(["66", 153, 17, 8, 20229, $a([18, 105, 20]), $a([2, 117, 22]), $a([0, -1, -1]), $a([26, 65, 28]), $a([1, 80, 30]), $a([0, -1, -1]), $a([35, 35, 30]), $a([3, 35, 28]), $a([1, 36, 28]), $a([52, 18, 28]), $a([2, 38, 30]), $a([0, -1, -1])]), $a(["67", 155, 17, 8, 20805, $a([26, 84, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([26, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([45, 31, 26]), $a([1, 9, 26]), $a([0, -1, -1]), $a([52, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["68", 157, 17, 8, 21389, $a([16, 126, 24]), $a([1, 114, 22]), $a([1, 115, 22]), $a([23, 70, 30]), $a([3, 65, 28]), $a([1, 66, 28]), $a([40, 35, 30]), $a([1, 43, 30]), $a([0, -1, -1]), $a([46, 20, 30]), $a([7, 19, 28]), $a([1, 16, 28])]), $a(["69", 159, 18, 8, 21993, $a([19, 116, 22]), $a([1, 105, 22]), $a([0, -1, -1]), $a([20, 70, 30]), $a([7, 66, 28]), $a([1, 63, 28]), $a([40, 35, 30]), $a([1, 42, 32]), $a([1, 43, 32]), $a([54, 20, 30]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["70", 161, 18, 8, 22593, $a([17, 126, 24]), $a([2, 115, 22]), $a([0, -1, -1]), $a([24, 70, 30]), $a([4, 74, 32]), $a([0, -1, -1]), $a([48, 31, 26]), $a([2, 18, 26]), $a([0, -1, -1]), $a([54, 19, 28]), $a([6, 15, 26]), $a([1, 14, 26])]), $a(["71", 163, 18, 8, 23201, $a([29, 84, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([29, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([6, 34, 30]), $a([3, 36, 30]), $a([38, 33, 28]), $a([58, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["72", 165, 18, 8, 23817, $a([16, 147, 28]), $a([1, 149, 28]), $a([0, -1, -1]), $a([31, 66, 28]), $a([1, 37, 26]), $a([0, -1, -1]), $a([48, 33, 28]), $a([1, 23, 26]), $a([0, -1, -1]), $a([53, 20, 30]), $a([6, 19, 28]), $a([1, 17, 28])]), $a(["73", 167, 19, 8, 24453, $a([20, 115, 22]), $a([2, 134, 24]), $a([0, -1, -1]), $a([29, 66, 28]), $a([2, 56, 26]), $a([2, 57, 26]), $a([45, 36, 30]), $a([2, 15, 28]), $a([0, -1, -1]), $a([59, 20, 30]), $a([2, 21, 32]), $a([0, -1, -1])]), $a(["74", 169, 19, 8, 25085, $a([17, 147, 28]), $a([1, 134, 26]), $a([0, -1, -1]), $a([26, 70, 30]), $a([5, 75, 32]), $a([0, -1, -1]), $a([47, 35, 30]), $a([1, 48, 32]), $a([0, -1, -1]), $a([64, 18, 28]), $a([2, 33, 30]), $a([1, 35, 30])]), $a(["75", 171, 17, 9, 25373, $a([22, 115, 22]), $a([1, 133, 24]), $a([0, -1, -1]), $a([33, 65, 28]), $a([1, 74, 28]), $a([0, -1, -1]), $a([43, 36, 30]), $a([5, 27, 28]), $a([1, 30, 28]), $a([57, 20, 30]), $a([5, 21, 32]), $a([1, 24, 32])]), $a(["76", 173, 17, 9, 26021, $a([18, 136, 26]), $a([2, 142, 26]), $a([0, -1, -1]), $a([33, 66, 28]), $a([2, 49, 26]), $a([0, -1, -1]), $a([48, 35, 30]), $a([2, 38, 28]), $a([0, -1, -1]), $a([64, 20, 30]), $a([1, 20, 32]), $a([0, -1, -1])]), $a(["77", 175, 17, 9, 26677, $a([19, 126, 24]), $a([2, 135, 26]), $a([1, 136, 26]), $a([32, 66, 28]), $a([2, 55, 26]), $a([2, 56, 26]), $a([49, 36, 30]), $a([2, 18, 32]), $a([0, -1, -1]), $a([65, 18, 28]), $a([5, 27, 30]), $a([1, 29, 30])]), $a(["78", 177, 18, 9, 27335, $a([20, 137, 26]), $a([1, 130, 26]), $a([0, -1, -1]), $a([30, 75, 32]), $a([2, 71, 32]), $a([0, -1, -1]), $a([46, 35, 30]), $a([6, 39, 32]), $a([0, -1, -1]), $a([3, 12, 30]), $a([70, 19, 28]), $a([0, -1, -1])]), $a(["79", 179, 18, 9, 28007, $a([20, 147, 28]), $a([0, -1, -1]), $a([0, -1, -1]), $a([35, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([49, 35, 30]), $a([5, 35, 28]), $a([0, -1, -1]), $a([70, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["80", 181, 18, 9, 28687, $a([21, 136, 26]), $a([1, 155, 28]), $a([0, -1, -1]), $a([34, 70, 30]), $a([1, 64, 28]), $a([1, 65, 28]), $a([54, 35, 30]), $a([1, 45, 30]), $a([0, -1, -1]), $a([68, 20, 30]), $a([3, 18, 28]), $a([1, 19, 28])]), $a(["81", 183, 18, 9, 29375, $a([19, 126, 24]), $a([5, 115, 22]), $a([1, 114, 22]), $a([33, 70, 30]), $a([3, 65, 28]), $a([1, 64, 28]), $a([52, 35, 30]), $a([3, 41, 32]), $a([1, 40, 32]), $a([67, 20, 30]), $a([5, 21, 32]), $a([1, 24, 32])]), $a(["82", 185, 18, 9, 30071, $a([2, 150, 28]), $a([21, 136, 26]), $a([0, -1, -1]), $a([32, 70, 30]), $a([6, 65, 28]), $a([0, -1, -1]), $a([52, 38, 32]), $a([2, 27, 32]), $a([0, -1, -1]), $a([73, 20, 30]), $a([2, 22, 32]), $a([0, -1, -1])]), $a(["83", 187, 17, 10, 30387, $a([21, 126, 24]), $a([4, 136, 26]), $a([0, -1, -1]), $a([30, 74, 32]), $a([6, 73, 30]), $a([0, -1, -1]), $a([54, 35, 30]), $a([4, 40, 32]), $a([0, -1, -1]), $a([75, 20, 30]), $a([1, 20, 28]), $a([0, -1, -1])]), $a(["84", 189, 17, 10, 31091, $a([30, 105, 20]), $a([1, 114, 22]), $a([0, -1, -1]), $a([3, 45, 22]), $a([55, 47, 20]), $a([0, -1, -1]), $a([2, 26, 26]), $a([62, 33, 28]), $a([0, -1, -1]), $a([79, 18, 28]), $a([4, 33, 30]), $a([0, -1, -1])])]); //#22525 + $1.eclval = $get($1.eclevel, 1) - 49; //#22527 + for (var _IM = 0; _IM <= 83; _IM += 1) { //#22547 + $1.i = _IM; //#22529 + $1.m = $get($1.metrics, $1.i); //#22530 + $1.vers = $get($1.m, 0); //#22531 + $1.size = $get($1.m, 1); //#22532 + $1.alnk = $get($1.m, 2); //#22533 + $1.alnn = $get($1.m, 3); //#22534 + $1.alnr = $f($1.size - ($1.alnk * $1.alnn)); //#22535 + $1.nmod = $get($1.m, 4); //#22536 + $1.ncws = ~~($1.nmod / 8); //#22537 + $1.rbit = $1.nmod % 8; //#22538 + $1.ecbs = $geti($1.m, 5 + ($1.eclval * 3), 3); //#22539 + var _Ii = $1.ecbs; //#22540 + $k[$j++] = 'ecws'; //#22540 + $k[$j++] = 0; //#22540 + for (var _Ij = 0, _Ik = _Ii.length; _Ij < _Ik; _Ij++) { //#22540 + var _Il = $get(_Ii, _Ij); //#22540 + var _Io = $k[--$j]; //#22540 + $k[$j++] = $f(_Io + ($get(_Il, 0) * $get(_Il, 2))); //#22540 + } //#22540 + var _Ip = $k[--$j]; //#22540 + $1[$k[--$j]] = _Ip; //#22540 + $1.dcws = $f($1.ncws - $1.ecws); //#22541 + $1.dmod = $1.dcws * 8; //#22542 + $1.okay = true; //#22543 + if ($ne($1.version, "unset") && $ne($1.version, $1.vers)) { //#22544 + $1.okay = false; //#22544 + } //#22544 + if ($1.bits.length > $1.dmod) { //#22545 + $1.okay = false; //#22545 + } //#22545 + if ($1.okay) { //#22546 + break; //#22546 + } //#22546 + } //#22546 + if (!$1.okay) { //#22551 + $k[$j++] = 'bwipp.hanxinNoValidSymbol'; //#22550 + $k[$j++] = "No valid symbol available"; //#22550 + $0.raiseerror(); //#22550 + } //#22550 + $1.version = $1.vers; //#22553 + $1.msgbits = $1.bits; //#22554 + $1.e1nb = $get($get($1.ecbs, 0), 0); //#22555 + $1.e2nb = $get($get($1.ecbs, 1), 0); //#22555 + $1.e3nb = $get($get($1.ecbs, 2), 0); //#22555 + $1.e1dcws = $get($get($1.ecbs, 0), 1); //#22556 + $1.e2dcws = $get($get($1.ecbs, 1), 1); //#22556 + $1.e3dcws = $get($get($1.ecbs, 2), 1); //#22556 + $1.e1ecws = $get($get($1.ecbs, 0), 2); //#22557 + $1.e2ecws = $get($get($1.ecbs, 1), 2); //#22557 + $1.e3ecws = $get($get($1.ecbs, 2), 2); //#22557 + $1.pad = $s($1.dmod); //#22560 + for (var _JY = 0, _JX = $1.pad.length - 1; _JY <= _JX; _JY += 1) { //#22561 + $put($1.pad, _JY, 48); //#22561 + } //#22561 + $puti($1.pad, 0, $1.msgbits); //#22562 + $1.cws = $a($1.dcws); //#22565 + for (var _Jg = 0, _Jf = $1.cws.length - 1; _Jg <= _Jf; _Jg += 1) { //#22575 + $1.c = _Jg; //#22567 + $1.cwb = $geti($1.pad, $1.c * 8, 8); //#22568 + $1.cw = 0; //#22569 + for (var _Jk = 0; _Jk <= 7; _Jk += 1) { //#22573 + $1.i = _Jk; //#22571 + $1.cw = $f($1.cw + ((~~(Math.pow(2, (8 - $1.i) - 1))) * $f($get($1.cwb, $1.i) - 48))); //#22572 + } //#22572 + $put($1.cws, $1.c, $1.cw); //#22574 + } //#22574 + $1.rscodes = function() { + $1.rspm = $k[--$j]; //#22579 + $1.rsgf = $k[--$j]; //#22580 + $1.rsnc = $k[--$j]; //#22581 + $1.rscws = $k[--$j]; //#22582 + $k[$j++] = Infinity; //#22585 + $k[$j++] = 1; //#22585 + for (var _Jy = 0, _Jz = $f($1.rsgf - 1); _Jy < _Jz; _Jy++) { //#22585 + var _K0 = $k[--$j]; //#22585 + var _K1 = _K0 * 2; //#22585 + $k[$j++] = _K0; //#22585 + $k[$j++] = _K1; //#22585 + if (_K1 >= $1.rsgf) { //#22585 + var _K4 = $k[--$j]; //#22585 + $k[$j++] = $xo(_K4, $1.rspm); //#22585 + } //#22585 + } //#22585 + $1.rsalog = $a(); //#22585 + $1.rslog = $a($1.rsgf); //#22586 + for (var _KA = 1, _K9 = $f($1.rsgf - 1); _KA <= _K9; _KA += 1) { //#22587 + $put($1.rslog, $get($1.rsalog, _KA), _KA); //#22587 + } //#22587 + $1.rsprod = function() { + var _KE = $k[--$j]; //#22591 + var _KF = $k[--$j]; //#22591 + $k[$j++] = _KF; //#22595 + $k[$j++] = _KE; //#22595 + if ((_KE != 0) && (_KF != 0)) { //#22594 + var _KI = $get($1.rslog, $k[--$j]); //#22592 + var _KO = $get($1.rsalog, $f(_KI + $get($1.rslog, $k[--$j])) % $f($1.rsgf - 1)); //#22592 + $k[$j++] = _KO; //#22592 + } else { //#22594 + $j -= 2; //#22594 + $k[$j++] = 0; //#22594 + } //#22594 + }; //#22596 + $k[$j++] = Infinity; //#22599 + $k[$j++] = 1; //#22599 + for (var _KQ = 0, _KR = $1.rsnc; _KQ < _KR; _KQ++) { //#22599 + $k[$j++] = 0; //#22599 + } //#22599 + $1.coeffs = $a(); //#22599 + for (var _KV = 1, _KU = $1.rsnc; _KV <= _KU; _KV += 1) { //#22608 + $1.i = _KV; //#22601 + $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); //#22602 + for (var _Kc = $1.i - 1; _Kc >= 1; _Kc -= 1) { //#22606 + $1.j = _Kc; //#22604 + $k[$j++] = $1.coeffs; //#22605 + $k[$j++] = $1.j; //#22605 + $k[$j++] = $get($1.coeffs, $1.j - 1); //#22605 + $k[$j++] = $get($1.coeffs, $1.j); //#22605 + $k[$j++] = $get($1.rsalog, $1.i); //#22605 + $1.rsprod(); //#22605 + var _Ko = $k[--$j]; //#22605 + var _Kp = $k[--$j]; //#22605 + var _Kq = $k[--$j]; //#22605 + $put($k[--$j], _Kq, $xo(_Kp, _Ko)); //#22605 + } //#22605 + $k[$j++] = $1.coeffs; //#22607 + $k[$j++] = 0; //#22607 + $k[$j++] = $get($1.coeffs, 0); //#22607 + $k[$j++] = $get($1.rsalog, $1.i); //#22607 + $1.rsprod(); //#22607 + var _Ky = $k[--$j]; //#22607 + var _Kz = $k[--$j]; //#22607 + $put($k[--$j], _Kz, _Ky); //#22607 + } //#22607 + $1.nd = $1.rscws.length; //#22611 + $k[$j++] = Infinity; //#22612 + $forall($1.rscws); //#22612 + for (var _L4 = 0, _L5 = $1.rsnc; _L4 < _L5; _L4++) { //#22612 + $k[$j++] = 0; //#22612 + } //#22612 + $k[$j++] = 0; //#22612 + $1.rscws = $a(); //#22612 + for (var _L9 = 0, _L8 = $1.nd - 1; _L9 <= _L8; _L9 += 1) { //#22619 + $1.k = $xo($get($1.rscws, _L9), $get($1.rscws, $1.nd)); //#22614 + for (var _LH = 0, _LG = $f($1.rsnc - 1); _LH <= _LG; _LH += 1) { //#22618 + $1.j = _LH; //#22616 + $k[$j++] = $1.rscws; //#22617 + $k[$j++] = $1.nd + $1.j; //#22617 + $k[$j++] = $get($1.rscws, ($1.nd + $1.j) + 1); //#22617 + $k[$j++] = $1.k; //#22617 + $k[$j++] = $get($1.coeffs, $f($f($1.rsnc - $1.j) - 1)); //#22617 + $1.rsprod(); //#22617 + var _LU = $k[--$j]; //#22617 + var _LV = $k[--$j]; //#22617 + var _LW = $k[--$j]; //#22617 + $put($k[--$j], _LW, $xo(_LV, _LU)); //#22617 + } //#22617 + } //#22617 + $k[$j++] = $geti($1.rscws, 0, $1.rscws.length - 1); //#22622 + }; //#22624 + $1.dcwsb = $a($f($f($1.e1nb + $1.e2nb) + $1.e3nb)); //#22627 + $1.ecwsb = $a($1.dcwsb.length); //#22628 + $1.in = 0; //#22629 + $1.out = 0; //#22629 + for (var _Li = 0, _Lj = $1.e1nb; _Li < _Lj; _Li++) { //#22635 + $k[$j++] = $geti($1.cws, $1.in, $1.e1dcws); //#22631 + $k[$j++] = $1.e1ecws; //#22631 + $k[$j++] = 256; //#22631 + $k[$j++] = 355; //#22631 + $1.rscodes(); //#22631 + var _Lp = $k[--$j]; //#22632 + $put($1.dcwsb, $1.out, $geti(_Lp, 0, $1.e1dcws)); //#22632 + $put($1.ecwsb, $1.out, $geti(_Lp, $1.e1dcws, $1.e1ecws)); //#22633 + $1.in = $f($1.in + $1.e1dcws); //#22634 + $1.out = $1.out + 1; //#22634 + } //#22634 + for (var _M3 = 0, _M4 = $1.e2nb; _M3 < _M4; _M3++) { //#22641 + $k[$j++] = $geti($1.cws, $1.in, $1.e2dcws); //#22637 + $k[$j++] = $1.e2ecws; //#22637 + $k[$j++] = 256; //#22637 + $k[$j++] = 355; //#22637 + $1.rscodes(); //#22637 + var _MA = $k[--$j]; //#22638 + $put($1.dcwsb, $1.out, $geti(_MA, 0, $1.e2dcws)); //#22638 + $put($1.ecwsb, $1.out, $geti(_MA, $1.e2dcws, $1.e2ecws)); //#22639 + $1.in = $f($1.in + $1.e2dcws); //#22640 + $1.out = $1.out + 1; //#22640 + } //#22640 + for (var _MO = 0, _MP = $1.e3nb; _MO < _MP; _MO++) { //#22647 + $k[$j++] = $geti($1.cws, $1.in, $1.e3dcws); //#22643 + $k[$j++] = $1.e3ecws; //#22643 + $k[$j++] = 256; //#22643 + $k[$j++] = 355; //#22643 + $1.rscodes(); //#22643 + var _MV = $k[--$j]; //#22644 + $put($1.dcwsb, $1.out, $geti(_MV, 0, $1.e3dcws)); //#22644 + $put($1.ecwsb, $1.out, $geti(_MV, $1.e3dcws, $1.e3ecws)); //#22645 + $1.in = $f($1.in + $1.e3dcws); //#22646 + $1.out = $1.out + 1; //#22646 + } //#22646 + $1.cws = $a($1.ncws); //#22650 + $1.cw = 0; //#22651 + for (var _Mm = 0, _Ml = $1.dcwsb.length - 1; _Mm <= _Ml; _Mm += 1) { //#22656 + $1.i = _Mm; //#22653 + var _Mp = $get($1.dcwsb, $1.i); //#22654 + $puti($1.cws, $1.cw, _Mp); //#22654 + $1.cw = _Mp.length + $1.cw; //#22654 + var _Mv = $get($1.ecwsb, $1.i); //#22655 + $puti($1.cws, $1.cw, _Mv); //#22655 + $1.cw = _Mv.length + $1.cw; //#22655 + } //#22655 + $k[$j++] = Infinity; //#22661 + var _Mz = $1.ncws; //#22660 + var _N0 = 12; //#22660 + var _N1 = _Mz - 1; //#22660 + if ((_Mz - 1) > 12) { //#22660 + var _ = _N0; //#22660 + _N0 = _N1; //#22660 + _N1 = _; //#22660 + } //#22660 + for (var _N3 = 0, _N2 = _N1; _N3 <= _N2; _N3 += 1) { //#22662 + for (var _N6 = _N3, _N5 = $1.ncws - 1; _N6 <= _N5; _N6 += 13) { //#22661 + $k[$j++] = _N6; //#22661 + if (_N6 < $1.ncws) { //#22661 + var _NA = $get($1.cws, $k[--$j]); //#22661 + $k[$j++] = _NA; //#22661 + } else { //#22661 + $j--; //#22661 + } //#22661 + } //#22661 + } //#22661 + $1.cws = $a(); //#22661 + if ($1.rbit > 0) { //#22671 + $1.pad = $a($1.cws.length + 1); //#22667 + $puti($1.pad, 0, $1.cws); //#22668 + $put($1.pad, $1.pad.length - 1, 0); //#22669 + $1.cws = $1.pad; //#22670 + } //#22670 + $k[$j++] = Infinity; //#22674 + for (var _NM = 0, _NN = $1.size * $1.size; _NM < _NN; _NM++) { //#22674 + $k[$j++] = -1; //#22674 + } //#22674 + $1.pixs = $a(); //#22674 + $1.qmv = function() { + var _NQ = $k[--$j]; //#22675 + var _NR = $k[--$j]; //#22675 + $k[$j++] = $f(_NR + (_NQ * $1.size)); //#22675 + }; //#22675 + if ($1.alnn != 0) { //#22734 + $1.trmv = function() { + var _NU = $k[--$j]; //#22679 + var _NW = $k[--$j]; //#22679 + $k[$j++] = $f(($f(($f((_NU * $1.size) + $1.size)) - 1)) - _NW); //#22679 + }; //#22679 + $1.aplot = function() { + var _NX = $k[--$j]; //#22681 + var _NY = $k[--$j]; //#22681 + var _NZ = $k[--$j]; //#22681 + $k[$j++] = _NX; //#22681 + $k[$j++] = _NZ; //#22681 + $k[$j++] = _NY; //#22681 + $k[$j++] = _NX; //#22681 + $k[$j++] = _NY; //#22681 + $k[$j++] = _NZ; //#22681 + $1.trmv(); //#22681 + var _Nb = $k[--$j]; //#22681 + $put($1.pixs, _Nb, $k[--$j]); //#22681 + $1.trmv(); //#22682 + var _Ne = $k[--$j]; //#22682 + $put($1.pixs, _Ne, $k[--$j]); //#22682 + }; //#22683 + $1.i = 0; //#22684 + $1.stag = 0; //#22684 + for (;;) { //#22706 + if ($1.i >= $1.size) { //#22685 + break; //#22685 + } //#22685 + for (var _Nk = 0, _Nj = $f($1.size - 1); _Nk <= _Nj; _Nk += 1) { //#22699 + $1.j = _Nk; //#22687 + if ($f($1.j + $1.alnr) < $1.size) { //#22693 + $k[$j++] = (((((~~($1.j / $1.alnk)) + $1.stag) % 2) == 0) && (!(($1.i == 0) && ($1.j < $1.alnk)))) || (($1.j % $1.alnk) == 0); //#22691 + } else { //#22693 + $k[$j++] = ($f($1.alnn + $1.stag) % 2) == 0; //#22693 + } //#22693 + if ($k[--$j]) { //#22698 + $k[$j++] = $1.j; //#22696 + $k[$j++] = $1.i; //#22696 + $k[$j++] = 1; //#22696 + $1.aplot(); //#22696 + var _O1 = $1.j; //#22697 + var _O2 = $1.i; //#22697 + $k[$j++] = _O1 + 1; //#22697 + $k[$j++] = _O2 + 1; //#22697 + if (((_O2 + 1) < $1.size) && ((_O1 + 1) < $1.size)) { //#22697 + $k[$j++] = 0; //#22697 + $1.aplot(); //#22697 + } else { //#22697 + $j -= 2; //#22697 + } //#22697 + } //#22697 + } //#22697 + if ($f($1.i + $1.alnr) == $1.size) { //#22703 + $1.i = $f($f($1.i + $1.alnr) - 1); //#22701 + } else { //#22703 + $1.i = $f($1.i + $1.alnk); //#22703 + } //#22703 + $1.stag = 1 - $1.stag; //#22705 + } //#22705 + for (var _OH = $1.alnk, _OI = $1.alnk, _OG = $f($1.size - 2); _OI < 0 ? _OH >= _OG : _OH <= _OG; _OH += _OI) { //#22733 + $1.i = _OH; //#22708 + if (((~~($1.i / $1.alnk)) % 2) != 0) { //#22720 + $k[$j++] = $1.pixs; //#22710 + $k[$j++] = 0; //#22710 + $k[$j++] = $1.i - 1; //#22710 + $1.trmv(); //#22710 + var _ON = $k[--$j]; //#22710 + $put($k[--$j], _ON, 0); //#22710 + $k[$j++] = $1.pixs; //#22711 + $k[$j++] = 0; //#22711 + $k[$j++] = $1.i + 1; //#22711 + $1.trmv(); //#22711 + var _OR = $k[--$j]; //#22711 + $put($k[--$j], _OR, 0); //#22711 + $k[$j++] = $1.pixs; //#22712 + $k[$j++] = 1; //#22712 + $k[$j++] = $1.i - 1; //#22712 + $1.trmv(); //#22712 + var _OV = $k[--$j]; //#22712 + $put($k[--$j], _OV, 0); //#22712 + $k[$j++] = $1.pixs; //#22713 + $k[$j++] = 1; //#22713 + $k[$j++] = $1.i; //#22713 + $1.trmv(); //#22713 + var _OZ = $k[--$j]; //#22713 + $put($k[--$j], _OZ, 0); //#22713 + $k[$j++] = $1.pixs; //#22714 + $k[$j++] = 1; //#22714 + $k[$j++] = $1.i + 1; //#22714 + $1.trmv(); //#22714 + var _Od = $k[--$j]; //#22714 + $put($k[--$j], _Od, 0); //#22714 + $k[$j++] = $1.pixs; //#22715 + $k[$j++] = $1.i - 1; //#22715 + $k[$j++] = 0; //#22715 + $1.trmv(); //#22715 + var _Oh = $k[--$j]; //#22715 + $put($k[--$j], _Oh, 0); //#22715 + $k[$j++] = $1.pixs; //#22716 + $k[$j++] = $1.i + 1; //#22716 + $k[$j++] = 0; //#22716 + $1.trmv(); //#22716 + var _Ol = $k[--$j]; //#22716 + $put($k[--$j], _Ol, 0); //#22716 + $k[$j++] = $1.pixs; //#22717 + $k[$j++] = $1.i - 1; //#22717 + $k[$j++] = 1; //#22717 + $1.trmv(); //#22717 + var _Op = $k[--$j]; //#22717 + $put($k[--$j], _Op, 0); //#22717 + $k[$j++] = $1.pixs; //#22718 + $k[$j++] = $1.i; //#22718 + $k[$j++] = 1; //#22718 + $1.trmv(); //#22718 + var _Ot = $k[--$j]; //#22718 + $put($k[--$j], _Ot, 0); //#22718 + $k[$j++] = $1.pixs; //#22719 + $k[$j++] = $1.i + 1; //#22719 + $k[$j++] = 1; //#22719 + $1.trmv(); //#22719 + var _Ox = $k[--$j]; //#22719 + $put($k[--$j], _Ox, 0); //#22719 + } //#22719 + $k[$j++] = $1.pixs; //#22721 + $k[$j++] = $f($1.size - 1); //#22721 + $k[$j++] = $1.i - 1; //#22721 + $1.trmv(); //#22721 + var _P2 = $k[--$j]; //#22721 + if ($get($k[--$j], _P2) != 1) { //#22732 + $k[$j++] = $1.pixs; //#22722 + $k[$j++] = $f($1.size - 1); //#22722 + $k[$j++] = $1.i - 1; //#22722 + $1.trmv(); //#22722 + var _P8 = $k[--$j]; //#22722 + $put($k[--$j], _P8, 0); //#22722 + $k[$j++] = $1.pixs; //#22723 + $k[$j++] = $f($1.size - 2); //#22723 + $k[$j++] = $1.i - 1; //#22723 + $1.trmv(); //#22723 + var _PD = $k[--$j]; //#22723 + $put($k[--$j], _PD, 0); //#22723 + $k[$j++] = $1.pixs; //#22724 + $k[$j++] = $f($1.size - 2); //#22724 + $k[$j++] = $1.i; //#22724 + $1.trmv(); //#22724 + var _PI = $k[--$j]; //#22724 + $put($k[--$j], _PI, 0); //#22724 + $k[$j++] = $1.pixs; //#22725 + $k[$j++] = $f($1.size - 2); //#22725 + $k[$j++] = $1.i + 1; //#22725 + $1.trmv(); //#22725 + var _PN = $k[--$j]; //#22725 + $put($k[--$j], _PN, 0); //#22725 + $k[$j++] = $1.pixs; //#22726 + $k[$j++] = $f($1.size - 1); //#22726 + $k[$j++] = $1.i + 1; //#22726 + $1.trmv(); //#22726 + var _PS = $k[--$j]; //#22726 + $put($k[--$j], _PS, 0); //#22726 + $k[$j++] = $1.pixs; //#22727 + $k[$j++] = $1.i - 1; //#22727 + $k[$j++] = $f($1.size - 1); //#22727 + $1.trmv(); //#22727 + var _PX = $k[--$j]; //#22727 + $put($k[--$j], _PX, 0); //#22727 + $k[$j++] = $1.pixs; //#22728 + $k[$j++] = $1.i - 1; //#22728 + $k[$j++] = $f($1.size - 2); //#22728 + $1.trmv(); //#22728 + var _Pc = $k[--$j]; //#22728 + $put($k[--$j], _Pc, 0); //#22728 + $k[$j++] = $1.pixs; //#22729 + $k[$j++] = $1.i; //#22729 + $k[$j++] = $f($1.size - 2); //#22729 + $1.trmv(); //#22729 + var _Ph = $k[--$j]; //#22729 + $put($k[--$j], _Ph, 0); //#22729 + $k[$j++] = $1.pixs; //#22730 + $k[$j++] = $1.i + 1; //#22730 + $k[$j++] = $f($1.size - 2); //#22730 + $1.trmv(); //#22730 + var _Pm = $k[--$j]; //#22730 + $put($k[--$j], _Pm, 0); //#22730 + $k[$j++] = $1.pixs; //#22731 + $k[$j++] = $1.i + 1; //#22731 + $k[$j++] = $f($1.size - 1); //#22731 + $1.trmv(); //#22731 + var _Pr = $k[--$j]; //#22731 + $put($k[--$j], _Pr, 0); //#22731 + } //#22731 + } //#22731 + } //#22731 + $1.fpat = $a([$a([1, 1, 1, 1, 1, 1, 1, 0]), $a([1, 0, 0, 0, 0, 0, 0, 0]), $a([1, 0, 1, 1, 1, 1, 1, 0]), $a([1, 0, 1, 0, 0, 0, 0, 0]), $a([1, 0, 1, 0, 1, 1, 1, 0]), $a([1, 0, 1, 0, 1, 1, 1, 0]), $a([1, 0, 1, 0, 1, 1, 1, 0]), $a([0, 0, 0, 0, 0, 0, 0, 0])]); //#22746 + $1.fpat2 = $a([$a([1, 1, 1, 0, 1, 0, 1, 0]), $a([1, 1, 1, 0, 1, 0, 1, 0]), $a([1, 1, 1, 0, 1, 0, 1, 0]), $a([0, 0, 0, 0, 1, 0, 1, 0]), $a([1, 1, 1, 1, 1, 0, 1, 0]), $a([0, 0, 0, 0, 0, 0, 1, 0]), $a([1, 1, 1, 1, 1, 1, 1, 0]), $a([0, 0, 0, 0, 0, 0, 0, 0])]); //#22756 + for (var _QD = 0, _QC = $1.fpat.length - 1; _QD <= _QC; _QD += 1) { //#22768 + $1.y = _QD; //#22758 + for (var _QH = 0, _QG = $get($1.fpat, 0).length - 1; _QH <= _QG; _QH += 1) { //#22767 + $1.x = _QH; //#22760 + $1.fpb = $get($get($1.fpat, $1.y), $1.x); //#22761 + $1.fpb2 = $get($get($1.fpat2, $1.y), $1.x); //#22762 + $k[$j++] = $1.pixs; //#22763 + $k[$j++] = $1.x; //#22763 + $k[$j++] = $1.y; //#22763 + $1.qmv(); //#22763 + var _QW = $k[--$j]; //#22763 + $put($k[--$j], _QW, $1.fpb); //#22763 + $k[$j++] = $1.pixs; //#22764 + $k[$j++] = $f($f($1.size - $1.x) - 1); //#22764 + $k[$j++] = $1.y; //#22764 + $1.qmv(); //#22764 + var _Qd = $k[--$j]; //#22764 + $put($k[--$j], _Qd, $1.fpb); //#22764 + $k[$j++] = $1.pixs; //#22765 + $k[$j++] = $f($f($1.size - $1.x) - 1); //#22765 + $k[$j++] = $f($f($1.size - $1.y) - 1); //#22765 + $1.qmv(); //#22765 + var _Ql = $k[--$j]; //#22765 + $put($k[--$j], _Ql, $1.fpb); //#22765 + $k[$j++] = $1.pixs; //#22766 + $k[$j++] = $1.x; //#22766 + $k[$j++] = $f($f($1.size - $1.y) - 1); //#22766 + $1.qmv(); //#22766 + var _Qs = $k[--$j]; //#22766 + $put($k[--$j], _Qs, $1.fpb2); //#22766 + } //#22766 + } //#22766 + $1.functionmap = $a([$a([$a([0, 8]), $a([$f($1.size - 1), $f($1.size - 9)])]), $a([$a([1, 8]), $a([$f($1.size - 2), $f($1.size - 9)])]), $a([$a([2, 8]), $a([$f($1.size - 3), $f($1.size - 9)])]), $a([$a([3, 8]), $a([$f($1.size - 4), $f($1.size - 9)])]), $a([$a([4, 8]), $a([$f($1.size - 5), $f($1.size - 9)])]), $a([$a([5, 8]), $a([$f($1.size - 6), $f($1.size - 9)])]), $a([$a([6, 8]), $a([$f($1.size - 7), $f($1.size - 9)])]), $a([$a([7, 8]), $a([$f($1.size - 8), $f($1.size - 9)])]), $a([$a([8, 8]), $a([$f($1.size - 9), $f($1.size - 9)])]), $a([$a([8, 7]), $a([$f($1.size - 9), $f($1.size - 8)])]), $a([$a([8, 6]), $a([$f($1.size - 9), $f($1.size - 7)])]), $a([$a([8, 5]), $a([$f($1.size - 9), $f($1.size - 6)])]), $a([$a([8, 4]), $a([$f($1.size - 9), $f($1.size - 5)])]), $a([$a([8, 3]), $a([$f($1.size - 9), $f($1.size - 4)])]), $a([$a([8, 2]), $a([$f($1.size - 9), $f($1.size - 3)])]), $a([$a([8, 1]), $a([$f($1.size - 9), $f($1.size - 2)])]), $a([$a([8, 0]), $a([$f($1.size - 9), $f($1.size - 1)])]), $a([$a([$f($1.size - 9), 0]), $a([8, $f($1.size - 1)])]), $a([$a([$f($1.size - 9), 1]), $a([8, $f($1.size - 2)])]), $a([$a([$f($1.size - 9), 2]), $a([8, $f($1.size - 3)])]), $a([$a([$f($1.size - 9), 3]), $a([8, $f($1.size - 4)])]), $a([$a([$f($1.size - 9), 4]), $a([8, $f($1.size - 5)])]), $a([$a([$f($1.size - 9), 5]), $a([8, $f($1.size - 6)])]), $a([$a([$f($1.size - 9), 6]), $a([8, $f($1.size - 7)])]), $a([$a([$f($1.size - 9), 7]), $a([8, $f($1.size - 8)])]), $a([$a([$f($1.size - 9), 8]), $a([8, $f($1.size - 9)])]), $a([$a([$f($1.size - 8), 8]), $a([7, $f($1.size - 9)])]), $a([$a([$f($1.size - 7), 8]), $a([6, $f($1.size - 9)])]), $a([$a([$f($1.size - 6), 8]), $a([5, $f($1.size - 9)])]), $a([$a([$f($1.size - 5), 8]), $a([4, $f($1.size - 9)])]), $a([$a([$f($1.size - 4), 8]), $a([3, $f($1.size - 9)])]), $a([$a([$f($1.size - 3), 8]), $a([2, $f($1.size - 9)])]), $a([$a([$f($1.size - 2), 8]), $a([1, $f($1.size - 9)])]), $a([$a([$f($1.size - 1), 8]), $a([0, $f($1.size - 9)])])]); //#22790 + var _Tf = $1.functionmap; //#22791 + for (var _Tg = 0, _Th = _Tf.length; _Tg < _Th; _Tg++) { //#22793 + $forall($get(_Tf, _Tg), function() { //#22792 + $forall($k[--$j]); //#22792 + $1.qmv(); //#22792 + $put($1.pixs, $k[--$j], 0); //#22792 + }); //#22792 + } //#22792 + var _Ts = $a([function() { + $j -= 2; //#22796 + $k[$j++] = 1; //#22796 + }, function() { + var _Tm = $k[--$j]; //#22797 + var _Tn = $k[--$j]; //#22797 + $k[$j++] = $f(_Tn + _Tm) % 2; //#22797 + }, function() { + var _To = $k[--$j]; //#22798 + var _Tp = $k[--$j]; //#22798 + $k[$j++] = ($f(($f(_To + _Tp) % 3) + (_Tp % 3))) % 2; //#22798 + }, function() { + var _Tq = $k[--$j]; //#22799 + var _Tr = $k[--$j]; //#22799 + $k[$j++] = ($f((_Tr % _Tq) + ($f((_Tq % _Tr) + ($f((_Tq % 3) + (_Tr % 3))))))) % 2; //#22800 + }]); //#22800 + $1.maskfuncs = _Ts; //#22801 + if ($1.mask != -1) { //#22805 + $1.maskfuncs = $a([$get($1.maskfuncs, $1.mask - 1)]); //#22803 + $1.bestmaskval = $1.mask - 1; //#22804 + } //#22804 + $1.masks = $a($1.maskfuncs.length); //#22806 + for (var _U3 = 0, _U2 = $1.masks.length - 1; _U3 <= _U2; _U3 += 1) { //#22820 + $1.m = _U3; //#22808 + $1.mask = $a($1.size * $1.size); //#22809 + for (var _U9 = 0, _U8 = $f($1.size - 1); _U9 <= _U8; _U9 += 1) { //#22818 + $1.j = _U9; //#22811 + for (var _UC = 0, _UB = $f($1.size - 1); _UC <= _UB; _UC += 1) { //#22817 + $1.i = _UC; //#22813 + $k[$j++] = $1.i + 1; //#22814 + $k[$j++] = $1.j + 1; //#22814 + if ($get($1.maskfuncs, $1.m)() === true) { break; - } - $k[$j++] = $get($1.gpf, $1.i); - $k[$j++] = $1.iso646; - $1.encode(); - $1.i = $1.i + 1; - break; - } - } - } - $1.gpf = $geti($1.gpfenc, 0, $1.j); - $k[$j++] = "pad"; - $k[$j++] = $1.cdf.length + $1.gpf.length; - $1.rembits(); - var _B7 = $a($k[--$j]); - $1[$k[--$j]] = _B7; - if ($1.pad.length > 0) { - for (var _BC = 0, _BB = $1.pad.length - 1; _BC <= _BB; _BC += 5) { - $1.i = _BC; - var _BD = $1.pad; - var _BE = $1.i; - var _BF = $a([ 0, 0, 1, 0, 0 ]); - var _BG = $1.pad; - var _BH = $1.i; - var _BI = 5; - var _BJ = _BG.length - _BH; - if (_BG.length - _BH > 5) { - var _ = _BI; - _BI = _BJ; - _BJ = _; - } - $puti(_BD, _BE, $geti(_BF, 0, _BJ)); - } - if ($eq($1.mode, "numeric")) { - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $aload($1.pad); - $1.pad = $geti($a(), 0, $1.pad.length); - } - if ($eq($1.mode, "alpha")) { - $k[$j++] = Infinity; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $aload($1.pad); - $1.pad = $geti($a(), 0, $1.pad.length); - } - } - $k[$j++] = Infinity; - $aload($1.cdf); - $aload($1.gpf); - $aload($1.pad); - $1.bits = $a(); - if ($1.ccversion == "a") { - $k[$j++] = Infinity; - $k[$j++] = $a([ 0, 0, 0, 0, 0, 0, 1 ]); - for (var _Bb = 0, _Bc = 68; _Bb < _Bc; _Bb++) { - $k[$j++] = $a(7); - } - $1.pwr928 = $a(); - for (var _Bf = 1; _Bf <= 68; _Bf += 1) { - $1.j = _Bf; - $1.v = 0; - for (var _Bg = 6; _Bg >= 1; _Bg -= 1) { - $1.i = _Bg; - $1.v = $f($get($get($1.pwr928, $1.j - 1), $1.i) * 2 + ~~($1.v / 928)); - $put($get($1.pwr928, $1.j), $1.i, $1.v % 928); - } - $put($get($1.pwr928, $1.j), 0, $f($get($get($1.pwr928, $1.j - 1), 0) * 2 + ~~($1.v / 928))); - } - $k[$j++] = Infinity; - for (var _C0 = 0, _C1 = 28; _C0 < _C1; _C0++) { - $k[$j++] = 0; - } - $1.cws = $a(); - $1.b = 0; - $1.c = 0; - for (;;) { - if ($1.b == $1.bits.length) { - break; - } - var _C5 = $1.bits; - var _C6 = $1.b; - var _C7 = $1.bits; - var _C8 = $1.b; - var _C9 = _C7.length - _C8; - var _CA = 69; - if (69 > _C7.length - _C8) { - var _ = _C9; - _C9 = _CA; - _CA = _; - } - $1.bs = $geti(_C5, _C6, _CA); - $1.bsl = $1.bs.length; - $1.cs = $geti($1.cws, $1.c, ~~($1.bsl / 10) + 1); - $1.csl = $1.cs.length; - for (var _CK = 0, _CJ = $1.bsl - 1; _CK <= _CJ; _CK += 1) { - $1.i = _CK; - for (var _CN = 0, _CM = $1.csl - 1; _CN <= _CM; _CN += 1) { - $1.j = _CN; - var _CO = $1.cs; - var _CP = $1.j; - $put(_CO, _CP, $f($get(_CO, _CP) + $get($get($1.pwr928, $1.i), $1.j + 7 - $1.csl) * $get($1.bs, $1.bsl - $1.i - 1))); - } - } - for (var _Cc = $1.csl - 1; _Cc >= 1; _Cc -= 1) { - $1.i = _Cc; - var _Cd = $1.cs; - var _Ce = $1.i; - $put(_Cd, _Ce - 1, $f($get(_Cd, _Ce - 1) + ~~($get($1.cs, $1.i) / 928))); - var _Cj = $1.cs; - var _Ck = $1.i; - $put(_Cj, _Ck, $get(_Cj, _Ck) % 928); - } - $1.b = $1.b + $1.bsl; - $1.c = $1.c + $1.csl; - } - $1.cws = $geti($1.cws, 0, $1.c); - $1.barcode = $s($1.cws.length * 4); - for (var _Cx = 0, _Cw = $1.cws.length - 1; _Cx <= _Cw; _Cx += 1) { - $1.i = _Cx; - var _Cz = $strcpy($s(4), "^ "); - var _D4 = $cvrs($s(4), $get($1.cws, $1.i), 10); - $puti(_Cz, 4 - _D4.length, _D4); - $puti($1.barcode, $1.i * 4, _Cz); - } - delete $1.options["parse"]; - $put($1.options, "dontdraw", true); - $put($1.options, "cca", true); - $put($1.options, "columns", $1.cccolumns); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.micropdf417(); - var _DE = $k[--$j]; - $1[$k[--$j]] = _DE; - } - if ($1.ccversion == "b") { - $1.barcode = $s(~~($1.bits.length / 8)); - for (var _DL = 0, _DK = $1.barcode.length - 1; _DL <= _DK; _DL += 1) { - $1.i = _DL; - var _DO = $geti($1.bits, $1.i * 8, 8); - $k[$j++] = 0; - for (var _DP = 0, _DQ = _DO.length; _DP < _DQ; _DP++) { - var _DS = $k[--$j]; - $k[$j++] = $f(_DS + $get(_DO, _DP)) * 2; - } - $put($1.barcode, $1.i, ~~($k[--$j] / 2)); - } - delete $1.options["parse"]; - $put($1.options, "dontdraw", true); - $put($1.options, "ccb", true); - $put($1.options, "columns", $1.cccolumns); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.micropdf417(); - var _Dd = $k[--$j]; - $1[$k[--$j]] = _Dd; - } - if ($1.ccversion == "c") { - $1.barcode = $s(~~($1.bits.length / 8)); - for (var _Dk = 0, _Dj = $1.barcode.length - 1; _Dk <= _Dj; _Dk += 1) { - $1.i = _Dk; - var _Dn = $geti($1.bits, $1.i * 8, 8); - $k[$j++] = 0; - for (var _Do = 0, _Dp = _Dn.length; _Do < _Dp; _Do++) { - var _Dr = $k[--$j]; - $k[$j++] = $f(_Dr + $get(_Dn, _Do)) * 2; - } - $put($1.barcode, $1.i, ~~($k[--$j] / 2)); - } - delete $1.options["parse"]; - $put($1.options, "dontdraw", true); - $put($1.options, "ccc", true); - $put($1.options, "columns", $1.cccolumns); - $put($1.options, "eclevel", ~~(Math.log($1.eccws) / Math.log(2)) - 1); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.pdf417(); - var _E4 = $k[--$j]; - $1[$k[--$j]] = _E4; - } - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + } //#22814 + var _UI = $k[--$j]; //#22814 + $k[$j++] = _UI == 0; //#22815 + $k[$j++] = $1.pixs; //#22815 + $k[$j++] = $1.i; //#22815 + $k[$j++] = $1.j; //#22815 + $1.qmv(); //#22815 + var _UM = $k[--$j]; //#22815 + var _UO = $get($k[--$j], _UM); //#22815 + var _UP = $k[--$j]; //#22815 + var _UQ = (_UP && (_UO == -1)) ? 1 : 0; //#22815 + $k[$j++] = _UQ; //#22816 + $k[$j++] = $1.mask; //#22816 + $k[$j++] = $1.i; //#22816 + $k[$j++] = $1.j; //#22816 + $1.qmv(); //#22816 + var _UU = $k[--$j]; //#22816 + var _UV = $k[--$j]; //#22816 + $put(_UV, _UU, $k[--$j]); //#22816 + } //#22816 + } //#22816 + $put($1.masks, $1.m, $1.mask); //#22819 + } //#22819 + $1.posx = 0; //#22823 + $1.posy = 0; //#22824 + $1.num = 0; //#22825 + for (;;) { //#22835 + if ($1.posy == $1.size) { //#22827 + break; //#22827 + } //#22827 + $k[$j++] = $1.pixs; //#22828 + $k[$j++] = $1.posx; //#22828 + $k[$j++] = $1.posy; //#22828 + $1.qmv(); //#22828 + var _Uf = $k[--$j]; //#22828 + if ($get($k[--$j], _Uf) == -1) { //#22832 + var _Uk = $get($1.cws, ~~($1.num / 8)); //#22829 + var _Um = -(7 - ($1.num % 8)); //#22829 + $k[$j++] = ((_Um < 0 ? _Uk >>> -_Um : _Uk << _Um)) & 1; //#22830 + $k[$j++] = $1.pixs; //#22830 + $k[$j++] = $1.posx; //#22830 + $k[$j++] = $1.posy; //#22830 + $1.qmv(); //#22830 + var _Uq = $k[--$j]; //#22830 + var _Ur = $k[--$j]; //#22830 + $put(_Ur, _Uq, $k[--$j]); //#22830 + $1.num = $1.num + 1; //#22831 + } //#22831 + $1.posx = $1.posx + 1; //#22833 + if ($1.posx == $1.size) { //#22834 + $1.posx = 0; //#22834 + $1.posy = $1.posy + 1; //#22834 + } //#22834 + } //#22834 + $1.evalfulln1n3 = function() { + $1.scrle = $k[--$j]; //#22839 + $k[$j++] = 'scr1'; //#22841 + $k[$j++] = 0; //#22841 + $forall($1.scrle, function() { //#22841 + var _V0 = $k[--$j]; //#22841 + $k[$j++] = _V0; //#22841 + if (_V0 >= 3) { //#22841 + var _V1 = $k[--$j]; //#22841 + var _V3 = $f($k[--$j] + (_V1 * 4)); //#22841 + $k[$j++] = _V3; //#22841 + $k[$j++] = _V3; //#22841 + } //#22841 + $j--; //#22841 + }); //#22841 + var _V4 = $k[--$j]; //#22841 + $1[$k[--$j]] = _V4; //#22841 + $1.scr3 = 0; //#22842 + for (var _V8 = 5, _V7 = $1.scrle.length - 1; _V8 <= _V7; _V8 += 2) { //#22858 + $1.j = _V8; //#22845 + if (($get($1.scrle, $1.j) % 3) == 0) { //#22857 + $1.fact = ~~($get($1.scrle, $1.j) / 3); //#22847 + var _VH = $geti($1.scrle, $1.j - 4, 4); //#22848 + for (var _VI = 0, _VJ = _VH.length; _VI < _VJ; _VI++) { //#22848 + $k[$j++] = $get(_VH, _VI) == $1.fact; //#22848 + } //#22848 + var _VM = $k[--$j]; //#22848 + var _VN = $k[--$j]; //#22848 + var _VO = $k[--$j]; //#22848 + var _VP = $k[--$j]; //#22848 + if (_VP && (_VO && (_VN && _VM))) { //#22856 + if (($1.j == 5) || (($1.j + 2) >= $1.scrle.length)) { //#22853 + $1.scr3 = $1.scr3 + 50; //#22850 + } else { //#22853 + if (($get($1.scrle, $1.j - 5) >= 3) || ($get($1.scrle, $1.j + 1) >= 3)) { //#22854 + $1.scr3 = $1.scr3 + 50; //#22853 + } //#22853 + } //#22853 + } //#22853 + } //#22853 + } //#22853 + for (var _Vd = 1, _Vc = $1.scrle.length - 5; _Vd <= _Vc; _Vd += 2) { //#22874 + $1.j = _Vd; //#22861 + if (($get($1.scrle, $1.j) % 3) == 0) { //#22873 + $1.fact = ~~($get($1.scrle, $1.j) / 3); //#22863 + var _Vm = $geti($1.scrle, $1.j + 1, 4); //#22864 + for (var _Vn = 0, _Vo = _Vm.length; _Vn < _Vo; _Vn++) { //#22864 + $k[$j++] = $get(_Vm, _Vn) == $1.fact; //#22864 + } //#22864 + var _Vr = $k[--$j]; //#22864 + var _Vs = $k[--$j]; //#22864 + var _Vt = $k[--$j]; //#22864 + var _Vu = $k[--$j]; //#22864 + if (_Vu && (_Vt && (_Vs && _Vr))) { //#22872 + if (($1.j == 1) || (($1.j + 6) >= $1.scrle.length)) { //#22869 + $1.scr3 = $1.scr3 + 50; //#22866 + } else { //#22869 + if (($get($1.scrle, $1.j - 1) >= 3) || ($get($1.scrle, $1.j + 5) >= 3)) { //#22870 + $1.scr3 = $1.scr3 + 50; //#22869 + } //#22869 + } //#22869 + } //#22869 + } //#22869 + } //#22869 + $k[$j++] = $1.scr1; //#22875 + $k[$j++] = $1.scr3; //#22875 + }; //#22876 + $1.evalfull = function() { + $1.sym = $k[--$j]; //#22880 + $1.n1 = 0; //#22882 + $1.n3 = 0; //#22882 + $1.rle = $a($f($1.size + 1)); //#22883 + $1.lastpairs = $a($1.size); //#22884 + $1.thispairs = $a($1.size); //#22885 + $1.sizeadd1 = $f($1.size + 1); //#22886 + for (var _WI = 0, _WH = $f($1.size - 1); _WI <= _WH; _WI += 1) { //#22911 + $1.i = _WI; //#22888 + $k[$j++] = Infinity; //#22891 + var _WK = $1.size; //#22892 + $k[$j++] = 0; //#22894 + $k[$j++] = 0; //#22894 + for (var _WM = $1.i, _WN = _WK, _WL = $f((_WK * _WK) - 1); _WN < 0 ? _WM >= _WL : _WM <= _WL; _WM += _WN) { //#22894 + var _WP = $get($1.sym, _WM); //#22893 + var _WQ = $k[--$j]; //#22893 + $k[$j++] = _WP; //#22893 + if ($eq(_WQ, _WP)) { //#22893 + var _WR = $k[--$j]; //#22893 + var _WS = $k[--$j]; //#22893 + $k[$j++] = $f(_WS + 1); //#22893 + $k[$j++] = _WR; //#22893 + } else { //#22893 + var _WT = $k[--$j]; //#22893 + $k[$j++] = 1; //#22893 + $k[$j++] = _WT; //#22893 + } //#22893 + } //#22893 + $j--; //#22895 + var _WV = $counttomark() + 2; //#22896 + $astore($geti($1.rle, 0, _WV - 2)); //#22896 + $1.evalfulln1n3(); //#22897 + $1.n3 = $f($k[--$j] + $1.n3); //#22897 + $1.n1 = $f($k[--$j] + $1.n1); //#22897 + $j--; //#22898 + $1.symrow = $geti($1.sym, $1.i * $1.size, $1.size); //#22901 + $k[$j++] = Infinity; //#22902 + var _Wg = $1.symrow; //#22903 + $k[$j++] = 0; //#22905 + $k[$j++] = 0; //#22905 + for (var _Wh = 0, _Wi = _Wg.length; _Wh < _Wi; _Wh++) { //#22905 + var _Wj = $get(_Wg, _Wh); //#22905 + var _Wk = $k[--$j]; //#22904 + $k[$j++] = _Wj; //#22904 + if ($eq(_Wk, _Wj)) { //#22904 + var _Wl = $k[--$j]; //#22904 + var _Wm = $k[--$j]; //#22904 + $k[$j++] = $f(_Wm + 1); //#22904 + $k[$j++] = _Wl; //#22904 + } else { //#22904 + var _Wn = $k[--$j]; //#22904 + $k[$j++] = 1; //#22904 + $k[$j++] = _Wn; //#22904 + } //#22904 + } //#22904 + $j--; //#22906 + var _Wp = $counttomark() + 2; //#22907 + $astore($geti($1.rle, 0, _Wp - 2)); //#22907 + $1.evalfulln1n3(); //#22908 + $1.n3 = $f($k[--$j] + $1.n3); //#22908 + $1.n1 = $f($k[--$j] + $1.n1); //#22908 + $j--; //#22909 + } //#22909 + $k[$j++] = $f($1.n1 + $1.n3); //#22913 + }; //#22914 + $1.bestscore = 999999999; //#22917 + for (var _Wz = 0, _Wy = $1.masks.length - 1; _Wz <= _Wy; _Wz += 1) { //#22935 + $1.m = _Wz; //#22919 + $1.masksym = $a($1.size * $1.size); //#22920 + for (var _X6 = 0, _X5 = $f(($1.size * $1.size) - 1); _X6 <= _X5; _X6 += 1) { //#22924 + $1.i = _X6; //#22922 + $put($1.masksym, $1.i, $xo($get($1.pixs, $1.i), $get($get($1.masks, $1.m), $1.i))); //#22923 + } //#22923 + if ($1.masks.length != 1) { //#22933 + $k[$j++] = $1.masksym; //#22926 + $1.evalfull(); //#22926 + $1.score = $k[--$j]; //#22926 + if ($1.score < $1.bestscore) { //#22931 + $1.bestsym = $1.masksym; //#22928 + $1.bestmaskval = $1.m; //#22929 + $1.bestscore = $1.score; //#22930 + } //#22930 + } else { //#22933 + $1.bestsym = $1.masksym; //#22933 + } //#22933 + } //#22933 + $1.pixs = $1.bestsym; //#22936 + $1.funval = (((((~~($f($1.size - 21) / 2)) + 20) * 4) + $1.eclval) * 4) + $1.bestmaskval; //#22939 + $k[$j++] = $a([($1.funval & 3840) >>> 8, ($1.funval & 240) >>> 4, $1.funval & 15]); //#22943 + $k[$j++] = 4; //#22943 + $k[$j++] = 16; //#22943 + $k[$j++] = 19; //#22943 + $1.rscodes(); //#22943 + $1.funvals = $k[--$j]; //#22943 + $k[$j++] = Infinity; //#22948 + $forall($1.funvals, function() { //#22947 + $k[$j++] = 4; //#22946 + $1.tobin(); //#22946 + $forall($k[--$j], function() { //#22946 + var _Xb = $k[--$j]; //#22946 + $k[$j++] = $f(_Xb - 48); //#22946 + }); //#22946 + }); //#22946 + $k[$j++] = 0; //#22948 + $k[$j++] = 1; //#22948 + $k[$j++] = 0; //#22948 + $k[$j++] = 1; //#22948 + $k[$j++] = 0; //#22948 + $k[$j++] = 1; //#22948 + $1.funbits = $a(); //#22948 + for (var _Xf = 0, _Xe = $1.functionmap.length - 1; _Xf <= _Xe; _Xf += 1) { //#22955 + $1.i = _Xf; //#22951 + $forall($get($1.functionmap, $1.i), function() { //#22954 + var _Xk = $k[--$j]; //#22953 + $k[$j++] = $1.pixs; //#22953 + $aload(_Xk); //#22953 + $1.qmv(); //#22953 + var _Xo = $k[--$j]; //#22953 + $put($k[--$j], _Xo, $get($1.funbits, $1.i)); //#22953 + }); //#22953 + } //#22953 + var _Xw = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", $1.size], + ["pixy", $1.size], + ["height", ($1.size * 2) / 72], + ["width", ($1.size * 2) / 72], + ["opt", $1.options] + ]); //#22965 + $k[$j++] = _Xw; //#22968 + if (!$1.dontdraw) { //#22968 + $0.renmatrix(); //#22968 + } //#22968 + }; + $0.dotcode = function() { + var $1 = {}; //#22998 + $1.options = $k[--$j]; //#23000 + $1.barcode = $k[--$j]; //#23001 + $1.dontdraw = false; //#23003 + $1.rows = -1; //#23004 + $1.columns = -1; //#23005 + $1.ratio = -1; //#23006 + $1.parse = false; //#23007 + $1.parsefnc = false; //#23008 + $1.raw = false; //#23009 + $1.fast = false; //#23010 + $1.mask = -1; //#23011 + $forall($1.options, function() { //#23022 + var _3 = $k[--$j]; //#23022 + $1[$k[--$j]] = _3; //#23022 + }); //#23022 + $1.rows = ~~$1.rows; //#23024 + $1.columns = ~~$1.columns; //#23025 + $1.ratio = +$1.ratio; //#23026 + $1.mask = ~~$1.mask; //#23027 + if ((($1.ratio == -1) && ($1.rows == -1)) && ($1.columns == -1)) { //#23032 + $1.ratio = 3 / 2; //#23031 + } //#23031 + $1.laa = -1; //#23035 + $1.lab = -2; //#23035 + $1.lac = -3; //#23035 + $1.bin = -4; //#23035 + $1.sfa = -5; //#23036 + $1.sfb = -6; //#23036 + $1.sb2 = -7; //#23036 + $1.sb3 = -8; //#23036 + $1.sb4 = -9; //#23037 + $1.sb5 = -10; //#23037 + $1.sb6 = -11; //#23037 + $1.sfc = -12; //#23037 + $1.sc2 = -13; //#23038 + $1.sc3 = -14; //#23038 + $1.sc4 = -15; //#23038 + $1.sc5 = -16; //#23038 + $1.sc6 = -17; //#23039 + $1.sc7 = -18; //#23039 + $1.bsa = -19; //#23039 + $1.bsb = -20; //#23039 + $1.tma = -21; //#23040 + $1.tmb = -22; //#23040 + $1.tmc = -23; //#23040 + $1.tms = -24; //#23040 + $1.fn1 = -25; //#23041 + $1.fn2 = -26; //#23041 + $1.fn3 = -27; //#23041 + $1.crl = -28; //#23041 + $1.aim = -29; //#23042 + $1.m05 = -30; //#23042 + $1.m06 = -31; //#23042 + $1.m12 = -32; //#23042 + $1.mac = -33; //#23043 + var _G = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["eci", true], + ["FNC1", $1.fn1], + ["FNC3", $1.fn3] + ]); //#23052 + $1.fncvals = _G; //#23053 + $k[$j++] = 'msg'; //#23054 + $k[$j++] = $1.barcode; //#23054 + $k[$j++] = $1.fncvals; //#23054 + $0.parseinput(); //#23054 + var _J = $k[--$j]; //#23054 + $1[$k[--$j]] = _J; //#23054 + $1.msglen = $1.msg.length; //#23055 + var _M = $1.msg; //#23058 + $k[$j++] = 'numecis'; //#23058 + $k[$j++] = 0; //#23058 + for (var _N = 0, _O = _M.length; _N < _O; _N++) { //#23058 + if ($get(_M, _N) <= -1000000) { //#23058 + var _Q = $k[--$j]; //#23058 + $k[$j++] = $f(_Q + 1); //#23058 + } //#23058 + } //#23058 + var _R = $k[--$j]; //#23058 + $1[$k[--$j]] = _R; //#23058 + $1.msgtmp = $a($f($1.msg.length + ($1.numecis * 6))); //#23059 + $1.j = 0; //#23060 + for (var _Y = 0, _X = $1.msg.length - 1; _Y <= _X; _Y += 1) { //#23071 + var _a = $get($1.msg, _Y); //#23062 + $k[$j++] = _a; //#23070 + if (_a <= -1000000) { //#23069 + var _e = $geti($cvrs($s(7), -$k[--$j], 10), 1, 6); //#23063 + for (var _f = 0, _g = _e.length; _f < _g; _f++) { //#23063 + $k[$j++] = $get(_e, _f); //#23063 + } //#23063 + $astore($a(6)); //#23063 + $puti($1.msgtmp, $1.j + 1, $k[--$j]); //#23064 + $put($1.msgtmp, $1.j, $1.fn2); //#23065 + $1.j = $1.j + 7; //#23066 + } else { //#23069 + $put($1.msgtmp, $1.j, $k[--$j]); //#23068 + $1.j = $1.j + 1; //#23069 + } //#23069 + } //#23069 + $1.msg = $1.msgtmp; //#23072 + $1.msglen = $1.msg.length; //#23073 + $1.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$1.sfb, $1.crl, "96"]), $a([$1.sb2, 9, "97"]), $a([$1.sb3, 28, "98"]), $a([$1.sb4, 29, "99"]), $a([$1.sb5, 30, $1.aim]), $a([$1.sb6, $1.sfa, $1.laa]), $a([$1.lab, $1.laa, $1.sfb]), $a([$1.sc2, $1.sc2, $1.sb2]), $a([$1.sc3, $1.sc3, $1.sb3]), $a([$1.sc4, $1.sc4, $1.sb4]), $a([$1.lac, $1.lac, $1.lab]), $a([$1.fn1, $1.fn1, $1.fn1]), $a([$1.fn2, $1.fn2, $1.fn2]), $a([$1.fn3, $1.fn3, $1.fn3]), $a([$1.bsa, $1.bsa, $1.bsa]), $a([$1.bsb, $1.bsb, $1.bsb]), $a([$1.bin, $1.bin, $1.bin])]); //#23116 + $1.charvals = $a([new Map, new Map, new Map]); //#23119 + for (var _3W = 0, _3V = $1.charmaps.length - 1; _3W <= _3V; _3W += 1) { //#23128 + $1.i = _3W; //#23121 + $1.encs = $get($1.charmaps, $1.i); //#23122 + for (var _3a = 0; _3a <= 2; _3a += 1) { //#23127 + $1.j = _3a; //#23124 + var _3d = $get($1.encs, $1.j); //#23125 + $k[$j++] = _3d; //#23125 + if ($eq($type(_3d), 'stringtype')) { //#23125 + var _3g = $get($k[--$j], 0); //#23125 + $k[$j++] = _3g; //#23125 + } //#23125 + $put($get($1.charvals, $1.j), $k[--$j], $1.i); //#23126 + } //#23126 + } //#23126 + $1.Avals = $get($1.charvals, 0); //#23129 + $1.Bvals = $get($1.charvals, 1); //#23130 + $put($1.Bvals, $1.m05, 97); //#23131 + $put($1.Bvals, $1.m06, 98); //#23132 + $put($1.Bvals, $1.m12, 99); //#23133 + $put($1.Bvals, $1.mac, 100); //#23134 + $1.Cvals = $get($1.charvals, 2); //#23135 + $k[$j++] = Infinity; //#23137 + var _4A = $a([$1.sc2, $1.sc3, $1.sc4, $1.sc5, $1.sc6, $1.sc7, $1.tma, $1.tmb, $1.tmc, $1.tms]); //#23137 + $k[$j++] = 102; //#23137 + for (var _4B = 0, _4C = _4A.length; _4B < _4C; _4B++) { //#23137 + var _4F = $f($k[--$j] + 1); //#23137 + $k[$j++] = $get(_4A, _4B); //#23137 + $k[$j++] = _4F; //#23137 + $k[$j++] = _4F; //#23137 + } //#23137 + $j--; //#23137 + $1.BINvals = $d(); //#23138 + $k[$j++] = Infinity; //#23141 + for (var _4I = 0, _4J = $1.msglen + 1; _4I < _4J; _4I++) { //#23141 + $k[$j++] = 0; //#23141 + } //#23141 + $1.nDigits = $a(); //#23141 + $k[$j++] = Infinity; //#23142 + for (var _4M = 0, _4N = $1.msglen + 1; _4M < _4N; _4M++) { //#23142 + $k[$j++] = false; //#23142 + } //#23142 + $1.SeventeenTen = $a(); //#23142 + $k[$j++] = Infinity; //#23143 + for (var _4Q = 0, _4R = $1.msglen + 1; _4Q < _4R; _4Q++) { //#23143 + $k[$j++] = false; //#23143 + } //#23143 + $1.ECI = $a(); //#23143 + $k[$j++] = Infinity; //#23144 + for (var _4U = 0, _4V = $1.msglen + 1; _4U < _4V; _4U++) { //#23144 + $k[$j++] = false; //#23144 + } //#23144 + $1.DatumA = $a(); //#23144 + $k[$j++] = Infinity; //#23145 + for (var _4Y = 0, _4Z = $1.msglen + 1; _4Y < _4Z; _4Y++) { //#23145 + $k[$j++] = false; //#23145 + } //#23145 + $1.DatumB = $a(); //#23145 + $k[$j++] = Infinity; //#23146 + for (var _4c = 0, _4d = $1.msglen + 1; _4c < _4d; _4c++) { //#23146 + $k[$j++] = false; //#23146 + } //#23146 + $1.DatumC = $a(); //#23146 + $k[$j++] = Infinity; //#23147 + for (var _4g = 0, _4h = $1.msglen + 8; _4g < _4h; _4g++) { //#23147 + $k[$j++] = false; //#23147 + } //#23147 + $1.Binary = $a(); //#23147 + $k[$j++] = Infinity; //#23148 + for (var _4k = 0, _4l = $1.msglen + 1; _4k < _4l; _4k++) { //#23148 + $k[$j++] = 0; //#23148 + } //#23148 + $1.AheadC = $a(); //#23148 + $k[$j++] = Infinity; //#23149 + for (var _4o = 0, _4p = $1.msglen + 1; _4o < _4p; _4o++) { //#23149 + $k[$j++] = 0; //#23149 + } //#23149 + $1.TryC = $a(); //#23149 + $k[$j++] = Infinity; //#23150 + for (var _4s = 0, _4t = $1.msglen + 1; _4s < _4t; _4s++) { //#23150 + $k[$j++] = 0; //#23150 + } //#23150 + $1.AheadA = $a(); //#23150 + $k[$j++] = Infinity; //#23151 + for (var _4w = 0, _4x = $1.msglen + 1; _4w < _4x; _4w++) { //#23151 + $k[$j++] = 0; //#23151 + } //#23151 + $1.AheadB = $a(); //#23151 + $k[$j++] = Infinity; //#23152 + for (var _50 = 0, _51 = $1.msglen + 1; _50 < _51; _50++) { //#23152 + $k[$j++] = 0; //#23152 + } //#23152 + $1.UntilEndSeg = $a(); //#23152 + for (var _54 = $1.msglen - 1; _54 >= 0; _54 -= 1) { //#23207 + $1.i = _54; //#23154 + $1.barchar = $get($1.msg, $1.i); //#23155 + if (($1.barchar >= 48) && ($1.barchar <= 57)) { //#23158 + $put($1.nDigits, $1.i, $f($get($1.nDigits, $1.i + 1) + 1)); //#23157 + } //#23157 + var _5H = $get($1.Avals, $1.barchar) !== undefined; //#23159 + if (_5H) { //#23159 + $put($1.DatumA, $1.i, true); //#23159 + } //#23159 + var _5M = $get($1.Bvals, $1.barchar) !== undefined; //#23160 + if (_5M) { //#23160 + $put($1.DatumB, $1.i, true); //#23160 + } //#23160 + $1.CRLF = false; //#23161 + if (($1.barchar == 13) && ($1.i < ($1.msglen - 1))) { //#23164 + if ($get($1.msg, $1.i + 1) == 10) { //#23163 + $1.CRLF = true; //#23163 + } //#23163 + } //#23163 + if ($1.CRLF) { //#23165 + $put($1.DatumB, $1.i, true); //#23165 + } //#23165 + if ($get($1.nDigits, $1.i) >= 2) { //#23166 + $put($1.DatumC, $1.i, true); //#23166 + } //#23166 + if ($1.barchar < 0) { //#23167 + $put($1.DatumC, $1.i, true); //#23167 + } //#23167 + if ($1.barchar >= 128) { //#23168 + $put($1.Binary, $1.i, true); //#23168 + } //#23168 + if ($get($1.nDigits, $1.i) >= 10) { //#23182 + $k[$j++] = Infinity; //#23170 + $aload($geti($1.msg, $1.i, 10)); //#23171 + for (var _5p = 0, _5q = 1; _5p < _5q; _5p++) { //#23179 + if ($k[--$j] != 48) { //#23173 + $k[$j++] = false; //#23173 + break; //#23173 + } //#23173 + if ($k[--$j] != 49) { //#23174 + $k[$j++] = false; //#23174 + break; //#23174 + } //#23174 + $j -= 6; //#23175 + if ($k[--$j] != 55) { //#23176 + $k[$j++] = false; //#23176 + break; //#23176 + } //#23176 + if ($k[--$j] != 49) { //#23177 + $k[$j++] = false; //#23177 + break; //#23177 + } //#23177 + $k[$j++] = true; //#23178 + } //#23178 + $put($1.SeventeenTen, $1.i, $k[--$j]); //#23180 + $cleartomark(); //#23181 + } //#23181 + if (($get($1.nDigits, $1.i + 1) >= 6) && ($get($1.msg, $1.i) == $1.fn2)) { //#23185 + $put($1.ECI, $1.i, true); //#23184 + } //#23184 + if (($1.barchar < 0) && ($1.barchar != $1.fn3)) { //#23192 + $put($1.AheadC, $1.i, $f($get($1.AheadC, $1.i + 1) + 1)); //#23187 + } else { //#23192 + if ($get($1.nDigits, $1.i) <= 1) { //#23192 + $put($1.AheadC, $1.i, 0); //#23190 + } else { //#23192 + $put($1.AheadC, $1.i, $f($get($1.AheadC, $1.i + 2) + 1)); //#23192 + } //#23192 + } //#23192 + if (($get($1.nDigits, $1.i) > 0) && $gt($get($1.AheadC, $1.i), $get($1.AheadC, $1.i + 1))) { //#23197 + $put($1.TryC, $1.i, $get($1.AheadC, $1.i)); //#23196 + } //#23196 + if (($get($1.DatumA, $1.i) && ($get($1.TryC, $1.i) < 2)) && ($1.barchar != $1.fn3)) { //#23200 + $put($1.AheadA, $1.i, $f($get($1.AheadA, $1.i + 1) + 1)); //#23199 + } //#23199 + if (($get($1.DatumB, $1.i) && ($get($1.TryC, $1.i) < 2)) && ($1.barchar != $1.fn3)) { //#23203 + $k[$j++] = $1.AheadB; //#23202 + $k[$j++] = $1.i; //#23202 + $k[$j++] = $1.AheadB; //#23202 + $k[$j++] = $1.i + 1; //#23202 + if ($1.CRLF) { //#23202 + var _73 = $k[--$j]; //#23202 + $k[$j++] = $f(_73 + 1); //#23202 + } //#23202 + var _74 = $k[--$j]; //#23202 + var _76 = $get($k[--$j], _74); //#23202 + var _77 = $k[--$j]; //#23202 + $put($k[--$j], _77, $f(_76 + 1)); //#23202 + } //#23202 + if ($1.barchar != $1.fn3) { //#23206 + $put($1.UntilEndSeg, $1.i, $f($get($1.UntilEndSeg, $1.i + 1) + 1)); //#23205 + } //#23205 + } //#23205 + $1.A = 0; //#23209 + $1.B = 1; //#23209 + $1.C = 2; //#23209 + $1.BIN = 3; //#23209 + $1.addtocws = function() { + var _7G = $k[--$j]; //#23212 + $puti($1.cws, $1.j, _7G); //#23212 + $1.j = _7G.length + $1.j; //#23213 + }; //#23214 + $1.base259to103 = function() { + $1.in = $k[--$j]; //#23218 + $1.inlen = $1.in.length; //#23219 + $k[$j++] = Infinity; //#23220 + for (var _7N = 0, _7O = 5 - $1.inlen; _7N < _7O; _7N++) { //#23220 + $k[$j++] = 0; //#23220 + } //#23220 + $aload($1.in); //#23220 + $1.in = $a(); //#23220 + $1.out = $a(6); //#23221 + $k[$j++] = Infinity; //#23222 + $aload($geti($1.in, 0, 2)); //#23222 + $1.msbs = $a(); //#23222 + $k[$j++] = Infinity; //#23225 + $aload($1.msbs); //#23224 + var _7W = $k[--$j]; //#23224 + var _7X = $k[--$j]; //#23224 + $k[$j++] = $f(_7W + (_7X * 259)); //#23225 + for (var _7Y = 0, _7Z = 2; _7Y < _7Z; _7Y++) { //#23225 + var _7a = $k[--$j]; //#23225 + $k[$j++] = _7a % 103; //#23225 + $k[$j++] = ~~(_7a / 103); //#23225 + } //#23225 + $1.mscs = $a(); //#23225 + $k[$j++] = Infinity; //#23227 + $aload($geti($1.in, 2, 3)); //#23227 + $1.lsbs = $a(); //#23227 + $k[$j++] = Infinity; //#23230 + $aload($1.lsbs); //#23229 + var _7g = $k[--$j]; //#23229 + var _7h = $k[--$j]; //#23229 + var _7i = $k[--$j]; //#23229 + $k[$j++] = $f(($f(_7g + (_7h * 259))) + (_7i * 67081)); //#23230 + for (var _7j = 0, _7k = 3; _7j < _7k; _7j++) { //#23230 + var _7l = $k[--$j]; //#23230 + $k[$j++] = _7l % 103; //#23230 + $k[$j++] = ~~(_7l / 103); //#23230 + } //#23230 + $1.lscs = $a(); //#23230 + var _7o = $get($1.lscs, 0); //#23232 + var _7q = $get($1.mscs, 0); //#23232 + $put($1.out, 5, ($f(_7o + (_7q * 42))) % 103); //#23233 + var _7t = $get($1.lscs, 1); //#23234 + var _7v = $get($1.mscs, 0); //#23234 + var _7x = $get($1.mscs, 1); //#23234 + $put($1.out, 4, ($f(($f(($f((~~(($f(_7o + (_7q * 42))) / 103)) + _7t)) + (_7v * 68))) + (_7x * 42))) % 103); //#23235 + var _80 = $get($1.lscs, 2); //#23236 + var _82 = $get($1.mscs, 0); //#23236 + var _84 = $get($1.mscs, 1); //#23236 + var _86 = $get($1.mscs, 2); //#23236 + $put($1.out, 3, ($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7o + (_7q * 42))) / 103)) + _7t)) + (_7v * 68))) + (_7x * 42))) / 103)) + _80)) + (_82 * 92))) + (_84 * 68))) + (_86 * 42))) % 103); //#23237 + var _89 = $get($1.lscs, 3); //#23238 + var _8B = $get($1.mscs, 0); //#23238 + var _8D = $get($1.mscs, 1); //#23238 + var _8F = $get($1.mscs, 2); //#23238 + $put($1.out, 2, ($f(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7o + (_7q * 42))) / 103)) + _7t)) + (_7v * 68))) + (_7x * 42))) / 103)) + _80)) + (_82 * 92))) + (_84 * 68))) + (_86 * 42))) / 103)) + _89)) + (_8B * 15))) + (_8D * 92))) + (_8F * 68))) % 103); //#23239 + var _8I = $get($1.mscs, 1); //#23240 + var _8K = $get($1.mscs, 2); //#23240 + $put($1.out, 1, ($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7o + (_7q * 42))) / 103)) + _7t)) + (_7v * 68))) + (_7x * 42))) / 103)) + _80)) + (_82 * 92))) + (_84 * 68))) + (_86 * 42))) / 103)) + _89)) + (_8B * 15))) + (_8D * 92))) + (_8F * 68))) / 103)) + (_8I * 15))) + (_8K * 92))) % 103); //#23241 + $put($1.out, 0, ($f((~~(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7o + (_7q * 42))) / 103)) + _7t)) + (_7v * 68))) + (_7x * 42))) / 103)) + _80)) + (_82 * 92))) + (_84 * 68))) + (_86 * 42))) / 103)) + _89)) + (_8B * 15))) + (_8D * 92))) + (_8F * 68))) / 103)) + (_8I * 15))) + (_8K * 92))) / 103)) + ($get($1.mscs, 2) * 15))) % 103); //#23243 + $k[$j++] = $geti($1.out, (6 - $1.inlen) - 1, $1.inlen + 1); //#23244 + }; //#23245 + $1.finaliseBIN = function() { + if ($1.bpos != 0) { //#23251 + $k[$j++] = $geti($1.bvals, 0, $1.bpos); //#23249 + $1.base259to103(); //#23249 + $aload($k[--$j]); //#23249 + $1.bpos = 0; //#23250 + } //#23250 + }; //#23252 + $1.addtobin = function() { + $put($1.bvals, $1.bpos, $k[--$j]); //#23255 + $1.bpos = $1.bpos + 1; //#23256 + if ($1.bpos == 5) { //#23257 + $1.finaliseBIN(); //#23257 + } //#23257 + }; //#23258 + $1.ECIabc = function() { + var _8f = $geti($1.msg, $1.i + 1, 6); //#23261 + $k[$j++] = 0; //#23261 + for (var _8g = 0, _8h = _8f.length; _8g < _8h; _8g++) { //#23261 + var _8j = $k[--$j]; //#23261 + $k[$j++] = ($f(_8j + $f($get(_8f, _8g) - 48))) * 10; //#23261 + } //#23261 + var _8l = ~~($k[--$j] / 10); //#23262 + $k[$j++] = _8l; //#23266 + if (_8l >= 40) { //#23266 + var _8n = $f($k[--$j] - 40); //#23264 + var _8o = _8n % 12769; //#23265 + $k[$j++] = (~~(_8n / 12769)) + 40; //#23265 + $k[$j++] = ~~(_8o / 113); //#23265 + $k[$j++] = _8o % 113; //#23265 + } //#23265 + }; //#23267 + $1.ECIbin = function() { + $k[$j++] = Infinity; //#23278 + var _8r = $geti($1.msg, $1.i + 1, 6); //#23271 + $k[$j++] = 0; //#23271 + for (var _8s = 0, _8t = _8r.length; _8s < _8t; _8s++) { //#23271 + var _8v = $k[--$j]; //#23271 + $k[$j++] = ($f(_8v + $f($get(_8r, _8s) - 48))) * 10; //#23271 + } //#23271 + var _8x = ~~($k[--$j] / 10); //#23272 + $k[$j++] = _8x; //#23280 + if (_8x >= 65536) { //#23278 + var _8y = $k[--$j]; //#23273 + var _8z = _8y % 65536; //#23273 + $k[$j++] = 258; //#23273 + $k[$j++] = ~~(_8y / 65536); //#23273 + $k[$j++] = ~~(_8z / 256); //#23273 + $k[$j++] = _8z % 256; //#23273 + } else { //#23278 + var _90 = $k[--$j]; //#23275 + $k[$j++] = _90; //#23279 + if (_90 >= 256) { //#23278 + var _91 = $k[--$j]; //#23276 + $k[$j++] = 257; //#23276 + $k[$j++] = ~~(_91 / 256); //#23276 + $k[$j++] = _91 % 256; //#23276 + } else { //#23278 + var _92 = $k[--$j]; //#23278 + $k[$j++] = 256; //#23278 + $k[$j++] = _92; //#23278 + } //#23278 + } //#23278 + var _93 = $a(); //#23278 + for (var _94 = 0, _95 = _93.length; _94 < _95; _94++) { //#23283 + $k[$j++] = $get(_93, _94); //#23282 + $1.addtobin(); //#23282 + } //#23282 + }; //#23284 + $1.encC = function() { + for (var _97 = 0, _98 = 1; _97 < _98; _97++) { //#23395 + if ($1.i == $1.segstart) { //#23313 + for (var _9B = 0, _9C = 1; _9B < _9C; _9B++) { //#23305 + if ($1.i > $f($1.segend - 7)) { //#23290 + $k[$j++] = 0; //#23290 + break; //#23290 + } //#23290 + if ($get($1.msg, $1.segstart) != 91) { //#23291 + $k[$j++] = 0; //#23291 + break; //#23291 + } //#23291 + if ($get($1.msg, $1.segstart + 1) != 41) { //#23292 + $k[$j++] = 0; //#23292 + break; //#23292 + } //#23292 + if ($get($1.msg, $1.segstart + 2) != 62) { //#23293 + $k[$j++] = 0; //#23293 + break; //#23293 + } //#23293 + if ($get($1.msg, $1.segstart + 3) != 30) { //#23294 + $k[$j++] = 0; //#23294 + break; //#23294 + } //#23294 + var _9T = $get($1.msg, $1.segstart + 4); //#23295 + if ((_9T < 48) || (_9T > 57)) { //#23295 + $k[$j++] = 0; //#23295 + break; //#23295 + } //#23295 + var _9W = $get($1.msg, $1.segstart + 5); //#23296 + if ((_9W < 48) || (_9W > 57)) { //#23296 + $k[$j++] = 0; //#23296 + break; //#23296 + } //#23296 + if ($get($1.msg, $f($1.segend - 1)) != 4) { //#23297 + $k[$j++] = 0; //#23297 + break; //#23297 + } //#23297 + var _9g = $f(($f($get($1.msg, $1.segstart + 4) - 48) * 10) + $f($get($1.msg, $1.segstart + 5) - 48)); //#23299 + $k[$j++] = _9g; //#23299 + if ((_9g != 5) && ((_9g != 6) && (_9g != 12))) { //#23299 + $j--; //#23299 + $k[$j++] = $1.mac; //#23299 + break; //#23299 + } //#23299 + if ($get($1.msg, $1.segstart + 6) != 29) { //#23300 + $j--; //#23300 + $k[$j++] = 0; //#23300 + break; //#23300 + } //#23300 + if ($get($1.msg, $f($1.segend - 2)) != 30) { //#23301 + $j--; //#23301 + $k[$j++] = 0; //#23301 + break; //#23301 + } //#23301 + var _9o = $k[--$j]; //#23302 + $k[$j++] = _9o; //#23302 + if (_9o == 5) { //#23302 + $j--; //#23302 + $k[$j++] = $1.m05; //#23302 + break; //#23302 + } //#23302 + if ($k[--$j] == 6) { //#23303 + $k[$j++] = $1.m06; //#23303 + break; //#23303 + } //#23303 + $k[$j++] = $1.m12; //#23304 + break; //#23304 + } //#23304 + $1.inmac = $k[--$j]; //#23306 + if ($1.inmac != 0) { //#23312 + $1.mode = $1.B; //#23308 + $k[$j++] = $a([$get($1.Bvals, $1.inmac)]); //#23309 + $1.addtocws(); //#23309 + var _A3 = ($1.inmac != $1.mac) ? 7 : 6; //#23310 + $1.i = $1.i + _A3; //#23310 + break; //#23311 + } //#23311 + } //#23311 + if ($1.i == $1.segstart) { //#23324 + if ($get($1.nDigits, $1.i) >= 2) { //#23319 + $k[$j++] = $a([$get($1.Cvals, $1.fn1)]); //#23318 + $1.addtocws(); //#23318 + } //#23318 + if (($get($1.msg, $1.i) == $1.fn1) && ($get($1.nDigits, $1.i + 1) >= 2)) { //#23323 + $1.i = $1.i + 1; //#23322 + } //#23322 + } //#23322 + if ($get($1.SeventeenTen, $1.i)) { //#23334 + $k[$j++] = $a([$get($1.Cvals, $1.aim), $f(($f($get($1.msg, $1.i + 2) - 48) * 10) + $f($get($1.msg, $1.i + 3) - 48)), $f(($f($get($1.msg, $1.i + 4) - 48) * 10) + $f($get($1.msg, $1.i + 5) - 48)), $f(($f($get($1.msg, $1.i + 6) - 48) * 10) + $f($get($1.msg, $1.i + 7) - 48))]); //#23331 + $1.addtocws(); //#23331 + $1.i = $1.i + 10; //#23332 + break; //#23333 + } //#23333 + if ($get($1.DatumC, $1.i)) { //#23356 + var _Aq = $get($1.msg, $1.i); //#23336 + if ((_Aq == $1.fn1) || ((_Aq == $1.fn2) || (_Aq == $1.fn3))) { //#23352 + $k[$j++] = $a([$get($1.Cvals, $get($1.msg, $1.i))]); //#23337 + $1.addtocws(); //#23337 + if ($get($1.ECI, $1.i)) { //#23342 + $k[$j++] = Infinity; //#23339 + $1.ECIabc(); //#23339 + var _B3 = $a(); //#23339 + $k[$j++] = _B3; //#23339 + $1.addtocws(); //#23339 + $1.i = $1.i + 7; //#23340 + break; //#23341 + } //#23341 + if (($get($1.msg, $1.i) == $1.fn3) && ($1.segstart != $1.i)) { //#23349 + $1.i = $1.i + 1; //#23344 + $1.inmac = 0; //#23345 + $1.segstart = $1.i; //#23346 + $1.segend = $f($1.i + $get($1.UntilEndSeg, $1.i)); //#23347 + break; //#23348 + } //#23348 + $1.i = $1.i + 1; //#23350 + break; //#23351 + } //#23351 + $k[$j++] = $a([$f(($f($get($1.msg, $1.i) - 48) * 10) + $f($get($1.msg, $1.i + 1) - 48))]); //#23353 + $1.addtocws(); //#23353 + $1.i = $1.i + 2; //#23354 + break; //#23355 + } //#23355 + if ($get($1.Binary, $1.i)) { //#23370 + if ($get($1.nDigits, $1.i + 1) > 0) { //#23366 + if ($get($1.msg, $1.i) < 160) { //#23362 + $k[$j++] = $a([$get($1.Cvals, $1.bsa), $get($1.Avals, $f($get($1.msg, $1.i) - 128))]); //#23360 + $1.addtocws(); //#23360 + } else { //#23362 + $k[$j++] = $a([$get($1.Cvals, $1.bsb), $get($1.Bvals, $f($get($1.msg, $1.i) - 128))]); //#23362 + $1.addtocws(); //#23362 + } //#23362 + $1.i = $1.i + 1; //#23364 + break; //#23365 + } //#23365 + $k[$j++] = $a([$get($1.Cvals, $1.bin)]); //#23367 + $1.addtocws(); //#23367 + $1.mode = $1.BIN; //#23368 + break; //#23369 + } //#23369 + $1.m = $get($1.AheadA, $1.i); //#23371 + $1.n = $get($1.AheadB, $1.i); //#23371 + if ($gt($1.m, $1.n)) { //#23376 + $k[$j++] = $a([$get($1.Cvals, $1.laa)]); //#23373 + $1.addtocws(); //#23373 + $1.mode = $1.A; //#23374 + break; //#23375 + } //#23375 + if ($1.i == $1.segstart) { //#23383 + var _CE = $get($1.msg, $1.i); //#23378 + if ((_CE == 9) || ((_CE == 28) || ((_CE == 29) || (_CE == 30)))) { //#23382 + $k[$j++] = $a([$get($1.Cvals, $1.laa)]); //#23379 + $1.addtocws(); //#23379 + $1.mode = $1.A; //#23380 + break; //#23381 + } //#23381 + } //#23381 + if ($1.n > 4) { //#23388 + $k[$j++] = $a([$get($1.Cvals, $1.lab)]); //#23385 + $1.addtocws(); //#23385 + $1.mode = $1.B; //#23386 + break; //#23387 + } //#23387 + $k[$j++] = $a([$get($1.Cvals, $get($a([$1.sfb, $1.sb2, $1.sb3, $1.sb4]), $f($1.n - 1)))]); //#23389 + $1.addtocws(); //#23389 + for (var _Cb = 0, _Cc = $1.n; _Cb < _Cc; _Cb++) { //#23393 + $k[$j++] = $a([$get($1.Bvals, $get($1.msg, $1.i))]); //#23391 + $1.addtocws(); //#23391 + $1.i = $1.i + 1; //#23392 + } //#23392 + break; //#23394 + } //#23394 + }; //#23396 + $1.encB = function() { + for (var _Ck = 0, _Cl = 1; _Ck < _Cl; _Ck++) { //#23471 + $1.n = $get($1.TryC, $1.i); //#23400 + if ($1.n >= 2) { //#23418 + if ($1.n > 4) { //#23406 + $k[$j++] = $a([$get($1.Bvals, $1.lac)]); //#23403 + $1.addtocws(); //#23403 + $1.mode = $1.C; //#23404 + break; //#23405 + } //#23405 + $k[$j++] = $a([$get($1.Bvals, $get($a([$1.sfc, $1.sc2, $1.sc3, $1.sc4]), $f($1.n - 1)))]); //#23407 + $1.addtocws(); //#23407 + for (var _D7 = 0, _D8 = $1.n; _D7 < _D8; _D7++) { //#23416 + if ($get($1.msg, $1.i) < 0) { //#23414 + $k[$j++] = $a([$get($1.Cvals, $get($1.msg, $1.i))]); //#23410 + $1.addtocws(); //#23410 + $1.i = $1.i + 1; //#23411 + } else { //#23414 + $k[$j++] = $a([$f(($f($get($1.msg, $1.i) - 48) * 10) + $f($get($1.msg, $1.i + 1) - 48))]); //#23413 + $1.addtocws(); //#23413 + $1.i = $1.i + 2; //#23414 + } //#23414 + } //#23414 + break; //#23417 + } //#23417 + if ($get($1.DatumB, $1.i)) { //#23448 + var _DW = $get($1.msg, $1.i); //#23420 + if ((_DW == $1.fn1) || ((_DW == $1.fn2) || (_DW == $1.fn3))) { //#23437 + $k[$j++] = $a([$get($1.Bvals, $get($1.msg, $1.i))]); //#23421 + $1.addtocws(); //#23421 + if ($get($1.ECI, $1.i)) { //#23426 + $k[$j++] = Infinity; //#23423 + $1.ECIabc(); //#23423 + var _Dj = $a(); //#23423 + $k[$j++] = _Dj; //#23423 + $1.addtocws(); //#23423 + $1.i = $1.i + 7; //#23424 + break; //#23425 + } //#23425 + if (($get($1.msg, $1.i) == $1.fn3) && ($1.i != $1.segstart)) { //#23434 + $1.i = $1.i + 1; //#23428 + $1.mode = $1.C; //#23429 + $1.inmac = 0; //#23430 + $1.segstart = $1.i; //#23431 + $1.segend = $f($1.i + $get($1.UntilEndSeg, $1.i)); //#23432 + break; //#23433 + } //#23433 + $1.i = $1.i + 1; //#23435 + break; //#23436 + } //#23436 + if (($get($1.msg, $1.i) == 13) && ($1.i < ($1.msglen - 1))) { //#23444 + if ($get($1.msg, $1.i + 1) == 10) { //#23443 + $k[$j++] = $a([$get($1.Bvals, $1.crl)]); //#23440 + $1.addtocws(); //#23440 + $1.i = $1.i + 2; //#23441 + break; //#23442 + } //#23442 + } //#23442 + $k[$j++] = $a([$get($1.Bvals, $get($1.msg, $1.i))]); //#23445 + $1.addtocws(); //#23445 + $1.i = $1.i + 1; //#23446 + break; //#23447 + } //#23447 + if ($get($1.Binary, $1.i)) { //#23462 + if ($get($1.DatumB, $1.i + 1)) { //#23458 + if ($get($1.msg, $1.i) < 160) { //#23454 + $k[$j++] = $a([$get($1.Bvals, $1.bsa), $get($1.Avals, $f($get($1.msg, $1.i) - 128))]); //#23452 + $1.addtocws(); //#23452 + } else { //#23454 + $k[$j++] = $a([$get($1.Bvals, $1.bsb), $get($1.Bvals, $f($get($1.msg, $1.i) - 128))]); //#23454 + $1.addtocws(); //#23454 + } //#23454 + $1.i = $1.i + 1; //#23456 + break; //#23457 + } //#23457 + $k[$j++] = $a([$get($1.Bvals, $1.bin)]); //#23459 + $1.addtocws(); //#23459 + $1.mode = $1.BIN; //#23460 + break; //#23461 + } //#23461 + if ($get($1.AheadA, $1.i) == 1) { //#23467 + $k[$j++] = $a([$get($1.Bvals, $1.sfa), $get($1.Avals, $get($1.msg, $1.i))]); //#23464 + $1.addtocws(); //#23464 + $1.i = $1.i + 1; //#23465 + break; //#23466 + } //#23466 + $k[$j++] = $a([$get($1.Bvals, $1.laa)]); //#23468 + $1.addtocws(); //#23468 + $1.mode = $1.A; //#23469 + break; //#23470 + } //#23470 + }; //#23472 + $1.encA = function() { + for (var _F8 = 0, _F9 = 1; _F8 < _F9; _F8++) { //#23544 + $1.n = $get($1.TryC, $1.i); //#23476 + if ($1.n >= 2) { //#23494 + if ($1.n > 4) { //#23482 + $k[$j++] = $a([$get($1.Avals, $1.lac)]); //#23479 + $1.addtocws(); //#23479 + $1.mode = $1.C; //#23480 + break; //#23481 + } //#23481 + $k[$j++] = $a([$get($1.Avals, $get($a([$1.sfc, $1.sc2, $1.sc3, $1.sc4]), $f($1.n - 1)))]); //#23483 + $1.addtocws(); //#23483 + for (var _FV = 0, _FW = $1.n; _FV < _FW; _FV++) { //#23492 + if ($get($1.msg, $1.i) < 0) { //#23490 + $k[$j++] = $a([$get($1.Cvals, $get($1.msg, $1.i))]); //#23486 + $1.addtocws(); //#23486 + $1.i = $1.i + 1; //#23487 + } else { //#23490 + $k[$j++] = $a([$f(($f($get($1.msg, $1.i) - 48) * 10) + $f($get($1.msg, $1.i + 1) - 48))]); //#23489 + $1.addtocws(); //#23489 + $1.i = $1.i + 2; //#23490 + } //#23490 + } //#23490 + break; //#23493 + } //#23493 + if ($get($1.DatumA, $1.i)) { //#23517 + var _Fu = $get($1.msg, $1.i); //#23496 + if ((_Fu == $1.fn1) || ((_Fu == $1.fn2) || (_Fu == $1.fn3))) { //#23513 + $k[$j++] = $a([$get($1.Avals, $get($1.msg, $1.i))]); //#23497 + $1.addtocws(); //#23497 + if ($get($1.ECI, $1.i)) { //#23502 + $k[$j++] = Infinity; //#23499 + $1.ECIabc(); //#23499 + var _G7 = $a(); //#23499 + $k[$j++] = _G7; //#23499 + $1.addtocws(); //#23499 + $1.i = $1.i + 7; //#23500 + break; //#23501 + } //#23501 + if (($get($1.msg, $1.i) == $1.fn3) && ($1.i != $1.segstart)) { //#23510 + $1.i = $1.i + 1; //#23504 + $1.mode = $1.C; //#23505 + $1.inmac = 0; //#23506 + $1.segstart = $1.i; //#23507 + $1.segend = $f($1.i + $get($1.UntilEndSeg, $1.i)); //#23508 + break; //#23509 + } //#23509 + $1.i = $1.i + 1; //#23511 + break; //#23512 + } //#23512 + $k[$j++] = $a([$get($1.Avals, $get($1.msg, $1.i))]); //#23514 + $1.addtocws(); //#23514 + $1.i = $1.i + 1; //#23515 + break; //#23516 + } //#23516 + if ($get($1.Binary, $1.i)) { //#23531 + if ($get($1.DatumA, $1.i + 1)) { //#23527 + if ($get($1.msg, $1.i) < 160) { //#23523 + $k[$j++] = $a([$get($1.Avals, $1.bsa), $get($1.Avals, $f($get($1.msg, $1.i) - 128))]); //#23521 + $1.addtocws(); //#23521 + } else { //#23523 + $k[$j++] = $a([$get($1.Avals, $1.bsb), $get($1.Bvals, $f($get($1.msg, $1.i) - 128))]); //#23523 + $1.addtocws(); //#23523 + } //#23523 + $1.i = $1.i + 1; //#23525 + break; //#23526 + } //#23526 + $k[$j++] = $a([$get($1.Avals, $1.bin)]); //#23528 + $1.addtocws(); //#23528 + $1.mode = $1.BIN; //#23529 + break; //#23530 + } //#23530 + $1.n = $get($1.AheadB, $1.i); //#23532 + if ($1.n > 6) { //#23537 + $k[$j++] = $a([$get($1.Avals, $1.lab)]); //#23534 + $1.addtocws(); //#23534 + $1.mode = $1.B; //#23535 + break; //#23536 + } //#23536 + $k[$j++] = $a([$get($1.Avals, $get($a([$1.sfb, $1.sb2, $1.sb3, $1.sb4, $1.sb5, $1.sb6]), $f($1.n - 1)))]); //#23538 + $1.addtocws(); //#23538 + for (var _HN = 0, _HO = $1.n; _HN < _HO; _HN++) { //#23542 + $k[$j++] = $a([$get($1.Bvals, $get($1.msg, $1.i))]); //#23540 + $1.addtocws(); //#23540 + $1.i = $1.i + 1; //#23541 + } //#23541 + break; //#23543 + } //#23543 + }; //#23545 + $1.encBIN = function() { + for (var _HW = 0, _HX = 1; _HW < _HX; _HW++) { //#23606 + $1.n = $get($1.TryC, $1.i); //#23549 + if ($1.n >= 2) { //#23568 + $k[$j++] = Infinity; //#23551 + $1.finaliseBIN(); //#23551 + var _Hc = $a(); //#23551 + $k[$j++] = _Hc; //#23551 + $1.addtocws(); //#23551 + if ($1.n > 7) { //#23556 + var _Hi = $k[--$j]; //#23553 + $1.mode = $1.C; //#23554 + $k[$j++] = $f(_Hi + $a([$get($1.BINvals, $1.tmc)])); //#23555 + break; //#23555 + } //#23555 + $k[$j++] = $a([$get($1.BINvals, $get($a([$1.sc2, $1.sc3, $1.sc4, $1.sc5, $1.sc6, $1.sc7]), $f($1.n - 2)))]); //#23557 + $1.addtocws(); //#23557 + for (var _Hx = 0, _Hy = $1.n; _Hx < _Hy; _Hx++) { //#23566 + if ($get($1.msg, $1.i) < 0) { //#23564 + $k[$j++] = $a([$get($1.Cvals, $get($1.msg, $1.i))]); //#23560 + $1.addtocws(); //#23560 + $1.i = $1.i + 1; //#23561 + } else { //#23564 + $k[$j++] = $a([$f(($f($get($1.msg, $1.i) - 48) * 10) + $f($get($1.msg, $1.i + 1) - 48))]); //#23563 + $1.addtocws(); //#23563 + $1.i = $1.i + 2; //#23564 + } //#23564 + } //#23564 + break; //#23567 + } //#23567 + if (($get($1.ECI, $1.i) && $get($1.Binary, $1.i + 7))) { //#23574 + $k[$j++] = Infinity; //#23570 + $1.ECIbin(); //#23570 + var _IN = $a(); //#23570 + $k[$j++] = _IN; //#23570 + $1.addtocws(); //#23570 + $1.i = $1.i + 7; //#23571 + if ($1.i == $1.msglen) { //#23572 + $k[$j++] = Infinity; //#23572 + $1.finaliseBIN(); //#23572 + var _IR = $a(); //#23572 + $k[$j++] = _IR; //#23572 + $1.addtocws(); //#23572 + } //#23572 + break; //#23573 + } //#23573 + if ($get($1.msg, $1.i) >= 0) { //#23584 + if (((($get($1.Binary, $1.i) || $get($1.Binary, $1.i + 1)) || $get($1.Binary, $1.i + 2)) || $get($1.Binary, $1.i + 3)) || ($get($1.ECI, $1.i + 1) && $get($1.Binary, $1.i + 8))) { //#23583 + $k[$j++] = Infinity; //#23579 + $k[$j++] = $get($1.msg, $1.i); //#23579 + $1.addtobin(); //#23579 + var _Iq = $a(); //#23579 + $k[$j++] = _Iq; //#23579 + $1.addtocws(); //#23579 + $1.i = $1.i + 1; //#23580 + if ($1.i == $1.msglen) { //#23581 + $k[$j++] = Infinity; //#23581 + $1.finaliseBIN(); //#23581 + var _Iu = $a(); //#23581 + $k[$j++] = _Iu; //#23581 + $1.addtocws(); //#23581 + } //#23581 + break; //#23582 + } //#23582 + } //#23582 + $k[$j++] = Infinity; //#23585 + $1.finaliseBIN(); //#23585 + var _Iv = $a(); //#23585 + $k[$j++] = _Iv; //#23585 + $1.addtocws(); //#23585 + if ($1.i != ($1.msglen - 1)) { //#23604 + if (($get($1.msg, $1.i) == $1.fn3) && ($1.i != $1.segstart)) { //#23595 + $k[$j++] = $a([$get($1.BINvals, $1.tms)]); //#23588 + $1.addtocws(); //#23588 + $1.i = $1.i + 1; //#23589 + $1.mode = $1.C; //#23590 + $1.inmac = 0; //#23591 + $1.segstart = $1.i; //#23592 + $1.segend = $f($1.i + $get($1.UntilEndSeg, $1.i)); //#23593 + break; //#23594 + } //#23594 + if ($gt($get($1.AheadA, $1.i), $get($1.AheadB, $1.i))) { //#23601 + $k[$j++] = $a([$get($1.BINvals, $1.tma)]); //#23597 + $1.addtocws(); //#23597 + $1.mode = $1.A; //#23598 + } else { //#23601 + $k[$j++] = $a([$get($1.BINvals, $1.tmb)]); //#23600 + $1.addtocws(); //#23600 + $1.mode = $1.B; //#23601 + } //#23601 + break; //#23603 + } //#23603 + break; //#23605 + } //#23605 + }; //#23607 + $1.cws = $a(($1.msglen * 2) + 1); //#23609 + $1.mode = $1.C; //#23610 + $1.bvals = $a(5); //#23611 + $1.bpos = 0; //#23611 + $1.inmac = 0; //#23612 + $1.segstart = 0; //#23612 + $1.segend = $get($1.UntilEndSeg, 0); //#23612 + $1.i = 0; //#23613 + $1.j = 0; //#23613 + for (;;) { //#23626 + if ($1.i >= $1.msglen) { //#23614 + break; //#23614 + } //#23614 + if ($1.inmac != 0) { //#23624 + if (($1.inmac != $1.mac) && ($1.i == $f($1.segend - 2))) { //#23619 + $1.i = $1.i + 2; //#23617 + if ($1.i >= $1.msglen) { //#23618 + break; //#23618 + } //#23618 + } //#23618 + if (($1.inmac == $1.mac) && ($1.i == $f($1.segend - 1))) { //#23623 + $1.i = $1.i + 1; //#23621 + if ($1.i >= $1.msglen) { //#23622 + break; //#23622 + } //#23622 + } //#23622 + } //#23622 + if ($1[$get($a(['encA', 'encB', 'encC', 'encBIN']), $1.mode)]() === true) { + break; + } //#23625 + } //#23625 + $1.cws = $geti($1.cws, 0, $1.j); //#23627 + $1.nd = $1.cws.length; //#23630 + $1.minarea = (((($1.nd + 3) + (~~($1.nd / 2))) * 9) + 2) * 2; //#23631 + if ($1.ratio != -1) { //#23659 + $1.hgt = Math.sqrt($1.minarea / $1.ratio); //#23633 + $1.wid = Math.sqrt($1.minarea * $1.ratio); //#23634 + $1.h = ~~$1.hgt; //#23635 + $1.w = ~~$1.wid; //#23635 + if ((($1.h + $1.w) % 2) == 1) { //#23649 + if (($1.h * $1.w) < $1.minarea) { //#23637 + $1.h = $1.h + 1; //#23637 + $1.w = $1.w + 1; //#23637 + } //#23637 + } else { //#23649 + if (($1.hgt * $1.w) < ($1.wid * $1.h)) { //#23649 + $1.w = $1.w + 1; //#23640 + if (($1.h * $1.w) < $1.minarea) { //#23644 + $1.w = $1.w - 1; //#23642 + $1.h = $1.h + 1; //#23642 + if (($1.h * $1.w) < $1.minarea) { //#23643 + $1.w = $1.w + 2; //#23643 + } //#23643 + } //#23643 + } else { //#23649 + $1.h = $1.h + 1; //#23646 + if (($1.h * $1.w) < $1.minarea) { //#23650 + $1.h = $1.h - 1; //#23648 + $1.w = $1.w + 1; //#23648 + if (($1.h * $1.w) < $1.minarea) { //#23649 + $1.h = $1.h + 2; //#23649 + } //#23649 + } //#23649 + } //#23649 + } //#23649 + $1.rows = $1.h; //#23653 + $1.columns = $1.w; //#23653 + } else { //#23659 + if ($1.columns == -1) { //#23657 + var _Kk = ~~((($1.minarea + $1.rows) - 1) / $1.rows); //#23656 + $k[$j++] = 'columns'; //#23656 + $k[$j++] = _Kk; //#23656 + if (((_Kk + $1.rows) % 2) == 0) { //#23656 + var _Km = $k[--$j]; //#23656 + $k[$j++] = $f(_Km + 1); //#23656 + } //#23656 + var _Kn = $k[--$j]; //#23656 + $1[$k[--$j]] = _Kn; //#23656 + } //#23656 + if ($1.rows == -1) { //#23660 + var _Kt = ~~((($1.minarea + $1.columns) - 1) / $1.columns); //#23659 + $k[$j++] = 'rows'; //#23659 + $k[$j++] = _Kt; //#23659 + if (((_Kt + $1.columns) % 2) == 0) { //#23659 + var _Kv = $k[--$j]; //#23659 + $k[$j++] = $f(_Kv + 1); //#23659 + } //#23659 + var _Kw = $k[--$j]; //#23659 + $1[$k[--$j]] = _Kw; //#23659 + } //#23659 + } //#23659 + $1.ndots = ~~(($1.rows * $1.columns) / 2); //#23664 + for (;;) { //#23668 + var _L1 = $1.nd + 1; //#23666 + if ((((_L1 + ((~~(_L1 / 2)) + 3)) * 9) + 2) > $1.ndots) { //#23666 + break; //#23666 + } //#23666 + $1.nd = $1.nd + 1; //#23667 + } //#23667 + $1.nc = (~~($1.nd / 2)) + 3; //#23669 + $1.nw = $1.nd + $1.nc; //#23670 + $1.rembits = $1.ndots - (($1.nw * 9) + 2); //#23671 + if ($1.nd > $1.cws.length) { //#23678 + $k[$j++] = Infinity; //#23676 + $aload($1.cws); //#23674 + var _LE = ($1.mode == $1.BIN) ? 109 : 106; //#23675 + $k[$j++] = _LE; //#23676 + for (var _LH = 0, _LI = ($1.nd - $1.cws.length) - 1; _LH < _LI; _LH++) { //#23676 + $k[$j++] = 106; //#23676 + } //#23676 + $1.cws = $a(); //#23676 + } //#23677 + $1.encs = $a(["101010101", "010101011", "010101101", "010110101", "011010101", "101010110", "101011010", "101101010", "110101010", "010101110", "010110110", "010111010", "011010110", "011011010", "011101010", "100101011", "100101101", "100110101", "101001011", "101001101", "101010011", "101011001", "101100101", "101101001", "110010101", "110100101", "110101001", "001010111", "001011011", "001011101", "001101011", "001101101", "001110101", "010010111", "010011011", "010011101", "010100111", "010110011", "010111001", "011001011", "011001101", "011010011", "011011001", "011100101", "011101001", "100101110", "100110110", "100111010", "101001110", "101011100", "101100110", "101101100", "101110010", "101110100", "110010110", "110011010", "110100110", "110101100", "110110010", "110110100", "111001010", "111010010", "111010100", "001011110", "001101110", "001110110", "001111010", "010011110", "010111100", "011001110", "011011100", "011100110", "011101100", "011110010", "011110100", "100010111", "100011011", "100011101", "100100111", "100110011", "100111001", "101000111", "101100011", "101110001", "110001011", "110001101", "110010011", "110011001", "110100011", "110110001", "111000101", "111001001", "111010001", "000101111", "000110111", "000111011", "000111101", "001001111", "001100111", "001110011", "001111001", "010001111", "011000111", "011100011", "011110001", "100011110", "100111100", "101111000", "110001110", "110011100", "110111000", "111000110", "111001100"]); //#23705 + if (($1.rows % 2) == 0) { //#23725 + $1.sixedges = $a([$a([$1.columns - 1, $1.rows - 2]), $a([0, $1.rows - 2]), $a([$1.columns - 2, $1.rows - 1]), $a([1, $1.rows - 1]), $a([$1.columns - 1, 0]), $a([0, 0])]); //#23716 + } else { //#23725 + $1.sixedges = $a([$a([$1.columns - 2, 0]), $a([$1.columns - 2, $1.rows - 1]), $a([$1.columns - 1, 1]), $a([$1.columns - 1, $1.rows - 2]), $a([0, 0]), $a([0, $1.rows - 1])]); //#23725 + } //#23725 + $1.dmv = function() { + var _Lp = $k[--$j]; //#23728 + var _Lq = $k[--$j]; //#23728 + $k[$j++] = $f(_Lq + (_Lp * $1.columns)); //#23728 + }; //#23728 + $1.outline = $a($1.rows * $1.columns); //#23731 + for (var _Lw = 0, _Lv = $1.rows - 1; _Lw <= _Lv; _Lw += 1) { //#23738 + $1.y = _Lw; //#23733 + for (var _Lz = 0, _Ly = $1.columns - 1; _Lz <= _Ly; _Lz += 1) { //#23737 + $1.x = _Lz; //#23735 + $k[$j++] = $1.outline; //#23736 + $k[$j++] = $1.x; //#23736 + $k[$j++] = $1.y; //#23736 + $1.dmv(); //#23736 + var _M5 = $k[--$j]; //#23736 + $put($k[--$j], _M5, (($1.x + $1.y) % 2) - 1); //#23736 + } //#23736 + } //#23736 + var _M7 = $1.sixedges; //#23739 + for (var _M8 = 0, _M9 = _M7.length; _M8 < _M9; _M8++) { //#23741 + $k[$j++] = $1.outline; //#23740 + $aload($get(_M7, _M8)); //#23740 + $1.dmv(); //#23740 + var _MC = $k[--$j]; //#23740 + $put($k[--$j], _MC, 1); //#23740 + } //#23740 + $1.clearcol = function() { + $1.x = $k[--$j]; //#23744 + $k[$j++] = true; //#23748 + for (var _MI = $1.x & 1, _MH = $1.rows - 1; _MI <= _MH; _MI += 2) { //#23748 + $k[$j++] = $1.x; //#23747 + $k[$j++] = _MI; //#23747 + $1.dmv(); //#23747 + if ($get($1.sym, $k[--$j]) == 1) { //#23747 + $j--; //#23747 + $k[$j++] = false; //#23747 + break; //#23747 + } //#23747 + } //#23747 + }; //#23749 + $1.clearrow = function() { + $1.y = $k[--$j]; //#23752 + $k[$j++] = true; //#23756 + for (var _MR = $1.y & 1, _MQ = $1.columns - 1; _MR <= _MQ; _MR += 2) { //#23756 + $k[$j++] = _MR; //#23755 + $k[$j++] = $1.y; //#23755 + $1.dmv(); //#23755 + if ($get($1.sym, $k[--$j]) == 1) { //#23755 + $j--; //#23755 + $k[$j++] = false; //#23755 + break; //#23755 + } //#23755 + } //#23755 + }; //#23757 + $1.evalsymbol = function() { + $1.sym = $k[--$j]; //#23761 + $1.worst = 9999999; //#23764 + var _Mb = $a([$a(['x', 0]), $a(['x', 1]), $a(['y', 0]), $a(['y', 1])]); //#23765 + for (var _Mc = 0, _Md = _Mb.length; _Mc < _Md; _Mc++) { //#23783 + $aload($get(_Mb, _Mc)); //#23766 + $1.fl = $k[--$j]; //#23766 + $1.dir = $k[--$j]; //#23766 + $1.sum = 0; //#23767 + $1.first = -1; //#23767 + $1.last = -1; //#23767 + var _Mi = $eq($1.dir, 'x') ? $1.columns : $1.rows; //#23768 + for (var _Mk = 0, _Mj = _Mi - 1; _Mk <= _Mj; _Mk += 1) { //#23779 + $1[$1.dir] = _Mk; //#23769 + var _Mm = $1.sym; //#23770 + var _Mo = $1[$1.dir]; //#23771 + var _Mq = $eq($1.dir, 'x') ? $1.rows : $1.columns; //#23772 + var _Mt = (_Mq - 1) * $1.fl; //#23773 + if ($eq($1.dir, 'y')) { //#23773 + var _ = _Mt; //#23773 + _Mt = _Mo; //#23773 + _Mo = _; //#23773 + } //#23773 + $k[$j++] = _Mm; //#23774 + $k[$j++] = _Mo; //#23774 + $k[$j++] = _Mt; //#23774 + $1.dmv(); //#23774 + var _Mu = $k[--$j]; //#23774 + if ($get($k[--$j], _Mu) == 1) { //#23778 + if ($1.first == -1) { //#23775 + $1.first = $1[$1.dir]; //#23775 + } //#23775 + $1.last = $1[$1.dir]; //#23776 + $1.sum = $1.sum + 1; //#23777 + } //#23777 + } //#23777 + var _N7 = $eq($1.dir, 'x') ? $1.rows : $1.columns; //#23781 + var _N8 = ($f($f($1.sum + $1.last) - $1.first)) * _N7; //#23782 + $k[$j++] = _N8; //#23782 + if (_N8 < $1.worst) { //#23782 + $1.worst = $k[--$j]; //#23782 + } else { //#23782 + $j--; //#23782 + } //#23782 + } //#23782 + $1.pen = 0; //#23785 + if ((($1.rows % 2) == 1) || ($1.rows <= 12)) { //#23803 + $1.sum = 0; //#23791 + $1.p = 0; //#23791 + for (var _NF = 1, _NE = $1.columns - 2; _NF <= _NE; _NF += 1) { //#23801 + $k[$j++] = _NF; //#23793 + $1.clearcol(); //#23793 + if ($k[--$j]) { //#23799 + $1.sum = $1.sum + 1; //#23794 + $k[$j++] = 'p'; //#23795 + if ($1.sum == 1) { //#23795 + $k[$j++] = $1.rows; //#23795 + } else { //#23795 + $k[$j++] = $1.p * $1.rows; //#23795 + } //#23795 + var _NM = $k[--$j]; //#23795 + $1[$k[--$j]] = _NM; //#23795 + } else { //#23799 + $1.sum = 0; //#23797 + $1.pen = $1.pen + $1.p; //#23798 + $1.p = 0; //#23799 + } //#23799 + } //#23799 + $1.pen = $1.pen + $1.p; //#23802 + } //#23802 + if ((($1.rows % 2) == 0) || ($1.columns <= 12)) { //#23821 + $1.sum = 0; //#23809 + $1.p = 0; //#23809 + for (var _NW = 1, _NV = $1.rows - 2; _NW <= _NV; _NW += 1) { //#23819 + $k[$j++] = _NW; //#23811 + $1.clearrow(); //#23811 + if ($k[--$j]) { //#23817 + $1.sum = $1.sum + 1; //#23812 + $k[$j++] = 'p'; //#23813 + if ($1.sum == 1) { //#23813 + $k[$j++] = $1.columns; //#23813 + } else { //#23813 + $k[$j++] = $1.p * $1.columns; //#23813 + } //#23813 + var _Nd = $k[--$j]; //#23813 + $1[$k[--$j]] = _Nd; //#23813 + } else { //#23817 + $1.sum = 0; //#23815 + $1.pen = $1.pen + $1.p; //#23816 + $1.p = 0; //#23817 + } //#23817 + } //#23817 + $1.pen = $1.pen + $1.p; //#23820 + } //#23820 + $k[$j++] = Infinity; //#23831 + for (var _Nk = 0, _Nl = ($1.columns + 4) * 2; _Nk < _Nl; _Nk++) { //#23825 + $k[$j++] = 0; //#23825 + } //#23825 + for (var _Np = 0, _Nq = $1.columns, _No = $1.sym.length - 1; _Nq < 0 ? _Np >= _No : _Np <= _No; _Np += _Nq) { //#23830 + $k[$j++] = 0; //#23828 + $k[$j++] = 0; //#23828 + $aload($geti($1.sym, _Np, $1.columns)); //#23828 + $k[$j++] = 0; //#23829 + $k[$j++] = 0; //#23829 + } //#23829 + for (var _Nv = 0, _Nw = ($1.columns + 4) * 2; _Nv < _Nw; _Nv++) { //#23831 + $k[$j++] = 0; //#23831 + } //#23831 + $1.symp = $a(); //#23831 + $1.columns = $1.columns + 4; //#23835 + $1.rows = $1.rows + 4; //#23836 + $1.sum = 0; //#23837 + for (var _O2 = 2, _O1 = $1.rows - 3; _O2 <= _O1; _O2 += 1) { //#23855 + $1.y = _O2; //#23839 + for (var _O6 = ($1.y & 1) + 2, _O5 = $1.columns - 3; _O6 <= _O5; _O6 += 2) { //#23854 + $1.x = _O6; //#23841 + for (var _O7 = 0, _O8 = 1; _O7 < _O8; _O7++) { //#23853 + $k[$j++] = $1.symp; //#23843 + $k[$j++] = $1.x - 1; //#23843 + $k[$j++] = $1.y - 1; //#23843 + $1.dmv(); //#23843 + var _OC = $k[--$j]; //#23843 + if ($get($k[--$j], _OC) == 1) { //#23843 + break; //#23843 + } //#23843 + $k[$j++] = $1.symp; //#23844 + $k[$j++] = $1.x + 1; //#23844 + $k[$j++] = $1.y - 1; //#23844 + $1.dmv(); //#23844 + var _OI = $k[--$j]; //#23844 + if ($get($k[--$j], _OI) == 1) { //#23844 + break; //#23844 + } //#23844 + $k[$j++] = $1.symp; //#23845 + $k[$j++] = $1.x - 1; //#23845 + $k[$j++] = $1.y + 1; //#23845 + $1.dmv(); //#23845 + var _OO = $k[--$j]; //#23845 + if ($get($k[--$j], _OO) == 1) { //#23845 + break; //#23845 + } //#23845 + $k[$j++] = $1.symp; //#23846 + $k[$j++] = $1.x + 1; //#23846 + $k[$j++] = $1.y + 1; //#23846 + $1.dmv(); //#23846 + var _OU = $k[--$j]; //#23846 + if ($get($k[--$j], _OU) == 1) { //#23846 + break; //#23846 + } //#23846 + $k[$j++] = $1.symp; //#23847 + $k[$j++] = $1.x; //#23847 + $k[$j++] = $1.y; //#23847 + $1.dmv(); //#23847 + var _Oa = $k[--$j]; //#23847 + if ($get($k[--$j], _Oa) == 0) { //#23847 + $1.sum = $1.sum + 1; //#23847 + break; //#23847 + } //#23847 + $k[$j++] = $1.symp; //#23848 + $k[$j++] = $1.x - 2; //#23848 + $k[$j++] = $1.y; //#23848 + $1.dmv(); //#23848 + var _Oh = $k[--$j]; //#23848 + if ($get($k[--$j], _Oh) == 1) { //#23848 + break; //#23848 + } //#23848 + $k[$j++] = $1.symp; //#23849 + $k[$j++] = $1.x; //#23849 + $k[$j++] = $1.y - 2; //#23849 + $1.dmv(); //#23849 + var _On = $k[--$j]; //#23849 + if ($get($k[--$j], _On) == 1) { //#23849 + break; //#23849 + } //#23849 + $k[$j++] = $1.symp; //#23850 + $k[$j++] = $1.x + 2; //#23850 + $k[$j++] = $1.y; //#23850 + $1.dmv(); //#23850 + var _Ot = $k[--$j]; //#23850 + if ($get($k[--$j], _Ot) == 1) { //#23850 + break; //#23850 + } //#23850 + $k[$j++] = $1.symp; //#23851 + $k[$j++] = $1.x; //#23851 + $k[$j++] = $1.y + 2; //#23851 + $1.dmv(); //#23851 + var _Oz = $k[--$j]; //#23851 + if ($get($k[--$j], _Oz) == 1) { //#23851 + break; //#23851 + } //#23851 + $1.sum = $1.sum + 1; //#23852 + } //#23852 + } //#23852 + } //#23852 + $1.columns = $1.columns - 4; //#23856 + $1.rows = $1.rows - 4; //#23857 + if ($1.worst == 0) { //#23862 + $k[$j++] = -99999; //#23860 + } else { //#23862 + $k[$j++] = $f(($f($1.worst - ($1.sum * $1.sum))) - $1.pen); //#23862 + } //#23862 + }; //#23865 + $k[$j++] = Infinity; //#23868 + $k[$j++] = 1; //#23868 + for (var _PA = 0, _PB = 112; _PA < _PB; _PA++) { //#23868 + var _PC = $k[--$j]; //#23868 + $k[$j++] = _PC; //#23868 + $k[$j++] = (_PC * 3) % 113; //#23868 + } //#23868 + $1.rsalog = $a(); //#23868 + $1.step = (~~($1.nw / 112)) + 1; //#23869 + $1.offset = function() { + var _PG = $k[--$j]; //#23870 + $k[$j++] = $f((_PG * $1.step) + $1.start); //#23870 + }; //#23870 + $1.bestscore = -99999999; //#23878 + $k[$j++] = 'masks'; //#23883 + if ($1.mask != -1) { //#23882 + $k[$j++] = $a([$1.mask]); //#23880 + } else { //#23882 + if ($1.fast) { //#23882 + $k[$j++] = $a([3, 2, 1, 0]); //#23882 + } else { //#23882 + $k[$j++] = $a([0, 1, 2, 3]); //#23882 + } //#23882 + } //#23882 + var _PO = $k[--$j]; //#23883 + $1[$k[--$j]] = _PO; //#23883 + $1.litmasks = $a(4); //#23884 + $forall($1.masks, function() { //#23986 + $1.mask = $k[--$j]; //#23887 + $k[$j++] = Infinity; //#23893 + var _PX = $1.cws; //#23892 + $k[$j++] = $1.mask; //#23892 + $k[$j++] = $get($a([0, 3, 7, 17]), $1.mask); //#23892 + $k[$j++] = 0; //#23892 + for (var _PY = 0, _PZ = _PX.length; _PY < _PZ; _PY++) { //#23892 + var _Pb = $k[--$j]; //#23892 + var _Pc = $k[--$j]; //#23892 + $k[$j++] = $f($get(_PX, _PY) + _Pb) % 113; //#23892 + $k[$j++] = _Pc; //#23892 + $k[$j++] = $f(_Pb + _Pc); //#23892 + } //#23892 + $j -= 2; //#23892 + for (var _Pe = 0, _Pf = $1.nc; _Pe < _Pf; _Pe++) { //#23893 + $k[$j++] = 0; //#23893 + } //#23893 + $1.rscws = $a(); //#23893 + for (var _Pj = 0, _Pi = $1.step - 1; _Pj <= _Pi; _Pj += 1) { //#23917 + $1.start = _Pj; //#23896 + $1.ND = ~~((((($1.nd + 1) - $1.start) + $1.step) - 1) / $1.step); //#23897 + $1.NW = ~~((((($1.nw + 1) - $1.start) + $1.step) - 1) / $1.step); //#23898 + $1.NC = $1.NW - $1.ND; //#23899 + $k[$j++] = Infinity; //#23900 + $k[$j++] = 1; //#23900 + for (var _Pv = 0, _Pw = $1.NC; _Pv < _Pw; _Pv++) { //#23900 + $k[$j++] = 0; //#23900 + } //#23900 + $1.coeffs = $a(); //#23900 + for (var _Q0 = 1, _Pz = $1.NC; _Q0 <= _Pz; _Q0 += 1) { //#23907 + $1.i = _Q0; //#23902 + for (var _Q2 = $1.NC; _Q2 >= 1; _Q2 -= 1) { //#23906 + $1.j = _Q2; //#23904 + $put($1.coeffs, $1.j, ($f($f($get($1.coeffs, $1.j) + 113) - (($get($1.rsalog, $1.i) * $get($1.coeffs, $1.j - 1)) % 113))) % 113); //#23905 + } //#23905 + } //#23905 + for (var _QG = 0, _QF = $1.ND - 1; _QG <= _QF; _QG += 1) { //#23915 + $k[$j++] = 't'; //#23909 + $k[$j++] = $1.rscws; //#23909 + $k[$j++] = _QG; //#23909 + $1.offset(); //#23909 + var _QI = $k[--$j]; //#23909 + var _QK = $get($k[--$j], _QI); //#23909 + $k[$j++] = _QK; //#23909 + $k[$j++] = $1.rscws; //#23909 + $k[$j++] = $1.ND; //#23909 + $1.offset(); //#23909 + var _QN = $k[--$j]; //#23909 + var _QP = $get($k[--$j], _QN); //#23909 + var _QQ = $k[--$j]; //#23909 + $1[$k[--$j]] = $f(_QQ + _QP) % 113; //#23909 + for (var _QU = 0, _QT = $1.NC - 2; _QU <= _QT; _QU += 1) { //#23913 + $1.j = _QU; //#23911 + $k[$j++] = $1.rscws; //#23912 + $k[$j++] = $1.ND + $1.j; //#23912 + $1.offset(); //#23912 + $k[$j++] = $1.rscws; //#23912 + $k[$j++] = ($1.ND + $1.j) + 1; //#23912 + $1.offset(); //#23912 + var _Qb = $k[--$j]; //#23912 + var _Qd = $get($k[--$j], _Qb); //#23912 + var _Qi = $k[--$j]; //#23912 + $put($k[--$j], _Qi, ($f($f(_Qd + 113) - (($1.t * $get($1.coeffs, $1.j + 1)) % 113))) % 113); //#23912 + } //#23912 + $k[$j++] = $1.rscws; //#23914 + $k[$j++] = ($1.ND + $1.NC) - 1; //#23914 + $1.offset(); //#23914 + var _Qr = $k[--$j]; //#23914 + $put($k[--$j], _Qr, ($f(113 - (($1.t * $get($1.coeffs, $1.NC)) % 113))) % 113); //#23914 + } //#23914 + for (var _Qw = $1.ND, _Qv = $1.NW - 1; _Qw <= _Qv; _Qw += 1) { //#23916 + $k[$j++] = _Qw; //#23916 + $k[$j++] = $1.rscws; //#23916 + $k[$j++] = _Qw; //#23916 + $1.offset(); //#23916 + var _Qz = $k[--$j]; //#23916 + var _R0 = $k[--$j]; //#23916 + var _R1 = $k[--$j]; //#23916 + $k[$j++] = _R0; //#23916 + $k[$j++] = _Qz; //#23916 + $k[$j++] = 113; //#23916 + $k[$j++] = $1.rscws; //#23916 + $k[$j++] = _R1; //#23916 + $1.offset(); //#23916 + var _R2 = $k[--$j]; //#23916 + var _R4 = $get($k[--$j], _R2); //#23916 + var _R5 = $k[--$j]; //#23916 + var _R6 = $k[--$j]; //#23916 + $put($k[--$j], _R6, $f(_R5 - _R4) % 113); //#23916 + } //#23916 + } //#23916 + $1.bits = $s($1.ndots); //#23920 + $puti($1.bits, 0, $get($a(["00", "01", "10", "11"]), $1.mask)); //#23921 + for (var _RG = 1, _RF = $1.nw; _RG <= _RF; _RG += 1) { //#23925 + $1.i = _RG; //#23923 + $puti($1.bits, (($1.i - 1) * 9) + 2, $get($1.encs, $get($1.rscws, $1.i))); //#23924 + } //#23924 + if ($1.rembits > 0) { //#23928 + $puti($1.bits, ($1.nw * 9) + 2, $geti("11111111111111111", 0, $1.rembits)); //#23927 + } //#23927 + var _RT = $1.outline; //#23931 + $1.pixs = $arrcpy($a(_RT.length), _RT); //#23931 + $1.posx = 0; //#23932 + $k[$j++] = 'posy'; //#23933 + if (($1.rows % 2) == 0) { //#23933 + $k[$j++] = 0; //#23933 + } else { //#23933 + $k[$j++] = $1.rows - 1; //#23933 + } //#23933 + var _RY = $k[--$j]; //#23933 + $1[$k[--$j]] = _RY; //#23933 + var _Rc = $geti($1.bits, 0, $1.bits.length - 6); //#23934 + for (var _Rd = 0, _Re = _Rc.length; _Rd < _Re; _Rd++) { //#23952 + $k[$j++] = $get(_Rc, _Rd); //#23950 + for (;;) { //#23950 + $k[$j++] = $1.pixs; //#23936 + $k[$j++] = $1.posx; //#23936 + $k[$j++] = $1.posy; //#23936 + $1.dmv(); //#23936 + var _Rj = $k[--$j]; //#23936 + if ($get($k[--$j], _Rj) == -1) { //#23936 + break; //#23936 + } //#23936 + if (($1.rows % 2) == 0) { //#23947 + $1.posy = $1.posy + 1; //#23938 + if ($1.posy == $1.rows) { //#23942 + $1.posy = 0; //#23940 + $1.posx = $1.posx + 1; //#23941 + } //#23941 + } else { //#23947 + $1.posx = $1.posx + 1; //#23944 + if ($1.posx == $1.columns) { //#23948 + $1.posx = 0; //#23946 + $1.posy = $1.posy - 1; //#23947 + } //#23947 + } //#23947 + } //#23947 + $k[$j++] = $1.pixs; //#23951 + $k[$j++] = $1.posx; //#23951 + $k[$j++] = $1.posy; //#23951 + $1.dmv(); //#23951 + var _Ry = $k[--$j]; //#23951 + var _Rz = $k[--$j]; //#23951 + $put(_Rz, _Ry, $f($k[--$j] - 48)); //#23951 + } //#23951 + for (var _S1 = 0; _S1 <= 5; _S1 += 1) { //#23957 + $1.i = _S1; //#23954 + $k[$j++] = $1.pixs; //#23955 + $aload($get($1.sixedges, $1.i)); //#23955 + $1.dmv(); //#23955 + var _SA = $k[--$j]; //#23956 + $put($k[--$j], _SA, $get($1.bits, ($1.bits.length - 6) + $1.i) - 48); //#23956 + } //#23956 + $k[$j++] = 'score'; //#23960 + $k[$j++] = $1.pixs; //#23960 + $1.evalsymbol(); //#23960 + var _SD = $k[--$j]; //#23960 + $1[$k[--$j]] = _SD; //#23960 + if ($1.score > $1.bestscore) { //#23965 + $1.bestsym = $1.pixs; //#23962 + $1.bestscore = $1.score; //#23963 + if ($1.fast && ($1.bestscore > (~~(($1.rows * $1.columns) / 2)))) { //#23964 + return true; //#23964 + } //#23964 + } //#23964 + var _SN = $1.pixs; //#23968 + $1.litmask = $arrcpy($a(_SN.length), _SN); //#23968 + for (var _SQ = 0; _SQ <= 5; _SQ += 1) { //#23973 + $1.i = _SQ; //#23970 + $k[$j++] = $1.litmask; //#23971 + $aload($get($1.sixedges, $1.i)); //#23971 + $1.dmv(); //#23971 + var _SV = $k[--$j]; //#23972 + $put($k[--$j], _SV, 1); //#23972 + } //#23972 + $put($1.litmasks, $1.mask, $1.litmask); //#23974 + if ($1.fast) { //#23984 + $k[$j++] = 'score'; //#23978 + $k[$j++] = $1.litmask; //#23978 + $1.evalsymbol(); //#23978 + var _Sc = $k[--$j]; //#23978 + $1[$k[--$j]] = _Sc; //#23978 + if ($gt($1.score, $1.bestscore)) { //#23983 + $1.bestsym = $1.litmask; //#23980 + $1.bestscore = $1.score; //#23981 + if ($1.bestscore > (~~(($1.rows * $1.columns) / 2))) { //#23982 + return true; //#23982 + } //#23982 + } //#23982 + } //#23982 + }); //#23982 + $1.pixs = $1.bestsym; //#23987 + if ((!$1.fast) && ($1.bestscore <= (~~(($1.rows * $1.columns) / 2)))) { //#24001 + $1.bestscore = -99999999; //#23991 + $forall($1.masks, function() { //#23999 + $1.litmask = $get($1.litmasks, $k[--$j]); //#23993 + $k[$j++] = 'score'; //#23994 + $k[$j++] = $1.litmask; //#23994 + $1.evalsymbol(); //#23994 + var _Sv = $k[--$j]; //#23994 + $1[$k[--$j]] = _Sv; //#23994 + if ($1.score > $1.bestscore) { //#23998 + $1.bestsym = $1.litmask; //#23996 + $1.bestscore = $1.score; //#23997 + } //#23997 + }); //#23997 + $1.pixs = $1.bestsym; //#24000 + } //#24000 + var _T8 = new Map([ + ["ren", $0.renmatrix], + ["dotty", true], + ["pixs", $1.pixs], + ["pixx", $1.columns], + ["pixy", $1.rows], + ["height", ($1.rows * 2) / 72], + ["width", ($1.columns * 2) / 72], + ["opt", $1.options] + ]); //#24012 + $k[$j++] = _T8; //#24015 + if (!$1.dontdraw) { //#24015 + $0.renmatrix(); //#24015 + } //#24015 + }; + $0.ultracode = function() { + var $1 = {}; //#24045 + $1.options = $k[--$j]; //#24047 + $1.barcode = $k[--$j]; //#24048 + $1.dontdraw = false; //#24050 + $1.eclevel = "EC2"; //#24051 + $1.parse = false; //#24052 + $1.parsefnc = false; //#24053 + $forall($1.options, function() { //#24064 + var _3 = $k[--$j]; //#24064 + $1[$k[--$j]] = _3; //#24064 + }); //#24064 + $1.fn1 = -1; //#24067 + $1.fn3 = -2; //#24067 + var _9 = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["FNC1", $1.fn1], + ["FNC3", $1.fn3] + ]); //#24072 + $1.fncvals = _9; //#24073 + $k[$j++] = 'msg'; //#24074 + $k[$j++] = $1.barcode; //#24074 + $k[$j++] = $1.fncvals; //#24074 + $0.parseinput(); //#24074 + var _C = $k[--$j]; //#24074 + $1[$k[--$j]] = _C; //#24074 + $1.msglen = $1.msg.length; //#24075 + $1.start = 257; //#24078 + $1.scr = $a([]); //#24079 + $1.link1 = 0; //#24080 + $1.scp = $a([]); //#24081 + $k[$j++] = Infinity; //#24087 + $aload($1.scr); //#24083 + $aload($1.scp); //#24084 + $forall($1.msg, function() { //#24088 + var _K = $k[--$j]; //#24086 + $k[$j++] = _K; //#24086 + if (_K == $1.fn1) { //#24086 + $j--; //#24086 + $k[$j++] = 268; //#24086 + } //#24086 + var _M = $k[--$j]; //#24087 + $k[$j++] = _M; //#24087 + if (_M == $1.fn3) { //#24087 + $j--; //#24087 + $k[$j++] = 269; //#24087 + } //#24087 + }); //#24087 + $1.dcws = $a(); //#24087 + $1.mcc = $1.dcws.length + 3; //#24090 + $1.eclval = $get($1.eclevel, 2) - 48; //#24092 + if ($1.eclval != 0) { //#24096 + $k[$j++] = 'qcc'; //#24094 + $k[$j++] = $get($a([0, 1, 2, 4, 6, 8]), $1.eclval); //#24094 + $k[$j++] = ~~($1.mcc / 25); //#24094 + if (($1.mcc % 25) != 0) { //#24094 + var _Y = $k[--$j]; //#24094 + $k[$j++] = $f(_Y + 1); //#24094 + } //#24094 + var _Z = $k[--$j]; //#24094 + var _a = $k[--$j]; //#24094 + $1[$k[--$j]] = $f((_a * _Z) + 5); //#24094 + } else { //#24096 + $1.qcc = 3; //#24096 + } //#24096 + $1.acc = ($1.qcc - 3) + (78 * $1.link1); //#24098 + $1.tcc = $1.mcc + $1.qcc; //#24099 + $1.metrics = $a([$a([2, 4, 34, 5]), $a([3, 33, 82, 13]), $a([4, 82, 158, 23]), $a([5, 134, 282, 30])]); //#24109 + for (var _l = 0; _l <= 3; _l += 1) { //#24120 + $1.i = _l; //#24111 + $1.m = $get($1.metrics, $1.i); //#24112 + $1.rows = $get($1.m, 0); //#24113 + $1.minc = $get($1.m, 1); //#24114 + $1.maxc = $get($1.m, 2); //#24115 + $1.mcol = $get($1.m, 3); //#24116 + $1.okay = true; //#24117 + if (($1.tcc < $1.minc) || ($1.tcc > $1.maxc)) { //#24118 + $1.okay = false; //#24118 + } //#24118 + if ($1.okay) { //#24119 + break; //#24119 + } //#24119 + } //#24119 + if (!$1.okay) { //#24124 + $k[$j++] = 'bwipp.ultracodeNoValidSymbol'; //#24123 + $k[$j++] = "No valid symbol available"; //#24123 + $0.raiseerror(); //#24123 + } //#24123 + for (var _14 = $1.mcol; _14 <= 61; _14 += 1) { //#24138 + $1.columns = _14; //#24128 + $k[$j++] = $1.columns; //#24130 + if ($1.columns >= 15) { //#24130 + var _17 = $k[--$j]; //#24130 + $k[$j++] = $f(_17 - 1); //#24130 + } //#24130 + if ($1.columns >= 31) { //#24131 + var _19 = $k[--$j]; //#24131 + $k[$j++] = $f(_19 - 1); //#24131 + } //#24131 + if ($1.columns >= 47) { //#24132 + var _1B = $k[--$j]; //#24132 + $k[$j++] = $f(_1B - 1); //#24132 + } //#24132 + var _1F = $f(($f(($k[--$j] * $1.rows) - 3)) - $1.tcc); //#24133 + $k[$j++] = _1F; //#24136 + if (_1F >= 0) { //#24136 + $1.pads = $k[--$j]; //#24134 + break; //#24135 + } //#24135 + $j--; //#24137 + } //#24137 + $1.dcc = $f($1.columns - $1.mcol); //#24139 + $k[$j++] = Infinity; //#24149 + $k[$j++] = $1.start; //#24146 + $k[$j++] = $1.mcc; //#24146 + $k[$j++] = $1.acc; //#24146 + $aload($1.scr); //#24146 + $aload($1.dcws); //#24147 + for (var _1P = 0, _1Q = $1.qcc; _1P < _1Q; _1P++) { //#24148 + $k[$j++] = 0; //#24148 + } //#24148 + $k[$j++] = 0; //#24149 + $1.rsseq = $a(); //#24149 + $k[$j++] = Infinity; //#24153 + $k[$j++] = 1; //#24153 + for (var _1S = 0, _1T = 282; _1S < _1T; _1S++) { //#24153 + var _1U = $k[--$j]; //#24153 + $k[$j++] = _1U; //#24153 + $k[$j++] = (_1U * 3) % 283; //#24153 + } //#24153 + $1.rsalog = $a(); //#24153 + $1.rslog = $a(283); //#24154 + for (var _1X = 1; _1X <= 282; _1X += 1) { //#24155 + $put($1.rslog, $get($1.rsalog, _1X), _1X); //#24155 + } //#24155 + $1.rsprod = function() { + var _1b = $k[--$j]; //#24159 + var _1c = $k[--$j]; //#24159 + $k[$j++] = _1c; //#24163 + $k[$j++] = _1b; //#24163 + if ((_1b != 0) && (_1c != 0)) { //#24162 + var _1f = $get($1.rslog, $k[--$j]); //#24160 + var _1k = $get($1.rsalog, $f(_1f + $get($1.rslog, $k[--$j])) % 282); //#24160 + $k[$j++] = _1k; //#24160 + } else { //#24162 + $j -= 2; //#24162 + $k[$j++] = 0; //#24162 + } //#24162 + }; //#24164 + $1.n = $1.mcc; //#24167 + $1.k = $1.qcc; //#24167 + $k[$j++] = Infinity; //#24168 + $k[$j++] = 1; //#24168 + for (var _1o = 0, _1p = $1.k; _1o < _1p; _1o++) { //#24168 + $k[$j++] = 0; //#24168 + } //#24168 + $1.coeffs = $a(); //#24168 + for (var _1t = 1, _1s = $1.k; _1t <= _1s; _1t += 1) { //#24177 + $1.i = _1t; //#24170 + $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); //#24171 + for (var _20 = $1.i - 1; _20 >= 1; _20 -= 1) { //#24175 + $1.j = _20; //#24173 + $k[$j++] = $1.coeffs; //#24174 + $k[$j++] = $1.j; //#24174 + $k[$j++] = $get($1.coeffs, $1.j - 1); //#24174 + $k[$j++] = $get($1.coeffs, $1.j); //#24174 + $k[$j++] = $get($1.rsalog, $1.i); //#24174 + $1.rsprod(); //#24174 + var _2C = $k[--$j]; //#24174 + var _2D = $k[--$j]; //#24174 + var _2E = $k[--$j]; //#24174 + $put($k[--$j], _2E, $f(_2D + _2C) % 283); //#24174 + } //#24174 + $k[$j++] = $1.coeffs; //#24176 + $k[$j++] = 0; //#24176 + $k[$j++] = $get($1.coeffs, 0); //#24176 + $k[$j++] = $get($1.rsalog, $1.i); //#24176 + $1.rsprod(); //#24176 + var _2M = $k[--$j]; //#24176 + var _2N = $k[--$j]; //#24176 + $put($k[--$j], _2N, _2M); //#24176 + } //#24176 + $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); //#24178 + for (var _2T = $1.coeffs.length - 1; _2T >= 0; _2T -= 2) { //#24179 + var _2U = $1.coeffs; //#24179 + $put(_2U, _2T, $f(283 - $get(_2U, _2T))); //#24179 + } //#24179 + for (var _2Y = 0, _2X = $1.n - 1; _2Y <= _2X; _2Y += 1) { //#24188 + $1.t = $f($get($1.rsseq, _2Y) + $get($1.rsseq, $1.n)) % 283; //#24183 + for (var _2g = 0, _2f = $1.k - 1; _2g <= _2f; _2g += 1) { //#24187 + $1.j = _2g; //#24185 + $put($1.rsseq, $1.n + $1.j, ($f($get($1.rsseq, ($1.n + $1.j) + 1) + ($f(283 - (($1.t * $get($1.coeffs, ($1.k - $1.j) - 1)) % 283))))) % 283); //#24186 + } //#24186 + } //#24186 + for (var _2x = $1.n, _2w = $1.n + $1.k; _2x <= _2w; _2x += 1) { //#24189 + $put($1.rsseq, _2x, $f(283 - $get($1.rsseq, _2x)) % 283); //#24189 + } //#24189 + $1.ecws = $geti($1.rsseq, $1.n, $1.k); //#24190 + $1.dccu = $a([51363, 51563, 51653, 53153, 53163, 53513, 53563, 53613, 53653, 56153, 56163, 56313, 56353, 56363, 56513, 56563, 51316, 51356, 51536, 51616, 53156, 53516, 53536, 53616, 53636, 53656, 56136, 56156, 56316, 56356, 56516, 56536]); //#24197 + $1.dccl = $a([61351, 61361, 61531, 61561, 61631, 61651, 63131, 63151, 63161, 63531, 63561, 63631, 65131, 65161, 65351, 65631, 31351, 31361, 31531, 31561, 31631, 31651, 35131, 35151, 35161, 35361, 35631, 35651, 36131, 36151, 36351, 36531]); //#24204 + $1.tiles = $a([13135, 13136, 13153, 13156, 13163, 13165, 13513, 13515, 13516, 13531, 13535, 13536, 13561, 13563, 13565, 13613, 13615, 13616, 13631, 13635, 13636, 13651, 13653, 13656, 15135, 15136, 15153, 15163, 15165, 15313, 15315, 15316, 15351, 15353, 15356, 15361, 15363, 15365, 15613, 15615, 15616, 15631, 15635, 15636, 15651, 15653, 15656, 16135, 16136, 16153, 16156, 16165, 16313, 16315, 16316, 16351, 16353, 16356, 16361, 16363, 16365, 16513, 16515, 16516, 16531, 16535, 16536, 16561, 16563, 16565, 31315, 31316, 31351, 31356, 31361, 31365, 31513, 31515, 31516, 31531, 31535, 31536, 31561, 31563, 31565, 31613, 31615, 31631, 31635, 31636, 31651, 31653, 31656, 35131, 35135, 35136, 35151, 35153, 35156, 35161, 35163, 35165, 35315, 35316, 35351, 35356, 35361, 35365, 35613, 35615, 35616, 35631, 35635, 35636, 35651, 35653, 35656, 36131, 36135, 36136, 36151, 36153, 36156, 36163, 36165, 36315, 36316, 36351, 36356, 36361, 36365, 36513, 36515, 36516, 36531, 36535, 36536, 36561, 36563, 36565, 51313, 51315, 51316, 51351, 51353, 51356, 51361, 51363, 51365, 51513, 51516, 51531, 51536, 51561, 51563, 51613, 51615, 51616, 51631, 51635, 51636, 51651, 51653, 51656, 53131, 53135, 53136, 53151, 53153, 53156, 53161, 53163, 53165, 53513, 53516, 53531, 53536, 53561, 53563, 53613, 53615, 53616, 53631, 53635, 53636, 53651, 53653, 53656, 56131, 56135, 56136, 56151, 56153, 56156, 56161, 56163, 56165, 56313, 56315, 56316, 56351, 56353, 56356, 56361, 56363, 56365, 56513, 56516, 56531, 56536, 56561, 56563, 61313, 61315, 61316, 61351, 61353, 61356, 61361, 61363, 61365, 61513, 61515, 61516, 61531, 61535, 61536, 61561, 61563, 61565, 61615, 61631, 61635, 61651, 61653, 63131, 63135, 63136, 63151, 63153, 63156, 63161, 63163, 63165, 63513, 63515, 63516, 63531, 63535, 63536, 63561, 63563, 63565, 63613, 63615, 63631, 63635, 63651, 63653, 65131, 65135, 65136, 65151, 65153, 65156, 65161, 65163, 65165, 65313, 65315, 65316, 65351, 65353, 65356, 65361, 65363, 65365, 65613, 65615, 65631, 65635, 65651, 65653, 56565, 51515]); //#24236 + $1.rows = $f(($1.rows * 6) + 1); //#24239 + $1.columns = $1.columns + 6; //#24240 + $k[$j++] = Infinity; //#24241 + for (var _3C = 0, _3D = $1.rows * $1.columns; _3C < _3D; _3C++) { //#24241 + $k[$j++] = -1; //#24241 + } //#24241 + $1.pixs = $a(); //#24241 + $1.qmv = function() { + var _3G = $k[--$j]; //#24242 + var _3H = $k[--$j]; //#24242 + $k[$j++] = $f(_3H + (_3G * $1.columns)); //#24242 + }; //#24242 + for (var _3K = 0, _3J = $1.columns - 1; _3K <= _3J; _3K += 1) { //#24251 + $1.i = _3K; //#24244 + for (var _3N = 0, _3M = $f($1.rows - 1); _3N <= _3M; _3N += 6) { //#24248 + $1.j = _3N; //#24246 + if ($1.i >= 5) { //#24247 + $k[$j++] = $1.pixs; //#24247 + $k[$j++] = $1.i; //#24247 + $k[$j++] = $1.j; //#24247 + $1.qmv(); //#24247 + var _3T = $k[--$j]; //#24247 + $put($k[--$j], _3T, ($1.i % 2) * 9); //#24247 + } //#24247 + } //#24247 + $k[$j++] = $1.pixs; //#24249 + $k[$j++] = $1.i; //#24249 + $k[$j++] = 0; //#24249 + $1.qmv(); //#24249 + var _3X = $k[--$j]; //#24249 + $put($k[--$j], _3X, 9); //#24249 + $k[$j++] = $1.pixs; //#24250 + $k[$j++] = $1.i; //#24250 + $k[$j++] = $f($1.rows - 1); //#24250 + $1.qmv(); //#24250 + var _3c = $k[--$j]; //#24250 + $put($k[--$j], _3c, 9); //#24250 + } //#24250 + for (var _3g = 1, _3f = $f($1.rows - 2); _3g <= _3f; _3g += 1) { //#24264 + $1.i = _3g; //#24253 + for (var _3j = 3, _3i = $1.columns - 1; _3j <= _3i; _3j += 16) { //#24257 + $1.j = _3j; //#24255 + $k[$j++] = $1.pixs; //#24256 + $k[$j++] = $1.j; //#24256 + $k[$j++] = $1.i; //#24256 + $1.qmv(); //#24256 + var _3o = $k[--$j]; //#24256 + $put($k[--$j], _3o, (1 - ($1.i % 2)) * 9); //#24256 + } //#24256 + $k[$j++] = $1.pixs; //#24258 + $k[$j++] = 0; //#24258 + $k[$j++] = $1.i; //#24258 + $1.qmv(); //#24258 + var _3s = $k[--$j]; //#24258 + $put($k[--$j], _3s, 9); //#24258 + $k[$j++] = $1.pixs; //#24259 + $k[$j++] = 1; //#24259 + $k[$j++] = $1.i; //#24259 + $1.qmv(); //#24259 + var _3x = $k[--$j]; //#24259 + $put($k[--$j], _3x, (1 - ($1.i % 2)) * 9); //#24259 + $k[$j++] = $1.pixs; //#24260 + $k[$j++] = 2; //#24260 + $k[$j++] = $1.i; //#24260 + $1.qmv(); //#24260 + var _41 = $k[--$j]; //#24260 + $put($k[--$j], _41, 0); //#24260 + $k[$j++] = $1.pixs; //#24261 + $k[$j++] = 3; //#24261 + $k[$j++] = $1.i; //#24261 + $1.qmv(); //#24261 + var _45 = $k[--$j]; //#24261 + $put($k[--$j], _45, 9); //#24261 + $k[$j++] = $1.pixs; //#24262 + $k[$j++] = 4; //#24262 + $k[$j++] = $1.i; //#24262 + $1.qmv(); //#24262 + var _49 = $k[--$j]; //#24262 + $put($k[--$j], _49, 0); //#24262 + $k[$j++] = $1.pixs; //#24263 + $k[$j++] = $1.columns - 1; //#24263 + $k[$j++] = $1.i; //#24263 + $1.qmv(); //#24263 + var _4E = $k[--$j]; //#24263 + $put($k[--$j], _4E, 9); //#24263 + } //#24263 + $1.i = (~~($1.rows / 2)) - 5; //#24267 + $k[$j++] = Infinity; //#24271 + var _4L = $cvrs($s(5), $get($1.dccu, $1.dcc), 10); //#24269 + for (var _4M = 0, _4N = _4L.length; _4M < _4N; _4M++) { //#24269 + $k[$j++] = $get(_4L, _4M) - 48; //#24269 + } //#24269 + var _4T = $cvrs($s(5), $get($1.dccl, $1.dcc), 10); //#24271 + $k[$j++] = 0; //#24271 + for (var _4U = 0, _4V = _4T.length; _4U < _4V; _4U++) { //#24271 + $k[$j++] = $get(_4T, _4U) - 48; //#24271 + } //#24271 + var _4X = $a(); //#24271 + for (var _4Y = 0, _4Z = _4X.length; _4Y < _4Z; _4Y++) { //#24275 + $k[$j++] = $get(_4X, _4Y); //#24273 + $k[$j++] = $1.pixs; //#24273 + $k[$j++] = 2; //#24273 + $k[$j++] = $1.i; //#24273 + $1.qmv(); //#24273 + var _4d = $k[--$j]; //#24273 + var _4e = $k[--$j]; //#24273 + $put(_4e, _4d, $k[--$j]); //#24273 + $1.i = $1.i + 1; //#24274 + } //#24274 + $k[$j++] = Infinity; //#24288 + $k[$j++] = $1.start; //#24281 + $k[$j++] = $1.mcc; //#24281 + $aload($1.ecws); //#24281 + $k[$j++] = $1.tcc; //#24285 + $k[$j++] = 283; //#24285 + $k[$j++] = $1.acc; //#24285 + $aload($1.scr); //#24285 + $aload($1.dcws); //#24286 + for (var _4p = 0, _4q = $1.pads; _4p < _4q; _4p++) { //#24287 + $k[$j++] = 284; //#24287 + } //#24287 + $k[$j++] = $1.qcc; //#24288 + $1.tileseq = $a(); //#24288 + $1.x = 5; //#24291 + $1.y = 1; //#24291 + var _4t = $1.tileseq; //#24292 + for (var _4u = 0, _4v = _4t.length; _4u < _4v; _4u++) { //#24305 + var _50 = $cvrs($s(5), $get($1.tiles, $get(_4t, _4u)), 10); //#24293 + for (var _51 = 0, _52 = _50.length; _51 < _52; _51++) { //#24296 + $k[$j++] = $get(_50, _51); //#24294 + $k[$j++] = $1.pixs; //#24294 + $k[$j++] = $1.x; //#24294 + $k[$j++] = $1.y; //#24294 + $1.qmv(); //#24294 + var _57 = $k[--$j]; //#24294 + var _58 = $k[--$j]; //#24294 + $put(_58, _57, $f($k[--$j] - 48)); //#24294 + $1.y = $1.y + 1; //#24295 + } //#24295 + if ($1.y != $f($1.rows - 1)) { //#24302 + $1.y = $1.y + 1; //#24298 + } else { //#24302 + $1.x = $1.x + 1; //#24300 + $1.y = 1; //#24300 + $k[$j++] = $1.pixs; //#24301 + $k[$j++] = $1.x; //#24301 + $k[$j++] = $1.y; //#24301 + $1.qmv(); //#24301 + var _5I = $k[--$j]; //#24301 + if ($get($k[--$j], _5I) != -1) { //#24303 + $1.x = $1.x + 1; //#24302 + } //#24302 + } //#24302 + } //#24302 + var _5R = new Map([ + [0, "00000000"], + [9, "000000FF"], + [1, "FF000000"], + [3, "00FF0000"], + [5, "0000FF00"], + [6, "7F00FF00"] + ]); //#24321 + var _5T = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", $1.columns], + ["pixy", $1.rows], + ["height", ($1.rows / 72) * 2], + ["width", ($1.columns / 72) * 2], + ["colormap", _5R], + ["opt", $1.options] + ]); //#24323 + $k[$j++] = _5T; //#24326 + if (!$1.dontdraw) { //#24326 + $0.renmatrix(); //#24326 + } //#24326 + }; + $0.jabcode = function() { + var $1 = {}; //#24356 + $1.options = $k[--$j]; //#24358 + $1.barcode = $k[--$j]; //#24359 + $1.dontdraw = false; //#24361 + $1.rows = -1; //#24362 + $1.columns = -1; //#24363 + $1.slave = false; //#24364 + $1.colors = 16; //#24365 + $1.eclevel = 6; //#24366 + $1.raw = false; //#24367 + $1.parse = false; //#24368 + $1.parsefnc = false; //#24369 + $1.mask = -1; //#24370 + $forall($1.options, function() { //#24381 + var _3 = $k[--$j]; //#24381 + $1[$k[--$j]] = _3; //#24381 + }); //#24381 + $1.rows = ~~$1.rows; //#24383 + $1.columns = ~~$1.columns; //#24384 + $1.colors = ~~$1.colors; //#24385 + $1.eclevel = ~~$1.eclevel; //#24386 + $1.mask = ~~$1.mask; //#24387 + $1.databpm = ~~(Math.round(Math.log($1.colors) / Math.log(2))); //#24389 + var _B = $1.colors; //#24390 + $k[$j++] = 'metabpm'; //#24390 + $k[$j++] = _B; //#24390 + if (_B > 8) { //#24390 + $j--; //#24390 + $k[$j++] = 8; //#24390 + } //#24390 + var _C = $k[--$j]; //#24390 + $1[$k[--$j]] = ~~(Math.round(Math.log(_C) / Math.log(2))); //#24390 + $1.fn1 = -1; //#24393 + var _H = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["FNC1", $1.fn1] + ]); //#24397 + $1.fncvals = _H; //#24398 + $k[$j++] = 'msg'; //#24399 + $k[$j++] = $1.barcode; //#24399 + $k[$j++] = $1.fncvals; //#24399 + $0.parseinput(); //#24399 + var _K = $k[--$j]; //#24399 + $1[$k[--$j]] = _K; //#24399 + $1.msglen = $1.msg.length; //#24400 + $1.addtobits = function() { + var _N = $k[--$j]; //#24421 + $puti($1.bits, $1.j, _N); //#24421 + $1.j = _N.length + $1.j; //#24422 + }; //#24423 + $1.tofixedbits = function() { + var _S = $strcpy($s(13), "0000000000000"); //#24426 + var _T = $k[--$j]; //#24426 + var _W = $cvrs($s(13), $k[--$j], 2); //#24426 + $puti(_S, $f(_T - _W.length), _W); //#24427 + $k[$j++] = $geti(_S, 0, _T); //#24428 + }; //#24429 + var _Z = ($1.msglen <= 15) ? 4 : 17; //#24432 + $1.bits = $s(((7 + _Z) + ($1.msglen * 8)) + 12); //#24432 + $1.j = 0; //#24433 + $k[$j++] = 31; //#24434 + $k[$j++] = 5; //#24434 + $1.tofixedbits(); //#24434 + $1.addtobits(); //#24434 + $k[$j++] = "00"; //#24435 + $1.addtobits(); //#24435 + if ($1.msglen <= 15) { //#24440 + $k[$j++] = $1.msglen; //#24437 + $k[$j++] = 4; //#24437 + $1.tofixedbits(); //#24437 + $1.addtobits(); //#24437 + } else { //#24440 + $k[$j++] = "0000"; //#24439 + $1.addtobits(); //#24439 + $k[$j++] = $1.msglen - 16; //#24440 + $k[$j++] = 13; //#24440 + $1.tofixedbits(); //#24440 + $1.addtobits(); //#24440 + } //#24440 + for (var _h = 0, _g = $1.msglen - 1; _h <= _g; _h += 1) { //#24444 + $k[$j++] = $get($1.msg, _h); //#24443 + $k[$j++] = 8; //#24443 + $1.tofixedbits(); //#24443 + $1.addtobits(); //#24443 + } //#24443 + $k[$j++] = 28; //#24445 + $k[$j++] = 5; //#24445 + $1.tofixedbits(); //#24445 + $1.addtobits(); //#24445 + $k[$j++] = 31; //#24446 + $k[$j++] = 5; //#24446 + $1.tofixedbits(); //#24446 + $1.addtobits(); //#24446 + $k[$j++] = "11"; //#24447 + $1.addtobits(); //#24447 + $1.diffside = 21; //#24450 + $1.sameshape = false; //#24451 + $1.sameecc = false; //#24452 + $1.hasslaves = false; //#24453 + $1.metrics = function() { + $1.mc = $k[--$j]; //#24457 + $1.mr = $k[--$j]; //#24457 + var _m = $1.mc; //#24458 + var _n = $1.mr; //#24458 + var _o = $1.mc; //#24459 + var _p = $1.mr; //#24459 + var _q = $1.colors; //#24461 + var _r = 64; //#24461 + if (64 > _q) { //#24461 + var _ = _q; //#24461 + _q = _r; //#24461 + _r = _; //#24461 + } //#24461 + var _t = $1.slave ? 7 : 17; //#24462 + $k[$j++] = _m * _n; //#24490 + $k[$j++] = ((((~~($f(_o - 25) / 16)) + 2) * ((~~($f(_p - 25) / 16)) + 2)) - 4) * 7; //#24490 + $k[$j++] = _r * 2; //#24490 + $k[$j++] = _t * 4; //#24490 + if (!$1.slave) { //#24489 + var _x = $eq($1.mr, $1.mc) ? 0 : 1; //#24466 + $1.metass = _x; //#24466 + var _y = $1.mr; //#24467 + var _z = $1.mc; //#24467 + if ($lt(_y, _z)) { //#24467 + var _ = _z; //#24467 + _z = _y; //#24467 + _y = _; //#24467 + } //#24467 + $1.metavf = $get($a([0, 1, 2, 2, 3, 3, 3, 3]), ~~($f(_y - 21) / 16)); //#24468 + $k[$j++] = 'metavlen'; //#24469 + if ($1.metass == 0) { //#24469 + $k[$j++] = $a([2, 2, 3, 4]); //#24469 + } else { //#24469 + $k[$j++] = $a([4, 6, 8, 10]); //#24469 + } //#24469 + var _17 = $get($k[--$j], $1.metavf); //#24469 + $1[$k[--$j]] = _17; //#24469 + $1.metaelen = $f(($1.metavf * 2) + 10); //#24470 + $k[$j++] = $f($f(7 + $1.metavlen) + $1.metaelen); //#24473 + if ($1.hasslaves) { //#24473 + var _1D = $k[--$j]; //#24473 + $k[$j++] = $f(_1D + 4); //#24473 + } //#24473 + var _1G = ~~(Math.ceil(($k[--$j] * 2) / $1.metabpm)); //#24476 + $1.nummetabits = $f((_1G * $1.metabpm) + 6); //#24476 + $k[$j++] = _1G + 6; //#24477 + } else { //#24489 + $k[$j++] = 3; //#24480 + if (!$1.sameshape) { //#24480 + var _1J = $k[--$j]; //#24480 + $k[$j++] = $f(_1J + 5); //#24480 + } //#24480 + if ($1.hasslaves) { //#24481 + var _1L = $k[--$j]; //#24481 + $k[$j++] = $f(_1L + 3); //#24481 + } //#24481 + if (!$1.sameecc) { //#24486 + var _1N = $1.mr; //#24483 + var _1O = $1.mc; //#24483 + if ($lt(_1N, _1O)) { //#24483 + var _ = _1O; //#24483 + _1O = _1N; //#24483 + _1N = _; //#24483 + } //#24483 + var _1R = $k[--$j]; //#24485 + $k[$j++] = $f(_1R + $get($a([10, 12, 14, 14, 16, 16, 16, 16]), ~~($f(_1N - 21) / 16))); //#24485 + } //#24485 + var _1U = ~~(Math.ceil(($k[--$j] * 2) / $1.metabpm)); //#24489 + $1.nummetabits = _1U * $1.metabpm; //#24489 + $k[$j++] = _1U; //#24489 + } //#24489 + var _1W = $k[--$j]; //#24492 + $1.nummetamodules = _1W; //#24492 + var _1X = $k[--$j]; //#24493 + var _1Y = $k[--$j]; //#24493 + var _1Z = $k[--$j]; //#24493 + $1.numdatamodules = $f($k[--$j] - ($f(_1Z + ($f(_1Y + $f(_1X + _1W)))))); //#24493 + $1.numdatabits = $1.numdatamodules * $1.databpm; //#24494 + }; //#24495 + $1.coderate = $get($a([0.67, 0.63, 0.57, 0.55, 0.5, 0.43, 0.34, 0.25, 0.2, 0.17, 0.14]), $1.eclevel); //#24498 + $1.grosslen = ~~Math.ceil($1.bits.length / $1.coderate); //#24499 + $1.snapsize = function() { + var _1j = (~~Math.ceil($k[--$j])) - 18; //#24500 + $k[$j++] = _1j; //#24500 + if (_1j < 0) { //#24500 + $j--; //#24500 + $k[$j++] = 0; //#24500 + } //#24500 + var _1k = $k[--$j]; //#24500 + $k[$j++] = ((~~(_1k / 4)) * 4) + 21; //#24500 + }; //#24500 + if (($1.rows == -1) && ($1.columns == -1)) { //#24529 + $k[$j++] = 'size'; //#24503 + $k[$j++] = Math.sqrt($1.grosslen); //#24503 + $1.snapsize(); //#24503 + var _1o = $k[--$j]; //#24503 + $1[$k[--$j]] = _1o; //#24503 + for (;;) { //#24508 + $k[$j++] = $1.size; //#24505 + $k[$j++] = $1.size; //#24505 + $1.metrics(); //#24505 + if ($1.grosslen <= $1.numdatabits) { //#24506 + break; //#24506 + } //#24506 + $1.size = $f($1.size + 4); //#24507 + } //#24507 + $1.rows = $1.size; //#24509 + $1.columns = $1.size; //#24510 + } else { //#24529 + if (($1.columns == -1) && ($1.rows != -1)) { //#24519 + $k[$j++] = 'columns'; //#24513 + $k[$j++] = $1.grosslen / $1.rows; //#24513 + $1.snapsize(); //#24513 + var _21 = $k[--$j]; //#24513 + $1[$k[--$j]] = _21; //#24513 + for (;;) { //#24518 + $k[$j++] = $1.rows; //#24515 + $k[$j++] = $1.columns; //#24515 + $1.metrics(); //#24515 + if ($1.grosslen <= $1.numdatabits) { //#24516 + break; //#24516 + } //#24516 + $1.columns = $f($1.columns + 4); //#24517 + } //#24517 + } //#24517 + if (($1.rows == -1) && ($1.columns != -1)) { //#24527 + $k[$j++] = 'rows'; //#24521 + $k[$j++] = $1.grosslen / $1.columns; //#24521 + $1.snapsize(); //#24521 + var _2C = $k[--$j]; //#24521 + $1[$k[--$j]] = _2C; //#24521 + for (;;) { //#24526 + $k[$j++] = $1.rows; //#24523 + $k[$j++] = $1.columns; //#24523 + $1.metrics(); //#24523 + if ($1.grosslen <= $1.numdatabits) { //#24524 + break; //#24524 + } //#24524 + $1.rows = $f($1.rows + 4); //#24525 + } //#24525 + } //#24525 + if (($1.rows != -1) && ($1.columns != -1)) { //#24530 + $k[$j++] = $1.rows; //#24529 + $k[$j++] = $1.columns; //#24529 + $1.metrics(); //#24529 + } //#24529 + } //#24529 + $1.C = $1.numdatabits; //#24532 + $1.cols = $1.columns; //#24533 + if (($1.rows > 145) || ($1.cols > 145)) { //#24538 + $k[$j++] = 'bwipp.jabcodeNoValidSymbol'; //#24537 + $k[$j++] = "No valid symbol available"; //#24537 + $0.raiseerror(); //#24537 + } //#24537 + $1.min = $1.C; //#24541 + for (var _2S = 3; _2S <= 8; _2S += 1) { //#24553 + $1.i = _2S; //#24543 + for (var _2U = $1.i + 1; _2U <= 9; _2U += 1) { //#24552 + $1.j = _2U; //#24545 + $1.dist = (((~~($1.C / $1.j)) * $1.j) - ((~~($1.C / $1.j)) * $1.i)) - $1.bits.length; //#24546 + if (($1.dist < $1.min) && ($1.dist >= 0)) { //#24551 + $1.datawc = $1.i; //#24548 + $1.datawr = $1.j; //#24549 + $1.min = $1.dist; //#24550 + } //#24550 + } //#24550 + } //#24550 + $1.tmpbits = $s(((~~($1.C / $1.datawr)) * $1.datawr) - ((~~($1.C / $1.datawr)) * $1.datawc)); //#24556 + $puti($1.tmpbits, 0, $1.bits); //#24557 + for (var _2u = $1.bits.length, _2t = $1.tmpbits.length - 1; _2u <= _2t; _2u += 1) { //#24561 + var _2w = $get($1.tmpbits, _2u - 1); //#24559 + $k[$j++] = _2u; //#24559 + $k[$j++] = _2w; //#24559 + if ((_2w % 2) == 0) { //#24559 + var _2x = $k[--$j]; //#24559 + $k[$j++] = $f(_2x + 1); //#24559 + } else { //#24559 + var _2y = $k[--$j]; //#24559 + $k[$j++] = $f(_2y - 1); //#24559 + } //#24559 + var _30 = $k[--$j]; //#24560 + $put($1.tmpbits, $k[--$j], _30); //#24560 + } //#24560 + $1.bits = $1.tmpbits; //#24562 + $1.m0 = 22609 + 1; //#24566 + $1.m1 = 62509 - 65536; //#24566 + $1.m2 = 19605; //#24566 + $1.m3 = 32557; //#24566 + $1.lcg64_temper = function() { + $1.p00 = $1.m0 * $1.s0; //#24572 + $1.p01 = $1.m0 * $1.s1; //#24572 + $1.p02 = $1.m0 * $1.s2; //#24572 + $1.p03 = $1.m0 * $1.s3; //#24572 + $1.p10 = $1.m1 * $1.s0; //#24573 + $1.p11 = $1.m1 * $1.s1; //#24573 + $1.p12 = $1.m1 * $1.s2; //#24573 + $1.p13 = $1.m1 * $1.s3; //#24573 + $1.p20 = $1.m2 * $1.s0; //#24574 + $1.p21 = $1.m2 * $1.s1; //#24574 + $1.p22 = $1.m2 * $1.s2; //#24574 + $1.p23 = $1.m2 * $1.s3; //#24574 + $1.p30 = $1.m3 * $1.s0; //#24575 + $1.p31 = $1.m3 * $1.s1; //#24575 + $1.p32 = $1.m3 * $1.s2; //#24575 + $1.p33 = $1.m3 * $1.s3; //#24575 + $1.s3 = ($1.p33 % 65536) + 1; //#24577 + $1.s2 = (($1.p32 % 65536) + (~~($1.p33 / 65536))) + ($1.p23 % 65536); //#24579 + $1.s1 = ((($1.p31 % 65536) + (~~($1.p32 / 65536))) + (($1.p22 % 65536) + (~~($1.p23 / 65536)))) + ($1.p13 % 65536); //#24582 + $1.s0 = (((($1.p30 % 65536) + (~~($1.p31 / 65536))) + (($1.p21 % 65536) + (~~($1.p22 / 65536)))) + (($1.p12 % 65536) + (~~($1.p13 / 65536)))) + ($1.p03 % 65536); //#24586 + $1.s3 = $1.s3 + 65536; //#24589 + $1.s2 = $1.s2 + 65535; //#24590 + $1.s1 = $1.s1 + 65535; //#24591 + $1.s0 = $1.s0 + 65535; //#24592 + $1.s2 = (~~($1.s3 / 65536)) + $1.s2; //#24595 + $1.s3 = $1.s3 % 65536; //#24595 + $1.s1 = (~~($1.s2 / 65536)) + $1.s1; //#24596 + $1.s2 = $1.s2 % 65536; //#24596 + $1.s0 = (~~($1.s1 / 65536)) + $1.s0; //#24597 + $1.s1 = $1.s1 % 65536; //#24597 + $1.s0 = $1.s0 % 65536; //#24598 + var _45 = (((($1.s0 - 32768) * 65536) + $1.s1) ^ 2147483648) & 4294967295; //#24603 + var _46 = _45 ^ (_45 >>> 11); //#24604 + var _47 = _46 ^ ((_46 << 7) & -1658038656); //#24605 + var _48 = (_47 ^ ((_47 << 15) & -272236544)) & 4294967295; //#24607 + $k[$j++] = _48 ^ (_48 >>> 18); //#24607 + }; //#24609 + $1.createMatrixA = function() { + $k[$j++] = 'nb_pcb'; //#24613 + if ($1.wr < 4) { //#24613 + $k[$j++] = ~~($1.Pg_sub_block / 2); //#24613 + } else { //#24613 + $k[$j++] = (~~($1.Pg_sub_block / $1.wr)) * $1.wc; //#24613 + } //#24613 + var _4E = $k[--$j]; //#24613 + $1[$k[--$j]] = _4E; //#24613 + $1.offset = ~~Math.ceil($1.Pg_sub_block / 32); //#24614 + $1.effwidth = $1.offset * 32; //#24615 + $1.matrixA = $a($1.offset * $1.nb_pcb); //#24616 + for (var _4O = 0, _4N = ($1.offset * $1.nb_pcb) - 1; _4O <= _4N; _4O += 1) { //#24617 + $put($1.matrixA, _4O, 0); //#24617 + } //#24617 + $1.permutation = $a($1.Pg_sub_block); //#24618 + for (var _4U = 0, _4T = $1.Pg_sub_block - 1; _4U <= _4T; _4U += 1) { //#24619 + $put($1.permutation, _4U, _4U); //#24619 + } //#24619 + for (var _4Z = 0, _4Y = (~~($1.Pg_sub_block / $1.wr)) - 1; _4Z <= _4Y; _4Z += 1) { //#24628 + $1.i = _4Z; //#24622 + for (var _4c = 0, _4b = $f($1.wr - 1); _4c <= _4b; _4c += 1) { //#24627 + $1.j = _4c; //#24624 + var _4d = $1.matrixA; //#24625 + var _4e = $1.i; //#24625 + var _4f = $1.effwidth; //#24625 + var _4g = $1.wr; //#24625 + var _4h = $1.j; //#24625 + var _4n = $f(31 - (($f(($1.i * $f($1.effwidth + $1.wr)) + $1.j)) % 32)); //#24626 + $put(_4d, ~~(($f((_4e * $f(_4f + _4g)) + _4h)) / 32), $get(_4d, ~~(($f((_4e * $f(_4f + _4g)) + _4h)) / 32)) | ((_4n < 0 ? 1 >>> -_4n : 1 << _4n))); //#24626 + } //#24626 + } //#24626 + $1.s0 = 0; //#24631 + $1.s1 = 0; //#24631 + $1.s2 = 11; //#24631 + $1.s3 = 64569; //#24631 + for (var _4q = 1, _4p = $f($1.wc - 1); _4q <= _4p; _4q += 1) { //#24654 + $1.i = _4q; //#24633 + $1.off_index = (~~($1.Pg_sub_block / $1.wr)) * $1.i; //#24634 + for (var _4w = 0, _4v = $1.Pg_sub_block - 1; _4w <= _4v; _4w += 1) { //#24653 + $1.j = _4w; //#24636 + $1.lcg64_temper(); //#24637 + var _4x = $k[--$j]; //#24638 + $k[$j++] = _4x; //#24638 + if (_4x < 0) { //#24638 + var _4y = $k[--$j]; //#24638 + $k[$j++] = $f((_4y ^ 2147483648) + 2147483648); //#24638 + } //#24638 + $1.pos = ~~(($k[--$j] / 4294967296) * ($1.Pg_sub_block - $1.j)); //#24640 + for (var _55 = 0, _54 = (~~($1.Pg_sub_block / $1.wr)) - 1; _55 <= _54; _55 += 1) { //#24649 + $1.k = _55; //#24642 + var _56 = $1.matrixA; //#24643 + var _57 = $1.off_index; //#24643 + var _58 = $1.k; //#24643 + var _59 = $1.offset; //#24643 + var _5A = $1.j; //#24643 + var _5I = $get($1.matrixA, (~~($get($1.permutation, $1.pos) / 32)) + ($1.k * $1.offset)); //#24645 + var _5M = -($f(31 - ($get($1.permutation, $1.pos) % 32))); //#24646 + var _5O = 31 - ($1.j % 32); //#24647 + $put(_56, ((_57 + _58) * _59) + (~~(_5A / 32)), $get(_56, ((_57 + _58) * _59) + (~~(_5A / 32))) | ((_5O < 0 ? (((_5M < 0 ? _5I >>> -_5M : _5I << _5M)) & 1) >>> -_5O : (((_5M < 0 ? _5I >>> -_5M : _5I << _5M)) & 1) << _5O))); //#24648 + } //#24648 + var _5R = $1.permutation; //#24650 + var _5S = $1.Pg_sub_block; //#24650 + var _5T = $1.j; //#24650 + $put(_5R, (_5S - 1) - _5T, $get($1.permutation, $1.pos)); //#24652 + $put($1.permutation, $1.pos, $get(_5R, (_5S - 1) - _5T)); //#24652 + } //#24652 + } //#24652 + }; //#24656 + $1.createMetadataMatrixA = function() { + $1.nb_pcb = ~~($1.Pg_sub_block / 2); //#24660 + $1.offset = ~~Math.ceil($1.Pg_sub_block / 32); //#24661 + $1.matrixA = $a($1.offset * $1.nb_pcb); //#24662 + for (var _5g = 0, _5f = ($1.offset * $1.nb_pcb) - 1; _5g <= _5f; _5g += 1) { //#24663 + $put($1.matrixA, _5g, 0); //#24663 + } //#24663 + $1.permutation = $a($1.Pg_sub_block); //#24664 + for (var _5m = 0, _5l = $1.Pg_sub_block - 1; _5m <= _5l; _5m += 1) { //#24665 + $put($1.permutation, _5m, _5m); //#24665 + } //#24665 + $1.s0 = 0; //#24668 + $1.s1 = 0; //#24668 + $1.s2 = 0; //#24668 + $1.s3 = 38545; //#24668 + $1.nb_once = ~~((~~($f((($1.nb_pcb / $1.wc) * $1.Pg_sub_block) + 3))) / $1.nb_pcb); //#24669 + for (var _5u = 0, _5t = $1.nb_pcb - 1; _5u <= _5t; _5u += 1) { //#24684 + $1.i = _5u; //#24671 + for (var _5x = 0, _5w = $1.nb_once - 1; _5x <= _5w; _5x += 1) { //#24683 + $1.j = _5x; //#24673 + $1.lcg64_temper(); //#24674 + var _5y = $k[--$j]; //#24675 + $k[$j++] = _5y; //#24675 + if (_5y < 0) { //#24675 + var _5z = $k[--$j]; //#24675 + $k[$j++] = $f((_5z ^ 2147483648) + 2147483648); //#24675 + } //#24675 + $1.pos = ~~(($k[--$j] / 4294967296) * ($1.Pg_sub_block - $1.j)); //#24677 + var _63 = $1.matrixA; //#24678 + var _64 = $1.i; //#24678 + var _65 = $1.offset; //#24678 + var _68 = $get($1.permutation, $1.pos); //#24678 + var _6D = $f(31 - ($get($1.permutation, $1.pos) % 32)); //#24679 + $put(_63, (_64 * _65) + (~~(_68 / 32)), $get(_63, (_64 * _65) + (~~(_68 / 32))) | ((_6D < 0 ? 1 >>> -_6D : 1 << _6D))); //#24679 + var _6G = $1.permutation; //#24680 + var _6H = $1.Pg_sub_block; //#24680 + var _6I = $1.j; //#24680 + $put(_6G, (_6H - 1) - _6I, $get($1.permutation, $1.pos)); //#24682 + $put($1.permutation, $1.pos, $get(_6G, (_6H - 1) - _6I)); //#24682 + } //#24682 + } //#24682 + }; //#24686 + $1.GaussJordan = function() { + $k[$j++] = 'nb_pcb'; //#24690 + if ($1.wr < 4) { //#24690 + $k[$j++] = ~~($1.Pg_sub_block / 2); //#24690 + } else { //#24690 + $k[$j++] = (~~($1.Pg_sub_block / $1.wr)) * $1.wc; //#24690 + } //#24690 + var _6S = $k[--$j]; //#24690 + $1[$k[--$j]] = _6S; //#24690 + $1.offset = ~~Math.ceil($1.Pg_sub_block / 32); //#24691 + var _6V = $1.matrixA; //#24692 + $1.matrixH = $arrcpy($a(_6V.length), _6V); //#24692 + $k[$j++] = Infinity; //#24693 + for (var _6Z = 0, _6a = $1.Pg_sub_block; _6Z < _6a; _6Z++) { //#24693 + $k[$j++] = 0; //#24693 + } //#24693 + $1.column_arrangement = $a(); //#24693 + $k[$j++] = Infinity; //#24694 + for (var _6d = 0, _6e = $1.Pg_sub_block; _6d < _6e; _6d++) { //#24694 + $k[$j++] = false; //#24694 + } //#24694 + $1.processed_column = $a(); //#24694 + $k[$j++] = Infinity; //#24695 + for (var _6h = 0, _6i = $1.nb_pcb; _6h < _6i; _6h++) { //#24695 + $k[$j++] = 0; //#24695 + } //#24695 + $1.zero_lines_nb = $a(); //#24695 + $k[$j++] = Infinity; //#24696 + for (var _6l = 0, _6m = $1.Pg_sub_block * 2; _6l < _6m; _6l++) { //#24696 + $k[$j++] = 0; //#24696 + } //#24696 + $1.swap_col = $a(); //#24696 + $1.zero_lines = 0; //#24697 + $1.loop0 = 0; //#24699 + for (var _6q = 0, _6p = $1.nb_pcb - 1; _6q <= _6p; _6q += 1) { //#24737 + $1.i = _6q; //#24701 + $1.pivot_column = $1.Pg_sub_block + 1; //#24702 + for (var _6u = 0, _6t = $1.Pg_sub_block - 1; _6u <= _6t; _6u += 1) { //#24710 + $1.j = _6u; //#24704 + var _6z = $get($1.matrixH, ~~(((($1.offset * 32) * $1.i) + $1.j) / 32)); //#24705 + var _73 = -(31 - (((($1.offset * 32) * $1.i) + $1.j) % 32)); //#24706 + if ((((_73 < 0 ? _6z >>> -_73 : _6z << _73)) & 1) == 1) { //#24709 + $1.pivot_column = $1.j; //#24707 + break; //#24708 + } //#24708 + } //#24708 + if ($1.pivot_column < $1.Pg_sub_block) { //#24735 + $put($1.processed_column, $1.pivot_column, true); //#24712 + $put($1.column_arrangement, $1.pivot_column, $1.i); //#24713 + if ($1.pivot_column >= $1.nb_pcb) { //#24717 + $put($1.swap_col, $1.loop0 * 2, $1.pivot_column); //#24715 + $1.loop0 = $1.loop0 + 1; //#24716 + } //#24716 + $1.off_index = ~~($1.pivot_column / 32); //#24718 + $1.off_index1 = $1.pivot_column % 32; //#24719 + for (var _7M = 0, _7L = $1.nb_pcb - 1; _7M <= _7L; _7M += 1) { //#24732 + $1.j = _7M; //#24721 + if ($1.i != $1.j) { //#24731 + var _7T = $get($1.matrixH, $1.off_index + ($1.j * $1.offset)); //#24723 + var _7V = -(31 - $1.off_index1); //#24724 + if ((((_7V < 0 ? _7T >>> -_7V : _7T << _7V)) & 1) == 1) { //#24730 + for (var _7Y = 0, _7X = $1.offset - 1; _7Y <= _7X; _7Y += 1) { //#24729 + $1.k = _7Y; //#24726 + var _7Z = $1.matrixH; //#24727 + var _7a = $1.offset; //#24727 + var _7b = $1.j; //#24727 + var _7c = $1.k; //#24727 + $put(_7Z, (_7a * _7b) + _7c, $xo($get(_7Z, (_7a * _7b) + _7c), $get($1.matrixH, ($1.offset * $1.i) + $1.k))); //#24728 + } //#24728 + } //#24728 + } //#24728 + } //#24728 + } else { //#24735 + $put($1.zero_lines_nb, $1.zero_lines, $1.i); //#24734 + $1.zero_lines = $1.zero_lines + 1; //#24735 + } //#24735 + } //#24735 + $1.matrix_rank = $1.nb_pcb - $1.zero_lines; //#24739 + $1.loop2 = 0; //#24740 + for (var _7s = $1.matrix_rank, _7r = $1.nb_pcb - 1; _7s <= _7r; _7s += 1) { //#24760 + $1.i = _7s; //#24742 + if ($get($1.column_arrangement, $1.i) > 0) { //#24759 + for (var _7y = 0, _7x = $1.nb_pcb - 1; _7y <= _7x; _7y += 1) { //#24758 + $1.j = _7y; //#24745 + if ($nt($get($1.processed_column, $1.j))) { //#24757 + $put($1.column_arrangement, $1.j, $get($1.column_arrangement, $1.i)); //#24747 + $put($1.column_arrangement, $1.i, 0); //#24748 + $put($1.processed_column, $1.j, true); //#24749 + $put($1.processed_column, $1.i, false); //#24750 + $put($1.swap_col, $1.loop0 * 2, $1.i); //#24751 + $put($1.swap_col, ($1.loop0 * 2) + 1, $1.j); //#24752 + $put($1.column_arrangement, $1.i, $1.j); //#24753 + $1.loop0 = $1.loop0 + 1; //#24754 + $1.loop2 = $1.loop2 + 1; //#24755 + break; //#24756 + } //#24756 + } //#24756 + } //#24756 + } //#24756 + $1.loop1 = 0; //#24762 + for (var _8Q = 0, _8P = $1.nb_pcb - 1; _8Q <= _8P; _8Q += 1) { //#24771 + $1.kl = _8Q; //#24764 + if ($nt($get($1.processed_column, $1.kl)) && ($1.loop1 < ($1.loop0 - $1.loop2))) { //#24770 + $put($1.column_arrangement, $1.kl, $get($1.column_arrangement, $get($1.swap_col, $1.loop1 * 2))); //#24766 + $put($1.processed_column, $1.kl, true); //#24767 + $put($1.swap_col, ($1.loop1 * 2) + 1, $1.kl); //#24768 + $1.loop1 = $1.loop1 + 1; //#24769 + } //#24769 + } //#24769 + $1.loop1 = 0; //#24773 + for (var _8m = 0, _8l = $1.nb_pcb - 1; _8m <= _8l; _8m += 1) { //#24780 + $1.kl = _8m; //#24775 + if ($nt($get($1.processed_column, $1.kl))) { //#24779 + $put($1.column_arrangement, $1.kl, $get($1.zero_lines_nb, $1.loop1)); //#24777 + $1.loop1 = $1.loop1 + 1; //#24778 + } //#24778 + } //#24778 + for (var _8y = 0, _8x = $1.nb_pcb - 1; _8y <= _8x; _8y += 1) { //#24789 + $1.i = _8y; //#24783 + for (var _91 = 0, _90 = $1.offset - 1; _91 <= _90; _91 += 1) { //#24788 + $1.j = _91; //#24785 + $put($1.matrixA, ($1.i * $1.offset) + $1.j, $get($1.matrixH, $f(($get($1.column_arrangement, $1.i) * $1.offset) + $1.j))); //#24787 + } //#24787 + } //#24787 + $1.tmp = 0; //#24791 + for (var _9F = 0, _9E = $1.loop0 - 1; _9F <= _9E; _9F += 1) { //#24813 + $1.i = _9F; //#24793 + for (var _9I = 0, _9H = $1.nb_pcb - 1; _9I <= _9H; _9I += 1) { //#24812 + $1.j = _9I; //#24795 + var _9P = $get($1.matrixA, (~~($get($1.swap_col, $1.i * 2) / 32)) + ($1.j * $1.offset)); //#24796 + var _9T = -($f(31 - ($get($1.swap_col, $1.i * 2) % 32))); //#24797 + $1.tmp = (((-(((_9T < 0 ? _9P >>> -_9T : _9P << _9T)) & 1)) ^ $1.tmp) & 1) ^ $1.tmp; //#24798 + var _9W = $1.matrixA; //#24799 + var _9Z = $get($1.swap_col, $1.i * 2); //#24799 + var _9a = $1.j; //#24799 + var _9b = $1.offset; //#24799 + var _9j = $get($1.matrixA, (~~($get($1.swap_col, ($1.i * 2) + 1) / 32)) + ($1.j * $1.offset)); //#24801 + var _9n = -($f(31 - ($get($1.swap_col, ($1.i * 2) + 1) % 32))); //#24802 + var _9y = $f(31 - ($get($1.swap_col, $1.i * 2) % 32)); //#24804 + $put(_9W, (~~(_9Z / 32)) + (_9a * _9b), $get(_9W, (~~(_9Z / 32)) + (_9a * _9b)) ^ (((-(((_9n < 0 ? _9j >>> -_9n : _9j << _9n)) & 1)) ^ $get($1.matrixA, (~~($get($1.swap_col, $1.i * 2) / 32)) + ($1.j * $1.offset))) & ((_9y < 0 ? 1 >>> -_9y : 1 << _9y)))); //#24805 + var _9z = $1.matrixA; //#24806 + var _A2 = $get($1.swap_col, ($1.i * 2) + 1); //#24806 + var _A3 = $1.j; //#24806 + var _A4 = $1.offset; //#24806 + var _AH = $f(31 - ($get($1.swap_col, ($1.i * 2) + 1) % 32)); //#24810 + $put(_9z, (~~(_A2 / 32)) + (_A3 * _A4), $get(_9z, (~~(_A2 / 32)) + (_A3 * _A4)) ^ (((-($1.tmp & 1)) ^ $get($1.matrixA, (~~($get($1.swap_col, ($1.i * 2) + 1) / 32)) + ($1.j * $1.offset))) & ((_AH < 0 ? 1 >>> -_AH : 1 << _AH)))); //#24811 + } //#24811 + } //#24811 + }; //#24815 + $1.createGeneratorMatrix = function() { + $1.pn = $1.Pg_sub_block - $1.matrix_rank; //#24819 + $1.offset = ~~Math.ceil($1.pn / 32); //#24820 + $1.effwidth = $1.offset * 32; //#24821 + $1.offset_cap = ~~Math.ceil($1.Pg_sub_block / 32); //#24822 + $1.G = $a($1.offset * $1.Pg_sub_block); //#24823 + for (var _AT = 0, _AS = ($1.offset * $1.Pg_sub_block) - 1; _AT <= _AS; _AT += 1) { //#24826 + $put($1.G, _AT, 0); //#24825 + } //#24825 + for (var _AX = 0, _AW = $1.pn - 1; _AX <= _AW; _AX += 1) { //#24831 + $1.i = _AX; //#24828 + var _AY = $1.G; //#24829 + var _AZ = $1.Pg_sub_block; //#24829 + var _Aa = $1.pn; //#24829 + var _Ab = $1.i; //#24829 + var _Ac = $1.offset; //#24829 + var _Ad = $1.i; //#24829 + var _Ag = 31 - ($1.i % 32); //#24830 + $put(_AY, (((_AZ - _Aa) + _Ab) * _Ac) + (~~(_Ad / 32)), $get(_AY, (((_AZ - _Aa) + _Ab) * _Ac) + (~~(_Ad / 32))) | ((_Ag < 0 ? 1 >>> -_Ag : 1 << _Ag))); //#24830 + } //#24830 + $1.matrix_index = $1.Pg_sub_block - $1.pn; //#24832 + $1.loop0 = 0; //#24833 + for (var _An = 0, _Am = (($1.Pg_sub_block - $1.pn) * $1.effwidth) - 1; _An <= _Am; _An += 1) { //#24850 + $1.i = _An; //#24835 + if ($1.matrix_index >= $1.Pg_sub_block) { //#24839 + $1.loop0 = $1.loop0 + 1; //#24837 + $1.matrix_index = $1.Pg_sub_block - $1.pn; //#24838 + } //#24838 + if (($1.i % $1.effwidth) < $1.pn) { //#24849 + var _Aw = $1.G; //#24841 + var _Ax = $1.i; //#24841 + var _B3 = $get($1.matrixA, (~~($1.matrix_index / 32)) + ($1.offset_cap * $1.loop0)); //#24843 + var _B5 = -(31 - ($1.matrix_index % 32)); //#24844 + var _BA = 31 - ($1.i % 32); //#24846 + $put(_Aw, ~~(_Ax / 32), $get(_Aw, ~~(_Ax / 32)) ^ (((-(((_B5 < 0 ? _B3 >>> -_B5 : _B3 << _B5)) & 1)) ^ $get($1.G, ~~($1.i / 32))) & ((_BA < 0 ? 1 >>> -_BA : 1 << _BA)))); //#24847 + $1.matrix_index = $1.matrix_index + 1; //#24848 + } //#24848 + } //#24848 + }; //#24852 + $1.ldpc = function() { + $1.wr = $k[--$j]; //#24856 + $1.wc = $k[--$j]; //#24857 + $k[$j++] = Infinity; //#24858 + var _BE = $k[--$j]; //#24858 + var _BF = $k[--$j]; //#24858 + $k[$j++] = _BE; //#24858 + $forall(_BF, function() { //#24858 + var _BG = $k[--$j]; //#24858 + $k[$j++] = $f(_BG - 48); //#24858 + }); //#24858 + $1.data = $a(); //#24858 + $1.Pn = $1.data.length; //#24860 + if ($1.wr != -1) { //#24875 + $1.Pg = ~~((Math.ceil((Math.ceil(($1.Pn * $1.wr) / $f($1.wr - $1.wc))) / $1.wr)) * $1.wr); //#24862 + $1.nb_sub_blocks = (~~($1.Pg / 2700)) + 1; //#24863 + $1.Pg_sub_block = (~~((~~($1.Pg / $1.nb_sub_blocks)) / $1.wr)) * $1.wr; //#24864 + $1.Pn_sub_block = ~~(($1.Pg_sub_block * $f($1.wr - $1.wc)) / $1.wr); //#24865 + $1.nb_sub_blocks = ~~($1.Pg / $1.Pg_sub_block); //#24866 + $k[$j++] = 'encoding_iterations'; //#24867 + $k[$j++] = ~~($1.Pg / $1.Pg_sub_block); //#24867 + if (($1.Pn_sub_block * $1.nb_sub_blocks) < $1.Pn) { //#24867 + var _Bg = $k[--$j]; //#24867 + $k[$j++] = $f(_Bg - 1); //#24867 + } //#24867 + var _Bh = $k[--$j]; //#24867 + $1[$k[--$j]] = _Bh; //#24867 + $1.createMatrixA(); //#24868 + } else { //#24875 + $1.Pg = $1.Pn * 2; //#24870 + $1.nb_sub_blocks = 1; //#24871 + $1.Pg_sub_block = $1.Pg; //#24872 + $1.Pn_sub_block = $1.Pn; //#24873 + $1.encoding_iterations = 1; //#24874 + $1.createMetadataMatrixA(); //#24875 + } //#24875 + $1.GaussJordan(); //#24877 + $1.createGeneratorMatrix(); //#24878 + $1.ecc_encoded_data = $a($1.Pg); //#24880 + $1.offset = ~~(Math.ceil(($1.Pg_sub_block - $1.matrix_rank) / 32)); //#24882 + for (var _Bs = 0, _Br = $1.encoding_iterations - 1; _Bs <= _Br; _Bs += 1) { //#24898 + $1.iter = _Bs; //#24884 + for (var _Bv = 0, _Bu = $1.Pg_sub_block - 1; _Bv <= _Bu; _Bv += 1) { //#24897 + $1.i = _Bv; //#24886 + $1.temp = 0; //#24887 + $1.loop0 = 0; //#24888 + $1.offset_index = $1.offset * $1.i; //#24889 + for (var _C3 = $1.iter * $1.Pn_sub_block, _C2 = (($1.iter + 1) * $1.Pn_sub_block) - 1; _C3 <= _C2; _C3 += 1) { //#24895 + var _C9 = $get($1.G, $1.offset_index + (~~($1.loop0 / 32))); //#24892 + var _CB = -(31 - ($1.loop0 % 32)); //#24892 + $1.temp = ($get($1.data, _C3) & (((_CB < 0 ? _C9 >>> -_CB : _C9 << _CB)) & 1)) ^ $1.temp; //#24893 + $1.loop0 = $1.loop0 + 1; //#24894 + } //#24894 + $put($1.ecc_encoded_data, $1.i + ($1.iter * $1.Pg_sub_block), $1.temp); //#24896 + } //#24896 + } //#24896 + if ($1.encoding_iterations != $1.nb_sub_blocks) { //#24922 + $1.start = $1.encoding_iterations * $1.Pn_sub_block; //#24901 + $1.last_index = $1.encoding_iterations * $1.Pg_sub_block; //#24902 + $1.Pg_sub_block = $1.Pg - ($1.encoding_iterations * $1.Pg_sub_block); //#24903 + $1.Pn_sub_block = ~~(($1.Pg_sub_block * $f($1.wr - $1.wc)) / $1.wr); //#24904 + $1.createMatrixA(); //#24905 + $1.GaussJordan(); //#24906 + $1.createGeneratorMatrix(); //#24907 + $1.offset = ~~(Math.ceil(($1.Pg_sub_block - $1.matrix_rank) / 32)); //#24908 + for (var _Ca = 0, _CZ = $1.Pg_sub_block - 1; _Ca <= _CZ; _Ca += 1) { //#24921 + $1.i = _Ca; //#24910 + $1.temp = 0; //#24911 + $1.loop0 = 0; //#24912 + $1.offset_index = $1.offset * $1.i; //#24913 + for (var _Cg = $1.start, _Cf = $1.Pn - 1; _Cg <= _Cf; _Cg += 1) { //#24919 + var _Cm = $get($1.G, $1.offset_index + (~~($1.loop0 / 32))); //#24916 + var _Co = -(31 - ($1.loop0 % 32)); //#24916 + $1.temp = ($get($1.data, _Cg) & (((_Co < 0 ? _Cm >>> -_Co : _Cm << _Co)) & 1)) ^ $1.temp; //#24917 + $1.loop0 = $1.loop0 + 1; //#24918 + } //#24918 + $put($1.ecc_encoded_data, $1.i + $1.last_index, $1.temp); //#24920 + } //#24920 + } //#24920 + $1.out = $s($1.Pg); //#24924 + for (var _Cz = 0, _Cy = $1.Pg - 1; _Cz <= _Cy; _Cz += 1) { //#24928 + $put($1.out, _Cz, $f($get($1.ecc_encoded_data, _Cz) + 48)); //#24927 + } //#24927 + $k[$j++] = $1.out; //#24929 + }; //#24931 + $k[$j++] = 'bits'; //#24934 + $k[$j++] = $1.bits; //#24934 + $k[$j++] = $1.datawc; //#24934 + $k[$j++] = $1.datawr; //#24934 + $1.ldpc(); //#24934 + var _D7 = $k[--$j]; //#24934 + $1[$k[--$j]] = _D7; //#24934 + $1.s0 = 0; //#24937 + $1.s1 = 0; //#24937 + $1.s2 = 3; //#24937 + $1.s3 = 30151; //#24937 + for (var _DA = $1.bits.length - 1; _DA >= 1; _DA -= 1) { //#24947 + $1.l = _DA; //#24939 + $1.lcg64_temper(); //#24940 + var _DB = $k[--$j]; //#24941 + $k[$j++] = _DB; //#24941 + if (_DB < 0) { //#24941 + var _DC = $k[--$j]; //#24941 + $k[$j++] = $f((_DC ^ 2147483648) + 2147483648); //#24941 + } //#24941 + $1.r = ~~(($k[--$j] / 4294967296) * ($1.l + 1)); //#24943 + $put($1.bits, $1.l, $get($1.bits, $1.r)); //#24945 + $put($1.bits, $1.r, $get($1.bits, $1.l)); //#24946 + } //#24946 + $1.tmpbits = $s($1.C); //#24950 + $puti($1.tmpbits, 0, $1.bits); //#24951 + $1.j = $1.bits.length; //#24952 + for (var _DW = 0, _DX = ~~(($f($f($1.C - $1.j) + 1)) / 2); _DW < _DX; _DW++) { //#24957 + $put($1.tmpbits, $1.j, 48); //#24954 + if (($1.j + 1) < $1.C) { //#24955 + $put($1.tmpbits, $1.j + 1, 49); //#24955 + } //#24955 + $1.j = $1.j + 2; //#24956 + } //#24956 + $1.bits = $1.tmpbits; //#24958 + if ($1.colors == 4) { //#25023 + $1.bi = 0; //#24962 + $1.gi = 1; //#24962 + $1.mi = 2; //#24962 + $1.yi = 3; //#24962 + $1.ki = 4; //#24963 + $1.wi = 5; //#24963 + $k[$j++] = Infinity; //#24966 + $k[$j++] = $1.bi; //#24966 + $k[$j++] = "0000FF"; //#24966 + $k[$j++] = $1.gi; //#24966 + $k[$j++] = "00FF00"; //#24966 + $k[$j++] = $1.mi; //#24966 + $k[$j++] = "FF00FF"; //#24966 + $k[$j++] = $1.yi; //#24966 + $k[$j++] = "FFFF00"; //#24966 + $k[$j++] = $1.ki; //#24966 + $k[$j++] = "000000"; //#24966 + $k[$j++] = $1.wi; //#24966 + $k[$j++] = "FFFFFF"; //#24966 + $1.palette = $d(); //#24967 + $1.metacolorindex = $a([$1.bi, $1.gi, $1.mi, $1.yi]); //#24968 + $1.palettelayout = $a([$1.bi, $1.gi, $1.mi, $1.yi]); //#24969 + } else { //#25023 + var _E4 = new Map([ + [8, $a([2, 2, 2])], + [16, $a([4, 2, 2])], + [32, $a([4, 4, 2])], + [64, $a([4, 4, 4])], + [128, $a([8, 4, 4])], + [256, $a([8, 8, 4])] + ]); //#24978 + $1.rgbres = $get(_E4, $1.colors); //#24979 + $k[$j++] = 'rvals'; //#24981 + $k[$j++] = $get($1.rgbres, 0); //#24981 + $k[$j++] = Infinity; //#24981 + var _E9 = $k[--$j]; //#24981 + var _EB = $f($k[--$j] - 1); //#24981 + $k[$j++] = _E9; //#24981 + $k[$j++] = _EB; //#24981 + for (var _ED = 0, _EC = _EB; _ED <= _EC; _ED += 1) { //#24981 + var _EE = $k[--$j]; //#24981 + $k[$j++] = ~~(Math.round(_ED * (255 / _EE))); //#24981 + $k[$j++] = _EE; //#24981 + } //#24981 + $j--; //#24981 + var _EF = $a(); //#24981 + $1[$k[--$j]] = _EF; //#24981 + $k[$j++] = 'gvals'; //#24982 + $k[$j++] = $get($1.rgbres, 1); //#24982 + $k[$j++] = Infinity; //#24982 + var _EJ = $k[--$j]; //#24982 + var _EL = $f($k[--$j] - 1); //#24982 + $k[$j++] = _EJ; //#24982 + $k[$j++] = _EL; //#24982 + for (var _EN = 0, _EM = _EL; _EN <= _EM; _EN += 1) { //#24982 + var _EO = $k[--$j]; //#24982 + $k[$j++] = ~~(Math.round(_EN * (255 / _EO))); //#24982 + $k[$j++] = _EO; //#24982 + } //#24982 + $j--; //#24982 + var _EP = $a(); //#24982 + $1[$k[--$j]] = _EP; //#24982 + $k[$j++] = 'bvals'; //#24983 + $k[$j++] = $get($1.rgbres, 2); //#24983 + $k[$j++] = Infinity; //#24983 + var _ET = $k[--$j]; //#24983 + var _EV = $f($k[--$j] - 1); //#24983 + $k[$j++] = _ET; //#24983 + $k[$j++] = _EV; //#24983 + for (var _EX = 0, _EW = _EV; _EX <= _EW; _EX += 1) { //#24983 + var _EY = $k[--$j]; //#24983 + $k[$j++] = ~~(Math.round(_EX * (255 / _EY))); //#24983 + $k[$j++] = _EY; //#24983 + } //#24983 + $j--; //#24983 + var _EZ = $a(); //#24983 + $1[$k[--$j]] = _EZ; //#24983 + var _Eb = $1.colors; //#24985 + $1.palette = new Map; //#24985 + var _Ec = $1.colors; //#24986 + var _Ed = 64; //#24986 + if (64 > _Ec) { //#24986 + var _ = _Ec; //#24986 + _Ec = _Ed; //#24986 + _Ed = _; //#24986 + } //#24986 + $1.palettelayout = $a(_Ed); //#24986 + $1.i = 0; //#24987 + $1.j = 8; //#24987 + $forall($1.rvals, function() { //#25021 + $1.r = $k[--$j]; //#24989 + $forall($1.gvals, function() { //#25020 + $1.g = $k[--$j]; //#24991 + $forall($1.bvals, function() { //#25019 + $1.b = $k[--$j]; //#24993 + var _Ep = $strcpy($s(6), "000000"); //#24995 + var _Er = $cvrs($s(6), (($1.r << 16) | ($1.g << 8)) | $1.b, 16); //#24995 + $puti(_Ep, 6 - _Er.length, _Er); //#24995 + $k[$j++] = _Ep; //#24997 + $k[$j++] = false; //#24997 + if ($eq(_Ep, "000000")) { //#24997 + $1.ki = $1.i; //#24997 + $j--; //#24997 + $k[$j++] = true; //#24997 + } //#24997 + var _Et = $k[--$j]; //#24998 + var _Eu = $k[--$j]; //#24998 + $k[$j++] = _Eu; //#24998 + $k[$j++] = _Et; //#24998 + if ($eq(_Eu, "0000FF")) { //#24998 + $1.bi = $1.i; //#24998 + $j--; //#24998 + $k[$j++] = true; //#24998 + } //#24998 + var _Ew = $k[--$j]; //#24999 + var _Ex = $k[--$j]; //#24999 + $k[$j++] = _Ex; //#24999 + $k[$j++] = _Ew; //#24999 + if ($eq(_Ex, "00FF00")) { //#24999 + $1.gi = $1.i; //#24999 + $j--; //#24999 + $k[$j++] = true; //#24999 + } //#24999 + var _Ez = $k[--$j]; //#25000 + var _F0 = $k[--$j]; //#25000 + $k[$j++] = _F0; //#25000 + $k[$j++] = _Ez; //#25000 + if ($eq(_F0, "00FFFF")) { //#25000 + $1.ci = $1.i; //#25000 + $j--; //#25000 + $k[$j++] = true; //#25000 + } //#25000 + var _F2 = $k[--$j]; //#25001 + var _F3 = $k[--$j]; //#25001 + $k[$j++] = _F3; //#25001 + $k[$j++] = _F2; //#25001 + if ($eq(_F3, "FF0000")) { //#25001 + $1.ri = $1.i; //#25001 + $j--; //#25001 + $k[$j++] = true; //#25001 + } //#25001 + var _F5 = $k[--$j]; //#25002 + var _F6 = $k[--$j]; //#25002 + $k[$j++] = _F6; //#25002 + $k[$j++] = _F5; //#25002 + if ($eq(_F6, "FF00FF")) { //#25002 + $1.mi = $1.i; //#25002 + $j--; //#25002 + $k[$j++] = true; //#25002 + } //#25002 + var _F8 = $k[--$j]; //#25003 + var _F9 = $k[--$j]; //#25003 + $k[$j++] = _F9; //#25003 + $k[$j++] = _F8; //#25003 + if ($eq(_F9, "FFFF00")) { //#25003 + $1.yi = $1.i; //#25003 + $j--; //#25003 + $k[$j++] = true; //#25003 + } //#25003 + var _FB = $k[--$j]; //#25004 + var _FC = $k[--$j]; //#25004 + $k[$j++] = _FC; //#25004 + $k[$j++] = _FB; //#25004 + if ($eq(_FC, "FFFFFF")) { //#25004 + $1.wi = $1.i; //#25004 + $j--; //#25004 + $k[$j++] = true; //#25004 + } //#25004 + if ($nt($k[--$j])) { //#25016 + if (($1.colors <= 64) || ((($1.colors == 128) && (((($1.r == 0) || ($1.r == 73)) || ($1.r == 182)) || ($1.r == 255))) || ((($1.colors == 256) && (((($1.r == 0) || ($1.r == 73)) || ($1.r == 182)) || ($1.r == 255))) && (((($1.g == 0) || ($1.g == 73)) || ($1.g == 182)) || ($1.g == 255))))) { //#25015 + $put($1.palettelayout, $1.j, $1.i); //#25013 + $1.j = $1.j + 1; //#25014 + } //#25014 + } //#25014 + $put($1.palette, $1.i, $k[--$j]); //#25017 + $1.i = $1.i + 1; //#25018 + }); //#25018 + }); //#25018 + }); //#25018 + $puti($1.palettelayout, 0, $a([$1.ki, $1.bi, $1.gi, $1.ci, $1.ri, $1.mi, $1.yi, $1.wi])); //#25022 + $1.metacolorindex = $a([$1.ki, $1.bi, $1.gi, $1.ci, $1.ri, $1.mi, $1.yi, $1.wi]); //#25023 + } //#25023 + $k[$j++] = Infinity; //#25027 + for (var _Fx = 0, _Fy = $1.rows * $1.cols; _Fx < _Fy; _Fx++) { //#25027 + $k[$j++] = -1; //#25027 + } //#25027 + $1.pixs = $a(); //#25027 + $1.jmv = function() { + var _G1 = $k[--$j]; //#25028 + var _G2 = $k[--$j]; //#25028 + $k[$j++] = $f(_G2 + (_G1 * $1.cols)); //#25028 + }; //#25028 + if (!$1.slave) { //#25058 + $1.fpat = $a([$a([1, 1, 1, 0, 0]), $a([1, 2, 2, 0, 0]), $a([1, 2, 1, 2, 1]), $a([0, 0, 2, 2, 1]), $a([0, 0, 1, 1, 1])]); //#25038 + $1.fmap = $a([$a([-1, $1.bi, $1.yi]), $a([-1, $1.yi, $1.bi]), $a([-1, $1.gi, $1.mi]), $a([-1, $1.mi, $1.gi])]); //#25044 + } else { //#25058 + $1.fpat = $a([$a([0, 0, 0, 0, 0]), $a([0, 2, 2, 0, 0]), $a([0, 2, 1, 2, 0]), $a([0, 0, 2, 2, 0]), $a([0, 0, 0, 0, 0])]); //#25052 + $1.fmap = $a([$a([-1, $1.ki, $1.wi]), $a([-1, $1.ki, $1.wi]), $a([-1, $1.ki, $1.wi]), $a([-1, $1.ki, $1.wi])]); //#25058 + } //#25058 + for (var _Gg = 0; _Gg <= 4; _Gg += 1) { //#25070 + $1.y = _Gg; //#25061 + for (var _Gh = 0; _Gh <= 4; _Gh += 1) { //#25069 + $1.x = _Gh; //#25063 + $1.fpb = $get($get($1.fpat, $1.y), $1.x); //#25064 + $k[$j++] = $1.pixs; //#25065 + $k[$j++] = $1.x + 1; //#25065 + $k[$j++] = $1.y + 1; //#25065 + $1.jmv(); //#25065 + var _Gu = $k[--$j]; //#25065 + $put($k[--$j], _Gu, $get($get($1.fmap, 0), $1.fpb)); //#25065 + $k[$j++] = $1.pixs; //#25066 + $k[$j++] = $1.x + 1; //#25066 + $k[$j++] = $f($f($1.rows - $1.y) - 2); //#25066 + $1.jmv(); //#25066 + var _H4 = $k[--$j]; //#25066 + $put($k[--$j], _H4, $get($get($1.fmap, 1), $1.fpb)); //#25066 + $k[$j++] = $1.pixs; //#25067 + $k[$j++] = $f($f($1.x + $1.cols) - 6); //#25067 + $k[$j++] = $1.y + 1; //#25067 + $1.jmv(); //#25067 + var _HE = $k[--$j]; //#25067 + $put($k[--$j], _HE, $get($get($1.fmap, 2), $1.fpb)); //#25067 + $k[$j++] = $1.pixs; //#25068 + $k[$j++] = $f($f($1.x + $1.cols) - 6); //#25068 + $k[$j++] = $f($f($1.rows - $1.y) - 2); //#25068 + $1.jmv(); //#25068 + var _HP = $k[--$j]; //#25068 + $put($k[--$j], _HP, $get($get($1.fmap, 3), $1.fpb)); //#25068 + } //#25068 + } //#25068 + $1.algnpat0 = $a([$a([$1.ki, $1.ki, -1]), $a([$1.ki, $1.wi, $1.ki]), $a([-1, $1.ki, $1.ki])]); //#25077 + $1.algnpat1 = $a([$a([-1, $1.ki, $1.ki]), $a([$1.ki, $1.wi, $1.ki]), $a([$1.ki, $1.ki, -1])]); //#25082 + $1.num = (~~Math.round($1.cols / 16)) - 1; //#25083 + $1.algnrpos = $a([3, 17]); //#25084 + if ($1.num > 0) { //#25087 + $k[$j++] = Infinity; //#25086 + for (var _Hs = 0, _Hr = $1.num; _Hs <= _Hr; _Hs += 1) { //#25086 + $k[$j++] = (~~(_Hs * ($f($1.cols - 7) / $1.num))) + 3; //#25086 + } //#25086 + $1.algnrpos = $a(); //#25086 + } //#25086 + $1.num = (~~Math.round($1.rows / 16)) - 1; //#25088 + $1.algncpos = $a([3, 17]); //#25089 + if ($1.num > 0) { //#25092 + $k[$j++] = Infinity; //#25091 + for (var _I1 = 0, _I0 = $1.num; _I1 <= _I0; _I1 += 1) { //#25091 + $k[$j++] = (~~(_I1 * ($f($1.rows - 7) / $1.num))) + 3; //#25091 + } //#25091 + $1.algncpos = $a(); //#25091 + } //#25091 + $1.putalgnpat = function() { + $1.pp = $k[--$j]; //#25094 + $1.py = $k[--$j]; //#25095 + $1.px = $k[--$j]; //#25096 + for (var _I8 = 0; _I8 <= 2; _I8 += 1) { //#25103 + $1.pb = _I8; //#25098 + for (var _I9 = 0; _I9 <= 2; _I9 += 1) { //#25102 + $1.pa = _I9; //#25100 + $k[$j++] = $1.pixs; //#25101 + $k[$j++] = $f($1.px + $1.pa); //#25101 + $k[$j++] = $f($1.py + $1.pb); //#25101 + $1.jmv(); //#25101 + var _IK = $k[--$j]; //#25101 + $put($k[--$j], _IK, $get($get($1.pp, $1.pb), $1.pa)); //#25101 + } //#25101 + } //#25101 + }; //#25104 + for (var _IO = 0, _IN = $1.algncpos.length - 1; _IO <= _IN; _IO += 1) { //#25115 + $1.j = _IO; //#25106 + $1.y = $get($1.algncpos, $1.j); //#25107 + for (var _IU = 0, _IT = $1.algnrpos.length - 1; _IU <= _IT; _IU += 1) { //#25114 + $1.i = _IU; //#25109 + $1.x = $get($1.algnrpos, $1.i); //#25110 + $k[$j++] = $1.pixs; //#25111 + $k[$j++] = $1.x; //#25111 + $k[$j++] = $1.y; //#25111 + $1.jmv(); //#25111 + var _Ib = $k[--$j]; //#25111 + if ($get($k[--$j], _Ib) == -1) { //#25113 + $k[$j++] = $f($1.x - 1); //#25112 + $k[$j++] = $f($1.y - 1); //#25112 + if ((($1.i + $1.j) % 2) == 0) { //#25112 + $k[$j++] = $1.algnpat0; //#25112 + } else { //#25112 + $k[$j++] = $1.algnpat1; //#25112 + } //#25112 + $1.putalgnpat(); //#25112 + } //#25112 + } //#25112 + } //#25112 + if (!$1.slave) { //#25167 + var _JT = $a([$a([6, 1]), $a([6, 2]), $a([6, 3]), $a([6, 4]), $a([6, 5]), $a([6, 6]), $a([5, 6]), $a([4, 6]), $a([3, 6]), $a([2, 6]), $a([1, 6]), $a([7, 1]), $a([7, 2]), $a([7, 3]), $a([7, 4]), $a([7, 5]), $a([7, 6]), $a([7, 7]), $a([6, 7]), $a([5, 7]), $a([4, 7]), $a([3, 7]), $a([2, 7]), $a([1, 7]), $a([8, 1]), $a([8, 2]), $a([8, 3]), $a([8, 4]), $a([8, 5]), $a([8, 6]), $a([8, 7]), $a([8, 8]), $a([7, 8]), $a([6, 8]), $a([5, 8]), $a([4, 8]), $a([3, 8]), $a([2, 8]), $a([1, 8]), $a([9, 1]), $a([9, 2]), $a([9, 3]), $a([9, 4]), $a([9, 5])]); //#25126 + for (var _JU = 0, _JV = _JT.length; _JU < _JV; _JU++) { //#25130 + $aload($get(_JT, _JU)); //#25128 + $1.y = $k[--$j]; //#25128 + $1.x = $k[--$j]; //#25128 + $k[$j++] = $a([$1.x, $1.y]); //#25129 + $k[$j++] = $a([-$1.x, $1.y]); //#25129 + $k[$j++] = $a([-$1.x, -$1.y]); //#25129 + $k[$j++] = $a([$1.x, -$1.y]); //#25129 + } //#25129 + $astore($a(176)); //#25131 + $1.metadatamap = $k[--$j]; //#25131 + $1.palettemap1 = $a([$a([4, 1]), $a([4, 2]), $a([5, 1]), $a([5, 2]), $a([2, 4]), $a([2, 5]), $a([1, 4]), $a([1, 5]), $a([-2, 1]), $a([-2, 2]), $a([-1, 1]), $a([-1, 2]), $a([-4, 4]), $a([-4, 5]), $a([-5, 4]), $a([-5, 5])]); //#25136 + $1.palettemap2 = $a([$a([-4, -5]), $a([-4, -4]), $a([-5, -5]), $a([-5, -4]), $a([-2, -2]), $a([-2, -1]), $a([-1, -2]), $a([-1, -1]), $a([2, -5]), $a([2, -4]), $a([1, -5]), $a([1, -4]), $a([4, -2]), $a([4, -1]), $a([5, -2]), $a([5, -1])]); //#25141 + } else { //#25167 + $k[$j++] = Infinity; //#25154 + for (var _KL = 1; _KL <= 19; _KL += 1) { //#25151 + $1.i = _KL; //#25149 + $k[$j++] = $a([0, $1.i]); //#25150 + $k[$j++] = $a([1, $1.i]); //#25150 + } //#25150 + for (var _KQ = 5; _KQ <= 12; _KQ += 1) { //#25155 + $1.i = _KQ; //#25153 + $k[$j++] = $a([2, $1.i]); //#25154 + $k[$j++] = $a([3, $1.i]); //#25154 + } //#25154 + $1.metadatamap = $a(); //#25154 + $k[$j++] = Infinity; //#25162 + for (var _KW = 5; _KW <= 12; _KW += 1) { //#25159 + $k[$j++] = _KW; //#25159 + $k[$j++] = Infinity; //#25159 + var _KX = $k[--$j]; //#25159 + var _KY = $k[--$j]; //#25159 + $k[$j++] = _KX; //#25159 + $k[$j++] = 4; //#25159 + $k[$j++] = _KY; //#25159 + var _KZ = $a(); //#25159 + $k[$j++] = _KZ; //#25159 + } //#25159 + for (var _Ka = 12; _Ka >= 5; _Ka -= 1) { //#25160 + $k[$j++] = _Ka; //#25160 + $k[$j++] = Infinity; //#25160 + var _Kb = $k[--$j]; //#25160 + var _Kc = $k[--$j]; //#25160 + $k[$j++] = _Kb; //#25160 + $k[$j++] = 5; //#25160 + $k[$j++] = _Kc; //#25160 + var _Kd = $a(); //#25160 + $k[$j++] = _Kd; //#25160 + } //#25160 + for (var _Ke = 5; _Ke <= 12; _Ke += 1) { //#25161 + $k[$j++] = _Ke; //#25161 + $k[$j++] = Infinity; //#25161 + var _Kf = $k[--$j]; //#25161 + var _Kg = $k[--$j]; //#25161 + $k[$j++] = _Kf; //#25161 + $k[$j++] = 6; //#25161 + $k[$j++] = _Kg; //#25161 + var _Kh = $a(); //#25161 + $k[$j++] = _Kh; //#25161 + } //#25161 + for (var _Ki = 12; _Ki >= 5; _Ki -= 1) { //#25162 + $k[$j++] = _Ki; //#25162 + $k[$j++] = Infinity; //#25162 + var _Kj = $k[--$j]; //#25162 + var _Kk = $k[--$j]; //#25162 + $k[$j++] = _Kj; //#25162 + $k[$j++] = 7; //#25162 + $k[$j++] = _Kk; //#25162 + var _Kl = $a(); //#25162 + $k[$j++] = _Kl; //#25162 + } //#25162 + $1.palettemap1 = $a(); //#25162 + $k[$j++] = Infinity; //#25166 + var _Kn = $1.palettemap1; //#25166 + for (var _Ko = 0, _Kp = _Kn.length; _Ko < _Kp; _Ko++) { //#25166 + $k[$j++] = $get(_Kn, _Ko); //#25166 + $k[$j++] = Infinity; //#25166 + var _Kr = $k[--$j]; //#25166 + var _Ks = $k[--$j]; //#25166 + $k[$j++] = _Kr; //#25166 + $aload(_Ks); //#25166 + var _Kt = $k[--$j]; //#25166 + var _Ku = $k[--$j]; //#25166 + $k[$j++] = -_Ku; //#25166 + $k[$j++] = -_Kt; //#25166 + var _Kv = $a(); //#25166 + $k[$j++] = _Kv; //#25166 + } //#25166 + $1.palettemap2 = $a(); //#25166 + } //#25167 + var _Kx = $1.metadatamap; //#25172 + for (var _Ky = 0, _Kz = _Kx.length; _Ky < _Kz; _Ky++) { //#25176 + var _L0 = $get(_Kx, _Ky); //#25176 + var _L1 = $get(_L0, 0); //#25173 + $k[$j++] = _L0; //#25173 + $k[$j++] = _L1; //#25173 + if (_L1 < 0) { //#25173 + var _L3 = $k[--$j]; //#25173 + var _L4 = $k[--$j]; //#25173 + $put(_L4, 0, $f($f(_L3 + $1.cols) - 1)); //#25173 + $k[$j++] = _L4; //#25173 + } else { //#25173 + $j--; //#25173 + } //#25173 + var _L5 = $k[--$j]; //#25174 + var _L6 = $get(_L5, 1); //#25174 + $k[$j++] = _L5; //#25174 + $k[$j++] = _L6; //#25174 + if (_L6 < 0) { //#25174 + var _L8 = $k[--$j]; //#25174 + var _L9 = $k[--$j]; //#25174 + $put(_L9, 1, $f($f(_L8 + $1.rows) - 1)); //#25174 + $k[$j++] = _L9; //#25174 + } else { //#25174 + $j--; //#25174 + } //#25174 + $j--; //#25175 + } //#25175 + var _LA = $1.palettemap1; //#25177 + for (var _LB = 0, _LC = _LA.length; _LB < _LC; _LB++) { //#25181 + var _LD = $get(_LA, _LB); //#25181 + var _LE = $get(_LD, 0); //#25178 + $k[$j++] = _LD; //#25178 + $k[$j++] = _LE; //#25178 + if (_LE < 0) { //#25178 + var _LG = $k[--$j]; //#25178 + var _LH = $k[--$j]; //#25178 + $put(_LH, 0, $f($f(_LG + $1.cols) - 1)); //#25178 + $k[$j++] = _LH; //#25178 + } else { //#25178 + $j--; //#25178 + } //#25178 + var _LI = $k[--$j]; //#25179 + var _LJ = $get(_LI, 1); //#25179 + $k[$j++] = _LI; //#25179 + $k[$j++] = _LJ; //#25179 + if (_LJ < 0) { //#25179 + var _LL = $k[--$j]; //#25179 + var _LM = $k[--$j]; //#25179 + $put(_LM, 1, $f($f(_LL + $1.rows) - 1)); //#25179 + $k[$j++] = _LM; //#25179 + } else { //#25179 + $j--; //#25179 + } //#25179 + $j--; //#25180 + } //#25180 + var _LN = $1.palettemap2; //#25182 + for (var _LO = 0, _LP = _LN.length; _LO < _LP; _LO++) { //#25186 + var _LQ = $get(_LN, _LO); //#25186 + var _LR = $get(_LQ, 0); //#25183 + $k[$j++] = _LQ; //#25183 + $k[$j++] = _LR; //#25183 + if (_LR < 0) { //#25183 + var _LT = $k[--$j]; //#25183 + var _LU = $k[--$j]; //#25183 + $put(_LU, 0, $f($f(_LT + $1.cols) - 1)); //#25183 + $k[$j++] = _LU; //#25183 + } else { //#25183 + $j--; //#25183 + } //#25183 + var _LV = $k[--$j]; //#25184 + var _LW = $get(_LV, 1); //#25184 + $k[$j++] = _LV; //#25184 + $k[$j++] = _LW; //#25184 + if (_LW < 0) { //#25184 + var _LY = $k[--$j]; //#25184 + var _LZ = $k[--$j]; //#25184 + $put(_LZ, 1, $f($f(_LY + $1.rows) - 1)); //#25184 + $k[$j++] = _LZ; //#25184 + } else { //#25184 + $j--; //#25184 + } //#25184 + $j--; //#25185 + } //#25185 + for (var _Lc = 0, _Lb = $f($1.nummetamodules - 1); _Lc <= _Lb; _Lc += 1) { //#25191 + $k[$j++] = $1.pixs; //#25190 + $aload($get($1.metadatamap, _Lc)); //#25190 + $1.jmv(); //#25190 + var _Lg = $k[--$j]; //#25190 + $put($k[--$j], _Lg, 0); //#25190 + } //#25190 + if (!$1.slave) { //#25204 + var _Lj = $1.colors; //#25196 + var _Lk = 16; //#25196 + if (16 > _Lj) { //#25196 + var _ = _Lj; //#25196 + _Lj = _Lk; //#25196 + _Lk = _; //#25196 + } //#25196 + for (var _Lm = 0, _Ll = _Lk - 1; _Lm <= _Ll; _Lm += 1) { //#25201 + $1.i = _Lm; //#25197 + var _Lp = $get($1.palettelayout, $1.i); //#25198 + $k[$j++] = _Lp; //#25199 + $k[$j++] = $1.pixs; //#25199 + $k[$j++] = _Lp; //#25199 + $aload($get($1.palettemap1, $1.i)); //#25199 + $1.jmv(); //#25199 + var _Lu = $k[--$j]; //#25199 + var _Lv = $k[--$j]; //#25199 + $put($k[--$j], _Lu, _Lv); //#25199 + var _Ly = $k[--$j]; //#25200 + $k[$j++] = $1.pixs; //#25200 + $k[$j++] = _Ly; //#25200 + $aload($get($1.palettemap2, $1.i)); //#25200 + $1.jmv(); //#25200 + var _M2 = $k[--$j]; //#25200 + var _M3 = $k[--$j]; //#25200 + $put($k[--$j], _M2, _M3); //#25200 + } //#25200 + $1.i = 16; //#25202 + } else { //#25204 + $1.i = 0; //#25204 + } //#25204 + $1.j = $1.nummetamodules; //#25208 + for (var _M9 = $1.i, _M8 = $1.palettelayout.length - 1; _M9 <= _M8; _M9 += 2) { //#25218 + $1.i = _M9; //#25210 + var _MC = $get($1.palettelayout, $1.i); //#25211 + $k[$j++] = _MC; //#25212 + $k[$j++] = $1.pixs; //#25212 + $k[$j++] = _MC; //#25212 + $aload($get($1.metadatamap, $1.j)); //#25212 + $1.jmv(); //#25212 + var _MH = $k[--$j]; //#25212 + var _MI = $k[--$j]; //#25212 + $put($k[--$j], _MH, _MI); //#25212 + var _ML = $k[--$j]; //#25213 + $k[$j++] = $1.pixs; //#25213 + $k[$j++] = _ML; //#25213 + $aload($get($1.metadatamap, $f($1.j + 2))); //#25213 + $1.jmv(); //#25213 + var _MP = $k[--$j]; //#25213 + var _MQ = $k[--$j]; //#25213 + $put($k[--$j], _MP, _MQ); //#25213 + var _MU = $get($1.palettelayout, $1.i + 1); //#25214 + $k[$j++] = _MU; //#25215 + $k[$j++] = $1.pixs; //#25215 + $k[$j++] = _MU; //#25215 + $aload($get($1.metadatamap, $f($1.j + 1))); //#25215 + $1.jmv(); //#25215 + var _MZ = $k[--$j]; //#25215 + var _Ma = $k[--$j]; //#25215 + $put($k[--$j], _MZ, _Ma); //#25215 + var _Md = $k[--$j]; //#25216 + $k[$j++] = $1.pixs; //#25216 + $k[$j++] = _Md; //#25216 + $aload($get($1.metadatamap, $f($1.j + 3))); //#25216 + $1.jmv(); //#25216 + var _Mh = $k[--$j]; //#25216 + var _Mi = $k[--$j]; //#25216 + $put($k[--$j], _Mh, _Mi); //#25216 + $1.j = $f($1.j + 4); //#25217 + } //#25217 + var _NA = $a([function() { + var _Ml = $k[--$j]; //#25222 + var _Mm = $k[--$j]; //#25222 + $k[$j++] = $f(_Mm + _Ml) % $1.colors; //#25222 + }, function() { + $j--; //#25223 + var _Mp = $k[--$j]; //#25223 + $k[$j++] = _Mp % $1.colors; //#25223 + }, function() { + var _Mq = $k[--$j]; //#25224 + var _Mr = $k[--$j]; //#25224 + $k[$j++] = _Mq; //#25224 + $k[$j++] = _Mr; //#25224 + $j--; //#25224 + var _Mt = $k[--$j]; //#25224 + $k[$j++] = _Mt % $1.colors; //#25224 + }, function() { + var _Mu = $k[--$j]; //#25225 + var _Mv = $k[--$j]; //#25225 + $k[$j++] = ((~~(_Mu / 3)) + (~~(_Mv / 2))) % $1.colors; //#25225 + }, function() { + var _Mx = $k[--$j]; //#25226 + var _My = $k[--$j]; //#25226 + $k[$j++] = ((~~(_Mx / 2)) + (~~(_My / 3))) % $1.colors; //#25226 + }, function() { + var _N0 = $k[--$j]; //#25227 + var _N2 = $f($k[--$j] + _N0); //#25227 + $k[$j++] = ((~~(_N2 / 2)) + (~~(_N2 / 3))) % $1.colors; //#25227 + }, function() { + var _N4 = $k[--$j]; //#25228 + var _N5 = $k[--$j]; //#25228 + $k[$j++] = ($f(((_N4 * (_N5 * _N5)) % 7) + ((($f(_N4 + (_N5 * _N5))) * 2) % 19))) % $1.colors; //#25228 + }, function() { + var _N7 = $k[--$j]; //#25229 + var _N8 = $k[--$j]; //#25229 + $k[$j++] = ($f(((_N8 * (_N7 * _N7)) % 5) + (($f((_N7 * _N7) + (_N8 * 2))) % 13))) % $1.colors; //#25229 + }]); //#25229 + $1.maskfuncs = _NA; //#25230 + if ($1.mask != -1) { //#25234 + $1.maskfuncs = $a([$get($1.maskfuncs, $1.mask)]); //#25232 + $1.bestmaskval = $1.mask; //#25233 + } //#25233 + $1.masks = $a($1.maskfuncs.length); //#25235 + for (var _NL = 0, _NK = $1.masks.length - 1; _NL <= _NK; _NL += 1) { //#25248 + $1.m = _NL; //#25237 + $1.mask = $a($1.rows * $1.cols); //#25238 + for (var _NR = 0, _NQ = $f($1.rows - 1); _NR <= _NQ; _NR += 1) { //#25246 + $1.j = _NR; //#25240 + for (var _NU = 0, _NT = $f($1.cols - 1); _NU <= _NT; _NU += 1) { //#25245 + $1.i = _NU; //#25242 + $k[$j++] = $1.pixs; //#25243 + $k[$j++] = $1.i; //#25243 + $k[$j++] = $1.j; //#25243 + $1.jmv(); //#25243 + var _NY = $k[--$j]; //#25243 + if ($get($k[--$j], _NY) == -1) { //#25243 + $k[$j++] = $1.i; //#25243 + $k[$j++] = $1.j; //#25243 + if ($get($1.maskfuncs, $1.m)() === true) { + break; + } //#25243 + } else { //#25243 + $k[$j++] = 0; //#25243 + } //#25243 + $k[$j++] = $1.mask; //#25244 + $k[$j++] = $1.i; //#25244 + $k[$j++] = $1.j; //#25244 + $1.jmv(); //#25244 + var _Nj = $k[--$j]; //#25244 + var _Nk = $k[--$j]; //#25244 + $put(_Nk, _Nj, $k[--$j]); //#25244 + } //#25244 + } //#25244 + $put($1.masks, $1.m, $1.mask); //#25247 + } //#25247 + $1.posx = 0; //#25251 + $1.posy = 0; //#25251 + $1.i = 0; //#25252 + for (;;) { //#25262 + if ($1.posx == $1.cols) { //#25254 + break; //#25254 + } //#25254 + $k[$j++] = $1.pixs; //#25255 + $k[$j++] = $1.posx; //#25255 + $k[$j++] = $1.posy; //#25255 + $1.jmv(); //#25255 + var _Nu = $k[--$j]; //#25255 + if ($get($k[--$j], _Nu) == -1) { //#25259 + var _O0 = $geti($1.bits, $1.i, $1.databpm); //#25256 + $k[$j++] = 0; //#25256 + for (var _O1 = 0, _O2 = _O0.length; _O1 < _O2; _O1++) { //#25256 + var _O4 = $k[--$j]; //#25256 + $k[$j++] = ($f(_O4 + $f($get(_O0, _O1) - 48))) * 2; //#25256 + } //#25256 + var _O5 = $k[--$j]; //#25256 + $k[$j++] = ~~(_O5 / 2); //#25257 + $k[$j++] = $1.pixs; //#25257 + $k[$j++] = $1.posx; //#25257 + $k[$j++] = $1.posy; //#25257 + $1.jmv(); //#25257 + var _O9 = $k[--$j]; //#25257 + var _OA = $k[--$j]; //#25257 + $put(_OA, _O9, $k[--$j]); //#25257 + $1.i = $1.i + $1.databpm; //#25258 + } //#25258 + $1.posy = $1.posy + 1; //#25260 + if ($1.posy == $1.rows) { //#25261 + $1.posy = 0; //#25261 + $1.posx = $1.posx + 1; //#25261 + } //#25261 + } //#25261 + $1.evalrle = function() { + $1.scrle = $k[--$j]; //#25266 + $1.scr1 = 0; //#25267 + $1.scr3 = 0; //#25267 + for (var _OL = 0, _OK = $1.scrle.length - 2; _OL <= _OK; _OL += 2) { //#25289 + $1.j = _OL; //#25269 + if ($get($1.scrle, $1.j + 1) != -1) { //#25288 + var _OR = $get($1.scrle, $1.j); //#25272 + $k[$j++] = _OR; //#25272 + if (_OR >= 5) { //#25272 + $1.scr1 = $f($f($k[--$j] - 2) + $1.scr1); //#25272 + } else { //#25272 + $j--; //#25272 + } //#25272 + if (($1.j >= 4) && ($1.j <= ($1.scrle.length - 5))) { //#25287 + var _OZ = $geti($1.scrle, $1.j - 4, 10); //#25275 + $k[$j++] = _OZ; //#25276 + for (var _Oa = 0, _Ob = _OZ.length; _Oa < _Ob; _Oa++) { //#25276 + $k[$j++] = $get(_OZ, _Oa) == 1; //#25276 + } //#25276 + $j--; //#25276 + for (var _Od = 0, _Oe = 4; _Od < _Oe; _Od++) { //#25276 + var _Of = $k[--$j]; //#25276 + var _Og = $k[--$j]; //#25276 + $k[$j++] = _Of; //#25276 + $k[$j++] = _Og; //#25276 + $j--; //#25276 + var _Oh = $k[--$j]; //#25276 + var _Oi = $k[--$j]; //#25276 + $k[$j++] = $an(_Oi, _Oh); //#25276 + } //#25276 + if ($k[--$j]) { //#25286 + $k[$j++] = Infinity; //#25277 + var _Ok = $k[--$j]; //#25277 + var _Ol = $k[--$j]; //#25277 + $k[$j++] = _Ok; //#25277 + $aload(_Ol); //#25277 + var _Om = $k[--$j]; //#25278 + var _On = $k[--$j]; //#25278 + var _Oo = $k[--$j]; //#25278 + var _Op = $k[--$j]; //#25278 + var _Oq = $k[--$j]; //#25278 + var _Or = $k[--$j]; //#25278 + var _Os = $k[--$j]; //#25278 + var _Ot = $k[--$j]; //#25278 + var _Ou = $k[--$j]; //#25278 + $k[$j++] = _Ou; //#25284 + $k[$j++] = _Ot; //#25284 + $k[$j++] = _Os; //#25284 + $k[$j++] = _Or; //#25284 + $k[$j++] = _Oq; //#25284 + $k[$j++] = _Op; //#25284 + $k[$j++] = _Oo; //#25284 + $k[$j++] = _On; //#25284 + $k[$j++] = _Om; //#25284 + if (($eq(_Ou, _Oq) && $eq(_Ou, _Om)) && $eq(_Os, _Oo)) { //#25284 + var _Ov = $k[--$j]; //#25280 + var _Ow = $k[--$j]; //#25280 + var _Ox = $k[--$j]; //#25280 + $1.c4 = _Ox; //#25280 + $1.c5 = _Ov; //#25280 + $k[$j++] = _Ox; //#25283 + $k[$j++] = _Ow; //#25283 + if ((($1.c4 == $1.bi) && ($1.c5 == $1.yi)) || ((($1.c4 == $1.yi) && ($1.c5 == $1.bi)) || ((($1.c4 == $1.gi) && ($1.c5 == $1.mi)) || (($1.c4 == $1.mi) && ($1.c5 == $1.gi))))) { //#25283 + $1.scr3 = $1.scr3 + 100; //#25283 + } //#25283 + } //#25283 + $cleartomark(); //#25285 + } else { //#25286 + $j--; //#25286 + } //#25286 + } //#25286 + } //#25286 + } //#25286 + $k[$j++] = $1.scr1; //#25290 + $k[$j++] = $1.scr3; //#25290 + }; //#25291 + $1.evalmask = function() { + $1.sym = $k[--$j]; //#25294 + $1.n1 = 0; //#25296 + $1.n2 = 0; //#25296 + $1.n3 = 0; //#25296 + var _PI = $1.rows; //#25297 + var _PJ = $1.cols; //#25297 + if (_PI < _PJ) { //#25297 + var _ = _PJ; //#25297 + _PJ = _PI; //#25297 + _PI = _; //#25297 + } //#25297 + $1.rle = $a($f((_PI * 2) + 2)); //#25297 + $1.lastpairs = $a($1.cols); //#25298 + $1.thispairs = $a($1.cols); //#25299 + for (var _PR = 0, _PQ = $f($1.cols - 1); _PR <= _PQ; _PR += 1) { //#25311 + $1.i = _PR; //#25303 + $k[$j++] = Infinity; //#25304 + $k[$j++] = 0; //#25307 + $k[$j++] = -1; //#25307 + for (var _PX = $1.i, _PY = $1.cols, _PW = $f(($1.rows * $1.cols) - 1); _PY < 0 ? _PX >= _PW : _PX <= _PW; _PX += _PY) { //#25307 + var _Pa = $get($1.sym, _PX); //#25306 + var _Pb = $k[--$j]; //#25306 + $k[$j++] = _Pb; //#25306 + $k[$j++] = _Pa; //#25306 + if ($eq(_Pb, _Pa)) { //#25306 + $j--; //#25306 + var _Pc = $k[--$j]; //#25306 + var _Pd = $k[--$j]; //#25306 + $k[$j++] = $f(_Pd + 1); //#25306 + $k[$j++] = _Pc; //#25306 + } else { //#25306 + var _Pe = $k[--$j]; //#25306 + $k[$j++] = 1; //#25306 + $k[$j++] = _Pe; //#25306 + } //#25306 + } //#25306 + var _Pg = $counttomark() + 2; //#25308 + $astore($geti($1.rle, 0, _Pg - 2)); //#25308 + $1.evalrle(); //#25309 + $1.n3 = $f($k[--$j] + $1.n3); //#25309 + $1.n1 = $f($k[--$j] + $1.n1); //#25309 + $j--; //#25310 + } //#25310 + for (var _Po = 0, _Pn = $f($1.rows - 1); _Po <= _Pn; _Po += 1) { //#25338 + $1.i = _Po; //#25314 + $1.symrow = $geti($1.sym, $1.i * $1.cols, $1.cols); //#25317 + $k[$j++] = Infinity; //#25318 + var _Pu = $1.symrow; //#25319 + $k[$j++] = 0; //#25321 + $k[$j++] = -1; //#25321 + for (var _Pv = 0, _Pw = _Pu.length; _Pv < _Pw; _Pv++) { //#25321 + var _Px = $get(_Pu, _Pv); //#25321 + var _Py = $k[--$j]; //#25320 + $k[$j++] = _Py; //#25320 + $k[$j++] = _Px; //#25320 + if ($eq(_Py, _Px)) { //#25320 + $j--; //#25320 + var _Pz = $k[--$j]; //#25320 + var _Q0 = $k[--$j]; //#25320 + $k[$j++] = $f(_Q0 + 1); //#25320 + $k[$j++] = _Pz; //#25320 + } else { //#25320 + var _Q1 = $k[--$j]; //#25320 + $k[$j++] = 1; //#25320 + $k[$j++] = _Q1; //#25320 + } //#25320 + } //#25320 + var _Q3 = $counttomark() + 2; //#25322 + $astore($geti($1.rle, 0, _Q3 - 2)); //#25322 + $1.evalrle(); //#25323 + $1.n3 = $f($k[--$j] + $1.n3); //#25323 + $1.n1 = $f($k[--$j] + $1.n1); //#25323 + $j--; //#25324 + var _Q9 = $1.thispairs; //#25327 + $1.thispairs = $1.lastpairs; //#25327 + $1.lastpairs = _Q9; //#25327 + var _QB = $1.symrow; //#25328 + $k[$j++] = -1; //#25328 + for (var _QC = 0, _QD = _QB.length; _QC < _QD; _QC++) { //#25328 + var _QE = $get(_QB, _QC); //#25328 + var _QF = $k[--$j]; //#25328 + $k[$j++] = _QE; //#25328 + $k[$j++] = _QF; //#25328 + if ($ne(_QE, _QF)) { //#25328 + $j--; //#25328 + var _QG = $k[--$j]; //#25328 + $k[$j++] = -1; //#25328 + $k[$j++] = _QG; //#25328 + } //#25328 + } //#25328 + $j--; //#25329 + $astore($1.thispairs); //#25330 + $j--; //#25330 + if ($1.i > 0) { //#25337 + $k[$j++] = Infinity; //#25332 + $aload($1.lastpairs); //#25333 + $aload($1.thispairs); //#25333 + $k[$j++] = $1.n2; //#25334 + for (var _QN = 0, _QO = $1.cols; _QN < _QO; _QN++) { //#25334 + var _QP = $k[--$j]; //#25334 + var _QQ = $k[--$j]; //#25334 + $k[$j++] = _QP; //#25334 + $k[$j++] = _QQ; //#25334 + if (_QQ != -1) { //#25334 + var _QS = $k[$j - 1 - $f($1.cols + 1)]; //#25334 + if ($eq($k[--$j], _QS)) { //#25334 + var _QU = $k[--$j]; //#25334 + $k[$j++] = $f(_QU + 3); //#25334 + } //#25334 + } else { //#25334 + $j--; //#25334 + } //#25334 + } //#25334 + $1.n2 = $k[--$j]; //#25335 + $cleartomark(); //#25336 + } //#25336 + } //#25336 + $k[$j++] = $f($f($1.n1 + $1.n2) + $1.n3); //#25340 + }; //#25341 + $1.bestscore = 999999999; //#25344 + for (var _Qb = 0, _Qa = $1.masks.length - 1; _Qb <= _Qa; _Qb += 1) { //#25362 + $1.m = _Qb; //#25346 + $1.masksym = $a($1.rows * $1.cols); //#25347 + for (var _Qi = 0, _Qh = $f(($1.rows * $1.cols) - 1); _Qi <= _Qh; _Qi += 1) { //#25351 + $1.i = _Qi; //#25349 + $put($1.masksym, $1.i, $xo($get($1.pixs, $1.i), $get($get($1.masks, $1.m), $1.i))); //#25350 + } //#25350 + if ($1.masks.length != 1) { //#25360 + $k[$j++] = $1.masksym; //#25353 + $1.evalmask(); //#25353 + $1.score = $k[--$j]; //#25353 + if ($1.score < $1.bestscore) { //#25358 + $1.bestsym = $1.masksym; //#25355 + $1.bestmaskval = $1.m; //#25356 + $1.bestscore = $1.score; //#25357 + } //#25357 + } else { //#25360 + $1.bestsym = $1.masksym; //#25360 + } //#25360 + } //#25360 + $1.pixs = $1.bestsym; //#25363 + $1.metamask = $1.bestmaskval; //#25364 + $1.addtometapart = function() { + var _R4 = $k[--$j]; //#25368 + $puti($1.metapart, $1.p, _R4); //#25368 + $1.p = _R4.length + $1.p; //#25369 + }; //#25370 + $1.addtometabits = function() { + var _R8 = $k[--$j]; //#25373 + $puti($1.metabits, $1.q, _R8); //#25373 + $1.q = _R8.length + $1.q; //#25374 + }; //#25375 + $1.metapart = $s(40); //#25377 + $1.metabits = $s($1.nummetabits); //#25378 + $1.p = 0; //#25379 + $1.q = 0; //#25379 + if (!$1.slave) { //#25434 + $k[$j++] = (~~(Math.round(Math.log($1.colors) / Math.log(2)))) - 1; //#25384 + $k[$j++] = 3; //#25384 + $1.tofixedbits(); //#25384 + $1.addtometapart(); //#25384 + $k[$j++] = $geti($1.metapart, 0, $1.p); //#25385 + $k[$j++] = 2; //#25385 + $k[$j++] = -1; //#25385 + $1.ldpc(); //#25385 + $1.addtometabits(); //#25385 + $1.p = 0; //#25385 + $k[$j++] = $1.metass; //#25388 + $k[$j++] = 1; //#25388 + $1.tofixedbits(); //#25388 + $1.addtometapart(); //#25388 + $k[$j++] = $1.metavf; //#25389 + $k[$j++] = 2; //#25389 + $1.tofixedbits(); //#25389 + $1.addtometapart(); //#25389 + $k[$j++] = $1.metamask; //#25390 + $k[$j++] = 3; //#25390 + $1.tofixedbits(); //#25390 + $1.addtometapart(); //#25390 + if ($1.hasslaves) { //#25391 + $k[$j++] = "1"; //#25391 + } else { //#25391 + $k[$j++] = "0"; //#25391 + } //#25391 + $1.addtometapart(); //#25391 + $k[$j++] = $geti($1.metapart, 0, $1.p); //#25392 + $k[$j++] = 2; //#25392 + $k[$j++] = -1; //#25392 + $1.ldpc(); //#25392 + $1.addtometabits(); //#25392 + $1.p = 0; //#25392 + if ($1.metass == 0) { //#25402 + $k[$j++] = $f(($f((~~($f($1.cols - 17) / 4)) - $get($a([0, 4, 8, 16]), $1.metavf))) - 1); //#25397 + $k[$j++] = $1.metavlen; //#25397 + $1.tofixedbits(); //#25397 + $1.addtometapart(); //#25397 + } else { //#25402 + $k[$j++] = (~~($f($1.cols - 17) / 4)) - 1; //#25400 + $k[$j++] = ~~($1.metavlen / 2); //#25400 + $1.tofixedbits(); //#25400 + $1.addtometapart(); //#25400 + $k[$j++] = (~~($f($1.rows - 17) / 4)) - 1; //#25402 + $k[$j++] = ~~($1.metavlen / 2); //#25402 + $1.tofixedbits(); //#25402 + $1.addtometapart(); //#25402 + } //#25402 + $k[$j++] = $1.datawc - 3; //#25404 + $k[$j++] = ~~($1.metaelen / 2); //#25404 + $1.tofixedbits(); //#25404 + $1.addtometapart(); //#25404 + $k[$j++] = $1.datawr - 4; //#25405 + $k[$j++] = ~~($1.metaelen / 2); //#25405 + $1.tofixedbits(); //#25405 + $1.addtometapart(); //#25405 + if ($1.hasslaves) { //#25408 + $k[$j++] = 0; //#25407 + $k[$j++] = 4; //#25407 + $1.tofixedbits(); //#25407 + $1.addtometapart(); //#25407 + } //#25407 + $k[$j++] = $geti($1.metapart, 0, $1.p); //#25409 + $k[$j++] = 2; //#25409 + $k[$j++] = -1; //#25409 + $1.ldpc(); //#25409 + $1.addtometabits(); //#25409 + $1.p = 0; //#25409 + } else { //#25434 + var _Rk = $1.sameshape ? 0 : 1; //#25414 + $k[$j++] = _Rk; //#25414 + $k[$j++] = 1; //#25414 + $1.tofixedbits(); //#25414 + $1.addtometapart(); //#25414 + var _Rm = $1.sameecc ? 0 : 1; //#25415 + $k[$j++] = _Rm; //#25415 + $k[$j++] = 1; //#25415 + $1.tofixedbits(); //#25415 + $1.addtometapart(); //#25415 + var _Ro = $1.hasslaves ? 1 : 0; //#25416 + $k[$j++] = _Ro; //#25416 + $k[$j++] = 1; //#25416 + $1.tofixedbits(); //#25416 + $1.addtometapart(); //#25416 + $k[$j++] = $geti($1.metapart, 0, $1.p); //#25417 + $k[$j++] = 2; //#25417 + $k[$j++] = -1; //#25417 + $1.ldpc(); //#25417 + $1.addtometabits(); //#25417 + $1.p = 0; //#25417 + if (!$1.sameshape) { //#25423 + $k[$j++] = (~~(($1.diffside - 17) / 4)) - 1; //#25422 + $k[$j++] = 5; //#25422 + $1.tofixedbits(); //#25422 + $1.addtometapart(); //#25422 + } //#25422 + if ($1.hasslaves) { //#25426 + $k[$j++] = 0; //#25425 + $k[$j++] = 3; //#25425 + $1.tofixedbits(); //#25425 + $1.addtometapart(); //#25425 + } //#25425 + $k[$j++] = $geti($1.metapart, 0, $1.p); //#25427 + $k[$j++] = 2; //#25427 + $k[$j++] = -1; //#25427 + $1.ldpc(); //#25427 + $1.addtometabits(); //#25427 + $1.p = 0; //#25427 + if (!$1.sameecc) { //#25433 + $k[$j++] = $1.datawc - 3; //#25431 + $k[$j++] = ~~($1.metaelen / 2); //#25431 + $1.tofixedbits(); //#25431 + $1.addtometapart(); //#25431 + $k[$j++] = $1.datawr - 4; //#25432 + $k[$j++] = ~~($1.metaelen / 2); //#25432 + $1.tofixedbits(); //#25432 + $1.addtometapart(); //#25432 + } //#25432 + $k[$j++] = $geti($1.metapart, 0, $1.p); //#25434 + $k[$j++] = 2; //#25434 + $k[$j++] = -1; //#25434 + $1.ldpc(); //#25434 + $1.addtometabits(); //#25434 + $1.p = 0; //#25434 + } //#25434 + for (var _S9 = $1.q, _S8 = $f($1.nummetabits - 1); _S9 <= _S8; _S9 += 1) { //#25439 + $put($1.metabits, _S9, 48); //#25438 + } //#25438 + $1.i = 0; //#25442 + $1.j = 0; //#25442 + if (!$1.slave) { //#25450 + var _SE = $geti($1.metabits, $1.i, 6); //#25444 + for (var _SF = 0, _SG = _SE.length; _SF < _SG; _SF++) { //#25448 + $k[$j++] = $get(_SE, _SF); //#25445 + if ($1.colors == 4) { //#25445 + $k[$j++] = $a([$1.bi, $1.yi]); //#25445 + } else { //#25445 + $k[$j++] = $a([$1.ki, $1.wi]); //#25445 + } //#25445 + var _SP = $k[--$j]; //#25445 + var _SR = $get(_SP, $f($k[--$j] - 48)); //#25445 + $k[$j++] = _SR; //#25446 + $k[$j++] = $1.pixs; //#25446 + $aload($get($1.metadatamap, $1.j)); //#25446 + $1.jmv(); //#25446 + var _SW = $k[--$j]; //#25446 + var _SX = $k[--$j]; //#25446 + $put(_SX, _SW, $k[--$j]); //#25446 + $1.j = $1.j + 1; //#25447 + } //#25447 + $1.i = $1.i + 6; //#25449 + } //#25449 + for (var _Se = 0, _Sf = ~~($f($1.nummetabits - $1.i) / $1.metabpm); _Se < _Sf; _Se++) { //#25457 + var _Sj = $geti($1.metabits, $1.i, $1.metabpm); //#25452 + $k[$j++] = 0; //#25452 + for (var _Sk = 0, _Sl = _Sj.length; _Sk < _Sl; _Sk++) { //#25452 + var _Sn = $k[--$j]; //#25452 + $k[$j++] = ($f(_Sn + $f($get(_Sj, _Sk) - 48))) * 2; //#25452 + } //#25452 + var _Sq = $get($1.metacolorindex, ~~($k[--$j] / 2)); //#25453 + $k[$j++] = _Sq; //#25454 + $k[$j++] = $1.pixs; //#25454 + $aload($get($1.metadatamap, $1.j)); //#25454 + $1.jmv(); //#25454 + var _Sv = $k[--$j]; //#25454 + var _Sw = $k[--$j]; //#25454 + $put(_Sw, _Sv, $k[--$j]); //#25454 + $1.i = $f($1.i + $1.metabpm); //#25455 + $1.j = $1.j + 1; //#25456 + } //#25456 + var _T8 = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", $1.cols], + ["pixy", $1.rows], + ["colormap", $1.palette], + ["height", ($1.rows * 2) / 72], + ["width", ($1.cols * 2) / 72], + ["opt", $1.options] + ]); //#25467 + $k[$j++] = _T8; //#25470 + if (!$1.dontdraw) { //#25470 + $0.renmatrix(); //#25470 + } //#25470 + }; + $0['gs1-cc'] = function() { + var $1 = {}; //#25503 + $1.options = $k[--$j]; //#25505 + $1.barcode = $k[--$j]; //#25506 + $1.parse = false; //#25508 + $1.dontlint = false; //#25509 + $1.dontdraw = false; //#25510 + $1.ccversion = "a"; //#25511 + $1.cccolumns = -1; //#25512 + $1.lintype = ""; //#25513 + $1.linwidth = -1; //#25514 + $forall($1.options, function() { //#25525 + var _3 = $k[--$j]; //#25525 + $1[$k[--$j]] = _3; //#25525 + }); //#25525 + $1.cccolumns = ~~$1.cccolumns; //#25527 + $1.linwidth = ~~$1.linwidth; //#25528 + if ($1.cccolumns == -1) { //#25547 + $k[$j++] = Infinity; //#25545 + $k[$j++] = 'ean13'; //#25538 + $k[$j++] = 4; //#25538 + $k[$j++] = 'upca'; //#25538 + $k[$j++] = 4; //#25538 + $k[$j++] = 'ean8'; //#25538 + $k[$j++] = 3; //#25538 + $k[$j++] = 'upce'; //#25538 + $k[$j++] = 2; //#25538 + $k[$j++] = 'gs1-128'; //#25538 + if ($ne($1.ccversion, "c")) { //#25538 + $k[$j++] = 4; //#25538 + } else { //#25538 + $k[$j++] = ~~(($1.linwidth - 52) / 17); //#25538 + } //#25538 + $k[$j++] = 'databaromni'; //#25545 + $k[$j++] = 4; //#25545 + $k[$j++] = 'databarstacked'; //#25545 + $k[$j++] = 2; //#25545 + $k[$j++] = 'databarstackedomni'; //#25545 + $k[$j++] = 2; //#25545 + $k[$j++] = 'databartruncated'; //#25545 + $k[$j++] = 4; //#25545 + $k[$j++] = 'databarlimited'; //#25545 + $k[$j++] = 3; //#25545 + $k[$j++] = 'databarexpanded'; //#25545 + $k[$j++] = 4; //#25545 + $k[$j++] = 'databarexpandedstacked'; //#25545 + $k[$j++] = 4; //#25545 + $1.cccolumns = $get($d(), $1.lintype); //#25546 + } //#25546 + $1.expand = function() { + var _E = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#25554 + $1.fncvals = _E; //#25555 + $k[$j++] = $1.fncvals; //#25556 + $0.parseinput(); //#25556 + }; //#25557 + $1.ais = $a([]); //#25560 + $1.vals = $a([]); //#25561 + var _I = $1.barcode; //#25562 + $k[$j++] = $geti(_I, 1, _I.length - 1); //#25575 + for (;;) { //#25575 + var _K = $k[--$j]; //#25564 + $k[$j++] = _K; //#25564 + if ($eq(_K, "")) { //#25564 + break; //#25564 + } //#25564 + $search($k[--$j], ")"); //#25565 + $j--; //#25565 + var _M = $k[--$j]; //#25566 + var _N = $k[--$j]; //#25566 + $k[$j++] = _M; //#25566 + $k[$j++] = _N; //#25566 + $j--; //#25566 + var _O = $k[--$j]; //#25567 + var _P = $k[--$j]; //#25567 + $k[$j++] = _O; //#25567 + $search(_P, "("); //#25567 + if ($k[--$j]) { //#25570 + var _R = $k[--$j]; //#25568 + var _S = $k[--$j]; //#25568 + $k[$j++] = _R; //#25568 + $k[$j++] = _S; //#25568 + $j--; //#25568 + var _T = $k[--$j]; //#25568 + var _U = $k[--$j]; //#25568 + var _V = $k[--$j]; //#25568 + $k[$j++] = _U; //#25568 + $k[$j++] = _V; //#25568 + $k[$j++] = _T; //#25568 + } else { //#25570 + var _W = $k[--$j]; //#25570 + var _X = $k[--$j]; //#25570 + $k[$j++] = ""; //#25570 + $k[$j++] = _X; //#25570 + $k[$j++] = _W; //#25570 + } //#25570 + $k[$j++] = Infinity; //#25572 + $aload($1.ais); //#25572 + var _a = $k[$j - 1 - ($counttomark() + 2)]; //#25572 + $k[$j++] = _a; //#25572 + $1.ais = $a(); //#25572 + $k[$j++] = Infinity; //#25573 + $aload($1.vals); //#25573 + var _e = $k[$j - 1 - ($counttomark() + 1)]; //#25573 + $k[$j++] = _e; //#25573 + $1.expand(); //#25573 + $1.vals = $a(); //#25573 + $j -= 2; //#25574 + } //#25574 + $j--; //#25576 + if (!$1.dontlint) { //#25578 + $k[$j++] = $1.ais; //#25578 + $k[$j++] = $1.vals; //#25578 + $0.gs1lint(); //#25578 + $j--; //#25578 + } //#25578 + $1.isupper = function() { + var _j = $k[--$j]; //#25581 + $k[$j++] = (_j >= 65) && (_j <= 90); //#25581 + }; //#25581 + $1.isnum0 = function() { + var _k = $k[--$j]; //#25582 + $k[$j++] = (_k >= 48) && (_k <= 57); //#25582 + }; //#25582 + $1.isnum1 = function() { + var _l = $k[--$j]; //#25583 + $k[$j++] = (_l >= 49) && (_l <= 57); //#25583 + }; //#25583 + for (;;) { //#25629 + if ($1.ais.length >= 1) { //#25591 + if (($eq($get($1.ais, 0), "10") || $eq($get($1.ais, 0), "11")) || $eq($get($1.ais, 0), "17")) { //#25590 + $k[$j++] = -1; //#25589 + $k[$j++] = "10"; //#25589 + break; //#25589 + } //#25589 + } //#25589 + if ($1.ais.length >= 1) { //#25624 + if ($eq($get($1.ais, 0), "90")) { //#25623 + $1.v = $get($1.vals, 0); //#25596 + if ($1.v.length >= 1) { //#25601 + $k[$j++] = $get($1.v, 0); //#25598 + $1.isupper(); //#25598 + if ($k[--$j]) { //#25600 + $k[$j++] = 0; //#25599 + $k[$j++] = "11"; //#25599 + break; //#25599 + } //#25599 + } //#25599 + if ($1.v.length >= 2) { //#25607 + $k[$j++] = $get($1.v, 0); //#25603 + $1.isnum1(); //#25603 + $k[$j++] = $get($1.v, 1); //#25604 + $1.isupper(); //#25604 + var _17 = $k[--$j]; //#25604 + var _18 = $k[--$j]; //#25604 + if ((_18 && _17)) { //#25606 + $k[$j++] = 1; //#25605 + $k[$j++] = "11"; //#25605 + break; //#25605 + } //#25605 + } //#25605 + if ($1.v.length >= 3) { //#25614 + $k[$j++] = $get($1.v, 0); //#25609 + $1.isnum1(); //#25609 + $k[$j++] = $get($1.v, 1); //#25610 + $1.isnum0(); //#25610 + var _1E = $k[--$j]; //#25610 + var _1F = $k[--$j]; //#25610 + $k[$j++] = $an(_1F, _1E); //#25611 + $k[$j++] = $get($1.v, 2); //#25611 + $1.isupper(); //#25611 + var _1I = $k[--$j]; //#25611 + var _1J = $k[--$j]; //#25611 + if ((_1J && _1I)) { //#25613 + $k[$j++] = 2; //#25612 + $k[$j++] = "11"; //#25612 + break; //#25612 + } //#25612 + } //#25612 + if ($1.v.length >= 4) { //#25622 + $k[$j++] = $get($1.v, 0); //#25616 + $1.isnum1(); //#25616 + $k[$j++] = $get($1.v, 1); //#25617 + $1.isnum0(); //#25617 + var _1P = $k[--$j]; //#25617 + var _1Q = $k[--$j]; //#25617 + $k[$j++] = $an(_1Q, _1P); //#25618 + $k[$j++] = $get($1.v, 2); //#25618 + $1.isnum0(); //#25618 + var _1T = $k[--$j]; //#25618 + var _1U = $k[--$j]; //#25618 + $k[$j++] = $an(_1U, _1T); //#25619 + $k[$j++] = $get($1.v, 3); //#25619 + $1.isupper(); //#25619 + var _1X = $k[--$j]; //#25619 + var _1Y = $k[--$j]; //#25619 + if ((_1Y && _1X)) { //#25621 + $k[$j++] = 3; //#25620 + $k[$j++] = "11"; //#25620 + break; //#25620 + } //#25620 + } //#25620 + } //#25620 + } //#25620 + $k[$j++] = -1; //#25627 + $k[$j++] = "0"; //#25627 + break; //#25627 + } //#25627 + $1.method = $k[--$j]; //#25630 + $1.npre = $k[--$j]; //#25631 + $1.fnc1 = -1; //#25633 + $1.lnumeric = -2; //#25633 + $1.lalphanumeric = -3; //#25633 + $1.liso646 = -4; //#25633 + $1.tobin = function() { + var _1c = $s($k[--$j]); //#25636 + $k[$j++] = _1c; //#25636 + for (var _1e = 0, _1d = _1c.length - 1; _1e <= _1d; _1e += 1) { //#25636 + var _1f = $k[--$j]; //#25636 + $put(_1f, _1e, 48); //#25636 + $k[$j++] = _1f; //#25636 + } //#25636 + var _1g = $k[--$j]; //#25637 + var _1j = $cvrs($s(_1g.length), $k[--$j], 2); //#25637 + $puti(_1g, _1g.length - _1j.length, _1j); //#25637 + $k[$j++] = _1g; //#25637 + }; //#25638 + $k[$j++] = Infinity; //#25643 + for (var _1k = 65; _1k <= 90; _1k += 1) { //#25641 + $k[$j++] = _1k; //#25641 + $k[$j++] = _1k - 65; //#25641 + $k[$j++] = 5; //#25641 + $1.tobin(); //#25641 + } //#25641 + for (var _1l = 48; _1l <= 57; _1l += 1) { //#25642 + $k[$j++] = _1l; //#25642 + $k[$j++] = _1l + 4; //#25642 + $k[$j++] = 6; //#25642 + $1.tobin(); //#25642 + } //#25642 + $k[$j++] = $1.fnc1; //#25643 + $k[$j++] = "11111"; //#25643 + $1.alpha = $d(); //#25644 + $k[$j++] = Infinity; //#25656 + for (var _1o = 0; _1o <= 119; _1o += 1) { //#25655 + var _1q = $strcpy($s(2), "00"); //#25648 + var _1s = $cvrs($s(2), _1o, 11); //#25648 + $puti(_1q, 2 - _1s.length, _1s); //#25649 + $k[$j++] = _1o; //#25650 + $k[$j++] = _1q; //#25650 + if ($get(_1q, 0) == 65) { //#25650 + var _1u = $k[--$j]; //#25650 + $put(_1u, 0, 94); //#25650 + $k[$j++] = _1u; //#25650 + } //#25650 + var _1v = $k[--$j]; //#25651 + $k[$j++] = _1v; //#25651 + if ($get(_1v, 1) == 65) { //#25651 + var _1x = $k[--$j]; //#25651 + $put(_1x, 1, 94); //#25651 + $k[$j++] = _1x; //#25651 + } //#25651 + var _1y = $k[--$j]; //#25652 + var _21 = $strcpy($s(7), "0000000"); //#25653 + var _23 = $cvrs($s(7), $f($k[--$j] + 8), 2); //#25653 + $puti(_21, 7 - _23.length, _23); //#25654 + $k[$j++] = _1y; //#25654 + $k[$j++] = _21; //#25654 + } //#25654 + $k[$j++] = $1.lalphanumeric; //#25656 + $k[$j++] = "0000"; //#25656 + $1.numeric = $d(); //#25657 + $k[$j++] = Infinity; //#25666 + for (var _26 = 48; _26 <= 57; _26 += 1) { //#25660 + $k[$j++] = _26; //#25660 + $k[$j++] = _26 - 43; //#25660 + $k[$j++] = 5; //#25660 + $1.tobin(); //#25660 + } //#25660 + $k[$j++] = $1.fnc1; //#25662 + $k[$j++] = "01111"; //#25662 + for (var _28 = 65; _28 <= 90; _28 += 1) { //#25662 + $k[$j++] = _28; //#25662 + $k[$j++] = _28 - 33; //#25662 + $k[$j++] = 6; //#25662 + $1.tobin(); //#25662 + } //#25662 + $k[$j++] = 42; //#25664 + $k[$j++] = "111010"; //#25664 + for (var _29 = 44; _29 <= 47; _29 += 1) { //#25664 + $k[$j++] = _29; //#25664 + $k[$j++] = _29 + 15; //#25664 + $k[$j++] = 6; //#25664 + $1.tobin(); //#25664 + } //#25664 + $k[$j++] = $1.lnumeric; //#25666 + $k[$j++] = "000"; //#25666 + $k[$j++] = $1.liso646; //#25666 + $k[$j++] = "00100"; //#25666 + $1.alphanumeric = $d(); //#25667 + $k[$j++] = Infinity; //#25681 + for (var _2D = 48; _2D <= 57; _2D += 1) { //#25670 + $k[$j++] = _2D; //#25670 + $k[$j++] = _2D - 43; //#25670 + $k[$j++] = 5; //#25670 + $1.tobin(); //#25670 + } //#25670 + $k[$j++] = $1.fnc1; //#25672 + $k[$j++] = "01111"; //#25672 + for (var _2F = 65; _2F <= 90; _2F += 1) { //#25672 + $k[$j++] = _2F; //#25672 + $k[$j++] = _2F - 1; //#25672 + $k[$j++] = 7; //#25672 + $1.tobin(); //#25672 + } //#25672 + for (var _2G = 97; _2G <= 122; _2G += 1) { //#25673 + $k[$j++] = _2G; //#25673 + $k[$j++] = _2G - 7; //#25673 + $k[$j++] = 7; //#25673 + $1.tobin(); //#25673 + } //#25673 + $k[$j++] = 33; //#25676 + $k[$j++] = "11101000"; //#25676 + $k[$j++] = 34; //#25676 + $k[$j++] = "11101001"; //#25676 + for (var _2H = 37; _2H <= 47; _2H += 1) { //#25676 + $k[$j++] = _2H; //#25676 + $k[$j++] = _2H + 197; //#25676 + $k[$j++] = 8; //#25676 + $1.tobin(); //#25676 + } //#25676 + for (var _2I = 58; _2I <= 63; _2I += 1) { //#25677 + $k[$j++] = _2I; //#25677 + $k[$j++] = _2I + 187; //#25677 + $k[$j++] = 8; //#25677 + $1.tobin(); //#25677 + } //#25677 + $k[$j++] = 95; //#25681 + $k[$j++] = "11111011"; //#25681 + $k[$j++] = 32; //#25681 + $k[$j++] = "11111100"; //#25681 + $k[$j++] = $1.lnumeric; //#25681 + $k[$j++] = "000"; //#25681 + $k[$j++] = $1.lalphanumeric; //#25681 + $k[$j++] = "00100"; //#25681 + $1.iso646 = $d(); //#25682 + if ($eq($1.method, "10")) { //#25715 + if ($eq($get($1.ais, 0), "11") || $eq($get($1.ais, 0), "17")) { //#25699 + var _2S = $get($1.vals, 0); //#25686 + var _2X = $strcpy($s(16), "0000000000000000"); //#25690 + var _2Z = $cvrs($s(16), ((~~$z($geti(_2S, 0, 2))) * 384) + ((((~~$z($geti(_2S, 2, 2))) - 1) * 32) + (~~$z($geti(_2S, 4, 2)))), 2); //#25690 + $puti(_2X, 16 - _2Z.length, _2Z); //#25691 + $k[$j++] = _2X; //#25694 + $k[$j++] = Infinity; //#25694 + var _2a = $k[--$j]; //#25693 + var _2b = $k[--$j]; //#25693 + $k[$j++] = _2a; //#25693 + $k[$j++] = 1; //#25693 + $k[$j++] = 0; //#25693 + $forall(_2b, function() { //#25693 + var _2c = $k[--$j]; //#25693 + $k[$j++] = $f(_2c - 48); //#25693 + }); //#25693 + var _2f = $eq($get($1.ais, 0), "11") ? 0 : 1; //#25694 + $k[$j++] = _2f; //#25694 + $1.cdf = $a(); //#25695 + $1.ais = $geti($1.ais, 1, $1.ais.length - 1); //#25696 + $1.vals = $geti($1.vals, 1, $1.vals.length - 1); //#25697 + } else { //#25699 + $1.cdf = $a([1, 0, 1, 1]); //#25699 + } //#25699 + if ($1.ais.length != 0) { //#25712 + if ($eq($get($1.ais, 0), "10")) { //#25708 + $k[$j++] = Infinity; //#25703 + $forall($get($1.vals, 0)); //#25703 + $1.gpf = $a(); //#25703 + if ($1.ais.length > 1) { //#25704 + $k[$j++] = Infinity; //#25704 + $aload($1.gpf); //#25704 + $k[$j++] = $1.fnc1; //#25704 + $1.gpf = $a(); //#25704 + } //#25704 + $1.ais = $geti($1.ais, 1, $1.ais.length - 1); //#25705 + $1.vals = $geti($1.vals, 1, $1.vals.length - 1); //#25706 + } else { //#25708 + $1.gpf = $a([$1.fnc1]); //#25708 + } //#25708 + } else { //#25712 + $k[$j++] = Infinity; //#25711 + $aload($1.cdf); //#25711 + $k[$j++] = 0; //#25711 + $k[$j++] = 0; //#25711 + $k[$j++] = 0; //#25711 + $k[$j++] = 0; //#25711 + $k[$j++] = 0; //#25711 + $k[$j++] = 1; //#25711 + $k[$j++] = 1; //#25711 + $k[$j++] = 1; //#25711 + $k[$j++] = 1; //#25711 + $1.cdf = $a(); //#25711 + $1.gpf = $a([]); //#25712 + } //#25712 + $1.mode = "numeric"; //#25714 + } //#25714 + if ($eq($1.method, "11")) { //#25807 + $1.cdf = $a([1, 1]); //#25718 + $1.ai90 = $get($1.vals, 0); //#25719 + if ($f($1.npre + 1) != $1.ai90.length) { //#25723 + $k[$j++] = $geti($1.ai90, $f($1.npre + 1), $f($f($1.ai90.length - $1.npre) - 1)); //#25721 + } else { //#25723 + $k[$j++] = ""; //#25723 + } //#25723 + $1.ai90rem = $k[--$j]; //#25725 + $k[$j++] = 'nalpha'; //#25726 + $k[$j++] = 0; //#25726 + $forall($1.ai90rem, function() { //#25726 + var _3M = $k[--$j]; //#25726 + if ((_3M >= 65) && (_3M <= 90)) { //#25726 + var _3N = $k[--$j]; //#25726 + $k[$j++] = $f(_3N + 1); //#25726 + } //#25726 + }); //#25726 + var _3O = $k[--$j]; //#25726 + $1[$k[--$j]] = _3O; //#25726 + $k[$j++] = 'nnums'; //#25727 + $k[$j++] = 0; //#25727 + $forall($1.ai90rem, function() { //#25727 + var _3R = $k[--$j]; //#25727 + if ((_3R >= 48) && (_3R <= 57)) { //#25727 + var _3S = $k[--$j]; //#25727 + $k[$j++] = $f(_3S + 1); //#25727 + } //#25727 + }); //#25727 + var _3T = $k[--$j]; //#25727 + $1[$k[--$j]] = _3T; //#25727 + $k[$j++] = 'mode'; //#25728 + if ($gt($1.nalpha, $1.nnums)) { //#25728 + $k[$j++] = "alpha"; //#25728 + } else { //#25728 + if ($1.nalpha == 0) { //#25728 + $k[$j++] = "numeric"; //#25728 + } else { //#25728 + $k[$j++] = "alphanumeric"; //#25728 + } //#25728 + } //#25728 + var _3Y = $k[--$j]; //#25728 + $1[$k[--$j]] = _3Y; //#25728 + if ($f($1.nalpha + $1.nnums) != $1.ai90rem.length) { //#25729 + $1.mode = "alphanumeric"; //#25729 + } //#25729 + $k[$j++] = Infinity; //#25734 + $aload($1.cdf); //#25731 + if ($eq($1.mode, "alphanumeric")) { //#25732 + $k[$j++] = 0; //#25732 + } //#25732 + if ($eq($1.mode, "numeric")) { //#25733 + $k[$j++] = 1; //#25733 + $k[$j++] = 0; //#25733 + } //#25733 + if ($eq($1.mode, "alpha")) { //#25734 + $k[$j++] = 1; //#25734 + $k[$j++] = 1; //#25734 + } //#25734 + $1.cdf = $a(); //#25734 + $k[$j++] = 'ais1'; //#25736 + if ($1.ais.length > 1) { //#25736 + $k[$j++] = $get($1.ais, 1); //#25736 + } else { //#25736 + $k[$j++] = -1; //#25736 + } //#25736 + var _3l = $k[--$j]; //#25736 + $1[$k[--$j]] = _3l; //#25736 + $k[$j++] = 'vals1'; //#25737 + if ($1.vals.length > 1) { //#25737 + $k[$j++] = $get($1.vals, 1); //#25737 + } else { //#25737 + $k[$j++] = -1; //#25737 + } //#25737 + var _3q = $k[--$j]; //#25737 + $1[$k[--$j]] = _3q; //#25737 + if ($eq($1.ais1, "21") || $eq($1.ais1, "8004")) { //#25741 + $k[$j++] = Infinity; //#25739 + $aload($1.cdf); //#25739 + if ($eq($1.ais1, "21")) { //#25739 + $k[$j++] = 1; //#25739 + $k[$j++] = 0; //#25739 + } else { //#25739 + $k[$j++] = 1; //#25739 + $k[$j++] = 1; //#25739 + } //#25739 + $1.cdf = $a(); //#25739 + } else { //#25741 + $k[$j++] = Infinity; //#25741 + $aload($1.cdf); //#25741 + $k[$j++] = 0; //#25741 + $1.cdf = $a(); //#25741 + } //#25741 + $k[$j++] = 'nval'; //#25743 + if ($1.npre != 0) { //#25743 + $k[$j++] = ~~$z($geti($1.ai90, 0, $1.npre)); //#25743 + } else { //#25743 + $k[$j++] = 0; //#25743 + } //#25743 + var _43 = $k[--$j]; //#25743 + $1[$k[--$j]] = _43; //#25743 + $search("BDHIJKLNPQRSTVXZ", $geti($1.ai90, $1.npre, 1)); //#25744 + if ($k[--$j]) { //#25748 + var _49 = $k[--$j]; //#25745 + var _4A = $k[--$j]; //#25745 + $k[$j++] = _49.length; //#25745 + $k[$j++] = _4A; //#25745 + $j--; //#25745 + var _4B = $k[--$j]; //#25745 + var _4C = $k[--$j]; //#25745 + $k[$j++] = _4B; //#25745 + $k[$j++] = _4C; //#25745 + $j--; //#25745 + $1.aval = $k[--$j]; //#25746 + } else { //#25748 + $j--; //#25748 + $1.aval = -1; //#25748 + } //#25748 + if (($1.nval < 31) && ($1.aval != -1)) { //#25774 + var _4H = $strcpy($s(5), "00000"); //#25751 + var _4K = $cvrs($s(5), $1.nval, 2); //#25751 + $puti(_4H, 5 - _4K.length, _4K); //#25752 + $k[$j++] = _4H; //#25753 + $k[$j++] = Infinity; //#25753 + var _4L = $k[--$j]; //#25753 + var _4M = $k[--$j]; //#25753 + $k[$j++] = _4L; //#25753 + $forall(_4M, function() { //#25753 + var _4N = $k[--$j]; //#25753 + $k[$j++] = $f(_4N - 48); //#25753 + }); //#25753 + $1.nbits = $a(); //#25753 + var _4Q = $strcpy($s(4), "0000"); //#25754 + var _4T = $cvrs($s(4), $1.aval, 2); //#25754 + $puti(_4Q, 4 - _4T.length, _4T); //#25755 + $k[$j++] = _4Q; //#25756 + $k[$j++] = Infinity; //#25756 + var _4U = $k[--$j]; //#25756 + var _4V = $k[--$j]; //#25756 + $k[$j++] = _4U; //#25756 + $forall(_4V, function() { //#25756 + var _4W = $k[--$j]; //#25756 + $k[$j++] = $f(_4W - 48); //#25756 + }); //#25756 + $1.abits = $a(); //#25756 + $k[$j++] = Infinity; //#25760 + $aload($1.cdf); //#25758 + $aload($1.nbits); //#25759 + $aload($1.abits); //#25760 + $1.cdf = $a(); //#25760 + } else { //#25774 + var _4d = $strcpy($s(10), "0000000000"); //#25763 + var _4g = $cvrs($s(10), $1.nval, 2); //#25763 + $puti(_4d, 10 - _4g.length, _4g); //#25764 + $k[$j++] = _4d; //#25765 + $k[$j++] = Infinity; //#25765 + var _4h = $k[--$j]; //#25765 + var _4i = $k[--$j]; //#25765 + $k[$j++] = _4h; //#25765 + $forall(_4i, function() { //#25765 + var _4j = $k[--$j]; //#25765 + $k[$j++] = $f(_4j - 48); //#25765 + }); //#25765 + $1.nbits = $a(); //#25765 + var _4m = $strcpy($s(5), "00000"); //#25766 + var _4r = $cvrs($s(5), $f($get($1.ai90, $1.npre) - 65), 2); //#25766 + $puti(_4m, 5 - _4r.length, _4r); //#25767 + $k[$j++] = _4m; //#25768 + $k[$j++] = Infinity; //#25768 + var _4s = $k[--$j]; //#25768 + var _4t = $k[--$j]; //#25768 + $k[$j++] = _4s; //#25768 + $forall(_4t, function() { //#25768 + var _4u = $k[--$j]; //#25768 + $k[$j++] = $f(_4u - 48); //#25768 + }); //#25768 + $1.abits = $a(); //#25768 + $k[$j++] = Infinity; //#25773 + $aload($1.cdf); //#25770 + $k[$j++] = 1; //#25772 + $k[$j++] = 1; //#25772 + $k[$j++] = 1; //#25772 + $k[$j++] = 1; //#25772 + $k[$j++] = 1; //#25772 + $aload($1.nbits); //#25772 + $aload($1.abits); //#25773 + $1.cdf = $a(); //#25773 + } //#25774 + if ($ne($1.mode, "alpha")) { //#25792 + $k[$j++] = Infinity; //#25777 + $forall($1.ai90rem); //#25777 + if ($1.ais.length > 1) { //#25777 + $k[$j++] = $1.fnc1; //#25777 + } //#25777 + $1.gpf = $a(); //#25777 + } else { //#25792 + $k[$j++] = Infinity; //#25779 + $forall($1.ai90rem); //#25779 + if ($1.ais.length > 1) { //#25779 + $k[$j++] = $1.fnc1; //#25779 + } //#25779 + $1.in = $a(); //#25779 + $1.out = $a($1.in.length * 6); //#25780 + $1.j = 0; //#25781 + for (var _5D = 0, _5C = $1.in.length - 1; _5D <= _5C; _5D += 1) { //#25786 + var _5H = $get($1.alpha, $get($1.in, _5D)); //#25783 + $k[$j++] = _5H; //#25784 + $k[$j++] = _5H; //#25784 + $k[$j++] = Infinity; //#25784 + var _5I = $k[--$j]; //#25784 + var _5J = $k[--$j]; //#25784 + $k[$j++] = _5I; //#25784 + $forall(_5J, function() { //#25784 + var _5K = $k[--$j]; //#25784 + $k[$j++] = $f(_5K - 48); //#25784 + }); //#25784 + $puti($1.out, $1.j, $a()); //#25784 + $1.j = $k[--$j].length + $1.j; //#25785 + } //#25785 + $k[$j++] = Infinity; //#25789 + $aload($1.cdf); //#25788 + $aload($geti($1.out, 0, $1.j)); //#25789 + $1.cdf = $a(); //#25789 + $1.gpf = $a([]); //#25791 + if ($1.ais.length > 1) { //#25792 + $1.mode = "numeric"; //#25792 + } //#25792 + } //#25792 + $1.ais = $geti($1.ais, 1, $1.ais.length - 1); //#25794 + $1.vals = $geti($1.vals, 1, $1.vals.length - 1); //#25795 + if ($1.ais.length != 0) { //#25806 + if ($eq($1.ais1, "21") || $eq($1.ais1, "8004")) { //#25805 + $k[$j++] = Infinity; //#25800 + $aload($1.gpf); //#25799 + $forall($1.vals1); //#25800 + $1.gpf = $a(); //#25800 + $1.ais = $geti($1.ais, 1, $1.ais.length - 1); //#25802 + $1.vals = $geti($1.vals, 1, $1.vals.length - 1); //#25803 + if ($1.ais.length != 0) { //#25804 + $k[$j++] = Infinity; //#25804 + $aload($1.gpf); //#25804 + $k[$j++] = $1.fnc1; //#25804 + $1.gpf = $a(); //#25804 + } //#25804 + } //#25804 + } //#25804 + } //#25804 + if ($eq($1.method, "0")) { //#25813 + $1.cdf = $a([0]); //#25810 + $1.gpf = $a([]); //#25811 + $1.mode = "numeric"; //#25812 + } //#25812 + $1.aifixed = new Map; //#25818 + $k[$j++] = Infinity; //#25820 + for (var _5w = 0; _5w <= 4; _5w += 1) { //#25820 + $k[$j++] = _5w; //#25820 + } //#25820 + var _5x = $a(); //#25820 + for (var _5y = 0, _5z = _5x.length; _5y < _5z; _5y++) { //#25823 + var _62 = $strcpy($s(2), "00"); //#25822 + $put(_62, 1, $f($get(_5x, _5y) + 48)); //#25822 + $put($1.aifixed, _62, _62); //#25822 + } //#25822 + $k[$j++] = Infinity; //#25828 + for (var _64 = 11; _64 <= 20; _64 += 1) { //#25825 + $k[$j++] = _64; //#25825 + } //#25825 + $k[$j++] = 23; //#25827 + for (var _65 = 31; _65 <= 36; _65 += 1) { //#25827 + $k[$j++] = _65; //#25827 + } //#25827 + $k[$j++] = 41; //#25828 + var _66 = $a(); //#25828 + for (var _67 = 0, _68 = _66.length; _67 < _68; _67++) { //#25831 + var _6B = $cvrs($s(2), $get(_66, _67), 10); //#25830 + $put($1.aifixed, _6B, _6B); //#25830 + } //#25830 + for (var _6F = 0, _6E = $1.ais.length - 1; _6F <= _6E; _6F += 1) { //#25849 + $1.i = _6F; //#25835 + $1.ai = $get($1.ais, $1.i); //#25836 + $1.val = $get($1.vals, $1.i); //#25837 + var _6P = $a(($1.gpf.length + $1.ai.length) + $1.val.length); //#25838 + $puti(_6P, 0, $1.gpf); //#25839 + $k[$j++] = _6P; //#25840 + $k[$j++] = _6P; //#25840 + $k[$j++] = $1.gpf.length; //#25840 + $k[$j++] = $1.ai; //#25840 + $k[$j++] = Infinity; //#25840 + var _6T = $k[--$j]; //#25840 + var _6U = $k[--$j]; //#25840 + $k[$j++] = _6T; //#25840 + $forall(_6U); //#25840 + var _6V = $a(); //#25840 + var _6W = $k[--$j]; //#25840 + $puti($k[--$j], _6W, _6V); //#25840 + var _6Y = $k[--$j]; //#25841 + $k[$j++] = _6Y; //#25841 + $k[$j++] = _6Y; //#25841 + $k[$j++] = $1.gpf.length + $1.ai.length; //#25841 + $k[$j++] = $1.val; //#25841 + $k[$j++] = Infinity; //#25841 + var _6c = $k[--$j]; //#25841 + var _6d = $k[--$j]; //#25841 + $k[$j++] = _6c; //#25841 + $forall(_6d); //#25841 + var _6e = $a(); //#25841 + var _6f = $k[--$j]; //#25841 + $puti($k[--$j], _6f, _6e); //#25841 + $1.gpf = $k[--$j]; //#25842 + var _6n = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; //#25843 + if (($1.i != ($1.ais.length - 1)) && (!_6n)) { //#25848 + var _6p = $a($1.gpf.length + 1); //#25844 + $puti(_6p, 0, $1.gpf); //#25845 + $put(_6p, $1.gpf.length, $1.fnc1); //#25846 + $1.gpf = _6p; //#25847 + } //#25847 + } //#25847 + $1.rembits = function() { + $1.used = $k[--$j]; //#25853 + if ($ne($1.ccversion, "c")) { //#25885 + var _73 = new Map([ + ["a", $a([$a([167, 138, 118, 108, 88, 78, 59]), $a([167, 138, 118, 98, 78]), $a([197, 167, 138, 108, 78])])], + ["b", $a([$a([336, 296, 256, 208, 160, 104, 56]), $a([768, 648, 536, 416, 304, 208, 152, 112, 72, 32]), $a([1184, 1016, 840, 672, 496, 352, 264, 208, 152, 96, 56])])] + ]); //#25864 + $1.bitcaps = $get($get(_73, $1.ccversion), $f($1.cccolumns - 2)); //#25866 + $k[$j++] = -1; //#25867 + $forall($1.bitcaps, function() { //#25867 + var _79 = $k[--$j]; //#25867 + $k[$j++] = _79; //#25867 + if ($ge(_79, $1.used)) { //#25867 + var _7B = $k[--$j]; //#25867 + var _7C = $k[--$j]; //#25867 + $k[$j++] = _7B; //#25867 + $k[$j++] = _7C; //#25867 + } //#25867 + $j--; //#25867 + }); //#25867 + var _7D = $k[--$j]; //#25868 + $k[$j++] = _7D; //#25868 + if (_7D != -1) { //#25868 + var _7F = $k[--$j]; //#25868 + $k[$j++] = $f(_7F - $1.used); //#25868 + } //#25868 + } else { //#25885 + var _7G = new Map([ + ["c", -1] + ]); //#25870 + var _7I = $get(_7G, $1.ccversion); //#25870 + var _7K = ~~Math.ceil($1.used / 8); //#25871 + $1.m = ((~~(_7K / 6)) * 5) + (_7K % 6); //#25871 + if ($1.m <= 40) { //#25872 + $k[$j++] = 8; //#25872 + } //#25872 + if (($1.m >= 41) && ($1.m <= 160)) { //#25873 + $k[$j++] = 16; //#25873 + } //#25873 + if (($1.m >= 161) && ($1.m <= 320)) { //#25874 + $k[$j++] = 32; //#25874 + } //#25874 + if (($1.m >= 321) && ($1.m <= 833)) { //#25875 + $k[$j++] = 64; //#25875 + } //#25875 + if ($1.m >= 834) { //#25876 + $k[$j++] = 32; //#25876 + } //#25876 + $1.eccws = $k[--$j]; //#25877 + $1.m = $f($f($1.m + $1.eccws) + 3); //#25878 + for (;;) { //#25882 + if (((~~Math.ceil($1.m / $1.cccolumns)) <= 30) || ($1.cccolumns >= 30)) { //#25880 + break; //#25880 + } //#25880 + $1.cccolumns = $f($1.cccolumns + 1); //#25881 + } //#25881 + $1.r = ~~Math.ceil($1.m / $1.cccolumns); //#25883 + var _7f = $f(($f(($1.cccolumns * $1.r) - $1.eccws)) - 3); //#25884 + $1.tgt = ($f(((~~(_7f / 5)) * 6) + (_7f % 5))) * 8; //#25884 + if ($1.used <= 8304) { //#25885 + $k[$j++] = $f($1.tgt - $1.used); //#25885 + } else { //#25885 + $k[$j++] = -1; //#25885 + } //#25885 + } //#25885 + var _7j = $k[--$j]; //#25887 + $k[$j++] = _7j; //#25900 + if (_7j == -1) { //#25900 + $j--; //#25888 + if ($eq($1.ccversion, "a")) { //#25896 + $1.ccversion = "b"; //#25890 + } else { //#25896 + if ($eq($1.ccversion, "b") && $eq($1.lintype, "gs1-128")) { //#25896 + $1.ccversion = "c"; //#25893 + $1.cccolumns = ~~(($1.linwidth - 52) / 17); //#25894 + } else { //#25896 + $1.ccversion = -1; //#25896 + } //#25896 + } //#25896 + $k[$j++] = $1.used; //#25899 + $1.rembits(); //#25899 + } //#25899 + }; //#25901 + $1.encode = function() { + var _7p = $k[--$j]; //#25904 + $k[$j++] = _7p; //#25904 + if ($ne(_7p, 'raw')) { //#25904 + var _7q = $k[--$j]; //#25904 + var _7s = $get(_7q, $k[--$j]); //#25904 + $k[$j++] = _7s; //#25904 + } else { //#25904 + $j--; //#25904 + } //#25904 + $k[$j++] = Infinity; //#25905 + var _7t = $k[--$j]; //#25905 + var _7u = $k[--$j]; //#25905 + $k[$j++] = _7t; //#25905 + $forall(_7u, function() { //#25905 + var _7v = $k[--$j]; //#25905 + $k[$j++] = $f(_7v - 48); //#25905 + }); //#25905 + var _7w = $a(); //#25905 + $puti($1.gpfenc, $1.j, _7w); //#25907 + $1.j = _7w.length + $1.j; //#25908 + }; //#25909 + $k[$j++] = Infinity; //#25912 + for (var _81 = 0, _82 = $1.gpf.length; _81 < _82; _81++) { //#25912 + $k[$j++] = 0; //#25912 + } //#25912 + $k[$j++] = 0; //#25912 + $k[$j++] = -1; //#25912 + $1.numericruns = $a(); //#25912 + $k[$j++] = Infinity; //#25913 + for (var _85 = 0, _86 = $1.gpf.length; _85 < _86; _85++) { //#25913 + $k[$j++] = 0; //#25913 + } //#25913 + $k[$j++] = 0; //#25913 + $1.alphanumericruns = $a(); //#25913 + $k[$j++] = Infinity; //#25914 + for (var _89 = 0, _8A = $1.gpf.length; _89 < _8A; _89++) { //#25914 + $k[$j++] = 0; //#25914 + } //#25914 + $k[$j++] = 9999; //#25914 + $1.nextiso646only = $a(); //#25914 + for (var _8D = $1.gpf.length - 1; _8D >= 0; _8D -= 1) { //#25936 + $1.i = _8D; //#25916 + var _8I = $strcpy($s(2), "00"); //#25918 + var _8L = $get($1.gpf, $1.i); //#25919 + $k[$j++] = $get($1.gpf, $1.i); //#25919 + $k[$j++] = _8I; //#25919 + $k[$j++] = _8I; //#25919 + $k[$j++] = 0; //#25919 + $k[$j++] = _8L; //#25919 + if (_8L == $1.fnc1) { //#25919 + $j--; //#25919 + $k[$j++] = 94; //#25919 + } //#25919 + var _8N = $k[--$j]; //#25919 + var _8O = $k[--$j]; //#25919 + $put($k[--$j], _8O, _8N); //#25919 + if ($1.i < ($1.gpf.length - 1)) { //#25920 + var _8S = $k[--$j]; //#25920 + var _8V = $get($1.gpf, $1.i + 1); //#25920 + $k[$j++] = _8S; //#25920 + $k[$j++] = _8S; //#25920 + $k[$j++] = 1; //#25920 + $k[$j++] = _8V; //#25920 + if (_8V == $1.fnc1) { //#25920 + $j--; //#25920 + $k[$j++] = 94; //#25920 + } //#25920 + var _8X = $k[--$j]; //#25920 + var _8Y = $k[--$j]; //#25920 + $put($k[--$j], _8Y, _8X); //#25920 + } //#25920 + var _8c = $get($1.numeric, $k[--$j]) !== undefined; //#25921 + if (_8c) { //#25924 + $put($1.numericruns, $1.i, $f($get($1.numericruns, $1.i + 2) + 2)); //#25922 + } else { //#25924 + $put($1.numericruns, $1.i, 0); //#25924 + } //#25924 + var _8k = $k[--$j]; //#25926 + var _8m = $get($1.alphanumeric, _8k) !== undefined; //#25926 + $k[$j++] = _8k; //#25930 + if (_8m) { //#25929 + $put($1.alphanumericruns, $1.i, $f($get($1.alphanumericruns, $1.i + 1) + 1)); //#25927 + } else { //#25929 + $put($1.alphanumericruns, $1.i, 0); //#25929 + } //#25929 + var _8u = $k[--$j]; //#25931 + var _8w = $get($1.iso646, _8u) !== undefined; //#25931 + var _8y = $get($1.alphanumeric, _8u) !== undefined; //#25931 + if (_8w && (!_8y)) { //#25934 + $put($1.nextiso646only, $1.i, 0); //#25932 + } else { //#25934 + $put($1.nextiso646only, $1.i, $f($get($1.nextiso646only, $1.i + 1) + 1)); //#25934 + } //#25934 + } //#25934 + $1.gpfenc = $a(8304); //#25939 + $1.i = 0; //#25940 + $1.j = 0; //#25940 + for (;;) { //#26030 + if ($1.i == $1.gpf.length) { //#25942 + break; //#25942 + } //#25942 + for (;;) { //#26029 + if ($eq($1.mode, "numeric")) { //#25978 + if ($1.i <= ($1.gpf.length - 2)) { //#25975 + var _9C = $s(2); //#25947 + var _9F = $get($1.gpf, $1.i); //#25948 + $k[$j++] = _9C; //#25948 + $k[$j++] = _9C; //#25948 + $k[$j++] = 0; //#25948 + $k[$j++] = _9F; //#25948 + if (_9F == $1.fnc1) { //#25948 + $j--; //#25948 + $k[$j++] = 94; //#25948 + } //#25948 + var _9H = $k[--$j]; //#25948 + var _9I = $k[--$j]; //#25948 + $put($k[--$j], _9I, _9H); //#25948 + var _9K = $k[--$j]; //#25949 + var _9N = $get($1.gpf, $1.i + 1); //#25949 + $k[$j++] = _9K; //#25949 + $k[$j++] = _9K; //#25949 + $k[$j++] = 1; //#25949 + $k[$j++] = _9N; //#25949 + if (_9N == $1.fnc1) { //#25949 + $j--; //#25949 + $k[$j++] = 94; //#25949 + } //#25949 + var _9P = $k[--$j]; //#25949 + var _9Q = $k[--$j]; //#25949 + $put($k[--$j], _9Q, _9P); //#25949 + var _9S = $k[--$j]; //#25950 + var _9U = $get($1.numeric, _9S) !== undefined; //#25950 + $k[$j++] = _9S; //#25954 + if (_9U) { //#25954 + $k[$j++] = $1.numeric; //#25951 + $1.encode(); //#25951 + $1.i = $1.i + 2; //#25952 + break; //#25953 + } //#25953 + $j--; //#25955 + $k[$j++] = $1.lalphanumeric; //#25956 + $k[$j++] = $1.numeric; //#25956 + $1.encode(); //#25956 + $1.mode = "alphanumeric"; //#25957 + break; //#25958 + } else { //#25975 + var _9b = $get($1.gpf, $1.i); //#25960 + if ((_9b < 48) || (_9b > 57)) { //#25964 + $k[$j++] = $1.lalphanumeric; //#25961 + $k[$j++] = $1.numeric; //#25961 + $1.encode(); //#25961 + $1.mode = "alphanumeric"; //#25962 + break; //#25963 + } //#25963 + $k[$j++] = 'rem'; //#25965 + $k[$j++] = $1.cdf.length + $1.j; //#25965 + $1.rembits(); //#25965 + var _9g = $k[--$j]; //#25965 + $1[$k[--$j]] = _9g; //#25965 + if (($1.rem >= 4) && ($1.rem <= 6)) { //#25975 + var _9n = $geti($strcpy($s(6), "000000"), 0, $1.rem); //#25967 + var _9s = $cvrs($s(4), $f($get($1.gpf, $1.i) - 47), 2); //#25968 + $puti(_9n, 4 - _9s.length, _9s); //#25969 + $k[$j++] = _9n; //#25969 + $k[$j++] = 'raw'; //#25969 + $1.encode(); //#25969 + $1.i = $1.i + 1; //#25970 + break; //#25971 + } else { //#25975 + var _9u = $s(2); //#25973 + $put(_9u, 0, $get($1.gpf, $1.i)); //#25973 + $put(_9u, 1, 94); //#25973 + $k[$j++] = _9u; //#25973 + $k[$j++] = $1.numeric; //#25973 + $1.encode(); //#25973 + $1.i = $1.i + 1; //#25974 + break; //#25975 + } //#25975 + } //#25975 + } //#25975 + if ($eq($1.mode, "alphanumeric")) { //#26005 + if ($get($1.gpf, $1.i) == $1.fnc1) { //#25986 + $k[$j++] = $1.fnc1; //#25982 + $k[$j++] = $1.alphanumeric; //#25982 + $1.encode(); //#25982 + $1.mode = "numeric"; //#25983 + $1.i = $1.i + 1; //#25984 + break; //#25985 + } //#25985 + var _AA = $get($1.gpf, $1.i); //#25987 + var _AC = $get($1.iso646, _AA) !== undefined; //#25987 + var _AE = $get($1.alphanumeric, _AA) !== undefined; //#25987 + if (_AC && (!_AE)) { //#25991 + $k[$j++] = $1.liso646; //#25988 + $k[$j++] = $1.alphanumeric; //#25988 + $1.encode(); //#25988 + $1.mode = "iso646"; //#25989 + break; //#25990 + } //#25990 + if ($get($1.numericruns, $1.i) >= 6) { //#25996 + $k[$j++] = $1.lnumeric; //#25993 + $k[$j++] = $1.alphanumeric; //#25993 + $1.encode(); //#25993 + $1.mode = "numeric"; //#25994 + break; //#25995 + } //#25995 + var _AO = $get($1.numericruns, $1.i); //#25997 + if ((_AO >= 4) && ($f(_AO + $1.i) == $1.gpf.length)) { //#26001 + $k[$j++] = $1.lnumeric; //#25998 + $k[$j++] = $1.alphanumeric; //#25998 + $1.encode(); //#25998 + $1.mode = "numeric"; //#25999 + break; //#26000 + } //#26000 + $k[$j++] = $get($1.gpf, $1.i); //#26002 + $k[$j++] = $1.alphanumeric; //#26002 + $1.encode(); //#26002 + $1.i = $1.i + 1; //#26003 + break; //#26004 + } //#26004 + if ($eq($1.mode, "iso646")) { //#26027 + if ($get($1.gpf, $1.i) == $1.fnc1) { //#26013 + $k[$j++] = $1.fnc1; //#26009 + $k[$j++] = $1.iso646; //#26009 + $1.encode(); //#26009 + $1.mode = "numeric"; //#26010 + $1.i = $1.i + 1; //#26011 + break; //#26012 + } //#26012 + if (($get($1.numericruns, $1.i) >= 4) && ($get($1.nextiso646only, $1.i) >= 10)) { //#26018 + $k[$j++] = $1.lnumeric; //#26015 + $k[$j++] = $1.iso646; //#26015 + $1.encode(); //#26015 + $1.mode = "numeric"; //#26016 + break; //#26017 + } //#26017 + if (($get($1.alphanumericruns, $1.i) >= 5) && ($get($1.nextiso646only, $1.i) >= 10)) { //#26023 + $k[$j++] = $1.lalphanumeric; //#26020 + $k[$j++] = $1.iso646; //#26020 + $1.encode(); //#26020 + $1.mode = "alphanumeric"; //#26021 + break; //#26022 + } //#26022 + $k[$j++] = $get($1.gpf, $1.i); //#26024 + $k[$j++] = $1.iso646; //#26024 + $1.encode(); //#26024 + $1.i = $1.i + 1; //#26025 + break; //#26026 + } //#26026 + } //#26026 + } //#26026 + $1.gpf = $geti($1.gpfenc, 0, $1.j); //#26031 + $k[$j++] = 'pad'; //#26034 + $k[$j++] = $1.cdf.length + $1.gpf.length; //#26034 + $1.rembits(); //#26034 + var _B7 = $a($k[--$j]); //#26034 + $1[$k[--$j]] = _B7; //#26034 + if ($1.pad.length > 0) { //#26046 + for (var _BC = 0, _BB = $1.pad.length - 1; _BC <= _BB; _BC += 5) { //#26039 + $1.i = _BC; //#26037 + var _BD = $1.pad; //#26038 + var _BE = $1.i; //#26038 + var _BF = $a([0, 0, 1, 0, 0]); //#26038 + var _BG = $1.pad; //#26038 + var _BH = $1.i; //#26038 + var _BI = 5; //#26038 + var _BJ = _BG.length - _BH; //#26038 + if ((_BG.length - _BH) > 5) { //#26038 + var _ = _BI; //#26038 + _BI = _BJ; //#26038 + _BJ = _; //#26038 + } //#26038 + $puti(_BD, _BE, $geti(_BF, 0, _BJ)); //#26038 + } //#26038 + if ($eq($1.mode, "numeric")) { //#26042 + $k[$j++] = Infinity; //#26041 + $k[$j++] = 0; //#26041 + $k[$j++] = 0; //#26041 + $k[$j++] = 0; //#26041 + $k[$j++] = 0; //#26041 + $aload($1.pad); //#26041 + $1.pad = $geti($a(), 0, $1.pad.length); //#26041 + } //#26041 + if ($eq($1.mode, "alpha")) { //#26045 + $k[$j++] = Infinity; //#26044 + $k[$j++] = 1; //#26044 + $k[$j++] = 1; //#26044 + $k[$j++] = 1; //#26044 + $k[$j++] = 1; //#26044 + $k[$j++] = 1; //#26044 + $k[$j++] = 0; //#26044 + $k[$j++] = 0; //#26044 + $k[$j++] = 0; //#26044 + $k[$j++] = 0; //#26044 + $aload($1.pad); //#26044 + $1.pad = $geti($a(), 0, $1.pad.length); //#26044 + } //#26044 + } //#26044 + $k[$j++] = Infinity; //#26052 + $aload($1.cdf); //#26050 + $aload($1.gpf); //#26051 + $aload($1.pad); //#26052 + $1.bits = $a(); //#26052 + if ($1.ccversion == "a") { //#26109 + $k[$j++] = Infinity; //#26058 + $k[$j++] = $a([0, 0, 0, 0, 0, 0, 1]); //#26058 + for (var _Bb = 0, _Bc = 68; _Bb < _Bc; _Bb++) { //#26058 + $k[$j++] = $a(7); //#26058 + } //#26058 + $1.pwr928 = $a(); //#26058 + for (var _Bf = 1; _Bf <= 68; _Bf += 1) { //#26069 + $1.j = _Bf; //#26061 + $1.v = 0; //#26062 + for (var _Bg = 6; _Bg >= 1; _Bg -= 1) { //#26067 + $1.i = _Bg; //#26064 + $1.v = $f(($get($get($1.pwr928, $1.j - 1), $1.i) * 2) + (~~($1.v / 928))); //#26065 + $put($get($1.pwr928, $1.j), $1.i, $1.v % 928); //#26066 + } //#26066 + $put($get($1.pwr928, $1.j), 0, $f(($get($get($1.pwr928, $1.j - 1), 0) * 2) + (~~($1.v / 928)))); //#26068 + } //#26068 + $k[$j++] = Infinity; //#26070 + for (var _C0 = 0, _C1 = 28; _C0 < _C1; _C0++) { //#26070 + $k[$j++] = 0; //#26070 + } //#26070 + $1.cws = $a(); //#26070 + $1.b = 0; //#26071 + $1.c = 0; //#26071 + for (;;) { //#26095 + if ($1.b == $1.bits.length) { //#26073 + break; //#26073 + } //#26073 + var _C5 = $1.bits; //#26074 + var _C6 = $1.b; //#26074 + var _C7 = $1.bits; //#26074 + var _C8 = $1.b; //#26074 + var _C9 = _C7.length - _C8; //#26074 + var _CA = 69; //#26074 + if (69 > (_C7.length - _C8)) { //#26074 + var _ = _C9; //#26074 + _C9 = _CA; //#26074 + _CA = _; //#26074 + } //#26074 + $1.bs = $geti(_C5, _C6, _CA); //#26074 + $1.bsl = $1.bs.length; //#26075 + $1.cs = $geti($1.cws, $1.c, (~~($1.bsl / 10)) + 1); //#26076 + $1.csl = $1.cs.length; //#26077 + for (var _CK = 0, _CJ = $1.bsl - 1; _CK <= _CJ; _CK += 1) { //#26087 + $1.i = _CK; //#26079 + for (var _CN = 0, _CM = $1.csl - 1; _CN <= _CM; _CN += 1) { //#26086 + $1.j = _CN; //#26081 + var _CO = $1.cs; //#26082 + var _CP = $1.j; //#26082 + $put(_CO, _CP, $f($get(_CO, _CP) + ($get($get($1.pwr928, $1.i), ($1.j + 7) - $1.csl) * $get($1.bs, ($1.bsl - $1.i) - 1)))); //#26085 + } //#26085 + } //#26085 + for (var _Cc = $1.csl - 1; _Cc >= 1; _Cc -= 1) { //#26092 + $1.i = _Cc; //#26089 + var _Cd = $1.cs; //#26090 + var _Ce = $1.i; //#26090 + $put(_Cd, _Ce - 1, $f($get(_Cd, _Ce - 1) + (~~($get($1.cs, $1.i) / 928)))); //#26090 + var _Cj = $1.cs; //#26091 + var _Ck = $1.i; //#26091 + $put(_Cj, _Ck, $get(_Cj, _Ck) % 928); //#26091 + } //#26091 + $1.b = $1.b + $1.bsl; //#26093 + $1.c = $1.c + $1.csl; //#26094 + } //#26094 + $1.cws = $geti($1.cws, 0, $1.c); //#26096 + $1.barcode = $s($1.cws.length * 4); //#26097 + for (var _Cx = 0, _Cw = $1.cws.length - 1; _Cx <= _Cw; _Cx += 1) { //#26103 + $1.i = _Cx; //#26099 + var _Cz = $strcpy($s(4), "^ "); //#26100 + var _D4 = $cvrs($s(4), $get($1.cws, $1.i), 10); //#26100 + $puti(_Cz, 4 - _D4.length, _D4); //#26101 + $puti($1.barcode, $1.i * 4, _Cz); //#26102 + } //#26102 + delete $1.options["parse"]; //#26104 + $put($1.options, "dontdraw", true); //#26105 + $put($1.options, "cca", true); //#26106 + $put($1.options, "columns", $1.cccolumns); //#26107 + $k[$j++] = 'args'; //#26108 + $k[$j++] = $1.barcode; //#26108 + $k[$j++] = $1.options; //#26108 + $0.micropdf417(); //#26108 + var _DE = $k[--$j]; //#26108 + $1[$k[--$j]] = _DE; //#26108 + } //#26108 + if ($1.ccversion == "b") { //#26123 + $1.barcode = $s(~~($1.bits.length / 8)); //#26112 + for (var _DL = 0, _DK = $1.barcode.length - 1; _DL <= _DK; _DL += 1) { //#26117 + $1.i = _DL; //#26114 + var _DO = $geti($1.bits, $1.i * 8, 8); //#26115 + $k[$j++] = 0; //#26115 + for (var _DP = 0, _DQ = _DO.length; _DP < _DQ; _DP++) { //#26115 + var _DS = $k[--$j]; //#26115 + $k[$j++] = $f(_DS + $get(_DO, _DP)) * 2; //#26115 + } //#26115 + $put($1.barcode, $1.i, ~~($k[--$j] / 2)); //#26116 + } //#26116 + delete $1.options["parse"]; //#26118 + $put($1.options, "dontdraw", true); //#26119 + $put($1.options, "ccb", true); //#26120 + $put($1.options, "columns", $1.cccolumns); //#26121 + $k[$j++] = 'args'; //#26122 + $k[$j++] = $1.barcode; //#26122 + $k[$j++] = $1.options; //#26122 + $0.micropdf417(); //#26122 + var _Dd = $k[--$j]; //#26122 + $1[$k[--$j]] = _Dd; //#26122 + } //#26122 + if ($1.ccversion == "c") { //#26138 + $1.barcode = $s(~~($1.bits.length / 8)); //#26126 + for (var _Dk = 0, _Dj = $1.barcode.length - 1; _Dk <= _Dj; _Dk += 1) { //#26131 + $1.i = _Dk; //#26128 + var _Dn = $geti($1.bits, $1.i * 8, 8); //#26129 + $k[$j++] = 0; //#26129 + for (var _Do = 0, _Dp = _Dn.length; _Do < _Dp; _Do++) { //#26129 + var _Dr = $k[--$j]; //#26129 + $k[$j++] = $f(_Dr + $get(_Dn, _Do)) * 2; //#26129 + } //#26129 + $put($1.barcode, $1.i, ~~($k[--$j] / 2)); //#26130 + } //#26130 + delete $1.options["parse"]; //#26132 + $put($1.options, "dontdraw", true); //#26133 + $put($1.options, "ccc", true); //#26134 + $put($1.options, "columns", $1.cccolumns); //#26135 + $put($1.options, "eclevel", (~~(Math.log($1.eccws) / Math.log(2))) - 1); //#26136 + $k[$j++] = 'args'; //#26137 + $k[$j++] = $1.barcode; //#26137 + $k[$j++] = $1.options; //#26137 + $0.pdf417(); //#26137 + var _E4 = $k[--$j]; //#26137 + $1[$k[--$j]] = _E4; //#26137 + } //#26137 + $k[$j++] = $1.args; //#26141 + if (!$1.dontdraw) { //#26141 + $0.renmatrix(); //#26141 + } //#26141 }; $0.ean13composite = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $search($1.barcode, "|"); - if ($k[--$j]) { - $1.linear = $k[--$j]; - $j--; - $1.comp = $k[--$j]; - } else { - $j--; - } - $$.save(); - $put($1.options, "lintype", "ean13"); - $put($1.options, "inkspread", "0"); - $put($1.options, "dontdraw", true); - $k[$j++] = $1.linear; - $k[$j++] = $1.options; - $0.ean13(); - $0.renlinear(); - $$.rmoveto(-1, 72); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = 1; - for (var _E = 0, _F = 93; _E < _F; _E++) { - $k[$j++] = 0; - } - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - for (var _G = 0, _H = 93; _G < _H; _G++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - for (var _I = 0, _J = 93; _I < _J; _I++) { - $k[$j++] = 0; - } - $k[$j++] = 1; - $k[$j++] = 0; - var _K = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renmatrix; - $k[$j++] = "pixs"; - $k[$j++] = _K; - $k[$j++] = "pixx"; - $k[$j++] = 97; - $k[$j++] = "pixy"; - $k[$j++] = 3; - $k[$j++] = "height"; - $k[$j++] = 6 / 72; - $k[$j++] = "width"; - $k[$j++] = 97 / 72; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _M = $d(); - $k[$j++] = _M; - $0.renmatrix(); - $$.rmoveto(-2, 6); - $k[$j++] = $1.comp; - $k[$j++] = $1.options; - $0["gs1-cc"](); - $0.renmatrix(); - $$.restore(); + var $1 = {}; //#26173 + $1.options = $k[--$j]; //#26175 + $1.barcode = $k[--$j]; //#26176 + $1.dontdraw = false; //#26178 + $forall($1.options, function() { //#26189 + var _3 = $k[--$j]; //#26189 + $1[$k[--$j]] = _3; //#26189 + }); //#26189 + $search($1.barcode, "|"); //#26192 + if ($k[--$j]) { //#26197 + $1.linear = $k[--$j]; //#26193 + $j--; //#26194 + $1.comp = $k[--$j]; //#26195 + } else { //#26197 + $j--; //#26197 + } //#26197 + $$.save(); //#26200 + $put($1.options, "lintype", "ean13"); //#26202 + $put($1.options, "inkspread", "0"); //#26203 + $put($1.options, "dontdraw", true); //#26204 + $k[$j++] = $1.linear; //#26207 + $k[$j++] = $1.options; //#26207 + $0.ean13(); //#26207 + $0.renlinear(); //#26207 + $$.rmoveto(-1, 72); //#26210 + $k[$j++] = Infinity; //#26221 + $k[$j++] = Infinity; //#26215 + $k[$j++] = 0; //#26213 + $k[$j++] = 1; //#26213 + for (var _E = 0, _F = 93; _E < _F; _E++) { //#26213 + $k[$j++] = 0; //#26213 + } //#26213 + $k[$j++] = 1; //#26214 + $k[$j++] = 0; //#26214 + $k[$j++] = 1; //#26214 + $k[$j++] = 0; //#26214 + for (var _G = 0, _H = 93; _G < _H; _G++) { //#26214 + $k[$j++] = 0; //#26214 + } //#26214 + $k[$j++] = 0; //#26215 + $k[$j++] = 1; //#26215 + $k[$j++] = 0; //#26215 + $k[$j++] = 1; //#26215 + for (var _I = 0, _J = 93; _I < _J; _I++) { //#26215 + $k[$j++] = 0; //#26215 + } //#26215 + $k[$j++] = 1; //#26215 + $k[$j++] = 0; //#26215 + var _K = $a(); //#26215 + $k[$j++] = 'ren'; //#26221 + $k[$j++] = $0.renmatrix; //#26221 + $k[$j++] = 'pixs'; //#26221 + $k[$j++] = _K; //#26221 + $k[$j++] = 'pixx'; //#26221 + $k[$j++] = 97; //#26221 + $k[$j++] = 'pixy'; //#26221 + $k[$j++] = 3; //#26221 + $k[$j++] = 'height'; //#26221 + $k[$j++] = 6 / 72; //#26221 + $k[$j++] = 'width'; //#26221 + $k[$j++] = 97 / 72; //#26221 + $k[$j++] = 'opt'; //#26221 + $k[$j++] = $1.options; //#26221 + var _M = $d(); //#26221 + $k[$j++] = _M; //#26222 + $0.renmatrix(); //#26222 + $$.rmoveto(-2, 6); //#26225 + $k[$j++] = $1.comp; //#26225 + $k[$j++] = $1.options; //#26225 + $0["gs1-cc"](); //#26225 + $0.renmatrix(); //#26225 + $$.restore(); //#26227 }; $0.ean8composite = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $search($1.barcode, "|"); - if ($k[--$j]) { - $1.linear = $k[--$j]; - $j--; - $1.comp = $k[--$j]; - } else { - $j--; - } - $$.save(); - $put($1.options, "lintype", "ean8"); - $put($1.options, "inkspread", "0"); - $put($1.options, "dontdraw", true); - $k[$j++] = $1.linear; - $k[$j++] = $1.options; - $0.ean8(); - $0.renlinear(); - $$.rmoveto(-1, 72); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = 1; - for (var _E = 0, _F = 65; _E < _F; _E++) { - $k[$j++] = 0; - } - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - for (var _G = 0, _H = 65; _G < _H; _G++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - for (var _I = 0, _J = 65; _I < _J; _I++) { - $k[$j++] = 0; - } - $k[$j++] = 1; - $k[$j++] = 0; - var _K = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renmatrix; - $k[$j++] = "pixs"; - $k[$j++] = _K; - $k[$j++] = "pixx"; - $k[$j++] = 69; - $k[$j++] = "pixy"; - $k[$j++] = 3; - $k[$j++] = "height"; - $k[$j++] = 6 / 72; - $k[$j++] = "width"; - $k[$j++] = 69 / 72; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _M = $d(); - $k[$j++] = _M; - $0.renmatrix(); - $k[$j++] = $1.comp; - $k[$j++] = $1.options; - $0["gs1-cc"](); - var _P = $k[--$j]; - $$.rmoveto($f(69 - $get(_P, "pixx")), 6); - $k[$j++] = _P; - $0.renmatrix(); - $$.restore(); + var $1 = {}; //#26259 + $1.options = $k[--$j]; //#26261 + $1.barcode = $k[--$j]; //#26262 + $1.dontdraw = false; //#26264 + $forall($1.options, function() { //#26275 + var _3 = $k[--$j]; //#26275 + $1[$k[--$j]] = _3; //#26275 + }); //#26275 + $search($1.barcode, "|"); //#26278 + if ($k[--$j]) { //#26283 + $1.linear = $k[--$j]; //#26279 + $j--; //#26280 + $1.comp = $k[--$j]; //#26281 + } else { //#26283 + $j--; //#26283 + } //#26283 + $$.save(); //#26286 + $put($1.options, "lintype", "ean8"); //#26289 + $put($1.options, "inkspread", "0"); //#26290 + $put($1.options, "dontdraw", true); //#26291 + $k[$j++] = $1.linear; //#26294 + $k[$j++] = $1.options; //#26294 + $0.ean8(); //#26294 + $0.renlinear(); //#26294 + $$.rmoveto(-1, 72); //#26297 + $k[$j++] = Infinity; //#26308 + $k[$j++] = Infinity; //#26302 + $k[$j++] = 0; //#26300 + $k[$j++] = 1; //#26300 + for (var _E = 0, _F = 65; _E < _F; _E++) { //#26300 + $k[$j++] = 0; //#26300 + } //#26300 + $k[$j++] = 1; //#26301 + $k[$j++] = 0; //#26301 + $k[$j++] = 1; //#26301 + $k[$j++] = 0; //#26301 + for (var _G = 0, _H = 65; _G < _H; _G++) { //#26301 + $k[$j++] = 0; //#26301 + } //#26301 + $k[$j++] = 0; //#26302 + $k[$j++] = 1; //#26302 + $k[$j++] = 0; //#26302 + $k[$j++] = 1; //#26302 + for (var _I = 0, _J = 65; _I < _J; _I++) { //#26302 + $k[$j++] = 0; //#26302 + } //#26302 + $k[$j++] = 1; //#26302 + $k[$j++] = 0; //#26302 + var _K = $a(); //#26302 + $k[$j++] = 'ren'; //#26308 + $k[$j++] = $0.renmatrix; //#26308 + $k[$j++] = 'pixs'; //#26308 + $k[$j++] = _K; //#26308 + $k[$j++] = 'pixx'; //#26308 + $k[$j++] = 69; //#26308 + $k[$j++] = 'pixy'; //#26308 + $k[$j++] = 3; //#26308 + $k[$j++] = 'height'; //#26308 + $k[$j++] = 6 / 72; //#26308 + $k[$j++] = 'width'; //#26308 + $k[$j++] = 69 / 72; //#26308 + $k[$j++] = 'opt'; //#26308 + $k[$j++] = $1.options; //#26308 + var _M = $d(); //#26308 + $k[$j++] = _M; //#26309 + $0.renmatrix(); //#26309 + $k[$j++] = $1.comp; //#26312 + $k[$j++] = $1.options; //#26312 + $0["gs1-cc"](); //#26312 + var _P = $k[--$j]; //#26313 + $$.rmoveto($f(69 - $get(_P, "pixx")), 6); //#26313 + $k[$j++] = _P; //#26314 + $0.renmatrix(); //#26314 + $$.restore(); //#26316 }; $0.upcacomposite = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $search($1.barcode, "|"); - if ($k[--$j]) { - $1.linear = $k[--$j]; - $j--; - $1.comp = $k[--$j]; - } else { - $j--; - } - $$.save(); - $put($1.options, "lintype", "ean13"); - $put($1.options, "inkspread", "0"); - $put($1.options, "dontdraw", true); - $k[$j++] = $1.linear; - $k[$j++] = $1.options; - $0.upca(); - $0.renlinear(); - $$.rmoveto(-1, 72); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = 1; - for (var _E = 0, _F = 93; _E < _F; _E++) { - $k[$j++] = 0; - } - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - for (var _G = 0, _H = 93; _G < _H; _G++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - for (var _I = 0, _J = 93; _I < _J; _I++) { - $k[$j++] = 0; - } - $k[$j++] = 1; - $k[$j++] = 0; - var _K = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renmatrix; - $k[$j++] = "pixs"; - $k[$j++] = _K; - $k[$j++] = "pixx"; - $k[$j++] = 97; - $k[$j++] = "pixy"; - $k[$j++] = 3; - $k[$j++] = "height"; - $k[$j++] = 6 / 72; - $k[$j++] = "width"; - $k[$j++] = 97 / 72; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _M = $d(); - $k[$j++] = _M; - $0.renmatrix(); - $$.rmoveto(-2, 6); - $k[$j++] = $1.comp; - $k[$j++] = $1.options; - $0["gs1-cc"](); - $0.renmatrix(); - $$.restore(); + var $1 = {}; //#26348 + $1.options = $k[--$j]; //#26350 + $1.barcode = $k[--$j]; //#26351 + $1.dontdraw = false; //#26353 + $forall($1.options, function() { //#26364 + var _3 = $k[--$j]; //#26364 + $1[$k[--$j]] = _3; //#26364 + }); //#26364 + $search($1.barcode, "|"); //#26367 + if ($k[--$j]) { //#26372 + $1.linear = $k[--$j]; //#26368 + $j--; //#26369 + $1.comp = $k[--$j]; //#26370 + } else { //#26372 + $j--; //#26372 + } //#26372 + $$.save(); //#26375 + $put($1.options, "lintype", "ean13"); //#26377 + $put($1.options, "inkspread", "0"); //#26378 + $put($1.options, "dontdraw", true); //#26379 + $k[$j++] = $1.linear; //#26382 + $k[$j++] = $1.options; //#26382 + $0.upca(); //#26382 + $0.renlinear(); //#26382 + $$.rmoveto(-1, 72); //#26385 + $k[$j++] = Infinity; //#26396 + $k[$j++] = Infinity; //#26390 + $k[$j++] = 0; //#26388 + $k[$j++] = 1; //#26388 + for (var _E = 0, _F = 93; _E < _F; _E++) { //#26388 + $k[$j++] = 0; //#26388 + } //#26388 + $k[$j++] = 1; //#26389 + $k[$j++] = 0; //#26389 + $k[$j++] = 1; //#26389 + $k[$j++] = 0; //#26389 + for (var _G = 0, _H = 93; _G < _H; _G++) { //#26389 + $k[$j++] = 0; //#26389 + } //#26389 + $k[$j++] = 0; //#26390 + $k[$j++] = 1; //#26390 + $k[$j++] = 0; //#26390 + $k[$j++] = 1; //#26390 + for (var _I = 0, _J = 93; _I < _J; _I++) { //#26390 + $k[$j++] = 0; //#26390 + } //#26390 + $k[$j++] = 1; //#26390 + $k[$j++] = 0; //#26390 + var _K = $a(); //#26390 + $k[$j++] = 'ren'; //#26396 + $k[$j++] = $0.renmatrix; //#26396 + $k[$j++] = 'pixs'; //#26396 + $k[$j++] = _K; //#26396 + $k[$j++] = 'pixx'; //#26396 + $k[$j++] = 97; //#26396 + $k[$j++] = 'pixy'; //#26396 + $k[$j++] = 3; //#26396 + $k[$j++] = 'height'; //#26396 + $k[$j++] = 6 / 72; //#26396 + $k[$j++] = 'width'; //#26396 + $k[$j++] = 97 / 72; //#26396 + $k[$j++] = 'opt'; //#26396 + $k[$j++] = $1.options; //#26396 + var _M = $d(); //#26396 + $k[$j++] = _M; //#26397 + $0.renmatrix(); //#26397 + $$.rmoveto(-2, 6); //#26400 + $k[$j++] = $1.comp; //#26400 + $k[$j++] = $1.options; //#26400 + $0["gs1-cc"](); //#26400 + $0.renmatrix(); //#26400 + $$.restore(); //#26402 }; $0.upcecomposite = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $search($1.barcode, "|"); - if ($k[--$j]) { - $1.linear = $k[--$j]; - $j--; - $1.comp = $k[--$j]; - } else { - $j--; - } - $k[$j++] = Infinity; - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = 1; - for (var _9 = 0, _A = 49; _9 < _A; _9++) { - $k[$j++] = 0; - } - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - for (var _B = 0, _C = 49; _B < _C; _B++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - for (var _D = 0, _E = 49; _D < _E; _D++) { - $k[$j++] = 0; - } - $k[$j++] = 1; - $k[$j++] = 0; - var _F = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renmatrix; - $k[$j++] = "pixs"; - $k[$j++] = _F; - $k[$j++] = "pixx"; - $k[$j++] = 53; - $k[$j++] = "pixy"; - $k[$j++] = 3; - $k[$j++] = "height"; - $k[$j++] = 6 / 72; - $k[$j++] = "width"; - $k[$j++] = 53 / 72; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - $1.sep = $d(); - $$.save(); - $put($1.options, "lintype", "upce"); - $put($1.options, "inkspread", "0"); - $put($1.options, "dontdraw", true); - $k[$j++] = $1.linear; - $k[$j++] = $1.options; - $0.upce(); - $0.renlinear(); - $$.rmoveto(-1, 72); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = 1; - for (var _N = 0, _O = 49; _N < _O; _N++) { - $k[$j++] = 0; - } - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - for (var _P = 0, _Q = 49; _P < _Q; _P++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - for (var _R = 0, _S = 49; _R < _S; _R++) { - $k[$j++] = 0; - } - $k[$j++] = 1; - $k[$j++] = 0; - var _T = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renmatrix; - $k[$j++] = "pixs"; - $k[$j++] = _T; - $k[$j++] = "pixx"; - $k[$j++] = 53; - $k[$j++] = "pixy"; - $k[$j++] = 3; - $k[$j++] = "height"; - $k[$j++] = 6 / 72; - $k[$j++] = "width"; - $k[$j++] = 53 / 72; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _V = $d(); - $k[$j++] = _V; - $0.renmatrix(); - $$.rmoveto(-2, 6); - $k[$j++] = $1.comp; - $k[$j++] = $1.options; - $0["gs1-cc"](); - $0.renmatrix(); - $$.restore(); + var $1 = {}; //#26434 + $1.options = $k[--$j]; //#26436 + $1.barcode = $k[--$j]; //#26437 + $1.dontdraw = false; //#26439 + $forall($1.options, function() { //#26450 + var _3 = $k[--$j]; //#26450 + $1[$k[--$j]] = _3; //#26450 + }); //#26450 + $search($1.barcode, "|"); //#26453 + if ($k[--$j]) { //#26458 + $1.linear = $k[--$j]; //#26454 + $j--; //#26455 + $1.comp = $k[--$j]; //#26456 + } else { //#26458 + $j--; //#26458 + } //#26458 + $k[$j++] = Infinity; //#26473 + $k[$j++] = Infinity; //#26467 + $k[$j++] = 0; //#26465 + $k[$j++] = 1; //#26465 + for (var _9 = 0, _A = 49; _9 < _A; _9++) { //#26465 + $k[$j++] = 0; //#26465 + } //#26465 + $k[$j++] = 1; //#26466 + $k[$j++] = 0; //#26466 + $k[$j++] = 1; //#26466 + $k[$j++] = 0; //#26466 + for (var _B = 0, _C = 49; _B < _C; _B++) { //#26466 + $k[$j++] = 0; //#26466 + } //#26466 + $k[$j++] = 0; //#26467 + $k[$j++] = 1; //#26467 + $k[$j++] = 0; //#26467 + $k[$j++] = 1; //#26467 + for (var _D = 0, _E = 49; _D < _E; _D++) { //#26467 + $k[$j++] = 0; //#26467 + } //#26467 + $k[$j++] = 1; //#26467 + $k[$j++] = 0; //#26467 + var _F = $a(); //#26467 + $k[$j++] = 'ren'; //#26473 + $k[$j++] = $0.renmatrix; //#26473 + $k[$j++] = 'pixs'; //#26473 + $k[$j++] = _F; //#26473 + $k[$j++] = 'pixx'; //#26473 + $k[$j++] = 53; //#26473 + $k[$j++] = 'pixy'; //#26473 + $k[$j++] = 3; //#26473 + $k[$j++] = 'height'; //#26473 + $k[$j++] = 6 / 72; //#26473 + $k[$j++] = 'width'; //#26473 + $k[$j++] = 53 / 72; //#26473 + $k[$j++] = 'opt'; //#26473 + $k[$j++] = $1.options; //#26473 + $1.sep = $d(); //#26474 + $$.save(); //#26476 + $put($1.options, "lintype", "upce"); //#26478 + $put($1.options, "inkspread", "0"); //#26479 + $put($1.options, "dontdraw", true); //#26480 + $k[$j++] = $1.linear; //#26483 + $k[$j++] = $1.options; //#26483 + $0.upce(); //#26483 + $0.renlinear(); //#26483 + $$.rmoveto(-1, 72); //#26486 + $k[$j++] = Infinity; //#26497 + $k[$j++] = Infinity; //#26491 + $k[$j++] = 0; //#26489 + $k[$j++] = 1; //#26489 + for (var _N = 0, _O = 49; _N < _O; _N++) { //#26489 + $k[$j++] = 0; //#26489 + } //#26489 + $k[$j++] = 1; //#26490 + $k[$j++] = 0; //#26490 + $k[$j++] = 1; //#26490 + $k[$j++] = 0; //#26490 + for (var _P = 0, _Q = 49; _P < _Q; _P++) { //#26490 + $k[$j++] = 0; //#26490 + } //#26490 + $k[$j++] = 0; //#26491 + $k[$j++] = 1; //#26491 + $k[$j++] = 0; //#26491 + $k[$j++] = 1; //#26491 + for (var _R = 0, _S = 49; _R < _S; _R++) { //#26491 + $k[$j++] = 0; //#26491 + } //#26491 + $k[$j++] = 1; //#26491 + $k[$j++] = 0; //#26491 + var _T = $a(); //#26491 + $k[$j++] = 'ren'; //#26497 + $k[$j++] = $0.renmatrix; //#26497 + $k[$j++] = 'pixs'; //#26497 + $k[$j++] = _T; //#26497 + $k[$j++] = 'pixx'; //#26497 + $k[$j++] = 53; //#26497 + $k[$j++] = 'pixy'; //#26497 + $k[$j++] = 3; //#26497 + $k[$j++] = 'height'; //#26497 + $k[$j++] = 6 / 72; //#26497 + $k[$j++] = 'width'; //#26497 + $k[$j++] = 53 / 72; //#26497 + $k[$j++] = 'opt'; //#26497 + $k[$j++] = $1.options; //#26497 + var _V = $d(); //#26497 + $k[$j++] = _V; //#26498 + $0.renmatrix(); //#26498 + $$.rmoveto(-2, 6); //#26501 + $k[$j++] = $1.comp; //#26501 + $k[$j++] = $1.options; //#26501 + $0["gs1-cc"](); //#26501 + $0.renmatrix(); //#26501 + $$.restore(); //#26503 }; $0.databaromnicomposite = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $search($1.barcode, "|"); - if ($k[--$j]) { - $1.linear = $k[--$j]; - $j--; - $1.comp = $k[--$j]; - } else { - $j--; - } - $$.save(); - $put($1.options, "lintype", "databaromni"); - $put($1.options, "linkage", true); - $put($1.options, "inkspread", "0"); - $put($1.options, "dontdraw", true); - $k[$j++] = $1.linear; - $k[$j++] = $1.options; - $0.databaromni(); - var _F = $k[--$j]; - $1.linsbs = $get(_F, "sbs"); - $1.linheight = $get($get(_F, "bhs"), 0) * 72; - $k[$j++] = _F; - $0.renlinear(); + var $1 = {}; //#26535 + $1.options = $k[--$j]; //#26537 + $1.barcode = $k[--$j]; //#26538 + $1.dontdraw = false; //#26540 + $forall($1.options, function() { //#26551 + var _3 = $k[--$j]; //#26551 + $1[$k[--$j]] = _3; //#26551 + }); //#26551 + $search($1.barcode, "|"); //#26554 + if ($k[--$j]) { //#26559 + $1.linear = $k[--$j]; //#26555 + $j--; //#26556 + $1.comp = $k[--$j]; //#26557 + } else { //#26559 + $j--; //#26559 + } //#26559 + $$.save(); //#26562 + $put($1.options, "lintype", "databaromni"); //#26564 + $put($1.options, "linkage", true); //#26565 + $put($1.options, "inkspread", "0"); //#26566 + $put($1.options, "dontdraw", true); //#26567 + $k[$j++] = $1.linear; //#26570 + $k[$j++] = $1.options; //#26570 + $0.databaromni(); //#26570 + var _F = $k[--$j]; //#26571 + $1.linsbs = $get(_F, "sbs"); //#26571 + $1.linheight = $get($get(_F, "bhs"), 0) * 72; //#26572 + $k[$j++] = _F; //#26573 + $0.renlinear(); //#26573 $1.sepfinder = function() { - $1.fp = $k[--$j]; - for (var _N = $1.fp, _M = $f($1.fp + 12); _N <= _M; _N += 1) { - $1.i = _N; - if ($get($1.bot, $1.i) == 0) { - if ($get($1.bot, $1.i - 1) == 1) { - $k[$j++] = 1; - } else { - var _X = $get($1.sep, $1.i - 1) == 0 ? 1 : 0; - $k[$j++] = _X; - } - } else { - $k[$j++] = 0; - } - $put($1.sep, $1.i, $k[--$j]); - } - $1.f3 = $a([ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1 ]); - $k[$j++] = true; - for (var _c = 0; _c <= 12; _c += 1) { - var _i = $k[--$j]; - $k[$j++] = _i && $eq($get($1.bot, $f(_c + $1.fp)), $get($1.f3, _c)); - } - if ($k[--$j]) { - $puti($1.sep, $1.fp, $a([ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ])); - } - }; - $k[$j++] = Infinity; - $k[$j++] = 0; - $forall($1.linsbs, function() { - var _o = $k[--$j]; - var _p = $k[--$j]; - var _q = _p == 1 ? 0 : 1; - $k[$j++] = _p; - for (var _r = 0, _s = _o; _r < _s; _r++) { - $k[$j++] = _q; - } - }); - $astore($a($counttomark() - 1)); - $1.bot = $k[--$j]; - $j -= 2; - $k[$j++] = Infinity; - $forall($1.bot, function() { - var _x = $k[--$j]; - $k[$j++] = $f(1 - _x); - }); - $1.sep = $a(); - $puti($1.sep, 0, $a([ 0, 0, 0 ])); - $puti($1.sep, $1.sep.length - 4, $a([ 0, 0, 0, 0 ])); - $k[$j++] = 18; - $1.sepfinder(); - $k[$j++] = 64; - $1.sepfinder(); - $$.rmoveto(0, $1.linheight); - var _19 = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.sep ], [ "pixx", $1.sep.length ], [ "pixy", 1 ], [ "height", 1 / 72 ], [ "width", $1.sep.length / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _19; - $0.renmatrix(); - $$.rmoveto(-5, 1); - $k[$j++] = $1.comp; - $k[$j++] = $1.options; - $0["gs1-cc"](); - $0.renmatrix(); - $$.restore(); + $1.fp = $k[--$j]; //#26577 + for (var _N = $1.fp, _M = $f($1.fp + 12); _N <= _M; _N += 1) { //#26590 + $1.i = _N; //#26579 + if ($get($1.bot, $1.i) == 0) { //#26587 + if ($get($1.bot, $1.i - 1) == 1) { //#26584 + $k[$j++] = 1; //#26582 + } else { //#26584 + var _X = ($get($1.sep, $1.i - 1) == 0) ? 1 : 0; //#26584 + $k[$j++] = _X; //#26584 + } //#26584 + } else { //#26587 + $k[$j++] = 0; //#26587 + } //#26587 + $put($1.sep, $1.i, $k[--$j]); //#26589 + } //#26589 + $1.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#26591 + $k[$j++] = true; //#26592 + for (var _c = 0; _c <= 12; _c += 1) { //#26592 + var _i = $k[--$j]; //#26592 + $k[$j++] = _i && $eq($get($1.bot, $f(_c + $1.fp)), $get($1.f3, _c)); //#26592 + } //#26592 + if ($k[--$j]) { //#26595 + $puti($1.sep, $1.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#26594 + } //#26594 + }; //#26596 + $k[$j++] = Infinity; //#26597 + $k[$j++] = 0; //#26598 + $forall($1.linsbs, function() { //#26598 + var _o = $k[--$j]; //#26598 + var _p = $k[--$j]; //#26598 + var _q = (_p == 1) ? 0 : 1; //#26598 + $k[$j++] = _p; //#26598 + for (var _r = 0, _s = _o; _r < _s; _r++) { //#26598 + $k[$j++] = _q //#26598 + } //#26598 + }); //#26598 + $astore($a($counttomark() - 1)); //#26599 + $1.bot = $k[--$j]; //#26599 + $j -= 2; //#26599 + $k[$j++] = Infinity; //#26600 + $forall($1.bot, function() { //#26600 + var _x = $k[--$j]; //#26600 + $k[$j++] = $f(1 - _x); //#26600 + }); //#26600 + $1.sep = $a(); //#26600 + $puti($1.sep, 0, $a([0, 0, 0])); //#26601 + $puti($1.sep, $1.sep.length - 4, $a([0, 0, 0, 0])); //#26602 + $k[$j++] = 18; //#26603 + $1.sepfinder(); //#26603 + $k[$j++] = 64; //#26603 + $1.sepfinder(); //#26603 + $$.rmoveto(0, $1.linheight); //#26604 + var _19 = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.sep], + ["pixx", $1.sep.length], + ["pixy", 1], + ["height", 1 / 72], + ["width", $1.sep.length / 72], + ["opt", $1.options] + ]); //#26611 + $k[$j++] = _19; //#26612 + $0.renmatrix(); //#26612 + $$.rmoveto(-5, 1); //#26615 + $k[$j++] = $1.comp; //#26615 + $k[$j++] = $1.options; //#26615 + $0["gs1-cc"](); //#26615 + $0.renmatrix(); //#26615 + $$.restore(); //#26617 }; $0.databarstackedcomposite = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $search($1.barcode, "|"); - if ($k[--$j]) { - $1.linear = $k[--$j]; - $j--; - $1.comp = $k[--$j]; - } else { - $j--; - } - $$.save(); - $put($1.options, "lintype", "databarstacked"); - $put($1.options, "linkage", true); - $put($1.options, "inkspread", "0"); - $put($1.options, "dontdraw", true); - $k[$j++] = $1.linear; - $k[$j++] = $1.options; - $0.databarstacked(); - var _F = $k[--$j]; - $1.bot = $geti($get(_F, "pixs"), 0, $get(_F, "pixx")); - $1.linheight = $get(_F, "pixy"); - $k[$j++] = _F; - $0.renmatrix(); + var $1 = {}; //#26648 + $1.options = $k[--$j]; //#26650 + $1.barcode = $k[--$j]; //#26651 + $1.dontdraw = false; //#26653 + $forall($1.options, function() { //#26664 + var _3 = $k[--$j]; //#26664 + $1[$k[--$j]] = _3; //#26664 + }); //#26664 + $search($1.barcode, "|"); //#26667 + if ($k[--$j]) { //#26672 + $1.linear = $k[--$j]; //#26668 + $j--; //#26669 + $1.comp = $k[--$j]; //#26670 + } else { //#26672 + $j--; //#26672 + } //#26672 + $$.save(); //#26675 + $put($1.options, "lintype", "databarstacked"); //#26677 + $put($1.options, "linkage", true); //#26678 + $put($1.options, "inkspread", "0"); //#26679 + $put($1.options, "dontdraw", true); //#26680 + $k[$j++] = $1.linear; //#26683 + $k[$j++] = $1.options; //#26683 + $0.databarstacked(); //#26683 + var _F = $k[--$j]; //#26684 + $1.bot = $geti($get(_F, "pixs"), 0, $get(_F, "pixx")); //#26684 + $1.linheight = $get(_F, "pixy"); //#26685 + $k[$j++] = _F; //#26686 + $0.renmatrix(); //#26686 $1.sepfinder = function() { - $1.fp = $k[--$j]; - for (var _O = $1.fp, _N = $f($1.fp + 12); _O <= _N; _O += 1) { - $1.i = _O; - if ($get($1.bot, $1.i) == 0) { - if ($get($1.bot, $1.i - 1) == 1) { - $k[$j++] = 1; - } else { - var _Y = $get($1.sep, $1.i - 1) == 0 ? 1 : 0; - $k[$j++] = _Y; - } - } else { - $k[$j++] = 0; - } - $put($1.sep, $1.i, $k[--$j]); - } - $1.f3 = $a([ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1 ]); - $k[$j++] = true; - for (var _d = 0; _d <= 12; _d += 1) { - var _j = $k[--$j]; - $k[$j++] = _j && $eq($get($1.bot, $f(_d + $1.fp)), $get($1.f3, _d)); - } - if ($k[--$j]) { - $puti($1.sep, $1.fp, $a([ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ])); - } - }; - $k[$j++] = Infinity; - var _o = $1.bot; - for (var _p = 0, _q = _o.length; _p < _q; _p++) { - $k[$j++] = $f(1 - $get(_o, _p)); - } - $1.sep = $a(); - $puti($1.sep, 0, $a([ 0, 0, 0, 0 ])); - $puti($1.sep, $1.sep.length - 4, $a([ 0, 0, 0, 0 ])); - $k[$j++] = 18; - $1.sepfinder(); - $$.rmoveto(0, $1.linheight); - var _13 = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.sep ], [ "pixx", $1.sep.length ], [ "pixy", 1 ], [ "height", 1 / 72 ], [ "width", $1.sep.length / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _13; - $0.renmatrix(); - $$.rmoveto(1, 1); - $k[$j++] = $1.comp; - $k[$j++] = $1.options; - $0["gs1-cc"](); - $0.renmatrix(); - $$.restore(); + $1.fp = $k[--$j]; //#26690 + for (var _O = $1.fp, _N = $f($1.fp + 12); _O <= _N; _O += 1) { //#26703 + $1.i = _O; //#26692 + if ($get($1.bot, $1.i) == 0) { //#26700 + if ($get($1.bot, $1.i - 1) == 1) { //#26697 + $k[$j++] = 1; //#26695 + } else { //#26697 + var _Y = ($get($1.sep, $1.i - 1) == 0) ? 1 : 0; //#26697 + $k[$j++] = _Y; //#26697 + } //#26697 + } else { //#26700 + $k[$j++] = 0; //#26700 + } //#26700 + $put($1.sep, $1.i, $k[--$j]); //#26702 + } //#26702 + $1.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#26704 + $k[$j++] = true; //#26705 + for (var _d = 0; _d <= 12; _d += 1) { //#26705 + var _j = $k[--$j]; //#26705 + $k[$j++] = _j && $eq($get($1.bot, $f(_d + $1.fp)), $get($1.f3, _d)); //#26705 + } //#26705 + if ($k[--$j]) { //#26708 + $puti($1.sep, $1.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#26707 + } //#26707 + }; //#26709 + $k[$j++] = Infinity; //#26710 + var _o = $1.bot; //#26710 + for (var _p = 0, _q = _o.length; _p < _q; _p++) { //#26710 + $k[$j++] = $f(1 - $get(_o, _p)); //#26710 + } //#26710 + $1.sep = $a(); //#26710 + $puti($1.sep, 0, $a([0, 0, 0, 0])); //#26711 + $puti($1.sep, $1.sep.length - 4, $a([0, 0, 0, 0])); //#26712 + $k[$j++] = 18; //#26713 + $1.sepfinder(); //#26713 + $$.rmoveto(0, $1.linheight); //#26714 + var _13 = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.sep], + ["pixx", $1.sep.length], + ["pixy", 1], + ["height", 1 / 72], + ["width", $1.sep.length / 72], + ["opt", $1.options] + ]); //#26721 + $k[$j++] = _13; //#26722 + $0.renmatrix(); //#26722 + $$.rmoveto(1, 1); //#26725 + $k[$j++] = $1.comp; //#26725 + $k[$j++] = $1.options; //#26725 + $0["gs1-cc"](); //#26725 + $0.renmatrix(); //#26725 + $$.restore(); //#26727 }; $0.databarstackedomnicomposite = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $search($1.barcode, "|"); - if ($k[--$j]) { - $1.linear = $k[--$j]; - $j--; - $1.comp = $k[--$j]; - } else { - $j--; - } - $$.save(); - $put($1.options, "lintype", "databarstackedomni"); - $put($1.options, "linkage", true); - $put($1.options, "inkspread", "0"); - $put($1.options, "dontdraw", true); - $k[$j++] = $1.linear; - $k[$j++] = $1.options; - $0.databarstackedomni(); - var _F = $k[--$j]; - $1.bot = $geti($get(_F, "pixs"), 0, $get(_F, "pixx")); - $1.linheight = $get(_F, "pixy"); - $k[$j++] = _F; - $0.renmatrix(); + var $1 = {}; //#26758 + $1.options = $k[--$j]; //#26760 + $1.barcode = $k[--$j]; //#26761 + $1.dontdraw = false; //#26763 + $forall($1.options, function() { //#26774 + var _3 = $k[--$j]; //#26774 + $1[$k[--$j]] = _3; //#26774 + }); //#26774 + $search($1.barcode, "|"); //#26777 + if ($k[--$j]) { //#26782 + $1.linear = $k[--$j]; //#26778 + $j--; //#26779 + $1.comp = $k[--$j]; //#26780 + } else { //#26782 + $j--; //#26782 + } //#26782 + $$.save(); //#26785 + $put($1.options, "lintype", "databarstackedomni"); //#26787 + $put($1.options, "linkage", true); //#26788 + $put($1.options, "inkspread", "0"); //#26789 + $put($1.options, "dontdraw", true); //#26790 + $k[$j++] = $1.linear; //#26793 + $k[$j++] = $1.options; //#26793 + $0.databarstackedomni(); //#26793 + var _F = $k[--$j]; //#26794 + $1.bot = $geti($get(_F, "pixs"), 0, $get(_F, "pixx")); //#26794 + $1.linheight = $get(_F, "pixy"); //#26795 + $k[$j++] = _F; //#26796 + $0.renmatrix(); //#26796 $1.sepfinder = function() { - $1.fp = $k[--$j]; - for (var _O = $1.fp, _N = $f($1.fp + 12); _O <= _N; _O += 1) { - $1.i = _O; - if ($get($1.bot, $1.i) == 0) { - if ($get($1.bot, $1.i - 1) == 1) { - $k[$j++] = 1; - } else { - var _Y = $get($1.sep, $1.i - 1) == 0 ? 1 : 0; - $k[$j++] = _Y; - } - } else { - $k[$j++] = 0; - } - $put($1.sep, $1.i, $k[--$j]); - } - $1.f3 = $a([ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1 ]); - $k[$j++] = true; - for (var _d = 0; _d <= 12; _d += 1) { - var _j = $k[--$j]; - $k[$j++] = _j && $eq($get($1.bot, $f(_d + $1.fp)), $get($1.f3, _d)); - } - if ($k[--$j]) { - $puti($1.sep, $1.fp, $a([ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ])); - } - }; - $k[$j++] = Infinity; - var _o = $1.bot; - for (var _p = 0, _q = _o.length; _p < _q; _p++) { - $k[$j++] = $f(1 - $get(_o, _p)); - } - $1.sep = $a(); - $puti($1.sep, 0, $a([ 0, 0, 0, 0 ])); - $puti($1.sep, $1.sep.length - 4, $a([ 0, 0, 0, 0 ])); - $k[$j++] = 18; - $1.sepfinder(); - $$.rmoveto(0, $1.linheight); - var _13 = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.sep ], [ "pixx", $1.sep.length ], [ "pixy", 1 ], [ "height", 1 / 72 ], [ "width", $1.sep.length / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _13; - $0.renmatrix(); - $$.rmoveto(1, 1); - $k[$j++] = $1.comp; - $k[$j++] = $1.options; - $0["gs1-cc"](); - $0.renmatrix(); - $$.restore(); + $1.fp = $k[--$j]; //#26800 + for (var _O = $1.fp, _N = $f($1.fp + 12); _O <= _N; _O += 1) { //#26813 + $1.i = _O; //#26802 + if ($get($1.bot, $1.i) == 0) { //#26810 + if ($get($1.bot, $1.i - 1) == 1) { //#26807 + $k[$j++] = 1; //#26805 + } else { //#26807 + var _Y = ($get($1.sep, $1.i - 1) == 0) ? 1 : 0; //#26807 + $k[$j++] = _Y; //#26807 + } //#26807 + } else { //#26810 + $k[$j++] = 0; //#26810 + } //#26810 + $put($1.sep, $1.i, $k[--$j]); //#26812 + } //#26812 + $1.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#26814 + $k[$j++] = true; //#26815 + for (var _d = 0; _d <= 12; _d += 1) { //#26815 + var _j = $k[--$j]; //#26815 + $k[$j++] = _j && $eq($get($1.bot, $f(_d + $1.fp)), $get($1.f3, _d)); //#26815 + } //#26815 + if ($k[--$j]) { //#26818 + $puti($1.sep, $1.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#26817 + } //#26817 + }; //#26819 + $k[$j++] = Infinity; //#26820 + var _o = $1.bot; //#26820 + for (var _p = 0, _q = _o.length; _p < _q; _p++) { //#26820 + $k[$j++] = $f(1 - $get(_o, _p)); //#26820 + } //#26820 + $1.sep = $a(); //#26820 + $puti($1.sep, 0, $a([0, 0, 0, 0])); //#26821 + $puti($1.sep, $1.sep.length - 4, $a([0, 0, 0, 0])); //#26822 + $k[$j++] = 18; //#26823 + $1.sepfinder(); //#26823 + $$.rmoveto(0, $1.linheight); //#26824 + var _13 = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.sep], + ["pixx", $1.sep.length], + ["pixy", 1], + ["height", 1 / 72], + ["width", $1.sep.length / 72], + ["opt", $1.options] + ]); //#26831 + $k[$j++] = _13; //#26832 + $0.renmatrix(); //#26832 + $$.rmoveto(1, 1); //#26835 + $k[$j++] = $1.comp; //#26835 + $k[$j++] = $1.options; //#26835 + $0["gs1-cc"](); //#26835 + $0.renmatrix(); //#26835 + $$.restore(); //#26837 }; $0.databartruncatedcomposite = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $search($1.barcode, "|"); - if ($k[--$j]) { - $1.linear = $k[--$j]; - $j--; - $1.comp = $k[--$j]; - } else { - $j--; - } - $$.save(); - $put($1.options, "lintype", "databartruncated"); - $put($1.options, "linkage", true); - $put($1.options, "inkspread", "0"); - $put($1.options, "dontdraw", true); - $k[$j++] = $1.linear; - $k[$j++] = $1.options; - $0.databartruncated(); - var _F = $k[--$j]; - $1.linsbs = $get(_F, "sbs"); - $1.linheight = $get($get(_F, "bhs"), 0) * 72; - $k[$j++] = _F; - $0.renlinear(); + var $1 = {}; //#26869 + $1.options = $k[--$j]; //#26871 + $1.barcode = $k[--$j]; //#26872 + $1.dontdraw = false; //#26874 + $forall($1.options, function() { //#26885 + var _3 = $k[--$j]; //#26885 + $1[$k[--$j]] = _3; //#26885 + }); //#26885 + $search($1.barcode, "|"); //#26888 + if ($k[--$j]) { //#26893 + $1.linear = $k[--$j]; //#26889 + $j--; //#26890 + $1.comp = $k[--$j]; //#26891 + } else { //#26893 + $j--; //#26893 + } //#26893 + $$.save(); //#26896 + $put($1.options, "lintype", "databartruncated"); //#26898 + $put($1.options, "linkage", true); //#26899 + $put($1.options, "inkspread", "0"); //#26900 + $put($1.options, "dontdraw", true); //#26901 + $k[$j++] = $1.linear; //#26904 + $k[$j++] = $1.options; //#26904 + $0.databartruncated(); //#26904 + var _F = $k[--$j]; //#26905 + $1.linsbs = $get(_F, "sbs"); //#26905 + $1.linheight = $get($get(_F, "bhs"), 0) * 72; //#26906 + $k[$j++] = _F; //#26907 + $0.renlinear(); //#26907 $1.sepfinder = function() { - $1.fp = $k[--$j]; - for (var _N = $1.fp, _M = $f($1.fp + 12); _N <= _M; _N += 1) { - $1.i = _N; - if ($get($1.bot, $1.i) == 0) { - if ($get($1.bot, $1.i - 1) == 1) { - $k[$j++] = 1; - } else { - var _X = $get($1.sep, $1.i - 1) == 0 ? 1 : 0; - $k[$j++] = _X; - } - } else { - $k[$j++] = 0; - } - $put($1.sep, $1.i, $k[--$j]); - } - $1.f3 = $a([ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1 ]); - $k[$j++] = true; - for (var _c = 0; _c <= 12; _c += 1) { - var _i = $k[--$j]; - $k[$j++] = _i && $eq($get($1.bot, $f(_c + $1.fp)), $get($1.f3, _c)); - } - if ($k[--$j]) { - $puti($1.sep, $1.fp, $a([ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ])); - } - }; - $k[$j++] = Infinity; - $k[$j++] = 0; - $forall($1.linsbs, function() { - var _o = $k[--$j]; - var _p = $k[--$j]; - var _q = _p == 1 ? 0 : 1; - $k[$j++] = _p; - for (var _r = 0, _s = _o; _r < _s; _r++) { - $k[$j++] = _q; - } - }); - $astore($a($counttomark() - 1)); - $1.bot = $k[--$j]; - $j -= 2; - $k[$j++] = Infinity; - $forall($1.bot, function() { - var _x = $k[--$j]; - $k[$j++] = $f(1 - _x); - }); - $1.sep = $a(); - $puti($1.sep, 0, $a([ 0, 0, 0 ])); - $puti($1.sep, $1.sep.length - 4, $a([ 0, 0, 0, 0 ])); - $k[$j++] = 18; - $1.sepfinder(); - $k[$j++] = 64; - $1.sepfinder(); - $$.rmoveto(0, $1.linheight); - var _19 = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.sep ], [ "pixx", $1.sep.length ], [ "pixy", 1 ], [ "height", 1 / 72 ], [ "width", $1.sep.length / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _19; - $0.renmatrix(); - $$.rmoveto(-5, 1); - $k[$j++] = $1.comp; - $k[$j++] = $1.options; - $0["gs1-cc"](); - $0.renmatrix(); - $$.restore(); + $1.fp = $k[--$j]; //#26911 + for (var _N = $1.fp, _M = $f($1.fp + 12); _N <= _M; _N += 1) { //#26924 + $1.i = _N; //#26913 + if ($get($1.bot, $1.i) == 0) { //#26921 + if ($get($1.bot, $1.i - 1) == 1) { //#26918 + $k[$j++] = 1; //#26916 + } else { //#26918 + var _X = ($get($1.sep, $1.i - 1) == 0) ? 1 : 0; //#26918 + $k[$j++] = _X; //#26918 + } //#26918 + } else { //#26921 + $k[$j++] = 0; //#26921 + } //#26921 + $put($1.sep, $1.i, $k[--$j]); //#26923 + } //#26923 + $1.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#26925 + $k[$j++] = true; //#26926 + for (var _c = 0; _c <= 12; _c += 1) { //#26926 + var _i = $k[--$j]; //#26926 + $k[$j++] = _i && $eq($get($1.bot, $f(_c + $1.fp)), $get($1.f3, _c)); //#26926 + } //#26926 + if ($k[--$j]) { //#26929 + $puti($1.sep, $1.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#26928 + } //#26928 + }; //#26930 + $k[$j++] = Infinity; //#26931 + $k[$j++] = 0; //#26932 + $forall($1.linsbs, function() { //#26932 + var _o = $k[--$j]; //#26932 + var _p = $k[--$j]; //#26932 + var _q = (_p == 1) ? 0 : 1; //#26932 + $k[$j++] = _p; //#26932 + for (var _r = 0, _s = _o; _r < _s; _r++) { //#26932 + $k[$j++] = _q //#26932 + } //#26932 + }); //#26932 + $astore($a($counttomark() - 1)); //#26933 + $1.bot = $k[--$j]; //#26933 + $j -= 2; //#26933 + $k[$j++] = Infinity; //#26934 + $forall($1.bot, function() { //#26934 + var _x = $k[--$j]; //#26934 + $k[$j++] = $f(1 - _x); //#26934 + }); //#26934 + $1.sep = $a(); //#26934 + $puti($1.sep, 0, $a([0, 0, 0])); //#26935 + $puti($1.sep, $1.sep.length - 4, $a([0, 0, 0, 0])); //#26936 + $k[$j++] = 18; //#26937 + $1.sepfinder(); //#26937 + $k[$j++] = 64; //#26937 + $1.sepfinder(); //#26937 + $$.rmoveto(0, $1.linheight); //#26938 + var _19 = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.sep], + ["pixx", $1.sep.length], + ["pixy", 1], + ["height", 1 / 72], + ["width", $1.sep.length / 72], + ["opt", $1.options] + ]); //#26945 + $k[$j++] = _19; //#26946 + $0.renmatrix(); //#26946 + $$.rmoveto(-5, 1); //#26949 + $k[$j++] = $1.comp; //#26949 + $k[$j++] = $1.options; //#26949 + $0["gs1-cc"](); //#26949 + $0.renmatrix(); //#26949 + $$.restore(); //#26951 }; $0.databarlimitedcomposite = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $search($1.barcode, "|"); - if ($k[--$j]) { - $1.linear = $k[--$j]; - $j--; - $1.comp = $k[--$j]; - } else { - $j--; - } - $$.save(); - $put($1.options, "lintype", "databarlimited"); - $put($1.options, "linkage", true); - $put($1.options, "inkspread", "0"); - $put($1.options, "dontdraw", true); - $k[$j++] = $1.linear; - $k[$j++] = $1.options; - $0.databarlimited(); - var _F = $k[--$j]; - $1.linsbs = $get(_F, "sbs"); - $1.linheight = $get($get(_F, "bhs"), 0) * 72; - $k[$j++] = _F; - $0.renlinear(); - $k[$j++] = Infinity; - $k[$j++] = 1; - $forall($1.linsbs, function() { - var _K = $k[--$j]; - var _L = $k[--$j]; - var _M = _L == 0 ? 1 : 0; - $k[$j++] = _L; - for (var _N = 0, _O = _K; _N < _O; _N++) { - $k[$j++] = _M; - } - }); - $astore($a($counttomark() - 1)); - $1.sep = $k[--$j]; - $j -= 2; - $puti($1.sep, 0, $a([ 0, 0, 0 ])); - $puti($1.sep, $1.sep.length - 9, $a([ 0, 0, 0, 0, 0, 0, 0, 0, 0 ])); - $$.rmoveto(0, $1.linheight); - var _c = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.sep ], [ "pixx", $1.sep.length ], [ "pixy", 1 ], [ "height", 1 / 72 ], [ "width", $1.sep.length / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _c; - $0.renmatrix(); - $k[$j++] = $1.comp; - $k[$j++] = $1.options; - $0["gs1-cc"](); - var _f = $k[--$j]; - $$.rmoveto($f(72 - $get(_f, "pixx")), 1); - $k[$j++] = _f; - $0.renmatrix(); - $$.restore(); + var $1 = {}; //#26983 + $1.options = $k[--$j]; //#26985 + $1.barcode = $k[--$j]; //#26986 + $1.dontdraw = false; //#26988 + $forall($1.options, function() { //#26999 + var _3 = $k[--$j]; //#26999 + $1[$k[--$j]] = _3; //#26999 + }); //#26999 + $search($1.barcode, "|"); //#27002 + if ($k[--$j]) { //#27007 + $1.linear = $k[--$j]; //#27003 + $j--; //#27004 + $1.comp = $k[--$j]; //#27005 + } else { //#27007 + $j--; //#27007 + } //#27007 + $$.save(); //#27010 + $put($1.options, "lintype", "databarlimited"); //#27012 + $put($1.options, "linkage", true); //#27013 + $put($1.options, "inkspread", "0"); //#27014 + $put($1.options, "dontdraw", true); //#27015 + $k[$j++] = $1.linear; //#27018 + $k[$j++] = $1.options; //#27018 + $0.databarlimited(); //#27018 + var _F = $k[--$j]; //#27019 + $1.linsbs = $get(_F, "sbs"); //#27019 + $1.linheight = $get($get(_F, "bhs"), 0) * 72; //#27020 + $k[$j++] = _F; //#27021 + $0.renlinear(); //#27021 + $k[$j++] = Infinity; //#27024 + $k[$j++] = 1; //#27025 + $forall($1.linsbs, function() { //#27025 + var _K = $k[--$j]; //#27025 + var _L = $k[--$j]; //#27025 + var _M = (_L == 0) ? 1 : 0; //#27025 + $k[$j++] = _L; //#27025 + for (var _N = 0, _O = _K; _N < _O; _N++) { //#27025 + $k[$j++] = _M //#27025 + } //#27025 + }); //#27025 + $astore($a($counttomark() - 1)); //#27026 + $1.sep = $k[--$j]; //#27026 + $j -= 2; //#27026 + $puti($1.sep, 0, $a([0, 0, 0])); //#27027 + $puti($1.sep, $1.sep.length - 9, $a([0, 0, 0, 0, 0, 0, 0, 0, 0])); //#27028 + $$.rmoveto(0, $1.linheight); //#27029 + var _c = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.sep], + ["pixx", $1.sep.length], + ["pixy", 1], + ["height", 1 / 72], + ["width", $1.sep.length / 72], + ["opt", $1.options] + ]); //#27036 + $k[$j++] = _c; //#27037 + $0.renmatrix(); //#27037 + $k[$j++] = $1.comp; //#27040 + $k[$j++] = $1.options; //#27040 + $0["gs1-cc"](); //#27040 + var _f = $k[--$j]; //#27041 + $$.rmoveto($f(72 - $get(_f, "pixx")), 1); //#27041 + $k[$j++] = _f; //#27042 + $0.renmatrix(); //#27042 + $$.restore(); //#27044 }; $0.databarexpandedcomposite = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $search($1.barcode, "|"); - if ($k[--$j]) { - $1.linear = $k[--$j]; - $j--; - $1.comp = $k[--$j]; - } else { - $j--; - } - $$.save(); - $put($1.options, "lintype", "databarexpanded"); - $put($1.options, "linkage", true); - $put($1.options, "inkspread", "0"); - $put($1.options, "dontdraw", true); - $k[$j++] = $1.linear; - $k[$j++] = $1.options; - $0.databarexpanded(); - var _F = $k[--$j]; - $1.linsbs = $get(_F, "sbs"); - $1.linheight = $get($get(_F, "bhs"), 0) * 72; - $k[$j++] = _F; - $0.renlinear(); + var $1 = {}; //#27076 + $1.options = $k[--$j]; //#27078 + $1.barcode = $k[--$j]; //#27079 + $1.dontdraw = false; //#27081 + $forall($1.options, function() { //#27092 + var _3 = $k[--$j]; //#27092 + $1[$k[--$j]] = _3; //#27092 + }); //#27092 + $search($1.barcode, "|"); //#27095 + if ($k[--$j]) { //#27100 + $1.linear = $k[--$j]; //#27096 + $j--; //#27097 + $1.comp = $k[--$j]; //#27098 + } else { //#27100 + $j--; //#27100 + } //#27100 + $$.save(); //#27103 + $put($1.options, "lintype", "databarexpanded"); //#27105 + $put($1.options, "linkage", true); //#27106 + $put($1.options, "inkspread", "0"); //#27107 + $put($1.options, "dontdraw", true); //#27108 + $k[$j++] = $1.linear; //#27111 + $k[$j++] = $1.options; //#27111 + $0.databarexpanded(); //#27111 + var _F = $k[--$j]; //#27112 + $1.linsbs = $get(_F, "sbs"); //#27112 + $1.linheight = $get($get(_F, "bhs"), 0) * 72; //#27113 + $k[$j++] = _F; //#27114 + $0.renlinear(); //#27114 $1.sepfinder = function() { - $1.fp = $k[--$j]; - for (var _N = $1.fp, _M = $f($1.fp + 12); _N <= _M; _N += 1) { - $1.i = _N; - if ($get($1.bot, $1.i) == 0) { - if ($get($1.bot, $1.i - 1) == 1) { - $k[$j++] = 1; - } else { - var _X = $get($1.sep, $1.i - 1) == 0 ? 1 : 0; - $k[$j++] = _X; - } - } else { - $k[$j++] = 0; - } - $put($1.sep, $1.i, $k[--$j]); - } - }; - $k[$j++] = Infinity; - $k[$j++] = 0; - $forall($1.linsbs, function() { - var _c = $k[--$j]; - var _d = $k[--$j]; - var _e = _d == 1 ? 0 : 1; - $k[$j++] = _d; - for (var _f = 0, _g = _c; _f < _g; _f++) { - $k[$j++] = _e; - } - }); - $astore($a($counttomark() - 1)); - $1.bot = $k[--$j]; - $j -= 2; - $k[$j++] = Infinity; - $forall($1.bot, function() { - var _l = $k[--$j]; - $k[$j++] = $f(1 - _l); - }); - $1.sep = $a(); - $puti($1.sep, 0, $a([ 0, 0, 0 ])); - $puti($1.sep, $1.sep.length - 4, $a([ 0, 0, 0, 0 ])); - $k[$j++] = Infinity; - for (var _u = 18, _t = $1.bot.length - 13; _u <= _t; _u += 98) { - $k[$j++] = _u; - } - for (var _x = 69, _w = $1.bot.length - 13; _x <= _w; _x += 98) { - $k[$j++] = _x; - } - var _y = $a(); - for (var _z = 0, _10 = _y.length; _z < _10; _z++) { - $k[$j++] = $get(_y, _z); - $1.sepfinder(); - } - $$.rmoveto(0, $1.linheight); - var _17 = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.sep ], [ "pixx", $1.sep.length ], [ "pixy", 1 ], [ "height", 1 / 72 ], [ "width", $1.sep.length / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _17; - $0.renmatrix(); - $$.rmoveto(1, 1); - $k[$j++] = $1.comp; - $k[$j++] = $1.options; - $0["gs1-cc"](); - $0.renmatrix(); - $$.restore(); + $1.fp = $k[--$j]; //#27118 + for (var _N = $1.fp, _M = $f($1.fp + 12); _N <= _M; _N += 1) { //#27131 + $1.i = _N; //#27120 + if ($get($1.bot, $1.i) == 0) { //#27128 + if ($get($1.bot, $1.i - 1) == 1) { //#27125 + $k[$j++] = 1; //#27123 + } else { //#27125 + var _X = ($get($1.sep, $1.i - 1) == 0) ? 1 : 0; //#27125 + $k[$j++] = _X; //#27125 + } //#27125 + } else { //#27128 + $k[$j++] = 0; //#27128 + } //#27128 + $put($1.sep, $1.i, $k[--$j]); //#27130 + } //#27130 + }; //#27132 + $k[$j++] = Infinity; //#27133 + $k[$j++] = 0; //#27134 + $forall($1.linsbs, function() { //#27134 + var _c = $k[--$j]; //#27134 + var _d = $k[--$j]; //#27134 + var _e = (_d == 1) ? 0 : 1; //#27134 + $k[$j++] = _d; //#27134 + for (var _f = 0, _g = _c; _f < _g; _f++) { //#27134 + $k[$j++] = _e //#27134 + } //#27134 + }); //#27134 + $astore($a($counttomark() - 1)); //#27135 + $1.bot = $k[--$j]; //#27135 + $j -= 2; //#27135 + $k[$j++] = Infinity; //#27136 + $forall($1.bot, function() { //#27136 + var _l = $k[--$j]; //#27136 + $k[$j++] = $f(1 - _l); //#27136 + }); //#27136 + $1.sep = $a(); //#27136 + $puti($1.sep, 0, $a([0, 0, 0])); //#27137 + $puti($1.sep, $1.sep.length - 4, $a([0, 0, 0, 0])); //#27138 + $k[$j++] = Infinity; //#27141 + for (var _u = 18, _t = $1.bot.length - 13; _u <= _t; _u += 98) { //#27140 + $k[$j++] = _u; //#27140 + } //#27140 + for (var _x = 69, _w = $1.bot.length - 13; _x <= _w; _x += 98) { //#27141 + $k[$j++] = _x; //#27141 + } //#27141 + var _y = $a(); //#27141 + for (var _z = 0, _10 = _y.length; _z < _10; _z++) { //#27142 + $k[$j++] = $get(_y, _z); //#27142 + $1.sepfinder(); //#27142 + } //#27142 + $$.rmoveto(0, $1.linheight); //#27143 + var _17 = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.sep], + ["pixx", $1.sep.length], + ["pixy", 1], + ["height", 1 / 72], + ["width", $1.sep.length / 72], + ["opt", $1.options] + ]); //#27150 + $k[$j++] = _17; //#27151 + $0.renmatrix(); //#27151 + $$.rmoveto(1, 1); //#27154 + $k[$j++] = $1.comp; //#27154 + $k[$j++] = $1.options; //#27154 + $0["gs1-cc"](); //#27154 + $0.renmatrix(); //#27154 + $$.restore(); //#27156 }; $0.databarexpandedstackedcomposite = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $search($1.barcode, "|"); - if ($k[--$j]) { - $1.linear = $k[--$j]; - $j--; - $1.comp = $k[--$j]; - } else { - $j--; - } - $$.save(); - $put($1.options, "lintype", "databarexpandedstacked"); - $put($1.options, "linkage", true); - $put($1.options, "inkspread", "0"); - $put($1.options, "dontdraw", true); - $k[$j++] = $1.linear; - $k[$j++] = $1.options; - $0.databarexpandedstacked(); - var _F = $k[--$j]; - $1.bot = $geti($get(_F, "pixs"), 0, $get(_F, "pixx")); - $1.linheight = $get(_F, "pixy"); - $k[$j++] = _F; - $0.renmatrix(); + var $1 = {}; //#27187 + $1.options = $k[--$j]; //#27189 + $1.barcode = $k[--$j]; //#27190 + $1.dontdraw = false; //#27192 + $forall($1.options, function() { //#27203 + var _3 = $k[--$j]; //#27203 + $1[$k[--$j]] = _3; //#27203 + }); //#27203 + $search($1.barcode, "|"); //#27206 + if ($k[--$j]) { //#27211 + $1.linear = $k[--$j]; //#27207 + $j--; //#27208 + $1.comp = $k[--$j]; //#27209 + } else { //#27211 + $j--; //#27211 + } //#27211 + $$.save(); //#27214 + $put($1.options, "lintype", "databarexpandedstacked"); //#27216 + $put($1.options, "linkage", true); //#27217 + $put($1.options, "inkspread", "0"); //#27218 + $put($1.options, "dontdraw", true); //#27219 + $k[$j++] = $1.linear; //#27222 + $k[$j++] = $1.options; //#27222 + $0.databarexpandedstacked(); //#27222 + var _F = $k[--$j]; //#27223 + $1.bot = $geti($get(_F, "pixs"), 0, $get(_F, "pixx")); //#27223 + $1.linheight = $get(_F, "pixy"); //#27224 + $k[$j++] = _F; //#27225 + $0.renmatrix(); //#27225 $1.sepfinder = function() { - $1.fp = $k[--$j]; - for (var _O = $1.fp, _N = $f($1.fp + 12); _O <= _N; _O += 1) { - $1.i = _O; - if ($get($1.bot, $1.i) == 0) { - if ($get($1.bot, $1.i - 1) == 1) { - $k[$j++] = 1; - } else { - var _Y = $get($1.sep, $1.i - 1) == 0 ? 1 : 0; - $k[$j++] = _Y; - } - } else { - $k[$j++] = 0; - } - $put($1.sep, $1.i, $k[--$j]); - } - }; - $k[$j++] = Infinity; - var _c = $1.bot; - for (var _d = 0, _e = _c.length; _d < _e; _d++) { - $k[$j++] = $f(1 - $get(_c, _d)); - } - $1.sep = $a(); - $puti($1.sep, 0, $a([ 0, 0, 0, 0 ])); - $puti($1.sep, $1.sep.length - 4, $a([ 0, 0, 0, 0 ])); - $k[$j++] = Infinity; - for (var _o = 19, _n = $1.bot.length - 13; _o <= _n; _o += 98) { - $k[$j++] = _o; - } - for (var _r = 70, _q = $1.bot.length - 13; _r <= _q; _r += 98) { - $k[$j++] = _r; - } - var _s = $a(); - for (var _t = 0, _u = _s.length; _t < _u; _t++) { - $k[$j++] = $get(_s, _t); - $1.sepfinder(); - } - $$.rmoveto(0, $1.linheight); - var _11 = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.sep ], [ "pixx", $1.sep.length ], [ "pixy", 1 ], [ "height", 1 / 72 ], [ "width", $1.sep.length / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _11; - $0.renmatrix(); - var _14 = $get($1.bot, 0) == 0 ? 2 : 0; - $$.rmoveto(_14, 1); - $k[$j++] = $1.comp; - $k[$j++] = $1.options; - $0["gs1-cc"](); - $0.renmatrix(); - $$.restore(); - }; - $0["gs1-128composite"] = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $search($1.barcode, "|"); - if ($k[--$j]) { - $1.linear = $k[--$j]; - $j--; - $1.comp = $k[--$j]; - } else { - $j--; - } - $$.save(); - $put($1.options, "inkspread", "0"); - $put($1.options, "dontdraw", true); - $put($1.options, "linkagea", true); - $k[$j++] = $1.linear; - $k[$j++] = Infinity; - $forall($1.options); - var _E = $d(); - $k[$j++] = _E; - $0["gs1-128"](); - var _G = $get($k[--$j], "sbs"); - $k[$j++] = 0; - $forall(_G, function() { - var _H = $k[--$j]; - var _I = $k[--$j]; - $k[$j++] = $f(_I + _H); - }); - $1.linwidth = $k[--$j]; - $put($1.options, "lintype", "gs1-128"); - $put($1.options, "linwidth", $1.linwidth); - $k[$j++] = $1.comp; - $k[$j++] = $1.options; - $0["gs1-cc"](); - $1.compsym = $k[--$j]; - if ($get($1.compsym, "pixx") == 99) { - $k[$j++] = "a"; - } else { - $k[$j++] = "c"; - } - $1.linktype = $k[--$j]; - if ($eq($1.linktype, "a")) { - $put($1.options, "linkagea", true); - $put($1.options, "linkagec", false); - } else { - $put($1.options, "linkagea", false); - $put($1.options, "linkagec", true); - } - $k[$j++] = $1.linear; - $k[$j++] = Infinity; - $forall($1.options); - var _a = $d(); - $k[$j++] = _a; - $0["gs1-128"](); - var _b = $k[--$j]; - $1.linsbs = $get(_b, "sbs"); - $1.linheight = $get($get(_b, "bhs"), 0) * 72; - $k[$j++] = _b; - $0.renlinear(); - $k[$j++] = Infinity; - $k[$j++] = 1; - $forall($1.linsbs, function() { - var _g = $k[--$j]; - var _h = $k[--$j]; - var _i = _h == 0 ? 1 : 0; - $k[$j++] = _h; - for (var _j = 0, _k = _g; _j < _k; _j++) { - $k[$j++] = _i; - } - }); - $astore($a($counttomark() - 1)); - $1.sep = $k[--$j]; - $j -= 2; - $$.rmoveto(0, $1.linheight); - var _t = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.sep ], [ "pixx", $1.sep.length ], [ "pixy", 1 ], [ "height", 1 / 72 ], [ "width", $1.sep.length / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _t; - $0.renmatrix(); - if ($eq($1.linktype, "a")) { - $1.s = ~~($f($1.linwidth - 2) / 11); - $1.p = ~~(($1.s - 9) / 2); - $k[$j++] = "x"; - $k[$j++] = ($1.s - $1.p - 1) * 11 + 10; - if ($1.p == 0) { - var _10 = $k[--$j]; - $k[$j++] = $f(_10 + 2); - } - var _11 = $k[--$j]; - $1[$k[--$j]] = $f(_11 - 99); - $$.rmoveto($1.x, 1); - } else { - $$.rmoveto(-7, 1); - } - $k[$j++] = $1.compsym; - $0.renmatrix(); - $$.restore(); + $1.fp = $k[--$j]; //#27229 + for (var _O = $1.fp, _N = $f($1.fp + 12); _O <= _N; _O += 1) { //#27242 + $1.i = _O; //#27231 + if ($get($1.bot, $1.i) == 0) { //#27239 + if ($get($1.bot, $1.i - 1) == 1) { //#27236 + $k[$j++] = 1; //#27234 + } else { //#27236 + var _Y = ($get($1.sep, $1.i - 1) == 0) ? 1 : 0; //#27236 + $k[$j++] = _Y; //#27236 + } //#27236 + } else { //#27239 + $k[$j++] = 0; //#27239 + } //#27239 + $put($1.sep, $1.i, $k[--$j]); //#27241 + } //#27241 + }; //#27243 + $k[$j++] = Infinity; //#27244 + var _c = $1.bot; //#27244 + for (var _d = 0, _e = _c.length; _d < _e; _d++) { //#27244 + $k[$j++] = $f(1 - $get(_c, _d)); //#27244 + } //#27244 + $1.sep = $a(); //#27244 + $puti($1.sep, 0, $a([0, 0, 0, 0])); //#27245 + $puti($1.sep, $1.sep.length - 4, $a([0, 0, 0, 0])); //#27246 + $k[$j++] = Infinity; //#27249 + for (var _o = 19, _n = $1.bot.length - 13; _o <= _n; _o += 98) { //#27248 + $k[$j++] = _o; //#27248 + } //#27248 + for (var _r = 70, _q = $1.bot.length - 13; _r <= _q; _r += 98) { //#27249 + $k[$j++] = _r; //#27249 + } //#27249 + var _s = $a(); //#27249 + for (var _t = 0, _u = _s.length; _t < _u; _t++) { //#27250 + $k[$j++] = $get(_s, _t); //#27250 + $1.sepfinder(); //#27250 + } //#27250 + $$.rmoveto(0, $1.linheight); //#27251 + var _11 = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.sep], + ["pixx", $1.sep.length], + ["pixy", 1], + ["height", 1 / 72], + ["width", $1.sep.length / 72], + ["opt", $1.options] + ]); //#27258 + $k[$j++] = _11; //#27259 + $0.renmatrix(); //#27259 + var _14 = ($get($1.bot, 0) == 0) ? 2 : 0; //#27262 + $$.rmoveto(_14, 1); //#27262 + $k[$j++] = $1.comp; //#27263 + $k[$j++] = $1.options; //#27263 + $0["gs1-cc"](); //#27263 + $0.renmatrix(); //#27263 + $$.restore(); //#27265 + }; + $0['gs1-128composite'] = function() { + var $1 = {}; //#27297 + $1.options = $k[--$j]; //#27299 + $1.barcode = $k[--$j]; //#27300 + $1.dontdraw = false; //#27302 + $forall($1.options, function() { //#27313 + var _3 = $k[--$j]; //#27313 + $1[$k[--$j]] = _3; //#27313 + }); //#27313 + $search($1.barcode, "|"); //#27316 + if ($k[--$j]) { //#27321 + $1.linear = $k[--$j]; //#27317 + $j--; //#27318 + $1.comp = $k[--$j]; //#27319 + } else { //#27321 + $j--; //#27321 + } //#27321 + $$.save(); //#27324 + $put($1.options, "inkspread", "0"); //#27326 + $put($1.options, "dontdraw", true); //#27327 + $put($1.options, "linkagea", true); //#27330 + $k[$j++] = $1.linear; //#27331 + $k[$j++] = Infinity; //#27331 + $forall($1.options); //#27331 + var _E = $d(); //#27331 + $k[$j++] = _E; //#27331 + $0["gs1-128"](); //#27331 + var _G = $get($k[--$j], "sbs"); //#27332 + $k[$j++] = 0; //#27332 + $forall(_G, function() { //#27332 + var _H = $k[--$j]; //#27332 + var _I = $k[--$j]; //#27332 + $k[$j++] = $f(_I + _H); //#27332 + }); //#27332 + $1.linwidth = $k[--$j]; //#27332 + $put($1.options, "lintype", "gs1-128"); //#27335 + $put($1.options, "linwidth", $1.linwidth); //#27336 + $k[$j++] = $1.comp; //#27337 + $k[$j++] = $1.options; //#27337 + $0["gs1-cc"](); //#27337 + $1.compsym = $k[--$j]; //#27337 + if ($get($1.compsym, "pixx") == 99) { //#27338 + $k[$j++] = "a"; //#27338 + } else { //#27338 + $k[$j++] = "c"; //#27338 + } //#27338 + $1.linktype = $k[--$j]; //#27338 + if ($eq($1.linktype, "a")) { //#27346 + $put($1.options, "linkagea", true); //#27342 + $put($1.options, "linkagec", false); //#27343 + } else { //#27346 + $put($1.options, "linkagea", false); //#27345 + $put($1.options, "linkagec", true); //#27346 + } //#27346 + $k[$j++] = $1.linear; //#27348 + $k[$j++] = Infinity; //#27348 + $forall($1.options); //#27348 + var _a = $d(); //#27348 + $k[$j++] = _a; //#27348 + $0["gs1-128"](); //#27348 + var _b = $k[--$j]; //#27349 + $1.linsbs = $get(_b, "sbs"); //#27349 + $1.linheight = $get($get(_b, "bhs"), 0) * 72; //#27350 + $k[$j++] = _b; //#27351 + $0.renlinear(); //#27351 + $k[$j++] = Infinity; //#27354 + $k[$j++] = 1; //#27355 + $forall($1.linsbs, function() { //#27355 + var _g = $k[--$j]; //#27355 + var _h = $k[--$j]; //#27355 + var _i = (_h == 0) ? 1 : 0; //#27355 + $k[$j++] = _h; //#27355 + for (var _j = 0, _k = _g; _j < _k; _j++) { //#27355 + $k[$j++] = _i //#27355 + } //#27355 + }); //#27355 + $astore($a($counttomark() - 1)); //#27356 + $1.sep = $k[--$j]; //#27356 + $j -= 2; //#27356 + $$.rmoveto(0, $1.linheight); //#27357 + var _t = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.sep], + ["pixx", $1.sep.length], + ["pixy", 1], + ["height", 1 / 72], + ["width", $1.sep.length / 72], + ["opt", $1.options] + ]); //#27364 + $k[$j++] = _t; //#27365 + $0.renmatrix(); //#27365 + if ($eq($1.linktype, "a")) { //#27374 + $1.s = ~~($f($1.linwidth - 2) / 11); //#27369 + $1.p = ~~(($1.s - 9) / 2); //#27370 + $k[$j++] = 'x'; //#27371 + $k[$j++] = ((($1.s - $1.p) - 1) * 11) + 10; //#27371 + if ($1.p == 0) { //#27371 + var _10 = $k[--$j]; //#27371 + $k[$j++] = $f(_10 + 2); //#27371 + } //#27371 + var _11 = $k[--$j]; //#27371 + $1[$k[--$j]] = $f(_11 - 99); //#27371 + $$.rmoveto($1.x, 1); //#27372 + } else { //#27374 + $$.rmoveto(-7, 1); //#27374 + } //#27374 + $k[$j++] = $1.compsym; //#27377 + $0.renmatrix(); //#27377 + $$.restore(); //#27379 }; $0.gs1datamatrix = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.parse = false; - $1.dontlint = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); + var $1 = {}; //#27411 + $1.options = $k[--$j]; //#27413 + $1.barcode = $k[--$j]; //#27414 + $1.dontdraw = false; //#27416 + $1.parse = false; //#27417 + $1.dontlint = false; //#27418 + $forall($1.options, function() { //#27429 + var _3 = $k[--$j]; //#27429 + $1[$k[--$j]] = _3; //#27429 + }); //#27429 $1.expand = function() { - var _6 = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _6; - $k[$j++] = $1.fncvals; - $0.parseinput(); - }; - $1.ais = $a([]); - $1.vals = $a([]); - var _A = $1.barcode; - $k[$j++] = $geti(_A, 1, _A.length - 1); - for (;;) { - var _C = $k[--$j]; - $k[$j++] = _C; - if ($eq(_C, "")) { - break; - } - $search($k[--$j], ")"); - $j--; - var _E = $k[--$j]; - var _F = $k[--$j]; - $k[$j++] = _E; - $k[$j++] = _F; - $j--; - var _G = $k[--$j]; - var _H = $k[--$j]; - $k[$j++] = _G; - $search(_H, "("); - if ($k[--$j]) { - var _J = $k[--$j]; - var _K = $k[--$j]; - $k[$j++] = _J; - $k[$j++] = _K; - $j--; - var _L = $k[--$j]; - var _M = $k[--$j]; - var _N = $k[--$j]; - $k[$j++] = _M; - $k[$j++] = _N; - $k[$j++] = _L; - } else { - var _O = $k[--$j]; - var _P = $k[--$j]; - $k[$j++] = ""; - $k[$j++] = _P; - $k[$j++] = _O; - } - $k[$j++] = Infinity; - $aload($1.ais); - var _S = $k[$j - 1 - ($counttomark() + 2)]; - $k[$j++] = _S; - $1.ais = $a(); - $k[$j++] = Infinity; - $aload($1.vals); - var _W = $k[$j - 1 - ($counttomark() + 1)]; - $k[$j++] = _W; - $1.expand(); - $1.vals = $a(); - $j -= 2; - } - $j--; - if (!$1.dontlint) { - $k[$j++] = $1.ais; - $k[$j++] = $1.vals; - $0.gs1lint(); - $j--; - } - $1.aifixed = new Map(); - $k[$j++] = Infinity; - for (var _b = 0; _b <= 4; _b += 1) { - $k[$j++] = _b; - } - var _c = $a(); - for (var _d = 0, _e = _c.length; _d < _e; _d++) { - var _h = $strcpy($s(2), "00"); - $put(_h, 1, $f($get(_c, _d) + 48)); - $put($1.aifixed, _h, _h); - } - $k[$j++] = Infinity; - for (var _j = 11; _j <= 20; _j += 1) { - $k[$j++] = _j; - } - $k[$j++] = 23; - for (var _k = 31; _k <= 36; _k += 1) { - $k[$j++] = _k; - } - $k[$j++] = 41; - var _l = $a(); - for (var _m = 0, _n = _l.length; _m < _n; _m++) { - var _q = $cvrs($s(2), $get(_l, _m), 10); - $put($1.aifixed, _q, _q); - } - $1.fnc1 = -1; - $1.dmtx = $a([ $1.fnc1 ]); - for (var _w = 0, _v = $1.ais.length - 1; _w <= _v; _w += 1) { - $1.i = _w; - $1.ai = $get($1.ais, $1.i); - $1.val = $get($1.vals, $1.i); - var _16 = $a($1.dmtx.length + $1.ai.length + $1.val.length); - $puti(_16, 0, $1.dmtx); - $k[$j++] = _16; - $k[$j++] = _16; - $k[$j++] = $1.dmtx.length; - $k[$j++] = Infinity; - var _1B = $1.ai; - $forall(_1B); - var _1C = $a(); - var _1D = $k[--$j]; - $puti($k[--$j], _1D, _1C); - var _1F = $k[--$j]; - $k[$j++] = _1F; - $k[$j++] = _1F; - $k[$j++] = $1.dmtx.length + $1.ai.length; - $k[$j++] = Infinity; - var _1K = $1.val; - $forall(_1K); - var _1L = $a(); - var _1M = $k[--$j]; - $puti($k[--$j], _1M, _1L); - $1.dmtx = $k[--$j]; - var _1U = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; - if ($1.i != $1.ais.length - 1 && !_1U) { - var _1W = $a($1.dmtx.length + 1); - $puti(_1W, 0, $1.dmtx); - $put(_1W, $1.dmtx.length, $1.fnc1); - $1.dmtx = _1W; - } - } - $1.barcode = $s(($1.dmtx.length + 1) * 5); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.dmtx.length) { - break; - } - var _1g = $get($1.dmtx, $1.i); - $k[$j++] = _1g; - if (_1g == $1.fnc1) { - $j--; - $puti($1.barcode, $1.j, "^FNC1"); - $1.j = $1.j + 4; - } else { - $put($1.barcode, $1.j, $k[--$j]); - } - $1.i = $1.i + 1; - $1.j = $1.j + 1; - } - $1.barcode = $geti($1.barcode, 0, $1.j); - delete $1.options["parse"]; - $put($1.options, "dontdraw", true); - $put($1.options, "parsefnc", true); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.datamatrix(); - var _1y = $k[--$j]; - $1[$k[--$j]] = _1y; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var _6 = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#27436 + $1.fncvals = _6; //#27437 + $k[$j++] = $1.fncvals; //#27438 + $0.parseinput(); //#27438 + }; //#27439 + $1.ais = $a([]); //#27442 + $1.vals = $a([]); //#27443 + var _A = $1.barcode; //#27444 + $k[$j++] = $geti(_A, 1, _A.length - 1); //#27457 + for (;;) { //#27457 + var _C = $k[--$j]; //#27446 + $k[$j++] = _C; //#27446 + if ($eq(_C, "")) { //#27446 + break; //#27446 + } //#27446 + $search($k[--$j], ")"); //#27447 + $j--; //#27447 + var _E = $k[--$j]; //#27448 + var _F = $k[--$j]; //#27448 + $k[$j++] = _E; //#27448 + $k[$j++] = _F; //#27448 + $j--; //#27448 + var _G = $k[--$j]; //#27449 + var _H = $k[--$j]; //#27449 + $k[$j++] = _G; //#27449 + $search(_H, "("); //#27449 + if ($k[--$j]) { //#27452 + var _J = $k[--$j]; //#27450 + var _K = $k[--$j]; //#27450 + $k[$j++] = _J; //#27450 + $k[$j++] = _K; //#27450 + $j--; //#27450 + var _L = $k[--$j]; //#27450 + var _M = $k[--$j]; //#27450 + var _N = $k[--$j]; //#27450 + $k[$j++] = _M; //#27450 + $k[$j++] = _N; //#27450 + $k[$j++] = _L; //#27450 + } else { //#27452 + var _O = $k[--$j]; //#27452 + var _P = $k[--$j]; //#27452 + $k[$j++] = ""; //#27452 + $k[$j++] = _P; //#27452 + $k[$j++] = _O; //#27452 + } //#27452 + $k[$j++] = Infinity; //#27454 + $aload($1.ais); //#27454 + var _S = $k[$j - 1 - ($counttomark() + 2)]; //#27454 + $k[$j++] = _S; //#27454 + $1.ais = $a(); //#27454 + $k[$j++] = Infinity; //#27455 + $aload($1.vals); //#27455 + var _W = $k[$j - 1 - ($counttomark() + 1)]; //#27455 + $k[$j++] = _W; //#27455 + $1.expand(); //#27455 + $1.vals = $a(); //#27455 + $j -= 2; //#27456 + } //#27456 + $j--; //#27458 + if (!$1.dontlint) { //#27460 + $k[$j++] = $1.ais; //#27460 + $k[$j++] = $1.vals; //#27460 + $0.gs1lint(); //#27460 + $j--; //#27460 + } //#27460 + $1.aifixed = new Map; //#27465 + $k[$j++] = Infinity; //#27467 + for (var _b = 0; _b <= 4; _b += 1) { //#27467 + $k[$j++] = _b; //#27467 + } //#27467 + var _c = $a(); //#27467 + for (var _d = 0, _e = _c.length; _d < _e; _d++) { //#27470 + var _h = $strcpy($s(2), "00"); //#27469 + $put(_h, 1, $f($get(_c, _d) + 48)); //#27469 + $put($1.aifixed, _h, _h); //#27469 + } //#27469 + $k[$j++] = Infinity; //#27475 + for (var _j = 11; _j <= 20; _j += 1) { //#27472 + $k[$j++] = _j; //#27472 + } //#27472 + $k[$j++] = 23; //#27474 + for (var _k = 31; _k <= 36; _k += 1) { //#27474 + $k[$j++] = _k; //#27474 + } //#27474 + $k[$j++] = 41; //#27475 + var _l = $a(); //#27475 + for (var _m = 0, _n = _l.length; _m < _n; _m++) { //#27478 + var _q = $cvrs($s(2), $get(_l, _m), 10); //#27477 + $put($1.aifixed, _q, _q); //#27477 + } //#27477 + $1.fnc1 = -1; //#27481 + $1.dmtx = $a([$1.fnc1]); //#27482 + for (var _w = 0, _v = $1.ais.length - 1; _w <= _v; _w += 1) { //#27498 + $1.i = _w; //#27484 + $1.ai = $get($1.ais, $1.i); //#27485 + $1.val = $get($1.vals, $1.i); //#27486 + var _16 = $a(($1.dmtx.length + $1.ai.length) + $1.val.length); //#27487 + $puti(_16, 0, $1.dmtx); //#27488 + $k[$j++] = _16; //#27489 + $k[$j++] = _16; //#27489 + $k[$j++] = $1.dmtx.length; //#27489 + $k[$j++] = $1.ai; //#27489 + $k[$j++] = Infinity; //#27489 + var _1A = $k[--$j]; //#27489 + var _1B = $k[--$j]; //#27489 + $k[$j++] = _1A; //#27489 + $forall(_1B); //#27489 + var _1C = $a(); //#27489 + var _1D = $k[--$j]; //#27489 + $puti($k[--$j], _1D, _1C); //#27489 + var _1F = $k[--$j]; //#27490 + $k[$j++] = _1F; //#27490 + $k[$j++] = _1F; //#27490 + $k[$j++] = $1.dmtx.length + $1.ai.length; //#27490 + $k[$j++] = $1.val; //#27490 + $k[$j++] = Infinity; //#27490 + var _1J = $k[--$j]; //#27490 + var _1K = $k[--$j]; //#27490 + $k[$j++] = _1J; //#27490 + $forall(_1K); //#27490 + var _1L = $a(); //#27490 + var _1M = $k[--$j]; //#27490 + $puti($k[--$j], _1M, _1L); //#27490 + $1.dmtx = $k[--$j]; //#27491 + var _1U = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; //#27492 + if (($1.i != ($1.ais.length - 1)) && (!_1U)) { //#27497 + var _1W = $a($1.dmtx.length + 1); //#27493 + $puti(_1W, 0, $1.dmtx); //#27494 + $put(_1W, $1.dmtx.length, $1.fnc1); //#27495 + $1.dmtx = _1W; //#27496 + } //#27496 + } //#27496 + $1.barcode = $s(($1.dmtx.length + 1) * 5); //#27501 + $1.i = 0; //#27502 + $1.j = 0; //#27502 + for (;;) { //#27512 + if ($1.i == $1.dmtx.length) { //#27503 + break; //#27503 + } //#27503 + var _1g = $get($1.dmtx, $1.i); //#27504 + $k[$j++] = _1g; //#27509 + if (_1g == $1.fnc1) { //#27508 + $j--; //#27505 + $puti($1.barcode, $1.j, "^FNC1"); //#27505 + $1.j = $1.j + 4; //#27506 + } else { //#27508 + $put($1.barcode, $1.j, $k[--$j]); //#27508 + } //#27508 + $1.i = $1.i + 1; //#27510 + $1.j = $1.j + 1; //#27511 + } //#27511 + $1.barcode = $geti($1.barcode, 0, $1.j); //#27513 + delete $1.options["parse"]; //#27516 + $put($1.options, "dontdraw", true); //#27517 + $put($1.options, "parsefnc", true); //#27518 + $k[$j++] = 'args'; //#27519 + $k[$j++] = $1.barcode; //#27519 + $k[$j++] = $1.options; //#27519 + $0.datamatrix(); //#27519 + var _1y = $k[--$j]; //#27519 + $1[$k[--$j]] = _1y; //#27519 + $put($1.args, "opt", $1.options); //#27521 + $k[$j++] = $1.args; //#27524 + if (!$1.dontdraw) { //#27524 + $0.renmatrix(); //#27524 + } //#27524 }; $0.gs1datamatrixrectangular = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.parse = false; - $1.dontlint = false; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); + var $1 = {}; //#27556 + $1.options = $k[--$j]; //#27558 + $1.barcode = $k[--$j]; //#27559 + $1.parse = false; //#27561 + $1.dontlint = false; //#27562 + $1.dontdraw = false; //#27563 + $forall($1.options, function() { //#27574 + var _3 = $k[--$j]; //#27574 + $1[$k[--$j]] = _3; //#27574 + }); //#27574 $1.expand = function() { - var _6 = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _6; - $k[$j++] = $1.fncvals; - $0.parseinput(); - }; - $1.ais = $a([]); - $1.vals = $a([]); - var _A = $1.barcode; - $k[$j++] = $geti(_A, 1, _A.length - 1); - for (;;) { - var _C = $k[--$j]; - $k[$j++] = _C; - if ($eq(_C, "")) { - break; - } - $search($k[--$j], ")"); - $j--; - var _E = $k[--$j]; - var _F = $k[--$j]; - $k[$j++] = _E; - $k[$j++] = _F; - $j--; - var _G = $k[--$j]; - var _H = $k[--$j]; - $k[$j++] = _G; - $search(_H, "("); - if ($k[--$j]) { - var _J = $k[--$j]; - var _K = $k[--$j]; - $k[$j++] = _J; - $k[$j++] = _K; - $j--; - var _L = $k[--$j]; - var _M = $k[--$j]; - var _N = $k[--$j]; - $k[$j++] = _M; - $k[$j++] = _N; - $k[$j++] = _L; - } else { - var _O = $k[--$j]; - var _P = $k[--$j]; - $k[$j++] = ""; - $k[$j++] = _P; - $k[$j++] = _O; - } - $k[$j++] = Infinity; - $aload($1.ais); - var _S = $k[$j - 1 - ($counttomark() + 2)]; - $k[$j++] = _S; - $1.ais = $a(); - $k[$j++] = Infinity; - $aload($1.vals); - var _W = $k[$j - 1 - ($counttomark() + 1)]; - $k[$j++] = _W; - $1.expand(); - $1.vals = $a(); - $j -= 2; - } - $j--; - if (!$1.dontlint) { - $k[$j++] = $1.ais; - $k[$j++] = $1.vals; - $0.gs1lint(); - $j--; - } - $1.aifixed = new Map(); - $k[$j++] = Infinity; - for (var _b = 0; _b <= 4; _b += 1) { - $k[$j++] = _b; - } - var _c = $a(); - for (var _d = 0, _e = _c.length; _d < _e; _d++) { - var _h = $strcpy($s(2), "00"); - $put(_h, 1, $f($get(_c, _d) + 48)); - $put($1.aifixed, _h, _h); - } - $k[$j++] = Infinity; - for (var _j = 11; _j <= 20; _j += 1) { - $k[$j++] = _j; - } - $k[$j++] = 23; - for (var _k = 31; _k <= 36; _k += 1) { - $k[$j++] = _k; - } - $k[$j++] = 41; - var _l = $a(); - for (var _m = 0, _n = _l.length; _m < _n; _m++) { - var _q = $cvrs($s(2), $get(_l, _m), 10); - $put($1.aifixed, _q, _q); - } - $1.fnc1 = -1; - $1.dmtx = $a([ $1.fnc1 ]); - for (var _w = 0, _v = $1.ais.length - 1; _w <= _v; _w += 1) { - $1.i = _w; - $1.ai = $get($1.ais, $1.i); - $1.val = $get($1.vals, $1.i); - var _16 = $a($1.dmtx.length + $1.ai.length + $1.val.length); - $puti(_16, 0, $1.dmtx); - $k[$j++] = _16; - $k[$j++] = _16; - $k[$j++] = $1.dmtx.length; - $k[$j++] = Infinity; - var _1B = $1.ai; - $forall(_1B); - var _1C = $a(); - var _1D = $k[--$j]; - $puti($k[--$j], _1D, _1C); - var _1F = $k[--$j]; - $k[$j++] = _1F; - $k[$j++] = _1F; - $k[$j++] = $1.dmtx.length + $1.ai.length; - $k[$j++] = Infinity; - var _1K = $1.val; - $forall(_1K); - var _1L = $a(); - var _1M = $k[--$j]; - $puti($k[--$j], _1M, _1L); - $1.dmtx = $k[--$j]; - var _1U = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; - if ($1.i != $1.ais.length - 1 && !_1U) { - var _1W = $a($1.dmtx.length + 1); - $puti(_1W, 0, $1.dmtx); - $put(_1W, $1.dmtx.length, $1.fnc1); - $1.dmtx = _1W; - } - } - $1.barcode = $s(($1.dmtx.length + 1) * 5); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.dmtx.length) { - break; - } - var _1g = $get($1.dmtx, $1.i); - $k[$j++] = _1g; - if (_1g == $1.fnc1) { - $j--; - $puti($1.barcode, $1.j, "^FNC1"); - $1.j = $1.j + 4; - } else { - $put($1.barcode, $1.j, $k[--$j]); - } - $1.i = $1.i + 1; - $1.j = $1.j + 1; - } - $1.barcode = $geti($1.barcode, 0, $1.j); - delete $1.options["parse"]; - $put($1.options, "dontdraw", true); - $put($1.options, "parsefnc", true); - $put($1.options, "format", "rectangle"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.datamatrix(); - var _1z = $k[--$j]; - $1[$k[--$j]] = _1z; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var _6 = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#27581 + $1.fncvals = _6; //#27582 + $k[$j++] = $1.fncvals; //#27583 + $0.parseinput(); //#27583 + }; //#27584 + $1.ais = $a([]); //#27587 + $1.vals = $a([]); //#27588 + var _A = $1.barcode; //#27589 + $k[$j++] = $geti(_A, 1, _A.length - 1); //#27602 + for (;;) { //#27602 + var _C = $k[--$j]; //#27591 + $k[$j++] = _C; //#27591 + if ($eq(_C, "")) { //#27591 + break; //#27591 + } //#27591 + $search($k[--$j], ")"); //#27592 + $j--; //#27592 + var _E = $k[--$j]; //#27593 + var _F = $k[--$j]; //#27593 + $k[$j++] = _E; //#27593 + $k[$j++] = _F; //#27593 + $j--; //#27593 + var _G = $k[--$j]; //#27594 + var _H = $k[--$j]; //#27594 + $k[$j++] = _G; //#27594 + $search(_H, "("); //#27594 + if ($k[--$j]) { //#27597 + var _J = $k[--$j]; //#27595 + var _K = $k[--$j]; //#27595 + $k[$j++] = _J; //#27595 + $k[$j++] = _K; //#27595 + $j--; //#27595 + var _L = $k[--$j]; //#27595 + var _M = $k[--$j]; //#27595 + var _N = $k[--$j]; //#27595 + $k[$j++] = _M; //#27595 + $k[$j++] = _N; //#27595 + $k[$j++] = _L; //#27595 + } else { //#27597 + var _O = $k[--$j]; //#27597 + var _P = $k[--$j]; //#27597 + $k[$j++] = ""; //#27597 + $k[$j++] = _P; //#27597 + $k[$j++] = _O; //#27597 + } //#27597 + $k[$j++] = Infinity; //#27599 + $aload($1.ais); //#27599 + var _S = $k[$j - 1 - ($counttomark() + 2)]; //#27599 + $k[$j++] = _S; //#27599 + $1.ais = $a(); //#27599 + $k[$j++] = Infinity; //#27600 + $aload($1.vals); //#27600 + var _W = $k[$j - 1 - ($counttomark() + 1)]; //#27600 + $k[$j++] = _W; //#27600 + $1.expand(); //#27600 + $1.vals = $a(); //#27600 + $j -= 2; //#27601 + } //#27601 + $j--; //#27603 + if (!$1.dontlint) { //#27605 + $k[$j++] = $1.ais; //#27605 + $k[$j++] = $1.vals; //#27605 + $0.gs1lint(); //#27605 + $j--; //#27605 + } //#27605 + $1.aifixed = new Map; //#27610 + $k[$j++] = Infinity; //#27612 + for (var _b = 0; _b <= 4; _b += 1) { //#27612 + $k[$j++] = _b; //#27612 + } //#27612 + var _c = $a(); //#27612 + for (var _d = 0, _e = _c.length; _d < _e; _d++) { //#27615 + var _h = $strcpy($s(2), "00"); //#27614 + $put(_h, 1, $f($get(_c, _d) + 48)); //#27614 + $put($1.aifixed, _h, _h); //#27614 + } //#27614 + $k[$j++] = Infinity; //#27620 + for (var _j = 11; _j <= 20; _j += 1) { //#27617 + $k[$j++] = _j; //#27617 + } //#27617 + $k[$j++] = 23; //#27619 + for (var _k = 31; _k <= 36; _k += 1) { //#27619 + $k[$j++] = _k; //#27619 + } //#27619 + $k[$j++] = 41; //#27620 + var _l = $a(); //#27620 + for (var _m = 0, _n = _l.length; _m < _n; _m++) { //#27623 + var _q = $cvrs($s(2), $get(_l, _m), 10); //#27622 + $put($1.aifixed, _q, _q); //#27622 + } //#27622 + $1.fnc1 = -1; //#27626 + $1.dmtx = $a([$1.fnc1]); //#27627 + for (var _w = 0, _v = $1.ais.length - 1; _w <= _v; _w += 1) { //#27643 + $1.i = _w; //#27629 + $1.ai = $get($1.ais, $1.i); //#27630 + $1.val = $get($1.vals, $1.i); //#27631 + var _16 = $a(($1.dmtx.length + $1.ai.length) + $1.val.length); //#27632 + $puti(_16, 0, $1.dmtx); //#27633 + $k[$j++] = _16; //#27634 + $k[$j++] = _16; //#27634 + $k[$j++] = $1.dmtx.length; //#27634 + $k[$j++] = $1.ai; //#27634 + $k[$j++] = Infinity; //#27634 + var _1A = $k[--$j]; //#27634 + var _1B = $k[--$j]; //#27634 + $k[$j++] = _1A; //#27634 + $forall(_1B); //#27634 + var _1C = $a(); //#27634 + var _1D = $k[--$j]; //#27634 + $puti($k[--$j], _1D, _1C); //#27634 + var _1F = $k[--$j]; //#27635 + $k[$j++] = _1F; //#27635 + $k[$j++] = _1F; //#27635 + $k[$j++] = $1.dmtx.length + $1.ai.length; //#27635 + $k[$j++] = $1.val; //#27635 + $k[$j++] = Infinity; //#27635 + var _1J = $k[--$j]; //#27635 + var _1K = $k[--$j]; //#27635 + $k[$j++] = _1J; //#27635 + $forall(_1K); //#27635 + var _1L = $a(); //#27635 + var _1M = $k[--$j]; //#27635 + $puti($k[--$j], _1M, _1L); //#27635 + $1.dmtx = $k[--$j]; //#27636 + var _1U = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; //#27637 + if (($1.i != ($1.ais.length - 1)) && (!_1U)) { //#27642 + var _1W = $a($1.dmtx.length + 1); //#27638 + $puti(_1W, 0, $1.dmtx); //#27639 + $put(_1W, $1.dmtx.length, $1.fnc1); //#27640 + $1.dmtx = _1W; //#27641 + } //#27641 + } //#27641 + $1.barcode = $s(($1.dmtx.length + 1) * 5); //#27646 + $1.i = 0; //#27647 + $1.j = 0; //#27647 + for (;;) { //#27657 + if ($1.i == $1.dmtx.length) { //#27648 + break; //#27648 + } //#27648 + var _1g = $get($1.dmtx, $1.i); //#27649 + $k[$j++] = _1g; //#27654 + if (_1g == $1.fnc1) { //#27653 + $j--; //#27650 + $puti($1.barcode, $1.j, "^FNC1"); //#27650 + $1.j = $1.j + 4; //#27651 + } else { //#27653 + $put($1.barcode, $1.j, $k[--$j]); //#27653 + } //#27653 + $1.i = $1.i + 1; //#27655 + $1.j = $1.j + 1; //#27656 + } //#27656 + $1.barcode = $geti($1.barcode, 0, $1.j); //#27658 + delete $1.options["parse"]; //#27661 + $put($1.options, "dontdraw", true); //#27662 + $put($1.options, "parsefnc", true); //#27663 + $put($1.options, "format", "rectangle"); //#27664 + $k[$j++] = 'args'; //#27665 + $k[$j++] = $1.barcode; //#27665 + $k[$j++] = $1.options; //#27665 + $0.datamatrix(); //#27665 + var _1z = $k[--$j]; //#27665 + $1[$k[--$j]] = _1z; //#27665 + $put($1.args, "opt", $1.options); //#27667 + $k[$j++] = $1.args; //#27670 + if (!$1.dontdraw) { //#27670 + $0.renmatrix(); //#27670 + } //#27670 }; $0.gs1qrcode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.parse = false; - $1.dontlint = false; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); + var $1 = {}; //#27701 + $1.options = $k[--$j]; //#27703 + $1.barcode = $k[--$j]; //#27704 + $1.parse = false; //#27706 + $1.dontlint = false; //#27707 + $1.dontdraw = false; //#27708 + $forall($1.options, function() { //#27719 + var _3 = $k[--$j]; //#27719 + $1[$k[--$j]] = _3; //#27719 + }); //#27719 $1.expand = function() { - var _6 = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _6; - $k[$j++] = $1.fncvals; - $0.parseinput(); - }; - $1.ais = $a([]); - $1.vals = $a([]); - var _A = $1.barcode; - $k[$j++] = $geti(_A, 1, _A.length - 1); - for (;;) { - var _C = $k[--$j]; - $k[$j++] = _C; - if ($eq(_C, "")) { - break; - } - $search($k[--$j], ")"); - $j--; - var _E = $k[--$j]; - var _F = $k[--$j]; - $k[$j++] = _E; - $k[$j++] = _F; - $j--; - var _G = $k[--$j]; - var _H = $k[--$j]; - $k[$j++] = _G; - $search(_H, "("); - if ($k[--$j]) { - var _J = $k[--$j]; - var _K = $k[--$j]; - $k[$j++] = _J; - $k[$j++] = _K; - $j--; - var _L = $k[--$j]; - var _M = $k[--$j]; - var _N = $k[--$j]; - $k[$j++] = _M; - $k[$j++] = _N; - $k[$j++] = _L; - } else { - var _O = $k[--$j]; - var _P = $k[--$j]; - $k[$j++] = ""; - $k[$j++] = _P; - $k[$j++] = _O; - } - $k[$j++] = Infinity; - $aload($1.ais); - var _S = $k[$j - 1 - ($counttomark() + 2)]; - $k[$j++] = _S; - $1.ais = $a(); - $k[$j++] = Infinity; - $aload($1.vals); - var _W = $k[$j - 1 - ($counttomark() + 1)]; - $k[$j++] = _W; - $1.expand(); - $1.vals = $a(); - $j -= 2; - } - $j--; - if (!$1.dontlint) { - $k[$j++] = $1.ais; - $k[$j++] = $1.vals; - $0.gs1lint(); - $j--; - } - $1.aifixed = new Map(); - $k[$j++] = Infinity; - for (var _b = 0; _b <= 4; _b += 1) { - $k[$j++] = _b; - } - var _c = $a(); - for (var _d = 0, _e = _c.length; _d < _e; _d++) { - var _h = $strcpy($s(2), "00"); - $put(_h, 1, $f($get(_c, _d) + 48)); - $put($1.aifixed, _h, _h); - } - $k[$j++] = Infinity; - for (var _j = 11; _j <= 20; _j += 1) { - $k[$j++] = _j; - } - $k[$j++] = 23; - for (var _k = 31; _k <= 36; _k += 1) { - $k[$j++] = _k; - } - $k[$j++] = 41; - var _l = $a(); - for (var _m = 0, _n = _l.length; _m < _n; _m++) { - var _q = $cvrs($s(2), $get(_l, _m), 10); - $put($1.aifixed, _q, _q); - } - $1.fnc1 = -1; - $1.qrc = $a([ $1.fnc1 ]); - for (var _w = 0, _v = $1.ais.length - 1; _w <= _v; _w += 1) { - $1.i = _w; - $1.ai = $get($1.ais, $1.i); - $1.val = $get($1.vals, $1.i); - var _16 = $a($1.qrc.length + $1.ai.length + $1.val.length); - $puti(_16, 0, $1.qrc); - $k[$j++] = _16; - $k[$j++] = _16; - $k[$j++] = $1.qrc.length; - $k[$j++] = Infinity; - var _1B = $1.ai; - $forall(_1B); - var _1C = $a(); - var _1D = $k[--$j]; - $puti($k[--$j], _1D, _1C); - var _1F = $k[--$j]; - $k[$j++] = _1F; - $k[$j++] = _1F; - $k[$j++] = $1.qrc.length + $1.ai.length; - $k[$j++] = Infinity; - var _1K = $1.val; - $forall(_1K); - var _1L = $a(); - var _1M = $k[--$j]; - $puti($k[--$j], _1M, _1L); - $1.qrc = $k[--$j]; - var _1U = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; - if ($1.i != $1.ais.length - 1 && !_1U) { - var _1W = $a($1.qrc.length + 1); - $puti(_1W, 0, $1.qrc); - $put(_1W, $1.qrc.length, $1.fnc1); - $1.qrc = _1W; - } - } - $1.barcode = $s(($1.qrc.length + 1) * 5); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.qrc.length) { - break; - } - var _1g = $get($1.qrc, $1.i); - $k[$j++] = _1g; - if (_1g == $1.fnc1) { - $j--; - $puti($1.barcode, $1.j, "^FNC1"); - $1.j = $1.j + 4; - } else { - $put($1.barcode, $1.j, $k[--$j]); - } - $1.i = $1.i + 1; - $1.j = $1.j + 1; - } - $1.barcode = $geti($1.barcode, 0, $1.j); - delete $1.options["parse"]; - $put($1.options, "dontdraw", true); - $put($1.options, "parsefnc", true); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.qrcode(); - var _1y = $k[--$j]; - $1[$k[--$j]] = _1y; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var _6 = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#27726 + $1.fncvals = _6; //#27727 + $k[$j++] = $1.fncvals; //#27728 + $0.parseinput(); //#27728 + }; //#27729 + $1.ais = $a([]); //#27732 + $1.vals = $a([]); //#27733 + var _A = $1.barcode; //#27734 + $k[$j++] = $geti(_A, 1, _A.length - 1); //#27747 + for (;;) { //#27747 + var _C = $k[--$j]; //#27736 + $k[$j++] = _C; //#27736 + if ($eq(_C, "")) { //#27736 + break; //#27736 + } //#27736 + $search($k[--$j], ")"); //#27737 + $j--; //#27737 + var _E = $k[--$j]; //#27738 + var _F = $k[--$j]; //#27738 + $k[$j++] = _E; //#27738 + $k[$j++] = _F; //#27738 + $j--; //#27738 + var _G = $k[--$j]; //#27739 + var _H = $k[--$j]; //#27739 + $k[$j++] = _G; //#27739 + $search(_H, "("); //#27739 + if ($k[--$j]) { //#27742 + var _J = $k[--$j]; //#27740 + var _K = $k[--$j]; //#27740 + $k[$j++] = _J; //#27740 + $k[$j++] = _K; //#27740 + $j--; //#27740 + var _L = $k[--$j]; //#27740 + var _M = $k[--$j]; //#27740 + var _N = $k[--$j]; //#27740 + $k[$j++] = _M; //#27740 + $k[$j++] = _N; //#27740 + $k[$j++] = _L; //#27740 + } else { //#27742 + var _O = $k[--$j]; //#27742 + var _P = $k[--$j]; //#27742 + $k[$j++] = ""; //#27742 + $k[$j++] = _P; //#27742 + $k[$j++] = _O; //#27742 + } //#27742 + $k[$j++] = Infinity; //#27744 + $aload($1.ais); //#27744 + var _S = $k[$j - 1 - ($counttomark() + 2)]; //#27744 + $k[$j++] = _S; //#27744 + $1.ais = $a(); //#27744 + $k[$j++] = Infinity; //#27745 + $aload($1.vals); //#27745 + var _W = $k[$j - 1 - ($counttomark() + 1)]; //#27745 + $k[$j++] = _W; //#27745 + $1.expand(); //#27745 + $1.vals = $a(); //#27745 + $j -= 2; //#27746 + } //#27746 + $j--; //#27748 + if (!$1.dontlint) { //#27750 + $k[$j++] = $1.ais; //#27750 + $k[$j++] = $1.vals; //#27750 + $0.gs1lint(); //#27750 + $j--; //#27750 + } //#27750 + $1.aifixed = new Map; //#27755 + $k[$j++] = Infinity; //#27757 + for (var _b = 0; _b <= 4; _b += 1) { //#27757 + $k[$j++] = _b; //#27757 + } //#27757 + var _c = $a(); //#27757 + for (var _d = 0, _e = _c.length; _d < _e; _d++) { //#27760 + var _h = $strcpy($s(2), "00"); //#27759 + $put(_h, 1, $f($get(_c, _d) + 48)); //#27759 + $put($1.aifixed, _h, _h); //#27759 + } //#27759 + $k[$j++] = Infinity; //#27765 + for (var _j = 11; _j <= 20; _j += 1) { //#27762 + $k[$j++] = _j; //#27762 + } //#27762 + $k[$j++] = 23; //#27764 + for (var _k = 31; _k <= 36; _k += 1) { //#27764 + $k[$j++] = _k; //#27764 + } //#27764 + $k[$j++] = 41; //#27765 + var _l = $a(); //#27765 + for (var _m = 0, _n = _l.length; _m < _n; _m++) { //#27768 + var _q = $cvrs($s(2), $get(_l, _m), 10); //#27767 + $put($1.aifixed, _q, _q); //#27767 + } //#27767 + $1.fnc1 = -1; //#27771 + $1.qrc = $a([$1.fnc1]); //#27772 + for (var _w = 0, _v = $1.ais.length - 1; _w <= _v; _w += 1) { //#27788 + $1.i = _w; //#27774 + $1.ai = $get($1.ais, $1.i); //#27775 + $1.val = $get($1.vals, $1.i); //#27776 + var _16 = $a(($1.qrc.length + $1.ai.length) + $1.val.length); //#27777 + $puti(_16, 0, $1.qrc); //#27778 + $k[$j++] = _16; //#27779 + $k[$j++] = _16; //#27779 + $k[$j++] = $1.qrc.length; //#27779 + $k[$j++] = $1.ai; //#27779 + $k[$j++] = Infinity; //#27779 + var _1A = $k[--$j]; //#27779 + var _1B = $k[--$j]; //#27779 + $k[$j++] = _1A; //#27779 + $forall(_1B); //#27779 + var _1C = $a(); //#27779 + var _1D = $k[--$j]; //#27779 + $puti($k[--$j], _1D, _1C); //#27779 + var _1F = $k[--$j]; //#27780 + $k[$j++] = _1F; //#27780 + $k[$j++] = _1F; //#27780 + $k[$j++] = $1.qrc.length + $1.ai.length; //#27780 + $k[$j++] = $1.val; //#27780 + $k[$j++] = Infinity; //#27780 + var _1J = $k[--$j]; //#27780 + var _1K = $k[--$j]; //#27780 + $k[$j++] = _1J; //#27780 + $forall(_1K); //#27780 + var _1L = $a(); //#27780 + var _1M = $k[--$j]; //#27780 + $puti($k[--$j], _1M, _1L); //#27780 + $1.qrc = $k[--$j]; //#27781 + var _1U = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; //#27782 + if (($1.i != ($1.ais.length - 1)) && (!_1U)) { //#27787 + var _1W = $a($1.qrc.length + 1); //#27783 + $puti(_1W, 0, $1.qrc); //#27784 + $put(_1W, $1.qrc.length, $1.fnc1); //#27785 + $1.qrc = _1W; //#27786 + } //#27786 + } //#27786 + $1.barcode = $s(($1.qrc.length + 1) * 5); //#27791 + $1.i = 0; //#27792 + $1.j = 0; //#27792 + for (;;) { //#27802 + if ($1.i == $1.qrc.length) { //#27793 + break; //#27793 + } //#27793 + var _1g = $get($1.qrc, $1.i); //#27794 + $k[$j++] = _1g; //#27799 + if (_1g == $1.fnc1) { //#27798 + $j--; //#27795 + $puti($1.barcode, $1.j, "^FNC1"); //#27795 + $1.j = $1.j + 4; //#27796 + } else { //#27798 + $put($1.barcode, $1.j, $k[--$j]); //#27798 + } //#27798 + $1.i = $1.i + 1; //#27800 + $1.j = $1.j + 1; //#27801 + } //#27801 + $1.barcode = $geti($1.barcode, 0, $1.j); //#27803 + delete $1.options["parse"]; //#27806 + $put($1.options, "dontdraw", true); //#27807 + $put($1.options, "parsefnc", true); //#27808 + $k[$j++] = 'args'; //#27809 + $k[$j++] = $1.barcode; //#27809 + $k[$j++] = $1.options; //#27809 + $0.qrcode(); //#27809 + var _1y = $k[--$j]; //#27809 + $1[$k[--$j]] = _1y; //#27809 + $put($1.args, "opt", $1.options); //#27811 + $k[$j++] = $1.args; //#27814 + if (!$1.dontdraw) { //#27814 + $0.renmatrix(); //#27814 + } //#27814 }; $0.gs1dotcode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.parse = false; - $1.dontlint = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); + var $1 = {}; //#27846 + $1.options = $k[--$j]; //#27848 + $1.barcode = $k[--$j]; //#27849 + $1.dontdraw = false; //#27851 + $1.parse = false; //#27852 + $1.dontlint = false; //#27853 + $forall($1.options, function() { //#27864 + var _3 = $k[--$j]; //#27864 + $1[$k[--$j]] = _3; //#27864 + }); //#27864 $1.expand = function() { - var _6 = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _6; - $k[$j++] = $1.fncvals; - $0.parseinput(); - }; - $1.ais = $a([]); - $1.vals = $a([]); - var _A = $1.barcode; - $k[$j++] = $geti(_A, 1, _A.length - 1); - for (;;) { - var _C = $k[--$j]; - $k[$j++] = _C; - if ($eq(_C, "")) { - break; - } - $search($k[--$j], ")"); - $j--; - var _E = $k[--$j]; - var _F = $k[--$j]; - $k[$j++] = _E; - $k[$j++] = _F; - $j--; - var _G = $k[--$j]; - var _H = $k[--$j]; - $k[$j++] = _G; - $search(_H, "("); - if ($k[--$j]) { - var _J = $k[--$j]; - var _K = $k[--$j]; - $k[$j++] = _J; - $k[$j++] = _K; - $j--; - var _L = $k[--$j]; - var _M = $k[--$j]; - var _N = $k[--$j]; - $k[$j++] = _M; - $k[$j++] = _N; - $k[$j++] = _L; - } else { - var _O = $k[--$j]; - var _P = $k[--$j]; - $k[$j++] = ""; - $k[$j++] = _P; - $k[$j++] = _O; - } - $k[$j++] = Infinity; - $aload($1.ais); - var _S = $k[$j - 1 - ($counttomark() + 2)]; - $k[$j++] = _S; - $1.ais = $a(); - $k[$j++] = Infinity; - $aload($1.vals); - var _W = $k[$j - 1 - ($counttomark() + 1)]; - $k[$j++] = _W; - $1.expand(); - $1.vals = $a(); - $j -= 2; - } - $j--; - if (!$1.dontlint) { - $k[$j++] = $1.ais; - $k[$j++] = $1.vals; - $0.gs1lint(); - $j--; - } - $1.aifixed = new Map(); - $k[$j++] = Infinity; - for (var _b = 0; _b <= 4; _b += 1) { - $k[$j++] = _b; - } - var _c = $a(); - for (var _d = 0, _e = _c.length; _d < _e; _d++) { - var _h = $strcpy($s(2), "00"); - $put(_h, 1, $f($get(_c, _d) + 48)); - $put($1.aifixed, _h, _h); - } - $k[$j++] = Infinity; - for (var _j = 11; _j <= 20; _j += 1) { - $k[$j++] = _j; - } - $k[$j++] = 23; - for (var _k = 31; _k <= 36; _k += 1) { - $k[$j++] = _k; - } - $k[$j++] = 41; - var _l = $a(); - for (var _m = 0, _n = _l.length; _m < _n; _m++) { - var _q = $cvrs($s(2), $get(_l, _m), 10); - $put($1.aifixed, _q, _q); - } - $1.fnc1 = -1; - $1.dmtx = $a([ $1.fnc1 ]); - for (var _w = 0, _v = $1.ais.length - 1; _w <= _v; _w += 1) { - $1.i = _w; - $1.ai = $get($1.ais, $1.i); - $1.val = $get($1.vals, $1.i); - var _16 = $a($1.dmtx.length + $1.ai.length + $1.val.length); - $puti(_16, 0, $1.dmtx); - $k[$j++] = _16; - $k[$j++] = _16; - $k[$j++] = $1.dmtx.length; - $k[$j++] = Infinity; - var _1B = $1.ai; - $forall(_1B); - var _1C = $a(); - var _1D = $k[--$j]; - $puti($k[--$j], _1D, _1C); - var _1F = $k[--$j]; - $k[$j++] = _1F; - $k[$j++] = _1F; - $k[$j++] = $1.dmtx.length + $1.ai.length; - $k[$j++] = Infinity; - var _1K = $1.val; - $forall(_1K); - var _1L = $a(); - var _1M = $k[--$j]; - $puti($k[--$j], _1M, _1L); - $1.dmtx = $k[--$j]; - var _1U = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; - if ($1.i != $1.ais.length - 1 && !_1U) { - var _1W = $a($1.dmtx.length + 1); - $puti(_1W, 0, $1.dmtx); - $put(_1W, $1.dmtx.length, $1.fnc1); - $1.dmtx = _1W; - } - } - $1.barcode = $s(($1.dmtx.length + 1) * 5); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.dmtx.length) { - break; - } - var _1g = $get($1.dmtx, $1.i); - $k[$j++] = _1g; - if (_1g == $1.fnc1) { - $j--; - $puti($1.barcode, $1.j, "^FNC1"); - $1.j = $1.j + 4; - } else { - $put($1.barcode, $1.j, $k[--$j]); - } - $1.i = $1.i + 1; - $1.j = $1.j + 1; - } - $1.barcode = $geti($1.barcode, 0, $1.j); - delete $1.options["parse"]; - $put($1.options, "dontdraw", true); - $put($1.options, "parsefnc", true); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.dotcode(); - var _1y = $k[--$j]; - $1[$k[--$j]] = _1y; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var _6 = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#27871 + $1.fncvals = _6; //#27872 + $k[$j++] = $1.fncvals; //#27873 + $0.parseinput(); //#27873 + }; //#27874 + $1.ais = $a([]); //#27877 + $1.vals = $a([]); //#27878 + var _A = $1.barcode; //#27879 + $k[$j++] = $geti(_A, 1, _A.length - 1); //#27892 + for (;;) { //#27892 + var _C = $k[--$j]; //#27881 + $k[$j++] = _C; //#27881 + if ($eq(_C, "")) { //#27881 + break; //#27881 + } //#27881 + $search($k[--$j], ")"); //#27882 + $j--; //#27882 + var _E = $k[--$j]; //#27883 + var _F = $k[--$j]; //#27883 + $k[$j++] = _E; //#27883 + $k[$j++] = _F; //#27883 + $j--; //#27883 + var _G = $k[--$j]; //#27884 + var _H = $k[--$j]; //#27884 + $k[$j++] = _G; //#27884 + $search(_H, "("); //#27884 + if ($k[--$j]) { //#27887 + var _J = $k[--$j]; //#27885 + var _K = $k[--$j]; //#27885 + $k[$j++] = _J; //#27885 + $k[$j++] = _K; //#27885 + $j--; //#27885 + var _L = $k[--$j]; //#27885 + var _M = $k[--$j]; //#27885 + var _N = $k[--$j]; //#27885 + $k[$j++] = _M; //#27885 + $k[$j++] = _N; //#27885 + $k[$j++] = _L; //#27885 + } else { //#27887 + var _O = $k[--$j]; //#27887 + var _P = $k[--$j]; //#27887 + $k[$j++] = ""; //#27887 + $k[$j++] = _P; //#27887 + $k[$j++] = _O; //#27887 + } //#27887 + $k[$j++] = Infinity; //#27889 + $aload($1.ais); //#27889 + var _S = $k[$j - 1 - ($counttomark() + 2)]; //#27889 + $k[$j++] = _S; //#27889 + $1.ais = $a(); //#27889 + $k[$j++] = Infinity; //#27890 + $aload($1.vals); //#27890 + var _W = $k[$j - 1 - ($counttomark() + 1)]; //#27890 + $k[$j++] = _W; //#27890 + $1.expand(); //#27890 + $1.vals = $a(); //#27890 + $j -= 2; //#27891 + } //#27891 + $j--; //#27893 + if (!$1.dontlint) { //#27895 + $k[$j++] = $1.ais; //#27895 + $k[$j++] = $1.vals; //#27895 + $0.gs1lint(); //#27895 + $j--; //#27895 + } //#27895 + $1.aifixed = new Map; //#27900 + $k[$j++] = Infinity; //#27902 + for (var _b = 0; _b <= 4; _b += 1) { //#27902 + $k[$j++] = _b; //#27902 + } //#27902 + var _c = $a(); //#27902 + for (var _d = 0, _e = _c.length; _d < _e; _d++) { //#27905 + var _h = $strcpy($s(2), "00"); //#27904 + $put(_h, 1, $f($get(_c, _d) + 48)); //#27904 + $put($1.aifixed, _h, _h); //#27904 + } //#27904 + $k[$j++] = Infinity; //#27910 + for (var _j = 11; _j <= 20; _j += 1) { //#27907 + $k[$j++] = _j; //#27907 + } //#27907 + $k[$j++] = 23; //#27909 + for (var _k = 31; _k <= 36; _k += 1) { //#27909 + $k[$j++] = _k; //#27909 + } //#27909 + $k[$j++] = 41; //#27910 + var _l = $a(); //#27910 + for (var _m = 0, _n = _l.length; _m < _n; _m++) { //#27913 + var _q = $cvrs($s(2), $get(_l, _m), 10); //#27912 + $put($1.aifixed, _q, _q); //#27912 + } //#27912 + $1.fnc1 = -1; //#27916 + $1.dmtx = $a([$1.fnc1]); //#27917 + for (var _w = 0, _v = $1.ais.length - 1; _w <= _v; _w += 1) { //#27933 + $1.i = _w; //#27919 + $1.ai = $get($1.ais, $1.i); //#27920 + $1.val = $get($1.vals, $1.i); //#27921 + var _16 = $a(($1.dmtx.length + $1.ai.length) + $1.val.length); //#27922 + $puti(_16, 0, $1.dmtx); //#27923 + $k[$j++] = _16; //#27924 + $k[$j++] = _16; //#27924 + $k[$j++] = $1.dmtx.length; //#27924 + $k[$j++] = $1.ai; //#27924 + $k[$j++] = Infinity; //#27924 + var _1A = $k[--$j]; //#27924 + var _1B = $k[--$j]; //#27924 + $k[$j++] = _1A; //#27924 + $forall(_1B); //#27924 + var _1C = $a(); //#27924 + var _1D = $k[--$j]; //#27924 + $puti($k[--$j], _1D, _1C); //#27924 + var _1F = $k[--$j]; //#27925 + $k[$j++] = _1F; //#27925 + $k[$j++] = _1F; //#27925 + $k[$j++] = $1.dmtx.length + $1.ai.length; //#27925 + $k[$j++] = $1.val; //#27925 + $k[$j++] = Infinity; //#27925 + var _1J = $k[--$j]; //#27925 + var _1K = $k[--$j]; //#27925 + $k[$j++] = _1J; //#27925 + $forall(_1K); //#27925 + var _1L = $a(); //#27925 + var _1M = $k[--$j]; //#27925 + $puti($k[--$j], _1M, _1L); //#27925 + $1.dmtx = $k[--$j]; //#27926 + var _1U = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; //#27927 + if (($1.i != ($1.ais.length - 1)) && (!_1U)) { //#27932 + var _1W = $a($1.dmtx.length + 1); //#27928 + $puti(_1W, 0, $1.dmtx); //#27929 + $put(_1W, $1.dmtx.length, $1.fnc1); //#27930 + $1.dmtx = _1W; //#27931 + } //#27931 + } //#27931 + $1.barcode = $s(($1.dmtx.length + 1) * 5); //#27936 + $1.i = 0; //#27937 + $1.j = 0; //#27937 + for (;;) { //#27947 + if ($1.i == $1.dmtx.length) { //#27938 + break; //#27938 + } //#27938 + var _1g = $get($1.dmtx, $1.i); //#27939 + $k[$j++] = _1g; //#27944 + if (_1g == $1.fnc1) { //#27943 + $j--; //#27940 + $puti($1.barcode, $1.j, "^FNC1"); //#27940 + $1.j = $1.j + 4; //#27941 + } else { //#27943 + $put($1.barcode, $1.j, $k[--$j]); //#27943 + } //#27943 + $1.i = $1.i + 1; //#27945 + $1.j = $1.j + 1; //#27946 + } //#27946 + $1.barcode = $geti($1.barcode, 0, $1.j); //#27948 + delete $1.options["parse"]; //#27951 + $put($1.options, "dontdraw", true); //#27952 + $put($1.options, "parsefnc", true); //#27953 + $k[$j++] = 'args'; //#27954 + $k[$j++] = $1.barcode; //#27954 + $k[$j++] = $1.options; //#27954 + $0.dotcode(); //#27954 + var _1y = $k[--$j]; //#27954 + $1[$k[--$j]] = _1y; //#27954 + $put($1.args, "opt", $1.options); //#27956 + $k[$j++] = $1.args; //#27959 + if (!$1.dontdraw) { //#27959 + $0.renmatrix(); //#27959 + } //#27959 }; $0.hibccode39 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.textxoffset = 0; - $1.validatecheck = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.textxoffset = +$1.textxoffset; - $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; - $1.charvals = new Map(); - for (var _9 = 0; _9 <= 42; _9 += 1) { - $put($1.charvals, $geti($1.barchars, _9, 1), _9); - } - for (var _F = 0, _E = $1.barcode.length - 1; _F <= _E; _F += 1) { - var _J = $get($1.charvals, $geti($1.barcode, _F, 1)) !== undefined; - if (!_J) { - $k[$j++] = "bwipp.hibccode39badCharacter"; - $k[$j++] = "HIBC Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _M = $k[--$j]; - $k[$j++] = $f(_M - 1); - } - var _N = $k[--$j]; - $1[$k[--$j]] = _N; - $1.checksum = 41; - for (var _R = 0, _Q = $f($1.barlen - 1); _R <= _Q; _R += 1) { - $1.checksum = $f($get($1.charvals, $geti($1.barcode, _R, 1)) + $1.checksum); - } - $1.checksum = $1.checksum % 43; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.hibccode39badCheckDigit"; - $k[$j++] = "Incorrect HIBC Code 39 check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - var _j = $s($f($1.barlen + 2)); - $puti(_j, 1, $1.barcode); - $1.barcode = _j; - $put($1.barcode, 0, 43); - $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); - $1.text = $s($f($1.barlen + 4)); - $put($1.text, 0, 42); - $puti($1.text, 1, $1.barcode); - var _10 = $get($1.barcode, $f($1.barlen + 1)); - $k[$j++] = $1.text; - $k[$j++] = $f($1.barlen + 2); - $k[$j++] = _10; - if (_10 == 32) { - $j--; - $k[$j++] = 95; - } - var _11 = $k[--$j]; - var _12 = $k[--$j]; - $put($k[--$j], _12, _11); - $put($1.text, $f($1.barlen + 3), 42); - $put($1.options, "dontdraw", true); - $put($1.options, "includecheck", false); - $put($1.options, "validatecheck", false); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.code39(); - var _1B = $k[--$j]; - $1[$k[--$j]] = _1B; - $put($1.args, "txt", $a([ $a([ $1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ]) ])); - $put($1.args, "textxalign", "center"); - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#27989 + $1.options = $k[--$j]; //#27991 + $1.barcode = $k[--$j]; //#27992 + $1.dontdraw = false; //#27994 + $1.textfont = "OCR-B"; //#27995 + $1.textsize = 10; //#27996 + $1.textyoffset = -8; //#27997 + $1.textxoffset = 0; //#27998 + $1.validatecheck = false; //#27999 + $forall($1.options, function() { //#28010 + var _3 = $k[--$j]; //#28010 + $1[$k[--$j]] = _3; //#28010 + }); //#28010 + $1.textfont = "" + $1.textfont; //#28012 + $1.textsize = +$1.textsize; //#28013 + $1.textyoffset = +$1.textyoffset; //#28014 + $1.textxoffset = +$1.textxoffset; //#28015 + $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#28018 + $1.charvals = new Map; //#28019 + for (var _9 = 0; _9 <= 42; _9 += 1) { //#28020 + $put($1.charvals, $geti($1.barchars, _9, 1), _9); //#28020 + } //#28020 + for (var _F = 0, _E = $1.barcode.length - 1; _F <= _E; _F += 1) { //#28027 + var _J = $get($1.charvals, $geti($1.barcode, _F, 1)) !== undefined; //#28024 + if (!_J) { //#28026 + $k[$j++] = 'bwipp.hibccode39badCharacter'; //#28025 + $k[$j++] = "HIBC Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#28025 + $0.raiseerror(); //#28025 + } //#28025 + } //#28025 + $k[$j++] = 'barlen'; //#28029 + $k[$j++] = $1.barcode.length; //#28029 + if ($1.validatecheck) { //#28029 + var _M = $k[--$j]; //#28029 + $k[$j++] = $f(_M - 1); //#28029 + } //#28029 + var _N = $k[--$j]; //#28029 + $1[$k[--$j]] = _N; //#28029 + $1.checksum = 41; //#28031 + for (var _R = 0, _Q = $f($1.barlen - 1); _R <= _Q; _R += 1) { //#28035 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, _R, 1)) + $1.checksum); //#28034 + } //#28034 + $1.checksum = $1.checksum % 43; //#28036 + if ($1.validatecheck) { //#28042 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#28040 + $k[$j++] = 'bwipp.hibccode39badCheckDigit'; //#28039 + $k[$j++] = "Incorrect HIBC Code 39 check digit provided"; //#28039 + $0.raiseerror(); //#28039 + } //#28039 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#28041 + } //#28041 + var _j = $s($f($1.barlen + 2)); //#28044 + $puti(_j, 1, $1.barcode); //#28044 + $1.barcode = _j; //#28044 + $put($1.barcode, 0, 43); //#28045 + $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); //#28046 + $1.text = $s($f($1.barlen + 4)); //#28048 + $put($1.text, 0, 42); //#28049 + $puti($1.text, 1, $1.barcode); //#28050 + var _10 = $get($1.barcode, $f($1.barlen + 1)); //#28051 + $k[$j++] = $1.text; //#28051 + $k[$j++] = $f($1.barlen + 2); //#28051 + $k[$j++] = _10; //#28051 + if (_10 == 32) { //#28051 + $j--; //#28051 + $k[$j++] = 95; //#28051 + } //#28051 + var _11 = $k[--$j]; //#28051 + var _12 = $k[--$j]; //#28051 + $put($k[--$j], _12, _11); //#28051 + $put($1.text, $f($1.barlen + 3), 42); //#28052 + $put($1.options, "dontdraw", true); //#28055 + $put($1.options, "includecheck", false); //#28056 + $put($1.options, "validatecheck", false); //#28057 + $k[$j++] = 'args'; //#28058 + $k[$j++] = $1.barcode; //#28058 + $k[$j++] = $1.options; //#28058 + $0.code39(); //#28058 + var _1B = $k[--$j]; //#28058 + $1[$k[--$j]] = _1B; //#28058 + $put($1.args, "txt", $a([$a([$1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])])); //#28060 + $put($1.args, "textxalign", "center"); //#28061 + $put($1.args, "opt", $1.options); //#28062 + $k[$j++] = $1.args; //#28065 + if (!$1.dontdraw) { //#28065 + $0.renlinear(); //#28065 + } //#28065 }; $0.hibccode128 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.textxoffset = 0; - $1.validatecheck = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.textxoffset = +$1.textxoffset; - $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; - $1.charvals = new Map(); - for (var _9 = 0; _9 <= 42; _9 += 1) { - $put($1.charvals, $geti($1.barchars, _9, 1), _9); - } - for (var _F = 0, _E = $1.barcode.length - 1; _F <= _E; _F += 1) { - var _J = $get($1.charvals, $geti($1.barcode, _F, 1)) !== undefined; - if (!_J) { - $k[$j++] = "bwipp.hibccode128badCharacter"; - $k[$j++] = "HIBC Code 128 must contain only digits, capital letters, spaces and the symbols -.$/+%"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _M = $k[--$j]; - $k[$j++] = $f(_M - 1); - } - var _N = $k[--$j]; - $1[$k[--$j]] = _N; - $1.checksum = 41; - for (var _R = 0, _Q = $f($1.barlen - 1); _R <= _Q; _R += 1) { - $1.checksum = $f($get($1.charvals, $geti($1.barcode, _R, 1)) + $1.checksum); - } - $1.checksum = $1.checksum % 43; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.hibccode128badCheckDigit"; - $k[$j++] = "Incorrect HIBC Code 128 check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - var _j = $s($f($1.barlen + 2)); - $puti(_j, 1, $1.barcode); - $1.barcode = _j; - $put($1.barcode, 0, 43); - $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); - $1.text = $s($f($1.barlen + 4)); - $put($1.text, 0, 42); - $puti($1.text, 1, $1.barcode); - var _10 = $get($1.barcode, $f($1.barlen + 1)); - $k[$j++] = $1.text; - $k[$j++] = $f($1.barlen + 2); - $k[$j++] = _10; - if (_10 == 32) { - $j--; - $k[$j++] = 95; - } - var _11 = $k[--$j]; - var _12 = $k[--$j]; - $put($k[--$j], _12, _11); - $put($1.text, $f($1.barlen + 3), 42); - $put($1.options, "dontdraw", true); - $put($1.options, "validatecheck", false); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.code128(); - var _1A = $k[--$j]; - $1[$k[--$j]] = _1A; - $put($1.args, "txt", $a([ $a([ $1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ]) ])); - $put($1.args, "textxalign", "center"); - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#28095 + $1.options = $k[--$j]; //#28097 + $1.barcode = $k[--$j]; //#28098 + $1.dontdraw = false; //#28100 + $1.textfont = "OCR-B"; //#28101 + $1.textsize = 10; //#28102 + $1.textyoffset = -8; //#28103 + $1.textxoffset = 0; //#28104 + $1.validatecheck = false; //#28105 + $forall($1.options, function() { //#28116 + var _3 = $k[--$j]; //#28116 + $1[$k[--$j]] = _3; //#28116 + }); //#28116 + $1.textfont = "" + $1.textfont; //#28118 + $1.textsize = +$1.textsize; //#28119 + $1.textyoffset = +$1.textyoffset; //#28120 + $1.textxoffset = +$1.textxoffset; //#28121 + $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#28124 + $1.charvals = new Map; //#28125 + for (var _9 = 0; _9 <= 42; _9 += 1) { //#28126 + $put($1.charvals, $geti($1.barchars, _9, 1), _9); //#28126 + } //#28126 + for (var _F = 0, _E = $1.barcode.length - 1; _F <= _E; _F += 1) { //#28133 + var _J = $get($1.charvals, $geti($1.barcode, _F, 1)) !== undefined; //#28130 + if (!_J) { //#28132 + $k[$j++] = 'bwipp.hibccode128badCharacter'; //#28131 + $k[$j++] = "HIBC Code 128 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#28131 + $0.raiseerror(); //#28131 + } //#28131 + } //#28131 + $k[$j++] = 'barlen'; //#28135 + $k[$j++] = $1.barcode.length; //#28135 + if ($1.validatecheck) { //#28135 + var _M = $k[--$j]; //#28135 + $k[$j++] = $f(_M - 1); //#28135 + } //#28135 + var _N = $k[--$j]; //#28135 + $1[$k[--$j]] = _N; //#28135 + $1.checksum = 41; //#28137 + for (var _R = 0, _Q = $f($1.barlen - 1); _R <= _Q; _R += 1) { //#28141 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, _R, 1)) + $1.checksum); //#28140 + } //#28140 + $1.checksum = $1.checksum % 43; //#28142 + if ($1.validatecheck) { //#28148 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#28146 + $k[$j++] = 'bwipp.hibccode128badCheckDigit'; //#28145 + $k[$j++] = "Incorrect HIBC Code 128 check digit provided"; //#28145 + $0.raiseerror(); //#28145 + } //#28145 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#28147 + } //#28147 + var _j = $s($f($1.barlen + 2)); //#28150 + $puti(_j, 1, $1.barcode); //#28150 + $1.barcode = _j; //#28150 + $put($1.barcode, 0, 43); //#28151 + $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); //#28152 + $1.text = $s($f($1.barlen + 4)); //#28154 + $put($1.text, 0, 42); //#28155 + $puti($1.text, 1, $1.barcode); //#28156 + var _10 = $get($1.barcode, $f($1.barlen + 1)); //#28157 + $k[$j++] = $1.text; //#28157 + $k[$j++] = $f($1.barlen + 2); //#28157 + $k[$j++] = _10; //#28157 + if (_10 == 32) { //#28157 + $j--; //#28157 + $k[$j++] = 95; //#28157 + } //#28157 + var _11 = $k[--$j]; //#28157 + var _12 = $k[--$j]; //#28157 + $put($k[--$j], _12, _11); //#28157 + $put($1.text, $f($1.barlen + 3), 42); //#28158 + $put($1.options, "dontdraw", true); //#28161 + $put($1.options, "validatecheck", false); //#28162 + $k[$j++] = 'args'; //#28163 + $k[$j++] = $1.barcode; //#28163 + $k[$j++] = $1.options; //#28163 + $0.code128(); //#28163 + var _1A = $k[--$j]; //#28163 + $1[$k[--$j]] = _1A; //#28163 + $put($1.args, "txt", $a([$a([$1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])])); //#28165 + $put($1.args, "textxalign", "center"); //#28166 + $put($1.args, "opt", $1.options); //#28167 + $k[$j++] = $1.args; //#28170 + if (!$1.dontdraw) { //#28170 + $0.renlinear(); //#28170 + } //#28170 }; $0.hibcdatamatrix = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.validatecheck = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; - $1.charvals = new Map(); - for (var _5 = 0; _5 <= 42; _5 += 1) { - $put($1.charvals, $geti($1.barchars, _5, 1), _5); - } - for (var _B = 0, _A = $1.barcode.length - 1; _B <= _A; _B += 1) { - var _F = $get($1.charvals, $geti($1.barcode, _B, 1)) !== undefined; - if (!_F) { - $k[$j++] = "bwipp.hibcdatamatrixBadCharacter"; - $k[$j++] = "HIBC Data Matrix must contain only digits, capital letters, spaces and the symbols -.$/+%"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _I = $k[--$j]; - $k[$j++] = $f(_I - 1); - } - var _J = $k[--$j]; - $1[$k[--$j]] = _J; - $1.checksum = 41; - for (var _N = 0, _M = $f($1.barlen - 1); _N <= _M; _N += 1) { - $1.checksum = $f($get($1.charvals, $geti($1.barcode, _N, 1)) + $1.checksum); - } - $1.checksum = $1.checksum % 43; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.hibcdatamatrixBadCheckDigit"; - $k[$j++] = "Incorrect HIBC Data Matrix check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - var _f = $s($f($1.barlen + 2)); - $puti(_f, 1, $1.barcode); - $1.barcode = _f; - $put($1.barcode, 0, 43); - $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); - $put($1.options, "dontdraw", true); - $put($1.options, "validatecheck", false); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.datamatrix(); - var _r = $k[--$j]; - $1[$k[--$j]] = _r; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#28200 + $1.options = $k[--$j]; //#28202 + $1.barcode = $k[--$j]; //#28203 + $1.dontdraw = false; //#28205 + $1.validatecheck = false; //#28206 + $forall($1.options, function() { //#28217 + var _3 = $k[--$j]; //#28217 + $1[$k[--$j]] = _3; //#28217 + }); //#28217 + $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#28220 + $1.charvals = new Map; //#28221 + for (var _5 = 0; _5 <= 42; _5 += 1) { //#28222 + $put($1.charvals, $geti($1.barchars, _5, 1), _5); //#28222 + } //#28222 + for (var _B = 0, _A = $1.barcode.length - 1; _B <= _A; _B += 1) { //#28229 + var _F = $get($1.charvals, $geti($1.barcode, _B, 1)) !== undefined; //#28226 + if (!_F) { //#28228 + $k[$j++] = 'bwipp.hibcdatamatrixBadCharacter'; //#28227 + $k[$j++] = "HIBC Data Matrix must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#28227 + $0.raiseerror(); //#28227 + } //#28227 + } //#28227 + $k[$j++] = 'barlen'; //#28231 + $k[$j++] = $1.barcode.length; //#28231 + if ($1.validatecheck) { //#28231 + var _I = $k[--$j]; //#28231 + $k[$j++] = $f(_I - 1); //#28231 + } //#28231 + var _J = $k[--$j]; //#28231 + $1[$k[--$j]] = _J; //#28231 + $1.checksum = 41; //#28233 + for (var _N = 0, _M = $f($1.barlen - 1); _N <= _M; _N += 1) { //#28237 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, _N, 1)) + $1.checksum); //#28236 + } //#28236 + $1.checksum = $1.checksum % 43; //#28238 + if ($1.validatecheck) { //#28244 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#28242 + $k[$j++] = 'bwipp.hibcdatamatrixBadCheckDigit'; //#28241 + $k[$j++] = "Incorrect HIBC Data Matrix check digit provided"; //#28241 + $0.raiseerror(); //#28241 + } //#28241 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#28243 + } //#28243 + var _f = $s($f($1.barlen + 2)); //#28246 + $puti(_f, 1, $1.barcode); //#28246 + $1.barcode = _f; //#28246 + $put($1.barcode, 0, 43); //#28247 + $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); //#28248 + $put($1.options, "dontdraw", true); //#28251 + $put($1.options, "validatecheck", false); //#28252 + $k[$j++] = 'args'; //#28253 + $k[$j++] = $1.barcode; //#28253 + $k[$j++] = $1.options; //#28253 + $0.datamatrix(); //#28253 + var _r = $k[--$j]; //#28253 + $1[$k[--$j]] = _r; //#28253 + $put($1.args, "opt", $1.options); //#28255 + $k[$j++] = $1.args; //#28258 + if (!$1.dontdraw) { //#28258 + $0.renmatrix(); //#28258 + } //#28258 }; $0.hibcdatamatrixrectangular = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.validatecheck = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; - $1.charvals = new Map(); - for (var _5 = 0; _5 <= 42; _5 += 1) { - $put($1.charvals, $geti($1.barchars, _5, 1), _5); - } - for (var _B = 0, _A = $1.barcode.length - 1; _B <= _A; _B += 1) { - var _F = $get($1.charvals, $geti($1.barcode, _B, 1)) !== undefined; - if (!_F) { - $k[$j++] = "bwipp.hibcdatamatrixrectangularBadCharacter"; - $k[$j++] = "HIBC Data Matrix Rectangular must contain only digits, capital letters, spaces and the symbols -.$/+%"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _I = $k[--$j]; - $k[$j++] = $f(_I - 1); - } - var _J = $k[--$j]; - $1[$k[--$j]] = _J; - $1.checksum = 41; - for (var _N = 0, _M = $f($1.barlen - 1); _N <= _M; _N += 1) { - $1.checksum = $f($get($1.charvals, $geti($1.barcode, _N, 1)) + $1.checksum); - } - $1.checksum = $1.checksum % 43; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.hibcdatamatrixrectangularBadCheckDigit"; - $k[$j++] = "Incorrect HIBC Data Matrix Rectangular check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - var _f = $s($f($1.barlen + 2)); - $puti(_f, 1, $1.barcode); - $1.barcode = _f; - $put($1.barcode, 0, 43); - $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); - $put($1.options, "dontdraw", true); - $put($1.options, "validatecheck", false); - $put($1.options, "format", "rectangle"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.datamatrix(); - var _s = $k[--$j]; - $1[$k[--$j]] = _s; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#28288 + $1.options = $k[--$j]; //#28290 + $1.barcode = $k[--$j]; //#28291 + $1.dontdraw = false; //#28293 + $1.validatecheck = false; //#28294 + $forall($1.options, function() { //#28305 + var _3 = $k[--$j]; //#28305 + $1[$k[--$j]] = _3; //#28305 + }); //#28305 + $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#28308 + $1.charvals = new Map; //#28309 + for (var _5 = 0; _5 <= 42; _5 += 1) { //#28310 + $put($1.charvals, $geti($1.barchars, _5, 1), _5); //#28310 + } //#28310 + for (var _B = 0, _A = $1.barcode.length - 1; _B <= _A; _B += 1) { //#28317 + var _F = $get($1.charvals, $geti($1.barcode, _B, 1)) !== undefined; //#28314 + if (!_F) { //#28316 + $k[$j++] = 'bwipp.hibcdatamatrixrectangularBadCharacter'; //#28315 + $k[$j++] = "HIBC Data Matrix Rectangular must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#28315 + $0.raiseerror(); //#28315 + } //#28315 + } //#28315 + $k[$j++] = 'barlen'; //#28319 + $k[$j++] = $1.barcode.length; //#28319 + if ($1.validatecheck) { //#28319 + var _I = $k[--$j]; //#28319 + $k[$j++] = $f(_I - 1); //#28319 + } //#28319 + var _J = $k[--$j]; //#28319 + $1[$k[--$j]] = _J; //#28319 + $1.checksum = 41; //#28321 + for (var _N = 0, _M = $f($1.barlen - 1); _N <= _M; _N += 1) { //#28325 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, _N, 1)) + $1.checksum); //#28324 + } //#28324 + $1.checksum = $1.checksum % 43; //#28326 + if ($1.validatecheck) { //#28332 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#28330 + $k[$j++] = 'bwipp.hibcdatamatrixrectangularBadCheckDigit'; //#28329 + $k[$j++] = "Incorrect HIBC Data Matrix Rectangular check digit provided"; //#28329 + $0.raiseerror(); //#28329 + } //#28329 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#28331 + } //#28331 + var _f = $s($f($1.barlen + 2)); //#28334 + $puti(_f, 1, $1.barcode); //#28334 + $1.barcode = _f; //#28334 + $put($1.barcode, 0, 43); //#28335 + $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); //#28336 + $put($1.options, "dontdraw", true); //#28339 + $put($1.options, "validatecheck", false); //#28340 + $put($1.options, "format", "rectangle"); //#28341 + $k[$j++] = 'args'; //#28342 + $k[$j++] = $1.barcode; //#28342 + $k[$j++] = $1.options; //#28342 + $0.datamatrix(); //#28342 + var _s = $k[--$j]; //#28342 + $1[$k[--$j]] = _s; //#28342 + $put($1.args, "opt", $1.options); //#28344 + $k[$j++] = $1.args; //#28347 + if (!$1.dontdraw) { //#28347 + $0.renmatrix(); //#28347 + } //#28347 }; $0.hibcpdf417 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.columns = 2; - $1.validatecheck = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.columns = ~~$1.columns; - $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; - $1.charvals = new Map(); - for (var _6 = 0; _6 <= 42; _6 += 1) { - $put($1.charvals, $geti($1.barchars, _6, 1), _6); - } - for (var _C = 0, _B = $1.barcode.length - 1; _C <= _B; _C += 1) { - var _G = $get($1.charvals, $geti($1.barcode, _C, 1)) !== undefined; - if (!_G) { - $k[$j++] = "bwipp.hibcpdf417BadCharacter"; - $k[$j++] = "HIBC PDF417 must contain only digits, capital letters, spaces and the symbols -.$/+%"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _J = $k[--$j]; - $k[$j++] = $f(_J - 1); - } - var _K = $k[--$j]; - $1[$k[--$j]] = _K; - $1.checksum = 41; - for (var _O = 0, _N = $f($1.barlen - 1); _O <= _N; _O += 1) { - $1.checksum = $f($get($1.charvals, $geti($1.barcode, _O, 1)) + $1.checksum); - } - $1.checksum = $1.checksum % 43; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.hibcpdf417BadCheckDigit"; - $k[$j++] = "Incorrect HIBC PDF417 check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - var _g = $s($f($1.barlen + 2)); - $puti(_g, 1, $1.barcode); - $1.barcode = _g; - $put($1.barcode, 0, 43); - $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); - $put($1.options, "dontdraw", true); - $put($1.options, "columns", $1.columns); - $put($1.options, "validatecheck", false); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.pdf417(); - var _u = $k[--$j]; - $1[$k[--$j]] = _u; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#28377 + $1.options = $k[--$j]; //#28379 + $1.barcode = $k[--$j]; //#28380 + $1.dontdraw = false; //#28382 + $1.columns = 2; //#28383 + $1.validatecheck = false; //#28384 + $forall($1.options, function() { //#28395 + var _3 = $k[--$j]; //#28395 + $1[$k[--$j]] = _3; //#28395 + }); //#28395 + $1.columns = ~~$1.columns; //#28397 + $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#28400 + $1.charvals = new Map; //#28401 + for (var _6 = 0; _6 <= 42; _6 += 1) { //#28402 + $put($1.charvals, $geti($1.barchars, _6, 1), _6); //#28402 + } //#28402 + for (var _C = 0, _B = $1.barcode.length - 1; _C <= _B; _C += 1) { //#28409 + var _G = $get($1.charvals, $geti($1.barcode, _C, 1)) !== undefined; //#28406 + if (!_G) { //#28408 + $k[$j++] = 'bwipp.hibcpdf417BadCharacter'; //#28407 + $k[$j++] = "HIBC PDF417 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#28407 + $0.raiseerror(); //#28407 + } //#28407 + } //#28407 + $k[$j++] = 'barlen'; //#28411 + $k[$j++] = $1.barcode.length; //#28411 + if ($1.validatecheck) { //#28411 + var _J = $k[--$j]; //#28411 + $k[$j++] = $f(_J - 1); //#28411 + } //#28411 + var _K = $k[--$j]; //#28411 + $1[$k[--$j]] = _K; //#28411 + $1.checksum = 41; //#28413 + for (var _O = 0, _N = $f($1.barlen - 1); _O <= _N; _O += 1) { //#28417 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, _O, 1)) + $1.checksum); //#28416 + } //#28416 + $1.checksum = $1.checksum % 43; //#28418 + if ($1.validatecheck) { //#28424 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#28422 + $k[$j++] = 'bwipp.hibcpdf417BadCheckDigit'; //#28421 + $k[$j++] = "Incorrect HIBC PDF417 check digit provided"; //#28421 + $0.raiseerror(); //#28421 + } //#28421 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#28423 + } //#28423 + var _g = $s($f($1.barlen + 2)); //#28426 + $puti(_g, 1, $1.barcode); //#28426 + $1.barcode = _g; //#28426 + $put($1.barcode, 0, 43); //#28427 + $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); //#28428 + $put($1.options, "dontdraw", true); //#28431 + $put($1.options, "columns", $1.columns); //#28432 + $put($1.options, "validatecheck", false); //#28433 + $k[$j++] = 'args'; //#28434 + $k[$j++] = $1.barcode; //#28434 + $k[$j++] = $1.options; //#28434 + $0.pdf417(); //#28434 + var _u = $k[--$j]; //#28434 + $1[$k[--$j]] = _u; //#28434 + $put($1.args, "opt", $1.options); //#28436 + $k[$j++] = $1.args; //#28439 + if (!$1.dontdraw) { //#28439 + $0.renmatrix(); //#28439 + } //#28439 }; $0.hibcmicropdf417 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.columns = 2; - $1.validatecheck = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.columns = ~~$1.columns; - $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; - $1.charvals = new Map(); - for (var _6 = 0; _6 <= 42; _6 += 1) { - $put($1.charvals, $geti($1.barchars, _6, 1), _6); - } - for (var _C = 0, _B = $1.barcode.length - 1; _C <= _B; _C += 1) { - var _G = $get($1.charvals, $geti($1.barcode, _C, 1)) !== undefined; - if (!_G) { - $k[$j++] = "bwipp.hibcmicropdf417BadCharacter"; - $k[$j++] = "HIBC MicroPDF417 must contain only digits, capital letters, spaces and the symbols -.$/+%"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _J = $k[--$j]; - $k[$j++] = $f(_J - 1); - } - var _K = $k[--$j]; - $1[$k[--$j]] = _K; - $1.checksum = 41; - for (var _O = 0, _N = $f($1.barlen - 1); _O <= _N; _O += 1) { - $1.checksum = $f($get($1.charvals, $geti($1.barcode, _O, 1)) + $1.checksum); - } - $1.checksum = $1.checksum % 43; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.hibcmicropdf417BadCheckDigit"; - $k[$j++] = "Incorrect HIBC MicroPDF417 check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - var _g = $s($f($1.barlen + 2)); - $puti(_g, 1, $1.barcode); - $1.barcode = _g; - $put($1.barcode, 0, 43); - $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); - $put($1.options, "dontdraw", true); - $put($1.options, "columns", $1.columns); - $put($1.options, "validatecheck", false); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.micropdf417(); - var _u = $k[--$j]; - $1[$k[--$j]] = _u; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#28469 + $1.options = $k[--$j]; //#28471 + $1.barcode = $k[--$j]; //#28472 + $1.dontdraw = false; //#28474 + $1.columns = 2; //#28475 + $1.validatecheck = false; //#28476 + $forall($1.options, function() { //#28487 + var _3 = $k[--$j]; //#28487 + $1[$k[--$j]] = _3; //#28487 + }); //#28487 + $1.columns = ~~$1.columns; //#28489 + $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#28492 + $1.charvals = new Map; //#28493 + for (var _6 = 0; _6 <= 42; _6 += 1) { //#28494 + $put($1.charvals, $geti($1.barchars, _6, 1), _6); //#28494 + } //#28494 + for (var _C = 0, _B = $1.barcode.length - 1; _C <= _B; _C += 1) { //#28501 + var _G = $get($1.charvals, $geti($1.barcode, _C, 1)) !== undefined; //#28498 + if (!_G) { //#28500 + $k[$j++] = 'bwipp.hibcmicropdf417BadCharacter'; //#28499 + $k[$j++] = "HIBC MicroPDF417 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#28499 + $0.raiseerror(); //#28499 + } //#28499 + } //#28499 + $k[$j++] = 'barlen'; //#28503 + $k[$j++] = $1.barcode.length; //#28503 + if ($1.validatecheck) { //#28503 + var _J = $k[--$j]; //#28503 + $k[$j++] = $f(_J - 1); //#28503 + } //#28503 + var _K = $k[--$j]; //#28503 + $1[$k[--$j]] = _K; //#28503 + $1.checksum = 41; //#28505 + for (var _O = 0, _N = $f($1.barlen - 1); _O <= _N; _O += 1) { //#28509 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, _O, 1)) + $1.checksum); //#28508 + } //#28508 + $1.checksum = $1.checksum % 43; //#28510 + if ($1.validatecheck) { //#28516 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#28514 + $k[$j++] = 'bwipp.hibcmicropdf417BadCheckDigit'; //#28513 + $k[$j++] = "Incorrect HIBC MicroPDF417 check digit provided"; //#28513 + $0.raiseerror(); //#28513 + } //#28513 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#28515 + } //#28515 + var _g = $s($f($1.barlen + 2)); //#28518 + $puti(_g, 1, $1.barcode); //#28518 + $1.barcode = _g; //#28518 + $put($1.barcode, 0, 43); //#28519 + $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); //#28520 + $put($1.options, "dontdraw", true); //#28523 + $put($1.options, "columns", $1.columns); //#28524 + $put($1.options, "validatecheck", false); //#28525 + $k[$j++] = 'args'; //#28526 + $k[$j++] = $1.barcode; //#28526 + $k[$j++] = $1.options; //#28526 + $0.micropdf417(); //#28526 + var _u = $k[--$j]; //#28526 + $1[$k[--$j]] = _u; //#28526 + $put($1.args, "opt", $1.options); //#28528 + $k[$j++] = $1.args; //#28531 + if (!$1.dontdraw) { //#28531 + $0.renmatrix(); //#28531 + } //#28531 }; $0.hibcqrcode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.validatecheck = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; - $1.charvals = new Map(); - for (var _5 = 0; _5 <= 42; _5 += 1) { - $put($1.charvals, $geti($1.barchars, _5, 1), _5); - } - for (var _B = 0, _A = $1.barcode.length - 1; _B <= _A; _B += 1) { - var _F = $get($1.charvals, $geti($1.barcode, _B, 1)) !== undefined; - if (!_F) { - $k[$j++] = "bwipp.hibcqrcodeBadCharacter"; - $k[$j++] = "HIBC QR Code must contain only digits, capital letters, spaces and the symbols -.$/+%"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _I = $k[--$j]; - $k[$j++] = $f(_I - 1); - } - var _J = $k[--$j]; - $1[$k[--$j]] = _J; - $1.checksum = 41; - for (var _N = 0, _M = $f($1.barlen - 1); _N <= _M; _N += 1) { - $1.checksum = $f($get($1.charvals, $geti($1.barcode, _N, 1)) + $1.checksum); - } - $1.checksum = $1.checksum % 43; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.hibcqrcodeBadCheckDigit"; - $k[$j++] = "Incorrect HIBC QR Code check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - var _f = $s($f($1.barlen + 2)); - $puti(_f, 1, $1.barcode); - $1.barcode = _f; - $put($1.barcode, 0, 43); - $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); - $put($1.options, "dontdraw", true); - $put($1.options, "validatecheck", false); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.qrcode(); - var _r = $k[--$j]; - $1[$k[--$j]] = _r; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#28561 + $1.options = $k[--$j]; //#28563 + $1.barcode = $k[--$j]; //#28564 + $1.dontdraw = false; //#28566 + $1.validatecheck = false; //#28567 + $forall($1.options, function() { //#28578 + var _3 = $k[--$j]; //#28578 + $1[$k[--$j]] = _3; //#28578 + }); //#28578 + $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#28581 + $1.charvals = new Map; //#28582 + for (var _5 = 0; _5 <= 42; _5 += 1) { //#28583 + $put($1.charvals, $geti($1.barchars, _5, 1), _5); //#28583 + } //#28583 + for (var _B = 0, _A = $1.barcode.length - 1; _B <= _A; _B += 1) { //#28590 + var _F = $get($1.charvals, $geti($1.barcode, _B, 1)) !== undefined; //#28587 + if (!_F) { //#28589 + $k[$j++] = 'bwipp.hibcqrcodeBadCharacter'; //#28588 + $k[$j++] = "HIBC QR Code must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#28588 + $0.raiseerror(); //#28588 + } //#28588 + } //#28588 + $k[$j++] = 'barlen'; //#28592 + $k[$j++] = $1.barcode.length; //#28592 + if ($1.validatecheck) { //#28592 + var _I = $k[--$j]; //#28592 + $k[$j++] = $f(_I - 1); //#28592 + } //#28592 + var _J = $k[--$j]; //#28592 + $1[$k[--$j]] = _J; //#28592 + $1.checksum = 41; //#28594 + for (var _N = 0, _M = $f($1.barlen - 1); _N <= _M; _N += 1) { //#28598 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, _N, 1)) + $1.checksum); //#28597 + } //#28597 + $1.checksum = $1.checksum % 43; //#28599 + if ($1.validatecheck) { //#28605 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#28603 + $k[$j++] = 'bwipp.hibcqrcodeBadCheckDigit'; //#28602 + $k[$j++] = "Incorrect HIBC QR Code check digit provided"; //#28602 + $0.raiseerror(); //#28602 + } //#28602 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#28604 + } //#28604 + var _f = $s($f($1.barlen + 2)); //#28607 + $puti(_f, 1, $1.barcode); //#28607 + $1.barcode = _f; //#28607 + $put($1.barcode, 0, 43); //#28608 + $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); //#28609 + $put($1.options, "dontdraw", true); //#28612 + $put($1.options, "validatecheck", false); //#28613 + $k[$j++] = 'args'; //#28614 + $k[$j++] = $1.barcode; //#28614 + $k[$j++] = $1.options; //#28614 + $0.qrcode(); //#28614 + var _r = $k[--$j]; //#28614 + $1[$k[--$j]] = _r; //#28614 + $put($1.args, "opt", $1.options); //#28616 + $k[$j++] = $1.args; //#28619 + if (!$1.dontdraw) { //#28619 + $0.renmatrix(); //#28619 + } //#28619 }; $0.hibccodablockf = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.validatecheck = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; - $1.charvals = new Map(); - for (var _5 = 0; _5 <= 42; _5 += 1) { - $put($1.charvals, $geti($1.barchars, _5, 1), _5); - } - for (var _B = 0, _A = $1.barcode.length - 1; _B <= _A; _B += 1) { - var _F = $get($1.charvals, $geti($1.barcode, _B, 1)) !== undefined; - if (!_F) { - $k[$j++] = "bwipp.codablockfBadCharacter"; - $k[$j++] = "HIBC Codablock F must contain only digits, capital letters, spaces and the symbols -.$/+%"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _I = $k[--$j]; - $k[$j++] = $f(_I - 1); - } - var _J = $k[--$j]; - $1[$k[--$j]] = _J; - $1.checksum = 41; - for (var _N = 0, _M = $f($1.barlen - 1); _N <= _M; _N += 1) { - $1.checksum = $f($get($1.charvals, $geti($1.barcode, _N, 1)) + $1.checksum); - } - $1.checksum = $1.checksum % 43; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.hibccodablockfBadCheckDigit"; - $k[$j++] = "Incorrect HIBC Codablock F check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - var _f = $s($f($1.barlen + 2)); - $puti(_f, 1, $1.barcode); - $1.barcode = _f; - $put($1.barcode, 0, 43); - $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); - $put($1.options, "dontdraw", true); - $put($1.options, "validatecheck", false); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.codablockf(); - var _r = $k[--$j]; - $1[$k[--$j]] = _r; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#28649 + $1.options = $k[--$j]; //#28651 + $1.barcode = $k[--$j]; //#28652 + $1.dontdraw = false; //#28654 + $1.validatecheck = false; //#28655 + $forall($1.options, function() { //#28666 + var _3 = $k[--$j]; //#28666 + $1[$k[--$j]] = _3; //#28666 + }); //#28666 + $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#28669 + $1.charvals = new Map; //#28670 + for (var _5 = 0; _5 <= 42; _5 += 1) { //#28671 + $put($1.charvals, $geti($1.barchars, _5, 1), _5); //#28671 + } //#28671 + for (var _B = 0, _A = $1.barcode.length - 1; _B <= _A; _B += 1) { //#28678 + var _F = $get($1.charvals, $geti($1.barcode, _B, 1)) !== undefined; //#28675 + if (!_F) { //#28677 + $k[$j++] = 'bwipp.codablockfBadCharacter'; //#28676 + $k[$j++] = "HIBC Codablock F must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#28676 + $0.raiseerror(); //#28676 + } //#28676 + } //#28676 + $k[$j++] = 'barlen'; //#28680 + $k[$j++] = $1.barcode.length; //#28680 + if ($1.validatecheck) { //#28680 + var _I = $k[--$j]; //#28680 + $k[$j++] = $f(_I - 1); //#28680 + } //#28680 + var _J = $k[--$j]; //#28680 + $1[$k[--$j]] = _J; //#28680 + $1.checksum = 41; //#28682 + for (var _N = 0, _M = $f($1.barlen - 1); _N <= _M; _N += 1) { //#28686 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, _N, 1)) + $1.checksum); //#28685 + } //#28685 + $1.checksum = $1.checksum % 43; //#28687 + if ($1.validatecheck) { //#28693 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#28691 + $k[$j++] = 'bwipp.hibccodablockfBadCheckDigit'; //#28690 + $k[$j++] = "Incorrect HIBC Codablock F check digit provided"; //#28690 + $0.raiseerror(); //#28690 + } //#28690 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#28692 + } //#28692 + var _f = $s($f($1.barlen + 2)); //#28695 + $puti(_f, 1, $1.barcode); //#28695 + $1.barcode = _f; //#28695 + $put($1.barcode, 0, 43); //#28696 + $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); //#28697 + $put($1.options, "dontdraw", true); //#28700 + $put($1.options, "validatecheck", false); //#28701 + $k[$j++] = 'args'; //#28702 + $k[$j++] = $1.barcode; //#28702 + $k[$j++] = $1.options; //#28702 + $0.codablockf(); //#28702 + var _r = $k[--$j]; //#28702 + $1[$k[--$j]] = _r; //#28702 + $put($1.args, "opt", $1.options); //#28704 + $k[$j++] = $1.args; //#28707 + if (!$1.dontdraw) { //#28707 + $0.renmatrix(); //#28707 + } //#28707 }; $0.hibcazteccode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.validatecheck = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; - $1.charvals = new Map(); - for (var _5 = 0; _5 <= 42; _5 += 1) { - $put($1.charvals, $geti($1.barchars, _5, 1), _5); - } - for (var _B = 0, _A = $1.barcode.length - 1; _B <= _A; _B += 1) { - var _F = $get($1.charvals, $geti($1.barcode, _B, 1)) !== undefined; - if (!_F) { - $k[$j++] = "bwipp.hibcazteccodeBadCharacter"; - $k[$j++] = "HIBC Aztec Code must contain only digits, capital letters, spaces and the symbols -.$/+%"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _I = $k[--$j]; - $k[$j++] = $f(_I - 1); - } - var _J = $k[--$j]; - $1[$k[--$j]] = _J; - $1.checksum = 41; - for (var _N = 0, _M = $f($1.barlen - 1); _N <= _M; _N += 1) { - $1.checksum = $f($get($1.charvals, $geti($1.barcode, _N, 1)) + $1.checksum); - } - $1.checksum = $1.checksum % 43; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.hibcazteccodeBadCheckDigit"; - $k[$j++] = "Incorrect HIBC Aztec Code check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - var _f = $s($f($1.barlen + 2)); - $puti(_f, 1, $1.barcode); - $1.barcode = _f; - $put($1.barcode, 0, 43); - $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); - $put($1.options, "dontdraw", true); - $put($1.options, "validatecheck", false); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.azteccode(); - var _r = $k[--$j]; - $1[$k[--$j]] = _r; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#28737 + $1.options = $k[--$j]; //#28739 + $1.barcode = $k[--$j]; //#28740 + $1.dontdraw = false; //#28742 + $1.validatecheck = false; //#28743 + $forall($1.options, function() { //#28754 + var _3 = $k[--$j]; //#28754 + $1[$k[--$j]] = _3; //#28754 + }); //#28754 + $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#28757 + $1.charvals = new Map; //#28758 + for (var _5 = 0; _5 <= 42; _5 += 1) { //#28759 + $put($1.charvals, $geti($1.barchars, _5, 1), _5); //#28759 + } //#28759 + for (var _B = 0, _A = $1.barcode.length - 1; _B <= _A; _B += 1) { //#28766 + var _F = $get($1.charvals, $geti($1.barcode, _B, 1)) !== undefined; //#28763 + if (!_F) { //#28765 + $k[$j++] = 'bwipp.hibcazteccodeBadCharacter'; //#28764 + $k[$j++] = "HIBC Aztec Code must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#28764 + $0.raiseerror(); //#28764 + } //#28764 + } //#28764 + $k[$j++] = 'barlen'; //#28768 + $k[$j++] = $1.barcode.length; //#28768 + if ($1.validatecheck) { //#28768 + var _I = $k[--$j]; //#28768 + $k[$j++] = $f(_I - 1); //#28768 + } //#28768 + var _J = $k[--$j]; //#28768 + $1[$k[--$j]] = _J; //#28768 + $1.checksum = 41; //#28770 + for (var _N = 0, _M = $f($1.barlen - 1); _N <= _M; _N += 1) { //#28774 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, _N, 1)) + $1.checksum); //#28773 + } //#28773 + $1.checksum = $1.checksum % 43; //#28775 + if ($1.validatecheck) { //#28781 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#28779 + $k[$j++] = 'bwipp.hibcazteccodeBadCheckDigit'; //#28778 + $k[$j++] = "Incorrect HIBC Aztec Code check digit provided"; //#28778 + $0.raiseerror(); //#28778 + } //#28778 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#28780 + } //#28780 + var _f = $s($f($1.barlen + 2)); //#28783 + $puti(_f, 1, $1.barcode); //#28783 + $1.barcode = _f; //#28783 + $put($1.barcode, 0, 43); //#28784 + $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); //#28785 + $put($1.options, "dontdraw", true); //#28788 + $put($1.options, "validatecheck", false); //#28789 + $k[$j++] = 'args'; //#28790 + $k[$j++] = $1.barcode; //#28790 + $k[$j++] = $1.options; //#28790 + $0.azteccode(); //#28790 + var _r = $k[--$j]; //#28790 + $1[$k[--$j]] = _r; //#28790 + $put($1.args, "opt", $1.options); //#28792 + $k[$j++] = $1.args; //#28795 + if (!$1.dontdraw) { //#28795 + $0.renmatrix(); //#28795 + } //#28795 }; $0.channelcode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.shortfinder = false; - $1.includetext = false; - $1.includecheck = false; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.height = +$1.height; - if ($1.barcode.length < 2 || $1.barcode.length > 7) { - $k[$j++] = "bwipp.channelcodeBadLength"; - $k[$j++] = "Channel Code must be 2 to 7 digits"; - $0.raiseerror(); - } - $forall($1.barcode, function() { - var _9 = $k[--$j]; - if (_9 < 48 || _9 > 57) { - $k[$j++] = "bwipp.channelcodeBadCharacter"; - $k[$j++] = "Channel Code must contain only digits"; - $0.raiseerror(); - } - }); - if (~~$z($1.barcode) > $get($a([ 26, 292, 3493, 44072, 576688, 7742862 ]), $1.barcode.length - 2)) { - $k[$j++] = "bwipp.channelcodeTooBig"; - $k[$j++] = "The Channel Code value is too big for the number of channels"; - $0.raiseerror(); - } + var $1 = {}; //#28825 + $1.options = $k[--$j]; //#28827 + $1.barcode = $k[--$j]; //#28828 + $1.dontdraw = false; //#28830 + $1.shortfinder = false; //#28831 + $1.includetext = false; //#28832 + $1.includecheck = false; //#28833 + $1.height = 1; //#28834 + $forall($1.options, function() { //#28845 + var _3 = $k[--$j]; //#28845 + $1[$k[--$j]] = _3; //#28845 + }); //#28845 + $1.height = +$1.height; //#28847 + if (($1.barcode.length < 2) || ($1.barcode.length > 7)) { //#28852 + $k[$j++] = 'bwipp.channelcodeBadLength'; //#28851 + $k[$j++] = "Channel Code must be 2 to 7 digits"; //#28851 + $0.raiseerror(); //#28851 + } //#28851 + $forall($1.barcode, function() { //#28857 + var _9 = $k[--$j]; //#28854 + if ((_9 < 48) || (_9 > 57)) { //#28856 + $k[$j++] = 'bwipp.channelcodeBadCharacter'; //#28855 + $k[$j++] = "Channel Code must contain only digits"; //#28855 + $0.raiseerror(); //#28855 + } //#28855 + }); //#28855 + if ((~~$z($1.barcode)) > $get($a([26, 292, 3493, 44072, 576688, 7742862]), $1.barcode.length - 2)) { //#28860 + $k[$j++] = 'bwipp.channelcodeTooBig'; //#28859 + $k[$j++] = "The Channel Code value is too big for the number of channels"; //#28859 + $0.raiseerror(); //#28859 + } //#28859 $1.nextb = function() { - var _E = $k[--$j]; - var _N = $f($get($1.s, _E) + $f($get($1.b, $f(_E - 1)) + $f($get($1.b, $f(_E - 2)) + $get($1.s, $f(_E - 1))))) > 4 ? 1 : 2; - $k[$j++] = _E; - $k[$j++] = _N; - if (_E < $f($1.chan + 2)) { - var _P = $k[--$j]; - var _Q = $k[--$j]; - var _R = $k[--$j]; - $k[$j++] = _R; - $k[$j++] = _Q; - $k[$j++] = _P; - for (var _T = _P, _S = _R; _T <= _S; _T += 1) { - var _V = $k[--$j]; - var _W = $k[--$j]; - $put($1.b, _W, _T); - var _X = $k[--$j]; - var _Y = $k[--$j]; - $k[$j++] = _Y; - $k[$j++] = _X; - $k[$j++] = _W; - $k[$j++] = _V; - $k[$j++] = $f($f(_X - _T) + 1); - $k[$j++] = _Y; - $k[$j++] = $f(_W + 1); - $1.nexts(); - } - } else { - var _Z = $k[--$j]; - var _a = $k[--$j]; - var _b = $k[--$j]; - $k[$j++] = _b; - $k[$j++] = _a; - $k[$j++] = _Z; - if ($le(_Z, _b)) { - var _d = $k[--$j]; - var _e = $k[--$j]; - var _f = $k[--$j]; - $put($1.b, _e, _f); - $k[$j++] = _f; - $k[$j++] = _e; - $k[$j++] = _d; - if ($1.value == $1.target) { - $k[$j++] = Infinity; - for (var _i = 3; _i <= 10; _i += 1) { - $k[$j++] = $get($1.s, _i); - $k[$j++] = $get($1.b, _i); - } - $1.out = $geti($a(), 0, $1.chan * 2); - } - $1.value = $1.value + 1; - } - } - $j -= 4; - }; + var _E = $k[--$j]; //#28863 + var _N = (($f($get($1.s, _E) + ($f($get($1.b, $f(_E - 1)) + $f($get($1.b, $f(_E - 2)) + $get($1.s, $f(_E - 1))))))) > 4) ? 1 : 2; //#28868 + $k[$j++] = _E; //#28884 + $k[$j++] = _N; //#28884 + if (_E < $f($1.chan + 2)) { //#28882 + var _P = $k[--$j]; //#28870 + var _Q = $k[--$j]; //#28870 + var _R = $k[--$j]; //#28870 + $k[$j++] = _R; //#28873 + $k[$j++] = _Q; //#28873 + $k[$j++] = _P; //#28873 + for (var _T = _P, _S = _R; _T <= _S; _T += 1) { //#28873 + var _V = $k[--$j]; //#28871 + var _W = $k[--$j]; //#28871 + $put($1.b, _W, _T); //#28871 + var _X = $k[--$j]; //#28872 + var _Y = $k[--$j]; //#28872 + $k[$j++] = _Y; //#28872 + $k[$j++] = _X; //#28872 + $k[$j++] = _W; //#28872 + $k[$j++] = _V; //#28872 + $k[$j++] = $f($f(_X - _T) + 1); //#28872 + $k[$j++] = _Y; //#28872 + $k[$j++] = $f(_W + 1); //#28872 + $1.nexts(); //#28872 + } //#28872 + } else { //#28882 + var _Z = $k[--$j]; //#28875 + var _a = $k[--$j]; //#28875 + var _b = $k[--$j]; //#28875 + $k[$j++] = _b; //#28883 + $k[$j++] = _a; //#28883 + $k[$j++] = _Z; //#28883 + if ($le(_Z, _b)) { //#28883 + var _d = $k[--$j]; //#28876 + var _e = $k[--$j]; //#28876 + var _f = $k[--$j]; //#28876 + $put($1.b, _e, _f); //#28876 + $k[$j++] = _f; //#28881 + $k[$j++] = _e; //#28881 + $k[$j++] = _d; //#28881 + if ($1.value == $1.target) { //#28881 + $k[$j++] = Infinity; //#28879 + for (var _i = 3; _i <= 10; _i += 1) { //#28879 + $k[$j++] = $get($1.s, _i); //#28879 + $k[$j++] = $get($1.b, _i); //#28879 + } //#28879 + $1.out = $geti($a(), 0, $1.chan * 2); //#28880 + } //#28880 + $1.value = $1.value + 1; //#28882 + } //#28882 + } //#28882 + $j -= 4; //#28885 + }; //#28886 $1.nexts = function() { - var _r = $k[--$j]; - $k[$j++] = _r; - if (_r < $f($1.chan + 2)) { - $k[$j++] = 1; - } else { - var _t = $k[--$j]; - var _u = $k[--$j]; - $k[$j++] = _u; - $k[$j++] = _t; - $k[$j++] = _u; - } - var _v = $k[--$j]; - var _w = $k[--$j]; - var _x = $k[--$j]; - $k[$j++] = _x; - $k[$j++] = _w; - for (var _z = _v, _y = _x; _z <= _y; _z += 1) { - var _11 = $k[--$j]; - $put($1.s, _11, _z); - var _12 = $k[--$j]; - var _13 = $k[--$j]; - $k[$j++] = _13; - $k[$j++] = _12; - $k[$j++] = _11; - $k[$j++] = $f($f(_12 - _z) + 1); - $k[$j++] = _13; - $k[$j++] = _11; - $1.nextb(); - } - $j -= 3; - }; + var _r = $k[--$j]; //#28889 + $k[$j++] = _r; //#28889 + if (_r < $f($1.chan + 2)) { //#28889 + $k[$j++] = 1; //#28889 + } else { //#28889 + var _t = $k[--$j]; //#28889 + var _u = $k[--$j]; //#28889 + $k[$j++] = _u; //#28889 + $k[$j++] = _t; //#28889 + $k[$j++] = _u; //#28889 + } //#28889 + var _v = $k[--$j]; //#28889 + var _w = $k[--$j]; //#28889 + var _x = $k[--$j]; //#28889 + $k[$j++] = _x; //#28892 + $k[$j++] = _w; //#28892 + for (var _z = _v, _y = _x; _z <= _y; _z += 1) { //#28892 + var _11 = $k[--$j]; //#28890 + $put($1.s, _11, _z); //#28890 + var _12 = $k[--$j]; //#28891 + var _13 = $k[--$j]; //#28891 + $k[$j++] = _13; //#28891 + $k[$j++] = _12; //#28891 + $k[$j++] = _11; //#28891 + $k[$j++] = $f($f(_12 - _z) + 1); //#28891 + $k[$j++] = _13; //#28891 + $k[$j++] = _11; //#28891 + $1.nextb(); //#28891 + } //#28891 + $j -= 3; //#28893 + }; //#28894 $1.encode = function() { - $1.chan = $k[--$j]; - $1.target = $k[--$j]; - $1.value = 0; - $1.out = -1; - $1.b = $a([ 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]); - $1.s = $a([ 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]); - var _18 = $1.chan; - $k[$j++] = _18; - $k[$j++] = _18; - $k[$j++] = 3; - $1.nexts(); - $k[$j++] = $1.out; - }; - $1.barlen = $1.barcode.length; - $k[$j++] = "finder"; - if ($1.shortfinder) { - $k[$j++] = $a([ 1, 1, 1, 1, 1 ]); - } else { - $k[$j++] = $a([ 1, 1, 1, 1, 1, 1, 1, 1, 1 ]); - } - var _1E = $k[--$j]; - $1[$k[--$j]] = _1E; - $k[$j++] = "data"; - $k[$j++] = ~~$z($1.barcode); - $k[$j++] = $1.barlen + 1; - $1.encode(); - var _1I = $k[--$j]; - $1[$k[--$j]] = _1I; - $1.check = $a([]); - if ($1.includecheck) { - $1.mod23 = $get($a([ $a([]), $a([]), $a([ 13, 12, 4, 9, 3, 1 ]), $a([ 13, 2, 12, 3, 18, 16, 4, 1 ]), $a([ 11, 16, 17, 8, 20, 4, 10, 2, 5, 1 ]), $a([ 1, 4, 16, 18, 3, 12, 2, 8, 9, 13, 6, 1 ]), $a([ 20, 16, 22, 13, 15, 12, 5, 4, 8, 9, 21, 3, 7, 1 ]), $a([ 2, 6, 18, 8, 1, 3, 9, 4, 12, 13, 16, 2, 6, 18, 8, 1 ]) ]), $1.barlen); - $k[$j++] = 0; - for (var _1Z = 0, _1Y = $1.data.length - 1; _1Z <= _1Y; _1Z += 1) { - var _1e = $k[--$j]; - $k[$j++] = $f(_1e + $f($get($1.data, _1Z) - 1) * $get($1.mod23, _1Z)); - } - var _1f = $k[--$j]; - $k[$j++] = _1f % 23; - $k[$j++] = 3; - $1.encode(); - $1.check = $k[--$j]; - } - $k[$j++] = Infinity; - $aload($1.finder); - $aload($1.data); - $aload($1.check); - $1.sbs = $a(); - $1.txt = $a($1.barlen); - for (var _1p = 0, _1o = $1.barlen - 1; _1p <= _1o; _1p += 1) { - $1.i = _1p; - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), 0, 0, "", 0 ])); - } - $k[$j++] = Infinity; - var _1w = $1.sbs; - $k[$j++] = Infinity; - for (var _1y = 0, _1z = ~~(($1.sbs.length + 1) / 2); _1y < _1z; _1y++) { - $k[$j++] = $1.height; - } - var _21 = $a(); - $k[$j++] = Infinity; - for (var _23 = 0, _24 = ~~(($1.sbs.length + 1) / 2); _23 < _24; _23++) { - $k[$j++] = 0; - } - var _25 = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _1w; - $k[$j++] = "bhs"; - $k[$j++] = _21; - $k[$j++] = "bbs"; - $k[$j++] = _25; - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - $k[$j++] = "textxalign"; - $k[$j++] = "center"; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _28 = $d(); - $k[$j++] = _28; - if (!$1.dontdraw) { - $0.renlinear(); - } + $1.chan = $k[--$j]; //#28897 + $1.target = $k[--$j]; //#28898 + $1.value = 0; //#28899 + $1.out = -1; //#28900 + $1.b = $a([1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0]); //#28901 + $1.s = $a([0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0]); //#28902 + var _18 = $1.chan; //#28903 + $k[$j++] = _18; //#28903 + $k[$j++] = _18; //#28903 + $k[$j++] = 3; //#28903 + $1.nexts(); //#28903 + $k[$j++] = $1.out; //#28904 + }; //#28905 + $1.barlen = $1.barcode.length; //#28907 + $k[$j++] = 'finder'; //#28910 + if ($1.shortfinder) { //#28910 + $k[$j++] = $a([1, 1, 1, 1, 1]); //#28910 + } else { //#28910 + $k[$j++] = $a([1, 1, 1, 1, 1, 1, 1, 1, 1]); //#28910 + } //#28910 + var _1E = $k[--$j]; //#28910 + $1[$k[--$j]] = _1E; //#28910 + $k[$j++] = 'data'; //#28913 + $k[$j++] = ~~$z($1.barcode); //#28913 + $k[$j++] = $1.barlen + 1; //#28913 + $1.encode(); //#28913 + var _1I = $k[--$j]; //#28913 + $1[$k[--$j]] = _1I; //#28913 + $1.check = $a([]); //#28916 + if ($1.includecheck) { //#28932 + $1.mod23 = $get($a([$a([]), $a([]), $a([13, 12, 4, 9, 3, 1]), $a([13, 2, 12, 3, 18, 16, 4, 1]), $a([11, 16, 17, 8, 20, 4, 10, 2, 5, 1]), $a([1, 4, 16, 18, 3, 12, 2, 8, 9, 13, 6, 1]), $a([20, 16, 22, 13, 15, 12, 5, 4, 8, 9, 21, 3, 7, 1]), $a([2, 6, 18, 8, 1, 3, 9, 4, 12, 13, 16, 2, 6, 18, 8, 1])]), $1.barlen); //#28926 + $k[$j++] = 0; //#28930 + for (var _1Z = 0, _1Y = $1.data.length - 1; _1Z <= _1Y; _1Z += 1) { //#28930 + var _1e = $k[--$j]; //#28929 + $k[$j++] = $f(_1e + ($f($get($1.data, _1Z) - 1) * $get($1.mod23, _1Z))); //#28929 + } //#28929 + var _1f = $k[--$j]; //#28931 + $k[$j++] = _1f % 23; //#28931 + $k[$j++] = 3; //#28931 + $1.encode(); //#28931 + $1.check = $k[--$j]; //#28931 + } //#28931 + $k[$j++] = Infinity; //#28938 + $aload($1.finder); //#28936 + $aload($1.data); //#28937 + $aload($1.check); //#28938 + $1.sbs = $a(); //#28938 + $1.txt = $a($1.barlen); //#28942 + for (var _1p = 0, _1o = $1.barlen - 1; _1p <= _1o; _1p += 1) { //#28946 + $1.i = _1p; //#28944 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), 0, 0, "", 0])); //#28945 + } //#28945 + $k[$j++] = Infinity; //#28956 + var _1w = $1.sbs; //#28951 + $k[$j++] = Infinity; //#28952 + for (var _1y = 0, _1z = ~~(($1.sbs.length + 1) / 2); _1y < _1z; _1y++) { //#28952 + $k[$j++] = $1.height; //#28952 + } //#28952 + var _21 = $a(); //#28952 + $k[$j++] = Infinity; //#28953 + for (var _23 = 0, _24 = ~~(($1.sbs.length + 1) / 2); _23 < _24; _23++) { //#28953 + $k[$j++] = 0; //#28953 + } //#28953 + var _25 = $a(); //#28953 + $k[$j++] = 'ren'; //#28956 + $k[$j++] = $0.renlinear; //#28956 + $k[$j++] = 'sbs'; //#28956 + $k[$j++] = _1w; //#28956 + $k[$j++] = 'bhs'; //#28956 + $k[$j++] = _21; //#28956 + $k[$j++] = 'bbs'; //#28956 + $k[$j++] = _25; //#28956 + $k[$j++] = 'txt'; //#28956 + $k[$j++] = $1.txt; //#28956 + $k[$j++] = 'textxalign'; //#28956 + $k[$j++] = "center"; //#28956 + $k[$j++] = 'opt'; //#28956 + $k[$j++] = $1.options; //#28956 + var _28 = $d(); //#28956 + $k[$j++] = _28; //#28959 + if (!$1.dontdraw) { //#28959 + $0.renlinear(); //#28959 + } //#28959 }; $0.renlinear = function() { - if ($0.bwipjs_dontdraw) { - return; - } - var $1 = {}; - $1.args = $k[--$j]; - $1.sbs = $a([]); - $1.bhs = $a([]); - $1.bbs = $a([]); - $1.txt = $a([]); - $1.barcolor = "unset"; - $1.includetext = false; - $1.textcolor = "unset"; - $1.textxalign = "unset"; - $1.textyalign = "unset"; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = 0; - $1.textgaps = 0; - $1.alttext = ""; - $1.bordercolor = "unset"; - $1.backgroundcolor = "unset"; - $1.inkspread = 0; - $1.width = 0; - $1.barratio = 1; - $1.spaceratio = 1; - $1.showborder = false; - $1.borderleft = 10; - $1.borderright = 10; - $1.bordertop = 1; - $1.borderbottom = 1; - $1.borderwidth = .5; - $1.guardwhitespace = false; - $1.guardleftpos = 0; - $1.guardleftypos = 0; - $1.guardrightpos = 0; - $1.guardrightypos = 0; - $1.guardwidth = 7; - $1.guardheight = 7; - $forall($1.args, function() { - var _7 = $k[--$j]; - $1[$k[--$j]] = _7; - }); - var _9 = $1.opt; - for (var _E = _9.size, _D = _9.keys(), _C = 0; _C < _E; _C++) { - var _A = _D.next().value; - $1[_A] = _9.get(_A); - } - $1.barcolor = "" + $1.barcolor; - $1.textcolor = "" + $1.textcolor; - $1.textxalign = "" + $1.textxalign; - $1.textyalign = "" + $1.textyalign; - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.textgaps = +$1.textgaps; - $1.alttext = "" + $1.alttext; - $1.bordercolor = "" + $1.bordercolor; - $1.backgroundcolor = "" + $1.backgroundcolor; - $1.inkspread = +$1.inkspread; - $1.width = +$1.width; - $1.barratio = +$1.barratio; - $1.spaceratio = +$1.spaceratio; - $1.borderleft = +$1.borderleft; - $1.borderright = +$1.borderright; - $1.bordertop = +$1.bordertop; - $1.borderbottom = +$1.borderbottom; - $1.borderwidth = +$1.borderwidth; - $1.guardleftpos = +$1.guardleftpos; - $1.guardleftypos = +$1.guardleftypos; - $1.guardrightpos = +$1.guardrightpos; - $1.guardrightypos = +$1.guardrightypos; - $1.guardwidth = +$1.guardwidth; - $1.guardheight = +$1.guardheight; - $1.bars = $a(~~(($1.sbs.length + 1) / 2)); - $1.x = 0; - $1.maxh = 0; - for (var _k = 0, _j = ~~(($1.sbs.length + 1) / 2) * 2 - 2; _k <= _j; _k += 1) { - $1.i = _k; - if ($1.i % 2 == 0) { - $1.d = $f($f($get($1.sbs, $1.i) * $1.barratio - $1.barratio) + 1); - if ($get($1.sbs, $1.i) != 0) { - $1.h = $get($1.bhs, ~~($1.i / 2)) * 72; - $1.c = $f($1.d / 2 + $1.x); - $1.y = $get($1.bbs, ~~($1.i / 2)) * 72; - $1.w = $f($1.d - $1.inkspread); - $put($1.bars, ~~($1.i / 2), $a([ $1.h, $1.c, $1.y, $1.w ])); - if ($f($1.h + $1.y) > $1.maxh) { - $1.maxh = $f($1.h + $1.y); - } - } else { - $put($1.bars, ~~($1.i / 2), -1); - } - } else { - $1.d = $f($f($get($1.sbs, $1.i) * $1.spaceratio - $1.spaceratio) + 1); - } - $1.x = $f($1.x + $1.d); - } - $$.save(); - var _1P = $$.currpos(); - $$.translate(_1P.x, _1P.y); - if ($1.width != 0) { - $$.scale($1.width * 72 / $1.x, 1); - } - $$.newpath(); - $$.moveto(-$1.borderleft, -$1.borderbottom); - $$.rlineto($f($f($1.x + $1.borderleft) + $1.borderright), 0); - $$.rlineto(0, $f($f($1.maxh + $1.borderbottom) + $1.bordertop)); - $$.rlineto(-$f($f($1.x + $1.borderleft) + $1.borderright), 0); - $$.rlineto(0, -$f($f($1.maxh + $1.borderbottom) + $1.bordertop)); - $$.closepath(); - if ($1.showborder) { - $$.save(); - if ($ne($1.bordercolor, "unset")) { - $$.setcolor($1.bordercolor); - } - $$.setlinewidth($1.borderwidth); - $$.stroke(); - $$.restore(); - } - $$.save(); - if ($ne($1.barcolor, "unset")) { - $$.setcolor($1.barcolor); - } - var _1n = $1.bars; - for (var _1o = 0, _1p = _1n.length; _1o < _1p; _1o++) { - var _1q = $get(_1n, _1o); - $k[$j++] = _1q; - if (_1q != -1) { - $aload($k[--$j]); - $$.newpath(); - $$.setlinewidth($k[--$j]); - var _1t = $k[--$j]; - $$.moveto($k[--$j], _1t); - $$.rlineto(0, $k[--$j]); - $$.stroke(); - } else { - $j--; - } - } - $$.restore(); - if ($ne($1.textcolor, "unset")) { - $$.setcolor($1.textcolor); - } - if ($1.includetext) { - if ($eq($1.textxalign, "unset") && $eq($1.textyalign, "unset") && $eq($1.alttext, "")) { - $1.s = 0; - $1.fn = ""; - var _22 = $1.txt; - for (var _23 = 0, _24 = _22.length; _23 < _24; _23++) { - $forall($get(_22, _23)); - var _26 = $k[--$j]; - var _27 = $k[--$j]; - $k[$j++] = _27; - $k[$j++] = _26; - if (_26 != $1.s || $ne(_27, $1.fn)) { - var _2A = $k[--$j]; - var _2B = $k[--$j]; - $1.s = _2A; - $1.fn = _2B; - $$.selectfont(_2B, _2A); - } else { - $j -= 2; - } - var _2C = $k[--$j]; - $$.moveto($k[--$j], _2C); - $$.show($k[--$j], 0, 0); - } - } else { - $$.selectfont($1.textfont, $1.textsize); - if ($eq($1.alttext, "")) { - $k[$j++] = Infinity; - var _2I = $1.txt; - for (var _2J = 0, _2K = _2I.length; _2J < _2K; _2J++) { - $forall($get($get(_2I, _2J), 0)); - } - $1.txt = $a(); - $1.tstr = $s($1.txt.length); - for (var _2S = 0, _2R = $1.txt.length - 1; _2S <= _2R; _2S += 1) { - $put($1.tstr, _2S, $get($1.txt, _2S)); - } - } else { - $1.tstr = $1.alttext; - } - if ($1.tstr.length == 0) { - $k[$j++] = 0; - } else { - $$.save(); - $$.newpath(); - $$.moveto(0, 0); - $$.charpath("0", false); - var _2Y = $$.pathbbox(); - $$.restore(); - $k[$j++] = _2Y.ury; - } - $1.textascent = $k[--$j]; - var _2b = $$.stringwidth($1.tstr); - $1.textwidth = $f(_2b.w + ($1.tstr.length - 1) * $1.textgaps); - $1.textxpos = $f($1.textxoffset + $f($1.x - $1.textwidth) / 2); - if ($eq($1.textxalign, "left")) { - $1.textxpos = $1.textxoffset; - } - if ($eq($1.textxalign, "right")) { - $1.textxpos = $f($f($1.x - $1.textxoffset) - $1.textwidth); - } - if ($eq($1.textxalign, "offleft")) { - $1.textxpos = -$f($1.textwidth + $1.textxoffset); - } - if ($eq($1.textxalign, "offright")) { - $1.textxpos = $f($1.x + $1.textxoffset); - } - if ($eq($1.textxalign, "justify") && $1.textwidth < $1.x) { - $1.textxpos = 0; - $1.textgaps = $f($1.x - $1.textwidth) / ($1.tstr.length - 1); - } - $1.textypos = -$f($f($1.textyoffset + $1.textascent) + 1); - if ($eq($1.textyalign, "above")) { - $1.textypos = $f($f($1.textyoffset + $1.maxh) + 1); - } - if ($eq($1.textyalign, "center")) { - $1.textypos = $f($1.textyoffset + $f($1.maxh - $1.textascent) / 2); - } - $$.moveto($1.textxpos, $1.textypos); - $$.show($1.tstr, $1.textgaps, 0); - } - } - if ($1.guardwhitespace) { - $$.selectfont("OCR-B", $1.guardheight * 2); - if ($1.guardleftpos != 0) { - $$.moveto($f(-$1.guardleftpos - 1), $f($f($1.guardleftypos - $1.guardheight / 2) - 1.5)); - $$.show("<", 0, 0); - } - if ($1.guardrightpos != 0) { - $$.moveto($f($f($f($1.guardrightpos + $1.x) - $1.guardwidth) + 1), $f($f($1.guardrightypos - $1.guardheight / 2) - 1.5)); - $$.show(">", 0, 0); - } - } - $$.restore(); + if ($0.bwipjs_dontdraw) { //#28980 + return; //#28980 + } //#28980 + var $1 = {}; //#28981 + $1.args = $k[--$j]; //#28983 + $1.sbs = $a([]); //#28986 + $1.bhs = $a([]); //#28987 + $1.bbs = $a([]); //#28988 + $1.txt = $a([]); //#28989 + $1.barcolor = "unset"; //#28990 + $1.includetext = false; //#28991 + $1.textcolor = "unset"; //#28992 + $1.textxalign = "unset"; //#28993 + $1.textyalign = "unset"; //#28994 + $1.textfont = "OCR-B"; //#28995 + $1.textsize = 10; //#28996 + $1.textxoffset = 0; //#28997 + $1.textyoffset = 0; //#28998 + $1.textgaps = 0; //#28999 + $1.alttext = ""; //#29000 + $1.bordercolor = "unset"; //#29001 + $1.backgroundcolor = "unset"; //#29002 + $1.inkspread = 0; //#29003 + $1.width = 0; //#29004 + $1.barratio = 1; //#29005 + $1.spaceratio = 1; //#29006 + $1.showborder = false; //#29007 + $1.borderleft = 10; //#29008 + $1.borderright = 10; //#29009 + $1.bordertop = 1; //#29010 + $1.borderbottom = 1; //#29011 + $1.borderwidth = 0.5; //#29012 + $1.guardwhitespace = false; //#29013 + $1.guardleftpos = 0; //#29014 + $1.guardleftypos = 0; //#29015 + $1.guardrightpos = 0; //#29016 + $1.guardrightypos = 0; //#29017 + $1.guardwidth = 7; //#29018 + $1.guardheight = 7; //#29019 + $forall($1.args, function() { //#29022 + var _7 = $k[--$j]; //#29022 + $1[$k[--$j]] = _7; //#29022 + }); //#29022 + var _9 = $1.opt; //#29023 + for (var _E = _9.size, _D = _9.keys(), _C = 0; _C < _E; _C++) { //#29023 + var _A = _D.next().value; //#29023 + $1[_A] = _9.get(_A); //#29023 + } //#29023 + $1.barcolor = "" + $1.barcolor; //#29025 + $1.textcolor = "" + $1.textcolor; //#29026 + $1.textxalign = "" + $1.textxalign; //#29027 + $1.textyalign = "" + $1.textyalign; //#29028 + $1.textfont = "" + $1.textfont; //#29029 + $1.textsize = +$1.textsize; //#29030 + $1.textxoffset = +$1.textxoffset; //#29031 + $1.textyoffset = +$1.textyoffset; //#29032 + $1.textgaps = +$1.textgaps; //#29033 + $1.alttext = "" + $1.alttext; //#29034 + $1.bordercolor = "" + $1.bordercolor; //#29035 + $1.backgroundcolor = "" + $1.backgroundcolor; //#29036 + $1.inkspread = +$1.inkspread; //#29037 + $1.width = +$1.width; //#29038 + $1.barratio = +$1.barratio; //#29039 + $1.spaceratio = +$1.spaceratio; //#29040 + $1.borderleft = +$1.borderleft; //#29041 + $1.borderright = +$1.borderright; //#29042 + $1.bordertop = +$1.bordertop; //#29043 + $1.borderbottom = +$1.borderbottom; //#29044 + $1.borderwidth = +$1.borderwidth; //#29045 + $1.guardleftpos = +$1.guardleftpos; //#29046 + $1.guardleftypos = +$1.guardleftypos; //#29047 + $1.guardrightpos = +$1.guardrightpos; //#29048 + $1.guardrightypos = +$1.guardrightypos; //#29049 + $1.guardwidth = +$1.guardwidth; //#29050 + $1.guardheight = +$1.guardheight; //#29051 + $1.bars = $a(~~(($1.sbs.length + 1) / 2)); //#29054 + $1.x = 0; //#29055 + $1.maxh = 0; //#29055 + for (var _k = 0, _j = ((~~(($1.sbs.length + 1) / 2)) * 2) - 2; _k <= _j; _k += 1) { //#29074 + $1.i = _k; //#29057 + if (($1.i % 2) == 0) { //#29071 + $1.d = $f(($f(($get($1.sbs, $1.i) * $1.barratio) - $1.barratio)) + 1); //#29059 + if ($get($1.sbs, $1.i) != 0) { //#29068 + $1.h = $get($1.bhs, ~~($1.i / 2)) * 72; //#29061 + $1.c = $f(($1.d / 2) + $1.x); //#29062 + $1.y = $get($1.bbs, ~~($1.i / 2)) * 72; //#29063 + $1.w = $f($1.d - $1.inkspread); //#29064 + $put($1.bars, ~~($1.i / 2), $a([$1.h, $1.c, $1.y, $1.w])); //#29065 + if ($f($1.h + $1.y) > $1.maxh) { //#29066 + $1.maxh = $f($1.h + $1.y); //#29066 + } //#29066 + } else { //#29068 + $put($1.bars, ~~($1.i / 2), -1); //#29068 + } //#29068 + } else { //#29071 + $1.d = $f(($f(($get($1.sbs, $1.i) * $1.spaceratio) - $1.spaceratio)) + 1); //#29071 + } //#29071 + $1.x = $f($1.x + $1.d); //#29073 + } //#29073 + $$.save(); //#29076 + var _1P = $$.currpos(); //#29078 + $$.translate(_1P.x, _1P.y); //#29078 + if ($1.width != 0) { //#29083 + $$.scale(($1.width * 72) / $1.x, 1); //#29082 + } //#29082 + $$.newpath(); //#29086 + $$.moveto(-$1.borderleft, -$1.borderbottom); //#29087 + $$.rlineto($f($f($1.x + $1.borderleft) + $1.borderright), 0); //#29088 + $$.rlineto(0, $f($f($1.maxh + $1.borderbottom) + $1.bordertop)); //#29089 + $$.rlineto(-($f($f($1.x + $1.borderleft) + $1.borderright)), 0); //#29090 + $$.rlineto(0, -($f($f($1.maxh + $1.borderbottom) + $1.bordertop))); //#29091 + $$.closepath(); //#29092 + if ($1.showborder) { //#29100 + $$.save(); //#29096 + if ($ne($1.bordercolor, "unset")) { //#29097 + $$.setcolor($1.bordercolor); //#29097 + } //#29097 + $$.setlinewidth($1.borderwidth); //#29098 + $$.stroke(); //#29098 + $$.restore(); //#29099 + } //#29099 + $$.save(); //#29103 + if ($ne($1.barcolor, "unset")) { //#29105 + $$.setcolor($1.barcolor); //#29105 + } //#29105 + var _1n = $1.bars; //#29106 + for (var _1o = 0, _1p = _1n.length; _1o < _1p; _1o++) { //#29112 + var _1q = $get(_1n, _1o); //#29112 + $k[$j++] = _1q; //#29111 + if (_1q != -1) { //#29110 + $aload($k[--$j]); //#29108 + $$.newpath(); //#29108 + $$.setlinewidth($k[--$j]); //#29108 + var _1t = $k[--$j]; //#29108 + $$.moveto($k[--$j], _1t); //#29108 + $$.rlineto(0, $k[--$j]); //#29108 + $$.stroke(); //#29108 + } else { //#29110 + $j--; //#29110 + } //#29110 + } //#29110 + $$.restore(); //#29113 + if ($ne($1.textcolor, "unset")) { //#29116 + $$.setcolor($1.textcolor); //#29116 + } //#29116 + if ($1.includetext) { //#29173 + if (($eq($1.textxalign, "unset") && $eq($1.textyalign, "unset")) && $eq($1.alttext, "")) { //#29171 + $1.s = 0; //#29119 + $1.fn = ""; //#29119 + var _22 = $1.txt; //#29120 + for (var _23 = 0, _24 = _22.length; _23 < _24; _23++) { //#29129 + $forall($get(_22, _23)); //#29121 + var _26 = $k[--$j]; //#29122 + var _27 = $k[--$j]; //#29122 + $k[$j++] = _27; //#29127 + $k[$j++] = _26; //#29127 + if ((_26 != $1.s) || $ne(_27, $1.fn)) { //#29126 + var _2A = $k[--$j]; //#29123 + var _2B = $k[--$j]; //#29123 + $1.s = _2A; //#29123 + $1.fn = _2B; //#29123 + $$.selectfont(_2B, _2A); //#29124 + } else { //#29126 + $j -= 2; //#29126 + } //#29126 + var _2C = $k[--$j]; //#29128 + $$.moveto($k[--$j], _2C); //#29128 + $$.show($k[--$j], 0, 0); //#29128 + } //#29128 + } else { //#29171 + $$.selectfont($1.textfont, $1.textsize); //#29131 + if ($eq($1.alttext, "")) { //#29137 + $k[$j++] = Infinity; //#29133 + var _2I = $1.txt; //#29133 + for (var _2J = 0, _2K = _2I.length; _2J < _2K; _2J++) { //#29133 + $forall($get($get(_2I, _2J), 0)); //#29133 + } //#29133 + $1.txt = $a(); //#29133 + $1.tstr = $s($1.txt.length); //#29134 + for (var _2S = 0, _2R = $1.txt.length - 1; _2S <= _2R; _2S += 1) { //#29135 + $put($1.tstr, _2S, $get($1.txt, _2S)); //#29135 + } //#29135 + } else { //#29137 + $1.tstr = $1.alttext; //#29137 + } //#29137 + if ($1.tstr.length == 0) { //#29147 + $k[$j++] = 0; //#29142 + } else { //#29147 + $$.save(); //#29144 + $$.newpath(); //#29145 + $$.moveto(0, 0); //#29145 + $$.charpath("0", false); //#29145 + var _2Y = $$.pathbbox(); //#29145 + $$.restore(); //#29147 + $k[$j++] = _2Y.ury; //#29147 + } //#29147 + $1.textascent = $k[--$j]; //#29156 + var _2b = $$.stringwidth($1.tstr); //#29157 + $1.textwidth = $f(_2b.w + (($1.tstr.length - 1) * $1.textgaps)); //#29157 + $1.textxpos = $f($1.textxoffset + ($f($1.x - $1.textwidth) / 2)); //#29159 + if ($eq($1.textxalign, "left")) { //#29160 + $1.textxpos = $1.textxoffset; //#29160 + } //#29160 + if ($eq($1.textxalign, "right")) { //#29161 + $1.textxpos = $f($f($1.x - $1.textxoffset) - $1.textwidth); //#29161 + } //#29161 + if ($eq($1.textxalign, "offleft")) { //#29162 + $1.textxpos = -$f($1.textwidth + $1.textxoffset); //#29162 + } //#29162 + if ($eq($1.textxalign, "offright")) { //#29163 + $1.textxpos = $f($1.x + $1.textxoffset); //#29163 + } //#29163 + if ($eq($1.textxalign, "justify") && ($1.textwidth < $1.x)) { //#29167 + $1.textxpos = 0; //#29165 + $1.textgaps = $f($1.x - $1.textwidth) / ($1.tstr.length - 1); //#29166 + } //#29166 + $1.textypos = -($f($f($1.textyoffset + $1.textascent) + 1)); //#29168 + if ($eq($1.textyalign, "above")) { //#29169 + $1.textypos = $f($f($1.textyoffset + $1.maxh) + 1); //#29169 + } //#29169 + if ($eq($1.textyalign, "center")) { //#29170 + $1.textypos = $f($1.textyoffset + ($f($1.maxh - $1.textascent) / 2)); //#29170 + } //#29170 + $$.moveto($1.textxpos, $1.textypos); //#29171 + $$.show($1.tstr, $1.textgaps, 0); //#29171 + } //#29171 + } //#29171 + if ($1.guardwhitespace) { //#29186 + $$.selectfont("OCR-B", $1.guardheight * 2); //#29177 + if ($1.guardleftpos != 0) { //#29181 + $$.moveto($f((-$1.guardleftpos) - 1), $f(($f($1.guardleftypos - ($1.guardheight / 2))) - 1.5)); //#29179 + $$.show("<", 0, 0); //#29180 + } //#29180 + if ($1.guardrightpos != 0) { //#29185 + $$.moveto($f(($f($f($1.guardrightpos + $1.x) - $1.guardwidth)) + 1), $f(($f($1.guardrightypos - ($1.guardheight / 2))) - 1.5)); //#29183 + $$.show(">", 0, 0); //#29184 + } //#29184 + } //#29184 + $$.restore(); //#29188 }; $0.renmaximatrix = function() { - if ($0.bwipjs_dontdraw) { - return; - } - var $1 = {}; - $1.args = $k[--$j]; - $1.barcolor = "unset"; - $1.backgroundcolor = "unset"; - $forall($1.args, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - var _5 = $1.opt; - for (var _A = _5.size, _9 = _5.keys(), _8 = 0; _8 < _A; _8++) { - var _6 = _9.next().value; - $1[_6] = _5.get(_6); - } - $1.barcolor = "" + $1.barcolor; - $1.backgroundcolor = "" + $1.backgroundcolor; - $$.save(); - if ($ne($1.barcolor, "unset")) { - $$.setcolor($1.barcolor); - } - $$.maxicode($1.pixs); - $$.restore(); + if ($0.bwipjs_dontdraw) { //#29208 + return; //#29208 + } //#29208 + var $1 = {}; //#29210 + $1.args = $k[--$j]; //#29212 + $1.barcolor = "unset"; //#29215 + $1.backgroundcolor = "unset"; //#29216 + $forall($1.args, function() { //#29219 + var _3 = $k[--$j]; //#29219 + $1[$k[--$j]] = _3; //#29219 + }); //#29219 + var _5 = $1.opt; //#29220 + for (var _A = _5.size, _9 = _5.keys(), _8 = 0; _8 < _A; _8++) { //#29220 + var _6 = _9.next().value; //#29220 + $1[_6] = _5.get(_6); //#29220 + } //#29220 + $1.barcolor = "" + $1.barcolor; //#29222 + $1.backgroundcolor = "" + $1.backgroundcolor; //#29223 + $$.save(); //#29225 + if ($ne($1.barcolor, "unset")) { //#29227 + $$.setcolor($1.barcolor); //#29227 + } //#29227 + $$.maxicode($1.pixs); //#29228 + $$.restore(); //#29230 }; + // bwip-js/barcode-ftr.js + // + // This code is injected below the cross-compiled barcode.ps. + + // The BWIPP symbol is a factory object. When called, it returns this + // function, which is a re-usable postscript emulation for BWIPP. return function(bwipjs, encoder, text, opts, dontdraw) { if (!$0[encoder]) { - throw new Error("bwipp.unknownEncoder: " + encoder); + throw new Error('bwipp.unknownEncoder: ' + encoder); } - if (typeof text !== "string") { - throw new Error("bwipp.typeError: barcode text not a string (" + text + ")"); + if (typeof text !== 'string') { + throw new Error('bwipp.typeError: barcode text not a string (' + + text + ')'); } opts = opts || {}; - if (typeof opts === "string") { - var tmp = opts.split(" "); + if (typeof opts === 'string') { + var tmp = opts.split(' '); opts = {}; for (var i = 0; i < tmp.length; i++) { if (!tmp[i]) { continue; } - var eq = tmp[i].indexOf("="); + var eq = tmp[i].indexOf('='); if (eq == -1) { opts[tmp[i]] = true; } else { opts[tmp[i].substr(0, eq)] = tmp[i].substr(eq + 1); } } - } else if (typeof opts !== "object" || opts.constructor !== Object) { - throw new Error("bwipp.typeError: options not an object"); + } else if (typeof opts !== 'object' || opts.constructor !== Object) { + throw new Error('bwipp.typeError: options not an object'); } + + // Convert utf-16 to utf-8 but leave binary (8-bit) strings untouched. if (/[\u0100-\uffff]/.test(text)) { text = unescape(encodeURIComponent(text)); } + + // Handle the `parse` option here rather than in BWIPP - eliminates + // conflict with the parsefnc option and allows removing the parsing + // code from BWIPP. if (opts.parse) { text = text.replace(/\^(\d\d\d)/g, function($0, $1) { var v = +$1; if (v > 255) { - throw new Error("bwipp.rangeError:" + " ^NNN out-of-range (" + $0 + ")"); + throw new Error('bwipp.rangeError:' + + ' ^NNN out-of-range (' + $0 + ')'); } return String.fromCharCode(v); }); delete opts.parse; } + + // Don't draw? (See file runtest) $0.bwipjs_dontdraw = opts.dontdraw || dontdraw || false; - var map = new Map(); + + // Convert opts to a Map + var map = new Map; for (var id in opts) { if (opts.hasOwnProperty(id)) { map.set(id, opts[id]); } } + + // Invoke the encoder $$ = bwipjs; - $k = [ text, map ]; + $k = [text, map]; $j = 2; $0[encoder](); + + // Return what is left on the stack. This branch should only be taken + // when running with the dontdraw option. if ($j) { return $k.splice(0, $j); } + return true; - }; + } } - -BWIPP.VERSION = "2021-02-06"; +BWIPP.VERSION = '2021-02-06'; // file : bwipjs.js // // Graphics-context interface to the BWIPP cross-compiled code @@ -33946,10 +35841,10 @@ function DrawingBuiltin(opts) { var w2 = (lw/2)|0; if (x0 == x1) { // Vertical line - x0 = x0 - w2; - x1 = x1 + lw - w2 - 1; + x0 = x0 - lw + w2; // big half + x1 = x1 + w2 - 1; // small half } else { - // Horizontal line + // Horizontal line (inverted halves) y0 = y0 - w2; y1 = y1 + lw - w2 - 1; } @@ -36543,7 +38438,7 @@ return { request:Request, toBuffer:ToBuffer, render:Render, raw:Raw, fixupOptions:FixupOptions, loadFont:FontLib.loadFont, - VERSION:'2.1.1 (2021-02-24)', + VERSION:'2.1.2 (2021-04-06)', // Internals BWIPJS:BWIPJS, BWIPP:BWIPP, STBTT:STBTT, FontLib:FontLib, diff --git a/package.json b/package.json index 5f0734b5..a7d0781e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bwip-js", - "version": "2.1.1", + "version": "2.1.2", "description": "JavaScript barcode generator supporting over 100 types and standards.", "main": "./dist/node-bwipjs.js", "browser": "./dist/bwip-js.js", diff --git a/src/bwipp.js b/src/bwipp.js index eeae4b8e..ea4027a9 100644 --- a/src/bwipp.js +++ b/src/bwipp.js @@ -1,16 +1,40 @@ +// bwip-js // Barcode Writer in Pure JavaScript +// https://github.com/metafloor/bwip-js +// +// This code was automatically generated from: +// Barcode Writer in Pure PostScript - Version 2021-02-06 +// +// Copyright (c) 2011-2021 Mark Warren +// Copyright (c) 2004-2021 Terry Burton +// +// Licensed MIT. See the LICENSE file in the bwip-js root directory. function BWIPP() { "use strict"; + // bwip-js/barcode-hdr.js + // + // This code is injected above the cross-compiled barcode.ps. + + // The BWIPJS object (graphics interface) var $$ = null; + + // The global dictionary. Each renderer and encoder declare a + // $1 local dict. var $0 = { - $error: new Map() + $error: new Map // the postscript error object }; - var $j = 0; - var $k = []; + + var $j = 0; // stack pointer + var $k = []; // operand stack + + // Array ctor + // $a() : Build a new array up to the Infinity-marker on the stack. + // $a(arr) : Convert native array to a "view" of the array. + // $a(len) : Create a new array of length `len` function $a(a) { if (!arguments.length) { - for (var i = $j - 1; i >= 0 && $k[i] !== Infinity; i--) ; + for (var i = $j - 1; i >= 0 && $k[i] !== Infinity; i--); if (i < 0) { - throw new Error("array-marker-not-found"); + throw new Error('array-marker-not-found'); } a = $k.splice(i + 1, $j - 1 - i); $j = i; @@ -20,41 +44,55 @@ function BWIPP() { a[i] = null; } } - a.b = a; - a.o = 0; + a.b = a; // base array + a.o = 0; // offset into base return a; } + + // dict ctor + // $d() : look for the Infinity marker on the stack function $d() { + // Build the dictionary in the order the keys/values were pushed so enumeration + // occurs in the correct sequence. for (var mark = $j - 1; mark >= 0 && $k[mark] !== Infinity; mark -= 2) { if ($k[mark - 1] === Infinity) { - throw new Error("dict-malformed-stack"); + throw new Error('dict-malformed-stack'); } } if (mark < 0) { - throw "dict-marker-not-found"; + throw 'dict-marker-not-found'; } - var d = new Map(); + var d = new Map; for (var i = mark + 1; i < $j; i += 2) { - var k = $k[i]; + // Unlike javascript, postscript dict keys differentiate between + // numbers and the string representation of a number. + var k = $k[i]; // "key" into the dict entry var t = typeof k; - if (t == "number" || t == "string") { + if (t == 'number' || t == 'string') { d.set(k, $k[i + 1]); } else if (k instanceof Uint8Array) { d.set($z(k), $k[i + 1]); } else { - throw "dict-not-a-valid-key(" + k + ")"; + throw 'dict-not-a-valid-key(' + k + ')'; } } $j = mark; return d; } + + // string ctor + // s(number) : create zero-filled string of number-length + // s(string) : make a copy of the string + // s(uint8[]) : make a copy of the string + // + // Returns a Uint8Array-string. function $s(v) { var t = typeof v; - if (t === "number") { + if (t === 'number') { return new Uint8Array(v); } - if (t !== "string") { - v = "" + v; + if (t !== 'string') { + v = '' + v; } var s = new Uint8Array(v.length); for (var i = 0; i < v.length; i++) { @@ -62,9 +100,11 @@ function BWIPP() { } return s; } + + // ... n c roll function $r(n, c) { if ($j < n) { - throw "roll: --stack-underflow--"; + throw 'roll: --stack-underflow--'; } if (!c) { return; @@ -74,20 +114,27 @@ function BWIPP() { } else { var t = $k.splice($j - n, n - c); } - $k.splice.apply($k, [ $j - t.length, 0 ].concat(t)); + $k.splice.apply($k, [$j - t.length, 0].concat(t)); } + + // Primarily designed to convert uint8-string to string, but will call the + // the toString() method on any value. function $z(s) { if (s instanceof Uint8Array) { - for (var i = 0, l = s.length; i < l && s[i]; i++) ; + // Postscript treats nul-char as end of string, even if string is + // longer. + for (var i = 0, l = s.length; i < l && s[i]; i++); if (i < l) { return String.fromCharCode.apply(null, s.subarray(0, i)); } - return String.fromCharCode.apply(null, s); + return String.fromCharCode.apply(null, s) } - return "" + s; + return '' + s; } + + // Copies source to dest and returns a view of just the copied characters function $strcpy(dst, src) { - if (typeof dst === "string") { + if (typeof dst === 'string') { dst = $s(dst); } if (src instanceof Uint8Array) { @@ -101,6 +148,8 @@ function BWIPP() { } return src.length < dst.length ? dst.subarray(0, src.length) : dst; } + + // Copies source to dest and should (but doesn't) return a view of just the copied elements function $arrcpy(dst, src) { for (var i = 0, l = src.length; i < l; i++) { dst[i] = src[i]; @@ -108,26 +157,38 @@ function BWIPP() { dst.length = src.length; return dst; } + + // cvs operator - convert a value to its string representation + // s : string to store into + // v : any value function $cvs(s, v) { var t = typeof v; - if (t == "number" || t == "boolean" || v === null) { - v = "" + v; - } else if (t !== "string") { - v = "--nostringval--"; + if (t == 'number' || t == 'boolean' || v === null) { + v = '' + v; + } else if (t !== 'string') { + v = '--nostringval--'; } for (var i = 0, l = v.length; i < l; i++) { s[i] = v.charCodeAt(i); } $k[$j++] = i < s.length ? s.subarray(0, i) : s; } + // cvrs operator - convert a number to a radix string + // s : string to store into + // n : number + // r : radix function $cvrs(s, n, r) { return $strcpy(s, (~~n).toString(r).toUpperCase()); } + + // get operator + // s : source + // k : key function $get(s, k) { if (s instanceof Uint8Array) { return s[k]; } - if (typeof s === "string") { + if (typeof s === 'string') { return s.charCodeAt(k); } if (s instanceof Array) { @@ -138,100 +199,137 @@ function BWIPP() { } return s.get(k); } + + // put operator + // d : dest + // k : key + // v : value function $put(d, k, v) { if (d instanceof Uint8Array) { d[k] = v; } else if (d instanceof Array) { d.b[d.o + k] = v; - } else if (typeof d == "object") { + } else if (typeof d == 'object') { if (k instanceof Uint8Array) { d.set($z(k), v); } else { d.set(k, v); } } else { - throw "put-not-writable-" + typeof d; + throw 'put-not-writable-' + (typeof d); } } + + // getinterval operator + // s : src + // o : offset + // l : length function $geti(s, o, l) { if (s instanceof Uint8Array) { return s.subarray(o, o + l); } if (s instanceof Array) { var a = new Array(l); - a.b = s.b; - a.o = s.o + o; + a.b = s.b; // base array + a.o = s.o + o; // offset into base return a; } + // Must be a string return s.substr(o, l); } + + // putinterval operator + // d : dst + // o : offset + // s : src function $puti(d, o, s) { if (d instanceof Uint8Array) { - if (typeof s == "string") { + if (typeof s == 'string') { for (var i = 0, l = s.length; i < l; i++) { d[o + i] = s.charCodeAt(i); } } else { + // When both d and s are the same, we want to copy + // backwards, which works for the general case as well. for (var i = s.length - 1; i >= 0; i--) { d[o + i] = s[i]; } } } else if (d instanceof Array) { + // Operate on the base arrays var darr = d.b; var doff = o + d.o; var sarr = s.b; var soff = s.o; + for (var i = 0, l = s.length; i < l; i++) { darr[doff + i] = sarr[soff + i]; } } else { - throw "putinterval-not-writable-" + typeof d; + throw 'putinterval-not-writable-' + (typeof d); } } + + // type operator function $type(v) { + // null can be mis-typed - get it out of the way if (v === null || v === undefined) { - return "nulltype"; + return 'nulltype'; } var t = typeof v; - if (t == "number") { - return v % 1 ? "realtype" : "integertype"; + if (t == 'number') { + return v % 1 ? 'realtype' : 'integertype'; } - if (t == "boolean") { - return "booleantype"; + if (t == 'boolean') { + return 'booleantype'; } - if (t == "string" || v instanceof Uint8Array) { - return "stringtype"; + if (t == 'string' || v instanceof Uint8Array) { + return 'stringtype'; } - if (t == "function") { - return "operatortype"; + if (t == 'function') { + return 'operatortype'; } if (v instanceof Array) { - return "arraytype"; - } - return "dicttype"; + return 'arraytype'; + } + return 'dicttype'; + // filetype + // fonttype + // gstatetype + // marktype (v === Infinity) + // nametype + // savetype } + + // search operator + // string seek search suffix match prefix true %if-found + // string false %if-not-found function $search(str, seek) { if (!(str instanceof Uint8Array)) { str = $s(str); } var ls = str.length; + + // Virtually all uses of search in BWIPP are for single-characters. + // Optimize for that case. if (seek.length == 1) { var lk = 1; var cd = seek instanceof Uint8Array ? seek[0] : seek.charCodeAt(0); - for (var i = 0; i < ls && str[i] != cd; i++) ; + for (var i = 0; i < ls && str[i] != cd; i++); } else { + // Slow path, if (!(seek instanceof Uint8Array)) { seek = $(seek); } var lk = seek.length; var cd = seek[0]; - for (var i = 0; i < ls && str[i] != cd; i++) ; + for (var i = 0; i < ls && str[i] != cd; i++); while (i < ls) { - for (var j = 1; j < lk && str[i + j] === seek[j]; j++) ; + for (var j = 1; j < lk && str[i + j] === seek[j]; j++); if (j === lk) { break; } - for (i++; i < ls && str[i] != cd; i++) ; + for (i++; i < ls && str[i] != cd; i++); } } if (i < ls) { @@ -244,6 +342,9 @@ function BWIPP() { $k[$j++] = false; } } + + // The callback is omitted when forall is being used just to push onto the + // stack. The callback normally returns undefined. A return of true means break. function $forall(o, cb) { if (o instanceof Uint8Array) { for (var i = 0, l = o.length; i < l; i++) { @@ -254,11 +355,12 @@ function BWIPP() { if (cb && cb()) break; } } else if (o instanceof Array) { + // The array may be a view. for (var a = o.b, i = o.o, l = o.o + o.length; i < l; i++) { $k[$j++] = a[i]; if (cb && cb()) break; } - } else if (typeof o === "string") { + } else if (typeof o === 'string') { for (var i = 0, l = o.length; i < l; i++) { $k[$j++] = o.charCodeAt(i); if (cb && cb()) break; @@ -278,26 +380,33 @@ function BWIPP() { } } } + function $cleartomark() { - while ($j > 0 && $k[--$j] !== Infinity) ; + while ($j > 0 && $k[--$j] !== Infinity); } + function $counttomark() { - for (var i = $j - 1; i >= 0 && $k[i] !== Infinity; i--) ; + for (var i = $j - 1; i >= 0 && $k[i] !== Infinity; i--); return $j - i - 1; } + function $aload(a) { for (var i = 0, l = a.length, b = a.b, o = a.o; i < l; i++) { $k[$j++] = b[o + i]; } + // This push has been optimized out. See $.aload() in psc.js. + //$k[$j++] = a; } + function $astore(a) { for (var i = 0, l = a.length, b = a.b, o = a.o + l - 1; i < l; i++) { b[o - i] = $k[--$j]; } $k[$j++] = a; } + function $eq(a, b) { - if (typeof a === "string" && typeof b === "string") { + if (typeof a === 'string' && typeof b === 'string') { return a == b; } if (a instanceof Uint8Array && b instanceof Uint8Array) { @@ -311,7 +420,8 @@ function BWIPP() { } return true; } - if (a instanceof Uint8Array && typeof b === "string" || b instanceof Uint8Array && typeof a === "string") { + if (a instanceof Uint8Array && typeof b === 'string' || + b instanceof Uint8Array && typeof a === 'string') { if (a instanceof Uint8Array) { a = $z(a); } else { @@ -321,9 +431,11 @@ function BWIPP() { } return a == b; } + function $ne(a, b) { return !$eq(a, b); } + function $lt(a, b) { if (a instanceof Uint8Array) { a = $z(a); @@ -333,6 +445,7 @@ function BWIPP() { } return a < b; } + function $le(a, b) { if (a instanceof Uint8Array) { a = $z(a); @@ -342,6 +455,7 @@ function BWIPP() { } return a <= b; } + function $gt(a, b) { if (a instanceof Uint8Array) { a = $z(a); @@ -351,6 +465,7 @@ function BWIPP() { } return a > b; } + function $ge(a, b) { if (a instanceof Uint8Array) { a = $z(a); @@ -360,32527 +475,34307 @@ function BWIPP() { } return a >= b; } - function $an(a, b) { - return typeof a === "boolean" ? a && b : a & b; + + function $an(a, b) { // and + return (typeof a === 'boolean') ? a && b : a & b; } - function $or(a, b) { - return typeof a === "boolean" ? a || b : a | b; + + function $or(a, b) { // or + return (typeof a === 'boolean') ? a || b : a | b; } - function $xo(a, b) { - return typeof a === "boolean" ? !a && b || a && !b : a ^ b; + + function $xo(a, b) { // xor + return (typeof a === 'boolean') ? !a && b || a && !b : a ^ b; } + function $nt(a) { - return typeof a == "boolean" ? !a : ~a; + return typeof a == 'boolean' ? !a : ~a; } - var $f = function(fa) { + // emulate single-precision floating-point (pseudo-polyfill for Math.fround) + var $f = (function(fa) { return function(v) { return Number.isInteger(v) ? v : (fa[0] = v, fa[0]); }; - }(new Float32Array(1)); + })(new Float32Array(1)); + + // DEBUG-BEGIN function $stack() { - console.log("[[["); + console.log('[[['); for (var i = $j - 1; i >= 0; i--) { console.log(tostring($k[i])); } - console.log("]]]"); + console.log(']]]'); + function tostring(v) { + // null can be mis-typed - get it out of the way if (v === null) { - return "null"; + return 'null'; } else if (v === undefined) { - return ""; + return ''; } else if (v instanceof Array) { - var s = "["; + var s = '['; for (var j = v.o, a = v.b, l = v.length + v.o; j < l; j++) { - s += (j == v.o ? "" : ",") + tostring(a[j]); + s += (j == v.o ? '' : ',') + tostring(a[j]); } - return s + "]"; + return s + ']'; } else if (v instanceof Uint8Array) { - return "(" + $z[v] + ")"; - } else if (typeof v === "object") { - var s = "<<"; + return '(' + $z[v] + ')'; + } else if (typeof v === 'object') { + var s = '<<'; for (var id in v) { - s += (s.length == 7 ? "" : ",") + id + ":" + tostring(v[id]); + s += (s.length == 7 ? '' : ',') + id + ':' + tostring(v[id]); } - return s + ">>"; - } else if (typeof v === "string") { + return s + '>>'; + } else if (typeof v === 'string') { return '"' + v + '"'; } else { - return "" + v; + return '' + v; } } } + // DEBUG-END $0.raiseerror = function() { - $put($0.$error, "errorinfo", $k[--$j]); - $put($0.$error, "errorname", $k[--$j]); - $put($0.$error, "command", null); - $put($0.$error, "newerror", true); - throw new Error($z($0.$error.get("errorname")) + ": " + $z($0.$error.get("errorinfo"))); + $put($0.$error, 'errorinfo', $k[--$j]); //#55 + $put($0.$error, 'errorname', $k[--$j]); //#56 + $put($0.$error, 'command', null); //#57 + $put($0.$error, 'newerror', true); //#58 + throw new Error($z($0.$error.get("errorname")) + ": " + $z($0.$error.get("errorinfo"))); //#59 }; $0.parseinput = function() { - var $1 = {}; - $1.fncvals = $k[--$j]; - $1.barcode = $k[--$j]; - var _2 = "parse"; - $1[_2] = $get($1.fncvals, _2); - delete $1.fncvals[_2]; - var _6 = "parsefnc"; - $1[_6] = $get($1.fncvals, _6); - delete $1.fncvals[_6]; - var _A = "parseonly"; - var _C = $get($1.fncvals, _A) !== undefined; - $1[_A] = _C; - delete $1.fncvals[_A]; - var _E = "eci"; - var _G = $get($1.fncvals, _E) !== undefined; - $1[_E] = _G; - delete $1.fncvals[_E]; - $1.msg = $a($1.barcode.length); - $1.j = 0; - $k[$j++] = $1.barcode; - for (;;) { - $search($k[--$j], "^"); - var _M = $k[--$j]; - var _N = $k[--$j]; - $k[$j++] = _M; - $k[$j++] = _N.length; - $k[$j++] = $1.msg; - $k[$j++] = $1.j; - $k[$j++] = Infinity; - var _R = _N; - $forall(_R); - var _S = $a(); - var _T = $k[--$j]; - $puti($k[--$j], _T, _S); - $1.j = $f($k[--$j] + $1.j); - if ($k[--$j]) { - $j--; - for (var _Y = 0, _Z = 1; _Y < _Z; _Y++) { - if ($an($nt($1.parse), $nt($1.parsefnc))) { - $put($1.msg, $1.j, 94); - $1.j = $f($1.j + 1); - break; - } - $put($1.msg, $1.j, 94); - $1.j = $f($1.j + 1); - if ($1.parse) { - var _j = $k[--$j]; - $k[$j++] = _j; - if (_j.length >= 3) { - var _k = $k[--$j]; - var _l = $geti(_k, 0, 3); - $k[$j++] = _k; - $k[$j++] = true; - for (var _m = 0, _n = _l.length; _m < _n; _m++) { - var _o = $get(_l, _m); - if (_o < 48 || _o > 57) { - $j--; - $k[$j++] = false; - } - } - if ($k[--$j]) { - var _q = $k[--$j]; - var _s = ~~$z($geti(_q, 0, 3)); - $k[$j++] = _q; - $k[$j++] = _s; - if (_s > 255) { - $j -= 2; - $k[$j++] = "bwipp.invalidOrdinal"; - $k[$j++] = "Ordinal must be 000 to 255"; - $0.raiseerror(); - } - $1.j = $f($1.j - 1); - $put($1.msg, $1.j, $k[--$j]); - $1.j = $f($1.j + 1); - var _y = $k[--$j]; - $k[$j++] = $geti(_y, 3, _y.length - 3); - } - } - } - if ($or($1.parseonly, $nt($1.parsefnc)) || $get($1.msg, $f($1.j - 1)) != 94) { - break; - } - $1.j = $f($1.j - 1); - var _16 = $k[--$j]; - $k[$j++] = _16; - if (_16.length < 3) { - $j--; - $k[$j++] = "bwipp.truncatedFNC"; - $k[$j++] = "Function character truncated"; - $0.raiseerror(); - } - var _17 = $k[--$j]; - $k[$j++] = _17; - if ($get(_17, 0) == 94) { - $put($1.msg, $1.j, 94); - $1.j = $f($1.j + 1); - var _1C = $k[--$j]; - $k[$j++] = $geti(_1C, 1, _1C.length - 1); - break; - } - var _1E = $k[--$j]; - $k[$j++] = _1E; - if ($eq($geti(_1E, 0, 3), "ECI") && $1.eci) { - var _1H = $k[--$j]; - $k[$j++] = _1H; - if (_1H.length < 9) { - $j--; - $k[$j++] = "bwipp.truncatedECI"; - $k[$j++] = "ECI truncated"; - $0.raiseerror(); - } - var _1I = $k[--$j]; - var _1J = $geti(_1I, 3, 6); - $k[$j++] = _1I; - $k[$j++] = _1J; - for (var _1K = 0, _1L = _1J.length; _1K < _1L; _1K++) { - var _1M = $get(_1J, _1K); - if (_1M < 48 || _1M > 57) { - $j -= 2; - $k[$j++] = "bwipp.invalidECI"; - $k[$j++] = "ECI must be 000000 to 999999"; - $0.raiseerror(); - } - } - var _1N = $k[--$j]; - $k[$j++] = 0; - $forall(_1N, function() { - var _1O = $k[--$j]; - var _1P = $k[--$j]; - $k[$j++] = $f(_1P - $f(_1O - 48)) * 10; - }); - $put($1.msg, $1.j, ~~($k[--$j] / 10) - 1e6); - $1.j = $f($1.j + 1); - var _1U = $k[--$j]; - $k[$j++] = $geti(_1U, 9, _1U.length - 9); - break; - } - var _1W = $k[--$j]; - $k[$j++] = _1W; - if (_1W.length < 4) { - $j--; - $k[$j++] = "bwipp.truncatedFNC"; - $k[$j++] = "Function character truncated"; - $0.raiseerror(); - } - var _1X = $k[--$j]; - var _1Y = $geti(_1X, 0, 4); - var _1a = $get($1.fncvals, _1Y) !== undefined; - $k[$j++] = _1X; - $k[$j++] = _1Y; - if (!_1a) { - var _1b = $k[--$j]; - var _1c = $s(_1b.length + 28); - $puti(_1c, 28, _1b); - $puti(_1c, 0, "Unknown function character: "); - var _1d = $k[--$j]; - $k[$j++] = _1c; - $k[$j++] = _1d; - $j--; - var _1e = $k[--$j]; - $k[$j++] = "bwipp.unknownFNC"; - $k[$j++] = _1e; - $0.raiseerror(); - } - $put($1.msg, $1.j, $get($1.fncvals, $k[--$j])); - $1.j = $f($1.j + 1); - var _1l = $k[--$j]; - $k[$j++] = $geti(_1l, 4, _1l.length - 4); - break; - } - } else { - break; - } - } - if ($nt($1.parseonly)) { - $k[$j++] = $geti($1.msg, 0, $1.j); - } else { - $k[$j++] = $s($1.j); - for (var _1v = 0, _1u = $f($1.j - 1); _1v <= _1u; _1v += 1) { - var _1w = $k[--$j]; - $put(_1w, _1v, $get($1.msg, _1v)); - $k[$j++] = _1w; - } - } + var $1 = {}; //#80 + $1.fncvals = $k[--$j]; //#82 + $1.barcode = $k[--$j]; //#83 + var _2 = 'parse'; //#85 + $1[_2] = $get($1.fncvals, _2); //#85 + delete $1.fncvals[_2]; //#85 + var _6 = 'parsefnc'; //#86 + $1[_6] = $get($1.fncvals, _6); //#86 + delete $1.fncvals[_6]; //#86 + var _A = 'parseonly'; //#87 + var _C = $get($1.fncvals, _A) !== undefined; //#87 + $1[_A] = _C; //#87 + delete $1.fncvals[_A]; //#87 + var _E = 'eci'; //#88 + var _G = $get($1.fncvals, _E) !== undefined; //#88 + $1[_E] = _G; //#88 + delete $1.fncvals[_E]; //#88 + $1.msg = $a($1.barcode.length); //#90 + $1.j = 0; //#91 + $k[$j++] = $1.barcode; //#186 + for (;;) { //#186 + $search($k[--$j], "^"); //#93 + var _M = $k[--$j]; //#93 + var _N = $k[--$j]; //#93 + $k[$j++] = _M; //#96 + $k[$j++] = _N.length; //#96 + $k[$j++] = $1.msg; //#96 + $k[$j++] = $1.j; //#96 + $k[$j++] = _N; //#96 + $k[$j++] = Infinity; //#96 + var _Q = $k[--$j]; //#96 + var _R = $k[--$j]; //#96 + $k[$j++] = _Q; //#96 + $forall(_R); //#96 + var _S = $a(); //#96 + var _T = $k[--$j]; //#96 + $puti($k[--$j], _T, _S); //#96 + $1.j = $f($k[--$j] + $1.j); //#97 + if ($k[--$j]) { //#184 + $j--; //#99 + for (var _Y = 0, _Z = 1; _Y < _Z; _Y++) { //#182 + if ($an($nt($1.parse), $nt($1.parsefnc))) { //#106 + $put($1.msg, $1.j, 94); //#103 + $1.j = $f($1.j + 1); //#104 + break; //#105 + } //#105 + $put($1.msg, $1.j, 94); //#109 + $1.j = $f($1.j + 1); //#110 + if ($1.parse) { //#129 + var _j = $k[--$j]; //#114 + $k[$j++] = _j; //#128 + if (_j.length >= 3) { //#128 + var _k = $k[--$j]; //#115 + var _l = $geti(_k, 0, 3); //#115 + $k[$j++] = _k; //#117 + $k[$j++] = true; //#117 + for (var _m = 0, _n = _l.length; _m < _n; _m++) { //#117 + var _o = $get(_l, _m); //#117 + if ((_o < 48) || (_o > 57)) { //#116 + $j--; //#116 + $k[$j++] = false; //#116 + } //#116 + } //#116 + if ($k[--$j]) { //#127 + var _q = $k[--$j]; //#119 + var _s = ~~$z($geti(_q, 0, 3)); //#119 + $k[$j++] = _q; //#122 + $k[$j++] = _s; //#122 + if (_s > 255) { //#122 + $j -= 2; //#120 + $k[$j++] = 'bwipp.invalidOrdinal'; //#121 + $k[$j++] = "Ordinal must be 000 to 255"; //#121 + $0.raiseerror(); //#121 + } //#121 + $1.j = $f($1.j - 1); //#123 + $put($1.msg, $1.j, $k[--$j]); //#124 + $1.j = $f($1.j + 1); //#125 + var _y = $k[--$j]; //#126 + $k[$j++] = $geti(_y, 3, _y.length - 3); //#126 + } //#126 + } //#126 + } //#126 + if (($or($1.parseonly, $nt($1.parsefnc))) || ($get($1.msg, $f($1.j - 1)) != 94)) { //#134 + break; //#134 + } //#134 + $1.j = $f($1.j - 1); //#137 + var _16 = $k[--$j]; //#138 + $k[$j++] = _16; //#141 + if (_16.length < 3) { //#141 + $j--; //#139 + $k[$j++] = 'bwipp.truncatedFNC'; //#140 + $k[$j++] = "Function character truncated"; //#140 + $0.raiseerror(); //#140 + } //#140 + var _17 = $k[--$j]; //#142 + $k[$j++] = _17; //#147 + if ($get(_17, 0) == 94) { //#147 + $put($1.msg, $1.j, 94); //#143 + $1.j = $f($1.j + 1); //#144 + var _1C = $k[--$j]; //#145 + $k[$j++] = $geti(_1C, 1, _1C.length - 1); //#146 + break; //#146 + } //#146 + var _1E = $k[--$j]; //#148 + $k[$j++] = _1E; //#165 + if ($eq($geti(_1E, 0, 3), "ECI") && $1.eci) { //#165 + var _1H = $k[--$j]; //#149 + $k[$j++] = _1H; //#152 + if (_1H.length < 9) { //#152 + $j--; //#150 + $k[$j++] = 'bwipp.truncatedECI'; //#151 + $k[$j++] = "ECI truncated"; //#151 + $0.raiseerror(); //#151 + } //#151 + var _1I = $k[--$j]; //#153 + var _1J = $geti(_1I, 3, 6); //#153 + $k[$j++] = _1I; //#159 + $k[$j++] = _1J; //#159 + for (var _1K = 0, _1L = _1J.length; _1K < _1L; _1K++) { //#159 + var _1M = $get(_1J, _1K); //#159 + if ((_1M < 48) || (_1M > 57)) { //#158 + $j -= 2; //#156 + $k[$j++] = 'bwipp.invalidECI'; //#157 + $k[$j++] = "ECI must be 000000 to 999999"; //#157 + $0.raiseerror(); //#157 + } //#157 + } //#157 + var _1N = $k[--$j]; //#160 + $k[$j++] = 0; //#160 + $forall(_1N, function() { //#160 + var _1O = $k[--$j]; //#160 + var _1P = $k[--$j]; //#160 + $k[$j++] = ($f(_1P - $f(_1O - 48))) * 10; //#160 + }); //#160 + $put($1.msg, $1.j, (~~($k[--$j] / 10)) - 1000000); //#161 + $1.j = $f($1.j + 1); //#162 + var _1U = $k[--$j]; //#163 + $k[$j++] = $geti(_1U, 9, _1U.length - 9); //#164 + break; //#164 + } //#164 + var _1W = $k[--$j]; //#166 + $k[$j++] = _1W; //#169 + if (_1W.length < 4) { //#169 + $j--; //#167 + $k[$j++] = 'bwipp.truncatedFNC'; //#168 + $k[$j++] = "Function character truncated"; //#168 + $0.raiseerror(); //#168 + } //#168 + var _1X = $k[--$j]; //#170 + var _1Y = $geti(_1X, 0, 4); //#170 + var _1a = $get($1.fncvals, _1Y) !== undefined; //#170 + $k[$j++] = _1X; //#175 + $k[$j++] = _1Y; //#175 + if (!_1a) { //#175 + var _1b = $k[--$j]; //#171 + var _1c = $s(_1b.length + 28); //#171 + $puti(_1c, 28, _1b); //#171 + $puti(_1c, 0, "Unknown function character: "); //#172 + var _1d = $k[--$j]; //#173 + $k[$j++] = _1c; //#173 + $k[$j++] = _1d; //#173 + $j--; //#173 + var _1e = $k[--$j]; //#174 + $k[$j++] = 'bwipp.unknownFNC'; //#174 + $k[$j++] = _1e; //#174 + $0.raiseerror(); //#174 + } //#174 + $put($1.msg, $1.j, $get($1.fncvals, $k[--$j])); //#177 + $1.j = $f($1.j + 1); //#178 + var _1l = $k[--$j]; //#179 + $k[$j++] = $geti(_1l, 4, _1l.length - 4); //#180 + break; //#180 + } //#180 + } else { //#184 + break; //#184 + } //#184 + } //#184 + if ($nt($1.parseonly)) { //#192 + $k[$j++] = $geti($1.msg, 0, $1.j); //#189 + } else { //#192 + $k[$j++] = $s($1.j); //#192 + for (var _1v = 0, _1u = $f($1.j - 1); _1v <= _1u; _1v += 1) { //#192 + var _1w = $k[--$j]; //#192 + $put(_1w, _1v, $get($1.msg, _1v)); //#192 + $k[$j++] = _1w; //#192 + } //#192 + } //#192 }; $0.gs1lint = function() { - var $1 = {}; - $1.vals = $k[--$j]; - $1.ais = $k[--$j]; + var $1 = {}; //#217 + $1.vals = $k[--$j]; //#219 + $1.ais = $k[--$j]; //#220 $1.lintnumeric = function() { - var _2 = $k[--$j]; - $k[$j++] = true; - $forall(_2, function() { - var _3 = $k[--$j]; - if (_3 < 48 || _3 > 57) { - $j--; - $k[$j++] = false; - return true; - } - }); - if ($nt($k[--$j])) { - $j--; - $k[$j++] = "bwipp.GS1notNumeric"; - $k[$j++] = "Not numeric"; - $k[$j++] = false; - return true; - } - }; + var _2 = $k[--$j]; //#223 + $k[$j++] = true; //#225 + $forall(_2, function() { //#225 + var _3 = $k[--$j]; //#224 + if ((_3 < 48) || (_3 > 57)) { //#224 + $j--; //#224 + $k[$j++] = false; //#224 + return true; //#224 + } //#224 + }); //#224 + if ($nt($k[--$j])) { //#226 + $j--; //#226 + $k[$j++] = 'bwipp.GS1notNumeric'; //#226 + $k[$j++] = "Not numeric"; //#226 + $k[$j++] = false; //#226 + return true; //#226 + } //#226 + }; //#227 $1.lintcset82 = function() { - var _5 = $k[--$j]; - $k[$j++] = true; - $forall(_5, function() { - var _6 = $s(1); - $put(_6, 0, $k[--$j]); - $search("!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", _6); - if ($nt($k[--$j])) { - $j -= 2; - $k[$j++] = false; - return true; - } - $j -= 3; - }); - if ($nt($k[--$j])) { - $j--; - $k[$j++] = "bwipp.GS1badCSET82character"; - $k[$j++] = "Invalid CSET 82 character"; - $k[$j++] = false; - return true; - } - }; + var _5 = $k[--$j]; //#230 + $k[$j++] = true; //#235 + $forall(_5, function() { //#235 + var _6 = $s(1); //#231 + $put(_6, 0, $k[--$j]); //#231 + $search("!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", _6); //#233 + if ($nt($k[--$j])) { //#233 + $j -= 2; //#233 + $k[$j++] = false; //#233 + return true; //#233 + } //#233 + $j -= 3; //#234 + }); //#234 + if ($nt($k[--$j])) { //#236 + $j--; //#236 + $k[$j++] = 'bwipp.GS1badCSET82character'; //#236 + $k[$j++] = "Invalid CSET 82 character"; //#236 + $k[$j++] = false; //#236 + return true; //#236 + } //#236 + }; //#237 $1.lintcset39 = function() { - var _A = $k[--$j]; - $k[$j++] = true; - $forall(_A, function() { - var _B = $s(1); - $put(_B, 0, $k[--$j]); - $search("#-/0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", _B); - if ($nt($k[--$j])) { - $j -= 2; - $k[$j++] = false; - return true; - } - $j -= 3; - }); - if ($nt($k[--$j])) { - $j--; - $k[$j++] = "bwipp.GS1badCSET39character"; - $k[$j++] = "Invalid CSET 39 character"; - $k[$j++] = false; - return true; - } - }; + var _A = $k[--$j]; //#240 + $k[$j++] = true; //#245 + $forall(_A, function() { //#245 + var _B = $s(1); //#241 + $put(_B, 0, $k[--$j]); //#241 + $search("#-/0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", _B); //#243 + if ($nt($k[--$j])) { //#243 + $j -= 2; //#243 + $k[$j++] = false; //#243 + return true; //#243 + } //#243 + $j -= 3; //#244 + }); //#244 + if ($nt($k[--$j])) { //#246 + $j--; //#246 + $k[$j++] = 'bwipp.GS1badCSET39character'; //#246 + $k[$j++] = "Invalid CSET 39 character"; //#246 + $k[$j++] = false; //#246 + return true; //#246 + } //#246 + }; //#247 $1.lintkey = function() { - var _F = $k[--$j]; - $k[$j++] = _F; - if (_F.length < 2) { - $j -= 2; - $k[$j++] = "bwipp.GS1keyTooShort"; - $k[$j++] = "Key is too short"; - $k[$j++] = false; - return true; - } - var _G = $k[--$j]; - var _H = $get(_G, 0); - var _I = $get(_G, 1); - if (_H < 48 || _H > 57 || (_I < 48 || _I > 57)) { - $j--; - $k[$j++] = "bwipp.GS1badGCP"; - $k[$j++] = "Non-numeric company prefix"; - $k[$j++] = false; - return true; - } - }; + var _F = $k[--$j]; //#250 + $k[$j++] = _F; //#250 + if (_F.length < 2) { //#250 + $j -= 2; //#250 + $k[$j++] = 'bwipp.GS1keyTooShort'; //#250 + $k[$j++] = "Key is too short"; //#250 + $k[$j++] = false; //#250 + return true; //#250 + } //#250 + var _G = $k[--$j]; //#251 + var _H = $get(_G, 0); //#251 + var _I = $get(_G, 1); //#252 + if (((_H < 48) || (_H > 57)) || ((_I < 48) || (_I > 57))) { //#254 + $j--; //#253 + $k[$j++] = 'bwipp.GS1badGCP'; //#253 + $k[$j++] = "Non-numeric company prefix"; //#253 + $k[$j++] = false; //#253 + return true; //#253 + } //#253 + }; //#255 $1.lintimporteridx = function() { - $search("-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", $k[--$j]); - if ($nt($k[--$j])) { - $j -= 2; - $k[$j++] = "bwipp.GS1badImporterIndex"; - $k[$j++] = "Invalid importer index"; - $k[$j++] = false; - return true; - } - $j -= 3; - }; + $search("-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", $k[--$j]); //#259 + if ($nt($k[--$j])) { //#259 + $j -= 2; //#259 + $k[$j++] = 'bwipp.GS1badImporterIndex'; //#259 + $k[$j++] = "Invalid importer index"; //#259 + $k[$j++] = false; //#259 + return true; //#259 + } //#259 + $j -= 3; //#260 + }; //#261 $1.lintcsum = function() { - $k[$j++] = Infinity; - var _L = $k[--$j]; - var _M = $k[--$j]; - var _N = _M.length % 2 == 0 ? 3 : 1; - $k[$j++] = _L; - $k[$j++] = _N; - $forall(_M, function() { - var _O = $k[--$j]; - var _P = $k[--$j]; - $k[$j++] = $f(_O - 48) * _P; - $k[$j++] = $f(4 - _P); - }); - $j--; - var _Q = $counttomark() + 1; - $k[$j++] = 0; - for (var _R = 0, _S = _Q - 1; _R < _S; _R++) { - var _T = $k[--$j]; - var _U = $k[--$j]; - $k[$j++] = $f(_U + _T); - } - var _V = $k[--$j]; - var _W = $k[--$j]; - $k[$j++] = _V; - $k[$j++] = _W; - $j--; - if ($k[--$j] % 10 != 0) { - $j--; - $k[$j++] = "bwipp.GS1badChecksum"; - $k[$j++] = "Bad checksum"; - $k[$j++] = false; - return true; - } - }; - $k[$j++] = Infinity; - $k[$j++] = 0; - for (var _Y = 0, _Z = "!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".length; _Y < _Z; _Y++) { - var _b = $k[--$j]; - $k[$j++] = $get("!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", _Y); - $k[$j++] = _b; - $k[$j++] = $f(_b + 1); - } - $j--; - $1.cset82 = $d(); - $k[$j++] = Infinity; - $k[$j++] = 0; - for (var _d = 0, _e = "23456789ABCDEFGHJKLMNPQRSTUVWXYZ".length; _d < _e; _d++) { - var _g = $k[--$j]; - $k[$j++] = $get("23456789ABCDEFGHJKLMNPQRSTUVWXYZ", _d); - $k[$j++] = _g; - $k[$j++] = $f(_g + 1); - } - $j--; - $1.cset32 = $d(); + $k[$j++] = Infinity; //#264 + var _L = $k[--$j]; //#264 + var _M = $k[--$j]; //#264 + var _N = ((_M.length % 2) == 0) ? 3 : 1; //#265 + $k[$j++] = _L; //#266 + $k[$j++] = _N; //#266 + $forall(_M, function() { //#266 + var _O = $k[--$j]; //#266 + var _P = $k[--$j]; //#266 + $k[$j++] = $f(_O - 48) * _P; //#266 + $k[$j++] = $f(4 - _P); //#266 + }); //#266 + $j--; //#266 + var _Q = $counttomark() + 1; //#267 + $k[$j++] = 0; //#267 + for (var _R = 0, _S = _Q - 1; _R < _S; _R++) { //#267 + var _T = $k[--$j]; //#267 + var _U = $k[--$j]; //#267 + $k[$j++] = $f(_U + _T); //#267 + } //#267 + var _V = $k[--$j]; //#267 + var _W = $k[--$j]; //#267 + $k[$j++] = _V; //#267 + $k[$j++] = _W; //#267 + $j--; //#267 + if (($k[--$j] % 10) != 0) { //#268 + $j--; //#268 + $k[$j++] = 'bwipp.GS1badChecksum'; //#268 + $k[$j++] = "Bad checksum"; //#268 + $k[$j++] = false; //#268 + return true; //#268 + } //#268 + }; //#269 + $k[$j++] = Infinity; //#273 + $k[$j++] = 0; //#273 + for (var _Y = 0, _Z = "!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".length; _Y < _Z; _Y++) { //#273 + var _b = $k[--$j]; //#273 + $k[$j++] = $get("!\"%&'()*+,-./0123456789:;<=>?ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz", _Y); //#273 + $k[$j++] = _b; //#273 + $k[$j++] = $f(_b + 1); //#273 + } //#273 + $j--; //#273 + $1.cset82 = $d(); //#274 + $k[$j++] = Infinity; //#278 + $k[$j++] = 0; //#278 + for (var _d = 0, _e = "23456789ABCDEFGHJKLMNPQRSTUVWXYZ".length; _d < _e; _d++) { //#278 + var _g = $k[--$j]; //#278 + $k[$j++] = $get("23456789ABCDEFGHJKLMNPQRSTUVWXYZ", _d); //#278 + $k[$j++] = _g; //#278 + $k[$j++] = $f(_g + 1); //#278 + } //#278 + $j--; //#278 + $1.cset32 = $d(); //#279 $1.lintcsumalpha = function() { - var _i = $k[--$j]; - $k[$j++] = _i; - if (_i.length < 2) { - $j -= 2; - $k[$j++] = "bwipp.GS1alphaTooShort"; - $k[$j++] = "Alphanumeric string is too short to check"; - $k[$j++] = false; - return true; - } - var _j = $k[--$j]; - $k[$j++] = _j; - $k[$j++] = _j.length - 2; - $k[$j++] = Infinity; - var _m = $geti(_j, 0, _j.length - 2); - $forall(_m, function() { - var _n = $k[--$j]; - var _p = $get($1.cset82, _n) !== undefined; - $k[$j++] = _n; - if (_p) { - var _s = $get($1.cset82, $k[--$j]); - $k[$j++] = _s; - } else { - $k[$j++] = -1; - return true; - } - }); - var _t = $k[--$j]; - $k[$j++] = _t; - if (_t == -1) { - $cleartomark(); - $j -= 3; - $k[$j++] = "bwipp.GS1UnknownCSET82Character"; - $k[$j++] = "Unknown CSET 82 character"; - $k[$j++] = false; - return true; - } - $astore($a($counttomark())); - var _w = $k[--$j]; - var _x = $k[--$j]; - $k[$j++] = _w; - $k[$j++] = _x; - $j--; - var _y = $k[--$j]; - var _z = $k[--$j]; - var _11 = $geti($k[--$j], _z, 2); - $k[$j++] = _y; - $k[$j++] = Infinity; - var _13 = _11; - $forall(_13, function() { - var _14 = $k[--$j]; - var _16 = $get($1.cset32, _14) !== undefined; - $k[$j++] = _14; - if (_16) { - var _19 = $get($1.cset32, $k[--$j]); - $k[$j++] = _19; - } else { - $k[$j++] = -1; - return true; - } - }); - var _1A = $k[--$j]; - $k[$j++] = _1A; - if (_1A == -1) { - $cleartomark(); - $j -= 2; - $k[$j++] = "bwipp.GS1UnknownCSET32Character"; - $k[$j++] = "Unknown CSET 32 character"; - $k[$j++] = false; - return true; - } - $astore($a($counttomark())); - var _1D = $k[--$j]; - var _1E = $k[--$j]; - $k[$j++] = _1D; - $k[$j++] = _1E; - $j--; - var _1F = $k[--$j]; - var _1I = $k[--$j]; - var _1J = $a([ 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83 ]); - var _1K = _1I.length; - $k[$j++] = $f(($get(_1F, 0) << 5) + $get(_1F, 1)); - $k[$j++] = _1I; - $k[$j++] = _1J; - $k[$j++] = _1K; - if (_1K > _1J.length) { - $j -= 5; - $k[$j++] = "bwipp.GS1alphaTooLong"; - $k[$j++] = "Alphanumeric string is too long to check"; - $k[$j++] = false; - return true; - } - var _1L = $k[--$j]; - var _1N = $geti($k[--$j], 0, _1L); - for (var _1O = 0, _1P = _1N.length; _1O < _1P; _1O++) { - var _1R = $k[--$j]; - $k[$j++] = $get(_1N, _1O); - $k[$j++] = _1R; - } - var _1S = $k[--$j]; - $k[$j++] = 0; - $forall(_1S, function() { - var _1T = $k[--$j]; - var _1U = $k[--$j]; - var _1V = $k[--$j]; - $k[$j++] = $f(_1U + _1V * _1T); - }); - var _1W = $k[--$j]; - if ($k[--$j] != _1W % 1021) { - $j--; - $k[$j++] = "bwipp.GS1badAlphaCheckCharacters"; - $k[$j++] = "Bad alphanumeric check characters"; - $k[$j++] = false; - return true; - } - }; - $k[$j++] = Infinity; - var _1Y = $a([ "004", "008", "010", "012", "016", "020", "024", "028", "031", "032", "036", "040", "044", "048", "050", "051", "052", "056", "060", "064", "068", "070", "072", "074", "076", "084", "086", "090", "092", "096", "100", "104", "108", "112", "116", "120", "124", "132", "136", "140", "144", "148", "152", "156", "158", "162", "166", "170", "174", "175", "178", "180", "184", "188", "191", "192", "196", "203", "204", "208", "212", "214", "218", "222", "226", "231", "232", "233", "234", "238", "239", "242", "246", "248", "250", "254", "258", "260", "262", "266", "268", "270", "275", "276", "288", "292", "296", "300", "304", "308", "312", "316", "320", "324", "328", "332", "334", "336", "340", "344", "348", "352", "356", "360", "364", "368", "372", "376", "380", "384", "388", "392", "398", "400", "404", "408", "410", "414", "417", "418", "422", "426", "428", "430", "434", "438", "440", "442", "446", "450", "454", "458", "462", "466", "470", "474", "478", "480", "484", "492", "496", "498", "499", "500", "504", "508", "512", "516", "520", "524", "528", "531", "533", "534", "535", "540", "548", "554", "558", "562", "566", "570", "574", "578", "580", "581", "583", "584", "585", "586", "591", "598", "600", "604", "608", "612", "616", "620", "624", "626", "630", "634", "638", "642", "643", "646", "652", "654", "659", "660", "662", "663", "666", "670", "674", "678", "682", "686", "688", "690", "694", "702", "703", "704", "705", "706", "710", "716", "724", "728", "729", "732", "740", "744", "748", "752", "756", "760", "762", "764", "768", "772", "776", "780", "784", "788", "792", "795", "796", "798", "800", "804", "807", "818", "826", "831", "832", "833", "834", "840", "850", "854", "858", "860", "862", "876", "882", "887", "894" ]); - for (var _1Z = 0, _1a = _1Y.length; _1Z < _1a; _1Z++) { - var _1b = $get(_1Y, _1Z); - $k[$j++] = _1b; - $k[$j++] = _1b; - } - $1.iso3166 = $d(); + var _i = $k[--$j]; //#282 + $k[$j++] = _i; //#282 + if (_i.length < 2) { //#282 + $j -= 2; //#282 + $k[$j++] = 'bwipp.GS1alphaTooShort'; //#282 + $k[$j++] = "Alphanumeric string is too short to check"; //#282 + $k[$j++] = false; //#282 + return true; //#282 + } //#282 + var _j = $k[--$j]; //#283 + $k[$j++] = _j; //#285 + $k[$j++] = _j.length - 2; //#285 + $k[$j++] = $geti(_j, 0, _j.length - 2); //#285 + $k[$j++] = Infinity; //#285 + var _l = $k[--$j]; //#285 + var _m = $k[--$j]; //#285 + $k[$j++] = _l; //#287 + $forall(_m, function() { //#287 + var _n = $k[--$j]; //#286 + var _p = $get($1.cset82, _n) !== undefined; //#286 + $k[$j++] = _n; //#286 + if (_p) { //#286 + var _s = $get($1.cset82, $k[--$j]); //#286 + $k[$j++] = _s; //#286 + } else { //#286 + $k[$j++] = -1; //#286 + return true; //#286 + } //#286 + }); //#286 + var _t = $k[--$j]; //#288 + $k[$j++] = _t; //#288 + if (_t == -1) { //#288 + $cleartomark(); //#288 + $j -= 3; //#288 + $k[$j++] = 'bwipp.GS1UnknownCSET82Character'; //#288 + $k[$j++] = "Unknown CSET 82 character"; //#288 + $k[$j++] = false; //#288 + return true; //#288 + } //#288 + $astore($a($counttomark())); //#289 + var _w = $k[--$j]; //#289 + var _x = $k[--$j]; //#289 + $k[$j++] = _w; //#289 + $k[$j++] = _x; //#289 + $j--; //#289 + var _y = $k[--$j]; //#290 + var _z = $k[--$j]; //#290 + var _11 = $geti($k[--$j], _z, 2); //#291 + $k[$j++] = _y; //#291 + $k[$j++] = _11; //#291 + $k[$j++] = Infinity; //#291 + var _12 = $k[--$j]; //#291 + var _13 = $k[--$j]; //#291 + $k[$j++] = _12; //#293 + $forall(_13, function() { //#293 + var _14 = $k[--$j]; //#292 + var _16 = $get($1.cset32, _14) !== undefined; //#292 + $k[$j++] = _14; //#292 + if (_16) { //#292 + var _19 = $get($1.cset32, $k[--$j]); //#292 + $k[$j++] = _19; //#292 + } else { //#292 + $k[$j++] = -1; //#292 + return true; //#292 + } //#292 + }); //#292 + var _1A = $k[--$j]; //#294 + $k[$j++] = _1A; //#294 + if (_1A == -1) { //#294 + $cleartomark(); //#294 + $j -= 2; //#294 + $k[$j++] = 'bwipp.GS1UnknownCSET32Character'; //#294 + $k[$j++] = "Unknown CSET 32 character"; //#294 + $k[$j++] = false; //#294 + return true; //#294 + } //#294 + $astore($a($counttomark())); //#295 + var _1D = $k[--$j]; //#295 + var _1E = $k[--$j]; //#295 + $k[$j++] = _1D; //#295 + $k[$j++] = _1E; //#295 + $j--; //#295 + var _1F = $k[--$j]; //#296 + var _1I = $k[--$j]; //#296 + var _1J = $a([2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83]); //#297 + var _1K = _1I.length; //#299 + $k[$j++] = $f(($get(_1F, 0) << 5) + $get(_1F, 1)); //#299 + $k[$j++] = _1I; //#299 + $k[$j++] = _1J; //#299 + $k[$j++] = _1K; //#299 + if (_1K > _1J.length) { //#299 + $j -= 5; //#299 + $k[$j++] = 'bwipp.GS1alphaTooLong'; //#299 + $k[$j++] = "Alphanumeric string is too long to check"; //#299 + $k[$j++] = false; //#299 + return true; //#299 + } //#299 + var _1L = $k[--$j]; //#300 + var _1N = $geti($k[--$j], 0, _1L); //#300 + for (var _1O = 0, _1P = _1N.length; _1O < _1P; _1O++) { //#300 + var _1R = $k[--$j]; //#300 + $k[$j++] = $get(_1N, _1O); //#300 + $k[$j++] = _1R; //#300 + } //#300 + var _1S = $k[--$j]; //#301 + $k[$j++] = 0; //#301 + $forall(_1S, function() { //#301 + var _1T = $k[--$j]; //#301 + var _1U = $k[--$j]; //#301 + var _1V = $k[--$j]; //#301 + $k[$j++] = $f(_1U + (_1V * _1T)); //#301 + }); //#301 + var _1W = $k[--$j]; //#301 + if ($k[--$j] != (_1W % 1021)) { //#302 + $j--; //#302 + $k[$j++] = 'bwipp.GS1badAlphaCheckCharacters'; //#302 + $k[$j++] = "Bad alphanumeric check characters"; //#302 + $k[$j++] = false; //#302 + return true; //#302 + } //#302 + }; //#303 + $k[$j++] = Infinity; //#324 + var _1Y = $a(['004', '008', '010', '012', '016', '020', '024', '028', '031', '032', '036', '040', '044', '048', '050', '051', '052', '056', '060', '064', '068', '070', '072', '074', '076', '084', '086', '090', '092', '096', '100', '104', '108', '112', '116', '120', '124', '132', '136', '140', '144', '148', '152', '156', '158', '162', '166', '170', '174', '175', '178', '180', '184', '188', '191', '192', '196', '203', '204', '208', '212', '214', '218', '222', '226', '231', '232', '233', '234', '238', '239', '242', '246', '248', '250', '254', '258', '260', '262', '266', '268', '270', '275', '276', '288', '292', '296', '300', '304', '308', '312', '316', '320', '324', '328', '332', '334', '336', '340', '344', '348', '352', '356', '360', '364', '368', '372', '376', '380', '384', '388', '392', '398', '400', '404', '408', '410', '414', '417', '418', '422', '426', '428', '430', '434', '438', '440', '442', '446', '450', '454', '458', '462', '466', '470', '474', '478', '480', '484', '492', '496', '498', '499', '500', '504', '508', '512', '516', '520', '524', '528', '531', '533', '534', '535', '540', '548', '554', '558', '562', '566', '570', '574', '578', '580', '581', '583', '584', '585', '586', '591', '598', '600', '604', '608', '612', '616', '620', '624', '626', '630', '634', '638', '642', '643', '646', '652', '654', '659', '660', '662', '663', '666', '670', '674', '678', '682', '686', '688', '690', '694', '702', '703', '704', '705', '706', '710', '716', '724', '728', '729', '732', '740', '744', '748', '752', '756', '760', '762', '764', '768', '772', '776', '780', '784', '788', '792', '795', '796', '798', '800', '804', '807', '818', '826', '831', '832', '833', '834', '840', '850', '854', '858', '860', '862', '876', '882', '887', '894']); //#323 + for (var _1Z = 0, _1a = _1Y.length; _1Z < _1a; _1Z++) { //#324 + var _1b = $get(_1Y, _1Z); //#324 + $k[$j++] = _1b; //#324 + $k[$j++] = _1b; //#324 + } //#324 + $1.iso3166 = $d(); //#324 $1.lintiso3166 = function() { - var _1f = $get($1.iso3166, $k[--$j]) !== undefined; - if (!_1f) { - $j--; - $k[$j++] = "bwipp.GS1UnknownCountry"; - $k[$j++] = "Unknown country code"; - $k[$j++] = false; - return true; - } - }; + var _1f = $get($1.iso3166, $k[--$j]) !== undefined; //#327 + if (!_1f) { //#327 + $j--; //#327 + $k[$j++] = 'bwipp.GS1UnknownCountry'; //#327 + $k[$j++] = "Unknown country code"; //#327 + $k[$j++] = false; //#327 + return true; //#327 + } //#327 + }; //#328 $1.lintiso3166999 = function() { - var _1g = $k[--$j]; - $k[$j++] = _1g; - if ($ne(_1g, "999")) { - var _1j = $get($1.iso3166, $k[--$j]) !== undefined; - if (!_1j) { - $j--; - $k[$j++] = "bwipp.GS1UnknownCountryOr999"; - $k[$j++] = "Unknown country code or not 999"; - $k[$j++] = false; - return true; - } - } else { - $j--; - } - }; + var _1g = $k[--$j]; //#331 + $k[$j++] = _1g; //#335 + if ($ne(_1g, '999')) { //#334 + var _1j = $get($1.iso3166, $k[--$j]) !== undefined; //#332 + if (!_1j) { //#332 + $j--; //#332 + $k[$j++] = 'bwipp.GS1UnknownCountryOr999'; //#332 + $k[$j++] = "Unknown country code or not 999"; //#332 + $k[$j++] = false; //#332 + return true; //#332 + } //#332 + } else { //#334 + $j--; //#334 + } //#334 + }; //#336 $1.lintiso3166list = function() { - var _1k = $k[--$j]; - $k[$j++] = _1k; - if (_1k.length % 3 != 0) { - $j -= 2; - $k[$j++] = "bwipp.GS1BadCountryListLength"; - $k[$j++] = "Not a group of three-digit country codes"; - $k[$j++] = false; - return true; - } - var _1l = $k[--$j]; - $k[$j++] = _1l; - $k[$j++] = true; - for (var _1n = 0, _1m = _1l.length - 1; _1n <= _1m; _1n += 3) { - var _1o = $k[--$j]; - var _1p = $k[--$j]; - var _1s = $get($1.iso3166, $geti(_1p, _1n, 3)) !== undefined; - $k[$j++] = _1p; - $k[$j++] = _1o; - if (!_1s) { - $j -= 2; - $k[$j++] = false; - break; - } - } - if ($nt($k[--$j])) { - $j--; - $k[$j++] = "bwipp.GS1UnknownCountry"; - $k[$j++] = "Unknown country code"; - $k[$j++] = false; - return true; - } - $j--; - }; - $k[$j++] = Infinity; - var _1u = $a([ "AD", "AE", "AF", "AG", "AI", "AL", "AM", "AO", "AQ", "AR", "AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GS", "GT", "GU", "GW", "GY", "HK", "HM", "HN", "HR", "HT", "HU", "ID", "IE", "IL", "IM", "IN", "IO", "IQ", "IR", "IS", "IT", "JE", "JM", "JO", "JP", "KE", "KG", "KH", "KI", "KM", "KN", "KP", "KR", "KW", "KY", "KZ", "LA", "LB", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MF", "MG", "MH", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MS", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PE", "PF", "PG", "PH", "PK", "PL", "PM", "PN", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RS", "RU", "RW", "SA", "SB", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "SS", "ST", "SV", "SX", "SY", "SZ", "TC", "TD", "TF", "TG", "TH", "TJ", "TK", "TL", "TM", "TN", "TO", "TR", "TT", "TV", "TW", "TZ", "UA", "UG", "UM", "US", "UY", "UZ", "VA", "VC", "VE", "VG", "VI", "VN", "VU", "WF", "WS", "YE", "YT", "ZA", "ZM", "ZW" ]); - for (var _1v = 0, _1w = _1u.length; _1v < _1w; _1v++) { - var _1x = $get(_1u, _1v); - $k[$j++] = _1x; - $k[$j++] = _1x; - } - $1.iso3166alpha2 = $d(); + var _1k = $k[--$j]; //#339 + $k[$j++] = _1k; //#341 + if ((_1k.length % 3) != 0) { //#341 + $j -= 2; //#340 + $k[$j++] = 'bwipp.GS1BadCountryListLength'; //#340 + $k[$j++] = "Not a group of three-digit country codes"; //#340 + $k[$j++] = false; //#340 + return true; //#340 + } //#340 + var _1l = $k[--$j]; //#343 + $k[$j++] = _1l; //#346 + $k[$j++] = true; //#346 + for (var _1n = 0, _1m = _1l.length - 1; _1n <= _1m; _1n += 3) { //#346 + var _1o = $k[--$j]; //#344 + var _1p = $k[--$j]; //#344 + var _1s = $get($1.iso3166, $geti(_1p, _1n, 3)) !== undefined; //#345 + $k[$j++] = _1p; //#345 + $k[$j++] = _1o; //#345 + if (!_1s) { //#345 + $j -= 2; //#345 + $k[$j++] = false; //#345 + break; //#345 + } //#345 + } //#345 + if ($nt($k[--$j])) { //#347 + $j--; //#347 + $k[$j++] = 'bwipp.GS1UnknownCountry'; //#347 + $k[$j++] = "Unknown country code"; //#347 + $k[$j++] = false; //#347 + return true; //#347 + } //#347 + $j--; //#348 + }; //#349 + $k[$j++] = Infinity; //#376 + var _1u = $a(['AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AQ', 'AR', 'AS', 'AT', 'AU', 'AW', 'AX', 'AZ', 'BA', 'BB', 'BD', 'BE', 'BF', 'BG', 'BH', 'BI', 'BJ', 'BL', 'BM', 'BN', 'BO', 'BQ', 'BR', 'BS', 'BT', 'BV', 'BW', 'BY', 'BZ', 'CA', 'CC', 'CD', 'CF', 'CG', 'CH', 'CI', 'CK', 'CL', 'CM', 'CN', 'CO', 'CR', 'CU', 'CV', 'CW', 'CX', 'CY', 'CZ', 'DE', 'DJ', 'DK', 'DM', 'DO', 'DZ', 'EC', 'EE', 'EG', 'EH', 'ER', 'ES', 'ET', 'FI', 'FJ', 'FK', 'FM', 'FO', 'FR', 'GA', 'GB', 'GD', 'GE', 'GF', 'GG', 'GH', 'GI', 'GL', 'GM', 'GN', 'GP', 'GQ', 'GR', 'GS', 'GT', 'GU', 'GW', 'GY', 'HK', 'HM', 'HN', 'HR', 'HT', 'HU', 'ID', 'IE', 'IL', 'IM', 'IN', 'IO', 'IQ', 'IR', 'IS', 'IT', 'JE', 'JM', 'JO', 'JP', 'KE', 'KG', 'KH', 'KI', 'KM', 'KN', 'KP', 'KR', 'KW', 'KY', 'KZ', 'LA', 'LB', 'LC', 'LI', 'LK', 'LR', 'LS', 'LT', 'LU', 'LV', 'LY', 'MA', 'MC', 'MD', 'ME', 'MF', 'MG', 'MH', 'MK', 'ML', 'MM', 'MN', 'MO', 'MP', 'MQ', 'MR', 'MS', 'MT', 'MU', 'MV', 'MW', 'MX', 'MY', 'MZ', 'NA', 'NC', 'NE', 'NF', 'NG', 'NI', 'NL', 'NO', 'NP', 'NR', 'NU', 'NZ', 'OM', 'PA', 'PE', 'PF', 'PG', 'PH', 'PK', 'PL', 'PM', 'PN', 'PR', 'PS', 'PT', 'PW', 'PY', 'QA', 'RE', 'RO', 'RS', 'RU', 'RW', 'SA', 'SB', 'SC', 'SD', 'SE', 'SG', 'SH', 'SI', 'SJ', 'SK', 'SL', 'SM', 'SN', 'SO', 'SR', 'SS', 'ST', 'SV', 'SX', 'SY', 'SZ', 'TC', 'TD', 'TF', 'TG', 'TH', 'TJ', 'TK', 'TL', 'TM', 'TN', 'TO', 'TR', 'TT', 'TV', 'TW', 'TZ', 'UA', 'UG', 'UM', 'US', 'UY', 'UZ', 'VA', 'VC', 'VE', 'VG', 'VI', 'VN', 'VU', 'WF', 'WS', 'YE', 'YT', 'ZA', 'ZM', 'ZW']); //#375 + for (var _1v = 0, _1w = _1u.length; _1v < _1w; _1v++) { //#376 + var _1x = $get(_1u, _1v); //#376 + $k[$j++] = _1x; //#376 + $k[$j++] = _1x; //#376 + } //#376 + $1.iso3166alpha2 = $d(); //#376 $1.lintiso3166alpha2 = function() { - var _21 = $get($1.iso3166alpha2, $k[--$j]) !== undefined; - if (!_21) { - $j--; - $k[$j++] = "bwipp.GS1UnknownCountryAlpha"; - $k[$j++] = "Unknown country alpha code"; - $k[$j++] = false; - return true; - } - }; - $k[$j++] = Infinity; - var _22 = $a([ "008", "012", "032", "036", "044", "048", "050", "051", "052", "060", "064", "068", "072", "084", "090", "096", "104", "108", "116", "124", "132", "136", "144", "152", "156", "170", "174", "188", "191", "192", "203", "208", "214", "222", "230", "232", "238", "242", "262", "270", "292", "320", "324", "328", "332", "340", "344", "348", "352", "356", "360", "364", "368", "376", "388", "392", "398", "400", "404", "408", "410", "414", "417", "418", "422", "426", "430", "434", "446", "454", "458", "462", "480", "484", "496", "498", "504", "512", "516", "524", "532", "533", "548", "554", "558", "566", "578", "586", "590", "598", "600", "604", "608", "634", "643", "646", "654", "682", "690", "694", "702", "704", "706", "710", "728", "748", "752", "756", "760", "764", "776", "780", "784", "788", "800", "807", "818", "826", "834", "840", "858", "860", "882", "886", "901", "927", "928", "929", "930", "931", "932", "933", "934", "936", "938", "940", "941", "943", "944", "946", "947", "948", "949", "950", "951", "952", "953", "955", "956", "957", "958", "959", "960", "961", "962", "963", "964", "965", "967", "968", "969", "970", "971", "972", "973", "975", "976", "977", "978", "979", "980", "981", "984", "985", "986", "990", "994", "997", "999" ]); - for (var _23 = 0, _24 = _22.length; _23 < _24; _23++) { - var _25 = $get(_22, _23); - $k[$j++] = _25; - $k[$j++] = _25; - } - $1.iso4217 = $d(); + var _21 = $get($1.iso3166alpha2, $k[--$j]) !== undefined; //#379 + if (!_21) { //#379 + $j--; //#379 + $k[$j++] = 'bwipp.GS1UnknownCountryAlpha'; //#379 + $k[$j++] = "Unknown country alpha code"; //#379 + $k[$j++] = false; //#379 + return true; //#379 + } //#379 + }; //#380 + $k[$j++] = Infinity; //#405 + var _22 = $a(['008', '012', '032', '036', '044', '048', '050', '051', '052', '060', '064', '068', '072', '084', '090', '096', '104', '108', '116', '124', '132', '136', '144', '152', '156', '170', '174', '188', '191', '192', '203', '208', '214', '222', '230', '232', '238', '242', '262', '270', '292', '320', '324', '328', '332', '340', '344', '348', '352', '356', '360', '364', '368', '376', '388', '392', '398', '400', '404', '408', '410', '414', '417', '418', '422', '426', '430', '434', '446', '454', '458', '462', '480', '484', '496', '498', '504', '512', '516', '524', '532', '533', '548', '554', '558', '566', '578', '586', '590', '598', '600', '604', '608', '634', '643', '646', '654', '682', '690', '694', '702', '704', '706', '710', '728', '748', '752', '756', '760', '764', '776', '780', '784', '788', '800', '807', '818', '826', '834', '840', '858', '860', '882', '886', '901', '927', '928', '929', '930', '931', '932', '933', '934', '936', '938', '940', '941', '943', '944', '946', '947', '948', '949', '950', '951', '952', '953', '955', '956', '957', '958', '959', '960', '961', '962', '963', '964', '965', '967', '968', '969', '970', '971', '972', '973', '975', '976', '977', '978', '979', '980', '981', '984', '985', '986', '990', '994', '997', '999']); //#404 + for (var _23 = 0, _24 = _22.length; _23 < _24; _23++) { //#405 + var _25 = $get(_22, _23); //#405 + $k[$j++] = _25; //#405 + $k[$j++] = _25; //#405 + } //#405 + $1.iso4217 = $d(); //#405 $1.lintiso4217 = function() { - var _29 = $get($1.iso4217, $k[--$j]) !== undefined; - if (!_29) { - $j--; - $k[$j++] = "bwipp.GS1UnknownCurrency"; - $k[$j++] = "Unknown currency code"; - $k[$j++] = false; - return true; - } - }; + var _29 = $get($1.iso4217, $k[--$j]) !== undefined; //#408 + if (!_29) { //#408 + $j--; //#408 + $k[$j++] = 'bwipp.GS1UnknownCurrency'; //#408 + $k[$j++] = "Unknown currency code"; //#408 + $k[$j++] = false; //#408 + return true; //#408 + } //#408 + }; //#409 $1.lintiban = function() { - var _2A = $k[--$j]; - $k[$j++] = _2A; - if (_2A.length < 4) { - $j -= 2; - $k[$j++] = "bwipp.GS1tooShort"; - $k[$j++] = "IBAN too short"; - $k[$j++] = false; - return true; - } - var _2B = $k[--$j]; - $k[$j++] = _2B; - $k[$j++] = true; - $forall(_2B, function() { - var _2C = $s(1); - $put(_2C, 0, $k[--$j]); - $search("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", _2C); - if ($nt($k[--$j])) { - $j -= 2; - $k[$j++] = false; - return true; - } - $j -= 3; - }); - if ($nt($k[--$j])) { - $j--; - $k[$j++] = "bwipp.GS1badIBANcharacter"; - $k[$j++] = "Invalid IBAN character"; - $k[$j++] = false; - return true; - } - var _2G = $k[--$j]; - $k[$j++] = _2G; - $k[$j++] = Infinity; - $k[$j++] = _2G; - $k[$j++] = Infinity; - var _2J = $k[--$j]; - var _2K = $k[--$j]; - $k[$j++] = _2J; - $forall(_2K); - $r($counttomark(), -4); - $astore($a($counttomark())); - var _2O = $k[--$j]; - var _2P = $k[--$j]; - $k[$j++] = _2O; - $k[$j++] = _2P; - $j--; - $forall($k[--$j], function() { - var _2S = $f($k[--$j] - 48); - $k[$j++] = _2S; - if (_2S > 9) { - var _2U = $f($k[--$j] - 7); - $k[$j++] = ~~(_2U / 10); - $k[$j++] = _2U % 10; - } - }); - $astore($a($counttomark())); - var _2X = $k[--$j]; - var _2Y = $k[--$j]; - $k[$j++] = _2X; - $k[$j++] = _2Y; - $j--; - var _2Z = $k[--$j]; - $k[$j++] = 0; - $forall(_2Z, function() { - var _2a = $k[--$j]; - var _2b = $k[--$j]; - $k[$j++] = $f(_2a + _2b * 10) % 97; - }); - if ($k[--$j] != 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1badIBANchecksum"; - $k[$j++] = "IBAN checksum incorrect"; - $k[$j++] = false; - return true; - } - var _2e = $geti($k[--$j], 0, 2); - $k[$j++] = _2e; - $1.lintiso3166alpha2(); - }; + var _2A = $k[--$j]; //#412 + $k[$j++] = _2A; //#412 + if (_2A.length < 4) { //#412 + $j -= 2; //#412 + $k[$j++] = 'bwipp.GS1tooShort'; //#412 + $k[$j++] = "IBAN too short"; //#412 + $k[$j++] = false; //#412 + return true; //#412 + } //#412 + var _2B = $k[--$j]; //#413 + $k[$j++] = _2B; //#418 + $k[$j++] = true; //#418 + $forall(_2B, function() { //#418 + var _2C = $s(1); //#414 + $put(_2C, 0, $k[--$j]); //#414 + $search("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ", _2C); //#416 + if ($nt($k[--$j])) { //#416 + $j -= 2; //#416 + $k[$j++] = false; //#416 + return true; //#416 + } //#416 + $j -= 3; //#417 + }); //#417 + if ($nt($k[--$j])) { //#419 + $j--; //#419 + $k[$j++] = 'bwipp.GS1badIBANcharacter'; //#419 + $k[$j++] = "Invalid IBAN character"; //#419 + $k[$j++] = false; //#419 + return true; //#419 + } //#419 + var _2G = $k[--$j]; //#420 + $k[$j++] = _2G; //#420 + $k[$j++] = _2G; //#420 + $k[$j++] = Infinity; //#420 + var _2H = $k[--$j]; //#420 + var _2I = $k[--$j]; //#420 + $k[$j++] = _2H; //#420 + $k[$j++] = _2I; //#420 + $k[$j++] = Infinity; //#420 + var _2J = $k[--$j]; //#420 + var _2K = $k[--$j]; //#420 + $k[$j++] = _2J; //#420 + $forall(_2K); //#420 + $r($counttomark(), -4); //#420 + $astore($a($counttomark())); //#420 + var _2O = $k[--$j]; //#420 + var _2P = $k[--$j]; //#420 + $k[$j++] = _2O; //#420 + $k[$j++] = _2P; //#420 + $j--; //#420 + $forall($k[--$j], function() { //#422 + var _2S = $f($k[--$j] - 48); //#421 + $k[$j++] = _2S; //#421 + if (_2S > 9) { //#421 + var _2U = $f($k[--$j] - 7); //#421 + $k[$j++] = ~~(_2U / 10); //#421 + $k[$j++] = _2U % 10; //#421 + } //#421 + }); //#421 + $astore($a($counttomark())); //#422 + var _2X = $k[--$j]; //#422 + var _2Y = $k[--$j]; //#422 + $k[$j++] = _2X; //#422 + $k[$j++] = _2Y; //#422 + $j--; //#422 + var _2Z = $k[--$j]; //#423 + $k[$j++] = 0; //#423 + $forall(_2Z, function() { //#423 + var _2a = $k[--$j]; //#423 + var _2b = $k[--$j]; //#423 + $k[$j++] = ($f(_2a + (_2b * 10))) % 97; //#423 + }); //#423 + if ($k[--$j] != 1) { //#424 + $j -= 2; //#424 + $k[$j++] = 'bwipp.GS1badIBANchecksum'; //#424 + $k[$j++] = "IBAN checksum incorrect"; //#424 + $k[$j++] = false; //#424 + return true; //#424 + } //#424 + var _2e = $geti($k[--$j], 0, 2); //#425 + $k[$j++] = _2e; //#425 + $1.lintiso3166alpha2(); //#425 + }; //#426 $1.lintzero = function() { - if ($ne($k[--$j], "0")) { - $j--; - $k[$j++] = "bwipp.GS1zeroRequired"; - $k[$j++] = "Zero is required"; - $k[$j++] = false; - return true; - } - }; + if ($ne($k[--$j], "0")) { //#429 + $j--; //#429 + $k[$j++] = 'bwipp.GS1zeroRequired'; //#429 + $k[$j++] = "Zero is required"; //#429 + $k[$j++] = false; //#429 + return true; //#429 + } //#429 + }; //#430 $1.lintnonzero = function() { - var _2g = $k[--$j]; - $k[$j++] = false; - $forall(_2g, function() { - if ($k[--$j] != 48) { - $j--; - $k[$j++] = true; - } - }); - if ($nt($k[--$j])) { - $j--; - $k[$j++] = "bwipp.GS1zeroNotPermitted"; - $k[$j++] = "Zero not permitted"; - $k[$j++] = false; - return true; - } - }; + var _2g = $k[--$j]; //#433 + $k[$j++] = false; //#433 + $forall(_2g, function() { //#433 + if ($k[--$j] != 48) { //#433 + $j--; //#433 + $k[$j++] = true; //#433 + } //#433 + }); //#433 + if ($nt($k[--$j])) { //#434 + $j--; //#434 + $k[$j++] = 'bwipp.GS1zeroNotPermitted'; //#434 + $k[$j++] = "Zero not permitted"; //#434 + $k[$j++] = false; //#434 + return true; //#434 + } //#434 + }; //#435 $1.lintnozeroprefix = function() { - var _2j = $k[--$j]; - if (_2j.length > 1 && $get(_2j, 0) == 48) { - $j--; - $k[$j++] = "bwipp.GS1badZeroPrefix"; - $k[$j++] = "Zero prefix is not permitted"; - $k[$j++] = false; - return true; - } - }; + var _2j = $k[--$j]; //#438 + if ((_2j.length > 1) && ($get(_2j, 0) == 48)) { //#440 + $j--; //#439 + $k[$j++] = 'bwipp.GS1badZeroPrefix'; //#439 + $k[$j++] = "Zero prefix is not permitted"; //#439 + $k[$j++] = false; //#439 + return true; //#439 + } //#439 + }; //#441 $1.lintyymmd0 = function() { - var _2l = $k[--$j]; - var _2n = ~~$z($geti(_2l, 2, 2)); - $k[$j++] = _2l; - if (_2n < 1 || _2n > 12) { - $j--; - $k[$j++] = "bwipp.GS1badMonth"; - $k[$j++] = "Invalid month"; - $k[$j++] = false; - return true; - } - var _2o = $k[--$j]; - var _2q = ~~$z($geti(_2o, 0, 2)); - var _2r = _2q - 21; - $k[$j++] = _2o; - $k[$j++] = _2q; - $k[$j++] = _2r; - if (_2r >= 51) { - $j--; - var _2s = $k[--$j]; - $k[$j++] = $f(_2s + 1900); - } else { - if ($k[--$j] <= -50) { - var _2u = $k[--$j]; - $k[$j++] = $f(_2u + 2100); - } else { - var _2v = $k[--$j]; - $k[$j++] = $f(_2v + 2e3); - } - } - var _2w = $k[--$j]; - $k[$j++] = _2w % 400 == 0 || _2w % 4 == 0 && _2w % 100 != 0; - $k[$j++] = Infinity; - var _2x = $k[--$j]; - var _2z = $k[--$j] ? 29 : 28; - $k[$j++] = _2x; - $k[$j++] = 31; - $k[$j++] = _2z; - $k[$j++] = 31; - $k[$j++] = 30; - $k[$j++] = 31; - $k[$j++] = 30; - $k[$j++] = 31; - $k[$j++] = 31; - $k[$j++] = 30; - $k[$j++] = 31; - $k[$j++] = 30; - $k[$j++] = 31; - var _30 = $a(); - var _31 = $k[--$j]; - if ($get(_30, ~~$z($geti(_31, 2, 2)) - 1) < ~~$z($geti(_31, 4, 2))) { - $j--; - $k[$j++] = "bwipp.GS1badDay"; - $k[$j++] = "Invalid day of month"; - $k[$j++] = false; - return true; - } - }; + var _2l = $k[--$j]; //#444 + var _2n = ~~$z($geti(_2l, 2, 2)); //#444 + $k[$j++] = _2l; //#444 + if ((_2n < 1) || (_2n > 12)) { //#444 + $j--; //#444 + $k[$j++] = 'bwipp.GS1badMonth'; //#444 + $k[$j++] = "Invalid month"; //#444 + $k[$j++] = false; //#444 + return true; //#444 + } //#444 + var _2o = $k[--$j]; //#445 + var _2q = ~~$z($geti(_2o, 0, 2)); //#445 + var _2r = _2q - 21; //#446 + $k[$j++] = _2o; //#446 + $k[$j++] = _2q; //#446 + $k[$j++] = _2r; //#446 + if (_2r >= 51) { //#446 + $j--; //#446 + var _2s = $k[--$j]; //#446 + $k[$j++] = $f(_2s + 1900); //#446 + } else { //#446 + if ($k[--$j] <= -50) { //#446 + var _2u = $k[--$j]; //#446 + $k[$j++] = $f(_2u + 2100); //#446 + } else { //#446 + var _2v = $k[--$j]; //#446 + $k[$j++] = $f(_2v + 2000); //#446 + } //#446 + } //#446 + var _2w = $k[--$j]; //#447 + $k[$j++] = ((_2w % 400) == 0) || (((_2w % 4) == 0) && ((_2w % 100) != 0)); //#448 + $k[$j++] = Infinity; //#448 + var _2x = $k[--$j]; //#448 + var _2z = $k[--$j] ? 29 : 28; //#448 + $k[$j++] = _2x; //#448 + $k[$j++] = 31; //#448 + $k[$j++] = _2z; //#448 + $k[$j++] = 31; //#448 + $k[$j++] = 30; //#448 + $k[$j++] = 31; //#448 + $k[$j++] = 30; //#448 + $k[$j++] = 31; //#448 + $k[$j++] = 31; //#448 + $k[$j++] = 30; //#448 + $k[$j++] = 31; //#448 + $k[$j++] = 30; //#448 + $k[$j++] = 31; //#448 + var _30 = $a(); //#448 + var _31 = $k[--$j]; //#449 + if ($get(_30, (~~$z($geti(_31, 2, 2))) - 1) < (~~$z($geti(_31, 4, 2)))) { //#450 + $j--; //#450 + $k[$j++] = 'bwipp.GS1badDay'; //#450 + $k[$j++] = "Invalid day of month"; //#450 + $k[$j++] = false; //#450 + return true; //#450 + } //#450 + }; //#451 $1.lintyymmdd = function() { - var _35 = $k[--$j]; - $k[$j++] = _35; - if (_35.length != 6) { - $j--; - $k[$j++] = "bwipp.GS1badDateLength"; - $k[$j++] = "Invalid length for date"; - $k[$j++] = false; - return true; - } - var _36 = $k[--$j]; - $k[$j++] = _36; - if (~~$z($geti(_36, 4, 2)) < 1) { - $j--; - $k[$j++] = "bwipp.GS1badDay"; - $k[$j++] = "Invalid day of month"; - $k[$j++] = false; - return true; - } - $1.lintyymmd0(); - }; + var _35 = $k[--$j]; //#454 + $k[$j++] = _35; //#454 + if (_35.length != 6) { //#454 + $j--; //#454 + $k[$j++] = 'bwipp.GS1badDateLength'; //#454 + $k[$j++] = "Invalid length for date"; //#454 + $k[$j++] = false; //#454 + return true; //#454 + } //#454 + var _36 = $k[--$j]; //#455 + $k[$j++] = _36; //#455 + if ((~~$z($geti(_36, 4, 2))) < 1) { //#455 + $j--; //#455 + $k[$j++] = 'bwipp.GS1badDay'; //#455 + $k[$j++] = "Invalid day of month"; //#455 + $k[$j++] = false; //#455 + return true; //#455 + } //#455 + $1.lintyymmd0(); //#456 + }; //#457 $1.lintyymmddhh = function() { - var _38 = $k[--$j]; - $k[$j++] = _38; - if (_38.length != 8) { - $j--; - $k[$j++] = "bwipp.GS1badYYMMDDHHLength"; - $k[$j++] = "Invalid length for date with hour"; - $k[$j++] = false; - return true; - } - var _39 = $k[--$j]; - $k[$j++] = _39; - if (~~$z($geti(_39, 6, 2)) > 23) { - $j -= 2; - $k[$j++] = "bwipp.GS1badHour"; - $k[$j++] = "Invalid hour of day"; - $k[$j++] = false; - return true; - } - var _3C = $geti($k[--$j], 0, 6); - $k[$j++] = _3C; - $1.lintyymmdd(); - }; + var _38 = $k[--$j]; //#460 + $k[$j++] = _38; //#460 + if (_38.length != 8) { //#460 + $j--; //#460 + $k[$j++] = 'bwipp.GS1badYYMMDDHHLength'; //#460 + $k[$j++] = "Invalid length for date with hour"; //#460 + $k[$j++] = false; //#460 + return true; //#460 + } //#460 + var _39 = $k[--$j]; //#461 + $k[$j++] = _39; //#461 + if ((~~$z($geti(_39, 6, 2))) > 23) { //#461 + $j -= 2; //#461 + $k[$j++] = 'bwipp.GS1badHour'; //#461 + $k[$j++] = "Invalid hour of day"; //#461 + $k[$j++] = false; //#461 + return true; //#461 + } //#461 + var _3C = $geti($k[--$j], 0, 6); //#462 + $k[$j++] = _3C; //#462 + $1.lintyymmdd(); //#462 + }; //#463 $1.linthhmm = function() { - var _3D = $k[--$j]; - $k[$j++] = _3D; - if (~~$z($geti(_3D, 0, 2)) > 23) { - $j -= 2; - $k[$j++] = "bwipp.GS1badHour"; - $k[$j++] = "Invalid hour of day"; - $k[$j++] = false; - return true; - } - if (~~$z($geti($k[--$j], 2, 2)) > 59) { - $j--; - $k[$j++] = "bwipp.GS1badMinute"; - $k[$j++] = "Invalid minute in the hour"; - $k[$j++] = false; - return true; - } - }; + var _3D = $k[--$j]; //#466 + $k[$j++] = _3D; //#466 + if ((~~$z($geti(_3D, 0, 2))) > 23) { //#466 + $j -= 2; //#466 + $k[$j++] = 'bwipp.GS1badHour'; //#466 + $k[$j++] = "Invalid hour of day"; //#466 + $k[$j++] = false; //#466 + return true; //#466 + } //#466 + if ((~~$z($geti($k[--$j], 2, 2))) > 59) { //#467 + $j--; //#467 + $k[$j++] = 'bwipp.GS1badMinute'; //#467 + $k[$j++] = "Invalid minute in the hour"; //#467 + $k[$j++] = false; //#467 + return true; //#467 + } //#467 + }; //#468 $1.lintmmoptss = function() { - var _3H = $k[--$j]; - var _3I = _3H.length; - $k[$j++] = _3H; - if (_3I != 2 && _3I != 4) { - $j--; - $k[$j++] = "bwipp.GS1badTimeLength"; - $k[$j++] = "Invalid length for optional minutes and seconds"; - $k[$j++] = false; - return true; - } - var _3J = $k[--$j]; - $k[$j++] = _3J; - if (~~$z($geti(_3J, 0, 2)) > 59) { - $j -= 2; - $k[$j++] = "bwipp.GS1badMinute"; - $k[$j++] = "Invalid minute in the hour"; - $k[$j++] = false; - return true; - } - var _3L = $k[--$j]; - $k[$j++] = _3L; - if (_3L.length >= 4) { - var _3M = $k[--$j]; - $k[$j++] = _3M; - if (~~$z($geti(_3M, 2, 2)) > 59) { - $j -= 2; - $k[$j++] = "bwipp.GS1badSecond"; - $k[$j++] = "Invalid second in the minute"; - $k[$j++] = false; - return true; - } - } - $j--; - }; + var _3H = $k[--$j]; //#471 + var _3I = _3H.length; //#471 + $k[$j++] = _3H; //#473 + if ((_3I != 2) && (_3I != 4)) { //#473 + $j--; //#472 + $k[$j++] = 'bwipp.GS1badTimeLength'; //#472 + $k[$j++] = "Invalid length for optional minutes and seconds"; //#472 + $k[$j++] = false; //#472 + return true; //#472 + } //#472 + var _3J = $k[--$j]; //#474 + $k[$j++] = _3J; //#474 + if ((~~$z($geti(_3J, 0, 2))) > 59) { //#474 + $j -= 2; //#474 + $k[$j++] = 'bwipp.GS1badMinute'; //#474 + $k[$j++] = "Invalid minute in the hour"; //#474 + $k[$j++] = false; //#474 + return true; //#474 + } //#474 + var _3L = $k[--$j]; //#475 + $k[$j++] = _3L; //#477 + if (_3L.length >= 4) { //#477 + var _3M = $k[--$j]; //#476 + $k[$j++] = _3M; //#476 + if ((~~$z($geti(_3M, 2, 2))) > 59) { //#476 + $j -= 2; //#476 + $k[$j++] = 'bwipp.GS1badSecond'; //#476 + $k[$j++] = "Invalid second in the minute"; //#476 + $k[$j++] = false; //#476 + return true; //#476 + } //#476 + } //#476 + $j--; //#478 + }; //#479 $1.lintyesno = function() { - var _3O = $k[--$j]; - if ($ne(_3O, "0") && $ne(_3O, "1")) { - $j--; - $k[$j++] = "bwipp.GS1badBoolean"; - $k[$j++] = "Neither 0 nor 1 for yes or no"; - $k[$j++] = false; - return true; - } - }; + var _3O = $k[--$j]; //#482 + if ($ne(_3O, "0") && $ne(_3O, "1")) { //#484 + $j--; //#483 + $k[$j++] = 'bwipp.GS1badBoolean'; //#483 + $k[$j++] = "Neither 0 nor 1 for yes or no"; //#483 + $k[$j++] = false; //#483 + return true; //#483 + } //#483 + }; //#485 $1.lintwinding = function() { - var _3P = $k[--$j]; - if ($ne(_3P, "0") && ($ne(_3P, "1") && $ne(_3P, "9"))) { - $j--; - $k[$j++] = "bwipp.GS1badWinding"; - $k[$j++] = "Invalid winding direction"; - $k[$j++] = false; - return true; - } - }; + var _3P = $k[--$j]; //#488 + if ($ne(_3P, "0") && ($ne(_3P, "1") && $ne(_3P, "9"))) { //#490 + $j--; //#489 + $k[$j++] = 'bwipp.GS1badWinding'; //#489 + $k[$j++] = "Invalid winding direction"; //#489 + $k[$j++] = false; //#489 + return true; //#489 + } //#489 + }; //#491 $1.lintpieceoftotal = function() { - var _3Q = $k[--$j]; - $k[$j++] = _3Q; - if (_3Q.length % 2 != 0) { - $j -= 2; - $k[$j++] = "bwipp.GS1badPieceTotalLength"; - $k[$j++] = "Invalid piece/total length"; - $k[$j++] = false; - return true; - } - var _3R = $k[--$j]; - var _3T = ~~$z($geti(_3R, 0, ~~(_3R.length / 2))); - $k[$j++] = _3R; - $k[$j++] = _3T; - if (_3T == 0) { - $j -= 3; - $k[$j++] = "bwipp.GS1badPieceNumber"; - $k[$j++] = "Invalid piece number"; - $k[$j++] = false; - return true; - } - var _3U = $k[--$j]; - var _3V = $k[--$j]; - var _3W = ~~(_3V.length / 2); - var _3Y = ~~$z($geti(_3V, _3W, _3W)); - $k[$j++] = _3U; - $k[$j++] = _3Y; - if (_3Y == 0) { - $j -= 3; - $k[$j++] = "bwipp.GS1badPieceTotal"; - $k[$j++] = "Invalid total number"; - $k[$j++] = false; - return true; - } - var _3Z = $k[--$j]; - if ($gt($k[--$j], _3Z)) { - $j--; - $k[$j++] = "bwipp.GS1pieceExceedsTotal"; - $k[$j++] = "Piece number exceeds total"; - $k[$j++] = false; - return true; - } - }; + var _3Q = $k[--$j]; //#494 + $k[$j++] = _3Q; //#494 + if ((_3Q.length % 2) != 0) { //#494 + $j -= 2; //#494 + $k[$j++] = 'bwipp.GS1badPieceTotalLength'; //#494 + $k[$j++] = "Invalid piece/total length"; //#494 + $k[$j++] = false; //#494 + return true; //#494 + } //#494 + var _3R = $k[--$j]; //#495 + var _3T = ~~$z($geti(_3R, 0, ~~(_3R.length / 2))); //#496 + $k[$j++] = _3R; //#496 + $k[$j++] = _3T; //#496 + if (_3T == 0) { //#496 + $j -= 3; //#496 + $k[$j++] = 'bwipp.GS1badPieceNumber'; //#496 + $k[$j++] = "Invalid piece number"; //#496 + $k[$j++] = false; //#496 + return true; //#496 + } //#496 + var _3U = $k[--$j]; //#497 + var _3V = $k[--$j]; //#497 + var _3W = ~~(_3V.length / 2); //#497 + var _3Y = ~~$z($geti(_3V, _3W, _3W)); //#498 + $k[$j++] = _3U; //#498 + $k[$j++] = _3Y; //#498 + if (_3Y == 0) { //#498 + $j -= 3; //#498 + $k[$j++] = 'bwipp.GS1badPieceTotal'; //#498 + $k[$j++] = "Invalid total number"; //#498 + $k[$j++] = false; //#498 + return true; //#498 + } //#498 + var _3Z = $k[--$j]; //#499 + if ($gt($k[--$j], _3Z)) { //#499 + $j--; //#499 + $k[$j++] = 'bwipp.GS1pieceExceedsTotal'; //#499 + $k[$j++] = "Piece number exceeds total"; //#499 + $k[$j++] = false; //#499 + return true; //#499 + } //#499 + }; //#500 $1.lintpcenc = function() { - for (;;) { - $search($k[--$j], "%"); - if ($nt($k[--$j])) { - $j--; - break; - } - $j -= 2; - var _3d = $k[--$j]; - $k[$j++] = _3d; - if (_3d.length < 2) { - $j -= 2; - $k[$j++] = "bwipp.GS1badPercentEscape"; - $k[$j++] = "Invalid % escape"; - $k[$j++] = false; - break; - } - var _3e = $k[--$j]; - var _3f = $geti(_3e, 0, 2); - $k[$j++] = _3e; - $k[$j++] = true; - for (var _3g = 0, _3h = _3f.length; _3g < _3h; _3g++) { - var _3j = $s(1); - $put(_3j, 0, $get(_3f, _3g)); - $search("0123456789ABCDEFabcdef", _3j); - if ($nt($k[--$j])) { - $j -= 2; - $k[$j++] = false; - return true; - } - $j -= 3; - } - if ($nt($k[--$j])) { - $j -= 2; - $k[$j++] = "bwipp.GS1badPercentChars"; - $k[$j++] = "Invalid characters for percent encoding"; - $k[$j++] = false; - break; - } - } - }; + for (;;) { //#513 + $search($k[--$j], "%"); //#504 + if ($nt($k[--$j])) { //#504 + $j--; //#504 + break; //#504 + } //#504 + $j -= 2; //#505 + var _3d = $k[--$j]; //#505 + $k[$j++] = _3d; //#505 + if (_3d.length < 2) { //#505 + $j -= 2; //#505 + $k[$j++] = 'bwipp.GS1badPercentEscape'; //#505 + $k[$j++] = "Invalid % escape"; //#505 + $k[$j++] = false; //#505 + break; //#505 + } //#505 + var _3e = $k[--$j]; //#506 + var _3f = $geti(_3e, 0, 2); //#506 + $k[$j++] = _3e; //#511 + $k[$j++] = true; //#511 + for (var _3g = 0, _3h = _3f.length; _3g < _3h; _3g++) { //#511 + var _3j = $s(1); //#507 + $put(_3j, 0, $get(_3f, _3g)); //#507 + $search("0123456789ABCDEFabcdef", _3j); //#509 + if ($nt($k[--$j])) { //#509 + $j -= 2; //#509 + $k[$j++] = false; //#509 + return true; //#509 + } //#509 + $j -= 3; //#510 + } //#510 + if ($nt($k[--$j])) { //#512 + $j -= 2; //#512 + $k[$j++] = 'bwipp.GS1badPercentChars'; //#512 + $k[$j++] = "Invalid characters for percent encoding"; //#512 + $k[$j++] = false; //#512 + break; //#512 + } //#512 + } //#512 + }; //#514 $1.lintcouponcode = function() { - var _3m = $k[--$j]; - $k[$j++] = _3m; - $k[$j++] = true; - $forall(_3m, function() { - var _3n = $k[--$j]; - if (_3n < 48 || _3n > 57) { - $j--; - $k[$j++] = false; - return true; - } - }); - if ($nt($k[--$j])) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponNotNumeric"; - $k[$j++] = "Coupon not numeric"; - $k[$j++] = false; - return true; - } - var _3p = $k[--$j]; - $k[$j++] = _3p; - if (_3p.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortGCPVLI"; - $k[$j++] = "Coupon too short: Missing GCP VLI"; - $k[$j++] = false; - return true; - } - var _3q = $k[--$j]; - var _3s = ~~$z($geti(_3q, 0, 1)); - $k[$j++] = _3q; - $k[$j++] = _3s; - if (_3s > 6) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBadGCPVLI"; - $k[$j++] = "Coupon GCP length indicator must be 0-6"; - $k[$j++] = false; - return true; - } - var _3t = $k[--$j]; - var _3u = $k[--$j]; - $k[$j++] = _3u; - $k[$j++] = $f($f(_3t + 6) + 1); - if ($f($f(_3t + 6) + 1) > _3u.length) { - $j -= 3; - $k[$j++] = "bwipp.GS1couponTooShortGCP"; - $k[$j++] = "Coupon too short: GCP truncated"; - $k[$j++] = false; - return true; - } - var _3v = $k[--$j]; - var _3w = $k[--$j]; - var _3x = $geti(_3w, _3v, $f(_3w.length - _3v)); - $k[$j++] = _3x; - if (_3x.length < 6) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortOfferCode"; - $k[$j++] = "Coupon too short: Offer Code truncated"; - $k[$j++] = false; - return true; - } - var _3y = $k[--$j]; - var _3z = $geti(_3y, 6, _3y.length - 6); - $k[$j++] = _3z; - if (_3z.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortSaveValueVLI"; - $k[$j++] = "Coupon too short: Missing Save Value VLI"; - $k[$j++] = false; - return true; - } - var _40 = $k[--$j]; - var _42 = ~~$z($geti(_40, 0, 1)); - $k[$j++] = _40; - $k[$j++] = _42; - if (_42 < 1 || _42 > 5) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBadSaveValueVLI"; - $k[$j++] = "Coupon Save Value length indicator must be 1-5"; - $k[$j++] = false; - return true; - } - var _43 = $k[--$j]; - var _44 = $k[--$j]; - $k[$j++] = _44; - $k[$j++] = $f(_43 + 1); - if ($f(_43 + 1) > _44.length) { - $j -= 3; - $k[$j++] = "bwipp.GS1couponTooShortSaveValue"; - $k[$j++] = "Coupon too short: Save Value truncated"; - $k[$j++] = false; - return true; - } - var _45 = $k[--$j]; - var _46 = $k[--$j]; - var _47 = $geti(_46, _45, $f(_46.length - _45)); - $k[$j++] = _47; - if (_47.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShort1stPurchaseRequirementVLI"; - $k[$j++] = "Coupon too short: Missing 1st Purchase Requirement VLI"; - $k[$j++] = false; - return true; - } - var _48 = $k[--$j]; - var _4A = ~~$z($geti(_48, 0, 1)); - $k[$j++] = _48; - $k[$j++] = _4A; - if (_4A < 1 || _4A > 5) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBad1stPurchaseRequirementVLI"; - $k[$j++] = "Coupon 1st Purchase Requirement length indicator must be 1-5"; - $k[$j++] = false; - return true; - } - var _4B = $k[--$j]; - var _4C = $k[--$j]; - $k[$j++] = _4C; - $k[$j++] = $f(_4B + 1); - if ($f(_4B + 1) > _4C.length) { - $j -= 3; - $k[$j++] = "bwipp.GS1couponTooShort1stPurchaseRequirement"; - $k[$j++] = "Coupon too short: 1st Purchase Requirement truncated"; - $k[$j++] = false; - return true; - } - var _4D = $k[--$j]; - var _4E = $k[--$j]; - var _4F = $geti(_4E, _4D, $f(_4E.length - _4D)); - $k[$j++] = _4F; - if (_4F.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShort1stPurchaseRequirementCode"; - $k[$j++] = "Coupon too short: Missing 1st Purchase Requirement Code"; - $k[$j++] = false; - return true; - } - var _4G = $k[--$j]; - var _4I = ~~$z($geti(_4G, 0, 1)); - $k[$j++] = _4G; - if (_4I > 4 && _4I != 9) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBad1stPurchaseRequirementCode"; - $k[$j++] = "Coupon 1st Purchase Requirement Code must be 0-4 or 9"; - $k[$j++] = false; - return true; - } - var _4J = $k[--$j]; - var _4K = $geti(_4J, 1, _4J.length - 1); - $k[$j++] = _4K; - if (_4K.length < 3) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShort1stPurchaseFamilyCode"; - $k[$j++] = "Coupon too short: 1st Purchase Family Code truncated"; - $k[$j++] = false; - return true; - } - var _4L = $k[--$j]; - var _4M = $geti(_4L, 3, _4L.length - 3); - $k[$j++] = _4M; - if (_4M.length >= 1) { - var _4N = $k[--$j]; - $k[$j++] = _4N; - if (~~$z($geti(_4N, 0, 1)) == 1) { - var _4P = $k[--$j]; - var _4Q = $geti(_4P, 1, _4P.length - 1); - $k[$j++] = _4Q; - if (_4Q.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortAdditionalPurchaseRulesCode"; - $k[$j++] = "Coupon too short: Missing Additional Purchase Rules Code"; - $k[$j++] = false; - return true; - } - var _4R = $k[--$j]; - $k[$j++] = _4R; - if (~~$z($geti(_4R, 0, 1)) > 3) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBadAdditionalPurchaseRulesCode"; - $k[$j++] = "Coupon Additional Purchase Rules Code must be 0-3"; - $k[$j++] = false; - return true; - } - var _4T = $k[--$j]; - var _4U = $geti(_4T, 1, _4T.length - 1); - $k[$j++] = _4U; - if (_4U.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShort2ndPurchaseRequirementVLI"; - $k[$j++] = "Coupon too short: Missing 2nd Purchase Requirement VLI"; - $k[$j++] = false; - return true; - } - var _4V = $k[--$j]; - var _4X = ~~$z($geti(_4V, 0, 1)); - $k[$j++] = _4V; - $k[$j++] = _4X; - if (_4X < 1 || _4X > 5) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBad2ndPurchaseRequirementVLI"; - $k[$j++] = "Coupon 2nd Purchase Requirement length indicator must be 1-5"; - $k[$j++] = false; - return true; - } - var _4Y = $k[--$j]; - var _4Z = $k[--$j]; - $k[$j++] = _4Z; - $k[$j++] = $f(_4Y + 1); - if ($f(_4Y + 1) > _4Z.length) { - $j -= 3; - $k[$j++] = "bwipp.GS1couponTooShort2ndPurchaseRequirement"; - $k[$j++] = "Coupon too short: 2nd Purchase Requirement truncated"; - $k[$j++] = false; - return true; - } - var _4a = $k[--$j]; - var _4b = $k[--$j]; - var _4c = $geti(_4b, _4a, $f(_4b.length - _4a)); - $k[$j++] = _4c; - if (_4c.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShort2ndPurchaseRequirementCode"; - $k[$j++] = "Coupon too short: Missing 2nd Purchase Requirement Code"; - $k[$j++] = false; - return true; - } - var _4d = $k[--$j]; - var _4f = ~~$z($geti(_4d, 0, 1)); - $k[$j++] = _4d; - if (_4f > 4 && _4f != 9) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBad2ndPurchaseRequirementCode"; - $k[$j++] = "Coupon 2nd Purchase Requirement Code must be 0-4 or 9"; - $k[$j++] = false; - return true; - } - var _4g = $k[--$j]; - var _4h = $geti(_4g, 1, _4g.length - 1); - $k[$j++] = _4h; - if (_4h.length < 3) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShort2ndPurchaseFamilyCode"; - $k[$j++] = "Coupon too short: 2nd Purchase Family Code truncated"; - $k[$j++] = false; + var _3m = $k[--$j]; //#517 + $k[$j++] = _3m; //#519 + $k[$j++] = true; //#519 + $forall(_3m, function() { //#519 + var _3n = $k[--$j]; //#518 + if ((_3n < 48) || (_3n > 57)) { //#518 + $j--; //#518 + $k[$j++] = false; //#518 + return true; //#518 + } //#518 + }); //#518 + if ($nt($k[--$j])) { //#520 + $j -= 2; //#520 + $k[$j++] = 'bwipp.GS1couponNotNumeric'; //#520 + $k[$j++] = "Coupon not numeric"; //#520 + $k[$j++] = false; //#520 + return true; //#520 + } //#520 + var _3p = $k[--$j]; //#523 + $k[$j++] = _3p; //#525 + if (_3p.length < 1) { //#525 + $j -= 2; //#524 + $k[$j++] = 'bwipp.GS1couponTooShortGCPVLI'; //#524 + $k[$j++] = "Coupon too short: Missing GCP VLI"; //#524 + $k[$j++] = false; //#524 + return true; //#524 + } //#524 + var _3q = $k[--$j]; //#526 + var _3s = ~~$z($geti(_3q, 0, 1)); //#526 + $k[$j++] = _3q; //#528 + $k[$j++] = _3s; //#528 + if (_3s > 6) { //#528 + $j -= 2; //#527 + $k[$j++] = 'bwipp.GS1couponBadGCPVLI'; //#527 + $k[$j++] = "Coupon GCP length indicator must be 0-6"; //#527 + $k[$j++] = false; //#527 + return true; //#527 + } //#527 + var _3t = $k[--$j]; //#529 + var _3u = $k[--$j]; //#530 + $k[$j++] = _3u; //#532 + $k[$j++] = $f($f(_3t + 6) + 1); //#532 + if (($f($f(_3t + 6) + 1)) > _3u.length) { //#532 + $j -= 3; //#531 + $k[$j++] = 'bwipp.GS1couponTooShortGCP'; //#531 + $k[$j++] = "Coupon too short: GCP truncated"; //#531 + $k[$j++] = false; //#531 + return true; //#531 + } //#531 + var _3v = $k[--$j]; //#533 + var _3w = $k[--$j]; //#533 + var _3x = $geti(_3w, _3v, $f(_3w.length - _3v)); //#533 + $k[$j++] = _3x; //#538 + if (_3x.length < 6) { //#538 + $j -= 2; //#537 + $k[$j++] = 'bwipp.GS1couponTooShortOfferCode'; //#537 + $k[$j++] = "Coupon too short: Offer Code truncated"; //#537 + $k[$j++] = false; //#537 + return true; //#537 + } //#537 + var _3y = $k[--$j]; //#539 + var _3z = $geti(_3y, 6, _3y.length - 6); //#539 + $k[$j++] = _3z; //#544 + if (_3z.length < 1) { //#544 + $j -= 2; //#543 + $k[$j++] = 'bwipp.GS1couponTooShortSaveValueVLI'; //#543 + $k[$j++] = "Coupon too short: Missing Save Value VLI"; //#543 + $k[$j++] = false; //#543 + return true; //#543 + } //#543 + var _40 = $k[--$j]; //#545 + var _42 = ~~$z($geti(_40, 0, 1)); //#545 + $k[$j++] = _40; //#547 + $k[$j++] = _42; //#547 + if ((_42 < 1) || (_42 > 5)) { //#547 + $j -= 2; //#546 + $k[$j++] = 'bwipp.GS1couponBadSaveValueVLI'; //#546 + $k[$j++] = "Coupon Save Value length indicator must be 1-5"; //#546 + $k[$j++] = false; //#546 + return true; //#546 + } //#546 + var _43 = $k[--$j]; //#548 + var _44 = $k[--$j]; //#549 + $k[$j++] = _44; //#551 + $k[$j++] = $f(_43 + 1); //#551 + if ($f(_43 + 1) > _44.length) { //#551 + $j -= 3; //#550 + $k[$j++] = 'bwipp.GS1couponTooShortSaveValue'; //#550 + $k[$j++] = "Coupon too short: Save Value truncated"; //#550 + $k[$j++] = false; //#550 + return true; //#550 + } //#550 + var _45 = $k[--$j]; //#552 + var _46 = $k[--$j]; //#552 + var _47 = $geti(_46, _45, $f(_46.length - _45)); //#552 + $k[$j++] = _47; //#557 + if (_47.length < 1) { //#557 + $j -= 2; //#556 + $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseRequirementVLI'; //#556 + $k[$j++] = "Coupon too short: Missing 1st Purchase Requirement VLI"; //#556 + $k[$j++] = false; //#556 + return true; //#556 + } //#556 + var _48 = $k[--$j]; //#558 + var _4A = ~~$z($geti(_48, 0, 1)); //#558 + $k[$j++] = _48; //#560 + $k[$j++] = _4A; //#560 + if ((_4A < 1) || (_4A > 5)) { //#560 + $j -= 2; //#559 + $k[$j++] = 'bwipp.GS1couponBad1stPurchaseRequirementVLI'; //#559 + $k[$j++] = "Coupon 1st Purchase Requirement length indicator must be 1-5"; //#559 + $k[$j++] = false; //#559 + return true; //#559 + } //#559 + var _4B = $k[--$j]; //#561 + var _4C = $k[--$j]; //#562 + $k[$j++] = _4C; //#564 + $k[$j++] = $f(_4B + 1); //#564 + if ($f(_4B + 1) > _4C.length) { //#564 + $j -= 3; //#563 + $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseRequirement'; //#563 + $k[$j++] = "Coupon too short: 1st Purchase Requirement truncated"; //#563 + $k[$j++] = false; //#563 + return true; //#563 + } //#563 + var _4D = $k[--$j]; //#565 + var _4E = $k[--$j]; //#565 + var _4F = $geti(_4E, _4D, $f(_4E.length - _4D)); //#565 + $k[$j++] = _4F; //#570 + if (_4F.length < 1) { //#570 + $j -= 2; //#569 + $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseRequirementCode'; //#569 + $k[$j++] = "Coupon too short: Missing 1st Purchase Requirement Code"; //#569 + $k[$j++] = false; //#569 + return true; //#569 + } //#569 + var _4G = $k[--$j]; //#571 + var _4I = ~~$z($geti(_4G, 0, 1)); //#571 + $k[$j++] = _4G; //#573 + if ((_4I > 4) && (_4I != 9)) { //#573 + $j -= 2; //#572 + $k[$j++] = 'bwipp.GS1couponBad1stPurchaseRequirementCode'; //#572 + $k[$j++] = "Coupon 1st Purchase Requirement Code must be 0-4 or 9"; //#572 + $k[$j++] = false; //#572 + return true; //#572 + } //#572 + var _4J = $k[--$j]; //#574 + var _4K = $geti(_4J, 1, _4J.length - 1); //#574 + $k[$j++] = _4K; //#579 + if (_4K.length < 3) { //#579 + $j -= 2; //#578 + $k[$j++] = 'bwipp.GS1couponTooShort1stPurchaseFamilyCode'; //#578 + $k[$j++] = "Coupon too short: 1st Purchase Family Code truncated"; //#578 + $k[$j++] = false; //#578 + return true; //#578 + } //#578 + var _4L = $k[--$j]; //#580 + var _4M = $geti(_4L, 3, _4L.length - 3); //#580 + $k[$j++] = _4M; //#636 + if (_4M.length >= 1) { //#636 + var _4N = $k[--$j]; //#583 + $k[$j++] = _4N; //#636 + if ((~~$z($geti(_4N, 0, 1))) == 1) { //#636 + var _4P = $k[--$j]; //#584 + var _4Q = $geti(_4P, 1, _4P.length - 1); //#584 + $k[$j++] = _4Q; //#589 + if (_4Q.length < 1) { //#589 + $j -= 2; //#588 + $k[$j++] = 'bwipp.GS1couponTooShortAdditionalPurchaseRulesCode'; //#588 + $k[$j++] = "Coupon too short: Missing Additional Purchase Rules Code"; //#588 + $k[$j++] = false; //#588 + return true; //#588 + } //#588 + var _4R = $k[--$j]; //#590 + $k[$j++] = _4R; //#592 + if ((~~$z($geti(_4R, 0, 1))) > 3) { //#592 + $j -= 2; //#591 + $k[$j++] = 'bwipp.GS1couponBadAdditionalPurchaseRulesCode'; //#591 + $k[$j++] = "Coupon Additional Purchase Rules Code must be 0-3"; //#591 + $k[$j++] = false; //#591 + return true; //#591 + } //#591 + var _4T = $k[--$j]; //#593 + var _4U = $geti(_4T, 1, _4T.length - 1); //#593 + $k[$j++] = _4U; //#598 + if (_4U.length < 1) { //#598 + $j -= 2; //#597 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseRequirementVLI'; //#597 + $k[$j++] = "Coupon too short: Missing 2nd Purchase Requirement VLI"; //#597 + $k[$j++] = false; //#597 + return true; //#597 + } //#597 + var _4V = $k[--$j]; //#599 + var _4X = ~~$z($geti(_4V, 0, 1)); //#599 + $k[$j++] = _4V; //#601 + $k[$j++] = _4X; //#601 + if ((_4X < 1) || (_4X > 5)) { //#601 + $j -= 2; //#600 + $k[$j++] = 'bwipp.GS1couponBad2ndPurchaseRequirementVLI'; //#600 + $k[$j++] = "Coupon 2nd Purchase Requirement length indicator must be 1-5"; //#600 + $k[$j++] = false; //#600 + return true; //#600 + } //#600 + var _4Y = $k[--$j]; //#602 + var _4Z = $k[--$j]; //#603 + $k[$j++] = _4Z; //#605 + $k[$j++] = $f(_4Y + 1); //#605 + if ($f(_4Y + 1) > _4Z.length) { //#605 + $j -= 3; //#604 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseRequirement'; //#604 + $k[$j++] = "Coupon too short: 2nd Purchase Requirement truncated"; //#604 + $k[$j++] = false; //#604 + return true; //#604 + } //#604 + var _4a = $k[--$j]; //#606 + var _4b = $k[--$j]; //#606 + var _4c = $geti(_4b, _4a, $f(_4b.length - _4a)); //#606 + $k[$j++] = _4c; //#611 + if (_4c.length < 1) { //#611 + $j -= 2; //#610 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseRequirementCode'; //#610 + $k[$j++] = "Coupon too short: Missing 2nd Purchase Requirement Code"; //#610 + $k[$j++] = false; //#610 + return true; //#610 + } //#610 + var _4d = $k[--$j]; //#612 + var _4f = ~~$z($geti(_4d, 0, 1)); //#612 + $k[$j++] = _4d; //#614 + if ((_4f > 4) && (_4f != 9)) { //#614 + $j -= 2; //#613 + $k[$j++] = 'bwipp.GS1couponBad2ndPurchaseRequirementCode'; //#613 + $k[$j++] = "Coupon 2nd Purchase Requirement Code must be 0-4 or 9"; //#613 + $k[$j++] = false; //#613 + return true; //#613 + } //#613 + var _4g = $k[--$j]; //#615 + var _4h = $geti(_4g, 1, _4g.length - 1); //#615 + $k[$j++] = _4h; //#620 + if (_4h.length < 3) { //#620 + $j -= 2; //#619 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseFamilyCode'; //#619 + $k[$j++] = "Coupon too short: 2nd Purchase Family Code truncated"; //#619 + $k[$j++] = false; //#619 + return true; //#619 + } //#619 + var _4i = $k[--$j]; //#621 + var _4j = $geti(_4i, 3, _4i.length - 3); //#621 + $k[$j++] = _4j; //#626 + if (_4j.length < 1) { //#626 + $j -= 2; //#625 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseGCPVLI'; //#625 + $k[$j++] = "Coupon too short: Missing 2nd Purchase GCP VLI"; //#625 + $k[$j++] = false; //#625 + return true; //#625 + } //#625 + var _4k = $k[--$j]; //#627 + var _4m = ~~$z($geti(_4k, 0, 1)); //#627 + $k[$j++] = _4k; //#629 + $k[$j++] = _4m; //#629 + if ((_4m > 6) && (_4m != 9)) { //#629 + $j -= 2; //#628 + $k[$j++] = 'bwipp.GS1couponBad2ndPurchaseGCPVLI'; //#628 + $k[$j++] = "Coupon 2nd Purchase GCP length indicator must be 0-6 or 9"; //#628 + $k[$j++] = false; //#628 + return true; //#628 + } //#628 + var _4n = $k[--$j]; //#630 + $k[$j++] = _4n; //#630 + if (_4n != 9) { //#630 + var _4o = $k[--$j]; //#630 + $k[$j++] = $f(_4o + 6); //#630 + } else { //#630 + $j--; //#630 + $k[$j++] = 0; //#630 + } //#630 + var _4p = $k[--$j]; //#630 + var _4q = $k[--$j]; //#631 + $k[$j++] = _4q; //#633 + $k[$j++] = $f(_4p + 1); //#633 + if ($f(_4p + 1) > _4q.length) { //#633 + $j -= 3; //#632 + $k[$j++] = 'bwipp.GS1couponTooShort2ndPurchaseGCP'; //#632 + $k[$j++] = "Coupon too short: 2nd Purchase GCP truncated"; //#632 + $k[$j++] = false; //#632 + return true; //#632 + } //#632 + var _4r = $k[--$j]; //#634 + var _4s = $k[--$j]; //#634 + $k[$j++] = $geti(_4s, _4r, $f(_4s.length - _4r)); //#634 + } //#634 + } //#634 + var _4u = $k[--$j]; //#639 + $k[$j++] = _4u; //#683 + if (_4u.length >= 1) { //#683 + var _4v = $k[--$j]; //#639 + $k[$j++] = _4v; //#683 + if ((~~$z($geti(_4v, 0, 1))) == 2) { //#683 + var _4x = $k[--$j]; //#640 + var _4y = $geti(_4x, 1, _4x.length - 1); //#640 + $k[$j++] = _4y; //#645 + if (_4y.length < 1) { //#645 + $j -= 2; //#644 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseRequirementVLI'; //#644 + $k[$j++] = "Coupon too short: Missing 3rd Purchase Requirement VLI"; //#644 + $k[$j++] = false; //#644 + return true; //#644 + } //#644 + var _4z = $k[--$j]; //#646 + var _51 = ~~$z($geti(_4z, 0, 1)); //#646 + $k[$j++] = _4z; //#648 + $k[$j++] = _51; //#648 + if ((_51 < 1) || (_51 > 5)) { //#648 + $j -= 2; //#647 + $k[$j++] = 'bwipp.GS1couponBad3rdPurchaseRequirementVLI'; //#647 + $k[$j++] = "Coupon 3rd Purchase Requirement length indicator must be 1-5"; //#647 + $k[$j++] = false; //#647 + return true; //#647 + } //#647 + var _52 = $k[--$j]; //#649 + var _53 = $k[--$j]; //#650 + $k[$j++] = _53; //#652 + $k[$j++] = $f(_52 + 1); //#652 + if ($f(_52 + 1) > _53.length) { //#652 + $j -= 3; //#651 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseRequirement'; //#651 + $k[$j++] = "Coupon too short: 3rd Purchase Requirement truncated"; //#651 + $k[$j++] = false; //#651 + return true; //#651 + } //#651 + var _54 = $k[--$j]; //#653 + var _55 = $k[--$j]; //#653 + var _56 = $geti(_55, _54, $f(_55.length - _54)); //#653 + $k[$j++] = _56; //#658 + if (_56.length < 1) { //#658 + $j -= 2; //#657 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseRequirementCode'; //#657 + $k[$j++] = "Coupon too short: Missing 3rd Purchase Requirement Code"; //#657 + $k[$j++] = false; //#657 + return true; //#657 + } //#657 + var _57 = $k[--$j]; //#659 + var _59 = ~~$z($geti(_57, 0, 1)); //#659 + $k[$j++] = _57; //#661 + if ((_59 > 4) && (_59 != 9)) { //#661 + $j -= 2; //#660 + $k[$j++] = 'bwipp.GS1couponBad3rdPurchaseRequirementCode'; //#660 + $k[$j++] = "Coupon 3rd Purchase Requirement Code must be 0-4 or 9"; //#660 + $k[$j++] = false; //#660 + return true; //#660 + } //#660 + var _5A = $k[--$j]; //#662 + var _5B = $geti(_5A, 1, _5A.length - 1); //#662 + $k[$j++] = _5B; //#667 + if (_5B.length < 3) { //#667 + $j -= 2; //#666 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseFamilyCode'; //#666 + $k[$j++] = "Coupon too short: 3rd Purchase Family Code truncated"; //#666 + $k[$j++] = false; //#666 + return true; //#666 + } //#666 + var _5C = $k[--$j]; //#668 + var _5D = $geti(_5C, 3, _5C.length - 3); //#668 + $k[$j++] = _5D; //#673 + if (_5D.length < 1) { //#673 + $j -= 2; //#672 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseGCPVLI'; //#672 + $k[$j++] = "Coupon too short: Missing 3rd Purchase GCP VLI"; //#672 + $k[$j++] = false; //#672 + return true; //#672 + } //#672 + var _5E = $k[--$j]; //#674 + var _5G = ~~$z($geti(_5E, 0, 1)); //#674 + $k[$j++] = _5E; //#676 + $k[$j++] = _5G; //#676 + if ((_5G > 6) && (_5G != 9)) { //#676 + $j -= 2; //#675 + $k[$j++] = 'bwipp.GS1couponBad3rdPurchaseGCPVLI'; //#675 + $k[$j++] = "Coupon 3rd Purchase GCP length indicator must be 0-6 or 9"; //#675 + $k[$j++] = false; //#675 + return true; //#675 + } //#675 + var _5H = $k[--$j]; //#677 + $k[$j++] = _5H; //#677 + if (_5H != 9) { //#677 + var _5I = $k[--$j]; //#677 + $k[$j++] = $f(_5I + 6); //#677 + } else { //#677 + $j--; //#677 + $k[$j++] = 0; //#677 + } //#677 + var _5J = $k[--$j]; //#677 + var _5K = $k[--$j]; //#678 + $k[$j++] = _5K; //#680 + $k[$j++] = $f(_5J + 1); //#680 + if ($f(_5J + 1) > _5K.length) { //#680 + $j -= 3; //#679 + $k[$j++] = 'bwipp.GS1couponTooShort3rdPurchaseGCP'; //#679 + $k[$j++] = "Coupon too short: 3rd Purchase GCP truncated"; //#679 + $k[$j++] = false; //#679 + return true; //#679 + } //#679 + var _5L = $k[--$j]; //#681 + var _5M = $k[--$j]; //#681 + $k[$j++] = $geti(_5M, _5L, $f(_5M.length - _5L)); //#681 + } //#681 + } //#681 + $1.couponexpire = -1; //#686 + var _5O = $k[--$j]; //#687 + $k[$j++] = _5O; //#705 + if (_5O.length >= 1) { //#705 + var _5P = $k[--$j]; //#687 + $k[$j++] = _5P; //#705 + if ((~~$z($geti(_5P, 0, 1))) == 3) { //#705 + var _5R = $k[--$j]; //#688 + var _5S = $geti(_5R, 1, _5R.length - 1); //#688 + $k[$j++] = _5S; //#693 + if (_5S.length < 6) { //#693 + $j -= 2; //#692 + $k[$j++] = 'bwipp.GS1couponTooShortExpirationDate'; //#692 + $k[$j++] = "Coupon too short: Expiration date"; //#692 + $k[$j++] = false; //#692 + return true; //#692 + } //#692 + var _5T = $k[--$j]; //#694 + var _5V = ~~$z($geti(_5T, 2, 2)); //#694 + $k[$j++] = _5T; //#694 + if ((_5V < 1) || (_5V > 12)) { //#694 + $j -= 2; //#694 + $k[$j++] = 'bwipp.GS1couponExpirationDateBadMonth'; //#694 + $k[$j++] = "Invalid month in expiration date"; //#694 + $k[$j++] = false; //#694 + return true; //#694 + } //#694 + var _5W = $k[--$j]; //#695 + var _5Y = ~~$z($geti(_5W, 0, 2)); //#695 + var _5Z = _5Y - 21; //#696 + $k[$j++] = _5W; //#696 + $k[$j++] = _5Y; //#696 + $k[$j++] = _5Z; //#696 + if (_5Z >= 51) { //#696 + $j--; //#696 + var _5a = $k[--$j]; //#696 + $k[$j++] = $f(_5a + 1900); //#696 + } else { //#696 + if ($k[--$j] <= -50) { //#696 + var _5c = $k[--$j]; //#696 + $k[$j++] = $f(_5c + 2100); //#696 + } else { //#696 + var _5d = $k[--$j]; //#696 + $k[$j++] = $f(_5d + 2000); //#696 + } //#696 + } //#696 + var _5e = $k[--$j]; //#697 + $k[$j++] = ((_5e % 400) == 0) || (((_5e % 4) == 0) && ((_5e % 100) != 0)); //#698 + $k[$j++] = Infinity; //#698 + var _5f = $k[--$j]; //#698 + var _5h = $k[--$j] ? 29 : 28; //#698 + $k[$j++] = _5f; //#698 + $k[$j++] = 31; //#698 + $k[$j++] = _5h; //#698 + $k[$j++] = 31; //#698 + $k[$j++] = 30; //#698 + $k[$j++] = 31; //#698 + $k[$j++] = 30; //#698 + $k[$j++] = 31; //#698 + $k[$j++] = 31; //#698 + $k[$j++] = 30; //#698 + $k[$j++] = 31; //#698 + $k[$j++] = 30; //#698 + $k[$j++] = 31; //#698 + var _5i = $a(); //#698 + var _5j = $k[--$j]; //#699 + var _5n = ~~$z($geti(_5j, 4, 2)); //#700 + $k[$j++] = _5j; //#701 + if (($get(_5i, (~~$z($geti(_5j, 2, 2))) - 1) < _5n) || (_5n < 1)) { //#701 + $j -= 2; //#701 + $k[$j++] = 'bwipp.GS1couponExpirationDateBadDay'; //#701 + $k[$j++] = "Invalid day of month in expiration date"; //#701 + $k[$j++] = false; //#701 + return true; //#701 + } //#701 + var _5o = $k[--$j]; //#702 + $1.couponexpire = ~~$z($geti(_5o, 0, 6)); //#702 + $k[$j++] = $geti(_5o, 6, _5o.length - 6); //#703 + } //#703 + } //#703 + var _5r = $k[--$j]; //#708 + $k[$j++] = _5r; //#729 + if (_5r.length >= 1) { //#729 + var _5s = $k[--$j]; //#708 + $k[$j++] = _5s; //#729 + if ((~~$z($geti(_5s, 0, 1))) == 4) { //#729 + var _5u = $k[--$j]; //#709 + var _5v = $geti(_5u, 1, _5u.length - 1); //#709 + $k[$j++] = _5v; //#714 + if (_5v.length < 6) { //#714 + $j -= 2; //#713 + $k[$j++] = 'bwipp.GS1couponTooShortStartDate'; //#713 + $k[$j++] = "Coupon too short: Start date"; //#713 + $k[$j++] = false; //#713 + return true; //#713 + } //#713 + var _5w = $k[--$j]; //#715 + var _5y = ~~$z($geti(_5w, 2, 2)); //#715 + $k[$j++] = _5w; //#715 + if ((_5y < 1) || (_5y > 12)) { //#715 + $j -= 2; //#715 + $k[$j++] = 'bwipp.GS1couponStartDateBadMonth'; //#715 + $k[$j++] = "Invalid month in start date"; //#715 + $k[$j++] = false; //#715 + return true; //#715 + } //#715 + var _5z = $k[--$j]; //#716 + var _61 = ~~$z($geti(_5z, 0, 2)); //#716 + var _62 = _61 - 21; //#717 + $k[$j++] = _5z; //#717 + $k[$j++] = _61; //#717 + $k[$j++] = _62; //#717 + if (_62 >= 51) { //#717 + $j--; //#717 + var _63 = $k[--$j]; //#717 + $k[$j++] = $f(_63 + 1900); //#717 + } else { //#717 + if ($k[--$j] <= -50) { //#717 + var _65 = $k[--$j]; //#717 + $k[$j++] = $f(_65 + 2100); //#717 + } else { //#717 + var _66 = $k[--$j]; //#717 + $k[$j++] = $f(_66 + 2000); //#717 + } //#717 + } //#717 + var _67 = $k[--$j]; //#718 + $k[$j++] = ((_67 % 400) == 0) || (((_67 % 4) == 0) && ((_67 % 100) != 0)); //#719 + $k[$j++] = Infinity; //#719 + var _68 = $k[--$j]; //#719 + var _6A = $k[--$j] ? 29 : 28; //#719 + $k[$j++] = _68; //#719 + $k[$j++] = 31; //#719 + $k[$j++] = _6A; //#719 + $k[$j++] = 31; //#719 + $k[$j++] = 30; //#719 + $k[$j++] = 31; //#719 + $k[$j++] = 30; //#719 + $k[$j++] = 31; //#719 + $k[$j++] = 31; //#719 + $k[$j++] = 30; //#719 + $k[$j++] = 31; //#719 + $k[$j++] = 30; //#719 + $k[$j++] = 31; //#719 + var _6B = $a(); //#719 + var _6C = $k[--$j]; //#720 + var _6G = ~~$z($geti(_6C, 4, 2)); //#721 + $k[$j++] = _6C; //#722 + if (($get(_6B, (~~$z($geti(_6C, 2, 2))) - 1) < _6G) || (_6G < 1)) { //#722 + $j -= 2; //#722 + $k[$j++] = 'bwipp.GS1couponStartDateBadDay'; //#722 + $k[$j++] = "Invalid day of month in start date"; //#722 + $k[$j++] = false; //#722 + return true; //#722 + } //#722 + var _6H = $k[--$j]; //#723 + $1.couponstart = ~~$z($geti(_6H, 0, 6)); //#723 + $k[$j++] = _6H; //#726 + if (($1.couponexpire != -1) && ($1.couponexpire < $1.couponstart)) { //#726 + $j -= 2; //#725 + $k[$j++] = 'bwipp.GS1couponExpireDateBeforeStartDate'; //#725 + $k[$j++] = "Coupon expires before it starts"; //#725 + $k[$j++] = false; //#725 + return true; //#725 + } //#725 + var _6M = $k[--$j]; //#727 + $k[$j++] = $geti(_6M, 6, _6M.length - 6); //#727 + } //#727 + } //#727 + var _6O = $k[--$j]; //#732 + $k[$j++] = _6O; //#745 + if (_6O.length >= 1) { //#745 + var _6P = $k[--$j]; //#732 + $k[$j++] = _6P; //#745 + if ((~~$z($geti(_6P, 0, 1))) == 5) { //#745 + var _6R = $k[--$j]; //#733 + var _6S = $geti(_6R, 1, _6R.length - 1); //#733 + $k[$j++] = _6S; //#738 + if (_6S.length < 1) { //#738 + $j -= 2; //#737 + $k[$j++] = 'bwipp.GS1couponTooShortSerialNumberVLI'; //#737 + $k[$j++] = "Coupon too short: Missing Serial Number VLI"; //#737 + $k[$j++] = false; //#737 + return true; //#737 + } //#737 + var _6T = $k[--$j]; //#739 + var _6U = $geti(_6T, 0, 1); //#739 + $k[$j++] = _6T; //#742 + $k[$j++] = ((~~$z(_6U)) + 6) + 1; //#742 + if ((((~~$z(_6U)) + 6) + 1) > _6T.length) { //#742 + $j -= 3; //#741 + $k[$j++] = 'bwipp.GS1couponTooShortSerialNumber'; //#741 + $k[$j++] = "Coupon too short: Serial Number truncated"; //#741 + $k[$j++] = false; //#741 + return true; //#741 + } //#741 + var _6V = $k[--$j]; //#743 + var _6W = $k[--$j]; //#743 + $k[$j++] = $geti(_6W, _6V, $f(_6W.length - _6V)); //#743 + } //#743 + } //#743 + var _6Y = $k[--$j]; //#748 + $k[$j++] = _6Y; //#764 + if (_6Y.length >= 1) { //#764 + var _6Z = $k[--$j]; //#748 + $k[$j++] = _6Z; //#764 + if ((~~$z($geti(_6Z, 0, 1))) == 6) { //#764 + var _6b = $k[--$j]; //#749 + var _6c = $geti(_6b, 1, _6b.length - 1); //#749 + $k[$j++] = _6c; //#754 + if (_6c.length < 1) { //#754 + $j -= 2; //#753 + $k[$j++] = 'bwipp.GS1couponTooShortRetailerGCPGLNVLI'; //#753 + $k[$j++] = "Coupon too short: Missing Retailer GCP/GLN VLI"; //#753 + $k[$j++] = false; //#753 + return true; //#753 + } //#753 + var _6d = $k[--$j]; //#755 + var _6f = ~~$z($geti(_6d, 0, 1)); //#755 + $k[$j++] = _6d; //#757 + $k[$j++] = _6f; //#757 + if ((_6f < 1) || (_6f > 7)) { //#757 + $j -= 2; //#756 + $k[$j++] = 'bwipp.GS1couponBadRetailerGCPGLNVLI'; //#756 + $k[$j++] = "Coupon Retailer GCP/GLN length indicator must be 1-7"; //#756 + $k[$j++] = false; //#756 + return true; //#756 + } //#756 + var _6g = $k[--$j]; //#758 + var _6h = $k[--$j]; //#759 + $k[$j++] = _6h; //#761 + $k[$j++] = $f($f(_6g + 6) + 1); //#761 + if (($f($f(_6g + 6) + 1)) > _6h.length) { //#761 + $j -= 3; //#760 + $k[$j++] = 'bwipp.GS1couponTooShortRetailerGCPGLN'; //#760 + $k[$j++] = "Coupon too short: Retailer GCP/GLN truncated"; //#760 + $k[$j++] = false; //#760 + return true; //#760 + } //#760 + var _6i = $k[--$j]; //#762 + var _6j = $k[--$j]; //#762 + $k[$j++] = $geti(_6j, _6i, $f(_6j.length - _6i)); //#762 + } //#762 + } //#762 + var _6l = $k[--$j]; //#767 + $k[$j++] = _6l; //#803 + if (_6l.length >= 1) { //#803 + var _6m = $k[--$j]; //#767 + $k[$j++] = _6m; //#803 + if ((~~$z($geti(_6m, 0, 1))) == 9) { //#803 + var _6o = $k[--$j]; //#768 + var _6p = $geti(_6o, 1, _6o.length - 1); //#768 + $k[$j++] = _6p; //#773 + if (_6p.length < 1) { //#773 + $j -= 2; //#772 + $k[$j++] = 'bwipp.GS1couponTooShortSaveValueCode'; //#772 + $k[$j++] = "Coupon too short: Missing Save Value Code"; //#772 + $k[$j++] = false; //#772 + return true; //#772 + } //#772 + var _6q = $k[--$j]; //#774 + var _6s = ~~$z($geti(_6q, 0, 1)); //#774 + $k[$j++] = _6q; //#776 + if ((_6s > 6) || ((_6s == 3) || (_6s == 4))) { //#776 + $j -= 2; //#775 + $k[$j++] = 'bwipp.GS1couponBadSaveValueCode'; //#775 + $k[$j++] = "Coupon Save Value Code must be 0,1,2,5 or 6"; //#775 + $k[$j++] = false; //#775 + return true; //#775 + } //#775 + var _6t = $k[--$j]; //#777 + var _6u = $geti(_6t, 1, _6t.length - 1); //#777 + $k[$j++] = _6u; //#782 + if (_6u.length < 1) { //#782 + $j -= 2; //#781 + $k[$j++] = 'bwipp.GS1couponTooShortSaveValueAppliesToItem'; //#781 + $k[$j++] = "Coupon too short: Missing Save Value Applies to Item"; //#781 + $k[$j++] = false; //#781 + return true; //#781 + } //#781 + var _6v = $k[--$j]; //#783 + $k[$j++] = _6v; //#785 + if ((~~$z($geti(_6v, 0, 1))) > 2) { //#785 + $j -= 2; //#784 + $k[$j++] = 'bwipp.GS1couponBadSaveValueAppliesToItem'; //#784 + $k[$j++] = "Coupon Save Value Applies to Item must be 0-2"; //#784 + $k[$j++] = false; //#784 + return true; //#784 + } //#784 + var _6x = $k[--$j]; //#786 + var _6y = $geti(_6x, 1, _6x.length - 1); //#786 + $k[$j++] = _6y; //#791 + if (_6y.length < 1) { //#791 + $j -= 2; //#790 + $k[$j++] = 'bwipp.GS1couponTooShortStoreCouponFlag'; //#790 + $k[$j++] = "Coupon too short: Missing Store Coupon Flag"; //#790 + $k[$j++] = false; //#790 + return true; //#790 + } //#790 + var _6z = $k[--$j]; //#792 + var _70 = $geti(_6z, 1, _6z.length - 1); //#792 + $k[$j++] = _70; //#797 + if (_70.length < 1) { //#797 + $j -= 2; //#796 + $k[$j++] = 'bwipp.GS1couponTooShortDontMultiplyFlag'; //#796 + $k[$j++] = "Coupon too short: Missing Don't Multiply Flag"; //#796 + $k[$j++] = false; //#796 + return true; //#796 + } //#796 + var _71 = $k[--$j]; //#798 + $k[$j++] = _71; //#800 + if ((~~$z($geti(_71, 0, 1))) > 1) { //#800 + $j -= 2; //#799 + $k[$j++] = 'bwipp.GS1couponBadDontMultiplyFlag'; //#799 + $k[$j++] = "Don't Multiply Flag must be 0 or 1"; //#799 + $k[$j++] = false; //#799 + return true; //#799 + } //#799 + var _73 = $k[--$j]; //#801 + $k[$j++] = $geti(_73, 1, _73.length - 1); //#801 + } //#801 + } //#801 + var _75 = $k[--$j]; //#805 + $k[$j++] = _75; //#807 + if (_75.length != 0) { //#807 + $j -= 2; //#806 + $k[$j++] = 'bwipp.GS1couponUnrecognisedOptionalField'; //#806 + $k[$j++] = "Coupon fields must be 1,2,3,4,5,6 or 9, increasing order"; //#806 + $k[$j++] = false; //#806 + return true; //#806 + } //#806 + $j--; //#808 + }; //#809 + $1.lintcouponposoffer = function() { + var _76 = $k[--$j]; //#812 + $k[$j++] = _76; //#814 + $k[$j++] = true; //#814 + $forall(_76, function() { //#814 + var _77 = $k[--$j]; //#813 + if ((_77 < 48) || (_77 > 57)) { //#813 + $j--; //#813 + $k[$j++] = false; //#813 + return true; //#813 + } //#813 + }); //#813 + if ($nt($k[--$j])) { //#815 + $j -= 2; //#815 + $k[$j++] = 'bwipp.GS1couponNotNumeric'; //#815 + $k[$j++] = "Coupon not numeric"; //#815 + $k[$j++] = false; //#815 + return true; //#815 + } //#815 + var _79 = $k[--$j]; //#817 + $k[$j++] = _79; //#819 + if (_79.length < 1) { //#819 + $j -= 2; //#818 + $k[$j++] = 'bwipp.GS1couponTooShortFormatCode'; //#818 + $k[$j++] = "Coupon too short: Missing Format Code"; //#818 + $k[$j++] = false; //#818 + return true; //#818 + } //#818 + var _7A = $k[--$j]; //#820 + var _7B = $geti(_7A, 0, 1); //#820 + $k[$j++] = _7A; //#822 + if ($ne(_7B, "0") && $ne(_7B, "1")) { //#822 + $j -= 2; //#821 + $k[$j++] = 'bwipp.GS1couponBadFormatCode'; //#821 + $k[$j++] = "Coupon format must be 0 or 1"; //#821 + $k[$j++] = false; //#821 + return true; //#821 + } //#821 + var _7C = $k[--$j]; //#823 + var _7D = $geti(_7C, 1, _7C.length - 1); //#823 + $k[$j++] = _7D; //#827 + if (_7D.length < 1) { //#827 + $j -= 2; //#826 + $k[$j++] = 'bwipp.GS1couponTooShortFunderVLI'; //#826 + $k[$j++] = "Coupon too short: Missing Funder VLI"; //#826 + $k[$j++] = false; //#826 + return true; //#826 + } //#826 + var _7E = $k[--$j]; //#828 + var _7G = ~~$z($geti(_7E, 0, 1)); //#828 + $k[$j++] = _7E; //#830 + $k[$j++] = _7G; //#830 + if (_7G > 6) { //#830 + $j -= 3; //#829 + $k[$j++] = 'bwipp.GS1couponBadFunderVLI'; //#829 + $k[$j++] = "Coupon Funder length indicator must be 0-6"; //#829 + $k[$j++] = false; //#829 + return true; //#829 + } //#829 + var _7H = $k[--$j]; //#831 + var _7I = $k[--$j]; //#832 + $k[$j++] = _7I; //#834 + $k[$j++] = $f($f(_7H + 6) + 1); //#834 + if (($f($f(_7H + 6) + 1)) > _7I.length) { //#834 + $j -= 3; //#833 + $k[$j++] = 'bwipp.GS1couponTooShortFunder'; //#833 + $k[$j++] = "Coupon too short: Truncated Funder ID"; //#833 + $k[$j++] = false; //#833 + return true; //#833 + } //#833 + var _7J = $k[--$j]; //#835 + var _7K = $k[--$j]; //#835 + var _7L = $geti(_7K, _7J, $f(_7K.length - _7J)); //#835 + $k[$j++] = _7L; //#839 + if (_7L.length < 6) { //#839 + $j -= 2; //#838 + $k[$j++] = 'bwipp.GS1couponTooShortOfferCode'; //#838 + $k[$j++] = "Coupon too short: Truncated Offer Code"; //#838 + $k[$j++] = false; //#838 + return true; //#838 + } //#838 + var _7M = $k[--$j]; //#840 + var _7N = $geti(_7M, 6, _7M.length - 6); //#840 + $k[$j++] = _7N; //#844 + if (_7N.length < 1) { //#844 + $j -= 2; //#843 + $k[$j++] = 'bwipp.GS1couponTooShortSnVLI'; //#843 + $k[$j++] = "Coupon too short: Missing SN VLI"; //#843 + $k[$j++] = false; //#843 + return true; //#843 + } //#843 + var _7O = $k[--$j]; //#845 + var _7P = $geti(_7O, 0, 1); //#845 + $k[$j++] = _7O; //#849 + $k[$j++] = ((~~$z(_7P)) + 6) + 1; //#849 + if ((((~~$z(_7P)) + 6) + 1) > _7O.length) { //#849 + $j -= 3; //#848 + $k[$j++] = 'bwipp.GS1couponTooShortSn'; //#848 + $k[$j++] = "Coupon too short: Truncated SN"; //#848 + $k[$j++] = false; //#848 + return true; //#848 + } //#848 + var _7Q = $k[--$j]; //#850 + var _7R = $k[--$j]; //#850 + var _7S = $geti(_7R, _7Q, $f(_7R.length - _7Q)); //#850 + $k[$j++] = _7S; //#853 + if (_7S.length != 0) { //#853 + $j -= 2; //#852 + $k[$j++] = 'bwipp.GS1couponTooLong'; //#852 + $k[$j++] = "Coupon too long"; //#852 + $k[$j++] = false; //#852 + return true; //#852 + } //#852 + $j--; //#854 + }; //#855 + var _7U = new Map([ + ["cset", 'N'], + ["min", 18], + ["max", 18], + ["check", $a(['lintcsum', 'lintkey'])] + ]); //#860 + var _7X = new Map([ + ["cset", 'N'], + ["min", 14], + ["max", 14], + ["check", $a(['lintcsum', 'lintkey'])] + ]); //#866 + var _7Y = $a([_7X]); //#866 + var _7a = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 20], + ["check", $a([])] + ]); //#873 + var _7d = new Map([ + ["cset", 'N'], + ["min", 6], + ["max", 6], + ["check", $a(['lintyymmd0'])] + ]); //#879 + var _7e = $a([_7d]); //#879 + var _7g = new Map([ + ["cset", 'N'], + ["min", 2], + ["max", 2], + ["check", $a([])] + ]); //#891 + var _7j = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 20], + ["check", $a([])] + ]); //#897 + var _7k = $a([_7j]); //#897 + var _7m = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 28], + ["check", $a([])] + ]); //#904 + var _7p = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 30], + ["check", $a([])] + ]); //#910 + var _7q = $a([_7p]); //#910 + var _7s = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 6], + ["check", $a([])] + ]); //#917 + var _7v = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 20], + ["check", $a([])] + ]); //#923 + var _7y = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 30], + ["check", $a([])] + ]); //#929 + var _7z = $a([_7y]); //#929 + var _81 = new Map([ + ["cset", 'N'], + ["min", 13], + ["max", 13], + ["check", $a(['lintcsum', 'lintkey'])] + ]); //#936 + var _83 = new Map([ + ["cset", 'X'], + ["min", 0], + ["max", 17], + ["check", $a([])] + ]); //#937 + var _86 = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 20], + ["check", $a([])] + ]); //#943 + var _89 = new Map([ + ["cset", 'N'], + ["min", 13], + ["max", 13], + ["check", $a(['lintcsum', 'lintkey'])] + ]); //#949 + var _8B = new Map([ + ["cset", 'N'], + ["min", 0], + ["max", 12], + ["check", $a([])] + ]); //#950 + var _8E = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 8], + ["check", $a([])] + ]); //#956 + var _8H = new Map([ + ["cset", 'N'], + ["min", 6], + ["max", 6], + ["check", $a([])] + ]); //#962 + var _8I = $a([_8H]); //#962 + var _8K = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 8], + ["check", $a([])] + ]); //#1285 + var _8N = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 15], + ["check", $a([])] + ]); //#1291 + var _8O = $a([_8N]); //#1291 + var _8Q = new Map([ + ["cset", 'N'], + ["min", 3], + ["max", 3], + ["check", $a(['lintiso4217'])] + ]); //#1306 + var _8S = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 15], + ["check", $a([])] + ]); //#1307 + var _8T = $a([_8Q, _8S]); //#1307 + var _8V = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 15], + ["check", $a([])] + ]); //#1322 + var _8W = $a([_8V]); //#1322 + var _8Y = new Map([ + ["cset", 'N'], + ["min", 3], + ["max", 3], + ["check", $a(['lintiso4217'])] + ]); //#1337 + var _8a = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 15], + ["check", $a([])] + ]); //#1338 + var _8b = $a([_8Y, _8a]); //#1338 + var _8d = new Map([ + ["cset", 'N'], + ["min", 4], + ["max", 4], + ["check", $a([])] + ]); //#1353 + var _8e = $a([_8d]); //#1353 + var _8g = new Map([ + ["cset", 'N'], + ["min", 6], + ["max", 6], + ["check", $a([])] + ]); //#1362 + var _8h = $a([_8g]); //#1362 + var _8j = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 30], + ["check", $a([])] + ]); //#1373 + var _8m = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 30], + ["check", $a(['lintkey'])] + ]); //#1379 + var _8p = new Map([ + ["cset", 'N'], + ["min", 17], + ["max", 17], + ["check", $a(['lintcsum', 'lintkey'])] + ]); //#1385 + var _8s = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 30], + ["check", $a([])] + ]); //#1391 + var _8v = new Map([ + ["cset", 'N'], + ["min", 13], + ["max", 13], + ["check", $a(['lintcsum', 'lintkey'])] + ]); //#1397 + var _8w = $a([_8v]); //#1397 + var _8y = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 20], + ["check", $a([])] + ]); //#1410 + var _91 = new Map([ + ["cset", 'N'], + ["min", 3], + ["max", 3], + ["check", $a(['lintiso3166'])] + ]); //#1416 + var _93 = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 9], + ["check", $a([])] + ]); //#1417 + var _96 = new Map([ + ["cset", 'N'], + ["min", 3], + ["max", 3], + ["check", $a(['lintiso3166'])] + ]); //#1423 + var _99 = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 15], + ["check", $a(['lintiso3166list'])] + ]); //#1429 + var _9C = new Map([ + ["cset", 'N'], + ["min", 3], + ["max", 3], + ["check", $a(['lintiso3166'])] + ]); //#1435 + var _9F = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 15], + ["check", $a(['lintiso3166list'])] + ]); //#1441 + var _9I = new Map([ + ["cset", 'N'], + ["min", 3], + ["max", 3], + ["check", $a(['lintiso3166'])] + ]); //#1447 + var _9L = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 3], + ["check", $a([])] + ]); //#1453 + var _9O = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 35], + ["check", $a(['lintpcenc'])] + ]); //#1459 + var _9P = $a([_9O]); //#1459 + var _9R = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 70], + ["check", $a(['lintpcenc'])] + ]); //#1466 + var _9S = $a([_9R]); //#1466 + var _9U = new Map([ + ["cset", 'X'], + ["min", 2], + ["max", 2], + ["check", $a(['lintiso3166alpha2'])] + ]); //#1476 + var _9X = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 30], + ["check", $a([])] + ]); //#1482 + var _9a = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 35], + ["check", $a(['lintpcenc'])] + ]); //#1488 + var _9b = $a([_9a]); //#1488 + var _9d = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 70], + ["check", $a(['lintpcenc'])] + ]); //#1495 + var _9e = $a([_9d]); //#1495 + var _9g = new Map([ + ["cset", 'X'], + ["min", 2], + ["max", 2], + ["check", $a(['lintiso3166alpha2'])] + ]); //#1505 + var _9j = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 20], + ["check", $a([])] + ]); //#1511 + var _9m = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 30], + ["check", $a([])] + ]); //#1517 + var _9p = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 35], + ["check", $a(['lintpcenc'])] + ]); //#1523 + var _9s = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 1], + ["check", $a(['lintyesno'])] + ]); //#1529 + var _9t = $a([_9s]); //#1529 + var _9v = new Map([ + ["cset", 'N'], + ["min", 6], + ["max", 6], + ["check", $a(['lintyymmd0'])] + ]); //#1537 + var _9x = new Map([ + ["cset", 'N'], + ["min", 4], + ["max", 4], + ["check", $a(['linthhmm'])] + ]); //#1538 + var _9y = $a([_9v, _9x]); //#1538 + var _A0 = new Map([ + ["cset", 'N'], + ["min", 6], + ["max", 6], + ["check", $a(['lintyymmdd'])] + ]); //#1545 + var _A3 = new Map([ + ["cset", 'N'], + ["min", 13], + ["max", 13], + ["check", $a([])] + ]); //#1551 + var _A6 = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 30], + ["check", $a([])] + ]); //#1557 + var _A9 = new Map([ + ["cset", 'N'], + ["min", 6], + ["max", 6], + ["check", $a(['lintyymmdd'])] + ]); //#1563 + var _AB = new Map([ + ["cset", 'N'], + ["min", 4], + ["max", 4], + ["check", $a(['linthhmm'])] + ]); //#1564 + var _AE = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 4], + ["check", $a([])] + ]); //#1570 + var _AH = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 12], + ["check", $a([])] + ]); //#1576 + var _AK = new Map([ + ["cset", 'N'], + ["min", 6], + ["max", 6], + ["check", $a(['lintyymmdd'])] + ]); //#1582 + var _AN = new Map([ + ["cset", 'N'], + ["min", 6], + ["max", 6], + ["check", $a(['lintyymmdd'])] + ]); //#1588 + var _AP = new Map([ + ["cset", 'N'], + ["min", 0], + ["max", 6], + ["check", $a(['lintyymmdd'])] + ]); //#1589 + var _AS = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 3], + ["check", $a([])] + ]); //#1595 + var _AV = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 10], + ["check", $a([])] + ]); //#1601 + var _AY = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 2], + ["check", $a([])] + ]); //#1607 + var _Ab = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 20], + ["check", $a([])] + ]); //#1613 + var _Ac = $a([_Ab]); //#1613 + var _Ae = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 30], + ["check", $a(['lintkey'])] + ]); //#1621 + var _Ah = new Map([ + ["cset", 'N'], + ["min", 3], + ["max", 3], + ["check", $a(['lintiso3166999'])] + ]); //#1627 + var _Aj = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 27], + ["check", $a([])] + ]); //#1628 + var _Ak = $a([_Ah, _Aj]); //#1628 + var _Am = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 1], + ["check", $a([])] + ]); //#1643 + var _Ao = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 1], + ["check", $a([])] + ]); //#1644 + var _Aq = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 1], + ["check", $a([])] + ]); //#1645 + var _As = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 1], + ["check", $a(['lintimporteridx'])] + ]); //#1646 + var _Av = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 20], + ["check", $a([])] + ]); //#1652 + var _Aw = $a([_Av]); //#1652 + var _Ay = new Map([ + ["cset", 'X'], + ["min", 2], + ["max", 2], + ["check", $a([])] + ]); //#1662 + var _B0 = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 28], + ["check", $a([])] + ]); //#1663 + var _B1 = $a([_Ay, _B0]); //#1663 + var _B3 = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 20], + ["check", $a([])] + ]); //#1678 + var _B6 = new Map([ + ["cset", 'N'], + ["min", 4], + ["max", 4], + ["check", $a(['lintnonzero'])] + ]); //#1684 + var _B8 = new Map([ + ["cset", 'N'], + ["min", 5], + ["max", 5], + ["check", $a(['lintnonzero'])] + ]); //#1685 + var _BA = new Map([ + ["cset", 'N'], + ["min", 3], + ["max", 3], + ["check", $a(['lintnonzero'])] + ]); //#1686 + var _BC = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 1], + ["check", $a(['lintwinding'])] + ]); //#1687 + var _BE = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 1], + ["check", $a([])] + ]); //#1688 + var _BH = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 20], + ["check", $a([])] + ]); //#1694 + var _BK = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 1], + ["check", $a(['lintzero'])] + ]); //#1700 + var _BM = new Map([ + ["cset", 'N'], + ["min", 13], + ["max", 13], + ["check", $a(['lintcsum', 'lintkey'])] + ]); //#1701 + var _BO = new Map([ + ["cset", 'X'], + ["min", 0], + ["max", 16], + ["check", $a([])] + ]); //#1702 + var _BR = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 30], + ["check", $a(['lintkey'])] + ]); //#1708 + var _BU = new Map([ + ["cset", 'N'], + ["min", 6], + ["max", 6], + ["check", $a([])] + ]); //#1714 + var _BX = new Map([ + ["cset", 'N'], + ["min", 14], + ["max", 14], + ["check", $a(['lintcsum'])] + ]); //#1720 + var _BZ = new Map([ + ["cset", 'N'], + ["min", 4], + ["max", 4], + ["check", $a(['lintpieceoftotal'])] + ]); //#1721 + var _Bc = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 34], + ["check", $a(['lintiban'])] + ]); //#1727 + var _Bf = new Map([ + ["cset", 'N'], + ["min", 8], + ["max", 8], + ["check", $a(['lintyymmddhh'])] + ]); //#1733 + var _Bh = new Map([ + ["cset", 'N'], + ["min", 0], + ["max", 4], + ["check", $a(['lintmmoptss'])] + ]); //#1734 + var _Bk = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 50], + ["check", $a([])] + ]); //#1740 + var _Bn = new Map([ + ["cset", 'C'], + ["min", 1], + ["max", 30], + ["check", $a(['lintkey'])] + ]); //#1746 + var _Bq = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 12], + ["check", $a(['lintnozeroprefix'])] + ]); //#1752 + var _Bt = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 20], + ["check", $a([])] + ]); //#1758 + var _Bw = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 25], + ["check", $a(['lintcsumalpha', 'lintkey'])] + ]); //#1764 + var _Bz = new Map([ + ["cset", 'N'], + ["min", 18], + ["max", 18], + ["check", $a(['lintcsum'])] + ]); //#1770 + var _C0 = $a([_Bz]); //#1770 + var _C2 = new Map([ + ["cset", 'N'], + ["min", 1], + ["max", 10], + ["check", $a([])] + ]); //#1777 + var _C5 = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 25], + ["check", $a([])] + ]); //#1783 + var _C8 = new Map([ + ["cset", 'N'], + ["min", 14], + ["max", 14], + ["check", $a(['lintcsum'])] + ]); //#1789 + var _CA = new Map([ + ["cset", 'N'], + ["min", 4], + ["max", 4], + ["check", $a(['lintpieceoftotal'])] + ]); //#1790 + var _CD = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 70], + ["check", $a(['lintcouponcode'])] + ]); //#1796 + var _CG = new Map([ + ["cset", 'N'], + ["min", 4], + ["max", 4], + ["check", $a([])] + ]); //#1802 + var _CJ = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 70], + ["check", $a(['lintcouponposoffer'])] + ]); //#1808 + var _CM = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 70], + ["check", $a([])] + ]); //#1814 + var _CP = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 30], + ["check", $a([])] + ]); //#1820 + var _CS = new Map([ + ["cset", 'X'], + ["min", 1], + ["max", 90], + ["check", $a([])] + ]); //#1826 + var _CT = $a([_CS]); //#1826 + var _CU = new Map([ + ["00", $a([_7U])], + ["01", _7Y], + ["02", _7Y], + ["10", $a([_7a])], + ["11", _7e], + ["12", _7e], + ["13", _7e], + ["14", _7e], + ["15", _7e], + ["16", _7e], + ["17", _7e], + ["20", $a([_7g])], + ["21", _7k], + ["22", _7k], + ["235", $a([_7m])], + ["240", _7q], + ["241", _7q], + ["242", $a([_7s])], + ["243", $a([_7v])], + ["250", _7z], + ["251", _7z], + ["253", $a([_81, _83])], + ["254", $a([_86])], + ["255", $a([_89, _8B])], + ["30", $a([_8E])], + ["3100", _8I], + ["3101", _8I], + ["3102", _8I], + ["3103", _8I], + ["3104", _8I], + ["3105", _8I], + ["3110", _8I], + ["3111", _8I], + ["3112", _8I], + ["3113", _8I], + ["3114", _8I], + ["3115", _8I], + ["3120", _8I], + ["3121", _8I], + ["3122", _8I], + ["3123", _8I], + ["3124", _8I], + ["3125", _8I], + ["3130", _8I], + ["3131", _8I], + ["3132", _8I], + ["3133", _8I], + ["3134", _8I], + ["3135", _8I], + ["3140", _8I], + ["3141", _8I], + ["3142", _8I], + ["3143", _8I], + ["3144", _8I], + ["3145", _8I], + ["3150", _8I], + ["3151", _8I], + ["3152", _8I], + ["3153", _8I], + ["3154", _8I], + ["3155", _8I], + ["3160", _8I], + ["3161", _8I], + ["3162", _8I], + ["3163", _8I], + ["3164", _8I], + ["3165", _8I], + ["3200", _8I], + ["3201", _8I], + ["3202", _8I], + ["3203", _8I], + ["3204", _8I], + ["3205", _8I], + ["3210", _8I], + ["3211", _8I], + ["3212", _8I], + ["3213", _8I], + ["3214", _8I], + ["3215", _8I], + ["3220", _8I], + ["3221", _8I], + ["3222", _8I], + ["3223", _8I], + ["3224", _8I], + ["3225", _8I], + ["3230", _8I], + ["3231", _8I], + ["3232", _8I], + ["3233", _8I], + ["3234", _8I], + ["3235", _8I], + ["3240", _8I], + ["3241", _8I], + ["3242", _8I], + ["3243", _8I], + ["3244", _8I], + ["3245", _8I], + ["3250", _8I], + ["3251", _8I], + ["3252", _8I], + ["3253", _8I], + ["3254", _8I], + ["3255", _8I], + ["3260", _8I], + ["3261", _8I], + ["3262", _8I], + ["3263", _8I], + ["3264", _8I], + ["3265", _8I], + ["3270", _8I], + ["3271", _8I], + ["3272", _8I], + ["3273", _8I], + ["3274", _8I], + ["3275", _8I], + ["3280", _8I], + ["3281", _8I], + ["3282", _8I], + ["3283", _8I], + ["3284", _8I], + ["3285", _8I], + ["3290", _8I], + ["3291", _8I], + ["3292", _8I], + ["3293", _8I], + ["3294", _8I], + ["3295", _8I], + ["3300", _8I], + ["3301", _8I], + ["3302", _8I], + ["3303", _8I], + ["3304", _8I], + ["3305", _8I], + ["3310", _8I], + ["3311", _8I], + ["3312", _8I], + ["3313", _8I], + ["3314", _8I], + ["3315", _8I], + ["3320", _8I], + ["3321", _8I], + ["3322", _8I], + ["3323", _8I], + ["3324", _8I], + ["3325", _8I], + ["3330", _8I], + ["3331", _8I], + ["3332", _8I], + ["3333", _8I], + ["3334", _8I], + ["3335", _8I], + ["3340", _8I], + ["3341", _8I], + ["3342", _8I], + ["3343", _8I], + ["3344", _8I], + ["3345", _8I], + ["3350", _8I], + ["3351", _8I], + ["3352", _8I], + ["3353", _8I], + ["3354", _8I], + ["3355", _8I], + ["3360", _8I], + ["3361", _8I], + ["3362", _8I], + ["3363", _8I], + ["3364", _8I], + ["3365", _8I], + ["3370", _8I], + ["3371", _8I], + ["3372", _8I], + ["3373", _8I], + ["3374", _8I], + ["3375", _8I], + ["3400", _8I], + ["3401", _8I], + ["3402", _8I], + ["3403", _8I], + ["3404", _8I], + ["3405", _8I], + ["3410", _8I], + ["3411", _8I], + ["3412", _8I], + ["3413", _8I], + ["3414", _8I], + ["3415", _8I], + ["3420", _8I], + ["3421", _8I], + ["3422", _8I], + ["3423", _8I], + ["3424", _8I], + ["3425", _8I], + ["3430", _8I], + ["3431", _8I], + ["3432", _8I], + ["3433", _8I], + ["3434", _8I], + ["3435", _8I], + ["3440", _8I], + ["3441", _8I], + ["3442", _8I], + ["3443", _8I], + ["3444", _8I], + ["3445", _8I], + ["3450", _8I], + ["3451", _8I], + ["3452", _8I], + ["3453", _8I], + ["3454", _8I], + ["3455", _8I], + ["3460", _8I], + ["3461", _8I], + ["3462", _8I], + ["3463", _8I], + ["3464", _8I], + ["3465", _8I], + ["3470", _8I], + ["3471", _8I], + ["3472", _8I], + ["3473", _8I], + ["3474", _8I], + ["3475", _8I], + ["3480", _8I], + ["3481", _8I], + ["3482", _8I], + ["3483", _8I], + ["3484", _8I], + ["3485", _8I], + ["3490", _8I], + ["3491", _8I], + ["3492", _8I], + ["3493", _8I], + ["3494", _8I], + ["3495", _8I], + ["3500", _8I], + ["3501", _8I], + ["3502", _8I], + ["3503", _8I], + ["3504", _8I], + ["3505", _8I], + ["3510", _8I], + ["3511", _8I], + ["3512", _8I], + ["3513", _8I], + ["3514", _8I], + ["3515", _8I], + ["3520", _8I], + ["3521", _8I], + ["3522", _8I], + ["3523", _8I], + ["3524", _8I], + ["3525", _8I], + ["3530", _8I], + ["3531", _8I], + ["3532", _8I], + ["3533", _8I], + ["3534", _8I], + ["3535", _8I], + ["3540", _8I], + ["3541", _8I], + ["3542", _8I], + ["3543", _8I], + ["3544", _8I], + ["3545", _8I], + ["3550", _8I], + ["3551", _8I], + ["3552", _8I], + ["3553", _8I], + ["3554", _8I], + ["3555", _8I], + ["3560", _8I], + ["3561", _8I], + ["3562", _8I], + ["3563", _8I], + ["3564", _8I], + ["3565", _8I], + ["3570", _8I], + ["3571", _8I], + ["3572", _8I], + ["3573", _8I], + ["3574", _8I], + ["3575", _8I], + ["3600", _8I], + ["3601", _8I], + ["3602", _8I], + ["3603", _8I], + ["3604", _8I], + ["3605", _8I], + ["3610", _8I], + ["3611", _8I], + ["3612", _8I], + ["3613", _8I], + ["3614", _8I], + ["3615", _8I], + ["3620", _8I], + ["3621", _8I], + ["3622", _8I], + ["3623", _8I], + ["3624", _8I], + ["3625", _8I], + ["3630", _8I], + ["3631", _8I], + ["3632", _8I], + ["3633", _8I], + ["3634", _8I], + ["3635", _8I], + ["3640", _8I], + ["3641", _8I], + ["3642", _8I], + ["3643", _8I], + ["3644", _8I], + ["3645", _8I], + ["3650", _8I], + ["3651", _8I], + ["3652", _8I], + ["3653", _8I], + ["3654", _8I], + ["3655", _8I], + ["3660", _8I], + ["3661", _8I], + ["3662", _8I], + ["3663", _8I], + ["3664", _8I], + ["3665", _8I], + ["3670", _8I], + ["3671", _8I], + ["3672", _8I], + ["3673", _8I], + ["3674", _8I], + ["3675", _8I], + ["3680", _8I], + ["3681", _8I], + ["3682", _8I], + ["3683", _8I], + ["3684", _8I], + ["3685", _8I], + ["3690", _8I], + ["3691", _8I], + ["3692", _8I], + ["3693", _8I], + ["3694", _8I], + ["3695", _8I], + ["37", $a([_8K])], + ["3900", _8O], + ["3901", _8O], + ["3902", _8O], + ["3903", _8O], + ["3904", _8O], + ["3905", _8O], + ["3906", _8O], + ["3907", _8O], + ["3908", _8O], + ["3909", _8O], + ["3910", _8T], + ["3911", _8T], + ["3912", _8T], + ["3913", _8T], + ["3914", _8T], + ["3915", _8T], + ["3916", _8T], + ["3917", _8T], + ["3918", _8T], + ["3919", _8T], + ["3920", _8W], + ["3921", _8W], + ["3922", _8W], + ["3923", _8W], + ["3924", _8W], + ["3925", _8W], + ["3926", _8W], + ["3927", _8W], + ["3928", _8W], + ["3929", _8W], + ["3930", _8b], + ["3931", _8b], + ["3932", _8b], + ["3933", _8b], + ["3934", _8b], + ["3935", _8b], + ["3936", _8b], + ["3937", _8b], + ["3938", _8b], + ["3939", _8b], + ["3940", _8e], + ["3941", _8e], + ["3942", _8e], + ["3943", _8e], + ["3950", _8h], + ["3951", _8h], + ["3952", _8h], + ["3953", _8h], + ["3954", _8h], + ["3955", _8h], + ["400", $a([_8j])], + ["401", $a([_8m])], + ["402", $a([_8p])], + ["403", $a([_8s])], + ["410", _8w], + ["411", _8w], + ["412", _8w], + ["413", _8w], + ["414", _8w], + ["415", _8w], + ["416", _8w], + ["417", _8w], + ["420", $a([_8y])], + ["421", $a([_91, _93])], + ["422", $a([_96])], + ["423", $a([_99])], + ["424", $a([_9C])], + ["425", $a([_9F])], + ["426", $a([_9I])], + ["427", $a([_9L])], + ["4300", _9P], + ["4301", _9P], + ["4302", _9S], + ["4303", _9S], + ["4304", _9S], + ["4305", _9S], + ["4306", _9S], + ["4307", $a([_9U])], + ["4308", $a([_9X])], + ["4310", _9b], + ["4311", _9b], + ["4312", _9e], + ["4313", _9e], + ["4314", _9e], + ["4315", _9e], + ["4316", _9e], + ["4317", $a([_9g])], + ["4318", $a([_9j])], + ["4319", $a([_9m])], + ["4320", $a([_9p])], + ["4321", _9t], + ["4322", _9t], + ["4323", _9t], + ["4324", _9y], + ["4325", _9y], + ["4326", $a([_A0])], + ["7001", $a([_A3])], + ["7002", $a([_A6])], + ["7003", $a([_A9, _AB])], + ["7004", $a([_AE])], + ["7005", $a([_AH])], + ["7006", $a([_AK])], + ["7007", $a([_AN, _AP])], + ["7008", $a([_AS])], + ["7009", $a([_AV])], + ["7010", $a([_AY])], + ["7020", _Ac], + ["7021", _Ac], + ["7022", _Ac], + ["7023", $a([_Ae])], + ["7030", _Ak], + ["7031", _Ak], + ["7032", _Ak], + ["7033", _Ak], + ["7034", _Ak], + ["7035", _Ak], + ["7036", _Ak], + ["7037", _Ak], + ["7038", _Ak], + ["7039", _Ak], + ["7040", $a([_Am, _Ao, _Aq, _As])], + ["710", _Aw], + ["711", _Aw], + ["712", _Aw], + ["713", _Aw], + ["714", _Aw], + ["7230", _B1], + ["7231", _B1], + ["7232", _B1], + ["7233", _B1], + ["7234", _B1], + ["7235", _B1], + ["7236", _B1], + ["7237", _B1], + ["7238", _B1], + ["7239", _B1], + ["7240", $a([_B3])], + ["8001", $a([_B6, _B8, _BA, _BC, _BE])], + ["8002", $a([_BH])], + ["8003", $a([_BK, _BM, _BO])], + ["8004", $a([_BR])], + ["8005", $a([_BU])], + ["8006", $a([_BX, _BZ])], + ["8007", $a([_Bc])], + ["8008", $a([_Bf, _Bh])], + ["8009", $a([_Bk])], + ["8010", $a([_Bn])], + ["8011", $a([_Bq])], + ["8012", $a([_Bt])], + ["8013", $a([_Bw])], + ["8017", _C0], + ["8018", _C0], + ["8019", $a([_C2])], + ["8020", $a([_C5])], + ["8026", $a([_C8, _CA])], + ["8110", $a([_CD])], + ["8111", $a([_CG])], + ["8112", $a([_CJ])], + ["8200", $a([_CM])], + ["90", $a([_CP])], + ["91", _CT], + ["92", _CT], + ["93", _CT], + ["94", _CT], + ["95", _CT], + ["96", _CT], + ["97", _CT], + ["98", _CT], + ["99", _CT] + ]); //#1837 + $1.gs1syntax = _CU; //#1839 + $k[$j++] = true; //#1866 + for (var _CX = 0, _CW = $1.vals.length - 1; _CX <= _CW; _CX += 1) { //#1866 + $1.ai = $get($1.ais, _CX); //#1843 + $1.val = $get($1.vals, _CX); //#1844 + var _Ce = $get($1.gs1syntax, $1.ai) !== undefined; //#1845 + if (_Ce) { //#1864 + $forall($get($1.gs1syntax, $1.ai), function() { //#1858 + $1.props = $k[--$j]; //#1847 + var _Ck = $get($1.props, 'max'); //#1848 + var _Cl = $1.val; //#1848 + var _Cm = _Cl.length; //#1848 + if (_Ck > _Cl.length) { //#1848 + var _ = _Cm; //#1848 + _Cm = _Ck; //#1848 + _Ck = _; //#1848 + } //#1848 + $1.eval = $geti($1.val, 0, _Ck); //#1849 + var _Cr = $1.eval.length; //#1850 + $1.val = $geti($1.val, _Cr, $1.val.length - _Cr); //#1850 + if ($1.eval.length < $get($1.props, 'min')) { //#1853 + $j--; //#1852 + $k[$j++] = 'bwipp.GS1valueTooShort'; //#1852 + $k[$j++] = "Too short"; //#1852 + $k[$j++] = false; //#1852 + return true; //#1852 + } //#1852 + var _Cx = new Map([ + ["N", 'lintnumeric'], + ["X", 'lintcset82'], + ["C", 'lintcset39'] + ]); //#1854 + $k[$j++] = $1.eval; //#1854 + if ($1[$get(_Cx, $get($1.props, 'cset'))]() === true) { return true; - } - var _4i = $k[--$j]; - var _4j = $geti(_4i, 3, _4i.length - 3); - $k[$j++] = _4j; - if (_4j.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShort2ndPurchaseGCPVLI"; - $k[$j++] = "Coupon too short: Missing 2nd Purchase GCP VLI"; - $k[$j++] = false; - return true; - } - var _4k = $k[--$j]; - var _4m = ~~$z($geti(_4k, 0, 1)); - $k[$j++] = _4k; - $k[$j++] = _4m; - if (_4m > 6 && _4m != 9) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBad2ndPurchaseGCPVLI"; - $k[$j++] = "Coupon 2nd Purchase GCP length indicator must be 0-6 or 9"; - $k[$j++] = false; - return true; - } - var _4n = $k[--$j]; - $k[$j++] = _4n; - if (_4n != 9) { - var _4o = $k[--$j]; - $k[$j++] = $f(_4o + 6); - } else { - $j--; - $k[$j++] = 0; - } - var _4p = $k[--$j]; - var _4q = $k[--$j]; - $k[$j++] = _4q; - $k[$j++] = $f(_4p + 1); - if ($f(_4p + 1) > _4q.length) { - $j -= 3; - $k[$j++] = "bwipp.GS1couponTooShort2ndPurchaseGCP"; - $k[$j++] = "Coupon too short: 2nd Purchase GCP truncated"; - $k[$j++] = false; - return true; - } - var _4r = $k[--$j]; - var _4s = $k[--$j]; - $k[$j++] = $geti(_4s, _4r, $f(_4s.length - _4r)); - } - } - var _4u = $k[--$j]; - $k[$j++] = _4u; - if (_4u.length >= 1) { - var _4v = $k[--$j]; - $k[$j++] = _4v; - if (~~$z($geti(_4v, 0, 1)) == 2) { - var _4x = $k[--$j]; - var _4y = $geti(_4x, 1, _4x.length - 1); - $k[$j++] = _4y; - if (_4y.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShort3rdPurchaseRequirementVLI"; - $k[$j++] = "Coupon too short: Missing 3rd Purchase Requirement VLI"; - $k[$j++] = false; - return true; - } - var _4z = $k[--$j]; - var _51 = ~~$z($geti(_4z, 0, 1)); - $k[$j++] = _4z; - $k[$j++] = _51; - if (_51 < 1 || _51 > 5) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBad3rdPurchaseRequirementVLI"; - $k[$j++] = "Coupon 3rd Purchase Requirement length indicator must be 1-5"; - $k[$j++] = false; - return true; - } - var _52 = $k[--$j]; - var _53 = $k[--$j]; - $k[$j++] = _53; - $k[$j++] = $f(_52 + 1); - if ($f(_52 + 1) > _53.length) { - $j -= 3; - $k[$j++] = "bwipp.GS1couponTooShort3rdPurchaseRequirement"; - $k[$j++] = "Coupon too short: 3rd Purchase Requirement truncated"; - $k[$j++] = false; - return true; - } - var _54 = $k[--$j]; - var _55 = $k[--$j]; - var _56 = $geti(_55, _54, $f(_55.length - _54)); - $k[$j++] = _56; - if (_56.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShort3rdPurchaseRequirementCode"; - $k[$j++] = "Coupon too short: Missing 3rd Purchase Requirement Code"; - $k[$j++] = false; - return true; - } - var _57 = $k[--$j]; - var _59 = ~~$z($geti(_57, 0, 1)); - $k[$j++] = _57; - if (_59 > 4 && _59 != 9) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBad3rdPurchaseRequirementCode"; - $k[$j++] = "Coupon 3rd Purchase Requirement Code must be 0-4 or 9"; - $k[$j++] = false; - return true; - } - var _5A = $k[--$j]; - var _5B = $geti(_5A, 1, _5A.length - 1); - $k[$j++] = _5B; - if (_5B.length < 3) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShort3rdPurchaseFamilyCode"; - $k[$j++] = "Coupon too short: 3rd Purchase Family Code truncated"; - $k[$j++] = false; - return true; - } - var _5C = $k[--$j]; - var _5D = $geti(_5C, 3, _5C.length - 3); - $k[$j++] = _5D; - if (_5D.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShort3rdPurchaseGCPVLI"; - $k[$j++] = "Coupon too short: Missing 3rd Purchase GCP VLI"; - $k[$j++] = false; - return true; - } - var _5E = $k[--$j]; - var _5G = ~~$z($geti(_5E, 0, 1)); - $k[$j++] = _5E; - $k[$j++] = _5G; - if (_5G > 6 && _5G != 9) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBad3rdPurchaseGCPVLI"; - $k[$j++] = "Coupon 3rd Purchase GCP length indicator must be 0-6 or 9"; - $k[$j++] = false; - return true; - } - var _5H = $k[--$j]; - $k[$j++] = _5H; - if (_5H != 9) { - var _5I = $k[--$j]; - $k[$j++] = $f(_5I + 6); - } else { - $j--; - $k[$j++] = 0; - } - var _5J = $k[--$j]; - var _5K = $k[--$j]; - $k[$j++] = _5K; - $k[$j++] = $f(_5J + 1); - if ($f(_5J + 1) > _5K.length) { - $j -= 3; - $k[$j++] = "bwipp.GS1couponTooShort3rdPurchaseGCP"; - $k[$j++] = "Coupon too short: 3rd Purchase GCP truncated"; - $k[$j++] = false; - return true; - } - var _5L = $k[--$j]; - var _5M = $k[--$j]; - $k[$j++] = $geti(_5M, _5L, $f(_5M.length - _5L)); - } - } - $1.couponexpire = -1; - var _5O = $k[--$j]; - $k[$j++] = _5O; - if (_5O.length >= 1) { - var _5P = $k[--$j]; - $k[$j++] = _5P; - if (~~$z($geti(_5P, 0, 1)) == 3) { - var _5R = $k[--$j]; - var _5S = $geti(_5R, 1, _5R.length - 1); - $k[$j++] = _5S; - if (_5S.length < 6) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortExpirationDate"; - $k[$j++] = "Coupon too short: Expiration date"; - $k[$j++] = false; - return true; - } - var _5T = $k[--$j]; - var _5V = ~~$z($geti(_5T, 2, 2)); - $k[$j++] = _5T; - if (_5V < 1 || _5V > 12) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponExpirationDateBadMonth"; - $k[$j++] = "Invalid month in expiration date"; - $k[$j++] = false; - return true; - } - var _5W = $k[--$j]; - var _5Y = ~~$z($geti(_5W, 0, 2)); - var _5Z = _5Y - 21; - $k[$j++] = _5W; - $k[$j++] = _5Y; - $k[$j++] = _5Z; - if (_5Z >= 51) { - $j--; - var _5a = $k[--$j]; - $k[$j++] = $f(_5a + 1900); - } else { - if ($k[--$j] <= -50) { - var _5c = $k[--$j]; - $k[$j++] = $f(_5c + 2100); - } else { - var _5d = $k[--$j]; - $k[$j++] = $f(_5d + 2e3); - } - } - var _5e = $k[--$j]; - $k[$j++] = _5e % 400 == 0 || _5e % 4 == 0 && _5e % 100 != 0; - $k[$j++] = Infinity; - var _5f = $k[--$j]; - var _5h = $k[--$j] ? 29 : 28; - $k[$j++] = _5f; - $k[$j++] = 31; - $k[$j++] = _5h; - $k[$j++] = 31; - $k[$j++] = 30; - $k[$j++] = 31; - $k[$j++] = 30; - $k[$j++] = 31; - $k[$j++] = 31; - $k[$j++] = 30; - $k[$j++] = 31; - $k[$j++] = 30; - $k[$j++] = 31; - var _5i = $a(); - var _5j = $k[--$j]; - var _5n = ~~$z($geti(_5j, 4, 2)); - $k[$j++] = _5j; - if ($get(_5i, ~~$z($geti(_5j, 2, 2)) - 1) < _5n || _5n < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponExpirationDateBadDay"; - $k[$j++] = "Invalid day of month in expiration date"; - $k[$j++] = false; - return true; - } - var _5o = $k[--$j]; - $1.couponexpire = ~~$z($geti(_5o, 0, 6)); - $k[$j++] = $geti(_5o, 6, _5o.length - 6); - } - } - var _5r = $k[--$j]; - $k[$j++] = _5r; - if (_5r.length >= 1) { - var _5s = $k[--$j]; - $k[$j++] = _5s; - if (~~$z($geti(_5s, 0, 1)) == 4) { - var _5u = $k[--$j]; - var _5v = $geti(_5u, 1, _5u.length - 1); - $k[$j++] = _5v; - if (_5v.length < 6) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortStartDate"; - $k[$j++] = "Coupon too short: Start date"; - $k[$j++] = false; - return true; - } - var _5w = $k[--$j]; - var _5y = ~~$z($geti(_5w, 2, 2)); - $k[$j++] = _5w; - if (_5y < 1 || _5y > 12) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponStartDateBadMonth"; - $k[$j++] = "Invalid month in start date"; - $k[$j++] = false; - return true; - } - var _5z = $k[--$j]; - var _61 = ~~$z($geti(_5z, 0, 2)); - var _62 = _61 - 21; - $k[$j++] = _5z; - $k[$j++] = _61; - $k[$j++] = _62; - if (_62 >= 51) { - $j--; - var _63 = $k[--$j]; - $k[$j++] = $f(_63 + 1900); - } else { - if ($k[--$j] <= -50) { - var _65 = $k[--$j]; - $k[$j++] = $f(_65 + 2100); - } else { - var _66 = $k[--$j]; - $k[$j++] = $f(_66 + 2e3); - } - } - var _67 = $k[--$j]; - $k[$j++] = _67 % 400 == 0 || _67 % 4 == 0 && _67 % 100 != 0; - $k[$j++] = Infinity; - var _68 = $k[--$j]; - var _6A = $k[--$j] ? 29 : 28; - $k[$j++] = _68; - $k[$j++] = 31; - $k[$j++] = _6A; - $k[$j++] = 31; - $k[$j++] = 30; - $k[$j++] = 31; - $k[$j++] = 30; - $k[$j++] = 31; - $k[$j++] = 31; - $k[$j++] = 30; - $k[$j++] = 31; - $k[$j++] = 30; - $k[$j++] = 31; - var _6B = $a(); - var _6C = $k[--$j]; - var _6G = ~~$z($geti(_6C, 4, 2)); - $k[$j++] = _6C; - if ($get(_6B, ~~$z($geti(_6C, 2, 2)) - 1) < _6G || _6G < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponStartDateBadDay"; - $k[$j++] = "Invalid day of month in start date"; - $k[$j++] = false; - return true; - } - var _6H = $k[--$j]; - $1.couponstart = ~~$z($geti(_6H, 0, 6)); - $k[$j++] = _6H; - if ($1.couponexpire != -1 && $1.couponexpire < $1.couponstart) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponExpireDateBeforeStartDate"; - $k[$j++] = "Coupon expires before it starts"; - $k[$j++] = false; - return true; - } - var _6M = $k[--$j]; - $k[$j++] = $geti(_6M, 6, _6M.length - 6); - } - } - var _6O = $k[--$j]; - $k[$j++] = _6O; - if (_6O.length >= 1) { - var _6P = $k[--$j]; - $k[$j++] = _6P; - if (~~$z($geti(_6P, 0, 1)) == 5) { - var _6R = $k[--$j]; - var _6S = $geti(_6R, 1, _6R.length - 1); - $k[$j++] = _6S; - if (_6S.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortSerialNumberVLI"; - $k[$j++] = "Coupon too short: Missing Serial Number VLI"; - $k[$j++] = false; - return true; - } - var _6T = $k[--$j]; - var _6U = $geti(_6T, 0, 1); - $k[$j++] = _6T; - $k[$j++] = ~~$z(_6U) + 6 + 1; - if (~~$z(_6U) + 6 + 1 > _6T.length) { - $j -= 3; - $k[$j++] = "bwipp.GS1couponTooShortSerialNumber"; - $k[$j++] = "Coupon too short: Serial Number truncated"; - $k[$j++] = false; - return true; - } - var _6V = $k[--$j]; - var _6W = $k[--$j]; - $k[$j++] = $geti(_6W, _6V, $f(_6W.length - _6V)); - } - } - var _6Y = $k[--$j]; - $k[$j++] = _6Y; - if (_6Y.length >= 1) { - var _6Z = $k[--$j]; - $k[$j++] = _6Z; - if (~~$z($geti(_6Z, 0, 1)) == 6) { - var _6b = $k[--$j]; - var _6c = $geti(_6b, 1, _6b.length - 1); - $k[$j++] = _6c; - if (_6c.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortRetailerGCPGLNVLI"; - $k[$j++] = "Coupon too short: Missing Retailer GCP/GLN VLI"; - $k[$j++] = false; - return true; - } - var _6d = $k[--$j]; - var _6f = ~~$z($geti(_6d, 0, 1)); - $k[$j++] = _6d; - $k[$j++] = _6f; - if (_6f < 1 || _6f > 7) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBadRetailerGCPGLNVLI"; - $k[$j++] = "Coupon Retailer GCP/GLN length indicator must be 1-7"; - $k[$j++] = false; - return true; - } - var _6g = $k[--$j]; - var _6h = $k[--$j]; - $k[$j++] = _6h; - $k[$j++] = $f($f(_6g + 6) + 1); - if ($f($f(_6g + 6) + 1) > _6h.length) { - $j -= 3; - $k[$j++] = "bwipp.GS1couponTooShortRetailerGCPGLN"; - $k[$j++] = "Coupon too short: Retailer GCP/GLN truncated"; - $k[$j++] = false; - return true; - } - var _6i = $k[--$j]; - var _6j = $k[--$j]; - $k[$j++] = $geti(_6j, _6i, $f(_6j.length - _6i)); - } - } - var _6l = $k[--$j]; - $k[$j++] = _6l; - if (_6l.length >= 1) { - var _6m = $k[--$j]; - $k[$j++] = _6m; - if (~~$z($geti(_6m, 0, 1)) == 9) { - var _6o = $k[--$j]; - var _6p = $geti(_6o, 1, _6o.length - 1); - $k[$j++] = _6p; - if (_6p.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortSaveValueCode"; - $k[$j++] = "Coupon too short: Missing Save Value Code"; - $k[$j++] = false; - return true; - } - var _6q = $k[--$j]; - var _6s = ~~$z($geti(_6q, 0, 1)); - $k[$j++] = _6q; - if (_6s > 6 || (_6s == 3 || _6s == 4)) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBadSaveValueCode"; - $k[$j++] = "Coupon Save Value Code must be 0,1,2,5 or 6"; - $k[$j++] = false; - return true; - } - var _6t = $k[--$j]; - var _6u = $geti(_6t, 1, _6t.length - 1); - $k[$j++] = _6u; - if (_6u.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortSaveValueAppliesToItem"; - $k[$j++] = "Coupon too short: Missing Save Value Applies to Item"; - $k[$j++] = false; - return true; - } - var _6v = $k[--$j]; - $k[$j++] = _6v; - if (~~$z($geti(_6v, 0, 1)) > 2) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBadSaveValueAppliesToItem"; - $k[$j++] = "Coupon Save Value Applies to Item must be 0-2"; - $k[$j++] = false; - return true; - } - var _6x = $k[--$j]; - var _6y = $geti(_6x, 1, _6x.length - 1); - $k[$j++] = _6y; - if (_6y.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortStoreCouponFlag"; - $k[$j++] = "Coupon too short: Missing Store Coupon Flag"; - $k[$j++] = false; - return true; - } - var _6z = $k[--$j]; - var _70 = $geti(_6z, 1, _6z.length - 1); - $k[$j++] = _70; - if (_70.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortDontMultiplyFlag"; - $k[$j++] = "Coupon too short: Missing Don't Multiply Flag"; - $k[$j++] = false; - return true; - } - var _71 = $k[--$j]; - $k[$j++] = _71; - if (~~$z($geti(_71, 0, 1)) > 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBadDontMultiplyFlag"; - $k[$j++] = "Don't Multiply Flag must be 0 or 1"; - $k[$j++] = false; - return true; - } - var _73 = $k[--$j]; - $k[$j++] = $geti(_73, 1, _73.length - 1); - } - } - var _75 = $k[--$j]; - $k[$j++] = _75; - if (_75.length != 0) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponUnrecognisedOptionalField"; - $k[$j++] = "Coupon fields must be 1,2,3,4,5,6 or 9, increasing order"; - $k[$j++] = false; - return true; - } - $j--; - }; - $1.lintcouponposoffer = function() { - var _76 = $k[--$j]; - $k[$j++] = _76; - $k[$j++] = true; - $forall(_76, function() { - var _77 = $k[--$j]; - if (_77 < 48 || _77 > 57) { - $j--; - $k[$j++] = false; - return true; - } - }); - if ($nt($k[--$j])) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponNotNumeric"; - $k[$j++] = "Coupon not numeric"; - $k[$j++] = false; - return true; - } - var _79 = $k[--$j]; - $k[$j++] = _79; - if (_79.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortFormatCode"; - $k[$j++] = "Coupon too short: Missing Format Code"; - $k[$j++] = false; - return true; - } - var _7A = $k[--$j]; - var _7B = $geti(_7A, 0, 1); - $k[$j++] = _7A; - if ($ne(_7B, "0") && $ne(_7B, "1")) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponBadFormatCode"; - $k[$j++] = "Coupon format must be 0 or 1"; - $k[$j++] = false; - return true; - } - var _7C = $k[--$j]; - var _7D = $geti(_7C, 1, _7C.length - 1); - $k[$j++] = _7D; - if (_7D.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortFunderVLI"; - $k[$j++] = "Coupon too short: Missing Funder VLI"; - $k[$j++] = false; - return true; - } - var _7E = $k[--$j]; - var _7G = ~~$z($geti(_7E, 0, 1)); - $k[$j++] = _7E; - $k[$j++] = _7G; - if (_7G > 6) { - $j -= 3; - $k[$j++] = "bwipp.GS1couponBadFunderVLI"; - $k[$j++] = "Coupon Funder length indicator must be 0-6"; - $k[$j++] = false; - return true; - } - var _7H = $k[--$j]; - var _7I = $k[--$j]; - $k[$j++] = _7I; - $k[$j++] = $f($f(_7H + 6) + 1); - if ($f($f(_7H + 6) + 1) > _7I.length) { - $j -= 3; - $k[$j++] = "bwipp.GS1couponTooShortFunder"; - $k[$j++] = "Coupon too short: Truncated Funder ID"; - $k[$j++] = false; - return true; - } - var _7J = $k[--$j]; - var _7K = $k[--$j]; - var _7L = $geti(_7K, _7J, $f(_7K.length - _7J)); - $k[$j++] = _7L; - if (_7L.length < 6) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortOfferCode"; - $k[$j++] = "Coupon too short: Truncated Offer Code"; - $k[$j++] = false; - return true; - } - var _7M = $k[--$j]; - var _7N = $geti(_7M, 6, _7M.length - 6); - $k[$j++] = _7N; - if (_7N.length < 1) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooShortSnVLI"; - $k[$j++] = "Coupon too short: Missing SN VLI"; - $k[$j++] = false; - return true; - } - var _7O = $k[--$j]; - var _7P = $geti(_7O, 0, 1); - $k[$j++] = _7O; - $k[$j++] = ~~$z(_7P) + 6 + 1; - if (~~$z(_7P) + 6 + 1 > _7O.length) { - $j -= 3; - $k[$j++] = "bwipp.GS1couponTooShortSn"; - $k[$j++] = "Coupon too short: Truncated SN"; - $k[$j++] = false; - return true; - } - var _7Q = $k[--$j]; - var _7R = $k[--$j]; - var _7S = $geti(_7R, _7Q, $f(_7R.length - _7Q)); - $k[$j++] = _7S; - if (_7S.length != 0) { - $j -= 2; - $k[$j++] = "bwipp.GS1couponTooLong"; - $k[$j++] = "Coupon too long"; - $k[$j++] = false; - return true; - } - $j--; - }; - var _7U = new Map([ [ "cset", "N" ], [ "min", 18 ], [ "max", 18 ], [ "check", $a([ "lintcsum", "lintkey" ]) ] ]); - var _7X = new Map([ [ "cset", "N" ], [ "min", 14 ], [ "max", 14 ], [ "check", $a([ "lintcsum", "lintkey" ]) ] ]); - var _7Y = $a([ _7X ]); - var _7a = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 20 ], [ "check", $a([]) ] ]); - var _7d = new Map([ [ "cset", "N" ], [ "min", 6 ], [ "max", 6 ], [ "check", $a([ "lintyymmd0" ]) ] ]); - var _7e = $a([ _7d ]); - var _7g = new Map([ [ "cset", "N" ], [ "min", 2 ], [ "max", 2 ], [ "check", $a([]) ] ]); - var _7j = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 20 ], [ "check", $a([]) ] ]); - var _7k = $a([ _7j ]); - var _7m = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 28 ], [ "check", $a([]) ] ]); - var _7p = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 30 ], [ "check", $a([]) ] ]); - var _7q = $a([ _7p ]); - var _7s = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 6 ], [ "check", $a([]) ] ]); - var _7v = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 20 ], [ "check", $a([]) ] ]); - var _7y = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 30 ], [ "check", $a([]) ] ]); - var _7z = $a([ _7y ]); - var _81 = new Map([ [ "cset", "N" ], [ "min", 13 ], [ "max", 13 ], [ "check", $a([ "lintcsum", "lintkey" ]) ] ]); - var _83 = new Map([ [ "cset", "X" ], [ "min", 0 ], [ "max", 17 ], [ "check", $a([]) ] ]); - var _86 = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 20 ], [ "check", $a([]) ] ]); - var _89 = new Map([ [ "cset", "N" ], [ "min", 13 ], [ "max", 13 ], [ "check", $a([ "lintcsum", "lintkey" ]) ] ]); - var _8B = new Map([ [ "cset", "N" ], [ "min", 0 ], [ "max", 12 ], [ "check", $a([]) ] ]); - var _8E = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 8 ], [ "check", $a([]) ] ]); - var _8H = new Map([ [ "cset", "N" ], [ "min", 6 ], [ "max", 6 ], [ "check", $a([]) ] ]); - var _8I = $a([ _8H ]); - var _8K = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 8 ], [ "check", $a([]) ] ]); - var _8N = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 15 ], [ "check", $a([]) ] ]); - var _8O = $a([ _8N ]); - var _8Q = new Map([ [ "cset", "N" ], [ "min", 3 ], [ "max", 3 ], [ "check", $a([ "lintiso4217" ]) ] ]); - var _8S = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 15 ], [ "check", $a([]) ] ]); - var _8T = $a([ _8Q, _8S ]); - var _8V = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 15 ], [ "check", $a([]) ] ]); - var _8W = $a([ _8V ]); - var _8Y = new Map([ [ "cset", "N" ], [ "min", 3 ], [ "max", 3 ], [ "check", $a([ "lintiso4217" ]) ] ]); - var _8a = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 15 ], [ "check", $a([]) ] ]); - var _8b = $a([ _8Y, _8a ]); - var _8d = new Map([ [ "cset", "N" ], [ "min", 4 ], [ "max", 4 ], [ "check", $a([]) ] ]); - var _8e = $a([ _8d ]); - var _8g = new Map([ [ "cset", "N" ], [ "min", 6 ], [ "max", 6 ], [ "check", $a([]) ] ]); - var _8h = $a([ _8g ]); - var _8j = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 30 ], [ "check", $a([]) ] ]); - var _8m = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 30 ], [ "check", $a([ "lintkey" ]) ] ]); - var _8p = new Map([ [ "cset", "N" ], [ "min", 17 ], [ "max", 17 ], [ "check", $a([ "lintcsum", "lintkey" ]) ] ]); - var _8s = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 30 ], [ "check", $a([]) ] ]); - var _8v = new Map([ [ "cset", "N" ], [ "min", 13 ], [ "max", 13 ], [ "check", $a([ "lintcsum", "lintkey" ]) ] ]); - var _8w = $a([ _8v ]); - var _8y = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 20 ], [ "check", $a([]) ] ]); - var _91 = new Map([ [ "cset", "N" ], [ "min", 3 ], [ "max", 3 ], [ "check", $a([ "lintiso3166" ]) ] ]); - var _93 = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 9 ], [ "check", $a([]) ] ]); - var _96 = new Map([ [ "cset", "N" ], [ "min", 3 ], [ "max", 3 ], [ "check", $a([ "lintiso3166" ]) ] ]); - var _99 = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 15 ], [ "check", $a([ "lintiso3166list" ]) ] ]); - var _9C = new Map([ [ "cset", "N" ], [ "min", 3 ], [ "max", 3 ], [ "check", $a([ "lintiso3166" ]) ] ]); - var _9F = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 15 ], [ "check", $a([ "lintiso3166list" ]) ] ]); - var _9I = new Map([ [ "cset", "N" ], [ "min", 3 ], [ "max", 3 ], [ "check", $a([ "lintiso3166" ]) ] ]); - var _9L = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 3 ], [ "check", $a([]) ] ]); - var _9O = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 35 ], [ "check", $a([ "lintpcenc" ]) ] ]); - var _9P = $a([ _9O ]); - var _9R = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 70 ], [ "check", $a([ "lintpcenc" ]) ] ]); - var _9S = $a([ _9R ]); - var _9U = new Map([ [ "cset", "X" ], [ "min", 2 ], [ "max", 2 ], [ "check", $a([ "lintiso3166alpha2" ]) ] ]); - var _9X = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 30 ], [ "check", $a([]) ] ]); - var _9a = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 35 ], [ "check", $a([ "lintpcenc" ]) ] ]); - var _9b = $a([ _9a ]); - var _9d = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 70 ], [ "check", $a([ "lintpcenc" ]) ] ]); - var _9e = $a([ _9d ]); - var _9g = new Map([ [ "cset", "X" ], [ "min", 2 ], [ "max", 2 ], [ "check", $a([ "lintiso3166alpha2" ]) ] ]); - var _9j = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 20 ], [ "check", $a([]) ] ]); - var _9m = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 30 ], [ "check", $a([]) ] ]); - var _9p = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 35 ], [ "check", $a([ "lintpcenc" ]) ] ]); - var _9s = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 1 ], [ "check", $a([ "lintyesno" ]) ] ]); - var _9t = $a([ _9s ]); - var _9v = new Map([ [ "cset", "N" ], [ "min", 6 ], [ "max", 6 ], [ "check", $a([ "lintyymmd0" ]) ] ]); - var _9x = new Map([ [ "cset", "N" ], [ "min", 4 ], [ "max", 4 ], [ "check", $a([ "linthhmm" ]) ] ]); - var _9y = $a([ _9v, _9x ]); - var _A0 = new Map([ [ "cset", "N" ], [ "min", 6 ], [ "max", 6 ], [ "check", $a([ "lintyymmdd" ]) ] ]); - var _A3 = new Map([ [ "cset", "N" ], [ "min", 13 ], [ "max", 13 ], [ "check", $a([]) ] ]); - var _A6 = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 30 ], [ "check", $a([]) ] ]); - var _A9 = new Map([ [ "cset", "N" ], [ "min", 6 ], [ "max", 6 ], [ "check", $a([ "lintyymmdd" ]) ] ]); - var _AB = new Map([ [ "cset", "N" ], [ "min", 4 ], [ "max", 4 ], [ "check", $a([ "linthhmm" ]) ] ]); - var _AE = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 4 ], [ "check", $a([]) ] ]); - var _AH = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 12 ], [ "check", $a([]) ] ]); - var _AK = new Map([ [ "cset", "N" ], [ "min", 6 ], [ "max", 6 ], [ "check", $a([ "lintyymmdd" ]) ] ]); - var _AN = new Map([ [ "cset", "N" ], [ "min", 6 ], [ "max", 6 ], [ "check", $a([ "lintyymmdd" ]) ] ]); - var _AP = new Map([ [ "cset", "N" ], [ "min", 0 ], [ "max", 6 ], [ "check", $a([ "lintyymmdd" ]) ] ]); - var _AS = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 3 ], [ "check", $a([]) ] ]); - var _AV = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 10 ], [ "check", $a([]) ] ]); - var _AY = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 2 ], [ "check", $a([]) ] ]); - var _Ab = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 20 ], [ "check", $a([]) ] ]); - var _Ac = $a([ _Ab ]); - var _Ae = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 30 ], [ "check", $a([ "lintkey" ]) ] ]); - var _Ah = new Map([ [ "cset", "N" ], [ "min", 3 ], [ "max", 3 ], [ "check", $a([ "lintiso3166999" ]) ] ]); - var _Aj = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 27 ], [ "check", $a([]) ] ]); - var _Ak = $a([ _Ah, _Aj ]); - var _Am = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 1 ], [ "check", $a([]) ] ]); - var _Ao = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 1 ], [ "check", $a([]) ] ]); - var _Aq = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 1 ], [ "check", $a([]) ] ]); - var _As = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 1 ], [ "check", $a([ "lintimporteridx" ]) ] ]); - var _Av = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 20 ], [ "check", $a([]) ] ]); - var _Aw = $a([ _Av ]); - var _Ay = new Map([ [ "cset", "X" ], [ "min", 2 ], [ "max", 2 ], [ "check", $a([]) ] ]); - var _B0 = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 28 ], [ "check", $a([]) ] ]); - var _B1 = $a([ _Ay, _B0 ]); - var _B3 = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 20 ], [ "check", $a([]) ] ]); - var _B6 = new Map([ [ "cset", "N" ], [ "min", 4 ], [ "max", 4 ], [ "check", $a([ "lintnonzero" ]) ] ]); - var _B8 = new Map([ [ "cset", "N" ], [ "min", 5 ], [ "max", 5 ], [ "check", $a([ "lintnonzero" ]) ] ]); - var _BA = new Map([ [ "cset", "N" ], [ "min", 3 ], [ "max", 3 ], [ "check", $a([ "lintnonzero" ]) ] ]); - var _BC = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 1 ], [ "check", $a([ "lintwinding" ]) ] ]); - var _BE = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 1 ], [ "check", $a([]) ] ]); - var _BH = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 20 ], [ "check", $a([]) ] ]); - var _BK = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 1 ], [ "check", $a([ "lintzero" ]) ] ]); - var _BM = new Map([ [ "cset", "N" ], [ "min", 13 ], [ "max", 13 ], [ "check", $a([ "lintcsum", "lintkey" ]) ] ]); - var _BO = new Map([ [ "cset", "X" ], [ "min", 0 ], [ "max", 16 ], [ "check", $a([]) ] ]); - var _BR = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 30 ], [ "check", $a([ "lintkey" ]) ] ]); - var _BU = new Map([ [ "cset", "N" ], [ "min", 6 ], [ "max", 6 ], [ "check", $a([]) ] ]); - var _BX = new Map([ [ "cset", "N" ], [ "min", 14 ], [ "max", 14 ], [ "check", $a([ "lintcsum" ]) ] ]); - var _BZ = new Map([ [ "cset", "N" ], [ "min", 4 ], [ "max", 4 ], [ "check", $a([ "lintpieceoftotal" ]) ] ]); - var _Bc = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 34 ], [ "check", $a([ "lintiban" ]) ] ]); - var _Bf = new Map([ [ "cset", "N" ], [ "min", 8 ], [ "max", 8 ], [ "check", $a([ "lintyymmddhh" ]) ] ]); - var _Bh = new Map([ [ "cset", "N" ], [ "min", 0 ], [ "max", 4 ], [ "check", $a([ "lintmmoptss" ]) ] ]); - var _Bk = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 50 ], [ "check", $a([]) ] ]); - var _Bn = new Map([ [ "cset", "C" ], [ "min", 1 ], [ "max", 30 ], [ "check", $a([ "lintkey" ]) ] ]); - var _Bq = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 12 ], [ "check", $a([ "lintnozeroprefix" ]) ] ]); - var _Bt = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 20 ], [ "check", $a([]) ] ]); - var _Bw = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 25 ], [ "check", $a([ "lintcsumalpha", "lintkey" ]) ] ]); - var _Bz = new Map([ [ "cset", "N" ], [ "min", 18 ], [ "max", 18 ], [ "check", $a([ "lintcsum" ]) ] ]); - var _C0 = $a([ _Bz ]); - var _C2 = new Map([ [ "cset", "N" ], [ "min", 1 ], [ "max", 10 ], [ "check", $a([]) ] ]); - var _C5 = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 25 ], [ "check", $a([]) ] ]); - var _C8 = new Map([ [ "cset", "N" ], [ "min", 14 ], [ "max", 14 ], [ "check", $a([ "lintcsum" ]) ] ]); - var _CA = new Map([ [ "cset", "N" ], [ "min", 4 ], [ "max", 4 ], [ "check", $a([ "lintpieceoftotal" ]) ] ]); - var _CD = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 70 ], [ "check", $a([ "lintcouponcode" ]) ] ]); - var _CG = new Map([ [ "cset", "N" ], [ "min", 4 ], [ "max", 4 ], [ "check", $a([]) ] ]); - var _CJ = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 70 ], [ "check", $a([ "lintcouponposoffer" ]) ] ]); - var _CM = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 70 ], [ "check", $a([]) ] ]); - var _CP = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 30 ], [ "check", $a([]) ] ]); - var _CS = new Map([ [ "cset", "X" ], [ "min", 1 ], [ "max", 90 ], [ "check", $a([]) ] ]); - var _CT = $a([ _CS ]); - var _CU = new Map([ [ "00", $a([ _7U ]) ], [ "01", _7Y ], [ "02", _7Y ], [ "10", $a([ _7a ]) ], [ "11", _7e ], [ "12", _7e ], [ "13", _7e ], [ "14", _7e ], [ "15", _7e ], [ "16", _7e ], [ "17", _7e ], [ "20", $a([ _7g ]) ], [ "21", _7k ], [ "22", _7k ], [ "235", $a([ _7m ]) ], [ "240", _7q ], [ "241", _7q ], [ "242", $a([ _7s ]) ], [ "243", $a([ _7v ]) ], [ "250", _7z ], [ "251", _7z ], [ "253", $a([ _81, _83 ]) ], [ "254", $a([ _86 ]) ], [ "255", $a([ _89, _8B ]) ], [ "30", $a([ _8E ]) ], [ "3100", _8I ], [ "3101", _8I ], [ "3102", _8I ], [ "3103", _8I ], [ "3104", _8I ], [ "3105", _8I ], [ "3110", _8I ], [ "3111", _8I ], [ "3112", _8I ], [ "3113", _8I ], [ "3114", _8I ], [ "3115", _8I ], [ "3120", _8I ], [ "3121", _8I ], [ "3122", _8I ], [ "3123", _8I ], [ "3124", _8I ], [ "3125", _8I ], [ "3130", _8I ], [ "3131", _8I ], [ "3132", _8I ], [ "3133", _8I ], [ "3134", _8I ], [ "3135", _8I ], [ "3140", _8I ], [ "3141", _8I ], [ "3142", _8I ], [ "3143", _8I ], [ "3144", _8I ], [ "3145", _8I ], [ "3150", _8I ], [ "3151", _8I ], [ "3152", _8I ], [ "3153", _8I ], [ "3154", _8I ], [ "3155", _8I ], [ "3160", _8I ], [ "3161", _8I ], [ "3162", _8I ], [ "3163", _8I ], [ "3164", _8I ], [ "3165", _8I ], [ "3200", _8I ], [ "3201", _8I ], [ "3202", _8I ], [ "3203", _8I ], [ "3204", _8I ], [ "3205", _8I ], [ "3210", _8I ], [ "3211", _8I ], [ "3212", _8I ], [ "3213", _8I ], [ "3214", _8I ], [ "3215", _8I ], [ "3220", _8I ], [ "3221", _8I ], [ "3222", _8I ], [ "3223", _8I ], [ "3224", _8I ], [ "3225", _8I ], [ "3230", _8I ], [ "3231", _8I ], [ "3232", _8I ], [ "3233", _8I ], [ "3234", _8I ], [ "3235", _8I ], [ "3240", _8I ], [ "3241", _8I ], [ "3242", _8I ], [ "3243", _8I ], [ "3244", _8I ], [ "3245", _8I ], [ "3250", _8I ], [ "3251", _8I ], [ "3252", _8I ], [ "3253", _8I ], [ "3254", _8I ], [ "3255", _8I ], [ "3260", _8I ], [ "3261", _8I ], [ "3262", _8I ], [ "3263", _8I ], [ "3264", _8I ], [ "3265", _8I ], [ "3270", _8I ], [ "3271", _8I ], [ "3272", _8I ], [ "3273", _8I ], [ "3274", _8I ], [ "3275", _8I ], [ "3280", _8I ], [ "3281", _8I ], [ "3282", _8I ], [ "3283", _8I ], [ "3284", _8I ], [ "3285", _8I ], [ "3290", _8I ], [ "3291", _8I ], [ "3292", _8I ], [ "3293", _8I ], [ "3294", _8I ], [ "3295", _8I ], [ "3300", _8I ], [ "3301", _8I ], [ "3302", _8I ], [ "3303", _8I ], [ "3304", _8I ], [ "3305", _8I ], [ "3310", _8I ], [ "3311", _8I ], [ "3312", _8I ], [ "3313", _8I ], [ "3314", _8I ], [ "3315", _8I ], [ "3320", _8I ], [ "3321", _8I ], [ "3322", _8I ], [ "3323", _8I ], [ "3324", _8I ], [ "3325", _8I ], [ "3330", _8I ], [ "3331", _8I ], [ "3332", _8I ], [ "3333", _8I ], [ "3334", _8I ], [ "3335", _8I ], [ "3340", _8I ], [ "3341", _8I ], [ "3342", _8I ], [ "3343", _8I ], [ "3344", _8I ], [ "3345", _8I ], [ "3350", _8I ], [ "3351", _8I ], [ "3352", _8I ], [ "3353", _8I ], [ "3354", _8I ], [ "3355", _8I ], [ "3360", _8I ], [ "3361", _8I ], [ "3362", _8I ], [ "3363", _8I ], [ "3364", _8I ], [ "3365", _8I ], [ "3370", _8I ], [ "3371", _8I ], [ "3372", _8I ], [ "3373", _8I ], [ "3374", _8I ], [ "3375", _8I ], [ "3400", _8I ], [ "3401", _8I ], [ "3402", _8I ], [ "3403", _8I ], [ "3404", _8I ], [ "3405", _8I ], [ "3410", _8I ], [ "3411", _8I ], [ "3412", _8I ], [ "3413", _8I ], [ "3414", _8I ], [ "3415", _8I ], [ "3420", _8I ], [ "3421", _8I ], [ "3422", _8I ], [ "3423", _8I ], [ "3424", _8I ], [ "3425", _8I ], [ "3430", _8I ], [ "3431", _8I ], [ "3432", _8I ], [ "3433", _8I ], [ "3434", _8I ], [ "3435", _8I ], [ "3440", _8I ], [ "3441", _8I ], [ "3442", _8I ], [ "3443", _8I ], [ "3444", _8I ], [ "3445", _8I ], [ "3450", _8I ], [ "3451", _8I ], [ "3452", _8I ], [ "3453", _8I ], [ "3454", _8I ], [ "3455", _8I ], [ "3460", _8I ], [ "3461", _8I ], [ "3462", _8I ], [ "3463", _8I ], [ "3464", _8I ], [ "3465", _8I ], [ "3470", _8I ], [ "3471", _8I ], [ "3472", _8I ], [ "3473", _8I ], [ "3474", _8I ], [ "3475", _8I ], [ "3480", _8I ], [ "3481", _8I ], [ "3482", _8I ], [ "3483", _8I ], [ "3484", _8I ], [ "3485", _8I ], [ "3490", _8I ], [ "3491", _8I ], [ "3492", _8I ], [ "3493", _8I ], [ "3494", _8I ], [ "3495", _8I ], [ "3500", _8I ], [ "3501", _8I ], [ "3502", _8I ], [ "3503", _8I ], [ "3504", _8I ], [ "3505", _8I ], [ "3510", _8I ], [ "3511", _8I ], [ "3512", _8I ], [ "3513", _8I ], [ "3514", _8I ], [ "3515", _8I ], [ "3520", _8I ], [ "3521", _8I ], [ "3522", _8I ], [ "3523", _8I ], [ "3524", _8I ], [ "3525", _8I ], [ "3530", _8I ], [ "3531", _8I ], [ "3532", _8I ], [ "3533", _8I ], [ "3534", _8I ], [ "3535", _8I ], [ "3540", _8I ], [ "3541", _8I ], [ "3542", _8I ], [ "3543", _8I ], [ "3544", _8I ], [ "3545", _8I ], [ "3550", _8I ], [ "3551", _8I ], [ "3552", _8I ], [ "3553", _8I ], [ "3554", _8I ], [ "3555", _8I ], [ "3560", _8I ], [ "3561", _8I ], [ "3562", _8I ], [ "3563", _8I ], [ "3564", _8I ], [ "3565", _8I ], [ "3570", _8I ], [ "3571", _8I ], [ "3572", _8I ], [ "3573", _8I ], [ "3574", _8I ], [ "3575", _8I ], [ "3600", _8I ], [ "3601", _8I ], [ "3602", _8I ], [ "3603", _8I ], [ "3604", _8I ], [ "3605", _8I ], [ "3610", _8I ], [ "3611", _8I ], [ "3612", _8I ], [ "3613", _8I ], [ "3614", _8I ], [ "3615", _8I ], [ "3620", _8I ], [ "3621", _8I ], [ "3622", _8I ], [ "3623", _8I ], [ "3624", _8I ], [ "3625", _8I ], [ "3630", _8I ], [ "3631", _8I ], [ "3632", _8I ], [ "3633", _8I ], [ "3634", _8I ], [ "3635", _8I ], [ "3640", _8I ], [ "3641", _8I ], [ "3642", _8I ], [ "3643", _8I ], [ "3644", _8I ], [ "3645", _8I ], [ "3650", _8I ], [ "3651", _8I ], [ "3652", _8I ], [ "3653", _8I ], [ "3654", _8I ], [ "3655", _8I ], [ "3660", _8I ], [ "3661", _8I ], [ "3662", _8I ], [ "3663", _8I ], [ "3664", _8I ], [ "3665", _8I ], [ "3670", _8I ], [ "3671", _8I ], [ "3672", _8I ], [ "3673", _8I ], [ "3674", _8I ], [ "3675", _8I ], [ "3680", _8I ], [ "3681", _8I ], [ "3682", _8I ], [ "3683", _8I ], [ "3684", _8I ], [ "3685", _8I ], [ "3690", _8I ], [ "3691", _8I ], [ "3692", _8I ], [ "3693", _8I ], [ "3694", _8I ], [ "3695", _8I ], [ "37", $a([ _8K ]) ], [ "3900", _8O ], [ "3901", _8O ], [ "3902", _8O ], [ "3903", _8O ], [ "3904", _8O ], [ "3905", _8O ], [ "3906", _8O ], [ "3907", _8O ], [ "3908", _8O ], [ "3909", _8O ], [ "3910", _8T ], [ "3911", _8T ], [ "3912", _8T ], [ "3913", _8T ], [ "3914", _8T ], [ "3915", _8T ], [ "3916", _8T ], [ "3917", _8T ], [ "3918", _8T ], [ "3919", _8T ], [ "3920", _8W ], [ "3921", _8W ], [ "3922", _8W ], [ "3923", _8W ], [ "3924", _8W ], [ "3925", _8W ], [ "3926", _8W ], [ "3927", _8W ], [ "3928", _8W ], [ "3929", _8W ], [ "3930", _8b ], [ "3931", _8b ], [ "3932", _8b ], [ "3933", _8b ], [ "3934", _8b ], [ "3935", _8b ], [ "3936", _8b ], [ "3937", _8b ], [ "3938", _8b ], [ "3939", _8b ], [ "3940", _8e ], [ "3941", _8e ], [ "3942", _8e ], [ "3943", _8e ], [ "3950", _8h ], [ "3951", _8h ], [ "3952", _8h ], [ "3953", _8h ], [ "3954", _8h ], [ "3955", _8h ], [ "400", $a([ _8j ]) ], [ "401", $a([ _8m ]) ], [ "402", $a([ _8p ]) ], [ "403", $a([ _8s ]) ], [ "410", _8w ], [ "411", _8w ], [ "412", _8w ], [ "413", _8w ], [ "414", _8w ], [ "415", _8w ], [ "416", _8w ], [ "417", _8w ], [ "420", $a([ _8y ]) ], [ "421", $a([ _91, _93 ]) ], [ "422", $a([ _96 ]) ], [ "423", $a([ _99 ]) ], [ "424", $a([ _9C ]) ], [ "425", $a([ _9F ]) ], [ "426", $a([ _9I ]) ], [ "427", $a([ _9L ]) ], [ "4300", _9P ], [ "4301", _9P ], [ "4302", _9S ], [ "4303", _9S ], [ "4304", _9S ], [ "4305", _9S ], [ "4306", _9S ], [ "4307", $a([ _9U ]) ], [ "4308", $a([ _9X ]) ], [ "4310", _9b ], [ "4311", _9b ], [ "4312", _9e ], [ "4313", _9e ], [ "4314", _9e ], [ "4315", _9e ], [ "4316", _9e ], [ "4317", $a([ _9g ]) ], [ "4318", $a([ _9j ]) ], [ "4319", $a([ _9m ]) ], [ "4320", $a([ _9p ]) ], [ "4321", _9t ], [ "4322", _9t ], [ "4323", _9t ], [ "4324", _9y ], [ "4325", _9y ], [ "4326", $a([ _A0 ]) ], [ "7001", $a([ _A3 ]) ], [ "7002", $a([ _A6 ]) ], [ "7003", $a([ _A9, _AB ]) ], [ "7004", $a([ _AE ]) ], [ "7005", $a([ _AH ]) ], [ "7006", $a([ _AK ]) ], [ "7007", $a([ _AN, _AP ]) ], [ "7008", $a([ _AS ]) ], [ "7009", $a([ _AV ]) ], [ "7010", $a([ _AY ]) ], [ "7020", _Ac ], [ "7021", _Ac ], [ "7022", _Ac ], [ "7023", $a([ _Ae ]) ], [ "7030", _Ak ], [ "7031", _Ak ], [ "7032", _Ak ], [ "7033", _Ak ], [ "7034", _Ak ], [ "7035", _Ak ], [ "7036", _Ak ], [ "7037", _Ak ], [ "7038", _Ak ], [ "7039", _Ak ], [ "7040", $a([ _Am, _Ao, _Aq, _As ]) ], [ "710", _Aw ], [ "711", _Aw ], [ "712", _Aw ], [ "713", _Aw ], [ "714", _Aw ], [ "7230", _B1 ], [ "7231", _B1 ], [ "7232", _B1 ], [ "7233", _B1 ], [ "7234", _B1 ], [ "7235", _B1 ], [ "7236", _B1 ], [ "7237", _B1 ], [ "7238", _B1 ], [ "7239", _B1 ], [ "7240", $a([ _B3 ]) ], [ "8001", $a([ _B6, _B8, _BA, _BC, _BE ]) ], [ "8002", $a([ _BH ]) ], [ "8003", $a([ _BK, _BM, _BO ]) ], [ "8004", $a([ _BR ]) ], [ "8005", $a([ _BU ]) ], [ "8006", $a([ _BX, _BZ ]) ], [ "8007", $a([ _Bc ]) ], [ "8008", $a([ _Bf, _Bh ]) ], [ "8009", $a([ _Bk ]) ], [ "8010", $a([ _Bn ]) ], [ "8011", $a([ _Bq ]) ], [ "8012", $a([ _Bt ]) ], [ "8013", $a([ _Bw ]) ], [ "8017", _C0 ], [ "8018", _C0 ], [ "8019", $a([ _C2 ]) ], [ "8020", $a([ _C5 ]) ], [ "8026", $a([ _C8, _CA ]) ], [ "8110", $a([ _CD ]) ], [ "8111", $a([ _CG ]) ], [ "8112", $a([ _CJ ]) ], [ "8200", $a([ _CM ]) ], [ "90", $a([ _CP ]) ], [ "91", _CT ], [ "92", _CT ], [ "93", _CT ], [ "94", _CT ], [ "95", _CT ], [ "96", _CT ], [ "97", _CT ], [ "98", _CT ], [ "99", _CT ] ]); - $1.gs1syntax = _CU; - $k[$j++] = true; - for (var _CX = 0, _CW = $1.vals.length - 1; _CX <= _CW; _CX += 1) { - $1.ai = $get($1.ais, _CX); - $1.val = $get($1.vals, _CX); - var _Ce = $get($1.gs1syntax, $1.ai) !== undefined; - if (_Ce) { - $forall($get($1.gs1syntax, $1.ai), function() { - $1.props = $k[--$j]; - var _Ck = $get($1.props, "max"); - var _Cl = $1.val; - var _Cm = _Cl.length; - if (_Ck > _Cl.length) { - var _ = _Cm; - _Cm = _Ck; - _Ck = _; - } - $1.eval = $geti($1.val, 0, _Ck); - var _Cr = $1.eval.length; - $1.val = $geti($1.val, _Cr, $1.val.length - _Cr); - if ($1.eval.length < $get($1.props, "min")) { - $j--; - $k[$j++] = "bwipp.GS1valueTooShort"; - $k[$j++] = "Too short"; - $k[$j++] = false; - return true; - } - var _Cx = new Map([ [ "N", "lintnumeric" ], [ "X", "lintcset82" ], [ "C", "lintcset39" ] ]); - $k[$j++] = $1.eval; - if ($1[$get(_Cx, $get($1.props, "cset"))]() === true) { - return true; - } - if ($1.eval.length > 0) { - $forall($get($1.props, "check"), function() { - var _D8 = $1[$k[--$j]]; - $k[$j++] = $1.eval; + } //#1854 + if ($1.eval.length > 0) { //#1857 + $forall($get($1.props, 'check'), function() { //#1856 + var _D8 = $1[$k[--$j]]; //#1856 + $k[$j++] = $1.eval; //#1856 if (_D8() === true) { return true; - } - }); - } - }); - var _D9 = $k[--$j]; - $k[$j++] = _D9; - if ($nt(_D9)) { - break; - } - if ($1.val.length != 0) { - $j--; - $k[$j++] = "bwipp.GS1valueTooLong"; - $k[$j++] = "Too long"; - $k[$j++] = false; - break; - } - } else { - $j--; - $k[$j++] = "bwipp.GS1unknownAI"; - $k[$j++] = "Unrecognised AI"; - $k[$j++] = false; - break; - } - } - if ($nt($k[--$j])) { - var _DC = $k[--$j]; - var _DE = $s(_DC.length + $1.ai.length + 5); - $puti(_DE, 0, "AI "); - $puti(_DE, 3, $1.ai); - $puti(_DE, 3 + $1.ai.length, ": "); - $puti(_DE, 5 + $1.ai.length, _DC); - $k[$j++] = _DE; - $0.raiseerror(); - } - $k[$j++] = true; + } //#1856 + }); //#1856 + } //#1856 + }); //#1856 + var _D9 = $k[--$j]; //#1859 + $k[$j++] = _D9; //#1859 + if ($nt(_D9)) { //#1859 + break; //#1859 + } //#1859 + if ($1.val.length != 0) { //#1862 + $j--; //#1861 + $k[$j++] = 'bwipp.GS1valueTooLong'; //#1861 + $k[$j++] = "Too long"; //#1861 + $k[$j++] = false; //#1861 + break; //#1861 + } //#1861 + } else { //#1864 + $j--; //#1864 + $k[$j++] = 'bwipp.GS1unknownAI'; //#1864 + $k[$j++] = "Unrecognised AI"; //#1864 + $k[$j++] = false; //#1864 + break; //#1864 + } //#1864 + } //#1864 + if ($nt($k[--$j])) { //#1874 + var _DC = $k[--$j]; //#1868 + var _DE = $s((_DC.length + $1.ai.length) + 5); //#1868 + $puti(_DE, 0, "AI "); //#1869 + $puti(_DE, 3, $1.ai); //#1870 + $puti(_DE, 3 + $1.ai.length, ": "); //#1871 + $puti(_DE, 5 + $1.ai.length, _DC); //#1872 + $k[$j++] = _DE; //#1873 + $0.raiseerror(); //#1873 + } //#1873 + $k[$j++] = true; //#1877 }; $0.renmatrix = function() { - if ($0.bwipjs_dontdraw) { - return; - } - var $1 = {}; - $1.args = $k[--$j]; - $1.width = 1; - $1.height = 1; - $1.barcolor = "unset"; - $1.backgroundcolor = "unset"; - $1.colormap = "unset"; - $1.dotty = false; - $1.inkspread = 0; - $1.inkspreadh = 0; - $1.inkspreadv = 0; - $1.includetext = false; - $1.txt = $a([]); - $1.textcolor = "unset"; - $1.textxalign = "unset"; - $1.textyalign = "unset"; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = 0; - $1.textgaps = 0; - $1.alttext = ""; - $forall($1.args, function() { - var _4 = $k[--$j]; - $1[$k[--$j]] = _4; - }); - var _6 = $1.opt; - for (var _B = _6.size, _A = _6.keys(), _9 = 0; _9 < _B; _9++) { - var _7 = _A.next().value; - $1[_7] = _6.get(_7); - } - $1.width = +$1.width; - $1.height = +$1.height; - $1.barcolor = "" + $1.barcolor; - $1.backgroundcolor = "" + $1.backgroundcolor; - $1.inkspread = +$1.inkspread; - $1.inkspreadh = +$1.inkspreadh; - $1.inkspreadv = +$1.inkspreadv; - $1.textcolor = "" + $1.textcolor; - $1.textxalign = "" + $1.textxalign; - $1.textyalign = "" + $1.textyalign; - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.textgaps = +$1.textgaps; - $1.alttext = "" + $1.alttext; - if ($1.inkspread != 0) { - $1.inkspreadh = $1.inkspread; - } - if ($1.inkspread != 0) { - $1.inkspreadv = $1.inkspread; - } + if ($0.bwipjs_dontdraw) { //#2145 + return; //#2145 + } //#2145 + var $1 = {}; //#2147 + $1.args = $k[--$j]; //#2149 + $1.width = 1; //#2152 + $1.height = 1; //#2153 + $1.barcolor = "unset"; //#2154 + $1.backgroundcolor = "unset"; //#2155 + $1.colormap = "unset"; //#2156 + $1.dotty = false; //#2157 + $1.inkspread = 0; //#2158 + $1.inkspreadh = 0; //#2159 + $1.inkspreadv = 0; //#2160 + $1.includetext = false; //#2161 + $1.txt = $a([]); //#2162 + $1.textcolor = "unset"; //#2163 + $1.textxalign = "unset"; //#2164 + $1.textyalign = "unset"; //#2165 + $1.textfont = "OCR-B"; //#2166 + $1.textsize = 10; //#2167 + $1.textxoffset = 0; //#2168 + $1.textyoffset = 0; //#2169 + $1.textgaps = 0; //#2170 + $1.alttext = ""; //#2171 + $forall($1.args, function() { //#2174 + var _4 = $k[--$j]; //#2174 + $1[$k[--$j]] = _4; //#2174 + }); //#2174 + var _6 = $1.opt; //#2175 + for (var _B = _6.size, _A = _6.keys(), _9 = 0; _9 < _B; _9++) { //#2175 + var _7 = _A.next().value; //#2175 + $1[_7] = _6.get(_7); //#2175 + } //#2175 + $1.width = +$1.width; //#2177 + $1.height = +$1.height; //#2178 + $1.barcolor = "" + $1.barcolor; //#2179 + $1.backgroundcolor = "" + $1.backgroundcolor; //#2180 + $1.inkspread = +$1.inkspread; //#2181 + $1.inkspreadh = +$1.inkspreadh; //#2182 + $1.inkspreadv = +$1.inkspreadv; //#2183 + $1.textcolor = "" + $1.textcolor; //#2184 + $1.textxalign = "" + $1.textxalign; //#2185 + $1.textyalign = "" + $1.textyalign; //#2186 + $1.textfont = "" + $1.textfont; //#2187 + $1.textsize = +$1.textsize; //#2188 + $1.textxoffset = +$1.textxoffset; //#2189 + $1.textyoffset = +$1.textyoffset; //#2190 + $1.textgaps = +$1.textgaps; //#2191 + $1.alttext = "" + $1.alttext; //#2192 + if ($1.inkspread != 0) { //#2194 + $1.inkspreadh = $1.inkspread; //#2194 + } //#2194 + if ($1.inkspread != 0) { //#2195 + $1.inkspreadv = $1.inkspread; //#2195 + } //#2195 $1.xyget = function() { - var _X = $k[--$j]; - var _a = $get($1.pixs, $f($k[--$j] + _X * $1.pixx)); - $k[$j++] = _a; - }; + var _X = $k[--$j]; //#2197 + var _a = $get($1.pixs, $f($k[--$j] + (_X * $1.pixx))); //#2197 + $k[$j++] = _a; //#2197 + }; //#2197 $1.cget = function() { - var _c = $k[--$j]; - var _f = $get($1.cache, $f($k[--$j] + _c * $1.pixx)); - var _g = $k[--$j]; - $k[$j++] = $an(_g, _f); - }; + var _c = $k[--$j]; //#2198 + var _f = $get($1.cache, $f($k[--$j] + (_c * $1.pixx))); //#2198 + var _g = $k[--$j]; //#2198 + $k[$j++] = $an(_g, _f); //#2198 + }; //#2198 $1.cput = function() { - var _h = $k[--$j]; - $k[$j++] = _h; - if (_h % 4 == 0) { - var _i = $k[--$j]; - var _j = $k[--$j]; - var _k = $k[--$j]; - var _l = $1.pixx; - var _m = $1.cache; - $put(_m, $f(_k + _j * _l), $or($get(_m, $f(_k + _j * _l)), _i)); - } else { - $j -= 3; - } - }; + var _h = $k[--$j]; //#2200 + $k[$j++] = _h; //#2204 + if ((_h % 4) == 0) { //#2203 + var _i = $k[--$j]; //#2201 + var _j = $k[--$j]; //#2201 + var _k = $k[--$j]; //#2201 + var _l = $1.pixx; //#2201 + var _m = $1.cache; //#2201 + $put(_m, $f(_k + (_j * _l)), $or($get(_m, $f(_k + (_j * _l))), _i)); //#2201 + } else { //#2203 + $j -= 3; //#2203 + } //#2203 + }; //#2205 $1.abcd = function() { - $k[$j++] = $s(4); - $k[$j++] = 0; - $k[$j++] = Infinity; - var _p = $k[--$j]; - var _q = $k[--$j]; - var _r = $k[--$j]; - var _s = $k[--$j]; - var _v = $f($k[--$j] + _s * $1.pixx); - $k[$j++] = _r; - $k[$j++] = _q; - $k[$j++] = _p; - $k[$j++] = _v; - $aload($geti($1.pixs, _v, 2)); - var _y = $k[--$j]; - var _z = $k[--$j]; - var _13 = $geti($1.pixs, $f($k[--$j] + $1.pixx), 2); - $k[$j++] = _z; - $k[$j++] = _y; - $aload(_13); - var _14 = $a(); - for (var _15 = 0, _16 = _14.length; _15 < _16; _15++) { - var _18 = $k[--$j]; - var _19 = $k[--$j]; - $put(_19, _18, $f($get(_14, _15) + 48)); - $k[$j++] = _19; - $k[$j++] = $f(_18 + 1); - } - $j--; - }; + $k[$j++] = $s(4); //#2212 + $k[$j++] = 0; //#2212 + $k[$j++] = Infinity; //#2212 + var _p = $k[--$j]; //#2209 + var _q = $k[--$j]; //#2209 + var _r = $k[--$j]; //#2209 + var _s = $k[--$j]; //#2209 + var _v = $f($k[--$j] + (_s * $1.pixx)); //#2210 + $k[$j++] = _r; //#2211 + $k[$j++] = _q; //#2211 + $k[$j++] = _p; //#2211 + $k[$j++] = _v; //#2211 + $aload($geti($1.pixs, _v, 2)); //#2211 + var _y = $k[--$j]; //#2211 + var _z = $k[--$j]; //#2211 + var _13 = $geti($1.pixs, $f($k[--$j] + $1.pixx), 2); //#2212 + $k[$j++] = _z; //#2212 + $k[$j++] = _y; //#2212 + $aload(_13); //#2212 + var _14 = $a(); //#2212 + for (var _15 = 0, _16 = _14.length; _15 < _16; _15++) { //#2213 + var _18 = $k[--$j]; //#2213 + var _19 = $k[--$j]; //#2213 + $put(_19, _18, $f($get(_14, _15) + 48)); //#2213 + $k[$j++] = _19; //#2213 + $k[$j++] = $f(_18 + 1); //#2213 + } //#2213 + $j--; //#2213 + }; //#2214 $1.right = function() { - if ($1.dir != 1) { - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $k[$j++] = $1.dir; - $1.cput(); - $k[$j++] = $a([ $1.x, $1.y ]); - } - $1.x = $1.x + 1; - $1.dir = 1; - }; + if ($1.dir != 1) { //#2216 + $k[$j++] = $1.x; //#2216 + $k[$j++] = $1.y; //#2216 + $k[$j++] = $1.dir; //#2216 + $1.cput(); //#2216 + $k[$j++] = $a([$1.x, $1.y]); //#2216 + } //#2216 + $1.x = $1.x + 1; //#2216 + $1.dir = 1; //#2216 + }; //#2216 $1.down = function() { - if ($1.dir != 2) { - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $k[$j++] = $1.dir; - $1.cput(); - $k[$j++] = $a([ $1.x, $1.y ]); - } - $1.y = $1.y + 1; - $1.dir = 2; - }; + if ($1.dir != 2) { //#2217 + $k[$j++] = $1.x; //#2217 + $k[$j++] = $1.y; //#2217 + $k[$j++] = $1.dir; //#2217 + $1.cput(); //#2217 + $k[$j++] = $a([$1.x, $1.y]); //#2217 + } //#2217 + $1.y = $1.y + 1; //#2217 + $1.dir = 2; //#2217 + }; //#2217 $1.left = function() { - if ($1.dir != 4) { - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $k[$j++] = $1.dir; - $1.cput(); - $k[$j++] = $a([ $1.x, $1.y ]); - } - $1.x = $1.x - 1; - $1.dir = 4; - }; + if ($1.dir != 4) { //#2218 + $k[$j++] = $1.x; //#2218 + $k[$j++] = $1.y; //#2218 + $k[$j++] = $1.dir; //#2218 + $1.cput(); //#2218 + $k[$j++] = $a([$1.x, $1.y]); //#2218 + } //#2218 + $1.x = $1.x - 1; //#2218 + $1.dir = 4; //#2218 + }; //#2218 $1.up = function() { - if ($1.dir != 8) { - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $k[$j++] = $1.dir; - $1.cput(); - $k[$j++] = $a([ $1.x, $1.y ]); - } - $1.y = $1.y - 1; - $1.dir = 8; - }; + if ($1.dir != 8) { //#2219 + $k[$j++] = $1.x; //#2219 + $k[$j++] = $1.y; //#2219 + $k[$j++] = $1.dir; //#2219 + $1.cput(); //#2219 + $k[$j++] = $a([$1.x, $1.y]); //#2219 + } //#2219 + $1.y = $1.y - 1; //#2219 + $1.dir = 8; //#2219 + }; //#2219 $1.trace = function() { - $1.y = $k[--$j]; - $1.x = $k[--$j]; - $k[$j++] = "dir"; - $k[$j++] = $f($1.x + 1); - $k[$j++] = $f($1.y + 1); - $1.xyget(); - var _1l = $k[--$j] == 1 ? 8 : 4; - $1[$k[--$j]] = _1l; - $1.sx = $1.x; - $1.sy = $1.y; - $1.sdir = $1.dir; - $k[$j++] = Infinity; - for (;;) { - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $1.abcd(); - for (var _1s = 0, _1t = 1; _1s < _1t; _1s++) { - var _1u = $k[--$j]; - $k[$j++] = _1u; - if ($eq(_1u, "0001") || ($eq(_1u, "0011") || $eq(_1u, "1011"))) { - $j--; - $1.right(); - break; - } - var _1v = $k[--$j]; - $k[$j++] = _1v; - if ($eq(_1v, "0010") || ($eq(_1v, "1010") || $eq(_1v, "1110"))) { - $j--; - $1.down(); - break; - } - var _1w = $k[--$j]; - $k[$j++] = _1w; - if ($eq(_1w, "1000") || ($eq(_1w, "1100") || $eq(_1w, "1101"))) { - $j--; - $1.left(); - break; - } - var _1x = $k[--$j]; - $k[$j++] = _1x; - if ($eq(_1x, "0100") || ($eq(_1x, "0101") || $eq(_1x, "0111"))) { - $j--; - $1.up(); - break; - } - var _1y = $k[--$j]; - $k[$j++] = _1y; - if ($eq(_1y, "1001")) { - if ($1.dir == 2) { - $j--; - $1.left(); - break; - } else { - $j--; - $1.right(); - break; - } - } else { - if ($1.dir == 1) { - $j--; - $1.down(); - break; - } else { - $j--; - $1.up(); - break; - } - } - } - if ($eq($1.x, $1.sx) && $eq($1.y, $1.sy) && $1.dir == $1.sdir) { - break; - } - } - $astore($a($counttomark())); - var _29 = $k[--$j]; - var _2A = $k[--$j]; - $k[$j++] = _29; - $k[$j++] = _2A; - $j--; - }; + $1.y = $k[--$j]; //#2223 + $1.x = $k[--$j]; //#2223 + $k[$j++] = 'dir'; //#2225 + $k[$j++] = $f($1.x + 1); //#2225 + $k[$j++] = $f($1.y + 1); //#2225 + $1.xyget(); //#2225 + var _1l = ($k[--$j] == 1) ? 8 : 4; //#2225 + $1[$k[--$j]] = _1l; //#2225 + $1.sx = $1.x; //#2226 + $1.sy = $1.y; //#2226 + $1.sdir = $1.dir; //#2226 + $k[$j++] = Infinity; //#2230 + for (;;) { //#2244 + $k[$j++] = $1.x; //#2231 + $k[$j++] = $1.y; //#2231 + $1.abcd(); //#2231 + for (var _1s = 0, _1t = 1; _1s < _1t; _1s++) { //#2242 + var _1u = $k[--$j]; //#2233 + $k[$j++] = _1u; //#2233 + if ($eq(_1u, "0001") || ($eq(_1u, "0011") || $eq(_1u, "1011"))) { //#2233 + $j--; //#2233 + $1.right(); //#2233 + break; //#2233 + } //#2233 + var _1v = $k[--$j]; //#2234 + $k[$j++] = _1v; //#2234 + if ($eq(_1v, "0010") || ($eq(_1v, "1010") || $eq(_1v, "1110"))) { //#2234 + $j--; //#2234 + $1.down(); //#2234 + break; //#2234 + } //#2234 + var _1w = $k[--$j]; //#2235 + $k[$j++] = _1w; //#2235 + if ($eq(_1w, "1000") || ($eq(_1w, "1100") || $eq(_1w, "1101"))) { //#2235 + $j--; //#2235 + $1.left(); //#2235 + break; //#2235 + } //#2235 + var _1x = $k[--$j]; //#2236 + $k[$j++] = _1x; //#2236 + if ($eq(_1x, "0100") || ($eq(_1x, "0101") || $eq(_1x, "0111"))) { //#2236 + $j--; //#2236 + $1.up(); //#2236 + break; //#2236 + } //#2236 + var _1y = $k[--$j]; //#2237 + $k[$j++] = _1y; //#2241 + if ($eq(_1y, "1001")) { //#2240 + if ($1.dir == 2) { //#2238 + $j--; //#2238 + $1.left(); //#2238 + break; //#2238 + } else { //#2238 + $j--; //#2238 + $1.right(); //#2238 + break; //#2238 + } //#2238 + } else { //#2240 + if ($1.dir == 1) { //#2240 + $j--; //#2240 + $1.down(); //#2240 + break; //#2240 + } else { //#2240 + $j--; //#2240 + $1.up(); //#2240 + break; //#2240 + } //#2240 + } //#2240 + } //#2240 + if (($eq($1.x, $1.sx) && $eq($1.y, $1.sy)) && ($1.dir == $1.sdir)) { //#2243 + break; //#2243 + } //#2243 + } //#2243 + $astore($a($counttomark())); //#2245 + var _29 = $k[--$j]; //#2245 + var _2A = $k[--$j]; //#2245 + $k[$j++] = _29; //#2245 + $k[$j++] = _2A; //#2245 + $j--; //#2245 + }; //#2247 $1.drawlayer = function() { - $1.pixsorig = $1.pixs; - $1.pixs = $k[--$j]; - $k[$j++] = Infinity; - for (var _2E = 0, _2F = $1.pixx + 2; _2E < _2F; _2E++) { - $k[$j++] = 0; - } - for (var _2J = 0, _2K = $1.pixx, _2I = $1.pixs.length - 1; _2K < 0 ? _2J >= _2I : _2J <= _2I; _2J += _2K) { - $k[$j++] = 0; - $aload($geti($1.pixs, _2J, $1.pixx)); - $k[$j++] = 0; - } - for (var _2P = 0, _2Q = $1.pixx + 2; _2P < _2Q; _2P++) { - $k[$j++] = 0; - } - $1.pixs = $a(); - $1.pixx = $1.pixx + 2; - $1.pixy = $1.pixy + 2; - $k[$j++] = Infinity; - for (var _2V = 0, _2W = $1.pixs.length; _2V < _2W; _2V++) { - $k[$j++] = 0; - } - $1.cache = $a(); - $k[$j++] = Infinity; - for (var _2a = 0, _2Z = $1.pixy - 2; _2a <= _2Z; _2a += 1) { - $1.j = _2a; - for (var _2d = 0, _2c = $1.pixx - 2; _2d <= _2c; _2d += 1) { - $1.i = _2d; - $k[$j++] = "k"; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.abcd(); - var _2g = $k[--$j]; - $1[$k[--$j]] = _2g; - if ($eq($1.k, "0001") || $eq($1.k, "1001")) { - $k[$j++] = 8; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.cget(); - if ($k[--$j] == 0) { - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.trace(); - } - } - if ($eq($1.k, "1110")) { - $k[$j++] = 4; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.cget(); - if ($k[--$j] == 0) { - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.trace(); - } - } - } - } - $1.paths = $a(); - $1.pixx = $1.pixx - 2; - $1.pixy = $1.pixy - 2; - $$.newpath(); - var _2y = $1.paths; - for (var _2z = 0, _30 = _2y.length; _2z < _30; _2z++) { - $1.p = $get(_2y, _2z); - $1.len = $1.p.length; - $aload($get($1.p, $1.len - 1)); - $aload($get($1.p, 0)); - for (var _3A = 0, _39 = $1.len - 1; _3A <= _39; _3A += 1) { - $1.i = _3A; - $aload($get($1.p, ($1.i + 1) % $1.len)); - var _3F = $k[--$j]; - var _3G = $k[--$j]; - var _3H = $k[--$j]; - var _3I = $k[--$j]; - var _3J = $k[--$j]; - var _3K = $k[--$j]; - $k[$j++] = _3I; - $k[$j++] = _3H; - $k[$j++] = _3G; - $k[$j++] = _3F; - $k[$j++] = _3K; - $k[$j++] = _3I; - $k[$j++] = $1.inkspreadh; - if ($lt(_3F, _3J)) { - var _3M = $k[--$j]; - var _3N = $k[--$j]; - $k[$j++] = $f(_3N + _3M); - } else { - var _3O = $k[--$j]; - var _3P = $k[--$j]; - $k[$j++] = $f(_3P - _3O); - } - var _3Q = $k[--$j]; - var _3R = $k[--$j]; - var _3S = $k[--$j]; - var _3T = $k[--$j]; - var _3U = $k[--$j]; - $k[$j++] = _3U; - $k[$j++] = _3Q; - $k[$j++] = _3T; - $k[$j++] = _3S; - $k[$j++] = _3U; - $k[$j++] = $1.inkspreadv; - if ($gt(_3T, _3R)) { - var _3W = $k[--$j]; - var _3X = $k[--$j]; - $k[$j++] = $f(_3X + _3W); - } else { - var _3Y = $k[--$j]; - var _3Z = $k[--$j]; - $k[$j++] = $f(_3Z - _3Y); - } - var _3a = $k[--$j]; - var _3b = $k[--$j]; - var _3c = $k[--$j]; - var _3d = $k[--$j]; - $k[$j++] = _3c; - $k[$j++] = _3b; - $k[$j++] = _3d; - $k[$j++] = $f($1.pixy - _3a); - if ($1.i == 0) { - var _3g = $k[--$j]; - $$.moveto($k[--$j], _3g); - } else { - var _3i = $k[--$j]; - $$.lineto($k[--$j], _3i); - } - } - $$.closepath(); - $j -= 4; - } - $$.fill(); - $1.pixs = $1.pixsorig; - }; + $1.pixsorig = $1.pixs; //#2263 + $1.pixs = $k[--$j]; //#2264 + $k[$j++] = Infinity; //#2274 + for (var _2E = 0, _2F = $1.pixx + 2; _2E < _2F; _2E++) { //#2268 + $k[$j++] = 0; //#2268 + } //#2268 + for (var _2J = 0, _2K = $1.pixx, _2I = $1.pixs.length - 1; _2K < 0 ? _2J >= _2I : _2J <= _2I; _2J += _2K) { //#2273 + $k[$j++] = 0; //#2271 + $aload($geti($1.pixs, _2J, $1.pixx)); //#2271 + $k[$j++] = 0; //#2272 + } //#2272 + for (var _2P = 0, _2Q = $1.pixx + 2; _2P < _2Q; _2P++) { //#2274 + $k[$j++] = 0; //#2274 + } //#2274 + $1.pixs = $a(); //#2274 + $1.pixx = $1.pixx + 2; //#2276 + $1.pixy = $1.pixy + 2; //#2277 + $k[$j++] = Infinity; //#2280 + for (var _2V = 0, _2W = $1.pixs.length; _2V < _2W; _2V++) { //#2280 + $k[$j++] = 0; //#2280 + } //#2280 + $1.cache = $a(); //#2280 + $k[$j++] = Infinity; //#2296 + for (var _2a = 0, _2Z = $1.pixy - 2; _2a <= _2Z; _2a += 1) { //#2300 + $1.j = _2a; //#2285 + for (var _2d = 0, _2c = $1.pixx - 2; _2d <= _2c; _2d += 1) { //#2299 + $1.i = _2d; //#2287 + $k[$j++] = 'k'; //#2288 + $k[$j++] = $1.i; //#2288 + $k[$j++] = $1.j; //#2288 + $1.abcd(); //#2288 + var _2g = $k[--$j]; //#2288 + $1[$k[--$j]] = _2g; //#2288 + if ($eq($1.k, "0001") || $eq($1.k, "1001")) { //#2293 + $k[$j++] = 8; //#2290 + $k[$j++] = $1.i; //#2290 + $k[$j++] = $1.j; //#2290 + $1.cget(); //#2290 + if ($k[--$j] == 0) { //#2292 + $k[$j++] = $1.i; //#2291 + $k[$j++] = $1.j; //#2291 + $1.trace(); //#2291 + } //#2291 + } //#2291 + if ($eq($1.k, "1110")) { //#2298 + $k[$j++] = 4; //#2295 + $k[$j++] = $1.i; //#2295 + $k[$j++] = $1.j; //#2295 + $1.cget(); //#2295 + if ($k[--$j] == 0) { //#2297 + $k[$j++] = $1.i; //#2296 + $k[$j++] = $1.j; //#2296 + $1.trace(); //#2296 + } //#2296 + } //#2296 + } //#2296 + } //#2296 + $1.paths = $a(); //#2296 + $1.pixx = $1.pixx - 2; //#2304 + $1.pixy = $1.pixy - 2; //#2305 + $$.newpath(); //#2308 + var _2y = $1.paths; //#2309 + for (var _2z = 0, _30 = _2y.length; _2z < _30; _2z++) { //#2327 + $1.p = $get(_2y, _2z); //#2310 + $1.len = $1.p.length; //#2311 + $aload($get($1.p, $1.len - 1)); //#2312 + $aload($get($1.p, 0)); //#2313 + for (var _3A = 0, _39 = $1.len - 1; _3A <= _39; _3A += 1) { //#2324 + $1.i = _3A; //#2315 + $aload($get($1.p, ($1.i + 1) % $1.len)); //#2316 + var _3F = $k[--$j]; //#2316 + var _3G = $k[--$j]; //#2316 + var _3H = $k[--$j]; //#2316 + var _3I = $k[--$j]; //#2316 + var _3J = $k[--$j]; //#2316 + var _3K = $k[--$j]; //#2316 + $k[$j++] = _3I; //#2318 + $k[$j++] = _3H; //#2318 + $k[$j++] = _3G; //#2318 + $k[$j++] = _3F; //#2318 + $k[$j++] = _3K; //#2318 + $k[$j++] = _3I; //#2318 + $k[$j++] = $1.inkspreadh; //#2318 + if ($lt(_3F, _3J)) { //#2318 + var _3M = $k[--$j]; //#2318 + var _3N = $k[--$j]; //#2318 + $k[$j++] = $f(_3N + _3M); //#2318 + } else { //#2318 + var _3O = $k[--$j]; //#2318 + var _3P = $k[--$j]; //#2318 + $k[$j++] = $f(_3P - _3O); //#2318 + } //#2318 + var _3Q = $k[--$j]; //#2319 + var _3R = $k[--$j]; //#2319 + var _3S = $k[--$j]; //#2319 + var _3T = $k[--$j]; //#2319 + var _3U = $k[--$j]; //#2320 + $k[$j++] = _3U; //#2321 + $k[$j++] = _3Q; //#2321 + $k[$j++] = _3T; //#2321 + $k[$j++] = _3S; //#2321 + $k[$j++] = _3U; //#2321 + $k[$j++] = $1.inkspreadv; //#2321 + if ($gt(_3T, _3R)) { //#2321 + var _3W = $k[--$j]; //#2321 + var _3X = $k[--$j]; //#2321 + $k[$j++] = $f(_3X + _3W); //#2321 + } else { //#2321 + var _3Y = $k[--$j]; //#2321 + var _3Z = $k[--$j]; //#2321 + $k[$j++] = $f(_3Z - _3Y); //#2321 + } //#2321 + var _3a = $k[--$j]; //#2322 + var _3b = $k[--$j]; //#2322 + var _3c = $k[--$j]; //#2322 + var _3d = $k[--$j]; //#2322 + $k[$j++] = _3c; //#2323 + $k[$j++] = _3b; //#2323 + $k[$j++] = _3d; //#2323 + $k[$j++] = $f($1.pixy - _3a); //#2323 + if ($1.i == 0) { //#2323 + var _3g = $k[--$j]; //#2323 + $$.moveto($k[--$j], _3g); //#2323 + } else { //#2323 + var _3i = $k[--$j]; //#2323 + $$.lineto($k[--$j], _3i); //#2323 + } //#2323 + } //#2323 + $$.closepath(); //#2325 + $j -= 4; //#2326 + } //#2326 + $$.fill(); //#2328 + $1.pixs = $1.pixsorig; //#2330 + }; //#2332 $1.drawlayerdots = function() { - $1.pixsorig = $1.pixs; - $1.pixs = $k[--$j]; - $$.newpath(); - for (var _3p = 0, _3o = $1.pixs.length - 1; _3p <= _3o; _3p += 1) { - $1.x = _3p % $1.pixx; - $1.y = ~~(_3p / $1.pixx); - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $1.xyget(); - if ($k[--$j] == 1) { - $$.moveto($f($1.x + .5), $f($1.pixy - $1.y - .5)); - $$.arc($f($1.x + .5), $f($1.pixy - $1.y - .5), $f(.5 - $1.inkspread), 0, 360, 1); - } - } - $$.fill(); - $1.pixs = $1.pixsorig; - }; - $$.save(); - $1.inkspread = $1.inkspread / 2; - $1.inkspreadh = $1.inkspreadh / 2; - $1.inkspreadv = $1.inkspreadv / 2; - var _46 = $$.currpos(); - $$.translate(_46.x, _46.y); - $$.scale($1.width / $1.pixx * 72, $1.height / $1.pixy * 72); - $$.moveto(0, 0); - $$.lineto($1.pixx, 0); - $$.lineto($1.pixx, $1.pixy); - $$.lineto(0, $1.pixy); - $$.closepath(); - if ($eq($1.colormap, "unset")) { - var _4H = new Map([ [ 1, $1.barcolor ] ]); - $1.colormap = _4H; - } - var _4I = $1.colormap; - for (var _4N = _4I.size, _4M = _4I.keys(), _4L = 0; _4L < _4N; _4L++) { - var _4J = _4M.next().value; - $$.setcolor(_4I.get(_4J)); - $1.key = _4J; - $k[$j++] = Infinity; - var _4O = $1.pixs; - for (var _4P = 0, _4Q = _4O.length; _4P < _4Q; _4P++) { - var _4T = $eq($get(_4O, _4P), $1.key) ? 1 : 0; - $k[$j++] = _4T; - } - var _4U = $a(); - $k[$j++] = _4U; - if ($1.dotty) { - $1.drawlayerdots(); - } else { - $1.drawlayer(); - } - } - if ($ne($1.textcolor, "unset")) { - $$.setcolor($1.textcolor); - } - if ($1.includetext) { - if ($eq($1.textxalign, "unset") && $eq($1.textyalign, "unset") && $eq($1.alttext, "")) { - $1.s = 0; - $1.fn = ""; - var _4c = $1.txt; - for (var _4d = 0, _4e = _4c.length; _4d < _4e; _4d++) { - $forall($get(_4c, _4d)); - var _4g = $k[--$j]; - var _4h = $k[--$j]; - $k[$j++] = _4h; - $k[$j++] = _4g; - if (_4g != $1.s || $ne(_4h, $1.fn)) { - var _4k = $k[--$j]; - var _4l = $k[--$j]; - $1.s = _4k; - $1.fn = _4l; - $$.selectfont(_4l, _4k); - } else { - $j -= 2; - } - var _4m = $k[--$j]; - $$.moveto($k[--$j], _4m); - $$.show($k[--$j], 0, 0); - } - } else { - $$.selectfont($1.textfont, $1.textsize); - if ($eq($1.alttext, "")) { - $k[$j++] = Infinity; - var _4s = $1.txt; - for (var _4t = 0, _4u = _4s.length; _4t < _4u; _4t++) { - $forall($get($get(_4s, _4t), 0)); - } - $1.txt = $a(); - $1.tstr = $s($1.txt.length); - for (var _52 = 0, _51 = $1.txt.length - 1; _52 <= _51; _52 += 1) { - $put($1.tstr, _52, $get($1.txt, _52)); - } - } else { - $1.tstr = $1.alttext; - } - if ($1.tstr.length == 0) { - $k[$j++] = 0; - } else { - $$.save(); - $$.newpath(); - $$.moveto(0, 0); - $$.charpath("0", false); - var _58 = $$.pathbbox(); - $$.restore(); - $k[$j++] = _58.ury; - } - $1.textascent = $k[--$j]; - var _5B = $$.stringwidth($1.tstr); - $1.textwidth = $f(_5B.w + ($1.tstr.length - 1) * $1.textgaps); - $1.textxpos = $f($1.textxoffset + $f($1.x - $1.textwidth) / 2); - if ($eq($1.textxalign, "left")) { - $1.textxpos = $1.textxoffset; - } - if ($eq($1.textxalign, "right")) { - $1.textxpos = $f($f($1.x - $1.textxoffset) - $1.textwidth); - } - if ($eq($1.textxalign, "offleft")) { - $1.textxpos = -$f($1.textwidth + $1.textxoffset); - } - if ($eq($1.textxalign, "offright")) { - $1.textxpos = $f($1.x + $1.textxoffset); - } - if ($eq($1.textxalign, "justify") && $1.textwidth < $1.x) { - $1.textxpos = 0; - $1.textgaps = $f($1.x - $1.textwidth) / ($1.tstr.length - 1); - } - $1.textypos = -$f($f($1.textyoffset + $1.textascent) + 1); - if ($eq($1.textyalign, "above")) { - $1.textypos = $f($f($1.textyoffset + $1.pixy) + 1); - } - if ($eq($1.textyalign, "center")) { - $1.textypos = $f($1.textyoffset + $f($1.pixy - $1.textascent) / 2); - } - $$.moveto($1.textxpos, $1.textypos); - $$.show($1.tstr, $1.textgaps, 0); - } - } - $$.restore(); + $1.pixsorig = $1.pixs; //#2336 + $1.pixs = $k[--$j]; //#2337 + $$.newpath(); //#2339 + for (var _3p = 0, _3o = $1.pixs.length - 1; _3p <= _3o; _3p += 1) { //#2347 + $1.x = _3p % $1.pixx; //#2341 + $1.y = ~~(_3p / $1.pixx); //#2342 + $k[$j++] = $1.x; //#2343 + $k[$j++] = $1.y; //#2343 + $1.xyget(); //#2343 + if ($k[--$j] == 1) { //#2346 + $$.moveto($f($1.x + 0.5), $f(($1.pixy - $1.y) - 0.5)); //#2344 + $$.arc($f($1.x + 0.5), $f(($1.pixy - $1.y) - 0.5), $f(0.5 - $1.inkspread), 0, 360, 1); //#2345 + } //#2345 + } //#2345 + $$.fill(); //#2348 + $1.pixs = $1.pixsorig; //#2350 + }; //#2352 + $$.save(); //#2354 + $1.inkspread = $1.inkspread / 2; //#2357 + $1.inkspreadh = $1.inkspreadh / 2; //#2358 + $1.inkspreadv = $1.inkspreadv / 2; //#2359 + var _46 = $$.currpos(); //#2360 + $$.translate(_46.x, _46.y); //#2360 + $$.scale(($1.width / $1.pixx) * 72, ($1.height / $1.pixy) * 72); //#2361 + $$.moveto(0, 0); //#2362 + $$.lineto($1.pixx, 0); //#2362 + $$.lineto($1.pixx, $1.pixy); //#2362 + $$.lineto(0, $1.pixy); //#2362 + $$.closepath(); //#2362 + if ($eq($1.colormap, "unset")) { //#2367 + var _4H = new Map([ + [1, $1.barcolor] + ]); //#2366 + $1.colormap = _4H; //#2366 + } //#2366 + var _4I = $1.colormap; //#2369 + for (var _4N = _4I.size, _4M = _4I.keys(), _4L = 0; _4L < _4N; _4L++) { //#2375 + var _4J = _4M.next().value; //#2375 + $$.setcolor(_4I.get(_4J)); //#2370 + $1.key = _4J; //#2371 + $k[$j++] = Infinity; //#2373 + var _4O = $1.pixs; //#2373 + for (var _4P = 0, _4Q = _4O.length; _4P < _4Q; _4P++) { //#2373 + var _4T = $eq($get(_4O, _4P), $1.key) ? 1 : 0; //#2373 + $k[$j++] = _4T; //#2373 + } //#2373 + var _4U = $a(); //#2373 + $k[$j++] = _4U; //#2374 + if ($1.dotty) { //#2374 + $1.drawlayerdots(); //#2374 + } else { //#2374 + $1.drawlayer(); //#2374 + } //#2374 + } //#2374 + if ($ne($1.textcolor, "unset")) { //#2378 + $$.setcolor($1.textcolor); //#2378 + } //#2378 + if ($1.includetext) { //#2435 + if (($eq($1.textxalign, "unset") && $eq($1.textyalign, "unset")) && $eq($1.alttext, "")) { //#2433 + $1.s = 0; //#2381 + $1.fn = ""; //#2381 + var _4c = $1.txt; //#2382 + for (var _4d = 0, _4e = _4c.length; _4d < _4e; _4d++) { //#2391 + $forall($get(_4c, _4d)); //#2383 + var _4g = $k[--$j]; //#2384 + var _4h = $k[--$j]; //#2384 + $k[$j++] = _4h; //#2389 + $k[$j++] = _4g; //#2389 + if ((_4g != $1.s) || $ne(_4h, $1.fn)) { //#2388 + var _4k = $k[--$j]; //#2385 + var _4l = $k[--$j]; //#2385 + $1.s = _4k; //#2385 + $1.fn = _4l; //#2385 + $$.selectfont(_4l, _4k); //#2386 + } else { //#2388 + $j -= 2; //#2388 + } //#2388 + var _4m = $k[--$j]; //#2390 + $$.moveto($k[--$j], _4m); //#2390 + $$.show($k[--$j], 0, 0); //#2390 + } //#2390 + } else { //#2433 + $$.selectfont($1.textfont, $1.textsize); //#2393 + if ($eq($1.alttext, "")) { //#2399 + $k[$j++] = Infinity; //#2395 + var _4s = $1.txt; //#2395 + for (var _4t = 0, _4u = _4s.length; _4t < _4u; _4t++) { //#2395 + $forall($get($get(_4s, _4t), 0)); //#2395 + } //#2395 + $1.txt = $a(); //#2395 + $1.tstr = $s($1.txt.length); //#2396 + for (var _52 = 0, _51 = $1.txt.length - 1; _52 <= _51; _52 += 1) { //#2397 + $put($1.tstr, _52, $get($1.txt, _52)); //#2397 + } //#2397 + } else { //#2399 + $1.tstr = $1.alttext; //#2399 + } //#2399 + if ($1.tstr.length == 0) { //#2409 + $k[$j++] = 0; //#2404 + } else { //#2409 + $$.save(); //#2406 + $$.newpath(); //#2407 + $$.moveto(0, 0); //#2407 + $$.charpath("0", false); //#2407 + var _58 = $$.pathbbox(); //#2407 + $$.restore(); //#2409 + $k[$j++] = _58.ury; //#2409 + } //#2409 + $1.textascent = $k[--$j]; //#2418 + var _5B = $$.stringwidth($1.tstr); //#2419 + $1.textwidth = $f(_5B.w + (($1.tstr.length - 1) * $1.textgaps)); //#2419 + $1.textxpos = $f($1.textxoffset + ($f($1.x - $1.textwidth) / 2)); //#2421 + if ($eq($1.textxalign, "left")) { //#2422 + $1.textxpos = $1.textxoffset; //#2422 + } //#2422 + if ($eq($1.textxalign, "right")) { //#2423 + $1.textxpos = $f($f($1.x - $1.textxoffset) - $1.textwidth); //#2423 + } //#2423 + if ($eq($1.textxalign, "offleft")) { //#2424 + $1.textxpos = -$f($1.textwidth + $1.textxoffset); //#2424 + } //#2424 + if ($eq($1.textxalign, "offright")) { //#2425 + $1.textxpos = $f($1.x + $1.textxoffset); //#2425 + } //#2425 + if ($eq($1.textxalign, "justify") && ($1.textwidth < $1.x)) { //#2429 + $1.textxpos = 0; //#2427 + $1.textgaps = $f($1.x - $1.textwidth) / ($1.tstr.length - 1); //#2428 + } //#2428 + $1.textypos = -($f($f($1.textyoffset + $1.textascent) + 1)); //#2430 + if ($eq($1.textyalign, "above")) { //#2431 + $1.textypos = $f($f($1.textyoffset + $1.pixy) + 1); //#2431 + } //#2431 + if ($eq($1.textyalign, "center")) { //#2432 + $1.textypos = $f($1.textyoffset + ($f($1.pixy - $1.textascent) / 2)); //#2432 + } //#2432 + $$.moveto($1.textxpos, $1.textypos); //#2433 + $$.show($1.tstr, $1.textgaps, 0); //#2433 + } //#2433 + } //#2433 + $$.restore(); //#2437 }; $0.ean5 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 12; - $1.textxoffset = 0; - $1.textyoffset = "unset"; - $1.height = .7; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.height = +$1.height; - $1.textxoffset = +$1.textxoffset; - if ($eq($1.textyoffset, "unset")) { - $1.textyoffset = $f($1.height * 72 + 1); - } else { - $1.textyoffset = +$1.textyoffset; - } - if ($1.barcode.length != 5) { - $k[$j++] = "bwipp.ean5badLength"; - $k[$j++] = "EAN-5 add-on must be 5 digits"; - $0.raiseerror(); - } - $forall($1.barcode, function() { - var _E = $k[--$j]; - if (_E < 48 || _E > 57) { - $k[$j++] = "bwipp.ean5badCharacter"; - $k[$j++] = "EAN-5 add-on must contain only digits"; - $0.raiseerror(); - } - }); - $1.encs = $a([ "3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "112", "11" ]); - $1.barchars = "0123456789"; - $1.mirrormaps = $a([ "11000", "10100", "10010", "10001", "01100", "00110", "00011", "01010", "01001", "00101" ]); - $1.checksum = 0; - for (var _H = 0; _H <= 4; _H += 1) { - $1.i = _H; - $1.barchar = $f($get($1.barcode, $1.i) - 48); - if ($1.i % 2 == 0) { - $1.checksum = $f($1.barchar * 3 + $1.checksum); - } else { - $1.checksum = $f($1.barchar * 9 + $1.checksum); - } - } - $1.checksum = $1.checksum % 10; - $1.mirrormap = $get($1.mirrormaps, $1.checksum); - $1.sbs = $s(31); - $1.txt = $a(5); - for (var _W = 0; _W <= 4; _W += 1) { - $1.i = _W; - if ($1.i == 0) { - $puti($1.sbs, 0, $get($1.encs, 10)); - } else { - $puti($1.sbs, ($1.i - 1) * 6 + 7, $get($1.encs, 11)); - } - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - if ($get($1.mirrormap, $1.i) == 49) { - $1.enclen = $1.enc.length; - $1.revenc = $s($1.enclen); - for (var _v = 0, _u = $1.enclen - 1; _v <= _u; _v += 1) { - $1.j = _v; - $1.char = $get($1.enc, $1.j); - $put($1.revenc, $1.enclen - $1.j - 1, $1.char); - } - $1.enc = $1.revenc; - } - $puti($1.sbs, $1.i * 6 + 3, $1.enc); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $f(($1.i - 1) * 9 + 13 + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize ])); - } - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _1I = $1.sbs; - for (var _1J = 0, _1K = _1I.length; _1J < _1K; _1J++) { - $k[$j++] = $get(_1I, _1J) - 48; - } - var _1M = $a(); - $k[$j++] = Infinity; - for (var _1N = 0, _1O = 16; _1N < _1O; _1N++) { - $k[$j++] = $1.height; - } - var _1Q = $a(); - $k[$j++] = Infinity; - for (var _1R = 0, _1S = 16; _1R < _1S; _1R++) { - $k[$j++] = 0; - } - var _1T = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _1M; - $k[$j++] = "bhs"; - $k[$j++] = _1Q; - $k[$j++] = "bbs"; - $k[$j++] = _1T; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - $k[$j++] = "guardrightpos"; - $k[$j++] = 10; - $k[$j++] = "guardrightypos"; - $k[$j++] = $f($1.textyoffset + 4); - $k[$j++] = "bordertop"; - $k[$j++] = 10; - var _1Y = $d(); - $k[$j++] = _1Y; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#2555 + $1.options = $k[--$j]; //#2557 + $1.barcode = $k[--$j]; //#2558 + $1.dontdraw = false; //#2560 + $1.includetext = false; //#2561 + $1.textfont = "OCR-B"; //#2562 + $1.textsize = 12; //#2563 + $1.textxoffset = 0; //#2564 + $1.textyoffset = "unset"; //#2565 + $1.height = 0.7; //#2566 + $forall($1.options, function() { //#2577 + var _3 = $k[--$j]; //#2577 + $1[$k[--$j]] = _3; //#2577 + }); //#2577 + $1.textfont = "" + $1.textfont; //#2579 + $1.textsize = +$1.textsize; //#2580 + $1.height = +$1.height; //#2581 + $1.textxoffset = +$1.textxoffset; //#2582 + if ($eq($1.textyoffset, "unset")) { //#2586 + $1.textyoffset = $f(($1.height * 72) + 1); //#2584 + } else { //#2586 + $1.textyoffset = +$1.textyoffset; //#2586 + } //#2586 + if ($1.barcode.length != 5) { //#2592 + $k[$j++] = 'bwipp.ean5badLength'; //#2591 + $k[$j++] = "EAN-5 add-on must be 5 digits"; //#2591 + $0.raiseerror(); //#2591 + } //#2591 + $forall($1.barcode, function() { //#2597 + var _E = $k[--$j]; //#2594 + if ((_E < 48) || (_E > 57)) { //#2596 + $k[$j++] = 'bwipp.ean5badCharacter'; //#2595 + $k[$j++] = "EAN-5 add-on must contain only digits"; //#2595 + $0.raiseerror(); //#2595 + } //#2595 + }); //#2595 + $1.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "112", "11"]); //#2604 + $1.barchars = "0123456789"; //#2607 + $1.mirrormaps = $a(["11000", "10100", "10010", "10001", "01100", "00110", "00011", "01010", "01001", "00101"]); //#2613 + $1.checksum = 0; //#2614 + for (var _H = 0; _H <= 4; _H += 1) { //#2623 + $1.i = _H; //#2616 + $1.barchar = $f($get($1.barcode, $1.i) - 48); //#2617 + if (($1.i % 2) == 0) { //#2621 + $1.checksum = $f(($1.barchar * 3) + $1.checksum); //#2619 + } else { //#2621 + $1.checksum = $f(($1.barchar * 9) + $1.checksum); //#2621 + } //#2621 + } //#2621 + $1.checksum = $1.checksum % 10; //#2624 + $1.mirrormap = $get($1.mirrormaps, $1.checksum); //#2625 + $1.sbs = $s(31); //#2627 + $1.txt = $a(5); //#2628 + for (var _W = 0; _W <= 4; _W += 1) { //#2658 + $1.i = _W; //#2631 + if ($1.i == 0) { //#2637 + $puti($1.sbs, 0, $get($1.encs, 10)); //#2635 + } else { //#2637 + $puti($1.sbs, (($1.i - 1) * 6) + 7, $get($1.encs, 11)); //#2637 + } //#2637 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#2641 + $j--; //#2642 + $1.indx = $k[--$j].length; //#2643 + $j -= 2; //#2644 + $1.enc = $get($1.encs, $1.indx); //#2645 + if ($get($1.mirrormap, $1.i) == 49) { //#2655 + $1.enclen = $1.enc.length; //#2647 + $1.revenc = $s($1.enclen); //#2648 + for (var _v = 0, _u = $1.enclen - 1; _v <= _u; _v += 1) { //#2653 + $1.j = _v; //#2650 + $1.char = $get($1.enc, $1.j); //#2651 + $put($1.revenc, ($1.enclen - $1.j) - 1, $1.char); //#2652 + } //#2652 + $1.enc = $1.revenc; //#2654 + } //#2654 + $puti($1.sbs, ($1.i * 6) + 3, $1.enc); //#2656 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $f(((($1.i - 1) * 9) + 13) + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize])); //#2657 + } //#2657 + $k[$j++] = Infinity; //#2672 + $k[$j++] = Infinity; //#2663 + var _1I = $1.sbs; //#2663 + for (var _1J = 0, _1K = _1I.length; _1J < _1K; _1J++) { //#2663 + $k[$j++] = $get(_1I, _1J) - 48; //#2663 + } //#2663 + var _1M = $a(); //#2663 + $k[$j++] = Infinity; //#2664 + for (var _1N = 0, _1O = 16; _1N < _1O; _1N++) { //#2664 + $k[$j++] = $1.height; //#2664 + } //#2664 + var _1Q = $a(); //#2664 + $k[$j++] = Infinity; //#2665 + for (var _1R = 0, _1S = 16; _1R < _1S; _1R++) { //#2665 + $k[$j++] = 0; //#2665 + } //#2665 + var _1T = $a(); //#2665 + $k[$j++] = 'ren'; //#2668 + $k[$j++] = $0.renlinear; //#2668 + $k[$j++] = 'sbs'; //#2668 + $k[$j++] = _1M; //#2668 + $k[$j++] = 'bhs'; //#2668 + $k[$j++] = _1Q; //#2668 + $k[$j++] = 'bbs'; //#2668 + $k[$j++] = _1T; //#2668 + if ($1.includetext) { //#2668 + $k[$j++] = 'txt'; //#2667 + $k[$j++] = $1.txt; //#2667 + } //#2667 + $k[$j++] = 'opt'; //#2672 + $k[$j++] = $1.options; //#2672 + $k[$j++] = 'guardrightpos'; //#2672 + $k[$j++] = 10; //#2672 + $k[$j++] = 'guardrightypos'; //#2672 + $k[$j++] = $f($1.textyoffset + 4); //#2672 + $k[$j++] = 'bordertop'; //#2672 + $k[$j++] = 10; //#2672 + var _1Y = $d(); //#2672 + $k[$j++] = _1Y; //#2675 + if (!$1.dontdraw) { //#2675 + $0.renlinear(); //#2675 + } //#2675 }; $0.ean2 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 12; - $1.textxoffset = 0; - $1.textyoffset = "unset"; - $1.height = .7; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.height = +$1.height; - $1.textxoffset = +$1.textxoffset; - if ($eq($1.textyoffset, "unset")) { - $1.textyoffset = $f($1.height * 72 + 1); - } else { - $1.textyoffset = +$1.textyoffset; - } - if ($1.barcode.length != 2) { - $k[$j++] = "bwipp.ean2badLength"; - $k[$j++] = "EAN-2 add-on must be 2 digits"; - $0.raiseerror(); - } - $forall($1.barcode, function() { - var _E = $k[--$j]; - if (_E < 48 || _E > 57) { - $k[$j++] = "bwipp.ean2badCharacter"; - $k[$j++] = "EAN-2 add-on must contain only digits"; - $0.raiseerror(); - } - }); - $1.encs = $a([ "3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "112", "11" ]); - $1.barchars = "0123456789"; - $1.mirrormap = $get($a([ "00", "01", "10", "11" ]), ~~$z($geti($1.barcode, 0, 2)) % 4); - $1.sbs = $s(13); - $1.txt = $a(2); - for (var _M = 0; _M <= 1; _M += 1) { - $1.i = _M; - if ($1.i == 0) { - $puti($1.sbs, 0, $get($1.encs, 10)); - } else { - $puti($1.sbs, ($1.i - 1) * 6 + 7, $get($1.encs, 11)); - } - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - if ($get($1.mirrormap, $1.i) == 49) { - $1.enclen = $1.enc.length; - $1.revenc = $s($1.enclen); - for (var _l = 0, _k = $1.enclen - 1; _l <= _k; _l += 1) { - $1.j = _l; - $1.char = $get($1.enc, $1.j); - $put($1.revenc, $1.enclen - $1.j - 1, $1.char); - } - $1.enc = $1.revenc; - } - $puti($1.sbs, $1.i * 6 + 3, $1.enc); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $f(($1.i - 1) * 9 + 13 + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize ])); - } - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _18 = $1.sbs; - for (var _19 = 0, _1A = _18.length; _19 < _1A; _19++) { - $k[$j++] = $get(_18, _19) - 48; - } - var _1C = $a(); - $k[$j++] = Infinity; - for (var _1D = 0, _1E = 12; _1D < _1E; _1D++) { - $k[$j++] = $1.height; - } - var _1G = $a(); - $k[$j++] = Infinity; - for (var _1H = 0, _1I = 12; _1H < _1I; _1H++) { - $k[$j++] = 0; - } - var _1J = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _1C; - $k[$j++] = "bhs"; - $k[$j++] = _1G; - $k[$j++] = "bbs"; - $k[$j++] = _1J; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - $k[$j++] = "guardrightpos"; - $k[$j++] = 10; - $k[$j++] = "guardrightypos"; - $k[$j++] = $f($1.textyoffset + 4); - $k[$j++] = "bordertop"; - $k[$j++] = 10; - var _1O = $d(); - $k[$j++] = _1O; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#2704 + $1.options = $k[--$j]; //#2706 + $1.barcode = $k[--$j]; //#2707 + $1.dontdraw = false; //#2709 + $1.includetext = false; //#2710 + $1.textfont = "OCR-B"; //#2711 + $1.textsize = 12; //#2712 + $1.textxoffset = 0; //#2713 + $1.textyoffset = "unset"; //#2714 + $1.height = 0.7; //#2715 + $forall($1.options, function() { //#2726 + var _3 = $k[--$j]; //#2726 + $1[$k[--$j]] = _3; //#2726 + }); //#2726 + $1.textfont = "" + $1.textfont; //#2728 + $1.textsize = +$1.textsize; //#2729 + $1.height = +$1.height; //#2730 + $1.textxoffset = +$1.textxoffset; //#2731 + if ($eq($1.textyoffset, "unset")) { //#2735 + $1.textyoffset = $f(($1.height * 72) + 1); //#2733 + } else { //#2735 + $1.textyoffset = +$1.textyoffset; //#2735 + } //#2735 + if ($1.barcode.length != 2) { //#2741 + $k[$j++] = 'bwipp.ean2badLength'; //#2740 + $k[$j++] = "EAN-2 add-on must be 2 digits"; //#2740 + $0.raiseerror(); //#2740 + } //#2740 + $forall($1.barcode, function() { //#2746 + var _E = $k[--$j]; //#2743 + if ((_E < 48) || (_E > 57)) { //#2745 + $k[$j++] = 'bwipp.ean2badCharacter'; //#2744 + $k[$j++] = "EAN-2 add-on must contain only digits"; //#2744 + $0.raiseerror(); //#2744 + } //#2744 + }); //#2744 + $1.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "112", "11"]); //#2753 + $1.barchars = "0123456789"; //#2756 + $1.mirrormap = $get($a(["00", "01", "10", "11"]), (~~$z($geti($1.barcode, 0, 2))) % 4); //#2759 + $1.sbs = $s(13); //#2761 + $1.txt = $a(2); //#2762 + for (var _M = 0; _M <= 1; _M += 1) { //#2792 + $1.i = _M; //#2765 + if ($1.i == 0) { //#2771 + $puti($1.sbs, 0, $get($1.encs, 10)); //#2769 + } else { //#2771 + $puti($1.sbs, (($1.i - 1) * 6) + 7, $get($1.encs, 11)); //#2771 + } //#2771 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#2775 + $j--; //#2776 + $1.indx = $k[--$j].length; //#2777 + $j -= 2; //#2778 + $1.enc = $get($1.encs, $1.indx); //#2779 + if ($get($1.mirrormap, $1.i) == 49) { //#2789 + $1.enclen = $1.enc.length; //#2781 + $1.revenc = $s($1.enclen); //#2782 + for (var _l = 0, _k = $1.enclen - 1; _l <= _k; _l += 1) { //#2787 + $1.j = _l; //#2784 + $1.char = $get($1.enc, $1.j); //#2785 + $put($1.revenc, ($1.enclen - $1.j) - 1, $1.char); //#2786 + } //#2786 + $1.enc = $1.revenc; //#2788 + } //#2788 + $puti($1.sbs, ($1.i * 6) + 3, $1.enc); //#2790 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $f(((($1.i - 1) * 9) + 13) + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize])); //#2791 + } //#2791 + $k[$j++] = Infinity; //#2806 + $k[$j++] = Infinity; //#2797 + var _18 = $1.sbs; //#2797 + for (var _19 = 0, _1A = _18.length; _19 < _1A; _19++) { //#2797 + $k[$j++] = $get(_18, _19) - 48; //#2797 + } //#2797 + var _1C = $a(); //#2797 + $k[$j++] = Infinity; //#2798 + for (var _1D = 0, _1E = 12; _1D < _1E; _1D++) { //#2798 + $k[$j++] = $1.height; //#2798 + } //#2798 + var _1G = $a(); //#2798 + $k[$j++] = Infinity; //#2799 + for (var _1H = 0, _1I = 12; _1H < _1I; _1H++) { //#2799 + $k[$j++] = 0; //#2799 + } //#2799 + var _1J = $a(); //#2799 + $k[$j++] = 'ren'; //#2802 + $k[$j++] = $0.renlinear; //#2802 + $k[$j++] = 'sbs'; //#2802 + $k[$j++] = _1C; //#2802 + $k[$j++] = 'bhs'; //#2802 + $k[$j++] = _1G; //#2802 + $k[$j++] = 'bbs'; //#2802 + $k[$j++] = _1J; //#2802 + if ($1.includetext) { //#2802 + $k[$j++] = 'txt'; //#2801 + $k[$j++] = $1.txt; //#2801 + } //#2801 + $k[$j++] = 'opt'; //#2806 + $k[$j++] = $1.options; //#2806 + $k[$j++] = 'guardrightpos'; //#2806 + $k[$j++] = 10; //#2806 + $k[$j++] = 'guardrightypos'; //#2806 + $k[$j++] = $f($1.textyoffset + 4); //#2806 + $k[$j++] = 'bordertop'; //#2806 + $k[$j++] = 10; //#2806 + var _1O = $d(); //#2806 + $k[$j++] = _1O; //#2809 + if (!$1.dontdraw) { //#2809 + $0.renlinear(); //#2809 + } //#2809 }; $0.ean13 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 12; - $1.textxoffset = -10; - $1.textyoffset = -4; - $1.height = 1; - $1.addongap = 12; - $1.addontextfont = "unset"; - $1.addontextsize = "unset"; - $1.addontextxoffset = "unset"; - $1.addontextyoffset = "unset"; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.addongap = +$1.addongap; - if ($ne($1.addontextfont, "unset")) { - $1.addontextfont = "" + $1.addontextfont; - } - if ($ne($1.addontextsize, "unset")) { - $1.addontextsize = +$1.addontextsize; - } - if ($ne($1.addontextxoffset, "unset")) { - $1.addontextxoffset = +$1.addontextxoffset; - } - if ($ne($1.addontextyoffset, "unset")) { - $1.addontextyoffset = +$1.addontextyoffset; - } - $search($1.barcode, " "); - if ($k[--$j]) { - $1.barcode = $k[--$j]; - $j--; - $1.addon = $k[--$j]; - } else { - $j--; - $1.addon = ""; - } - if ($1.barcode.length != 12 && $1.barcode.length != 13) { - $k[$j++] = "bwipp.ean13badLength"; - $k[$j++] = "EAN-13 must be 12 or 13 digits"; - $0.raiseerror(); - } - $forall($1.barcode, function() { - var _Q = $k[--$j]; - if (_Q < 48 || _Q > 57) { - $k[$j++] = "bwipp.ean13badCharacter"; - $k[$j++] = "EAN-13 must contain only digits"; - $0.raiseerror(); - } - }); - if ($1.addon.length != 0 && $1.addon.length != 2 && $1.addon.length != 5) { - $k[$j++] = "bwipp.ean13badAddOnLength"; - $k[$j++] = "Add-on for EAN-13 must be 2 or 5 digits"; - $0.raiseerror(); - } - $1.pad = $s(13); - $1.checksum = 0; - for (var _V = 0; _V <= 11; _V += 1) { - $1.i = _V; - $1.barchar = $f($get($1.barcode, $1.i) - 48); - if ($1.i % 2 == 0) { - $1.checksum = $f($1.barchar + $1.checksum); - } else { - $1.checksum = $f($1.barchar * 3 + $1.checksum); - } - } - $1.checksum = $f(10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 13) { - if ($get($1.barcode, 12) != $f($1.checksum + 48)) { - $k[$j++] = "bwipp.ean13badCheckDigit"; - $k[$j++] = "Incorrect EAN-13 check digit provided"; - $0.raiseerror(); - } - } - $puti($1.pad, 0, $1.barcode); - $put($1.pad, 12, $f($1.checksum + 48)); - $1.barcode = $1.pad; - $1.encs = $a([ "3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111" ]); - $1.barchars = "0123456789"; - $1.mirrormaps = $a([ "000000", "001011", "001101", "001110", "010011", "011001", "011100", "010101", "010110", "011010" ]); - $1.sbs = $s(59); - $1.txt = $a(13); - $puti($1.sbs, 0, $get($1.encs, 10)); - $1.mirrormap = $get($1.mirrormaps, $get($1.barcode, 0) - 48); - $put($1.txt, 0, $a([ $geti($1.barcode, 0, 1), $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ])); - for (var _17 = 1; _17 <= 6; _17 += 1) { - $1.i = _17; - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - if ($get($1.mirrormap, $1.i - 1) == 49) { - $1.enclen = $1.enc.length; - $1.revenc = $s($1.enclen); - for (var _1O = 0, _1N = $1.enclen - 1; _1O <= _1N; _1O += 1) { - $1.j = _1O; - $1.char = $get($1.enc, $1.j); - $put($1.revenc, $1.enclen - $1.j - 1, $1.char); - } - $1.enc = $1.revenc; - } - $puti($1.sbs, ($1.i - 1) * 4 + 3, $1.enc); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $f(($1.i - 1) * 7 + 14 + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize ])); - } - $puti($1.sbs, (7 - 1) * 4 + 3, $get($1.encs, 11)); - for (var _1o = 7; _1o <= 12; _1o += 1) { - $1.i = _1o; - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, ($1.i - 1) * 4 + 8, $1.enc); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $f(($1.i - 1) * 7 + 18 + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize ])); - } - $puti($1.sbs, 56, $get($1.encs, 12)); - $k[$j++] = Infinity; - var _2E = $1.sbs; - for (var _2F = 0, _2G = _2E.length; _2F < _2G; _2F++) { - $k[$j++] = $get(_2E, _2F) - 48; - } - $1.sbs = $a(); - if ($1.includetext) { - $k[$j++] = Infinity; - $k[$j++] = $1.height; - $k[$j++] = $1.height; - for (var _2M = 0, _2N = 12; _2M < _2N; _2M++) { - $k[$j++] = $f($1.height - .075); - } - $k[$j++] = $1.height; - $k[$j++] = $1.height; - for (var _2R = 0, _2S = 12; _2R < _2S; _2R++) { - $k[$j++] = $f($1.height - .075); - } - $k[$j++] = $1.height; - $k[$j++] = $1.height; - $1.bhs = $a(); - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = 0; - for (var _2X = 0, _2Y = 12; _2X < _2Y; _2X++) { - $k[$j++] = .075; - } - $k[$j++] = 0; - $k[$j++] = 0; - for (var _2Z = 0, _2a = 12; _2Z < _2a; _2Z++) { - $k[$j++] = .075; - } - $k[$j++] = 0; - $k[$j++] = 0; - $1.bbs = $a(); - } else { - $k[$j++] = Infinity; - for (var _2c = 0, _2d = 30; _2c < _2d; _2c++) { - $k[$j++] = $1.height; - } - $1.bhs = $a(); - $k[$j++] = Infinity; - for (var _2g = 0, _2h = 30; _2g < _2h; _2g++) { - $k[$j++] = 0; - } - $1.bbs = $a(); - $1.txt = $a([]); - } - $1.guardrightypos = 0; - if ($ne($1.addon, "")) { - $k[$j++] = Infinity; - $k[$j++] = "dontdraw"; - $k[$j++] = true; - $k[$j++] = "includetext"; - $k[$j++] = true; - $k[$j++] = "height"; - $k[$j++] = $f($1.height - .15); - $k[$j++] = "textxoffset"; - if ($1.addontextxoffset != "unset") { - $k[$j++] = $1.addontextxoffset; - } else { - $k[$j++] = $f(95 + $1.addongap); - } - if ($1.addontextyoffset != "unset") { - $k[$j++] = "textyoffset"; - $k[$j++] = $1.addontextyoffset; - } - var _2s = $1.addontextsize != "unset" ? $1.addontextsize : $1.textsize; - var _2u = $ne($1.addontextfont, "unset") ? $1.addontextfont : $1.textfont; - $k[$j++] = "textsize"; - $k[$j++] = _2s; - $k[$j++] = "textfont"; - $k[$j++] = _2u; - $1.addopts = $d(); - if ($1.addon.length == 2) { - $k[$j++] = $1.addon; - $k[$j++] = $1.addopts; - $0.ean2(); - } - if ($1.addon.length == 5) { - $k[$j++] = $1.addon; - $k[$j++] = $1.addopts; - $0.ean5(); - } - $1.addcode = $k[--$j]; - $k[$j++] = Infinity; - $aload($1.sbs); - $k[$j++] = $1.addongap; - $aload($get($1.addcode, "sbs")); - $1.sbs = $a(); - $k[$j++] = Infinity; - $aload($1.bhs); - $forall($get($1.addcode, "bhs"), function() { - var _3B = $k[--$j]; - $k[$j++] = $f(_3B - .075); - }); - $1.bhs = $a(); - $k[$j++] = Infinity; - $aload($1.bbs); - $forall($get($1.addcode, "bbs"), function() { - var _3G = $k[--$j]; - $k[$j++] = $f(_3G + .075); - }); - $1.bbs = $a(); - $k[$j++] = Infinity; - $aload($1.txt); - $aload($get($1.addcode, "txt")); - $1.txt = $a(); - $1.guardrightypos = $f($1.height * 72 - 6); - } - var _3T = new Map([ [ "ren", $0.renlinear ], [ "sbs", $1.sbs ], [ "bhs", $1.bhs ], [ "bbs", $1.bbs ], [ "txt", $1.txt ], [ "opt", $1.options ], [ "guardrightpos", 10 ], [ "guardrightypos", $1.guardrightypos ], [ "borderbottom", 5 ] ]); - $k[$j++] = _3T; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#2840 + $1.options = $k[--$j]; //#2842 + $1.barcode = $k[--$j]; //#2843 + $1.dontdraw = false; //#2845 + $1.includetext = false; //#2846 + $1.textfont = "OCR-B"; //#2847 + $1.textsize = 12; //#2848 + $1.textxoffset = -10; //#2849 + $1.textyoffset = -4; //#2850 + $1.height = 1; //#2851 + $1.addongap = 12; //#2852 + $1.addontextfont = "unset"; //#2853 + $1.addontextsize = "unset"; //#2854 + $1.addontextxoffset = "unset"; //#2855 + $1.addontextyoffset = "unset"; //#2856 + $forall($1.options, function() { //#2867 + var _3 = $k[--$j]; //#2867 + $1[$k[--$j]] = _3; //#2867 + }); //#2867 + $1.textfont = "" + $1.textfont; //#2869 + $1.textsize = +$1.textsize; //#2870 + $1.textxoffset = +$1.textxoffset; //#2871 + $1.textyoffset = +$1.textyoffset; //#2872 + $1.height = +$1.height; //#2873 + $1.addongap = +$1.addongap; //#2874 + if ($ne($1.addontextfont, "unset")) { //#2875 + $1.addontextfont = "" + $1.addontextfont; //#2875 + } //#2875 + if ($ne($1.addontextsize, "unset")) { //#2876 + $1.addontextsize = +$1.addontextsize; //#2876 + } //#2876 + if ($ne($1.addontextxoffset, "unset")) { //#2877 + $1.addontextxoffset = +$1.addontextxoffset; //#2877 + } //#2877 + if ($ne($1.addontextyoffset, "unset")) { //#2878 + $1.addontextyoffset = +$1.addontextyoffset; //#2878 + } //#2878 + $search($1.barcode, " "); //#2881 + if ($k[--$j]) { //#2887 + $1.barcode = $k[--$j]; //#2882 + $j--; //#2883 + $1.addon = $k[--$j]; //#2884 + } else { //#2887 + $j--; //#2886 + $1.addon = ""; //#2887 + } //#2887 + if (($1.barcode.length != 12) && ($1.barcode.length != 13)) { //#2893 + $k[$j++] = 'bwipp.ean13badLength'; //#2892 + $k[$j++] = "EAN-13 must be 12 or 13 digits"; //#2892 + $0.raiseerror(); //#2892 + } //#2892 + $forall($1.barcode, function() { //#2898 + var _Q = $k[--$j]; //#2895 + if ((_Q < 48) || (_Q > 57)) { //#2897 + $k[$j++] = 'bwipp.ean13badCharacter'; //#2896 + $k[$j++] = "EAN-13 must contain only digits"; //#2896 + $0.raiseerror(); //#2896 + } //#2896 + }); //#2896 + if ((($1.addon.length != 0) && ($1.addon.length != 2)) && ($1.addon.length != 5)) { //#2901 + $k[$j++] = 'bwipp.ean13badAddOnLength'; //#2900 + $k[$j++] = "Add-on for EAN-13 must be 2 or 5 digits"; //#2900 + $0.raiseerror(); //#2900 + } //#2900 + $1.pad = $s(13); //#2904 + $1.checksum = 0; //#2905 + for (var _V = 0; _V <= 11; _V += 1) { //#2914 + $1.i = _V; //#2907 + $1.barchar = $f($get($1.barcode, $1.i) - 48); //#2908 + if (($1.i % 2) == 0) { //#2912 + $1.checksum = $f($1.barchar + $1.checksum); //#2910 + } else { //#2912 + $1.checksum = $f(($1.barchar * 3) + $1.checksum); //#2912 + } //#2912 + } //#2912 + $1.checksum = ($f(10 - ($1.checksum % 10))) % 10; //#2915 + if ($1.barcode.length == 13) { //#2920 + if ($get($1.barcode, 12) != $f($1.checksum + 48)) { //#2919 + $k[$j++] = 'bwipp.ean13badCheckDigit'; //#2918 + $k[$j++] = "Incorrect EAN-13 check digit provided"; //#2918 + $0.raiseerror(); //#2918 + } //#2918 + } //#2918 + $puti($1.pad, 0, $1.barcode); //#2921 + $put($1.pad, 12, $f($1.checksum + 48)); //#2922 + $1.barcode = $1.pad; //#2923 + $1.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111"]); //#2930 + $1.barchars = "0123456789"; //#2933 + $1.mirrormaps = $a(["000000", "001011", "001101", "001110", "010011", "011001", "011100", "010101", "010110", "011010"]); //#2939 + $1.sbs = $s(59); //#2941 + $1.txt = $a(13); //#2942 + $puti($1.sbs, 0, $get($1.encs, 10)); //#2945 + $1.mirrormap = $get($1.mirrormaps, $get($1.barcode, 0) - 48); //#2948 + $put($1.txt, 0, $a([$geti($1.barcode, 0, 1), $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])); //#2949 + for (var _17 = 1; _17 <= 6; _17 += 1) { //#2972 + $1.i = _17; //#2954 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#2955 + $j--; //#2956 + $1.indx = $k[--$j].length; //#2957 + $j -= 2; //#2958 + $1.enc = $get($1.encs, $1.indx); //#2959 + if ($get($1.mirrormap, $1.i - 1) == 49) { //#2969 + $1.enclen = $1.enc.length; //#2961 + $1.revenc = $s($1.enclen); //#2962 + for (var _1O = 0, _1N = $1.enclen - 1; _1O <= _1N; _1O += 1) { //#2967 + $1.j = _1O; //#2964 + $1.char = $get($1.enc, $1.j); //#2965 + $put($1.revenc, ($1.enclen - $1.j) - 1, $1.char); //#2966 + } //#2966 + $1.enc = $1.revenc; //#2968 + } //#2968 + $puti($1.sbs, (($1.i - 1) * 4) + 3, $1.enc); //#2970 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $f(((($1.i - 1) * 7) + 14) + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize])); //#2971 + } //#2971 + $puti($1.sbs, ((7 - 1) * 4) + 3, $get($1.encs, 11)); //#2975 + for (var _1o = 7; _1o <= 12; _1o += 1) { //#2988 + $1.i = _1o; //#2980 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#2981 + $j--; //#2982 + $1.indx = $k[--$j].length; //#2983 + $j -= 2; //#2984 + $1.enc = $get($1.encs, $1.indx); //#2985 + $puti($1.sbs, (($1.i - 1) * 4) + 8, $1.enc); //#2986 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $f(((($1.i - 1) * 7) + 18) + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize])); //#2987 + } //#2987 + $puti($1.sbs, 56, $get($1.encs, 12)); //#2991 + $k[$j++] = Infinity; //#2993 + var _2E = $1.sbs; //#2993 + for (var _2F = 0, _2G = _2E.length; _2F < _2G; _2F++) { //#2993 + $k[$j++] = $get(_2E, _2F) - 48; //#2993 + } //#2993 + $1.sbs = $a(); //#2993 + if ($1.includetext) { //#3000 + $k[$j++] = Infinity; //#2995 + $k[$j++] = $1.height; //#2995 + $k[$j++] = $1.height; //#2995 + for (var _2M = 0, _2N = 12; _2M < _2N; _2M++) { //#2995 + $k[$j++] = $f($1.height - 0.075); //#2995 + } //#2995 + $k[$j++] = $1.height; //#2995 + $k[$j++] = $1.height; //#2995 + for (var _2R = 0, _2S = 12; _2R < _2S; _2R++) { //#2995 + $k[$j++] = $f($1.height - 0.075); //#2995 + } //#2995 + $k[$j++] = $1.height; //#2995 + $k[$j++] = $1.height; //#2995 + $1.bhs = $a(); //#2995 + $k[$j++] = Infinity; //#2996 + $k[$j++] = 0; //#2996 + $k[$j++] = 0; //#2996 + for (var _2X = 0, _2Y = 12; _2X < _2Y; _2X++) { //#2996 + $k[$j++] = 0.075; //#2996 + } //#2996 + $k[$j++] = 0; //#2996 + $k[$j++] = 0; //#2996 + for (var _2Z = 0, _2a = 12; _2Z < _2a; _2Z++) { //#2996 + $k[$j++] = 0.075; //#2996 + } //#2996 + $k[$j++] = 0; //#2996 + $k[$j++] = 0; //#2996 + $1.bbs = $a(); //#2996 + } else { //#3000 + $k[$j++] = Infinity; //#2998 + for (var _2c = 0, _2d = 30; _2c < _2d; _2c++) { //#2998 + $k[$j++] = $1.height; //#2998 + } //#2998 + $1.bhs = $a(); //#2998 + $k[$j++] = Infinity; //#2999 + for (var _2g = 0, _2h = 30; _2g < _2h; _2g++) { //#2999 + $k[$j++] = 0; //#2999 + } //#2999 + $1.bbs = $a(); //#2999 + $1.txt = $a([]); //#3000 + } //#3000 + $1.guardrightypos = 0; //#3002 + if ($ne($1.addon, "")) { //#3023 + $k[$j++] = Infinity; //#3013 + $k[$j++] = 'dontdraw'; //#3010 + $k[$j++] = true; //#3010 + $k[$j++] = 'includetext'; //#3010 + $k[$j++] = true; //#3010 + $k[$j++] = 'height'; //#3010 + $k[$j++] = $f($1.height - 0.15); //#3010 + $k[$j++] = 'textxoffset'; //#3010 + if ($1.addontextxoffset != "unset") { //#3010 + $k[$j++] = $1.addontextxoffset; //#3010 + } else { //#3010 + $k[$j++] = $f(95 + $1.addongap); //#3010 + } //#3010 + if ($1.addontextyoffset != "unset") { //#3011 + $k[$j++] = 'textyoffset'; //#3011 + $k[$j++] = $1.addontextyoffset; //#3011 + } //#3011 + var _2s = ($1.addontextsize != "unset") ? $1.addontextsize : $1.textsize; //#3012 + var _2u = $ne($1.addontextfont, "unset") ? $1.addontextfont : $1.textfont; //#3013 + $k[$j++] = 'textsize'; //#3013 + $k[$j++] = _2s; //#3013 + $k[$j++] = 'textfont'; //#3013 + $k[$j++] = _2u; //#3013 + $1.addopts = $d(); //#3014 + if ($1.addon.length == 2) { //#3015 + $k[$j++] = $1.addon; //#3015 + $k[$j++] = $1.addopts; //#3015 + $0.ean2(); //#3015 + } //#3015 + if ($1.addon.length == 5) { //#3016 + $k[$j++] = $1.addon; //#3016 + $k[$j++] = $1.addopts; //#3016 + $0.ean5(); //#3016 + } //#3016 + $1.addcode = $k[--$j]; //#3017 + $k[$j++] = Infinity; //#3018 + $aload($1.sbs); //#3018 + $k[$j++] = $1.addongap; //#3018 + $aload($get($1.addcode, "sbs")); //#3018 + $1.sbs = $a(); //#3018 + $k[$j++] = Infinity; //#3019 + $aload($1.bhs); //#3019 + $forall($get($1.addcode, "bhs"), function() { //#3019 + var _3B = $k[--$j]; //#3019 + $k[$j++] = $f(_3B - 0.075); //#3019 + }); //#3019 + $1.bhs = $a(); //#3019 + $k[$j++] = Infinity; //#3020 + $aload($1.bbs); //#3020 + $forall($get($1.addcode, "bbs"), function() { //#3020 + var _3G = $k[--$j]; //#3020 + $k[$j++] = $f(_3G + 0.075); //#3020 + }); //#3020 + $1.bbs = $a(); //#3020 + $k[$j++] = Infinity; //#3021 + $aload($1.txt); //#3021 + $aload($get($1.addcode, "txt")); //#3021 + $1.txt = $a(); //#3021 + $1.guardrightypos = $f(($1.height * 72) - 6); //#3022 + } //#3022 + var _3T = new Map([ + ["ren", $0.renlinear], + ["sbs", $1.sbs], + ["bhs", $1.bhs], + ["bbs", $1.bbs], + ["txt", $1.txt], + ["opt", $1.options], + ["guardrightpos", 10], + ["guardrightypos", $1.guardrightypos], + ["borderbottom", 5] + ]); //#3035 + $k[$j++] = _3T; //#3038 + if (!$1.dontdraw) { //#3038 + $0.renlinear(); //#3038 + } //#3038 }; $0.ean8 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 12; - $1.textxoffset = 4; - $1.textyoffset = -4; - $1.height = 1; - $1.addongap = 12; - $1.addontextfont = "unset"; - $1.addontextsize = "unset"; - $1.addontextxoffset = "unset"; - $1.addontextyoffset = "unset"; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.addongap = +$1.addongap; - if ($ne($1.addontextfont, "unset")) { - $1.addontextfont = "" + $1.addontextfont; - } - if ($ne($1.addontextsize, "unset")) { - $1.addontextsize = +$1.addontextsize; - } - if ($ne($1.addontextxoffset, "unset")) { - $1.addontextxoffset = +$1.addontextxoffset; - } - if ($ne($1.addontextyoffset, "unset")) { - $1.addontextyoffset = +$1.addontextyoffset; - } - $search($1.barcode, " "); - if ($k[--$j]) { - $1.barcode = $k[--$j]; - $j--; - $1.addon = $k[--$j]; - } else { - $j--; - $1.addon = ""; - } - if ($1.barcode.length != 7 && $1.barcode.length != 8) { - $k[$j++] = "bwipp.ean8badLength"; - $k[$j++] = "EAN-8 must be 7 or 8 digits"; - $0.raiseerror(); - } - $forall($1.barcode, function() { - var _Q = $k[--$j]; - if (_Q < 48 || _Q > 57) { - $k[$j++] = "bwipp.ean8badCharacter"; - $k[$j++] = "EAN-8 must contain only digits"; - $0.raiseerror(); - } - }); - if ($1.addon.length != 0 && $1.addon.length != 2 && $1.addon.length != 5) { - $k[$j++] = "bwipp.ean8badAddOnLength"; - $k[$j++] = "Add-on for EAN-8 must be 2 or 5 digits"; - $0.raiseerror(); - } - $1.pad = $s(8); - $1.checksum = 0; - for (var _V = 0; _V <= 6; _V += 1) { - $1.i = _V; - $1.barchar = $f($get($1.barcode, $1.i) - 48); - if ($1.i % 2 != 0) { - $1.checksum = $f($1.barchar + $1.checksum); - } else { - $1.checksum = $f($1.barchar * 3 + $1.checksum); - } - } - $1.checksum = $f(10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 8) { - if ($get($1.barcode, 7) != $f($1.checksum + 48)) { - $k[$j++] = "bwipp.ean8badCheckDigit"; - $k[$j++] = "Incorrect EAN-8 check digit provided"; - $0.raiseerror(); - } - } - $puti($1.pad, 0, $1.barcode); - $put($1.pad, 7, $f($1.checksum + 48)); - $1.barcode = $1.pad; - $1.encs = $a([ "3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111" ]); - $1.barchars = "0123456789"; - $1.sbs = $s(43); - $1.txt = $a(8); - $puti($1.sbs, 0, $get($1.encs, 10)); - for (var _u = 0; _u <= 3; _u += 1) { - $1.i = _u; - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $1.i * 4 + 3, $1.enc); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $f($1.i * 7 + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize ])); - } - $puti($1.sbs, 4 * 4 + 3, $get($1.encs, 11)); - for (var _1K = 4; _1K <= 7; _1K += 1) { - $1.i = _1K; - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $1.i * 4 + 8, $1.enc); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $f($f($1.i * 7 + $1.textxoffset) + 4), $1.textyoffset, $1.textfont, $1.textsize ])); - } - $puti($1.sbs, 40, $get($1.encs, 12)); - $k[$j++] = Infinity; - var _1k = $1.sbs; - for (var _1l = 0, _1m = _1k.length; _1l < _1m; _1l++) { - $k[$j++] = $get(_1k, _1l) - 48; - } - $1.sbs = $a(); - if ($1.includetext) { - $k[$j++] = Infinity; - $k[$j++] = $1.height; - $k[$j++] = $1.height; - for (var _1s = 0, _1t = 8; _1s < _1t; _1s++) { - $k[$j++] = $f($1.height - .075); - } - $k[$j++] = $1.height; - $k[$j++] = $1.height; - for (var _1x = 0, _1y = 8; _1x < _1y; _1x++) { - $k[$j++] = $f($1.height - .075); - } - $k[$j++] = $1.height; - $k[$j++] = $1.height; - $1.bhs = $a(); - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = 0; - for (var _23 = 0, _24 = 8; _23 < _24; _23++) { - $k[$j++] = .075; - } - $k[$j++] = 0; - $k[$j++] = 0; - for (var _25 = 0, _26 = 8; _25 < _26; _25++) { - $k[$j++] = .075; - } - $k[$j++] = 0; - $k[$j++] = 0; - $1.bbs = $a(); - } else { - $k[$j++] = Infinity; - for (var _28 = 0, _29 = 22; _28 < _29; _28++) { - $k[$j++] = $1.height; - } - $1.bhs = $a(); - $k[$j++] = Infinity; - for (var _2C = 0, _2D = 22; _2C < _2D; _2C++) { - $k[$j++] = 0; - } - $1.bbs = $a(); - $1.txt = $a([]); - } - $1.guardrightypos = 0; - if ($ne($1.addon, "")) { - $k[$j++] = Infinity; - $k[$j++] = "dontdraw"; - $k[$j++] = true; - $k[$j++] = "includetext"; - $k[$j++] = true; - $k[$j++] = "height"; - $k[$j++] = $f($1.height - .15); - $k[$j++] = "textxoffset"; - if ($1.addontextxoffset != "unset") { - $k[$j++] = $1.addontextxoffset; - } else { - $k[$j++] = $f(67 + $1.addongap); - } - if ($1.addontextyoffset != "unset") { - $k[$j++] = "textyoffset"; - $k[$j++] = $1.addontextyoffset; - } - var _2O = $1.addontextsize != "unset" ? $1.addontextsize : $1.textsize; - var _2Q = $ne($1.addontextfont, "unset") ? $1.addontextfont : $1.textfont; - $k[$j++] = "textsize"; - $k[$j++] = _2O; - $k[$j++] = "textfont"; - $k[$j++] = _2Q; - $1.addopts = $d(); - if ($1.addon.length == 2) { - $k[$j++] = $1.addon; - $k[$j++] = $1.addopts; - $0.ean2(); - } - if ($1.addon.length == 5) { - $k[$j++] = $1.addon; - $k[$j++] = $1.addopts; - $0.ean5(); - } - $1.addcode = $k[--$j]; - $k[$j++] = Infinity; - $aload($1.sbs); - $k[$j++] = $1.addongap; - $aload($get($1.addcode, "sbs")); - $1.sbs = $a(); - $k[$j++] = Infinity; - $aload($1.bhs); - $forall($get($1.addcode, "bhs"), function() { - var _2h = $k[--$j]; - $k[$j++] = $f(_2h - .075); - }); - $1.bhs = $a(); - $k[$j++] = Infinity; - $aload($1.bbs); - $forall($get($1.addcode, "bbs"), function() { - var _2m = $k[--$j]; - $k[$j++] = $f(_2m + .075); - }); - $1.bbs = $a(); - $k[$j++] = Infinity; - $aload($1.txt); - $aload($get($1.addcode, "txt")); - $1.txt = $a(); - $1.guardrightypos = $f($1.height * 72 - 6); - } - var _2z = new Map([ [ "ren", $0.renlinear ], [ "sbs", $1.sbs ], [ "bhs", $1.bhs ], [ "bbs", $1.bbs ], [ "txt", $1.txt ], [ "opt", $1.options ], [ "guardleftpos", 10 ], [ "guardrightpos", 10 ], [ "guardrightypos", $1.guardrightypos ], [ "borderbottom", 5 ] ]); - $k[$j++] = _2z; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#3069 + $1.options = $k[--$j]; //#3071 + $1.barcode = $k[--$j]; //#3072 + $1.dontdraw = false; //#3074 + $1.includetext = false; //#3075 + $1.textfont = "OCR-B"; //#3076 + $1.textsize = 12; //#3077 + $1.textxoffset = 4; //#3078 + $1.textyoffset = -4; //#3079 + $1.height = 1; //#3080 + $1.addongap = 12; //#3081 + $1.addontextfont = "unset"; //#3082 + $1.addontextsize = "unset"; //#3083 + $1.addontextxoffset = "unset"; //#3084 + $1.addontextyoffset = "unset"; //#3085 + $forall($1.options, function() { //#3096 + var _3 = $k[--$j]; //#3096 + $1[$k[--$j]] = _3; //#3096 + }); //#3096 + $1.textfont = "" + $1.textfont; //#3098 + $1.textsize = +$1.textsize; //#3099 + $1.textxoffset = +$1.textxoffset; //#3100 + $1.textyoffset = +$1.textyoffset; //#3101 + $1.height = +$1.height; //#3102 + $1.addongap = +$1.addongap; //#3103 + if ($ne($1.addontextfont, "unset")) { //#3104 + $1.addontextfont = "" + $1.addontextfont; //#3104 + } //#3104 + if ($ne($1.addontextsize, "unset")) { //#3105 + $1.addontextsize = +$1.addontextsize; //#3105 + } //#3105 + if ($ne($1.addontextxoffset, "unset")) { //#3106 + $1.addontextxoffset = +$1.addontextxoffset; //#3106 + } //#3106 + if ($ne($1.addontextyoffset, "unset")) { //#3107 + $1.addontextyoffset = +$1.addontextyoffset; //#3107 + } //#3107 + $search($1.barcode, " "); //#3110 + if ($k[--$j]) { //#3116 + $1.barcode = $k[--$j]; //#3111 + $j--; //#3112 + $1.addon = $k[--$j]; //#3113 + } else { //#3116 + $j--; //#3115 + $1.addon = ""; //#3116 + } //#3116 + if (($1.barcode.length != 7) && ($1.barcode.length != 8)) { //#3122 + $k[$j++] = 'bwipp.ean8badLength'; //#3121 + $k[$j++] = "EAN-8 must be 7 or 8 digits"; //#3121 + $0.raiseerror(); //#3121 + } //#3121 + $forall($1.barcode, function() { //#3127 + var _Q = $k[--$j]; //#3124 + if ((_Q < 48) || (_Q > 57)) { //#3126 + $k[$j++] = 'bwipp.ean8badCharacter'; //#3125 + $k[$j++] = "EAN-8 must contain only digits"; //#3125 + $0.raiseerror(); //#3125 + } //#3125 + }); //#3125 + if ((($1.addon.length != 0) && ($1.addon.length != 2)) && ($1.addon.length != 5)) { //#3130 + $k[$j++] = 'bwipp.ean8badAddOnLength'; //#3129 + $k[$j++] = "Add-on for EAN-8 must be 2 or 5 digits"; //#3129 + $0.raiseerror(); //#3129 + } //#3129 + $1.pad = $s(8); //#3133 + $1.checksum = 0; //#3134 + for (var _V = 0; _V <= 6; _V += 1) { //#3143 + $1.i = _V; //#3136 + $1.barchar = $f($get($1.barcode, $1.i) - 48); //#3137 + if (($1.i % 2) != 0) { //#3141 + $1.checksum = $f($1.barchar + $1.checksum); //#3139 + } else { //#3141 + $1.checksum = $f(($1.barchar * 3) + $1.checksum); //#3141 + } //#3141 + } //#3141 + $1.checksum = ($f(10 - ($1.checksum % 10))) % 10; //#3144 + if ($1.barcode.length == 8) { //#3149 + if ($get($1.barcode, 7) != $f($1.checksum + 48)) { //#3148 + $k[$j++] = 'bwipp.ean8badCheckDigit'; //#3147 + $k[$j++] = "Incorrect EAN-8 check digit provided"; //#3147 + $0.raiseerror(); //#3147 + } //#3147 + } //#3147 + $puti($1.pad, 0, $1.barcode); //#3150 + $put($1.pad, 7, $f($1.checksum + 48)); //#3151 + $1.barcode = $1.pad; //#3152 + $1.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111"]); //#3159 + $1.barchars = "0123456789"; //#3162 + $1.sbs = $s(43); //#3164 + $1.txt = $a(8); //#3165 + $puti($1.sbs, 0, $get($1.encs, 10)); //#3168 + for (var _u = 0; _u <= 3; _u += 1) { //#3181 + $1.i = _u; //#3173 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#3174 + $j--; //#3175 + $1.indx = $k[--$j].length; //#3176 + $j -= 2; //#3177 + $1.enc = $get($1.encs, $1.indx); //#3178 + $puti($1.sbs, ($1.i * 4) + 3, $1.enc); //#3179 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $f(($1.i * 7) + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize])); //#3180 + } //#3180 + $puti($1.sbs, (4 * 4) + 3, $get($1.encs, 11)); //#3184 + for (var _1K = 4; _1K <= 7; _1K += 1) { //#3197 + $1.i = _1K; //#3189 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#3190 + $j--; //#3191 + $1.indx = $k[--$j].length; //#3192 + $j -= 2; //#3193 + $1.enc = $get($1.encs, $1.indx); //#3194 + $puti($1.sbs, ($1.i * 4) + 8, $1.enc); //#3195 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $f(($f(($1.i * 7) + $1.textxoffset)) + 4), $1.textyoffset, $1.textfont, $1.textsize])); //#3196 + } //#3196 + $puti($1.sbs, 40, $get($1.encs, 12)); //#3200 + $k[$j++] = Infinity; //#3202 + var _1k = $1.sbs; //#3202 + for (var _1l = 0, _1m = _1k.length; _1l < _1m; _1l++) { //#3202 + $k[$j++] = $get(_1k, _1l) - 48; //#3202 + } //#3202 + $1.sbs = $a(); //#3202 + if ($1.includetext) { //#3209 + $k[$j++] = Infinity; //#3204 + $k[$j++] = $1.height; //#3204 + $k[$j++] = $1.height; //#3204 + for (var _1s = 0, _1t = 8; _1s < _1t; _1s++) { //#3204 + $k[$j++] = $f($1.height - 0.075); //#3204 + } //#3204 + $k[$j++] = $1.height; //#3204 + $k[$j++] = $1.height; //#3204 + for (var _1x = 0, _1y = 8; _1x < _1y; _1x++) { //#3204 + $k[$j++] = $f($1.height - 0.075); //#3204 + } //#3204 + $k[$j++] = $1.height; //#3204 + $k[$j++] = $1.height; //#3204 + $1.bhs = $a(); //#3204 + $k[$j++] = Infinity; //#3205 + $k[$j++] = 0; //#3205 + $k[$j++] = 0; //#3205 + for (var _23 = 0, _24 = 8; _23 < _24; _23++) { //#3205 + $k[$j++] = 0.075; //#3205 + } //#3205 + $k[$j++] = 0; //#3205 + $k[$j++] = 0; //#3205 + for (var _25 = 0, _26 = 8; _25 < _26; _25++) { //#3205 + $k[$j++] = 0.075; //#3205 + } //#3205 + $k[$j++] = 0; //#3205 + $k[$j++] = 0; //#3205 + $1.bbs = $a(); //#3205 + } else { //#3209 + $k[$j++] = Infinity; //#3207 + for (var _28 = 0, _29 = 22; _28 < _29; _28++) { //#3207 + $k[$j++] = $1.height; //#3207 + } //#3207 + $1.bhs = $a(); //#3207 + $k[$j++] = Infinity; //#3208 + for (var _2C = 0, _2D = 22; _2C < _2D; _2C++) { //#3208 + $k[$j++] = 0; //#3208 + } //#3208 + $1.bbs = $a(); //#3208 + $1.txt = $a([]); //#3209 + } //#3209 + $1.guardrightypos = 0; //#3211 + if ($ne($1.addon, "")) { //#3232 + $k[$j++] = Infinity; //#3222 + $k[$j++] = 'dontdraw'; //#3219 + $k[$j++] = true; //#3219 + $k[$j++] = 'includetext'; //#3219 + $k[$j++] = true; //#3219 + $k[$j++] = 'height'; //#3219 + $k[$j++] = $f($1.height - 0.15); //#3219 + $k[$j++] = 'textxoffset'; //#3219 + if ($1.addontextxoffset != "unset") { //#3219 + $k[$j++] = $1.addontextxoffset; //#3219 + } else { //#3219 + $k[$j++] = $f(67 + $1.addongap); //#3219 + } //#3219 + if ($1.addontextyoffset != "unset") { //#3220 + $k[$j++] = 'textyoffset'; //#3220 + $k[$j++] = $1.addontextyoffset; //#3220 + } //#3220 + var _2O = ($1.addontextsize != "unset") ? $1.addontextsize : $1.textsize; //#3221 + var _2Q = $ne($1.addontextfont, "unset") ? $1.addontextfont : $1.textfont; //#3222 + $k[$j++] = 'textsize'; //#3222 + $k[$j++] = _2O; //#3222 + $k[$j++] = 'textfont'; //#3222 + $k[$j++] = _2Q; //#3222 + $1.addopts = $d(); //#3223 + if ($1.addon.length == 2) { //#3224 + $k[$j++] = $1.addon; //#3224 + $k[$j++] = $1.addopts; //#3224 + $0.ean2(); //#3224 + } //#3224 + if ($1.addon.length == 5) { //#3225 + $k[$j++] = $1.addon; //#3225 + $k[$j++] = $1.addopts; //#3225 + $0.ean5(); //#3225 + } //#3225 + $1.addcode = $k[--$j]; //#3226 + $k[$j++] = Infinity; //#3227 + $aload($1.sbs); //#3227 + $k[$j++] = $1.addongap; //#3227 + $aload($get($1.addcode, "sbs")); //#3227 + $1.sbs = $a(); //#3227 + $k[$j++] = Infinity; //#3228 + $aload($1.bhs); //#3228 + $forall($get($1.addcode, "bhs"), function() { //#3228 + var _2h = $k[--$j]; //#3228 + $k[$j++] = $f(_2h - 0.075); //#3228 + }); //#3228 + $1.bhs = $a(); //#3228 + $k[$j++] = Infinity; //#3229 + $aload($1.bbs); //#3229 + $forall($get($1.addcode, "bbs"), function() { //#3229 + var _2m = $k[--$j]; //#3229 + $k[$j++] = $f(_2m + 0.075); //#3229 + }); //#3229 + $1.bbs = $a(); //#3229 + $k[$j++] = Infinity; //#3230 + $aload($1.txt); //#3230 + $aload($get($1.addcode, "txt")); //#3230 + $1.txt = $a(); //#3230 + $1.guardrightypos = $f(($1.height * 72) - 6); //#3231 + } //#3231 + var _2z = new Map([ + ["ren", $0.renlinear], + ["sbs", $1.sbs], + ["bhs", $1.bhs], + ["bbs", $1.bbs], + ["txt", $1.txt], + ["opt", $1.options], + ["guardleftpos", 10], + ["guardrightpos", 10], + ["guardrightypos", $1.guardrightypos], + ["borderbottom", 5] + ]); //#3245 + $k[$j++] = _2z; //#3248 + if (!$1.dontdraw) { //#3248 + $0.renlinear(); //#3248 + } //#3248 }; $0.upca = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 12; - $1.textxoffset = -7; - $1.textyoffset = -4; - $1.height = 1; - $1.addongap = 12; - $1.addontextfont = "unset"; - $1.addontextsize = "unset"; - $1.addontextxoffset = "unset"; - $1.addontextyoffset = "unset"; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.addongap = +$1.addongap; - if ($ne($1.addontextfont, "unset")) { - $1.addontextfont = "" + $1.addontextfont; - } - if ($ne($1.addontextsize, "unset")) { - $1.addontextsize = +$1.addontextsize; - } - if ($ne($1.addontextxoffset, "unset")) { - $1.addontextxoffset = +$1.addontextxoffset; - } - if ($ne($1.addontextyoffset, "unset")) { - $1.addontextyoffset = +$1.addontextyoffset; - } - $search($1.barcode, " "); - if ($k[--$j]) { - $1.barcode = $k[--$j]; - $j--; - $1.addon = $k[--$j]; - } else { - $j--; - $1.addon = ""; - } - if ($1.barcode.length == 7 || $1.barcode.length == 8) { - $forall($1.barcode, function() { - var _Q = $k[--$j]; - if (_Q < 48 || _Q > 57) { - $k[$j++] = "bwipp.upcAupcEbadCharacter"; - $k[$j++] = "UPC-E must contain only digits"; - $0.raiseerror(); - } - }); - var _S = $get($1.barcode, 0); - if (_S != 48 && _S != 49) { - $k[$j++] = "bwipp.upcAupcEbadNumberSystem"; - $k[$j++] = "UPC-E must have number system 0 or 1"; - $0.raiseerror(); - } - for (var _T = 0, _U = 1; _T < _U; _T++) { - var _W = $1.barcode.length == 8 ? 12 : 11; - $1.upcacode = $s(_W); - if ($f($get($1.barcode, 6) - 48) <= 2) { - $puti($1.upcacode, 0, $geti($1.barcode, 0, 3)); - $puti($1.upcacode, 3, $geti($1.barcode, 6, 1)); - $puti($1.upcacode, 4, "0000"); - $puti($1.upcacode, 8, $geti($1.barcode, 3, 3)); - break; - } - if ($f($get($1.barcode, 6) - 48) == 3) { - $puti($1.upcacode, 0, $geti($1.barcode, 0, 4)); - $puti($1.upcacode, 4, "00000"); - $puti($1.upcacode, 9, $geti($1.barcode, 4, 2)); - break; - } - if ($f($get($1.barcode, 6) - 48) == 4) { - $puti($1.upcacode, 0, $geti($1.barcode, 0, 5)); - $puti($1.upcacode, 5, "00000"); - $puti($1.upcacode, 10, $geti($1.barcode, 5, 1)); - break; - } - if ($f($get($1.barcode, 6) - 48) >= 5) { - $puti($1.upcacode, 0, $geti($1.barcode, 0, 6)); - $puti($1.upcacode, 6, "0000"); - $puti($1.upcacode, 10, $geti($1.barcode, 6, 1)); - break; - } - } - if ($1.barcode.length == 8) { - $puti($1.upcacode, 11, $geti($1.barcode, 7, 1)); - } - $1.barcode = $1.upcacode; - } - if ($1.barcode.length != 11 && $1.barcode.length != 12) { - $k[$j++] = "bwipp.upcAbadLength"; - $k[$j++] = "UPC-A must be 11 or 12 digits"; - $0.raiseerror(); - } - var _1I = $1.barcode; - for (var _1J = 0, _1K = _1I.length; _1J < _1K; _1J++) { - var _1L = $get(_1I, _1J); - if (_1L < 48 || _1L > 57) { - $k[$j++] = "bwipp.upcAbadCharacter"; - $k[$j++] = "UPC-A must contain only digits"; - $0.raiseerror(); - } - } - if ($1.addon.length != 0 && $1.addon.length != 2 && $1.addon.length != 5) { - $k[$j++] = "bwipp.upcAbadAddOnLength"; - $k[$j++] = "Add-on for UPC-A must be 2 or 5 digits"; - $0.raiseerror(); - } - $1.pad = $s(12); - $1.checksum = 0; - for (var _1Q = 0; _1Q <= 10; _1Q += 1) { - $1.i = _1Q; - $1.barchar = $get($1.barcode, $1.i) - 48; - if ($1.i % 2 != 0) { - $1.checksum = $1.checksum + $1.barchar; - } else { - $1.checksum = $1.checksum + $1.barchar * 3; - } - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 12) { - if ($get($1.barcode, 11) != $1.checksum + 48) { - $k[$j++] = "bwipp.upcAbadCheckDigit"; - $k[$j++] = "Incorrect UPC check digit provided"; - $0.raiseerror(); - } - } - $puti($1.pad, 0, $1.barcode); - $put($1.pad, 11, $1.checksum + 48); - $1.barcode = $1.pad; - $1.encs = $a([ "3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111" ]); - $1.barchars = "0123456789"; - $1.sbs = $s(59); - $1.txt = $a(12); - $puti($1.sbs, 0, $get($1.encs, 10)); - for (var _1p = 0; _1p <= 5; _1p += 1) { - $1.i = _1p; - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $1.i * 4 + 3, $1.enc); - if ($1.i == 0) { - $put($1.txt, 0, $a([ $geti($1.barcode, 0, 1), $1.textxoffset, $1.textyoffset, $1.textfont, $f($1.textsize - 2) ])); - } else { - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $f($1.i * 7 + 11 + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize ])); - } - } - $puti($1.sbs, 6 * 4 + 3, $get($1.encs, 11)); - for (var _2O = 6; _2O <= 11; _2O += 1) { - $1.i = _2O; - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $1.i * 4 + 8, $1.enc); - if ($1.i == 11) { - $put($1.txt, 11, $a([ $geti($1.barcode, 11, 1), $f($1.textxoffset + 104), $1.textyoffset, $1.textfont, $f($1.textsize - 2) ])); - } else { - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $f($f($1.i * 7 + $1.textxoffset) + 15), $1.textyoffset, $1.textfont, $1.textsize ])); - } - } - $puti($1.sbs, 56, $get($1.encs, 12)); - $k[$j++] = Infinity; - var _2x = $1.sbs; - for (var _2y = 0, _2z = _2x.length; _2y < _2z; _2y++) { - $k[$j++] = $get(_2x, _2y) - 48; - } - $1.sbs = $a(); - if ($1.includetext) { - $k[$j++] = Infinity; - for (var _33 = 0, _34 = 4; _33 < _34; _33++) { - $k[$j++] = $1.height; - } - for (var _36 = 0, _37 = 10; _36 < _37; _36++) { - $k[$j++] = $f($1.height - .075); - } - $k[$j++] = $1.height; - $k[$j++] = $1.height; - for (var _3B = 0, _3C = 10; _3B < _3C; _3B++) { - $k[$j++] = $f($1.height - .075); - } - for (var _3E = 0, _3F = 4; _3E < _3F; _3E++) { - $k[$j++] = $1.height; - } - $1.bhs = $a(); - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - for (var _3I = 0, _3J = 10; _3I < _3J; _3I++) { - $k[$j++] = .075; - } - $k[$j++] = 0; - $k[$j++] = 0; - for (var _3K = 0, _3L = 10; _3K < _3L; _3K++) { - $k[$j++] = .075; - } - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $1.bbs = $a(); - } else { - $k[$j++] = Infinity; - for (var _3N = 0, _3O = 30; _3N < _3O; _3N++) { - $k[$j++] = $1.height; - } - $1.bhs = $a(); - $k[$j++] = Infinity; - for (var _3R = 0, _3S = 30; _3R < _3S; _3R++) { - $k[$j++] = 0; - } - $1.bbs = $a(); - $1.txt = $a([]); - } - $1.guardrightypos = 0; - if ($ne($1.addon, "")) { - $k[$j++] = Infinity; - $k[$j++] = "dontdraw"; - $k[$j++] = true; - $k[$j++] = "includetext"; - $k[$j++] = true; - $k[$j++] = "height"; - $k[$j++] = $f($1.height - .15); - $k[$j++] = "textxoffset"; - if ($1.addontextxoffset != "unset") { - $k[$j++] = $1.addontextxoffset; - } else { - $k[$j++] = $f(95 + $1.addongap); - } - if ($1.addontextyoffset != "unset") { - $k[$j++] = "textyoffset"; - $k[$j++] = $1.addontextyoffset; - } - var _3d = $1.addontextsize != "unset" ? $1.addontextsize : $1.textsize; - var _3f = $ne($1.addontextfont, "unset") ? $1.addontextfont : $1.textfont; - $k[$j++] = "textsize"; - $k[$j++] = _3d; - $k[$j++] = "textfont"; - $k[$j++] = _3f; - $1.addopts = $d(); - if ($1.addon.length == 2) { - $k[$j++] = $1.addon; - $k[$j++] = $1.addopts; - $0.ean2(); - } - if ($1.addon.length == 5) { - $k[$j++] = $1.addon; - $k[$j++] = $1.addopts; - $0.ean5(); - } - $1.addcode = $k[--$j]; - $k[$j++] = Infinity; - $aload($1.sbs); - $k[$j++] = $1.addongap; - $aload($get($1.addcode, "sbs")); - $1.sbs = $a(); - $k[$j++] = Infinity; - $aload($1.bhs); - $forall($get($1.addcode, "bhs"), function() { - var _3w = $k[--$j]; - $k[$j++] = $f(_3w - .075); - }); - $1.bhs = $a(); - $k[$j++] = Infinity; - $aload($1.bbs); - $forall($get($1.addcode, "bbs"), function() { - var _41 = $k[--$j]; - $k[$j++] = $f(_41 + .075); - }); - $1.bbs = $a(); - $k[$j++] = Infinity; - $aload($1.txt); - $aload($get($1.addcode, "txt")); - $1.txt = $a(); - $1.guardrightypos = $f($1.height * 72 - 6); - } - var _4E = new Map([ [ "ren", $0.renlinear ], [ "sbs", $1.sbs ], [ "bhs", $1.bhs ], [ "bbs", $1.bbs ], [ "txt", $1.txt ], [ "opt", $1.options ], [ "guardrightpos", 10 ], [ "guardrightypos", $1.guardrightypos ], [ "borderbottom", 5 ] ]); - $k[$j++] = _4E; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#3279 + $1.options = $k[--$j]; //#3281 + $1.barcode = $k[--$j]; //#3282 + $1.dontdraw = false; //#3284 + $1.includetext = false; //#3285 + $1.textfont = "OCR-B"; //#3286 + $1.textsize = 12; //#3287 + $1.textxoffset = -7; //#3288 + $1.textyoffset = -4; //#3289 + $1.height = 1; //#3290 + $1.addongap = 12; //#3291 + $1.addontextfont = "unset"; //#3292 + $1.addontextsize = "unset"; //#3293 + $1.addontextxoffset = "unset"; //#3294 + $1.addontextyoffset = "unset"; //#3295 + $forall($1.options, function() { //#3306 + var _3 = $k[--$j]; //#3306 + $1[$k[--$j]] = _3; //#3306 + }); //#3306 + $1.textfont = "" + $1.textfont; //#3308 + $1.textsize = +$1.textsize; //#3309 + $1.textxoffset = +$1.textxoffset; //#3310 + $1.textyoffset = +$1.textyoffset; //#3311 + $1.height = +$1.height; //#3312 + $1.addongap = +$1.addongap; //#3313 + if ($ne($1.addontextfont, "unset")) { //#3314 + $1.addontextfont = "" + $1.addontextfont; //#3314 + } //#3314 + if ($ne($1.addontextsize, "unset")) { //#3315 + $1.addontextsize = +$1.addontextsize; //#3315 + } //#3315 + if ($ne($1.addontextxoffset, "unset")) { //#3316 + $1.addontextxoffset = +$1.addontextxoffset; //#3316 + } //#3316 + if ($ne($1.addontextyoffset, "unset")) { //#3317 + $1.addontextyoffset = +$1.addontextyoffset; //#3317 + } //#3317 + $search($1.barcode, " "); //#3320 + if ($k[--$j]) { //#3326 + $1.barcode = $k[--$j]; //#3321 + $j--; //#3322 + $1.addon = $k[--$j]; //#3323 + } else { //#3326 + $j--; //#3325 + $1.addon = ""; //#3326 + } //#3326 + if (($1.barcode.length == 7) || ($1.barcode.length == 8)) { //#3372 + $forall($1.barcode, function() { //#3336 + var _Q = $k[--$j]; //#3333 + if ((_Q < 48) || (_Q > 57)) { //#3335 + $k[$j++] = 'bwipp.upcAupcEbadCharacter'; //#3334 + $k[$j++] = "UPC-E must contain only digits"; //#3334 + $0.raiseerror(); //#3334 + } //#3334 + }); //#3334 + var _S = $get($1.barcode, 0); //#3337 + if ((_S != 48) && (_S != 49)) { //#3339 + $k[$j++] = 'bwipp.upcAupcEbadNumberSystem'; //#3338 + $k[$j++] = "UPC-E must have number system 0 or 1"; //#3338 + $0.raiseerror(); //#3338 + } //#3338 + for (var _T = 0, _U = 1; _T < _U; _T++) { //#3367 + var _W = ($1.barcode.length == 8) ? 12 : 11; //#3341 + $1.upcacode = $s(_W); //#3341 + if ($f($get($1.barcode, 6) - 48) <= 2) { //#3348 + $puti($1.upcacode, 0, $geti($1.barcode, 0, 3)); //#3343 + $puti($1.upcacode, 3, $geti($1.barcode, 6, 1)); //#3344 + $puti($1.upcacode, 4, "0000"); //#3345 + $puti($1.upcacode, 8, $geti($1.barcode, 3, 3)); //#3346 + break; //#3347 + } //#3347 + if ($f($get($1.barcode, 6) - 48) == 3) { //#3354 + $puti($1.upcacode, 0, $geti($1.barcode, 0, 4)); //#3350 + $puti($1.upcacode, 4, "00000"); //#3351 + $puti($1.upcacode, 9, $geti($1.barcode, 4, 2)); //#3352 + break; //#3353 + } //#3353 + if ($f($get($1.barcode, 6) - 48) == 4) { //#3360 + $puti($1.upcacode, 0, $geti($1.barcode, 0, 5)); //#3356 + $puti($1.upcacode, 5, "00000"); //#3357 + $puti($1.upcacode, 10, $geti($1.barcode, 5, 1)); //#3358 + break; //#3359 + } //#3359 + if ($f($get($1.barcode, 6) - 48) >= 5) { //#3366 + $puti($1.upcacode, 0, $geti($1.barcode, 0, 6)); //#3362 + $puti($1.upcacode, 6, "0000"); //#3363 + $puti($1.upcacode, 10, $geti($1.barcode, 6, 1)); //#3364 + break; //#3365 + } //#3365 + } //#3365 + if ($1.barcode.length == 8) { //#3370 + $puti($1.upcacode, 11, $geti($1.barcode, 7, 1)); //#3369 + } //#3369 + $1.barcode = $1.upcacode; //#3371 + } //#3371 + if (($1.barcode.length != 11) && ($1.barcode.length != 12)) { //#3377 + $k[$j++] = 'bwipp.upcAbadLength'; //#3376 + $k[$j++] = "UPC-A must be 11 or 12 digits"; //#3376 + $0.raiseerror(); //#3376 + } //#3376 + var _1I = $1.barcode; //#3378 + for (var _1J = 0, _1K = _1I.length; _1J < _1K; _1J++) { //#3382 + var _1L = $get(_1I, _1J); //#3382 + if ((_1L < 48) || (_1L > 57)) { //#3381 + $k[$j++] = 'bwipp.upcAbadCharacter'; //#3380 + $k[$j++] = "UPC-A must contain only digits"; //#3380 + $0.raiseerror(); //#3380 + } //#3380 + } //#3380 + if ((($1.addon.length != 0) && ($1.addon.length != 2)) && ($1.addon.length != 5)) { //#3385 + $k[$j++] = 'bwipp.upcAbadAddOnLength'; //#3384 + $k[$j++] = "Add-on for UPC-A must be 2 or 5 digits"; //#3384 + $0.raiseerror(); //#3384 + } //#3384 + $1.pad = $s(12); //#3388 + $1.checksum = 0; //#3389 + for (var _1Q = 0; _1Q <= 10; _1Q += 1) { //#3398 + $1.i = _1Q; //#3391 + $1.barchar = $get($1.barcode, $1.i) - 48; //#3392 + if (($1.i % 2) != 0) { //#3396 + $1.checksum = $1.checksum + $1.barchar; //#3394 + } else { //#3396 + $1.checksum = $1.checksum + ($1.barchar * 3); //#3396 + } //#3396 + } //#3396 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#3399 + if ($1.barcode.length == 12) { //#3404 + if ($get($1.barcode, 11) != ($1.checksum + 48)) { //#3403 + $k[$j++] = 'bwipp.upcAbadCheckDigit'; //#3402 + $k[$j++] = "Incorrect UPC check digit provided"; //#3402 + $0.raiseerror(); //#3402 + } //#3402 + } //#3402 + $puti($1.pad, 0, $1.barcode); //#3405 + $put($1.pad, 11, $1.checksum + 48); //#3406 + $1.barcode = $1.pad; //#3407 + $1.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "11111", "111"]); //#3414 + $1.barchars = "0123456789"; //#3417 + $1.sbs = $s(59); //#3419 + $1.txt = $a(12); //#3420 + $puti($1.sbs, 0, $get($1.encs, 10)); //#3423 + for (var _1p = 0; _1p <= 5; _1p += 1) { //#3440 + $1.i = _1p; //#3428 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#3429 + $j--; //#3430 + $1.indx = $k[--$j].length; //#3431 + $j -= 2; //#3432 + $1.enc = $get($1.encs, $1.indx); //#3433 + $puti($1.sbs, ($1.i * 4) + 3, $1.enc); //#3434 + if ($1.i == 0) { //#3438 + $put($1.txt, 0, $a([$geti($1.barcode, 0, 1), $1.textxoffset, $1.textyoffset, $1.textfont, $f($1.textsize - 2)])); //#3436 + } else { //#3438 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $f((($1.i * 7) + 11) + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize])); //#3438 + } //#3438 + } //#3438 + $puti($1.sbs, (6 * 4) + 3, $get($1.encs, 11)); //#3443 + for (var _2O = 6; _2O <= 11; _2O += 1) { //#3460 + $1.i = _2O; //#3448 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#3449 + $j--; //#3450 + $1.indx = $k[--$j].length; //#3451 + $j -= 2; //#3452 + $1.enc = $get($1.encs, $1.indx); //#3453 + $puti($1.sbs, ($1.i * 4) + 8, $1.enc); //#3454 + if ($1.i == 11) { //#3458 + $put($1.txt, 11, $a([$geti($1.barcode, 11, 1), $f($1.textxoffset + 104), $1.textyoffset, $1.textfont, $f($1.textsize - 2)])); //#3456 + } else { //#3458 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $f(($f(($1.i * 7) + $1.textxoffset)) + 15), $1.textyoffset, $1.textfont, $1.textsize])); //#3458 + } //#3458 + } //#3458 + $puti($1.sbs, 56, $get($1.encs, 12)); //#3463 + $k[$j++] = Infinity; //#3465 + var _2x = $1.sbs; //#3465 + for (var _2y = 0, _2z = _2x.length; _2y < _2z; _2y++) { //#3465 + $k[$j++] = $get(_2x, _2y) - 48; //#3465 + } //#3465 + $1.sbs = $a(); //#3465 + if ($1.includetext) { //#3472 + $k[$j++] = Infinity; //#3467 + for (var _33 = 0, _34 = 4; _33 < _34; _33++) { //#3467 + $k[$j++] = $1.height; //#3467 + } //#3467 + for (var _36 = 0, _37 = 10; _36 < _37; _36++) { //#3467 + $k[$j++] = $f($1.height - 0.075); //#3467 + } //#3467 + $k[$j++] = $1.height; //#3467 + $k[$j++] = $1.height; //#3467 + for (var _3B = 0, _3C = 10; _3B < _3C; _3B++) { //#3467 + $k[$j++] = $f($1.height - 0.075); //#3467 + } //#3467 + for (var _3E = 0, _3F = 4; _3E < _3F; _3E++) { //#3467 + $k[$j++] = $1.height; //#3467 + } //#3467 + $1.bhs = $a(); //#3467 + $k[$j++] = Infinity; //#3468 + $k[$j++] = 0; //#3468 + $k[$j++] = 0; //#3468 + $k[$j++] = 0; //#3468 + $k[$j++] = 0; //#3468 + for (var _3I = 0, _3J = 10; _3I < _3J; _3I++) { //#3468 + $k[$j++] = 0.075; //#3468 + } //#3468 + $k[$j++] = 0; //#3468 + $k[$j++] = 0; //#3468 + for (var _3K = 0, _3L = 10; _3K < _3L; _3K++) { //#3468 + $k[$j++] = 0.075; //#3468 + } //#3468 + $k[$j++] = 0; //#3468 + $k[$j++] = 0; //#3468 + $k[$j++] = 0; //#3468 + $k[$j++] = 0; //#3468 + $1.bbs = $a(); //#3468 + } else { //#3472 + $k[$j++] = Infinity; //#3470 + for (var _3N = 0, _3O = 30; _3N < _3O; _3N++) { //#3470 + $k[$j++] = $1.height; //#3470 + } //#3470 + $1.bhs = $a(); //#3470 + $k[$j++] = Infinity; //#3471 + for (var _3R = 0, _3S = 30; _3R < _3S; _3R++) { //#3471 + $k[$j++] = 0; //#3471 + } //#3471 + $1.bbs = $a(); //#3471 + $1.txt = $a([]); //#3472 + } //#3472 + $1.guardrightypos = 0; //#3474 + if ($ne($1.addon, "")) { //#3495 + $k[$j++] = Infinity; //#3485 + $k[$j++] = 'dontdraw'; //#3482 + $k[$j++] = true; //#3482 + $k[$j++] = 'includetext'; //#3482 + $k[$j++] = true; //#3482 + $k[$j++] = 'height'; //#3482 + $k[$j++] = $f($1.height - 0.15); //#3482 + $k[$j++] = 'textxoffset'; //#3482 + if ($1.addontextxoffset != "unset") { //#3482 + $k[$j++] = $1.addontextxoffset; //#3482 + } else { //#3482 + $k[$j++] = $f(95 + $1.addongap); //#3482 + } //#3482 + if ($1.addontextyoffset != "unset") { //#3483 + $k[$j++] = 'textyoffset'; //#3483 + $k[$j++] = $1.addontextyoffset; //#3483 + } //#3483 + var _3d = ($1.addontextsize != "unset") ? $1.addontextsize : $1.textsize; //#3484 + var _3f = $ne($1.addontextfont, "unset") ? $1.addontextfont : $1.textfont; //#3485 + $k[$j++] = 'textsize'; //#3485 + $k[$j++] = _3d; //#3485 + $k[$j++] = 'textfont'; //#3485 + $k[$j++] = _3f; //#3485 + $1.addopts = $d(); //#3486 + if ($1.addon.length == 2) { //#3487 + $k[$j++] = $1.addon; //#3487 + $k[$j++] = $1.addopts; //#3487 + $0.ean2(); //#3487 + } //#3487 + if ($1.addon.length == 5) { //#3488 + $k[$j++] = $1.addon; //#3488 + $k[$j++] = $1.addopts; //#3488 + $0.ean5(); //#3488 + } //#3488 + $1.addcode = $k[--$j]; //#3489 + $k[$j++] = Infinity; //#3490 + $aload($1.sbs); //#3490 + $k[$j++] = $1.addongap; //#3490 + $aload($get($1.addcode, "sbs")); //#3490 + $1.sbs = $a(); //#3490 + $k[$j++] = Infinity; //#3491 + $aload($1.bhs); //#3491 + $forall($get($1.addcode, "bhs"), function() { //#3491 + var _3w = $k[--$j]; //#3491 + $k[$j++] = $f(_3w - 0.075); //#3491 + }); //#3491 + $1.bhs = $a(); //#3491 + $k[$j++] = Infinity; //#3492 + $aload($1.bbs); //#3492 + $forall($get($1.addcode, "bbs"), function() { //#3492 + var _41 = $k[--$j]; //#3492 + $k[$j++] = $f(_41 + 0.075); //#3492 + }); //#3492 + $1.bbs = $a(); //#3492 + $k[$j++] = Infinity; //#3493 + $aload($1.txt); //#3493 + $aload($get($1.addcode, "txt")); //#3493 + $1.txt = $a(); //#3493 + $1.guardrightypos = $f(($1.height * 72) - 6); //#3494 + } //#3494 + var _4E = new Map([ + ["ren", $0.renlinear], + ["sbs", $1.sbs], + ["bhs", $1.bhs], + ["bbs", $1.bbs], + ["txt", $1.txt], + ["opt", $1.options], + ["guardrightpos", 10], + ["guardrightypos", $1.guardrightypos], + ["borderbottom", 5] + ]); //#3507 + $k[$j++] = _4E; //#3510 + if (!$1.dontdraw) { //#3510 + $0.renlinear(); //#3510 + } //#3510 }; $0.upce = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 12; - $1.textxoffset = -7; - $1.textyoffset = -4; - $1.height = 1; - $1.addongap = 12; - $1.addontextfont = "unset"; - $1.addontextsize = "unset"; - $1.addontextxoffset = "unset"; - $1.addontextyoffset = "unset"; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.addongap = +$1.addongap; - if ($ne($1.addontextfont, "unset")) { - $1.addontextfont = "" + $1.addontextfont; - } - if ($ne($1.addontextsize, "unset")) { - $1.addontextsize = +$1.addontextsize; - } - if ($ne($1.addontextxoffset, "unset")) { - $1.addontextxoffset = +$1.addontextxoffset; - } - if ($ne($1.addontextyoffset, "unset")) { - $1.addontextyoffset = +$1.addontextyoffset; - } - $search($1.barcode, " "); - if ($k[--$j]) { - $1.barcode = $k[--$j]; - $j--; - $1.addon = $k[--$j]; - } else { - $j--; - $1.addon = ""; - } - if ($1.barcode.length == 11 || $1.barcode.length == 12) { - $forall($1.barcode, function() { - var _Q = $k[--$j]; - if (_Q < 48 || _Q > 57) { - $k[$j++] = "bwipp.upcEupcAbadCharacter"; - $k[$j++] = "UPC-A must contain only digits"; - $0.raiseerror(); - } - }); - for (var _R = 0, _S = 1; _R < _S; _R++) { - var _U = $1.barcode.length == 12 ? 8 : 7; - $1.upcecode = $s(_U); - if ($f($get($1.barcode, 3) - 48) <= 2 && $eq($geti($1.barcode, 4, 4), "0000")) { - $puti($1.upcecode, 0, $geti($1.barcode, 0, 3)); - $puti($1.upcecode, 3, $geti($1.barcode, 8, 3)); - $puti($1.upcecode, 6, $geti($1.barcode, 3, 1)); - break; - } - if ($eq($geti($1.barcode, 4, 5), "00000")) { - $puti($1.upcecode, 0, $geti($1.barcode, 0, 4)); - $puti($1.upcecode, 4, $geti($1.barcode, 9, 2)); - $puti($1.upcecode, 6, "3"); - break; - } - if ($eq($geti($1.barcode, 5, 5), "00000")) { - $puti($1.upcecode, 0, $geti($1.barcode, 0, 5)); - $puti($1.upcecode, 5, $geti($1.barcode, 10, 1)); - $puti($1.upcecode, 6, "4"); - break; - } - if ($f($get($1.barcode, 10) - 48) >= 5 && $eq($geti($1.barcode, 6, 4), "0000")) { - $puti($1.upcecode, 0, $geti($1.barcode, 0, 6)); - $puti($1.upcecode, 6, $geti($1.barcode, 10, 1)); - break; - } - $k[$j++] = "bwipp.upcEupcAnotCompressible"; - $k[$j++] = "UPC-A cannot be converted to a UPC-E"; - $0.raiseerror(); - } - if ($1.barcode.length == 12) { - $puti($1.upcecode, 7, $geti($1.barcode, 11, 1)); - } - $1.barcode = $1.upcecode; - } - if ($1.barcode.length != 7 && $1.barcode.length != 8) { - $k[$j++] = "bwipp.upcEbadLength"; - $k[$j++] = "UPC-E must be 7 or 8 digits"; - $0.raiseerror(); - } - var _1I = $1.barcode; - for (var _1J = 0, _1K = _1I.length; _1J < _1K; _1J++) { - var _1L = $get(_1I, _1J); - if (_1L < 48 || _1L > 57) { - $k[$j++] = "bwipp.upcEbadCharacter"; - $k[$j++] = "UPC-E must contain only digits"; - $0.raiseerror(); - } - } - if ($1.addon.length != 0 && $1.addon.length != 2 && $1.addon.length != 5) { - $k[$j++] = "bwipp.upcEbadAddOnLength"; - $k[$j++] = "Add-on for UPC-E must be 2 or 5 digits"; - $0.raiseerror(); - } - var _1Q = $get($1.barcode, 0); - if (_1Q != 48 && _1Q != 49) { - $k[$j++] = "bwipp.upcEbadNumberSystem"; - $k[$j++] = "UPC-E must have number system 0 or 1"; - $0.raiseerror(); - } - $1.encs = $a([ "3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "111111" ]); - $1.barchars = "0123456789"; - $1.mirrormaps = $a([ "000111", "001011", "001101", "001110", "010011", "011001", "011100", "010101", "010110", "011010" ]); - for (var _1T = 0, _1U = 1; _1T < _1U; _1T++) { - $1.upcacode = $s(11); - if ($get($1.barcode, 6) - 48 <= 2) { - $puti($1.upcacode, 0, $geti($1.barcode, 0, 3)); - $puti($1.upcacode, 3, $geti($1.barcode, 6, 1)); - $puti($1.upcacode, 4, "0000"); - $puti($1.upcacode, 8, $geti($1.barcode, 3, 3)); - break; - } - if ($get($1.barcode, 6) - 48 == 3) { - $puti($1.upcacode, 0, $geti($1.barcode, 0, 4)); - $puti($1.upcacode, 4, "00000"); - $puti($1.upcacode, 9, $geti($1.barcode, 4, 2)); - break; - } - if ($get($1.barcode, 6) - 48 == 4) { - $puti($1.upcacode, 0, $geti($1.barcode, 0, 5)); - $puti($1.upcacode, 5, "00000"); - $puti($1.upcacode, 10, $geti($1.barcode, 5, 1)); - break; - } - if ($get($1.barcode, 6) - 48 >= 5) { - $puti($1.upcacode, 0, $geti($1.barcode, 0, 6)); - $puti($1.upcacode, 6, "0000"); - $puti($1.upcacode, 10, $geti($1.barcode, 6, 1)); - break; - } - } - $1.checksum = 0; - for (var _29 = 0; _29 <= 10; _29 += 1) { - $1.i = _29; - $1.barchar = $get($1.upcacode, $1.i) - 48; - if ($1.i % 2 != 0) { - $1.checksum = $1.checksum + $1.barchar; - } else { - $1.checksum = $1.checksum + $1.barchar * 3; - } - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 8) { - if ($get($1.barcode, 7) != $1.checksum + 48) { - $k[$j++] = "bwipp.upcEbadCheckDigit"; - $k[$j++] = "Incorrect UPC check digit provided"; - $0.raiseerror(); - } - } - $1.pad = $s(8); - $puti($1.pad, 0, $1.barcode); - $put($1.pad, 7, $1.checksum + 48); - $1.barcode = $1.pad; - $1.txt = $a(8); - $put($1.txt, 0, $a([ $geti($1.barcode, 0, 1), $1.textxoffset, $1.textyoffset, $1.textfont, $f($1.textsize - 2) ])); - $1.mirrormap = $get($1.mirrormaps, $1.checksum); - if ($get($1.barcode, 0) == 48) { - $1.invt = $s($1.mirrormap.length); - for (var _2l = 0, _2k = $1.mirrormap.length - 1; _2l <= _2k; _2l += 1) { - $1.i = _2l; - if ($get($1.mirrormap, $1.i) == 48) { - $put($1.invt, $1.i, 49); - } else { - $put($1.invt, $1.i, 48); - } - } - $1.mirrormap = $1.invt; - } - $1.sbs = $s(33); - $puti($1.sbs, 0, $get($1.encs, 10)); - for (var _2y = 1; _2y <= 6; _2y += 1) { - $1.i = _2y; - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - if ($get($1.mirrormap, $1.i - 1) == 49) { - $1.enclen = $1.enc.length; - $1.revenc = $s($1.enclen); - for (var _3F = 0, _3E = $1.enclen - 1; _3F <= _3E; _3F += 1) { - $1.j = _3F; - $1.char = $get($1.enc, $1.j); - $put($1.revenc, $1.enclen - $1.j - 1, $1.char); - } - $1.enc = $1.revenc; - } - $puti($1.sbs, ($1.i - 1) * 4 + 3, $1.enc); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $f(($1.i - 1) * 7 + 11 + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize ])); - } - $put($1.txt, 7, $a([ $geti($1.barcode, 7, 1), $f(6 * 7 + 18 + $1.textxoffset), $1.textyoffset, $1.textfont, $f($1.textsize - 2) ])); - $puti($1.sbs, 27, $get($1.encs, 11)); - $k[$j++] = Infinity; - var _3n = $1.sbs; - for (var _3o = 0, _3p = _3n.length; _3o < _3p; _3o++) { - $k[$j++] = $get(_3n, _3o) - 48; - } - $1.sbs = $a(); - if ($1.includetext) { - $k[$j++] = Infinity; - $k[$j++] = $1.height; - $k[$j++] = $1.height; - for (var _3v = 0, _3w = 12; _3v < _3w; _3v++) { - $k[$j++] = $f($1.height - .075); - } - $k[$j++] = $1.height; - $k[$j++] = $1.height; - $k[$j++] = $1.height; - $1.bhs = $a(); - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = 0; - for (var _42 = 0, _43 = 12; _42 < _43; _42++) { - $k[$j++] = .075; - } - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $1.bbs = $a(); - } else { - $k[$j++] = Infinity; - for (var _45 = 0, _46 = 17; _45 < _46; _45++) { - $k[$j++] = $1.height; - } - $1.bhs = $a(); - $k[$j++] = Infinity; - for (var _49 = 0, _4A = 17; _49 < _4A; _49++) { - $k[$j++] = 0; - } - $1.bbs = $a(); - $1.txt = $a([]); - } - $1.guardrightypos = 0; - if ($ne($1.addon, "")) { - $k[$j++] = Infinity; - $k[$j++] = "dontdraw"; - $k[$j++] = true; - $k[$j++] = "includetext"; - $k[$j++] = true; - $k[$j++] = "height"; - $k[$j++] = $f($1.height - .15); - $k[$j++] = "textxoffset"; - if ($1.addontextxoffset != "unset") { - $k[$j++] = $1.addontextxoffset; - } else { - $k[$j++] = $f(51 + $1.addongap); - } - if ($1.addontextyoffset != "unset") { - $k[$j++] = "textyoffset"; - $k[$j++] = $1.addontextyoffset; - } - var _4L = $1.addontextsize != "unset" ? $1.addontextsize : $1.textsize; - var _4N = $ne($1.addontextfont, "unset") ? $1.addontextfont : $1.textfont; - $k[$j++] = "textsize"; - $k[$j++] = _4L; - $k[$j++] = "textfont"; - $k[$j++] = _4N; - $1.addopts = $d(); - if ($1.addon.length == 2) { - $k[$j++] = $1.addon; - $k[$j++] = $1.addopts; - $0.ean2(); - } - if ($1.addon.length == 5) { - $k[$j++] = $1.addon; - $k[$j++] = $1.addopts; - $0.ean5(); - } - $1.addcode = $k[--$j]; - $k[$j++] = Infinity; - $aload($1.sbs); - $k[$j++] = $1.addongap; - $aload($get($1.addcode, "sbs")); - $1.sbs = $a(); - $k[$j++] = Infinity; - $aload($1.bhs); - $forall($get($1.addcode, "bhs"), function() { - var _4e = $k[--$j]; - $k[$j++] = $f(_4e - .075); - }); - $1.bhs = $a(); - $k[$j++] = Infinity; - $aload($1.bbs); - $forall($get($1.addcode, "bbs"), function() { - var _4j = $k[--$j]; - $k[$j++] = $f(_4j + .075); - }); - $1.bbs = $a(); - $k[$j++] = Infinity; - $aload($1.txt); - $aload($get($1.addcode, "txt")); - $1.txt = $a(); - $1.guardrightypos = $f($1.height * 72 - 6); - } - var _4w = new Map([ [ "ren", $0.renlinear ], [ "sbs", $1.sbs ], [ "bhs", $1.bhs ], [ "bbs", $1.bbs ], [ "txt", $1.txt ], [ "opt", $1.options ], [ "guardrightpos", 10 ], [ "guardrightypos", $1.guardrightypos ], [ "borderbottom", 5 ] ]); - $k[$j++] = _4w; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#3541 + $1.options = $k[--$j]; //#3543 + $1.barcode = $k[--$j]; //#3544 + $1.dontdraw = false; //#3546 + $1.includetext = false; //#3547 + $1.textfont = "OCR-B"; //#3548 + $1.textsize = 12; //#3549 + $1.textxoffset = -7; //#3550 + $1.textyoffset = -4; //#3551 + $1.height = 1; //#3552 + $1.addongap = 12; //#3553 + $1.addontextfont = "unset"; //#3554 + $1.addontextsize = "unset"; //#3555 + $1.addontextxoffset = "unset"; //#3556 + $1.addontextyoffset = "unset"; //#3557 + $forall($1.options, function() { //#3568 + var _3 = $k[--$j]; //#3568 + $1[$k[--$j]] = _3; //#3568 + }); //#3568 + $1.textfont = "" + $1.textfont; //#3570 + $1.textsize = +$1.textsize; //#3571 + $1.textxoffset = +$1.textxoffset; //#3572 + $1.textyoffset = +$1.textyoffset; //#3573 + $1.height = +$1.height; //#3574 + $1.addongap = +$1.addongap; //#3575 + if ($ne($1.addontextfont, "unset")) { //#3576 + $1.addontextfont = "" + $1.addontextfont; //#3576 + } //#3576 + if ($ne($1.addontextsize, "unset")) { //#3577 + $1.addontextsize = +$1.addontextsize; //#3577 + } //#3577 + if ($ne($1.addontextxoffset, "unset")) { //#3578 + $1.addontextxoffset = +$1.addontextxoffset; //#3578 + } //#3578 + if ($ne($1.addontextyoffset, "unset")) { //#3579 + $1.addontextyoffset = +$1.addontextyoffset; //#3579 + } //#3579 + $search($1.barcode, " "); //#3582 + if ($k[--$j]) { //#3588 + $1.barcode = $k[--$j]; //#3583 + $j--; //#3584 + $1.addon = $k[--$j]; //#3585 + } else { //#3588 + $j--; //#3587 + $1.addon = ""; //#3588 + } //#3588 + if (($1.barcode.length == 11) || ($1.barcode.length == 12)) { //#3630 + $forall($1.barcode, function() { //#3598 + var _Q = $k[--$j]; //#3595 + if ((_Q < 48) || (_Q > 57)) { //#3597 + $k[$j++] = 'bwipp.upcEupcAbadCharacter'; //#3596 + $k[$j++] = "UPC-A must contain only digits"; //#3596 + $0.raiseerror(); //#3596 + } //#3596 + }); //#3596 + for (var _R = 0, _S = 1; _R < _S; _R++) { //#3625 + var _U = ($1.barcode.length == 12) ? 8 : 7; //#3600 + $1.upcecode = $s(_U); //#3600 + if (($f($get($1.barcode, 3) - 48) <= 2) && $eq($geti($1.barcode, 4, 4), "0000")) { //#3606 + $puti($1.upcecode, 0, $geti($1.barcode, 0, 3)); //#3602 + $puti($1.upcecode, 3, $geti($1.barcode, 8, 3)); //#3603 + $puti($1.upcecode, 6, $geti($1.barcode, 3, 1)); //#3604 + break; //#3605 + } //#3605 + if ($eq($geti($1.barcode, 4, 5), "00000")) { //#3612 + $puti($1.upcecode, 0, $geti($1.barcode, 0, 4)); //#3608 + $puti($1.upcecode, 4, $geti($1.barcode, 9, 2)); //#3609 + $puti($1.upcecode, 6, "3"); //#3610 + break; //#3611 + } //#3611 + if ($eq($geti($1.barcode, 5, 5), "00000")) { //#3618 + $puti($1.upcecode, 0, $geti($1.barcode, 0, 5)); //#3614 + $puti($1.upcecode, 5, $geti($1.barcode, 10, 1)); //#3615 + $puti($1.upcecode, 6, "4"); //#3616 + break; //#3617 + } //#3617 + if (($f($get($1.barcode, 10) - 48) >= 5) && $eq($geti($1.barcode, 6, 4), "0000")) { //#3623 + $puti($1.upcecode, 0, $geti($1.barcode, 0, 6)); //#3620 + $puti($1.upcecode, 6, $geti($1.barcode, 10, 1)); //#3621 + break; //#3622 + } //#3622 + $k[$j++] = 'bwipp.upcEupcAnotCompressible'; //#3624 + $k[$j++] = "UPC-A cannot be converted to a UPC-E"; //#3624 + $0.raiseerror(); //#3624 + } //#3624 + if ($1.barcode.length == 12) { //#3628 + $puti($1.upcecode, 7, $geti($1.barcode, 11, 1)); //#3627 + } //#3627 + $1.barcode = $1.upcecode; //#3629 + } //#3629 + if (($1.barcode.length != 7) && ($1.barcode.length != 8)) { //#3635 + $k[$j++] = 'bwipp.upcEbadLength'; //#3634 + $k[$j++] = "UPC-E must be 7 or 8 digits"; //#3634 + $0.raiseerror(); //#3634 + } //#3634 + var _1I = $1.barcode; //#3636 + for (var _1J = 0, _1K = _1I.length; _1J < _1K; _1J++) { //#3640 + var _1L = $get(_1I, _1J); //#3640 + if ((_1L < 48) || (_1L > 57)) { //#3639 + $k[$j++] = 'bwipp.upcEbadCharacter'; //#3638 + $k[$j++] = "UPC-E must contain only digits"; //#3638 + $0.raiseerror(); //#3638 + } //#3638 + } //#3638 + if ((($1.addon.length != 0) && ($1.addon.length != 2)) && ($1.addon.length != 5)) { //#3643 + $k[$j++] = 'bwipp.upcEbadAddOnLength'; //#3642 + $k[$j++] = "Add-on for UPC-E must be 2 or 5 digits"; //#3642 + $0.raiseerror(); //#3642 + } //#3642 + var _1Q = $get($1.barcode, 0); //#3646 + if ((_1Q != 48) && (_1Q != 49)) { //#3648 + $k[$j++] = 'bwipp.upcEbadNumberSystem'; //#3647 + $k[$j++] = "UPC-E must have number system 0 or 1"; //#3647 + $0.raiseerror(); //#3647 + } //#3647 + $1.encs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "1312", "1213", "3112", "111", "111111"]); //#3655 + $1.barchars = "0123456789"; //#3658 + $1.mirrormaps = $a(["000111", "001011", "001101", "001110", "010011", "011001", "011100", "010101", "010110", "011010"]); //#3663 + for (var _1T = 0, _1U = 1; _1T < _1U; _1T++) { //#3693 + $1.upcacode = $s(11); //#3667 + if (($get($1.barcode, 6) - 48) <= 2) { //#3674 + $puti($1.upcacode, 0, $geti($1.barcode, 0, 3)); //#3669 + $puti($1.upcacode, 3, $geti($1.barcode, 6, 1)); //#3670 + $puti($1.upcacode, 4, "0000"); //#3671 + $puti($1.upcacode, 8, $geti($1.barcode, 3, 3)); //#3672 + break; //#3673 + } //#3673 + if (($get($1.barcode, 6) - 48) == 3) { //#3680 + $puti($1.upcacode, 0, $geti($1.barcode, 0, 4)); //#3676 + $puti($1.upcacode, 4, "00000"); //#3677 + $puti($1.upcacode, 9, $geti($1.barcode, 4, 2)); //#3678 + break; //#3679 + } //#3679 + if (($get($1.barcode, 6) - 48) == 4) { //#3686 + $puti($1.upcacode, 0, $geti($1.barcode, 0, 5)); //#3682 + $puti($1.upcacode, 5, "00000"); //#3683 + $puti($1.upcacode, 10, $geti($1.barcode, 5, 1)); //#3684 + break; //#3685 + } //#3685 + if (($get($1.barcode, 6) - 48) >= 5) { //#3692 + $puti($1.upcacode, 0, $geti($1.barcode, 0, 6)); //#3688 + $puti($1.upcacode, 6, "0000"); //#3689 + $puti($1.upcacode, 10, $geti($1.barcode, 6, 1)); //#3690 + break; //#3691 + } //#3691 + } //#3691 + $1.checksum = 0; //#3694 + for (var _29 = 0; _29 <= 10; _29 += 1) { //#3703 + $1.i = _29; //#3696 + $1.barchar = $get($1.upcacode, $1.i) - 48; //#3697 + if (($1.i % 2) != 0) { //#3701 + $1.checksum = $1.checksum + $1.barchar; //#3699 + } else { //#3701 + $1.checksum = $1.checksum + ($1.barchar * 3); //#3701 + } //#3701 + } //#3701 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#3704 + if ($1.barcode.length == 8) { //#3709 + if ($get($1.barcode, 7) != ($1.checksum + 48)) { //#3708 + $k[$j++] = 'bwipp.upcEbadCheckDigit'; //#3707 + $k[$j++] = "Incorrect UPC check digit provided"; //#3707 + $0.raiseerror(); //#3707 + } //#3707 + } //#3707 + $1.pad = $s(8); //#3710 + $puti($1.pad, 0, $1.barcode); //#3711 + $put($1.pad, 7, $1.checksum + 48); //#3712 + $1.barcode = $1.pad; //#3713 + $1.txt = $a(8); //#3714 + $put($1.txt, 0, $a([$geti($1.barcode, 0, 1), $1.textxoffset, $1.textyoffset, $1.textfont, $f($1.textsize - 2)])); //#3715 + $1.mirrormap = $get($1.mirrormaps, $1.checksum); //#3718 + if ($get($1.barcode, 0) == 48) { //#3732 + $1.invt = $s($1.mirrormap.length); //#3722 + for (var _2l = 0, _2k = $1.mirrormap.length - 1; _2l <= _2k; _2l += 1) { //#3730 + $1.i = _2l; //#3724 + if ($get($1.mirrormap, $1.i) == 48) { //#3728 + $put($1.invt, $1.i, 49); //#3726 + } else { //#3728 + $put($1.invt, $1.i, 48); //#3728 + } //#3728 + } //#3728 + $1.mirrormap = $1.invt; //#3731 + } //#3731 + $1.sbs = $s(33); //#3734 + $puti($1.sbs, 0, $get($1.encs, 10)); //#3737 + for (var _2y = 1; _2y <= 6; _2y += 1) { //#3759 + $1.i = _2y; //#3740 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#3742 + $j--; //#3743 + $1.indx = $k[--$j].length; //#3744 + $j -= 2; //#3745 + $1.enc = $get($1.encs, $1.indx); //#3746 + if ($get($1.mirrormap, $1.i - 1) == 49) { //#3756 + $1.enclen = $1.enc.length; //#3748 + $1.revenc = $s($1.enclen); //#3749 + for (var _3F = 0, _3E = $1.enclen - 1; _3F <= _3E; _3F += 1) { //#3754 + $1.j = _3F; //#3751 + $1.char = $get($1.enc, $1.j); //#3752 + $put($1.revenc, ($1.enclen - $1.j) - 1, $1.char); //#3753 + } //#3753 + $1.enc = $1.revenc; //#3755 + } //#3755 + $puti($1.sbs, (($1.i - 1) * 4) + 3, $1.enc); //#3757 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $f(((($1.i - 1) * 7) + 11) + $1.textxoffset), $1.textyoffset, $1.textfont, $1.textsize])); //#3758 + } //#3758 + $put($1.txt, 7, $a([$geti($1.barcode, 7, 1), $f(((6 * 7) + 18) + $1.textxoffset), $1.textyoffset, $1.textfont, $f($1.textsize - 2)])); //#3761 + $puti($1.sbs, 27, $get($1.encs, 11)); //#3764 + $k[$j++] = Infinity; //#3766 + var _3n = $1.sbs; //#3766 + for (var _3o = 0, _3p = _3n.length; _3o < _3p; _3o++) { //#3766 + $k[$j++] = $get(_3n, _3o) - 48; //#3766 + } //#3766 + $1.sbs = $a(); //#3766 + if ($1.includetext) { //#3773 + $k[$j++] = Infinity; //#3768 + $k[$j++] = $1.height; //#3768 + $k[$j++] = $1.height; //#3768 + for (var _3v = 0, _3w = 12; _3v < _3w; _3v++) { //#3768 + $k[$j++] = $f($1.height - 0.075); //#3768 + } //#3768 + $k[$j++] = $1.height; //#3768 + $k[$j++] = $1.height; //#3768 + $k[$j++] = $1.height; //#3768 + $1.bhs = $a(); //#3768 + $k[$j++] = Infinity; //#3769 + $k[$j++] = 0; //#3769 + $k[$j++] = 0; //#3769 + for (var _42 = 0, _43 = 12; _42 < _43; _42++) { //#3769 + $k[$j++] = 0.075; //#3769 + } //#3769 + $k[$j++] = 0; //#3769 + $k[$j++] = 0; //#3769 + $k[$j++] = 0; //#3769 + $1.bbs = $a(); //#3769 + } else { //#3773 + $k[$j++] = Infinity; //#3771 + for (var _45 = 0, _46 = 17; _45 < _46; _45++) { //#3771 + $k[$j++] = $1.height; //#3771 + } //#3771 + $1.bhs = $a(); //#3771 + $k[$j++] = Infinity; //#3772 + for (var _49 = 0, _4A = 17; _49 < _4A; _49++) { //#3772 + $k[$j++] = 0; //#3772 + } //#3772 + $1.bbs = $a(); //#3772 + $1.txt = $a([]); //#3773 + } //#3773 + $1.guardrightypos = 0; //#3775 + if ($ne($1.addon, "")) { //#3796 + $k[$j++] = Infinity; //#3786 + $k[$j++] = 'dontdraw'; //#3783 + $k[$j++] = true; //#3783 + $k[$j++] = 'includetext'; //#3783 + $k[$j++] = true; //#3783 + $k[$j++] = 'height'; //#3783 + $k[$j++] = $f($1.height - 0.15); //#3783 + $k[$j++] = 'textxoffset'; //#3783 + if ($1.addontextxoffset != "unset") { //#3783 + $k[$j++] = $1.addontextxoffset; //#3783 + } else { //#3783 + $k[$j++] = $f(51 + $1.addongap); //#3783 + } //#3783 + if ($1.addontextyoffset != "unset") { //#3784 + $k[$j++] = 'textyoffset'; //#3784 + $k[$j++] = $1.addontextyoffset; //#3784 + } //#3784 + var _4L = ($1.addontextsize != "unset") ? $1.addontextsize : $1.textsize; //#3785 + var _4N = $ne($1.addontextfont, "unset") ? $1.addontextfont : $1.textfont; //#3786 + $k[$j++] = 'textsize'; //#3786 + $k[$j++] = _4L; //#3786 + $k[$j++] = 'textfont'; //#3786 + $k[$j++] = _4N; //#3786 + $1.addopts = $d(); //#3787 + if ($1.addon.length == 2) { //#3788 + $k[$j++] = $1.addon; //#3788 + $k[$j++] = $1.addopts; //#3788 + $0.ean2(); //#3788 + } //#3788 + if ($1.addon.length == 5) { //#3789 + $k[$j++] = $1.addon; //#3789 + $k[$j++] = $1.addopts; //#3789 + $0.ean5(); //#3789 + } //#3789 + $1.addcode = $k[--$j]; //#3790 + $k[$j++] = Infinity; //#3791 + $aload($1.sbs); //#3791 + $k[$j++] = $1.addongap; //#3791 + $aload($get($1.addcode, "sbs")); //#3791 + $1.sbs = $a(); //#3791 + $k[$j++] = Infinity; //#3792 + $aload($1.bhs); //#3792 + $forall($get($1.addcode, "bhs"), function() { //#3792 + var _4e = $k[--$j]; //#3792 + $k[$j++] = $f(_4e - 0.075); //#3792 + }); //#3792 + $1.bhs = $a(); //#3792 + $k[$j++] = Infinity; //#3793 + $aload($1.bbs); //#3793 + $forall($get($1.addcode, "bbs"), function() { //#3793 + var _4j = $k[--$j]; //#3793 + $k[$j++] = $f(_4j + 0.075); //#3793 + }); //#3793 + $1.bbs = $a(); //#3793 + $k[$j++] = Infinity; //#3794 + $aload($1.txt); //#3794 + $aload($get($1.addcode, "txt")); //#3794 + $1.txt = $a(); //#3794 + $1.guardrightypos = $f(($1.height * 72) - 6); //#3795 + } //#3795 + var _4w = new Map([ + ["ren", $0.renlinear], + ["sbs", $1.sbs], + ["bhs", $1.bhs], + ["bbs", $1.bbs], + ["txt", $1.txt], + ["opt", $1.options], + ["guardrightpos", 10], + ["guardrightypos", $1.guardrightypos], + ["borderbottom", 5] + ]); //#3808 + $k[$j++] = _4w; //#3811 + if (!$1.dontdraw) { //#3811 + $0.renlinear(); //#3811 + } //#3811 }; $0.isbn = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.isbntextfont = "OCR-A"; - $1.isbntextsize = 8; - $1.isbntextxoffset = "unset"; - $1.isbntextyoffset = "unset"; - $1.height = 1; - $1.addongap = 12; - $1.legacy = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.isbntextfont = "" + $1.isbntextfont; - $1.isbntextsize = +$1.isbntextsize; - if ($ne($1.isbntextxoffset, "unset")) { - $1.isbntextxoffset = +$1.isbntextxoffset; - } - if ($ne($1.isbntextyoffset, "unset")) { - $1.isbntextyoffset = +$1.isbntextyoffset; - } - $1.height = +$1.height; - $1.addongap = +$1.addongap; - $search($1.barcode, " "); - if ($k[--$j]) { - $1.barcode = $k[--$j]; - $j--; - $1.addon = $k[--$j]; - } else { - $j--; - $1.addon = ""; - } - if ($1.barcode.length != 15 && $1.barcode.length != 17 && ($1.barcode.length != 11 && $1.barcode.length != 13)) { - $k[$j++] = "bwipp.isbnBadLength"; - $k[$j++] = "ISBN-13 must be 15 or 17 characters including dashes. ISBN-10 must be 11 or 13 characters including dashes"; - $0.raiseerror(); - } - if ($1.addon.length != 0 && $1.addon.length != 2 && $1.addon.length != 5) { - $k[$j++] = "bwipp.isbnBadAddOnLength"; - $k[$j++] = "Add-on for ISBN must be 2 or 5 digits"; - $0.raiseerror(); - } - if ($1.barcode.length >= 15) { - var _Q = $geti($1.barcode, 0, 4); - if ($ne(_Q, "978-") && $ne(_Q, "979-")) { - $k[$j++] = "bwipp.isbn13badPrefix"; - $k[$j++] = "ISBN-13 prefix must be 978- or 979-"; - $0.raiseerror(); - } - $1.wasdash = false; - $1.numdash = 0; - $1.numdigit = 0; - var _S = $geti($1.barcode, 5, 9); - for (var _T = 0, _U = _S.length; _T < _U; _T++) { - var _V = $get(_S, _T); - $k[$j++] = _V; - if (_V == 45) { - if ($1.wasdash) { - $k[$j++] = "bwipp.isbn13adjacentDashes"; - $k[$j++] = "ISBN-13 does not permit adjacent dashes"; - $0.raiseerror(); - } - $1.wasdash = true; - $1.numdash = $1.numdash + 1; - } - var _Y = $k[--$j]; - if (_Y >= 48 && _Y <= 57) { - $1.wasdash = false; - $1.numdigit = $1.numdigit + 1; - } - } - if ($1.numdash != 2 || $1.numdigit != 7) { - $k[$j++] = "bwipp.isbn13numDashesDigits"; - $k[$j++] = "Incorrect number of dashes and digits for ISBN-13"; - $0.raiseerror(); - } - var _d = $get($1.barcode, 14); - if (_d < 48 || _d > 57) { - $k[$j++] = "bwipp.isbn13character15"; - $k[$j++] = "ISBN-13 character 15 must be a digit"; - $0.raiseerror(); - } - if ($1.barcode.length == 17) { - if ($ne($geti($1.barcode, 15, 1), "-")) { - $k[$j++] = "bwipp.isbn13character16"; - $k[$j++] = "ISBN-13 penultimate character must be a dash"; - $0.raiseerror(); - } - var _i = $get($1.barcode, 16); - if (_i < 48 || _i > 57) { - $k[$j++] = "bwipp.isbn13character17"; - $k[$j++] = "ISBN-13 final character must be a digit"; - $0.raiseerror(); - } - } - } else { - var _k = $get($1.barcode, 0); - if (_k < 48 || _k > 57) { - $k[$j++] = "bwipp.isbn10FirstDigit"; - $k[$j++] = "ISBN-10 first character must be a digit"; - $0.raiseerror(); - } - $1.wasdash = false; - $1.numdash = 0; - $1.numdigit = 0; - var _m = $geti($1.barcode, 1, 9); - for (var _n = 0, _o = _m.length; _n < _o; _n++) { - var _p = $get(_m, _n); - $k[$j++] = _p; - if (_p == 45) { - if ($1.wasdash) { - $k[$j++] = "bwipp.isbn10adjacentDashes"; - $k[$j++] = "ISBN-10 does not permit adjacent dashes"; - $0.raiseerror(); - } - $1.wasdash = true; - $1.numdash = $1.numdash + 1; - } - var _s = $k[--$j]; - if (_s >= 48 && _s <= 57) { - $1.wasdash = false; - $1.numdigit = $1.numdigit + 1; - } - } - if ($1.numdash != 2 || $1.numdigit != 7) { - $k[$j++] = "bwipp.isbn10numDashesDigits"; - $k[$j++] = "Incorrect number of dashes and digits for ISBN-10"; - $0.raiseerror(); - } - var _x = $get($1.barcode, 10); - if (_x < 48 || _x > 57) { - $k[$j++] = "bwipp.isbn10character11"; - $k[$j++] = "ISBN-10 character 11 must be a digit"; - $0.raiseerror(); - } - if ($1.barcode.length == 13) { - if ($ne($geti($1.barcode, 11, 1), "-")) { - $k[$j++] = "bwipp.isbn10character12"; - $k[$j++] = "ISBN-10 penultimate character must be a dash"; - $0.raiseerror(); - } - var _12 = $get($1.barcode, 12); - if ((_12 < 48 || _12 > 57) && _12 != 88) { - $k[$j++] = "bwipp.isbn10character13"; - $k[$j++] = "ISBN-10 final character must be a digit or X"; - $0.raiseerror(); - } - } - } - $1.isbntxt = $1.barcode; - if ($1.isbntxt.length <= 13) { - $1.isbn = $s(10); - $1.checksum = 0; - $1.i = 0; - $1.n = 0; - for (;;) { - $1.isbnchar = $f($get($1.isbntxt, $1.i) - 48); - if ($1.isbnchar != -3) { - $put($1.isbn, $1.n, $f($1.isbnchar + 48)); - if ($1.n < 9) { - $1.checksum = $f($1.checksum + (10 - $1.n) * $1.isbnchar); - } - $1.n = $1.n + 1; - } - $1.i = $1.i + 1; - if ($1.i == $1.isbntxt.length) { - break; - } - } - var _1M = $f(11 - $1.checksum % 11) % 11; - $k[$j++] = "checksum"; - $k[$j++] = _1M; - if (_1M == 10) { - $j--; - $k[$j++] = 40; - } - var _1N = $k[--$j]; - $1[$k[--$j]] = $f(_1N + 48); - $1.isbn = $geti($1.isbn, 0, 9); - if ($1.isbntxt.length == 13) { - if ($get($1.isbntxt, 12) != $1.checksum) { - $k[$j++] = "bwipp.isbn10badCheckDigit"; - $k[$j++] = "Incorrect ISBN-10 check digit provided"; - $0.raiseerror(); - } - } - } - if (!$1.legacy || $1.isbntxt.length >= 15) { - if ($1.isbntxt.length <= 13) { - $1.pad = $s(15); - $puti($1.pad, 0, "978-"); - $puti($1.pad, 4, $geti($1.isbntxt, 0, 11)); - $1.isbntxt = $1.pad; - } - $1.isbn = $s(13); - $1.checksum = 0; - $1.i = 0; - $1.n = 0; - for (;;) { - $1.isbnchar = $get($1.isbntxt, $1.i) - 48; - if ($1.isbnchar != -3) { - $put($1.isbn, $1.n, $1.isbnchar + 48); - if ($1.n < 12) { - $k[$j++] = "checksum"; - $k[$j++] = $1.isbnchar; - if ($1.n % 2 != 0) { - var _1p = $k[--$j]; - $k[$j++] = _1p * 3; - } - var _1r = $k[--$j]; - $1[$k[--$j]] = $f(_1r + $1.checksum); - } - $1.n = $1.n + 1; - } - $1.i = $1.i + 1; - if ($1.i == $1.isbntxt.length) { - break; - } - } - $1.checksum = (10 - $1.checksum % 10) % 10 + 48; - $1.isbn = $geti($1.isbn, 0, 12); - if ($1.isbntxt.length == 17) { - if ($get($1.isbntxt, 16) != $1.checksum) { - $k[$j++] = "bwipp.isbn13badCheckDigit"; - $k[$j++] = "Incorrect ISBN-13 check digit provided"; - $0.raiseerror(); - } - } - } - var _25 = $1.isbn.length == 12 ? 22 : 18; - $1.pad = $s(_25); - $puti($1.pad, 0, "ISBN "); - $puti($1.pad, 5, $1.isbntxt); - $put($1.pad, $1.pad.length - 2, 45); - $put($1.pad, $1.pad.length - 1, $1.checksum); - $1.isbntxt = $1.pad; - $1.barcode = $s(12); - if ($1.isbn.length == 9) { - $puti($1.barcode, 0, "978"); - $puti($1.barcode, 3, $1.isbn); - } else { - $puti($1.barcode, 0, $1.isbn); - } - if ($ne($1.addon, "")) { - var _2P = $s(12 + $1.addon.length + 1); - $puti(_2P, 0, $1.barcode); - $puti(_2P, 12, " "); - $puti(_2P, 13, $1.addon); - $1.barcode = _2P; - } - $put($1.options, "dontdraw", true); - $put($1.options, "addongap", $1.addongap); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.ean13(); - var _2X = $k[--$j]; - $1[$k[--$j]] = _2X; - if ($1.includetext) { - if ($1.isbntextxoffset == "unset") { - $k[$j++] = "isbntextxoffset"; - if ($1.isbn.length == 9) { - $k[$j++] = -1; - } else { - $k[$j++] = -12; - } - var _2c = $k[--$j]; - $1[$k[--$j]] = _2c; - } - if ($1.isbntextyoffset == "unset") { - $1.isbntextyoffset = $f($1.height * 72 + 3); - } - var _2h = $get($1.args, "txt") !== undefined; - if (_2h) { - $1.txt = $get($1.args, "txt"); - $1.newtxt = $a($1.txt.length + 1); - $puti($1.newtxt, 0, $1.txt); - $put($1.newtxt, $1.newtxt.length - 1, $a([ $1.isbntxt, $1.isbntextxoffset, $1.isbntextyoffset, $1.isbntextfont, $1.isbntextsize ])); - $put($1.args, "txt", $1.newtxt); - } else { - $put($1.args, "txt", $a([ $a([ $1.isbntxt, $1.isbntextxoffset, $1.isbntextyoffset, $1.isbntextfont, $1.isbntextsize ]) ])); - } - } - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#3841 + $1.options = $k[--$j]; //#3843 + $1.barcode = $k[--$j]; //#3844 + $1.dontdraw = false; //#3846 + $1.includetext = false; //#3847 + $1.isbntextfont = 'OCR-A'; //#3848 + $1.isbntextsize = 8; //#3849 + $1.isbntextxoffset = "unset"; //#3850 + $1.isbntextyoffset = "unset"; //#3851 + $1.height = 1; //#3852 + $1.addongap = 12; //#3853 + $1.legacy = false; //#3854 + $forall($1.options, function() { //#3865 + var _3 = $k[--$j]; //#3865 + $1[$k[--$j]] = _3; //#3865 + }); //#3865 + $1.isbntextfont = "" + $1.isbntextfont; //#3867 + $1.isbntextsize = +$1.isbntextsize; //#3868 + if ($ne($1.isbntextxoffset, "unset")) { //#3869 + $1.isbntextxoffset = +$1.isbntextxoffset; //#3869 + } //#3869 + if ($ne($1.isbntextyoffset, "unset")) { //#3870 + $1.isbntextyoffset = +$1.isbntextyoffset; //#3870 + } //#3870 + $1.height = +$1.height; //#3871 + $1.addongap = +$1.addongap; //#3872 + $search($1.barcode, " "); //#3875 + if ($k[--$j]) { //#3881 + $1.barcode = $k[--$j]; //#3876 + $j--; //#3877 + $1.addon = $k[--$j]; //#3878 + } else { //#3881 + $j--; //#3880 + $1.addon = ""; //#3881 + } //#3881 + if ((($1.barcode.length != 15) && ($1.barcode.length != 17)) && (($1.barcode.length != 11) && ($1.barcode.length != 13))) { //#3888 + $k[$j++] = 'bwipp.isbnBadLength'; //#3887 + $k[$j++] = "ISBN-13 must be 15 or 17 characters including dashes. ISBN-10 must be 11 or 13 characters including dashes"; //#3887 + $0.raiseerror(); //#3887 + } //#3887 + if ((($1.addon.length != 0) && ($1.addon.length != 2)) && ($1.addon.length != 5)) { //#3891 + $k[$j++] = 'bwipp.isbnBadAddOnLength'; //#3890 + $k[$j++] = "Add-on for ISBN must be 2 or 5 digits"; //#3890 + $0.raiseerror(); //#3890 + } //#3890 + if ($1.barcode.length >= 15) { //#3955 + var _Q = $geti($1.barcode, 0, 4); //#3893 + if ($ne(_Q, "978-") && $ne(_Q, "979-")) { //#3895 + $k[$j++] = 'bwipp.isbn13badPrefix'; //#3894 + $k[$j++] = "ISBN-13 prefix must be 978- or 979-"; //#3894 + $0.raiseerror(); //#3894 + } //#3894 + $1.wasdash = false; //#3896 + $1.numdash = 0; //#3896 + $1.numdigit = 0; //#3896 + var _S = $geti($1.barcode, 5, 9); //#3897 + for (var _T = 0, _U = _S.length; _T < _U; _T++) { //#3910 + var _V = $get(_S, _T); //#3910 + $k[$j++] = _V; //#3905 + if (_V == 45) { //#3905 + if ($1.wasdash) { //#3902 + $k[$j++] = 'bwipp.isbn13adjacentDashes'; //#3901 + $k[$j++] = "ISBN-13 does not permit adjacent dashes"; //#3901 + $0.raiseerror(); //#3901 + } //#3901 + $1.wasdash = true; //#3903 + $1.numdash = $1.numdash + 1; //#3904 + } //#3904 + var _Y = $k[--$j]; //#3906 + if ((_Y >= 48) && (_Y <= 57)) { //#3909 + $1.wasdash = false; //#3907 + $1.numdigit = $1.numdigit + 1; //#3908 + } //#3908 + } //#3908 + if (($1.numdash != 2) || ($1.numdigit != 7)) { //#3913 + $k[$j++] = 'bwipp.isbn13numDashesDigits'; //#3912 + $k[$j++] = "Incorrect number of dashes and digits for ISBN-13"; //#3912 + $0.raiseerror(); //#3912 + } //#3912 + var _d = $get($1.barcode, 14); //#3914 + if ((_d < 48) || (_d > 57)) { //#3916 + $k[$j++] = 'bwipp.isbn13character15'; //#3915 + $k[$j++] = "ISBN-13 character 15 must be a digit"; //#3915 + $0.raiseerror(); //#3915 + } //#3915 + if ($1.barcode.length == 17) { //#3924 + if ($ne($geti($1.barcode, 15, 1), "-")) { //#3920 + $k[$j++] = 'bwipp.isbn13character16'; //#3919 + $k[$j++] = "ISBN-13 penultimate character must be a dash"; //#3919 + $0.raiseerror(); //#3919 + } //#3919 + var _i = $get($1.barcode, 16); //#3921 + if ((_i < 48) || (_i > 57)) { //#3923 + $k[$j++] = 'bwipp.isbn13character17'; //#3922 + $k[$j++] = "ISBN-13 final character must be a digit"; //#3922 + $0.raiseerror(); //#3922 + } //#3922 + } //#3922 + } else { //#3955 + var _k = $get($1.barcode, 0); //#3926 + if ((_k < 48) || (_k > 57)) { //#3928 + $k[$j++] = 'bwipp.isbn10FirstDigit'; //#3927 + $k[$j++] = "ISBN-10 first character must be a digit"; //#3927 + $0.raiseerror(); //#3927 + } //#3927 + $1.wasdash = false; //#3929 + $1.numdash = 0; //#3929 + $1.numdigit = 0; //#3929 + var _m = $geti($1.barcode, 1, 9); //#3930 + for (var _n = 0, _o = _m.length; _n < _o; _n++) { //#3943 + var _p = $get(_m, _n); //#3943 + $k[$j++] = _p; //#3938 + if (_p == 45) { //#3938 + if ($1.wasdash) { //#3935 + $k[$j++] = 'bwipp.isbn10adjacentDashes'; //#3934 + $k[$j++] = "ISBN-10 does not permit adjacent dashes"; //#3934 + $0.raiseerror(); //#3934 + } //#3934 + $1.wasdash = true; //#3936 + $1.numdash = $1.numdash + 1; //#3937 + } //#3937 + var _s = $k[--$j]; //#3939 + if ((_s >= 48) && (_s <= 57)) { //#3942 + $1.wasdash = false; //#3940 + $1.numdigit = $1.numdigit + 1; //#3941 + } //#3941 + } //#3941 + if (($1.numdash != 2) || ($1.numdigit != 7)) { //#3946 + $k[$j++] = 'bwipp.isbn10numDashesDigits'; //#3945 + $k[$j++] = "Incorrect number of dashes and digits for ISBN-10"; //#3945 + $0.raiseerror(); //#3945 + } //#3945 + var _x = $get($1.barcode, 10); //#3947 + if ((_x < 48) || (_x > 57)) { //#3949 + $k[$j++] = 'bwipp.isbn10character11'; //#3948 + $k[$j++] = "ISBN-10 character 11 must be a digit"; //#3948 + $0.raiseerror(); //#3948 + } //#3948 + if ($1.barcode.length == 13) { //#3957 + if ($ne($geti($1.barcode, 11, 1), "-")) { //#3953 + $k[$j++] = 'bwipp.isbn10character12'; //#3952 + $k[$j++] = "ISBN-10 penultimate character must be a dash"; //#3952 + $0.raiseerror(); //#3952 + } //#3952 + var _12 = $get($1.barcode, 12); //#3954 + if (((_12 < 48) || (_12 > 57)) && (_12 != 88)) { //#3956 + $k[$j++] = 'bwipp.isbn10character13'; //#3955 + $k[$j++] = "ISBN-10 final character must be a digit or X"; //#3955 + $0.raiseerror(); //#3955 + } //#3955 + } //#3955 + } //#3955 + $1.isbntxt = $1.barcode; //#3960 + if ($1.isbntxt.length <= 13) { //#3986 + $1.isbn = $s(10); //#3964 + $1.checksum = 0; //#3965 + $1.i = 0; //#3966 + $1.n = 0; //#3966 + for (;;) { //#3978 + $1.isbnchar = $f($get($1.isbntxt, $1.i) - 48); //#3968 + if ($1.isbnchar != -3) { //#3975 + $put($1.isbn, $1.n, $f($1.isbnchar + 48)); //#3970 + if ($1.n < 9) { //#3973 + $1.checksum = $f($1.checksum + ((10 - $1.n) * $1.isbnchar)); //#3972 + } //#3972 + $1.n = $1.n + 1; //#3974 + } //#3974 + $1.i = $1.i + 1; //#3976 + if ($1.i == $1.isbntxt.length) { //#3977 + break; //#3977 + } //#3977 + } //#3977 + var _1M = ($f(11 - ($1.checksum % 11))) % 11; //#3979 + $k[$j++] = 'checksum'; //#3979 + $k[$j++] = _1M; //#3979 + if (_1M == 10) { //#3979 + $j--; //#3979 + $k[$j++] = 40; //#3979 + } //#3979 + var _1N = $k[--$j]; //#3979 + $1[$k[--$j]] = $f(_1N + 48); //#3979 + $1.isbn = $geti($1.isbn, 0, 9); //#3980 + if ($1.isbntxt.length == 13) { //#3985 + if ($get($1.isbntxt, 12) != $1.checksum) { //#3984 + $k[$j++] = 'bwipp.isbn10badCheckDigit'; //#3983 + $k[$j++] = "Incorrect ISBN-10 check digit provided"; //#3983 + $0.raiseerror(); //#3983 + } //#3983 + } //#3983 + } //#3983 + if ((!$1.legacy) || ($1.isbntxt.length >= 15)) { //#4022 + if ($1.isbntxt.length <= 13) { //#3996 + $1.pad = $s(15); //#3992 + $puti($1.pad, 0, "978-"); //#3993 + $puti($1.pad, 4, $geti($1.isbntxt, 0, 11)); //#3994 + $1.isbntxt = $1.pad; //#3995 + } //#3995 + $1.isbn = $s(13); //#3999 + $1.checksum = 0; //#4000 + $1.i = 0; //#4001 + $1.n = 0; //#4001 + for (;;) { //#4013 + $1.isbnchar = $get($1.isbntxt, $1.i) - 48; //#4003 + if ($1.isbnchar != -3) { //#4010 + $put($1.isbn, $1.n, $1.isbnchar + 48); //#4005 + if ($1.n < 12) { //#4008 + $k[$j++] = 'checksum'; //#4007 + $k[$j++] = $1.isbnchar; //#4007 + if (($1.n % 2) != 0) { //#4007 + var _1p = $k[--$j]; //#4007 + $k[$j++] = _1p * 3; //#4007 + } //#4007 + var _1r = $k[--$j]; //#4007 + $1[$k[--$j]] = $f(_1r + $1.checksum); //#4007 + } //#4007 + $1.n = $1.n + 1; //#4009 + } //#4009 + $1.i = $1.i + 1; //#4011 + if ($1.i == $1.isbntxt.length) { //#4012 + break; //#4012 + } //#4012 + } //#4012 + $1.checksum = ((10 - ($1.checksum % 10)) % 10) + 48; //#4014 + $1.isbn = $geti($1.isbn, 0, 12); //#4015 + if ($1.isbntxt.length == 17) { //#4020 + if ($get($1.isbntxt, 16) != $1.checksum) { //#4019 + $k[$j++] = 'bwipp.isbn13badCheckDigit'; //#4018 + $k[$j++] = "Incorrect ISBN-13 check digit provided"; //#4018 + $0.raiseerror(); //#4018 + } //#4018 + } //#4018 + } //#4018 + var _25 = ($1.isbn.length == 12) ? 22 : 18; //#4025 + $1.pad = $s(_25); //#4025 + $puti($1.pad, 0, "ISBN "); //#4026 + $puti($1.pad, 5, $1.isbntxt); //#4027 + $put($1.pad, $1.pad.length - 2, 45); //#4028 + $put($1.pad, $1.pad.length - 1, $1.checksum); //#4029 + $1.isbntxt = $1.pad; //#4030 + $1.barcode = $s(12); //#4033 + if ($1.isbn.length == 9) { //#4038 + $puti($1.barcode, 0, "978"); //#4035 + $puti($1.barcode, 3, $1.isbn); //#4036 + } else { //#4038 + $puti($1.barcode, 0, $1.isbn); //#4038 + } //#4038 + if ($ne($1.addon, "")) { //#4048 + var _2P = $s((12 + $1.addon.length) + 1); //#4043 + $puti(_2P, 0, $1.barcode); //#4044 + $puti(_2P, 12, " "); //#4045 + $puti(_2P, 13, $1.addon); //#4046 + $1.barcode = _2P; //#4047 + } //#4047 + $put($1.options, "dontdraw", true); //#4051 + $put($1.options, "addongap", $1.addongap); //#4052 + $k[$j++] = 'args'; //#4053 + $k[$j++] = $1.barcode; //#4053 + $k[$j++] = $1.options; //#4053 + $0.ean13(); //#4053 + var _2X = $k[--$j]; //#4053 + $1[$k[--$j]] = _2X; //#4053 + if ($1.includetext) { //#4072 + if ($1.isbntextxoffset == "unset") { //#4059 + $k[$j++] = 'isbntextxoffset'; //#4058 + if ($1.isbn.length == 9) { //#4058 + $k[$j++] = -1; //#4058 + } else { //#4058 + $k[$j++] = -12; //#4058 + } //#4058 + var _2c = $k[--$j]; //#4058 + $1[$k[--$j]] = _2c; //#4058 + } //#4058 + if ($1.isbntextyoffset == "unset") { //#4062 + $1.isbntextyoffset = $f(($1.height * 72) + 3); //#4061 + } //#4061 + var _2h = $get($1.args, "txt") !== undefined; //#4063 + if (_2h) { //#4070 + $1.txt = $get($1.args, "txt"); //#4064 + $1.newtxt = $a($1.txt.length + 1); //#4065 + $puti($1.newtxt, 0, $1.txt); //#4066 + $put($1.newtxt, $1.newtxt.length - 1, $a([$1.isbntxt, $1.isbntextxoffset, $1.isbntextyoffset, $1.isbntextfont, $1.isbntextsize])); //#4067 + $put($1.args, "txt", $1.newtxt); //#4068 + } else { //#4070 + $put($1.args, "txt", $a([$a([$1.isbntxt, $1.isbntextxoffset, $1.isbntextyoffset, $1.isbntextfont, $1.isbntextsize])])); //#4070 + } //#4070 + } //#4070 + $put($1.args, "opt", $1.options); //#4074 + $k[$j++] = $1.args; //#4077 + if (!$1.dontdraw) { //#4077 + $0.renlinear(); //#4077 + } //#4077 }; $0.ismn = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.ismntextfont = "OCR-A"; - $1.ismntextsize = 8; - $1.ismntextxoffset = "unset"; - $1.ismntextyoffset = "unset"; - $1.height = 1; - $1.addongap = 12; - $1.legacy = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.ismntextfont = "" + $1.ismntextfont; - $1.ismntextsize = +$1.ismntextsize; - if ($ne($1.ismntextxoffset, "unset")) { - $1.ismntextxoffset = +$1.ismntextxoffset; - } - if ($ne($1.ismntextyoffset, "unset")) { - $1.ismntextyoffset = +$1.ismntextyoffset; - } - $1.height = +$1.height; - $1.addongap = +$1.addongap; - $search($1.barcode, " "); - if ($k[--$j]) { - $1.barcode = $k[--$j]; - $j--; - $1.addon = $k[--$j]; - } else { - $j--; - $1.addon = ""; - } - if ($1.barcode.length != 15 && $1.barcode.length != 17 && ($1.barcode.length != 11 && $1.barcode.length != 13)) { - $k[$j++] = "bwipp.ismnBadLength"; - $k[$j++] = "ISMN-13 must be 15 or 17 characters including dashes. ISMN-10 must be 11 or 13 characters including dashes"; - $0.raiseerror(); - } - if ($1.addon.length != 0 && $1.addon.length != 2 && $1.addon.length != 5) { - $k[$j++] = "bwipp.ismnBadAddOnLength"; - $k[$j++] = "Add-on for ISMN must be 2 or 5 digits"; - $0.raiseerror(); - } - if ($1.barcode.length >= 15) { - if ($ne($geti($1.barcode, 0, 4), "979-")) { - $k[$j++] = "bwipp.ismn13badPrefix"; - $k[$j++] = "ISMN-13 prefix must be 979-"; - $0.raiseerror(); - } - $1.wasdash = false; - $1.numdash = 0; - $1.numdigit = 0; - var _S = $geti($1.barcode, 5, 9); - for (var _T = 0, _U = _S.length; _T < _U; _T++) { - var _V = $get(_S, _T); - $k[$j++] = _V; - if (_V == 45) { - if ($1.wasdash) { - $k[$j++] = "bwipp.ismn13adjacentDashes"; - $k[$j++] = "ISMN-13 does not permit adjacent dashes"; - $0.raiseerror(); - } - $1.wasdash = true; - $1.numdash = $1.numdash + 1; - } - var _Y = $k[--$j]; - if (_Y >= 48 && _Y <= 57) { - $1.wasdash = false; - $1.numdigit = $1.numdigit + 1; - } - } - if ($1.numdash != 2 || $1.numdigit != 7) { - $k[$j++] = "bwipp.ismn13numDashesDigits"; - $k[$j++] = "Incorrect number of dashes and digits for ISMN-13"; - $0.raiseerror(); - } - var _d = $get($1.barcode, 14); - if (_d < 48 || _d > 57) { - $k[$j++] = "bwipp.ismn13character15"; - $k[$j++] = "ISMN-13 character 15 must be a digit"; - $0.raiseerror(); - } - if ($1.barcode.length == 17) { - if ($ne($geti($1.barcode, 15, 1), "-")) { - $k[$j++] = "bwipp.ismn13character16"; - $k[$j++] = "ISMN-13 penultimate character must be a dash"; - $0.raiseerror(); - } - var _i = $get($1.barcode, 16); - if (_i < 48 || _i > 57) { - $k[$j++] = "bwipp.ismn13character17"; - $k[$j++] = "ISMN-13 final character must be a digit"; - $0.raiseerror(); - } - } - } else { - if ($ne($geti($1.barcode, 0, 2), "M-")) { - $k[$j++] = "bwipp.ismn10badPrefix"; - $k[$j++] = "ISMN-10 prefix must be M-"; - $0.raiseerror(); - } - var _m = $get($1.barcode, 2); - if (_m < 48 || _m > 57) { - $k[$j++] = "bwipp.ismn10character3"; - $k[$j++] = "ISMN-10 character 3 must be a digit"; - $0.raiseerror(); - } - $1.wasdash = false; - $1.numdash = 0; - $1.numdigit = 0; - var _o = $geti($1.barcode, 3, 7); - for (var _p = 0, _q = _o.length; _p < _q; _p++) { - var _r = $get(_o, _p); - $k[$j++] = _r; - if (_r == 45) { - if ($1.wasdash) { - $k[$j++] = "bwipp.ismn10adjacentDashes"; - $k[$j++] = "ISMN-10 does not permit adjacent dashes"; - $0.raiseerror(); - } - $1.wasdash = true; - $1.numdash = $1.numdash + 1; - } - var _u = $k[--$j]; - if (_u >= 48 && _u <= 57) { - $1.wasdash = false; - $1.numdigit = $1.numdigit + 1; - } - } - if ($1.numdash != 1 || $1.numdigit != 6) { - $k[$j++] = "bwipp.ismn10numDashesDigits"; - $k[$j++] = "Incorrect number of dashes and digits for ISMN-10"; - $0.raiseerror(); - } - var _z = $get($1.barcode, 10); - if (_z < 48 || _z > 57) { - $k[$j++] = "bwipp.ismn10character11"; - $k[$j++] = "ISMN-10 character 11 must be a digit"; - $0.raiseerror(); - } - if ($1.barcode.length == 13) { - if ($ne($geti($1.barcode, 11, 1), "-")) { - $k[$j++] = "bwipp.ismn10character12"; - $k[$j++] = "ISMN-10 penultimate character must be a dash"; - $0.raiseerror(); - } - var _14 = $get($1.barcode, 12); - if ((_14 < 48 || _14 > 57) && _14 != 88) { - $k[$j++] = "bwipp.ismn10character13"; - $k[$j++] = "ISMN-10 final character must be a digit or X"; - $0.raiseerror(); - } - } - } - $1.ismntxt = $1.barcode; - $1.legacytxt = ""; - if ($1.ismntxt.length <= 13) { - $1.legacytxt = $1.ismntxt; - $1.pad = $s($1.ismntxt.length + 4); - $puti($1.pad, 0, "979-0-"); - $puti($1.pad, 6, $geti($1.ismntxt, 2, $1.ismntxt.length - 2)); - $1.ismntxt = $1.pad; - } - $1.ismn = $s(13); - $1.checksum = 0; - $1.i = 0; - $1.n = 0; - for (;;) { - $1.ismnchar = $get($1.ismntxt, $1.i) - 48; - if ($1.ismnchar != -3) { - $put($1.ismn, $1.n, $1.ismnchar + 48); - if ($1.n < 12) { - if ($1.n % 2 == 0) { - $1.checksum = $1.ismnchar + $1.checksum; - } else { - $1.checksum = $1.ismnchar * 3 + $1.checksum; - } - } - $1.n = $1.n + 1; - } - $1.i = $1.i + 1; - if ($1.i == $1.ismntxt.length) { - break; - } - } - $1.checksum = (10 - $1.checksum % 10) % 10 + 48; - if ($1.barcode.length == 13 || $1.barcode.length == 17) { - var _1b = $1.barcode; - if ($get(_1b, _1b.length - 1) != $1.checksum) { - $k[$j++] = "bwipp.ismnBadCheckDigit"; - $k[$j++] = "Incorrect ISMN check digit provided"; - $0.raiseerror(); - } - } - if ($1.legacy && $ne($1.legacytxt, "")) { - $1.ismntxt = $1.legacytxt; - $1.pad = $s(18); - } else { - $1.pad = $s(22); - } - $puti($1.pad, 0, "ISMN "); - $puti($1.pad, 5, $1.ismntxt); - $put($1.pad, $1.pad.length - 2, 45); - $put($1.pad, $1.pad.length - 1, $1.checksum); - $1.ismntxt = $1.pad; - $1.barcode = $geti($1.ismn, 0, 12); - if ($ne($1.addon, "")) { - var _1w = $s(12 + $1.addon.length + 1); - $puti(_1w, 0, $1.barcode); - $puti(_1w, 12, " "); - $puti(_1w, 13, $1.addon); - $1.barcode = _1w; - } - $put($1.options, "dontdraw", true); - $put($1.options, "addongap", $1.addongap); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.ean13(); - var _24 = $k[--$j]; - $1[$k[--$j]] = _24; - if ($1.includetext) { - if ($1.ismntextxoffset == "unset") { - $k[$j++] = "ismntextxoffset"; - if ($1.ismntxt.length == 18) { - $k[$j++] = -1; - } else { - $k[$j++] = -12; - } - var _29 = $k[--$j]; - $1[$k[--$j]] = _29; - } - if ($1.ismntextyoffset == "unset") { - $1.ismntextyoffset = $f($1.height * 72 + 3); - } - var _2E = $get($1.args, "txt") !== undefined; - if (_2E) { - $1.txt = $get($1.args, "txt"); - $1.newtxt = $a($1.txt.length + 1); - $puti($1.newtxt, 0, $1.txt); - $put($1.newtxt, $1.newtxt.length - 1, $a([ $1.ismntxt, $1.ismntextxoffset, $1.ismntextyoffset, $1.ismntextfont, $1.ismntextsize ])); - $put($1.args, "txt", $1.newtxt); - } else { - $put($1.args, "txt", $a([ $a([ $1.ismntxt, $1.ismntextxoffset, $1.ismntextyoffset, $1.ismntextfont, $1.ismntextsize ]) ])); - } - } - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#4107 + $1.options = $k[--$j]; //#4109 + $1.barcode = $k[--$j]; //#4110 + $1.dontdraw = false; //#4112 + $1.includetext = false; //#4113 + $1.ismntextfont = 'OCR-A'; //#4114 + $1.ismntextsize = 8; //#4115 + $1.ismntextxoffset = "unset"; //#4116 + $1.ismntextyoffset = "unset"; //#4117 + $1.height = 1; //#4118 + $1.addongap = 12; //#4119 + $1.legacy = false; //#4120 + $forall($1.options, function() { //#4131 + var _3 = $k[--$j]; //#4131 + $1[$k[--$j]] = _3; //#4131 + }); //#4131 + $1.ismntextfont = "" + $1.ismntextfont; //#4133 + $1.ismntextsize = +$1.ismntextsize; //#4134 + if ($ne($1.ismntextxoffset, "unset")) { //#4135 + $1.ismntextxoffset = +$1.ismntextxoffset; //#4135 + } //#4135 + if ($ne($1.ismntextyoffset, "unset")) { //#4136 + $1.ismntextyoffset = +$1.ismntextyoffset; //#4136 + } //#4136 + $1.height = +$1.height; //#4137 + $1.addongap = +$1.addongap; //#4138 + $search($1.barcode, " "); //#4141 + if ($k[--$j]) { //#4147 + $1.barcode = $k[--$j]; //#4142 + $j--; //#4143 + $1.addon = $k[--$j]; //#4144 + } else { //#4147 + $j--; //#4146 + $1.addon = ""; //#4147 + } //#4147 + if ((($1.barcode.length != 15) && ($1.barcode.length != 17)) && (($1.barcode.length != 11) && ($1.barcode.length != 13))) { //#4154 + $k[$j++] = 'bwipp.ismnBadLength'; //#4153 + $k[$j++] = "ISMN-13 must be 15 or 17 characters including dashes. ISMN-10 must be 11 or 13 characters including dashes"; //#4153 + $0.raiseerror(); //#4153 + } //#4153 + if ((($1.addon.length != 0) && ($1.addon.length != 2)) && ($1.addon.length != 5)) { //#4157 + $k[$j++] = 'bwipp.ismnBadAddOnLength'; //#4156 + $k[$j++] = "Add-on for ISMN must be 2 or 5 digits"; //#4156 + $0.raiseerror(); //#4156 + } //#4156 + if ($1.barcode.length >= 15) { //#4224 + if ($ne($geti($1.barcode, 0, 4), "979-")) { //#4161 + $k[$j++] = 'bwipp.ismn13badPrefix'; //#4160 + $k[$j++] = "ISMN-13 prefix must be 979-"; //#4160 + $0.raiseerror(); //#4160 + } //#4160 + $1.wasdash = false; //#4162 + $1.numdash = 0; //#4162 + $1.numdigit = 0; //#4162 + var _S = $geti($1.barcode, 5, 9); //#4163 + for (var _T = 0, _U = _S.length; _T < _U; _T++) { //#4176 + var _V = $get(_S, _T); //#4176 + $k[$j++] = _V; //#4171 + if (_V == 45) { //#4171 + if ($1.wasdash) { //#4168 + $k[$j++] = 'bwipp.ismn13adjacentDashes'; //#4167 + $k[$j++] = "ISMN-13 does not permit adjacent dashes"; //#4167 + $0.raiseerror(); //#4167 + } //#4167 + $1.wasdash = true; //#4169 + $1.numdash = $1.numdash + 1; //#4170 + } //#4170 + var _Y = $k[--$j]; //#4172 + if ((_Y >= 48) && (_Y <= 57)) { //#4175 + $1.wasdash = false; //#4173 + $1.numdigit = $1.numdigit + 1; //#4174 + } //#4174 + } //#4174 + if (($1.numdash != 2) || ($1.numdigit != 7)) { //#4179 + $k[$j++] = 'bwipp.ismn13numDashesDigits'; //#4178 + $k[$j++] = "Incorrect number of dashes and digits for ISMN-13"; //#4178 + $0.raiseerror(); //#4178 + } //#4178 + var _d = $get($1.barcode, 14); //#4180 + if ((_d < 48) || (_d > 57)) { //#4182 + $k[$j++] = 'bwipp.ismn13character15'; //#4181 + $k[$j++] = "ISMN-13 character 15 must be a digit"; //#4181 + $0.raiseerror(); //#4181 + } //#4181 + if ($1.barcode.length == 17) { //#4190 + if ($ne($geti($1.barcode, 15, 1), "-")) { //#4186 + $k[$j++] = 'bwipp.ismn13character16'; //#4185 + $k[$j++] = "ISMN-13 penultimate character must be a dash"; //#4185 + $0.raiseerror(); //#4185 + } //#4185 + var _i = $get($1.barcode, 16); //#4187 + if ((_i < 48) || (_i > 57)) { //#4189 + $k[$j++] = 'bwipp.ismn13character17'; //#4188 + $k[$j++] = "ISMN-13 final character must be a digit"; //#4188 + $0.raiseerror(); //#4188 + } //#4188 + } //#4188 + } else { //#4224 + if ($ne($geti($1.barcode, 0, 2), "M-")) { //#4194 + $k[$j++] = 'bwipp.ismn10badPrefix'; //#4193 + $k[$j++] = "ISMN-10 prefix must be M-"; //#4193 + $0.raiseerror(); //#4193 + } //#4193 + var _m = $get($1.barcode, 2); //#4195 + if ((_m < 48) || (_m > 57)) { //#4197 + $k[$j++] = 'bwipp.ismn10character3'; //#4196 + $k[$j++] = "ISMN-10 character 3 must be a digit"; //#4196 + $0.raiseerror(); //#4196 + } //#4196 + $1.wasdash = false; //#4198 + $1.numdash = 0; //#4198 + $1.numdigit = 0; //#4198 + var _o = $geti($1.barcode, 3, 7); //#4199 + for (var _p = 0, _q = _o.length; _p < _q; _p++) { //#4212 + var _r = $get(_o, _p); //#4212 + $k[$j++] = _r; //#4207 + if (_r == 45) { //#4207 + if ($1.wasdash) { //#4204 + $k[$j++] = 'bwipp.ismn10adjacentDashes'; //#4203 + $k[$j++] = "ISMN-10 does not permit adjacent dashes"; //#4203 + $0.raiseerror(); //#4203 + } //#4203 + $1.wasdash = true; //#4205 + $1.numdash = $1.numdash + 1; //#4206 + } //#4206 + var _u = $k[--$j]; //#4208 + if ((_u >= 48) && (_u <= 57)) { //#4211 + $1.wasdash = false; //#4209 + $1.numdigit = $1.numdigit + 1; //#4210 + } //#4210 + } //#4210 + if (($1.numdash != 1) || ($1.numdigit != 6)) { //#4215 + $k[$j++] = 'bwipp.ismn10numDashesDigits'; //#4214 + $k[$j++] = "Incorrect number of dashes and digits for ISMN-10"; //#4214 + $0.raiseerror(); //#4214 + } //#4214 + var _z = $get($1.barcode, 10); //#4216 + if ((_z < 48) || (_z > 57)) { //#4218 + $k[$j++] = 'bwipp.ismn10character11'; //#4217 + $k[$j++] = "ISMN-10 character 11 must be a digit"; //#4217 + $0.raiseerror(); //#4217 + } //#4217 + if ($1.barcode.length == 13) { //#4226 + if ($ne($geti($1.barcode, 11, 1), "-")) { //#4222 + $k[$j++] = 'bwipp.ismn10character12'; //#4221 + $k[$j++] = "ISMN-10 penultimate character must be a dash"; //#4221 + $0.raiseerror(); //#4221 + } //#4221 + var _14 = $get($1.barcode, 12); //#4223 + if (((_14 < 48) || (_14 > 57)) && (_14 != 88)) { //#4225 + $k[$j++] = 'bwipp.ismn10character13'; //#4224 + $k[$j++] = "ISMN-10 final character must be a digit or X"; //#4224 + $0.raiseerror(); //#4224 + } //#4224 + } //#4224 + } //#4224 + $1.ismntxt = $1.barcode; //#4229 + $1.legacytxt = ""; //#4232 + if ($1.ismntxt.length <= 13) { //#4239 + $1.legacytxt = $1.ismntxt; //#4234 + $1.pad = $s($1.ismntxt.length + 4); //#4235 + $puti($1.pad, 0, "979-0-"); //#4236 + $puti($1.pad, 6, $geti($1.ismntxt, 2, $1.ismntxt.length - 2)); //#4237 + $1.ismntxt = $1.pad; //#4238 + } //#4238 + $1.ismn = $s(13); //#4242 + $1.checksum = 0; //#4243 + $1.i = 0; //#4244 + $1.n = 0; //#4244 + for (;;) { //#4260 + $1.ismnchar = $get($1.ismntxt, $1.i) - 48; //#4246 + if ($1.ismnchar != -3) { //#4257 + $put($1.ismn, $1.n, $1.ismnchar + 48); //#4248 + if ($1.n < 12) { //#4255 + if (($1.n % 2) == 0) { //#4253 + $1.checksum = $1.ismnchar + $1.checksum; //#4251 + } else { //#4253 + $1.checksum = ($1.ismnchar * 3) + $1.checksum; //#4253 + } //#4253 + } //#4253 + $1.n = $1.n + 1; //#4256 + } //#4256 + $1.i = $1.i + 1; //#4258 + if ($1.i == $1.ismntxt.length) { //#4259 + break; //#4259 + } //#4259 + } //#4259 + $1.checksum = ((10 - ($1.checksum % 10)) % 10) + 48; //#4261 + if (($1.barcode.length == 13) || ($1.barcode.length == 17)) { //#4268 + var _1b = $1.barcode; //#4265 + if ($get(_1b, _1b.length - 1) != $1.checksum) { //#4267 + $k[$j++] = 'bwipp.ismnBadCheckDigit'; //#4266 + $k[$j++] = "Incorrect ISMN check digit provided"; //#4266 + $0.raiseerror(); //#4266 + } //#4266 + } //#4266 + if ($1.legacy && $ne($1.legacytxt, "")) { //#4275 + $1.ismntxt = $1.legacytxt; //#4272 + $1.pad = $s(18); //#4273 + } else { //#4275 + $1.pad = $s(22); //#4275 + } //#4275 + $puti($1.pad, 0, "ISMN "); //#4277 + $puti($1.pad, 5, $1.ismntxt); //#4278 + $put($1.pad, $1.pad.length - 2, 45); //#4279 + $put($1.pad, $1.pad.length - 1, $1.checksum); //#4280 + $1.ismntxt = $1.pad; //#4281 + $1.barcode = $geti($1.ismn, 0, 12); //#4284 + if ($ne($1.addon, "")) { //#4293 + var _1w = $s((12 + $1.addon.length) + 1); //#4288 + $puti(_1w, 0, $1.barcode); //#4289 + $puti(_1w, 12, " "); //#4290 + $puti(_1w, 13, $1.addon); //#4291 + $1.barcode = _1w; //#4292 + } //#4292 + $put($1.options, "dontdraw", true); //#4296 + $put($1.options, "addongap", $1.addongap); //#4297 + $k[$j++] = 'args'; //#4298 + $k[$j++] = $1.barcode; //#4298 + $k[$j++] = $1.options; //#4298 + $0.ean13(); //#4298 + var _24 = $k[--$j]; //#4298 + $1[$k[--$j]] = _24; //#4298 + if ($1.includetext) { //#4317 + if ($1.ismntextxoffset == "unset") { //#4304 + $k[$j++] = 'ismntextxoffset'; //#4303 + if ($1.ismntxt.length == 18) { //#4303 + $k[$j++] = -1; //#4303 + } else { //#4303 + $k[$j++] = -12; //#4303 + } //#4303 + var _29 = $k[--$j]; //#4303 + $1[$k[--$j]] = _29; //#4303 + } //#4303 + if ($1.ismntextyoffset == "unset") { //#4307 + $1.ismntextyoffset = $f(($1.height * 72) + 3); //#4306 + } //#4306 + var _2E = $get($1.args, "txt") !== undefined; //#4308 + if (_2E) { //#4315 + $1.txt = $get($1.args, "txt"); //#4309 + $1.newtxt = $a($1.txt.length + 1); //#4310 + $puti($1.newtxt, 0, $1.txt); //#4311 + $put($1.newtxt, $1.newtxt.length - 1, $a([$1.ismntxt, $1.ismntextxoffset, $1.ismntextyoffset, $1.ismntextfont, $1.ismntextsize])); //#4312 + $put($1.args, "txt", $1.newtxt); //#4313 + } else { //#4315 + $put($1.args, "txt", $a([$a([$1.ismntxt, $1.ismntextxoffset, $1.ismntextyoffset, $1.ismntextfont, $1.ismntextsize])])); //#4315 + } //#4315 + } //#4315 + $put($1.args, "opt", $1.options); //#4319 + $k[$j++] = $1.args; //#4322 + if (!$1.dontdraw) { //#4322 + $0.renlinear(); //#4322 + } //#4322 }; $0.issn = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.issntxt = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.issntextfont = "OCR-A"; - $1.issntextsize = 8; - $1.issntextxoffset = "unset"; - $1.issntextyoffset = "unset"; - $1.height = 1; - $1.addongap = 12; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.issntextfont = "" + $1.issntextfont; - $1.issntextsize = +$1.issntextsize; - if ($ne($1.issntextxoffset, "unset")) { - $1.issntextxoffset = +$1.issntextxoffset; - } - if ($ne($1.issntextyoffset, "unset")) { - $1.issntextyoffset = +$1.issntextyoffset; - } - $1.height = +$1.height; - $1.addongap = +$1.addongap; - $search($1.issntxt, " "); - if ($k[--$j]) { - $1.issntxt = $k[--$j]; - $j--; - $1.seqvar = $k[--$j]; - } else { - $j--; - $1.seqvar = "00"; - } - $search($1.seqvar, " "); - if ($k[--$j]) { - $1.seqvar = $k[--$j]; - $j--; - $1.addon = $k[--$j]; - } else { - $j--; - $1.addon = ""; - } - if ($1.issntxt.length != 8 && $1.issntxt.length != 9) { - $k[$j++] = "bwipp.issnBadLength"; - $k[$j++] = "ISSN must be 8 or 9 characters including dash, in the format XXXX-XXXX"; - $0.raiseerror(); - } - var _O = $geti($1.issntxt, 0, 4); - for (var _P = 0, _Q = _O.length; _P < _Q; _P++) { - var _R = $get(_O, _P); - if (_R < 48 || _R > 57) { - $k[$j++] = "bwipp.issnFirstThroughFourthNotNumeric"; - $k[$j++] = "ISSN first four characters must be numeral characters"; - $0.raiseerror(); - } - } - if ($ne($geti($1.issntxt, 4, 1), "-")) { - $k[$j++] = "bwipp.issnNeedsDash"; - $k[$j++] = "ISSN fifth character must be a dash"; - $0.raiseerror(); - } - var _V = $geti($1.issntxt, 5, 3); - for (var _W = 0, _X = _V.length; _W < _X; _W++) { - var _Y = $get(_V, _W); - if (_Y < 48 || _Y > 57) { - $k[$j++] = "bwipp.issnSixthThroughEighthNotNumeric"; - $k[$j++] = "ISSN sixth through eighth characters must be numerals"; - $0.raiseerror(); - } - } - if ($1.issntxt.length == 9) { - var _b = $get($1.issntxt, 8); - if ((_b < 48 || _b > 57) && _b != 88) { - $k[$j++] = "bwipp.issnNinthCharacterBadFormat"; - $k[$j++] = "ISSN ninth character must be a number or the character X"; - $0.raiseerror(); - } - } - if ($1.seqvar.length != 2) { - $k[$j++] = "bwipp.issnBadSequenceVariantLength"; - $k[$j++] = "Sequence variant for ISSN must be 2 digits"; - $0.raiseerror(); - } - $forall($1.seqvar, function() { - var _e = $k[--$j]; - if (_e < 48 || _e > 57) { - $k[$j++] = "bwipp.issnSequenceVariantBadCharacter"; - $k[$j++] = "Sequence variant for ISSN must contain only digits"; - $0.raiseerror(); - } - }); - if ($1.addon.length != 0 && $1.addon.length != 2 && $1.addon.length != 5) { - $k[$j++] = "bwipp.issnBadAddOnLength"; - $k[$j++] = "Add-on for ISSN must be 2 or 5 digits"; - $0.raiseerror(); - } - $1.issn = $s(8); - $1.checksum = 0; - $1.i = 0; - $1.n = 0; - for (;;) { - $1.issnchar = $f($get($1.issntxt, $1.i) - 48); - if ($1.issnchar != -3) { - $put($1.issn, $1.n, $f($1.issnchar + 48)); - if ($1.n < 7) { - $1.checksum = $f($1.checksum + $1.issnchar * (8 - $1.n)); - } - $1.n = $1.n + 1; - } - $1.i = $1.i + 1; - if ($1.i == $1.issntxt.length) { - break; - } - } - $1.checksum = $f(11 - $1.checksum % 11) % 11; - var _10 = $f($1.checksum + 48); - $k[$j++] = "checksum"; - $k[$j++] = _10; - if (_10 == 58) { - $j--; - $k[$j++] = 88; - } - var _11 = $k[--$j]; - $1[$k[--$j]] = _11; - if ($1.issntxt.length == 9) { - if ($get($1.issntxt, 8) != $1.checksum) { - $k[$j++] = "bwipp.issnBadCheckDigit"; - $k[$j++] = "Incorrect ISSN check digit provided"; - $0.raiseerror(); - } - } - $1.pad = $s(14); - $puti($1.pad, 0, "ISSN "); - $puti($1.pad, 5, $1.issntxt); - $put($1.pad, 13, $1.checksum); - $1.issntxt = $1.pad; - $1.barcode = $geti($1.issn, 0, 7); - $1.barcode = $s(12); - $puti($1.barcode, 0, "977"); - $puti($1.barcode, 3, $1.issn); - $puti($1.barcode, 10, $1.seqvar); - if ($ne($1.addon, "")) { - var _1O = $s(12 + $1.addon.length + 1); - $puti(_1O, 0, $1.barcode); - $puti(_1O, 12, " "); - $puti(_1O, 13, $1.addon); - $1.barcode = _1O; - } - $put($1.options, "dontdraw", true); - $put($1.options, "addongap", $1.addongap); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.ean13(); - var _1W = $k[--$j]; - $1[$k[--$j]] = _1W; - if ($1.includetext) { - if ($1.issntextxoffset == "unset") { - $1.issntextxoffset = 10; - } - if ($1.issntextyoffset == "unset") { - $1.issntextyoffset = $f($1.height * 72 + 3); - } - var _1d = $get($1.args, "txt") !== undefined; - if (_1d) { - $1.txt = $get($1.args, "txt"); - $1.newtxt = $a($1.txt.length + 1); - $puti($1.newtxt, 0, $1.txt); - $put($1.newtxt, $1.newtxt.length - 1, $a([ $1.issntxt, $1.issntextxoffset, $1.issntextyoffset, $1.issntextfont, $1.issntextsize ])); - $put($1.args, "txt", $1.newtxt); - } else { - $put($1.args, "txt", $a([ $a([ $1.issntxt, $1.issntextxoffset, $1.issntextyoffset, $1.issntextfont, $1.issntextsize ]) ])); - } - } - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#4352 + $1.options = $k[--$j]; //#4354 + $1.issntxt = $k[--$j]; //#4355 + $1.dontdraw = false; //#4357 + $1.includetext = false; //#4358 + $1.issntextfont = 'OCR-A'; //#4359 + $1.issntextsize = 8; //#4360 + $1.issntextxoffset = "unset"; //#4361 + $1.issntextyoffset = "unset"; //#4362 + $1.height = 1; //#4363 + $1.addongap = 12; //#4364 + $forall($1.options, function() { //#4375 + var _3 = $k[--$j]; //#4375 + $1[$k[--$j]] = _3; //#4375 + }); //#4375 + $1.issntextfont = "" + $1.issntextfont; //#4377 + $1.issntextsize = +$1.issntextsize; //#4378 + if ($ne($1.issntextxoffset, "unset")) { //#4379 + $1.issntextxoffset = +$1.issntextxoffset; //#4379 + } //#4379 + if ($ne($1.issntextyoffset, "unset")) { //#4380 + $1.issntextyoffset = +$1.issntextyoffset; //#4380 + } //#4380 + $1.height = +$1.height; //#4381 + $1.addongap = +$1.addongap; //#4382 + $search($1.issntxt, " "); //#4385 + if ($k[--$j]) { //#4391 + $1.issntxt = $k[--$j]; //#4386 + $j--; //#4387 + $1.seqvar = $k[--$j]; //#4388 + } else { //#4391 + $j--; //#4390 + $1.seqvar = "00"; //#4391 + } //#4391 + $search($1.seqvar, " "); //#4395 + if ($k[--$j]) { //#4401 + $1.seqvar = $k[--$j]; //#4396 + $j--; //#4397 + $1.addon = $k[--$j]; //#4398 + } else { //#4401 + $j--; //#4400 + $1.addon = ""; //#4401 + } //#4401 + if (($1.issntxt.length != 8) && ($1.issntxt.length != 9)) { //#4407 + $k[$j++] = 'bwipp.issnBadLength'; //#4406 + $k[$j++] = "ISSN must be 8 or 9 characters including dash, in the format XXXX-XXXX"; //#4406 + $0.raiseerror(); //#4406 + } //#4406 + var _O = $geti($1.issntxt, 0, 4); //#4408 + for (var _P = 0, _Q = _O.length; _P < _Q; _P++) { //#4412 + var _R = $get(_O, _P); //#4412 + if ((_R < 48) || (_R > 57)) { //#4411 + $k[$j++] = 'bwipp.issnFirstThroughFourthNotNumeric'; //#4410 + $k[$j++] = "ISSN first four characters must be numeral characters"; //#4410 + $0.raiseerror(); //#4410 + } //#4410 + } //#4410 + if ($ne($geti($1.issntxt, 4, 1), "-")) { //#4415 + $k[$j++] = 'bwipp.issnNeedsDash'; //#4414 + $k[$j++] = "ISSN fifth character must be a dash"; //#4414 + $0.raiseerror(); //#4414 + } //#4414 + var _V = $geti($1.issntxt, 5, 3); //#4416 + for (var _W = 0, _X = _V.length; _W < _X; _W++) { //#4420 + var _Y = $get(_V, _W); //#4420 + if ((_Y < 48) || (_Y > 57)) { //#4419 + $k[$j++] = 'bwipp.issnSixthThroughEighthNotNumeric'; //#4418 + $k[$j++] = "ISSN sixth through eighth characters must be numerals"; //#4418 + $0.raiseerror(); //#4418 + } //#4418 + } //#4418 + if ($1.issntxt.length == 9) { //#4425 + var _b = $get($1.issntxt, 8); //#4422 + if (((_b < 48) || (_b > 57)) && (_b != 88)) { //#4424 + $k[$j++] = 'bwipp.issnNinthCharacterBadFormat'; //#4423 + $k[$j++] = "ISSN ninth character must be a number or the character X"; //#4423 + $0.raiseerror(); //#4423 + } //#4423 + } //#4423 + if ($1.seqvar.length != 2) { //#4428 + $k[$j++] = 'bwipp.issnBadSequenceVariantLength'; //#4427 + $k[$j++] = "Sequence variant for ISSN must be 2 digits"; //#4427 + $0.raiseerror(); //#4427 + } //#4427 + $forall($1.seqvar, function() { //#4433 + var _e = $k[--$j]; //#4430 + if ((_e < 48) || (_e > 57)) { //#4432 + $k[$j++] = 'bwipp.issnSequenceVariantBadCharacter'; //#4431 + $k[$j++] = "Sequence variant for ISSN must contain only digits"; //#4431 + $0.raiseerror(); //#4431 + } //#4431 + }); //#4431 + if ((($1.addon.length != 0) && ($1.addon.length != 2)) && ($1.addon.length != 5)) { //#4436 + $k[$j++] = 'bwipp.issnBadAddOnLength'; //#4435 + $k[$j++] = "Add-on for ISSN must be 2 or 5 digits"; //#4435 + $0.raiseerror(); //#4435 + } //#4435 + $1.issn = $s(8); //#4439 + $1.checksum = 0; //#4440 + $1.i = 0; //#4441 + $1.n = 0; //#4441 + for (;;) { //#4453 + $1.issnchar = $f($get($1.issntxt, $1.i) - 48); //#4443 + if ($1.issnchar != -3) { //#4450 + $put($1.issn, $1.n, $f($1.issnchar + 48)); //#4445 + if ($1.n < 7) { //#4448 + $1.checksum = $f($1.checksum + ($1.issnchar * (8 - $1.n))); //#4447 + } //#4447 + $1.n = $1.n + 1; //#4449 + } //#4449 + $1.i = $1.i + 1; //#4451 + if ($1.i == $1.issntxt.length) { //#4452 + break; //#4452 + } //#4452 + } //#4452 + $1.checksum = ($f(11 - ($1.checksum % 11))) % 11; //#4454 + var _10 = $f($1.checksum + 48); //#4455 + $k[$j++] = 'checksum'; //#4455 + $k[$j++] = _10; //#4455 + if (_10 == 58) { //#4455 + $j--; //#4455 + $k[$j++] = 88; //#4455 + } //#4455 + var _11 = $k[--$j]; //#4455 + $1[$k[--$j]] = _11; //#4455 + if ($1.issntxt.length == 9) { //#4460 + if ($get($1.issntxt, 8) != $1.checksum) { //#4459 + $k[$j++] = 'bwipp.issnBadCheckDigit'; //#4458 + $k[$j++] = "Incorrect ISSN check digit provided"; //#4458 + $0.raiseerror(); //#4458 + } //#4458 + } //#4458 + $1.pad = $s(14); //#4463 + $puti($1.pad, 0, "ISSN "); //#4464 + $puti($1.pad, 5, $1.issntxt); //#4465 + $put($1.pad, 13, $1.checksum); //#4466 + $1.issntxt = $1.pad; //#4467 + $1.barcode = $geti($1.issn, 0, 7); //#4470 + $1.barcode = $s(12); //#4473 + $puti($1.barcode, 0, "977"); //#4474 + $puti($1.barcode, 3, $1.issn); //#4475 + $puti($1.barcode, 10, $1.seqvar); //#4476 + if ($ne($1.addon, "")) { //#4485 + var _1O = $s((12 + $1.addon.length) + 1); //#4480 + $puti(_1O, 0, $1.barcode); //#4481 + $puti(_1O, 12, " "); //#4482 + $puti(_1O, 13, $1.addon); //#4483 + $1.barcode = _1O; //#4484 + } //#4484 + $put($1.options, "dontdraw", true); //#4488 + $put($1.options, "addongap", $1.addongap); //#4489 + $k[$j++] = 'args'; //#4490 + $k[$j++] = $1.barcode; //#4490 + $k[$j++] = $1.options; //#4490 + $0.ean13(); //#4490 + var _1W = $k[--$j]; //#4490 + $1[$k[--$j]] = _1W; //#4490 + if ($1.includetext) { //#4507 + if ($1.issntextxoffset == "unset") { //#4494 + $1.issntextxoffset = 10; //#4494 + } //#4494 + if ($1.issntextyoffset == "unset") { //#4497 + $1.issntextyoffset = $f(($1.height * 72) + 3); //#4496 + } //#4496 + var _1d = $get($1.args, "txt") !== undefined; //#4498 + if (_1d) { //#4505 + $1.txt = $get($1.args, "txt"); //#4499 + $1.newtxt = $a($1.txt.length + 1); //#4500 + $puti($1.newtxt, 0, $1.txt); //#4501 + $put($1.newtxt, $1.newtxt.length - 1, $a([$1.issntxt, $1.issntextxoffset, $1.issntextyoffset, $1.issntextfont, $1.issntextsize])); //#4502 + $put($1.args, "txt", $1.newtxt); //#4503 + } else { //#4505 + $put($1.args, "txt", $a([$a([$1.issntxt, $1.issntextxoffset, $1.issntextyoffset, $1.issntextfont, $1.issntextsize])])); //#4505 + } //#4505 + } //#4505 + $put($1.args, "opt", $1.options); //#4509 + $k[$j++] = $1.args; //#4512 + if (!$1.dontdraw) { //#4512 + $0.renlinear(); //#4512 + } //#4512 }; $0.code128 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = 1; - $1.encoding = "auto"; - $1.raw = false; - $1.parse = false; - $1.parsefnc = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.sta = -1; - $1.stb = -2; - $1.stc = -3; - $1.swa = -4; - $1.swb = -5; - $1.swc = -6; - $1.fn1 = -7; - $1.fn2 = -8; - $1.fn3 = -9; - $1.fn4 = -10; - $1.sft = -11; - $1.stp = -12; - $1.lka = -13; - $1.lkc = -14; - var _I = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "FNC1", $1.fn1 ], [ "FNC1", $1.fn1 ], [ "FNC2", $1.fn2 ], [ "FNC3", $1.fn3 ], [ "LNKA", $1.lka ], [ "LNKC", $1.lkc ] ]); - $1.fncvals = _I; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _L = $k[--$j]; - $1[$k[--$j]] = _L; - $1.msglen = $1.msg.length; - $1.charmaps = $a([ $a([ 32, 32, "00" ]), $a([ "!", "!", "01" ]), $a([ '"', '"', "02" ]), $a([ "#", "#", "03" ]), $a([ "$", "$", "04" ]), $a([ "%", "%", "05" ]), $a([ "&", "&", "06" ]), $a([ "'", "'", "07" ]), $a([ 40, 40, "08" ]), $a([ 41, 41, "09" ]), $a([ "*", "*", "10" ]), $a([ "+", "+", "11" ]), $a([ ",", ",", "12" ]), $a([ "-", "-", "13" ]), $a([ ".", ".", "14" ]), $a([ "/", "/", "15" ]), $a([ "0", "0", "16" ]), $a([ "1", "1", "17" ]), $a([ "2", "2", "18" ]), $a([ "3", "3", "19" ]), $a([ "4", "4", "20" ]), $a([ "5", "5", "21" ]), $a([ "6", "6", "22" ]), $a([ "7", "7", "23" ]), $a([ "8", "8", "24" ]), $a([ "9", "9", "25" ]), $a([ ":", ":", "26" ]), $a([ ";", ";", "27" ]), $a([ "<", "<", "28" ]), $a([ "=", "=", "29" ]), $a([ ">", ">", "30" ]), $a([ "?", "?", "31" ]), $a([ "@", "@", "32" ]), $a([ "A", "A", "33" ]), $a([ "B", "B", "34" ]), $a([ "C", "C", "35" ]), $a([ "D", "D", "36" ]), $a([ "E", "E", "37" ]), $a([ "F", "F", "38" ]), $a([ "G", "G", "39" ]), $a([ "H", "H", "40" ]), $a([ "I", "I", "41" ]), $a([ "J", "J", "42" ]), $a([ "K", "K", "43" ]), $a([ "L", "L", "44" ]), $a([ "M", "M", "45" ]), $a([ "N", "N", "46" ]), $a([ "O", "O", "47" ]), $a([ "P", "P", "48" ]), $a([ "Q", "Q", "49" ]), $a([ "R", "R", "50" ]), $a([ "S", "S", "51" ]), $a([ "T", "T", "52" ]), $a([ "U", "U", "53" ]), $a([ "V", "V", "54" ]), $a([ "W", "W", "55" ]), $a([ "X", "X", "56" ]), $a([ "Y", "Y", "57" ]), $a([ "Z", "Z", "58" ]), $a([ "[", "[", "59" ]), $a([ 92, 92, "60" ]), $a([ "]", "]", "61" ]), $a([ "^", "^", "62" ]), $a([ "_", "_", "63" ]), $a([ 0, "`", "64" ]), $a([ 1, "a", "65" ]), $a([ 2, "b", "66" ]), $a([ 3, "c", "67" ]), $a([ 4, "d", "68" ]), $a([ 5, "e", "69" ]), $a([ 6, "f", "70" ]), $a([ 7, "g", "71" ]), $a([ 8, "h", "72" ]), $a([ 9, "i", "73" ]), $a([ 10, "j", "74" ]), $a([ 11, "k", "75" ]), $a([ 12, "l", "76" ]), $a([ 13, "m", "77" ]), $a([ 14, "n", "78" ]), $a([ 15, "o", "79" ]), $a([ 16, "p", "80" ]), $a([ 17, "q", "81" ]), $a([ 18, "r", "82" ]), $a([ 19, "s", "83" ]), $a([ 20, "t", "84" ]), $a([ 21, "u", "85" ]), $a([ 22, "v", "86" ]), $a([ 23, "w", "87" ]), $a([ 24, "x", "88" ]), $a([ 25, "y", "89" ]), $a([ 26, "z", "90" ]), $a([ 27, "{", "91" ]), $a([ 28, "|", "92" ]), $a([ 29, "}", "93" ]), $a([ 30, "~", "94" ]), $a([ 31, 127, "95" ]), $a([ $1.fn3, $1.fn3, "96" ]), $a([ $1.fn2, $1.fn2, "97" ]), $a([ $1.sft, $1.sft, "98" ]), $a([ $1.swc, $1.swc, "99" ]), $a([ $1.swb, $1.fn4, $1.swb ]), $a([ $1.fn4, $1.swa, $1.swa ]), $a([ $1.fn1, $1.fn1, $1.fn1 ]), $a([ $1.sta, $1.sta, $1.sta ]), $a([ $1.stb, $1.stb, $1.stb ]), $a([ $1.stc, $1.stc, $1.stc ]), $a([ $1.stp, $1.stp, $1.stp ]) ]); - $1.charvals = $a([ new Map(), new Map(), new Map() ]); - for (var _2e = 0, _2d = $1.charmaps.length - 1; _2e <= _2d; _2e += 1) { - $1.i = _2e; - $1.encs = $get($1.charmaps, $1.i); - for (var _2i = 0; _2i <= 2; _2i += 1) { - $1.j = _2i; - var _2l = $get($1.encs, $1.j); - $k[$j++] = _2l; - if ($eq($type(_2l), "stringtype")) { - var _2o = $get($k[--$j], 0); - $k[$j++] = _2o; - } - $put($get($1.charvals, $1.j), $k[--$j], $1.i); - } - } - $1.seta = $get($1.charvals, 0); - $1.setb = $get($1.charvals, 1); - $1.setc = $get($1.charvals, 2); - $put($1.seta, $1.lka, $get($1.seta, $1.swb)); - $put($1.seta, $1.lkc, $get($1.seta, $1.swc)); - $put($1.setb, $1.lka, $get($1.setb, $1.swc)); - $put($1.setb, $1.lkc, $get($1.setb, $1.swa)); - $put($1.setc, $1.lka, $get($1.setc, $1.swa)); - $put($1.setc, $1.lkc, $get($1.setc, $1.swb)); - if ($1.raw) { - $1.encoding = "raw"; - } - if ($eq($1.encoding, "raw")) { - $1.cws = $a($1.barcode.length); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.barcode.length) { - break; - } - $1.cw = ~~$z($geti($1.barcode, $1.i + 1, 3)); - $put($1.cws, $1.j, $1.cw); - $1.i = $1.i + 4; - $1.j = $1.j + 1; - } - $1.cws = $geti($1.cws, 0, $1.j); - $1.text = ""; - } - if ($eq($1.encoding, "auto")) { - $1.text = $s($1.msglen); - for (var _3q = 0, _3p = $1.msglen - 1; _3q <= _3p; _3q += 1) { - $1.i = _3q; - var _3v = $get($1.msg, $1.i); - $k[$j++] = $1.text; - $k[$j++] = $1.i; - $k[$j++] = _3v; - if (_3v < 0) { - $j--; - $k[$j++] = 32; - } - var _3w = $k[--$j]; - var _3x = $k[--$j]; - $put($k[--$j], _3x, _3w); - } - $k[$j++] = Infinity; - for (var _40 = 0, _41 = $1.msglen; _40 < _41; _40++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numSA = $a(); - $k[$j++] = Infinity; - for (var _44 = 0, _45 = $1.msglen; _44 < _45; _44++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numEA = $a(); - for (var _48 = $1.msglen - 1; _48 >= 0; _48 -= 1) { - $1.i = _48; - if ($get($1.msg, $1.i) >= 0) { - if ($get($1.msg, $1.i) >= 128) { - $put($1.numEA, $1.i, $f($get($1.numEA, $1.i + 1) + 1)); - } else { - $put($1.numSA, $1.i, $f($get($1.numSA, $1.i + 1) + 1)); - } - } - } - $1.ea = false; - $1.msgtmp = $a([]); - for (var _4S = 0, _4R = $1.msglen - 1; _4S <= _4R; _4S += 1) { - $1.i = _4S; - $1.c = $get($1.msg, $1.i); - if (!$xo($1.ea, $1.c < 128) && $1.c >= 0) { - if ($1.ea) { - $k[$j++] = $1.numSA; - } else { - $k[$j++] = $1.numEA; - } - var _4e = $get($k[--$j], $1.i); - var _4h = $f(_4e + $1.i) == $1.msglen ? 3 : 5; - if (_4e < _4h) { - $k[$j++] = Infinity; - $aload($1.msgtmp); - $k[$j++] = $1.fn4; - $1.msgtmp = $a(); - } else { - $k[$j++] = Infinity; - $aload($1.msgtmp); - $k[$j++] = $1.fn4; - $k[$j++] = $1.fn4; - $1.msgtmp = $a(); - $1.ea = !$1.ea; - } - } - $k[$j++] = Infinity; - $aload($1.msgtmp); - if ($1.c >= 0) { - $k[$j++] = $1.c & 127; - } else { - $k[$j++] = $1.c; - } - $1.msgtmp = $a(); - } - $1.msg = $1.msgtmp; - $1.msglen = $1.msg.length; + var $1 = {}; //#4542 + $1.options = $k[--$j]; //#4544 + $1.barcode = $k[--$j]; //#4545 + $1.dontdraw = false; //#4547 + $1.includetext = false; //#4548 + $1.textfont = "OCR-B"; //#4549 + $1.textsize = 10; //#4550 + $1.textxoffset = 0; //#4551 + $1.textyoffset = -8; //#4552 + $1.height = 1; //#4553 + $1.encoding = "auto"; //#4554 + $1.raw = false; //#4555 + $1.parse = false; //#4556 + $1.parsefnc = false; //#4557 + $forall($1.options, function() { //#4568 + var _3 = $k[--$j]; //#4568 + $1[$k[--$j]] = _3; //#4568 + }); //#4568 + $1.textfont = "" + $1.textfont; //#4570 + $1.textsize = +$1.textsize; //#4571 + $1.textxoffset = +$1.textxoffset; //#4572 + $1.textyoffset = +$1.textyoffset; //#4573 + $1.height = +$1.height; //#4574 + $1.sta = -1; //#4577 + $1.stb = -2; //#4577 + $1.stc = -3; //#4577 + $1.swa = -4; //#4578 + $1.swb = -5; //#4578 + $1.swc = -6; //#4578 + $1.fn1 = -7; //#4579 + $1.fn2 = -8; //#4579 + $1.fn3 = -9; //#4579 + $1.fn4 = -10; //#4580 + $1.sft = -11; //#4580 + $1.stp = -12; //#4580 + $1.lka = -13; //#4581 + $1.lkc = -14; //#4581 + var _I = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["FNC1", $1.fn1], + ["FNC1", $1.fn1], + ["FNC2", $1.fn2], + ["FNC3", $1.fn3], + ["LNKA", $1.lka], + ["LNKC", $1.lkc] + ]); //#4593 + $1.fncvals = _I; //#4594 + $k[$j++] = 'msg'; //#4595 + $k[$j++] = $1.barcode; //#4595 + $k[$j++] = $1.fncvals; //#4595 + $0.parseinput(); //#4595 + var _L = $k[--$j]; //#4595 + $1[$k[--$j]] = _L; //#4595 + $1.msglen = $1.msg.length; //#4596 + $1.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$1.fn3, $1.fn3, "96"]), $a([$1.fn2, $1.fn2, "97"]), $a([$1.sft, $1.sft, "98"]), $a([$1.swc, $1.swc, "99"]), $a([$1.swb, $1.fn4, $1.swb]), $a([$1.fn4, $1.swa, $1.swa]), $a([$1.fn1, $1.fn1, $1.fn1]), $a([$1.sta, $1.sta, $1.sta]), $a([$1.stb, $1.stb, $1.stb]), $a([$1.stc, $1.stc, $1.stc]), $a([$1.stp, $1.stp, $1.stp])]); //#4637 + $1.charvals = $a([new Map, new Map, new Map]); //#4640 + for (var _2e = 0, _2d = $1.charmaps.length - 1; _2e <= _2d; _2e += 1) { //#4649 + $1.i = _2e; //#4642 + $1.encs = $get($1.charmaps, $1.i); //#4643 + for (var _2i = 0; _2i <= 2; _2i += 1) { //#4648 + $1.j = _2i; //#4645 + var _2l = $get($1.encs, $1.j); //#4646 + $k[$j++] = _2l; //#4646 + if ($eq($type(_2l), 'stringtype')) { //#4646 + var _2o = $get($k[--$j], 0); //#4646 + $k[$j++] = _2o; //#4646 + } //#4646 + $put($get($1.charvals, $1.j), $k[--$j], $1.i); //#4647 + } //#4647 + } //#4647 + $1.seta = $get($1.charvals, 0); //#4650 + $1.setb = $get($1.charvals, 1); //#4651 + $1.setc = $get($1.charvals, 2); //#4652 + $put($1.seta, $1.lka, $get($1.seta, $1.swb)); //#4655 + $put($1.seta, $1.lkc, $get($1.seta, $1.swc)); //#4655 + $put($1.setb, $1.lka, $get($1.setb, $1.swc)); //#4656 + $put($1.setb, $1.lkc, $get($1.setb, $1.swa)); //#4656 + $put($1.setc, $1.lka, $get($1.setc, $1.swa)); //#4657 + $put($1.setc, $1.lkc, $get($1.setc, $1.swb)); //#4657 + if ($1.raw) { //#4659 + $1.encoding = "raw"; //#4659 + } //#4659 + if ($eq($1.encoding, "raw")) { //#4673 + $1.cws = $a($1.barcode.length); //#4662 + $1.i = 0; //#4663 + $1.j = 0; //#4663 + for (;;) { //#4670 + if ($1.i == $1.barcode.length) { //#4665 + break; //#4665 + } //#4665 + $1.cw = ~~$z($geti($1.barcode, $1.i + 1, 3)); //#4666 + $put($1.cws, $1.j, $1.cw); //#4667 + $1.i = $1.i + 4; //#4668 + $1.j = $1.j + 1; //#4669 + } //#4669 + $1.cws = $geti($1.cws, 0, $1.j); //#4671 + $1.text = ""; //#4672 + } //#4672 + if ($eq($1.encoding, "auto")) { //#4898 + $1.text = $s($1.msglen); //#4677 + for (var _3q = 0, _3p = $1.msglen - 1; _3q <= _3p; _3q += 1) { //#4681 + $1.i = _3q; //#4679 + var _3v = $get($1.msg, $1.i); //#4680 + $k[$j++] = $1.text; //#4680 + $k[$j++] = $1.i; //#4680 + $k[$j++] = _3v; //#4680 + if (_3v < 0) { //#4680 + $j--; //#4680 + $k[$j++] = 32; //#4680 + } //#4680 + var _3w = $k[--$j]; //#4680 + var _3x = $k[--$j]; //#4680 + $put($k[--$j], _3x, _3w); //#4680 + } //#4680 + $k[$j++] = Infinity; //#4684 + for (var _40 = 0, _41 = $1.msglen; _40 < _41; _40++) { //#4684 + $k[$j++] = 0; //#4684 + } //#4684 + $k[$j++] = 0; //#4684 + $1.numSA = $a(); //#4684 + $k[$j++] = Infinity; //#4685 + for (var _44 = 0, _45 = $1.msglen; _44 < _45; _44++) { //#4685 + $k[$j++] = 0; //#4685 + } //#4685 + $k[$j++] = 0; //#4685 + $1.numEA = $a(); //#4685 + for (var _48 = $1.msglen - 1; _48 >= 0; _48 -= 1) { //#4695 + $1.i = _48; //#4687 + if ($get($1.msg, $1.i) >= 0) { //#4694 + if ($get($1.msg, $1.i) >= 128) { //#4692 + $put($1.numEA, $1.i, $f($get($1.numEA, $1.i + 1) + 1)); //#4690 + } else { //#4692 + $put($1.numSA, $1.i, $f($get($1.numSA, $1.i + 1) + 1)); //#4692 + } //#4692 + } //#4692 + } //#4692 + $1.ea = false; //#4698 + $1.msgtmp = $a([]); //#4698 + for (var _4S = 0, _4R = $1.msglen - 1; _4S <= _4R; _4S += 1) { //#4713 + $1.i = _4S; //#4700 + $1.c = $get($1.msg, $1.i); //#4701 + if ((!$xo($1.ea, $1.c < 128)) && ($1.c >= 0)) { //#4711 + if ($1.ea) { //#4703 + $k[$j++] = $1.numSA; //#4703 + } else { //#4703 + $k[$j++] = $1.numEA; //#4703 + } //#4703 + var _4e = $get($k[--$j], $1.i); //#4703 + var _4h = ($f(_4e + $1.i) == $1.msglen) ? 3 : 5; //#4704 + if (_4e < _4h) { //#4709 + $k[$j++] = Infinity; //#4706 + $aload($1.msgtmp); //#4706 + $k[$j++] = $1.fn4; //#4706 + $1.msgtmp = $a(); //#4706 + } else { //#4709 + $k[$j++] = Infinity; //#4708 + $aload($1.msgtmp); //#4708 + $k[$j++] = $1.fn4; //#4708 + $k[$j++] = $1.fn4; //#4708 + $1.msgtmp = $a(); //#4708 + $1.ea = !$1.ea; //#4709 + } //#4709 + } //#4709 + $k[$j++] = Infinity; //#4712 + $aload($1.msgtmp); //#4712 + if ($1.c >= 0) { //#4712 + $k[$j++] = $1.c & 127; //#4712 + } else { //#4712 + $k[$j++] = $1.c; //#4712 + } //#4712 + $1.msgtmp = $a(); //#4712 + } //#4712 + $1.msg = $1.msgtmp; //#4714 + $1.msglen = $1.msg.length; //#4715 $1.numsscr = function() { - $1.n = 0; - $1.s = 0; - $1.p = $k[--$j]; - for (;;) { - if ($1.p >= $1.msglen) { - break; - } - var _52 = $get($1.msg, $1.p); - var _54 = $get($1.setc, _52) !== undefined; - $k[$j++] = _52; - if (!_54) { - $j--; - break; - } - var _55 = $k[--$j]; - $k[$j++] = _55; - if (_55 <= -1) { - var _57 = $k[--$j]; - if (_57 == $1.fn1 && $1.s % 2 == 0) { - $1.s = $1.s + 1; - } else { - break; - } - } else { - $j--; - } - $1.n = $1.n + 1; - $1.s = $1.s + 1; - $1.p = $f($1.p + 1); - } - $k[$j++] = $1.n; - $k[$j++] = $1.s; - }; + $1.n = 0; //#4719 + $1.s = 0; //#4719 + $1.p = $k[--$j]; //#4720 + for (;;) { //#4733 + if ($1.p >= $1.msglen) { //#4721 + break; //#4721 + } //#4721 + var _52 = $get($1.msg, $1.p); //#4722 + var _54 = $get($1.setc, _52) !== undefined; //#4723 + $k[$j++] = _52; //#4723 + if (!_54) { //#4723 + $j--; //#4723 + break; //#4723 + } //#4723 + var _55 = $k[--$j]; //#4724 + $k[$j++] = _55; //#4729 + if (_55 <= -1) { //#4728 + var _57 = $k[--$j]; //#4726 + if ((_57 == $1.fn1) && (($1.s % 2) == 0)) { //#4726 + $1.s = $1.s + 1; //#4726 + } else { //#4726 + break; //#4726 + } //#4726 + } else { //#4728 + $j--; //#4728 + } //#4728 + $1.n = $1.n + 1; //#4730 + $1.s = $1.s + 1; //#4731 + $1.p = $f($1.p + 1); //#4732 + } //#4732 + $k[$j++] = $1.n; //#4734 + $k[$j++] = $1.s; //#4734 + }; //#4735 $1.enca = function() { - $put($1.cws, $1.j, $get($1.seta, $k[--$j])); - $1.j = $1.j + 1; - }; + $put($1.cws, $1.j, $get($1.seta, $k[--$j])); //#4739 + $1.j = $1.j + 1; //#4740 + }; //#4741 $1.encb = function() { - $put($1.cws, $1.j, $get($1.setb, $k[--$j])); - $1.j = $1.j + 1; - }; + $put($1.cws, $1.j, $get($1.setb, $k[--$j])); //#4743 + $1.j = $1.j + 1; //#4744 + }; //#4745 $1.encc = function() { - var _5R = $k[--$j]; - $k[$j++] = _5R; - if ($ne($type(_5R), "arraytype")) { - var _5V = $get($1.setc, $k[--$j]); - $k[$j++] = _5V; - } else { - $aload($k[--$j]); - var _5X = $k[--$j]; - var _5Y = $k[--$j]; - $k[$j++] = $f($f(_5X - 48) + $f(_5Y - 48) * 10); - } - $put($1.cws, $1.j, $k[--$j]); - $1.j = $1.j + 1; - }; + var _5R = $k[--$j]; //#4747 + $k[$j++] = _5R; //#4751 + if ($ne($type(_5R), 'arraytype')) { //#4750 + var _5V = $get($1.setc, $k[--$j]); //#4748 + $k[$j++] = _5V; //#4748 + } else { //#4750 + $aload($k[--$j]); //#4750 + var _5X = $k[--$j]; //#4750 + var _5Y = $k[--$j]; //#4750 + $k[$j++] = $f($f(_5X - 48) + ($f(_5Y - 48) * 10)); //#4750 + } //#4750 + $put($1.cws, $1.j, $k[--$j]); //#4752 + $1.j = $1.j + 1; //#4753 + }; //#4754 $1.anotb = function() { - var _5d = $k[--$j]; - var _5f = $get($1.seta, _5d) !== undefined; - var _5h = $get($1.setb, _5d) !== undefined; - $k[$j++] = _5f && !_5h; - }; + var _5d = $k[--$j]; //#4757 + var _5f = $get($1.seta, _5d) !== undefined; //#4757 + var _5h = $get($1.setb, _5d) !== undefined; //#4757 + $k[$j++] = _5f && (!_5h); //#4757 + }; //#4757 $1.bnota = function() { - var _5i = $k[--$j]; - var _5k = $get($1.setb, _5i) !== undefined; - var _5m = $get($1.seta, _5i) !== undefined; - $k[$j++] = _5k && !_5m; - }; - $k[$j++] = Infinity; - for (var _5o = 0, _5p = $1.msg.length; _5o < _5p; _5o++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextanotb = $a(); - $k[$j++] = Infinity; - for (var _5s = 0, _5t = $1.msg.length; _5s < _5t; _5s++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextbnota = $a(); - for (var _5w = $1.msg.length - 1; _5w >= 0; _5w -= 1) { - $1.i = _5w; - $k[$j++] = $get($1.msg, $1.i); - $1.anotb(); - if ($k[--$j]) { - $put($1.nextanotb, $1.i, 0); - } else { - $put($1.nextanotb, $1.i, $f($get($1.nextanotb, $1.i + 1) + 1)); - } - $k[$j++] = $get($1.msg, $1.i); - $1.bnota(); - if ($k[--$j]) { - $put($1.nextbnota, $1.i, 0); - } else { - $put($1.nextbnota, $1.i, $f($get($1.nextbnota, $1.i + 1) + 1)); - } - } + var _5i = $k[--$j]; //#4758 + var _5k = $get($1.setb, _5i) !== undefined; //#4758 + var _5m = $get($1.seta, _5i) !== undefined; //#4758 + $k[$j++] = _5k && (!_5m); //#4758 + }; //#4758 + $k[$j++] = Infinity; //#4761 + for (var _5o = 0, _5p = $1.msg.length; _5o < _5p; _5o++) { //#4761 + $k[$j++] = 0; //#4761 + } //#4761 + $k[$j++] = 9999; //#4761 + $1.nextanotb = $a(); //#4761 + $k[$j++] = Infinity; //#4762 + for (var _5s = 0, _5t = $1.msg.length; _5s < _5t; _5s++) { //#4762 + $k[$j++] = 0; //#4762 + } //#4762 + $k[$j++] = 9999; //#4762 + $1.nextbnota = $a(); //#4762 + for (var _5w = $1.msg.length - 1; _5w >= 0; _5w -= 1) { //#4775 + $1.i = _5w; //#4764 + $k[$j++] = $get($1.msg, $1.i); //#4765 + $1.anotb(); //#4765 + if ($k[--$j]) { //#4768 + $put($1.nextanotb, $1.i, 0); //#4766 + } else { //#4768 + $put($1.nextanotb, $1.i, $f($get($1.nextanotb, $1.i + 1) + 1)); //#4768 + } //#4768 + $k[$j++] = $get($1.msg, $1.i); //#4770 + $1.bnota(); //#4770 + if ($k[--$j]) { //#4773 + $put($1.nextbnota, $1.i, 0); //#4771 + } else { //#4773 + $put($1.nextbnota, $1.i, $f($get($1.nextbnota, $1.i + 1) + 1)); //#4773 + } //#4773 + } //#4773 $1.abeforeb = function() { - var _6J = $k[--$j]; - $k[$j++] = $lt($get($1.nextanotb, _6J), $get($1.nextbnota, _6J)); - }; + var _6J = $k[--$j]; //#4778 + $k[$j++] = $lt($get($1.nextanotb, _6J), $get($1.nextbnota, _6J)); //#4778 + }; //#4778 $1.bbeforea = function() { - var _6O = $k[--$j]; - $k[$j++] = $lt($get($1.nextbnota, _6O), $get($1.nextanotb, _6O)); - }; - $1.cws = $a($1.barcode.length * 2 + 3); - $1.j = 0; - if ($1.msglen > 0) { - $k[$j++] = 0; - $1.numsscr(); - } else { - $k[$j++] = -1; - $k[$j++] = -1; - } - $1.nums = $k[--$j]; - $1.nchars = $k[--$j]; - for (;;) { - if ($1.msglen == 0) { - $k[$j++] = $1.stb; - $1.enca(); - $1.cset = "setb"; - break; - } - if ($1.msglen == 2 && $1.nums == 2) { - $k[$j++] = $1.stc; - $1.enca(); - $1.cset = "setc"; - break; - } - if ($1.nums >= 4) { - $k[$j++] = $1.stc; - $1.enca(); - $1.cset = "setc"; - break; - } - $k[$j++] = 0; - $1.abeforeb(); - if ($k[--$j]) { - $k[$j++] = $1.sta; - $1.enca(); - $1.cset = "seta"; - break; - } - $k[$j++] = $1.stb; - $1.enca(); - $1.cset = "setb"; - break; - } - $1.i = 0; - for (;;) { - if ($1.i == $1.msglen) { - break; - } - $k[$j++] = $1.i; - $1.numsscr(); - $1.nums = $k[--$j]; - $1.nchars = $k[--$j]; - for (;;) { - if (($eq($1.cset, "seta") || $eq($1.cset, "setb")) && $1.nums >= 4 && $get($1.msg, $1.i) != $1.fn1) { - if ($1.nums % 2 == 0) { - $k[$j++] = $1.swc; - if ($eq($1.cset, "seta")) { - $1.enca(); - } else { - $1.encb(); - } - $1.cset = "setc"; - break; - } else { - $k[$j++] = $get($1.msg, $1.i); - if ($eq($1.cset, "seta")) { - $1.enca(); - } else { - $1.encb(); - } - $1.i = $1.i + 1; - $k[$j++] = $1.swc; - if ($eq($1.cset, "seta")) { - $1.enca(); - } else { - $1.encb(); - } - $1.cset = "setc"; - break; - } - } - $k[$j++] = $eq($1.cset, "setb"); - $k[$j++] = $get($1.msg, $1.i); - $1.anotb(); - var _78 = $k[--$j]; - var _79 = $k[--$j]; - if (_79 && _78) { - if ($1.i < $1.msglen - 1) { - $k[$j++] = $1.i + 1; - $1.bbeforea(); - if ($k[--$j]) { - $k[$j++] = $1.sft; - $1.encb(); - $k[$j++] = $get($1.msg, $1.i); - $1.enca(); - $1.i = $1.i + 1; - break; - } - } - $k[$j++] = $1.swa; - $1.encb(); - $1.cset = "seta"; - break; - } - $k[$j++] = $eq($1.cset, "seta"); - $k[$j++] = $get($1.msg, $1.i); - $1.bnota(); - var _7O = $k[--$j]; - var _7P = $k[--$j]; - if (_7P && _7O) { - if ($1.i < $1.msglen - 1) { - $k[$j++] = $1.i + 1; - $1.abeforeb(); - if ($k[--$j]) { - $k[$j++] = $1.sft; - $1.enca(); - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $1.i = $1.i + 1; - break; - } - } - $k[$j++] = $1.swb; - $1.enca(); - $1.cset = "setb"; - break; - } - if ($eq($1.cset, "setc") && $1.nums < 2 && $get($1.msg, $1.i) > -1) { - $k[$j++] = $1.i; - $1.abeforeb(); - if ($k[--$j]) { - $k[$j++] = $1.swa; - $1.encc(); - $1.cset = "seta"; - break; - } - $k[$j++] = $1.swb; - $1.encc(); - $1.cset = "setb"; - break; - } - if ($eq($1.cset, "seta")) { - $k[$j++] = $get($1.msg, $1.i); - $1.enca(); - $1.i = $1.i + 1; - break; - } - if ($eq($1.cset, "setb")) { - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $1.i = $1.i + 1; - break; - } - if ($eq($1.cset, "setc")) { - if ($get($1.msg, $1.i) <= -1) { - $k[$j++] = $get($1.msg, $1.i); - $1.encc(); - $1.i = $1.i + 1; - } else { - $k[$j++] = $geti($1.msg, $1.i, 2); - $1.encc(); - $1.i = $1.i + 2; - } - break; - } - break; - } - } - $1.cws = $geti($1.cws, 0, $1.j); - } - var _89 = $a($1.j + 2); - $puti(_89, 0, $1.cws); - $1.cws = _89; - $1.csum = $get($1.cws, 0); - for (var _8F = 1, _8E = $1.j - 1; _8F <= _8E; _8F += 1) { - $1.i = _8F; - $1.csum = $f($1.csum + $get($1.cws, $1.i) * $1.i); - } - $1.csum = $1.csum % 103; - $put($1.cws, $1.j, $1.csum); - $put($1.cws, $1.j + 1, $get($1.seta, $1.stp)); - $1.encs = $a([ "212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "211214", "211232", "2331112" ]); - $1.sbs = $s($1.cws.length * 6 + 1); - for (var _8Z = 0, _8Y = $1.cws.length - 1; _8Z <= _8Y; _8Z += 1) { - $1.i = _8Z; - $puti($1.sbs, $1.i * 6, $get($1.encs, $get($1.cws, $1.i))); - } - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _8h = $1.sbs; - for (var _8i = 0, _8j = _8h.length; _8i < _8j; _8i++) { - $k[$j++] = $get(_8h, _8i) - 48; - } - var _8l = $a(); - $k[$j++] = Infinity; - for (var _8n = 0, _8o = ~~(($1.sbs.length + 1) / 2); _8n < _8o; _8n++) { - $k[$j++] = $1.height; - } - var _8q = $a(); - $k[$j++] = Infinity; - for (var _8s = 0, _8t = ~~(($1.sbs.length + 1) / 2); _8s < _8t; _8s++) { - $k[$j++] = 0; - } - var _8u = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _8l; - $k[$j++] = "bhs"; - $k[$j++] = _8q; - $k[$j++] = "bbs"; - $k[$j++] = _8u; - $k[$j++] = "txt"; - $k[$j++] = $a([ $a([ $1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ]) ]); - $k[$j++] = "textxalign"; - $k[$j++] = "center"; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _93 = $d(); - $k[$j++] = _93; - if (!$1.dontdraw) { - $0.renlinear(); - } + var _6O = $k[--$j]; //#4779 + $k[$j++] = $lt($get($1.nextbnota, _6O), $get($1.nextanotb, _6O)); //#4779 + }; //#4779 + $1.cws = $a(($1.barcode.length * 2) + 3); //#4781 + $1.j = 0; //#4784 + if ($1.msglen > 0) { //#4785 + $k[$j++] = 0; //#4785 + $1.numsscr(); //#4785 + } else { //#4785 + $k[$j++] = -1; //#4785 + $k[$j++] = -1; //#4785 + } //#4785 + $1.nums = $k[--$j]; //#4785 + $1.nchars = $k[--$j]; //#4785 + for (;;) { //#4810 + if ($1.msglen == 0) { //#4791 + $k[$j++] = $1.stb; //#4788 + $1.enca(); //#4788 + $1.cset = "setb"; //#4789 + break; //#4790 + } //#4790 + if (($1.msglen == 2) && ($1.nums == 2)) { //#4796 + $k[$j++] = $1.stc; //#4793 + $1.enca(); //#4793 + $1.cset = "setc"; //#4794 + break; //#4795 + } //#4795 + if ($1.nums >= 4) { //#4801 + $k[$j++] = $1.stc; //#4798 + $1.enca(); //#4798 + $1.cset = "setc"; //#4799 + break; //#4800 + } //#4800 + $k[$j++] = 0; //#4802 + $1.abeforeb(); //#4802 + if ($k[--$j]) { //#4806 + $k[$j++] = $1.sta; //#4803 + $1.enca(); //#4803 + $1.cset = "seta"; //#4804 + break; //#4805 + } //#4805 + $k[$j++] = $1.stb; //#4807 + $1.enca(); //#4807 + $1.cset = "setb"; //#4808 + break; //#4809 + } //#4809 + $1.i = 0; //#4813 + for (;;) { //#4896 + if ($1.i == $1.msglen) { //#4814 + break; //#4814 + } //#4814 + $k[$j++] = $1.i; //#4816 + $1.numsscr(); //#4816 + $1.nums = $k[--$j]; //#4816 + $1.nchars = $k[--$j]; //#4816 + for (;;) { //#4894 + if ((($eq($1.cset, "seta") || $eq($1.cset, "setb")) && ($1.nums >= 4)) && ($get($1.msg, $1.i) != $1.fn1)) { //#4833 + if (($1.nums % 2) == 0) { //#4831 + $k[$j++] = $1.swc; //#4823 + if ($eq($1.cset, "seta")) { //#4823 + $1.enca(); //#4823 + } else { //#4823 + $1.encb(); //#4823 + } //#4823 + $1.cset = "setc"; //#4824 + break; //#4825 + } else { //#4831 + $k[$j++] = $get($1.msg, $1.i); //#4827 + if ($eq($1.cset, "seta")) { //#4827 + $1.enca(); //#4827 + } else { //#4827 + $1.encb(); //#4827 + } //#4827 + $1.i = $1.i + 1; //#4828 + $k[$j++] = $1.swc; //#4829 + if ($eq($1.cset, "seta")) { //#4829 + $1.enca(); //#4829 + } else { //#4829 + $1.encb(); //#4829 + } //#4829 + $1.cset = "setc"; //#4830 + break; //#4831 + } //#4831 + } //#4831 + $k[$j++] = $eq($1.cset, "setb"); //#4834 + $k[$j++] = $get($1.msg, $1.i); //#4834 + $1.anotb(); //#4834 + var _78 = $k[--$j]; //#4834 + var _79 = $k[--$j]; //#4834 + if ((_79 && _78)) { //#4846 + if ($1.i < ($1.msglen - 1)) { //#4842 + $k[$j++] = $1.i + 1; //#4836 + $1.bbeforea(); //#4836 + if ($k[--$j]) { //#4841 + $k[$j++] = $1.sft; //#4837 + $1.encb(); //#4837 + $k[$j++] = $get($1.msg, $1.i); //#4838 + $1.enca(); //#4838 + $1.i = $1.i + 1; //#4839 + break; //#4840 + } //#4840 + } //#4840 + $k[$j++] = $1.swa; //#4843 + $1.encb(); //#4843 + $1.cset = "seta"; //#4844 + break; //#4845 + } //#4845 + $k[$j++] = $eq($1.cset, "seta"); //#4847 + $k[$j++] = $get($1.msg, $1.i); //#4847 + $1.bnota(); //#4847 + var _7O = $k[--$j]; //#4847 + var _7P = $k[--$j]; //#4847 + if ((_7P && _7O)) { //#4859 + if ($1.i < ($1.msglen - 1)) { //#4855 + $k[$j++] = $1.i + 1; //#4849 + $1.abeforeb(); //#4849 + if ($k[--$j]) { //#4854 + $k[$j++] = $1.sft; //#4850 + $1.enca(); //#4850 + $k[$j++] = $get($1.msg, $1.i); //#4851 + $1.encb(); //#4851 + $1.i = $1.i + 1; //#4852 + break; //#4853 + } //#4853 + } //#4853 + $k[$j++] = $1.swb; //#4856 + $1.enca(); //#4856 + $1.cset = "setb"; //#4857 + break; //#4858 + } //#4858 + if (($eq($1.cset, "setc") && ($1.nums < 2)) && ($get($1.msg, $1.i) > -1)) { //#4869 + $k[$j++] = $1.i; //#4861 + $1.abeforeb(); //#4861 + if ($k[--$j]) { //#4865 + $k[$j++] = $1.swa; //#4862 + $1.encc(); //#4862 + $1.cset = "seta"; //#4863 + break; //#4864 + } //#4864 + $k[$j++] = $1.swb; //#4866 + $1.encc(); //#4866 + $1.cset = "setb"; //#4867 + break; //#4868 + } //#4868 + if ($eq($1.cset, "seta")) { //#4876 + $k[$j++] = $get($1.msg, $1.i); //#4873 + $1.enca(); //#4873 + $1.i = $1.i + 1; //#4874 + break; //#4875 + } //#4875 + if ($eq($1.cset, "setb")) { //#4881 + $k[$j++] = $get($1.msg, $1.i); //#4878 + $1.encb(); //#4878 + $1.i = $1.i + 1; //#4879 + break; //#4880 + } //#4880 + if ($eq($1.cset, "setc")) { //#4891 + if ($get($1.msg, $1.i) <= -1) { //#4888 + $k[$j++] = $get($1.msg, $1.i); //#4884 + $1.encc(); //#4884 + $1.i = $1.i + 1; //#4885 + } else { //#4888 + $k[$j++] = $geti($1.msg, $1.i, 2); //#4887 + $1.encc(); //#4887 + $1.i = $1.i + 2; //#4888 + } //#4888 + break; //#4890 + } //#4890 + break; //#4893 + } //#4893 + } //#4893 + $1.cws = $geti($1.cws, 0, $1.j); //#4897 + } //#4897 + var _89 = $a($1.j + 2); //#4901 + $puti(_89, 0, $1.cws); //#4901 + $1.cws = _89; //#4901 + $1.csum = $get($1.cws, 0); //#4902 + for (var _8F = 1, _8E = $1.j - 1; _8F <= _8E; _8F += 1) { //#4906 + $1.i = _8F; //#4904 + $1.csum = $f($1.csum + ($get($1.cws, $1.i) * $1.i)); //#4905 + } //#4905 + $1.csum = $1.csum % 103; //#4907 + $put($1.cws, $1.j, $1.csum); //#4908 + $put($1.cws, $1.j + 1, $get($1.seta, $1.stp)); //#4909 + $1.encs = $a(["212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "211214", "211232", "2331112"]); //#4929 + $1.sbs = $s(($1.cws.length * 6) + 1); //#4932 + for (var _8Z = 0, _8Y = $1.cws.length - 1; _8Z <= _8Y; _8Z += 1) { //#4936 + $1.i = _8Z; //#4934 + $puti($1.sbs, $1.i * 6, $get($1.encs, $get($1.cws, $1.i))); //#4935 + } //#4935 + $k[$j++] = Infinity; //#4946 + $k[$j++] = Infinity; //#4941 + var _8h = $1.sbs; //#4941 + for (var _8i = 0, _8j = _8h.length; _8i < _8j; _8i++) { //#4941 + $k[$j++] = $get(_8h, _8i) - 48; //#4941 + } //#4941 + var _8l = $a(); //#4941 + $k[$j++] = Infinity; //#4942 + for (var _8n = 0, _8o = ~~(($1.sbs.length + 1) / 2); _8n < _8o; _8n++) { //#4942 + $k[$j++] = $1.height; //#4942 + } //#4942 + var _8q = $a(); //#4942 + $k[$j++] = Infinity; //#4943 + for (var _8s = 0, _8t = ~~(($1.sbs.length + 1) / 2); _8s < _8t; _8s++) { //#4943 + $k[$j++] = 0; //#4943 + } //#4943 + var _8u = $a(); //#4943 + $k[$j++] = 'ren'; //#4946 + $k[$j++] = $0.renlinear; //#4946 + $k[$j++] = 'sbs'; //#4946 + $k[$j++] = _8l; //#4946 + $k[$j++] = 'bhs'; //#4946 + $k[$j++] = _8q; //#4946 + $k[$j++] = 'bbs'; //#4946 + $k[$j++] = _8u; //#4946 + $k[$j++] = 'txt'; //#4946 + $k[$j++] = $a([$a([$1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])]); //#4946 + $k[$j++] = 'textxalign'; //#4946 + $k[$j++] = "center"; //#4946 + $k[$j++] = 'opt'; //#4946 + $k[$j++] = $1.options; //#4946 + var _93 = $d(); //#4946 + $k[$j++] = _93; //#4949 + if (!$1.dontdraw) { //#4949 + $0.renlinear(); //#4949 + } //#4949 }; - $0["gs1-128"] = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = .5; - $1.linkagea = false; - $1.linkagec = false; - $1.parse = false; - $1.dontlint = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.text = $1.barcode; + $0['gs1-128'] = function() { + var $1 = {}; //#4981 + $1.options = $k[--$j]; //#4983 + $1.barcode = $k[--$j]; //#4984 + $1.dontdraw = false; //#4986 + $1.includetext = false; //#4987 + $1.textfont = "OCR-B"; //#4988 + $1.textsize = 10; //#4989 + $1.textxoffset = 0; //#4990 + $1.textyoffset = -8; //#4991 + $1.height = 0.5; //#4992 + $1.linkagea = false; //#4993 + $1.linkagec = false; //#4994 + $1.parse = false; //#4995 + $1.dontlint = false; //#4996 + $forall($1.options, function() { //#5007 + var _3 = $k[--$j]; //#5007 + $1[$k[--$j]] = _3; //#5007 + }); //#5007 + $1.textfont = "" + $1.textfont; //#5009 + $1.textsize = +$1.textsize; //#5010 + $1.textxoffset = +$1.textxoffset; //#5011 + $1.textyoffset = +$1.textyoffset; //#5012 + $1.height = +$1.height; //#5013 + $1.text = $1.barcode; //#5015 $1.expand = function() { - var _C = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _C; - $k[$j++] = $1.fncvals; - $0.parseinput(); - }; - $1.ais = $a([]); - $1.vals = $a([]); - var _G = $1.barcode; - $k[$j++] = $geti(_G, 1, _G.length - 1); - for (;;) { - var _I = $k[--$j]; - $k[$j++] = _I; - if ($eq(_I, "")) { - break; - } - $search($k[--$j], ")"); - $j--; - var _K = $k[--$j]; - var _L = $k[--$j]; - $k[$j++] = _K; - $k[$j++] = _L; - $j--; - var _M = $k[--$j]; - var _N = $k[--$j]; - $k[$j++] = _M; - $search(_N, "("); - if ($k[--$j]) { - var _P = $k[--$j]; - var _Q = $k[--$j]; - $k[$j++] = _P; - $k[$j++] = _Q; - $j--; - var _R = $k[--$j]; - var _S = $k[--$j]; - var _T = $k[--$j]; - $k[$j++] = _S; - $k[$j++] = _T; - $k[$j++] = _R; - } else { - var _U = $k[--$j]; - var _V = $k[--$j]; - $k[$j++] = ""; - $k[$j++] = _V; - $k[$j++] = _U; - } - $k[$j++] = Infinity; - $aload($1.ais); - var _Y = $k[$j - 1 - ($counttomark() + 2)]; - $k[$j++] = _Y; - $1.ais = $a(); - $k[$j++] = Infinity; - $aload($1.vals); - var _c = $k[$j - 1 - ($counttomark() + 1)]; - $k[$j++] = _c; - $1.expand(); - $1.vals = $a(); - $j -= 2; - } - $j--; - if (!$1.dontlint) { - $k[$j++] = $1.ais; - $k[$j++] = $1.vals; - $0.gs1lint(); - $j--; - } - $1.aifixed = new Map(); - $k[$j++] = Infinity; - for (var _h = 0; _h <= 4; _h += 1) { - $k[$j++] = _h; - } - var _i = $a(); - for (var _j = 0, _k = _i.length; _j < _k; _j++) { - var _n = $strcpy($s(2), "00"); - $put(_n, 1, $f($get(_i, _j) + 48)); - $put($1.aifixed, _n, _n); - } - $k[$j++] = Infinity; - for (var _p = 11; _p <= 20; _p += 1) { - $k[$j++] = _p; - } - $k[$j++] = 23; - for (var _q = 31; _q <= 36; _q += 1) { - $k[$j++] = _q; - } - $k[$j++] = 41; - var _r = $a(); - for (var _s = 0, _t = _r.length; _s < _t; _s++) { - var _w = $cvrs($s(2), $get(_r, _s), 10); - $put($1.aifixed, _w, _w); - } - $1.fnc1 = -1; - $1.c128 = $a([ $1.fnc1 ]); - for (var _12 = 0, _11 = $1.ais.length - 1; _12 <= _11; _12 += 1) { - $1.i = _12; - $1.ai = $get($1.ais, $1.i); - $1.val = $get($1.vals, $1.i); - var _1C = $a($1.c128.length + $1.ai.length + $1.val.length); - $puti(_1C, 0, $1.c128); - $k[$j++] = _1C; - $k[$j++] = _1C; - $k[$j++] = $1.c128.length; - $k[$j++] = Infinity; - var _1H = $1.ai; - $forall(_1H); - var _1I = $a(); - var _1J = $k[--$j]; - $puti($k[--$j], _1J, _1I); - var _1L = $k[--$j]; - $k[$j++] = _1L; - $k[$j++] = _1L; - $k[$j++] = $1.c128.length + $1.ai.length; - $k[$j++] = Infinity; - var _1Q = $1.val; - $forall(_1Q); - var _1R = $a(); - var _1S = $k[--$j]; - $puti($k[--$j], _1S, _1R); - $1.c128 = $k[--$j]; - var _1a = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; - if ($1.i != $1.ais.length - 1 && !_1a) { - var _1c = $a($1.c128.length + 1); - $puti(_1c, 0, $1.c128); - $put(_1c, $1.c128.length, $1.fnc1); - $1.c128 = _1c; - } - } - $1.barcode = $s(($1.c128.length + 1) * 5); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.c128.length) { - break; - } - var _1m = $get($1.c128, $1.i); - $k[$j++] = _1m; - if (_1m == $1.fnc1) { - $j--; - $puti($1.barcode, $1.j, "^FNC1"); - $1.j = $1.j + 4; - } else { - $put($1.barcode, $1.j, $k[--$j]); - } - $1.i = $1.i + 1; - $1.j = $1.j + 1; - } - if ($1.linkagea || $1.linkagec) { - $k[$j++] = $1.barcode; - $k[$j++] = $1.j; - if ($1.linkagea) { - $k[$j++] = "^LNKA"; - } else { - $k[$j++] = "^LNKC"; - } - var _21 = $k[--$j]; - var _22 = $k[--$j]; - $puti($k[--$j], _22, _21); - $1.j = $1.j + 5; - } - $1.barcode = $geti($1.barcode, 0, $1.j); - delete $1.options["parse"]; - $put($1.options, "height", $1.height); - $put($1.options, "dontdraw", true); - $put($1.options, "parsefnc", true); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.code128(); - var _2F = $k[--$j]; - $1[$k[--$j]] = _2F; - $put($1.args, "txt", $a([ $a([ $1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ]) ])); - $put($1.args, "textxalign", "center"); - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var _C = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#5022 + $1.fncvals = _C; //#5023 + $k[$j++] = $1.fncvals; //#5024 + $0.parseinput(); //#5024 + }; //#5025 + $1.ais = $a([]); //#5028 + $1.vals = $a([]); //#5029 + var _G = $1.barcode; //#5030 + $k[$j++] = $geti(_G, 1, _G.length - 1); //#5043 + for (;;) { //#5043 + var _I = $k[--$j]; //#5032 + $k[$j++] = _I; //#5032 + if ($eq(_I, "")) { //#5032 + break; //#5032 + } //#5032 + $search($k[--$j], ")"); //#5033 + $j--; //#5033 + var _K = $k[--$j]; //#5034 + var _L = $k[--$j]; //#5034 + $k[$j++] = _K; //#5034 + $k[$j++] = _L; //#5034 + $j--; //#5034 + var _M = $k[--$j]; //#5035 + var _N = $k[--$j]; //#5035 + $k[$j++] = _M; //#5035 + $search(_N, "("); //#5035 + if ($k[--$j]) { //#5038 + var _P = $k[--$j]; //#5036 + var _Q = $k[--$j]; //#5036 + $k[$j++] = _P; //#5036 + $k[$j++] = _Q; //#5036 + $j--; //#5036 + var _R = $k[--$j]; //#5036 + var _S = $k[--$j]; //#5036 + var _T = $k[--$j]; //#5036 + $k[$j++] = _S; //#5036 + $k[$j++] = _T; //#5036 + $k[$j++] = _R; //#5036 + } else { //#5038 + var _U = $k[--$j]; //#5038 + var _V = $k[--$j]; //#5038 + $k[$j++] = ""; //#5038 + $k[$j++] = _V; //#5038 + $k[$j++] = _U; //#5038 + } //#5038 + $k[$j++] = Infinity; //#5040 + $aload($1.ais); //#5040 + var _Y = $k[$j - 1 - ($counttomark() + 2)]; //#5040 + $k[$j++] = _Y; //#5040 + $1.ais = $a(); //#5040 + $k[$j++] = Infinity; //#5041 + $aload($1.vals); //#5041 + var _c = $k[$j - 1 - ($counttomark() + 1)]; //#5041 + $k[$j++] = _c; //#5041 + $1.expand(); //#5041 + $1.vals = $a(); //#5041 + $j -= 2; //#5042 + } //#5042 + $j--; //#5044 + if (!$1.dontlint) { //#5046 + $k[$j++] = $1.ais; //#5046 + $k[$j++] = $1.vals; //#5046 + $0.gs1lint(); //#5046 + $j--; //#5046 + } //#5046 + $1.aifixed = new Map; //#5051 + $k[$j++] = Infinity; //#5053 + for (var _h = 0; _h <= 4; _h += 1) { //#5053 + $k[$j++] = _h; //#5053 + } //#5053 + var _i = $a(); //#5053 + for (var _j = 0, _k = _i.length; _j < _k; _j++) { //#5056 + var _n = $strcpy($s(2), "00"); //#5055 + $put(_n, 1, $f($get(_i, _j) + 48)); //#5055 + $put($1.aifixed, _n, _n); //#5055 + } //#5055 + $k[$j++] = Infinity; //#5061 + for (var _p = 11; _p <= 20; _p += 1) { //#5058 + $k[$j++] = _p; //#5058 + } //#5058 + $k[$j++] = 23; //#5060 + for (var _q = 31; _q <= 36; _q += 1) { //#5060 + $k[$j++] = _q; //#5060 + } //#5060 + $k[$j++] = 41; //#5061 + var _r = $a(); //#5061 + for (var _s = 0, _t = _r.length; _s < _t; _s++) { //#5064 + var _w = $cvrs($s(2), $get(_r, _s), 10); //#5063 + $put($1.aifixed, _w, _w); //#5063 + } //#5063 + $1.fnc1 = -1; //#5067 + $1.c128 = $a([$1.fnc1]); //#5068 + for (var _12 = 0, _11 = $1.ais.length - 1; _12 <= _11; _12 += 1) { //#5084 + $1.i = _12; //#5070 + $1.ai = $get($1.ais, $1.i); //#5071 + $1.val = $get($1.vals, $1.i); //#5072 + var _1C = $a(($1.c128.length + $1.ai.length) + $1.val.length); //#5073 + $puti(_1C, 0, $1.c128); //#5074 + $k[$j++] = _1C; //#5075 + $k[$j++] = _1C; //#5075 + $k[$j++] = $1.c128.length; //#5075 + $k[$j++] = $1.ai; //#5075 + $k[$j++] = Infinity; //#5075 + var _1G = $k[--$j]; //#5075 + var _1H = $k[--$j]; //#5075 + $k[$j++] = _1G; //#5075 + $forall(_1H); //#5075 + var _1I = $a(); //#5075 + var _1J = $k[--$j]; //#5075 + $puti($k[--$j], _1J, _1I); //#5075 + var _1L = $k[--$j]; //#5076 + $k[$j++] = _1L; //#5076 + $k[$j++] = _1L; //#5076 + $k[$j++] = $1.c128.length + $1.ai.length; //#5076 + $k[$j++] = $1.val; //#5076 + $k[$j++] = Infinity; //#5076 + var _1P = $k[--$j]; //#5076 + var _1Q = $k[--$j]; //#5076 + $k[$j++] = _1P; //#5076 + $forall(_1Q); //#5076 + var _1R = $a(); //#5076 + var _1S = $k[--$j]; //#5076 + $puti($k[--$j], _1S, _1R); //#5076 + $1.c128 = $k[--$j]; //#5077 + var _1a = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; //#5078 + if (($1.i != ($1.ais.length - 1)) && (!_1a)) { //#5083 + var _1c = $a($1.c128.length + 1); //#5079 + $puti(_1c, 0, $1.c128); //#5080 + $put(_1c, $1.c128.length, $1.fnc1); //#5081 + $1.c128 = _1c; //#5082 + } //#5082 + } //#5082 + $1.barcode = $s(($1.c128.length + 1) * 5); //#5087 + $1.i = 0; //#5088 + $1.j = 0; //#5088 + for (;;) { //#5098 + if ($1.i == $1.c128.length) { //#5089 + break; //#5089 + } //#5089 + var _1m = $get($1.c128, $1.i); //#5090 + $k[$j++] = _1m; //#5095 + if (_1m == $1.fnc1) { //#5094 + $j--; //#5091 + $puti($1.barcode, $1.j, "^FNC1"); //#5091 + $1.j = $1.j + 4; //#5092 + } else { //#5094 + $put($1.barcode, $1.j, $k[--$j]); //#5094 + } //#5094 + $1.i = $1.i + 1; //#5096 + $1.j = $1.j + 1; //#5097 + } //#5097 + if ($1.linkagea || $1.linkagec) { //#5102 + $k[$j++] = $1.barcode; //#5100 + $k[$j++] = $1.j; //#5100 + if ($1.linkagea) { //#5100 + $k[$j++] = "^LNKA"; //#5100 + } else { //#5100 + $k[$j++] = "^LNKC"; //#5100 + } //#5100 + var _21 = $k[--$j]; //#5100 + var _22 = $k[--$j]; //#5100 + $puti($k[--$j], _22, _21); //#5100 + $1.j = $1.j + 5; //#5101 + } //#5101 + $1.barcode = $geti($1.barcode, 0, $1.j); //#5103 + delete $1.options["parse"]; //#5106 + $put($1.options, "height", $1.height); //#5107 + $put($1.options, "dontdraw", true); //#5108 + $put($1.options, "parsefnc", true); //#5109 + $k[$j++] = 'args'; //#5110 + $k[$j++] = $1.barcode; //#5110 + $k[$j++] = $1.options; //#5110 + $0.code128(); //#5110 + var _2F = $k[--$j]; //#5110 + $1[$k[--$j]] = _2F; //#5110 + $put($1.args, "txt", $a([$a([$1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])])); //#5112 + $put($1.args, "textxalign", "center"); //#5113 + $put($1.args, "opt", $1.options); //#5114 + $k[$j++] = $1.args; //#5117 + if (!$1.dontdraw) { //#5117 + $0.renlinear(); //#5117 + } //#5117 }; $0.ean14 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.text = $1.barcode; - var _B = $1.barcode; - $k[$j++] = $s(_B.length); - $k[$j++] = 0; - $forall(_B, function() { - var _D = $k[--$j]; - $k[$j++] = _D; - if (_D != 32) { - var _E = $k[--$j]; - var _F = $k[--$j]; - var _G = $k[--$j]; - $put(_G, _F, _E); - $k[$j++] = _G; - $k[$j++] = $f(_F + 1); - } else { - $j--; - } - }); - var _H = $k[--$j]; - $1.barcode = $geti($k[--$j], 0, _H); - $1.hasspace = $1.text.length != $1.barcode.length; - if ($ne($geti($1.barcode, 0, 4), "(01)")) { - $k[$j++] = "bwipp.ean14badAI"; - $k[$j++] = "GS1-14 must begin with (01) application identifier"; - $0.raiseerror(); - } - if ($1.barcode.length != 17 && $1.barcode.length != 18) { - $k[$j++] = "bwipp.ean14badLength"; - $k[$j++] = "GS1-14 must be 13 or 14 digits"; - $0.raiseerror(); - } - var _S = $geti($1.barcode, 4, $1.barcode.length - 4); - for (var _T = 0, _U = _S.length; _T < _U; _T++) { - var _V = $get(_S, _T); - if (_V < 48 || _V > 57) { - $k[$j++] = "bwipp.ean14badCharacter"; - $k[$j++] = "GS1-14 must contain only digits"; - $0.raiseerror(); - } - } - $1.checksum = 0; - for (var _W = 0; _W <= 12; _W += 1) { - $1.i = _W; - $k[$j++] = "checksum"; - $k[$j++] = $1.checksum; - $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); - if ($1.i % 2 == 0) { - var _c = $k[--$j]; - $k[$j++] = _c * 3; - } - var _d = $k[--$j]; - var _e = $k[--$j]; - $1[$k[--$j]] = $f(_e + _d); - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 18) { - if ($get($1.barcode, 17) != $1.checksum + 48) { - $k[$j++] = "bwipp.ean14badCheckDigit"; - $k[$j++] = "Incorrect GS1-14 check digit provided"; - $0.raiseerror(); - } - } else { - var _l = $s(18); - $puti(_l, 0, $1.barcode); - $put(_l, 17, $1.checksum + 48); - $1.barcode = _l; - var _q = $1.hasspace ? 2 : 1; - var _r = $s($1.text.length + _q); - $puti(_r, _r.length - 2, " "); - $put(_r, _r.length - 1, $1.checksum + 48); - $puti(_r, 0, $1.text); - $1.text = _r; - } - $1.gtin = $geti($1.barcode, 4, 14); - $1.barcode = $s(21); - $puti($1.barcode, 0, "^FNC101"); - $puti($1.barcode, 7, $1.gtin); - $put($1.options, "dontdraw", true); - $put($1.options, "parsefnc", true); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.code128(); - var _14 = $k[--$j]; - $1[$k[--$j]] = _14; - $put($1.args, "txt", $a([ $a([ $1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ]) ])); - $put($1.args, "textxalign", "center"); - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#5147 + $1.options = $k[--$j]; //#5149 + $1.barcode = $k[--$j]; //#5150 + $1.dontdraw = false; //#5152 + $1.includetext = false; //#5153 + $1.textfont = "OCR-B"; //#5154 + $1.textsize = 10; //#5155 + $1.textxoffset = 0; //#5156 + $1.textyoffset = -8; //#5157 + $1.height = 1; //#5158 + $forall($1.options, function() { //#5169 + var _3 = $k[--$j]; //#5169 + $1[$k[--$j]] = _3; //#5169 + }); //#5169 + $1.textfont = "" + $1.textfont; //#5171 + $1.textsize = +$1.textsize; //#5172 + $1.textxoffset = +$1.textxoffset; //#5173 + $1.textyoffset = +$1.textyoffset; //#5174 + $1.height = +$1.height; //#5175 + $1.text = $1.barcode; //#5178 + var _B = $1.barcode; //#5179 + $k[$j++] = $s(_B.length); //#5180 + $k[$j++] = 0; //#5180 + $forall(_B, function() { //#5180 + var _D = $k[--$j]; //#5180 + $k[$j++] = _D; //#5180 + if (_D != 32) { //#5180 + var _E = $k[--$j]; //#5180 + var _F = $k[--$j]; //#5180 + var _G = $k[--$j]; //#5180 + $put(_G, _F, _E); //#5180 + $k[$j++] = _G; //#5180 + $k[$j++] = $f(_F + 1); //#5180 + } else { //#5180 + $j--; //#5180 + } //#5180 + }); //#5180 + var _H = $k[--$j]; //#5181 + $1.barcode = $geti($k[--$j], 0, _H); //#5181 + $1.hasspace = $1.text.length != $1.barcode.length; //#5182 + if ($ne($geti($1.barcode, 0, 4), "(01)")) { //#5187 + $k[$j++] = 'bwipp.ean14badAI'; //#5186 + $k[$j++] = "GS1-14 must begin with (01) application identifier"; //#5186 + $0.raiseerror(); //#5186 + } //#5186 + if (($1.barcode.length != 17) && ($1.barcode.length != 18)) { //#5190 + $k[$j++] = 'bwipp.ean14badLength'; //#5189 + $k[$j++] = "GS1-14 must be 13 or 14 digits"; //#5189 + $0.raiseerror(); //#5189 + } //#5189 + var _S = $geti($1.barcode, 4, $1.barcode.length - 4); //#5191 + for (var _T = 0, _U = _S.length; _T < _U; _T++) { //#5195 + var _V = $get(_S, _T); //#5195 + if ((_V < 48) || (_V > 57)) { //#5194 + $k[$j++] = 'bwipp.ean14badCharacter'; //#5193 + $k[$j++] = "GS1-14 must contain only digits"; //#5193 + $0.raiseerror(); //#5193 + } //#5193 + } //#5193 + $1.checksum = 0; //#5198 + for (var _W = 0; _W <= 12; _W += 1) { //#5202 + $1.i = _W; //#5200 + $k[$j++] = 'checksum'; //#5201 + $k[$j++] = $1.checksum; //#5201 + $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); //#5201 + if (($1.i % 2) == 0) { //#5201 + var _c = $k[--$j]; //#5201 + $k[$j++] = _c * 3; //#5201 + } //#5201 + var _d = $k[--$j]; //#5201 + var _e = $k[--$j]; //#5201 + $1[$k[--$j]] = $f(_e + _d); //#5201 + } //#5201 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#5203 + if ($1.barcode.length == 18) { //#5217 + if ($get($1.barcode, 17) != ($1.checksum + 48)) { //#5207 + $k[$j++] = 'bwipp.ean14badCheckDigit'; //#5206 + $k[$j++] = "Incorrect GS1-14 check digit provided"; //#5206 + $0.raiseerror(); //#5206 + } //#5206 + } else { //#5217 + var _l = $s(18); //#5209 + $puti(_l, 0, $1.barcode); //#5210 + $put(_l, 17, $1.checksum + 48); //#5211 + $1.barcode = _l; //#5212 + var _q = $1.hasspace ? 2 : 1; //#5213 + var _r = $s($1.text.length + _q); //#5213 + $puti(_r, _r.length - 2, " "); //#5214 + $put(_r, _r.length - 1, $1.checksum + 48); //#5215 + $puti(_r, 0, $1.text); //#5216 + $1.text = _r; //#5217 + } //#5217 + $1.gtin = $geti($1.barcode, 4, 14); //#5219 + $1.barcode = $s(21); //#5222 + $puti($1.barcode, 0, "^FNC101"); //#5223 + $puti($1.barcode, 7, $1.gtin); //#5224 + $put($1.options, "dontdraw", true); //#5227 + $put($1.options, "parsefnc", true); //#5228 + $k[$j++] = 'args'; //#5229 + $k[$j++] = $1.barcode; //#5229 + $k[$j++] = $1.options; //#5229 + $0.code128(); //#5229 + var _14 = $k[--$j]; //#5229 + $1[$k[--$j]] = _14; //#5229 + $put($1.args, "txt", $a([$a([$1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])])); //#5231 + $put($1.args, "textxalign", "center"); //#5232 + $put($1.args, "opt", $1.options); //#5233 + $k[$j++] = $1.args; //#5236 + if (!$1.dontdraw) { //#5236 + $0.renlinear(); //#5236 + } //#5236 }; $0.sscc18 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.text = $1.barcode; - var _B = $1.barcode; - $k[$j++] = $s(_B.length); - $k[$j++] = 0; - $forall(_B, function() { - var _D = $k[--$j]; - $k[$j++] = _D; - if (_D != 32) { - var _E = $k[--$j]; - var _F = $k[--$j]; - var _G = $k[--$j]; - $put(_G, _F, _E); - $k[$j++] = _G; - $k[$j++] = $f(_F + 1); - } else { - $j--; - } - }); - var _H = $k[--$j]; - $1.barcode = $geti($k[--$j], 0, _H); - $1.hasspace = $1.text.length != $1.barcode.length; - if ($ne($geti($1.barcode, 0, 4), "(00)")) { - $k[$j++] = "bwipp.sscc18badAI"; - $k[$j++] = "SSCC-18 must begin with (00) application identifier"; - $0.raiseerror(); - } - if ($1.barcode.length != 21 && $1.barcode.length != 22) { - $k[$j++] = "bwipp.sscc18badLength"; - $k[$j++] = "SSCC-18 must be 17 or 18 digits"; - $0.raiseerror(); - } - var _S = $geti($1.barcode, 4, $1.barcode.length - 4); - for (var _T = 0, _U = _S.length; _T < _U; _T++) { - var _V = $get(_S, _T); - if (_V < 48 || _V > 57) { - $k[$j++] = "bwipp.sscc18badCharacter"; - $k[$j++] = "SSCC-18 must contain only digits"; - $0.raiseerror(); - } - } - $1.checksum = 0; - for (var _W = 0; _W <= 16; _W += 1) { - $1.i = _W; - $k[$j++] = "checksum"; - $k[$j++] = $1.checksum; - $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); - if ($1.i % 2 == 0) { - var _c = $k[--$j]; - $k[$j++] = _c * 3; - } - var _d = $k[--$j]; - var _e = $k[--$j]; - $1[$k[--$j]] = $f(_e + _d); - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 22) { - if ($get($1.barcode, 21) != $1.checksum + 48) { - $k[$j++] = "bwipp.sscc18badCheckDigit"; - $k[$j++] = "Incorrect SSCC-18 check digit provided"; - $0.raiseerror(); - } - } else { - var _l = $s(22); - $puti(_l, 0, $1.barcode); - $put(_l, 21, $1.checksum + 48); - $1.barcode = _l; - var _q = $1.hasspace ? 2 : 1; - var _r = $s($1.text.length + _q); - $puti(_r, _r.length - 2, " "); - $put(_r, _r.length - 1, $1.checksum + 48); - $puti(_r, 0, $1.text); - $1.text = _r; - } - $1.sscc = $geti($1.barcode, 4, 18); - $1.barcode = $s(25); - $puti($1.barcode, 0, "^FNC100"); - $puti($1.barcode, 7, $1.sscc); - $put($1.options, "dontdraw", true); - $put($1.options, "parsefnc", true); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.code128(); - var _14 = $k[--$j]; - $1[$k[--$j]] = _14; - $put($1.args, "txt", $a([ $a([ $1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ]) ])); - $put($1.args, "textxalign", "center"); - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#5266 + $1.options = $k[--$j]; //#5268 + $1.barcode = $k[--$j]; //#5269 + $1.dontdraw = false; //#5271 + $1.includetext = false; //#5272 + $1.textfont = "OCR-B"; //#5273 + $1.textsize = 10; //#5274 + $1.textxoffset = 0; //#5275 + $1.textyoffset = -8; //#5276 + $1.height = 1; //#5277 + $forall($1.options, function() { //#5288 + var _3 = $k[--$j]; //#5288 + $1[$k[--$j]] = _3; //#5288 + }); //#5288 + $1.textfont = "" + $1.textfont; //#5290 + $1.textsize = +$1.textsize; //#5291 + $1.textxoffset = +$1.textxoffset; //#5292 + $1.textyoffset = +$1.textyoffset; //#5293 + $1.height = +$1.height; //#5294 + $1.text = $1.barcode; //#5297 + var _B = $1.barcode; //#5298 + $k[$j++] = $s(_B.length); //#5299 + $k[$j++] = 0; //#5299 + $forall(_B, function() { //#5299 + var _D = $k[--$j]; //#5299 + $k[$j++] = _D; //#5299 + if (_D != 32) { //#5299 + var _E = $k[--$j]; //#5299 + var _F = $k[--$j]; //#5299 + var _G = $k[--$j]; //#5299 + $put(_G, _F, _E); //#5299 + $k[$j++] = _G; //#5299 + $k[$j++] = $f(_F + 1); //#5299 + } else { //#5299 + $j--; //#5299 + } //#5299 + }); //#5299 + var _H = $k[--$j]; //#5300 + $1.barcode = $geti($k[--$j], 0, _H); //#5300 + $1.hasspace = $1.text.length != $1.barcode.length; //#5301 + if ($ne($geti($1.barcode, 0, 4), "(00)")) { //#5306 + $k[$j++] = 'bwipp.sscc18badAI'; //#5305 + $k[$j++] = "SSCC-18 must begin with (00) application identifier"; //#5305 + $0.raiseerror(); //#5305 + } //#5305 + if (($1.barcode.length != 21) && ($1.barcode.length != 22)) { //#5309 + $k[$j++] = 'bwipp.sscc18badLength'; //#5308 + $k[$j++] = "SSCC-18 must be 17 or 18 digits"; //#5308 + $0.raiseerror(); //#5308 + } //#5308 + var _S = $geti($1.barcode, 4, $1.barcode.length - 4); //#5310 + for (var _T = 0, _U = _S.length; _T < _U; _T++) { //#5314 + var _V = $get(_S, _T); //#5314 + if ((_V < 48) || (_V > 57)) { //#5313 + $k[$j++] = 'bwipp.sscc18badCharacter'; //#5312 + $k[$j++] = "SSCC-18 must contain only digits"; //#5312 + $0.raiseerror(); //#5312 + } //#5312 + } //#5312 + $1.checksum = 0; //#5317 + for (var _W = 0; _W <= 16; _W += 1) { //#5321 + $1.i = _W; //#5319 + $k[$j++] = 'checksum'; //#5320 + $k[$j++] = $1.checksum; //#5320 + $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); //#5320 + if (($1.i % 2) == 0) { //#5320 + var _c = $k[--$j]; //#5320 + $k[$j++] = _c * 3; //#5320 + } //#5320 + var _d = $k[--$j]; //#5320 + var _e = $k[--$j]; //#5320 + $1[$k[--$j]] = $f(_e + _d); //#5320 + } //#5320 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#5322 + if ($1.barcode.length == 22) { //#5336 + if ($get($1.barcode, 21) != ($1.checksum + 48)) { //#5326 + $k[$j++] = 'bwipp.sscc18badCheckDigit'; //#5325 + $k[$j++] = "Incorrect SSCC-18 check digit provided"; //#5325 + $0.raiseerror(); //#5325 + } //#5325 + } else { //#5336 + var _l = $s(22); //#5328 + $puti(_l, 0, $1.barcode); //#5329 + $put(_l, 21, $1.checksum + 48); //#5330 + $1.barcode = _l; //#5331 + var _q = $1.hasspace ? 2 : 1; //#5332 + var _r = $s($1.text.length + _q); //#5332 + $puti(_r, _r.length - 2, " "); //#5333 + $put(_r, _r.length - 1, $1.checksum + 48); //#5334 + $puti(_r, 0, $1.text); //#5335 + $1.text = _r; //#5336 + } //#5336 + $1.sscc = $geti($1.barcode, 4, 18); //#5338 + $1.barcode = $s(25); //#5341 + $puti($1.barcode, 0, "^FNC100"); //#5342 + $puti($1.barcode, 7, $1.sscc); //#5343 + $put($1.options, "dontdraw", true); //#5346 + $put($1.options, "parsefnc", true); //#5347 + $k[$j++] = 'args'; //#5348 + $k[$j++] = $1.barcode; //#5348 + $k[$j++] = $1.options; //#5348 + $0.code128(); //#5348 + var _14 = $k[--$j]; //#5348 + $1[$k[--$j]] = _14; //#5348 + $put($1.args, "txt", $a([$a([$1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])])); //#5350 + $put($1.args, "textxalign", "center"); //#5351 + $put($1.args, "opt", $1.options); //#5352 + $k[$j++] = $1.args; //#5355 + if (!$1.dontdraw) { //#5355 + $0.renlinear(); //#5355 + } //#5355 }; $0.code39 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includecheck = false; - $1.validatecheck = false; - $1.includetext = false; - $1.includecheckintext = false; - $1.hidestars = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; - $1.charvals = new Map(); - for (var _9 = 0; _9 <= 42; _9 += 1) { - $put($1.charvals, $geti($1.barchars, _9, 1), _9); - } - for (var _F = 0, _E = $1.barcode.length - 1; _F <= _E; _F += 1) { - var _J = $get($1.charvals, $geti($1.barcode, _F, 1)) !== undefined; - if (!_J) { - $k[$j++] = "bwipp.code39badCharacter"; - $k[$j++] = "Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _M = $k[--$j]; - $k[$j++] = $f(_M - 1); - } - var _N = $k[--$j]; - $1[$k[--$j]] = _N; - $1.checksum = 0; - for (var _R = 0, _Q = $f($1.barlen - 1); _R <= _Q; _R += 1) { - $1.checksum = $f($get($1.charvals, $geti($1.barcode, _R, 1)) + $1.checksum); - } - $1.checksum = $1.checksum % 43; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.code39badCheckDigit"; - $k[$j++] = "Incorrect Code 39 check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - $1.includecheck = true; - } - $1.encs = $a([ "1113313111", "3113111131", "1133111131", "3133111111", "1113311131", "3113311111", "1133311111", "1113113131", "3113113111", "1133113111", "3111131131", "1131131131", "3131131111", "1111331131", "3111331111", "1131331111", "1111133131", "3111133111", "1131133111", "1111333111", "3111111331", "1131111331", "3131111311", "1111311331", "3111311311", "1131311311", "1111113331", "3111113311", "1131113311", "1111313311", "3311111131", "1331111131", "3331111111", "1311311131", "3311311111", "1331311111", "1311113131", "3311113111", "1331113111", "1313131111", "1313111311", "1311131311", "1113131311", "1311313111" ]); - var _l = $1.includecheck ? 3 : 2; - $1.sbs = $s($f($1.barlen + _l) * 10); - var _p = $1.includecheck ? 3 : 2; - $1.txt = $a($f($1.barlen + _p)); - $puti($1.sbs, 0, $get($1.encs, 43)); - if (!$1.hidestars) { - $put($1.txt, 0, $a([ "*", 0, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, 0, $a([ "", 0, $1.textyoffset, $1.textfont, $1.textsize ])); - } - for (var _17 = 0, _16 = $f($1.barlen - 1); _17 <= _16; _17 += 1) { - $1.i = _17; - $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); - $puti($1.sbs, $1.i * 10 + 10, $get($1.encs, $1.indx)); - $put($1.txt, $1.i + 1, $a([ $geti($1.barcode, $1.i, 1), ($1.i + 1) * 16, $1.textyoffset, $1.textfont, $1.textsize ])); - } - if ($1.includecheck) { - $puti($1.sbs, $f($1.barlen * 10 + 10), $get($1.encs, $1.checksum)); - if ($1.includecheckintext) { - $put($1.txt, $f($1.barlen + 1), $a([ $geti($1.barchars, $1.checksum, 1), $f($1.barlen + 1) * 16, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $f($1.barlen + 1), $a([ "", $f($1.barlen + 1) * 16, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $puti($1.sbs, $f($1.barlen * 10 + 20), $get($1.encs, 43)); - if (!$1.hidestars) { - $put($1.txt, $f($1.barlen + 2), $a([ "*", $f($1.barlen + 2) * 16, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $f($1.barlen + 2), $a([ "", $f($1.barlen + 2) * 16, $1.textyoffset, $1.textfont, $1.textsize ])); - } - } else { - $puti($1.sbs, $f($1.barlen * 10 + 10), $get($1.encs, 43)); - if (!$1.hidestars) { - $put($1.txt, $f($1.barlen + 1), $a([ "*", $f($1.barlen + 1) * 16, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $f($1.barlen + 1), $a([ "", $f($1.barlen + 1) * 16, $1.textyoffset, $1.textfont, $1.textsize ])); - } - } - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _2S = $1.sbs; - for (var _2T = 0, _2U = _2S.length; _2T < _2U; _2T++) { - $k[$j++] = $get(_2S, _2T) - 48; - } - var _2W = $a(); - $k[$j++] = Infinity; - for (var _2Y = 0, _2Z = ~~(($1.sbs.length + 1) / 2); _2Y < _2Z; _2Y++) { - $k[$j++] = $1.height; - } - var _2b = $a(); - $k[$j++] = Infinity; - for (var _2d = 0, _2e = ~~(($1.sbs.length + 1) / 2); _2d < _2e; _2d++) { - $k[$j++] = 0; - } - var _2f = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _2W; - $k[$j++] = "bhs"; - $k[$j++] = _2b; - $k[$j++] = "bbs"; - $k[$j++] = _2f; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _2j = $d(); - $k[$j++] = _2j; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#5384 + $1.options = $k[--$j]; //#5386 + $1.barcode = $k[--$j]; //#5387 + $1.dontdraw = false; //#5389 + $1.includecheck = false; //#5390 + $1.validatecheck = false; //#5391 + $1.includetext = false; //#5392 + $1.includecheckintext = false; //#5393 + $1.hidestars = false; //#5394 + $1.textfont = "OCR-B"; //#5395 + $1.textsize = 10; //#5396 + $1.textyoffset = -8; //#5397 + $1.height = 1; //#5398 + $forall($1.options, function() { //#5409 + var _3 = $k[--$j]; //#5409 + $1[$k[--$j]] = _3; //#5409 + }); //#5409 + $1.textfont = "" + $1.textfont; //#5411 + $1.textsize = +$1.textsize; //#5412 + $1.textyoffset = +$1.textyoffset; //#5413 + $1.height = +$1.height; //#5414 + $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#5417 + $1.charvals = new Map; //#5418 + for (var _9 = 0; _9 <= 42; _9 += 1) { //#5419 + $put($1.charvals, $geti($1.barchars, _9, 1), _9); //#5419 + } //#5419 + for (var _F = 0, _E = $1.barcode.length - 1; _F <= _E; _F += 1) { //#5426 + var _J = $get($1.charvals, $geti($1.barcode, _F, 1)) !== undefined; //#5423 + if (!_J) { //#5425 + $k[$j++] = 'bwipp.code39badCharacter'; //#5424 + $k[$j++] = "Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#5424 + $0.raiseerror(); //#5424 + } //#5424 + } //#5424 + $k[$j++] = 'barlen'; //#5428 + $k[$j++] = $1.barcode.length; //#5428 + if ($1.validatecheck) { //#5428 + var _M = $k[--$j]; //#5428 + $k[$j++] = $f(_M - 1); //#5428 + } //#5428 + var _N = $k[--$j]; //#5428 + $1[$k[--$j]] = _N; //#5428 + $1.checksum = 0; //#5430 + for (var _R = 0, _Q = $f($1.barlen - 1); _R <= _Q; _R += 1) { //#5434 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, _R, 1)) + $1.checksum); //#5433 + } //#5433 + $1.checksum = $1.checksum % 43; //#5435 + if ($1.validatecheck) { //#5442 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#5439 + $k[$j++] = 'bwipp.code39badCheckDigit'; //#5438 + $k[$j++] = "Incorrect Code 39 check digit provided"; //#5438 + $0.raiseerror(); //#5438 + } //#5438 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#5440 + $1.includecheck = true; //#5441 + } //#5441 + $1.encs = $a(["1113313111", "3113111131", "1133111131", "3133111111", "1113311131", "3113311111", "1133311111", "1113113131", "3113113111", "1133113111", "3111131131", "1131131131", "3131131111", "1111331131", "3111331111", "1131331111", "1111133131", "3111133111", "1131133111", "1111333111", "3111111331", "1131111331", "3131111311", "1111311331", "3111311311", "1131311311", "1111113331", "3111113311", "1131113311", "1111313311", "3311111131", "1331111131", "3331111111", "1311311131", "3311311111", "1331311111", "1311113131", "3311113111", "1331113111", "1313131111", "1313111311", "1311131311", "1113131311", "1311313111"]); //#5455 + var _l = $1.includecheck ? 3 : 2; //#5457 + $1.sbs = $s($f($1.barlen + _l) * 10); //#5457 + var _p = $1.includecheck ? 3 : 2; //#5458 + $1.txt = $a($f($1.barlen + _p)); //#5458 + $puti($1.sbs, 0, $get($1.encs, 43)); //#5461 + if (!$1.hidestars) { //#5465 + $put($1.txt, 0, $a(["*", 0, $1.textyoffset, $1.textfont, $1.textsize])); //#5463 + } else { //#5465 + $put($1.txt, 0, $a(["", 0, $1.textyoffset, $1.textfont, $1.textsize])); //#5465 + } //#5465 + for (var _17 = 0, _16 = $f($1.barlen - 1); _17 <= _16; _17 += 1) { //#5473 + $1.i = _17; //#5469 + $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); //#5470 + $puti($1.sbs, ($1.i * 10) + 10, $get($1.encs, $1.indx)); //#5471 + $put($1.txt, $1.i + 1, $a([$geti($1.barcode, $1.i, 1), ($1.i + 1) * 16, $1.textyoffset, $1.textfont, $1.textsize])); //#5472 + } //#5472 + if ($1.includecheck) { //#5494 + $puti($1.sbs, $f(($1.barlen * 10) + 10), $get($1.encs, $1.checksum)); //#5477 + if ($1.includecheckintext) { //#5481 + $put($1.txt, $f($1.barlen + 1), $a([$geti($1.barchars, $1.checksum, 1), $f($1.barlen + 1) * 16, $1.textyoffset, $1.textfont, $1.textsize])); //#5479 + } else { //#5481 + $put($1.txt, $f($1.barlen + 1), $a(["", $f($1.barlen + 1) * 16, $1.textyoffset, $1.textfont, $1.textsize])); //#5481 + } //#5481 + $puti($1.sbs, $f(($1.barlen * 10) + 20), $get($1.encs, 43)); //#5483 + if (!$1.hidestars) { //#5487 + $put($1.txt, $f($1.barlen + 2), $a(["*", $f($1.barlen + 2) * 16, $1.textyoffset, $1.textfont, $1.textsize])); //#5485 + } else { //#5487 + $put($1.txt, $f($1.barlen + 2), $a(["", $f($1.barlen + 2) * 16, $1.textyoffset, $1.textfont, $1.textsize])); //#5487 + } //#5487 + } else { //#5494 + $puti($1.sbs, $f(($1.barlen * 10) + 10), $get($1.encs, 43)); //#5490 + if (!$1.hidestars) { //#5494 + $put($1.txt, $f($1.barlen + 1), $a(["*", $f($1.barlen + 1) * 16, $1.textyoffset, $1.textfont, $1.textsize])); //#5492 + } else { //#5494 + $put($1.txt, $f($1.barlen + 1), $a(["", $f($1.barlen + 1) * 16, $1.textyoffset, $1.textfont, $1.textsize])); //#5494 + } //#5494 + } //#5494 + $k[$j++] = Infinity; //#5507 + $k[$j++] = Infinity; //#5501 + var _2S = $1.sbs; //#5501 + for (var _2T = 0, _2U = _2S.length; _2T < _2U; _2T++) { //#5501 + $k[$j++] = $get(_2S, _2T) - 48; //#5501 + } //#5501 + var _2W = $a(); //#5501 + $k[$j++] = Infinity; //#5502 + for (var _2Y = 0, _2Z = ~~(($1.sbs.length + 1) / 2); _2Y < _2Z; _2Y++) { //#5502 + $k[$j++] = $1.height; //#5502 + } //#5502 + var _2b = $a(); //#5502 + $k[$j++] = Infinity; //#5503 + for (var _2d = 0, _2e = ~~(($1.sbs.length + 1) / 2); _2d < _2e; _2d++) { //#5503 + $k[$j++] = 0; //#5503 + } //#5503 + var _2f = $a(); //#5503 + $k[$j++] = 'ren'; //#5506 + $k[$j++] = $0.renlinear; //#5506 + $k[$j++] = 'sbs'; //#5506 + $k[$j++] = _2W; //#5506 + $k[$j++] = 'bhs'; //#5506 + $k[$j++] = _2b; //#5506 + $k[$j++] = 'bbs'; //#5506 + $k[$j++] = _2f; //#5506 + if ($1.includetext) { //#5506 + $k[$j++] = 'txt'; //#5505 + $k[$j++] = $1.txt; //#5505 + } //#5505 + $k[$j++] = 'opt'; //#5507 + $k[$j++] = $1.options; //#5507 + var _2j = $d(); //#5507 + $k[$j++] = _2j; //#5510 + if (!$1.dontdraw) { //#5510 + $0.renlinear(); //#5510 + } //#5510 }; $0.code39ext = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.parse = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - var _6 = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _6; - $k[$j++] = "barcode"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _9 = $k[--$j]; - $1[$k[--$j]] = _9; - $1.barlen = $1.barcode.length; - delete $1.options["parse"]; - $forall($1.barcode, function() { - if ($k[--$j] >= 128) { - $k[$j++] = "bwipp.code39extBadCharacter"; - $k[$j++] = "Code 39 Extended must contain only ASCII characters"; - $0.raiseerror(); - } - }); - $1.extencs = $a([ "%U", "$A", "$B", "$C", "$D", "$E", "$F", "$G", "$H", "$I", "$J", "$K", "$L", "$M", "$N", "$O", "$P", "$Q", "$R", "$S", "$T", "$U", "$V", "$W", "$X", "$Y", "$Z", "%A", "%B", "%C", "%D", "%E", " ", "/A", "/B", "/C", "/D", "/E", "/F", "/G", "/H", "/I", "/J", "/K", "/L", "-", ".", "/O", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "/Z", "%F", "%G", "%H", "%I", "%J", "%V", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "%K", "%L", "%M", "%N", "%O", "%W", "+A", "+B", "+C", "+D", "+E", "+F", "+G", "+H", "+I", "+J", "+K", "+L", "+M", "+N", "+O", "+P", "+Q", "+R", "+S", "+T", "+U", "+V", "+W", "+X", "+Y", "+Z", "%P", "%Q", "%R", "%S", "%T" ]); - $1.newcode = $s($1.barlen * 2); - $1.newtext = $s($1.barlen * 2); - $1.j = 0; - for (var _M = 0, _L = $1.barlen - 1; _M <= _L; _M += 1) { - $1.i = _M; - $1.extchar = $get($1.extencs, $get($1.barcode, $1.i)); - $puti($1.newcode, $1.j, $1.extchar); - $put($1.newtext, $1.j, $get($1.barcode, $1.i)); - if ($1.extchar.length != 1) { - $puti($1.newtext, $1.j + 1, " "); - } - $1.j = $1.j + $1.extchar.length; - } - $1.newcode = $geti($1.newcode, 0, $1.j); - $1.newtext = $geti($1.newtext, 0, $1.j); - $put($1.options, "dontdraw", true); - $k[$j++] = "args"; - $k[$j++] = $1.newcode; - $k[$j++] = $1.options; - $0.code39(); - var _o = $k[--$j]; - $1[$k[--$j]] = _o; - if ($1.includetext) { - $1.txt = $get($1.args, "txt"); - for (var _v = 0, _u = $1.newtext.length - 1; _v <= _u; _v += 1) { - $1.i = _v; - $1.txtentry = $get($1.txt, $1.i + 1); - $put($1.txtentry, 0, $geti($1.newtext, $1.i, 1)); - $put($1.txt, $1.i + 1, $1.txtentry); - } - $put($1.args, "txt", $1.txt); - } - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#5541 + $1.options = $k[--$j]; //#5543 + $1.barcode = $k[--$j]; //#5544 + $1.dontdraw = false; //#5546 + $1.includetext = false; //#5547 + $1.parse = false; //#5548 + $forall($1.options, function() { //#5559 + var _3 = $k[--$j]; //#5559 + $1[$k[--$j]] = _3; //#5559 + }); //#5559 + var _6 = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#5565 + $1.fncvals = _6; //#5566 + $k[$j++] = 'barcode'; //#5567 + $k[$j++] = $1.barcode; //#5567 + $k[$j++] = $1.fncvals; //#5567 + $0.parseinput(); //#5567 + var _9 = $k[--$j]; //#5567 + $1[$k[--$j]] = _9; //#5567 + $1.barlen = $1.barcode.length; //#5568 + delete $1.options["parse"]; //#5569 + $forall($1.barcode, function() { //#5576 + if ($k[--$j] >= 128) { //#5575 + $k[$j++] = 'bwipp.code39extBadCharacter'; //#5574 + $k[$j++] = "Code 39 Extended must contain only ASCII characters"; //#5574 + $0.raiseerror(); //#5574 + } //#5574 + }); //#5574 + $1.extencs = $a(["%U", "$A", "$B", "$C", "$D", "$E", "$F", "$G", "$H", "$I", "$J", "$K", "$L", "$M", "$N", "$O", "$P", "$Q", "$R", "$S", "$T", "$U", "$V", "$W", "$X", "$Y", "$Z", "%A", "%B", "%C", "%D", "%E", " ", "/A", "/B", "/C", "/D", "/E", "/F", "/G", "/H", "/I", "/J", "/K", "/L", "-", ".", "/O", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "/Z", "%F", "%G", "%H", "%I", "%J", "%V", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "%K", "%L", "%M", "%N", "%O", "%W", "+A", "+B", "+C", "+D", "+E", "+F", "+G", "+H", "+I", "+J", "+K", "+L", "+M", "+N", "+O", "+P", "+Q", "+R", "+S", "+T", "+U", "+V", "+W", "+X", "+Y", "+Z", "%P", "%Q", "%R", "%S", "%T"]); //#5588 + $1.newcode = $s($1.barlen * 2); //#5590 + $1.newtext = $s($1.barlen * 2); //#5591 + $1.j = 0; //#5592 + for (var _M = 0, _L = $1.barlen - 1; _M <= _L; _M += 1) { //#5600 + $1.i = _M; //#5594 + $1.extchar = $get($1.extencs, $get($1.barcode, $1.i)); //#5595 + $puti($1.newcode, $1.j, $1.extchar); //#5596 + $put($1.newtext, $1.j, $get($1.barcode, $1.i)); //#5597 + if ($1.extchar.length != 1) { //#5598 + $puti($1.newtext, $1.j + 1, " "); //#5598 + } //#5598 + $1.j = $1.j + $1.extchar.length; //#5599 + } //#5599 + $1.newcode = $geti($1.newcode, 0, $1.j); //#5601 + $1.newtext = $geti($1.newtext, 0, $1.j); //#5602 + $put($1.options, "dontdraw", true); //#5605 + $k[$j++] = 'args'; //#5606 + $k[$j++] = $1.newcode; //#5606 + $k[$j++] = $1.options; //#5606 + $0.code39(); //#5606 + var _o = $k[--$j]; //#5606 + $1[$k[--$j]] = _o; //#5606 + if ($1.includetext) { //#5618 + $1.txt = $get($1.args, "txt"); //#5610 + for (var _v = 0, _u = $1.newtext.length - 1; _v <= _u; _v += 1) { //#5616 + $1.i = _v; //#5612 + $1.txtentry = $get($1.txt, $1.i + 1); //#5613 + $put($1.txtentry, 0, $geti($1.newtext, $1.i, 1)); //#5614 + $put($1.txt, $1.i + 1, $1.txtentry); //#5615 + } //#5615 + $put($1.args, "txt", $1.txt); //#5617 + } //#5617 + $put($1.args, "opt", $1.options); //#5619 + $k[$j++] = $1.args; //#5622 + if (!$1.dontdraw) { //#5622 + $0.renlinear(); //#5622 + } //#5622 }; $0.code32 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.textxoffset = 0; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - if ($1.barcode.length != 8 && $1.barcode.length != 9) { - $k[$j++] = "bwipp.code32badLength"; - $k[$j++] = "Italian Pharmacode must be 8 or 9 digits"; - $0.raiseerror(); - } - $forall($1.barcode, function() { - var _C = $k[--$j]; - if (_C < 48 || _C > 57) { - $k[$j++] = "bwipp.code32badCharacter"; - $k[$j++] = "Italian Pharmacode must contain only digits"; - $0.raiseerror(); - } - }); - $1.checksum = 0; - for (var _D = 0; _D <= 7; _D += 1) { - $1.i = _D; - $k[$j++] = $f($get($1.barcode, $1.i) - 48); - if ($1.i % 2 != 0) { - var _I = $k[--$j]; - $k[$j++] = _I * 2; - } - var _J = $k[--$j]; - $k[$j++] = _J; - if (_J > 9) { - var _K = $k[--$j]; - $k[$j++] = $f(_K - 9); - } - $1.checksum = $f($k[--$j] + $1.checksum); - } - $1.checksum = $1.checksum % 10; - if ($1.barcode.length == 9) { - if ($get($1.barcode, 8) != $f($1.checksum + 48)) { - $k[$j++] = "bwipp.code32badCheckDigit"; - $k[$j++] = "Incorrect Italian Pharmacode check digit provided"; - $0.raiseerror(); - } - } - var _S = $s(10); - $puti(_S, 0, $1.barcode); - $put(_S, 8, $f($1.checksum + 48)); - $1.text = _S; - $1.val = $cvrs($s(6), ~~$z($1.text), 32); - $1.barcode = $s(6); - for (var _Z = 0; _Z <= 5; _Z += 1) { - $put($1.barcode, _Z, 48); - } - $puti($1.barcode, 6 - $1.val.length, $1.val); - for (var _e = 0; _e <= 5; _e += 1) { - var _g = $get($1.barcode, _e); - $k[$j++] = _e; - $k[$j++] = _g; - $k[$j++] = _g; - for (var _h = 0, _i = "AEIO".length; _h < _i; _h++) { - if ($k[--$j] >= $get("AEIO", _h)) { - var _l = $k[--$j]; - $k[$j++] = $f(_l + 1); - } - var _m = $k[--$j]; - $k[$j++] = _m; - $k[$j++] = _m; - } - $j--; - var _o = $k[--$j]; - $put($1.barcode, $k[--$j], _o); - } - $puti($1.text, 1, $geti($1.text, 0, 9)); - $put($1.text, 0, 65); - $put($1.options, "dontdraw", true); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.code39(); - var _x = $k[--$j]; - $1[$k[--$j]] = _x; - $put($1.args, "txt", $a([ $a([ $1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ]) ])); - $put($1.args, "textxalign", "center"); - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#5652 + $1.options = $k[--$j]; //#5654 + $1.barcode = $k[--$j]; //#5655 + $1.dontdraw = false; //#5657 + $1.includetext = false; //#5658 + $1.textfont = "OCR-B"; //#5659 + $1.textsize = 10; //#5660 + $1.textyoffset = -8; //#5661 + $1.textxoffset = 0; //#5662 + $1.height = 1; //#5663 + $forall($1.options, function() { //#5674 + var _3 = $k[--$j]; //#5674 + $1[$k[--$j]] = _3; //#5674 + }); //#5674 + $1.textfont = "" + $1.textfont; //#5676 + $1.textsize = +$1.textsize; //#5677 + $1.textyoffset = +$1.textyoffset; //#5678 + $1.height = +$1.height; //#5679 + if (($1.barcode.length != 8) && ($1.barcode.length != 9)) { //#5684 + $k[$j++] = 'bwipp.code32badLength'; //#5683 + $k[$j++] = "Italian Pharmacode must be 8 or 9 digits"; //#5683 + $0.raiseerror(); //#5683 + } //#5683 + $forall($1.barcode, function() { //#5689 + var _C = $k[--$j]; //#5686 + if ((_C < 48) || (_C > 57)) { //#5688 + $k[$j++] = 'bwipp.code32badCharacter'; //#5687 + $k[$j++] = "Italian Pharmacode must contain only digits"; //#5687 + $0.raiseerror(); //#5687 + } //#5687 + }); //#5687 + $1.checksum = 0; //#5692 + for (var _D = 0; _D <= 7; _D += 1) { //#5697 + $1.i = _D; //#5694 + $k[$j++] = $f($get($1.barcode, $1.i) - 48); //#5695 + if (($1.i % 2) != 0) { //#5695 + var _I = $k[--$j]; //#5695 + $k[$j++] = _I * 2; //#5695 + } //#5695 + var _J = $k[--$j]; //#5695 + $k[$j++] = _J; //#5695 + if (_J > 9) { //#5695 + var _K = $k[--$j]; //#5695 + $k[$j++] = $f(_K - 9); //#5695 + } //#5695 + $1.checksum = $f($k[--$j] + $1.checksum); //#5696 + } //#5696 + $1.checksum = $1.checksum % 10; //#5698 + if ($1.barcode.length == 9) { //#5703 + if ($get($1.barcode, 8) != $f($1.checksum + 48)) { //#5702 + $k[$j++] = 'bwipp.code32badCheckDigit'; //#5701 + $k[$j++] = "Incorrect Italian Pharmacode check digit provided"; //#5701 + $0.raiseerror(); //#5701 + } //#5701 + } //#5701 + var _S = $s(10); //#5704 + $puti(_S, 0, $1.barcode); //#5705 + $put(_S, 8, $f($1.checksum + 48)); //#5706 + $1.text = _S; //#5707 + $1.val = $cvrs($s(6), ~~$z($1.text), 32); //#5710 + $1.barcode = $s(6); //#5711 + for (var _Z = 0; _Z <= 5; _Z += 1) { //#5712 + $put($1.barcode, _Z, 48); //#5712 + } //#5712 + $puti($1.barcode, 6 - $1.val.length, $1.val); //#5713 + for (var _e = 0; _e <= 5; _e += 1) { //#5720 + var _g = $get($1.barcode, _e); //#5717 + $k[$j++] = _e; //#5718 + $k[$j++] = _g; //#5718 + $k[$j++] = _g; //#5718 + for (var _h = 0, _i = "AEIO".length; _h < _i; _h++) { //#5718 + if ($k[--$j] >= $get("AEIO", _h)) { //#5718 + var _l = $k[--$j]; //#5718 + $k[$j++] = $f(_l + 1); //#5718 + } //#5718 + var _m = $k[--$j]; //#5718 + $k[$j++] = _m; //#5718 + $k[$j++] = _m; //#5718 + } //#5718 + $j--; //#5718 + var _o = $k[--$j]; //#5719 + $put($1.barcode, $k[--$j], _o); //#5719 + } //#5719 + $puti($1.text, 1, $geti($1.text, 0, 9)); //#5723 + $put($1.text, 0, 65); //#5724 + $put($1.options, "dontdraw", true); //#5727 + $k[$j++] = 'args'; //#5728 + $k[$j++] = $1.barcode; //#5728 + $k[$j++] = $1.options; //#5728 + $0.code39(); //#5728 + var _x = $k[--$j]; //#5728 + $1[$k[--$j]] = _x; //#5728 + $put($1.args, "txt", $a([$a([$1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])])); //#5730 + $put($1.args, "textxalign", "center"); //#5731 + $put($1.args, "opt", $1.options); //#5732 + $k[$j++] = $1.args; //#5735 + if (!$1.dontdraw) { //#5735 + $0.renlinear(); //#5735 + } //#5735 }; $0.pzn = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.textxoffset = 0; - $1.height = 1; - $1.pzn8 = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.textxoffset = +$1.textxoffset; - $1.height = +$1.height; - if ($1.pzn8) { - if ($1.barcode.length != 7 && $1.barcode.length != 8) { - $k[$j++] = "bwipp.pzn8badLength"; - $k[$j++] = "PZN8 must be 7 or 8 digits"; - $0.raiseerror(); - } - } else { - if ($1.barcode.length != 6 && $1.barcode.length != 7) { - $k[$j++] = "bwipp.pzn7badLength"; - $k[$j++] = "PZN7 must be 6 or 7 digits"; - $0.raiseerror(); - } - } - $forall($1.barcode, function() { - var _G = $k[--$j]; - if (_G < 48 || _G > 57) { - $k[$j++] = "bwipp.pznBadCharacter"; - $k[$j++] = "PZN must contain only digits"; - $0.raiseerror(); - } - }); - var _I = $1.pzn8 ? 9 : 8; - $1.msglen = _I; - $1.checksum = 0; - for (var _L = 0, _K = $1.msglen - 3; _L <= _K; _L += 1) { - $1.i = _L; - var _R = $1.pzn8 ? 1 : 2; - $1.checksum = $f($f($get($1.barcode, $1.i) - 48) * ($1.i + _R) + $1.checksum); - } - $1.checksum = $1.checksum % 11; - if ($1.checksum == 10) { - $k[$j++] = "bwipp.pznBadInputSequence"; - $k[$j++] = "Incorrect PZN input sequence provided"; - $0.raiseerror(); - } - if ($1.barcode.length == $1.msglen - 1) { - if ($get($1.barcode, $1.msglen - 2) != $f($1.checksum + 48)) { - $k[$j++] = "bwipp.pznBadCheckDigit"; - $k[$j++] = "Incorrect PZN check digit provided"; - $0.raiseerror(); - } - } - var _c = $s($1.msglen); - $put(_c, 0, 45); - $puti(_c, 1, $1.barcode); - $put(_c, $1.msglen - 1, $f($1.checksum + 48)); - $1.msg = _c; - $put($1.options, "dontdraw", true); - $k[$j++] = "args"; - $k[$j++] = $1.msg; - $k[$j++] = $1.options; - $0.code39(); - var _j = $k[--$j]; - $1[$k[--$j]] = _j; - $1.text = $s($1.msglen + 5); - $puti($1.text, 0, "PZN - "); - $puti($1.text, 6, $geti($1.msg, 1, $1.msglen - 1)); - $put($1.args, "txt", $a([ $a([ $1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ]) ])); - $put($1.args, "textxalign", "center"); - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#5765 + $1.options = $k[--$j]; //#5767 + $1.barcode = $k[--$j]; //#5768 + $1.dontdraw = false; //#5770 + $1.includetext = false; //#5771 + $1.textfont = "OCR-B"; //#5772 + $1.textsize = 10; //#5773 + $1.textyoffset = -8; //#5774 + $1.textxoffset = 0; //#5775 + $1.height = 1; //#5776 + $1.pzn8 = false; //#5777 + $forall($1.options, function() { //#5788 + var _3 = $k[--$j]; //#5788 + $1[$k[--$j]] = _3; //#5788 + }); //#5788 + $1.textfont = "" + $1.textfont; //#5790 + $1.textsize = +$1.textsize; //#5791 + $1.textyoffset = +$1.textyoffset; //#5792 + $1.textxoffset = +$1.textxoffset; //#5793 + $1.height = +$1.height; //#5794 + if ($1.pzn8) { //#5803 + if (($1.barcode.length != 7) && ($1.barcode.length != 8)) { //#5800 + $k[$j++] = 'bwipp.pzn8badLength'; //#5799 + $k[$j++] = "PZN8 must be 7 or 8 digits"; //#5799 + $0.raiseerror(); //#5799 + } //#5799 + } else { //#5803 + if (($1.barcode.length != 6) && ($1.barcode.length != 7)) { //#5804 + $k[$j++] = 'bwipp.pzn7badLength'; //#5803 + $k[$j++] = "PZN7 must be 6 or 7 digits"; //#5803 + $0.raiseerror(); //#5803 + } //#5803 + } //#5803 + $forall($1.barcode, function() { //#5810 + var _G = $k[--$j]; //#5807 + if ((_G < 48) || (_G > 57)) { //#5809 + $k[$j++] = 'bwipp.pznBadCharacter'; //#5808 + $k[$j++] = "PZN must contain only digits"; //#5808 + $0.raiseerror(); //#5808 + } //#5808 + }); //#5808 + var _I = $1.pzn8 ? 9 : 8; //#5813 + $1.msglen = _I; //#5813 + $1.checksum = 0; //#5814 + for (var _L = 0, _K = $1.msglen - 3; _L <= _K; _L += 1) { //#5819 + $1.i = _L; //#5816 + var _R = $1.pzn8 ? 1 : 2; //#5817 + $1.checksum = $f(($f($get($1.barcode, $1.i) - 48) * ($1.i + _R)) + $1.checksum); //#5818 + } //#5818 + $1.checksum = $1.checksum % 11; //#5820 + if ($1.checksum == 10) { //#5823 + $k[$j++] = 'bwipp.pznBadInputSequence'; //#5822 + $k[$j++] = "Incorrect PZN input sequence provided"; //#5822 + $0.raiseerror(); //#5822 + } //#5822 + if ($1.barcode.length == ($1.msglen - 1)) { //#5828 + if ($get($1.barcode, $1.msglen - 2) != $f($1.checksum + 48)) { //#5827 + $k[$j++] = 'bwipp.pznBadCheckDigit'; //#5826 + $k[$j++] = "Incorrect PZN check digit provided"; //#5826 + $0.raiseerror(); //#5826 + } //#5826 + } //#5826 + var _c = $s($1.msglen); //#5829 + $put(_c, 0, 45); //#5830 + $puti(_c, 1, $1.barcode); //#5831 + $put(_c, $1.msglen - 1, $f($1.checksum + 48)); //#5832 + $1.msg = _c; //#5833 + $put($1.options, "dontdraw", true); //#5836 + $k[$j++] = 'args'; //#5837 + $k[$j++] = $1.msg; //#5837 + $k[$j++] = $1.options; //#5837 + $0.code39(); //#5837 + var _j = $k[--$j]; //#5837 + $1[$k[--$j]] = _j; //#5837 + $1.text = $s($1.msglen + 5); //#5840 + $puti($1.text, 0, "PZN - "); //#5841 + $puti($1.text, 6, $geti($1.msg, 1, $1.msglen - 1)); //#5842 + $put($1.args, "txt", $a([$a([$1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])])); //#5844 + $put($1.args, "textxalign", "center"); //#5845 + $put($1.args, "opt", $1.options); //#5846 + $k[$j++] = $1.args; //#5849 + if (!$1.dontdraw) { //#5849 + $0.renlinear(); //#5849 + } //#5849 }; $0.code93 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includecheck = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = 1; - $1.parse = false; - $1.parsefnc = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.encs = $a([ "131112", "111213", "111312", "111411", "121113", "121212", "121311", "111114", "131211", "141111", "211113", "211212", "211311", "221112", "221211", "231111", "112113", "112212", "112311", "122112", "132111", "111123", "111222", "111321", "121122", "131121", "212112", "212211", "211122", "211221", "221121", "222111", "112122", "112221", "122121", "123111", "121131", "311112", "311211", "321111", "112131", "113121", "211131", "121221", "312111", "311121", "122211", "111141", "1111411" ]); - $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; - $1.sft1 = -1; - $1.sft2 = -2; - $1.sft3 = -3; - $1.sft4 = -4; - var _G = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "SFT$", $1.sft1 ], [ "SFT%", $1.sft2 ], [ "SFT/", $1.sft3 ], [ "SFT+", $1.sft4 ] ]); - $1.fncvals = _G; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _J = $k[--$j]; - $1[$k[--$j]] = _J; - $1.msglen = $1.msg.length; - if ($1.includecheck) { - $1.sbs = $s($1.msglen * 6 + 25); - } else { - $1.sbs = $s($1.msglen * 6 + 13); - } - $1.txt = $a($1.msglen); - $puti($1.sbs, 0, $get($1.encs, 47)); - $1.checksum1 = 0; - $1.checksum2 = 0; - for (var _Y = 0, _X = $1.msglen - 1; _Y <= _X; _Y += 1) { - $1.i = _Y; - var _b = $get($1.msg, $1.i); - $k[$j++] = _b; - if (_b < 0) { - $1.indx = $f(42 - $k[--$j]); - $1.char = " "; - } else { - var _d = $s(1); - $put(_d, 0, $k[--$j]); - $1.char = _d; - $search($1.barchars, $1.char); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - } - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $1.i * 6 + 6, $1.enc); - $put($1.txt, $1.i, $a([ $1.char, $1.i * 9 + 9, $1.textyoffset, $1.textfont, $1.textsize ])); - $1.checksum1 = $1.checksum1 + (($1.msglen - $1.i - 1) % 20 + 1) * $1.indx; - $1.checksum2 = $1.checksum2 + (($1.msglen - $1.i) % 15 + 1) * $1.indx; - } - if ($1.includecheck) { - $1.checksum1 = $1.checksum1 % 47; - $1.checksum2 = ($1.checksum2 + $1.checksum1) % 47; - $puti($1.sbs, $1.msglen * 6 + 6, $get($1.encs, $1.checksum1)); - $puti($1.sbs, $1.msglen * 6 + 12, $get($1.encs, $1.checksum2)); - $puti($1.sbs, $1.msglen * 6 + 18, $get($1.encs, 48)); - } else { - $puti($1.sbs, $1.msglen * 6 + 6, $get($1.encs, 48)); - } - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _1Q = $1.sbs; - for (var _1R = 0, _1S = _1Q.length; _1R < _1S; _1R++) { - $k[$j++] = $get(_1Q, _1R) - 48; - } - var _1U = $a(); - $k[$j++] = Infinity; - for (var _1W = 0, _1X = ~~(($1.sbs.length + 1) / 2); _1W < _1X; _1W++) { - $k[$j++] = $1.height; - } - var _1Z = $a(); - $k[$j++] = Infinity; - for (var _1b = 0, _1c = ~~(($1.sbs.length + 1) / 2); _1b < _1c; _1b++) { - $k[$j++] = 0; - } - var _1d = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _1U; - $k[$j++] = "bhs"; - $k[$j++] = _1Z; - $k[$j++] = "bbs"; - $k[$j++] = _1d; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _1h = $d(); - $k[$j++] = _1h; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#5879 + $1.options = $k[--$j]; //#5881 + $1.barcode = $k[--$j]; //#5882 + $1.dontdraw = false; //#5884 + $1.includecheck = false; //#5885 + $1.includetext = false; //#5886 + $1.textfont = "OCR-B"; //#5887 + $1.textsize = 10; //#5888 + $1.textyoffset = -8; //#5889 + $1.height = 1; //#5890 + $1.parse = false; //#5891 + $1.parsefnc = false; //#5892 + $forall($1.options, function() { //#5903 + var _3 = $k[--$j]; //#5903 + $1[$k[--$j]] = _3; //#5903 + }); //#5903 + $1.textfont = "" + $1.textfont; //#5905 + $1.textsize = +$1.textsize; //#5906 + $1.textyoffset = +$1.textyoffset; //#5907 + $1.height = +$1.height; //#5908 + $1.encs = $a(["131112", "111213", "111312", "111411", "121113", "121212", "121311", "111114", "131211", "141111", "211113", "211212", "211311", "221112", "221211", "231111", "112113", "112212", "112311", "122112", "132111", "111123", "111222", "111321", "121122", "131121", "212112", "212211", "211122", "211221", "221121", "222111", "112122", "112221", "122121", "123111", "121131", "311112", "311211", "321111", "112131", "113121", "211131", "121221", "312111", "311121", "122211", "111141", "1111411"]); //#5921 + $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#5924 + $1.sft1 = -1; //#5927 + $1.sft2 = -2; //#5927 + $1.sft3 = -3; //#5927 + $1.sft4 = -4; //#5927 + var _G = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["SFT$", $1.sft1], + ["SFT%", $1.sft2], + ["SFT/", $1.sft3], + ["SFT+", $1.sft4] + ]); //#5934 + $1.fncvals = _G; //#5935 + $k[$j++] = 'msg'; //#5936 + $k[$j++] = $1.barcode; //#5936 + $k[$j++] = $1.fncvals; //#5936 + $0.parseinput(); //#5936 + var _J = $k[--$j]; //#5936 + $1[$k[--$j]] = _J; //#5936 + $1.msglen = $1.msg.length; //#5937 + if ($1.includecheck) { //#5942 + $1.sbs = $s(($1.msglen * 6) + 25); //#5940 + } else { //#5942 + $1.sbs = $s(($1.msglen * 6) + 13); //#5942 + } //#5942 + $1.txt = $a($1.msglen); //#5944 + $puti($1.sbs, 0, $get($1.encs, 47)); //#5947 + $1.checksum1 = 0; //#5949 + $1.checksum2 = 0; //#5949 + for (var _Y = 0, _X = $1.msglen - 1; _Y <= _X; _Y += 1) { //#5968 + $1.i = _Y; //#5951 + var _b = $get($1.msg, $1.i); //#5953 + $k[$j++] = _b; //#5962 + if (_b < 0) { //#5961 + $1.indx = $f(42 - $k[--$j]); //#5954 + $1.char = " "; //#5955 + } else { //#5961 + var _d = $s(1); //#5957 + $put(_d, 0, $k[--$j]); //#5957 + $1.char = _d; //#5957 + $search($1.barchars, $1.char); //#5958 + $j--; //#5959 + $1.indx = $k[--$j].length; //#5960 + $j -= 2; //#5961 + } //#5961 + $1.enc = $get($1.encs, $1.indx); //#5963 + $puti($1.sbs, ($1.i * 6) + 6, $1.enc); //#5964 + $put($1.txt, $1.i, $a([$1.char, ($1.i * 9) + 9, $1.textyoffset, $1.textfont, $1.textsize])); //#5965 + $1.checksum1 = $1.checksum1 + ((((($1.msglen - $1.i) - 1) % 20) + 1) * $1.indx); //#5966 + $1.checksum2 = $1.checksum2 + (((($1.msglen - $1.i) % 15) + 1) * $1.indx); //#5967 + } //#5967 + if ($1.includecheck) { //#5980 + $1.checksum1 = $1.checksum1 % 47; //#5972 + $1.checksum2 = ($1.checksum2 + $1.checksum1) % 47; //#5973 + $puti($1.sbs, ($1.msglen * 6) + 6, $get($1.encs, $1.checksum1)); //#5974 + $puti($1.sbs, ($1.msglen * 6) + 12, $get($1.encs, $1.checksum2)); //#5975 + $puti($1.sbs, ($1.msglen * 6) + 18, $get($1.encs, 48)); //#5977 + } else { //#5980 + $puti($1.sbs, ($1.msglen * 6) + 6, $get($1.encs, 48)); //#5980 + } //#5980 + $k[$j++] = Infinity; //#5992 + $k[$j++] = Infinity; //#5986 + var _1Q = $1.sbs; //#5986 + for (var _1R = 0, _1S = _1Q.length; _1R < _1S; _1R++) { //#5986 + $k[$j++] = $get(_1Q, _1R) - 48; //#5986 + } //#5986 + var _1U = $a(); //#5986 + $k[$j++] = Infinity; //#5987 + for (var _1W = 0, _1X = ~~(($1.sbs.length + 1) / 2); _1W < _1X; _1W++) { //#5987 + $k[$j++] = $1.height; //#5987 + } //#5987 + var _1Z = $a(); //#5987 + $k[$j++] = Infinity; //#5988 + for (var _1b = 0, _1c = ~~(($1.sbs.length + 1) / 2); _1b < _1c; _1b++) { //#5988 + $k[$j++] = 0; //#5988 + } //#5988 + var _1d = $a(); //#5988 + $k[$j++] = 'ren'; //#5991 + $k[$j++] = $0.renlinear; //#5991 + $k[$j++] = 'sbs'; //#5991 + $k[$j++] = _1U; //#5991 + $k[$j++] = 'bhs'; //#5991 + $k[$j++] = _1Z; //#5991 + $k[$j++] = 'bbs'; //#5991 + $k[$j++] = _1d; //#5991 + if ($1.includetext) { //#5991 + $k[$j++] = 'txt'; //#5990 + $k[$j++] = $1.txt; //#5990 + } //#5990 + $k[$j++] = 'opt'; //#5992 + $k[$j++] = $1.options; //#5992 + var _1h = $d(); //#5992 + $k[$j++] = _1h; //#5995 + if (!$1.dontdraw) { //#5995 + $0.renlinear(); //#5995 + } //#5995 }; $0.code93ext = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.parse = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - var _6 = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _6; - $k[$j++] = "barcode"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _9 = $k[--$j]; - $1[$k[--$j]] = _9; - $1.barlen = $1.barcode.length; - delete $1.options["parse"]; - $1.extencs = $a([ "^SFT%U", "^SFT$A", "^SFT$B", "^SFT$C", "^SFT$D", "^SFT$E", "^SFT$F", "^SFT$G", "^SFT$H", "^SFT$I", "^SFT$J", "^SFT$K", "^SFT$L", "^SFT$M", "^SFT$N", "^SFT$O", "^SFT$P", "^SFT$Q", "^SFT$R", "^SFT$S", "^SFT$T", "^SFT$U", "^SFT$V", "^SFT$W", "^SFT$X", "^SFT$Y", "^SFT$Z", "^SFT%A", "^SFT%B", "^SFT%C", "^SFT%D", "^SFT%E", " ", "^SFT/A", "^SFT/B", "^SFT/C", "^SFT/D", "^SFT/E", "^SFT/F", "^SFT/G", "^SFT/H", "^SFT/I", "^SFT/J", "^SFT/K", "^SFT/L", "-", ".", "^SFT/O", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "^SFT/Z", "^SFT%F", "^SFT%G", "^SFT%H", "^SFT%I", "^SFT%J", "^SFT%V", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "^SFT%K", "^SFT%L", "^SFT%M", "^SFT%N", "^SFT%O", "^SFT%W", "^SFT+A", "^SFT+B", "^SFT+C", "^SFT+D", "^SFT+E", "^SFT+F", "^SFT+G", "^SFT+H", "^SFT+I", "^SFT+J", "^SFT+K", "^SFT+L", "^SFT+M", "^SFT+N", "^SFT+O", "^SFT+P", "^SFT+Q", "^SFT+R", "^SFT+S", "^SFT+T", "^SFT+U", "^SFT+V", "^SFT+W", "^SFT+X", "^SFT+Y", "^SFT+Z", "^SFT%P", "^SFT%Q", "^SFT%R", "^SFT%S", "^SFT%T" ]); - $1.newcode = $s($1.barlen * 6); - $1.newtext = $s($1.barlen * 6); - $1.j = 0; - $1.k = 0; - for (var _K = 0, _J = $1.barlen - 1; _K <= _J; _K += 1) { - $1.i = _K; - $1.extchar = $get($1.extencs, $get($1.barcode, $1.i)); - $1.extlen = $1.extchar.length; - $puti($1.newcode, $1.j, $1.extchar); - $put($1.newtext, $1.k, $get($1.barcode, $1.i)); - if ($1.extlen != 1) { - $puti($1.newtext, $1.k + 1, " "); - } - $1.j = $1.j + $1.extlen; - var _g = $1.extlen == 1 ? 1 : 2; - $1.k = $1.k + _g; - } - $1.newcode = $geti($1.newcode, 0, $1.j); - $1.newtext = $geti($1.newtext, 0, $1.k); - $put($1.options, "dontdraw", true); - $put($1.options, "parsefnc", true); - $k[$j++] = "args"; - $k[$j++] = $1.newcode; - $k[$j++] = $1.options; - $0.code93(); - var _r = $k[--$j]; - $1[$k[--$j]] = _r; - if ($1.includetext) { - $1.txt = $get($1.args, "txt"); - for (var _y = 0, _x = $1.newtext.length - 1; _y <= _x; _y += 1) { - $1.i = _y; - $1.txtentry = $get($1.txt, $1.i); - $put($1.txtentry, 0, $geti($1.newtext, $1.i, 1)); - $put($1.txt, $1.i, $1.txtentry); - } - $put($1.args, "txt", $1.txt); - } - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#6026 + $1.options = $k[--$j]; //#6028 + $1.barcode = $k[--$j]; //#6029 + $1.dontdraw = false; //#6031 + $1.includetext = false; //#6032 + $1.parse = false; //#6033 + $forall($1.options, function() { //#6044 + var _3 = $k[--$j]; //#6044 + $1[$k[--$j]] = _3; //#6044 + }); //#6044 + var _6 = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#6050 + $1.fncvals = _6; //#6051 + $k[$j++] = 'barcode'; //#6052 + $k[$j++] = $1.barcode; //#6052 + $k[$j++] = $1.fncvals; //#6052 + $0.parseinput(); //#6052 + var _9 = $k[--$j]; //#6052 + $1[$k[--$j]] = _9; //#6052 + $1.barlen = $1.barcode.length; //#6053 + delete $1.options["parse"]; //#6054 + $1.extencs = $a(["^SFT%U", "^SFT$A", "^SFT$B", "^SFT$C", "^SFT$D", "^SFT$E", "^SFT$F", "^SFT$G", "^SFT$H", "^SFT$I", "^SFT$J", "^SFT$K", "^SFT$L", "^SFT$M", "^SFT$N", "^SFT$O", "^SFT$P", "^SFT$Q", "^SFT$R", "^SFT$S", "^SFT$T", "^SFT$U", "^SFT$V", "^SFT$W", "^SFT$X", "^SFT$Y", "^SFT$Z", "^SFT%A", "^SFT%B", "^SFT%C", "^SFT%D", "^SFT%E", " ", "^SFT/A", "^SFT/B", "^SFT/C", "^SFT/D", "^SFT/E", "^SFT/F", "^SFT/G", "^SFT/H", "^SFT/I", "^SFT/J", "^SFT/K", "^SFT/L", "-", ".", "^SFT/O", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "^SFT/Z", "^SFT%F", "^SFT%G", "^SFT%H", "^SFT%I", "^SFT%J", "^SFT%V", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "^SFT%K", "^SFT%L", "^SFT%M", "^SFT%N", "^SFT%O", "^SFT%W", "^SFT+A", "^SFT+B", "^SFT+C", "^SFT+D", "^SFT+E", "^SFT+F", "^SFT+G", "^SFT+H", "^SFT+I", "^SFT+J", "^SFT+K", "^SFT+L", "^SFT+M", "^SFT+N", "^SFT+O", "^SFT+P", "^SFT+Q", "^SFT+R", "^SFT+S", "^SFT+T", "^SFT+U", "^SFT+V", "^SFT+W", "^SFT+X", "^SFT+Y", "^SFT+Z", "^SFT%P", "^SFT%Q", "^SFT%R", "^SFT%S", "^SFT%T"]); //#6074 + $1.newcode = $s($1.barlen * 6); //#6076 + $1.newtext = $s($1.barlen * 6); //#6077 + $1.j = 0; //#6078 + $1.k = 0; //#6078 + for (var _K = 0, _J = $1.barlen - 1; _K <= _J; _K += 1) { //#6088 + $1.i = _K; //#6080 + $1.extchar = $get($1.extencs, $get($1.barcode, $1.i)); //#6081 + $1.extlen = $1.extchar.length; //#6082 + $puti($1.newcode, $1.j, $1.extchar); //#6083 + $put($1.newtext, $1.k, $get($1.barcode, $1.i)); //#6084 + if ($1.extlen != 1) { //#6085 + $puti($1.newtext, $1.k + 1, " "); //#6085 + } //#6085 + $1.j = $1.j + $1.extlen; //#6086 + var _g = ($1.extlen == 1) ? 1 : 2; //#6087 + $1.k = $1.k + _g; //#6087 + } //#6087 + $1.newcode = $geti($1.newcode, 0, $1.j); //#6089 + $1.newtext = $geti($1.newtext, 0, $1.k); //#6090 + $put($1.options, "dontdraw", true); //#6093 + $put($1.options, "parsefnc", true); //#6094 + $k[$j++] = 'args'; //#6095 + $k[$j++] = $1.newcode; //#6095 + $k[$j++] = $1.options; //#6095 + $0.code93(); //#6095 + var _r = $k[--$j]; //#6095 + $1[$k[--$j]] = _r; //#6095 + if ($1.includetext) { //#6107 + $1.txt = $get($1.args, "txt"); //#6099 + for (var _y = 0, _x = $1.newtext.length - 1; _y <= _x; _y += 1) { //#6105 + $1.i = _y; //#6101 + $1.txtentry = $get($1.txt, $1.i); //#6102 + $put($1.txtentry, 0, $geti($1.newtext, $1.i, 1)); //#6103 + $put($1.txt, $1.i, $1.txtentry); //#6104 + } //#6104 + $put($1.args, "txt", $1.txt); //#6106 + } //#6106 + $put($1.args, "opt", $1.options); //#6108 + $k[$j++] = $1.args; //#6111 + if (!$1.dontdraw) { //#6111 + $0.renlinear(); //#6111 + } //#6111 }; $0.interleaved2of5 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includecheck = false; - $1.includetext = false; - $1.includecheckintext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $forall($1.barcode, function() { - var _A = $k[--$j]; - if (_A < 48 || _A > 57) { - $k[$j++] = "bwipp.interleaved2of5badCharacter"; - $k[$j++] = "Interleaved 2 of 5 must contain only digits"; - $0.raiseerror(); - } - }); - $1.barlen = $1.barcode.length; - if ($1.barlen % 2 == 0 && $1.includecheck || $1.barlen % 2 != 0 && !$1.includecheck) { - $1.pad = $s($1.barlen + 1); - $put($1.pad, 0, 48); - $puti($1.pad, 1, $1.barcode); - $1.barcode = $1.pad; - $1.barlen = $1.barlen + 1; - } - if ($1.includecheck) { - $1.checksum = 0; - for (var _Q = 0, _P = $1.barlen - 1; _Q <= _P; _Q += 1) { - $1.i = _Q; - if ($1.i % 2 == 0) { - $1.checksum = $1.checksum + ($get($1.barcode, $1.i) - 48) * 3; - } else { - $1.checksum = $1.checksum + ($get($1.barcode, $1.i) - 48); - } - } - $1.checksum = (10 - $1.checksum % 10) % 10; - $1.pad = $s($1.barlen + 1); - $puti($1.pad, 0, $1.barcode); - $put($1.pad, $1.barlen, $1.checksum + 48); - $1.barcode = $1.pad; - $1.barlen = $1.barlen + 1; - } - $1.encs = $a([ "11221", "21112", "12112", "22111", "11212", "21211", "12211", "11122", "21121", "12121", "1111", "2111" ]); - $1.barchars = "0123456789"; - $1.sbs = $s($1.barlen * 5 + 8); - $1.txt = $a($1.barlen); - $puti($1.sbs, 0, $get($1.encs, 10)); - for (var _u = 0, _t = $1.barlen - 1; _u <= _t; _u += 2) { - $1.i = _u; - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enca = $get($1.encs, $1.indx); - $search($1.barchars, $geti($1.barcode, $1.i + 1, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.encb = $get($1.encs, $1.indx); - $1.intl = $s($1.enca.length * 2); - for (var _1F = 0, _1E = $1.enca.length - 1; _1F <= _1E; _1F += 1) { - $1.j = _1F; - $1.achar = $get($1.enca, $1.j); - $1.bchar = $get($1.encb, $1.j); - $put($1.intl, $1.j * 2, $1.achar); - $put($1.intl, $1.j * 2 + 1, $1.bchar); - } - $puti($1.sbs, $1.i * 5 + 4, $1.intl); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $1.i * 9 + 4, $1.textyoffset, $1.textfont, $1.textsize ])); - if ($1.includecheck && !$1.includecheckintext && $1.barlen - 2 == $1.i) { - $put($1.txt, $1.i + 1, $a([ " ", ($1.i + 1) * 9 + 4, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $1.i + 1, $a([ $geti($1.barcode, $1.i + 1, 1), ($1.i + 1) * 9 + 4, $1.textyoffset, $1.textfont, $1.textsize ])); - } - } - $puti($1.sbs, $1.barlen * 5 + 4, $get($1.encs, 11)); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _24 = $1.sbs; - for (var _25 = 0, _26 = _24.length; _25 < _26; _25++) { - $k[$j++] = $get(_24, _25) - 48; - } - var _28 = $a(); - $k[$j++] = Infinity; - for (var _2A = 0, _2B = ~~(($1.sbs.length + 1) / 2); _2A < _2B; _2A++) { - $k[$j++] = $1.height; - } - var _2D = $a(); - $k[$j++] = Infinity; - for (var _2F = 0, _2G = ~~(($1.sbs.length + 1) / 2); _2F < _2G; _2F++) { - $k[$j++] = 0; - } - var _2H = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _28; - $k[$j++] = "bhs"; - $k[$j++] = _2D; - $k[$j++] = "bbs"; - $k[$j++] = _2H; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "barratio"; - $k[$j++] = 2; - $k[$j++] = "spaceratio"; - $k[$j++] = 2; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _2L = $d(); - $k[$j++] = _2L; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#6140 + $1.options = $k[--$j]; //#6142 + $1.barcode = $k[--$j]; //#6143 + $1.dontdraw = false; //#6145 + $1.includecheck = false; //#6146 + $1.includetext = false; //#6147 + $1.includecheckintext = false; //#6148 + $1.textfont = "OCR-B"; //#6149 + $1.textsize = 10; //#6150 + $1.textyoffset = -8; //#6151 + $1.height = 1; //#6152 + $forall($1.options, function() { //#6163 + var _3 = $k[--$j]; //#6163 + $1[$k[--$j]] = _3; //#6163 + }); //#6163 + $1.textfont = "" + $1.textfont; //#6165 + $1.textsize = +$1.textsize; //#6166 + $1.textyoffset = +$1.textyoffset; //#6167 + $1.height = +$1.height; //#6168 + $forall($1.barcode, function() { //#6175 + var _A = $k[--$j]; //#6172 + if ((_A < 48) || (_A > 57)) { //#6174 + $k[$j++] = 'bwipp.interleaved2of5badCharacter'; //#6173 + $k[$j++] = "Interleaved 2 of 5 must contain only digits"; //#6173 + $0.raiseerror(); //#6173 + } //#6173 + }); //#6173 + $1.barlen = $1.barcode.length; //#6177 + if (((($1.barlen % 2) == 0) && $1.includecheck) || ((($1.barlen % 2) != 0) && (!$1.includecheck))) { //#6188 + $1.pad = $s($1.barlen + 1); //#6183 + $put($1.pad, 0, 48); //#6184 + $puti($1.pad, 1, $1.barcode); //#6185 + $1.barcode = $1.pad; //#6186 + $1.barlen = $1.barlen + 1; //#6187 + } //#6187 + if ($1.includecheck) { //#6207 + $1.checksum = 0; //#6192 + for (var _Q = 0, _P = $1.barlen - 1; _Q <= _P; _Q += 1) { //#6200 + $1.i = _Q; //#6194 + if (($1.i % 2) == 0) { //#6198 + $1.checksum = $1.checksum + (($get($1.barcode, $1.i) - 48) * 3); //#6196 + } else { //#6198 + $1.checksum = $1.checksum + ($get($1.barcode, $1.i) - 48); //#6198 + } //#6198 + } //#6198 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#6201 + $1.pad = $s($1.barlen + 1); //#6202 + $puti($1.pad, 0, $1.barcode); //#6203 + $put($1.pad, $1.barlen, $1.checksum + 48); //#6204 + $1.barcode = $1.pad; //#6205 + $1.barlen = $1.barlen + 1; //#6206 + } //#6206 + $1.encs = $a(["11221", "21112", "12112", "22111", "11212", "21211", "12211", "11122", "21121", "12121", "1111", "2111"]); //#6214 + $1.barchars = "0123456789"; //#6217 + $1.sbs = $s(($1.barlen * 5) + 8); //#6218 + $1.txt = $a($1.barlen); //#6219 + $puti($1.sbs, 0, $get($1.encs, 10)); //#6222 + for (var _u = 0, _t = $1.barlen - 1; _u <= _t; _u += 2) { //#6256 + $1.i = _u; //#6225 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#6227 + $j--; //#6228 + $1.indx = $k[--$j].length; //#6229 + $j -= 2; //#6230 + $1.enca = $get($1.encs, $1.indx); //#6231 + $search($1.barchars, $geti($1.barcode, $1.i + 1, 1)); //#6233 + $j--; //#6234 + $1.indx = $k[--$j].length; //#6235 + $j -= 2; //#6236 + $1.encb = $get($1.encs, $1.indx); //#6237 + $1.intl = $s($1.enca.length * 2); //#6240 + for (var _1F = 0, _1E = $1.enca.length - 1; _1F <= _1E; _1F += 1) { //#6247 + $1.j = _1F; //#6242 + $1.achar = $get($1.enca, $1.j); //#6243 + $1.bchar = $get($1.encb, $1.j); //#6244 + $put($1.intl, $1.j * 2, $1.achar); //#6245 + $put($1.intl, ($1.j * 2) + 1, $1.bchar); //#6246 + } //#6246 + $puti($1.sbs, ($1.i * 5) + 4, $1.intl); //#6249 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), ($1.i * 9) + 4, $1.textyoffset, $1.textfont, $1.textsize])); //#6250 + if (($1.includecheck && (!$1.includecheckintext)) && (($1.barlen - 2) == $1.i)) { //#6254 + $put($1.txt, $1.i + 1, $a([" ", (($1.i + 1) * 9) + 4, $1.textyoffset, $1.textfont, $1.textsize])); //#6252 + } else { //#6254 + $put($1.txt, $1.i + 1, $a([$geti($1.barcode, $1.i + 1, 1), (($1.i + 1) * 9) + 4, $1.textyoffset, $1.textfont, $1.textsize])); //#6254 + } //#6254 + } //#6254 + $puti($1.sbs, ($1.barlen * 5) + 4, $get($1.encs, 11)); //#6259 + $k[$j++] = Infinity; //#6272 + $k[$j++] = Infinity; //#6264 + var _24 = $1.sbs; //#6264 + for (var _25 = 0, _26 = _24.length; _25 < _26; _25++) { //#6264 + $k[$j++] = $get(_24, _25) - 48; //#6264 + } //#6264 + var _28 = $a(); //#6264 + $k[$j++] = Infinity; //#6265 + for (var _2A = 0, _2B = ~~(($1.sbs.length + 1) / 2); _2A < _2B; _2A++) { //#6265 + $k[$j++] = $1.height; //#6265 + } //#6265 + var _2D = $a(); //#6265 + $k[$j++] = Infinity; //#6266 + for (var _2F = 0, _2G = ~~(($1.sbs.length + 1) / 2); _2F < _2G; _2F++) { //#6266 + $k[$j++] = 0; //#6266 + } //#6266 + var _2H = $a(); //#6266 + $k[$j++] = 'ren'; //#6269 + $k[$j++] = $0.renlinear; //#6269 + $k[$j++] = 'sbs'; //#6269 + $k[$j++] = _28; //#6269 + $k[$j++] = 'bhs'; //#6269 + $k[$j++] = _2D; //#6269 + $k[$j++] = 'bbs'; //#6269 + $k[$j++] = _2H; //#6269 + if ($1.includetext) { //#6269 + $k[$j++] = 'txt'; //#6268 + $k[$j++] = $1.txt; //#6268 + } //#6268 + $k[$j++] = 'barratio'; //#6272 + $k[$j++] = 2; //#6272 + $k[$j++] = 'spaceratio'; //#6272 + $k[$j++] = 2; //#6272 + $k[$j++] = 'opt'; //#6272 + $k[$j++] = $1.options; //#6272 + var _2L = $d(); //#6272 + $k[$j++] = _2L; //#6275 + if (!$1.dontdraw) { //#6275 + $0.renlinear(); //#6275 + } //#6275 }; $0.itf14 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.includecheckintext = true; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = 3; - $1.height = .5; - $1.showborder = true; - $1.borderwidth = 4; - $1.borderleft = 15; - $1.borderright = 15; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.borderwidth = +$1.borderwidth; - $1.borderleft = +$1.borderleft; - $1.borderright = +$1.borderright; - $1.text = $1.barcode; - var _E = $1.barcode; - $k[$j++] = $s(_E.length); - $k[$j++] = 0; - $forall(_E, function() { - var _G = $k[--$j]; - $k[$j++] = _G; - if (_G != 32) { - var _H = $k[--$j]; - var _I = $k[--$j]; - var _J = $k[--$j]; - $put(_J, _I, _H); - $k[$j++] = _J; - $k[$j++] = $f(_I + 1); - } else { - $j--; - } - }); - var _K = $k[--$j]; - $1.barcode = $geti($k[--$j], 0, _K); - $1.hasspace = $1.text.length != $1.barcode.length; - if ($1.barcode.length != 13 && $1.barcode.length != 14) { - $k[$j++] = "bwipp.itf14badLength"; - $k[$j++] = "ITF-14 must be 13 or 14 digits"; - $0.raiseerror(); - } - var _R = $1.barcode; - for (var _S = 0, _T = _R.length; _S < _T; _S++) { - var _U = $get(_R, _S); - if (_U < 48 || _U > 57) { - $k[$j++] = "bwipp.itf14badCharacter"; - $k[$j++] = "ITF-14 must contain only digits"; - $0.raiseerror(); - } - } - $1.checksum = 0; - for (var _V = 0; _V <= 12; _V += 1) { - $1.i = _V; - $k[$j++] = "checksum"; - $k[$j++] = $1.checksum; - $k[$j++] = $f($get($1.barcode, $1.i) - 48); - if ($1.i % 2 == 0) { - var _b = $k[--$j]; - $k[$j++] = _b * 3; - } - var _c = $k[--$j]; - var _d = $k[--$j]; - $1[$k[--$j]] = $f(_d + _c); - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 14) { - if ($get($1.barcode, 13) != $1.checksum + 48) { - $k[$j++] = "bwipp.itf14badCheckDigit"; - $k[$j++] = "Incorrect ITF-14 check digit provided"; - $0.raiseerror(); - } - } else { - var _k = $s(14); - $puti(_k, 0, $1.barcode); - $put(_k, 13, $1.checksum + 48); - $1.barcode = _k; - var _p = $1.hasspace ? 2 : 1; - var _q = $s($1.text.length + _p); - $puti(_q, _q.length - 2, " "); - $put(_q, _q.length - 1, $1.checksum + 48); - $puti(_q, 0, $1.text); - $1.text = _q; - } - $put($1.options, "dontdraw", true); - $put($1.options, "showborder", $1.showborder); - $put($1.options, "borderwidth", $1.borderwidth); - $put($1.options, "borderleft", $1.borderleft); - $put($1.options, "borderright", $1.borderright); - $put($1.options, "height", $1.height); - $put($1.options, "textyoffset", $1.textyoffset); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.interleaved2of5(); - var _18 = $k[--$j]; - $1[$k[--$j]] = _18; - $put($1.args, "txt", $a([ $a([ $1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ]) ])); - $put($1.args, "textxalign", "center"); - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#6305 + $1.options = $k[--$j]; //#6307 + $1.barcode = $k[--$j]; //#6308 + $1.dontdraw = false; //#6310 + $1.includetext = false; //#6311 + $1.includecheckintext = true; //#6312 + $1.textfont = "OCR-B"; //#6313 + $1.textsize = 10; //#6314 + $1.textxoffset = 0; //#6315 + $1.textyoffset = 3; //#6316 + $1.height = 0.5; //#6317 + $1.showborder = true; //#6318 + $1.borderwidth = 4; //#6319 + $1.borderleft = 15; //#6320 + $1.borderright = 15; //#6321 + $forall($1.options, function() { //#6332 + var _3 = $k[--$j]; //#6332 + $1[$k[--$j]] = _3; //#6332 + }); //#6332 + $1.textfont = "" + $1.textfont; //#6334 + $1.textsize = +$1.textsize; //#6335 + $1.textxoffset = +$1.textxoffset; //#6336 + $1.textyoffset = +$1.textyoffset; //#6337 + $1.height = +$1.height; //#6338 + $1.borderwidth = +$1.borderwidth; //#6339 + $1.borderleft = +$1.borderleft; //#6340 + $1.borderright = +$1.borderright; //#6341 + $1.text = $1.barcode; //#6344 + var _E = $1.barcode; //#6345 + $k[$j++] = $s(_E.length); //#6346 + $k[$j++] = 0; //#6346 + $forall(_E, function() { //#6346 + var _G = $k[--$j]; //#6346 + $k[$j++] = _G; //#6346 + if (_G != 32) { //#6346 + var _H = $k[--$j]; //#6346 + var _I = $k[--$j]; //#6346 + var _J = $k[--$j]; //#6346 + $put(_J, _I, _H); //#6346 + $k[$j++] = _J; //#6346 + $k[$j++] = $f(_I + 1); //#6346 + } else { //#6346 + $j--; //#6346 + } //#6346 + }); //#6346 + var _K = $k[--$j]; //#6347 + $1.barcode = $geti($k[--$j], 0, _K); //#6347 + $1.hasspace = $1.text.length != $1.barcode.length; //#6348 + if (($1.barcode.length != 13) && ($1.barcode.length != 14)) { //#6353 + $k[$j++] = 'bwipp.itf14badLength'; //#6352 + $k[$j++] = "ITF-14 must be 13 or 14 digits"; //#6352 + $0.raiseerror(); //#6352 + } //#6352 + var _R = $1.barcode; //#6354 + for (var _S = 0, _T = _R.length; _S < _T; _S++) { //#6358 + var _U = $get(_R, _S); //#6358 + if ((_U < 48) || (_U > 57)) { //#6357 + $k[$j++] = 'bwipp.itf14badCharacter'; //#6356 + $k[$j++] = "ITF-14 must contain only digits"; //#6356 + $0.raiseerror(); //#6356 + } //#6356 + } //#6356 + $1.checksum = 0; //#6361 + for (var _V = 0; _V <= 12; _V += 1) { //#6365 + $1.i = _V; //#6363 + $k[$j++] = 'checksum'; //#6364 + $k[$j++] = $1.checksum; //#6364 + $k[$j++] = $f($get($1.barcode, $1.i) - 48); //#6364 + if (($1.i % 2) == 0) { //#6364 + var _b = $k[--$j]; //#6364 + $k[$j++] = _b * 3; //#6364 + } //#6364 + var _c = $k[--$j]; //#6364 + var _d = $k[--$j]; //#6364 + $1[$k[--$j]] = $f(_d + _c); //#6364 + } //#6364 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#6366 + if ($1.barcode.length == 14) { //#6380 + if ($get($1.barcode, 13) != ($1.checksum + 48)) { //#6370 + $k[$j++] = 'bwipp.itf14badCheckDigit'; //#6369 + $k[$j++] = "Incorrect ITF-14 check digit provided"; //#6369 + $0.raiseerror(); //#6369 + } //#6369 + } else { //#6380 + var _k = $s(14); //#6372 + $puti(_k, 0, $1.barcode); //#6373 + $put(_k, 13, $1.checksum + 48); //#6374 + $1.barcode = _k; //#6375 + var _p = $1.hasspace ? 2 : 1; //#6376 + var _q = $s($1.text.length + _p); //#6376 + $puti(_q, _q.length - 2, " "); //#6377 + $put(_q, _q.length - 1, $1.checksum + 48); //#6378 + $puti(_q, 0, $1.text); //#6379 + $1.text = _q; //#6380 + } //#6380 + $put($1.options, "dontdraw", true); //#6384 + $put($1.options, "showborder", $1.showborder); //#6385 + $put($1.options, "borderwidth", $1.borderwidth); //#6386 + $put($1.options, "borderleft", $1.borderleft); //#6387 + $put($1.options, "borderright", $1.borderright); //#6388 + $put($1.options, "height", $1.height); //#6389 + $put($1.options, "textyoffset", $1.textyoffset); //#6390 + $k[$j++] = 'args'; //#6391 + $k[$j++] = $1.barcode; //#6391 + $k[$j++] = $1.options; //#6391 + $0.interleaved2of5(); //#6391 + var _18 = $k[--$j]; //#6391 + $1[$k[--$j]] = _18; //#6391 + $put($1.args, "txt", $a([$a([$1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])])); //#6393 + $put($1.args, "textxalign", "center"); //#6394 + $put($1.args, "opt", $1.options); //#6395 + $k[$j++] = $1.args; //#6398 + if (!$1.dontdraw) { //#6398 + $0.renlinear(); //#6398 + } //#6398 }; $0.identcode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - if ($1.barcode.length != 11 && $1.barcode.length != 12) { - $k[$j++] = "bwipp.identcodeBadLength"; - $k[$j++] = "Deutsche Post Identcode must be 11 or 12 digits"; - $0.raiseerror(); - } - $forall($1.barcode, function() { - var _D = $k[--$j]; - if (_D < 48 || _D > 57) { - $k[$j++] = "bwipp.identcodeBadCharacter"; - $k[$j++] = "Deutsche Post Identcode must contain only digits"; - $0.raiseerror(); - } - }); - $1.checksum = 0; - for (var _E = 0; _E <= 10; _E += 1) { - $1.i = _E; - $k[$j++] = "checksum"; - $k[$j++] = $1.checksum; - $k[$j++] = $f($get($1.barcode, $1.i) - 48); - if ($1.i % 2 == 0) { - var _K = $k[--$j]; - $k[$j++] = _K * 4; - } else { - var _L = $k[--$j]; - $k[$j++] = _L * 9; - } - var _M = $k[--$j]; - var _N = $k[--$j]; - $1[$k[--$j]] = $f(_N + _M); - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 12) { - if ($get($1.barcode, 11) != $1.checksum + 48) { - $k[$j++] = "bwipp.identcodeBadCheckDigit"; - $k[$j++] = "Incorrect Deutsche Post Identcode check digit provided"; - $0.raiseerror(); - } - } - var _U = $s(12); - $puti(_U, 0, $1.barcode); - $put(_U, 11, $1.checksum + 48); - $1.barcode = _U; - $1.text = $strcpy($s(16), " . . "); - $puti($1.text, 0, $geti($1.barcode, 0, 2)); - $puti($1.text, 3, $geti($1.barcode, 2, 3)); - $puti($1.text, 7, $geti($1.barcode, 5, 3)); - $puti($1.text, 11, $geti($1.barcode, 8, 3)); - $puti($1.text, 15, $geti($1.barcode, 11, 1)); - $put($1.options, "dontdraw", true); - $put($1.options, "includecheck", false); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.interleaved2of5(); - var _s = $k[--$j]; - $1[$k[--$j]] = _s; - $put($1.args, "txt", $a([ $a([ $1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ]) ])); - $put($1.args, "textxalign", "center"); - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#6428 + $1.options = $k[--$j]; //#6430 + $1.barcode = $k[--$j]; //#6431 + $1.dontdraw = false; //#6433 + $1.includetext = false; //#6434 + $1.textfont = "OCR-B"; //#6435 + $1.textsize = 10; //#6436 + $1.textxoffset = 0; //#6437 + $1.textyoffset = -8; //#6438 + $1.height = 1; //#6439 + $forall($1.options, function() { //#6450 + var _3 = $k[--$j]; //#6450 + $1[$k[--$j]] = _3; //#6450 + }); //#6450 + $1.textfont = "" + $1.textfont; //#6452 + $1.textsize = +$1.textsize; //#6453 + $1.textxoffset = +$1.textxoffset; //#6454 + $1.textyoffset = +$1.textyoffset; //#6455 + $1.height = +$1.height; //#6456 + if (($1.barcode.length != 11) && ($1.barcode.length != 12)) { //#6461 + $k[$j++] = 'bwipp.identcodeBadLength'; //#6460 + $k[$j++] = "Deutsche Post Identcode must be 11 or 12 digits"; //#6460 + $0.raiseerror(); //#6460 + } //#6460 + $forall($1.barcode, function() { //#6466 + var _D = $k[--$j]; //#6463 + if ((_D < 48) || (_D > 57)) { //#6465 + $k[$j++] = 'bwipp.identcodeBadCharacter'; //#6464 + $k[$j++] = "Deutsche Post Identcode must contain only digits"; //#6464 + $0.raiseerror(); //#6464 + } //#6464 + }); //#6464 + $1.checksum = 0; //#6469 + for (var _E = 0; _E <= 10; _E += 1) { //#6473 + $1.i = _E; //#6471 + $k[$j++] = 'checksum'; //#6472 + $k[$j++] = $1.checksum; //#6472 + $k[$j++] = $f($get($1.barcode, $1.i) - 48); //#6472 + if (($1.i % 2) == 0) { //#6472 + var _K = $k[--$j]; //#6472 + $k[$j++] = _K * 4; //#6472 + } else { //#6472 + var _L = $k[--$j]; //#6472 + $k[$j++] = _L * 9; //#6472 + } //#6472 + var _M = $k[--$j]; //#6472 + var _N = $k[--$j]; //#6472 + $1[$k[--$j]] = $f(_N + _M); //#6472 + } //#6472 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#6474 + if ($1.barcode.length == 12) { //#6479 + if ($get($1.barcode, 11) != ($1.checksum + 48)) { //#6478 + $k[$j++] = 'bwipp.identcodeBadCheckDigit'; //#6477 + $k[$j++] = "Incorrect Deutsche Post Identcode check digit provided"; //#6477 + $0.raiseerror(); //#6477 + } //#6477 + } //#6477 + var _U = $s(12); //#6480 + $puti(_U, 0, $1.barcode); //#6481 + $put(_U, 11, $1.checksum + 48); //#6482 + $1.barcode = _U; //#6483 + $1.text = $strcpy($s(16), " . . "); //#6486 + $puti($1.text, 0, $geti($1.barcode, 0, 2)); //#6487 + $puti($1.text, 3, $geti($1.barcode, 2, 3)); //#6488 + $puti($1.text, 7, $geti($1.barcode, 5, 3)); //#6489 + $puti($1.text, 11, $geti($1.barcode, 8, 3)); //#6490 + $puti($1.text, 15, $geti($1.barcode, 11, 1)); //#6491 + $put($1.options, "dontdraw", true); //#6494 + $put($1.options, "includecheck", false); //#6495 + $k[$j++] = 'args'; //#6496 + $k[$j++] = $1.barcode; //#6496 + $k[$j++] = $1.options; //#6496 + $0.interleaved2of5(); //#6496 + var _s = $k[--$j]; //#6496 + $1[$k[--$j]] = _s; //#6496 + $put($1.args, "txt", $a([$a([$1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])])); //#6498 + $put($1.args, "textxalign", "center"); //#6499 + $put($1.args, "opt", $1.options); //#6500 + $k[$j++] = $1.args; //#6503 + if (!$1.dontdraw) { //#6503 + $0.renlinear(); //#6503 + } //#6503 }; $0.leitcode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - if ($1.barcode.length != 13 && $1.barcode.length != 14) { - $k[$j++] = "bwipp.leitcodeBadLength"; - $k[$j++] = "Deutsche Post Leitcode must be 13 or 14 digits"; - $0.raiseerror(); - } - $forall($1.barcode, function() { - var _D = $k[--$j]; - if (_D < 48 || _D > 57) { - $k[$j++] = "bwipp.leitcodeBadCharacter"; - $k[$j++] = "Deutsche Post Leitcode must contain only digits"; - $0.raiseerror(); - } - }); - $1.checksum = 0; - for (var _E = 0; _E <= 12; _E += 1) { - $1.i = _E; - $k[$j++] = "checksum"; - $k[$j++] = $1.checksum; - $k[$j++] = $f($get($1.barcode, $1.i) - 48); - if ($1.i % 2 == 0) { - var _K = $k[--$j]; - $k[$j++] = _K * 4; - } else { - var _L = $k[--$j]; - $k[$j++] = _L * 9; - } - var _M = $k[--$j]; - var _N = $k[--$j]; - $1[$k[--$j]] = $f(_N + _M); - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 14) { - if ($get($1.barcode, 13) != $1.checksum + 48) { - $k[$j++] = "bwipp.leitcodeBadCheckDigit"; - $k[$j++] = "Incorrect Deutsche Post Leitcode check digit provided"; - $0.raiseerror(); - } - } - var _U = $s(14); - $puti(_U, 0, $1.barcode); - $put(_U, 13, $1.checksum + 48); - $1.barcode = _U; - $1.text = $strcpy($s(18), " . . . "); - $puti($1.text, 0, $geti($1.barcode, 0, 5)); - $puti($1.text, 6, $geti($1.barcode, 5, 3)); - $puti($1.text, 10, $geti($1.barcode, 8, 3)); - $puti($1.text, 14, $geti($1.barcode, 11, 2)); - $puti($1.text, 17, $geti($1.barcode, 13, 1)); - $put($1.options, "dontdraw", true); - $put($1.options, "includecheck", false); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.interleaved2of5(); - var _s = $k[--$j]; - $1[$k[--$j]] = _s; - $put($1.args, "txt", $a([ $a([ $1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ]) ])); - $put($1.args, "textxalign", "center"); - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#6533 + $1.options = $k[--$j]; //#6535 + $1.barcode = $k[--$j]; //#6536 + $1.dontdraw = false; //#6538 + $1.includetext = false; //#6539 + $1.textfont = "OCR-B"; //#6540 + $1.textsize = 10; //#6541 + $1.textxoffset = 0; //#6542 + $1.textyoffset = -8; //#6543 + $1.height = 1; //#6544 + $forall($1.options, function() { //#6555 + var _3 = $k[--$j]; //#6555 + $1[$k[--$j]] = _3; //#6555 + }); //#6555 + $1.textfont = "" + $1.textfont; //#6557 + $1.textsize = +$1.textsize; //#6558 + $1.textxoffset = +$1.textxoffset; //#6559 + $1.textyoffset = +$1.textyoffset; //#6560 + $1.height = +$1.height; //#6561 + if (($1.barcode.length != 13) && ($1.barcode.length != 14)) { //#6566 + $k[$j++] = 'bwipp.leitcodeBadLength'; //#6565 + $k[$j++] = "Deutsche Post Leitcode must be 13 or 14 digits"; //#6565 + $0.raiseerror(); //#6565 + } //#6565 + $forall($1.barcode, function() { //#6571 + var _D = $k[--$j]; //#6568 + if ((_D < 48) || (_D > 57)) { //#6570 + $k[$j++] = 'bwipp.leitcodeBadCharacter'; //#6569 + $k[$j++] = "Deutsche Post Leitcode must contain only digits"; //#6569 + $0.raiseerror(); //#6569 + } //#6569 + }); //#6569 + $1.checksum = 0; //#6574 + for (var _E = 0; _E <= 12; _E += 1) { //#6578 + $1.i = _E; //#6576 + $k[$j++] = 'checksum'; //#6577 + $k[$j++] = $1.checksum; //#6577 + $k[$j++] = $f($get($1.barcode, $1.i) - 48); //#6577 + if (($1.i % 2) == 0) { //#6577 + var _K = $k[--$j]; //#6577 + $k[$j++] = _K * 4; //#6577 + } else { //#6577 + var _L = $k[--$j]; //#6577 + $k[$j++] = _L * 9; //#6577 + } //#6577 + var _M = $k[--$j]; //#6577 + var _N = $k[--$j]; //#6577 + $1[$k[--$j]] = $f(_N + _M); //#6577 + } //#6577 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#6579 + if ($1.barcode.length == 14) { //#6584 + if ($get($1.barcode, 13) != ($1.checksum + 48)) { //#6583 + $k[$j++] = 'bwipp.leitcodeBadCheckDigit'; //#6582 + $k[$j++] = "Incorrect Deutsche Post Leitcode check digit provided"; //#6582 + $0.raiseerror(); //#6582 + } //#6582 + } //#6582 + var _U = $s(14); //#6585 + $puti(_U, 0, $1.barcode); //#6586 + $put(_U, 13, $1.checksum + 48); //#6587 + $1.barcode = _U; //#6588 + $1.text = $strcpy($s(18), " . . . "); //#6591 + $puti($1.text, 0, $geti($1.barcode, 0, 5)); //#6592 + $puti($1.text, 6, $geti($1.barcode, 5, 3)); //#6593 + $puti($1.text, 10, $geti($1.barcode, 8, 3)); //#6594 + $puti($1.text, 14, $geti($1.barcode, 11, 2)); //#6595 + $puti($1.text, 17, $geti($1.barcode, 13, 1)); //#6596 + $put($1.options, "dontdraw", true); //#6599 + $put($1.options, "includecheck", false); //#6600 + $k[$j++] = 'args'; //#6601 + $k[$j++] = $1.barcode; //#6601 + $k[$j++] = $1.options; //#6601 + $0.interleaved2of5(); //#6601 + var _s = $k[--$j]; //#6601 + $1[$k[--$j]] = _s; //#6601 + $put($1.args, "txt", $a([$a([$1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])])); //#6603 + $put($1.args, "textxalign", "center"); //#6604 + $put($1.args, "opt", $1.options); //#6605 + $k[$j++] = $1.args; //#6608 + if (!$1.dontdraw) { //#6608 + $0.renlinear(); //#6608 + } //#6608 }; $0.databaromni = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.height = 33 / 72; - $1.linkage = false; - $1.format = "omni"; - $1.barxmult = 33; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - if ($eq($1.format, "truncated")) { - $1.height = 13 / 72; - } - $1.height = +$1.height; - $1.barxmult = ~~$1.barxmult; - if ($ne($geti($1.barcode, 0, 4), "(01)")) { - $k[$j++] = "bwipp.databaromniBadAI"; - $k[$j++] = "GS1 DataBar Omnidirectional must begin with (01) application identifier"; - $0.raiseerror(); - } - if ($1.barcode.length != 17 && $1.barcode.length != 18) { - $k[$j++] = "bwipp.databaromniBadLength"; - $k[$j++] = "GS1 DataBar Omnidirectional must be 13 or 14 digits"; - $0.raiseerror(); - } - var _E = $geti($1.barcode, 4, $1.barcode.length - 4); - for (var _F = 0, _G = _E.length; _F < _G; _F++) { - var _H = $get(_E, _F); - if (_H < 48 || _H > 57) { - $k[$j++] = "bwipp.databaromniBadCharacter"; - $k[$j++] = "GS1 DataBar Omnidirectional must contain only digits"; - $0.raiseerror(); - } - } - $1.checksum = 0; - for (var _I = 0; _I <= 12; _I += 1) { - $1.i = _I; - $k[$j++] = "checksum"; - $k[$j++] = $1.checksum; - $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); - if ($1.i % 2 == 0) { - var _O = $k[--$j]; - $k[$j++] = _O * 3; - } - var _P = $k[--$j]; - var _Q = $k[--$j]; - $1[$k[--$j]] = $f(_Q + _P); - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 18) { - if ($get($1.barcode, 17) != $1.checksum + 48) { - $k[$j++] = "bwipp.databaromniBadCheckDigit"; - $k[$j++] = "Incorrect GS1 DataBar Omnidirectional check digit provided"; - $0.raiseerror(); - } - } - var _X = $s(18); - $puti(_X, 0, $1.barcode); - $put(_X, 17, $1.checksum + 48); - $1.barcode = _X; - $1.txt = $a($1.barcode.length); - for (var _e = 0, _d = $1.barcode.length - 1; _e <= _d; _e += 1) { - $1.i = _e; - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), 0, 0, "", 0 ])); - } + var $1 = {}; //#6638 + $1.options = $k[--$j]; //#6640 + $1.barcode = $k[--$j]; //#6641 + $1.dontdraw = false; //#6643 + $1.height = 33 / 72; //#6644 + $1.linkage = false; //#6645 + $1.format = "omni"; //#6646 + $1.barxmult = 33; //#6647 + $forall($1.options, function() { //#6658 + var _3 = $k[--$j]; //#6658 + $1[$k[--$j]] = _3; //#6658 + }); //#6658 + if ($eq($1.format, "truncated")) { //#6660 + $1.height = 13 / 72; //#6660 + } //#6660 + $1.height = +$1.height; //#6661 + $1.barxmult = ~~$1.barxmult; //#6662 + if ($ne($geti($1.barcode, 0, 4), "(01)")) { //#6667 + $k[$j++] = 'bwipp.databaromniBadAI'; //#6666 + $k[$j++] = "GS1 DataBar Omnidirectional must begin with (01) application identifier"; //#6666 + $0.raiseerror(); //#6666 + } //#6666 + if (($1.barcode.length != 17) && ($1.barcode.length != 18)) { //#6670 + $k[$j++] = 'bwipp.databaromniBadLength'; //#6669 + $k[$j++] = "GS1 DataBar Omnidirectional must be 13 or 14 digits"; //#6669 + $0.raiseerror(); //#6669 + } //#6669 + var _E = $geti($1.barcode, 4, $1.barcode.length - 4); //#6671 + for (var _F = 0, _G = _E.length; _F < _G; _F++) { //#6675 + var _H = $get(_E, _F); //#6675 + if ((_H < 48) || (_H > 57)) { //#6674 + $k[$j++] = 'bwipp.databaromniBadCharacter'; //#6673 + $k[$j++] = "GS1 DataBar Omnidirectional must contain only digits"; //#6673 + $0.raiseerror(); //#6673 + } //#6673 + } //#6673 + $1.checksum = 0; //#6678 + for (var _I = 0; _I <= 12; _I += 1) { //#6682 + $1.i = _I; //#6680 + $k[$j++] = 'checksum'; //#6681 + $k[$j++] = $1.checksum; //#6681 + $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); //#6681 + if (($1.i % 2) == 0) { //#6681 + var _O = $k[--$j]; //#6681 + $k[$j++] = _O * 3; //#6681 + } //#6681 + var _P = $k[--$j]; //#6681 + var _Q = $k[--$j]; //#6681 + $1[$k[--$j]] = $f(_Q + _P); //#6681 + } //#6681 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#6683 + if ($1.barcode.length == 18) { //#6688 + if ($get($1.barcode, 17) != ($1.checksum + 48)) { //#6687 + $k[$j++] = 'bwipp.databaromniBadCheckDigit'; //#6686 + $k[$j++] = "Incorrect GS1 DataBar Omnidirectional check digit provided"; //#6686 + $0.raiseerror(); //#6686 + } //#6686 + } //#6686 + var _X = $s(18); //#6689 + $puti(_X, 0, $1.barcode); //#6690 + $put(_X, 17, $1.checksum + 48); //#6691 + $1.barcode = _X; //#6692 + $1.txt = $a($1.barcode.length); //#6695 + for (var _e = 0, _d = $1.barcode.length - 1; _e <= _d; _e += 1) { //#6699 + $1.i = _e; //#6697 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), 0, 0, "", 0])); //#6698 + } //#6698 $1.ncr = function() { - var _l = $k[--$j]; - var _m = $k[--$j]; - var _n = $f(_m - _l); - if (_l < $f(_m - _l)) { - var _ = _n; - _n = _l; - _l = _; - } - $k[$j++] = _n; - $k[$j++] = 1; - $k[$j++] = 1; - for (var _p = _m, _o = $f(_l + 1); _p >= _o; _p -= 1) { - var _q = $k[--$j]; - var _r = $k[--$j]; - var _s = $k[--$j]; - $k[$j++] = _s; - $k[$j++] = _r; - $k[$j++] = _q * _p; - if ($le(_r, _s)) { - var _t = $k[--$j]; - var _u = $k[--$j]; - $k[$j++] = $f(_u + 1); - $k[$j++] = ~~(_t / _u); - } - } - for (;;) { - var _v = $k[--$j]; - var _w = $k[--$j]; - var _x = $k[--$j]; - $k[$j++] = _x; - $k[$j++] = _w; - $k[$j++] = _v; - if ($gt(_w, _x)) { - break; - } - var _y = $k[--$j]; - var _z = $k[--$j]; - $k[$j++] = $f(_z + 1); - $k[$j++] = ~~(_y / _z); - } - var _10 = $k[--$j]; - var _11 = $k[--$j]; - $k[$j++] = _10; - $k[$j++] = _11; - $j--; - var _12 = $k[--$j]; - var _13 = $k[--$j]; - $k[$j++] = _12; - $k[$j++] = _13; - $j--; - }; + var _l = $k[--$j]; //#6702 + var _m = $k[--$j]; //#6702 + var _n = $f(_m - _l); //#6702 + if (_l < $f(_m - _l)) { //#6702 + var _ = _n; //#6702 + _n = _l; //#6702 + _l = _; //#6702 + } //#6702 + $k[$j++] = _n; //#6709 + $k[$j++] = 1; //#6709 + $k[$j++] = 1; //#6709 + for (var _p = _m, _o = $f(_l + 1); _p >= _o; _p -= 1) { //#6709 + var _q = $k[--$j]; //#6705 + var _r = $k[--$j]; //#6706 + var _s = $k[--$j]; //#6706 + $k[$j++] = _s; //#6708 + $k[$j++] = _r; //#6708 + $k[$j++] = _q * _p; //#6708 + if ($le(_r, _s)) { //#6708 + var _t = $k[--$j]; //#6707 + var _u = $k[--$j]; //#6707 + $k[$j++] = $f(_u + 1); //#6707 + $k[$j++] = ~~(_t / _u); //#6707 + } //#6707 + } //#6707 + for (;;) { //#6713 + var _v = $k[--$j]; //#6711 + var _w = $k[--$j]; //#6711 + var _x = $k[--$j]; //#6711 + $k[$j++] = _x; //#6711 + $k[$j++] = _w; //#6711 + $k[$j++] = _v; //#6711 + if ($gt(_w, _x)) { //#6711 + break; //#6711 + } //#6711 + var _y = $k[--$j]; //#6712 + var _z = $k[--$j]; //#6712 + $k[$j++] = $f(_z + 1); //#6712 + $k[$j++] = ~~(_y / _z); //#6712 + } //#6712 + var _10 = $k[--$j]; //#6714 + var _11 = $k[--$j]; //#6714 + $k[$j++] = _10; //#6714 + $k[$j++] = _11; //#6714 + $j--; //#6714 + var _12 = $k[--$j]; //#6714 + var _13 = $k[--$j]; //#6714 + $k[$j++] = _12; //#6714 + $k[$j++] = _13; //#6714 + $j--; //#6714 + }; //#6715 $1.getRSSwidths = function() { - $1.oe = $k[--$j]; - $1.el = $k[--$j]; - $1.mw = $k[--$j]; - $1.nm = $k[--$j]; - $1.val = $k[--$j]; - $1.out = $a($1.el); - $1.mask = 0; - for (var _1D = 0, _1C = $f($1.el - 2); _1D <= _1C; _1D += 1) { - $1.bar = _1D; - $1.ew = 1; - var _1F = $1.bar; - $1.mask = $1.mask | (_1F < 0 ? 1 >>> -_1F : 1 << _1F); - for (;;) { - $k[$j++] = "sval"; - $k[$j++] = $f($f($1.nm - $1.ew) - 1); - $k[$j++] = $f($f($1.el - $1.bar) - 2); - $1.ncr(); - var _1K = $k[--$j]; - $1[$k[--$j]] = _1K; - if ($1.oe && $1.mask == 0 && $f($f($f($1.nm - $1.ew) - $1.el * 2) + $1.bar * 2) >= -2) { - $k[$j++] = "sval"; - $k[$j++] = $1.sval; - $k[$j++] = $f($f($f($1.nm - $1.ew) - $1.el) + $1.bar); - $k[$j++] = $f($f($1.el - $1.bar) - 2); - $1.ncr(); - var _1Z = $k[--$j]; - var _1a = $k[--$j]; - $1[$k[--$j]] = $f(_1a - _1Z); - } - if ($f($1.el - $1.bar) > 2) { - $1.lval = 0; - for (var _1k = $f($f($f($f($1.nm - $1.ew) - $1.el) + $1.bar) + 2), _1j = $f($1.mw + 1); _1k >= _1j; _1k -= 1) { - $k[$j++] = $f($f($f($1.nm - _1k) - $1.ew) - 1); - $k[$j++] = $f($f($1.el - $1.bar) - 3); - $1.ncr(); - $1.lval = $f($k[--$j] + $1.lval); - } - $1.sval = $f($1.sval - $1.lval * $f($f($1.el - $1.bar) - 1)); - } else { - if ($f($1.nm - $1.ew) > $1.mw) { - $1.sval = $f($1.sval - 1); - } - } - $1.val = $f($1.val - $1.sval); - if ($1.val < 0) { - break; - } - $1.ew = $1.ew + 1; - var _24 = $1.bar; - $1.mask = $1.mask & ~(_24 < 0 ? 1 >>> -_24 : 1 << _24); - } - $1.val = $f($1.val + $1.sval); - $1.nm = $f($1.nm - $1.ew); - $put($1.out, $1.bar, $1.ew); - } - $put($1.out, $f($1.el - 1), $1.nm); - $k[$j++] = $1.out; - }; - $k[$j++] = Infinity; - var _2H = $1.linkage ? 1 : 0; - var _2J = $geti($1.barcode, 4, 13); - $k[$j++] = _2H; - for (var _2K = 0, _2L = _2J.length; _2K < _2L; _2K++) { - $k[$j++] = $f($get(_2J, _2K) - 48); - } - $1.binval = $a(); - for (var _2O = 0; _2O <= 12; _2O += 1) { - $1.i = _2O; - var _2P = $1.binval; - var _2Q = $1.i; - $put(_2P, _2Q + 1, $f($get(_2P, _2Q + 1) + $get($1.binval, $1.i) % 4537077 * 10)); - $put($1.binval, $1.i, ~~($get($1.binval, $1.i) / 4537077)); - } - $1.right = $get($1.binval, 13) % 4537077; - var _2c = $1.binval; - $put(_2c, 13, ~~($get(_2c, 13) / 4537077)); - $1.left = 0; - $1.i = true; - for (var _2e = 0; _2e <= 13; _2e += 1) { - $1.j = _2e; - var _2h = $get($1.binval, $1.j); - $k[$j++] = _2h; - if (_2h == 0 && $1.i) { - $j--; - } else { - $1.i = false; - $1.left = $f($1.left + $k[--$j] * ~~Math.pow(10, 13 - $1.j)); - } - } - $1.d1 = ~~($1.left / 1597); - $1.d2 = $1.left % 1597; - $1.d3 = ~~($1.right / 1597); - $1.d4 = $1.right % 1597; - $1.tab164 = $a([ 160, 0, 12, 4, 8, 1, 161, 1, 960, 161, 10, 6, 6, 3, 80, 10, 2014, 961, 8, 8, 4, 5, 31, 34, 2714, 2015, 6, 10, 3, 6, 10, 70, 2840, 2715, 4, 12, 1, 8, 1, 126 ]); - $1.tab154 = $a([ 335, 0, 5, 10, 2, 7, 4, 84, 1035, 336, 7, 8, 4, 5, 20, 35, 1515, 1036, 9, 6, 6, 3, 48, 10, 1596, 1516, 11, 4, 8, 1, 81, 1 ]); - $1.i = 0; - for (;;) { - if ($1.d1 <= $get($1.tab164, $1.i)) { - var _2y = $geti($1.tab164, $1.i + 1, 7); - for (var _2z = 0, _30 = _2y.length; _2z < _30; _2z++) { - $k[$j++] = $get(_2y, _2z); - } - $1.d1te = $k[--$j]; - $1.d1to = $k[--$j]; - $1.d1mwe = $k[--$j]; - $1.d1mwo = $k[--$j]; - $1.d1ele = $k[--$j]; - $1.d1elo = $k[--$j]; - $1.d1gs = $k[--$j]; - break; - } - $1.i = $1.i + 8; - } - $1.i = 0; - for (;;) { - if ($1.d2 <= $get($1.tab154, $1.i)) { - var _3G = $geti($1.tab154, $1.i + 1, 7); - for (var _3H = 0, _3I = _3G.length; _3H < _3I; _3H++) { - $k[$j++] = $get(_3G, _3H); - } - $1.d2te = $k[--$j]; - $1.d2to = $k[--$j]; - $1.d2mwe = $k[--$j]; - $1.d2mwo = $k[--$j]; - $1.d2ele = $k[--$j]; - $1.d2elo = $k[--$j]; - $1.d2gs = $k[--$j]; - break; - } - $1.i = $1.i + 8; - } - $1.i = 0; - for (;;) { - if ($1.d3 <= $get($1.tab164, $1.i)) { - var _3Y = $geti($1.tab164, $1.i + 1, 7); - for (var _3Z = 0, _3a = _3Y.length; _3Z < _3a; _3Z++) { - $k[$j++] = $get(_3Y, _3Z); - } - $1.d3te = $k[--$j]; - $1.d3to = $k[--$j]; - $1.d3mwe = $k[--$j]; - $1.d3mwo = $k[--$j]; - $1.d3ele = $k[--$j]; - $1.d3elo = $k[--$j]; - $1.d3gs = $k[--$j]; - break; - } - $1.i = $1.i + 8; - } - $1.i = 0; - for (;;) { - if ($1.d4 <= $get($1.tab154, $1.i)) { - var _3q = $geti($1.tab154, $1.i + 1, 7); - for (var _3r = 0, _3s = _3q.length; _3r < _3s; _3r++) { - $k[$j++] = $get(_3q, _3r); - } - $1.d4te = $k[--$j]; - $1.d4to = $k[--$j]; - $1.d4mwe = $k[--$j]; - $1.d4mwo = $k[--$j]; - $1.d4ele = $k[--$j]; - $1.d4elo = $k[--$j]; - $1.d4gs = $k[--$j]; - break; - } - $1.i = $1.i + 8; - } - $k[$j++] = "d1wo"; - $k[$j++] = ~~($f($1.d1 - $1.d1gs) / $1.d1te); - $k[$j++] = $1.d1elo; - $k[$j++] = $1.d1mwo; - $k[$j++] = 4; - $k[$j++] = false; - $1.getRSSwidths(); - var _47 = $k[--$j]; - $1[$k[--$j]] = _47; - $k[$j++] = "d1we"; - $k[$j++] = $f($1.d1 - $1.d1gs) % $1.d1te; - $k[$j++] = $1.d1ele; - $k[$j++] = $1.d1mwe; - $k[$j++] = 4; - $k[$j++] = true; - $1.getRSSwidths(); - var _4E = $k[--$j]; - $1[$k[--$j]] = _4E; - $k[$j++] = "d2wo"; - $k[$j++] = $f($1.d2 - $1.d2gs) % $1.d2to; - $k[$j++] = $1.d2elo; - $k[$j++] = $1.d2mwo; - $k[$j++] = 4; - $k[$j++] = true; - $1.getRSSwidths(); - var _4L = $k[--$j]; - $1[$k[--$j]] = _4L; - $k[$j++] = "d2we"; - $k[$j++] = ~~($f($1.d2 - $1.d2gs) / $1.d2to); - $k[$j++] = $1.d2ele; - $k[$j++] = $1.d2mwe; - $k[$j++] = 4; - $k[$j++] = false; - $1.getRSSwidths(); - var _4S = $k[--$j]; - $1[$k[--$j]] = _4S; - $k[$j++] = "d3wo"; - $k[$j++] = ~~($f($1.d3 - $1.d3gs) / $1.d3te); - $k[$j++] = $1.d3elo; - $k[$j++] = $1.d3mwo; - $k[$j++] = 4; - $k[$j++] = false; - $1.getRSSwidths(); - var _4Z = $k[--$j]; - $1[$k[--$j]] = _4Z; - $k[$j++] = "d3we"; - $k[$j++] = $f($1.d3 - $1.d3gs) % $1.d3te; - $k[$j++] = $1.d3ele; - $k[$j++] = $1.d3mwe; - $k[$j++] = 4; - $k[$j++] = true; - $1.getRSSwidths(); - var _4g = $k[--$j]; - $1[$k[--$j]] = _4g; - $k[$j++] = "d4wo"; - $k[$j++] = $f($1.d4 - $1.d4gs) % $1.d4to; - $k[$j++] = $1.d4elo; - $k[$j++] = $1.d4mwo; - $k[$j++] = 4; - $k[$j++] = true; - $1.getRSSwidths(); - var _4n = $k[--$j]; - $1[$k[--$j]] = _4n; - $k[$j++] = "d4we"; - $k[$j++] = ~~($f($1.d4 - $1.d4gs) / $1.d4to); - $k[$j++] = $1.d4ele; - $k[$j++] = $1.d4mwe; - $k[$j++] = 4; - $k[$j++] = false; - $1.getRSSwidths(); - var _4u = $k[--$j]; - $1[$k[--$j]] = _4u; - $1.d1w = $a(8); - for (var _4x = 0; _4x <= 3; _4x += 1) { - $1.i = _4x; - $put($1.d1w, $1.i * 2, $get($1.d1wo, $1.i)); - $put($1.d1w, $1.i * 2 + 1, $get($1.d1we, $1.i)); - } - $1.d2w = $a(8); - for (var _59 = 0; _59 <= 3; _59 += 1) { - $1.i = _59; - $put($1.d2w, 7 - $1.i * 2, $get($1.d2wo, $1.i)); - $put($1.d2w, 6 - $1.i * 2, $get($1.d2we, $1.i)); - } - $1.d3w = $a(8); - for (var _5L = 0; _5L <= 3; _5L += 1) { - $1.i = _5L; - $put($1.d3w, 7 - $1.i * 2, $get($1.d3wo, $1.i)); - $put($1.d3w, 6 - $1.i * 2, $get($1.d3we, $1.i)); - } - $1.d4w = $a(8); - for (var _5X = 0; _5X <= 3; _5X += 1) { - $1.i = _5X; - $put($1.d4w, $1.i * 2, $get($1.d4wo, $1.i)); - $put($1.d4w, $1.i * 2 + 1, $get($1.d4we, $1.i)); - } - $k[$j++] = Infinity; - var _5i = $1.d1w; - for (var _5j = 0, _5k = _5i.length; _5j < _5k; _5j++) { - $k[$j++] = $get(_5i, _5j); - } - var _5m = $1.d2w; - for (var _5n = 0, _5o = _5m.length; _5n < _5o; _5n++) { - $k[$j++] = $get(_5m, _5n); - } - var _5q = $1.d3w; - for (var _5r = 0, _5s = _5q.length; _5r < _5s; _5r++) { - $k[$j++] = $get(_5q, _5r); - } - var _5u = $1.d4w; - for (var _5v = 0, _5w = _5u.length; _5v < _5w; _5v++) { - $k[$j++] = $get(_5u, _5v); - } - $1.widths = $a(); - $1.checkweights = $a([ 1, 3, 9, 27, 2, 6, 18, 54, 58, 72, 24, 8, 29, 36, 12, 4, 74, 51, 17, 32, 37, 65, 48, 16, 64, 34, 23, 69, 49, 68, 46, 59 ]); - $1.checkwidths = $a([ 3, 8, 2, 1, 1, 3, 5, 5, 1, 1, 3, 3, 7, 1, 1, 3, 1, 9, 1, 1, 2, 7, 4, 1, 1, 2, 5, 6, 1, 1, 2, 3, 8, 1, 1, 1, 5, 7, 1, 1, 1, 3, 9, 1, 1 ]); - $1.checksum = 0; - for (var _61 = 0; _61 <= 31; _61 += 1) { - $1.i = _61; - $1.checksum = $f($1.checksum + $get($1.widths, $1.i) * $get($1.checkweights, $1.i)); - } - $1.checksum = $1.checksum % 79; - if ($1.checksum >= 8) { - $1.checksum = $f($1.checksum + 1); - } - if ($1.checksum >= 72) { - $1.checksum = $f($1.checksum + 1); - } - $1.checklt = $geti($1.checkwidths, ~~($1.checksum / 9) * 5, 5); - $1.checkrtrev = $geti($1.checkwidths, $1.checksum % 9 * 5, 5); - $1.checkrt = $a(5); - for (var _6L = 0; _6L <= 4; _6L += 1) { - $1.i = _6L; - $put($1.checkrt, $1.i, $get($1.checkrtrev, 4 - $1.i)); - } - if ($eq($1.format, "omni") || $eq($1.format, "truncated")) { - $k[$j++] = Infinity; - var _6T = $1.d1w; - $k[$j++] = 1; - for (var _6U = 0, _6V = _6T.length; _6U < _6V; _6U++) { - $k[$j++] = $get(_6T, _6U); - } - var _6X = $1.checklt; - for (var _6Y = 0, _6Z = _6X.length; _6Y < _6Z; _6Y++) { - $k[$j++] = $get(_6X, _6Y); - } - var _6b = $1.d2w; - for (var _6c = 0, _6d = _6b.length; _6c < _6d; _6c++) { - $k[$j++] = $get(_6b, _6c); - } - var _6f = $1.d4w; - for (var _6g = 0, _6h = _6f.length; _6g < _6h; _6g++) { - $k[$j++] = $get(_6f, _6g); - } - var _6j = $1.checkrt; - for (var _6k = 0, _6l = _6j.length; _6k < _6l; _6k++) { - $k[$j++] = $get(_6j, _6k); - } - var _6n = $1.d3w; - for (var _6o = 0, _6p = _6n.length; _6o < _6p; _6o++) { - $k[$j++] = $get(_6n, _6o); - } - $k[$j++] = 1; - $k[$j++] = 1; - $1.sbs = $a(); - $k[$j++] = Infinity; - var _6s = $1.sbs; - $k[$j++] = Infinity; - for (var _6u = 0, _6v = ~~(($1.sbs.length + 1) / 2); _6u < _6v; _6u++) { - $k[$j++] = $1.height; - } - var _6x = $a(); - $k[$j++] = Infinity; - for (var _6z = 0, _70 = ~~(($1.sbs.length + 1) / 2); _6z < _70; _6z++) { - $k[$j++] = 0; - } - var _71 = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _6s; - $k[$j++] = "bhs"; - $k[$j++] = _6x; - $k[$j++] = "bbs"; - $k[$j++] = _71; - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - $k[$j++] = "textxalign"; - $k[$j++] = "center"; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _74 = $d(); - $k[$j++] = _74; - if (!$1.dontdraw) { - $0.renlinear(); - } - } else { - $k[$j++] = Infinity; - var _76 = $1.d1w; - $k[$j++] = 1; - $k[$j++] = 1; - for (var _77 = 0, _78 = _76.length; _77 < _78; _77++) { - $k[$j++] = $get(_76, _77); - } - var _7A = $1.checklt; - for (var _7B = 0, _7C = _7A.length; _7B < _7C; _7B++) { - $k[$j++] = $get(_7A, _7B); - } - var _7E = $1.d2w; - for (var _7F = 0, _7G = _7E.length; _7F < _7G; _7F++) { - $k[$j++] = $get(_7E, _7F); - } - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 0; - $1.top = $a(); - $k[$j++] = Infinity; - var _7J = $1.d4w; - $k[$j++] = 1; - $k[$j++] = 1; - for (var _7K = 0, _7L = _7J.length; _7K < _7L; _7K++) { - $k[$j++] = $get(_7J, _7K); - } - var _7N = $1.checkrt; - for (var _7O = 0, _7P = _7N.length; _7O < _7P; _7O++) { - $k[$j++] = $get(_7N, _7O); - } - var _7R = $1.d3w; - for (var _7S = 0, _7T = _7R.length; _7S < _7T; _7S++) { - $k[$j++] = $get(_7R, _7S); - } - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 0; - $1.bot = $a(); - for (var _7W = 0; _7W <= 24; _7W += 2) { - $1.i = _7W; - for (var _7a = 0, _7b = $get($1.top, $1.i); _7a < _7b; _7a++) { - $k[$j++] = 0; - } - for (var _7f = 0, _7g = $get($1.top, $1.i + 1); _7f < _7g; _7f++) { - $k[$j++] = 1; - } - } - $astore($a(50)); - $1.top = $k[--$j]; - for (var _7j = 0; _7j <= 24; _7j += 2) { - $1.i = _7j; - for (var _7n = 0, _7o = $get($1.bot, $1.i); _7n < _7o; _7n++) { - $k[$j++] = 1; - } - for (var _7s = 0, _7t = $get($1.bot, $1.i + 1); _7s < _7t; _7s++) { - $k[$j++] = 0; - } - } - $astore($a(50)); - $1.bot = $k[--$j]; - if ($eq($1.format, "stacked")) { - $1.sep = $a(50); - $put($1.sep, 0, 0); - for (var _7z = 1; _7z <= 49; _7z += 1) { - $1.i = _7z; - if ($eq($get($1.top, $1.i), $get($1.bot, $1.i))) { - $put($1.sep, $1.i, $f(1 - $get($1.top, $1.i))); - } else { - $put($1.sep, $1.i, $f(1 - $get($1.sep, $1.i - 1))); - } - } - $puti($1.sep, 0, $a([ 0, 0, 0, 0 ])); - $puti($1.sep, 46, $a([ 0, 0, 0, 0 ])); - $k[$j++] = Infinity; - for (var _8K = 0, _8L = 5; _8K < _8L; _8K++) { - $aload($1.top); - } - $aload($1.sep); - for (var _8O = 0, _8P = 7; _8O < _8P; _8O++) { - $aload($1.bot); - } - $1.pixs = $a(); - $1.pixy = ~~($1.pixs.length / 50); - } - if ($eq($1.format, "stackedomni")) { - $k[$j++] = Infinity; - $forall($1.top, function() { - var _8V = $k[--$j]; - $k[$j++] = $f(1 - _8V); - }); - $1.sep1 = $a(); - $puti($1.sep1, 0, $a([ 0, 0, 0, 0 ])); - $puti($1.sep1, 46, $a([ 0, 0, 0, 0 ])); - for (var _8b = 18; _8b <= 30; _8b += 1) { - $1.i = _8b; - if ($get($1.top, $1.i) == 0) { - if ($get($1.top, $1.i - 1) == 1) { - $k[$j++] = 1; - } else { - var _8l = $get($1.sep1, $1.i - 1) == 0 ? 1 : 0; - $k[$j++] = _8l; - } - } else { - $k[$j++] = 0; - } - $put($1.sep1, $1.i, $k[--$j]); - } - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - for (var _8p = 0, _8q = 21; _8p < _8q; _8p++) { - $k[$j++] = 0; - $k[$j++] = 1; - } - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $1.sep2 = $a(); - $k[$j++] = Infinity; - $forall($1.bot, function() { - var _8t = $k[--$j]; - $k[$j++] = $f(1 - _8t); - }); - $1.sep3 = $a(); - $puti($1.sep3, 0, $a([ 0, 0, 0, 0 ])); - $puti($1.sep3, 46, $a([ 0, 0, 0, 0 ])); - for (var _8z = 19; _8z <= 31; _8z += 1) { - $1.i = _8z; - if ($get($1.bot, $1.i) == 0) { - if ($get($1.bot, $1.i - 1) == 1) { - $k[$j++] = 1; - } else { - var _99 = $get($1.sep3, $1.i - 1) == 0 ? 1 : 0; - $k[$j++] = _99; - } - } else { - $k[$j++] = 0; - } - $put($1.sep3, $1.i, $k[--$j]); - } - $1.f3 = $a([ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1 ]); - $k[$j++] = true; - for (var _9E = 0; _9E <= 12; _9E += 1) { - var _9J = $k[--$j]; - $k[$j++] = _9J && $eq($get($1.bot, _9E + 19), $get($1.f3, _9E)); - } - if ($k[--$j]) { - $puti($1.sep3, 19, $a([ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ])); - } - $k[$j++] = Infinity; - for (var _9O = 0, _9P = $1.barxmult; _9O < _9P; _9O++) { - $aload($1.top); - } - $aload($1.sep1); - $aload($1.sep2); - $aload($1.sep3); - for (var _9V = 0, _9W = $1.barxmult; _9V < _9W; _9V++) { - $aload($1.bot); - } - $1.pixs = $a(); - $1.pixy = ~~($1.pixs.length / 50); - } - var _9e = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", 50 ], [ "pixy", $1.pixy ], [ "height", $1.pixy / 72 ], [ "width", 50 / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _9e; - if (!$1.dontdraw) { - $0.renmatrix(); - } - } + $1.oe = $k[--$j]; //#6718 + $1.el = $k[--$j]; //#6719 + $1.mw = $k[--$j]; //#6720 + $1.nm = $k[--$j]; //#6721 + $1.val = $k[--$j]; //#6722 + $1.out = $a($1.el); //#6723 + $1.mask = 0; //#6724 + for (var _1D = 0, _1C = $f($1.el - 2); _1D <= _1C; _1D += 1) { //#6751 + $1.bar = _1D; //#6726 + $1.ew = 1; //#6727 + var _1F = $1.bar; //#6728 + $1.mask = $1.mask | ((_1F < 0 ? 1 >>> -_1F : 1 << _1F)); //#6728 + for (;;) { //#6747 + $k[$j++] = 'sval'; //#6729 + $k[$j++] = $f($f($1.nm - $1.ew) - 1); //#6729 + $k[$j++] = $f($f($1.el - $1.bar) - 2); //#6729 + $1.ncr(); //#6729 + var _1K = $k[--$j]; //#6729 + $1[$k[--$j]] = _1K; //#6729 + if (($1.oe && ($1.mask == 0)) && (($f(($f($f($1.nm - $1.ew) - ($1.el * 2))) + ($1.bar * 2))) >= -2)) { //#6732 + $k[$j++] = 'sval'; //#6731 + $k[$j++] = $1.sval; //#6731 + $k[$j++] = $f(($f($f($1.nm - $1.ew) - $1.el)) + $1.bar); //#6731 + $k[$j++] = $f($f($1.el - $1.bar) - 2); //#6731 + $1.ncr(); //#6731 + var _1Z = $k[--$j]; //#6731 + var _1a = $k[--$j]; //#6731 + $1[$k[--$j]] = $f(_1a - _1Z); //#6731 + } //#6731 + if ($f($1.el - $1.bar) > 2) { //#6741 + $1.lval = 0; //#6734 + for (var _1k = $f(($f(($f($f($1.nm - $1.ew) - $1.el)) + $1.bar)) + 2), _1j = $f($1.mw + 1); _1k >= _1j; _1k -= 1) { //#6738 + $k[$j++] = $f(($f($f($1.nm - _1k) - $1.ew)) - 1); //#6736 + $k[$j++] = $f($f($1.el - $1.bar) - 3); //#6736 + $1.ncr(); //#6736 + $1.lval = $f($k[--$j] + $1.lval); //#6737 + } //#6737 + $1.sval = $f($1.sval - ($1.lval * ($f($f($1.el - $1.bar) - 1)))); //#6739 + } else { //#6741 + if ($f($1.nm - $1.ew) > $1.mw) { //#6741 + $1.sval = $f($1.sval - 1); //#6741 + } //#6741 + } //#6741 + $1.val = $f($1.val - $1.sval); //#6743 + if ($1.val < 0) { //#6744 + break; //#6744 + } //#6744 + $1.ew = $1.ew + 1; //#6745 + var _24 = $1.bar; //#6746 + $1.mask = $1.mask & (~((_24 < 0 ? 1 >>> -_24 : 1 << _24))); //#6746 + } //#6746 + $1.val = $f($1.val + $1.sval); //#6748 + $1.nm = $f($1.nm - $1.ew); //#6749 + $put($1.out, $1.bar, $1.ew); //#6750 + } //#6750 + $put($1.out, $f($1.el - 1), $1.nm); //#6752 + $k[$j++] = $1.out; //#6753 + }; //#6754 + $k[$j++] = Infinity; //#6758 + var _2H = $1.linkage ? 1 : 0; //#6757 + var _2J = $geti($1.barcode, 4, 13); //#6758 + $k[$j++] = _2H; //#6758 + for (var _2K = 0, _2L = _2J.length; _2K < _2L; _2K++) { //#6758 + $k[$j++] = $f($get(_2J, _2K) - 48); //#6758 + } //#6758 + $1.binval = $a(); //#6758 + for (var _2O = 0; _2O <= 12; _2O += 1) { //#6765 + $1.i = _2O; //#6762 + var _2P = $1.binval; //#6763 + var _2Q = $1.i; //#6763 + $put(_2P, _2Q + 1, $f($get(_2P, _2Q + 1) + (($get($1.binval, $1.i) % 4537077) * 10))); //#6763 + $put($1.binval, $1.i, ~~($get($1.binval, $1.i) / 4537077)); //#6764 + } //#6764 + $1.right = $get($1.binval, 13) % 4537077; //#6766 + var _2c = $1.binval; //#6767 + $put(_2c, 13, ~~($get(_2c, 13) / 4537077)); //#6767 + $1.left = 0; //#6769 + $1.i = true; //#6770 + for (var _2e = 0; _2e <= 13; _2e += 1) { //#6780 + $1.j = _2e; //#6772 + var _2h = $get($1.binval, $1.j); //#6773 + $k[$j++] = _2h; //#6779 + if ((_2h == 0) && $1.i) { //#6778 + $j--; //#6775 + } else { //#6778 + $1.i = false; //#6777 + $1.left = $f($1.left + ($k[--$j] * (~~Math.pow(10, 13 - $1.j)))); //#6778 + } //#6778 + } //#6778 + $1.d1 = ~~($1.left / 1597); //#6782 + $1.d2 = $1.left % 1597; //#6783 + $1.d3 = ~~($1.right / 1597); //#6784 + $1.d4 = $1.right % 1597; //#6785 + $1.tab164 = $a([160, 0, 12, 4, 8, 1, 161, 1, 960, 161, 10, 6, 6, 3, 80, 10, 2014, 961, 8, 8, 4, 5, 31, 34, 2714, 2015, 6, 10, 3, 6, 10, 70, 2840, 2715, 4, 12, 1, 8, 1, 126]); //#6793 + $1.tab154 = $a([335, 0, 5, 10, 2, 7, 4, 84, 1035, 336, 7, 8, 4, 5, 20, 35, 1515, 1036, 9, 6, 6, 3, 48, 10, 1596, 1516, 11, 4, 8, 1, 81, 1]); //#6800 + $1.i = 0; //#6802 + for (;;) { //#6812 + if ($1.d1 <= $get($1.tab164, $1.i)) { //#6810 + var _2y = $geti($1.tab164, $1.i + 1, 7); //#6804 + for (var _2z = 0, _30 = _2y.length; _2z < _30; _2z++) { //#6804 + $k[$j++] = $get(_2y, _2z); //#6804 + } //#6804 + $1.d1te = $k[--$j]; //#6805 + $1.d1to = $k[--$j]; //#6805 + $1.d1mwe = $k[--$j]; //#6806 + $1.d1mwo = $k[--$j]; //#6806 + $1.d1ele = $k[--$j]; //#6807 + $1.d1elo = $k[--$j]; //#6807 + $1.d1gs = $k[--$j]; //#6808 + break; //#6809 + } //#6809 + $1.i = $1.i + 8; //#6811 + } //#6811 + $1.i = 0; //#6814 + for (;;) { //#6824 + if ($1.d2 <= $get($1.tab154, $1.i)) { //#6822 + var _3G = $geti($1.tab154, $1.i + 1, 7); //#6816 + for (var _3H = 0, _3I = _3G.length; _3H < _3I; _3H++) { //#6816 + $k[$j++] = $get(_3G, _3H); //#6816 + } //#6816 + $1.d2te = $k[--$j]; //#6817 + $1.d2to = $k[--$j]; //#6817 + $1.d2mwe = $k[--$j]; //#6818 + $1.d2mwo = $k[--$j]; //#6818 + $1.d2ele = $k[--$j]; //#6819 + $1.d2elo = $k[--$j]; //#6819 + $1.d2gs = $k[--$j]; //#6820 + break; //#6821 + } //#6821 + $1.i = $1.i + 8; //#6823 + } //#6823 + $1.i = 0; //#6826 + for (;;) { //#6836 + if ($1.d3 <= $get($1.tab164, $1.i)) { //#6834 + var _3Y = $geti($1.tab164, $1.i + 1, 7); //#6828 + for (var _3Z = 0, _3a = _3Y.length; _3Z < _3a; _3Z++) { //#6828 + $k[$j++] = $get(_3Y, _3Z); //#6828 + } //#6828 + $1.d3te = $k[--$j]; //#6829 + $1.d3to = $k[--$j]; //#6829 + $1.d3mwe = $k[--$j]; //#6830 + $1.d3mwo = $k[--$j]; //#6830 + $1.d3ele = $k[--$j]; //#6831 + $1.d3elo = $k[--$j]; //#6831 + $1.d3gs = $k[--$j]; //#6832 + break; //#6833 + } //#6833 + $1.i = $1.i + 8; //#6835 + } //#6835 + $1.i = 0; //#6838 + for (;;) { //#6848 + if ($1.d4 <= $get($1.tab154, $1.i)) { //#6846 + var _3q = $geti($1.tab154, $1.i + 1, 7); //#6840 + for (var _3r = 0, _3s = _3q.length; _3r < _3s; _3r++) { //#6840 + $k[$j++] = $get(_3q, _3r); //#6840 + } //#6840 + $1.d4te = $k[--$j]; //#6841 + $1.d4to = $k[--$j]; //#6841 + $1.d4mwe = $k[--$j]; //#6842 + $1.d4mwo = $k[--$j]; //#6842 + $1.d4ele = $k[--$j]; //#6843 + $1.d4elo = $k[--$j]; //#6843 + $1.d4gs = $k[--$j]; //#6844 + break; //#6845 + } //#6845 + $1.i = $1.i + 8; //#6847 + } //#6847 + $k[$j++] = 'd1wo'; //#6850 + $k[$j++] = ~~($f($1.d1 - $1.d1gs) / $1.d1te); //#6850 + $k[$j++] = $1.d1elo; //#6850 + $k[$j++] = $1.d1mwo; //#6850 + $k[$j++] = 4; //#6850 + $k[$j++] = false; //#6850 + $1.getRSSwidths(); //#6850 + var _47 = $k[--$j]; //#6850 + $1[$k[--$j]] = _47; //#6850 + $k[$j++] = 'd1we'; //#6851 + $k[$j++] = $f($1.d1 - $1.d1gs) % $1.d1te; //#6851 + $k[$j++] = $1.d1ele; //#6851 + $k[$j++] = $1.d1mwe; //#6851 + $k[$j++] = 4; //#6851 + $k[$j++] = true; //#6851 + $1.getRSSwidths(); //#6851 + var _4E = $k[--$j]; //#6851 + $1[$k[--$j]] = _4E; //#6851 + $k[$j++] = 'd2wo'; //#6852 + $k[$j++] = $f($1.d2 - $1.d2gs) % $1.d2to; //#6852 + $k[$j++] = $1.d2elo; //#6852 + $k[$j++] = $1.d2mwo; //#6852 + $k[$j++] = 4; //#6852 + $k[$j++] = true; //#6852 + $1.getRSSwidths(); //#6852 + var _4L = $k[--$j]; //#6852 + $1[$k[--$j]] = _4L; //#6852 + $k[$j++] = 'd2we'; //#6853 + $k[$j++] = ~~($f($1.d2 - $1.d2gs) / $1.d2to); //#6853 + $k[$j++] = $1.d2ele; //#6853 + $k[$j++] = $1.d2mwe; //#6853 + $k[$j++] = 4; //#6853 + $k[$j++] = false; //#6853 + $1.getRSSwidths(); //#6853 + var _4S = $k[--$j]; //#6853 + $1[$k[--$j]] = _4S; //#6853 + $k[$j++] = 'd3wo'; //#6854 + $k[$j++] = ~~($f($1.d3 - $1.d3gs) / $1.d3te); //#6854 + $k[$j++] = $1.d3elo; //#6854 + $k[$j++] = $1.d3mwo; //#6854 + $k[$j++] = 4; //#6854 + $k[$j++] = false; //#6854 + $1.getRSSwidths(); //#6854 + var _4Z = $k[--$j]; //#6854 + $1[$k[--$j]] = _4Z; //#6854 + $k[$j++] = 'd3we'; //#6855 + $k[$j++] = $f($1.d3 - $1.d3gs) % $1.d3te; //#6855 + $k[$j++] = $1.d3ele; //#6855 + $k[$j++] = $1.d3mwe; //#6855 + $k[$j++] = 4; //#6855 + $k[$j++] = true; //#6855 + $1.getRSSwidths(); //#6855 + var _4g = $k[--$j]; //#6855 + $1[$k[--$j]] = _4g; //#6855 + $k[$j++] = 'd4wo'; //#6856 + $k[$j++] = $f($1.d4 - $1.d4gs) % $1.d4to; //#6856 + $k[$j++] = $1.d4elo; //#6856 + $k[$j++] = $1.d4mwo; //#6856 + $k[$j++] = 4; //#6856 + $k[$j++] = true; //#6856 + $1.getRSSwidths(); //#6856 + var _4n = $k[--$j]; //#6856 + $1[$k[--$j]] = _4n; //#6856 + $k[$j++] = 'd4we'; //#6857 + $k[$j++] = ~~($f($1.d4 - $1.d4gs) / $1.d4to); //#6857 + $k[$j++] = $1.d4ele; //#6857 + $k[$j++] = $1.d4mwe; //#6857 + $k[$j++] = 4; //#6857 + $k[$j++] = false; //#6857 + $1.getRSSwidths(); //#6857 + var _4u = $k[--$j]; //#6857 + $1[$k[--$j]] = _4u; //#6857 + $1.d1w = $a(8); //#6859 + for (var _4x = 0; _4x <= 3; _4x += 1) { //#6864 + $1.i = _4x; //#6861 + $put($1.d1w, $1.i * 2, $get($1.d1wo, $1.i)); //#6862 + $put($1.d1w, ($1.i * 2) + 1, $get($1.d1we, $1.i)); //#6863 + } //#6863 + $1.d2w = $a(8); //#6866 + for (var _59 = 0; _59 <= 3; _59 += 1) { //#6871 + $1.i = _59; //#6868 + $put($1.d2w, 7 - ($1.i * 2), $get($1.d2wo, $1.i)); //#6869 + $put($1.d2w, 6 - ($1.i * 2), $get($1.d2we, $1.i)); //#6870 + } //#6870 + $1.d3w = $a(8); //#6873 + for (var _5L = 0; _5L <= 3; _5L += 1) { //#6878 + $1.i = _5L; //#6875 + $put($1.d3w, 7 - ($1.i * 2), $get($1.d3wo, $1.i)); //#6876 + $put($1.d3w, 6 - ($1.i * 2), $get($1.d3we, $1.i)); //#6877 + } //#6877 + $1.d4w = $a(8); //#6880 + for (var _5X = 0; _5X <= 3; _5X += 1) { //#6885 + $1.i = _5X; //#6882 + $put($1.d4w, $1.i * 2, $get($1.d4wo, $1.i)); //#6883 + $put($1.d4w, ($1.i * 2) + 1, $get($1.d4we, $1.i)); //#6884 + } //#6884 + $k[$j++] = Infinity; //#6891 + var _5i = $1.d1w; //#6888 + for (var _5j = 0, _5k = _5i.length; _5j < _5k; _5j++) { //#6888 + $k[$j++] = $get(_5i, _5j); //#6888 + } //#6888 + var _5m = $1.d2w; //#6889 + for (var _5n = 0, _5o = _5m.length; _5n < _5o; _5n++) { //#6889 + $k[$j++] = $get(_5m, _5n); //#6889 + } //#6889 + var _5q = $1.d3w; //#6890 + for (var _5r = 0, _5s = _5q.length; _5r < _5s; _5r++) { //#6890 + $k[$j++] = $get(_5q, _5r); //#6890 + } //#6890 + var _5u = $1.d4w; //#6891 + for (var _5v = 0, _5w = _5u.length; _5v < _5w; _5v++) { //#6891 + $k[$j++] = $get(_5u, _5v); //#6891 + } //#6891 + $1.widths = $a(); //#6891 + $1.checkweights = $a([1, 3, 9, 27, 2, 6, 18, 54, 58, 72, 24, 8, 29, 36, 12, 4, 74, 51, 17, 32, 37, 65, 48, 16, 64, 34, 23, 69, 49, 68, 46, 59]); //#6899 + $1.checkwidths = $a([3, 8, 2, 1, 1, 3, 5, 5, 1, 1, 3, 3, 7, 1, 1, 3, 1, 9, 1, 1, 2, 7, 4, 1, 1, 2, 5, 6, 1, 1, 2, 3, 8, 1, 1, 1, 5, 7, 1, 1, 1, 3, 9, 1, 1]); //#6905 + $1.checksum = 0; //#6907 + for (var _61 = 0; _61 <= 31; _61 += 1) { //#6911 + $1.i = _61; //#6909 + $1.checksum = $f($1.checksum + ($get($1.widths, $1.i) * $get($1.checkweights, $1.i))); //#6910 + } //#6910 + $1.checksum = $1.checksum % 79; //#6912 + if ($1.checksum >= 8) { //#6913 + $1.checksum = $f($1.checksum + 1); //#6913 + } //#6913 + if ($1.checksum >= 72) { //#6914 + $1.checksum = $f($1.checksum + 1); //#6914 + } //#6914 + $1.checklt = $geti($1.checkwidths, (~~($1.checksum / 9)) * 5, 5); //#6915 + $1.checkrtrev = $geti($1.checkwidths, ($1.checksum % 9) * 5, 5); //#6916 + $1.checkrt = $a(5); //#6917 + for (var _6L = 0; _6L <= 4; _6L += 1) { //#6921 + $1.i = _6L; //#6919 + $put($1.checkrt, $1.i, $get($1.checkrtrev, 4 - $1.i)); //#6920 + } //#6920 + if ($eq($1.format, "omni") || $eq($1.format, "truncated")) { //#7043 + $k[$j++] = Infinity; //#6928 + var _6T = $1.d1w; //#6927 + $k[$j++] = 1; //#6927 + for (var _6U = 0, _6V = _6T.length; _6U < _6V; _6U++) { //#6927 + $k[$j++] = $get(_6T, _6U); //#6927 + } //#6927 + var _6X = $1.checklt; //#6927 + for (var _6Y = 0, _6Z = _6X.length; _6Y < _6Z; _6Y++) { //#6927 + $k[$j++] = $get(_6X, _6Y); //#6927 + } //#6927 + var _6b = $1.d2w; //#6927 + for (var _6c = 0, _6d = _6b.length; _6c < _6d; _6c++) { //#6927 + $k[$j++] = $get(_6b, _6c); //#6927 + } //#6927 + var _6f = $1.d4w; //#6928 + for (var _6g = 0, _6h = _6f.length; _6g < _6h; _6g++) { //#6928 + $k[$j++] = $get(_6f, _6g); //#6928 + } //#6928 + var _6j = $1.checkrt; //#6928 + for (var _6k = 0, _6l = _6j.length; _6k < _6l; _6k++) { //#6928 + $k[$j++] = $get(_6j, _6k); //#6928 + } //#6928 + var _6n = $1.d3w; //#6928 + for (var _6o = 0, _6p = _6n.length; _6o < _6p; _6o++) { //#6928 + $k[$j++] = $get(_6n, _6o); //#6928 + } //#6928 + $k[$j++] = 1; //#6928 + $k[$j++] = 1; //#6928 + $1.sbs = $a(); //#6928 + $k[$j++] = Infinity; //#6938 + var _6s = $1.sbs; //#6933 + $k[$j++] = Infinity; //#6934 + for (var _6u = 0, _6v = ~~(($1.sbs.length + 1) / 2); _6u < _6v; _6u++) { //#6934 + $k[$j++] = $1.height; //#6934 + } //#6934 + var _6x = $a(); //#6934 + $k[$j++] = Infinity; //#6935 + for (var _6z = 0, _70 = ~~(($1.sbs.length + 1) / 2); _6z < _70; _6z++) { //#6935 + $k[$j++] = 0; //#6935 + } //#6935 + var _71 = $a(); //#6935 + $k[$j++] = 'ren'; //#6938 + $k[$j++] = $0.renlinear; //#6938 + $k[$j++] = 'sbs'; //#6938 + $k[$j++] = _6s; //#6938 + $k[$j++] = 'bhs'; //#6938 + $k[$j++] = _6x; //#6938 + $k[$j++] = 'bbs'; //#6938 + $k[$j++] = _71; //#6938 + $k[$j++] = 'txt'; //#6938 + $k[$j++] = $1.txt; //#6938 + $k[$j++] = 'textxalign'; //#6938 + $k[$j++] = "center"; //#6938 + $k[$j++] = 'opt'; //#6938 + $k[$j++] = $1.options; //#6938 + var _74 = $d(); //#6938 + $k[$j++] = _74; //#6941 + if (!$1.dontdraw) { //#6941 + $0.renlinear(); //#6941 + } //#6941 + } else { //#7043 + $k[$j++] = Infinity; //#6945 + var _76 = $1.d1w; //#6945 + $k[$j++] = 1; //#6945 + $k[$j++] = 1; //#6945 + for (var _77 = 0, _78 = _76.length; _77 < _78; _77++) { //#6945 + $k[$j++] = $get(_76, _77); //#6945 + } //#6945 + var _7A = $1.checklt; //#6945 + for (var _7B = 0, _7C = _7A.length; _7B < _7C; _7B++) { //#6945 + $k[$j++] = $get(_7A, _7B); //#6945 + } //#6945 + var _7E = $1.d2w; //#6945 + for (var _7F = 0, _7G = _7E.length; _7F < _7G; _7F++) { //#6945 + $k[$j++] = $get(_7E, _7F); //#6945 + } //#6945 + $k[$j++] = 1; //#6945 + $k[$j++] = 1; //#6945 + $k[$j++] = 0; //#6945 + $1.top = $a(); //#6945 + $k[$j++] = Infinity; //#6946 + var _7J = $1.d4w; //#6946 + $k[$j++] = 1; //#6946 + $k[$j++] = 1; //#6946 + for (var _7K = 0, _7L = _7J.length; _7K < _7L; _7K++) { //#6946 + $k[$j++] = $get(_7J, _7K); //#6946 + } //#6946 + var _7N = $1.checkrt; //#6946 + for (var _7O = 0, _7P = _7N.length; _7O < _7P; _7O++) { //#6946 + $k[$j++] = $get(_7N, _7O); //#6946 + } //#6946 + var _7R = $1.d3w; //#6946 + for (var _7S = 0, _7T = _7R.length; _7S < _7T; _7S++) { //#6946 + $k[$j++] = $get(_7R, _7S); //#6946 + } //#6946 + $k[$j++] = 1; //#6946 + $k[$j++] = 1; //#6946 + $k[$j++] = 0; //#6946 + $1.bot = $a(); //#6946 + for (var _7W = 0; _7W <= 24; _7W += 2) { //#6951 + $1.i = _7W; //#6948 + for (var _7a = 0, _7b = $get($1.top, $1.i); _7a < _7b; _7a++) { //#6949 + $k[$j++] = 0; //#6949 + } //#6949 + for (var _7f = 0, _7g = $get($1.top, $1.i + 1); _7f < _7g; _7f++) { //#6950 + $k[$j++] = 1; //#6950 + } //#6950 + } //#6950 + $astore($a(50)); //#6952 + $1.top = $k[--$j]; //#6952 + for (var _7j = 0; _7j <= 24; _7j += 2) { //#6957 + $1.i = _7j; //#6954 + for (var _7n = 0, _7o = $get($1.bot, $1.i); _7n < _7o; _7n++) { //#6955 + $k[$j++] = 1; //#6955 + } //#6955 + for (var _7s = 0, _7t = $get($1.bot, $1.i + 1); _7s < _7t; _7s++) { //#6956 + $k[$j++] = 0; //#6956 + } //#6956 + } //#6956 + $astore($a(50)); //#6958 + $1.bot = $k[--$j]; //#6958 + if ($eq($1.format, "stacked")) { //#6980 + $1.sep = $a(50); //#6962 + $put($1.sep, 0, 0); //#6963 + for (var _7z = 1; _7z <= 49; _7z += 1) { //#6971 + $1.i = _7z; //#6965 + if ($eq($get($1.top, $1.i), $get($1.bot, $1.i))) { //#6969 + $put($1.sep, $1.i, $f(1 - $get($1.top, $1.i))); //#6967 + } else { //#6969 + $put($1.sep, $1.i, $f(1 - $get($1.sep, $1.i - 1))); //#6969 + } //#6969 + } //#6969 + $puti($1.sep, 0, $a([0, 0, 0, 0])); //#6972 + $puti($1.sep, 46, $a([0, 0, 0, 0])); //#6973 + $k[$j++] = Infinity; //#6977 + for (var _8K = 0, _8L = 5; _8K < _8L; _8K++) { //#6975 + $aload($1.top); //#6975 + } //#6975 + $aload($1.sep); //#6976 + for (var _8O = 0, _8P = 7; _8O < _8P; _8O++) { //#6977 + $aload($1.bot); //#6977 + } //#6977 + $1.pixs = $a(); //#6977 + $1.pixy = ~~($1.pixs.length / 50); //#6979 + } //#6979 + if ($eq($1.format, "stackedomni")) { //#7030 + $k[$j++] = Infinity; //#6984 + $forall($1.top, function() { //#6984 + var _8V = $k[--$j]; //#6984 + $k[$j++] = $f(1 - _8V); //#6984 + }); //#6984 + $1.sep1 = $a(); //#6984 + $puti($1.sep1, 0, $a([0, 0, 0, 0])); //#6985 + $puti($1.sep1, 46, $a([0, 0, 0, 0])); //#6986 + for (var _8b = 18; _8b <= 30; _8b += 1) { //#6999 + $1.i = _8b; //#6988 + if ($get($1.top, $1.i) == 0) { //#6996 + if ($get($1.top, $1.i - 1) == 1) { //#6993 + $k[$j++] = 1; //#6991 + } else { //#6993 + var _8l = ($get($1.sep1, $1.i - 1) == 0) ? 1 : 0; //#6993 + $k[$j++] = _8l; //#6993 + } //#6993 + } else { //#6996 + $k[$j++] = 0; //#6996 + } //#6996 + $put($1.sep1, $1.i, $k[--$j]); //#6998 + } //#6998 + $k[$j++] = Infinity; //#7000 + $k[$j++] = 0; //#7000 + $k[$j++] = 0; //#7000 + $k[$j++] = 0; //#7000 + $k[$j++] = 0; //#7000 + for (var _8p = 0, _8q = 21; _8p < _8q; _8p++) { //#7000 + $k[$j++] = 0; //#7000 + $k[$j++] = 1; //#7000 + } //#7000 + $k[$j++] = 0; //#7000 + $k[$j++] = 0; //#7000 + $k[$j++] = 0; //#7000 + $k[$j++] = 0; //#7000 + $1.sep2 = $a(); //#7000 + $k[$j++] = Infinity; //#7001 + $forall($1.bot, function() { //#7001 + var _8t = $k[--$j]; //#7001 + $k[$j++] = $f(1 - _8t); //#7001 + }); //#7001 + $1.sep3 = $a(); //#7001 + $puti($1.sep3, 0, $a([0, 0, 0, 0])); //#7002 + $puti($1.sep3, 46, $a([0, 0, 0, 0])); //#7003 + for (var _8z = 19; _8z <= 31; _8z += 1) { //#7016 + $1.i = _8z; //#7005 + if ($get($1.bot, $1.i) == 0) { //#7013 + if ($get($1.bot, $1.i - 1) == 1) { //#7010 + $k[$j++] = 1; //#7008 + } else { //#7010 + var _99 = ($get($1.sep3, $1.i - 1) == 0) ? 1 : 0; //#7010 + $k[$j++] = _99; //#7010 + } //#7010 + } else { //#7013 + $k[$j++] = 0; //#7013 + } //#7013 + $put($1.sep3, $1.i, $k[--$j]); //#7015 + } //#7015 + $1.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#7017 + $k[$j++] = true; //#7018 + for (var _9E = 0; _9E <= 12; _9E += 1) { //#7018 + var _9J = $k[--$j]; //#7018 + $k[$j++] = _9J && $eq($get($1.bot, _9E + 19), $get($1.f3, _9E)); //#7018 + } //#7018 + if ($k[--$j]) { //#7021 + $puti($1.sep3, 19, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#7020 + } //#7020 + $k[$j++] = Infinity; //#7027 + for (var _9O = 0, _9P = $1.barxmult; _9O < _9P; _9O++) { //#7023 + $aload($1.top); //#7023 + } //#7023 + $aload($1.sep1); //#7024 + $aload($1.sep2); //#7025 + $aload($1.sep3); //#7026 + for (var _9V = 0, _9W = $1.barxmult; _9V < _9W; _9V++) { //#7027 + $aload($1.bot); //#7027 + } //#7027 + $1.pixs = $a(); //#7027 + $1.pixy = ~~($1.pixs.length / 50); //#7029 + } //#7029 + var _9e = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", 50], + ["pixy", $1.pixy], + ["height", $1.pixy / 72], + ["width", 50 / 72], + ["opt", $1.options] + ]); //#7040 + $k[$j++] = _9e; //#7043 + if (!$1.dontdraw) { //#7043 + $0.renmatrix(); //#7043 + } //#7043 + } //#7043 }; $0.databarstacked = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - if ($ne($geti($1.barcode, 0, 4), "(01)")) { - $k[$j++] = "bwipp.databarstackedBadAI"; - $k[$j++] = "GS1 DataBar Stacked must begin with (01) application identifier"; - $0.raiseerror(); - } - if ($1.barcode.length != 17 && $1.barcode.length != 18) { - $k[$j++] = "bwipp.databarstackedBadLength"; - $k[$j++] = "GS1 DataBar Stacked must be 13 or 14 digits"; - $0.raiseerror(); - } - var _B = $geti($1.barcode, 4, $1.barcode.length - 4); - for (var _C = 0, _D = _B.length; _C < _D; _C++) { - var _E = $get(_B, _C); - if (_E < 48 || _E > 57) { - $k[$j++] = "bwipp.databarstackedBadCharacter"; - $k[$j++] = "GS1 DataBar Stacked must contain only digits"; - $0.raiseerror(); - } - } - $1.checksum = 0; - for (var _F = 0; _F <= 12; _F += 1) { - $1.i = _F; - $k[$j++] = "checksum"; - $k[$j++] = $1.checksum; - $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); - if ($1.i % 2 == 0) { - var _L = $k[--$j]; - $k[$j++] = _L * 3; - } - var _M = $k[--$j]; - var _N = $k[--$j]; - $1[$k[--$j]] = $f(_N + _M); - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 18) { - if ($get($1.barcode, 17) != $1.checksum + 48) { - $k[$j++] = "bwipp.databarstackedBadCheckDigit"; - $k[$j++] = "Incorrect GS1 DataBar Stacked check digit provided"; - $0.raiseerror(); - } - } - var _U = $s(18); - $puti(_U, 0, $1.barcode); - $put(_U, 17, $1.checksum + 48); - $1.barcode = _U; - $put($1.options, "dontdraw", true); - $put($1.options, "format", "stacked"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.databaromni(); - var _b = $k[--$j]; - $1[$k[--$j]] = _b; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#7075 + $1.options = $k[--$j]; //#7077 + $1.barcode = $k[--$j]; //#7078 + $1.dontdraw = false; //#7080 + $forall($1.options, function() { //#7091 + var _3 = $k[--$j]; //#7091 + $1[$k[--$j]] = _3; //#7091 + }); //#7091 + if ($ne($geti($1.barcode, 0, 4), "(01)")) { //#7096 + $k[$j++] = 'bwipp.databarstackedBadAI'; //#7095 + $k[$j++] = "GS1 DataBar Stacked must begin with (01) application identifier"; //#7095 + $0.raiseerror(); //#7095 + } //#7095 + if (($1.barcode.length != 17) && ($1.barcode.length != 18)) { //#7099 + $k[$j++] = 'bwipp.databarstackedBadLength'; //#7098 + $k[$j++] = "GS1 DataBar Stacked must be 13 or 14 digits"; //#7098 + $0.raiseerror(); //#7098 + } //#7098 + var _B = $geti($1.barcode, 4, $1.barcode.length - 4); //#7100 + for (var _C = 0, _D = _B.length; _C < _D; _C++) { //#7104 + var _E = $get(_B, _C); //#7104 + if ((_E < 48) || (_E > 57)) { //#7103 + $k[$j++] = 'bwipp.databarstackedBadCharacter'; //#7102 + $k[$j++] = "GS1 DataBar Stacked must contain only digits"; //#7102 + $0.raiseerror(); //#7102 + } //#7102 + } //#7102 + $1.checksum = 0; //#7107 + for (var _F = 0; _F <= 12; _F += 1) { //#7111 + $1.i = _F; //#7109 + $k[$j++] = 'checksum'; //#7110 + $k[$j++] = $1.checksum; //#7110 + $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); //#7110 + if (($1.i % 2) == 0) { //#7110 + var _L = $k[--$j]; //#7110 + $k[$j++] = _L * 3; //#7110 + } //#7110 + var _M = $k[--$j]; //#7110 + var _N = $k[--$j]; //#7110 + $1[$k[--$j]] = $f(_N + _M); //#7110 + } //#7110 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#7112 + if ($1.barcode.length == 18) { //#7117 + if ($get($1.barcode, 17) != ($1.checksum + 48)) { //#7116 + $k[$j++] = 'bwipp.databarstackedBadCheckDigit'; //#7115 + $k[$j++] = "Incorrect GS1 DataBar Stacked check digit provided"; //#7115 + $0.raiseerror(); //#7115 + } //#7115 + } //#7115 + var _U = $s(18); //#7118 + $puti(_U, 0, $1.barcode); //#7119 + $put(_U, 17, $1.checksum + 48); //#7120 + $1.barcode = _U; //#7121 + $put($1.options, "dontdraw", true); //#7124 + $put($1.options, "format", "stacked"); //#7125 + $k[$j++] = 'args'; //#7127 + $k[$j++] = $1.barcode; //#7127 + $k[$j++] = $1.options; //#7127 + $0.databaromni(); //#7127 + var _b = $k[--$j]; //#7127 + $1[$k[--$j]] = _b; //#7127 + $put($1.args, "opt", $1.options); //#7129 + $k[$j++] = $1.args; //#7132 + if (!$1.dontdraw) { //#7132 + $0.renmatrix(); //#7132 + } //#7132 }; $0.databarstackedomni = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - if ($ne($geti($1.barcode, 0, 4), "(01)")) { - $k[$j++] = "bwipp.databarstackedomniBadAI"; - $k[$j++] = "GS1 DataBar Stacked Omnidirectional must begin with (01) application identifier"; - $0.raiseerror(); - } - if ($1.barcode.length != 17 && $1.barcode.length != 18) { - $k[$j++] = "bwipp.databarstackedomniBadLength"; - $k[$j++] = "GS1 DataBar Stacked Omnidirectional must be 13 or 14 digits"; - $0.raiseerror(); - } - var _B = $geti($1.barcode, 4, $1.barcode.length - 4); - for (var _C = 0, _D = _B.length; _C < _D; _C++) { - var _E = $get(_B, _C); - if (_E < 48 || _E > 57) { - $k[$j++] = "bwipp.databarstackedomniBadCharacter"; - $k[$j++] = "GS1 DataBar Stacked Omnidirectional must contain only digits"; - $0.raiseerror(); - } - } - $1.checksum = 0; - for (var _F = 0; _F <= 12; _F += 1) { - $1.i = _F; - $k[$j++] = "checksum"; - $k[$j++] = $1.checksum; - $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); - if ($1.i % 2 == 0) { - var _L = $k[--$j]; - $k[$j++] = _L * 3; - } - var _M = $k[--$j]; - var _N = $k[--$j]; - $1[$k[--$j]] = $f(_N + _M); - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 18) { - if ($get($1.barcode, 17) != $1.checksum + 48) { - $k[$j++] = "bwipp.databarstackedomniBadCheckDigit"; - $k[$j++] = "Incorrect GS1 DataBar Stacked Omnidirectional check digit provided"; - $0.raiseerror(); - } - } - var _U = $s(18); - $puti(_U, 0, $1.barcode); - $put(_U, 17, $1.checksum + 48); - $1.barcode = _U; - $put($1.options, "dontdraw", true); - $put($1.options, "format", "stackedomni"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.databaromni(); - var _b = $k[--$j]; - $1[$k[--$j]] = _b; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#7162 + $1.options = $k[--$j]; //#7164 + $1.barcode = $k[--$j]; //#7165 + $1.dontdraw = false; //#7167 + $forall($1.options, function() { //#7178 + var _3 = $k[--$j]; //#7178 + $1[$k[--$j]] = _3; //#7178 + }); //#7178 + if ($ne($geti($1.barcode, 0, 4), "(01)")) { //#7183 + $k[$j++] = 'bwipp.databarstackedomniBadAI'; //#7182 + $k[$j++] = "GS1 DataBar Stacked Omnidirectional must begin with (01) application identifier"; //#7182 + $0.raiseerror(); //#7182 + } //#7182 + if (($1.barcode.length != 17) && ($1.barcode.length != 18)) { //#7186 + $k[$j++] = 'bwipp.databarstackedomniBadLength'; //#7185 + $k[$j++] = "GS1 DataBar Stacked Omnidirectional must be 13 or 14 digits"; //#7185 + $0.raiseerror(); //#7185 + } //#7185 + var _B = $geti($1.barcode, 4, $1.barcode.length - 4); //#7187 + for (var _C = 0, _D = _B.length; _C < _D; _C++) { //#7191 + var _E = $get(_B, _C); //#7191 + if ((_E < 48) || (_E > 57)) { //#7190 + $k[$j++] = 'bwipp.databarstackedomniBadCharacter'; //#7189 + $k[$j++] = "GS1 DataBar Stacked Omnidirectional must contain only digits"; //#7189 + $0.raiseerror(); //#7189 + } //#7189 + } //#7189 + $1.checksum = 0; //#7194 + for (var _F = 0; _F <= 12; _F += 1) { //#7198 + $1.i = _F; //#7196 + $k[$j++] = 'checksum'; //#7197 + $k[$j++] = $1.checksum; //#7197 + $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); //#7197 + if (($1.i % 2) == 0) { //#7197 + var _L = $k[--$j]; //#7197 + $k[$j++] = _L * 3; //#7197 + } //#7197 + var _M = $k[--$j]; //#7197 + var _N = $k[--$j]; //#7197 + $1[$k[--$j]] = $f(_N + _M); //#7197 + } //#7197 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#7199 + if ($1.barcode.length == 18) { //#7204 + if ($get($1.barcode, 17) != ($1.checksum + 48)) { //#7203 + $k[$j++] = 'bwipp.databarstackedomniBadCheckDigit'; //#7202 + $k[$j++] = "Incorrect GS1 DataBar Stacked Omnidirectional check digit provided"; //#7202 + $0.raiseerror(); //#7202 + } //#7202 + } //#7202 + var _U = $s(18); //#7205 + $puti(_U, 0, $1.barcode); //#7206 + $put(_U, 17, $1.checksum + 48); //#7207 + $1.barcode = _U; //#7208 + $put($1.options, "dontdraw", true); //#7211 + $put($1.options, "format", "stackedomni"); //#7212 + $k[$j++] = 'args'; //#7214 + $k[$j++] = $1.barcode; //#7214 + $k[$j++] = $1.options; //#7214 + $0.databaromni(); //#7214 + var _b = $k[--$j]; //#7214 + $1[$k[--$j]] = _b; //#7214 + $put($1.args, "opt", $1.options); //#7216 + $k[$j++] = $1.args; //#7219 + if (!$1.dontdraw) { //#7219 + $0.renmatrix(); //#7219 + } //#7219 }; $0.databartruncated = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - if ($ne($geti($1.barcode, 0, 4), "(01)")) { - $k[$j++] = "bwipp.databartruncatedBadAI"; - $k[$j++] = "GS1 DataBar Truncated must begin with (01) application identifier"; - $0.raiseerror(); - } - if ($1.barcode.length != 17 && $1.barcode.length != 18) { - $k[$j++] = "bwipp.databartruncatedBadLength"; - $k[$j++] = "GS1 DataBar Truncated must be 13 or 14 digits"; - $0.raiseerror(); - } - var _B = $geti($1.barcode, 4, $1.barcode.length - 4); - for (var _C = 0, _D = _B.length; _C < _D; _C++) { - var _E = $get(_B, _C); - if (_E < 48 || _E > 57) { - $k[$j++] = "bwipp.databartruncatedBadCharacter"; - $k[$j++] = "GS1 DataBar Truncated must contain only digits"; - $0.raiseerror(); - } - } - $1.checksum = 0; - for (var _F = 0; _F <= 12; _F += 1) { - $1.i = _F; - $k[$j++] = "checksum"; - $k[$j++] = $1.checksum; - $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); - if ($1.i % 2 == 0) { - var _L = $k[--$j]; - $k[$j++] = _L * 3; - } - var _M = $k[--$j]; - var _N = $k[--$j]; - $1[$k[--$j]] = $f(_N + _M); - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 18) { - if ($get($1.barcode, 17) != $1.checksum + 48) { - $k[$j++] = "bwipp.databartruncatedBadCheckDigit"; - $k[$j++] = "Incorrect GS1 DataBar Truncated check digit provided"; - $0.raiseerror(); - } - } - var _U = $s(18); - $puti(_U, 0, $1.barcode); - $put(_U, 17, $1.checksum + 48); - $1.barcode = _U; - $put($1.options, "dontdraw", true); - $put($1.options, "format", "truncated"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.databaromni(); - var _b = $k[--$j]; - $1[$k[--$j]] = _b; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#7249 + $1.options = $k[--$j]; //#7251 + $1.barcode = $k[--$j]; //#7252 + $1.dontdraw = false; //#7254 + $forall($1.options, function() { //#7265 + var _3 = $k[--$j]; //#7265 + $1[$k[--$j]] = _3; //#7265 + }); //#7265 + if ($ne($geti($1.barcode, 0, 4), "(01)")) { //#7270 + $k[$j++] = 'bwipp.databartruncatedBadAI'; //#7269 + $k[$j++] = "GS1 DataBar Truncated must begin with (01) application identifier"; //#7269 + $0.raiseerror(); //#7269 + } //#7269 + if (($1.barcode.length != 17) && ($1.barcode.length != 18)) { //#7273 + $k[$j++] = 'bwipp.databartruncatedBadLength'; //#7272 + $k[$j++] = "GS1 DataBar Truncated must be 13 or 14 digits"; //#7272 + $0.raiseerror(); //#7272 + } //#7272 + var _B = $geti($1.barcode, 4, $1.barcode.length - 4); //#7274 + for (var _C = 0, _D = _B.length; _C < _D; _C++) { //#7278 + var _E = $get(_B, _C); //#7278 + if ((_E < 48) || (_E > 57)) { //#7277 + $k[$j++] = 'bwipp.databartruncatedBadCharacter'; //#7276 + $k[$j++] = "GS1 DataBar Truncated must contain only digits"; //#7276 + $0.raiseerror(); //#7276 + } //#7276 + } //#7276 + $1.checksum = 0; //#7281 + for (var _F = 0; _F <= 12; _F += 1) { //#7285 + $1.i = _F; //#7283 + $k[$j++] = 'checksum'; //#7284 + $k[$j++] = $1.checksum; //#7284 + $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); //#7284 + if (($1.i % 2) == 0) { //#7284 + var _L = $k[--$j]; //#7284 + $k[$j++] = _L * 3; //#7284 + } //#7284 + var _M = $k[--$j]; //#7284 + var _N = $k[--$j]; //#7284 + $1[$k[--$j]] = $f(_N + _M); //#7284 + } //#7284 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#7286 + if ($1.barcode.length == 18) { //#7291 + if ($get($1.barcode, 17) != ($1.checksum + 48)) { //#7290 + $k[$j++] = 'bwipp.databartruncatedBadCheckDigit'; //#7289 + $k[$j++] = "Incorrect GS1 DataBar Truncated check digit provided"; //#7289 + $0.raiseerror(); //#7289 + } //#7289 + } //#7289 + var _U = $s(18); //#7292 + $puti(_U, 0, $1.barcode); //#7293 + $put(_U, 17, $1.checksum + 48); //#7294 + $1.barcode = _U; //#7295 + $put($1.options, "dontdraw", true); //#7298 + $put($1.options, "format", "truncated"); //#7299 + $k[$j++] = 'args'; //#7301 + $k[$j++] = $1.barcode; //#7301 + $k[$j++] = $1.options; //#7301 + $0.databaromni(); //#7301 + var _b = $k[--$j]; //#7301 + $1[$k[--$j]] = _b; //#7301 + $put($1.args, "opt", $1.options); //#7303 + $k[$j++] = $1.args; //#7306 + if (!$1.dontdraw) { //#7306 + $0.renlinear(); //#7306 + } //#7306 }; $0.databarlimited = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.height = 10 / 72; - $1.linkage = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.height = +$1.height; - if ($ne($geti($1.barcode, 0, 4), "(01)")) { - $k[$j++] = "bwipp.databarlimitedBadAI"; - $k[$j++] = "GS1 DataBar Limited must begin with (01) application identifier"; - $0.raiseerror(); - } - if ($1.barcode.length != 17 && $1.barcode.length != 18) { - $k[$j++] = "bwipp.databarlimitedBadLength"; - $k[$j++] = "GS1 DataBar Limited must be 13 or 14 digits"; - $0.raiseerror(); - } - var _B = $get($1.barcode, 4); - if (_B < 48 || _B > 49) { - $k[$j++] = "bwipp.databarlimitedBadStartDigit"; - $k[$j++] = "GS1 DataBar Limited must begin with 0 or 1"; - $0.raiseerror(); - } - var _E = $geti($1.barcode, 5, $1.barcode.length - 5); - for (var _F = 0, _G = _E.length; _F < _G; _F++) { - var _H = $get(_E, _F); - if (_H < 48 || _H > 57) { - $k[$j++] = "bwipp.databarlimitedBadCharacter"; - $k[$j++] = "GS1 DataBar Limited must contain only digits"; - $0.raiseerror(); - } - } - $1.checksum = 0; - for (var _I = 0; _I <= 12; _I += 1) { - $1.i = _I; - $k[$j++] = "checksum"; - $k[$j++] = $1.checksum; - $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); - if ($1.i % 2 == 0) { - var _O = $k[--$j]; - $k[$j++] = _O * 3; - } - var _P = $k[--$j]; - var _Q = $k[--$j]; - $1[$k[--$j]] = $f(_Q + _P); - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.barcode.length == 18) { - if ($get($1.barcode, 17) != $1.checksum + 48) { - $k[$j++] = "bwipp.databarlimitedBadCheckDigit"; - $k[$j++] = "Incorrect GS1 DataBar Limited check digit provided"; - $0.raiseerror(); - } - } - var _X = $s(18); - $puti(_X, 0, $1.barcode); - $put(_X, 17, $1.checksum + 48); - $1.barcode = _X; - $k[$j++] = Infinity; - var _b = $geti($1.barcode, 4, 13); - for (var _c = 0, _d = _b.length; _c < _d; _c++) { - $k[$j++] = $f($get(_b, _c) - 48); - } - $1.binval = $a(); - if ($1.linkage) { - $1.linkval = $a([ 2, 0, 1, 5, 1, 3, 3, 5, 3, 1, 0, 9, 6 ]); - for (var _k = 0, _j = $1.binval.length - 1; _k <= _j; _k += 1) { - $1.i = _k; - $put($1.binval, $1.i, $f($get($1.binval, $1.i) + $get($1.linkval, $1.i))); - } - } - $1.txt = $a($1.barcode.length); - for (var _x = 0, _w = $1.barcode.length - 1; _x <= _w; _x += 1) { - $1.i = _x; - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), 0, 0, "", 0 ])); - } + var $1 = {}; //#7335 + $1.options = $k[--$j]; //#7337 + $1.barcode = $k[--$j]; //#7338 + $1.dontdraw = false; //#7340 + $1.height = 10 / 72; //#7341 + $1.linkage = false; //#7342 + $forall($1.options, function() { //#7353 + var _3 = $k[--$j]; //#7353 + $1[$k[--$j]] = _3; //#7353 + }); //#7353 + $1.height = +$1.height; //#7355 + if ($ne($geti($1.barcode, 0, 4), "(01)")) { //#7360 + $k[$j++] = 'bwipp.databarlimitedBadAI'; //#7359 + $k[$j++] = "GS1 DataBar Limited must begin with (01) application identifier"; //#7359 + $0.raiseerror(); //#7359 + } //#7359 + if (($1.barcode.length != 17) && ($1.barcode.length != 18)) { //#7363 + $k[$j++] = 'bwipp.databarlimitedBadLength'; //#7362 + $k[$j++] = "GS1 DataBar Limited must be 13 or 14 digits"; //#7362 + $0.raiseerror(); //#7362 + } //#7362 + var _B = $get($1.barcode, 4); //#7364 + if ((_B < 48) || (_B > 49)) { //#7366 + $k[$j++] = 'bwipp.databarlimitedBadStartDigit'; //#7365 + $k[$j++] = "GS1 DataBar Limited must begin with 0 or 1"; //#7365 + $0.raiseerror(); //#7365 + } //#7365 + var _E = $geti($1.barcode, 5, $1.barcode.length - 5); //#7367 + for (var _F = 0, _G = _E.length; _F < _G; _F++) { //#7371 + var _H = $get(_E, _F); //#7371 + if ((_H < 48) || (_H > 57)) { //#7370 + $k[$j++] = 'bwipp.databarlimitedBadCharacter'; //#7369 + $k[$j++] = "GS1 DataBar Limited must contain only digits"; //#7369 + $0.raiseerror(); //#7369 + } //#7369 + } //#7369 + $1.checksum = 0; //#7374 + for (var _I = 0; _I <= 12; _I += 1) { //#7378 + $1.i = _I; //#7376 + $k[$j++] = 'checksum'; //#7377 + $k[$j++] = $1.checksum; //#7377 + $k[$j++] = $f($get($1.barcode, $1.i + 4) - 48); //#7377 + if (($1.i % 2) == 0) { //#7377 + var _O = $k[--$j]; //#7377 + $k[$j++] = _O * 3; //#7377 + } //#7377 + var _P = $k[--$j]; //#7377 + var _Q = $k[--$j]; //#7377 + $1[$k[--$j]] = $f(_Q + _P); //#7377 + } //#7377 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#7379 + if ($1.barcode.length == 18) { //#7384 + if ($get($1.barcode, 17) != ($1.checksum + 48)) { //#7383 + $k[$j++] = 'bwipp.databarlimitedBadCheckDigit'; //#7382 + $k[$j++] = "Incorrect GS1 DataBar Limited check digit provided"; //#7382 + $0.raiseerror(); //#7382 + } //#7382 + } //#7382 + var _X = $s(18); //#7385 + $puti(_X, 0, $1.barcode); //#7386 + $put(_X, 17, $1.checksum + 48); //#7387 + $1.barcode = _X; //#7388 + $k[$j++] = Infinity; //#7392 + var _b = $geti($1.barcode, 4, 13); //#7392 + for (var _c = 0, _d = _b.length; _c < _d; _c++) { //#7392 + $k[$j++] = $f($get(_b, _c) - 48); //#7392 + } //#7392 + $1.binval = $a(); //#7392 + if ($1.linkage) { //#7400 + $1.linkval = $a([2, 0, 1, 5, 1, 3, 3, 5, 3, 1, 0, 9, 6]); //#7395 + for (var _k = 0, _j = $1.binval.length - 1; _k <= _j; _k += 1) { //#7399 + $1.i = _k; //#7397 + $put($1.binval, $1.i, $f($get($1.binval, $1.i) + $get($1.linkval, $1.i))); //#7398 + } //#7398 + } //#7398 + $1.txt = $a($1.barcode.length); //#7403 + for (var _x = 0, _w = $1.barcode.length - 1; _x <= _w; _x += 1) { //#7407 + $1.i = _x; //#7405 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), 0, 0, "", 0])); //#7406 + } //#7406 $1.ncr = function() { - var _14 = $k[--$j]; - var _15 = $k[--$j]; - var _16 = $f(_15 - _14); - if (_14 < $f(_15 - _14)) { - var _ = _16; - _16 = _14; - _14 = _; - } - $k[$j++] = _16; - $k[$j++] = 1; - $k[$j++] = 1; - for (var _18 = _15, _17 = $f(_14 + 1); _18 >= _17; _18 -= 1) { - var _19 = $k[--$j]; - var _1A = $k[--$j]; - var _1B = $k[--$j]; - $k[$j++] = _1B; - $k[$j++] = _1A; - $k[$j++] = _19 * _18; - if ($le(_1A, _1B)) { - var _1C = $k[--$j]; - var _1D = $k[--$j]; - $k[$j++] = $f(_1D + 1); - $k[$j++] = ~~(_1C / _1D); - } - } - for (;;) { - var _1E = $k[--$j]; - var _1F = $k[--$j]; - var _1G = $k[--$j]; - $k[$j++] = _1G; - $k[$j++] = _1F; - $k[$j++] = _1E; - if ($gt(_1F, _1G)) { - break; - } - var _1H = $k[--$j]; - var _1I = $k[--$j]; - $k[$j++] = $f(_1I + 1); - $k[$j++] = ~~(_1H / _1I); - } - var _1J = $k[--$j]; - var _1K = $k[--$j]; - $k[$j++] = _1J; - $k[$j++] = _1K; - $j--; - var _1L = $k[--$j]; - var _1M = $k[--$j]; - $k[$j++] = _1L; - $k[$j++] = _1M; - $j--; - }; + var _14 = $k[--$j]; //#7410 + var _15 = $k[--$j]; //#7410 + var _16 = $f(_15 - _14); //#7410 + if (_14 < $f(_15 - _14)) { //#7410 + var _ = _16; //#7410 + _16 = _14; //#7410 + _14 = _; //#7410 + } //#7410 + $k[$j++] = _16; //#7417 + $k[$j++] = 1; //#7417 + $k[$j++] = 1; //#7417 + for (var _18 = _15, _17 = $f(_14 + 1); _18 >= _17; _18 -= 1) { //#7417 + var _19 = $k[--$j]; //#7413 + var _1A = $k[--$j]; //#7414 + var _1B = $k[--$j]; //#7414 + $k[$j++] = _1B; //#7416 + $k[$j++] = _1A; //#7416 + $k[$j++] = _19 * _18; //#7416 + if ($le(_1A, _1B)) { //#7416 + var _1C = $k[--$j]; //#7415 + var _1D = $k[--$j]; //#7415 + $k[$j++] = $f(_1D + 1); //#7415 + $k[$j++] = ~~(_1C / _1D); //#7415 + } //#7415 + } //#7415 + for (;;) { //#7421 + var _1E = $k[--$j]; //#7419 + var _1F = $k[--$j]; //#7419 + var _1G = $k[--$j]; //#7419 + $k[$j++] = _1G; //#7419 + $k[$j++] = _1F; //#7419 + $k[$j++] = _1E; //#7419 + if ($gt(_1F, _1G)) { //#7419 + break; //#7419 + } //#7419 + var _1H = $k[--$j]; //#7420 + var _1I = $k[--$j]; //#7420 + $k[$j++] = $f(_1I + 1); //#7420 + $k[$j++] = ~~(_1H / _1I); //#7420 + } //#7420 + var _1J = $k[--$j]; //#7422 + var _1K = $k[--$j]; //#7422 + $k[$j++] = _1J; //#7422 + $k[$j++] = _1K; //#7422 + $j--; //#7422 + var _1L = $k[--$j]; //#7422 + var _1M = $k[--$j]; //#7422 + $k[$j++] = _1L; //#7422 + $k[$j++] = _1M; //#7422 + $j--; //#7422 + }; //#7423 $1.getRSSwidths = function() { - $1.oe = $k[--$j]; - $1.el = $k[--$j]; - $1.mw = $k[--$j]; - $1.nm = $k[--$j]; - $1.val = $k[--$j]; - $1.out = $a($1.el); - $1.mask = 0; - for (var _1W = 0, _1V = $f($1.el - 2); _1W <= _1V; _1W += 1) { - $1.bar = _1W; - $1.ew = 1; - var _1Y = $1.bar; - $1.mask = $1.mask | (_1Y < 0 ? 1 >>> -_1Y : 1 << _1Y); - for (;;) { - $k[$j++] = "sval"; - $k[$j++] = $f($f($1.nm - $1.ew) - 1); - $k[$j++] = $f($f($1.el - $1.bar) - 2); - $1.ncr(); - var _1d = $k[--$j]; - $1[$k[--$j]] = _1d; - if ($1.oe && $1.mask == 0 && $f($f($f($1.nm - $1.ew) - $1.el * 2) + $1.bar * 2) >= -2) { - $k[$j++] = "sval"; - $k[$j++] = $1.sval; - $k[$j++] = $f($f($f($1.nm - $1.ew) - $1.el) + $1.bar); - $k[$j++] = $f($f($1.el - $1.bar) - 2); - $1.ncr(); - var _1s = $k[--$j]; - var _1t = $k[--$j]; - $1[$k[--$j]] = $f(_1t - _1s); - } - if ($f($1.el - $1.bar) > 2) { - $1.lval = 0; - for (var _23 = $f($f($f($f($1.nm - $1.ew) - $1.el) + $1.bar) + 2), _22 = $f($1.mw + 1); _23 >= _22; _23 -= 1) { - $k[$j++] = $f($f($f($1.nm - _23) - $1.ew) - 1); - $k[$j++] = $f($f($1.el - $1.bar) - 3); - $1.ncr(); - $1.lval = $f($k[--$j] + $1.lval); - } - $1.sval = $f($1.sval - $1.lval * $f($f($1.el - $1.bar) - 1)); - } else { - if ($f($1.nm - $1.ew) > $1.mw) { - $1.sval = $f($1.sval - 1); - } - } - $1.val = $f($1.val - $1.sval); - if ($1.val < 0) { - break; - } - $1.ew = $1.ew + 1; - var _2N = $1.bar; - $1.mask = $1.mask & ~(_2N < 0 ? 1 >>> -_2N : 1 << _2N); - } - $1.val = $f($1.val + $1.sval); - $1.nm = $f($1.nm - $1.ew); - $put($1.out, $1.bar, $1.ew); - } - $put($1.out, $f($1.el - 1), $1.nm); - $k[$j++] = $1.out; - }; - for (var _2Z = 0; _2Z <= 11; _2Z += 1) { - $1.i = _2Z; - var _2a = $1.binval; - var _2b = $1.i; - $put(_2a, _2b + 1, $f($get(_2a, _2b + 1) + $get($1.binval, $1.i) % 2013571 * 10)); - $put($1.binval, $1.i, ~~($get($1.binval, $1.i) / 2013571)); - } - $1.d2 = $get($1.binval, 12) % 2013571; - var _2n = $1.binval; - $put(_2n, 12, ~~($get(_2n, 12) / 2013571)); - $1.d1 = 0; - $1.i = true; - for (var _2p = 0; _2p <= 12; _2p += 1) { - $1.j = _2p; - var _2s = $get($1.binval, $1.j); - $k[$j++] = _2s; - if (_2s == 0 && $1.i) { - $j--; - } else { - $1.i = false; - $1.d1 = $f($1.d1 + $k[--$j] * ~~Math.pow(10, 12 - $1.j)); - } - } - $1.tab267 = $a([ 183063, 0, 17, 9, 6, 3, 6538, 28, 820063, 183064, 13, 13, 5, 4, 875, 728, 1000775, 820064, 9, 17, 3, 6, 28, 6454, 1491020, 1000776, 15, 11, 5, 4, 2415, 203, 1979844, 1491021, 11, 15, 4, 5, 203, 2408, 1996938, 1979845, 19, 7, 8, 1, 17094, 1, 2013570, 1996939, 7, 19, 1, 8, 1, 16632 ]); - $1.i = 0; - for (;;) { - if ($1.d1 <= $get($1.tab267, $1.i)) { - var _34 = $geti($1.tab267, $1.i + 1, 7); - for (var _35 = 0, _36 = _34.length; _35 < _36; _35++) { - $k[$j++] = $get(_34, _35); - } - $1.d1te = $k[--$j]; - $1.d1to = $k[--$j]; - $1.d1mwe = $k[--$j]; - $1.d1mwo = $k[--$j]; - $1.d1ele = $k[--$j]; - $1.d1elo = $k[--$j]; - $1.d1gs = $k[--$j]; - break; - } - $1.i = $1.i + 8; - } - $1.i = 0; - for (;;) { - if ($1.d2 <= $get($1.tab267, $1.i)) { - var _3M = $geti($1.tab267, $1.i + 1, 7); - for (var _3N = 0, _3O = _3M.length; _3N < _3O; _3N++) { - $k[$j++] = $get(_3M, _3N); - } - $1.d2te = $k[--$j]; - $1.d2to = $k[--$j]; - $1.d2mwe = $k[--$j]; - $1.d2mwo = $k[--$j]; - $1.d2ele = $k[--$j]; - $1.d2elo = $k[--$j]; - $1.d2gs = $k[--$j]; - break; - } - $1.i = $1.i + 8; - } - $k[$j++] = "d1wo"; - $k[$j++] = ~~($f($1.d1 - $1.d1gs) / $1.d1te); - $k[$j++] = $1.d1elo; - $k[$j++] = $1.d1mwo; - $k[$j++] = 7; - $k[$j++] = false; - $1.getRSSwidths(); - var _3d = $k[--$j]; - $1[$k[--$j]] = _3d; - $k[$j++] = "d1we"; - $k[$j++] = $f($1.d1 - $1.d1gs) % $1.d1te; - $k[$j++] = $1.d1ele; - $k[$j++] = $1.d1mwe; - $k[$j++] = 7; - $k[$j++] = true; - $1.getRSSwidths(); - var _3k = $k[--$j]; - $1[$k[--$j]] = _3k; - $k[$j++] = "d2wo"; - $k[$j++] = ~~($f($1.d2 - $1.d2gs) / $1.d2te); - $k[$j++] = $1.d2elo; - $k[$j++] = $1.d2mwo; - $k[$j++] = 7; - $k[$j++] = false; - $1.getRSSwidths(); - var _3r = $k[--$j]; - $1[$k[--$j]] = _3r; - $k[$j++] = "d2we"; - $k[$j++] = $f($1.d2 - $1.d2gs) % $1.d2te; - $k[$j++] = $1.d2ele; - $k[$j++] = $1.d2mwe; - $k[$j++] = 7; - $k[$j++] = true; - $1.getRSSwidths(); - var _3y = $k[--$j]; - $1[$k[--$j]] = _3y; - $1.d1w = $a(14); - for (var _41 = 0; _41 <= 6; _41 += 1) { - $1.i = _41; - $put($1.d1w, $1.i * 2, $get($1.d1wo, $1.i)); - $put($1.d1w, $1.i * 2 + 1, $get($1.d1we, $1.i)); - } - $1.d2w = $a(14); - for (var _4D = 0; _4D <= 6; _4D += 1) { - $1.i = _4D; - $put($1.d2w, $1.i * 2, $get($1.d2wo, $1.i)); - $put($1.d2w, $1.i * 2 + 1, $get($1.d2we, $1.i)); - } - $k[$j++] = Infinity; - var _4O = $1.d1w; - for (var _4P = 0, _4Q = _4O.length; _4P < _4Q; _4P++) { - $k[$j++] = $get(_4O, _4P); - } - var _4S = $1.d2w; - for (var _4T = 0, _4U = _4S.length; _4T < _4U; _4T++) { - $k[$j++] = $get(_4S, _4T); - } - $1.widths = $a(); - $1.checkweights = $a([ 1, 3, 9, 27, 81, 65, 17, 51, 64, 14, 42, 37, 22, 66, 20, 60, 2, 6, 18, 54, 73, 41, 34, 13, 39, 28, 84, 74 ]); - $k[$j++] = Infinity; - for (var _4Y = 0; _4Y <= 43; _4Y += 1) { - $k[$j++] = _4Y; - } - $k[$j++] = 45; - $k[$j++] = 52; - $k[$j++] = 57; - for (var _4Z = 63; _4Z <= 66; _4Z += 1) { - $k[$j++] = _4Z; - } - for (var _4a = 73; _4a <= 79; _4a += 1) { - $k[$j++] = _4a; - } - $k[$j++] = 82; - for (var _4b = 126; _4b <= 130; _4b += 1) { - $k[$j++] = _4b; - } - $k[$j++] = 132; - for (var _4c = 141; _4c <= 146; _4c += 1) { - $k[$j++] = _4c; - } - for (var _4d = 210; _4d <= 217; _4d += 1) { - $k[$j++] = _4d; - } - $k[$j++] = 220; - for (var _4e = 316; _4e <= 320; _4e += 1) { - $k[$j++] = _4e; - } - $k[$j++] = 322; - $k[$j++] = 323; - $k[$j++] = 326; - $k[$j++] = 337; - $1.checkseq = $a(); - $1.checksum = 0; - for (var _4g = 0; _4g <= 27; _4g += 1) { - $1.i = _4g; - $1.checksum = $f($1.checksum + $get($1.widths, $1.i) * $get($1.checkweights, $1.i)); - } - $1.checksum = $1.checksum % 89; - $1.seq = $get($1.checkseq, $1.checksum); - $k[$j++] = "swidths"; - $k[$j++] = ~~($1.seq / 21); - $k[$j++] = 8; - $k[$j++] = 3; - $k[$j++] = 6; - $k[$j++] = false; - $1.getRSSwidths(); - var _4t = $k[--$j]; - $1[$k[--$j]] = _4t; - $k[$j++] = "bwidths"; - $k[$j++] = $1.seq % 21; - $k[$j++] = 8; - $k[$j++] = 3; - $k[$j++] = 6; - $k[$j++] = false; - $1.getRSSwidths(); - var _4w = $k[--$j]; - $1[$k[--$j]] = _4w; - $1.checkwidths = $a([ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1 ]); - for (var _4z = 0; _4z <= 5; _4z += 1) { - $1.i = _4z; - $put($1.checkwidths, $1.i * 2, $get($1.swidths, $1.i)); - $put($1.checkwidths, $1.i * 2 + 1, $get($1.bwidths, $1.i)); - } - $k[$j++] = Infinity; - var _5A = $1.d1w; - $k[$j++] = 1; - for (var _5B = 0, _5C = _5A.length; _5B < _5C; _5B++) { - $k[$j++] = $get(_5A, _5B); - } - var _5E = $1.checkwidths; - for (var _5F = 0, _5G = _5E.length; _5F < _5G; _5F++) { - $k[$j++] = $get(_5E, _5F); - } - var _5I = $1.d2w; - for (var _5J = 0, _5K = _5I.length; _5J < _5K; _5J++) { - $k[$j++] = $get(_5I, _5J); - } - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 5; - $1.sbs = $a(); - $k[$j++] = Infinity; - var _5N = $1.sbs; - $k[$j++] = Infinity; - for (var _5P = 0, _5Q = ~~(($1.sbs.length + 1) / 2); _5P < _5Q; _5P++) { - $k[$j++] = $1.height; - } - var _5S = $a(); - $k[$j++] = Infinity; - for (var _5U = 0, _5V = ~~(($1.sbs.length + 1) / 2); _5U < _5V; _5U++) { - $k[$j++] = 0; - } - var _5W = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _5N; - $k[$j++] = "bhs"; - $k[$j++] = _5S; - $k[$j++] = "bbs"; - $k[$j++] = _5W; - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - $k[$j++] = "textxalign"; - $k[$j++] = "center"; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _5Z = $d(); - $k[$j++] = _5Z; - if (!$1.dontdraw) { - $0.renlinear(); - } + $1.oe = $k[--$j]; //#7426 + $1.el = $k[--$j]; //#7427 + $1.mw = $k[--$j]; //#7428 + $1.nm = $k[--$j]; //#7429 + $1.val = $k[--$j]; //#7430 + $1.out = $a($1.el); //#7431 + $1.mask = 0; //#7432 + for (var _1W = 0, _1V = $f($1.el - 2); _1W <= _1V; _1W += 1) { //#7459 + $1.bar = _1W; //#7434 + $1.ew = 1; //#7435 + var _1Y = $1.bar; //#7436 + $1.mask = $1.mask | ((_1Y < 0 ? 1 >>> -_1Y : 1 << _1Y)); //#7436 + for (;;) { //#7455 + $k[$j++] = 'sval'; //#7437 + $k[$j++] = $f($f($1.nm - $1.ew) - 1); //#7437 + $k[$j++] = $f($f($1.el - $1.bar) - 2); //#7437 + $1.ncr(); //#7437 + var _1d = $k[--$j]; //#7437 + $1[$k[--$j]] = _1d; //#7437 + if (($1.oe && ($1.mask == 0)) && (($f(($f($f($1.nm - $1.ew) - ($1.el * 2))) + ($1.bar * 2))) >= -2)) { //#7440 + $k[$j++] = 'sval'; //#7439 + $k[$j++] = $1.sval; //#7439 + $k[$j++] = $f(($f($f($1.nm - $1.ew) - $1.el)) + $1.bar); //#7439 + $k[$j++] = $f($f($1.el - $1.bar) - 2); //#7439 + $1.ncr(); //#7439 + var _1s = $k[--$j]; //#7439 + var _1t = $k[--$j]; //#7439 + $1[$k[--$j]] = $f(_1t - _1s); //#7439 + } //#7439 + if ($f($1.el - $1.bar) > 2) { //#7449 + $1.lval = 0; //#7442 + for (var _23 = $f(($f(($f($f($1.nm - $1.ew) - $1.el)) + $1.bar)) + 2), _22 = $f($1.mw + 1); _23 >= _22; _23 -= 1) { //#7446 + $k[$j++] = $f(($f($f($1.nm - _23) - $1.ew)) - 1); //#7444 + $k[$j++] = $f($f($1.el - $1.bar) - 3); //#7444 + $1.ncr(); //#7444 + $1.lval = $f($k[--$j] + $1.lval); //#7445 + } //#7445 + $1.sval = $f($1.sval - ($1.lval * ($f($f($1.el - $1.bar) - 1)))); //#7447 + } else { //#7449 + if ($f($1.nm - $1.ew) > $1.mw) { //#7449 + $1.sval = $f($1.sval - 1); //#7449 + } //#7449 + } //#7449 + $1.val = $f($1.val - $1.sval); //#7451 + if ($1.val < 0) { //#7452 + break; //#7452 + } //#7452 + $1.ew = $1.ew + 1; //#7453 + var _2N = $1.bar; //#7454 + $1.mask = $1.mask & (~((_2N < 0 ? 1 >>> -_2N : 1 << _2N))); //#7454 + } //#7454 + $1.val = $f($1.val + $1.sval); //#7456 + $1.nm = $f($1.nm - $1.ew); //#7457 + $put($1.out, $1.bar, $1.ew); //#7458 + } //#7458 + $put($1.out, $f($1.el - 1), $1.nm); //#7460 + $k[$j++] = $1.out; //#7461 + }; //#7462 + for (var _2Z = 0; _2Z <= 11; _2Z += 1) { //#7468 + $1.i = _2Z; //#7465 + var _2a = $1.binval; //#7466 + var _2b = $1.i; //#7466 + $put(_2a, _2b + 1, $f($get(_2a, _2b + 1) + (($get($1.binval, $1.i) % 2013571) * 10))); //#7466 + $put($1.binval, $1.i, ~~($get($1.binval, $1.i) / 2013571)); //#7467 + } //#7467 + $1.d2 = $get($1.binval, 12) % 2013571; //#7469 + var _2n = $1.binval; //#7470 + $put(_2n, 12, ~~($get(_2n, 12) / 2013571)); //#7470 + $1.d1 = 0; //#7472 + $1.i = true; //#7473 + for (var _2p = 0; _2p <= 12; _2p += 1) { //#7483 + $1.j = _2p; //#7475 + var _2s = $get($1.binval, $1.j); //#7476 + $k[$j++] = _2s; //#7482 + if ((_2s == 0) && $1.i) { //#7481 + $j--; //#7478 + } else { //#7481 + $1.i = false; //#7480 + $1.d1 = $f($1.d1 + ($k[--$j] * (~~Math.pow(10, 12 - $1.j)))); //#7481 + } //#7481 + } //#7481 + $1.tab267 = $a([183063, 0, 17, 9, 6, 3, 6538, 28, 820063, 183064, 13, 13, 5, 4, 875, 728, 1000775, 820064, 9, 17, 3, 6, 28, 6454, 1491020, 1000776, 15, 11, 5, 4, 2415, 203, 1979844, 1491021, 11, 15, 4, 5, 203, 2408, 1996938, 1979845, 19, 7, 8, 1, 17094, 1, 2013570, 1996939, 7, 19, 1, 8, 1, 16632]); //#7493 + $1.i = 0; //#7495 + for (;;) { //#7505 + if ($1.d1 <= $get($1.tab267, $1.i)) { //#7503 + var _34 = $geti($1.tab267, $1.i + 1, 7); //#7497 + for (var _35 = 0, _36 = _34.length; _35 < _36; _35++) { //#7497 + $k[$j++] = $get(_34, _35); //#7497 + } //#7497 + $1.d1te = $k[--$j]; //#7498 + $1.d1to = $k[--$j]; //#7498 + $1.d1mwe = $k[--$j]; //#7499 + $1.d1mwo = $k[--$j]; //#7499 + $1.d1ele = $k[--$j]; //#7500 + $1.d1elo = $k[--$j]; //#7500 + $1.d1gs = $k[--$j]; //#7501 + break; //#7502 + } //#7502 + $1.i = $1.i + 8; //#7504 + } //#7504 + $1.i = 0; //#7507 + for (;;) { //#7517 + if ($1.d2 <= $get($1.tab267, $1.i)) { //#7515 + var _3M = $geti($1.tab267, $1.i + 1, 7); //#7509 + for (var _3N = 0, _3O = _3M.length; _3N < _3O; _3N++) { //#7509 + $k[$j++] = $get(_3M, _3N); //#7509 + } //#7509 + $1.d2te = $k[--$j]; //#7510 + $1.d2to = $k[--$j]; //#7510 + $1.d2mwe = $k[--$j]; //#7511 + $1.d2mwo = $k[--$j]; //#7511 + $1.d2ele = $k[--$j]; //#7512 + $1.d2elo = $k[--$j]; //#7512 + $1.d2gs = $k[--$j]; //#7513 + break; //#7514 + } //#7514 + $1.i = $1.i + 8; //#7516 + } //#7516 + $k[$j++] = 'd1wo'; //#7519 + $k[$j++] = ~~($f($1.d1 - $1.d1gs) / $1.d1te); //#7519 + $k[$j++] = $1.d1elo; //#7519 + $k[$j++] = $1.d1mwo; //#7519 + $k[$j++] = 7; //#7519 + $k[$j++] = false; //#7519 + $1.getRSSwidths(); //#7519 + var _3d = $k[--$j]; //#7519 + $1[$k[--$j]] = _3d; //#7519 + $k[$j++] = 'd1we'; //#7520 + $k[$j++] = $f($1.d1 - $1.d1gs) % $1.d1te; //#7520 + $k[$j++] = $1.d1ele; //#7520 + $k[$j++] = $1.d1mwe; //#7520 + $k[$j++] = 7; //#7520 + $k[$j++] = true; //#7520 + $1.getRSSwidths(); //#7520 + var _3k = $k[--$j]; //#7520 + $1[$k[--$j]] = _3k; //#7520 + $k[$j++] = 'd2wo'; //#7521 + $k[$j++] = ~~($f($1.d2 - $1.d2gs) / $1.d2te); //#7521 + $k[$j++] = $1.d2elo; //#7521 + $k[$j++] = $1.d2mwo; //#7521 + $k[$j++] = 7; //#7521 + $k[$j++] = false; //#7521 + $1.getRSSwidths(); //#7521 + var _3r = $k[--$j]; //#7521 + $1[$k[--$j]] = _3r; //#7521 + $k[$j++] = 'd2we'; //#7522 + $k[$j++] = $f($1.d2 - $1.d2gs) % $1.d2te; //#7522 + $k[$j++] = $1.d2ele; //#7522 + $k[$j++] = $1.d2mwe; //#7522 + $k[$j++] = 7; //#7522 + $k[$j++] = true; //#7522 + $1.getRSSwidths(); //#7522 + var _3y = $k[--$j]; //#7522 + $1[$k[--$j]] = _3y; //#7522 + $1.d1w = $a(14); //#7524 + for (var _41 = 0; _41 <= 6; _41 += 1) { //#7529 + $1.i = _41; //#7526 + $put($1.d1w, $1.i * 2, $get($1.d1wo, $1.i)); //#7527 + $put($1.d1w, ($1.i * 2) + 1, $get($1.d1we, $1.i)); //#7528 + } //#7528 + $1.d2w = $a(14); //#7531 + for (var _4D = 0; _4D <= 6; _4D += 1) { //#7536 + $1.i = _4D; //#7533 + $put($1.d2w, $1.i * 2, $get($1.d2wo, $1.i)); //#7534 + $put($1.d2w, ($1.i * 2) + 1, $get($1.d2we, $1.i)); //#7535 + } //#7535 + $k[$j++] = Infinity; //#7540 + var _4O = $1.d1w; //#7539 + for (var _4P = 0, _4Q = _4O.length; _4P < _4Q; _4P++) { //#7539 + $k[$j++] = $get(_4O, _4P); //#7539 + } //#7539 + var _4S = $1.d2w; //#7540 + for (var _4T = 0, _4U = _4S.length; _4T < _4U; _4T++) { //#7540 + $k[$j++] = $get(_4S, _4T); //#7540 + } //#7540 + $1.widths = $a(); //#7540 + $1.checkweights = $a([1, 3, 9, 27, 81, 65, 17, 51, 64, 14, 42, 37, 22, 66, 20, 60, 2, 6, 18, 54, 73, 41, 34, 13, 39, 28, 84, 74]); //#7546 + $k[$j++] = Infinity; //#7561 + for (var _4Y = 0; _4Y <= 43; _4Y += 1) { //#7549 + $k[$j++] = _4Y; //#7549 + } //#7549 + $k[$j++] = 45; //#7551 + $k[$j++] = 52; //#7551 + $k[$j++] = 57; //#7551 + for (var _4Z = 63; _4Z <= 66; _4Z += 1) { //#7551 + $k[$j++] = _4Z; //#7551 + } //#7551 + for (var _4a = 73; _4a <= 79; _4a += 1) { //#7552 + $k[$j++] = _4a; //#7552 + } //#7552 + $k[$j++] = 82; //#7554 + for (var _4b = 126; _4b <= 130; _4b += 1) { //#7554 + $k[$j++] = _4b; //#7554 + } //#7554 + $k[$j++] = 132; //#7556 + for (var _4c = 141; _4c <= 146; _4c += 1) { //#7556 + $k[$j++] = _4c; //#7556 + } //#7556 + for (var _4d = 210; _4d <= 217; _4d += 1) { //#7557 + $k[$j++] = _4d; //#7557 + } //#7557 + $k[$j++] = 220; //#7559 + for (var _4e = 316; _4e <= 320; _4e += 1) { //#7559 + $k[$j++] = _4e; //#7559 + } //#7559 + $k[$j++] = 322; //#7561 + $k[$j++] = 323; //#7561 + $k[$j++] = 326; //#7561 + $k[$j++] = 337; //#7561 + $1.checkseq = $a(); //#7561 + $1.checksum = 0; //#7564 + for (var _4g = 0; _4g <= 27; _4g += 1) { //#7568 + $1.i = _4g; //#7566 + $1.checksum = $f($1.checksum + ($get($1.widths, $1.i) * $get($1.checkweights, $1.i))); //#7567 + } //#7567 + $1.checksum = $1.checksum % 89; //#7569 + $1.seq = $get($1.checkseq, $1.checksum); //#7570 + $k[$j++] = 'swidths'; //#7571 + $k[$j++] = ~~($1.seq / 21); //#7571 + $k[$j++] = 8; //#7571 + $k[$j++] = 3; //#7571 + $k[$j++] = 6; //#7571 + $k[$j++] = false; //#7571 + $1.getRSSwidths(); //#7571 + var _4t = $k[--$j]; //#7571 + $1[$k[--$j]] = _4t; //#7571 + $k[$j++] = 'bwidths'; //#7572 + $k[$j++] = $1.seq % 21; //#7572 + $k[$j++] = 8; //#7572 + $k[$j++] = 3; //#7572 + $k[$j++] = 6; //#7572 + $k[$j++] = false; //#7572 + $1.getRSSwidths(); //#7572 + var _4w = $k[--$j]; //#7572 + $1[$k[--$j]] = _4w; //#7572 + $1.checkwidths = $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1]); //#7574 + for (var _4z = 0; _4z <= 5; _4z += 1) { //#7579 + $1.i = _4z; //#7576 + $put($1.checkwidths, $1.i * 2, $get($1.swidths, $1.i)); //#7577 + $put($1.checkwidths, ($1.i * 2) + 1, $get($1.bwidths, $1.i)); //#7578 + } //#7578 + $k[$j++] = Infinity; //#7582 + var _5A = $1.d1w; //#7582 + $k[$j++] = 1; //#7582 + for (var _5B = 0, _5C = _5A.length; _5B < _5C; _5B++) { //#7582 + $k[$j++] = $get(_5A, _5B); //#7582 + } //#7582 + var _5E = $1.checkwidths; //#7582 + for (var _5F = 0, _5G = _5E.length; _5F < _5G; _5F++) { //#7582 + $k[$j++] = $get(_5E, _5F); //#7582 + } //#7582 + var _5I = $1.d2w; //#7582 + for (var _5J = 0, _5K = _5I.length; _5J < _5K; _5J++) { //#7582 + $k[$j++] = $get(_5I, _5J); //#7582 + } //#7582 + $k[$j++] = 1; //#7582 + $k[$j++] = 1; //#7582 + $k[$j++] = 5; //#7582 + $1.sbs = $a(); //#7582 + $k[$j++] = Infinity; //#7593 + var _5N = $1.sbs; //#7588 + $k[$j++] = Infinity; //#7589 + for (var _5P = 0, _5Q = ~~(($1.sbs.length + 1) / 2); _5P < _5Q; _5P++) { //#7589 + $k[$j++] = $1.height; //#7589 + } //#7589 + var _5S = $a(); //#7589 + $k[$j++] = Infinity; //#7590 + for (var _5U = 0, _5V = ~~(($1.sbs.length + 1) / 2); _5U < _5V; _5U++) { //#7590 + $k[$j++] = 0; //#7590 + } //#7590 + var _5W = $a(); //#7590 + $k[$j++] = 'ren'; //#7593 + $k[$j++] = $0.renlinear; //#7593 + $k[$j++] = 'sbs'; //#7593 + $k[$j++] = _5N; //#7593 + $k[$j++] = 'bhs'; //#7593 + $k[$j++] = _5S; //#7593 + $k[$j++] = 'bbs'; //#7593 + $k[$j++] = _5W; //#7593 + $k[$j++] = 'txt'; //#7593 + $k[$j++] = $1.txt; //#7593 + $k[$j++] = 'textxalign'; //#7593 + $k[$j++] = "center"; //#7593 + $k[$j++] = 'opt'; //#7593 + $k[$j++] = $1.options; //#7593 + var _5Z = $d(); //#7593 + $k[$j++] = _5Z; //#7596 + if (!$1.dontdraw) { //#7596 + $0.renlinear(); //#7596 + } //#7596 }; $0.databarexpanded = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.parse = false; - $1.dontlint = false; - $1.dontdraw = false; - $1.height = 34 / 72; - $1.format = "expanded"; - $1.segments = -1; - $1.linkage = false; - $1.barxmult = 34; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.height = +$1.height; - $1.segments = ~~$1.segments; - $1.barxmult = ~~$1.barxmult; - if ($1.segments == -1) { - var _A = $eq($1.format, "expandedstacked") ? 4 : 22; - $1.segments = _A; - } else { - if ($1.segments < 2 || $1.segments > 22 || $1.segments % 2 != 0) { - $k[$j++] = "bwipp.gs1databarexpandedBadSegments"; - $k[$j++] = "The number of segments must be even from 2 to 22"; - $0.raiseerror(); - } - } + var $1 = {}; //#7628 + $1.options = $k[--$j]; //#7630 + $1.barcode = $k[--$j]; //#7631 + $1.parse = false; //#7633 + $1.dontlint = false; //#7634 + $1.dontdraw = false; //#7635 + $1.height = 34 / 72; //#7636 + $1.format = "expanded"; //#7637 + $1.segments = -1; //#7638 + $1.linkage = false; //#7639 + $1.barxmult = 34; //#7640 + $forall($1.options, function() { //#7651 + var _3 = $k[--$j]; //#7651 + $1[$k[--$j]] = _3; //#7651 + }); //#7651 + $1.height = +$1.height; //#7653 + $1.segments = ~~$1.segments; //#7654 + $1.barxmult = ~~$1.barxmult; //#7655 + if ($1.segments == -1) { //#7661 + var _A = $eq($1.format, "expandedstacked") ? 4 : 22; //#7658 + $1.segments = _A; //#7658 + } else { //#7661 + if ((($1.segments < 2) || ($1.segments > 22)) || (($1.segments % 2) != 0)) { //#7662 + $k[$j++] = 'bwipp.gs1databarexpandedBadSegments'; //#7661 + $k[$j++] = "The number of segments must be even from 2 to 22"; //#7661 + $0.raiseerror(); //#7661 + } //#7661 + } //#7661 $1.expand = function() { - var _F = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _F; - $k[$j++] = $1.fncvals; - $0.parseinput(); - }; - $1.ais = $a([]); - $1.vals = $a([]); - var _J = $1.barcode; - $k[$j++] = $geti(_J, 1, _J.length - 1); - for (;;) { - var _L = $k[--$j]; - $k[$j++] = _L; - if ($eq(_L, "")) { - break; - } - $search($k[--$j], ")"); - $j--; - var _N = $k[--$j]; - var _O = $k[--$j]; - $k[$j++] = _N; - $k[$j++] = _O; - $j--; - var _P = $k[--$j]; - var _Q = $k[--$j]; - $k[$j++] = _P; - $search(_Q, "("); - if ($k[--$j]) { - var _S = $k[--$j]; - var _T = $k[--$j]; - $k[$j++] = _S; - $k[$j++] = _T; - $j--; - var _U = $k[--$j]; - var _V = $k[--$j]; - var _W = $k[--$j]; - $k[$j++] = _V; - $k[$j++] = _W; - $k[$j++] = _U; - } else { - var _X = $k[--$j]; - var _Y = $k[--$j]; - $k[$j++] = ""; - $k[$j++] = _Y; - $k[$j++] = _X; - } - $k[$j++] = Infinity; - $aload($1.ais); - var _b = $k[$j - 1 - ($counttomark() + 2)]; - $k[$j++] = _b; - $1.ais = $a(); - $k[$j++] = Infinity; - $aload($1.vals); - var _f = $k[$j - 1 - ($counttomark() + 1)]; - $k[$j++] = _f; - $1.expand(); - $1.vals = $a(); - $j -= 2; - } - $j--; - if (!$1.dontlint) { - $k[$j++] = $1.ais; - $k[$j++] = $1.vals; - $0.gs1lint(); - $j--; - } - for (;;) { - if ($1.ais.length == 2) { - if ($eq($get($1.ais, 0), "01") && $eq($get($1.ais, 1), "3103")) { - if ($eq($geti($get($1.vals, 0), 0, 1), "9") && ~~$z($get($1.vals, 1)) <= 32767) { - $k[$j++] = "0100"; - $k[$j++] = false; - break; - } - } - } - if ($1.ais.length == 2) { - if ($eq($get($1.ais, 0), "01") && $eq($get($1.ais, 1), "3202")) { - if ($eq($geti($get($1.vals, 0), 0, 1), "9") && ~~$z($get($1.vals, 1)) <= 9999) { - $k[$j++] = "0101"; - $k[$j++] = false; - break; - } - } - } - if ($1.ais.length == 2) { - if ($eq($get($1.ais, 0), "01") && $eq($get($1.ais, 1), "3203")) { - if ($eq($geti($get($1.vals, 0), 0, 1), "9") && ~~$z($get($1.vals, 1)) <= 22767) { - $k[$j++] = "0101"; - $k[$j++] = false; - break; - } - } - } - var _1F = $1.ais.length; - if (_1F == 2 || _1F == 3) { - $k[$j++] = "ai310x"; - $k[$j++] = false; - for (var _1G = 3100; _1G <= 3109; _1G += 1) { - var _1L = $k[--$j]; - $k[$j++] = _1L || $eq($cvrs($s(4), _1G, 10), $get($1.ais, 1)); - } - var _1M = $k[--$j]; - $1[$k[--$j]] = _1M; - $k[$j++] = "ai320x"; - $k[$j++] = false; - for (var _1O = 3200; _1O <= 3209; _1O += 1) { - var _1T = $k[--$j]; - $k[$j++] = _1T || $eq($cvrs($s(4), _1O, 10), $get($1.ais, 1)); - } - var _1U = $k[--$j]; - $1[$k[--$j]] = _1U; - if ($1.ais.length == 3) { - var _1X = $a([ "11", "13", "15", "17" ]); - $k[$j++] = "aibad"; - $k[$j++] = true; - for (var _1Y = 0, _1Z = _1X.length; _1Y < _1Z; _1Y++) { - var _1d = $k[--$j]; - $k[$j++] = _1d && $ne($get(_1X, _1Y), $get($1.ais, 2)); - } - var _1e = $k[--$j]; - $1[$k[--$j]] = _1e; - } else { - $1.aibad = false; - } - if ($eq($get($1.ais, 0), "01") && ($1.ai310x || $1.ai320x) && !$1.aibad) { - if ($1.ais.length == 3) { - var _1u = ~~$z($geti($get($1.vals, 2), 2, 2)); - var _1y = ~~$z($geti($get($1.vals, 2), 4, 2)); - if ($eq($geti($get($1.vals, 0), 0, 1), "9") && ~~$z($get($1.vals, 1)) <= 99999 && (_1u >= 1 && _1u <= 12) && (_1y >= 0 && _1y <= 31)) { - if ($1.ai310x && $eq($get($1.ais, 2), "11")) { - $k[$j++] = "0111000"; - $k[$j++] = false; - break; - } - if ($1.ai320x && $eq($get($1.ais, 2), "11")) { - $k[$j++] = "0111001"; - $k[$j++] = false; - break; - } - if ($1.ai310x && $eq($get($1.ais, 2), "13")) { - $k[$j++] = "0111010"; - $k[$j++] = false; - break; - } - if ($1.ai320x && $eq($get($1.ais, 2), "13")) { - $k[$j++] = "0111011"; - $k[$j++] = false; - break; - } - if ($1.ai310x && $eq($get($1.ais, 2), "15")) { - $k[$j++] = "0111100"; - $k[$j++] = false; - break; - } - if ($1.ai320x && $eq($get($1.ais, 2), "15")) { - $k[$j++] = "0111101"; - $k[$j++] = false; - break; - } - if ($1.ai310x && $eq($get($1.ais, 2), "17")) { - $k[$j++] = "0111110"; - $k[$j++] = false; - break; - } - if ($1.ai320x && $eq($get($1.ais, 2), "17")) { - $k[$j++] = "0111111"; - $k[$j++] = false; - break; - } - } - } else { - if ($eq($geti($get($1.vals, 0), 0, 1), "9") && ~~$z($get($1.vals, 1)) <= 99999) { - if ($1.ai310x) { - $k[$j++] = "0111000"; - $k[$j++] = false; - break; - } - if ($1.ai320x) { - $k[$j++] = "0111001"; - $k[$j++] = false; - break; - } - } - } - } - } - if ($1.ais.length >= 2) { - $k[$j++] = "ai392x"; - $k[$j++] = false; - for (var _2V = 3920; _2V <= 3923; _2V += 1) { - var _2a = $k[--$j]; - $k[$j++] = _2a || $eq($cvrs($s(4), _2V, 10), $get($1.ais, 1)); - } - var _2b = $k[--$j]; - $1[$k[--$j]] = _2b; - if ($eq($get($1.ais, 0), "01") && $1.ai392x) { - if ($eq($geti($get($1.vals, 0), 0, 1), "9")) { - $k[$j++] = "01100"; - $k[$j++] = true; - break; - } - } - } - if ($1.ais.length >= 2) { - $k[$j++] = "ai393x"; - $k[$j++] = false; - for (var _2k = 3930; _2k <= 3933; _2k += 1) { - var _2p = $k[--$j]; - $k[$j++] = _2p || $eq($cvrs($s(4), _2k, 10), $get($1.ais, 1)); - } - var _2q = $k[--$j]; - $1[$k[--$j]] = _2q; - if ($eq($get($1.ais, 0), "01") && $1.ai393x) { - if ($eq($geti($get($1.vals, 0), 0, 1), "9")) { - $k[$j++] = "01101"; - $k[$j++] = true; - break; - } - } - } - if ($eq($get($1.ais, 0), "01")) { - $k[$j++] = "1"; - $k[$j++] = true; - break; - } - $k[$j++] = "00"; - $k[$j++] = true; - break; - } - $1.gpfallow = $k[--$j]; - $1.method = $k[--$j]; + var _F = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#7670 + $1.fncvals = _F; //#7671 + $k[$j++] = $1.fncvals; //#7672 + $0.parseinput(); //#7672 + }; //#7673 + $1.ais = $a([]); //#7676 + $1.vals = $a([]); //#7677 + var _J = $1.barcode; //#7678 + $k[$j++] = $geti(_J, 1, _J.length - 1); //#7691 + for (;;) { //#7691 + var _L = $k[--$j]; //#7680 + $k[$j++] = _L; //#7680 + if ($eq(_L, "")) { //#7680 + break; //#7680 + } //#7680 + $search($k[--$j], ")"); //#7681 + $j--; //#7681 + var _N = $k[--$j]; //#7682 + var _O = $k[--$j]; //#7682 + $k[$j++] = _N; //#7682 + $k[$j++] = _O; //#7682 + $j--; //#7682 + var _P = $k[--$j]; //#7683 + var _Q = $k[--$j]; //#7683 + $k[$j++] = _P; //#7683 + $search(_Q, "("); //#7683 + if ($k[--$j]) { //#7686 + var _S = $k[--$j]; //#7684 + var _T = $k[--$j]; //#7684 + $k[$j++] = _S; //#7684 + $k[$j++] = _T; //#7684 + $j--; //#7684 + var _U = $k[--$j]; //#7684 + var _V = $k[--$j]; //#7684 + var _W = $k[--$j]; //#7684 + $k[$j++] = _V; //#7684 + $k[$j++] = _W; //#7684 + $k[$j++] = _U; //#7684 + } else { //#7686 + var _X = $k[--$j]; //#7686 + var _Y = $k[--$j]; //#7686 + $k[$j++] = ""; //#7686 + $k[$j++] = _Y; //#7686 + $k[$j++] = _X; //#7686 + } //#7686 + $k[$j++] = Infinity; //#7688 + $aload($1.ais); //#7688 + var _b = $k[$j - 1 - ($counttomark() + 2)]; //#7688 + $k[$j++] = _b; //#7688 + $1.ais = $a(); //#7688 + $k[$j++] = Infinity; //#7689 + $aload($1.vals); //#7689 + var _f = $k[$j - 1 - ($counttomark() + 1)]; //#7689 + $k[$j++] = _f; //#7689 + $1.expand(); //#7689 + $1.vals = $a(); //#7689 + $j -= 2; //#7690 + } //#7690 + $j--; //#7692 + if (!$1.dontlint) { //#7694 + $k[$j++] = $1.ais; //#7694 + $k[$j++] = $1.vals; //#7694 + $0.gs1lint(); //#7694 + $j--; //#7694 + } //#7694 + for (;;) { //#7782 + if ($1.ais.length == 2) { //#7706 + if ($eq($get($1.ais, 0), "01") && $eq($get($1.ais, 1), "3103")) { //#7705 + if ($eq($geti($get($1.vals, 0), 0, 1), "9") && ((~~$z($get($1.vals, 1))) <= 32767)) { //#7704 + $k[$j++] = "0100"; //#7703 + $k[$j++] = false; //#7703 + break; //#7703 + } //#7703 + } //#7703 + } //#7703 + if ($1.ais.length == 2) { //#7715 + if ($eq($get($1.ais, 0), "01") && $eq($get($1.ais, 1), "3202")) { //#7714 + if ($eq($geti($get($1.vals, 0), 0, 1), "9") && ((~~$z($get($1.vals, 1))) <= 9999)) { //#7713 + $k[$j++] = "0101"; //#7712 + $k[$j++] = false; //#7712 + break; //#7712 + } //#7712 + } //#7712 + } //#7712 + if ($1.ais.length == 2) { //#7724 + if ($eq($get($1.ais, 0), "01") && $eq($get($1.ais, 1), "3203")) { //#7723 + if ($eq($geti($get($1.vals, 0), 0, 1), "9") && ((~~$z($get($1.vals, 1))) <= 22767)) { //#7722 + $k[$j++] = "0101"; //#7721 + $k[$j++] = false; //#7721 + break; //#7721 + } //#7721 + } //#7721 + } //#7721 + var _1F = $1.ais.length; //#7727 + if ((_1F == 2) || (_1F == 3)) { //#7758 + $k[$j++] = 'ai310x'; //#7728 + $k[$j++] = false; //#7728 + for (var _1G = 3100; _1G <= 3109; _1G += 1) { //#7728 + var _1L = $k[--$j]; //#7728 + $k[$j++] = _1L || $eq($cvrs($s(4), _1G, 10), $get($1.ais, 1)); //#7728 + } //#7728 + var _1M = $k[--$j]; //#7728 + $1[$k[--$j]] = _1M; //#7728 + $k[$j++] = 'ai320x'; //#7729 + $k[$j++] = false; //#7729 + for (var _1O = 3200; _1O <= 3209; _1O += 1) { //#7729 + var _1T = $k[--$j]; //#7729 + $k[$j++] = _1T || $eq($cvrs($s(4), _1O, 10), $get($1.ais, 1)); //#7729 + } //#7729 + var _1U = $k[--$j]; //#7729 + $1[$k[--$j]] = _1U; //#7729 + if ($1.ais.length == 3) { //#7733 + var _1X = $a(["11", "13", "15", "17"]); //#7731 + $k[$j++] = 'aibad'; //#7731 + $k[$j++] = true; //#7731 + for (var _1Y = 0, _1Z = _1X.length; _1Y < _1Z; _1Y++) { //#7731 + var _1d = $k[--$j]; //#7731 + $k[$j++] = _1d && $ne($get(_1X, _1Y), $get($1.ais, 2)); //#7731 + } //#7731 + var _1e = $k[--$j]; //#7731 + $1[$k[--$j]] = _1e; //#7731 + } else { //#7733 + $1.aibad = false; //#7733 + } //#7733 + if (($eq($get($1.ais, 0), "01") && ($1.ai310x || $1.ai320x)) && (!$1.aibad)) { //#7757 + if ($1.ais.length == 3) { //#7754 + var _1u = ~~$z($geti($get($1.vals, 2), 2, 2)); //#7739 + var _1y = ~~$z($geti($get($1.vals, 2), 4, 2)); //#7740 + if ((($eq($geti($get($1.vals, 0), 0, 1), "9") && ((~~$z($get($1.vals, 1))) <= 99999)) && ((_1u >= 1) && (_1u <= 12))) && ((_1y >= 0) && (_1y <= 31))) { //#7749 + if ($1.ai310x && $eq($get($1.ais, 2), "11")) { //#7741 + $k[$j++] = "0111000"; //#7741 + $k[$j++] = false; //#7741 + break; //#7741 + } //#7741 + if ($1.ai320x && $eq($get($1.ais, 2), "11")) { //#7742 + $k[$j++] = "0111001"; //#7742 + $k[$j++] = false; //#7742 + break; //#7742 + } //#7742 + if ($1.ai310x && $eq($get($1.ais, 2), "13")) { //#7743 + $k[$j++] = "0111010"; //#7743 + $k[$j++] = false; //#7743 + break; //#7743 + } //#7743 + if ($1.ai320x && $eq($get($1.ais, 2), "13")) { //#7744 + $k[$j++] = "0111011"; //#7744 + $k[$j++] = false; //#7744 + break; //#7744 + } //#7744 + if ($1.ai310x && $eq($get($1.ais, 2), "15")) { //#7745 + $k[$j++] = "0111100"; //#7745 + $k[$j++] = false; //#7745 + break; //#7745 + } //#7745 + if ($1.ai320x && $eq($get($1.ais, 2), "15")) { //#7746 + $k[$j++] = "0111101"; //#7746 + $k[$j++] = false; //#7746 + break; //#7746 + } //#7746 + if ($1.ai310x && $eq($get($1.ais, 2), "17")) { //#7747 + $k[$j++] = "0111110"; //#7747 + $k[$j++] = false; //#7747 + break; //#7747 + } //#7747 + if ($1.ai320x && $eq($get($1.ais, 2), "17")) { //#7748 + $k[$j++] = "0111111"; //#7748 + $k[$j++] = false; //#7748 + break; //#7748 + } //#7748 + } //#7748 + } else { //#7754 + if ($eq($geti($get($1.vals, 0), 0, 1), "9") && ((~~$z($get($1.vals, 1))) <= 99999)) { //#7755 + if ($1.ai310x) { //#7753 + $k[$j++] = "0111000"; //#7753 + $k[$j++] = false; //#7753 + break; //#7753 + } //#7753 + if ($1.ai320x) { //#7754 + $k[$j++] = "0111001"; //#7754 + $k[$j++] = false; //#7754 + break; //#7754 + } //#7754 + } //#7754 + } //#7754 + } //#7754 + } //#7754 + if ($1.ais.length >= 2) { //#7766 + $k[$j++] = 'ai392x'; //#7762 + $k[$j++] = false; //#7762 + for (var _2V = 3920; _2V <= 3923; _2V += 1) { //#7762 + var _2a = $k[--$j]; //#7762 + $k[$j++] = _2a || $eq($cvrs($s(4), _2V, 10), $get($1.ais, 1)); //#7762 + } //#7762 + var _2b = $k[--$j]; //#7762 + $1[$k[--$j]] = _2b; //#7762 + if ($eq($get($1.ais, 0), "01") && $1.ai392x) { //#7765 + if ($eq($geti($get($1.vals, 0), 0, 1), "9")) { //#7764 + $k[$j++] = "01100"; //#7764 + $k[$j++] = true; //#7764 + break; //#7764 + } //#7764 + } //#7764 + } //#7764 + if ($1.ais.length >= 2) { //#7774 + $k[$j++] = 'ai393x'; //#7770 + $k[$j++] = false; //#7770 + for (var _2k = 3930; _2k <= 3933; _2k += 1) { //#7770 + var _2p = $k[--$j]; //#7770 + $k[$j++] = _2p || $eq($cvrs($s(4), _2k, 10), $get($1.ais, 1)); //#7770 + } //#7770 + var _2q = $k[--$j]; //#7770 + $1[$k[--$j]] = _2q; //#7770 + if ($eq($get($1.ais, 0), "01") && $1.ai393x) { //#7773 + if ($eq($geti($get($1.vals, 0), 0, 1), "9")) { //#7772 + $k[$j++] = "01101"; //#7772 + $k[$j++] = true; //#7772 + break; //#7772 + } //#7772 + } //#7772 + } //#7772 + if ($eq($get($1.ais, 0), "01")) { //#7777 + $k[$j++] = "1"; //#7777 + $k[$j++] = true; //#7777 + break; //#7777 + } //#7777 + $k[$j++] = "00"; //#7780 + $k[$j++] = true; //#7780 + break; //#7780 + } //#7780 + $1.gpfallow = $k[--$j]; //#7783 + $1.method = $k[--$j]; //#7784 $1.conv12to40 = function() { - var _33 = $strcpy($s(40), "0000000000000000000000000000000000000000"); - var _34 = $k[--$j]; - var _38 = $cvrs($s(10), ~~$z($geti(_34, 0, 3)), 2); - $puti($geti(_33, 0, 10), 10 - _38.length, _38); - var _3C = $cvrs($s(10), ~~$z($geti(_34, 3, 3)), 2); - $puti($geti(_33, 10, 10), 10 - _3C.length, _3C); - var _3G = $cvrs($s(10), ~~$z($geti(_34, 6, 3)), 2); - $puti($geti(_33, 20, 10), 10 - _3G.length, _3G); - var _3K = $cvrs($s(10), ~~$z($geti(_34, 9, 3)), 2); - $puti($geti(_33, 30, 10), 10 - _3K.length, _3K); - $k[$j++] = _33; - $k[$j++] = _34; - $j--; - }; + var _33 = $strcpy($s(40), "0000000000000000000000000000000000000000"); //#7787 + var _34 = $k[--$j]; //#7788 + var _38 = $cvrs($s(10), ~~$z($geti(_34, 0, 3)), 2); //#7788 + $puti($geti(_33, 0, 10), 10 - _38.length, _38); //#7788 + var _3C = $cvrs($s(10), ~~$z($geti(_34, 3, 3)), 2); //#7789 + $puti($geti(_33, 10, 10), 10 - _3C.length, _3C); //#7789 + var _3G = $cvrs($s(10), ~~$z($geti(_34, 6, 3)), 2); //#7790 + $puti($geti(_33, 20, 10), 10 - _3G.length, _3G); //#7790 + var _3K = $cvrs($s(10), ~~$z($geti(_34, 9, 3)), 2); //#7791 + $puti($geti(_33, 30, 10), 10 - _3K.length, _3K); //#7791 + $k[$j++] = _33; //#7792 + $k[$j++] = _34; //#7792 + $j--; //#7792 + }; //#7793 $1.conv13to44 = function() { - var _3M = $strcpy($s(44), "00000000000000000000000000000000000000000000"); - var _3N = $k[--$j]; - var _3R = $cvrs($s(4), ~~$z($geti(_3N, 0, 1)), 2); - $puti($geti(_3M, 0, 4), 4 - _3R.length, _3R); - $k[$j++] = _3M; - $k[$j++] = _3M; - $k[$j++] = $geti(_3N, 1, 12); - $1.conv12to40(); - var _3T = $k[--$j]; - $puti($k[--$j], 4, _3T); - }; + var _3M = $strcpy($s(44), "00000000000000000000000000000000000000000000"); //#7796 + var _3N = $k[--$j]; //#7797 + var _3R = $cvrs($s(4), ~~$z($geti(_3N, 0, 1)), 2); //#7797 + $puti($geti(_3M, 0, 4), 4 - _3R.length, _3R); //#7797 + $k[$j++] = _3M; //#7798 + $k[$j++] = _3M; //#7798 + $k[$j++] = $geti(_3N, 1, 12); //#7798 + $1.conv12to40(); //#7798 + var _3T = $k[--$j]; //#7798 + $puti($k[--$j], 4, _3T); //#7798 + }; //#7799 $1.tobin = function() { - var _3W = $s($k[--$j]); - $k[$j++] = _3W; - for (var _3Y = 0, _3X = _3W.length - 1; _3Y <= _3X; _3Y += 1) { - var _3Z = $k[--$j]; - $put(_3Z, _3Y, 48); - $k[$j++] = _3Z; - } - var _3a = $k[--$j]; - var _3d = $cvrs($s(_3a.length), $k[--$j], 2); - $puti(_3a, _3a.length - _3d.length, _3d); - $k[$j++] = _3a; - }; - $1.fnc1 = -1; - $1.lnumeric = -2; - $1.lalphanumeric = -3; - $1.liso646 = -4; - if ($eq($1.method, "00")) { - $1.cdf = $a([]); - $1.gpf = $a([]); - } - if ($eq($1.method, "1")) { - $k[$j++] = "cdf"; - $k[$j++] = $geti($get($1.vals, 0), 0, 13); - $1.conv13to44(); - var _3l = $k[--$j]; - $1[$k[--$j]] = _3l; - $k[$j++] = Infinity; - var _3n = $1.cdf; - for (var _3o = 0, _3p = _3n.length; _3o < _3p; _3o++) { - $k[$j++] = $f($get(_3n, _3o) - 48); - } - $1.cdf = $a(); - $1.gpf = $a([]); - $1.ais = $geti($1.ais, 1, $1.ais.length - 1); - $1.vals = $geti($1.vals, 1, $1.vals.length - 1); - } - if ($eq($1.method, "0100")) { - $1.cdf = $s(55); - $k[$j++] = $1.cdf; - $k[$j++] = 0; - $k[$j++] = $geti($get($1.vals, 0), 1, 12); - $1.conv12to40(); - var _45 = $k[--$j]; - var _46 = $k[--$j]; - $puti($k[--$j], _46, _45); - $k[$j++] = $1.cdf; - $k[$j++] = 40; - $k[$j++] = ~~$z($get($1.vals, 1)); - $k[$j++] = 15; - $1.tobin(); - var _4B = $k[--$j]; - var _4C = $k[--$j]; - $puti($k[--$j], _4C, _4B); - $k[$j++] = Infinity; - var _4E = $1.cdf; - for (var _4F = 0, _4G = _4E.length; _4F < _4G; _4F++) { - $k[$j++] = $get(_4E, _4F) - 48; - } - $1.cdf = $a(); - $1.gpf = $a([]); - $1.ais = $a([]); - $1.vals = $a([]); - } - if ($eq($1.method, "0101")) { - $1.cdf = $s(55); - $k[$j++] = $1.cdf; - $k[$j++] = 0; - $k[$j++] = $geti($get($1.vals, 0), 1, 12); - $1.conv12to40(); - var _4S = $k[--$j]; - var _4T = $k[--$j]; - $puti($k[--$j], _4T, _4S); - if ($eq($get($1.ais, 1), "3202")) { - $k[$j++] = ~~$z($get($1.vals, 1)); - $k[$j++] = 15; - $1.tobin(); - } else { - $k[$j++] = ~~$z($get($1.vals, 1)) + 1e4; - $k[$j++] = 15; - $1.tobin(); - } - $puti($1.cdf, 40, $k[--$j]); - $k[$j++] = Infinity; - var _4d = $1.cdf; - for (var _4e = 0, _4f = _4d.length; _4e < _4f; _4e++) { - $k[$j++] = $get(_4d, _4e) - 48; - } - $1.cdf = $a(); - $1.gpf = $a([]); - $1.ais = $a([]); - $1.vals = $a([]); - } - if ($1.method.length == 7) { - $1.cdf = $s(76); - $k[$j++] = $1.cdf; - $k[$j++] = 0; - $k[$j++] = $geti($get($1.vals, 0), 1, 12); - $1.conv12to40(); - var _4r = $k[--$j]; - var _4s = $k[--$j]; - $puti($k[--$j], _4s, _4r); - var _4u = $s(6); - $puti(_4u, 0, $geti($get($1.ais, 1), 3, 1)); - $puti(_4u, 1, $geti($get($1.vals, 1), 1, 5)); - $k[$j++] = ~~$z(_4u); - $k[$j++] = 20; - $1.tobin(); - $puti($1.cdf, 40, $k[--$j]); - if ($1.ais.length == 3) { - var _55 = $get($1.vals, 2); - $k[$j++] = ~~$z($geti(_55, 0, 2)) * 384 + ((~~$z($geti(_55, 2, 2)) - 1) * 32 + ~~$z($geti(_55, 4, 2))); - } else { - $k[$j++] = 38400; - } - $k[$j++] = 16; - $1.tobin(); - $puti($1.cdf, 60, $k[--$j]); - $k[$j++] = Infinity; - var _5B = $1.cdf; - for (var _5C = 0, _5D = _5B.length; _5C < _5D; _5C++) { - $k[$j++] = $get(_5B, _5C) - 48; - } - $1.cdf = $a(); - $1.gpf = $a([]); - $1.ais = $a([]); - $1.vals = $a([]); - } - if ($eq($1.method, "01100")) { - $1.cdf = $s(42); - $k[$j++] = $1.cdf; - $k[$j++] = 0; - $k[$j++] = $geti($get($1.vals, 0), 1, 12); - $1.conv12to40(); - var _5P = $k[--$j]; - var _5Q = $k[--$j]; - $puti($k[--$j], _5Q, _5P); - $k[$j++] = $1.cdf; - $k[$j++] = 40; - $k[$j++] = ~~$z($geti($get($1.ais, 1), 3, 1)); - $k[$j++] = 2; - $1.tobin(); - var _5W = $k[--$j]; - var _5X = $k[--$j]; - $puti($k[--$j], _5X, _5W); - $k[$j++] = Infinity; - var _5Z = $1.cdf; - for (var _5a = 0, _5b = _5Z.length; _5a < _5b; _5a++) { - $k[$j++] = $get(_5Z, _5a) - 48; - } - $1.cdf = $a(); - $k[$j++] = Infinity; - $forall($get($1.vals, 1)); - if ($1.ais.length > 2) { - $k[$j++] = $1.fnc1; - } - $1.gpf = $a(); - $1.ais = $geti($1.ais, 2, $1.ais.length - 2); - $1.vals = $geti($1.vals, 2, $1.vals.length - 2); - } - if ($eq($1.method, "01101")) { - $1.cdf = $s(52); - $k[$j++] = $1.cdf; - $k[$j++] = 0; - $k[$j++] = $geti($get($1.vals, 0), 1, 12); - $1.conv12to40(); - var _5v = $k[--$j]; - var _5w = $k[--$j]; - $puti($k[--$j], _5w, _5v); - $k[$j++] = $1.cdf; - $k[$j++] = 40; - $k[$j++] = ~~$z($geti($get($1.ais, 1), 3, 1)); - $k[$j++] = 2; - $1.tobin(); - var _62 = $k[--$j]; - var _63 = $k[--$j]; - $puti($k[--$j], _63, _62); - $k[$j++] = $1.cdf; - $k[$j++] = 42; - $k[$j++] = ~~$z($geti($get($1.vals, 1), 0, 3)); - $k[$j++] = 10; - $1.tobin(); - var _69 = $k[--$j]; - var _6A = $k[--$j]; - $puti($k[--$j], _6A, _69); - $k[$j++] = Infinity; - var _6C = $1.cdf; - for (var _6D = 0, _6E = _6C.length; _6D < _6E; _6D++) { - $k[$j++] = $get(_6C, _6D) - 48; - } - $1.cdf = $a(); - $k[$j++] = Infinity; - var _6I = $get($1.vals, 1); - var _6J = $geti(_6I, 3, _6I.length - 3); - for (var _6K = 0, _6L = _6J.length; _6K < _6L; _6K++) { - $k[$j++] = $get(_6J, _6K); - } - if ($1.ais.length > 2) { - $k[$j++] = $1.fnc1; - } - $1.gpf = $a(); - $1.ais = $geti($1.ais, 2, $1.ais.length - 2); - $1.vals = $geti($1.vals, 2, $1.vals.length - 2); - } - if ($1.gpfallow) { - $1.vlf = $a(2); - } else { - $1.vlf = $a([]); - } - $1.aifixed = new Map(); - $k[$j++] = Infinity; - for (var _6Z = 0; _6Z <= 4; _6Z += 1) { - $k[$j++] = _6Z; - } - var _6a = $a(); - for (var _6b = 0, _6c = _6a.length; _6b < _6c; _6b++) { - var _6f = $strcpy($s(2), "00"); - $put(_6f, 1, $f($get(_6a, _6b) + 48)); - $put($1.aifixed, _6f, _6f); - } - $k[$j++] = Infinity; - for (var _6h = 11; _6h <= 20; _6h += 1) { - $k[$j++] = _6h; - } - $k[$j++] = 23; - for (var _6i = 31; _6i <= 36; _6i += 1) { - $k[$j++] = _6i; - } - $k[$j++] = 41; - var _6j = $a(); - for (var _6k = 0, _6l = _6j.length; _6k < _6l; _6k++) { - var _6o = $cvrs($s(2), $get(_6j, _6k), 10); - $put($1.aifixed, _6o, _6o); - } - $k[$j++] = Infinity; - for (var _6q = 0; _6q <= 119; _6q += 1) { - var _6s = $strcpy($s(2), "00"); - var _6u = $cvrs($s(2), _6q, 11); - $puti(_6s, 2 - _6u.length, _6u); - $k[$j++] = _6q; - $k[$j++] = _6s; - if ($get(_6s, 0) == 65) { - var _6w = $k[--$j]; - $put(_6w, 0, 94); - $k[$j++] = _6w; - } - var _6x = $k[--$j]; - $k[$j++] = _6x; - if ($get(_6x, 1) == 65) { - var _6z = $k[--$j]; - $put(_6z, 1, 94); - $k[$j++] = _6z; - } - var _70 = $k[--$j]; - var _73 = $strcpy($s(7), "0000000"); - var _75 = $cvrs($s(7), $f($k[--$j] + 8), 2); - $puti(_73, 7 - _75.length, _75); - $k[$j++] = _70; - $k[$j++] = _73; - } - $k[$j++] = $1.lalphanumeric; - $k[$j++] = "0000"; - $1.numeric = $d(); - $k[$j++] = Infinity; - for (var _78 = 48; _78 <= 57; _78 += 1) { - $k[$j++] = _78; - $k[$j++] = _78 - 43; - $k[$j++] = 5; - $1.tobin(); - } - $k[$j++] = $1.fnc1; - $k[$j++] = "01111"; - for (var _7A = 65; _7A <= 90; _7A += 1) { - $k[$j++] = _7A; - $k[$j++] = _7A - 33; - $k[$j++] = 6; - $1.tobin(); - } - $k[$j++] = 42; - $k[$j++] = "111010"; - for (var _7B = 44; _7B <= 47; _7B += 1) { - $k[$j++] = _7B; - $k[$j++] = _7B + 15; - $k[$j++] = 6; - $1.tobin(); - } - $k[$j++] = $1.lnumeric; - $k[$j++] = "000"; - $k[$j++] = $1.liso646; - $k[$j++] = "00100"; - $1.alphanumeric = $d(); - $k[$j++] = Infinity; - for (var _7F = 48; _7F <= 57; _7F += 1) { - $k[$j++] = _7F; - $k[$j++] = _7F - 43; - $k[$j++] = 5; - $1.tobin(); - } - $k[$j++] = $1.fnc1; - $k[$j++] = "01111"; - for (var _7H = 65; _7H <= 90; _7H += 1) { - $k[$j++] = _7H; - $k[$j++] = _7H - 1; - $k[$j++] = 7; - $1.tobin(); - } - for (var _7I = 97; _7I <= 122; _7I += 1) { - $k[$j++] = _7I; - $k[$j++] = _7I - 7; - $k[$j++] = 7; - $1.tobin(); - } - $k[$j++] = 33; - $k[$j++] = "11101000"; - $k[$j++] = 34; - $k[$j++] = "11101001"; - for (var _7J = 37; _7J <= 47; _7J += 1) { - $k[$j++] = _7J; - $k[$j++] = _7J + 197; - $k[$j++] = 8; - $1.tobin(); - } - for (var _7K = 58; _7K <= 63; _7K += 1) { - $k[$j++] = _7K; - $k[$j++] = _7K + 187; - $k[$j++] = 8; - $1.tobin(); - } - $k[$j++] = 95; - $k[$j++] = "11111011"; - $k[$j++] = 32; - $k[$j++] = "11111100"; - $k[$j++] = $1.lnumeric; - $k[$j++] = "000"; - $k[$j++] = $1.lalphanumeric; - $k[$j++] = "00100"; - $1.iso646 = $d(); - for (var _7Q = 0, _7P = $1.ais.length - 1; _7Q <= _7P; _7Q += 1) { - $1.i = _7Q; - $1.ai = $get($1.ais, $1.i); - $1.val = $get($1.vals, $1.i); - var _7a = $a($1.gpf.length + $1.ai.length + $1.val.length); - $puti(_7a, 0, $1.gpf); - $k[$j++] = _7a; - $k[$j++] = _7a; - $k[$j++] = $1.gpf.length; - $k[$j++] = Infinity; - var _7f = $1.ai; - $forall(_7f); - var _7g = $a(); - var _7h = $k[--$j]; - $puti($k[--$j], _7h, _7g); - var _7j = $k[--$j]; - $k[$j++] = _7j; - $k[$j++] = _7j; - $k[$j++] = $1.gpf.length + $1.ai.length; - $k[$j++] = Infinity; - var _7o = $1.val; - $forall(_7o); - var _7p = $a(); - var _7q = $k[--$j]; - $puti($k[--$j], _7q, _7p); - $1.gpf = $k[--$j]; - var _7y = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; - if ($1.i != $1.ais.length - 1 && !_7y) { - var _80 = $a($1.gpf.length + 1); - $puti(_80, 0, $1.gpf); - $put(_80, $1.gpf.length, $1.fnc1); - $1.gpf = _80; - } - } + var _3W = $s($k[--$j]); //#7802 + $k[$j++] = _3W; //#7802 + for (var _3Y = 0, _3X = _3W.length - 1; _3Y <= _3X; _3Y += 1) { //#7802 + var _3Z = $k[--$j]; //#7802 + $put(_3Z, _3Y, 48); //#7802 + $k[$j++] = _3Z; //#7802 + } //#7802 + var _3a = $k[--$j]; //#7803 + var _3d = $cvrs($s(_3a.length), $k[--$j], 2); //#7803 + $puti(_3a, _3a.length - _3d.length, _3d); //#7803 + $k[$j++] = _3a; //#7803 + }; //#7804 + $1.fnc1 = -1; //#7806 + $1.lnumeric = -2; //#7806 + $1.lalphanumeric = -3; //#7806 + $1.liso646 = -4; //#7806 + if ($eq($1.method, "00")) { //#7811 + $1.cdf = $a([]); //#7809 + $1.gpf = $a([]); //#7810 + } //#7810 + if ($eq($1.method, "1")) { //#7819 + $k[$j++] = 'cdf'; //#7814 + $k[$j++] = $geti($get($1.vals, 0), 0, 13); //#7814 + $1.conv13to44(); //#7814 + var _3l = $k[--$j]; //#7814 + $1[$k[--$j]] = _3l; //#7814 + $k[$j++] = Infinity; //#7815 + var _3n = $1.cdf; //#7815 + for (var _3o = 0, _3p = _3n.length; _3o < _3p; _3o++) { //#7815 + $k[$j++] = $f($get(_3n, _3o) - 48); //#7815 + } //#7815 + $1.cdf = $a(); //#7815 + $1.gpf = $a([]); //#7816 + $1.ais = $geti($1.ais, 1, $1.ais.length - 1); //#7817 + $1.vals = $geti($1.vals, 1, $1.vals.length - 1); //#7818 + } //#7818 + if ($eq($1.method, "0100")) { //#7829 + $1.cdf = $s(55); //#7822 + $k[$j++] = $1.cdf; //#7823 + $k[$j++] = 0; //#7823 + $k[$j++] = $geti($get($1.vals, 0), 1, 12); //#7823 + $1.conv12to40(); //#7823 + var _45 = $k[--$j]; //#7823 + var _46 = $k[--$j]; //#7823 + $puti($k[--$j], _46, _45); //#7823 + $k[$j++] = $1.cdf; //#7824 + $k[$j++] = 40; //#7824 + $k[$j++] = ~~$z($get($1.vals, 1)); //#7824 + $k[$j++] = 15; //#7824 + $1.tobin(); //#7824 + var _4B = $k[--$j]; //#7824 + var _4C = $k[--$j]; //#7824 + $puti($k[--$j], _4C, _4B); //#7824 + $k[$j++] = Infinity; //#7825 + var _4E = $1.cdf; //#7825 + for (var _4F = 0, _4G = _4E.length; _4F < _4G; _4F++) { //#7825 + $k[$j++] = $get(_4E, _4F) - 48; //#7825 + } //#7825 + $1.cdf = $a(); //#7825 + $1.gpf = $a([]); //#7826 + $1.ais = $a([]); //#7827 + $1.vals = $a([]); //#7828 + } //#7828 + if ($eq($1.method, "0101")) { //#7844 + $1.cdf = $s(55); //#7832 + $k[$j++] = $1.cdf; //#7833 + $k[$j++] = 0; //#7833 + $k[$j++] = $geti($get($1.vals, 0), 1, 12); //#7833 + $1.conv12to40(); //#7833 + var _4S = $k[--$j]; //#7833 + var _4T = $k[--$j]; //#7833 + $puti($k[--$j], _4T, _4S); //#7833 + if ($eq($get($1.ais, 1), "3202")) { //#7837 + $k[$j++] = ~~$z($get($1.vals, 1)); //#7835 + $k[$j++] = 15; //#7835 + $1.tobin(); //#7835 + } else { //#7837 + $k[$j++] = (~~$z($get($1.vals, 1))) + 10000; //#7837 + $k[$j++] = 15; //#7837 + $1.tobin(); //#7837 + } //#7837 + $puti($1.cdf, 40, $k[--$j]); //#7839 + $k[$j++] = Infinity; //#7840 + var _4d = $1.cdf; //#7840 + for (var _4e = 0, _4f = _4d.length; _4e < _4f; _4e++) { //#7840 + $k[$j++] = $get(_4d, _4e) - 48; //#7840 + } //#7840 + $1.cdf = $a(); //#7840 + $1.gpf = $a([]); //#7841 + $1.ais = $a([]); //#7842 + $1.vals = $a([]); //#7843 + } //#7843 + if ($1.method.length == 7) { //#7865 + $1.cdf = $s(76); //#7847 + $k[$j++] = $1.cdf; //#7848 + $k[$j++] = 0; //#7848 + $k[$j++] = $geti($get($1.vals, 0), 1, 12); //#7848 + $1.conv12to40(); //#7848 + var _4r = $k[--$j]; //#7848 + var _4s = $k[--$j]; //#7848 + $puti($k[--$j], _4s, _4r); //#7848 + var _4u = $s(6); //#7849 + $puti(_4u, 0, $geti($get($1.ais, 1), 3, 1)); //#7849 + $puti(_4u, 1, $geti($get($1.vals, 1), 1, 5)); //#7850 + $k[$j++] = ~~$z(_4u); //#7850 + $k[$j++] = 20; //#7850 + $1.tobin(); //#7850 + $puti($1.cdf, 40, $k[--$j]); //#7851 + if ($1.ais.length == 3) { //#7858 + var _55 = $get($1.vals, 2); //#7853 + $k[$j++] = ((~~$z($geti(_55, 0, 2))) * 384) + ((((~~$z($geti(_55, 2, 2))) - 1) * 32) + (~~$z($geti(_55, 4, 2)))); //#7856 + } else { //#7858 + $k[$j++] = 38400; //#7858 + } //#7858 + $k[$j++] = 16; //#7860 + $1.tobin(); //#7860 + $puti($1.cdf, 60, $k[--$j]); //#7860 + $k[$j++] = Infinity; //#7861 + var _5B = $1.cdf; //#7861 + for (var _5C = 0, _5D = _5B.length; _5C < _5D; _5C++) { //#7861 + $k[$j++] = $get(_5B, _5C) - 48; //#7861 + } //#7861 + $1.cdf = $a(); //#7861 + $1.gpf = $a([]); //#7862 + $1.ais = $a([]); //#7863 + $1.vals = $a([]); //#7864 + } //#7864 + if ($eq($1.method, "01100")) { //#7875 + $1.cdf = $s(42); //#7868 + $k[$j++] = $1.cdf; //#7869 + $k[$j++] = 0; //#7869 + $k[$j++] = $geti($get($1.vals, 0), 1, 12); //#7869 + $1.conv12to40(); //#7869 + var _5P = $k[--$j]; //#7869 + var _5Q = $k[--$j]; //#7869 + $puti($k[--$j], _5Q, _5P); //#7869 + $k[$j++] = $1.cdf; //#7870 + $k[$j++] = 40; //#7870 + $k[$j++] = ~~$z($geti($get($1.ais, 1), 3, 1)); //#7870 + $k[$j++] = 2; //#7870 + $1.tobin(); //#7870 + var _5W = $k[--$j]; //#7870 + var _5X = $k[--$j]; //#7870 + $puti($k[--$j], _5X, _5W); //#7870 + $k[$j++] = Infinity; //#7871 + var _5Z = $1.cdf; //#7871 + for (var _5a = 0, _5b = _5Z.length; _5a < _5b; _5a++) { //#7871 + $k[$j++] = $get(_5Z, _5a) - 48; //#7871 + } //#7871 + $1.cdf = $a(); //#7871 + $k[$j++] = Infinity; //#7872 + $forall($get($1.vals, 1)); //#7872 + if ($1.ais.length > 2) { //#7872 + $k[$j++] = $1.fnc1; //#7872 + } //#7872 + $1.gpf = $a(); //#7872 + $1.ais = $geti($1.ais, 2, $1.ais.length - 2); //#7873 + $1.vals = $geti($1.vals, 2, $1.vals.length - 2); //#7874 + } //#7874 + if ($eq($1.method, "01101")) { //#7886 + $1.cdf = $s(52); //#7878 + $k[$j++] = $1.cdf; //#7879 + $k[$j++] = 0; //#7879 + $k[$j++] = $geti($get($1.vals, 0), 1, 12); //#7879 + $1.conv12to40(); //#7879 + var _5v = $k[--$j]; //#7879 + var _5w = $k[--$j]; //#7879 + $puti($k[--$j], _5w, _5v); //#7879 + $k[$j++] = $1.cdf; //#7880 + $k[$j++] = 40; //#7880 + $k[$j++] = ~~$z($geti($get($1.ais, 1), 3, 1)); //#7880 + $k[$j++] = 2; //#7880 + $1.tobin(); //#7880 + var _62 = $k[--$j]; //#7880 + var _63 = $k[--$j]; //#7880 + $puti($k[--$j], _63, _62); //#7880 + $k[$j++] = $1.cdf; //#7881 + $k[$j++] = 42; //#7881 + $k[$j++] = ~~$z($geti($get($1.vals, 1), 0, 3)); //#7881 + $k[$j++] = 10; //#7881 + $1.tobin(); //#7881 + var _69 = $k[--$j]; //#7881 + var _6A = $k[--$j]; //#7881 + $puti($k[--$j], _6A, _69); //#7881 + $k[$j++] = Infinity; //#7882 + var _6C = $1.cdf; //#7882 + for (var _6D = 0, _6E = _6C.length; _6D < _6E; _6D++) { //#7882 + $k[$j++] = $get(_6C, _6D) - 48; //#7882 + } //#7882 + $1.cdf = $a(); //#7882 + $k[$j++] = Infinity; //#7883 + var _6I = $get($1.vals, 1); //#7883 + var _6J = $geti(_6I, 3, _6I.length - 3); //#7883 + for (var _6K = 0, _6L = _6J.length; _6K < _6L; _6K++) { //#7883 + $k[$j++] = $get(_6J, _6K); //#7883 + } //#7883 + if ($1.ais.length > 2) { //#7883 + $k[$j++] = $1.fnc1; //#7883 + } //#7883 + $1.gpf = $a(); //#7883 + $1.ais = $geti($1.ais, 2, $1.ais.length - 2); //#7884 + $1.vals = $geti($1.vals, 2, $1.vals.length - 2); //#7885 + } //#7885 + if ($1.gpfallow) { //#7892 + $1.vlf = $a(2); //#7890 + } else { //#7892 + $1.vlf = $a([]); //#7892 + } //#7892 + $1.aifixed = new Map; //#7898 + $k[$j++] = Infinity; //#7900 + for (var _6Z = 0; _6Z <= 4; _6Z += 1) { //#7900 + $k[$j++] = _6Z; //#7900 + } //#7900 + var _6a = $a(); //#7900 + for (var _6b = 0, _6c = _6a.length; _6b < _6c; _6b++) { //#7903 + var _6f = $strcpy($s(2), "00"); //#7902 + $put(_6f, 1, $f($get(_6a, _6b) + 48)); //#7902 + $put($1.aifixed, _6f, _6f); //#7902 + } //#7902 + $k[$j++] = Infinity; //#7908 + for (var _6h = 11; _6h <= 20; _6h += 1) { //#7905 + $k[$j++] = _6h; //#7905 + } //#7905 + $k[$j++] = 23; //#7907 + for (var _6i = 31; _6i <= 36; _6i += 1) { //#7907 + $k[$j++] = _6i; //#7907 + } //#7907 + $k[$j++] = 41; //#7908 + var _6j = $a(); //#7908 + for (var _6k = 0, _6l = _6j.length; _6k < _6l; _6k++) { //#7911 + var _6o = $cvrs($s(2), $get(_6j, _6k), 10); //#7910 + $put($1.aifixed, _6o, _6o); //#7910 + } //#7910 + $k[$j++] = Infinity; //#7923 + for (var _6q = 0; _6q <= 119; _6q += 1) { //#7922 + var _6s = $strcpy($s(2), "00"); //#7915 + var _6u = $cvrs($s(2), _6q, 11); //#7915 + $puti(_6s, 2 - _6u.length, _6u); //#7916 + $k[$j++] = _6q; //#7917 + $k[$j++] = _6s; //#7917 + if ($get(_6s, 0) == 65) { //#7917 + var _6w = $k[--$j]; //#7917 + $put(_6w, 0, 94); //#7917 + $k[$j++] = _6w; //#7917 + } //#7917 + var _6x = $k[--$j]; //#7918 + $k[$j++] = _6x; //#7918 + if ($get(_6x, 1) == 65) { //#7918 + var _6z = $k[--$j]; //#7918 + $put(_6z, 1, 94); //#7918 + $k[$j++] = _6z; //#7918 + } //#7918 + var _70 = $k[--$j]; //#7919 + var _73 = $strcpy($s(7), "0000000"); //#7920 + var _75 = $cvrs($s(7), $f($k[--$j] + 8), 2); //#7920 + $puti(_73, 7 - _75.length, _75); //#7921 + $k[$j++] = _70; //#7921 + $k[$j++] = _73; //#7921 + } //#7921 + $k[$j++] = $1.lalphanumeric; //#7923 + $k[$j++] = "0000"; //#7923 + $1.numeric = $d(); //#7924 + $k[$j++] = Infinity; //#7933 + for (var _78 = 48; _78 <= 57; _78 += 1) { //#7927 + $k[$j++] = _78; //#7927 + $k[$j++] = _78 - 43; //#7927 + $k[$j++] = 5; //#7927 + $1.tobin(); //#7927 + } //#7927 + $k[$j++] = $1.fnc1; //#7929 + $k[$j++] = "01111"; //#7929 + for (var _7A = 65; _7A <= 90; _7A += 1) { //#7929 + $k[$j++] = _7A; //#7929 + $k[$j++] = _7A - 33; //#7929 + $k[$j++] = 6; //#7929 + $1.tobin(); //#7929 + } //#7929 + $k[$j++] = 42; //#7931 + $k[$j++] = "111010"; //#7931 + for (var _7B = 44; _7B <= 47; _7B += 1) { //#7931 + $k[$j++] = _7B; //#7931 + $k[$j++] = _7B + 15; //#7931 + $k[$j++] = 6; //#7931 + $1.tobin(); //#7931 + } //#7931 + $k[$j++] = $1.lnumeric; //#7933 + $k[$j++] = "000"; //#7933 + $k[$j++] = $1.liso646; //#7933 + $k[$j++] = "00100"; //#7933 + $1.alphanumeric = $d(); //#7934 + $k[$j++] = Infinity; //#7948 + for (var _7F = 48; _7F <= 57; _7F += 1) { //#7937 + $k[$j++] = _7F; //#7937 + $k[$j++] = _7F - 43; //#7937 + $k[$j++] = 5; //#7937 + $1.tobin(); //#7937 + } //#7937 + $k[$j++] = $1.fnc1; //#7939 + $k[$j++] = "01111"; //#7939 + for (var _7H = 65; _7H <= 90; _7H += 1) { //#7939 + $k[$j++] = _7H; //#7939 + $k[$j++] = _7H - 1; //#7939 + $k[$j++] = 7; //#7939 + $1.tobin(); //#7939 + } //#7939 + for (var _7I = 97; _7I <= 122; _7I += 1) { //#7940 + $k[$j++] = _7I; //#7940 + $k[$j++] = _7I - 7; //#7940 + $k[$j++] = 7; //#7940 + $1.tobin(); //#7940 + } //#7940 + $k[$j++] = 33; //#7943 + $k[$j++] = "11101000"; //#7943 + $k[$j++] = 34; //#7943 + $k[$j++] = "11101001"; //#7943 + for (var _7J = 37; _7J <= 47; _7J += 1) { //#7943 + $k[$j++] = _7J; //#7943 + $k[$j++] = _7J + 197; //#7943 + $k[$j++] = 8; //#7943 + $1.tobin(); //#7943 + } //#7943 + for (var _7K = 58; _7K <= 63; _7K += 1) { //#7944 + $k[$j++] = _7K; //#7944 + $k[$j++] = _7K + 187; //#7944 + $k[$j++] = 8; //#7944 + $1.tobin(); //#7944 + } //#7944 + $k[$j++] = 95; //#7948 + $k[$j++] = "11111011"; //#7948 + $k[$j++] = 32; //#7948 + $k[$j++] = "11111100"; //#7948 + $k[$j++] = $1.lnumeric; //#7948 + $k[$j++] = "000"; //#7948 + $k[$j++] = $1.lalphanumeric; //#7948 + $k[$j++] = "00100"; //#7948 + $1.iso646 = $d(); //#7949 + for (var _7Q = 0, _7P = $1.ais.length - 1; _7Q <= _7P; _7Q += 1) { //#7967 + $1.i = _7Q; //#7953 + $1.ai = $get($1.ais, $1.i); //#7954 + $1.val = $get($1.vals, $1.i); //#7955 + var _7a = $a(($1.gpf.length + $1.ai.length) + $1.val.length); //#7956 + $puti(_7a, 0, $1.gpf); //#7957 + $k[$j++] = _7a; //#7958 + $k[$j++] = _7a; //#7958 + $k[$j++] = $1.gpf.length; //#7958 + $k[$j++] = $1.ai; //#7958 + $k[$j++] = Infinity; //#7958 + var _7e = $k[--$j]; //#7958 + var _7f = $k[--$j]; //#7958 + $k[$j++] = _7e; //#7958 + $forall(_7f); //#7958 + var _7g = $a(); //#7958 + var _7h = $k[--$j]; //#7958 + $puti($k[--$j], _7h, _7g); //#7958 + var _7j = $k[--$j]; //#7959 + $k[$j++] = _7j; //#7959 + $k[$j++] = _7j; //#7959 + $k[$j++] = $1.gpf.length + $1.ai.length; //#7959 + $k[$j++] = $1.val; //#7959 + $k[$j++] = Infinity; //#7959 + var _7n = $k[--$j]; //#7959 + var _7o = $k[--$j]; //#7959 + $k[$j++] = _7n; //#7959 + $forall(_7o); //#7959 + var _7p = $a(); //#7959 + var _7q = $k[--$j]; //#7959 + $puti($k[--$j], _7q, _7p); //#7959 + $1.gpf = $k[--$j]; //#7960 + var _7y = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; //#7961 + if (($1.i != ($1.ais.length - 1)) && (!_7y)) { //#7966 + var _80 = $a($1.gpf.length + 1); //#7962 + $puti(_80, 0, $1.gpf); //#7963 + $put(_80, $1.gpf.length, $1.fnc1); //#7964 + $1.gpf = _80; //#7965 + } //#7965 + } //#7965 $1.rembits = function() { - var _84 = $k[--$j]; - var _85 = 48; - var _86 = ~~Math.ceil(_84 / 12) * 12; - if (~~Math.ceil(_84 / 12) * 12 < 48) { - var _ = _85; - _85 = _86; - _86 = _; - } - var _87 = ~~(_86 / 12); - $k[$j++] = _84; - $k[$j++] = _86; - $k[$j++] = _87; - if (_87 % $1.segments == 1) { - var _89 = $k[--$j]; - var _8A = $k[--$j]; - $k[$j++] = $f(_89 + 1) * 12; - $k[$j++] = _8A; - $j--; - } else { - $j--; - } - var _8B = $k[--$j]; - var _8C = $k[--$j]; - $k[$j++] = $f(_8B - _8C); - }; + var _84 = $k[--$j]; //#7971 + var _85 = 48; //#7973 + var _86 = (~~Math.ceil(_84 / 12)) * 12; //#7973 + if (((~~Math.ceil(_84 / 12)) * 12) < 48) { //#7973 + var _ = _85; //#7973 + _85 = _86; //#7973 + _86 = _; //#7973 + } //#7973 + var _87 = ~~(_86 / 12); //#7974 + $k[$j++] = _84; //#7978 + $k[$j++] = _86; //#7978 + $k[$j++] = _87; //#7978 + if ((_87 % $1.segments) == 1) { //#7977 + var _89 = $k[--$j]; //#7975 + var _8A = $k[--$j]; //#7975 + $k[$j++] = $f(_89 + 1) * 12; //#7975 + $k[$j++] = _8A; //#7975 + $j--; //#7975 + } else { //#7977 + $j--; //#7977 + } //#7977 + var _8B = $k[--$j]; //#7979 + var _8C = $k[--$j]; //#7979 + $k[$j++] = $f(_8B - _8C); //#7979 + }; //#7980 $1.encode = function() { - var _8D = $k[--$j]; - $k[$j++] = _8D; - if ($ne(_8D, "raw")) { - var _8E = $k[--$j]; - var _8G = $get(_8E, $k[--$j]); - $k[$j++] = _8G; - } else { - $j--; - } - $k[$j++] = Infinity; - var _8H = $k[--$j]; - var _8I = $k[--$j]; - $k[$j++] = _8H; - $forall(_8I, function() { - var _8J = $k[--$j]; - $k[$j++] = $f(_8J - 48); - }); - var _8K = $a(); - $puti($1.gpfenc, $1.j, _8K); - $1.j = _8K.length + $1.j; - }; - $k[$j++] = Infinity; - for (var _8P = 0, _8Q = $1.gpf.length; _8P < _8Q; _8P++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $k[$j++] = -1; - $1.numericruns = $a(); - $k[$j++] = Infinity; - for (var _8T = 0, _8U = $1.gpf.length; _8T < _8U; _8T++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.alphanumericruns = $a(); - $k[$j++] = Infinity; - for (var _8X = 0, _8Y = $1.gpf.length; _8X < _8Y; _8X++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextiso646only = $a(); - for (var _8b = $1.gpf.length - 1; _8b >= 0; _8b -= 1) { - $1.i = _8b; - var _8g = $strcpy($s(2), "00"); - var _8j = $get($1.gpf, $1.i); - $k[$j++] = $get($1.gpf, $1.i); - $k[$j++] = _8g; - $k[$j++] = _8g; - $k[$j++] = 0; - $k[$j++] = _8j; - if (_8j == $1.fnc1) { - $j--; - $k[$j++] = 94; - } - var _8l = $k[--$j]; - var _8m = $k[--$j]; - $put($k[--$j], _8m, _8l); - if ($1.i < $1.gpf.length - 1) { - var _8q = $k[--$j]; - var _8t = $get($1.gpf, $1.i + 1); - $k[$j++] = _8q; - $k[$j++] = _8q; - $k[$j++] = 1; - $k[$j++] = _8t; - if (_8t == $1.fnc1) { - $j--; - $k[$j++] = 94; - } - var _8v = $k[--$j]; - var _8w = $k[--$j]; - $put($k[--$j], _8w, _8v); - } - var _90 = $get($1.numeric, $k[--$j]) !== undefined; - if (_90) { - $put($1.numericruns, $1.i, $f($get($1.numericruns, $1.i + 2) + 2)); - } else { - $put($1.numericruns, $1.i, 0); - } - var _98 = $k[--$j]; - var _9A = $get($1.alphanumeric, _98) !== undefined; - $k[$j++] = _98; - if (_9A) { - $put($1.alphanumericruns, $1.i, $f($get($1.alphanumericruns, $1.i + 1) + 1)); - } else { - $put($1.alphanumericruns, $1.i, 0); - } - var _9I = $k[--$j]; - var _9K = $get($1.iso646, _9I) !== undefined; - var _9M = $get($1.alphanumeric, _9I) !== undefined; - if (_9K && !_9M) { - $put($1.nextiso646only, $1.i, 0); - } else { - $put($1.nextiso646only, $1.i, $f($get($1.nextiso646only, $1.i + 1) + 1)); - } - } - $1.gpfenc = $a(252); - $1.i = 0; - $1.j = 0; - $1.mode = "numeric"; - for (;;) { - if ($1.i == $1.gpf.length) { - break; - } - for (;;) { - if ($eq($1.mode, "numeric")) { - if ($1.i <= $1.gpf.length - 2) { - var _9a = $s(2); - var _9d = $get($1.gpf, $1.i); - $k[$j++] = _9a; - $k[$j++] = _9a; - $k[$j++] = 0; - $k[$j++] = _9d; - if (_9d == $1.fnc1) { - $j--; - $k[$j++] = 94; - } - var _9f = $k[--$j]; - var _9g = $k[--$j]; - $put($k[--$j], _9g, _9f); - var _9i = $k[--$j]; - var _9l = $get($1.gpf, $1.i + 1); - $k[$j++] = _9i; - $k[$j++] = _9i; - $k[$j++] = 1; - $k[$j++] = _9l; - if (_9l == $1.fnc1) { - $j--; - $k[$j++] = 94; - } - var _9n = $k[--$j]; - var _9o = $k[--$j]; - $put($k[--$j], _9o, _9n); - var _9q = $k[--$j]; - var _9s = $get($1.numeric, _9q) !== undefined; - $k[$j++] = _9q; - if (_9s) { - $k[$j++] = $1.numeric; - $1.encode(); - $1.i = $1.i + 2; - break; - } - $j--; - $k[$j++] = $1.lalphanumeric; - $k[$j++] = $1.numeric; - $1.encode(); - $1.mode = "alphanumeric"; - break; - } else { - var _9z = $get($1.gpf, $1.i); - if (_9z < 48 || _9z > 57) { - $k[$j++] = $1.lalphanumeric; - $k[$j++] = $1.numeric; - $1.encode(); - $1.mode = "alphanumeric"; - break; - } - $k[$j++] = "rem"; - $k[$j++] = 12 + 1 + $1.method.length + $1.vlf.length + $1.cdf.length + $1.j; - $1.rembits(); - var _A6 = $k[--$j]; - $1[$k[--$j]] = _A6; - if ($1.rem >= 4 && $1.rem <= 6) { - var _AD = $geti($strcpy($s(6), "000000"), 0, $1.rem); - var _AI = $cvrs($s(4), $f($get($1.gpf, $1.i) - 47), 2); - $puti(_AD, 4 - _AI.length, _AI); - $k[$j++] = _AD; - $k[$j++] = "raw"; - $1.encode(); - $1.i = $1.i + 1; - break; - } else { - var _AK = $s(2); - $put(_AK, 0, $get($1.gpf, $1.i)); - $put(_AK, 1, 94); - $k[$j++] = _AK; - $k[$j++] = $1.numeric; - $1.encode(); - $1.i = $1.i + 1; - break; - } - } - } - if ($eq($1.mode, "alphanumeric")) { - if ($get($1.gpf, $1.i) == $1.fnc1) { - $k[$j++] = $1.fnc1; - $k[$j++] = $1.alphanumeric; - $1.encode(); - $1.mode = "numeric"; - $1.i = $1.i + 1; - break; - } - var _Aa = $get($1.gpf, $1.i); - var _Ac = $get($1.iso646, _Aa) !== undefined; - var _Ae = $get($1.alphanumeric, _Aa) !== undefined; - if (_Ac && !_Ae) { - $k[$j++] = $1.liso646; - $k[$j++] = $1.alphanumeric; - $1.encode(); - $1.mode = "iso646"; - break; - } - if ($get($1.numericruns, $1.i) >= 6) { - $k[$j++] = $1.lnumeric; - $k[$j++] = $1.alphanumeric; - $1.encode(); - $1.mode = "numeric"; - break; - } - var _Ao = $get($1.numericruns, $1.i); - if (_Ao >= 4 && $f(_Ao + $1.i) == $1.gpf.length) { - $k[$j++] = $1.lnumeric; - $k[$j++] = $1.alphanumeric; - $1.encode(); - $1.mode = "numeric"; - break; - } - $k[$j++] = $get($1.gpf, $1.i); - $k[$j++] = $1.alphanumeric; - $1.encode(); - $1.i = $1.i + 1; - break; - } - if ($eq($1.mode, "iso646")) { - if ($get($1.gpf, $1.i) == $1.fnc1) { - $k[$j++] = $1.fnc1; - $k[$j++] = $1.iso646; - $1.encode(); - $1.mode = "numeric"; - $1.i = $1.i + 1; - break; - } - if ($get($1.numericruns, $1.i) >= 4 && $get($1.nextiso646only, $1.i) >= 10) { - $k[$j++] = $1.lnumeric; - $k[$j++] = $1.iso646; - $1.encode(); - $1.mode = "numeric"; - break; - } - if ($get($1.alphanumericruns, $1.i) >= 5 && $get($1.nextiso646only, $1.i) >= 10) { - $k[$j++] = $1.lalphanumeric; - $k[$j++] = $1.iso646; - $1.encode(); - $1.mode = "alphanumeric"; - break; - } - $k[$j++] = $get($1.gpf, $1.i); - $k[$j++] = $1.iso646; - $1.encode(); - $1.i = $1.i + 1; - break; - } - } - } - $1.gpf = $geti($1.gpfenc, 0, $1.j); - var _BY = 1 + 12 + $1.method.length + $1.vlf.length + $1.cdf.length + $1.gpf.length; - $k[$j++] = _BY; - $k[$j++] = _BY; - $1.rembits(); - var _BZ = $k[--$j]; - $1.pad = $a(_BZ); - $k[$j++] = _BZ; - if ($1.vlf.length != 0) { - var _Bc = $k[--$j]; - var _Be = ~~($f($k[--$j] + _Bc) / 12); - $put($1.vlf, 0, _Be % 2); - var _Bg = _Be <= 14 ? 0 : 1; - $put($1.vlf, 1, _Bg); - } else { - $j -= 2; - } - if ($1.pad.length > 0) { - for (var _Bl = 0, _Bk = $1.pad.length - 1; _Bl <= _Bk; _Bl += 5) { - $1.i = _Bl; - var _Bm = $1.pad; - var _Bn = $1.i; - var _Bo = $a([ 0, 0, 1, 0, 0 ]); - var _Bp = $1.pad; - var _Bq = $1.i; - var _Br = 5; - var _Bs = _Bp.length - _Bq; - if (_Bp.length - _Bq > 5) { - var _ = _Br; - _Br = _Bs; - _Bs = _; - } - $puti(_Bm, _Bn, $geti(_Bo, 0, _Bs)); - } - if ($eq($1.mode, "numeric")) { - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $aload($1.pad); - $1.pad = $geti($a(), 0, $1.pad.length); - } - } - $k[$j++] = Infinity; - var _C0 = $1.linkage ? 1 : 0; - $k[$j++] = _C0; - $forall($1.method, function() { - var _C2 = $k[--$j]; - $k[$j++] = $f(_C2 - 48); - }); - $aload($1.vlf); - $aload($1.cdf); - $aload($1.gpf); - $aload($1.pad); - $1.binval = $a(); - $1.datalen = ~~($1.binval.length / 12); + var _8D = $k[--$j]; //#7983 + $k[$j++] = _8D; //#7983 + if ($ne(_8D, 'raw')) { //#7983 + var _8E = $k[--$j]; //#7983 + var _8G = $get(_8E, $k[--$j]); //#7983 + $k[$j++] = _8G; //#7983 + } else { //#7983 + $j--; //#7983 + } //#7983 + $k[$j++] = Infinity; //#7984 + var _8H = $k[--$j]; //#7984 + var _8I = $k[--$j]; //#7984 + $k[$j++] = _8H; //#7984 + $forall(_8I, function() { //#7984 + var _8J = $k[--$j]; //#7984 + $k[$j++] = $f(_8J - 48); //#7984 + }); //#7984 + var _8K = $a(); //#7984 + $puti($1.gpfenc, $1.j, _8K); //#7986 + $1.j = _8K.length + $1.j; //#7987 + }; //#7988 + $k[$j++] = Infinity; //#7991 + for (var _8P = 0, _8Q = $1.gpf.length; _8P < _8Q; _8P++) { //#7991 + $k[$j++] = 0; //#7991 + } //#7991 + $k[$j++] = 0; //#7991 + $k[$j++] = -1; //#7991 + $1.numericruns = $a(); //#7991 + $k[$j++] = Infinity; //#7992 + for (var _8T = 0, _8U = $1.gpf.length; _8T < _8U; _8T++) { //#7992 + $k[$j++] = 0; //#7992 + } //#7992 + $k[$j++] = 0; //#7992 + $1.alphanumericruns = $a(); //#7992 + $k[$j++] = Infinity; //#7993 + for (var _8X = 0, _8Y = $1.gpf.length; _8X < _8Y; _8X++) { //#7993 + $k[$j++] = 0; //#7993 + } //#7993 + $k[$j++] = 9999; //#7993 + $1.nextiso646only = $a(); //#7993 + for (var _8b = $1.gpf.length - 1; _8b >= 0; _8b -= 1) { //#8015 + $1.i = _8b; //#7995 + var _8g = $strcpy($s(2), "00"); //#7997 + var _8j = $get($1.gpf, $1.i); //#7998 + $k[$j++] = $get($1.gpf, $1.i); //#7998 + $k[$j++] = _8g; //#7998 + $k[$j++] = _8g; //#7998 + $k[$j++] = 0; //#7998 + $k[$j++] = _8j; //#7998 + if (_8j == $1.fnc1) { //#7998 + $j--; //#7998 + $k[$j++] = 94; //#7998 + } //#7998 + var _8l = $k[--$j]; //#7998 + var _8m = $k[--$j]; //#7998 + $put($k[--$j], _8m, _8l); //#7998 + if ($1.i < ($1.gpf.length - 1)) { //#7999 + var _8q = $k[--$j]; //#7999 + var _8t = $get($1.gpf, $1.i + 1); //#7999 + $k[$j++] = _8q; //#7999 + $k[$j++] = _8q; //#7999 + $k[$j++] = 1; //#7999 + $k[$j++] = _8t; //#7999 + if (_8t == $1.fnc1) { //#7999 + $j--; //#7999 + $k[$j++] = 94; //#7999 + } //#7999 + var _8v = $k[--$j]; //#7999 + var _8w = $k[--$j]; //#7999 + $put($k[--$j], _8w, _8v); //#7999 + } //#7999 + var _90 = $get($1.numeric, $k[--$j]) !== undefined; //#8000 + if (_90) { //#8003 + $put($1.numericruns, $1.i, $f($get($1.numericruns, $1.i + 2) + 2)); //#8001 + } else { //#8003 + $put($1.numericruns, $1.i, 0); //#8003 + } //#8003 + var _98 = $k[--$j]; //#8005 + var _9A = $get($1.alphanumeric, _98) !== undefined; //#8005 + $k[$j++] = _98; //#8009 + if (_9A) { //#8008 + $put($1.alphanumericruns, $1.i, $f($get($1.alphanumericruns, $1.i + 1) + 1)); //#8006 + } else { //#8008 + $put($1.alphanumericruns, $1.i, 0); //#8008 + } //#8008 + var _9I = $k[--$j]; //#8010 + var _9K = $get($1.iso646, _9I) !== undefined; //#8010 + var _9M = $get($1.alphanumeric, _9I) !== undefined; //#8010 + if (_9K && (!_9M)) { //#8013 + $put($1.nextiso646only, $1.i, 0); //#8011 + } else { //#8013 + $put($1.nextiso646only, $1.i, $f($get($1.nextiso646only, $1.i + 1) + 1)); //#8013 + } //#8013 + } //#8013 + $1.gpfenc = $a(252); //#8018 + $1.i = 0; //#8019 + $1.j = 0; //#8019 + $1.mode = "numeric"; //#8019 + for (;;) { //#8109 + if ($1.i == $1.gpf.length) { //#8021 + break; //#8021 + } //#8021 + for (;;) { //#8108 + if ($eq($1.mode, "numeric")) { //#8057 + if ($1.i <= ($1.gpf.length - 2)) { //#8054 + var _9a = $s(2); //#8026 + var _9d = $get($1.gpf, $1.i); //#8027 + $k[$j++] = _9a; //#8027 + $k[$j++] = _9a; //#8027 + $k[$j++] = 0; //#8027 + $k[$j++] = _9d; //#8027 + if (_9d == $1.fnc1) { //#8027 + $j--; //#8027 + $k[$j++] = 94; //#8027 + } //#8027 + var _9f = $k[--$j]; //#8027 + var _9g = $k[--$j]; //#8027 + $put($k[--$j], _9g, _9f); //#8027 + var _9i = $k[--$j]; //#8028 + var _9l = $get($1.gpf, $1.i + 1); //#8028 + $k[$j++] = _9i; //#8028 + $k[$j++] = _9i; //#8028 + $k[$j++] = 1; //#8028 + $k[$j++] = _9l; //#8028 + if (_9l == $1.fnc1) { //#8028 + $j--; //#8028 + $k[$j++] = 94; //#8028 + } //#8028 + var _9n = $k[--$j]; //#8028 + var _9o = $k[--$j]; //#8028 + $put($k[--$j], _9o, _9n); //#8028 + var _9q = $k[--$j]; //#8029 + var _9s = $get($1.numeric, _9q) !== undefined; //#8029 + $k[$j++] = _9q; //#8033 + if (_9s) { //#8033 + $k[$j++] = $1.numeric; //#8030 + $1.encode(); //#8030 + $1.i = $1.i + 2; //#8031 + break; //#8032 + } //#8032 + $j--; //#8034 + $k[$j++] = $1.lalphanumeric; //#8035 + $k[$j++] = $1.numeric; //#8035 + $1.encode(); //#8035 + $1.mode = "alphanumeric"; //#8036 + break; //#8037 + } else { //#8054 + var _9z = $get($1.gpf, $1.i); //#8039 + if ((_9z < 48) || (_9z > 57)) { //#8043 + $k[$j++] = $1.lalphanumeric; //#8040 + $k[$j++] = $1.numeric; //#8040 + $1.encode(); //#8040 + $1.mode = "alphanumeric"; //#8041 + break; //#8042 + } //#8042 + $k[$j++] = 'rem'; //#8044 + $k[$j++] = ((((12 + 1) + $1.method.length) + $1.vlf.length) + $1.cdf.length) + $1.j; //#8044 + $1.rembits(); //#8044 + var _A6 = $k[--$j]; //#8044 + $1[$k[--$j]] = _A6; //#8044 + if (($1.rem >= 4) && ($1.rem <= 6)) { //#8054 + var _AD = $geti($strcpy($s(6), "000000"), 0, $1.rem); //#8046 + var _AI = $cvrs($s(4), $f($get($1.gpf, $1.i) - 47), 2); //#8047 + $puti(_AD, 4 - _AI.length, _AI); //#8048 + $k[$j++] = _AD; //#8048 + $k[$j++] = 'raw'; //#8048 + $1.encode(); //#8048 + $1.i = $1.i + 1; //#8049 + break; //#8050 + } else { //#8054 + var _AK = $s(2); //#8052 + $put(_AK, 0, $get($1.gpf, $1.i)); //#8052 + $put(_AK, 1, 94); //#8052 + $k[$j++] = _AK; //#8052 + $k[$j++] = $1.numeric; //#8052 + $1.encode(); //#8052 + $1.i = $1.i + 1; //#8053 + break; //#8054 + } //#8054 + } //#8054 + } //#8054 + if ($eq($1.mode, "alphanumeric")) { //#8084 + if ($get($1.gpf, $1.i) == $1.fnc1) { //#8065 + $k[$j++] = $1.fnc1; //#8061 + $k[$j++] = $1.alphanumeric; //#8061 + $1.encode(); //#8061 + $1.mode = "numeric"; //#8062 + $1.i = $1.i + 1; //#8063 + break; //#8064 + } //#8064 + var _Aa = $get($1.gpf, $1.i); //#8066 + var _Ac = $get($1.iso646, _Aa) !== undefined; //#8066 + var _Ae = $get($1.alphanumeric, _Aa) !== undefined; //#8066 + if (_Ac && (!_Ae)) { //#8070 + $k[$j++] = $1.liso646; //#8067 + $k[$j++] = $1.alphanumeric; //#8067 + $1.encode(); //#8067 + $1.mode = "iso646"; //#8068 + break; //#8069 + } //#8069 + if ($get($1.numericruns, $1.i) >= 6) { //#8075 + $k[$j++] = $1.lnumeric; //#8072 + $k[$j++] = $1.alphanumeric; //#8072 + $1.encode(); //#8072 + $1.mode = "numeric"; //#8073 + break; //#8074 + } //#8074 + var _Ao = $get($1.numericruns, $1.i); //#8076 + if ((_Ao >= 4) && ($f(_Ao + $1.i) == $1.gpf.length)) { //#8080 + $k[$j++] = $1.lnumeric; //#8077 + $k[$j++] = $1.alphanumeric; //#8077 + $1.encode(); //#8077 + $1.mode = "numeric"; //#8078 + break; //#8079 + } //#8079 + $k[$j++] = $get($1.gpf, $1.i); //#8081 + $k[$j++] = $1.alphanumeric; //#8081 + $1.encode(); //#8081 + $1.i = $1.i + 1; //#8082 + break; //#8083 + } //#8083 + if ($eq($1.mode, "iso646")) { //#8106 + if ($get($1.gpf, $1.i) == $1.fnc1) { //#8092 + $k[$j++] = $1.fnc1; //#8088 + $k[$j++] = $1.iso646; //#8088 + $1.encode(); //#8088 + $1.mode = "numeric"; //#8089 + $1.i = $1.i + 1; //#8090 + break; //#8091 + } //#8091 + if (($get($1.numericruns, $1.i) >= 4) && ($get($1.nextiso646only, $1.i) >= 10)) { //#8097 + $k[$j++] = $1.lnumeric; //#8094 + $k[$j++] = $1.iso646; //#8094 + $1.encode(); //#8094 + $1.mode = "numeric"; //#8095 + break; //#8096 + } //#8096 + if (($get($1.alphanumericruns, $1.i) >= 5) && ($get($1.nextiso646only, $1.i) >= 10)) { //#8102 + $k[$j++] = $1.lalphanumeric; //#8099 + $k[$j++] = $1.iso646; //#8099 + $1.encode(); //#8099 + $1.mode = "alphanumeric"; //#8100 + break; //#8101 + } //#8101 + $k[$j++] = $get($1.gpf, $1.i); //#8103 + $k[$j++] = $1.iso646; //#8103 + $1.encode(); //#8103 + $1.i = $1.i + 1; //#8104 + break; //#8105 + } //#8105 + } //#8105 + } //#8105 + $1.gpf = $geti($1.gpfenc, 0, $1.j); //#8110 + var _BY = ((((1 + 12) + $1.method.length) + $1.vlf.length) + $1.cdf.length) + $1.gpf.length; //#8114 + $k[$j++] = _BY; //#8114 + $k[$j++] = _BY; //#8114 + $1.rembits(); //#8114 + var _BZ = $k[--$j]; //#8114 + $1.pad = $a(_BZ); //#8114 + $k[$j++] = _BZ; //#8121 + if ($1.vlf.length != 0) { //#8120 + var _Bc = $k[--$j]; //#8116 + var _Be = ~~($f($k[--$j] + _Bc) / 12); //#8117 + $put($1.vlf, 0, _Be % 2); //#8117 + var _Bg = (_Be <= 14) ? 0 : 1; //#8118 + $put($1.vlf, 1, _Bg); //#8118 + } else { //#8120 + $j -= 2; //#8120 + } //#8120 + if ($1.pad.length > 0) { //#8130 + for (var _Bl = 0, _Bk = $1.pad.length - 1; _Bl <= _Bk; _Bl += 5) { //#8126 + $1.i = _Bl; //#8124 + var _Bm = $1.pad; //#8125 + var _Bn = $1.i; //#8125 + var _Bo = $a([0, 0, 1, 0, 0]); //#8125 + var _Bp = $1.pad; //#8125 + var _Bq = $1.i; //#8125 + var _Br = 5; //#8125 + var _Bs = _Bp.length - _Bq; //#8125 + if ((_Bp.length - _Bq) > 5) { //#8125 + var _ = _Br; //#8125 + _Br = _Bs; //#8125 + _Bs = _; //#8125 + } //#8125 + $puti(_Bm, _Bn, $geti(_Bo, 0, _Bs)); //#8125 + } //#8125 + if ($eq($1.mode, "numeric")) { //#8129 + $k[$j++] = Infinity; //#8128 + $k[$j++] = 0; //#8128 + $k[$j++] = 0; //#8128 + $k[$j++] = 0; //#8128 + $k[$j++] = 0; //#8128 + $aload($1.pad); //#8128 + $1.pad = $geti($a(), 0, $1.pad.length); //#8128 + } //#8128 + } //#8128 + $k[$j++] = Infinity; //#8139 + var _C0 = $1.linkage ? 1 : 0; //#8134 + $k[$j++] = _C0; //#8135 + $forall($1.method, function() { //#8135 + var _C2 = $k[--$j]; //#8135 + $k[$j++] = $f(_C2 - 48); //#8135 + }); //#8135 + $aload($1.vlf); //#8136 + $aload($1.cdf); //#8137 + $aload($1.gpf); //#8138 + $aload($1.pad); //#8139 + $1.binval = $a(); //#8139 + $1.datalen = ~~($1.binval.length / 12); //#8141 $1.ncr = function() { - var _C9 = $k[--$j]; - var _CA = $k[--$j]; - var _CB = $f(_CA - _C9); - if (_C9 < $f(_CA - _C9)) { - var _ = _CB; - _CB = _C9; - _C9 = _; - } - $k[$j++] = _CB; - $k[$j++] = 1; - $k[$j++] = 1; - for (var _CD = _CA, _CC = $f(_C9 + 1); _CD >= _CC; _CD -= 1) { - var _CE = $k[--$j]; - var _CF = $k[--$j]; - var _CG = $k[--$j]; - $k[$j++] = _CG; - $k[$j++] = _CF; - $k[$j++] = _CE * _CD; - if ($le(_CF, _CG)) { - var _CH = $k[--$j]; - var _CI = $k[--$j]; - $k[$j++] = $f(_CI + 1); - $k[$j++] = ~~(_CH / _CI); - } - } - for (;;) { - var _CJ = $k[--$j]; - var _CK = $k[--$j]; - var _CL = $k[--$j]; - $k[$j++] = _CL; - $k[$j++] = _CK; - $k[$j++] = _CJ; - if ($gt(_CK, _CL)) { - break; - } - var _CM = $k[--$j]; - var _CN = $k[--$j]; - $k[$j++] = $f(_CN + 1); - $k[$j++] = ~~(_CM / _CN); - } - var _CO = $k[--$j]; - var _CP = $k[--$j]; - $k[$j++] = _CO; - $k[$j++] = _CP; - $j--; - var _CQ = $k[--$j]; - var _CR = $k[--$j]; - $k[$j++] = _CQ; - $k[$j++] = _CR; - $j--; - }; + var _C9 = $k[--$j]; //#8144 + var _CA = $k[--$j]; //#8144 + var _CB = $f(_CA - _C9); //#8144 + if (_C9 < $f(_CA - _C9)) { //#8144 + var _ = _CB; //#8144 + _CB = _C9; //#8144 + _C9 = _; //#8144 + } //#8144 + $k[$j++] = _CB; //#8151 + $k[$j++] = 1; //#8151 + $k[$j++] = 1; //#8151 + for (var _CD = _CA, _CC = $f(_C9 + 1); _CD >= _CC; _CD -= 1) { //#8151 + var _CE = $k[--$j]; //#8147 + var _CF = $k[--$j]; //#8148 + var _CG = $k[--$j]; //#8148 + $k[$j++] = _CG; //#8150 + $k[$j++] = _CF; //#8150 + $k[$j++] = _CE * _CD; //#8150 + if ($le(_CF, _CG)) { //#8150 + var _CH = $k[--$j]; //#8149 + var _CI = $k[--$j]; //#8149 + $k[$j++] = $f(_CI + 1); //#8149 + $k[$j++] = ~~(_CH / _CI); //#8149 + } //#8149 + } //#8149 + for (;;) { //#8155 + var _CJ = $k[--$j]; //#8153 + var _CK = $k[--$j]; //#8153 + var _CL = $k[--$j]; //#8153 + $k[$j++] = _CL; //#8153 + $k[$j++] = _CK; //#8153 + $k[$j++] = _CJ; //#8153 + if ($gt(_CK, _CL)) { //#8153 + break; //#8153 + } //#8153 + var _CM = $k[--$j]; //#8154 + var _CN = $k[--$j]; //#8154 + $k[$j++] = $f(_CN + 1); //#8154 + $k[$j++] = ~~(_CM / _CN); //#8154 + } //#8154 + var _CO = $k[--$j]; //#8156 + var _CP = $k[--$j]; //#8156 + $k[$j++] = _CO; //#8156 + $k[$j++] = _CP; //#8156 + $j--; //#8156 + var _CQ = $k[--$j]; //#8156 + var _CR = $k[--$j]; //#8156 + $k[$j++] = _CQ; //#8156 + $k[$j++] = _CR; //#8156 + $j--; //#8156 + }; //#8157 $1.getRSSwidths = function() { - $1.oe = $k[--$j]; - $1.el = $k[--$j]; - $1.mw = $k[--$j]; - $1.nm = $k[--$j]; - $1.val = $k[--$j]; - $1.out = $a($1.el); - $1.mask = 0; - for (var _Cb = 0, _Ca = $f($1.el - 2); _Cb <= _Ca; _Cb += 1) { - $1.bar = _Cb; - $1.ew = 1; - var _Cd = $1.bar; - $1.mask = $1.mask | (_Cd < 0 ? 1 >>> -_Cd : 1 << _Cd); - for (;;) { - $k[$j++] = "sval"; - $k[$j++] = $f($f($1.nm - $1.ew) - 1); - $k[$j++] = $f($f($1.el - $1.bar) - 2); - $1.ncr(); - var _Ci = $k[--$j]; - $1[$k[--$j]] = _Ci; - if ($1.oe && $1.mask == 0 && $f($f($f($1.nm - $1.ew) - $1.el * 2) + $1.bar * 2) >= -2) { - $k[$j++] = "sval"; - $k[$j++] = $1.sval; - $k[$j++] = $f($f($f($1.nm - $1.ew) - $1.el) + $1.bar); - $k[$j++] = $f($f($1.el - $1.bar) - 2); - $1.ncr(); - var _Cx = $k[--$j]; - var _Cy = $k[--$j]; - $1[$k[--$j]] = $f(_Cy - _Cx); - } - if ($f($1.el - $1.bar) > 2) { - $1.lval = 0; - for (var _D8 = $f($f($f($f($1.nm - $1.ew) - $1.el) + $1.bar) + 2), _D7 = $f($1.mw + 1); _D8 >= _D7; _D8 -= 1) { - $k[$j++] = $f($f($f($1.nm - _D8) - $1.ew) - 1); - $k[$j++] = $f($f($1.el - $1.bar) - 3); - $1.ncr(); - $1.lval = $f($k[--$j] + $1.lval); - } - $1.sval = $f($1.sval - $1.lval * $f($f($1.el - $1.bar) - 1)); - } else { - if ($f($1.nm - $1.ew) > $1.mw) { - $1.sval = $f($1.sval - 1); - } - } - $1.val = $f($1.val - $1.sval); - if ($1.val < 0) { - break; - } - $1.ew = $1.ew + 1; - var _DS = $1.bar; - $1.mask = $1.mask & ~(_DS < 0 ? 1 >>> -_DS : 1 << _DS); - } - $1.val = $f($1.val + $1.sval); - $1.nm = $f($1.nm - $1.ew); - $put($1.out, $1.bar, $1.ew); - } - $put($1.out, $f($1.el - 1), $1.nm); - $k[$j++] = $1.out; - }; - $1.tab174 = $a([ 347, 0, 12, 5, 7, 2, 87, 4, 1387, 348, 10, 7, 5, 4, 52, 20, 2947, 1388, 8, 9, 4, 5, 30, 52, 3987, 2948, 6, 11, 3, 6, 10, 104, 4191, 3988, 4, 13, 1, 8, 1, 204 ]); - $1.dxw = $a($1.datalen); - for (var _Dj = 0, _Di = $1.datalen - 1; _Dj <= _Di; _Dj += 1) { - $1.x = _Dj; - $1.d = $geti($1.binval, $1.x * 12, 12); - $k[$j++] = "d"; - $k[$j++] = 0; - for (var _Dn = 0; _Dn <= 11; _Dn += 1) { - $1.j = _Dn; - var _Ds = $k[--$j]; - $k[$j++] = $f(_Ds + ~~Math.pow(2, 11 - $1.j) * $get($1.d, $1.j)); - } - var _Dt = $k[--$j]; - $1[$k[--$j]] = _Dt; - $1.j = 0; - for (;;) { - if ($le($1.d, $get($1.tab174, $1.j))) { - var _E1 = $geti($1.tab174, $1.j + 1, 7); - for (var _E2 = 0, _E3 = _E1.length; _E2 < _E3; _E2++) { - $k[$j++] = $get(_E1, _E2); - } - $1.dte = $k[--$j]; - $1.dto = $k[--$j]; - $1.dmwe = $k[--$j]; - $1.dmwo = $k[--$j]; - $1.dele = $k[--$j]; - $1.delo = $k[--$j]; - $1.dgs = $k[--$j]; - break; - } - $1.j = $1.j + 8; - } - $k[$j++] = "dwo"; - $k[$j++] = ~~($f($1.d - $1.dgs) / $1.dte); - $k[$j++] = $1.delo; - $k[$j++] = $1.dmwo; - $k[$j++] = 4; - $k[$j++] = true; - $1.getRSSwidths(); - var _EI = $k[--$j]; - $1[$k[--$j]] = _EI; - $k[$j++] = "dwe"; - $k[$j++] = $f($1.d - $1.dgs) % $1.dte; - $k[$j++] = $1.dele; - $k[$j++] = $1.dmwe; - $k[$j++] = 4; - $k[$j++] = false; - $1.getRSSwidths(); - var _EP = $k[--$j]; - $1[$k[--$j]] = _EP; - $1.dw = $a(8); - if ($1.x % 2 == 0) { - for (var _ET = 0; _ET <= 3; _ET += 1) { - $1.j = _ET; - $put($1.dw, 7 - $1.j * 2, $get($1.dwo, $1.j)); - $put($1.dw, 6 - $1.j * 2, $get($1.dwe, $1.j)); - } - } else { - for (var _Ee = 0; _Ee <= 3; _Ee += 1) { - $1.j = _Ee; - $put($1.dw, $1.j * 2, $get($1.dwo, $1.j)); - $put($1.dw, $1.j * 2 + 1, $get($1.dwe, $1.j)); - } - } - $put($1.dxw, $1.x, $1.dw); - } - $1.finderwidths = $a([ 1, 8, 4, 1, 1, 1, 1, 4, 8, 1, 3, 6, 4, 1, 1, 1, 1, 4, 6, 3, 3, 4, 6, 1, 1, 1, 1, 6, 4, 3, 3, 2, 8, 1, 1, 1, 1, 8, 2, 3, 2, 6, 5, 1, 1, 1, 1, 5, 6, 2, 2, 2, 9, 1, 1, 1, 1, 9, 2, 2 ]); - $1.finderseq = $a([ $a([ 0, 1 ]), $a([ 0, 3, 2 ]), $a([ 0, 5, 2, 7 ]), $a([ 0, 9, 2, 7, 4 ]), $a([ 0, 9, 2, 7, 6, 11 ]), $a([ 0, 9, 2, 7, 8, 11, 10 ]), $a([ 0, 1, 2, 3, 4, 5, 6, 7 ]), $a([ 0, 1, 2, 3, 4, 5, 6, 9, 8 ]), $a([ 0, 1, 2, 3, 4, 5, 6, 9, 10, 11 ]), $a([ 0, 1, 2, 3, 4, 7, 6, 9, 8, 11, 10 ]) ]); - $1.seq = $get($1.finderseq, ~~(($1.datalen - 2) / 2)); - $1.fxw = $a($1.seq.length); - for (var _FB = 0, _FA = $1.seq.length - 1; _FB <= _FA; _FB += 1) { - $1.x = _FB; - $put($1.fxw, $1.x, $geti($1.finderwidths, $get($1.seq, $1.x) * 5, 5)); - } - $1.checkweights = $a([ -1, -1, -1, -1, -1, -1, -1, -1, 77, 96, 32, 81, 27, 9, 3, 1, 20, 60, 180, 118, 143, 7, 21, 63, 205, 209, 140, 117, 39, 13, 145, 189, 193, 157, 49, 147, 19, 57, 171, 91, 132, 44, 85, 169, 197, 136, 186, 62, 185, 133, 188, 142, 4, 12, 36, 108, 50, 87, 29, 80, 97, 173, 128, 113, 150, 28, 84, 41, 123, 158, 52, 156, 166, 196, 206, 139, 187, 203, 138, 46, 76, 17, 51, 153, 37, 111, 122, 155, 146, 119, 110, 107, 106, 176, 129, 43, 16, 48, 144, 10, 30, 90, 59, 177, 164, 125, 112, 178, 200, 137, 116, 109, 70, 210, 208, 202, 184, 130, 179, 115, 190, 204, 68, 93, 31, 151, 191, 134, 148, 22, 66, 198, 172, 94, 71, 2, 40, 154, 192, 64, 162, 54, 18, 6, 120, 149, 25, 75, 14, 42, 126, 167, 175, 199, 207, 69, 23, 78, 26, 79, 103, 98, 83, 38, 114, 131, 182, 124, 159, 53, 88, 170, 127, 183, 61, 161, 55, 165, 73, 8, 24, 72, 5, 15, 89, 100, 174, 58, 160, 194, 135, 45 ]); - $k[$j++] = Infinity; - $forall($1.seq, function() { - $aload($geti($1.checkweights, $k[--$j] * 16, 16)); - }); - var _FO = $a(); - $1.checkweightseq = $geti(_FO, 8, _FO.length - 8); - $k[$j++] = Infinity; - var _FQ = $1.dxw; - for (var _FR = 0, _FS = _FQ.length; _FR < _FS; _FR++) { - $forall($get(_FQ, _FR)); - } - $1.widths = $a(); - $1.checksum = 0; - for (var _FX = 0, _FW = $1.widths.length - 1; _FX <= _FW; _FX += 1) { - $1.i = _FX; - $1.checksum = $f($1.checksum + $get($1.widths, $1.i) * $get($1.checkweightseq, $1.i)); - } - $1.checksum = $f($1.checksum % 211 + ($1.datalen - 3) * 211); - $1.i = 0; - for (;;) { - if ($1.checksum <= $get($1.tab174, $1.i)) { - var _Fn = $geti($1.tab174, $1.i + 1, 7); - for (var _Fo = 0, _Fp = _Fn.length; _Fo < _Fp; _Fo++) { - $k[$j++] = $get(_Fn, _Fo); - } - $1.cte = $k[--$j]; - $1.cto = $k[--$j]; - $1.cmwe = $k[--$j]; - $1.cmwo = $k[--$j]; - $1.cele = $k[--$j]; - $1.celo = $k[--$j]; - $1.cgs = $k[--$j]; - break; - } - $1.i = $1.i + 8; - } - $k[$j++] = "cwo"; - $k[$j++] = ~~($f($1.checksum - $1.cgs) / $1.cte); - $k[$j++] = $1.celo; - $k[$j++] = $1.cmwo; - $k[$j++] = 4; - $k[$j++] = true; - $1.getRSSwidths(); - var _G4 = $k[--$j]; - $1[$k[--$j]] = _G4; - $k[$j++] = "cwe"; - $k[$j++] = $f($1.checksum - $1.cgs) % $1.cte; - $k[$j++] = $1.cele; - $k[$j++] = $1.cmwe; - $k[$j++] = 4; - $k[$j++] = false; - $1.getRSSwidths(); - var _GB = $k[--$j]; - $1[$k[--$j]] = _GB; - $1.cw = $a(8); - for (var _GE = 0; _GE <= 3; _GE += 1) { - $1.i = _GE; - $put($1.cw, $1.i * 2, $get($1.cwo, $1.i)); - $put($1.cw, $1.i * 2 + 1, $get($1.cwe, $1.i)); - } - var _GP = $a(22); - $put(_GP, 0, $1.cw); - $puti(_GP, 1, $1.dxw); - $1.dxw = $geti(_GP, 0, $1.datalen + 1); - $1.datalen = $1.dxw.length; - $1.rows = $a(~~Math.ceil($1.datalen / $1.segments)); - $1.numrows = $1.rows.length; - for (var _Gb = 0, _Ga = $1.numrows - 1; _Gb <= _Ga; _Gb += 1) { - $1.r = _Gb; - $k[$j++] = Infinity; - if ($1.segments % 4 != 0 && $1.r % 2 == 1) { - $k[$j++] = 0; - } - $k[$j++] = 1; - $k[$j++] = 1; - for (var _Gg = 0, _Gf = $1.segments - 1; _Gg <= _Gf; _Gg += 1) { - $1.pos = _Gg + $1.r * $1.segments; - if ($1.pos < $1.datalen) { - $forall($get($1.dxw, $1.pos)); - if ($1.pos % 2 == 0) { - $forall($get($1.fxw, ~~($1.pos / 2))); - } - } - } - var _Gs = $counttomark() + 2; - $k[$j++] = 1; - $k[$j++] = 1; - $astore($a(_Gs)); - $put($1.rows, $1.r, $k[--$j]); - $j--; - } - if ($ne($1.format, "expandedstacked")) { - var _Gz = $get($1.rows, 0); - $1.sbs = $geti(_Gz, 1, _Gz.length - 1); - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _H3 = 0, _H2 = $1.datalen - 1; _H3 <= _H2; _H3 += 1) { - $1.i = _H3; - $forall($get($1.dxw, $1.i)); - if ($1.i % 2 == 0) { - $forall($get($1.fxw, ~~($1.i / 2))); - } - } - $k[$j++] = 1; - $k[$j++] = 1; - $1.sbs = $a(); - delete $1.options["parse"]; - $k[$j++] = Infinity; - var _HD = $1.sbs; - $k[$j++] = Infinity; - for (var _HF = 0, _HG = ~~(($1.sbs.length + 1) / 2); _HF < _HG; _HF++) { - $k[$j++] = $1.height; - } - var _HI = $a(); - $k[$j++] = Infinity; - for (var _HK = 0, _HL = ~~(($1.sbs.length + 1) / 2); _HK < _HL; _HK++) { - $k[$j++] = 0; - } - var _HM = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _HD; - $k[$j++] = "bhs"; - $k[$j++] = _HI; - $k[$j++] = "bbs"; - $k[$j++] = _HM; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _HO = $d(); - $k[$j++] = _HO; - if (!$1.dontdraw) { - $0.renlinear(); - } - } else { - $1.seps = $a($1.numrows); - for (var _HU = 0, _HT = $1.numrows - 1; _HU <= _HT; _HU += 1) { - $1.r = _HU; - $1.row = $get($1.rows, $1.r); - $k[$j++] = Infinity; - for (var _Ha = 0, _HZ = $1.row.length - 1; _Ha <= _HZ; _Ha += 2) { - $1.i = _Ha; - for (var _He = 0, _Hf = $get($1.row, $1.i); _He < _Hf; _He++) { - $k[$j++] = 0; - } - if ($1.i < $1.row.length - 1) { - for (var _Hl = 0, _Hm = $get($1.row, $1.i + 1); _Hl < _Hm; _Hl++) { - $k[$j++] = 1; - } - } - } - $astore($a($counttomark())); - $1.row = $k[--$j]; - $j--; - $k[$j++] = Infinity; - $forall($1.row, function() { - var _Hr = $k[--$j]; - $k[$j++] = $f(1 - _Hr); - }); - $1.sep = $a(); - $k[$j++] = Infinity; - for (var _Hv = 19, _Hu = $1.row.length - 13; _Hv <= _Hu; _Hv += 98) { - $k[$j++] = _Hv; - } - for (var _Hy = 68, _Hx = $1.row.length - 13; _Hy <= _Hx; _Hy += 98) { - $k[$j++] = _Hy; - } - $1.finderpos = $a(); - var _I0 = $1.finderpos; - for (var _I1 = 0, _I2 = _I0.length; _I1 < _I2; _I1++) { - var _I3 = $get(_I0, _I1); - for (var _I5 = _I3, _I4 = $f(_I3 + 14); _I5 <= _I4; _I5 += 1) { - $1.i = _I5; - if ($get($1.row, $1.i) == 0) { - if ($get($1.row, $1.i - 1) == 1) { - $k[$j++] = 1; - } else { - var _IF = $get($1.sep, $1.i - 1) == 0 ? 1 : 0; - $k[$j++] = _IF; - } - } else { - $k[$j++] = 0; - } - $put($1.sep, $1.i, $k[--$j]); - } - } - $puti($1.sep, 0, $a([ 0, 0, 0, 0 ])); - $puti($1.sep, $1.row.length - 4, $a([ 0, 0, 0, 0 ])); - if ($1.segments % 4 == 0 && $1.r % 2 == 1) { - if ($get($1.rows, $1.r).length != $get($1.rows, 0).length && $1.finderpos.length % 2 == 1) { - $k[$j++] = Infinity; - $k[$j++] = 0; - $aload($1.row); - $1.row = $a(); - $k[$j++] = Infinity; - $k[$j++] = 0; - $aload($1.sep); - $1.sep = $a(); - } else { - for (var _Ib = $1.row.length - 1; _Ib >= 0; _Ib -= 1) { - $k[$j++] = $get($1.row, _Ib); - } - $astore($1.row); - $j--; - for (var _Ig = $1.sep.length - 1; _Ig >= 0; _Ig -= 1) { - $k[$j++] = $get($1.sep, _Ig); - } - $astore($1.sep); - $j--; - } - } - $put($1.rows, $1.r, $1.row); - $put($1.seps, $1.r, $1.sep); - } - $1.pixx = $get($1.rows, 0).length; - $k[$j++] = Infinity; - for (var _It = 0, _Iu = $1.pixx; _It < _Iu; _It++) { - $k[$j++] = 0; - } - var _Iv = $a(); - $puti(_Iv, 0, $get($1.rows, $1.numrows - 1)); - $put($1.rows, $1.numrows - 1, _Iv); - $k[$j++] = Infinity; - for (var _J2 = 0, _J3 = $1.pixx; _J2 < _J3; _J2++) { - $k[$j++] = 0; - } - var _J4 = $a(); - $puti(_J4, 0, $get($1.seps, $1.numrows - 1)); - $put($1.seps, $1.numrows - 1, _J4); - $k[$j++] = Infinity; - for (var _JB = 0, _JC = ~~($1.pixx / 2) + 1; _JB < _JC; _JB++) { - $k[$j++] = 0; - $k[$j++] = 1; - } - $1.sep = $geti($a(), 0, $1.pixx); - $puti($1.sep, 0, $a([ 0, 0, 0, 0 ])); - $puti($1.sep, $1.pixx - 4, $a([ 0, 0, 0, 0 ])); - $k[$j++] = Infinity; - for (var _JN = 0, _JM = $1.numrows - 1; _JN <= _JM; _JN += 1) { - $1.r = _JN; - if ($1.r != 0) { - $aload($get($1.seps, $1.r)); - } - for (var _JT = 0, _JU = $1.barxmult; _JT < _JU; _JT++) { - $aload($get($1.rows, $1.r)); - } - if ($1.r != $1.numrows - 1) { - $aload($get($1.seps, $1.r)); - $aload($1.sep); - } - } - $1.pixs = $a(); - delete $1.options["parse"]; - var _Jo = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", $1.pixx ], [ "pixy", ~~($1.pixs.length / $1.pixx) ], [ "height", ~~($1.pixs.length / $1.pixx) / 72 ], [ "width", $1.pixx / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _Jo; - if (!$1.dontdraw) { - $0.renmatrix(); - } - } + $1.oe = $k[--$j]; //#8160 + $1.el = $k[--$j]; //#8161 + $1.mw = $k[--$j]; //#8162 + $1.nm = $k[--$j]; //#8163 + $1.val = $k[--$j]; //#8164 + $1.out = $a($1.el); //#8165 + $1.mask = 0; //#8166 + for (var _Cb = 0, _Ca = $f($1.el - 2); _Cb <= _Ca; _Cb += 1) { //#8193 + $1.bar = _Cb; //#8168 + $1.ew = 1; //#8169 + var _Cd = $1.bar; //#8170 + $1.mask = $1.mask | ((_Cd < 0 ? 1 >>> -_Cd : 1 << _Cd)); //#8170 + for (;;) { //#8189 + $k[$j++] = 'sval'; //#8171 + $k[$j++] = $f($f($1.nm - $1.ew) - 1); //#8171 + $k[$j++] = $f($f($1.el - $1.bar) - 2); //#8171 + $1.ncr(); //#8171 + var _Ci = $k[--$j]; //#8171 + $1[$k[--$j]] = _Ci; //#8171 + if (($1.oe && ($1.mask == 0)) && (($f(($f($f($1.nm - $1.ew) - ($1.el * 2))) + ($1.bar * 2))) >= -2)) { //#8174 + $k[$j++] = 'sval'; //#8173 + $k[$j++] = $1.sval; //#8173 + $k[$j++] = $f(($f($f($1.nm - $1.ew) - $1.el)) + $1.bar); //#8173 + $k[$j++] = $f($f($1.el - $1.bar) - 2); //#8173 + $1.ncr(); //#8173 + var _Cx = $k[--$j]; //#8173 + var _Cy = $k[--$j]; //#8173 + $1[$k[--$j]] = $f(_Cy - _Cx); //#8173 + } //#8173 + if ($f($1.el - $1.bar) > 2) { //#8183 + $1.lval = 0; //#8176 + for (var _D8 = $f(($f(($f($f($1.nm - $1.ew) - $1.el)) + $1.bar)) + 2), _D7 = $f($1.mw + 1); _D8 >= _D7; _D8 -= 1) { //#8180 + $k[$j++] = $f(($f($f($1.nm - _D8) - $1.ew)) - 1); //#8178 + $k[$j++] = $f($f($1.el - $1.bar) - 3); //#8178 + $1.ncr(); //#8178 + $1.lval = $f($k[--$j] + $1.lval); //#8179 + } //#8179 + $1.sval = $f($1.sval - ($1.lval * ($f($f($1.el - $1.bar) - 1)))); //#8181 + } else { //#8183 + if ($f($1.nm - $1.ew) > $1.mw) { //#8183 + $1.sval = $f($1.sval - 1); //#8183 + } //#8183 + } //#8183 + $1.val = $f($1.val - $1.sval); //#8185 + if ($1.val < 0) { //#8186 + break; //#8186 + } //#8186 + $1.ew = $1.ew + 1; //#8187 + var _DS = $1.bar; //#8188 + $1.mask = $1.mask & (~((_DS < 0 ? 1 >>> -_DS : 1 << _DS))); //#8188 + } //#8188 + $1.val = $f($1.val + $1.sval); //#8190 + $1.nm = $f($1.nm - $1.ew); //#8191 + $put($1.out, $1.bar, $1.ew); //#8192 + } //#8192 + $put($1.out, $f($1.el - 1), $1.nm); //#8194 + $k[$j++] = $1.out; //#8195 + }; //#8196 + $1.tab174 = $a([347, 0, 12, 5, 7, 2, 87, 4, 1387, 348, 10, 7, 5, 4, 52, 20, 2947, 1388, 8, 9, 4, 5, 30, 52, 3987, 2948, 6, 11, 3, 6, 10, 104, 4191, 3988, 4, 13, 1, 8, 1, 204]); //#8204 + $1.dxw = $a($1.datalen); //#8206 + for (var _Dj = 0, _Di = $1.datalen - 1; _Dj <= _Di; _Dj += 1) { //#8247 + $1.x = _Dj; //#8210 + $1.d = $geti($1.binval, $1.x * 12, 12); //#8212 + $k[$j++] = 'd'; //#8213 + $k[$j++] = 0; //#8213 + for (var _Dn = 0; _Dn <= 11; _Dn += 1) { //#8213 + $1.j = _Dn; //#8213 + var _Ds = $k[--$j]; //#8213 + $k[$j++] = $f(_Ds + ((~~Math.pow(2, 11 - $1.j)) * $get($1.d, $1.j))); //#8213 + } //#8213 + var _Dt = $k[--$j]; //#8213 + $1[$k[--$j]] = _Dt; //#8213 + $1.j = 0; //#8215 + for (;;) { //#8225 + if ($le($1.d, $get($1.tab174, $1.j))) { //#8223 + var _E1 = $geti($1.tab174, $1.j + 1, 7); //#8217 + for (var _E2 = 0, _E3 = _E1.length; _E2 < _E3; _E2++) { //#8217 + $k[$j++] = $get(_E1, _E2); //#8217 + } //#8217 + $1.dte = $k[--$j]; //#8218 + $1.dto = $k[--$j]; //#8218 + $1.dmwe = $k[--$j]; //#8219 + $1.dmwo = $k[--$j]; //#8219 + $1.dele = $k[--$j]; //#8220 + $1.delo = $k[--$j]; //#8220 + $1.dgs = $k[--$j]; //#8221 + break; //#8222 + } //#8222 + $1.j = $1.j + 8; //#8224 + } //#8224 + $k[$j++] = 'dwo'; //#8227 + $k[$j++] = ~~($f($1.d - $1.dgs) / $1.dte); //#8227 + $k[$j++] = $1.delo; //#8227 + $k[$j++] = $1.dmwo; //#8227 + $k[$j++] = 4; //#8227 + $k[$j++] = true; //#8227 + $1.getRSSwidths(); //#8227 + var _EI = $k[--$j]; //#8227 + $1[$k[--$j]] = _EI; //#8227 + $k[$j++] = 'dwe'; //#8228 + $k[$j++] = $f($1.d - $1.dgs) % $1.dte; //#8228 + $k[$j++] = $1.dele; //#8228 + $k[$j++] = $1.dmwe; //#8228 + $k[$j++] = 4; //#8228 + $k[$j++] = false; //#8228 + $1.getRSSwidths(); //#8228 + var _EP = $k[--$j]; //#8228 + $1[$k[--$j]] = _EP; //#8228 + $1.dw = $a(8); //#8230 + if (($1.x % 2) == 0) { //#8241 + for (var _ET = 0; _ET <= 3; _ET += 1) { //#8236 + $1.j = _ET; //#8233 + $put($1.dw, 7 - ($1.j * 2), $get($1.dwo, $1.j)); //#8234 + $put($1.dw, 6 - ($1.j * 2), $get($1.dwe, $1.j)); //#8235 + } //#8235 + } else { //#8241 + for (var _Ee = 0; _Ee <= 3; _Ee += 1) { //#8242 + $1.j = _Ee; //#8239 + $put($1.dw, $1.j * 2, $get($1.dwo, $1.j)); //#8240 + $put($1.dw, ($1.j * 2) + 1, $get($1.dwe, $1.j)); //#8241 + } //#8241 + } //#8241 + $put($1.dxw, $1.x, $1.dw); //#8245 + } //#8245 + $1.finderwidths = $a([1, 8, 4, 1, 1, 1, 1, 4, 8, 1, 3, 6, 4, 1, 1, 1, 1, 4, 6, 3, 3, 4, 6, 1, 1, 1, 1, 6, 4, 3, 3, 2, 8, 1, 1, 1, 1, 8, 2, 3, 2, 6, 5, 1, 1, 1, 1, 5, 6, 2, 2, 2, 9, 1, 1, 1, 1, 9, 2, 2]); //#8256 + $1.finderseq = $a([$a([0, 1]), $a([0, 3, 2]), $a([0, 5, 2, 7]), $a([0, 9, 2, 7, 4]), $a([0, 9, 2, 7, 6, 11]), $a([0, 9, 2, 7, 8, 11, 10]), $a([0, 1, 2, 3, 4, 5, 6, 7]), $a([0, 1, 2, 3, 4, 5, 6, 9, 8]), $a([0, 1, 2, 3, 4, 5, 6, 9, 10, 11]), $a([0, 1, 2, 3, 4, 7, 6, 9, 8, 11, 10])]); //#8269 + $1.seq = $get($1.finderseq, ~~(($1.datalen - 2) / 2)); //#8271 + $1.fxw = $a($1.seq.length); //#8272 + for (var _FB = 0, _FA = $1.seq.length - 1; _FB <= _FA; _FB += 1) { //#8276 + $1.x = _FB; //#8274 + $put($1.fxw, $1.x, $geti($1.finderwidths, $get($1.seq, $1.x) * 5, 5)); //#8275 + } //#8275 + $1.checkweights = $a([-1, -1, -1, -1, -1, -1, -1, -1, 77, 96, 32, 81, 27, 9, 3, 1, 20, 60, 180, 118, 143, 7, 21, 63, 205, 209, 140, 117, 39, 13, 145, 189, 193, 157, 49, 147, 19, 57, 171, 91, 132, 44, 85, 169, 197, 136, 186, 62, 185, 133, 188, 142, 4, 12, 36, 108, 50, 87, 29, 80, 97, 173, 128, 113, 150, 28, 84, 41, 123, 158, 52, 156, 166, 196, 206, 139, 187, 203, 138, 46, 76, 17, 51, 153, 37, 111, 122, 155, 146, 119, 110, 107, 106, 176, 129, 43, 16, 48, 144, 10, 30, 90, 59, 177, 164, 125, 112, 178, 200, 137, 116, 109, 70, 210, 208, 202, 184, 130, 179, 115, 190, 204, 68, 93, 31, 151, 191, 134, 148, 22, 66, 198, 172, 94, 71, 2, 40, 154, 192, 64, 162, 54, 18, 6, 120, 149, 25, 75, 14, 42, 126, 167, 175, 199, 207, 69, 23, 78, 26, 79, 103, 98, 83, 38, 114, 131, 182, 124, 159, 53, 88, 170, 127, 183, 61, 161, 55, 165, 73, 8, 24, 72, 5, 15, 89, 100, 174, 58, 160, 194, 135, 45]); //#8303 + $k[$j++] = Infinity; //#8306 + $forall($1.seq, function() { //#8306 + $aload($geti($1.checkweights, $k[--$j] * 16, 16)); //#8306 + }); //#8306 + var _FO = $a(); //#8306 + $1.checkweightseq = $geti(_FO, 8, _FO.length - 8); //#8307 + $k[$j++] = Infinity; //#8310 + var _FQ = $1.dxw; //#8310 + for (var _FR = 0, _FS = _FQ.length; _FR < _FS; _FR++) { //#8310 + $forall($get(_FQ, _FR)); //#8310 + } //#8310 + $1.widths = $a(); //#8310 + $1.checksum = 0; //#8313 + for (var _FX = 0, _FW = $1.widths.length - 1; _FX <= _FW; _FX += 1) { //#8317 + $1.i = _FX; //#8315 + $1.checksum = $f($1.checksum + ($get($1.widths, $1.i) * $get($1.checkweightseq, $1.i))); //#8316 + } //#8316 + $1.checksum = $f(($1.checksum % 211) + (($1.datalen - 3) * 211)); //#8318 + $1.i = 0; //#8320 + for (;;) { //#8330 + if ($1.checksum <= $get($1.tab174, $1.i)) { //#8328 + var _Fn = $geti($1.tab174, $1.i + 1, 7); //#8322 + for (var _Fo = 0, _Fp = _Fn.length; _Fo < _Fp; _Fo++) { //#8322 + $k[$j++] = $get(_Fn, _Fo); //#8322 + } //#8322 + $1.cte = $k[--$j]; //#8323 + $1.cto = $k[--$j]; //#8323 + $1.cmwe = $k[--$j]; //#8324 + $1.cmwo = $k[--$j]; //#8324 + $1.cele = $k[--$j]; //#8325 + $1.celo = $k[--$j]; //#8325 + $1.cgs = $k[--$j]; //#8326 + break; //#8327 + } //#8327 + $1.i = $1.i + 8; //#8329 + } //#8329 + $k[$j++] = 'cwo'; //#8332 + $k[$j++] = ~~($f($1.checksum - $1.cgs) / $1.cte); //#8332 + $k[$j++] = $1.celo; //#8332 + $k[$j++] = $1.cmwo; //#8332 + $k[$j++] = 4; //#8332 + $k[$j++] = true; //#8332 + $1.getRSSwidths(); //#8332 + var _G4 = $k[--$j]; //#8332 + $1[$k[--$j]] = _G4; //#8332 + $k[$j++] = 'cwe'; //#8333 + $k[$j++] = $f($1.checksum - $1.cgs) % $1.cte; //#8333 + $k[$j++] = $1.cele; //#8333 + $k[$j++] = $1.cmwe; //#8333 + $k[$j++] = 4; //#8333 + $k[$j++] = false; //#8333 + $1.getRSSwidths(); //#8333 + var _GB = $k[--$j]; //#8333 + $1[$k[--$j]] = _GB; //#8333 + $1.cw = $a(8); //#8335 + for (var _GE = 0; _GE <= 3; _GE += 1) { //#8340 + $1.i = _GE; //#8337 + $put($1.cw, $1.i * 2, $get($1.cwo, $1.i)); //#8338 + $put($1.cw, ($1.i * 2) + 1, $get($1.cwe, $1.i)); //#8339 + } //#8339 + var _GP = $a(22); //#8342 + $put(_GP, 0, $1.cw); //#8343 + $puti(_GP, 1, $1.dxw); //#8343 + $1.dxw = $geti(_GP, 0, $1.datalen + 1); //#8344 + $1.datalen = $1.dxw.length; //#8345 + $1.rows = $a(~~Math.ceil($1.datalen / $1.segments)); //#8348 + $1.numrows = $1.rows.length; //#8349 + for (var _Gb = 0, _Ga = $1.numrows - 1; _Gb <= _Ga; _Gb += 1) { //#8364 + $1.r = _Gb; //#8351 + $k[$j++] = Infinity; //#8352 + if ((($1.segments % 4) != 0) && (($1.r % 2) == 1)) { //#8353 + $k[$j++] = 0; //#8353 + } //#8353 + $k[$j++] = 1; //#8361 + $k[$j++] = 1; //#8361 + for (var _Gg = 0, _Gf = $1.segments - 1; _Gg <= _Gf; _Gg += 1) { //#8361 + $1.pos = _Gg + ($1.r * $1.segments); //#8356 + if ($1.pos < $1.datalen) { //#8360 + $forall($get($1.dxw, $1.pos)); //#8358 + if (($1.pos % 2) == 0) { //#8359 + $forall($get($1.fxw, ~~($1.pos / 2))); //#8359 + } //#8359 + } //#8359 + } //#8359 + var _Gs = $counttomark() + 2; //#8363 + $k[$j++] = 1; //#8363 + $k[$j++] = 1; //#8363 + $astore($a(_Gs)); //#8363 + $put($1.rows, $1.r, $k[--$j]); //#8363 + $j--; //#8363 + } //#8363 + if ($ne($1.format, "expandedstacked")) { //#8492 + var _Gz = $get($1.rows, 0); //#8369 + $1.sbs = $geti(_Gz, 1, _Gz.length - 1); //#8369 + $k[$j++] = Infinity; //#8378 + $k[$j++] = 1; //#8377 + for (var _H3 = 0, _H2 = $1.datalen - 1; _H3 <= _H2; _H3 += 1) { //#8377 + $1.i = _H3; //#8374 + $forall($get($1.dxw, $1.i)); //#8375 + if (($1.i % 2) == 0) { //#8376 + $forall($get($1.fxw, ~~($1.i / 2))); //#8376 + } //#8376 + } //#8376 + $k[$j++] = 1; //#8378 + $k[$j++] = 1; //#8378 + $1.sbs = $a(); //#8378 + delete $1.options["parse"]; //#8381 + $k[$j++] = Infinity; //#8388 + var _HD = $1.sbs; //#8385 + $k[$j++] = Infinity; //#8386 + for (var _HF = 0, _HG = ~~(($1.sbs.length + 1) / 2); _HF < _HG; _HF++) { //#8386 + $k[$j++] = $1.height; //#8386 + } //#8386 + var _HI = $a(); //#8386 + $k[$j++] = Infinity; //#8387 + for (var _HK = 0, _HL = ~~(($1.sbs.length + 1) / 2); _HK < _HL; _HK++) { //#8387 + $k[$j++] = 0; //#8387 + } //#8387 + var _HM = $a(); //#8387 + $k[$j++] = 'ren'; //#8388 + $k[$j++] = $0.renlinear; //#8388 + $k[$j++] = 'sbs'; //#8388 + $k[$j++] = _HD; //#8388 + $k[$j++] = 'bhs'; //#8388 + $k[$j++] = _HI; //#8388 + $k[$j++] = 'bbs'; //#8388 + $k[$j++] = _HM; //#8388 + $k[$j++] = 'opt'; //#8388 + $k[$j++] = $1.options; //#8388 + var _HO = $d(); //#8388 + $k[$j++] = _HO; //#8391 + if (!$1.dontdraw) { //#8391 + $0.renlinear(); //#8391 + } //#8391 + } else { //#8492 + $1.seps = $a($1.numrows); //#8395 + for (var _HU = 0, _HT = $1.numrows - 1; _HU <= _HT; _HU += 1) { //#8451 + $1.r = _HU; //#8398 + $1.row = $get($1.rows, $1.r); //#8399 + $k[$j++] = Infinity; //#8402 + for (var _Ha = 0, _HZ = $1.row.length - 1; _Ha <= _HZ; _Ha += 2) { //#8407 + $1.i = _Ha; //#8404 + for (var _He = 0, _Hf = $get($1.row, $1.i); _He < _Hf; _He++) { //#8405 + $k[$j++] = 0; //#8405 + } //#8405 + if ($1.i < ($1.row.length - 1)) { //#8406 + for (var _Hl = 0, _Hm = $get($1.row, $1.i + 1); _Hl < _Hm; _Hl++) { //#8406 + $k[$j++] = 1; //#8406 + } //#8406 + } //#8406 + } //#8406 + $astore($a($counttomark())); //#8408 + $1.row = $k[--$j]; //#8408 + $j--; //#8408 + $k[$j++] = Infinity; //#8411 + $forall($1.row, function() { //#8411 + var _Hr = $k[--$j]; //#8411 + $k[$j++] = $f(1 - _Hr); //#8411 + }); //#8411 + $1.sep = $a(); //#8411 + $k[$j++] = Infinity; //#8414 + for (var _Hv = 19, _Hu = $1.row.length - 13; _Hv <= _Hu; _Hv += 98) { //#8413 + $k[$j++] = _Hv; //#8413 + } //#8413 + for (var _Hy = 68, _Hx = $1.row.length - 13; _Hy <= _Hx; _Hy += 98) { //#8414 + $k[$j++] = _Hy; //#8414 + } //#8414 + $1.finderpos = $a(); //#8414 + var _I0 = $1.finderpos; //#8416 + for (var _I1 = 0, _I2 = _I0.length; _I1 < _I2; _I1++) { //#8430 + var _I3 = $get(_I0, _I1); //#8430 + for (var _I5 = _I3, _I4 = $f(_I3 + 14); _I5 <= _I4; _I5 += 1) { //#8429 + $1.i = _I5; //#8418 + if ($get($1.row, $1.i) == 0) { //#8426 + if ($get($1.row, $1.i - 1) == 1) { //#8423 + $k[$j++] = 1; //#8421 + } else { //#8423 + var _IF = ($get($1.sep, $1.i - 1) == 0) ? 1 : 0; //#8423 + $k[$j++] = _IF; //#8423 + } //#8423 + } else { //#8426 + $k[$j++] = 0; //#8426 + } //#8426 + $put($1.sep, $1.i, $k[--$j]); //#8428 + } //#8428 + } //#8428 + $puti($1.sep, 0, $a([0, 0, 0, 0])); //#8431 + $puti($1.sep, $1.row.length - 4, $a([0, 0, 0, 0])); //#8432 + if ((($1.segments % 4) == 0) && (($1.r % 2) == 1)) { //#8446 + if (($get($1.rows, $1.r).length != $get($1.rows, 0).length) && (($1.finderpos.length % 2) == 1)) { //#8444 + $k[$j++] = Infinity; //#8438 + $k[$j++] = 0; //#8438 + $aload($1.row); //#8438 + $1.row = $a(); //#8438 + $k[$j++] = Infinity; //#8439 + $k[$j++] = 0; //#8439 + $aload($1.sep); //#8439 + $1.sep = $a(); //#8439 + } else { //#8444 + for (var _Ib = $1.row.length - 1; _Ib >= 0; _Ib -= 1) { //#8441 + $k[$j++] = $get($1.row, _Ib); //#8441 + } //#8441 + $astore($1.row); //#8442 + $j--; //#8442 + for (var _Ig = $1.sep.length - 1; _Ig >= 0; _Ig -= 1) { //#8443 + $k[$j++] = $get($1.sep, _Ig); //#8443 + } //#8443 + $astore($1.sep); //#8444 + $j--; //#8444 + } //#8444 + } //#8444 + $put($1.rows, $1.r, $1.row); //#8448 + $put($1.seps, $1.r, $1.sep); //#8449 + } //#8449 + $1.pixx = $get($1.rows, 0).length; //#8454 + $k[$j++] = Infinity; //#8455 + for (var _It = 0, _Iu = $1.pixx; _It < _Iu; _It++) { //#8455 + $k[$j++] = 0; //#8455 + } //#8455 + var _Iv = $a(); //#8455 + $puti(_Iv, 0, $get($1.rows, $1.numrows - 1)); //#8455 + $put($1.rows, $1.numrows - 1, _Iv); //#8456 + $k[$j++] = Infinity; //#8457 + for (var _J2 = 0, _J3 = $1.pixx; _J2 < _J3; _J2++) { //#8457 + $k[$j++] = 0; //#8457 + } //#8457 + var _J4 = $a(); //#8457 + $puti(_J4, 0, $get($1.seps, $1.numrows - 1)); //#8457 + $put($1.seps, $1.numrows - 1, _J4); //#8458 + $k[$j++] = Infinity; //#8461 + for (var _JB = 0, _JC = (~~($1.pixx / 2)) + 1; _JB < _JC; _JB++) { //#8461 + $k[$j++] = 0; //#8461 + $k[$j++] = 1; //#8461 + } //#8461 + $1.sep = $geti($a(), 0, $1.pixx); //#8461 + $puti($1.sep, 0, $a([0, 0, 0, 0])); //#8462 + $puti($1.sep, $1.pixx - 4, $a([0, 0, 0, 0])); //#8463 + $k[$j++] = Infinity; //#8475 + for (var _JN = 0, _JM = $1.numrows - 1; _JN <= _JM; _JN += 1) { //#8477 + $1.r = _JN; //#8468 + if ($1.r != 0) { //#8471 + $aload($get($1.seps, $1.r)); //#8470 + } //#8470 + for (var _JT = 0, _JU = $1.barxmult; _JT < _JU; _JT++) { //#8472 + $aload($get($1.rows, $1.r)); //#8472 + } //#8472 + if ($1.r != ($1.numrows - 1)) { //#8476 + $aload($get($1.seps, $1.r)); //#8474 + $aload($1.sep); //#8475 + } //#8475 + } //#8475 + $1.pixs = $a(); //#8475 + delete $1.options["parse"]; //#8480 + var _Jo = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", $1.pixx], + ["pixy", ~~($1.pixs.length / $1.pixx)], + ["height", (~~($1.pixs.length / $1.pixx)) / 72], + ["width", $1.pixx / 72], + ["opt", $1.options] + ]); //#8489 + $k[$j++] = _Jo; //#8492 + if (!$1.dontdraw) { //#8492 + $0.renmatrix(); //#8492 + } //#8492 + } //#8492 }; $0.databarexpandedstacked = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $put($1.options, "dontdraw", true); - $put($1.options, "format", "expandedstacked"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.databarexpanded(); - var _9 = $k[--$j]; - $1[$k[--$j]] = _9; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#8524 + $1.options = $k[--$j]; //#8526 + $1.barcode = $k[--$j]; //#8527 + $1.dontdraw = false; //#8529 + $forall($1.options, function() { //#8540 + var _3 = $k[--$j]; //#8540 + $1[$k[--$j]] = _3; //#8540 + }); //#8540 + $put($1.options, "dontdraw", true); //#8543 + $put($1.options, "format", "expandedstacked"); //#8544 + $k[$j++] = 'args'; //#8546 + $k[$j++] = $1.barcode; //#8546 + $k[$j++] = $1.options; //#8546 + $0.databarexpanded(); //#8546 + var _9 = $k[--$j]; //#8546 + $1[$k[--$j]] = _9; //#8546 + $put($1.args, "opt", $1.options); //#8548 + $k[$j++] = $1.args; //#8551 + if (!$1.dontdraw) { //#8551 + $0.renmatrix(); //#8551 + } //#8551 }; $0.gs1northamericancoupon = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.coupontextfont = "OCR-B"; - $1.coupontextsize = 9; - $1.coupontextxoffset = "unset"; - $1.coupontextyoffset = "unset"; - $1.parse = false; - $1.dontlint = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.coupontextfont = "" + $1.coupontextfont; - $1.coupontextsize = +$1.coupontextsize; - if ($ne($1.coupontextxoffset, "unset")) { - $1.coupontextxoffset = +$1.coupontextxoffset; - } - if ($ne($1.coupontextyoffset, "unset")) { - $1.coupontextyoffset = +$1.coupontextyoffset; - } + var $1 = {}; //#8583 + $1.options = $k[--$j]; //#8585 + $1.barcode = $k[--$j]; //#8586 + $1.dontdraw = false; //#8588 + $1.includetext = false; //#8590 + $1.coupontextfont = "OCR-B"; //#8591 + $1.coupontextsize = 9; //#8592 + $1.coupontextxoffset = "unset"; //#8593 + $1.coupontextyoffset = "unset"; //#8594 + $1.parse = false; //#8595 + $1.dontlint = false; //#8596 + $forall($1.options, function() { //#8607 + var _3 = $k[--$j]; //#8607 + $1[$k[--$j]] = _3; //#8607 + }); //#8607 + $1.coupontextfont = "" + $1.coupontextfont; //#8609 + $1.coupontextsize = +$1.coupontextsize; //#8610 + if ($ne($1.coupontextxoffset, "unset")) { //#8611 + $1.coupontextxoffset = +$1.coupontextxoffset; //#8611 + } //#8611 + if ($ne($1.coupontextyoffset, "unset")) { //#8612 + $1.coupontextyoffset = +$1.coupontextyoffset; //#8612 + } //#8612 $1.expand = function() { - var _C = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _C; - $k[$j++] = $1.fncvals; - $0.parseinput(); - }; - $1.ais = $a([]); - $1.vals = $a([]); - var _G = $1.barcode; - $k[$j++] = $geti(_G, 1, _G.length - 1); - for (;;) { - var _I = $k[--$j]; - $k[$j++] = _I; - if ($eq(_I, "")) { - break; - } - $search($k[--$j], ")"); - $j--; - var _K = $k[--$j]; - var _L = $k[--$j]; - $k[$j++] = _K; - $k[$j++] = _L; - $j--; - var _M = $k[--$j]; - var _N = $k[--$j]; - $k[$j++] = _M; - $search(_N, "("); - if ($k[--$j]) { - var _P = $k[--$j]; - var _Q = $k[--$j]; - $k[$j++] = _P; - $k[$j++] = _Q; - $j--; - var _R = $k[--$j]; - var _S = $k[--$j]; - var _T = $k[--$j]; - $k[$j++] = _S; - $k[$j++] = _T; - $k[$j++] = _R; - } else { - var _U = $k[--$j]; - var _V = $k[--$j]; - $k[$j++] = ""; - $k[$j++] = _V; - $k[$j++] = _U; - } - $k[$j++] = Infinity; - $aload($1.ais); - var _Y = $k[$j - 1 - ($counttomark() + 2)]; - $k[$j++] = _Y; - $1.ais = $a(); - $k[$j++] = Infinity; - $aload($1.vals); - var _c = $k[$j - 1 - ($counttomark() + 1)]; - $k[$j++] = _c; - $1.expand(); - $1.vals = $a(); - $j -= 2; - } - $j--; - if ($1.ais.length != 1) { - $k[$j++] = "bwipp.gs1northamericancouponBadAIStructure"; - $k[$j++] = "A GS1 North American Coupon should consist of a single AI (8110)"; - $0.raiseerror(); - } - if ($ne($get($1.ais, 0), "8110")) { - $k[$j++] = "bwipp.gs1northamericancouponBadAIStructure"; - $k[$j++] = "A GS1 North American Coupon should consist of a single AI (8110)"; - $0.raiseerror(); - } - if (!$1.dontlint) { - $k[$j++] = $1.ais; - $k[$j++] = $1.vals; - $0.gs1lint(); - $j--; - } - $1.val = $get($1.vals, 0); - $1.vli = $f($get($1.val, 0) - 48); - if ($1.vli < 0 || $1.vli > 6) { - $k[$j++] = "bwipp.gs1northamericancouponBadVLI"; - $k[$j++] = "The AI (8110) data should start with a Company Prefix length indicator in the range 0 to 6"; - $0.raiseerror(); - } - $1.gcp = $geti($1.val, 1, $f($1.vli + 6)); - $1.cod = $geti($1.val, $f($1.vli + 7), 6); - $1.coupontext = $s($1.gcp.length + 7); - $puti($1.coupontext, 0, $1.gcp); - $puti($1.coupontext, $1.gcp.length, "-"); - $puti($1.coupontext, $1.gcp.length + 1, $1.cod); - delete $1.options["parse"]; - $put($1.options, "dontdraw", true); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.databarexpandedstacked(); - var _19 = $k[--$j]; - $1[$k[--$j]] = _19; - if ($1.includetext) { - if ($1.coupontextxoffset == "unset") { - $1.coupontextxoffset = 0; - } - if ($1.coupontextyoffset == "unset") { - $1.coupontextyoffset = $f($get($1.args, "height") * 72 + 3); - } - var _1H = $get($1.args, "txt") !== undefined; - if (_1H) { - $1.txt = $get($1.args, "txt"); - $1.newtxt = $a($1.txt.length + 1); - $puti($1.newtxt, 0, $1.txt); - $put($1.newtxt, $1.newtxt.length - 1, $a([ $1.coupontext, $1.coupontextxoffset, $1.coupontextyoffset, $1.coupontextfont, $1.coupontextsize ])); - $put($1.args, "txt", $1.newtxt); - } else { - $put($1.args, "txt", $a([ $a([ $1.coupontext, $1.coupontextxoffset, $1.coupontextyoffset, $1.coupontextfont, $1.coupontextsize ]) ])); - } - } - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var _C = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#8619 + $1.fncvals = _C; //#8620 + $k[$j++] = $1.fncvals; //#8621 + $0.parseinput(); //#8621 + }; //#8622 + $1.ais = $a([]); //#8625 + $1.vals = $a([]); //#8626 + var _G = $1.barcode; //#8627 + $k[$j++] = $geti(_G, 1, _G.length - 1); //#8640 + for (;;) { //#8640 + var _I = $k[--$j]; //#8629 + $k[$j++] = _I; //#8629 + if ($eq(_I, "")) { //#8629 + break; //#8629 + } //#8629 + $search($k[--$j], ")"); //#8630 + $j--; //#8630 + var _K = $k[--$j]; //#8631 + var _L = $k[--$j]; //#8631 + $k[$j++] = _K; //#8631 + $k[$j++] = _L; //#8631 + $j--; //#8631 + var _M = $k[--$j]; //#8632 + var _N = $k[--$j]; //#8632 + $k[$j++] = _M; //#8632 + $search(_N, "("); //#8632 + if ($k[--$j]) { //#8635 + var _P = $k[--$j]; //#8633 + var _Q = $k[--$j]; //#8633 + $k[$j++] = _P; //#8633 + $k[$j++] = _Q; //#8633 + $j--; //#8633 + var _R = $k[--$j]; //#8633 + var _S = $k[--$j]; //#8633 + var _T = $k[--$j]; //#8633 + $k[$j++] = _S; //#8633 + $k[$j++] = _T; //#8633 + $k[$j++] = _R; //#8633 + } else { //#8635 + var _U = $k[--$j]; //#8635 + var _V = $k[--$j]; //#8635 + $k[$j++] = ""; //#8635 + $k[$j++] = _V; //#8635 + $k[$j++] = _U; //#8635 + } //#8635 + $k[$j++] = Infinity; //#8637 + $aload($1.ais); //#8637 + var _Y = $k[$j - 1 - ($counttomark() + 2)]; //#8637 + $k[$j++] = _Y; //#8637 + $1.ais = $a(); //#8637 + $k[$j++] = Infinity; //#8638 + $aload($1.vals); //#8638 + var _c = $k[$j - 1 - ($counttomark() + 1)]; //#8638 + $k[$j++] = _c; //#8638 + $1.expand(); //#8638 + $1.vals = $a(); //#8638 + $j -= 2; //#8639 + } //#8639 + $j--; //#8641 + if ($1.ais.length != 1) { //#8646 + $k[$j++] = 'bwipp.gs1northamericancouponBadAIStructure'; //#8645 + $k[$j++] = "A GS1 North American Coupon should consist of a single AI (8110)"; //#8645 + $0.raiseerror(); //#8645 + } //#8645 + if ($ne($get($1.ais, 0), "8110")) { //#8649 + $k[$j++] = 'bwipp.gs1northamericancouponBadAIStructure'; //#8648 + $k[$j++] = "A GS1 North American Coupon should consist of a single AI (8110)"; //#8648 + $0.raiseerror(); //#8648 + } //#8648 + if (!$1.dontlint) { //#8651 + $k[$j++] = $1.ais; //#8651 + $k[$j++] = $1.vals; //#8651 + $0.gs1lint(); //#8651 + $j--; //#8651 + } //#8651 + $1.val = $get($1.vals, 0); //#8654 + $1.vli = $f($get($1.val, 0) - 48); //#8655 + if (($1.vli < 0) || ($1.vli > 6)) { //#8658 + $k[$j++] = 'bwipp.gs1northamericancouponBadVLI'; //#8657 + $k[$j++] = "The AI (8110) data should start with a Company Prefix length indicator in the range 0 to 6"; //#8657 + $0.raiseerror(); //#8657 + } //#8657 + $1.gcp = $geti($1.val, 1, $f($1.vli + 6)); //#8659 + $1.cod = $geti($1.val, $f($1.vli + 7), 6); //#8660 + $1.coupontext = $s($1.gcp.length + 7); //#8661 + $puti($1.coupontext, 0, $1.gcp); //#8662 + $puti($1.coupontext, $1.gcp.length, "-"); //#8663 + $puti($1.coupontext, $1.gcp.length + 1, $1.cod); //#8664 + delete $1.options["parse"]; //#8667 + $put($1.options, "dontdraw", true); //#8668 + $k[$j++] = 'args'; //#8670 + $k[$j++] = $1.barcode; //#8670 + $k[$j++] = $1.options; //#8670 + $0.databarexpandedstacked(); //#8670 + var _19 = $k[--$j]; //#8670 + $1[$k[--$j]] = _19; //#8670 + if ($1.includetext) { //#8689 + if ($1.coupontextxoffset == "unset") { //#8676 + $1.coupontextxoffset = 0; //#8675 + } //#8675 + if ($1.coupontextyoffset == "unset") { //#8679 + $1.coupontextyoffset = $f(($get($1.args, "height") * 72) + 3); //#8678 + } //#8678 + var _1H = $get($1.args, "txt") !== undefined; //#8680 + if (_1H) { //#8687 + $1.txt = $get($1.args, "txt"); //#8681 + $1.newtxt = $a($1.txt.length + 1); //#8682 + $puti($1.newtxt, 0, $1.txt); //#8683 + $put($1.newtxt, $1.newtxt.length - 1, $a([$1.coupontext, $1.coupontextxoffset, $1.coupontextyoffset, $1.coupontextfont, $1.coupontextsize])); //#8684 + $put($1.args, "txt", $1.newtxt); //#8685 + } else { //#8687 + $put($1.args, "txt", $a([$a([$1.coupontext, $1.coupontextxoffset, $1.coupontextyoffset, $1.coupontextfont, $1.coupontextsize])])); //#8687 + } //#8687 + } //#8687 + $put($1.args, "opt", $1.options); //#8691 + $k[$j++] = $1.args; //#8694 + if (!$1.dontdraw) { //#8694 + $0.renmatrix(); //#8694 + } //#8694 }; $0.pharmacode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.height = 8 * 2.835 / 72; - $1.nwidth = .5 * 2.835; - $1.wwidth = 1.5 * 2.835; - $1.swidth = 1 * 2.835; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.height = +$1.height; - $1.nwidth = +$1.nwidth; - $1.wwidth = +$1.wwidth; - $1.swidth = +$1.swidth; - if ($1.barcode.length < 1 || $1.barcode.length > 6) { - $k[$j++] = "bwipp.pharmacodeBadLength"; - $k[$j++] = "Pharmacode must be 1 to 6 digits"; - $0.raiseerror(); - } - $forall($1.barcode, function() { - var _C = $k[--$j]; - if (_C < 48 || _C > 57) { - $k[$j++] = "bwipp.pharmacodeBadCharacter"; - $k[$j++] = "Pharmacode must contain only digits"; - $0.raiseerror(); - } - }); - var _E = ~~$z($1.barcode); - if (_E < 3 || _E > 131070) { - $k[$j++] = "bwipp.pharmacodeBadValue"; - $k[$j++] = "Pharmacode value must be between 3 and 131070"; - $0.raiseerror(); - } - $1.txt = $a($1.barcode.length); - for (var _J = 0, _I = $1.barcode.length - 1; _J <= _I; _J += 1) { - $1.i = _J; - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), 0, 0, "", 0 ])); - } - $1.barcode = $cvrs($s(17), ~~$z($1.barcode) + 1, 2); - $1.barcode = $geti($1.barcode, 1, $1.barcode.length - 1); - $1.barlen = $1.barcode.length; - $1.sbs = $a($1.barlen * 2); - for (var _b = 0, _a = $1.barlen - 1; _b <= _a; _b += 1) { - $1.i = _b; - $1.enc = $geti($1.barcode, $1.i, 1); - if ($eq($1.enc, "0")) { - $put($1.sbs, $1.i * 2, $1.nwidth); - } else { - $put($1.sbs, $1.i * 2, $1.wwidth); - } - $put($1.sbs, $1.i * 2 + 1, $1.swidth); - } - $k[$j++] = Infinity; - var _p = $1.sbs; - $k[$j++] = Infinity; - for (var _r = 0, _s = ~~(($1.sbs.length + 1) / 2); _r < _s; _r++) { - $k[$j++] = $1.height; - } - var _u = $a(); - $k[$j++] = Infinity; - for (var _w = 0, _x = ~~(($1.sbs.length + 1) / 2); _w < _x; _w++) { - $k[$j++] = 0; - } - var _y = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _p; - $k[$j++] = "bhs"; - $k[$j++] = _u; - $k[$j++] = "bbs"; - $k[$j++] = _y; - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - $k[$j++] = "textxalign"; - $k[$j++] = "center"; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _11 = $d(); - $k[$j++] = _11; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#8723 + $1.options = $k[--$j]; //#8725 + $1.barcode = $k[--$j]; //#8726 + $1.dontdraw = false; //#8728 + $1.height = (8 * 2.835) / 72; //#8729 + $1.nwidth = 0.5 * 2.835; //#8730 + $1.wwidth = 1.5 * 2.835; //#8731 + $1.swidth = 1 * 2.835; //#8732 + $forall($1.options, function() { //#8743 + var _3 = $k[--$j]; //#8743 + $1[$k[--$j]] = _3; //#8743 + }); //#8743 + $1.height = +$1.height; //#8745 + $1.nwidth = +$1.nwidth; //#8746 + $1.wwidth = +$1.wwidth; //#8747 + $1.swidth = +$1.swidth; //#8748 + if (($1.barcode.length < 1) || ($1.barcode.length > 6)) { //#8753 + $k[$j++] = 'bwipp.pharmacodeBadLength'; //#8752 + $k[$j++] = "Pharmacode must be 1 to 6 digits"; //#8752 + $0.raiseerror(); //#8752 + } //#8752 + $forall($1.barcode, function() { //#8758 + var _C = $k[--$j]; //#8755 + if ((_C < 48) || (_C > 57)) { //#8757 + $k[$j++] = 'bwipp.pharmacodeBadCharacter'; //#8756 + $k[$j++] = "Pharmacode must contain only digits"; //#8756 + $0.raiseerror(); //#8756 + } //#8756 + }); //#8756 + var _E = ~~$z($1.barcode); //#8759 + if ((_E < 3) || (_E > 131070)) { //#8761 + $k[$j++] = 'bwipp.pharmacodeBadValue'; //#8760 + $k[$j++] = "Pharmacode value must be between 3 and 131070"; //#8760 + $0.raiseerror(); //#8760 + } //#8760 + $1.txt = $a($1.barcode.length); //#8764 + for (var _J = 0, _I = $1.barcode.length - 1; _J <= _I; _J += 1) { //#8768 + $1.i = _J; //#8766 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), 0, 0, "", 0])); //#8767 + } //#8767 + $1.barcode = $cvrs($s(17), (~~$z($1.barcode)) + 1, 2); //#8771 + $1.barcode = $geti($1.barcode, 1, $1.barcode.length - 1); //#8772 + $1.barlen = $1.barcode.length; //#8774 + $1.sbs = $a($1.barlen * 2); //#8775 + for (var _b = 0, _a = $1.barlen - 1; _b <= _a; _b += 1) { //#8786 + $1.i = _b; //#8778 + $1.enc = $geti($1.barcode, $1.i, 1); //#8779 + if ($eq($1.enc, "0")) { //#8783 + $put($1.sbs, $1.i * 2, $1.nwidth); //#8781 + } else { //#8783 + $put($1.sbs, $1.i * 2, $1.wwidth); //#8783 + } //#8783 + $put($1.sbs, ($1.i * 2) + 1, $1.swidth); //#8785 + } //#8785 + $k[$j++] = Infinity; //#8796 + var _p = $1.sbs; //#8791 + $k[$j++] = Infinity; //#8792 + for (var _r = 0, _s = ~~(($1.sbs.length + 1) / 2); _r < _s; _r++) { //#8792 + $k[$j++] = $1.height; //#8792 + } //#8792 + var _u = $a(); //#8792 + $k[$j++] = Infinity; //#8793 + for (var _w = 0, _x = ~~(($1.sbs.length + 1) / 2); _w < _x; _w++) { //#8793 + $k[$j++] = 0; //#8793 + } //#8793 + var _y = $a(); //#8793 + $k[$j++] = 'ren'; //#8796 + $k[$j++] = $0.renlinear; //#8796 + $k[$j++] = 'sbs'; //#8796 + $k[$j++] = _p; //#8796 + $k[$j++] = 'bhs'; //#8796 + $k[$j++] = _u; //#8796 + $k[$j++] = 'bbs'; //#8796 + $k[$j++] = _y; //#8796 + $k[$j++] = 'txt'; //#8796 + $k[$j++] = $1.txt; //#8796 + $k[$j++] = 'textxalign'; //#8796 + $k[$j++] = "center"; //#8796 + $k[$j++] = 'opt'; //#8796 + $k[$j++] = $1.options; //#8796 + var _11 = $d(); //#8796 + $k[$j++] = _11; //#8799 + if (!$1.dontdraw) { //#8799 + $0.renlinear(); //#8799 + } //#8799 }; $0.pharmacode2 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.height = 4; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.height = +$1.height; - if ($1.barcode.length < 1 || $1.barcode.length > 8) { - $k[$j++] = "bwipp.pharmacode2BadLength"; - $k[$j++] = "Two-track Pharmacode must be 1 to 6 digits"; - $0.raiseerror(); - } - $forall($1.barcode, function() { - var _9 = $k[--$j]; - if (_9 < 48 || _9 > 57) { - $k[$j++] = "bwipp.pharmacode2badCharacter"; - $k[$j++] = "Two-track Pharmacode must contain only digits"; - $0.raiseerror(); - } - }); - var _B = ~~$z($1.barcode); - if (_B < 4 || _B > 64570080) { - $k[$j++] = "bwipp.pharmacode2badValue"; - $k[$j++] = "Two-track Pharmacode value must be between 4 and 64570080"; - $0.raiseerror(); - } - $1.txt = $a($1.barcode.length); - for (var _G = 0, _F = $1.barcode.length - 1; _G <= _F; _G += 1) { - $1.i = _G; - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), 0, 0, "", 0 ])); - } - $1.encstr = $s(16); - $1.sbs = $a(32); - $1.bar = 1 / 25.4 * $1.height; - $1.spc = 1 / 25.4 * 72; - $1.i = 15; - $1.val = ~~$z($1.barcode); - for (;;) { - if ($1.val == 0) { - break; - } - var _T = $1.val % 3; - $1.val = ~~($f($1.val - $get($a([ 3, 1, 2 ]), _T)) / 3); - $put($1.encstr, $1.i, $get($a([ 2, 0, 1 ]), _T)); - $1.i = $1.i - 1; - } - $1.encstr = $geti($1.encstr, $1.i + 1, 15 - $1.i); - $1.bhs = $a($1.encstr.length); - $1.bbs = $a($1.encstr.length); - for (var _m = 0, _l = $1.encstr.length - 1; _m <= _l; _m += 1) { - $1.i = _m; - var _p = $get($1.encstr, $1.i); - $put($1.bhs, $1.i, $1.bar * $get($a([ 1, 1, 2 ]), _p)); - $put($1.bbs, $1.i, $get($a([ 0, $1.bar, 0 ]), _p)); - } - $k[$j++] = Infinity; - var _10 = $1.bhs; - var _11 = $1.bbs; - $k[$j++] = Infinity; - for (var _13 = 0, _14 = $1.encstr.length * 2; _13 < _14; _13++) { - $k[$j++] = $1.spc; - } - var _16 = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "bhs"; - $k[$j++] = _10; - $k[$j++] = "bbs"; - $k[$j++] = _11; - $k[$j++] = "sbs"; - $k[$j++] = _16; - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - $k[$j++] = "textxalign"; - $k[$j++] = "center"; - $k[$j++] = "textyoffset"; - $k[$j++] = 4; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _19 = $d(); - $k[$j++] = _19; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#8828 + $1.options = $k[--$j]; //#8830 + $1.barcode = $k[--$j]; //#8831 + $1.dontdraw = false; //#8833 + $1.includetext = false; //#8834 + $1.height = 4; //#8835 + $forall($1.options, function() { //#8846 + var _3 = $k[--$j]; //#8846 + $1[$k[--$j]] = _3; //#8846 + }); //#8846 + $1.height = +$1.height; //#8848 + if (($1.barcode.length < 1) || ($1.barcode.length > 8)) { //#8853 + $k[$j++] = 'bwipp.pharmacode2BadLength'; //#8852 + $k[$j++] = "Two-track Pharmacode must be 1 to 6 digits"; //#8852 + $0.raiseerror(); //#8852 + } //#8852 + $forall($1.barcode, function() { //#8858 + var _9 = $k[--$j]; //#8855 + if ((_9 < 48) || (_9 > 57)) { //#8857 + $k[$j++] = 'bwipp.pharmacode2badCharacter'; //#8856 + $k[$j++] = "Two-track Pharmacode must contain only digits"; //#8856 + $0.raiseerror(); //#8856 + } //#8856 + }); //#8856 + var _B = ~~$z($1.barcode); //#8859 + if ((_B < 4) || (_B > 64570080)) { //#8861 + $k[$j++] = 'bwipp.pharmacode2badValue'; //#8860 + $k[$j++] = "Two-track Pharmacode value must be between 4 and 64570080"; //#8860 + $0.raiseerror(); //#8860 + } //#8860 + $1.txt = $a($1.barcode.length); //#8864 + for (var _G = 0, _F = $1.barcode.length - 1; _G <= _F; _G += 1) { //#8868 + $1.i = _G; //#8866 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), 0, 0, "", 0])); //#8867 + } //#8867 + $1.encstr = $s(16); //#8870 + $1.sbs = $a(32); //#8871 + $1.bar = (1 / 25.4) * $1.height; //#8872 + $1.spc = (1 / 25.4) * 72; //#8873 + $1.i = 15; //#8876 + $1.val = ~~$z($1.barcode); //#8877 + for (;;) { //#8884 + if ($1.val == 0) { //#8879 + break; //#8879 + } //#8879 + var _T = $1.val % 3; //#8880 + $1.val = ~~($f($1.val - $get($a([3, 1, 2]), _T)) / 3); //#8881 + $put($1.encstr, $1.i, $get($a([2, 0, 1]), _T)); //#8882 + $1.i = $1.i - 1; //#8883 + } //#8883 + $1.encstr = $geti($1.encstr, $1.i + 1, 15 - $1.i); //#8885 + $1.bhs = $a($1.encstr.length); //#8888 + $1.bbs = $a($1.encstr.length); //#8889 + for (var _m = 0, _l = $1.encstr.length - 1; _m <= _l; _m += 1) { //#8895 + $1.i = _m; //#8891 + var _p = $get($1.encstr, $1.i); //#8892 + $put($1.bhs, $1.i, $1.bar * $get($a([1, 1, 2]), _p)); //#8893 + $put($1.bbs, $1.i, $get($a([0, $1.bar, 0]), _p)); //#8894 + } //#8894 + $k[$j++] = Infinity; //#8906 + var _10 = $1.bhs; //#8900 + var _11 = $1.bbs; //#8901 + $k[$j++] = Infinity; //#8902 + for (var _13 = 0, _14 = $1.encstr.length * 2; _13 < _14; _13++) { //#8902 + $k[$j++] = $1.spc; //#8902 + } //#8902 + var _16 = $a(); //#8902 + $k[$j++] = 'ren'; //#8906 + $k[$j++] = $0.renlinear; //#8906 + $k[$j++] = 'bhs'; //#8906 + $k[$j++] = _10; //#8906 + $k[$j++] = 'bbs'; //#8906 + $k[$j++] = _11; //#8906 + $k[$j++] = 'sbs'; //#8906 + $k[$j++] = _16; //#8906 + $k[$j++] = 'txt'; //#8906 + $k[$j++] = $1.txt; //#8906 + $k[$j++] = 'textxalign'; //#8906 + $k[$j++] = "center"; //#8906 + $k[$j++] = 'textyoffset'; //#8906 + $k[$j++] = 4; //#8906 + $k[$j++] = 'opt'; //#8906 + $k[$j++] = $1.options; //#8906 + var _19 = $d(); //#8906 + $k[$j++] = _19; //#8909 + if (!$1.dontdraw) { //#8909 + $0.renlinear(); //#8909 + } //#8909 }; $0.code2of5 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includecheck = false; - $1.validatecheck = false; - $1.includetext = false; - $1.includecheckintext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = 1; - $1.version = "industrial"; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $forall($1.barcode, function() { - var _A = $k[--$j]; - if (_A < 48 || _A > 57) { - $k[$j++] = "bwipp.code2of5badCharacter"; - $k[$j++] = "Code 25 must contain only digits"; - $0.raiseerror(); - } - }); - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _D = $k[--$j]; - $k[$j++] = $f(_D - 1); - } - var _E = $k[--$j]; - $1[$k[--$j]] = _E; - $1.checksum = 0; - for (var _I = 0, _H = $f($1.barlen - 1); _I <= _H; _I += 1) { - $1.i = _I; - $k[$j++] = "checksum"; - $k[$j++] = $1.checksum; - $k[$j++] = $f($get($1.barcode, $1.i) - 48); - if ($f($1.barlen - $1.i) % 2 != 0) { - var _P = $k[--$j]; - $k[$j++] = _P * 3; - } - var _Q = $k[--$j]; - var _R = $k[--$j]; - $1[$k[--$j]] = $f(_R + _Q); - } - $1.checksum = (10 - $1.checksum % 10) % 10; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $1.checksum + 48) { - $k[$j++] = "bwipp.code2of5badCheckDigit"; - $k[$j++] = "Incorrect Code 25 check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - $1.includecheck = true; - } - var _h = new Map([ [ "industrial", $a([ "1111313111", "3111111131", "1131111131", "3131111111", "1111311131", "3111311111", "1131311111", "1111113131", "3111113111", "1131113111", "313111", "31113" ]) ], [ "iata", $a([ "1111313111", "3111111131", "1131111131", "3131111111", "1111311131", "3111311111", "1131311111", "1111113131", "3111113111", "1131113111", "1111", "311" ]) ], [ "matrix", $a([ "113311", "311131", "131131", "331111", "113131", "313111", "133111", "111331", "311311", "131311", "311111", "31111" ]) ], [ "coop", $a([ "331111", "111331", "113131", "113311", "131131", "131311", "133111", "311131", "311311", "313111", "3131", "133" ]) ], [ "datalogic", $a([ "113311", "311131", "131131", "331111", "113131", "313111", "133111", "111331", "311311", "131311", "1111", "311" ]) ] ]); - $1.versions = _h; - var _k = $get($1.versions, $1.version) !== undefined; - if (!_k) { - $k[$j++] = "bwipp.code2of5badVersion"; - $k[$j++] = "Unrecognised Code 25 version"; - $0.raiseerror(); - } - $1.encs = $get($1.versions, $1.version); - $1.cs = $get($1.encs, 0).length; - $k[$j++] = "cw"; - $k[$j++] = 0; - $forall($get($1.encs, 0), function() { - var _s = $k[--$j]; - var _t = $k[--$j]; - $k[$j++] = $f(_t + $f(_s - 48)); - }); - var _u = $k[--$j]; - $1[$k[--$j]] = _u; - $1.ss = $get($1.encs, 10).length; - $k[$j++] = "sw"; - $k[$j++] = 0; - $forall($get($1.encs, 10), function() { - var _10 = $k[--$j]; - var _11 = $k[--$j]; - $k[$j++] = $f(_11 + $f(_10 - 48)); - }); - var _12 = $k[--$j]; - $1[$k[--$j]] = _12; - $1.es = $get($1.encs, 11).length; - $1.barchars = "0123456789"; - $k[$j++] = "sbs"; - $k[$j++] = $1.barlen; - if ($1.includecheck) { - var _18 = $k[--$j]; - $k[$j++] = $f(_18 + 1); - } - var _1D = $s($f($f($k[--$j] * $1.cs + $1.ss) + $1.es)); - $1[$k[--$j]] = _1D; - $k[$j++] = "txt"; - $k[$j++] = $1.barlen; - if ($1.includecheck) { - var _1H = $k[--$j]; - $k[$j++] = $f(_1H + 1); - } - var _1J = $a($k[--$j]); - $1[$k[--$j]] = _1J; - $puti($1.sbs, 0, $get($1.encs, 10)); - for (var _1Q = 0, _1P = $f($1.barlen - 1); _1Q <= _1P; _1Q += 1) { - $1.i = _1Q; - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $1.i * $1.cs + $1.ss, $1.enc); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $f($1.i * $1.cw + $1.sw), $1.textyoffset, $1.textfont, $1.textsize ])); - } - if ($1.includecheck) { - $puti($1.sbs, $f($1.barlen * $1.cs + $1.ss), $get($1.encs, $1.checksum)); - $puti($1.sbs, $f($f($1.barlen * $1.cs + $1.cs) + $1.ss), $get($1.encs, 11)); - if ($1.includecheckintext) { - $put($1.txt, $1.barlen, $a([ $geti($1.barchars, $1.checksum, 1), $f($1.barlen * $1.cw + $1.sw), $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $1.barlen, $a([ " ", $f($1.barlen * $1.cw + $1.sw), $1.textyoffset, $1.textfont, $1.textsize ])); - } - } else { - $puti($1.sbs, $f($1.barlen * $1.cs + $1.ss), $get($1.encs, 11)); - } - $k[$j++] = Infinity; - $k[$j++] = Infinity; - $forall($1.sbs, function() { - var _2Y = $k[--$j]; - $k[$j++] = $f(_2Y - 48); - }); - var _2Z = $a(); - $k[$j++] = Infinity; - for (var _2b = 0, _2c = ~~(($1.sbs.length + 1) / 2); _2b < _2c; _2b++) { - $k[$j++] = $1.height; - } - var _2e = $a(); - $k[$j++] = Infinity; - for (var _2g = 0, _2h = ~~(($1.sbs.length + 1) / 2); _2g < _2h; _2g++) { - $k[$j++] = 0; - } - var _2i = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _2Z; - $k[$j++] = "bhs"; - $k[$j++] = _2e; - $k[$j++] = "bbs"; - $k[$j++] = _2i; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _2m = $d(); - $k[$j++] = _2m; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#8938 + $1.options = $k[--$j]; //#8940 + $1.barcode = $k[--$j]; //#8941 + $1.dontdraw = false; //#8943 + $1.includecheck = false; //#8944 + $1.validatecheck = false; //#8945 + $1.includetext = false; //#8946 + $1.includecheckintext = false; //#8947 + $1.textfont = "OCR-B"; //#8948 + $1.textsize = 10; //#8949 + $1.textyoffset = -8; //#8950 + $1.height = 1; //#8951 + $1.version = "industrial"; //#8952 + $forall($1.options, function() { //#8963 + var _3 = $k[--$j]; //#8963 + $1[$k[--$j]] = _3; //#8963 + }); //#8963 + $1.textfont = "" + $1.textfont; //#8965 + $1.textsize = +$1.textsize; //#8966 + $1.textyoffset = +$1.textyoffset; //#8967 + $1.height = +$1.height; //#8968 + $forall($1.barcode, function() { //#8975 + var _A = $k[--$j]; //#8972 + if ((_A < 48) || (_A > 57)) { //#8974 + $k[$j++] = 'bwipp.code2of5badCharacter'; //#8973 + $k[$j++] = "Code 25 must contain only digits"; //#8973 + $0.raiseerror(); //#8973 + } //#8973 + }); //#8973 + $k[$j++] = 'barlen'; //#8977 + $k[$j++] = $1.barcode.length; //#8977 + if ($1.validatecheck) { //#8977 + var _D = $k[--$j]; //#8977 + $k[$j++] = $f(_D - 1); //#8977 + } //#8977 + var _E = $k[--$j]; //#8977 + $1[$k[--$j]] = _E; //#8977 + $1.checksum = 0; //#8979 + for (var _I = 0, _H = $f($1.barlen - 1); _I <= _H; _I += 1) { //#8983 + $1.i = _I; //#8981 + $k[$j++] = 'checksum'; //#8982 + $k[$j++] = $1.checksum; //#8982 + $k[$j++] = $f($get($1.barcode, $1.i) - 48); //#8982 + if (($f($1.barlen - $1.i) % 2) != 0) { //#8982 + var _P = $k[--$j]; //#8982 + $k[$j++] = _P * 3; //#8982 + } //#8982 + var _Q = $k[--$j]; //#8982 + var _R = $k[--$j]; //#8982 + $1[$k[--$j]] = $f(_R + _Q); //#8982 + } //#8982 + $1.checksum = (10 - ($1.checksum % 10)) % 10; //#8984 + if ($1.validatecheck) { //#8991 + if ($get($1.barcode, $1.barlen) != ($1.checksum + 48)) { //#8988 + $k[$j++] = 'bwipp.code2of5badCheckDigit'; //#8987 + $k[$j++] = "Incorrect Code 25 check digit provided"; //#8987 + $0.raiseerror(); //#8987 + } //#8987 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#8989 + $1.includecheck = true; //#8990 + } //#8990 + var _h = new Map([ + ["industrial", $a(["1111313111", "3111111131", "1131111131", "3131111111", "1111311131", "3111311111", "1131311111", "1111113131", "3111113111", "1131113111", "313111", "31113"])], + ["iata", $a(["1111313111", "3111111131", "1131111131", "3131111111", "1111311131", "3111311111", "1131311111", "1111113131", "3111113111", "1131113111", "1111", "311"])], + ["matrix", $a(["113311", "311131", "131131", "331111", "113131", "313111", "133111", "111331", "311311", "131311", "311111", "31111"])], + ["coop", $a(["331111", "111331", "113131", "113311", "131131", "131311", "133111", "311131", "311311", "313111", "3131", "133"])], + ["datalogic", $a(["113311", "311131", "131131", "331111", "113131", "313111", "133111", "111331", "311311", "131311", "1111", "311"])] + ]); //#9015 + $1.versions = _h; //#9017 + var _k = $get($1.versions, $1.version) !== undefined; //#9018 + if (!_k) { //#9020 + $k[$j++] = 'bwipp.code2of5badVersion'; //#9019 + $k[$j++] = "Unrecognised Code 25 version"; //#9019 + $0.raiseerror(); //#9019 + } //#9019 + $1.encs = $get($1.versions, $1.version); //#9021 + $1.cs = $get($1.encs, 0).length; //#9023 + $k[$j++] = 'cw'; //#9024 + $k[$j++] = 0; //#9024 + $forall($get($1.encs, 0), function() { //#9024 + var _s = $k[--$j]; //#9024 + var _t = $k[--$j]; //#9024 + $k[$j++] = $f(_t + $f(_s - 48)); //#9024 + }); //#9024 + var _u = $k[--$j]; //#9024 + $1[$k[--$j]] = _u; //#9024 + $1.ss = $get($1.encs, 10).length; //#9025 + $k[$j++] = 'sw'; //#9026 + $k[$j++] = 0; //#9026 + $forall($get($1.encs, 10), function() { //#9026 + var _10 = $k[--$j]; //#9026 + var _11 = $k[--$j]; //#9026 + $k[$j++] = $f(_11 + $f(_10 - 48)); //#9026 + }); //#9026 + var _12 = $k[--$j]; //#9026 + $1[$k[--$j]] = _12; //#9026 + $1.es = $get($1.encs, 11).length; //#9027 + $1.barchars = "0123456789"; //#9030 + $k[$j++] = 'sbs'; //#9032 + $k[$j++] = $1.barlen; //#9032 + if ($1.includecheck) { //#9032 + var _18 = $k[--$j]; //#9032 + $k[$j++] = $f(_18 + 1); //#9032 + } //#9032 + var _1D = $s($f(($f(($k[--$j] * $1.cs) + $1.ss)) + $1.es)); //#9032 + $1[$k[--$j]] = _1D; //#9032 + $k[$j++] = 'txt'; //#9033 + $k[$j++] = $1.barlen; //#9033 + if ($1.includecheck) { //#9033 + var _1H = $k[--$j]; //#9033 + $k[$j++] = $f(_1H + 1); //#9033 + } //#9033 + var _1J = $a($k[--$j]); //#9033 + $1[$k[--$j]] = _1J; //#9033 + $puti($1.sbs, 0, $get($1.encs, 10)); //#9036 + for (var _1Q = 0, _1P = $f($1.barlen - 1); _1Q <= _1P; _1Q += 1) { //#9047 + $1.i = _1Q; //#9038 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#9040 + $j--; //#9041 + $1.indx = $k[--$j].length; //#9042 + $j -= 2; //#9043 + $1.enc = $get($1.encs, $1.indx); //#9044 + $puti($1.sbs, ($1.i * $1.cs) + $1.ss, $1.enc); //#9045 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $f(($1.i * $1.cw) + $1.sw), $1.textyoffset, $1.textfont, $1.textsize])); //#9046 + } //#9046 + if ($1.includecheck) { //#9059 + $puti($1.sbs, $f(($1.barlen * $1.cs) + $1.ss), $get($1.encs, $1.checksum)); //#9051 + $puti($1.sbs, $f(($f(($1.barlen * $1.cs) + $1.cs)) + $1.ss), $get($1.encs, 11)); //#9052 + if ($1.includecheckintext) { //#9056 + $put($1.txt, $1.barlen, $a([$geti($1.barchars, $1.checksum, 1), $f(($1.barlen * $1.cw) + $1.sw), $1.textyoffset, $1.textfont, $1.textsize])); //#9054 + } else { //#9056 + $put($1.txt, $1.barlen, $a([" ", $f(($1.barlen * $1.cw) + $1.sw), $1.textyoffset, $1.textfont, $1.textsize])); //#9056 + } //#9056 + } else { //#9059 + $puti($1.sbs, $f(($1.barlen * $1.cs) + $1.ss), $get($1.encs, 11)); //#9059 + } //#9059 + $k[$j++] = Infinity; //#9071 + $k[$j++] = Infinity; //#9065 + $forall($1.sbs, function() { //#9065 + var _2Y = $k[--$j]; //#9065 + $k[$j++] = $f(_2Y - 48); //#9065 + }); //#9065 + var _2Z = $a(); //#9065 + $k[$j++] = Infinity; //#9066 + for (var _2b = 0, _2c = ~~(($1.sbs.length + 1) / 2); _2b < _2c; _2b++) { //#9066 + $k[$j++] = $1.height; //#9066 + } //#9066 + var _2e = $a(); //#9066 + $k[$j++] = Infinity; //#9067 + for (var _2g = 0, _2h = ~~(($1.sbs.length + 1) / 2); _2g < _2h; _2g++) { //#9067 + $k[$j++] = 0; //#9067 + } //#9067 + var _2i = $a(); //#9067 + $k[$j++] = 'ren'; //#9070 + $k[$j++] = $0.renlinear; //#9070 + $k[$j++] = 'sbs'; //#9070 + $k[$j++] = _2Z; //#9070 + $k[$j++] = 'bhs'; //#9070 + $k[$j++] = _2e; //#9070 + $k[$j++] = 'bbs'; //#9070 + $k[$j++] = _2i; //#9070 + if ($1.includetext) { //#9070 + $k[$j++] = 'txt'; //#9069 + $k[$j++] = $1.txt; //#9069 + } //#9069 + $k[$j++] = 'opt'; //#9071 + $k[$j++] = $1.options; //#9071 + var _2m = $d(); //#9071 + $k[$j++] = _2m; //#9074 + if (!$1.dontdraw) { //#9074 + $0.renlinear(); //#9074 + } //#9074 }; $0.industrial2of5 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $put($1.options, "dontdraw", true); - $put($1.options, "version", "industrial"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.code2of5(); - var _E = $k[--$j]; - $1[$k[--$j]] = _E; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#9104 + $1.options = $k[--$j]; //#9106 + $1.barcode = $k[--$j]; //#9107 + $1.dontdraw = false; //#9109 + $1.includetext = false; //#9110 + $1.textfont = "OCR-B"; //#9111 + $1.textsize = 10; //#9112 + $1.textxoffset = 0; //#9113 + $1.textyoffset = -8; //#9114 + $1.height = 1; //#9115 + $forall($1.options, function() { //#9126 + var _3 = $k[--$j]; //#9126 + $1[$k[--$j]] = _3; //#9126 + }); //#9126 + $1.textfont = "" + $1.textfont; //#9128 + $1.textsize = +$1.textsize; //#9129 + $1.textxoffset = +$1.textxoffset; //#9130 + $1.textyoffset = +$1.textyoffset; //#9131 + $1.height = +$1.height; //#9132 + $put($1.options, "dontdraw", true); //#9135 + $put($1.options, "version", "industrial"); //#9136 + $k[$j++] = 'args'; //#9138 + $k[$j++] = $1.barcode; //#9138 + $k[$j++] = $1.options; //#9138 + $0.code2of5(); //#9138 + var _E = $k[--$j]; //#9138 + $1[$k[--$j]] = _E; //#9138 + $put($1.args, "opt", $1.options); //#9140 + $k[$j++] = $1.args; //#9143 + if (!$1.dontdraw) { //#9143 + $0.renlinear(); //#9143 + } //#9143 }; $0.iata2of5 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $put($1.options, "dontdraw", true); - $put($1.options, "version", "iata"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.code2of5(); - var _E = $k[--$j]; - $1[$k[--$j]] = _E; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#9173 + $1.options = $k[--$j]; //#9175 + $1.barcode = $k[--$j]; //#9176 + $1.dontdraw = false; //#9178 + $1.includetext = false; //#9179 + $1.textfont = "OCR-B"; //#9180 + $1.textsize = 10; //#9181 + $1.textxoffset = 0; //#9182 + $1.textyoffset = -8; //#9183 + $1.height = 1; //#9184 + $forall($1.options, function() { //#9195 + var _3 = $k[--$j]; //#9195 + $1[$k[--$j]] = _3; //#9195 + }); //#9195 + $1.textfont = "" + $1.textfont; //#9197 + $1.textsize = +$1.textsize; //#9198 + $1.textxoffset = +$1.textxoffset; //#9199 + $1.textyoffset = +$1.textyoffset; //#9200 + $1.height = +$1.height; //#9201 + $put($1.options, "dontdraw", true); //#9204 + $put($1.options, "version", "iata"); //#9205 + $k[$j++] = 'args'; //#9207 + $k[$j++] = $1.barcode; //#9207 + $k[$j++] = $1.options; //#9207 + $0.code2of5(); //#9207 + var _E = $k[--$j]; //#9207 + $1[$k[--$j]] = _E; //#9207 + $put($1.args, "opt", $1.options); //#9209 + $k[$j++] = $1.args; //#9212 + if (!$1.dontdraw) { //#9212 + $0.renlinear(); //#9212 + } //#9212 }; $0.matrix2of5 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $put($1.options, "dontdraw", true); - $put($1.options, "version", "matrix"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.code2of5(); - var _E = $k[--$j]; - $1[$k[--$j]] = _E; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#9242 + $1.options = $k[--$j]; //#9244 + $1.barcode = $k[--$j]; //#9245 + $1.dontdraw = false; //#9247 + $1.includetext = false; //#9248 + $1.textfont = "OCR-B"; //#9249 + $1.textsize = 10; //#9250 + $1.textxoffset = 0; //#9251 + $1.textyoffset = -8; //#9252 + $1.height = 1; //#9253 + $forall($1.options, function() { //#9264 + var _3 = $k[--$j]; //#9264 + $1[$k[--$j]] = _3; //#9264 + }); //#9264 + $1.textfont = "" + $1.textfont; //#9266 + $1.textsize = +$1.textsize; //#9267 + $1.textxoffset = +$1.textxoffset; //#9268 + $1.textyoffset = +$1.textyoffset; //#9269 + $1.height = +$1.height; //#9270 + $put($1.options, "dontdraw", true); //#9273 + $put($1.options, "version", "matrix"); //#9274 + $k[$j++] = 'args'; //#9276 + $k[$j++] = $1.barcode; //#9276 + $k[$j++] = $1.options; //#9276 + $0.code2of5(); //#9276 + var _E = $k[--$j]; //#9276 + $1[$k[--$j]] = _E; //#9276 + $put($1.args, "opt", $1.options); //#9278 + $k[$j++] = $1.args; //#9281 + if (!$1.dontdraw) { //#9281 + $0.renlinear(); //#9281 + } //#9281 }; $0.coop2of5 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $put($1.options, "dontdraw", true); - $put($1.options, "version", "coop"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.code2of5(); - var _E = $k[--$j]; - $1[$k[--$j]] = _E; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#9311 + $1.options = $k[--$j]; //#9313 + $1.barcode = $k[--$j]; //#9314 + $1.dontdraw = false; //#9316 + $1.includetext = false; //#9317 + $1.textfont = "OCR-B"; //#9318 + $1.textsize = 10; //#9319 + $1.textxoffset = 0; //#9320 + $1.textyoffset = -8; //#9321 + $1.height = 1; //#9322 + $forall($1.options, function() { //#9333 + var _3 = $k[--$j]; //#9333 + $1[$k[--$j]] = _3; //#9333 + }); //#9333 + $1.textfont = "" + $1.textfont; //#9335 + $1.textsize = +$1.textsize; //#9336 + $1.textxoffset = +$1.textxoffset; //#9337 + $1.textyoffset = +$1.textyoffset; //#9338 + $1.height = +$1.height; //#9339 + $put($1.options, "dontdraw", true); //#9342 + $put($1.options, "version", "coop"); //#9343 + $k[$j++] = 'args'; //#9345 + $k[$j++] = $1.barcode; //#9345 + $k[$j++] = $1.options; //#9345 + $0.code2of5(); //#9345 + var _E = $k[--$j]; //#9345 + $1[$k[--$j]] = _E; //#9345 + $put($1.args, "opt", $1.options); //#9347 + $k[$j++] = $1.args; //#9350 + if (!$1.dontdraw) { //#9350 + $0.renlinear(); //#9350 + } //#9350 }; $0.datalogic2of5 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $put($1.options, "dontdraw", true); - $put($1.options, "version", "datalogic"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.code2of5(); - var _E = $k[--$j]; - $1[$k[--$j]] = _E; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#9380 + $1.options = $k[--$j]; //#9382 + $1.barcode = $k[--$j]; //#9383 + $1.dontdraw = false; //#9385 + $1.includetext = false; //#9386 + $1.textfont = "OCR-B"; //#9387 + $1.textsize = 10; //#9388 + $1.textxoffset = 0; //#9389 + $1.textyoffset = -8; //#9390 + $1.height = 1; //#9391 + $forall($1.options, function() { //#9402 + var _3 = $k[--$j]; //#9402 + $1[$k[--$j]] = _3; //#9402 + }); //#9402 + $1.textfont = "" + $1.textfont; //#9404 + $1.textsize = +$1.textsize; //#9405 + $1.textxoffset = +$1.textxoffset; //#9406 + $1.textyoffset = +$1.textyoffset; //#9407 + $1.height = +$1.height; //#9408 + $put($1.options, "dontdraw", true); //#9411 + $put($1.options, "version", "datalogic"); //#9412 + $k[$j++] = 'args'; //#9414 + $k[$j++] = $1.barcode; //#9414 + $k[$j++] = $1.options; //#9414 + $0.code2of5(); //#9414 + var _E = $k[--$j]; //#9414 + $1[$k[--$j]] = _E; //#9414 + $put($1.args, "opt", $1.options); //#9416 + $k[$j++] = $1.args; //#9419 + if (!$1.dontdraw) { //#9419 + $0.renlinear(); //#9419 + } //#9419 }; $0.code11 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includecheck = false; - $1.validatecheck = false; - $1.includetext = false; - $1.includecheckintext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.encs = $a([ "111131", "311131", "131131", "331111", "113131", "313111", "133111", "111331", "311311", "311111", "113111", "113311" ]); - $1.barchars = "0123456789-"; - $1.charvals = new Map(); - for (var _A = 0; _A <= 10; _A += 1) { - $put($1.charvals, $geti($1.barchars, _A, 1), _A); - } - for (var _G = 0, _F = $1.barcode.length - 1; _G <= _F; _G += 1) { - var _K = $get($1.charvals, $geti($1.barcode, _G, 1)) !== undefined; - if (!_K) { - $k[$j++] = "bwipp.code11badCharacter"; - $k[$j++] = "Code 11 must contain only digits and dashes"; - $0.raiseerror(); - } - } - $1.barlen = $1.barcode.length; - if ($1.validatecheck) { - if ($1.barlen == 11) { - $k[$j++] = "bwipp.code11badLength"; - $k[$j++] = "Code 11 cannot be 11 characters using check digits"; - $0.raiseerror(); - } - var _Q = $1.barlen <= 10 ? 1 : 2; - $1.barlen = $1.barlen - _Q; - } - $k[$j++] = "numchecks"; - if ($1.includecheck || $1.validatecheck) { - var _U = $1.barlen >= 10 ? 2 : 1; - $k[$j++] = _U; - } else { - $k[$j++] = 0; - } - var _V = $k[--$j]; - $1[$k[--$j]] = _V; - $1.checksum1 = 0; - $1.checksum2 = 0; - for (var _Z = 0, _Y = $1.barlen - 1; _Z <= _Y; _Z += 1) { - $1.i = _Z; - $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); - $1.checksum1 = $f($1.checksum1 + (($1.barlen - $1.i - 1) % 10 + 1) * $1.indx); - $1.checksum2 = $f($1.checksum2 + (($1.barlen - $1.i) % 9 + 1) * $1.indx); - } - $1.checksum1 = $1.checksum1 % 11; - $1.checksum2 = $f($1.checksum2 + $1.checksum1) % 11; - if ($1.validatecheck) { - if ($1.numchecks == 1) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum1)) { - $k[$j++] = "bwipp.code11badCheckDigit"; - $k[$j++] = "Incorrect Code 11 check digit provided"; - $0.raiseerror(); - } - } else { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum1) || $get($1.barcode, $1.barlen + 1) != $get($1.barchars, $1.checksum2)) { - $k[$j++] = "bwipp.code11badCheckDigits"; - $k[$j++] = "Incorrect Code 11 check digits provided"; - $0.raiseerror(); - } - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - $1.includecheck = true; - } - $1.sbs = $s($f($f($1.barlen + $1.numchecks) * 6 + 12)); - $1.txt = $a($f($1.barlen + $1.numchecks)); - $puti($1.sbs, 0, $get($1.encs, 11)); - $1.xpos = 8; - for (var _1O = 0, _1N = $1.barlen - 1; _1O <= _1N; _1O += 1) { - $1.i = _1O; - $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $1.i * 6 + 6, $1.enc); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize ])); - for (var _1k = 0; _1k <= 5; _1k += 1) { - $1.xpos = $f($f($get($1.enc, _1k) - 48) + $1.xpos); - } - } - if ($1.includecheck) { - if ($1.barlen >= 10) { - $puti($1.sbs, $1.barlen * 6 + 6, $get($1.encs, $1.checksum1)); - $puti($1.sbs, $1.barlen * 6 + 12, $get($1.encs, $1.checksum2)); - if ($1.includecheckintext) { - $put($1.txt, $1.barlen, $a([ $geti($1.barchars, $1.checksum1, 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize ])); - $1.enc = $get($1.encs, $1.checksum1); - for (var _2E = 0; _2E <= 5; _2E += 1) { - $1.xpos = $f($f($get($1.enc, _2E) - 48) + $1.xpos); - } - $put($1.txt, $1.barlen + 1, $a([ $geti($1.barchars, $1.checksum2, 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $1.barlen, $a([ "", $1.xpos, $1.textyoffset, $1.textfont, $1.textsize ])); - $put($1.txt, $1.barlen + 1, $a([ "", $1.xpos, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $puti($1.sbs, $1.barlen * 6 + 18, $get($1.encs, 11)); - } else { - $puti($1.sbs, $1.barlen * 6 + 6, $get($1.encs, $1.checksum1)); - if ($1.includecheckintext) { - $put($1.txt, $1.barlen, $a([ $geti($1.barchars, $1.checksum1, 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $1.barlen, $a([ "", $1.xpos, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $puti($1.sbs, $1.barlen * 6 + 12, $get($1.encs, 11)); - } - } else { - $puti($1.sbs, $1.barlen * 6 + 6, $get($1.encs, 11)); - } - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _3F = $1.sbs; - for (var _3G = 0, _3H = _3F.length; _3G < _3H; _3G++) { - $k[$j++] = $get(_3F, _3G) - 48; - } - var _3J = $a(); - $k[$j++] = Infinity; - for (var _3L = 0, _3M = ~~(($1.sbs.length + 1) / 2); _3L < _3M; _3L++) { - $k[$j++] = $1.height; - } - var _3O = $a(); - $k[$j++] = Infinity; - for (var _3Q = 0, _3R = ~~(($1.sbs.length + 1) / 2); _3Q < _3R; _3Q++) { - $k[$j++] = 0; - } - var _3S = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _3J; - $k[$j++] = "bhs"; - $k[$j++] = _3O; - $k[$j++] = "bbs"; - $k[$j++] = _3S; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _3W = $d(); - $k[$j++] = _3W; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#9448 + $1.options = $k[--$j]; //#9450 + $1.barcode = $k[--$j]; //#9451 + $1.dontdraw = false; //#9453 + $1.includecheck = false; //#9454 + $1.validatecheck = false; //#9455 + $1.includetext = false; //#9456 + $1.includecheckintext = false; //#9457 + $1.textfont = "OCR-B"; //#9458 + $1.textsize = 10; //#9459 + $1.textyoffset = -8; //#9460 + $1.height = 1; //#9461 + $forall($1.options, function() { //#9472 + var _3 = $k[--$j]; //#9472 + $1[$k[--$j]] = _3; //#9472 + }); //#9472 + $1.textfont = "" + $1.textfont; //#9474 + $1.textsize = +$1.textsize; //#9475 + $1.textyoffset = +$1.textyoffset; //#9476 + $1.height = +$1.height; //#9477 + $1.encs = $a(["111131", "311131", "131131", "331111", "113131", "313111", "133111", "111331", "311311", "311111", "113111", "113311"]); //#9484 + $1.barchars = "0123456789-"; //#9487 + $1.charvals = new Map; //#9488 + for (var _A = 0; _A <= 10; _A += 1) { //#9489 + $put($1.charvals, $geti($1.barchars, _A, 1), _A); //#9489 + } //#9489 + for (var _G = 0, _F = $1.barcode.length - 1; _G <= _F; _G += 1) { //#9496 + var _K = $get($1.charvals, $geti($1.barcode, _G, 1)) !== undefined; //#9493 + if (!_K) { //#9495 + $k[$j++] = 'bwipp.code11badCharacter'; //#9494 + $k[$j++] = "Code 11 must contain only digits and dashes"; //#9494 + $0.raiseerror(); //#9494 + } //#9494 + } //#9494 + $1.barlen = $1.barcode.length; //#9498 + if ($1.validatecheck) { //#9504 + if ($1.barlen == 11) { //#9502 + $k[$j++] = 'bwipp.code11badLength'; //#9501 + $k[$j++] = "Code 11 cannot be 11 characters using check digits"; //#9501 + $0.raiseerror(); //#9501 + } //#9501 + var _Q = ($1.barlen <= 10) ? 1 : 2; //#9503 + $1.barlen = $1.barlen - _Q; //#9503 + } //#9503 + $k[$j++] = 'numchecks'; //#9506 + if ($1.includecheck || $1.validatecheck) { //#9506 + var _U = ($1.barlen >= 10) ? 2 : 1; //#9506 + $k[$j++] = _U; //#9506 + } else { //#9506 + $k[$j++] = 0; //#9506 + } //#9506 + var _V = $k[--$j]; //#9506 + $1[$k[--$j]] = _V; //#9506 + $1.checksum1 = 0; //#9507 + $1.checksum2 = 0; //#9507 + for (var _Z = 0, _Y = $1.barlen - 1; _Z <= _Y; _Z += 1) { //#9513 + $1.i = _Z; //#9509 + $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); //#9510 + $1.checksum1 = $f($1.checksum1 + ((((($1.barlen - $1.i) - 1) % 10) + 1) * $1.indx)); //#9511 + $1.checksum2 = $f($1.checksum2 + (((($1.barlen - $1.i) % 9) + 1) * $1.indx)); //#9512 + } //#9512 + $1.checksum1 = $1.checksum1 % 11; //#9514 + $1.checksum2 = $f($1.checksum2 + $1.checksum1) % 11; //#9515 + if ($1.validatecheck) { //#9529 + if ($1.numchecks == 1) { //#9524 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum1)) { //#9520 + $k[$j++] = 'bwipp.code11badCheckDigit'; //#9519 + $k[$j++] = "Incorrect Code 11 check digit provided"; //#9519 + $0.raiseerror(); //#9519 + } //#9519 + } else { //#9524 + if (($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum1)) || ($get($1.barcode, $1.barlen + 1) != $get($1.barchars, $1.checksum2))) { //#9525 + $k[$j++] = 'bwipp.code11badCheckDigits'; //#9524 + $k[$j++] = "Incorrect Code 11 check digits provided"; //#9524 + $0.raiseerror(); //#9524 + } //#9524 + } //#9524 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#9527 + $1.includecheck = true; //#9528 + } //#9528 + $1.sbs = $s($f(($f($1.barlen + $1.numchecks) * 6) + 12)); //#9531 + $1.txt = $a($f($1.barlen + $1.numchecks)); //#9532 + $puti($1.sbs, 0, $get($1.encs, 11)); //#9535 + $1.xpos = 8; //#9537 + for (var _1O = 0, _1N = $1.barlen - 1; _1O <= _1N; _1O += 1) { //#9547 + $1.i = _1O; //#9539 + $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); //#9540 + $1.enc = $get($1.encs, $1.indx); //#9541 + $puti($1.sbs, ($1.i * 6) + 6, $1.enc); //#9542 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9543 + for (var _1k = 0; _1k <= 5; _1k += 1) { //#9546 + $1.xpos = $f($f($get($1.enc, _1k) - 48) + $1.xpos); //#9545 + } //#9545 + } //#9545 + if ($1.includecheck) { //#9576 + if ($1.barlen >= 10) { //#9573 + $puti($1.sbs, ($1.barlen * 6) + 6, $get($1.encs, $1.checksum1)); //#9552 + $puti($1.sbs, ($1.barlen * 6) + 12, $get($1.encs, $1.checksum2)); //#9553 + if ($1.includecheckintext) { //#9563 + $put($1.txt, $1.barlen, $a([$geti($1.barchars, $1.checksum1, 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9555 + $1.enc = $get($1.encs, $1.checksum1); //#9556 + for (var _2E = 0; _2E <= 5; _2E += 1) { //#9559 + $1.xpos = $f($f($get($1.enc, _2E) - 48) + $1.xpos); //#9558 + } //#9558 + $put($1.txt, $1.barlen + 1, $a([$geti($1.barchars, $1.checksum2, 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9560 + } else { //#9563 + $put($1.txt, $1.barlen, $a(["", $1.xpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9562 + $put($1.txt, $1.barlen + 1, $a(["", $1.xpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9563 + } //#9563 + $puti($1.sbs, ($1.barlen * 6) + 18, $get($1.encs, 11)); //#9565 + } else { //#9573 + $puti($1.sbs, ($1.barlen * 6) + 6, $get($1.encs, $1.checksum1)); //#9567 + if ($1.includecheckintext) { //#9571 + $put($1.txt, $1.barlen, $a([$geti($1.barchars, $1.checksum1, 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9569 + } else { //#9571 + $put($1.txt, $1.barlen, $a(["", $1.xpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9571 + } //#9571 + $puti($1.sbs, ($1.barlen * 6) + 12, $get($1.encs, 11)); //#9573 + } //#9573 + } else { //#9576 + $puti($1.sbs, ($1.barlen * 6) + 6, $get($1.encs, 11)); //#9576 + } //#9576 + $k[$j++] = Infinity; //#9588 + $k[$j++] = Infinity; //#9582 + var _3F = $1.sbs; //#9582 + for (var _3G = 0, _3H = _3F.length; _3G < _3H; _3G++) { //#9582 + $k[$j++] = $get(_3F, _3G) - 48; //#9582 + } //#9582 + var _3J = $a(); //#9582 + $k[$j++] = Infinity; //#9583 + for (var _3L = 0, _3M = ~~(($1.sbs.length + 1) / 2); _3L < _3M; _3L++) { //#9583 + $k[$j++] = $1.height; //#9583 + } //#9583 + var _3O = $a(); //#9583 + $k[$j++] = Infinity; //#9584 + for (var _3Q = 0, _3R = ~~(($1.sbs.length + 1) / 2); _3Q < _3R; _3Q++) { //#9584 + $k[$j++] = 0; //#9584 + } //#9584 + var _3S = $a(); //#9584 + $k[$j++] = 'ren'; //#9587 + $k[$j++] = $0.renlinear; //#9587 + $k[$j++] = 'sbs'; //#9587 + $k[$j++] = _3J; //#9587 + $k[$j++] = 'bhs'; //#9587 + $k[$j++] = _3O; //#9587 + $k[$j++] = 'bbs'; //#9587 + $k[$j++] = _3S; //#9587 + if ($1.includetext) { //#9587 + $k[$j++] = 'txt'; //#9586 + $k[$j++] = $1.txt; //#9586 + } //#9586 + $k[$j++] = 'opt'; //#9588 + $k[$j++] = $1.options; //#9588 + var _3W = $d(); //#9588 + $k[$j++] = _3W; //#9591 + if (!$1.dontdraw) { //#9591 + $0.renlinear(); //#9591 + } //#9591 }; $0.bc412 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includecheck = false; - $1.validatecheck = false; - $1.includetext = false; - $1.includecheckintext = false; - $1.includestartstop = false; - $1.semi = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - if ($1.semi) { - $1.includecheck = true; - $1.includestartstop = true; - } - $1.barchars = "0R9GLVHA8EZ4NTS1J2Q6C7DYKBUIX3FWP5M"; - $1.charvals = new Map(); - for (var _A = 0; _A <= 34; _A += 1) { - $put($1.charvals, $geti($1.barchars, _A, 1), _A); - } - for (var _G = 0, _F = $1.barcode.length - 1; _G <= _F; _G += 1) { - var _K = $get($1.charvals, $geti($1.barcode, _G, 1)) !== undefined; - if (!_K) { - $k[$j++] = "bwipp.bc412badCharacter"; - $k[$j++] = "BC412 must contain only digits and capital letters except O"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _N = $k[--$j]; - $k[$j++] = $f(_N - 1); - } - var _O = $k[--$j]; - $1[$k[--$j]] = _O; - $1.checksum = 0; - for (var _S = 0, _R = $f($1.barlen - 1); _S <= _R; _S += 1) { - $1.checksum = $f($get($1.charvals, $geti($1.barcode, _S, 1)) + $1.checksum); - } - $1.checksum = $1.checksum % 35; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.bc412badCheckDigit"; - $k[$j++] = "Incorrect BC412 check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - $1.includecheck = true; - } - $1.encs = $a([ "11111115", "13111212", "11131113", "12111213", "12121311", "13131111", "12111312", "11131212", "11121411", "11151111", "15111111", "11111511", "12131211", "13121112", "13111212", "11111214", "12121113", "11111313", "13111113", "11121213", "11141112", "11121312", "11141211", "14121111", "12121212", "11131311", "13121211", "12111411", "14111211", "11111412", "12111114", "14111112", "12141111", "11121114", "12131112", "12", "111" ]); - $1.sbs = $s($f($f($1.barlen + 1) * 8 + 5)); - if ($1.includecheck) { - $1.txt = $a($f($1.barlen + 1)); - } else { - $1.txt = $a($1.barlen); - } - if ($1.includestartstop) { - $puti($1.sbs, 0, $get($1.encs, 35)); - $1.pos = 2; - $1.txtpos = 3; - } else { - $1.pos = 0; - $1.txtpos = 0; - } - for (var _x = 0, _w = $f($1.barlen - 1); _x <= _w; _x += 1) { - $1.i = _x; - $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); - $puti($1.sbs, $1.pos, $get($1.encs, $1.indx)); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $1.i * 12 + $1.txtpos, $1.textyoffset, $1.textfont, $1.textsize ])); - $1.pos = $1.pos + 8; - } - if ($1.includecheck) { - $puti($1.sbs, $1.pos, $get($1.encs, $1.checksum)); - if ($1.includecheckintext) { - $put($1.txt, $1.barlen, $a([ $geti($1.barchars, $1.checksum, 1), $f($1.barlen * 12 + $1.txtpos), $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $1.barlen, $a([ "", $f($1.barlen * 12 + $1.txtpos), $1.textyoffset, $1.textfont, $1.textsize ])); - } - $1.pos = $1.pos + 8; - } - if ($1.includestartstop) { - $puti($1.sbs, $1.pos, $get($1.encs, 36)); - $1.pos = $1.pos + 2; - } - $1.sbs = $geti($1.sbs, 0, $1.pos); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _1u = $1.sbs; - for (var _1v = 0, _1w = _1u.length; _1v < _1w; _1v++) { - $k[$j++] = $f($get(_1u, _1v) - 48); - } - var _1y = $a(); - $k[$j++] = Infinity; - for (var _20 = 0, _21 = ~~(($1.sbs.length + 1) / 2); _20 < _21; _20++) { - $k[$j++] = $1.height; - } - var _23 = $a(); - $k[$j++] = Infinity; - for (var _25 = 0, _26 = ~~(($1.sbs.length + 1) / 2); _25 < _26; _25++) { - $k[$j++] = 0; - } - var _27 = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _1y; - $k[$j++] = "bhs"; - $k[$j++] = _23; - $k[$j++] = "bbs"; - $k[$j++] = _27; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _2B = $d(); - $k[$j++] = _2B; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#9620 + $1.options = $k[--$j]; //#9622 + $1.barcode = $k[--$j]; //#9623 + $1.dontdraw = false; //#9625 + $1.includecheck = false; //#9626 + $1.validatecheck = false; //#9627 + $1.includetext = false; //#9628 + $1.includecheckintext = false; //#9629 + $1.includestartstop = false; //#9630 + $1.semi = false; //#9631 + $1.textfont = "OCR-B"; //#9632 + $1.textsize = 10; //#9633 + $1.textyoffset = -8; //#9634 + $1.height = 1; //#9635 + $forall($1.options, function() { //#9646 + var _3 = $k[--$j]; //#9646 + $1[$k[--$j]] = _3; //#9646 + }); //#9646 + $1.textfont = "" + $1.textfont; //#9648 + $1.textsize = +$1.textsize; //#9649 + $1.textyoffset = +$1.textyoffset; //#9650 + $1.height = +$1.height; //#9651 + if ($1.semi) { //#9656 + $1.includecheck = true; //#9654 + $1.includestartstop = true; //#9655 + } //#9655 + $1.barchars = "0R9GLVHA8EZ4NTS1J2Q6C7DYKBUIX3FWP5M"; //#9659 + $1.charvals = new Map; //#9660 + for (var _A = 0; _A <= 34; _A += 1) { //#9661 + $put($1.charvals, $geti($1.barchars, _A, 1), _A); //#9661 + } //#9661 + for (var _G = 0, _F = $1.barcode.length - 1; _G <= _F; _G += 1) { //#9668 + var _K = $get($1.charvals, $geti($1.barcode, _G, 1)) !== undefined; //#9665 + if (!_K) { //#9667 + $k[$j++] = 'bwipp.bc412badCharacter'; //#9666 + $k[$j++] = "BC412 must contain only digits and capital letters except O"; //#9666 + $0.raiseerror(); //#9666 + } //#9666 + } //#9666 + $k[$j++] = 'barlen'; //#9670 + $k[$j++] = $1.barcode.length; //#9670 + if ($1.validatecheck) { //#9670 + var _N = $k[--$j]; //#9670 + $k[$j++] = $f(_N - 1); //#9670 + } //#9670 + var _O = $k[--$j]; //#9670 + $1[$k[--$j]] = _O; //#9670 + $1.checksum = 0; //#9672 + for (var _S = 0, _R = $f($1.barlen - 1); _S <= _R; _S += 1) { //#9676 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, _S, 1)) + $1.checksum); //#9675 + } //#9675 + $1.checksum = $1.checksum % 35; //#9677 + if ($1.validatecheck) { //#9684 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#9681 + $k[$j++] = 'bwipp.bc412badCheckDigit'; //#9680 + $k[$j++] = "Incorrect BC412 check digit provided"; //#9680 + $0.raiseerror(); //#9680 + } //#9680 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#9682 + $1.includecheck = true; //#9683 + } //#9683 + $1.encs = $a(["11111115", "13111212", "11131113", "12111213", "12121311", "13131111", "12111312", "11131212", "11121411", "11151111", "15111111", "11111511", "12131211", "13121112", "13111212", "11111214", "12121113", "11111313", "13111113", "11121213", "11141112", "11121312", "11141211", "14121111", "12121212", "11131311", "13121211", "12111411", "14111211", "11111412", "12111114", "14111112", "12141111", "11121114", "12131112", "12", "111"]); //#9696 + $1.sbs = $s($f(($f($1.barlen + 1) * 8) + 5)); //#9698 + if ($1.includecheck) { //#9702 + $1.txt = $a($f($1.barlen + 1)); //#9700 + } else { //#9702 + $1.txt = $a($1.barlen); //#9702 + } //#9702 + if ($1.includestartstop) { //#9712 + $puti($1.sbs, 0, $get($1.encs, 35)); //#9707 + $1.pos = 2; //#9708 + $1.txtpos = 3; //#9709 + } else { //#9712 + $1.pos = 0; //#9711 + $1.txtpos = 0; //#9712 + } //#9712 + for (var _x = 0, _w = $f($1.barlen - 1); _x <= _w; _x += 1) { //#9721 + $1.i = _x; //#9716 + $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); //#9717 + $puti($1.sbs, $1.pos, $get($1.encs, $1.indx)); //#9718 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), ($1.i * 12) + $1.txtpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9719 + $1.pos = $1.pos + 8; //#9720 + } //#9720 + if ($1.includecheck) { //#9732 + $puti($1.sbs, $1.pos, $get($1.encs, $1.checksum)); //#9725 + if ($1.includecheckintext) { //#9729 + $put($1.txt, $1.barlen, $a([$geti($1.barchars, $1.checksum, 1), $f(($1.barlen * 12) + $1.txtpos), $1.textyoffset, $1.textfont, $1.textsize])); //#9727 + } else { //#9729 + $put($1.txt, $1.barlen, $a(["", $f(($1.barlen * 12) + $1.txtpos), $1.textyoffset, $1.textfont, $1.textsize])); //#9729 + } //#9729 + $1.pos = $1.pos + 8; //#9731 + } //#9731 + if ($1.includestartstop) { //#9738 + $puti($1.sbs, $1.pos, $get($1.encs, 36)); //#9736 + $1.pos = $1.pos + 2; //#9737 + } //#9737 + $1.sbs = $geti($1.sbs, 0, $1.pos); //#9741 + $k[$j++] = Infinity; //#9750 + $k[$j++] = Infinity; //#9744 + var _1u = $1.sbs; //#9744 + for (var _1v = 0, _1w = _1u.length; _1v < _1w; _1v++) { //#9744 + $k[$j++] = $f($get(_1u, _1v) - 48); //#9744 + } //#9744 + var _1y = $a(); //#9744 + $k[$j++] = Infinity; //#9745 + for (var _20 = 0, _21 = ~~(($1.sbs.length + 1) / 2); _20 < _21; _20++) { //#9745 + $k[$j++] = $1.height; //#9745 + } //#9745 + var _23 = $a(); //#9745 + $k[$j++] = Infinity; //#9746 + for (var _25 = 0, _26 = ~~(($1.sbs.length + 1) / 2); _25 < _26; _25++) { //#9746 + $k[$j++] = 0; //#9746 + } //#9746 + var _27 = $a(); //#9746 + $k[$j++] = 'ren'; //#9749 + $k[$j++] = $0.renlinear; //#9749 + $k[$j++] = 'sbs'; //#9749 + $k[$j++] = _1y; //#9749 + $k[$j++] = 'bhs'; //#9749 + $k[$j++] = _23; //#9749 + $k[$j++] = 'bbs'; //#9749 + $k[$j++] = _27; //#9749 + if ($1.includetext) { //#9749 + $k[$j++] = 'txt'; //#9748 + $k[$j++] = $1.txt; //#9748 + } //#9748 + $k[$j++] = 'opt'; //#9750 + $k[$j++] = $1.options; //#9750 + var _2B = $d(); //#9750 + $k[$j++] = _2B; //#9753 + if (!$1.dontdraw) { //#9753 + $0.renlinear(); //#9753 + } //#9753 }; $0.rationalizedCodabar = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.altstartstop = false; - $1.includecheck = false; - $1.validatecheck = false; - $1.includetext = false; - $1.includecheckintext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.encs = $a([ "11111331", "11113311", "11131131", "33111111", "11311311", "31111311", "13111131", "13113111", "13311111", "31131111", "11133111", "11331111", "31113131", "31311131", "31313111", "11313131", "11331311", "13131131", "11131331", "11133311" ]); - if ($1.altstartstop) { - $1.barchars = "0123456789-$:/.+TN*E"; - } else { - $1.barchars = "0123456789-$:/.+ABCD"; - } - $1.charvals = new Map(); - for (var _B = 0; _B <= 19; _B += 1) { - $put($1.charvals, $geti($1.barchars, _B, 1), _B); - } - $1.bodyvals = new Map(); - for (var _F = 0; _F <= 15; _F += 1) { - $put($1.bodyvals, $geti($1.barchars, _F, 1), _F); - } - $1.ssvals = new Map(); - for (var _J = 16; _J <= 19; _J += 1) { - $put($1.ssvals, $geti($1.barchars, _J, 1), _J); - } - var _Q = $get($1.ssvals, $geti($1.barcode, 0, 1)) !== undefined; - var _V = $get($1.ssvals, $geti($1.barcode, $1.barcode.length - 1, 1)) !== undefined; - if (!_Q || !_V) { - if ($1.altstartstop) { - $k[$j++] = "bwipp.rationalizedCodabarBadAltStartStop"; - $k[$j++] = "Codabar start and stop characters must be one of E N T or *"; - $0.raiseerror(); - } else { - $k[$j++] = "bwipp.rationalizedCodabarBadStartStop"; - $k[$j++] = "Codabar start and stop characters must be one of A B C or D"; - $0.raiseerror(); - } - } - for (var _Z = 1, _Y = $1.barcode.length - 2; _Z <= _Y; _Z += 1) { - var _d = $get($1.bodyvals, $geti($1.barcode, _Z, 1)) !== undefined; - if (!_d) { - $k[$j++] = "bwipp.rationalizedCodabarBadCharacter"; - $k[$j++] = "Codabar body must contain only digits and symbols - $ : / . +"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _g = $k[--$j]; - $k[$j++] = $f(_g - 1); - } - var _h = $k[--$j]; - $1[$k[--$j]] = _h; - $1.checksum = 0; - for (var _l = 0, _k = $f($1.barlen - 2); _l <= _k; _l += 1) { - $1.checksum = $f($get($1.charvals, $geti($1.barcode, _l, 1)) + $1.checksum); - } - $1.checksum = $f($get($1.charvals, $geti($1.barcode, $1.barcode.length - 1, 1)) + $1.checksum); - $1.checksum = $f(16 - $1.checksum % 16) % 16; - if ($1.validatecheck) { - if ($get($1.barcode, $f($1.barlen - 1)) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.rationalizedCodabarBadCheckDigit"; - $k[$j++] = "Incorrect Codabar check digit provided"; - $0.raiseerror(); - } - var _16 = $s($1.barlen); - $puti(_16, 0, $geti($1.barcode, 0, $f($1.barlen - 1))); - $puti(_16, $f($1.barlen - 1), $geti($1.barcode, $1.barlen, 1)); - $1.barcode = _16; - $1.includecheck = true; - } - $k[$j++] = "sbs"; - $k[$j++] = $1.barlen; - if ($1.includecheck) { - var _1G = $k[--$j]; - $k[$j++] = $f(_1G + 1); - } - var _1I = $s($k[--$j] * 8); - $1[$k[--$j]] = _1I; - $k[$j++] = "txt"; - $k[$j++] = $1.barlen; - if ($1.includecheck) { - var _1M = $k[--$j]; - $k[$j++] = $f(_1M + 1); - } - var _1O = $a($k[--$j]); - $1[$k[--$j]] = _1O; - $1.xpos = 0; - for (var _1S = 0, _1R = $f($1.barlen - 2); _1S <= _1R; _1S += 1) { - $1.i = _1S; - $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $1.i * 8, $1.enc); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize ])); - for (var _1o = 0; _1o <= 7; _1o += 1) { - $1.xpos = $f($f($get($1.enc, _1o) - 48) + $1.xpos); - } - } - if ($1.includecheck) { - $puti($1.sbs, $f($1.barlen * 8 - 8), $get($1.encs, $1.checksum)); - if ($1.includecheckintext) { - $put($1.txt, $f($1.barlen - 1), $a([ $geti($1.barchars, $1.checksum, 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $f($1.barlen - 1), $a([ " ", $1.xpos, $1.textyoffset, $1.textfont, $1.textsize ])); - } - for (var _2G = 0; _2G <= 7; _2G += 1) { - $1.xpos = $f($f($get($get($1.encs, $1.checksum), _2G) - 48) + $1.xpos); - } - $1.indx = $get($1.charvals, $geti($1.barcode, $f($1.barlen - 1), 1)); - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $1.barlen * 8, $1.enc); - $put($1.txt, $1.barlen, $a([ $geti($1.barcode, $f($1.barlen - 1), 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $1.indx = $get($1.charvals, $geti($1.barcode, $f($1.barlen - 1), 1)); - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $f($1.barlen * 8 - 8), $1.enc); - $put($1.txt, $f($1.barlen - 1), $a([ $geti($1.barcode, $f($1.barlen - 1), 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $k[$j++] = Infinity; - $k[$j++] = Infinity; - $forall($1.sbs, function() { - var _33 = $k[--$j]; - $k[$j++] = $f(_33 - 48); - }); - var _34 = $a(); - $k[$j++] = Infinity; - for (var _36 = 0, _37 = ~~(($1.sbs.length + 1) / 2); _36 < _37; _36++) { - $k[$j++] = $1.height; - } - var _39 = $a(); - $k[$j++] = Infinity; - for (var _3B = 0, _3C = ~~(($1.sbs.length + 1) / 2); _3B < _3C; _3B++) { - $k[$j++] = 0; - } - var _3D = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _34; - $k[$j++] = "bhs"; - $k[$j++] = _39; - $k[$j++] = "bbs"; - $k[$j++] = _3D; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _3H = $d(); - $k[$j++] = _3H; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#9782 + $1.options = $k[--$j]; //#9784 + $1.barcode = $k[--$j]; //#9785 + $1.dontdraw = false; //#9787 + $1.altstartstop = false; //#9788 + $1.includecheck = false; //#9789 + $1.validatecheck = false; //#9790 + $1.includetext = false; //#9791 + $1.includecheckintext = false; //#9792 + $1.textfont = "OCR-B"; //#9793 + $1.textsize = 10; //#9794 + $1.textyoffset = -8; //#9795 + $1.height = 1; //#9796 + $forall($1.options, function() { //#9807 + var _3 = $k[--$j]; //#9807 + $1[$k[--$j]] = _3; //#9807 + }); //#9807 + $1.textfont = "" + $1.textfont; //#9809 + $1.textsize = +$1.textsize; //#9810 + $1.textyoffset = +$1.textyoffset; //#9811 + $1.height = +$1.height; //#9812 + $1.encs = $a(["11111331", "11113311", "11131131", "33111111", "11311311", "31111311", "13111131", "13113111", "13311111", "31131111", "11133111", "11331111", "31113131", "31311131", "31313111", "11313131", "11331311", "13131131", "11131331", "11133311"]); //#9820 + if ($1.altstartstop) { //#9826 + $1.barchars = "0123456789-$:/.+TN*E"; //#9824 + } else { //#9826 + $1.barchars = "0123456789-$:/.+ABCD"; //#9826 + } //#9826 + $1.charvals = new Map; //#9828 + for (var _B = 0; _B <= 19; _B += 1) { //#9829 + $put($1.charvals, $geti($1.barchars, _B, 1), _B); //#9829 + } //#9829 + $1.bodyvals = new Map; //#9830 + for (var _F = 0; _F <= 15; _F += 1) { //#9831 + $put($1.bodyvals, $geti($1.barchars, _F, 1), _F); //#9831 + } //#9831 + $1.ssvals = new Map; //#9832 + for (var _J = 16; _J <= 19; _J += 1) { //#9833 + $put($1.ssvals, $geti($1.barchars, _J, 1), _J); //#9833 + } //#9833 + var _Q = $get($1.ssvals, $geti($1.barcode, 0, 1)) !== undefined; //#9836 + var _V = $get($1.ssvals, $geti($1.barcode, $1.barcode.length - 1, 1)) !== undefined; //#9837 + if ((!_Q) || (!_V)) { //#9843 + if ($1.altstartstop) { //#9841 + $k[$j++] = 'bwipp.rationalizedCodabarBadAltStartStop'; //#9839 + $k[$j++] = "Codabar start and stop characters must be one of E N T or *"; //#9839 + $0.raiseerror(); //#9839 + } else { //#9841 + $k[$j++] = 'bwipp.rationalizedCodabarBadStartStop'; //#9841 + $k[$j++] = "Codabar start and stop characters must be one of A B C or D"; //#9841 + $0.raiseerror(); //#9841 + } //#9841 + } //#9841 + for (var _Z = 1, _Y = $1.barcode.length - 2; _Z <= _Y; _Z += 1) { //#9848 + var _d = $get($1.bodyvals, $geti($1.barcode, _Z, 1)) !== undefined; //#9845 + if (!_d) { //#9847 + $k[$j++] = 'bwipp.rationalizedCodabarBadCharacter'; //#9846 + $k[$j++] = "Codabar body must contain only digits and symbols - $ : / . +"; //#9846 + $0.raiseerror(); //#9846 + } //#9846 + } //#9846 + $k[$j++] = 'barlen'; //#9850 + $k[$j++] = $1.barcode.length; //#9850 + if ($1.validatecheck) { //#9850 + var _g = $k[--$j]; //#9850 + $k[$j++] = $f(_g - 1); //#9850 + } //#9850 + var _h = $k[--$j]; //#9850 + $1[$k[--$j]] = _h; //#9850 + $1.checksum = 0; //#9852 + for (var _l = 0, _k = $f($1.barlen - 2); _l <= _k; _l += 1) { //#9856 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, _l, 1)) + $1.checksum); //#9855 + } //#9855 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, $1.barcode.length - 1, 1)) + $1.checksum); //#9858 + $1.checksum = ($f(16 - ($1.checksum % 16))) % 16; //#9859 + if ($1.validatecheck) { //#9869 + if ($get($1.barcode, $f($1.barlen - 1)) != $get($1.barchars, $1.checksum)) { //#9863 + $k[$j++] = 'bwipp.rationalizedCodabarBadCheckDigit'; //#9862 + $k[$j++] = "Incorrect Codabar check digit provided"; //#9862 + $0.raiseerror(); //#9862 + } //#9862 + var _16 = $s($1.barlen); //#9864 + $puti(_16, 0, $geti($1.barcode, 0, $f($1.barlen - 1))); //#9865 + $puti(_16, $f($1.barlen - 1), $geti($1.barcode, $1.barlen, 1)); //#9866 + $1.barcode = _16; //#9867 + $1.includecheck = true; //#9868 + } //#9868 + $k[$j++] = 'sbs'; //#9871 + $k[$j++] = $1.barlen; //#9871 + if ($1.includecheck) { //#9871 + var _1G = $k[--$j]; //#9871 + $k[$j++] = $f(_1G + 1); //#9871 + } //#9871 + var _1I = $s($k[--$j] * 8); //#9871 + $1[$k[--$j]] = _1I; //#9871 + $k[$j++] = 'txt'; //#9872 + $k[$j++] = $1.barlen; //#9872 + if ($1.includecheck) { //#9872 + var _1M = $k[--$j]; //#9872 + $k[$j++] = $f(_1M + 1); //#9872 + } //#9872 + var _1O = $a($k[--$j]); //#9872 + $1[$k[--$j]] = _1O; //#9872 + $1.xpos = 0; //#9874 + for (var _1S = 0, _1R = $f($1.barlen - 2); _1S <= _1R; _1S += 1) { //#9884 + $1.i = _1S; //#9876 + $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); //#9877 + $1.enc = $get($1.encs, $1.indx); //#9878 + $puti($1.sbs, $1.i * 8, $1.enc); //#9879 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9880 + for (var _1o = 0; _1o <= 7; _1o += 1) { //#9883 + $1.xpos = $f($f($get($1.enc, _1o) - 48) + $1.xpos); //#9882 + } //#9882 + } //#9882 + if ($1.includecheck) { //#9908 + $puti($1.sbs, $f(($1.barlen * 8) - 8), $get($1.encs, $1.checksum)); //#9889 + if ($1.includecheckintext) { //#9893 + $put($1.txt, $f($1.barlen - 1), $a([$geti($1.barchars, $1.checksum, 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9891 + } else { //#9893 + $put($1.txt, $f($1.barlen - 1), $a([" ", $1.xpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9893 + } //#9893 + for (var _2G = 0; _2G <= 7; _2G += 1) { //#9897 + $1.xpos = $f($f($get($get($1.encs, $1.checksum), _2G) - 48) + $1.xpos); //#9896 + } //#9896 + $1.indx = $get($1.charvals, $geti($1.barcode, $f($1.barlen - 1), 1)); //#9899 + $1.enc = $get($1.encs, $1.indx); //#9900 + $puti($1.sbs, $1.barlen * 8, $1.enc); //#9901 + $put($1.txt, $1.barlen, $a([$geti($1.barcode, $f($1.barlen - 1), 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9902 + } else { //#9908 + $1.indx = $get($1.charvals, $geti($1.barcode, $f($1.barlen - 1), 1)); //#9905 + $1.enc = $get($1.encs, $1.indx); //#9906 + $puti($1.sbs, $f(($1.barlen * 8) - 8), $1.enc); //#9907 + $put($1.txt, $f($1.barlen - 1), $a([$geti($1.barcode, $f($1.barlen - 1), 1), $1.xpos, $1.textyoffset, $1.textfont, $1.textsize])); //#9908 + } //#9908 + $k[$j++] = Infinity; //#9920 + $k[$j++] = Infinity; //#9914 + $forall($1.sbs, function() { //#9914 + var _33 = $k[--$j]; //#9914 + $k[$j++] = $f(_33 - 48); //#9914 + }); //#9914 + var _34 = $a(); //#9914 + $k[$j++] = Infinity; //#9915 + for (var _36 = 0, _37 = ~~(($1.sbs.length + 1) / 2); _36 < _37; _36++) { //#9915 + $k[$j++] = $1.height; //#9915 + } //#9915 + var _39 = $a(); //#9915 + $k[$j++] = Infinity; //#9916 + for (var _3B = 0, _3C = ~~(($1.sbs.length + 1) / 2); _3B < _3C; _3B++) { //#9916 + $k[$j++] = 0; //#9916 + } //#9916 + var _3D = $a(); //#9916 + $k[$j++] = 'ren'; //#9919 + $k[$j++] = $0.renlinear; //#9919 + $k[$j++] = 'sbs'; //#9919 + $k[$j++] = _34; //#9919 + $k[$j++] = 'bhs'; //#9919 + $k[$j++] = _39; //#9919 + $k[$j++] = 'bbs'; //#9919 + $k[$j++] = _3D; //#9919 + if ($1.includetext) { //#9919 + $k[$j++] = 'txt'; //#9918 + $k[$j++] = $1.txt; //#9918 + } //#9918 + $k[$j++] = 'opt'; //#9920 + $k[$j++] = $1.options; //#9920 + var _3H = $d(); //#9920 + $k[$j++] = _3H; //#9923 + if (!$1.dontdraw) { //#9923 + $0.renlinear(); //#9923 + } //#9923 }; $0.onecode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.height = .15; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.height = +$1.height; - $1.barlen = $1.barcode.length; - $k[$j++] = Infinity; - var _9 = $eq($geti($1.barcode, 5, 1), "9") ? 14 : 11; - $k[$j++] = 2; - $k[$j++] = 2; - $k[$j++] = 5; - $k[$j++] = 5; - $k[$j++] = _9; - $k[$j++] = _9; - $k[$j++] = 20; - $k[$j++] = 20; - $k[$j++] = 25; - $k[$j++] = 25; - $k[$j++] = 29; - $k[$j++] = 29; - $1.txtdict = $d(); - $1.txt = $a($1.barlen + 6); - $1.spacecnt = 0; - for (var _F = 0, _E = $1.barlen - 1; _F <= _E; _F += 1) { - $1.i = _F; - var _I = $get($1.txtdict, $1.i) !== undefined; - if (_I) { - $put($1.txt, $1.i + $1.spacecnt, $a([ " ", 0, 0, "", 0 ])); - $1.spacecnt = $1.spacecnt + 1; - } - $put($1.txt, $1.i + $1.spacecnt, $a([ $geti($1.barcode, $1.i, 1), 0, 0, "", 0 ])); - } - $1.txt = $geti($1.txt, 0, $1.barcode.length + $1.spacecnt); + var $1 = {}; //#9952 + $1.options = $k[--$j]; //#9954 + $1.barcode = $k[--$j]; //#9955 + $1.dontdraw = false; //#9957 + $1.height = 0.15; //#9958 + $forall($1.options, function() { //#9969 + var _3 = $k[--$j]; //#9969 + $1[$k[--$j]] = _3; //#9969 + }); //#9969 + $1.height = +$1.height; //#9971 + $1.barlen = $1.barcode.length; //#9973 + $k[$j++] = Infinity; //#9982 + var _9 = $eq($geti($1.barcode, 5, 1), "9") ? 14 : 11; //#9979 + $k[$j++] = 2; //#9982 + $k[$j++] = 2; //#9982 + $k[$j++] = 5; //#9982 + $k[$j++] = 5; //#9982 + $k[$j++] = _9; //#9982 + $k[$j++] = _9; //#9982 + $k[$j++] = 20; //#9982 + $k[$j++] = 20; //#9982 + $k[$j++] = 25; //#9982 + $k[$j++] = 25; //#9982 + $k[$j++] = 29; //#9982 + $k[$j++] = 29; //#9982 + $1.txtdict = $d(); //#9983 + $1.txt = $a($1.barlen + 6); //#9984 + $1.spacecnt = 0; //#9985 + for (var _F = 0, _E = $1.barlen - 1; _F <= _E; _F += 1) { //#9993 + $1.i = _F; //#9987 + var _I = $get($1.txtdict, $1.i) !== undefined; //#9988 + if (_I) { //#9991 + $put($1.txt, $1.i + $1.spacecnt, $a([" ", 0, 0, "", 0])); //#9989 + $1.spacecnt = $1.spacecnt + 1; //#9990 + } //#9990 + $put($1.txt, $1.i + $1.spacecnt, $a([$geti($1.barcode, $1.i, 1), 0, 0, "", 0])); //#9992 + } //#9992 + $1.txt = $geti($1.txt, 0, $1.barcode.length + $1.spacecnt); //#9994 $1.normalize = function() { - $1.base = $k[--$j]; - $1.num = $k[--$j]; - for (var _c = $1.num.length - 1; _c >= 1; _c -= 1) { - $1.i = _c; - var _d = $1.num; - var _e = $1.i; - $put(_d, _e - 1, $f($get(_d, _e - 1) + ~~($get($1.num, $1.i) / $1.base))); - $put($1.num, $1.i, $get($1.num, $1.i) % $1.base); - } - for (;;) { - if ($lt($get($1.num, 0), $1.base)) { - break; - } - $k[$j++] = Infinity; - $k[$j++] = 0; - $forall($1.num); - $1.num = $a(); - $put($1.num, 0, $f($get($1.num, 0) + ~~($get($1.num, 1) / $1.base))); - $put($1.num, 1, $get($1.num, 1) % $1.base); - } - $k[$j++] = Infinity; - $1.i = true; - var _15 = $1.num; - for (var _16 = 0, _17 = _15.length; _16 < _17; _16++) { - var _18 = $get(_15, _16); - $k[$j++] = _18; - if (_18 == 0 && $1.i) { - $j--; - } else { - $1.i = false; - } - } - $1.num = $a(); - if ($1.num.length == 0) { - $1.num = $a([ 0 ]); - } - $k[$j++] = $1.num; - }; + $1.base = $k[--$j]; //#9997 + $1.num = $k[--$j]; //#9998 + for (var _c = $1.num.length - 1; _c >= 1; _c -= 1) { //#10003 + $1.i = _c; //#10000 + var _d = $1.num; //#10001 + var _e = $1.i; //#10001 + $put(_d, _e - 1, $f($get(_d, _e - 1) + (~~($get($1.num, $1.i) / $1.base)))); //#10001 + $put($1.num, $1.i, $get($1.num, $1.i) % $1.base); //#10002 + } //#10002 + for (;;) { //#10009 + if ($lt($get($1.num, 0), $1.base)) { //#10005 + break; //#10005 + } //#10005 + $k[$j++] = Infinity; //#10006 + $k[$j++] = 0; //#10006 + $forall($1.num); //#10006 + $1.num = $a(); //#10006 + $put($1.num, 0, $f($get($1.num, 0) + (~~($get($1.num, 1) / $1.base)))); //#10007 + $put($1.num, 1, $get($1.num, 1) % $1.base); //#10008 + } //#10008 + $k[$j++] = Infinity; //#10011 + $1.i = true; //#10011 + var _15 = $1.num; //#10011 + for (var _16 = 0, _17 = _15.length; _16 < _17; _16++) { //#10011 + var _18 = $get(_15, _16); //#10011 + $k[$j++] = _18; //#10011 + if ((_18 == 0) && $1.i) { //#10011 + $j--; //#10011 + } else { //#10011 + $1.i = false; //#10011 + } //#10011 + } //#10011 + $1.num = $a(); //#10011 + if ($1.num.length == 0) { //#10012 + $1.num = $a([0]); //#10012 + } //#10012 + $k[$j++] = $1.num; //#10013 + }; //#10014 $1.bigadd = function() { - var _1E = $k[--$j]; - var _1F = $k[--$j]; - $1.offset = Math.abs(_1E.length - _1F.length); - if (_1E.length < _1F.length) { - var _ = _1E; - _1E = _1F; - _1F = _; - } - $1.a = _1E; - $1.b = _1F; - for (var _1I = 0, _1H = $1.b.length - 1; _1I <= _1H; _1I += 1) { - var _1J = $1.a; - var _1K = $1.offset; - $put(_1J, _1I + _1K, $f($get(_1J, _1I + _1K) + $get($1.b, _1I))); - } - $k[$j++] = $1.a; - }; - if ($1.barlen == 20) { - $k[$j++] = $a([ 0 ]); - } - if ($1.barlen == 25) { - $k[$j++] = $a([ 1 ]); - } - if ($1.barlen == 29) { - $k[$j++] = $a([ 1, 0, 0, 0, 0, 1 ]); - } - if ($1.barlen == 31) { - $k[$j++] = $a([ 1, 0, 0, 0, 1, 0, 0, 0, 0, 1 ]); - } - var _1X = $k[--$j]; - $k[$j++] = "binval"; - $k[$j++] = _1X; - $k[$j++] = Infinity; - var _1a = $geti($1.barcode, 20, $1.barlen - 20); - for (var _1b = 0, _1c = _1a.length; _1b < _1c; _1b++) { - $k[$j++] = $f($get(_1a, _1b) - 48); - } - var _1e = $a(); - $k[$j++] = _1e; - $1.bigadd(); - var _1f = $k[--$j]; - $1[$k[--$j]] = _1f; - $k[$j++] = Infinity; - var _1h = $1.binval; - for (var _1i = 0, _1j = _1h.length; _1i < _1j; _1i++) { - $k[$j++] = $get(_1h, _1i); - } - $k[$j++] = $f($get($1.barcode, 0) - 48); - $1.binval = $a(); - $k[$j++] = Infinity; - var _1o = $1.binval; - for (var _1p = 0, _1q = _1o.length; _1p < _1q; _1p++) { - $k[$j++] = $get(_1o, _1p) * 5; - } - var _1s = $a(); - $k[$j++] = "binval"; - $k[$j++] = _1s; - $k[$j++] = $a([ $f($get($1.barcode, 1) - 48) ]); - $1.bigadd(); - $k[$j++] = 10; - $1.normalize(); - var _1w = $k[--$j]; - $1[$k[--$j]] = _1w; - $k[$j++] = Infinity; - var _1y = $1.binval; - for (var _1z = 0, _20 = _1y.length; _1z < _20; _1z++) { - $k[$j++] = $get(_1y, _1z); - } - var _23 = $geti($1.barcode, 2, 18); - for (var _24 = 0, _25 = _23.length; _24 < _25; _24++) { - $k[$j++] = $f($get(_23, _24) - 48); - } - $1.binval = $a(); - $1.bytes = $a(13); - $k[$j++] = Infinity; - var _29 = $1.binval; - for (var _2A = 0, _2B = _29.length; _2A < _2B; _2A++) { - $k[$j++] = $get(_29, _2A); - } - $1.bintmp = $a(); - for (var _2E = 12; _2E >= 0; _2E -= 1) { - $1.i = _2E; - for (var _2H = 0, _2G = $1.bintmp.length - 2; _2H <= _2G; _2H += 1) { - $1.j = _2H; - var _2I = $1.bintmp; - var _2J = $1.j; - $put(_2I, _2J + 1, $f($get(_2I, _2J + 1) + $get($1.bintmp, $1.j) % 256 * 10)); - $put($1.bintmp, $1.j, ~~($get($1.bintmp, $1.j) / 256)); - } - $put($1.bytes, $1.i, $get($1.bintmp, $1.bintmp.length - 1) % 256); - var _2Y = $1.bintmp; - var _2Z = $1.bintmp; - $put(_2Y, _2Z.length - 1, ~~($get(_2Y, _2Z.length - 1) / 256)); - } - $1.fcs = 2047; - $1.dat = $get($1.bytes, 0) << 5; - for (var _2d = 0, _2e = 6; _2d < _2e; _2d++) { - if ((($1.fcs ^ $1.dat) & 1024) != 0) { - $1.fcs = $1.fcs << 1 ^ 3893; - } else { - $1.fcs = $1.fcs << 1; - } - $1.fcs = $1.fcs & 2047; - $1.dat = $1.dat << 1; - } - for (var _2l = 1; _2l <= 12; _2l += 1) { - $1.dat = $get($1.bytes, _2l) << 3; - for (var _2o = 0, _2p = 8; _2o < _2p; _2o++) { - if ((($1.fcs ^ $1.dat) & 1024) != 0) { - $1.fcs = $1.fcs << 1 ^ 3893; - } else { - $1.fcs = $1.fcs << 1; - } - $1.fcs = $1.fcs & 2047; - $1.dat = $1.dat << 1; - } - } - $1.codewords = $a(10); - for (var _2x = 9; _2x >= 0; _2x -= 1) { - $1.i = _2x; - if ($1.i == 9) { - $1.b = 636; - } else { - $1.b = 1365; - } - for (var _31 = 0, _30 = $1.binval.length - 2; _31 <= _30; _31 += 1) { - $1.j = _31; - var _32 = $1.binval; - var _33 = $1.j; - $put(_32, _33 + 1, $f($get(_32, _33 + 1) + $get($1.binval, $1.j) % $1.b * 10)); - $put($1.binval, $1.j, ~~($get($1.binval, $1.j) / $1.b)); - } - $put($1.codewords, $1.i, $get($1.binval, $1.binval.length - 1) % $1.b); - var _3L = $1.binval; - var _3M = $1.binval; - $put(_3L, _3M.length - 1, ~~($get(_3L, _3M.length - 1) / $1.b)); - } - $put($1.codewords, 9, $get($1.codewords, 9) * 2); - if (($1.fcs & 1024) != 0) { - $put($1.codewords, 0, $f($get($1.codewords, 0) + 659)); - } - $1.tab513 = $a([ 31, 7936, 47, 7808, 55, 7552, 59, 7040, 61, 6016, 62, 3968, 79, 7744, 87, 7488, 91, 6976, 93, 5952, 94, 3904, 103, 7360, 107, 6848, 109, 5824, 110, 3776, 115, 6592, 117, 5568, 118, 3520, 121, 5056, 122, 3008, 124, 1984, 143, 7712, 151, 7456, 155, 6944, 157, 5920, 158, 3872, 167, 7328, 171, 6816, 173, 5792, 174, 3744, 179, 6560, 181, 5536, 182, 3488, 185, 5024, 186, 2976, 188, 1952, 199, 7264, 203, 6752, 205, 5728, 206, 3680, 211, 6496, 213, 5472, 214, 3424, 217, 4960, 218, 2912, 220, 1888, 227, 6368, 229, 5344, 230, 3296, 233, 4832, 234, 2784, 236, 1760, 241, 4576, 242, 2528, 244, 1504, 248, 992, 271, 7696, 279, 7440, 283, 6928, 285, 5904, 286, 3856, 295, 7312, 299, 6800, 301, 5776, 302, 3728, 307, 6544, 309, 5520, 310, 3472, 313, 5008, 314, 2960, 316, 1936, 327, 7248, 331, 6736, 333, 5712, 334, 3664, 339, 6480, 341, 5456, 342, 3408, 345, 4944, 346, 2896, 348, 1872, 355, 6352, 357, 5328, 358, 3280, 361, 4816, 362, 2768, 364, 1744, 369, 4560, 370, 2512, 372, 1488, 376, 976, 391, 7216, 395, 6704, 397, 5680, 398, 3632, 403, 6448, 405, 5424, 406, 3376, 409, 4912, 410, 2864, 412, 1840, 419, 6320, 421, 5296, 422, 3248, 425, 4784, 426, 2736, 428, 1712, 433, 4528, 434, 2480, 436, 1456, 440, 944, 451, 6256, 453, 5232, 454, 3184, 457, 4720, 458, 2672, 460, 1648, 465, 4464, 466, 2416, 468, 1392, 472, 880, 481, 4336, 482, 2288, 484, 1264, 488, 752, 527, 7688, 535, 7432, 539, 6920, 541, 5896, 542, 3848, 551, 7304, 555, 6792, 557, 5768, 558, 3720, 563, 6536, 565, 5512, 566, 3464, 569, 5e3, 570, 2952, 572, 1928, 583, 7240, 587, 6728, 589, 5704, 590, 3656, 595, 6472, 597, 5448, 598, 3400, 601, 4936, 602, 2888, 604, 1864, 611, 6344, 613, 5320, 614, 3272, 617, 4808, 618, 2760, 620, 1736, 625, 4552, 626, 2504, 628, 1480, 632, 968, 647, 7208, 651, 6696, 653, 5672, 654, 3624, 659, 6440, 661, 5416, 662, 3368, 665, 4904, 666, 2856, 668, 1832, 675, 6312, 677, 5288, 678, 3240, 681, 4776, 682, 2728, 684, 1704, 689, 4520, 690, 2472, 692, 1448, 696, 936, 707, 6248, 709, 5224, 710, 3176, 713, 4712, 714, 2664, 716, 1640, 721, 4456, 722, 2408, 724, 1384, 728, 872, 737, 4328, 738, 2280, 740, 1256, 775, 7192, 779, 6680, 781, 5656, 782, 3608, 787, 6424, 789, 5400, 790, 3352, 793, 4888, 794, 2840, 796, 1816, 803, 6296, 805, 5272, 806, 3224, 809, 4760, 810, 2712, 812, 1688, 817, 4504, 818, 2456, 820, 1432, 824, 920, 835, 6232, 837, 5208, 838, 3160, 841, 4696, 842, 2648, 844, 1624, 849, 4440, 850, 2392, 852, 1368, 865, 4312, 866, 2264, 868, 1240, 899, 6200, 901, 5176, 902, 3128, 905, 4664, 906, 2616, 908, 1592, 913, 4408, 914, 2360, 916, 1336, 929, 4280, 930, 2232, 932, 1208, 961, 4216, 962, 2168, 964, 1144, 1039, 7684, 1047, 7428, 1051, 6916, 1053, 5892, 1054, 3844, 1063, 7300, 1067, 6788, 1069, 5764, 1070, 3716, 1075, 6532, 1077, 5508, 1078, 3460, 1081, 4996, 1082, 2948, 1084, 1924, 1095, 7236, 1099, 6724, 1101, 5700, 1102, 3652, 1107, 6468, 1109, 5444, 1110, 3396, 1113, 4932, 1114, 2884, 1116, 1860, 1123, 6340, 1125, 5316, 1126, 3268, 1129, 4804, 1130, 2756, 1132, 1732, 1137, 4548, 1138, 2500, 1140, 1476, 1159, 7204, 1163, 6692, 1165, 5668, 1166, 3620, 1171, 6436, 1173, 5412, 1174, 3364, 1177, 4900, 1178, 2852, 1180, 1828, 1187, 6308, 1189, 5284, 1190, 3236, 1193, 4772, 1194, 2724, 1196, 1700, 1201, 4516, 1202, 2468, 1204, 1444, 1219, 6244, 1221, 5220, 1222, 3172, 1225, 4708, 1226, 2660, 1228, 1636, 1233, 4452, 1234, 2404, 1236, 1380, 1249, 4324, 1250, 2276, 1287, 7188, 1291, 6676, 1293, 5652, 1294, 3604, 1299, 6420, 1301, 5396, 1302, 3348, 1305, 4884, 1306, 2836, 1308, 1812, 1315, 6292, 1317, 5268, 1318, 3220, 1321, 4756, 1322, 2708, 1324, 1684, 1329, 4500, 1330, 2452, 1332, 1428, 1347, 6228, 1349, 5204, 1350, 3156, 1353, 4692, 1354, 2644, 1356, 1620, 1361, 4436, 1362, 2388, 1377, 4308, 1378, 2260, 1411, 6196, 1413, 5172, 1414, 3124, 1417, 4660, 1418, 2612, 1420, 1588, 1425, 4404, 1426, 2356, 1441, 4276, 1442, 2228, 1473, 4212, 1474, 2164, 1543, 7180, 1547, 6668, 1549, 5644, 1550, 3596, 1555, 6412, 1557, 5388, 1558, 3340, 1561, 4876, 1562, 2828, 1564, 1804, 1571, 6284, 1573, 5260, 1574, 3212, 1577, 4748, 1578, 2700, 1580, 1676, 1585, 4492, 1586, 2444, 1603, 6220, 1605, 5196, 1606, 3148, 1609, 4684, 1610, 2636, 1617, 4428, 1618, 2380, 1633, 4300, 1634, 2252, 1667, 6188, 1669, 5164, 1670, 3116, 1673, 4652, 1674, 2604, 1681, 4396, 1682, 2348, 1697, 4268, 1698, 2220, 1729, 4204, 1730, 2156, 1795, 6172, 1797, 5148, 1798, 3100, 1801, 4636, 1802, 2588, 1809, 4380, 1810, 2332, 1825, 4252, 1826, 2204, 1857, 4188, 1858, 2140, 1921, 4156, 1922, 2108, 2063, 7682, 2071, 7426, 2075, 6914, 2077, 5890, 2078, 3842, 2087, 7298, 2091, 6786, 2093, 5762, 2094, 3714, 2099, 6530, 2101, 5506, 2102, 3458, 2105, 4994, 2106, 2946, 2119, 7234, 2123, 6722, 2125, 5698, 2126, 3650, 2131, 6466, 2133, 5442, 2134, 3394, 2137, 4930, 2138, 2882, 2147, 6338, 2149, 5314, 2150, 3266, 2153, 4802, 2154, 2754, 2161, 4546, 2162, 2498, 2183, 7202, 2187, 6690, 2189, 5666, 2190, 3618, 2195, 6434, 2197, 5410, 2198, 3362, 2201, 4898, 2202, 2850, 2211, 6306, 2213, 5282, 2214, 3234, 2217, 4770, 2218, 2722, 2225, 4514, 2226, 2466, 2243, 6242, 2245, 5218, 2246, 3170, 2249, 4706, 2250, 2658, 2257, 4450, 2258, 2402, 2273, 4322, 2311, 7186, 2315, 6674, 2317, 5650, 2318, 3602, 2323, 6418, 2325, 5394, 2326, 3346, 2329, 4882, 2330, 2834, 2339, 6290, 2341, 5266, 2342, 3218, 2345, 4754, 2346, 2706, 2353, 4498, 2354, 2450, 2371, 6226, 2373, 5202, 2374, 3154, 2377, 4690, 2378, 2642, 2385, 4434, 2401, 4306, 2435, 6194, 2437, 5170, 2438, 3122, 2441, 4658, 2442, 2610, 2449, 4402, 2465, 4274, 2497, 4210, 2567, 7178, 2571, 6666, 2573, 5642, 2574, 3594, 2579, 6410, 2581, 5386, 2582, 3338, 2585, 4874, 2586, 2826, 2595, 6282, 2597, 5258, 2598, 3210, 2601, 4746, 2602, 2698, 2609, 4490, 2627, 6218, 2629, 5194, 2630, 3146, 2633, 4682, 2641, 4426, 2657, 4298, 2691, 6186, 2693, 5162, 2694, 3114, 2697, 4650, 2705, 4394, 2721, 4266, 2753, 4202, 2819, 6170, 2821, 5146, 2822, 3098, 2825, 4634, 2833, 4378, 2849, 4250, 2881, 4186, 2945, 4154, 3079, 7174, 3083, 6662, 3085, 5638, 3086, 3590, 3091, 6406, 3093, 5382, 3094, 3334, 3097, 4870, 3107, 6278, 3109, 5254, 3110, 3206, 3113, 4742, 3121, 4486, 3139, 6214, 3141, 5190, 3145, 4678, 3153, 4422, 3169, 4294, 3203, 6182, 3205, 5158, 3209, 4646, 3217, 4390, 3233, 4262, 3265, 4198, 3331, 6166, 3333, 5142, 3337, 4630, 3345, 4374, 3361, 4246, 3393, 4182, 3457, 4150, 3587, 6158, 3589, 5134, 3593, 4622, 3601, 4366, 3617, 4238, 3649, 4174, 3713, 4142, 3841, 4126, 4111, 7681, 4119, 7425, 4123, 6913, 4125, 5889, 4135, 7297, 4139, 6785, 4141, 5761, 4147, 6529, 4149, 5505, 4153, 4993, 4167, 7233, 4171, 6721, 4173, 5697, 4179, 6465, 4181, 5441, 4185, 4929, 4195, 6337, 4197, 5313, 4201, 4801, 4209, 4545, 4231, 7201, 4235, 6689, 4237, 5665, 4243, 6433, 4245, 5409, 4249, 4897, 4259, 6305, 4261, 5281, 4265, 4769, 4273, 4513, 4291, 6241, 4293, 5217, 4297, 4705, 4305, 4449, 4359, 7185, 4363, 6673, 4365, 5649, 4371, 6417, 4373, 5393, 4377, 4881, 4387, 6289, 4389, 5265, 4393, 4753, 4401, 4497, 4419, 6225, 4421, 5201, 4425, 4689, 4483, 6193, 4485, 5169, 4489, 4657, 4615, 7177, 4619, 6665, 4621, 5641, 4627, 6409, 4629, 5385, 4633, 4873, 4643, 6281, 4645, 5257, 4649, 4745, 4675, 6217, 4677, 5193, 4739, 6185, 4741, 5161, 4867, 6169, 4869, 5145, 5127, 7173, 5131, 6661, 5133, 5637, 5139, 6405, 5141, 5381, 5155, 6277, 5157, 5253, 5187, 6213, 5251, 6181, 5379, 6165, 5635, 6157, 6151, 7171, 6155, 6659, 6163, 6403, 6179, 6275, 6211, 5189, 4681, 4433, 4321, 3142, 2634, 2386, 2274, 1612, 1364, 1252, 856, 744, 496 ]); - $1.tab213 = $a([ 3, 6144, 5, 5120, 6, 3072, 9, 4608, 10, 2560, 12, 1536, 17, 4352, 18, 2304, 20, 1280, 24, 768, 33, 4224, 34, 2176, 36, 1152, 40, 640, 48, 384, 65, 4160, 66, 2112, 68, 1088, 72, 576, 80, 320, 96, 192, 129, 4128, 130, 2080, 132, 1056, 136, 544, 144, 288, 257, 4112, 258, 2064, 260, 1040, 264, 528, 513, 4104, 514, 2056, 516, 1032, 1025, 4100, 1026, 2052, 2049, 4098, 4097, 2050, 1028, 520, 272, 160 ]); - $1.chars = $a(10); - for (var _3Z = 0; _3Z <= 9; _3Z += 1) { - $1.i = _3Z; - var _3c = $get($1.codewords, $1.i); - $k[$j++] = _3c; - if (_3c <= 1286) { - var _3f = $get($1.tab513, $k[--$j]); - $k[$j++] = _3f; - } else { - var _3i = $get($1.tab213, $f($k[--$j] - 1287)); - $k[$j++] = _3i; - } - $put($1.chars, $1.i, $k[--$j]); - } - for (var _3m = 9; _3m >= 0; _3m -= 1) { - $1.i = _3m; - if ((~~Math.pow(2, $1.i) & $1.fcs) != 0) { - $put($1.chars, $1.i, $get($1.chars, $1.i) ^ 8191); - } - } - $1.barmap = $a([ 7, 2, 4, 3, 1, 10, 0, 0, 9, 12, 2, 8, 5, 5, 6, 11, 8, 9, 3, 1, 0, 1, 5, 12, 2, 5, 1, 8, 4, 4, 9, 11, 6, 3, 8, 10, 3, 9, 7, 6, 5, 11, 1, 4, 8, 5, 2, 12, 9, 10, 0, 2, 7, 1, 6, 7, 3, 6, 4, 9, 0, 3, 8, 6, 6, 4, 2, 7, 1, 1, 9, 9, 7, 10, 5, 2, 4, 0, 3, 8, 6, 2, 0, 4, 8, 11, 1, 0, 9, 8, 3, 12, 2, 6, 7, 7, 5, 1, 4, 10, 1, 12, 6, 9, 7, 3, 8, 0, 5, 8, 9, 7, 4, 6, 2, 10, 3, 4, 0, 5, 8, 4, 5, 7, 7, 11, 1, 9, 6, 0, 9, 6, 0, 6, 4, 8, 2, 1, 3, 2, 5, 9, 8, 12, 4, 11, 6, 1, 9, 5, 7, 4, 3, 3, 1, 2, 0, 7, 2, 0, 1, 3, 4, 1, 6, 10, 3, 5, 8, 7, 9, 4, 2, 11, 5, 6, 0, 8, 7, 12, 4, 2, 8, 1, 5, 10, 3, 0, 9, 3, 0, 9, 6, 5, 2, 4, 7, 8, 1, 7, 5, 0, 4, 5, 2, 3, 0, 10, 6, 12, 9, 2, 3, 11, 1, 6, 8, 8, 7, 9, 5, 4, 0, 11, 1, 5, 2, 2, 9, 1, 4, 12, 8, 3, 6, 6, 7, 0, 3, 7, 4, 7, 7, 5, 0, 12, 1, 11, 2, 9, 9, 0, 6, 8, 5, 3, 3, 10, 8, 2 ]); - $1.bbs = $a(65); - $1.bhs = $a(65); - for (var _3x = 0; _3x <= 64; _3x += 1) { - $1.i = _3x; - $1.dec = ($get($1.chars, $get($1.barmap, $1.i * 4)) & ~~Math.pow(2, $get($1.barmap, $1.i * 4 + 1))) != 0; - $1.asc = ($get($1.chars, $get($1.barmap, $1.i * 4 + 2)) & ~~Math.pow(2, $get($1.barmap, $1.i * 4 + 3))) != 0; - if (!$1.dec && !$1.asc) { - $put($1.bbs, $1.i, 3 * $1.height / 8); - $put($1.bhs, $1.i, 2 * $1.height / 8); - } - if (!$1.dec && $1.asc) { - $put($1.bbs, $1.i, 3 * $1.height / 8); - $put($1.bhs, $1.i, 5 * $1.height / 8); - } - if ($1.dec && !$1.asc) { - $put($1.bbs, $1.i, 0 * $1.height / 8); - $put($1.bhs, $1.i, 5 * $1.height / 8); - } - if ($1.dec && $1.asc) { - $put($1.bbs, $1.i, 0 * $1.height / 8); - $put($1.bhs, $1.i, 8 * $1.height / 8); - } - } - $k[$j++] = Infinity; - var _4k = $1.bbs; - var _4l = $1.bhs; - $k[$j++] = Infinity; - for (var _4n = 0, _4o = $1.bhs.length - 1; _4n < _4o; _4n++) { - $k[$j++] = 1.44; - $k[$j++] = 1.872; - } - $k[$j++] = 1.44; - var _4p = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "bbs"; - $k[$j++] = _4k; - $k[$j++] = "bhs"; - $k[$j++] = _4l; - $k[$j++] = "sbs"; - $k[$j++] = _4p; - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - $k[$j++] = "textxalign"; - $k[$j++] = "left"; - $k[$j++] = "textfont"; - $k[$j++] = "OCR-B"; - $k[$j++] = "textyoffset"; - $k[$j++] = 1; - $k[$j++] = "textxoffset"; - $k[$j++] = -.3; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _4s = $d(); - $k[$j++] = _4s; - if (!$1.dontdraw) { - $0.renlinear(); - } + var _1E = $k[--$j]; //#10017 + var _1F = $k[--$j]; //#10017 + $1.offset = Math.abs(_1E.length - _1F.length); //#10018 + if (_1E.length < _1F.length) { //#10019 + var _ = _1E; //#10019 + _1E = _1F; //#10019 + _1F = _; //#10019 + } //#10019 + $1.a = _1E; //#10020 + $1.b = _1F; //#10020 + for (var _1I = 0, _1H = $1.b.length - 1; _1I <= _1H; _1I += 1) { //#10023 + var _1J = $1.a; //#10022 + var _1K = $1.offset; //#10022 + $put(_1J, _1I + _1K, $f($get(_1J, _1I + _1K) + $get($1.b, _1I))); //#10022 + } //#10022 + $k[$j++] = $1.a; //#10024 + }; //#10025 + if ($1.barlen == 20) { //#10028 + $k[$j++] = $a([0]); //#10028 + } //#10028 + if ($1.barlen == 25) { //#10029 + $k[$j++] = $a([1]); //#10029 + } //#10029 + if ($1.barlen == 29) { //#10030 + $k[$j++] = $a([1, 0, 0, 0, 0, 1]); //#10030 + } //#10030 + if ($1.barlen == 31) { //#10031 + $k[$j++] = $a([1, 0, 0, 0, 1, 0, 0, 0, 0, 1]); //#10031 + } //#10031 + var _1X = $k[--$j]; //#10032 + $k[$j++] = 'binval'; //#10032 + $k[$j++] = _1X; //#10032 + $k[$j++] = Infinity; //#10032 + var _1a = $geti($1.barcode, 20, $1.barlen - 20); //#10032 + for (var _1b = 0, _1c = _1a.length; _1b < _1c; _1b++) { //#10032 + $k[$j++] = $f($get(_1a, _1b) - 48); //#10032 + } //#10032 + var _1e = $a(); //#10032 + $k[$j++] = _1e; //#10032 + $1.bigadd(); //#10032 + var _1f = $k[--$j]; //#10032 + $1[$k[--$j]] = _1f; //#10032 + $k[$j++] = Infinity; //#10033 + var _1h = $1.binval; //#10033 + for (var _1i = 0, _1j = _1h.length; _1i < _1j; _1i++) { //#10033 + $k[$j++] = $get(_1h, _1i); //#10033 + } //#10033 + $k[$j++] = $f($get($1.barcode, 0) - 48); //#10033 + $1.binval = $a(); //#10033 + $k[$j++] = Infinity; //#10034 + var _1o = $1.binval; //#10034 + for (var _1p = 0, _1q = _1o.length; _1p < _1q; _1p++) { //#10034 + $k[$j++] = $get(_1o, _1p) * 5; //#10034 + } //#10034 + var _1s = $a(); //#10034 + $k[$j++] = 'binval'; //#10034 + $k[$j++] = _1s; //#10034 + $k[$j++] = $a([$f($get($1.barcode, 1) - 48)]); //#10034 + $1.bigadd(); //#10034 + $k[$j++] = 10; //#10034 + $1.normalize(); //#10034 + var _1w = $k[--$j]; //#10034 + $1[$k[--$j]] = _1w; //#10034 + $k[$j++] = Infinity; //#10035 + var _1y = $1.binval; //#10035 + for (var _1z = 0, _20 = _1y.length; _1z < _20; _1z++) { //#10035 + $k[$j++] = $get(_1y, _1z); //#10035 + } //#10035 + var _23 = $geti($1.barcode, 2, 18); //#10035 + for (var _24 = 0, _25 = _23.length; _24 < _25; _24++) { //#10035 + $k[$j++] = $f($get(_23, _24) - 48); //#10035 + } //#10035 + $1.binval = $a(); //#10035 + $1.bytes = $a(13); //#10038 + $k[$j++] = Infinity; //#10039 + var _29 = $1.binval; //#10039 + for (var _2A = 0, _2B = _29.length; _2A < _2B; _2A++) { //#10039 + $k[$j++] = $get(_29, _2A); //#10039 + } //#10039 + $1.bintmp = $a(); //#10039 + for (var _2E = 12; _2E >= 0; _2E -= 1) { //#10049 + $1.i = _2E; //#10041 + for (var _2H = 0, _2G = $1.bintmp.length - 2; _2H <= _2G; _2H += 1) { //#10046 + $1.j = _2H; //#10043 + var _2I = $1.bintmp; //#10044 + var _2J = $1.j; //#10044 + $put(_2I, _2J + 1, $f($get(_2I, _2J + 1) + (($get($1.bintmp, $1.j) % 256) * 10))); //#10044 + $put($1.bintmp, $1.j, ~~($get($1.bintmp, $1.j) / 256)); //#10045 + } //#10045 + $put($1.bytes, $1.i, $get($1.bintmp, $1.bintmp.length - 1) % 256); //#10047 + var _2Y = $1.bintmp; //#10048 + var _2Z = $1.bintmp; //#10048 + $put(_2Y, _2Z.length - 1, ~~($get(_2Y, _2Z.length - 1) / 256)); //#10048 + } //#10048 + $1.fcs = 2047; //#10052 + $1.dat = $get($1.bytes, 0) << 5; //#10053 + for (var _2d = 0, _2e = 6; _2d < _2e; _2d++) { //#10062 + if ((($1.fcs ^ $1.dat) & 1024) != 0) { //#10058 + $1.fcs = ($1.fcs << 1) ^ 3893; //#10056 + } else { //#10058 + $1.fcs = $1.fcs << 1; //#10058 + } //#10058 + $1.fcs = $1.fcs & 2047; //#10060 + $1.dat = $1.dat << 1; //#10061 + } //#10061 + for (var _2l = 1; _2l <= 12; _2l += 1) { //#10074 + $1.dat = $get($1.bytes, _2l) << 3; //#10064 + for (var _2o = 0, _2p = 8; _2o < _2p; _2o++) { //#10073 + if ((($1.fcs ^ $1.dat) & 1024) != 0) { //#10069 + $1.fcs = ($1.fcs << 1) ^ 3893; //#10067 + } else { //#10069 + $1.fcs = $1.fcs << 1; //#10069 + } //#10069 + $1.fcs = $1.fcs & 2047; //#10071 + $1.dat = $1.dat << 1; //#10072 + } //#10072 + } //#10072 + $1.codewords = $a(10); //#10077 + for (var _2x = 9; _2x >= 0; _2x -= 1) { //#10092 + $1.i = _2x; //#10079 + if ($1.i == 9) { //#10083 + $1.b = 636; //#10081 + } else { //#10083 + $1.b = 1365; //#10083 + } //#10083 + for (var _31 = 0, _30 = $1.binval.length - 2; _31 <= _30; _31 += 1) { //#10089 + $1.j = _31; //#10086 + var _32 = $1.binval; //#10087 + var _33 = $1.j; //#10087 + $put(_32, _33 + 1, $f($get(_32, _33 + 1) + (($get($1.binval, $1.j) % $1.b) * 10))); //#10087 + $put($1.binval, $1.j, ~~($get($1.binval, $1.j) / $1.b)); //#10088 + } //#10088 + $put($1.codewords, $1.i, $get($1.binval, $1.binval.length - 1) % $1.b); //#10090 + var _3L = $1.binval; //#10091 + var _3M = $1.binval; //#10091 + $put(_3L, _3M.length - 1, ~~($get(_3L, _3M.length - 1) / $1.b)); //#10091 + } //#10091 + $put($1.codewords, 9, $get($1.codewords, 9) * 2); //#10095 + if (($1.fcs & 1024) != 0) { //#10098 + $put($1.codewords, 0, $f($get($1.codewords, 0) + 659)); //#10097 + } //#10097 + $1.tab513 = $a([31, 7936, 47, 7808, 55, 7552, 59, 7040, 61, 6016, 62, 3968, 79, 7744, 87, 7488, 91, 6976, 93, 5952, 94, 3904, 103, 7360, 107, 6848, 109, 5824, 110, 3776, 115, 6592, 117, 5568, 118, 3520, 121, 5056, 122, 3008, 124, 1984, 143, 7712, 151, 7456, 155, 6944, 157, 5920, 158, 3872, 167, 7328, 171, 6816, 173, 5792, 174, 3744, 179, 6560, 181, 5536, 182, 3488, 185, 5024, 186, 2976, 188, 1952, 199, 7264, 203, 6752, 205, 5728, 206, 3680, 211, 6496, 213, 5472, 214, 3424, 217, 4960, 218, 2912, 220, 1888, 227, 6368, 229, 5344, 230, 3296, 233, 4832, 234, 2784, 236, 1760, 241, 4576, 242, 2528, 244, 1504, 248, 992, 271, 7696, 279, 7440, 283, 6928, 285, 5904, 286, 3856, 295, 7312, 299, 6800, 301, 5776, 302, 3728, 307, 6544, 309, 5520, 310, 3472, 313, 5008, 314, 2960, 316, 1936, 327, 7248, 331, 6736, 333, 5712, 334, 3664, 339, 6480, 341, 5456, 342, 3408, 345, 4944, 346, 2896, 348, 1872, 355, 6352, 357, 5328, 358, 3280, 361, 4816, 362, 2768, 364, 1744, 369, 4560, 370, 2512, 372, 1488, 376, 976, 391, 7216, 395, 6704, 397, 5680, 398, 3632, 403, 6448, 405, 5424, 406, 3376, 409, 4912, 410, 2864, 412, 1840, 419, 6320, 421, 5296, 422, 3248, 425, 4784, 426, 2736, 428, 1712, 433, 4528, 434, 2480, 436, 1456, 440, 944, 451, 6256, 453, 5232, 454, 3184, 457, 4720, 458, 2672, 460, 1648, 465, 4464, 466, 2416, 468, 1392, 472, 880, 481, 4336, 482, 2288, 484, 1264, 488, 752, 527, 7688, 535, 7432, 539, 6920, 541, 5896, 542, 3848, 551, 7304, 555, 6792, 557, 5768, 558, 3720, 563, 6536, 565, 5512, 566, 3464, 569, 5000, 570, 2952, 572, 1928, 583, 7240, 587, 6728, 589, 5704, 590, 3656, 595, 6472, 597, 5448, 598, 3400, 601, 4936, 602, 2888, 604, 1864, 611, 6344, 613, 5320, 614, 3272, 617, 4808, 618, 2760, 620, 1736, 625, 4552, 626, 2504, 628, 1480, 632, 968, 647, 7208, 651, 6696, 653, 5672, 654, 3624, 659, 6440, 661, 5416, 662, 3368, 665, 4904, 666, 2856, 668, 1832, 675, 6312, 677, 5288, 678, 3240, 681, 4776, 682, 2728, 684, 1704, 689, 4520, 690, 2472, 692, 1448, 696, 936, 707, 6248, 709, 5224, 710, 3176, 713, 4712, 714, 2664, 716, 1640, 721, 4456, 722, 2408, 724, 1384, 728, 872, 737, 4328, 738, 2280, 740, 1256, 775, 7192, 779, 6680, 781, 5656, 782, 3608, 787, 6424, 789, 5400, 790, 3352, 793, 4888, 794, 2840, 796, 1816, 803, 6296, 805, 5272, 806, 3224, 809, 4760, 810, 2712, 812, 1688, 817, 4504, 818, 2456, 820, 1432, 824, 920, 835, 6232, 837, 5208, 838, 3160, 841, 4696, 842, 2648, 844, 1624, 849, 4440, 850, 2392, 852, 1368, 865, 4312, 866, 2264, 868, 1240, 899, 6200, 901, 5176, 902, 3128, 905, 4664, 906, 2616, 908, 1592, 913, 4408, 914, 2360, 916, 1336, 929, 4280, 930, 2232, 932, 1208, 961, 4216, 962, 2168, 964, 1144, 1039, 7684, 1047, 7428, 1051, 6916, 1053, 5892, 1054, 3844, 1063, 7300, 1067, 6788, 1069, 5764, 1070, 3716, 1075, 6532, 1077, 5508, 1078, 3460, 1081, 4996, 1082, 2948, 1084, 1924, 1095, 7236, 1099, 6724, 1101, 5700, 1102, 3652, 1107, 6468, 1109, 5444, 1110, 3396, 1113, 4932, 1114, 2884, 1116, 1860, 1123, 6340, 1125, 5316, 1126, 3268, 1129, 4804, 1130, 2756, 1132, 1732, 1137, 4548, 1138, 2500, 1140, 1476, 1159, 7204, 1163, 6692, 1165, 5668, 1166, 3620, 1171, 6436, 1173, 5412, 1174, 3364, 1177, 4900, 1178, 2852, 1180, 1828, 1187, 6308, 1189, 5284, 1190, 3236, 1193, 4772, 1194, 2724, 1196, 1700, 1201, 4516, 1202, 2468, 1204, 1444, 1219, 6244, 1221, 5220, 1222, 3172, 1225, 4708, 1226, 2660, 1228, 1636, 1233, 4452, 1234, 2404, 1236, 1380, 1249, 4324, 1250, 2276, 1287, 7188, 1291, 6676, 1293, 5652, 1294, 3604, 1299, 6420, 1301, 5396, 1302, 3348, 1305, 4884, 1306, 2836, 1308, 1812, 1315, 6292, 1317, 5268, 1318, 3220, 1321, 4756, 1322, 2708, 1324, 1684, 1329, 4500, 1330, 2452, 1332, 1428, 1347, 6228, 1349, 5204, 1350, 3156, 1353, 4692, 1354, 2644, 1356, 1620, 1361, 4436, 1362, 2388, 1377, 4308, 1378, 2260, 1411, 6196, 1413, 5172, 1414, 3124, 1417, 4660, 1418, 2612, 1420, 1588, 1425, 4404, 1426, 2356, 1441, 4276, 1442, 2228, 1473, 4212, 1474, 2164, 1543, 7180, 1547, 6668, 1549, 5644, 1550, 3596, 1555, 6412, 1557, 5388, 1558, 3340, 1561, 4876, 1562, 2828, 1564, 1804, 1571, 6284, 1573, 5260, 1574, 3212, 1577, 4748, 1578, 2700, 1580, 1676, 1585, 4492, 1586, 2444, 1603, 6220, 1605, 5196, 1606, 3148, 1609, 4684, 1610, 2636, 1617, 4428, 1618, 2380, 1633, 4300, 1634, 2252, 1667, 6188, 1669, 5164, 1670, 3116, 1673, 4652, 1674, 2604, 1681, 4396, 1682, 2348, 1697, 4268, 1698, 2220, 1729, 4204, 1730, 2156, 1795, 6172, 1797, 5148, 1798, 3100, 1801, 4636, 1802, 2588, 1809, 4380, 1810, 2332, 1825, 4252, 1826, 2204, 1857, 4188, 1858, 2140, 1921, 4156, 1922, 2108, 2063, 7682, 2071, 7426, 2075, 6914, 2077, 5890, 2078, 3842, 2087, 7298, 2091, 6786, 2093, 5762, 2094, 3714, 2099, 6530, 2101, 5506, 2102, 3458, 2105, 4994, 2106, 2946, 2119, 7234, 2123, 6722, 2125, 5698, 2126, 3650, 2131, 6466, 2133, 5442, 2134, 3394, 2137, 4930, 2138, 2882, 2147, 6338, 2149, 5314, 2150, 3266, 2153, 4802, 2154, 2754, 2161, 4546, 2162, 2498, 2183, 7202, 2187, 6690, 2189, 5666, 2190, 3618, 2195, 6434, 2197, 5410, 2198, 3362, 2201, 4898, 2202, 2850, 2211, 6306, 2213, 5282, 2214, 3234, 2217, 4770, 2218, 2722, 2225, 4514, 2226, 2466, 2243, 6242, 2245, 5218, 2246, 3170, 2249, 4706, 2250, 2658, 2257, 4450, 2258, 2402, 2273, 4322, 2311, 7186, 2315, 6674, 2317, 5650, 2318, 3602, 2323, 6418, 2325, 5394, 2326, 3346, 2329, 4882, 2330, 2834, 2339, 6290, 2341, 5266, 2342, 3218, 2345, 4754, 2346, 2706, 2353, 4498, 2354, 2450, 2371, 6226, 2373, 5202, 2374, 3154, 2377, 4690, 2378, 2642, 2385, 4434, 2401, 4306, 2435, 6194, 2437, 5170, 2438, 3122, 2441, 4658, 2442, 2610, 2449, 4402, 2465, 4274, 2497, 4210, 2567, 7178, 2571, 6666, 2573, 5642, 2574, 3594, 2579, 6410, 2581, 5386, 2582, 3338, 2585, 4874, 2586, 2826, 2595, 6282, 2597, 5258, 2598, 3210, 2601, 4746, 2602, 2698, 2609, 4490, 2627, 6218, 2629, 5194, 2630, 3146, 2633, 4682, 2641, 4426, 2657, 4298, 2691, 6186, 2693, 5162, 2694, 3114, 2697, 4650, 2705, 4394, 2721, 4266, 2753, 4202, 2819, 6170, 2821, 5146, 2822, 3098, 2825, 4634, 2833, 4378, 2849, 4250, 2881, 4186, 2945, 4154, 3079, 7174, 3083, 6662, 3085, 5638, 3086, 3590, 3091, 6406, 3093, 5382, 3094, 3334, 3097, 4870, 3107, 6278, 3109, 5254, 3110, 3206, 3113, 4742, 3121, 4486, 3139, 6214, 3141, 5190, 3145, 4678, 3153, 4422, 3169, 4294, 3203, 6182, 3205, 5158, 3209, 4646, 3217, 4390, 3233, 4262, 3265, 4198, 3331, 6166, 3333, 5142, 3337, 4630, 3345, 4374, 3361, 4246, 3393, 4182, 3457, 4150, 3587, 6158, 3589, 5134, 3593, 4622, 3601, 4366, 3617, 4238, 3649, 4174, 3713, 4142, 3841, 4126, 4111, 7681, 4119, 7425, 4123, 6913, 4125, 5889, 4135, 7297, 4139, 6785, 4141, 5761, 4147, 6529, 4149, 5505, 4153, 4993, 4167, 7233, 4171, 6721, 4173, 5697, 4179, 6465, 4181, 5441, 4185, 4929, 4195, 6337, 4197, 5313, 4201, 4801, 4209, 4545, 4231, 7201, 4235, 6689, 4237, 5665, 4243, 6433, 4245, 5409, 4249, 4897, 4259, 6305, 4261, 5281, 4265, 4769, 4273, 4513, 4291, 6241, 4293, 5217, 4297, 4705, 4305, 4449, 4359, 7185, 4363, 6673, 4365, 5649, 4371, 6417, 4373, 5393, 4377, 4881, 4387, 6289, 4389, 5265, 4393, 4753, 4401, 4497, 4419, 6225, 4421, 5201, 4425, 4689, 4483, 6193, 4485, 5169, 4489, 4657, 4615, 7177, 4619, 6665, 4621, 5641, 4627, 6409, 4629, 5385, 4633, 4873, 4643, 6281, 4645, 5257, 4649, 4745, 4675, 6217, 4677, 5193, 4739, 6185, 4741, 5161, 4867, 6169, 4869, 5145, 5127, 7173, 5131, 6661, 5133, 5637, 5139, 6405, 5141, 5381, 5155, 6277, 5157, 5253, 5187, 6213, 5251, 6181, 5379, 6165, 5635, 6157, 6151, 7171, 6155, 6659, 6163, 6403, 6179, 6275, 6211, 5189, 4681, 4433, 4321, 3142, 2634, 2386, 2274, 1612, 1364, 1252, 856, 744, 496]); //#10188 + $1.tab213 = $a([3, 6144, 5, 5120, 6, 3072, 9, 4608, 10, 2560, 12, 1536, 17, 4352, 18, 2304, 20, 1280, 24, 768, 33, 4224, 34, 2176, 36, 1152, 40, 640, 48, 384, 65, 4160, 66, 2112, 68, 1088, 72, 576, 80, 320, 96, 192, 129, 4128, 130, 2080, 132, 1056, 136, 544, 144, 288, 257, 4112, 258, 2064, 260, 1040, 264, 528, 513, 4104, 514, 2056, 516, 1032, 1025, 4100, 1026, 2052, 2049, 4098, 4097, 2050, 1028, 520, 272, 160]); //#10197 + $1.chars = $a(10); //#10199 + for (var _3Z = 0; _3Z <= 9; _3Z += 1) { //#10208 + $1.i = _3Z; //#10201 + var _3c = $get($1.codewords, $1.i); //#10202 + $k[$j++] = _3c; //#10206 + if (_3c <= 1286) { //#10205 + var _3f = $get($1.tab513, $k[--$j]); //#10203 + $k[$j++] = _3f; //#10203 + } else { //#10205 + var _3i = $get($1.tab213, $f($k[--$j] - 1287)); //#10205 + $k[$j++] = _3i; //#10205 + } //#10205 + $put($1.chars, $1.i, $k[--$j]); //#10207 + } //#10207 + for (var _3m = 9; _3m >= 0; _3m -= 1) { //#10215 + $1.i = _3m; //#10211 + if (((~~Math.pow(2, $1.i)) & $1.fcs) != 0) { //#10214 + $put($1.chars, $1.i, $get($1.chars, $1.i) ^ 8191); //#10213 + } //#10213 + } //#10213 + $1.barmap = $a([7, 2, 4, 3, 1, 10, 0, 0, 9, 12, 2, 8, 5, 5, 6, 11, 8, 9, 3, 1, 0, 1, 5, 12, 2, 5, 1, 8, 4, 4, 9, 11, 6, 3, 8, 10, 3, 9, 7, 6, 5, 11, 1, 4, 8, 5, 2, 12, 9, 10, 0, 2, 7, 1, 6, 7, 3, 6, 4, 9, 0, 3, 8, 6, 6, 4, 2, 7, 1, 1, 9, 9, 7, 10, 5, 2, 4, 0, 3, 8, 6, 2, 0, 4, 8, 11, 1, 0, 9, 8, 3, 12, 2, 6, 7, 7, 5, 1, 4, 10, 1, 12, 6, 9, 7, 3, 8, 0, 5, 8, 9, 7, 4, 6, 2, 10, 3, 4, 0, 5, 8, 4, 5, 7, 7, 11, 1, 9, 6, 0, 9, 6, 0, 6, 4, 8, 2, 1, 3, 2, 5, 9, 8, 12, 4, 11, 6, 1, 9, 5, 7, 4, 3, 3, 1, 2, 0, 7, 2, 0, 1, 3, 4, 1, 6, 10, 3, 5, 8, 7, 9, 4, 2, 11, 5, 6, 0, 8, 7, 12, 4, 2, 8, 1, 5, 10, 3, 0, 9, 3, 0, 9, 6, 5, 2, 4, 7, 8, 1, 7, 5, 0, 4, 5, 2, 3, 0, 10, 6, 12, 9, 2, 3, 11, 1, 6, 8, 8, 7, 9, 5, 4, 0, 11, 1, 5, 2, 2, 9, 1, 4, 12, 8, 3, 6, 6, 7, 0, 3, 7, 4, 7, 7, 5, 0, 12, 1, 11, 2, 9, 9, 0, 6, 8, 5, 3, 3, 10, 8, 2]); //#10232 + $1.bbs = $a(65); //#10234 + $1.bhs = $a(65); //#10235 + for (var _3x = 0; _3x <= 64; _3x += 1) { //#10256 + $1.i = _3x; //#10237 + $1.dec = ($get($1.chars, $get($1.barmap, $1.i * 4)) & (~~Math.pow(2, $get($1.barmap, ($1.i * 4) + 1)))) != 0; //#10238 + $1.asc = ($get($1.chars, $get($1.barmap, ($1.i * 4) + 2)) & (~~Math.pow(2, $get($1.barmap, ($1.i * 4) + 3)))) != 0; //#10239 + if ((!$1.dec) && (!$1.asc)) { //#10243 + $put($1.bbs, $1.i, (3 * $1.height) / 8); //#10241 + $put($1.bhs, $1.i, (2 * $1.height) / 8); //#10242 + } //#10242 + if ((!$1.dec) && $1.asc) { //#10247 + $put($1.bbs, $1.i, (3 * $1.height) / 8); //#10245 + $put($1.bhs, $1.i, (5 * $1.height) / 8); //#10246 + } //#10246 + if ($1.dec && (!$1.asc)) { //#10251 + $put($1.bbs, $1.i, (0 * $1.height) / 8); //#10249 + $put($1.bhs, $1.i, (5 * $1.height) / 8); //#10250 + } //#10250 + if ($1.dec && $1.asc) { //#10255 + $put($1.bbs, $1.i, (0 * $1.height) / 8); //#10253 + $put($1.bhs, $1.i, (8 * $1.height) / 8); //#10254 + } //#10254 + } //#10254 + $k[$j++] = Infinity; //#10269 + var _4k = $1.bbs; //#10261 + var _4l = $1.bhs; //#10262 + $k[$j++] = Infinity; //#10263 + for (var _4n = 0, _4o = $1.bhs.length - 1; _4n < _4o; _4n++) { //#10263 + $k[$j++] = 1.44; //#10263 + $k[$j++] = 1.872; //#10263 + } //#10263 + $k[$j++] = 1.44; //#10263 + var _4p = $a(); //#10263 + $k[$j++] = 'ren'; //#10269 + $k[$j++] = $0.renlinear; //#10269 + $k[$j++] = 'bbs'; //#10269 + $k[$j++] = _4k; //#10269 + $k[$j++] = 'bhs'; //#10269 + $k[$j++] = _4l; //#10269 + $k[$j++] = 'sbs'; //#10269 + $k[$j++] = _4p; //#10269 + $k[$j++] = 'txt'; //#10269 + $k[$j++] = $1.txt; //#10269 + $k[$j++] = 'textxalign'; //#10269 + $k[$j++] = "left"; //#10269 + $k[$j++] = 'textfont'; //#10269 + $k[$j++] = "OCR-B"; //#10269 + $k[$j++] = 'textyoffset'; //#10269 + $k[$j++] = 1; //#10269 + $k[$j++] = 'textxoffset'; //#10269 + $k[$j++] = -0.3; //#10269 + $k[$j++] = 'opt'; //#10269 + $k[$j++] = $1.options; //#10269 + var _4s = $d(); //#10269 + $k[$j++] = _4s; //#10272 + if (!$1.dontdraw) { //#10272 + $0.renlinear(); //#10272 + } //#10272 }; $0.postnet = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.validatecheck = false; - $1.includecheckintext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = .125; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _B = $k[--$j]; - $k[$j++] = $f(_B - 1); - } - var _C = $k[--$j]; - $1[$k[--$j]] = _C; - if ($1.barlen != 5 && $1.barlen != 9 && $1.barlen != 11) { - $k[$j++] = "bwipp.postnetBadLength"; - $k[$j++] = "USPS POSTNET must be 5, 9 or 11 digits excluding check digit"; - $0.raiseerror(); - } - $forall($1.barcode, function() { - var _I = $k[--$j]; - if (_I < 48 || _I > 57) { - $k[$j++] = "bwipp.postnetBadCharacter"; - $k[$j++] = "USPS POSTNET must contain only digits"; - $0.raiseerror(); - } - }); - $1.barchars = "0123456789"; - $1.checksum = 0; - for (var _L = 0, _K = $f($1.barlen - 1); _L <= _K; _L += 1) { - $1.i = _L; - $1.checksum = $f($1.checksum + $f($get($1.barcode, $1.i) - 48)); - } - $1.checksum = $f(10 - $1.checksum % 10) % 10; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.postnetBadCheckDigit"; - $k[$j++] = "Incorrect USPS POSTNET check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - $1.encs = $a([ "55222", "22255", "22525", "22552", "25225", "25252", "25522", "52225", "52252", "52522", "5", "5" ]); - $1.bhs = $a($f($1.barlen * 5 + 7)); - $1.txt = $a($f($1.barlen + 1)); - $1.enc = $get($1.encs, 10); - $1.heights = $a($1.enc.length); - for (var _m = 0, _l = $1.enc.length - 1; _m <= _l; _m += 1) { - $1.j = _m; - $put($1.heights, $1.j, ~~$z($geti($1.enc, $1.j, 1)) * $1.height / 5); - } - $puti($1.bhs, 0, $1.heights); - for (var _x = 0, _w = $f($1.barlen - 1); _x <= _w; _x += 1) { - $1.i = _x; - $1.enc = $get($1.encs, $f($get($1.barcode, $1.i) - 48)); - $1.heights = $a($1.enc.length); - for (var _17 = 0, _16 = $1.enc.length - 1; _17 <= _16; _17 += 1) { - $1.j = _17; - $put($1.heights, $1.j, ~~$z($geti($1.enc, $1.j, 1)) * $1.height / 5); - } - $puti($1.bhs, $1.i * 5 + 1, $1.heights); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), ($1.i * 5 + 1) * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $1.enc = $get($1.encs, $1.checksum); - $1.heights = $a($1.enc.length); - for (var _1Y = 0, _1X = $1.enc.length - 1; _1Y <= _1X; _1Y += 1) { - $1.j = _1Y; - $put($1.heights, $1.j, ~~$z($geti($1.enc, $1.j, 1)) * $1.height / 5); - } - $puti($1.bhs, $f($1.barlen * 5 + 1), $1.heights); - if ($1.includecheckintext) { - $put($1.txt, $1.barlen, $a([ $geti($1.barchars, $1.checksum, 1), $f($1.barlen * 5 + 1) * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $1.barlen, $a([ " ", $f($1.barlen * 5 + 1) * 72 / 25, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $1.enc = $get($1.encs, 11); - $1.heights = $a($1.enc.length); - for (var _26 = 0, _25 = $1.enc.length - 1; _26 <= _25; _26 += 1) { - $1.j = _26; - $put($1.heights, $1.j, ~~$z($geti($1.enc, $1.j, 1)) * $1.height / 5); - } - $puti($1.bhs, $f($1.barlen * 5 + 6), $1.heights); - $k[$j++] = Infinity; - var _2G = $1.bhs; - $k[$j++] = Infinity; - for (var _2I = 0, _2J = $1.bhs.length; _2I < _2J; _2I++) { - $k[$j++] = 0; - } - var _2K = $a(); - $k[$j++] = Infinity; - for (var _2M = 0, _2N = $1.bhs.length - 1; _2M < _2N; _2M++) { - $k[$j++] = 1.44; - $k[$j++] = 1.872; - } - $k[$j++] = 1.44; - var _2O = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "bhs"; - $k[$j++] = _2G; - $k[$j++] = "bbs"; - $k[$j++] = _2K; - $k[$j++] = "sbs"; - $k[$j++] = _2O; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _2S = $d(); - $k[$j++] = _2S; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#10301 + $1.options = $k[--$j]; //#10303 + $1.barcode = $k[--$j]; //#10304 + $1.dontdraw = false; //#10306 + $1.includetext = false; //#10307 + $1.validatecheck = false; //#10308 + $1.includecheckintext = false; //#10309 + $1.textfont = "OCR-B"; //#10310 + $1.textsize = 10; //#10311 + $1.textyoffset = -8; //#10312 + $1.height = 0.125; //#10313 + $forall($1.options, function() { //#10324 + var _3 = $k[--$j]; //#10324 + $1[$k[--$j]] = _3; //#10324 + }); //#10324 + $1.textfont = "" + $1.textfont; //#10326 + $1.textsize = +$1.textsize; //#10327 + $1.textyoffset = +$1.textyoffset; //#10328 + $1.height = +$1.height; //#10329 + $k[$j++] = 'barlen'; //#10331 + $k[$j++] = $1.barcode.length; //#10331 + if ($1.validatecheck) { //#10331 + var _B = $k[--$j]; //#10331 + $k[$j++] = $f(_B - 1); //#10331 + } //#10331 + var _C = $k[--$j]; //#10331 + $1[$k[--$j]] = _C; //#10331 + if ((($1.barlen != 5) && ($1.barlen != 9)) && ($1.barlen != 11)) { //#10336 + $k[$j++] = 'bwipp.postnetBadLength'; //#10335 + $k[$j++] = "USPS POSTNET must be 5, 9 or 11 digits excluding check digit"; //#10335 + $0.raiseerror(); //#10335 + } //#10335 + $forall($1.barcode, function() { //#10341 + var _I = $k[--$j]; //#10338 + if ((_I < 48) || (_I > 57)) { //#10340 + $k[$j++] = 'bwipp.postnetBadCharacter'; //#10339 + $k[$j++] = "USPS POSTNET must contain only digits"; //#10339 + $0.raiseerror(); //#10339 + } //#10339 + }); //#10339 + $1.barchars = "0123456789"; //#10344 + $1.checksum = 0; //#10346 + for (var _L = 0, _K = $f($1.barlen - 1); _L <= _K; _L += 1) { //#10350 + $1.i = _L; //#10348 + $1.checksum = $f($1.checksum + $f($get($1.barcode, $1.i) - 48)); //#10349 + } //#10349 + $1.checksum = ($f(10 - ($1.checksum % 10))) % 10; //#10351 + if ($1.validatecheck) { //#10357 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#10355 + $k[$j++] = 'bwipp.postnetBadCheckDigit'; //#10354 + $k[$j++] = "Incorrect USPS POSTNET check digit provided"; //#10354 + $0.raiseerror(); //#10354 + } //#10354 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#10356 + } //#10356 + $1.encs = $a(["55222", "22255", "22525", "22552", "25225", "25252", "25522", "52225", "52252", "52522", "5", "5"]); //#10364 + $1.bhs = $a($f(($1.barlen * 5) + 7)); //#10366 + $1.txt = $a($f($1.barlen + 1)); //#10367 + $1.enc = $get($1.encs, 10); //#10370 + $1.heights = $a($1.enc.length); //#10371 + for (var _m = 0, _l = $1.enc.length - 1; _m <= _l; _m += 1) { //#10375 + $1.j = _m; //#10373 + $put($1.heights, $1.j, ((~~$z($geti($1.enc, $1.j, 1))) * $1.height) / 5); //#10374 + } //#10374 + $puti($1.bhs, 0, $1.heights); //#10376 + for (var _x = 0, _w = $f($1.barlen - 1); _x <= _w; _x += 1) { //#10388 + $1.i = _x; //#10379 + $1.enc = $get($1.encs, $f($get($1.barcode, $1.i) - 48)); //#10380 + $1.heights = $a($1.enc.length); //#10381 + for (var _17 = 0, _16 = $1.enc.length - 1; _17 <= _16; _17 += 1) { //#10385 + $1.j = _17; //#10383 + $put($1.heights, $1.j, ((~~$z($geti($1.enc, $1.j, 1))) * $1.height) / 5); //#10384 + } //#10384 + $puti($1.bhs, ($1.i * 5) + 1, $1.heights); //#10386 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), (($1.i * 5) + 1) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#10387 + } //#10387 + $1.enc = $get($1.encs, $1.checksum); //#10391 + $1.heights = $a($1.enc.length); //#10392 + for (var _1Y = 0, _1X = $1.enc.length - 1; _1Y <= _1X; _1Y += 1) { //#10396 + $1.j = _1Y; //#10394 + $put($1.heights, $1.j, ((~~$z($geti($1.enc, $1.j, 1))) * $1.height) / 5); //#10395 + } //#10395 + $puti($1.bhs, $f(($1.barlen * 5) + 1), $1.heights); //#10397 + if ($1.includecheckintext) { //#10402 + $put($1.txt, $1.barlen, $a([$geti($1.barchars, $1.checksum, 1), ($f(($1.barlen * 5) + 1)) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#10400 + } else { //#10402 + $put($1.txt, $1.barlen, $a([" ", (($f(($1.barlen * 5) + 1)) * 72) / 25, $1.textyoffset, $1.textfont, $1.textsize])); //#10402 + } //#10402 + $1.enc = $get($1.encs, 11); //#10406 + $1.heights = $a($1.enc.length); //#10407 + for (var _26 = 0, _25 = $1.enc.length - 1; _26 <= _25; _26 += 1) { //#10411 + $1.j = _26; //#10409 + $put($1.heights, $1.j, ((~~$z($geti($1.enc, $1.j, 1))) * $1.height) / 5); //#10410 + } //#10410 + $puti($1.bhs, $f(($1.barlen * 5) + 6), $1.heights); //#10412 + $k[$j++] = Infinity; //#10423 + var _2G = $1.bhs; //#10417 + $k[$j++] = Infinity; //#10418 + for (var _2I = 0, _2J = $1.bhs.length; _2I < _2J; _2I++) { //#10418 + $k[$j++] = 0; //#10418 + } //#10418 + var _2K = $a(); //#10418 + $k[$j++] = Infinity; //#10419 + for (var _2M = 0, _2N = $1.bhs.length - 1; _2M < _2N; _2M++) { //#10419 + $k[$j++] = 1.44; //#10419 + $k[$j++] = 1.872; //#10419 + } //#10419 + $k[$j++] = 1.44; //#10419 + var _2O = $a(); //#10419 + $k[$j++] = 'ren'; //#10422 + $k[$j++] = $0.renlinear; //#10422 + $k[$j++] = 'bhs'; //#10422 + $k[$j++] = _2G; //#10422 + $k[$j++] = 'bbs'; //#10422 + $k[$j++] = _2K; //#10422 + $k[$j++] = 'sbs'; //#10422 + $k[$j++] = _2O; //#10422 + if ($1.includetext) { //#10422 + $k[$j++] = 'txt'; //#10421 + $k[$j++] = $1.txt; //#10421 + } //#10421 + $k[$j++] = 'opt'; //#10423 + $k[$j++] = $1.options; //#10423 + var _2S = $d(); //#10423 + $k[$j++] = _2S; //#10426 + if (!$1.dontdraw) { //#10426 + $0.renlinear(); //#10426 + } //#10426 }; $0.planet = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.validatecheck = false; - $1.includecheckintext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = .125; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _B = $k[--$j]; - $k[$j++] = $f(_B - 1); - } - var _C = $k[--$j]; - $1[$k[--$j]] = _C; - if ($1.barlen != 11 && $1.barlen != 13) { - $k[$j++] = "bwipp.planetBadLength"; - $k[$j++] = "USPS PLANET must be 11 or 13 digits excluding check digit"; - $0.raiseerror(); - } - $forall($1.barcode, function() { - var _H = $k[--$j]; - if (_H < 48 || _H > 57) { - $k[$j++] = "bwipp.planetBadCharacter"; - $k[$j++] = "USPS PLANET must contain only digits"; - $0.raiseerror(); - } - }); - $1.barchars = "0123456789"; - $1.checksum = 0; - for (var _K = 0, _J = $f($1.barlen - 1); _K <= _J; _K += 1) { - $1.i = _K; - $1.checksum = $f($1.checksum + $f($get($1.barcode, $1.i) - 48)); - } - $1.checksum = $f(10 - $1.checksum % 10) % 10; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.planetBadCheckDigit"; - $k[$j++] = "Incorrect USPS PLANET check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - $1.encs = $a([ "22555", "55522", "55252", "55225", "52552", "52525", "52255", "25552", "25525", "25255", "5", "5" ]); - $1.bhs = $a($f($1.barlen * 5 + 7)); - $1.txt = $a($f($1.barlen + 1)); - $1.enc = $get($1.encs, 10); - $1.heights = $a($1.enc.length); - for (var _l = 0, _k = $1.enc.length - 1; _l <= _k; _l += 1) { - $1.j = _l; - $put($1.heights, $1.j, ~~$z($geti($1.enc, $1.j, 1)) * $1.height / 5); - } - $puti($1.bhs, 0, $1.heights); - for (var _w = 0, _v = $f($1.barlen - 1); _w <= _v; _w += 1) { - $1.i = _w; - $1.enc = $get($1.encs, $f($get($1.barcode, $1.i) - 48)); - $1.heights = $a($1.enc.length); - for (var _16 = 0, _15 = $1.enc.length - 1; _16 <= _15; _16 += 1) { - $1.j = _16; - $put($1.heights, $1.j, ~~$z($geti($1.enc, $1.j, 1)) * $1.height / 5); - } - $puti($1.bhs, $1.i * 5 + 1, $1.heights); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), ($1.i * 5 + 1) * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $1.enc = $get($1.encs, $1.checksum); - $1.heights = $a($1.enc.length); - for (var _1X = 0, _1W = $1.enc.length - 1; _1X <= _1W; _1X += 1) { - $1.j = _1X; - $put($1.heights, $1.j, ~~$z($geti($1.enc, $1.j, 1)) * $1.height / 5); - } - $puti($1.bhs, $f($1.barlen * 5 + 1), $1.heights); - if ($1.includecheckintext) { - $put($1.txt, $1.barlen, $a([ $geti($1.barchars, $1.checksum, 1), $f($1.barlen * 5 + 1) * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $1.barlen, $a([ " ", $f($1.barlen * 5 + 1) * 72 / 25, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $1.enc = $get($1.encs, 11); - $1.heights = $a($1.enc.length); - for (var _25 = 0, _24 = $1.enc.length - 1; _25 <= _24; _25 += 1) { - $1.j = _25; - $put($1.heights, $1.j, ~~$z($geti($1.enc, $1.j, 1)) * $1.height / 5); - } - $puti($1.bhs, $f($1.barlen * 5 + 6), $1.heights); - $k[$j++] = Infinity; - var _2F = $1.bhs; - $k[$j++] = Infinity; - for (var _2H = 0, _2I = $1.bhs.length; _2H < _2I; _2H++) { - $k[$j++] = 0; - } - var _2J = $a(); - $k[$j++] = Infinity; - for (var _2L = 0, _2M = $1.bhs.length - 1; _2L < _2M; _2L++) { - $k[$j++] = 1.44; - $k[$j++] = 1.872; - } - $k[$j++] = 1.44; - var _2N = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "bhs"; - $k[$j++] = _2F; - $k[$j++] = "bbs"; - $k[$j++] = _2J; - $k[$j++] = "sbs"; - $k[$j++] = _2N; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _2R = $d(); - $k[$j++] = _2R; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#10455 + $1.options = $k[--$j]; //#10457 + $1.barcode = $k[--$j]; //#10458 + $1.dontdraw = false; //#10460 + $1.includetext = false; //#10461 + $1.validatecheck = false; //#10462 + $1.includecheckintext = false; //#10463 + $1.textfont = "OCR-B"; //#10464 + $1.textsize = 10; //#10465 + $1.textyoffset = -8; //#10466 + $1.height = 0.125; //#10467 + $forall($1.options, function() { //#10478 + var _3 = $k[--$j]; //#10478 + $1[$k[--$j]] = _3; //#10478 + }); //#10478 + $1.textfont = "" + $1.textfont; //#10480 + $1.textsize = +$1.textsize; //#10481 + $1.textyoffset = +$1.textyoffset; //#10482 + $1.height = +$1.height; //#10483 + $k[$j++] = 'barlen'; //#10485 + $k[$j++] = $1.barcode.length; //#10485 + if ($1.validatecheck) { //#10485 + var _B = $k[--$j]; //#10485 + $k[$j++] = $f(_B - 1); //#10485 + } //#10485 + var _C = $k[--$j]; //#10485 + $1[$k[--$j]] = _C; //#10485 + if (($1.barlen != 11) && ($1.barlen != 13)) { //#10490 + $k[$j++] = 'bwipp.planetBadLength'; //#10489 + $k[$j++] = "USPS PLANET must be 11 or 13 digits excluding check digit"; //#10489 + $0.raiseerror(); //#10489 + } //#10489 + $forall($1.barcode, function() { //#10495 + var _H = $k[--$j]; //#10492 + if ((_H < 48) || (_H > 57)) { //#10494 + $k[$j++] = 'bwipp.planetBadCharacter'; //#10493 + $k[$j++] = "USPS PLANET must contain only digits"; //#10493 + $0.raiseerror(); //#10493 + } //#10493 + }); //#10493 + $1.barchars = "0123456789"; //#10498 + $1.checksum = 0; //#10501 + for (var _K = 0, _J = $f($1.barlen - 1); _K <= _J; _K += 1) { //#10505 + $1.i = _K; //#10503 + $1.checksum = $f($1.checksum + $f($get($1.barcode, $1.i) - 48)); //#10504 + } //#10504 + $1.checksum = ($f(10 - ($1.checksum % 10))) % 10; //#10506 + if ($1.validatecheck) { //#10512 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#10510 + $k[$j++] = 'bwipp.planetBadCheckDigit'; //#10509 + $k[$j++] = "Incorrect USPS PLANET check digit provided"; //#10509 + $0.raiseerror(); //#10509 + } //#10509 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#10511 + } //#10511 + $1.encs = $a(["22555", "55522", "55252", "55225", "52552", "52525", "52255", "25552", "25525", "25255", "5", "5"]); //#10519 + $1.bhs = $a($f(($1.barlen * 5) + 7)); //#10521 + $1.txt = $a($f($1.barlen + 1)); //#10522 + $1.enc = $get($1.encs, 10); //#10525 + $1.heights = $a($1.enc.length); //#10526 + for (var _l = 0, _k = $1.enc.length - 1; _l <= _k; _l += 1) { //#10530 + $1.j = _l; //#10528 + $put($1.heights, $1.j, ((~~$z($geti($1.enc, $1.j, 1))) * $1.height) / 5); //#10529 + } //#10529 + $puti($1.bhs, 0, $1.heights); //#10531 + for (var _w = 0, _v = $f($1.barlen - 1); _w <= _v; _w += 1) { //#10543 + $1.i = _w; //#10534 + $1.enc = $get($1.encs, $f($get($1.barcode, $1.i) - 48)); //#10535 + $1.heights = $a($1.enc.length); //#10536 + for (var _16 = 0, _15 = $1.enc.length - 1; _16 <= _15; _16 += 1) { //#10540 + $1.j = _16; //#10538 + $put($1.heights, $1.j, ((~~$z($geti($1.enc, $1.j, 1))) * $1.height) / 5); //#10539 + } //#10539 + $puti($1.bhs, ($1.i * 5) + 1, $1.heights); //#10541 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), (($1.i * 5) + 1) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#10542 + } //#10542 + $1.enc = $get($1.encs, $1.checksum); //#10546 + $1.heights = $a($1.enc.length); //#10547 + for (var _1X = 0, _1W = $1.enc.length - 1; _1X <= _1W; _1X += 1) { //#10551 + $1.j = _1X; //#10549 + $put($1.heights, $1.j, ((~~$z($geti($1.enc, $1.j, 1))) * $1.height) / 5); //#10550 + } //#10550 + $puti($1.bhs, $f(($1.barlen * 5) + 1), $1.heights); //#10552 + if ($1.includecheckintext) { //#10557 + $put($1.txt, $1.barlen, $a([$geti($1.barchars, $1.checksum, 1), ($f(($1.barlen * 5) + 1)) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#10555 + } else { //#10557 + $put($1.txt, $1.barlen, $a([" ", (($f(($1.barlen * 5) + 1)) * 72) / 25, $1.textyoffset, $1.textfont, $1.textsize])); //#10557 + } //#10557 + $1.enc = $get($1.encs, 11); //#10561 + $1.heights = $a($1.enc.length); //#10562 + for (var _25 = 0, _24 = $1.enc.length - 1; _25 <= _24; _25 += 1) { //#10566 + $1.j = _25; //#10564 + $put($1.heights, $1.j, ((~~$z($geti($1.enc, $1.j, 1))) * $1.height) / 5); //#10565 + } //#10565 + $puti($1.bhs, $f(($1.barlen * 5) + 6), $1.heights); //#10567 + $k[$j++] = Infinity; //#10578 + var _2F = $1.bhs; //#10572 + $k[$j++] = Infinity; //#10573 + for (var _2H = 0, _2I = $1.bhs.length; _2H < _2I; _2H++) { //#10573 + $k[$j++] = 0; //#10573 + } //#10573 + var _2J = $a(); //#10573 + $k[$j++] = Infinity; //#10574 + for (var _2L = 0, _2M = $1.bhs.length - 1; _2L < _2M; _2L++) { //#10574 + $k[$j++] = 1.44; //#10574 + $k[$j++] = 1.872; //#10574 + } //#10574 + $k[$j++] = 1.44; //#10574 + var _2N = $a(); //#10574 + $k[$j++] = 'ren'; //#10577 + $k[$j++] = $0.renlinear; //#10577 + $k[$j++] = 'bhs'; //#10577 + $k[$j++] = _2F; //#10577 + $k[$j++] = 'bbs'; //#10577 + $k[$j++] = _2J; //#10577 + $k[$j++] = 'sbs'; //#10577 + $k[$j++] = _2N; //#10577 + if ($1.includetext) { //#10577 + $k[$j++] = 'txt'; //#10576 + $k[$j++] = $1.txt; //#10576 + } //#10576 + $k[$j++] = 'opt'; //#10578 + $k[$j++] = $1.options; //#10578 + var _2R = $d(); //#10578 + $k[$j++] = _2R; //#10581 + if (!$1.dontdraw) { //#10581 + $0.renlinear(); //#10581 + } //#10581 }; $0.royalmail = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.validatecheck = false; - $1.includecheckintext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = .175; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.barchars = "ZUVWXY501234B6789AHCDEFGNIJKLMTOPQRS"; - $1.charvals = new Map(); - for (var _9 = 0; _9 <= 35; _9 += 1) { - $put($1.charvals, $geti($1.barchars, _9, 1), _9); - } - for (var _F = 0, _E = $1.barcode.length - 1; _F <= _E; _F += 1) { - var _J = $get($1.charvals, $geti($1.barcode, _F, 1)) !== undefined; - if (!_J) { - $k[$j++] = "bwipp.royalmailBadCharacter"; - $k[$j++] = "RM4SCC must contain only capital letters and digits"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _M = $k[--$j]; - $k[$j++] = $f(_M - 1); - } - var _N = $k[--$j]; - $1[$k[--$j]] = _N; - $1.checksumrow = 0; - $1.checksumcol = 0; - for (var _R = 0, _Q = $f($1.barlen - 1); _R <= _Q; _R += 1) { - $1.i = _R; - $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); - $1.checksumrow = $1.checksumrow + ~~($1.indx / 6); - $1.checksumcol = $f($1.checksumcol + $1.indx % 6); - } - $1.checksum = $f($1.checksumrow % 6 * 6 + $1.checksumcol % 6); - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.royalmailBadCheckDigit"; - $k[$j++] = "Incorrect RM4SCC check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - $1.encs = $a([ "3300", "2211", "2301", "2310", "3201", "3210", "1122", "0033", "0123", "0132", "1023", "1032", "1302", "0213", "0303", "0312", "1203", "1212", "1320", "0231", "0321", "0330", "1221", "1230", "3102", "2013", "2103", "2112", "3003", "3012", "3120", "2031", "2121", "2130", "3021", "3030", "2", "3" ]); - $1.encstr = $s($f($1.barlen * 4 + 6)); - $1.txt = $a($f($1.barlen + 1)); - $puti($1.encstr, 0, $get($1.encs, 36)); - for (var _x = 0, _w = $f($1.barlen - 1); _x <= _w; _x += 1) { - $1.i = _x; - $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); - $puti($1.encstr, $1.i * 4 + 1, $get($1.encs, $1.indx)); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), ($1.i * 4 + 1) * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $puti($1.encstr, $f($1.barlen * 4 + 1), $get($1.encs, $1.checksum)); - if ($1.includecheckintext) { - $put($1.txt, $1.barlen, $a([ $geti($1.barchars, $1.checksum, 1), $f($1.barlen * 4 + 1) * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $1.barlen, $a([ " ", $f($1.barlen * 4 + 1) * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $puti($1.encstr, $f($1.barlen * 4 + 5), $get($1.encs, 37)); - $1.bbs = $a($1.encstr.length); - $1.bhs = $a($1.encstr.length); - for (var _1p = 0, _1o = $1.encstr.length - 1; _1p <= _1o; _1p += 1) { - $1.i = _1p; - $1.enc = $geti($1.encstr, $1.i, 1); - if ($eq($1.enc, "0")) { - $put($1.bbs, $1.i, 3 * $1.height / 8); - $put($1.bhs, $1.i, 2 * $1.height / 8); - } - if ($eq($1.enc, "1")) { - $put($1.bbs, $1.i, 0 * $1.height / 8); - $put($1.bhs, $1.i, 5 * $1.height / 8); - } - if ($eq($1.enc, "2")) { - $put($1.bbs, $1.i, 3 * $1.height / 8); - $put($1.bhs, $1.i, 5 * $1.height / 8); - } - if ($eq($1.enc, "3")) { - $put($1.bbs, $1.i, 0 * $1.height / 8); - $put($1.bhs, $1.i, 8 * $1.height / 8); - } - } - $k[$j++] = Infinity; - var _2L = $1.bbs; - var _2M = $1.bhs; - $k[$j++] = Infinity; - for (var _2O = 0, _2P = $1.bhs.length - 1; _2O < _2P; _2O++) { - $k[$j++] = 1.44; - $k[$j++] = 1.872; - } - $k[$j++] = 1.44; - var _2Q = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "bbs"; - $k[$j++] = _2L; - $k[$j++] = "bhs"; - $k[$j++] = _2M; - $k[$j++] = "sbs"; - $k[$j++] = _2Q; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _2U = $d(); - $k[$j++] = _2U; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#10610 + $1.options = $k[--$j]; //#10612 + $1.barcode = $k[--$j]; //#10613 + $1.dontdraw = false; //#10615 + $1.includetext = false; //#10616 + $1.validatecheck = false; //#10617 + $1.includecheckintext = false; //#10618 + $1.textfont = "OCR-B"; //#10619 + $1.textsize = 10; //#10620 + $1.textyoffset = -8; //#10621 + $1.height = 0.175; //#10622 + $forall($1.options, function() { //#10633 + var _3 = $k[--$j]; //#10633 + $1[$k[--$j]] = _3; //#10633 + }); //#10633 + $1.textfont = "" + $1.textfont; //#10635 + $1.textsize = +$1.textsize; //#10636 + $1.textyoffset = +$1.textyoffset; //#10637 + $1.height = +$1.height; //#10638 + $1.barchars = "ZUVWXY501234B6789AHCDEFGNIJKLMTOPQRS"; //#10641 + $1.charvals = new Map; //#10642 + for (var _9 = 0; _9 <= 35; _9 += 1) { //#10643 + $put($1.charvals, $geti($1.barchars, _9, 1), _9); //#10643 + } //#10643 + for (var _F = 0, _E = $1.barcode.length - 1; _F <= _E; _F += 1) { //#10650 + var _J = $get($1.charvals, $geti($1.barcode, _F, 1)) !== undefined; //#10647 + if (!_J) { //#10649 + $k[$j++] = 'bwipp.royalmailBadCharacter'; //#10648 + $k[$j++] = "RM4SCC must contain only capital letters and digits"; //#10648 + $0.raiseerror(); //#10648 + } //#10648 + } //#10648 + $k[$j++] = 'barlen'; //#10652 + $k[$j++] = $1.barcode.length; //#10652 + if ($1.validatecheck) { //#10652 + var _M = $k[--$j]; //#10652 + $k[$j++] = $f(_M - 1); //#10652 + } //#10652 + var _N = $k[--$j]; //#10652 + $1[$k[--$j]] = _N; //#10652 + $1.checksumrow = 0; //#10654 + $1.checksumcol = 0; //#10655 + for (var _R = 0, _Q = $f($1.barlen - 1); _R <= _Q; _R += 1) { //#10661 + $1.i = _R; //#10657 + $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); //#10658 + $1.checksumrow = $1.checksumrow + (~~($1.indx / 6)); //#10659 + $1.checksumcol = $f($1.checksumcol + ($1.indx % 6)); //#10660 + } //#10660 + $1.checksum = $f((($1.checksumrow % 6) * 6) + ($1.checksumcol % 6)); //#10662 + if ($1.validatecheck) { //#10668 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#10666 + $k[$j++] = 'bwipp.royalmailBadCheckDigit'; //#10665 + $k[$j++] = "Incorrect RM4SCC check digit provided"; //#10665 + $0.raiseerror(); //#10665 + } //#10665 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#10667 + } //#10667 + $1.encs = $a(["3300", "2211", "2301", "2310", "3201", "3210", "1122", "0033", "0123", "0132", "1023", "1032", "1302", "0213", "0303", "0312", "1203", "1212", "1320", "0231", "0321", "0330", "1221", "1230", "3102", "2013", "2103", "2112", "3003", "3012", "3120", "2031", "2121", "2130", "3021", "3030", "2", "3"]); //#10679 + $1.encstr = $s($f(($1.barlen * 4) + 6)); //#10681 + $1.txt = $a($f($1.barlen + 1)); //#10682 + $puti($1.encstr, 0, $get($1.encs, 36)); //#10685 + for (var _x = 0, _w = $f($1.barlen - 1); _x <= _w; _x += 1) { //#10692 + $1.i = _x; //#10688 + $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); //#10689 + $puti($1.encstr, ($1.i * 4) + 1, $get($1.encs, $1.indx)); //#10690 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), (($1.i * 4) + 1) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#10691 + } //#10691 + $puti($1.encstr, $f(($1.barlen * 4) + 1), $get($1.encs, $1.checksum)); //#10695 + if ($1.includecheckintext) { //#10699 + $put($1.txt, $1.barlen, $a([$geti($1.barchars, $1.checksum, 1), ($f(($1.barlen * 4) + 1)) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#10697 + } else { //#10699 + $put($1.txt, $1.barlen, $a([" ", ($f(($1.barlen * 4) + 1)) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#10699 + } //#10699 + $puti($1.encstr, $f(($1.barlen * 4) + 5), $get($1.encs, 37)); //#10703 + $1.bbs = $a($1.encstr.length); //#10705 + $1.bhs = $a($1.encstr.length); //#10706 + for (var _1p = 0, _1o = $1.encstr.length - 1; _1p <= _1o; _1p += 1) { //#10726 + $1.i = _1p; //#10708 + $1.enc = $geti($1.encstr, $1.i, 1); //#10709 + if ($eq($1.enc, "0")) { //#10713 + $put($1.bbs, $1.i, (3 * $1.height) / 8); //#10711 + $put($1.bhs, $1.i, (2 * $1.height) / 8); //#10712 + } //#10712 + if ($eq($1.enc, "1")) { //#10717 + $put($1.bbs, $1.i, (0 * $1.height) / 8); //#10715 + $put($1.bhs, $1.i, (5 * $1.height) / 8); //#10716 + } //#10716 + if ($eq($1.enc, "2")) { //#10721 + $put($1.bbs, $1.i, (3 * $1.height) / 8); //#10719 + $put($1.bhs, $1.i, (5 * $1.height) / 8); //#10720 + } //#10720 + if ($eq($1.enc, "3")) { //#10725 + $put($1.bbs, $1.i, (0 * $1.height) / 8); //#10723 + $put($1.bhs, $1.i, (8 * $1.height) / 8); //#10724 + } //#10724 + } //#10724 + $k[$j++] = Infinity; //#10737 + var _2L = $1.bbs; //#10731 + var _2M = $1.bhs; //#10732 + $k[$j++] = Infinity; //#10733 + for (var _2O = 0, _2P = $1.bhs.length - 1; _2O < _2P; _2O++) { //#10733 + $k[$j++] = 1.44; //#10733 + $k[$j++] = 1.872; //#10733 + } //#10733 + $k[$j++] = 1.44; //#10733 + var _2Q = $a(); //#10733 + $k[$j++] = 'ren'; //#10736 + $k[$j++] = $0.renlinear; //#10736 + $k[$j++] = 'bbs'; //#10736 + $k[$j++] = _2L; //#10736 + $k[$j++] = 'bhs'; //#10736 + $k[$j++] = _2M; //#10736 + $k[$j++] = 'sbs'; //#10736 + $k[$j++] = _2Q; //#10736 + if ($1.includetext) { //#10736 + $k[$j++] = 'txt'; //#10735 + $k[$j++] = $1.txt; //#10735 + } //#10735 + $k[$j++] = 'opt'; //#10737 + $k[$j++] = $1.options; //#10737 + var _2U = $d(); //#10737 + $k[$j++] = _2U; //#10740 + if (!$1.dontdraw) { //#10740 + $0.renlinear(); //#10740 + } //#10740 }; $0.auspost = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = .175; - $1.custinfoenc = "character"; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.encs = $a([ "000", "001", "002", "010", "011", "012", "020", "021", "022", "100", "101", "102", "110", "111", "112", "120", "121", "122", "200", "201", "202", "210", "211", "212", "220", "221", "222", "300", "301", "302", "310", "311", "312", "320", "321", "322", "023", "030", "031", "032", "033", "103", "113", "123", "130", "131", "132", "133", "203", "213", "223", "230", "231", "232", "233", "303", "313", "323", "330", "331", "332", "333", "003", "013", "00", "01", "02", "10", "11", "12", "20", "21", "22", "30", "13", "3" ]); - $1.barchars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz #"; - $1.barlen = $1.barcode.length; - if ($eq($geti($1.barcode, 0, 2), "11")) { - $k[$j++] = 37; - } - if ($eq($geti($1.barcode, 0, 2), "45")) { - $k[$j++] = 37; - } - if ($eq($geti($1.barcode, 0, 2), "59")) { - $k[$j++] = 52; - } - if ($eq($geti($1.barcode, 0, 2), "62")) { - $k[$j++] = 67; - } - $1.encstr = $s($k[--$j]); - $1.txt = $a($1.barlen - 2); - $puti($1.encstr, 0, $get($1.encs, 74)); - for (var _Q = 0; _Q <= 1; _Q += 1) { - $1.i = _Q; - $puti($1.encstr, $1.i * 2 + 2, $get($1.encs, ~~$z($geti($1.barcode, $1.i, 1)) + 64)); - } - for (var _Y = 2; _Y <= 9; _Y += 1) { - $1.i = _Y; - $puti($1.encstr, $1.i * 2 + 2, $get($1.encs, ~~$z($geti($1.barcode, $1.i, 1)) + 64)); - $put($1.txt, $1.i - 2, $a([ $geti($1.barcode, $1.i, 1), (($1.i - 2) * 2 + 6) * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - } - if ($eq($1.custinfoenc, "numeric")) { - for (var _t = 0, _s = $1.barlen - 11; _t <= _s; _t += 1) { - $1.i = _t; - $puti($1.encstr, $1.i * 2 + 22, $get($1.encs, ~~$z($geti($1.barcode, $1.i + 10, 1)) + 64)); - $put($1.txt, $1.i + 8, $a([ $geti($1.barcode, $1.i + 10, 1), ($1.i * 2 + 22) * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $1.ciflen = ($1.barlen - 10) * 2; - } else { - for (var _1E = 0, _1D = $1.barlen - 11; _1E <= _1D; _1E += 1) { - $1.i = _1E; - $search($1.barchars, $geti($1.barcode, $1.i + 10, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - $puti($1.encstr, $1.i * 3 + 22, $1.enc); - $put($1.txt, $1.i + 8, $a([ $geti($1.barcode, $1.i + 10, 1), ($1.i * 3 + 22) * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $1.ciflen = ($1.barlen - 10) * 3; - } - for (var _1e = 22 + $1.ciflen, _1d = $1.encstr.length - 14; _1e <= _1d; _1e += 1) { - $puti($1.encstr, _1e, $get($1.encs, 75)); - } - $1.rstable = $a(64 * 64); - $k[$j++] = $1.rstable; - $k[$j++] = 0; - $k[$j++] = Infinity; - for (var _1k = 0, _1l = 64; _1k < _1l; _1k++) { - $k[$j++] = 0; - } - var _1m = $a(); - var _1n = $k[--$j]; - $puti($k[--$j], _1n, _1m); - $k[$j++] = $1.rstable; - $k[$j++] = 64; - $k[$j++] = Infinity; - for (var _1q = 0; _1q <= 63; _1q += 1) { - $k[$j++] = _1q; - } - var _1r = $a(); - var _1s = $k[--$j]; - $puti($k[--$j], _1s, _1r); - $1.prev = 1; - for (var _1u = 0, _1v = 64; _1u < _1v; _1u++) { - $1.next = $1.prev << 1; - if (($1.next & 64) != 0) { - $1.next = $1.next ^ 67; - } - for (var _1z = 0; _1z <= 63; _1z += 1) { - $1.j = _1z; + var $1 = {}; //#10769 + $1.options = $k[--$j]; //#10771 + $1.barcode = $k[--$j]; //#10772 + $1.dontdraw = false; //#10774 + $1.includetext = false; //#10775 + $1.textfont = "OCR-B"; //#10776 + $1.textsize = 10; //#10777 + $1.textyoffset = -8; //#10778 + $1.height = 0.175; //#10779 + $1.custinfoenc = "character"; //#10780 + $forall($1.options, function() { //#10791 + var _3 = $k[--$j]; //#10791 + $1[$k[--$j]] = _3; //#10791 + }); //#10791 + $1.textfont = "" + $1.textfont; //#10793 + $1.textsize = +$1.textsize; //#10794 + $1.textyoffset = +$1.textyoffset; //#10795 + $1.height = +$1.height; //#10796 + $1.encs = $a(["000", "001", "002", "010", "011", "012", "020", "021", "022", "100", "101", "102", "110", "111", "112", "120", "121", "122", "200", "201", "202", "210", "211", "212", "220", "221", "222", "300", "301", "302", "310", "311", "312", "320", "321", "322", "023", "030", "031", "032", "033", "103", "113", "123", "130", "131", "132", "133", "203", "213", "223", "230", "231", "232", "233", "303", "313", "323", "330", "331", "332", "333", "003", "013", "00", "01", "02", "10", "11", "12", "20", "21", "22", "30", "13", "3"]); //#10810 + $1.barchars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz #"; //#10813 + $1.barlen = $1.barcode.length; //#10815 + if ($eq($geti($1.barcode, 0, 2), "11")) { //#10816 + $k[$j++] = 37; //#10816 + } //#10816 + if ($eq($geti($1.barcode, 0, 2), "45")) { //#10817 + $k[$j++] = 37; //#10817 + } //#10817 + if ($eq($geti($1.barcode, 0, 2), "59")) { //#10818 + $k[$j++] = 52; //#10818 + } //#10818 + if ($eq($geti($1.barcode, 0, 2), "62")) { //#10819 + $k[$j++] = 67; //#10819 + } //#10819 + $1.encstr = $s($k[--$j]); //#10820 + $1.txt = $a($1.barlen - 2); //#10821 + $puti($1.encstr, 0, $get($1.encs, 74)); //#10824 + for (var _Q = 0; _Q <= 1; _Q += 1) { //#10831 + $1.i = _Q; //#10828 + $puti($1.encstr, ($1.i * 2) + 2, $get($1.encs, (~~$z($geti($1.barcode, $1.i, 1))) + 64)); //#10830 + } //#10830 + for (var _Y = 2; _Y <= 9; _Y += 1) { //#10839 + $1.i = _Y; //#10835 + $puti($1.encstr, ($1.i * 2) + 2, $get($1.encs, (~~$z($geti($1.barcode, $1.i, 1))) + 64)); //#10837 + $put($1.txt, $1.i - 2, $a([$geti($1.barcode, $1.i, 1), ((($1.i - 2) * 2) + 6) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#10838 + } //#10838 + if ($eq($1.custinfoenc, "numeric")) { //#10861 + for (var _t = 0, _s = $1.barlen - 11; _t <= _s; _t += 1) { //#10848 + $1.i = _t; //#10844 + $puti($1.encstr, ($1.i * 2) + 22, $get($1.encs, (~~$z($geti($1.barcode, $1.i + 10, 1))) + 64)); //#10846 + $put($1.txt, $1.i + 8, $a([$geti($1.barcode, $1.i + 10, 1), (($1.i * 2) + 22) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#10847 + } //#10847 + $1.ciflen = ($1.barlen - 10) * 2; //#10849 + } else { //#10861 + for (var _1E = 0, _1D = $1.barlen - 11; _1E <= _1D; _1E += 1) { //#10860 + $1.i = _1E; //#10852 + $search($1.barchars, $geti($1.barcode, $1.i + 10, 1)); //#10853 + $j--; //#10854 + $1.indx = $k[--$j].length; //#10855 + $j -= 2; //#10856 + $1.enc = $get($1.encs, $1.indx); //#10857 + $puti($1.encstr, ($1.i * 3) + 22, $1.enc); //#10858 + $put($1.txt, $1.i + 8, $a([$geti($1.barcode, $1.i + 10, 1), (($1.i * 3) + 22) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#10859 + } //#10859 + $1.ciflen = ($1.barlen - 10) * 3; //#10861 + } //#10861 + for (var _1e = 22 + $1.ciflen, _1d = $1.encstr.length - 14; _1e <= _1d; _1e += 1) { //#10867 + $puti($1.encstr, _1e, $get($1.encs, 75)); //#10866 + } //#10866 + $1.rstable = $a(64 * 64); //#10870 + $k[$j++] = $1.rstable; //#10871 + $k[$j++] = 0; //#10871 + $k[$j++] = Infinity; //#10871 + for (var _1k = 0, _1l = 64; _1k < _1l; _1k++) { //#10871 + $k[$j++] = 0; //#10871 + } //#10871 + var _1m = $a(); //#10871 + var _1n = $k[--$j]; //#10871 + $puti($k[--$j], _1n, _1m); //#10871 + $k[$j++] = $1.rstable; //#10872 + $k[$j++] = 64; //#10872 + $k[$j++] = Infinity; //#10872 + for (var _1q = 0; _1q <= 63; _1q += 1) { //#10872 + $k[$j++] = _1q; //#10872 + } //#10872 + var _1r = $a(); //#10872 + var _1s = $k[--$j]; //#10872 + $puti($k[--$j], _1s, _1r); //#10872 + $1.prev = 1; //#10873 + for (var _1u = 0, _1v = 64; _1u < _1v; _1u++) { //#10888 + $1.next = $1.prev << 1; //#10875 + if (($1.next & 64) != 0) { //#10878 + $1.next = $1.next ^ 67; //#10877 + } //#10877 + for (var _1z = 0; _1z <= 63; _1z += 1) { //#10886 + $1.j = _1z; //#10880 $1.nextcell = function() { - $k[$j++] = $1.rstable; - $k[$j++] = 64 * $1.next + $1.j; - }; - $1.nextcell(); - var _27 = $k[--$j]; - $put($k[--$j], _27, $get($1.rstable, 64 * $1.prev + $1.j) << 1); - $1.nextcell(); - var _29 = $k[--$j]; - if (($get($k[--$j], _29) & 64) != 0) { - $1.nextcell(); - $1.nextcell(); - var _2C = $k[--$j]; - var _2E = $get($k[--$j], _2C); - var _2F = $k[--$j]; - $put($k[--$j], _2F, _2E ^ 67); - } - } - $1.prev = $1.next; - } - $1.rscodes = $a(~~(($1.encstr.length - 16) / 3) + 4); - $k[$j++] = $1.rscodes; - $k[$j++] = 0; - $k[$j++] = Infinity; - for (var _2L = 0, _2M = 4; _2L < _2M; _2L++) { - $k[$j++] = 0; - } - var _2N = $a(); - var _2O = $k[--$j]; - $puti($k[--$j], _2O, _2N); - for (var _2S = 2, _2R = $1.encstr.length - 16; _2S <= _2R; _2S += 3) { - $1.i = _2S; - $put($1.rscodes, $1.rscodes.length - ~~(($1.i - 2) / 3) - 1, ~~$z($geti($1.encstr, $1.i, 1)) * 16 + ~~$z($geti($1.encstr, $1.i + 1, 1)) * 4 + ~~$z($geti($1.encstr, $1.i + 2, 1))); - } - for (var _2g = $1.rscodes.length - 5; _2g >= 0; _2g -= 1) { - $1.i = _2g; - for (var _2h = 0; _2h <= 4; _2h += 1) { - $1.j = _2h; - $put($1.rscodes, $1.i + $1.j, $xo($get($1.rscodes, $1.i + $1.j), $get($1.rstable, $f(64 * $get($a([ 48, 17, 29, 30, 1 ]), $1.j) + $get($1.rscodes, $1.i + 4))))); - } - } - $1.checkcode = $strcpy($s(12), "000000000000"); - for (var _2z = 0; _2z <= 3; _2z += 1) { - $1.i = _2z; - $1.enc = $cvrs($s(3), $get($1.rscodes, 3 - $1.i), 4); - $puti($1.checkcode, $1.i * 3 + (3 - $1.enc.length), $1.enc); - } - $puti($1.encstr, $1.encstr.length - 14, $1.checkcode); - $puti($1.encstr, $1.encstr.length - 2, $get($1.encs, 74)); - $1.bbs = $a($1.encstr.length); - $1.bhs = $a($1.encstr.length); - for (var _3M = 0, _3L = $1.encstr.length - 1; _3M <= _3L; _3M += 1) { - $1.i = _3M; - $1.enc = $geti($1.encstr, $1.i, 1); - if ($eq($1.enc, "0")) { - $put($1.bbs, $1.i, 0 * $1.height / 8); - $put($1.bhs, $1.i, 8 * $1.height / 8); - } - if ($eq($1.enc, "1")) { - $put($1.bbs, $1.i, 3 * $1.height / 8); - $put($1.bhs, $1.i, 5 * $1.height / 8); - } - if ($eq($1.enc, "2")) { - $put($1.bbs, $1.i, 0 * $1.height / 8); - $put($1.bhs, $1.i, 5 * $1.height / 8); - } - if ($eq($1.enc, "3")) { - $put($1.bbs, $1.i, 3 * $1.height / 8); - $put($1.bhs, $1.i, 2 * $1.height / 8); - } - } - $k[$j++] = Infinity; - var _3s = $1.bbs; - var _3t = $1.bhs; - $k[$j++] = Infinity; - for (var _3v = 0, _3w = $1.bhs.length - 1; _3v < _3w; _3v++) { - $k[$j++] = 1.44; - $k[$j++] = 1.872; - } - $k[$j++] = 1.44; - var _3x = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "bbs"; - $k[$j++] = _3s; - $k[$j++] = "bhs"; - $k[$j++] = _3t; - $k[$j++] = "sbs"; - $k[$j++] = _3x; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _41 = $d(); - $k[$j++] = _41; - if (!$1.dontdraw) { - $0.renlinear(); - } + $k[$j++] = $1.rstable; //#10881 + $k[$j++] = (64 * $1.next) + $1.j; //#10881 + }; //#10881 + $1.nextcell(); //#10882 + var _27 = $k[--$j]; //#10882 + $put($k[--$j], _27, $get($1.rstable, (64 * $1.prev) + $1.j) << 1); //#10882 + $1.nextcell(); //#10883 + var _29 = $k[--$j]; //#10883 + if (($get($k[--$j], _29) & 64) != 0) { //#10885 + $1.nextcell(); //#10884 + $1.nextcell(); //#10884 + var _2C = $k[--$j]; //#10884 + var _2E = $get($k[--$j], _2C); //#10884 + var _2F = $k[--$j]; //#10884 + $put($k[--$j], _2F, _2E ^ 67); //#10884 + } //#10884 + } //#10884 + $1.prev = $1.next; //#10887 + } //#10887 + $1.rscodes = $a((~~(($1.encstr.length - 16) / 3)) + 4); //#10891 + $k[$j++] = $1.rscodes; //#10892 + $k[$j++] = 0; //#10892 + $k[$j++] = Infinity; //#10892 + for (var _2L = 0, _2M = 4; _2L < _2M; _2L++) { //#10892 + $k[$j++] = 0; //#10892 + } //#10892 + var _2N = $a(); //#10892 + var _2O = $k[--$j]; //#10892 + $puti($k[--$j], _2O, _2N); //#10892 + for (var _2S = 2, _2R = $1.encstr.length - 16; _2S <= _2R; _2S += 3) { //#10900 + $1.i = _2S; //#10894 + $put($1.rscodes, ($1.rscodes.length - (~~(($1.i - 2) / 3))) - 1, (((~~$z($geti($1.encstr, $1.i, 1))) * 16) + ((~~$z($geti($1.encstr, $1.i + 1, 1))) * 4)) + (~~$z($geti($1.encstr, $1.i + 2, 1)))); //#10899 + } //#10899 + for (var _2g = $1.rscodes.length - 5; _2g >= 0; _2g -= 1) { //#10909 + $1.i = _2g; //#10902 + for (var _2h = 0; _2h <= 4; _2h += 1) { //#10908 + $1.j = _2h; //#10904 + $put($1.rscodes, $1.i + $1.j, $xo($get($1.rscodes, $1.i + $1.j), $get($1.rstable, $f((64 * $get($a([48, 17, 29, 30, 1]), $1.j)) + $get($1.rscodes, $1.i + 4))))); //#10907 + } //#10907 + } //#10907 + $1.checkcode = $strcpy($s(12), "000000000000"); //#10910 + for (var _2z = 0; _2z <= 3; _2z += 1) { //#10915 + $1.i = _2z; //#10912 + $1.enc = $cvrs($s(3), $get($1.rscodes, 3 - $1.i), 4); //#10913 + $puti($1.checkcode, ($1.i * 3) + (3 - $1.enc.length), $1.enc); //#10914 + } //#10914 + $puti($1.encstr, $1.encstr.length - 14, $1.checkcode); //#10918 + $puti($1.encstr, $1.encstr.length - 2, $get($1.encs, 74)); //#10919 + $1.bbs = $a($1.encstr.length); //#10921 + $1.bhs = $a($1.encstr.length); //#10922 + for (var _3M = 0, _3L = $1.encstr.length - 1; _3M <= _3L; _3M += 1) { //#10942 + $1.i = _3M; //#10924 + $1.enc = $geti($1.encstr, $1.i, 1); //#10925 + if ($eq($1.enc, "0")) { //#10929 + $put($1.bbs, $1.i, (0 * $1.height) / 8); //#10927 + $put($1.bhs, $1.i, (8 * $1.height) / 8); //#10928 + } //#10928 + if ($eq($1.enc, "1")) { //#10933 + $put($1.bbs, $1.i, (3 * $1.height) / 8); //#10931 + $put($1.bhs, $1.i, (5 * $1.height) / 8); //#10932 + } //#10932 + if ($eq($1.enc, "2")) { //#10937 + $put($1.bbs, $1.i, (0 * $1.height) / 8); //#10935 + $put($1.bhs, $1.i, (5 * $1.height) / 8); //#10936 + } //#10936 + if ($eq($1.enc, "3")) { //#10941 + $put($1.bbs, $1.i, (3 * $1.height) / 8); //#10939 + $put($1.bhs, $1.i, (2 * $1.height) / 8); //#10940 + } //#10940 + } //#10940 + $k[$j++] = Infinity; //#10953 + var _3s = $1.bbs; //#10947 + var _3t = $1.bhs; //#10948 + $k[$j++] = Infinity; //#10949 + for (var _3v = 0, _3w = $1.bhs.length - 1; _3v < _3w; _3v++) { //#10949 + $k[$j++] = 1.44; //#10949 + $k[$j++] = 1.872; //#10949 + } //#10949 + $k[$j++] = 1.44; //#10949 + var _3x = $a(); //#10949 + $k[$j++] = 'ren'; //#10952 + $k[$j++] = $0.renlinear; //#10952 + $k[$j++] = 'bbs'; //#10952 + $k[$j++] = _3s; //#10952 + $k[$j++] = 'bhs'; //#10952 + $k[$j++] = _3t; //#10952 + $k[$j++] = 'sbs'; //#10952 + $k[$j++] = _3x; //#10952 + if ($1.includetext) { //#10952 + $k[$j++] = 'txt'; //#10951 + $k[$j++] = $1.txt; //#10951 + } //#10951 + $k[$j++] = 'opt'; //#10953 + $k[$j++] = $1.options; //#10953 + var _41 = $d(); //#10953 + $k[$j++] = _41; //#10956 + if (!$1.dontdraw) { //#10956 + $0.renlinear(); //#10956 + } //#10956 }; $0.kix = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = .175; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.encs = $a([ "0033", "0123", "0132", "1023", "1032", "1122", "0213", "0303", "0312", "1203", "1212", "1302", "0231", "0321", "0330", "1221", "1230", "1320", "2013", "2103", "2112", "3003", "3012", "3102", "2031", "2121", "2130", "3021", "3030", "3120", "2211", "2301", "2310", "3201", "3210", "3300" ]); - $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; - $1.charvals = new Map(); - for (var _A = 0; _A <= 35; _A += 1) { - $put($1.charvals, $geti($1.barchars, _A, 1), _A); - } - for (var _G = 0, _F = $1.barcode.length - 1; _G <= _F; _G += 1) { - var _K = $get($1.charvals, $geti($1.barcode, _G, 1)) !== undefined; - if (!_K) { - $k[$j++] = "bwipp.kixBadCharacter"; - $k[$j++] = "KIX must contain only capital letters and digits"; - $0.raiseerror(); - } - } - $1.barlen = $1.barcode.length; - $1.encstr = $s($1.barlen * 4); - $1.txt = $a($1.barlen); - for (var _S = 0, _R = $1.barlen - 1; _S <= _R; _S += 1) { - $1.i = _S; - $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); - $puti($1.encstr, $1.i * 4, $get($1.encs, $1.indx)); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $1.i * 4 * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $1.bbs = $a($1.encstr.length); - $1.bhs = $a($1.encstr.length); - for (var _t = 0, _s = $1.encstr.length - 1; _t <= _s; _t += 1) { - $1.i = _t; - $1.enc = $geti($1.encstr, $1.i, 1); - if ($eq($1.enc, "0")) { - $put($1.bbs, $1.i, 3 * $1.height / 8); - $put($1.bhs, $1.i, 2 * $1.height / 8); - } - if ($eq($1.enc, "1")) { - $put($1.bbs, $1.i, 0 * $1.height / 8); - $put($1.bhs, $1.i, 5 * $1.height / 8); - } - if ($eq($1.enc, "2")) { - $put($1.bbs, $1.i, 3 * $1.height / 8); - $put($1.bhs, $1.i, 5 * $1.height / 8); - } - if ($eq($1.enc, "3")) { - $put($1.bbs, $1.i, 0 * $1.height / 8); - $put($1.bhs, $1.i, 8 * $1.height / 8); - } - } - $k[$j++] = Infinity; - var _1P = $1.bbs; - var _1Q = $1.bhs; - $k[$j++] = Infinity; - for (var _1S = 0, _1T = $1.bhs.length - 1; _1S < _1T; _1S++) { - $k[$j++] = 1.44; - $k[$j++] = 1.872; - } - $k[$j++] = 1.44; - var _1U = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "bbs"; - $k[$j++] = _1P; - $k[$j++] = "bhs"; - $k[$j++] = _1Q; - $k[$j++] = "sbs"; - $k[$j++] = _1U; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _1Y = $d(); - $k[$j++] = _1Y; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#10985 + $1.options = $k[--$j]; //#10987 + $1.barcode = $k[--$j]; //#10988 + $1.dontdraw = false; //#10990 + $1.includetext = false; //#10991 + $1.textfont = "OCR-B"; //#10992 + $1.textsize = 10; //#10993 + $1.textyoffset = -8; //#10994 + $1.height = 0.175; //#10995 + $forall($1.options, function() { //#11006 + var _3 = $k[--$j]; //#11006 + $1[$k[--$j]] = _3; //#11006 + }); //#11006 + $1.textfont = "" + $1.textfont; //#11008 + $1.textsize = +$1.textsize; //#11009 + $1.textyoffset = +$1.textyoffset; //#11010 + $1.height = +$1.height; //#11011 + $1.encs = $a(["0033", "0123", "0132", "1023", "1032", "1122", "0213", "0303", "0312", "1203", "1212", "1302", "0231", "0321", "0330", "1221", "1230", "1320", "2013", "2103", "2112", "3003", "3012", "3102", "2031", "2121", "2130", "3021", "3030", "3120", "2211", "2301", "2310", "3201", "3210", "3300"]); //#11021 + $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; //#11024 + $1.charvals = new Map; //#11025 + for (var _A = 0; _A <= 35; _A += 1) { //#11026 + $put($1.charvals, $geti($1.barchars, _A, 1), _A); //#11026 + } //#11026 + for (var _G = 0, _F = $1.barcode.length - 1; _G <= _F; _G += 1) { //#11033 + var _K = $get($1.charvals, $geti($1.barcode, _G, 1)) !== undefined; //#11030 + if (!_K) { //#11032 + $k[$j++] = 'bwipp.kixBadCharacter'; //#11031 + $k[$j++] = "KIX must contain only capital letters and digits"; //#11031 + $0.raiseerror(); //#11031 + } //#11031 + } //#11031 + $1.barlen = $1.barcode.length; //#11035 + $1.encstr = $s($1.barlen * 4); //#11036 + $1.txt = $a($1.barlen); //#11037 + for (var _S = 0, _R = $1.barlen - 1; _S <= _R; _S += 1) { //#11044 + $1.i = _S; //#11040 + $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); //#11041 + $puti($1.encstr, $1.i * 4, $get($1.encs, $1.indx)); //#11042 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), ($1.i * 4) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#11043 + } //#11043 + $1.bbs = $a($1.encstr.length); //#11046 + $1.bhs = $a($1.encstr.length); //#11047 + for (var _t = 0, _s = $1.encstr.length - 1; _t <= _s; _t += 1) { //#11067 + $1.i = _t; //#11049 + $1.enc = $geti($1.encstr, $1.i, 1); //#11050 + if ($eq($1.enc, "0")) { //#11054 + $put($1.bbs, $1.i, (3 * $1.height) / 8); //#11052 + $put($1.bhs, $1.i, (2 * $1.height) / 8); //#11053 + } //#11053 + if ($eq($1.enc, "1")) { //#11058 + $put($1.bbs, $1.i, (0 * $1.height) / 8); //#11056 + $put($1.bhs, $1.i, (5 * $1.height) / 8); //#11057 + } //#11057 + if ($eq($1.enc, "2")) { //#11062 + $put($1.bbs, $1.i, (3 * $1.height) / 8); //#11060 + $put($1.bhs, $1.i, (5 * $1.height) / 8); //#11061 + } //#11061 + if ($eq($1.enc, "3")) { //#11066 + $put($1.bbs, $1.i, (0 * $1.height) / 8); //#11064 + $put($1.bhs, $1.i, (8 * $1.height) / 8); //#11065 + } //#11065 + } //#11065 + $k[$j++] = Infinity; //#11078 + var _1P = $1.bbs; //#11072 + var _1Q = $1.bhs; //#11073 + $k[$j++] = Infinity; //#11074 + for (var _1S = 0, _1T = $1.bhs.length - 1; _1S < _1T; _1S++) { //#11074 + $k[$j++] = 1.44; //#11074 + $k[$j++] = 1.872; //#11074 + } //#11074 + $k[$j++] = 1.44; //#11074 + var _1U = $a(); //#11074 + $k[$j++] = 'ren'; //#11077 + $k[$j++] = $0.renlinear; //#11077 + $k[$j++] = 'bbs'; //#11077 + $k[$j++] = _1P; //#11077 + $k[$j++] = 'bhs'; //#11077 + $k[$j++] = _1Q; //#11077 + $k[$j++] = 'sbs'; //#11077 + $k[$j++] = _1U; //#11077 + if ($1.includetext) { //#11077 + $k[$j++] = 'txt'; //#11076 + $k[$j++] = $1.txt; //#11076 + } //#11076 + $k[$j++] = 'opt'; //#11078 + $k[$j++] = $1.options; //#11078 + var _1Y = $d(); //#11078 + $k[$j++] = _1Y; //#11081 + if (!$1.dontdraw) { //#11081 + $0.renlinear(); //#11081 + } //#11081 }; $0.japanpost = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.includecheckintext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = .175; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.encs = $a([ "300", "330", "312", "132", "321", "303", "123", "231", "213", "033", "030", "120", "102", "210", "012", "201", "021", "003", "333", "31", "13" ]); - $1.barchars = "0123456789-ABCDEFGHIJKLMNOPQRSTUVWXYZ"; - $1.barlen = $1.barcode.length; - $1.encstr = $s((20 + 1) * 3 + 4); - $1.digits = $a(20); - $1.txt = $a($1.barlen + 1); - $puti($1.encstr, 0, $get($1.encs, 19)); - $1.checksum = 0; - $1.j = 0; - $1.i = 0; - for (var _K = 0, _J = $1.barlen - 1; _K <= _J; _K += 1) { - $1.i = _K; - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - if ($1.indx >= 11 && $1.indx < 37) { - if ($1.j > 18) { - break; - } - $1.digit = ~~(($1.indx - 1) / 10) + 10; - $puti($1.encstr, $1.j * 3 + 2, $get($1.encs, $1.digit)); - $1.checksum = $1.checksum + $1.digit; - $put($1.digits, $1.j, $1.digit); - $1.j = $1.j + 1; - } - if ($1.j > 19) { - break; - } - $1.digit = 0; - if ($1.indx == 37) { - $1.digit = 14; - } - if ($1.indx >= 11 && $1.indx < 37) { - $1.digit = ($1.indx - 1) % 10; - } - if ($1.indx < 11) { - $1.digit = $1.indx; - } - $puti($1.encstr, $1.j * 3 + 2, $get($1.encs, $1.digit)); - $1.checksum = $1.checksum + $1.digit; - $put($1.digits, $1.j, $1.digit); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), ($1.j * 3 + 2) * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - $1.j = $1.j + 1; - } - for (var _19 = $1.j, _18 = 20 - 1; _19 <= _18; _19 += 1) { - $1.k = _19; - $puti($1.encstr, $1.k * 3 + 2, $get($1.encs, 14)); - $1.checksum = $1.checksum + 14; - $put($1.digits, $1.k, 14); - } - $1.checksum = 19 - $1.checksum % 19; - $puti($1.encstr, 2 + 20 * 3, $get($1.encs, $1.checksum)); - $puti($1.encstr, 2 + 21 * 3, $get($1.encs, 20)); - $1.checkdigit = " "; - if ($1.includecheckintext) { - $1.checkdigit = $geti($1.barchars, $1.checksum, 1); - } - $put($1.txt, $1.i + 1, $a([ $1.checkdigit, (20 * 3 + 2) * 3.312, $1.textyoffset, $1.textfont, $1.textsize ])); - $puti($1.encstr, (20 + 1) * 3 + 2, $get($1.encs, 20)); - $1.bbs = $a(21 * 3 + 4); - $1.bhs = $a($1.bbs.length); - for (var _1i = 0, _1h = $1.bbs.length - 1; _1i <= _1h; _1i += 1) { - $1.i = _1i; - $1.enc = $geti($1.encstr, $1.i, 1); - $1.bunit = 0; - $1.hunit = 0; - if ($eq($1.enc, "0")) { - $1.bunit = 3; - $1.hunit = 2; - } - if ($eq($1.enc, "1")) { - $1.bunit = 0; - $1.hunit = 5; - } - if ($eq($1.enc, "2")) { - $1.bunit = 3; - $1.hunit = 5; - } - if ($eq($1.enc, "3")) { - $1.bunit = 0; - $1.hunit = 8; - } - $put($1.bbs, $1.i, $1.bunit * $1.height / 8); - $put($1.bhs, $1.i, $1.hunit * $1.height / 8); - } - $k[$j++] = Infinity; - var _1y = $1.bbs; - var _1z = $1.bhs; - $k[$j++] = Infinity; - for (var _21 = 0, _22 = $1.bhs.length - 1; _21 < _22; _21++) { - $k[$j++] = 1.44; - $k[$j++] = 1.872; - } - $k[$j++] = 1.44; - var _23 = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "bbs"; - $k[$j++] = _1y; - $k[$j++] = "bhs"; - $k[$j++] = _1z; - $k[$j++] = "sbs"; - $k[$j++] = _23; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _27 = $d(); - $k[$j++] = _27; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#11110 + $1.options = $k[--$j]; //#11112 + $1.barcode = $k[--$j]; //#11113 + $1.dontdraw = false; //#11115 + $1.includetext = false; //#11116 + $1.includecheckintext = false; //#11117 + $1.textfont = "OCR-B"; //#11118 + $1.textsize = 10; //#11119 + $1.textyoffset = -8; //#11120 + $1.height = 0.175; //#11121 + $forall($1.options, function() { //#11132 + var _3 = $k[--$j]; //#11132 + $1[$k[--$j]] = _3; //#11132 + }); //#11132 + $1.textfont = "" + $1.textfont; //#11134 + $1.textsize = +$1.textsize; //#11135 + $1.textyoffset = +$1.textyoffset; //#11136 + $1.height = +$1.height; //#11137 + $1.encs = $a(["300", "330", "312", "132", "321", "303", "123", "231", "213", "033", "030", "120", "102", "210", "012", "201", "021", "003", "333", "31", "13"]); //#11145 + $1.barchars = "0123456789-ABCDEFGHIJKLMNOPQRSTUVWXYZ"; //#11148 + $1.barlen = $1.barcode.length; //#11149 + $1.encstr = $s(((20 + 1) * 3) + 4); //#11151 + $1.digits = $a(20); //#11152 + $1.txt = $a($1.barlen + 1); //#11153 + $puti($1.encstr, 0, $get($1.encs, 19)); //#11156 + $1.checksum = 0; //#11158 + $1.j = 0; //#11159 + $1.i = 0; //#11159 + for (var _K = 0, _J = $1.barlen - 1; _K <= _J; _K += 1) { //#11193 + $1.i = _K; //#11161 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#11162 + $j--; //#11163 + $1.indx = $k[--$j].length; //#11164 + $j -= 2; //#11165 + if (($1.indx >= 11) && ($1.indx < 37)) { //#11176 + if ($1.j > 18) { //#11167 + break; //#11167 + } //#11167 + $1.digit = (~~(($1.indx - 1) / 10)) + 10; //#11171 + $puti($1.encstr, ($1.j * 3) + 2, $get($1.encs, $1.digit)); //#11172 + $1.checksum = $1.checksum + $1.digit; //#11173 + $put($1.digits, $1.j, $1.digit); //#11174 + $1.j = $1.j + 1; //#11175 + } //#11175 + if ($1.j > 19) { //#11177 + break; //#11177 + } //#11177 + $1.digit = 0; //#11178 + if ($1.indx == 37) { //#11181 + $1.digit = 14; //#11180 + } //#11180 + if (($1.indx >= 11) && ($1.indx < 37)) { //#11184 + $1.digit = ($1.indx - 1) % 10; //#11183 + } //#11183 + if ($1.indx < 11) { //#11187 + $1.digit = $1.indx; //#11186 + } //#11186 + $puti($1.encstr, ($1.j * 3) + 2, $get($1.encs, $1.digit)); //#11188 + $1.checksum = $1.checksum + $1.digit; //#11189 + $put($1.digits, $1.j, $1.digit); //#11190 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), (($1.j * 3) + 2) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#11191 + $1.j = $1.j + 1; //#11192 + } //#11192 + for (var _19 = $1.j, _18 = 20 - 1; _19 <= _18; _19 += 1) { //#11201 + $1.k = _19; //#11197 + $puti($1.encstr, ($1.k * 3) + 2, $get($1.encs, 14)); //#11198 + $1.checksum = $1.checksum + 14; //#11199 + $put($1.digits, $1.k, 14); //#11200 + } //#11200 + $1.checksum = 19 - ($1.checksum % 19); //#11204 + $puti($1.encstr, 2 + (20 * 3), $get($1.encs, $1.checksum)); //#11205 + $puti($1.encstr, 2 + (21 * 3), $get($1.encs, 20)); //#11208 + $1.checkdigit = " "; //#11209 + if ($1.includecheckintext) { //#11212 + $1.checkdigit = $geti($1.barchars, $1.checksum, 1); //#11211 + } //#11211 + $put($1.txt, $1.i + 1, $a([$1.checkdigit, ((20 * 3) + 2) * 3.312, $1.textyoffset, $1.textfont, $1.textsize])); //#11213 + $puti($1.encstr, ((20 + 1) * 3) + 2, $get($1.encs, 20)); //#11216 + $1.bbs = $a((21 * 3) + 4); //#11218 + $1.bhs = $a($1.bbs.length); //#11219 + for (var _1i = 0, _1h = $1.bbs.length - 1; _1i <= _1h; _1i += 1) { //#11243 + $1.i = _1i; //#11221 + $1.enc = $geti($1.encstr, $1.i, 1); //#11222 + $1.bunit = 0; //#11223 + $1.hunit = 0; //#11224 + if ($eq($1.enc, "0")) { //#11228 + $1.bunit = 3; //#11226 + $1.hunit = 2; //#11227 + } //#11227 + if ($eq($1.enc, "1")) { //#11232 + $1.bunit = 0; //#11230 + $1.hunit = 5; //#11231 + } //#11231 + if ($eq($1.enc, "2")) { //#11236 + $1.bunit = 3; //#11234 + $1.hunit = 5; //#11235 + } //#11235 + if ($eq($1.enc, "3")) { //#11240 + $1.bunit = 0; //#11238 + $1.hunit = 8; //#11239 + } //#11239 + $put($1.bbs, $1.i, ($1.bunit * $1.height) / 8); //#11241 + $put($1.bhs, $1.i, ($1.hunit * $1.height) / 8); //#11242 + } //#11242 + $k[$j++] = Infinity; //#11254 + var _1y = $1.bbs; //#11248 + var _1z = $1.bhs; //#11249 + $k[$j++] = Infinity; //#11250 + for (var _21 = 0, _22 = $1.bhs.length - 1; _21 < _22; _21++) { //#11250 + $k[$j++] = 1.44; //#11250 + $k[$j++] = 1.872; //#11250 + } //#11250 + $k[$j++] = 1.44; //#11250 + var _23 = $a(); //#11250 + $k[$j++] = 'ren'; //#11253 + $k[$j++] = $0.renlinear; //#11253 + $k[$j++] = 'bbs'; //#11253 + $k[$j++] = _1y; //#11253 + $k[$j++] = 'bhs'; //#11253 + $k[$j++] = _1z; //#11253 + $k[$j++] = 'sbs'; //#11253 + $k[$j++] = _23; //#11253 + if ($1.includetext) { //#11253 + $k[$j++] = 'txt'; //#11252 + $k[$j++] = $1.txt; //#11252 + } //#11252 + $k[$j++] = 'opt'; //#11254 + $k[$j++] = $1.options; //#11254 + var _27 = $d(); //#11254 + $k[$j++] = _27; //#11257 + if (!$1.dontdraw) { //#11257 + $0.renlinear(); //#11257 + } //#11257 }; $0.msi = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includecheck = false; - $1.includetext = false; - $1.includecheckintext = false; - $1.checktype = "mod10"; - $1.badmod11 = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.encs = $a([ "12121212", "12121221", "12122112", "12122121", "12211212", "12211221", "12212112", "12212121", "21121212", "21121221", "21", "121" ]); - $1.barchars = "0123456789"; - $1.barlen = $1.barcode.length; - $1.txtlen = $1.barlen; + var $1 = {}; //#11286 + $1.options = $k[--$j]; //#11288 + $1.barcode = $k[--$j]; //#11289 + $1.dontdraw = false; //#11291 + $1.includecheck = false; //#11292 + $1.includetext = false; //#11293 + $1.includecheckintext = false; //#11294 + $1.checktype = "mod10"; //#11295 + $1.badmod11 = false; //#11296 + $1.textfont = "OCR-B"; //#11297 + $1.textsize = 10; //#11298 + $1.textyoffset = -8; //#11299 + $1.height = 1; //#11300 + $forall($1.options, function() { //#11311 + var _3 = $k[--$j]; //#11311 + $1[$k[--$j]] = _3; //#11311 + }); //#11311 + $1.textfont = "" + $1.textfont; //#11313 + $1.textsize = +$1.textsize; //#11314 + $1.textyoffset = +$1.textyoffset; //#11315 + $1.height = +$1.height; //#11316 + $1.encs = $a(["12121212", "12121221", "12122112", "12122121", "12211212", "12211221", "12212112", "12212121", "21121212", "21121221", "21", "121"]); //#11323 + $1.barchars = "0123456789"; //#11326 + $1.barlen = $1.barcode.length; //#11328 + $1.txtlen = $1.barlen; //#11329 $1.mod10 = function() { - $1.code = $k[--$j]; - $k[$j++] = 0; - $k[$j++] = 0; - $forall($1.code, function() { - var _E = $k[--$j]; - var _F = $k[--$j]; - var _G = $k[--$j]; - $k[$j++] = $f($f(_E - 48) + _F * 10); - $k[$j++] = _G; - }); - $j--; - var _H = $k[--$j]; - $k[$j++] = _H * 2; - $k[$j++] = 0; - for (;;) { - var _I = $k[--$j]; - var _J = $k[--$j]; - var _K = ~~(_J / 10); - $k[$j++] = $f(_I + _J % 10); - $k[$j++] = _K; - if (_K == 0) { - $j--; - break; - } - var _L = $k[--$j]; - var _M = $k[--$j]; - $k[$j++] = _L; - $k[$j++] = _M; - } - $k[$j++] = 0; - $k[$j++] = 0; - $forall($1.code, function() { - var _O = $k[--$j]; - var _P = $k[--$j]; - var _Q = $k[--$j]; - $k[$j++] = $f(_P + $f(_O - 48)); - $k[$j++] = _Q; - }); - var _R = $k[--$j]; - var _S = $k[--$j]; - $k[$j++] = _R; - $k[$j++] = _S; - $j--; - var _T = $k[--$j]; - var _W = $s($1.code.length + 1); - $puti(_W, 0, $1.code); - $put(_W, $1.code.length, $f($f(10 - $f($k[--$j] + _T) % 10) % 10 + 48)); - $k[$j++] = _W; - }; + $1.code = $k[--$j]; //#11332 + $k[$j++] = 0; //#11333 + $k[$j++] = 0; //#11333 + $forall($1.code, function() { //#11333 + var _E = $k[--$j]; //#11333 + var _F = $k[--$j]; //#11333 + var _G = $k[--$j]; //#11333 + $k[$j++] = $f($f(_E - 48) + (_F * 10)); //#11333 + $k[$j++] = _G; //#11333 + }); //#11333 + $j--; //#11333 + var _H = $k[--$j]; //#11333 + $k[$j++] = _H * 2; //#11334 + $k[$j++] = 0; //#11334 + for (;;) { //#11334 + var _I = $k[--$j]; //#11334 + var _J = $k[--$j]; //#11334 + var _K = ~~(_J / 10); //#11334 + $k[$j++] = $f(_I + (_J % 10)); //#11334 + $k[$j++] = _K; //#11334 + if (_K == 0) { //#11334 + $j--; //#11334 + break; //#11334 + } //#11334 + var _L = $k[--$j]; //#11334 + var _M = $k[--$j]; //#11334 + $k[$j++] = _L; //#11334 + $k[$j++] = _M; //#11334 + } //#11334 + $k[$j++] = 0; //#11335 + $k[$j++] = 0; //#11335 + $forall($1.code, function() { //#11335 + var _O = $k[--$j]; //#11335 + var _P = $k[--$j]; //#11335 + var _Q = $k[--$j]; //#11335 + $k[$j++] = $f(_P + $f(_O - 48)); //#11335 + $k[$j++] = _Q; //#11335 + }); //#11335 + var _R = $k[--$j]; //#11335 + var _S = $k[--$j]; //#11335 + $k[$j++] = _R; //#11335 + $k[$j++] = _S; //#11335 + $j--; //#11335 + var _T = $k[--$j]; //#11335 + var _W = $s($1.code.length + 1); //#11337 + $puti(_W, 0, $1.code); //#11337 + $put(_W, $1.code.length, $f((($f(10 - ($f($k[--$j] + _T) % 10))) % 10) + 48)); //#11337 + $k[$j++] = _W; //#11337 + }; //#11338 $1.mod11 = function() { - $1.code = $k[--$j]; - $k[$j++] = $1.code.length - 1; - $forall($1.code, function() { - var _c = $k[--$j]; - var _d = $k[--$j]; - $k[$j++] = $f(_c - 48); - $k[$j++] = $f(_d % 6 + 2); - $k[$j++] = $f(_d - 1); - }); - $j--; - $k[$j++] = 0; - for (var _f = 0, _g = $1.code.length; _f < _g; _f++) { - var _h = $k[--$j]; - var _i = $k[--$j]; - var _j = $k[--$j]; - $k[$j++] = $f(_h + _j * _i); - } - var _l = $f(11 - $k[--$j] % 11) % 11; - $k[$j++] = _l; - if (_l == 10 && $1.badmod11) { - $j--; - var _o = $s($1.code.length + 2); - $puti(_o, 0, $1.code); - $puti(_o, $1.code.length, "10"); - $k[$j++] = _o; - } else { - var _s = $s($1.code.length + 1); - $puti(_s, 0, $1.code); - $put(_s, $1.code.length, $f($k[--$j] + 48)); - $k[$j++] = _s; - } - }; + $1.code = $k[--$j]; //#11341 + $k[$j++] = $1.code.length - 1; //#11342 + $forall($1.code, function() { //#11342 + var _c = $k[--$j]; //#11342 + var _d = $k[--$j]; //#11342 + $k[$j++] = $f(_c - 48); //#11342 + $k[$j++] = $f((_d % 6) + 2); //#11342 + $k[$j++] = $f(_d - 1); //#11342 + }); //#11342 + $j--; //#11342 + $k[$j++] = 0; //#11343 + for (var _f = 0, _g = $1.code.length; _f < _g; _f++) { //#11343 + var _h = $k[--$j]; //#11343 + var _i = $k[--$j]; //#11343 + var _j = $k[--$j]; //#11343 + $k[$j++] = $f(_h + (_j * _i)); //#11343 + } //#11343 + var _l = ($f(11 - ($k[--$j] % 11))) % 11; //#11345 + $k[$j++] = _l; //#11349 + if ((_l == 10) && $1.badmod11) { //#11348 + $j--; //#11346 + var _o = $s($1.code.length + 2); //#11346 + $puti(_o, 0, $1.code); //#11346 + $puti(_o, $1.code.length, "10"); //#11346 + $k[$j++] = _o; //#11346 + } else { //#11348 + var _s = $s($1.code.length + 1); //#11348 + $puti(_s, 0, $1.code); //#11348 + $put(_s, $1.code.length, $f($k[--$j] + 48)); //#11348 + $k[$j++] = _s; //#11348 + } //#11348 + }; //#11350 $1.ncrmod11 = function() { - $1.code = $k[--$j]; - $k[$j++] = $1.code.length - 1; - $forall($1.code, function() { - var _z = $k[--$j]; - var _10 = $k[--$j]; - $k[$j++] = $f(_z - 48); - $k[$j++] = $f(_10 % 8 + 2); - $k[$j++] = $f(_10 - 1); - }); - $j--; - $k[$j++] = 0; - for (var _12 = 0, _13 = $1.code.length; _12 < _13; _12++) { - var _14 = $k[--$j]; - var _15 = $k[--$j]; - var _16 = $k[--$j]; - $k[$j++] = $f(_14 + _16 * _15); - } - var _18 = $f(11 - $k[--$j] % 11) % 11; - $k[$j++] = _18; - if (_18 == 10 && $1.badmod11) { - $j--; - var _1B = $s($1.code.length + 2); - $puti(_1B, 0, $1.code); - $puti(_1B, $1.code.length, "10"); - $k[$j++] = _1B; - } else { - var _1F = $s($1.code.length + 1); - $puti(_1F, 0, $1.code); - $put(_1F, $1.code.length, $f($k[--$j] + 48)); - $k[$j++] = _1F; - } - }; - if ($1.includecheck) { - if ($eq($1.checktype, "mod10")) { - $k[$j++] = $1.barcode; - $1.mod10(); - } - if ($eq($1.checktype, "mod1010")) { - $k[$j++] = $1.barcode; - $1.mod10(); - $1.mod10(); - } - if ($eq($1.checktype, "mod11")) { - $k[$j++] = $1.barcode; - $1.mod11(); - } - if ($eq($1.checktype, "ncrmod11")) { - $k[$j++] = $1.barcode; - $1.ncrmod11(); - } - if ($eq($1.checktype, "mod1110")) { - $k[$j++] = $1.barcode; - $1.mod11(); - $1.mod10(); - } - if ($eq($1.checktype, "ncrmod1110")) { - $k[$j++] = $1.barcode; - $1.ncrmod11(); - $1.mod10(); - } - $1.barcode = $k[--$j]; - $1.barlen = $1.barcode.length; - if ($1.includecheckintext) { - $1.txtlen = $1.barlen; - } - } - $1.sbs = $s($1.barlen * 8 + 5); - $1.txt = $a($1.barlen); - $puti($1.sbs, 0, $get($1.encs, 10)); - for (var _1j = 0, _1i = $1.barlen - 1; _1j <= _1i; _1j += 1) { - $1.i = _1j; - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $1.i * 8 + 2, $1.enc); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $1.i * 12 + 3, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $puti($1.sbs, $1.barlen * 8 + 2, $get($1.encs, 11)); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _29 = $1.sbs; - for (var _2A = 0, _2B = _29.length; _2A < _2B; _2A++) { - $k[$j++] = $get(_29, _2A) - 48; - } - var _2D = $a(); - $k[$j++] = Infinity; - for (var _2F = 0, _2G = ~~(($1.sbs.length + 1) / 2); _2F < _2G; _2F++) { - $k[$j++] = $1.height; - } - var _2I = $a(); - $k[$j++] = Infinity; - for (var _2K = 0, _2L = ~~(($1.sbs.length + 1) / 2); _2K < _2L; _2K++) { - $k[$j++] = 0; - } - var _2M = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _2D; - $k[$j++] = "bhs"; - $k[$j++] = _2I; - $k[$j++] = "bbs"; - $k[$j++] = _2M; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $geti($1.txt, 0, $1.txtlen); - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _2S = $d(); - $k[$j++] = _2S; - if (!$1.dontdraw) { - $0.renlinear(); - } + $1.code = $k[--$j]; //#11353 + $k[$j++] = $1.code.length - 1; //#11354 + $forall($1.code, function() { //#11354 + var _z = $k[--$j]; //#11354 + var _10 = $k[--$j]; //#11354 + $k[$j++] = $f(_z - 48); //#11354 + $k[$j++] = $f((_10 % 8) + 2); //#11354 + $k[$j++] = $f(_10 - 1); //#11354 + }); //#11354 + $j--; //#11354 + $k[$j++] = 0; //#11355 + for (var _12 = 0, _13 = $1.code.length; _12 < _13; _12++) { //#11355 + var _14 = $k[--$j]; //#11355 + var _15 = $k[--$j]; //#11355 + var _16 = $k[--$j]; //#11355 + $k[$j++] = $f(_14 + (_16 * _15)); //#11355 + } //#11355 + var _18 = ($f(11 - ($k[--$j] % 11))) % 11; //#11357 + $k[$j++] = _18; //#11361 + if ((_18 == 10) && $1.badmod11) { //#11360 + $j--; //#11358 + var _1B = $s($1.code.length + 2); //#11358 + $puti(_1B, 0, $1.code); //#11358 + $puti(_1B, $1.code.length, "10"); //#11358 + $k[$j++] = _1B; //#11358 + } else { //#11360 + var _1F = $s($1.code.length + 1); //#11360 + $puti(_1F, 0, $1.code); //#11360 + $put(_1F, $1.code.length, $f($k[--$j] + 48)); //#11360 + $k[$j++] = _1F; //#11360 + } //#11360 + }; //#11362 + if ($1.includecheck) { //#11375 + if ($eq($1.checktype, "mod10")) { //#11366 + $k[$j++] = $1.barcode; //#11366 + $1.mod10(); //#11366 + } //#11366 + if ($eq($1.checktype, "mod1010")) { //#11367 + $k[$j++] = $1.barcode; //#11367 + $1.mod10(); //#11367 + $1.mod10(); //#11367 + } //#11367 + if ($eq($1.checktype, "mod11")) { //#11368 + $k[$j++] = $1.barcode; //#11368 + $1.mod11(); //#11368 + } //#11368 + if ($eq($1.checktype, "ncrmod11")) { //#11369 + $k[$j++] = $1.barcode; //#11369 + $1.ncrmod11(); //#11369 + } //#11369 + if ($eq($1.checktype, "mod1110")) { //#11370 + $k[$j++] = $1.barcode; //#11370 + $1.mod11(); //#11370 + $1.mod10(); //#11370 + } //#11370 + if ($eq($1.checktype, "ncrmod1110")) { //#11371 + $k[$j++] = $1.barcode; //#11371 + $1.ncrmod11(); //#11371 + $1.mod10(); //#11371 + } //#11371 + $1.barcode = $k[--$j]; //#11372 + $1.barlen = $1.barcode.length; //#11373 + if ($1.includecheckintext) { //#11374 + $1.txtlen = $1.barlen; //#11374 + } //#11374 + } //#11374 + $1.sbs = $s(($1.barlen * 8) + 5); //#11377 + $1.txt = $a($1.barlen); //#11378 + $puti($1.sbs, 0, $get($1.encs, 10)); //#11381 + for (var _1j = 0, _1i = $1.barlen - 1; _1j <= _1i; _1j += 1) { //#11393 + $1.i = _1j; //#11384 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#11386 + $j--; //#11387 + $1.indx = $k[--$j].length; //#11388 + $j -= 2; //#11389 + $1.enc = $get($1.encs, $1.indx); //#11390 + $puti($1.sbs, ($1.i * 8) + 2, $1.enc); //#11391 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), ($1.i * 12) + 3, $1.textyoffset, $1.textfont, $1.textsize])); //#11392 + } //#11392 + $puti($1.sbs, ($1.barlen * 8) + 2, $get($1.encs, 11)); //#11396 + $k[$j++] = Infinity; //#11407 + $k[$j++] = Infinity; //#11401 + var _29 = $1.sbs; //#11401 + for (var _2A = 0, _2B = _29.length; _2A < _2B; _2A++) { //#11401 + $k[$j++] = $get(_29, _2A) - 48; //#11401 + } //#11401 + var _2D = $a(); //#11401 + $k[$j++] = Infinity; //#11402 + for (var _2F = 0, _2G = ~~(($1.sbs.length + 1) / 2); _2F < _2G; _2F++) { //#11402 + $k[$j++] = $1.height; //#11402 + } //#11402 + var _2I = $a(); //#11402 + $k[$j++] = Infinity; //#11403 + for (var _2K = 0, _2L = ~~(($1.sbs.length + 1) / 2); _2K < _2L; _2K++) { //#11403 + $k[$j++] = 0; //#11403 + } //#11403 + var _2M = $a(); //#11403 + $k[$j++] = 'ren'; //#11406 + $k[$j++] = $0.renlinear; //#11406 + $k[$j++] = 'sbs'; //#11406 + $k[$j++] = _2D; //#11406 + $k[$j++] = 'bhs'; //#11406 + $k[$j++] = _2I; //#11406 + $k[$j++] = 'bbs'; //#11406 + $k[$j++] = _2M; //#11406 + if ($1.includetext) { //#11406 + $k[$j++] = 'txt'; //#11405 + $k[$j++] = $geti($1.txt, 0, $1.txtlen); //#11405 + } //#11405 + $k[$j++] = 'opt'; //#11407 + $k[$j++] = $1.options; //#11407 + var _2S = $d(); //#11407 + $k[$j++] = _2S; //#11410 + if (!$1.dontdraw) { //#11410 + $0.renlinear(); //#11410 + } //#11410 }; $0.plessey = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.validatecheck = false; - $1.includecheckintext = false; - $1.unidirectional = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $1.barchars = "0123456789ABCDEF"; - $1.charvals = new Map(); - for (var _9 = 0; _9 <= 15; _9 += 1) { - $put($1.charvals, $geti($1.barchars, _9, 1), _9); - } - for (var _F = 0, _E = $1.barcode.length - 1; _F <= _E; _F += 1) { - var _J = $get($1.charvals, $geti($1.barcode, _F, 1)) !== undefined; - if (!_J) { - $k[$j++] = "bwipp.plesseyBadCharacter"; - $k[$j++] = "Plessey must contain only digits and letters A B C D E F"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _M = $k[--$j]; - $k[$j++] = $f(_M - 2); - } - var _N = $k[--$j]; - $1[$k[--$j]] = _N; - $1.checkbits = $a($f($1.barlen * 4 + 8)); - $puti($1.checkbits, $1.barlen * 4, $a([ 0, 0, 0, 0, 0, 0, 0, 0 ])); - for (var _W = 0, _V = $f($1.barlen - 1); _W <= _V; _W += 1) { - $1.i = _W; - $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); - $puti($1.checkbits, $1.i * 4, $a([ $1.indx & 1, $1.indx >>> 1 & 1, $1.indx >>> 2 & 1, $1.indx >>> 3 ])); - } - $1.checksalt = $a([ 1, 1, 1, 1, 0, 1, 0, 0, 1 ]); - for (var _m = 0, _l = $f($1.barlen * 4 - 1); _m <= _l; _m += 1) { - $1.i = _m; - if ($get($1.checkbits, $1.i) == 1) { - for (var _q = 0; _q <= 8; _q += 1) { - $1.j = _q; - $put($1.checkbits, $1.i + $1.j, $xo($get($1.checkbits, $1.i + $1.j), $get($1.checksalt, $1.j))); - } - } - } - $1.checkval = 0; - for (var _11 = 0; _11 <= 7; _11 += 1) { - $1.i = _11; - $1.checkval = $f($1.checkval + ~~Math.pow(2, $1.i) * $get($1.checkbits, $f($1.barlen * 4 + $1.i))); - } - $1.checksum1 = $1.checkval & 15; - $1.checksum2 = $1.checkval >>> 4; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum1) || $get($1.barcode, $f($1.barlen + 1)) != $get($1.barchars, $1.checksum2)) { - $k[$j++] = "bwipp.plesseyBadCheckDigits"; - $k[$j++] = "Incorrect Plessey check digits provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - $1.encs = $a([ "14141414", "32141414", "14321414", "32321414", "14143214", "32143214", "14323214", "32323214", "14141432", "32141432", "14321432", "32321432", "14143232", "32143232", "14323232", "32323232", "32321432", "541412323", "323" ]); - var _1T = $1.unidirectional ? 27 : 33; - $1.sbs = $s($f($1.barlen * 8 + _1T)); - $1.txt = $a($f($1.barlen + 2)); - $puti($1.sbs, 0, $get($1.encs, 16)); - for (var _1c = 0, _1b = $f($1.barlen - 1); _1c <= _1b; _1c += 1) { - $1.i = _1c; - $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); - $puti($1.sbs, $1.i * 8 + 8, $get($1.encs, $1.indx)); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $1.i * 20 + 20, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $puti($1.sbs, $f($1.barlen * 8 + 8), $get($1.encs, $1.checksum1)); - $puti($1.sbs, $f($1.barlen * 8 + 16), $get($1.encs, $1.checksum2)); - if ($1.includecheckintext) { - $put($1.txt, $1.barlen, $a([ $geti($1.barchars, $1.checksum1, 1), $f($1.barlen * 20 + 20), $1.textyoffset, $1.textfont, $1.textsize ])); - $put($1.txt, $f($1.barlen + 1), $a([ $geti($1.barchars, $1.checksum2, 1), $f($f($1.barlen + 1) * 20 + 20), $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $1.barlen, $a([ " ", $f($1.barlen * 20 + 20), $1.textyoffset, $1.textfont, $1.textsize ])); - $put($1.txt, $f($1.barlen + 1), $a([ " ", $f($f($1.barlen + 1) * 20 + 20), $1.textyoffset, $1.textfont, $1.textsize ])); - } - var _2k = $1.unidirectional ? 18 : 17; - $puti($1.sbs, $f($1.barlen * 8 + 24), $get($1.encs, _2k)); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _2m = $1.sbs; - for (var _2n = 0, _2o = _2m.length; _2n < _2o; _2n++) { - $k[$j++] = $get(_2m, _2n) - 48; - } - var _2q = $a(); - $k[$j++] = Infinity; - for (var _2s = 0, _2t = ~~(($1.sbs.length + 1) / 2); _2s < _2t; _2s++) { - $k[$j++] = $1.height; - } - var _2v = $a(); - $k[$j++] = Infinity; - for (var _2x = 0, _2y = ~~(($1.sbs.length + 1) / 2); _2x < _2y; _2x++) { - $k[$j++] = 0; - } - var _2z = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _2q; - $k[$j++] = "bhs"; - $k[$j++] = _2v; - $k[$j++] = "bbs"; - $k[$j++] = _2z; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _33 = $d(); - $k[$j++] = _33; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#11439 + $1.options = $k[--$j]; //#11441 + $1.barcode = $k[--$j]; //#11442 + $1.dontdraw = false; //#11444 + $1.includetext = false; //#11445 + $1.validatecheck = false; //#11446 + $1.includecheckintext = false; //#11447 + $1.unidirectional = false; //#11448 + $1.textfont = "OCR-B"; //#11449 + $1.textsize = 10; //#11450 + $1.textyoffset = -8; //#11451 + $1.height = 1; //#11452 + $forall($1.options, function() { //#11463 + var _3 = $k[--$j]; //#11463 + $1[$k[--$j]] = _3; //#11463 + }); //#11463 + $1.textfont = "" + $1.textfont; //#11465 + $1.textsize = +$1.textsize; //#11466 + $1.textyoffset = +$1.textyoffset; //#11467 + $1.height = +$1.height; //#11468 + $1.barchars = "0123456789ABCDEF"; //#11471 + $1.charvals = new Map; //#11472 + for (var _9 = 0; _9 <= 15; _9 += 1) { //#11473 + $put($1.charvals, $geti($1.barchars, _9, 1), _9); //#11473 + } //#11473 + for (var _F = 0, _E = $1.barcode.length - 1; _F <= _E; _F += 1) { //#11480 + var _J = $get($1.charvals, $geti($1.barcode, _F, 1)) !== undefined; //#11477 + if (!_J) { //#11479 + $k[$j++] = 'bwipp.plesseyBadCharacter'; //#11478 + $k[$j++] = "Plessey must contain only digits and letters A B C D E F"; //#11478 + $0.raiseerror(); //#11478 + } //#11478 + } //#11478 + $k[$j++] = 'barlen'; //#11482 + $k[$j++] = $1.barcode.length; //#11482 + if ($1.validatecheck) { //#11482 + var _M = $k[--$j]; //#11482 + $k[$j++] = $f(_M - 2); //#11482 + } //#11482 + var _N = $k[--$j]; //#11482 + $1[$k[--$j]] = _N; //#11482 + $1.checkbits = $a($f(($1.barlen * 4) + 8)); //#11485 + $puti($1.checkbits, $1.barlen * 4, $a([0, 0, 0, 0, 0, 0, 0, 0])); //#11486 + for (var _W = 0, _V = $f($1.barlen - 1); _W <= _V; _W += 1) { //#11496 + $1.i = _W; //#11488 + $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); //#11489 + $puti($1.checkbits, $1.i * 4, $a([$1.indx & 1, ($1.indx >>> 1) & 1, ($1.indx >>> 2) & 1, $1.indx >>> 3])); //#11495 + } //#11495 + $1.checksalt = $a([1, 1, 1, 1, 0, 1, 0, 0, 1]); //#11497 + for (var _m = 0, _l = $f(($1.barlen * 4) - 1); _m <= _l; _m += 1) { //#11506 + $1.i = _m; //#11499 + if ($get($1.checkbits, $1.i) == 1) { //#11505 + for (var _q = 0; _q <= 8; _q += 1) { //#11504 + $1.j = _q; //#11502 + $put($1.checkbits, $1.i + $1.j, $xo($get($1.checkbits, $1.i + $1.j), $get($1.checksalt, $1.j))); //#11503 + } //#11503 + } //#11503 + } //#11503 + $1.checkval = 0; //#11507 + for (var _11 = 0; _11 <= 7; _11 += 1) { //#11511 + $1.i = _11; //#11509 + $1.checkval = $f($1.checkval + ((~~Math.pow(2, $1.i)) * $get($1.checkbits, $f(($1.barlen * 4) + $1.i)))); //#11510 + } //#11510 + $1.checksum1 = $1.checkval & 15; //#11512 + $1.checksum2 = $1.checkval >>> 4; //#11513 + if ($1.validatecheck) { //#11520 + if (($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum1)) || ($get($1.barcode, $f($1.barlen + 1)) != $get($1.barchars, $1.checksum2))) { //#11518 + $k[$j++] = 'bwipp.plesseyBadCheckDigits'; //#11517 + $k[$j++] = "Incorrect Plessey check digits provided"; //#11517 + $0.raiseerror(); //#11517 + } //#11517 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#11519 + } //#11519 + $1.encs = $a(["14141414", "32141414", "14321414", "32321414", "14143214", "32143214", "14323214", "32323214", "14141432", "32141432", "14321432", "32321432", "14143232", "32143232", "14323232", "32323232", "32321432", "541412323", "323"]); //#11529 + var _1T = $1.unidirectional ? 27 : 33; //#11531 + $1.sbs = $s($f(($1.barlen * 8) + _1T)); //#11531 + $1.txt = $a($f($1.barlen + 2)); //#11532 + $puti($1.sbs, 0, $get($1.encs, 16)); //#11535 + for (var _1c = 0, _1b = $f($1.barlen - 1); _1c <= _1b; _1c += 1) { //#11542 + $1.i = _1c; //#11538 + $1.indx = $get($1.charvals, $geti($1.barcode, $1.i, 1)); //#11539 + $puti($1.sbs, ($1.i * 8) + 8, $get($1.encs, $1.indx)); //#11540 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), ($1.i * 20) + 20, $1.textyoffset, $1.textfont, $1.textsize])); //#11541 + } //#11541 + $puti($1.sbs, $f(($1.barlen * 8) + 8), $get($1.encs, $1.checksum1)); //#11545 + $puti($1.sbs, $f(($1.barlen * 8) + 16), $get($1.encs, $1.checksum2)); //#11546 + if ($1.includecheckintext) { //#11552 + $put($1.txt, $1.barlen, $a([$geti($1.barchars, $1.checksum1, 1), $f(($1.barlen * 20) + 20), $1.textyoffset, $1.textfont, $1.textsize])); //#11548 + $put($1.txt, $f($1.barlen + 1), $a([$geti($1.barchars, $1.checksum2, 1), $f(($f($1.barlen + 1) * 20) + 20), $1.textyoffset, $1.textfont, $1.textsize])); //#11549 + } else { //#11552 + $put($1.txt, $1.barlen, $a([" ", $f(($1.barlen * 20) + 20), $1.textyoffset, $1.textfont, $1.textsize])); //#11551 + $put($1.txt, $f($1.barlen + 1), $a([" ", $f(($f($1.barlen + 1) * 20) + 20), $1.textyoffset, $1.textfont, $1.textsize])); //#11552 + } //#11552 + var _2k = $1.unidirectional ? 18 : 17; //#11556 + $puti($1.sbs, $f(($1.barlen * 8) + 24), $get($1.encs, _2k)); //#11556 + $k[$j++] = Infinity; //#11567 + $k[$j++] = Infinity; //#11561 + var _2m = $1.sbs; //#11561 + for (var _2n = 0, _2o = _2m.length; _2n < _2o; _2n++) { //#11561 + $k[$j++] = $get(_2m, _2n) - 48; //#11561 + } //#11561 + var _2q = $a(); //#11561 + $k[$j++] = Infinity; //#11562 + for (var _2s = 0, _2t = ~~(($1.sbs.length + 1) / 2); _2s < _2t; _2s++) { //#11562 + $k[$j++] = $1.height; //#11562 + } //#11562 + var _2v = $a(); //#11562 + $k[$j++] = Infinity; //#11563 + for (var _2x = 0, _2y = ~~(($1.sbs.length + 1) / 2); _2x < _2y; _2x++) { //#11563 + $k[$j++] = 0; //#11563 + } //#11563 + var _2z = $a(); //#11563 + $k[$j++] = 'ren'; //#11566 + $k[$j++] = $0.renlinear; //#11566 + $k[$j++] = 'sbs'; //#11566 + $k[$j++] = _2q; //#11566 + $k[$j++] = 'bhs'; //#11566 + $k[$j++] = _2v; //#11566 + $k[$j++] = 'bbs'; //#11566 + $k[$j++] = _2z; //#11566 + if ($1.includetext) { //#11566 + $k[$j++] = 'txt'; //#11565 + $k[$j++] = $1.txt; //#11565 + } //#11565 + $k[$j++] = 'opt'; //#11567 + $k[$j++] = $1.options; //#11567 + var _33 = $d(); //#11567 + $k[$j++] = _33; //#11570 + if (!$1.dontdraw) { //#11570 + $0.renlinear(); //#11570 + } //#11570 }; $0.telepen = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.numeric = false; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = 1; - $1.parse = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - var _A = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _A; - $k[$j++] = "barcode"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _D = $k[--$j]; - $1[$k[--$j]] = _D; - $1.barlen = $1.barcode.length; - delete $1.options["parse"]; - $1.encs = $a([ "31313131", "1131313111", "33313111", "1111313131", "3111313111", "11333131", "13133131", "111111313111", "31333111", "1131113131", "33113131", "1111333111", "3111113131", "1113133111", "1311133111", "111111113131", "3131113111", "11313331", "333331", "111131113111", "31113331", "1133113111", "1313113111", "1111113331", "31131331", "113111113111", "3311113111", "1111131331", "311111113111", "1113111331", "1311111331", "11111111113111", "31313311", "1131311131", "33311131", "1111313311", "3111311131", "11333311", "13133311", "111111311131", "31331131", "1131113311", "33113311", "1111331131", "3111113311", "1113131131", "1311131131", "111111113311", "3131111131", "1131131311", "33131311", "111131111131", "3111131311", "1133111131", "1313111131", "111111131311", "3113111311", "113111111131", "3311111131", "111113111311", "311111111131", "111311111311", "131111111311", "11111111111131", "3131311111", "11313133", "333133", "111131311111", "31113133", "1133311111", "1313311111", "1111113133", "313333", "113111311111", "3311311111", "11113333", "311111311111", "11131333", "13111333", "11111111311111", "31311133", "1131331111", "33331111", "1111311133", "3111331111", "11331133", "13131133", "111111331111", "3113131111", "1131111133", "33111133", "111113131111", "3111111133", "111311131111", "131111131111", "111111111133", "31311313", "113131111111", "3331111111", "1111311313", "311131111111", "11331313", "13131313", "11111131111111", "3133111111", "1131111313", "33111313", "111133111111", "3111111313", "111313111111", "131113111111", "111111111313", "313111111111", "1131131113", "33131113", "11113111111111", "3111131113", "113311111111", "131311111111", "111111131113", "3113111113", "11311111111111", "331111111111", "111113111113", "31111111111111", "111311111113", "131111111113", "1111111111111111" ]); - $1.barlen = $1.barcode.length; - $1.sbs = $s($1.barlen * 16 + 48); - $1.txt = $a($1.barlen); - $1.enc = $get($1.encs, 95); - $puti($1.sbs, 0, $1.enc); - $1.l = $1.enc.length; - $1.checksum = 0; - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.barlen) { - break; - } - if ($1.numeric) { - if ($get($1.barcode, $1.i) > 16) { - $1.np = $geti($1.barcode, $1.i, 2); - if ($eq($geti($1.np, 1, 1), "X")) { - $1.indx = ~~$z($geti($1.np, 0, 1)) + 17; - } else { - $1.indx = ~~$z($1.np) + 27; - } - $put($1.txt, $1.j, $a([ $1.np, $1.j * 16 + 16, $1.textyoffset, $1.textfont, $1.textsize ])); - $1.i = $1.i + 2; - } else { - $1.indx = $get($1.barcode, $1.i); - $put($1.txt, $1.j, $a([ " ", $1.j * 16 + 16, $1.textyoffset, $1.textfont, $1.textsize ])); - $1.i = $1.i + 1; - } - } else { - $1.indx = $get($1.barcode, $1.i); - if ($1.indx >= 32 && $1.indx <= 126) { - $put($1.txt, $1.j, $a([ $geti($1.barcode, $1.i, 1), $1.j * 16 + 16, $1.textyoffset, $1.textfont, $1.textsize ])); - } else { - $put($1.txt, $1.j, $a([ " ", $1.j * 16 + 16, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $1.i = $1.i + 1; - } - $1.checksum = $f($1.checksum + $1.indx); - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $1.l, $1.enc); - $1.l = $1.l + $1.enc.length; - $1.j = $1.j + 1; - } - $1.checksum = $f(127 - $1.checksum % 127) % 127; - $1.enc = $get($1.encs, $1.checksum); - $puti($1.sbs, $1.l, $1.enc); - $1.l = $1.l + $1.enc.length; - $1.enc = $get($1.encs, 122); - $puti($1.sbs, $1.l, $1.enc); - $1.l = $1.l + $1.enc.length; - $1.sbs = $geti($1.sbs, 0, $1.l); - $1.txt = $geti($1.txt, 0, $1.j); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _1u = $1.sbs; - for (var _1v = 0, _1w = _1u.length; _1v < _1w; _1v++) { - $k[$j++] = $f($get(_1u, _1v) - 48); - } - var _1y = $a(); - $k[$j++] = Infinity; - for (var _20 = 0, _21 = ~~(($1.sbs.length + 1) / 2); _20 < _21; _20++) { - $k[$j++] = $1.height; - } - var _23 = $a(); - $k[$j++] = Infinity; - for (var _25 = 0, _26 = ~~(($1.sbs.length + 1) / 2); _25 < _26; _25++) { - $k[$j++] = 0; - } - var _27 = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _1y; - $k[$j++] = "bhs"; - $k[$j++] = _23; - $k[$j++] = "bbs"; - $k[$j++] = _27; - if ($1.includetext) { - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - } - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _2B = $d(); - $k[$j++] = _2B; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#11600 + $1.options = $k[--$j]; //#11602 + $1.barcode = $k[--$j]; //#11603 + $1.numeric = false; //#11605 + $1.dontdraw = false; //#11606 + $1.includetext = false; //#11607 + $1.textfont = "OCR-B"; //#11608 + $1.textsize = 10; //#11609 + $1.textyoffset = -8; //#11610 + $1.height = 1; //#11611 + $1.parse = false; //#11612 + $forall($1.options, function() { //#11623 + var _3 = $k[--$j]; //#11623 + $1[$k[--$j]] = _3; //#11623 + }); //#11623 + $1.textfont = "" + $1.textfont; //#11625 + $1.textsize = +$1.textsize; //#11626 + $1.textyoffset = +$1.textyoffset; //#11627 + $1.height = +$1.height; //#11628 + var _A = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#11634 + $1.fncvals = _A; //#11635 + $k[$j++] = 'barcode'; //#11636 + $k[$j++] = $1.barcode; //#11636 + $k[$j++] = $1.fncvals; //#11636 + $0.parseinput(); //#11636 + var _D = $k[--$j]; //#11636 + $1[$k[--$j]] = _D; //#11636 + $1.barlen = $1.barcode.length; //#11637 + delete $1.options["parse"]; //#11638 + $1.encs = $a(["31313131", "1131313111", "33313111", "1111313131", "3111313111", "11333131", "13133131", "111111313111", "31333111", "1131113131", "33113131", "1111333111", "3111113131", "1113133111", "1311133111", "111111113131", "3131113111", "11313331", "333331", "111131113111", "31113331", "1133113111", "1313113111", "1111113331", "31131331", "113111113111", "3311113111", "1111131331", "311111113111", "1113111331", "1311111331", "11111111113111", "31313311", "1131311131", "33311131", "1111313311", "3111311131", "11333311", "13133311", "111111311131", "31331131", "1131113311", "33113311", "1111331131", "3111113311", "1113131131", "1311131131", "111111113311", "3131111131", "1131131311", "33131311", "111131111131", "3111131311", "1133111131", "1313111131", "111111131311", "3113111311", "113111111131", "3311111131", "111113111311", "311111111131", "111311111311", "131111111311", "11111111111131", "3131311111", "11313133", "333133", "111131311111", "31113133", "1133311111", "1313311111", "1111113133", "313333", "113111311111", "3311311111", "11113333", "311111311111", "11131333", "13111333", "11111111311111", "31311133", "1131331111", "33331111", "1111311133", "3111331111", "11331133", "13131133", "111111331111", "3113131111", "1131111133", "33111133", "111113131111", "3111111133", "111311131111", "131111131111", "111111111133", "31311313", "113131111111", "3331111111", "1111311313", "311131111111", "11331313", "13131313", "11111131111111", "3133111111", "1131111313", "33111313", "111133111111", "3111111313", "111313111111", "131113111111", "111111111313", "313111111111", "1131131113", "33131113", "11113111111111", "3111131113", "113311111111", "131311111111", "111111131113", "3113111113", "11311111111111", "331111111111", "111113111113", "31111111111111", "111311111113", "131111111113", "1111111111111111"]); //#11674 + $1.barlen = $1.barcode.length; //#11676 + $1.sbs = $s(($1.barlen * 16) + 48); //#11677 + $1.txt = $a($1.barlen); //#11678 + $1.enc = $get($1.encs, 95); //#11681 + $puti($1.sbs, 0, $1.enc); //#11682 + $1.l = $1.enc.length; //#11683 + $1.checksum = 0; //#11685 + $1.i = 0; //#11686 + $1.j = 0; //#11686 + for (;;) { //#11718 + if ($1.i == $1.barlen) { //#11688 + break; //#11688 + } //#11688 + if ($1.numeric) { //#11711 + if ($get($1.barcode, $1.i) > 16) { //#11702 + $1.np = $geti($1.barcode, $1.i, 2); //#11691 + if ($eq($geti($1.np, 1, 1), "X")) { //#11695 + $1.indx = (~~$z($geti($1.np, 0, 1))) + 17; //#11693 + } else { //#11695 + $1.indx = (~~$z($1.np)) + 27; //#11695 + } //#11695 + $put($1.txt, $1.j, $a([$1.np, ($1.j * 16) + 16, $1.textyoffset, $1.textfont, $1.textsize])); //#11697 + $1.i = $1.i + 2; //#11698 + } else { //#11702 + $1.indx = $get($1.barcode, $1.i); //#11700 + $put($1.txt, $1.j, $a([" ", ($1.j * 16) + 16, $1.textyoffset, $1.textfont, $1.textsize])); //#11701 + $1.i = $1.i + 1; //#11702 + } //#11702 + } else { //#11711 + $1.indx = $get($1.barcode, $1.i); //#11705 + if (($1.indx >= 32) && ($1.indx <= 126)) { //#11709 + $put($1.txt, $1.j, $a([$geti($1.barcode, $1.i, 1), ($1.j * 16) + 16, $1.textyoffset, $1.textfont, $1.textsize])); //#11707 + } else { //#11709 + $put($1.txt, $1.j, $a([" ", ($1.j * 16) + 16, $1.textyoffset, $1.textfont, $1.textsize])); //#11709 + } //#11709 + $1.i = $1.i + 1; //#11711 + } //#11711 + $1.checksum = $f($1.checksum + $1.indx); //#11713 + $1.enc = $get($1.encs, $1.indx); //#11714 + $puti($1.sbs, $1.l, $1.enc); //#11715 + $1.l = $1.l + $1.enc.length; //#11716 + $1.j = $1.j + 1; //#11717 + } //#11717 + $1.checksum = ($f(127 - ($1.checksum % 127))) % 127; //#11721 + $1.enc = $get($1.encs, $1.checksum); //#11722 + $puti($1.sbs, $1.l, $1.enc); //#11723 + $1.l = $1.l + $1.enc.length; //#11724 + $1.enc = $get($1.encs, 122); //#11727 + $puti($1.sbs, $1.l, $1.enc); //#11728 + $1.l = $1.l + $1.enc.length; //#11729 + $1.sbs = $geti($1.sbs, 0, $1.l); //#11732 + $1.txt = $geti($1.txt, 0, $1.j); //#11733 + $k[$j++] = Infinity; //#11744 + $k[$j++] = Infinity; //#11738 + var _1u = $1.sbs; //#11738 + for (var _1v = 0, _1w = _1u.length; _1v < _1w; _1v++) { //#11738 + $k[$j++] = $f($get(_1u, _1v) - 48); //#11738 + } //#11738 + var _1y = $a(); //#11738 + $k[$j++] = Infinity; //#11739 + for (var _20 = 0, _21 = ~~(($1.sbs.length + 1) / 2); _20 < _21; _20++) { //#11739 + $k[$j++] = $1.height; //#11739 + } //#11739 + var _23 = $a(); //#11739 + $k[$j++] = Infinity; //#11740 + for (var _25 = 0, _26 = ~~(($1.sbs.length + 1) / 2); _25 < _26; _25++) { //#11740 + $k[$j++] = 0; //#11740 + } //#11740 + var _27 = $a(); //#11740 + $k[$j++] = 'ren'; //#11743 + $k[$j++] = $0.renlinear; //#11743 + $k[$j++] = 'sbs'; //#11743 + $k[$j++] = _1y; //#11743 + $k[$j++] = 'bhs'; //#11743 + $k[$j++] = _23; //#11743 + $k[$j++] = 'bbs'; //#11743 + $k[$j++] = _27; //#11743 + if ($1.includetext) { //#11743 + $k[$j++] = 'txt'; //#11742 + $k[$j++] = $1.txt; //#11742 + } //#11742 + $k[$j++] = 'opt'; //#11744 + $k[$j++] = $1.options; //#11744 + var _2B = $d(); //#11744 + $k[$j++] = _2B; //#11747 + if (!$1.dontdraw) { //#11747 + $0.renlinear(); //#11747 + } //#11747 }; $0.telepennumeric = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $put($1.options, "dontdraw", true); - $put($1.options, "numeric", true); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.telepen(); - var _E = $k[--$j]; - $1[$k[--$j]] = _E; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#11777 + $1.options = $k[--$j]; //#11779 + $1.barcode = $k[--$j]; //#11780 + $1.dontdraw = false; //#11782 + $1.includetext = false; //#11783 + $1.textfont = "OCR-B"; //#11784 + $1.textsize = 10; //#11785 + $1.textxoffset = 0; //#11786 + $1.textyoffset = -8; //#11787 + $1.height = 1; //#11788 + $forall($1.options, function() { //#11799 + var _3 = $k[--$j]; //#11799 + $1[$k[--$j]] = _3; //#11799 + }); //#11799 + $1.textfont = "" + $1.textfont; //#11801 + $1.textsize = +$1.textsize; //#11802 + $1.textxoffset = +$1.textxoffset; //#11803 + $1.textyoffset = +$1.textyoffset; //#11804 + $1.height = +$1.height; //#11805 + $put($1.options, "dontdraw", true); //#11808 + $put($1.options, "numeric", true); //#11809 + $k[$j++] = 'args'; //#11811 + $k[$j++] = $1.barcode; //#11811 + $k[$j++] = $1.options; //#11811 + $0.telepen(); //#11811 + var _E = $k[--$j]; //#11811 + $1[$k[--$j]] = _E; //#11811 + $put($1.args, "opt", $1.options); //#11813 + $k[$j++] = $1.args; //#11816 + if (!$1.dontdraw) { //#11816 + $0.renlinear(); //#11816 + } //#11816 }; $0.posicode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = -8; - $1.height = 1; - $1.encoding = "auto"; - $1.version = "a"; - $1.checkoffset = 0; - $1.raw = false; - $1.parse = false; - $1.parsefnc = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.encoding = "" + $1.encoding; - $1.version = "" + $1.version; - $1.checkoffset = ~~$1.checkoffset; - $1.height = +$1.height; - $1.la0 = -1; - $1.la1 = -2; - $1.la2 = -3; - $1.sf0 = -4; - $1.sf1 = -5; - $1.sf2 = -6; - $1.fn1 = -7; - $1.fn2 = -8; - $1.fn3 = -9; - $1.fn4 = -10; - var _1l = new Map([ [ "normal", $a([ $a([ "0", "^", "'" ]), $a([ "1", ";", 27 ]), $a([ "2", "<", 28 ]), $a([ "3", "=", 29 ]), $a([ "4", ">", 30 ]), $a([ "5", "?", 31 ]), $a([ "6", "@", "!" ]), $a([ "7", "[", '"' ]), $a([ "8", 92, "#" ]), $a([ "9", "]", "&" ]), $a([ "A", "a", 1 ]), $a([ "B", "b", 2 ]), $a([ "C", "c", 3 ]), $a([ "D", "d", 4 ]), $a([ "E", "e", 5 ]), $a([ "F", "f", 6 ]), $a([ "G", "g", 7 ]), $a([ "H", "h", 8 ]), $a([ "I", "i", 9 ]), $a([ "J", "j", 10 ]), $a([ "K", "k", 11 ]), $a([ "L", "l", 12 ]), $a([ "M", "m", 13 ]), $a([ "N", "n", 14 ]), $a([ "O", "o", 15 ]), $a([ "P", "p", 16 ]), $a([ "Q", "q", 17 ]), $a([ "R", "r", 18 ]), $a([ "S", "s", 19 ]), $a([ "T", "t", 20 ]), $a([ "U", "u", 21 ]), $a([ "V", "v", 22 ]), $a([ "W", "w", 23 ]), $a([ "X", "x", 24 ]), $a([ "Y", "y", 25 ]), $a([ "Z", "z", 26 ]), $a([ "-", "_", 40 ]), $a([ ".", "`", 41 ]), $a([ " ", 127, 0 ]), $a([ "$", "{", "*" ]), $a([ "/", "|", "," ]), $a([ "+", "}", ":" ]), $a([ "%", "~", $1.fn1 ]), $a([ $1.la1, $1.la0, $1.fn2 ]), $a([ $1.sf1, $1.sf0, $1.fn3 ]), $a([ $1.sf2, $1.sf2, $1.fn4 ]) ]) ], [ "limited", $a([ $a([ "0", -98, -98 ]), $a([ "1", -98, -98 ]), $a([ "2", -98, -98 ]), $a([ "3", -98, -98 ]), $a([ "4", -98, -98 ]), $a([ "5", -98, -98 ]), $a([ "6", -98, -98 ]), $a([ "7", -98, -98 ]), $a([ "8", -98, -98 ]), $a([ "9", -98, -98 ]), $a([ "A", -98, -98 ]), $a([ "B", -98, -98 ]), $a([ "C", -98, -98 ]), $a([ "D", -98, -98 ]), $a([ "E", -98, -98 ]), $a([ "F", -98, -98 ]), $a([ "G", -98, -98 ]), $a([ "H", -98, -98 ]), $a([ "I", -98, -98 ]), $a([ "J", -98, -98 ]), $a([ "K", -98, -98 ]), $a([ "L", -98, -98 ]), $a([ "M", -98, -98 ]), $a([ "N", -98, -98 ]), $a([ "O", -98, -98 ]), $a([ "P", -98, -98 ]), $a([ "Q", -98, -98 ]), $a([ "R", -98, -98 ]), $a([ "S", -98, -98 ]), $a([ "T", -98, -98 ]), $a([ "U", -98, -98 ]), $a([ "V", -98, -98 ]), $a([ "W", -98, -98 ]), $a([ "X", -98, -98 ]), $a([ "Y", -98, -98 ]), $a([ "Z", -98, -98 ]), $a([ "-", -98, -98 ]), $a([ ".", -98, -98 ]) ]) ] ]); - $k[$j++] = _1l; - if ($eq($1.version, "a") || $eq($1.version, "b")) { - $k[$j++] = "normal"; - } else { - $k[$j++] = "limited"; - } - var _1o = $k[--$j]; - $1.charmaps = $get($k[--$j], _1o); - var _1r = $1.charmaps; - var _1s = $1.charmaps; - var _1t = $1.charmaps; - $1.charvals = $a([ new Map(), new Map(), new Map() ]); - for (var _1x = 0, _1w = $1.charmaps.length - 1; _1x <= _1w; _1x += 1) { - $1.i = _1x; - $1.encs = $get($1.charmaps, $1.i); - for (var _21 = 0; _21 <= 2; _21 += 1) { - $1.j = _21; - var _24 = $get($1.encs, $1.j); - $k[$j++] = _24; - if ($eq($type(_24), "stringtype")) { - var _27 = $get($k[--$j], 0); - $k[$j++] = _27; - } - $put($get($1.charvals, $1.j), $k[--$j], $1.i); - } - } - $1.set0 = $get($1.charvals, 0); - $1.set1 = $get($1.charvals, 1); - $1.set2 = $get($1.charvals, 2); - if ($1.raw) { - $1.encoding = "raw"; - } - if ($eq($1.encoding, "raw")) { - $1.cws = $a($1.barcode.length); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.barcode.length) { - break; - } - $1.cw = ~~$z($geti($1.barcode, $1.i + 1, 3)); - $put($1.cws, $1.j, $1.cw); - $1.i = $1.i + 4; - $1.j = $1.j + 1; - } - $1.cws = $geti($1.cws, 0, $1.j); - $1.text = ""; - } - if ($eq($1.encoding, "auto")) { - var _2g = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "FNC1", $1.fn1 ], [ "FNC2", $1.fn2 ], [ "FNC3", $1.fn3 ] ]); - $1.fncvals = _2g; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _2j = $k[--$j]; - $1[$k[--$j]] = _2j; - $1.msglen = $1.msg.length; - $1.text = $s($1.msglen); - for (var _2q = 0, _2p = $1.msglen - 1; _2q <= _2p; _2q += 1) { - $1.i = _2q; - var _2v = $get($1.msg, $1.i); - $k[$j++] = $1.text; - $k[$j++] = $1.i; - $k[$j++] = _2v; - if (_2v < 0) { - $j--; - $k[$j++] = 32; - } - var _2w = $k[--$j]; - var _2x = $k[--$j]; - $put($k[--$j], _2x, _2w); - } - $k[$j++] = Infinity; - for (var _30 = 0, _31 = $1.msglen; _30 < _31; _30++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numSA = $a(); - $k[$j++] = Infinity; - for (var _34 = 0, _35 = $1.msglen; _34 < _35; _34++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numEA = $a(); - for (var _38 = $1.msglen - 1; _38 >= 0; _38 -= 1) { - $1.i = _38; - if ($get($1.msg, $1.i) >= 0) { - if ($get($1.msg, $1.i) >= 128) { - $put($1.numEA, $1.i, $f($get($1.numEA, $1.i + 1) + 1)); - } else { - $put($1.numSA, $1.i, $f($get($1.numSA, $1.i + 1) + 1)); - } - } - } - $1.ea = false; - $1.msgtmp = $a([]); - for (var _3S = 0, _3R = $1.msglen - 1; _3S <= _3R; _3S += 1) { - $1.i = _3S; - $1.c = $get($1.msg, $1.i); - if (!$xo($1.ea, $1.c < 128) && $1.c >= 0) { - if ($1.ea) { - $k[$j++] = $1.numSA; - } else { - $k[$j++] = $1.numEA; - } - var _3e = $get($k[--$j], $1.i); - var _3h = $f(_3e + $1.i) == $1.msglen ? 3 : 5; - if (_3e < _3h) { - $k[$j++] = Infinity; - $aload($1.msgtmp); - $k[$j++] = $1.fn4; - $1.msgtmp = $a(); - } else { - $k[$j++] = Infinity; - $aload($1.msgtmp); - $k[$j++] = $1.fn4; - $k[$j++] = $1.fn4; - $1.msgtmp = $a(); - $1.ea = !$1.ea; - } - } - $k[$j++] = Infinity; - $aload($1.msgtmp); - if ($1.c >= 0) { - $k[$j++] = $1.c & 127; - } else { - $k[$j++] = $1.c; - } - $1.msgtmp = $a(); - } - $1.msg = $1.msgtmp; - $1.msglen = $1.msg.length; + var $1 = {}; //#11846 + $1.options = $k[--$j]; //#11848 + $1.barcode = $k[--$j]; //#11849 + $1.dontdraw = false; //#11851 + $1.includetext = false; //#11852 + $1.textfont = "OCR-B"; //#11853 + $1.textsize = 10; //#11854 + $1.textxoffset = 0; //#11855 + $1.textyoffset = -8; //#11856 + $1.height = 1; //#11857 + $1.encoding = "auto"; //#11858 + $1.version = "a"; //#11859 + $1.checkoffset = 0; //#11860 + $1.raw = false; //#11861 + $1.parse = false; //#11862 + $1.parsefnc = false; //#11863 + $forall($1.options, function() { //#11874 + var _3 = $k[--$j]; //#11874 + $1[$k[--$j]] = _3; //#11874 + }); //#11874 + $1.textfont = "" + $1.textfont; //#11876 + $1.textsize = +$1.textsize; //#11877 + $1.textxoffset = +$1.textxoffset; //#11878 + $1.textyoffset = +$1.textyoffset; //#11879 + $1.encoding = "" + $1.encoding; //#11880 + $1.version = "" + $1.version; //#11881 + $1.checkoffset = ~~$1.checkoffset; //#11882 + $1.height = +$1.height; //#11883 + $1.la0 = -1; //#11886 + $1.la1 = -2; //#11886 + $1.la2 = -3; //#11886 + $1.sf0 = -4; //#11887 + $1.sf1 = -5; //#11887 + $1.sf2 = -6; //#11887 + $1.fn1 = -7; //#11888 + $1.fn2 = -8; //#11888 + $1.fn3 = -9; //#11888 + $1.fn4 = -10; //#11888 + var _1l = new Map([ + ["normal", $a([$a(["0", "^", "'"]), $a(["1", ";", 27]), $a(["2", "<", 28]), $a(["3", "=", 29]), $a(["4", ">", 30]), $a(["5", "?", 31]), $a(["6", "@", "!"]), $a(["7", "[", "\""]), $a(["8", 92, "#"]), $a(["9", "]", "&"]), $a(["A", "a", 1]), $a(["B", "b", 2]), $a(["C", "c", 3]), $a(["D", "d", 4]), $a(["E", "e", 5]), $a(["F", "f", 6]), $a(["G", "g", 7]), $a(["H", "h", 8]), $a(["I", "i", 9]), $a(["J", "j", 10]), $a(["K", "k", 11]), $a(["L", "l", 12]), $a(["M", "m", 13]), $a(["N", "n", 14]), $a(["O", "o", 15]), $a(["P", "p", 16]), $a(["Q", "q", 17]), $a(["R", "r", 18]), $a(["S", "s", 19]), $a(["T", "t", 20]), $a(["U", "u", 21]), $a(["V", "v", 22]), $a(["W", "w", 23]), $a(["X", "x", 24]), $a(["Y", "y", 25]), $a(["Z", "z", 26]), $a(["-", "_", 40]), $a([".", "`", 41]), $a([" ", 127, 0]), $a(["$", "{", "*"]), $a(["/", "|", ","]), $a(["+", "}", ":"]), $a(["%", "~", $1.fn1]), $a([$1.la1, $1.la0, $1.fn2]), $a([$1.sf1, $1.sf0, $1.fn3]), $a([$1.sf2, $1.sf2, $1.fn4])])], + ["limited", $a([$a(["0", -98, -98]), $a(["1", -98, -98]), $a(["2", -98, -98]), $a(["3", -98, -98]), $a(["4", -98, -98]), $a(["5", -98, -98]), $a(["6", -98, -98]), $a(["7", -98, -98]), $a(["8", -98, -98]), $a(["9", -98, -98]), $a(["A", -98, -98]), $a(["B", -98, -98]), $a(["C", -98, -98]), $a(["D", -98, -98]), $a(["E", -98, -98]), $a(["F", -98, -98]), $a(["G", -98, -98]), $a(["H", -98, -98]), $a(["I", -98, -98]), $a(["J", -98, -98]), $a(["K", -98, -98]), $a(["L", -98, -98]), $a(["M", -98, -98]), $a(["N", -98, -98]), $a(["O", -98, -98]), $a(["P", -98, -98]), $a(["Q", -98, -98]), $a(["R", -98, -98]), $a(["S", -98, -98]), $a(["T", -98, -98]), $a(["U", -98, -98]), $a(["V", -98, -98]), $a(["W", -98, -98]), $a(["X", -98, -98]), $a(["Y", -98, -98]), $a(["Z", -98, -98]), $a(["-", -98, -98]), $a([".", -98, -98])])] + ]); //#11926 + $k[$j++] = _1l; //#11929 + if ($eq($1.version, "a") || $eq($1.version, "b")) { //#11929 + $k[$j++] = 'normal'; //#11929 + } else { //#11929 + $k[$j++] = 'limited'; //#11929 + } //#11929 + var _1o = $k[--$j]; //#11929 + $1.charmaps = $get($k[--$j], _1o); //#11930 + var _1r = $1.charmaps; //#11934 + var _1s = $1.charmaps; //#11934 + var _1t = $1.charmaps; //#11934 + $1.charvals = $a([new Map, new Map, new Map]); //#11935 + for (var _1x = 0, _1w = $1.charmaps.length - 1; _1x <= _1w; _1x += 1) { //#11944 + $1.i = _1x; //#11937 + $1.encs = $get($1.charmaps, $1.i); //#11938 + for (var _21 = 0; _21 <= 2; _21 += 1) { //#11943 + $1.j = _21; //#11940 + var _24 = $get($1.encs, $1.j); //#11941 + $k[$j++] = _24; //#11941 + if ($eq($type(_24), 'stringtype')) { //#11941 + var _27 = $get($k[--$j], 0); //#11941 + $k[$j++] = _27; //#11941 + } //#11941 + $put($get($1.charvals, $1.j), $k[--$j], $1.i); //#11942 + } //#11942 + } //#11942 + $1.set0 = $get($1.charvals, 0); //#11945 + $1.set1 = $get($1.charvals, 1); //#11946 + $1.set2 = $get($1.charvals, 2); //#11947 + if ($1.raw) { //#11949 + $1.encoding = "raw"; //#11949 + } //#11949 + if ($eq($1.encoding, "raw")) { //#11963 + $1.cws = $a($1.barcode.length); //#11952 + $1.i = 0; //#11953 + $1.j = 0; //#11953 + for (;;) { //#11960 + if ($1.i == $1.barcode.length) { //#11955 + break; //#11955 + } //#11955 + $1.cw = ~~$z($geti($1.barcode, $1.i + 1, 3)); //#11956 + $put($1.cws, $1.j, $1.cw); //#11957 + $1.i = $1.i + 4; //#11958 + $1.j = $1.j + 1; //#11959 + } //#11959 + $1.cws = $geti($1.cws, 0, $1.j); //#11961 + $1.text = ""; //#11962 + } //#11962 + if ($eq($1.encoding, "auto")) { //#12078 + var _2g = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["FNC1", $1.fn1], + ["FNC2", $1.fn2], + ["FNC3", $1.fn3] + ]); //#11973 + $1.fncvals = _2g; //#11975 + $k[$j++] = 'msg'; //#11976 + $k[$j++] = $1.barcode; //#11976 + $k[$j++] = $1.fncvals; //#11976 + $0.parseinput(); //#11976 + var _2j = $k[--$j]; //#11976 + $1[$k[--$j]] = _2j; //#11976 + $1.msglen = $1.msg.length; //#11977 + $1.text = $s($1.msglen); //#11979 + for (var _2q = 0, _2p = $1.msglen - 1; _2q <= _2p; _2q += 1) { //#11983 + $1.i = _2q; //#11981 + var _2v = $get($1.msg, $1.i); //#11982 + $k[$j++] = $1.text; //#11982 + $k[$j++] = $1.i; //#11982 + $k[$j++] = _2v; //#11982 + if (_2v < 0) { //#11982 + $j--; //#11982 + $k[$j++] = 32; //#11982 + } //#11982 + var _2w = $k[--$j]; //#11982 + var _2x = $k[--$j]; //#11982 + $put($k[--$j], _2x, _2w); //#11982 + } //#11982 + $k[$j++] = Infinity; //#11986 + for (var _30 = 0, _31 = $1.msglen; _30 < _31; _30++) { //#11986 + $k[$j++] = 0; //#11986 + } //#11986 + $k[$j++] = 0; //#11986 + $1.numSA = $a(); //#11986 + $k[$j++] = Infinity; //#11987 + for (var _34 = 0, _35 = $1.msglen; _34 < _35; _34++) { //#11987 + $k[$j++] = 0; //#11987 + } //#11987 + $k[$j++] = 0; //#11987 + $1.numEA = $a(); //#11987 + for (var _38 = $1.msglen - 1; _38 >= 0; _38 -= 1) { //#11997 + $1.i = _38; //#11989 + if ($get($1.msg, $1.i) >= 0) { //#11996 + if ($get($1.msg, $1.i) >= 128) { //#11994 + $put($1.numEA, $1.i, $f($get($1.numEA, $1.i + 1) + 1)); //#11992 + } else { //#11994 + $put($1.numSA, $1.i, $f($get($1.numSA, $1.i + 1) + 1)); //#11994 + } //#11994 + } //#11994 + } //#11994 + $1.ea = false; //#12000 + $1.msgtmp = $a([]); //#12000 + for (var _3S = 0, _3R = $1.msglen - 1; _3S <= _3R; _3S += 1) { //#12015 + $1.i = _3S; //#12002 + $1.c = $get($1.msg, $1.i); //#12003 + if ((!$xo($1.ea, $1.c < 128)) && ($1.c >= 0)) { //#12013 + if ($1.ea) { //#12005 + $k[$j++] = $1.numSA; //#12005 + } else { //#12005 + $k[$j++] = $1.numEA; //#12005 + } //#12005 + var _3e = $get($k[--$j], $1.i); //#12005 + var _3h = ($f(_3e + $1.i) == $1.msglen) ? 3 : 5; //#12006 + if (_3e < _3h) { //#12011 + $k[$j++] = Infinity; //#12008 + $aload($1.msgtmp); //#12008 + $k[$j++] = $1.fn4; //#12008 + $1.msgtmp = $a(); //#12008 + } else { //#12011 + $k[$j++] = Infinity; //#12010 + $aload($1.msgtmp); //#12010 + $k[$j++] = $1.fn4; //#12010 + $k[$j++] = $1.fn4; //#12010 + $1.msgtmp = $a(); //#12010 + $1.ea = !$1.ea; //#12011 + } //#12011 + } //#12011 + $k[$j++] = Infinity; //#12014 + $aload($1.msgtmp); //#12014 + if ($1.c >= 0) { //#12014 + $k[$j++] = $1.c & 127; //#12014 + } else { //#12014 + $k[$j++] = $1.c; //#12014 + } //#12014 + $1.msgtmp = $a(); //#12014 + } //#12014 + $1.msg = $1.msgtmp; //#12016 + $1.msglen = $1.msg.length; //#12017 $1.enc = function() { - var _3x = $k[--$j]; - $put($1.cws, $1.j, $get(_3x, $k[--$j])); - $1.j = $1.j + 1; - }; - $1.cws = $a($1.msglen * 2); - $1.i = 0; - $1.j = 0; - $1.cset = "set0"; - for (;;) { - if ($1.i == $1.msglen) { - break; - } - for (;;) { - $1.char1 = $get($1.msg, $1.i); - $k[$j++] = "char2"; - if ($1.i + 1 < $1.msglen) { - $k[$j++] = $get($1.msg, $1.i + 1); - } else { - $k[$j++] = -99; - } - var _4F = $k[--$j]; - $1[$k[--$j]] = _4F; - var _4K = $get($1[$1.cset], $1.char1) !== undefined; - if (_4K) { - $k[$j++] = $1.char1; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $1.i = $1.i + 1; - break; - } - var _4R = $get($1.set2, $1.char1) !== undefined; - if (_4R) { - $k[$j++] = $1.sf2; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $k[$j++] = $1.char1; - $k[$j++] = $1.set2; - $1.enc(); - $1.i = $1.i + 1; - break; - } - var _4b = $get($1[$1.cset], $1.char2) !== undefined; - if (!_4b) { - if ($eq($1.cset, "set0")) { - $k[$j++] = $1.la1; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $1.cset = "set1"; - } else { - $k[$j++] = $1.la0; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $1.cset = "set0"; - } - break; - } else { - if ($eq($1.cset, "set0")) { - $k[$j++] = $1.sf1; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $k[$j++] = $1.char1; - $k[$j++] = $1.set1; - $1.enc(); - } else { - $k[$j++] = $1.sf0; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $k[$j++] = $1.char1; - $k[$j++] = $1.set0; - $1.enc(); - } - $1.i = $1.i + 1; - break; - } - break; - } - } - $1.cws = $geti($1.cws, 0, $1.j); - } - var _52 = new Map([ [ "a", $a([ "141112", "131212", "121312", "111412", "131113", "121213", "111313", "121114", "111214", "111115", "181111", "171211", "161311", "151411", "141511", "131611", "121711", "111811", "171112", "161212", "151312", "141412", "131512", "121612", "111712", "161113", "151213", "141313", "131413", "121513", "111613", "151114", "141214", "131314", "121414", "111514", "141115", "131215", "121315", "111415", "131116", "121216", "111316", "121117", "111217", "111118", "1<111112", "111111111;1" ]) ], [ "b", $a([ "151213", "141313", "131413", "121513", "141214", "131314", "121414", "131215", "121315", "121216", "191212", "181312", "171412", "161512", "151612", "141712", "131812", "121912", "181213", "171313", "161413", "151513", "141613", "131713", "121813", "171214", "161314", "151414", "141514", "131614", "121714", "161215", "151315", "141415", "131515", "121615", "151216", "141316", "131416", "121516", "141217", "131317", "121417", "131218", "121318", "121219", "1<121312", "121212121<1" ]) ], [ "limiteda", $a([ "111411", "111312", "111213", "111114", "121311", "121212", "121113", "141111", "131211", "131112", "171111", "161211", "151311", "141411", "131511", "121611", "111711", "161112", "151212", "141312", "131412", "121512", "111612", "151113", "141213", "131313", "121413", "111513", "141114", "131214", "121314", "111414", "131115", "121215", "111315", "121116", "111216", "111117", "151111", "1" ]) ], [ "limitedb", $a([ "121512", "121413", "121314", "121215", "131412", "131313", "131214", "151212", "141312", "141213", "181212", "171312", "161412", "151512", "141612", "131712", "121812", "171213", "161313", "151413", "141513", "131613", "121713", "161214", "151314", "141414", "131514", "121614", "151215", "141315", "131415", "121515", "141216", "131316", "121416", "131217", "121317", "121218", "141212", "1" ]) ] ]); - $1.encs = $get(_52, $1.version); - $1.c2w = $a([ $a([ 495, 330, 210, 126, 70, 35, 15, 5 ]), $a([ 165, 120, 84, 56, 35, 20, 10, 4 ]), $a([ 45, 36, 28, 21, 15, 10, 6, 3 ]), $a([ 9, 8, 7, 6, 5, 4, 3, 2 ]), $a([ 1, 1, 1, 1, 1, 1, 1, 1 ]) ]); - $1.v = 0; - var _5B = $1.cws; - for (var _5C = 0, _5D = _5B.length; _5C < _5D; _5C++) { - $1.cw = $get(_5B, _5C); - for (var _5F = 0, _5G = 6; _5F < _5G; _5F++) { - if ((($1.cw ^ $1.v) & 1) != 0) { - $1.v = $1.v ^ 7682; - } - $1.v = $1.v >>> 1; - $1.cw = $1.cw >>> 1; - } - } - $1.v = $1.v + $1.checkoffset; - if ($eq($1.version, "limiteda") || $eq($1.version, "limitedb")) { - $1.v = $1.v & 1023; - if ($1.v > 824 && $1.v < 853) { - $1.v = $1.v + 292; - } - } else { - $1.v = ($1.v & 1023) + 45; - } - $1.d = $a([ 2, 2, 2, 2, 2, 2 ]); - $1.r = 0; - $1.c = 0; - $1.w = 0; - $1.sum = 0; - for (;;) { - if ($1.sum == $1.v) { - break; - } - $1.t = $f($1.sum + $get($get($1.c2w, $1.r), $1.c)); - if ($1.t == $1.v) { - $1.w = $1.w + 1; - $put($1.d, $1.r, $1.w + 2); - $1.sum = $1.t; - } - if ($1.t > $1.v) { - $put($1.d, $1.r, $1.w + 2); - $1.r = $1.r + 1; - $1.w = 0; - } - if ($1.t < $1.v) { - $1.c = $1.c + 1; - $1.w = $1.w + 1; - $1.sum = $1.t; - } - } - $k[$j++] = 20; - for (var _5w = 0; _5w <= 4; _5w += 1) { - var _5z = $k[--$j]; - $k[$j++] = $f(_5z - $get($1.d, _5w)); - } - $put($1.d, 5, $k[--$j]); - if ($eq($1.version, "b") || $eq($1.version, "limitedb")) { - $k[$j++] = Infinity; - var _64 = $1.d; - for (var _65 = 0, _66 = _64.length; _65 < _66; _65++) { - $k[$j++] = $f($get(_64, _65) + 1); - } - $1.d = $a(); - } - $1.cbs = $strcpy($s(12), "111111111111"); - for (var _6B = 5; _6B >= 0; _6B -= 1) { - $1.i = _6B; - $put($1.cbs, (5 - $1.i) * 2 + 1, $f($get($1.d, $1.i) + 47)); - } - $1.sbs = $s($1.cws.length * 6 + 31); - var _6L = $get($1.encs, $1.encs.length - 2); - $puti($1.sbs, 0, _6L); - $1.j = _6L.length; - for (var _6P = 0, _6O = $1.cws.length - 1; _6P <= _6O; _6P += 1) { - $1.i = _6P; - $puti($1.sbs, $1.j, $get($1.encs, $get($1.cws, $1.i))); - $1.j = $1.j + 6; - } - $puti($1.sbs, $1.j, $1.cbs); - $1.j = $1.j + 12; - var _6e = $get($1.encs, $1.encs.length - 1); - $puti($1.sbs, $1.j, _6e); - $1.j = _6e.length + $1.j; - $1.sbs = $geti($1.sbs, 0, $1.j); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _6l = $1.sbs; - for (var _6m = 0, _6n = _6l.length; _6m < _6n; _6m++) { - $k[$j++] = $f($get(_6l, _6m) - 48); - } - var _6p = $a(); - $k[$j++] = Infinity; - for (var _6r = 0, _6s = ~~(($1.sbs.length + 1) / 2); _6r < _6s; _6r++) { - $k[$j++] = $1.height; - } - var _6u = $a(); - $k[$j++] = Infinity; - for (var _6w = 0, _6x = ~~(($1.sbs.length + 1) / 2); _6w < _6x; _6w++) { - $k[$j++] = 0; - } - var _6y = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _6p; - $k[$j++] = "bhs"; - $k[$j++] = _6u; - $k[$j++] = "bbs"; - $k[$j++] = _6y; - $k[$j++] = "txt"; - $k[$j++] = $a([ $a([ $1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ]) ]); - $k[$j++] = "textxalign"; - $k[$j++] = "center"; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _77 = $d(); - $k[$j++] = _77; - if (!$1.dontdraw) { - $0.renlinear(); - } + var _3x = $k[--$j]; //#12021 + $put($1.cws, $1.j, $get(_3x, $k[--$j])); //#12021 + $1.j = $1.j + 1; //#12022 + }; //#12023 + $1.cws = $a($1.msglen * 2); //#12025 + $1.i = 0; //#12026 + $1.j = 0; //#12026 + $1.cset = "set0"; //#12026 + for (;;) { //#12076 + if ($1.i == $1.msglen) { //#12028 + break; //#12028 + } //#12028 + for (;;) { //#12074 + $1.char1 = $get($1.msg, $1.i); //#12033 + $k[$j++] = 'char2'; //#12034 + if (($1.i + 1) < $1.msglen) { //#12034 + $k[$j++] = $get($1.msg, $1.i + 1); //#12034 + } else { //#12034 + $k[$j++] = -99; //#12034 + } //#12034 + var _4F = $k[--$j]; //#12034 + $1[$k[--$j]] = _4F; //#12034 + var _4K = $get($1[$1.cset], $1.char1) !== undefined; //#12037 + if (_4K) { //#12041 + $k[$j++] = $1.char1; //#12038 + $k[$j++] = $1[$1.cset]; //#12038 + $1.enc(); //#12038 + $1.i = $1.i + 1; //#12039 + break; //#12040 + } //#12040 + var _4R = $get($1.set2, $1.char1) !== undefined; //#12044 + if (_4R) { //#12049 + $k[$j++] = $1.sf2; //#12045 + $k[$j++] = $1[$1.cset]; //#12045 + $1.enc(); //#12045 + $k[$j++] = $1.char1; //#12046 + $k[$j++] = $1.set2; //#12046 + $1.enc(); //#12046 + $1.i = $1.i + 1; //#12047 + break; //#12048 + } //#12048 + var _4b = $get($1[$1.cset], $1.char2) !== undefined; //#12052 + if (!_4b) { //#12070 + if ($eq($1.cset, "set0")) { //#12058 + $k[$j++] = $1.la1; //#12054 + $k[$j++] = $1[$1.cset]; //#12054 + $1.enc(); //#12054 + $1.cset = "set1"; //#12055 + } else { //#12058 + $k[$j++] = $1.la0; //#12057 + $k[$j++] = $1[$1.cset]; //#12057 + $1.enc(); //#12057 + $1.cset = "set0"; //#12058 + } //#12058 + break; //#12060 + } else { //#12070 + if ($eq($1.cset, "set0")) { //#12067 + $k[$j++] = $1.sf1; //#12063 + $k[$j++] = $1[$1.cset]; //#12063 + $1.enc(); //#12063 + $k[$j++] = $1.char1; //#12064 + $k[$j++] = $1.set1; //#12064 + $1.enc(); //#12064 + } else { //#12067 + $k[$j++] = $1.sf0; //#12066 + $k[$j++] = $1[$1.cset]; //#12066 + $1.enc(); //#12066 + $k[$j++] = $1.char1; //#12067 + $k[$j++] = $1.set0; //#12067 + $1.enc(); //#12067 + } //#12067 + $1.i = $1.i + 1; //#12069 + break; //#12070 + } //#12070 + break; //#12073 + } //#12073 + } //#12073 + $1.cws = $geti($1.cws, 0, $1.j); //#12077 + } //#12077 + var _52 = new Map([ + ["a", $a(["141112", "131212", "121312", "111412", "131113", "121213", "111313", "121114", "111214", "111115", "181111", "171211", "161311", "151411", "141511", "131611", "121711", "111811", "171112", "161212", "151312", "141412", "131512", "121612", "111712", "161113", "151213", "141313", "131413", "121513", "111613", "151114", "141214", "131314", "121414", "111514", "141115", "131215", "121315", "111415", "131116", "121216", "111316", "121117", "111217", "111118", "1<111112", "111111111;1"])], + ["b", $a(["151213", "141313", "131413", "121513", "141214", "131314", "121414", "131215", "121315", "121216", "191212", "181312", "171412", "161512", "151612", "141712", "131812", "121912", "181213", "171313", "161413", "151513", "141613", "131713", "121813", "171214", "161314", "151414", "141514", "131614", "121714", "161215", "151315", "141415", "131515", "121615", "151216", "141316", "131416", "121516", "141217", "131317", "121417", "131218", "121318", "121219", "1<121312", "121212121<1"])], + ["limiteda", $a(["111411", "111312", "111213", "111114", "121311", "121212", "121113", "141111", "131211", "131112", "171111", "161211", "151311", "141411", "131511", "121611", "111711", "161112", "151212", "141312", "131412", "121512", "111612", "151113", "141213", "131313", "121413", "111513", "141114", "131214", "121314", "111414", "131115", "121215", "111315", "121116", "111216", "111117", "151111", "1"])], + ["limitedb", $a(["121512", "121413", "121314", "121215", "131412", "131313", "131214", "151212", "141312", "141213", "181212", "171312", "161412", "151512", "141612", "131712", "121812", "171213", "161313", "151413", "141513", "131613", "121713", "161214", "151314", "141414", "131514", "121614", "151215", "141315", "131415", "121515", "141216", "131316", "121416", "131217", "121317", "121218", "141212", "1"])] + ]); //#12124 + $1.encs = $get(_52, $1.version); //#12127 + $1.c2w = $a([$a([495, 330, 210, 126, 70, 35, 15, 5]), $a([165, 120, 84, 56, 35, 20, 10, 4]), $a([45, 36, 28, 21, 15, 10, 6, 3]), $a([9, 8, 7, 6, 5, 4, 3, 2]), $a([1, 1, 1, 1, 1, 1, 1, 1])]); //#12135 + $1.v = 0; //#12136 + var _5B = $1.cws; //#12137 + for (var _5C = 0, _5D = _5B.length; _5C < _5D; _5C++) { //#12146 + $1.cw = $get(_5B, _5C); //#12138 + for (var _5F = 0, _5G = 6; _5F < _5G; _5F++) { //#12145 + if ((($1.cw ^ $1.v) & 1) != 0) { //#12142 + $1.v = $1.v ^ 7682; //#12141 + } //#12141 + $1.v = $1.v >>> 1; //#12143 + $1.cw = $1.cw >>> 1; //#12144 + } //#12144 + } //#12144 + $1.v = $1.v + $1.checkoffset; //#12147 + if ($eq($1.version, "limiteda") || $eq($1.version, "limitedb")) { //#12155 + $1.v = $1.v & 1023; //#12150 + if (($1.v > 824) && ($1.v < 853)) { //#12153 + $1.v = $1.v + 292; //#12152 + } //#12152 + } else { //#12155 + $1.v = ($1.v & 1023) + 45; //#12155 + } //#12155 + $1.d = $a([2, 2, 2, 2, 2, 2]); //#12158 + $1.r = 0; //#12159 + $1.c = 0; //#12159 + $1.w = 0; //#12159 + $1.sum = 0; //#12159 + for (;;) { //#12178 + if ($1.sum == $1.v) { //#12161 + break; //#12161 + } //#12161 + $1.t = $f($1.sum + $get($get($1.c2w, $1.r), $1.c)); //#12162 + if ($1.t == $1.v) { //#12167 + $1.w = $1.w + 1; //#12164 + $put($1.d, $1.r, $1.w + 2); //#12165 + $1.sum = $1.t; //#12166 + } //#12166 + if ($1.t > $1.v) { //#12172 + $put($1.d, $1.r, $1.w + 2); //#12169 + $1.r = $1.r + 1; //#12170 + $1.w = 0; //#12171 + } //#12171 + if ($1.t < $1.v) { //#12177 + $1.c = $1.c + 1; //#12174 + $1.w = $1.w + 1; //#12175 + $1.sum = $1.t; //#12176 + } //#12176 + } //#12176 + $k[$j++] = 20; //#12179 + for (var _5w = 0; _5w <= 4; _5w += 1) { //#12179 + var _5z = $k[--$j]; //#12179 + $k[$j++] = $f(_5z - $get($1.d, _5w)); //#12179 + } //#12179 + $put($1.d, 5, $k[--$j]); //#12180 + if ($eq($1.version, "b") || $eq($1.version, "limitedb")) { //#12183 + $k[$j++] = Infinity; //#12182 + var _64 = $1.d; //#12182 + for (var _65 = 0, _66 = _64.length; _65 < _66; _65++) { //#12182 + $k[$j++] = $f($get(_64, _65) + 1); //#12182 + } //#12182 + $1.d = $a(); //#12182 + } //#12182 + $1.cbs = $strcpy($s(12), "111111111111"); //#12184 + for (var _6B = 5; _6B >= 0; _6B -= 1) { //#12188 + $1.i = _6B; //#12186 + $put($1.cbs, ((5 - $1.i) * 2) + 1, $f($get($1.d, $1.i) + 47)); //#12187 + } //#12187 + $1.sbs = $s(($1.cws.length * 6) + 31); //#12191 + var _6L = $get($1.encs, $1.encs.length - 2); //#12192 + $puti($1.sbs, 0, _6L); //#12193 + $1.j = _6L.length; //#12194 + for (var _6P = 0, _6O = $1.cws.length - 1; _6P <= _6O; _6P += 1) { //#12199 + $1.i = _6P; //#12196 + $puti($1.sbs, $1.j, $get($1.encs, $get($1.cws, $1.i))); //#12197 + $1.j = $1.j + 6; //#12198 + } //#12198 + $puti($1.sbs, $1.j, $1.cbs); //#12200 + $1.j = $1.j + 12; //#12201 + var _6e = $get($1.encs, $1.encs.length - 1); //#12202 + $puti($1.sbs, $1.j, _6e); //#12203 + $1.j = _6e.length + $1.j; //#12204 + $1.sbs = $geti($1.sbs, 0, $1.j); //#12205 + $k[$j++] = Infinity; //#12215 + $k[$j++] = Infinity; //#12210 + var _6l = $1.sbs; //#12210 + for (var _6m = 0, _6n = _6l.length; _6m < _6n; _6m++) { //#12210 + $k[$j++] = $f($get(_6l, _6m) - 48); //#12210 + } //#12210 + var _6p = $a(); //#12210 + $k[$j++] = Infinity; //#12211 + for (var _6r = 0, _6s = ~~(($1.sbs.length + 1) / 2); _6r < _6s; _6r++) { //#12211 + $k[$j++] = $1.height; //#12211 + } //#12211 + var _6u = $a(); //#12211 + $k[$j++] = Infinity; //#12212 + for (var _6w = 0, _6x = ~~(($1.sbs.length + 1) / 2); _6w < _6x; _6w++) { //#12212 + $k[$j++] = 0; //#12212 + } //#12212 + var _6y = $a(); //#12212 + $k[$j++] = 'ren'; //#12215 + $k[$j++] = $0.renlinear; //#12215 + $k[$j++] = 'sbs'; //#12215 + $k[$j++] = _6p; //#12215 + $k[$j++] = 'bhs'; //#12215 + $k[$j++] = _6u; //#12215 + $k[$j++] = 'bbs'; //#12215 + $k[$j++] = _6y; //#12215 + $k[$j++] = 'txt'; //#12215 + $k[$j++] = $a([$a([$1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])]); //#12215 + $k[$j++] = 'textxalign'; //#12215 + $k[$j++] = "center"; //#12215 + $k[$j++] = 'opt'; //#12215 + $k[$j++] = $1.options; //#12215 + var _77 = $d(); //#12215 + $k[$j++] = _77; //#12218 + if (!$1.dontdraw) { //#12218 + $0.renlinear(); //#12218 + } //#12218 }; $0.codablockf = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.rows = -1; - $1.columns = 8; - $1.rowheight = 10; - $1.sepheight = 1; - $1.parse = false; - $1.parsefnc = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.rows = ~~$1.rows; - $1.columns = ~~$1.columns; - $1.rowheight = ~~$1.rowheight; - $1.sepheight = ~~$1.sepheight; - $k[$j++] = "c"; - if ($1.columns >= 4 && $1.columns <= 62) { - $k[$j++] = $1.columns; - } else { - $k[$j++] = 8; - } - var _C = $k[--$j]; - $1[$k[--$j]] = _C; - $k[$j++] = "rows"; - if ($1.rows >= 2 && $1.rows <= 44) { - $k[$j++] = $1.rows; - } else { - $k[$j++] = -1; - } - var _H = $k[--$j]; - $1[$k[--$j]] = _H; - $1.swa = -1; - $1.swb = -2; - $1.swc = -3; - $1.sft = -4; - $1.fn1 = -5; - $1.fn2 = -6; - $1.fn3 = -7; - $1.fn4 = -8; - $1.sta = -9; - $1.stp = -10; - var _N = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "FNC1", $1.fn1 ], [ "FNC3", $1.fn3 ] ]); - $1.fncvals = _N; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _Q = $k[--$j]; - $1[$k[--$j]] = _Q; - $1.msglen = $1.msg.length; - $1.msgtmp = $a([]); - var _U = $1.msg; - for (var _V = 0, _W = _U.length; _V < _W; _V++) { - $1.char = $get(_U, _V); - $k[$j++] = Infinity; - $aload($1.msgtmp); - if ($1.char < 128) { - $k[$j++] = $1.char; - } else { - $k[$j++] = $1.fn4; - $k[$j++] = $1.char & 127; - } - $1.msgtmp = $a(); - } - $1.msg = $1.msgtmp; - $1.msglen = $1.msg.length; - $1.charmaps = $a([ $a([ 32, 32, "00" ]), $a([ "!", "!", "01" ]), $a([ '"', '"', "02" ]), $a([ "#", "#", "03" ]), $a([ "$", "$", "04" ]), $a([ "%", "%", "05" ]), $a([ "&", "&", "06" ]), $a([ "'", "'", "07" ]), $a([ 40, 40, "08" ]), $a([ 41, 41, "09" ]), $a([ "*", "*", "10" ]), $a([ "+", "+", "11" ]), $a([ ",", ",", "12" ]), $a([ "-", "-", "13" ]), $a([ ".", ".", "14" ]), $a([ "/", "/", "15" ]), $a([ "0", "0", "16" ]), $a([ "1", "1", "17" ]), $a([ "2", "2", "18" ]), $a([ "3", "3", "19" ]), $a([ "4", "4", "20" ]), $a([ "5", "5", "21" ]), $a([ "6", "6", "22" ]), $a([ "7", "7", "23" ]), $a([ "8", "8", "24" ]), $a([ "9", "9", "25" ]), $a([ ":", ":", "26" ]), $a([ ";", ";", "27" ]), $a([ "<", "<", "28" ]), $a([ "=", "=", "29" ]), $a([ ">", ">", "30" ]), $a([ "?", "?", "31" ]), $a([ "@", "@", "32" ]), $a([ "A", "A", "33" ]), $a([ "B", "B", "34" ]), $a([ "C", "C", "35" ]), $a([ "D", "D", "36" ]), $a([ "E", "E", "37" ]), $a([ "F", "F", "38" ]), $a([ "G", "G", "39" ]), $a([ "H", "H", "40" ]), $a([ "I", "I", "41" ]), $a([ "J", "J", "42" ]), $a([ "K", "K", "43" ]), $a([ "L", "L", "44" ]), $a([ "M", "M", "45" ]), $a([ "N", "N", "46" ]), $a([ "O", "O", "47" ]), $a([ "P", "P", "48" ]), $a([ "Q", "Q", "49" ]), $a([ "R", "R", "50" ]), $a([ "S", "S", "51" ]), $a([ "T", "T", "52" ]), $a([ "U", "U", "53" ]), $a([ "V", "V", "54" ]), $a([ "W", "W", "55" ]), $a([ "X", "X", "56" ]), $a([ "Y", "Y", "57" ]), $a([ "Z", "Z", "58" ]), $a([ "[", "[", "59" ]), $a([ 92, 92, "60" ]), $a([ "]", "]", "61" ]), $a([ "^", "^", "62" ]), $a([ "_", "_", "63" ]), $a([ 0, "`", "64" ]), $a([ 1, "a", "65" ]), $a([ 2, "b", "66" ]), $a([ 3, "c", "67" ]), $a([ 4, "d", "68" ]), $a([ 5, "e", "69" ]), $a([ 6, "f", "70" ]), $a([ 7, "g", "71" ]), $a([ 8, "h", "72" ]), $a([ 9, "i", "73" ]), $a([ 10, "j", "74" ]), $a([ 11, "k", "75" ]), $a([ 12, "l", "76" ]), $a([ 13, "m", "77" ]), $a([ 14, "n", "78" ]), $a([ 15, "o", "79" ]), $a([ 16, "p", "80" ]), $a([ 17, "q", "81" ]), $a([ 18, "r", "82" ]), $a([ 19, "s", "83" ]), $a([ 20, "t", "84" ]), $a([ 21, "u", "85" ]), $a([ 22, "v", "86" ]), $a([ 23, "w", "87" ]), $a([ 24, "x", "88" ]), $a([ 25, "y", "89" ]), $a([ 26, "z", "90" ]), $a([ 27, "{", "91" ]), $a([ 28, "|", "92" ]), $a([ 29, "}", "93" ]), $a([ 30, "~", "94" ]), $a([ 31, 127, "95" ]), $a([ $1.fn3, $1.fn3, "96" ]), $a([ $1.fn2, $1.fn2, "97" ]), $a([ $1.sft, $1.sft, "98" ]), $a([ $1.swc, $1.swc, "99" ]), $a([ $1.swb, $1.fn4, $1.swb ]), $a([ $1.fn4, $1.swa, $1.swa ]), $a([ $1.fn1, $1.fn1, $1.fn1 ]), $a([ $1.sta, $1.sta, $1.sta ]), $a([ $1.stp, $1.stp, $1.stp ]) ]); - $1.charvals = $a([ new Map(), new Map(), new Map() ]); - for (var _2o = 0, _2n = $1.charmaps.length - 1; _2o <= _2n; _2o += 1) { - $1.i = _2o; - $1.encs = $get($1.charmaps, $1.i); - for (var _2s = 0; _2s <= 2; _2s += 1) { - $1.j = _2s; - var _2v = $get($1.encs, $1.j); - $k[$j++] = _2v; - if ($eq($type(_2v), "stringtype")) { - var _2y = $get($k[--$j], 0); - $k[$j++] = _2y; - } - $put($get($1.charvals, $1.j), $k[--$j], $1.i); - } - } - $1.seta = $get($1.charvals, 0); - $1.setb = $get($1.charvals, 1); - $1.setc = $get($1.charvals, 2); + var $1 = {}; //#12248 + $1.options = $k[--$j]; //#12250 + $1.barcode = $k[--$j]; //#12251 + $1.dontdraw = false; //#12253 + $1.rows = -1; //#12254 + $1.columns = 8; //#12255 + $1.rowheight = 10; //#12256 + $1.sepheight = 1; //#12257 + $1.parse = false; //#12258 + $1.parsefnc = false; //#12259 + $forall($1.options, function() { //#12270 + var _3 = $k[--$j]; //#12270 + $1[$k[--$j]] = _3; //#12270 + }); //#12270 + $1.rows = ~~$1.rows; //#12272 + $1.columns = ~~$1.columns; //#12273 + $1.rowheight = ~~$1.rowheight; //#12274 + $1.sepheight = ~~$1.sepheight; //#12275 + $k[$j++] = 'c'; //#12277 + if (($1.columns >= 4) && ($1.columns <= 62)) { //#12277 + $k[$j++] = $1.columns; //#12277 + } else { //#12277 + $k[$j++] = 8; //#12277 + } //#12277 + var _C = $k[--$j]; //#12277 + $1[$k[--$j]] = _C; //#12277 + $k[$j++] = 'rows'; //#12278 + if (($1.rows >= 2) && ($1.rows <= 44)) { //#12278 + $k[$j++] = $1.rows; //#12278 + } else { //#12278 + $k[$j++] = -1; //#12278 + } //#12278 + var _H = $k[--$j]; //#12278 + $1[$k[--$j]] = _H; //#12278 + $1.swa = -1; //#12281 + $1.swb = -2; //#12281 + $1.swc = -3; //#12281 + $1.sft = -4; //#12281 + $1.fn1 = -5; //#12282 + $1.fn2 = -6; //#12282 + $1.fn3 = -7; //#12282 + $1.fn4 = -8; //#12282 + $1.sta = -9; //#12283 + $1.stp = -10; //#12283 + var _N = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["FNC1", $1.fn1], + ["FNC3", $1.fn3] + ]); //#12291 + $1.fncvals = _N; //#12293 + $k[$j++] = 'msg'; //#12294 + $k[$j++] = $1.barcode; //#12294 + $k[$j++] = $1.fncvals; //#12294 + $0.parseinput(); //#12294 + var _Q = $k[--$j]; //#12294 + $1[$k[--$j]] = _Q; //#12294 + $1.msglen = $1.msg.length; //#12295 + $1.msgtmp = $a([]); //#12298 + var _U = $1.msg; //#12299 + for (var _V = 0, _W = _U.length; _V < _W; _V++) { //#12302 + $1.char = $get(_U, _V); //#12300 + $k[$j++] = Infinity; //#12301 + $aload($1.msgtmp); //#12301 + if ($1.char < 128) { //#12301 + $k[$j++] = $1.char; //#12301 + } else { //#12301 + $k[$j++] = $1.fn4; //#12301 + $k[$j++] = $1.char & 127; //#12301 + } //#12301 + $1.msgtmp = $a(); //#12301 + } //#12301 + $1.msg = $1.msgtmp; //#12303 + $1.msglen = $1.msg.length; //#12304 + $1.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$1.fn3, $1.fn3, "96"]), $a([$1.fn2, $1.fn2, "97"]), $a([$1.sft, $1.sft, "98"]), $a([$1.swc, $1.swc, "99"]), $a([$1.swb, $1.fn4, $1.swb]), $a([$1.fn4, $1.swa, $1.swa]), $a([$1.fn1, $1.fn1, $1.fn1]), $a([$1.sta, $1.sta, $1.sta]), $a([$1.stp, $1.stp, $1.stp])]); //#12344 + $1.charvals = $a([new Map, new Map, new Map]); //#12347 + for (var _2o = 0, _2n = $1.charmaps.length - 1; _2o <= _2n; _2o += 1) { //#12356 + $1.i = _2o; //#12349 + $1.encs = $get($1.charmaps, $1.i); //#12350 + for (var _2s = 0; _2s <= 2; _2s += 1) { //#12355 + $1.j = _2s; //#12352 + var _2v = $get($1.encs, $1.j); //#12353 + $k[$j++] = _2v; //#12353 + if ($eq($type(_2v), 'stringtype')) { //#12353 + var _2y = $get($k[--$j], 0); //#12353 + $k[$j++] = _2y; //#12353 + } //#12353 + $put($get($1.charvals, $1.j), $k[--$j], $1.i); //#12354 + } //#12354 + } //#12354 + $1.seta = $get($1.charvals, 0); //#12357 + $1.setb = $get($1.charvals, 1); //#12358 + $1.setc = $get($1.charvals, 2); //#12359 $1.numsscr = function() { - $1.n = 0; - $1.s = 0; - $1.p = $k[--$j]; - for (;;) { - if ($1.p >= $1.msglen) { - break; - } - var _3F = $get($1.msg, $1.p); - var _3H = $get($1.setc, _3F) !== undefined; - $k[$j++] = _3F; - if (!_3H) { - $j--; - break; - } - if ($k[--$j] == $1.fn1) { - if ($1.s % 2 == 0) { - $1.s = $1.s + 1; - } else { - break; - } - } - $1.n = $1.n + 1; - $1.s = $1.s + 1; - $1.p = $f($1.p + 1); - } - $k[$j++] = $1.n; - $k[$j++] = $1.s; - }; + $1.n = 0; //#12363 + $1.s = 0; //#12363 + $1.p = $k[--$j]; //#12364 + for (;;) { //#12375 + if ($1.p >= $1.msglen) { //#12365 + break; //#12365 + } //#12365 + var _3F = $get($1.msg, $1.p); //#12366 + var _3H = $get($1.setc, _3F) !== undefined; //#12367 + $k[$j++] = _3F; //#12367 + if (!_3H) { //#12367 + $j--; //#12367 + break; //#12367 + } //#12367 + if ($k[--$j] == $1.fn1) { //#12371 + if (($1.s % 2) == 0) { //#12370 + $1.s = $1.s + 1; //#12370 + } else { //#12370 + break; //#12370 + } //#12370 + } //#12370 + $1.n = $1.n + 1; //#12372 + $1.s = $1.s + 1; //#12373 + $1.p = $f($1.p + 1); //#12374 + } //#12374 + $k[$j++] = $1.n; //#12376 + $k[$j++] = $1.s; //#12376 + }; //#12377 $1.enca = function() { - $put($1.cws, $1.j, $get($1.seta, $k[--$j])); - $1.j = $1.j + 1; - }; + $put($1.cws, $1.j, $get($1.seta, $k[--$j])); //#12381 + $1.j = $1.j + 1; //#12382 + }; //#12383 $1.encb = function() { - $put($1.cws, $1.j, $get($1.setb, $k[--$j])); - $1.j = $1.j + 1; - }; + $put($1.cws, $1.j, $get($1.setb, $k[--$j])); //#12385 + $1.j = $1.j + 1; //#12386 + }; //#12387 $1.encc = function() { - var _3d = $k[--$j]; - $k[$j++] = _3d; - if ($ne($type(_3d), "arraytype")) { - var _3h = $get($1.setc, $k[--$j]); - $k[$j++] = _3h; - } else { - $aload($k[--$j]); - var _3j = $k[--$j]; - var _3k = $k[--$j]; - $k[$j++] = $f($f(_3j - 48) + $f(_3k - 48) * 10); - } - $put($1.cws, $1.j, $k[--$j]); - $1.j = $1.j + 1; - }; + var _3d = $k[--$j]; //#12389 + $k[$j++] = _3d; //#12393 + if ($ne($type(_3d), 'arraytype')) { //#12392 + var _3h = $get($1.setc, $k[--$j]); //#12390 + $k[$j++] = _3h; //#12390 + } else { //#12392 + $aload($k[--$j]); //#12392 + var _3j = $k[--$j]; //#12392 + var _3k = $k[--$j]; //#12392 + $k[$j++] = $f($f(_3j - 48) + ($f(_3k - 48) * 10)); //#12392 + } //#12392 + $put($1.cws, $1.j, $k[--$j]); //#12394 + $1.j = $1.j + 1; //#12395 + }; //#12396 $1.anotb = function() { - var _3p = $k[--$j]; - var _3r = $get($1.seta, _3p) !== undefined; - var _3t = $get($1.setb, _3p) !== undefined; - $k[$j++] = _3r && !_3t; - }; + var _3p = $k[--$j]; //#12399 + var _3r = $get($1.seta, _3p) !== undefined; //#12399 + var _3t = $get($1.setb, _3p) !== undefined; //#12399 + $k[$j++] = _3r && (!_3t); //#12399 + }; //#12399 $1.bnota = function() { - var _3u = $k[--$j]; - var _3w = $get($1.setb, _3u) !== undefined; - var _3y = $get($1.seta, _3u) !== undefined; - $k[$j++] = _3w && !_3y; - }; - $k[$j++] = Infinity; - for (var _40 = 0, _41 = $1.msg.length; _40 < _41; _40++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextanotb = $a(); - $k[$j++] = Infinity; - for (var _44 = 0, _45 = $1.msg.length; _44 < _45; _44++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextbnota = $a(); - for (var _48 = $1.msg.length - 1; _48 >= 0; _48 -= 1) { - $1.i = _48; - $k[$j++] = $get($1.msg, $1.i); - $1.anotb(); - if ($k[--$j]) { - $put($1.nextanotb, $1.i, 0); - } else { - $put($1.nextanotb, $1.i, $f($get($1.nextanotb, $1.i + 1) + 1)); - } - $k[$j++] = $get($1.msg, $1.i); - $1.bnota(); - if ($k[--$j]) { - $put($1.nextbnota, $1.i, 0); - } else { - $put($1.nextbnota, $1.i, $f($get($1.nextbnota, $1.i + 1) + 1)); - } - } + var _3u = $k[--$j]; //#12400 + var _3w = $get($1.setb, _3u) !== undefined; //#12400 + var _3y = $get($1.seta, _3u) !== undefined; //#12400 + $k[$j++] = _3w && (!_3y); //#12400 + }; //#12400 + $k[$j++] = Infinity; //#12403 + for (var _40 = 0, _41 = $1.msg.length; _40 < _41; _40++) { //#12403 + $k[$j++] = 0; //#12403 + } //#12403 + $k[$j++] = 9999; //#12403 + $1.nextanotb = $a(); //#12403 + $k[$j++] = Infinity; //#12404 + for (var _44 = 0, _45 = $1.msg.length; _44 < _45; _44++) { //#12404 + $k[$j++] = 0; //#12404 + } //#12404 + $k[$j++] = 9999; //#12404 + $1.nextbnota = $a(); //#12404 + for (var _48 = $1.msg.length - 1; _48 >= 0; _48 -= 1) { //#12417 + $1.i = _48; //#12406 + $k[$j++] = $get($1.msg, $1.i); //#12407 + $1.anotb(); //#12407 + if ($k[--$j]) { //#12410 + $put($1.nextanotb, $1.i, 0); //#12408 + } else { //#12410 + $put($1.nextanotb, $1.i, $f($get($1.nextanotb, $1.i + 1) + 1)); //#12410 + } //#12410 + $k[$j++] = $get($1.msg, $1.i); //#12412 + $1.bnota(); //#12412 + if ($k[--$j]) { //#12415 + $put($1.nextbnota, $1.i, 0); //#12413 + } else { //#12415 + $put($1.nextbnota, $1.i, $f($get($1.nextbnota, $1.i + 1) + 1)); //#12415 + } //#12415 + } //#12415 $1.abeforeb = function() { - var _4V = $k[--$j]; - $k[$j++] = $lt($get($1.nextanotb, _4V), $get($1.nextbnota, _4V)); - }; + var _4V = $k[--$j]; //#12420 + $k[$j++] = $lt($get($1.nextanotb, _4V), $get($1.nextbnota, _4V)); //#12420 + }; //#12420 $1.bbeforea = function() { - var _4a = $k[--$j]; - $k[$j++] = $lt($get($1.nextbnota, _4a), $get($1.nextanotb, _4a)); - }; + var _4a = $k[--$j]; //#12421 + $k[$j++] = $lt($get($1.nextbnota, _4a), $get($1.nextanotb, _4a)); //#12421 + }; //#12421 $1.padrow = function() { - for (var _4g = 0, _4h = $k[--$j]; _4g < _4h; _4g++) { - for (;;) { - if ($eq($1.cset, "seta")) { - $k[$j++] = $1.swc; - $1.enca(); - $1.cset = "setc"; - break; - } - if ($eq($1.cset, "setb")) { - $k[$j++] = $1.swc; - $1.encb(); - $1.cset = "setc"; - break; - } - if ($eq($1.cset, "setc")) { - $k[$j++] = $1.swb; - $1.encc(); - $1.cset = "setb"; - break; - } - } - } - }; - $1.cws = $a($f($1.c + 5) * 44); - $1.i = 0; - $1.j = 0; - $1.r = 1; - $1.lastrow = false; - for (;;) { - if ($1.lastrow) { - break; - } - $k[$j++] = $1.sta; - $1.enca(); - if ($1.i < $1.msglen) { - $k[$j++] = $1.i; - $1.numsscr(); - } else { - $k[$j++] = -1; - $k[$j++] = -1; - } - $1.nums = $k[--$j]; - $1.nchars = $k[--$j]; - for (;;) { - if ($1.msglen == 0) { - $k[$j++] = $1.swb; - $1.enca(); - $1.cset = "setb"; - break; - } - if ($1.nums >= 2) { - $k[$j++] = $1.swc; - $1.enca(); - $1.cset = "setc"; - break; - } - $k[$j++] = $1.i; - $1.abeforeb(); - if ($k[--$j]) { - $k[$j++] = $1.sft; - $1.enca(); - $1.cset = "seta"; - break; - } - $k[$j++] = $1.swb; - $1.enca(); - $1.cset = "setb"; - break; - } - $1.j = $1.j + 1; - $1.endofrow = false; - for (;;) { - $1.rem = $f($f($1.c + 3) - $1.j % $f($1.c + 5)); - if ($1.i == $1.msglen || $1.endofrow) { - break; - } - $k[$j++] = $1.i; - $1.numsscr(); - $1.nums = $k[--$j]; - $1.nchars = $k[--$j]; - $k[$j++] = "remnums"; - if ($1.nums > $1.rem * 2) { - $k[$j++] = $1.rem * 2; - } else { - $k[$j++] = $1.nums; - } - var _5J = $k[--$j]; - $1[$k[--$j]] = _5J; - for (;;) { - if (($eq($1.cset, "seta") || $eq($1.cset, "setb")) && $1.remnums >= 4 && $get($1.msg, $1.i) != $1.fn1) { - if ($1.remnums % 2 == 0 && $1.rem >= 3) { - $k[$j++] = $1.swc; - if ($eq($1.cset, "seta")) { - $1.enca(); - } else { - $1.encb(); - } - $1.cset = "setc"; - for (var _5W = 0, _5X = 2; _5W < _5X; _5W++) { - if ($get($1.msg, $1.i) == $1.fn1) { - $k[$j++] = $1.fn1; - $1.encc(); - $1.i = $1.i + 1; - } else { - $k[$j++] = $geti($1.msg, $1.i, 2); - $1.encc(); - $1.i = $1.i + 2; - } - } - break; - } - if ($1.remnums % 2 != 0 && $1.rem >= 4) { - $k[$j++] = $get($1.msg, $1.i); - if ($eq($1.cset, "seta")) { - $1.enca(); - } else { - $1.encb(); - } - $1.i = $1.i + 1; - $k[$j++] = $1.swc; - if ($eq($1.cset, "seta")) { - $1.enca(); - } else { - $1.encb(); - } - $1.cset = "setc"; - for (var _5r = 0, _5s = 2; _5r < _5s; _5r++) { - if ($get($1.msg, $1.i) == $1.fn1) { - $k[$j++] = $1.fn1; - $1.encc(); - $1.i = $1.i + 1; - } else { - $k[$j++] = $geti($1.msg, $1.i, 2); - $1.encc(); - $1.i = $1.i + 2; - } - } - break; - } - } - $k[$j++] = $eq($1.cset, "setb"); - $k[$j++] = $get($1.msg, $1.i); - $1.anotb(); - var _67 = $k[--$j]; - var _68 = $k[--$j]; - if (_68 && _67 && $1.rem >= 2) { - if ($1.i < $1.msglen - 1) { - $k[$j++] = $1.i + 1; - $1.bbeforea(); - if ($k[--$j]) { - $k[$j++] = $1.sft; - $1.encb(); - $k[$j++] = $get($1.msg, $1.i); - $1.enca(); - $1.i = $1.i + 1; - break; - } - } - $k[$j++] = $1.swa; - $1.encb(); - $1.cset = "seta"; - $k[$j++] = $get($1.msg, $1.i); - $1.enca(); - $1.i = $1.i + 1; - break; - } - $k[$j++] = $eq($1.cset, "seta"); - $k[$j++] = $get($1.msg, $1.i); - $1.bnota(); - var _6S = $k[--$j]; - var _6T = $k[--$j]; - if (_6T && _6S && $1.rem >= 2) { - if ($1.i < $1.msglen - 1) { - $k[$j++] = $1.i + 1; - $1.abeforeb(); - if ($k[--$j]) { - $k[$j++] = $1.sft; - $1.enca(); - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $1.i = $1.i + 1; - break; - } - } - $k[$j++] = $1.swb; - $1.enca(); - $1.cset = "setb"; - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $1.i = $1.i + 1; - break; - } - if ($eq($1.cset, "setc") && $1.remnums < 2 && $1.rem >= 2) { - $k[$j++] = $1.i; - $1.abeforeb(); - if ($k[--$j]) { - $k[$j++] = $1.swa; - $1.encc(); - $1.cset = "seta"; - $k[$j++] = $get($1.msg, $1.i); - $1.enca(); - $1.i = $1.i + 1; - break; - } - $k[$j++] = $1.swb; - $1.encc(); - $1.cset = "setb"; - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $1.i = $1.i + 1; - break; - } - var _73 = $get($1.seta, $get($1.msg, $1.i)) !== undefined; - if ($eq($1.cset, "seta") && _73 && $1.rem >= 1) { - $k[$j++] = $get($1.msg, $1.i); - $1.enca(); - $1.i = $1.i + 1; - break; - } - var _7E = $get($1.setb, $get($1.msg, $1.i)) !== undefined; - if ($eq($1.cset, "setb") && _7E && $1.rem >= 1) { - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $1.i = $1.i + 1; - break; - } - if ($eq($1.cset, "setc") && $1.remnums >= 2 && $1.rem >= 1) { - if ($get($1.msg, $1.i) == $1.fn1) { - $k[$j++] = $1.fn1; - $1.encc(); - $1.i = $1.i + 1; - } else { - $k[$j++] = $geti($1.msg, $1.i, 2); - $1.encc(); - $1.i = $1.i + 2; - } - break; - } - $1.endofrow = true; - break; - } - } - if (($1.r >= $1.rows || $1.rows == -1) && $1.r > 1 && $1.i == $1.msglen && $1.rem >= 2) { - $k[$j++] = $f($1.rem - 2); - $1.padrow(); - $1.j = $1.j + 3; - $k[$j++] = $1.stp; - $1.enca(); - $1.lastrow = true; - } else { - $k[$j++] = $1.rem; - $1.padrow(); - $1.j = $1.j + 1; - $k[$j++] = $1.stp; - $1.enca(); - $1.r = $1.r + 1; - } - } - $1.cws = $geti($1.cws, 0, $1.j); - $k[$j++] = Infinity; - for (var _7o = 64; _7o <= 95; _7o += 1) { - $k[$j++] = _7o; - } - for (var _7p = 0; _7p <= 15; _7p += 1) { - $k[$j++] = _7p; - } - for (var _7q = 26; _7q <= 63; _7q += 1) { - $k[$j++] = _7q; - } - $1.abmap = $a(); - $k[$j++] = Infinity; - for (var _7s = 0; _7s <= 85; _7s += 1) { - $k[$j++] = _7s; - } - $1.cmap = $a(); - $1.chkmsg = $a($1.msglen); - $1.j = 0; - for (var _7y = 0, _7x = $1.msglen - 1; _7y <= _7x; _7y += 1) { - $1.i = _7y; - $1.char = $get($1.msg, $1.i); - if ($1.char >= 0) { - $put($1.chkmsg, $1.j, $1.char); - $1.j = $1.j + 1; - } - if ($1.char == $1.fn1 && $1.i != 0) { - $put($1.chkmsg, $1.j, 29); - $1.j = $1.j + 1; - } - } - $1.t1 = 0; - $1.t2 = 0; - $1.k1 = 0; - $1.k2 = 0; - for (var _8F = 0, _8E = $1.j - 1; _8F <= _8E; _8F += 1) { - $1.i = _8F; - $1.t1 = $get($1.chkmsg, $1.i) * $1.i % 86; - $1.t2 = $f($1.t1 + $get($1.chkmsg, $1.i)) % 86; - $1.k1 = $f($1.k1 + $1.t2) % 86; - $1.k2 = $f($1.k2 + $1.t1) % 86; - } - $k[$j++] = $1.cws; - $k[$j++] = $1.cws.length - 4; - if ($ne($1.cset, "setc")) { - $k[$j++] = $1.abmap; - } else { - $k[$j++] = $1.cmap; - } - var _8Z = $get($k[--$j], $1.k1); - var _8a = $k[--$j]; - $put($k[--$j], _8a, _8Z); - $k[$j++] = $1.cws; - $k[$j++] = $1.cws.length - 3; - if ($ne($1.cset, "setc")) { - $k[$j++] = $1.abmap; - } else { - $k[$j++] = $1.cmap; - } - var _8j = $get($k[--$j], $1.k2); - var _8k = $k[--$j]; - $put($k[--$j], _8k, _8j); - var _8m = $1.cws; - $k[$j++] = _8m; - $k[$j++] = 2; - if ($get(_8m, 2 - 1) != 99) { - $k[$j++] = $1.abmap; - } else { - $k[$j++] = $1.cmap; - } - var _8s = $get($k[--$j], $1.r - 2); - var _8t = $k[--$j]; - $put($k[--$j], _8t, _8s); - for (var _8x = 1, _8w = $1.r - 1; _8x <= _8w; _8x += 1) { - $1.i = _8x; - var _8y = $1.cws; - var _8z = $1.i; - var _90 = $1.c; - $k[$j++] = _8y; - $k[$j++] = $f(_8z * $f(_90 + 5) + 2); - if ($get(_8y, $f($f(_8z * $f(_90 + 5) + 2) - 1)) != 99) { - $k[$j++] = $1.abmap; - } else { - $k[$j++] = $1.cmap; - } - var _96 = $get($k[--$j], $1.i + 42); - var _97 = $k[--$j]; - $put($k[--$j], _97, _96); - } - for (var _9B = 0, _9A = $1.r - 1; _9B <= _9A; _9B += 1) { - $1.rcws = $geti($1.cws, _9B * $f($1.c + 5), $f($1.c + 4)); - $1.csum = $get($1.rcws, 0); - for (var _9K = 1, _9J = $1.rcws.length - 2; _9K <= _9J; _9K += 1) { - $1.i = _9K; - $1.csum = $f($1.csum + $get($1.rcws, $1.i) * $1.i); - } - $put($1.rcws, $1.rcws.length - 1, $1.csum % 103); - } - $1.encs = $a([ "212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "2331112" ]); - $1.rowbits = $a($1.r); - for (var _9Y = 0, _9X = $1.r - 1; _9Y <= _9X; _9Y += 1) { - $1.i = _9Y; - $k[$j++] = Infinity; - var _9d = $geti($1.cws, $1.i * $f($1.c + 5), $f($1.c + 5)); - for (var _9e = 0, _9f = _9d.length; _9e < _9f; _9e++) { - $forall($get($1.encs, $get(_9d, _9e)), function() { - var _9j = $k[--$j]; - $k[$j++] = $f(_9j - 48); - }); - } - $1.sbs = $a(); - $k[$j++] = Infinity; - var _9l = $1.sbs; - $k[$j++] = 0; - for (var _9m = 0, _9n = _9l.length; _9m < _9n; _9m++) { - var _9p = $k[--$j]; - var _9q = _9p == 1 ? 0 : 1; - $k[$j++] = _9p; - for (var _9r = 0, _9s = $get(_9l, _9m); _9r < _9s; _9r++) { - $k[$j++] = _9q; - } - } - $astore($a($counttomark() - 1)); - var _9v = $k[--$j]; - var _9w = $k[--$j]; - $k[$j++] = _9v; - $k[$j++] = _9w; - $j--; - var _9x = $k[--$j]; - var _9y = $k[--$j]; - $k[$j++] = _9x; - $k[$j++] = _9y; - $j--; - $put($1.rowbits, $1.i, $k[--$j]); - } - $1.symwid = $f($1.c * 11 + 57); - $k[$j++] = Infinity; - for (var _A5 = 0, _A6 = $1.symwid * $1.sepheight; _A5 < _A6; _A5++) { - $k[$j++] = 1; - } - for (var _A9 = 0, _A8 = $1.r - 2; _A9 <= _A8; _A9 += 1) { - $1.i = _A9; - for (var _AB = 0, _AC = $1.rowheight; _AB < _AC; _AB++) { - $aload($get($1.rowbits, $1.i)); - } - for (var _AH = 0, _AI = $1.sepheight; _AH < _AI; _AH++) { - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 0; - for (var _AK = 0, _AL = $f($1.symwid - 24); _AK < _AL; _AK++) { - $k[$j++] = 1; - } - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 1; - } - } - for (var _AN = 0, _AO = $1.rowheight; _AN < _AO; _AN++) { - $aload($get($1.rowbits, $1.r - 1)); - } - for (var _AU = 0, _AV = $1.symwid * $1.sepheight; _AU < _AV; _AU++) { - $k[$j++] = 1; - } - $1.pixs = $a(); - var _Af = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", $1.symwid ], [ "pixy", ~~($1.pixs.length / $1.symwid) ], [ "height", ~~($1.pixs.length / $1.symwid) / 72 ], [ "width", $1.symwid / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _Af; - if (!$1.dontdraw) { - $0.renmatrix(); - } + for (var _4g = 0, _4h = $k[--$j]; _4g < _4h; _4g++) { //#12431 + for (;;) { //#12430 + if ($eq($1.cset, "seta")) { //#12427 + $k[$j++] = $1.swc; //#12427 + $1.enca(); //#12427 + $1.cset = "setc"; //#12427 + break; //#12427 + } //#12427 + if ($eq($1.cset, "setb")) { //#12428 + $k[$j++] = $1.swc; //#12428 + $1.encb(); //#12428 + $1.cset = "setc"; //#12428 + break; //#12428 + } //#12428 + if ($eq($1.cset, "setc")) { //#12429 + $k[$j++] = $1.swb; //#12429 + $1.encc(); //#12429 + $1.cset = "setb"; //#12429 + break; //#12429 + } //#12429 + } //#12429 + } //#12429 + }; //#12432 + $1.cws = $a($f($1.c + 5) * 44); //#12435 + $1.i = 0; //#12437 + $1.j = 0; //#12437 + $1.r = 1; //#12437 + $1.lastrow = false; //#12438 + for (;;) { //#12607 + if ($1.lastrow) { //#12440 + break; //#12440 + } //#12440 + $k[$j++] = $1.sta; //#12443 + $1.enca(); //#12443 + if ($1.i < $1.msglen) { //#12444 + $k[$j++] = $1.i; //#12444 + $1.numsscr(); //#12444 + } else { //#12444 + $k[$j++] = -1; //#12444 + $k[$j++] = -1; //#12444 + } //#12444 + $1.nums = $k[--$j]; //#12444 + $1.nchars = $k[--$j]; //#12444 + for (;;) { //#12464 + if ($1.msglen == 0) { //#12450 + $k[$j++] = $1.swb; //#12447 + $1.enca(); //#12447 + $1.cset = "setb"; //#12448 + break; //#12449 + } //#12449 + if ($1.nums >= 2) { //#12455 + $k[$j++] = $1.swc; //#12452 + $1.enca(); //#12452 + $1.cset = "setc"; //#12453 + break; //#12454 + } //#12454 + $k[$j++] = $1.i; //#12456 + $1.abeforeb(); //#12456 + if ($k[--$j]) { //#12460 + $k[$j++] = $1.sft; //#12457 + $1.enca(); //#12457 + $1.cset = "seta"; //#12458 + break; //#12459 + } //#12459 + $k[$j++] = $1.swb; //#12461 + $1.enca(); //#12461 + $1.cset = "setb"; //#12462 + break; //#12463 + } //#12463 + $1.j = $1.j + 1; //#12465 + $1.endofrow = false; //#12468 + for (;;) { //#12592 + $1.rem = $f($f($1.c + 3) - ($1.j % $f($1.c + 5))); //#12469 + if (($1.i == $1.msglen) || $1.endofrow) { //#12471 + break; //#12471 + } //#12471 + $k[$j++] = $1.i; //#12473 + $1.numsscr(); //#12473 + $1.nums = $k[--$j]; //#12473 + $1.nchars = $k[--$j]; //#12473 + $k[$j++] = 'remnums'; //#12474 + if ($1.nums > ($1.rem * 2)) { //#12474 + $k[$j++] = $1.rem * 2; //#12474 + } else { //#12474 + $k[$j++] = $1.nums; //#12474 + } //#12474 + var _5J = $k[--$j]; //#12474 + $1[$k[--$j]] = _5J; //#12474 + for (;;) { //#12590 + if ((($eq($1.cset, "seta") || $eq($1.cset, "setb")) && ($1.remnums >= 4)) && ($get($1.msg, $1.i) != $1.fn1)) { //#12512 + if ((($1.remnums % 2) == 0) && ($1.rem >= 3)) { //#12494 + $k[$j++] = $1.swc; //#12482 + if ($eq($1.cset, "seta")) { //#12482 + $1.enca(); //#12482 + } else { //#12482 + $1.encb(); //#12482 + } //#12482 + $1.cset = "setc"; //#12483 + for (var _5W = 0, _5X = 2; _5W < _5X; _5W++) { //#12492 + if ($get($1.msg, $1.i) == $1.fn1) { //#12490 + $k[$j++] = $1.fn1; //#12486 + $1.encc(); //#12486 + $1.i = $1.i + 1; //#12487 + } else { //#12490 + $k[$j++] = $geti($1.msg, $1.i, 2); //#12489 + $1.encc(); //#12489 + $1.i = $1.i + 2; //#12490 + } //#12490 + } //#12490 + break; //#12493 + } //#12493 + if ((($1.remnums % 2) != 0) && ($1.rem >= 4)) { //#12511 + $k[$j++] = $get($1.msg, $1.i); //#12497 + if ($eq($1.cset, "seta")) { //#12497 + $1.enca(); //#12497 + } else { //#12497 + $1.encb(); //#12497 + } //#12497 + $1.i = $1.i + 1; //#12498 + $k[$j++] = $1.swc; //#12499 + if ($eq($1.cset, "seta")) { //#12499 + $1.enca(); //#12499 + } else { //#12499 + $1.encb(); //#12499 + } //#12499 + $1.cset = "setc"; //#12500 + for (var _5r = 0, _5s = 2; _5r < _5s; _5r++) { //#12509 + if ($get($1.msg, $1.i) == $1.fn1) { //#12507 + $k[$j++] = $1.fn1; //#12503 + $1.encc(); //#12503 + $1.i = $1.i + 1; //#12504 + } else { //#12507 + $k[$j++] = $geti($1.msg, $1.i, 2); //#12506 + $1.encc(); //#12506 + $1.i = $1.i + 2; //#12507 + } //#12507 + } //#12507 + break; //#12510 + } //#12510 + } //#12510 + $k[$j++] = $eq($1.cset, "setb"); //#12513 + $k[$j++] = $get($1.msg, $1.i); //#12513 + $1.anotb(); //#12513 + var _67 = $k[--$j]; //#12513 + var _68 = $k[--$j]; //#12513 + if ((_68 && _67) && ($1.rem >= 2)) { //#12528 + if ($1.i < ($1.msglen - 1)) { //#12522 + $k[$j++] = $1.i + 1; //#12516 + $1.bbeforea(); //#12516 + if ($k[--$j]) { //#12521 + $k[$j++] = $1.sft; //#12517 + $1.encb(); //#12517 + $k[$j++] = $get($1.msg, $1.i); //#12518 + $1.enca(); //#12518 + $1.i = $1.i + 1; //#12519 + break; //#12520 + } //#12520 + } //#12520 + $k[$j++] = $1.swa; //#12523 + $1.encb(); //#12523 + $1.cset = "seta"; //#12524 + $k[$j++] = $get($1.msg, $1.i); //#12525 + $1.enca(); //#12525 + $1.i = $1.i + 1; //#12526 + break; //#12527 + } //#12527 + $k[$j++] = $eq($1.cset, "seta"); //#12529 + $k[$j++] = $get($1.msg, $1.i); //#12529 + $1.bnota(); //#12529 + var _6S = $k[--$j]; //#12529 + var _6T = $k[--$j]; //#12529 + if ((_6T && _6S) && ($1.rem >= 2)) { //#12544 + if ($1.i < ($1.msglen - 1)) { //#12538 + $k[$j++] = $1.i + 1; //#12532 + $1.abeforeb(); //#12532 + if ($k[--$j]) { //#12537 + $k[$j++] = $1.sft; //#12533 + $1.enca(); //#12533 + $k[$j++] = $get($1.msg, $1.i); //#12534 + $1.encb(); //#12534 + $1.i = $1.i + 1; //#12535 + break; //#12536 + } //#12536 + } //#12536 + $k[$j++] = $1.swb; //#12539 + $1.enca(); //#12539 + $1.cset = "setb"; //#12540 + $k[$j++] = $get($1.msg, $1.i); //#12541 + $1.encb(); //#12541 + $1.i = $1.i + 1; //#12542 + break; //#12543 + } //#12543 + if (($eq($1.cset, "setc") && ($1.remnums < 2)) && ($1.rem >= 2)) { //#12559 + $k[$j++] = $1.i; //#12547 + $1.abeforeb(); //#12547 + if ($k[--$j]) { //#12553 + $k[$j++] = $1.swa; //#12548 + $1.encc(); //#12548 + $1.cset = "seta"; //#12549 + $k[$j++] = $get($1.msg, $1.i); //#12550 + $1.enca(); //#12550 + $1.i = $1.i + 1; //#12551 + break; //#12552 + } //#12552 + $k[$j++] = $1.swb; //#12554 + $1.encc(); //#12554 + $1.cset = "setb"; //#12555 + $k[$j++] = $get($1.msg, $1.i); //#12556 + $1.encb(); //#12556 + $1.i = $1.i + 1; //#12557 + break; //#12558 + } //#12558 + var _73 = $get($1.seta, $get($1.msg, $1.i)) !== undefined; //#12562 + if (($eq($1.cset, "seta") && _73) && ($1.rem >= 1)) { //#12567 + $k[$j++] = $get($1.msg, $1.i); //#12564 + $1.enca(); //#12564 + $1.i = $1.i + 1; //#12565 + break; //#12566 + } //#12566 + var _7E = $get($1.setb, $get($1.msg, $1.i)) !== undefined; //#12568 + if (($eq($1.cset, "setb") && _7E) && ($1.rem >= 1)) { //#12573 + $k[$j++] = $get($1.msg, $1.i); //#12570 + $1.encb(); //#12570 + $1.i = $1.i + 1; //#12571 + break; //#12572 + } //#12572 + if (($eq($1.cset, "setc") && ($1.remnums >= 2)) && ($1.rem >= 1)) { //#12584 + if ($get($1.msg, $1.i) == $1.fn1) { //#12581 + $k[$j++] = $1.fn1; //#12577 + $1.encc(); //#12577 + $1.i = $1.i + 1; //#12578 + } else { //#12581 + $k[$j++] = $geti($1.msg, $1.i, 2); //#12580 + $1.encc(); //#12580 + $1.i = $1.i + 2; //#12581 + } //#12581 + break; //#12583 + } //#12583 + $1.endofrow = true; //#12587 + break; //#12588 + } //#12588 + } //#12588 + if ((((($1.r >= $1.rows) || ($1.rows == -1)) && ($1.r > 1)) && ($1.i == $1.msglen)) && ($1.rem >= 2)) { //#12604 + $k[$j++] = $f($1.rem - 2); //#12596 + $1.padrow(); //#12596 + $1.j = $1.j + 3; //#12597 + $k[$j++] = $1.stp; //#12598 + $1.enca(); //#12598 + $1.lastrow = true; //#12599 + } else { //#12604 + $k[$j++] = $1.rem; //#12601 + $1.padrow(); //#12601 + $1.j = $1.j + 1; //#12602 + $k[$j++] = $1.stp; //#12603 + $1.enca(); //#12603 + $1.r = $1.r + 1; //#12604 + } //#12604 + } //#12604 + $1.cws = $geti($1.cws, 0, $1.j); //#12608 + $k[$j++] = Infinity; //#12614 + for (var _7o = 64; _7o <= 95; _7o += 1) { //#12612 + $k[$j++] = _7o; //#12612 + } //#12612 + for (var _7p = 0; _7p <= 15; _7p += 1) { //#12613 + $k[$j++] = _7p; //#12613 + } //#12613 + for (var _7q = 26; _7q <= 63; _7q += 1) { //#12614 + $k[$j++] = _7q; //#12614 + } //#12614 + $1.abmap = $a(); //#12614 + $k[$j++] = Infinity; //#12616 + for (var _7s = 0; _7s <= 85; _7s += 1) { //#12616 + $k[$j++] = _7s; //#12616 + } //#12616 + $1.cmap = $a(); //#12616 + $1.chkmsg = $a($1.msglen); //#12619 + $1.j = 0; //#12620 + for (var _7y = 0, _7x = $1.msglen - 1; _7y <= _7x; _7y += 1) { //#12626 + $1.i = _7y; //#12622 + $1.char = $get($1.msg, $1.i); //#12623 + if ($1.char >= 0) { //#12624 + $put($1.chkmsg, $1.j, $1.char); //#12624 + $1.j = $1.j + 1; //#12624 + } //#12624 + if (($1.char == $1.fn1) && ($1.i != 0)) { //#12625 + $put($1.chkmsg, $1.j, 29); //#12625 + $1.j = $1.j + 1; //#12625 + } //#12625 + } //#12625 + $1.t1 = 0; //#12627 + $1.t2 = 0; //#12627 + $1.k1 = 0; //#12627 + $1.k2 = 0; //#12627 + for (var _8F = 0, _8E = $1.j - 1; _8F <= _8E; _8F += 1) { //#12634 + $1.i = _8F; //#12629 + $1.t1 = ($get($1.chkmsg, $1.i) * $1.i) % 86; //#12630 + $1.t2 = $f($1.t1 + $get($1.chkmsg, $1.i)) % 86; //#12631 + $1.k1 = $f($1.k1 + $1.t2) % 86; //#12632 + $1.k2 = $f($1.k2 + $1.t1) % 86; //#12633 + } //#12633 + $k[$j++] = $1.cws; //#12635 + $k[$j++] = $1.cws.length - 4; //#12635 + if ($ne($1.cset, "setc")) { //#12635 + $k[$j++] = $1.abmap; //#12635 + } else { //#12635 + $k[$j++] = $1.cmap; //#12635 + } //#12635 + var _8Z = $get($k[--$j], $1.k1); //#12635 + var _8a = $k[--$j]; //#12635 + $put($k[--$j], _8a, _8Z); //#12635 + $k[$j++] = $1.cws; //#12636 + $k[$j++] = $1.cws.length - 3; //#12636 + if ($ne($1.cset, "setc")) { //#12636 + $k[$j++] = $1.abmap; //#12636 + } else { //#12636 + $k[$j++] = $1.cmap; //#12636 + } //#12636 + var _8j = $get($k[--$j], $1.k2); //#12636 + var _8k = $k[--$j]; //#12636 + $put($k[--$j], _8k, _8j); //#12636 + var _8m = $1.cws; //#12639 + $k[$j++] = _8m; //#12639 + $k[$j++] = 2; //#12639 + if ($get(_8m, 2 - 1) != 99) { //#12639 + $k[$j++] = $1.abmap; //#12639 + } else { //#12639 + $k[$j++] = $1.cmap; //#12639 + } //#12639 + var _8s = $get($k[--$j], $1.r - 2); //#12639 + var _8t = $k[--$j]; //#12639 + $put($k[--$j], _8t, _8s); //#12639 + for (var _8x = 1, _8w = $1.r - 1; _8x <= _8w; _8x += 1) { //#12643 + $1.i = _8x; //#12641 + var _8y = $1.cws; //#12642 + var _8z = $1.i; //#12642 + var _90 = $1.c; //#12642 + $k[$j++] = _8y; //#12642 + $k[$j++] = $f((_8z * $f(_90 + 5)) + 2); //#12642 + if ($get(_8y, $f(($f((_8z * $f(_90 + 5)) + 2)) - 1)) != 99) { //#12642 + $k[$j++] = $1.abmap; //#12642 + } else { //#12642 + $k[$j++] = $1.cmap; //#12642 + } //#12642 + var _96 = $get($k[--$j], $1.i + 42); //#12642 + var _97 = $k[--$j]; //#12642 + $put($k[--$j], _97, _96); //#12642 + } //#12642 + for (var _9B = 0, _9A = $1.r - 1; _9B <= _9A; _9B += 1) { //#12654 + $1.rcws = $geti($1.cws, _9B * $f($1.c + 5), $f($1.c + 4)); //#12647 + $1.csum = $get($1.rcws, 0); //#12648 + for (var _9K = 1, _9J = $1.rcws.length - 2; _9K <= _9J; _9K += 1) { //#12652 + $1.i = _9K; //#12650 + $1.csum = $f($1.csum + ($get($1.rcws, $1.i) * $1.i)); //#12651 + } //#12651 + $put($1.rcws, $1.rcws.length - 1, $1.csum % 103); //#12653 + } //#12653 + $1.encs = $a(["212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "2331112"]); //#12673 + $1.rowbits = $a($1.r); //#12676 + for (var _9Y = 0, _9X = $1.r - 1; _9Y <= _9X; _9Y += 1) { //#12688 + $1.i = _9Y; //#12678 + $k[$j++] = Infinity; //#12681 + var _9d = $geti($1.cws, $1.i * $f($1.c + 5), $f($1.c + 5)); //#12680 + for (var _9e = 0, _9f = _9d.length; _9e < _9f; _9e++) { //#12682 + $forall($get($1.encs, $get(_9d, _9e)), function() { //#12681 + var _9j = $k[--$j]; //#12681 + $k[$j++] = $f(_9j - 48); //#12681 + }); //#12681 + } //#12681 + $1.sbs = $a(); //#12681 + $k[$j++] = Infinity; //#12684 + var _9l = $1.sbs; //#12685 + $k[$j++] = 0; //#12685 + for (var _9m = 0, _9n = _9l.length; _9m < _9n; _9m++) { //#12685 + var _9p = $k[--$j]; //#12685 + var _9q = (_9p == 1) ? 0 : 1; //#12685 + $k[$j++] = _9p; //#12685 + for (var _9r = 0, _9s = $get(_9l, _9m); _9r < _9s; _9r++) { //#12685 + $k[$j++] = _9q //#12685 + } //#12685 + } //#12685 + $astore($a($counttomark() - 1)); //#12686 + var _9v = $k[--$j]; //#12686 + var _9w = $k[--$j]; //#12686 + $k[$j++] = _9v; //#12686 + $k[$j++] = _9w; //#12686 + $j--; //#12686 + var _9x = $k[--$j]; //#12686 + var _9y = $k[--$j]; //#12686 + $k[$j++] = _9x; //#12686 + $k[$j++] = _9y; //#12686 + $j--; //#12686 + $put($1.rowbits, $1.i, $k[--$j]); //#12687 + } //#12687 + $1.symwid = $f(($1.c * 11) + 57); //#12691 + $k[$j++] = Infinity; //#12704 + for (var _A5 = 0, _A6 = $1.symwid * $1.sepheight; _A5 < _A6; _A5++) { //#12693 + $k[$j++] = 1; //#12693 + } //#12693 + for (var _A9 = 0, _A8 = $1.r - 2; _A9 <= _A8; _A9 += 1) { //#12702 + $1.i = _A9; //#12695 + for (var _AB = 0, _AC = $1.rowheight; _AB < _AC; _AB++) { //#12696 + $aload($get($1.rowbits, $1.i)); //#12696 + } //#12696 + for (var _AH = 0, _AI = $1.sepheight; _AH < _AI; _AH++) { //#12701 + $k[$j++] = 1; //#12699 + $k[$j++] = 1; //#12699 + $k[$j++] = 0; //#12699 + $k[$j++] = 1; //#12699 + $k[$j++] = 0; //#12699 + $k[$j++] = 0; //#12699 + $k[$j++] = 0; //#12699 + $k[$j++] = 0; //#12699 + $k[$j++] = 1; //#12699 + $k[$j++] = 0; //#12699 + $k[$j++] = 0; //#12699 + for (var _AK = 0, _AL = $f($1.symwid - 24); _AK < _AL; _AK++) { //#12699 + $k[$j++] = 1; //#12699 + } //#12699 + $k[$j++] = 1; //#12700 + $k[$j++] = 1; //#12700 + $k[$j++] = 0; //#12700 + $k[$j++] = 0; //#12700 + $k[$j++] = 0; //#12700 + $k[$j++] = 1; //#12700 + $k[$j++] = 1; //#12700 + $k[$j++] = 1; //#12700 + $k[$j++] = 0; //#12700 + $k[$j++] = 1; //#12700 + $k[$j++] = 0; //#12700 + $k[$j++] = 1; //#12700 + $k[$j++] = 1; //#12700 + } //#12700 + } //#12700 + for (var _AN = 0, _AO = $1.rowheight; _AN < _AO; _AN++) { //#12703 + $aload($get($1.rowbits, $1.r - 1)); //#12703 + } //#12703 + for (var _AU = 0, _AV = $1.symwid * $1.sepheight; _AU < _AV; _AU++) { //#12704 + $k[$j++] = 1; //#12704 + } //#12704 + $1.pixs = $a(); //#12704 + var _Af = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", $1.symwid], + ["pixy", ~~($1.pixs.length / $1.symwid)], + ["height", (~~($1.pixs.length / $1.symwid)) / 72], + ["width", $1.symwid / 72], + ["opt", $1.options] + ]); //#12715 + $k[$j++] = _Af; //#12718 + if (!$1.dontdraw) { //#12718 + $0.renmatrix(); //#12718 + } //#12718 }; $0.code16k = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.mode = -1; - $1.pos = -1; - $1.rows = 0; - $1.rowheight = 8; - $1.sepheight = 1; - $1.encoding = "auto"; - $1.raw = false; - $1.parse = false; - $1.parsefnc = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.mode = ~~$1.mode; - $1.pos = ~~$1.pos; - $1.rows = ~~$1.rows; - $1.rowheight = ~~$1.rowheight; - $1.sepheight = ~~$1.sepheight; - if ($1.pos != -1) { - $1.rows = 16; - } - $1.swa = -1; - $1.swb = -2; - $1.swc = -3; - $1.sa1 = -4; - $1.sb1 = -5; - $1.sc1 = -6; - $1.sa2 = -7; - $1.sb2 = -8; - $1.sc2 = -9; - $1.pad = -10; - $1.sb3 = -11; - $1.sc3 = -12; - $1.fn1 = -13; - $1.fn2 = -14; - $1.fn3 = -15; - $1.fn4 = -16; - $1.charmaps = $a([ $a([ 32, 32, "00" ]), $a([ "!", "!", "01" ]), $a([ '"', '"', "02" ]), $a([ "#", "#", "03" ]), $a([ "$", "$", "04" ]), $a([ "%", "%", "05" ]), $a([ "&", "&", "06" ]), $a([ "'", "'", "07" ]), $a([ 40, 40, "08" ]), $a([ 41, 41, "09" ]), $a([ "*", "*", "10" ]), $a([ "+", "+", "11" ]), $a([ ",", ",", "12" ]), $a([ "-", "-", "13" ]), $a([ ".", ".", "14" ]), $a([ "/", "/", "15" ]), $a([ "0", "0", "16" ]), $a([ "1", "1", "17" ]), $a([ "2", "2", "18" ]), $a([ "3", "3", "19" ]), $a([ "4", "4", "20" ]), $a([ "5", "5", "21" ]), $a([ "6", "6", "22" ]), $a([ "7", "7", "23" ]), $a([ "8", "8", "24" ]), $a([ "9", "9", "25" ]), $a([ ":", ":", "26" ]), $a([ ";", ";", "27" ]), $a([ "<", "<", "28" ]), $a([ "=", "=", "29" ]), $a([ ">", ">", "30" ]), $a([ "?", "?", "31" ]), $a([ "@", "@", "32" ]), $a([ "A", "A", "33" ]), $a([ "B", "B", "34" ]), $a([ "C", "C", "35" ]), $a([ "D", "D", "36" ]), $a([ "E", "E", "37" ]), $a([ "F", "F", "38" ]), $a([ "G", "G", "39" ]), $a([ "H", "H", "40" ]), $a([ "I", "I", "41" ]), $a([ "J", "J", "42" ]), $a([ "K", "K", "43" ]), $a([ "L", "L", "44" ]), $a([ "M", "M", "45" ]), $a([ "N", "N", "46" ]), $a([ "O", "O", "47" ]), $a([ "P", "P", "48" ]), $a([ "Q", "Q", "49" ]), $a([ "R", "R", "50" ]), $a([ "S", "S", "51" ]), $a([ "T", "T", "52" ]), $a([ "U", "U", "53" ]), $a([ "V", "V", "54" ]), $a([ "W", "W", "55" ]), $a([ "X", "X", "56" ]), $a([ "Y", "Y", "57" ]), $a([ "Z", "Z", "58" ]), $a([ "[", "[", "59" ]), $a([ 92, 92, "60" ]), $a([ "]", "]", "61" ]), $a([ "^", "^", "62" ]), $a([ "_", "_", "63" ]), $a([ 0, "`", "64" ]), $a([ 1, "a", "65" ]), $a([ 2, "b", "66" ]), $a([ 3, "c", "67" ]), $a([ 4, "d", "68" ]), $a([ 5, "e", "69" ]), $a([ 6, "f", "70" ]), $a([ 7, "g", "71" ]), $a([ 8, "h", "72" ]), $a([ 9, "i", "73" ]), $a([ 10, "j", "74" ]), $a([ 11, "k", "75" ]), $a([ 12, "l", "76" ]), $a([ 13, "m", "77" ]), $a([ 14, "n", "78" ]), $a([ 15, "o", "79" ]), $a([ 16, "p", "80" ]), $a([ 17, "q", "81" ]), $a([ 18, "r", "82" ]), $a([ 19, "s", "83" ]), $a([ 20, "t", "84" ]), $a([ 21, "u", "85" ]), $a([ 22, "v", "86" ]), $a([ 23, "w", "87" ]), $a([ 24, "x", "88" ]), $a([ 25, "y", "89" ]), $a([ 26, "z", "90" ]), $a([ 27, "{", "91" ]), $a([ 28, "|", "92" ]), $a([ 29, "}", "93" ]), $a([ 30, "~", "94" ]), $a([ 31, 127, "95" ]), $a([ $1.fn3, $1.fn3, "96" ]), $a([ $1.fn2, $1.fn2, "97" ]), $a([ $1.sb1, $1.sa1, "98" ]), $a([ $1.swc, $1.swc, "99" ]), $a([ $1.swb, $1.fn4, $1.swb ]), $a([ $1.fn4, $1.swa, $1.swa ]), $a([ $1.fn1, $1.fn1, $1.fn1 ]), $a([ $1.pad, $1.pad, $1.pad ]), $a([ $1.sb2, $1.sa2, $1.sb1 ]), $a([ $1.sc2, $1.sc2, $1.sb2 ]), $a([ $1.sc3, $1.sc3, $1.sb3 ]) ]); - $1.charvals = $a([ new Map(), new Map(), new Map() ]); - for (var _2R = 0, _2Q = $1.charmaps.length - 1; _2R <= _2Q; _2R += 1) { - $1.i = _2R; - $1.encs = $get($1.charmaps, $1.i); - for (var _2V = 0; _2V <= 2; _2V += 1) { - $1.j = _2V; - var _2Y = $get($1.encs, $1.j); - $k[$j++] = _2Y; - if ($eq($type(_2Y), "stringtype")) { - var _2b = $get($k[--$j], 0); - $k[$j++] = _2b; - } - $put($get($1.charvals, $1.j), $k[--$j], $1.i); - } - } - $1.seta = $get($1.charvals, 0); - $1.setb = $get($1.charvals, 1); - $1.setc = $get($1.charvals, 2); - if ($1.raw) { - $1.encoding = "raw"; - } - if ($eq($1.encoding, "raw")) { - $1.cws = $a($1.barcode.length); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.barcode.length) { - break; - } - $1.cw = ~~$z($geti($1.barcode, $1.i + 1, 3)); - $put($1.cws, $1.j, $1.cw); - $1.i = $1.i + 4; - $1.j = $1.j + 1; - } - $1.cws = $geti($1.cws, 0, $1.j); - } - if ($eq($1.encoding, "auto")) { - var _3A = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "eci", true ], [ "FNC1", $1.fn1 ], [ "FNC2", $1.fn2 ], [ "FNC3", $1.fn3 ] ]); - $1.fncvals = _3A; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _3D = $k[--$j]; - $1[$k[--$j]] = _3D; - $1.msglen = $1.msg.length; - $k[$j++] = Infinity; - for (var _3H = 0, _3I = $1.msglen; _3H < _3I; _3H++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numSA = $a(); - $k[$j++] = Infinity; - for (var _3L = 0, _3M = $1.msglen; _3L < _3M; _3L++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numEA = $a(); - for (var _3P = $1.msglen - 1; _3P >= 0; _3P -= 1) { - $1.i = _3P; - if ($get($1.msg, $1.i) >= 0) { - if ($get($1.msg, $1.i) >= 128) { - $put($1.numEA, $1.i, $f($get($1.numEA, $1.i + 1) + 1)); - } else { - $put($1.numSA, $1.i, $f($get($1.numSA, $1.i + 1) + 1)); - } - } - } - $1.ea = false; - $1.msgtmp = $a([]); - for (var _3j = 0, _3i = $1.msglen - 1; _3j <= _3i; _3j += 1) { - $1.i = _3j; - $1.c = $get($1.msg, $1.i); - if (!$xo($1.ea, $1.c < 128) && $1.c >= 0) { - if ($1.ea) { - $k[$j++] = $1.numSA; - } else { - $k[$j++] = $1.numEA; - } - var _3v = $get($k[--$j], $1.i); - var _3y = $f(_3v + $1.i) == $1.msglen ? 3 : 5; - if (_3v < _3y) { - $k[$j++] = Infinity; - $aload($1.msgtmp); - $k[$j++] = $1.fn4; - $1.msgtmp = $a(); - } else { - $k[$j++] = Infinity; - $aload($1.msgtmp); - $k[$j++] = $1.fn4; - $k[$j++] = $1.fn4; - $1.msgtmp = $a(); - $1.ea = !$1.ea; - } - } - $k[$j++] = Infinity; - $aload($1.msgtmp); - if ($1.c >= 0) { - $k[$j++] = $1.c & 127; - } else { - $k[$j++] = $1.c; - } - $1.msgtmp = $a(); - } - $1.msg = $1.msgtmp; - $1.msglen = $1.msg.length; + var $1 = {}; //#12748 + $1.options = $k[--$j]; //#12750 + $1.barcode = $k[--$j]; //#12751 + $1.dontdraw = false; //#12753 + $1.mode = -1; //#12754 + $1.pos = -1; //#12755 + $1.rows = 0; //#12756 + $1.rowheight = 8; //#12757 + $1.sepheight = 1; //#12758 + $1.encoding = "auto"; //#12759 + $1.raw = false; //#12760 + $1.parse = false; //#12761 + $1.parsefnc = false; //#12762 + $forall($1.options, function() { //#12773 + var _3 = $k[--$j]; //#12773 + $1[$k[--$j]] = _3; //#12773 + }); //#12773 + $1.mode = ~~$1.mode; //#12775 + $1.pos = ~~$1.pos; //#12776 + $1.rows = ~~$1.rows; //#12777 + $1.rowheight = ~~$1.rowheight; //#12778 + $1.sepheight = ~~$1.sepheight; //#12779 + if ($1.pos != -1) { //#12781 + $1.rows = 16; //#12781 + } //#12781 + $1.swa = -1; //#12784 + $1.swb = -2; //#12784 + $1.swc = -3; //#12784 + $1.sa1 = -4; //#12785 + $1.sb1 = -5; //#12785 + $1.sc1 = -6; //#12785 + $1.sa2 = -7; //#12786 + $1.sb2 = -8; //#12786 + $1.sc2 = -9; //#12786 + $1.pad = -10; //#12787 + $1.sb3 = -11; //#12787 + $1.sc3 = -12; //#12787 + $1.fn1 = -13; //#12788 + $1.fn2 = -14; //#12788 + $1.fn3 = -15; //#12788 + $1.fn4 = -16; //#12788 + $1.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$1.fn3, $1.fn3, "96"]), $a([$1.fn2, $1.fn2, "97"]), $a([$1.sb1, $1.sa1, "98"]), $a([$1.swc, $1.swc, "99"]), $a([$1.swb, $1.fn4, $1.swb]), $a([$1.fn4, $1.swa, $1.swa]), $a([$1.fn1, $1.fn1, $1.fn1]), $a([$1.pad, $1.pad, $1.pad]), $a([$1.sb2, $1.sa2, $1.sb1]), $a([$1.sc2, $1.sc2, $1.sb2]), $a([$1.sc3, $1.sc3, $1.sb3])]); //#12829 + $1.charvals = $a([new Map, new Map, new Map]); //#12832 + for (var _2R = 0, _2Q = $1.charmaps.length - 1; _2R <= _2Q; _2R += 1) { //#12841 + $1.i = _2R; //#12834 + $1.encs = $get($1.charmaps, $1.i); //#12835 + for (var _2V = 0; _2V <= 2; _2V += 1) { //#12840 + $1.j = _2V; //#12837 + var _2Y = $get($1.encs, $1.j); //#12838 + $k[$j++] = _2Y; //#12838 + if ($eq($type(_2Y), 'stringtype')) { //#12838 + var _2b = $get($k[--$j], 0); //#12838 + $k[$j++] = _2b; //#12838 + } //#12838 + $put($get($1.charvals, $1.j), $k[--$j], $1.i); //#12839 + } //#12839 + } //#12839 + $1.seta = $get($1.charvals, 0); //#12842 + $1.setb = $get($1.charvals, 1); //#12843 + $1.setc = $get($1.charvals, 2); //#12844 + if ($1.raw) { //#12846 + $1.encoding = "raw"; //#12846 + } //#12846 + if ($eq($1.encoding, "raw")) { //#12859 + $1.cws = $a($1.barcode.length); //#12849 + $1.i = 0; //#12850 + $1.j = 0; //#12850 + for (;;) { //#12857 + if ($1.i == $1.barcode.length) { //#12852 + break; //#12852 + } //#12852 + $1.cw = ~~$z($geti($1.barcode, $1.i + 1, 3)); //#12853 + $put($1.cws, $1.j, $1.cw); //#12854 + $1.i = $1.i + 4; //#12855 + $1.j = $1.j + 1; //#12856 + } //#12856 + $1.cws = $geti($1.cws, 0, $1.j); //#12858 + } //#12858 + if ($eq($1.encoding, "auto")) { //#13310 + var _3A = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["eci", true], + ["FNC1", $1.fn1], + ["FNC2", $1.fn2], + ["FNC3", $1.fn3] + ]); //#12870 + $1.fncvals = _3A; //#12872 + $k[$j++] = 'msg'; //#12873 + $k[$j++] = $1.barcode; //#12873 + $k[$j++] = $1.fncvals; //#12873 + $0.parseinput(); //#12873 + var _3D = $k[--$j]; //#12873 + $1[$k[--$j]] = _3D; //#12873 + $1.msglen = $1.msg.length; //#12874 + $k[$j++] = Infinity; //#12877 + for (var _3H = 0, _3I = $1.msglen; _3H < _3I; _3H++) { //#12877 + $k[$j++] = 0; //#12877 + } //#12877 + $k[$j++] = 0; //#12877 + $1.numSA = $a(); //#12877 + $k[$j++] = Infinity; //#12878 + for (var _3L = 0, _3M = $1.msglen; _3L < _3M; _3L++) { //#12878 + $k[$j++] = 0; //#12878 + } //#12878 + $k[$j++] = 0; //#12878 + $1.numEA = $a(); //#12878 + for (var _3P = $1.msglen - 1; _3P >= 0; _3P -= 1) { //#12888 + $1.i = _3P; //#12880 + if ($get($1.msg, $1.i) >= 0) { //#12887 + if ($get($1.msg, $1.i) >= 128) { //#12885 + $put($1.numEA, $1.i, $f($get($1.numEA, $1.i + 1) + 1)); //#12883 + } else { //#12885 + $put($1.numSA, $1.i, $f($get($1.numSA, $1.i + 1) + 1)); //#12885 + } //#12885 + } //#12885 + } //#12885 + $1.ea = false; //#12891 + $1.msgtmp = $a([]); //#12891 + for (var _3j = 0, _3i = $1.msglen - 1; _3j <= _3i; _3j += 1) { //#12906 + $1.i = _3j; //#12893 + $1.c = $get($1.msg, $1.i); //#12894 + if ((!$xo($1.ea, $1.c < 128)) && ($1.c >= 0)) { //#12904 + if ($1.ea) { //#12896 + $k[$j++] = $1.numSA; //#12896 + } else { //#12896 + $k[$j++] = $1.numEA; //#12896 + } //#12896 + var _3v = $get($k[--$j], $1.i); //#12896 + var _3y = ($f(_3v + $1.i) == $1.msglen) ? 3 : 5; //#12897 + if (_3v < _3y) { //#12902 + $k[$j++] = Infinity; //#12899 + $aload($1.msgtmp); //#12899 + $k[$j++] = $1.fn4; //#12899 + $1.msgtmp = $a(); //#12899 + } else { //#12902 + $k[$j++] = Infinity; //#12901 + $aload($1.msgtmp); //#12901 + $k[$j++] = $1.fn4; //#12901 + $k[$j++] = $1.fn4; //#12901 + $1.msgtmp = $a(); //#12901 + $1.ea = !$1.ea; //#12902 + } //#12902 + } //#12902 + $k[$j++] = Infinity; //#12905 + $aload($1.msgtmp); //#12905 + if ($1.c >= 0) { //#12905 + $k[$j++] = $1.c & 127; //#12905 + } else { //#12905 + $k[$j++] = $1.c; //#12905 + } //#12905 + $1.msgtmp = $a(); //#12905 + } //#12905 + $1.msg = $1.msgtmp; //#12907 + $1.msglen = $1.msg.length; //#12908 $1.numsscr = function() { - $1.n = 0; - $1.s = 0; - $1.p = $k[--$j]; - for (;;) { - if ($1.p >= $1.msglen) { - break; - } - var _4J = $get($1.msg, $1.p); - var _4L = $get($1.setc, _4J) !== undefined; - $k[$j++] = _4J; - if (!_4L) { - $j--; - break; - } - if ($k[--$j] == $1.fn1) { - if ($1.s % 2 == 0) { - $1.s = $1.s + 1; - } else { - break; - } - } - $1.n = $1.n + 1; - $1.s = $1.s + 1; - $1.p = $f($1.p + 1); - } - $k[$j++] = $1.n; - $k[$j++] = $1.s; - }; + $1.n = 0; //#12912 + $1.s = 0; //#12912 + $1.p = $k[--$j]; //#12913 + for (;;) { //#12924 + if ($1.p >= $1.msglen) { //#12914 + break; //#12914 + } //#12914 + var _4J = $get($1.msg, $1.p); //#12915 + var _4L = $get($1.setc, _4J) !== undefined; //#12916 + $k[$j++] = _4J; //#12916 + if (!_4L) { //#12916 + $j--; //#12916 + break; //#12916 + } //#12916 + if ($k[--$j] == $1.fn1) { //#12920 + if (($1.s % 2) == 0) { //#12919 + $1.s = $1.s + 1; //#12919 + } else { //#12919 + break; //#12919 + } //#12919 + } //#12919 + $1.n = $1.n + 1; //#12921 + $1.s = $1.s + 1; //#12922 + $1.p = $f($1.p + 1); //#12923 + } //#12923 + $k[$j++] = $1.n; //#12925 + $k[$j++] = $1.s; //#12925 + }; //#12926 $1.enca = function() { - $put($1.cws, $1.j, $get($1.seta, $k[--$j])); - $1.j = $1.j + 1; - }; + $put($1.cws, $1.j, $get($1.seta, $k[--$j])); //#12930 + $1.j = $1.j + 1; //#12931 + }; //#12932 $1.encb = function() { - $put($1.cws, $1.j, $get($1.setb, $k[--$j])); - $1.j = $1.j + 1; - }; + $put($1.cws, $1.j, $get($1.setb, $k[--$j])); //#12934 + $1.j = $1.j + 1; //#12935 + }; //#12936 $1.encc = function() { - var _4h = $k[--$j]; - $k[$j++] = _4h; - if ($ne($type(_4h), "arraytype")) { - var _4l = $get($1.setc, $k[--$j]); - $k[$j++] = _4l; - } else { - $aload($k[--$j]); - var _4n = $k[--$j]; - var _4o = $k[--$j]; - $k[$j++] = $f($f(_4n - 48) + $f(_4o - 48) * 10); - } - $put($1.cws, $1.j, $k[--$j]); - $1.j = $1.j + 1; - }; + var _4h = $k[--$j]; //#12938 + $k[$j++] = _4h; //#12942 + if ($ne($type(_4h), 'arraytype')) { //#12941 + var _4l = $get($1.setc, $k[--$j]); //#12939 + $k[$j++] = _4l; //#12939 + } else { //#12941 + $aload($k[--$j]); //#12941 + var _4n = $k[--$j]; //#12941 + var _4o = $k[--$j]; //#12941 + $k[$j++] = $f($f(_4n - 48) + ($f(_4o - 48) * 10)); //#12941 + } //#12941 + $put($1.cws, $1.j, $k[--$j]); //#12943 + $1.j = $1.j + 1; //#12944 + }; //#12945 $1.anotb = function() { - var _4t = $k[--$j]; - var _4v = $get($1.seta, _4t) !== undefined; - var _4x = $get($1.setb, _4t) !== undefined; - $k[$j++] = _4v && !_4x; - }; + var _4t = $k[--$j]; //#12948 + var _4v = $get($1.seta, _4t) !== undefined; //#12948 + var _4x = $get($1.setb, _4t) !== undefined; //#12948 + $k[$j++] = _4v && (!_4x); //#12948 + }; //#12948 $1.bnota = function() { - var _4y = $k[--$j]; - var _50 = $get($1.setb, _4y) !== undefined; - var _52 = $get($1.seta, _4y) !== undefined; - $k[$j++] = _50 && !_52; - }; - $k[$j++] = Infinity; - for (var _54 = 0, _55 = $1.msg.length; _54 < _55; _54++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextanotb = $a(); - $k[$j++] = Infinity; - for (var _58 = 0, _59 = $1.msg.length; _58 < _59; _58++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextbnota = $a(); - for (var _5C = $1.msg.length - 1; _5C >= 0; _5C -= 1) { - $1.i = _5C; - $k[$j++] = $get($1.msg, $1.i); - $1.anotb(); - if ($k[--$j]) { - $put($1.nextanotb, $1.i, 0); - } else { - $put($1.nextanotb, $1.i, $f($get($1.nextanotb, $1.i + 1) + 1)); - } - $k[$j++] = $get($1.msg, $1.i); - $1.bnota(); - if ($k[--$j]) { - $put($1.nextbnota, $1.i, 0); - } else { - $put($1.nextbnota, $1.i, $f($get($1.nextbnota, $1.i + 1) + 1)); - } - } + var _4y = $k[--$j]; //#12949 + var _50 = $get($1.setb, _4y) !== undefined; //#12949 + var _52 = $get($1.seta, _4y) !== undefined; //#12949 + $k[$j++] = _50 && (!_52); //#12949 + }; //#12949 + $k[$j++] = Infinity; //#12952 + for (var _54 = 0, _55 = $1.msg.length; _54 < _55; _54++) { //#12952 + $k[$j++] = 0; //#12952 + } //#12952 + $k[$j++] = 9999; //#12952 + $1.nextanotb = $a(); //#12952 + $k[$j++] = Infinity; //#12953 + for (var _58 = 0, _59 = $1.msg.length; _58 < _59; _58++) { //#12953 + $k[$j++] = 0; //#12953 + } //#12953 + $k[$j++] = 9999; //#12953 + $1.nextbnota = $a(); //#12953 + for (var _5C = $1.msg.length - 1; _5C >= 0; _5C -= 1) { //#12966 + $1.i = _5C; //#12955 + $k[$j++] = $get($1.msg, $1.i); //#12956 + $1.anotb(); //#12956 + if ($k[--$j]) { //#12959 + $put($1.nextanotb, $1.i, 0); //#12957 + } else { //#12959 + $put($1.nextanotb, $1.i, $f($get($1.nextanotb, $1.i + 1) + 1)); //#12959 + } //#12959 + $k[$j++] = $get($1.msg, $1.i); //#12961 + $1.bnota(); //#12961 + if ($k[--$j]) { //#12964 + $put($1.nextbnota, $1.i, 0); //#12962 + } else { //#12964 + $put($1.nextbnota, $1.i, $f($get($1.nextbnota, $1.i + 1) + 1)); //#12964 + } //#12964 + } //#12964 $1.abeforeb = function() { - var _5Z = $k[--$j]; - $k[$j++] = $lt($get($1.nextanotb, _5Z), $get($1.nextbnota, _5Z)); - }; + var _5Z = $k[--$j]; //#12969 + $k[$j++] = $lt($get($1.nextanotb, _5Z), $get($1.nextbnota, _5Z)); //#12969 + }; //#12969 $1.bbeforea = function() { - var _5e = $k[--$j]; - $k[$j++] = $lt($get($1.nextbnota, _5e), $get($1.nextanotb, _5e)); - }; - $1.cws = $a($1.barcode.length * 2 + 3); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.pos != -1) { - $put($1.cws, 0, ~~($1.pos / 10) - 1); - $put($1.cws, 1, $1.pos % 10 - 1); - $1.j = 2; - $1.cset = "setb"; - $1.mode = 7; - break; - } - if ($1.msglen == 0) { - $1.cset = "setb"; - $1.mode = 1; - break; - } - if ($1.msglen >= 2) { - $k[$j++] = $get($1.msg, 0) == $1.fn1; - $k[$j++] = 1; - $1.numsscr(); - var _5v = $k[--$j]; - var _5w = $k[--$j]; - $k[$j++] = _5v; - $k[$j++] = _5w; - $j--; - var _5x = $k[--$j]; - var _5y = $k[--$j]; - if (_5y && _5x >= 2) { - $1.cset = "setc"; - $1.mode = 4; - $1.i = 1; - break; - } - } - if ($get($1.msg, 0) == $1.fn1) { - $1.cset = "setb"; - $1.mode = 3; - $1.i = 1; - break; - } - if ($1.msglen >= 2) { - $k[$j++] = 0; - $1.numsscr(); - var _63 = $k[--$j]; - var _64 = $k[--$j]; - $k[$j++] = _63; - $k[$j++] = _64; - $j--; - var _65 = $k[--$j]; - if (_65 >= 2 && _65 % 2 == 0) { - $1.cset = "setc"; - $1.mode = 2; - break; - } - $k[$j++] = 0; - $1.numsscr(); - var _66 = $k[--$j]; - var _67 = $k[--$j]; - $k[$j++] = _66; - $k[$j++] = _67; - $j--; - var _68 = $k[--$j]; - if (_68 >= 3 && _68 % 2 == 1) { - $k[$j++] = $get($1.msg, 0); - $1.encb(); - $1.cset = "setc"; - $1.mode = 5; - $1.i = 1; - break; - } - var _6E = $get($1.setb, $get($1.msg, 0)) !== undefined; - $k[$j++] = _6E; - $k[$j++] = 1; - $1.numsscr(); - var _6F = $k[--$j]; - var _6G = $k[--$j]; - $k[$j++] = _6F; - $k[$j++] = _6G; - $j--; - var _6H = $k[--$j]; - var _6I = $k[--$j]; - if (_6I && (_6H >= 2 && _6H % 2 == 0)) { - $k[$j++] = $get($1.msg, 0); - $1.encb(); - $1.cset = "setc"; - $1.mode = 5; - $1.i = 1; - break; - } - var _6O = $get($1.setb, $get($1.msg, 0)) !== undefined; - $k[$j++] = _6O; - $k[$j++] = 1; - $1.numsscr(); - var _6P = $k[--$j]; - var _6Q = $k[--$j]; - $k[$j++] = _6P; - $k[$j++] = _6Q; - $j--; - var _6R = $k[--$j]; - var _6S = $k[--$j]; - if (_6S && (_6R >= 3 && _6R % 2 == 1)) { - $k[$j++] = $get($1.msg, 0); - $1.encb(); - $k[$j++] = $get($1.msg, 1); - $1.encb(); - $1.cset = "setc"; - $1.mode = 6; - $1.i = 2; - break; - } - var _6a = $get($1.setb, $get($1.msg, 0)) !== undefined; - var _6e = $get($1.setb, $get($1.msg, 1)) !== undefined; - $k[$j++] = _6a && _6e; - $k[$j++] = 2; - $1.numsscr(); - var _6f = $k[--$j]; - var _6g = $k[--$j]; - $k[$j++] = _6f; - $k[$j++] = _6g; - $j--; - var _6h = $k[--$j]; - var _6i = $k[--$j]; - if (_6i && (_6h >= 2 && _6h % 2 == 0)) { - $k[$j++] = $get($1.msg, 0); - $1.encb(); - $k[$j++] = $get($1.msg, 1); - $1.encb(); - $1.cset = "setc"; - $1.mode = 6; - $1.i = 2; - break; - } - } - $k[$j++] = 0; - $1.abeforeb(); - if ($k[--$j]) { - $1.cset = "seta"; - $1.mode = 0; - break; - } - $1.cset = "setb"; - $1.mode = 1; - break; - } - for (;;) { - if ($1.i == $1.msglen) { - break; - } - $k[$j++] = $1.i; - $1.numsscr(); - $1.nums = $k[--$j]; - $1.nchars = $k[--$j]; - for (;;) { - if ($eq($1.cset, "seta")) { - if ($1.i < $1.msglen - 1) { - $k[$j++] = $get($1.msg, $1.i); - $1.bnota(); - $k[$j++] = $1.i + 1; - $1.abeforeb(); - var _70 = $k[--$j]; - var _71 = $k[--$j]; - if (_71 && _70) { - $k[$j++] = $1.sb1; - $1.enca(); - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $1.i = $1.i + 1; - break; - } - } - if ($1.i < $1.msglen - 2) { - $k[$j++] = $get($1.msg, $1.i); - $1.bnota(); - $k[$j++] = $get($1.msg, $1.i + 1); - $1.bnota(); - var _7F = $k[--$j]; - var _7G = $k[--$j]; - $k[$j++] = $an(_7G, _7F); - $k[$j++] = $1.i + 2; - $1.abeforeb(); - var _7I = $k[--$j]; - var _7J = $k[--$j]; - if (_7J && _7I) { - $k[$j++] = $1.sb2; - $1.enca(); - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $k[$j++] = $get($1.msg, $1.i + 1); - $1.encb(); - $1.i = $1.i + 2; - break; - } - } - $k[$j++] = $get($1.msg, $1.i); - $1.bnota(); - if ($k[--$j]) { - $k[$j++] = $1.swb; - $1.enca(); - $1.cset = "setb"; - break; - } - if ($1.i < $1.msglen - 4) { - var _7e = $get($1.seta, $get($1.msg, $1.i + 4)) !== undefined; - if ($1.nums == 4 && _7e) { - $k[$j++] = $1.sc2; - $1.enca(); - for (var _7g = 0, _7h = 2; _7g < _7h; _7g++) { - if ($get($1.msg, $1.i) == $1.fn1) { - $k[$j++] = $1.fn1; - $1.encc(); - $1.i = $1.i + 1; - } else { - $k[$j++] = $geti($1.msg, $1.i, 2); - $1.encc(); - $1.i = $1.i + 2; - } - } - break; - } - } - if ($1.i < $1.msglen - 6) { - var _7z = $get($1.seta, $get($1.msg, $1.i + 6)) !== undefined; - if ($1.nums == 6 && _7z) { - $k[$j++] = $1.sc3; - $1.enca(); - for (var _81 = 0, _82 = 3; _81 < _82; _81++) { - if ($get($1.msg, $1.i) == $1.fn1) { - $k[$j++] = $1.fn1; - $1.encc(); - $1.i = $1.i + 1; - } else { - $k[$j++] = $geti($1.msg, $1.i, 2); - $1.encc(); - $1.i = $1.i + 2; - } - } - break; - } - } - if ($1.nums >= 4 && $1.nums % 2 == 0) { - $k[$j++] = $1.swc; - $1.enca(); - $1.cset = "setc"; - break; - } - $k[$j++] = $get($1.msg, $1.i); - $1.enca(); - $1.i = $1.i + 1; - break; - } - if ($eq($1.cset, "setb")) { - if ($1.i < $1.msglen - 1) { - $k[$j++] = $get($1.msg, $1.i); - $1.anotb(); - $k[$j++] = $1.i + 1; - $1.bbeforea(); - var _8R = $k[--$j]; - var _8S = $k[--$j]; - if (_8S && _8R) { - $k[$j++] = $1.sa1; - $1.encb(); - $k[$j++] = $get($1.msg, $1.i); - $1.enca(); - $1.i = $1.i + 1; - break; - } - } - if ($1.i < $1.msglen - 2) { - $k[$j++] = $get($1.msg, $1.i); - $1.anotb(); - $k[$j++] = $get($1.msg, $1.i + 1); - $1.anotb(); - var _8g = $k[--$j]; - var _8h = $k[--$j]; - $k[$j++] = $an(_8h, _8g); - $k[$j++] = $1.i + 2; - $1.bbeforea(); - var _8j = $k[--$j]; - var _8k = $k[--$j]; - if (_8k && _8j) { - $k[$j++] = $1.sa2; - $1.encb(); - $k[$j++] = $get($1.msg, $1.i); - $1.enca(); - $k[$j++] = $get($1.msg, $1.i + 1); - $1.enca(); - $1.i = $1.i + 2; - break; - } - } - $k[$j++] = $get($1.msg, $1.i); - $1.anotb(); - if ($k[--$j]) { - $k[$j++] = $1.swa; - $1.encb(); - $1.cset = "seta"; - break; - } - if ($1.i < $1.msglen - 4) { - var _95 = $get($1.setb, $get($1.msg, $1.i + 4)) !== undefined; - if ($1.nums == 4 && _95) { - $k[$j++] = $1.sc2; - $1.encb(); - for (var _97 = 0, _98 = 2; _97 < _98; _97++) { - if ($get($1.msg, $1.i) == $1.fn1) { - $k[$j++] = $1.fn1; - $1.encc(); - $1.i = $1.i + 1; - } else { - $k[$j++] = $geti($1.msg, $1.i, 2); - $1.encc(); - $1.i = $1.i + 2; - } - } - break; - } - } - if ($1.i < $1.msglen - 6) { - var _9Q = $get($1.setb, $get($1.msg, $1.i + 6)) !== undefined; - if ($1.nums == 6 && _9Q) { - $k[$j++] = $1.sc3; - $1.encb(); - for (var _9S = 0, _9T = 3; _9S < _9T; _9S++) { - if ($get($1.msg, $1.i) == $1.fn1) { - $k[$j++] = $1.fn1; - $1.encc(); - $1.i = $1.i + 1; - } else { - $k[$j++] = $geti($1.msg, $1.i, 2); - $1.encc(); - $1.i = $1.i + 2; - } - } - break; - } - } - if ($1.nums >= 4 && $1.nums % 2 == 0) { - $k[$j++] = $1.swc; - $1.encb(); - $1.cset = "setc"; - break; - } - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $1.i = $1.i + 1; - break; - } - if ($eq($1.cset, "setc")) { - if ($1.nums >= 2) { - if ($get($1.msg, $1.i) == $1.fn1) { - $k[$j++] = $1.fn1; - $1.encc(); - $1.i = $1.i + 1; - } else { - $k[$j++] = $geti($1.msg, $1.i, 2); - $1.encc(); - $1.i = $1.i + 2; - } - break; - } - if ($1.i < $1.msglen - 1) { - var _A3 = $get($1.setb, $get($1.msg, $1.i)) !== undefined; - $k[$j++] = _A3; - $k[$j++] = $1.i + 1; - $1.numsscr(); - var _A5 = $k[--$j]; - var _A6 = $k[--$j]; - $k[$j++] = _A5; - $k[$j++] = _A6; - $j--; - var _A7 = $k[--$j]; - var _A8 = $k[--$j]; - if (_A8 && (_A7 >= 2 && _A7 % 2 == 0)) { - $k[$j++] = $1.sb1; - $1.encc(); - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $1.i = $1.i + 1; - break; - } - } - if ($1.i < $1.msglen - 1) { - var _AK = $get($1.setb, $get($1.msg, $1.i)) !== undefined; - $k[$j++] = _AK; - $k[$j++] = $1.i + 1; - $1.numsscr(); - var _AM = $k[--$j]; - var _AN = $k[--$j]; - $k[$j++] = _AM; - $k[$j++] = _AN; - $j--; - var _AO = $k[--$j]; - var _AP = $k[--$j]; - if (_AP && (_AO >= 3 && _AO % 2 == 1)) { - $k[$j++] = $1.sb2; - $1.encc(); - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $k[$j++] = $get($1.msg, $1.i + 1); - $1.encb(); - $1.i = $1.i + 2; - break; - } - } - if ($1.i < $1.msglen - 2) { - var _Ae = $get($1.setb, $get($1.msg, $1.i)) !== undefined; - var _Aj = $get($1.setb, $get($1.msg, $1.i + 1)) !== undefined; - $k[$j++] = _Ae && _Aj; - $k[$j++] = $1.i + 2; - $1.numsscr(); - var _Al = $k[--$j]; - var _Am = $k[--$j]; - $k[$j++] = _Al; - $k[$j++] = _Am; - $j--; - var _An = $k[--$j]; - var _Ao = $k[--$j]; - if (_Ao && (_An >= 2 && _An % 2 == 0)) { - $k[$j++] = $1.sb2; - $1.encc(); - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $k[$j++] = $get($1.msg, $1.i + 1); - $1.encb(); - $1.i = $1.i + 2; - break; - } - } - if ($1.i < $1.msglen - 3) { - var _B3 = $get($1.setb, $get($1.msg, $1.i)) !== undefined; - var _B8 = $get($1.setb, $get($1.msg, $1.i + 1)) !== undefined; - $k[$j++] = _B3 && _B8; - $k[$j++] = $1.i + 2; - $1.numsscr(); - var _BA = $k[--$j]; - var _BB = $k[--$j]; - $k[$j++] = _BA; - $k[$j++] = _BB; - $j--; - var _BC = $k[--$j]; - var _BD = $k[--$j]; - if (_BD && (_BC >= 3 && _BC % 2 == 1)) { - $k[$j++] = $1.sb3; - $1.encc(); - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $k[$j++] = $get($1.msg, $1.i + 1); - $1.encb(); - $k[$j++] = $get($1.msg, $1.i + 2); - $1.encb(); - $1.i = $1.i + 3; - break; - } - } - if ($1.i < $1.msglen - 3) { - var _BV = $get($1.setb, $get($1.msg, $1.i)) !== undefined; - var _Ba = $get($1.setb, $get($1.msg, $1.i + 1)) !== undefined; - var _Bf = $get($1.setb, $get($1.msg, $1.i + 2)) !== undefined; - $k[$j++] = _BV && _Ba && _Bf; - $k[$j++] = $1.i + 3; - $1.numsscr(); - var _Bh = $k[--$j]; - var _Bi = $k[--$j]; - $k[$j++] = _Bh; - $k[$j++] = _Bi; - $j--; - var _Bj = $k[--$j]; - var _Bk = $k[--$j]; - if (_Bk && (_Bj >= 2 && _Bj % 2 == 0)) { - $k[$j++] = $1.sb3; - $1.encc(); - $k[$j++] = $get($1.msg, $1.i); - $1.encb(); - $k[$j++] = $get($1.msg, $1.i + 1); - $1.encb(); - $k[$j++] = $get($1.msg, $1.i + 2); - $1.encb(); - $1.i = $1.i + 3; - break; - } - } - $k[$j++] = $1.i; - $1.abeforeb(); - if ($k[--$j]) { - $k[$j++] = $1.swa; - $1.encc(); - $1.cset = "seta"; - break; - } - $k[$j++] = $1.swb; - $1.encc(); - $1.cset = "setb"; - break; - } - break; - } - } - $1.cws = $geti($1.cws, 0, $1.j); - } - $1.metrics = $a([ $a([ 2, 7 ]), $a([ 3, 12 ]), $a([ 4, 17 ]), $a([ 5, 22 ]), $a([ 6, 27 ]), $a([ 7, 32 ]), $a([ 8, 37 ]), $a([ 9, 42 ]), $a([ 10, 47 ]), $a([ 11, 52 ]), $a([ 12, 57 ]), $a([ 13, 62 ]), $a([ 14, 67 ]), $a([ 15, 72 ]), $a([ 16, 77 ]) ]); - $1.urows = $1.rows; - $1.i = 0; - for (;;) { - $1.m = $get($1.metrics, $1.i); - $1.r = $get($1.m, 0); - $1.dcws = $get($1.m, 1); - $1.okay = true; - if ($1.urows != 0 && $1.urows != $1.r) { - $1.okay = false; - } - if ($1.cws.length > $1.dcws) { - $1.okay = false; - } - if ($1.okay) { - break; - } - $1.i = $1.i + 1; - } - $k[$j++] = Infinity; - $aload($1.cws); - for (var _Cb = 0, _Cc = $f($1.dcws - $1.cws.length); _Cb < _Cc; _Cb++) { - $k[$j++] = 103; - } - $1.cws = $a(); - $k[$j++] = Infinity; - $k[$j++] = $f($f($1.r - 2) * 7 + $1.mode); - $aload($1.cws); - $1.cws = $a(); - $k[$j++] = 0; - for (var _Ck = 0, _Cj = $1.dcws; _Ck <= _Cj; _Ck += 1) { - var _Cn = $k[--$j]; - $k[$j++] = $f(_Cn + (_Ck + 2) * $get($1.cws, _Ck)); - } - $1.c1 = $k[--$j] % 107; - $k[$j++] = 0; - for (var _Cr = 0, _Cq = $1.dcws; _Cr <= _Cq; _Cr += 1) { - var _Cu = $k[--$j]; - $k[$j++] = $f(_Cu + (_Cr + 1) * $get($1.cws, _Cr)); - } - $1.c2 = $f($k[--$j] + $1.c1 * $f($1.dcws + 2)) % 107; - $k[$j++] = Infinity; - $aload($1.cws); - $k[$j++] = $1.c1; - $k[$j++] = $1.c2; - $1.cws = $a(); - $1.encs = $a([ "212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "211214", "211232", "211133" ]); - $1.startencs = $a([ "3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112" ]); - $1.stopencsodd = $a([ "3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411" ]); - $1.stopencseven = $a([ "2122", "1411", "1132", "1231", "1114", "3112", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411", "3211", "2221" ]); - if ($1.pos == -1 || ~~($1.pos / 10) % 2 == 1) { - $1.stopencs = $1.stopencsodd; - } else { - $1.stopencs = $1.stopencseven; - } - $1.rowbits = $a($1.r); - for (var _DE = 0, _DD = $f($1.r - 1); _DE <= _DD; _DE += 1) { - $1.i = _DE; - $k[$j++] = Infinity; - $k[$j++] = 10; - $forall($get($1.startencs, $1.i), function() { - var _DI = $k[--$j]; - $k[$j++] = $f(_DI - 48); - }); - var _DL = $geti($1.cws, $1.i * 5, 5); - $k[$j++] = 1; - for (var _DM = 0, _DN = _DL.length; _DM < _DN; _DM++) { - $forall($get($1.encs, $get(_DL, _DM)), function() { - var _DR = $k[--$j]; - $k[$j++] = $f(_DR - 48); - }); - } - $forall($get($1.stopencs, $1.i), function() { - var _DV = $k[--$j]; - $k[$j++] = $f(_DV - 48); - }); - $k[$j++] = 1; - $1.sbs = $a(); - $k[$j++] = Infinity; - var _DX = $1.sbs; - $k[$j++] = 1; - for (var _DY = 0, _DZ = _DX.length; _DY < _DZ; _DY++) { - var _Db = $k[--$j]; - var _Dc = _Db == 0 ? 1 : 0; - $k[$j++] = _Db; - for (var _Dd = 0, _De = $get(_DX, _DY); _Dd < _De; _Dd++) { - $k[$j++] = _Dc; - } - } - $astore($a($counttomark() - 1)); - var _Dh = $k[--$j]; - var _Di = $k[--$j]; - $k[$j++] = _Dh; - $k[$j++] = _Di; - $j--; - var _Dj = $k[--$j]; - var _Dk = $k[--$j]; - $k[$j++] = _Dj; - $k[$j++] = _Dk; - $j--; - $put($1.rowbits, $1.i, $k[--$j]); - } - $k[$j++] = Infinity; - for (var _Dp = 0, _Dq = 81 * $1.sepheight; _Dp < _Dq; _Dp++) { - $k[$j++] = 1; - } - for (var _Dt = 0, _Ds = $f($1.r - 2); _Dt <= _Ds; _Dt += 1) { - $1.i = _Dt; - for (var _Dv = 0, _Dw = $1.rowheight; _Dv < _Dw; _Dv++) { - $aload($get($1.rowbits, $1.i)); - } - for (var _E1 = 0, _E2 = $1.sepheight; _E1 < _E2; _E1++) { - for (var _E3 = 0, _E4 = 10; _E3 < _E4; _E3++) { - $k[$j++] = 0; - } - for (var _E5 = 0, _E6 = 70; _E5 < _E6; _E5++) { - $k[$j++] = 1; - } - $k[$j++] = 0; - } - } - for (var _E8 = 0, _E9 = $1.rowheight; _E8 < _E9; _E8++) { - $aload($get($1.rowbits, $f($1.r - 1))); - } - for (var _EE = 0, _EF = 81 * $1.sepheight; _EE < _EF; _EE++) { - $k[$j++] = 1; - } - $1.pixs = $a(); - var _EL = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", 81 ], [ "pixy", ~~($1.pixs.length / 81) ], [ "height", ~~($1.pixs.length / 81) / 72 ], [ "width", 81 / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _EL; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var _5e = $k[--$j]; //#12970 + $k[$j++] = $lt($get($1.nextbnota, _5e), $get($1.nextanotb, _5e)); //#12970 + }; //#12970 + $1.cws = $a(($1.barcode.length * 2) + 3); //#12972 + $1.i = 0; //#12975 + $1.j = 0; //#12975 + for (;;) { //#13065 + if ($1.pos != -1) { //#12986 + $put($1.cws, 0, (~~($1.pos / 10)) - 1); //#12980 + $put($1.cws, 1, ($1.pos % 10) - 1); //#12981 + $1.j = 2; //#12982 + $1.cset = "setb"; //#12983 + $1.mode = 7; //#12984 + break; //#12985 + } //#12985 + if ($1.msglen == 0) { //#12992 + $1.cset = "setb"; //#12989 + $1.mode = 1; //#12990 + break; //#12991 + } //#12991 + if ($1.msglen >= 2) { //#13001 + $k[$j++] = $get($1.msg, 0) == $1.fn1; //#12995 + $k[$j++] = 1; //#12995 + $1.numsscr(); //#12995 + var _5v = $k[--$j]; //#12995 + var _5w = $k[--$j]; //#12995 + $k[$j++] = _5v; //#12995 + $k[$j++] = _5w; //#12995 + $j--; //#12995 + var _5x = $k[--$j]; //#12995 + var _5y = $k[--$j]; //#12995 + if (_5y && (_5x >= 2)) { //#13000 + $1.cset = "setc"; //#12996 + $1.mode = 4; //#12997 + $1.i = 1; //#12998 + break; //#12999 + } //#12999 + } //#12999 + if ($get($1.msg, 0) == $1.fn1) { //#13008 + $1.cset = "setb"; //#13004 + $1.mode = 3; //#13005 + $1.i = 1; //#13006 + break; //#13007 + } //#13007 + if ($1.msglen >= 2) { //#13054 + $k[$j++] = 0; //#13011 + $1.numsscr(); //#13011 + var _63 = $k[--$j]; //#13011 + var _64 = $k[--$j]; //#13011 + $k[$j++] = _63; //#13011 + $k[$j++] = _64; //#13011 + $j--; //#13011 + var _65 = $k[--$j]; //#13011 + if ((_65 >= 2) && ((_65 % 2) == 0)) { //#13015 + $1.cset = "setc"; //#13012 + $1.mode = 2; //#13013 + break; //#13014 + } //#13014 + $k[$j++] = 0; //#13017 + $1.numsscr(); //#13017 + var _66 = $k[--$j]; //#13017 + var _67 = $k[--$j]; //#13017 + $k[$j++] = _66; //#13017 + $k[$j++] = _67; //#13017 + $j--; //#13017 + var _68 = $k[--$j]; //#13017 + if ((_68 >= 3) && ((_68 % 2) == 1)) { //#13023 + $k[$j++] = $get($1.msg, 0); //#13018 + $1.encb(); //#13018 + $1.cset = "setc"; //#13019 + $1.mode = 5; //#13020 + $1.i = 1; //#13021 + break; //#13022 + } //#13022 + var _6E = $get($1.setb, $get($1.msg, 0)) !== undefined; //#13025 + $k[$j++] = _6E; //#13026 + $k[$j++] = 1; //#13026 + $1.numsscr(); //#13026 + var _6F = $k[--$j]; //#13026 + var _6G = $k[--$j]; //#13026 + $k[$j++] = _6F; //#13026 + $k[$j++] = _6G; //#13026 + $j--; //#13026 + var _6H = $k[--$j]; //#13026 + var _6I = $k[--$j]; //#13026 + if (_6I && ((_6H >= 2) && ((_6H % 2) == 0))) { //#13032 + $k[$j++] = $get($1.msg, 0); //#13027 + $1.encb(); //#13027 + $1.cset = "setc"; //#13028 + $1.mode = 5; //#13029 + $1.i = 1; //#13030 + break; //#13031 + } //#13031 + var _6O = $get($1.setb, $get($1.msg, 0)) !== undefined; //#13034 + $k[$j++] = _6O; //#13035 + $k[$j++] = 1; //#13035 + $1.numsscr(); //#13035 + var _6P = $k[--$j]; //#13035 + var _6Q = $k[--$j]; //#13035 + $k[$j++] = _6P; //#13035 + $k[$j++] = _6Q; //#13035 + $j--; //#13035 + var _6R = $k[--$j]; //#13035 + var _6S = $k[--$j]; //#13035 + if (_6S && ((_6R >= 3) && ((_6R % 2) == 1))) { //#13042 + $k[$j++] = $get($1.msg, 0); //#13036 + $1.encb(); //#13036 + $k[$j++] = $get($1.msg, 1); //#13037 + $1.encb(); //#13037 + $1.cset = "setc"; //#13038 + $1.mode = 6; //#13039 + $1.i = 2; //#13040 + break; //#13041 + } //#13041 + var _6a = $get($1.setb, $get($1.msg, 0)) !== undefined; //#13044 + var _6e = $get($1.setb, $get($1.msg, 1)) !== undefined; //#13045 + $k[$j++] = _6a && _6e; //#13046 + $k[$j++] = 2; //#13046 + $1.numsscr(); //#13046 + var _6f = $k[--$j]; //#13046 + var _6g = $k[--$j]; //#13046 + $k[$j++] = _6f; //#13046 + $k[$j++] = _6g; //#13046 + $j--; //#13046 + var _6h = $k[--$j]; //#13046 + var _6i = $k[--$j]; //#13046 + if (_6i && ((_6h >= 2) && ((_6h % 2) == 0))) { //#13053 + $k[$j++] = $get($1.msg, 0); //#13047 + $1.encb(); //#13047 + $k[$j++] = $get($1.msg, 1); //#13048 + $1.encb(); //#13048 + $1.cset = "setc"; //#13049 + $1.mode = 6; //#13050 + $1.i = 2; //#13051 + break; //#13052 + } //#13052 + } //#13052 + $k[$j++] = 0; //#13056 + $1.abeforeb(); //#13056 + if ($k[--$j]) { //#13060 + $1.cset = "seta"; //#13057 + $1.mode = 0; //#13058 + break; //#13059 + } //#13059 + $1.cset = "setb"; //#13062 + $1.mode = 1; //#13063 + break; //#13064 + } //#13064 + for (;;) { //#13308 + if ($1.i == $1.msglen) { //#13068 + break; //#13068 + } //#13068 + $k[$j++] = $1.i; //#13070 + $1.numsscr(); //#13070 + $1.nums = $k[--$j]; //#13070 + $1.nchars = $k[--$j]; //#13070 + for (;;) { //#13306 + if ($eq($1.cset, "seta")) { //#13147 + if ($1.i < ($1.msglen - 1)) { //#13084 + $k[$j++] = $get($1.msg, $1.i); //#13077 + $1.bnota(); //#13077 + $k[$j++] = $1.i + 1; //#13078 + $1.abeforeb(); //#13078 + var _70 = $k[--$j]; //#13078 + var _71 = $k[--$j]; //#13078 + if ((_71 && _70)) { //#13083 + $k[$j++] = $1.sb1; //#13079 + $1.enca(); //#13079 + $k[$j++] = $get($1.msg, $1.i); //#13080 + $1.encb(); //#13080 + $1.i = $1.i + 1; //#13081 + break; //#13082 + } //#13082 + } //#13082 + if ($1.i < ($1.msglen - 2)) { //#13096 + $k[$j++] = $get($1.msg, $1.i); //#13087 + $1.bnota(); //#13087 + $k[$j++] = $get($1.msg, $1.i + 1); //#13088 + $1.bnota(); //#13088 + var _7F = $k[--$j]; //#13088 + var _7G = $k[--$j]; //#13088 + $k[$j++] = $an(_7G, _7F); //#13089 + $k[$j++] = $1.i + 2; //#13089 + $1.abeforeb(); //#13089 + var _7I = $k[--$j]; //#13089 + var _7J = $k[--$j]; //#13089 + if ((_7J && _7I)) { //#13095 + $k[$j++] = $1.sb2; //#13090 + $1.enca(); //#13090 + $k[$j++] = $get($1.msg, $1.i); //#13091 + $1.encb(); //#13091 + $k[$j++] = $get($1.msg, $1.i + 1); //#13092 + $1.encb(); //#13092 + $1.i = $1.i + 2; //#13093 + break; //#13094 + } //#13094 + } //#13094 + $k[$j++] = $get($1.msg, $1.i); //#13098 + $1.bnota(); //#13098 + if ($k[--$j]) { //#13102 + $k[$j++] = $1.swb; //#13099 + $1.enca(); //#13099 + $1.cset = "setb"; //#13100 + break; //#13101 + } //#13101 + if ($1.i < ($1.msglen - 4)) { //#13119 + var _7e = $get($1.seta, $get($1.msg, $1.i + 4)) !== undefined; //#13106 + if (($1.nums == 4) && _7e) { //#13118 + $k[$j++] = $1.sc2; //#13107 + $1.enca(); //#13107 + for (var _7g = 0, _7h = 2; _7g < _7h; _7g++) { //#13116 + if ($get($1.msg, $1.i) == $1.fn1) { //#13114 + $k[$j++] = $1.fn1; //#13110 + $1.encc(); //#13110 + $1.i = $1.i + 1; //#13111 + } else { //#13114 + $k[$j++] = $geti($1.msg, $1.i, 2); //#13113 + $1.encc(); //#13113 + $1.i = $1.i + 2; //#13114 + } //#13114 + } //#13114 + break; //#13117 + } //#13117 + } //#13117 + if ($1.i < ($1.msglen - 6)) { //#13136 + var _7z = $get($1.seta, $get($1.msg, $1.i + 6)) !== undefined; //#13123 + if (($1.nums == 6) && _7z) { //#13135 + $k[$j++] = $1.sc3; //#13124 + $1.enca(); //#13124 + for (var _81 = 0, _82 = 3; _81 < _82; _81++) { //#13133 + if ($get($1.msg, $1.i) == $1.fn1) { //#13131 + $k[$j++] = $1.fn1; //#13127 + $1.encc(); //#13127 + $1.i = $1.i + 1; //#13128 + } else { //#13131 + $k[$j++] = $geti($1.msg, $1.i, 2); //#13130 + $1.encc(); //#13130 + $1.i = $1.i + 2; //#13131 + } //#13131 + } //#13131 + break; //#13134 + } //#13134 + } //#13134 + if (($1.nums >= 4) && (($1.nums % 2) == 0)) { //#13142 + $k[$j++] = $1.swc; //#13139 + $1.enca(); //#13139 + $1.cset = "setc"; //#13140 + break; //#13141 + } //#13141 + $k[$j++] = $get($1.msg, $1.i); //#13144 + $1.enca(); //#13144 + $1.i = $1.i + 1; //#13145 + break; //#13146 + } //#13146 + if ($eq($1.cset, "setb")) { //#13221 + if ($1.i < ($1.msglen - 1)) { //#13158 + $k[$j++] = $get($1.msg, $1.i); //#13151 + $1.anotb(); //#13151 + $k[$j++] = $1.i + 1; //#13152 + $1.bbeforea(); //#13152 + var _8R = $k[--$j]; //#13152 + var _8S = $k[--$j]; //#13152 + if ((_8S && _8R)) { //#13157 + $k[$j++] = $1.sa1; //#13153 + $1.encb(); //#13153 + $k[$j++] = $get($1.msg, $1.i); //#13154 + $1.enca(); //#13154 + $1.i = $1.i + 1; //#13155 + break; //#13156 + } //#13156 + } //#13156 + if ($1.i < ($1.msglen - 2)) { //#13170 + $k[$j++] = $get($1.msg, $1.i); //#13161 + $1.anotb(); //#13161 + $k[$j++] = $get($1.msg, $1.i + 1); //#13162 + $1.anotb(); //#13162 + var _8g = $k[--$j]; //#13162 + var _8h = $k[--$j]; //#13162 + $k[$j++] = $an(_8h, _8g); //#13163 + $k[$j++] = $1.i + 2; //#13163 + $1.bbeforea(); //#13163 + var _8j = $k[--$j]; //#13163 + var _8k = $k[--$j]; //#13163 + if ((_8k && _8j)) { //#13169 + $k[$j++] = $1.sa2; //#13164 + $1.encb(); //#13164 + $k[$j++] = $get($1.msg, $1.i); //#13165 + $1.enca(); //#13165 + $k[$j++] = $get($1.msg, $1.i + 1); //#13166 + $1.enca(); //#13166 + $1.i = $1.i + 2; //#13167 + break; //#13168 + } //#13168 + } //#13168 + $k[$j++] = $get($1.msg, $1.i); //#13172 + $1.anotb(); //#13172 + if ($k[--$j]) { //#13176 + $k[$j++] = $1.swa; //#13173 + $1.encb(); //#13173 + $1.cset = "seta"; //#13174 + break; //#13175 + } //#13175 + if ($1.i < ($1.msglen - 4)) { //#13193 + var _95 = $get($1.setb, $get($1.msg, $1.i + 4)) !== undefined; //#13180 + if (($1.nums == 4) && _95) { //#13192 + $k[$j++] = $1.sc2; //#13181 + $1.encb(); //#13181 + for (var _97 = 0, _98 = 2; _97 < _98; _97++) { //#13190 + if ($get($1.msg, $1.i) == $1.fn1) { //#13188 + $k[$j++] = $1.fn1; //#13184 + $1.encc(); //#13184 + $1.i = $1.i + 1; //#13185 + } else { //#13188 + $k[$j++] = $geti($1.msg, $1.i, 2); //#13187 + $1.encc(); //#13187 + $1.i = $1.i + 2; //#13188 + } //#13188 + } //#13188 + break; //#13191 + } //#13191 + } //#13191 + if ($1.i < ($1.msglen - 6)) { //#13210 + var _9Q = $get($1.setb, $get($1.msg, $1.i + 6)) !== undefined; //#13197 + if (($1.nums == 6) && _9Q) { //#13209 + $k[$j++] = $1.sc3; //#13198 + $1.encb(); //#13198 + for (var _9S = 0, _9T = 3; _9S < _9T; _9S++) { //#13207 + if ($get($1.msg, $1.i) == $1.fn1) { //#13205 + $k[$j++] = $1.fn1; //#13201 + $1.encc(); //#13201 + $1.i = $1.i + 1; //#13202 + } else { //#13205 + $k[$j++] = $geti($1.msg, $1.i, 2); //#13204 + $1.encc(); //#13204 + $1.i = $1.i + 2; //#13205 + } //#13205 + } //#13205 + break; //#13208 + } //#13208 + } //#13208 + if (($1.nums >= 4) && (($1.nums % 2) == 0)) { //#13216 + $k[$j++] = $1.swc; //#13213 + $1.encb(); //#13213 + $1.cset = "setc"; //#13214 + break; //#13215 + } //#13215 + $k[$j++] = $get($1.msg, $1.i); //#13218 + $1.encb(); //#13218 + $1.i = $1.i + 1; //#13219 + break; //#13220 + } //#13220 + if ($eq($1.cset, "setc")) { //#13304 + if ($1.nums >= 2) { //#13233 + if ($get($1.msg, $1.i) == $1.fn1) { //#13230 + $k[$j++] = $1.fn1; //#13226 + $1.encc(); //#13226 + $1.i = $1.i + 1; //#13227 + } else { //#13230 + $k[$j++] = $geti($1.msg, $1.i, 2); //#13229 + $1.encc(); //#13229 + $1.i = $1.i + 2; //#13230 + } //#13230 + break; //#13232 + } //#13232 + if ($1.i < ($1.msglen - 1)) { //#13243 + var _A3 = $get($1.setb, $get($1.msg, $1.i)) !== undefined; //#13236 + $k[$j++] = _A3; //#13237 + $k[$j++] = $1.i + 1; //#13237 + $1.numsscr(); //#13237 + var _A5 = $k[--$j]; //#13237 + var _A6 = $k[--$j]; //#13237 + $k[$j++] = _A5; //#13237 + $k[$j++] = _A6; //#13237 + $j--; //#13237 + var _A7 = $k[--$j]; //#13237 + var _A8 = $k[--$j]; //#13237 + if (_A8 && ((_A7 >= 2) && ((_A7 % 2) == 0))) { //#13242 + $k[$j++] = $1.sb1; //#13238 + $1.encc(); //#13238 + $k[$j++] = $get($1.msg, $1.i); //#13239 + $1.encb(); //#13239 + $1.i = $1.i + 1; //#13240 + break; //#13241 + } //#13241 + } //#13241 + if ($1.i < ($1.msglen - 1)) { //#13254 + var _AK = $get($1.setb, $get($1.msg, $1.i)) !== undefined; //#13246 + $k[$j++] = _AK; //#13247 + $k[$j++] = $1.i + 1; //#13247 + $1.numsscr(); //#13247 + var _AM = $k[--$j]; //#13247 + var _AN = $k[--$j]; //#13247 + $k[$j++] = _AM; //#13247 + $k[$j++] = _AN; //#13247 + $j--; //#13247 + var _AO = $k[--$j]; //#13247 + var _AP = $k[--$j]; //#13247 + if (_AP && ((_AO >= 3) && ((_AO % 2) == 1))) { //#13253 + $k[$j++] = $1.sb2; //#13248 + $1.encc(); //#13248 + $k[$j++] = $get($1.msg, $1.i); //#13249 + $1.encb(); //#13249 + $k[$j++] = $get($1.msg, $1.i + 1); //#13250 + $1.encb(); //#13250 + $1.i = $1.i + 2; //#13251 + break; //#13252 + } //#13252 + } //#13252 + if ($1.i < ($1.msglen - 2)) { //#13266 + var _Ae = $get($1.setb, $get($1.msg, $1.i)) !== undefined; //#13257 + var _Aj = $get($1.setb, $get($1.msg, $1.i + 1)) !== undefined; //#13258 + $k[$j++] = _Ae && _Aj; //#13259 + $k[$j++] = $1.i + 2; //#13259 + $1.numsscr(); //#13259 + var _Al = $k[--$j]; //#13259 + var _Am = $k[--$j]; //#13259 + $k[$j++] = _Al; //#13259 + $k[$j++] = _Am; //#13259 + $j--; //#13259 + var _An = $k[--$j]; //#13259 + var _Ao = $k[--$j]; //#13259 + if (_Ao && ((_An >= 2) && ((_An % 2) == 0))) { //#13265 + $k[$j++] = $1.sb2; //#13260 + $1.encc(); //#13260 + $k[$j++] = $get($1.msg, $1.i); //#13261 + $1.encb(); //#13261 + $k[$j++] = $get($1.msg, $1.i + 1); //#13262 + $1.encb(); //#13262 + $1.i = $1.i + 2; //#13263 + break; //#13264 + } //#13264 + } //#13264 + if ($1.i < ($1.msglen - 3)) { //#13279 + var _B3 = $get($1.setb, $get($1.msg, $1.i)) !== undefined; //#13269 + var _B8 = $get($1.setb, $get($1.msg, $1.i + 1)) !== undefined; //#13270 + $k[$j++] = _B3 && _B8; //#13271 + $k[$j++] = $1.i + 2; //#13271 + $1.numsscr(); //#13271 + var _BA = $k[--$j]; //#13271 + var _BB = $k[--$j]; //#13271 + $k[$j++] = _BA; //#13271 + $k[$j++] = _BB; //#13271 + $j--; //#13271 + var _BC = $k[--$j]; //#13271 + var _BD = $k[--$j]; //#13271 + if (_BD && ((_BC >= 3) && ((_BC % 2) == 1))) { //#13278 + $k[$j++] = $1.sb3; //#13272 + $1.encc(); //#13272 + $k[$j++] = $get($1.msg, $1.i); //#13273 + $1.encb(); //#13273 + $k[$j++] = $get($1.msg, $1.i + 1); //#13274 + $1.encb(); //#13274 + $k[$j++] = $get($1.msg, $1.i + 2); //#13275 + $1.encb(); //#13275 + $1.i = $1.i + 3; //#13276 + break; //#13277 + } //#13277 + } //#13277 + if ($1.i < ($1.msglen - 3)) { //#13293 + var _BV = $get($1.setb, $get($1.msg, $1.i)) !== undefined; //#13282 + var _Ba = $get($1.setb, $get($1.msg, $1.i + 1)) !== undefined; //#13283 + var _Bf = $get($1.setb, $get($1.msg, $1.i + 2)) !== undefined; //#13284 + $k[$j++] = (_BV && _Ba) && _Bf; //#13285 + $k[$j++] = $1.i + 3; //#13285 + $1.numsscr(); //#13285 + var _Bh = $k[--$j]; //#13285 + var _Bi = $k[--$j]; //#13285 + $k[$j++] = _Bh; //#13285 + $k[$j++] = _Bi; //#13285 + $j--; //#13285 + var _Bj = $k[--$j]; //#13285 + var _Bk = $k[--$j]; //#13285 + if (_Bk && ((_Bj >= 2) && ((_Bj % 2) == 0))) { //#13292 + $k[$j++] = $1.sb3; //#13286 + $1.encc(); //#13286 + $k[$j++] = $get($1.msg, $1.i); //#13287 + $1.encb(); //#13287 + $k[$j++] = $get($1.msg, $1.i + 1); //#13288 + $1.encb(); //#13288 + $k[$j++] = $get($1.msg, $1.i + 2); //#13289 + $1.encb(); //#13289 + $1.i = $1.i + 3; //#13290 + break; //#13291 + } //#13291 + } //#13291 + $k[$j++] = $1.i; //#13295 + $1.abeforeb(); //#13295 + if ($k[--$j]) { //#13299 + $k[$j++] = $1.swa; //#13296 + $1.encc(); //#13296 + $1.cset = "seta"; //#13297 + break; //#13298 + } //#13298 + $k[$j++] = $1.swb; //#13301 + $1.encc(); //#13301 + $1.cset = "setb"; //#13302 + break; //#13303 + } //#13303 + break; //#13305 + } //#13305 + } //#13305 + $1.cws = $geti($1.cws, 0, $1.j); //#13309 + } //#13309 + $1.metrics = $a([$a([2, 7]), $a([3, 12]), $a([4, 17]), $a([5, 22]), $a([6, 27]), $a([7, 32]), $a([8, 37]), $a([9, 42]), $a([10, 47]), $a([11, 52]), $a([12, 57]), $a([13, 62]), $a([14, 67]), $a([15, 72]), $a([16, 77])]); //#13330 + $1.urows = $1.rows; //#13333 + $1.i = 0; //#13334 + for (;;) { //#13344 + $1.m = $get($1.metrics, $1.i); //#13336 + $1.r = $get($1.m, 0); //#13337 + $1.dcws = $get($1.m, 1); //#13338 + $1.okay = true; //#13339 + if (($1.urows != 0) && ($1.urows != $1.r)) { //#13340 + $1.okay = false; //#13340 + } //#13340 + if ($1.cws.length > $1.dcws) { //#13341 + $1.okay = false; //#13341 + } //#13341 + if ($1.okay) { //#13342 + break; //#13342 + } //#13342 + $1.i = $1.i + 1; //#13343 + } //#13343 + $k[$j++] = Infinity; //#13347 + $aload($1.cws); //#13347 + for (var _Cb = 0, _Cc = $f($1.dcws - $1.cws.length); _Cb < _Cc; _Cb++) { //#13347 + $k[$j++] = 103; //#13347 + } //#13347 + $1.cws = $a(); //#13347 + $k[$j++] = Infinity; //#13350 + $k[$j++] = $f(($f($1.r - 2) * 7) + $1.mode); //#13350 + $aload($1.cws); //#13350 + $1.cws = $a(); //#13350 + $k[$j++] = 0; //#13353 + for (var _Ck = 0, _Cj = $1.dcws; _Ck <= _Cj; _Ck += 1) { //#13353 + var _Cn = $k[--$j]; //#13353 + $k[$j++] = $f(_Cn + ((_Ck + 2) * $get($1.cws, _Ck))); //#13353 + } //#13353 + $1.c1 = $k[--$j] % 107; //#13354 + $k[$j++] = 0; //#13355 + for (var _Cr = 0, _Cq = $1.dcws; _Cr <= _Cq; _Cr += 1) { //#13355 + var _Cu = $k[--$j]; //#13355 + $k[$j++] = $f(_Cu + ((_Cr + 1) * $get($1.cws, _Cr))); //#13355 + } //#13355 + $1.c2 = ($f($k[--$j] + ($1.c1 * $f($1.dcws + 2)))) % 107; //#13356 + $k[$j++] = Infinity; //#13357 + $aload($1.cws); //#13357 + $k[$j++] = $1.c1; //#13357 + $k[$j++] = $1.c2; //#13357 + $1.cws = $a(); //#13357 + $1.encs = $a(["212222", "222122", "222221", "121223", "121322", "131222", "122213", "122312", "132212", "221213", "221312", "231212", "112232", "122132", "122231", "113222", "123122", "123221", "223211", "221132", "221231", "213212", "223112", "312131", "311222", "321122", "321221", "312212", "322112", "322211", "212123", "212321", "232121", "111323", "131123", "131321", "112313", "132113", "132311", "211313", "231113", "231311", "112133", "112331", "132131", "113123", "113321", "133121", "313121", "211331", "231131", "213113", "213311", "213131", "311123", "311321", "331121", "312113", "312311", "332111", "314111", "221411", "431111", "111224", "111422", "121124", "121421", "141122", "141221", "112214", "112412", "122114", "122411", "142112", "142211", "241211", "221114", "413111", "241112", "134111", "111242", "121142", "121241", "114212", "124112", "124211", "411212", "421112", "421211", "212141", "214121", "412121", "111143", "111341", "131141", "114113", "114311", "411113", "411311", "113141", "114131", "311141", "411131", "211412", "211214", "211232", "211133"]); //#13377 + $1.startencs = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112"]); //#13383 + $1.stopencsodd = $a(["3211", "2221", "2122", "1411", "1132", "1231", "1114", "3112", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411"]); //#13387 + $1.stopencseven = $a(["2122", "1411", "1132", "1231", "1114", "3112", "1132", "1231", "1114", "3112", "3211", "2221", "2122", "1411", "3211", "2221"]); //#13391 + if (($1.pos == -1) || (((~~($1.pos / 10)) % 2) == 1)) { //#13395 + $1.stopencs = $1.stopencsodd; //#13393 + } else { //#13395 + $1.stopencs = $1.stopencseven; //#13395 + } //#13395 + $1.rowbits = $a($1.r); //#13399 + for (var _DE = 0, _DD = $f($1.r - 1); _DE <= _DD; _DE += 1) { //#13416 + $1.i = _DE; //#13401 + $k[$j++] = Infinity; //#13410 + $k[$j++] = 10; //#13404 + $forall($get($1.startencs, $1.i), function() { //#13404 + var _DI = $k[--$j]; //#13404 + $k[$j++] = $f(_DI - 48); //#13404 + }); //#13404 + var _DL = $geti($1.cws, $1.i * 5, 5); //#13406 + $k[$j++] = 1; //#13408 + for (var _DM = 0, _DN = _DL.length; _DM < _DN; _DM++) { //#13408 + $forall($get($1.encs, $get(_DL, _DM)), function() { //#13407 + var _DR = $k[--$j]; //#13407 + $k[$j++] = $f(_DR - 48); //#13407 + }); //#13407 + } //#13407 + $forall($get($1.stopencs, $1.i), function() { //#13409 + var _DV = $k[--$j]; //#13409 + $k[$j++] = $f(_DV - 48); //#13409 + }); //#13409 + $k[$j++] = 1; //#13410 + $1.sbs = $a(); //#13410 + $k[$j++] = Infinity; //#13412 + var _DX = $1.sbs; //#13413 + $k[$j++] = 1; //#13413 + for (var _DY = 0, _DZ = _DX.length; _DY < _DZ; _DY++) { //#13413 + var _Db = $k[--$j]; //#13413 + var _Dc = (_Db == 0) ? 1 : 0; //#13413 + $k[$j++] = _Db; //#13413 + for (var _Dd = 0, _De = $get(_DX, _DY); _Dd < _De; _Dd++) { //#13413 + $k[$j++] = _Dc //#13413 + } //#13413 + } //#13413 + $astore($a($counttomark() - 1)); //#13414 + var _Dh = $k[--$j]; //#13414 + var _Di = $k[--$j]; //#13414 + $k[$j++] = _Dh; //#13414 + $k[$j++] = _Di; //#13414 + $j--; //#13414 + var _Dj = $k[--$j]; //#13414 + var _Dk = $k[--$j]; //#13414 + $k[$j++] = _Dj; //#13414 + $k[$j++] = _Dk; //#13414 + $j--; //#13414 + $put($1.rowbits, $1.i, $k[--$j]); //#13415 + } //#13415 + $k[$j++] = Infinity; //#13427 + for (var _Dp = 0, _Dq = 81 * $1.sepheight; _Dp < _Dq; _Dp++) { //#13420 + $k[$j++] = 1; //#13420 + } //#13420 + for (var _Dt = 0, _Ds = $f($1.r - 2); _Dt <= _Ds; _Dt += 1) { //#13425 + $1.i = _Dt; //#13422 + for (var _Dv = 0, _Dw = $1.rowheight; _Dv < _Dw; _Dv++) { //#13423 + $aload($get($1.rowbits, $1.i)); //#13423 + } //#13423 + for (var _E1 = 0, _E2 = $1.sepheight; _E1 < _E2; _E1++) { //#13424 + for (var _E3 = 0, _E4 = 10; _E3 < _E4; _E3++) { //#13424 + $k[$j++] = 0; //#13424 + } //#13424 + for (var _E5 = 0, _E6 = 70; _E5 < _E6; _E5++) { //#13424 + $k[$j++] = 1; //#13424 + } //#13424 + $k[$j++] = 0; //#13424 + } //#13424 + } //#13424 + for (var _E8 = 0, _E9 = $1.rowheight; _E8 < _E9; _E8++) { //#13426 + $aload($get($1.rowbits, $f($1.r - 1))); //#13426 + } //#13426 + for (var _EE = 0, _EF = 81 * $1.sepheight; _EE < _EF; _EE++) { //#13427 + $k[$j++] = 1; //#13427 + } //#13427 + $1.pixs = $a(); //#13427 + var _EL = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", 81], + ["pixy", ~~($1.pixs.length / 81)], + ["height", (~~($1.pixs.length / 81)) / 72], + ["width", 81 / 72], + ["opt", $1.options] + ]); //#13438 + $k[$j++] = _EL; //#13441 + if (!$1.dontdraw) { //#13441 + $0.renmatrix(); //#13441 + } //#13441 }; $0.code49 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.mode = -1; - $1.pos = -1; - $1.rows = 0; - $1.rowheight = 8; - $1.sepheight = 1; - $1.parse = false; - $1.parsefnc = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.mode = ~~$1.mode; - $1.pos = ~~$1.pos; - $1.rows = ~~$1.rows; - $1.rowheight = ~~$1.rowheight; - $1.sepheight = ~~$1.sepheight; - $1.s1 = -1; - $1.s2 = -2; - $1.fn1 = -3; - $1.fn2 = -4; - $1.fn3 = -5; - $1.ns = -6; - var _F = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "FNC1", $1.fn1 ], [ "FNC2", $1.fn2 ], [ "FNC3", $1.fn3 ] ]); - $1.fncvals = _F; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _I = $k[--$j]; - $1[$k[--$j]] = _I; - $1.msglen = $1.msg.length; - $1.charmap = $a([ "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "-", ".", " ", "$", "/", "+", "%", $1.s1, $1.s2, $1.fn1, $1.fn2, $1.fn3, $1.ns ]); - $1.charvals = new Map(); - for (var _S = 0; _S <= 48; _S += 1) { - $1.i = _S; - var _V = $get($1.charmap, $1.i); - $k[$j++] = _V; - if ($eq($type(_V), "stringtype")) { - var _Y = $get($k[--$j], 0); - $k[$j++] = _Y; - } - $put($1.charvals, $k[--$j], $1.i); - } - $1.combos = $a([ "1 ", "1A", "1B", "1C", "1D", "1E", "1F", "1G", "1H", "1I", "1J", "1K", "1L", "1M", "1N", "1O", "1P", "1Q", "1R", "1S", "1T", "1U", "1V", "1W", "1X", "1Y", "1Z", "11", "12", "13", "14", "15", " ", "16", "17", "18", " $", " %", "19", "10", "1-", "1.", "1$", " +", "1/", " -", " .", " /", " 0", " 1", " 2", " 3", " 4", " 5", " 6", " 7", " 8", " 9", "1+", "21", "22", "23", "24", "25", "26", " A", " B", " C", " D", " E", " F", " G", " H", " I", " J", " K", " L", " M", " N", " O", " P", " Q", " R", " S", " T", " U", " V", " W", " X", " Y", " Z", "27", "28", "29", "20", "2-", "2.", "2A", "2B", "2C", "2D", "2E", "2F", "2G", "2H", "2I", "2J", "2K", "2L", "2M", "2N", "2O", "2P", "2Q", "2R", "2S", "2T", "2U", "2V", "2W", "2X", "2Y", "2Z", "2$", "2/", "2+", "2%", "2 " ]); - for (var _d = 0; _d <= 127; _d += 1) { - $1.i = _d; - var _g = $get($1.combos, $1.i); - $1.c1 = $get(_g, 0); - $1.c2 = $get(_g, 1); - if ($1.c1 == 49) { - $put($1.charvals, $1.i, $a([ $get($1.charvals, $1.s1), $get($1.charvals, $1.c2) ])); - } - if ($1.c1 == 50) { - $put($1.charvals, $1.i, $a([ $get($1.charvals, $1.s2), $get($1.charvals, $1.c2) ])); - } - } + var $1 = {}; //#13471 + $1.options = $k[--$j]; //#13473 + $1.barcode = $k[--$j]; //#13474 + $1.dontdraw = false; //#13476 + $1.mode = -1; //#13477 + $1.pos = -1; //#13478 + $1.rows = 0; //#13479 + $1.rowheight = 8; //#13480 + $1.sepheight = 1; //#13481 + $1.parse = false; //#13482 + $1.parsefnc = false; //#13483 + $forall($1.options, function() { //#13494 + var _3 = $k[--$j]; //#13494 + $1[$k[--$j]] = _3; //#13494 + }); //#13494 + $1.mode = ~~$1.mode; //#13496 + $1.pos = ~~$1.pos; //#13497 + $1.rows = ~~$1.rows; //#13498 + $1.rowheight = ~~$1.rowheight; //#13499 + $1.sepheight = ~~$1.sepheight; //#13500 + $1.s1 = -1; //#13503 + $1.s2 = -2; //#13503 + $1.fn1 = -3; //#13503 + $1.fn2 = -4; //#13503 + $1.fn3 = -5; //#13503 + $1.ns = -6; //#13503 + var _F = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["FNC1", $1.fn1], + ["FNC2", $1.fn2], + ["FNC3", $1.fn3] + ]); //#13509 + $1.fncvals = _F; //#13510 + $k[$j++] = 'msg'; //#13511 + $k[$j++] = $1.barcode; //#13511 + $k[$j++] = $1.fncvals; //#13511 + $0.parseinput(); //#13511 + var _I = $k[--$j]; //#13511 + $1[$k[--$j]] = _I; //#13511 + $1.msglen = $1.msg.length; //#13512 + $1.charmap = $a(["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "-", ".", " ", "$", "/", "+", "%", $1.s1, $1.s2, $1.fn1, $1.fn2, $1.fn3, $1.ns]); //#13521 + $1.charvals = new Map; //#13524 + for (var _S = 0; _S <= 48; _S += 1) { //#13530 + $1.i = _S; //#13526 + var _V = $get($1.charmap, $1.i); //#13527 + $k[$j++] = _V; //#13528 + if ($eq($type(_V), 'stringtype')) { //#13528 + var _Y = $get($k[--$j], 0); //#13528 + $k[$j++] = _Y; //#13528 + } //#13528 + $put($1.charvals, $k[--$j], $1.i); //#13529 + } //#13529 + $1.combos = $a(["1 ", "1A", "1B", "1C", "1D", "1E", "1F", "1G", "1H", "1I", "1J", "1K", "1L", "1M", "1N", "1O", "1P", "1Q", "1R", "1S", "1T", "1U", "1V", "1W", "1X", "1Y", "1Z", "11", "12", "13", "14", "15", " ", "16", "17", "18", " $", " %", "19", "10", "1-", "1.", "1$", " +", "1/", " -", " .", " /", " 0", " 1", " 2", " 3", " 4", " 5", " 6", " 7", " 8", " 9", "1+", "21", "22", "23", "24", "25", "26", " A", " B", " C", " D", " E", " F", " G", " H", " I", " J", " K", " L", " M", " N", " O", " P", " Q", " R", " S", " T", " U", " V", " W", " X", " Y", " Z", "27", "28", "29", "20", "2-", "2.", "2A", "2B", "2C", "2D", "2E", "2F", "2G", "2H", "2I", "2J", "2K", "2L", "2M", "2N", "2O", "2P", "2Q", "2R", "2S", "2T", "2U", "2V", "2W", "2X", "2Y", "2Z", "2$", "2/", "2+", "2%", "2 "]); //#13542 + for (var _d = 0; _d <= 127; _d += 1) { //#13552 + $1.i = _d; //#13544 + var _g = $get($1.combos, $1.i); //#13545 + $1.c1 = $get(_g, 0); //#13545 + $1.c2 = $get(_g, 1); //#13545 + if ($1.c1 == 49) { //#13548 + $put($1.charvals, $1.i, $a([$get($1.charvals, $1.s1), $get($1.charvals, $1.c2)])); //#13547 + } //#13547 + if ($1.c1 == 50) { //#13551 + $put($1.charvals, $1.i, $a([$get($1.charvals, $1.s2), $get($1.charvals, $1.c2)])); //#13550 + } //#13550 + } //#13550 $1.encodealpha = function() { - var _15 = $get($1.charvals, $k[--$j]); - $k[$j++] = _15; - if ($ne($type(_15), "arraytype")) { - $astore($a(1)); - } - var _18 = $k[--$j]; - $puti($1.cws, $1.j, _18); - $1.j = _18.length + $1.j; - }; + var _15 = $get($1.charvals, $k[--$j]); //#13555 + $k[$j++] = _15; //#13556 + if ($ne($type(_15), 'arraytype')) { //#13556 + $astore($a(1)); //#13556 + } //#13556 + var _18 = $k[--$j]; //#13557 + $puti($1.cws, $1.j, _18); //#13557 + $1.j = _18.length + $1.j; //#13558 + }; //#13559 $1.base48 = function() { - var _1C = $k[--$j]; - $k[$j++] = 0; - $forall(_1C, function() { - var _1D = $k[--$j]; - var _1E = $k[--$j]; - $k[$j++] = $f($f(_1D - 48) + _1E * 10); - }); - $k[$j++] = Infinity; - var _1F = $k[--$j]; - var _1G = $k[--$j]; - var _1H = $k[--$j]; - $k[$j++] = _1F; - $k[$j++] = _1G; - for (var _1I = 0, _1J = $f(_1H - 1); _1I < _1J; _1I++) { - var _1K = $k[--$j]; - $k[$j++] = _1K % 48; - $k[$j++] = ~~(_1K / 48); - } - var _1L = $a(); - $k[$j++] = Infinity; - $k[$j++] = _1L; - for (var _1O = _1N.length - 1; _1O >= 0; _1O -= 1) { - var _1P = $k[--$j]; - $k[$j++] = $get(_1P, _1O); - $k[$j++] = _1P; - } - $j--; - var _1R = $a(); - $puti($1.cws, $1.j, _1R); - $1.j = _1R.length + $1.j; - }; + var _1C = $k[--$j]; //#13562 + $k[$j++] = 0; //#13562 + $forall(_1C, function() { //#13562 + var _1D = $k[--$j]; //#13562 + var _1E = $k[--$j]; //#13562 + $k[$j++] = $f($f(_1D - 48) + (_1E * 10)); //#13562 + }); //#13562 + $k[$j++] = Infinity; //#13563 + var _1F = $k[--$j]; //#13563 + var _1G = $k[--$j]; //#13563 + var _1H = $k[--$j]; //#13563 + $k[$j++] = _1F; //#13563 + $k[$j++] = _1G; //#13563 + for (var _1I = 0, _1J = $f(_1H - 1); _1I < _1J; _1I++) { //#13563 + var _1K = $k[--$j]; //#13563 + $k[$j++] = _1K % 48; //#13563 + $k[$j++] = ~~(_1K / 48); //#13563 + } //#13563 + var _1L = $a(); //#13563 + $k[$j++] = _1L; //#13564 + $k[$j++] = Infinity; //#13564 + var _1M = $k[--$j]; //#13564 + var _1N = $k[--$j]; //#13564 + $k[$j++] = _1M; //#13564 + $k[$j++] = _1N; //#13564 + for (var _1O = _1N.length - 1; _1O >= 0; _1O -= 1) { //#13564 + var _1P = $k[--$j]; //#13564 + $k[$j++] = $get(_1P, _1O); //#13564 + $k[$j++] = _1P; //#13564 + } //#13564 + $j--; //#13564 + var _1R = $a(); //#13564 + $puti($1.cws, $1.j, _1R); //#13565 + $1.j = _1R.length + $1.j; //#13566 + }; //#13567 $1.encodenumeric = function() { - $1.nums = $k[--$j]; - var _1X = $1.nums.length; - var _1Y = _1X % 5; - $k[$j++] = "pre"; - $k[$j++] = _1X; - $k[$j++] = _1Y; - if (_1Y != 2) { - var _1Z = $k[--$j]; - var _1a = $k[--$j]; - $k[$j++] = $f(_1a - _1Z); - } else { - var _1b = $k[--$j]; - var _1c = $k[--$j]; - $k[$j++] = $f($f(_1c - _1b) - 5); - } - var _1d = $k[--$j]; - $1[$k[--$j]] = _1d; - for (var _1h = 0, _1g = $f($1.pre - 1); _1h <= _1g; _1h += 5) { - $k[$j++] = 3; - $k[$j++] = $geti($1.nums, _1h, 5); - $1.base48(); - } - $1.nums = $geti($1.nums, $1.pre, $f($1.nums.length - $1.pre)); - var _1q = $1.nums.length; - $k[$j++] = _1q; - if (_1q == 1) { - $k[$j++] = $get($1.nums, $1.i); - $1.encodealpha(); - } - var _1u = $k[--$j]; - $k[$j++] = _1u; - if (_1u == 3) { - $k[$j++] = 2; - $k[$j++] = $1.nums; - $1.base48(); - } - var _1w = $k[--$j]; - $k[$j++] = _1w; - if (_1w == 4) { - $k[$j++] = 3; - $k[$j++] = Infinity; - $k[$j++] = 49; - $k[$j++] = 48; - $aload($1.nums); - var _1y = $a(); - $k[$j++] = _1y; - $1.base48(); - } - if ($k[--$j] == 7) { - $k[$j++] = 3; - $k[$j++] = Infinity; - $k[$j++] = 49; - $k[$j++] = 48; - $aload($geti($1.nums, 0, 4)); - var _22 = $a(); - $k[$j++] = _22; - $1.base48(); - $k[$j++] = 2; - $k[$j++] = $geti($1.nums, 4, 3); - $1.base48(); - } - }; - $k[$j++] = Infinity; - for (var _26 = 0, _27 = $1.msglen; _26 < _27; _26++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numericruns = $a(); - for (var _2A = $1.msglen - 1; _2A >= 0; _2A -= 1) { - $1.i = _2A; - var _2D = $get($1.msg, $1.i); - if (_2D >= 48 && _2D <= 57) { - $put($1.numericruns, $1.i, $f($get($1.numericruns, $1.i + 1) + 1)); - } else { - $put($1.numericruns, $1.i, 0); - } - } - if ($1.mode == -1) { - for (;;) { - if ($1.pos != -1) { - $1.mode = 3; - break; - } - if ($get($1.numericruns, 0) >= 5) { - $1.mode = 2; - break; - } - var _2S = $get($1.charvals, $get($1.msg, 0)); - $k[$j++] = _2S; - if ($ne($type(_2S), "arraytype")) { - $j--; - $1.mode = 0; - break; - } - var _2W = $get($k[--$j], 0) == 43 ? 4 : 5; - $1.mode = _2W; - break; - } - } - $1.cws = $a($1.msglen * 2 + 1); - $1.method = "alpha"; - $1.i = -1; - $1.j = -1; - if ($1.mode == 0 || $1.mode == 1) { - $1.method = "alpha"; - $1.i = 0; - $1.j = 0; - } - if ($1.mode == 2) { - $1.method = "numeric"; - $1.i = 0; - $1.j = 0; - } - if ($1.mode == 3) { - $1.posval = $a([ 12, 22, 13, 23, 33, 14, 24, 34, 44, 15, 25, 35, 45, 55, 16, 26, 36, 46, 56, 66, 17, 27, 37, 47, 57, 67, 77, 18, 28, 38, 48, 58, 68, 78, 88, 19, 29, 39, 49, 59, 69, 79, 89, 99 ]); - $k[$j++] = $1.cws; - $k[$j++] = 0; - for (var _2f = 0; _2f <= 43; _2f += 1) { - $k[$j++] = _2f; - if ($get($1.posval, _2f) != $1.pos) { - $j--; - } - } - var _2j = $k[--$j]; - var _2k = $k[--$j]; - $put($k[--$j], _2k, $f(_2j + 1)); - $1.method = "alpha"; - $1.i = 0; - $1.j = 1; - } - if ($1.mode == 4 || $1.mode == 5) { - $put($1.cws, 0, $get($get($1.charvals, $get($1.msg, 0)), 1)); - $1.method = "alpha"; - $1.i = 1; - $1.j = 1; - } - for (;;) { - if ($1.i == $1.msglen) { - break; - } - for (;;) { - if ($eq($1.method, "alpha")) { - if ($get($1.numericruns, $1.i) >= 5) { - $k[$j++] = $1.ns; - $1.encodealpha(); - $1.method = "numeric"; - break; - } - $k[$j++] = $get($1.msg, $1.i); - $1.encodealpha(); - $1.i = $1.i + 1; - break; - } - if ($eq($1.method, "numeric")) { - if ($get($1.numericruns, $1.i) < 5) { - $k[$j++] = $1.ns; - $1.encodealpha(); - $1.method = "alpha"; - break; - } - $k[$j++] = $geti($1.msg, $1.i, $get($1.numericruns, $1.i)); - $1.encodenumeric(); - $1.i = $f($1.i + $get($1.numericruns, $1.i)); - break; - } - } - } - $1.cws = $geti($1.cws, 0, $1.j); - $1.metrics = $a([ $a([ 2, 9 ]), $a([ 3, 16 ]), $a([ 4, 23 ]), $a([ 5, 30 ]), $a([ 6, 37 ]), $a([ 7, 42 ]), $a([ 8, 49 ]) ]); - $1.urows = $1.rows; - $1.i = 0; - for (;;) { - $1.m = $get($1.metrics, $1.i); - $1.r = $get($1.m, 0); - $1.dcws = $get($1.m, 1); - $1.okay = true; - if ($1.urows != 0 && $1.urows != $1.r) { - $1.okay = false; - } - if ($1.cws.length > $1.dcws) { - $1.okay = false; - } - if ($1.okay) { - break; - } - $1.i = $1.i + 1; - } - $k[$j++] = Infinity; - $aload($1.cws); - for (var _3n = 0, _3o = $f($1.dcws - $1.cws.length); _3n < _3o; _3n++) { - $k[$j++] = 48; - } - $1.cws = $a(); - $1.ccs = $a($1.r * 8); - $1.j = 0; - for (var _3u = 0, _3t = $f($1.r - 2); _3u <= _3t; _3u += 1) { - $1.i = _3u; - $1.cc = $geti($1.cws, $1.j, 7); - $puti($1.ccs, $1.i * 8, $1.cc); - var _43 = $1.cc; - $k[$j++] = $1.ccs; - $k[$j++] = $1.i * 8 + 7; - $k[$j++] = 0; - for (var _44 = 0, _45 = _43.length; _44 < _45; _44++) { - var _47 = $k[--$j]; - $k[$j++] = $f(_47 + $get(_43, _44)); - } - var _48 = $k[--$j]; - var _49 = $k[--$j]; - $put($k[--$j], _49, _48 % 49); - $1.j = $1.j + 7; - } - if ($1.j < $1.dcws) { - $puti($1.ccs, $1.ccs.length - 8, $geti($1.cws, $1.j, $f($1.dcws - $1.j))); - } - $1.cr7 = $f($f($1.r - 2) * 7 + $1.mode); - $put($1.ccs, $1.ccs.length - 2, $1.cr7); - var _4Q = $a([ 1, 9, 31, 26, 2, 12, 17, 23, 37, 18, 22, 6, 27, 44, 15, 43, 39, 11, 13, 5, 41, 33, 36, 8, 4, 32, 3, 19, 40, 25, 29, 10, 24, 30 ]); - $k[$j++] = _4Q; - $k[$j++] = _4Q; - $k[$j++] = Infinity; - var _4R = $k[--$j]; - var _4T = $geti($k[--$j], 0, 32); - $k[$j++] = _4R; - $k[$j++] = 20; - $aload(_4T); - $1.weightx = $a(); - var _4V = $k[--$j]; - $k[$j++] = _4V; - $k[$j++] = _4V; - $k[$j++] = Infinity; - var _4W = $k[--$j]; - var _4Y = $geti($k[--$j], 1, 32); - $k[$j++] = _4W; - $k[$j++] = 16; - $aload(_4Y); - $1.weighty = $a(); - $k[$j++] = Infinity; - var _4a = $k[--$j]; - var _4c = $geti($k[--$j], 2, 32); - $k[$j++] = _4a; - $k[$j++] = 38; - $aload(_4c); - $1.weightz = $a(); + $1.nums = $k[--$j]; //#13570 + var _1X = $1.nums.length; //#13571 + var _1Y = _1X % 5; //#13571 + $k[$j++] = 'pre'; //#13571 + $k[$j++] = _1X; //#13571 + $k[$j++] = _1Y; //#13571 + if (_1Y != 2) { //#13571 + var _1Z = $k[--$j]; //#13571 + var _1a = $k[--$j]; //#13571 + $k[$j++] = $f(_1a - _1Z); //#13571 + } else { //#13571 + var _1b = $k[--$j]; //#13571 + var _1c = $k[--$j]; //#13571 + $k[$j++] = $f($f(_1c - _1b) - 5); //#13571 + } //#13571 + var _1d = $k[--$j]; //#13571 + $1[$k[--$j]] = _1d; //#13571 + for (var _1h = 0, _1g = $f($1.pre - 1); _1h <= _1g; _1h += 5) { //#13572 + $k[$j++] = 3; //#13572 + $k[$j++] = $geti($1.nums, _1h, 5); //#13572 + $1.base48(); //#13572 + } //#13572 + $1.nums = $geti($1.nums, $1.pre, $f($1.nums.length - $1.pre)); //#13573 + var _1q = $1.nums.length; //#13575 + $k[$j++] = _1q; //#13575 + if (_1q == 1) { //#13575 + $k[$j++] = $get($1.nums, $1.i); //#13575 + $1.encodealpha(); //#13575 + } //#13575 + var _1u = $k[--$j]; //#13576 + $k[$j++] = _1u; //#13576 + if (_1u == 3) { //#13576 + $k[$j++] = 2; //#13576 + $k[$j++] = $1.nums; //#13576 + $1.base48(); //#13576 + } //#13576 + var _1w = $k[--$j]; //#13577 + $k[$j++] = _1w; //#13577 + if (_1w == 4) { //#13577 + $k[$j++] = 3; //#13577 + $k[$j++] = Infinity; //#13577 + $k[$j++] = 49; //#13577 + $k[$j++] = 48; //#13577 + $aload($1.nums); //#13577 + var _1y = $a(); //#13577 + $k[$j++] = _1y; //#13577 + $1.base48(); //#13577 + } //#13577 + if ($k[--$j] == 7) { //#13581 + $k[$j++] = 3; //#13579 + $k[$j++] = Infinity; //#13579 + $k[$j++] = 49; //#13579 + $k[$j++] = 48; //#13579 + $aload($geti($1.nums, 0, 4)); //#13579 + var _22 = $a(); //#13579 + $k[$j++] = _22; //#13579 + $1.base48(); //#13579 + $k[$j++] = 2; //#13580 + $k[$j++] = $geti($1.nums, 4, 3); //#13580 + $1.base48(); //#13580 + } //#13580 + }; //#13582 + $k[$j++] = Infinity; //#13585 + for (var _26 = 0, _27 = $1.msglen; _26 < _27; _26++) { //#13585 + $k[$j++] = 0; //#13585 + } //#13585 + $k[$j++] = 0; //#13585 + $1.numericruns = $a(); //#13585 + for (var _2A = $1.msglen - 1; _2A >= 0; _2A -= 1) { //#13594 + $1.i = _2A; //#13587 + var _2D = $get($1.msg, $1.i); //#13588 + if ((_2D >= 48) && (_2D <= 57)) { //#13592 + $put($1.numericruns, $1.i, $f($get($1.numericruns, $1.i + 1) + 1)); //#13590 + } else { //#13592 + $put($1.numericruns, $1.i, 0); //#13592 + } //#13592 + } //#13592 + if ($1.mode == -1) { //#13606 + for (;;) { //#13605 + if ($1.pos != -1) { //#13599 + $1.mode = 3; //#13599 + break; //#13599 + } //#13599 + if ($get($1.numericruns, 0) >= 5) { //#13600 + $1.mode = 2; //#13600 + break; //#13600 + } //#13600 + var _2S = $get($1.charvals, $get($1.msg, 0)); //#13601 + $k[$j++] = _2S; //#13602 + if ($ne($type(_2S), 'arraytype')) { //#13602 + $j--; //#13602 + $1.mode = 0; //#13602 + break; //#13602 + } //#13602 + var _2W = ($get($k[--$j], 0) == 43) ? 4 : 5; //#13603 + $1.mode = _2W; //#13603 + break; //#13604 + } //#13604 + } //#13604 + $1.cws = $a(($1.msglen * 2) + 1); //#13608 + $1.method = "alpha"; //#13609 + $1.i = -1; //#13609 + $1.j = -1; //#13609 + if (($1.mode == 0) || ($1.mode == 1)) { //#13612 + $1.method = "alpha"; //#13612 + $1.i = 0; //#13612 + $1.j = 0; //#13612 + } //#13612 + if ($1.mode == 2) { //#13613 + $1.method = "numeric"; //#13613 + $1.i = 0; //#13613 + $1.j = 0; //#13613 + } //#13613 + if ($1.mode == 3) { //#13627 + $1.posval = $a([12, 22, 13, 23, 33, 14, 24, 34, 44, 15, 25, 35, 45, 55, 16, 26, 36, 46, 56, 66, 17, 27, 37, 47, 57, 67, 77, 18, 28, 38, 48, 58, 68, 78, 88, 19, 29, 39, 49, 59, 69, 79, 89, 99]); //#13624 + $k[$j++] = $1.cws; //#13625 + $k[$j++] = 0; //#13625 + for (var _2f = 0; _2f <= 43; _2f += 1) { //#13625 + $k[$j++] = _2f; //#13625 + if ($get($1.posval, _2f) != $1.pos) { //#13625 + $j--; //#13625 + } //#13625 + } //#13625 + var _2j = $k[--$j]; //#13625 + var _2k = $k[--$j]; //#13625 + $put($k[--$j], _2k, $f(_2j + 1)); //#13625 + $1.method = "alpha"; //#13626 + $1.i = 0; //#13626 + $1.j = 1; //#13626 + } //#13626 + if (($1.mode == 4) || ($1.mode == 5)) { //#13631 + $put($1.cws, 0, $get($get($1.charvals, $get($1.msg, 0)), 1)); //#13629 + $1.method = "alpha"; //#13630 + $1.i = 1; //#13630 + $1.j = 1; //#13630 + } //#13630 + for (;;) { //#13658 + if ($1.i == $1.msglen) { //#13635 + break; //#13635 + } //#13635 + for (;;) { //#13657 + if ($eq($1.method, "alpha")) { //#13646 + if ($get($1.numericruns, $1.i) >= 5) { //#13642 + $k[$j++] = $1.ns; //#13639 + $1.encodealpha(); //#13639 + $1.method = "numeric"; //#13640 + break; //#13641 + } //#13641 + $k[$j++] = $get($1.msg, $1.i); //#13643 + $1.encodealpha(); //#13643 + $1.i = $1.i + 1; //#13644 + break; //#13645 + } //#13645 + if ($eq($1.method, "numeric")) { //#13656 + if ($get($1.numericruns, $1.i) < 5) { //#13652 + $k[$j++] = $1.ns; //#13649 + $1.encodealpha(); //#13649 + $1.method = "alpha"; //#13650 + break; //#13651 + } //#13651 + $k[$j++] = $geti($1.msg, $1.i, $get($1.numericruns, $1.i)); //#13653 + $1.encodenumeric(); //#13653 + $1.i = $f($1.i + $get($1.numericruns, $1.i)); //#13654 + break; //#13655 + } //#13655 + } //#13655 + } //#13655 + $1.cws = $geti($1.cws, 0, $1.j); //#13659 + $1.metrics = $a([$a([2, 9]), $a([3, 16]), $a([4, 23]), $a([5, 30]), $a([6, 37]), $a([7, 42]), $a([8, 49])]); //#13671 + $1.urows = $1.rows; //#13674 + $1.i = 0; //#13675 + for (;;) { //#13685 + $1.m = $get($1.metrics, $1.i); //#13677 + $1.r = $get($1.m, 0); //#13678 + $1.dcws = $get($1.m, 1); //#13679 + $1.okay = true; //#13680 + if (($1.urows != 0) && ($1.urows != $1.r)) { //#13681 + $1.okay = false; //#13681 + } //#13681 + if ($1.cws.length > $1.dcws) { //#13682 + $1.okay = false; //#13682 + } //#13682 + if ($1.okay) { //#13683 + break; //#13683 + } //#13683 + $1.i = $1.i + 1; //#13684 + } //#13684 + $k[$j++] = Infinity; //#13688 + $aload($1.cws); //#13688 + for (var _3n = 0, _3o = $f($1.dcws - $1.cws.length); _3n < _3o; _3n++) { //#13688 + $k[$j++] = 48; //#13688 + } //#13688 + $1.cws = $a(); //#13688 + $1.ccs = $a($1.r * 8); //#13691 + $1.j = 0; //#13692 + for (var _3u = 0, _3t = $f($1.r - 2); _3u <= _3t; _3u += 1) { //#13699 + $1.i = _3u; //#13694 + $1.cc = $geti($1.cws, $1.j, 7); //#13695 + $puti($1.ccs, $1.i * 8, $1.cc); //#13696 + var _43 = $1.cc; //#13697 + $k[$j++] = $1.ccs; //#13697 + $k[$j++] = ($1.i * 8) + 7; //#13697 + $k[$j++] = 0; //#13697 + for (var _44 = 0, _45 = _43.length; _44 < _45; _44++) { //#13697 + var _47 = $k[--$j]; //#13697 + $k[$j++] = $f(_47 + $get(_43, _44)); //#13697 + } //#13697 + var _48 = $k[--$j]; //#13697 + var _49 = $k[--$j]; //#13697 + $put($k[--$j], _49, _48 % 49); //#13697 + $1.j = $1.j + 7; //#13698 + } //#13698 + if ($1.j < $1.dcws) { //#13702 + $puti($1.ccs, $1.ccs.length - 8, $geti($1.cws, $1.j, $f($1.dcws - $1.j))); //#13701 + } //#13701 + $1.cr7 = $f(($f($1.r - 2) * 7) + $1.mode); //#13705 + $put($1.ccs, $1.ccs.length - 2, $1.cr7); //#13706 + var _4Q = $a([1, 9, 31, 26, 2, 12, 17, 23, 37, 18, 22, 6, 27, 44, 15, 43, 39, 11, 13, 5, 41, 33, 36, 8, 4, 32, 3, 19, 40, 25, 29, 10, 24, 30]); //#13710 + $k[$j++] = _4Q; //#13711 + $k[$j++] = _4Q; //#13711 + $k[$j++] = Infinity; //#13711 + var _4R = $k[--$j]; //#13711 + var _4T = $geti($k[--$j], 0, 32); //#13711 + $k[$j++] = _4R; //#13711 + $k[$j++] = 20; //#13711 + $aload(_4T); //#13711 + $1.weightx = $a(); //#13711 + var _4V = $k[--$j]; //#13712 + $k[$j++] = _4V; //#13712 + $k[$j++] = _4V; //#13712 + $k[$j++] = Infinity; //#13712 + var _4W = $k[--$j]; //#13712 + var _4Y = $geti($k[--$j], 1, 32); //#13712 + $k[$j++] = _4W; //#13712 + $k[$j++] = 16; //#13712 + $aload(_4Y); //#13712 + $1.weighty = $a(); //#13712 + $k[$j++] = Infinity; //#13713 + var _4a = $k[--$j]; //#13713 + var _4c = $geti($k[--$j], 2, 32); //#13713 + $k[$j++] = _4a; //#13713 + $k[$j++] = 38; //#13713 + $aload(_4c); //#13713 + $1.weightz = $a(); //#13713 $1.calccheck = function() { - $1.weights = $k[--$j]; - $1.score = 0; - for (var _4h = 0, _4g = ~~($f($1.r - 1) * 8 / 2) - 1; _4h <= _4g; _4h += 1) { - $1.i = _4h; - $1.score = $f($f($get($1.ccs, $1.i * 2) * 49 + $get($1.ccs, $1.i * 2 + 1)) * $get($1.weights, $1.i + 1) + $1.score); - } - $k[$j++] = $1.score; - }; - $1.lastrow = $geti($1.ccs, $1.ccs.length - 8, 8); - if ($1.r >= 7) { - $k[$j++] = $1.cr7 * $get($1.weightz, 0); - $k[$j++] = $1.weightz; - $1.calccheck(); - var _51 = $k[--$j]; - var _53 = $f($k[--$j] + _51) % 2401; - $k[$j++] = ~~(_53 / 49); - $k[$j++] = _53 % 49; - $astore($a(2)); - $puti($1.lastrow, 0, $k[--$j]); - } - $1.wr1 = $f($get($1.lastrow, 0) * 49 + $get($1.lastrow, 1)); - $k[$j++] = $1.cr7 * $get($1.weighty, 0); - $k[$j++] = $1.weighty; - $1.calccheck(); - var _5F = $k[--$j]; - var _5L = $f($f($k[--$j] + _5F) + $1.wr1 * $get($1.weighty, $f($1.r * 4 - 3))) % 2401; - $1.wr2 = _5L; - $k[$j++] = ~~(_5L / 49); - $k[$j++] = _5L % 49; - $astore($a(2)); - $puti($1.lastrow, 2, $k[--$j]); - $k[$j++] = $1.cr7 * $get($1.weightx, 0); - $k[$j++] = $1.weightx; - $1.calccheck(); - var _5T = $k[--$j]; - var _5d = $f($f($f($k[--$j] + _5T) + $1.wr1 * $get($1.weightx, $f($1.r * 4 - 3))) + $1.wr2 * $get($1.weightx, $f($1.r * 4 - 2))) % 2401; - $k[$j++] = ~~(_5d / 49); - $k[$j++] = _5d % 49; - $astore($a(2)); - $puti($1.lastrow, 4, $k[--$j]); - var _5j = $geti($1.ccs, $1.ccs.length - 8, 7); - $k[$j++] = 0; - for (var _5k = 0, _5l = _5j.length; _5k < _5l; _5k++) { - var _5n = $k[--$j]; - $k[$j++] = $f(_5n + $get(_5j, _5k)); - } - $put($1.ccs, $1.ccs.length - 1, $k[--$j] % 49); - $1.patterns = $a([ $a([ "11521132", "25112131", "14212132", "25121221", "14221222", "12412132", "23321221", "12421222", "21521221", "15112222", "15121312", "13312222", "24221311", "13321312", "11512222", "22421311", "11521312", "25112311", "14212312", "23312311", "12412312", "21512311", "16121131", "14321131", "12521131", "15212131", "15221221", "13412131", "13421221", "11612131", "16112221", "16121311", "14312221", "14321311", "12512221", "12521311", "15212311", "13412311", "11612311", "11131135", "31131133", "51131131", "21122134", "41122132", "21131224", "41131222", "11113135", "31113133", "51113131", "11122225", "31122223", "51122221", "11131315", "31131313", "51131311", "21113224", "41113222", "21122314", "41122312", "11113315", "31113313", "51113311", "12131134", "32131132", "21231133", "41231131", "22122133", "42122131", "11222134", "22131223", "42131221", "11231224", "31231222", "12113134", "32113132", "12122224", "32122222", "12131314", "32131312", "21231313", "41231311", "22113223", "42113221", "11213224", "22122313", "42122311", "11222314", "31222312", "12113314", "32113312", "21213313", "41213311", "13131133", "33131131", "22231132", "11331133", "31331131", "23122132", "12222133", "23131222", "12231223", "32231221", "21331222", "13113133", "33113131", "13122223", "33122221", "11313133", "13131313", "33131311", "11322223", "22231312", "11331313", "31331311", "23113222", "12213223", "23122312", "12222313", "32222311", "21322312", "13113313", "33113311", "22213312", "11313313", "31313311", "14131132", "23231131", "12331132", "21431131", "24122131", "13222132", "24131221", "13231222", "11422132", "22331221", "11431222", "14113132", "14122222", "12313132", "14131312", "12322222", "23231311", "12331312", "21431311", "24113221", "13213222", "24122311", "13222312", "11413222", "22322311", "11422312", "14113312", "23213311", "12313312", "21413311", "15131131", "13331131", "14222131", "14231221", "12422131", "12431221", "15113131", "15122221", "13313131", "15131311", "13322221", "11513131", "13331311", "11522221", "14213221", "14222311", "12413221", "12422311", "15113311", "13313311", "11513311", "11141134", "31141132", "21132133", "41132131", "21141223", "41141221", "11123134", "31123132", "11132224", "31132222", "11141314", "31141312", "21114133", "41114131", "21123223", "41123221", "21132313", "41132311", "11114224", "31114222", "11123314", "31123312", "21114313", "41114311", "12141133", "32141131", "21241132", "22132132", "11232133", "22141222", "11241223", "31241221", "12123133", "32123131", "12132223", "32132221", "12141313", "32141311", "21241312", "22114132", "11214133", "22123222", "11223223", "22132312", "11232313", "31232311", "12114223", "32114221", "12123313", "32123311", "21223312", "22114312", "11214313", "31214311", "13141132", "22241131", "11341132", "23132131", "12232132", "23141221", "12241222", "21341221", "13123132", "13132222", "11323132", "13141312", "11332222", "22241311", "11341312", "23114131", "12214132", "23123221", "12223222", "23132311", "12232312", "21332311", "13114222", "13123312", "11314222", "22223311", "11323312", "23114311", "12214312", "21314311", "14141131", "12341131", "13232131", "13241221", "11432131", "14123131", "14132221", "12323131", "14141311", "12332221", "12341311", "13214131", "13223221", "11414131", "13232311", "11423221", "11432311", "14114221", "14123311", "12314221", "12323311", "13214311", "11414311", "11151133", "31151131", "21142132", "21151222", "11133133", "31133131", "11142223", "31142221", "11151313", "31151311", "21124132", "21133222", "21142312", "11115133", "31115131", "11124223", "31124221", "11133313", "31133311", "21115222", "21124312", "12151132", "21251131", "22142131", "11242132", "22151221", "11251222", "12133132", "12142222", "12151312", "21251311", "22124131", "11224132", "22133221", "11233222", "22142311", "11242312", "12115132", "12124222", "12133312", "21233311", "22115221", "11215222", "22124311", "11224312", "13151131", "12242131", "12251221", "13133131", "13142221", "11333131", "13151311", "11342221", "12224131", "12233221", "12242311", "13115131", "13124221", "11315131", "13133311", "11324221", "11333311", "12215221", "12224311", "11161132", "21152131", "21161221", "11143132", "11152222", "11161312", "21134131", "21143221", "21152311", "11125132", "11134222", "11143312", "21116131", "21125221", "21134311", "12161131", "11252131", "12143131", "12152221", "12161311", "11234131", "11243221", "11252311", "12125131", "12134221", "12143311", "11216131", "11225221", "11234311", "11111236", "31111234", "51111232", "21111325", "41111323", "61111321", "11111416", "31111414", "51111412", "31211143", "51211141", "12111235", "32111233", "52111231", "21211234", "41211232", "22111324", "42111322", "11211325", "31211323", "51211321", "12111415", "32111413", "52111411", "21211414", "41211412", "12211144", "32211142", "21311143", "41311141", "13111234", "33111232", "22211233", "42211231", "11311234", "31311232", "23111323", "43111321", "12211324", "32211322", "21311323", "41311321", "13111414", "33111412", "22211413", "42211411", "11311414", "31311412", "13211143", "33211141", "22311142", "11411143", "31411141", "14111233", "34111231", "23211232", "12311233", "32311231", "21411232", "24111322", "13211323", "33211321", "22311322", "11411323", "31411321", "14111413", "34111411", "23211412", "12311413", "32311411", "21411412", "14211142", "23311141", "12411142", "21511141", "15111232", "24211231", "13311232", "22411231", "11511232", "25111321", "14211322", "23311321", "12411322", "21511321", "15111412", "24211411", "13311412", "22411411", "11511412", "15211141", "13411141", "11611141", "16111231", "14311231", "12511231", "15211321", "13411321", "11611321", "16111411", "14311411", "12511411", "21121144", "41121142", "11112145", "31112143", "51112141", "11121235", "31121233", "51121231", "21112234", "41112232", "21121324", "41121322", "11112325", "31112323", "51112321", "11121415", "31121413", "51121411", "21112414", "41112412", "22121143", "42121141", "11221144", "31221142", "12112144", "32112142", "12121234", "32121232", "21221233", "41221231", "22112233", "42112231", "11212234", "22121323", "42121321", "11221324", "31221322", "12112324", "32112322", "12121414", "32121412", "21221413", "41221411", "22112413", "42112411", "11212414", "31212412", "23121142", "12221143", "32221141", "21321142", "13112143", "33112141", "13121233", "33121231", "11312143", "22221232", "11321233", "31321231", "23112232", "12212233", "23121322", "12221323", "32221321", "21321322", "13112323", "33112321", "13121413", "33121411", "11312323", "22221412", "11321413", "31321411", "23112412", "12212413", "32212411", "21312412", "24121141", "13221142", "22321141", "11421142", "14112142", "14121232", "12312142", "23221231", "12321232", "21421231", "24112231", "13212232", "24121321", "13221322", "11412232", "22321321", "11421322", "14112322", "14121412", "12312322", "23221411", "12321412", "21421411", "24112411", "13212412", "22312411", "11412412", "14221141", "12421141", "15112141", "15121231", "13312141", "13321231", "11512141", "11521231", "14212231", "14221321", "12412231", "12421321", "15112321", "15121411", "13312321", "13321411", "11512321", "11521411", "14212411", "12412411", "21131143", "41131141", "11122144", "31122142", "11131234", "31131232", "21113143", "41113141", "21122233", "41122231", "21131323", "41131321", "11113234", "31113232", "11122324", "31122322", "11131414", "31131412", "21113323", "41113321", "21122413", "41122411", "11113414", "31113412", "22131142", "11231143", "31231141", "12122143", "32122141", "12131233", "32131231", "21231232", "22113142", "11213143", "22122232", "11222233", "22131322", "11231323", "31231321", "12113233", "32113231", "12122323", "32122321", "12131413", "32131411", "21231412", "22113322", "11213323", "22122412", "11222413", "31222411", "12113413", "32113411", "21213412", "23131141", "12231142", "21331141", "13122142", "13131232", "11322142", "22231231", "11331232", "23113141", "12213142", "23122231", "12222232", "23131321", "12231322", "21331321", "13113232", "13122322", "11313232", "13131412", "11322322", "22231411", "11331412", "23113321", "12213322", "23122411", "12222412", "21322411", "13113412", "22213411", "11313412", "13231141", "11431141", "14122141", "14131231", "12322141", "12331231", "13213141", "13222231", "11413141", "13231321", "11422231", "11431321", "14113231", "14122321", "12313231", "14131411", "12322321", "12331411", "13213321", "13222411", "11413321", "11422411", "14113411", "12313411", "21141142", "11132143", "31132141", "11141233", "31141231", "21123142", "21132232", "21141322", "11114143", "31114141", "11123233", "31123231", "11132323", "31132321", "11141413", "31141411", "21114232", "21123322", "21132412", "11114323", "31114321", "11123413", "31123411", "22141141", "11241142", "12132142", "12141232", "21241231", "22123141", "11223142", "22132231", "11232232", "22141321", "11241322", "12114142", "12123232", "12132322", "12141412", "21241411", "22114231", "11214232", "22123321", "11223322", "22132411", "11232412", "12114322", "12123412", "21223411", "12241141", "13132141", "13141231", "11332141", "11341231", "12223141", "12232231", "12241321", "13114141", "13123231", "11314141", "13132321", "11323231", "13141411", "11332321", "11341411", "12214231", "12223321", "12232411", "13114321", "13123411", "11314321", "11323411", "21151141", "11142142", "11151232", "21133141", "21142231", "21151321", "11124142", "11133232", "11142322", "11151412", "21115141", "21124231", "21133321", "21142411", "11115232", "11124322", "11133412", "11251141", "12142141", "12151231", "11233141", "11242231", "11251321", "12124141", "12133231", "12142321", "12151411", "11215141", "11224231", "11233321", "11242411", "12115231", "12124321", "12133411", "11152141", "11161231", "11134141", "11143231", "11152321", "11161411", "11116141", "11125231", "11134321", "11143411", "21111244", "41111242", "11111335", "31111333", "51111331", "21111424", "41111422", "11111515", "31111513", "51111511", "21211153", "41211151", "22111243", "42111241", "11211244", "31211242", "12111334", "32111332", "21211333", "41211331", "22111423", "42111421", "11211424", "31211422", "12111514", "32111512", "21211513", "41211511", "22211152", "11311153", "31311151", "23111242", "12211243", "32211241", "21311242", "13111333", "33111331", "22211332", "11311333", "31311331", "23111422", "12211423", "32211421", "21311422", "13111513", "33111511", "22211512", "11311513", "31311511", "23211151", "12311152", "21411151", "24111241", "13211242", "22311241", "11411242", "14111332", "23211331", "12311332", "21411331", "24111421", "13211422", "22311421", "11411422", "14111512", "23211511", "12311512", "21411511", "13311151", "11511151", "14211241", "12411241", "15111331", "13311331", "11511331", "14211421", "12411421", "15111511", "13311511", "11511511", "31121152", "21112153", "41112151", "21121243", "41121241", "11112244", "31112242", "11121334", "31121332", "21112333", "41112331", "21121423", "41121421", "11112424", "31112422", "11121514", "31121512", "21112513", "41112511", "12121153", "32121151", "21221152", "22112152", "11212153", "22121242", "11221243", "31221241", "12112243", "32112241", "12121333", "32121331", "21221332", "22112332", "11212333", "22121422", "11221423", "31221421", "12112423", "32112421", "12121513", "32121511", "21221512", "22112512", "11212513", "31212511", "13121152", "22221151", "11321152", "23112151", "12212152", "23121241", "12221242", "21321241", "13112242", "13121332", "11312242", "22221331", "11321332", "23112331", "12212332", "23121421", "12221422", "21321421", "13112422", "13121512", "11312422", "22221511", "11321512", "23112511", "12212512", "21312511", "14121151", "12321151", "13212151", "13221241", "11412151", "11421241", "14112241", "14121331", "12312241", "12321331", "13212331", "13221421", "11412331", "11421421", "14112421", "14121511", "12312421", "12321511", "13212511", "11412511", "11131153", "31131151", "21122152", "21131242", "11113153", "31113151", "11122243", "31122241", "11131333", "31131331", "21113242", "21122332", "21131422", "11113333", "31113331", "11122423", "31122421", "11131513", "31131511", "21113422", "21122512", "12131152", "21231151", "22122151", "11222152", "22131241", "11231242", "12113152", "12122242", "12131332", "21231331", "22113241", "11213242", "22122331", "11222332", "22131421", "11231422", "12113332", "12122422", "12131512", "21231511", "22113421", "11213422", "22122511", "11222512", "13131151", "11331151", "12222151", "12231241", "13113151", "13122241", "11313151", "13131331", "11322241", "11331331", "12213241", "12222331", "12231421", "13113331", "13122421", "11313331", "13131511", "11322421", "11331511", "12213421", "12222511", "11141152", "21132151", "21141241", "11123152", "11132242", "11141332", "21114151", "21123241", "21132331", "21141421", "11114242", "11123332", "11132422", "11141512", "21114331", "21123421", "21132511", "12141151", "11232151", "11241241", "12123151", "12132241", "12141331", "11214151", "11223241", "11232331", "11241421", "12114241", "12123331", "12132421", "12141511", "11214331", "11223421", "11232511", "11151151", "11133151", "11142241", "11151331", "11115151", "11124241", "11133331", "11142421", "11151511", "11111254", "31111252", "21111343", "41111341", "11111434", "31111432", "21111523", "41111521", "11111614", "31111612", "31211161", "12111253", "32111251", "21211252", "22111342", "11211343", "31211341", "12111433", "32111431", "21211432", "22111522", "11211523", "31211521", "12111613", "32111611", "21211612", "12211162", "21311161", "13111252", "22211251", "11311252", "23111341", "12211342", "21311341", "13111432", "22211431", "11311432", "23111521", "12211522", "21311521", "13111612", "22211611", "11311612", "13211161", "11411161", "14111251", "12311251", "13211341", "11411341", "14111431", "12311431", "13211521", "11411521", "14111611", "12311611", "21121162", "11112163", "31112161", "11121253", "31121251", "21112252", "21121342", "11112343", "31112341", "11121433", "31121431", "21112432", "21121522", "11112523", "31112521", "11121613", "31121611", "22121161", "11221162", "12112162", "12121252", "21221251", "22112251", "11212252", "22121341", "11221342", "12112342", "12121432", "21221431", "22112431", "11212432", "22121521", "11221522", "12112522", "12121612", "21221611", "12221161", "13112161", "13121251", "11312161", "11321251", "32121115", "52121113", "21221116", "41221114", "61221112", "22112116", "42112114", "31212115", "51212113", "13121116", "33121114", "22221115", "42221113", "11321116", "31321114", "51321112", "23112115", "43112113", "12212116", "32212114", "52212112", "21312115", "41312113", "61312111", "14121115", "34121113", "23221114", "43221112", "12321115", "32321113", "52321111", "21421114", "41421112", "24112114", "13212115", "33212113", "22312114", "42312112", "11412115", "31412113", "51412111", "15121114", "24221113", "13321114", "33321112", "22421113", "42421111", "11521114", "31521112", "25112113", "14212114", "34212112", "23312113", "43312111", "12412114", "32412112", "21512113", "41512111", "16121113", "25221112", "14321113", "34321111", "23421112", "12521113", "32521111", "15212113", "24312112", "13412113", "33412111", "22512112", "11612113", "31612111", "31131115", "51131113", "21122116", "41122114", "61122112", "31113115", "51113113", "12131116", "32131114", "52131112", "21231115", "41231113", "61231111", "22122115", "42122113", "11222116", "31222114", "51222112", "12113116", "32113114", "52113112", "21213115", "41213113", "61213111", "13131115", "33131113", "22231114", "42231112", "11331115", "31331113", "51331111", "23122114", "43122112", "12222115", "32222113", "52222111", "21322114", "41322112", "13113115", "33113113", "22213114", "42213112", "11313115", "31313113", "51313111", "14131114", "34131112", "23231113", "43231111", "12331114", "32331112", "21431113", "41431111", "24122113", "13222114", "33222112", "22322113", "42322111", "11422114", "31422112", "14113114", "34113112", "23213113", "43213111", "12313114", "32313112", "21413113", "41413111", "15131113", "24231112", "13331113", "33331111", "22431112", "25122112", "14222113", "34222111", "23322112", "12422113", "32422111", "21522112", "15113113", "24213112", "13313113", "33313111", "22413112", "11513113", "31513111", "16131112", "25231111", "14331112", "23431111", "15222112", "24322111", "13422112", "22522111", "16113112", "25213111", "14313112", "23413111", "12513112", "21613111", "11141116", "31141114", "51141112", "21132115", "41132113", "61132111", "11123116", "31123114", "51123112", "21114115", "41114113", "61114111", "12141115", "32141113", "52141111", "21241114", "41241112", "22132114", "42132112", "11232115", "31232113", "51232111", "12123115", "32123113", "52123111", "21223114", "41223112", "22114114", "42114112", "11214115", "31214113", "51214111", "13141114", "33141112", "22241113", "42241111", "11341114", "31341112", "23132113", "43132111", "12232114", "32232112", "21332113", "41332111", "13123114", "33123112", "22223113", "42223111", "11323114", "31323112", "23114113", "43114111", "12214114", "32214112", "21314113", "41314111", "14141113", "34141111", "23241112", "12341113", "32341111", "24132112", "13232113", "33232111", "22332112", "11432113", "31432111", "14123113", "34123111", "23223112", "12323113", "32323111", "21423112", "24114112", "13214113", "33214111", "22314112", "11414113", "31414111", "15141112", "24241111", "13341112", "25132111", "14232112", "23332111", "12432112", "15123112", "24223111", "13323112", "22423111", "11523112", "25114111", "14214112", "23314111", "12414112", "21514111", "16141111", "14341111", "15232111", "13432111", "16123111", "14323111", "12523111", "15214111", "13414111", "11614111", "11151115", "31151113", "51151111", "21142114", "41142112", "11133115", "31133113", "51133111", "21124114", "41124112", "11115115", "31115113", "51115111", "12151114", "32151112", "21251113", "41251111", "22142113", "42142111", "11242114", "31242112", "12133114", "32133112", "21233113", "41233111", "22124113", "42124111", "11224114", "31224112", "12115114", "32115112", "21215113", "41215111", "13151113", "33151111", "22251112", "23142112", "12242113", "32242111", "21342112", "13133113", "33133111", "22233112", "11333113", "31333111", "23124112", "12224113", "32224111", "21324112", "13115113", "33115111", "22215112", "11315113", "31315111", "14151112", "23251111", "24142111", "13242112", "22342111", "14133112", "23233111", "12333112", "21433111", "24124111", "13224112", "22324111", "11424112", "14115112", "23215111", "12315112", "21415111", "15151111", "14242111", "15133111", "13333111", "14224111", "12424111", "15115111", "13315111", "11515111", "11161114", "31161112", "21152113", "41152111", "11143114", "31143112", "21134113", "41134111", "11125114", "31125112", "21116113", "41116111", "12161113", "32161111", "22152112", "11252113", "31252111", "12143113", "32143111", "21243112", "22134112", "11234113", "31234111", "12125113", "32125111", "21225112", "22116112", "11216113", "31216111", "13161112", "23152111", "12252112", "13143112", "22243111", "11343112", "23134111", "12234112", "21334111", "13125112", "22225111", "11325112", "23116111", "12216112", "21316111", "14161111", "13252111", "14143111", "12343111", "13234111", "11434111", "14125111", "12325111", "13216111", "11416111", "31111216", "51111214", "31211125", "51211123", "32111215", "52111213", "21211216", "41211214", "61211212", "12211126", "32211124", "52211122", "21311125", "41311123", "61311121", "13111216", "33111214", "22211215", "42211213", "11311216", "31311214", "51311212", "13211125", "33211123", "22311124", "42311122", "11411125", "31411123", "51411121", "14111215", "34111213", "23211214", "43211212", "12311215", "32311213", "52311211", "21411214", "41411212", "14211124", "34211122", "23311123", "43311121", "12411124", "32411122", "21511123", "41511121", "15111214", "24211213", "13311214", "33311212", "22411213", "42411211", "11511214", "31511212", "15211123", "24311122", "13411123", "33411121", "22511122", "11611123", "31611121", "16111213", "25211212", "14311213", "34311211", "23411212", "12511213", "32511211", "21611212", "21121126", "41121124", "61121122", "31112125", "51112123", "31121215", "51121213", "21112216", "41112214", "61112212", "22121125", "42121123", "11221126", "31221124", "51221122", "12112126", "32112124", "52112122", "12121216", "32121214", "52121212", "21221215", "41221213", "61221211", "22112215", "42112213", "11212216", "31212214", "51212212", "23121124", "43121122", "12221125", "32221123", "52221121", "21321124", "41321122", "13112125", "33112123", "13121215", "33121213", "11312125", "22221214", "42221212", "11321215", "31321213", "51321211", "23112214", "43112212", "12212215", "32212213", "52212211", "21312214", "41312212", "24121123", "13221124", "33221122", "22321123", "42321121", "11421124", "31421122", "14112124", "34112122", "14121214", "34121212", "12312124", "23221213", "43221211", "12321214", "32321212", "21421213", "41421211", "24112213", "13212214", "33212212", "22312213", "42312211", "11412214", "31412212", "25121122", "14221123", "34221121", "23321122", "12421123", "32421121", "21521122", "15112123", "15121213", "13312123", "24221212", "13321213", "33321211", "11512123", "22421212", "11521213", "31521211", "25112212", "14212213", "34212211", "23312212", "12412213", "32412211", "21512212", "15221122", "24321121", "13421122", "22521121", "16112122", "16121212", "14312122", "25221211", "14321212", "12512122", "23421211", "12521212", "15212212", "24312211", "13412212", "22512211", "11612212", "21131125", "41131123", "61131121", "11122126", "31122124", "51122122", "11131216", "31131214", "51131212", "21113125", "41113123", "61113121", "21122215", "41122213", "61122211", "11113216", "31113214", "51113212", "22131124", "42131122", "11231125", "31231123", "51231121", "12122125", "32122123", "52122121", "12131215", "32131213", "52131211", "21231214", "41231212", "22113124", "42113122", "11213125", "22122214", "42122212", "11222215", "31222213", "51222211", "12113215", "32113213", "52113211", "21213214", "41213212", "23131123", "43131121", "12231124", "32231122", "21331123", "41331121", "13122124", "33122122", "13131214", "33131212", "11322124", "22231213", "42231211", "11331214", "31331212", "23113123", "43113121", "12213124", "23122213", "43122211", "12222214", "32222212", "21322213", "41322211", "13113214", "33113212", "22213213", "42213211", "11313214", "31313212", "24131122", "13231123", "33231121", "22331122", "11431123", "31431121", "14122123", "34122121", "14131213", "34131211", "12322123", "23231212", "12331213", "32331211", "21431212", "24113122", "13213123", "24122212", "13222213", "33222211", "11413123", "22322212", "11422213", "31422211", "14113213", "34113211", "23213212", "12313213", "32313211", "21413212", "25131121", "14231122", "23331121", "12431122", "15122122", "15131212", "13322122", "24231211", "13331212", "11522122", "22431211", "25113121", "14213122", "25122211", "14222212", "12413122", "23322211", "12422212", "21522211", "15113212", "24213211", "13313212", "22413211", "11513212", "15231121", "13431121", "16122121", "16131211", "14322121", "14331211", "12522121", "15213121", "15222211", "13413121", "13422211", "11613121", "16113211", "14313211", "12513211", "21141124", "41141122", "11132125", "31132123", "51132121", "11141215", "31141213", "51141211", "21123124", "41123122", "21132214", "41132212", "11114125", "31114123", "51114121", "11123215", "31123213", "51123211", "21114214", "41114212", "22141123", "42141121", "11241124", "31241122", "12132124", "32132122", "12141214", "32141212", "21241213", "41241211", "22123123", "42123121", "11223124", "22132213", "42132211", "11232214", "31232212", "12114124", "32114122", "12123214", "32123212", "21223213", "41223211", "22114213", "42114211", "11214214", "31214212", "23141122", "12241123", "32241121", "21341122", "13132123", "33132121", "13141213", "33141211", "11332123", "22241212", "11341213", "31341211", "23123122", "12223123", "23132212", "12232213", "32232211", "21332212", "13114123", "33114121", "13123213", "33123211", "11314123", "22223212", "11323213", "31323211", "23114212", "12214213", "32214211", "21314212", "24141121", "13241122", "22341121", "14132122", "14141212", "12332122", "23241211", "12341212", "24123121", "13223122", "24132211", "13232212", "11423122", "22332211", "11432212", "14114122", "14123212", "12314122", "23223211", "12323212", "21423211", "24114211", "13214212", "22314211", "11414212", "14241121", "15132121", "15141211", "13332121", "13341211", "14223121", "14232211", "12423121", "12432211", "15114121", "15123211", "13314121", "13323211", "11514121", "11523211", "14214211", "12414211", "21151123", "41151121", "11142124", "31142122", "11151214", "31151212", "21133123", "41133121", "21142213", "41142211", "11124124", "31124122", "11133214", "31133212", "21115123", "41115121", "21124213", "41124211", "11115214", "31115212", "22151122", "11251123", "31251121", "12142123", "32142121", "12151213", "32151211", "21251212", "22133122", "11233123", "22142212", "11242213", "31242211", "12124123", "32124121", "12133213", "32133211", "21233212", "22115122", "11215123", "22124212", "11224213", "31224211", "12115213", "32115211", "21215212", "23151121", "12251122", "13142122", "13151212", "11342122", "22251211", "23133121", "12233122", "23142211", "12242212", "21342211", "13124122", "13133212", "11324122", "22233211", "11333212", "23115121", "12215122", "23124211", "12224212", "21324211", "13115212", "22215211", "11315212", "13251121", "14142121", "14151211", "12342121", "13233121", "13242211", "11433121", "14124121", "14133211", "12324121", "12333211", "13215121", "13224211", "11415121", "11424211", "14115211", "12315211", "21161122", "11152123", "31152121", "11161213", "31161211", "21143122", "21152212", "11134123", "31134121", "11143213", "31143211", "21125122", "21134212", "11116123", "31116121", "11125213", "31125211", "22161121", "12152122", "12161212", "22143121", "11243122", "22152211", "11252212", "12134122", "12143212", "21243211", "22125121", "11225122", "22134211", "11234212", "12116122", "12125212", "21225211", "13152121", "13161211", "12243121", "12252211", "13134121", "13143211", "11334121", "11343211", "12225121", "12234211", "13116121", "13125211", "11316121", "11325211", "21111226", "41111224", "61111222", "31111315", "51111313", "21211135", "41211133", "61211131", "22111225", "42111223", "11211226", "31211224", "51211222", "12111316", "32111314", "52111312", "21211315", "41211313", "61211311", "22211134", "42211132", "11311135", "31311133", "51311131", "23111224", "43111222", "12211225", "32211223", "52211221", "21311224", "41311222", "13111315", "33111313", "22211314", "42211312", "11311315", "31311313", "51311311", "23211133", "43211131", "12311134", "32311132", "21411133", "41411131", "24111223", "13211224", "33211222", "22311223", "42311221", "11411224", "31411222", "14111314", "34111312", "23211313", "43211311", "12311314", "32311312", "21411313", "41411311", "24211132", "13311133", "33311131", "22411132", "11511133", "31511131", "25111222", "14211223", "34211221", "23311222", "12411223", "32411221", "21511222", "15111313", "24211312", "13311313", "33311311", "22411312", "11511313", "31511311", "25211131", "14311132", "23411131", "12511132", "21611131", "15211222", "24311221", "13411222", "22511221", "11611222", "16111312", "25211311", "14311312", "23411311", "12511312", "21611311", "31121134", "51121132", "21112135", "41112133", "61112131", "21121225", "41121223", "61121221", "11112226", "31112224", "51112222", "11121316", "31121314", "51121312", "21112315", "41112313", "61112311", "12121135", "32121133", "52121131", "21221134", "41221132", "22112134", "42112132", "11212135", "22121224", "42121222", "11221225", "31221223", "51221221", "12112225", "32112223", "52112221", "12121315", "32121313", "52121311", "21221314", "41221312", "22112314", "42112312", "11212315", "31212313", "51212311", "13121134", "33121132", "22221133", "42221131", "11321134", "31321132", "23112133", "43112131", "12212134", "23121223", "43121221", "12221224", "32221222", "21321223", "41321221", "13112224", "33112222", "13121314", "33121312", "11312224", "22221313", "42221311", "11321314", "31321312", "23112313", "43112311", "12212314", "32212312", "21312313", "41312311", "14121133", "34121131", "23221132", "12321133", "32321131", "21421132", "24112132", "13212133", "24121222", "13221223", "33221221", "11412133", "22321222", "11421223", "31421221", "14112223", "34112221", "14121313", "34121311", "12312223", "23221312", "12321313", "32321311", "21421312", "24112312", "13212313", "33212311", "22312312", "11412313", "31412311", "15121132", "24221131", "13321132", "22421131" ]), $a([ "22121116", "42121114", "31221115", "51221113", "32112115", "52112113", "21212116", "41212114", "61212112", "23121115", "43121113", "12221116", "32221114", "52221112", "21321115", "41321113", "61321111", "13112116", "33112114", "22212115", "42212113", "11312116", "31312114", "51312112", "24121114", "13221115", "33221113", "22321114", "42321112", "11421115", "31421113", "51421111", "14112115", "34112113", "23212114", "43212112", "12312115", "32312113", "52312111", "21412114", "41412112", "25121113", "14221114", "34221112", "23321113", "43321111", "12421114", "32421112", "21521113", "41521111", "15112114", "24212113", "13312114", "33312112", "22412113", "42412111", "11512114", "31512112", "15221113", "24321112", "13421113", "33421111", "22521112", "16112113", "25212112", "14312113", "34312111", "23412112", "12512113", "32512111", "21612112", "21131116", "41131114", "61131112", "31122115", "51122113", "21113116", "41113114", "61113112", "22131115", "42131113", "11231116", "31231114", "51231112", "12122116", "32122114", "52122112", "21222115", "41222113", "61222111", "22113115", "42113113", "11213116", "31213114", "51213112", "23131114", "43131112", "12231115", "32231113", "52231111", "21331114", "41331112", "13122115", "33122113", "22222114", "42222112", "11322115", "31322113", "51322111", "23113114", "43113112", "12213115", "32213113", "52213111", "21313114", "41313112", "24131113", "13231114", "33231112", "22331113", "42331111", "11431114", "31431112", "14122114", "34122112", "23222113", "43222111", "12322114", "32322112", "21422113", "41422111", "24113113", "13213114", "33213112", "22313113", "42313111", "11413114", "31413112", "25131112", "14231113", "34231111", "23331112", "12431113", "32431111", "15122113", "24222112", "13322113", "33322111", "22422112", "11522113", "31522111", "25113112", "14213113", "34213111", "23313112", "12413113", "32413111", "21513112", "15231112", "24331111", "13431112", "16122112", "25222111", "14322112", "23422111", "12522112", "15213112", "24313111", "13413112", "22513111", "11613112", "21141115", "41141113", "61141111", "11132116", "31132114", "51132112", "21123115", "41123113", "61123111", "11114116", "31114114", "51114112", "22141114", "42141112", "11241115", "31241113", "51241111", "12132115", "32132113", "52132111", "21232114", "41232112", "22123114", "42123112", "11223115", "31223113", "51223111", "12114115", "32114113", "52114111", "21214114", "41214112", "23141113", "43141111", "12241114", "32241112", "21341113", "41341111", "13132114", "33132112", "22232113", "42232111", "11332114", "31332112", "23123113", "43123111", "12223114", "32223112", "21323113", "41323111", "13114114", "33114112", "22214113", "42214111", "11314114", "31314112", "24141112", "13241113", "33241111", "22341112", "14132113", "34132111", "23232112", "12332113", "32332111", "21432112", "24123112", "13223113", "33223111", "22323112", "11423113", "31423111", "14114113", "34114111", "23214112", "12314113", "32314111", "21414112", "25141111", "14241112", "23341111", "15132112", "24232111", "13332112", "22432111", "25123111", "14223112", "23323111", "12423112", "21523111", "15114112", "24214111", "13314112", "22414111", "11514112", "15241111", "16132111", "14332111", "15223111", "13423111", "16114111", "14314111", "12514111", "21151114", "41151112", "11142115", "31142113", "51142111", "21133114", "41133112", "11124115", "31124113", "51124111", "21115114", "41115112", "22151113", "42151111", "11251114", "31251112", "12142114", "32142112", "21242113", "41242111", "22133113", "42133111", "11233114", "31233112", "12124114", "32124112", "21224113", "41224111", "22115113", "42115111", "11215114", "31215112", "23151112", "12251113", "32251111", "13142113", "33142111", "22242112", "11342113", "31342111", "23133112", "12233113", "32233111", "21333112", "13124113", "33124111", "22224112", "11324113", "31324111", "23115112", "12215113", "32215111", "21315112", "24151111", "13251112", "14142112", "23242111", "12342112", "24133111", "13233112", "22333111", "11433112", "14124112", "23224111", "12324112", "21424111", "24115111", "13215112", "22315111", "11415112", "14251111", "15142111", "13342111", "14233111", "12433111", "15124111", "13324111", "11524111", "14215111", "12415111", "21161113", "41161111", "11152114", "31152112", "21143113", "41143111", "11134114", "31134112", "21125113", "41125111", "11116114", "31116112", "22161112", "12152113", "32152111", "21252112", "22143112", "11243113", "31243111", "12134113", "32134111", "21234112", "22125112", "11225113", "31225111", "12116113", "32116111", "21216112", "23161111", "13152112", "22252111", "23143111", "12243112", "21343111", "13134112", "22234111", "11334112", "23125111", "12225112", "21325111", "13116112", "22216111", "11316112", "14152111", "13243111", "14134111", "12334111", "13225111", "11425111", "14116111", "12316111", "41111215", "61111213", "21211126", "41211124", "61211122", "22111216", "42111214", "31211215", "51211213", "22211125", "42211123", "11311126", "31311124", "51311122", "23111215", "43111213", "12211216", "32211214", "52211212", "21311215", "41311213", "61311211", "23211124", "43211122", "12311125", "32311123", "52311121", "21411124", "41411122", "24111214", "13211215", "33211213", "22311214", "42311212", "11411215", "31411213", "51411211", "24211123", "13311124", "33311122", "22411123", "42411121", "11511124", "31511122", "25111213", "14211214", "34211212", "23311213", "43311211", "12411214", "32411212", "21511213", "41511211", "25211122", "14311123", "34311121", "23411122", "12511123", "32511121", "21611122", "15211213", "24311212", "13411213", "33411211", "22511212", "11611213", "31611211", "31121125", "51121123", "21112126", "41112124", "61112122", "21121216", "41121214", "61121212", "31112215", "51112213", "12121126", "32121124", "52121122", "21221125", "41221123", "61221121", "22112125", "42112123", "11212126", "22121215", "42121213", "11221216", "31221214", "51221212", "12112216", "32112214", "52112212", "21212215", "41212213", "61212211", "13121125", "33121123", "22221124", "42221122", "11321125", "31321123", "51321121", "23112124", "43112122", "12212125", "23121214", "43121212", "12221215", "32221213", "52221211", "21321214", "41321212", "13112215", "33112213", "22212214", "42212212", "11312215", "31312213", "51312211", "14121124", "34121122", "23221123", "43221121", "12321124", "32321122", "21421123", "41421121", "24112123", "13212124", "24121213", "13221214", "33221212", "11412124", "22321213", "42321211", "11421214", "31421212", "14112214", "34112212", "23212213", "43212211", "12312214", "32312212", "21412213", "41412211", "15121123", "24221122", "13321123", "33321121", "22421122", "11521123", "31521121", "25112122", "14212123", "25121212", "14221213", "34221211", "12412123", "23321212", "12421213", "32421211", "21521212", "15112213", "24212212", "13312213", "33312211", "22412212", "11512213", "31512211", "16121122", "25221121", "14321122", "23421121", "12521122", "15212122", "15221212", "13412122", "24321211", "13421212", "11612122", "22521211", "16112212", "25212211", "14312212", "23412211", "12512212", "21612211", "11131126", "31131124", "51131122", "21122125", "41122123", "61122121", "21131215", "41131213", "61131211", "11113126", "31113124", "51113122", "11122216", "31122214", "51122212", "21113215", "41113213", "61113211", "12131125", "32131123", "52131121", "21231124", "41231122", "22122124", "42122122", "11222125", "22131214", "42131212", "11231215", "31231213", "51231211", "12113125", "32113123", "52113121", "12122215", "32122213", "52122211", "21222214", "41222212", "22113214", "42113212", "11213215", "31213213", "51213211", "13131124", "33131122", "22231123", "42231121", "11331124", "31331122", "23122123", "43122121", "12222124", "23131213", "43131211", "12231214", "32231212", "21331213", "41331211", "13113124", "33113122", "13122214", "33122212", "11313124", "22222213", "42222211", "11322214", "31322212", "23113213", "43113211", "12213214", "32213212", "21313213", "41313211", "14131123", "34131121", "23231122", "12331123", "32331121", "21431122", "24122122", "13222123", "24131212", "13231213", "33231211", "11422123", "22331212", "11431213", "31431211", "14113123", "34113121", "14122213", "34122211", "12313123", "23222212", "12322213", "32322211", "21422212", "24113212", "13213213", "33213211", "22313212", "11413213", "31413211", "15131122", "24231121", "13331122", "22431121", "25122121", "14222122", "25131211", "14231212", "12422122", "23331211", "12431212", "15113122", "15122212", "13313122", "24222211", "13322212", "11513122", "22422211", "11522212", "25113211", "14213212", "23313211", "12413212", "21513211", "16131121", "14331121", "15222121", "15231211", "13422121", "13431211", "16113121", "16122211", "14313121", "14322211", "12513121", "12522211", "15213211", "13413211", "11613211", "11141125", "31141123", "51141121", "21132124", "41132122", "21141214", "41141212", "11123125", "31123123", "51123121", "11132215", "31132213", "51132211", "21114124", "41114122", "21123214", "41123212", "11114215", "31114213", "51114211", "12141124", "32141122", "21241123", "41241121", "22132123", "42132121", "11232124", "22141213", "42141211", "11241214", "31241212", "12123124", "32123122", "12132214", "32132212", "21232213", "41232211", "22114123", "42114121", "11214124", "22123213", "42123211", "11223214", "31223212", "12114214", "32114212", "21214213", "41214211", "13141123", "33141121", "22241122", "11341123", "31341121", "23132122", "12232123", "23141212", "12241213", "32241211", "21341212", "13123123", "33123121", "13132213", "33132211", "11323123", "22232212", "11332213", "31332211", "23114122", "12214123", "23123212", "12223213", "32223211", "21323212", "13114213", "33114211", "22214212", "11314213", "31314211", "14141122", "23241121", "12341122", "24132121", "13232122", "24141211", "13241212", "11432122", "22341211", "14123122", "14132212", "12323122", "23232211", "12332212", "21432211", "24114121", "13214122", "24123211", "13223212", "11414122", "22323211", "11423212", "14114212", "23214211", "12314212", "21414211", "15141121", "13341121", "14232121", "14241211", "12432121", "15123121", "15132211", "13323121", "13332211", "11523121", "14214121", "14223211", "12414121", "12423211", "15114211", "13314211", "11514211", "11151124", "31151122", "21142123", "41142121", "21151213", "41151211", "11133124", "31133122", "11142214", "31142212", "21124123", "41124121", "21133213", "41133211", "11115124", "31115122", "11124214", "31124212", "21115213", "41115211", "12151123", "32151121", "21251122", "22142122", "11242123", "22151212", "11251213", "31251211", "12133123", "32133121", "12142213", "32142211", "21242212", "22124122", "11224123", "22133212", "11233213", "31233211", "12115123", "32115121", "12124213", "32124211", "21224212", "22115212", "11215213", "31215211", "13151122", "22251121", "23142121", "12242122", "23151211", "12251212", "13133122", "13142212", "11333122", "22242211", "11342212", "23124121", "12224122", "23133211", "12233212", "21333211", "13115122", "13124212", "11315122", "22224211", "11324212", "23115211", "12215212", "21315211", "14151121", "13242121", "13251211", "14133121", "14142211", "12333121", "12342211", "13224121", "13233211", "11424121", "11433211", "14115121", "14124211", "12315121", "12324211", "13215211", "11415211", "11161123", "31161121", "21152122", "21161212", "11143123", "31143121", "11152213", "31152211", "21134122", "21143212", "11125123", "31125121", "11134213", "31134211", "21116122", "21125212", "12161122", "22152121", "11252122", "22161211", "12143122", "12152212", "21252211", "22134121", "11234122", "22143211", "11243212", "12125122", "12134212", "21234211", "22116121", "11216122", "22125211", "11225212", "13161121", "12252121", "13143121", "13152211", "11343121", "12234121", "12243211", "13125121", "13134211", "11325121", "11334211", "12216121", "12225211", "31111225", "51111223", "21111316", "41111314", "61111312", "31211134", "51211132", "12111226", "32111224", "52111222", "21211225", "41211223", "61211221", "22111315", "42111313", "11211316", "31211314", "51211312", "12211135", "32211133", "52211131", "21311134", "41311132", "13111225", "33111223", "22211224", "42211222", "11311225", "31311223", "51311221", "23111314", "43111312", "12211315", "32211313", "52211311", "21311314", "41311312", "13211134", "33211132", "22311133", "42311131", "11411134", "31411132", "14111224", "34111222", "23211223", "43211221", "12311224", "32311222", "21411223", "41411221", "24111313", "13211314", "33211312", "22311313", "42311311", "11411314", "31411312", "14211133", "34211131", "23311132", "12411133", "32411131", "21511132", "15111223", "24211222", "13311223", "33311221", "22411222", "11511223", "31511221", "25111312", "14211313", "34211311", "23311312", "12411313", "32411311", "21511312", "15211132", "24311131", "13411132", "22511131", "11611132", "16111222", "25211221", "14311222", "23411221", "12511222", "21611221", "15211312", "24311311", "13411312", "22511311", "11611312", "21121135", "41121133", "61121131", "11112136", "31112134", "51112132", "11121226", "31121224", "51121222", "21112225", "41112223", "61112221", "21121315", "41121313", "61121311", "11112316", "31112314", "51112312", "22121134", "42121132", "11221135", "31221133", "51221131", "12112135", "32112133", "52112131", "12121225", "32121223", "52121221", "21221224", "41221222", "22112224", "42112222", "11212225", "22121314", "42121312", "11221315", "31221313", "51221311", "12112315", "32112313", "52112311", "21212314", "41212312", "23121133", "43121131", "12221134", "32221132", "21321133", "41321131", "13112134", "33112132", "13121224", "33121222", "11312134", "22221223", "42221221", "11321224", "31321222", "23112223", "43112221", "12212224", "23121313", "43121311", "12221314", "32221312", "21321313", "41321311", "13112314", "33112312", "22212313", "42212311", "11312314", "31312312", "24121132", "13221133", "33221131", "22321132", "11421133", "31421131", "14112133", "34112131", "14121223", "34121221", "12312133", "23221222", "12321223", "32321221", "21421222", "24112222", "13212223", "24121312", "13221313", "33221311", "11412223", "22321312", "11421313", "31421311", "14112313", "34112311", "23212312", "12312313", "32312311", "21412312", "25121131", "14221132", "23321131", "12421132", "21521131", "15112132", "15121222", "13312132", "24221221", "13321222", "11512132", "22421221", "11521222", "25112221", "14212222", "25121311", "14221312", "12412222", "23321311", "12421312", "21521311", "15112312", "24212311", "13312312", "22412311", "11512312", "15221131", "13421131", "16112131", "16121221", "14312131", "14321221", "12512131", "12521221", "15212221", "15221311", "13412221", "13421311", "11612221", "16112311", "14312311", "12512311", "21131134", "41131132", "11122135", "31122133", "51122131", "11131225", "31131223", "51131221", "21113134", "41113132", "21122224", "41122222", "21131314", "41131312", "11113225", "31113223", "51113221", "11122315", "31122313", "51122311", "21113314", "41113312", "22131133", "42131131", "11231134", "31231132", "12122134", "32122132", "12131224", "32131222", "21231223", "41231221", "22113133", "42113131", "11213134", "22122223", "42122221", "11222224", "22131313", "42131311", "11231314", "31231312", "12113224", "32113222", "12122314", "32122312", "21222313", "41222311", "22113313", "42113311", "11213314", "31213312", "23131132", "12231133", "32231131", "21331132", "13122133", "33122131", "13131223", "33131221", "11322133", "22231222", "11331223", "31331221", "23113132", "12213133", "23122222", "12222223", "23131312", "12231313", "32231311", "21331312", "13113223", "33113221", "13122313", "33122311", "11313223", "22222312", "11322313", "31322311", "23113312", "12213313", "32213311", "21313312", "24131131", "13231132", "22331131", "11431132", "14122132", "14131222", "12322132", "23231221", "12331222", "21431221", "24113131", "13213132", "24122221", "13222222", "24131311", "11413132", "13231312", "11422222", "22331311", "11431312", "14113222", "14122312", "12313222", "23222311", "12322312", "21422311", "24113311", "13213312", "22313311", "11413312", "14231131", "12431131", "15122131", "15131221", "13322131", "13331221", "11522131", "14213131", "14222221", "12413131", "14231311", "12422221", "12431311", "15113221", "15122311", "13313221", "13322311", "11513221", "11522311", "14213311", "12413311", "21141133", "41141131", "11132134", "31132132", "11141224", "31141222", "21123133", "41123131", "21132223", "41132221", "21141313", "41141311", "11114134", "31114132", "11123224", "31123222", "11132314", "31132312", "21114223", "41114221", "21123313", "41123311", "11114314", "31114312", "22141132", "11241133", "31241131", "12132133", "32132131", "12141223", "32141221", "21241222", "22123132", "11223133", "22132222", "11232223", "22141312", "11241313", "31241311", "12114133", "32114131", "12123223", "32123221", "12132313", "32132311", "21232312", "22114222", "11214223", "22123312", "11223313", "31223311", "12114313", "32114311", "21214312", "23141131", "12241132", "21341131", "13132132", "13141222", "11332132", "22241221", "11341222", "23123131", "12223132", "23132221", "12232222", "23141311", "12241312", "21341311", "13114132", "13123222", "11314132", "13132312", "11323222", "22232311", "11332312", "23114221", "12214222", "23123311", "12223312", "21323311", "13114312", "22214311", "11314312", "13241131", "14132131", "14141221", "12332131", "12341221", "13223131", "13232221", "11423131", "13241311", "11432221", "14114131", "14123221", "12314131", "14132311", "12323221", "12332311", "13214221", "13223311", "11414221", "11423311", "14114311", "12314311", "21151132", "11142133", "31142131", "11151223", "31151221", "21133132", "21142222", "21151312", "11124133", "31124131", "11133223", "31133221", "11142313", "31142311", "21115132", "21124222", "21133312", "11115223", "31115221", "11124313", "31124311", "22151131", "11251132", "12142132", "12151222", "21251221", "22133131", "11233132", "22142221", "11242222", "22151311", "11251312", "12124132", "12133222", "12142312", "21242311", "22115131", "11215132", "22124221", "11224222", "22133311", "11233312", "12115222", "12124312", "21224311", "12251131", "13142131", "13151221", "11342131", "12233131", "12242221", "12251311", "13124131", "13133221", "11324131", "13142311", "11333221", "11342311", "12215131", "12224221", "12233311", "13115221", "13124311", "11315221", "11324311", "21161131", "11152132", "11161222", "21143131", "21152221", "21161311", "11134132", "11143222", "11152312", "21125131", "21134221", "21143311", "11116132", "11125222", "11134312", "12152131", "12161221", "11243131", "11252221", "12134131", "12143221", "12152311", "11225131", "11234221", "11243311", "12116131", "12125221", "12134311", "21111235", "41111233", "61111231", "11111326", "31111324", "51111322", "21111415", "41111413", "61111411", "21211144", "41211142", "22111234", "42111232", "11211235", "31211233", "51211231", "12111325", "32111323", "52111321", "21211324", "41211322", "22111414", "42111412", "11211415", "31211413", "51211411", "22211143", "42211141", "11311144", "31311142", "23111233", "43111231", "12211234", "32211232", "21311233", "41311231", "13111324", "33111322", "22211323", "42211321", "11311324", "31311322", "23111413", "43111411", "12211414", "32211412", "21311413", "41311411", "23211142", "12311143", "32311141", "21411142", "24111232", "13211233", "33211231", "22311232", "11411233", "31411231", "14111323", "34111321", "23211322", "12311323", "32311321", "21411322", "24111412", "13211413", "33211411", "22311412", "11411413", "31411411", "24211141", "13311142", "22411141", "11511142", "25111231", "14211232", "23311231", "12411232", "21511231", "15111322", "24211321", "13311322", "22411321", "11511322", "25111411", "14211412", "23311411", "12411412", "21511411", "14311141", "12511141", "15211231", "13411231", "11611231", "16111321", "14311321", "12511321", "15211411", "13411411", "11611411", "31121143", "51121141", "21112144", "41112142", "21121234", "41121232", "11112235", "31112233", "51112231", "11121325", "31121323", "51121321", "21112324", "41112322", "21121414", "41121412", "11112415", "31112413", "51112411", "12121144", "32121142", "21221143", "41221141", "22112143", "42112141", "11212144", "22121233", "42121231", "11221234", "31221232", "12112234", "32112232", "12121324", "32121322", "21221323", "41221321", "22112323", "42112321", "11212324", "22121413", "42121411", "11221414", "31221412", "12112414", "32112412", "21212413", "41212411", "13121143", "33121141", "22221142", "11321143", "31321141", "23112142", "12212143", "23121232", "12221233", "32221231", "21321232", "13112233", "33112231", "13121323", "33121321", "11312233", "22221322", "11321323", "31321321", "23112322", "12212323", "23121412", "12221413", "32221411", "21321412", "13112413", "33112411", "22212412", "11312413", "31312411", "14121142", "23221141", "12321142", "21421141", "24112141", "13212142", "24121231", "13221232", "11412142", "22321231", "11421232", "14112232", "14121322", "12312232", "23221321", "12321322", "21421321", "24112321", "13212322", "24121411", "13221412", "11412322", "22321411", "11421412", "14112412", "23212411", "12312412", "21412411", "15121141", "13321141", "11521141", "14212141", "14221231", "12412141", "12421231", "15112231", "15121321", "13312231", "13321321", "11512231", "11521321", "14212321", "14221411", "12412321", "12421411", "15112411", "13312411", "11512411", "11131144", "31131142", "21122143", "41122141", "21131233", "41131231", "11113144", "31113142", "11122234", "31122232", "11131324", "31131322", "21113233", "41113231", "21122323", "41122321", "21131413", "41131411", "11113324", "31113322", "11122414", "31122412", "21113413", "41113411", "12131143", "32131141", "21231142", "22122142", "11222143", "22131232", "11231233", "31231231", "12113143", "32113141", "12122233", "32122231", "12131323", "32131321", "21231322", "22113232", "11213233", "22122322", "11222323", "22131412", "11231413", "31231411", "12113323", "32113321", "12122413", "32122411", "21222412", "22113412", "11213413", "31213411", "13131142", "22231141", "11331142", "23122141", "12222142", "23131231", "12231232", "21331231", "13113142", "13122232", "11313142", "13131322", "11322232", "22231321", "11331322", "23113231", "12213232", "23122321", "12222322", "23131411", "12231412", "21331411", "13113322", "13122412", "11313322", "22222411", "11322412", "23113411", "12213412", "21313411", "14131141", "12331141", "13222141", "13231231", "11422141", "11431231", "14113141", "14122231", "12313141", "14131321", "12322231", "12331321", "13213231", "13222321", "11413231", "13231411", "11422321", "11431411", "14113321", "14122411", "12313321", "12322411", "13213411", "11413411", "11141143", "31141141", "21132142", "21141232", "11123143", "31123141", "11132233", "31132231", "11141323", "31141321", "21114142", "21123232", "21132322", "21141412", "11114233", "31114231", "11123323", "31123321", "11132413", "31132411", "21114322", "21123412", "12141142", "21241141", "22132141", "11232142", "22141231", "11241232", "12123142", "12132232", "12141322", "21241321", "22114141", "11214142", "22123231", "11223232", "22132321", "11232322", "22141411", "11241412", "12114232", "12123322", "12132412", "21232411", "22114321", "11214322", "22123411", "11223412", "13141141", "11341141", "12232141", "12241231", "13123141", "13132231", "11323141", "13141321", "11332231", "11341321", "12214141", "12223231", "12232321", "12241411", "13114231", "13123321", "11314231", "13132411", "11323321", "11332411", "12214321", "12223411", "11151142", "21142141", "21151231", "11133142", "11142232", "11151322", "21124141", "21133231", "21142321", "21151411", "11115142", "11124232", "11133322", "11142412", "21115231", "21124321", "21133411", "12151141", "11242141", "11251231", "12133141", "12142231", "12151321", "11224141", "11233231", "11242321", "11251411", "12115141", "12124231", "12133321", "12142411", "11215231", "11224321", "11233411", "11161141", "11143141", "11152231", "11161321", "11125141", "11134231", "11143321", "11152411", "11111245", "31111243", "51111241", "21111334", "41111332", "11111425", "31111423", "51111421", "21111514", "41111512", "31211152", "12111244", "32111242", "21211243", "41211241", "22111333", "42111331", "11211334", "31211332", "12111424", "32111422", "21211423", "41211421", "22111513", "42111511", "11211514", "31211512", "12211153", "32211151", "21311152", "13111243", "33111241", "22211242", "11311243", "31311241", "23111332", "12211333", "32211331", "21311332", "13111423", "33111421", "22211422", "11311423", "31311421", "23111512", "12211513", "32211511", "21311512", "13211152", "22311151", "11411152", "14111242", "23211241", "12311242", "21411241", "24111331", "13211332", "22311331", "11411332", "14111422", "23211421", "12311422", "21411421", "24111511", "13211512", "22311511", "11411512", "14211151", "12411151", "15111241", "13311241", "11511241", "14211331", "12411331", "15111421", "13311421", "11511421", "14211511", "12411511", "21121153", "41121151", "11112154", "31112152", "11121244", "31121242", "21112243", "41112241", "21121333", "41121331", "11112334", "31112332", "11121424", "31121422", "21112423", "41112421", "21121513", "41121511", "11112514", "31112512", "22121152", "11221153", "31221151", "12112153", "32112151", "12121243", "32121241", "21221242", "22112242", "11212243", "22121332", "11221333", "31221331", "12112333", "32112331", "12121423", "32121421", "21221422", "22112422", "11212423", "22121512", "11221513", "31221511", "12112513", "32112511", "21212512", "23121151", "12221152", "21321151", "13112152", "13121242", "11312152", "22221241", "11321242", "23112241", "12212242", "23121331", "12221332", "21321331", "13112332", "13121422", "11312332", "22221421", "11321422", "23112421", "12212422", "23121511", "12221512", "21321511", "13112512", "22212511", "11312512", "13221151", "11421151", "14112151", "14121241", "12312151", "12321241", "13212241", "13221331", "11412241", "11421331", "14112331", "14121421", "12312331", "12321421", "13212421", "13221511", "11412421", "11421511", "14112511", "12312511", "21131152", "11122153", "31122151", "11131243", "31131241", "21113152", "21122242", "21131332", "11113243", "31113241", "11122333", "31122331", "11131423", "31131421", "21113332", "21122422", "21131512", "11113423", "31113421", "11122513", "31122511", "22131151", "11231152", "12122152", "12131242", "21231241", "22113151", "11213152", "22122241", "11222242", "22131331", "11231332", "12113242", "12122332", "12131422", "21231421", "22113331", "11213332", "22122421", "11222422", "22131511", "11231512", "12113422", "12122512", "21222511", "12231151", "13122151", "13131241", "11322151", "11331241", "12213151", "12222241", "12231331", "13113241", "13122331", "11313241", "13131421", "11322331", "11331421", "12213331", "12222421", "12231511", "13113421", "13122511", "11313421", "11322511", "21141151", "11132152", "11141242", "21123151", "21132241", "21141331", "11114152", "11123242", "11132332", "11141422", "21114241", "21123331", "21132421", "21141511", "11114332", "11123422", "11132512", "11241151", "12132151", "12141241", "11223151", "11232241", "11241331", "12114151", "12123241", "12132331", "12141421", "11214241", "11223331", "11232421", "11241511", "12114331", "12123421", "12132511", "11142151", "11151241", "11124151", "11133241", "11142331", "11151421", "11115241", "11124331", "11133421", "11142511", "21111253", "41111251", "11111344", "31111342", "21111433", "41111431", "11111524", "31111522", "21111613", "41111611", "21211162", "22111252", "11211253", "31211251", "12111343", "32111341", "21211342", "22111432", "11211433", "31211431", "12111523", "32111521", "21211522", "22111612", "11211613", "31211611", "22211161", "11311162", "23111251", "12211252", "21311251", "13111342", "22211341", "11311342", "23111431", "12211432", "21311431", "13111522", "22211521", "11311522", "23111611", "12211612", "21311611", "12311161", "13211251", "11411251", "14111341", "12311341", "13211431", "11411431", "14111521", "12311521", "13211611", "11411611", "31121161", "21112162", "21121252", "11112253", "31112251", "11121343", "31121341", "21112342", "21121432", "11112433", "31112431", "11121523", "31121521", "21112522", "21121612", "12121162", "21221161", "22112161", "11212162", "22121251", "11221252", "12112252", "12121342", "21221341", "22112341", "11212342", "22121431", "11221432", "12112432", "12121522", "21221521", "22112521", "11212522", "22121611", "11221612", "13121161", "11321161", "12212161", "12221251", "13112251", "13121341", "11312251", "11321341", "12212341", "12221431", "13112431", "13121521", "11312431", "11321521", "12212521", "12221611", "11131162", "21122161", "21131251", "11113162" ]) ]); - $1.parity = $a([ "1001", "0101", "1100", "0011", "1010", "0110", "1111", "0000" ]); - $1.rowbits = $a($1.r); - for (var _5z = 0, _5y = $f($1.r - 1); _5z <= _5y; _5z += 1) { - $1.i = _5z; - $k[$j++] = "p"; - if ($1.i != $f($1.r - 1)) { - $k[$j++] = $get($1.parity, $1.i); - } else { - $k[$j++] = "0000"; - } - var _65 = $k[--$j]; - $1[$k[--$j]] = _65; - $1.ccrow = $geti($1.ccs, $1.i * 8, 8); - $k[$j++] = Infinity; - for (var _6A = 0; _6A <= 7; _6A += 2) { - $aload($geti($1.ccrow, _6A, 2)); - var _6D = $k[--$j]; - var _6E = $k[--$j]; - $k[$j++] = $f(_6D + _6E * 49); - } - $1.scrow = $a(); - $k[$j++] = Infinity; - $k[$j++] = 10; - $k[$j++] = 1; - $k[$j++] = 1; - for (var _6G = 0; _6G <= 3; _6G += 1) { - $1.j = _6G; - $forall($get($get($1.patterns, $f($get($1.p, $1.j) - 48)), $get($1.scrow, $1.j)), function() { - var _6Q = $k[--$j]; - $k[$j++] = $f(_6Q - 48); - }); - } - $k[$j++] = 4; - $k[$j++] = 1; - $1.sbs = $a(); - $k[$j++] = Infinity; - var _6S = $1.sbs; - $k[$j++] = 1; - for (var _6T = 0, _6U = _6S.length; _6T < _6U; _6T++) { - var _6W = $k[--$j]; - var _6X = _6W == 0 ? 1 : 0; - $k[$j++] = _6W; - for (var _6Y = 0, _6Z = $get(_6S, _6T); _6Y < _6Z; _6Y++) { - $k[$j++] = _6X; - } - } - $astore($a($counttomark() - 1)); - var _6c = $k[--$j]; - var _6d = $k[--$j]; - $k[$j++] = _6c; - $k[$j++] = _6d; - $j--; - var _6e = $k[--$j]; - var _6f = $k[--$j]; - $k[$j++] = _6e; - $k[$j++] = _6f; - $j--; - $put($1.rowbits, $1.i, $k[--$j]); - } - $k[$j++] = Infinity; - for (var _6k = 0, _6l = 81 * $1.sepheight; _6k < _6l; _6k++) { - $k[$j++] = 1; - } - for (var _6o = 0, _6n = $f($1.r - 2); _6o <= _6n; _6o += 1) { - $1.i = _6o; - for (var _6q = 0, _6r = $1.rowheight; _6q < _6r; _6q++) { - $aload($get($1.rowbits, $1.i)); - } - for (var _6w = 0, _6x = $1.sepheight; _6w < _6x; _6w++) { - for (var _6y = 0, _6z = 10; _6y < _6z; _6y++) { - $k[$j++] = 0; - } - for (var _70 = 0, _71 = 70; _70 < _71; _70++) { - $k[$j++] = 1; - } - $k[$j++] = 0; - } - } - for (var _73 = 0, _74 = $1.rowheight; _73 < _74; _73++) { - $aload($get($1.rowbits, $f($1.r - 1))); - } - for (var _79 = 0, _7A = 81 * $1.sepheight; _79 < _7A; _79++) { - $k[$j++] = 1; - } - $1.pixs = $a(); - var _7G = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", 81 ], [ "pixy", ~~($1.pixs.length / 81) ], [ "height", ~~($1.pixs.length / 81) / 72 ], [ "width", 81 / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _7G; - if (!$1.dontdraw) { - $0.renmatrix(); - } + $1.weights = $k[--$j]; //#13715 + $1.score = 0; //#13716 + for (var _4h = 0, _4g = (~~(($f($1.r - 1) * 8) / 2)) - 1; _4h <= _4g; _4h += 1) { //#13721 + $1.i = _4h; //#13718 + $1.score = $f((($f(($get($1.ccs, $1.i * 2) * 49) + $get($1.ccs, ($1.i * 2) + 1))) * $get($1.weights, $1.i + 1)) + $1.score); //#13720 + } //#13720 + $k[$j++] = $1.score; //#13722 + }; //#13723 + $1.lastrow = $geti($1.ccs, $1.ccs.length - 8, 8); //#13724 + if ($1.r >= 7) { //#13731 + $k[$j++] = $1.cr7 * $get($1.weightz, 0); //#13728 + $k[$j++] = $1.weightz; //#13728 + $1.calccheck(); //#13728 + var _51 = $k[--$j]; //#13728 + var _53 = $f($k[--$j] + _51) % 2401; //#13729 + $k[$j++] = ~~(_53 / 49); //#13729 + $k[$j++] = _53 % 49; //#13729 + $astore($a(2)); //#13729 + $puti($1.lastrow, 0, $k[--$j]); //#13730 + } //#13730 + $1.wr1 = $f(($get($1.lastrow, 0) * 49) + $get($1.lastrow, 1)); //#13732 + $k[$j++] = $1.cr7 * $get($1.weighty, 0); //#13735 + $k[$j++] = $1.weighty; //#13735 + $1.calccheck(); //#13735 + var _5F = $k[--$j]; //#13735 + var _5L = ($f($f($k[--$j] + _5F) + ($1.wr1 * $get($1.weighty, $f(($1.r * 4) - 3))))) % 2401; //#13737 + $1.wr2 = _5L; //#13737 + $k[$j++] = ~~(_5L / 49); //#13738 + $k[$j++] = _5L % 49; //#13738 + $astore($a(2)); //#13738 + $puti($1.lastrow, 2, $k[--$j]); //#13739 + $k[$j++] = $1.cr7 * $get($1.weightx, 0); //#13742 + $k[$j++] = $1.weightx; //#13742 + $1.calccheck(); //#13742 + var _5T = $k[--$j]; //#13742 + var _5d = ($f(($f($f($k[--$j] + _5T) + ($1.wr1 * $get($1.weightx, $f(($1.r * 4) - 3))))) + ($1.wr2 * $get($1.weightx, $f(($1.r * 4) - 2))))) % 2401; //#13746 + $k[$j++] = ~~(_5d / 49); //#13746 + $k[$j++] = _5d % 49; //#13746 + $astore($a(2)); //#13746 + $puti($1.lastrow, 4, $k[--$j]); //#13747 + var _5j = $geti($1.ccs, $1.ccs.length - 8, 7); //#13750 + $k[$j++] = 0; //#13750 + for (var _5k = 0, _5l = _5j.length; _5k < _5l; _5k++) { //#13750 + var _5n = $k[--$j]; //#13750 + $k[$j++] = $f(_5n + $get(_5j, _5k)); //#13750 + } //#13750 + $put($1.ccs, $1.ccs.length - 1, $k[--$j] % 49); //#13751 + $1.patterns = $a([$a(["11521132", "25112131", "14212132", "25121221", "14221222", "12412132", "23321221", "12421222", "21521221", "15112222", "15121312", "13312222", "24221311", "13321312", "11512222", "22421311", "11521312", "25112311", "14212312", "23312311", "12412312", "21512311", "16121131", "14321131", "12521131", "15212131", "15221221", "13412131", "13421221", "11612131", "16112221", "16121311", "14312221", "14321311", "12512221", "12521311", "15212311", "13412311", "11612311", "11131135", "31131133", "51131131", "21122134", "41122132", "21131224", "41131222", "11113135", "31113133", "51113131", "11122225", "31122223", "51122221", "11131315", "31131313", "51131311", "21113224", "41113222", "21122314", "41122312", "11113315", "31113313", "51113311", "12131134", "32131132", "21231133", "41231131", "22122133", "42122131", "11222134", "22131223", "42131221", "11231224", "31231222", "12113134", "32113132", "12122224", "32122222", "12131314", "32131312", "21231313", "41231311", "22113223", "42113221", "11213224", "22122313", "42122311", "11222314", "31222312", "12113314", "32113312", "21213313", "41213311", "13131133", "33131131", "22231132", "11331133", "31331131", "23122132", "12222133", "23131222", "12231223", "32231221", "21331222", "13113133", "33113131", "13122223", "33122221", "11313133", "13131313", "33131311", "11322223", "22231312", "11331313", "31331311", "23113222", "12213223", "23122312", "12222313", "32222311", "21322312", "13113313", "33113311", "22213312", "11313313", "31313311", "14131132", "23231131", "12331132", "21431131", "24122131", "13222132", "24131221", "13231222", "11422132", "22331221", "11431222", "14113132", "14122222", "12313132", "14131312", "12322222", "23231311", "12331312", "21431311", "24113221", "13213222", "24122311", "13222312", "11413222", "22322311", "11422312", "14113312", "23213311", "12313312", "21413311", "15131131", "13331131", "14222131", "14231221", "12422131", "12431221", "15113131", "15122221", "13313131", "15131311", "13322221", "11513131", "13331311", "11522221", "14213221", "14222311", "12413221", "12422311", "15113311", "13313311", "11513311", "11141134", "31141132", "21132133", "41132131", "21141223", "41141221", "11123134", "31123132", "11132224", "31132222", "11141314", "31141312", "21114133", "41114131", "21123223", "41123221", "21132313", "41132311", "11114224", "31114222", "11123314", "31123312", "21114313", "41114311", "12141133", "32141131", "21241132", "22132132", "11232133", "22141222", "11241223", "31241221", "12123133", "32123131", "12132223", "32132221", "12141313", "32141311", "21241312", "22114132", "11214133", "22123222", "11223223", "22132312", "11232313", "31232311", "12114223", "32114221", "12123313", "32123311", "21223312", "22114312", "11214313", "31214311", "13141132", "22241131", "11341132", "23132131", "12232132", "23141221", "12241222", "21341221", "13123132", "13132222", "11323132", "13141312", "11332222", "22241311", "11341312", "23114131", "12214132", "23123221", "12223222", "23132311", "12232312", "21332311", "13114222", "13123312", "11314222", "22223311", "11323312", "23114311", "12214312", "21314311", "14141131", "12341131", "13232131", "13241221", "11432131", "14123131", "14132221", "12323131", "14141311", "12332221", "12341311", "13214131", "13223221", "11414131", "13232311", "11423221", "11432311", "14114221", "14123311", "12314221", "12323311", "13214311", "11414311", "11151133", "31151131", "21142132", "21151222", "11133133", "31133131", "11142223", "31142221", "11151313", "31151311", "21124132", "21133222", "21142312", "11115133", "31115131", "11124223", "31124221", "11133313", "31133311", "21115222", "21124312", "12151132", "21251131", "22142131", "11242132", "22151221", "11251222", "12133132", "12142222", "12151312", "21251311", "22124131", "11224132", "22133221", "11233222", "22142311", "11242312", "12115132", "12124222", "12133312", "21233311", "22115221", "11215222", "22124311", "11224312", "13151131", "12242131", "12251221", "13133131", "13142221", "11333131", "13151311", "11342221", "12224131", "12233221", "12242311", "13115131", "13124221", "11315131", "13133311", "11324221", "11333311", "12215221", "12224311", "11161132", "21152131", "21161221", "11143132", "11152222", "11161312", "21134131", "21143221", "21152311", "11125132", "11134222", "11143312", "21116131", "21125221", "21134311", "12161131", "11252131", "12143131", "12152221", "12161311", "11234131", "11243221", "11252311", "12125131", "12134221", "12143311", "11216131", "11225221", "11234311", "11111236", "31111234", "51111232", "21111325", "41111323", "61111321", "11111416", "31111414", "51111412", "31211143", "51211141", "12111235", "32111233", "52111231", "21211234", "41211232", "22111324", "42111322", "11211325", "31211323", "51211321", "12111415", "32111413", "52111411", "21211414", "41211412", "12211144", "32211142", "21311143", "41311141", "13111234", "33111232", "22211233", "42211231", "11311234", "31311232", "23111323", "43111321", "12211324", "32211322", "21311323", "41311321", "13111414", "33111412", "22211413", "42211411", "11311414", "31311412", "13211143", "33211141", "22311142", "11411143", "31411141", "14111233", "34111231", "23211232", "12311233", "32311231", "21411232", "24111322", "13211323", "33211321", "22311322", "11411323", "31411321", "14111413", "34111411", "23211412", "12311413", "32311411", "21411412", "14211142", "23311141", "12411142", "21511141", "15111232", "24211231", "13311232", "22411231", "11511232", "25111321", "14211322", "23311321", "12411322", "21511321", "15111412", "24211411", "13311412", "22411411", "11511412", "15211141", "13411141", "11611141", "16111231", "14311231", "12511231", "15211321", "13411321", "11611321", "16111411", "14311411", "12511411", "21121144", "41121142", "11112145", "31112143", "51112141", "11121235", "31121233", "51121231", "21112234", "41112232", "21121324", "41121322", "11112325", "31112323", "51112321", "11121415", "31121413", "51121411", "21112414", "41112412", "22121143", "42121141", "11221144", "31221142", "12112144", "32112142", "12121234", "32121232", "21221233", "41221231", "22112233", "42112231", "11212234", "22121323", "42121321", "11221324", "31221322", "12112324", "32112322", "12121414", "32121412", "21221413", "41221411", "22112413", "42112411", "11212414", "31212412", "23121142", "12221143", "32221141", "21321142", "13112143", "33112141", "13121233", "33121231", "11312143", "22221232", "11321233", "31321231", "23112232", "12212233", "23121322", "12221323", "32221321", "21321322", "13112323", "33112321", "13121413", "33121411", "11312323", "22221412", "11321413", "31321411", "23112412", "12212413", "32212411", "21312412", "24121141", "13221142", "22321141", "11421142", "14112142", "14121232", "12312142", "23221231", "12321232", "21421231", "24112231", "13212232", "24121321", "13221322", "11412232", "22321321", "11421322", "14112322", "14121412", "12312322", "23221411", "12321412", "21421411", "24112411", "13212412", "22312411", "11412412", "14221141", "12421141", "15112141", "15121231", "13312141", "13321231", "11512141", "11521231", "14212231", "14221321", "12412231", "12421321", "15112321", "15121411", "13312321", "13321411", "11512321", "11521411", "14212411", "12412411", "21131143", "41131141", "11122144", "31122142", "11131234", "31131232", "21113143", "41113141", "21122233", "41122231", "21131323", "41131321", "11113234", "31113232", "11122324", "31122322", "11131414", "31131412", "21113323", "41113321", "21122413", "41122411", "11113414", "31113412", "22131142", "11231143", "31231141", "12122143", "32122141", "12131233", "32131231", "21231232", "22113142", "11213143", "22122232", "11222233", "22131322", "11231323", "31231321", "12113233", "32113231", "12122323", "32122321", "12131413", "32131411", "21231412", "22113322", "11213323", "22122412", "11222413", "31222411", "12113413", "32113411", "21213412", "23131141", "12231142", "21331141", "13122142", "13131232", "11322142", "22231231", "11331232", "23113141", "12213142", "23122231", "12222232", "23131321", "12231322", "21331321", "13113232", "13122322", "11313232", "13131412", "11322322", "22231411", "11331412", "23113321", "12213322", "23122411", "12222412", "21322411", "13113412", "22213411", "11313412", "13231141", "11431141", "14122141", "14131231", "12322141", "12331231", "13213141", "13222231", "11413141", "13231321", "11422231", "11431321", "14113231", "14122321", "12313231", "14131411", "12322321", "12331411", "13213321", "13222411", "11413321", "11422411", "14113411", "12313411", "21141142", "11132143", "31132141", "11141233", "31141231", "21123142", "21132232", "21141322", "11114143", "31114141", "11123233", "31123231", "11132323", "31132321", "11141413", "31141411", "21114232", "21123322", "21132412", "11114323", "31114321", "11123413", "31123411", "22141141", "11241142", "12132142", "12141232", "21241231", "22123141", "11223142", "22132231", "11232232", "22141321", "11241322", "12114142", "12123232", "12132322", "12141412", "21241411", "22114231", "11214232", "22123321", "11223322", "22132411", "11232412", "12114322", "12123412", "21223411", "12241141", "13132141", "13141231", "11332141", "11341231", "12223141", "12232231", "12241321", "13114141", "13123231", "11314141", "13132321", "11323231", "13141411", "11332321", "11341411", "12214231", "12223321", "12232411", "13114321", "13123411", "11314321", "11323411", "21151141", "11142142", "11151232", "21133141", "21142231", "21151321", "11124142", "11133232", "11142322", "11151412", "21115141", "21124231", "21133321", "21142411", "11115232", "11124322", "11133412", "11251141", "12142141", "12151231", "11233141", "11242231", "11251321", "12124141", "12133231", "12142321", "12151411", "11215141", "11224231", "11233321", "11242411", "12115231", "12124321", "12133411", "11152141", "11161231", "11134141", "11143231", "11152321", "11161411", "11116141", "11125231", "11134321", "11143411", "21111244", "41111242", "11111335", "31111333", "51111331", "21111424", "41111422", "11111515", "31111513", "51111511", "21211153", "41211151", "22111243", "42111241", "11211244", "31211242", "12111334", "32111332", "21211333", "41211331", "22111423", "42111421", "11211424", "31211422", "12111514", "32111512", "21211513", "41211511", "22211152", "11311153", "31311151", "23111242", "12211243", "32211241", "21311242", "13111333", "33111331", "22211332", "11311333", "31311331", "23111422", "12211423", "32211421", "21311422", "13111513", "33111511", "22211512", "11311513", "31311511", "23211151", "12311152", "21411151", "24111241", "13211242", "22311241", "11411242", "14111332", "23211331", "12311332", "21411331", "24111421", "13211422", "22311421", "11411422", "14111512", "23211511", "12311512", "21411511", "13311151", "11511151", "14211241", "12411241", "15111331", "13311331", "11511331", "14211421", "12411421", "15111511", "13311511", "11511511", "31121152", "21112153", "41112151", "21121243", "41121241", "11112244", "31112242", "11121334", "31121332", "21112333", "41112331", "21121423", "41121421", "11112424", "31112422", "11121514", "31121512", "21112513", "41112511", "12121153", "32121151", "21221152", "22112152", "11212153", "22121242", "11221243", "31221241", "12112243", "32112241", "12121333", "32121331", "21221332", "22112332", "11212333", "22121422", "11221423", "31221421", "12112423", "32112421", "12121513", "32121511", "21221512", "22112512", "11212513", "31212511", "13121152", "22221151", "11321152", "23112151", "12212152", "23121241", "12221242", "21321241", "13112242", "13121332", "11312242", "22221331", "11321332", "23112331", "12212332", "23121421", "12221422", "21321421", "13112422", "13121512", "11312422", "22221511", "11321512", "23112511", "12212512", "21312511", "14121151", "12321151", "13212151", "13221241", "11412151", "11421241", "14112241", "14121331", "12312241", "12321331", "13212331", "13221421", "11412331", "11421421", "14112421", "14121511", "12312421", "12321511", "13212511", "11412511", "11131153", "31131151", "21122152", "21131242", "11113153", "31113151", "11122243", "31122241", "11131333", "31131331", "21113242", "21122332", "21131422", "11113333", "31113331", "11122423", "31122421", "11131513", "31131511", "21113422", "21122512", "12131152", "21231151", "22122151", "11222152", "22131241", "11231242", "12113152", "12122242", "12131332", "21231331", "22113241", "11213242", "22122331", "11222332", "22131421", "11231422", "12113332", "12122422", "12131512", "21231511", "22113421", "11213422", "22122511", "11222512", "13131151", "11331151", "12222151", "12231241", "13113151", "13122241", "11313151", "13131331", "11322241", "11331331", "12213241", "12222331", "12231421", "13113331", "13122421", "11313331", "13131511", "11322421", "11331511", "12213421", "12222511", "11141152", "21132151", "21141241", "11123152", "11132242", "11141332", "21114151", "21123241", "21132331", "21141421", "11114242", "11123332", "11132422", "11141512", "21114331", "21123421", "21132511", "12141151", "11232151", "11241241", "12123151", "12132241", "12141331", "11214151", "11223241", "11232331", "11241421", "12114241", "12123331", "12132421", "12141511", "11214331", "11223421", "11232511", "11151151", "11133151", "11142241", "11151331", "11115151", "11124241", "11133331", "11142421", "11151511", "11111254", "31111252", "21111343", "41111341", "11111434", "31111432", "21111523", "41111521", "11111614", "31111612", "31211161", "12111253", "32111251", "21211252", "22111342", "11211343", "31211341", "12111433", "32111431", "21211432", "22111522", "11211523", "31211521", "12111613", "32111611", "21211612", "12211162", "21311161", "13111252", "22211251", "11311252", "23111341", "12211342", "21311341", "13111432", "22211431", "11311432", "23111521", "12211522", "21311521", "13111612", "22211611", "11311612", "13211161", "11411161", "14111251", "12311251", "13211341", "11411341", "14111431", "12311431", "13211521", "11411521", "14111611", "12311611", "21121162", "11112163", "31112161", "11121253", "31121251", "21112252", "21121342", "11112343", "31112341", "11121433", "31121431", "21112432", "21121522", "11112523", "31112521", "11121613", "31121611", "22121161", "11221162", "12112162", "12121252", "21221251", "22112251", "11212252", "22121341", "11221342", "12112342", "12121432", "21221431", "22112431", "11212432", "22121521", "11221522", "12112522", "12121612", "21221611", "12221161", "13112161", "13121251", "11312161", "11321251", "32121115", "52121113", "21221116", "41221114", "61221112", "22112116", "42112114", "31212115", "51212113", "13121116", "33121114", "22221115", "42221113", "11321116", "31321114", "51321112", "23112115", "43112113", "12212116", "32212114", "52212112", "21312115", "41312113", "61312111", "14121115", "34121113", "23221114", "43221112", "12321115", "32321113", "52321111", "21421114", "41421112", "24112114", "13212115", "33212113", "22312114", "42312112", "11412115", "31412113", "51412111", "15121114", "24221113", "13321114", "33321112", "22421113", "42421111", "11521114", "31521112", "25112113", "14212114", "34212112", "23312113", "43312111", "12412114", "32412112", "21512113", "41512111", "16121113", "25221112", "14321113", "34321111", "23421112", "12521113", "32521111", "15212113", "24312112", "13412113", "33412111", "22512112", "11612113", "31612111", "31131115", "51131113", "21122116", "41122114", "61122112", "31113115", "51113113", "12131116", "32131114", "52131112", "21231115", "41231113", "61231111", "22122115", "42122113", "11222116", "31222114", "51222112", "12113116", "32113114", "52113112", "21213115", "41213113", "61213111", "13131115", "33131113", "22231114", "42231112", "11331115", "31331113", "51331111", "23122114", "43122112", "12222115", "32222113", "52222111", "21322114", "41322112", "13113115", "33113113", "22213114", "42213112", "11313115", "31313113", "51313111", "14131114", "34131112", "23231113", "43231111", "12331114", "32331112", "21431113", "41431111", "24122113", "13222114", "33222112", "22322113", "42322111", "11422114", "31422112", "14113114", "34113112", "23213113", "43213111", "12313114", "32313112", "21413113", "41413111", "15131113", "24231112", "13331113", "33331111", "22431112", "25122112", "14222113", "34222111", "23322112", "12422113", "32422111", "21522112", "15113113", "24213112", "13313113", "33313111", "22413112", "11513113", "31513111", "16131112", "25231111", "14331112", "23431111", "15222112", "24322111", "13422112", "22522111", "16113112", "25213111", "14313112", "23413111", "12513112", "21613111", "11141116", "31141114", "51141112", "21132115", "41132113", "61132111", "11123116", "31123114", "51123112", "21114115", "41114113", "61114111", "12141115", "32141113", "52141111", "21241114", "41241112", "22132114", "42132112", "11232115", "31232113", "51232111", "12123115", "32123113", "52123111", "21223114", "41223112", "22114114", "42114112", "11214115", "31214113", "51214111", "13141114", "33141112", "22241113", "42241111", "11341114", "31341112", "23132113", "43132111", "12232114", "32232112", "21332113", "41332111", "13123114", "33123112", "22223113", "42223111", "11323114", "31323112", "23114113", "43114111", "12214114", "32214112", "21314113", "41314111", "14141113", "34141111", "23241112", "12341113", "32341111", "24132112", "13232113", "33232111", "22332112", "11432113", "31432111", "14123113", "34123111", "23223112", "12323113", "32323111", "21423112", "24114112", "13214113", "33214111", "22314112", "11414113", "31414111", "15141112", "24241111", "13341112", "25132111", "14232112", "23332111", "12432112", "15123112", "24223111", "13323112", "22423111", "11523112", "25114111", "14214112", "23314111", "12414112", "21514111", "16141111", "14341111", "15232111", "13432111", "16123111", "14323111", "12523111", "15214111", "13414111", "11614111", "11151115", "31151113", "51151111", "21142114", "41142112", "11133115", "31133113", "51133111", "21124114", "41124112", "11115115", "31115113", "51115111", "12151114", "32151112", "21251113", "41251111", "22142113", "42142111", "11242114", "31242112", "12133114", "32133112", "21233113", "41233111", "22124113", "42124111", "11224114", "31224112", "12115114", "32115112", "21215113", "41215111", "13151113", "33151111", "22251112", "23142112", "12242113", "32242111", "21342112", "13133113", "33133111", "22233112", "11333113", "31333111", "23124112", "12224113", "32224111", "21324112", "13115113", "33115111", "22215112", "11315113", "31315111", "14151112", "23251111", "24142111", "13242112", "22342111", "14133112", "23233111", "12333112", "21433111", "24124111", "13224112", "22324111", "11424112", "14115112", "23215111", "12315112", "21415111", "15151111", "14242111", "15133111", "13333111", "14224111", "12424111", "15115111", "13315111", "11515111", "11161114", "31161112", "21152113", "41152111", "11143114", "31143112", "21134113", "41134111", "11125114", "31125112", "21116113", "41116111", "12161113", "32161111", "22152112", "11252113", "31252111", "12143113", "32143111", "21243112", "22134112", "11234113", "31234111", "12125113", "32125111", "21225112", "22116112", "11216113", "31216111", "13161112", "23152111", "12252112", "13143112", "22243111", "11343112", "23134111", "12234112", "21334111", "13125112", "22225111", "11325112", "23116111", "12216112", "21316111", "14161111", "13252111", "14143111", "12343111", "13234111", "11434111", "14125111", "12325111", "13216111", "11416111", "31111216", "51111214", "31211125", "51211123", "32111215", "52111213", "21211216", "41211214", "61211212", "12211126", "32211124", "52211122", "21311125", "41311123", "61311121", "13111216", "33111214", "22211215", "42211213", "11311216", "31311214", "51311212", "13211125", "33211123", "22311124", "42311122", "11411125", "31411123", "51411121", "14111215", "34111213", "23211214", "43211212", "12311215", "32311213", "52311211", "21411214", "41411212", "14211124", "34211122", "23311123", "43311121", "12411124", "32411122", "21511123", "41511121", "15111214", "24211213", "13311214", "33311212", "22411213", "42411211", "11511214", "31511212", "15211123", "24311122", "13411123", "33411121", "22511122", "11611123", "31611121", "16111213", "25211212", "14311213", "34311211", "23411212", "12511213", "32511211", "21611212", "21121126", "41121124", "61121122", "31112125", "51112123", "31121215", "51121213", "21112216", "41112214", "61112212", "22121125", "42121123", "11221126", "31221124", "51221122", "12112126", "32112124", "52112122", "12121216", "32121214", "52121212", "21221215", "41221213", "61221211", "22112215", "42112213", "11212216", "31212214", "51212212", "23121124", "43121122", "12221125", "32221123", "52221121", "21321124", "41321122", "13112125", "33112123", "13121215", "33121213", "11312125", "22221214", "42221212", "11321215", "31321213", "51321211", "23112214", "43112212", "12212215", "32212213", "52212211", "21312214", "41312212", "24121123", "13221124", "33221122", "22321123", "42321121", "11421124", "31421122", "14112124", "34112122", "14121214", "34121212", "12312124", "23221213", "43221211", "12321214", "32321212", "21421213", "41421211", "24112213", "13212214", "33212212", "22312213", "42312211", "11412214", "31412212", "25121122", "14221123", "34221121", "23321122", "12421123", "32421121", "21521122", "15112123", "15121213", "13312123", "24221212", "13321213", "33321211", "11512123", "22421212", "11521213", "31521211", "25112212", "14212213", "34212211", "23312212", "12412213", "32412211", "21512212", "15221122", "24321121", "13421122", "22521121", "16112122", "16121212", "14312122", "25221211", "14321212", "12512122", "23421211", "12521212", "15212212", "24312211", "13412212", "22512211", "11612212", "21131125", "41131123", "61131121", "11122126", "31122124", "51122122", "11131216", "31131214", "51131212", "21113125", "41113123", "61113121", "21122215", "41122213", "61122211", "11113216", "31113214", "51113212", "22131124", "42131122", "11231125", "31231123", "51231121", "12122125", "32122123", "52122121", "12131215", "32131213", "52131211", "21231214", "41231212", "22113124", "42113122", "11213125", "22122214", "42122212", "11222215", "31222213", "51222211", "12113215", "32113213", "52113211", "21213214", "41213212", "23131123", "43131121", "12231124", "32231122", "21331123", "41331121", "13122124", "33122122", "13131214", "33131212", "11322124", "22231213", "42231211", "11331214", "31331212", "23113123", "43113121", "12213124", "23122213", "43122211", "12222214", "32222212", "21322213", "41322211", "13113214", "33113212", "22213213", "42213211", "11313214", "31313212", "24131122", "13231123", "33231121", "22331122", "11431123", "31431121", "14122123", "34122121", "14131213", "34131211", "12322123", "23231212", "12331213", "32331211", "21431212", "24113122", "13213123", "24122212", "13222213", "33222211", "11413123", "22322212", "11422213", "31422211", "14113213", "34113211", "23213212", "12313213", "32313211", "21413212", "25131121", "14231122", "23331121", "12431122", "15122122", "15131212", "13322122", "24231211", "13331212", "11522122", "22431211", "25113121", "14213122", "25122211", "14222212", "12413122", "23322211", "12422212", "21522211", "15113212", "24213211", "13313212", "22413211", "11513212", "15231121", "13431121", "16122121", "16131211", "14322121", "14331211", "12522121", "15213121", "15222211", "13413121", "13422211", "11613121", "16113211", "14313211", "12513211", "21141124", "41141122", "11132125", "31132123", "51132121", "11141215", "31141213", "51141211", "21123124", "41123122", "21132214", "41132212", "11114125", "31114123", "51114121", "11123215", "31123213", "51123211", "21114214", "41114212", "22141123", "42141121", "11241124", "31241122", "12132124", "32132122", "12141214", "32141212", "21241213", "41241211", "22123123", "42123121", "11223124", "22132213", "42132211", "11232214", "31232212", "12114124", "32114122", "12123214", "32123212", "21223213", "41223211", "22114213", "42114211", "11214214", "31214212", "23141122", "12241123", "32241121", "21341122", "13132123", "33132121", "13141213", "33141211", "11332123", "22241212", "11341213", "31341211", "23123122", "12223123", "23132212", "12232213", "32232211", "21332212", "13114123", "33114121", "13123213", "33123211", "11314123", "22223212", "11323213", "31323211", "23114212", "12214213", "32214211", "21314212", "24141121", "13241122", "22341121", "14132122", "14141212", "12332122", "23241211", "12341212", "24123121", "13223122", "24132211", "13232212", "11423122", "22332211", "11432212", "14114122", "14123212", "12314122", "23223211", "12323212", "21423211", "24114211", "13214212", "22314211", "11414212", "14241121", "15132121", "15141211", "13332121", "13341211", "14223121", "14232211", "12423121", "12432211", "15114121", "15123211", "13314121", "13323211", "11514121", "11523211", "14214211", "12414211", "21151123", "41151121", "11142124", "31142122", "11151214", "31151212", "21133123", "41133121", "21142213", "41142211", "11124124", "31124122", "11133214", "31133212", "21115123", "41115121", "21124213", "41124211", "11115214", "31115212", "22151122", "11251123", "31251121", "12142123", "32142121", "12151213", "32151211", "21251212", "22133122", "11233123", "22142212", "11242213", "31242211", "12124123", "32124121", "12133213", "32133211", "21233212", "22115122", "11215123", "22124212", "11224213", "31224211", "12115213", "32115211", "21215212", "23151121", "12251122", "13142122", "13151212", "11342122", "22251211", "23133121", "12233122", "23142211", "12242212", "21342211", "13124122", "13133212", "11324122", "22233211", "11333212", "23115121", "12215122", "23124211", "12224212", "21324211", "13115212", "22215211", "11315212", "13251121", "14142121", "14151211", "12342121", "13233121", "13242211", "11433121", "14124121", "14133211", "12324121", "12333211", "13215121", "13224211", "11415121", "11424211", "14115211", "12315211", "21161122", "11152123", "31152121", "11161213", "31161211", "21143122", "21152212", "11134123", "31134121", "11143213", "31143211", "21125122", "21134212", "11116123", "31116121", "11125213", "31125211", "22161121", "12152122", "12161212", "22143121", "11243122", "22152211", "11252212", "12134122", "12143212", "21243211", "22125121", "11225122", "22134211", "11234212", "12116122", "12125212", "21225211", "13152121", "13161211", "12243121", "12252211", "13134121", "13143211", "11334121", "11343211", "12225121", "12234211", "13116121", "13125211", "11316121", "11325211", "21111226", "41111224", "61111222", "31111315", "51111313", "21211135", "41211133", "61211131", "22111225", "42111223", "11211226", "31211224", "51211222", "12111316", "32111314", "52111312", "21211315", "41211313", "61211311", "22211134", "42211132", "11311135", "31311133", "51311131", "23111224", "43111222", "12211225", "32211223", "52211221", "21311224", "41311222", "13111315", "33111313", "22211314", "42211312", "11311315", "31311313", "51311311", "23211133", "43211131", "12311134", "32311132", "21411133", "41411131", "24111223", "13211224", "33211222", "22311223", "42311221", "11411224", "31411222", "14111314", "34111312", "23211313", "43211311", "12311314", "32311312", "21411313", "41411311", "24211132", "13311133", "33311131", "22411132", "11511133", "31511131", "25111222", "14211223", "34211221", "23311222", "12411223", "32411221", "21511222", "15111313", "24211312", "13311313", "33311311", "22411312", "11511313", "31511311", "25211131", "14311132", "23411131", "12511132", "21611131", "15211222", "24311221", "13411222", "22511221", "11611222", "16111312", "25211311", "14311312", "23411311", "12511312", "21611311", "31121134", "51121132", "21112135", "41112133", "61112131", "21121225", "41121223", "61121221", "11112226", "31112224", "51112222", "11121316", "31121314", "51121312", "21112315", "41112313", "61112311", "12121135", "32121133", "52121131", "21221134", "41221132", "22112134", "42112132", "11212135", "22121224", "42121222", "11221225", "31221223", "51221221", "12112225", "32112223", "52112221", "12121315", "32121313", "52121311", "21221314", "41221312", "22112314", "42112312", "11212315", "31212313", "51212311", "13121134", "33121132", "22221133", "42221131", "11321134", "31321132", "23112133", "43112131", "12212134", "23121223", "43121221", "12221224", "32221222", "21321223", "41321221", "13112224", "33112222", "13121314", "33121312", "11312224", "22221313", "42221311", "11321314", "31321312", "23112313", "43112311", "12212314", "32212312", "21312313", "41312311", "14121133", "34121131", "23221132", "12321133", "32321131", "21421132", "24112132", "13212133", "24121222", "13221223", "33221221", "11412133", "22321222", "11421223", "31421221", "14112223", "34112221", "14121313", "34121311", "12312223", "23221312", "12321313", "32321311", "21421312", "24112312", "13212313", "33212311", "22312312", "11412313", "31412311", "15121132", "24221131", "13321132", "22421131"]), $a(["22121116", "42121114", "31221115", "51221113", "32112115", "52112113", "21212116", "41212114", "61212112", "23121115", "43121113", "12221116", "32221114", "52221112", "21321115", "41321113", "61321111", "13112116", "33112114", "22212115", "42212113", "11312116", "31312114", "51312112", "24121114", "13221115", "33221113", "22321114", "42321112", "11421115", "31421113", "51421111", "14112115", "34112113", "23212114", "43212112", "12312115", "32312113", "52312111", "21412114", "41412112", "25121113", "14221114", "34221112", "23321113", "43321111", "12421114", "32421112", "21521113", "41521111", "15112114", "24212113", "13312114", "33312112", "22412113", "42412111", "11512114", "31512112", "15221113", "24321112", "13421113", "33421111", "22521112", "16112113", "25212112", "14312113", "34312111", "23412112", "12512113", "32512111", "21612112", "21131116", "41131114", "61131112", "31122115", "51122113", "21113116", "41113114", "61113112", "22131115", "42131113", "11231116", "31231114", "51231112", "12122116", "32122114", "52122112", "21222115", "41222113", "61222111", "22113115", "42113113", "11213116", "31213114", "51213112", "23131114", "43131112", "12231115", "32231113", "52231111", "21331114", "41331112", "13122115", "33122113", "22222114", "42222112", "11322115", "31322113", "51322111", "23113114", "43113112", "12213115", "32213113", "52213111", "21313114", "41313112", "24131113", "13231114", "33231112", "22331113", "42331111", "11431114", "31431112", "14122114", "34122112", "23222113", "43222111", "12322114", "32322112", "21422113", "41422111", "24113113", "13213114", "33213112", "22313113", "42313111", "11413114", "31413112", "25131112", "14231113", "34231111", "23331112", "12431113", "32431111", "15122113", "24222112", "13322113", "33322111", "22422112", "11522113", "31522111", "25113112", "14213113", "34213111", "23313112", "12413113", "32413111", "21513112", "15231112", "24331111", "13431112", "16122112", "25222111", "14322112", "23422111", "12522112", "15213112", "24313111", "13413112", "22513111", "11613112", "21141115", "41141113", "61141111", "11132116", "31132114", "51132112", "21123115", "41123113", "61123111", "11114116", "31114114", "51114112", "22141114", "42141112", "11241115", "31241113", "51241111", "12132115", "32132113", "52132111", "21232114", "41232112", "22123114", "42123112", "11223115", "31223113", "51223111", "12114115", "32114113", "52114111", "21214114", "41214112", "23141113", "43141111", "12241114", "32241112", "21341113", "41341111", "13132114", "33132112", "22232113", "42232111", "11332114", "31332112", "23123113", "43123111", "12223114", "32223112", "21323113", "41323111", "13114114", "33114112", "22214113", "42214111", "11314114", "31314112", "24141112", "13241113", "33241111", "22341112", "14132113", "34132111", "23232112", "12332113", "32332111", "21432112", "24123112", "13223113", "33223111", "22323112", "11423113", "31423111", "14114113", "34114111", "23214112", "12314113", "32314111", "21414112", "25141111", "14241112", "23341111", "15132112", "24232111", "13332112", "22432111", "25123111", "14223112", "23323111", "12423112", "21523111", "15114112", "24214111", "13314112", "22414111", "11514112", "15241111", "16132111", "14332111", "15223111", "13423111", "16114111", "14314111", "12514111", "21151114", "41151112", "11142115", "31142113", "51142111", "21133114", "41133112", "11124115", "31124113", "51124111", "21115114", "41115112", "22151113", "42151111", "11251114", "31251112", "12142114", "32142112", "21242113", "41242111", "22133113", "42133111", "11233114", "31233112", "12124114", "32124112", "21224113", "41224111", "22115113", "42115111", "11215114", "31215112", "23151112", "12251113", "32251111", "13142113", "33142111", "22242112", "11342113", "31342111", "23133112", "12233113", "32233111", "21333112", "13124113", "33124111", "22224112", "11324113", "31324111", "23115112", "12215113", "32215111", "21315112", "24151111", "13251112", "14142112", "23242111", "12342112", "24133111", "13233112", "22333111", "11433112", "14124112", "23224111", "12324112", "21424111", "24115111", "13215112", "22315111", "11415112", "14251111", "15142111", "13342111", "14233111", "12433111", "15124111", "13324111", "11524111", "14215111", "12415111", "21161113", "41161111", "11152114", "31152112", "21143113", "41143111", "11134114", "31134112", "21125113", "41125111", "11116114", "31116112", "22161112", "12152113", "32152111", "21252112", "22143112", "11243113", "31243111", "12134113", "32134111", "21234112", "22125112", "11225113", "31225111", "12116113", "32116111", "21216112", "23161111", "13152112", "22252111", "23143111", "12243112", "21343111", "13134112", "22234111", "11334112", "23125111", "12225112", "21325111", "13116112", "22216111", "11316112", "14152111", "13243111", "14134111", "12334111", "13225111", "11425111", "14116111", "12316111", "41111215", "61111213", "21211126", "41211124", "61211122", "22111216", "42111214", "31211215", "51211213", "22211125", "42211123", "11311126", "31311124", "51311122", "23111215", "43111213", "12211216", "32211214", "52211212", "21311215", "41311213", "61311211", "23211124", "43211122", "12311125", "32311123", "52311121", "21411124", "41411122", "24111214", "13211215", "33211213", "22311214", "42311212", "11411215", "31411213", "51411211", "24211123", "13311124", "33311122", "22411123", "42411121", "11511124", "31511122", "25111213", "14211214", "34211212", "23311213", "43311211", "12411214", "32411212", "21511213", "41511211", "25211122", "14311123", "34311121", "23411122", "12511123", "32511121", "21611122", "15211213", "24311212", "13411213", "33411211", "22511212", "11611213", "31611211", "31121125", "51121123", "21112126", "41112124", "61112122", "21121216", "41121214", "61121212", "31112215", "51112213", "12121126", "32121124", "52121122", "21221125", "41221123", "61221121", "22112125", "42112123", "11212126", "22121215", "42121213", "11221216", "31221214", "51221212", "12112216", "32112214", "52112212", "21212215", "41212213", "61212211", "13121125", "33121123", "22221124", "42221122", "11321125", "31321123", "51321121", "23112124", "43112122", "12212125", "23121214", "43121212", "12221215", "32221213", "52221211", "21321214", "41321212", "13112215", "33112213", "22212214", "42212212", "11312215", "31312213", "51312211", "14121124", "34121122", "23221123", "43221121", "12321124", "32321122", "21421123", "41421121", "24112123", "13212124", "24121213", "13221214", "33221212", "11412124", "22321213", "42321211", "11421214", "31421212", "14112214", "34112212", "23212213", "43212211", "12312214", "32312212", "21412213", "41412211", "15121123", "24221122", "13321123", "33321121", "22421122", "11521123", "31521121", "25112122", "14212123", "25121212", "14221213", "34221211", "12412123", "23321212", "12421213", "32421211", "21521212", "15112213", "24212212", "13312213", "33312211", "22412212", "11512213", "31512211", "16121122", "25221121", "14321122", "23421121", "12521122", "15212122", "15221212", "13412122", "24321211", "13421212", "11612122", "22521211", "16112212", "25212211", "14312212", "23412211", "12512212", "21612211", "11131126", "31131124", "51131122", "21122125", "41122123", "61122121", "21131215", "41131213", "61131211", "11113126", "31113124", "51113122", "11122216", "31122214", "51122212", "21113215", "41113213", "61113211", "12131125", "32131123", "52131121", "21231124", "41231122", "22122124", "42122122", "11222125", "22131214", "42131212", "11231215", "31231213", "51231211", "12113125", "32113123", "52113121", "12122215", "32122213", "52122211", "21222214", "41222212", "22113214", "42113212", "11213215", "31213213", "51213211", "13131124", "33131122", "22231123", "42231121", "11331124", "31331122", "23122123", "43122121", "12222124", "23131213", "43131211", "12231214", "32231212", "21331213", "41331211", "13113124", "33113122", "13122214", "33122212", "11313124", "22222213", "42222211", "11322214", "31322212", "23113213", "43113211", "12213214", "32213212", "21313213", "41313211", "14131123", "34131121", "23231122", "12331123", "32331121", "21431122", "24122122", "13222123", "24131212", "13231213", "33231211", "11422123", "22331212", "11431213", "31431211", "14113123", "34113121", "14122213", "34122211", "12313123", "23222212", "12322213", "32322211", "21422212", "24113212", "13213213", "33213211", "22313212", "11413213", "31413211", "15131122", "24231121", "13331122", "22431121", "25122121", "14222122", "25131211", "14231212", "12422122", "23331211", "12431212", "15113122", "15122212", "13313122", "24222211", "13322212", "11513122", "22422211", "11522212", "25113211", "14213212", "23313211", "12413212", "21513211", "16131121", "14331121", "15222121", "15231211", "13422121", "13431211", "16113121", "16122211", "14313121", "14322211", "12513121", "12522211", "15213211", "13413211", "11613211", "11141125", "31141123", "51141121", "21132124", "41132122", "21141214", "41141212", "11123125", "31123123", "51123121", "11132215", "31132213", "51132211", "21114124", "41114122", "21123214", "41123212", "11114215", "31114213", "51114211", "12141124", "32141122", "21241123", "41241121", "22132123", "42132121", "11232124", "22141213", "42141211", "11241214", "31241212", "12123124", "32123122", "12132214", "32132212", "21232213", "41232211", "22114123", "42114121", "11214124", "22123213", "42123211", "11223214", "31223212", "12114214", "32114212", "21214213", "41214211", "13141123", "33141121", "22241122", "11341123", "31341121", "23132122", "12232123", "23141212", "12241213", "32241211", "21341212", "13123123", "33123121", "13132213", "33132211", "11323123", "22232212", "11332213", "31332211", "23114122", "12214123", "23123212", "12223213", "32223211", "21323212", "13114213", "33114211", "22214212", "11314213", "31314211", "14141122", "23241121", "12341122", "24132121", "13232122", "24141211", "13241212", "11432122", "22341211", "14123122", "14132212", "12323122", "23232211", "12332212", "21432211", "24114121", "13214122", "24123211", "13223212", "11414122", "22323211", "11423212", "14114212", "23214211", "12314212", "21414211", "15141121", "13341121", "14232121", "14241211", "12432121", "15123121", "15132211", "13323121", "13332211", "11523121", "14214121", "14223211", "12414121", "12423211", "15114211", "13314211", "11514211", "11151124", "31151122", "21142123", "41142121", "21151213", "41151211", "11133124", "31133122", "11142214", "31142212", "21124123", "41124121", "21133213", "41133211", "11115124", "31115122", "11124214", "31124212", "21115213", "41115211", "12151123", "32151121", "21251122", "22142122", "11242123", "22151212", "11251213", "31251211", "12133123", "32133121", "12142213", "32142211", "21242212", "22124122", "11224123", "22133212", "11233213", "31233211", "12115123", "32115121", "12124213", "32124211", "21224212", "22115212", "11215213", "31215211", "13151122", "22251121", "23142121", "12242122", "23151211", "12251212", "13133122", "13142212", "11333122", "22242211", "11342212", "23124121", "12224122", "23133211", "12233212", "21333211", "13115122", "13124212", "11315122", "22224211", "11324212", "23115211", "12215212", "21315211", "14151121", "13242121", "13251211", "14133121", "14142211", "12333121", "12342211", "13224121", "13233211", "11424121", "11433211", "14115121", "14124211", "12315121", "12324211", "13215211", "11415211", "11161123", "31161121", "21152122", "21161212", "11143123", "31143121", "11152213", "31152211", "21134122", "21143212", "11125123", "31125121", "11134213", "31134211", "21116122", "21125212", "12161122", "22152121", "11252122", "22161211", "12143122", "12152212", "21252211", "22134121", "11234122", "22143211", "11243212", "12125122", "12134212", "21234211", "22116121", "11216122", "22125211", "11225212", "13161121", "12252121", "13143121", "13152211", "11343121", "12234121", "12243211", "13125121", "13134211", "11325121", "11334211", "12216121", "12225211", "31111225", "51111223", "21111316", "41111314", "61111312", "31211134", "51211132", "12111226", "32111224", "52111222", "21211225", "41211223", "61211221", "22111315", "42111313", "11211316", "31211314", "51211312", "12211135", "32211133", "52211131", "21311134", "41311132", "13111225", "33111223", "22211224", "42211222", "11311225", "31311223", "51311221", "23111314", "43111312", "12211315", "32211313", "52211311", "21311314", "41311312", "13211134", "33211132", "22311133", "42311131", "11411134", "31411132", "14111224", "34111222", "23211223", "43211221", "12311224", "32311222", "21411223", "41411221", "24111313", "13211314", "33211312", "22311313", "42311311", "11411314", "31411312", "14211133", "34211131", "23311132", "12411133", "32411131", "21511132", "15111223", "24211222", "13311223", "33311221", "22411222", "11511223", "31511221", "25111312", "14211313", "34211311", "23311312", "12411313", "32411311", "21511312", "15211132", "24311131", "13411132", "22511131", "11611132", "16111222", "25211221", "14311222", "23411221", "12511222", "21611221", "15211312", "24311311", "13411312", "22511311", "11611312", "21121135", "41121133", "61121131", "11112136", "31112134", "51112132", "11121226", "31121224", "51121222", "21112225", "41112223", "61112221", "21121315", "41121313", "61121311", "11112316", "31112314", "51112312", "22121134", "42121132", "11221135", "31221133", "51221131", "12112135", "32112133", "52112131", "12121225", "32121223", "52121221", "21221224", "41221222", "22112224", "42112222", "11212225", "22121314", "42121312", "11221315", "31221313", "51221311", "12112315", "32112313", "52112311", "21212314", "41212312", "23121133", "43121131", "12221134", "32221132", "21321133", "41321131", "13112134", "33112132", "13121224", "33121222", "11312134", "22221223", "42221221", "11321224", "31321222", "23112223", "43112221", "12212224", "23121313", "43121311", "12221314", "32221312", "21321313", "41321311", "13112314", "33112312", "22212313", "42212311", "11312314", "31312312", "24121132", "13221133", "33221131", "22321132", "11421133", "31421131", "14112133", "34112131", "14121223", "34121221", "12312133", "23221222", "12321223", "32321221", "21421222", "24112222", "13212223", "24121312", "13221313", "33221311", "11412223", "22321312", "11421313", "31421311", "14112313", "34112311", "23212312", "12312313", "32312311", "21412312", "25121131", "14221132", "23321131", "12421132", "21521131", "15112132", "15121222", "13312132", "24221221", "13321222", "11512132", "22421221", "11521222", "25112221", "14212222", "25121311", "14221312", "12412222", "23321311", "12421312", "21521311", "15112312", "24212311", "13312312", "22412311", "11512312", "15221131", "13421131", "16112131", "16121221", "14312131", "14321221", "12512131", "12521221", "15212221", "15221311", "13412221", "13421311", "11612221", "16112311", "14312311", "12512311", "21131134", "41131132", "11122135", "31122133", "51122131", "11131225", "31131223", "51131221", "21113134", "41113132", "21122224", "41122222", "21131314", "41131312", "11113225", "31113223", "51113221", "11122315", "31122313", "51122311", "21113314", "41113312", "22131133", "42131131", "11231134", "31231132", "12122134", "32122132", "12131224", "32131222", "21231223", "41231221", "22113133", "42113131", "11213134", "22122223", "42122221", "11222224", "22131313", "42131311", "11231314", "31231312", "12113224", "32113222", "12122314", "32122312", "21222313", "41222311", "22113313", "42113311", "11213314", "31213312", "23131132", "12231133", "32231131", "21331132", "13122133", "33122131", "13131223", "33131221", "11322133", "22231222", "11331223", "31331221", "23113132", "12213133", "23122222", "12222223", "23131312", "12231313", "32231311", "21331312", "13113223", "33113221", "13122313", "33122311", "11313223", "22222312", "11322313", "31322311", "23113312", "12213313", "32213311", "21313312", "24131131", "13231132", "22331131", "11431132", "14122132", "14131222", "12322132", "23231221", "12331222", "21431221", "24113131", "13213132", "24122221", "13222222", "24131311", "11413132", "13231312", "11422222", "22331311", "11431312", "14113222", "14122312", "12313222", "23222311", "12322312", "21422311", "24113311", "13213312", "22313311", "11413312", "14231131", "12431131", "15122131", "15131221", "13322131", "13331221", "11522131", "14213131", "14222221", "12413131", "14231311", "12422221", "12431311", "15113221", "15122311", "13313221", "13322311", "11513221", "11522311", "14213311", "12413311", "21141133", "41141131", "11132134", "31132132", "11141224", "31141222", "21123133", "41123131", "21132223", "41132221", "21141313", "41141311", "11114134", "31114132", "11123224", "31123222", "11132314", "31132312", "21114223", "41114221", "21123313", "41123311", "11114314", "31114312", "22141132", "11241133", "31241131", "12132133", "32132131", "12141223", "32141221", "21241222", "22123132", "11223133", "22132222", "11232223", "22141312", "11241313", "31241311", "12114133", "32114131", "12123223", "32123221", "12132313", "32132311", "21232312", "22114222", "11214223", "22123312", "11223313", "31223311", "12114313", "32114311", "21214312", "23141131", "12241132", "21341131", "13132132", "13141222", "11332132", "22241221", "11341222", "23123131", "12223132", "23132221", "12232222", "23141311", "12241312", "21341311", "13114132", "13123222", "11314132", "13132312", "11323222", "22232311", "11332312", "23114221", "12214222", "23123311", "12223312", "21323311", "13114312", "22214311", "11314312", "13241131", "14132131", "14141221", "12332131", "12341221", "13223131", "13232221", "11423131", "13241311", "11432221", "14114131", "14123221", "12314131", "14132311", "12323221", "12332311", "13214221", "13223311", "11414221", "11423311", "14114311", "12314311", "21151132", "11142133", "31142131", "11151223", "31151221", "21133132", "21142222", "21151312", "11124133", "31124131", "11133223", "31133221", "11142313", "31142311", "21115132", "21124222", "21133312", "11115223", "31115221", "11124313", "31124311", "22151131", "11251132", "12142132", "12151222", "21251221", "22133131", "11233132", "22142221", "11242222", "22151311", "11251312", "12124132", "12133222", "12142312", "21242311", "22115131", "11215132", "22124221", "11224222", "22133311", "11233312", "12115222", "12124312", "21224311", "12251131", "13142131", "13151221", "11342131", "12233131", "12242221", "12251311", "13124131", "13133221", "11324131", "13142311", "11333221", "11342311", "12215131", "12224221", "12233311", "13115221", "13124311", "11315221", "11324311", "21161131", "11152132", "11161222", "21143131", "21152221", "21161311", "11134132", "11143222", "11152312", "21125131", "21134221", "21143311", "11116132", "11125222", "11134312", "12152131", "12161221", "11243131", "11252221", "12134131", "12143221", "12152311", "11225131", "11234221", "11243311", "12116131", "12125221", "12134311", "21111235", "41111233", "61111231", "11111326", "31111324", "51111322", "21111415", "41111413", "61111411", "21211144", "41211142", "22111234", "42111232", "11211235", "31211233", "51211231", "12111325", "32111323", "52111321", "21211324", "41211322", "22111414", "42111412", "11211415", "31211413", "51211411", "22211143", "42211141", "11311144", "31311142", "23111233", "43111231", "12211234", "32211232", "21311233", "41311231", "13111324", "33111322", "22211323", "42211321", "11311324", "31311322", "23111413", "43111411", "12211414", "32211412", "21311413", "41311411", "23211142", "12311143", "32311141", "21411142", "24111232", "13211233", "33211231", "22311232", "11411233", "31411231", "14111323", "34111321", "23211322", "12311323", "32311321", "21411322", "24111412", "13211413", "33211411", "22311412", "11411413", "31411411", "24211141", "13311142", "22411141", "11511142", "25111231", "14211232", "23311231", "12411232", "21511231", "15111322", "24211321", "13311322", "22411321", "11511322", "25111411", "14211412", "23311411", "12411412", "21511411", "14311141", "12511141", "15211231", "13411231", "11611231", "16111321", "14311321", "12511321", "15211411", "13411411", "11611411", "31121143", "51121141", "21112144", "41112142", "21121234", "41121232", "11112235", "31112233", "51112231", "11121325", "31121323", "51121321", "21112324", "41112322", "21121414", "41121412", "11112415", "31112413", "51112411", "12121144", "32121142", "21221143", "41221141", "22112143", "42112141", "11212144", "22121233", "42121231", "11221234", "31221232", "12112234", "32112232", "12121324", "32121322", "21221323", "41221321", "22112323", "42112321", "11212324", "22121413", "42121411", "11221414", "31221412", "12112414", "32112412", "21212413", "41212411", "13121143", "33121141", "22221142", "11321143", "31321141", "23112142", "12212143", "23121232", "12221233", "32221231", "21321232", "13112233", "33112231", "13121323", "33121321", "11312233", "22221322", "11321323", "31321321", "23112322", "12212323", "23121412", "12221413", "32221411", "21321412", "13112413", "33112411", "22212412", "11312413", "31312411", "14121142", "23221141", "12321142", "21421141", "24112141", "13212142", "24121231", "13221232", "11412142", "22321231", "11421232", "14112232", "14121322", "12312232", "23221321", "12321322", "21421321", "24112321", "13212322", "24121411", "13221412", "11412322", "22321411", "11421412", "14112412", "23212411", "12312412", "21412411", "15121141", "13321141", "11521141", "14212141", "14221231", "12412141", "12421231", "15112231", "15121321", "13312231", "13321321", "11512231", "11521321", "14212321", "14221411", "12412321", "12421411", "15112411", "13312411", "11512411", "11131144", "31131142", "21122143", "41122141", "21131233", "41131231", "11113144", "31113142", "11122234", "31122232", "11131324", "31131322", "21113233", "41113231", "21122323", "41122321", "21131413", "41131411", "11113324", "31113322", "11122414", "31122412", "21113413", "41113411", "12131143", "32131141", "21231142", "22122142", "11222143", "22131232", "11231233", "31231231", "12113143", "32113141", "12122233", "32122231", "12131323", "32131321", "21231322", "22113232", "11213233", "22122322", "11222323", "22131412", "11231413", "31231411", "12113323", "32113321", "12122413", "32122411", "21222412", "22113412", "11213413", "31213411", "13131142", "22231141", "11331142", "23122141", "12222142", "23131231", "12231232", "21331231", "13113142", "13122232", "11313142", "13131322", "11322232", "22231321", "11331322", "23113231", "12213232", "23122321", "12222322", "23131411", "12231412", "21331411", "13113322", "13122412", "11313322", "22222411", "11322412", "23113411", "12213412", "21313411", "14131141", "12331141", "13222141", "13231231", "11422141", "11431231", "14113141", "14122231", "12313141", "14131321", "12322231", "12331321", "13213231", "13222321", "11413231", "13231411", "11422321", "11431411", "14113321", "14122411", "12313321", "12322411", "13213411", "11413411", "11141143", "31141141", "21132142", "21141232", "11123143", "31123141", "11132233", "31132231", "11141323", "31141321", "21114142", "21123232", "21132322", "21141412", "11114233", "31114231", "11123323", "31123321", "11132413", "31132411", "21114322", "21123412", "12141142", "21241141", "22132141", "11232142", "22141231", "11241232", "12123142", "12132232", "12141322", "21241321", "22114141", "11214142", "22123231", "11223232", "22132321", "11232322", "22141411", "11241412", "12114232", "12123322", "12132412", "21232411", "22114321", "11214322", "22123411", "11223412", "13141141", "11341141", "12232141", "12241231", "13123141", "13132231", "11323141", "13141321", "11332231", "11341321", "12214141", "12223231", "12232321", "12241411", "13114231", "13123321", "11314231", "13132411", "11323321", "11332411", "12214321", "12223411", "11151142", "21142141", "21151231", "11133142", "11142232", "11151322", "21124141", "21133231", "21142321", "21151411", "11115142", "11124232", "11133322", "11142412", "21115231", "21124321", "21133411", "12151141", "11242141", "11251231", "12133141", "12142231", "12151321", "11224141", "11233231", "11242321", "11251411", "12115141", "12124231", "12133321", "12142411", "11215231", "11224321", "11233411", "11161141", "11143141", "11152231", "11161321", "11125141", "11134231", "11143321", "11152411", "11111245", "31111243", "51111241", "21111334", "41111332", "11111425", "31111423", "51111421", "21111514", "41111512", "31211152", "12111244", "32111242", "21211243", "41211241", "22111333", "42111331", "11211334", "31211332", "12111424", "32111422", "21211423", "41211421", "22111513", "42111511", "11211514", "31211512", "12211153", "32211151", "21311152", "13111243", "33111241", "22211242", "11311243", "31311241", "23111332", "12211333", "32211331", "21311332", "13111423", "33111421", "22211422", "11311423", "31311421", "23111512", "12211513", "32211511", "21311512", "13211152", "22311151", "11411152", "14111242", "23211241", "12311242", "21411241", "24111331", "13211332", "22311331", "11411332", "14111422", "23211421", "12311422", "21411421", "24111511", "13211512", "22311511", "11411512", "14211151", "12411151", "15111241", "13311241", "11511241", "14211331", "12411331", "15111421", "13311421", "11511421", "14211511", "12411511", "21121153", "41121151", "11112154", "31112152", "11121244", "31121242", "21112243", "41112241", "21121333", "41121331", "11112334", "31112332", "11121424", "31121422", "21112423", "41112421", "21121513", "41121511", "11112514", "31112512", "22121152", "11221153", "31221151", "12112153", "32112151", "12121243", "32121241", "21221242", "22112242", "11212243", "22121332", "11221333", "31221331", "12112333", "32112331", "12121423", "32121421", "21221422", "22112422", "11212423", "22121512", "11221513", "31221511", "12112513", "32112511", "21212512", "23121151", "12221152", "21321151", "13112152", "13121242", "11312152", "22221241", "11321242", "23112241", "12212242", "23121331", "12221332", "21321331", "13112332", "13121422", "11312332", "22221421", "11321422", "23112421", "12212422", "23121511", "12221512", "21321511", "13112512", "22212511", "11312512", "13221151", "11421151", "14112151", "14121241", "12312151", "12321241", "13212241", "13221331", "11412241", "11421331", "14112331", "14121421", "12312331", "12321421", "13212421", "13221511", "11412421", "11421511", "14112511", "12312511", "21131152", "11122153", "31122151", "11131243", "31131241", "21113152", "21122242", "21131332", "11113243", "31113241", "11122333", "31122331", "11131423", "31131421", "21113332", "21122422", "21131512", "11113423", "31113421", "11122513", "31122511", "22131151", "11231152", "12122152", "12131242", "21231241", "22113151", "11213152", "22122241", "11222242", "22131331", "11231332", "12113242", "12122332", "12131422", "21231421", "22113331", "11213332", "22122421", "11222422", "22131511", "11231512", "12113422", "12122512", "21222511", "12231151", "13122151", "13131241", "11322151", "11331241", "12213151", "12222241", "12231331", "13113241", "13122331", "11313241", "13131421", "11322331", "11331421", "12213331", "12222421", "12231511", "13113421", "13122511", "11313421", "11322511", "21141151", "11132152", "11141242", "21123151", "21132241", "21141331", "11114152", "11123242", "11132332", "11141422", "21114241", "21123331", "21132421", "21141511", "11114332", "11123422", "11132512", "11241151", "12132151", "12141241", "11223151", "11232241", "11241331", "12114151", "12123241", "12132331", "12141421", "11214241", "11223331", "11232421", "11241511", "12114331", "12123421", "12132511", "11142151", "11151241", "11124151", "11133241", "11142331", "11151421", "11115241", "11124331", "11133421", "11142511", "21111253", "41111251", "11111344", "31111342", "21111433", "41111431", "11111524", "31111522", "21111613", "41111611", "21211162", "22111252", "11211253", "31211251", "12111343", "32111341", "21211342", "22111432", "11211433", "31211431", "12111523", "32111521", "21211522", "22111612", "11211613", "31211611", "22211161", "11311162", "23111251", "12211252", "21311251", "13111342", "22211341", "11311342", "23111431", "12211432", "21311431", "13111522", "22211521", "11311522", "23111611", "12211612", "21311611", "12311161", "13211251", "11411251", "14111341", "12311341", "13211431", "11411431", "14111521", "12311521", "13211611", "11411611", "31121161", "21112162", "21121252", "11112253", "31112251", "11121343", "31121341", "21112342", "21121432", "11112433", "31112431", "11121523", "31121521", "21112522", "21121612", "12121162", "21221161", "22112161", "11212162", "22121251", "11221252", "12112252", "12121342", "21221341", "22112341", "11212342", "22121431", "11221432", "12112432", "12121522", "21221521", "22112521", "11212522", "22121611", "11221612", "13121161", "11321161", "12212161", "12221251", "13112251", "13121341", "11312251", "11321341", "12212341", "12221431", "13112431", "13121521", "11312431", "11321521", "12212521", "12221611", "11131162", "21122161", "21131251", "11113162"])]); //#14443 + $1.parity = $a(["1001", "0101", "1100", "0011", "1010", "0110", "1111", "0000"]); //#14447 + $1.rowbits = $a($1.r); //#14450 + for (var _5z = 0, _5y = $f($1.r - 1); _5z <= _5y; _5z += 1) { //#14470 + $1.i = _5z; //#14452 + $k[$j++] = 'p'; //#14453 + if ($1.i != $f($1.r - 1)) { //#14453 + $k[$j++] = $get($1.parity, $1.i); //#14453 + } else { //#14453 + $k[$j++] = "0000"; //#14453 + } //#14453 + var _65 = $k[--$j]; //#14453 + $1[$k[--$j]] = _65; //#14453 + $1.ccrow = $geti($1.ccs, $1.i * 8, 8); //#14454 + $k[$j++] = Infinity; //#14456 + for (var _6A = 0; _6A <= 7; _6A += 2) { //#14456 + $aload($geti($1.ccrow, _6A, 2)); //#14456 + var _6D = $k[--$j]; //#14456 + var _6E = $k[--$j]; //#14456 + $k[$j++] = $f(_6D + (_6E * 49)); //#14456 + } //#14456 + $1.scrow = $a(); //#14456 + $k[$j++] = Infinity; //#14464 + $k[$j++] = 10; //#14463 + $k[$j++] = 1; //#14463 + $k[$j++] = 1; //#14463 + for (var _6G = 0; _6G <= 3; _6G += 1) { //#14463 + $1.j = _6G; //#14461 + $forall($get($get($1.patterns, $f($get($1.p, $1.j) - 48)), $get($1.scrow, $1.j)), function() { //#14462 + var _6Q = $k[--$j]; //#14462 + $k[$j++] = $f(_6Q - 48); //#14462 + }); //#14462 + } //#14462 + $k[$j++] = 4; //#14464 + $k[$j++] = 1; //#14464 + $1.sbs = $a(); //#14464 + $k[$j++] = Infinity; //#14466 + var _6S = $1.sbs; //#14467 + $k[$j++] = 1; //#14467 + for (var _6T = 0, _6U = _6S.length; _6T < _6U; _6T++) { //#14467 + var _6W = $k[--$j]; //#14467 + var _6X = (_6W == 0) ? 1 : 0; //#14467 + $k[$j++] = _6W; //#14467 + for (var _6Y = 0, _6Z = $get(_6S, _6T); _6Y < _6Z; _6Y++) { //#14467 + $k[$j++] = _6X //#14467 + } //#14467 + } //#14467 + $astore($a($counttomark() - 1)); //#14468 + var _6c = $k[--$j]; //#14468 + var _6d = $k[--$j]; //#14468 + $k[$j++] = _6c; //#14468 + $k[$j++] = _6d; //#14468 + $j--; //#14468 + var _6e = $k[--$j]; //#14468 + var _6f = $k[--$j]; //#14468 + $k[$j++] = _6e; //#14468 + $k[$j++] = _6f; //#14468 + $j--; //#14468 + $put($1.rowbits, $1.i, $k[--$j]); //#14469 + } //#14469 + $k[$j++] = Infinity; //#14481 + for (var _6k = 0, _6l = 81 * $1.sepheight; _6k < _6l; _6k++) { //#14474 + $k[$j++] = 1; //#14474 + } //#14474 + for (var _6o = 0, _6n = $f($1.r - 2); _6o <= _6n; _6o += 1) { //#14479 + $1.i = _6o; //#14476 + for (var _6q = 0, _6r = $1.rowheight; _6q < _6r; _6q++) { //#14477 + $aload($get($1.rowbits, $1.i)); //#14477 + } //#14477 + for (var _6w = 0, _6x = $1.sepheight; _6w < _6x; _6w++) { //#14478 + for (var _6y = 0, _6z = 10; _6y < _6z; _6y++) { //#14478 + $k[$j++] = 0; //#14478 + } //#14478 + for (var _70 = 0, _71 = 70; _70 < _71; _70++) { //#14478 + $k[$j++] = 1; //#14478 + } //#14478 + $k[$j++] = 0; //#14478 + } //#14478 + } //#14478 + for (var _73 = 0, _74 = $1.rowheight; _73 < _74; _73++) { //#14480 + $aload($get($1.rowbits, $f($1.r - 1))); //#14480 + } //#14480 + for (var _79 = 0, _7A = 81 * $1.sepheight; _79 < _7A; _79++) { //#14481 + $k[$j++] = 1; //#14481 + } //#14481 + $1.pixs = $a(); //#14481 + var _7G = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", 81], + ["pixy", ~~($1.pixs.length / 81)], + ["height", (~~($1.pixs.length / 81)) / 72], + ["width", 81 / 72], + ["opt", $1.options] + ]); //#14492 + $k[$j++] = _7G; //#14495 + if (!$1.dontdraw) { //#14495 + $0.renmatrix(); //#14495 + } //#14495 }; $0.flattermarken = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.includetext = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.height = .3; - $forall($1.barcode, function() { - var _3 = $k[--$j]; - if (_3 < 48 || _3 > 57) { - $k[$j++] = "bwipp.flattermarkenBadCharacter"; - $k[$j++] = "Flattermarken must contain only digits"; - $0.raiseerror(); - } - }); - $forall($1.options, function() { - var _5 = $k[--$j]; - $1[$k[--$j]] = _5; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.height = +$1.height; - $forall($1.barcode, function() { - var _C = $k[--$j]; - if (_C < 48 || _C > 57) { - $k[$j++] = "bwipp.flattermarkenBadCharacter"; - $k[$j++] = "Flattermarken must contain only digits"; - $0.raiseerror(); - } - }); - $1.encs = $a([ "0018", "0117", "0216", "0315", "0414", "0513", "0612", "0711", "0810", "0900" ]); - $1.barchars = "1234567890"; - $1.barlen = $1.barcode.length; - $1.sbs = $s($1.barlen * 4); - $1.txt = $a($1.barlen); - for (var _L = 0, _K = $1.barlen - 1; _L <= _K; _L += 1) { - $1.i = _L; - $search($1.barchars, $geti($1.barcode, $1.i, 1)); - $j--; - $1.indx = $k[--$j].length; - $j -= 2; - $1.enc = $get($1.encs, $1.indx); - $puti($1.sbs, $1.i * 4, $1.enc); - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), $1.i * 9, $1.textyoffset, $1.textfont, $1.textsize ])); - } - $k[$j++] = Infinity; - $k[$j++] = Infinity; - var _h = $1.sbs; - for (var _i = 0, _j = _h.length; _i < _j; _i++) { - $k[$j++] = $get(_h, _i) - 48; - } - var _l = $a(); - $k[$j++] = Infinity; - for (var _n = 0, _o = ~~(($1.sbs.length + 1) / 2); _n < _o; _n++) { - $k[$j++] = $1.height; - } - var _q = $a(); - $k[$j++] = Infinity; - for (var _s = 0, _t = ~~(($1.sbs.length + 1) / 2); _s < _t; _s++) { - $k[$j++] = 0; - } - var _u = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _l; - $k[$j++] = "bhs"; - $k[$j++] = _q; - $k[$j++] = "bbs"; - $k[$j++] = _u; - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _x = $d(); - $k[$j++] = _x; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#14786 + $1.options = $k[--$j]; //#14788 + $1.barcode = $k[--$j]; //#14789 + $1.dontdraw = false; //#14791 + $1.includetext = false; //#14792 + $1.textfont = "OCR-B"; //#14793 + $1.textsize = 10; //#14794 + $1.textyoffset = -8; //#14795 + $1.height = 0.3; //#14796 + $forall($1.barcode, function() { //#14803 + var _3 = $k[--$j]; //#14800 + if ((_3 < 48) || (_3 > 57)) { //#14802 + $k[$j++] = 'bwipp.flattermarkenBadCharacter'; //#14801 + $k[$j++] = "Flattermarken must contain only digits"; //#14801 + $0.raiseerror(); //#14801 + } //#14801 + }); //#14801 + $forall($1.options, function() { //#14814 + var _5 = $k[--$j]; //#14814 + $1[$k[--$j]] = _5; //#14814 + }); //#14814 + $1.textfont = "" + $1.textfont; //#14816 + $1.textsize = +$1.textsize; //#14817 + $1.textyoffset = +$1.textyoffset; //#14818 + $1.height = +$1.height; //#14819 + $forall($1.barcode, function() { //#14826 + var _C = $k[--$j]; //#14823 + if ((_C < 48) || (_C > 57)) { //#14825 + $k[$j++] = 'bwipp.flattermarkenBadCharacter'; //#14824 + $k[$j++] = "Flattermarken must contain only digits"; //#14824 + $0.raiseerror(); //#14824 + } //#14824 + }); //#14824 + $1.encs = $a(["0018", "0117", "0216", "0315", "0414", "0513", "0612", "0711", "0810", "0900"]); //#14832 + $1.barchars = "1234567890"; //#14835 + $1.barlen = $1.barcode.length; //#14837 + $1.sbs = $s($1.barlen * 4); //#14839 + $1.txt = $a($1.barlen); //#14840 + for (var _L = 0, _K = $1.barlen - 1; _L <= _K; _L += 1) { //#14852 + $1.i = _L; //#14843 + $search($1.barchars, $geti($1.barcode, $1.i, 1)); //#14845 + $j--; //#14846 + $1.indx = $k[--$j].length; //#14847 + $j -= 2; //#14848 + $1.enc = $get($1.encs, $1.indx); //#14849 + $puti($1.sbs, $1.i * 4, $1.enc); //#14850 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), $1.i * 9, $1.textyoffset, $1.textfont, $1.textsize])); //#14851 + } //#14851 + $k[$j++] = Infinity; //#14861 + $k[$j++] = Infinity; //#14857 + var _h = $1.sbs; //#14857 + for (var _i = 0, _j = _h.length; _i < _j; _i++) { //#14857 + $k[$j++] = $get(_h, _i) - 48; //#14857 + } //#14857 + var _l = $a(); //#14857 + $k[$j++] = Infinity; //#14858 + for (var _n = 0, _o = ~~(($1.sbs.length + 1) / 2); _n < _o; _n++) { //#14858 + $k[$j++] = $1.height; //#14858 + } //#14858 + var _q = $a(); //#14858 + $k[$j++] = Infinity; //#14859 + for (var _s = 0, _t = ~~(($1.sbs.length + 1) / 2); _s < _t; _s++) { //#14859 + $k[$j++] = 0; //#14859 + } //#14859 + var _u = $a(); //#14859 + $k[$j++] = 'ren'; //#14861 + $k[$j++] = $0.renlinear; //#14861 + $k[$j++] = 'sbs'; //#14861 + $k[$j++] = _l; //#14861 + $k[$j++] = 'bhs'; //#14861 + $k[$j++] = _q; //#14861 + $k[$j++] = 'bbs'; //#14861 + $k[$j++] = _u; //#14861 + $k[$j++] = 'txt'; //#14861 + $k[$j++] = $1.txt; //#14861 + $k[$j++] = 'opt'; //#14861 + $k[$j++] = $1.options; //#14861 + var _x = $d(); //#14861 + $k[$j++] = _x; //#14864 + if (!$1.dontdraw) { //#14864 + $0.renlinear(); //#14864 + } //#14864 }; $0.raw = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.height = +$1.height; - $forall($1.barcode, function() { - var _7 = $k[--$j]; - if (_7 < 49 || _7 > 57) { - $k[$j++] = "bwipp.rawBadCharacter"; - $k[$j++] = "Raw must contain only digits 1 to 9"; - $0.raiseerror(); - } - }); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - $forall($1.barcode, function() { - var _9 = $k[--$j]; - $k[$j++] = $f(_9 - 48); - }); - var _A = $a(); - $k[$j++] = Infinity; - for (var _C = 0, _D = ~~(($1.barcode.length + 1) / 2); _C < _D; _C++) { - $k[$j++] = $1.height; - } - var _F = $a(); - $k[$j++] = Infinity; - for (var _H = 0, _I = ~~(($1.barcode.length + 1) / 2); _H < _I; _H++) { - $k[$j++] = 0; - } - var _J = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _A; - $k[$j++] = "bhs"; - $k[$j++] = _F; - $k[$j++] = "bbs"; - $k[$j++] = _J; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _L = $d(); - $k[$j++] = _L; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#14893 + $1.options = $k[--$j]; //#14895 + $1.barcode = $k[--$j]; //#14896 + $1.dontdraw = false; //#14898 + $1.height = 1; //#14899 + $forall($1.options, function() { //#14910 + var _3 = $k[--$j]; //#14910 + $1[$k[--$j]] = _3; //#14910 + }); //#14910 + $1.height = +$1.height; //#14912 + $forall($1.barcode, function() { //#14919 + var _7 = $k[--$j]; //#14916 + if ((_7 < 49) || (_7 > 57)) { //#14918 + $k[$j++] = 'bwipp.rawBadCharacter'; //#14917 + $k[$j++] = "Raw must contain only digits 1 to 9"; //#14917 + $0.raiseerror(); //#14917 + } //#14917 + }); //#14917 + $k[$j++] = Infinity; //#14927 + $k[$j++] = Infinity; //#14924 + $forall($1.barcode, function() { //#14924 + var _9 = $k[--$j]; //#14924 + $k[$j++] = $f(_9 - 48); //#14924 + }); //#14924 + var _A = $a(); //#14924 + $k[$j++] = Infinity; //#14925 + for (var _C = 0, _D = ~~(($1.barcode.length + 1) / 2); _C < _D; _C++) { //#14925 + $k[$j++] = $1.height; //#14925 + } //#14925 + var _F = $a(); //#14925 + $k[$j++] = Infinity; //#14926 + for (var _H = 0, _I = ~~(($1.barcode.length + 1) / 2); _H < _I; _H++) { //#14926 + $k[$j++] = 0; //#14926 + } //#14926 + var _J = $a(); //#14926 + $k[$j++] = 'ren'; //#14927 + $k[$j++] = $0.renlinear; //#14927 + $k[$j++] = 'sbs'; //#14927 + $k[$j++] = _A; //#14927 + $k[$j++] = 'bhs'; //#14927 + $k[$j++] = _F; //#14927 + $k[$j++] = 'bbs'; //#14927 + $k[$j++] = _J; //#14927 + $k[$j++] = 'opt'; //#14927 + $k[$j++] = $1.options; //#14927 + var _L = $d(); //#14927 + $k[$j++] = _L; //#14930 + if (!$1.dontdraw) { //#14930 + $0.renlinear(); //#14930 + } //#14930 }; $0.daft = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.height = .175; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.height = +$1.height; - $forall($1.barcode, function() { - var _7 = $k[--$j]; - if (_7 != 68 && (_7 != 65 && (_7 != 70 && _7 != 84))) { - $k[$j++] = "bwipp.daftBadCharacter"; - $k[$j++] = "DAFT must contain only characters D, A, F and T"; - $0.raiseerror(); - } - }); - $1.barlen = $1.barcode.length; - $1.bbs = $a($1.barlen); - $1.bhs = $a($1.barlen); - for (var _F = 0, _E = $1.barlen - 1; _F <= _E; _F += 1) { - $1.i = _F; - $1.enc = $geti($1.barcode, $1.i, 1); - if ($eq($1.enc, "D")) { - $put($1.bbs, $1.i, 0 * $1.height / 8); - $put($1.bhs, $1.i, 5 * $1.height / 8); - } - if ($eq($1.enc, "A")) { - $put($1.bbs, $1.i, 3 * $1.height / 8); - $put($1.bhs, $1.i, 5 * $1.height / 8); - } - if ($eq($1.enc, "F")) { - $put($1.bbs, $1.i, 0 * $1.height / 8); - $put($1.bhs, $1.i, 8 * $1.height / 8); - } - if ($eq($1.enc, "T")) { - $put($1.bbs, $1.i, 3 * $1.height / 8); - $put($1.bhs, $1.i, 2 * $1.height / 8); - } - } - $k[$j++] = Infinity; - var _l = $1.bbs; - var _m = $1.bhs; - $k[$j++] = Infinity; - for (var _o = 0, _p = $1.bhs.length - 1; _o < _p; _o++) { - $k[$j++] = 1.44; - $k[$j++] = 1.872; - } - $k[$j++] = 1.44; - var _q = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "bbs"; - $k[$j++] = _l; - $k[$j++] = "bhs"; - $k[$j++] = _m; - $k[$j++] = "sbs"; - $k[$j++] = _q; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _s = $d(); - $k[$j++] = _s; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#14959 + $1.options = $k[--$j]; //#14961 + $1.barcode = $k[--$j]; //#14962 + $1.dontdraw = false; //#14964 + $1.height = 0.175; //#14965 + $forall($1.options, function() { //#14976 + var _3 = $k[--$j]; //#14976 + $1[$k[--$j]] = _3; //#14976 + }); //#14976 + $1.height = +$1.height; //#14978 + $forall($1.barcode, function() { //#14984 + var _7 = $k[--$j]; //#14981 + if ((_7 != 68) && ((_7 != 65) && ((_7 != 70) && (_7 != 84)))) { //#14983 + $k[$j++] = 'bwipp.daftBadCharacter'; //#14982 + $k[$j++] = "DAFT must contain only characters D, A, F and T"; //#14982 + $0.raiseerror(); //#14982 + } //#14982 + }); //#14982 + $1.barlen = $1.barcode.length; //#14986 + $1.bbs = $a($1.barlen); //#14988 + $1.bhs = $a($1.barlen); //#14989 + for (var _F = 0, _E = $1.barlen - 1; _F <= _E; _F += 1) { //#15009 + $1.i = _F; //#14991 + $1.enc = $geti($1.barcode, $1.i, 1); //#14992 + if ($eq($1.enc, "D")) { //#14996 + $put($1.bbs, $1.i, (0 * $1.height) / 8); //#14994 + $put($1.bhs, $1.i, (5 * $1.height) / 8); //#14995 + } //#14995 + if ($eq($1.enc, "A")) { //#15000 + $put($1.bbs, $1.i, (3 * $1.height) / 8); //#14998 + $put($1.bhs, $1.i, (5 * $1.height) / 8); //#14999 + } //#14999 + if ($eq($1.enc, "F")) { //#15004 + $put($1.bbs, $1.i, (0 * $1.height) / 8); //#15002 + $put($1.bhs, $1.i, (8 * $1.height) / 8); //#15003 + } //#15003 + if ($eq($1.enc, "T")) { //#15008 + $put($1.bbs, $1.i, (3 * $1.height) / 8); //#15006 + $put($1.bhs, $1.i, (2 * $1.height) / 8); //#15007 + } //#15007 + } //#15007 + $k[$j++] = Infinity; //#15017 + var _l = $1.bbs; //#15014 + var _m = $1.bhs; //#15015 + $k[$j++] = Infinity; //#15016 + for (var _o = 0, _p = $1.bhs.length - 1; _o < _p; _o++) { //#15016 + $k[$j++] = 1.44; //#15016 + $k[$j++] = 1.872; //#15016 + } //#15016 + $k[$j++] = 1.44; //#15016 + var _q = $a(); //#15016 + $k[$j++] = 'ren'; //#15017 + $k[$j++] = $0.renlinear; //#15017 + $k[$j++] = 'bbs'; //#15017 + $k[$j++] = _l; //#15017 + $k[$j++] = 'bhs'; //#15017 + $k[$j++] = _m; //#15017 + $k[$j++] = 'sbs'; //#15017 + $k[$j++] = _q; //#15017 + $k[$j++] = 'opt'; //#15017 + $k[$j++] = $1.options; //#15017 + var _s = $d(); //#15017 + $k[$j++] = _s; //#15020 + if (!$1.dontdraw) { //#15020 + $0.renlinear(); //#15020 + } //#15020 }; $0.symbol = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - var _H = new Map([ [ "fima", function() { - $1.sbs = $a([ 2.25, 2.25, 2.25, 11.25, 2.25, 11.25, 2.25, 2.25, 2.25 ]); - $1.bhs = $a([ .625, .625, .625, .625, .625 ]); - $1.bbs = $a([ 0, 0, 0, 0, 0 ]); - } ], [ "fimb", function() { - $1.sbs = $a([ 2.25, 6.75, 2.25, 2.25, 2.25, 6.25, 2.25, 2.25, 2.25, 6.75, 2.25 ]); - $1.bhs = $a([ .625, .625, .625, .625, .625, .625 ]); - $1.bbs = $a([ 0, 0, 0, 0, 0, 0 ]); - } ], [ "fimc", function() { - $1.sbs = $a([ 2.25, 2.25, 2.25, 6.75, 2.25, 6.75, 2.25, 6.75, 2.25, 2.25, 2.25 ]); - $1.bhs = $a([ .625, .625, .625, .625, .625, .625 ]); - $1.bbs = $a([ 0, 0, 0, 0, 0, 0 ]); - } ], [ "fimd", function() { - $1.sbs = $a([ 2.25, 2.25, 2.25, 2.25, 2.25, 6.75, 2.25, 6.75, 2.25, 2.25, 2.25, 2.25, 2.25 ]); - $1.bhs = $a([ .625, .625, .625, .625, .625, .625, .625 ]); - $1.bbs = $a([ 0, 0, 0, 0, 0, 0, 0 ]); - } ] ]); - $1.symbols = _H; - var _K = $get($1.symbols, $1.barcode) !== undefined; - if (!_K) { - $k[$j++] = "bwipp.symbolUnknownSymbol"; - $k[$j++] = "Unknown symbol name provided"; - $0.raiseerror(); - } + var $1 = {}; //#15049 + $1.options = $k[--$j]; //#15051 + $1.barcode = $k[--$j]; //#15052 + $1.dontdraw = false; //#15054 + $forall($1.options, function() { //#15065 + var _3 = $k[--$j]; //#15065 + $1[$k[--$j]] = _3; //#15065 + }); //#15065 + var _H = new Map([ + ["fima", function() { + $1.sbs = $a([2.25, 2.25, 2.25, 11.25, 2.25, 11.25, 2.25, 2.25, 2.25]); //#15069 + $1.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625]); //#15070 + $1.bbs = $a([0, 0, 0, 0, 0]); //#15071 + }], + ["fimb", function() { + $1.sbs = $a([2.25, 6.75, 2.25, 2.25, 2.25, 6.25, 2.25, 2.25, 2.25, 6.75, 2.25]); //#15074 + $1.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#15075 + $1.bbs = $a([0, 0, 0, 0, 0, 0]); //#15076 + }], + ["fimc", function() { + $1.sbs = $a([2.25, 2.25, 2.25, 6.75, 2.25, 6.75, 2.25, 6.75, 2.25, 2.25, 2.25]); //#15079 + $1.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#15080 + $1.bbs = $a([0, 0, 0, 0, 0, 0]); //#15081 + }], + ["fimd", function() { + $1.sbs = $a([2.25, 2.25, 2.25, 2.25, 2.25, 6.75, 2.25, 6.75, 2.25, 2.25, 2.25, 2.25, 2.25]); //#15084 + $1.bhs = $a([0.625, 0.625, 0.625, 0.625, 0.625, 0.625, 0.625]); //#15085 + $1.bbs = $a([0, 0, 0, 0, 0, 0, 0]); //#15086 + }] + ]); //#15086 + $1.symbols = _H; //#15088 + var _K = $get($1.symbols, $1.barcode) !== undefined; //#15091 + if (!_K) { //#15093 + $k[$j++] = 'bwipp.symbolUnknownSymbol'; //#15092 + $k[$j++] = "Unknown symbol name provided"; //#15092 + $0.raiseerror(); //#15092 + } //#15092 if ($get($1.symbols, $1.barcode)() === true) { return true; - } - var _S = new Map([ [ "ren", $0.renlinear ], [ "sbs", $1.sbs ], [ "bhs", $1.bhs ], [ "bbs", $1.bbs ], [ "opt", $1.options ] ]); - $k[$j++] = _S; - if (!$1.dontdraw) { - $0.renlinear(); - } + } //#15095 + var _S = new Map([ + ["ren", $0.renlinear], + ["sbs", $1.sbs], + ["bhs", $1.bhs], + ["bbs", $1.bbs], + ["opt", $1.options] + ]); //#15103 + $k[$j++] = _S; //#15106 + if (!$1.dontdraw) { //#15106 + $0.renlinear(); //#15106 + } //#15106 }; $0.pdf417 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.compact = false; - $1.eclevel = -1; - $1.columns = 0; - $1.rows = 0; - $1.rowmult = 3; - $1.encoding = "auto"; - $1.ccc = false; - $1.raw = false; - $1.parse = false; - $1.parsefnc = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.eclevel = ~~$1.eclevel; - $1.columns = ~~$1.columns; - $1.rows = ~~$1.rows; - $1.rowmult = +$1.rowmult; - if ($1.raw) { - $1.encoding = "raw"; - } - if ($eq($1.encoding, "raw")) { - $1.datcws = $a($1.barcode.length); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.barcode.length) { - break; - } - $1.cw = ~~$z($geti($1.barcode, $1.i + 1, 3)); - $put($1.datcws, $1.j, $1.cw); - $1.i = $1.i + 4; - $1.j = $1.j + 1; - } - $1.datcws = $geti($1.datcws, 0, $1.j); - } - if ($1.ccc) { - $1.encoding = "ccc"; - } + var $1 = {}; //#15136 + $1.options = $k[--$j]; //#15138 + $1.barcode = $k[--$j]; //#15139 + $1.dontdraw = false; //#15141 + $1.compact = false; //#15142 + $1.eclevel = -1; //#15143 + $1.columns = 0; //#15144 + $1.rows = 0; //#15145 + $1.rowmult = 3; //#15146 + $1.encoding = "auto"; //#15147 + $1.ccc = false; //#15148 + $1.raw = false; //#15149 + $1.parse = false; //#15150 + $1.parsefnc = false; //#15151 + $forall($1.options, function() { //#15162 + var _3 = $k[--$j]; //#15162 + $1[$k[--$j]] = _3; //#15162 + }); //#15162 + $1.eclevel = ~~$1.eclevel; //#15164 + $1.columns = ~~$1.columns; //#15165 + $1.rows = ~~$1.rows; //#15166 + $1.rowmult = +$1.rowmult; //#15167 + if ($1.raw) { //#15169 + $1.encoding = "raw"; //#15169 + } //#15169 + if ($eq($1.encoding, "raw")) { //#15183 + $1.datcws = $a($1.barcode.length); //#15173 + $1.i = 0; //#15174 + $1.j = 0; //#15174 + for (;;) { //#15181 + if ($1.i == $1.barcode.length) { //#15176 + break; //#15176 + } //#15176 + $1.cw = ~~$z($geti($1.barcode, $1.i + 1, 3)); //#15177 + $put($1.datcws, $1.j, $1.cw); //#15178 + $1.i = $1.i + 4; //#15179 + $1.j = $1.j + 1; //#15180 + } //#15180 + $1.datcws = $geti($1.datcws, 0, $1.j); //#15182 + } //#15182 + if ($1.ccc) { //#15185 + $1.encoding = "ccc"; //#15185 + } //#15185 $1.encb = function() { - $1.in = $k[--$j]; - $1.inlen = $1.in.length; - $1.out = $a(~~($1.inlen / 6) * 5 + $1.inlen % 6); - for (var _Y = 0, _X = ~~($1.inlen / 6) - 1; _Y <= _X; _Y += 1) { - $1.k = _Y; - $k[$j++] = Infinity; - $aload($geti($1.in, $1.k * 6, 3)); - $1.msbs = $a(); - $k[$j++] = Infinity; - $aload($1.msbs); - var _e = $k[--$j]; - var _f = $k[--$j]; - var _g = $k[--$j]; - $k[$j++] = $f($f(_e + _f * 256) + _g * 65536); - for (var _h = 0, _i = 3; _h < _i; _h++) { - var _j = $k[--$j]; - $k[$j++] = _j % 900; - $k[$j++] = ~~(_j / 900); - } - $1.mscs = $a(); - $k[$j++] = Infinity; - $aload($geti($1.in, $1.k * 6 + 3, 3)); - $1.lsbs = $a(); - $k[$j++] = Infinity; - $aload($1.lsbs); - var _q = $k[--$j]; - var _r = $k[--$j]; - var _s = $k[--$j]; - $k[$j++] = $f($f(_q + _r * 256) + _s * 65536); - for (var _t = 0, _u = 3; _t < _u; _t++) { - var _v = $k[--$j]; - $k[$j++] = _v % 900; - $k[$j++] = ~~(_v / 900); - } - $1.lscs = $a(); - var _y = $get($1.lscs, 0); - var _10 = $get($1.mscs, 0); - $put($1.out, $1.k * 5 + 4, $f(_y + _10 * 316) % 900); - var _14 = $get($1.lscs, 1); - var _16 = $get($1.mscs, 0); - var _18 = $get($1.mscs, 1); - $put($1.out, $1.k * 5 + 3, $f($f($f(~~($f(_y + _10 * 316) / 900) + _14) + _16 * 641) + _18 * 316) % 900); - var _1C = $get($1.lscs, 2); - var _1E = $get($1.mscs, 0); - var _1G = $get($1.mscs, 1); - var _1I = $get($1.mscs, 2); - $put($1.out, $1.k * 5 + 2, $f($f($f($f(~~($f($f($f(~~($f(_y + _10 * 316) / 900) + _14) + _16 * 641) + _18 * 316) / 900) + _1C) + _1E * 20) + _1G * 641) + _1I * 316) % 900); - var _1M = $get($1.lscs, 3); - var _1O = $get($1.mscs, 1); - var _1Q = $get($1.mscs, 2); - $put($1.out, $1.k * 5 + 1, $f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_y + _10 * 316) / 900) + _14) + _16 * 641) + _18 * 316) / 900) + _1C) + _1E * 20) + _1G * 641) + _1I * 316) / 900) + _1M) + _1O * 20) + _1Q * 641) % 900); - $put($1.out, $1.k * 5, $f(~~($f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_y + _10 * 316) / 900) + _14) + _16 * 641) + _18 * 316) / 900) + _1C) + _1E * 20) + _1G * 641) + _1I * 316) / 900) + _1M) + _1O * 20) + _1Q * 641) / 900) + $get($1.mscs, 2) * 20) % 900); - } - $1.rem = $1.inlen % 6; - if ($1.rem != 0) { - $k[$j++] = $1.out; - $k[$j++] = $1.out.length - $1.rem; - $k[$j++] = Infinity; - $aload($geti($1.in, $1.inlen - $1.rem, $1.rem)); - var _1h = $a(); - var _1i = $k[--$j]; - $puti($k[--$j], _1i, _1h); - } - $k[$j++] = $1.out; - }; - if ($eq($1.encoding, "byte") || $eq($1.encoding, "ccc")) { - $1.barlen = $1.barcode.length; - $1.datcws = $a(~~($1.barlen / 6) * 5 + $1.barlen % 6 + 1); - var _1t = $1.barlen % 6 == 0 ? 924 : 901; - $put($1.datcws, 0, _1t); - $k[$j++] = $1.datcws; - $k[$j++] = 1; - $k[$j++] = Infinity; - $forall($1.barcode); - var _1w = $a(); - $k[$j++] = _1w; - $1.encb(); - var _1x = $k[--$j]; - var _1y = $k[--$j]; - $puti($k[--$j], _1y, _1x); - if ($eq($1.encoding, "ccc")) { - $k[$j++] = Infinity; - $k[$j++] = 920; - $aload($1.datcws); - $1.datcws = $a(); - } - } - if ($eq($1.encoding, "auto")) { - var _26 = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "eci", true ] ]); - $1.fncvals = _26; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _29 = $k[--$j]; - $1[$k[--$j]] = _29; - $1.msglen = $1.msg.length; - $1.T = 0; - $1.N = 1; - $1.B = 2; - $1.A = 0; - $1.L = 1; - $1.M = 2; - $1.P = 3; - $1.tl = -1; - $1.nl = -2; - $1.bl = -3; - $1.bl6 = -4; - $1.bs = -5; - $1.al = -6; - $1.ll = -7; - $1.ml = -8; - $1.pl = -9; - $1.as = -10; - $1.ps = -11; - $1.charmaps = $a([ $a([ "A", "a", "0", ";" ]), $a([ "B", "b", "1", "<" ]), $a([ "C", "c", "2", ">" ]), $a([ "D", "d", "3", "@" ]), $a([ "E", "e", "4", "[" ]), $a([ "F", "f", "5", 92 ]), $a([ "G", "g", "6", "]" ]), $a([ "H", "h", "7", "_" ]), $a([ "I", "i", "8", "`" ]), $a([ "J", "j", "9", "~" ]), $a([ "K", "k", "&", "!" ]), $a([ "L", "l", 13, 13 ]), $a([ "M", "m", 9, 9 ]), $a([ "N", "n", ",", "," ]), $a([ "O", "o", ":", ":" ]), $a([ "P", "p", "#", 10 ]), $a([ "Q", "q", "-", "-" ]), $a([ "R", "r", ".", "." ]), $a([ "S", "s", "$", "$" ]), $a([ "T", "t", "/", "/" ]), $a([ "U", "u", "+", '"' ]), $a([ "V", "v", "%", "|" ]), $a([ "W", "w", "*", "*" ]), $a([ "X", "x", "=", 40 ]), $a([ "Y", "y", "^", 41 ]), $a([ "Z", "z", $1.pl, "?" ]), $a([ " ", " ", " ", "{" ]), $a([ $1.ll, $1.as, $1.ll, "}" ]), $a([ $1.ml, $1.ml, $1.al, "'" ]), $a([ $1.ps, $1.ps, $1.ps, $1.al ]) ]); - $1.charvals = $a([ new Map(), new Map(), new Map(), new Map() ]); - $1.alltext = new Map(); - for (var _2v = 0, _2u = $1.charmaps.length - 1; _2v <= _2u; _2v += 1) { - $1.i = _2v; - $1.encs = $get($1.charmaps, $1.i); - for (var _2z = 0; _2z <= 3; _2z += 1) { - $1.j = _2z; - var _32 = $get($1.encs, $1.j); - $k[$j++] = _32; - if ($eq($type(_32), "stringtype")) { - var _35 = $get($k[--$j], 0); - $k[$j++] = _35; - } - var _36 = $k[--$j]; - $put($get($1.charvals, $1.j), _36, $1.i); - $put($1.alltext, _36, -1); - } - } - $1.e = 1e4; - $1.latlen = $a([ $a([ 0, 1, 1, 2 ]), $a([ 2, 0, 1, 2 ]), $a([ 1, 1, 0, 1 ]), $a([ 1, 2, 2, 0 ]) ]); - $1.latseq = $a([ $a([ $a([]), $a([ $1.ll ]), $a([ $1.ml ]), $a([ $1.ml, $1.pl ]) ]), $a([ $a([ $1.ml, $1.al ]), $a([]), $a([ $1.ml ]), $a([ $1.ml, $1.pl ]) ]), $a([ $a([ $1.al ]), $a([ $1.ll ]), $a([]), $a([ $1.pl ]) ]), $a([ $a([ $1.al ]), $a([ $1.al, $1.ll ]), $a([ $1.al, $1.ml ]), $a([]) ]) ]); - $1.shftlen = $a([ $a([ $1.e, $1.e, $1.e, 1 ]), $a([ 1, $1.e, $1.e, 1 ]), $a([ $1.e, $1.e, $1.e, 1 ]), $a([ $1.e, $1.e, $1.e, $1.e ]) ]); - $k[$j++] = Infinity; - for (var _4B = 0, _4C = $1.msglen; _4B < _4C; _4B++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numdigits = $a(); - $k[$j++] = Infinity; - for (var _4F = 0, _4G = $1.msglen; _4F < _4G; _4F++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numtext = $a(); - $k[$j++] = Infinity; - for (var _4J = 0, _4K = $1.msglen; _4J < _4K; _4J++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numbytes = $a(); - $k[$j++] = Infinity; - for (var _4N = 0, _4O = $1.msglen; _4N < _4O; _4N++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.iseci = $a(); - for (var _4R = $1.msglen - 1; _4R >= 0; _4R -= 1) { - $1.i = _4R; - var _4U = $get($1.msg, $1.i); - if (_4U >= 48 && _4U <= 57) { - $put($1.numdigits, $1.i, $f($get($1.numdigits, $1.i + 1) + 1)); - } - var _4e = $get($1.alltext, $get($1.msg, $1.i)) !== undefined; - if (_4e && $get($1.numdigits, $1.i) < 13) { - $put($1.numtext, $1.i, $f($get($1.numtext, $1.i + 1) + 1)); - } - if ($get($1.msg, $1.i) >= 0 && $get($1.numtext, $1.i) < 5 && $get($1.numdigits, $1.i) < 13) { - $put($1.numbytes, $1.i, $f($get($1.numbytes, $1.i + 1) + 1)); - } - $put($1.iseci, $1.i, $get($1.msg, $1.i) <= -1e6); - } - $1.numdigits = $geti($1.numdigits, 0, $1.msglen); - $1.numtext = $geti($1.numtext, 0, $1.msglen); - $1.numbytes = $geti($1.numbytes, 0, $1.msglen); - $1.seq = $a([]); - $1.seqlen = 0; - $1.state = $1.T; - $1.p = 0; - for (;;) { - if ($1.p == $1.msglen) { - break; - } - if ($get($1.iseci, $1.p)) { - $1.eci = $get($1.msg, $1.p); - $k[$j++] = Infinity; - $aload($1.seq); - $k[$j++] = $a([ $1.eci ]); - $1.seq = $a(); - $1.p = $1.p + 1; - $k[$j++] = "seqlen"; - $k[$j++] = $1.seqlen; - if ($1.eci <= -1810900) { - $k[$j++] = 2; - } else { - var _5X = $1.eci <= -1000900 ? 3 : 2; - $k[$j++] = _5X; - } - var _5Y = $k[--$j]; - var _5Z = $k[--$j]; - $1[$k[--$j]] = $f(_5Z + _5Y); - } else { - $1.n = $get($1.numdigits, $1.p); - if ($1.n >= 13) { - $k[$j++] = Infinity; - $aload($1.seq); - $k[$j++] = $1.nl; - $k[$j++] = Infinity; - $aload($geti($1.msg, $1.p, $1.n)); - var _5l = $a(); - $k[$j++] = _5l; - $1.seq = $a(); - $1.state = $1.N; - $1.p = $f($1.p + $1.n); - $1.seqlen = $f($1.seqlen + 1 + $1.n); - } else { - $1.t = $get($1.numtext, $1.p); - if ($1.t >= 5) { - $k[$j++] = Infinity; - $aload($1.seq); - if ($1.state != $1.T) { - $k[$j++] = $1.tl; - } - $k[$j++] = Infinity; - $aload($geti($1.msg, $1.p, $1.t)); - var _64 = $a(); - $k[$j++] = _64; - $1.seq = $a(); - $1.state = $1.T; - $1.p = $f($1.p + $1.t); - $1.seqlen = $f($f($1.seqlen + 1) + $1.t); - } else { - $1.b = $get($1.numbytes, $1.p); - if ($1.b == 1 && $1.state == $1.T) { - $k[$j++] = Infinity; - $aload($1.seq); - $k[$j++] = $1.bs; - $k[$j++] = $a([ $get($1.msg, $1.p) ]); - $1.seq = $a(); - $1.p = $f($1.p + $1.b); - $1.seqlen = $f($1.seqlen + 2); - } else { - $k[$j++] = Infinity; - $aload($1.seq); - var _6T = $1.b % 6 != 0 ? $1.bl : $1.bl6; - $k[$j++] = _6T; - $k[$j++] = Infinity; - $aload($geti($1.msg, $1.p, $1.b)); - var _6Y = $a(); - $k[$j++] = _6Y; - $1.seq = $a(); - $1.state = $1.B; - $1.p = $f($1.p + $1.b); - $1.seqlen = $f($f($1.seqlen + 1) + $1.b); - } - } - } - } - } - $k[$j++] = Infinity; - $k[$j++] = $1.tl; - $k[$j++] = 900; - $k[$j++] = $1.bl; - $k[$j++] = 901; - $k[$j++] = $1.bl6; - $k[$j++] = 924; - $k[$j++] = $1.nl; - $k[$j++] = 902; - $k[$j++] = $1.bs; - $k[$j++] = 913; - $1.latchcws = $d(); + $1.in = $k[--$j]; //#15188 + $1.inlen = $1.in.length; //#15189 + $1.out = $a(((~~($1.inlen / 6)) * 5) + ($1.inlen % 6)); //#15190 + for (var _Y = 0, _X = (~~($1.inlen / 6)) - 1; _Y <= _X; _Y += 1) { //#15213 + $1.k = _Y; //#15192 + $k[$j++] = Infinity; //#15193 + $aload($geti($1.in, $1.k * 6, 3)); //#15193 + $1.msbs = $a(); //#15193 + $k[$j++] = Infinity; //#15196 + $aload($1.msbs); //#15195 + var _e = $k[--$j]; //#15195 + var _f = $k[--$j]; //#15195 + var _g = $k[--$j]; //#15195 + $k[$j++] = $f(($f(_e + (_f * 256))) + (_g * 65536)); //#15196 + for (var _h = 0, _i = 3; _h < _i; _h++) { //#15196 + var _j = $k[--$j]; //#15196 + $k[$j++] = _j % 900; //#15196 + $k[$j++] = ~~(_j / 900); //#15196 + } //#15196 + $1.mscs = $a(); //#15196 + $k[$j++] = Infinity; //#15198 + $aload($geti($1.in, ($1.k * 6) + 3, 3)); //#15198 + $1.lsbs = $a(); //#15198 + $k[$j++] = Infinity; //#15201 + $aload($1.lsbs); //#15200 + var _q = $k[--$j]; //#15200 + var _r = $k[--$j]; //#15200 + var _s = $k[--$j]; //#15200 + $k[$j++] = $f(($f(_q + (_r * 256))) + (_s * 65536)); //#15201 + for (var _t = 0, _u = 3; _t < _u; _t++) { //#15201 + var _v = $k[--$j]; //#15201 + $k[$j++] = _v % 900; //#15201 + $k[$j++] = ~~(_v / 900); //#15201 + } //#15201 + $1.lscs = $a(); //#15201 + var _y = $get($1.lscs, 0); //#15203 + var _10 = $get($1.mscs, 0); //#15203 + $put($1.out, ($1.k * 5) + 4, ($f(_y + (_10 * 316))) % 900); //#15204 + var _14 = $get($1.lscs, 1); //#15205 + var _16 = $get($1.mscs, 0); //#15205 + var _18 = $get($1.mscs, 1); //#15205 + $put($1.out, ($1.k * 5) + 3, ($f(($f(($f((~~(($f(_y + (_10 * 316))) / 900)) + _14)) + (_16 * 641))) + (_18 * 316))) % 900); //#15206 + var _1C = $get($1.lscs, 2); //#15207 + var _1E = $get($1.mscs, 0); //#15207 + var _1G = $get($1.mscs, 1); //#15207 + var _1I = $get($1.mscs, 2); //#15207 + $put($1.out, ($1.k * 5) + 2, ($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_y + (_10 * 316))) / 900)) + _14)) + (_16 * 641))) + (_18 * 316))) / 900)) + _1C)) + (_1E * 20))) + (_1G * 641))) + (_1I * 316))) % 900); //#15208 + var _1M = $get($1.lscs, 3); //#15209 + var _1O = $get($1.mscs, 1); //#15209 + var _1Q = $get($1.mscs, 2); //#15209 + $put($1.out, ($1.k * 5) + 1, ($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_y + (_10 * 316))) / 900)) + _14)) + (_16 * 641))) + (_18 * 316))) / 900)) + _1C)) + (_1E * 20))) + (_1G * 641))) + (_1I * 316))) / 900)) + _1M)) + (_1O * 20))) + (_1Q * 641))) % 900); //#15210 + $put($1.out, $1.k * 5, ($f((~~(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_y + (_10 * 316))) / 900)) + _14)) + (_16 * 641))) + (_18 * 316))) / 900)) + _1C)) + (_1E * 20))) + (_1G * 641))) + (_1I * 316))) / 900)) + _1M)) + (_1O * 20))) + (_1Q * 641))) / 900)) + ($get($1.mscs, 2) * 20))) % 900); //#15212 + } //#15212 + $1.rem = $1.inlen % 6; //#15214 + if ($1.rem != 0) { //#15219 + $k[$j++] = $1.out; //#15217 + $k[$j++] = $1.out.length - $1.rem; //#15217 + $k[$j++] = Infinity; //#15217 + $aload($geti($1.in, $1.inlen - $1.rem, $1.rem)); //#15217 + var _1h = $a(); //#15217 + var _1i = $k[--$j]; //#15218 + $puti($k[--$j], _1i, _1h); //#15218 + } //#15218 + $k[$j++] = $1.out; //#15220 + }; //#15221 + if ($eq($1.encoding, "byte") || $eq($1.encoding, "ccc")) { //#15229 + $1.barlen = $1.barcode.length; //#15224 + $1.datcws = $a((((~~($1.barlen / 6)) * 5) + ($1.barlen % 6)) + 1); //#15225 + var _1t = (($1.barlen % 6) == 0) ? 924 : 901; //#15226 + $put($1.datcws, 0, _1t); //#15226 + $k[$j++] = $1.datcws; //#15227 + $k[$j++] = 1; //#15227 + $k[$j++] = Infinity; //#15227 + $forall($1.barcode); //#15227 + var _1w = $a(); //#15227 + $k[$j++] = _1w; //#15227 + $1.encb(); //#15227 + var _1x = $k[--$j]; //#15227 + var _1y = $k[--$j]; //#15227 + $puti($k[--$j], _1y, _1x); //#15227 + if ($eq($1.encoding, "ccc")) { //#15228 + $k[$j++] = Infinity; //#15228 + $k[$j++] = 920; //#15228 + $aload($1.datcws); //#15228 + $1.datcws = $a(); //#15228 + } //#15228 + } //#15228 + if ($eq($1.encoding, "auto")) { //#15632 + var _26 = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["eci", true] + ]); //#15237 + $1.fncvals = _26; //#15239 + $k[$j++] = 'msg'; //#15240 + $k[$j++] = $1.barcode; //#15240 + $k[$j++] = $1.fncvals; //#15240 + $0.parseinput(); //#15240 + var _29 = $k[--$j]; //#15240 + $1[$k[--$j]] = _29; //#15240 + $1.msglen = $1.msg.length; //#15241 + $1.T = 0; //#15244 + $1.N = 1; //#15244 + $1.B = 2; //#15244 + $1.A = 0; //#15245 + $1.L = 1; //#15245 + $1.M = 2; //#15245 + $1.P = 3; //#15245 + $1.tl = -1; //#15248 + $1.nl = -2; //#15248 + $1.bl = -3; //#15248 + $1.bl6 = -4; //#15248 + $1.bs = -5; //#15248 + $1.al = -6; //#15251 + $1.ll = -7; //#15251 + $1.ml = -8; //#15251 + $1.pl = -9; //#15251 + $1.as = -10; //#15251 + $1.ps = -11; //#15251 + $1.charmaps = $a([$a(["A", "a", "0", ";"]), $a(["B", "b", "1", "<"]), $a(["C", "c", "2", ">"]), $a(["D", "d", "3", "@"]), $a(["E", "e", "4", "["]), $a(["F", "f", "5", 92]), $a(["G", "g", "6", "]"]), $a(["H", "h", "7", "_"]), $a(["I", "i", "8", "`"]), $a(["J", "j", "9", "~"]), $a(["K", "k", "&", "!"]), $a(["L", "l", 13, 13]), $a(["M", "m", 9, 9]), $a(["N", "n", ",", ","]), $a(["O", "o", ":", ":"]), $a(["P", "p", "#", 10]), $a(["Q", "q", "-", "-"]), $a(["R", "r", ".", "."]), $a(["S", "s", "$", "$"]), $a(["T", "t", "/", "/"]), $a(["U", "u", "+", "\""]), $a(["V", "v", "%", "|"]), $a(["W", "w", "*", "*"]), $a(["X", "x", "=", 40]), $a(["Y", "y", "^", 41]), $a(["Z", "z", $1.pl, "?"]), $a([" ", " ", " ", "{"]), $a([$1.ll, $1.as, $1.ll, "}"]), $a([$1.ml, $1.ml, $1.al, "'"]), $a([$1.ps, $1.ps, $1.ps, $1.al])]); //#15286 + $1.charvals = $a([new Map, new Map, new Map, new Map]); //#15289 + $1.alltext = new Map; //#15290 + for (var _2v = 0, _2u = $1.charmaps.length - 1; _2v <= _2u; _2v += 1) { //#15300 + $1.i = _2v; //#15292 + $1.encs = $get($1.charmaps, $1.i); //#15293 + for (var _2z = 0; _2z <= 3; _2z += 1) { //#15299 + $1.j = _2z; //#15295 + var _32 = $get($1.encs, $1.j); //#15296 + $k[$j++] = _32; //#15296 + if ($eq($type(_32), 'stringtype')) { //#15296 + var _35 = $get($k[--$j], 0); //#15296 + $k[$j++] = _35; //#15296 + } //#15296 + var _36 = $k[--$j]; //#15297 + $put($get($1.charvals, $1.j), _36, $1.i); //#15297 + $put($1.alltext, _36, -1); //#15298 + } //#15298 + } //#15298 + $1.e = 10000; //#15302 + $1.latlen = $a([$a([0, 1, 1, 2]), $a([2, 0, 1, 2]), $a([1, 1, 0, 1]), $a([1, 2, 2, 0])]); //#15310 + $1.latseq = $a([$a([$a([]), $a([$1.ll]), $a([$1.ml]), $a([$1.ml, $1.pl])]), $a([$a([$1.ml, $1.al]), $a([]), $a([$1.ml]), $a([$1.ml, $1.pl])]), $a([$a([$1.al]), $a([$1.ll]), $a([]), $a([$1.pl])]), $a([$a([$1.al]), $a([$1.al, $1.ll]), $a([$1.al, $1.ml]), $a([])])]); //#15318 + $1.shftlen = $a([$a([$1.e, $1.e, $1.e, 1]), $a([1, $1.e, $1.e, 1]), $a([$1.e, $1.e, $1.e, 1]), $a([$1.e, $1.e, $1.e, $1.e])]); //#15326 + $k[$j++] = Infinity; //#15329 + for (var _4B = 0, _4C = $1.msglen; _4B < _4C; _4B++) { //#15329 + $k[$j++] = 0; //#15329 + } //#15329 + $k[$j++] = 0; //#15329 + $1.numdigits = $a(); //#15329 + $k[$j++] = Infinity; //#15330 + for (var _4F = 0, _4G = $1.msglen; _4F < _4G; _4F++) { //#15330 + $k[$j++] = 0; //#15330 + } //#15330 + $k[$j++] = 0; //#15330 + $1.numtext = $a(); //#15330 + $k[$j++] = Infinity; //#15331 + for (var _4J = 0, _4K = $1.msglen; _4J < _4K; _4J++) { //#15331 + $k[$j++] = 0; //#15331 + } //#15331 + $k[$j++] = 0; //#15331 + $1.numbytes = $a(); //#15331 + $k[$j++] = Infinity; //#15332 + for (var _4N = 0, _4O = $1.msglen; _4N < _4O; _4N++) { //#15332 + $k[$j++] = 0; //#15332 + } //#15332 + $k[$j++] = 0; //#15332 + $1.iseci = $a(); //#15332 + for (var _4R = $1.msglen - 1; _4R >= 0; _4R -= 1) { //#15345 + $1.i = _4R; //#15334 + var _4U = $get($1.msg, $1.i); //#15335 + if ((_4U >= 48) && (_4U <= 57)) { //#15337 + $put($1.numdigits, $1.i, $f($get($1.numdigits, $1.i + 1) + 1)); //#15336 + } //#15336 + var _4e = $get($1.alltext, $get($1.msg, $1.i)) !== undefined; //#15338 + if (_4e && ($get($1.numdigits, $1.i) < 13)) { //#15340 + $put($1.numtext, $1.i, $f($get($1.numtext, $1.i + 1) + 1)); //#15339 + } //#15339 + if ((($get($1.msg, $1.i) >= 0) && ($get($1.numtext, $1.i) < 5)) && ($get($1.numdigits, $1.i) < 13)) { //#15343 + $put($1.numbytes, $1.i, $f($get($1.numbytes, $1.i + 1) + 1)); //#15342 + } //#15342 + $put($1.iseci, $1.i, $get($1.msg, $1.i) <= -1000000); //#15344 + } //#15344 + $1.numdigits = $geti($1.numdigits, 0, $1.msglen); //#15346 + $1.numtext = $geti($1.numtext, 0, $1.msglen); //#15347 + $1.numbytes = $geti($1.numbytes, 0, $1.msglen); //#15348 + $1.seq = $a([]); //#15350 + $1.seqlen = 0; //#15350 + $1.state = $1.T; //#15350 + $1.p = 0; //#15350 + for (;;) { //#15404 + if ($1.p == $1.msglen) { //#15351 + break; //#15351 + } //#15351 + if ($get($1.iseci, $1.p)) { //#15402 + $1.eci = $get($1.msg, $1.p); //#15353 + $k[$j++] = Infinity; //#15356 + $aload($1.seq); //#15355 + $k[$j++] = $a([$1.eci]); //#15356 + $1.seq = $a(); //#15356 + $1.p = $1.p + 1; //#15358 + $k[$j++] = 'seqlen'; //#15359 + $k[$j++] = $1.seqlen; //#15359 + if ($1.eci <= -1810900) { //#15359 + $k[$j++] = 2; //#15359 + } else { //#15359 + var _5X = ($1.eci <= -1000900) ? 3 : 2; //#15359 + $k[$j++] = _5X; //#15359 + } //#15359 + var _5Y = $k[--$j]; //#15359 + var _5Z = $k[--$j]; //#15359 + $1[$k[--$j]] = $f(_5Z + _5Y); //#15359 + } else { //#15402 + $1.n = $get($1.numdigits, $1.p); //#15361 + if ($1.n >= 13) { //#15402 + $k[$j++] = Infinity; //#15366 + $aload($1.seq); //#15364 + $k[$j++] = $1.nl; //#15366 + $k[$j++] = Infinity; //#15366 + $aload($geti($1.msg, $1.p, $1.n)); //#15366 + var _5l = $a(); //#15366 + $k[$j++] = _5l; //#15366 + $1.seq = $a(); //#15366 + $1.state = $1.N; //#15368 + $1.p = $f($1.p + $1.n); //#15369 + $1.seqlen = $f(($1.seqlen + 1) + $1.n); //#15370 + } else { //#15402 + $1.t = $get($1.numtext, $1.p); //#15372 + if ($1.t >= 5) { //#15402 + $k[$j++] = Infinity; //#15379 + $aload($1.seq); //#15375 + if ($1.state != $1.T) { //#15378 + $k[$j++] = $1.tl; //#15377 + } //#15377 + $k[$j++] = Infinity; //#15379 + $aload($geti($1.msg, $1.p, $1.t)); //#15379 + var _64 = $a(); //#15379 + $k[$j++] = _64; //#15379 + $1.seq = $a(); //#15379 + $1.state = $1.T; //#15381 + $1.p = $f($1.p + $1.t); //#15382 + $1.seqlen = $f($f($1.seqlen + 1) + $1.t); //#15383 + } else { //#15402 + $1.b = $get($1.numbytes, $1.p); //#15385 + if (($1.b == 1) && ($1.state == $1.T)) { //#15402 + $k[$j++] = Infinity; //#15390 + $aload($1.seq); //#15388 + $k[$j++] = $1.bs; //#15390 + $k[$j++] = $a([$get($1.msg, $1.p)]); //#15390 + $1.seq = $a(); //#15390 + $1.p = $f($1.p + $1.b); //#15392 + $1.seqlen = $f($1.seqlen + 2); //#15393 + } else { //#15402 + $k[$j++] = Infinity; //#15398 + $aload($1.seq); //#15396 + var _6T = (($1.b % 6) != 0) ? $1.bl : $1.bl6; //#15397 + $k[$j++] = _6T; //#15398 + $k[$j++] = Infinity; //#15398 + $aload($geti($1.msg, $1.p, $1.b)); //#15398 + var _6Y = $a(); //#15398 + $k[$j++] = _6Y; //#15398 + $1.seq = $a(); //#15398 + $1.state = $1.B; //#15400 + $1.p = $f($1.p + $1.b); //#15401 + $1.seqlen = $f($f($1.seqlen + 1) + $1.b); //#15402 + } //#15402 + } //#15402 + } //#15402 + } //#15402 + } //#15402 + $k[$j++] = Infinity; //#15407 + $k[$j++] = $1.tl; //#15407 + $k[$j++] = 900; //#15407 + $k[$j++] = $1.bl; //#15407 + $k[$j++] = 901; //#15407 + $k[$j++] = $1.bl6; //#15407 + $k[$j++] = 924; //#15407 + $k[$j++] = $1.nl; //#15407 + $k[$j++] = 902; //#15407 + $k[$j++] = $1.bs; //#15407 + $k[$j++] = 913; //#15407 + $1.latchcws = $d(); //#15408 $1.enca = function() { - var _6p = $get($get($1.charvals, $1.A), $k[--$j]); - $k[$j++] = _6p; - }; + var _6p = $get($get($1.charvals, $1.A), $k[--$j]); //#15411 + $k[$j++] = _6p; //#15411 + }; //#15411 $1.encl = function() { - var _6u = $get($get($1.charvals, $1.L), $k[--$j]); - $k[$j++] = _6u; - }; + var _6u = $get($get($1.charvals, $1.L), $k[--$j]); //#15412 + $k[$j++] = _6u; //#15412 + }; //#15412 $1.encm = function() { - var _6z = $get($get($1.charvals, $1.M), $k[--$j]); - $k[$j++] = _6z; - }; + var _6z = $get($get($1.charvals, $1.M), $k[--$j]); //#15413 + $k[$j++] = _6z; //#15413 + }; //#15413 $1.encp = function() { - var _74 = $get($get($1.charvals, $1.P), $k[--$j]); - $k[$j++] = _74; - }; - $1.textencfuncs = $a([ "enca", "encl", "encm", "encp" ]); + var _74 = $get($get($1.charvals, $1.P), $k[--$j]); //#15414 + $k[$j++] = _74; //#15414 + }; //#15414 + $1.textencfuncs = $a(['enca', 'encl', 'encm', 'encp']); //#15415 $1.addtotext = function() { - $put($1.text, $1.l, $k[--$j]); - $1.l = $1.l + 1; - }; + $put($1.text, $1.l, $k[--$j]); //#15418 + $1.l = $1.l + 1; //#15419 + }; //#15420 $1.enct = function() { - $1.in = $k[--$j]; - $1.curlen = $a([ $1.e, $1.e, $1.e, $1.e ]); - $put($1.curlen, $1.submode, 0); - $1.curseq = $a([ $a([]), $a([]), $a([]), $a([]) ]); - $forall($1.in, function() { - $1.char = $k[--$j]; - for (;;) { - $1.imp = false; - var _7T = $a([ $1.A, $1.L, $1.M, $1.P ]); - for (var _7U = 0, _7V = _7T.length; _7U < _7V; _7U++) { - $1.x = $get(_7T, _7U); - var _7b = $a([ $1.A, $1.L, $1.M, $1.P ]); - for (var _7c = 0, _7d = _7b.length; _7c < _7d; _7c++) { - $1.y = $get(_7b, _7c); - $1.cost = $f($get($1.curlen, $1.x) + $get($get($1.latlen, $1.x), $1.y)); - if ($1.cost < $get($1.curlen, $1.y)) { - $put($1.curlen, $1.y, $1.cost); - $k[$j++] = $1.curseq; - $k[$j++] = $1.y; - $k[$j++] = Infinity; - $aload($get($1.curseq, $1.x)); - $aload($get($get($1.latseq, $1.x), $1.y)); - var _84 = $a(); - var _85 = $k[--$j]; - $put($k[--$j], _85, _84); - $1.imp = true; - } - } - } - if (!$1.imp) { - break; - } - } - $1.nxtlen = $a([ $1.e, $1.e, $1.e, $1.e ]); - $1.nxtseq = $a(4); - var _8I = $a([ $1.A, $1.L, $1.M, $1.P ]); - for (var _8J = 0, _8K = _8I.length; _8J < _8K; _8J++) { - $1.x = $get(_8I, _8J); - for (;;) { - var _8Q = $get($get($1.charvals, $1.x), $1.char) !== undefined; - if (!_8Q) { - break; - } - $1.cost = $f($get($1.curlen, $1.x) + 1); - if ($1.cost < $get($1.nxtlen, $1.x)) { - $put($1.nxtlen, $1.x, $1.cost); - $k[$j++] = $1.nxtseq; - $k[$j++] = $1.x; - $k[$j++] = Infinity; - $aload($get($1.curseq, $1.x)); - $k[$j++] = $1.char; - var _8h = $a(); - var _8i = $k[--$j]; - $put($k[--$j], _8i, _8h); - } - var _8o = $a([ $1.A, $1.L, $1.M, $1.P ]); - for (var _8p = 0, _8q = _8o.length; _8p < _8q; _8p++) { - $1.y = $get(_8o, _8p); - if ($ne($1.x, $1.y)) { - $1.cost = $f($f($get($1.curlen, $1.y) + $get($get($1.shftlen, $1.y), $1.x)) + 1); - if ($1.cost < $get($1.nxtlen, $1.y)) { - $put($1.nxtlen, $1.y, $1.cost); - $k[$j++] = $1.nxtseq; - $k[$j++] = $1.y; - $k[$j++] = Infinity; - $aload($get($1.curseq, $1.y)); - var _9G = $1.x == $1.A ? $1.as : $1.ps; - $k[$j++] = _9G; - $k[$j++] = $1.char; - var _9I = $a(); - var _9J = $k[--$j]; - $put($k[--$j], _9J, _9I); - } - } - } - break; - } - } - $1.curlen = $1.nxtlen; - $1.curseq = $1.nxtseq; - }); - $1.minseq = $1.e; - var _9S = $a([ $1.A, $1.L, $1.M, $1.P ]); - for (var _9T = 0, _9U = _9S.length; _9T < _9U; _9T++) { - $1.k = $get(_9S, _9T); - if ($get($1.curlen, $1.k) < $1.minseq) { - $1.minseq = $get($1.curlen, $1.k); - $1.txtseq = $get($1.curseq, $1.k); - } - } - $1.text = $a($1.minseq); - $1.k = 0; - $1.l = 0; - for (;;) { - if ($1.k >= $1.txtseq.length) { - break; - } - $1.char = $get($1.txtseq, $1.k); - $k[$j++] = $1.char; + $1.in = $k[--$j]; //#15423 + $1.curlen = $a([$1.e, $1.e, $1.e, $1.e]); //#15425 + $put($1.curlen, $1.submode, 0); //#15426 + $1.curseq = $a([$a([]), $a([]), $a([]), $a([])]); //#15427 + $forall($1.in, function() { //#15497 + $1.char = $k[--$j]; //#15432 + for (;;) { //#15453 + $1.imp = false; //#15436 + var _7T = $a([$1.A, $1.L, $1.M, $1.P]); //#15437 + for (var _7U = 0, _7V = _7T.length; _7U < _7V; _7U++) { //#15451 + $1.x = $get(_7T, _7U); //#15438 + var _7b = $a([$1.A, $1.L, $1.M, $1.P]); //#15439 + for (var _7c = 0, _7d = _7b.length; _7c < _7d; _7c++) { //#15450 + $1.y = $get(_7b, _7c); //#15440 + $1.cost = $f($get($1.curlen, $1.x) + $get($get($1.latlen, $1.x), $1.y)); //#15441 + if ($1.cost < $get($1.curlen, $1.y)) { //#15449 + $put($1.curlen, $1.y, $1.cost); //#15443 + $k[$j++] = $1.curseq; //#15446 + $k[$j++] = $1.y; //#15446 + $k[$j++] = Infinity; //#15446 + $aload($get($1.curseq, $1.x)); //#15445 + $aload($get($get($1.latseq, $1.x), $1.y)); //#15446 + var _84 = $a(); //#15446 + var _85 = $k[--$j]; //#15447 + $put($k[--$j], _85, _84); //#15447 + $1.imp = true; //#15448 + } //#15448 + } //#15448 + } //#15448 + if (!$1.imp) { //#15452 + break; //#15452 + } //#15452 + } //#15452 + $1.nxtlen = $a([$1.e, $1.e, $1.e, $1.e]); //#15456 + $1.nxtseq = $a(4); //#15457 + var _8I = $a([$1.A, $1.L, $1.M, $1.P]); //#15459 + for (var _8J = 0, _8K = _8I.length; _8J < _8K; _8J++) { //#15492 + $1.x = $get(_8I, _8J); //#15460 + for (;;) { //#15490 + var _8Q = $get($get($1.charvals, $1.x), $1.char) !== undefined; //#15464 + if (!_8Q) { //#15464 + break; //#15464 + } //#15464 + $1.cost = $f($get($1.curlen, $1.x) + 1); //#15467 + if ($1.cost < $get($1.nxtlen, $1.x)) { //#15471 + $put($1.nxtlen, $1.x, $1.cost); //#15469 + $k[$j++] = $1.nxtseq; //#15470 + $k[$j++] = $1.x; //#15470 + $k[$j++] = Infinity; //#15470 + $aload($get($1.curseq, $1.x)); //#15470 + $k[$j++] = $1.char; //#15470 + var _8h = $a(); //#15470 + var _8i = $k[--$j]; //#15470 + $put($k[--$j], _8i, _8h); //#15470 + } //#15470 + var _8o = $a([$1.A, $1.L, $1.M, $1.P]); //#15474 + for (var _8p = 0, _8q = _8o.length; _8p < _8q; _8p++) { //#15487 + $1.y = $get(_8o, _8p); //#15475 + if ($ne($1.x, $1.y)) { //#15486 + $1.cost = $f($f($get($1.curlen, $1.y) + $get($get($1.shftlen, $1.y), $1.x)) + 1); //#15477 + if ($1.cost < $get($1.nxtlen, $1.y)) { //#15485 + $put($1.nxtlen, $1.y, $1.cost); //#15479 + $k[$j++] = $1.nxtseq; //#15483 + $k[$j++] = $1.y; //#15483 + $k[$j++] = Infinity; //#15483 + $aload($get($1.curseq, $1.y)); //#15481 + var _9G = ($1.x == $1.A) ? $1.as : $1.ps; //#15482 + $k[$j++] = _9G; //#15483 + $k[$j++] = $1.char; //#15483 + var _9I = $a(); //#15483 + var _9J = $k[--$j]; //#15484 + $put($k[--$j], _9J, _9I); //#15484 + } //#15484 + } //#15484 + } //#15484 + break; //#15489 + } //#15489 + } //#15489 + $1.curlen = $1.nxtlen; //#15494 + $1.curseq = $1.nxtseq; //#15495 + }); //#15495 + $1.minseq = $1.e; //#15500 + var _9S = $a([$1.A, $1.L, $1.M, $1.P]); //#15501 + for (var _9T = 0, _9U = _9S.length; _9T < _9U; _9T++) { //#15507 + $1.k = $get(_9S, _9T); //#15502 + if ($get($1.curlen, $1.k) < $1.minseq) { //#15506 + $1.minseq = $get($1.curlen, $1.k); //#15504 + $1.txtseq = $get($1.curseq, $1.k); //#15505 + } //#15505 + } //#15505 + $1.text = $a($1.minseq); //#15510 + $1.k = 0; //#15511 + $1.l = 0; //#15511 + for (;;) { //#15531 + if ($1.k >= $1.txtseq.length) { //#15512 + break; //#15512 + } //#15512 + $1.char = $get($1.txtseq, $1.k); //#15514 + $k[$j++] = $1.char; //#15517 if ($1[$get($1.textencfuncs, $1.submode)]() === true) { break; - } - $1.addtotext(); - $1.k = $1.k + 1; - if ($1.char == $1.as || $1.char == $1.ps) { - $k[$j++] = $get($1.txtseq, $1.k); - if ($1.char == $1.as) { - $1.enca(); - } else { - $1.encp(); - } - $1.addtotext(); - $1.k = $1.k + 1; - } - if ($1.char == $1.al) { - $1.submode = $1.A; - } - if ($1.char == $1.ll) { - $1.submode = $1.L; - } - if ($1.char == $1.ml) { - $1.submode = $1.M; - } - if ($1.char == $1.pl) { - $1.submode = $1.P; - } - } - if ($1.text.length % 2 == 1) { - if ($1.submode == $1.P) { - $k[$j++] = "pad"; - $k[$j++] = $1.al; - $1.encp(); - var _AJ = $k[--$j]; - $1[$k[--$j]] = _AJ; - $1.submode = $1.A; - } else { - $k[$j++] = "pad"; - $k[$j++] = $1.ps; + } //#15517 + $1.addtotext(); //#15517 + $1.k = $1.k + 1; //#15518 + if (($1.char == $1.as) || ($1.char == $1.ps)) { //#15524 + $k[$j++] = $get($1.txtseq, $1.k); //#15522 + if ($1.char == $1.as) { //#15522 + $1.enca(); //#15522 + } else { //#15522 + $1.encp(); //#15522 + } //#15522 + $1.addtotext(); //#15522 + $1.k = $1.k + 1; //#15523 + } //#15523 + if ($1.char == $1.al) { //#15527 + $1.submode = $1.A; //#15527 + } //#15527 + if ($1.char == $1.ll) { //#15528 + $1.submode = $1.L; //#15528 + } //#15528 + if ($1.char == $1.ml) { //#15529 + $1.submode = $1.M; //#15529 + } //#15529 + if ($1.char == $1.pl) { //#15530 + $1.submode = $1.P; //#15530 + } //#15530 + } //#15530 + if (($1.text.length % 2) == 1) { //#15541 + if ($1.submode == $1.P) { //#15538 + $k[$j++] = 'pad'; //#15535 + $k[$j++] = $1.al; //#15535 + $1.encp(); //#15535 + var _AJ = $k[--$j]; //#15535 + $1[$k[--$j]] = _AJ; //#15535 + $1.submode = $1.A; //#15536 + } else { //#15538 + $k[$j++] = 'pad'; //#15538 + $k[$j++] = $1.ps; //#15538 if ($1[$get($1.textencfuncs, $1.submode)]() === true) { return true; - } - var _AR = $k[--$j]; - $1[$k[--$j]] = _AR; - } - $k[$j++] = Infinity; - $aload($1.text); - $k[$j++] = $1.pad; - $1.text = $a(); - } - $1.out = $a(~~($1.text.length / 2)); - for (var _Aa = 0, _AZ = $1.out.length - 1; _Aa <= _AZ; _Aa += 1) { - $1.k = _Aa; - $put($1.out, $1.k, $f($get($1.text, $1.k * 2) * 30 + $get($1.text, $1.k * 2 + 1))); - } - $k[$j++] = $1.out; - }; + } //#15538 + var _AR = $k[--$j]; //#15538 + $1[$k[--$j]] = _AR; //#15538 + } //#15538 + $k[$j++] = Infinity; //#15540 + $aload($1.text); //#15540 + $k[$j++] = $1.pad; //#15540 + $1.text = $a(); //#15540 + } //#15540 + $1.out = $a(~~($1.text.length / 2)); //#15543 + for (var _Aa = 0, _AZ = $1.out.length - 1; _Aa <= _AZ; _Aa += 1) { //#15547 + $1.k = _Aa; //#15545 + $put($1.out, $1.k, $f(($get($1.text, $1.k * 2) * 30) + $get($1.text, ($1.k * 2) + 1))); //#15546 + } //#15546 + $k[$j++] = $1.out; //#15549 + }; //#15551 $1.encn = function() { - $1.in = $k[--$j]; - $1.out = $a([]); - for (var _Ao = 0, _An = $1.in.length - 1; _Ao <= _An; _Ao += 44) { - $1.k = _Ao; - $k[$j++] = Infinity; - var _At = $1.in.length - $1.k; - $k[$j++] = 1; - $k[$j++] = $1.in; - $k[$j++] = $1.k; - $k[$j++] = _At; - if (_At > 44) { - $j--; - $k[$j++] = 44; - } - var _Au = $k[--$j]; - var _Av = $k[--$j]; - var _Ax = $geti($k[--$j], _Av, _Au); - for (var _Ay = 0, _Az = _Ax.length; _Ay < _Az; _Ay++) { - $k[$j++] = $f($get(_Ax, _Ay) - 48); - } - $1.gmod = $a(); - $1.cwn = $a([]); - for (;;) { - $1.dv = 900; - $1.gmul = $a([]); - $1.val = 0; - for (;;) { - if ($1.gmod.length == 0) { - break; - } - $1.val = $f($1.val * 10 + $get($1.gmod, 0)); - $1.gmod = $geti($1.gmod, 1, $1.gmod.length - 1); - if ($1.val < $1.dv) { - if ($1.gmul.length != 0) { - $k[$j++] = Infinity; - $aload($1.gmul); - $k[$j++] = 0; - $1.gmul = $a(); - } - } else { - $k[$j++] = Infinity; - $aload($1.gmul); - $k[$j++] = ~~($1.val / $1.dv); - $1.gmul = $a(); - } - $1.val = $1.val % $1.dv; - } - $1.dv = $1.val; - $k[$j++] = Infinity; - $k[$j++] = $1.dv; - $aload($1.cwn); - $1.cwn = $a(); - $1.gmod = $1.gmul; - if ($1.gmul.length == 0) { - break; - } - } - $k[$j++] = Infinity; - $aload($1.out); - $aload($1.cwn); - $1.out = $a(); - } - $k[$j++] = $1.out; - }; + $1.in = $k[--$j]; //#15554 + $1.out = $a([]); //#15555 + for (var _Ao = 0, _An = $1.in.length - 1; _Ao <= _An; _Ao += 44) { //#15583 + $1.k = _Ao; //#15557 + $k[$j++] = Infinity; //#15560 + var _At = $1.in.length - $1.k; //#15559 + $k[$j++] = 1; //#15559 + $k[$j++] = $1.in; //#15559 + $k[$j++] = $1.k; //#15559 + $k[$j++] = _At; //#15559 + if (_At > 44) { //#15559 + $j--; //#15559 + $k[$j++] = 44; //#15559 + } //#15559 + var _Au = $k[--$j]; //#15559 + var _Av = $k[--$j]; //#15559 + var _Ax = $geti($k[--$j], _Av, _Au); //#15559 + for (var _Ay = 0, _Az = _Ax.length; _Ay < _Az; _Ay++) { //#15560 + $k[$j++] = $f($get(_Ax, _Ay) - 48); //#15560 + } //#15560 + $1.gmod = $a(); //#15560 + $1.cwn = $a([]); //#15562 + for (;;) { //#15581 + $1.dv = 900; //#15563 + $1.gmul = $a([]); //#15564 + $1.val = 0; //#15564 + for (;;) { //#15576 + if ($1.gmod.length == 0) { //#15565 + break; //#15565 + } //#15565 + $1.val = $f(($1.val * 10) + $get($1.gmod, 0)); //#15566 + $1.gmod = $geti($1.gmod, 1, $1.gmod.length - 1); //#15567 + if ($1.val < $1.dv) { //#15573 + if ($1.gmul.length != 0) { //#15571 + $k[$j++] = Infinity; //#15570 + $aload($1.gmul); //#15570 + $k[$j++] = 0; //#15570 + $1.gmul = $a(); //#15570 + } //#15570 + } else { //#15573 + $k[$j++] = Infinity; //#15573 + $aload($1.gmul); //#15573 + $k[$j++] = ~~($1.val / $1.dv); //#15573 + $1.gmul = $a(); //#15573 + } //#15573 + $1.val = $1.val % $1.dv; //#15575 + } //#15575 + $1.dv = $1.val; //#15577 + $k[$j++] = Infinity; //#15578 + $k[$j++] = $1.dv; //#15578 + $aload($1.cwn); //#15578 + $1.cwn = $a(); //#15578 + $1.gmod = $1.gmul; //#15579 + if ($1.gmul.length == 0) { //#15580 + break; //#15580 + } //#15580 + } //#15580 + $k[$j++] = Infinity; //#15582 + $aload($1.out); //#15582 + $aload($1.cwn); //#15582 + $1.out = $a(); //#15582 + } //#15582 + $k[$j++] = $1.out; //#15584 + }; //#15585 $1.ence = function() { - var _BY = $f(-$get($k[--$j], 0) - 1e6); - $k[$j++] = _BY; - if (_BY <= 899) { - var _BZ = $k[--$j]; - $k[$j++] = 927; - $k[$j++] = _BZ; - $astore($a(2)); - } else { - var _Bb = $k[--$j]; - $k[$j++] = _Bb; - if (_Bb <= 810899) { - var _Bc = $k[--$j]; - $k[$j++] = 926; - $k[$j++] = ~~(_Bc / 900) - 1; - $k[$j++] = _Bc % 900; - $astore($a(3)); - } else { - var _Be = $k[--$j]; - $k[$j++] = _Be; - if (_Be <= 811799) { - var _Bf = $k[--$j]; - $k[$j++] = 925; - $k[$j++] = $f(_Bf - 810900); - $astore($a(2)); - } else { - $k[$j++] = "bwipp.pdf417badECI"; - $k[$j++] = "PDF417 supports ECIs 000000 to 811799"; - $0.raiseerror(); - } - } - } - }; - $1.encfuncs = $a([ "enct", "encn", "encb" ]); + var _BY = $f((-$get($k[--$j], 0)) - 1000000); //#15589 + $k[$j++] = _BY; //#15597 + if (_BY <= 899) { //#15596 + var _BZ = $k[--$j]; //#15590 + $k[$j++] = 927; //#15590 + $k[$j++] = _BZ; //#15590 + $astore($a(2)); //#15590 + } else { //#15596 + var _Bb = $k[--$j]; //#15591 + $k[$j++] = _Bb; //#15597 + if (_Bb <= 810899) { //#15596 + var _Bc = $k[--$j]; //#15592 + $k[$j++] = 926; //#15592 + $k[$j++] = (~~(_Bc / 900)) - 1; //#15592 + $k[$j++] = _Bc % 900; //#15592 + $astore($a(3)); //#15592 + } else { //#15596 + var _Be = $k[--$j]; //#15593 + $k[$j++] = _Be; //#15597 + if (_Be <= 811799) { //#15596 + var _Bf = $k[--$j]; //#15594 + $k[$j++] = 925; //#15594 + $k[$j++] = $f(_Bf - 810900); //#15594 + $astore($a(2)); //#15594 + } else { //#15596 + $k[$j++] = 'bwipp.pdf417badECI'; //#15596 + $k[$j++] = "PDF417 supports ECIs 000000 to 811799"; //#15596 + $0.raiseerror(); //#15596 + } //#15596 + } //#15596 + } //#15596 + }; //#15598 + $1.encfuncs = $a(['enct', 'encn', 'encb']); //#15600 $1.addtocws = function() { - var _Bi = $k[--$j]; - $puti($1.datcws, $1.j, _Bi); - $1.j = _Bi.length + $1.j; - }; - $1.state = $1.T; - $1.submode = $1.A; - $1.datcws = $a($1.seqlen); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i >= $1.seq.length) { - break; - } - $1.chars = $get($1.seq, $1.i); - if ($eq($type($1.chars), "arraytype")) { - if ($get($1.chars, 0) <= -1e6) { - $k[$j++] = $1.chars; - $1.ence(); - $1.addtocws(); - } else { - $k[$j++] = $1.chars; + var _Bi = $k[--$j]; //#15603 + $puti($1.datcws, $1.j, _Bi); //#15603 + $1.j = _Bi.length + $1.j; //#15604 + }; //#15605 + $1.state = $1.T; //#15608 + $1.submode = $1.A; //#15608 + $1.datcws = $a($1.seqlen); //#15609 + $1.i = 0; //#15610 + $1.j = 0; //#15610 + for (;;) { //#15630 + if ($1.i >= $1.seq.length) { //#15611 + break; //#15611 + } //#15611 + $1.chars = $get($1.seq, $1.i); //#15612 + if ($eq($type($1.chars), 'arraytype')) { //#15626 + if ($get($1.chars, 0) <= -1000000) { //#15617 + $k[$j++] = $1.chars; //#15615 + $1.ence(); //#15615 + $1.addtocws(); //#15615 + } else { //#15617 + $k[$j++] = $1.chars; //#15617 if ($1[$get($1.encfuncs, $1.state)]() === true) { break; - } - $1.addtocws(); - } - } else { - $k[$j++] = $a([ $get($1.latchcws, $1.chars) ]); - $1.addtocws(); - if ($1.chars == $1.tl) { - $1.state = $1.T; - $1.submode = $1.A; - } - if ($1.chars == $1.nl) { - $1.state = $1.N; - } - if ($1.chars == $1.bl || $1.chars == $1.bl6) { - $1.state = $1.B; - } - if ($1.chars == $1.bs) { - $1.i = $1.i + 1; - $k[$j++] = $get($1.seq, $1.i); - $1.encb(); - $1.addtocws(); - } - } - $1.i = $1.i + 1; - } - $1.datcws = $geti($1.datcws, 0, $1.j); - } - $1.m = $1.datcws.length; - if ($1.eclevel == -1) { - if ($1.m <= 40) { - $1.eclevel = 2; - } - if ($1.m >= 41 && $1.m <= 160) { - $1.eclevel = 3; - } - if ($1.m >= 161 && $1.m <= 320) { - $1.eclevel = 4; - } - if ($1.m >= 321) { - $1.eclevel = 5; - } - } - $1.maxeclevel = ~~(Math.log(928 - 1 - $1.m) / Math.log(2)) - 1; - if ($1.eclevel > $1.maxeclevel) { - $1.eclevel = $1.maxeclevel; - } - $1.k = ~~Math.pow(2, $1.eclevel + 1); - if ($1.columns == 0) { - $1.columns = ~~Math.round(Math.sqrt(($1.m + $1.k) / 3)); - } - $k[$j++] = "c"; - if ($1.columns >= 1) { - $k[$j++] = $1.columns; - } else { - $k[$j++] = 1; - } - var _Cn = $k[--$j]; - $1[$k[--$j]] = _Cn; - $1.r = ~~Math.ceil(($1.m + $1.k + 1) / $1.columns); - if ($1.r < $1.rows && $1.rows <= 90) { - $1.r = $1.rows; - } - if ($1.r < 3) { - $1.r = 3; - } - var _Cx = $1.c; - var _Cy = $1.r; - var _Cz = $1.m; - var _D0 = 8; - var _D1 = ~~(Math.log($f($f(_Cx * _Cy - 1) - _Cz)) / Math.log(2)) - 1; - if (~~(Math.log($f($f(_Cx * _Cy - 1) - _Cz)) / Math.log(2)) - 1 > 8) { - var _ = _D0; - _D0 = _D1; - _D1 = _; - } - $1.maxeclevel = _D1; - if ($1.maxeclevel > $1.eclevel) { - $1.eclevel = $1.maxeclevel; - $1.k = ~~Math.pow(2, $1.eclevel + 1); - } - $1.n = $f($1.c * $1.r - $1.k); - $1.cws = $a($f($1.c * $1.r + 1)); - $put($1.cws, 0, $1.n); - $puti($1.cws, 1, $1.datcws); - $k[$j++] = $1.cws; - $k[$j++] = $1.m + 1; - $k[$j++] = Infinity; - for (var _DK = 0, _DL = $f($f($1.n - $1.m) - 1); _DK < _DL; _DK++) { - $k[$j++] = 900; - } - var _DM = $a(); - var _DN = $k[--$j]; - $puti($k[--$j], _DN, _DM); - $k[$j++] = $1.cws; - $k[$j++] = $1.n; - $k[$j++] = Infinity; - for (var _DS = 0, _DT = $1.k; _DS < _DT; _DS++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - var _DU = $a(); - var _DV = $k[--$j]; - $puti($k[--$j], _DV, _DU); - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _DX = 0, _DY = 928; _DX < _DY; _DX++) { - var _DZ = $k[--$j]; - $k[$j++] = _DZ; - $k[$j++] = _DZ * 3 % 929; - } - $1.rsalog = $a(); - $1.rslog = $a(929); - for (var _Dc = 1; _Dc <= 928; _Dc += 1) { - $put($1.rslog, $get($1.rsalog, _Dc), _Dc); - } + } //#15617 + $1.addtocws(); //#15617 + } //#15617 + } else { //#15626 + $k[$j++] = $a([$get($1.latchcws, $1.chars)]); //#15620 + $1.addtocws(); //#15620 + if ($1.chars == $1.tl) { //#15621 + $1.state = $1.T; //#15621 + $1.submode = $1.A; //#15621 + } //#15621 + if ($1.chars == $1.nl) { //#15622 + $1.state = $1.N; //#15622 + } //#15622 + if (($1.chars == $1.bl) || ($1.chars == $1.bl6)) { //#15623 + $1.state = $1.B; //#15623 + } //#15623 + if ($1.chars == $1.bs) { //#15627 + $1.i = $1.i + 1; //#15625 + $k[$j++] = $get($1.seq, $1.i); //#15626 + $1.encb(); //#15626 + $1.addtocws(); //#15626 + } //#15626 + } //#15626 + $1.i = $1.i + 1; //#15629 + } //#15629 + $1.datcws = $geti($1.datcws, 0, $1.j); //#15631 + } //#15631 + $1.m = $1.datcws.length; //#15635 + if ($1.eclevel == -1) { //#15641 + if ($1.m <= 40) { //#15637 + $1.eclevel = 2; //#15637 + } //#15637 + if (($1.m >= 41) && ($1.m <= 160)) { //#15638 + $1.eclevel = 3; //#15638 + } //#15638 + if (($1.m >= 161) && ($1.m <= 320)) { //#15639 + $1.eclevel = 4; //#15639 + } //#15639 + if ($1.m >= 321) { //#15640 + $1.eclevel = 5; //#15640 + } //#15640 + } //#15640 + $1.maxeclevel = (~~((Math.log((928 - 1) - $1.m)) / Math.log(2))) - 1; //#15644 + if ($1.eclevel > $1.maxeclevel) { //#15645 + $1.eclevel = $1.maxeclevel; //#15645 + } //#15645 + $1.k = ~~Math.pow(2, $1.eclevel + 1); //#15646 + if ($1.columns == 0) { //#15649 + $1.columns = ~~(Math.round(Math.sqrt(($1.m + $1.k) / 3))); //#15649 + } //#15649 + $k[$j++] = 'c'; //#15650 + if ($1.columns >= 1) { //#15650 + $k[$j++] = $1.columns; //#15650 + } else { //#15650 + $k[$j++] = 1; //#15650 + } //#15650 + var _Cn = $k[--$j]; //#15650 + $1[$k[--$j]] = _Cn; //#15650 + $1.r = ~~(Math.ceil((($1.m + $1.k) + 1) / $1.columns)); //#15653 + if (($1.r < $1.rows) && ($1.rows <= 90)) { //#15654 + $1.r = $1.rows; //#15654 + } //#15654 + if ($1.r < 3) { //#15655 + $1.r = 3; //#15655 + } //#15655 + var _Cx = $1.c; //#15658 + var _Cy = $1.r; //#15658 + var _Cz = $1.m; //#15658 + var _D0 = 8; //#15658 + var _D1 = (~~((Math.log($f(($f((_Cx * _Cy) - 1)) - _Cz))) / Math.log(2))) - 1; //#15658 + if (((~~((Math.log($f(($f((_Cx * _Cy) - 1)) - _Cz))) / Math.log(2))) - 1) > 8) { //#15658 + var _ = _D0; //#15658 + _D0 = _D1; //#15658 + _D1 = _; //#15658 + } //#15658 + $1.maxeclevel = _D1; //#15658 + if ($1.maxeclevel > $1.eclevel) { //#15662 + $1.eclevel = $1.maxeclevel; //#15660 + $1.k = ~~Math.pow(2, $1.eclevel + 1); //#15661 + } //#15661 + $1.n = $f(($1.c * $1.r) - $1.k); //#15665 + $1.cws = $a($f(($1.c * $1.r) + 1)); //#15666 + $put($1.cws, 0, $1.n); //#15667 + $puti($1.cws, 1, $1.datcws); //#15668 + $k[$j++] = $1.cws; //#15669 + $k[$j++] = $1.m + 1; //#15669 + $k[$j++] = Infinity; //#15669 + for (var _DK = 0, _DL = $f($f($1.n - $1.m) - 1); _DK < _DL; _DK++) { //#15669 + $k[$j++] = 900; //#15669 + } //#15669 + var _DM = $a(); //#15669 + var _DN = $k[--$j]; //#15669 + $puti($k[--$j], _DN, _DM); //#15669 + $k[$j++] = $1.cws; //#15670 + $k[$j++] = $1.n; //#15670 + $k[$j++] = Infinity; //#15670 + for (var _DS = 0, _DT = $1.k; _DS < _DT; _DS++) { //#15670 + $k[$j++] = 0; //#15670 + } //#15670 + $k[$j++] = 0; //#15670 + var _DU = $a(); //#15670 + var _DV = $k[--$j]; //#15670 + $puti($k[--$j], _DV, _DU); //#15670 + $k[$j++] = Infinity; //#15673 + $k[$j++] = 1; //#15673 + for (var _DX = 0, _DY = 928; _DX < _DY; _DX++) { //#15673 + var _DZ = $k[--$j]; //#15673 + $k[$j++] = _DZ; //#15673 + $k[$j++] = (_DZ * 3) % 929; //#15673 + } //#15673 + $1.rsalog = $a(); //#15673 + $1.rslog = $a(929); //#15674 + for (var _Dc = 1; _Dc <= 928; _Dc += 1) { //#15675 + $put($1.rslog, $get($1.rsalog, _Dc), _Dc); //#15675 + } //#15675 $1.rsprod = function() { - var _Dg = $k[--$j]; - var _Dh = $k[--$j]; - $k[$j++] = _Dh; - $k[$j++] = _Dg; - if (_Dg != 0 && _Dh != 0) { - var _Dk = $get($1.rslog, $k[--$j]); - var _Dp = $get($1.rsalog, $f(_Dk + $get($1.rslog, $k[--$j])) % 928); - $k[$j++] = _Dp; - } else { - $j -= 2; - $k[$j++] = 0; - } - }; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _Dr = 0, _Ds = $1.k; _Dr < _Ds; _Dr++) { - $k[$j++] = 0; - } - $1.coeffs = $a(); - for (var _Dw = 1, _Dv = $1.k; _Dw <= _Dv; _Dw += 1) { - $1.i = _Dw; - $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); - for (var _E3 = $1.i - 1; _E3 >= 1; _E3 -= 1) { - $1.j = _E3; - $k[$j++] = $1.coeffs; - $k[$j++] = $1.j; - $k[$j++] = $get($1.coeffs, $1.j - 1); - $k[$j++] = $get($1.coeffs, $1.j); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _EF = $k[--$j]; - var _EG = $k[--$j]; - var _EH = $k[--$j]; - $put($k[--$j], _EH, $f(_EG + _EF) % 929); - } - $k[$j++] = $1.coeffs; - $k[$j++] = 0; - $k[$j++] = $get($1.coeffs, 0); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _EP = $k[--$j]; - var _EQ = $k[--$j]; - $put($k[--$j], _EQ, _EP); - } - $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); - for (var _EW = $1.coeffs.length - 1; _EW >= 0; _EW -= 2) { - var _EX = $1.coeffs; - $put(_EX, _EW, $f(929 - $get(_EX, _EW))); - } - for (var _Eb = 0, _Ea = $f($1.n - 1); _Eb <= _Ea; _Eb += 1) { - $1.t = $f($get($1.cws, _Eb) + $get($1.cws, $1.n)) % 929; - for (var _Ej = 0, _Ei = $1.k - 1; _Ej <= _Ei; _Ej += 1) { - $1.j = _Ej; - $put($1.cws, $f($1.n + $1.j), $f($get($1.cws, $f($f($1.n + $1.j) + 1)) + $f(929 - $1.t * $get($1.coeffs, $1.k - $1.j - 1) % 929)) % 929); - } - } - for (var _F0 = $1.n, _Ez = $f($1.n + $1.k); _F0 <= _Ez; _F0 += 1) { - $put($1.cws, _F0, $f(929 - $get($1.cws, _F0)) % 929); - } - $1.cws = $geti($1.cws, 0, $1.cws.length - 1); - $1.clusters = $a([ $a([ 120256, 125680, 128380, 120032, 125560, 128318, 108736, 119920, 108640, 86080, 108592, 86048, 110016, 120560, 125820, 109792, 120440, 125758, 88256, 109680, 88160, 89536, 110320, 120700, 89312, 110200, 120638, 89200, 110140, 89840, 110460, 89720, 110398, 89980, 128506, 119520, 125304, 128190, 107712, 119408, 125244, 107616, 119352, 84032, 107568, 119324, 84e3, 107544, 83984, 108256, 119672, 125374, 85184, 108144, 119612, 85088, 108088, 119582, 85040, 108060, 85728, 108408, 119742, 85616, 108348, 85560, 108318, 85880, 108478, 85820, 85790, 107200, 119152, 125116, 107104, 119096, 125086, 83008, 107056, 119068, 82976, 107032, 82960, 82952, 83648, 107376, 119228, 83552, 107320, 119198, 83504, 107292, 83480, 83468, 83824, 107452, 83768, 107422, 83740, 83900, 106848, 118968, 125022, 82496, 106800, 118940, 82464, 106776, 118926, 82448, 106764, 82440, 106758, 82784, 106936, 119006, 82736, 106908, 82712, 106894, 82700, 82694, 106974, 82830, 82240, 106672, 118876, 82208, 106648, 118862, 82192, 106636, 82184, 106630, 82180, 82352, 82328, 82316, 82080, 118830, 106572, 106566, 82050, 117472, 124280, 127678, 103616, 117360, 124220, 103520, 117304, 124190, 75840, 103472, 75808, 104160, 117624, 124350, 76992, 104048, 117564, 76896, 103992, 76848, 76824, 77536, 104312, 117694, 77424, 104252, 77368, 77340, 77688, 104382, 77628, 77758, 121536, 126320, 128700, 121440, 126264, 128670, 111680, 121392, 126236, 111648, 121368, 126222, 111632, 121356, 103104, 117104, 124092, 112320, 103008, 117048, 124062, 112224, 121656, 126366, 93248, 74784, 102936, 117006, 93216, 112152, 93200, 75456, 103280, 117180, 93888, 75360, 103224, 117150, 93792, 112440, 121758, 93744, 75288, 93720, 75632, 103356, 94064, 75576, 103326, 94008, 112542, 93980, 75708, 94140, 75678, 94110, 121184, 126136, 128606, 111168, 121136, 126108, 111136, 121112, 126094, 111120, 121100, 111112, 111108, 102752, 116920, 123998, 111456, 102704, 116892, 91712, 74272, 121244, 116878, 91680, 74256, 102668, 91664, 111372, 102662, 74244, 74592, 102840, 116958, 92e3, 74544, 102812, 91952, 111516, 102798, 91928, 74508, 74502, 74680, 102878, 92088, 74652, 92060, 74638, 92046, 92126, 110912, 121008, 126044, 110880, 120984, 126030, 110864, 120972, 110856, 120966, 110852, 110850, 74048, 102576, 116828, 90944, 74016, 102552, 116814, 90912, 111e3, 121038, 90896, 73992, 102534, 90888, 110982, 90884, 74160, 102620, 91056, 74136, 102606, 91032, 111054, 91020, 74118, 91014, 91100, 91086, 110752, 120920, 125998, 110736, 120908, 110728, 120902, 110724, 110722, 73888, 102488, 116782, 90528, 73872, 102476, 90512, 110796, 102470, 90504, 73860, 90500, 73858, 73944, 90584, 90572, 90566, 120876, 120870, 110658, 102444, 73800, 90312, 90308, 90306, 101056, 116080, 123580, 100960, 116024, 70720, 100912, 115996, 70688, 100888, 70672, 70664, 71360, 101232, 116156, 71264, 101176, 116126, 71216, 101148, 71192, 71180, 71536, 101308, 71480, 101278, 71452, 71612, 71582, 118112, 124600, 127838, 105024, 118064, 124572, 104992, 118040, 124558, 104976, 118028, 104968, 118022, 100704, 115896, 123486, 105312, 100656, 115868, 79424, 70176, 118172, 115854, 79392, 105240, 100620, 79376, 70152, 79368, 70496, 100792, 115934, 79712, 70448, 118238, 79664, 105372, 100750, 79640, 70412, 79628, 70584, 100830, 79800, 70556, 79772, 70542, 70622, 79838, 122176, 126640, 128860, 122144, 126616, 128846, 122128, 126604, 122120, 126598, 122116, 104768, 117936, 124508, 113472, 104736, 126684, 124494, 113440, 122264, 126670, 113424, 104712, 117894, 113416, 122246, 104706, 69952, 100528, 115804, 78656, 69920, 100504, 115790, 96064, 78624, 104856, 117966, 96032, 113560, 122318, 100486, 96016, 78600, 104838, 96008, 69890, 70064, 100572, 78768, 70040, 100558, 96176, 78744, 104910, 96152, 113614, 70022, 78726, 70108, 78812, 70094, 96220, 78798, 122016, 126552, 128814, 122e3, 126540, 121992, 126534, 121988, 121986, 104608, 117848, 124462, 113056, 104592, 126574, 113040, 122060, 117830, 113032, 104580, 113028, 104578, 113026, 69792, 100440, 115758, 78240, 69776, 100428, 95136, 78224, 104652, 100422, 95120, 113100, 69764, 95112, 78212, 69762, 78210, 69848, 100462, 78296, 69836, 95192, 78284, 69830, 95180, 78278, 69870, 95214, 121936, 126508, 121928, 126502, 121924, 121922, 104528, 117804, 112848, 104520, 117798, 112840, 121958, 112836, 104514, 112834, 69712, 100396, 78032, 69704, 100390, 94672, 78024, 104550, 94664, 112870, 69698, 94660, 78018, 94658, 78060, 94700, 94694, 126486, 121890, 117782, 104484, 104482, 69672, 77928, 94440, 69666, 77922, 99680, 68160, 99632, 68128, 99608, 115342, 68112, 99596, 68104, 99590, 68448, 99768, 115422, 68400, 99740, 68376, 99726, 68364, 68358, 68536, 99806, 68508, 68494, 68574, 101696, 116400, 123740, 101664, 116376, 101648, 116364, 101640, 116358, 101636, 67904, 99504, 115292, 72512, 67872, 116444, 115278, 72480, 101784, 116430, 72464, 67848, 99462, 72456, 101766, 67842, 68016, 99548, 72624, 67992, 99534, 72600, 101838, 72588, 67974, 68060, 72668, 68046, 72654, 118432, 124760, 127918, 118416, 124748, 118408, 124742, 118404, 118402, 101536, 116312, 105888, 101520, 116300, 105872, 118476, 116294, 105864, 101508, 105860, 101506, 105858, 67744, 99416, 72096, 67728, 116334, 80800, 72080, 101580, 99398, 80784, 105932, 67716, 80776, 72068, 67714, 72066, 67800, 99438, 72152, 67788, 80856, 72140, 67782, 80844, 72134, 67822, 72174, 80878, 126800, 128940, 126792, 128934, 126788, 126786, 118352, 124716, 122576, 126828, 124710, 122568, 126822, 122564, 118338, 122562, 101456, 116268, 105680, 101448, 116262, 114128, 105672, 118374, 114120, 122598, 101442, 114116, 105666, 114114, 67664, 99372, 71888, 67656, 99366, 80336, 71880, 101478, 97232, 80328, 105702, 67650, 97224, 114150, 71874, 97220, 67692, 71916, 67686, 80364, 71910, 97260, 80358, 97254, 126760, 128918, 126756, 126754, 118312, 124694, 122472, 126774, 122468, 118306, 122466, 101416, 116246, 105576, 101412, 113896, 105572, 101410, 113892, 105570, 113890, 67624, 99350, 71784, 101430, 80104, 71780, 67618, 96744, 80100, 71778, 96740, 80098, 96738, 71798, 96758, 126738, 122420, 122418, 105524, 113780, 113778, 71732, 79988, 96500, 96498, 66880, 66848, 98968, 66832, 66824, 66820, 66992, 66968, 66956, 66950, 67036, 67022, 1e5, 99984, 115532, 99976, 115526, 99972, 99970, 66720, 98904, 69024, 100056, 98892, 69008, 100044, 69e3, 100038, 68996, 66690, 68994, 66776, 98926, 69080, 100078, 69068, 66758, 69062, 66798, 69102, 116560, 116552, 116548, 116546, 99920, 102096, 116588, 115494, 102088, 116582, 102084, 99906, 102082, 66640, 68816, 66632, 98854, 73168, 68808, 66628, 73160, 68804, 66626, 73156, 68802, 66668, 68844, 66662, 73196, 68838, 73190, 124840, 124836, 124834, 116520, 118632, 124854, 118628, 116514, 118626, 99880, 115478, 101992, 116534, 106216, 101988, 99874, 106212, 101986, 106210, 66600, 98838, 68712, 99894, 72936, 68708, 66594, 81384, 72932, 68706, 81380, 72930, 66614, 68726, 72950, 81398, 128980, 128978, 124820, 126900, 124818, 126898, 116500, 118580, 116498, 122740, 118578, 122738, 99860, 101940, 99858, 106100, 101938, 114420 ]), $a([ 128352, 129720, 125504, 128304, 129692, 125472, 128280, 129678, 125456, 128268, 125448, 128262, 125444, 125792, 128440, 129758, 120384, 125744, 128412, 120352, 125720, 128398, 120336, 125708, 120328, 125702, 120324, 120672, 125880, 128478, 110144, 120624, 125852, 110112, 120600, 125838, 110096, 120588, 110088, 120582, 110084, 110432, 120760, 125918, 89664, 110384, 120732, 89632, 110360, 120718, 89616, 110348, 89608, 110342, 89952, 110520, 120798, 89904, 110492, 89880, 110478, 89868, 90040, 110558, 90012, 89998, 125248, 128176, 129628, 125216, 128152, 129614, 125200, 128140, 125192, 128134, 125188, 125186, 119616, 125360, 128220, 119584, 125336, 128206, 119568, 125324, 119560, 125318, 119556, 119554, 108352, 119728, 125404, 108320, 119704, 125390, 108304, 119692, 108296, 119686, 108292, 108290, 85824, 108464, 119772, 85792, 108440, 119758, 85776, 108428, 85768, 108422, 85764, 85936, 108508, 85912, 108494, 85900, 85894, 85980, 85966, 125088, 128088, 129582, 125072, 128076, 125064, 128070, 125060, 125058, 119200, 125144, 128110, 119184, 125132, 119176, 125126, 119172, 119170, 107424, 119256, 125166, 107408, 119244, 107400, 119238, 107396, 107394, 83872, 107480, 119278, 83856, 107468, 83848, 107462, 83844, 83842, 83928, 107502, 83916, 83910, 83950, 125008, 128044, 125e3, 128038, 124996, 124994, 118992, 125036, 118984, 125030, 118980, 118978, 106960, 119020, 106952, 119014, 106948, 106946, 82896, 106988, 82888, 106982, 82884, 82882, 82924, 82918, 124968, 128022, 124964, 124962, 118888, 124982, 118884, 118882, 106728, 118902, 106724, 106722, 82408, 106742, 82404, 82402, 124948, 124946, 118836, 118834, 106612, 106610, 124224, 127664, 129372, 124192, 127640, 129358, 124176, 127628, 124168, 127622, 124164, 124162, 117568, 124336, 127708, 117536, 124312, 127694, 117520, 124300, 117512, 124294, 117508, 117506, 104256, 117680, 124380, 104224, 117656, 124366, 104208, 117644, 104200, 117638, 104196, 104194, 77632, 104368, 117724, 77600, 104344, 117710, 77584, 104332, 77576, 104326, 77572, 77744, 104412, 77720, 104398, 77708, 77702, 77788, 77774, 128672, 129880, 93168, 128656, 129868, 92664, 128648, 129862, 92412, 128644, 128642, 124064, 127576, 129326, 126368, 124048, 129902, 126352, 128716, 127558, 126344, 124036, 126340, 124034, 126338, 117152, 124120, 127598, 121760, 117136, 124108, 121744, 126412, 124102, 121736, 117124, 121732, 117122, 121730, 103328, 117208, 124142, 112544, 103312, 117196, 112528, 121804, 117190, 112520, 103300, 112516, 103298, 112514, 75680, 103384, 117230, 94112, 75664, 103372, 94096, 112588, 103366, 94088, 75652, 94084, 75650, 75736, 103406, 94168, 75724, 94156, 75718, 94150, 75758, 128592, 129836, 91640, 128584, 129830, 91388, 128580, 91262, 128578, 123984, 127532, 126160, 123976, 127526, 126152, 128614, 126148, 123970, 126146, 116944, 124012, 121296, 116936, 124006, 121288, 126182, 121284, 116930, 121282, 102864, 116972, 111568, 102856, 116966, 111560, 121318, 111556, 102850, 111554, 74704, 102892, 92112, 74696, 102886, 92104, 111590, 92100, 74690, 92098, 74732, 92140, 74726, 92134, 128552, 129814, 90876, 128548, 90750, 128546, 123944, 127510, 126056, 128566, 126052, 123938, 126050, 116840, 123958, 121064, 116836, 121060, 116834, 121058, 102632, 116854, 111080, 121078, 111076, 102626, 111074, 74216, 102646, 91112, 74212, 91108, 74210, 91106, 74230, 91126, 128532, 90494, 128530, 123924, 126004, 123922, 126002, 116788, 120948, 116786, 120946, 102516, 110836, 102514, 110834, 73972, 90612, 73970, 90610, 128522, 123914, 125978, 116762, 120890, 102458, 110714, 123552, 127320, 129198, 123536, 127308, 123528, 127302, 123524, 123522, 116128, 123608, 127342, 116112, 123596, 116104, 123590, 116100, 116098, 101280, 116184, 123630, 101264, 116172, 101256, 116166, 101252, 101250, 71584, 101336, 116206, 71568, 101324, 71560, 101318, 71556, 71554, 71640, 101358, 71628, 71622, 71662, 127824, 129452, 79352, 127816, 129446, 79100, 127812, 78974, 127810, 123472, 127276, 124624, 123464, 127270, 124616, 127846, 124612, 123458, 124610, 115920, 123500, 118224, 115912, 123494, 118216, 124646, 118212, 115906, 118210, 100816, 115948, 105424, 100808, 115942, 105416, 118246, 105412, 100802, 105410, 70608, 100844, 79824, 70600, 100838, 79816, 105446, 79812, 70594, 79810, 70636, 79852, 70630, 79846, 129960, 95728, 113404, 129956, 95480, 113278, 129954, 95356, 95294, 127784, 129430, 78588, 128872, 129974, 95996, 78462, 128868, 127778, 95870, 128866, 123432, 127254, 124520, 123428, 126696, 128886, 123426, 126692, 124514, 126690, 115816, 123446, 117992, 115812, 122344, 117988, 115810, 122340, 117986, 122338, 100584, 115830, 104936, 100580, 113640, 104932, 100578, 113636, 104930, 113634, 70120, 100598, 78824, 70116, 96232, 78820, 70114, 96228, 78818, 96226, 70134, 78838, 129940, 94968, 113022, 129938, 94844, 94782, 127764, 78206, 128820, 127762, 95102, 128818, 123412, 124468, 123410, 126580, 124466, 126578, 115764, 117876, 115762, 122100, 117874, 122098, 100468, 104692, 100466, 113140, 104690, 113138, 69876, 78324, 69874, 95220, 78322, 95218, 129930, 94588, 94526, 127754, 128794, 123402, 124442, 126522, 115738, 117818, 121978, 100410, 104570, 112890, 69754, 78074, 94714, 94398, 123216, 127148, 123208, 127142, 123204, 123202, 115408, 123244, 115400, 123238, 115396, 115394, 99792, 115436, 99784, 115430, 99780, 99778, 68560, 99820, 68552, 99814, 68548, 68546, 68588, 68582, 127400, 129238, 72444, 127396, 72318, 127394, 123176, 127126, 123752, 123172, 123748, 123170, 123746, 115304, 123190, 116456, 115300, 116452, 115298, 116450, 99560, 115318, 101864, 99556, 101860, 99554, 101858, 68072, 99574, 72680, 68068, 72676, 68066, 72674, 68086, 72694, 129492, 80632, 105854, 129490, 80508, 80446, 127380, 72062, 127924, 127378, 80766, 127922, 123156, 123700, 123154, 124788, 123698, 124786, 115252, 116340, 115250, 118516, 116338, 118514, 99444, 101620, 99442, 105972, 101618, 105970, 67828, 72180, 67826, 80884, 72178, 80882, 97008, 114044, 96888, 113982, 96828, 96798, 129482, 80252, 130010, 97148, 80190, 97086, 127370, 127898, 128954, 123146, 123674, 124730, 126842, 115226, 116282, 118394, 122618, 99386, 101498, 105722, 114170, 67706, 71930, 80378, 96632, 113854, 96572, 96542, 80062, 96702, 96444, 96414, 96350, 123048, 123044, 123042, 115048, 123062, 115044, 115042, 99048, 115062, 99044, 99042, 67048, 99062, 67044, 67042, 67062, 127188, 68990, 127186, 123028, 123316, 123026, 123314, 114996, 115572, 114994, 115570, 98932, 100084, 98930, 100082, 66804, 69108, 66802, 69106, 129258, 73084, 73022, 127178, 127450, 123018, 123290, 123834, 114970, 115514, 116602, 98874, 99962, 102138, 66682, 68858, 73210, 81272, 106174, 81212, 81182, 72894, 81342, 97648, 114364, 97592, 114334, 97564, 97550, 81084, 97724, 81054, 97694, 97464, 114270, 97436, 97422, 80990, 97502, 97372, 97358, 97326, 114868, 114866, 98676, 98674, 66292, 66290, 123098, 114842, 115130, 98618, 99194, 66170, 67322, 69310, 73404, 73374, 81592, 106334, 81564, 81550, 73310, 81630, 97968, 114524, 97944, 114510, 97932, 97926, 81500, 98012, 81486, 97998, 97880, 114478, 97868, 97862, 81454, 97902, 97836, 97830, 69470, 73564, 73550, 81752, 106414, 81740, 81734, 73518, 81774, 81708, 81702 ]), $a([ 109536, 120312, 86976, 109040, 120060, 86496, 108792, 119934, 86256, 108668, 86136, 129744, 89056, 110072, 129736, 88560, 109820, 129732, 88312, 109694, 129730, 88188, 128464, 129772, 89592, 128456, 129766, 89340, 128452, 89214, 128450, 125904, 128492, 125896, 128486, 125892, 125890, 120784, 125932, 120776, 125926, 120772, 120770, 110544, 120812, 110536, 120806, 110532, 84928, 108016, 119548, 84448, 107768, 119422, 84208, 107644, 84088, 107582, 84028, 129640, 85488, 108284, 129636, 85240, 108158, 129634, 85116, 85054, 128232, 129654, 85756, 128228, 85630, 128226, 125416, 128246, 125412, 125410, 119784, 125430, 119780, 119778, 108520, 119798, 108516, 108514, 83424, 107256, 119166, 83184, 107132, 83064, 107070, 83004, 82974, 129588, 83704, 107390, 129586, 83580, 83518, 128116, 83838, 128114, 125172, 125170, 119284, 119282, 107508, 107506, 82672, 106876, 82552, 106814, 82492, 82462, 129562, 82812, 82750, 128058, 125050, 119034, 82296, 106686, 82236, 82206, 82366, 82108, 82078, 76736, 103920, 117500, 76256, 103672, 117374, 76016, 103548, 75896, 103486, 75836, 129384, 77296, 104188, 129380, 77048, 104062, 129378, 76924, 76862, 127720, 129398, 77564, 127716, 77438, 127714, 124392, 127734, 124388, 124386, 117736, 124406, 117732, 117730, 104424, 117750, 104420, 104418, 112096, 121592, 126334, 92608, 111856, 121468, 92384, 111736, 121406, 92272, 111676, 92216, 111646, 92188, 75232, 103160, 117118, 93664, 74992, 103036, 93424, 112252, 102974, 93304, 74812, 93244, 74782, 93214, 129332, 75512, 103294, 129908, 129330, 93944, 75388, 129906, 93820, 75326, 93758, 127604, 75646, 128756, 127602, 94078, 128754, 124148, 126452, 124146, 126450, 117236, 121844, 117234, 121842, 103412, 103410, 91584, 111344, 121212, 91360, 111224, 121150, 91248, 111164, 91192, 111134, 91164, 91150, 74480, 102780, 91888, 74360, 102718, 91768, 111422, 91708, 74270, 91678, 129306, 74620, 129850, 92028, 74558, 91966, 127546, 128634, 124026, 126202, 116986, 121338, 102906, 90848, 110968, 121022, 90736, 110908, 90680, 110878, 90652, 90638, 74104, 102590, 91e3, 74044, 90940, 74014, 90910, 74174, 91070, 90480, 110780, 90424, 110750, 90396, 90382, 73916, 90556, 73886, 90526, 90296, 110686, 90268, 90254, 73822, 90334, 90204, 90190, 71136, 101112, 116094, 70896, 100988, 70776, 100926, 70716, 70686, 129204, 71416, 101246, 129202, 71292, 71230, 127348, 71550, 127346, 123636, 123634, 116212, 116210, 101364, 101362, 79296, 105200, 118140, 79072, 105080, 118078, 78960, 105020, 78904, 104990, 78876, 78862, 70384, 100732, 79600, 70264, 100670, 79480, 105278, 79420, 70174, 79390, 129178, 70524, 129466, 79740, 70462, 79678, 127290, 127866, 123514, 124666, 115962, 118266, 100858, 113376, 122232, 126654, 95424, 113264, 122172, 95328, 113208, 122142, 95280, 113180, 95256, 113166, 95244, 78560, 104824, 117950, 95968, 78448, 104764, 95856, 113468, 104734, 95800, 78364, 95772, 78350, 95758, 70008, 100542, 78712, 69948, 96120, 78652, 69918, 96060, 78622, 96030, 70078, 78782, 96190, 94912, 113008, 122044, 94816, 112952, 122014, 94768, 112924, 94744, 112910, 94732, 94726, 78192, 104636, 95088, 78136, 104606, 95032, 113054, 95004, 78094, 94990, 69820, 78268, 69790, 95164, 78238, 95134, 94560, 112824, 121950, 94512, 112796, 94488, 112782, 94476, 94470, 78008, 104542, 94648, 77980, 94620, 77966, 94606, 69726, 78046, 94686, 94384, 112732, 94360, 112718, 94348, 94342, 77916, 94428, 77902, 94414, 94296, 112686, 94284, 94278, 77870, 94318, 94252, 94246, 68336, 99708, 68216, 99646, 68156, 68126, 68476, 68414, 127162, 123258, 115450, 99834, 72416, 101752, 116414, 72304, 101692, 72248, 101662, 72220, 72206, 67960, 99518, 72568, 67900, 72508, 67870, 72478, 68030, 72638, 80576, 105840, 118460, 80480, 105784, 118430, 80432, 105756, 80408, 105742, 80396, 80390, 72048, 101564, 80752, 71992, 101534, 80696, 71964, 80668, 71950, 80654, 67772, 72124, 67742, 80828, 72094, 80798, 114016, 122552, 126814, 96832, 113968, 122524, 96800, 113944, 122510, 96784, 113932, 96776, 113926, 96772, 80224, 105656, 118366, 97120, 80176, 105628, 97072, 114076, 105614, 97048, 80140, 97036, 80134, 97030, 71864, 101470, 80312, 71836, 97208, 80284, 71822, 97180, 80270, 97166, 67678, 71902, 80350, 97246, 96576, 113840, 122460, 96544, 113816, 122446, 96528, 113804, 96520, 113798, 96516, 96514, 80048, 105564, 96688, 80024, 105550, 96664, 113870, 96652, 80006, 96646, 71772, 80092, 71758, 96732, 80078, 96718, 96416, 113752, 122414, 96400, 113740, 96392, 113734, 96388, 96386, 79960, 105518, 96472, 79948, 96460, 79942, 96454, 71726, 79982, 96494, 96336, 113708, 96328, 113702, 96324, 96322, 79916, 96364, 79910, 96358, 96296, 113686, 96292, 96290, 79894, 96310, 66936, 99006, 66876, 66846, 67006, 68976, 100028, 68920, 99998, 68892, 68878, 66748, 69052, 66718, 69022, 73056, 102072, 116574, 73008, 102044, 72984, 102030, 72972, 72966, 68792, 99934, 73144, 68764, 73116, 68750, 73102, 66654, 68830, 73182, 81216, 106160, 118620, 81184, 106136, 118606, 81168, 106124, 81160, 106118, 81156, 81154, 72880, 101980, 81328, 72856, 101966, 81304, 106190, 81292, 72838, 81286, 68700, 72924, 68686, 81372, 72910, 81358, 114336, 122712, 126894, 114320, 122700, 114312, 122694, 114308, 114306, 81056, 106072, 118574, 97696, 81040, 106060, 97680, 114380, 106054, 97672, 81028, 97668, 81026, 97666, 72792, 101934, 81112, 72780, 97752, 81100, 72774, 97740, 81094, 97734, 68654, 72814, 81134, 97774, 114256, 122668, 114248, 122662, 114244, 114242, 80976, 106028, 97488, 80968, 106022, 97480, 114278, 97476, 80962, 97474, 72748, 81004, 72742, 97516, 80998, 97510, 114216, 122646, 114212, 114210, 80936, 106006, 97384, 80932, 97380, 80930, 97378, 72726, 80950, 97398, 114196, 114194, 80916, 97332, 80914, 97330, 66236, 66206, 67256, 99166, 67228, 67214, 66142, 67294, 69296, 100188, 69272, 100174, 69260, 69254, 67164, 69340, 67150, 69326, 73376, 102232, 116654, 73360, 102220, 73352, 102214, 73348, 73346, 69208, 100142, 73432, 102254, 73420, 69190, 73414, 67118, 69230, 73454, 106320, 118700, 106312, 118694, 106308, 106306, 73296, 102188, 81616, 106348, 102182, 81608, 73284, 81604, 73282, 81602, 69164, 73324, 69158, 81644, 73318, 81638, 122792, 126934, 122788, 122786, 106280, 118678, 114536, 106276, 114532, 106274, 114530, 73256, 102166, 81512, 73252, 98024, 81508, 73250, 98020, 81506, 98018, 69142, 73270, 81526, 98038, 122772, 122770, 106260, 114484, 106258, 114482, 73236, 81460, 73234, 97908, 81458, 97906, 122762, 106250, 114458, 73226, 81434, 97850, 66396, 66382, 67416, 99246, 67404, 67398, 66350, 67438, 69456, 100268, 69448, 100262, 69444, 69442, 67372, 69484, 67366, 69478, 102312, 116694, 102308, 102306, 69416, 100246, 73576, 102326, 73572, 69410, 73570, 67350, 69430, 73590, 118740, 118738, 102292, 106420, 102290, 106418, 69396, 73524, 69394, 81780, 73522, 81778, 118730, 102282, 106394, 69386, 73498, 81722, 66476, 66470, 67496, 99286, 67492, 67490, 66454, 67510, 100308, 100306, 67476, 69556, 67474, 69554, 116714 ]) ]); + var _Dg = $k[--$j]; //#15679 + var _Dh = $k[--$j]; //#15679 + $k[$j++] = _Dh; //#15683 + $k[$j++] = _Dg; //#15683 + if ((_Dg != 0) && (_Dh != 0)) { //#15682 + var _Dk = $get($1.rslog, $k[--$j]); //#15680 + var _Dp = $get($1.rsalog, $f(_Dk + $get($1.rslog, $k[--$j])) % 928); //#15680 + $k[$j++] = _Dp; //#15680 + } else { //#15682 + $j -= 2; //#15682 + $k[$j++] = 0; //#15682 + } //#15682 + }; //#15684 + $k[$j++] = Infinity; //#15687 + $k[$j++] = 1; //#15687 + for (var _Dr = 0, _Ds = $1.k; _Dr < _Ds; _Dr++) { //#15687 + $k[$j++] = 0; //#15687 + } //#15687 + $1.coeffs = $a(); //#15687 + for (var _Dw = 1, _Dv = $1.k; _Dw <= _Dv; _Dw += 1) { //#15696 + $1.i = _Dw; //#15689 + $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); //#15690 + for (var _E3 = $1.i - 1; _E3 >= 1; _E3 -= 1) { //#15694 + $1.j = _E3; //#15692 + $k[$j++] = $1.coeffs; //#15693 + $k[$j++] = $1.j; //#15693 + $k[$j++] = $get($1.coeffs, $1.j - 1); //#15693 + $k[$j++] = $get($1.coeffs, $1.j); //#15693 + $k[$j++] = $get($1.rsalog, $1.i); //#15693 + $1.rsprod(); //#15693 + var _EF = $k[--$j]; //#15693 + var _EG = $k[--$j]; //#15693 + var _EH = $k[--$j]; //#15693 + $put($k[--$j], _EH, $f(_EG + _EF) % 929); //#15693 + } //#15693 + $k[$j++] = $1.coeffs; //#15695 + $k[$j++] = 0; //#15695 + $k[$j++] = $get($1.coeffs, 0); //#15695 + $k[$j++] = $get($1.rsalog, $1.i); //#15695 + $1.rsprod(); //#15695 + var _EP = $k[--$j]; //#15695 + var _EQ = $k[--$j]; //#15695 + $put($k[--$j], _EQ, _EP); //#15695 + } //#15695 + $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); //#15697 + for (var _EW = $1.coeffs.length - 1; _EW >= 0; _EW -= 2) { //#15698 + var _EX = $1.coeffs; //#15698 + $put(_EX, _EW, $f(929 - $get(_EX, _EW))); //#15698 + } //#15698 + for (var _Eb = 0, _Ea = $f($1.n - 1); _Eb <= _Ea; _Eb += 1) { //#15707 + $1.t = $f($get($1.cws, _Eb) + $get($1.cws, $1.n)) % 929; //#15702 + for (var _Ej = 0, _Ei = $1.k - 1; _Ej <= _Ei; _Ej += 1) { //#15706 + $1.j = _Ej; //#15704 + $put($1.cws, $f($1.n + $1.j), ($f($get($1.cws, $f($f($1.n + $1.j) + 1)) + ($f(929 - (($1.t * $get($1.coeffs, ($1.k - $1.j) - 1)) % 929))))) % 929); //#15705 + } //#15705 + } //#15705 + for (var _F0 = $1.n, _Ez = $f($1.n + $1.k); _F0 <= _Ez; _F0 += 1) { //#15708 + $put($1.cws, _F0, $f(929 - $get($1.cws, _F0)) % 929); //#15708 + } //#15708 + $1.cws = $geti($1.cws, 0, $1.cws.length - 1); //#15711 + $1.clusters = $a([$a([120256, 125680, 128380, 120032, 125560, 128318, 108736, 119920, 108640, 86080, 108592, 86048, 110016, 120560, 125820, 109792, 120440, 125758, 88256, 109680, 88160, 89536, 110320, 120700, 89312, 110200, 120638, 89200, 110140, 89840, 110460, 89720, 110398, 89980, 128506, 119520, 125304, 128190, 107712, 119408, 125244, 107616, 119352, 84032, 107568, 119324, 84000, 107544, 83984, 108256, 119672, 125374, 85184, 108144, 119612, 85088, 108088, 119582, 85040, 108060, 85728, 108408, 119742, 85616, 108348, 85560, 108318, 85880, 108478, 85820, 85790, 107200, 119152, 125116, 107104, 119096, 125086, 83008, 107056, 119068, 82976, 107032, 82960, 82952, 83648, 107376, 119228, 83552, 107320, 119198, 83504, 107292, 83480, 83468, 83824, 107452, 83768, 107422, 83740, 83900, 106848, 118968, 125022, 82496, 106800, 118940, 82464, 106776, 118926, 82448, 106764, 82440, 106758, 82784, 106936, 119006, 82736, 106908, 82712, 106894, 82700, 82694, 106974, 82830, 82240, 106672, 118876, 82208, 106648, 118862, 82192, 106636, 82184, 106630, 82180, 82352, 82328, 82316, 82080, 118830, 106572, 106566, 82050, 117472, 124280, 127678, 103616, 117360, 124220, 103520, 117304, 124190, 75840, 103472, 75808, 104160, 117624, 124350, 76992, 104048, 117564, 76896, 103992, 76848, 76824, 77536, 104312, 117694, 77424, 104252, 77368, 77340, 77688, 104382, 77628, 77758, 121536, 126320, 128700, 121440, 126264, 128670, 111680, 121392, 126236, 111648, 121368, 126222, 111632, 121356, 103104, 117104, 124092, 112320, 103008, 117048, 124062, 112224, 121656, 126366, 93248, 74784, 102936, 117006, 93216, 112152, 93200, 75456, 103280, 117180, 93888, 75360, 103224, 117150, 93792, 112440, 121758, 93744, 75288, 93720, 75632, 103356, 94064, 75576, 103326, 94008, 112542, 93980, 75708, 94140, 75678, 94110, 121184, 126136, 128606, 111168, 121136, 126108, 111136, 121112, 126094, 111120, 121100, 111112, 111108, 102752, 116920, 123998, 111456, 102704, 116892, 91712, 74272, 121244, 116878, 91680, 74256, 102668, 91664, 111372, 102662, 74244, 74592, 102840, 116958, 92000, 74544, 102812, 91952, 111516, 102798, 91928, 74508, 74502, 74680, 102878, 92088, 74652, 92060, 74638, 92046, 92126, 110912, 121008, 126044, 110880, 120984, 126030, 110864, 120972, 110856, 120966, 110852, 110850, 74048, 102576, 116828, 90944, 74016, 102552, 116814, 90912, 111000, 121038, 90896, 73992, 102534, 90888, 110982, 90884, 74160, 102620, 91056, 74136, 102606, 91032, 111054, 91020, 74118, 91014, 91100, 91086, 110752, 120920, 125998, 110736, 120908, 110728, 120902, 110724, 110722, 73888, 102488, 116782, 90528, 73872, 102476, 90512, 110796, 102470, 90504, 73860, 90500, 73858, 73944, 90584, 90572, 90566, 120876, 120870, 110658, 102444, 73800, 90312, 90308, 90306, 101056, 116080, 123580, 100960, 116024, 70720, 100912, 115996, 70688, 100888, 70672, 70664, 71360, 101232, 116156, 71264, 101176, 116126, 71216, 101148, 71192, 71180, 71536, 101308, 71480, 101278, 71452, 71612, 71582, 118112, 124600, 127838, 105024, 118064, 124572, 104992, 118040, 124558, 104976, 118028, 104968, 118022, 100704, 115896, 123486, 105312, 100656, 115868, 79424, 70176, 118172, 115854, 79392, 105240, 100620, 79376, 70152, 79368, 70496, 100792, 115934, 79712, 70448, 118238, 79664, 105372, 100750, 79640, 70412, 79628, 70584, 100830, 79800, 70556, 79772, 70542, 70622, 79838, 122176, 126640, 128860, 122144, 126616, 128846, 122128, 126604, 122120, 126598, 122116, 104768, 117936, 124508, 113472, 104736, 126684, 124494, 113440, 122264, 126670, 113424, 104712, 117894, 113416, 122246, 104706, 69952, 100528, 115804, 78656, 69920, 100504, 115790, 96064, 78624, 104856, 117966, 96032, 113560, 122318, 100486, 96016, 78600, 104838, 96008, 69890, 70064, 100572, 78768, 70040, 100558, 96176, 78744, 104910, 96152, 113614, 70022, 78726, 70108, 78812, 70094, 96220, 78798, 122016, 126552, 128814, 122000, 126540, 121992, 126534, 121988, 121986, 104608, 117848, 124462, 113056, 104592, 126574, 113040, 122060, 117830, 113032, 104580, 113028, 104578, 113026, 69792, 100440, 115758, 78240, 69776, 100428, 95136, 78224, 104652, 100422, 95120, 113100, 69764, 95112, 78212, 69762, 78210, 69848, 100462, 78296, 69836, 95192, 78284, 69830, 95180, 78278, 69870, 95214, 121936, 126508, 121928, 126502, 121924, 121922, 104528, 117804, 112848, 104520, 117798, 112840, 121958, 112836, 104514, 112834, 69712, 100396, 78032, 69704, 100390, 94672, 78024, 104550, 94664, 112870, 69698, 94660, 78018, 94658, 78060, 94700, 94694, 126486, 121890, 117782, 104484, 104482, 69672, 77928, 94440, 69666, 77922, 99680, 68160, 99632, 68128, 99608, 115342, 68112, 99596, 68104, 99590, 68448, 99768, 115422, 68400, 99740, 68376, 99726, 68364, 68358, 68536, 99806, 68508, 68494, 68574, 101696, 116400, 123740, 101664, 116376, 101648, 116364, 101640, 116358, 101636, 67904, 99504, 115292, 72512, 67872, 116444, 115278, 72480, 101784, 116430, 72464, 67848, 99462, 72456, 101766, 67842, 68016, 99548, 72624, 67992, 99534, 72600, 101838, 72588, 67974, 68060, 72668, 68046, 72654, 118432, 124760, 127918, 118416, 124748, 118408, 124742, 118404, 118402, 101536, 116312, 105888, 101520, 116300, 105872, 118476, 116294, 105864, 101508, 105860, 101506, 105858, 67744, 99416, 72096, 67728, 116334, 80800, 72080, 101580, 99398, 80784, 105932, 67716, 80776, 72068, 67714, 72066, 67800, 99438, 72152, 67788, 80856, 72140, 67782, 80844, 72134, 67822, 72174, 80878, 126800, 128940, 126792, 128934, 126788, 126786, 118352, 124716, 122576, 126828, 124710, 122568, 126822, 122564, 118338, 122562, 101456, 116268, 105680, 101448, 116262, 114128, 105672, 118374, 114120, 122598, 101442, 114116, 105666, 114114, 67664, 99372, 71888, 67656, 99366, 80336, 71880, 101478, 97232, 80328, 105702, 67650, 97224, 114150, 71874, 97220, 67692, 71916, 67686, 80364, 71910, 97260, 80358, 97254, 126760, 128918, 126756, 126754, 118312, 124694, 122472, 126774, 122468, 118306, 122466, 101416, 116246, 105576, 101412, 113896, 105572, 101410, 113892, 105570, 113890, 67624, 99350, 71784, 101430, 80104, 71780, 67618, 96744, 80100, 71778, 96740, 80098, 96738, 71798, 96758, 126738, 122420, 122418, 105524, 113780, 113778, 71732, 79988, 96500, 96498, 66880, 66848, 98968, 66832, 66824, 66820, 66992, 66968, 66956, 66950, 67036, 67022, 100000, 99984, 115532, 99976, 115526, 99972, 99970, 66720, 98904, 69024, 100056, 98892, 69008, 100044, 69000, 100038, 68996, 66690, 68994, 66776, 98926, 69080, 100078, 69068, 66758, 69062, 66798, 69102, 116560, 116552, 116548, 116546, 99920, 102096, 116588, 115494, 102088, 116582, 102084, 99906, 102082, 66640, 68816, 66632, 98854, 73168, 68808, 66628, 73160, 68804, 66626, 73156, 68802, 66668, 68844, 66662, 73196, 68838, 73190, 124840, 124836, 124834, 116520, 118632, 124854, 118628, 116514, 118626, 99880, 115478, 101992, 116534, 106216, 101988, 99874, 106212, 101986, 106210, 66600, 98838, 68712, 99894, 72936, 68708, 66594, 81384, 72932, 68706, 81380, 72930, 66614, 68726, 72950, 81398, 128980, 128978, 124820, 126900, 124818, 126898, 116500, 118580, 116498, 122740, 118578, 122738, 99860, 101940, 99858, 106100, 101938, 114420]), $a([128352, 129720, 125504, 128304, 129692, 125472, 128280, 129678, 125456, 128268, 125448, 128262, 125444, 125792, 128440, 129758, 120384, 125744, 128412, 120352, 125720, 128398, 120336, 125708, 120328, 125702, 120324, 120672, 125880, 128478, 110144, 120624, 125852, 110112, 120600, 125838, 110096, 120588, 110088, 120582, 110084, 110432, 120760, 125918, 89664, 110384, 120732, 89632, 110360, 120718, 89616, 110348, 89608, 110342, 89952, 110520, 120798, 89904, 110492, 89880, 110478, 89868, 90040, 110558, 90012, 89998, 125248, 128176, 129628, 125216, 128152, 129614, 125200, 128140, 125192, 128134, 125188, 125186, 119616, 125360, 128220, 119584, 125336, 128206, 119568, 125324, 119560, 125318, 119556, 119554, 108352, 119728, 125404, 108320, 119704, 125390, 108304, 119692, 108296, 119686, 108292, 108290, 85824, 108464, 119772, 85792, 108440, 119758, 85776, 108428, 85768, 108422, 85764, 85936, 108508, 85912, 108494, 85900, 85894, 85980, 85966, 125088, 128088, 129582, 125072, 128076, 125064, 128070, 125060, 125058, 119200, 125144, 128110, 119184, 125132, 119176, 125126, 119172, 119170, 107424, 119256, 125166, 107408, 119244, 107400, 119238, 107396, 107394, 83872, 107480, 119278, 83856, 107468, 83848, 107462, 83844, 83842, 83928, 107502, 83916, 83910, 83950, 125008, 128044, 125000, 128038, 124996, 124994, 118992, 125036, 118984, 125030, 118980, 118978, 106960, 119020, 106952, 119014, 106948, 106946, 82896, 106988, 82888, 106982, 82884, 82882, 82924, 82918, 124968, 128022, 124964, 124962, 118888, 124982, 118884, 118882, 106728, 118902, 106724, 106722, 82408, 106742, 82404, 82402, 124948, 124946, 118836, 118834, 106612, 106610, 124224, 127664, 129372, 124192, 127640, 129358, 124176, 127628, 124168, 127622, 124164, 124162, 117568, 124336, 127708, 117536, 124312, 127694, 117520, 124300, 117512, 124294, 117508, 117506, 104256, 117680, 124380, 104224, 117656, 124366, 104208, 117644, 104200, 117638, 104196, 104194, 77632, 104368, 117724, 77600, 104344, 117710, 77584, 104332, 77576, 104326, 77572, 77744, 104412, 77720, 104398, 77708, 77702, 77788, 77774, 128672, 129880, 93168, 128656, 129868, 92664, 128648, 129862, 92412, 128644, 128642, 124064, 127576, 129326, 126368, 124048, 129902, 126352, 128716, 127558, 126344, 124036, 126340, 124034, 126338, 117152, 124120, 127598, 121760, 117136, 124108, 121744, 126412, 124102, 121736, 117124, 121732, 117122, 121730, 103328, 117208, 124142, 112544, 103312, 117196, 112528, 121804, 117190, 112520, 103300, 112516, 103298, 112514, 75680, 103384, 117230, 94112, 75664, 103372, 94096, 112588, 103366, 94088, 75652, 94084, 75650, 75736, 103406, 94168, 75724, 94156, 75718, 94150, 75758, 128592, 129836, 91640, 128584, 129830, 91388, 128580, 91262, 128578, 123984, 127532, 126160, 123976, 127526, 126152, 128614, 126148, 123970, 126146, 116944, 124012, 121296, 116936, 124006, 121288, 126182, 121284, 116930, 121282, 102864, 116972, 111568, 102856, 116966, 111560, 121318, 111556, 102850, 111554, 74704, 102892, 92112, 74696, 102886, 92104, 111590, 92100, 74690, 92098, 74732, 92140, 74726, 92134, 128552, 129814, 90876, 128548, 90750, 128546, 123944, 127510, 126056, 128566, 126052, 123938, 126050, 116840, 123958, 121064, 116836, 121060, 116834, 121058, 102632, 116854, 111080, 121078, 111076, 102626, 111074, 74216, 102646, 91112, 74212, 91108, 74210, 91106, 74230, 91126, 128532, 90494, 128530, 123924, 126004, 123922, 126002, 116788, 120948, 116786, 120946, 102516, 110836, 102514, 110834, 73972, 90612, 73970, 90610, 128522, 123914, 125978, 116762, 120890, 102458, 110714, 123552, 127320, 129198, 123536, 127308, 123528, 127302, 123524, 123522, 116128, 123608, 127342, 116112, 123596, 116104, 123590, 116100, 116098, 101280, 116184, 123630, 101264, 116172, 101256, 116166, 101252, 101250, 71584, 101336, 116206, 71568, 101324, 71560, 101318, 71556, 71554, 71640, 101358, 71628, 71622, 71662, 127824, 129452, 79352, 127816, 129446, 79100, 127812, 78974, 127810, 123472, 127276, 124624, 123464, 127270, 124616, 127846, 124612, 123458, 124610, 115920, 123500, 118224, 115912, 123494, 118216, 124646, 118212, 115906, 118210, 100816, 115948, 105424, 100808, 115942, 105416, 118246, 105412, 100802, 105410, 70608, 100844, 79824, 70600, 100838, 79816, 105446, 79812, 70594, 79810, 70636, 79852, 70630, 79846, 129960, 95728, 113404, 129956, 95480, 113278, 129954, 95356, 95294, 127784, 129430, 78588, 128872, 129974, 95996, 78462, 128868, 127778, 95870, 128866, 123432, 127254, 124520, 123428, 126696, 128886, 123426, 126692, 124514, 126690, 115816, 123446, 117992, 115812, 122344, 117988, 115810, 122340, 117986, 122338, 100584, 115830, 104936, 100580, 113640, 104932, 100578, 113636, 104930, 113634, 70120, 100598, 78824, 70116, 96232, 78820, 70114, 96228, 78818, 96226, 70134, 78838, 129940, 94968, 113022, 129938, 94844, 94782, 127764, 78206, 128820, 127762, 95102, 128818, 123412, 124468, 123410, 126580, 124466, 126578, 115764, 117876, 115762, 122100, 117874, 122098, 100468, 104692, 100466, 113140, 104690, 113138, 69876, 78324, 69874, 95220, 78322, 95218, 129930, 94588, 94526, 127754, 128794, 123402, 124442, 126522, 115738, 117818, 121978, 100410, 104570, 112890, 69754, 78074, 94714, 94398, 123216, 127148, 123208, 127142, 123204, 123202, 115408, 123244, 115400, 123238, 115396, 115394, 99792, 115436, 99784, 115430, 99780, 99778, 68560, 99820, 68552, 99814, 68548, 68546, 68588, 68582, 127400, 129238, 72444, 127396, 72318, 127394, 123176, 127126, 123752, 123172, 123748, 123170, 123746, 115304, 123190, 116456, 115300, 116452, 115298, 116450, 99560, 115318, 101864, 99556, 101860, 99554, 101858, 68072, 99574, 72680, 68068, 72676, 68066, 72674, 68086, 72694, 129492, 80632, 105854, 129490, 80508, 80446, 127380, 72062, 127924, 127378, 80766, 127922, 123156, 123700, 123154, 124788, 123698, 124786, 115252, 116340, 115250, 118516, 116338, 118514, 99444, 101620, 99442, 105972, 101618, 105970, 67828, 72180, 67826, 80884, 72178, 80882, 97008, 114044, 96888, 113982, 96828, 96798, 129482, 80252, 130010, 97148, 80190, 97086, 127370, 127898, 128954, 123146, 123674, 124730, 126842, 115226, 116282, 118394, 122618, 99386, 101498, 105722, 114170, 67706, 71930, 80378, 96632, 113854, 96572, 96542, 80062, 96702, 96444, 96414, 96350, 123048, 123044, 123042, 115048, 123062, 115044, 115042, 99048, 115062, 99044, 99042, 67048, 99062, 67044, 67042, 67062, 127188, 68990, 127186, 123028, 123316, 123026, 123314, 114996, 115572, 114994, 115570, 98932, 100084, 98930, 100082, 66804, 69108, 66802, 69106, 129258, 73084, 73022, 127178, 127450, 123018, 123290, 123834, 114970, 115514, 116602, 98874, 99962, 102138, 66682, 68858, 73210, 81272, 106174, 81212, 81182, 72894, 81342, 97648, 114364, 97592, 114334, 97564, 97550, 81084, 97724, 81054, 97694, 97464, 114270, 97436, 97422, 80990, 97502, 97372, 97358, 97326, 114868, 114866, 98676, 98674, 66292, 66290, 123098, 114842, 115130, 98618, 99194, 66170, 67322, 69310, 73404, 73374, 81592, 106334, 81564, 81550, 73310, 81630, 97968, 114524, 97944, 114510, 97932, 97926, 81500, 98012, 81486, 97998, 97880, 114478, 97868, 97862, 81454, 97902, 97836, 97830, 69470, 73564, 73550, 81752, 106414, 81740, 81734, 73518, 81774, 81708, 81702]), $a([109536, 120312, 86976, 109040, 120060, 86496, 108792, 119934, 86256, 108668, 86136, 129744, 89056, 110072, 129736, 88560, 109820, 129732, 88312, 109694, 129730, 88188, 128464, 129772, 89592, 128456, 129766, 89340, 128452, 89214, 128450, 125904, 128492, 125896, 128486, 125892, 125890, 120784, 125932, 120776, 125926, 120772, 120770, 110544, 120812, 110536, 120806, 110532, 84928, 108016, 119548, 84448, 107768, 119422, 84208, 107644, 84088, 107582, 84028, 129640, 85488, 108284, 129636, 85240, 108158, 129634, 85116, 85054, 128232, 129654, 85756, 128228, 85630, 128226, 125416, 128246, 125412, 125410, 119784, 125430, 119780, 119778, 108520, 119798, 108516, 108514, 83424, 107256, 119166, 83184, 107132, 83064, 107070, 83004, 82974, 129588, 83704, 107390, 129586, 83580, 83518, 128116, 83838, 128114, 125172, 125170, 119284, 119282, 107508, 107506, 82672, 106876, 82552, 106814, 82492, 82462, 129562, 82812, 82750, 128058, 125050, 119034, 82296, 106686, 82236, 82206, 82366, 82108, 82078, 76736, 103920, 117500, 76256, 103672, 117374, 76016, 103548, 75896, 103486, 75836, 129384, 77296, 104188, 129380, 77048, 104062, 129378, 76924, 76862, 127720, 129398, 77564, 127716, 77438, 127714, 124392, 127734, 124388, 124386, 117736, 124406, 117732, 117730, 104424, 117750, 104420, 104418, 112096, 121592, 126334, 92608, 111856, 121468, 92384, 111736, 121406, 92272, 111676, 92216, 111646, 92188, 75232, 103160, 117118, 93664, 74992, 103036, 93424, 112252, 102974, 93304, 74812, 93244, 74782, 93214, 129332, 75512, 103294, 129908, 129330, 93944, 75388, 129906, 93820, 75326, 93758, 127604, 75646, 128756, 127602, 94078, 128754, 124148, 126452, 124146, 126450, 117236, 121844, 117234, 121842, 103412, 103410, 91584, 111344, 121212, 91360, 111224, 121150, 91248, 111164, 91192, 111134, 91164, 91150, 74480, 102780, 91888, 74360, 102718, 91768, 111422, 91708, 74270, 91678, 129306, 74620, 129850, 92028, 74558, 91966, 127546, 128634, 124026, 126202, 116986, 121338, 102906, 90848, 110968, 121022, 90736, 110908, 90680, 110878, 90652, 90638, 74104, 102590, 91000, 74044, 90940, 74014, 90910, 74174, 91070, 90480, 110780, 90424, 110750, 90396, 90382, 73916, 90556, 73886, 90526, 90296, 110686, 90268, 90254, 73822, 90334, 90204, 90190, 71136, 101112, 116094, 70896, 100988, 70776, 100926, 70716, 70686, 129204, 71416, 101246, 129202, 71292, 71230, 127348, 71550, 127346, 123636, 123634, 116212, 116210, 101364, 101362, 79296, 105200, 118140, 79072, 105080, 118078, 78960, 105020, 78904, 104990, 78876, 78862, 70384, 100732, 79600, 70264, 100670, 79480, 105278, 79420, 70174, 79390, 129178, 70524, 129466, 79740, 70462, 79678, 127290, 127866, 123514, 124666, 115962, 118266, 100858, 113376, 122232, 126654, 95424, 113264, 122172, 95328, 113208, 122142, 95280, 113180, 95256, 113166, 95244, 78560, 104824, 117950, 95968, 78448, 104764, 95856, 113468, 104734, 95800, 78364, 95772, 78350, 95758, 70008, 100542, 78712, 69948, 96120, 78652, 69918, 96060, 78622, 96030, 70078, 78782, 96190, 94912, 113008, 122044, 94816, 112952, 122014, 94768, 112924, 94744, 112910, 94732, 94726, 78192, 104636, 95088, 78136, 104606, 95032, 113054, 95004, 78094, 94990, 69820, 78268, 69790, 95164, 78238, 95134, 94560, 112824, 121950, 94512, 112796, 94488, 112782, 94476, 94470, 78008, 104542, 94648, 77980, 94620, 77966, 94606, 69726, 78046, 94686, 94384, 112732, 94360, 112718, 94348, 94342, 77916, 94428, 77902, 94414, 94296, 112686, 94284, 94278, 77870, 94318, 94252, 94246, 68336, 99708, 68216, 99646, 68156, 68126, 68476, 68414, 127162, 123258, 115450, 99834, 72416, 101752, 116414, 72304, 101692, 72248, 101662, 72220, 72206, 67960, 99518, 72568, 67900, 72508, 67870, 72478, 68030, 72638, 80576, 105840, 118460, 80480, 105784, 118430, 80432, 105756, 80408, 105742, 80396, 80390, 72048, 101564, 80752, 71992, 101534, 80696, 71964, 80668, 71950, 80654, 67772, 72124, 67742, 80828, 72094, 80798, 114016, 122552, 126814, 96832, 113968, 122524, 96800, 113944, 122510, 96784, 113932, 96776, 113926, 96772, 80224, 105656, 118366, 97120, 80176, 105628, 97072, 114076, 105614, 97048, 80140, 97036, 80134, 97030, 71864, 101470, 80312, 71836, 97208, 80284, 71822, 97180, 80270, 97166, 67678, 71902, 80350, 97246, 96576, 113840, 122460, 96544, 113816, 122446, 96528, 113804, 96520, 113798, 96516, 96514, 80048, 105564, 96688, 80024, 105550, 96664, 113870, 96652, 80006, 96646, 71772, 80092, 71758, 96732, 80078, 96718, 96416, 113752, 122414, 96400, 113740, 96392, 113734, 96388, 96386, 79960, 105518, 96472, 79948, 96460, 79942, 96454, 71726, 79982, 96494, 96336, 113708, 96328, 113702, 96324, 96322, 79916, 96364, 79910, 96358, 96296, 113686, 96292, 96290, 79894, 96310, 66936, 99006, 66876, 66846, 67006, 68976, 100028, 68920, 99998, 68892, 68878, 66748, 69052, 66718, 69022, 73056, 102072, 116574, 73008, 102044, 72984, 102030, 72972, 72966, 68792, 99934, 73144, 68764, 73116, 68750, 73102, 66654, 68830, 73182, 81216, 106160, 118620, 81184, 106136, 118606, 81168, 106124, 81160, 106118, 81156, 81154, 72880, 101980, 81328, 72856, 101966, 81304, 106190, 81292, 72838, 81286, 68700, 72924, 68686, 81372, 72910, 81358, 114336, 122712, 126894, 114320, 122700, 114312, 122694, 114308, 114306, 81056, 106072, 118574, 97696, 81040, 106060, 97680, 114380, 106054, 97672, 81028, 97668, 81026, 97666, 72792, 101934, 81112, 72780, 97752, 81100, 72774, 97740, 81094, 97734, 68654, 72814, 81134, 97774, 114256, 122668, 114248, 122662, 114244, 114242, 80976, 106028, 97488, 80968, 106022, 97480, 114278, 97476, 80962, 97474, 72748, 81004, 72742, 97516, 80998, 97510, 114216, 122646, 114212, 114210, 80936, 106006, 97384, 80932, 97380, 80930, 97378, 72726, 80950, 97398, 114196, 114194, 80916, 97332, 80914, 97330, 66236, 66206, 67256, 99166, 67228, 67214, 66142, 67294, 69296, 100188, 69272, 100174, 69260, 69254, 67164, 69340, 67150, 69326, 73376, 102232, 116654, 73360, 102220, 73352, 102214, 73348, 73346, 69208, 100142, 73432, 102254, 73420, 69190, 73414, 67118, 69230, 73454, 106320, 118700, 106312, 118694, 106308, 106306, 73296, 102188, 81616, 106348, 102182, 81608, 73284, 81604, 73282, 81602, 69164, 73324, 69158, 81644, 73318, 81638, 122792, 126934, 122788, 122786, 106280, 118678, 114536, 106276, 114532, 106274, 114530, 73256, 102166, 81512, 73252, 98024, 81508, 73250, 98020, 81506, 98018, 69142, 73270, 81526, 98038, 122772, 122770, 106260, 114484, 106258, 114482, 73236, 81460, 73234, 97908, 81458, 97906, 122762, 106250, 114458, 73226, 81434, 97850, 66396, 66382, 67416, 99246, 67404, 67398, 66350, 67438, 69456, 100268, 69448, 100262, 69444, 69442, 67372, 69484, 67366, 69478, 102312, 116694, 102308, 102306, 69416, 100246, 73576, 102326, 73572, 69410, 73570, 67350, 69430, 73590, 118740, 118738, 102292, 106420, 102290, 106418, 69396, 73524, 69394, 81780, 73522, 81778, 118730, 102282, 106394, 69386, 73498, 81722, 66476, 66470, 67496, 99286, 67492, 67490, 66454, 67510, 100308, 100306, 67476, 69556, 67474, 69554, 116714])]); //#15953 $1.cwtobits = function() { - var _FD = $get($1.clusters, $k[--$j]); - $1.v = $get(_FD, $k[--$j]); - $k[$j++] = Infinity; - for (var _FG = 0, _FH = 17; _FG < _FH; _FG++) { - $k[$j++] = 0; - } - var _FK = $cvrs($s(17), $1.v, 2); - for (var _FL = 0, _FM = _FK.length; _FL < _FM; _FL++) { - $k[$j++] = $get(_FK, _FL) - 48; - } - var _FO = $a(); - $k[$j++] = $geti(_FO, _FO.length - 17, 17); - }; - if ($1.compact) { - $1.rwid = $f($f($f(17 * $1.c + 17) + 17) + 1); - } else { - $1.rwid = $f($f($f($f(17 * $1.c + 17) + 17) + 17) + 18); - } - $1.pixs = $a($1.rwid * $1.r); - for (var _FY = 0, _FX = $1.r - 1; _FY <= _FX; _FY += 1) { - $1.i = _FY; - if ($1.i % 3 == 0) { - $1.lcw = ~~($1.i / 3) * 30 + ~~(($1.r - 1) / 3); - $1.rcw = $f($f(~~($1.i / 3) * 30 + $1.c) - 1); - } - if ($1.i % 3 == 1) { - $1.lcw = ~~($1.i / 3) * 30 + $1.eclevel * 3 + ($1.r - 1) % 3; - $1.rcw = ~~($1.i / 3) * 30 + ~~(($1.r - 1) / 3); - } - if ($1.i % 3 == 2) { - $1.lcw = $f($f(~~($1.i / 3) * 30 + $1.c) - 1); - $1.rcw = ~~($1.i / 3) * 30 + $1.eclevel * 3 + ($1.r - 1) % 3; - } - $k[$j++] = $1.pixs; - $k[$j++] = $1.rwid * $1.i; - $k[$j++] = Infinity; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = $1.lcw; - $k[$j++] = $1.i % 3; - $1.cwtobits(); - $forall($k[--$j]); - var _G0 = $geti($1.cws, $1.c * $1.i, $1.c); - for (var _G1 = 0, _G2 = _G0.length; _G1 < _G2; _G1++) { - $k[$j++] = $get(_G0, _G1); - $k[$j++] = $1.i % 3; - $1.cwtobits(); - $forall($k[--$j]); - } - if ($1.compact) { - $k[$j++] = 1; - } else { - $k[$j++] = $1.rcw; - $k[$j++] = $1.i % 3; - $1.cwtobits(); - $forall($k[--$j]); - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 1; - } - var _GA = $a(); - var _GB = $k[--$j]; - $puti($k[--$j], _GB, _GA); - } - var _GK = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", $1.rwid ], [ "pixy", $1.r ], [ "height", $1.r / 72 * $1.rowmult ], [ "width", $1.rwid / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _GK; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var _FD = $get($1.clusters, $k[--$j]); //#15957 + $1.v = $get(_FD, $k[--$j]); //#15957 + $k[$j++] = Infinity; //#15958 + for (var _FG = 0, _FH = 17; _FG < _FH; _FG++) { //#15958 + $k[$j++] = 0; //#15958 + } //#15958 + var _FK = $cvrs($s(17), $1.v, 2); //#15958 + for (var _FL = 0, _FM = _FK.length; _FL < _FM; _FL++) { //#15958 + $k[$j++] = $get(_FK, _FL) - 48; //#15958 + } //#15958 + var _FO = $a(); //#15958 + $k[$j++] = $geti(_FO, _FO.length - 17, 17); //#15959 + }; //#15960 + if ($1.compact) { //#15966 + $1.rwid = $f(($f(($f((17 * $1.c) + 17)) + 17)) + 1); //#15964 + } else { //#15966 + $1.rwid = $f(($f(($f(($f((17 * $1.c) + 17)) + 17)) + 17)) + 18); //#15966 + } //#15966 + $1.pixs = $a($1.rwid * $1.r); //#15968 + for (var _FY = 0, _FX = $1.r - 1; _FY <= _FX; _FY += 1) { //#15998 + $1.i = _FY; //#15971 + if (($1.i % 3) == 0) { //#15976 + $1.lcw = ((~~($1.i / 3)) * 30) + (~~(($1.r - 1) / 3)); //#15974 + $1.rcw = $f(($f(((~~($1.i / 3)) * 30) + $1.c)) - 1); //#15975 + } //#15975 + if (($1.i % 3) == 1) { //#15980 + $1.lcw = (((~~($1.i / 3)) * 30) + ($1.eclevel * 3)) + (($1.r - 1) % 3); //#15978 + $1.rcw = ((~~($1.i / 3)) * 30) + (~~(($1.r - 1) / 3)); //#15979 + } //#15979 + if (($1.i % 3) == 2) { //#15984 + $1.lcw = $f(($f(((~~($1.i / 3)) * 30) + $1.c)) - 1); //#15982 + $1.rcw = (((~~($1.i / 3)) * 30) + ($1.eclevel * 3)) + (($1.r - 1) % 3); //#15983 + } //#15983 + $k[$j++] = $1.pixs; //#15994 + $k[$j++] = $1.rwid * $1.i; //#15994 + $k[$j++] = Infinity; //#15994 + $k[$j++] = 1; //#15988 + $k[$j++] = 1; //#15988 + $k[$j++] = 1; //#15988 + $k[$j++] = 1; //#15988 + $k[$j++] = 1; //#15988 + $k[$j++] = 1; //#15988 + $k[$j++] = 1; //#15988 + $k[$j++] = 1; //#15988 + $k[$j++] = 0; //#15988 + $k[$j++] = 1; //#15988 + $k[$j++] = 0; //#15988 + $k[$j++] = 1; //#15988 + $k[$j++] = 0; //#15988 + $k[$j++] = 1; //#15988 + $k[$j++] = 0; //#15988 + $k[$j++] = 0; //#15988 + $k[$j++] = 0; //#15988 + $k[$j++] = $1.lcw; //#15988 + $k[$j++] = $1.i % 3; //#15988 + $1.cwtobits(); //#15988 + $forall($k[--$j]); //#15988 + var _G0 = $geti($1.cws, $1.c * $1.i, $1.c); //#15989 + for (var _G1 = 0, _G2 = _G0.length; _G1 < _G2; _G1++) { //#15989 + $k[$j++] = $get(_G0, _G1); //#15989 + $k[$j++] = $1.i % 3; //#15989 + $1.cwtobits(); //#15989 + $forall($k[--$j]); //#15989 + } //#15989 + if ($1.compact) { //#15994 + $k[$j++] = 1; //#15991 + } else { //#15994 + $k[$j++] = $1.rcw; //#15993 + $k[$j++] = $1.i % 3; //#15993 + $1.cwtobits(); //#15993 + $forall($k[--$j]); //#15993 + $k[$j++] = 1; //#15994 + $k[$j++] = 1; //#15994 + $k[$j++] = 1; //#15994 + $k[$j++] = 1; //#15994 + $k[$j++] = 1; //#15994 + $k[$j++] = 1; //#15994 + $k[$j++] = 1; //#15994 + $k[$j++] = 0; //#15994 + $k[$j++] = 1; //#15994 + $k[$j++] = 0; //#15994 + $k[$j++] = 0; //#15994 + $k[$j++] = 0; //#15994 + $k[$j++] = 1; //#15994 + $k[$j++] = 0; //#15994 + $k[$j++] = 1; //#15994 + $k[$j++] = 0; //#15994 + $k[$j++] = 0; //#15994 + $k[$j++] = 1; //#15994 + } //#15994 + var _GA = $a(); //#15994 + var _GB = $k[--$j]; //#15996 + $puti($k[--$j], _GB, _GA); //#15996 + } //#15996 + var _GK = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", $1.rwid], + ["pixy", $1.r], + ["height", ($1.r / 72) * $1.rowmult], + ["width", $1.rwid / 72], + ["opt", $1.options] + ]); //#16008 + $k[$j++] = _GK; //#16011 + if (!$1.dontdraw) { //#16011 + $0.renmatrix(); //#16011 + } //#16011 }; $0.pdf417compact = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $put($1.options, "dontdraw", true); - $put($1.options, "compact", true); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.pdf417(); - var _9 = $k[--$j]; - $1[$k[--$j]] = _9; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#16041 + $1.options = $k[--$j]; //#16043 + $1.barcode = $k[--$j]; //#16044 + $1.dontdraw = false; //#16046 + $forall($1.options, function() { //#16057 + var _3 = $k[--$j]; //#16057 + $1[$k[--$j]] = _3; //#16057 + }); //#16057 + $put($1.options, "dontdraw", true); //#16060 + $put($1.options, "compact", true); //#16061 + $k[$j++] = 'args'; //#16063 + $k[$j++] = $1.barcode; //#16063 + $k[$j++] = $1.options; //#16063 + $0.pdf417(); //#16063 + var _9 = $k[--$j]; //#16063 + $1[$k[--$j]] = _9; //#16063 + $put($1.args, "opt", $1.options); //#16065 + $k[$j++] = $1.args; //#16068 + if (!$1.dontdraw) { //#16068 + $0.renmatrix(); //#16068 + } //#16068 }; $0.micropdf417 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.version = "unset"; - $1.columns = 0; - $1.rows = 0; - $1.rowmult = 2; - $1.encoding = "auto"; - $1.cca = false; - $1.ccb = false; - $1.raw = false; - $1.parse = false; - $1.parsefnc = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - if ($ne($1.version, "unset")) { - $search($1.version, "x"); - $j--; - $1.columns = $k[--$j]; - $j--; - $1.rows = $k[--$j]; - } - $1.columns = ~~$z($1.columns); - $1.rows = ~~$z($1.rows); - $1.rowmult = +$1.rowmult; - if ($1.raw) { - $1.encoding = "raw"; - } - if ($1.cca) { - $1.encoding = "cca"; - } - if ($eq($1.encoding, "raw") || $eq($1.encoding, "cca")) { - $1.datcws = $a($1.barcode.length); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.barcode.length) { - break; - } - $1.cw = ~~$z($geti($1.barcode, $1.i + 1, 3)); - $put($1.datcws, $1.j, $1.cw); - $1.i = $1.i + 4; - $1.j = $1.j + 1; - } - $1.datcws = $geti($1.datcws, 0, $1.j); - } - if ($1.ccb) { - $1.encoding = "ccb"; - } + var $1 = {}; //#16098 + $1.options = $k[--$j]; //#16100 + $1.barcode = $k[--$j]; //#16101 + $1.dontdraw = false; //#16103 + $1.version = "unset"; //#16104 + $1.columns = 0; //#16105 + $1.rows = 0; //#16106 + $1.rowmult = 2; //#16107 + $1.encoding = "auto"; //#16108 + $1.cca = false; //#16109 + $1.ccb = false; //#16110 + $1.raw = false; //#16111 + $1.parse = false; //#16112 + $1.parsefnc = false; //#16113 + $forall($1.options, function() { //#16124 + var _3 = $k[--$j]; //#16124 + $1[$k[--$j]] = _3; //#16124 + }); //#16124 + if ($ne($1.version, "unset")) { //#16130 + $search($1.version, "x"); //#16127 + $j--; //#16128 + $1.columns = $k[--$j]; //#16128 + $j--; //#16129 + $1.rows = $k[--$j]; //#16129 + } //#16129 + $1.columns = ~~$z($1.columns); //#16132 + $1.rows = ~~$z($1.rows); //#16133 + $1.rowmult = +$1.rowmult; //#16134 + if ($1.raw) { //#16136 + $1.encoding = "raw"; //#16136 + } //#16136 + if ($1.cca) { //#16137 + $1.encoding = "cca"; //#16137 + } //#16137 + if ($eq($1.encoding, "raw") || $eq($1.encoding, "cca")) { //#16151 + $1.datcws = $a($1.barcode.length); //#16141 + $1.i = 0; //#16142 + $1.j = 0; //#16142 + for (;;) { //#16149 + if ($1.i == $1.barcode.length) { //#16144 + break; //#16144 + } //#16144 + $1.cw = ~~$z($geti($1.barcode, $1.i + 1, 3)); //#16145 + $put($1.datcws, $1.j, $1.cw); //#16146 + $1.i = $1.i + 4; //#16147 + $1.j = $1.j + 1; //#16148 + } //#16148 + $1.datcws = $geti($1.datcws, 0, $1.j); //#16150 + } //#16150 + if ($1.ccb) { //#16153 + $1.encoding = "ccb"; //#16153 + } //#16153 $1.encb = function() { - $1.in = $k[--$j]; - $1.inlen = $1.in.length; - $1.out = $a(~~($1.inlen / 6) * 5 + $1.inlen % 6); - for (var _d = 0, _c = ~~($1.inlen / 6) - 1; _d <= _c; _d += 1) { - $1.k = _d; - $k[$j++] = Infinity; - $aload($geti($1.in, $1.k * 6, 3)); - $1.msbs = $a(); - $k[$j++] = Infinity; - $aload($1.msbs); - var _j = $k[--$j]; - var _k = $k[--$j]; - var _l = $k[--$j]; - $k[$j++] = $f($f(_j + _k * 256) + _l * 65536); - for (var _m = 0, _n = 3; _m < _n; _m++) { - var _o = $k[--$j]; - $k[$j++] = _o % 900; - $k[$j++] = ~~(_o / 900); - } - $1.mscs = $a(); - $k[$j++] = Infinity; - $aload($geti($1.in, $1.k * 6 + 3, 3)); - $1.lsbs = $a(); - $k[$j++] = Infinity; - $aload($1.lsbs); - var _v = $k[--$j]; - var _w = $k[--$j]; - var _x = $k[--$j]; - $k[$j++] = $f($f(_v + _w * 256) + _x * 65536); - for (var _y = 0, _z = 3; _y < _z; _y++) { - var _10 = $k[--$j]; - $k[$j++] = _10 % 900; - $k[$j++] = ~~(_10 / 900); - } - $1.lscs = $a(); - var _13 = $get($1.lscs, 0); - var _15 = $get($1.mscs, 0); - $put($1.out, $1.k * 5 + 4, $f(_13 + _15 * 316) % 900); - var _19 = $get($1.lscs, 1); - var _1B = $get($1.mscs, 0); - var _1D = $get($1.mscs, 1); - $put($1.out, $1.k * 5 + 3, $f($f($f(~~($f(_13 + _15 * 316) / 900) + _19) + _1B * 641) + _1D * 316) % 900); - var _1H = $get($1.lscs, 2); - var _1J = $get($1.mscs, 0); - var _1L = $get($1.mscs, 1); - var _1N = $get($1.mscs, 2); - $put($1.out, $1.k * 5 + 2, $f($f($f($f(~~($f($f($f(~~($f(_13 + _15 * 316) / 900) + _19) + _1B * 641) + _1D * 316) / 900) + _1H) + _1J * 20) + _1L * 641) + _1N * 316) % 900); - var _1R = $get($1.lscs, 3); - var _1T = $get($1.mscs, 1); - var _1V = $get($1.mscs, 2); - $put($1.out, $1.k * 5 + 1, $f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_13 + _15 * 316) / 900) + _19) + _1B * 641) + _1D * 316) / 900) + _1H) + _1J * 20) + _1L * 641) + _1N * 316) / 900) + _1R) + _1T * 20) + _1V * 641) % 900); - $put($1.out, $1.k * 5, $f(~~($f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_13 + _15 * 316) / 900) + _19) + _1B * 641) + _1D * 316) / 900) + _1H) + _1J * 20) + _1L * 641) + _1N * 316) / 900) + _1R) + _1T * 20) + _1V * 641) / 900) + $get($1.mscs, 2) * 20) % 900); - } - $1.rem = $1.inlen % 6; - if ($1.rem != 0) { - $k[$j++] = $1.out; - $k[$j++] = $1.out.length - $1.rem; - $k[$j++] = Infinity; - $aload($geti($1.in, $1.inlen - $1.rem, $1.rem)); - var _1m = $a(); - var _1n = $k[--$j]; - $puti($k[--$j], _1n, _1m); - } - $k[$j++] = $1.out; - }; - if ($eq($1.encoding, "byte") || $eq($1.encoding, "ccb")) { - $1.barlen = $1.barcode.length; - $1.datcws = $a(~~($1.barlen / 6) * 5 + $1.barlen % 6 + 1); - var _1y = $1.barlen % 6 == 0 ? 924 : 901; - $put($1.datcws, 0, _1y); - $k[$j++] = $1.datcws; - $k[$j++] = 1; - $k[$j++] = Infinity; - $forall($1.barcode); - var _21 = $a(); - $k[$j++] = _21; - $1.encb(); - var _22 = $k[--$j]; - var _23 = $k[--$j]; - $puti($k[--$j], _23, _22); - if ($eq($1.encoding, "ccb")) { - $k[$j++] = Infinity; - $k[$j++] = 920; - $aload($1.datcws); - $1.datcws = $a(); - } - } - if ($eq($1.encoding, "auto")) { - var _2B = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "eci", true ] ]); - $1.fncvals = _2B; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _2E = $k[--$j]; - $1[$k[--$j]] = _2E; - $1.msglen = $1.msg.length; - $1.T = 0; - $1.N = 1; - $1.B = 2; - $1.A = 0; - $1.L = 1; - $1.M = 2; - $1.P = 3; - $1.tl = -1; - $1.nl = -2; - $1.bl = -3; - $1.bl6 = -4; - $1.bs = -5; - $1.al = -6; - $1.ll = -7; - $1.ml = -8; - $1.pl = -9; - $1.as = -10; - $1.ps = -11; - $1.charmaps = $a([ $a([ "A", "a", "0", ";" ]), $a([ "B", "b", "1", "<" ]), $a([ "C", "c", "2", ">" ]), $a([ "D", "d", "3", "@" ]), $a([ "E", "e", "4", "[" ]), $a([ "F", "f", "5", 92 ]), $a([ "G", "g", "6", "]" ]), $a([ "H", "h", "7", "_" ]), $a([ "I", "i", "8", "`" ]), $a([ "J", "j", "9", "~" ]), $a([ "K", "k", "&", "!" ]), $a([ "L", "l", 13, 13 ]), $a([ "M", "m", 9, 9 ]), $a([ "N", "n", ",", "," ]), $a([ "O", "o", ":", ":" ]), $a([ "P", "p", "#", 10 ]), $a([ "Q", "q", "-", "-" ]), $a([ "R", "r", ".", "." ]), $a([ "S", "s", "$", "$" ]), $a([ "T", "t", "/", "/" ]), $a([ "U", "u", "+", '"' ]), $a([ "V", "v", "%", "|" ]), $a([ "W", "w", "*", "*" ]), $a([ "X", "x", "=", 40 ]), $a([ "Y", "y", "^", 41 ]), $a([ "Z", "z", $1.pl, "?" ]), $a([ " ", " ", " ", "{" ]), $a([ $1.ll, $1.as, $1.ll, "}" ]), $a([ $1.ml, $1.ml, $1.al, "'" ]), $a([ $1.ps, $1.ps, $1.ps, $1.al ]) ]); - $1.charvals = $a([ new Map(), new Map(), new Map(), new Map() ]); - $1.alltext = new Map(); - for (var _30 = 0, _2z = $1.charmaps.length - 1; _30 <= _2z; _30 += 1) { - $1.i = _30; - $1.encs = $get($1.charmaps, $1.i); - for (var _34 = 0; _34 <= 3; _34 += 1) { - $1.j = _34; - var _37 = $get($1.encs, $1.j); - $k[$j++] = _37; - if ($eq($type(_37), "stringtype")) { - var _3A = $get($k[--$j], 0); - $k[$j++] = _3A; - } - var _3B = $k[--$j]; - $put($get($1.charvals, $1.j), _3B, $1.i); - $put($1.alltext, _3B, -1); - } - } - $1.e = 1e4; - $1.latlen = $a([ $a([ 0, 1, 1, 2 ]), $a([ 2, 0, 1, 2 ]), $a([ 1, 1, 0, 1 ]), $a([ 1, 2, 2, 0 ]) ]); - $1.latseq = $a([ $a([ $a([]), $a([ $1.ll ]), $a([ $1.ml ]), $a([ $1.ml, $1.pl ]) ]), $a([ $a([ $1.ml, $1.al ]), $a([]), $a([ $1.ml ]), $a([ $1.ml, $1.pl ]) ]), $a([ $a([ $1.al ]), $a([ $1.ll ]), $a([]), $a([ $1.pl ]) ]), $a([ $a([ $1.al ]), $a([ $1.al, $1.ll ]), $a([ $1.al, $1.ml ]), $a([]) ]) ]); - $1.shftlen = $a([ $a([ $1.e, $1.e, $1.e, 1 ]), $a([ 1, $1.e, $1.e, 1 ]), $a([ $1.e, $1.e, $1.e, 1 ]), $a([ $1.e, $1.e, $1.e, $1.e ]) ]); - $k[$j++] = Infinity; - for (var _4G = 0, _4H = $1.msglen; _4G < _4H; _4G++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numdigits = $a(); - $k[$j++] = Infinity; - for (var _4K = 0, _4L = $1.msglen; _4K < _4L; _4K++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numtext = $a(); - $k[$j++] = Infinity; - for (var _4O = 0, _4P = $1.msglen; _4O < _4P; _4O++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numbytes = $a(); - $k[$j++] = Infinity; - for (var _4S = 0, _4T = $1.msglen; _4S < _4T; _4S++) { - $k[$j++] = 0; - } - $1.iseci = $a(); - for (var _4W = $1.msglen - 1; _4W >= 0; _4W -= 1) { - $1.i = _4W; - var _4Z = $get($1.msg, $1.i); - if (_4Z >= 48 && _4Z <= 57) { - $put($1.numdigits, $1.i, $f($get($1.numdigits, $1.i + 1) + 1)); - } - var _4j = $get($1.alltext, $get($1.msg, $1.i)) !== undefined; - if (_4j && $get($1.numdigits, $1.i) < 13) { - $put($1.numtext, $1.i, $f($get($1.numtext, $1.i + 1) + 1)); - } - if ($get($1.msg, $1.i) >= 0 && $get($1.numtext, $1.i) < 5 && $get($1.numdigits, $1.i) < 13) { - $put($1.numbytes, $1.i, $f($get($1.numbytes, $1.i + 1) + 1)); - } - $put($1.iseci, $1.i, $get($1.msg, $1.i) <= -1e6); - } - $1.numdigits = $geti($1.numdigits, 0, $1.msglen); - $1.numtext = $geti($1.numtext, 0, $1.msglen); - $1.numbytes = $geti($1.numbytes, 0, $1.msglen); - $1.seq = $a([]); - $1.seqlen = 0; - $1.state = $1.B; - $1.p = 0; - for (;;) { - if ($1.p == $1.msglen) { - break; - } - if ($get($1.iseci, $1.p)) { - $1.eci = $get($1.msg, $1.p); - $k[$j++] = Infinity; - $aload($1.seq); - $k[$j++] = $a([ $1.eci ]); - $1.seq = $a(); - $1.p = $1.p + 1; - $k[$j++] = "seqlen"; - $k[$j++] = $1.seqlen; - if ($1.eci <= -1810900) { - $k[$j++] = 2; - } else { - var _5c = $1.eci <= -1000900 ? 3 : 2; - $k[$j++] = _5c; - } - var _5d = $k[--$j]; - var _5e = $k[--$j]; - $1[$k[--$j]] = $f(_5e + _5d); - } else { - $1.n = $get($1.numdigits, $1.p); - if ($1.n >= 13) { - $k[$j++] = Infinity; - $aload($1.seq); - $k[$j++] = $1.nl; - $k[$j++] = Infinity; - $aload($geti($1.msg, $1.p, $1.n)); - var _5q = $a(); - $k[$j++] = _5q; - $1.seq = $a(); - $1.state = $1.N; - $1.p = $f($1.p + $1.n); - $1.seqlen = $f($1.seqlen + 1 + $1.n); - } else { - $1.t = $get($1.numtext, $1.p); - if ($1.t >= 5) { - $k[$j++] = Infinity; - $aload($1.seq); - if ($1.state != $1.T) { - $k[$j++] = $1.tl; - } - $k[$j++] = Infinity; - $aload($geti($1.msg, $1.p, $1.t)); - var _69 = $a(); - $k[$j++] = _69; - $1.seq = $a(); - $1.state = $1.T; - $1.p = $f($1.p + $1.t); - $1.seqlen = $f($f($1.seqlen + 1) + $1.t); - } else { - $1.b = $get($1.numbytes, $1.p); - if ($1.b == 1 && $1.state == $1.T) { - $k[$j++] = Infinity; - $aload($1.seq); - $k[$j++] = $1.bs; - $k[$j++] = $a([ $get($1.msg, $1.p) ]); - $1.seq = $a(); - $1.p = $f($1.p + $1.b); - $1.seqlen = $f($1.seqlen + 2); - } else { - $k[$j++] = Infinity; - $aload($1.seq); - var _6Y = $1.b % 6 != 0 ? $1.bl : $1.bl6; - $k[$j++] = _6Y; - $k[$j++] = Infinity; - $aload($geti($1.msg, $1.p, $1.b)); - var _6d = $a(); - $k[$j++] = _6d; - $1.seq = $a(); - $1.state = $1.B; - $1.p = $f($1.p + $1.b); - $1.seqlen = $f($f($1.seqlen + 1) + $1.b); - } - } - } - } - } - $k[$j++] = Infinity; - $k[$j++] = $1.tl; - $k[$j++] = 900; - $k[$j++] = $1.bl; - $k[$j++] = 901; - $k[$j++] = $1.bl6; - $k[$j++] = 924; - $k[$j++] = $1.nl; - $k[$j++] = 902; - $k[$j++] = $1.bs; - $k[$j++] = 913; - $1.latchcws = $d(); + $1.in = $k[--$j]; //#16156 + $1.inlen = $1.in.length; //#16157 + $1.out = $a(((~~($1.inlen / 6)) * 5) + ($1.inlen % 6)); //#16158 + for (var _d = 0, _c = (~~($1.inlen / 6)) - 1; _d <= _c; _d += 1) { //#16181 + $1.k = _d; //#16160 + $k[$j++] = Infinity; //#16161 + $aload($geti($1.in, $1.k * 6, 3)); //#16161 + $1.msbs = $a(); //#16161 + $k[$j++] = Infinity; //#16164 + $aload($1.msbs); //#16163 + var _j = $k[--$j]; //#16163 + var _k = $k[--$j]; //#16163 + var _l = $k[--$j]; //#16163 + $k[$j++] = $f(($f(_j + (_k * 256))) + (_l * 65536)); //#16164 + for (var _m = 0, _n = 3; _m < _n; _m++) { //#16164 + var _o = $k[--$j]; //#16164 + $k[$j++] = _o % 900; //#16164 + $k[$j++] = ~~(_o / 900); //#16164 + } //#16164 + $1.mscs = $a(); //#16164 + $k[$j++] = Infinity; //#16166 + $aload($geti($1.in, ($1.k * 6) + 3, 3)); //#16166 + $1.lsbs = $a(); //#16166 + $k[$j++] = Infinity; //#16169 + $aload($1.lsbs); //#16168 + var _v = $k[--$j]; //#16168 + var _w = $k[--$j]; //#16168 + var _x = $k[--$j]; //#16168 + $k[$j++] = $f(($f(_v + (_w * 256))) + (_x * 65536)); //#16169 + for (var _y = 0, _z = 3; _y < _z; _y++) { //#16169 + var _10 = $k[--$j]; //#16169 + $k[$j++] = _10 % 900; //#16169 + $k[$j++] = ~~(_10 / 900); //#16169 + } //#16169 + $1.lscs = $a(); //#16169 + var _13 = $get($1.lscs, 0); //#16171 + var _15 = $get($1.mscs, 0); //#16171 + $put($1.out, ($1.k * 5) + 4, ($f(_13 + (_15 * 316))) % 900); //#16172 + var _19 = $get($1.lscs, 1); //#16173 + var _1B = $get($1.mscs, 0); //#16173 + var _1D = $get($1.mscs, 1); //#16173 + $put($1.out, ($1.k * 5) + 3, ($f(($f(($f((~~(($f(_13 + (_15 * 316))) / 900)) + _19)) + (_1B * 641))) + (_1D * 316))) % 900); //#16174 + var _1H = $get($1.lscs, 2); //#16175 + var _1J = $get($1.mscs, 0); //#16175 + var _1L = $get($1.mscs, 1); //#16175 + var _1N = $get($1.mscs, 2); //#16175 + $put($1.out, ($1.k * 5) + 2, ($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_13 + (_15 * 316))) / 900)) + _19)) + (_1B * 641))) + (_1D * 316))) / 900)) + _1H)) + (_1J * 20))) + (_1L * 641))) + (_1N * 316))) % 900); //#16176 + var _1R = $get($1.lscs, 3); //#16177 + var _1T = $get($1.mscs, 1); //#16177 + var _1V = $get($1.mscs, 2); //#16177 + $put($1.out, ($1.k * 5) + 1, ($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_13 + (_15 * 316))) / 900)) + _19)) + (_1B * 641))) + (_1D * 316))) / 900)) + _1H)) + (_1J * 20))) + (_1L * 641))) + (_1N * 316))) / 900)) + _1R)) + (_1T * 20))) + (_1V * 641))) % 900); //#16178 + $put($1.out, $1.k * 5, ($f((~~(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_13 + (_15 * 316))) / 900)) + _19)) + (_1B * 641))) + (_1D * 316))) / 900)) + _1H)) + (_1J * 20))) + (_1L * 641))) + (_1N * 316))) / 900)) + _1R)) + (_1T * 20))) + (_1V * 641))) / 900)) + ($get($1.mscs, 2) * 20))) % 900); //#16180 + } //#16180 + $1.rem = $1.inlen % 6; //#16182 + if ($1.rem != 0) { //#16187 + $k[$j++] = $1.out; //#16185 + $k[$j++] = $1.out.length - $1.rem; //#16185 + $k[$j++] = Infinity; //#16185 + $aload($geti($1.in, $1.inlen - $1.rem, $1.rem)); //#16185 + var _1m = $a(); //#16185 + var _1n = $k[--$j]; //#16186 + $puti($k[--$j], _1n, _1m); //#16186 + } //#16186 + $k[$j++] = $1.out; //#16188 + }; //#16189 + if ($eq($1.encoding, "byte") || $eq($1.encoding, "ccb")) { //#16197 + $1.barlen = $1.barcode.length; //#16192 + $1.datcws = $a((((~~($1.barlen / 6)) * 5) + ($1.barlen % 6)) + 1); //#16193 + var _1y = (($1.barlen % 6) == 0) ? 924 : 901; //#16194 + $put($1.datcws, 0, _1y); //#16194 + $k[$j++] = $1.datcws; //#16195 + $k[$j++] = 1; //#16195 + $k[$j++] = Infinity; //#16195 + $forall($1.barcode); //#16195 + var _21 = $a(); //#16195 + $k[$j++] = _21; //#16195 + $1.encb(); //#16195 + var _22 = $k[--$j]; //#16195 + var _23 = $k[--$j]; //#16195 + $puti($k[--$j], _23, _22); //#16195 + if ($eq($1.encoding, "ccb")) { //#16196 + $k[$j++] = Infinity; //#16196 + $k[$j++] = 920; //#16196 + $aload($1.datcws); //#16196 + $1.datcws = $a(); //#16196 + } //#16196 + } //#16196 + if ($eq($1.encoding, "auto")) { //#16601 + var _2B = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["eci", true] + ]); //#16205 + $1.fncvals = _2B; //#16207 + $k[$j++] = 'msg'; //#16208 + $k[$j++] = $1.barcode; //#16208 + $k[$j++] = $1.fncvals; //#16208 + $0.parseinput(); //#16208 + var _2E = $k[--$j]; //#16208 + $1[$k[--$j]] = _2E; //#16208 + $1.msglen = $1.msg.length; //#16209 + $1.T = 0; //#16212 + $1.N = 1; //#16212 + $1.B = 2; //#16212 + $1.A = 0; //#16213 + $1.L = 1; //#16213 + $1.M = 2; //#16213 + $1.P = 3; //#16213 + $1.tl = -1; //#16216 + $1.nl = -2; //#16216 + $1.bl = -3; //#16216 + $1.bl6 = -4; //#16216 + $1.bs = -5; //#16216 + $1.al = -6; //#16219 + $1.ll = -7; //#16219 + $1.ml = -8; //#16219 + $1.pl = -9; //#16219 + $1.as = -10; //#16219 + $1.ps = -11; //#16219 + $1.charmaps = $a([$a(["A", "a", "0", ";"]), $a(["B", "b", "1", "<"]), $a(["C", "c", "2", ">"]), $a(["D", "d", "3", "@"]), $a(["E", "e", "4", "["]), $a(["F", "f", "5", 92]), $a(["G", "g", "6", "]"]), $a(["H", "h", "7", "_"]), $a(["I", "i", "8", "`"]), $a(["J", "j", "9", "~"]), $a(["K", "k", "&", "!"]), $a(["L", "l", 13, 13]), $a(["M", "m", 9, 9]), $a(["N", "n", ",", ","]), $a(["O", "o", ":", ":"]), $a(["P", "p", "#", 10]), $a(["Q", "q", "-", "-"]), $a(["R", "r", ".", "."]), $a(["S", "s", "$", "$"]), $a(["T", "t", "/", "/"]), $a(["U", "u", "+", "\""]), $a(["V", "v", "%", "|"]), $a(["W", "w", "*", "*"]), $a(["X", "x", "=", 40]), $a(["Y", "y", "^", 41]), $a(["Z", "z", $1.pl, "?"]), $a([" ", " ", " ", "{"]), $a([$1.ll, $1.as, $1.ll, "}"]), $a([$1.ml, $1.ml, $1.al, "'"]), $a([$1.ps, $1.ps, $1.ps, $1.al])]); //#16254 + $1.charvals = $a([new Map, new Map, new Map, new Map]); //#16257 + $1.alltext = new Map; //#16258 + for (var _30 = 0, _2z = $1.charmaps.length - 1; _30 <= _2z; _30 += 1) { //#16268 + $1.i = _30; //#16260 + $1.encs = $get($1.charmaps, $1.i); //#16261 + for (var _34 = 0; _34 <= 3; _34 += 1) { //#16267 + $1.j = _34; //#16263 + var _37 = $get($1.encs, $1.j); //#16264 + $k[$j++] = _37; //#16264 + if ($eq($type(_37), 'stringtype')) { //#16264 + var _3A = $get($k[--$j], 0); //#16264 + $k[$j++] = _3A; //#16264 + } //#16264 + var _3B = $k[--$j]; //#16265 + $put($get($1.charvals, $1.j), _3B, $1.i); //#16265 + $put($1.alltext, _3B, -1); //#16266 + } //#16266 + } //#16266 + $1.e = 10000; //#16270 + $1.latlen = $a([$a([0, 1, 1, 2]), $a([2, 0, 1, 2]), $a([1, 1, 0, 1]), $a([1, 2, 2, 0])]); //#16278 + $1.latseq = $a([$a([$a([]), $a([$1.ll]), $a([$1.ml]), $a([$1.ml, $1.pl])]), $a([$a([$1.ml, $1.al]), $a([]), $a([$1.ml]), $a([$1.ml, $1.pl])]), $a([$a([$1.al]), $a([$1.ll]), $a([]), $a([$1.pl])]), $a([$a([$1.al]), $a([$1.al, $1.ll]), $a([$1.al, $1.ml]), $a([])])]); //#16286 + $1.shftlen = $a([$a([$1.e, $1.e, $1.e, 1]), $a([1, $1.e, $1.e, 1]), $a([$1.e, $1.e, $1.e, 1]), $a([$1.e, $1.e, $1.e, $1.e])]); //#16294 + $k[$j++] = Infinity; //#16297 + for (var _4G = 0, _4H = $1.msglen; _4G < _4H; _4G++) { //#16297 + $k[$j++] = 0; //#16297 + } //#16297 + $k[$j++] = 0; //#16297 + $1.numdigits = $a(); //#16297 + $k[$j++] = Infinity; //#16298 + for (var _4K = 0, _4L = $1.msglen; _4K < _4L; _4K++) { //#16298 + $k[$j++] = 0; //#16298 + } //#16298 + $k[$j++] = 0; //#16298 + $1.numtext = $a(); //#16298 + $k[$j++] = Infinity; //#16299 + for (var _4O = 0, _4P = $1.msglen; _4O < _4P; _4O++) { //#16299 + $k[$j++] = 0; //#16299 + } //#16299 + $k[$j++] = 0; //#16299 + $1.numbytes = $a(); //#16299 + $k[$j++] = Infinity; //#16300 + for (var _4S = 0, _4T = $1.msglen; _4S < _4T; _4S++) { //#16300 + $k[$j++] = 0; //#16300 + } //#16300 + $1.iseci = $a(); //#16300 + for (var _4W = $1.msglen - 1; _4W >= 0; _4W -= 1) { //#16313 + $1.i = _4W; //#16302 + var _4Z = $get($1.msg, $1.i); //#16303 + if ((_4Z >= 48) && (_4Z <= 57)) { //#16305 + $put($1.numdigits, $1.i, $f($get($1.numdigits, $1.i + 1) + 1)); //#16304 + } //#16304 + var _4j = $get($1.alltext, $get($1.msg, $1.i)) !== undefined; //#16306 + if (_4j && ($get($1.numdigits, $1.i) < 13)) { //#16308 + $put($1.numtext, $1.i, $f($get($1.numtext, $1.i + 1) + 1)); //#16307 + } //#16307 + if ((($get($1.msg, $1.i) >= 0) && ($get($1.numtext, $1.i) < 5)) && ($get($1.numdigits, $1.i) < 13)) { //#16311 + $put($1.numbytes, $1.i, $f($get($1.numbytes, $1.i + 1) + 1)); //#16310 + } //#16310 + $put($1.iseci, $1.i, $get($1.msg, $1.i) <= -1000000); //#16312 + } //#16312 + $1.numdigits = $geti($1.numdigits, 0, $1.msglen); //#16314 + $1.numtext = $geti($1.numtext, 0, $1.msglen); //#16315 + $1.numbytes = $geti($1.numbytes, 0, $1.msglen); //#16316 + $1.seq = $a([]); //#16318 + $1.seqlen = 0; //#16318 + $1.state = $1.B; //#16318 + $1.p = 0; //#16318 + for (;;) { //#16372 + if ($1.p == $1.msglen) { //#16319 + break; //#16319 + } //#16319 + if ($get($1.iseci, $1.p)) { //#16370 + $1.eci = $get($1.msg, $1.p); //#16321 + $k[$j++] = Infinity; //#16324 + $aload($1.seq); //#16323 + $k[$j++] = $a([$1.eci]); //#16324 + $1.seq = $a(); //#16324 + $1.p = $1.p + 1; //#16326 + $k[$j++] = 'seqlen'; //#16327 + $k[$j++] = $1.seqlen; //#16327 + if ($1.eci <= -1810900) { //#16327 + $k[$j++] = 2; //#16327 + } else { //#16327 + var _5c = ($1.eci <= -1000900) ? 3 : 2; //#16327 + $k[$j++] = _5c; //#16327 + } //#16327 + var _5d = $k[--$j]; //#16327 + var _5e = $k[--$j]; //#16327 + $1[$k[--$j]] = $f(_5e + _5d); //#16327 + } else { //#16370 + $1.n = $get($1.numdigits, $1.p); //#16329 + if ($1.n >= 13) { //#16370 + $k[$j++] = Infinity; //#16334 + $aload($1.seq); //#16332 + $k[$j++] = $1.nl; //#16334 + $k[$j++] = Infinity; //#16334 + $aload($geti($1.msg, $1.p, $1.n)); //#16334 + var _5q = $a(); //#16334 + $k[$j++] = _5q; //#16334 + $1.seq = $a(); //#16334 + $1.state = $1.N; //#16336 + $1.p = $f($1.p + $1.n); //#16337 + $1.seqlen = $f(($1.seqlen + 1) + $1.n); //#16338 + } else { //#16370 + $1.t = $get($1.numtext, $1.p); //#16340 + if ($1.t >= 5) { //#16370 + $k[$j++] = Infinity; //#16347 + $aload($1.seq); //#16343 + if ($1.state != $1.T) { //#16346 + $k[$j++] = $1.tl; //#16345 + } //#16345 + $k[$j++] = Infinity; //#16347 + $aload($geti($1.msg, $1.p, $1.t)); //#16347 + var _69 = $a(); //#16347 + $k[$j++] = _69; //#16347 + $1.seq = $a(); //#16347 + $1.state = $1.T; //#16349 + $1.p = $f($1.p + $1.t); //#16350 + $1.seqlen = $f($f($1.seqlen + 1) + $1.t); //#16351 + } else { //#16370 + $1.b = $get($1.numbytes, $1.p); //#16353 + if (($1.b == 1) && ($1.state == $1.T)) { //#16370 + $k[$j++] = Infinity; //#16358 + $aload($1.seq); //#16356 + $k[$j++] = $1.bs; //#16358 + $k[$j++] = $a([$get($1.msg, $1.p)]); //#16358 + $1.seq = $a(); //#16358 + $1.p = $f($1.p + $1.b); //#16360 + $1.seqlen = $f($1.seqlen + 2); //#16361 + } else { //#16370 + $k[$j++] = Infinity; //#16366 + $aload($1.seq); //#16364 + var _6Y = (($1.b % 6) != 0) ? $1.bl : $1.bl6; //#16365 + $k[$j++] = _6Y; //#16366 + $k[$j++] = Infinity; //#16366 + $aload($geti($1.msg, $1.p, $1.b)); //#16366 + var _6d = $a(); //#16366 + $k[$j++] = _6d; //#16366 + $1.seq = $a(); //#16366 + $1.state = $1.B; //#16368 + $1.p = $f($1.p + $1.b); //#16369 + $1.seqlen = $f($f($1.seqlen + 1) + $1.b); //#16370 + } //#16370 + } //#16370 + } //#16370 + } //#16370 + } //#16370 + $k[$j++] = Infinity; //#16375 + $k[$j++] = $1.tl; //#16375 + $k[$j++] = 900; //#16375 + $k[$j++] = $1.bl; //#16375 + $k[$j++] = 901; //#16375 + $k[$j++] = $1.bl6; //#16375 + $k[$j++] = 924; //#16375 + $k[$j++] = $1.nl; //#16375 + $k[$j++] = 902; //#16375 + $k[$j++] = $1.bs; //#16375 + $k[$j++] = 913; //#16375 + $1.latchcws = $d(); //#16376 $1.enca = function() { - var _6u = $get($get($1.charvals, $1.A), $k[--$j]); - $k[$j++] = _6u; - }; + var _6u = $get($get($1.charvals, $1.A), $k[--$j]); //#16379 + $k[$j++] = _6u; //#16379 + }; //#16379 $1.encl = function() { - var _6z = $get($get($1.charvals, $1.L), $k[--$j]); - $k[$j++] = _6z; - }; + var _6z = $get($get($1.charvals, $1.L), $k[--$j]); //#16380 + $k[$j++] = _6z; //#16380 + }; //#16380 $1.encm = function() { - var _74 = $get($get($1.charvals, $1.M), $k[--$j]); - $k[$j++] = _74; - }; + var _74 = $get($get($1.charvals, $1.M), $k[--$j]); //#16381 + $k[$j++] = _74; //#16381 + }; //#16381 $1.encp = function() { - var _79 = $get($get($1.charvals, $1.P), $k[--$j]); - $k[$j++] = _79; - }; - $1.textencfuncs = $a([ "enca", "encl", "encm", "encp" ]); + var _79 = $get($get($1.charvals, $1.P), $k[--$j]); //#16382 + $k[$j++] = _79; //#16382 + }; //#16382 + $1.textencfuncs = $a(['enca', 'encl', 'encm', 'encp']); //#16383 $1.addtotext = function() { - $put($1.text, $1.l, $k[--$j]); - $1.l = $1.l + 1; - }; + $put($1.text, $1.l, $k[--$j]); //#16386 + $1.l = $1.l + 1; //#16387 + }; //#16388 $1.enct = function() { - $1.in = $k[--$j]; - $1.curlen = $a([ $1.e, $1.e, $1.e, $1.e ]); - $put($1.curlen, $1.submode, 0); - $1.curseq = $a([ $a([]), $a([]), $a([]), $a([]) ]); - $forall($1.in, function() { - $1.char = $k[--$j]; - for (;;) { - $1.imp = false; - var _7Y = $a([ $1.A, $1.L, $1.M, $1.P ]); - for (var _7Z = 0, _7a = _7Y.length; _7Z < _7a; _7Z++) { - $1.x = $get(_7Y, _7Z); - var _7g = $a([ $1.A, $1.L, $1.M, $1.P ]); - for (var _7h = 0, _7i = _7g.length; _7h < _7i; _7h++) { - $1.y = $get(_7g, _7h); - $1.cost = $f($get($1.curlen, $1.x) + $get($get($1.latlen, $1.x), $1.y)); - if ($1.cost < $get($1.curlen, $1.y)) { - $put($1.curlen, $1.y, $1.cost); - $k[$j++] = $1.curseq; - $k[$j++] = $1.y; - $k[$j++] = Infinity; - $aload($get($1.curseq, $1.x)); - $aload($get($get($1.latseq, $1.x), $1.y)); - var _89 = $a(); - var _8A = $k[--$j]; - $put($k[--$j], _8A, _89); - $1.imp = true; - } - } - } - if (!$1.imp) { - break; - } - } - $1.nxtlen = $a([ $1.e, $1.e, $1.e, $1.e ]); - $1.nxtseq = $a(4); - var _8N = $a([ $1.A, $1.L, $1.M, $1.P ]); - for (var _8O = 0, _8P = _8N.length; _8O < _8P; _8O++) { - $1.x = $get(_8N, _8O); - for (;;) { - var _8V = $get($get($1.charvals, $1.x), $1.char) !== undefined; - if (!_8V) { - break; - } - $1.cost = $f($get($1.curlen, $1.x) + 1); - if ($1.cost < $get($1.nxtlen, $1.x)) { - $put($1.nxtlen, $1.x, $1.cost); - $k[$j++] = $1.nxtseq; - $k[$j++] = $1.x; - $k[$j++] = Infinity; - $aload($get($1.curseq, $1.x)); - $k[$j++] = $1.char; - var _8m = $a(); - var _8n = $k[--$j]; - $put($k[--$j], _8n, _8m); - } - var _8t = $a([ $1.A, $1.L, $1.M, $1.P ]); - for (var _8u = 0, _8v = _8t.length; _8u < _8v; _8u++) { - $1.y = $get(_8t, _8u); - if ($ne($1.x, $1.y)) { - $1.cost = $f($f($get($1.curlen, $1.y) + $get($get($1.shftlen, $1.y), $1.x)) + 1); - if ($1.cost < $get($1.nxtlen, $1.y)) { - $put($1.nxtlen, $1.y, $1.cost); - $k[$j++] = $1.nxtseq; - $k[$j++] = $1.y; - $k[$j++] = Infinity; - $aload($get($1.curseq, $1.y)); - var _9L = $1.x == $1.A ? $1.as : $1.ps; - $k[$j++] = _9L; - $k[$j++] = $1.char; - var _9N = $a(); - var _9O = $k[--$j]; - $put($k[--$j], _9O, _9N); - } - } - } - break; - } - } - $1.curlen = $1.nxtlen; - $1.curseq = $1.nxtseq; - }); - $1.minseq = $1.e; - var _9X = $a([ $1.A, $1.L, $1.M, $1.P ]); - for (var _9Y = 0, _9Z = _9X.length; _9Y < _9Z; _9Y++) { - $1.k = $get(_9X, _9Y); - if ($get($1.curlen, $1.k) < $1.minseq) { - $1.minseq = $get($1.curlen, $1.k); - $1.txtseq = $get($1.curseq, $1.k); - } - } - $1.text = $a($1.minseq); - $1.k = 0; - $1.l = 0; - for (;;) { - if ($1.k >= $1.txtseq.length) { - break; - } - $1.char = $get($1.txtseq, $1.k); - $k[$j++] = $1.char; + $1.in = $k[--$j]; //#16392 + $1.curlen = $a([$1.e, $1.e, $1.e, $1.e]); //#16394 + $put($1.curlen, $1.submode, 0); //#16395 + $1.curseq = $a([$a([]), $a([]), $a([]), $a([])]); //#16396 + $forall($1.in, function() { //#16466 + $1.char = $k[--$j]; //#16401 + for (;;) { //#16422 + $1.imp = false; //#16405 + var _7Y = $a([$1.A, $1.L, $1.M, $1.P]); //#16406 + for (var _7Z = 0, _7a = _7Y.length; _7Z < _7a; _7Z++) { //#16420 + $1.x = $get(_7Y, _7Z); //#16407 + var _7g = $a([$1.A, $1.L, $1.M, $1.P]); //#16408 + for (var _7h = 0, _7i = _7g.length; _7h < _7i; _7h++) { //#16419 + $1.y = $get(_7g, _7h); //#16409 + $1.cost = $f($get($1.curlen, $1.x) + $get($get($1.latlen, $1.x), $1.y)); //#16410 + if ($1.cost < $get($1.curlen, $1.y)) { //#16418 + $put($1.curlen, $1.y, $1.cost); //#16412 + $k[$j++] = $1.curseq; //#16415 + $k[$j++] = $1.y; //#16415 + $k[$j++] = Infinity; //#16415 + $aload($get($1.curseq, $1.x)); //#16414 + $aload($get($get($1.latseq, $1.x), $1.y)); //#16415 + var _89 = $a(); //#16415 + var _8A = $k[--$j]; //#16416 + $put($k[--$j], _8A, _89); //#16416 + $1.imp = true; //#16417 + } //#16417 + } //#16417 + } //#16417 + if (!$1.imp) { //#16421 + break; //#16421 + } //#16421 + } //#16421 + $1.nxtlen = $a([$1.e, $1.e, $1.e, $1.e]); //#16425 + $1.nxtseq = $a(4); //#16426 + var _8N = $a([$1.A, $1.L, $1.M, $1.P]); //#16428 + for (var _8O = 0, _8P = _8N.length; _8O < _8P; _8O++) { //#16461 + $1.x = $get(_8N, _8O); //#16429 + for (;;) { //#16459 + var _8V = $get($get($1.charvals, $1.x), $1.char) !== undefined; //#16433 + if (!_8V) { //#16433 + break; //#16433 + } //#16433 + $1.cost = $f($get($1.curlen, $1.x) + 1); //#16436 + if ($1.cost < $get($1.nxtlen, $1.x)) { //#16440 + $put($1.nxtlen, $1.x, $1.cost); //#16438 + $k[$j++] = $1.nxtseq; //#16439 + $k[$j++] = $1.x; //#16439 + $k[$j++] = Infinity; //#16439 + $aload($get($1.curseq, $1.x)); //#16439 + $k[$j++] = $1.char; //#16439 + var _8m = $a(); //#16439 + var _8n = $k[--$j]; //#16439 + $put($k[--$j], _8n, _8m); //#16439 + } //#16439 + var _8t = $a([$1.A, $1.L, $1.M, $1.P]); //#16443 + for (var _8u = 0, _8v = _8t.length; _8u < _8v; _8u++) { //#16456 + $1.y = $get(_8t, _8u); //#16444 + if ($ne($1.x, $1.y)) { //#16455 + $1.cost = $f($f($get($1.curlen, $1.y) + $get($get($1.shftlen, $1.y), $1.x)) + 1); //#16446 + if ($1.cost < $get($1.nxtlen, $1.y)) { //#16454 + $put($1.nxtlen, $1.y, $1.cost); //#16448 + $k[$j++] = $1.nxtseq; //#16452 + $k[$j++] = $1.y; //#16452 + $k[$j++] = Infinity; //#16452 + $aload($get($1.curseq, $1.y)); //#16450 + var _9L = ($1.x == $1.A) ? $1.as : $1.ps; //#16451 + $k[$j++] = _9L; //#16452 + $k[$j++] = $1.char; //#16452 + var _9N = $a(); //#16452 + var _9O = $k[--$j]; //#16453 + $put($k[--$j], _9O, _9N); //#16453 + } //#16453 + } //#16453 + } //#16453 + break; //#16458 + } //#16458 + } //#16458 + $1.curlen = $1.nxtlen; //#16463 + $1.curseq = $1.nxtseq; //#16464 + }); //#16464 + $1.minseq = $1.e; //#16469 + var _9X = $a([$1.A, $1.L, $1.M, $1.P]); //#16470 + for (var _9Y = 0, _9Z = _9X.length; _9Y < _9Z; _9Y++) { //#16476 + $1.k = $get(_9X, _9Y); //#16471 + if ($get($1.curlen, $1.k) < $1.minseq) { //#16475 + $1.minseq = $get($1.curlen, $1.k); //#16473 + $1.txtseq = $get($1.curseq, $1.k); //#16474 + } //#16474 + } //#16474 + $1.text = $a($1.minseq); //#16479 + $1.k = 0; //#16480 + $1.l = 0; //#16480 + for (;;) { //#16500 + if ($1.k >= $1.txtseq.length) { //#16481 + break; //#16481 + } //#16481 + $1.char = $get($1.txtseq, $1.k); //#16483 + $k[$j++] = $1.char; //#16486 if ($1[$get($1.textencfuncs, $1.submode)]() === true) { break; - } - $1.addtotext(); - $1.k = $1.k + 1; - if ($1.char == $1.as || $1.char == $1.ps) { - $k[$j++] = $get($1.txtseq, $1.k); - if ($1.char == $1.as) { - $1.enca(); - } else { - $1.encp(); - } - $1.addtotext(); - $1.k = $1.k + 1; - } - if ($1.char == $1.al) { - $1.submode = $1.A; - } - if ($1.char == $1.ll) { - $1.submode = $1.L; - } - if ($1.char == $1.ml) { - $1.submode = $1.M; - } - if ($1.char == $1.pl) { - $1.submode = $1.P; - } - } - if ($1.text.length % 2 == 1) { - if ($1.submode == $1.P) { - $k[$j++] = "pad"; - $k[$j++] = $1.al; - $1.encp(); - var _AO = $k[--$j]; - $1[$k[--$j]] = _AO; - $1.submode = $1.A; - } else { - $k[$j++] = "pad"; - $k[$j++] = $1.ps; + } //#16486 + $1.addtotext(); //#16486 + $1.k = $1.k + 1; //#16487 + if (($1.char == $1.as) || ($1.char == $1.ps)) { //#16493 + $k[$j++] = $get($1.txtseq, $1.k); //#16491 + if ($1.char == $1.as) { //#16491 + $1.enca(); //#16491 + } else { //#16491 + $1.encp(); //#16491 + } //#16491 + $1.addtotext(); //#16491 + $1.k = $1.k + 1; //#16492 + } //#16492 + if ($1.char == $1.al) { //#16496 + $1.submode = $1.A; //#16496 + } //#16496 + if ($1.char == $1.ll) { //#16497 + $1.submode = $1.L; //#16497 + } //#16497 + if ($1.char == $1.ml) { //#16498 + $1.submode = $1.M; //#16498 + } //#16498 + if ($1.char == $1.pl) { //#16499 + $1.submode = $1.P; //#16499 + } //#16499 + } //#16499 + if (($1.text.length % 2) == 1) { //#16510 + if ($1.submode == $1.P) { //#16507 + $k[$j++] = 'pad'; //#16504 + $k[$j++] = $1.al; //#16504 + $1.encp(); //#16504 + var _AO = $k[--$j]; //#16504 + $1[$k[--$j]] = _AO; //#16504 + $1.submode = $1.A; //#16505 + } else { //#16507 + $k[$j++] = 'pad'; //#16507 + $k[$j++] = $1.ps; //#16507 if ($1[$get($1.textencfuncs, $1.submode)]() === true) { return true; - } - var _AW = $k[--$j]; - $1[$k[--$j]] = _AW; - } - $k[$j++] = Infinity; - $aload($1.text); - $k[$j++] = $1.pad; - $1.text = $a(); - } - $1.out = $a(~~($1.text.length / 2)); - for (var _Af = 0, _Ae = $1.out.length - 1; _Af <= _Ae; _Af += 1) { - $1.k = _Af; - $put($1.out, $1.k, $f($get($1.text, $1.k * 2) * 30 + $get($1.text, $1.k * 2 + 1))); - } - $k[$j++] = $1.out; - }; + } //#16507 + var _AW = $k[--$j]; //#16507 + $1[$k[--$j]] = _AW; //#16507 + } //#16507 + $k[$j++] = Infinity; //#16509 + $aload($1.text); //#16509 + $k[$j++] = $1.pad; //#16509 + $1.text = $a(); //#16509 + } //#16509 + $1.out = $a(~~($1.text.length / 2)); //#16512 + for (var _Af = 0, _Ae = $1.out.length - 1; _Af <= _Ae; _Af += 1) { //#16516 + $1.k = _Af; //#16514 + $put($1.out, $1.k, $f(($get($1.text, $1.k * 2) * 30) + $get($1.text, ($1.k * 2) + 1))); //#16515 + } //#16515 + $k[$j++] = $1.out; //#16518 + }; //#16520 $1.encn = function() { - $1.in = $k[--$j]; - $1.out = $a([]); - for (var _At = 0, _As = $1.in.length - 1; _At <= _As; _At += 44) { - $1.k = _At; - $k[$j++] = Infinity; - var _Ay = $1.in.length - $1.k; - $k[$j++] = 1; - $k[$j++] = $1.in; - $k[$j++] = $1.k; - $k[$j++] = _Ay; - if (_Ay > 44) { - $j--; - $k[$j++] = 44; - } - var _Az = $k[--$j]; - var _B0 = $k[--$j]; - var _B2 = $geti($k[--$j], _B0, _Az); - for (var _B3 = 0, _B4 = _B2.length; _B3 < _B4; _B3++) { - $k[$j++] = $f($get(_B2, _B3) - 48); - } - $1.gmod = $a(); - $1.cwn = $a([]); - for (;;) { - $1.dv = 900; - $1.gmul = $a([]); - $1.val = 0; - for (;;) { - if ($1.gmod.length == 0) { - break; - } - $1.val = $f($1.val * 10 + $get($1.gmod, 0)); - $1.gmod = $geti($1.gmod, 1, $1.gmod.length - 1); - if ($1.val < $1.dv) { - if ($1.gmul.length != 0) { - $k[$j++] = Infinity; - $aload($1.gmul); - $k[$j++] = 0; - $1.gmul = $a(); - } - } else { - $k[$j++] = Infinity; - $aload($1.gmul); - $k[$j++] = ~~($1.val / $1.dv); - $1.gmul = $a(); - } - $1.val = $1.val % $1.dv; - } - $1.dv = $1.val; - $k[$j++] = Infinity; - $k[$j++] = $1.dv; - $aload($1.cwn); - $1.cwn = $a(); - $1.gmod = $1.gmul; - if ($1.gmul.length == 0) { - break; - } - } - $k[$j++] = Infinity; - $aload($1.out); - $aload($1.cwn); - $1.out = $a(); - } - $k[$j++] = $1.out; - }; + $1.in = $k[--$j]; //#16523 + $1.out = $a([]); //#16524 + for (var _At = 0, _As = $1.in.length - 1; _At <= _As; _At += 44) { //#16552 + $1.k = _At; //#16526 + $k[$j++] = Infinity; //#16529 + var _Ay = $1.in.length - $1.k; //#16528 + $k[$j++] = 1; //#16528 + $k[$j++] = $1.in; //#16528 + $k[$j++] = $1.k; //#16528 + $k[$j++] = _Ay; //#16528 + if (_Ay > 44) { //#16528 + $j--; //#16528 + $k[$j++] = 44; //#16528 + } //#16528 + var _Az = $k[--$j]; //#16528 + var _B0 = $k[--$j]; //#16528 + var _B2 = $geti($k[--$j], _B0, _Az); //#16528 + for (var _B3 = 0, _B4 = _B2.length; _B3 < _B4; _B3++) { //#16529 + $k[$j++] = $f($get(_B2, _B3) - 48); //#16529 + } //#16529 + $1.gmod = $a(); //#16529 + $1.cwn = $a([]); //#16531 + for (;;) { //#16550 + $1.dv = 900; //#16532 + $1.gmul = $a([]); //#16533 + $1.val = 0; //#16533 + for (;;) { //#16545 + if ($1.gmod.length == 0) { //#16534 + break; //#16534 + } //#16534 + $1.val = $f(($1.val * 10) + $get($1.gmod, 0)); //#16535 + $1.gmod = $geti($1.gmod, 1, $1.gmod.length - 1); //#16536 + if ($1.val < $1.dv) { //#16542 + if ($1.gmul.length != 0) { //#16540 + $k[$j++] = Infinity; //#16539 + $aload($1.gmul); //#16539 + $k[$j++] = 0; //#16539 + $1.gmul = $a(); //#16539 + } //#16539 + } else { //#16542 + $k[$j++] = Infinity; //#16542 + $aload($1.gmul); //#16542 + $k[$j++] = ~~($1.val / $1.dv); //#16542 + $1.gmul = $a(); //#16542 + } //#16542 + $1.val = $1.val % $1.dv; //#16544 + } //#16544 + $1.dv = $1.val; //#16546 + $k[$j++] = Infinity; //#16547 + $k[$j++] = $1.dv; //#16547 + $aload($1.cwn); //#16547 + $1.cwn = $a(); //#16547 + $1.gmod = $1.gmul; //#16548 + if ($1.gmul.length == 0) { //#16549 + break; //#16549 + } //#16549 + } //#16549 + $k[$j++] = Infinity; //#16551 + $aload($1.out); //#16551 + $aload($1.cwn); //#16551 + $1.out = $a(); //#16551 + } //#16551 + $k[$j++] = $1.out; //#16553 + }; //#16554 $1.ence = function() { - var _Bd = $f(-$get($k[--$j], 0) - 1e6); - $k[$j++] = _Bd; - if (_Bd <= 899) { - var _Be = $k[--$j]; - $k[$j++] = 927; - $k[$j++] = _Be; - $astore($a(2)); - } else { - var _Bg = $k[--$j]; - $k[$j++] = _Bg; - if (_Bg <= 810899) { - var _Bh = $k[--$j]; - $k[$j++] = 926; - $k[$j++] = ~~(_Bh / 900) - 1; - $k[$j++] = _Bh % 900; - $astore($a(3)); - } else { - var _Bj = $k[--$j]; - $k[$j++] = _Bj; - if (_Bj <= 811799) { - var _Bk = $k[--$j]; - $k[$j++] = 925; - $k[$j++] = $f(_Bk - 810900); - $astore($a(2)); - } else { - $k[$j++] = "bwipp.pdf417badECI"; - $k[$j++] = "PDF417 supports ECIs 000000 to 811799"; - $0.raiseerror(); - } - } - } - }; - $1.encfuncs = $a([ "enct", "encn", "encb" ]); + var _Bd = $f((-$get($k[--$j], 0)) - 1000000); //#16558 + $k[$j++] = _Bd; //#16566 + if (_Bd <= 899) { //#16565 + var _Be = $k[--$j]; //#16559 + $k[$j++] = 927; //#16559 + $k[$j++] = _Be; //#16559 + $astore($a(2)); //#16559 + } else { //#16565 + var _Bg = $k[--$j]; //#16560 + $k[$j++] = _Bg; //#16566 + if (_Bg <= 810899) { //#16565 + var _Bh = $k[--$j]; //#16561 + $k[$j++] = 926; //#16561 + $k[$j++] = (~~(_Bh / 900)) - 1; //#16561 + $k[$j++] = _Bh % 900; //#16561 + $astore($a(3)); //#16561 + } else { //#16565 + var _Bj = $k[--$j]; //#16562 + $k[$j++] = _Bj; //#16566 + if (_Bj <= 811799) { //#16565 + var _Bk = $k[--$j]; //#16563 + $k[$j++] = 925; //#16563 + $k[$j++] = $f(_Bk - 810900); //#16563 + $astore($a(2)); //#16563 + } else { //#16565 + $k[$j++] = 'bwipp.pdf417badECI'; //#16565 + $k[$j++] = "PDF417 supports ECIs 000000 to 811799"; //#16565 + $0.raiseerror(); //#16565 + } //#16565 + } //#16565 + } //#16565 + }; //#16567 + $1.encfuncs = $a(['enct', 'encn', 'encb']); //#16569 $1.addtocws = function() { - var _Bn = $k[--$j]; - $puti($1.datcws, $1.j, _Bn); - $1.j = _Bn.length + $1.j; - }; - $1.datcws = $a($1.seqlen); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i >= $1.seq.length) { - break; - } - $1.chars = $get($1.seq, $1.i); - if ($eq($type($1.chars), "arraytype")) { - if ($get($1.chars, 0) <= -1e6) { - $k[$j++] = $1.chars; - $1.ence(); - $1.addtocws(); - } else { - $k[$j++] = $1.chars; + var _Bn = $k[--$j]; //#16572 + $puti($1.datcws, $1.j, _Bn); //#16572 + $1.j = _Bn.length + $1.j; //#16573 + }; //#16574 + $1.datcws = $a($1.seqlen); //#16578 + $1.i = 0; //#16579 + $1.j = 0; //#16579 + for (;;) { //#16599 + if ($1.i >= $1.seq.length) { //#16580 + break; //#16580 + } //#16580 + $1.chars = $get($1.seq, $1.i); //#16581 + if ($eq($type($1.chars), 'arraytype')) { //#16595 + if ($get($1.chars, 0) <= -1000000) { //#16586 + $k[$j++] = $1.chars; //#16584 + $1.ence(); //#16584 + $1.addtocws(); //#16584 + } else { //#16586 + $k[$j++] = $1.chars; //#16586 if ($1[$get($1.encfuncs, $1.state)]() === true) { break; - } - $1.addtocws(); - } - } else { - $k[$j++] = $a([ $get($1.latchcws, $1.chars) ]); - $1.addtocws(); - if ($1.chars == $1.tl) { - $1.state = $1.T; - $1.submode = $1.A; - } - if ($1.chars == $1.nl) { - $1.state = $1.N; - } - if ($1.chars == $1.bl || $1.chars == $1.bl6) { - $1.state = $1.B; - } - if ($1.chars == $1.bs) { - $1.i = $1.i + 1; - $k[$j++] = $get($1.seq, $1.i); - $1.encb(); - $1.addtocws(); - } - } - $1.i = $1.i + 1; - } - $1.datcws = $geti($1.datcws, 0, $1.j); - } - $1.metrics = $a([ $a([ 1, 11, 7, 1, 0, 9 ]), $a([ 1, 14, 7, 8, 0, 8 ]), $a([ 1, 17, 7, 36, 0, 36 ]), $a([ 1, 20, 8, 19, 0, 19 ]), $a([ 1, 24, 8, 9, 0, 17 ]), $a([ 1, 28, 8, 25, 0, 33 ]), $a([ 2, 8, 8, 1, 0, 1 ]), $a([ 2, 11, 9, 1, 0, 9 ]), $a([ 2, 14, 9, 8, 0, 8 ]), $a([ 2, 17, 10, 36, 0, 36 ]), $a([ 2, 20, 11, 19, 0, 19 ]), $a([ 2, 23, 13, 9, 0, 17 ]), $a([ 2, 26, 15, 27, 0, 35 ]), $a([ 3, 6, 12, 1, 1, 1 ]), $a([ 3, 8, 14, 7, 7, 7 ]), $a([ 3, 10, 16, 15, 15, 15 ]), $a([ 3, 12, 18, 25, 25, 25 ]), $a([ 3, 15, 21, 37, 37, 37 ]), $a([ 3, 20, 26, 1, 17, 33 ]), $a([ 3, 26, 32, 1, 9, 17 ]), $a([ 3, 32, 38, 21, 29, 37 ]), $a([ 3, 38, 44, 15, 31, 47 ]), $a([ 3, 44, 50, 1, 25, 49 ]), $a([ 4, 4, 8, 47, 19, 43 ]), $a([ 4, 6, 12, 1, 1, 1 ]), $a([ 4, 8, 14, 7, 7, 7 ]), $a([ 4, 10, 16, 15, 15, 15 ]), $a([ 4, 12, 18, 25, 25, 25 ]), $a([ 4, 15, 21, 37, 37, 37 ]), $a([ 4, 20, 26, 1, 17, 33 ]), $a([ 4, 26, 32, 1, 9, 17 ]), $a([ 4, 32, 38, 21, 29, 37 ]), $a([ 4, 38, 44, 15, 31, 47 ]), $a([ 4, 44, 50, 1, 25, 49 ]) ]); - $1.ccametrics = $a([ $a([ 2, 5, 4, 39, 0, 19 ]), $a([ 2, 6, 4, 1, 0, 33 ]), $a([ 2, 7, 5, 32, 0, 12 ]), $a([ 2, 8, 5, 8, 0, 40 ]), $a([ 2, 9, 6, 14, 0, 46 ]), $a([ 2, 10, 6, 43, 0, 23 ]), $a([ 2, 12, 7, 20, 0, 52 ]), $a([ 3, 4, 4, 11, 43, 23 ]), $a([ 3, 5, 5, 1, 33, 13 ]), $a([ 3, 6, 6, 5, 37, 17 ]), $a([ 3, 7, 7, 15, 47, 27 ]), $a([ 3, 8, 7, 21, 1, 33 ]), $a([ 4, 3, 4, 40, 20, 52 ]), $a([ 4, 4, 5, 43, 23, 3 ]), $a([ 4, 5, 6, 46, 26, 6 ]), $a([ 4, 6, 7, 34, 14, 46 ]), $a([ 4, 7, 8, 29, 9, 41 ]) ]); - if ($1.cca) { - $1.metrics = $1.ccametrics; - } - $1.urows = $1.rows; - $1.ucols = $1.columns; - $1.i = 0; - for (;;) { - $1.m = $get($1.metrics, $1.i); - $1.c = $get($1.m, 0); - $1.r = $get($1.m, 1); - $1.k = $get($1.m, 2); - $1.rapl = $get($1.m, 3); - $1.rapc = $get($1.m, 4); - $1.rapr = $get($1.m, 5); - $1.ncws = $f($1.r * $1.c - $1.k); - $1.okay = true; - if ($1.datcws.length > $1.ncws) { - $1.okay = false; - } - if ($1.urows != 0 && $1.urows != $1.r) { - $1.okay = false; - } - if ($1.ucols != 0 && $1.ucols != $1.c) { - $1.okay = false; - } - if ($1.okay) { - break; - } - $1.i = $1.i + 1; - } - $1.m = $1.datcws.length; - $1.n = $f($1.c * $1.r - $1.k); - $1.cws = $a($f($1.c * $1.r + 1)); - $puti($1.cws, 0, $1.datcws); - $k[$j++] = $1.cws; - $k[$j++] = $1.m; - $k[$j++] = Infinity; - for (var _E8 = 0, _E9 = $f($1.n - $1.m); _E8 < _E9; _E8++) { - $k[$j++] = 900; - } - var _EA = $a(); - var _EB = $k[--$j]; - $puti($k[--$j], _EB, _EA); - $k[$j++] = $1.cws; - $k[$j++] = $1.n; - $k[$j++] = Infinity; - for (var _EG = 0, _EH = $1.k; _EG < _EH; _EG++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - var _EI = $a(); - var _EJ = $k[--$j]; - $puti($k[--$j], _EJ, _EI); - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _EL = 0, _EM = 928; _EL < _EM; _EL++) { - var _EN = $k[--$j]; - $k[$j++] = _EN; - $k[$j++] = _EN * 3 % 929; - } - $1.rsalog = $a(); - $1.rslog = $a(929); - for (var _EQ = 1; _EQ <= 928; _EQ += 1) { - $put($1.rslog, $get($1.rsalog, _EQ), _EQ); - } + } //#16586 + $1.addtocws(); //#16586 + } //#16586 + } else { //#16595 + $k[$j++] = $a([$get($1.latchcws, $1.chars)]); //#16589 + $1.addtocws(); //#16589 + if ($1.chars == $1.tl) { //#16590 + $1.state = $1.T; //#16590 + $1.submode = $1.A; //#16590 + } //#16590 + if ($1.chars == $1.nl) { //#16591 + $1.state = $1.N; //#16591 + } //#16591 + if (($1.chars == $1.bl) || ($1.chars == $1.bl6)) { //#16592 + $1.state = $1.B; //#16592 + } //#16592 + if ($1.chars == $1.bs) { //#16596 + $1.i = $1.i + 1; //#16594 + $k[$j++] = $get($1.seq, $1.i); //#16595 + $1.encb(); //#16595 + $1.addtocws(); //#16595 + } //#16595 + } //#16595 + $1.i = $1.i + 1; //#16598 + } //#16598 + $1.datcws = $geti($1.datcws, 0, $1.j); //#16600 + } //#16600 + $1.metrics = $a([$a([1, 11, 7, 1, 0, 9]), $a([1, 14, 7, 8, 0, 8]), $a([1, 17, 7, 36, 0, 36]), $a([1, 20, 8, 19, 0, 19]), $a([1, 24, 8, 9, 0, 17]), $a([1, 28, 8, 25, 0, 33]), $a([2, 8, 8, 1, 0, 1]), $a([2, 11, 9, 1, 0, 9]), $a([2, 14, 9, 8, 0, 8]), $a([2, 17, 10, 36, 0, 36]), $a([2, 20, 11, 19, 0, 19]), $a([2, 23, 13, 9, 0, 17]), $a([2, 26, 15, 27, 0, 35]), $a([3, 6, 12, 1, 1, 1]), $a([3, 8, 14, 7, 7, 7]), $a([3, 10, 16, 15, 15, 15]), $a([3, 12, 18, 25, 25, 25]), $a([3, 15, 21, 37, 37, 37]), $a([3, 20, 26, 1, 17, 33]), $a([3, 26, 32, 1, 9, 17]), $a([3, 32, 38, 21, 29, 37]), $a([3, 38, 44, 15, 31, 47]), $a([3, 44, 50, 1, 25, 49]), $a([4, 4, 8, 47, 19, 43]), $a([4, 6, 12, 1, 1, 1]), $a([4, 8, 14, 7, 7, 7]), $a([4, 10, 16, 15, 15, 15]), $a([4, 12, 18, 25, 25, 25]), $a([4, 15, 21, 37, 37, 37]), $a([4, 20, 26, 1, 17, 33]), $a([4, 26, 32, 1, 9, 17]), $a([4, 32, 38, 21, 29, 37]), $a([4, 38, 44, 15, 31, 47]), $a([4, 44, 50, 1, 25, 49])]); //#16640 + $1.ccametrics = $a([$a([2, 5, 4, 39, 0, 19]), $a([2, 6, 4, 1, 0, 33]), $a([2, 7, 5, 32, 0, 12]), $a([2, 8, 5, 8, 0, 40]), $a([2, 9, 6, 14, 0, 46]), $a([2, 10, 6, 43, 0, 23]), $a([2, 12, 7, 20, 0, 52]), $a([3, 4, 4, 11, 43, 23]), $a([3, 5, 5, 1, 33, 13]), $a([3, 6, 6, 5, 37, 17]), $a([3, 7, 7, 15, 47, 27]), $a([3, 8, 7, 21, 1, 33]), $a([4, 3, 4, 40, 20, 52]), $a([4, 4, 5, 43, 23, 3]), $a([4, 5, 6, 46, 26, 6]), $a([4, 6, 7, 34, 14, 46]), $a([4, 7, 8, 29, 9, 41])]); //#16662 + if ($1.cca) { //#16663 + $1.metrics = $1.ccametrics; //#16663 + } //#16663 + $1.urows = $1.rows; //#16666 + $1.ucols = $1.columns; //#16667 + $1.i = 0; //#16668 + for (;;) { //#16684 + $1.m = $get($1.metrics, $1.i); //#16670 + $1.c = $get($1.m, 0); //#16671 + $1.r = $get($1.m, 1); //#16672 + $1.k = $get($1.m, 2); //#16673 + $1.rapl = $get($1.m, 3); //#16674 + $1.rapc = $get($1.m, 4); //#16675 + $1.rapr = $get($1.m, 5); //#16676 + $1.ncws = $f(($1.r * $1.c) - $1.k); //#16677 + $1.okay = true; //#16678 + if ($1.datcws.length > $1.ncws) { //#16679 + $1.okay = false; //#16679 + } //#16679 + if (($1.urows != 0) && ($1.urows != $1.r)) { //#16680 + $1.okay = false; //#16680 + } //#16680 + if (($1.ucols != 0) && ($1.ucols != $1.c)) { //#16681 + $1.okay = false; //#16681 + } //#16681 + if ($1.okay) { //#16682 + break; //#16682 + } //#16682 + $1.i = $1.i + 1; //#16683 + } //#16683 + $1.m = $1.datcws.length; //#16685 + $1.n = $f(($1.c * $1.r) - $1.k); //#16688 + $1.cws = $a($f(($1.c * $1.r) + 1)); //#16689 + $puti($1.cws, 0, $1.datcws); //#16690 + $k[$j++] = $1.cws; //#16691 + $k[$j++] = $1.m; //#16691 + $k[$j++] = Infinity; //#16691 + for (var _E8 = 0, _E9 = $f($1.n - $1.m); _E8 < _E9; _E8++) { //#16691 + $k[$j++] = 900; //#16691 + } //#16691 + var _EA = $a(); //#16691 + var _EB = $k[--$j]; //#16691 + $puti($k[--$j], _EB, _EA); //#16691 + $k[$j++] = $1.cws; //#16692 + $k[$j++] = $1.n; //#16692 + $k[$j++] = Infinity; //#16692 + for (var _EG = 0, _EH = $1.k; _EG < _EH; _EG++) { //#16692 + $k[$j++] = 0; //#16692 + } //#16692 + $k[$j++] = 0; //#16692 + var _EI = $a(); //#16692 + var _EJ = $k[--$j]; //#16692 + $puti($k[--$j], _EJ, _EI); //#16692 + $k[$j++] = Infinity; //#16695 + $k[$j++] = 1; //#16695 + for (var _EL = 0, _EM = 928; _EL < _EM; _EL++) { //#16695 + var _EN = $k[--$j]; //#16695 + $k[$j++] = _EN; //#16695 + $k[$j++] = (_EN * 3) % 929; //#16695 + } //#16695 + $1.rsalog = $a(); //#16695 + $1.rslog = $a(929); //#16696 + for (var _EQ = 1; _EQ <= 928; _EQ += 1) { //#16697 + $put($1.rslog, $get($1.rsalog, _EQ), _EQ); //#16697 + } //#16697 $1.rsprod = function() { - var _EU = $k[--$j]; - var _EV = $k[--$j]; - $k[$j++] = _EV; - $k[$j++] = _EU; - if (_EU != 0 && _EV != 0) { - var _EY = $get($1.rslog, $k[--$j]); - var _Ed = $get($1.rsalog, $f(_EY + $get($1.rslog, $k[--$j])) % 928); - $k[$j++] = _Ed; - } else { - $j -= 2; - $k[$j++] = 0; - } - }; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _Ef = 0, _Eg = $1.k; _Ef < _Eg; _Ef++) { - $k[$j++] = 0; - } - $1.coeffs = $a(); - for (var _Ek = 1, _Ej = $1.k; _Ek <= _Ej; _Ek += 1) { - $1.i = _Ek; - $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); - for (var _Er = $1.i - 1; _Er >= 1; _Er -= 1) { - $1.j = _Er; - $k[$j++] = $1.coeffs; - $k[$j++] = $1.j; - $k[$j++] = $get($1.coeffs, $1.j - 1); - $k[$j++] = $get($1.coeffs, $1.j); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _F3 = $k[--$j]; - var _F4 = $k[--$j]; - var _F5 = $k[--$j]; - $put($k[--$j], _F5, $f(_F4 + _F3) % 929); - } - $k[$j++] = $1.coeffs; - $k[$j++] = 0; - $k[$j++] = $get($1.coeffs, 0); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _FD = $k[--$j]; - var _FE = $k[--$j]; - $put($k[--$j], _FE, _FD); - } - $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); - for (var _FK = $1.coeffs.length - 1; _FK >= 0; _FK -= 2) { - var _FL = $1.coeffs; - $put(_FL, _FK, $f(929 - $get(_FL, _FK))); - } - for (var _FP = 0, _FO = $f($1.n - 1); _FP <= _FO; _FP += 1) { - $1.t = $f($get($1.cws, _FP) + $get($1.cws, $1.n)) % 929; - for (var _FX = 0, _FW = $f($1.k - 1); _FX <= _FW; _FX += 1) { - $1.j = _FX; - $put($1.cws, $f($1.n + $1.j), $f($get($1.cws, $f($f($1.n + $1.j) + 1)) + $f(929 - $1.t * $get($1.coeffs, $f($f($1.k - $1.j) - 1)) % 929)) % 929); - } - } - for (var _Fo = $1.n, _Fn = $f($1.n + $1.k); _Fo <= _Fn; _Fo += 1) { - $put($1.cws, _Fo, $f(929 - $get($1.cws, _Fo)) % 929); - } - $1.cws = $geti($1.cws, 0, $1.cws.length - 1); - $1.clusters = $a([ $a([ 120256, 125680, 128380, 120032, 125560, 128318, 108736, 119920, 108640, 86080, 108592, 86048, 110016, 120560, 125820, 109792, 120440, 125758, 88256, 109680, 88160, 89536, 110320, 120700, 89312, 110200, 120638, 89200, 110140, 89840, 110460, 89720, 110398, 89980, 128506, 119520, 125304, 128190, 107712, 119408, 125244, 107616, 119352, 84032, 107568, 119324, 84e3, 107544, 83984, 108256, 119672, 125374, 85184, 108144, 119612, 85088, 108088, 119582, 85040, 108060, 85728, 108408, 119742, 85616, 108348, 85560, 108318, 85880, 108478, 85820, 85790, 107200, 119152, 125116, 107104, 119096, 125086, 83008, 107056, 119068, 82976, 107032, 82960, 82952, 83648, 107376, 119228, 83552, 107320, 119198, 83504, 107292, 83480, 83468, 83824, 107452, 83768, 107422, 83740, 83900, 106848, 118968, 125022, 82496, 106800, 118940, 82464, 106776, 118926, 82448, 106764, 82440, 106758, 82784, 106936, 119006, 82736, 106908, 82712, 106894, 82700, 82694, 106974, 82830, 82240, 106672, 118876, 82208, 106648, 118862, 82192, 106636, 82184, 106630, 82180, 82352, 82328, 82316, 82080, 118830, 106572, 106566, 82050, 117472, 124280, 127678, 103616, 117360, 124220, 103520, 117304, 124190, 75840, 103472, 75808, 104160, 117624, 124350, 76992, 104048, 117564, 76896, 103992, 76848, 76824, 77536, 104312, 117694, 77424, 104252, 77368, 77340, 77688, 104382, 77628, 77758, 121536, 126320, 128700, 121440, 126264, 128670, 111680, 121392, 126236, 111648, 121368, 126222, 111632, 121356, 103104, 117104, 124092, 112320, 103008, 117048, 124062, 112224, 121656, 126366, 93248, 74784, 102936, 117006, 93216, 112152, 93200, 75456, 103280, 117180, 93888, 75360, 103224, 117150, 93792, 112440, 121758, 93744, 75288, 93720, 75632, 103356, 94064, 75576, 103326, 94008, 112542, 93980, 75708, 94140, 75678, 94110, 121184, 126136, 128606, 111168, 121136, 126108, 111136, 121112, 126094, 111120, 121100, 111112, 111108, 102752, 116920, 123998, 111456, 102704, 116892, 91712, 74272, 121244, 116878, 91680, 74256, 102668, 91664, 111372, 102662, 74244, 74592, 102840, 116958, 92e3, 74544, 102812, 91952, 111516, 102798, 91928, 74508, 74502, 74680, 102878, 92088, 74652, 92060, 74638, 92046, 92126, 110912, 121008, 126044, 110880, 120984, 126030, 110864, 120972, 110856, 120966, 110852, 110850, 74048, 102576, 116828, 90944, 74016, 102552, 116814, 90912, 111e3, 121038, 90896, 73992, 102534, 90888, 110982, 90884, 74160, 102620, 91056, 74136, 102606, 91032, 111054, 91020, 74118, 91014, 91100, 91086, 110752, 120920, 125998, 110736, 120908, 110728, 120902, 110724, 110722, 73888, 102488, 116782, 90528, 73872, 102476, 90512, 110796, 102470, 90504, 73860, 90500, 73858, 73944, 90584, 90572, 90566, 120876, 120870, 110658, 102444, 73800, 90312, 90308, 90306, 101056, 116080, 123580, 100960, 116024, 70720, 100912, 115996, 70688, 100888, 70672, 70664, 71360, 101232, 116156, 71264, 101176, 116126, 71216, 101148, 71192, 71180, 71536, 101308, 71480, 101278, 71452, 71612, 71582, 118112, 124600, 127838, 105024, 118064, 124572, 104992, 118040, 124558, 104976, 118028, 104968, 118022, 100704, 115896, 123486, 105312, 100656, 115868, 79424, 70176, 118172, 115854, 79392, 105240, 100620, 79376, 70152, 79368, 70496, 100792, 115934, 79712, 70448, 118238, 79664, 105372, 100750, 79640, 70412, 79628, 70584, 100830, 79800, 70556, 79772, 70542, 70622, 79838, 122176, 126640, 128860, 122144, 126616, 128846, 122128, 126604, 122120, 126598, 122116, 104768, 117936, 124508, 113472, 104736, 126684, 124494, 113440, 122264, 126670, 113424, 104712, 117894, 113416, 122246, 104706, 69952, 100528, 115804, 78656, 69920, 100504, 115790, 96064, 78624, 104856, 117966, 96032, 113560, 122318, 100486, 96016, 78600, 104838, 96008, 69890, 70064, 100572, 78768, 70040, 100558, 96176, 78744, 104910, 96152, 113614, 70022, 78726, 70108, 78812, 70094, 96220, 78798, 122016, 126552, 128814, 122e3, 126540, 121992, 126534, 121988, 121986, 104608, 117848, 124462, 113056, 104592, 126574, 113040, 122060, 117830, 113032, 104580, 113028, 104578, 113026, 69792, 100440, 115758, 78240, 69776, 100428, 95136, 78224, 104652, 100422, 95120, 113100, 69764, 95112, 78212, 69762, 78210, 69848, 100462, 78296, 69836, 95192, 78284, 69830, 95180, 78278, 69870, 95214, 121936, 126508, 121928, 126502, 121924, 121922, 104528, 117804, 112848, 104520, 117798, 112840, 121958, 112836, 104514, 112834, 69712, 100396, 78032, 69704, 100390, 94672, 78024, 104550, 94664, 112870, 69698, 94660, 78018, 94658, 78060, 94700, 94694, 126486, 121890, 117782, 104484, 104482, 69672, 77928, 94440, 69666, 77922, 99680, 68160, 99632, 68128, 99608, 115342, 68112, 99596, 68104, 99590, 68448, 99768, 115422, 68400, 99740, 68376, 99726, 68364, 68358, 68536, 99806, 68508, 68494, 68574, 101696, 116400, 123740, 101664, 116376, 101648, 116364, 101640, 116358, 101636, 67904, 99504, 115292, 72512, 67872, 116444, 115278, 72480, 101784, 116430, 72464, 67848, 99462, 72456, 101766, 67842, 68016, 99548, 72624, 67992, 99534, 72600, 101838, 72588, 67974, 68060, 72668, 68046, 72654, 118432, 124760, 127918, 118416, 124748, 118408, 124742, 118404, 118402, 101536, 116312, 105888, 101520, 116300, 105872, 118476, 116294, 105864, 101508, 105860, 101506, 105858, 67744, 99416, 72096, 67728, 116334, 80800, 72080, 101580, 99398, 80784, 105932, 67716, 80776, 72068, 67714, 72066, 67800, 99438, 72152, 67788, 80856, 72140, 67782, 80844, 72134, 67822, 72174, 80878, 126800, 128940, 126792, 128934, 126788, 126786, 118352, 124716, 122576, 126828, 124710, 122568, 126822, 122564, 118338, 122562, 101456, 116268, 105680, 101448, 116262, 114128, 105672, 118374, 114120, 122598, 101442, 114116, 105666, 114114, 67664, 99372, 71888, 67656, 99366, 80336, 71880, 101478, 97232, 80328, 105702, 67650, 97224, 114150, 71874, 97220, 67692, 71916, 67686, 80364, 71910, 97260, 80358, 97254, 126760, 128918, 126756, 126754, 118312, 124694, 122472, 126774, 122468, 118306, 122466, 101416, 116246, 105576, 101412, 113896, 105572, 101410, 113892, 105570, 113890, 67624, 99350, 71784, 101430, 80104, 71780, 67618, 96744, 80100, 71778, 96740, 80098, 96738, 71798, 96758, 126738, 122420, 122418, 105524, 113780, 113778, 71732, 79988, 96500, 96498, 66880, 66848, 98968, 66832, 66824, 66820, 66992, 66968, 66956, 66950, 67036, 67022, 1e5, 99984, 115532, 99976, 115526, 99972, 99970, 66720, 98904, 69024, 100056, 98892, 69008, 100044, 69e3, 100038, 68996, 66690, 68994, 66776, 98926, 69080, 100078, 69068, 66758, 69062, 66798, 69102, 116560, 116552, 116548, 116546, 99920, 102096, 116588, 115494, 102088, 116582, 102084, 99906, 102082, 66640, 68816, 66632, 98854, 73168, 68808, 66628, 73160, 68804, 66626, 73156, 68802, 66668, 68844, 66662, 73196, 68838, 73190, 124840, 124836, 124834, 116520, 118632, 124854, 118628, 116514, 118626, 99880, 115478, 101992, 116534, 106216, 101988, 99874, 106212, 101986, 106210, 66600, 98838, 68712, 99894, 72936, 68708, 66594, 81384, 72932, 68706, 81380, 72930, 66614, 68726, 72950, 81398, 128980, 128978, 124820, 126900, 124818, 126898, 116500, 118580, 116498, 122740, 118578, 122738, 99860, 101940, 99858, 106100, 101938, 114420 ]), $a([ 128352, 129720, 125504, 128304, 129692, 125472, 128280, 129678, 125456, 128268, 125448, 128262, 125444, 125792, 128440, 129758, 120384, 125744, 128412, 120352, 125720, 128398, 120336, 125708, 120328, 125702, 120324, 120672, 125880, 128478, 110144, 120624, 125852, 110112, 120600, 125838, 110096, 120588, 110088, 120582, 110084, 110432, 120760, 125918, 89664, 110384, 120732, 89632, 110360, 120718, 89616, 110348, 89608, 110342, 89952, 110520, 120798, 89904, 110492, 89880, 110478, 89868, 90040, 110558, 90012, 89998, 125248, 128176, 129628, 125216, 128152, 129614, 125200, 128140, 125192, 128134, 125188, 125186, 119616, 125360, 128220, 119584, 125336, 128206, 119568, 125324, 119560, 125318, 119556, 119554, 108352, 119728, 125404, 108320, 119704, 125390, 108304, 119692, 108296, 119686, 108292, 108290, 85824, 108464, 119772, 85792, 108440, 119758, 85776, 108428, 85768, 108422, 85764, 85936, 108508, 85912, 108494, 85900, 85894, 85980, 85966, 125088, 128088, 129582, 125072, 128076, 125064, 128070, 125060, 125058, 119200, 125144, 128110, 119184, 125132, 119176, 125126, 119172, 119170, 107424, 119256, 125166, 107408, 119244, 107400, 119238, 107396, 107394, 83872, 107480, 119278, 83856, 107468, 83848, 107462, 83844, 83842, 83928, 107502, 83916, 83910, 83950, 125008, 128044, 125e3, 128038, 124996, 124994, 118992, 125036, 118984, 125030, 118980, 118978, 106960, 119020, 106952, 119014, 106948, 106946, 82896, 106988, 82888, 106982, 82884, 82882, 82924, 82918, 124968, 128022, 124964, 124962, 118888, 124982, 118884, 118882, 106728, 118902, 106724, 106722, 82408, 106742, 82404, 82402, 124948, 124946, 118836, 118834, 106612, 106610, 124224, 127664, 129372, 124192, 127640, 129358, 124176, 127628, 124168, 127622, 124164, 124162, 117568, 124336, 127708, 117536, 124312, 127694, 117520, 124300, 117512, 124294, 117508, 117506, 104256, 117680, 124380, 104224, 117656, 124366, 104208, 117644, 104200, 117638, 104196, 104194, 77632, 104368, 117724, 77600, 104344, 117710, 77584, 104332, 77576, 104326, 77572, 77744, 104412, 77720, 104398, 77708, 77702, 77788, 77774, 128672, 129880, 93168, 128656, 129868, 92664, 128648, 129862, 92412, 128644, 128642, 124064, 127576, 129326, 126368, 124048, 129902, 126352, 128716, 127558, 126344, 124036, 126340, 124034, 126338, 117152, 124120, 127598, 121760, 117136, 124108, 121744, 126412, 124102, 121736, 117124, 121732, 117122, 121730, 103328, 117208, 124142, 112544, 103312, 117196, 112528, 121804, 117190, 112520, 103300, 112516, 103298, 112514, 75680, 103384, 117230, 94112, 75664, 103372, 94096, 112588, 103366, 94088, 75652, 94084, 75650, 75736, 103406, 94168, 75724, 94156, 75718, 94150, 75758, 128592, 129836, 91640, 128584, 129830, 91388, 128580, 91262, 128578, 123984, 127532, 126160, 123976, 127526, 126152, 128614, 126148, 123970, 126146, 116944, 124012, 121296, 116936, 124006, 121288, 126182, 121284, 116930, 121282, 102864, 116972, 111568, 102856, 116966, 111560, 121318, 111556, 102850, 111554, 74704, 102892, 92112, 74696, 102886, 92104, 111590, 92100, 74690, 92098, 74732, 92140, 74726, 92134, 128552, 129814, 90876, 128548, 90750, 128546, 123944, 127510, 126056, 128566, 126052, 123938, 126050, 116840, 123958, 121064, 116836, 121060, 116834, 121058, 102632, 116854, 111080, 121078, 111076, 102626, 111074, 74216, 102646, 91112, 74212, 91108, 74210, 91106, 74230, 91126, 128532, 90494, 128530, 123924, 126004, 123922, 126002, 116788, 120948, 116786, 120946, 102516, 110836, 102514, 110834, 73972, 90612, 73970, 90610, 128522, 123914, 125978, 116762, 120890, 102458, 110714, 123552, 127320, 129198, 123536, 127308, 123528, 127302, 123524, 123522, 116128, 123608, 127342, 116112, 123596, 116104, 123590, 116100, 116098, 101280, 116184, 123630, 101264, 116172, 101256, 116166, 101252, 101250, 71584, 101336, 116206, 71568, 101324, 71560, 101318, 71556, 71554, 71640, 101358, 71628, 71622, 71662, 127824, 129452, 79352, 127816, 129446, 79100, 127812, 78974, 127810, 123472, 127276, 124624, 123464, 127270, 124616, 127846, 124612, 123458, 124610, 115920, 123500, 118224, 115912, 123494, 118216, 124646, 118212, 115906, 118210, 100816, 115948, 105424, 100808, 115942, 105416, 118246, 105412, 100802, 105410, 70608, 100844, 79824, 70600, 100838, 79816, 105446, 79812, 70594, 79810, 70636, 79852, 70630, 79846, 129960, 95728, 113404, 129956, 95480, 113278, 129954, 95356, 95294, 127784, 129430, 78588, 128872, 129974, 95996, 78462, 128868, 127778, 95870, 128866, 123432, 127254, 124520, 123428, 126696, 128886, 123426, 126692, 124514, 126690, 115816, 123446, 117992, 115812, 122344, 117988, 115810, 122340, 117986, 122338, 100584, 115830, 104936, 100580, 113640, 104932, 100578, 113636, 104930, 113634, 70120, 100598, 78824, 70116, 96232, 78820, 70114, 96228, 78818, 96226, 70134, 78838, 129940, 94968, 113022, 129938, 94844, 94782, 127764, 78206, 128820, 127762, 95102, 128818, 123412, 124468, 123410, 126580, 124466, 126578, 115764, 117876, 115762, 122100, 117874, 122098, 100468, 104692, 100466, 113140, 104690, 113138, 69876, 78324, 69874, 95220, 78322, 95218, 129930, 94588, 94526, 127754, 128794, 123402, 124442, 126522, 115738, 117818, 121978, 100410, 104570, 112890, 69754, 78074, 94714, 94398, 123216, 127148, 123208, 127142, 123204, 123202, 115408, 123244, 115400, 123238, 115396, 115394, 99792, 115436, 99784, 115430, 99780, 99778, 68560, 99820, 68552, 99814, 68548, 68546, 68588, 68582, 127400, 129238, 72444, 127396, 72318, 127394, 123176, 127126, 123752, 123172, 123748, 123170, 123746, 115304, 123190, 116456, 115300, 116452, 115298, 116450, 99560, 115318, 101864, 99556, 101860, 99554, 101858, 68072, 99574, 72680, 68068, 72676, 68066, 72674, 68086, 72694, 129492, 80632, 105854, 129490, 80508, 80446, 127380, 72062, 127924, 127378, 80766, 127922, 123156, 123700, 123154, 124788, 123698, 124786, 115252, 116340, 115250, 118516, 116338, 118514, 99444, 101620, 99442, 105972, 101618, 105970, 67828, 72180, 67826, 80884, 72178, 80882, 97008, 114044, 96888, 113982, 96828, 96798, 129482, 80252, 130010, 97148, 80190, 97086, 127370, 127898, 128954, 123146, 123674, 124730, 126842, 115226, 116282, 118394, 122618, 99386, 101498, 105722, 114170, 67706, 71930, 80378, 96632, 113854, 96572, 96542, 80062, 96702, 96444, 96414, 96350, 123048, 123044, 123042, 115048, 123062, 115044, 115042, 99048, 115062, 99044, 99042, 67048, 99062, 67044, 67042, 67062, 127188, 68990, 127186, 123028, 123316, 123026, 123314, 114996, 115572, 114994, 115570, 98932, 100084, 98930, 100082, 66804, 69108, 66802, 69106, 129258, 73084, 73022, 127178, 127450, 123018, 123290, 123834, 114970, 115514, 116602, 98874, 99962, 102138, 66682, 68858, 73210, 81272, 106174, 81212, 81182, 72894, 81342, 97648, 114364, 97592, 114334, 97564, 97550, 81084, 97724, 81054, 97694, 97464, 114270, 97436, 97422, 80990, 97502, 97372, 97358, 97326, 114868, 114866, 98676, 98674, 66292, 66290, 123098, 114842, 115130, 98618, 99194, 66170, 67322, 69310, 73404, 73374, 81592, 106334, 81564, 81550, 73310, 81630, 97968, 114524, 97944, 114510, 97932, 97926, 81500, 98012, 81486, 97998, 97880, 114478, 97868, 97862, 81454, 97902, 97836, 97830, 69470, 73564, 73550, 81752, 106414, 81740, 81734, 73518, 81774, 81708, 81702 ]), $a([ 109536, 120312, 86976, 109040, 120060, 86496, 108792, 119934, 86256, 108668, 86136, 129744, 89056, 110072, 129736, 88560, 109820, 129732, 88312, 109694, 129730, 88188, 128464, 129772, 89592, 128456, 129766, 89340, 128452, 89214, 128450, 125904, 128492, 125896, 128486, 125892, 125890, 120784, 125932, 120776, 125926, 120772, 120770, 110544, 120812, 110536, 120806, 110532, 84928, 108016, 119548, 84448, 107768, 119422, 84208, 107644, 84088, 107582, 84028, 129640, 85488, 108284, 129636, 85240, 108158, 129634, 85116, 85054, 128232, 129654, 85756, 128228, 85630, 128226, 125416, 128246, 125412, 125410, 119784, 125430, 119780, 119778, 108520, 119798, 108516, 108514, 83424, 107256, 119166, 83184, 107132, 83064, 107070, 83004, 82974, 129588, 83704, 107390, 129586, 83580, 83518, 128116, 83838, 128114, 125172, 125170, 119284, 119282, 107508, 107506, 82672, 106876, 82552, 106814, 82492, 82462, 129562, 82812, 82750, 128058, 125050, 119034, 82296, 106686, 82236, 82206, 82366, 82108, 82078, 76736, 103920, 117500, 76256, 103672, 117374, 76016, 103548, 75896, 103486, 75836, 129384, 77296, 104188, 129380, 77048, 104062, 129378, 76924, 76862, 127720, 129398, 77564, 127716, 77438, 127714, 124392, 127734, 124388, 124386, 117736, 124406, 117732, 117730, 104424, 117750, 104420, 104418, 112096, 121592, 126334, 92608, 111856, 121468, 92384, 111736, 121406, 92272, 111676, 92216, 111646, 92188, 75232, 103160, 117118, 93664, 74992, 103036, 93424, 112252, 102974, 93304, 74812, 93244, 74782, 93214, 129332, 75512, 103294, 129908, 129330, 93944, 75388, 129906, 93820, 75326, 93758, 127604, 75646, 128756, 127602, 94078, 128754, 124148, 126452, 124146, 126450, 117236, 121844, 117234, 121842, 103412, 103410, 91584, 111344, 121212, 91360, 111224, 121150, 91248, 111164, 91192, 111134, 91164, 91150, 74480, 102780, 91888, 74360, 102718, 91768, 111422, 91708, 74270, 91678, 129306, 74620, 129850, 92028, 74558, 91966, 127546, 128634, 124026, 126202, 116986, 121338, 102906, 90848, 110968, 121022, 90736, 110908, 90680, 110878, 90652, 90638, 74104, 102590, 91e3, 74044, 90940, 74014, 90910, 74174, 91070, 90480, 110780, 90424, 110750, 90396, 90382, 73916, 90556, 73886, 90526, 90296, 110686, 90268, 90254, 73822, 90334, 90204, 90190, 71136, 101112, 116094, 70896, 100988, 70776, 100926, 70716, 70686, 129204, 71416, 101246, 129202, 71292, 71230, 127348, 71550, 127346, 123636, 123634, 116212, 116210, 101364, 101362, 79296, 105200, 118140, 79072, 105080, 118078, 78960, 105020, 78904, 104990, 78876, 78862, 70384, 100732, 79600, 70264, 100670, 79480, 105278, 79420, 70174, 79390, 129178, 70524, 129466, 79740, 70462, 79678, 127290, 127866, 123514, 124666, 115962, 118266, 100858, 113376, 122232, 126654, 95424, 113264, 122172, 95328, 113208, 122142, 95280, 113180, 95256, 113166, 95244, 78560, 104824, 117950, 95968, 78448, 104764, 95856, 113468, 104734, 95800, 78364, 95772, 78350, 95758, 70008, 100542, 78712, 69948, 96120, 78652, 69918, 96060, 78622, 96030, 70078, 78782, 96190, 94912, 113008, 122044, 94816, 112952, 122014, 94768, 112924, 94744, 112910, 94732, 94726, 78192, 104636, 95088, 78136, 104606, 95032, 113054, 95004, 78094, 94990, 69820, 78268, 69790, 95164, 78238, 95134, 94560, 112824, 121950, 94512, 112796, 94488, 112782, 94476, 94470, 78008, 104542, 94648, 77980, 94620, 77966, 94606, 69726, 78046, 94686, 94384, 112732, 94360, 112718, 94348, 94342, 77916, 94428, 77902, 94414, 94296, 112686, 94284, 94278, 77870, 94318, 94252, 94246, 68336, 99708, 68216, 99646, 68156, 68126, 68476, 68414, 127162, 123258, 115450, 99834, 72416, 101752, 116414, 72304, 101692, 72248, 101662, 72220, 72206, 67960, 99518, 72568, 67900, 72508, 67870, 72478, 68030, 72638, 80576, 105840, 118460, 80480, 105784, 118430, 80432, 105756, 80408, 105742, 80396, 80390, 72048, 101564, 80752, 71992, 101534, 80696, 71964, 80668, 71950, 80654, 67772, 72124, 67742, 80828, 72094, 80798, 114016, 122552, 126814, 96832, 113968, 122524, 96800, 113944, 122510, 96784, 113932, 96776, 113926, 96772, 80224, 105656, 118366, 97120, 80176, 105628, 97072, 114076, 105614, 97048, 80140, 97036, 80134, 97030, 71864, 101470, 80312, 71836, 97208, 80284, 71822, 97180, 80270, 97166, 67678, 71902, 80350, 97246, 96576, 113840, 122460, 96544, 113816, 122446, 96528, 113804, 96520, 113798, 96516, 96514, 80048, 105564, 96688, 80024, 105550, 96664, 113870, 96652, 80006, 96646, 71772, 80092, 71758, 96732, 80078, 96718, 96416, 113752, 122414, 96400, 113740, 96392, 113734, 96388, 96386, 79960, 105518, 96472, 79948, 96460, 79942, 96454, 71726, 79982, 96494, 96336, 113708, 96328, 113702, 96324, 96322, 79916, 96364, 79910, 96358, 96296, 113686, 96292, 96290, 79894, 96310, 66936, 99006, 66876, 66846, 67006, 68976, 100028, 68920, 99998, 68892, 68878, 66748, 69052, 66718, 69022, 73056, 102072, 116574, 73008, 102044, 72984, 102030, 72972, 72966, 68792, 99934, 73144, 68764, 73116, 68750, 73102, 66654, 68830, 73182, 81216, 106160, 118620, 81184, 106136, 118606, 81168, 106124, 81160, 106118, 81156, 81154, 72880, 101980, 81328, 72856, 101966, 81304, 106190, 81292, 72838, 81286, 68700, 72924, 68686, 81372, 72910, 81358, 114336, 122712, 126894, 114320, 122700, 114312, 122694, 114308, 114306, 81056, 106072, 118574, 97696, 81040, 106060, 97680, 114380, 106054, 97672, 81028, 97668, 81026, 97666, 72792, 101934, 81112, 72780, 97752, 81100, 72774, 97740, 81094, 97734, 68654, 72814, 81134, 97774, 114256, 122668, 114248, 122662, 114244, 114242, 80976, 106028, 97488, 80968, 106022, 97480, 114278, 97476, 80962, 97474, 72748, 81004, 72742, 97516, 80998, 97510, 114216, 122646, 114212, 114210, 80936, 106006, 97384, 80932, 97380, 80930, 97378, 72726, 80950, 97398, 114196, 114194, 80916, 97332, 80914, 97330, 66236, 66206, 67256, 99166, 67228, 67214, 66142, 67294, 69296, 100188, 69272, 100174, 69260, 69254, 67164, 69340, 67150, 69326, 73376, 102232, 116654, 73360, 102220, 73352, 102214, 73348, 73346, 69208, 100142, 73432, 102254, 73420, 69190, 73414, 67118, 69230, 73454, 106320, 118700, 106312, 118694, 106308, 106306, 73296, 102188, 81616, 106348, 102182, 81608, 73284, 81604, 73282, 81602, 69164, 73324, 69158, 81644, 73318, 81638, 122792, 126934, 122788, 122786, 106280, 118678, 114536, 106276, 114532, 106274, 114530, 73256, 102166, 81512, 73252, 98024, 81508, 73250, 98020, 81506, 98018, 69142, 73270, 81526, 98038, 122772, 122770, 106260, 114484, 106258, 114482, 73236, 81460, 73234, 97908, 81458, 97906, 122762, 106250, 114458, 73226, 81434, 97850, 66396, 66382, 67416, 99246, 67404, 67398, 66350, 67438, 69456, 100268, 69448, 100262, 69444, 69442, 67372, 69484, 67366, 69478, 102312, 116694, 102308, 102306, 69416, 100246, 73576, 102326, 73572, 69410, 73570, 67350, 69430, 73590, 118740, 118738, 102292, 106420, 102290, 106418, 69396, 73524, 69394, 81780, 73522, 81778, 118730, 102282, 106394, 69386, 73498, 81722, 66476, 66470, 67496, 99286, 67492, 67490, 66454, 67510, 100308, 100306, 67476, 69556, 67474, 69554, 116714 ]) ]); - $1.raps = $a([ $a([ 802, 930, 946, 818, 882, 890, 826, 954, 922, 986, 970, 906, 778, 794, 786, 914, 978, 982, 980, 916, 948, 932, 934, 942, 940, 936, 808, 812, 814, 806, 822, 950, 918, 790, 788, 820, 884, 868, 870, 878, 876, 872, 840, 856, 860, 862, 846, 844, 836, 838, 834, 866 ]), $a([ 718, 590, 622, 558, 550, 566, 534, 530, 538, 570, 562, 546, 610, 626, 634, 762, 754, 758, 630, 628, 612, 614, 582, 578, 706, 738, 742, 740, 748, 620, 556, 552, 616, 744, 712, 716, 708, 710, 646, 654, 652, 668, 664, 696, 688, 656, 720, 592, 600, 604, 732, 734 ]) ]); + var _EU = $k[--$j]; //#16701 + var _EV = $k[--$j]; //#16701 + $k[$j++] = _EV; //#16705 + $k[$j++] = _EU; //#16705 + if ((_EU != 0) && (_EV != 0)) { //#16704 + var _EY = $get($1.rslog, $k[--$j]); //#16702 + var _Ed = $get($1.rsalog, $f(_EY + $get($1.rslog, $k[--$j])) % 928); //#16702 + $k[$j++] = _Ed; //#16702 + } else { //#16704 + $j -= 2; //#16704 + $k[$j++] = 0; //#16704 + } //#16704 + }; //#16706 + $k[$j++] = Infinity; //#16709 + $k[$j++] = 1; //#16709 + for (var _Ef = 0, _Eg = $1.k; _Ef < _Eg; _Ef++) { //#16709 + $k[$j++] = 0; //#16709 + } //#16709 + $1.coeffs = $a(); //#16709 + for (var _Ek = 1, _Ej = $1.k; _Ek <= _Ej; _Ek += 1) { //#16718 + $1.i = _Ek; //#16711 + $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); //#16712 + for (var _Er = $1.i - 1; _Er >= 1; _Er -= 1) { //#16716 + $1.j = _Er; //#16714 + $k[$j++] = $1.coeffs; //#16715 + $k[$j++] = $1.j; //#16715 + $k[$j++] = $get($1.coeffs, $1.j - 1); //#16715 + $k[$j++] = $get($1.coeffs, $1.j); //#16715 + $k[$j++] = $get($1.rsalog, $1.i); //#16715 + $1.rsprod(); //#16715 + var _F3 = $k[--$j]; //#16715 + var _F4 = $k[--$j]; //#16715 + var _F5 = $k[--$j]; //#16715 + $put($k[--$j], _F5, $f(_F4 + _F3) % 929); //#16715 + } //#16715 + $k[$j++] = $1.coeffs; //#16717 + $k[$j++] = 0; //#16717 + $k[$j++] = $get($1.coeffs, 0); //#16717 + $k[$j++] = $get($1.rsalog, $1.i); //#16717 + $1.rsprod(); //#16717 + var _FD = $k[--$j]; //#16717 + var _FE = $k[--$j]; //#16717 + $put($k[--$j], _FE, _FD); //#16717 + } //#16717 + $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); //#16719 + for (var _FK = $1.coeffs.length - 1; _FK >= 0; _FK -= 2) { //#16720 + var _FL = $1.coeffs; //#16720 + $put(_FL, _FK, $f(929 - $get(_FL, _FK))); //#16720 + } //#16720 + for (var _FP = 0, _FO = $f($1.n - 1); _FP <= _FO; _FP += 1) { //#16729 + $1.t = $f($get($1.cws, _FP) + $get($1.cws, $1.n)) % 929; //#16724 + for (var _FX = 0, _FW = $f($1.k - 1); _FX <= _FW; _FX += 1) { //#16728 + $1.j = _FX; //#16726 + $put($1.cws, $f($1.n + $1.j), ($f($get($1.cws, $f($f($1.n + $1.j) + 1)) + ($f(929 - (($1.t * $get($1.coeffs, $f($f($1.k - $1.j) - 1))) % 929))))) % 929); //#16727 + } //#16727 + } //#16727 + for (var _Fo = $1.n, _Fn = $f($1.n + $1.k); _Fo <= _Fn; _Fo += 1) { //#16730 + $put($1.cws, _Fo, $f(929 - $get($1.cws, _Fo)) % 929); //#16730 + } //#16730 + $1.cws = $geti($1.cws, 0, $1.cws.length - 1); //#16733 + $1.clusters = $a([$a([120256, 125680, 128380, 120032, 125560, 128318, 108736, 119920, 108640, 86080, 108592, 86048, 110016, 120560, 125820, 109792, 120440, 125758, 88256, 109680, 88160, 89536, 110320, 120700, 89312, 110200, 120638, 89200, 110140, 89840, 110460, 89720, 110398, 89980, 128506, 119520, 125304, 128190, 107712, 119408, 125244, 107616, 119352, 84032, 107568, 119324, 84000, 107544, 83984, 108256, 119672, 125374, 85184, 108144, 119612, 85088, 108088, 119582, 85040, 108060, 85728, 108408, 119742, 85616, 108348, 85560, 108318, 85880, 108478, 85820, 85790, 107200, 119152, 125116, 107104, 119096, 125086, 83008, 107056, 119068, 82976, 107032, 82960, 82952, 83648, 107376, 119228, 83552, 107320, 119198, 83504, 107292, 83480, 83468, 83824, 107452, 83768, 107422, 83740, 83900, 106848, 118968, 125022, 82496, 106800, 118940, 82464, 106776, 118926, 82448, 106764, 82440, 106758, 82784, 106936, 119006, 82736, 106908, 82712, 106894, 82700, 82694, 106974, 82830, 82240, 106672, 118876, 82208, 106648, 118862, 82192, 106636, 82184, 106630, 82180, 82352, 82328, 82316, 82080, 118830, 106572, 106566, 82050, 117472, 124280, 127678, 103616, 117360, 124220, 103520, 117304, 124190, 75840, 103472, 75808, 104160, 117624, 124350, 76992, 104048, 117564, 76896, 103992, 76848, 76824, 77536, 104312, 117694, 77424, 104252, 77368, 77340, 77688, 104382, 77628, 77758, 121536, 126320, 128700, 121440, 126264, 128670, 111680, 121392, 126236, 111648, 121368, 126222, 111632, 121356, 103104, 117104, 124092, 112320, 103008, 117048, 124062, 112224, 121656, 126366, 93248, 74784, 102936, 117006, 93216, 112152, 93200, 75456, 103280, 117180, 93888, 75360, 103224, 117150, 93792, 112440, 121758, 93744, 75288, 93720, 75632, 103356, 94064, 75576, 103326, 94008, 112542, 93980, 75708, 94140, 75678, 94110, 121184, 126136, 128606, 111168, 121136, 126108, 111136, 121112, 126094, 111120, 121100, 111112, 111108, 102752, 116920, 123998, 111456, 102704, 116892, 91712, 74272, 121244, 116878, 91680, 74256, 102668, 91664, 111372, 102662, 74244, 74592, 102840, 116958, 92000, 74544, 102812, 91952, 111516, 102798, 91928, 74508, 74502, 74680, 102878, 92088, 74652, 92060, 74638, 92046, 92126, 110912, 121008, 126044, 110880, 120984, 126030, 110864, 120972, 110856, 120966, 110852, 110850, 74048, 102576, 116828, 90944, 74016, 102552, 116814, 90912, 111000, 121038, 90896, 73992, 102534, 90888, 110982, 90884, 74160, 102620, 91056, 74136, 102606, 91032, 111054, 91020, 74118, 91014, 91100, 91086, 110752, 120920, 125998, 110736, 120908, 110728, 120902, 110724, 110722, 73888, 102488, 116782, 90528, 73872, 102476, 90512, 110796, 102470, 90504, 73860, 90500, 73858, 73944, 90584, 90572, 90566, 120876, 120870, 110658, 102444, 73800, 90312, 90308, 90306, 101056, 116080, 123580, 100960, 116024, 70720, 100912, 115996, 70688, 100888, 70672, 70664, 71360, 101232, 116156, 71264, 101176, 116126, 71216, 101148, 71192, 71180, 71536, 101308, 71480, 101278, 71452, 71612, 71582, 118112, 124600, 127838, 105024, 118064, 124572, 104992, 118040, 124558, 104976, 118028, 104968, 118022, 100704, 115896, 123486, 105312, 100656, 115868, 79424, 70176, 118172, 115854, 79392, 105240, 100620, 79376, 70152, 79368, 70496, 100792, 115934, 79712, 70448, 118238, 79664, 105372, 100750, 79640, 70412, 79628, 70584, 100830, 79800, 70556, 79772, 70542, 70622, 79838, 122176, 126640, 128860, 122144, 126616, 128846, 122128, 126604, 122120, 126598, 122116, 104768, 117936, 124508, 113472, 104736, 126684, 124494, 113440, 122264, 126670, 113424, 104712, 117894, 113416, 122246, 104706, 69952, 100528, 115804, 78656, 69920, 100504, 115790, 96064, 78624, 104856, 117966, 96032, 113560, 122318, 100486, 96016, 78600, 104838, 96008, 69890, 70064, 100572, 78768, 70040, 100558, 96176, 78744, 104910, 96152, 113614, 70022, 78726, 70108, 78812, 70094, 96220, 78798, 122016, 126552, 128814, 122000, 126540, 121992, 126534, 121988, 121986, 104608, 117848, 124462, 113056, 104592, 126574, 113040, 122060, 117830, 113032, 104580, 113028, 104578, 113026, 69792, 100440, 115758, 78240, 69776, 100428, 95136, 78224, 104652, 100422, 95120, 113100, 69764, 95112, 78212, 69762, 78210, 69848, 100462, 78296, 69836, 95192, 78284, 69830, 95180, 78278, 69870, 95214, 121936, 126508, 121928, 126502, 121924, 121922, 104528, 117804, 112848, 104520, 117798, 112840, 121958, 112836, 104514, 112834, 69712, 100396, 78032, 69704, 100390, 94672, 78024, 104550, 94664, 112870, 69698, 94660, 78018, 94658, 78060, 94700, 94694, 126486, 121890, 117782, 104484, 104482, 69672, 77928, 94440, 69666, 77922, 99680, 68160, 99632, 68128, 99608, 115342, 68112, 99596, 68104, 99590, 68448, 99768, 115422, 68400, 99740, 68376, 99726, 68364, 68358, 68536, 99806, 68508, 68494, 68574, 101696, 116400, 123740, 101664, 116376, 101648, 116364, 101640, 116358, 101636, 67904, 99504, 115292, 72512, 67872, 116444, 115278, 72480, 101784, 116430, 72464, 67848, 99462, 72456, 101766, 67842, 68016, 99548, 72624, 67992, 99534, 72600, 101838, 72588, 67974, 68060, 72668, 68046, 72654, 118432, 124760, 127918, 118416, 124748, 118408, 124742, 118404, 118402, 101536, 116312, 105888, 101520, 116300, 105872, 118476, 116294, 105864, 101508, 105860, 101506, 105858, 67744, 99416, 72096, 67728, 116334, 80800, 72080, 101580, 99398, 80784, 105932, 67716, 80776, 72068, 67714, 72066, 67800, 99438, 72152, 67788, 80856, 72140, 67782, 80844, 72134, 67822, 72174, 80878, 126800, 128940, 126792, 128934, 126788, 126786, 118352, 124716, 122576, 126828, 124710, 122568, 126822, 122564, 118338, 122562, 101456, 116268, 105680, 101448, 116262, 114128, 105672, 118374, 114120, 122598, 101442, 114116, 105666, 114114, 67664, 99372, 71888, 67656, 99366, 80336, 71880, 101478, 97232, 80328, 105702, 67650, 97224, 114150, 71874, 97220, 67692, 71916, 67686, 80364, 71910, 97260, 80358, 97254, 126760, 128918, 126756, 126754, 118312, 124694, 122472, 126774, 122468, 118306, 122466, 101416, 116246, 105576, 101412, 113896, 105572, 101410, 113892, 105570, 113890, 67624, 99350, 71784, 101430, 80104, 71780, 67618, 96744, 80100, 71778, 96740, 80098, 96738, 71798, 96758, 126738, 122420, 122418, 105524, 113780, 113778, 71732, 79988, 96500, 96498, 66880, 66848, 98968, 66832, 66824, 66820, 66992, 66968, 66956, 66950, 67036, 67022, 100000, 99984, 115532, 99976, 115526, 99972, 99970, 66720, 98904, 69024, 100056, 98892, 69008, 100044, 69000, 100038, 68996, 66690, 68994, 66776, 98926, 69080, 100078, 69068, 66758, 69062, 66798, 69102, 116560, 116552, 116548, 116546, 99920, 102096, 116588, 115494, 102088, 116582, 102084, 99906, 102082, 66640, 68816, 66632, 98854, 73168, 68808, 66628, 73160, 68804, 66626, 73156, 68802, 66668, 68844, 66662, 73196, 68838, 73190, 124840, 124836, 124834, 116520, 118632, 124854, 118628, 116514, 118626, 99880, 115478, 101992, 116534, 106216, 101988, 99874, 106212, 101986, 106210, 66600, 98838, 68712, 99894, 72936, 68708, 66594, 81384, 72932, 68706, 81380, 72930, 66614, 68726, 72950, 81398, 128980, 128978, 124820, 126900, 124818, 126898, 116500, 118580, 116498, 122740, 118578, 122738, 99860, 101940, 99858, 106100, 101938, 114420]), $a([128352, 129720, 125504, 128304, 129692, 125472, 128280, 129678, 125456, 128268, 125448, 128262, 125444, 125792, 128440, 129758, 120384, 125744, 128412, 120352, 125720, 128398, 120336, 125708, 120328, 125702, 120324, 120672, 125880, 128478, 110144, 120624, 125852, 110112, 120600, 125838, 110096, 120588, 110088, 120582, 110084, 110432, 120760, 125918, 89664, 110384, 120732, 89632, 110360, 120718, 89616, 110348, 89608, 110342, 89952, 110520, 120798, 89904, 110492, 89880, 110478, 89868, 90040, 110558, 90012, 89998, 125248, 128176, 129628, 125216, 128152, 129614, 125200, 128140, 125192, 128134, 125188, 125186, 119616, 125360, 128220, 119584, 125336, 128206, 119568, 125324, 119560, 125318, 119556, 119554, 108352, 119728, 125404, 108320, 119704, 125390, 108304, 119692, 108296, 119686, 108292, 108290, 85824, 108464, 119772, 85792, 108440, 119758, 85776, 108428, 85768, 108422, 85764, 85936, 108508, 85912, 108494, 85900, 85894, 85980, 85966, 125088, 128088, 129582, 125072, 128076, 125064, 128070, 125060, 125058, 119200, 125144, 128110, 119184, 125132, 119176, 125126, 119172, 119170, 107424, 119256, 125166, 107408, 119244, 107400, 119238, 107396, 107394, 83872, 107480, 119278, 83856, 107468, 83848, 107462, 83844, 83842, 83928, 107502, 83916, 83910, 83950, 125008, 128044, 125000, 128038, 124996, 124994, 118992, 125036, 118984, 125030, 118980, 118978, 106960, 119020, 106952, 119014, 106948, 106946, 82896, 106988, 82888, 106982, 82884, 82882, 82924, 82918, 124968, 128022, 124964, 124962, 118888, 124982, 118884, 118882, 106728, 118902, 106724, 106722, 82408, 106742, 82404, 82402, 124948, 124946, 118836, 118834, 106612, 106610, 124224, 127664, 129372, 124192, 127640, 129358, 124176, 127628, 124168, 127622, 124164, 124162, 117568, 124336, 127708, 117536, 124312, 127694, 117520, 124300, 117512, 124294, 117508, 117506, 104256, 117680, 124380, 104224, 117656, 124366, 104208, 117644, 104200, 117638, 104196, 104194, 77632, 104368, 117724, 77600, 104344, 117710, 77584, 104332, 77576, 104326, 77572, 77744, 104412, 77720, 104398, 77708, 77702, 77788, 77774, 128672, 129880, 93168, 128656, 129868, 92664, 128648, 129862, 92412, 128644, 128642, 124064, 127576, 129326, 126368, 124048, 129902, 126352, 128716, 127558, 126344, 124036, 126340, 124034, 126338, 117152, 124120, 127598, 121760, 117136, 124108, 121744, 126412, 124102, 121736, 117124, 121732, 117122, 121730, 103328, 117208, 124142, 112544, 103312, 117196, 112528, 121804, 117190, 112520, 103300, 112516, 103298, 112514, 75680, 103384, 117230, 94112, 75664, 103372, 94096, 112588, 103366, 94088, 75652, 94084, 75650, 75736, 103406, 94168, 75724, 94156, 75718, 94150, 75758, 128592, 129836, 91640, 128584, 129830, 91388, 128580, 91262, 128578, 123984, 127532, 126160, 123976, 127526, 126152, 128614, 126148, 123970, 126146, 116944, 124012, 121296, 116936, 124006, 121288, 126182, 121284, 116930, 121282, 102864, 116972, 111568, 102856, 116966, 111560, 121318, 111556, 102850, 111554, 74704, 102892, 92112, 74696, 102886, 92104, 111590, 92100, 74690, 92098, 74732, 92140, 74726, 92134, 128552, 129814, 90876, 128548, 90750, 128546, 123944, 127510, 126056, 128566, 126052, 123938, 126050, 116840, 123958, 121064, 116836, 121060, 116834, 121058, 102632, 116854, 111080, 121078, 111076, 102626, 111074, 74216, 102646, 91112, 74212, 91108, 74210, 91106, 74230, 91126, 128532, 90494, 128530, 123924, 126004, 123922, 126002, 116788, 120948, 116786, 120946, 102516, 110836, 102514, 110834, 73972, 90612, 73970, 90610, 128522, 123914, 125978, 116762, 120890, 102458, 110714, 123552, 127320, 129198, 123536, 127308, 123528, 127302, 123524, 123522, 116128, 123608, 127342, 116112, 123596, 116104, 123590, 116100, 116098, 101280, 116184, 123630, 101264, 116172, 101256, 116166, 101252, 101250, 71584, 101336, 116206, 71568, 101324, 71560, 101318, 71556, 71554, 71640, 101358, 71628, 71622, 71662, 127824, 129452, 79352, 127816, 129446, 79100, 127812, 78974, 127810, 123472, 127276, 124624, 123464, 127270, 124616, 127846, 124612, 123458, 124610, 115920, 123500, 118224, 115912, 123494, 118216, 124646, 118212, 115906, 118210, 100816, 115948, 105424, 100808, 115942, 105416, 118246, 105412, 100802, 105410, 70608, 100844, 79824, 70600, 100838, 79816, 105446, 79812, 70594, 79810, 70636, 79852, 70630, 79846, 129960, 95728, 113404, 129956, 95480, 113278, 129954, 95356, 95294, 127784, 129430, 78588, 128872, 129974, 95996, 78462, 128868, 127778, 95870, 128866, 123432, 127254, 124520, 123428, 126696, 128886, 123426, 126692, 124514, 126690, 115816, 123446, 117992, 115812, 122344, 117988, 115810, 122340, 117986, 122338, 100584, 115830, 104936, 100580, 113640, 104932, 100578, 113636, 104930, 113634, 70120, 100598, 78824, 70116, 96232, 78820, 70114, 96228, 78818, 96226, 70134, 78838, 129940, 94968, 113022, 129938, 94844, 94782, 127764, 78206, 128820, 127762, 95102, 128818, 123412, 124468, 123410, 126580, 124466, 126578, 115764, 117876, 115762, 122100, 117874, 122098, 100468, 104692, 100466, 113140, 104690, 113138, 69876, 78324, 69874, 95220, 78322, 95218, 129930, 94588, 94526, 127754, 128794, 123402, 124442, 126522, 115738, 117818, 121978, 100410, 104570, 112890, 69754, 78074, 94714, 94398, 123216, 127148, 123208, 127142, 123204, 123202, 115408, 123244, 115400, 123238, 115396, 115394, 99792, 115436, 99784, 115430, 99780, 99778, 68560, 99820, 68552, 99814, 68548, 68546, 68588, 68582, 127400, 129238, 72444, 127396, 72318, 127394, 123176, 127126, 123752, 123172, 123748, 123170, 123746, 115304, 123190, 116456, 115300, 116452, 115298, 116450, 99560, 115318, 101864, 99556, 101860, 99554, 101858, 68072, 99574, 72680, 68068, 72676, 68066, 72674, 68086, 72694, 129492, 80632, 105854, 129490, 80508, 80446, 127380, 72062, 127924, 127378, 80766, 127922, 123156, 123700, 123154, 124788, 123698, 124786, 115252, 116340, 115250, 118516, 116338, 118514, 99444, 101620, 99442, 105972, 101618, 105970, 67828, 72180, 67826, 80884, 72178, 80882, 97008, 114044, 96888, 113982, 96828, 96798, 129482, 80252, 130010, 97148, 80190, 97086, 127370, 127898, 128954, 123146, 123674, 124730, 126842, 115226, 116282, 118394, 122618, 99386, 101498, 105722, 114170, 67706, 71930, 80378, 96632, 113854, 96572, 96542, 80062, 96702, 96444, 96414, 96350, 123048, 123044, 123042, 115048, 123062, 115044, 115042, 99048, 115062, 99044, 99042, 67048, 99062, 67044, 67042, 67062, 127188, 68990, 127186, 123028, 123316, 123026, 123314, 114996, 115572, 114994, 115570, 98932, 100084, 98930, 100082, 66804, 69108, 66802, 69106, 129258, 73084, 73022, 127178, 127450, 123018, 123290, 123834, 114970, 115514, 116602, 98874, 99962, 102138, 66682, 68858, 73210, 81272, 106174, 81212, 81182, 72894, 81342, 97648, 114364, 97592, 114334, 97564, 97550, 81084, 97724, 81054, 97694, 97464, 114270, 97436, 97422, 80990, 97502, 97372, 97358, 97326, 114868, 114866, 98676, 98674, 66292, 66290, 123098, 114842, 115130, 98618, 99194, 66170, 67322, 69310, 73404, 73374, 81592, 106334, 81564, 81550, 73310, 81630, 97968, 114524, 97944, 114510, 97932, 97926, 81500, 98012, 81486, 97998, 97880, 114478, 97868, 97862, 81454, 97902, 97836, 97830, 69470, 73564, 73550, 81752, 106414, 81740, 81734, 73518, 81774, 81708, 81702]), $a([109536, 120312, 86976, 109040, 120060, 86496, 108792, 119934, 86256, 108668, 86136, 129744, 89056, 110072, 129736, 88560, 109820, 129732, 88312, 109694, 129730, 88188, 128464, 129772, 89592, 128456, 129766, 89340, 128452, 89214, 128450, 125904, 128492, 125896, 128486, 125892, 125890, 120784, 125932, 120776, 125926, 120772, 120770, 110544, 120812, 110536, 120806, 110532, 84928, 108016, 119548, 84448, 107768, 119422, 84208, 107644, 84088, 107582, 84028, 129640, 85488, 108284, 129636, 85240, 108158, 129634, 85116, 85054, 128232, 129654, 85756, 128228, 85630, 128226, 125416, 128246, 125412, 125410, 119784, 125430, 119780, 119778, 108520, 119798, 108516, 108514, 83424, 107256, 119166, 83184, 107132, 83064, 107070, 83004, 82974, 129588, 83704, 107390, 129586, 83580, 83518, 128116, 83838, 128114, 125172, 125170, 119284, 119282, 107508, 107506, 82672, 106876, 82552, 106814, 82492, 82462, 129562, 82812, 82750, 128058, 125050, 119034, 82296, 106686, 82236, 82206, 82366, 82108, 82078, 76736, 103920, 117500, 76256, 103672, 117374, 76016, 103548, 75896, 103486, 75836, 129384, 77296, 104188, 129380, 77048, 104062, 129378, 76924, 76862, 127720, 129398, 77564, 127716, 77438, 127714, 124392, 127734, 124388, 124386, 117736, 124406, 117732, 117730, 104424, 117750, 104420, 104418, 112096, 121592, 126334, 92608, 111856, 121468, 92384, 111736, 121406, 92272, 111676, 92216, 111646, 92188, 75232, 103160, 117118, 93664, 74992, 103036, 93424, 112252, 102974, 93304, 74812, 93244, 74782, 93214, 129332, 75512, 103294, 129908, 129330, 93944, 75388, 129906, 93820, 75326, 93758, 127604, 75646, 128756, 127602, 94078, 128754, 124148, 126452, 124146, 126450, 117236, 121844, 117234, 121842, 103412, 103410, 91584, 111344, 121212, 91360, 111224, 121150, 91248, 111164, 91192, 111134, 91164, 91150, 74480, 102780, 91888, 74360, 102718, 91768, 111422, 91708, 74270, 91678, 129306, 74620, 129850, 92028, 74558, 91966, 127546, 128634, 124026, 126202, 116986, 121338, 102906, 90848, 110968, 121022, 90736, 110908, 90680, 110878, 90652, 90638, 74104, 102590, 91000, 74044, 90940, 74014, 90910, 74174, 91070, 90480, 110780, 90424, 110750, 90396, 90382, 73916, 90556, 73886, 90526, 90296, 110686, 90268, 90254, 73822, 90334, 90204, 90190, 71136, 101112, 116094, 70896, 100988, 70776, 100926, 70716, 70686, 129204, 71416, 101246, 129202, 71292, 71230, 127348, 71550, 127346, 123636, 123634, 116212, 116210, 101364, 101362, 79296, 105200, 118140, 79072, 105080, 118078, 78960, 105020, 78904, 104990, 78876, 78862, 70384, 100732, 79600, 70264, 100670, 79480, 105278, 79420, 70174, 79390, 129178, 70524, 129466, 79740, 70462, 79678, 127290, 127866, 123514, 124666, 115962, 118266, 100858, 113376, 122232, 126654, 95424, 113264, 122172, 95328, 113208, 122142, 95280, 113180, 95256, 113166, 95244, 78560, 104824, 117950, 95968, 78448, 104764, 95856, 113468, 104734, 95800, 78364, 95772, 78350, 95758, 70008, 100542, 78712, 69948, 96120, 78652, 69918, 96060, 78622, 96030, 70078, 78782, 96190, 94912, 113008, 122044, 94816, 112952, 122014, 94768, 112924, 94744, 112910, 94732, 94726, 78192, 104636, 95088, 78136, 104606, 95032, 113054, 95004, 78094, 94990, 69820, 78268, 69790, 95164, 78238, 95134, 94560, 112824, 121950, 94512, 112796, 94488, 112782, 94476, 94470, 78008, 104542, 94648, 77980, 94620, 77966, 94606, 69726, 78046, 94686, 94384, 112732, 94360, 112718, 94348, 94342, 77916, 94428, 77902, 94414, 94296, 112686, 94284, 94278, 77870, 94318, 94252, 94246, 68336, 99708, 68216, 99646, 68156, 68126, 68476, 68414, 127162, 123258, 115450, 99834, 72416, 101752, 116414, 72304, 101692, 72248, 101662, 72220, 72206, 67960, 99518, 72568, 67900, 72508, 67870, 72478, 68030, 72638, 80576, 105840, 118460, 80480, 105784, 118430, 80432, 105756, 80408, 105742, 80396, 80390, 72048, 101564, 80752, 71992, 101534, 80696, 71964, 80668, 71950, 80654, 67772, 72124, 67742, 80828, 72094, 80798, 114016, 122552, 126814, 96832, 113968, 122524, 96800, 113944, 122510, 96784, 113932, 96776, 113926, 96772, 80224, 105656, 118366, 97120, 80176, 105628, 97072, 114076, 105614, 97048, 80140, 97036, 80134, 97030, 71864, 101470, 80312, 71836, 97208, 80284, 71822, 97180, 80270, 97166, 67678, 71902, 80350, 97246, 96576, 113840, 122460, 96544, 113816, 122446, 96528, 113804, 96520, 113798, 96516, 96514, 80048, 105564, 96688, 80024, 105550, 96664, 113870, 96652, 80006, 96646, 71772, 80092, 71758, 96732, 80078, 96718, 96416, 113752, 122414, 96400, 113740, 96392, 113734, 96388, 96386, 79960, 105518, 96472, 79948, 96460, 79942, 96454, 71726, 79982, 96494, 96336, 113708, 96328, 113702, 96324, 96322, 79916, 96364, 79910, 96358, 96296, 113686, 96292, 96290, 79894, 96310, 66936, 99006, 66876, 66846, 67006, 68976, 100028, 68920, 99998, 68892, 68878, 66748, 69052, 66718, 69022, 73056, 102072, 116574, 73008, 102044, 72984, 102030, 72972, 72966, 68792, 99934, 73144, 68764, 73116, 68750, 73102, 66654, 68830, 73182, 81216, 106160, 118620, 81184, 106136, 118606, 81168, 106124, 81160, 106118, 81156, 81154, 72880, 101980, 81328, 72856, 101966, 81304, 106190, 81292, 72838, 81286, 68700, 72924, 68686, 81372, 72910, 81358, 114336, 122712, 126894, 114320, 122700, 114312, 122694, 114308, 114306, 81056, 106072, 118574, 97696, 81040, 106060, 97680, 114380, 106054, 97672, 81028, 97668, 81026, 97666, 72792, 101934, 81112, 72780, 97752, 81100, 72774, 97740, 81094, 97734, 68654, 72814, 81134, 97774, 114256, 122668, 114248, 122662, 114244, 114242, 80976, 106028, 97488, 80968, 106022, 97480, 114278, 97476, 80962, 97474, 72748, 81004, 72742, 97516, 80998, 97510, 114216, 122646, 114212, 114210, 80936, 106006, 97384, 80932, 97380, 80930, 97378, 72726, 80950, 97398, 114196, 114194, 80916, 97332, 80914, 97330, 66236, 66206, 67256, 99166, 67228, 67214, 66142, 67294, 69296, 100188, 69272, 100174, 69260, 69254, 67164, 69340, 67150, 69326, 73376, 102232, 116654, 73360, 102220, 73352, 102214, 73348, 73346, 69208, 100142, 73432, 102254, 73420, 69190, 73414, 67118, 69230, 73454, 106320, 118700, 106312, 118694, 106308, 106306, 73296, 102188, 81616, 106348, 102182, 81608, 73284, 81604, 73282, 81602, 69164, 73324, 69158, 81644, 73318, 81638, 122792, 126934, 122788, 122786, 106280, 118678, 114536, 106276, 114532, 106274, 114530, 73256, 102166, 81512, 73252, 98024, 81508, 73250, 98020, 81506, 98018, 69142, 73270, 81526, 98038, 122772, 122770, 106260, 114484, 106258, 114482, 73236, 81460, 73234, 97908, 81458, 97906, 122762, 106250, 114458, 73226, 81434, 97850, 66396, 66382, 67416, 99246, 67404, 67398, 66350, 67438, 69456, 100268, 69448, 100262, 69444, 69442, 67372, 69484, 67366, 69478, 102312, 116694, 102308, 102306, 69416, 100246, 73576, 102326, 73572, 69410, 73570, 67350, 69430, 73590, 118740, 118738, 102292, 106420, 102290, 106418, 69396, 73524, 69394, 81780, 73522, 81778, 118730, 102282, 106394, 69386, 73498, 81722, 66476, 66470, 67496, 99286, 67492, 67490, 66454, 67510, 100308, 100306, 67476, 69556, 67474, 69554, 116714])]); //#16975 + $1.raps = $a([$a([802, 930, 946, 818, 882, 890, 826, 954, 922, 986, 970, 906, 778, 794, 786, 914, 978, 982, 980, 916, 948, 932, 934, 942, 940, 936, 808, 812, 814, 806, 822, 950, 918, 790, 788, 820, 884, 868, 870, 878, 876, 872, 840, 856, 860, 862, 846, 844, 836, 838, 834, 866]), $a([718, 590, 622, 558, 550, 566, 534, 530, 538, 570, 562, 546, 610, 626, 634, 762, 754, 758, 630, 628, 612, 614, 582, 578, 706, 738, 742, 740, 748, 620, 556, 552, 616, 744, 712, 716, 708, 710, 646, 654, 652, 668, 664, 696, 688, 656, 720, 592, 600, 604, 732, 734])]); //#16990 $1.cwtobits = function() { - var _G4 = $get($1.clusters, $k[--$j]); - $1.v = $get(_G4, $k[--$j]); - $k[$j++] = Infinity; - for (var _G7 = 0, _G8 = 17; _G7 < _G8; _G7++) { - $k[$j++] = 0; - } - var _GB = $cvrs($s(17), $1.v, 2); - for (var _GC = 0, _GD = _GB.length; _GC < _GD; _GC++) { - $k[$j++] = $get(_GB, _GC) - 48; - } - var _GF = $a(); - $k[$j++] = $geti(_GF, _GF.length - 17, 17); - }; + var _G4 = $get($1.clusters, $k[--$j]); //#16994 + $1.v = $get(_G4, $k[--$j]); //#16994 + $k[$j++] = Infinity; //#16995 + for (var _G7 = 0, _G8 = 17; _G7 < _G8; _G7++) { //#16995 + $k[$j++] = 0; //#16995 + } //#16995 + var _GB = $cvrs($s(17), $1.v, 2); //#16995 + for (var _GC = 0, _GD = _GB.length; _GC < _GD; _GC++) { //#16995 + $k[$j++] = $get(_GB, _GC) - 48; //#16995 + } //#16995 + var _GF = $a(); //#16995 + $k[$j++] = $geti(_GF, _GF.length - 17, 17); //#16996 + }; //#16997 $1.raptobits = function() { - var _GJ = $get($1.raps, $k[--$j]); - $1.v = $get(_GJ, $k[--$j]); - $k[$j++] = Infinity; - for (var _GM = 0, _GN = 10; _GM < _GN; _GM++) { - $k[$j++] = 0; - } - var _GQ = $cvrs($s(10), $1.v, 2); - for (var _GR = 0, _GS = _GQ.length; _GR < _GS; _GR++) { - $k[$j++] = $get(_GQ, _GR) - 48; - } - var _GU = $a(); - $k[$j++] = $geti(_GU, _GU.length - 10, 10); - }; - $1.rwid = $get($a([ 38, 55, 82, 99 ]), $f($1.c - 1)); - if ($1.c == 3 && $1.cca) { - $1.rwid = 72; - } - $1.pixs = $a($1.rwid * $1.r); - for (var _Gg = 0, _Gf = $f($1.r - 1); _Gg <= _Gf; _Gg += 1) { - $1.i = _Gg; - $1.clst = $f($f($1.i + $1.rapl) - 1) % 3; - $k[$j++] = $1.pixs; - $k[$j++] = $1.rwid * $1.i; - $k[$j++] = Infinity; - if ($1.c == 1) { - $k[$j++] = $f($f($1.i + $1.rapl) - 1) % 52; - $k[$j++] = 0; - $1.raptobits(); - $aload($k[--$j]); - $k[$j++] = $get($1.cws, $1.i); - $k[$j++] = $1.clst; - $1.cwtobits(); - $aload($k[--$j]); - $k[$j++] = $f($f($1.i + $1.rapr) - 1) % 52; - $k[$j++] = 0; - $1.raptobits(); - $aload($k[--$j]); - } - if ($1.c == 2) { - $k[$j++] = $f($f($1.i + $1.rapl) - 1) % 52; - $k[$j++] = 0; - $1.raptobits(); - $aload($k[--$j]); - $k[$j++] = $get($1.cws, $1.i * 2); - $k[$j++] = $1.clst; - $1.cwtobits(); - $aload($k[--$j]); - $k[$j++] = $get($1.cws, $1.i * 2 + 1); - $k[$j++] = $1.clst; - $1.cwtobits(); - $aload($k[--$j]); - $k[$j++] = $f($f($1.i + $1.rapr) - 1) % 52; - $k[$j++] = 0; - $1.raptobits(); - $aload($k[--$j]); - } - if ($1.c == 3) { - if (!$1.cca) { - $k[$j++] = $f($f($1.i + $1.rapl) - 1) % 52; - $k[$j++] = 0; - $1.raptobits(); - $aload($k[--$j]); - } - $k[$j++] = $get($1.cws, $1.i * 3); - $k[$j++] = $1.clst; - $1.cwtobits(); - $aload($k[--$j]); - $k[$j++] = $f($f($1.i + $1.rapc) - 1) % 52; - $k[$j++] = 1; - $1.raptobits(); - $aload($k[--$j]); - $k[$j++] = $get($1.cws, $1.i * 3 + 1); - $k[$j++] = $1.clst; - $1.cwtobits(); - $aload($k[--$j]); - $k[$j++] = $get($1.cws, $1.i * 3 + 2); - $k[$j++] = $1.clst; - $1.cwtobits(); - $aload($k[--$j]); - $k[$j++] = $f($f($1.i + $1.rapr) - 1) % 52; - $k[$j++] = 0; - $1.raptobits(); - $aload($k[--$j]); - } - if ($1.c == 4) { - $k[$j++] = $f($f($1.i + $1.rapl) - 1) % 52; - $k[$j++] = 0; - $1.raptobits(); - $aload($k[--$j]); - $k[$j++] = $get($1.cws, $1.i * 4); - $k[$j++] = $1.clst; - $1.cwtobits(); - $aload($k[--$j]); - $k[$j++] = $get($1.cws, $1.i * 4 + 1); - $k[$j++] = $1.clst; - $1.cwtobits(); - $aload($k[--$j]); - $k[$j++] = $f($f($1.i + $1.rapc) - 1) % 52; - $k[$j++] = 1; - $1.raptobits(); - $aload($k[--$j]); - $k[$j++] = $get($1.cws, $1.i * 4 + 2); - $k[$j++] = $1.clst; - $1.cwtobits(); - $aload($k[--$j]); - $k[$j++] = $get($1.cws, $1.i * 4 + 3); - $k[$j++] = $1.clst; - $1.cwtobits(); - $aload($k[--$j]); - $k[$j++] = $f($f($1.i + $1.rapr) - 1) % 52; - $k[$j++] = 0; - $1.raptobits(); - $aload($k[--$j]); - } - $k[$j++] = 1; - var _I9 = $a(); - var _IA = $k[--$j]; - $puti($k[--$j], _IA, _I9); - } - var _IJ = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", $1.rwid ], [ "pixy", $1.r ], [ "height", $1.r / 72 * $1.rowmult ], [ "width", $1.rwid / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _IJ; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var _GJ = $get($1.raps, $k[--$j]); //#17001 + $1.v = $get(_GJ, $k[--$j]); //#17001 + $k[$j++] = Infinity; //#17002 + for (var _GM = 0, _GN = 10; _GM < _GN; _GM++) { //#17002 + $k[$j++] = 0; //#17002 + } //#17002 + var _GQ = $cvrs($s(10), $1.v, 2); //#17002 + for (var _GR = 0, _GS = _GQ.length; _GR < _GS; _GR++) { //#17002 + $k[$j++] = $get(_GQ, _GR) - 48; //#17002 + } //#17002 + var _GU = $a(); //#17002 + $k[$j++] = $geti(_GU, _GU.length - 10, 10); //#17003 + }; //#17004 + $1.rwid = $get($a([38, 55, 82, 99]), $f($1.c - 1)); //#17007 + if (($1.c == 3) && $1.cca) { //#17008 + $1.rwid = 72; //#17008 + } //#17008 + $1.pixs = $a($1.rwid * $1.r); //#17009 + for (var _Gg = 0, _Gf = $f($1.r - 1); _Gg <= _Gf; _Gg += 1) { //#17047 + $1.i = _Gg; //#17012 + $1.clst = ($f($f($1.i + $1.rapl) - 1)) % 3; //#17013 + $k[$j++] = $1.pixs; //#17045 + $k[$j++] = $1.rwid * $1.i; //#17045 + $k[$j++] = Infinity; //#17045 + if ($1.c == 1) { //#17019 + $k[$j++] = ($f($f($1.i + $1.rapl) - 1)) % 52; //#17016 + $k[$j++] = 0; //#17016 + $1.raptobits(); //#17016 + $aload($k[--$j]); //#17016 + $k[$j++] = $get($1.cws, $1.i); //#17017 + $k[$j++] = $1.clst; //#17017 + $1.cwtobits(); //#17017 + $aload($k[--$j]); //#17017 + $k[$j++] = ($f($f($1.i + $1.rapr) - 1)) % 52; //#17018 + $k[$j++] = 0; //#17018 + $1.raptobits(); //#17018 + $aload($k[--$j]); //#17018 + } //#17018 + if ($1.c == 2) { //#17025 + $k[$j++] = ($f($f($1.i + $1.rapl) - 1)) % 52; //#17021 + $k[$j++] = 0; //#17021 + $1.raptobits(); //#17021 + $aload($k[--$j]); //#17021 + $k[$j++] = $get($1.cws, $1.i * 2); //#17022 + $k[$j++] = $1.clst; //#17022 + $1.cwtobits(); //#17022 + $aload($k[--$j]); //#17022 + $k[$j++] = $get($1.cws, ($1.i * 2) + 1); //#17023 + $k[$j++] = $1.clst; //#17023 + $1.cwtobits(); //#17023 + $aload($k[--$j]); //#17023 + $k[$j++] = ($f($f($1.i + $1.rapr) - 1)) % 52; //#17024 + $k[$j++] = 0; //#17024 + $1.raptobits(); //#17024 + $aload($k[--$j]); //#17024 + } //#17024 + if ($1.c == 3) { //#17035 + if (!$1.cca) { //#17029 + $k[$j++] = ($f($f($1.i + $1.rapl) - 1)) % 52; //#17028 + $k[$j++] = 0; //#17028 + $1.raptobits(); //#17028 + $aload($k[--$j]); //#17028 + } //#17028 + $k[$j++] = $get($1.cws, $1.i * 3); //#17030 + $k[$j++] = $1.clst; //#17030 + $1.cwtobits(); //#17030 + $aload($k[--$j]); //#17030 + $k[$j++] = ($f($f($1.i + $1.rapc) - 1)) % 52; //#17031 + $k[$j++] = 1; //#17031 + $1.raptobits(); //#17031 + $aload($k[--$j]); //#17031 + $k[$j++] = $get($1.cws, ($1.i * 3) + 1); //#17032 + $k[$j++] = $1.clst; //#17032 + $1.cwtobits(); //#17032 + $aload($k[--$j]); //#17032 + $k[$j++] = $get($1.cws, ($1.i * 3) + 2); //#17033 + $k[$j++] = $1.clst; //#17033 + $1.cwtobits(); //#17033 + $aload($k[--$j]); //#17033 + $k[$j++] = ($f($f($1.i + $1.rapr) - 1)) % 52; //#17034 + $k[$j++] = 0; //#17034 + $1.raptobits(); //#17034 + $aload($k[--$j]); //#17034 + } //#17034 + if ($1.c == 4) { //#17044 + $k[$j++] = ($f($f($1.i + $1.rapl) - 1)) % 52; //#17037 + $k[$j++] = 0; //#17037 + $1.raptobits(); //#17037 + $aload($k[--$j]); //#17037 + $k[$j++] = $get($1.cws, $1.i * 4); //#17038 + $k[$j++] = $1.clst; //#17038 + $1.cwtobits(); //#17038 + $aload($k[--$j]); //#17038 + $k[$j++] = $get($1.cws, ($1.i * 4) + 1); //#17039 + $k[$j++] = $1.clst; //#17039 + $1.cwtobits(); //#17039 + $aload($k[--$j]); //#17039 + $k[$j++] = ($f($f($1.i + $1.rapc) - 1)) % 52; //#17040 + $k[$j++] = 1; //#17040 + $1.raptobits(); //#17040 + $aload($k[--$j]); //#17040 + $k[$j++] = $get($1.cws, ($1.i * 4) + 2); //#17041 + $k[$j++] = $1.clst; //#17041 + $1.cwtobits(); //#17041 + $aload($k[--$j]); //#17041 + $k[$j++] = $get($1.cws, ($1.i * 4) + 3); //#17042 + $k[$j++] = $1.clst; //#17042 + $1.cwtobits(); //#17042 + $aload($k[--$j]); //#17042 + $k[$j++] = ($f($f($1.i + $1.rapr) - 1)) % 52; //#17043 + $k[$j++] = 0; //#17043 + $1.raptobits(); //#17043 + $aload($k[--$j]); //#17043 + } //#17043 + $k[$j++] = 1; //#17045 + var _I9 = $a(); //#17045 + var _IA = $k[--$j]; //#17046 + $puti($k[--$j], _IA, _I9); //#17046 + } //#17046 + var _IJ = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", $1.rwid], + ["pixy", $1.r], + ["height", ($1.r / 72) * $1.rowmult], + ["width", $1.rwid / 72], + ["opt", $1.options] + ]); //#17057 + $k[$j++] = _IJ; //#17060 + if (!$1.dontdraw) { //#17060 + $0.renmatrix(); //#17060 + } //#17060 }; $0.datamatrix = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.columns = 0; - $1.rows = 0; - $1.format = "square"; - $1.version = "unset"; - $1.parse = false; - $1.parsefnc = false; - $1.encoding = "auto"; - $1.mailmark = false; - $1.raw = false; - $1.dmre = false; - $1.dindmre = false; - $1.isodmre = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - if ($ne($1.version, "unset")) { - $search($1.version, "x"); - $j--; - $1.rows = $k[--$j]; - $j--; - $1.columns = $k[--$j]; - } - $1.columns = ~~$z($1.columns); - $1.rows = ~~$z($1.rows); - $1.isodmre = $1.dmre; - $k[$j++] = Infinity; - $k[$j++] = $a([ 10, 10, 1, 1, 5, 1 ]); - $k[$j++] = $a([ 12, 12, 1, 1, 7, 1 ]); - $k[$j++] = $a([ 14, 14, 1, 1, 10, 1 ]); - $k[$j++] = $a([ 16, 16, 1, 1, 12, 1 ]); - $k[$j++] = $a([ 18, 18, 1, 1, 14, 1 ]); - $k[$j++] = $a([ 20, 20, 1, 1, 18, 1 ]); - $k[$j++] = $a([ 22, 22, 1, 1, 20, 1 ]); - $k[$j++] = $a([ 24, 24, 1, 1, 24, 1 ]); - $k[$j++] = $a([ 26, 26, 1, 1, 28, 1 ]); - $k[$j++] = $a([ 32, 32, 2, 2, 36, 1 ]); - $k[$j++] = $a([ 36, 36, 2, 2, 42, 1 ]); - $k[$j++] = $a([ 40, 40, 2, 2, 48, 1 ]); - $k[$j++] = $a([ 44, 44, 2, 2, 56, 1 ]); - $k[$j++] = $a([ 48, 48, 2, 2, 68, 1 ]); - $k[$j++] = $a([ 52, 52, 2, 2, 84, 2 ]); - $k[$j++] = $a([ 64, 64, 4, 4, 112, 2 ]); - $k[$j++] = $a([ 72, 72, 4, 4, 144, 4 ]); - $k[$j++] = $a([ 80, 80, 4, 4, 192, 4 ]); - $k[$j++] = $a([ 88, 88, 4, 4, 224, 4 ]); - $k[$j++] = $a([ 96, 96, 4, 4, 272, 4 ]); - $k[$j++] = $a([ 104, 104, 4, 4, 336, 6 ]); - $k[$j++] = $a([ 120, 120, 6, 6, 408, 6 ]); - $k[$j++] = $a([ 132, 132, 6, 6, 496, 8 ]); - $k[$j++] = $a([ 144, 144, 6, 6, 620, 10 ]); - $k[$j++] = $a([ 8, 18, 1, 1, 7, 1 ]); - $k[$j++] = $a([ 8, 32, 1, 2, 11, 1 ]); - if ($1.dindmre || $1.isodmre) { - $k[$j++] = $a([ 8, 48, 1, 2, 15, 1 ]); - } - if ($1.dindmre || $1.isodmre) { - $k[$j++] = $a([ 8, 64, 1, 4, 18, 1 ]); - } - if ($1.isodmre) { - $k[$j++] = $a([ 8, 80, 1, 4, 22, 1 ]); - } - if ($1.isodmre) { - $k[$j++] = $a([ 8, 96, 1, 4, 28, 1 ]); - } - if ($1.isodmre) { - $k[$j++] = $a([ 8, 120, 1, 6, 32, 1 ]); - } - if ($1.isodmre) { - $k[$j++] = $a([ 8, 144, 1, 6, 36, 1 ]); - } - $k[$j++] = $a([ 12, 26, 1, 1, 14, 1 ]); - $k[$j++] = $a([ 12, 36, 1, 2, 18, 1 ]); - if ($1.dindmre || $1.isodmre) { - $k[$j++] = $a([ 12, 64, 1, 4, 27, 1 ]); - } - if ($1.isodmre) { - $k[$j++] = $a([ 12, 88, 1, 4, 36, 1 ]); - } - $k[$j++] = $a([ 16, 36, 1, 2, 24, 1 ]); - $k[$j++] = $a([ 16, 48, 1, 2, 28, 1 ]); - if ($1.dindmre || $1.isodmre) { - $k[$j++] = $a([ 16, 64, 1, 4, 36, 1 ]); - } - if ($1.isodmre) { - $k[$j++] = $a([ 20, 36, 1, 2, 28, 1 ]); - } - if ($1.isodmre) { - $k[$j++] = $a([ 20, 44, 1, 2, 34, 1 ]); - } - if ($1.isodmre) { - $k[$j++] = $a([ 20, 64, 1, 4, 42, 1 ]); - } - if ($1.isodmre) { - $k[$j++] = $a([ 22, 48, 1, 2, 38, 1 ]); - } - if ($1.dindmre) { - $k[$j++] = $a([ 24, 32, 1, 2, 28, 1 ]); - } - if ($1.dindmre) { - $k[$j++] = $a([ 24, 36, 1, 2, 33, 1 ]); - } - if ($1.dindmre || $1.isodmre) { - $k[$j++] = $a([ 24, 48, 1, 2, 41, 1 ]); - } - if ($1.dindmre || $1.isodmre) { - $k[$j++] = $a([ 24, 64, 1, 4, 46, 1 ]); - } - if ($1.dindmre) { - $k[$j++] = $a([ 26, 32, 1, 2, 32, 1 ]); - } - if ($1.dindmre || $1.isodmre) { - $k[$j++] = $a([ 26, 40, 1, 2, 38, 1 ]); - } - if ($1.dindmre || $1.isodmre) { - $k[$j++] = $a([ 26, 48, 1, 2, 42, 1 ]); - } - if ($1.dindmre || $1.isodmre) { - $k[$j++] = $a([ 26, 64, 1, 4, 50, 1 ]); - } - $1.metrics = $a(); - $1.urows = $1.rows; - $1.ucols = $1.columns; - $1.fullcws = $a([]); - var _1Z = $1.metrics; - for (var _1a = 0, _1b = _1Z.length; _1a < _1b; _1a++) { - $1.m = $get(_1Z, _1a); - $1.rows = $get($1.m, 0); - $1.cols = $get($1.m, 1); - $1.regh = $get($1.m, 2); - $1.regv = $get($1.m, 3); - $1.rscw = $get($1.m, 4); - $1.rsbl = $get($1.m, 5); - $1.mrows = $f($1.rows - 2 * $1.regh); - $1.mcols = $f($1.cols - 2 * $1.regv); - $1.ncws = $f(~~($1.mrows * $1.mcols / 8) - $1.rscw); - $1.okay = true; - if ($1.urows != 0 && $1.urows != $1.rows) { - $1.okay = false; - } - if ($1.ucols != 0 && $1.ucols != $1.cols) { - $1.okay = false; - } - if ($eq($1.format, "square") && $ne($1.rows, $1.cols)) { - $1.okay = false; - } - if ($eq($1.format, "rectangle") && $eq($1.rows, $1.cols)) { - $1.okay = false; - } - if ($1.okay) { - $k[$j++] = Infinity; - $aload($1.fullcws); - $k[$j++] = $1.ncws; - $1.fullcws = $a(); - } - } - $k[$j++] = Infinity; - for (var _2C = 0, _2D = 1558; _2C < _2D; _2C++) { - $k[$j++] = 1e4; - } - $1.numremcws = $a(); - var _2F = $1.fullcws; - for (var _2G = 0, _2H = _2F.length; _2G < _2H; _2G++) { - $put($1.numremcws, $f($get(_2F, _2G) - 1), 1); - } - for (var _2K = 1556; _2K >= 0; _2K -= 1) { - $1.i = _2K; - if ($get($1.numremcws, $1.i) != 1) { - $put($1.numremcws, $1.i, $f($get($1.numremcws, $1.i + 1) + 1)); - } - } - if ($1.raw) { - $1.encoding = "raw"; - } - if ($eq($1.encoding, "raw")) { - $1.cws = $a($1.barcode.length); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.barcode.length) { - break; - } - $1.cw = ~~$z($geti($1.barcode, $1.i + 1, 3)); - $put($1.cws, $1.j, $1.cw); - $1.i = $1.i + 4; - $1.j = $1.j + 1; - } - $1.cws = $geti($1.cws, 0, $1.j); - } - if ($eq($1.encoding, "auto")) { - $1.fnc1 = -1; - $1.prog = -2; - $1.m05 = -3; - $1.m06 = -4; - $1.lC = -5; - $1.lB = -6; - $1.lX = -7; - $1.lT = -8; - $1.lE = -9; - $1.unl = -10; - $1.sapp = -11; - $1.usft = -12; - $1.sft1 = -13; - $1.sft2 = -14; - $1.sft3 = -15; - $1.eci = -16; - $1.pad = -17; - $1.unlcw = 254; - var _2p = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "eci", true ], [ "FNC1", $1.fnc1 ], [ "PROG", $1.prog ] ]); - $1.fncvals = _2p; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _2s = $k[--$j]; - $1[$k[--$j]] = _2s; - $1.msglen = $1.msg.length; - if ($1.msglen >= 9) { - $aload($geti($1.msg, 0, 7)); - var _2y = $k[--$j]; - var _2z = $k[--$j]; - $k[$j++] = _2y == 29; - $k[$j++] = _2z; - $j--; - var _30 = $k[--$j]; - var _31 = $k[--$j]; - var _32 = $k[--$j]; - var _33 = $k[--$j]; - var _34 = $k[--$j]; - var _35 = $k[--$j]; - if (_30 && _31 == 48 && _32 == 30 && _33 == 62 && _34 == 41 && _35 == 91) { - $aload($geti($1.msg, $1.msglen - 2, 2)); - var _39 = $k[--$j]; - var _3A = $k[--$j]; - if (_39 == 4 && _3A == 30) { - if ($get($1.msg, 5) == 53) { - $k[$j++] = Infinity; - $k[$j++] = $1.m05; - $aload($geti($1.msg, 7, $1.msg.length - 9)); - $1.msg = $a(); - } - if ($get($1.msg, 5) == 54) { - $k[$j++] = Infinity; - $k[$j++] = $1.m06; - $aload($geti($1.msg, 7, $1.msg.length - 9)); - $1.msg = $a(); - } - } - } - } - $1.msglen = $1.msg.length; - $k[$j++] = Infinity; - for (var _3Q = 0; _3Q <= 128; _3Q += 1) { - $k[$j++] = _3Q; - $k[$j++] = _3Q + 1; - } - $k[$j++] = $1.pad; - $k[$j++] = 129; - for (var _3S = 0; _3S <= 99; _3S += 1) { - var _3U = $cvrs($s(2), _3S, 10); - var _3W = $strcpy($s(2), "00"); - $puti(_3W, 2 - _3U.length, _3U); - $k[$j++] = _3W; - $k[$j++] = _3S + 130; - } - var _3j = $a([ $1.lC, $1.lB, $1.fnc1, $1.sapp, $1.prog, $1.usft, $1.m05, $1.m06, $1.lX, $1.lT, $1.lE, $1.eci ]); - $k[$j++] = 229; - for (var _3k = 0, _3l = _3j.length; _3k < _3l; _3k++) { - var _3o = $f($k[--$j] + 1); - $k[$j++] = $get(_3j, _3k); - $k[$j++] = _3o; - $k[$j++] = _3o; - } - $j--; - $1.Avals = $d(); - $k[$j++] = Infinity; - var _3q = $1.Avals; - for (var _3v = _3q.size, _3u = _3q.keys(), _3t = 0; _3t < _3v; _3t++) { - var _3r = _3u.next().value; - $k[$j++] = _3r; - $k[$j++] = Infinity; - $k[$j++] = _3q.get(_3r); - var _3y = $a(); - $k[$j++] = _3y; - } - $1.Avals = $d(); - $k[$j++] = Infinity; - $k[$j++] = $1.sft1; - $k[$j++] = 0; - $k[$j++] = $1.sft2; - $k[$j++] = 1; - $k[$j++] = $1.sft3; - $k[$j++] = 2; - $k[$j++] = 32; - $k[$j++] = 3; - for (var _43 = 48; _43 <= 57; _43 += 1) { - $k[$j++] = _43; - $k[$j++] = _43 - 44; - } - for (var _44 = 65; _44 <= 90; _44 += 1) { - $k[$j++] = _44; - $k[$j++] = _44 - 51; - } - $1.CNvals = $d(); - $k[$j++] = Infinity; - for (var _46 = 0; _46 <= 31; _46 += 1) { - $k[$j++] = _46; - $k[$j++] = _46; - } - $1.C1vals = $d(); - $k[$j++] = Infinity; - for (var _48 = 33; _48 <= 47; _48 += 1) { - $k[$j++] = _48; - $k[$j++] = _48 - 33; - } - for (var _49 = 58; _49 <= 64; _49 += 1) { - $k[$j++] = _49; - $k[$j++] = _49 - 43; - } - for (var _4A = 91; _4A <= 95; _4A += 1) { - $k[$j++] = _4A; - $k[$j++] = _4A - 69; - } - $k[$j++] = $1.fnc1; - $k[$j++] = 27; - $k[$j++] = $1.usft; - $k[$j++] = 30; - $1.C2vals = $d(); - $k[$j++] = Infinity; - for (var _4E = 96; _4E <= 127; _4E += 1) { - $k[$j++] = _4E; - $k[$j++] = _4E - 96; - } - $1.C3vals = $d(); - $k[$j++] = Infinity; - var _4G = $1.CNvals; - for (var _4L = _4G.size, _4K = _4G.keys(), _4J = 0; _4J < _4L; _4J++) { - var _4H = _4K.next().value; - $k[$j++] = _4H; - $k[$j++] = Infinity; - $k[$j++] = _4G.get(_4H); - var _4O = $a(); - $k[$j++] = _4O; - } - var _4P = $1.C1vals; - for (var _4U = _4P.size, _4T = _4P.keys(), _4S = 0; _4S < _4U; _4S++) { - var _4Q = _4T.next().value; - $k[$j++] = _4Q; - $k[$j++] = Infinity; - $k[$j++] = $get($1.CNvals, $1.sft1); - $k[$j++] = _4P.get(_4Q); - var _4a = $a(); - $k[$j++] = _4a; - } - var _4b = $1.C2vals; - for (var _4g = _4b.size, _4f = _4b.keys(), _4e = 0; _4e < _4g; _4e++) { - var _4c = _4f.next().value; - $k[$j++] = _4c; - $k[$j++] = Infinity; - $k[$j++] = $get($1.CNvals, $1.sft2); - $k[$j++] = _4b.get(_4c); - var _4m = $a(); - $k[$j++] = _4m; - } - var _4n = $1.C3vals; - for (var _4s = _4n.size, _4r = _4n.keys(), _4q = 0; _4q < _4s; _4q++) { - var _4o = _4r.next().value; - $k[$j++] = _4o; - $k[$j++] = Infinity; - $k[$j++] = $get($1.CNvals, $1.sft3); - $k[$j++] = _4n.get(_4o); - var _4y = $a(); - $k[$j++] = _4y; - } - $1.Cvals = $d(); - $k[$j++] = Infinity; - $k[$j++] = $1.sft1; - $k[$j++] = 0; - $k[$j++] = $1.sft2; - $k[$j++] = 1; - $k[$j++] = $1.sft3; - $k[$j++] = 2; - $k[$j++] = 32; - $k[$j++] = 3; - for (var _53 = 48; _53 <= 57; _53 += 1) { - $k[$j++] = _53; - $k[$j++] = _53 - 44; - } - for (var _54 = 97; _54 <= 122; _54 += 1) { - $k[$j++] = _54; - $k[$j++] = _54 - 83; - } - $1.TNvals = $d(); - $k[$j++] = Infinity; - for (var _56 = 0; _56 <= 31; _56 += 1) { - $k[$j++] = _56; - $k[$j++] = _56; - } - $1.T1vals = $d(); - $k[$j++] = Infinity; - for (var _58 = 33; _58 <= 47; _58 += 1) { - $k[$j++] = _58; - $k[$j++] = _58 - 33; - } - for (var _59 = 58; _59 <= 64; _59 += 1) { - $k[$j++] = _59; - $k[$j++] = _59 - 43; - } - for (var _5A = 91; _5A <= 95; _5A += 1) { - $k[$j++] = _5A; - $k[$j++] = _5A - 69; - } - $k[$j++] = $1.fnc1; - $k[$j++] = 27; - $k[$j++] = $1.usft; - $k[$j++] = 30; - $1.T2vals = $d(); - $k[$j++] = Infinity; - $k[$j++] = 96; - $k[$j++] = 0; - for (var _5E = 65; _5E <= 90; _5E += 1) { - $k[$j++] = _5E; - $k[$j++] = _5E - 64; - } - for (var _5F = 123; _5F <= 127; _5F += 1) { - $k[$j++] = _5F; - $k[$j++] = _5F - 96; - } - $1.T3vals = $d(); - $k[$j++] = Infinity; - var _5H = $1.TNvals; - for (var _5M = _5H.size, _5L = _5H.keys(), _5K = 0; _5K < _5M; _5K++) { - var _5I = _5L.next().value; - $k[$j++] = _5I; - $k[$j++] = Infinity; - $k[$j++] = _5H.get(_5I); - var _5P = $a(); - $k[$j++] = _5P; - } - var _5Q = $1.T1vals; - for (var _5V = _5Q.size, _5U = _5Q.keys(), _5T = 0; _5T < _5V; _5T++) { - var _5R = _5U.next().value; - $k[$j++] = _5R; - $k[$j++] = Infinity; - $k[$j++] = $get($1.TNvals, $1.sft1); - $k[$j++] = _5Q.get(_5R); - var _5b = $a(); - $k[$j++] = _5b; - } - var _5c = $1.T2vals; - for (var _5h = _5c.size, _5g = _5c.keys(), _5f = 0; _5f < _5h; _5f++) { - var _5d = _5g.next().value; - $k[$j++] = _5d; - $k[$j++] = Infinity; - $k[$j++] = $get($1.TNvals, $1.sft2); - $k[$j++] = _5c.get(_5d); - var _5n = $a(); - $k[$j++] = _5n; - } - var _5o = $1.T3vals; - for (var _5t = _5o.size, _5s = _5o.keys(), _5r = 0; _5r < _5t; _5r++) { - var _5p = _5s.next().value; - $k[$j++] = _5p; - $k[$j++] = Infinity; - $k[$j++] = $get($1.TNvals, $1.sft3); - $k[$j++] = _5o.get(_5p); - var _5z = $a(); - $k[$j++] = _5z; - } - $1.Tvals = $d(); - for (var _61 = 128; _61 <= 255; _61 += 1) { - $1.i = _61; - $k[$j++] = $1.Avals; - $k[$j++] = $1.i; - $k[$j++] = Infinity; - $aload($get($1.Avals, $1.usft)); - $aload($get($1.Avals, $1.i - 128)); - var _6A = $a(); - var _6B = $k[--$j]; - $put($k[--$j], _6B, _6A); - $k[$j++] = $1.Cvals; - $k[$j++] = $1.i; - $k[$j++] = Infinity; - $aload($get($1.Cvals, $1.usft)); - $aload($get($1.Cvals, $1.i - 128)); - var _6L = $a(); - var _6M = $k[--$j]; - $put($k[--$j], _6M, _6L); - $k[$j++] = $1.Tvals; - $k[$j++] = $1.i; - $k[$j++] = Infinity; - $aload($get($1.Tvals, $1.usft)); - $aload($get($1.Tvals, $1.i - 128)); - var _6W = $a(); - var _6X = $k[--$j]; - $put($k[--$j], _6X, _6W); - } - $k[$j++] = Infinity; - $k[$j++] = 13; - $k[$j++] = 0; - $k[$j++] = 42; - $k[$j++] = 1; - $k[$j++] = 62; - $k[$j++] = 2; - $k[$j++] = 32; - $k[$j++] = 3; - for (var _6Z = 48; _6Z <= 57; _6Z += 1) { - $k[$j++] = _6Z; - $k[$j++] = _6Z - 44; - } - for (var _6a = 65; _6a <= 90; _6a += 1) { - $k[$j++] = _6a; - $k[$j++] = _6a - 51; - } - $1.Xvals = $d(); - $k[$j++] = Infinity; - var _6c = $1.Xvals; - for (var _6h = _6c.size, _6g = _6c.keys(), _6f = 0; _6f < _6h; _6f++) { - var _6d = _6g.next().value; - $k[$j++] = _6d; - $k[$j++] = Infinity; - $k[$j++] = _6c.get(_6d); - var _6k = $a(); - $k[$j++] = _6k; - } - $1.Xvals = $d(); - $k[$j++] = Infinity; - for (var _6m = 64; _6m <= 94; _6m += 1) { - $k[$j++] = _6m; - $k[$j++] = _6m - 64; - } - $k[$j++] = $1.unl; - $k[$j++] = 31; - for (var _6o = 32; _6o <= 63; _6o += 1) { - $k[$j++] = _6o; - $k[$j++] = _6o; - } - $1.Evals = $d(); - $k[$j++] = Infinity; - var _6q = $1.Evals; - for (var _6v = _6q.size, _6u = _6q.keys(), _6t = 0; _6t < _6v; _6t++) { - var _6r = _6u.next().value; - $k[$j++] = _6r; - $k[$j++] = Infinity; - $k[$j++] = _6q.get(_6r); - var _6y = $a(); - $k[$j++] = _6y; - } - $1.Evals = $d(); - $k[$j++] = Infinity; - for (var _70 = 0; _70 <= 255; _70 += 1) { - $k[$j++] = _70; - $k[$j++] = _70; - } - $1.Bvals = $d(); - $k[$j++] = Infinity; - var _72 = $1.Bvals; - for (var _77 = _72.size, _76 = _72.keys(), _75 = 0; _75 < _77; _75++) { - var _73 = _76.next().value; - $k[$j++] = _73; - $k[$j++] = Infinity; - $k[$j++] = _72.get(_73); - var _7A = $a(); - $k[$j++] = _7A; - } - $1.Bvals = $d(); - $1.encvals = $a([ $1.Avals, $1.Cvals, $1.Tvals, $1.Xvals, $1.Evals, $1.Bvals ]); - $k[$j++] = Infinity; - for (var _7K = 0, _7L = $1.msglen; _7K < _7L; _7K++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numD = $a(); - $k[$j++] = Infinity; - for (var _7O = 0, _7P = $1.msglen; _7O < _7P; _7O++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextXterm = $a(); - $k[$j++] = Infinity; - for (var _7S = 0, _7T = $1.msglen; _7S < _7T; _7S++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextNonX = $a(); - $k[$j++] = Infinity; - for (var _7W = 0, _7X = $1.msglen; _7W < _7X; _7W++) { - $k[$j++] = false; - } - $k[$j++] = false; - $1.isECI = $a(); - for (var _7a = $1.msglen - 1; _7a >= 0; _7a -= 1) { - $1.i = _7a; - $1.barchar = $get($1.msg, $1.i); - if ($1.barchar >= 48 && $1.barchar <= 57) { - $put($1.numD, $1.i, $f($get($1.numD, $1.i + 1) + 1)); - } - if ($1.barchar == 13 || $1.barchar == 42 || $1.barchar == 62) { - $put($1.nextXterm, $1.i, 0); - } else { - $put($1.nextXterm, $1.i, $f($get($1.nextXterm, $1.i + 1) + 1)); - } - var _7x = $get($1.Xvals, $1.barchar) !== undefined; - if (!_7x) { - $put($1.nextNonX, $1.i, 0); - } else { - $put($1.nextNonX, $1.i, $f($get($1.nextNonX, $1.i + 1) + 1)); - } - $put($1.isECI, $1.i, $1.barchar <= -1e6); - } - $k[$j++] = Infinity; - var _88 = $1.nextXterm; - for (var _89 = 0, _8A = _88.length; _89 < _8A; _89++) { - var _8B = $get(_88, _89); - $k[$j++] = _8B; - if (_8B > 1e4) { - $j--; - $k[$j++] = 1e4; - } - } - $1.nextXterm = $a(); - $k[$j++] = Infinity; - var _8D = $1.nextNonX; - for (var _8E = 0, _8F = _8D.length; _8E < _8F; _8E++) { - var _8G = $get(_8D, _8E); - $k[$j++] = _8G; - if (_8G > 1e4) { - $j--; - $k[$j++] = 1e4; - } - } - $1.nextNonX = $a(); + var $1 = {}; //#17090 + $1.options = $k[--$j]; //#17092 + $1.barcode = $k[--$j]; //#17093 + $1.dontdraw = false; //#17095 + $1.columns = 0; //#17096 + $1.rows = 0; //#17097 + $1.format = "square"; //#17098 + $1.version = "unset"; //#17099 + $1.parse = false; //#17100 + $1.parsefnc = false; //#17101 + $1.encoding = "auto"; //#17102 + $1.mailmark = false; //#17103 + $1.raw = false; //#17104 + $1.dmre = false; //#17105 + $1.dindmre = false; //#17106 + $1.isodmre = false; //#17107 + $forall($1.options, function() { //#17118 + var _3 = $k[--$j]; //#17118 + $1[$k[--$j]] = _3; //#17118 + }); //#17118 + if ($ne($1.version, "unset")) { //#17124 + $search($1.version, "x"); //#17121 + $j--; //#17122 + $1.rows = $k[--$j]; //#17122 + $j--; //#17123 + $1.columns = $k[--$j]; //#17123 + } //#17123 + $1.columns = ~~$z($1.columns); //#17126 + $1.rows = ~~$z($1.rows); //#17127 + $1.isodmre = $1.dmre; //#17129 + $k[$j++] = Infinity; //#17186 + $k[$j++] = $a([10, 10, 1, 1, 5, 1]); //#17162 + $k[$j++] = $a([12, 12, 1, 1, 7, 1]); //#17162 + $k[$j++] = $a([14, 14, 1, 1, 10, 1]); //#17162 + $k[$j++] = $a([16, 16, 1, 1, 12, 1]); //#17162 + $k[$j++] = $a([18, 18, 1, 1, 14, 1]); //#17162 + $k[$j++] = $a([20, 20, 1, 1, 18, 1]); //#17162 + $k[$j++] = $a([22, 22, 1, 1, 20, 1]); //#17162 + $k[$j++] = $a([24, 24, 1, 1, 24, 1]); //#17162 + $k[$j++] = $a([26, 26, 1, 1, 28, 1]); //#17162 + $k[$j++] = $a([32, 32, 2, 2, 36, 1]); //#17162 + $k[$j++] = $a([36, 36, 2, 2, 42, 1]); //#17162 + $k[$j++] = $a([40, 40, 2, 2, 48, 1]); //#17162 + $k[$j++] = $a([44, 44, 2, 2, 56, 1]); //#17162 + $k[$j++] = $a([48, 48, 2, 2, 68, 1]); //#17162 + $k[$j++] = $a([52, 52, 2, 2, 84, 2]); //#17162 + $k[$j++] = $a([64, 64, 4, 4, 112, 2]); //#17162 + $k[$j++] = $a([72, 72, 4, 4, 144, 4]); //#17162 + $k[$j++] = $a([80, 80, 4, 4, 192, 4]); //#17162 + $k[$j++] = $a([88, 88, 4, 4, 224, 4]); //#17162 + $k[$j++] = $a([96, 96, 4, 4, 272, 4]); //#17162 + $k[$j++] = $a([104, 104, 4, 4, 336, 6]); //#17162 + $k[$j++] = $a([120, 120, 6, 6, 408, 6]); //#17162 + $k[$j++] = $a([132, 132, 6, 6, 496, 8]); //#17162 + $k[$j++] = $a([144, 144, 6, 6, 620, 10]); //#17162 + $k[$j++] = $a([8, 18, 1, 1, 7, 1]); //#17162 + $k[$j++] = $a([8, 32, 1, 2, 11, 1]); //#17162 + if ($1.dindmre || $1.isodmre) { //#17162 + $k[$j++] = $a([8, 48, 1, 2, 15, 1]); //#17162 + } //#17162 + if ($1.dindmre || $1.isodmre) { //#17163 + $k[$j++] = $a([8, 64, 1, 4, 18, 1]); //#17163 + } //#17163 + if ($1.isodmre) { //#17164 + $k[$j++] = $a([8, 80, 1, 4, 22, 1]); //#17164 + } //#17164 + if ($1.isodmre) { //#17165 + $k[$j++] = $a([8, 96, 1, 4, 28, 1]); //#17165 + } //#17165 + if ($1.isodmre) { //#17166 + $k[$j++] = $a([8, 120, 1, 6, 32, 1]); //#17166 + } //#17166 + if ($1.isodmre) { //#17167 + $k[$j++] = $a([8, 144, 1, 6, 36, 1]); //#17167 + } //#17167 + $k[$j++] = $a([12, 26, 1, 1, 14, 1]); //#17170 + $k[$j++] = $a([12, 36, 1, 2, 18, 1]); //#17170 + if ($1.dindmre || $1.isodmre) { //#17170 + $k[$j++] = $a([12, 64, 1, 4, 27, 1]); //#17170 + } //#17170 + if ($1.isodmre) { //#17171 + $k[$j++] = $a([12, 88, 1, 4, 36, 1]); //#17171 + } //#17171 + $k[$j++] = $a([16, 36, 1, 2, 24, 1]); //#17174 + $k[$j++] = $a([16, 48, 1, 2, 28, 1]); //#17174 + if ($1.dindmre || $1.isodmre) { //#17174 + $k[$j++] = $a([16, 64, 1, 4, 36, 1]); //#17174 + } //#17174 + if ($1.isodmre) { //#17175 + $k[$j++] = $a([20, 36, 1, 2, 28, 1]); //#17175 + } //#17175 + if ($1.isodmre) { //#17176 + $k[$j++] = $a([20, 44, 1, 2, 34, 1]); //#17176 + } //#17176 + if ($1.isodmre) { //#17177 + $k[$j++] = $a([20, 64, 1, 4, 42, 1]); //#17177 + } //#17177 + if ($1.isodmre) { //#17178 + $k[$j++] = $a([22, 48, 1, 2, 38, 1]); //#17178 + } //#17178 + if ($1.dindmre) { //#17179 + $k[$j++] = $a([24, 32, 1, 2, 28, 1]); //#17179 + } //#17179 + if ($1.dindmre) { //#17180 + $k[$j++] = $a([24, 36, 1, 2, 33, 1]); //#17180 + } //#17180 + if ($1.dindmre || $1.isodmre) { //#17181 + $k[$j++] = $a([24, 48, 1, 2, 41, 1]); //#17181 + } //#17181 + if ($1.dindmre || $1.isodmre) { //#17182 + $k[$j++] = $a([24, 64, 1, 4, 46, 1]); //#17182 + } //#17182 + if ($1.dindmre) { //#17183 + $k[$j++] = $a([26, 32, 1, 2, 32, 1]); //#17183 + } //#17183 + if ($1.dindmre || $1.isodmre) { //#17184 + $k[$j++] = $a([26, 40, 1, 2, 38, 1]); //#17184 + } //#17184 + if ($1.dindmre || $1.isodmre) { //#17185 + $k[$j++] = $a([26, 48, 1, 2, 42, 1]); //#17185 + } //#17185 + if ($1.dindmre || $1.isodmre) { //#17186 + $k[$j++] = $a([26, 64, 1, 4, 50, 1]); //#17186 + } //#17186 + $1.metrics = $a(); //#17186 + $1.urows = $1.rows; //#17190 + $1.ucols = $1.columns; //#17191 + $1.fullcws = $a([]); //#17192 + var _1Z = $1.metrics; //#17193 + for (var _1a = 0, _1b = _1Z.length; _1a < _1b; _1a++) { //#17210 + $1.m = $get(_1Z, _1a); //#17194 + $1.rows = $get($1.m, 0); //#17195 + $1.cols = $get($1.m, 1); //#17196 + $1.regh = $get($1.m, 2); //#17197 + $1.regv = $get($1.m, 3); //#17198 + $1.rscw = $get($1.m, 4); //#17199 + $1.rsbl = $get($1.m, 5); //#17200 + $1.mrows = $f($1.rows - (2 * $1.regh)); //#17201 + $1.mcols = $f($1.cols - (2 * $1.regv)); //#17202 + $1.ncws = $f((~~(($1.mrows * $1.mcols) / 8)) - $1.rscw); //#17203 + $1.okay = true; //#17204 + if (($1.urows != 0) && ($1.urows != $1.rows)) { //#17205 + $1.okay = false; //#17205 + } //#17205 + if (($1.ucols != 0) && ($1.ucols != $1.cols)) { //#17206 + $1.okay = false; //#17206 + } //#17206 + if ($eq($1.format, "square") && $ne($1.rows, $1.cols)) { //#17207 + $1.okay = false; //#17207 + } //#17207 + if ($eq($1.format, "rectangle") && $eq($1.rows, $1.cols)) { //#17208 + $1.okay = false; //#17208 + } //#17208 + if ($1.okay) { //#17209 + $k[$j++] = Infinity; //#17209 + $aload($1.fullcws); //#17209 + $k[$j++] = $1.ncws; //#17209 + $1.fullcws = $a(); //#17209 + } //#17209 + } //#17209 + $k[$j++] = Infinity; //#17211 + for (var _2C = 0, _2D = 1558; _2C < _2D; _2C++) { //#17211 + $k[$j++] = 10000; //#17211 + } //#17211 + $1.numremcws = $a(); //#17211 + var _2F = $1.fullcws; //#17212 + for (var _2G = 0, _2H = _2F.length; _2G < _2H; _2G++) { //#17212 + $put($1.numremcws, $f($get(_2F, _2G) - 1), 1); //#17212 + } //#17212 + for (var _2K = 1556; _2K >= 0; _2K -= 1) { //#17218 + $1.i = _2K; //#17214 + if ($get($1.numremcws, $1.i) != 1) { //#17217 + $put($1.numremcws, $1.i, $f($get($1.numremcws, $1.i + 1) + 1)); //#17216 + } //#17216 + } //#17216 + if ($1.raw) { //#17220 + $1.encoding = "raw"; //#17220 + } //#17220 + if ($eq($1.encoding, "raw")) { //#17233 + $1.cws = $a($1.barcode.length); //#17223 + $1.i = 0; //#17224 + $1.j = 0; //#17224 + for (;;) { //#17231 + if ($1.i == $1.barcode.length) { //#17226 + break; //#17226 + } //#17226 + $1.cw = ~~$z($geti($1.barcode, $1.i + 1, 3)); //#17227 + $put($1.cws, $1.j, $1.cw); //#17228 + $1.i = $1.i + 4; //#17229 + $1.j = $1.j + 1; //#17230 + } //#17230 + $1.cws = $geti($1.cws, 0, $1.j); //#17232 + } //#17232 + if ($eq($1.encoding, "auto")) { //#17733 + $1.fnc1 = -1; //#17238 + $1.prog = -2; //#17238 + $1.m05 = -3; //#17238 + $1.m06 = -4; //#17238 + $1.lC = -5; //#17239 + $1.lB = -6; //#17239 + $1.lX = -7; //#17239 + $1.lT = -8; //#17239 + $1.lE = -9; //#17239 + $1.unl = -10; //#17239 + $1.sapp = -11; //#17240 + $1.usft = -12; //#17240 + $1.sft1 = -13; //#17240 + $1.sft2 = -14; //#17240 + $1.sft3 = -15; //#17240 + $1.eci = -16; //#17240 + $1.pad = -17; //#17240 + $1.unlcw = 254; //#17241 + var _2p = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["eci", true], + ["FNC1", $1.fnc1], + ["PROG", $1.prog] + ]); //#17249 + $1.fncvals = _2p; //#17252 + $k[$j++] = 'msg'; //#17253 + $k[$j++] = $1.barcode; //#17253 + $k[$j++] = $1.fncvals; //#17253 + $0.parseinput(); //#17253 + var _2s = $k[--$j]; //#17253 + $1[$k[--$j]] = _2s; //#17253 + $1.msglen = $1.msg.length; //#17254 + if ($1.msglen >= 9) { //#17271 + $aload($geti($1.msg, 0, 7)); //#17258 + var _2y = $k[--$j]; //#17259 + var _2z = $k[--$j]; //#17259 + $k[$j++] = _2y == 29; //#17259 + $k[$j++] = _2z; //#17259 + $j--; //#17259 + var _30 = $k[--$j]; //#17259 + var _31 = $k[--$j]; //#17259 + var _32 = $k[--$j]; //#17259 + var _33 = $k[--$j]; //#17260 + var _34 = $k[--$j]; //#17260 + var _35 = $k[--$j]; //#17260 + if (((((_30 && (_31 == 48)) && (_32 == 30)) && (_33 == 62)) && (_34 == 41)) && (_35 == 91)) { //#17270 + $aload($geti($1.msg, $1.msglen - 2, 2)); //#17261 + var _39 = $k[--$j]; //#17262 + var _3A = $k[--$j]; //#17262 + if ((_39 == 4) && (_3A == 30)) { //#17269 + if ($get($1.msg, 5) == 53) { //#17265 + $k[$j++] = Infinity; //#17264 + $k[$j++] = $1.m05; //#17264 + $aload($geti($1.msg, 7, $1.msg.length - 9)); //#17264 + $1.msg = $a(); //#17264 + } //#17264 + if ($get($1.msg, 5) == 54) { //#17268 + $k[$j++] = Infinity; //#17267 + $k[$j++] = $1.m06; //#17267 + $aload($geti($1.msg, 7, $1.msg.length - 9)); //#17267 + $1.msg = $a(); //#17267 + } //#17267 + } //#17267 + } //#17267 + } //#17267 + $1.msglen = $1.msg.length; //#17272 + $k[$j++] = Infinity; //#17281 + for (var _3Q = 0; _3Q <= 128; _3Q += 1) { //#17275 + $k[$j++] = _3Q; //#17275 + $k[$j++] = _3Q + 1; //#17275 + } //#17275 + $k[$j++] = $1.pad; //#17280 + $k[$j++] = 129; //#17280 + for (var _3S = 0; _3S <= 99; _3S += 1) { //#17280 + var _3U = $cvrs($s(2), _3S, 10); //#17278 + var _3W = $strcpy($s(2), "00"); //#17278 + $puti(_3W, 2 - _3U.length, _3U); //#17278 + $k[$j++] = _3W; //#17279 + $k[$j++] = _3S + 130; //#17279 + } //#17279 + var _3j = $a([$1.lC, $1.lB, $1.fnc1, $1.sapp, $1.prog, $1.usft, $1.m05, $1.m06, $1.lX, $1.lT, $1.lE, $1.eci]); //#17281 + $k[$j++] = 229; //#17281 + for (var _3k = 0, _3l = _3j.length; _3k < _3l; _3k++) { //#17281 + var _3o = $f($k[--$j] + 1); //#17281 + $k[$j++] = $get(_3j, _3k); //#17281 + $k[$j++] = _3o; //#17281 + $k[$j++] = _3o; //#17281 + } //#17281 + $j--; //#17281 + $1.Avals = $d(); //#17282 + $k[$j++] = Infinity; //#17284 + var _3q = $1.Avals; //#17284 + for (var _3v = _3q.size, _3u = _3q.keys(), _3t = 0; _3t < _3v; _3t++) { //#17284 + var _3r = _3u.next().value; //#17284 + $k[$j++] = _3r; //#17284 + $k[$j++] = _3q.get(_3r); //#17284 + $k[$j++] = Infinity; //#17284 + var _3w = $k[--$j]; //#17284 + var _3x = $k[--$j]; //#17284 + $k[$j++] = _3w; //#17284 + $k[$j++] = _3x; //#17284 + var _3y = $a(); //#17284 + $k[$j++] = _3y; //#17284 + } //#17284 + $1.Avals = $d(); //#17285 + $k[$j++] = Infinity; //#17293 + $k[$j++] = $1.sft1; //#17292 + $k[$j++] = 0; //#17292 + $k[$j++] = $1.sft2; //#17292 + $k[$j++] = 1; //#17292 + $k[$j++] = $1.sft3; //#17292 + $k[$j++] = 2; //#17292 + $k[$j++] = 32; //#17292 + $k[$j++] = 3; //#17292 + for (var _43 = 48; _43 <= 57; _43 += 1) { //#17292 + $k[$j++] = _43; //#17292 + $k[$j++] = _43 - 44; //#17292 + } //#17292 + for (var _44 = 65; _44 <= 90; _44 += 1) { //#17293 + $k[$j++] = _44; //#17293 + $k[$j++] = _44 - 51; //#17293 + } //#17293 + $1.CNvals = $d(); //#17294 + $k[$j++] = Infinity; //#17295 + for (var _46 = 0; _46 <= 31; _46 += 1) { //#17295 + $k[$j++] = _46; //#17295 + $k[$j++] = _46; //#17295 + } //#17295 + $1.C1vals = $d(); //#17295 + $k[$j++] = Infinity; //#17301 + for (var _48 = 33; _48 <= 47; _48 += 1) { //#17297 + $k[$j++] = _48; //#17297 + $k[$j++] = _48 - 33; //#17297 + } //#17297 + for (var _49 = 58; _49 <= 64; _49 += 1) { //#17298 + $k[$j++] = _49; //#17298 + $k[$j++] = _49 - 43; //#17298 + } //#17298 + for (var _4A = 91; _4A <= 95; _4A += 1) { //#17299 + $k[$j++] = _4A; //#17299 + $k[$j++] = _4A - 69; //#17299 + } //#17299 + $k[$j++] = $1.fnc1; //#17301 + $k[$j++] = 27; //#17301 + $k[$j++] = $1.usft; //#17301 + $k[$j++] = 30; //#17301 + $1.C2vals = $d(); //#17302 + $k[$j++] = Infinity; //#17303 + for (var _4E = 96; _4E <= 127; _4E += 1) { //#17303 + $k[$j++] = _4E; //#17303 + $k[$j++] = _4E - 96; //#17303 + } //#17303 + $1.C3vals = $d(); //#17303 + $k[$j++] = Infinity; //#17308 + var _4G = $1.CNvals; //#17305 + for (var _4L = _4G.size, _4K = _4G.keys(), _4J = 0; _4J < _4L; _4J++) { //#17305 + var _4H = _4K.next().value; //#17305 + $k[$j++] = _4H; //#17305 + $k[$j++] = _4G.get(_4H); //#17305 + $k[$j++] = Infinity; //#17305 + var _4M = $k[--$j]; //#17305 + var _4N = $k[--$j]; //#17305 + $k[$j++] = _4M; //#17305 + $k[$j++] = _4N; //#17305 + var _4O = $a(); //#17305 + $k[$j++] = _4O; //#17305 + } //#17305 + var _4P = $1.C1vals; //#17306 + for (var _4U = _4P.size, _4T = _4P.keys(), _4S = 0; _4S < _4U; _4S++) { //#17306 + var _4Q = _4T.next().value; //#17306 + $k[$j++] = _4Q; //#17306 + $k[$j++] = _4P.get(_4Q); //#17306 + $k[$j++] = Infinity; //#17306 + var _4V = $k[--$j]; //#17306 + var _4W = $k[--$j]; //#17306 + $k[$j++] = _4V; //#17306 + $k[$j++] = $get($1.CNvals, $1.sft1); //#17306 + $k[$j++] = _4W; //#17306 + var _4a = $a(); //#17306 + $k[$j++] = _4a; //#17306 + } //#17306 + var _4b = $1.C2vals; //#17307 + for (var _4g = _4b.size, _4f = _4b.keys(), _4e = 0; _4e < _4g; _4e++) { //#17307 + var _4c = _4f.next().value; //#17307 + $k[$j++] = _4c; //#17307 + $k[$j++] = _4b.get(_4c); //#17307 + $k[$j++] = Infinity; //#17307 + var _4h = $k[--$j]; //#17307 + var _4i = $k[--$j]; //#17307 + $k[$j++] = _4h; //#17307 + $k[$j++] = $get($1.CNvals, $1.sft2); //#17307 + $k[$j++] = _4i; //#17307 + var _4m = $a(); //#17307 + $k[$j++] = _4m; //#17307 + } //#17307 + var _4n = $1.C3vals; //#17308 + for (var _4s = _4n.size, _4r = _4n.keys(), _4q = 0; _4q < _4s; _4q++) { //#17308 + var _4o = _4r.next().value; //#17308 + $k[$j++] = _4o; //#17308 + $k[$j++] = _4n.get(_4o); //#17308 + $k[$j++] = Infinity; //#17308 + var _4t = $k[--$j]; //#17308 + var _4u = $k[--$j]; //#17308 + $k[$j++] = _4t; //#17308 + $k[$j++] = $get($1.CNvals, $1.sft3); //#17308 + $k[$j++] = _4u; //#17308 + var _4y = $a(); //#17308 + $k[$j++] = _4y; //#17308 + } //#17308 + $1.Cvals = $d(); //#17309 + $k[$j++] = Infinity; //#17317 + $k[$j++] = $1.sft1; //#17316 + $k[$j++] = 0; //#17316 + $k[$j++] = $1.sft2; //#17316 + $k[$j++] = 1; //#17316 + $k[$j++] = $1.sft3; //#17316 + $k[$j++] = 2; //#17316 + $k[$j++] = 32; //#17316 + $k[$j++] = 3; //#17316 + for (var _53 = 48; _53 <= 57; _53 += 1) { //#17316 + $k[$j++] = _53; //#17316 + $k[$j++] = _53 - 44; //#17316 + } //#17316 + for (var _54 = 97; _54 <= 122; _54 += 1) { //#17317 + $k[$j++] = _54; //#17317 + $k[$j++] = _54 - 83; //#17317 + } //#17317 + $1.TNvals = $d(); //#17318 + $k[$j++] = Infinity; //#17319 + for (var _56 = 0; _56 <= 31; _56 += 1) { //#17319 + $k[$j++] = _56; //#17319 + $k[$j++] = _56; //#17319 + } //#17319 + $1.T1vals = $d(); //#17319 + $k[$j++] = Infinity; //#17325 + for (var _58 = 33; _58 <= 47; _58 += 1) { //#17321 + $k[$j++] = _58; //#17321 + $k[$j++] = _58 - 33; //#17321 + } //#17321 + for (var _59 = 58; _59 <= 64; _59 += 1) { //#17322 + $k[$j++] = _59; //#17322 + $k[$j++] = _59 - 43; //#17322 + } //#17322 + for (var _5A = 91; _5A <= 95; _5A += 1) { //#17323 + $k[$j++] = _5A; //#17323 + $k[$j++] = _5A - 69; //#17323 + } //#17323 + $k[$j++] = $1.fnc1; //#17325 + $k[$j++] = 27; //#17325 + $k[$j++] = $1.usft; //#17325 + $k[$j++] = 30; //#17325 + $1.T2vals = $d(); //#17326 + $k[$j++] = Infinity; //#17330 + $k[$j++] = 96; //#17329 + $k[$j++] = 0; //#17329 + for (var _5E = 65; _5E <= 90; _5E += 1) { //#17329 + $k[$j++] = _5E; //#17329 + $k[$j++] = _5E - 64; //#17329 + } //#17329 + for (var _5F = 123; _5F <= 127; _5F += 1) { //#17330 + $k[$j++] = _5F; //#17330 + $k[$j++] = _5F - 96; //#17330 + } //#17330 + $1.T3vals = $d(); //#17331 + $k[$j++] = Infinity; //#17336 + var _5H = $1.TNvals; //#17333 + for (var _5M = _5H.size, _5L = _5H.keys(), _5K = 0; _5K < _5M; _5K++) { //#17333 + var _5I = _5L.next().value; //#17333 + $k[$j++] = _5I; //#17333 + $k[$j++] = _5H.get(_5I); //#17333 + $k[$j++] = Infinity; //#17333 + var _5N = $k[--$j]; //#17333 + var _5O = $k[--$j]; //#17333 + $k[$j++] = _5N; //#17333 + $k[$j++] = _5O; //#17333 + var _5P = $a(); //#17333 + $k[$j++] = _5P; //#17333 + } //#17333 + var _5Q = $1.T1vals; //#17334 + for (var _5V = _5Q.size, _5U = _5Q.keys(), _5T = 0; _5T < _5V; _5T++) { //#17334 + var _5R = _5U.next().value; //#17334 + $k[$j++] = _5R; //#17334 + $k[$j++] = _5Q.get(_5R); //#17334 + $k[$j++] = Infinity; //#17334 + var _5W = $k[--$j]; //#17334 + var _5X = $k[--$j]; //#17334 + $k[$j++] = _5W; //#17334 + $k[$j++] = $get($1.TNvals, $1.sft1); //#17334 + $k[$j++] = _5X; //#17334 + var _5b = $a(); //#17334 + $k[$j++] = _5b; //#17334 + } //#17334 + var _5c = $1.T2vals; //#17335 + for (var _5h = _5c.size, _5g = _5c.keys(), _5f = 0; _5f < _5h; _5f++) { //#17335 + var _5d = _5g.next().value; //#17335 + $k[$j++] = _5d; //#17335 + $k[$j++] = _5c.get(_5d); //#17335 + $k[$j++] = Infinity; //#17335 + var _5i = $k[--$j]; //#17335 + var _5j = $k[--$j]; //#17335 + $k[$j++] = _5i; //#17335 + $k[$j++] = $get($1.TNvals, $1.sft2); //#17335 + $k[$j++] = _5j; //#17335 + var _5n = $a(); //#17335 + $k[$j++] = _5n; //#17335 + } //#17335 + var _5o = $1.T3vals; //#17336 + for (var _5t = _5o.size, _5s = _5o.keys(), _5r = 0; _5r < _5t; _5r++) { //#17336 + var _5p = _5s.next().value; //#17336 + $k[$j++] = _5p; //#17336 + $k[$j++] = _5o.get(_5p); //#17336 + $k[$j++] = Infinity; //#17336 + var _5u = $k[--$j]; //#17336 + var _5v = $k[--$j]; //#17336 + $k[$j++] = _5u; //#17336 + $k[$j++] = $get($1.TNvals, $1.sft3); //#17336 + $k[$j++] = _5v; //#17336 + var _5z = $a(); //#17336 + $k[$j++] = _5z; //#17336 + } //#17336 + $1.Tvals = $d(); //#17337 + for (var _61 = 128; _61 <= 255; _61 += 1) { //#17345 + $1.i = _61; //#17341 + $k[$j++] = $1.Avals; //#17342 + $k[$j++] = $1.i; //#17342 + $k[$j++] = Infinity; //#17342 + $aload($get($1.Avals, $1.usft)); //#17342 + $aload($get($1.Avals, $1.i - 128)); //#17342 + var _6A = $a(); //#17342 + var _6B = $k[--$j]; //#17342 + $put($k[--$j], _6B, _6A); //#17342 + $k[$j++] = $1.Cvals; //#17343 + $k[$j++] = $1.i; //#17343 + $k[$j++] = Infinity; //#17343 + $aload($get($1.Cvals, $1.usft)); //#17343 + $aload($get($1.Cvals, $1.i - 128)); //#17343 + var _6L = $a(); //#17343 + var _6M = $k[--$j]; //#17343 + $put($k[--$j], _6M, _6L); //#17343 + $k[$j++] = $1.Tvals; //#17344 + $k[$j++] = $1.i; //#17344 + $k[$j++] = Infinity; //#17344 + $aload($get($1.Tvals, $1.usft)); //#17344 + $aload($get($1.Tvals, $1.i - 128)); //#17344 + var _6W = $a(); //#17344 + var _6X = $k[--$j]; //#17344 + $put($k[--$j], _6X, _6W); //#17344 + } //#17344 + $k[$j++] = Infinity; //#17353 + $k[$j++] = 13; //#17352 + $k[$j++] = 0; //#17352 + $k[$j++] = 42; //#17352 + $k[$j++] = 1; //#17352 + $k[$j++] = 62; //#17352 + $k[$j++] = 2; //#17352 + $k[$j++] = 32; //#17352 + $k[$j++] = 3; //#17352 + for (var _6Z = 48; _6Z <= 57; _6Z += 1) { //#17352 + $k[$j++] = _6Z; //#17352 + $k[$j++] = _6Z - 44; //#17352 + } //#17352 + for (var _6a = 65; _6a <= 90; _6a += 1) { //#17353 + $k[$j++] = _6a; //#17353 + $k[$j++] = _6a - 51; //#17353 + } //#17353 + $1.Xvals = $d(); //#17354 + $k[$j++] = Infinity; //#17356 + var _6c = $1.Xvals; //#17356 + for (var _6h = _6c.size, _6g = _6c.keys(), _6f = 0; _6f < _6h; _6f++) { //#17356 + var _6d = _6g.next().value; //#17356 + $k[$j++] = _6d; //#17356 + $k[$j++] = _6c.get(_6d); //#17356 + $k[$j++] = Infinity; //#17356 + var _6i = $k[--$j]; //#17356 + var _6j = $k[--$j]; //#17356 + $k[$j++] = _6i; //#17356 + $k[$j++] = _6j; //#17356 + var _6k = $a(); //#17356 + $k[$j++] = _6k; //#17356 + } //#17356 + $1.Xvals = $d(); //#17357 + $k[$j++] = Infinity; //#17362 + for (var _6m = 64; _6m <= 94; _6m += 1) { //#17360 + $k[$j++] = _6m; //#17360 + $k[$j++] = _6m - 64; //#17360 + } //#17360 + $k[$j++] = $1.unl; //#17362 + $k[$j++] = 31; //#17362 + for (var _6o = 32; _6o <= 63; _6o += 1) { //#17362 + $k[$j++] = _6o; //#17362 + $k[$j++] = _6o; //#17362 + } //#17362 + $1.Evals = $d(); //#17363 + $k[$j++] = Infinity; //#17365 + var _6q = $1.Evals; //#17365 + for (var _6v = _6q.size, _6u = _6q.keys(), _6t = 0; _6t < _6v; _6t++) { //#17365 + var _6r = _6u.next().value; //#17365 + $k[$j++] = _6r; //#17365 + $k[$j++] = _6q.get(_6r); //#17365 + $k[$j++] = Infinity; //#17365 + var _6w = $k[--$j]; //#17365 + var _6x = $k[--$j]; //#17365 + $k[$j++] = _6w; //#17365 + $k[$j++] = _6x; //#17365 + var _6y = $a(); //#17365 + $k[$j++] = _6y; //#17365 + } //#17365 + $1.Evals = $d(); //#17366 + $k[$j++] = Infinity; //#17369 + for (var _70 = 0; _70 <= 255; _70 += 1) { //#17369 + $k[$j++] = _70; //#17369 + $k[$j++] = _70; //#17369 + } //#17369 + $1.Bvals = $d(); //#17370 + $k[$j++] = Infinity; //#17372 + var _72 = $1.Bvals; //#17372 + for (var _77 = _72.size, _76 = _72.keys(), _75 = 0; _75 < _77; _75++) { //#17372 + var _73 = _76.next().value; //#17372 + $k[$j++] = _73; //#17372 + $k[$j++] = _72.get(_73); //#17372 + $k[$j++] = Infinity; //#17372 + var _78 = $k[--$j]; //#17372 + var _79 = $k[--$j]; //#17372 + $k[$j++] = _78; //#17372 + $k[$j++] = _79; //#17372 + var _7A = $a(); //#17372 + $k[$j++] = _7A; //#17372 + } //#17372 + $1.Bvals = $d(); //#17373 + $1.encvals = $a([$1.Avals, $1.Cvals, $1.Tvals, $1.Xvals, $1.Evals, $1.Bvals]); //#17375 + $k[$j++] = Infinity; //#17377 + for (var _7K = 0, _7L = $1.msglen; _7K < _7L; _7K++) { //#17377 + $k[$j++] = 0; //#17377 + } //#17377 + $k[$j++] = 0; //#17377 + $1.numD = $a(); //#17377 + $k[$j++] = Infinity; //#17378 + for (var _7O = 0, _7P = $1.msglen; _7O < _7P; _7O++) { //#17378 + $k[$j++] = 0; //#17378 + } //#17378 + $k[$j++] = 9999; //#17378 + $1.nextXterm = $a(); //#17378 + $k[$j++] = Infinity; //#17379 + for (var _7S = 0, _7T = $1.msglen; _7S < _7T; _7S++) { //#17379 + $k[$j++] = 0; //#17379 + } //#17379 + $k[$j++] = 9999; //#17379 + $1.nextNonX = $a(); //#17379 + $k[$j++] = Infinity; //#17380 + for (var _7W = 0, _7X = $1.msglen; _7W < _7X; _7W++) { //#17380 + $k[$j++] = false; //#17380 + } //#17380 + $k[$j++] = false; //#17380 + $1.isECI = $a(); //#17380 + for (var _7a = $1.msglen - 1; _7a >= 0; _7a -= 1) { //#17398 + $1.i = _7a; //#17382 + $1.barchar = $get($1.msg, $1.i); //#17383 + if (($1.barchar >= 48) && ($1.barchar <= 57)) { //#17386 + $put($1.numD, $1.i, $f($get($1.numD, $1.i + 1) + 1)); //#17385 + } //#17385 + if ((($1.barchar == 13) || ($1.barchar == 42)) || ($1.barchar == 62)) { //#17390 + $put($1.nextXterm, $1.i, 0); //#17388 + } else { //#17390 + $put($1.nextXterm, $1.i, $f($get($1.nextXterm, $1.i + 1) + 1)); //#17390 + } //#17390 + var _7x = $get($1.Xvals, $1.barchar) !== undefined; //#17392 + if (!_7x) { //#17395 + $put($1.nextNonX, $1.i, 0); //#17393 + } else { //#17395 + $put($1.nextNonX, $1.i, $f($get($1.nextNonX, $1.i + 1) + 1)); //#17395 + } //#17395 + $put($1.isECI, $1.i, $1.barchar <= -1000000); //#17397 + } //#17397 + $k[$j++] = Infinity; //#17399 + var _88 = $1.nextXterm; //#17399 + for (var _89 = 0, _8A = _88.length; _89 < _8A; _89++) { //#17399 + var _8B = $get(_88, _89); //#17399 + $k[$j++] = _8B; //#17399 + if (_8B > 10000) { //#17399 + $j--; //#17399 + $k[$j++] = 10000; //#17399 + } //#17399 + } //#17399 + $1.nextXterm = $a(); //#17399 + $k[$j++] = Infinity; //#17400 + var _8D = $1.nextNonX; //#17400 + for (var _8E = 0, _8F = _8D.length; _8E < _8F; _8E++) { //#17400 + var _8G = $get(_8D, _8E); //#17400 + $k[$j++] = _8G; //#17400 + if (_8G > 10000) { //#17400 + $j--; //#17400 + $k[$j++] = 10000; //#17400 + } //#17400 + } //#17400 + $1.nextNonX = $a(); //#17400 $1.isD = function() { - $k[$j++] = $1.char >= 48 && $1.char <= 57; - }; + $k[$j++] = ($1.char >= 48) && ($1.char <= 57); //#17402 + }; //#17402 $1.isC = function() { - var _8M = $get($1.CNvals, $1.char) !== undefined; - $k[$j++] = _8M; - }; + var _8M = $get($1.CNvals, $1.char) !== undefined; //#17403 + $k[$j++] = _8M; //#17403 + }; //#17403 $1.isT = function() { - var _8P = $get($1.TNvals, $1.char) !== undefined; - $k[$j++] = _8P; - }; + var _8P = $get($1.TNvals, $1.char) !== undefined; //#17404 + $k[$j++] = _8P; //#17404 + }; //#17404 $1.isX = function() { - var _8S = $get($1.Xvals, $1.char) !== undefined; - $k[$j++] = _8S; - }; + var _8S = $get($1.Xvals, $1.char) !== undefined; //#17405 + $k[$j++] = _8S; //#17405 + }; //#17405 $1.isE = function() { - var _8V = $get($1.Evals, $1.char) !== undefined; - $k[$j++] = _8V; - }; + var _8V = $get($1.Evals, $1.char) !== undefined; //#17406 + $k[$j++] = _8V; //#17406 + }; //#17406 $1.isEA = function() { - $k[$j++] = $1.char > 127; - }; + $k[$j++] = $1.char > 127; //#17407 + }; //#17407 $1.isFN = function() { - $k[$j++] = $1.char < 0; - }; + $k[$j++] = $1.char < 0; //#17408 + }; //#17408 $1.XtermFirst = function() { - var _8Y = $k[--$j]; - $k[$j++] = $lt($get($1.nextXterm, _8Y), $get($1.nextNonX, _8Y)); - }; - $1.A = 0; - $1.C = 1; - $1.T = 2; - $1.X = 3; - $1.E = 4; - $1.B = 5; + var _8Y = $k[--$j]; //#17409 + $k[$j++] = $lt($get($1.nextXterm, _8Y), $get($1.nextNonX, _8Y)); //#17409 + }; //#17409 + $1.A = 0; //#17411 + $1.C = 1; //#17411 + $1.T = 2; //#17411 + $1.X = 3; //#17411 + $1.E = 4; //#17411 + $1.B = 5; //#17411 $1.lookup = function() { - $1.ac = 1; - $1.cc = 2; - $1.tc = 2; - $1.xc = 2; - $1.ec = 2; - $1.bc = 2.25; - if ($1.mode == $1.A) { - $1.ac = 0; - $1.cc = 1; - $1.tc = 1; - $1.xc = 1; - $1.ec = 1; - $1.bc = 1.25; - } - if ($1.mode == $1.C) { - $1.cc = 0; - } - if ($1.mode == $1.T) { - $1.tc = 0; - } - if ($1.mode == $1.X) { - $1.xc = 0; - } - if ($1.mode == $1.E) { - $1.ec = 0; - } - if ($1.mode == $1.B) { - $1.bc = 0; - } - for (var _8p = 0, _8q = 1; _8p < _8q; _8p++) { - if ($get($1.isECI, $1.i)) { - $k[$j++] = $1.A; - break; - } - if ($1.mailmark && $1.i < 45) { - $k[$j++] = $1.C; - break; - } - $1.k = 0; - for (;;) { - if ($1.i + $1.k == $1.msglen) { - var _91 = $a([ "ac", "cc", "tc", "xc", "ec", "bc" ]); - for (var _92 = 0, _93 = _91.length; _92 < _93; _92++) { - var _94 = $get(_91, _92); - $1[_94] = Math.ceil($1[_94]); - } - var _9B = $a([ $1.cc, $1.tc, $1.xc, $1.ec, $1.bc ]); - $k[$j++] = true; - for (var _9C = 0, _9D = _9B.length; _9C < _9D; _9C++) { - var _9G = $k[--$j]; - $k[$j++] = _9G && $1.ac <= $get(_9B, _9C); - } - if ($k[--$j]) { - $k[$j++] = $1.A; - break; - } - var _9O = $a([ $1.ac, $1.cc, $1.tc, $1.xc, $1.ec ]); - $k[$j++] = true; - for (var _9P = 0, _9Q = _9O.length; _9P < _9Q; _9P++) { - var _9T = $k[--$j]; - $k[$j++] = _9T && $1.bc < $get(_9O, _9P); - } - if ($k[--$j]) { - $k[$j++] = $1.B; - break; - } - var _9b = $a([ $1.ac, $1.cc, $1.tc, $1.xc, $1.bc ]); - $k[$j++] = true; - for (var _9c = 0, _9d = _9b.length; _9c < _9d; _9c++) { - var _9g = $k[--$j]; - $k[$j++] = _9g && $1.ec < $get(_9b, _9c); - } - if ($k[--$j]) { - $k[$j++] = $1.E; - break; - } - var _9o = $a([ $1.ac, $1.cc, $1.xc, $1.ec, $1.bc ]); - $k[$j++] = true; - for (var _9p = 0, _9q = _9o.length; _9p < _9q; _9p++) { - var _9t = $k[--$j]; - $k[$j++] = _9t && $1.tc < $get(_9o, _9p); - } - if ($k[--$j]) { - $k[$j++] = $1.T; - break; - } - var _A1 = $a([ $1.ac, $1.cc, $1.tc, $1.ec, $1.bc ]); - $k[$j++] = true; - for (var _A2 = 0, _A3 = _A1.length; _A2 < _A3; _A2++) { - var _A6 = $k[--$j]; - $k[$j++] = _A6 && $1.xc < $get(_A1, _A2); - } - if ($k[--$j]) { - $k[$j++] = $1.X; - break; - } - $k[$j++] = $1.C; - break; - } - $1.char = $get($1.msg, $1.i + $1.k); - $k[$j++] = "ac"; - $k[$j++] = $1.ac; - $1.isD(); - if ($k[--$j]) { - var _AG = $k[--$j]; - $k[$j++] = $f(_AG + 1 / 2); - } else { - $1.isEA(); - if ($k[--$j]) { - var _AI = $k[--$j]; - $k[$j++] = Math.ceil(_AI) + 2; - } else { - var _AJ = $k[--$j]; - $k[$j++] = Math.ceil(_AJ) + 1; - } - } - var _AK = $k[--$j]; - $1[$k[--$j]] = _AK; - $k[$j++] = "cc"; - $k[$j++] = $1.cc; - $1.isC(); - if ($k[--$j]) { - var _AO = $k[--$j]; - $k[$j++] = $f(_AO + .66666667); - } else { - $1.isEA(); - if ($k[--$j]) { - var _AQ = $k[--$j]; - $k[$j++] = $f(_AQ + 2.66666667); - } else { - var _AR = $k[--$j]; - $k[$j++] = $f(_AR + 1.33333334); - } - } - var _AS = $k[--$j]; - $1[$k[--$j]] = _AS; - $k[$j++] = "tc"; - $k[$j++] = $1.tc; - $1.isT(); - if ($k[--$j]) { - var _AW = $k[--$j]; - $k[$j++] = $f(_AW + .66666667); - } else { - $1.isEA(); - if ($k[--$j]) { - var _AY = $k[--$j]; - $k[$j++] = $f(_AY + 2.66666667); - } else { - var _AZ = $k[--$j]; - $k[$j++] = $f(_AZ + 1.33333334); - } - } - var _Aa = $k[--$j]; - $1[$k[--$j]] = _Aa; - $k[$j++] = "xc"; - $k[$j++] = $1.xc; - $1.isX(); - if ($k[--$j]) { - var _Ae = $k[--$j]; - $k[$j++] = $f(_Ae + .66666667); - } else { - $1.isEA(); - if ($k[--$j]) { - var _Ag = $k[--$j]; - $k[$j++] = $f(_Ag + 4.33333334); - } else { - var _Ah = $k[--$j]; - $k[$j++] = $f(_Ah + 3.33333334); - } - } - var _Ai = $k[--$j]; - $1[$k[--$j]] = _Ai; - $k[$j++] = "ec"; - $k[$j++] = $1.ec; - $1.isE(); - if ($k[--$j]) { - var _Am = $k[--$j]; - $k[$j++] = $f(_Am + 3 / 4); - } else { - $1.isEA(); - if ($k[--$j]) { - var _Ao = $k[--$j]; - $k[$j++] = $f(_Ao + 17 / 4); - } else { - var _Ap = $k[--$j]; - $k[$j++] = $f(_Ap + 13 / 4); - } - } - var _Aq = $k[--$j]; - $1[$k[--$j]] = _Aq; - $k[$j++] = "bc"; - $k[$j++] = $1.bc; - $1.isFN(); - if ($k[--$j]) { - var _Au = $k[--$j]; - $k[$j++] = $f(_Au + 4); - } else { - var _Av = $k[--$j]; - $k[$j++] = $f(_Av + 1); - } - var _Aw = $k[--$j]; - $1[$k[--$j]] = _Aw; - if ($1.k >= 4) { - var _B4 = $a([ $1.cc, $1.tc, $1.xc, $1.ec, $1.bc ]); - $k[$j++] = true; - for (var _B5 = 0, _B6 = _B4.length; _B5 < _B6; _B5++) { - var _B9 = $k[--$j]; - $k[$j++] = _B9 && $1.ac + 1 <= $get(_B4, _B5); - } - if ($k[--$j]) { - $k[$j++] = $1.A; - break; - } - if ($1.bc + 1 <= $1.ac) { - $k[$j++] = $1.B; - break; - } - var _BJ = $a([ $1.cc, $1.tc, $1.xc, $1.ec ]); - $k[$j++] = true; - for (var _BK = 0, _BL = _BJ.length; _BK < _BL; _BK++) { - var _BO = $k[--$j]; - $k[$j++] = _BO && $1.bc + 1 < $get(_BJ, _BK); - } - if ($k[--$j]) { - $k[$j++] = $1.B; - break; - } - var _BW = $a([ $1.ac, $1.cc, $1.tc, $1.xc, $1.bc ]); - $k[$j++] = true; - for (var _BX = 0, _BY = _BW.length; _BX < _BY; _BX++) { - var _Bb = $k[--$j]; - $k[$j++] = _Bb && $1.ec + 1 < $get(_BW, _BX); - } - if ($k[--$j]) { - $k[$j++] = $1.E; - break; - } - var _Bj = $a([ $1.ac, $1.cc, $1.xc, $1.ec, $1.bc ]); - $k[$j++] = true; - for (var _Bk = 0, _Bl = _Bj.length; _Bk < _Bl; _Bk++) { - var _Bo = $k[--$j]; - $k[$j++] = _Bo && $1.tc + 1 < $get(_Bj, _Bk); - } - if ($k[--$j]) { - $k[$j++] = $1.T; - break; - } - var _Bw = $a([ $1.ac, $1.cc, $1.tc, $1.ec, $1.bc ]); - $k[$j++] = true; - for (var _Bx = 0, _By = _Bw.length; _Bx < _By; _Bx++) { - var _C1 = $k[--$j]; - $k[$j++] = _C1 && $1.xc + 1 < $get(_Bw, _Bx); - } - if ($k[--$j]) { - $k[$j++] = $1.X; - break; - } - var _C8 = $a([ $1.ac, $1.tc, $1.ec, $1.bc ]); - $k[$j++] = true; - for (var _C9 = 0, _CA = _C8.length; _C9 < _CA; _C9++) { - var _CD = $k[--$j]; - $k[$j++] = _CD && $1.cc + 1 < $get(_C8, _C9); - } - if ($k[--$j]) { - if ($1.cc < $1.xc) { - $k[$j++] = $1.C; - break; - } - if ($1.cc == $1.xc) { - $k[$j++] = $1.i + $1.k + 1; - $1.XtermFirst(); - if ($k[--$j]) { - $k[$j++] = $1.X; - break; - } else { - $k[$j++] = $1.C; - break; - } - } - } - } - $1.k = $1.k + 1; - } - } - }; + $1.ac = 1; //#17414 + $1.cc = 2; //#17414 + $1.tc = 2; //#17414 + $1.xc = 2; //#17414 + $1.ec = 2; //#17414 + $1.bc = 2.25; //#17414 + if ($1.mode == $1.A) { //#17415 + $1.ac = 0; //#17415 + $1.cc = 1; //#17415 + $1.tc = 1; //#17415 + $1.xc = 1; //#17415 + $1.ec = 1; //#17415 + $1.bc = 1.25; //#17415 + } //#17415 + if ($1.mode == $1.C) { //#17416 + $1.cc = 0; //#17416 + } //#17416 + if ($1.mode == $1.T) { //#17417 + $1.tc = 0; //#17417 + } //#17417 + if ($1.mode == $1.X) { //#17418 + $1.xc = 0; //#17418 + } //#17418 + if ($1.mode == $1.E) { //#17419 + $1.ec = 0; //#17419 + } //#17419 + if ($1.mode == $1.B) { //#17420 + $1.bc = 0; //#17420 + } //#17420 + for (var _8p = 0, _8q = 1; _8p < _8q; _8p++) { //#17455 + if ($get($1.isECI, $1.i)) { //#17422 + $k[$j++] = $1.A; //#17422 + break; //#17422 + } //#17422 + if ($1.mailmark && ($1.i < 45)) { //#17423 + $k[$j++] = $1.C; //#17423 + break; //#17423 + } //#17423 + $1.k = 0; //#17424 + for (;;) { //#17454 + if (($1.i + $1.k) == $1.msglen) { //#17433 + var _91 = $a(['ac', 'cc', 'tc', 'xc', 'ec', 'bc']); //#17426 + for (var _92 = 0, _93 = _91.length; _92 < _93; _92++) { //#17426 + var _94 = $get(_91, _92); //#17426 + $1[_94] = Math.ceil($1[_94]); //#17426 + } //#17426 + var _9B = $a([$1.cc, $1.tc, $1.xc, $1.ec, $1.bc]); //#17427 + $k[$j++] = true; //#17427 + for (var _9C = 0, _9D = _9B.length; _9C < _9D; _9C++) { //#17427 + var _9G = $k[--$j]; //#17427 + $k[$j++] = _9G && ($1.ac <= $get(_9B, _9C)); //#17427 + } //#17427 + if ($k[--$j]) { //#17427 + $k[$j++] = $1.A; //#17427 + break; //#17427 + } //#17427 + var _9O = $a([$1.ac, $1.cc, $1.tc, $1.xc, $1.ec]); //#17428 + $k[$j++] = true; //#17428 + for (var _9P = 0, _9Q = _9O.length; _9P < _9Q; _9P++) { //#17428 + var _9T = $k[--$j]; //#17428 + $k[$j++] = _9T && ($1.bc < $get(_9O, _9P)); //#17428 + } //#17428 + if ($k[--$j]) { //#17428 + $k[$j++] = $1.B; //#17428 + break; //#17428 + } //#17428 + var _9b = $a([$1.ac, $1.cc, $1.tc, $1.xc, $1.bc]); //#17429 + $k[$j++] = true; //#17429 + for (var _9c = 0, _9d = _9b.length; _9c < _9d; _9c++) { //#17429 + var _9g = $k[--$j]; //#17429 + $k[$j++] = _9g && ($1.ec < $get(_9b, _9c)); //#17429 + } //#17429 + if ($k[--$j]) { //#17429 + $k[$j++] = $1.E; //#17429 + break; //#17429 + } //#17429 + var _9o = $a([$1.ac, $1.cc, $1.xc, $1.ec, $1.bc]); //#17430 + $k[$j++] = true; //#17430 + for (var _9p = 0, _9q = _9o.length; _9p < _9q; _9p++) { //#17430 + var _9t = $k[--$j]; //#17430 + $k[$j++] = _9t && ($1.tc < $get(_9o, _9p)); //#17430 + } //#17430 + if ($k[--$j]) { //#17430 + $k[$j++] = $1.T; //#17430 + break; //#17430 + } //#17430 + var _A1 = $a([$1.ac, $1.cc, $1.tc, $1.ec, $1.bc]); //#17431 + $k[$j++] = true; //#17431 + for (var _A2 = 0, _A3 = _A1.length; _A2 < _A3; _A2++) { //#17431 + var _A6 = $k[--$j]; //#17431 + $k[$j++] = _A6 && ($1.xc < $get(_A1, _A2)); //#17431 + } //#17431 + if ($k[--$j]) { //#17431 + $k[$j++] = $1.X; //#17431 + break; //#17431 + } //#17431 + $k[$j++] = $1.C; //#17432 + break; //#17432 + } //#17432 + $1.char = $get($1.msg, $1.i + $1.k); //#17434 + $k[$j++] = 'ac'; //#17435 + $k[$j++] = $1.ac; //#17435 + $1.isD(); //#17435 + if ($k[--$j]) { //#17435 + var _AG = $k[--$j]; //#17435 + $k[$j++] = $f(_AG + (1 / 2)); //#17435 + } else { //#17435 + $1.isEA(); //#17435 + if ($k[--$j]) { //#17435 + var _AI = $k[--$j]; //#17435 + $k[$j++] = Math.ceil(_AI) + 2; //#17435 + } else { //#17435 + var _AJ = $k[--$j]; //#17435 + $k[$j++] = Math.ceil(_AJ) + 1; //#17435 + } //#17435 + } //#17435 + var _AK = $k[--$j]; //#17435 + $1[$k[--$j]] = _AK; //#17435 + $k[$j++] = 'cc'; //#17436 + $k[$j++] = $1.cc; //#17436 + $1.isC(); //#17436 + if ($k[--$j]) { //#17436 + var _AO = $k[--$j]; //#17436 + $k[$j++] = $f(_AO + 0.66666667); //#17436 + } else { //#17436 + $1.isEA(); //#17436 + if ($k[--$j]) { //#17436 + var _AQ = $k[--$j]; //#17436 + $k[$j++] = $f(_AQ + 2.66666667); //#17436 + } else { //#17436 + var _AR = $k[--$j]; //#17436 + $k[$j++] = $f(_AR + 1.33333334); //#17436 + } //#17436 + } //#17436 + var _AS = $k[--$j]; //#17436 + $1[$k[--$j]] = _AS; //#17436 + $k[$j++] = 'tc'; //#17437 + $k[$j++] = $1.tc; //#17437 + $1.isT(); //#17437 + if ($k[--$j]) { //#17437 + var _AW = $k[--$j]; //#17437 + $k[$j++] = $f(_AW + 0.66666667); //#17437 + } else { //#17437 + $1.isEA(); //#17437 + if ($k[--$j]) { //#17437 + var _AY = $k[--$j]; //#17437 + $k[$j++] = $f(_AY + 2.66666667); //#17437 + } else { //#17437 + var _AZ = $k[--$j]; //#17437 + $k[$j++] = $f(_AZ + 1.33333334); //#17437 + } //#17437 + } //#17437 + var _Aa = $k[--$j]; //#17437 + $1[$k[--$j]] = _Aa; //#17437 + $k[$j++] = 'xc'; //#17438 + $k[$j++] = $1.xc; //#17438 + $1.isX(); //#17438 + if ($k[--$j]) { //#17438 + var _Ae = $k[--$j]; //#17438 + $k[$j++] = $f(_Ae + 0.66666667); //#17438 + } else { //#17438 + $1.isEA(); //#17438 + if ($k[--$j]) { //#17438 + var _Ag = $k[--$j]; //#17438 + $k[$j++] = $f(_Ag + 4.33333334); //#17438 + } else { //#17438 + var _Ah = $k[--$j]; //#17438 + $k[$j++] = $f(_Ah + 3.33333334); //#17438 + } //#17438 + } //#17438 + var _Ai = $k[--$j]; //#17438 + $1[$k[--$j]] = _Ai; //#17438 + $k[$j++] = 'ec'; //#17439 + $k[$j++] = $1.ec; //#17439 + $1.isE(); //#17439 + if ($k[--$j]) { //#17439 + var _Am = $k[--$j]; //#17439 + $k[$j++] = $f(_Am + (3 / 4)); //#17439 + } else { //#17439 + $1.isEA(); //#17439 + if ($k[--$j]) { //#17439 + var _Ao = $k[--$j]; //#17439 + $k[$j++] = $f(_Ao + (17 / 4)); //#17439 + } else { //#17439 + var _Ap = $k[--$j]; //#17439 + $k[$j++] = $f(_Ap + (13 / 4)); //#17439 + } //#17439 + } //#17439 + var _Aq = $k[--$j]; //#17439 + $1[$k[--$j]] = _Aq; //#17439 + $k[$j++] = 'bc'; //#17440 + $k[$j++] = $1.bc; //#17440 + $1.isFN(); //#17440 + if ($k[--$j]) { //#17440 + var _Au = $k[--$j]; //#17440 + $k[$j++] = $f(_Au + 4); //#17440 + } else { //#17440 + var _Av = $k[--$j]; //#17440 + $k[$j++] = $f(_Av + 1); //#17440 + } //#17440 + var _Aw = $k[--$j]; //#17440 + $1[$k[--$j]] = _Aw; //#17440 + if ($1.k >= 4) { //#17452 + var _B4 = $a([$1.cc, $1.tc, $1.xc, $1.ec, $1.bc]); //#17442 + $k[$j++] = true; //#17442 + for (var _B5 = 0, _B6 = _B4.length; _B5 < _B6; _B5++) { //#17442 + var _B9 = $k[--$j]; //#17442 + $k[$j++] = _B9 && (($1.ac + 1) <= $get(_B4, _B5)); //#17442 + } //#17442 + if ($k[--$j]) { //#17442 + $k[$j++] = $1.A; //#17442 + break; //#17442 + } //#17442 + if (($1.bc + 1) <= $1.ac) { //#17443 + $k[$j++] = $1.B; //#17443 + break; //#17443 + } //#17443 + var _BJ = $a([$1.cc, $1.tc, $1.xc, $1.ec]); //#17444 + $k[$j++] = true; //#17444 + for (var _BK = 0, _BL = _BJ.length; _BK < _BL; _BK++) { //#17444 + var _BO = $k[--$j]; //#17444 + $k[$j++] = _BO && (($1.bc + 1) < $get(_BJ, _BK)); //#17444 + } //#17444 + if ($k[--$j]) { //#17444 + $k[$j++] = $1.B; //#17444 + break; //#17444 + } //#17444 + var _BW = $a([$1.ac, $1.cc, $1.tc, $1.xc, $1.bc]); //#17445 + $k[$j++] = true; //#17445 + for (var _BX = 0, _BY = _BW.length; _BX < _BY; _BX++) { //#17445 + var _Bb = $k[--$j]; //#17445 + $k[$j++] = _Bb && (($1.ec + 1) < $get(_BW, _BX)); //#17445 + } //#17445 + if ($k[--$j]) { //#17445 + $k[$j++] = $1.E; //#17445 + break; //#17445 + } //#17445 + var _Bj = $a([$1.ac, $1.cc, $1.xc, $1.ec, $1.bc]); //#17446 + $k[$j++] = true; //#17446 + for (var _Bk = 0, _Bl = _Bj.length; _Bk < _Bl; _Bk++) { //#17446 + var _Bo = $k[--$j]; //#17446 + $k[$j++] = _Bo && (($1.tc + 1) < $get(_Bj, _Bk)); //#17446 + } //#17446 + if ($k[--$j]) { //#17446 + $k[$j++] = $1.T; //#17446 + break; //#17446 + } //#17446 + var _Bw = $a([$1.ac, $1.cc, $1.tc, $1.ec, $1.bc]); //#17447 + $k[$j++] = true; //#17447 + for (var _Bx = 0, _By = _Bw.length; _Bx < _By; _Bx++) { //#17447 + var _C1 = $k[--$j]; //#17447 + $k[$j++] = _C1 && (($1.xc + 1) < $get(_Bw, _Bx)); //#17447 + } //#17447 + if ($k[--$j]) { //#17447 + $k[$j++] = $1.X; //#17447 + break; //#17447 + } //#17447 + var _C8 = $a([$1.ac, $1.tc, $1.ec, $1.bc]); //#17448 + $k[$j++] = true; //#17448 + for (var _C9 = 0, _CA = _C8.length; _C9 < _CA; _C9++) { //#17448 + var _CD = $k[--$j]; //#17448 + $k[$j++] = _CD && (($1.cc + 1) < $get(_C8, _C9)); //#17448 + } //#17448 + if ($k[--$j]) { //#17451 + if ($1.cc < $1.xc) { //#17449 + $k[$j++] = $1.C; //#17449 + break; //#17449 + } //#17449 + if ($1.cc == $1.xc) { //#17450 + $k[$j++] = ($1.i + $1.k) + 1; //#17450 + $1.XtermFirst(); //#17450 + if ($k[--$j]) { //#17450 + $k[$j++] = $1.X; //#17450 + break; //#17450 + } else { //#17450 + $k[$j++] = $1.C; //#17450 + break; //#17450 + } //#17450 + } //#17450 + } //#17450 + } //#17450 + $1.k = $1.k + 1; //#17453 + } //#17453 + } //#17453 + }; //#17456 $1.addtocws = function() { - var _CQ = $k[--$j]; - $puti($1.cws, $1.j, _CQ); - $1.j = _CQ.length + $1.j; - }; + var _CQ = $k[--$j]; //#17459 + $puti($1.cws, $1.j, _CQ); //#17459 + $1.j = _CQ.length + $1.j; //#17460 + }; //#17461 $1.ECItocws = function() { - var _CV = $f(-$k[--$j] - 1e6); - $k[$j++] = _CV; - if (_CV <= 126) { - var _CW = $k[--$j]; - $k[$j++] = $f(_CW + 1); - $astore($a(1)); - } else { - var _CY = $k[--$j]; - $k[$j++] = _CY; - if (_CY <= 16382) { - var _Ca = $f($k[--$j] - 127); - $k[$j++] = ~~(_Ca / 254) + 128; - $k[$j++] = $f(_Ca % 254 + 1); - $astore($a(2)); - } else { - var _Cd = $f($k[--$j] - 16383); - $k[$j++] = ~~(_Cd / 64516) + 192; - $k[$j++] = ~~(_Cd / 254) % 254 + 1; - $k[$j++] = $f(_Cd % 254 + 1); - $astore($a(3)); - } - } - }; + var _CV = $f((-$k[--$j]) - 1000000); //#17465 + $k[$j++] = _CV; //#17479 + if (_CV <= 126) { //#17478 + var _CW = $k[--$j]; //#17466 + $k[$j++] = $f(_CW + 1); //#17467 + $astore($a(1)); //#17467 + } else { //#17478 + var _CY = $k[--$j]; //#17468 + $k[$j++] = _CY; //#17479 + if (_CY <= 16382) { //#17478 + var _Ca = $f($k[--$j] - 127); //#17470 + $k[$j++] = (~~(_Ca / 254)) + 128; //#17472 + $k[$j++] = $f((_Ca % 254) + 1); //#17472 + $astore($a(2)); //#17472 + } else { //#17478 + var _Cd = $f($k[--$j] - 16383); //#17475 + $k[$j++] = (~~(_Cd / 64516)) + 192; //#17478 + $k[$j++] = ((~~(_Cd / 254)) % 254) + 1; //#17478 + $k[$j++] = $f((_Cd % 254) + 1); //#17478 + $astore($a(3)); //#17478 + } //#17478 + } //#17478 + }; //#17480 $1.encA = function() { - for (var _Cf = 0, _Cg = 1; _Cf < _Cg; _Cf++) { - if ($get($1.isECI, $1.i)) { - $k[$j++] = $get($1.Avals, $1.eci); - $1.addtocws(); - $k[$j++] = $get($1.msg, $1.i); - $1.ECItocws(); - $1.addtocws(); - $1.i = $1.i + 1; - break; - } - if ($get($1.numD, $1.i) >= 2) { - var _Cu = $s(2); - $put(_Cu, 0, $get($1.msg, $1.i)); - $put(_Cu, 1, $get($1.msg, $1.i + 1)); - $k[$j++] = $get($1.Avals, _Cu); - $1.addtocws(); - $1.i = $1.i + 2; - break; - } - $k[$j++] = "newmode"; - $1.lookup(); - var _D4 = $k[--$j]; - $1[$k[--$j]] = _D4; - if ($1.newmode != $1.mode) { - $k[$j++] = $get($1.Avals, $get($a([ -1, $1.lC, $1.lT, $1.lX, $1.lE, $1.lB ]), $1.newmode)); - $1.addtocws(); - $1.mode = $1.newmode; - break; - } - $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); - $1.addtocws(); - $1.i = $1.i + 1; - break; - } - }; + for (var _Cf = 0, _Cg = 1; _Cf < _Cg; _Cf++) { //#17504 + if ($get($1.isECI, $1.i)) { //#17489 + $k[$j++] = $get($1.Avals, $1.eci); //#17485 + $1.addtocws(); //#17485 + $k[$j++] = $get($1.msg, $1.i); //#17486 + $1.ECItocws(); //#17486 + $1.addtocws(); //#17486 + $1.i = $1.i + 1; //#17487 + break; //#17488 + } //#17488 + if ($get($1.numD, $1.i) >= 2) { //#17494 + var _Cu = $s(2); //#17491 + $put(_Cu, 0, $get($1.msg, $1.i)); //#17491 + $put(_Cu, 1, $get($1.msg, $1.i + 1)); //#17491 + $k[$j++] = $get($1.Avals, _Cu); //#17491 + $1.addtocws(); //#17491 + $1.i = $1.i + 2; //#17492 + break; //#17493 + } //#17493 + $k[$j++] = 'newmode'; //#17495 + $1.lookup(); //#17495 + var _D4 = $k[--$j]; //#17495 + $1[$k[--$j]] = _D4; //#17495 + if ($1.newmode != $1.mode) { //#17500 + $k[$j++] = $get($1.Avals, $get($a([-1, $1.lC, $1.lT, $1.lX, $1.lE, $1.lB]), $1.newmode)); //#17497 + $1.addtocws(); //#17497 + $1.mode = $1.newmode; //#17498 + break; //#17499 + } //#17499 + $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); //#17501 + $1.addtocws(); //#17501 + $1.i = $1.i + 1; //#17502 + break; //#17503 + } //#17503 + }; //#17505 $1.CTXvalstocws = function() { - $1.in = $k[--$j]; - $k[$j++] = Infinity; - for (var _DS = 0, _DR = $1.in.length - 1; _DS <= _DR; _DS += 3) { - var _DU = $geti($1.in, _DS, 3); - $k[$j++] = 0; - for (var _DV = 0, _DW = _DU.length; _DV < _DW; _DV++) { - var _DY = $k[--$j]; - $k[$j++] = $f(_DY + $get(_DU, _DV)) * 40; - } - var _Da = ~~($k[--$j] / 40) + 1; - $k[$j++] = ~~(_Da / 256); - $k[$j++] = _Da % 256; - } - $astore($a($counttomark())); - var _Dd = $k[--$j]; - var _De = $k[--$j]; - $k[$j++] = _Dd; - $k[$j++] = _De; - $j--; - }; + $1.in = $k[--$j]; //#17508 + $k[$j++] = Infinity; //#17509 + for (var _DS = 0, _DR = $1.in.length - 1; _DS <= _DR; _DS += 3) { //#17513 + var _DU = $geti($1.in, _DS, 3); //#17511 + $k[$j++] = 0; //#17511 + for (var _DV = 0, _DW = _DU.length; _DV < _DW; _DV++) { //#17511 + var _DY = $k[--$j]; //#17511 + $k[$j++] = $f(_DY + $get(_DU, _DV)) * 40; //#17511 + } //#17511 + var _Da = (~~($k[--$j] / 40)) + 1; //#17512 + $k[$j++] = ~~(_Da / 256); //#17512 + $k[$j++] = _Da % 256; //#17512 + } //#17512 + $astore($a($counttomark())); //#17514 + var _Dd = $k[--$j]; //#17514 + var _De = $k[--$j]; //#17514 + $k[$j++] = _Dd; //#17514 + $k[$j++] = _De; //#17514 + $j--; //#17514 + }; //#17515 $1.encCTX = function() { - $1.p = 0; - $1.ctxvals = $a(2500); - $1.done = false; - for (;;) { - if ($1.i == $1.msglen) { - break; - } - var _Do = $get($get($1.encvals, $1.mode), $get($1.msg, $1.i)) !== undefined; - if (!_Do) { - break; - } - if ($1.p % 3 == 0) { - $k[$j++] = "newmode"; - $1.lookup(); - var _Dq = $k[--$j]; - $1[$k[--$j]] = _Dq; - if ($ne($1.newmode, $1.mode)) { - $k[$j++] = $geti($1.ctxvals, 0, $1.p); - $1.CTXvalstocws(); - $1.addtocws(); - $k[$j++] = $a([ $1.unlcw ]); - $1.addtocws(); - if ($1.newmode != $1.A) { - $k[$j++] = $get($1.Avals, $get($a([ -1, $1.lC, $1.lT, $1.lX, $1.lE, $1.lB ]), $1.newmode)); - $1.addtocws(); - } - $1.mode = $1.newmode; - $1.done = true; - break; - } - if ($1.msglen - $1.i <= 3) { - $1.remcws = $get($1.numremcws, $1.j + ~~($1.p / 3) * 2); - $k[$j++] = Infinity; - var _EM = $geti($1.msg, $1.i, $1.msglen - $1.i); - for (var _EN = 0, _EO = _EM.length; _EN < _EO; _EN++) { - var _EP = $get(_EM, _EN); - var _ET = $get($get($1.encvals, $1.mode), _EP) !== undefined; - $k[$j++] = _EP; - if (_ET) { - $aload($get($get($1.encvals, $1.mode), $k[--$j])); - } else { - $j--; - $k[$j++] = -1; - $k[$j++] = -1; - $k[$j++] = -1; - $k[$j++] = -1; - } - } - $1.remvals = $a(); - if ($1.remcws == 2 && $1.remvals.length == 3) { - $k[$j++] = Infinity; - $aload($geti($1.ctxvals, 0, $1.p)); - $aload($1.remvals); - var _Eg = $a(); - $k[$j++] = _Eg; - $1.CTXvalstocws(); - $1.addtocws(); - $1.mode = $1.A; - $1.i = $1.msglen; - $1.done = true; - break; - } - if ($1.remcws == 2 && $1.remvals.length == 2 && $1.mode != $1.X) { - $k[$j++] = Infinity; - $aload($geti($1.ctxvals, 0, $1.p)); - $aload($1.remvals); - $aload($get($get($1.encvals, $1.mode), $1.sft1)); - var _Ew = $a(); - $k[$j++] = _Ew; - $1.CTXvalstocws(); - $1.addtocws(); - $1.mode = $1.A; - $1.i = $1.msglen; - $1.done = true; - break; - } - if ($1.remcws == 2 && $1.remvals.length == 1) { - $k[$j++] = $geti($1.ctxvals, 0, $1.p); - $1.CTXvalstocws(); - $1.addtocws(); - $k[$j++] = $a([ $1.unlcw ]); - $1.addtocws(); - $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); - $1.addtocws(); - $1.mode = $1.A; - $1.i = $1.msglen; - $1.done = true; - break; - } - if ($1.remcws == 1 && $1.remvals.length == 1) { - $k[$j++] = $geti($1.ctxvals, 0, $1.p); - $1.CTXvalstocws(); - $1.addtocws(); - $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); - $1.addtocws(); - $1.mode = $1.A; - $1.i = $1.msglen; - $1.done = true; - break; - } - } - } - var _FV = $get($get($1.encvals, $1.mode), $get($1.msg, $1.i)); - $puti($1.ctxvals, $1.p, _FV); - $1.p = _FV.length + $1.p; - $1.i = $1.i + 1; - } - if (!$1.done) { - for (;;) { - if ($1.p % 3 == 0) { - break; - } - $1.i = $1.i - 1; - $1.p = $1.p - $get($get($1.encvals, $1.mode), $get($1.msg, $1.i)).length; - } - $k[$j++] = Infinity; - $aload($geti($1.ctxvals, 0, $1.p)); - var _Fo = $a(); - $k[$j++] = _Fo; - $1.CTXvalstocws(); - $1.addtocws(); - $k[$j++] = $a([ $1.unlcw ]); - $1.addtocws(); - $1.mode = $1.A; - if ($1.i != $1.msglen && $nt($get($1.isECI, $1.i))) { - if ($get($1.numD, $1.i) >= 2) { - var _G0 = $s(2); - $put(_G0, 0, $get($1.msg, $1.i)); - $put(_G0, 1, $get($1.msg, $1.i + 1)); - $k[$j++] = $get($1.Avals, _G0); - $1.addtocws(); - $1.i = $1.i + 2; - } else { - $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); - $1.addtocws(); - $1.i = $1.i + 1; - } - } - } - }; + $1.p = 0; //#17518 + $1.ctxvals = $a(2500); //#17519 + $1.done = false; //#17520 + for (;;) { //#17597 + if ($1.i == $1.msglen) { //#17524 + break; //#17524 + } //#17524 + var _Do = $get($get($1.encvals, $1.mode), $get($1.msg, $1.i)) !== undefined; //#17525 + if (!_Do) { //#17525 + break; //#17525 + } //#17525 + if (($1.p % 3) == 0) { //#17592 + $k[$j++] = 'newmode'; //#17527 + $1.lookup(); //#17527 + var _Dq = $k[--$j]; //#17527 + $1[$k[--$j]] = _Dq; //#17527 + if ($ne($1.newmode, $1.mode)) { //#17537 + $k[$j++] = $geti($1.ctxvals, 0, $1.p); //#17529 + $1.CTXvalstocws(); //#17529 + $1.addtocws(); //#17529 + $k[$j++] = $a([$1.unlcw]); //#17530 + $1.addtocws(); //#17530 + if ($1.newmode != $1.A) { //#17533 + $k[$j++] = $get($1.Avals, $get($a([-1, $1.lC, $1.lT, $1.lX, $1.lE, $1.lB]), $1.newmode)); //#17532 + $1.addtocws(); //#17532 + } //#17532 + $1.mode = $1.newmode; //#17534 + $1.done = true; //#17535 + break; //#17536 + } //#17536 + if (($1.msglen - $1.i) <= 3) { //#17591 + $1.remcws = $get($1.numremcws, $1.j + ((~~($1.p / 3)) * 2)); //#17539 + $k[$j++] = Infinity; //#17545 + var _EM = $geti($1.msg, $1.i, $1.msglen - $1.i); //#17541 + for (var _EN = 0, _EO = _EM.length; _EN < _EO; _EN++) { //#17547 + var _EP = $get(_EM, _EN); //#17547 + var _ET = $get($get($1.encvals, $1.mode), _EP) !== undefined; //#17542 + $k[$j++] = _EP; //#17546 + if (_ET) { //#17545 + $aload($get($get($1.encvals, $1.mode), $k[--$j])); //#17543 + } else { //#17545 + $j--; //#17545 + $k[$j++] = -1; //#17545 + $k[$j++] = -1; //#17545 + $k[$j++] = -1; //#17545 + $k[$j++] = -1; //#17545 + } //#17545 + } //#17545 + $1.remvals = $a(); //#17545 + if (($1.remcws == 2) && ($1.remvals.length == 3)) { //#17559 + $k[$j++] = Infinity; //#17553 + $aload($geti($1.ctxvals, 0, $1.p)); //#17552 + $aload($1.remvals); //#17553 + var _Eg = $a(); //#17553 + $k[$j++] = _Eg; //#17554 + $1.CTXvalstocws(); //#17554 + $1.addtocws(); //#17554 + $1.mode = $1.A; //#17555 + $1.i = $1.msglen; //#17556 + $1.done = true; //#17557 + break; //#17558 + } //#17558 + if ((($1.remcws == 2) && ($1.remvals.length == 2)) && ($1.mode != $1.X)) { //#17571 + $k[$j++] = Infinity; //#17565 + $aload($geti($1.ctxvals, 0, $1.p)); //#17563 + $aload($1.remvals); //#17564 + $aload($get($get($1.encvals, $1.mode), $1.sft1)); //#17565 + var _Ew = $a(); //#17565 + $k[$j++] = _Ew; //#17566 + $1.CTXvalstocws(); //#17566 + $1.addtocws(); //#17566 + $1.mode = $1.A; //#17567 + $1.i = $1.msglen; //#17568 + $1.done = true; //#17569 + break; //#17570 + } //#17570 + if (($1.remcws == 2) && ($1.remvals.length == 1)) { //#17581 + $k[$j++] = $geti($1.ctxvals, 0, $1.p); //#17574 + $1.CTXvalstocws(); //#17574 + $1.addtocws(); //#17574 + $k[$j++] = $a([$1.unlcw]); //#17575 + $1.addtocws(); //#17575 + $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); //#17576 + $1.addtocws(); //#17576 + $1.mode = $1.A; //#17577 + $1.i = $1.msglen; //#17578 + $1.done = true; //#17579 + break; //#17580 + } //#17580 + if (($1.remcws == 1) && ($1.remvals.length == 1)) { //#17590 + $k[$j++] = $geti($1.ctxvals, 0, $1.p); //#17584 + $1.CTXvalstocws(); //#17584 + $1.addtocws(); //#17584 + $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); //#17585 + $1.addtocws(); //#17585 + $1.mode = $1.A; //#17586 + $1.i = $1.msglen; //#17587 + $1.done = true; //#17588 + break; //#17589 + } //#17589 + } //#17589 + } //#17589 + var _FV = $get($get($1.encvals, $1.mode), $get($1.msg, $1.i)); //#17593 + $puti($1.ctxvals, $1.p, _FV); //#17594 + $1.p = _FV.length + $1.p; //#17595 + $1.i = $1.i + 1; //#17596 + } //#17596 + if (!$1.done) { //#17621 + for (;;) { //#17605 + if (($1.p % 3) == 0) { //#17602 + break; //#17602 + } //#17602 + $1.i = $1.i - 1; //#17603 + $1.p = $1.p - $get($get($1.encvals, $1.mode), $get($1.msg, $1.i)).length; //#17604 + } //#17604 + $k[$j++] = Infinity; //#17607 + $aload($geti($1.ctxvals, 0, $1.p)); //#17607 + var _Fo = $a(); //#17607 + $k[$j++] = _Fo; //#17608 + $1.CTXvalstocws(); //#17608 + $1.addtocws(); //#17608 + $k[$j++] = $a([$1.unlcw]); //#17609 + $1.addtocws(); //#17609 + $1.mode = $1.A; //#17610 + if (($1.i != $1.msglen) && $nt($get($1.isECI, $1.i))) { //#17620 + if ($get($1.numD, $1.i) >= 2) { //#17618 + var _G0 = $s(2); //#17614 + $put(_G0, 0, $get($1.msg, $1.i)); //#17614 + $put(_G0, 1, $get($1.msg, $1.i + 1)); //#17614 + $k[$j++] = $get($1.Avals, _G0); //#17614 + $1.addtocws(); //#17614 + $1.i = $1.i + 2; //#17615 + } else { //#17618 + $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); //#17617 + $1.addtocws(); //#17617 + $1.i = $1.i + 1; //#17618 + } //#17618 + } //#17618 + } //#17618 + }; //#17623 $1.Evalstocws = function() { - $1.in = $k[--$j]; - $1.inlen = $1.in.length; - $1.outlen = ~~Math.ceil($1.in.length / 4 * 3); - $k[$j++] = Infinity; - $aload($1.in); - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $1.in = $a(); - $k[$j++] = Infinity; - for (var _GN = 0, _GM = $1.inlen - 1; _GN <= _GM; _GN += 4) { - var _GP = $geti($1.in, _GN, 4); - $k[$j++] = 0; - for (var _GQ = 0, _GR = _GP.length; _GQ < _GR; _GQ++) { - var _GT = $k[--$j]; - $k[$j++] = $or(_GT, $get(_GP, _GQ)) << 6; - } - var _GV = $k[--$j] >>> 6; - $k[$j++] = _GV >>> 16 & 255; - $k[$j++] = _GV >>> 8 & 255; - $k[$j++] = _GV & 255; - } - $astore($a($counttomark())); - var _GY = $k[--$j]; - var _GZ = $k[--$j]; - $k[$j++] = _GY; - $k[$j++] = _GZ; - $j--; - var _Gc = $geti($k[--$j], 0, $1.outlen); - $k[$j++] = _Gc; - }; + $1.in = $k[--$j]; //#17626 + $1.inlen = $1.in.length; //#17627 + $1.outlen = ~~(Math.ceil(($1.in.length / 4) * 3)); //#17628 + $k[$j++] = Infinity; //#17629 + $aload($1.in); //#17629 + $k[$j++] = 0; //#17629 + $k[$j++] = 0; //#17629 + $k[$j++] = 0; //#17629 + $1.in = $a(); //#17629 + $k[$j++] = Infinity; //#17630 + for (var _GN = 0, _GM = $1.inlen - 1; _GN <= _GM; _GN += 4) { //#17636 + var _GP = $geti($1.in, _GN, 4); //#17632 + $k[$j++] = 0; //#17632 + for (var _GQ = 0, _GR = _GP.length; _GQ < _GR; _GQ++) { //#17632 + var _GT = $k[--$j]; //#17632 + $k[$j++] = $or(_GT, $get(_GP, _GQ)) << 6; //#17632 + } //#17632 + var _GV = $k[--$j] >>> 6; //#17633 + $k[$j++] = (_GV >>> 16) & 255; //#17635 + $k[$j++] = (_GV >>> 8) & 255; //#17635 + $k[$j++] = _GV & 255; //#17635 + } //#17635 + $astore($a($counttomark())); //#17637 + var _GY = $k[--$j]; //#17637 + var _GZ = $k[--$j]; //#17637 + $k[$j++] = _GY; //#17637 + $k[$j++] = _GZ; //#17637 + $j--; //#17637 + var _Gc = $geti($k[--$j], 0, $1.outlen); //#17638 + $k[$j++] = _Gc; //#17638 + }; //#17639 $1.encE = function() { - $1.p = 0; - $1.edifactvals = $a(2100); - for (;;) { - if ($1.i == $1.msglen) { - break; - } - var _Gk = $get($1.Evals, $get($1.msg, $1.i)) !== undefined; - if (!_Gk) { - break; - } - if ($1.p % 4 == 0) { - if ($1.msglen - $1.i <= 2) { - $1.remcws = $get($1.numremcws, $1.j + ~~($1.p / 4) * 3); - $k[$j++] = Infinity; - var _Gw = $geti($1.msg, $1.i, $1.msglen - $1.i); - for (var _Gx = 0, _Gy = _Gw.length; _Gx < _Gy; _Gx++) { - $aload($get($1.Avals, $get(_Gw, _Gx))); - } - $1.remvals = $a(); - if (($1.remcws == 1 || $1.remcws == 2) && $1.remvals.length <= $1.remcws) { - $k[$j++] = $geti($1.edifactvals, 0, $1.p); - $1.Evalstocws(); - $1.addtocws(); - $k[$j++] = $1.remvals; - $1.addtocws(); - $1.mode = $1.A; - $1.i = $1.msglen; - break; - } - } - $1.lookup(); - if ($k[--$j] != $1.mode) { - break; - } - } - var _HJ = $get($1.Evals, $get($1.msg, $1.i)); - $puti($1.edifactvals, $1.p, _HJ); - $1.p = _HJ.length + $1.p; - $1.i = $1.i + 1; - } - if ($1.mode != $1.A) { - $1.remcws = $f($get($1.numremcws, $1.j + ~~($1.p / 4) * 3 - 1) - 1); - if ($1.p % 4 != 0 || $1.i != $1.msglen || $1.remcws >= 3) { - var _Ha = $get($1.Evals, $1.unl); - $puti($1.edifactvals, $1.p, _Ha); - $1.p = _Ha.length + $1.p; - } - $k[$j++] = $geti($1.edifactvals, 0, $1.p); - $1.Evalstocws(); - $1.addtocws(); - $1.mode = $1.A; - if ($1.i != $1.msglen && $nt($get($1.isECI, $1.i))) { - if ($get($1.numD, $1.i) >= 2) { - var _Hq = $s(2); - $put(_Hq, 0, $get($1.msg, $1.i)); - $put(_Hq, 1, $get($1.msg, $1.i + 1)); - $k[$j++] = $get($1.Avals, _Hq); - $1.addtocws(); - $1.i = $1.i + 2; - } else { - $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); - $1.addtocws(); - $1.i = $1.i + 1; - } - } - } - }; + $1.p = 0; //#17642 + $1.edifactvals = $a(2100); //#17643 + for (;;) { //#17672 + if ($1.i == $1.msglen) { //#17647 + break; //#17647 + } //#17647 + var _Gk = $get($1.Evals, $get($1.msg, $1.i)) !== undefined; //#17648 + if (!_Gk) { //#17648 + break; //#17648 + } //#17648 + if (($1.p % 4) == 0) { //#17667 + if (($1.msglen - $1.i) <= 2) { //#17665 + $1.remcws = $get($1.numremcws, $1.j + ((~~($1.p / 4)) * 3)); //#17651 + $k[$j++] = Infinity; //#17654 + var _Gw = $geti($1.msg, $1.i, $1.msglen - $1.i); //#17653 + for (var _Gx = 0, _Gy = _Gw.length; _Gx < _Gy; _Gx++) { //#17655 + $aload($get($1.Avals, $get(_Gw, _Gx))); //#17654 + } //#17654 + $1.remvals = $a(); //#17654 + if ((($1.remcws == 1) || ($1.remcws == 2)) && ($1.remvals.length <= $1.remcws)) { //#17664 + $k[$j++] = $geti($1.edifactvals, 0, $1.p); //#17659 + $1.Evalstocws(); //#17659 + $1.addtocws(); //#17659 + $k[$j++] = $1.remvals; //#17660 + $1.addtocws(); //#17660 + $1.mode = $1.A; //#17661 + $1.i = $1.msglen; //#17662 + break; //#17663 + } //#17663 + } //#17663 + $1.lookup(); //#17666 + if ($k[--$j] != $1.mode) { //#17666 + break; //#17666 + } //#17666 + } //#17666 + var _HJ = $get($1.Evals, $get($1.msg, $1.i)); //#17668 + $puti($1.edifactvals, $1.p, _HJ); //#17669 + $1.p = _HJ.length + $1.p; //#17670 + $1.i = $1.i + 1; //#17671 + } //#17671 + if ($1.mode != $1.A) { //#17694 + $1.remcws = $f($get($1.numremcws, ($1.j + ((~~($1.p / 4)) * 3)) - 1) - 1); //#17676 + if (((($1.p % 4) != 0) || ($1.i != $1.msglen)) || ($1.remcws >= 3)) { //#17681 + var _Ha = $get($1.Evals, $1.unl); //#17678 + $puti($1.edifactvals, $1.p, _Ha); //#17679 + $1.p = _Ha.length + $1.p; //#17680 + } //#17680 + $k[$j++] = $geti($1.edifactvals, 0, $1.p); //#17682 + $1.Evalstocws(); //#17682 + $1.addtocws(); //#17682 + $1.mode = $1.A; //#17683 + if (($1.i != $1.msglen) && $nt($get($1.isECI, $1.i))) { //#17693 + if ($get($1.numD, $1.i) >= 2) { //#17691 + var _Hq = $s(2); //#17687 + $put(_Hq, 0, $get($1.msg, $1.i)); //#17687 + $put(_Hq, 1, $get($1.msg, $1.i + 1)); //#17687 + $k[$j++] = $get($1.Avals, _Hq); //#17687 + $1.addtocws(); //#17687 + $1.i = $1.i + 2; //#17688 + } else { //#17691 + $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); //#17690 + $1.addtocws(); //#17690 + $1.i = $1.i + 1; //#17691 + } //#17691 + } //#17691 + } //#17691 + }; //#17696 $1.encB = function() { - $1.p = 0; - $1.bvals = $a(1558); - for (;;) { - if ($1.i == $1.msglen) { - break; - } - $1.lookup(); - if ($k[--$j] != $1.mode) { - break; - } - $put($1.bvals, $1.p, $get($1.msg, $1.i)); - $1.p = $1.p + 1; - $1.i = $1.i + 1; - } - $1.remcws = $f($get($1.numremcws, $1.j + $1.p) - 1); - $k[$j++] = Infinity; - if ($1.remcws == 0 && $1.i == $1.msglen) { - $k[$j++] = 0; - } else { - if ($1.p < 250) { - $k[$j++] = $1.p; - } else { - $k[$j++] = ~~($1.p / 250) + 249; - $k[$j++] = $1.p % 250; - } - } - $aload($geti($1.bvals, 0, $1.p)); - $1.bvals = $a(); - for (var _IZ = 0, _IY = $1.bvals.length - 1; _IZ <= _IY; _IZ += 1) { - $1.p = _IZ; - var _If = $f(($1.j + $1.p + 1) * 149 % 255 + 1 + $get($1.bvals, $1.p)); - $k[$j++] = _If; - if (_If >= 256) { - var _Ig = $k[--$j]; - $k[$j++] = $f(_Ig - 256); - } - $put($1.bvals, $1.p, $k[--$j]); - } - $k[$j++] = $1.bvals; - $1.addtocws(); - $1.mode = $1.A; - }; - $1.cws = $a(1558); - $1.mode = $1.A; - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i >= $1.msglen) { + $1.p = 0; //#17699 + $1.bvals = $a(1558); //#17699 + for (;;) { //#17705 + if ($1.i == $1.msglen) { //#17700 + break; //#17700 + } //#17700 + $1.lookup(); //#17701 + if ($k[--$j] != $1.mode) { //#17701 + break; //#17701 + } //#17701 + $put($1.bvals, $1.p, $get($1.msg, $1.i)); //#17702 + $1.p = $1.p + 1; //#17703 + $1.i = $1.i + 1; //#17704 + } //#17704 + $1.remcws = $f($get($1.numremcws, $1.j + $1.p) - 1); //#17706 + $k[$j++] = Infinity; //#17713 + if (($1.remcws == 0) && ($1.i == $1.msglen)) { //#17711 + $k[$j++] = 0; //#17709 + } else { //#17711 + if ($1.p < 250) { //#17711 + $k[$j++] = $1.p; //#17711 + } else { //#17711 + $k[$j++] = (~~($1.p / 250)) + 249; //#17711 + $k[$j++] = $1.p % 250; //#17711 + } //#17711 + } //#17711 + $aload($geti($1.bvals, 0, $1.p)); //#17713 + $1.bvals = $a(); //#17713 + for (var _IZ = 0, _IY = $1.bvals.length - 1; _IZ <= _IY; _IZ += 1) { //#17720 + $1.p = _IZ; //#17716 + var _If = $f(((((($1.j + $1.p) + 1) * 149) % 255) + 1) + $get($1.bvals, $1.p)); //#17718 + $k[$j++] = _If; //#17718 + if (_If >= 256) { //#17718 + var _Ig = $k[--$j]; //#17718 + $k[$j++] = $f(_Ig - 256); //#17718 + } //#17718 + $put($1.bvals, $1.p, $k[--$j]); //#17719 + } //#17719 + $k[$j++] = $1.bvals; //#17721 + $1.addtocws(); //#17721 + $1.mode = $1.A; //#17722 + }; //#17723 + $1.cws = $a(1558); //#17726 + $1.mode = $1.A; //#17727 + $1.i = 0; //#17727 + $1.j = 0; //#17727 + for (;;) { //#17730 + if ($1.i >= $1.msglen) { //#17728 + break; //#17728 + } //#17728 + if ($1[$get($a(['encA', 'encCTX', 'encCTX', 'encCTX', 'encE', 'encB']), $1.mode)]() === true) { break; - } - if ($1[$get($a([ "encA", "encCTX", "encCTX", "encCTX", "encE", "encB" ]), $1.mode)]() === true) { - break; - } - } - $1.cws = $geti($1.cws, 0, $1.j); - } - $1.datlen = $1.cws.length; - $1.remcws = $f($get($1.numremcws, $1.j - 1) - 1); - if ($1.remcws > 0) { - $k[$j++] = Infinity; - $aload($1.cws); - for (var _J4 = 0, _J5 = $1.remcws; _J4 < _J5; _J4++) { - $k[$j++] = 129; - } - $1.cws = $a(); - for (var _JB = $1.datlen + 1, _JA = $f($f($1.datlen + $1.remcws) - 1); _JB <= _JA; _JB += 1) { - $1.i = _JB; - var _JD = ($1.i + 1) * 149 % 253 + 1 + 129; - $k[$j++] = _JD; - if (_JD > 254) { - var _JE = $k[--$j]; - $k[$j++] = $f(_JE - 254); - } - $put($1.cws, $1.i, $k[--$j]); - } - } - $1.i = 0; - for (;;) { - $1.m = $get($1.metrics, $1.i); - $1.rows = $get($1.m, 0); - $1.cols = $get($1.m, 1); - $1.regh = $get($1.m, 2); - $1.regv = $get($1.m, 3); - $1.rscw = $get($1.m, 4); - $1.rsbl = $get($1.m, 5); - $1.mrows = $f($1.rows - 2 * $1.regh); - $1.mcols = $f($1.cols - 2 * $1.regv); - $1.rrows = ~~($1.mrows / $1.regh); - $1.rcols = ~~($1.mcols / $1.regv); - $1.ncws = $f(~~($1.mrows * $1.mcols / 8) - $1.rscw); - $1.okay = true; - if ($1.cws.length != $1.ncws) { - $1.okay = false; - } - if ($1.urows != 0 && $1.urows != $1.rows) { - $1.okay = false; - } - if ($1.ucols != 0 && $1.ucols != $1.cols) { - $1.okay = false; - } - if ($eq($1.format, "square") && $ne($1.rows, $1.cols)) { - $1.okay = false; - } - if ($eq($1.format, "rectangle") && $eq($1.rows, $1.cols)) { - $1.okay = false; - } - if ($1.okay) { - break; - } - $1.i = $1.i + 1; - } - $1.cwbs = $a($1.rsbl); - $1.ecbs = $a($1.rsbl); - for (var _K4 = 0, _K3 = $f($1.rsbl - 1); _K4 <= _K3; _K4 += 1) { - $1.i = _K4; - if ($1.cws.length != 1558) { - $1.cwbsize = ~~($1.cws.length / $1.rsbl); - } else { - if ($1.i <= 7) { - $1.cwbsize = 156; - } else { - $1.cwbsize = 155; - } - } - $1.cwb = $a($1.cwbsize); - for (var _KD = 0, _KC = $1.cwbsize - 1; _KD <= _KC; _KD += 1) { - $1.j = _KD; - $put($1.cwb, $1.j, $get($1.cws, $f($1.j * $1.rsbl + $1.i))); - } - $put($1.cwbs, $1.i, $1.cwb); - $k[$j++] = $1.ecbs; - $k[$j++] = $1.i; - $k[$j++] = Infinity; - for (var _KS = 0, _KT = ~~($1.rscw / $1.rsbl); _KS < _KT; _KS++) { - $k[$j++] = 0; - } - var _KU = $a(); - var _KV = $k[--$j]; - $put($k[--$j], _KV, _KU); - } - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _KX = 0, _KY = 255; _KX < _KY; _KX++) { - var _KZ = $k[--$j]; - var _Ka = _KZ * 2; - $k[$j++] = _KZ; - $k[$j++] = _Ka; - if (_Ka >= 256) { - var _Kb = $k[--$j]; - $k[$j++] = _Kb ^ 301; - } - } - $1.rsalog = $a(); - $1.rslog = $a(256); - for (var _Ke = 1; _Ke <= 255; _Ke += 1) { - $put($1.rslog, $get($1.rsalog, _Ke), _Ke); - } + } //#17729 + } //#17729 + $1.cws = $geti($1.cws, 0, $1.j); //#17731 + } //#17731 + $1.datlen = $1.cws.length; //#17736 + $1.remcws = $f($get($1.numremcws, $1.j - 1) - 1); //#17737 + if ($1.remcws > 0) { //#17746 + $k[$j++] = Infinity; //#17739 + $aload($1.cws); //#17739 + for (var _J4 = 0, _J5 = $1.remcws; _J4 < _J5; _J4++) { //#17739 + $k[$j++] = 129; //#17739 + } //#17739 + $1.cws = $a(); //#17739 + for (var _JB = $1.datlen + 1, _JA = $f($f($1.datlen + $1.remcws) - 1); _JB <= _JA; _JB += 1) { //#17745 + $1.i = _JB; //#17741 + var _JD = (((($1.i + 1) * 149) % 253) + 1) + 129; //#17743 + $k[$j++] = _JD; //#17743 + if (_JD > 254) { //#17743 + var _JE = $k[--$j]; //#17743 + $k[$j++] = $f(_JE - 254); //#17743 + } //#17743 + $put($1.cws, $1.i, $k[--$j]); //#17744 + } //#17744 + } //#17744 + $1.i = 0; //#17749 + for (;;) { //#17770 + $1.m = $get($1.metrics, $1.i); //#17750 + $1.rows = $get($1.m, 0); //#17751 + $1.cols = $get($1.m, 1); //#17752 + $1.regh = $get($1.m, 2); //#17753 + $1.regv = $get($1.m, 3); //#17754 + $1.rscw = $get($1.m, 4); //#17755 + $1.rsbl = $get($1.m, 5); //#17756 + $1.mrows = $f($1.rows - (2 * $1.regh)); //#17757 + $1.mcols = $f($1.cols - (2 * $1.regv)); //#17758 + $1.rrows = ~~($1.mrows / $1.regh); //#17759 + $1.rcols = ~~($1.mcols / $1.regv); //#17760 + $1.ncws = $f((~~(($1.mrows * $1.mcols) / 8)) - $1.rscw); //#17761 + $1.okay = true; //#17762 + if ($1.cws.length != $1.ncws) { //#17763 + $1.okay = false; //#17763 + } //#17763 + if (($1.urows != 0) && ($1.urows != $1.rows)) { //#17764 + $1.okay = false; //#17764 + } //#17764 + if (($1.ucols != 0) && ($1.ucols != $1.cols)) { //#17765 + $1.okay = false; //#17765 + } //#17765 + if ($eq($1.format, "square") && $ne($1.rows, $1.cols)) { //#17766 + $1.okay = false; //#17766 + } //#17766 + if ($eq($1.format, "rectangle") && $eq($1.rows, $1.cols)) { //#17767 + $1.okay = false; //#17767 + } //#17767 + if ($1.okay) { //#17768 + break; //#17768 + } //#17768 + $1.i = $1.i + 1; //#17769 + } //#17769 + $1.cwbs = $a($1.rsbl); //#17773 + $1.ecbs = $a($1.rsbl); //#17774 + for (var _K4 = 0, _K3 = $f($1.rsbl - 1); _K4 <= _K3; _K4 += 1) { //#17789 + $1.i = _K4; //#17776 + if ($1.cws.length != 1558) { //#17780 + $1.cwbsize = ~~($1.cws.length / $1.rsbl); //#17778 + } else { //#17780 + if ($1.i <= 7) { //#17780 + $1.cwbsize = 156; //#17780 + } else { //#17780 + $1.cwbsize = 155; //#17780 + } //#17780 + } //#17780 + $1.cwb = $a($1.cwbsize); //#17782 + for (var _KD = 0, _KC = $1.cwbsize - 1; _KD <= _KC; _KD += 1) { //#17786 + $1.j = _KD; //#17784 + $put($1.cwb, $1.j, $get($1.cws, $f(($1.j * $1.rsbl) + $1.i))); //#17785 + } //#17785 + $put($1.cwbs, $1.i, $1.cwb); //#17787 + $k[$j++] = $1.ecbs; //#17788 + $k[$j++] = $1.i; //#17788 + $k[$j++] = Infinity; //#17788 + for (var _KS = 0, _KT = ~~($1.rscw / $1.rsbl); _KS < _KT; _KS++) { //#17788 + $k[$j++] = 0; //#17788 + } //#17788 + var _KU = $a(); //#17788 + var _KV = $k[--$j]; //#17788 + $put($k[--$j], _KV, _KU); //#17788 + } //#17788 + $k[$j++] = Infinity; //#17792 + $k[$j++] = 1; //#17792 + for (var _KX = 0, _KY = 255; _KX < _KY; _KX++) { //#17792 + var _KZ = $k[--$j]; //#17792 + var _Ka = _KZ * 2; //#17792 + $k[$j++] = _KZ; //#17792 + $k[$j++] = _Ka; //#17792 + if (_Ka >= 256) { //#17792 + var _Kb = $k[--$j]; //#17792 + $k[$j++] = _Kb ^ 301; //#17792 + } //#17792 + } //#17792 + $1.rsalog = $a(); //#17792 + $1.rslog = $a(256); //#17793 + for (var _Ke = 1; _Ke <= 255; _Ke += 1) { //#17794 + $put($1.rslog, $get($1.rsalog, _Ke), _Ke); //#17794 + } //#17794 $1.rsprod = function() { - var _Ki = $k[--$j]; - var _Kj = $k[--$j]; - $k[$j++] = _Kj; - $k[$j++] = _Ki; - if (_Ki != 0 && _Kj != 0) { - var _Km = $get($1.rslog, $k[--$j]); - var _Kr = $get($1.rsalog, $f(_Km + $get($1.rslog, $k[--$j])) % 255); - $k[$j++] = _Kr; - } else { - $j -= 2; - $k[$j++] = 0; - } - }; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _Ku = 0, _Kv = ~~($1.rscw / $1.rsbl); _Ku < _Kv; _Ku++) { - $k[$j++] = 0; - } - $1.coeffs = $a(); - for (var _L0 = 1, _Kz = ~~($1.rscw / $1.rsbl); _L0 <= _Kz; _L0 += 1) { - $1.i = _L0; - $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); - for (var _L7 = $1.i - 1; _L7 >= 1; _L7 -= 1) { - $1.j = _L7; - $k[$j++] = $1.coeffs; - $k[$j++] = $1.j; - $k[$j++] = $get($1.coeffs, $1.j - 1); - $k[$j++] = $get($1.coeffs, $1.j); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _LJ = $k[--$j]; - var _LK = $k[--$j]; - var _LL = $k[--$j]; - $put($k[--$j], _LL, $xo(_LK, _LJ)); - } - $k[$j++] = $1.coeffs; - $k[$j++] = 0; - $k[$j++] = $get($1.coeffs, 0); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _LT = $k[--$j]; - var _LU = $k[--$j]; - $put($k[--$j], _LU, _LT); - } - $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); - for (var _Lb = 0, _La = $1.cwbs.length - 1; _Lb <= _La; _Lb += 1) { - $1.i = _Lb; - $1.cwb = $get($1.cwbs, $1.i); - $1.ecb = $get($1.ecbs, $1.i); - for (var _Lk = 0, _Lj = $1.cwb.length - 1; _Lk <= _Lj; _Lk += 1) { - $1.t = $xo($get($1.cwb, _Lk), $get($1.ecb, 0)); - for (var _Lq = $1.ecb.length - 1; _Lq >= 0; _Lq -= 1) { - $1.j = _Lq; - $1.p = $1.ecb.length - $1.j - 1; - $k[$j++] = $1.ecb; - $k[$j++] = $1.p; - $k[$j++] = $1.t; - $k[$j++] = $get($1.coeffs, $1.j); - $1.rsprod(); - var _Lz = $k[--$j]; - var _M0 = $k[--$j]; - $put($k[--$j], _M0, _Lz); - if ($1.j > 0) { - $put($1.ecb, $1.p, $xo($get($1.ecb, $1.p + 1), $get($1.ecb, $1.p))); - } - } - } - } - if ($1.ncws == 1558) { - $k[$j++] = Infinity; - var _MD = $geti($1.ecbs, 8, 2); - for (var _ME = 0, _MF = _MD.length; _ME < _MF; _ME++) { - $k[$j++] = $get(_MD, _ME); - } - var _MI = $geti($1.ecbs, 0, 8); - for (var _MJ = 0, _MK = _MI.length; _MJ < _MK; _MJ++) { - $k[$j++] = $get(_MI, _MJ); - } - $1.ecbs = $a(); - } - $k[$j++] = Infinity; - var _MN = $1.cws; - for (var _MO = 0, _MP = _MN.length; _MO < _MP; _MO++) { - $k[$j++] = $get(_MN, _MO); - } - for (var _MS = 0, _MT = $1.rscw; _MS < _MT; _MS++) { - $k[$j++] = 0; - } - $1.cws = $a(); - for (var _MX = 0, _MW = $f($1.rscw - 1); _MX <= _MW; _MX += 1) { - $1.i = _MX; - $put($1.cws, $f($1.ncws + $1.i), $get($get($1.ecbs, $1.i % $1.rsbl), ~~($1.i / $1.rsbl))); - } + var _Ki = $k[--$j]; //#17798 + var _Kj = $k[--$j]; //#17798 + $k[$j++] = _Kj; //#17802 + $k[$j++] = _Ki; //#17802 + if ((_Ki != 0) && (_Kj != 0)) { //#17801 + var _Km = $get($1.rslog, $k[--$j]); //#17799 + var _Kr = $get($1.rsalog, $f(_Km + $get($1.rslog, $k[--$j])) % 255); //#17799 + $k[$j++] = _Kr; //#17799 + } else { //#17801 + $j -= 2; //#17801 + $k[$j++] = 0; //#17801 + } //#17801 + }; //#17803 + $k[$j++] = Infinity; //#17806 + $k[$j++] = 1; //#17806 + for (var _Ku = 0, _Kv = ~~($1.rscw / $1.rsbl); _Ku < _Kv; _Ku++) { //#17806 + $k[$j++] = 0; //#17806 + } //#17806 + $1.coeffs = $a(); //#17806 + for (var _L0 = 1, _Kz = ~~($1.rscw / $1.rsbl); _L0 <= _Kz; _L0 += 1) { //#17815 + $1.i = _L0; //#17808 + $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); //#17809 + for (var _L7 = $1.i - 1; _L7 >= 1; _L7 -= 1) { //#17813 + $1.j = _L7; //#17811 + $k[$j++] = $1.coeffs; //#17812 + $k[$j++] = $1.j; //#17812 + $k[$j++] = $get($1.coeffs, $1.j - 1); //#17812 + $k[$j++] = $get($1.coeffs, $1.j); //#17812 + $k[$j++] = $get($1.rsalog, $1.i); //#17812 + $1.rsprod(); //#17812 + var _LJ = $k[--$j]; //#17812 + var _LK = $k[--$j]; //#17812 + var _LL = $k[--$j]; //#17812 + $put($k[--$j], _LL, $xo(_LK, _LJ)); //#17812 + } //#17812 + $k[$j++] = $1.coeffs; //#17814 + $k[$j++] = 0; //#17814 + $k[$j++] = $get($1.coeffs, 0); //#17814 + $k[$j++] = $get($1.rsalog, $1.i); //#17814 + $1.rsprod(); //#17814 + var _LT = $k[--$j]; //#17814 + var _LU = $k[--$j]; //#17814 + $put($k[--$j], _LU, _LT); //#17814 + } //#17814 + $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); //#17816 + for (var _Lb = 0, _La = $1.cwbs.length - 1; _Lb <= _La; _Lb += 1) { //#17832 + $1.i = _Lb; //#17820 + $1.cwb = $get($1.cwbs, $1.i); //#17821 + $1.ecb = $get($1.ecbs, $1.i); //#17822 + for (var _Lk = 0, _Lj = $1.cwb.length - 1; _Lk <= _Lj; _Lk += 1) { //#17831 + $1.t = $xo($get($1.cwb, _Lk), $get($1.ecb, 0)); //#17824 + for (var _Lq = $1.ecb.length - 1; _Lq >= 0; _Lq -= 1) { //#17830 + $1.j = _Lq; //#17826 + $1.p = ($1.ecb.length - $1.j) - 1; //#17827 + $k[$j++] = $1.ecb; //#17828 + $k[$j++] = $1.p; //#17828 + $k[$j++] = $1.t; //#17828 + $k[$j++] = $get($1.coeffs, $1.j); //#17828 + $1.rsprod(); //#17828 + var _Lz = $k[--$j]; //#17828 + var _M0 = $k[--$j]; //#17828 + $put($k[--$j], _M0, _Lz); //#17828 + if ($1.j > 0) { //#17829 + $put($1.ecb, $1.p, $xo($get($1.ecb, $1.p + 1), $get($1.ecb, $1.p))); //#17829 + } //#17829 + } //#17829 + } //#17829 + } //#17829 + if ($1.ncws == 1558) { //#17837 + $k[$j++] = Infinity; //#17836 + var _MD = $geti($1.ecbs, 8, 2); //#17836 + for (var _ME = 0, _MF = _MD.length; _ME < _MF; _ME++) { //#17836 + $k[$j++] = $get(_MD, _ME); //#17836 + } //#17836 + var _MI = $geti($1.ecbs, 0, 8); //#17836 + for (var _MJ = 0, _MK = _MI.length; _MJ < _MK; _MJ++) { //#17836 + $k[$j++] = $get(_MI, _MJ); //#17836 + } //#17836 + $1.ecbs = $a(); //#17836 + } //#17836 + $k[$j++] = Infinity; //#17840 + var _MN = $1.cws; //#17840 + for (var _MO = 0, _MP = _MN.length; _MO < _MP; _MO++) { //#17840 + $k[$j++] = $get(_MN, _MO); //#17840 + } //#17840 + for (var _MS = 0, _MT = $1.rscw; _MS < _MT; _MS++) { //#17840 + $k[$j++] = 0; //#17840 + } //#17840 + $1.cws = $a(); //#17840 + for (var _MX = 0, _MW = $f($1.rscw - 1); _MX <= _MW; _MX += 1) { //#17844 + $1.i = _MX; //#17842 + $put($1.cws, $f($1.ncws + $1.i), $get($get($1.ecbs, $1.i % $1.rsbl), ~~($1.i / $1.rsbl))); //#17843 + } //#17843 $1.module = function() { - var _Mi = $k[--$j]; - var _Mj = $k[--$j]; - var _Mk = $k[--$j]; - var _Mn = $strcpy($s(8), "00000000"); - var _Mp = $cvrs($s(8), $k[--$j], 2); - $puti(_Mn, 8 - _Mp.length, _Mp); - $k[$j++] = _Mk; - $k[$j++] = _Mj; - $k[$j++] = _Mi; - $k[$j++] = _Mn; - for (var _Mq = 7; _Mq >= 0; _Mq -= 1) { - var _Mr = $k[--$j]; - $k[$j++] = $f($get(_Mr, _Mq) - 48); - $k[$j++] = _Mr; - } - $j--; - var _Mt = $k[--$j]; - var _Mu = $k[--$j]; - var _Mv = $k[--$j]; - var _Mw = $k[--$j]; - var _Mx = $k[--$j]; - var _My = $k[--$j]; - var _Mz = $k[--$j]; - var _N0 = $k[--$j]; - var _N1 = $k[--$j]; - var _N2 = $k[--$j]; - var _N3 = $k[--$j]; - $k[$j++] = _N0; - $k[$j++] = _Mz; - $k[$j++] = _My; - $k[$j++] = _Mx; - $k[$j++] = _Mw; - $k[$j++] = _Mv; - $k[$j++] = _Mu; - $k[$j++] = _Mt; - $k[$j++] = _N3; - $k[$j++] = _N2; - $forall(_N1, function() { + var _Mi = $k[--$j]; //#17849 + var _Mj = $k[--$j]; //#17849 + var _Mk = $k[--$j]; //#17849 + var _Mn = $strcpy($s(8), "00000000"); //#17850 + var _Mp = $cvrs($s(8), $k[--$j], 2); //#17850 + $puti(_Mn, 8 - _Mp.length, _Mp); //#17851 + $k[$j++] = _Mk; //#17852 + $k[$j++] = _Mj; //#17852 + $k[$j++] = _Mi; //#17852 + $k[$j++] = _Mn; //#17852 + for (var _Mq = 7; _Mq >= 0; _Mq -= 1) { //#17852 + var _Mr = $k[--$j]; //#17852 + $k[$j++] = $f($get(_Mr, _Mq) - 48); //#17852 + $k[$j++] = _Mr; //#17852 + } //#17852 + $j--; //#17852 + var _Mt = $k[--$j]; //#17853 + var _Mu = $k[--$j]; //#17853 + var _Mv = $k[--$j]; //#17853 + var _Mw = $k[--$j]; //#17853 + var _Mx = $k[--$j]; //#17853 + var _My = $k[--$j]; //#17853 + var _Mz = $k[--$j]; //#17853 + var _N0 = $k[--$j]; //#17853 + var _N1 = $k[--$j]; //#17853 + var _N2 = $k[--$j]; //#17853 + var _N3 = $k[--$j]; //#17853 + $k[$j++] = _N0; //#17870 + $k[$j++] = _Mz; //#17870 + $k[$j++] = _My; //#17870 + $k[$j++] = _Mx; //#17870 + $k[$j++] = _Mw; //#17870 + $k[$j++] = _Mv; //#17870 + $k[$j++] = _Mu; //#17870 + $k[$j++] = _Mt; //#17870 + $k[$j++] = _N3; //#17870 + $k[$j++] = _N2; //#17870 + $forall(_N1, function() { //#17870 if ($k[--$j]() === true) { return true; - } - var _N5 = $k[--$j]; - var _N6 = $k[--$j]; - $k[$j++] = _N6; - $k[$j++] = _N5; - if (_N6 < 0) { - var _N7 = $k[--$j]; - var _N8 = $k[--$j]; - $k[$j++] = $f(_N8 + $1.mrows); - $k[$j++] = $f(_N7 + $f(4 - $f($1.mrows + 4) % 8)); - } - var _NB = $k[--$j]; - $k[$j++] = _NB; - if (_NB < 0) { - var _ND = $k[--$j]; - var _NE = $k[--$j]; - $k[$j++] = $f(_NE + $f(4 - $f($1.mcols + 4) % 8)); - $k[$j++] = $f(_ND + $1.mcols); - } - var _NG = $k[--$j]; - var _NH = $k[--$j]; - $k[$j++] = _NH; - $k[$j++] = _NG; - if (_NH >= $1.mrows) { - var _NJ = $k[--$j]; - var _NK = $k[--$j]; - $k[$j++] = $f(_NK - $1.mrows); - $k[$j++] = _NJ; - } - var _NM = $k[--$j]; - var _NN = $k[--$j]; - var _NQ = $k[--$j]; - var _NR = $k[--$j]; - $put($1.mmat, $f(_NM + _NN * $1.mcols), $k[--$j]); - $k[$j++] = _NR; - $k[$j++] = _NQ; - }); - }; - var _Nj = $a([ function() { - var _NT = $k[--$j]; - var _NU = $k[--$j]; - $k[$j++] = _NU; - $k[$j++] = _NT; - $k[$j++] = $f(_NU - 2); - $k[$j++] = $f(_NT - 2); + } //#17856 + var _N5 = $k[--$j]; //#17857 + var _N6 = $k[--$j]; //#17857 + $k[$j++] = _N6; //#17860 + $k[$j++] = _N5; //#17860 + if (_N6 < 0) { //#17860 + var _N7 = $k[--$j]; //#17858 + var _N8 = $k[--$j]; //#17858 + $k[$j++] = $f(_N8 + $1.mrows); //#17859 + $k[$j++] = $f(_N7 + ($f(4 - ($f($1.mrows + 4) % 8)))); //#17859 + } //#17859 + var _NB = $k[--$j]; //#17861 + $k[$j++] = _NB; //#17864 + if (_NB < 0) { //#17864 + var _ND = $k[--$j]; //#17862 + var _NE = $k[--$j]; //#17862 + $k[$j++] = $f(_NE + ($f(4 - ($f($1.mcols + 4) % 8)))); //#17863 + $k[$j++] = $f(_ND + $1.mcols); //#17863 + } //#17863 + var _NG = $k[--$j]; //#17865 + var _NH = $k[--$j]; //#17865 + $k[$j++] = _NH; //#17867 + $k[$j++] = _NG; //#17867 + if (_NH >= $1.mrows) { //#17867 + var _NJ = $k[--$j]; //#17866 + var _NK = $k[--$j]; //#17866 + $k[$j++] = $f(_NK - $1.mrows); //#17866 + $k[$j++] = _NJ; //#17866 + } //#17866 + var _NM = $k[--$j]; //#17868 + var _NN = $k[--$j]; //#17868 + var _NQ = $k[--$j]; //#17869 + var _NR = $k[--$j]; //#17869 + $put($1.mmat, $f(_NM + (_NN * $1.mcols)), $k[--$j]); //#17869 + $k[$j++] = _NR; //#17869 + $k[$j++] = _NQ; //#17869 + }); //#17869 + }; //#17871 + var _Nj = $a([function() { + var _NT = $k[--$j]; //#17875 + var _NU = $k[--$j]; //#17875 + $k[$j++] = _NU; //#17875 + $k[$j++] = _NT; //#17875 + $k[$j++] = $f(_NU - 2); //#17875 + $k[$j++] = $f(_NT - 2); //#17875 }, function() { - var _NV = $k[--$j]; - var _NW = $k[--$j]; - $k[$j++] = _NW; - $k[$j++] = _NV; - $k[$j++] = $f(_NW - 2); - $k[$j++] = $f(_NV - 1); + var _NV = $k[--$j]; //#17875 + var _NW = $k[--$j]; //#17875 + $k[$j++] = _NW; //#17875 + $k[$j++] = _NV; //#17875 + $k[$j++] = $f(_NW - 2); //#17875 + $k[$j++] = $f(_NV - 1); //#17875 }, function() { - var _NX = $k[--$j]; - var _NY = $k[--$j]; - $k[$j++] = _NY; - $k[$j++] = _NX; - $k[$j++] = $f(_NY - 1); - $k[$j++] = $f(_NX - 2); + var _NX = $k[--$j]; //#17876 + var _NY = $k[--$j]; //#17876 + $k[$j++] = _NY; //#17876 + $k[$j++] = _NX; //#17876 + $k[$j++] = $f(_NY - 1); //#17876 + $k[$j++] = $f(_NX - 2); //#17876 }, function() { - var _NZ = $k[--$j]; - var _Na = $k[--$j]; - $k[$j++] = _Na; - $k[$j++] = _NZ; - $k[$j++] = $f(_Na - 1); - $k[$j++] = $f(_NZ - 1); + var _NZ = $k[--$j]; //#17876 + var _Na = $k[--$j]; //#17876 + $k[$j++] = _Na; //#17876 + $k[$j++] = _NZ; //#17876 + $k[$j++] = $f(_Na - 1); //#17876 + $k[$j++] = $f(_NZ - 1); //#17876 }, function() { - var _Nb = $k[--$j]; - var _Nc = $k[--$j]; - $k[$j++] = _Nc; - $k[$j++] = _Nb; - $k[$j++] = $f(_Nc - 1); - $k[$j++] = _Nb; + var _Nb = $k[--$j]; //#17877 + var _Nc = $k[--$j]; //#17877 + $k[$j++] = _Nc; //#17877 + $k[$j++] = _Nb; //#17877 + $k[$j++] = $f(_Nc - 1); //#17877 + $k[$j++] = _Nb; //#17877 }, function() { - var _Nd = $k[--$j]; - var _Ne = $k[--$j]; - $k[$j++] = _Ne; - $k[$j++] = _Nd; - $k[$j++] = _Ne; - $k[$j++] = $f(_Nd - 2); + var _Nd = $k[--$j]; //#17877 + var _Ne = $k[--$j]; //#17877 + $k[$j++] = _Ne; //#17877 + $k[$j++] = _Nd; //#17877 + $k[$j++] = _Ne; //#17877 + $k[$j++] = $f(_Nd - 2); //#17877 }, function() { - var _Nf = $k[--$j]; - var _Ng = $k[--$j]; - $k[$j++] = _Ng; - $k[$j++] = _Nf; - $k[$j++] = _Ng; - $k[$j++] = $f(_Nf - 1); + var _Nf = $k[--$j]; //#17878 + var _Ng = $k[--$j]; //#17878 + $k[$j++] = _Ng; //#17878 + $k[$j++] = _Nf; //#17878 + $k[$j++] = _Ng; //#17878 + $k[$j++] = $f(_Nf - 1); //#17878 }, function() { - var _Nh = $k[--$j]; - var _Ni = $k[--$j]; - $k[$j++] = _Ni; - $k[$j++] = _Nh; - $k[$j++] = _Ni; - $k[$j++] = _Nh; - } ]); - $1.dmn = _Nj; - var _Ns = $a([ function() { - $k[$j++] = $f($1.mrows - 1); - $k[$j++] = 0; + var _Nh = $k[--$j]; //#17878 + var _Ni = $k[--$j]; //#17878 + $k[$j++] = _Ni; //#17878 + $k[$j++] = _Nh; //#17878 + $k[$j++] = _Ni; //#17878 + $k[$j++] = _Nh; //#17878 + }]); //#17878 + $1.dmn = _Nj; //#17879 + var _Ns = $a([function() { + $k[$j++] = $f($1.mrows - 1); //#17882 + $k[$j++] = 0; //#17882 }, function() { - $k[$j++] = $f($1.mrows - 1); - $k[$j++] = 1; + $k[$j++] = $f($1.mrows - 1); //#17882 + $k[$j++] = 1; //#17882 }, function() { - $k[$j++] = $f($1.mrows - 1); - $k[$j++] = 2; + $k[$j++] = $f($1.mrows - 1); //#17883 + $k[$j++] = 2; //#17883 }, function() { - $k[$j++] = 0; - $k[$j++] = $f($1.mcols - 2); + $k[$j++] = 0; //#17883 + $k[$j++] = $f($1.mcols - 2); //#17883 }, function() { - $k[$j++] = 0; - $k[$j++] = $f($1.mcols - 1); + $k[$j++] = 0; //#17884 + $k[$j++] = $f($1.mcols - 1); //#17884 }, function() { - $k[$j++] = 1; - $k[$j++] = $f($1.mcols - 1); + $k[$j++] = 1; //#17884 + $k[$j++] = $f($1.mcols - 1); //#17884 }, function() { - $k[$j++] = 2; - $k[$j++] = $f($1.mcols - 1); + $k[$j++] = 2; //#17885 + $k[$j++] = $f($1.mcols - 1); //#17885 }, function() { - $k[$j++] = 3; - $k[$j++] = $f($1.mcols - 1); - } ]); - $1.dmc1 = _Ns; - var _O1 = $a([ function() { - $k[$j++] = $f($1.mrows - 3); - $k[$j++] = 0; + $k[$j++] = 3; //#17885 + $k[$j++] = $f($1.mcols - 1); //#17885 + }]); //#17885 + $1.dmc1 = _Ns; //#17886 + var _O1 = $a([function() { + $k[$j++] = $f($1.mrows - 3); //#17889 + $k[$j++] = 0; //#17889 }, function() { - $k[$j++] = $f($1.mrows - 2); - $k[$j++] = 0; + $k[$j++] = $f($1.mrows - 2); //#17889 + $k[$j++] = 0; //#17889 }, function() { - $k[$j++] = $f($1.mrows - 1); - $k[$j++] = 0; + $k[$j++] = $f($1.mrows - 1); //#17890 + $k[$j++] = 0; //#17890 }, function() { - $k[$j++] = 0; - $k[$j++] = $f($1.mcols - 4); + $k[$j++] = 0; //#17890 + $k[$j++] = $f($1.mcols - 4); //#17890 }, function() { - $k[$j++] = 0; - $k[$j++] = $f($1.mcols - 3); + $k[$j++] = 0; //#17891 + $k[$j++] = $f($1.mcols - 3); //#17891 }, function() { - $k[$j++] = 0; - $k[$j++] = $f($1.mcols - 2); + $k[$j++] = 0; //#17891 + $k[$j++] = $f($1.mcols - 2); //#17891 }, function() { - $k[$j++] = 0; - $k[$j++] = $f($1.mcols - 1); + $k[$j++] = 0; //#17892 + $k[$j++] = $f($1.mcols - 1); //#17892 }, function() { - $k[$j++] = 1; - $k[$j++] = $f($1.mcols - 1); - } ]); - $1.dmc2 = _O1; - var _OA = $a([ function() { - $k[$j++] = $f($1.mrows - 3); - $k[$j++] = 0; + $k[$j++] = 1; //#17892 + $k[$j++] = $f($1.mcols - 1); //#17892 + }]); //#17892 + $1.dmc2 = _O1; //#17893 + var _OA = $a([function() { + $k[$j++] = $f($1.mrows - 3); //#17896 + $k[$j++] = 0; //#17896 }, function() { - $k[$j++] = $f($1.mrows - 2); - $k[$j++] = 0; + $k[$j++] = $f($1.mrows - 2); //#17896 + $k[$j++] = 0; //#17896 }, function() { - $k[$j++] = $f($1.mrows - 1); - $k[$j++] = 0; + $k[$j++] = $f($1.mrows - 1); //#17897 + $k[$j++] = 0; //#17897 }, function() { - $k[$j++] = 0; - $k[$j++] = $f($1.mcols - 2); + $k[$j++] = 0; //#17897 + $k[$j++] = $f($1.mcols - 2); //#17897 }, function() { - $k[$j++] = 0; - $k[$j++] = $f($1.mcols - 1); + $k[$j++] = 0; //#17898 + $k[$j++] = $f($1.mcols - 1); //#17898 }, function() { - $k[$j++] = 1; - $k[$j++] = $f($1.mcols - 1); + $k[$j++] = 1; //#17898 + $k[$j++] = $f($1.mcols - 1); //#17898 }, function() { - $k[$j++] = 2; - $k[$j++] = $f($1.mcols - 1); + $k[$j++] = 2; //#17899 + $k[$j++] = $f($1.mcols - 1); //#17899 }, function() { - $k[$j++] = 3; - $k[$j++] = $f($1.mcols - 1); - } ]); - $1.dmc3 = _OA; - var _OK = $a([ function() { - $k[$j++] = $f($1.mrows - 1); - $k[$j++] = 0; + $k[$j++] = 3; //#17899 + $k[$j++] = $f($1.mcols - 1); //#17899 + }]); //#17899 + $1.dmc3 = _OA; //#17900 + var _OK = $a([function() { + $k[$j++] = $f($1.mrows - 1); //#17903 + $k[$j++] = 0; //#17903 }, function() { - $k[$j++] = $f($1.mrows - 1); - $k[$j++] = $f($1.mcols - 1); + $k[$j++] = $f($1.mrows - 1); //#17903 + $k[$j++] = $f($1.mcols - 1); //#17903 }, function() { - $k[$j++] = 0; - $k[$j++] = $f($1.mcols - 3); + $k[$j++] = 0; //#17904 + $k[$j++] = $f($1.mcols - 3); //#17904 }, function() { - $k[$j++] = 0; - $k[$j++] = $f($1.mcols - 2); + $k[$j++] = 0; //#17904 + $k[$j++] = $f($1.mcols - 2); //#17904 }, function() { - $k[$j++] = 0; - $k[$j++] = $f($1.mcols - 1); + $k[$j++] = 0; //#17905 + $k[$j++] = $f($1.mcols - 1); //#17905 }, function() { - $k[$j++] = 1; - $k[$j++] = $f($1.mcols - 3); + $k[$j++] = 1; //#17905 + $k[$j++] = $f($1.mcols - 3); //#17905 }, function() { - $k[$j++] = 1; - $k[$j++] = $f($1.mcols - 2); + $k[$j++] = 1; //#17906 + $k[$j++] = $f($1.mcols - 2); //#17906 }, function() { - $k[$j++] = 1; - $k[$j++] = $f($1.mcols - 1); - } ]); - $1.dmc4 = _OK; - $k[$j++] = Infinity; - for (var _ON = 0, _OO = $1.mrows * $1.mcols; _ON < _OO; _ON++) { - $k[$j++] = -1; - } - $1.mmat = $a(); - for (var _OR = $1.cws.length - 1; _OR >= 0; _OR -= 1) { - $k[$j++] = $get($1.cws, _OR); - } - $k[$j++] = 4; - $k[$j++] = 0; - for (;;) { - var _OU = $k[--$j]; - var _OV = $k[--$j]; - $k[$j++] = _OV; - $k[$j++] = _OU; - if (_OU == 0 && _OV == $1.mrows) { - $k[$j++] = $1.dmc1; - $1.module(); - } - var _OY = $k[--$j]; - var _OZ = $k[--$j]; - $k[$j++] = _OZ; - $k[$j++] = _OY; - if (_OY == 0 && _OZ == $f($1.mrows - 2) && $1.mcols % 4 != 0) { - $k[$j++] = $1.dmc2; - $1.module(); - } - var _Od = $k[--$j]; - var _Oe = $k[--$j]; - $k[$j++] = _Oe; - $k[$j++] = _Od; - if (_Od == 0 && _Oe == $f($1.mrows - 2) && $1.mcols % 8 == 4) { - $k[$j++] = $1.dmc3; - $1.module(); - } - var _Oi = $k[--$j]; - var _Oj = $k[--$j]; - $k[$j++] = _Oj; - $k[$j++] = _Oi; - if (_Oi == 2 && _Oj == $f($1.mrows + 4) && $1.mcols % 8 == 0) { - $k[$j++] = $1.dmc4; - $1.module(); - } - for (;;) { - var _On = $k[--$j]; - var _Oo = $k[--$j]; - $k[$j++] = _Oo; - $k[$j++] = _On; - if (_On >= 0 && _Oo < $1.mrows) { - var _Oq = $k[--$j]; - var _Or = $k[--$j]; - $k[$j++] = _Or; - $k[$j++] = _Oq; - if ($get($1.mmat, $f(_Oq + _Or * $1.mcols)) == -1) { - $k[$j++] = $1.dmn; - $1.module(); - } - } - var _Ow = $k[--$j]; - var _Ox = $k[--$j]; - $k[$j++] = $f(_Ox - 2); - $k[$j++] = $f(_Ow + 2); - if (!($f(_Ow + 2) < $1.mcols && $f(_Ox - 2) >= 0)) { - break; - } - } - var _Oz = $k[--$j]; - var _P0 = $k[--$j]; - $k[$j++] = $f(_P0 + 1); - $k[$j++] = $f(_Oz + 3); - for (;;) { - var _P1 = $k[--$j]; - var _P2 = $k[--$j]; - $k[$j++] = _P2; - $k[$j++] = _P1; - if (_P1 < $1.mcols && _P2 >= 0) { - var _P4 = $k[--$j]; - var _P5 = $k[--$j]; - $k[$j++] = _P5; - $k[$j++] = _P4; - if ($get($1.mmat, $f(_P4 + _P5 * $1.mcols)) == -1) { - $k[$j++] = $1.dmn; - $1.module(); - } - } - var _PA = $k[--$j]; - var _PB = $k[--$j]; - $k[$j++] = $f(_PB + 2); - $k[$j++] = $f(_PA - 2); - if (!($f(_PA - 2) >= 0 && $f(_PB + 2) < $1.mrows)) { - break; - } - } - var _PD = $k[--$j]; - var _PE = $k[--$j]; - $k[$j++] = $f(_PE + 3); - $k[$j++] = $f(_PD + 1); - if (!($f(_PD + 1) < $1.mcols || $f(_PE + 3) < $1.mrows)) { - $j -= 2; - break; - } - } - if ($get($1.mmat, $f($1.mrows * $1.mcols - 1)) == -1) { - $puti($1.mmat, $f($1.mrows * $f($1.mcols - 1) - 2), $a([ 1, 0 ])); - $puti($1.mmat, $f($1.mrows * $1.mcols - 2), $a([ 0, 1 ])); - } - $1.pixs = $a($1.rows * $1.cols); - $1.cwpos = 0; - for (var _PY = 0, _PX = $f($1.rows - 1); _PY <= _PX; _PY += 1) { - $1.i = _PY; - if ($1.i % ($1.rrows + 2) == 0) { - $k[$j++] = $1.pixs; - $k[$j++] = $1.i * $1.cols; - $k[$j++] = Infinity; - for (var _Pf = 0, _Pg = ~~($1.cols / 2); _Pf < _Pg; _Pf++) { - $k[$j++] = 1; - $k[$j++] = 0; - } - var _Ph = $a(); - var _Pi = $k[--$j]; - $puti($k[--$j], _Pi, _Ph); - } - if ($1.i % ($1.rrows + 2) == $1.rrows + 1) { - $k[$j++] = $1.pixs; - $k[$j++] = $1.i * $1.cols; - $k[$j++] = Infinity; - for (var _Pr = 0, _Ps = $1.cols; _Pr < _Ps; _Pr++) { - $k[$j++] = 1; - } - var _Pt = $a(); - var _Pu = $k[--$j]; - $puti($k[--$j], _Pu, _Pt); - } - if ($1.i % ($1.rrows + 2) != 0 && $1.i % ($1.rrows + 2) != $1.rrows + 1) { - for (var _Q3 = 0, _Q2 = $f($1.cols - 1); _Q3 <= _Q2; _Q3 += 1) { - $1.j = _Q3; - if ($1.j % ($1.rcols + 2) == 0) { - $put($1.pixs, $f($1.i * $1.cols + $1.j), 1); - } - if ($1.j % ($1.rcols + 2) == $1.rcols + 1) { - $put($1.pixs, $f($1.i * $1.cols + $1.j), $1.i % 2); - } - if ($1.j % ($1.rcols + 2) != 0 && $1.j % ($1.rcols + 2) != $1.rcols + 1) { - $put($1.pixs, $f($1.i * $1.cols + $1.j), $get($1.mmat, $1.cwpos)); - $1.cwpos = $1.cwpos + 1; - } - } - } - } - var _Qb = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", $1.cols ], [ "pixy", $1.rows ], [ "height", $1.rows * 2 / 72 ], [ "width", $1.cols * 2 / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _Qb; - if (!$1.dontdraw) { - $0.renmatrix(); - } + $k[$j++] = 1; //#17906 + $k[$j++] = $f($1.mcols - 1); //#17906 + }]); //#17906 + $1.dmc4 = _OK; //#17907 + $k[$j++] = Infinity; //#17909 + for (var _ON = 0, _OO = $1.mrows * $1.mcols; _ON < _OO; _ON++) { //#17909 + $k[$j++] = -1; //#17909 + } //#17909 + $1.mmat = $a(); //#17909 + for (var _OR = $1.cws.length - 1; _OR >= 0; _OR -= 1) { //#17910 + $k[$j++] = $get($1.cws, _OR); //#17910 + } //#17910 + $k[$j++] = 4; //#17950 + $k[$j++] = 0; //#17950 + for (;;) { //#17950 + var _OU = $k[--$j]; //#17913 + var _OV = $k[--$j]; //#17913 + $k[$j++] = _OV; //#17915 + $k[$j++] = _OU; //#17915 + if ((_OU == 0) && (_OV == $1.mrows)) { //#17915 + $k[$j++] = $1.dmc1; //#17914 + $1.module(); //#17914 + } //#17914 + var _OY = $k[--$j]; //#17916 + var _OZ = $k[--$j]; //#17916 + $k[$j++] = _OZ; //#17918 + $k[$j++] = _OY; //#17918 + if (((_OY == 0) && (_OZ == $f($1.mrows - 2))) && (($1.mcols % 4) != 0)) { //#17918 + $k[$j++] = $1.dmc2; //#17917 + $1.module(); //#17917 + } //#17917 + var _Od = $k[--$j]; //#17919 + var _Oe = $k[--$j]; //#17919 + $k[$j++] = _Oe; //#17921 + $k[$j++] = _Od; //#17921 + if (((_Od == 0) && (_Oe == $f($1.mrows - 2))) && (($1.mcols % 8) == 4)) { //#17921 + $k[$j++] = $1.dmc3; //#17920 + $1.module(); //#17920 + } //#17920 + var _Oi = $k[--$j]; //#17922 + var _Oj = $k[--$j]; //#17922 + $k[$j++] = _Oj; //#17924 + $k[$j++] = _Oi; //#17924 + if (((_Oi == 2) && (_Oj == $f($1.mrows + 4))) && (($1.mcols % 8) == 0)) { //#17924 + $k[$j++] = $1.dmc4; //#17923 + $1.module(); //#17923 + } //#17923 + for (;;) { //#17934 + var _On = $k[--$j]; //#17927 + var _Oo = $k[--$j]; //#17927 + $k[$j++] = _Oo; //#17931 + $k[$j++] = _On; //#17931 + if ((_On >= 0) && (_Oo < $1.mrows)) { //#17931 + var _Oq = $k[--$j]; //#17928 + var _Or = $k[--$j]; //#17928 + $k[$j++] = _Or; //#17930 + $k[$j++] = _Oq; //#17930 + if ($get($1.mmat, $f(_Oq + (_Or * $1.mcols))) == -1) { //#17930 + $k[$j++] = $1.dmn; //#17929 + $1.module(); //#17929 + } //#17929 + } //#17929 + var _Ow = $k[--$j]; //#17932 + var _Ox = $k[--$j]; //#17932 + $k[$j++] = $f(_Ox - 2); //#17933 + $k[$j++] = $f(_Ow + 2); //#17933 + if (!(($f(_Ow + 2) < $1.mcols) && ($f(_Ox - 2) >= 0))) { //#17933 + break; //#17933 + } //#17933 + } //#17933 + var _Oz = $k[--$j]; //#17935 + var _P0 = $k[--$j]; //#17935 + $k[$j++] = $f(_P0 + 1); //#17945 + $k[$j++] = $f(_Oz + 3); //#17945 + for (;;) { //#17945 + var _P1 = $k[--$j]; //#17938 + var _P2 = $k[--$j]; //#17938 + $k[$j++] = _P2; //#17942 + $k[$j++] = _P1; //#17942 + if ((_P1 < $1.mcols) && (_P2 >= 0)) { //#17942 + var _P4 = $k[--$j]; //#17939 + var _P5 = $k[--$j]; //#17939 + $k[$j++] = _P5; //#17941 + $k[$j++] = _P4; //#17941 + if ($get($1.mmat, $f(_P4 + (_P5 * $1.mcols))) == -1) { //#17941 + $k[$j++] = $1.dmn; //#17940 + $1.module(); //#17940 + } //#17940 + } //#17940 + var _PA = $k[--$j]; //#17943 + var _PB = $k[--$j]; //#17943 + $k[$j++] = $f(_PB + 2); //#17944 + $k[$j++] = $f(_PA - 2); //#17944 + if (!(($f(_PA - 2) >= 0) && ($f(_PB + 2) < $1.mrows))) { //#17944 + break; //#17944 + } //#17944 + } //#17944 + var _PD = $k[--$j]; //#17946 + var _PE = $k[--$j]; //#17946 + $k[$j++] = $f(_PE + 3); //#17948 + $k[$j++] = $f(_PD + 1); //#17948 + if (!(($f(_PD + 1) < $1.mcols) || ($f(_PE + 3) < $1.mrows))) { //#17948 + $j -= 2; //#17948 + break; //#17948 + } //#17948 + } //#17948 + if ($get($1.mmat, $f(($1.mrows * $1.mcols) - 1)) == -1) { //#17956 + $puti($1.mmat, $f(($1.mrows * $f($1.mcols - 1)) - 2), $a([1, 0])); //#17954 + $puti($1.mmat, $f(($1.mrows * $1.mcols) - 2), $a([0, 1])); //#17955 + } //#17955 + $1.pixs = $a($1.rows * $1.cols); //#17959 + $1.cwpos = 0; //#17960 + for (var _PY = 0, _PX = $f($1.rows - 1); _PY <= _PX; _PY += 1) { //#17976 + $1.i = _PY; //#17962 + if (($1.i % ($1.rrows + 2)) == 0) { //#17963 + $k[$j++] = $1.pixs; //#17963 + $k[$j++] = $1.i * $1.cols; //#17963 + $k[$j++] = Infinity; //#17963 + for (var _Pf = 0, _Pg = ~~($1.cols / 2); _Pf < _Pg; _Pf++) { //#17963 + $k[$j++] = 1; //#17963 + $k[$j++] = 0; //#17963 + } //#17963 + var _Ph = $a(); //#17963 + var _Pi = $k[--$j]; //#17963 + $puti($k[--$j], _Pi, _Ph); //#17963 + } //#17963 + if (($1.i % ($1.rrows + 2)) == ($1.rrows + 1)) { //#17964 + $k[$j++] = $1.pixs; //#17964 + $k[$j++] = $1.i * $1.cols; //#17964 + $k[$j++] = Infinity; //#17964 + for (var _Pr = 0, _Ps = $1.cols; _Pr < _Ps; _Pr++) { //#17964 + $k[$j++] = 1; //#17964 + } //#17964 + var _Pt = $a(); //#17964 + var _Pu = $k[--$j]; //#17964 + $puti($k[--$j], _Pu, _Pt); //#17964 + } //#17964 + if ((($1.i % ($1.rrows + 2)) != 0) && (($1.i % ($1.rrows + 2)) != ($1.rrows + 1))) { //#17975 + for (var _Q3 = 0, _Q2 = $f($1.cols - 1); _Q3 <= _Q2; _Q3 += 1) { //#17974 + $1.j = _Q3; //#17967 + if (($1.j % ($1.rcols + 2)) == 0) { //#17968 + $put($1.pixs, $f(($1.i * $1.cols) + $1.j), 1); //#17968 + } //#17968 + if (($1.j % ($1.rcols + 2)) == ($1.rcols + 1)) { //#17969 + $put($1.pixs, $f(($1.i * $1.cols) + $1.j), $1.i % 2); //#17969 + } //#17969 + if ((($1.j % ($1.rcols + 2)) != 0) && (($1.j % ($1.rcols + 2)) != ($1.rcols + 1))) { //#17973 + $put($1.pixs, $f(($1.i * $1.cols) + $1.j), $get($1.mmat, $1.cwpos)); //#17971 + $1.cwpos = $1.cwpos + 1; //#17972 + } //#17972 + } //#17972 + } //#17972 + } //#17972 + var _Qb = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", $1.cols], + ["pixy", $1.rows], + ["height", ($1.rows * 2) / 72], + ["width", ($1.cols * 2) / 72], + ["opt", $1.options] + ]); //#17986 + $k[$j++] = _Qb; //#17989 + if (!$1.dontdraw) { //#17989 + $0.renmatrix(); //#17989 + } //#17989 }; $0.datamatrixrectangular = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $put($1.options, "dontdraw", true); - $put($1.options, "format", "rectangle"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.datamatrix(); - var _9 = $k[--$j]; - $1[$k[--$j]] = _9; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#18019 + $1.options = $k[--$j]; //#18021 + $1.barcode = $k[--$j]; //#18022 + $1.dontdraw = false; //#18024 + $forall($1.options, function() { //#18035 + var _3 = $k[--$j]; //#18035 + $1[$k[--$j]] = _3; //#18035 + }); //#18035 + $put($1.options, "dontdraw", true); //#18038 + $put($1.options, "format", "rectangle"); //#18039 + $k[$j++] = 'args'; //#18041 + $k[$j++] = $1.barcode; //#18041 + $k[$j++] = $1.options; //#18041 + $0.datamatrix(); //#18041 + var _9 = $k[--$j]; //#18041 + $1[$k[--$j]] = _9; //#18041 + $put($1.args, "opt", $1.options); //#18043 + $k[$j++] = $1.args; //#18046 + if (!$1.dontdraw) { //#18046 + $0.renmatrix(); //#18046 + } //#18046 }; $0.datamatrixrectangularextension = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.dmre = false; - $1.dindmre = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $put($1.options, "dontdraw", true); - $put($1.options, "format", "rectangle"); - if (!($1.dindmre || $1.dmre)) { - $put($1.options, "dmre", true); - } else { - $put($1.options, "dmre", $1.dmre); - $put($1.options, "dindmre", $1.dindmre); - } - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.datamatrix(); - var _G = $k[--$j]; - $1[$k[--$j]] = _G; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#18076 + $1.options = $k[--$j]; //#18078 + $1.barcode = $k[--$j]; //#18079 + $1.dontdraw = false; //#18081 + $1.dmre = false; //#18083 + $1.dindmre = false; //#18084 + $forall($1.options, function() { //#18095 + var _3 = $k[--$j]; //#18095 + $1[$k[--$j]] = _3; //#18095 + }); //#18095 + $put($1.options, "dontdraw", true); //#18098 + $put($1.options, "format", "rectangle"); //#18099 + if (!($1.dindmre || $1.dmre)) { //#18105 + $put($1.options, "dmre", true); //#18102 + } else { //#18105 + $put($1.options, "dmre", $1.dmre); //#18104 + $put($1.options, "dindmre", $1.dindmre); //#18105 + } //#18105 + $k[$j++] = 'args'; //#18108 + $k[$j++] = $1.barcode; //#18108 + $k[$j++] = $1.options; //#18108 + $0.datamatrix(); //#18108 + var _G = $k[--$j]; //#18108 + $1[$k[--$j]] = _G; //#18108 + $put($1.args, "opt", $1.options); //#18110 + $k[$j++] = $1.args; //#18113 + if (!$1.dontdraw) { //#18113 + $0.renmatrix(); //#18113 + } //#18113 }; $0.mailmark = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.type = "unset"; - $1.parse = false; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - var _6 = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _6; - $k[$j++] = "barcode"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _9 = $k[--$j]; - $1[$k[--$j]] = _9; - $1.barlen = $1.barcode.length; - delete $1.options["parse"]; - var _D = new Map([ [ "7", "24x24" ], [ "9", "32x32" ], [ "29", "16x48" ] ]); - $1.version = $get(_D, $1["type"]); - var _G = new Map([ [ "7", "square" ], [ "9", "square" ], [ "29", "rectangle" ] ]); - $1.format = $get(_G, $1["type"]); - if ($1.barcode.length < 45) { - $k[$j++] = "bwipp.mailmarkBadLength"; - $k[$j++] = "Royal Mail Mailmark must contain at least 45 characters of Mailmark formatted data, including any required space padding"; - $0.raiseerror(); - } - if ($ne($geti($1.barcode, 0, 4), "JGB ")) { - $k[$j++] = "bwipp.mailmarkBadIndicator"; - $k[$j++] = "Royal Mail Mailmark must begin with JGB identifier"; - $0.raiseerror(); - } - $put($1.options, "dontdraw", true); - $put($1.options, "version", $1.version); - $put($1.options, "format", $1.format); - $put($1.options, "mailmark", true); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.datamatrix(); - var _U = $k[--$j]; - $1[$k[--$j]] = _U; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#18144 + $1.options = $k[--$j]; //#18146 + $1.barcode = $k[--$j]; //#18147 + $1.type = "unset"; //#18149 + $1.parse = false; //#18150 + $1.dontdraw = false; //#18151 + $forall($1.options, function() { //#18162 + var _3 = $k[--$j]; //#18162 + $1[$k[--$j]] = _3; //#18162 + }); //#18162 + var _6 = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#18168 + $1.fncvals = _6; //#18169 + $k[$j++] = 'barcode'; //#18170 + $k[$j++] = $1.barcode; //#18170 + $k[$j++] = $1.fncvals; //#18170 + $0.parseinput(); //#18170 + var _9 = $k[--$j]; //#18170 + $1[$k[--$j]] = _9; //#18170 + $1.barlen = $1.barcode.length; //#18171 + delete $1.options["parse"]; //#18172 + var _D = new Map([ + ["7", "24x24"], + ["9", "32x32"], + ["29", "16x48"] + ]); //#18178 + $1.version = $get(_D, $1['type']); //#18179 + var _G = new Map([ + ["7", "square"], + ["9", "square"], + ["29", "rectangle"] + ]); //#18184 + $1.format = $get(_G, $1['type']); //#18185 + if ($1.barcode.length < 45) { //#18190 + $k[$j++] = 'bwipp.mailmarkBadLength'; //#18189 + $k[$j++] = "Royal Mail Mailmark must contain at least 45 characters of Mailmark formatted data, including any required space padding"; //#18189 + $0.raiseerror(); //#18189 + } //#18189 + if ($ne($geti($1.barcode, 0, 4), "JGB ")) { //#18193 + $k[$j++] = 'bwipp.mailmarkBadIndicator'; //#18192 + $k[$j++] = "Royal Mail Mailmark must begin with JGB identifier"; //#18192 + $0.raiseerror(); //#18192 + } //#18192 + $put($1.options, "dontdraw", true); //#18196 + $put($1.options, "version", $1.version); //#18197 + $put($1.options, "format", $1.format); //#18198 + $put($1.options, "mailmark", true); //#18199 + $k[$j++] = 'args'; //#18200 + $k[$j++] = $1.barcode; //#18200 + $k[$j++] = $1.options; //#18200 + $0.datamatrix(); //#18200 + var _U = $k[--$j]; //#18200 + $1[$k[--$j]] = _U; //#18200 + $put($1.args, "opt", $1.options); //#18202 + $k[$j++] = $1.args; //#18205 + if (!$1.dontdraw) { //#18205 + $0.renmatrix(); //#18205 + } //#18205 }; $0.qrcode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.format = "unset"; - $1.version = "unset"; - $1.eclevel = "unset"; - $1.parse = false; - $1.parsefnc = false; - $1.mask = -1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.mask = ~~$1.mask; - if ($ne($1.version, "unset")) { - if ($eq($1.format, "unset")) { - $k[$j++] = "full"; - if ($eq($geti($1.version, 0, 1), "M")) { - $j--; - $k[$j++] = "micro"; - } - if ($eq($geti($1.version, 0, 1), "R")) { - $j--; - $k[$j++] = "rmqr"; - } - $1.format = $k[--$j]; - } - } else { - if ($eq($1.format, "unset")) { - $1.format = "full"; - } - } - if ($eq($1.eclevel, "unset")) { - $k[$j++] = "eclevel"; - if ($ne($1.format, "micro")) { - $k[$j++] = "M"; - } else { - $k[$j++] = "L"; - } - var _G = $k[--$j]; - $1[$k[--$j]] = _G; - } - $1.fn1 = -1; - var _L = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "eci", true ], [ "FNC1", $1.fn1 ] ]); - $1.fncvals = _L; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _O = $k[--$j]; - $1[$k[--$j]] = _O; - $1.msglen = $1.msg.length; - $1.fnc1first = false; - if ($1.msglen > 0) { - if ($get($1.msg, 0) == $1.fn1) { - $1.fnc1first = true; - $k[$j++] = Infinity; - var _X = $geti($1.msg, 1, $1.msglen - 1); - for (var _Y = 0, _Z = _X.length; _Y < _Z; _Y++) { - var _a = $get(_X, _Y); - $k[$j++] = _a; - if (_a == 37) { - var _b = $k[--$j]; - $k[$j++] = _b; - $k[$j++] = _b; - } - } - $1.msg = $a(); - $1.msglen = $1.msg.length; - } - } - var _e = $a([ "v1to9", "v10to26", "v27to40", "vM1", "vM2", "vM3", "vM4", "vR7x43", "vR7x59", "vR7x77", "vR7x99", "vR7x139", "vR9x43", "vR9x59", "vR9x77", "vR9x99", "vR9x139", "vR11x27", "vR11x43", "vR11x59", "vR11x77", "vR11x99", "vR11x139", "vR13x27", "vR13x43", "vR13x59", "vR13x77", "vR13x99", "vR13x139", "vR15x43", "vR15x59", "vR15x77", "vR15x99", "vR15x139", "vR17x43", "vR17x59", "vR17x77", "vR17x99", "vR17x139" ]); - $k[$j++] = 0; - for (var _f = 0, _g = _e.length; _f < _g; _f++) { - var _i = $k[--$j]; - $1[$get(_e, _f)] = _i; - $k[$j++] = $f(_i + 1); - } - $j--; - $1.N = 0; - $1.A = 1; - $1.B = 2; - $1.K = 3; - $1.E = 4; - $k[$j++] = Infinity; - $k[$j++] = Infinity; - for (var _j = 48; _j <= 57; _j += 1) { - $k[$j++] = _j; - } - var _k = $a(); - for (var _l = 0, _m = _k.length; _l < _m; _l++) { - $k[$j++] = $get(_k, _l); - $k[$j++] = -1; - } - $1.Nexcl = $d(); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - $k[$j++] = 32; - $k[$j++] = 36; - $k[$j++] = 37; - $k[$j++] = 42; - $k[$j++] = 43; - $k[$j++] = 45; - $k[$j++] = 46; - $k[$j++] = 47; - $k[$j++] = 58; - for (var _p = 65; _p <= 90; _p += 1) { - $k[$j++] = _p; - } - $k[$j++] = $1.fn1; - var _r = $a(); - for (var _s = 0, _t = _r.length; _s < _t; _s++) { - $k[$j++] = $get(_r, _s); - $k[$j++] = -1; - } - $1.Aexcl = $d(); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - for (var _w = 0; _w <= 31; _w += 1) { - $k[$j++] = _w; - } - $k[$j++] = 33; - $k[$j++] = 34; - $k[$j++] = 35; - $k[$j++] = 38; - $k[$j++] = 39; - $k[$j++] = 40; - $k[$j++] = 41; - $k[$j++] = 44; - for (var _x = 59; _x <= 64; _x += 1) { - $k[$j++] = _x; - } - for (var _y = 91; _y <= 127; _y += 1) { - $k[$j++] = _y; - } - for (var _z = 160; _z <= 223; _z += 1) { - $k[$j++] = _z; - } - var _10 = $a(); - for (var _11 = 0, _12 = _10.length; _11 < _12; _11++) { - $k[$j++] = $get(_10, _11); - $k[$j++] = -1; - } - $1.Bexcl = $d(); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - for (var _15 = 129; _15 <= 159; _15 += 1) { - $k[$j++] = _15; - } - for (var _16 = 224; _16 <= 235; _16 += 1) { - $k[$j++] = _16; - } - var _17 = $a(); - for (var _18 = 0, _19 = _17.length; _18 < _19; _18++) { - $k[$j++] = $get(_17, _18); - $k[$j++] = -1; - } - $1.Kexcl = $d(); - $k[$j++] = Infinity; - $k[$j++] = $a([ "0001", "0010", "0100", "1000", "0111" ]); - $k[$j++] = $a([ "0001", "0010", "0100", "1000", "0111" ]); - $k[$j++] = $a([ "0001", "0010", "0100", "1000", "0111" ]); - $k[$j++] = $a([ "", -1, -1, -1, -1 ]); - $k[$j++] = $a([ "0", "1", -1, -1, -1 ]); - $k[$j++] = $a([ "00", "01", "10", "11", -1 ]); - $k[$j++] = $a([ "000", "001", "010", "011", -1 ]); - for (var _1J = 0, _1K = 32; _1J < _1K; _1J++) { - $k[$j++] = $a([ "001", "010", "011", "100", -1 ]); - } - $1.mids = $a(); - $1.cclens = $a([ $a([ 10, 9, 8, 8 ]), $a([ 12, 11, 16, 10 ]), $a([ 14, 13, 16, 12 ]), $a([ 3, -1, -1, -1 ]), $a([ 4, 3, -1, -1 ]), $a([ 5, 4, 4, 3 ]), $a([ 6, 5, 5, 4 ]), $a([ 4, 3, 3, 2 ]), $a([ 5, 5, 4, 3 ]), $a([ 6, 5, 5, 4 ]), $a([ 7, 6, 5, 5 ]), $a([ 7, 6, 6, 5 ]), $a([ 5, 5, 4, 3 ]), $a([ 6, 5, 5, 4 ]), $a([ 7, 6, 5, 5 ]), $a([ 7, 6, 6, 5 ]), $a([ 8, 7, 6, 6 ]), $a([ 4, 4, 3, 2 ]), $a([ 6, 5, 5, 4 ]), $a([ 7, 6, 5, 5 ]), $a([ 7, 6, 6, 5 ]), $a([ 8, 7, 6, 6 ]), $a([ 8, 7, 7, 6 ]), $a([ 5, 5, 4, 3 ]), $a([ 6, 6, 5, 5 ]), $a([ 7, 6, 6, 5 ]), $a([ 8, 7, 6, 6 ]), $a([ 8, 7, 7, 6 ]), $a([ 8, 8, 7, 7 ]), $a([ 7, 6, 6, 5 ]), $a([ 7, 7, 6, 5 ]), $a([ 8, 7, 7, 6 ]), $a([ 8, 7, 7, 6 ]), $a([ 9, 8, 7, 7 ]), $a([ 7, 6, 6, 5 ]), $a([ 8, 7, 6, 6 ]), $a([ 8, 7, 7, 6 ]), $a([ 8, 8, 7, 6 ]), $a([ 9, 8, 8, 7 ]) ]); - $k[$j++] = Infinity; - for (var _21 = 0, _22 = 3; _21 < _22; _21++) { - $k[$j++] = 4; - } - $k[$j++] = 3; - $k[$j++] = 5; - $k[$j++] = 7; - $k[$j++] = 9; - for (var _23 = 0, _24 = 32; _23 < _24; _23++) { - $k[$j++] = 3; - } - $1.termlens = $a(); + var $1 = {}; //#18235 + $1.options = $k[--$j]; //#18237 + $1.barcode = $k[--$j]; //#18238 + $1.dontdraw = false; //#18240 + $1.format = "unset"; //#18241 + $1.version = "unset"; //#18242 + $1.eclevel = "unset"; //#18243 + $1.parse = false; //#18244 + $1.parsefnc = false; //#18245 + $1.mask = -1; //#18246 + $forall($1.options, function() { //#18257 + var _3 = $k[--$j]; //#18257 + $1[$k[--$j]] = _3; //#18257 + }); //#18257 + $1.mask = ~~$1.mask; //#18259 + if ($ne($1.version, "unset")) { //#18270 + if ($eq($1.format, "unset")) { //#18268 + $k[$j++] = "full"; //#18265 + if ($eq($geti($1.version, 0, 1), "M")) { //#18265 + $j--; //#18265 + $k[$j++] = "micro"; //#18265 + } //#18265 + if ($eq($geti($1.version, 0, 1), "R")) { //#18266 + $j--; //#18266 + $k[$j++] = "rmqr"; //#18266 + } //#18266 + $1.format = $k[--$j]; //#18267 + } //#18267 + } else { //#18270 + if ($eq($1.format, "unset")) { //#18270 + $1.format = "full"; //#18270 + } //#18270 + } //#18270 + if ($eq($1.eclevel, "unset")) { //#18274 + $k[$j++] = 'eclevel'; //#18274 + if ($ne($1.format, "micro")) { //#18274 + $k[$j++] = "M"; //#18274 + } else { //#18274 + $k[$j++] = "L"; //#18274 + } //#18274 + var _G = $k[--$j]; //#18274 + $1[$k[--$j]] = _G; //#18274 + } //#18274 + $1.fn1 = -1; //#18277 + var _L = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["eci", true], + ["FNC1", $1.fn1] + ]); //#18282 + $1.fncvals = _L; //#18283 + $k[$j++] = 'msg'; //#18284 + $k[$j++] = $1.barcode; //#18284 + $k[$j++] = $1.fncvals; //#18284 + $0.parseinput(); //#18284 + var _O = $k[--$j]; //#18284 + $1[$k[--$j]] = _O; //#18284 + $1.msglen = $1.msg.length; //#18285 + $1.fnc1first = false; //#18288 + if ($1.msglen > 0) { //#18295 + if ($get($1.msg, 0) == $1.fn1) { //#18294 + $1.fnc1first = true; //#18291 + $k[$j++] = Infinity; //#18292 + var _X = $geti($1.msg, 1, $1.msglen - 1); //#18292 + for (var _Y = 0, _Z = _X.length; _Y < _Z; _Y++) { //#18292 + var _a = $get(_X, _Y); //#18292 + $k[$j++] = _a; //#18292 + if (_a == 37) { //#18292 + var _b = $k[--$j]; //#18292 + $k[$j++] = _b; //#18292 + $k[$j++] = _b; //#18292 + } //#18292 + } //#18292 + $1.msg = $a(); //#18292 + $1.msglen = $1.msg.length; //#18293 + } //#18293 + } //#18293 + var _e = $a(['v1to9', 'v10to26', 'v27to40', 'vM1', 'vM2', 'vM3', 'vM4', 'vR7x43', 'vR7x59', 'vR7x77', 'vR7x99', 'vR7x139', 'vR9x43', 'vR9x59', 'vR9x77', 'vR9x99', 'vR9x139', 'vR11x27', 'vR11x43', 'vR11x59', 'vR11x77', 'vR11x99', 'vR11x139', 'vR13x27', 'vR13x43', 'vR13x59', 'vR13x77', 'vR13x99', 'vR13x139', 'vR15x43', 'vR15x59', 'vR15x77', 'vR15x99', 'vR15x139', 'vR17x43', 'vR17x59', 'vR17x77', 'vR17x99', 'vR17x139']); //#18306 + $k[$j++] = 0; //#18307 + for (var _f = 0, _g = _e.length; _f < _g; _f++) { //#18307 + var _i = $k[--$j]; //#18307 + $1[$get(_e, _f)] = _i; //#18307 + $k[$j++] = $f(_i + 1); //#18307 + } //#18307 + $j--; //#18307 + $1.N = 0; //#18313 + $1.A = 1; //#18313 + $1.B = 2; //#18313 + $1.K = 3; //#18313 + $1.E = 4; //#18313 + $k[$j++] = Infinity; //#18318 + $k[$j++] = Infinity; //#18317 + for (var _j = 48; _j <= 57; _j += 1) { //#18317 + $k[$j++] = _j; //#18317 + } //#18317 + var _k = $a(); //#18317 + for (var _l = 0, _m = _k.length; _l < _m; _l++) { //#18318 + $k[$j++] = $get(_k, _l); //#18318 + $k[$j++] = -1; //#18318 + } //#18318 + $1.Nexcl = $d(); //#18319 + $k[$j++] = Infinity; //#18326 + $k[$j++] = Infinity; //#18325 + $k[$j++] = 32; //#18324 + $k[$j++] = 36; //#18324 + $k[$j++] = 37; //#18324 + $k[$j++] = 42; //#18324 + $k[$j++] = 43; //#18324 + $k[$j++] = 45; //#18324 + $k[$j++] = 46; //#18324 + $k[$j++] = 47; //#18324 + $k[$j++] = 58; //#18324 + for (var _p = 65; _p <= 90; _p += 1) { //#18324 + $k[$j++] = _p; //#18324 + } //#18324 + $k[$j++] = $1.fn1; //#18325 + var _r = $a(); //#18325 + for (var _s = 0, _t = _r.length; _s < _t; _s++) { //#18326 + $k[$j++] = $get(_r, _s); //#18326 + $k[$j++] = -1; //#18326 + } //#18326 + $1.Aexcl = $d(); //#18327 + $k[$j++] = Infinity; //#18336 + $k[$j++] = Infinity; //#18335 + for (var _w = 0; _w <= 31; _w += 1) { //#18331 + $k[$j++] = _w; //#18331 + } //#18331 + $k[$j++] = 33; //#18333 + $k[$j++] = 34; //#18333 + $k[$j++] = 35; //#18333 + $k[$j++] = 38; //#18333 + $k[$j++] = 39; //#18333 + $k[$j++] = 40; //#18333 + $k[$j++] = 41; //#18333 + $k[$j++] = 44; //#18333 + for (var _x = 59; _x <= 64; _x += 1) { //#18333 + $k[$j++] = _x; //#18333 + } //#18333 + for (var _y = 91; _y <= 127; _y += 1) { //#18334 + $k[$j++] = _y; //#18334 + } //#18334 + for (var _z = 160; _z <= 223; _z += 1) { //#18335 + $k[$j++] = _z; //#18335 + } //#18335 + var _10 = $a(); //#18335 + for (var _11 = 0, _12 = _10.length; _11 < _12; _11++) { //#18336 + $k[$j++] = $get(_10, _11); //#18336 + $k[$j++] = -1; //#18336 + } //#18336 + $1.Bexcl = $d(); //#18337 + $k[$j++] = Infinity; //#18343 + $k[$j++] = Infinity; //#18342 + for (var _15 = 129; _15 <= 159; _15 += 1) { //#18341 + $k[$j++] = _15; //#18341 + } //#18341 + for (var _16 = 224; _16 <= 235; _16 += 1) { //#18342 + $k[$j++] = _16; //#18342 + } //#18342 + var _17 = $a(); //#18342 + for (var _18 = 0, _19 = _17.length; _18 < _19; _18++) { //#18343 + $k[$j++] = $get(_17, _18); //#18343 + $k[$j++] = -1; //#18343 + } //#18343 + $1.Kexcl = $d(); //#18344 + $k[$j++] = Infinity; //#18356 + $k[$j++] = $a(["0001", "0010", "0100", "1000", "0111"]); //#18357 + $k[$j++] = $a(["0001", "0010", "0100", "1000", "0111"]); //#18357 + $k[$j++] = $a(["0001", "0010", "0100", "1000", "0111"]); //#18357 + $k[$j++] = $a(["", -1, -1, -1, -1]); //#18357 + $k[$j++] = $a(["0", "1", -1, -1, -1]); //#18357 + $k[$j++] = $a(["00", "01", "10", "11", -1]); //#18357 + $k[$j++] = $a(["000", "001", "010", "011", -1]); //#18357 + for (var _1J = 0, _1K = 32; _1J < _1K; _1J++) { //#18357 + $k[$j++] = $a(["001", "010", "011", "100", -1]); //#18356 + } //#18356 + $1.mids = $a(); //#18356 + $1.cclens = $a([$a([10, 9, 8, 8]), $a([12, 11, 16, 10]), $a([14, 13, 16, 12]), $a([3, -1, -1, -1]), $a([4, 3, -1, -1]), $a([5, 4, 4, 3]), $a([6, 5, 5, 4]), $a([4, 3, 3, 2]), $a([5, 5, 4, 3]), $a([6, 5, 5, 4]), $a([7, 6, 5, 5]), $a([7, 6, 6, 5]), $a([5, 5, 4, 3]), $a([6, 5, 5, 4]), $a([7, 6, 5, 5]), $a([7, 6, 6, 5]), $a([8, 7, 6, 6]), $a([4, 4, 3, 2]), $a([6, 5, 5, 4]), $a([7, 6, 5, 5]), $a([7, 6, 6, 5]), $a([8, 7, 6, 6]), $a([8, 7, 7, 6]), $a([5, 5, 4, 3]), $a([6, 6, 5, 5]), $a([7, 6, 6, 5]), $a([8, 7, 6, 6]), $a([8, 7, 7, 6]), $a([8, 8, 7, 7]), $a([7, 6, 6, 5]), $a([7, 7, 6, 5]), $a([8, 7, 7, 6]), $a([8, 7, 7, 6]), $a([9, 8, 7, 7]), $a([7, 6, 6, 5]), $a([8, 7, 6, 6]), $a([8, 7, 7, 6]), $a([8, 8, 7, 6]), $a([9, 8, 8, 7])]); //#18400 + $k[$j++] = Infinity; //#18411 + for (var _21 = 0, _22 = 3; _21 < _22; _21++) { //#18405 + $k[$j++] = 4; //#18404 + } //#18404 + $k[$j++] = 3; //#18412 + $k[$j++] = 5; //#18412 + $k[$j++] = 7; //#18412 + $k[$j++] = 9; //#18412 + for (var _23 = 0, _24 = 32; _23 < _24; _23++) { //#18412 + $k[$j++] = 3; //#18411 + } //#18411 + $1.termlens = $a(); //#18411 $1.tobin = function() { - var _27 = $s($k[--$j]); - $k[$j++] = _27; - for (var _29 = 0, _28 = _27.length - 1; _29 <= _28; _29 += 1) { - var _2A = $k[--$j]; - $put(_2A, _29, 48); - $k[$j++] = _2A; - } - var _2B = $k[--$j]; - var _2E = $cvrs($s(_2B.length), $k[--$j], 2); - $puti(_2B, _2B.length - _2E.length, _2E); - $k[$j++] = _2B; - }; - $1.charmap = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:"; - $1.charvals = new Map(); - for (var _2F = 0; _2F <= 44; _2F += 1) { - $put($1.charvals, $get($1.charmap, _2F), _2F); - } + var _27 = $s($k[--$j]); //#18417 + $k[$j++] = _27; //#18417 + for (var _29 = 0, _28 = _27.length - 1; _29 <= _28; _29 += 1) { //#18417 + var _2A = $k[--$j]; //#18417 + $put(_2A, _29, 48); //#18417 + $k[$j++] = _2A; //#18417 + } //#18417 + var _2B = $k[--$j]; //#18418 + var _2E = $cvrs($s(_2B.length), $k[--$j], 2); //#18418 + $puti(_2B, _2B.length - _2E.length, _2E); //#18418 + $k[$j++] = _2B; //#18418 + }; //#18419 + $1.charmap = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:"; //#18422 + $1.charvals = new Map; //#18423 + for (var _2F = 0; _2F <= 44; _2F += 1) { //#18424 + $put($1.charvals, $get($1.charmap, _2F), _2F); //#18424 + } //#18424 $1.encA = function() { - $1.in = $k[--$j]; - if ($1.fnc1first) { - $k[$j++] = Infinity; - $forall($1.in, function() { - var _2M = $k[--$j]; - $k[$j++] = _2M; - if (_2M == $1.fn1) { - $j--; - $k[$j++] = 37; - } - }); - $1.in = $a(); - } - $1.out = $s(~~($1.in.length * 11 / 2) + 1); - $1.k = 0; - $1.m = 0; - for (;;) { - if ($1.k == $1.in.length) { - break; - } - if ($1.k < $1.in.length - 1) { - $k[$j++] = $f($get($1.charvals, $get($1.in, $1.k)) * 45 + $get($1.charvals, $get($1.in, $1.k + 1))); - $k[$j++] = 11; - $1.tobin(); - $1.k = $1.k + 2; - } else { - $k[$j++] = $get($1.charvals, $get($1.in, $1.k)); - $k[$j++] = 6; - $1.tobin(); - $1.k = $1.k + 1; - } - var _2m = $k[--$j]; - $puti($1.out, $1.m, _2m); - $1.m = _2m.length + $1.m; - } - $k[$j++] = $geti($1.out, 0, $1.m); - }; + $1.in = $k[--$j]; //#18427 + if ($1.fnc1first) { //#18430 + $k[$j++] = Infinity; //#18429 + $forall($1.in, function() { //#18429 + var _2M = $k[--$j]; //#18429 + $k[$j++] = _2M; //#18429 + if (_2M == $1.fn1) { //#18429 + $j--; //#18429 + $k[$j++] = 37; //#18429 + } //#18429 + }); //#18429 + $1.in = $a(); //#18429 + } //#18429 + $1.out = $s((~~(($1.in.length * 11) / 2)) + 1); //#18431 + $1.k = 0; //#18432 + $1.m = 0; //#18432 + for (;;) { //#18443 + if ($1.k == $1.in.length) { //#18433 + break; //#18433 + } //#18433 + if ($1.k < ($1.in.length - 1)) { //#18439 + $k[$j++] = $f(($get($1.charvals, $get($1.in, $1.k)) * 45) + $get($1.charvals, $get($1.in, $1.k + 1))); //#18435 + $k[$j++] = 11; //#18435 + $1.tobin(); //#18435 + $1.k = $1.k + 2; //#18436 + } else { //#18439 + $k[$j++] = $get($1.charvals, $get($1.in, $1.k)); //#18438 + $k[$j++] = 6; //#18438 + $1.tobin(); //#18438 + $1.k = $1.k + 1; //#18439 + } //#18439 + var _2m = $k[--$j]; //#18441 + $puti($1.out, $1.m, _2m); //#18441 + $1.m = _2m.length + $1.m; //#18442 + } //#18442 + $k[$j++] = $geti($1.out, 0, $1.m); //#18444 + }; //#18445 $1.encN = function() { - $1.in = $k[--$j]; - $1.out = $s(~~($1.in.length * 10 / 3) + 1); - $1.k = 0; - $1.m = 0; - for (;;) { - if ($1.k == $1.in.length) { - break; - } - if ($1.k < $1.in.length - 2) { - var _32 = $geti($1.in, $1.k, 3); - $k[$j++] = 0; - for (var _33 = 0, _34 = _32.length; _33 < _34; _33++) { - var _36 = $k[--$j]; - $k[$j++] = $f($get(_32, _33) + $f(_36 * 10 - 48)); - } - $k[$j++] = 10; - $1.tobin(); - $1.k = $1.k + 3; - } else { - if ($1.k == $1.in.length - 2) { - var _3C = $geti($1.in, $1.k, 2); - $k[$j++] = 0; - for (var _3D = 0, _3E = _3C.length; _3D < _3E; _3D++) { - var _3G = $k[--$j]; - $k[$j++] = $f($get(_3C, _3D) + $f(_3G * 10 - 48)); - } - $k[$j++] = 7; - $1.tobin(); - $1.k = $1.k + 2; - } else { - var _3K = $geti($1.in, $1.k, 1); - $k[$j++] = 0; - for (var _3L = 0, _3M = _3K.length; _3L < _3M; _3L++) { - var _3O = $k[--$j]; - $k[$j++] = $f($get(_3K, _3L) + $f(_3O * 10 - 48)); - } - $k[$j++] = 4; - $1.tobin(); - $1.k = $1.k + 1; - } - } - var _3Q = $k[--$j]; - $puti($1.out, $1.m, _3Q); - $1.m = _3Q.length + $1.m; - } - $k[$j++] = $geti($1.out, 0, $1.m); - }; + $1.in = $k[--$j]; //#18448 + $1.out = $s((~~(($1.in.length * 10) / 3)) + 1); //#18449 + $1.k = 0; //#18450 + $1.m = 0; //#18450 + for (;;) { //#18466 + if ($1.k == $1.in.length) { //#18451 + break; //#18451 + } //#18451 + if ($1.k < ($1.in.length - 2)) { //#18461 + var _32 = $geti($1.in, $1.k, 3); //#18453 + $k[$j++] = 0; //#18453 + for (var _33 = 0, _34 = _32.length; _33 < _34; _33++) { //#18453 + var _36 = $k[--$j]; //#18453 + $k[$j++] = $f($get(_32, _33) + ($f((_36 * 10) - 48))); //#18453 + } //#18453 + $k[$j++] = 10; //#18453 + $1.tobin(); //#18453 + $1.k = $1.k + 3; //#18454 + } else { //#18461 + if ($1.k == ($1.in.length - 2)) { //#18461 + var _3C = $geti($1.in, $1.k, 2); //#18457 + $k[$j++] = 0; //#18457 + for (var _3D = 0, _3E = _3C.length; _3D < _3E; _3D++) { //#18457 + var _3G = $k[--$j]; //#18457 + $k[$j++] = $f($get(_3C, _3D) + ($f((_3G * 10) - 48))); //#18457 + } //#18457 + $k[$j++] = 7; //#18457 + $1.tobin(); //#18457 + $1.k = $1.k + 2; //#18458 + } else { //#18461 + var _3K = $geti($1.in, $1.k, 1); //#18460 + $k[$j++] = 0; //#18460 + for (var _3L = 0, _3M = _3K.length; _3L < _3M; _3L++) { //#18460 + var _3O = $k[--$j]; //#18460 + $k[$j++] = $f($get(_3K, _3L) + ($f((_3O * 10) - 48))); //#18460 + } //#18460 + $k[$j++] = 4; //#18460 + $1.tobin(); //#18460 + $1.k = $1.k + 1; //#18461 + } //#18461 + } //#18461 + var _3Q = $k[--$j]; //#18464 + $puti($1.out, $1.m, _3Q); //#18464 + $1.m = _3Q.length + $1.m; //#18465 + } //#18465 + $k[$j++] = $geti($1.out, 0, $1.m); //#18467 + }; //#18468 $1.encB = function() { - $1.in = $k[--$j]; - if ($1.fnc1first) { - $k[$j++] = Infinity; - $forall($1.in, function() { - var _3a = $k[--$j]; - $k[$j++] = _3a; - if (_3a == $1.fn1) { - $j--; - $k[$j++] = 29; - } - }); - $1.in = $a(); - } - $1.out = $s($1.in.length * 8); - for (var _3h = 0, _3g = $1.in.length - 1; _3h <= _3g; _3h += 1) { - $1.k = _3h; - $k[$j++] = ~~$z($get($1.in, $1.k)); - $k[$j++] = 8; - $1.tobin(); - $puti($1.out, $1.k * 8, $k[--$j]); - } - $k[$j++] = $1.out; - }; + $1.in = $k[--$j]; //#18471 + if ($1.fnc1first) { //#18474 + $k[$j++] = Infinity; //#18473 + $forall($1.in, function() { //#18473 + var _3a = $k[--$j]; //#18473 + $k[$j++] = _3a; //#18473 + if (_3a == $1.fn1) { //#18473 + $j--; //#18473 + $k[$j++] = 29; //#18473 + } //#18473 + }); //#18473 + $1.in = $a(); //#18473 + } //#18473 + $1.out = $s($1.in.length * 8); //#18475 + for (var _3h = 0, _3g = $1.in.length - 1; _3h <= _3g; _3h += 1) { //#18480 + $1.k = _3h; //#18477 + $k[$j++] = ~~$z($get($1.in, $1.k)); //#18478 + $k[$j++] = 8; //#18478 + $1.tobin(); //#18478 + $puti($1.out, $1.k * 8, $k[--$j]); //#18479 + } //#18479 + $k[$j++] = $1.out; //#18481 + }; //#18482 $1.encK = function() { - $1.in = $k[--$j]; - $1.out = $s(~~($1.in.length / 2) * 13); - $1.k = 0; - $1.m = 0; - for (;;) { - if ($1.k == $1.in.length) { - break; - } - var _40 = $f($get($1.in, $1.k) * 256 + $get($1.in, $1.k + 1)); - $k[$j++] = _40; - if (_40 < 57408) { - $k[$j++] = 33088; - } else { - $k[$j++] = 49472; - } - var _41 = $k[--$j]; - var _43 = $f($k[--$j] - _41); - $k[$j++] = $f((_43 >>> 8) * 192 + (_43 & 255)); - $k[$j++] = 13; - $1.tobin(); - var _44 = $k[--$j]; - $puti($1.out, $1.m, _44); - $1.m = _44.length + $1.m; - $1.k = $1.k + 2; - } - $k[$j++] = $1.out; - }; + $1.in = $k[--$j]; //#18485 + $1.out = $s((~~($1.in.length / 2)) * 13); //#18486 + $1.k = 0; //#18487 + $1.m = 0; //#18487 + for (;;) { //#18495 + if ($1.k == $1.in.length) { //#18488 + break; //#18488 + } //#18488 + var _40 = $f(($get($1.in, $1.k) * 256) + $get($1.in, $1.k + 1)); //#18490 + $k[$j++] = _40; //#18490 + if (_40 < 57408) { //#18490 + $k[$j++] = 33088; //#18490 + } else { //#18490 + $k[$j++] = 49472; //#18490 + } //#18490 + var _41 = $k[--$j]; //#18490 + var _43 = $f($k[--$j] - _41); //#18491 + $k[$j++] = $f(((_43 >>> 8) * 192) + (_43 & 255)); //#18492 + $k[$j++] = 13; //#18492 + $1.tobin(); //#18492 + var _44 = $k[--$j]; //#18492 + $puti($1.out, $1.m, _44); //#18492 + $1.m = _44.length + $1.m; //#18493 + $1.k = $1.k + 2; //#18494 + } //#18494 + $k[$j++] = $1.out; //#18496 + }; //#18497 $1.encE = function() { - var _4C = $f(-$get($k[--$j], 0) - 1e6); - $k[$j++] = _4C; - if (_4C <= 127) { - $k[$j++] = 8; - $1.tobin(); - } else { - var _4D = $k[--$j]; - $k[$j++] = _4D; - if (_4D <= 16383) { - var _4E = $k[--$j]; - $k[$j++] = $f(_4E + 32768); - $k[$j++] = 16; - $1.tobin(); - } else { - var _4F = $k[--$j]; - $k[$j++] = $f(_4F + 12582912); - $k[$j++] = 24; - $1.tobin(); - } - } - }; - $1.encfuncs = $a([ "encN", "encA", "encB", "encK", "encE" ]); + var _4C = $f((-$get($k[--$j], 0)) - 1000000); //#18501 + $k[$j++] = _4C; //#18507 + if (_4C <= 127) { //#18506 + $k[$j++] = 8; //#18502 + $1.tobin(); //#18502 + } else { //#18506 + var _4D = $k[--$j]; //#18503 + $k[$j++] = _4D; //#18507 + if (_4D <= 16383) { //#18506 + var _4E = $k[--$j]; //#18504 + $k[$j++] = $f(_4E + 32768); //#18504 + $k[$j++] = 16; //#18504 + $1.tobin(); //#18504 + } else { //#18506 + var _4F = $k[--$j]; //#18506 + $k[$j++] = $f(_4F + 12582912); //#18506 + $k[$j++] = 24; //#18506 + $1.tobin(); //#18506 + } //#18506 + } //#18506 + }; //#18508 + $1.encfuncs = $a(['encN', 'encA', 'encB', 'encK', 'encE']); //#18510 $1.addtobits = function() { - var _4H = $k[--$j]; - $puti($1.bits, $1.j, _4H); - $1.j = _4H.length + $1.j; - }; - $k[$j++] = Infinity; - for (var _4M = 0, _4N = $1.msglen; _4M < _4N; _4M++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numNs = $a(); - $k[$j++] = Infinity; - for (var _4Q = 0, _4R = $1.msglen; _4Q < _4R; _4Q++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numAs = $a(); - $k[$j++] = Infinity; - for (var _4U = 0, _4V = $1.msglen; _4U < _4V; _4U++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numBs = $a(); - $k[$j++] = Infinity; - for (var _4Y = 0, _4Z = $1.msglen; _4Y < _4Z; _4Y++) { - $k[$j++] = 0; - } - $k[$j++] = -1; - $1.numKs = $a(); - $k[$j++] = Infinity; - for (var _4c = 0, _4d = $1.msglen; _4c < _4d; _4c++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextNs = $a(); - $k[$j++] = Infinity; - for (var _4g = 0, _4h = $1.msglen; _4g < _4h; _4g++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextBs = $a(); - $k[$j++] = Infinity; - for (var _4k = 0, _4l = $1.msglen; _4k < _4l; _4k++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextAs = $a(); - $k[$j++] = Infinity; - for (var _4o = 0, _4p = $1.msglen; _4o < _4p; _4o++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextKs = $a(); - $1.isECI = $a($1.msglen); - for (var _4u = $1.msglen - 1; _4u >= 0; _4u -= 1) { - $1.i = _4u; - $1.barchar = $get($1.msg, $1.i); - var _50 = $get($1.Kexcl, $1.barchar) !== undefined; - if (_50) { - $put($1.nextKs, $1.i, 0); - $put($1.numKs, $1.i, $f($get($1.numKs, $1.i + 1) + 1)); - } else { - $put($1.nextKs, $1.i, $f($get($1.nextKs, $1.i + 1) + 1)); - } - var _5F = $get($1.Nexcl, $1.barchar) !== undefined; - if (_5F) { - $put($1.nextNs, $1.i, 0); - $put($1.numNs, $1.i, $f($get($1.numNs, $1.i + 1) + 1)); - } else { - $put($1.nextNs, $1.i, $f($get($1.nextNs, $1.i + 1) + 1)); - } - var _5U = $get($1.Bexcl, $1.barchar) !== undefined; - if (_5U) { - $put($1.nextBs, $1.i, 0); - $put($1.numBs, $1.i, $f($get($1.numBs, $1.i + 1) + 1)); - } else { - $put($1.nextBs, $1.i, $f($get($1.nextBs, $1.i + 1) + 1)); - } - var _5j = $get($1.Aexcl, $1.barchar) !== undefined; - if (_5j) { - $put($1.nextAs, $1.i, 0); - $put($1.numAs, $1.i, $f($get($1.numAs, $1.i + 1) + 1)); - } else { - $put($1.nextAs, $1.i, $f($get($1.nextAs, $1.i + 1) + 1)); - } - $put($1.isECI, $1.i, $1.barchar <= -1e6); - } - $k[$j++] = Infinity; - var _5z = $1.numKs; - for (var _60 = 0, _61 = _5z.length; _60 < _61; _60++) { - $k[$j++] = ~~($f($get(_5z, _60) + 1) / 2); - } - $1.numKs = $a(); + var _4H = $k[--$j]; //#18513 + $puti($1.bits, $1.j, _4H); //#18513 + $1.j = _4H.length + $1.j; //#18514 + }; //#18515 + $k[$j++] = Infinity; //#18517 + for (var _4M = 0, _4N = $1.msglen; _4M < _4N; _4M++) { //#18517 + $k[$j++] = 0; //#18517 + } //#18517 + $k[$j++] = 0; //#18517 + $1.numNs = $a(); //#18517 + $k[$j++] = Infinity; //#18518 + for (var _4Q = 0, _4R = $1.msglen; _4Q < _4R; _4Q++) { //#18518 + $k[$j++] = 0; //#18518 + } //#18518 + $k[$j++] = 0; //#18518 + $1.numAs = $a(); //#18518 + $k[$j++] = Infinity; //#18519 + for (var _4U = 0, _4V = $1.msglen; _4U < _4V; _4U++) { //#18519 + $k[$j++] = 0; //#18519 + } //#18519 + $k[$j++] = 0; //#18519 + $1.numBs = $a(); //#18519 + $k[$j++] = Infinity; //#18520 + for (var _4Y = 0, _4Z = $1.msglen; _4Y < _4Z; _4Y++) { //#18520 + $k[$j++] = 0; //#18520 + } //#18520 + $k[$j++] = -1; //#18520 + $1.numKs = $a(); //#18520 + $k[$j++] = Infinity; //#18521 + for (var _4c = 0, _4d = $1.msglen; _4c < _4d; _4c++) { //#18521 + $k[$j++] = 0; //#18521 + } //#18521 + $k[$j++] = 9999; //#18521 + $1.nextNs = $a(); //#18521 + $k[$j++] = Infinity; //#18522 + for (var _4g = 0, _4h = $1.msglen; _4g < _4h; _4g++) { //#18522 + $k[$j++] = 0; //#18522 + } //#18522 + $k[$j++] = 9999; //#18522 + $1.nextBs = $a(); //#18522 + $k[$j++] = Infinity; //#18523 + for (var _4k = 0, _4l = $1.msglen; _4k < _4l; _4k++) { //#18523 + $k[$j++] = 0; //#18523 + } //#18523 + $k[$j++] = 9999; //#18523 + $1.nextAs = $a(); //#18523 + $k[$j++] = Infinity; //#18524 + for (var _4o = 0, _4p = $1.msglen; _4o < _4p; _4o++) { //#18524 + $k[$j++] = 0; //#18524 + } //#18524 + $k[$j++] = 9999; //#18524 + $1.nextKs = $a(); //#18524 + $1.isECI = $a($1.msglen); //#18525 + for (var _4u = $1.msglen - 1; _4u >= 0; _4u -= 1) { //#18554 + $1.i = _4u; //#18527 + $1.barchar = $get($1.msg, $1.i); //#18528 + var _50 = $get($1.Kexcl, $1.barchar) !== undefined; //#18529 + if (_50) { //#18533 + $put($1.nextKs, $1.i, 0); //#18530 + $put($1.numKs, $1.i, $f($get($1.numKs, $1.i + 1) + 1)); //#18531 + } else { //#18533 + $put($1.nextKs, $1.i, $f($get($1.nextKs, $1.i + 1) + 1)); //#18533 + } //#18533 + var _5F = $get($1.Nexcl, $1.barchar) !== undefined; //#18535 + if (_5F) { //#18539 + $put($1.nextNs, $1.i, 0); //#18536 + $put($1.numNs, $1.i, $f($get($1.numNs, $1.i + 1) + 1)); //#18537 + } else { //#18539 + $put($1.nextNs, $1.i, $f($get($1.nextNs, $1.i + 1) + 1)); //#18539 + } //#18539 + var _5U = $get($1.Bexcl, $1.barchar) !== undefined; //#18541 + if (_5U) { //#18545 + $put($1.nextBs, $1.i, 0); //#18542 + $put($1.numBs, $1.i, $f($get($1.numBs, $1.i + 1) + 1)); //#18543 + } else { //#18545 + $put($1.nextBs, $1.i, $f($get($1.nextBs, $1.i + 1) + 1)); //#18545 + } //#18545 + var _5j = $get($1.Aexcl, $1.barchar) !== undefined; //#18547 + if (_5j) { //#18551 + $put($1.nextAs, $1.i, 0); //#18548 + $put($1.numAs, $1.i, $f($get($1.numAs, $1.i + 1) + 1)); //#18549 + } else { //#18551 + $put($1.nextAs, $1.i, $f($get($1.nextAs, $1.i + 1) + 1)); //#18551 + } //#18551 + $put($1.isECI, $1.i, $1.barchar <= -1000000); //#18553 + } //#18553 + $k[$j++] = Infinity; //#18555 + var _5z = $1.numKs; //#18555 + for (var _60 = 0, _61 = _5z.length; _60 < _61; _60++) { //#18555 + $k[$j++] = ~~($f($get(_5z, _60) + 1) / 2); //#18555 + } //#18555 + $1.numKs = $a(); //#18555 $1.KbeforeB = function() { - var _67 = $get($k[--$j], $1.ver); - $k[$j++] = $ge($1.numK, _67) && $get($1.nextBs, $f($1.numK * 2 + $1.i)) == 0; - }; + var _67 = $get($k[--$j], $1.ver); //#18557 + $k[$j++] = $ge($1.numK, _67) && ($get($1.nextBs, $f(($1.numK * 2) + $1.i)) == 0); //#18557 + }; //#18557 $1.KbeforeA = function() { - var _6F = $get($k[--$j], $1.ver); - $k[$j++] = $ge($1.numK, _6F) && $get($1.nextAs, $f($1.numK * 2 + $1.i)) == 0; - }; + var _6F = $get($k[--$j], $1.ver); //#18558 + $k[$j++] = $ge($1.numK, _6F) && ($get($1.nextAs, $f(($1.numK * 2) + $1.i)) == 0); //#18558 + }; //#18558 $1.KbeforeN = function() { - var _6N = $get($k[--$j], $1.ver); - $k[$j++] = $ge($1.numK, _6N) && $get($1.nextNs, $f($1.numK * 2 + $1.i)) == 0; - }; + var _6N = $get($k[--$j], $1.ver); //#18559 + $k[$j++] = $ge($1.numK, _6N) && ($get($1.nextNs, $f(($1.numK * 2) + $1.i)) == 0); //#18559 + }; //#18559 $1.KbeforeE = function() { - var _6V = $get($k[--$j], $1.ver); - $k[$j++] = $ge($1.numK, _6V) && $f($1.numK * 2 + $1.i) == $1.msglen; - }; + var _6V = $get($k[--$j], $1.ver); //#18560 + $k[$j++] = $ge($1.numK, _6V) && (($f(($1.numK * 2) + $1.i)) == $1.msglen); //#18560 + }; //#18560 $1.AbeforeK = function() { - var _6c = $get($k[--$j], $1.ver); - $k[$j++] = $ge($1.numA, _6c) && $get($1.nextKs, $f($1.numA + $1.i)) == 0; - }; + var _6c = $get($k[--$j], $1.ver); //#18561 + $k[$j++] = $ge($1.numA, _6c) && ($get($1.nextKs, $f($1.numA + $1.i)) == 0); //#18561 + }; //#18561 $1.AbeforeB = function() { - var _6k = $get($k[--$j], $1.ver); - $k[$j++] = $ge($1.numA, _6k) && $get($1.nextBs, $f($1.numA + $1.i)) == 0; - }; + var _6k = $get($k[--$j], $1.ver); //#18562 + $k[$j++] = $ge($1.numA, _6k) && ($get($1.nextBs, $f($1.numA + $1.i)) == 0); //#18562 + }; //#18562 $1.AbeforeN = function() { - var _6s = $get($k[--$j], $1.ver); - $k[$j++] = $ge($1.numA, _6s) && $get($1.nextNs, $f($1.numA + $1.i)) == 0; - }; + var _6s = $get($k[--$j], $1.ver); //#18563 + $k[$j++] = $ge($1.numA, _6s) && ($get($1.nextNs, $f($1.numA + $1.i)) == 0); //#18563 + }; //#18563 $1.AbeforeE = function() { - var _70 = $get($k[--$j], $1.ver); - $k[$j++] = $ge($1.numA, _70) && $f($1.numA + $1.i) == $1.msglen; - }; + var _70 = $get($k[--$j], $1.ver); //#18564 + $k[$j++] = $ge($1.numA, _70) && ($f($1.numA + $1.i) == $1.msglen); //#18564 + }; //#18564 $1.NbeforeK = function() { - var _77 = $get($k[--$j], $1.ver); - $k[$j++] = $ge($1.numN, _77) && $get($1.nextKs, $f($1.numN + $1.i)) == 0; - }; + var _77 = $get($k[--$j], $1.ver); //#18565 + $k[$j++] = $ge($1.numN, _77) && ($get($1.nextKs, $f($1.numN + $1.i)) == 0); //#18565 + }; //#18565 $1.NbeforeB = function() { - var _7F = $get($k[--$j], $1.ver); - $k[$j++] = $ge($1.numN, _7F) && $get($1.nextBs, $f($1.numN + $1.i)) == 0; - }; + var _7F = $get($k[--$j], $1.ver); //#18566 + $k[$j++] = $ge($1.numN, _7F) && ($get($1.nextBs, $f($1.numN + $1.i)) == 0); //#18566 + }; //#18566 $1.NbeforeA = function() { - var _7N = $get($k[--$j], $1.ver); - $k[$j++] = $ge($1.numN, _7N) && $get($1.nextAs, $f($1.numN + $1.i)) == 0; - }; + var _7N = $get($k[--$j], $1.ver); //#18567 + $k[$j++] = $ge($1.numN, _7N) && ($get($1.nextAs, $f($1.numN + $1.i)) == 0); //#18567 + }; //#18567 $1.NbeforeE = function() { - var _7V = $get($k[--$j], $1.ver); - $k[$j++] = $ge($1.numN, _7V) && $f($1.numN + $1.i) == $1.msglen; - }; - if ($ne($1.version, "unset")) { - $k[$j++] = Infinity; - for (var _7a = 0; _7a <= 9; _7a += 1) { - $k[$j++] = $cvrs($s(2), _7a, 10); - $k[$j++] = $1.v1to9; - } - for (var _7e = 10; _7e <= 26; _7e += 1) { - $k[$j++] = $cvrs($s(2), _7e, 10); - $k[$j++] = $1.v10to26; - } - for (var _7i = 27; _7i <= 40; _7i += 1) { - $k[$j++] = $cvrs($s(2), _7i, 10); - $k[$j++] = $1.v27to40; - } - $k[$j++] = "M1"; - $k[$j++] = $1.vM1; - $k[$j++] = "M2"; - $k[$j++] = $1.vM2; - $k[$j++] = "M3"; - $k[$j++] = $1.vM3; - $k[$j++] = "M4"; - $k[$j++] = $1.vM4; - $k[$j++] = "R7x43"; - $k[$j++] = $1.vR7x43; - $k[$j++] = "R7x59"; - $k[$j++] = $1.vR7x59; - $k[$j++] = "R7x77"; - $k[$j++] = $1.vR7x77; - $k[$j++] = "R7x99"; - $k[$j++] = $1.vR7x99; - $k[$j++] = "R7x139"; - $k[$j++] = $1.vR7x139; - $k[$j++] = "R9x43"; - $k[$j++] = $1.vR9x43; - $k[$j++] = "R9x59"; - $k[$j++] = $1.vR9x59; - $k[$j++] = "R9x77"; - $k[$j++] = $1.vR9x77; - $k[$j++] = "R9x99"; - $k[$j++] = $1.vR9x99; - $k[$j++] = "R9x139"; - $k[$j++] = $1.vR9x139; - $k[$j++] = "R11x27"; - $k[$j++] = $1.vR11x27; - $k[$j++] = "R11x43"; - $k[$j++] = $1.vR11x43; - $k[$j++] = "R11x59"; - $k[$j++] = $1.vR11x59; - $k[$j++] = "R11x77"; - $k[$j++] = $1.vR11x77; - $k[$j++] = "R11x99"; - $k[$j++] = $1.vR11x99; - $k[$j++] = "R11x139"; - $k[$j++] = $1.vR11x139; - $k[$j++] = "R13x27"; - $k[$j++] = $1.vR13x27; - $k[$j++] = "R13x43"; - $k[$j++] = $1.vR13x43; - $k[$j++] = "R13x59"; - $k[$j++] = $1.vR13x59; - $k[$j++] = "R13x77"; - $k[$j++] = $1.vR13x77; - $k[$j++] = "R13x99"; - $k[$j++] = $1.vR13x99; - $k[$j++] = "R13x139"; - $k[$j++] = $1.vR13x139; - $k[$j++] = "R15x43"; - $k[$j++] = $1.vR15x43; - $k[$j++] = "R15x59"; - $k[$j++] = $1.vR15x59; - $k[$j++] = "R15x77"; - $k[$j++] = $1.vR15x77; - $k[$j++] = "R15x99"; - $k[$j++] = $1.vR15x99; - $k[$j++] = "R15x139"; - $k[$j++] = $1.vR15x139; - $k[$j++] = "R17x43"; - $k[$j++] = $1.vR17x43; - $k[$j++] = "R17x59"; - $k[$j++] = $1.vR17x59; - $k[$j++] = "R17x77"; - $k[$j++] = $1.vR17x77; - $k[$j++] = "R17x99"; - $k[$j++] = $1.vR17x99; - $k[$j++] = "R17x139"; - $k[$j++] = $1.vR17x139; - var _8O = $get($d(), $1.version); - $k[$j++] = "verset"; - $k[$j++] = Infinity; - $k[$j++] = _8O; - var _8R = $a(); - $1[$k[--$j]] = _8R; - } else { - if ($eq($1.format, "full")) { - $1.verset = $a([ $1.v1to9, $1.v10to26, $1.v27to40 ]); - } - if ($eq($1.format, "micro")) { - $1.verset = $a([ $1.vM1, $1.vM2, $1.vM3, $1.vM4 ]); - } - } - $k[$j++] = Infinity; - for (var _8e = 0, _8f = 39; _8e < _8f; _8e++) { - $k[$j++] = -1; - } - $1.msgbits = $a(); - $1.e = 1e4; - var _8h = $1.verset; - for (var _8i = 0, _8j = _8h.length; _8i < _8j; _8i++) { - $1.ver = $get(_8h, _8i); - $1.mode = -1; - $1.seq = $a([]); - $1.i = 0; - for (;;) { - if ($1.i >= $1.msglen) { - break; - } - $1.numK = $get($1.numKs, $1.i); - $1.numB = $get($1.numBs, $1.i); - $1.numA = $get($1.numAs, $1.i); - $1.numN = $get($1.numNs, $1.i); - $1.eci = $get($1.isECI, $1.i); - if ($eq($1.ver, $1.vM1) && $1.numA >= 1) { - $1.seq = -1; - break; - } - if ($eq($1.ver, $1.vM1) && $1.numB >= 1) { - $1.seq = -1; - break; - } - if ($eq($1.ver, $1.vM1) && $1.numK >= 1) { - $1.seq = -1; - break; - } - if ($eq($1.ver, $1.vM1) && $1.eci) { - $1.seq = -1; - break; - } - if ($eq($1.ver, $1.vM2) && $1.numB >= 1) { - $1.seq = -1; - break; - } - if ($eq($1.ver, $1.vM2) && $1.numK >= 1) { - $1.seq = -1; - break; - } - if ($eq($1.ver, $1.vM2) && $1.eci) { - $1.seq = -1; - break; - } - if ($eq($1.ver, $1.vM3) && $1.eci) { - $1.seq = -1; - break; - } - if ($eq($1.ver, $1.vM4) && $1.eci) { - $1.seq = -1; - break; - } - if ($ge($1.ver, $1.vR7x43) && $1.eci) { - $1.seq = -1; - break; - } - for (;;) { - if ($1.eci) { - $k[$j++] = $1.E; + var _7V = $get($k[--$j], $1.ver); //#18568 + $k[$j++] = $ge($1.numN, _7V) && ($f($1.numN + $1.i) == $1.msglen); //#18568 + }; //#18568 + if ($ne($1.version, "unset")) { //#18599 + $k[$j++] = Infinity; //#18594 + for (var _7a = 0; _7a <= 9; _7a += 1) { //#18581 + $k[$j++] = $cvrs($s(2), _7a, 10); //#18581 + $k[$j++] = $1.v1to9; //#18581 + } //#18581 + for (var _7e = 10; _7e <= 26; _7e += 1) { //#18582 + $k[$j++] = $cvrs($s(2), _7e, 10); //#18582 + $k[$j++] = $1.v10to26; //#18582 + } //#18582 + for (var _7i = 27; _7i <= 40; _7i += 1) { //#18583 + $k[$j++] = $cvrs($s(2), _7i, 10); //#18583 + $k[$j++] = $1.v27to40; //#18583 + } //#18583 + $k[$j++] = "M1"; //#18594 + $k[$j++] = $1.vM1; //#18594 + $k[$j++] = "M2"; //#18594 + $k[$j++] = $1.vM2; //#18594 + $k[$j++] = "M3"; //#18594 + $k[$j++] = $1.vM3; //#18594 + $k[$j++] = "M4"; //#18594 + $k[$j++] = $1.vM4; //#18594 + $k[$j++] = "R7x43"; //#18594 + $k[$j++] = $1.vR7x43; //#18594 + $k[$j++] = "R7x59"; //#18594 + $k[$j++] = $1.vR7x59; //#18594 + $k[$j++] = "R7x77"; //#18594 + $k[$j++] = $1.vR7x77; //#18594 + $k[$j++] = "R7x99"; //#18594 + $k[$j++] = $1.vR7x99; //#18594 + $k[$j++] = "R7x139"; //#18594 + $k[$j++] = $1.vR7x139; //#18594 + $k[$j++] = "R9x43"; //#18594 + $k[$j++] = $1.vR9x43; //#18594 + $k[$j++] = "R9x59"; //#18594 + $k[$j++] = $1.vR9x59; //#18594 + $k[$j++] = "R9x77"; //#18594 + $k[$j++] = $1.vR9x77; //#18594 + $k[$j++] = "R9x99"; //#18594 + $k[$j++] = $1.vR9x99; //#18594 + $k[$j++] = "R9x139"; //#18594 + $k[$j++] = $1.vR9x139; //#18594 + $k[$j++] = "R11x27"; //#18594 + $k[$j++] = $1.vR11x27; //#18594 + $k[$j++] = "R11x43"; //#18594 + $k[$j++] = $1.vR11x43; //#18594 + $k[$j++] = "R11x59"; //#18594 + $k[$j++] = $1.vR11x59; //#18594 + $k[$j++] = "R11x77"; //#18594 + $k[$j++] = $1.vR11x77; //#18594 + $k[$j++] = "R11x99"; //#18594 + $k[$j++] = $1.vR11x99; //#18594 + $k[$j++] = "R11x139"; //#18594 + $k[$j++] = $1.vR11x139; //#18594 + $k[$j++] = "R13x27"; //#18594 + $k[$j++] = $1.vR13x27; //#18594 + $k[$j++] = "R13x43"; //#18594 + $k[$j++] = $1.vR13x43; //#18594 + $k[$j++] = "R13x59"; //#18594 + $k[$j++] = $1.vR13x59; //#18594 + $k[$j++] = "R13x77"; //#18594 + $k[$j++] = $1.vR13x77; //#18594 + $k[$j++] = "R13x99"; //#18594 + $k[$j++] = $1.vR13x99; //#18594 + $k[$j++] = "R13x139"; //#18594 + $k[$j++] = $1.vR13x139; //#18594 + $k[$j++] = "R15x43"; //#18594 + $k[$j++] = $1.vR15x43; //#18594 + $k[$j++] = "R15x59"; //#18594 + $k[$j++] = $1.vR15x59; //#18594 + $k[$j++] = "R15x77"; //#18594 + $k[$j++] = $1.vR15x77; //#18594 + $k[$j++] = "R15x99"; //#18594 + $k[$j++] = $1.vR15x99; //#18594 + $k[$j++] = "R15x139"; //#18594 + $k[$j++] = $1.vR15x139; //#18594 + $k[$j++] = "R17x43"; //#18594 + $k[$j++] = $1.vR17x43; //#18594 + $k[$j++] = "R17x59"; //#18594 + $k[$j++] = $1.vR17x59; //#18594 + $k[$j++] = "R17x77"; //#18594 + $k[$j++] = $1.vR17x77; //#18594 + $k[$j++] = "R17x99"; //#18594 + $k[$j++] = $1.vR17x99; //#18594 + $k[$j++] = "R17x139"; //#18594 + $k[$j++] = $1.vR17x139; //#18594 + var _8O = $get($d(), $1.version); //#18595 + $k[$j++] = 'verset'; //#18595 + $k[$j++] = _8O; //#18595 + $k[$j++] = Infinity; //#18595 + var _8P = $k[--$j]; //#18595 + var _8Q = $k[--$j]; //#18595 + $k[$j++] = _8P; //#18595 + $k[$j++] = _8Q; //#18595 + var _8R = $a(); //#18595 + $1[$k[--$j]] = _8R; //#18595 + } else { //#18599 + if ($eq($1.format, "full")) { //#18598 + $1.verset = $a([$1.v1to9, $1.v10to26, $1.v27to40]); //#18598 + } //#18598 + if ($eq($1.format, "micro")) { //#18599 + $1.verset = $a([$1.vM1, $1.vM2, $1.vM3, $1.vM4]); //#18599 + } //#18599 + } //#18599 + $k[$j++] = Infinity; //#18604 + for (var _8e = 0, _8f = 39; _8e < _8f; _8e++) { //#18604 + $k[$j++] = -1; //#18604 + } //#18604 + $1.msgbits = $a(); //#18604 + $1.e = 10000; //#18605 + var _8h = $1.verset; //#18606 + for (var _8i = 0, _8j = _8h.length; _8i < _8j; _8i++) { //#18741 + $1.ver = $get(_8h, _8i); //#18607 + $1.mode = -1; //#18610 + $1.seq = $a([]); //#18610 + $1.i = 0; //#18610 + for (;;) { //#18711 + if ($1.i >= $1.msglen) { //#18611 + break; //#18611 + } //#18611 + $1.numK = $get($1.numKs, $1.i); //#18612 + $1.numB = $get($1.numBs, $1.i); //#18613 + $1.numA = $get($1.numAs, $1.i); //#18614 + $1.numN = $get($1.numNs, $1.i); //#18615 + $1.eci = $get($1.isECI, $1.i); //#18616 + if ($eq($1.ver, $1.vM1) && ($1.numA >= 1)) { //#18617 + $1.seq = -1; //#18617 + break; //#18617 + } //#18617 + if ($eq($1.ver, $1.vM1) && ($1.numB >= 1)) { //#18618 + $1.seq = -1; //#18618 + break; //#18618 + } //#18618 + if ($eq($1.ver, $1.vM1) && ($1.numK >= 1)) { //#18619 + $1.seq = -1; //#18619 + break; //#18619 + } //#18619 + if ($eq($1.ver, $1.vM1) && $1.eci) { //#18620 + $1.seq = -1; //#18620 + break; //#18620 + } //#18620 + if ($eq($1.ver, $1.vM2) && ($1.numB >= 1)) { //#18621 + $1.seq = -1; //#18621 + break; //#18621 + } //#18621 + if ($eq($1.ver, $1.vM2) && ($1.numK >= 1)) { //#18622 + $1.seq = -1; //#18622 + break; //#18622 + } //#18622 + if ($eq($1.ver, $1.vM2) && $1.eci) { //#18623 + $1.seq = -1; //#18623 + break; //#18623 + } //#18623 + if ($eq($1.ver, $1.vM3) && $1.eci) { //#18624 + $1.seq = -1; //#18624 + break; //#18624 + } //#18624 + if ($eq($1.ver, $1.vM4) && $1.eci) { //#18625 + $1.seq = -1; //#18625 + break; //#18625 + } //#18625 + if ($ge($1.ver, $1.vR7x43) && $1.eci) { //#18626 + $1.seq = -1; //#18626 + break; //#18626 + } //#18626 + for (;;) { //#18691 + if ($1.eci) { //#18630 + $k[$j++] = $1.E; //#18629 + break; //#18629 + } //#18629 + if ($ge($1.ver, $1.vR7x43)) { //#18633 + $k[$j++] = $1.B; //#18632 + break; //#18632 + } //#18632 + if ($1.mode == -1) { //#18652 + $k[$j++] = $a([1, 1, 1, $1.e, $1.e, 1, 1]); //#18635 + $1.KbeforeA(); //#18635 + if ($k[--$j]) { //#18635 + $k[$j++] = $1.K; //#18635 + break; //#18635 + } //#18635 + $k[$j++] = $a([1, 1, 1, $1.e, $1.e, 1, 1]); //#18636 + $1.KbeforeN(); //#18636 + if ($k[--$j]) { //#18636 + $k[$j++] = $1.K; //#18636 + break; //#18636 + } //#18636 + $k[$j++] = $a([5, 5, 6, $1.e, $1.e, 2, 3]); //#18637 + $1.KbeforeB(); //#18637 + if ($k[--$j]) { //#18637 + $k[$j++] = $1.K; //#18637 + break; //#18637 + } //#18637 + $k[$j++] = $a([1, 1, 1, $1.e, $1.e, 1, 1]); //#18638 + $1.KbeforeE(); //#18638 + if ($k[--$j]) { //#18638 + $k[$j++] = $1.K; //#18638 + break; //#18638 + } //#18638 + if ($1.numK >= 1) { //#18639 + $k[$j++] = $1.B; //#18639 + break; //#18639 + } //#18639 + $k[$j++] = $a([6, 7, 8, $1.e, $1.e, 3, 4]); //#18640 + $1.AbeforeB(); //#18640 + if ($k[--$j]) { //#18640 + $k[$j++] = $1.A; //#18640 + break; //#18640 + } //#18640 + $k[$j++] = $a([1, 1, 1, $1.e, 1, 1, 1]); //#18641 + $1.AbeforeN(); //#18641 + if ($k[--$j]) { //#18641 + $k[$j++] = $1.A; //#18641 + break; //#18641 + } //#18641 + $k[$j++] = $a([1, 1, 1, $1.e, 1, 1, 1]); //#18642 + $1.AbeforeE(); //#18642 + if ($k[--$j]) { //#18642 + $k[$j++] = $1.A; //#18642 + break; //#18642 + } //#18642 + if ($1.numA >= 1) { //#18645 + var _AF = $ne($1.ver, $1.vM2) ? $1.B : $1.A; //#18644 + $k[$j++] = _AF; //#18644 + break; //#18644 + } //#18644 + $k[$j++] = $a([4, 4, 5, $1.e, $1.e, 2, 3]); //#18646 + $1.NbeforeB(); //#18646 + if ($k[--$j]) { //#18646 + $k[$j++] = $1.N; //#18646 + break; //#18646 + } //#18646 + $k[$j++] = $a([1, 1, 1, $1.e, $1.e, 1, 1]); //#18647 + $1.NbeforeB(); //#18647 + if ($k[--$j]) { //#18647 + $k[$j++] = $1.B; //#18647 + break; //#18647 + } //#18647 + $k[$j++] = $a([7, 8, 9, $1.e, 3, 4, 5]); //#18648 + $1.NbeforeA(); //#18648 + if ($k[--$j]) { //#18648 + $k[$j++] = $1.N; //#18648 + break; //#18648 + } //#18648 + $k[$j++] = $a([1, 1, 1, $1.e, 1, 1, 1]); //#18649 + $1.NbeforeA(); //#18649 + if ($k[--$j]) { //#18649 + $k[$j++] = $1.A; //#18649 + break; //#18649 + } //#18649 + if ($1.numN >= 1) { //#18650 + $k[$j++] = $1.N; //#18650 + break; //#18650 + } //#18650 + $k[$j++] = $1.B; //#18651 + break; //#18651 + } //#18651 + if ($1.mode == $1.B) { //#18667 + $k[$j++] = $a([9, 12, 13, $1.e, $1.e, 4, 5]); //#18654 + $1.KbeforeB(); //#18654 + if ($k[--$j]) { //#18654 + $k[$j++] = $1.K; //#18654 + break; //#18654 + } //#18654 + $k[$j++] = $a([9, 10, 12, $1.e, $1.e, 4, 5]); //#18655 + $1.KbeforeA(); //#18655 + if ($k[--$j]) { //#18655 + $k[$j++] = $1.K; //#18655 + break; //#18655 + } //#18655 + $k[$j++] = $a([9, 10, 11, $1.e, $1.e, 5, 6]); //#18656 + $1.KbeforeN(); //#18656 + if ($k[--$j]) { //#18656 + $k[$j++] = $1.K; //#18656 + break; //#18656 + } //#18656 + $k[$j++] = $a([4, 5, 6, $1.e, $1.e, 2, 3]); //#18657 + $1.KbeforeE(); //#18657 + if ($k[--$j]) { //#18657 + $k[$j++] = $1.K; //#18657 + break; //#18657 + } //#18657 + $k[$j++] = $a([11, 12, 14, $1.e, $1.e, 5, 7]); //#18658 + $1.AbeforeK(); //#18658 + if ($k[--$j]) { //#18658 + $k[$j++] = $1.A; //#18658 + break; //#18658 + } //#18658 + $k[$j++] = $a([11, 15, 16, $1.e, $1.e, 6, 7]); //#18659 + $1.AbeforeB(); //#18659 + if ($k[--$j]) { //#18659 + $k[$j++] = $1.A; //#18659 + break; //#18659 + } //#18659 + $k[$j++] = $a([12, 13, 15, $1.e, $1.e, 6, 8]); //#18660 + $1.AbeforeN(); //#18660 + if ($k[--$j]) { //#18660 + $k[$j++] = $1.A; //#18660 + break; //#18660 + } //#18660 + $k[$j++] = $a([6, 7, 8, $1.e, $1.e, 3, 4]); //#18661 + $1.AbeforeE(); //#18661 + if ($k[--$j]) { //#18661 + $k[$j++] = $1.A; //#18661 + break; //#18661 + } //#18661 + $k[$j++] = $a([6, 7, 8, $1.e, $1.e, 3, 4]); //#18662 + $1.NbeforeK(); //#18662 + if ($k[--$j]) { //#18662 + $k[$j++] = $1.N; //#18662 + break; //#18662 + } //#18662 + $k[$j++] = $a([6, 8, 9, $1.e, $1.e, 3, 4]); //#18663 + $1.NbeforeB(); //#18663 + if ($k[--$j]) { //#18663 + $k[$j++] = $1.N; //#18663 + break; //#18663 + } //#18663 + $k[$j++] = $a([6, 7, 8, $1.e, $1.e, 3, 4]); //#18664 + $1.NbeforeA(); //#18664 + if ($k[--$j]) { //#18664 + $k[$j++] = $1.N; //#18664 + break; //#18664 + } //#18664 + $k[$j++] = $a([3, 4, 5, $1.e, $1.e, 2, 3]); //#18665 + $1.NbeforeE(); //#18665 + if ($k[--$j]) { //#18665 + $k[$j++] = $1.N; //#18665 + break; //#18665 + } //#18665 + $k[$j++] = $1.B; //#18666 + break; //#18666 + } //#18666 + if ($1.mode == $1.A) { //#18676 + if ($1.numK >= 1) { //#18669 + $k[$j++] = $1.K; //#18669 + break; //#18669 + } //#18669 + if ($1.numB >= 1) { //#18670 + $k[$j++] = $1.B; //#18670 + break; //#18670 + } //#18670 + $k[$j++] = $a([13, 15, 17, $1.e, 5, 7, 9]); //#18671 + $1.NbeforeA(); //#18671 + if ($k[--$j]) { //#18671 + $k[$j++] = $1.N; //#18671 + break; //#18671 + } //#18671 + $k[$j++] = $a([13, 17, 18, $1.e, $1.e, 7, 9]); //#18672 + $1.NbeforeB(); //#18672 + if ($k[--$j]) { //#18672 + $k[$j++] = $1.N; //#18672 + break; //#18672 + } //#18672 + $k[$j++] = $a([7, 8, 9, $1.e, 3, 4, 5]); //#18673 + $1.NbeforeE(); //#18673 + if ($k[--$j]) { //#18673 + $k[$j++] = $1.N; //#18673 + break; //#18673 + } //#18673 + if (($1.numA >= 1) || ($1.numN >= 1)) { //#18674 + $k[$j++] = $1.A; //#18674 + break; //#18674 + } //#18674 + $k[$j++] = $1.B; //#18675 + break; //#18675 + } //#18675 + if ($1.mode == $1.N) { //#18683 + if ($1.numK >= 1) { //#18678 + $k[$j++] = $1.K; //#18678 + break; //#18678 + } //#18678 + if ($1.numB >= 1) { //#18679 + $k[$j++] = $1.B; //#18679 + break; //#18679 + } //#18679 + if ($1.numA >= 1) { //#18680 + $k[$j++] = $1.A; //#18680 + break; //#18680 + } //#18680 + if ($1.numN >= 1) { //#18681 + $k[$j++] = $1.N; //#18681 + break; //#18681 + } //#18681 + $k[$j++] = $1.B; //#18682 + break; //#18682 + } //#18682 + if ($1.mode == $1.K) { //#18690 + if ($1.numB >= 1) { //#18685 + $k[$j++] = $1.B; //#18685 + break; //#18685 + } //#18685 + if ($1.numA >= 1) { //#18686 + $k[$j++] = $1.A; //#18686 + break; //#18686 + } //#18686 + if ($1.numN >= 1) { //#18687 + $k[$j++] = $1.N; //#18687 + break; //#18687 + } //#18687 + if ($1.numK >= 1) { //#18688 + $k[$j++] = $1.K; //#18688 + break; //#18688 + } //#18688 + $k[$j++] = $1.B; //#18689 + break; //#18689 + } //#18689 + } //#18689 + var _CL = $k[--$j]; //#18692 + $k[$j++] = _CL; //#18692 + if ((_CL == $1.K) && $1.fnc1first) { //#18692 + $j--; //#18692 + $k[$j++] = $1.B; //#18692 + } //#18692 + var _CP = $k[--$j]; //#18693 + $k[$j++] = _CP; //#18709 + if (_CP == $1.mode) { //#18708 + $j--; //#18694 + var _CV = ($1.mode == $1.K) ? 2 : 1; //#18695 + $1.dat = $geti($1.msg, $1.i, _CV); //#18695 + $k[$j++] = Infinity; //#18698 + $aload($1.seq); //#18697 + $k[$j++] = Infinity; //#18698 + var _CY = $k[--$j]; //#18698 + var _CZ = $k[--$j]; //#18698 + $k[$j++] = _CY; //#18698 + $aload(_CZ); //#18698 + $aload($1.dat); //#18698 + var _Cb = $a(); //#18698 + $k[$j++] = _Cb; //#18698 + $1.seq = $a(); //#18698 + } else { //#18708 + $1.mode = $k[--$j]; //#18701 + if ($1.mode == $1.K) { //#18702 + $k[$j++] = $1.K; //#18702 + $k[$j++] = $geti($1.msg, $1.i, $1.numK * 2); //#18702 + } //#18702 + if ($1.mode == $1.B) { //#18703 + $k[$j++] = $1.B; //#18703 + $k[$j++] = $geti($1.msg, $1.i, $1.numB); //#18703 + } //#18703 + if ($1.mode == $1.A) { //#18704 + $k[$j++] = $1.A; //#18704 + $k[$j++] = $geti($1.msg, $1.i, $1.numA); //#18704 + } //#18704 + if ($1.mode == $1.N) { //#18705 + $k[$j++] = $1.N; //#18705 + $k[$j++] = $geti($1.msg, $1.i, $1.numN); //#18705 + } //#18705 + if ($1.mode == $1.E) { //#18706 + $1.mode = -1; //#18706 + $k[$j++] = $1.E; //#18706 + $k[$j++] = $geti($1.msg, $1.i, 1); //#18706 + } //#18706 + $1.dat = $k[--$j]; //#18707 + $1.sw = $k[--$j]; //#18707 + $k[$j++] = Infinity; //#18708 + $aload($1.seq); //#18708 + $k[$j++] = $1.sw; //#18708 + $k[$j++] = $1.dat; //#18708 + $1.seq = $a(); //#18708 + } //#18708 + $1.i = $1.i + $1.dat.length; //#18710 + } //#18710 + for (;;) { //#18740 + if ($1.seq == -1) { //#18715 + break; //#18715 + } //#18715 + $1.bits = $s(23648); //#18716 + $1.j = 0; //#18717 + if ($1.fnc1first) { //#18720 + if ($lt($1.ver, $1.vR7x43)) { //#18719 + $k[$j++] = "0101"; //#18719 + } else { //#18719 + $k[$j++] = "101"; //#18719 + } //#18719 + $1.addtobits(); //#18719 + } //#18719 + $1.abort = false; //#18721 + for (var _DR = 0, _DQ = $1.seq.length - 1; _DR <= _DQ; _DR += 2) { //#18735 + $1.i = _DR; //#18723 + $1.mode = $get($1.seq, $1.i); //#18724 + $k[$j++] = $get($get($1.mids, $1.ver), $1.mode); //#18725 + $1.addtobits(); //#18725 + $1.chars = $get($1.seq, $1.i + 1); //#18726 + if ($1.mode != $1.E) { //#18733 + $1.cclen = $get($get($1.cclens, $1.ver), $1.mode); //#18728 + if ($1.chars.length >= (~~Math.pow(2, $1.cclen))) { //#18731 + $1.abort = true; //#18730 + break; //#18730 + } //#18730 + $k[$j++] = $1.chars.length; //#18732 + if ($1.mode == $1.K) { //#18732 + var _Dp = $k[--$j]; //#18732 + $k[$j++] = ~~(_Dp / 2); //#18732 + } //#18732 + $k[$j++] = $1.cclen; //#18732 + $1.tobin(); //#18732 + $1.addtobits(); //#18732 + } //#18732 + $k[$j++] = $1.chars; //#18734 + if ($1[$get($1.encfuncs, $1.mode)]() === true) { break; - } - if ($ge($1.ver, $1.vR7x43)) { - $k[$j++] = $1.B; + } //#18734 + $1.addtobits(); //#18734 + } //#18734 + if ($1.abort) { //#18736 + break; //#18736 + } //#18736 + $1.bits = $geti($1.bits, 0, $1.j); //#18737 + $put($1.msgbits, $1.ver, $1.bits); //#18738 + break; //#18739 + } //#18739 + } //#18739 + $1.metrics = $a([$a(["micro", "M1", $1.vM1, 11, 11, 98, 99, 36, $a([2, 99, 99, 99]), $a([1, 0, -1, -1, -1, -1, -1, -1])]), $a(["micro", "M2", $1.vM2, 13, 13, 98, 99, 80, $a([5, 6, 99, 99]), $a([1, 0, 1, 0, -1, -1, -1, -1])]), $a(["micro", "M3", $1.vM3, 15, 15, 98, 99, 132, $a([6, 8, 99, 99]), $a([1, 0, 1, 0, -1, -1, -1, -1])]), $a(["micro", "M4", $1.vM4, 17, 17, 98, 99, 192, $a([8, 10, 14, 99]), $a([1, 0, 1, 0, 1, 0, -1, -1])]), $a(["full", "1", $1.v1to9, 21, 21, 98, 99, 208, $a([7, 10, 13, 17]), $a([1, 0, 1, 0, 1, 0, 1, 0])]), $a(["full", "2", $1.v1to9, 25, 25, 18, 99, 359, $a([10, 16, 22, 28]), $a([1, 0, 1, 0, 1, 0, 1, 0])]), $a(["full", "3", $1.v1to9, 29, 29, 22, 99, 567, $a([15, 26, 36, 44]), $a([1, 0, 1, 0, 2, 0, 2, 0])]), $a(["full", "4", $1.v1to9, 33, 33, 26, 99, 807, $a([20, 36, 52, 64]), $a([1, 0, 2, 0, 2, 0, 4, 0])]), $a(["full", "5", $1.v1to9, 37, 37, 30, 99, 1079, $a([26, 48, 72, 88]), $a([1, 0, 2, 0, 2, 2, 2, 2])]), $a(["full", "6", $1.v1to9, 41, 41, 34, 99, 1383, $a([36, 64, 96, 112]), $a([2, 0, 4, 0, 4, 0, 4, 0])]), $a(["full", "7", $1.v1to9, 45, 45, 22, 38, 1568, $a([40, 72, 108, 130]), $a([2, 0, 4, 0, 2, 4, 4, 1])]), $a(["full", "8", $1.v1to9, 49, 49, 24, 42, 1936, $a([48, 88, 132, 156]), $a([2, 0, 2, 2, 4, 2, 4, 2])]), $a(["full", "9", $1.v1to9, 53, 53, 26, 46, 2336, $a([60, 110, 160, 192]), $a([2, 0, 3, 2, 4, 4, 4, 4])]), $a(["full", "10", $1.v10to26, 57, 57, 28, 50, 2768, $a([72, 130, 192, 224]), $a([2, 2, 4, 1, 6, 2, 6, 2])]), $a(["full", "11", $1.v10to26, 61, 61, 30, 54, 3232, $a([80, 150, 224, 264]), $a([4, 0, 1, 4, 4, 4, 3, 8])]), $a(["full", "12", $1.v10to26, 65, 65, 32, 58, 3728, $a([96, 176, 260, 308]), $a([2, 2, 6, 2, 4, 6, 7, 4])]), $a(["full", "13", $1.v10to26, 69, 69, 34, 62, 4256, $a([104, 198, 288, 352]), $a([4, 0, 8, 1, 8, 4, 12, 4])]), $a(["full", "14", $1.v10to26, 73, 73, 26, 46, 4651, $a([120, 216, 320, 384]), $a([3, 1, 4, 5, 11, 5, 11, 5])]), $a(["full", "15", $1.v10to26, 77, 77, 26, 48, 5243, $a([132, 240, 360, 432]), $a([5, 1, 5, 5, 5, 7, 11, 7])]), $a(["full", "16", $1.v10to26, 81, 81, 26, 50, 5867, $a([144, 280, 408, 480]), $a([5, 1, 7, 3, 15, 2, 3, 13])]), $a(["full", "17", $1.v10to26, 85, 85, 30, 54, 6523, $a([168, 308, 448, 532]), $a([1, 5, 10, 1, 1, 15, 2, 17])]), $a(["full", "18", $1.v10to26, 89, 89, 30, 56, 7211, $a([180, 338, 504, 588]), $a([5, 1, 9, 4, 17, 1, 2, 19])]), $a(["full", "19", $1.v10to26, 93, 93, 30, 58, 7931, $a([196, 364, 546, 650]), $a([3, 4, 3, 11, 17, 4, 9, 16])]), $a(["full", "20", $1.v10to26, 97, 97, 34, 62, 8683, $a([224, 416, 600, 700]), $a([3, 5, 3, 13, 15, 5, 15, 10])]), $a(["full", "21", $1.v10to26, 101, 101, 28, 50, 9252, $a([224, 442, 644, 750]), $a([4, 4, 17, 0, 17, 6, 19, 6])]), $a(["full", "22", $1.v10to26, 105, 105, 26, 50, 10068, $a([252, 476, 690, 816]), $a([2, 7, 17, 0, 7, 16, 34, 0])]), $a(["full", "23", $1.v10to26, 109, 109, 30, 54, 10916, $a([270, 504, 750, 900]), $a([4, 5, 4, 14, 11, 14, 16, 14])]), $a(["full", "24", $1.v10to26, 113, 113, 28, 54, 11796, $a([300, 560, 810, 960]), $a([6, 4, 6, 14, 11, 16, 30, 2])]), $a(["full", "25", $1.v10to26, 117, 117, 32, 58, 12708, $a([312, 588, 870, 1050]), $a([8, 4, 8, 13, 7, 22, 22, 13])]), $a(["full", "26", $1.v10to26, 121, 121, 30, 58, 13652, $a([336, 644, 952, 1110]), $a([10, 2, 19, 4, 28, 6, 33, 4])]), $a(["full", "27", $1.v27to40, 125, 125, 34, 62, 14628, $a([360, 700, 1020, 1200]), $a([8, 4, 22, 3, 8, 26, 12, 28])]), $a(["full", "28", $1.v27to40, 129, 129, 26, 50, 15371, $a([390, 728, 1050, 1260]), $a([3, 10, 3, 23, 4, 31, 11, 31])]), $a(["full", "29", $1.v27to40, 133, 133, 30, 54, 16411, $a([420, 784, 1140, 1350]), $a([7, 7, 21, 7, 1, 37, 19, 26])]), $a(["full", "30", $1.v27to40, 137, 137, 26, 52, 17483, $a([450, 812, 1200, 1440]), $a([5, 10, 19, 10, 15, 25, 23, 25])]), $a(["full", "31", $1.v27to40, 141, 141, 30, 56, 18587, $a([480, 868, 1290, 1530]), $a([13, 3, 2, 29, 42, 1, 23, 28])]), $a(["full", "32", $1.v27to40, 145, 145, 34, 60, 19723, $a([510, 924, 1350, 1620]), $a([17, 0, 10, 23, 10, 35, 19, 35])]), $a(["full", "33", $1.v27to40, 149, 149, 30, 58, 20891, $a([540, 980, 1440, 1710]), $a([17, 1, 14, 21, 29, 19, 11, 46])]), $a(["full", "34", $1.v27to40, 153, 153, 34, 62, 22091, $a([570, 1036, 1530, 1800]), $a([13, 6, 14, 23, 44, 7, 59, 1])]), $a(["full", "35", $1.v27to40, 157, 157, 30, 54, 23008, $a([570, 1064, 1590, 1890]), $a([12, 7, 12, 26, 39, 14, 22, 41])]), $a(["full", "36", $1.v27to40, 161, 161, 24, 50, 24272, $a([600, 1120, 1680, 1980]), $a([6, 14, 6, 34, 46, 10, 2, 64])]), $a(["full", "37", $1.v27to40, 165, 165, 28, 54, 25568, $a([630, 1204, 1770, 2100]), $a([17, 4, 29, 14, 49, 10, 24, 46])]), $a(["full", "38", $1.v27to40, 169, 169, 32, 58, 26896, $a([660, 1260, 1860, 2220]), $a([4, 18, 13, 32, 48, 14, 42, 32])]), $a(["full", "39", $1.v27to40, 173, 173, 26, 54, 28256, $a([720, 1316, 1950, 2310]), $a([20, 4, 40, 7, 43, 22, 10, 67])]), $a(["full", "40", $1.v27to40, 177, 177, 30, 58, 29648, $a([750, 1372, 2040, 2430]), $a([19, 6, 18, 31, 34, 34, 20, 61])]), $a(["rmqr", "R7x43", $1.vR7x43, 7, 43, 22, 99, 104, $a([99, 7, 99, 10]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x59", $1.vR7x59, 7, 59, 20, 40, 171, $a([99, 9, 99, 14]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x77", $1.vR7x77, 7, 77, 26, 52, 261, $a([99, 12, 99, 22]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x99", $1.vR7x99, 7, 99, 24, 50, 358, $a([99, 16, 99, 30]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R7x139", $1.vR7x139, 7, 139, 28, 56, 545, $a([99, 24, 99, 44]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R9x43", $1.vR9x43, 9, 43, 22, 99, 170, $a([99, 9, 99, 14]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R9x59", $1.vR9x59, 9, 59, 20, 40, 267, $a([99, 12, 99, 22]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R9x77", $1.vR9x77, 9, 77, 26, 52, 393, $a([99, 18, 99, 32]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R9x99", $1.vR9x99, 9, 99, 24, 50, 532, $a([99, 24, 99, 44]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R9x139", $1.vR9x139, 9, 139, 28, 56, 797, $a([99, 36, 99, 66]), $a([-1, -1, 1, 1, -1, -1, 3, 0])]), $a(["rmqr", "R11x27", $1.vR11x27, 11, 27, 98, 99, 122, $a([99, 8, 99, 10]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R11x43", $1.vR11x43, 11, 43, 22, 99, 249, $a([99, 12, 99, 20]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R11x59", $1.vR11x59, 11, 59, 20, 40, 376, $a([99, 16, 99, 32]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R11x77", $1.vR11x77, 11, 77, 26, 52, 538, $a([99, 24, 99, 44]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R11x99", $1.vR11x99, 11, 99, 24, 50, 719, $a([99, 32, 99, 60]), $a([-1, -1, 1, 1, -1, -1, 1, 1])]), $a(["rmqr", "R11x139", $1.vR11x139, 11, 139, 28, 56, 1062, $a([99, 48, 99, 90]), $a([-1, -1, 2, 0, -1, -1, 3, 0])]), $a(["rmqr", "R13x27", $1.vR13x27, 13, 27, 98, 99, 172, $a([99, 9, 99, 14]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R13x43", $1.vR13x43, 13, 43, 22, 99, 329, $a([99, 14, 99, 28]), $a([-1, -1, 1, 0, -1, -1, 1, 0])]), $a(["rmqr", "R13x59", $1.vR13x59, 13, 59, 20, 40, 486, $a([99, 22, 99, 40]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R13x77", $1.vR13x77, 13, 77, 26, 52, 684, $a([99, 32, 99, 56]), $a([-1, -1, 1, 1, -1, -1, 1, 1])]), $a(["rmqr", "R13x99", $1.vR13x99, 13, 99, 24, 50, 907, $a([99, 40, 99, 78]), $a([-1, -1, 1, 1, -1, -1, 1, 2])]), $a(["rmqr", "R13x139", $1.vR13x139, 13, 139, 28, 56, 1328, $a([99, 60, 99, 112]), $a([-1, -1, 2, 1, -1, -1, 2, 2])]), $a(["rmqr", "R15x43", $1.vR15x43, 15, 43, 22, 99, 409, $a([99, 18, 99, 36]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R15x59", $1.vR15x59, 15, 59, 20, 40, 596, $a([99, 26, 99, 48]), $a([-1, -1, 1, 0, -1, -1, 2, 0])]), $a(["rmqr", "R15x77", $1.vR15x77, 15, 77, 26, 52, 830, $a([99, 36, 99, 72]), $a([-1, -1, 1, 1, -1, -1, 2, 1])]), $a(["rmqr", "R15x99", $1.vR15x99, 15, 99, 24, 50, 1095, $a([99, 48, 99, 88]), $a([-1, -1, 2, 0, -1, -1, 4, 0])]), $a(["rmqr", "R15x139", $1.vR15x139, 15, 139, 28, 56, 1594, $a([99, 72, 99, 130]), $a([-1, -1, 2, 1, -1, -1, 1, 4])]), $a(["rmqr", "R17x43", $1.vR17x43, 17, 43, 22, 99, 489, $a([99, 22, 99, 40]), $a([-1, -1, 1, 0, -1, -1, 1, 1])]), $a(["rmqr", "R17x59", $1.vR17x59, 17, 59, 20, 40, 706, $a([99, 32, 99, 60]), $a([-1, -1, 2, 0, -1, -1, 2, 0])]), $a(["rmqr", "R17x77", $1.vR17x77, 17, 77, 26, 52, 976, $a([99, 44, 99, 84]), $a([-1, -1, 2, 0, -1, -1, 1, 2])]), $a(["rmqr", "R17x99", $1.vR17x99, 17, 99, 24, 50, 1283, $a([99, 60, 99, 104]), $a([-1, -1, 2, 1, -1, -1, 4, 0])]), $a(["rmqr", "R17x139", $1.vR17x139, 17, 139, 28, 56, 1860, $a([99, 80, 99, 156]), $a([-1, -1, 4, 0, -1, -1, 2, 4])])]); //#18823 + $k[$j++] = 'eclval'; //#18824 + $search("LMQH", $1.eclevel); //#18824 + $j--; //#18824 + var _Iz = $k[--$j]; //#18824 + var _J0 = $k[--$j]; //#18824 + $k[$j++] = _Iz.length; //#18824 + $k[$j++] = _J0; //#18824 + $j--; //#18824 + var _J1 = $k[--$j]; //#18824 + var _J2 = $k[--$j]; //#18824 + $k[$j++] = _J1; //#18824 + $k[$j++] = _J2; //#18824 + $j--; //#18824 + var _J3 = $k[--$j]; //#18824 + $1[$k[--$j]] = _J3; //#18824 + for (var _J7 = 0, _J6 = $1.metrics.length - 1; _J7 <= _J6; _J7 += 1) { //#18863 + $1.i = _J7; //#18826 + $1.m = $get($1.metrics, $1.i); //#18827 + $1.frmt = $get($1.m, 0); //#18828 + $1.vers = $get($1.m, 1); //#18829 + $1.vergrp = $get($1.m, 2); //#18830 + $1.verind = $1.i - 44; //#18831 + $1.rows = $get($1.m, 3); //#18832 + $1.cols = $get($1.m, 4); //#18833 + $1.asp2 = $get($1.m, 5); //#18834 + $1.asp3 = $get($1.m, 6); //#18835 + $1.nmod = $get($1.m, 7); //#18836 + $1.ncws = ~~($1.nmod / 8); //#18837 + $1.rbit = $1.nmod % 8; //#18838 + $1.lc4b = false; //#18839 + if ($eq($1.vers, "M1") || $eq($1.vers, "M3")) { //#18844 + $1.ncws = $1.ncws + 1; //#18841 + $1.rbit = 0; //#18842 + $1.lc4b = true; //#18843 + } //#18843 + $1.ecws = $get($get($1.m, 8), $1.eclval); //#18845 + $1.dcws = $f($1.ncws - $1.ecws); //#18846 + var _Jf = $1.lc4b ? 4 : 0; //#18847 + $1.dmod = $f(($1.dcws * 8) - _Jf); //#18847 + $1.ecb1 = $get($get($1.m, 9), $1.eclval * 2); //#18848 + $1.ecb2 = $get($get($1.m, 9), $f(($1.eclval * 2) + 1)); //#18849 + $1.okay = true; //#18850 + if ($ne($1.format, $1.frmt)) { //#18851 + $1.okay = false; //#18851 + } //#18851 + if ($eq($1.frmt, "micro") && $1.fnc1first) { //#18852 + $1.okay = false; //#18852 + } //#18852 + if ($ne($1.version, "unset") && $ne($1.version, $1.vers)) { //#18853 + $1.okay = false; //#18853 + } //#18853 + if (($1.ecb1 == -1) || ($1.ecb2 == -1)) { //#18854 + $1.okay = false; //#18854 + } //#18854 + $1.verbits = $get($1.msgbits, $1.vergrp); //#18855 + if ($1.verbits == -1) { //#18859 + $1.okay = false; //#18857 + } else { //#18859 + if ($1.verbits.length > $1.dmod) { //#18859 + $1.okay = false; //#18859 + } //#18859 + } //#18859 + $1.term = $geti("000000000", 0, $get($1.termlens, $1.vergrp)); //#18861 + if ($1.okay) { //#18862 + break; //#18862 + } //#18862 + } //#18862 + if (!$1.okay) { //#18867 + $k[$j++] = 'bwipp.qrcodeNoValidSymbol'; //#18866 + $k[$j++] = "No valid symbol available"; //#18866 + $0.raiseerror(); //#18866 + } //#18866 + $1.format = $1.frmt; //#18869 + $1.version = $1.vers; //#18870 + $1.msgbits = $1.verbits; //#18871 + $1.dcpb = ~~($1.dcws / $f($1.ecb1 + $1.ecb2)); //#18872 + $1.ecpb = (~~($1.ncws / $f($1.ecb1 + $1.ecb2))) - $1.dcpb; //#18873 + var _KJ = $1.term; //#18876 + var _KK = $1.dmod; //#18876 + var _KL = $1.msgbits; //#18876 + var _KM = $1.term; //#18876 + var _KN = _KM.length; //#18876 + var _KO = $f(_KK - _KL.length); //#18876 + if ($f(_KK - _KL.length) > _KM.length) { //#18876 + var _ = _KN; //#18876 + _KN = _KO; //#18876 + _KO = _; //#18876 + } //#18876 + $1.term = $geti(_KJ, 0, _KO); //#18876 + var _KS = $s($1.msgbits.length + $1.term.length); //#18877 + $puti(_KS, 0, $1.msgbits); //#18878 + $puti(_KS, $1.msgbits.length, $1.term); //#18879 + $1.msgbits = _KS; //#18880 + $1.pad = $s($1.dmod); //#18883 + for (var _Ka = 0, _KZ = $1.pad.length - 1; _Ka <= _KZ; _Ka += 1) { //#18884 + $put($1.pad, _Ka, 48); //#18884 + } //#18884 + $puti($1.pad, 0, $1.msgbits); //#18885 + $1.padstrs = $a(["11101100", "00010001"]); //#18886 + $1.padnum = 0; //#18887 + var _Ki = $1.lc4b ? 5 : 1; //#18888 + for (var _Kk = ~~(Math.ceil($1.msgbits.length / 8) * 8), _Kj = $f($1.dmod - _Ki); _Kk <= _Kj; _Kk += 8) { //#18891 + $puti($1.pad, _Kk, $get($1.padstrs, $1.padnum)); //#18889 + $1.padnum = ($1.padnum + 1) % 2; //#18890 + } //#18890 + $1.cws = $a($1.dcws); //#18894 + for (var _Ku = 0, _Kt = $1.cws.length - 1; _Ku <= _Kt; _Ku += 1) { //#18906 + $1.c = _Ku; //#18896 + $1.bpcw = 8; //#18897 + if ($1.lc4b && ($1.c == ($1.cws.length - 1))) { //#18898 + $1.bpcw = 4; //#18898 + } //#18898 + $1.cwb = $geti($1.pad, $1.c * 8, $1.bpcw); //#18899 + $1.cw = 0; //#18900 + for (var _L4 = 0, _L3 = $1.bpcw - 1; _L4 <= _L3; _L4 += 1) { //#18904 + $1.i = _L4; //#18902 + $1.cw = $f($1.cw + ((~~(Math.pow(2, ($1.bpcw - $1.i) - 1))) * $f($get($1.cwb, $1.i) - 48))); //#18903 + } //#18903 + $put($1.cws, $1.c, $1.cw); //#18905 + } //#18905 + if ($1.lc4b) { //#18909 + var _LF = $1.cws; //#18909 + var _LG = $1.cws; //#18909 + $put(_LF, _LG.length - 1, $get(_LF, _LG.length - 1) << 4); //#18909 + } //#18909 + var _LJ = $get($1.options, 'debugcws') !== undefined; //#18911 + if (_LJ) { //#18911 + $k[$j++] = 'bwipp.debugcws'; //#18911 + $k[$j++] = $1.cws; //#18911 + $0.raiseerror(); //#18911 + } //#18911 + $k[$j++] = Infinity; //#18914 + $k[$j++] = 1; //#18914 + for (var _LL = 0, _LM = 255; _LL < _LM; _LL++) { //#18914 + var _LN = $k[--$j]; //#18914 + var _LO = _LN * 2; //#18914 + $k[$j++] = _LN; //#18914 + $k[$j++] = _LO; //#18914 + if (_LO >= 256) { //#18914 + var _LP = $k[--$j]; //#18914 + $k[$j++] = _LP ^ 285; //#18914 + } //#18914 + } //#18914 + $1.rsalog = $a(); //#18914 + $1.rslog = $a(256); //#18915 + for (var _LS = 1; _LS <= 255; _LS += 1) { //#18916 + $put($1.rslog, $get($1.rsalog, _LS), _LS); //#18916 + } //#18916 + $1.rsprod = function() { + var _LW = $k[--$j]; //#18920 + var _LX = $k[--$j]; //#18920 + $k[$j++] = _LX; //#18924 + $k[$j++] = _LW; //#18924 + if ((_LW != 0) && (_LX != 0)) { //#18923 + var _La = $get($1.rslog, $k[--$j]); //#18921 + var _Lf = $get($1.rsalog, $f(_La + $get($1.rslog, $k[--$j])) % 255); //#18921 + $k[$j++] = _Lf; //#18921 + } else { //#18923 + $j -= 2; //#18923 + $k[$j++] = 0; //#18923 + } //#18923 + }; //#18925 + $k[$j++] = Infinity; //#18928 + $k[$j++] = 1; //#18928 + for (var _Lh = 0, _Li = $1.ecpb; _Lh < _Li; _Lh++) { //#18928 + $k[$j++] = 0; //#18928 + } //#18928 + $1.coeffs = $a(); //#18928 + for (var _Lm = 0, _Ll = $1.ecpb - 1; _Lm <= _Ll; _Lm += 1) { //#18937 + $1.i = _Lm; //#18930 + $put($1.coeffs, $1.i + 1, $get($1.coeffs, $1.i)); //#18931 + for (var _Lt = $1.i; _Lt >= 1; _Lt -= 1) { //#18935 + $1.j = _Lt; //#18933 + $k[$j++] = $1.coeffs; //#18934 + $k[$j++] = $1.j; //#18934 + $k[$j++] = $get($1.coeffs, $1.j - 1); //#18934 + $k[$j++] = $get($1.coeffs, $1.j); //#18934 + $k[$j++] = $get($1.rsalog, $1.i); //#18934 + $1.rsprod(); //#18934 + var _M5 = $k[--$j]; //#18934 + var _M6 = $k[--$j]; //#18934 + var _M7 = $k[--$j]; //#18934 + $put($k[--$j], _M7, $xo(_M6, _M5)); //#18934 + } //#18934 + $k[$j++] = $1.coeffs; //#18936 + $k[$j++] = 0; //#18936 + $k[$j++] = $get($1.coeffs, 0); //#18936 + $k[$j++] = $get($1.rsalog, $1.i); //#18936 + $1.rsprod(); //#18936 + var _MF = $k[--$j]; //#18936 + var _MG = $k[--$j]; //#18936 + $put($k[--$j], _MG, _MF); //#18936 + } //#18936 + $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); //#18938 + $1.rscodes = function() { + $1.rscws = $k[--$j]; //#18942 + $1.rsnd = $1.rscws.length; //#18943 + $k[$j++] = Infinity; //#18944 + $forall($1.rscws); //#18944 + for (var _MP = 0, _MQ = $1.ecpb; _MP < _MQ; _MP++) { //#18944 + $k[$j++] = 0; //#18944 + } //#18944 + $1.rscws = $a(); //#18944 + for (var _MU = 0, _MT = $1.rsnd - 1; _MU <= _MT; _MU += 1) { //#18952 + $1.m = _MU; //#18946 + $1.k = $get($1.rscws, $1.m); //#18947 + for (var _Ma = 0, _MZ = $1.ecpb - 1; _Ma <= _MZ; _Ma += 1) { //#18951 + $1.j = _Ma; //#18949 + $k[$j++] = $1.rscws; //#18950 + $k[$j++] = ($1.m + $1.j) + 1; //#18950 + $k[$j++] = $get($1.coeffs, ($1.ecpb - $1.j) - 1); //#18950 + $k[$j++] = $1.k; //#18950 + $1.rsprod(); //#18950 + var _Mn = $k[--$j]; //#18950 + var _Mo = $k[--$j]; //#18950 + $put($k[--$j], _Mo, $xo(_Mn, $get($1.rscws, ($1.m + $1.j) + 1))); //#18950 + } //#18950 + } //#18950 + $k[$j++] = $geti($1.rscws, $1.rsnd, $1.ecpb); //#18953 + }; //#18954 + $1.dcwsb = $a($f($1.ecb1 + $1.ecb2)); //#18957 + $1.ecwsb = $a($f($1.ecb1 + $1.ecb2)); //#18958 + for (var _N2 = 0, _N1 = $f($1.ecb1 - 1); _N2 <= _N1; _N2 += 1) { //#18963 + $1.i = _N2; //#18960 + $put($1.dcwsb, $1.i, $geti($1.cws, $1.i * $1.dcpb, $1.dcpb)); //#18961 + $k[$j++] = $1.ecwsb; //#18962 + $k[$j++] = $1.i; //#18962 + $k[$j++] = $get($1.dcwsb, $1.i); //#18962 + $1.rscodes(); //#18962 + var _NF = $k[--$j]; //#18962 + var _NG = $k[--$j]; //#18962 + $put($k[--$j], _NG, _NF); //#18962 + } //#18962 + for (var _NK = 0, _NJ = $f($1.ecb2 - 1); _NK <= _NJ; _NK += 1) { //#18968 + $1.i = _NK; //#18965 + $put($1.dcwsb, $f($1.ecb1 + $1.i), $geti($1.cws, $f(($1.ecb1 * $1.dcpb) + ($1.i * ($1.dcpb + 1))), $1.dcpb + 1)); //#18966 + $k[$j++] = $1.ecwsb; //#18967 + $k[$j++] = $f($1.ecb1 + $1.i); //#18967 + $k[$j++] = $get($1.dcwsb, $f($1.ecb1 + $1.i)); //#18967 + $1.rscodes(); //#18967 + var _Nc = $k[--$j]; //#18967 + var _Nd = $k[--$j]; //#18967 + $put($k[--$j], _Nd, _Nc); //#18967 + } //#18967 + $1.cws = $a($1.ncws); //#18971 + $1.cw = 0; //#18972 + for (var _Nj = 0, _Ni = $1.dcpb; _Nj <= _Ni; _Nj += 1) { //#18982 + $1.i = _Nj; //#18974 + for (var _Nn = 0, _Nm = $f($f($1.ecb1 + $1.ecb2) - 1); _Nn <= _Nm; _Nn += 1) { //#18981 + $1.j = _Nn; //#18976 + if ($1.i < $get($1.dcwsb, $1.j).length) { //#18980 + $put($1.cws, $1.cw, $get($get($1.dcwsb, $1.j), $1.i)); //#18978 + $1.cw = $1.cw + 1; //#18979 + } //#18979 + } //#18979 + } //#18979 + for (var _O2 = 0, _O1 = $1.ecpb - 1; _O2 <= _O1; _O2 += 1) { //#18990 + $1.i = _O2; //#18984 + for (var _O6 = 0, _O5 = $f($f($1.ecb1 + $1.ecb2) - 1); _O6 <= _O5; _O6 += 1) { //#18989 + $1.j = _O6; //#18986 + $put($1.cws, $1.cw, $get($get($1.ecwsb, $1.j), $1.i)); //#18987 + $1.cw = $1.cw + 1; //#18988 + } //#18988 + } //#18988 + if ($1.rbit > 0) { //#18998 + $1.pad = $a($1.cws.length + 1); //#18994 + $puti($1.pad, 0, $1.cws); //#18995 + $put($1.pad, $1.pad.length - 1, 0); //#18996 + $1.cws = $1.pad; //#18997 + } //#18997 + if ($1.lc4b) { //#19009 + var _OO = $1.cws; //#19002 + var _OP = $1.dcws; //#19002 + $put(_OO, $f(_OP - 1), $get(_OO, $f(_OP - 1)) >>> 4); //#19002 + for (var _OU = $f($1.dcws - 1), _OT = $1.ncws - 2; _OU <= _OT; _OU += 1) { //#19007 + $1.i = _OU; //#19004 + $put($1.cws, $1.i, ($get($1.cws, $1.i) & 15) << 4); //#19005 + $put($1.cws, $1.i, (($get($1.cws, $1.i + 1) >>> 4) & 15) | $get($1.cws, $1.i)); //#19006 + } //#19006 + $put($1.cws, $1.ncws - 1, ($get($1.cws, $1.ncws - 1) & 15) << 4); //#19008 + } //#19008 + var _Oo = $get($1.options, 'debugecc') !== undefined; //#19011 + if (_Oo) { //#19011 + $k[$j++] = 'bwipp.debugecc'; //#19011 + $k[$j++] = $1.cws; //#19011 + $0.raiseerror(); //#19011 + } //#19011 + $k[$j++] = Infinity; //#19014 + for (var _Os = 0, _Ot = $1.rows * $1.cols; _Os < _Ot; _Os++) { //#19014 + $k[$j++] = -1; //#19014 + } //#19014 + $1.pixs = $a(); //#19014 + $1.qmv = function() { + var _Ow = $k[--$j]; //#19015 + var _Ox = $k[--$j]; //#19015 + $k[$j++] = $f(_Ox + (_Ow * $1.cols)); //#19015 + }; //#19015 + if ($eq($1.format, "full")) { //#19024 + for (var _P1 = 8, _P0 = $f($1.cols - 9); _P1 <= _P0; _P1 += 1) { //#19023 + $1.i = _P1; //#19020 + $k[$j++] = $1.pixs; //#19021 + $k[$j++] = $1.i; //#19021 + $k[$j++] = 6; //#19021 + $1.qmv(); //#19021 + var _P5 = $k[--$j]; //#19021 + $put($k[--$j], _P5, ($1.i + 1) % 2); //#19021 + $k[$j++] = $1.pixs; //#19022 + $k[$j++] = 6; //#19022 + $k[$j++] = $1.i; //#19022 + $1.qmv(); //#19022 + var _PA = $k[--$j]; //#19022 + $put($k[--$j], _PA, ($1.i + 1) % 2); //#19022 + } //#19022 + } //#19022 + if ($eq($1.format, "micro")) { //#19031 + for (var _PF = 8, _PE = $f($1.cols - 1); _PF <= _PE; _PF += 1) { //#19030 + $1.i = _PF; //#19027 + $k[$j++] = $1.pixs; //#19028 + $k[$j++] = $1.i; //#19028 + $k[$j++] = 0; //#19028 + $1.qmv(); //#19028 + var _PJ = $k[--$j]; //#19028 + $put($k[--$j], _PJ, ($1.i + 1) % 2); //#19028 + $k[$j++] = $1.pixs; //#19029 + $k[$j++] = 0; //#19029 + $k[$j++] = $1.i; //#19029 + $1.qmv(); //#19029 + var _PO = $k[--$j]; //#19029 + $put($k[--$j], _PO, ($1.i + 1) % 2); //#19029 + } //#19029 + } //#19029 + if ($eq($1.format, "rmqr")) { //#19050 + for (var _PT = 3, _PS = $f($1.cols - 4); _PT <= _PS; _PT += 1) { //#19037 + $1.i = _PT; //#19034 + $k[$j++] = $1.pixs; //#19035 + $k[$j++] = $1.i; //#19035 + $k[$j++] = 0; //#19035 + $1.qmv(); //#19035 + var _PX = $k[--$j]; //#19035 + $put($k[--$j], _PX, ($1.i + 1) % 2); //#19035 + $k[$j++] = $1.pixs; //#19036 + $k[$j++] = $1.i; //#19036 + $k[$j++] = $f($1.rows - 1); //#19036 + $1.qmv(); //#19036 + var _Pd = $k[--$j]; //#19036 + $put($k[--$j], _Pd, ($1.i + 1) % 2); //#19036 + } //#19036 + for (var _Ph = 3, _Pg = $f($1.rows - 4); _Ph <= _Pg; _Ph += 1) { //#19042 + $1.i = _Ph; //#19039 + $k[$j++] = $1.pixs; //#19040 + $k[$j++] = 0; //#19040 + $k[$j++] = $1.i; //#19040 + $1.qmv(); //#19040 + var _Pl = $k[--$j]; //#19040 + $put($k[--$j], _Pl, ($1.i + 1) % 2); //#19040 + $k[$j++] = $1.pixs; //#19041 + $k[$j++] = $f($1.cols - 1); //#19041 + $k[$j++] = $1.i; //#19041 + $1.qmv(); //#19041 + var _Pr = $k[--$j]; //#19041 + $put($k[--$j], _Pr, ($1.i + 1) % 2); //#19041 + } //#19041 + for (var _Py = $f($1.asp2 - 1), _Pz = $f($1.asp3 - $1.asp2), _Px = $f($1.cols - 13); _Pz < 0 ? _Py >= _Px : _Py <= _Px; _Py += _Pz) { //#19049 + $1.i = _Py; //#19044 + for (var _Q2 = 3, _Q1 = $f($1.rows - 4); _Q2 <= _Q1; _Q2 += 1) { //#19048 + $1.j = _Q2; //#19046 + $k[$j++] = $1.pixs; //#19047 + $k[$j++] = $1.i; //#19047 + $k[$j++] = $1.j; //#19047 + $1.qmv(); //#19047 + var _Q7 = $k[--$j]; //#19047 + $put($k[--$j], _Q7, ($1.j + 1) % 2); //#19047 + } //#19047 + } //#19047 + } //#19047 + $1.fpat = $a([$a([1, 1, 1, 1, 1, 1, 1, 0]), $a([1, 0, 0, 0, 0, 0, 1, 0]), $a([1, 0, 1, 1, 1, 0, 1, 0]), $a([1, 0, 1, 1, 1, 0, 1, 0]), $a([1, 0, 1, 1, 1, 0, 1, 0]), $a([1, 0, 0, 0, 0, 0, 1, 0]), $a([1, 1, 1, 1, 1, 1, 1, 0]), $a([0, 0, 0, 0, 0, 0, 0, 0])]); //#19062 + $1.fsubpat = $a([$a([1, 1, 1, 1, 1, 9, 9, 9]), $a([1, 0, 0, 0, 1, 9, 9, 9]), $a([1, 0, 1, 0, 1, 9, 9, 9]), $a([1, 0, 0, 0, 1, 9, 9, 9]), $a([1, 1, 1, 1, 1, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9])]); //#19072 + $1.fcorpat = $a([$a([1, 1, 1, 9, 9, 9, 9, 9]), $a([1, 0, 9, 9, 9, 9, 9, 9]), $a([1, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9])]); //#19082 + $1.fnullpat = $a([$a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9, 9, 9, 9])]); //#19092 + var _Qy = new Map([ + ["full", $a([$1.fpat, $1.fpat, $1.fpat, $1.fnullpat])], + ["micro", $a([$1.fpat, $1.fnullpat, $1.fnullpat, $1.fnullpat])], + ["rmqr", $a([$1.fpat, $1.fcorpat, $1.fcorpat, $1.fsubpat])] + ]); //#19097 + $1.fpats = $get(_Qy, $1.format); //#19098 + for (var _R1 = 0; _R1 <= 7; _R1 += 1) { //#19112 + $1.y = _R1; //#19100 + for (var _R2 = 0; _R2 <= 7; _R2 += 1) { //#19111 + $1.x = _R2; //#19102 + $1.fpb0 = $get($get($get($1.fpats, 0), $1.y), $1.x); //#19103 + $1.fpb1 = $get($get($get($1.fpats, 1), $1.y), $1.x); //#19104 + $1.fpb2 = $get($get($get($1.fpats, 2), $1.y), $1.x); //#19105 + $1.fpb3 = $get($get($get($1.fpats, 3), $1.y), $1.x); //#19106 + if (($1.fpb0 != 9) && ($1.y < $1.rows)) { //#19107 + $k[$j++] = $1.pixs; //#19107 + $k[$j++] = $1.x; //#19107 + $k[$j++] = $1.y; //#19107 + $1.qmv(); //#19107 + var _RY = $k[--$j]; //#19107 + $put($k[--$j], _RY, $1.fpb0); //#19107 + } //#19107 + if ($1.fpb1 != 9) { //#19108 + $k[$j++] = $1.pixs; //#19108 + $k[$j++] = $f($f($1.cols - $1.x) - 1); //#19108 + $k[$j++] = $1.y; //#19108 + $1.qmv(); //#19108 + var _Rg = $k[--$j]; //#19108 + $put($k[--$j], _Rg, $1.fpb1); //#19108 + } //#19108 + if ($1.fpb2 != 9) { //#19109 + $k[$j++] = $1.pixs; //#19109 + $k[$j++] = $1.x; //#19109 + $k[$j++] = $f($f($1.rows - $1.y) - 1); //#19109 + $1.qmv(); //#19109 + var _Ro = $k[--$j]; //#19109 + $put($k[--$j], _Ro, $1.fpb2); //#19109 + } //#19109 + if ($1.fpb3 != 9) { //#19110 + $k[$j++] = $1.pixs; //#19110 + $k[$j++] = $f($f($1.cols - $1.x) - 1); //#19110 + $k[$j++] = $f($f($1.rows - $1.y) - 1); //#19110 + $1.qmv(); //#19110 + var _Rx = $k[--$j]; //#19110 + $put($k[--$j], _Rx, $1.fpb3); //#19110 + } //#19110 + } //#19110 + } //#19110 + $1.putalgnpat = function() { + $1.py = $k[--$j]; //#19116 + $1.px = $k[--$j]; //#19117 + for (var _S1 = 0; _S1 <= 4; _S1 += 1) { //#19127 + $1.pb = _S1; //#19119 + for (var _S2 = 0; _S2 <= 4; _S2 += 1) { //#19126 + $1.pa = _S2; //#19121 + $1.algnb = $get($get($1.algnpat, $1.pb), $1.pa); //#19122 + if ($1.algnb != 9) { //#19125 + $k[$j++] = $1.pixs; //#19124 + $k[$j++] = $f($1.px + $1.pa); //#19124 + $k[$j++] = $f($1.py + $1.pb); //#19124 + $1.qmv(); //#19124 + var _SF = $k[--$j]; //#19124 + $put($k[--$j], _SF, $1.algnb); //#19124 + } //#19124 + } //#19124 + } //#19124 + }; //#19128 + if ($eq($1.format, "full")) { //#19149 + $1.algnpat = $a([$a([1, 1, 1, 1, 1]), $a([1, 0, 0, 0, 1]), $a([1, 0, 1, 0, 1]), $a([1, 0, 0, 0, 1]), $a([1, 1, 1, 1, 1])]); //#19136 + for (var _ST = $f($1.asp2 - 2), _SU = $f($1.asp3 - $1.asp2), _SS = $f($1.cols - 13); _SU < 0 ? _ST >= _SS : _ST <= _SS; _ST += _SU) { //#19141 + $1.i = _ST; //#19138 + $k[$j++] = $1.i; //#19139 + $k[$j++] = 4; //#19139 + $1.putalgnpat(); //#19139 + $k[$j++] = 4; //#19140 + $k[$j++] = $1.i; //#19140 + $1.putalgnpat(); //#19140 + } //#19140 + for (var _Sc = $f($1.asp2 - 2), _Sd = $f($1.asp3 - $1.asp2), _Sb = $f($1.cols - 9); _Sd < 0 ? _Sc >= _Sb : _Sc <= _Sb; _Sc += _Sd) { //#19148 + $1.x = _Sc; //#19143 + for (var _Sj = $f($1.asp2 - 2), _Sk = $f($1.asp3 - $1.asp2), _Si = $f($1.rows - 9); _Sk < 0 ? _Sj >= _Si : _Sj <= _Si; _Sj += _Sk) { //#19147 + $1.y = _Sj; //#19145 + $k[$j++] = $1.x; //#19146 + $k[$j++] = $1.y; //#19146 + $1.putalgnpat(); //#19146 + } //#19146 + } //#19146 + } //#19146 + if ($eq($1.format, "rmqr")) { //#19163 + $1.algnpat = $a([$a([1, 1, 1, 9, 9]), $a([1, 0, 1, 9, 9]), $a([1, 1, 1, 9, 9]), $a([9, 9, 9, 9, 9]), $a([9, 9, 9, 9, 9])]); //#19157 + for (var _Sz = $f($1.asp2 - 2), _T0 = $f($1.asp3 - $1.asp2), _Sy = $f($1.cols - 13); _T0 < 0 ? _Sz >= _Sy : _Sz <= _Sy; _Sz += _T0) { //#19162 + $1.i = _Sz; //#19159 + $k[$j++] = $1.i; //#19160 + $k[$j++] = 0; //#19160 + $1.putalgnpat(); //#19160 + $k[$j++] = $1.i; //#19161 + $k[$j++] = $f($1.rows - 3); //#19161 + $1.putalgnpat(); //#19161 + } //#19161 + } //#19161 + var _W1 = new Map([ + ["full", $a([$a([$a([0, 8]), $a([8, $f($1.cols - 1)])]), $a([$a([1, 8]), $a([8, $f($1.cols - 2)])]), $a([$a([2, 8]), $a([8, $f($1.cols - 3)])]), $a([$a([3, 8]), $a([8, $f($1.cols - 4)])]), $a([$a([4, 8]), $a([8, $f($1.cols - 5)])]), $a([$a([5, 8]), $a([8, $f($1.cols - 6)])]), $a([$a([7, 8]), $a([8, $f($1.cols - 7)])]), $a([$a([8, 8]), $a([$f($1.cols - 8), 8])]), $a([$a([8, 7]), $a([$f($1.cols - 7), 8])]), $a([$a([8, 5]), $a([$f($1.cols - 6), 8])]), $a([$a([8, 4]), $a([$f($1.cols - 5), 8])]), $a([$a([8, 3]), $a([$f($1.cols - 4), 8])]), $a([$a([8, 2]), $a([$f($1.cols - 3), 8])]), $a([$a([8, 1]), $a([$f($1.cols - 2), 8])]), $a([$a([8, 0]), $a([$f($1.cols - 1), 8])])])], + ["micro", $a([$a([$a([1, 8])]), $a([$a([2, 8])]), $a([$a([3, 8])]), $a([$a([4, 8])]), $a([$a([5, 8])]), $a([$a([6, 8])]), $a([$a([7, 8])]), $a([$a([8, 8])]), $a([$a([8, 7])]), $a([$a([8, 6])]), $a([$a([8, 5])]), $a([$a([8, 4])]), $a([$a([8, 3])]), $a([$a([8, 2])]), $a([$a([8, 1])])])], + ["rmqr", $a([$a([$a([11, 3]), $a([$f($1.cols - 3), $f($1.rows - 6)])]), $a([$a([11, 2]), $a([$f($1.cols - 4), $f($1.rows - 6)])]), $a([$a([11, 1]), $a([$f($1.cols - 5), $f($1.rows - 6)])]), $a([$a([10, 5]), $a([$f($1.cols - 6), $f($1.rows - 2)])]), $a([$a([10, 4]), $a([$f($1.cols - 6), $f($1.rows - 3)])]), $a([$a([10, 3]), $a([$f($1.cols - 6), $f($1.rows - 4)])]), $a([$a([10, 2]), $a([$f($1.cols - 6), $f($1.rows - 5)])]), $a([$a([10, 1]), $a([$f($1.cols - 6), $f($1.rows - 6)])]), $a([$a([9, 5]), $a([$f($1.cols - 7), $f($1.rows - 2)])]), $a([$a([9, 4]), $a([$f($1.cols - 7), $f($1.rows - 3)])]), $a([$a([9, 3]), $a([$f($1.cols - 7), $f($1.rows - 4)])]), $a([$a([9, 2]), $a([$f($1.cols - 7), $f($1.rows - 5)])]), $a([$a([9, 1]), $a([$f($1.cols - 7), $f($1.rows - 6)])]), $a([$a([8, 5]), $a([$f($1.cols - 8), $f($1.rows - 2)])]), $a([$a([8, 4]), $a([$f($1.cols - 8), $f($1.rows - 3)])]), $a([$a([8, 3]), $a([$f($1.cols - 8), $f($1.rows - 4)])]), $a([$a([8, 2]), $a([$f($1.cols - 8), $f($1.rows - 5)])]), $a([$a([8, 1]), $a([$f($1.cols - 8), $f($1.rows - 6)])])])] + ]); //#19185 + $1.formatmap = $get(_W1, $1.format); //#19187 + $forall($1.formatmap, function() { //#19190 + $forall($k[--$j], function() { //#19189 + $forall($k[--$j]); //#19189 + $1.qmv(); //#19189 + $put($1.pixs, $k[--$j], 1); //#19189 + }); //#19189 + }); //#19189 + if ($eq($1.format, "full") && ($1.cols >= 45)) { //#19206 + $1.versionmap = $a([$a([$a([$f($1.cols - 9), 5]), $a([5, $f($1.cols - 9)])]), $a([$a([$f($1.cols - 10), 5]), $a([5, $f($1.cols - 10)])]), $a([$a([$f($1.cols - 11), 5]), $a([5, $f($1.cols - 11)])]), $a([$a([$f($1.cols - 9), 4]), $a([4, $f($1.cols - 9)])]), $a([$a([$f($1.cols - 10), 4]), $a([4, $f($1.cols - 10)])]), $a([$a([$f($1.cols - 11), 4]), $a([4, $f($1.cols - 11)])]), $a([$a([$f($1.cols - 9), 3]), $a([3, $f($1.cols - 9)])]), $a([$a([$f($1.cols - 10), 3]), $a([3, $f($1.cols - 10)])]), $a([$a([$f($1.cols - 11), 3]), $a([3, $f($1.cols - 11)])]), $a([$a([$f($1.cols - 9), 2]), $a([2, $f($1.cols - 9)])]), $a([$a([$f($1.cols - 10), 2]), $a([2, $f($1.cols - 10)])]), $a([$a([$f($1.cols - 11), 2]), $a([2, $f($1.cols - 11)])]), $a([$a([$f($1.cols - 9), 1]), $a([1, $f($1.cols - 9)])]), $a([$a([$f($1.cols - 10), 1]), $a([1, $f($1.cols - 10)])]), $a([$a([$f($1.cols - 11), 1]), $a([1, $f($1.cols - 11)])]), $a([$a([$f($1.cols - 9), 0]), $a([0, $f($1.cols - 9)])]), $a([$a([$f($1.cols - 10), 0]), $a([0, $f($1.cols - 10)])]), $a([$a([$f($1.cols - 11), 0]), $a([0, $f($1.cols - 11)])])]); //#19204 + } else { //#19206 + $1.versionmap = $a([]); //#19206 + } //#19206 + var _Xf = $1.versionmap; //#19208 + for (var _Xg = 0, _Xh = _Xf.length; _Xg < _Xh; _Xg++) { //#19210 + $forall($get(_Xf, _Xg), function() { //#19209 + $forall($k[--$j]); //#19209 + $1.qmv(); //#19209 + $put($1.pixs, $k[--$j], 0); //#19209 + }); //#19209 + } //#19209 + if ($eq($1.format, "full")) { //#19215 + $k[$j++] = $1.pixs; //#19214 + $k[$j++] = 8; //#19214 + $k[$j++] = $f($1.rows - 8); //#19214 + $1.qmv(); //#19214 + var _Xp = $k[--$j]; //#19214 + $put($k[--$j], _Xp, 0); //#19214 + } //#19214 + var _Y9 = $a([function() { + var _Xr = $k[--$j]; //#19220 + var _Xs = $k[--$j]; //#19220 + $k[$j++] = $f(_Xs + _Xr) % 2; //#19220 + }, function() { + var _Xt = $k[--$j]; //#19221 + var _Xu = $k[--$j]; //#19221 + $k[$j++] = _Xt; //#19221 + $k[$j++] = _Xu; //#19221 + $j--; //#19221 + var _Xv = $k[--$j]; //#19221 + $k[$j++] = _Xv % 2; //#19221 + }, function() { + $j--; //#19222 + var _Xw = $k[--$j]; //#19222 + $k[$j++] = _Xw % 3; //#19222 + }, function() { + var _Xx = $k[--$j]; //#19223 + var _Xy = $k[--$j]; //#19223 + $k[$j++] = $f(_Xy + _Xx) % 3; //#19223 + }, function() { + var _Xz = $k[--$j]; //#19224 + var _Y0 = $k[--$j]; //#19224 + $k[$j++] = ((~~(_Xz / 2)) + (~~(_Y0 / 3))) % 2; //#19224 + }, function() { + var _Y1 = $k[--$j]; //#19225 + var _Y3 = $k[--$j] * _Y1; //#19225 + $k[$j++] = $f((_Y3 % 2) + (_Y3 % 3)); //#19225 + }, function() { + var _Y4 = $k[--$j]; //#19226 + var _Y6 = $k[--$j] * _Y4; //#19226 + $k[$j++] = ($f((_Y6 % 2) + (_Y6 % 3))) % 2; //#19226 + }, function() { + var _Y7 = $k[--$j]; //#19227 + var _Y8 = $k[--$j]; //#19227 + $k[$j++] = ($f(((_Y8 * _Y7) % 3) + ($f(_Y8 + _Y7) % 2))) % 2; //#19227 + }]); //#19227 + var _YK = $a([function() { + var _YA = $k[--$j]; //#19230 + var _YB = $k[--$j]; //#19230 + $k[$j++] = _YA; //#19230 + $k[$j++] = _YB; //#19230 + $j--; //#19230 + var _YC = $k[--$j]; //#19230 + $k[$j++] = _YC % 2; //#19230 + }, function() { + var _YD = $k[--$j]; //#19231 + var _YE = $k[--$j]; //#19231 + $k[$j++] = ((~~(_YD / 2)) + (~~(_YE / 3))) % 2; //#19231 + }, function() { + var _YF = $k[--$j]; //#19232 + var _YH = $k[--$j] * _YF; //#19232 + $k[$j++] = ($f((_YH % 2) + (_YH % 3))) % 2; //#19232 + }, function() { + var _YI = $k[--$j]; //#19233 + var _YJ = $k[--$j]; //#19233 + $k[$j++] = ($f(((_YJ * _YI) % 3) + ($f(_YJ + _YI) % 2))) % 2; //#19233 + }]); //#19233 + var _YN = $a([function() { + var _YL = $k[--$j]; //#19236 + var _YM = $k[--$j]; //#19236 + $k[$j++] = ((~~(_YL / 2)) + (~~(_YM / 3))) % 2; //#19236 + }]); //#19236 + var _YO = new Map([ + ["full", _Y9], + ["micro", _YK], + ["rmqr", _YN] + ]); //#19236 + $1.maskfuncs = $get(_YO, $1.format); //#19238 + if ($1.mask != -1) { //#19242 + $1.maskfuncs = $a([$get($1.maskfuncs, $1.mask - 1)]); //#19240 + $1.bestmaskval = $1.mask - 1; //#19241 + } //#19241 + $1.masks = $a($1.maskfuncs.length); //#19243 + for (var _Yb = 0, _Ya = $1.masks.length - 1; _Yb <= _Ya; _Yb += 1) { //#19257 + $1.m = _Yb; //#19245 + $1.mask = $a($1.rows * $1.cols); //#19246 + for (var _Yh = 0, _Yg = $f($1.rows - 1); _Yh <= _Yg; _Yh += 1) { //#19255 + $1.j = _Yh; //#19248 + for (var _Yk = 0, _Yj = $f($1.cols - 1); _Yk <= _Yj; _Yk += 1) { //#19254 + $1.i = _Yk; //#19250 + $k[$j++] = $1.i; //#19251 + $k[$j++] = $1.j; //#19251 + if ($get($1.maskfuncs, $1.m)() === true) { break; - } - if ($1.mode == -1) { - $k[$j++] = $a([ 1, 1, 1, $1.e, $1.e, 1, 1 ]); - $1.KbeforeA(); - if ($k[--$j]) { - $k[$j++] = $1.K; - break; - } - $k[$j++] = $a([ 1, 1, 1, $1.e, $1.e, 1, 1 ]); - $1.KbeforeN(); - if ($k[--$j]) { - $k[$j++] = $1.K; - break; - } - $k[$j++] = $a([ 5, 5, 6, $1.e, $1.e, 2, 3 ]); - $1.KbeforeB(); - if ($k[--$j]) { - $k[$j++] = $1.K; - break; - } - $k[$j++] = $a([ 1, 1, 1, $1.e, $1.e, 1, 1 ]); - $1.KbeforeE(); - if ($k[--$j]) { - $k[$j++] = $1.K; - break; - } - if ($1.numK >= 1) { - $k[$j++] = $1.B; - break; - } - $k[$j++] = $a([ 6, 7, 8, $1.e, $1.e, 3, 4 ]); - $1.AbeforeB(); - if ($k[--$j]) { - $k[$j++] = $1.A; - break; - } - $k[$j++] = $a([ 1, 1, 1, $1.e, 1, 1, 1 ]); - $1.AbeforeN(); - if ($k[--$j]) { - $k[$j++] = $1.A; - break; - } - $k[$j++] = $a([ 1, 1, 1, $1.e, 1, 1, 1 ]); - $1.AbeforeE(); - if ($k[--$j]) { - $k[$j++] = $1.A; - break; - } - if ($1.numA >= 1) { - var _AF = $ne($1.ver, $1.vM2) ? $1.B : $1.A; - $k[$j++] = _AF; - break; - } - $k[$j++] = $a([ 4, 4, 5, $1.e, $1.e, 2, 3 ]); - $1.NbeforeB(); - if ($k[--$j]) { - $k[$j++] = $1.N; - break; - } - $k[$j++] = $a([ 1, 1, 1, $1.e, $1.e, 1, 1 ]); - $1.NbeforeB(); - if ($k[--$j]) { - $k[$j++] = $1.B; - break; - } - $k[$j++] = $a([ 7, 8, 9, $1.e, 3, 4, 5 ]); - $1.NbeforeA(); - if ($k[--$j]) { - $k[$j++] = $1.N; - break; - } - $k[$j++] = $a([ 1, 1, 1, $1.e, 1, 1, 1 ]); - $1.NbeforeA(); - if ($k[--$j]) { - $k[$j++] = $1.A; - break; - } - if ($1.numN >= 1) { - $k[$j++] = $1.N; - break; - } - $k[$j++] = $1.B; - break; - } - if ($1.mode == $1.B) { - $k[$j++] = $a([ 9, 12, 13, $1.e, $1.e, 4, 5 ]); - $1.KbeforeB(); - if ($k[--$j]) { - $k[$j++] = $1.K; - break; - } - $k[$j++] = $a([ 9, 10, 12, $1.e, $1.e, 4, 5 ]); - $1.KbeforeA(); - if ($k[--$j]) { - $k[$j++] = $1.K; - break; - } - $k[$j++] = $a([ 9, 10, 11, $1.e, $1.e, 5, 6 ]); - $1.KbeforeN(); - if ($k[--$j]) { - $k[$j++] = $1.K; - break; - } - $k[$j++] = $a([ 4, 5, 6, $1.e, $1.e, 2, 3 ]); - $1.KbeforeE(); - if ($k[--$j]) { - $k[$j++] = $1.K; - break; - } - $k[$j++] = $a([ 11, 12, 14, $1.e, $1.e, 5, 7 ]); - $1.AbeforeK(); - if ($k[--$j]) { - $k[$j++] = $1.A; - break; - } - $k[$j++] = $a([ 11, 15, 16, $1.e, $1.e, 6, 7 ]); - $1.AbeforeB(); - if ($k[--$j]) { - $k[$j++] = $1.A; - break; - } - $k[$j++] = $a([ 12, 13, 15, $1.e, $1.e, 6, 8 ]); - $1.AbeforeN(); - if ($k[--$j]) { - $k[$j++] = $1.A; - break; - } - $k[$j++] = $a([ 6, 7, 8, $1.e, $1.e, 3, 4 ]); - $1.AbeforeE(); - if ($k[--$j]) { - $k[$j++] = $1.A; - break; - } - $k[$j++] = $a([ 6, 7, 8, $1.e, $1.e, 3, 4 ]); - $1.NbeforeK(); - if ($k[--$j]) { - $k[$j++] = $1.N; - break; - } - $k[$j++] = $a([ 6, 8, 9, $1.e, $1.e, 3, 4 ]); - $1.NbeforeB(); - if ($k[--$j]) { - $k[$j++] = $1.N; - break; - } - $k[$j++] = $a([ 6, 7, 8, $1.e, $1.e, 3, 4 ]); - $1.NbeforeA(); - if ($k[--$j]) { - $k[$j++] = $1.N; - break; - } - $k[$j++] = $a([ 3, 4, 5, $1.e, $1.e, 2, 3 ]); - $1.NbeforeE(); - if ($k[--$j]) { - $k[$j++] = $1.N; - break; - } - $k[$j++] = $1.B; - break; - } - if ($1.mode == $1.A) { - if ($1.numK >= 1) { - $k[$j++] = $1.K; - break; - } - if ($1.numB >= 1) { - $k[$j++] = $1.B; - break; - } - $k[$j++] = $a([ 13, 15, 17, $1.e, 5, 7, 9 ]); - $1.NbeforeA(); - if ($k[--$j]) { - $k[$j++] = $1.N; - break; - } - $k[$j++] = $a([ 13, 17, 18, $1.e, $1.e, 7, 9 ]); - $1.NbeforeB(); - if ($k[--$j]) { - $k[$j++] = $1.N; - break; - } - $k[$j++] = $a([ 7, 8, 9, $1.e, 3, 4, 5 ]); - $1.NbeforeE(); - if ($k[--$j]) { - $k[$j++] = $1.N; - break; - } - if ($1.numA >= 1 || $1.numN >= 1) { - $k[$j++] = $1.A; - break; - } - $k[$j++] = $1.B; - break; - } - if ($1.mode == $1.N) { - if ($1.numK >= 1) { - $k[$j++] = $1.K; - break; - } - if ($1.numB >= 1) { - $k[$j++] = $1.B; - break; - } - if ($1.numA >= 1) { - $k[$j++] = $1.A; - break; - } - if ($1.numN >= 1) { - $k[$j++] = $1.N; - break; - } - $k[$j++] = $1.B; - break; - } - if ($1.mode == $1.K) { - if ($1.numB >= 1) { - $k[$j++] = $1.B; - break; - } - if ($1.numA >= 1) { - $k[$j++] = $1.A; - break; - } - if ($1.numN >= 1) { - $k[$j++] = $1.N; - break; - } - if ($1.numK >= 1) { - $k[$j++] = $1.K; - break; - } - $k[$j++] = $1.B; - break; - } - } - var _CL = $k[--$j]; - $k[$j++] = _CL; - if (_CL == $1.K && $1.fnc1first) { - $j--; - $k[$j++] = $1.B; - } - var _CP = $k[--$j]; - $k[$j++] = _CP; - if (_CP == $1.mode) { - $j--; - var _CV = $1.mode == $1.K ? 2 : 1; - $1.dat = $geti($1.msg, $1.i, _CV); - $k[$j++] = Infinity; - $aload($1.seq); - $k[$j++] = Infinity; - var _CY = $k[--$j]; - var _CZ = $k[--$j]; - $k[$j++] = _CY; - $aload(_CZ); - $aload($1.dat); - var _Cb = $a(); - $k[$j++] = _Cb; - $1.seq = $a(); - } else { - $1.mode = $k[--$j]; - if ($1.mode == $1.K) { - $k[$j++] = $1.K; - $k[$j++] = $geti($1.msg, $1.i, $1.numK * 2); - } - if ($1.mode == $1.B) { - $k[$j++] = $1.B; - $k[$j++] = $geti($1.msg, $1.i, $1.numB); - } - if ($1.mode == $1.A) { - $k[$j++] = $1.A; - $k[$j++] = $geti($1.msg, $1.i, $1.numA); - } - if ($1.mode == $1.N) { - $k[$j++] = $1.N; - $k[$j++] = $geti($1.msg, $1.i, $1.numN); - } - if ($1.mode == $1.E) { - $1.mode = -1; - $k[$j++] = $1.E; - $k[$j++] = $geti($1.msg, $1.i, 1); - } - $1.dat = $k[--$j]; - $1.sw = $k[--$j]; - $k[$j++] = Infinity; - $aload($1.seq); - $k[$j++] = $1.sw; - $k[$j++] = $1.dat; - $1.seq = $a(); - } - $1.i = $1.i + $1.dat.length; - } - for (;;) { - if ($1.seq == -1) { - break; - } - $1.bits = $s(23648); - $1.j = 0; - if ($1.fnc1first) { - if ($lt($1.ver, $1.vR7x43)) { - $k[$j++] = "0101"; - } else { - $k[$j++] = "101"; - } - $1.addtobits(); - } - $1.abort = false; - for (var _DR = 0, _DQ = $1.seq.length - 1; _DR <= _DQ; _DR += 2) { - $1.i = _DR; - $1.mode = $get($1.seq, $1.i); - $k[$j++] = $get($get($1.mids, $1.ver), $1.mode); - $1.addtobits(); - $1.chars = $get($1.seq, $1.i + 1); - if ($1.mode != $1.E) { - $1.cclen = $get($get($1.cclens, $1.ver), $1.mode); - if ($1.chars.length >= ~~Math.pow(2, $1.cclen)) { - $1.abort = true; - break; - } - $k[$j++] = $1.chars.length; - if ($1.mode == $1.K) { - var _Dp = $k[--$j]; - $k[$j++] = ~~(_Dp / 2); - } - $k[$j++] = $1.cclen; - $1.tobin(); - $1.addtobits(); - } - $k[$j++] = $1.chars; - if ($1[$get($1.encfuncs, $1.mode)]() === true) { + } //#19251 + var _Yq = $k[--$j]; //#19251 + $k[$j++] = _Yq == 0; //#19252 + $k[$j++] = $1.pixs; //#19252 + $k[$j++] = $1.i; //#19252 + $k[$j++] = $1.j; //#19252 + $1.qmv(); //#19252 + var _Yu = $k[--$j]; //#19252 + var _Yw = $get($k[--$j], _Yu); //#19252 + var _Yx = $k[--$j]; //#19252 + var _Yy = (_Yx && (_Yw == -1)) ? 1 : 0; //#19252 + $k[$j++] = _Yy; //#19253 + $k[$j++] = $1.mask; //#19253 + $k[$j++] = $1.i; //#19253 + $k[$j++] = $1.j; //#19253 + $1.qmv(); //#19253 + var _Z2 = $k[--$j]; //#19253 + var _Z3 = $k[--$j]; //#19253 + $put(_Z3, _Z2, $k[--$j]); //#19253 + } //#19253 + } //#19253 + $put($1.masks, $1.m, $1.mask); //#19256 + } //#19256 + var _ZA = $ne($1.format, "rmqr") ? 1 : 2; //#19260 + $1.posx = $f($1.cols - _ZA); //#19260 + $1.posy = $f($1.rows - 1); //#19261 + $1.dir = -1; //#19262 + $1.col = 1; //#19263 + $1.num = 0; //#19264 + for (;;) { //#19287 + if ($1.posx < 0) { //#19266 + break; //#19266 + } //#19266 + $k[$j++] = $1.pixs; //#19267 + $k[$j++] = $1.posx; //#19267 + $k[$j++] = $1.posy; //#19267 + $1.qmv(); //#19267 + var _ZG = $k[--$j]; //#19267 + if ($get($k[--$j], _ZG) == -1) { //#19271 + var _ZL = $get($1.cws, ~~($1.num / 8)); //#19268 + var _ZN = -(7 - ($1.num % 8)); //#19268 + $k[$j++] = ((_ZN < 0 ? _ZL >>> -_ZN : _ZL << _ZN)) & 1; //#19269 + $k[$j++] = $1.pixs; //#19269 + $k[$j++] = $1.posx; //#19269 + $k[$j++] = $1.posy; //#19269 + $1.qmv(); //#19269 + var _ZR = $k[--$j]; //#19269 + var _ZS = $k[--$j]; //#19269 + $put(_ZS, _ZR, $k[--$j]); //#19269 + $1.num = $1.num + 1; //#19270 + } //#19270 + if ($1.col == 1) { //#19284 + $1.col = 0; //#19273 + $1.posx = $f($1.posx - 1); //#19274 + } else { //#19284 + $1.col = 1; //#19276 + $1.posx = $f($1.posx + 1); //#19277 + $1.posy = $f($1.posy + $1.dir); //#19278 + if (($1.posy < 0) || ($1.posy >= $1.rows)) { //#19285 + $1.dir = $1.dir * -1; //#19280 + $1.posy = $f($1.posy + $1.dir); //#19281 + $1.posx = $f($1.posx - 2); //#19282 + if ($eq($1.format, "full") && ($1.posx == 6)) { //#19284 + $1.posx = $f($1.posx - 1); //#19284 + } //#19284 + } //#19284 + } //#19284 + } //#19284 + $1.evalfulln1n3 = function() { + $1.scrle = $k[--$j]; //#19291 + $k[$j++] = 'scr1'; //#19293 + $k[$j++] = 0; //#19293 + $forall($1.scrle, function() { //#19293 + var _Zm = $k[--$j]; //#19293 + $k[$j++] = _Zm; //#19293 + if (_Zm >= 5) { //#19293 + var _Zn = $k[--$j]; //#19293 + var _Zp = $f($f($k[--$j] + _Zn) - 2); //#19293 + $k[$j++] = _Zp; //#19293 + $k[$j++] = _Zp; //#19293 + } //#19293 + $j--; //#19293 + }); //#19293 + var _Zq = $k[--$j]; //#19293 + $1[$k[--$j]] = _Zq; //#19293 + $1.scr3 = 0; //#19295 + for (var _Zu = 3, _Zt = $1.scrle.length - 3; _Zu <= _Zt; _Zu += 2) { //#19310 + $1.j = _Zu; //#19297 + if (($get($1.scrle, $1.j) % 3) == 0) { //#19309 + $1.fact = ~~($get($1.scrle, $1.j) / 3); //#19299 + var _a3 = $geti($1.scrle, $1.j - 2, 5); //#19300 + for (var _a4 = 0, _a5 = _a3.length; _a4 < _a5; _a4++) { //#19300 + $k[$j++] = $get(_a3, _a4) == $1.fact; //#19300 + } //#19300 + var _a8 = $k[--$j]; //#19300 + var _a9 = $k[--$j]; //#19300 + var _aA = $k[--$j]; //#19300 + $k[$j++] = $an(_a9, _a8); //#19300 + $k[$j++] = _aA; //#19300 + $j--; //#19300 + var _aB = $k[--$j]; //#19300 + var _aC = $k[--$j]; //#19300 + var _aD = $k[--$j]; //#19300 + if (_aD && (_aC && _aB)) { //#19308 + if (($1.j == 3) || (($1.j + 4) >= $1.scrle.length)) { //#19305 + $1.scr3 = $1.scr3 + 40; //#19302 + } else { //#19305 + if (($get($1.scrle, $1.j - 3) >= 4) || ($get($1.scrle, $1.j + 3) >= 4)) { //#19306 + $1.scr3 = $1.scr3 + 40; //#19305 + } //#19305 + } //#19305 + } //#19305 + } //#19305 + } //#19305 + $k[$j++] = $1.scr1; //#19311 + $k[$j++] = $1.scr3; //#19311 + }; //#19312 + $1.evalfull = function() { + $1.sym = $k[--$j]; //#19316 + $1.n1 = 0; //#19318 + $1.n2 = 0; //#19318 + $1.n3 = 0; //#19318 + $1.rle = $a($f($1.cols + 1)); //#19319 + $1.lastpairs = $a($1.cols); //#19320 + $1.thispairs = $a($1.cols); //#19321 + $1.colsadd1 = $f($1.cols + 1); //#19322 + for (var _ab = 0, _aa = $f($1.cols - 1); _ab <= _aa; _ab += 1) { //#19361 + $1.i = _ab; //#19324 + $k[$j++] = Infinity; //#19327 + var _ad = $1.cols; //#19328 + $k[$j++] = 0; //#19330 + $k[$j++] = 0; //#19330 + for (var _af = $1.i, _ag = _ad, _ae = $f((_ad * _ad) - 1); _ag < 0 ? _af >= _ae : _af <= _ae; _af += _ag) { //#19330 + var _ai = $get($1.sym, _af); //#19329 + var _aj = $k[--$j]; //#19329 + $k[$j++] = _ai; //#19329 + if ($eq(_aj, _ai)) { //#19329 + var _ak = $k[--$j]; //#19329 + var _al = $k[--$j]; //#19329 + $k[$j++] = $f(_al + 1); //#19329 + $k[$j++] = _ak; //#19329 + } else { //#19329 + var _am = $k[--$j]; //#19329 + $k[$j++] = 1; //#19329 + $k[$j++] = _am; //#19329 + } //#19329 + } //#19329 + $j--; //#19331 + var _ao = $counttomark() + 2; //#19332 + $astore($geti($1.rle, 0, _ao - 2)); //#19332 + $1.evalfulln1n3(); //#19333 + $1.n3 = $f($k[--$j] + $1.n3); //#19333 + $1.n1 = $f($k[--$j] + $1.n1); //#19333 + $j--; //#19334 + $1.symrow = $geti($1.sym, $1.i * $1.cols, $1.cols); //#19337 + $k[$j++] = Infinity; //#19338 + var _az = $1.symrow; //#19339 + $k[$j++] = 0; //#19341 + $k[$j++] = 0; //#19341 + for (var _b0 = 0, _b1 = _az.length; _b0 < _b1; _b0++) { //#19341 + var _b2 = $get(_az, _b0); //#19341 + var _b3 = $k[--$j]; //#19340 + $k[$j++] = _b2; //#19340 + if ($eq(_b3, _b2)) { //#19340 + var _b4 = $k[--$j]; //#19340 + var _b5 = $k[--$j]; //#19340 + $k[$j++] = $f(_b5 + 1); //#19340 + $k[$j++] = _b4; //#19340 + } else { //#19340 + var _b6 = $k[--$j]; //#19340 + $k[$j++] = 1; //#19340 + $k[$j++] = _b6; //#19340 + } //#19340 + } //#19340 + $j--; //#19342 + var _b8 = $counttomark() + 2; //#19343 + $astore($geti($1.rle, 0, _b8 - 2)); //#19343 + $1.evalfulln1n3(); //#19344 + $1.n3 = $f($k[--$j] + $1.n3); //#19344 + $1.n1 = $f($k[--$j] + $1.n1); //#19344 + $j--; //#19345 + var _bE = $1.thispairs; //#19348 + $1.thispairs = $1.lastpairs; //#19348 + $1.lastpairs = _bE; //#19348 + var _bI = ($get($1.symrow, 0) == 1) ? 0 : 1; //#19349 + var _bJ = $1.symrow; //#19350 + $k[$j++] = _bI; //#19350 + for (var _bK = 0, _bL = _bJ.length; _bK < _bL; _bK++) { //#19350 + var _bM = $get(_bJ, _bK); //#19350 + var _bN = $k[--$j]; //#19350 + $k[$j++] = $f(_bN + _bM); //#19350 + $k[$j++] = _bM; //#19350 + } //#19350 + $j--; //#19351 + $astore($1.thispairs); //#19352 + $j--; //#19352 + if ($1.i > 0) { //#19359 + $k[$j++] = Infinity; //#19354 + $aload($1.lastpairs); //#19355 + $aload($1.thispairs); //#19355 + $k[$j++] = $1.n2; //#19356 + for (var _bU = 0, _bV = $1.cols; _bU < _bV; _bU++) { //#19356 + var _bW = $k[--$j]; //#19356 + var _bX = $k[--$j]; //#19356 + $k[$j++] = _bW; //#19356 + $k[$j++] = _bX; //#19356 + var _bZ = $k[$j - 1 - $1.colsadd1]; //#19356 + if (($f($k[--$j] + _bZ) & 3) == 0) { //#19356 + var _bb = $k[--$j]; //#19356 + $k[$j++] = $f(_bb + 3); //#19356 + } //#19356 + } //#19356 + $1.n2 = $k[--$j]; //#19357 + $cleartomark(); //#19358 + } //#19358 + } //#19358 + $k[$j++] = 'dark'; //#19364 + $k[$j++] = 0; //#19364 + $forall($1.sym, function() { //#19364 + var _be = $k[--$j]; //#19364 + var _bf = $k[--$j]; //#19364 + $k[$j++] = $f(_bf + _be); //#19364 + }); //#19364 + var _bg = $k[--$j]; //#19364 + $1[$k[--$j]] = _bg; //#19364 + var _bj = $1.cols; //#19365 + $1.n4 = (~~((Math.abs($f((($1.dark * 100) / (_bj * _bj)) - 50))) / 5)) * 10; //#19365 + $k[$j++] = $f(($f($f($1.n1 + $1.n2) + $1.n3)) + $1.n4); //#19367 + }; //#19368 + $1.evalmicro = function() { + $1.sym = $k[--$j]; //#19372 + $1.dkrhs = 0; //#19373 + $1.dkbot = 0; //#19373 + for (var _br = 1, _bq = $f($1.cols - 1); _br <= _bq; _br += 1) { //#19378 + $1.i = _br; //#19375 + $k[$j++] = 'dkrhs'; //#19376 + $k[$j++] = $1.dkrhs; //#19376 + $k[$j++] = $1.sym; //#19376 + $k[$j++] = $f($1.cols - 1); //#19376 + $k[$j++] = $1.i; //#19376 + $1.qmv(); //#19376 + var _bw = $k[--$j]; //#19376 + var _by = $get($k[--$j], _bw); //#19376 + var _bz = $k[--$j]; //#19376 + $1[$k[--$j]] = $f(_bz + _by); //#19376 + $k[$j++] = 'dkbot'; //#19377 + $k[$j++] = $1.dkbot; //#19377 + $k[$j++] = $1.sym; //#19377 + $k[$j++] = $1.i; //#19377 + $k[$j++] = $f($1.cols - 1); //#19377 + $1.qmv(); //#19377 + var _c5 = $k[--$j]; //#19377 + var _c7 = $get($k[--$j], _c5); //#19377 + var _c8 = $k[--$j]; //#19377 + $1[$k[--$j]] = $f(_c8 + _c7); //#19377 + } //#19377 + if ($1.dkrhs <= $1.dkbot) { //#19382 + $k[$j++] = -(($1.dkrhs * 16) + $1.dkbot); //#19380 + } else { //#19382 + $k[$j++] = -(($1.dkbot * 16) + $1.dkrhs); //#19382 + } //#19382 + }; //#19384 + $1.bestscore = 999999999; //#19387 + for (var _cI = 0, _cH = $1.masks.length - 1; _cI <= _cH; _cI += 1) { //#19409 + $1.m = _cI; //#19389 + $1.masksym = $a($1.rows * $1.cols); //#19390 + for (var _cP = 0, _cO = $f(($1.rows * $1.cols) - 1); _cP <= _cO; _cP += 1) { //#19394 + $1.i = _cP; //#19392 + $put($1.masksym, $1.i, $xo($get($1.pixs, $1.i), $get($get($1.masks, $1.m), $1.i))); //#19393 + } //#19393 + if ($1.masks.length != 1) { //#19407 + if ($eq($1.format, "full")) { //#19399 + $k[$j++] = $1.masksym; //#19397 + $1.evalfull(); //#19397 + $1.score = $k[--$j]; //#19397 + } else { //#19399 + $k[$j++] = $1.masksym; //#19399 + $1.evalmicro(); //#19399 + $1.score = $k[--$j]; //#19399 + } //#19399 + if ($1.score < $1.bestscore) { //#19405 + $1.bestsym = $1.masksym; //#19402 + $1.bestmaskval = $1.m; //#19403 + $1.bestscore = $1.score; //#19404 + } //#19404 + } else { //#19407 + $1.bestsym = $1.masksym; //#19407 + } //#19407 + } //#19407 + $1.pixs = $1.bestsym; //#19410 + if ($eq($1.format, "full")) { //#19415 + $k[$j++] = $1.pixs; //#19414 + $k[$j++] = 8; //#19414 + $k[$j++] = $f($1.cols - 8); //#19414 + $1.qmv(); //#19414 + var _cq = $k[--$j]; //#19414 + $put($k[--$j], _cq, 1); //#19414 + } //#19414 + if ($eq($1.format, "full")) { //#19433 + $1.fmtvals = $a([21522, 20773, 24188, 23371, 17913, 16590, 20375, 19104, 30660, 29427, 32170, 30877, 26159, 25368, 27713, 26998, 5769, 5054, 7399, 6608, 1890, 597, 3340, 2107, 13663, 12392, 16177, 14854, 9396, 8579, 11994, 11245]); //#19424 + $k[$j++] = 'ecid'; //#19425 + $search("MLHQ", $1.eclevel); //#19425 + $j--; //#19425 + var _cv = $k[--$j]; //#19425 + var _cw = $k[--$j]; //#19425 + $k[$j++] = _cv.length; //#19425 + $k[$j++] = _cw; //#19425 + $j--; //#19425 + var _cx = $k[--$j]; //#19425 + var _cy = $k[--$j]; //#19425 + $k[$j++] = _cx; //#19425 + $k[$j++] = _cy; //#19425 + $j--; //#19425 + var _cz = $k[--$j]; //#19425 + $1[$k[--$j]] = _cz; //#19425 + $1.fmtval = $get($1.fmtvals, ($1.ecid << 3) + $1.bestmaskval); //#19426 + for (var _d7 = 0, _d6 = $1.formatmap.length - 1; _d7 <= _d6; _d7 += 1) { //#19432 + $1.i = _d7; //#19428 + $forall($get($1.formatmap, $1.i), function() { //#19431 + var _dC = $k[--$j]; //#19430 + $k[$j++] = $1.pixs; //#19430 + $aload(_dC); //#19430 + $1.qmv(); //#19430 + var _dD = $1.fmtval; //#19430 + var _dF = -(14 - $1.i); //#19430 + var _dG = $k[--$j]; //#19430 + $put($k[--$j], _dG, ((_dF < 0 ? _dD >>> -_dF : _dD << _dF)) & 1); //#19430 + }); //#19430 + } //#19430 + } //#19430 + if ($eq($1.format, "micro")) { //#19447 + $1.fmtvals = $a([17477, 16754, 20011, 19228, 21934, 20633, 24512, 23287, 26515, 25252, 28157, 26826, 30328, 29519, 31766, 31009, 1758, 1001, 3248, 2439, 5941, 4610, 7515, 6252, 9480, 8255, 12134, 10833, 13539, 12756, 16013, 15290]); //#19440 + $1.symid = $get($get($a([$a([0]), $a([1, 2]), $a([3, 4]), $a([5, 6, 7])]), ~~($f($1.cols - 11) / 2)), $1.eclval); //#19441 + $1.fmtval = $get($1.fmtvals, ($1.symid << 2) + $1.bestmaskval); //#19442 + for (var _dZ = 0, _dY = $1.formatmap.length - 1; _dZ <= _dY; _dZ += 1) { //#19446 + $1.i = _dZ; //#19444 + $k[$j++] = $1.pixs; //#19445 + $aload($get($get($1.formatmap, $1.i), 0)); //#19445 + $1.qmv(); //#19445 + var _df = $1.fmtval; //#19445 + var _dh = -(14 - $1.i); //#19445 + var _di = $k[--$j]; //#19445 + $put($k[--$j], _di, ((_dh < 0 ? _df >>> -_dh : _df << _dh)) & 1); //#19445 + } //#19445 + } //#19445 + if ($eq($1.format, "rmqr")) { //#19477 + $1.fmtvals1 = $a([129714, 124311, 121821, 115960, 112748, 108361, 104707, 99878, 98062, 90155, 89697, 82244, 81360, 74485, 72895, 66458, 61898, 61167, 53413, 53120, 45844, 44081, 37499, 36190, 29814, 27475, 21785, 19004, 13992, 10637, 6087, 2274, 258919, 257090, 250376, 249133, 242105, 241308, 233686, 233459, 227035, 223742, 219060, 215185, 209925, 207648, 202090, 199247, 194591, 190266, 186736, 181845, 178881, 173540, 170926, 165003, 163235, 156294, 154828, 148457, 147325, 139352, 138770, 131383]); //#19458 + $1.fmtvals2 = $a([133755, 136542, 142100, 144433, 149669, 153472, 158154, 161519, 167879, 168162, 175784, 176525, 183577, 184892, 191606, 193363, 196867, 204326, 204908, 212809, 213981, 220408, 221874, 228759, 230591, 236442, 239056, 244469, 247393, 252228, 255758, 260139, 942, 7307, 8897, 15844, 16752, 24149, 24607, 32570, 34322, 39223, 42877, 47192, 50380, 56297, 58787, 64134, 67798, 71667, 76217, 79516, 84488, 87341, 93031, 95298, 101738, 102991, 109573, 111392, 118708, 118929, 126683, 127486]); //#19468 + $k[$j++] = 'fmtvalu'; //#19469 + $search("MH", $1.eclevel); //#19469 + $j--; //#19469 + var _do = $k[--$j]; //#19469 + var _dp = $k[--$j]; //#19469 + $k[$j++] = _do.length; //#19469 + $k[$j++] = _dp; //#19469 + $j--; //#19469 + var _dq = $k[--$j]; //#19469 + var _dr = $k[--$j]; //#19469 + $k[$j++] = _dq; //#19469 + $k[$j++] = _dr; //#19469 + $j--; //#19469 + var _ds = $k[--$j]; //#19469 + $1[$k[--$j]] = (_ds << 5) + $1.verind; //#19469 + $1.fmtval1 = $get($1.fmtvals1, $1.fmtvalu); //#19470 + $1.fmtval2 = $get($1.fmtvals2, $1.fmtvalu); //#19471 + for (var _e3 = 0, _e2 = $1.formatmap.length - 1; _e3 <= _e2; _e3 += 1) { //#19476 + $1.i = _e3; //#19473 + $k[$j++] = $1.pixs; //#19474 + $aload($get($get($1.formatmap, $1.i), 0)); //#19474 + $1.qmv(); //#19474 + var _e9 = $1.fmtval1; //#19474 + var _eB = -(17 - $1.i); //#19474 + var _eC = $k[--$j]; //#19474 + $put($k[--$j], _eC, ((_eB < 0 ? _e9 >>> -_eB : _e9 << _eB)) & 1); //#19474 + $k[$j++] = $1.pixs; //#19475 + $aload($get($get($1.formatmap, $1.i), 1)); //#19475 + $1.qmv(); //#19475 + var _eJ = $1.fmtval2; //#19475 + var _eL = -(17 - $1.i); //#19475 + var _eM = $k[--$j]; //#19475 + $put($k[--$j], _eM, ((_eL < 0 ? _eJ >>> -_eL : _eJ << _eL)) & 1); //#19475 + } //#19475 + } //#19475 + if ($eq($1.format, "full") && ($1.cols >= 45)) { //#19495 + $1.vervals = $a([31892, 34236, 39577, 42195, 48118, 51042, 55367, 58893, 63784, 68472, 70749, 76311, 79154, 84390, 87683, 92361, 96236, 102084, 102881, 110507, 110734, 117786, 119615, 126325, 127568, 133589, 136957, 141498, 145311, 150283, 152622, 158308, 161089, 167017]); //#19487 + $1.verval = $get($1.vervals, (~~($f($1.cols - 17) / 4)) - 7); //#19488 + for (var _eW = 0, _eV = $1.versionmap.length - 1; _eW <= _eV; _eW += 1) { //#19494 + $1.i = _eW; //#19490 + $forall($get($1.versionmap, $1.i), function() { //#19493 + var _eb = $k[--$j]; //#19492 + $k[$j++] = $1.pixs; //#19492 + $forall(_eb); //#19492 + $1.qmv(); //#19492 + var _ec = $1.verval; //#19492 + var _ee = -(17 - $1.i); //#19492 + var _ef = $k[--$j]; //#19492 + $put($k[--$j], _ef, ((_ee < 0 ? _ec >>> -_ee : _ec << _ee)) & 1); //#19492 + }); //#19492 + } //#19492 + } //#19492 + var _en = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", $1.cols], + ["pixy", $1.rows], + ["height", ($1.rows * 2) / 72], + ["width", ($1.cols * 2) / 72], + ["opt", $1.options] + ]); //#19505 + $k[$j++] = _en; //#19508 + if (!$1.dontdraw) { //#19508 + $0.renmatrix(); //#19508 + } //#19508 + }; + $0.swissqrcode = function() { + var $1 = {}; //#19539 + $1.options = $k[--$j]; //#19541 + $1.barcode = $k[--$j]; //#19542 + $1.dontdraw = false; //#19544 + $1.parse = false; //#19546 + $forall($1.options, function() { //#19557 + var _3 = $k[--$j]; //#19557 + $1[$k[--$j]] = _3; //#19557 + }); //#19557 + var _6 = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#19563 + $1.fncvals = _6; //#19564 + $k[$j++] = 'barcode'; //#19565 + $k[$j++] = $1.barcode; //#19565 + $k[$j++] = $1.fncvals; //#19565 + $0.parseinput(); //#19565 + var _9 = $k[--$j]; //#19565 + $1[$k[--$j]] = _9; //#19565 + $1.barlen = $1.barcode.length; //#19566 + delete $1.options["parse"]; //#19567 + if ($1.barcode.length > 997) { //#19572 + $k[$j++] = 'bwipp.swissqrcodeBadLength'; //#19571 + $k[$j++] = "Swiss QR Code input must not exceed 997 digits"; //#19571 + $0.raiseerror(); //#19571 + } //#19571 + $put($1.options, "dontdraw", true); //#19575 + $k[$j++] = 'args'; //#19576 + $k[$j++] = $1.barcode; //#19576 + $k[$j++] = $1.options; //#19576 + $0.qrcode(); //#19576 + var _H = $k[--$j]; //#19576 + $1[$k[--$j]] = _H; //#19576 + $put($1.args, "opt", $1.options); //#19578 + $k[$j++] = $1.args; //#19647 + if (!$1.dontdraw) { //#19647 + $$.save(); //#19592 + var _N = $$.currpos(); //#19593 + $$.translate(_N.x, _N.y); //#19593 + var _O = 72 / 25.4; //#19594 + $$.scale(_O, _O); //#19594 + $$.save(); //#19597 + $$.newpath(); //#19598 + $$.moveto(0, 0); //#19599 + $$.lineto(46, 0); //#19600 + $$.lineto(46, 46); //#19601 + $$.lineto(0, 46); //#19602 + $$.closepath(); //#19603 + $$.moveto(19.5, 19.5); //#19604 + $$.lineto(19.5, 26.5); //#19605 + $$.lineto(26.5, 26.5); //#19606 + $$.lineto(26.5, 19.5); //#19607 + $$.closepath(); //#19608 + $$.clip(); //#19609 + $$.save(); //#19612 + $$.moveto(0, 0); //#19613 + var _R = (46 / $get($1.args, "pixx")) / 2; //#19614 + $$.scale(_R, _R); //#19614 + $0.renmatrix(); //#19615 + $$.restore(); //#19616 + $$.restore(); //#19618 + $$.translate(19.5, 19.5); //#19621 + var _S = 7 / 83; //#19622 + $$.scale(_S, _S); //#19622 + $$.newpath(); //#19624 + $$.moveto(6, 6); //#19625 + $$.lineto(6, 77); //#19626 + $$.lineto(77, 77); //#19627 + $$.lineto(77, 6); //#19628 + $$.closepath(); //#19629 + $$.moveto(49, 18); //#19630 + $$.lineto(49, 34); //#19631 + $$.lineto(65, 34); //#19632 + $$.lineto(65, 49); //#19633 + $$.lineto(49, 49); //#19634 + $$.lineto(49, 65); //#19635 + $$.lineto(34, 65); //#19636 + $$.lineto(34, 49); //#19637 + $$.lineto(18, 49); //#19638 + $$.lineto(18, 34); //#19639 + $$.lineto(34, 34); //#19640 + $$.lineto(34, 18); //#19641 + $$.closepath(); //#19642 + $$.setrgbcolor(0, 0, 0); //#19643 + $$.fill(); //#19643 + $$.restore(); //#19645 + } //#19645 + }; + $0.microqrcode = function() { + var $1 = {}; //#19677 + $1.options = $k[--$j]; //#19679 + $1.barcode = $k[--$j]; //#19680 + $1.dontdraw = false; //#19682 + $forall($1.options, function() { //#19693 + var _3 = $k[--$j]; //#19693 + $1[$k[--$j]] = _3; //#19693 + }); //#19693 + $put($1.options, "dontdraw", true); //#19696 + $put($1.options, "format", "micro"); //#19697 + $k[$j++] = 'args'; //#19699 + $k[$j++] = $1.barcode; //#19699 + $k[$j++] = $1.options; //#19699 + $0.qrcode(); //#19699 + var _9 = $k[--$j]; //#19699 + $1[$k[--$j]] = _9; //#19699 + $put($1.args, "opt", $1.options); //#19701 + $k[$j++] = $1.args; //#19704 + if (!$1.dontdraw) { //#19704 + $0.renmatrix(); //#19704 + } //#19704 + }; + $0.rectangularmicroqrcode = function() { + var $1 = {}; //#19734 + $1.options = $k[--$j]; //#19736 + $1.barcode = $k[--$j]; //#19737 + $1.dontdraw = false; //#19739 + $forall($1.options, function() { //#19750 + var _3 = $k[--$j]; //#19750 + $1[$k[--$j]] = _3; //#19750 + }); //#19750 + $put($1.options, "dontdraw", true); //#19753 + $put($1.options, "format", "rmqr"); //#19754 + $k[$j++] = 'args'; //#19756 + $k[$j++] = $1.barcode; //#19756 + $k[$j++] = $1.options; //#19756 + $0.qrcode(); //#19756 + var _9 = $k[--$j]; //#19756 + $1[$k[--$j]] = _9; //#19756 + $put($1.args, "opt", $1.options); //#19758 + $k[$j++] = $1.args; //#19761 + if (!$1.dontdraw) { //#19761 + $0.renmatrix(); //#19761 + } //#19761 + }; + $0.maxicode = function() { + var $1 = {}; //#19791 + $1.options = $k[--$j]; //#19793 + $1.barcode = $k[--$j]; //#19794 + $1.dontdraw = false; //#19796 + $1.mode = -1; //#19797 + $1.sam = -1; //#19798 + $1.parse = false; //#19799 + $1.parsefnc = false; //#19800 + $forall($1.options, function() { //#19811 + var _3 = $k[--$j]; //#19811 + $1[$k[--$j]] = _3; //#19811 + }); //#19811 + $1.mode = ~~$1.mode; //#19813 + $1.sam = ~~$1.sam; //#19814 + var _9 = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["eci", true] + ]); //#19820 + $1.fncvals = _9; //#19822 + $k[$j++] = 'msg'; //#19823 + $k[$j++] = $1.barcode; //#19823 + $k[$j++] = $1.fncvals; //#19823 + $0.parseinput(); //#19823 + var _C = $k[--$j]; //#19823 + $1[$k[--$j]] = _C; //#19823 + $1.msglen = $1.msg.length; //#19824 + if (($1.mode == 2) || ($1.mode == 3)) { //#19863 + $1.barcode = $s($1.msglen); //#19830 + for (var _L = 0, _K = $1.msglen - 1; _L <= _K; _L += 1) { //#19836 + $1.i = _L; //#19832 + if ($get($1.msg, $1.i) > 0) { //#19835 + $put($1.barcode, $1.i, $get($1.msg, $1.i)); //#19834 + } //#19834 + } //#19834 + $1.barlen = $1.barcode.length; //#19837 + if ($eq($geti($1.barcode, 0, 7), "\x5b\x29\x3e\x1e\x30\x31\x1d")) { //#19844 + $1.fid = $geti($1.barcode, 0, 9); //#19841 + $1.barcode = $geti($1.barcode, 9, $1.barlen - 9); //#19842 + } else { //#19844 + $1.fid = ""; //#19844 + } //#19844 + $search($1.barcode, "\x1d"); //#19848 + $j--; //#19848 + $1.pcode = $k[--$j]; //#19848 + $j--; //#19849 + $search($k[--$j], "\x1d"); //#19849 + $j--; //#19849 + $1.ccode = $k[--$j]; //#19849 + $j--; //#19850 + $search($k[--$j], "\x1d"); //#19850 + $j--; //#19850 + $1.scode = $k[--$j]; //#19850 + $j--; //#19851 + $1.barcode = $k[--$j]; //#19851 + var _l = $s($1.barcode.length + $1.fid.length); //#19854 + $puti(_l, 0, $1.fid); //#19855 + $puti(_l, $1.fid.length, $1.barcode); //#19856 + $1.barcode = _l; //#19857 + $1.barlen = $1.barcode.length; //#19858 + $k[$j++] = Infinity; //#19860 + var _q = $1.barcode; //#19860 + for (var _r = 0, _s = _q.length; _r < _s; _r++) { //#19860 + $k[$j++] = $get(_q, _r); //#19860 + } //#19860 + $1.msg = $a(); //#19860 + $1.msglen = $1.msg.length; //#19861 + } //#19861 + $1.eci = -1; //#19866 + $1.pad = -2; //#19866 + $1.ns = -3; //#19866 + $1.la = -4; //#19867 + $1.lb = -5; //#19867 + $1.sa = -6; //#19868 + $1.sb = -7; //#19868 + $1.sc = -8; //#19868 + $1.sd = -9; //#19868 + $1.se = -10; //#19868 + $1.sa2 = -11; //#19869 + $1.sa3 = -12; //#19869 + $1.lkc = -13; //#19870 + $1.lkd = -14; //#19870 + $1.lke = -15; //#19870 + $1.pd2 = -16; //#19871 + $1.pd3 = -17; //#19871 + $1.charmaps = $a([$a([13, "`", 192, 224, 0]), $a(["A", "a", 193, 225, 1]), $a(["B", "b", 194, 226, 2]), $a(["C", "c", 195, 227, 3]), $a(["D", "d", 196, 228, 4]), $a(["E", "e", 197, 229, 5]), $a(["F", "f", 198, 230, 6]), $a(["G", "g", 199, 231, 7]), $a(["H", "h", 200, 232, 8]), $a(["I", "i", 201, 233, 9]), $a(["J", "j", 202, 234, 10]), $a(["K", "k", 203, 235, 11]), $a(["L", "l", 204, 236, 12]), $a(["M", "m", 205, 237, 13]), $a(["N", "n", 206, 238, 14]), $a(["O", "o", 207, 239, 15]), $a(["P", "p", 208, 240, 16]), $a(["Q", "q", 209, 241, 17]), $a(["R", "r", 210, 242, 18]), $a(["S", "s", 211, 243, 19]), $a(["T", "t", 212, 244, 20]), $a(["U", "u", 213, 245, 21]), $a(["V", "v", 214, 246, 22]), $a(["W", "w", 215, 247, 23]), $a(["X", "x", 216, 248, 24]), $a(["Y", "y", 217, 249, 25]), $a(["Z", "z", 218, 250, 26]), $a([$1.eci, $1.eci, $1.eci, $1.eci, $1.eci]), $a([28, 28, 28, 28, $1.pad]), $a([29, 29, 29, 29, $1.pad]), $a([30, 30, 30, 30, 27]), $a([$1.ns, $1.ns, $1.ns, $1.ns, $1.ns]), $a([" ", "{", 219, 251, 28]), $a([$1.pad, $1.pad, 220, 252, 29]), $a(["\"", "}", 221, 253, 30]), $a(["#", "~", 222, 254, 31]), $a(["$", 127, 223, 255, 159]), $a(["%", ";", 170, 161, 160]), $a(["&", "<", 172, 168, 162]), $a(["'", "=", 177, 171, 163]), $a([40, ">", 178, 175, 164]), $a([41, "?", 179, 176, 165]), $a(["*", "[", 181, 180, 166]), $a(["+", 92, 185, 183, 167]), $a([",", "]", 186, 184, 169]), $a(["-", "^", 188, 187, 173]), $a([".", "_", 189, 191, 174]), $a(["/", " ", 190, 138, 182]), $a(["0", ",", 128, 139, 149]), $a(["1", ".", 129, 140, 150]), $a(["2", "/", 130, 141, 151]), $a(["3", ":", 131, 142, 152]), $a(["4", "@", 132, 143, 153]), $a(["5", "!", 133, 144, 154]), $a(["6", "|", 134, 145, 155]), $a(["7", $1.pd2, 135, 146, 156]), $a(["8", $1.sa2, 136, 147, 157]), $a(["9", $1.sa3, 137, 148, 158]), $a([":", $1.pd3, $1.la, $1.la, $1.la]), $a([$1.sb, $1.sa, " ", " ", " "]), $a([$1.sc, $1.sc, $1.lkc, $1.sc, $1.sc]), $a([$1.sd, $1.sd, $1.sd, $1.lkd, $1.sd]), $a([$1.se, $1.se, $1.se, $1.se, $1.lke]), $a([$1.lb, $1.la, $1.lb, $1.lb, $1.lb])]); //#19940 + $1.charvals = $a([new Map, new Map, new Map, new Map, new Map]); //#19943 + for (var _2j = 0, _2i = $1.charmaps.length - 1; _2j <= _2i; _2j += 1) { //#19952 + $1.i = _2j; //#19945 + $1.encs = $get($1.charmaps, $1.i); //#19946 + for (var _2n = 0; _2n <= 4; _2n += 1) { //#19951 + $1.j = _2n; //#19948 + var _2q = $get($1.encs, $1.j); //#19949 + $k[$j++] = _2q; //#19949 + if ($eq($type(_2q), 'stringtype')) { //#19949 + var _2t = $get($k[--$j], 0); //#19949 + $k[$j++] = _2t; //#19949 + } //#19949 + $put($get($1.charvals, $1.j), $k[--$j], $1.i); //#19950 + } //#19950 + } //#19950 + $1.seta = $get($1.charvals, 0); //#19953 + $1.setb = $get($1.charvals, 1); //#19954 + $1.setc = $get($1.charvals, 2); //#19955 + $1.setd = $get($1.charvals, 3); //#19956 + $1.sete = $get($1.charvals, 4); //#19957 + $k[$j++] = Infinity; //#19960 + for (var _3A = 0, _3B = $1.msglen + 1; _3A < _3B; _3A++) { //#19960 + $k[$j++] = 0; //#19960 + } //#19960 + $1.nseq = $a(); //#19960 + for (var _3E = $1.msglen - 1; _3E >= 0; _3E -= 1) { //#19968 + $1.i = _3E; //#19962 + var _3H = $get($1.msg, $1.i); //#19963 + if ((_3H >= 48) && (_3H <= 57)) { //#19966 + $put($1.nseq, $1.i, $f($get($1.nseq, $1.i + 1) + 1)); //#19964 + } else { //#19966 + $put($1.nseq, $1.i, 0); //#19966 + } //#19966 + } //#19966 + $1.nseq = $geti($1.nseq, 0, $1.msglen); //#19969 + $1.prefixinset = function() { + $k[$j++] = 0; //#19976 + for (;;) { //#19976 + var _3S = $k[--$j]; //#19974 + var _3T = $k[--$j]; //#19974 + $k[$j++] = _3T; //#19974 + $k[$j++] = _3S; //#19974 + if (_3S >= _3T.length) { //#19974 + break; //#19974 + } //#19974 + var _3U = $k[--$j]; //#19975 + var _3V = $k[--$j]; //#19975 + var _3X = $k[--$j]; //#19975 + var _3Y = $get(_3X, $get(_3V, _3U)) !== undefined; //#19975 + $k[$j++] = _3X; //#19975 + $k[$j++] = _3V; //#19975 + $k[$j++] = _3U; //#19975 + if (_3Y) { //#19975 + var _3Z = $k[--$j]; //#19975 + $k[$j++] = $f(_3Z + 1); //#19975 + } else { //#19975 + break; //#19975 + } //#19975 + } //#19975 + var _3a = $k[--$j]; //#19977 + var _3b = $k[--$j]; //#19977 + $k[$j++] = _3a; //#19977 + $k[$j++] = _3b; //#19977 + $j--; //#19977 + var _3c = $k[--$j]; //#19977 + var _3d = $k[--$j]; //#19977 + $k[$j++] = _3c; //#19977 + $k[$j++] = _3d; //#19977 + $j--; //#19977 + }; //#19978 + $1.enc = function() { + var _3e = $k[--$j]; //#19981 + $put($1.out, $1.j, $get(_3e, $k[--$j])); //#19981 + $1.j = $1.j + 1; //#19982 + }; //#19983 + $1.out = $a(144); //#19985 + $1.i = 0; //#19986 + $1.j = 0; //#19986 + $1.cset = "seta"; //#19986 + for (;;) { //#20138 + if ($1.i == $1.msglen) { //#19995 + if ($ne($1.cset, "seta") && $ne($1.cset, "setb")) { //#19993 + $k[$j++] = $1.la; //#19991 + $k[$j++] = $1[$1.cset]; //#19991 + $1.enc(); //#19991 + $1.cset = "seta"; //#19992 + } //#19992 + break; //#19994 + } //#19994 + for (;;) { //#20137 + if ($get($1.msg, $1.i) <= -1000000) { //#20024 + $k[$j++] = $1.eci; //#19999 + $k[$j++] = $1[$1.cset]; //#19999 + $1.enc(); //#19999 + var _41 = $f((-$get($1.msg, $1.i)) - 1000000); //#20001 + $k[$j++] = _41; //#20019 + if (_41 <= 31) { //#20018 + var _42 = $k[--$j]; //#20002 + $k[$j++] = _42 & 63; //#20003 + $astore($a(1)); //#20003 + } else { //#20018 + var _44 = $k[--$j]; //#20004 + $k[$j++] = _44; //#20019 + if (_44 <= 1023) { //#20018 + var _45 = $k[--$j]; //#20005 + $k[$j++] = ((_45 >>> 6) & 31) | 32; //#20007 + $k[$j++] = _45 & 63; //#20007 + $astore($a(2)); //#20007 + } else { //#20018 + var _47 = $k[--$j]; //#20008 + $k[$j++] = _47; //#20019 + if (_47 <= 32767) { //#20018 + var _48 = $k[--$j]; //#20009 + $k[$j++] = ((_48 >>> 12) & 47) | 48; //#20012 + $k[$j++] = (_48 >>> 6) & 63; //#20012 + $k[$j++] = _48 & 63; //#20012 + $astore($a(3)); //#20012 + } else { //#20018 + var _4A = $k[--$j]; //#20014 + $k[$j++] = ((_4A >>> 18) & 55) | 56; //#20018 + $k[$j++] = (_4A >>> 12) & 63; //#20018 + $k[$j++] = (_4A >>> 6) & 63; //#20018 + $k[$j++] = _4A & 63; //#20018 + $astore($a(4)); //#20018 + } //#20018 + } //#20018 + } //#20018 + var _4C = $k[--$j]; //#20020 + $puti($1.out, $1.j, _4C); //#20020 + $1.j = _4C.length + $1.j; //#20021 + $1.i = $1.i + 1; //#20022 + break; //#20023 + } //#20023 + if ($get($1.nseq, $1.i) >= 9) { //#20035 + var _4M = $geti($1.msg, $1.i, 9); //#20028 + $k[$j++] = 0; //#20028 + for (var _4N = 0, _4O = _4M.length; _4N < _4O; _4N++) { //#20028 + var _4Q = $k[--$j]; //#20028 + $k[$j++] = ($f(_4Q + $f($get(_4M, _4N) - 48))) * 10; //#20028 + } //#20028 + var _4R = $k[--$j]; //#20028 + $k[$j++] = ~~(_4R / 10); //#20029 + for (var _4S = 0, _4T = 4; _4S < _4T; _4S++) { //#20029 + var _4U = $k[--$j]; //#20029 + $k[$j++] = _4U & 63; //#20029 + $k[$j++] = _4U >>> 6; //#20029 + } //#20029 + $k[$j++] = $get($1[$1.cset], $1.ns); //#20030 + for (var _4Z = 0; _4Z <= 10; _4Z += 2) { //#20030 + var _4a = $k[$j - 1 - _4Z]; //#20030 + $k[$j++] = _4a; //#20030 + } //#20030 + $astore($a(6)); //#20030 + var _4c = $k[--$j]; //#20030 + var _4d = $k[--$j]; //#20030 + var _4e = $k[--$j]; //#20030 + var _4f = $k[--$j]; //#20030 + var _4g = $k[--$j]; //#20030 + var _4h = $k[--$j]; //#20030 + var _4i = $k[--$j]; //#20030 + $k[$j++] = _4c; //#20030 + $k[$j++] = _4i; //#20030 + $k[$j++] = _4h; //#20030 + $k[$j++] = _4g; //#20030 + $k[$j++] = _4f; //#20030 + $k[$j++] = _4e; //#20030 + $k[$j++] = _4d; //#20030 + for (var _4j = 0, _4k = 6; _4j < _4k; _4j++) { //#20030 + $j--; //#20030 + } //#20030 + $puti($1.out, $1.j, $k[--$j]); //#20031 + $1.i = $1.i + 9; //#20032 + $1.j = $1.j + 6; //#20033 + break; //#20034 + } //#20034 + $1.char1 = $get($1.msg, $1.i); //#20038 + $k[$j++] = 'char2'; //#20039 + if (($1.i + 1) < $1.msglen) { //#20039 + $k[$j++] = $get($1.msg, $1.i + 1); //#20039 + } else { //#20039 + $k[$j++] = -99; //#20039 + } //#20039 + var _4y = $k[--$j]; //#20039 + $1[$k[--$j]] = _4y; //#20039 + $k[$j++] = 'char3'; //#20040 + if (($1.i + 2) < $1.msglen) { //#20040 + $k[$j++] = $get($1.msg, $1.i + 2); //#20040 + } else { //#20040 + $k[$j++] = -99; //#20040 + } //#20040 + var _55 = $k[--$j]; //#20040 + $1[$k[--$j]] = _55; //#20040 + var _5A = $get($1[$1.cset], $1.char1) !== undefined; //#20043 + if (_5A) { //#20047 + $k[$j++] = $1.char1; //#20044 + $k[$j++] = $1[$1.cset]; //#20044 + $1.enc(); //#20044 + $1.i = $1.i + 1; //#20045 + break; //#20046 + } //#20046 + var _5I = $get($1.setb, $1.char1) !== undefined; //#20050 + if ($eq($1.cset, "seta") && _5I) { //#20060 + var _5L = $get($1.setb, $1.char2) !== undefined; //#20051 + if (_5L) { //#20057 + $k[$j++] = $1.lb; //#20052 + $k[$j++] = $1.seta; //#20052 + $1.enc(); //#20052 + $1.cset = "setb"; //#20053 + } else { //#20057 + $k[$j++] = $1.sb; //#20055 + $k[$j++] = $1.seta; //#20055 + $1.enc(); //#20055 + $k[$j++] = $1.char1; //#20056 + $k[$j++] = $1.setb; //#20056 + $1.enc(); //#20056 + $1.i = $1.i + 1; //#20057 + } //#20057 + break; //#20059 + } //#20059 + var _5W = $get($1.seta, $1.char1) !== undefined; //#20063 + if ($eq($1.cset, "setb") && _5W) { //#20088 + var _5X = $1.seta; //#20064 + var _5Y = $1.msg; //#20064 + var _5Z = $1.i; //#20064 + var _5a = $1.msglen; //#20064 + var _5b = $1.i; //#20064 + var _5c = _5a - _5b; //#20064 + var _5d = 4; //#20064 + if (4 > (_5a - _5b)) { //#20064 + var _ = _5c; //#20064 + _5c = _5d; //#20064 + _5d = _; //#20064 + } //#20064 + $k[$j++] = 'p'; //#20064 + $k[$j++] = _5X; //#20064 + $k[$j++] = $geti(_5Y, _5Z, _5d); //#20064 + $1.prefixinset(); //#20064 + var _5f = $k[--$j]; //#20064 + $1[$k[--$j]] = _5f; //#20064 + if ($1.p == 1) { //#20069 + $k[$j++] = $1.sa; //#20066 + $k[$j++] = $1.setb; //#20066 + $1.enc(); //#20066 + $k[$j++] = $1.char1; //#20067 + $k[$j++] = $1.seta; //#20067 + $1.enc(); //#20067 + $1.i = $1.i + 1; //#20068 + } //#20068 + if ($1.p == 2) { //#20075 + $k[$j++] = $1.sa2; //#20071 + $k[$j++] = $1.setb; //#20071 + $1.enc(); //#20071 + $k[$j++] = $1.char1; //#20072 + $k[$j++] = $1.seta; //#20072 + $1.enc(); //#20072 + $k[$j++] = $1.char2; //#20073 + $k[$j++] = $1.seta; //#20073 + $1.enc(); //#20073 + $1.i = $1.i + 2; //#20074 + } //#20074 + if ($1.p == 3) { //#20082 + $k[$j++] = $1.sa3; //#20077 + $k[$j++] = $1.setb; //#20077 + $1.enc(); //#20077 + $k[$j++] = $1.char1; //#20078 + $k[$j++] = $1.seta; //#20078 + $1.enc(); //#20078 + $k[$j++] = $1.char2; //#20079 + $k[$j++] = $1.seta; //#20079 + $1.enc(); //#20079 + $k[$j++] = $1.char3; //#20080 + $k[$j++] = $1.seta; //#20080 + $1.enc(); //#20080 + $1.i = $1.i + 3; //#20081 + } //#20081 + if ($1.p >= 4) { //#20086 + $k[$j++] = $1.la; //#20084 + $k[$j++] = $1.setb; //#20084 + $1.enc(); //#20084 + $1.cset = "seta"; //#20085 + } //#20085 + break; //#20087 + } //#20087 + var _6A = $get($1.seta, $1.char1) !== undefined; //#20091 + if (_6A) { //#20095 + $k[$j++] = $1.la; //#20092 + $k[$j++] = $1[$1.cset]; //#20092 + $1.enc(); //#20092 + $1.cset = "seta"; //#20093 + break; //#20094 + } //#20094 + var _6G = $get($1.setb, $1.char1) !== undefined; //#20096 + if (_6G) { //#20100 + $k[$j++] = $1.lb; //#20097 + $k[$j++] = $1[$1.cset]; //#20097 + $1.enc(); //#20097 + $1.cset = "setb"; //#20098 + break; //#20099 + } //#20099 + var _6M = $get($1.setc, $1.char1) !== undefined; //#20103 + if (_6M) { //#20103 + $1.setx = "setc"; //#20103 + $1.sx = $1.sc; //#20103 + $1.lkx = $1.lkc; //#20103 + } //#20103 + var _6R = $get($1.setd, $1.char1) !== undefined; //#20104 + if (_6R) { //#20104 + $1.setx = "setd"; //#20104 + $1.sx = $1.sd; //#20104 + $1.lkx = $1.lkd; //#20104 + } //#20104 + var _6W = $get($1.sete, $1.char1) !== undefined; //#20105 + if (_6W) { //#20105 + $1.setx = "sete"; //#20105 + $1.sx = $1.se; //#20105 + $1.lkx = $1.lke; //#20105 + } //#20105 + var _6a = $1[$1.setx]; //#20108 + var _6b = $1.msg; //#20108 + var _6c = $1.i; //#20108 + var _6d = $1.msglen; //#20108 + var _6e = $1.i; //#20108 + var _6f = _6d - _6e; //#20108 + var _6g = 4; //#20108 + if (4 > (_6d - _6e)) { //#20108 + var _ = _6f; //#20108 + _6f = _6g; //#20108 + _6g = _; //#20108 + } //#20108 + $k[$j++] = 'p'; //#20108 + $k[$j++] = _6a; //#20108 + $k[$j++] = $geti(_6b, _6c, _6g); //#20108 + $1.prefixinset(); //#20108 + var _6i = $k[--$j]; //#20108 + $1[$k[--$j]] = _6i; //#20108 + if ($1.p == 1) { //#20113 + $k[$j++] = $1.sx; //#20110 + $k[$j++] = $1[$1.cset]; //#20110 + $1.enc(); //#20110 + $k[$j++] = $1.char1; //#20111 + $k[$j++] = $1[$1.setx]; //#20111 + $1.enc(); //#20111 + $1.i = $1.i + 1; //#20112 + } //#20112 + if ($1.p == 2) { //#20120 + $k[$j++] = $1.sx; //#20115 + $k[$j++] = $1[$1.cset]; //#20115 + $1.enc(); //#20115 + $k[$j++] = $1.char1; //#20116 + $k[$j++] = $1[$1.setx]; //#20116 + $1.enc(); //#20116 + $k[$j++] = $1.sx; //#20117 + $k[$j++] = $1[$1.cset]; //#20117 + $1.enc(); //#20117 + $k[$j++] = $1.char2; //#20118 + $k[$j++] = $1[$1.setx]; //#20118 + $1.enc(); //#20118 + $1.i = $1.i + 2; //#20119 + } //#20119 + if ($1.p == 3) { //#20129 + $k[$j++] = $1.sx; //#20122 + $k[$j++] = $1[$1.cset]; //#20122 + $1.enc(); //#20122 + $k[$j++] = $1.char1; //#20123 + $k[$j++] = $1[$1.setx]; //#20123 + $1.enc(); //#20123 + $k[$j++] = $1.sx; //#20124 + $k[$j++] = $1[$1.cset]; //#20124 + $1.enc(); //#20124 + $k[$j++] = $1.char2; //#20125 + $k[$j++] = $1[$1.setx]; //#20125 + $1.enc(); //#20125 + $k[$j++] = $1.sx; //#20126 + $k[$j++] = $1[$1.cset]; //#20126 + $1.enc(); //#20126 + $k[$j++] = $1.char3; //#20127 + $k[$j++] = $1[$1.setx]; //#20127 + $1.enc(); //#20127 + $1.i = $1.i + 3; //#20128 + } //#20128 + if ($1.p >= 4) { //#20134 + $k[$j++] = $1.sx; //#20131 + $k[$j++] = $1[$1.cset]; //#20131 + $1.enc(); //#20131 + $k[$j++] = $1.lkx; //#20132 + $k[$j++] = $1[$1.setx]; //#20132 + $1.enc(); //#20132 + $1.cset = $1.setx; //#20133 + } //#20133 + break; //#20136 + } //#20136 + } //#20136 + $1.encmsg = $geti($1.out, 0, $1.j); //#20139 + $1.padval = $get($1[$1.cset], $1.pad); //#20140 + $1.sami = $a([]); //#20143 + if ($1.sam != -1) { //#20148 + $1.sami = $a(2); //#20145 + $put($1.sami, 0, $get($1.seta, $1.pad)); //#20146 + $put($1.sami, 1, (((~~($1.sam / 10)) - 1) * 8) + (($1.sam % 10) - 1)); //#20147 + } //#20147 + $k[$j++] = Infinity; //#20149 + $aload($1.sami); //#20149 + $aload($1.encmsg); //#20149 + $1.encmsg = $a(); //#20149 + if (($1.mode == 2) || ($1.mode == 3)) { //#20204 + var _7v = $strcpy($s(4), "0000"); //#20155 + var _7y = $cvrs($s(4), ~~$1.mode, 2); //#20155 + $puti(_7v, 4 - _7y.length, _7y); //#20155 + $1.mdb = _7v; //#20155 + var _80 = $strcpy($s(10), "0000000000"); //#20156 + var _83 = $cvrs($s(10), ~~$z($1.ccode), 2); //#20156 + $puti(_80, 10 - _83.length, _83); //#20156 + $1.ccb = _80; //#20156 + var _85 = $strcpy($s(10), "0000000000"); //#20157 + var _88 = $cvrs($s(10), ~~$z($1.scode), 2); //#20157 + $puti(_85, 10 - _88.length, _88); //#20157 + $1.scb = _85; //#20157 + $1.pcb = $strcpy($s(36), "000000000000000000000000000000000000"); //#20158 + if ($1.mode == 2) { //#20171 + var _8F = $cvrs($s(6), $1.pcode.length, 2); //#20161 + $puti($1.pcb, 6 - _8F.length, _8F); //#20161 + var _8J = $cvrs($s(30), ~~$z($1.pcode), 2); //#20162 + $puti($1.pcb, 36 - _8J.length, _8J); //#20162 + } else { //#20171 + $k[$j++] = Infinity; //#20167 + var _8L = $strcpy($s(6), " "); //#20166 + $k[$j++] = _8L; //#20166 + $k[$j++] = _8L; //#20166 + $k[$j++] = 0; //#20166 + if ($1.pcode.length > 6) { //#20166 + $k[$j++] = $geti($1.pcode, 0, 6); //#20166 + } else { //#20166 + $k[$j++] = $1.pcode; //#20166 + } //#20166 + var _8Q = $k[--$j]; //#20166 + var _8R = $k[--$j]; //#20166 + $puti($k[--$j], _8R, _8Q); //#20166 + $forall($k[--$j], function() { //#20167 + var _8W = $get($1.seta, $k[--$j]); //#20167 + $k[$j++] = _8W; //#20167 + }); //#20167 + $1.pccw = $a(); //#20167 + for (var _8Y = 0; _8Y <= 5; _8Y += 1) { //#20172 + $1.i = _8Y; //#20170 + var _8e = $cvrs($s(6), $get($1.pccw, $1.i), 2); //#20171 + $puti($1.pcb, ((6 * $1.i) + 6) - _8e.length, _8e); //#20171 + } //#20171 + } //#20171 + $1.scm = $s(60); //#20176 + $puti($1.scm, 2, $1.mdb); //#20177 + $puti($1.scm, 38, $geti($1.pcb, 0, 4)); //#20178 + $puti($1.scm, 30, $geti($1.pcb, 4, 6)); //#20179 + $puti($1.scm, 24, $geti($1.pcb, 10, 6)); //#20180 + $puti($1.scm, 18, $geti($1.pcb, 16, 6)); //#20181 + $puti($1.scm, 12, $geti($1.pcb, 22, 6)); //#20182 + $puti($1.scm, 6, $geti($1.pcb, 28, 6)); //#20183 + $puti($1.scm, 0, $geti($1.pcb, 34, 2)); //#20184 + $puti($1.scm, 52, $geti($1.ccb, 0, 2)); //#20185 + $puti($1.scm, 42, $geti($1.ccb, 2, 6)); //#20186 + $puti($1.scm, 36, $geti($1.ccb, 8, 2)); //#20187 + $puti($1.scm, 54, $geti($1.scb, 0, 6)); //#20188 + $puti($1.scm, 48, $geti($1.scb, 6, 4)); //#20189 + $1.pri = $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0]); //#20192 + for (var _9K = 0; _9K <= 59; _9K += 1) { //#20198 + $1.i = _9K; //#20194 + $1.ps = ~~($1.i / 6); //#20195 + $1.ep = (~~(Math.pow(2, 5 - ($1.i % 6)))) * ($get($1.scm, $1.i) - 48); //#20196 + $put($1.pri, $1.ps, $f($get($1.pri, $1.ps) + $1.ep)); //#20197 + } //#20197 + $k[$j++] = Infinity; //#20201 + for (var _9W = 0, _9X = 84; _9W < _9X; _9W++) { //#20201 + $k[$j++] = $1.padval; //#20201 + } //#20201 + $1.sec = $a(); //#20201 + $puti($1.sec, 0, $1.encmsg); //#20202 + } //#20202 + if (((($1.mode == 4) || ($1.mode == 5)) || ($1.mode == 6)) || ($1.mode == -1)) { //#20223 + if ($1.mode == -1) { //#20212 + var _9i = ($1.encmsg.length <= 77) ? 5 : 4; //#20211 + $1.mode = _9i; //#20211 + } //#20211 + $k[$j++] = Infinity; //#20215 + var _9k = ($1.mode == 5) ? 78 : 94; //#20215 + for (var _9l = 0, _9m = _9k; _9l < _9m; _9l++) { //#20215 + $k[$j++] = $1.padval; //#20215 + } //#20215 + $1.cws = $a(); //#20215 + $put($1.cws, 0, $1.mode); //#20216 + $puti($1.cws, 1, $1.encmsg); //#20217 + $1.pri = $geti($1.cws, 0, 10); //#20220 + $1.sec = $geti($1.cws, 10, $1.cws.length - 10); //#20221 + } //#20221 + $k[$j++] = Infinity; //#20226 + $k[$j++] = 1; //#20226 + for (var _9y = 0, _9z = 63; _9y < _9z; _9y++) { //#20226 + var _A0 = $k[--$j]; //#20226 + var _A1 = _A0 * 2; //#20226 + $k[$j++] = _A0; //#20226 + $k[$j++] = _A1; //#20226 + if (_A1 >= 64) { //#20226 + var _A2 = $k[--$j]; //#20226 + $k[$j++] = _A2 ^ 67; //#20226 + } //#20226 + } //#20226 + $1.rsalog = $a(); //#20226 + $1.rslog = $a(64); //#20227 + for (var _A5 = 1; _A5 <= 63; _A5 += 1) { //#20228 + $put($1.rslog, $get($1.rsalog, _A5), _A5); //#20228 + } //#20228 + $1.rsprod = function() { + var _A9 = $k[--$j]; //#20232 + var _AA = $k[--$j]; //#20232 + $k[$j++] = _AA; //#20236 + $k[$j++] = _A9; //#20236 + if ((_A9 != 0) && (_AA != 0)) { //#20235 + var _AD = $get($1.rslog, $k[--$j]); //#20233 + var _AI = $get($1.rsalog, $f(_AD + $get($1.rslog, $k[--$j])) % 63); //#20233 + $k[$j++] = _AI; //#20233 + } else { //#20235 + $j -= 2; //#20235 + $k[$j++] = 0; //#20235 + } //#20235 + }; //#20237 + $1.rscodes = function() { + $1.rsnum = $k[--$j]; //#20242 + $1.cwb = $k[--$j]; //#20243 + $k[$j++] = Infinity; //#20246 + $k[$j++] = 1; //#20246 + for (var _AM = 0, _AN = $1.rsnum; _AM < _AN; _AM++) { //#20246 + $k[$j++] = 0; //#20246 + } //#20246 + $1.coeffs = $a(); //#20246 + for (var _AR = 1, _AQ = $1.rsnum; _AR <= _AQ; _AR += 1) { //#20255 + $1.i = _AR; //#20248 + $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); //#20249 + for (var _AY = $1.i - 1; _AY >= 1; _AY -= 1) { //#20253 + $1.j = _AY; //#20251 + $k[$j++] = $1.coeffs; //#20252 + $k[$j++] = $1.j; //#20252 + $k[$j++] = $get($1.coeffs, $1.j - 1); //#20252 + $k[$j++] = $get($1.coeffs, $1.j); //#20252 + $k[$j++] = $get($1.rsalog, $1.i); //#20252 + $1.rsprod(); //#20252 + var _Ak = $k[--$j]; //#20252 + var _Al = $k[--$j]; //#20252 + var _Am = $k[--$j]; //#20252 + $put($k[--$j], _Am, $xo(_Al, _Ak)); //#20252 + } //#20252 + $k[$j++] = $1.coeffs; //#20254 + $k[$j++] = 0; //#20254 + $k[$j++] = $get($1.coeffs, 0); //#20254 + $k[$j++] = $get($1.rsalog, $1.i); //#20254 + $1.rsprod(); //#20254 + var _Au = $k[--$j]; //#20254 + var _Av = $k[--$j]; //#20254 + $put($k[--$j], _Av, _Au); //#20254 + } //#20254 + $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); //#20256 + $k[$j++] = Infinity; //#20259 + for (var _B1 = 0, _B2 = $1.rsnum; _B1 < _B2; _B1++) { //#20259 + $k[$j++] = 0; //#20259 + } //#20259 + $1.ecb = $a(); //#20259 + for (var _B6 = 0, _B5 = $1.cwb.length - 1; _B6 <= _B5; _B6 += 1) { //#20268 + $1.t = $xo($get($1.cwb, _B6), $get($1.ecb, 0)); //#20261 + for (var _BC = $1.ecb.length - 1; _BC >= 0; _BC -= 1) { //#20267 + $1.i = _BC; //#20263 + $1.p = ($1.ecb.length - $1.i) - 1; //#20264 + $k[$j++] = $1.ecb; //#20265 + $k[$j++] = $1.p; //#20265 + $k[$j++] = $1.t; //#20265 + $k[$j++] = $get($1.coeffs, $1.i); //#20265 + $1.rsprod(); //#20265 + var _BL = $k[--$j]; //#20265 + var _BM = $k[--$j]; //#20265 + $put($k[--$j], _BM, _BL); //#20265 + if ($1.i > 0) { //#20266 + $put($1.ecb, $1.p, $xo($get($1.ecb, $1.p + 1), $get($1.ecb, $1.p))); //#20266 + } //#20266 + } //#20266 + } //#20266 + $k[$j++] = $1.ecb; //#20270 + }; //#20272 + $k[$j++] = Infinity; //#20275 + for (var _Ba = 0, _BZ = $1.sec.length - 1; _Ba <= _BZ; _Ba += 2) { //#20275 + $k[$j++] = $get($1.sec, _Ba); //#20275 + } //#20275 + $1.seco = $a(); //#20275 + $k[$j++] = Infinity; //#20276 + for (var _Bg = 1, _Bf = $1.sec.length - 1; _Bg <= _Bf; _Bg += 2) { //#20276 + $k[$j++] = $get($1.sec, _Bg); //#20276 + } //#20276 + $1.sece = $a(); //#20276 + var _Bl = ($1.sec.length == 84) ? 20 : 28; //#20279 + $1.scodes = _Bl; //#20279 + $k[$j++] = 'secochk'; //#20280 + $k[$j++] = $1.seco; //#20280 + $k[$j++] = $1.scodes; //#20280 + $1.rscodes(); //#20280 + var _Bo = $k[--$j]; //#20280 + $1[$k[--$j]] = _Bo; //#20280 + $k[$j++] = 'secechk'; //#20281 + $k[$j++] = $1.sece; //#20281 + $k[$j++] = $1.scodes; //#20281 + $1.rscodes(); //#20281 + var _Bs = $k[--$j]; //#20281 + $1[$k[--$j]] = _Bs; //#20281 + $k[$j++] = Infinity; //#20284 + for (var _Bw = 0, _Bv = $1.scodes - 1; _Bw <= _Bv; _Bw += 1) { //#20284 + $k[$j++] = $get($1.secochk, _Bw); //#20284 + $k[$j++] = $get($1.secechk, _Bw); //#20284 + } //#20284 + $1.secchk = $a(); //#20284 + $k[$j++] = Infinity; //#20291 + $aload($1.pri); //#20288 + $k[$j++] = $1.pri; //#20289 + $k[$j++] = 10; //#20289 + $1.rscodes(); //#20289 + $aload($k[--$j]); //#20289 + $aload($1.sec); //#20290 + $aload($1.secchk); //#20291 + $1.codewords = $a(); //#20291 + $k[$j++] = Infinity; //#20295 + for (var _C8 = 0, _C9 = 864; _C8 < _C9; _C8++) { //#20295 + $k[$j++] = 0; //#20295 + } //#20295 + $1.mods = $a(); //#20295 + for (var _CB = 0; _CB <= 143; _CB += 1) { //#20300 + $1.i = _CB; //#20297 + $k[$j++] = Infinity; //#20298 + var _CG = $cvrs($s(6), $get($1.codewords, $1.i), 2); //#20298 + for (var _CH = 0, _CI = _CG.length; _CH < _CI; _CH++) { //#20298 + $k[$j++] = $get(_CG, _CH) - 48; //#20298 + } //#20298 + $1.cw = $a(); //#20298 + $puti($1.mods, (6 * $1.i) + (6 - $1.cw.length), $1.cw); //#20299 + } //#20299 + $1.modmap = $a([469, 529, 286, 316, 347, 346, 673, 672, 703, 702, 647, 676, 283, 282, 313, 312, 370, 610, 618, 379, 378, 409, 408, 439, 705, 704, 559, 589, 588, 619, 458, 518, 640, 701, 675, 674, 285, 284, 315, 314, 310, 340, 531, 289, 288, 319, 349, 348, 456, 486, 517, 516, 471, 470, 369, 368, 399, 398, 429, 428, 549, 548, 579, 578, 609, 608, 649, 648, 679, 678, 709, 708, 639, 638, 669, 668, 699, 698, 279, 278, 309, 308, 339, 338, 381, 380, 411, 410, 441, 440, 561, 560, 591, 590, 621, 620, 547, 546, 577, 576, 607, 606, 367, 366, 397, 396, 427, 426, 291, 290, 321, 320, 351, 350, 651, 650, 681, 680, 711, 710, 1, 0, 31, 30, 61, 60, 3, 2, 33, 32, 63, 62, 5, 4, 35, 34, 65, 64, 7, 6, 37, 36, 67, 66, 9, 8, 39, 38, 69, 68, 11, 10, 41, 40, 71, 70, 13, 12, 43, 42, 73, 72, 15, 14, 45, 44, 75, 74, 17, 16, 47, 46, 77, 76, 19, 18, 49, 48, 79, 78, 21, 20, 51, 50, 81, 80, 23, 22, 53, 52, 83, 82, 25, 24, 55, 54, 85, 84, 27, 26, 57, 56, 87, 86, 117, 116, 147, 146, 177, 176, 115, 114, 145, 144, 175, 174, 113, 112, 143, 142, 173, 172, 111, 110, 141, 140, 171, 170, 109, 108, 139, 138, 169, 168, 107, 106, 137, 136, 167, 166, 105, 104, 135, 134, 165, 164, 103, 102, 133, 132, 163, 162, 101, 100, 131, 130, 161, 160, 99, 98, 129, 128, 159, 158, 97, 96, 127, 126, 157, 156, 95, 94, 125, 124, 155, 154, 93, 92, 123, 122, 153, 152, 91, 90, 121, 120, 151, 150, 181, 180, 211, 210, 241, 240, 183, 182, 213, 212, 243, 242, 185, 184, 215, 214, 245, 244, 187, 186, 217, 216, 247, 246, 189, 188, 219, 218, 249, 248, 191, 190, 221, 220, 251, 250, 193, 192, 223, 222, 253, 252, 195, 194, 225, 224, 255, 254, 197, 196, 227, 226, 257, 256, 199, 198, 229, 228, 259, 258, 201, 200, 231, 230, 261, 260, 203, 202, 233, 232, 263, 262, 205, 204, 235, 234, 265, 264, 207, 206, 237, 236, 267, 266, 297, 296, 327, 326, 357, 356, 295, 294, 325, 324, 355, 354, 293, 292, 323, 322, 353, 352, 277, 276, 307, 306, 337, 336, 275, 274, 305, 304, 335, 334, 273, 272, 303, 302, 333, 332, 271, 270, 301, 300, 331, 330, 361, 360, 391, 390, 421, 420, 363, 362, 393, 392, 423, 422, 365, 364, 395, 394, 425, 424, 383, 382, 413, 412, 443, 442, 385, 384, 415, 414, 445, 444, 387, 386, 417, 416, 447, 446, 477, 476, 507, 506, 537, 536, 475, 474, 505, 504, 535, 534, 473, 472, 503, 502, 533, 532, 455, 454, 485, 484, 515, 514, 453, 452, 483, 482, 513, 512, 451, 450, 481, 480, 511, 510, 541, 540, 571, 570, 601, 600, 543, 542, 573, 572, 603, 602, 545, 544, 575, 574, 605, 604, 563, 562, 593, 592, 623, 622, 565, 564, 595, 594, 625, 624, 567, 566, 597, 596, 627, 626, 657, 656, 687, 686, 717, 716, 655, 654, 685, 684, 715, 714, 653, 652, 683, 682, 713, 712, 637, 636, 667, 666, 697, 696, 635, 634, 665, 664, 695, 694, 633, 632, 663, 662, 693, 692, 631, 630, 661, 660, 691, 690, 721, 720, 751, 750, 781, 780, 723, 722, 753, 752, 783, 782, 725, 724, 755, 754, 785, 784, 727, 726, 757, 756, 787, 786, 729, 728, 759, 758, 789, 788, 731, 730, 761, 760, 791, 790, 733, 732, 763, 762, 793, 792, 735, 734, 765, 764, 795, 794, 737, 736, 767, 766, 797, 796, 739, 738, 769, 768, 799, 798, 741, 740, 771, 770, 801, 800, 743, 742, 773, 772, 803, 802, 745, 744, 775, 774, 805, 804, 747, 746, 777, 776, 807, 806, 837, 836, 867, 866, 897, 896, 835, 834, 865, 864, 895, 894, 833, 832, 863, 862, 893, 892, 831, 830, 861, 860, 891, 890, 829, 828, 859, 858, 889, 888, 827, 826, 857, 856, 887, 886, 825, 824, 855, 854, 885, 884, 823, 822, 853, 852, 883, 882, 821, 820, 851, 850, 881, 880, 819, 818, 849, 848, 879, 878, 817, 816, 847, 846, 877, 876, 815, 814, 845, 844, 875, 874, 813, 812, 843, 842, 873, 872, 811, 810, 841, 840, 871, 870, 901, 900, 931, 930, 961, 960, 903, 902, 933, 932, 963, 962, 905, 904, 935, 934, 965, 964, 907, 906, 937, 936, 967, 966, 909, 908, 939, 938, 969, 968, 911, 910, 941, 940, 971, 970, 913, 912, 943, 942, 973, 972, 915, 914, 945, 944, 975, 974, 917, 916, 947, 946, 977, 976, 919, 918, 949, 948, 979, 978, 921, 920, 951, 950, 981, 980, 923, 922, 953, 952, 983, 982, 925, 924, 955, 954, 985, 984, 927, 926, 957, 956, 987, 986, 58, 89, 88, 118, 149, 148, 178, 209, 208, 238, 269, 268, 298, 329, 328, 358, 389, 388, 418, 449, 448, 478, 509, 508, 538, 569, 568, 598, 629, 628, 658, 689, 688, 718, 749, 748, 778, 809, 808, 838, 869, 868, 898, 929, 928, 958, 989, 988]); //#20348 + $1.pixs = $a(864); //#20351 + $1.j = 0; //#20352 + for (var _CT = 0, _CS = $1.mods.length - 1; _CT <= _CS; _CT += 1) { //#20359 + $1.i = _CT; //#20354 + if ($get($1.mods, $1.i) == 1) { //#20358 + $put($1.pixs, $1.j, $get($1.modmap, $1.i)); //#20356 + $1.j = $1.j + 1; //#20357 + } //#20357 + } //#20357 + $k[$j++] = Infinity; //#20360 + var _Cf = $geti($1.pixs, 0, $1.j); //#20360 + for (var _Cg = 0, _Ch = _Cf.length; _Cg < _Ch; _Cg++) { //#20360 + $k[$j++] = $get(_Cf, _Cg); //#20360 + } //#20360 + $k[$j++] = 28; //#20360 + $k[$j++] = 29; //#20360 + $k[$j++] = 280; //#20360 + $k[$j++] = 281; //#20360 + $k[$j++] = 311; //#20360 + $k[$j++] = 457; //#20360 + $k[$j++] = 488; //#20360 + $k[$j++] = 500; //#20360 + $k[$j++] = 530; //#20360 + $k[$j++] = 670; //#20360 + $k[$j++] = 700; //#20360 + $k[$j++] = 677; //#20360 + $k[$j++] = 707; //#20360 + $1.pixs = $a(); //#20360 + var _Cm = new Map([ + ["ren", $0.renmaximatrix], + ["pixs", $1.pixs], + ["opt", $1.options] + ]); //#20366 + $k[$j++] = _Cm; //#20369 + if (!$1.dontdraw) { //#20369 + $0.renmaximatrix(); //#20369 + } //#20369 + }; + $0.azteccode = function() { + var $1 = {}; //#20399 + $1.options = $k[--$j]; //#20401 + $1.barcode = $k[--$j]; //#20402 + $1.dontdraw = false; //#20404 + $1.format = "unset"; //#20405 + $1.readerinit = false; //#20406 + $1.layers = -1; //#20407 + $1.eclevel = 23; //#20408 + $1.ecaddchars = 3; //#20409 + $1.raw = false; //#20410 + $1.parse = false; //#20411 + $1.parsefnc = false; //#20412 + $forall($1.options, function() { //#20423 + var _3 = $k[--$j]; //#20423 + $1[$k[--$j]] = _3; //#20423 + }); //#20423 + $1.layers = ~~$1.layers; //#20425 + $1.eclevel = +$1.eclevel; //#20426 + $1.ecaddchars = ~~$1.ecaddchars; //#20427 + $1.fn1 = -1; //#20430 + var _B = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["eci", true], + ["FNC1", $1.fn1] + ]); //#20435 + $1.fncvals = _B; //#20436 + $k[$j++] = 'msg'; //#20437 + $k[$j++] = $1.barcode; //#20437 + $k[$j++] = $1.fncvals; //#20437 + $0.parseinput(); //#20437 + var _E = $k[--$j]; //#20437 + $1[$k[--$j]] = _E; //#20437 + $1.msglen = $1.msg.length; //#20438 + $1.msgbits = ""; //#20441 + if ($ne($1.format, "rune") && $1.raw) { //#20442 + $1.msgbits = $1.barcode; //#20442 + } //#20442 + if ($ne($1.format, "rune") && (!$1.raw)) { //#20780 + $1.U = 0; //#20446 + $1.L = 1; //#20446 + $1.M = 2; //#20446 + $1.P = 3; //#20446 + $1.D = 4; //#20446 + $1.B = 5; //#20446 + $1.lu = -2; //#20449 + $1.ll = -3; //#20449 + $1.lm = -4; //#20449 + $1.lp = -5; //#20450 + $1.ld = -6; //#20450 + $1.su = -7; //#20450 + $1.sp = -8; //#20451 + $1.sb = -9; //#20451 + $1.fl = -10; //#20451 + $1.p2 = -11; //#20452 + $1.p3 = -12; //#20452 + $1.p4 = -13; //#20452 + $1.p5 = -14; //#20452 + $1.charmaps = $a([$a([$1.sp, $1.sp, $1.sp, $1.fl, $1.sp]), $a([32, 32, 32, 13, 32]), $a(["A", "a", 1, $1.p2, "0"]), $a(["B", "b", 2, $1.p3, "1"]), $a(["C", "c", 3, $1.p4, "2"]), $a(["D", "d", 4, $1.p5, "3"]), $a(["E", "e", 5, "!", "4"]), $a(["F", "f", 6, "\"", "5"]), $a(["G", "g", 7, "#", "6"]), $a(["H", "h", 8, "$", "7"]), $a(["I", "i", 9, "%", "8"]), $a(["J", "j", 10, "&", "9"]), $a(["K", "k", 11, "'", ","]), $a(["L", "l", 12, 40, "."]), $a(["M", "m", 13, 41, $1.lu]), $a(["N", "n", 27, "*", $1.su]), $a(["O", "o", 28, "+", -99]), $a(["P", "p", 29, ",", -99]), $a(["Q", "q", 30, "-", -99]), $a(["R", "r", 31, ".", -99]), $a(["S", "s", "@", "/", -99]), $a(["T", "t", 92, ":", -99]), $a(["U", "u", "^", ";", -99]), $a(["V", "v", "_", "<", -99]), $a(["W", "w", "`", "=", -99]), $a(["X", "x", "|", ">", -99]), $a(["Y", "y", "~", "?", -99]), $a(["Z", "z", 127, "[", -99]), $a([$1.ll, $1.su, $1.ll, "]", -99]), $a([$1.lm, $1.lm, $1.lu, "{", -99]), $a([$1.ld, $1.ld, $1.lp, "}", -99]), $a([$1.sb, $1.sb, $1.sb, $1.lu, -99])]); //#20489 + $1.charvals = $a([new Map, new Map, new Map, new Map, new Map]); //#20492 + for (var _1K = 0, _1J = $1.charmaps.length - 1; _1K <= _1J; _1K += 1) { //#20501 + $1.i = _1K; //#20494 + $1.encs = $get($1.charmaps, $1.i); //#20495 + for (var _1O = 0; _1O <= 4; _1O += 1) { //#20500 + $1.j = _1O; //#20497 + var _1R = $get($1.encs, $1.j); //#20498 + $k[$j++] = _1R; //#20498 + if ($eq($type(_1R), 'stringtype')) { //#20498 + var _1U = $get($k[--$j], 0); //#20498 + $k[$j++] = _1U; //#20498 + } //#20498 + $put($get($1.charvals, $1.j), $k[--$j], $1.i); //#20499 + } //#20499 + } //#20499 + var _1e = new Map([ + ["\x0d\x0a", $1.p2], + [". ", $1.p3], + [", ", $1.p4], + [": ", $1.p5] + ]); //#20508 + $1.pcomp = _1e; //#20509 + $1.e = 10000; //#20511 + $1.latlen = $a([$a([0, 5, 5, 10, 5, 10]), $a([9, 0, 5, 10, 5, 10]), $a([5, 5, 0, 5, 10, 10]), $a([5, 10, 10, 0, 10, 15]), $a([4, 9, 9, 14, 0, 14]), $a([0, 0, 0, 0, 0, 0])]); //#20521 + $1.latseq = $a([$a([$a([]), $a([$1.ll]), $a([$1.lm]), $a([$1.lm, $1.lp]), $a([$1.ld]), $a([$1.sb])]), $a([$a([$1.ld, $1.lu]), $a([]), $a([$1.lm]), $a([$1.lm, $1.lp]), $a([$1.ld]), $a([$1.sb])]), $a([$a([$1.lu]), $a([$1.ll]), $a([]), $a([$1.lp]), $a([$1.lu, $1.ld]), $a([$1.sb])]), $a([$a([$1.lu]), $a([$1.lu, $1.ll]), $a([$1.lu, $1.lm]), $a([]), $a([$1.lu, $1.ld]), $a([$1.lu, $1.sb])]), $a([$a([$1.lu]), $a([$1.lu, $1.ll]), $a([$1.lu, $1.lm]), $a([$1.lu, $1.lm, $1.lp]), $a([]), $a([$1.lu, $1.sb])]), $a([$a([$1.lu]), $a([$1.ll]), $a([$1.lm]), $a([]), $a([]), $a([])])]); //#20531 + $1.shftlen = $a([$a([$1.e, $1.e, $1.e, 5, $1.e]), $a([5, $1.e, $1.e, 5, $1.e]), $a([$1.e, $1.e, $1.e, 5, $1.e]), $a([$1.e, $1.e, $1.e, $1.e, $1.e]), $a([4, $1.e, $1.e, 4, $1.e])]); //#20540 + $1.charsize = function() { + var _3X = $k[--$j]; //#20543 + $k[$j++] = _3X; //#20554 + if (_3X >= 0) { //#20552 + $j--; //#20545 + var _3a = $get($a([5, 5, 5, 5, 4, 8]), $k[--$j]); //#20545 + $k[$j++] = _3a; //#20545 + } else { //#20552 + var _3b = $k[--$j]; //#20547 + var _3c = $k[--$j]; //#20547 + $k[$j++] = _3b; //#20547 + $k[$j++] = _3c; //#20547 + $j--; //#20547 + var _3d = $k[--$j]; //#20548 + $k[$j++] = _3d; //#20553 + if (_3d == $1.fn1) { //#20552 + $j--; //#20549 + $k[$j++] = 8; //#20549 + } else { //#20552 + var _3g = $f((-$k[--$j]) - 1000000); //#20551 + $k[$j++] = _3g; //#20551 + if (_3g == 0) { //#20551 + $j--; //#20551 + $k[$j++] = 1; //#20551 + } //#20551 + var _3h = $k[--$j]; //#20552 + $k[$j++] = (((~~(Math.log(_3h) / Math.log(10))) + 1) * 4) + 8; //#20552 + } //#20552 + } //#20552 + }; //#20555 + $1.curlen = $a([0, $1.e, $1.e, $1.e, $1.e, $1.e]); //#20558 + $1.curseq = $a([$a([]), $a([]), $a([]), $a([]), $a([]), $a([])]); //#20559 + $1.backto = $1.U; //#20561 + $1.lastchar = ""; //#20562 + $forall($1.msg, function() { //#20664 + $1.char = $k[--$j]; //#20567 + for (;;) { //#20593 + $1.imp = false; //#20571 + var _44 = $a([$1.U, $1.L, $1.M, $1.P, $1.D, $1.B]); //#20572 + for (var _45 = 0, _46 = _44.length; _45 < _46; _45++) { //#20591 + $1.x = $get(_44, _45); //#20573 + var _4E = $a([$1.U, $1.L, $1.M, $1.P, $1.D, $1.B]); //#20574 + for (var _4F = 0, _4G = _4E.length; _4F < _4G; _4F++) { //#20590 + $1.y = $get(_4E, _4F); //#20575 + if (($1.x != $1.B) || ($1.y == $1.backto)) { //#20589 + $1.cost = $f($get($1.curlen, $1.x) + $get($get($1.latlen, $1.x), $1.y)); //#20577 + if ($1.cost < $get($1.curlen, $1.y)) { //#20588 + $put($1.curlen, $1.y, $1.cost); //#20579 + $k[$j++] = $1.curseq; //#20582 + $k[$j++] = $1.y; //#20582 + $k[$j++] = Infinity; //#20582 + $aload($get($1.curseq, $1.x)); //#20581 + $aload($get($get($1.latseq, $1.x), $1.y)); //#20582 + var _4l = $a(); //#20582 + var _4m = $k[--$j]; //#20583 + $put($k[--$j], _4m, _4l); //#20583 + if ($1.y == $1.B) { //#20586 + $k[$j++] = 'backto'; //#20585 + if (($1.x == $1.P) || ($1.x == $1.D)) { //#20585 + $k[$j++] = $1.U; //#20585 + } else { //#20585 + $k[$j++] = $1.x; //#20585 + } //#20585 + var _4w = $k[--$j]; //#20585 + $1[$k[--$j]] = _4w; //#20585 + } //#20585 + $1.imp = true; //#20587 + } //#20587 + } //#20587 + } //#20587 + } //#20587 + if (!$1.imp) { //#20592 + break; //#20592 + } //#20592 + } //#20592 + $1.nxtlen = $a([$1.e, $1.e, $1.e, $1.e, $1.e, $1.e]); //#20596 + $1.nxtseq = $a(6); //#20597 + var _5D = $a([$1.U, $1.L, $1.M, $1.P, $1.D, $1.B]); //#20599 + for (var _5E = 0, _5F = _5D.length; _5E < _5F; _5E++) { //#20638 + $1.x = $get(_5D, _5E); //#20600 + for (;;) { //#20636 + if ($1.char >= 0) { //#20608 + if ($1.x != $1.B) { //#20606 + var _5O = $get($get($1.charvals, $1.x), $1.char) !== undefined; //#20606 + if (!_5O) { //#20606 + break; //#20606 + } //#20606 + } //#20606 + } else { //#20608 + if ($1.x != $1.P) { //#20608 + break; //#20608 + } //#20608 + } //#20608 + $k[$j++] = 'cost'; //#20612 + $k[$j++] = $get($1.curlen, $1.x); //#20612 + $k[$j++] = $1.x; //#20612 + $k[$j++] = $1.char; //#20612 + $1.charsize(); //#20612 + var _5W = $k[--$j]; //#20612 + var _5X = $k[--$j]; //#20612 + $1[$k[--$j]] = $f(_5X + _5W); //#20612 + if ($1.cost < $get($1.nxtlen, $1.x)) { //#20616 + $put($1.nxtlen, $1.x, $1.cost); //#20614 + $k[$j++] = $1.nxtseq; //#20615 + $k[$j++] = $1.x; //#20615 + $k[$j++] = Infinity; //#20615 + $aload($get($1.curseq, $1.x)); //#20615 + $k[$j++] = $1.char; //#20615 + var _5m = $a(); //#20615 + var _5n = $k[--$j]; //#20615 + $put($k[--$j], _5n, _5m); //#20615 + } //#20615 + if ($1.x == $1.B) { //#20619 + break; //#20619 + } //#20619 + var _5w = $a([$1.U, $1.L, $1.M, $1.P, $1.D]); //#20620 + for (var _5x = 0, _5y = _5w.length; _5x < _5y; _5x++) { //#20633 + $1.y = $get(_5w, _5x); //#20621 + if ($ne($1.x, $1.y)) { //#20632 + $k[$j++] = 'cost'; //#20623 + $k[$j++] = $f($get($1.curlen, $1.y) + $get($get($1.shftlen, $1.y), $1.x)); //#20623 + $k[$j++] = $1.x; //#20623 + $k[$j++] = $1.char; //#20623 + $1.charsize(); //#20623 + var _6C = $k[--$j]; //#20623 + var _6D = $k[--$j]; //#20623 + $1[$k[--$j]] = $f(_6D + _6C); //#20623 + if ($1.cost < $get($1.nxtlen, $1.y)) { //#20631 + $put($1.nxtlen, $1.y, $1.cost); //#20625 + $k[$j++] = $1.nxtseq; //#20629 + $k[$j++] = $1.y; //#20629 + $k[$j++] = Infinity; //#20629 + $aload($get($1.curseq, $1.y)); //#20627 + var _6T = ($1.x == $1.U) ? $1.su : $1.sp; //#20628 + $k[$j++] = _6T; //#20629 + $k[$j++] = $1.char; //#20629 + var _6V = $a(); //#20629 + var _6W = $k[--$j]; //#20630 + $put($k[--$j], _6W, _6V); //#20630 + } //#20630 + } //#20630 + } //#20630 + break; //#20635 + } //#20635 + } //#20635 + if ($ne($1.lastchar, "") && ($1.char >= 0)) { //#20649 + var _6a = $s(2); //#20642 + $put(_6a, 0, $1.lastchar); //#20642 + $put(_6a, 1, $1.char); //#20642 + $1.pchars = _6a; //#20642 + var _6f = $get($1.pcomp, $1.pchars) !== undefined; //#20643 + if (_6f) { //#20648 + if ($lt($get($1.curlen, $1.P), $get($1.nxtlen, $1.P))) { //#20647 + $put($1.nxtlen, $1.P, $get($1.curlen, $1.P)); //#20645 + $k[$j++] = $1.nxtseq; //#20646 + $k[$j++] = $1.P; //#20646 + $k[$j++] = Infinity; //#20646 + $aload($get($1.curseq, $1.P)); //#20646 + $j--; //#20646 + $k[$j++] = $get($1.pcomp, $1.pchars); //#20646 + var _6z = $a(); //#20646 + var _70 = $k[--$j]; //#20646 + $put($k[--$j], _70, _6z); //#20646 + } //#20646 + } //#20646 + } //#20646 + if ($ne($get($1.nxtseq, $1.B), null)) { //#20658 + $1.numbytes = 0; //#20653 + $forall($get($1.nxtseq, $1.B), function() { //#20656 + if ($k[--$j] == $1.sb) { //#20655 + $k[$j++] = 0; //#20655 + } else { //#20655 + $k[$j++] = $1.numbytes + 1; //#20655 + } //#20655 + $1.numbytes = $k[--$j]; //#20655 + }); //#20655 + if ($1.numbytes == 32) { //#20657 + $put($1.nxtlen, $1.B, $f($get($1.nxtlen, $1.B) + 11)); //#20657 + } //#20657 + } //#20657 + $1.curlen = $1.nxtlen; //#20660 + $1.curseq = $1.nxtseq; //#20661 + $k[$j++] = 'lastchar'; //#20662 + if ($1.char >= 0) { //#20662 + $k[$j++] = $1.char; //#20662 + } else { //#20662 + $k[$j++] = ""; //#20662 + } //#20662 + var _7M = $k[--$j]; //#20662 + $1[$k[--$j]] = _7M; //#20662 + }); //#20662 + $1.minseq = $1.e; //#20667 + var _7V = $a([$1.U, $1.L, $1.M, $1.P, $1.D, $1.B]); //#20668 + for (var _7W = 0, _7X = _7V.length; _7W < _7X; _7W++) { //#20674 + $1.i = $get(_7V, _7W); //#20669 + if ($get($1.curlen, $1.i) < $1.minseq) { //#20673 + $1.minseq = $get($1.curlen, $1.i); //#20671 + $1.seq = $get($1.curseq, $1.i); //#20672 + } //#20672 + } //#20672 + $1.tobin = function() { + var _7k = $s($k[--$j]); //#20678 + $k[$j++] = _7k; //#20678 + for (var _7m = 0, _7l = _7k.length - 1; _7m <= _7l; _7m += 1) { //#20678 + var _7n = $k[--$j]; //#20678 + $put(_7n, _7m, 48); //#20678 + $k[$j++] = _7n; //#20678 + } //#20678 + var _7o = $k[--$j]; //#20679 + var _7r = $cvrs($s(_7o.length), $k[--$j], 2); //#20679 + $puti(_7o, _7o.length - _7r.length, _7r); //#20679 + $k[$j++] = _7o; //#20679 + }; //#20680 + $1.encu = function() { + var _7w = $get($get($1.charvals, $1.U), $k[--$j]); //#20682 + $k[$j++] = _7w; //#20682 + $k[$j++] = 5; //#20682 + $1.tobin(); //#20682 + }; //#20682 + $1.encl = function() { + var _81 = $get($get($1.charvals, $1.L), $k[--$j]); //#20683 + $k[$j++] = _81; //#20683 + $k[$j++] = 5; //#20683 + $1.tobin(); //#20683 + }; //#20683 + $1.encm = function() { + var _86 = $get($get($1.charvals, $1.M), $k[--$j]); //#20684 + $k[$j++] = _86; //#20684 + $k[$j++] = 5; //#20684 + $1.tobin(); //#20684 + }; //#20684 + $1.encd = function() { + var _8B = $get($get($1.charvals, $1.D), $k[--$j]); //#20685 + $k[$j++] = _8B; //#20685 + $k[$j++] = 4; //#20685 + $1.tobin(); //#20685 + }; //#20685 + $1.encp = function() { + var _8C = $k[--$j]; //#20688 + $k[$j++] = _8C; //#20705 + if (_8C == $1.fn1) { //#20704 + $j--; //#20689 + $k[$j++] = "00000000"; //#20689 + } else { //#20704 + var _8E = $k[--$j]; //#20691 + $k[$j++] = _8E; //#20705 + if (_8E <= -1000000) { //#20704 + var _8G = $f((-$k[--$j]) - 1000000); //#20692 + $k[$j++] = _8G; //#20692 + $k[$j++] = _8G; //#20692 + if (_8G == 0) { //#20692 + $j--; //#20692 + $k[$j++] = 1; //#20692 + } //#20692 + var _8I = ~~(Math.log($k[--$j]) / Math.log(10)); //#20694 + var _8J = $s(((_8I + 1) * 4) + 8); //#20694 + $puti(_8J, 0, "00000"); //#20695 + $k[$j++] = _8I; //#20696 + $k[$j++] = _8J; //#20696 + $k[$j++] = _8J; //#20696 + $k[$j++] = _8I + 1; //#20696 + $k[$j++] = 3; //#20696 + $1.tobin(); //#20696 + var _8K = $k[--$j]; //#20696 + $puti($k[--$j], 5, _8K); //#20696 + var _8M = $k[--$j]; //#20697 + var _8N = $k[--$j]; //#20697 + var _8O = $k[--$j]; //#20697 + $k[$j++] = _8M; //#20701 + $k[$j++] = _8O; //#20701 + for (var _8P = _8N; _8P >= 0; _8P -= 1) { //#20701 + var _8Q = $k[--$j]; //#20698 + var _8R = $k[--$j]; //#20699 + $k[$j++] = _8R; //#20700 + $k[$j++] = ~~(_8Q / 10); //#20700 + $k[$j++] = _8R; //#20700 + $k[$j++] = (_8P * 4) + 8; //#20700 + $k[$j++] = $f((_8Q % 10) + 2); //#20700 + $k[$j++] = 4; //#20700 + $1.tobin(); //#20700 + var _8S = $k[--$j]; //#20700 + var _8T = $k[--$j]; //#20700 + $puti($k[--$j], _8T, _8S); //#20700 + } //#20700 + $j--; //#20702 + } else { //#20704 + var _8Z = $get($get($1.charvals, $1.P), $k[--$j]); //#20704 + $k[$j++] = _8Z; //#20704 + $k[$j++] = 5; //#20704 + $1.tobin(); //#20704 + } //#20704 + } //#20704 + }; //#20706 + $1.encfuncs = $a(['encu', 'encl', 'encm', 'encp', 'encd']); //#20708 + $1.addtomsgbits = function() { + $1.v = $k[--$j]; //#20711 + $puti($1.msgbits, $1.j, $1.v); //#20712 + $1.j = $1.j + $1.v.length; //#20713 + }; //#20714 + $1.state = $1.U; //#20717 + $1.msgbits = $s($1.minseq); //#20718 + $1.i = 0; //#20719 + $1.j = 0; //#20719 + for (;;) { //#20778 + if ($1.i >= $1.seq.length) { //#20720 + break; //#20720 + } //#20720 + if ($1.state != $1.B) { //#20773 + $1.char = $get($1.seq, $1.i); //#20724 + $k[$j++] = $1.char; //#20727 + if ($1[$get($1.encfuncs, $1.state)]() === true) { break; - } - $1.addtobits(); - } - if ($1.abort) { + } //#20727 + $1.addtomsgbits(); //#20727 + $1.i = $1.i + 1; //#20728 + if (($1.char == $1.su) || ($1.char == $1.sp)) { //#20734 + $k[$j++] = $get($1.seq, $1.i); //#20732 + if ($1.char == $1.su) { //#20732 + $1.encu(); //#20732 + } else { //#20732 + $1.encp(); //#20732 + } //#20732 + $1.addtomsgbits(); //#20732 + $1.i = $1.i + 1; //#20733 + } //#20733 + if ($1.char == $1.lu) { //#20737 + $1.state = $1.U; //#20737 + } //#20737 + if ($1.char == $1.ll) { //#20738 + $1.state = $1.L; //#20738 + } //#20738 + if ($1.char == $1.lm) { //#20739 + $1.state = $1.M; //#20739 + } //#20739 + if ($1.char == $1.lp) { //#20740 + $1.state = $1.P; //#20740 + } //#20740 + if ($1.char == $1.ld) { //#20741 + $1.state = $1.D; //#20741 + } //#20741 + if ($1.char == $1.sb) { //#20742 + $1.state = $1.B; //#20742 + } //#20742 + } else { //#20773 + $1.numbytes = 0; //#20747 + for (;;) { //#20751 + if (($1.i + $1.numbytes) >= $1.seq.length) { //#20748 + break; //#20748 + } //#20748 + if ($get($1.seq, $1.i + $1.numbytes) < 0) { //#20749 + break; //#20749 + } //#20749 + $1.numbytes = $1.numbytes + 1; //#20750 + } //#20750 + if ($1.numbytes <= 31) { //#20758 + $k[$j++] = $1.numbytes; //#20755 + $k[$j++] = 5; //#20755 + $1.tobin(); //#20755 + $1.addtomsgbits(); //#20755 + } else { //#20758 + $k[$j++] = 0; //#20757 + $k[$j++] = 5; //#20757 + $1.tobin(); //#20757 + $1.addtomsgbits(); //#20757 + $k[$j++] = $1.numbytes - 31; //#20758 + $k[$j++] = 11; //#20758 + $1.tobin(); //#20758 + $1.addtomsgbits(); //#20758 + } //#20758 + for (var _9b = 0, _9c = $1.numbytes; _9b < _9c; _9b++) { //#20765 + $k[$j++] = $get($1.seq, $1.i); //#20763 + $k[$j++] = 8; //#20763 + $1.tobin(); //#20763 + $1.addtomsgbits(); //#20763 + $1.i = $1.i + 1; //#20764 + } //#20764 + if ($1.i < $1.seq.length) { //#20774 + $1.char = $get($1.seq, $1.i); //#20769 + $1.i = $1.i + 1; //#20770 + if ($1.char == $1.lu) { //#20771 + $1.state = $1.U; //#20771 + } //#20771 + if ($1.char == $1.ll) { //#20772 + $1.state = $1.L; //#20772 + } //#20772 + if ($1.char == $1.lm) { //#20773 + $1.state = $1.M; //#20773 + } //#20773 + } //#20773 + } //#20773 + } //#20773 + } //#20773 + $1.metrics = $a([$a(["rune", 0, 0, 0, 6]), $a(["compact", 1, 1, 17, 6]), $a(["full", 1, 1, 21, 6]), $a(["compact", 2, 0, 40, 6]), $a(["full", 2, 1, 48, 6]), $a(["compact", 3, 0, 51, 8]), $a(["full", 3, 1, 60, 8]), $a(["compact", 4, 0, 76, 8]), $a(["full", 4, 1, 88, 8]), $a(["full", 5, 1, 120, 8]), $a(["full", 6, 1, 156, 8]), $a(["full", 7, 1, 196, 8]), $a(["full", 8, 1, 240, 8]), $a(["full", 9, 1, 230, 10]), $a(["full", 10, 1, 272, 10]), $a(["full", 11, 1, 316, 10]), $a(["full", 12, 1, 364, 10]), $a(["full", 13, 1, 416, 10]), $a(["full", 14, 1, 470, 10]), $a(["full", 15, 1, 528, 10]), $a(["full", 16, 1, 588, 10]), $a(["full", 17, 1, 652, 10]), $a(["full", 18, 1, 720, 10]), $a(["full", 19, 1, 790, 10]), $a(["full", 20, 1, 864, 10]), $a(["full", 21, 1, 940, 10]), $a(["full", 22, 1, 1020, 10]), $a(["full", 23, 0, 920, 12]), $a(["full", 24, 0, 992, 12]), $a(["full", 25, 0, 1066, 12]), $a(["full", 26, 0, 1144, 12]), $a(["full", 27, 0, 1224, 12]), $a(["full", 28, 0, 1306, 12]), $a(["full", 29, 0, 1392, 12]), $a(["full", 30, 0, 1480, 12]), $a(["full", 31, 0, 1570, 12]), $a(["full", 32, 0, 1664, 12])]); //#20797 + $1.i = 0; //#20799 + for (;;) { //#20817 + $1.m = $get($1.metrics, $1.i); //#20801 + $1.frmt = $get($1.m, 0); //#20802 + $1.mlyr = $get($1.m, 1); //#20803 + $1.icap = $get($1.m, 2); //#20804 + $1.ncws = $get($1.m, 3); //#20805 + $1.bpcw = $get($1.m, 4); //#20806 + $1.numecw = ~~(Math.ceil($f((($1.ncws * $1.eclevel) / 100) + $1.ecaddchars))); //#20807 + if ($1.msgbits.length == 0) { //#20808 + $1.numecw = 0; //#20808 + } //#20808 + $1.numdcw = $f($1.ncws - $1.numecw); //#20809 + $1.okay = true; //#20810 + if ($ne($1.format, "unset") && $ne($1.format, $1.frmt)) { //#20811 + $1.okay = false; //#20811 + } //#20811 + if ($1.readerinit && ($1.icap != 1)) { //#20812 + $1.okay = false; //#20812 + } //#20812 + if (($1.layers != -1) && ($1.layers != $1.mlyr)) { //#20813 + $1.okay = false; //#20813 + } //#20813 + if ((~~Math.ceil($1.msgbits.length / $1.bpcw)) > $1.numdcw) { //#20814 + $1.okay = false; //#20814 + } //#20814 + if ($1.okay) { //#20815 + break; //#20815 + } //#20815 + $1.i = $1.i + 1; //#20816 + } //#20816 + $1.layers = $1.mlyr; //#20818 + $1.format = $1.frmt; //#20819 + $1.allzero = function() { + var _B6 = $k[--$j]; //#20822 + $k[$j++] = $eq(_B6, $geti("000000000000", 0, _B6.length)); //#20822 + }; //#20822 + $1.allones = function() { + var _B8 = $k[--$j]; //#20823 + $k[$j++] = $eq(_B8, $geti("111111111111", 0, _B8.length)); //#20823 + }; //#20823 + $1.cws = $a($1.ncws); //#20824 + $1.m = 0; //#20825 + $1.c = 0; //#20825 + for (;;) { //#20852 + if ($1.msgbits.length <= $1.m) { //#20827 + break; //#20827 + } //#20827 + if (($1.msgbits.length - $1.m) >= $1.bpcw) { //#20841 + $1.cwb = $geti($1.msgbits, $1.m, $f($1.bpcw - 1)); //#20829 + $1.cwf = $geti($1.msgbits, $f($f($1.m + $1.bpcw) - 1), 1); //#20830 + $k[$j++] = $1.cwb; //#20831 + $1.allzero(); //#20831 + if ($k[--$j]) { //#20831 + $1.cwf = "1"; //#20831 + $1.m = $1.m - 1; //#20831 + } //#20831 + $k[$j++] = $1.cwb; //#20832 + $1.allones(); //#20832 + if ($k[--$j]) { //#20832 + $1.cwf = "0"; //#20832 + $1.m = $1.m - 1; //#20832 + } //#20832 + var _BV = $s(12); //#20834 + $puti(_BV, 0, $1.cwb); //#20834 + $puti(_BV, $f($1.bpcw - 1), $1.cwf); //#20835 + $1.cwb = $geti(_BV, 0, $1.bpcw); //#20837 + } else { //#20841 + $1.cwb = $geti($1.msgbits, $1.m, $1.msgbits.length - $1.m); //#20839 + var _Bh = $strcpy($s(12), "111111111111"); //#20840 + $puti(_Bh, 0, $1.cwb); //#20840 + $1.cwb = $geti(_Bh, 0, $1.bpcw); //#20840 + $k[$j++] = $1.cwb; //#20841 + $1.allones(); //#20841 + if ($k[--$j]) { //#20841 + $puti($1.cwb, $1.cwb.length - 1, "0"); //#20841 + } //#20841 + } //#20841 + $1.cw = 0; //#20844 + for (var _Br = 0, _Bq = $f($1.bpcw - 1); _Br <= _Bq; _Br += 1) { //#20848 + $1.i = _Br; //#20846 + $1.cw = $f($1.cw + ((~~(Math.pow(2, $f($f($1.bpcw - $1.i) - 1)))) * $f($get($1.cwb, $1.i) - 48))); //#20847 + } //#20847 + $put($1.cws, $1.c, $1.cw); //#20849 + $1.m = $f($1.m + $1.bpcw); //#20850 + $1.c = $1.c + 1; //#20851 + } //#20851 + $1.cws = $geti($1.cws, 0, $1.c); //#20853 + $1.rscodes = function() { + $1.rspm = $k[--$j]; //#20858 + $1.rsgf = $k[--$j]; //#20859 + $1.rsnc = $k[--$j]; //#20860 + $1.rscws = $k[--$j]; //#20861 + $k[$j++] = Infinity; //#20864 + $k[$j++] = 1; //#20864 + for (var _CC = 0, _CD = $f($1.rsgf - 1); _CC < _CD; _CC++) { //#20864 + var _CE = $k[--$j]; //#20864 + var _CF = _CE * 2; //#20864 + $k[$j++] = _CE; //#20864 + $k[$j++] = _CF; //#20864 + if (_CF >= $1.rsgf) { //#20864 + var _CI = $k[--$j]; //#20864 + $k[$j++] = $xo(_CI, $1.rspm); //#20864 + } //#20864 + } //#20864 + $1.rsalog = $a(); //#20864 + $1.rslog = $a($1.rsgf); //#20865 + for (var _CO = 1, _CN = $f($1.rsgf - 1); _CO <= _CN; _CO += 1) { //#20866 + $put($1.rslog, $get($1.rsalog, _CO), _CO); //#20866 + } //#20866 + $1.rsprod = function() { + var _CS = $k[--$j]; //#20870 + var _CT = $k[--$j]; //#20870 + $k[$j++] = _CT; //#20874 + $k[$j++] = _CS; //#20874 + if ((_CS != 0) && (_CT != 0)) { //#20873 + var _CW = $get($1.rslog, $k[--$j]); //#20871 + var _Cc = $get($1.rsalog, $f(_CW + $get($1.rslog, $k[--$j])) % $f($1.rsgf - 1)); //#20871 + $k[$j++] = _Cc; //#20871 + } else { //#20873 + $j -= 2; //#20873 + $k[$j++] = 0; //#20873 + } //#20873 + }; //#20875 + $k[$j++] = Infinity; //#20878 + $k[$j++] = 1; //#20878 + for (var _Ce = 0, _Cf = $1.rsnc; _Ce < _Cf; _Ce++) { //#20878 + $k[$j++] = 0; //#20878 + } //#20878 + $1.coeffs = $a(); //#20878 + for (var _Cj = 1, _Ci = $1.rsnc; _Cj <= _Ci; _Cj += 1) { //#20887 + $1.i = _Cj; //#20880 + $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); //#20881 + for (var _Cq = $1.i - 1; _Cq >= 1; _Cq -= 1) { //#20885 + $1.j = _Cq; //#20883 + $k[$j++] = $1.coeffs; //#20884 + $k[$j++] = $1.j; //#20884 + $k[$j++] = $get($1.coeffs, $1.j - 1); //#20884 + $k[$j++] = $get($1.coeffs, $1.j); //#20884 + $k[$j++] = $get($1.rsalog, $1.i); //#20884 + $1.rsprod(); //#20884 + var _D2 = $k[--$j]; //#20884 + var _D3 = $k[--$j]; //#20884 + var _D4 = $k[--$j]; //#20884 + $put($k[--$j], _D4, $xo(_D3, _D2)); //#20884 + } //#20884 + $k[$j++] = $1.coeffs; //#20886 + $k[$j++] = 0; //#20886 + $k[$j++] = $get($1.coeffs, 0); //#20886 + $k[$j++] = $get($1.rsalog, $1.i); //#20886 + $1.rsprod(); //#20886 + var _DC = $k[--$j]; //#20886 + var _DD = $k[--$j]; //#20886 + $put($k[--$j], _DD, _DC); //#20886 + } //#20886 + $1.nd = $1.rscws.length; //#20890 + $k[$j++] = Infinity; //#20891 + $forall($1.rscws); //#20891 + for (var _DI = 0, _DJ = $1.rsnc; _DI < _DJ; _DI++) { //#20891 + $k[$j++] = 0; //#20891 + } //#20891 + $k[$j++] = 0; //#20891 + $1.rscws = $a(); //#20891 + for (var _DN = 0, _DM = $1.nd - 1; _DN <= _DM; _DN += 1) { //#20898 + $1.k = $xo($get($1.rscws, _DN), $get($1.rscws, $1.nd)); //#20893 + for (var _DV = 0, _DU = $f($1.rsnc - 1); _DV <= _DU; _DV += 1) { //#20897 + $1.j = _DV; //#20895 + $k[$j++] = $1.rscws; //#20896 + $k[$j++] = $1.nd + $1.j; //#20896 + $k[$j++] = $get($1.rscws, ($1.nd + $1.j) + 1); //#20896 + $k[$j++] = $1.k; //#20896 + $k[$j++] = $get($1.coeffs, $f($f($1.rsnc - $1.j) - 1)); //#20896 + $1.rsprod(); //#20896 + var _Di = $k[--$j]; //#20896 + var _Dj = $k[--$j]; //#20896 + var _Dk = $k[--$j]; //#20896 + $put($k[--$j], _Dk, $xo(_Dj, _Di)); //#20896 + } //#20896 + } //#20896 + $k[$j++] = $geti($1.rscws, 0, $1.rscws.length - 1); //#20901 + }; //#20903 + if ($eq($1.format, "full")) { //#20916 + $1.mode = ($f($1.layers - 1) << 11) + ($1.cws.length - 1); //#20907 + if ($1.readerinit) { //#20908 + $1.mode = $1.mode | 1024; //#20908 + } //#20908 + $1.mode = $a([($1.mode & 61440) >>> 12, ($1.mode & 3840) >>> 8, ($1.mode & 240) >>> 4, $1.mode & 15]); //#20914 + $k[$j++] = 'mode'; //#20915 + $k[$j++] = $1.mode; //#20915 + $k[$j++] = 6; //#20915 + $k[$j++] = 16; //#20915 + $k[$j++] = 19; //#20915 + $1.rscodes(); //#20915 + var _E0 = $k[--$j]; //#20915 + $1[$k[--$j]] = _E0; //#20915 + } //#20915 + if ($eq($1.format, "compact")) { //#20925 + $1.mode = ($f($1.layers - 1) << 6) + ($1.cws.length - 1); //#20918 + if ($1.readerinit) { //#20919 + $1.mode = $1.mode | 32; //#20919 + } //#20919 + $1.mode = $a([($1.mode & 240) >>> 4, $1.mode & 15]); //#20923 + $k[$j++] = 'mode'; //#20924 + $k[$j++] = $1.mode; //#20924 + $k[$j++] = 5; //#20924 + $k[$j++] = 16; //#20924 + $k[$j++] = 19; //#20924 + $1.rscodes(); //#20924 + var _EB = $k[--$j]; //#20924 + $1[$k[--$j]] = _EB; //#20924 + } //#20924 + if ($eq($1.format, "rune")) { //#20934 + $1.mode = ~~$z($1.barcode); //#20927 + $1.mode = $a([($1.mode & 240) >>> 4, $1.mode & 15]); //#20931 + $k[$j++] = 'mode'; //#20932 + $k[$j++] = $1.mode; //#20932 + $k[$j++] = 5; //#20932 + $k[$j++] = 16; //#20932 + $k[$j++] = 19; //#20932 + $1.rscodes(); //#20932 + var _EJ = $k[--$j]; //#20932 + $1[$k[--$j]] = _EJ; //#20932 + $k[$j++] = Infinity; //#20933 + var _EL = $1.mode; //#20933 + for (var _EM = 0, _EN = _EL.length; _EM < _EN; _EM++) { //#20933 + $k[$j++] = $get(_EL, _EM) ^ 10; //#20933 + } //#20933 + $1.mode = $a(); //#20933 + } //#20933 + $1.modebits = $s($1.mode.length * 4); //#20935 + for (var _EU = 0, _ET = $1.modebits.length - 1; _EU <= _ET; _EU += 1) { //#20936 + $puti($1.modebits, _EU, "0"); //#20936 + } //#20936 + for (var _EY = 0, _EX = $1.mode.length - 1; _EY <= _EX; _EY += 1) { //#20940 + $1.i = _EY; //#20938 + var _Ee = $cvrs($s(4), $get($1.mode, $1.i), 2); //#20939 + $puti($1.modebits, (4 - _Ee.length) + (4 * $1.i), _Ee); //#20939 + } //#20939 + $1.rsparams = $a([$a([]), $a([]), $a([]), $a([]), $a([]), $a([]), $a([64, 67]), $a([]), $a([256, 301]), $a([]), $a([1024, 1033]), $a([]), $a([4096, 4201])]); //#20952 + $k[$j++] = 'cws'; //#20953 + $k[$j++] = $1.cws; //#20953 + $k[$j++] = $f($1.ncws - $1.cws.length); //#20953 + $forall($get($1.rsparams, $1.bpcw)); //#20953 + $1.rscodes(); //#20953 + var _F0 = $k[--$j]; //#20953 + $1[$k[--$j]] = _F0; //#20953 + if ($eq($1.format, "full")) { //#20957 + $1.databits = $s($f((($1.layers * $1.layers) * 16) + ($1.layers * 112))); //#20955 + } else { //#20957 + $1.databits = $s($f((($1.layers * $1.layers) * 16) + ($1.layers * 88))); //#20957 + } //#20957 + for (var _FD = 0, _FC = $1.databits.length - 1; _FD <= _FC; _FD += 1) { //#20959 + $puti($1.databits, _FD, "0"); //#20959 + } //#20959 + for (var _FH = 0, _FG = $f($1.ncws - 1); _FH <= _FG; _FH += 1) { //#20965 + $1.i = _FH; //#20961 + var _FO = $cvrs($s($1.bpcw), $get($1.cws, $1.i), 2); //#20962 + $puti($1.databits, $f(($f($f($1.bpcw - _FO.length) + ($1.bpcw * $1.i))) + ($f($1.databits.length - ($1.ncws * $1.bpcw)))), _FO); //#20964 + } //#20964 + $1.cmv = function() { + var _FW = $k[--$j]; //#20968 + var _FX = $k[--$j]; //#20968 + $k[$j++] = $f(($f(_FX - (_FW * $1.size))) + $1.mid); //#20968 + }; //#20968 + $1.lmv = function() { + $1.lbit = $k[--$j]; //#20972 + $1.llyr = $k[--$j]; //#20973 + $1.lwid = $f($1.fw + ($1.llyr * 4)); //#20974 + $1.ldir = ~~((~~($1.lbit / 2)) / $1.lwid); //#20975 + if ($1.ldir == 0) { //#20980 + $k[$j++] = $f(((-(~~($f($1.lwid - 1) / 2))) + 1) + ((~~($1.lbit / 2)) % $1.lwid)); //#20979 + $k[$j++] = $f(($f((~~(($1.fw - 1) / 2)) + ($1.llyr * 2))) + ($1.lbit % 2)); //#20979 + $1.cmv(); //#20979 + } //#20979 + if ($1.ldir == 1) { //#20985 + $k[$j++] = $f(($f((~~($1.fw / 2)) + ($1.llyr * 2))) + ($1.lbit % 2)); //#20984 + $k[$j++] = $f(((~~($f($1.lwid - 1) / 2)) - 1) - ((~~($1.lbit / 2)) % $1.lwid)); //#20984 + $1.cmv(); //#20984 + } //#20984 + if ($1.ldir == 2) { //#20990 + $k[$j++] = -($f(((-(~~($1.lwid / 2))) + 1) + ((~~($1.lbit / 2)) % $1.lwid))); //#20989 + $k[$j++] = -($f(($f((~~($1.fw / 2)) + ($1.llyr * 2))) + ($1.lbit % 2))); //#20989 + $1.cmv(); //#20989 + } //#20989 + if ($1.ldir == 3) { //#20995 + $k[$j++] = -($f(($f((~~(($1.fw - 1) / 2)) + ($1.llyr * 2))) + ($1.lbit % 2))); //#20994 + $k[$j++] = -($f(((~~($1.lwid / 2)) - 1) - ((~~($1.lbit / 2)) % $1.lwid))); //#20994 + $1.cmv(); //#20994 + } //#20994 + }; //#20996 + if ($eq($1.format, "full")) { //#21000 + $1.fw = 12; //#21000 + } else { //#21000 + $1.fw = 9; //#21000 + } //#21000 + $1.size = $f(($f($1.fw + ($1.layers * 4))) + 2); //#21001 + $k[$j++] = Infinity; //#21002 + for (var _GC = 0, _GD = $1.size * $1.size; _GC < _GD; _GC++) { //#21002 + $k[$j++] = -1; //#21002 + } //#21002 + $1.pixs = $a(); //#21002 + $1.mid = $f(((~~($f($1.size - 1) / 2)) * $1.size) + (~~($f($1.size - 1) / 2))); //#21003 + $1.i = 0; //#21006 + for (var _GK = 1, _GJ = $1.layers; _GK <= _GJ; _GK += 1) { //#21014 + $1.layer = _GK; //#21008 + for (var _GO = 0, _GN = (($1.fw + ($1.layer * 4)) * 8) - 1; _GO <= _GN; _GO += 1) { //#21013 + $1.pos = _GO; //#21010 + $k[$j++] = $1.pixs; //#21011 + $k[$j++] = $1.layer; //#21011 + $k[$j++] = $1.pos; //#21011 + $1.lmv(); //#21011 + var _GW = $k[--$j]; //#21011 + $put($k[--$j], _GW, $get($1.databits, ($1.databits.length - $1.i) - 1) - 48); //#21011 + $1.i = $1.i + 1; //#21012 + } //#21012 + } //#21012 + if ($eq($1.format, "full")) { //#21041 + $1.fw = 13; //#21018 + $1.size = $f(($f(($f($1.fw + ($1.layers * 4))) + 2)) + ((~~($f(($f($1.layers + 10.5) / 7.5) - 1))) * 2)); //#21019 + $1.mid = ~~(($1.size * $1.size) / 2); //#21020 + $k[$j++] = Infinity; //#21021 + for (var _Gh = 0, _Gi = $1.size * $1.size; _Gh < _Gi; _Gh++) { //#21021 + $k[$j++] = -2; //#21021 + } //#21021 + $1.npixs = $a(); //#21021 + for (var _Gm = 0, _Gl = ~~($1.size / 2); _Gm <= _Gl; _Gm += 16) { //#21031 + $1.i = _Gm; //#21023 + for (var _Gp = 0, _Go = $f($1.size - 1); _Gp <= _Go; _Gp += 1) { //#21030 + $1.j = _Gp; //#21025 + $k[$j++] = $1.npixs; //#21026 + $k[$j++] = (-(~~($1.size / 2))) + $1.j; //#21026 + $k[$j++] = $1.i; //#21026 + $1.cmv(); //#21026 + var _Gy = $k[--$j]; //#21026 + $puti($k[--$j], _Gy, $a([((((~~($1.size / 2)) + $1.j) + $1.i) + 1) % 2])); //#21026 + $k[$j++] = $1.npixs; //#21027 + $k[$j++] = (-(~~($1.size / 2))) + $1.j; //#21027 + $k[$j++] = -$1.i; //#21027 + $1.cmv(); //#21027 + var _H8 = $k[--$j]; //#21027 + $puti($k[--$j], _H8, $a([((((~~($1.size / 2)) + $1.j) + $1.i) + 1) % 2])); //#21027 + $k[$j++] = $1.npixs; //#21028 + $k[$j++] = $1.i; //#21028 + $k[$j++] = (-(~~($1.size / 2))) + $1.j; //#21028 + $1.cmv(); //#21028 + var _HI = $k[--$j]; //#21028 + $puti($k[--$j], _HI, $a([((((~~($1.size / 2)) + $1.j) + $1.i) + 1) % 2])); //#21028 + $k[$j++] = $1.npixs; //#21029 + $k[$j++] = -$1.i; //#21029 + $k[$j++] = (-(~~($1.size / 2))) + $1.j; //#21029 + $1.cmv(); //#21029 + var _HS = $k[--$j]; //#21029 + $puti($k[--$j], _HS, $a([((((~~($1.size / 2)) + $1.j) + $1.i) + 1) % 2])); //#21029 + } //#21029 + } //#21029 + $1.j = 0; //#21032 + for (var _HW = 0, _HV = $1.npixs.length - 1; _HW <= _HV; _HW += 1) { //#21039 + $1.i = _HW; //#21034 + if ($get($1.npixs, $1.i) == -2) { //#21038 + $put($1.npixs, $1.i, $get($1.pixs, $1.j)); //#21036 + $1.j = $1.j + 1; //#21037 + } //#21037 + } //#21037 + $1.pixs = $1.npixs; //#21040 + } //#21040 + $1.fw = ~~($1.fw / 2); //#21044 + for (var _Hl = -$1.fw, _Hk = $1.fw; _Hl <= _Hk; _Hl += 1) { //#21053 + $1.i = _Hl; //#21046 + for (var _Hp = -$1.fw, _Ho = $1.fw; _Hp <= _Ho; _Hp += 1) { //#21052 + $1.j = _Hp; //#21048 + $k[$j++] = $1.pixs; //#21049 + $k[$j++] = $1.i; //#21049 + $k[$j++] = $1.j; //#21049 + $1.cmv(); //#21049 + if (Math.abs($1.i) > Math.abs($1.j)) { //#21050 + $k[$j++] = Math.abs($1.i); //#21050 + } else { //#21050 + $k[$j++] = Math.abs($1.j); //#21050 + } //#21050 + var _Hx = $k[--$j]; //#21050 + var _Hy = $k[--$j]; //#21051 + $put($k[--$j], _Hy, $f(_Hx + 1) % 2); //#21051 + } //#21051 + } //#21051 + var _Ia = $a([$a([-($1.fw + 1), $1.fw, 1]), $a([-($1.fw + 1), $1.fw + 1, 1]), $a([-$1.fw, $1.fw + 1, 1]), $a([$1.fw + 1, $1.fw + 1, 1]), $a([$1.fw + 1, $1.fw, 1]), $a([$1.fw + 1, -$1.fw, 1]), $a([$1.fw, $1.fw + 1, 0]), $a([$1.fw + 1, -($1.fw + 1), 0]), $a([$1.fw, -($1.fw + 1), 0]), $a([-$1.fw, -($1.fw + 1), 0]), $a([-($1.fw + 1), -($1.fw + 1), 0]), $a([-($1.fw + 1), -$1.fw, 0])]); //#21061 + for (var _Ib = 0, _Ic = _Ia.length; _Ib < _Ic; _Ib++) { //#21062 + $k[$j++] = $1.pixs; //#21062 + $forall($get(_Ia, _Ib)); //#21062 + var _If = $k[--$j]; //#21062 + var _Ig = $k[--$j]; //#21062 + var _Ih = $k[--$j]; //#21062 + $k[$j++] = _If; //#21062 + $k[$j++] = _Ih; //#21062 + $k[$j++] = _Ig; //#21062 + $1.cmv(); //#21062 + var _Ii = $k[--$j]; //#21062 + var _Ij = $k[--$j]; //#21062 + $put($k[--$j], _Ii, _Ij); //#21062 + } //#21062 + if ($eq($1.format, "full")) { //#21078 + $1.modemap = $a([$a([-5, 7]), $a([-4, 7]), $a([-3, 7]), $a([-2, 7]), $a([-1, 7]), $a([1, 7]), $a([2, 7]), $a([3, 7]), $a([4, 7]), $a([5, 7]), $a([7, 5]), $a([7, 4]), $a([7, 3]), $a([7, 2]), $a([7, 1]), $a([7, -1]), $a([7, -2]), $a([7, -3]), $a([7, -4]), $a([7, -5]), $a([5, -7]), $a([4, -7]), $a([3, -7]), $a([2, -7]), $a([1, -7]), $a([-1, -7]), $a([-2, -7]), $a([-3, -7]), $a([-4, -7]), $a([-5, -7]), $a([-7, -5]), $a([-7, -4]), $a([-7, -3]), $a([-7, -2]), $a([-7, -1]), $a([-7, 1]), $a([-7, 2]), $a([-7, 3]), $a([-7, 4]), $a([-7, 5])]); //#21071 + } else { //#21078 + $1.modemap = $a([$a([-3, 5]), $a([-2, 5]), $a([-1, 5]), $a([0, 5]), $a([1, 5]), $a([2, 5]), $a([3, 5]), $a([5, 3]), $a([5, 2]), $a([5, 1]), $a([5, 0]), $a([5, -1]), $a([5, -2]), $a([5, -3]), $a([3, -5]), $a([2, -5]), $a([1, -5]), $a([0, -5]), $a([-1, -5]), $a([-2, -5]), $a([-3, -5]), $a([-5, -3]), $a([-5, -2]), $a([-5, -1]), $a([-5, 0]), $a([-5, 1]), $a([-5, 2]), $a([-5, 3])]); //#21078 + } //#21078 + for (var _Jw = 0, _Jv = $1.modemap.length - 1; _Jw <= _Jv; _Jw += 1) { //#21083 + $1.i = _Jw; //#21081 + $k[$j++] = $1.pixs; //#21082 + $forall($get($1.modemap, $1.i)); //#21082 + $1.cmv(); //#21082 + var _K4 = $k[--$j]; //#21082 + $put($k[--$j], _K4, $get($1.modebits, $1.i) - 48); //#21082 + } //#21082 + var _KC = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", $1.size], + ["pixy", $1.size], + ["height", ($1.size * 2) / 72], + ["width", ($1.size * 2) / 72], + ["opt", $1.options] + ]); //#21092 + $k[$j++] = _KC; //#21095 + if (!$1.dontdraw) { //#21095 + $0.renmatrix(); //#21095 + } //#21095 + }; + $0.azteccodecompact = function() { + var $1 = {}; //#21125 + $1.options = $k[--$j]; //#21127 + $1.barcode = $k[--$j]; //#21128 + $1.dontdraw = false; //#21130 + $forall($1.options, function() { //#21141 + var _3 = $k[--$j]; //#21141 + $1[$k[--$j]] = _3; //#21141 + }); //#21141 + $put($1.options, "dontdraw", true); //#21144 + $put($1.options, "format", "compact"); //#21145 + $k[$j++] = 'args'; //#21147 + $k[$j++] = $1.barcode; //#21147 + $k[$j++] = $1.options; //#21147 + $0.azteccode(); //#21147 + var _9 = $k[--$j]; //#21147 + $1[$k[--$j]] = _9; //#21147 + $put($1.args, "opt", $1.options); //#21149 + $k[$j++] = $1.args; //#21152 + if (!$1.dontdraw) { //#21152 + $0.renmatrix(); //#21152 + } //#21152 + }; + $0.aztecrune = function() { + var $1 = {}; //#21182 + $1.options = $k[--$j]; //#21184 + $1.barcode = $k[--$j]; //#21185 + $1.dontdraw = false; //#21187 + $forall($1.options, function() { //#21198 + var _3 = $k[--$j]; //#21198 + $1[$k[--$j]] = _3; //#21198 + }); //#21198 + $put($1.options, "dontdraw", true); //#21201 + $put($1.options, "format", "rune"); //#21202 + $k[$j++] = 'args'; //#21204 + $k[$j++] = $1.barcode; //#21204 + $k[$j++] = $1.options; //#21204 + $0.azteccode(); //#21204 + var _9 = $k[--$j]; //#21204 + $1[$k[--$j]] = _9; //#21204 + $put($1.args, "opt", $1.options); //#21206 + $k[$j++] = $1.args; //#21209 + if (!$1.dontdraw) { //#21209 + $0.renmatrix(); //#21209 + } //#21209 + }; + $0.codeone = function() { + var $1 = {}; //#21239 + $1.options = $k[--$j]; //#21241 + $1.barcode = $k[--$j]; //#21242 + $1.dontdraw = false; //#21244 + $1.version = "unset"; //#21245 + $1.parse = false; //#21246 + $1.parsefnc = false; //#21247 + $forall($1.options, function() { //#21258 + var _3 = $k[--$j]; //#21258 + $1[$k[--$j]] = _3; //#21258 + }); //#21258 + $1.stype = $eq($geti($1.version, 0, 1), "S"); //#21260 + if ($1.stype) { //#21895 + $1.vals = $a(["1", "1010", "1100100", "1111101000", "10011100010000", "11000011010100000", "11110100001001000000", "100110001001011010000000", "101111101011110000100000000", "111011100110101100101000000000", "1001010100000010111110010000000000", "1011101001000011101101110100000000000", "1110100011010100101001010001000000000000", "10010001100001001110011100101010000000000000", "10110101111001100010000011110100100000000000000", "11100011010111111010100100110001101000000000000000", "100011100001101111001001101111110000010000000000000000", "101100011010001010111100001011101100010100000000000000000"]); //#21282 + $1.normalize = function() { + $1.base = $k[--$j]; //#21285 + $1.num = $k[--$j]; //#21286 + for (var _C = $1.num.length - 1; _C >= 1; _C -= 1) { //#21291 + $1.i = _C; //#21288 + var _D = $1.num; //#21289 + var _E = $1.i; //#21289 + $put(_D, _E - 1, $f($get(_D, _E - 1) + (~~($get($1.num, $1.i) / $1.base)))); //#21289 + $put($1.num, $1.i, $get($1.num, $1.i) % $1.base); //#21290 + } //#21290 + for (;;) { //#21297 + if ($lt($get($1.num, 0), $1.base)) { //#21293 + break; //#21293 + } //#21293 + $k[$j++] = Infinity; //#21294 + $k[$j++] = 0; //#21294 + $forall($1.num); //#21294 + $1.num = $a(); //#21294 + $put($1.num, 0, $f($get($1.num, 0) + (~~($get($1.num, 1) / $1.base)))); //#21295 + $put($1.num, 1, $get($1.num, 1) % $1.base); //#21296 + } //#21296 + $k[$j++] = Infinity; //#21299 + $1.i = true; //#21299 + var _f = $1.num; //#21299 + for (var _g = 0, _h = _f.length; _g < _h; _g++) { //#21299 + var _i = $get(_f, _g); //#21299 + $k[$j++] = _i; //#21299 + if ((_i == 0) && $1.i) { //#21299 + $j--; //#21299 + } else { //#21299 + $1.i = false; //#21299 + } //#21299 + } //#21299 + $1.num = $a(); //#21299 + if ($1.num.length == 0) { //#21300 + $1.num = $a([0]); //#21300 + } //#21300 + $k[$j++] = $1.num; //#21301 + }; //#21302 + $1.bigadd = function() { + var _o = $k[--$j]; //#21305 + var _p = $k[--$j]; //#21305 + $1.offset = Math.abs(_o.length - _p.length); //#21306 + if (_o.length < _p.length) { //#21307 + var _ = _o; //#21307 + _o = _p; //#21307 + _p = _; //#21307 + } //#21307 + $1.a = _o; //#21308 + $1.b = _p; //#21308 + for (var _s = 0, _r = $1.b.length - 1; _s <= _r; _s += 1) { //#21311 + var _t = $1.a; //#21310 + var _u = $1.offset; //#21310 + $put(_t, _s + _u, $f($get(_t, _s + _u) + $get($1.b, _s))); //#21310 + } //#21310 + $k[$j++] = $1.a; //#21312 + }; //#21313 + $1.barlen = $1.barcode.length; //#21315 + $1.v = $a([1]); //#21318 + for (var _13 = 0, _12 = $1.barlen - 1; _13 <= _12; _13 += 1) { //#21323 + $1.i = _13; //#21320 + $k[$j++] = Infinity; //#21321 + $forall($get($1.vals, $1.i), function() { //#21321 + var _17 = $k[--$j]; //#21321 + $k[$j++] = $f(_17 - 48) * $f($get($1.barcode, ($1.barlen - $1.i) - 1) - 48); //#21321 + }); //#21321 + var _1C = $a(); //#21321 + $k[$j++] = _1C; //#21322 + $k[$j++] = $1.v; //#21322 + $1.bigadd(); //#21322 + $1.v = $k[--$j]; //#21322 + } //#21322 + $k[$j++] = 'v'; //#21324 + $k[$j++] = $1.v; //#21324 + $k[$j++] = 2; //#21324 + $1.normalize(); //#21324 + var _1G = $k[--$j]; //#21324 + $1[$k[--$j]] = _1G; //#21324 + $k[$j++] = Infinity; //#21327 + for (var _1J = 0, _1K = (5 - ($1.v.length % 5)) % 5; _1J < _1K; _1J++) { //#21327 + $k[$j++] = 0; //#21327 + } //#21327 + $aload($1.v); //#21327 + $1.v = $a(); //#21327 + $1.cws = $a(~~($1.v.length / 5)); //#21328 + for (var _1R = 0, _1Q = $1.cws.length - 1; _1R <= _1Q; _1R += 1) { //#21334 + $1.i = _1R; //#21330 + var _1U = $geti($1.v, $1.i * 5, 5); //#21331 + $k[$j++] = 0; //#21332 + for (var _1V = 0, _1W = _1U.length; _1V < _1W; _1V++) { //#21332 + var _1Y = $k[--$j]; //#21332 + $k[$j++] = $f(_1Y + $get(_1U, _1V)) * 2; //#21332 + } //#21332 + $put($1.cws, $1.i, ~~($k[--$j] / 2)); //#21333 + } //#21333 + $1.metrics = $a([$a(["S-10", 8, 11, 10, 4, 4, 1, 99, 99, 99]), $a(["S-20", 8, 21, 20, 8, 8, 1, 99, 99, 99]), $a(["S-30", 8, 31, 30, 12, 12, 1, 99, 99, 99])]); //#21342 + } else { //#21895 + $1.fnc1 = -1; //#21347 + $1.fnc3 = -2; //#21347 + var _1k = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["eci", true], + ["FNC1", $1.fnc1], + ["FNC3", $1.fnc3] + ]); //#21353 + $1.fncvals = _1k; //#21354 + $k[$j++] = 'msg'; //#21355 + $k[$j++] = $1.barcode; //#21355 + $k[$j++] = $1.fncvals; //#21355 + $0.parseinput(); //#21355 + var _1n = $k[--$j]; //#21355 + $1[$k[--$j]] = _1n; //#21355 + $1.msglen = $1.msg.length; //#21356 + $1.lC = -5; //#21359 + $1.lB = -6; //#21359 + $1.lX = -7; //#21359 + $1.lT = -8; //#21359 + $1.lD = -9; //#21359 + $1.unl = -10; //#21359 + $1.fnc2 = -11; //#21360 + $1.fnc4 = -12; //#21360 + $1.sft1 = -13; //#21360 + $1.sft2 = -14; //#21360 + $1.sft3 = -15; //#21360 + $1.eci = -16; //#21360 + $1.pad = -17; //#21360 + $1.fnc1lD = -18; //#21360 + $1.unlcw = 255; //#21361 + $1.eciesc = 92; //#21364 + var _1q = $1.msg; //#21365 + $k[$j++] = 'numecis'; //#21365 + $k[$j++] = 0; //#21365 + for (var _1r = 0, _1s = _1q.length; _1r < _1s; _1r++) { //#21365 + if ($get(_1q, _1r) <= -1000000) { //#21365 + var _1u = $k[--$j]; //#21365 + $k[$j++] = $f(_1u + 1); //#21365 + } //#21365 + } //#21365 + var _1v = $k[--$j]; //#21365 + $1[$k[--$j]] = _1v; //#21365 + if ($1.numecis > 0) { //#21392 + $1.msgtmp = $a($f(($f(($1.msg.length * 2) + ($1.numecis * 6))) + 2)); //#21367 + $put($1.msgtmp, 0, $1.pad); //#21368 + $put($1.msgtmp, 1, $1.eciesc); //#21369 + $1.j = 2; //#21370 + for (var _27 = 0, _26 = $1.msg.length - 1; _27 <= _26; _27 += 1) { //#21389 + var _29 = $get($1.msg, _27); //#21372 + $k[$j++] = _29; //#21388 + if (_29 <= -1000000) { //#21386 + var _2D = $geti($cvrs($s(7), -$k[--$j], 10), 1, 6); //#21374 + for (var _2E = 0, _2F = _2D.length; _2E < _2F; _2E++) { //#21374 + $k[$j++] = $get(_2D, _2E); //#21374 + } //#21374 + $astore($a(6)); //#21374 + $puti($1.msgtmp, $1.j + 1, $k[--$j]); //#21375 + $put($1.msgtmp, $1.j, $1.eciesc); //#21376 + $1.j = $1.j + 7; //#21377 + } else { //#21386 + var _2P = $k[--$j]; //#21379 + $k[$j++] = _2P; //#21387 + if (_2P != $1.eciesc) { //#21386 + $put($1.msgtmp, $1.j, $k[--$j]); //#21380 + $1.j = $1.j + 1; //#21381 + } else { //#21386 + $j--; //#21383 + $put($1.msgtmp, $1.j, $1.eciesc); //#21384 + $put($1.msgtmp, $1.j + 1, $1.eciesc); //#21385 + $1.j = $1.j + 2; //#21386 + } //#21386 + } //#21386 + } //#21386 + $1.msg = $geti($1.msgtmp, 0, $1.j); //#21390 + $1.msglen = $1.msg.length; //#21391 + } //#21391 + $1.metrics = $a([$a(["A", 16, 18, 16, 10, 10, 1, 4, 99, 6]), $a(["B", 22, 22, 20, 19, 16, 1, 4, 99, 8]), $a(["C", 28, 32, 28, 44, 26, 1, 4, 22, 11]), $a(["D", 40, 42, 36, 91, 44, 1, 4, 16, 16]), $a(["E", 52, 54, 48, 182, 70, 1, 4, 22, 22]), $a(["F", 70, 76, 68, 370, 140, 2, 4, 22, 31]), $a(["G", 104, 98, 88, 732, 280, 4, 6, 21, 47]), $a(["H", 148, 134, 120, 1480, 560, 8, 6, 20, 69]), $a(["T-16", 16, 17, 16, 10, 10, 1, 99, 99, 99]), $a(["T-32", 16, 33, 32, 24, 16, 1, 99, 99, 99]), $a(["T-48", 16, 49, 48, 38, 22, 1, 99, 99, 99])]); //#21408 + $1.fullcws = $a([]); //#21411 + var _2t = $1.metrics; //#21412 + for (var _2u = 0, _2v = _2t.length; _2u < _2v; _2u++) { //#21423 + $1.m = $get(_2t, _2u); //#21413 + $1.vers = $get($1.m, 0); //#21414 + $1.dcws = $get($1.m, 4); //#21415 + $1.okay = true; //#21416 + if ($eq($1.version, "unset")) { //#21420 + if ($1.vers.length != 1) { //#21418 + $1.okay = false; //#21418 + } //#21418 + } else { //#21420 + if ($ne($1.version, $1.vers)) { //#21420 + $1.okay = false; //#21420 + } //#21420 + } //#21420 + if ($1.okay) { //#21422 + $k[$j++] = Infinity; //#21422 + $aload($1.fullcws); //#21422 + $k[$j++] = $1.dcws; //#21422 + $1.fullcws = $a(); //#21422 + } //#21422 + } //#21422 + $k[$j++] = Infinity; //#21424 + for (var _39 = 0, _3A = 1480; _39 < _3A; _39++) { //#21424 + $k[$j++] = 10000; //#21424 + } //#21424 + $1.numremcws = $a(); //#21424 + var _3C = $1.fullcws; //#21425 + for (var _3D = 0, _3E = _3C.length; _3D < _3E; _3D++) { //#21425 + $put($1.numremcws, $f($get(_3C, _3D) - 1), 1); //#21425 + } //#21425 + for (var _3H = 1478; _3H >= 0; _3H -= 1) { //#21431 + $1.i = _3H; //#21427 + if ($get($1.numremcws, $1.i) != 1) { //#21430 + $put($1.numremcws, $1.i, $f($get($1.numremcws, $1.i + 1) + 1)); //#21429 + } //#21429 + } //#21429 + $k[$j++] = Infinity; //#21442 + for (var _3Q = 0; _3Q <= 128; _3Q += 1) { //#21434 + $k[$j++] = _3Q; //#21434 + $k[$j++] = _3Q + 1; //#21434 + } //#21434 + $k[$j++] = $1.pad; //#21439 + $k[$j++] = 129; //#21439 + for (var _3S = 0; _3S <= 99; _3S += 1) { //#21439 + var _3U = $cvrs($s(2), _3S, 10); //#21437 + var _3W = $strcpy($s(2), "00"); //#21437 + $puti(_3W, 2 - _3U.length, _3U); //#21437 + $k[$j++] = _3W; //#21438 + $k[$j++] = _3S + 130; //#21438 + } //#21438 + var _3e = $a([$1.lC, $1.lB, $1.fnc1, $1.fnc2, $1.fnc3, $1.fnc4, $1.fnc1lD]); //#21440 + $k[$j++] = 229; //#21440 + for (var _3f = 0, _3g = _3e.length; _3f < _3g; _3f++) { //#21440 + var _3j = $f($k[--$j] + 1); //#21440 + $k[$j++] = $get(_3e, _3f); //#21440 + $k[$j++] = _3j; //#21440 + $k[$j++] = _3j; //#21440 + } //#21440 + $j--; //#21440 + $k[$j++] = $1.lX; //#21442 + $k[$j++] = 238; //#21442 + $k[$j++] = $1.lT; //#21442 + $k[$j++] = 239; //#21442 + $1.Avals = $d(); //#21444 + $k[$j++] = Infinity; //#21446 + var _3n = $1.Avals; //#21446 + for (var _3s = _3n.size, _3r = _3n.keys(), _3q = 0; _3q < _3s; _3q++) { //#21446 + var _3o = _3r.next().value; //#21446 + $k[$j++] = _3o; //#21446 + $k[$j++] = _3n.get(_3o); //#21446 + $k[$j++] = Infinity; //#21446 + var _3t = $k[--$j]; //#21446 + var _3u = $k[--$j]; //#21446 + $k[$j++] = _3t; //#21446 + $k[$j++] = _3u; //#21446 + var _3v = $a(); //#21446 + $k[$j++] = _3v; //#21446 + } //#21446 + $1.Avals = $d(); //#21447 + $k[$j++] = Infinity; //#21455 + $k[$j++] = $1.sft1; //#21454 + $k[$j++] = 0; //#21454 + $k[$j++] = $1.sft2; //#21454 + $k[$j++] = 1; //#21454 + $k[$j++] = $1.sft3; //#21454 + $k[$j++] = 2; //#21454 + $k[$j++] = 32; //#21454 + $k[$j++] = 3; //#21454 + for (var _40 = 48; _40 <= 57; _40 += 1) { //#21454 + $k[$j++] = _40; //#21454 + $k[$j++] = _40 - 44; //#21454 + } //#21454 + for (var _41 = 65; _41 <= 90; _41 += 1) { //#21455 + $k[$j++] = _41; //#21455 + $k[$j++] = _41 - 51; //#21455 + } //#21455 + $1.CNvals = $d(); //#21456 + $k[$j++] = Infinity; //#21457 + for (var _43 = 0; _43 <= 31; _43 += 1) { //#21457 + $k[$j++] = _43; //#21457 + $k[$j++] = _43; //#21457 + } //#21457 + $1.C1vals = $d(); //#21457 + $k[$j++] = Infinity; //#21466 + for (var _45 = 33; _45 <= 47; _45 += 1) { //#21459 + $k[$j++] = _45; //#21459 + $k[$j++] = _45 - 33; //#21459 + } //#21459 + for (var _46 = 58; _46 <= 64; _46 += 1) { //#21460 + $k[$j++] = _46; //#21460 + $k[$j++] = _46 - 43; //#21460 + } //#21460 + for (var _47 = 91; _47 <= 95; _47 += 1) { //#21461 + $k[$j++] = _47; //#21461 + $k[$j++] = _47 - 69; //#21461 + } //#21461 + $k[$j++] = $1.fnc1; //#21466 + $k[$j++] = 27; //#21466 + $k[$j++] = $1.fnc2; //#21466 + $k[$j++] = 28; //#21466 + $k[$j++] = $1.fnc3; //#21466 + $k[$j++] = 29; //#21466 + $k[$j++] = $1.fnc4; //#21466 + $k[$j++] = 30; //#21466 + $k[$j++] = $1.pad; //#21466 + $k[$j++] = 31; //#21466 + $1.C2vals = $d(); //#21467 + $k[$j++] = Infinity; //#21468 + for (var _4E = 96; _4E <= 127; _4E += 1) { //#21468 + $k[$j++] = _4E; //#21468 + $k[$j++] = _4E - 96; //#21468 + } //#21468 + $1.C3vals = $d(); //#21468 + $k[$j++] = Infinity; //#21473 + var _4G = $1.CNvals; //#21470 + for (var _4L = _4G.size, _4K = _4G.keys(), _4J = 0; _4J < _4L; _4J++) { //#21470 + var _4H = _4K.next().value; //#21470 + $k[$j++] = _4H; //#21470 + $k[$j++] = _4G.get(_4H); //#21470 + $k[$j++] = Infinity; //#21470 + var _4M = $k[--$j]; //#21470 + var _4N = $k[--$j]; //#21470 + $k[$j++] = _4M; //#21470 + $k[$j++] = _4N; //#21470 + var _4O = $a(); //#21470 + $k[$j++] = _4O; //#21470 + } //#21470 + var _4P = $1.C1vals; //#21471 + for (var _4U = _4P.size, _4T = _4P.keys(), _4S = 0; _4S < _4U; _4S++) { //#21471 + var _4Q = _4T.next().value; //#21471 + $k[$j++] = _4Q; //#21471 + $k[$j++] = _4P.get(_4Q); //#21471 + $k[$j++] = Infinity; //#21471 + var _4V = $k[--$j]; //#21471 + var _4W = $k[--$j]; //#21471 + $k[$j++] = _4V; //#21471 + $k[$j++] = $get($1.CNvals, $1.sft1); //#21471 + $k[$j++] = _4W; //#21471 + var _4a = $a(); //#21471 + $k[$j++] = _4a; //#21471 + } //#21471 + var _4b = $1.C2vals; //#21472 + for (var _4g = _4b.size, _4f = _4b.keys(), _4e = 0; _4e < _4g; _4e++) { //#21472 + var _4c = _4f.next().value; //#21472 + $k[$j++] = _4c; //#21472 + $k[$j++] = _4b.get(_4c); //#21472 + $k[$j++] = Infinity; //#21472 + var _4h = $k[--$j]; //#21472 + var _4i = $k[--$j]; //#21472 + $k[$j++] = _4h; //#21472 + $k[$j++] = $get($1.CNvals, $1.sft2); //#21472 + $k[$j++] = _4i; //#21472 + var _4m = $a(); //#21472 + $k[$j++] = _4m; //#21472 + } //#21472 + var _4n = $1.C3vals; //#21473 + for (var _4s = _4n.size, _4r = _4n.keys(), _4q = 0; _4q < _4s; _4q++) { //#21473 + var _4o = _4r.next().value; //#21473 + $k[$j++] = _4o; //#21473 + $k[$j++] = _4n.get(_4o); //#21473 + $k[$j++] = Infinity; //#21473 + var _4t = $k[--$j]; //#21473 + var _4u = $k[--$j]; //#21473 + $k[$j++] = _4t; //#21473 + $k[$j++] = $get($1.CNvals, $1.sft3); //#21473 + $k[$j++] = _4u; //#21473 + var _4y = $a(); //#21473 + $k[$j++] = _4y; //#21473 + } //#21473 + $1.Cvals = $d(); //#21474 + $k[$j++] = Infinity; //#21482 + $k[$j++] = $1.sft1; //#21481 + $k[$j++] = 0; //#21481 + $k[$j++] = $1.sft2; //#21481 + $k[$j++] = 1; //#21481 + $k[$j++] = $1.sft3; //#21481 + $k[$j++] = 2; //#21481 + $k[$j++] = 32; //#21481 + $k[$j++] = 3; //#21481 + for (var _53 = 48; _53 <= 57; _53 += 1) { //#21481 + $k[$j++] = _53; //#21481 + $k[$j++] = _53 - 44; //#21481 + } //#21481 + for (var _54 = 97; _54 <= 122; _54 += 1) { //#21482 + $k[$j++] = _54; //#21482 + $k[$j++] = _54 - 83; //#21482 + } //#21482 + $1.TNvals = $d(); //#21483 + $k[$j++] = Infinity; //#21484 + for (var _56 = 0; _56 <= 31; _56 += 1) { //#21484 + $k[$j++] = _56; //#21484 + $k[$j++] = _56; //#21484 + } //#21484 + $1.T1vals = $d(); //#21484 + $k[$j++] = Infinity; //#21493 + for (var _58 = 33; _58 <= 47; _58 += 1) { //#21486 + $k[$j++] = _58; //#21486 + $k[$j++] = _58 - 33; //#21486 + } //#21486 + for (var _59 = 58; _59 <= 64; _59 += 1) { //#21487 + $k[$j++] = _59; //#21487 + $k[$j++] = _59 - 43; //#21487 + } //#21487 + for (var _5A = 91; _5A <= 95; _5A += 1) { //#21488 + $k[$j++] = _5A; //#21488 + $k[$j++] = _5A - 69; //#21488 + } //#21488 + $k[$j++] = $1.fnc1; //#21493 + $k[$j++] = 27; //#21493 + $k[$j++] = $1.fnc2; //#21493 + $k[$j++] = 28; //#21493 + $k[$j++] = $1.fnc3; //#21493 + $k[$j++] = 29; //#21493 + $k[$j++] = $1.fnc4; //#21493 + $k[$j++] = 30; //#21493 + $k[$j++] = $1.pad; //#21493 + $k[$j++] = 31; //#21493 + $1.T2vals = $d(); //#21494 + $k[$j++] = Infinity; //#21498 + $k[$j++] = 96; //#21497 + $k[$j++] = 0; //#21497 + for (var _5H = 65; _5H <= 90; _5H += 1) { //#21497 + $k[$j++] = _5H; //#21497 + $k[$j++] = _5H - 64; //#21497 + } //#21497 + for (var _5I = 123; _5I <= 127; _5I += 1) { //#21498 + $k[$j++] = _5I; //#21498 + $k[$j++] = _5I - 96; //#21498 + } //#21498 + $1.T3vals = $d(); //#21499 + $k[$j++] = Infinity; //#21504 + var _5K = $1.TNvals; //#21501 + for (var _5P = _5K.size, _5O = _5K.keys(), _5N = 0; _5N < _5P; _5N++) { //#21501 + var _5L = _5O.next().value; //#21501 + $k[$j++] = _5L; //#21501 + $k[$j++] = _5K.get(_5L); //#21501 + $k[$j++] = Infinity; //#21501 + var _5Q = $k[--$j]; //#21501 + var _5R = $k[--$j]; //#21501 + $k[$j++] = _5Q; //#21501 + $k[$j++] = _5R; //#21501 + var _5S = $a(); //#21501 + $k[$j++] = _5S; //#21501 + } //#21501 + var _5T = $1.T1vals; //#21502 + for (var _5Y = _5T.size, _5X = _5T.keys(), _5W = 0; _5W < _5Y; _5W++) { //#21502 + var _5U = _5X.next().value; //#21502 + $k[$j++] = _5U; //#21502 + $k[$j++] = _5T.get(_5U); //#21502 + $k[$j++] = Infinity; //#21502 + var _5Z = $k[--$j]; //#21502 + var _5a = $k[--$j]; //#21502 + $k[$j++] = _5Z; //#21502 + $k[$j++] = $get($1.TNvals, $1.sft1); //#21502 + $k[$j++] = _5a; //#21502 + var _5e = $a(); //#21502 + $k[$j++] = _5e; //#21502 + } //#21502 + var _5f = $1.T2vals; //#21503 + for (var _5k = _5f.size, _5j = _5f.keys(), _5i = 0; _5i < _5k; _5i++) { //#21503 + var _5g = _5j.next().value; //#21503 + $k[$j++] = _5g; //#21503 + $k[$j++] = _5f.get(_5g); //#21503 + $k[$j++] = Infinity; //#21503 + var _5l = $k[--$j]; //#21503 + var _5m = $k[--$j]; //#21503 + $k[$j++] = _5l; //#21503 + $k[$j++] = $get($1.TNvals, $1.sft2); //#21503 + $k[$j++] = _5m; //#21503 + var _5q = $a(); //#21503 + $k[$j++] = _5q; //#21503 + } //#21503 + var _5r = $1.T3vals; //#21504 + for (var _5w = _5r.size, _5v = _5r.keys(), _5u = 0; _5u < _5w; _5u++) { //#21504 + var _5s = _5v.next().value; //#21504 + $k[$j++] = _5s; //#21504 + $k[$j++] = _5r.get(_5s); //#21504 + $k[$j++] = Infinity; //#21504 + var _5x = $k[--$j]; //#21504 + var _5y = $k[--$j]; //#21504 + $k[$j++] = _5x; //#21504 + $k[$j++] = $get($1.TNvals, $1.sft3); //#21504 + $k[$j++] = _5y; //#21504 + var _62 = $a(); //#21504 + $k[$j++] = _62; //#21504 + } //#21504 + $1.Tvals = $d(); //#21505 + for (var _64 = 128; _64 <= 255; _64 += 1) { //#21513 + $1.i = _64; //#21509 + $k[$j++] = $1.Avals; //#21510 + $k[$j++] = $1.i; //#21510 + $k[$j++] = Infinity; //#21510 + $aload($get($1.Avals, $1.fnc4)); //#21510 + $aload($get($1.Avals, $1.i - 128)); //#21510 + var _6D = $a(); //#21510 + var _6E = $k[--$j]; //#21510 + $put($k[--$j], _6E, _6D); //#21510 + $k[$j++] = $1.Cvals; //#21511 + $k[$j++] = $1.i; //#21511 + $k[$j++] = Infinity; //#21511 + $aload($get($1.Cvals, $1.fnc4)); //#21511 + $aload($get($1.Cvals, $1.i - 128)); //#21511 + var _6O = $a(); //#21511 + var _6P = $k[--$j]; //#21511 + $put($k[--$j], _6P, _6O); //#21511 + $k[$j++] = $1.Tvals; //#21512 + $k[$j++] = $1.i; //#21512 + $k[$j++] = Infinity; //#21512 + $aload($get($1.Tvals, $1.fnc4)); //#21512 + $aload($get($1.Tvals, $1.i - 128)); //#21512 + var _6Z = $a(); //#21512 + var _6a = $k[--$j]; //#21512 + $put($k[--$j], _6a, _6Z); //#21512 + } //#21512 + $k[$j++] = Infinity; //#21521 + $k[$j++] = 13; //#21520 + $k[$j++] = 0; //#21520 + $k[$j++] = 42; //#21520 + $k[$j++] = 1; //#21520 + $k[$j++] = 62; //#21520 + $k[$j++] = 2; //#21520 + $k[$j++] = 32; //#21520 + $k[$j++] = 3; //#21520 + for (var _6c = 48; _6c <= 57; _6c += 1) { //#21520 + $k[$j++] = _6c; //#21520 + $k[$j++] = _6c - 44; //#21520 + } //#21520 + for (var _6d = 65; _6d <= 90; _6d += 1) { //#21521 + $k[$j++] = _6d; //#21521 + $k[$j++] = _6d - 51; //#21521 + } //#21521 + $1.Xvals = $d(); //#21522 + $k[$j++] = Infinity; //#21524 + var _6f = $1.Xvals; //#21524 + for (var _6k = _6f.size, _6j = _6f.keys(), _6i = 0; _6i < _6k; _6i++) { //#21524 + var _6g = _6j.next().value; //#21524 + $k[$j++] = _6g; //#21524 + $k[$j++] = _6f.get(_6g); //#21524 + $k[$j++] = Infinity; //#21524 + var _6l = $k[--$j]; //#21524 + var _6m = $k[--$j]; //#21524 + $k[$j++] = _6l; //#21524 + $k[$j++] = _6m; //#21524 + var _6n = $a(); //#21524 + $k[$j++] = _6n; //#21524 + } //#21524 + $1.Xvals = $d(); //#21525 + $k[$j++] = Infinity; //#21528 + for (var _6p = 0; _6p <= 255; _6p += 1) { //#21528 + $k[$j++] = _6p; //#21528 + $k[$j++] = _6p; //#21528 + } //#21528 + $1.Bvals = $d(); //#21529 + $k[$j++] = Infinity; //#21531 + var _6r = $1.Bvals; //#21531 + for (var _6w = _6r.size, _6v = _6r.keys(), _6u = 0; _6u < _6w; _6u++) { //#21531 + var _6s = _6v.next().value; //#21531 + $k[$j++] = _6s; //#21531 + $k[$j++] = _6r.get(_6s); //#21531 + $k[$j++] = Infinity; //#21531 + var _6x = $k[--$j]; //#21531 + var _6y = $k[--$j]; //#21531 + $k[$j++] = _6x; //#21531 + $k[$j++] = _6y; //#21531 + var _6z = $a(); //#21531 + $k[$j++] = _6z; //#21531 + } //#21531 + $1.Bvals = $d(); //#21532 + $1.encvals = $a([$1.Avals, $1.Cvals, $1.Tvals, $1.Xvals, -1, $1.Bvals]); //#21534 + $k[$j++] = Infinity; //#21536 + for (var _78 = 0, _79 = $1.msglen; _78 < _79; _78++) { //#21536 + $k[$j++] = 0; //#21536 + } //#21536 + $k[$j++] = 0; //#21536 + $1.numD = $a(); //#21536 + $k[$j++] = Infinity; //#21537 + for (var _7C = 0, _7D = $1.msglen; _7C < _7D; _7C++) { //#21537 + $k[$j++] = 0; //#21537 + } //#21537 + $k[$j++] = 9999; //#21537 + $1.nextXterm = $a(); //#21537 + $k[$j++] = Infinity; //#21538 + for (var _7G = 0, _7H = $1.msglen; _7G < _7H; _7G++) { //#21538 + $k[$j++] = 0; //#21538 + } //#21538 + $k[$j++] = 9999; //#21538 + $1.nextNonX = $a(); //#21538 + for (var _7K = $1.msglen - 1; _7K >= 0; _7K -= 1) { //#21555 + $1.i = _7K; //#21540 + $1.barchar = $get($1.msg, $1.i); //#21541 + if (($1.barchar >= 48) && ($1.barchar <= 57)) { //#21544 + $put($1.numD, $1.i, $f($get($1.numD, $1.i + 1) + 1)); //#21543 + } //#21543 + if ((($1.barchar == 13) || ($1.barchar == 42)) || ($1.barchar == 62)) { //#21548 + $put($1.nextXterm, $1.i, 0); //#21546 + } else { //#21548 + $put($1.nextXterm, $1.i, $f($get($1.nextXterm, $1.i + 1) + 1)); //#21548 + } //#21548 + var _7h = $get($1.Xvals, $1.barchar) !== undefined; //#21550 + if (!_7h) { //#21553 + $put($1.nextNonX, $1.i, 0); //#21551 + } else { //#21553 + $put($1.nextNonX, $1.i, $f($get($1.nextNonX, $1.i + 1) + 1)); //#21553 + } //#21553 + } //#21553 + $k[$j++] = Infinity; //#21556 + var _7p = $1.nextXterm; //#21556 + for (var _7q = 0, _7r = _7p.length; _7q < _7r; _7q++) { //#21556 + var _7s = $get(_7p, _7q); //#21556 + $k[$j++] = _7s; //#21556 + if (_7s > 10000) { //#21556 + $j--; //#21556 + $k[$j++] = 10000; //#21556 + } //#21556 + } //#21556 + $1.nextXterm = $a(); //#21556 + $k[$j++] = Infinity; //#21557 + var _7u = $1.nextNonX; //#21557 + for (var _7v = 0, _7w = _7u.length; _7v < _7w; _7v++) { //#21557 + var _7x = $get(_7u, _7v); //#21557 + $k[$j++] = _7x; //#21557 + if (_7x > 10000) { //#21557 + $j--; //#21557 + $k[$j++] = 10000; //#21557 + } //#21557 + } //#21557 + $1.nextNonX = $a(); //#21557 + $1.isD = function() { + $k[$j++] = ($1.char >= 48) && ($1.char <= 57); //#21559 + }; //#21559 + $1.isC = function() { + var _83 = $get($1.CNvals, $1.char) !== undefined; //#21560 + $k[$j++] = _83; //#21560 + }; //#21560 + $1.isT = function() { + var _86 = $get($1.TNvals, $1.char) !== undefined; //#21561 + $k[$j++] = _86; //#21561 + }; //#21561 + $1.isX = function() { + var _89 = $get($1.Xvals, $1.char) !== undefined; //#21562 + $k[$j++] = _89; //#21562 + }; //#21562 + $1.isEA = function() { + $k[$j++] = $1.char > 127; //#21563 + }; //#21563 + $1.isFN = function() { + $k[$j++] = $1.char < 0; //#21564 + }; //#21564 + $1.XtermFirst = function() { + var _8C = $k[--$j]; //#21565 + $k[$j++] = $lt($get($1.nextXterm, _8C), $get($1.nextNonX, _8C)); //#21565 + }; //#21565 + $1.A = 0; //#21567 + $1.C = 1; //#21567 + $1.T = 2; //#21567 + $1.X = 3; //#21567 + $1.D = 4; //#21567 + $1.B = 5; //#21567 + $1.lookup = function() { + $1.ac = 1; //#21570 + $1.cc = 2; //#21570 + $1.tc = 2; //#21570 + $1.xc = 2; //#21570 + $1.bc = 3; //#21570 + if ($1.mode == $1.A) { //#21571 + $1.ac = 0; //#21571 + $1.cc = 1; //#21571 + $1.tc = 1; //#21571 + $1.xc = 1; //#21571 + $1.bc = 2; //#21571 + } //#21571 + if ($1.mode == $1.C) { //#21572 + $1.cc = 0; //#21572 + } //#21572 + if ($1.mode == $1.T) { //#21573 + $1.tc = 0; //#21573 + } //#21573 + if ($1.mode == $1.X) { //#21574 + $1.xc = 0; //#21574 + } //#21574 + if ($1.mode == $1.B) { //#21575 + $1.bc = 0; //#21575 + } //#21575 + for (var _8R = 0, _8S = 1; _8R < _8S; _8R++) { //#21603 + $1.k = 0; //#21577 + for (;;) { //#21602 + if (($1.i + $1.k) == $1.msglen) { //#21584 + var _8a = $a([$1.ac, $1.cc, $1.tc, $1.xc]); //#21579 + $k[$j++] = true; //#21579 + for (var _8b = 0, _8c = _8a.length; _8b < _8c; _8b++) { //#21579 + var _8f = $k[--$j]; //#21579 + $k[$j++] = _8f && ($1.bc <= Math.ceil($get(_8a, _8b))); //#21579 + } //#21579 + if ($k[--$j]) { //#21579 + $k[$j++] = $1.B; //#21579 + break; //#21579 + } //#21579 + var _8m = $a([$1.cc, $1.tc, $1.xc, $1.bc]); //#21580 + $k[$j++] = true; //#21580 + for (var _8n = 0, _8o = _8m.length; _8n < _8o; _8n++) { //#21580 + var _8r = $k[--$j]; //#21580 + $k[$j++] = _8r && ($1.ac <= Math.ceil($get(_8m, _8n))); //#21580 + } //#21580 + if ($k[--$j]) { //#21580 + $k[$j++] = $1.A; //#21580 + break; //#21580 + } //#21580 + var _8w = $a([$1.tc, $1.xc]); //#21581 + $k[$j++] = true; //#21581 + for (var _8x = 0, _8y = _8w.length; _8x < _8y; _8x++) { //#21581 + var _91 = $k[--$j]; //#21581 + $k[$j++] = _91 && (Math.ceil($1.cc) <= Math.ceil($get(_8w, _8x))); //#21581 + } //#21581 + if ($k[--$j]) { //#21581 + $k[$j++] = $1.C; //#21581 + break; //#21581 + } //#21581 + var _95 = $a([$1.xc]); //#21582 + $k[$j++] = true; //#21582 + for (var _96 = 0, _97 = _95.length; _96 < _97; _96++) { //#21582 + var _9A = $k[--$j]; //#21582 + $k[$j++] = _9A && (Math.ceil($1.tc) <= Math.ceil($get(_95, _96))); //#21582 + } //#21582 + if ($k[--$j]) { //#21582 + $k[$j++] = $1.T; //#21582 + break; //#21582 + } //#21582 + $k[$j++] = $1.X; //#21583 + break; //#21583 + } //#21583 + $1.char = $get($1.msg, $1.i + $1.k); //#21585 + $k[$j++] = 'ac'; //#21586 + $k[$j++] = $1.ac; //#21586 + $1.isD(); //#21586 + if ($k[--$j]) { //#21586 + var _9K = $k[--$j]; //#21586 + $k[$j++] = $f(_9K + (1 / 2)); //#21586 + } else { //#21586 + $1.isEA(); //#21586 + if ($k[--$j]) { //#21586 + var _9M = $k[--$j]; //#21586 + $k[$j++] = Math.ceil(_9M) + 2; //#21586 + } else { //#21586 + var _9N = $k[--$j]; //#21586 + $k[$j++] = Math.ceil(_9N) + 1; //#21586 + } //#21586 + } //#21586 + var _9O = $k[--$j]; //#21586 + $1[$k[--$j]] = _9O; //#21586 + $k[$j++] = 'cc'; //#21587 + $k[$j++] = $1.cc; //#21587 + $1.isC(); //#21587 + if ($k[--$j]) { //#21587 + var _9S = $k[--$j]; //#21587 + $k[$j++] = $f(_9S + 0.66666667); //#21587 + } else { //#21587 + $1.isEA(); //#21587 + if ($k[--$j]) { //#21587 + var _9U = $k[--$j]; //#21587 + $k[$j++] = $f(_9U + 2.66666667); //#21587 + } else { //#21587 + var _9V = $k[--$j]; //#21587 + $k[$j++] = $f(_9V + 1.33333334); //#21587 + } //#21587 + } //#21587 + var _9W = $k[--$j]; //#21587 + $1[$k[--$j]] = _9W; //#21587 + $k[$j++] = 'tc'; //#21588 + $k[$j++] = $1.tc; //#21588 + $1.isT(); //#21588 + if ($k[--$j]) { //#21588 + var _9a = $k[--$j]; //#21588 + $k[$j++] = $f(_9a + 0.66666667); //#21588 + } else { //#21588 + $1.isEA(); //#21588 + if ($k[--$j]) { //#21588 + var _9c = $k[--$j]; //#21588 + $k[$j++] = $f(_9c + 2.66666667); //#21588 + } else { //#21588 + var _9d = $k[--$j]; //#21588 + $k[$j++] = $f(_9d + 1.33333334); //#21588 + } //#21588 + } //#21588 + var _9e = $k[--$j]; //#21588 + $1[$k[--$j]] = _9e; //#21588 + $k[$j++] = 'xc'; //#21589 + $k[$j++] = $1.xc; //#21589 + $1.isX(); //#21589 + if ($k[--$j]) { //#21589 + var _9i = $k[--$j]; //#21589 + $k[$j++] = $f(_9i + 0.66666667); //#21589 + } else { //#21589 + $1.isEA(); //#21589 + if ($k[--$j]) { //#21589 + var _9k = $k[--$j]; //#21589 + $k[$j++] = $f(_9k + 4.33333334); //#21589 + } else { //#21589 + var _9l = $k[--$j]; //#21589 + $k[$j++] = $f(_9l + 3.33333334); //#21589 + } //#21589 + } //#21589 + var _9m = $k[--$j]; //#21589 + $1[$k[--$j]] = _9m; //#21589 + $k[$j++] = 'bc'; //#21590 + $k[$j++] = $1.bc; //#21590 + $1.isFN(); //#21590 + if ($k[--$j]) { //#21590 + var _9q = $k[--$j]; //#21590 + $k[$j++] = $f(_9q + 3); //#21590 + } else { //#21590 + var _9r = $k[--$j]; //#21590 + $k[$j++] = $f(_9r + 1); //#21590 + } //#21590 + var _9s = $k[--$j]; //#21590 + $1[$k[--$j]] = _9s; //#21590 + if ($1.k >= 3) { //#21600 + var _9z = $a([$1.ac, $1.cc, $1.tc, $1.xc]); //#21592 + $k[$j++] = true; //#21592 + for (var _A0 = 0, _A1 = _9z.length; _A0 < _A1; _A0++) { //#21592 + var _A4 = $k[--$j]; //#21592 + $k[$j++] = _A4 && (($1.bc + 1) <= Math.ceil($get(_9z, _A0))); //#21592 + } //#21592 + if ($k[--$j]) { //#21592 + $k[$j++] = $1.B; //#21592 + break; //#21592 + } //#21592 + var _AB = $a([$1.cc, $1.tc, $1.xc, $1.bc]); //#21593 + $k[$j++] = true; //#21593 + for (var _AC = 0, _AD = _AB.length; _AC < _AD; _AC++) { //#21593 + var _AG = $k[--$j]; //#21593 + $k[$j++] = _AG && (($1.ac + 1) <= Math.ceil($get(_AB, _AC))); //#21593 + } //#21593 + if ($k[--$j]) { //#21593 + $k[$j++] = $1.A; //#21593 + break; //#21593 + } //#21593 + var _AN = $a([$1.ac, $1.cc, $1.xc, $1.bc]); //#21594 + $k[$j++] = true; //#21594 + for (var _AO = 0, _AP = _AN.length; _AO < _AP; _AO++) { //#21594 + var _AS = $k[--$j]; //#21594 + $k[$j++] = _AS && ((Math.ceil($1.tc) + 1) <= Math.ceil($get(_AN, _AO))); //#21594 + } //#21594 + if ($k[--$j]) { //#21594 + $k[$j++] = $1.T; //#21594 + break; //#21594 + } //#21594 + var _AX = $a([$1.ac, $1.tc]); //#21595 + $k[$j++] = true; //#21595 + for (var _AY = 0, _AZ = _AX.length; _AY < _AZ; _AY++) { //#21595 + var _Ac = $k[--$j]; //#21595 + $k[$j++] = _Ac && ((Math.ceil($1.cc) + 1) <= Math.ceil($get(_AX, _AY))); //#21595 + } //#21595 + if ($k[--$j]) { //#21598 + if (Math.ceil($1.cc) < Math.ceil($1.xc)) { //#21596 + $k[$j++] = $1.C; //#21596 + break; //#21596 + } //#21596 + if ($1.cc == $1.xc) { //#21597 + $k[$j++] = ($1.i + $1.k) + 1; //#21597 + $1.XtermFirst(); //#21597 + if ($k[--$j]) { //#21597 + $k[$j++] = $1.X; //#21597 + break; //#21597 + } else { //#21597 + $k[$j++] = $1.C; //#21597 + break; //#21597 + } //#21597 + } //#21597 + } //#21597 + var _As = $a([$1.ac, $1.cc, $1.tc, $1.bc]); //#21599 + $k[$j++] = true; //#21599 + for (var _At = 0, _Au = _As.length; _At < _Au; _At++) { //#21599 + var _Ax = $k[--$j]; //#21599 + $k[$j++] = _Ax && ((Math.ceil($1.xc) + 1) <= Math.ceil($get(_As, _At))); //#21599 + } //#21599 + if ($k[--$j]) { //#21599 + $k[$j++] = $1.X; //#21599 + break; //#21599 + } //#21599 + } //#21599 + $1.k = $1.k + 1; //#21601 + } //#21601 + } //#21601 + }; //#21604 + $1.addtocws = function() { + var _B1 = $k[--$j]; //#21607 + $puti($1.cws, $1.j, _B1); //#21607 + $1.j = _B1.length + $1.j; //#21608 + }; //#21609 + $1.tobin = function() { + var _B6 = $s($k[--$j]); //#21612 + $k[$j++] = _B6; //#21612 + for (var _B8 = 0, _B7 = _B6.length - 1; _B8 <= _B7; _B8 += 1) { //#21612 + var _B9 = $k[--$j]; //#21612 + $put(_B9, _B8, 48); //#21612 + $k[$j++] = _B9; //#21612 + } //#21612 + var _BA = $k[--$j]; //#21613 + var _BD = $cvrs($s(_BA.length), $k[--$j], 2); //#21613 + $puti(_BA, _BA.length - _BD.length, _BD); //#21613 + $k[$j++] = _BA; //#21614 + $k[$j++] = Infinity; //#21614 + var _BE = $k[--$j]; //#21614 + var _BF = $k[--$j]; //#21614 + $k[$j++] = _BE; //#21614 + $forall(_BF, function() { //#21614 + var _BG = $k[--$j]; //#21614 + $k[$j++] = $f(_BG - 48); //#21614 + }); //#21614 + var _BH = $a(); //#21614 + $k[$j++] = _BH; //#21614 + }; //#21615 + $1.encA = function() { + for (var _BI = 0, _BJ = 1; _BI < _BJ; _BI++) { //#21659 + if ($get($1.numD, $1.i) >= 21) { //#21623 + $1.Dbits = $a([1, 1, 1, 1]); //#21620 + $1.mode = $1.D; //#21621 + break; //#21622 + } //#21622 + var _BR = $get($1.numD, $1.i); //#21624 + if ((_BR >= 13) && ($f(_BR + $1.i) == $1.msglen)) { //#21628 + $1.Dbits = $a([1, 1, 1, 1]); //#21625 + $1.mode = $1.D; //#21626 + break; //#21627 + } //#21627 + if ($get($1.numD, $1.i) >= 2) { //#21633 + var _BZ = $s(2); //#21630 + $put(_BZ, 0, $get($1.msg, $1.i)); //#21630 + $put(_BZ, 1, $get($1.msg, $1.i + 1)); //#21630 + $k[$j++] = $get($1.Avals, _BZ); //#21630 + $1.addtocws(); //#21630 + $1.i = $1.i + 2; //#21631 + break; //#21632 + } //#21632 + if ($get($1.msg, $1.i) == $1.fnc1) { //#21649 + if ($get($1.numD, $1.i + 1) >= 15) { //#21641 + $k[$j++] = $get($1.Avals, $1.fnc1lD); //#21636 + $1.addtocws(); //#21636 + $1.i = $1.i + 1; //#21637 + $1.Dbits = $a([]); //#21638 + $1.mode = $1.D; //#21639 + break; //#21640 + } //#21640 + var _By = $get($1.numD, $1.i + 1); //#21642 + if ((_By >= 7) && (($f($f(_By + $1.i) + 1)) == $1.msglen)) { //#21648 + $k[$j++] = $get($1.Avals, $1.fnc1lD); //#21643 + $1.addtocws(); //#21643 + $1.i = $1.i + 1; //#21644 + $1.Dbits = $a([]); //#21645 + $1.mode = $1.D; //#21646 + break; //#21647 + } //#21647 + } //#21647 + $k[$j++] = 'newmode'; //#21650 + $1.lookup(); //#21650 + var _C7 = $k[--$j]; //#21650 + $1[$k[--$j]] = _C7; //#21650 + if ($1.newmode != $1.mode) { //#21655 + $k[$j++] = $get($1.Avals, $get($a([-1, $1.lC, $1.lT, $1.lX, $1.lD, $1.lB]), $1.newmode)); //#21652 + $1.addtocws(); //#21652 + $1.mode = $1.newmode; //#21653 + break; //#21654 + } //#21654 + $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); //#21656 + $1.addtocws(); //#21656 + $1.i = $1.i + 1; //#21657 + break; //#21658 + } //#21658 + }; //#21660 + $1.CTXvalstocws = function() { + $1.in = $k[--$j]; //#21663 + $k[$j++] = Infinity; //#21664 + for (var _CV = 0, _CU = $1.in.length - 1; _CV <= _CU; _CV += 3) { //#21668 + var _CX = $geti($1.in, _CV, 3); //#21666 + $k[$j++] = 0; //#21666 + for (var _CY = 0, _CZ = _CX.length; _CY < _CZ; _CY++) { //#21666 + var _Cb = $k[--$j]; //#21666 + $k[$j++] = $f(_Cb + $get(_CX, _CY)) * 40; //#21666 + } //#21666 + var _Cd = (~~($k[--$j] / 40)) + 1; //#21667 + $k[$j++] = ~~(_Cd / 256); //#21667 + $k[$j++] = _Cd % 256; //#21667 + } //#21667 + $astore($a($counttomark())); //#21669 + var _Cg = $k[--$j]; //#21669 + var _Ch = $k[--$j]; //#21669 + $k[$j++] = _Cg; //#21669 + $k[$j++] = _Ch; //#21669 + $j--; //#21669 + }; //#21670 + $1.encCTX = function() { + $1.p = 0; //#21673 + $1.ctxvals = $a(2220); //#21674 + for (;;) { //#21771 + if ($1.i == $1.msglen) { //#21678 + break; //#21678 + } //#21678 + if (($1.p % 3) == 0) { //#21766 + if ($get($1.numD, $1.i) >= 12) { //#21685 + $k[$j++] = $geti($1.ctxvals, 0, $1.p); //#21681 + $1.CTXvalstocws(); //#21681 + $1.addtocws(); //#21681 + $k[$j++] = $a([$1.unlcw]); //#21682 + $1.addtocws(); //#21682 + $1.mode = $1.A; //#21683 + break; //#21684 + } //#21684 + var _Cx = $get($1.numD, $1.i); //#21686 + if ((_Cx >= 8) && ($f(_Cx + $1.i) == $1.msglen)) { //#21691 + $k[$j++] = $geti($1.ctxvals, 0, $1.p); //#21687 + $1.CTXvalstocws(); //#21687 + $1.addtocws(); //#21687 + $k[$j++] = $a([$1.unlcw]); //#21688 + $1.addtocws(); //#21688 + $1.mode = $1.A; //#21689 + break; //#21690 + } //#21690 + if ($1.mode == $1.X) { //#21713 + var _DC = $get($1.Xvals, $get($1.msg, $1.i)) !== undefined; //#21693 + if (!_DC) { //#21701 + $k[$j++] = $geti($1.ctxvals, 0, $1.p); //#21694 + $1.CTXvalstocws(); //#21694 + $1.addtocws(); //#21694 + if (($get($1.numremcws, $1.j) != 1) || ($get($1.msg, $1.i) > 127)) { //#21698 + $k[$j++] = $a([$1.unlcw]); //#21697 + $1.addtocws(); //#21697 + } //#21697 + $1.mode = $1.A; //#21699 + break; //#21700 + } //#21700 + if (($1.i + 1) < $1.msglen) { //#21707 + var _DV = $get($1.Xvals, $get($1.msg, $1.i + 1)) !== undefined; //#21703 + if (!_DV) { //#21703 + break; //#21703 + } //#21703 + if (($1.i + 2) < $1.msglen) { //#21706 + var _Dc = $get($1.Xvals, $get($1.msg, $1.i + 2)) !== undefined; //#21705 + if (!_Dc) { //#21705 + break; //#21705 + } //#21705 + } //#21705 + } //#21705 + } else { //#21713 + $1.lookup(); //#21709 + if ($k[--$j] != $1.mode) { //#21714 + $k[$j++] = $geti($1.ctxvals, 0, $1.p); //#21710 + $1.CTXvalstocws(); //#21710 + $1.addtocws(); //#21710 + $k[$j++] = $a([$1.unlcw]); //#21711 + $1.addtocws(); //#21711 + $1.mode = $1.A; //#21712 + break; //#21713 + } //#21713 + } //#21713 + if (($1.msglen - $1.i) <= 3) { //#21765 + $1.remcws = $get($1.numremcws, $1.j + ((~~($1.p / 3)) * 2)); //#21717 + $k[$j++] = Infinity; //#21723 + var _Dv = $geti($1.msg, $1.i, $1.msglen - $1.i); //#21719 + for (var _Dw = 0, _Dx = _Dv.length; _Dw < _Dx; _Dw++) { //#21725 + var _Dy = $get(_Dv, _Dw); //#21725 + var _E2 = $get($get($1.encvals, $1.mode), _Dy) !== undefined; //#21720 + $k[$j++] = _Dy; //#21724 + if (_E2) { //#21723 + $aload($get($get($1.encvals, $1.mode), $k[--$j])); //#21721 + } else { //#21723 + $j--; //#21723 + $k[$j++] = -1; //#21723 + $k[$j++] = -1; //#21723 + $k[$j++] = -1; //#21723 + $k[$j++] = -1; //#21723 + } //#21723 + } //#21723 + $1.remvals = $a(); //#21723 + if (($1.remcws == 2) && ($1.remvals.length == 3)) { //#21736 + $k[$j++] = Infinity; //#21731 + $aload($geti($1.ctxvals, 0, $1.p)); //#21730 + $aload($1.remvals); //#21731 + var _EF = $a(); //#21731 + $k[$j++] = _EF; //#21732 + $1.CTXvalstocws(); //#21732 + $1.addtocws(); //#21732 + $1.mode = $1.A; //#21733 + $1.i = $1.msglen; //#21734 + break; //#21735 + } //#21735 + if ((($1.remcws == 2) && ($1.remvals.length == 2)) && ($1.mode != $1.X)) { //#21747 + $k[$j++] = Infinity; //#21742 + $aload($geti($1.ctxvals, 0, $1.p)); //#21740 + $aload($1.remvals); //#21741 + $aload($get($get($1.encvals, $1.mode), $1.sft1)); //#21742 + var _EV = $a(); //#21742 + $k[$j++] = _EV; //#21743 + $1.CTXvalstocws(); //#21743 + $1.addtocws(); //#21743 + $1.mode = $1.A; //#21744 + $1.i = $1.msglen; //#21745 + break; //#21746 + } //#21746 + if (($1.remcws == 2) && ($1.remvals.length == 1)) { //#21756 + $k[$j++] = $geti($1.ctxvals, 0, $1.p); //#21750 + $1.CTXvalstocws(); //#21750 + $1.addtocws(); //#21750 + $k[$j++] = $a([$1.unlcw]); //#21751 + $1.addtocws(); //#21751 + $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); //#21752 + $1.addtocws(); //#21752 + $1.mode = $1.A; //#21753 + $1.i = $1.msglen; //#21754 + break; //#21755 + } //#21755 + if (($1.remcws == 1) && ($1.remvals.length == 1)) { //#21764 + $k[$j++] = $geti($1.ctxvals, 0, $1.p); //#21759 + $1.CTXvalstocws(); //#21759 + $1.addtocws(); //#21759 + $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); //#21760 + $1.addtocws(); //#21760 + $1.mode = $1.A; //#21761 + $1.i = $1.msglen; //#21762 + break; //#21763 + } //#21763 + } //#21763 + } //#21763 + var _F4 = $get($get($1.encvals, $1.mode), $get($1.msg, $1.i)); //#21767 + $puti($1.ctxvals, $1.p, _F4); //#21768 + $1.p = _F4.length + $1.p; //#21769 + $1.i = $1.i + 1; //#21770 + } //#21770 + if ($1.mode != $1.A) { //#21795 + for (;;) { //#21779 + if (($1.p % 3) == 0) { //#21776 + break; //#21776 + } //#21776 + $1.i = $1.i - 1; //#21777 + $1.p = $1.p - $get($get($1.encvals, $1.mode), $get($1.msg, $1.i)).length; //#21778 + } //#21778 + $k[$j++] = Infinity; //#21781 + $aload($geti($1.ctxvals, 0, $1.p)); //#21781 + var _FO = $a(); //#21781 + $k[$j++] = _FO; //#21782 + $1.CTXvalstocws(); //#21782 + $1.addtocws(); //#21782 + $k[$j++] = $a([$1.unlcw]); //#21783 + $1.addtocws(); //#21783 + $1.mode = $1.A; //#21784 + if ($1.i != $1.msglen) { //#21794 + if ($get($1.numD, $1.i) >= 2) { //#21792 + var _FX = $s(2); //#21788 + $put(_FX, 0, $get($1.msg, $1.i)); //#21788 + $put(_FX, 1, $get($1.msg, $1.i + 1)); //#21788 + $k[$j++] = $get($1.Avals, _FX); //#21788 + $1.addtocws(); //#21788 + $1.i = $1.i + 2; //#21789 + } else { //#21792 + $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); //#21791 + $1.addtocws(); //#21791 + $1.i = $1.i + 1; //#21792 + } //#21792 + } //#21792 + } //#21792 + }; //#21797 + $1.encD = function() { + for (;;) { //#21856 + if ($get($1.numD, $1.i) < 3) { //#21846 + $1.Drem = (8 - ($1.Dbits.length % 8)) % 8; //#21805 + $1.remcws = $get($1.numremcws, $1.j + (~~($1.Dbits.length / 8))); //#21806 + if (((($f($get($1.numremcws, ($1.j + (~~($1.Dbits.length / 8))) - 1) - 1) == 0) && ($1.Drem == 0)) || (($1.remcws == 1) && ($1.Drem != 0))) && ($1.i == $1.msglen)) { //#21815 + if (($1.Drem == 4) || ($1.Drem == 6)) { //#21812 + $k[$j++] = Infinity; //#21812 + $aload($1.Dbits); //#21812 + $k[$j++] = 1; //#21812 + $k[$j++] = 1; //#21812 + $k[$j++] = 1; //#21812 + $k[$j++] = 1; //#21812 + $1.Dbits = $a(); //#21812 + } //#21812 + if (($1.Drem == 2) || ($1.Drem == 6)) { //#21813 + $k[$j++] = Infinity; //#21813 + $aload($1.Dbits); //#21813 + $k[$j++] = 0; //#21813 + $k[$j++] = 1; //#21813 + $1.Dbits = $a(); //#21813 + } //#21813 + break; //#21814 + } //#21814 + if ((((($1.i == ($1.msglen - 1)) && ($get($1.numD, $1.i) == 1)) || (($1.i == ($1.msglen - 2)) && ($get($1.numD, $1.i) == 2))) && ($1.remcws == 1)) && ($1.Drem == 0)) { //#21820 + break; //#21820 + } //#21820 + if (!(((($1.i == ($1.msglen - 1)) && ($get($1.numD, $1.i) == 1)) && ($1.remcws == 1)) && (($1.Drem == 4) || ($1.Drem == 6)))) { //#21827 + $k[$j++] = Infinity; //#21825 + $aload($1.Dbits); //#21825 + $k[$j++] = 1; //#21825 + $k[$j++] = 1; //#21825 + $k[$j++] = 1; //#21825 + $k[$j++] = 1; //#21825 + $k[$j++] = 1; //#21825 + $k[$j++] = 1; //#21825 + $1.Dbits = $a(); //#21825 + $1.Drem = (8 - ($1.Dbits.length % 8)) % 8; //#21826 + } //#21826 + if (($1.Drem == 4) || ($1.Drem == 6)) { //#21838 + if ($get($1.numD, $1.i) >= 1) { //#21835 + $k[$j++] = Infinity; //#21832 + $aload($1.Dbits); //#21832 + $k[$j++] = $f($f($get($1.msg, $1.i) - 48) + 1); //#21832 + $k[$j++] = 4; //#21832 + $1.tobin(); //#21832 + $aload($k[--$j]); //#21832 + $1.Dbits = $a(); //#21832 + $1.i = $1.i + 1; //#21833 + } else { //#21835 + $k[$j++] = Infinity; //#21835 + $aload($1.Dbits); //#21835 + $k[$j++] = 1; //#21835 + $k[$j++] = 1; //#21835 + $k[$j++] = 1; //#21835 + $k[$j++] = 1; //#21835 + $1.Dbits = $a(); //#21835 + } //#21835 + $1.Drem = $1.Drem - 4; //#21837 + } //#21837 + if ($1.Drem == 2) { //#21842 + $k[$j++] = Infinity; //#21840 + $aload($1.Dbits); //#21840 + $k[$j++] = 0; //#21840 + $k[$j++] = 1; //#21840 + $1.Dbits = $a(); //#21840 + $1.Drem = 0; //#21841 + } //#21841 + break; //#21844 + } //#21844 + $k[$j++] = Infinity; //#21852 + $aload($1.Dbits); //#21850 + var _Gu = $geti($1.msg, $1.i, 3); //#21851 + $k[$j++] = 0; //#21851 + for (var _Gv = 0, _Gw = _Gu.length; _Gv < _Gw; _Gv++) { //#21851 + var _Gy = $k[--$j]; //#21851 + $k[$j++] = ($f(_Gy + $f($get(_Gu, _Gv) - 48))) * 10; //#21851 + } //#21851 + var _Gz = $k[--$j]; //#21851 + $k[$j++] = (~~(_Gz / 10)) + 1; //#21852 + $k[$j++] = 10; //#21852 + $1.tobin(); //#21852 + $aload($k[--$j]); //#21852 + $1.Dbits = $a(); //#21852 + $1.i = $1.i + 3; //#21854 + } //#21854 + $k[$j++] = Infinity; //#21858 + for (var _H5 = 0, _H4 = $1.Dbits.length - 1; _H5 <= _H4; _H5 += 8) { //#21861 + var _H7 = $geti($1.Dbits, _H5, 8); //#21860 + $k[$j++] = 0; //#21860 + for (var _H8 = 0, _H9 = _H7.length; _H8 < _H9; _H8++) { //#21860 + var _HB = $k[--$j]; //#21860 + $k[$j++] = $f(_HB + $get(_H7, _H8)) * 2; //#21860 + } //#21860 + var _HC = $k[--$j]; //#21860 + $k[$j++] = ~~(_HC / 2); //#21860 + } //#21860 + $astore($a($counttomark())); //#21862 + var _HF = $k[--$j]; //#21862 + var _HG = $k[--$j]; //#21862 + $k[$j++] = _HF; //#21862 + $k[$j++] = _HG; //#21862 + $j--; //#21862 + $1.addtocws(); //#21862 + $1.mode = $1.A; //#21863 + }; //#21865 + $1.encB = function() { + $1.p = 0; //#21868 + $1.bvals = $a(1480); //#21868 + for (;;) { //#21875 + if ($1.i == $1.msglen) { //#21869 + break; //#21869 + } //#21869 + if ($get($1.msg, $1.i) < 0) { //#21870 + break; //#21870 + } //#21870 + $1.lookup(); //#21871 + if ($k[--$j] != $1.mode) { //#21871 + break; //#21871 + } //#21871 + $put($1.bvals, $1.p, $get($1.msg, $1.i)); //#21872 + $1.p = $1.p + 1; //#21873 + $1.i = $1.i + 1; //#21874 + } //#21874 + $1.remcws = $f($get($1.numremcws, $1.j + $1.p) - 1); //#21876 + $k[$j++] = Infinity; //#21883 + if (($1.remcws == 0) && ($1.i == $1.msglen)) { //#21881 + $k[$j++] = 0; //#21879 + } else { //#21881 + if ($1.p < 250) { //#21881 + $k[$j++] = $1.p; //#21881 + } else { //#21881 + $k[$j++] = (~~($1.p / 250)) + 249; //#21881 + $k[$j++] = $1.p % 250; //#21881 + } //#21881 + } //#21881 + $aload($geti($1.bvals, 0, $1.p)); //#21883 + $1.bvals = $a(); //#21883 + $k[$j++] = $1.bvals; //#21885 + $1.addtocws(); //#21885 + $1.mode = $1.A; //#21886 + }; //#21887 + $1.cws = $a(1480); //#21890 + $1.mode = $1.A; //#21891 + $1.i = 0; //#21891 + $1.j = 0; //#21891 + for (;;) { //#21894 + if ($1.i >= $1.msglen) { //#21892 + break; //#21892 + } //#21892 + if ($1[$get($a(['encA', 'encCTX', 'encCTX', 'encCTX', 'encD', 'encB']), $1.mode)]() === true) { break; - } - $1.bits = $geti($1.bits, 0, $1.j); - $put($1.msgbits, $1.ver, $1.bits); - break; - } - } - $1.metrics = $a([ $a([ "micro", "M1", $1.vM1, 11, 11, 98, 99, 36, $a([ 2, 99, 99, 99 ]), $a([ 1, 0, -1, -1, -1, -1, -1, -1 ]) ]), $a([ "micro", "M2", $1.vM2, 13, 13, 98, 99, 80, $a([ 5, 6, 99, 99 ]), $a([ 1, 0, 1, 0, -1, -1, -1, -1 ]) ]), $a([ "micro", "M3", $1.vM3, 15, 15, 98, 99, 132, $a([ 6, 8, 99, 99 ]), $a([ 1, 0, 1, 0, -1, -1, -1, -1 ]) ]), $a([ "micro", "M4", $1.vM4, 17, 17, 98, 99, 192, $a([ 8, 10, 14, 99 ]), $a([ 1, 0, 1, 0, 1, 0, -1, -1 ]) ]), $a([ "full", "1", $1.v1to9, 21, 21, 98, 99, 208, $a([ 7, 10, 13, 17 ]), $a([ 1, 0, 1, 0, 1, 0, 1, 0 ]) ]), $a([ "full", "2", $1.v1to9, 25, 25, 18, 99, 359, $a([ 10, 16, 22, 28 ]), $a([ 1, 0, 1, 0, 1, 0, 1, 0 ]) ]), $a([ "full", "3", $1.v1to9, 29, 29, 22, 99, 567, $a([ 15, 26, 36, 44 ]), $a([ 1, 0, 1, 0, 2, 0, 2, 0 ]) ]), $a([ "full", "4", $1.v1to9, 33, 33, 26, 99, 807, $a([ 20, 36, 52, 64 ]), $a([ 1, 0, 2, 0, 2, 0, 4, 0 ]) ]), $a([ "full", "5", $1.v1to9, 37, 37, 30, 99, 1079, $a([ 26, 48, 72, 88 ]), $a([ 1, 0, 2, 0, 2, 2, 2, 2 ]) ]), $a([ "full", "6", $1.v1to9, 41, 41, 34, 99, 1383, $a([ 36, 64, 96, 112 ]), $a([ 2, 0, 4, 0, 4, 0, 4, 0 ]) ]), $a([ "full", "7", $1.v1to9, 45, 45, 22, 38, 1568, $a([ 40, 72, 108, 130 ]), $a([ 2, 0, 4, 0, 2, 4, 4, 1 ]) ]), $a([ "full", "8", $1.v1to9, 49, 49, 24, 42, 1936, $a([ 48, 88, 132, 156 ]), $a([ 2, 0, 2, 2, 4, 2, 4, 2 ]) ]), $a([ "full", "9", $1.v1to9, 53, 53, 26, 46, 2336, $a([ 60, 110, 160, 192 ]), $a([ 2, 0, 3, 2, 4, 4, 4, 4 ]) ]), $a([ "full", "10", $1.v10to26, 57, 57, 28, 50, 2768, $a([ 72, 130, 192, 224 ]), $a([ 2, 2, 4, 1, 6, 2, 6, 2 ]) ]), $a([ "full", "11", $1.v10to26, 61, 61, 30, 54, 3232, $a([ 80, 150, 224, 264 ]), $a([ 4, 0, 1, 4, 4, 4, 3, 8 ]) ]), $a([ "full", "12", $1.v10to26, 65, 65, 32, 58, 3728, $a([ 96, 176, 260, 308 ]), $a([ 2, 2, 6, 2, 4, 6, 7, 4 ]) ]), $a([ "full", "13", $1.v10to26, 69, 69, 34, 62, 4256, $a([ 104, 198, 288, 352 ]), $a([ 4, 0, 8, 1, 8, 4, 12, 4 ]) ]), $a([ "full", "14", $1.v10to26, 73, 73, 26, 46, 4651, $a([ 120, 216, 320, 384 ]), $a([ 3, 1, 4, 5, 11, 5, 11, 5 ]) ]), $a([ "full", "15", $1.v10to26, 77, 77, 26, 48, 5243, $a([ 132, 240, 360, 432 ]), $a([ 5, 1, 5, 5, 5, 7, 11, 7 ]) ]), $a([ "full", "16", $1.v10to26, 81, 81, 26, 50, 5867, $a([ 144, 280, 408, 480 ]), $a([ 5, 1, 7, 3, 15, 2, 3, 13 ]) ]), $a([ "full", "17", $1.v10to26, 85, 85, 30, 54, 6523, $a([ 168, 308, 448, 532 ]), $a([ 1, 5, 10, 1, 1, 15, 2, 17 ]) ]), $a([ "full", "18", $1.v10to26, 89, 89, 30, 56, 7211, $a([ 180, 338, 504, 588 ]), $a([ 5, 1, 9, 4, 17, 1, 2, 19 ]) ]), $a([ "full", "19", $1.v10to26, 93, 93, 30, 58, 7931, $a([ 196, 364, 546, 650 ]), $a([ 3, 4, 3, 11, 17, 4, 9, 16 ]) ]), $a([ "full", "20", $1.v10to26, 97, 97, 34, 62, 8683, $a([ 224, 416, 600, 700 ]), $a([ 3, 5, 3, 13, 15, 5, 15, 10 ]) ]), $a([ "full", "21", $1.v10to26, 101, 101, 28, 50, 9252, $a([ 224, 442, 644, 750 ]), $a([ 4, 4, 17, 0, 17, 6, 19, 6 ]) ]), $a([ "full", "22", $1.v10to26, 105, 105, 26, 50, 10068, $a([ 252, 476, 690, 816 ]), $a([ 2, 7, 17, 0, 7, 16, 34, 0 ]) ]), $a([ "full", "23", $1.v10to26, 109, 109, 30, 54, 10916, $a([ 270, 504, 750, 900 ]), $a([ 4, 5, 4, 14, 11, 14, 16, 14 ]) ]), $a([ "full", "24", $1.v10to26, 113, 113, 28, 54, 11796, $a([ 300, 560, 810, 960 ]), $a([ 6, 4, 6, 14, 11, 16, 30, 2 ]) ]), $a([ "full", "25", $1.v10to26, 117, 117, 32, 58, 12708, $a([ 312, 588, 870, 1050 ]), $a([ 8, 4, 8, 13, 7, 22, 22, 13 ]) ]), $a([ "full", "26", $1.v10to26, 121, 121, 30, 58, 13652, $a([ 336, 644, 952, 1110 ]), $a([ 10, 2, 19, 4, 28, 6, 33, 4 ]) ]), $a([ "full", "27", $1.v27to40, 125, 125, 34, 62, 14628, $a([ 360, 700, 1020, 1200 ]), $a([ 8, 4, 22, 3, 8, 26, 12, 28 ]) ]), $a([ "full", "28", $1.v27to40, 129, 129, 26, 50, 15371, $a([ 390, 728, 1050, 1260 ]), $a([ 3, 10, 3, 23, 4, 31, 11, 31 ]) ]), $a([ "full", "29", $1.v27to40, 133, 133, 30, 54, 16411, $a([ 420, 784, 1140, 1350 ]), $a([ 7, 7, 21, 7, 1, 37, 19, 26 ]) ]), $a([ "full", "30", $1.v27to40, 137, 137, 26, 52, 17483, $a([ 450, 812, 1200, 1440 ]), $a([ 5, 10, 19, 10, 15, 25, 23, 25 ]) ]), $a([ "full", "31", $1.v27to40, 141, 141, 30, 56, 18587, $a([ 480, 868, 1290, 1530 ]), $a([ 13, 3, 2, 29, 42, 1, 23, 28 ]) ]), $a([ "full", "32", $1.v27to40, 145, 145, 34, 60, 19723, $a([ 510, 924, 1350, 1620 ]), $a([ 17, 0, 10, 23, 10, 35, 19, 35 ]) ]), $a([ "full", "33", $1.v27to40, 149, 149, 30, 58, 20891, $a([ 540, 980, 1440, 1710 ]), $a([ 17, 1, 14, 21, 29, 19, 11, 46 ]) ]), $a([ "full", "34", $1.v27to40, 153, 153, 34, 62, 22091, $a([ 570, 1036, 1530, 1800 ]), $a([ 13, 6, 14, 23, 44, 7, 59, 1 ]) ]), $a([ "full", "35", $1.v27to40, 157, 157, 30, 54, 23008, $a([ 570, 1064, 1590, 1890 ]), $a([ 12, 7, 12, 26, 39, 14, 22, 41 ]) ]), $a([ "full", "36", $1.v27to40, 161, 161, 24, 50, 24272, $a([ 600, 1120, 1680, 1980 ]), $a([ 6, 14, 6, 34, 46, 10, 2, 64 ]) ]), $a([ "full", "37", $1.v27to40, 165, 165, 28, 54, 25568, $a([ 630, 1204, 1770, 2100 ]), $a([ 17, 4, 29, 14, 49, 10, 24, 46 ]) ]), $a([ "full", "38", $1.v27to40, 169, 169, 32, 58, 26896, $a([ 660, 1260, 1860, 2220 ]), $a([ 4, 18, 13, 32, 48, 14, 42, 32 ]) ]), $a([ "full", "39", $1.v27to40, 173, 173, 26, 54, 28256, $a([ 720, 1316, 1950, 2310 ]), $a([ 20, 4, 40, 7, 43, 22, 10, 67 ]) ]), $a([ "full", "40", $1.v27to40, 177, 177, 30, 58, 29648, $a([ 750, 1372, 2040, 2430 ]), $a([ 19, 6, 18, 31, 34, 34, 20, 61 ]) ]), $a([ "rmqr", "R7x43", $1.vR7x43, 7, 43, 22, 99, 104, $a([ 99, 7, 99, 10 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 0 ]) ]), $a([ "rmqr", "R7x59", $1.vR7x59, 7, 59, 20, 40, 171, $a([ 99, 9, 99, 14 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 0 ]) ]), $a([ "rmqr", "R7x77", $1.vR7x77, 7, 77, 26, 52, 261, $a([ 99, 12, 99, 22 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 0 ]) ]), $a([ "rmqr", "R7x99", $1.vR7x99, 7, 99, 24, 50, 358, $a([ 99, 16, 99, 30 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 0 ]) ]), $a([ "rmqr", "R7x139", $1.vR7x139, 7, 139, 28, 56, 545, $a([ 99, 24, 99, 44 ]), $a([ -1, -1, 1, 0, -1, -1, 2, 0 ]) ]), $a([ "rmqr", "R9x43", $1.vR9x43, 9, 43, 22, 99, 170, $a([ 99, 9, 99, 14 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 0 ]) ]), $a([ "rmqr", "R9x59", $1.vR9x59, 9, 59, 20, 40, 267, $a([ 99, 12, 99, 22 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 0 ]) ]), $a([ "rmqr", "R9x77", $1.vR9x77, 9, 77, 26, 52, 393, $a([ 99, 18, 99, 32 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 1 ]) ]), $a([ "rmqr", "R9x99", $1.vR9x99, 9, 99, 24, 50, 532, $a([ 99, 24, 99, 44 ]), $a([ -1, -1, 1, 0, -1, -1, 2, 0 ]) ]), $a([ "rmqr", "R9x139", $1.vR9x139, 9, 139, 28, 56, 797, $a([ 99, 36, 99, 66 ]), $a([ -1, -1, 1, 1, -1, -1, 3, 0 ]) ]), $a([ "rmqr", "R11x27", $1.vR11x27, 11, 27, 98, 99, 122, $a([ 99, 8, 99, 10 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 0 ]) ]), $a([ "rmqr", "R11x43", $1.vR11x43, 11, 43, 22, 99, 249, $a([ 99, 12, 99, 20 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 0 ]) ]), $a([ "rmqr", "R11x59", $1.vR11x59, 11, 59, 20, 40, 376, $a([ 99, 16, 99, 32 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 1 ]) ]), $a([ "rmqr", "R11x77", $1.vR11x77, 11, 77, 26, 52, 538, $a([ 99, 24, 99, 44 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 1 ]) ]), $a([ "rmqr", "R11x99", $1.vR11x99, 11, 99, 24, 50, 719, $a([ 99, 32, 99, 60 ]), $a([ -1, -1, 1, 1, -1, -1, 1, 1 ]) ]), $a([ "rmqr", "R11x139", $1.vR11x139, 11, 139, 28, 56, 1062, $a([ 99, 48, 99, 90 ]), $a([ -1, -1, 2, 0, -1, -1, 3, 0 ]) ]), $a([ "rmqr", "R13x27", $1.vR13x27, 13, 27, 98, 99, 172, $a([ 99, 9, 99, 14 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 0 ]) ]), $a([ "rmqr", "R13x43", $1.vR13x43, 13, 43, 22, 99, 329, $a([ 99, 14, 99, 28 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 0 ]) ]), $a([ "rmqr", "R13x59", $1.vR13x59, 13, 59, 20, 40, 486, $a([ 99, 22, 99, 40 ]), $a([ -1, -1, 1, 0, -1, -1, 2, 0 ]) ]), $a([ "rmqr", "R13x77", $1.vR13x77, 13, 77, 26, 52, 684, $a([ 99, 32, 99, 56 ]), $a([ -1, -1, 1, 1, -1, -1, 1, 1 ]) ]), $a([ "rmqr", "R13x99", $1.vR13x99, 13, 99, 24, 50, 907, $a([ 99, 40, 99, 78 ]), $a([ -1, -1, 1, 1, -1, -1, 1, 2 ]) ]), $a([ "rmqr", "R13x139", $1.vR13x139, 13, 139, 28, 56, 1328, $a([ 99, 60, 99, 112 ]), $a([ -1, -1, 2, 1, -1, -1, 2, 2 ]) ]), $a([ "rmqr", "R15x43", $1.vR15x43, 15, 43, 22, 99, 409, $a([ 99, 18, 99, 36 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 1 ]) ]), $a([ "rmqr", "R15x59", $1.vR15x59, 15, 59, 20, 40, 596, $a([ 99, 26, 99, 48 ]), $a([ -1, -1, 1, 0, -1, -1, 2, 0 ]) ]), $a([ "rmqr", "R15x77", $1.vR15x77, 15, 77, 26, 52, 830, $a([ 99, 36, 99, 72 ]), $a([ -1, -1, 1, 1, -1, -1, 2, 1 ]) ]), $a([ "rmqr", "R15x99", $1.vR15x99, 15, 99, 24, 50, 1095, $a([ 99, 48, 99, 88 ]), $a([ -1, -1, 2, 0, -1, -1, 4, 0 ]) ]), $a([ "rmqr", "R15x139", $1.vR15x139, 15, 139, 28, 56, 1594, $a([ 99, 72, 99, 130 ]), $a([ -1, -1, 2, 1, -1, -1, 1, 4 ]) ]), $a([ "rmqr", "R17x43", $1.vR17x43, 17, 43, 22, 99, 489, $a([ 99, 22, 99, 40 ]), $a([ -1, -1, 1, 0, -1, -1, 1, 1 ]) ]), $a([ "rmqr", "R17x59", $1.vR17x59, 17, 59, 20, 40, 706, $a([ 99, 32, 99, 60 ]), $a([ -1, -1, 2, 0, -1, -1, 2, 0 ]) ]), $a([ "rmqr", "R17x77", $1.vR17x77, 17, 77, 26, 52, 976, $a([ 99, 44, 99, 84 ]), $a([ -1, -1, 2, 0, -1, -1, 1, 2 ]) ]), $a([ "rmqr", "R17x99", $1.vR17x99, 17, 99, 24, 50, 1283, $a([ 99, 60, 99, 104 ]), $a([ -1, -1, 2, 1, -1, -1, 4, 0 ]) ]), $a([ "rmqr", "R17x139", $1.vR17x139, 17, 139, 28, 56, 1860, $a([ 99, 80, 99, 156 ]), $a([ -1, -1, 4, 0, -1, -1, 2, 4 ]) ]) ]); - $k[$j++] = "eclval"; - $search("LMQH", $1.eclevel); - $j--; - var _Iz = $k[--$j]; - var _J0 = $k[--$j]; - $k[$j++] = _Iz.length; - $k[$j++] = _J0; - $j--; - var _J1 = $k[--$j]; - var _J2 = $k[--$j]; - $k[$j++] = _J1; - $k[$j++] = _J2; - $j--; - var _J3 = $k[--$j]; - $1[$k[--$j]] = _J3; - for (var _J7 = 0, _J6 = $1.metrics.length - 1; _J7 <= _J6; _J7 += 1) { - $1.i = _J7; - $1.m = $get($1.metrics, $1.i); - $1.frmt = $get($1.m, 0); - $1.vers = $get($1.m, 1); - $1.vergrp = $get($1.m, 2); - $1.verind = $1.i - 44; - $1.rows = $get($1.m, 3); - $1.cols = $get($1.m, 4); - $1.asp2 = $get($1.m, 5); - $1.asp3 = $get($1.m, 6); - $1.nmod = $get($1.m, 7); - $1.ncws = ~~($1.nmod / 8); - $1.rbit = $1.nmod % 8; - $1.lc4b = false; - if ($eq($1.vers, "M1") || $eq($1.vers, "M3")) { - $1.ncws = $1.ncws + 1; - $1.rbit = 0; - $1.lc4b = true; - } - $1.ecws = $get($get($1.m, 8), $1.eclval); - $1.dcws = $f($1.ncws - $1.ecws); - var _Jf = $1.lc4b ? 4 : 0; - $1.dmod = $f($1.dcws * 8 - _Jf); - $1.ecb1 = $get($get($1.m, 9), $1.eclval * 2); - $1.ecb2 = $get($get($1.m, 9), $f($1.eclval * 2 + 1)); - $1.okay = true; - if ($ne($1.format, $1.frmt)) { - $1.okay = false; - } - if ($eq($1.frmt, "micro") && $1.fnc1first) { - $1.okay = false; - } - if ($ne($1.version, "unset") && $ne($1.version, $1.vers)) { - $1.okay = false; - } - if ($1.ecb1 == -1 || $1.ecb2 == -1) { - $1.okay = false; - } - $1.verbits = $get($1.msgbits, $1.vergrp); - if ($1.verbits == -1) { - $1.okay = false; - } else { - if ($1.verbits.length > $1.dmod) { - $1.okay = false; - } - } - $1.term = $geti("000000000", 0, $get($1.termlens, $1.vergrp)); - if ($1.okay) { - break; - } - } - if (!$1.okay) { - $k[$j++] = "bwipp.qrcodeNoValidSymbol"; - $k[$j++] = "No valid symbol available"; - $0.raiseerror(); - } - $1.format = $1.frmt; - $1.version = $1.vers; - $1.msgbits = $1.verbits; - $1.dcpb = ~~($1.dcws / $f($1.ecb1 + $1.ecb2)); - $1.ecpb = ~~($1.ncws / $f($1.ecb1 + $1.ecb2)) - $1.dcpb; - var _KJ = $1.term; - var _KK = $1.dmod; - var _KL = $1.msgbits; - var _KM = $1.term; - var _KN = _KM.length; - var _KO = $f(_KK - _KL.length); - if ($f(_KK - _KL.length) > _KM.length) { - var _ = _KN; - _KN = _KO; - _KO = _; - } - $1.term = $geti(_KJ, 0, _KO); - var _KS = $s($1.msgbits.length + $1.term.length); - $puti(_KS, 0, $1.msgbits); - $puti(_KS, $1.msgbits.length, $1.term); - $1.msgbits = _KS; - $1.pad = $s($1.dmod); - for (var _Ka = 0, _KZ = $1.pad.length - 1; _Ka <= _KZ; _Ka += 1) { - $put($1.pad, _Ka, 48); - } - $puti($1.pad, 0, $1.msgbits); - $1.padstrs = $a([ "11101100", "00010001" ]); - $1.padnum = 0; - var _Ki = $1.lc4b ? 5 : 1; - for (var _Kk = ~~(Math.ceil($1.msgbits.length / 8) * 8), _Kj = $f($1.dmod - _Ki); _Kk <= _Kj; _Kk += 8) { - $puti($1.pad, _Kk, $get($1.padstrs, $1.padnum)); - $1.padnum = ($1.padnum + 1) % 2; - } - $1.cws = $a($1.dcws); - for (var _Ku = 0, _Kt = $1.cws.length - 1; _Ku <= _Kt; _Ku += 1) { - $1.c = _Ku; - $1.bpcw = 8; - if ($1.lc4b && $1.c == $1.cws.length - 1) { - $1.bpcw = 4; - } - $1.cwb = $geti($1.pad, $1.c * 8, $1.bpcw); - $1.cw = 0; - for (var _L4 = 0, _L3 = $1.bpcw - 1; _L4 <= _L3; _L4 += 1) { - $1.i = _L4; - $1.cw = $f($1.cw + ~~Math.pow(2, $1.bpcw - $1.i - 1) * $f($get($1.cwb, $1.i) - 48)); - } - $put($1.cws, $1.c, $1.cw); - } - if ($1.lc4b) { - var _LF = $1.cws; - var _LG = $1.cws; - $put(_LF, _LG.length - 1, $get(_LF, _LG.length - 1) << 4); - } - var _LJ = $get($1.options, "debugcws") !== undefined; - if (_LJ) { - $k[$j++] = "bwipp.debugcws"; - $k[$j++] = $1.cws; - $0.raiseerror(); - } - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _LL = 0, _LM = 255; _LL < _LM; _LL++) { - var _LN = $k[--$j]; - var _LO = _LN * 2; - $k[$j++] = _LN; - $k[$j++] = _LO; - if (_LO >= 256) { - var _LP = $k[--$j]; - $k[$j++] = _LP ^ 285; - } - } - $1.rsalog = $a(); - $1.rslog = $a(256); - for (var _LS = 1; _LS <= 255; _LS += 1) { - $put($1.rslog, $get($1.rsalog, _LS), _LS); - } + } //#21893 + } //#21893 + $1.cws = $geti($1.cws, 0, $1.j); //#21895 + } //#21895 + $1.i = 0; //#21900 + for (;;) { //#21920 + $1.m = $get($1.metrics, $1.i); //#21902 + $1.vers = $get($1.m, 0); //#21903 + $1.rows = $get($1.m, 1); //#21904 + $1.cols = $get($1.m, 2); //#21905 + $1.dcol = $get($1.m, 3); //#21906 + $1.dcws = $get($1.m, 4); //#21907 + $1.rscw = $get($1.m, 5); //#21908 + $1.rsbl = $get($1.m, 6); //#21909 + $1.riso = $get($1.m, 7); //#21910 + $1.risi = $get($1.m, 8); //#21911 + $1.risl = $get($1.m, 9); //#21912 + $1.dcpb = ~~($1.dcws / $1.rsbl); //#21913 + $1.ecpb = ~~($1.rscw / $1.rsbl); //#21914 + $1.okay = true; //#21915 + if ($ne($1.version, "unset") && $ne($1.version, $1.vers)) { //#21916 + $1.okay = false; //#21916 + } //#21916 + if ($1.cws.length > $1.dcws) { //#21917 + $1.okay = false; //#21917 + } //#21917 + if ($1.okay) { //#21918 + break; //#21918 + } //#21918 + $1.i = $1.i + 1; //#21919 + } //#21919 + if (!$1.stype) { //#21926 + $k[$j++] = Infinity; //#21924 + $aload($1.cws); //#21924 + for (var _Ib = 0, _Ic = $f($1.dcws - $1.cws.length); _Ib < _Ic; _Ib++) { //#21924 + $k[$j++] = 129; //#21924 + } //#21924 + $1.cws = $a(); //#21924 + } else { //#21926 + $k[$j++] = Infinity; //#21926 + for (var _Ig = 0, _Ih = $f($1.dcws - $1.cws.length); _Ig < _Ih; _Ig++) { //#21926 + $k[$j++] = 0; //#21926 + } //#21926 + $aload($1.cws); //#21926 + $1.cws = $a(); //#21926 + } //#21926 + var _Il = $get($1.options, 'debugcws') !== undefined; //#21929 + if (_Il) { //#21929 + $k[$j++] = 'bwipp.debugcws'; //#21929 + $k[$j++] = $1.cws; //#21929 + $0.raiseerror(); //#21929 + } //#21929 + $1.cwbs = $a($1.rsbl); //#21932 + $1.ecbs = $a($1.rsbl); //#21933 + for (var _It = 0, _Is = $f($1.rsbl - 1); _It <= _Is; _It += 1) { //#21942 + $1.i = _It; //#21935 + $1.cwb = $a($1.dcpb); //#21936 + for (var _Iy = 0, _Ix = $1.dcpb - 1; _Iy <= _Ix; _Iy += 1) { //#21940 + $1.j = _Iy; //#21938 + $put($1.cwb, $1.j, $get($1.cws, $f(($1.j * $1.rsbl) + $1.i))); //#21939 + } //#21939 + $put($1.cwbs, $1.i, $1.cwb); //#21941 + } //#21941 + var _JA = $1.stype ? 32 : 256; //#21945 + $1.gf = _JA; //#21945 + $1['gf-1'] = $1.gf - 1; //#21946 + var _JD = $1.stype ? 37 : 301; //#21947 + $1.pm = _JD; //#21947 + $k[$j++] = Infinity; //#21948 + $k[$j++] = 1; //#21948 + for (var _JF = 0, _JG = $1["gf-1"]; _JF < _JG; _JF++) { //#21948 + var _JH = $k[--$j]; //#21948 + var _JI = _JH * 2; //#21948 + $k[$j++] = _JH; //#21948 + $k[$j++] = _JI; //#21948 + if (_JI >= $1.gf) { //#21948 + var _JL = $k[--$j]; //#21948 + $k[$j++] = _JL ^ $1.pm; //#21948 + } //#21948 + } //#21948 + $1.rsalog = $a(); //#21948 + $1.rslog = $a($1.gf); //#21949 + for (var _JR = 1, _JQ = $1["gf-1"]; _JR <= _JQ; _JR += 1) { //#21950 + $put($1.rslog, $get($1.rsalog, _JR), _JR); //#21950 + } //#21950 $1.rsprod = function() { - var _LW = $k[--$j]; - var _LX = $k[--$j]; - $k[$j++] = _LX; - $k[$j++] = _LW; - if (_LW != 0 && _LX != 0) { - var _La = $get($1.rslog, $k[--$j]); - var _Lf = $get($1.rsalog, $f(_La + $get($1.rslog, $k[--$j])) % 255); - $k[$j++] = _Lf; - } else { - $j -= 2; - $k[$j++] = 0; - } - }; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _Lh = 0, _Li = $1.ecpb; _Lh < _Li; _Lh++) { - $k[$j++] = 0; - } - $1.coeffs = $a(); - for (var _Lm = 0, _Ll = $1.ecpb - 1; _Lm <= _Ll; _Lm += 1) { - $1.i = _Lm; - $put($1.coeffs, $1.i + 1, $get($1.coeffs, $1.i)); - for (var _Lt = $1.i; _Lt >= 1; _Lt -= 1) { - $1.j = _Lt; - $k[$j++] = $1.coeffs; - $k[$j++] = $1.j; - $k[$j++] = $get($1.coeffs, $1.j - 1); - $k[$j++] = $get($1.coeffs, $1.j); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _M5 = $k[--$j]; - var _M6 = $k[--$j]; - var _M7 = $k[--$j]; - $put($k[--$j], _M7, $xo(_M6, _M5)); - } - $k[$j++] = $1.coeffs; - $k[$j++] = 0; - $k[$j++] = $get($1.coeffs, 0); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _MF = $k[--$j]; - var _MG = $k[--$j]; - $put($k[--$j], _MG, _MF); - } - $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); - $1.rscodes = function() { - $1.rscws = $k[--$j]; - $1.rsnd = $1.rscws.length; - $k[$j++] = Infinity; - $forall($1.rscws); - for (var _MP = 0, _MQ = $1.ecpb; _MP < _MQ; _MP++) { - $k[$j++] = 0; - } - $1.rscws = $a(); - for (var _MU = 0, _MT = $1.rsnd - 1; _MU <= _MT; _MU += 1) { - $1.m = _MU; - $1.k = $get($1.rscws, $1.m); - for (var _Ma = 0, _MZ = $1.ecpb - 1; _Ma <= _MZ; _Ma += 1) { - $1.j = _Ma; - $k[$j++] = $1.rscws; - $k[$j++] = $1.m + $1.j + 1; - $k[$j++] = $get($1.coeffs, $1.ecpb - $1.j - 1); - $k[$j++] = $1.k; - $1.rsprod(); - var _Mn = $k[--$j]; - var _Mo = $k[--$j]; - $put($k[--$j], _Mo, $xo(_Mn, $get($1.rscws, $1.m + $1.j + 1))); - } - } - $k[$j++] = $geti($1.rscws, $1.rsnd, $1.ecpb); - }; - $1.dcwsb = $a($f($1.ecb1 + $1.ecb2)); - $1.ecwsb = $a($f($1.ecb1 + $1.ecb2)); - for (var _N2 = 0, _N1 = $f($1.ecb1 - 1); _N2 <= _N1; _N2 += 1) { - $1.i = _N2; - $put($1.dcwsb, $1.i, $geti($1.cws, $1.i * $1.dcpb, $1.dcpb)); - $k[$j++] = $1.ecwsb; - $k[$j++] = $1.i; - $k[$j++] = $get($1.dcwsb, $1.i); - $1.rscodes(); - var _NF = $k[--$j]; - var _NG = $k[--$j]; - $put($k[--$j], _NG, _NF); - } - for (var _NK = 0, _NJ = $f($1.ecb2 - 1); _NK <= _NJ; _NK += 1) { - $1.i = _NK; - $put($1.dcwsb, $f($1.ecb1 + $1.i), $geti($1.cws, $f($1.ecb1 * $1.dcpb + $1.i * ($1.dcpb + 1)), $1.dcpb + 1)); - $k[$j++] = $1.ecwsb; - $k[$j++] = $f($1.ecb1 + $1.i); - $k[$j++] = $get($1.dcwsb, $f($1.ecb1 + $1.i)); - $1.rscodes(); - var _Nc = $k[--$j]; - var _Nd = $k[--$j]; - $put($k[--$j], _Nd, _Nc); - } - $1.cws = $a($1.ncws); - $1.cw = 0; - for (var _Nj = 0, _Ni = $1.dcpb; _Nj <= _Ni; _Nj += 1) { - $1.i = _Nj; - for (var _Nn = 0, _Nm = $f($f($1.ecb1 + $1.ecb2) - 1); _Nn <= _Nm; _Nn += 1) { - $1.j = _Nn; - if ($1.i < $get($1.dcwsb, $1.j).length) { - $put($1.cws, $1.cw, $get($get($1.dcwsb, $1.j), $1.i)); - $1.cw = $1.cw + 1; - } - } - } - for (var _O2 = 0, _O1 = $1.ecpb - 1; _O2 <= _O1; _O2 += 1) { - $1.i = _O2; - for (var _O6 = 0, _O5 = $f($f($1.ecb1 + $1.ecb2) - 1); _O6 <= _O5; _O6 += 1) { - $1.j = _O6; - $put($1.cws, $1.cw, $get($get($1.ecwsb, $1.j), $1.i)); - $1.cw = $1.cw + 1; - } - } - if ($1.rbit > 0) { - $1.pad = $a($1.cws.length + 1); - $puti($1.pad, 0, $1.cws); - $put($1.pad, $1.pad.length - 1, 0); - $1.cws = $1.pad; - } - if ($1.lc4b) { - var _OO = $1.cws; - var _OP = $1.dcws; - $put(_OO, $f(_OP - 1), $get(_OO, $f(_OP - 1)) >>> 4); - for (var _OU = $f($1.dcws - 1), _OT = $1.ncws - 2; _OU <= _OT; _OU += 1) { - $1.i = _OU; - $put($1.cws, $1.i, ($get($1.cws, $1.i) & 15) << 4); - $put($1.cws, $1.i, $get($1.cws, $1.i + 1) >>> 4 & 15 | $get($1.cws, $1.i)); - } - $put($1.cws, $1.ncws - 1, ($get($1.cws, $1.ncws - 1) & 15) << 4); - } - var _Oo = $get($1.options, "debugecc") !== undefined; - if (_Oo) { - $k[$j++] = "bwipp.debugecc"; - $k[$j++] = $1.cws; - $0.raiseerror(); - } - $k[$j++] = Infinity; - for (var _Os = 0, _Ot = $1.rows * $1.cols; _Os < _Ot; _Os++) { - $k[$j++] = -1; - } - $1.pixs = $a(); - $1.qmv = function() { - var _Ow = $k[--$j]; - var _Ox = $k[--$j]; - $k[$j++] = $f(_Ox + _Ow * $1.cols); - }; - if ($eq($1.format, "full")) { - for (var _P1 = 8, _P0 = $f($1.cols - 9); _P1 <= _P0; _P1 += 1) { - $1.i = _P1; - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = 6; - $1.qmv(); - var _P5 = $k[--$j]; - $put($k[--$j], _P5, ($1.i + 1) % 2); - $k[$j++] = $1.pixs; - $k[$j++] = 6; - $k[$j++] = $1.i; - $1.qmv(); - var _PA = $k[--$j]; - $put($k[--$j], _PA, ($1.i + 1) % 2); - } - } - if ($eq($1.format, "micro")) { - for (var _PF = 8, _PE = $f($1.cols - 1); _PF <= _PE; _PF += 1) { - $1.i = _PF; - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = 0; - $1.qmv(); - var _PJ = $k[--$j]; - $put($k[--$j], _PJ, ($1.i + 1) % 2); - $k[$j++] = $1.pixs; - $k[$j++] = 0; - $k[$j++] = $1.i; - $1.qmv(); - var _PO = $k[--$j]; - $put($k[--$j], _PO, ($1.i + 1) % 2); - } - } - if ($eq($1.format, "rmqr")) { - for (var _PT = 3, _PS = $f($1.cols - 4); _PT <= _PS; _PT += 1) { - $1.i = _PT; - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = 0; - $1.qmv(); - var _PX = $k[--$j]; - $put($k[--$j], _PX, ($1.i + 1) % 2); - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = $f($1.rows - 1); - $1.qmv(); - var _Pd = $k[--$j]; - $put($k[--$j], _Pd, ($1.i + 1) % 2); - } - for (var _Ph = 3, _Pg = $f($1.rows - 4); _Ph <= _Pg; _Ph += 1) { - $1.i = _Ph; - $k[$j++] = $1.pixs; - $k[$j++] = 0; - $k[$j++] = $1.i; - $1.qmv(); - var _Pl = $k[--$j]; - $put($k[--$j], _Pl, ($1.i + 1) % 2); - $k[$j++] = $1.pixs; - $k[$j++] = $f($1.cols - 1); - $k[$j++] = $1.i; - $1.qmv(); - var _Pr = $k[--$j]; - $put($k[--$j], _Pr, ($1.i + 1) % 2); - } - for (var _Py = $f($1.asp2 - 1), _Pz = $f($1.asp3 - $1.asp2), _Px = $f($1.cols - 13); _Pz < 0 ? _Py >= _Px : _Py <= _Px; _Py += _Pz) { - $1.i = _Py; - for (var _Q2 = 3, _Q1 = $f($1.rows - 4); _Q2 <= _Q1; _Q2 += 1) { - $1.j = _Q2; - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.qmv(); - var _Q7 = $k[--$j]; - $put($k[--$j], _Q7, ($1.j + 1) % 2); - } - } - } - $1.fpat = $a([ $a([ 1, 1, 1, 1, 1, 1, 1, 0 ]), $a([ 1, 0, 0, 0, 0, 0, 1, 0 ]), $a([ 1, 0, 1, 1, 1, 0, 1, 0 ]), $a([ 1, 0, 1, 1, 1, 0, 1, 0 ]), $a([ 1, 0, 1, 1, 1, 0, 1, 0 ]), $a([ 1, 0, 0, 0, 0, 0, 1, 0 ]), $a([ 1, 1, 1, 1, 1, 1, 1, 0 ]), $a([ 0, 0, 0, 0, 0, 0, 0, 0 ]) ]); - $1.fsubpat = $a([ $a([ 1, 1, 1, 1, 1, 9, 9, 9 ]), $a([ 1, 0, 0, 0, 1, 9, 9, 9 ]), $a([ 1, 0, 1, 0, 1, 9, 9, 9 ]), $a([ 1, 0, 0, 0, 1, 9, 9, 9 ]), $a([ 1, 1, 1, 1, 1, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]) ]); - $1.fcorpat = $a([ $a([ 1, 1, 1, 9, 9, 9, 9, 9 ]), $a([ 1, 0, 9, 9, 9, 9, 9, 9 ]), $a([ 1, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]) ]); - $1.fnullpat = $a([ $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9, 9, 9, 9 ]) ]); - var _Qy = new Map([ [ "full", $a([ $1.fpat, $1.fpat, $1.fpat, $1.fnullpat ]) ], [ "micro", $a([ $1.fpat, $1.fnullpat, $1.fnullpat, $1.fnullpat ]) ], [ "rmqr", $a([ $1.fpat, $1.fcorpat, $1.fcorpat, $1.fsubpat ]) ] ]); - $1.fpats = $get(_Qy, $1.format); - for (var _R1 = 0; _R1 <= 7; _R1 += 1) { - $1.y = _R1; - for (var _R2 = 0; _R2 <= 7; _R2 += 1) { - $1.x = _R2; - $1.fpb0 = $get($get($get($1.fpats, 0), $1.y), $1.x); - $1.fpb1 = $get($get($get($1.fpats, 1), $1.y), $1.x); - $1.fpb2 = $get($get($get($1.fpats, 2), $1.y), $1.x); - $1.fpb3 = $get($get($get($1.fpats, 3), $1.y), $1.x); - if ($1.fpb0 != 9 && $1.y < $1.rows) { - $k[$j++] = $1.pixs; - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $1.qmv(); - var _RY = $k[--$j]; - $put($k[--$j], _RY, $1.fpb0); - } - if ($1.fpb1 != 9) { - $k[$j++] = $1.pixs; - $k[$j++] = $f($f($1.cols - $1.x) - 1); - $k[$j++] = $1.y; - $1.qmv(); - var _Rg = $k[--$j]; - $put($k[--$j], _Rg, $1.fpb1); - } - if ($1.fpb2 != 9) { - $k[$j++] = $1.pixs; - $k[$j++] = $1.x; - $k[$j++] = $f($f($1.rows - $1.y) - 1); - $1.qmv(); - var _Ro = $k[--$j]; - $put($k[--$j], _Ro, $1.fpb2); - } - if ($1.fpb3 != 9) { - $k[$j++] = $1.pixs; - $k[$j++] = $f($f($1.cols - $1.x) - 1); - $k[$j++] = $f($f($1.rows - $1.y) - 1); - $1.qmv(); - var _Rx = $k[--$j]; - $put($k[--$j], _Rx, $1.fpb3); - } - } - } - $1.putalgnpat = function() { - $1.py = $k[--$j]; - $1.px = $k[--$j]; - for (var _S1 = 0; _S1 <= 4; _S1 += 1) { - $1.pb = _S1; - for (var _S2 = 0; _S2 <= 4; _S2 += 1) { - $1.pa = _S2; - $1.algnb = $get($get($1.algnpat, $1.pb), $1.pa); - if ($1.algnb != 9) { - $k[$j++] = $1.pixs; - $k[$j++] = $f($1.px + $1.pa); - $k[$j++] = $f($1.py + $1.pb); - $1.qmv(); - var _SF = $k[--$j]; - $put($k[--$j], _SF, $1.algnb); - } - } - } - }; - if ($eq($1.format, "full")) { - $1.algnpat = $a([ $a([ 1, 1, 1, 1, 1 ]), $a([ 1, 0, 0, 0, 1 ]), $a([ 1, 0, 1, 0, 1 ]), $a([ 1, 0, 0, 0, 1 ]), $a([ 1, 1, 1, 1, 1 ]) ]); - for (var _ST = $f($1.asp2 - 2), _SU = $f($1.asp3 - $1.asp2), _SS = $f($1.cols - 13); _SU < 0 ? _ST >= _SS : _ST <= _SS; _ST += _SU) { - $1.i = _ST; - $k[$j++] = $1.i; - $k[$j++] = 4; - $1.putalgnpat(); - $k[$j++] = 4; - $k[$j++] = $1.i; - $1.putalgnpat(); - } - for (var _Sc = $f($1.asp2 - 2), _Sd = $f($1.asp3 - $1.asp2), _Sb = $f($1.cols - 9); _Sd < 0 ? _Sc >= _Sb : _Sc <= _Sb; _Sc += _Sd) { - $1.x = _Sc; - for (var _Sj = $f($1.asp2 - 2), _Sk = $f($1.asp3 - $1.asp2), _Si = $f($1.rows - 9); _Sk < 0 ? _Sj >= _Si : _Sj <= _Si; _Sj += _Sk) { - $1.y = _Sj; - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $1.putalgnpat(); - } - } - } - if ($eq($1.format, "rmqr")) { - $1.algnpat = $a([ $a([ 1, 1, 1, 9, 9 ]), $a([ 1, 0, 1, 9, 9 ]), $a([ 1, 1, 1, 9, 9 ]), $a([ 9, 9, 9, 9, 9 ]), $a([ 9, 9, 9, 9, 9 ]) ]); - for (var _Sz = $f($1.asp2 - 2), _T0 = $f($1.asp3 - $1.asp2), _Sy = $f($1.cols - 13); _T0 < 0 ? _Sz >= _Sy : _Sz <= _Sy; _Sz += _T0) { - $1.i = _Sz; - $k[$j++] = $1.i; - $k[$j++] = 0; - $1.putalgnpat(); - $k[$j++] = $1.i; - $k[$j++] = $f($1.rows - 3); - $1.putalgnpat(); - } - } - var _W1 = new Map([ [ "full", $a([ $a([ $a([ 0, 8 ]), $a([ 8, $f($1.cols - 1) ]) ]), $a([ $a([ 1, 8 ]), $a([ 8, $f($1.cols - 2) ]) ]), $a([ $a([ 2, 8 ]), $a([ 8, $f($1.cols - 3) ]) ]), $a([ $a([ 3, 8 ]), $a([ 8, $f($1.cols - 4) ]) ]), $a([ $a([ 4, 8 ]), $a([ 8, $f($1.cols - 5) ]) ]), $a([ $a([ 5, 8 ]), $a([ 8, $f($1.cols - 6) ]) ]), $a([ $a([ 7, 8 ]), $a([ 8, $f($1.cols - 7) ]) ]), $a([ $a([ 8, 8 ]), $a([ $f($1.cols - 8), 8 ]) ]), $a([ $a([ 8, 7 ]), $a([ $f($1.cols - 7), 8 ]) ]), $a([ $a([ 8, 5 ]), $a([ $f($1.cols - 6), 8 ]) ]), $a([ $a([ 8, 4 ]), $a([ $f($1.cols - 5), 8 ]) ]), $a([ $a([ 8, 3 ]), $a([ $f($1.cols - 4), 8 ]) ]), $a([ $a([ 8, 2 ]), $a([ $f($1.cols - 3), 8 ]) ]), $a([ $a([ 8, 1 ]), $a([ $f($1.cols - 2), 8 ]) ]), $a([ $a([ 8, 0 ]), $a([ $f($1.cols - 1), 8 ]) ]) ]) ], [ "micro", $a([ $a([ $a([ 1, 8 ]) ]), $a([ $a([ 2, 8 ]) ]), $a([ $a([ 3, 8 ]) ]), $a([ $a([ 4, 8 ]) ]), $a([ $a([ 5, 8 ]) ]), $a([ $a([ 6, 8 ]) ]), $a([ $a([ 7, 8 ]) ]), $a([ $a([ 8, 8 ]) ]), $a([ $a([ 8, 7 ]) ]), $a([ $a([ 8, 6 ]) ]), $a([ $a([ 8, 5 ]) ]), $a([ $a([ 8, 4 ]) ]), $a([ $a([ 8, 3 ]) ]), $a([ $a([ 8, 2 ]) ]), $a([ $a([ 8, 1 ]) ]) ]) ], [ "rmqr", $a([ $a([ $a([ 11, 3 ]), $a([ $f($1.cols - 3), $f($1.rows - 6) ]) ]), $a([ $a([ 11, 2 ]), $a([ $f($1.cols - 4), $f($1.rows - 6) ]) ]), $a([ $a([ 11, 1 ]), $a([ $f($1.cols - 5), $f($1.rows - 6) ]) ]), $a([ $a([ 10, 5 ]), $a([ $f($1.cols - 6), $f($1.rows - 2) ]) ]), $a([ $a([ 10, 4 ]), $a([ $f($1.cols - 6), $f($1.rows - 3) ]) ]), $a([ $a([ 10, 3 ]), $a([ $f($1.cols - 6), $f($1.rows - 4) ]) ]), $a([ $a([ 10, 2 ]), $a([ $f($1.cols - 6), $f($1.rows - 5) ]) ]), $a([ $a([ 10, 1 ]), $a([ $f($1.cols - 6), $f($1.rows - 6) ]) ]), $a([ $a([ 9, 5 ]), $a([ $f($1.cols - 7), $f($1.rows - 2) ]) ]), $a([ $a([ 9, 4 ]), $a([ $f($1.cols - 7), $f($1.rows - 3) ]) ]), $a([ $a([ 9, 3 ]), $a([ $f($1.cols - 7), $f($1.rows - 4) ]) ]), $a([ $a([ 9, 2 ]), $a([ $f($1.cols - 7), $f($1.rows - 5) ]) ]), $a([ $a([ 9, 1 ]), $a([ $f($1.cols - 7), $f($1.rows - 6) ]) ]), $a([ $a([ 8, 5 ]), $a([ $f($1.cols - 8), $f($1.rows - 2) ]) ]), $a([ $a([ 8, 4 ]), $a([ $f($1.cols - 8), $f($1.rows - 3) ]) ]), $a([ $a([ 8, 3 ]), $a([ $f($1.cols - 8), $f($1.rows - 4) ]) ]), $a([ $a([ 8, 2 ]), $a([ $f($1.cols - 8), $f($1.rows - 5) ]) ]), $a([ $a([ 8, 1 ]), $a([ $f($1.cols - 8), $f($1.rows - 6) ]) ]) ]) ] ]); - $1.formatmap = $get(_W1, $1.format); - $forall($1.formatmap, function() { - $forall($k[--$j], function() { - $forall($k[--$j]); - $1.qmv(); - $put($1.pixs, $k[--$j], 1); - }); - }); - if ($eq($1.format, "full") && $1.cols >= 45) { - $1.versionmap = $a([ $a([ $a([ $f($1.cols - 9), 5 ]), $a([ 5, $f($1.cols - 9) ]) ]), $a([ $a([ $f($1.cols - 10), 5 ]), $a([ 5, $f($1.cols - 10) ]) ]), $a([ $a([ $f($1.cols - 11), 5 ]), $a([ 5, $f($1.cols - 11) ]) ]), $a([ $a([ $f($1.cols - 9), 4 ]), $a([ 4, $f($1.cols - 9) ]) ]), $a([ $a([ $f($1.cols - 10), 4 ]), $a([ 4, $f($1.cols - 10) ]) ]), $a([ $a([ $f($1.cols - 11), 4 ]), $a([ 4, $f($1.cols - 11) ]) ]), $a([ $a([ $f($1.cols - 9), 3 ]), $a([ 3, $f($1.cols - 9) ]) ]), $a([ $a([ $f($1.cols - 10), 3 ]), $a([ 3, $f($1.cols - 10) ]) ]), $a([ $a([ $f($1.cols - 11), 3 ]), $a([ 3, $f($1.cols - 11) ]) ]), $a([ $a([ $f($1.cols - 9), 2 ]), $a([ 2, $f($1.cols - 9) ]) ]), $a([ $a([ $f($1.cols - 10), 2 ]), $a([ 2, $f($1.cols - 10) ]) ]), $a([ $a([ $f($1.cols - 11), 2 ]), $a([ 2, $f($1.cols - 11) ]) ]), $a([ $a([ $f($1.cols - 9), 1 ]), $a([ 1, $f($1.cols - 9) ]) ]), $a([ $a([ $f($1.cols - 10), 1 ]), $a([ 1, $f($1.cols - 10) ]) ]), $a([ $a([ $f($1.cols - 11), 1 ]), $a([ 1, $f($1.cols - 11) ]) ]), $a([ $a([ $f($1.cols - 9), 0 ]), $a([ 0, $f($1.cols - 9) ]) ]), $a([ $a([ $f($1.cols - 10), 0 ]), $a([ 0, $f($1.cols - 10) ]) ]), $a([ $a([ $f($1.cols - 11), 0 ]), $a([ 0, $f($1.cols - 11) ]) ]) ]); - } else { - $1.versionmap = $a([]); - } - var _Xf = $1.versionmap; - for (var _Xg = 0, _Xh = _Xf.length; _Xg < _Xh; _Xg++) { - $forall($get(_Xf, _Xg), function() { - $forall($k[--$j]); - $1.qmv(); - $put($1.pixs, $k[--$j], 0); - }); - } - if ($eq($1.format, "full")) { - $k[$j++] = $1.pixs; - $k[$j++] = 8; - $k[$j++] = $f($1.rows - 8); - $1.qmv(); - var _Xp = $k[--$j]; - $put($k[--$j], _Xp, 0); - } - var _Y9 = $a([ function() { - var _Xr = $k[--$j]; - var _Xs = $k[--$j]; - $k[$j++] = $f(_Xs + _Xr) % 2; + var _JV = $k[--$j]; //#21952 + var _JW = $k[--$j]; //#21952 + $k[$j++] = _JW; //#21956 + $k[$j++] = _JV; //#21956 + if ((_JV != 0) && (_JW != 0)) { //#21955 + var _JZ = $get($1.rslog, $k[--$j]); //#21953 + var _Jf = $get($1.rsalog, $f(_JZ + $get($1.rslog, $k[--$j])) % $1["gf-1"]); //#21953 + $k[$j++] = _Jf; //#21953 + } else { //#21955 + $j -= 2; //#21955 + $k[$j++] = 0; //#21955 + } //#21955 + }; //#21957 + $k[$j++] = Infinity; //#21960 + $k[$j++] = 1; //#21960 + for (var _Jh = 0, _Ji = $1.ecpb; _Jh < _Ji; _Jh++) { //#21960 + $k[$j++] = 0; //#21960 + } //#21960 + $1.coeffs = $a(); //#21960 + for (var _Jm = 0, _Jl = $1.ecpb - 1; _Jm <= _Jl; _Jm += 1) { //#21969 + $1.i = _Jm; //#21962 + $put($1.coeffs, $1.i + 1, $get($1.coeffs, $1.i)); //#21963 + for (var _Jt = $1.i; _Jt >= 1; _Jt -= 1) { //#21967 + $1.j = _Jt; //#21965 + $k[$j++] = $1.coeffs; //#21966 + $k[$j++] = $1.j; //#21966 + $k[$j++] = $get($1.coeffs, $1.j - 1); //#21966 + $k[$j++] = $get($1.coeffs, $1.j); //#21966 + $k[$j++] = $get($1.rsalog, $1.i); //#21966 + $1.rsprod(); //#21966 + var _K5 = $k[--$j]; //#21966 + var _K6 = $k[--$j]; //#21966 + var _K7 = $k[--$j]; //#21966 + $put($k[--$j], _K7, $xo(_K6, _K5)); //#21966 + } //#21966 + $k[$j++] = $1.coeffs; //#21968 + $k[$j++] = 0; //#21968 + $k[$j++] = $get($1.coeffs, 0); //#21968 + $k[$j++] = $get($1.rsalog, $1.i); //#21968 + $1.rsprod(); //#21968 + var _KF = $k[--$j]; //#21968 + var _KG = $k[--$j]; //#21968 + $put($k[--$j], _KG, _KF); //#21968 + } //#21968 + $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); //#21970 + for (var _KN = 0, _KM = $1.cwbs.length - 1; _KN <= _KM; _KN += 1) { //#21985 + $1.i = _KN; //#21974 + $k[$j++] = Infinity; //#21975 + $aload($get($1.cwbs, $1.i)); //#21975 + for (var _KS = 0, _KT = $1.ecpb; _KS < _KT; _KS++) { //#21975 + $k[$j++] = 0; //#21975 + } //#21975 + $1.rscws = $a(); //#21975 + for (var _KX = 0, _KW = $1.dcpb - 1; _KX <= _KW; _KX += 1) { //#21983 + $1.m = _KX; //#21977 + $1.k = $get($1.rscws, $1.m); //#21978 + for (var _Kd = 0, _Kc = $1.ecpb - 1; _Kd <= _Kc; _Kd += 1) { //#21982 + $1.j = _Kd; //#21980 + $k[$j++] = $1.rscws; //#21981 + $k[$j++] = ($1.m + $1.j) + 1; //#21981 + $k[$j++] = $get($1.coeffs, ($1.ecpb - $1.j) - 1); //#21981 + $k[$j++] = $1.k; //#21981 + $1.rsprod(); //#21981 + var _Kq = $k[--$j]; //#21981 + var _Kr = $k[--$j]; //#21981 + $put($k[--$j], _Kr, $xo(_Kq, $get($1.rscws, ($1.m + $1.j) + 1))); //#21981 + } //#21981 + } //#21981 + $put($1.ecbs, $1.i, $geti($1.rscws, $1.dcpb, $1.ecpb)); //#21984 + } //#21984 + $k[$j++] = Infinity; //#21988 + $aload($1.cws); //#21988 + for (var _L1 = 0, _L2 = $1.rscw; _L1 < _L2; _L1++) { //#21988 + $k[$j++] = 0; //#21988 + } //#21988 + $1.cws = $a(); //#21988 + for (var _L6 = 0, _L5 = $f($1.rscw - 1); _L6 <= _L5; _L6 += 1) { //#21992 + $1.i = _L6; //#21990 + $put($1.cws, $f($1.dcws + $1.i), $get($get($1.ecbs, $1.i % $1.rsbl), ~~($1.i / $1.rsbl))); //#21991 + } //#21991 + var _LK = $1.stype ? 5 : 8; //#21995 + $1.mmat = $a($f($1.dcws + $1.rscw) * _LK); //#21995 + $1.r = 0; //#21996 + $1.c = 0; //#21996 + var _LN = $1.stype ? 2 : 1; //#21997 + for (var _LQ = 0, _LR = _LN, _LP = $1.cws.length - 1; _LR < 0 ? _LQ >= _LP : _LQ <= _LP; _LQ += _LR) { //#22018 + $1.i = _LQ; //#21998 + if (!$1.stype) { //#22012 + var _LU = $strcpy($s(8), "00000000"); //#22000 + var _LZ = $cvrs($s(8), $get($1.cws, $1.i), 2); //#22000 + $puti(_LU, 8 - _LZ.length, _LZ); //#22001 + $k[$j++] = _LU; //#22001 + $k[$j++] = Infinity; //#22001 + var _La = $k[--$j]; //#22001 + var _Lb = $k[--$j]; //#22001 + $k[$j++] = _La; //#22001 + $forall(_Lb, function() { //#22001 + var _Lc = $k[--$j]; //#22001 + $k[$j++] = $f(_Lc - 48); //#22001 + }); //#22001 + var _Ld = $a(); //#22001 + $1.top = $geti(_Ld, 0, 4); //#22002 + $1.bot = $geti(_Ld, 4, 4); //#22003 + } else { //#22012 + var _Lh = $strcpy($s(5), "00000"); //#22005 + var _Lm = $cvrs($s(5), $get($1.cws, $1.i), 2); //#22005 + $puti(_Lh, 5 - _Lm.length, _Lm); //#22006 + $k[$j++] = _Lh; //#22006 + $k[$j++] = Infinity; //#22006 + var _Ln = $k[--$j]; //#22006 + var _Lo = $k[--$j]; //#22006 + $k[$j++] = _Ln; //#22006 + $forall(_Lo, function() { //#22006 + var _Lp = $k[--$j]; //#22006 + $k[$j++] = $f(_Lp - 48); //#22006 + }); //#22006 + $1.c1 = $a(); //#22007 + var _Ls = $strcpy($s(5), "00000"); //#22008 + var _Lx = $cvrs($s(5), $get($1.cws, $1.i + 1), 2); //#22008 + $puti(_Ls, 5 - _Lx.length, _Lx); //#22009 + $k[$j++] = _Ls; //#22009 + $k[$j++] = Infinity; //#22009 + var _Ly = $k[--$j]; //#22009 + var _Lz = $k[--$j]; //#22009 + $k[$j++] = _Ly; //#22009 + $forall(_Lz, function() { //#22009 + var _M0 = $k[--$j]; //#22009 + $k[$j++] = $f(_M0 - 48); //#22009 + }); //#22009 + $1.c2 = $a(); //#22010 + $k[$j++] = Infinity; //#22011 + $aload($geti($1.c1, 0, 3)); //#22011 + $aload($geti($1.c2, 0, 2)); //#22011 + $1.top = $a(); //#22011 + $k[$j++] = Infinity; //#22012 + $aload($geti($1.c1, 3, 2)); //#22012 + $aload($geti($1.c2, 2, 3)); //#22012 + $1.bot = $a(); //#22012 + } //#22012 + $puti($1.mmat, $f(($1.r * $1.dcol) + $1.c), $1.top); //#22014 + $puti($1.mmat, $f((($1.r + 1) * $1.dcol) + $1.c), $1.bot); //#22015 + $1.c = $1.c + $1.top.length; //#22016 + if ($1.c == $1.dcol) { //#22017 + $1.c = 0; //#22017 + $1.r = $1.r + 2; //#22017 + } //#22017 + } //#22017 + $1.mmv = function() { + var _MS = $k[--$j]; //#22021 + var _MT = $k[--$j]; //#22021 + $k[$j++] = $f(_MT + (_MS * $1.cols)); //#22021 + }; //#22021 + $k[$j++] = Infinity; //#22022 + for (var _MW = 0, _MX = $1.rows * $1.cols; _MW < _MX; _MW++) { //#22022 + $k[$j++] = -1; //#22022 + } //#22022 + $1.pixs = $a(); //#22022 + var _N3 = $a([function() { + for (var _Ma = 0, _Mb = $1.cols; _Ma < _Mb; _Ma++) { //#22026 + $k[$j++] = 0; //#22026 + } //#22026 }, function() { - var _Xt = $k[--$j]; - var _Xu = $k[--$j]; - $k[$j++] = _Xt; - $k[$j++] = _Xu; - $j--; - var _Xv = $k[--$j]; - $k[$j++] = _Xv % 2; + for (var _Md = 0, _Me = $1.cols; _Md < _Me; _Md++) { //#22027 + $k[$j++] = 1; //#22027 + } //#22027 }, function() { - $j--; - var _Xw = $k[--$j]; - $k[$j++] = _Xw % 3; + $k[$j++] = 0; //#22028 + for (var _Mg = 0, _Mh = $f($1.cols - 2); _Mg < _Mh; _Mg++) { //#22028 + $k[$j++] = 1; //#22028 + } //#22028 + $k[$j++] = 0; //#22028 }, function() { - var _Xx = $k[--$j]; - var _Xy = $k[--$j]; - $k[$j++] = $f(_Xy + _Xx) % 3; + $k[$j++] = 0; //#22029 + $k[$j++] = 1; //#22029 + for (var _Mj = 0, _Mk = $f($1.cols - 4); _Mj < _Mk; _Mj++) { //#22029 + $k[$j++] = 0; //#22029 + } //#22029 + $k[$j++] = 1; //#22029 + $k[$j++] = 0; //#22029 }, function() { - var _Xz = $k[--$j]; - var _Y0 = $k[--$j]; - $k[$j++] = (~~(_Xz / 2) + ~~(_Y0 / 3)) % 2; + for (var _Mm = 0, _Mn = ~~($f($1.cols - 1) / 2); _Mm < _Mn; _Mm++) { //#22030 + $k[$j++] = -1; //#22030 + } //#22030 + $k[$j++] = 1; //#22030 + for (var _Mp = 0, _Mq = ~~($f($1.cols - 1) / 2); _Mp < _Mq; _Mp++) { //#22030 + $k[$j++] = -1; //#22030 + } //#22030 }, function() { - var _Y1 = $k[--$j]; - var _Y3 = $k[--$j] * _Y1; - $k[$j++] = $f(_Y3 % 2 + _Y3 % 3); + for (var _Ms = 0, _Mt = ~~($f($1.cols - 1) / 2); _Ms < _Mt; _Ms++) { //#22031 + $k[$j++] = -1; //#22031 + } //#22031 + $k[$j++] = 0; //#22031 + for (var _Mv = 0, _Mw = ~~($f($1.cols - 1) / 2); _Mv < _Mw; _Mv++) { //#22031 + $k[$j++] = -1; //#22031 + } //#22031 }, function() { - var _Y4 = $k[--$j]; - var _Y6 = $k[--$j] * _Y4; - $k[$j++] = $f(_Y6 % 2 + _Y6 % 3) % 2; + $k[$j++] = 1; //#22032 + for (var _My = 0, _Mz = $f($1.cols - 2); _My < _Mz; _My++) { //#22032 + $k[$j++] = 0; //#22032 + } //#22032 + $k[$j++] = 1; //#22032 }, function() { - var _Y7 = $k[--$j]; - var _Y8 = $k[--$j]; - $k[$j++] = $f(_Y8 * _Y7 % 3 + $f(_Y8 + _Y7) % 2) % 2; - } ]); - var _YK = $a([ function() { - var _YA = $k[--$j]; - var _YB = $k[--$j]; - $k[$j++] = _YA; - $k[$j++] = _YB; - $j--; - var _YC = $k[--$j]; - $k[$j++] = _YC % 2; + $k[$j++] = 1; //#22033 + $k[$j++] = 0; //#22033 + for (var _N1 = 0, _N2 = $f($1.cols - 4); _N1 < _N2; _N1++) { //#22033 + $k[$j++] = 1; //#22033 + } //#22033 + $k[$j++] = 0; //#22033 + $k[$j++] = 1; //#22033 + }]); //#22033 + $1.artifact = _N3; //#22034 + var _N4 = new Map([ + ["A", "121343"], + ["B", "12134343"], + ["C", "12121343"], + ["D", "1213434343"], + ["E", "1212134343"], + ["F", "1212121343"], + ["G", "121213434343"], + ["H", "121212134343"], + ["S", "56661278"], + ["T", "5666666666127878"] + ]); //#22045 + $1.cpat = $get(_N4, $geti($1.vers, 0, 1)); //#22046 + $k[$j++] = $1.pixs; //#22047 + $k[$j++] = 0; //#22047 + $k[$j++] = ~~($f($1.rows - $1.cpat.length) / 2); //#22047 + $1.mmv(); //#22047 + $k[$j++] = Infinity; //#22048 + $forall($1.cpat, function() { //#22048 + if ($get($1.artifact, $f($k[--$j] - 49))() === true) { + return true; + } //#22048 + }); //#22048 + var _NF = $a(); //#22048 + var _NG = $k[--$j]; //#22048 + $puti($k[--$j], _NG, _NF); //#22048 + for (var _NK = 0, _NJ = $f($1.risl - 1); _NK <= _NJ; _NK += 1) { //#22063 + $1.i = _NK; //#22052 + for (var _NP = $1.riso, _NQ = $1.risi, _NO = $f($1.cols - 1); _NQ < 0 ? _NP >= _NO : _NP <= _NO; _NP += _NQ) { //#22062 + $1.j = _NP; //#22054 + var _NS = (($1.i % 12) == 0) ? 1 : 0; //#22055 + var _NT = $a([1, _NS]); //#22055 + $k[$j++] = _NT; //#22056 + $k[$j++] = _NT; //#22056 + $k[$j++] = $1.pixs; //#22056 + $k[$j++] = $1.j; //#22056 + $k[$j++] = $1.i; //#22056 + $1.mmv(); //#22056 + var _NX = $k[--$j]; //#22057 + var _NY = $k[--$j]; //#22057 + $puti(_NY, _NX, $k[--$j]); //#22057 + if ($1.i != $f($1.risl - 1)) { //#22061 + $k[$j++] = $1.pixs; //#22059 + $k[$j++] = $f($f($1.cols - $1.j) - 2); //#22059 + $k[$j++] = $f($f($1.rows - $1.i) - 1); //#22059 + $1.mmv(); //#22059 + var _Nh = $k[--$j]; //#22060 + var _Ni = $k[--$j]; //#22060 + $puti(_Ni, _Nh, $k[--$j]); //#22060 + } else { //#22061 + $j--; //#22061 + } //#22061 + } //#22061 + } //#22061 + var _ON = new Map([ + ["A", $a([$a([12, 5])])], + ["B", $a([$a([16, 7])])], + ["C", $a([$a([26, 12])])], + ["D", $a([])], + ["E", $a([$a([26, 23])])], + ["F", $a([$a([26, 32]), $a([70, 32]), $a([26, 34]), $a([70, 34])])], + ["G", $a([$a([27, 48]), $a([69, 48])])], + ["H", $a([$a([26, 70]), $a([66, 70]), $a([106, 70]), $a([26, 72]), $a([66, 72]), $a([106, 72])])], + ["S-10", $a([])], + ["S-20", $a([$a([10, 4])])], + ["S-30", $a([$a([15, 4]), $a([15, 6])])], + ["T-16", $a([$a([8, 10])])], + ["T-32", $a([$a([16, 10]), $a([16, 12])])], + ["T-48", $a([$a([24, 10]), $a([24, 12]), $a([24, 14])])] + ]); //#22080 + $forall($get(_ON, $1.vers), function() { //#22081 + var _OR = $k[--$j]; //#22081 + $k[$j++] = $1.pixs; //#22081 + $aload(_OR); //#22081 + $1.mmv(); //#22081 + var _OS = $k[--$j]; //#22081 + $put($k[--$j], _OS, 1); //#22081 + }); //#22081 + $1.j = 0; //#22084 + for (var _OW = 0, _OV = $1.pixs.length - 1; _OW <= _OV; _OW += 1) { //#22091 + $1.i = _OW; //#22086 + if ($get($1.pixs, $1.i) == -1) { //#22090 + $put($1.pixs, $1.i, $get($1.mmat, $1.j)); //#22088 + $1.j = $1.j + 1; //#22089 + } //#22089 + } //#22089 + var _Om = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", $1.cols], + ["pixy", $1.rows], + ["height", ($1.rows / 72) * 2], + ["width", ($1.cols / 72) * 2], + ["opt", $1.options] + ]); //#22101 + $k[$j++] = _Om; //#22104 + if (!$1.dontdraw) { //#22104 + $0.renmatrix(); //#22104 + } //#22104 + }; + $0.hanxin = function() { + var $1 = {}; //#22134 + $1.options = $k[--$j]; //#22136 + $1.barcode = $k[--$j]; //#22137 + $1.dontdraw = false; //#22139 + $1.version = "unset"; //#22140 + $1.eclevel = "unset"; //#22141 + $1.parse = false; //#22142 + $1.parsefnc = false; //#22143 + $1.mask = -1; //#22144 + $forall($1.options, function() { //#22155 + var _3 = $k[--$j]; //#22155 + $1[$k[--$j]] = _3; //#22155 + }); //#22155 + $1.mask = ~~$1.mask; //#22157 + var _8 = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc] + ]); //#22162 + $1.fncvals = _8; //#22164 + $k[$j++] = 'msg'; //#22165 + $k[$j++] = $1.barcode; //#22165 + $k[$j++] = $1.fncvals; //#22165 + $0.parseinput(); //#22165 + var _B = $k[--$j]; //#22165 + $1[$k[--$j]] = _B; //#22165 + $1.msglen = $1.msg.length; //#22166 + if ($eq($1.eclevel, "unset")) { //#22169 + $1.eclevel = "L2"; //#22169 + } //#22169 + $1.tobin = function() { + var _G = $s($k[--$j]); //#22172 + $k[$j++] = _G; //#22172 + for (var _I = 0, _H = _G.length - 1; _I <= _H; _I += 1) { //#22172 + var _J = $k[--$j]; //#22172 + $put(_J, _I, 48); //#22172 + $k[$j++] = _J; //#22172 + } //#22172 + var _K = $k[--$j]; //#22173 + var _N = $cvrs($s(_K.length), $k[--$j], 2); //#22173 + $puti(_K, _K.length - _N.length, _N); //#22174 + $k[$j++] = _K; //#22174 + }; //#22175 + $1.bits = $s((4 + 13) + ($1.msglen * 8)); //#22178 + $puti($1.bits, 0, "0011"); //#22179 + $k[$j++] = $1.bits; //#22180 + $k[$j++] = 4; //#22180 + $k[$j++] = $1.msglen; //#22180 + $k[$j++] = 13; //#22180 + $1.tobin(); //#22180 + var _T = $k[--$j]; //#22180 + var _U = $k[--$j]; //#22180 + $puti($k[--$j], _U, _T); //#22180 + for (var _Y = 0, _X = $1.msglen - 1; _Y <= _X; _Y += 1) { //#22184 + $1.i = _Y; //#22182 + $k[$j++] = $1.bits; //#22183 + $k[$j++] = 17 + ($1.i * 8); //#22183 + $k[$j++] = $get($1.msg, $1.i); //#22183 + $k[$j++] = 8; //#22183 + $1.tobin(); //#22183 + var _e = $k[--$j]; //#22183 + var _f = $k[--$j]; //#22183 + $puti($k[--$j], _f, _e); //#22183 + } //#22183 + $1.metrics = $a([$a(["1", 23, -1, 0, 205, $a([1, 21, 4]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 17, 8]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 13, 12]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 9, 16]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["2", 25, -1, 0, 301, $a([1, 31, 6]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 25, 12]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 19, 18]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 15, 22]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["3", 27, -1, 0, 405, $a([1, 42, 8]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 34, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 26, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["4", 29, 14, 1, 439, $a([1, 46, 8]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 38, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 30, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 22, 32]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["5", 31, 16, 1, 555, $a([1, 57, 12]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 49, 20]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 37, 32]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 14, 20]), $a([1, 13, 22]), $a([0, -1, -1])]), $a(["6", 33, 16, 1, 675, $a([1, 70, 14]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 58, 26]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 24, 20]), $a([1, 22, 18]), $a([0, -1, -1]), $a([1, 16, 24]), $a([1, 18, 26]), $a([0, -1, -1])]), $a(["7", 35, 17, 1, 805, $a([1, 84, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 26, 22]), $a([1, 28, 24]), $a([0, -1, -1]), $a([2, 14, 20]), $a([1, 12, 20]), $a([0, -1, -1])]), $a(["8", 37, 18, 1, 943, $a([1, 99, 18]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 40, 18]), $a([1, 41, 18]), $a([0, -1, -1]), $a([1, 31, 26]), $a([1, 32, 28]), $a([0, -1, -1]), $a([2, 16, 24]), $a([1, 15, 22]), $a([0, -1, -1])]), $a(["9", 39, 19, 1, 1089, $a([1, 114, 22]), $a([0, -1, -1]), $a([0, -1, -1]), $a([2, 48, 20]), $a([0, -1, -1]), $a([0, -1, -1]), $a([2, 24, 20]), $a([1, 26, 22]), $a([0, -1, -1]), $a([2, 18, 28]), $a([1, 18, 26]), $a([0, -1, -1])]), $a(["10", 41, 20, 1, 1243, $a([1, 131, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 52, 22]), $a([1, 57, 24]), $a([0, -1, -1]), $a([2, 27, 24]), $a([1, 29, 24]), $a([0, -1, -1]), $a([2, 21, 32]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["11", 43, 14, 2, 1289, $a([1, 135, 26]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 56, 24]), $a([1, 57, 24]), $a([0, -1, -1]), $a([2, 28, 24]), $a([1, 31, 26]), $a([0, -1, -1]), $a([2, 22, 32]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["12", 45, 15, 2, 1455, $a([1, 153, 28]), $a([0, -1, -1]), $a([0, -1, -1]), $a([1, 62, 26]), $a([1, 65, 28]), $a([0, -1, -1]), $a([2, 32, 28]), $a([1, 33, 28]), $a([0, -1, -1]), $a([3, 17, 26]), $a([1, 22, 30]), $a([0, -1, -1])]), $a(["13", 47, 16, 2, 1629, $a([1, 86, 16]), $a([1, 85, 16]), $a([0, -1, -1]), $a([1, 71, 30]), $a([1, 72, 30]), $a([0, -1, -1]), $a([2, 37, 32]), $a([1, 35, 30]), $a([0, -1, -1]), $a([3, 20, 30]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["14", 49, 16, 2, 1805, $a([1, 94, 18]), $a([1, 95, 18]), $a([0, -1, -1]), $a([2, 51, 22]), $a([1, 55, 24]), $a([0, -1, -1]), $a([3, 30, 26]), $a([1, 31, 26]), $a([0, -1, -1]), $a([4, 18, 28]), $a([1, 17, 24]), $a([0, -1, -1])]), $a(["15", 51, 17, 2, 1995, $a([1, 104, 20]), $a([1, 105, 20]), $a([0, -1, -1]), $a([2, 57, 24]), $a([1, 61, 26]), $a([0, -1, -1]), $a([3, 33, 28]), $a([1, 36, 30]), $a([0, -1, -1]), $a([4, 20, 30]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["16", 53, 17, 2, 2187, $a([1, 115, 22]), $a([1, 114, 22]), $a([0, -1, -1]), $a([2, 65, 28]), $a([1, 61, 26]), $a([0, -1, -1]), $a([3, 38, 32]), $a([1, 33, 30]), $a([0, -1, -1]), $a([5, 19, 28]), $a([1, 14, 24]), $a([0, -1, -1])]), $a(["17", 55, 18, 2, 2393, $a([1, 126, 24]), $a([1, 125, 24]), $a([0, -1, -1]), $a([2, 70, 30]), $a([1, 69, 30]), $a([0, -1, -1]), $a([4, 33, 28]), $a([1, 29, 26]), $a([0, -1, -1]), $a([5, 20, 30]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["18", 57, 19, 2, 2607, $a([1, 136, 26]), $a([1, 137, 26]), $a([0, -1, -1]), $a([3, 56, 24]), $a([1, 59, 26]), $a([0, -1, -1]), $a([5, 35, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([6, 18, 28]), $a([1, 21, 28]), $a([0, -1, -1])]), $a(["19", 59, 20, 2, 2829, $a([1, 148, 28]), $a([1, 149, 28]), $a([0, -1, -1]), $a([3, 61, 26]), $a([1, 64, 28]), $a([0, -1, -1]), $a([7, 24, 20]), $a([1, 23, 22]), $a([0, -1, -1]), $a([6, 20, 30]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["20", 61, 20, 2, 3053, $a([3, 107, 20]), $a([0, -1, -1]), $a([0, -1, -1]), $a([3, 65, 28]), $a([1, 72, 30]), $a([0, -1, -1]), $a([7, 26, 22]), $a([1, 23, 22]), $a([0, -1, -1]), $a([7, 19, 28]), $a([1, 20, 32]), $a([0, -1, -1])]), $a(["21", 63, 21, 2, 3291, $a([3, 115, 22]), $a([0, -1, -1]), $a([0, -1, -1]), $a([4, 56, 24]), $a([1, 63, 28]), $a([0, -1, -1]), $a([7, 28, 24]), $a([1, 25, 22]), $a([0, -1, -1]), $a([8, 18, 28]), $a([1, 21, 22]), $a([0, -1, -1])]), $a(["22", 65, 16, 3, 3383, $a([2, 116, 22]), $a([1, 122, 24]), $a([0, -1, -1]), $a([4, 56, 24]), $a([1, 72, 30]), $a([0, -1, -1]), $a([7, 28, 24]), $a([1, 32, 26]), $a([0, -1, -1]), $a([8, 18, 28]), $a([1, 24, 30]), $a([0, -1, -1])]), $a(["23", 67, 17, 3, 3631, $a([3, 127, 24]), $a([0, -1, -1]), $a([0, -1, -1]), $a([5, 51, 22]), $a([1, 62, 26]), $a([0, -1, -1]), $a([7, 30, 26]), $a([1, 35, 26]), $a([0, -1, -1]), $a([8, 20, 30]), $a([1, 21, 32]), $a([0, -1, -1])]), $a(["24", 69, 17, 3, 3887, $a([2, 135, 26]), $a([1, 137, 26]), $a([0, -1, -1]), $a([5, 56, 24]), $a([1, 59, 26]), $a([0, -1, -1]), $a([7, 33, 28]), $a([1, 30, 28]), $a([0, -1, -1]), $a([11, 16, 24]), $a([1, 19, 26]), $a([0, -1, -1])]), $a(["25", 71, 18, 3, 4151, $a([3, 105, 20]), $a([1, 121, 22]), $a([0, -1, -1]), $a([5, 61, 26]), $a([1, 57, 26]), $a([0, -1, -1]), $a([9, 28, 24]), $a([1, 28, 22]), $a([0, -1, -1]), $a([10, 19, 28]), $a([1, 18, 30]), $a([0, -1, -1])]), $a(["26", 73, 18, 3, 4423, $a([2, 157, 30]), $a([1, 150, 28]), $a([0, -1, -1]), $a([5, 65, 28]), $a([1, 61, 26]), $a([0, -1, -1]), $a([8, 33, 28]), $a([1, 34, 30]), $a([0, -1, -1]), $a([10, 19, 28]), $a([2, 15, 26]), $a([0, -1, -1])]), $a(["27", 75, 19, 3, 4703, $a([3, 126, 24]), $a([1, 115, 22]), $a([0, -1, -1]), $a([7, 51, 22]), $a([1, 54, 22]), $a([0, -1, -1]), $a([8, 35, 30]), $a([1, 37, 30]), $a([0, -1, -1]), $a([15, 15, 22]), $a([1, 10, 22]), $a([0, -1, -1])]), $a(["28", 77, 19, 3, 4991, $a([4, 105, 20]), $a([1, 103, 20]), $a([0, -1, -1]), $a([7, 56, 24]), $a([1, 45, 18]), $a([0, -1, -1]), $a([10, 31, 26]), $a([1, 27, 26]), $a([0, -1, -1]), $a([10, 17, 26]), $a([3, 20, 28]), $a([1, 21, 28])]), $a(["29", 79, 20, 3, 5287, $a([3, 139, 26]), $a([1, 137, 28]), $a([0, -1, -1]), $a([6, 66, 28]), $a([1, 66, 30]), $a([0, -1, -1]), $a([9, 36, 30]), $a([1, 34, 32]), $a([0, -1, -1]), $a([13, 19, 28]), $a([1, 17, 32]), $a([0, -1, -1])]), $a(["30", 81, 20, 3, 5591, $a([6, 84, 16]), $a([1, 82, 16]), $a([0, -1, -1]), $a([6, 70, 30]), $a([1, 68, 30]), $a([0, -1, -1]), $a([7, 35, 30]), $a([3, 33, 28]), $a([1, 32, 28]), $a([13, 20, 30]), $a([1, 20, 28]), $a([0, -1, -1])]), $a(["31", 83, 21, 3, 5903, $a([5, 105, 20]), $a([1, 94, 18]), $a([0, -1, -1]), $a([6, 74, 32]), $a([1, 71, 30]), $a([0, -1, -1]), $a([11, 33, 28]), $a([1, 34, 32]), $a([0, -1, -1]), $a([13, 19, 28]), $a([3, 16, 26]), $a([0, -1, -1])]), $a(["32", 85, 17, 4, 6033, $a([4, 127, 24]), $a([1, 126, 24]), $a([0, -1, -1]), $a([7, 66, 28]), $a([1, 66, 30]), $a([0, -1, -1]), $a([12, 30, 24]), $a([1, 24, 28]), $a([1, 24, 30]), $a([15, 19, 28]), $a([1, 17, 32]), $a([0, -1, -1])]), $a(["33", 87, 17, 4, 6353, $a([7, 84, 16]), $a([1, 78, 16]), $a([0, -1, -1]), $a([7, 70, 30]), $a([1, 66, 28]), $a([0, -1, -1]), $a([12, 33, 28]), $a([1, 32, 30]), $a([0, -1, -1]), $a([14, 21, 32]), $a([1, 24, 28]), $a([0, -1, -1])]), $a(["34", 89, 18, 4, 6689, $a([5, 117, 22]), $a([1, 117, 24]), $a([0, -1, -1]), $a([8, 66, 28]), $a([1, 58, 26]), $a([0, -1, -1]), $a([11, 38, 32]), $a([1, 34, 32]), $a([0, -1, -1]), $a([15, 20, 30]), $a([2, 17, 26]), $a([0, -1, -1])]), $a(["35", 91, 18, 4, 7025, $a([4, 148, 28]), $a([1, 146, 28]), $a([0, -1, -1]), $a([8, 68, 30]), $a([1, 70, 24]), $a([0, -1, -1]), $a([10, 36, 32]), $a([3, 38, 28]), $a([0, -1, -1]), $a([16, 19, 28]), $a([3, 16, 26]), $a([0, -1, -1])]), $a(["36", 93, 19, 4, 7377, $a([4, 126, 24]), $a([2, 135, 26]), $a([0, -1, -1]), $a([8, 70, 28]), $a([2, 43, 26]), $a([0, -1, -1]), $a([13, 32, 28]), $a([2, 41, 30]), $a([0, -1, -1]), $a([17, 19, 28]), $a([3, 15, 26]), $a([0, -1, -1])]), $a(["37", 95, 19, 4, 7729, $a([5, 136, 26]), $a([1, 132, 24]), $a([0, -1, -1]), $a([5, 67, 30]), $a([4, 68, 28]), $a([1, 69, 28]), $a([14, 35, 30]), $a([1, 32, 24]), $a([0, -1, -1]), $a([18, 18, 26]), $a([3, 16, 28]), $a([1, 14, 28])]), $a(["38", 97, 19, 4, 8089, $a([3, 142, 26]), $a([3, 141, 28]), $a([0, -1, -1]), $a([8, 70, 30]), $a([1, 73, 32]), $a([1, 74, 32]), $a([12, 34, 30]), $a([3, 34, 26]), $a([1, 35, 28]), $a([18, 21, 32]), $a([1, 27, 30]), $a([0, -1, -1])]), $a(["39", 99, 20, 4, 8465, $a([5, 116, 22]), $a([2, 103, 20]), $a([1, 102, 20]), $a([9, 74, 32]), $a([1, 74, 30]), $a([0, -1, -1]), $a([14, 34, 28]), $a([2, 32, 32]), $a([1, 32, 30]), $a([19, 21, 32]), $a([1, 25, 26]), $a([0, -1, -1])]), $a(["40", 101, 20, 4, 8841, $a([7, 116, 22]), $a([1, 117, 22]), $a([0, -1, -1]), $a([11, 65, 28]), $a([1, 58, 24]), $a([0, -1, -1]), $a([15, 38, 32]), $a([1, 27, 28]), $a([0, -1, -1]), $a([20, 20, 30]), $a([1, 20, 32]), $a([1, 21, 32])]), $a(["41", 103, 17, 5, 9009, $a([6, 136, 26]), $a([1, 130, 24]), $a([0, -1, -1]), $a([11, 66, 28]), $a([1, 62, 30]), $a([0, -1, -1]), $a([14, 34, 28]), $a([3, 34, 32]), $a([1, 30, 30]), $a([18, 20, 30]), $a([3, 20, 28]), $a([2, 15, 26])]), $a(["42", 105, 17, 5, 9401, $a([5, 105, 20]), $a([2, 115, 22]), $a([2, 116, 22]), $a([10, 75, 32]), $a([1, 73, 32]), $a([0, -1, -1]), $a([16, 38, 32]), $a([1, 27, 28]), $a([0, -1, -1]), $a([22, 19, 28]), $a([2, 16, 30]), $a([1, 19, 30])]), $a(["43", 107, 18, 5, 9799, $a([6, 147, 28]), $a([1, 146, 28]), $a([0, -1, -1]), $a([11, 66, 28]), $a([2, 65, 30]), $a([0, -1, -1]), $a([18, 33, 28]), $a([2, 33, 30]), $a([0, -1, -1]), $a([22, 21, 32]), $a([1, 28, 30]), $a([0, -1, -1])]), $a(["44", 109, 18, 5, 10207, $a([6, 116, 22]), $a([3, 125, 24]), $a([0, -1, -1]), $a([11, 75, 32]), $a([1, 68, 30]), $a([0, -1, -1]), $a([13, 35, 28]), $a([6, 34, 32]), $a([1, 30, 30]), $a([23, 21, 32]), $a([1, 26, 30]), $a([0, -1, -1])]), $a(["45", 111, 18, 5, 10623, $a([7, 105, 20]), $a([4, 95, 18]), $a([0, -1, -1]), $a([12, 67, 28]), $a([1, 63, 30]), $a([1, 62, 32]), $a([21, 31, 26]), $a([2, 33, 32]), $a([0, -1, -1]), $a([23, 21, 32]), $a([2, 24, 30]), $a([0, -1, -1])]), $a(["46", 113, 19, 5, 11045, $a([10, 116, 22]), $a([0, -1, -1]), $a([0, -1, -1]), $a([12, 74, 32]), $a([1, 78, 30]), $a([0, -1, -1]), $a([18, 37, 32]), $a([1, 39, 30]), $a([1, 41, 28]), $a([25, 21, 32]), $a([1, 27, 28]), $a([0, -1, -1])]), $a(["47", 115, 19, 5, 11477, $a([5, 126, 24]), $a([4, 115, 22]), $a([1, 114, 22]), $a([12, 67, 28]), $a([2, 66, 32]), $a([1, 68, 30]), $a([21, 35, 30]), $a([1, 39, 30]), $a([0, -1, -1]), $a([26, 21, 32]), $a([1, 28, 28]), $a([0, -1, -1])]), $a(["48", 117, 19, 5, 11917, $a([9, 126, 24]), $a([1, 117, 22]), $a([0, -1, -1]), $a([13, 75, 32]), $a([1, 68, 30]), $a([0, -1, -1]), $a([20, 35, 30]), $a([3, 35, 28]), $a([0, -1, -1]), $a([27, 21, 32]), $a([1, 28, 30]), $a([0, -1, -1])]), $a(["49", 119, 17, 6, 12111, $a([9, 126, 24]), $a([1, 137, 26]), $a([0, -1, -1]), $a([13, 71, 30]), $a([2, 68, 32]), $a([0, -1, -1]), $a([20, 37, 32]), $a([1, 39, 28]), $a([1, 38, 28]), $a([24, 20, 32]), $a([5, 25, 28]), $a([0, -1, -1])]), $a(["50", 121, 17, 6, 12559, $a([8, 147, 28]), $a([1, 141, 28]), $a([0, -1, -1]), $a([10, 73, 32]), $a([4, 74, 30]), $a([1, 73, 30]), $a([16, 36, 32]), $a([6, 39, 30]), $a([1, 37, 30]), $a([27, 21, 32]), $a([3, 20, 26]), $a([0, -1, -1])]), $a(["51", 123, 18, 6, 13025, $a([9, 137, 26]), $a([1, 135, 26]), $a([0, -1, -1]), $a([12, 70, 30]), $a([4, 75, 32]), $a([0, -1, -1]), $a([24, 35, 30]), $a([1, 40, 28]), $a([0, -1, -1]), $a([23, 20, 32]), $a([8, 24, 30]), $a([0, -1, -1])]), $a(["52", 125, 18, 6, 13489, $a([14, 95, 18]), $a([1, 86, 18]), $a([0, -1, -1]), $a([13, 73, 32]), $a([3, 77, 30]), $a([0, -1, -1]), $a([24, 35, 30]), $a([2, 35, 28]), $a([0, -1, -1]), $a([26, 21, 32]), $a([5, 21, 30]), $a([1, 23, 30])]), $a(["53", 127, 18, 6, 13961, $a([9, 147, 28]), $a([1, 142, 28]), $a([0, -1, -1]), $a([10, 73, 30]), $a([6, 70, 32]), $a([1, 71, 32]), $a([25, 35, 30]), $a([2, 34, 26]), $a([0, -1, -1]), $a([29, 21, 32]), $a([4, 22, 30]), $a([0, -1, -1])]), $a(["54", 129, 18, 6, 14441, $a([11, 126, 24]), $a([1, 131, 24]), $a([0, -1, -1]), $a([16, 74, 32]), $a([1, 79, 30]), $a([0, -1, -1]), $a([25, 38, 32]), $a([1, 25, 30]), $a([0, -1, -1]), $a([33, 21, 32]), $a([1, 28, 28]), $a([0, -1, -1])]), $a(["55", 131, 19, 6, 14939, $a([14, 105, 20]), $a([1, 99, 18]), $a([0, -1, -1]), $a([19, 65, 28]), $a([1, 72, 28]), $a([0, -1, -1]), $a([24, 37, 32]), $a([2, 40, 30]), $a([1, 41, 30]), $a([31, 21, 32]), $a([4, 24, 32]), $a([0, -1, -1])]), $a(["56", 133, 19, 6, 15435, $a([10, 147, 28]), $a([1, 151, 28]), $a([0, -1, -1]), $a([15, 71, 30]), $a([3, 71, 32]), $a([1, 73, 32]), $a([24, 37, 32]), $a([3, 38, 30]), $a([1, 39, 30]), $a([36, 19, 30]), $a([3, 29, 26]), $a([0, -1, -1])]), $a(["57", 135, 19, 6, 15939, $a([15, 105, 20]), $a([1, 99, 18]), $a([0, -1, -1]), $a([19, 70, 30]), $a([1, 64, 28]), $a([0, -1, -1]), $a([27, 38, 32]), $a([2, 25, 26]), $a([0, -1, -1]), $a([38, 20, 30]), $a([2, 18, 28]), $a([0, -1, -1])]), $a(["58", 137, 17, 7, 16171, $a([14, 105, 20]), $a([1, 113, 22]), $a([1, 114, 22]), $a([17, 67, 30]), $a([3, 92, 32]), $a([0, -1, -1]), $a([30, 35, 30]), $a([1, 41, 30]), $a([0, -1, -1]), $a([36, 21, 32]), $a([1, 26, 30]), $a([1, 27, 30])]), $a(["59", 139, 17, 7, 16691, $a([11, 146, 28]), $a([1, 146, 26]), $a([0, -1, -1]), $a([20, 70, 30]), $a([1, 60, 26]), $a([0, -1, -1]), $a([29, 38, 32]), $a([1, 24, 32]), $a([0, -1, -1]), $a([40, 20, 30]), $a([2, 17, 26]), $a([0, -1, -1])]), $a(["60", 141, 18, 7, 17215, $a([3, 137, 26]), $a([1, 136, 26]), $a([10, 126, 24]), $a([22, 65, 28]), $a([1, 75, 30]), $a([0, -1, -1]), $a([30, 37, 32]), $a([1, 51, 30]), $a([0, -1, -1]), $a([42, 20, 30]), $a([1, 21, 30]), $a([0, -1, -1])]), $a(["61", 143, 18, 7, 17751, $a([12, 126, 24]), $a([2, 118, 22]), $a([1, 116, 22]), $a([19, 74, 32]), $a([1, 74, 30]), $a([1, 72, 28]), $a([30, 38, 32]), $a([2, 29, 30]), $a([0, -1, -1]), $a([39, 20, 32]), $a([2, 37, 26]), $a([1, 38, 26])]), $a(["62", 145, 18, 7, 18295, $a([12, 126, 24]), $a([3, 136, 26]), $a([0, -1, -1]), $a([21, 70, 30]), $a([2, 65, 28]), $a([0, -1, -1]), $a([34, 35, 30]), $a([1, 44, 32]), $a([0, -1, -1]), $a([42, 20, 30]), $a([2, 19, 28]), $a([2, 18, 28])]), $a(["63", 147, 18, 7, 18847, $a([12, 126, 24]), $a([3, 117, 22]), $a([1, 116, 22]), $a([25, 61, 26]), $a([2, 62, 28]), $a([0, -1, -1]), $a([34, 35, 30]), $a([1, 40, 32]), $a([1, 41, 32]), $a([45, 20, 30]), $a([1, 20, 32]), $a([1, 21, 32])]), $a(["64", 149, 19, 7, 19403, $a([15, 105, 20]), $a([2, 115, 22]), $a([2, 116, 22]), $a([25, 65, 28]), $a([1, 72, 28]), $a([0, -1, -1]), $a([18, 35, 30]), $a([17, 37, 32]), $a([1, 50, 32]), $a([42, 20, 30]), $a([6, 19, 28]), $a([1, 15, 28])]), $a(["65", 151, 19, 7, 19971, $a([19, 105, 20]), $a([1, 101, 20]), $a([0, -1, -1]), $a([33, 51, 22]), $a([1, 65, 22]), $a([0, -1, -1]), $a([40, 33, 28]), $a([1, 28, 28]), $a([0, -1, -1]), $a([49, 20, 30]), $a([1, 18, 28]), $a([0, -1, -1])]), $a(["66", 153, 17, 8, 20229, $a([18, 105, 20]), $a([2, 117, 22]), $a([0, -1, -1]), $a([26, 65, 28]), $a([1, 80, 30]), $a([0, -1, -1]), $a([35, 35, 30]), $a([3, 35, 28]), $a([1, 36, 28]), $a([52, 18, 28]), $a([2, 38, 30]), $a([0, -1, -1])]), $a(["67", 155, 17, 8, 20805, $a([26, 84, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([26, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([45, 31, 26]), $a([1, 9, 26]), $a([0, -1, -1]), $a([52, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["68", 157, 17, 8, 21389, $a([16, 126, 24]), $a([1, 114, 22]), $a([1, 115, 22]), $a([23, 70, 30]), $a([3, 65, 28]), $a([1, 66, 28]), $a([40, 35, 30]), $a([1, 43, 30]), $a([0, -1, -1]), $a([46, 20, 30]), $a([7, 19, 28]), $a([1, 16, 28])]), $a(["69", 159, 18, 8, 21993, $a([19, 116, 22]), $a([1, 105, 22]), $a([0, -1, -1]), $a([20, 70, 30]), $a([7, 66, 28]), $a([1, 63, 28]), $a([40, 35, 30]), $a([1, 42, 32]), $a([1, 43, 32]), $a([54, 20, 30]), $a([1, 19, 30]), $a([0, -1, -1])]), $a(["70", 161, 18, 8, 22593, $a([17, 126, 24]), $a([2, 115, 22]), $a([0, -1, -1]), $a([24, 70, 30]), $a([4, 74, 32]), $a([0, -1, -1]), $a([48, 31, 26]), $a([2, 18, 26]), $a([0, -1, -1]), $a([54, 19, 28]), $a([6, 15, 26]), $a([1, 14, 26])]), $a(["71", 163, 18, 8, 23201, $a([29, 84, 16]), $a([0, -1, -1]), $a([0, -1, -1]), $a([29, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([6, 34, 30]), $a([3, 36, 30]), $a([38, 33, 28]), $a([58, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["72", 165, 18, 8, 23817, $a([16, 147, 28]), $a([1, 149, 28]), $a([0, -1, -1]), $a([31, 66, 28]), $a([1, 37, 26]), $a([0, -1, -1]), $a([48, 33, 28]), $a([1, 23, 26]), $a([0, -1, -1]), $a([53, 20, 30]), $a([6, 19, 28]), $a([1, 17, 28])]), $a(["73", 167, 19, 8, 24453, $a([20, 115, 22]), $a([2, 134, 24]), $a([0, -1, -1]), $a([29, 66, 28]), $a([2, 56, 26]), $a([2, 57, 26]), $a([45, 36, 30]), $a([2, 15, 28]), $a([0, -1, -1]), $a([59, 20, 30]), $a([2, 21, 32]), $a([0, -1, -1])]), $a(["74", 169, 19, 8, 25085, $a([17, 147, 28]), $a([1, 134, 26]), $a([0, -1, -1]), $a([26, 70, 30]), $a([5, 75, 32]), $a([0, -1, -1]), $a([47, 35, 30]), $a([1, 48, 32]), $a([0, -1, -1]), $a([64, 18, 28]), $a([2, 33, 30]), $a([1, 35, 30])]), $a(["75", 171, 17, 9, 25373, $a([22, 115, 22]), $a([1, 133, 24]), $a([0, -1, -1]), $a([33, 65, 28]), $a([1, 74, 28]), $a([0, -1, -1]), $a([43, 36, 30]), $a([5, 27, 28]), $a([1, 30, 28]), $a([57, 20, 30]), $a([5, 21, 32]), $a([1, 24, 32])]), $a(["76", 173, 17, 9, 26021, $a([18, 136, 26]), $a([2, 142, 26]), $a([0, -1, -1]), $a([33, 66, 28]), $a([2, 49, 26]), $a([0, -1, -1]), $a([48, 35, 30]), $a([2, 38, 28]), $a([0, -1, -1]), $a([64, 20, 30]), $a([1, 20, 32]), $a([0, -1, -1])]), $a(["77", 175, 17, 9, 26677, $a([19, 126, 24]), $a([2, 135, 26]), $a([1, 136, 26]), $a([32, 66, 28]), $a([2, 55, 26]), $a([2, 56, 26]), $a([49, 36, 30]), $a([2, 18, 32]), $a([0, -1, -1]), $a([65, 18, 28]), $a([5, 27, 30]), $a([1, 29, 30])]), $a(["78", 177, 18, 9, 27335, $a([20, 137, 26]), $a([1, 130, 26]), $a([0, -1, -1]), $a([30, 75, 32]), $a([2, 71, 32]), $a([0, -1, -1]), $a([46, 35, 30]), $a([6, 39, 32]), $a([0, -1, -1]), $a([3, 12, 30]), $a([70, 19, 28]), $a([0, -1, -1])]), $a(["79", 179, 18, 9, 28007, $a([20, 147, 28]), $a([0, -1, -1]), $a([0, -1, -1]), $a([35, 70, 30]), $a([0, -1, -1]), $a([0, -1, -1]), $a([49, 35, 30]), $a([5, 35, 28]), $a([0, -1, -1]), $a([70, 20, 30]), $a([0, -1, -1]), $a([0, -1, -1])]), $a(["80", 181, 18, 9, 28687, $a([21, 136, 26]), $a([1, 155, 28]), $a([0, -1, -1]), $a([34, 70, 30]), $a([1, 64, 28]), $a([1, 65, 28]), $a([54, 35, 30]), $a([1, 45, 30]), $a([0, -1, -1]), $a([68, 20, 30]), $a([3, 18, 28]), $a([1, 19, 28])]), $a(["81", 183, 18, 9, 29375, $a([19, 126, 24]), $a([5, 115, 22]), $a([1, 114, 22]), $a([33, 70, 30]), $a([3, 65, 28]), $a([1, 64, 28]), $a([52, 35, 30]), $a([3, 41, 32]), $a([1, 40, 32]), $a([67, 20, 30]), $a([5, 21, 32]), $a([1, 24, 32])]), $a(["82", 185, 18, 9, 30071, $a([2, 150, 28]), $a([21, 136, 26]), $a([0, -1, -1]), $a([32, 70, 30]), $a([6, 65, 28]), $a([0, -1, -1]), $a([52, 38, 32]), $a([2, 27, 32]), $a([0, -1, -1]), $a([73, 20, 30]), $a([2, 22, 32]), $a([0, -1, -1])]), $a(["83", 187, 17, 10, 30387, $a([21, 126, 24]), $a([4, 136, 26]), $a([0, -1, -1]), $a([30, 74, 32]), $a([6, 73, 30]), $a([0, -1, -1]), $a([54, 35, 30]), $a([4, 40, 32]), $a([0, -1, -1]), $a([75, 20, 30]), $a([1, 20, 28]), $a([0, -1, -1])]), $a(["84", 189, 17, 10, 31091, $a([30, 105, 20]), $a([1, 114, 22]), $a([0, -1, -1]), $a([3, 45, 22]), $a([55, 47, 20]), $a([0, -1, -1]), $a([2, 26, 26]), $a([62, 33, 28]), $a([0, -1, -1]), $a([79, 18, 28]), $a([4, 33, 30]), $a([0, -1, -1])])]); //#22525 + $1.eclval = $get($1.eclevel, 1) - 49; //#22527 + for (var _IM = 0; _IM <= 83; _IM += 1) { //#22547 + $1.i = _IM; //#22529 + $1.m = $get($1.metrics, $1.i); //#22530 + $1.vers = $get($1.m, 0); //#22531 + $1.size = $get($1.m, 1); //#22532 + $1.alnk = $get($1.m, 2); //#22533 + $1.alnn = $get($1.m, 3); //#22534 + $1.alnr = $f($1.size - ($1.alnk * $1.alnn)); //#22535 + $1.nmod = $get($1.m, 4); //#22536 + $1.ncws = ~~($1.nmod / 8); //#22537 + $1.rbit = $1.nmod % 8; //#22538 + $1.ecbs = $geti($1.m, 5 + ($1.eclval * 3), 3); //#22539 + var _Ii = $1.ecbs; //#22540 + $k[$j++] = 'ecws'; //#22540 + $k[$j++] = 0; //#22540 + for (var _Ij = 0, _Ik = _Ii.length; _Ij < _Ik; _Ij++) { //#22540 + var _Il = $get(_Ii, _Ij); //#22540 + var _Io = $k[--$j]; //#22540 + $k[$j++] = $f(_Io + ($get(_Il, 0) * $get(_Il, 2))); //#22540 + } //#22540 + var _Ip = $k[--$j]; //#22540 + $1[$k[--$j]] = _Ip; //#22540 + $1.dcws = $f($1.ncws - $1.ecws); //#22541 + $1.dmod = $1.dcws * 8; //#22542 + $1.okay = true; //#22543 + if ($ne($1.version, "unset") && $ne($1.version, $1.vers)) { //#22544 + $1.okay = false; //#22544 + } //#22544 + if ($1.bits.length > $1.dmod) { //#22545 + $1.okay = false; //#22545 + } //#22545 + if ($1.okay) { //#22546 + break; //#22546 + } //#22546 + } //#22546 + if (!$1.okay) { //#22551 + $k[$j++] = 'bwipp.hanxinNoValidSymbol'; //#22550 + $k[$j++] = "No valid symbol available"; //#22550 + $0.raiseerror(); //#22550 + } //#22550 + $1.version = $1.vers; //#22553 + $1.msgbits = $1.bits; //#22554 + $1.e1nb = $get($get($1.ecbs, 0), 0); //#22555 + $1.e2nb = $get($get($1.ecbs, 1), 0); //#22555 + $1.e3nb = $get($get($1.ecbs, 2), 0); //#22555 + $1.e1dcws = $get($get($1.ecbs, 0), 1); //#22556 + $1.e2dcws = $get($get($1.ecbs, 1), 1); //#22556 + $1.e3dcws = $get($get($1.ecbs, 2), 1); //#22556 + $1.e1ecws = $get($get($1.ecbs, 0), 2); //#22557 + $1.e2ecws = $get($get($1.ecbs, 1), 2); //#22557 + $1.e3ecws = $get($get($1.ecbs, 2), 2); //#22557 + $1.pad = $s($1.dmod); //#22560 + for (var _JY = 0, _JX = $1.pad.length - 1; _JY <= _JX; _JY += 1) { //#22561 + $put($1.pad, _JY, 48); //#22561 + } //#22561 + $puti($1.pad, 0, $1.msgbits); //#22562 + $1.cws = $a($1.dcws); //#22565 + for (var _Jg = 0, _Jf = $1.cws.length - 1; _Jg <= _Jf; _Jg += 1) { //#22575 + $1.c = _Jg; //#22567 + $1.cwb = $geti($1.pad, $1.c * 8, 8); //#22568 + $1.cw = 0; //#22569 + for (var _Jk = 0; _Jk <= 7; _Jk += 1) { //#22573 + $1.i = _Jk; //#22571 + $1.cw = $f($1.cw + ((~~(Math.pow(2, (8 - $1.i) - 1))) * $f($get($1.cwb, $1.i) - 48))); //#22572 + } //#22572 + $put($1.cws, $1.c, $1.cw); //#22574 + } //#22574 + $1.rscodes = function() { + $1.rspm = $k[--$j]; //#22579 + $1.rsgf = $k[--$j]; //#22580 + $1.rsnc = $k[--$j]; //#22581 + $1.rscws = $k[--$j]; //#22582 + $k[$j++] = Infinity; //#22585 + $k[$j++] = 1; //#22585 + for (var _Jy = 0, _Jz = $f($1.rsgf - 1); _Jy < _Jz; _Jy++) { //#22585 + var _K0 = $k[--$j]; //#22585 + var _K1 = _K0 * 2; //#22585 + $k[$j++] = _K0; //#22585 + $k[$j++] = _K1; //#22585 + if (_K1 >= $1.rsgf) { //#22585 + var _K4 = $k[--$j]; //#22585 + $k[$j++] = $xo(_K4, $1.rspm); //#22585 + } //#22585 + } //#22585 + $1.rsalog = $a(); //#22585 + $1.rslog = $a($1.rsgf); //#22586 + for (var _KA = 1, _K9 = $f($1.rsgf - 1); _KA <= _K9; _KA += 1) { //#22587 + $put($1.rslog, $get($1.rsalog, _KA), _KA); //#22587 + } //#22587 + $1.rsprod = function() { + var _KE = $k[--$j]; //#22591 + var _KF = $k[--$j]; //#22591 + $k[$j++] = _KF; //#22595 + $k[$j++] = _KE; //#22595 + if ((_KE != 0) && (_KF != 0)) { //#22594 + var _KI = $get($1.rslog, $k[--$j]); //#22592 + var _KO = $get($1.rsalog, $f(_KI + $get($1.rslog, $k[--$j])) % $f($1.rsgf - 1)); //#22592 + $k[$j++] = _KO; //#22592 + } else { //#22594 + $j -= 2; //#22594 + $k[$j++] = 0; //#22594 + } //#22594 + }; //#22596 + $k[$j++] = Infinity; //#22599 + $k[$j++] = 1; //#22599 + for (var _KQ = 0, _KR = $1.rsnc; _KQ < _KR; _KQ++) { //#22599 + $k[$j++] = 0; //#22599 + } //#22599 + $1.coeffs = $a(); //#22599 + for (var _KV = 1, _KU = $1.rsnc; _KV <= _KU; _KV += 1) { //#22608 + $1.i = _KV; //#22601 + $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); //#22602 + for (var _Kc = $1.i - 1; _Kc >= 1; _Kc -= 1) { //#22606 + $1.j = _Kc; //#22604 + $k[$j++] = $1.coeffs; //#22605 + $k[$j++] = $1.j; //#22605 + $k[$j++] = $get($1.coeffs, $1.j - 1); //#22605 + $k[$j++] = $get($1.coeffs, $1.j); //#22605 + $k[$j++] = $get($1.rsalog, $1.i); //#22605 + $1.rsprod(); //#22605 + var _Ko = $k[--$j]; //#22605 + var _Kp = $k[--$j]; //#22605 + var _Kq = $k[--$j]; //#22605 + $put($k[--$j], _Kq, $xo(_Kp, _Ko)); //#22605 + } //#22605 + $k[$j++] = $1.coeffs; //#22607 + $k[$j++] = 0; //#22607 + $k[$j++] = $get($1.coeffs, 0); //#22607 + $k[$j++] = $get($1.rsalog, $1.i); //#22607 + $1.rsprod(); //#22607 + var _Ky = $k[--$j]; //#22607 + var _Kz = $k[--$j]; //#22607 + $put($k[--$j], _Kz, _Ky); //#22607 + } //#22607 + $1.nd = $1.rscws.length; //#22611 + $k[$j++] = Infinity; //#22612 + $forall($1.rscws); //#22612 + for (var _L4 = 0, _L5 = $1.rsnc; _L4 < _L5; _L4++) { //#22612 + $k[$j++] = 0; //#22612 + } //#22612 + $k[$j++] = 0; //#22612 + $1.rscws = $a(); //#22612 + for (var _L9 = 0, _L8 = $1.nd - 1; _L9 <= _L8; _L9 += 1) { //#22619 + $1.k = $xo($get($1.rscws, _L9), $get($1.rscws, $1.nd)); //#22614 + for (var _LH = 0, _LG = $f($1.rsnc - 1); _LH <= _LG; _LH += 1) { //#22618 + $1.j = _LH; //#22616 + $k[$j++] = $1.rscws; //#22617 + $k[$j++] = $1.nd + $1.j; //#22617 + $k[$j++] = $get($1.rscws, ($1.nd + $1.j) + 1); //#22617 + $k[$j++] = $1.k; //#22617 + $k[$j++] = $get($1.coeffs, $f($f($1.rsnc - $1.j) - 1)); //#22617 + $1.rsprod(); //#22617 + var _LU = $k[--$j]; //#22617 + var _LV = $k[--$j]; //#22617 + var _LW = $k[--$j]; //#22617 + $put($k[--$j], _LW, $xo(_LV, _LU)); //#22617 + } //#22617 + } //#22617 + $k[$j++] = $geti($1.rscws, 0, $1.rscws.length - 1); //#22622 + }; //#22624 + $1.dcwsb = $a($f($f($1.e1nb + $1.e2nb) + $1.e3nb)); //#22627 + $1.ecwsb = $a($1.dcwsb.length); //#22628 + $1.in = 0; //#22629 + $1.out = 0; //#22629 + for (var _Li = 0, _Lj = $1.e1nb; _Li < _Lj; _Li++) { //#22635 + $k[$j++] = $geti($1.cws, $1.in, $1.e1dcws); //#22631 + $k[$j++] = $1.e1ecws; //#22631 + $k[$j++] = 256; //#22631 + $k[$j++] = 355; //#22631 + $1.rscodes(); //#22631 + var _Lp = $k[--$j]; //#22632 + $put($1.dcwsb, $1.out, $geti(_Lp, 0, $1.e1dcws)); //#22632 + $put($1.ecwsb, $1.out, $geti(_Lp, $1.e1dcws, $1.e1ecws)); //#22633 + $1.in = $f($1.in + $1.e1dcws); //#22634 + $1.out = $1.out + 1; //#22634 + } //#22634 + for (var _M3 = 0, _M4 = $1.e2nb; _M3 < _M4; _M3++) { //#22641 + $k[$j++] = $geti($1.cws, $1.in, $1.e2dcws); //#22637 + $k[$j++] = $1.e2ecws; //#22637 + $k[$j++] = 256; //#22637 + $k[$j++] = 355; //#22637 + $1.rscodes(); //#22637 + var _MA = $k[--$j]; //#22638 + $put($1.dcwsb, $1.out, $geti(_MA, 0, $1.e2dcws)); //#22638 + $put($1.ecwsb, $1.out, $geti(_MA, $1.e2dcws, $1.e2ecws)); //#22639 + $1.in = $f($1.in + $1.e2dcws); //#22640 + $1.out = $1.out + 1; //#22640 + } //#22640 + for (var _MO = 0, _MP = $1.e3nb; _MO < _MP; _MO++) { //#22647 + $k[$j++] = $geti($1.cws, $1.in, $1.e3dcws); //#22643 + $k[$j++] = $1.e3ecws; //#22643 + $k[$j++] = 256; //#22643 + $k[$j++] = 355; //#22643 + $1.rscodes(); //#22643 + var _MV = $k[--$j]; //#22644 + $put($1.dcwsb, $1.out, $geti(_MV, 0, $1.e3dcws)); //#22644 + $put($1.ecwsb, $1.out, $geti(_MV, $1.e3dcws, $1.e3ecws)); //#22645 + $1.in = $f($1.in + $1.e3dcws); //#22646 + $1.out = $1.out + 1; //#22646 + } //#22646 + $1.cws = $a($1.ncws); //#22650 + $1.cw = 0; //#22651 + for (var _Mm = 0, _Ml = $1.dcwsb.length - 1; _Mm <= _Ml; _Mm += 1) { //#22656 + $1.i = _Mm; //#22653 + var _Mp = $get($1.dcwsb, $1.i); //#22654 + $puti($1.cws, $1.cw, _Mp); //#22654 + $1.cw = _Mp.length + $1.cw; //#22654 + var _Mv = $get($1.ecwsb, $1.i); //#22655 + $puti($1.cws, $1.cw, _Mv); //#22655 + $1.cw = _Mv.length + $1.cw; //#22655 + } //#22655 + $k[$j++] = Infinity; //#22661 + var _Mz = $1.ncws; //#22660 + var _N0 = 12; //#22660 + var _N1 = _Mz - 1; //#22660 + if ((_Mz - 1) > 12) { //#22660 + var _ = _N0; //#22660 + _N0 = _N1; //#22660 + _N1 = _; //#22660 + } //#22660 + for (var _N3 = 0, _N2 = _N1; _N3 <= _N2; _N3 += 1) { //#22662 + for (var _N6 = _N3, _N5 = $1.ncws - 1; _N6 <= _N5; _N6 += 13) { //#22661 + $k[$j++] = _N6; //#22661 + if (_N6 < $1.ncws) { //#22661 + var _NA = $get($1.cws, $k[--$j]); //#22661 + $k[$j++] = _NA; //#22661 + } else { //#22661 + $j--; //#22661 + } //#22661 + } //#22661 + } //#22661 + $1.cws = $a(); //#22661 + if ($1.rbit > 0) { //#22671 + $1.pad = $a($1.cws.length + 1); //#22667 + $puti($1.pad, 0, $1.cws); //#22668 + $put($1.pad, $1.pad.length - 1, 0); //#22669 + $1.cws = $1.pad; //#22670 + } //#22670 + $k[$j++] = Infinity; //#22674 + for (var _NM = 0, _NN = $1.size * $1.size; _NM < _NN; _NM++) { //#22674 + $k[$j++] = -1; //#22674 + } //#22674 + $1.pixs = $a(); //#22674 + $1.qmv = function() { + var _NQ = $k[--$j]; //#22675 + var _NR = $k[--$j]; //#22675 + $k[$j++] = $f(_NR + (_NQ * $1.size)); //#22675 + }; //#22675 + if ($1.alnn != 0) { //#22734 + $1.trmv = function() { + var _NU = $k[--$j]; //#22679 + var _NW = $k[--$j]; //#22679 + $k[$j++] = $f(($f(($f((_NU * $1.size) + $1.size)) - 1)) - _NW); //#22679 + }; //#22679 + $1.aplot = function() { + var _NX = $k[--$j]; //#22681 + var _NY = $k[--$j]; //#22681 + var _NZ = $k[--$j]; //#22681 + $k[$j++] = _NX; //#22681 + $k[$j++] = _NZ; //#22681 + $k[$j++] = _NY; //#22681 + $k[$j++] = _NX; //#22681 + $k[$j++] = _NY; //#22681 + $k[$j++] = _NZ; //#22681 + $1.trmv(); //#22681 + var _Nb = $k[--$j]; //#22681 + $put($1.pixs, _Nb, $k[--$j]); //#22681 + $1.trmv(); //#22682 + var _Ne = $k[--$j]; //#22682 + $put($1.pixs, _Ne, $k[--$j]); //#22682 + }; //#22683 + $1.i = 0; //#22684 + $1.stag = 0; //#22684 + for (;;) { //#22706 + if ($1.i >= $1.size) { //#22685 + break; //#22685 + } //#22685 + for (var _Nk = 0, _Nj = $f($1.size - 1); _Nk <= _Nj; _Nk += 1) { //#22699 + $1.j = _Nk; //#22687 + if ($f($1.j + $1.alnr) < $1.size) { //#22693 + $k[$j++] = (((((~~($1.j / $1.alnk)) + $1.stag) % 2) == 0) && (!(($1.i == 0) && ($1.j < $1.alnk)))) || (($1.j % $1.alnk) == 0); //#22691 + } else { //#22693 + $k[$j++] = ($f($1.alnn + $1.stag) % 2) == 0; //#22693 + } //#22693 + if ($k[--$j]) { //#22698 + $k[$j++] = $1.j; //#22696 + $k[$j++] = $1.i; //#22696 + $k[$j++] = 1; //#22696 + $1.aplot(); //#22696 + var _O1 = $1.j; //#22697 + var _O2 = $1.i; //#22697 + $k[$j++] = _O1 + 1; //#22697 + $k[$j++] = _O2 + 1; //#22697 + if (((_O2 + 1) < $1.size) && ((_O1 + 1) < $1.size)) { //#22697 + $k[$j++] = 0; //#22697 + $1.aplot(); //#22697 + } else { //#22697 + $j -= 2; //#22697 + } //#22697 + } //#22697 + } //#22697 + if ($f($1.i + $1.alnr) == $1.size) { //#22703 + $1.i = $f($f($1.i + $1.alnr) - 1); //#22701 + } else { //#22703 + $1.i = $f($1.i + $1.alnk); //#22703 + } //#22703 + $1.stag = 1 - $1.stag; //#22705 + } //#22705 + for (var _OH = $1.alnk, _OI = $1.alnk, _OG = $f($1.size - 2); _OI < 0 ? _OH >= _OG : _OH <= _OG; _OH += _OI) { //#22733 + $1.i = _OH; //#22708 + if (((~~($1.i / $1.alnk)) % 2) != 0) { //#22720 + $k[$j++] = $1.pixs; //#22710 + $k[$j++] = 0; //#22710 + $k[$j++] = $1.i - 1; //#22710 + $1.trmv(); //#22710 + var _ON = $k[--$j]; //#22710 + $put($k[--$j], _ON, 0); //#22710 + $k[$j++] = $1.pixs; //#22711 + $k[$j++] = 0; //#22711 + $k[$j++] = $1.i + 1; //#22711 + $1.trmv(); //#22711 + var _OR = $k[--$j]; //#22711 + $put($k[--$j], _OR, 0); //#22711 + $k[$j++] = $1.pixs; //#22712 + $k[$j++] = 1; //#22712 + $k[$j++] = $1.i - 1; //#22712 + $1.trmv(); //#22712 + var _OV = $k[--$j]; //#22712 + $put($k[--$j], _OV, 0); //#22712 + $k[$j++] = $1.pixs; //#22713 + $k[$j++] = 1; //#22713 + $k[$j++] = $1.i; //#22713 + $1.trmv(); //#22713 + var _OZ = $k[--$j]; //#22713 + $put($k[--$j], _OZ, 0); //#22713 + $k[$j++] = $1.pixs; //#22714 + $k[$j++] = 1; //#22714 + $k[$j++] = $1.i + 1; //#22714 + $1.trmv(); //#22714 + var _Od = $k[--$j]; //#22714 + $put($k[--$j], _Od, 0); //#22714 + $k[$j++] = $1.pixs; //#22715 + $k[$j++] = $1.i - 1; //#22715 + $k[$j++] = 0; //#22715 + $1.trmv(); //#22715 + var _Oh = $k[--$j]; //#22715 + $put($k[--$j], _Oh, 0); //#22715 + $k[$j++] = $1.pixs; //#22716 + $k[$j++] = $1.i + 1; //#22716 + $k[$j++] = 0; //#22716 + $1.trmv(); //#22716 + var _Ol = $k[--$j]; //#22716 + $put($k[--$j], _Ol, 0); //#22716 + $k[$j++] = $1.pixs; //#22717 + $k[$j++] = $1.i - 1; //#22717 + $k[$j++] = 1; //#22717 + $1.trmv(); //#22717 + var _Op = $k[--$j]; //#22717 + $put($k[--$j], _Op, 0); //#22717 + $k[$j++] = $1.pixs; //#22718 + $k[$j++] = $1.i; //#22718 + $k[$j++] = 1; //#22718 + $1.trmv(); //#22718 + var _Ot = $k[--$j]; //#22718 + $put($k[--$j], _Ot, 0); //#22718 + $k[$j++] = $1.pixs; //#22719 + $k[$j++] = $1.i + 1; //#22719 + $k[$j++] = 1; //#22719 + $1.trmv(); //#22719 + var _Ox = $k[--$j]; //#22719 + $put($k[--$j], _Ox, 0); //#22719 + } //#22719 + $k[$j++] = $1.pixs; //#22721 + $k[$j++] = $f($1.size - 1); //#22721 + $k[$j++] = $1.i - 1; //#22721 + $1.trmv(); //#22721 + var _P2 = $k[--$j]; //#22721 + if ($get($k[--$j], _P2) != 1) { //#22732 + $k[$j++] = $1.pixs; //#22722 + $k[$j++] = $f($1.size - 1); //#22722 + $k[$j++] = $1.i - 1; //#22722 + $1.trmv(); //#22722 + var _P8 = $k[--$j]; //#22722 + $put($k[--$j], _P8, 0); //#22722 + $k[$j++] = $1.pixs; //#22723 + $k[$j++] = $f($1.size - 2); //#22723 + $k[$j++] = $1.i - 1; //#22723 + $1.trmv(); //#22723 + var _PD = $k[--$j]; //#22723 + $put($k[--$j], _PD, 0); //#22723 + $k[$j++] = $1.pixs; //#22724 + $k[$j++] = $f($1.size - 2); //#22724 + $k[$j++] = $1.i; //#22724 + $1.trmv(); //#22724 + var _PI = $k[--$j]; //#22724 + $put($k[--$j], _PI, 0); //#22724 + $k[$j++] = $1.pixs; //#22725 + $k[$j++] = $f($1.size - 2); //#22725 + $k[$j++] = $1.i + 1; //#22725 + $1.trmv(); //#22725 + var _PN = $k[--$j]; //#22725 + $put($k[--$j], _PN, 0); //#22725 + $k[$j++] = $1.pixs; //#22726 + $k[$j++] = $f($1.size - 1); //#22726 + $k[$j++] = $1.i + 1; //#22726 + $1.trmv(); //#22726 + var _PS = $k[--$j]; //#22726 + $put($k[--$j], _PS, 0); //#22726 + $k[$j++] = $1.pixs; //#22727 + $k[$j++] = $1.i - 1; //#22727 + $k[$j++] = $f($1.size - 1); //#22727 + $1.trmv(); //#22727 + var _PX = $k[--$j]; //#22727 + $put($k[--$j], _PX, 0); //#22727 + $k[$j++] = $1.pixs; //#22728 + $k[$j++] = $1.i - 1; //#22728 + $k[$j++] = $f($1.size - 2); //#22728 + $1.trmv(); //#22728 + var _Pc = $k[--$j]; //#22728 + $put($k[--$j], _Pc, 0); //#22728 + $k[$j++] = $1.pixs; //#22729 + $k[$j++] = $1.i; //#22729 + $k[$j++] = $f($1.size - 2); //#22729 + $1.trmv(); //#22729 + var _Ph = $k[--$j]; //#22729 + $put($k[--$j], _Ph, 0); //#22729 + $k[$j++] = $1.pixs; //#22730 + $k[$j++] = $1.i + 1; //#22730 + $k[$j++] = $f($1.size - 2); //#22730 + $1.trmv(); //#22730 + var _Pm = $k[--$j]; //#22730 + $put($k[--$j], _Pm, 0); //#22730 + $k[$j++] = $1.pixs; //#22731 + $k[$j++] = $1.i + 1; //#22731 + $k[$j++] = $f($1.size - 1); //#22731 + $1.trmv(); //#22731 + var _Pr = $k[--$j]; //#22731 + $put($k[--$j], _Pr, 0); //#22731 + } //#22731 + } //#22731 + } //#22731 + $1.fpat = $a([$a([1, 1, 1, 1, 1, 1, 1, 0]), $a([1, 0, 0, 0, 0, 0, 0, 0]), $a([1, 0, 1, 1, 1, 1, 1, 0]), $a([1, 0, 1, 0, 0, 0, 0, 0]), $a([1, 0, 1, 0, 1, 1, 1, 0]), $a([1, 0, 1, 0, 1, 1, 1, 0]), $a([1, 0, 1, 0, 1, 1, 1, 0]), $a([0, 0, 0, 0, 0, 0, 0, 0])]); //#22746 + $1.fpat2 = $a([$a([1, 1, 1, 0, 1, 0, 1, 0]), $a([1, 1, 1, 0, 1, 0, 1, 0]), $a([1, 1, 1, 0, 1, 0, 1, 0]), $a([0, 0, 0, 0, 1, 0, 1, 0]), $a([1, 1, 1, 1, 1, 0, 1, 0]), $a([0, 0, 0, 0, 0, 0, 1, 0]), $a([1, 1, 1, 1, 1, 1, 1, 0]), $a([0, 0, 0, 0, 0, 0, 0, 0])]); //#22756 + for (var _QD = 0, _QC = $1.fpat.length - 1; _QD <= _QC; _QD += 1) { //#22768 + $1.y = _QD; //#22758 + for (var _QH = 0, _QG = $get($1.fpat, 0).length - 1; _QH <= _QG; _QH += 1) { //#22767 + $1.x = _QH; //#22760 + $1.fpb = $get($get($1.fpat, $1.y), $1.x); //#22761 + $1.fpb2 = $get($get($1.fpat2, $1.y), $1.x); //#22762 + $k[$j++] = $1.pixs; //#22763 + $k[$j++] = $1.x; //#22763 + $k[$j++] = $1.y; //#22763 + $1.qmv(); //#22763 + var _QW = $k[--$j]; //#22763 + $put($k[--$j], _QW, $1.fpb); //#22763 + $k[$j++] = $1.pixs; //#22764 + $k[$j++] = $f($f($1.size - $1.x) - 1); //#22764 + $k[$j++] = $1.y; //#22764 + $1.qmv(); //#22764 + var _Qd = $k[--$j]; //#22764 + $put($k[--$j], _Qd, $1.fpb); //#22764 + $k[$j++] = $1.pixs; //#22765 + $k[$j++] = $f($f($1.size - $1.x) - 1); //#22765 + $k[$j++] = $f($f($1.size - $1.y) - 1); //#22765 + $1.qmv(); //#22765 + var _Ql = $k[--$j]; //#22765 + $put($k[--$j], _Ql, $1.fpb); //#22765 + $k[$j++] = $1.pixs; //#22766 + $k[$j++] = $1.x; //#22766 + $k[$j++] = $f($f($1.size - $1.y) - 1); //#22766 + $1.qmv(); //#22766 + var _Qs = $k[--$j]; //#22766 + $put($k[--$j], _Qs, $1.fpb2); //#22766 + } //#22766 + } //#22766 + $1.functionmap = $a([$a([$a([0, 8]), $a([$f($1.size - 1), $f($1.size - 9)])]), $a([$a([1, 8]), $a([$f($1.size - 2), $f($1.size - 9)])]), $a([$a([2, 8]), $a([$f($1.size - 3), $f($1.size - 9)])]), $a([$a([3, 8]), $a([$f($1.size - 4), $f($1.size - 9)])]), $a([$a([4, 8]), $a([$f($1.size - 5), $f($1.size - 9)])]), $a([$a([5, 8]), $a([$f($1.size - 6), $f($1.size - 9)])]), $a([$a([6, 8]), $a([$f($1.size - 7), $f($1.size - 9)])]), $a([$a([7, 8]), $a([$f($1.size - 8), $f($1.size - 9)])]), $a([$a([8, 8]), $a([$f($1.size - 9), $f($1.size - 9)])]), $a([$a([8, 7]), $a([$f($1.size - 9), $f($1.size - 8)])]), $a([$a([8, 6]), $a([$f($1.size - 9), $f($1.size - 7)])]), $a([$a([8, 5]), $a([$f($1.size - 9), $f($1.size - 6)])]), $a([$a([8, 4]), $a([$f($1.size - 9), $f($1.size - 5)])]), $a([$a([8, 3]), $a([$f($1.size - 9), $f($1.size - 4)])]), $a([$a([8, 2]), $a([$f($1.size - 9), $f($1.size - 3)])]), $a([$a([8, 1]), $a([$f($1.size - 9), $f($1.size - 2)])]), $a([$a([8, 0]), $a([$f($1.size - 9), $f($1.size - 1)])]), $a([$a([$f($1.size - 9), 0]), $a([8, $f($1.size - 1)])]), $a([$a([$f($1.size - 9), 1]), $a([8, $f($1.size - 2)])]), $a([$a([$f($1.size - 9), 2]), $a([8, $f($1.size - 3)])]), $a([$a([$f($1.size - 9), 3]), $a([8, $f($1.size - 4)])]), $a([$a([$f($1.size - 9), 4]), $a([8, $f($1.size - 5)])]), $a([$a([$f($1.size - 9), 5]), $a([8, $f($1.size - 6)])]), $a([$a([$f($1.size - 9), 6]), $a([8, $f($1.size - 7)])]), $a([$a([$f($1.size - 9), 7]), $a([8, $f($1.size - 8)])]), $a([$a([$f($1.size - 9), 8]), $a([8, $f($1.size - 9)])]), $a([$a([$f($1.size - 8), 8]), $a([7, $f($1.size - 9)])]), $a([$a([$f($1.size - 7), 8]), $a([6, $f($1.size - 9)])]), $a([$a([$f($1.size - 6), 8]), $a([5, $f($1.size - 9)])]), $a([$a([$f($1.size - 5), 8]), $a([4, $f($1.size - 9)])]), $a([$a([$f($1.size - 4), 8]), $a([3, $f($1.size - 9)])]), $a([$a([$f($1.size - 3), 8]), $a([2, $f($1.size - 9)])]), $a([$a([$f($1.size - 2), 8]), $a([1, $f($1.size - 9)])]), $a([$a([$f($1.size - 1), 8]), $a([0, $f($1.size - 9)])])]); //#22790 + var _Tf = $1.functionmap; //#22791 + for (var _Tg = 0, _Th = _Tf.length; _Tg < _Th; _Tg++) { //#22793 + $forall($get(_Tf, _Tg), function() { //#22792 + $forall($k[--$j]); //#22792 + $1.qmv(); //#22792 + $put($1.pixs, $k[--$j], 0); //#22792 + }); //#22792 + } //#22792 + var _Ts = $a([function() { + $j -= 2; //#22796 + $k[$j++] = 1; //#22796 }, function() { - var _YD = $k[--$j]; - var _YE = $k[--$j]; - $k[$j++] = (~~(_YD / 2) + ~~(_YE / 3)) % 2; + var _Tm = $k[--$j]; //#22797 + var _Tn = $k[--$j]; //#22797 + $k[$j++] = $f(_Tn + _Tm) % 2; //#22797 }, function() { - var _YF = $k[--$j]; - var _YH = $k[--$j] * _YF; - $k[$j++] = $f(_YH % 2 + _YH % 3) % 2; + var _To = $k[--$j]; //#22798 + var _Tp = $k[--$j]; //#22798 + $k[$j++] = ($f(($f(_To + _Tp) % 3) + (_Tp % 3))) % 2; //#22798 }, function() { - var _YI = $k[--$j]; - var _YJ = $k[--$j]; - $k[$j++] = $f(_YJ * _YI % 3 + $f(_YJ + _YI) % 2) % 2; - } ]); - var _YN = $a([ function() { - var _YL = $k[--$j]; - var _YM = $k[--$j]; - $k[$j++] = (~~(_YL / 2) + ~~(_YM / 3)) % 2; - } ]); - var _YO = new Map([ [ "full", _Y9 ], [ "micro", _YK ], [ "rmqr", _YN ] ]); - $1.maskfuncs = $get(_YO, $1.format); - if ($1.mask != -1) { - $1.maskfuncs = $a([ $get($1.maskfuncs, $1.mask - 1) ]); - $1.bestmaskval = $1.mask - 1; - } - $1.masks = $a($1.maskfuncs.length); - for (var _Yb = 0, _Ya = $1.masks.length - 1; _Yb <= _Ya; _Yb += 1) { - $1.m = _Yb; - $1.mask = $a($1.rows * $1.cols); - for (var _Yh = 0, _Yg = $f($1.rows - 1); _Yh <= _Yg; _Yh += 1) { - $1.j = _Yh; - for (var _Yk = 0, _Yj = $f($1.cols - 1); _Yk <= _Yj; _Yk += 1) { - $1.i = _Yk; - $k[$j++] = $1.i; - $k[$j++] = $1.j; + var _Tq = $k[--$j]; //#22799 + var _Tr = $k[--$j]; //#22799 + $k[$j++] = ($f((_Tr % _Tq) + ($f((_Tq % _Tr) + ($f((_Tq % 3) + (_Tr % 3))))))) % 2; //#22800 + }]); //#22800 + $1.maskfuncs = _Ts; //#22801 + if ($1.mask != -1) { //#22805 + $1.maskfuncs = $a([$get($1.maskfuncs, $1.mask - 1)]); //#22803 + $1.bestmaskval = $1.mask - 1; //#22804 + } //#22804 + $1.masks = $a($1.maskfuncs.length); //#22806 + for (var _U3 = 0, _U2 = $1.masks.length - 1; _U3 <= _U2; _U3 += 1) { //#22820 + $1.m = _U3; //#22808 + $1.mask = $a($1.size * $1.size); //#22809 + for (var _U9 = 0, _U8 = $f($1.size - 1); _U9 <= _U8; _U9 += 1) { //#22818 + $1.j = _U9; //#22811 + for (var _UC = 0, _UB = $f($1.size - 1); _UC <= _UB; _UC += 1) { //#22817 + $1.i = _UC; //#22813 + $k[$j++] = $1.i + 1; //#22814 + $k[$j++] = $1.j + 1; //#22814 if ($get($1.maskfuncs, $1.m)() === true) { break; - } - var _Yq = $k[--$j]; - $k[$j++] = _Yq == 0; - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.qmv(); - var _Yu = $k[--$j]; - var _Yw = $get($k[--$j], _Yu); - var _Yx = $k[--$j]; - var _Yy = _Yx && _Yw == -1 ? 1 : 0; - $k[$j++] = _Yy; - $k[$j++] = $1.mask; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.qmv(); - var _Z2 = $k[--$j]; - var _Z3 = $k[--$j]; - $put(_Z3, _Z2, $k[--$j]); - } - } - $put($1.masks, $1.m, $1.mask); - } - var _ZA = $ne($1.format, "rmqr") ? 1 : 2; - $1.posx = $f($1.cols - _ZA); - $1.posy = $f($1.rows - 1); - $1.dir = -1; - $1.col = 1; - $1.num = 0; - for (;;) { - if ($1.posx < 0) { - break; - } - $k[$j++] = $1.pixs; - $k[$j++] = $1.posx; - $k[$j++] = $1.posy; - $1.qmv(); - var _ZG = $k[--$j]; - if ($get($k[--$j], _ZG) == -1) { - var _ZL = $get($1.cws, ~~($1.num / 8)); - var _ZN = -(7 - $1.num % 8); - $k[$j++] = (_ZN < 0 ? _ZL >>> -_ZN : _ZL << _ZN) & 1; - $k[$j++] = $1.pixs; - $k[$j++] = $1.posx; - $k[$j++] = $1.posy; - $1.qmv(); - var _ZR = $k[--$j]; - var _ZS = $k[--$j]; - $put(_ZS, _ZR, $k[--$j]); - $1.num = $1.num + 1; - } - if ($1.col == 1) { - $1.col = 0; - $1.posx = $f($1.posx - 1); - } else { - $1.col = 1; - $1.posx = $f($1.posx + 1); - $1.posy = $f($1.posy + $1.dir); - if ($1.posy < 0 || $1.posy >= $1.rows) { - $1.dir = $1.dir * -1; - $1.posy = $f($1.posy + $1.dir); - $1.posx = $f($1.posx - 2); - if ($eq($1.format, "full") && $1.posx == 6) { - $1.posx = $f($1.posx - 1); - } - } - } - } - $1.evalfulln1n3 = function() { - $1.scrle = $k[--$j]; - $k[$j++] = "scr1"; - $k[$j++] = 0; - $forall($1.scrle, function() { - var _Zm = $k[--$j]; - $k[$j++] = _Zm; - if (_Zm >= 5) { - var _Zn = $k[--$j]; - var _Zp = $f($f($k[--$j] + _Zn) - 2); - $k[$j++] = _Zp; - $k[$j++] = _Zp; - } - $j--; - }); - var _Zq = $k[--$j]; - $1[$k[--$j]] = _Zq; - $1.scr3 = 0; - for (var _Zu = 3, _Zt = $1.scrle.length - 3; _Zu <= _Zt; _Zu += 2) { - $1.j = _Zu; - if ($get($1.scrle, $1.j) % 3 == 0) { - $1.fact = ~~($get($1.scrle, $1.j) / 3); - var _a3 = $geti($1.scrle, $1.j - 2, 5); - for (var _a4 = 0, _a5 = _a3.length; _a4 < _a5; _a4++) { - $k[$j++] = $get(_a3, _a4) == $1.fact; - } - var _a8 = $k[--$j]; - var _a9 = $k[--$j]; - var _aA = $k[--$j]; - $k[$j++] = $an(_a9, _a8); - $k[$j++] = _aA; - $j--; - var _aB = $k[--$j]; - var _aC = $k[--$j]; - var _aD = $k[--$j]; - if (_aD && (_aC && _aB)) { - if ($1.j == 3 || $1.j + 4 >= $1.scrle.length) { - $1.scr3 = $1.scr3 + 40; - } else { - if ($get($1.scrle, $1.j - 3) >= 4 || $get($1.scrle, $1.j + 3) >= 4) { - $1.scr3 = $1.scr3 + 40; - } - } - } - } - } - $k[$j++] = $1.scr1; - $k[$j++] = $1.scr3; - }; - $1.evalfull = function() { - $1.sym = $k[--$j]; - $1.n1 = 0; - $1.n2 = 0; - $1.n3 = 0; - $1.rle = $a($f($1.cols + 1)); - $1.lastpairs = $a($1.cols); - $1.thispairs = $a($1.cols); - $1.colsadd1 = $f($1.cols + 1); - for (var _ab = 0, _aa = $f($1.cols - 1); _ab <= _aa; _ab += 1) { - $1.i = _ab; - $k[$j++] = Infinity; - var _ad = $1.cols; - $k[$j++] = 0; - $k[$j++] = 0; - for (var _af = $1.i, _ag = _ad, _ae = $f(_ad * _ad - 1); _ag < 0 ? _af >= _ae : _af <= _ae; _af += _ag) { - var _ai = $get($1.sym, _af); - var _aj = $k[--$j]; - $k[$j++] = _ai; - if ($eq(_aj, _ai)) { - var _ak = $k[--$j]; - var _al = $k[--$j]; - $k[$j++] = $f(_al + 1); - $k[$j++] = _ak; - } else { - var _am = $k[--$j]; - $k[$j++] = 1; - $k[$j++] = _am; - } - } - $j--; - var _ao = $counttomark() + 2; - $astore($geti($1.rle, 0, _ao - 2)); - $1.evalfulln1n3(); - $1.n3 = $f($k[--$j] + $1.n3); - $1.n1 = $f($k[--$j] + $1.n1); - $j--; - $1.symrow = $geti($1.sym, $1.i * $1.cols, $1.cols); - $k[$j++] = Infinity; - var _az = $1.symrow; - $k[$j++] = 0; - $k[$j++] = 0; - for (var _b0 = 0, _b1 = _az.length; _b0 < _b1; _b0++) { - var _b2 = $get(_az, _b0); - var _b3 = $k[--$j]; - $k[$j++] = _b2; - if ($eq(_b3, _b2)) { - var _b4 = $k[--$j]; - var _b5 = $k[--$j]; - $k[$j++] = $f(_b5 + 1); - $k[$j++] = _b4; - } else { - var _b6 = $k[--$j]; - $k[$j++] = 1; - $k[$j++] = _b6; - } - } - $j--; - var _b8 = $counttomark() + 2; - $astore($geti($1.rle, 0, _b8 - 2)); - $1.evalfulln1n3(); - $1.n3 = $f($k[--$j] + $1.n3); - $1.n1 = $f($k[--$j] + $1.n1); - $j--; - var _bE = $1.thispairs; - $1.thispairs = $1.lastpairs; - $1.lastpairs = _bE; - var _bI = $get($1.symrow, 0) == 1 ? 0 : 1; - var _bJ = $1.symrow; - $k[$j++] = _bI; - for (var _bK = 0, _bL = _bJ.length; _bK < _bL; _bK++) { - var _bM = $get(_bJ, _bK); - var _bN = $k[--$j]; - $k[$j++] = $f(_bN + _bM); - $k[$j++] = _bM; - } - $j--; - $astore($1.thispairs); - $j--; - if ($1.i > 0) { - $k[$j++] = Infinity; - $aload($1.lastpairs); - $aload($1.thispairs); - $k[$j++] = $1.n2; - for (var _bU = 0, _bV = $1.cols; _bU < _bV; _bU++) { - var _bW = $k[--$j]; - var _bX = $k[--$j]; - $k[$j++] = _bW; - $k[$j++] = _bX; - var _bZ = $k[$j - 1 - $1.colsadd1]; - if (($f($k[--$j] + _bZ) & 3) == 0) { - var _bb = $k[--$j]; - $k[$j++] = $f(_bb + 3); - } - } - $1.n2 = $k[--$j]; - $cleartomark(); - } - } - $k[$j++] = "dark"; - $k[$j++] = 0; - $forall($1.sym, function() { - var _be = $k[--$j]; - var _bf = $k[--$j]; - $k[$j++] = $f(_bf + _be); - }); - var _bg = $k[--$j]; - $1[$k[--$j]] = _bg; - var _bj = $1.cols; - $1.n4 = ~~(Math.abs($f($1.dark * 100 / (_bj * _bj) - 50)) / 5) * 10; - $k[$j++] = $f($f($f($1.n1 + $1.n2) + $1.n3) + $1.n4); - }; - $1.evalmicro = function() { - $1.sym = $k[--$j]; - $1.dkrhs = 0; - $1.dkbot = 0; - for (var _br = 1, _bq = $f($1.cols - 1); _br <= _bq; _br += 1) { - $1.i = _br; - $k[$j++] = "dkrhs"; - $k[$j++] = $1.dkrhs; - $k[$j++] = $1.sym; - $k[$j++] = $f($1.cols - 1); - $k[$j++] = $1.i; - $1.qmv(); - var _bw = $k[--$j]; - var _by = $get($k[--$j], _bw); - var _bz = $k[--$j]; - $1[$k[--$j]] = $f(_bz + _by); - $k[$j++] = "dkbot"; - $k[$j++] = $1.dkbot; - $k[$j++] = $1.sym; - $k[$j++] = $1.i; - $k[$j++] = $f($1.cols - 1); - $1.qmv(); - var _c5 = $k[--$j]; - var _c7 = $get($k[--$j], _c5); - var _c8 = $k[--$j]; - $1[$k[--$j]] = $f(_c8 + _c7); - } - if ($1.dkrhs <= $1.dkbot) { - $k[$j++] = -($1.dkrhs * 16 + $1.dkbot); - } else { - $k[$j++] = -($1.dkbot * 16 + $1.dkrhs); - } - }; - $1.bestscore = 999999999; - for (var _cI = 0, _cH = $1.masks.length - 1; _cI <= _cH; _cI += 1) { - $1.m = _cI; - $1.masksym = $a($1.rows * $1.cols); - for (var _cP = 0, _cO = $f($1.rows * $1.cols - 1); _cP <= _cO; _cP += 1) { - $1.i = _cP; - $put($1.masksym, $1.i, $xo($get($1.pixs, $1.i), $get($get($1.masks, $1.m), $1.i))); - } - if ($1.masks.length != 1) { - if ($eq($1.format, "full")) { - $k[$j++] = $1.masksym; - $1.evalfull(); - $1.score = $k[--$j]; - } else { - $k[$j++] = $1.masksym; - $1.evalmicro(); - $1.score = $k[--$j]; - } - if ($1.score < $1.bestscore) { - $1.bestsym = $1.masksym; - $1.bestmaskval = $1.m; - $1.bestscore = $1.score; - } - } else { - $1.bestsym = $1.masksym; - } - } - $1.pixs = $1.bestsym; - if ($eq($1.format, "full")) { - $k[$j++] = $1.pixs; - $k[$j++] = 8; - $k[$j++] = $f($1.cols - 8); - $1.qmv(); - var _cq = $k[--$j]; - $put($k[--$j], _cq, 1); - } - if ($eq($1.format, "full")) { - $1.fmtvals = $a([ 21522, 20773, 24188, 23371, 17913, 16590, 20375, 19104, 30660, 29427, 32170, 30877, 26159, 25368, 27713, 26998, 5769, 5054, 7399, 6608, 1890, 597, 3340, 2107, 13663, 12392, 16177, 14854, 9396, 8579, 11994, 11245 ]); - $k[$j++] = "ecid"; - $search("MLHQ", $1.eclevel); - $j--; - var _cv = $k[--$j]; - var _cw = $k[--$j]; - $k[$j++] = _cv.length; - $k[$j++] = _cw; - $j--; - var _cx = $k[--$j]; - var _cy = $k[--$j]; - $k[$j++] = _cx; - $k[$j++] = _cy; - $j--; - var _cz = $k[--$j]; - $1[$k[--$j]] = _cz; - $1.fmtval = $get($1.fmtvals, ($1.ecid << 3) + $1.bestmaskval); - for (var _d7 = 0, _d6 = $1.formatmap.length - 1; _d7 <= _d6; _d7 += 1) { - $1.i = _d7; - $forall($get($1.formatmap, $1.i), function() { - var _dC = $k[--$j]; - $k[$j++] = $1.pixs; - $aload(_dC); - $1.qmv(); - var _dD = $1.fmtval; - var _dF = -(14 - $1.i); - var _dG = $k[--$j]; - $put($k[--$j], _dG, (_dF < 0 ? _dD >>> -_dF : _dD << _dF) & 1); - }); - } - } - if ($eq($1.format, "micro")) { - $1.fmtvals = $a([ 17477, 16754, 20011, 19228, 21934, 20633, 24512, 23287, 26515, 25252, 28157, 26826, 30328, 29519, 31766, 31009, 1758, 1001, 3248, 2439, 5941, 4610, 7515, 6252, 9480, 8255, 12134, 10833, 13539, 12756, 16013, 15290 ]); - $1.symid = $get($get($a([ $a([ 0 ]), $a([ 1, 2 ]), $a([ 3, 4 ]), $a([ 5, 6, 7 ]) ]), ~~($f($1.cols - 11) / 2)), $1.eclval); - $1.fmtval = $get($1.fmtvals, ($1.symid << 2) + $1.bestmaskval); - for (var _dZ = 0, _dY = $1.formatmap.length - 1; _dZ <= _dY; _dZ += 1) { - $1.i = _dZ; - $k[$j++] = $1.pixs; - $aload($get($get($1.formatmap, $1.i), 0)); - $1.qmv(); - var _df = $1.fmtval; - var _dh = -(14 - $1.i); - var _di = $k[--$j]; - $put($k[--$j], _di, (_dh < 0 ? _df >>> -_dh : _df << _dh) & 1); - } - } - if ($eq($1.format, "rmqr")) { - $1.fmtvals1 = $a([ 129714, 124311, 121821, 115960, 112748, 108361, 104707, 99878, 98062, 90155, 89697, 82244, 81360, 74485, 72895, 66458, 61898, 61167, 53413, 53120, 45844, 44081, 37499, 36190, 29814, 27475, 21785, 19004, 13992, 10637, 6087, 2274, 258919, 257090, 250376, 249133, 242105, 241308, 233686, 233459, 227035, 223742, 219060, 215185, 209925, 207648, 202090, 199247, 194591, 190266, 186736, 181845, 178881, 173540, 170926, 165003, 163235, 156294, 154828, 148457, 147325, 139352, 138770, 131383 ]); - $1.fmtvals2 = $a([ 133755, 136542, 142100, 144433, 149669, 153472, 158154, 161519, 167879, 168162, 175784, 176525, 183577, 184892, 191606, 193363, 196867, 204326, 204908, 212809, 213981, 220408, 221874, 228759, 230591, 236442, 239056, 244469, 247393, 252228, 255758, 260139, 942, 7307, 8897, 15844, 16752, 24149, 24607, 32570, 34322, 39223, 42877, 47192, 50380, 56297, 58787, 64134, 67798, 71667, 76217, 79516, 84488, 87341, 93031, 95298, 101738, 102991, 109573, 111392, 118708, 118929, 126683, 127486 ]); - $k[$j++] = "fmtvalu"; - $search("MH", $1.eclevel); - $j--; - var _do = $k[--$j]; - var _dp = $k[--$j]; - $k[$j++] = _do.length; - $k[$j++] = _dp; - $j--; - var _dq = $k[--$j]; - var _dr = $k[--$j]; - $k[$j++] = _dq; - $k[$j++] = _dr; - $j--; - var _ds = $k[--$j]; - $1[$k[--$j]] = (_ds << 5) + $1.verind; - $1.fmtval1 = $get($1.fmtvals1, $1.fmtvalu); - $1.fmtval2 = $get($1.fmtvals2, $1.fmtvalu); - for (var _e3 = 0, _e2 = $1.formatmap.length - 1; _e3 <= _e2; _e3 += 1) { - $1.i = _e3; - $k[$j++] = $1.pixs; - $aload($get($get($1.formatmap, $1.i), 0)); - $1.qmv(); - var _e9 = $1.fmtval1; - var _eB = -(17 - $1.i); - var _eC = $k[--$j]; - $put($k[--$j], _eC, (_eB < 0 ? _e9 >>> -_eB : _e9 << _eB) & 1); - $k[$j++] = $1.pixs; - $aload($get($get($1.formatmap, $1.i), 1)); - $1.qmv(); - var _eJ = $1.fmtval2; - var _eL = -(17 - $1.i); - var _eM = $k[--$j]; - $put($k[--$j], _eM, (_eL < 0 ? _eJ >>> -_eL : _eJ << _eL) & 1); - } - } - if ($eq($1.format, "full") && $1.cols >= 45) { - $1.vervals = $a([ 31892, 34236, 39577, 42195, 48118, 51042, 55367, 58893, 63784, 68472, 70749, 76311, 79154, 84390, 87683, 92361, 96236, 102084, 102881, 110507, 110734, 117786, 119615, 126325, 127568, 133589, 136957, 141498, 145311, 150283, 152622, 158308, 161089, 167017 ]); - $1.verval = $get($1.vervals, ~~($f($1.cols - 17) / 4) - 7); - for (var _eW = 0, _eV = $1.versionmap.length - 1; _eW <= _eV; _eW += 1) { - $1.i = _eW; - $forall($get($1.versionmap, $1.i), function() { - var _eb = $k[--$j]; - $k[$j++] = $1.pixs; - $forall(_eb); - $1.qmv(); - var _ec = $1.verval; - var _ee = -(17 - $1.i); - var _ef = $k[--$j]; - $put($k[--$j], _ef, (_ee < 0 ? _ec >>> -_ee : _ec << _ee) & 1); - }); - } - } - var _en = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", $1.cols ], [ "pixy", $1.rows ], [ "height", $1.rows * 2 / 72 ], [ "width", $1.cols * 2 / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _en; - if (!$1.dontdraw) { - $0.renmatrix(); - } - }; - $0.swissqrcode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.parse = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - var _6 = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _6; - $k[$j++] = "barcode"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _9 = $k[--$j]; - $1[$k[--$j]] = _9; - $1.barlen = $1.barcode.length; - delete $1.options["parse"]; - if ($1.barcode.length > 997) { - $k[$j++] = "bwipp.swissqrcodeBadLength"; - $k[$j++] = "Swiss QR Code input must not exceed 997 digits"; - $0.raiseerror(); - } - $put($1.options, "dontdraw", true); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.qrcode(); - var _H = $k[--$j]; - $1[$k[--$j]] = _H; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $$.save(); - var _N = $$.currpos(); - $$.translate(_N.x, _N.y); - var _O = 72 / 25.4; - $$.scale(_O, _O); - $$.save(); - $$.newpath(); - $$.moveto(0, 0); - $$.lineto(46, 0); - $$.lineto(46, 46); - $$.lineto(0, 46); - $$.closepath(); - $$.moveto(19.5, 19.5); - $$.lineto(19.5, 26.5); - $$.lineto(26.5, 26.5); - $$.lineto(26.5, 19.5); - $$.closepath(); - $$.clip(); - $$.save(); - $$.moveto(0, 0); - var _R = 46 / $get($1.args, "pixx") / 2; - $$.scale(_R, _R); - $0.renmatrix(); - $$.restore(); - $$.restore(); - $$.translate(19.5, 19.5); - var _S = 7 / 83; - $$.scale(_S, _S); - $$.newpath(); - $$.moveto(6, 6); - $$.lineto(6, 77); - $$.lineto(77, 77); - $$.lineto(77, 6); - $$.closepath(); - $$.moveto(49, 18); - $$.lineto(49, 34); - $$.lineto(65, 34); - $$.lineto(65, 49); - $$.lineto(49, 49); - $$.lineto(49, 65); - $$.lineto(34, 65); - $$.lineto(34, 49); - $$.lineto(18, 49); - $$.lineto(18, 34); - $$.lineto(34, 34); - $$.lineto(34, 18); - $$.closepath(); - $$.setrgbcolor(0, 0, 0); - $$.fill(); - $$.restore(); - } - }; - $0.microqrcode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $put($1.options, "dontdraw", true); - $put($1.options, "format", "micro"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.qrcode(); - var _9 = $k[--$j]; - $1[$k[--$j]] = _9; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } - }; - $0.rectangularmicroqrcode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $put($1.options, "dontdraw", true); - $put($1.options, "format", "rmqr"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.qrcode(); - var _9 = $k[--$j]; - $1[$k[--$j]] = _9; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } - }; - $0.maxicode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.mode = -1; - $1.sam = -1; - $1.parse = false; - $1.parsefnc = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.mode = ~~$1.mode; - $1.sam = ~~$1.sam; - var _9 = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "eci", true ] ]); - $1.fncvals = _9; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _C = $k[--$j]; - $1[$k[--$j]] = _C; - $1.msglen = $1.msg.length; - if ($1.mode == 2 || $1.mode == 3) { - $1.barcode = $s($1.msglen); - for (var _L = 0, _K = $1.msglen - 1; _L <= _K; _L += 1) { - $1.i = _L; - if ($get($1.msg, $1.i) > 0) { - $put($1.barcode, $1.i, $get($1.msg, $1.i)); - } - } - $1.barlen = $1.barcode.length; - if ($eq($geti($1.barcode, 0, 7), "[)>01")) { - $1.fid = $geti($1.barcode, 0, 9); - $1.barcode = $geti($1.barcode, 9, $1.barlen - 9); - } else { - $1.fid = ""; - } - $search($1.barcode, ""); - $j--; - $1.pcode = $k[--$j]; - $j--; - $search($k[--$j], ""); - $j--; - $1.ccode = $k[--$j]; - $j--; - $search($k[--$j], ""); - $j--; - $1.scode = $k[--$j]; - $j--; - $1.barcode = $k[--$j]; - var _l = $s($1.barcode.length + $1.fid.length); - $puti(_l, 0, $1.fid); - $puti(_l, $1.fid.length, $1.barcode); - $1.barcode = _l; - $1.barlen = $1.barcode.length; - $k[$j++] = Infinity; - var _q = $1.barcode; - for (var _r = 0, _s = _q.length; _r < _s; _r++) { - $k[$j++] = $get(_q, _r); - } - $1.msg = $a(); - $1.msglen = $1.msg.length; - } - $1.eci = -1; - $1.pad = -2; - $1.ns = -3; - $1.la = -4; - $1.lb = -5; - $1.sa = -6; - $1.sb = -7; - $1.sc = -8; - $1.sd = -9; - $1.se = -10; - $1.sa2 = -11; - $1.sa3 = -12; - $1.lkc = -13; - $1.lkd = -14; - $1.lke = -15; - $1.pd2 = -16; - $1.pd3 = -17; - $1.charmaps = $a([ $a([ 13, "`", 192, 224, 0 ]), $a([ "A", "a", 193, 225, 1 ]), $a([ "B", "b", 194, 226, 2 ]), $a([ "C", "c", 195, 227, 3 ]), $a([ "D", "d", 196, 228, 4 ]), $a([ "E", "e", 197, 229, 5 ]), $a([ "F", "f", 198, 230, 6 ]), $a([ "G", "g", 199, 231, 7 ]), $a([ "H", "h", 200, 232, 8 ]), $a([ "I", "i", 201, 233, 9 ]), $a([ "J", "j", 202, 234, 10 ]), $a([ "K", "k", 203, 235, 11 ]), $a([ "L", "l", 204, 236, 12 ]), $a([ "M", "m", 205, 237, 13 ]), $a([ "N", "n", 206, 238, 14 ]), $a([ "O", "o", 207, 239, 15 ]), $a([ "P", "p", 208, 240, 16 ]), $a([ "Q", "q", 209, 241, 17 ]), $a([ "R", "r", 210, 242, 18 ]), $a([ "S", "s", 211, 243, 19 ]), $a([ "T", "t", 212, 244, 20 ]), $a([ "U", "u", 213, 245, 21 ]), $a([ "V", "v", 214, 246, 22 ]), $a([ "W", "w", 215, 247, 23 ]), $a([ "X", "x", 216, 248, 24 ]), $a([ "Y", "y", 217, 249, 25 ]), $a([ "Z", "z", 218, 250, 26 ]), $a([ $1.eci, $1.eci, $1.eci, $1.eci, $1.eci ]), $a([ 28, 28, 28, 28, $1.pad ]), $a([ 29, 29, 29, 29, $1.pad ]), $a([ 30, 30, 30, 30, 27 ]), $a([ $1.ns, $1.ns, $1.ns, $1.ns, $1.ns ]), $a([ " ", "{", 219, 251, 28 ]), $a([ $1.pad, $1.pad, 220, 252, 29 ]), $a([ '"', "}", 221, 253, 30 ]), $a([ "#", "~", 222, 254, 31 ]), $a([ "$", 127, 223, 255, 159 ]), $a([ "%", ";", 170, 161, 160 ]), $a([ "&", "<", 172, 168, 162 ]), $a([ "'", "=", 177, 171, 163 ]), $a([ 40, ">", 178, 175, 164 ]), $a([ 41, "?", 179, 176, 165 ]), $a([ "*", "[", 181, 180, 166 ]), $a([ "+", 92, 185, 183, 167 ]), $a([ ",", "]", 186, 184, 169 ]), $a([ "-", "^", 188, 187, 173 ]), $a([ ".", "_", 189, 191, 174 ]), $a([ "/", " ", 190, 138, 182 ]), $a([ "0", ",", 128, 139, 149 ]), $a([ "1", ".", 129, 140, 150 ]), $a([ "2", "/", 130, 141, 151 ]), $a([ "3", ":", 131, 142, 152 ]), $a([ "4", "@", 132, 143, 153 ]), $a([ "5", "!", 133, 144, 154 ]), $a([ "6", "|", 134, 145, 155 ]), $a([ "7", $1.pd2, 135, 146, 156 ]), $a([ "8", $1.sa2, 136, 147, 157 ]), $a([ "9", $1.sa3, 137, 148, 158 ]), $a([ ":", $1.pd3, $1.la, $1.la, $1.la ]), $a([ $1.sb, $1.sa, " ", " ", " " ]), $a([ $1.sc, $1.sc, $1.lkc, $1.sc, $1.sc ]), $a([ $1.sd, $1.sd, $1.sd, $1.lkd, $1.sd ]), $a([ $1.se, $1.se, $1.se, $1.se, $1.lke ]), $a([ $1.lb, $1.la, $1.lb, $1.lb, $1.lb ]) ]); - $1.charvals = $a([ new Map(), new Map(), new Map(), new Map(), new Map() ]); - for (var _2j = 0, _2i = $1.charmaps.length - 1; _2j <= _2i; _2j += 1) { - $1.i = _2j; - $1.encs = $get($1.charmaps, $1.i); - for (var _2n = 0; _2n <= 4; _2n += 1) { - $1.j = _2n; - var _2q = $get($1.encs, $1.j); - $k[$j++] = _2q; - if ($eq($type(_2q), "stringtype")) { - var _2t = $get($k[--$j], 0); - $k[$j++] = _2t; - } - $put($get($1.charvals, $1.j), $k[--$j], $1.i); - } - } - $1.seta = $get($1.charvals, 0); - $1.setb = $get($1.charvals, 1); - $1.setc = $get($1.charvals, 2); - $1.setd = $get($1.charvals, 3); - $1.sete = $get($1.charvals, 4); - $k[$j++] = Infinity; - for (var _3A = 0, _3B = $1.msglen + 1; _3A < _3B; _3A++) { - $k[$j++] = 0; - } - $1.nseq = $a(); - for (var _3E = $1.msglen - 1; _3E >= 0; _3E -= 1) { - $1.i = _3E; - var _3H = $get($1.msg, $1.i); - if (_3H >= 48 && _3H <= 57) { - $put($1.nseq, $1.i, $f($get($1.nseq, $1.i + 1) + 1)); - } else { - $put($1.nseq, $1.i, 0); - } - } - $1.nseq = $geti($1.nseq, 0, $1.msglen); - $1.prefixinset = function() { - $k[$j++] = 0; - for (;;) { - var _3S = $k[--$j]; - var _3T = $k[--$j]; - $k[$j++] = _3T; - $k[$j++] = _3S; - if (_3S >= _3T.length) { - break; - } - var _3U = $k[--$j]; - var _3V = $k[--$j]; - var _3X = $k[--$j]; - var _3Y = $get(_3X, $get(_3V, _3U)) !== undefined; - $k[$j++] = _3X; - $k[$j++] = _3V; - $k[$j++] = _3U; - if (_3Y) { - var _3Z = $k[--$j]; - $k[$j++] = $f(_3Z + 1); - } else { - break; - } - } - var _3a = $k[--$j]; - var _3b = $k[--$j]; - $k[$j++] = _3a; - $k[$j++] = _3b; - $j--; - var _3c = $k[--$j]; - var _3d = $k[--$j]; - $k[$j++] = _3c; - $k[$j++] = _3d; - $j--; - }; - $1.enc = function() { - var _3e = $k[--$j]; - $put($1.out, $1.j, $get(_3e, $k[--$j])); - $1.j = $1.j + 1; - }; - $1.out = $a(144); - $1.i = 0; - $1.j = 0; - $1.cset = "seta"; - for (;;) { - if ($1.i == $1.msglen) { - if ($ne($1.cset, "seta") && $ne($1.cset, "setb")) { - $k[$j++] = $1.la; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $1.cset = "seta"; - } - break; - } - for (;;) { - if ($get($1.msg, $1.i) <= -1e6) { - $k[$j++] = $1.eci; - $k[$j++] = $1[$1.cset]; - $1.enc(); - var _41 = $f(-$get($1.msg, $1.i) - 1e6); - $k[$j++] = _41; - if (_41 <= 31) { - var _42 = $k[--$j]; - $k[$j++] = _42 & 63; - $astore($a(1)); - } else { - var _44 = $k[--$j]; - $k[$j++] = _44; - if (_44 <= 1023) { - var _45 = $k[--$j]; - $k[$j++] = _45 >>> 6 & 31 | 32; - $k[$j++] = _45 & 63; - $astore($a(2)); - } else { - var _47 = $k[--$j]; - $k[$j++] = _47; - if (_47 <= 32767) { - var _48 = $k[--$j]; - $k[$j++] = _48 >>> 12 & 47 | 48; - $k[$j++] = _48 >>> 6 & 63; - $k[$j++] = _48 & 63; - $astore($a(3)); - } else { - var _4A = $k[--$j]; - $k[$j++] = _4A >>> 18 & 55 | 56; - $k[$j++] = _4A >>> 12 & 63; - $k[$j++] = _4A >>> 6 & 63; - $k[$j++] = _4A & 63; - $astore($a(4)); - } - } - } - var _4C = $k[--$j]; - $puti($1.out, $1.j, _4C); - $1.j = _4C.length + $1.j; - $1.i = $1.i + 1; - break; - } - if ($get($1.nseq, $1.i) >= 9) { - var _4M = $geti($1.msg, $1.i, 9); - $k[$j++] = 0; - for (var _4N = 0, _4O = _4M.length; _4N < _4O; _4N++) { - var _4Q = $k[--$j]; - $k[$j++] = $f(_4Q + $f($get(_4M, _4N) - 48)) * 10; - } - var _4R = $k[--$j]; - $k[$j++] = ~~(_4R / 10); - for (var _4S = 0, _4T = 4; _4S < _4T; _4S++) { - var _4U = $k[--$j]; - $k[$j++] = _4U & 63; - $k[$j++] = _4U >>> 6; - } - $k[$j++] = $get($1[$1.cset], $1.ns); - for (var _4Z = 0; _4Z <= 10; _4Z += 2) { - var _4a = $k[$j - 1 - _4Z]; - $k[$j++] = _4a; - } - $astore($a(6)); - var _4c = $k[--$j]; - var _4d = $k[--$j]; - var _4e = $k[--$j]; - var _4f = $k[--$j]; - var _4g = $k[--$j]; - var _4h = $k[--$j]; - var _4i = $k[--$j]; - $k[$j++] = _4c; - $k[$j++] = _4i; - $k[$j++] = _4h; - $k[$j++] = _4g; - $k[$j++] = _4f; - $k[$j++] = _4e; - $k[$j++] = _4d; - for (var _4j = 0, _4k = 6; _4j < _4k; _4j++) { - $j--; - } - $puti($1.out, $1.j, $k[--$j]); - $1.i = $1.i + 9; - $1.j = $1.j + 6; - break; - } - $1.char1 = $get($1.msg, $1.i); - $k[$j++] = "char2"; - if ($1.i + 1 < $1.msglen) { - $k[$j++] = $get($1.msg, $1.i + 1); - } else { - $k[$j++] = -99; - } - var _4y = $k[--$j]; - $1[$k[--$j]] = _4y; - $k[$j++] = "char3"; - if ($1.i + 2 < $1.msglen) { - $k[$j++] = $get($1.msg, $1.i + 2); - } else { - $k[$j++] = -99; - } - var _55 = $k[--$j]; - $1[$k[--$j]] = _55; - var _5A = $get($1[$1.cset], $1.char1) !== undefined; - if (_5A) { - $k[$j++] = $1.char1; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $1.i = $1.i + 1; - break; - } - var _5I = $get($1.setb, $1.char1) !== undefined; - if ($eq($1.cset, "seta") && _5I) { - var _5L = $get($1.setb, $1.char2) !== undefined; - if (_5L) { - $k[$j++] = $1.lb; - $k[$j++] = $1.seta; - $1.enc(); - $1.cset = "setb"; - } else { - $k[$j++] = $1.sb; - $k[$j++] = $1.seta; - $1.enc(); - $k[$j++] = $1.char1; - $k[$j++] = $1.setb; - $1.enc(); - $1.i = $1.i + 1; - } - break; - } - var _5W = $get($1.seta, $1.char1) !== undefined; - if ($eq($1.cset, "setb") && _5W) { - var _5X = $1.seta; - var _5Y = $1.msg; - var _5Z = $1.i; - var _5a = $1.msglen; - var _5b = $1.i; - var _5c = _5a - _5b; - var _5d = 4; - if (4 > _5a - _5b) { - var _ = _5c; - _5c = _5d; - _5d = _; - } - $k[$j++] = "p"; - $k[$j++] = _5X; - $k[$j++] = $geti(_5Y, _5Z, _5d); - $1.prefixinset(); - var _5f = $k[--$j]; - $1[$k[--$j]] = _5f; - if ($1.p == 1) { - $k[$j++] = $1.sa; - $k[$j++] = $1.setb; - $1.enc(); - $k[$j++] = $1.char1; - $k[$j++] = $1.seta; - $1.enc(); - $1.i = $1.i + 1; - } - if ($1.p == 2) { - $k[$j++] = $1.sa2; - $k[$j++] = $1.setb; - $1.enc(); - $k[$j++] = $1.char1; - $k[$j++] = $1.seta; - $1.enc(); - $k[$j++] = $1.char2; - $k[$j++] = $1.seta; - $1.enc(); - $1.i = $1.i + 2; - } - if ($1.p == 3) { - $k[$j++] = $1.sa3; - $k[$j++] = $1.setb; - $1.enc(); - $k[$j++] = $1.char1; - $k[$j++] = $1.seta; - $1.enc(); - $k[$j++] = $1.char2; - $k[$j++] = $1.seta; - $1.enc(); - $k[$j++] = $1.char3; - $k[$j++] = $1.seta; - $1.enc(); - $1.i = $1.i + 3; - } - if ($1.p >= 4) { - $k[$j++] = $1.la; - $k[$j++] = $1.setb; - $1.enc(); - $1.cset = "seta"; - } - break; - } - var _6A = $get($1.seta, $1.char1) !== undefined; - if (_6A) { - $k[$j++] = $1.la; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $1.cset = "seta"; - break; - } - var _6G = $get($1.setb, $1.char1) !== undefined; - if (_6G) { - $k[$j++] = $1.lb; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $1.cset = "setb"; - break; - } - var _6M = $get($1.setc, $1.char1) !== undefined; - if (_6M) { - $1.setx = "setc"; - $1.sx = $1.sc; - $1.lkx = $1.lkc; - } - var _6R = $get($1.setd, $1.char1) !== undefined; - if (_6R) { - $1.setx = "setd"; - $1.sx = $1.sd; - $1.lkx = $1.lkd; - } - var _6W = $get($1.sete, $1.char1) !== undefined; - if (_6W) { - $1.setx = "sete"; - $1.sx = $1.se; - $1.lkx = $1.lke; - } - var _6a = $1[$1.setx]; - var _6b = $1.msg; - var _6c = $1.i; - var _6d = $1.msglen; - var _6e = $1.i; - var _6f = _6d - _6e; - var _6g = 4; - if (4 > _6d - _6e) { - var _ = _6f; - _6f = _6g; - _6g = _; - } - $k[$j++] = "p"; - $k[$j++] = _6a; - $k[$j++] = $geti(_6b, _6c, _6g); - $1.prefixinset(); - var _6i = $k[--$j]; - $1[$k[--$j]] = _6i; - if ($1.p == 1) { - $k[$j++] = $1.sx; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $k[$j++] = $1.char1; - $k[$j++] = $1[$1.setx]; - $1.enc(); - $1.i = $1.i + 1; - } - if ($1.p == 2) { - $k[$j++] = $1.sx; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $k[$j++] = $1.char1; - $k[$j++] = $1[$1.setx]; - $1.enc(); - $k[$j++] = $1.sx; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $k[$j++] = $1.char2; - $k[$j++] = $1[$1.setx]; - $1.enc(); - $1.i = $1.i + 2; - } - if ($1.p == 3) { - $k[$j++] = $1.sx; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $k[$j++] = $1.char1; - $k[$j++] = $1[$1.setx]; - $1.enc(); - $k[$j++] = $1.sx; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $k[$j++] = $1.char2; - $k[$j++] = $1[$1.setx]; - $1.enc(); - $k[$j++] = $1.sx; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $k[$j++] = $1.char3; - $k[$j++] = $1[$1.setx]; - $1.enc(); - $1.i = $1.i + 3; - } - if ($1.p >= 4) { - $k[$j++] = $1.sx; - $k[$j++] = $1[$1.cset]; - $1.enc(); - $k[$j++] = $1.lkx; - $k[$j++] = $1[$1.setx]; - $1.enc(); - $1.cset = $1.setx; - } - break; - } - } - $1.encmsg = $geti($1.out, 0, $1.j); - $1.padval = $get($1[$1.cset], $1.pad); - $1.sami = $a([]); - if ($1.sam != -1) { - $1.sami = $a(2); - $put($1.sami, 0, $get($1.seta, $1.pad)); - $put($1.sami, 1, (~~($1.sam / 10) - 1) * 8 + ($1.sam % 10 - 1)); - } - $k[$j++] = Infinity; - $aload($1.sami); - $aload($1.encmsg); - $1.encmsg = $a(); - if ($1.mode == 2 || $1.mode == 3) { - var _7v = $strcpy($s(4), "0000"); - var _7y = $cvrs($s(4), ~~$1.mode, 2); - $puti(_7v, 4 - _7y.length, _7y); - $1.mdb = _7v; - var _80 = $strcpy($s(10), "0000000000"); - var _83 = $cvrs($s(10), ~~$z($1.ccode), 2); - $puti(_80, 10 - _83.length, _83); - $1.ccb = _80; - var _85 = $strcpy($s(10), "0000000000"); - var _88 = $cvrs($s(10), ~~$z($1.scode), 2); - $puti(_85, 10 - _88.length, _88); - $1.scb = _85; - $1.pcb = $strcpy($s(36), "000000000000000000000000000000000000"); - if ($1.mode == 2) { - var _8F = $cvrs($s(6), $1.pcode.length, 2); - $puti($1.pcb, 6 - _8F.length, _8F); - var _8J = $cvrs($s(30), ~~$z($1.pcode), 2); - $puti($1.pcb, 36 - _8J.length, _8J); - } else { - $k[$j++] = Infinity; - var _8L = $strcpy($s(6), " "); - $k[$j++] = _8L; - $k[$j++] = _8L; - $k[$j++] = 0; - if ($1.pcode.length > 6) { - $k[$j++] = $geti($1.pcode, 0, 6); - } else { - $k[$j++] = $1.pcode; - } - var _8Q = $k[--$j]; - var _8R = $k[--$j]; - $puti($k[--$j], _8R, _8Q); - $forall($k[--$j], function() { - var _8W = $get($1.seta, $k[--$j]); - $k[$j++] = _8W; - }); - $1.pccw = $a(); - for (var _8Y = 0; _8Y <= 5; _8Y += 1) { - $1.i = _8Y; - var _8e = $cvrs($s(6), $get($1.pccw, $1.i), 2); - $puti($1.pcb, 6 * $1.i + 6 - _8e.length, _8e); - } - } - $1.scm = $s(60); - $puti($1.scm, 2, $1.mdb); - $puti($1.scm, 38, $geti($1.pcb, 0, 4)); - $puti($1.scm, 30, $geti($1.pcb, 4, 6)); - $puti($1.scm, 24, $geti($1.pcb, 10, 6)); - $puti($1.scm, 18, $geti($1.pcb, 16, 6)); - $puti($1.scm, 12, $geti($1.pcb, 22, 6)); - $puti($1.scm, 6, $geti($1.pcb, 28, 6)); - $puti($1.scm, 0, $geti($1.pcb, 34, 2)); - $puti($1.scm, 52, $geti($1.ccb, 0, 2)); - $puti($1.scm, 42, $geti($1.ccb, 2, 6)); - $puti($1.scm, 36, $geti($1.ccb, 8, 2)); - $puti($1.scm, 54, $geti($1.scb, 0, 6)); - $puti($1.scm, 48, $geti($1.scb, 6, 4)); - $1.pri = $a([ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]); - for (var _9K = 0; _9K <= 59; _9K += 1) { - $1.i = _9K; - $1.ps = ~~($1.i / 6); - $1.ep = ~~Math.pow(2, 5 - $1.i % 6) * ($get($1.scm, $1.i) - 48); - $put($1.pri, $1.ps, $f($get($1.pri, $1.ps) + $1.ep)); - } - $k[$j++] = Infinity; - for (var _9W = 0, _9X = 84; _9W < _9X; _9W++) { - $k[$j++] = $1.padval; - } - $1.sec = $a(); - $puti($1.sec, 0, $1.encmsg); - } - if ($1.mode == 4 || $1.mode == 5 || $1.mode == 6 || $1.mode == -1) { - if ($1.mode == -1) { - var _9i = $1.encmsg.length <= 77 ? 5 : 4; - $1.mode = _9i; - } - $k[$j++] = Infinity; - var _9k = $1.mode == 5 ? 78 : 94; - for (var _9l = 0, _9m = _9k; _9l < _9m; _9l++) { - $k[$j++] = $1.padval; - } - $1.cws = $a(); - $put($1.cws, 0, $1.mode); - $puti($1.cws, 1, $1.encmsg); - $1.pri = $geti($1.cws, 0, 10); - $1.sec = $geti($1.cws, 10, $1.cws.length - 10); - } - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _9y = 0, _9z = 63; _9y < _9z; _9y++) { - var _A0 = $k[--$j]; - var _A1 = _A0 * 2; - $k[$j++] = _A0; - $k[$j++] = _A1; - if (_A1 >= 64) { - var _A2 = $k[--$j]; - $k[$j++] = _A2 ^ 67; - } - } - $1.rsalog = $a(); - $1.rslog = $a(64); - for (var _A5 = 1; _A5 <= 63; _A5 += 1) { - $put($1.rslog, $get($1.rsalog, _A5), _A5); - } - $1.rsprod = function() { - var _A9 = $k[--$j]; - var _AA = $k[--$j]; - $k[$j++] = _AA; - $k[$j++] = _A9; - if (_A9 != 0 && _AA != 0) { - var _AD = $get($1.rslog, $k[--$j]); - var _AI = $get($1.rsalog, $f(_AD + $get($1.rslog, $k[--$j])) % 63); - $k[$j++] = _AI; - } else { - $j -= 2; - $k[$j++] = 0; - } - }; - $1.rscodes = function() { - $1.rsnum = $k[--$j]; - $1.cwb = $k[--$j]; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _AM = 0, _AN = $1.rsnum; _AM < _AN; _AM++) { - $k[$j++] = 0; - } - $1.coeffs = $a(); - for (var _AR = 1, _AQ = $1.rsnum; _AR <= _AQ; _AR += 1) { - $1.i = _AR; - $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); - for (var _AY = $1.i - 1; _AY >= 1; _AY -= 1) { - $1.j = _AY; - $k[$j++] = $1.coeffs; - $k[$j++] = $1.j; - $k[$j++] = $get($1.coeffs, $1.j - 1); - $k[$j++] = $get($1.coeffs, $1.j); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _Ak = $k[--$j]; - var _Al = $k[--$j]; - var _Am = $k[--$j]; - $put($k[--$j], _Am, $xo(_Al, _Ak)); - } - $k[$j++] = $1.coeffs; - $k[$j++] = 0; - $k[$j++] = $get($1.coeffs, 0); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _Au = $k[--$j]; - var _Av = $k[--$j]; - $put($k[--$j], _Av, _Au); - } - $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); - $k[$j++] = Infinity; - for (var _B1 = 0, _B2 = $1.rsnum; _B1 < _B2; _B1++) { - $k[$j++] = 0; - } - $1.ecb = $a(); - for (var _B6 = 0, _B5 = $1.cwb.length - 1; _B6 <= _B5; _B6 += 1) { - $1.t = $xo($get($1.cwb, _B6), $get($1.ecb, 0)); - for (var _BC = $1.ecb.length - 1; _BC >= 0; _BC -= 1) { - $1.i = _BC; - $1.p = $1.ecb.length - $1.i - 1; - $k[$j++] = $1.ecb; - $k[$j++] = $1.p; - $k[$j++] = $1.t; - $k[$j++] = $get($1.coeffs, $1.i); - $1.rsprod(); - var _BL = $k[--$j]; - var _BM = $k[--$j]; - $put($k[--$j], _BM, _BL); - if ($1.i > 0) { - $put($1.ecb, $1.p, $xo($get($1.ecb, $1.p + 1), $get($1.ecb, $1.p))); - } - } - } - $k[$j++] = $1.ecb; - }; - $k[$j++] = Infinity; - for (var _Ba = 0, _BZ = $1.sec.length - 1; _Ba <= _BZ; _Ba += 2) { - $k[$j++] = $get($1.sec, _Ba); - } - $1.seco = $a(); - $k[$j++] = Infinity; - for (var _Bg = 1, _Bf = $1.sec.length - 1; _Bg <= _Bf; _Bg += 2) { - $k[$j++] = $get($1.sec, _Bg); - } - $1.sece = $a(); - var _Bl = $1.sec.length == 84 ? 20 : 28; - $1.scodes = _Bl; - $k[$j++] = "secochk"; - $k[$j++] = $1.seco; - $k[$j++] = $1.scodes; - $1.rscodes(); - var _Bo = $k[--$j]; - $1[$k[--$j]] = _Bo; - $k[$j++] = "secechk"; - $k[$j++] = $1.sece; - $k[$j++] = $1.scodes; - $1.rscodes(); - var _Bs = $k[--$j]; - $1[$k[--$j]] = _Bs; - $k[$j++] = Infinity; - for (var _Bw = 0, _Bv = $1.scodes - 1; _Bw <= _Bv; _Bw += 1) { - $k[$j++] = $get($1.secochk, _Bw); - $k[$j++] = $get($1.secechk, _Bw); - } - $1.secchk = $a(); - $k[$j++] = Infinity; - $aload($1.pri); - $k[$j++] = $1.pri; - $k[$j++] = 10; - $1.rscodes(); - $aload($k[--$j]); - $aload($1.sec); - $aload($1.secchk); - $1.codewords = $a(); - $k[$j++] = Infinity; - for (var _C8 = 0, _C9 = 864; _C8 < _C9; _C8++) { - $k[$j++] = 0; - } - $1.mods = $a(); - for (var _CB = 0; _CB <= 143; _CB += 1) { - $1.i = _CB; - $k[$j++] = Infinity; - var _CG = $cvrs($s(6), $get($1.codewords, $1.i), 2); - for (var _CH = 0, _CI = _CG.length; _CH < _CI; _CH++) { - $k[$j++] = $get(_CG, _CH) - 48; - } - $1.cw = $a(); - $puti($1.mods, 6 * $1.i + (6 - $1.cw.length), $1.cw); - } - $1.modmap = $a([ 469, 529, 286, 316, 347, 346, 673, 672, 703, 702, 647, 676, 283, 282, 313, 312, 370, 610, 618, 379, 378, 409, 408, 439, 705, 704, 559, 589, 588, 619, 458, 518, 640, 701, 675, 674, 285, 284, 315, 314, 310, 340, 531, 289, 288, 319, 349, 348, 456, 486, 517, 516, 471, 470, 369, 368, 399, 398, 429, 428, 549, 548, 579, 578, 609, 608, 649, 648, 679, 678, 709, 708, 639, 638, 669, 668, 699, 698, 279, 278, 309, 308, 339, 338, 381, 380, 411, 410, 441, 440, 561, 560, 591, 590, 621, 620, 547, 546, 577, 576, 607, 606, 367, 366, 397, 396, 427, 426, 291, 290, 321, 320, 351, 350, 651, 650, 681, 680, 711, 710, 1, 0, 31, 30, 61, 60, 3, 2, 33, 32, 63, 62, 5, 4, 35, 34, 65, 64, 7, 6, 37, 36, 67, 66, 9, 8, 39, 38, 69, 68, 11, 10, 41, 40, 71, 70, 13, 12, 43, 42, 73, 72, 15, 14, 45, 44, 75, 74, 17, 16, 47, 46, 77, 76, 19, 18, 49, 48, 79, 78, 21, 20, 51, 50, 81, 80, 23, 22, 53, 52, 83, 82, 25, 24, 55, 54, 85, 84, 27, 26, 57, 56, 87, 86, 117, 116, 147, 146, 177, 176, 115, 114, 145, 144, 175, 174, 113, 112, 143, 142, 173, 172, 111, 110, 141, 140, 171, 170, 109, 108, 139, 138, 169, 168, 107, 106, 137, 136, 167, 166, 105, 104, 135, 134, 165, 164, 103, 102, 133, 132, 163, 162, 101, 100, 131, 130, 161, 160, 99, 98, 129, 128, 159, 158, 97, 96, 127, 126, 157, 156, 95, 94, 125, 124, 155, 154, 93, 92, 123, 122, 153, 152, 91, 90, 121, 120, 151, 150, 181, 180, 211, 210, 241, 240, 183, 182, 213, 212, 243, 242, 185, 184, 215, 214, 245, 244, 187, 186, 217, 216, 247, 246, 189, 188, 219, 218, 249, 248, 191, 190, 221, 220, 251, 250, 193, 192, 223, 222, 253, 252, 195, 194, 225, 224, 255, 254, 197, 196, 227, 226, 257, 256, 199, 198, 229, 228, 259, 258, 201, 200, 231, 230, 261, 260, 203, 202, 233, 232, 263, 262, 205, 204, 235, 234, 265, 264, 207, 206, 237, 236, 267, 266, 297, 296, 327, 326, 357, 356, 295, 294, 325, 324, 355, 354, 293, 292, 323, 322, 353, 352, 277, 276, 307, 306, 337, 336, 275, 274, 305, 304, 335, 334, 273, 272, 303, 302, 333, 332, 271, 270, 301, 300, 331, 330, 361, 360, 391, 390, 421, 420, 363, 362, 393, 392, 423, 422, 365, 364, 395, 394, 425, 424, 383, 382, 413, 412, 443, 442, 385, 384, 415, 414, 445, 444, 387, 386, 417, 416, 447, 446, 477, 476, 507, 506, 537, 536, 475, 474, 505, 504, 535, 534, 473, 472, 503, 502, 533, 532, 455, 454, 485, 484, 515, 514, 453, 452, 483, 482, 513, 512, 451, 450, 481, 480, 511, 510, 541, 540, 571, 570, 601, 600, 543, 542, 573, 572, 603, 602, 545, 544, 575, 574, 605, 604, 563, 562, 593, 592, 623, 622, 565, 564, 595, 594, 625, 624, 567, 566, 597, 596, 627, 626, 657, 656, 687, 686, 717, 716, 655, 654, 685, 684, 715, 714, 653, 652, 683, 682, 713, 712, 637, 636, 667, 666, 697, 696, 635, 634, 665, 664, 695, 694, 633, 632, 663, 662, 693, 692, 631, 630, 661, 660, 691, 690, 721, 720, 751, 750, 781, 780, 723, 722, 753, 752, 783, 782, 725, 724, 755, 754, 785, 784, 727, 726, 757, 756, 787, 786, 729, 728, 759, 758, 789, 788, 731, 730, 761, 760, 791, 790, 733, 732, 763, 762, 793, 792, 735, 734, 765, 764, 795, 794, 737, 736, 767, 766, 797, 796, 739, 738, 769, 768, 799, 798, 741, 740, 771, 770, 801, 800, 743, 742, 773, 772, 803, 802, 745, 744, 775, 774, 805, 804, 747, 746, 777, 776, 807, 806, 837, 836, 867, 866, 897, 896, 835, 834, 865, 864, 895, 894, 833, 832, 863, 862, 893, 892, 831, 830, 861, 860, 891, 890, 829, 828, 859, 858, 889, 888, 827, 826, 857, 856, 887, 886, 825, 824, 855, 854, 885, 884, 823, 822, 853, 852, 883, 882, 821, 820, 851, 850, 881, 880, 819, 818, 849, 848, 879, 878, 817, 816, 847, 846, 877, 876, 815, 814, 845, 844, 875, 874, 813, 812, 843, 842, 873, 872, 811, 810, 841, 840, 871, 870, 901, 900, 931, 930, 961, 960, 903, 902, 933, 932, 963, 962, 905, 904, 935, 934, 965, 964, 907, 906, 937, 936, 967, 966, 909, 908, 939, 938, 969, 968, 911, 910, 941, 940, 971, 970, 913, 912, 943, 942, 973, 972, 915, 914, 945, 944, 975, 974, 917, 916, 947, 946, 977, 976, 919, 918, 949, 948, 979, 978, 921, 920, 951, 950, 981, 980, 923, 922, 953, 952, 983, 982, 925, 924, 955, 954, 985, 984, 927, 926, 957, 956, 987, 986, 58, 89, 88, 118, 149, 148, 178, 209, 208, 238, 269, 268, 298, 329, 328, 358, 389, 388, 418, 449, 448, 478, 509, 508, 538, 569, 568, 598, 629, 628, 658, 689, 688, 718, 749, 748, 778, 809, 808, 838, 869, 868, 898, 929, 928, 958, 989, 988 ]); - $1.pixs = $a(864); - $1.j = 0; - for (var _CT = 0, _CS = $1.mods.length - 1; _CT <= _CS; _CT += 1) { - $1.i = _CT; - if ($get($1.mods, $1.i) == 1) { - $put($1.pixs, $1.j, $get($1.modmap, $1.i)); - $1.j = $1.j + 1; - } - } - $k[$j++] = Infinity; - var _Cf = $geti($1.pixs, 0, $1.j); - for (var _Cg = 0, _Ch = _Cf.length; _Cg < _Ch; _Cg++) { - $k[$j++] = $get(_Cf, _Cg); - } - $k[$j++] = 28; - $k[$j++] = 29; - $k[$j++] = 280; - $k[$j++] = 281; - $k[$j++] = 311; - $k[$j++] = 457; - $k[$j++] = 488; - $k[$j++] = 500; - $k[$j++] = 530; - $k[$j++] = 670; - $k[$j++] = 700; - $k[$j++] = 677; - $k[$j++] = 707; - $1.pixs = $a(); - var _Cm = new Map([ [ "ren", $0.renmaximatrix ], [ "pixs", $1.pixs ], [ "opt", $1.options ] ]); - $k[$j++] = _Cm; - if (!$1.dontdraw) { - $0.renmaximatrix(); - } - }; - $0.azteccode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.format = "unset"; - $1.readerinit = false; - $1.layers = -1; - $1.eclevel = 23; - $1.ecaddchars = 3; - $1.raw = false; - $1.parse = false; - $1.parsefnc = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.layers = ~~$1.layers; - $1.eclevel = +$1.eclevel; - $1.ecaddchars = ~~$1.ecaddchars; - $1.fn1 = -1; - var _B = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "eci", true ], [ "FNC1", $1.fn1 ] ]); - $1.fncvals = _B; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _E = $k[--$j]; - $1[$k[--$j]] = _E; - $1.msglen = $1.msg.length; - $1.msgbits = ""; - if ($ne($1.format, "rune") && $1.raw) { - $1.msgbits = $1.barcode; - } - if ($ne($1.format, "rune") && !$1.raw) { - $1.U = 0; - $1.L = 1; - $1.M = 2; - $1.P = 3; - $1.D = 4; - $1.B = 5; - $1.lu = -2; - $1.ll = -3; - $1.lm = -4; - $1.lp = -5; - $1.ld = -6; - $1.su = -7; - $1.sp = -8; - $1.sb = -9; - $1.fl = -10; - $1.p2 = -11; - $1.p3 = -12; - $1.p4 = -13; - $1.p5 = -14; - $1.charmaps = $a([ $a([ $1.sp, $1.sp, $1.sp, $1.fl, $1.sp ]), $a([ 32, 32, 32, 13, 32 ]), $a([ "A", "a", 1, $1.p2, "0" ]), $a([ "B", "b", 2, $1.p3, "1" ]), $a([ "C", "c", 3, $1.p4, "2" ]), $a([ "D", "d", 4, $1.p5, "3" ]), $a([ "E", "e", 5, "!", "4" ]), $a([ "F", "f", 6, '"', "5" ]), $a([ "G", "g", 7, "#", "6" ]), $a([ "H", "h", 8, "$", "7" ]), $a([ "I", "i", 9, "%", "8" ]), $a([ "J", "j", 10, "&", "9" ]), $a([ "K", "k", 11, "'", "," ]), $a([ "L", "l", 12, 40, "." ]), $a([ "M", "m", 13, 41, $1.lu ]), $a([ "N", "n", 27, "*", $1.su ]), $a([ "O", "o", 28, "+", -99 ]), $a([ "P", "p", 29, ",", -99 ]), $a([ "Q", "q", 30, "-", -99 ]), $a([ "R", "r", 31, ".", -99 ]), $a([ "S", "s", "@", "/", -99 ]), $a([ "T", "t", 92, ":", -99 ]), $a([ "U", "u", "^", ";", -99 ]), $a([ "V", "v", "_", "<", -99 ]), $a([ "W", "w", "`", "=", -99 ]), $a([ "X", "x", "|", ">", -99 ]), $a([ "Y", "y", "~", "?", -99 ]), $a([ "Z", "z", 127, "[", -99 ]), $a([ $1.ll, $1.su, $1.ll, "]", -99 ]), $a([ $1.lm, $1.lm, $1.lu, "{", -99 ]), $a([ $1.ld, $1.ld, $1.lp, "}", -99 ]), $a([ $1.sb, $1.sb, $1.sb, $1.lu, -99 ]) ]); - $1.charvals = $a([ new Map(), new Map(), new Map(), new Map(), new Map() ]); - for (var _1K = 0, _1J = $1.charmaps.length - 1; _1K <= _1J; _1K += 1) { - $1.i = _1K; - $1.encs = $get($1.charmaps, $1.i); - for (var _1O = 0; _1O <= 4; _1O += 1) { - $1.j = _1O; - var _1R = $get($1.encs, $1.j); - $k[$j++] = _1R; - if ($eq($type(_1R), "stringtype")) { - var _1U = $get($k[--$j], 0); - $k[$j++] = _1U; - } - $put($get($1.charvals, $1.j), $k[--$j], $1.i); - } - } - var _1e = new Map([ [ "\r\n", $1.p2 ], [ ". ", $1.p3 ], [ ", ", $1.p4 ], [ ": ", $1.p5 ] ]); - $1.pcomp = _1e; - $1.e = 1e4; - $1.latlen = $a([ $a([ 0, 5, 5, 10, 5, 10 ]), $a([ 9, 0, 5, 10, 5, 10 ]), $a([ 5, 5, 0, 5, 10, 10 ]), $a([ 5, 10, 10, 0, 10, 15 ]), $a([ 4, 9, 9, 14, 0, 14 ]), $a([ 0, 0, 0, 0, 0, 0 ]) ]); - $1.latseq = $a([ $a([ $a([]), $a([ $1.ll ]), $a([ $1.lm ]), $a([ $1.lm, $1.lp ]), $a([ $1.ld ]), $a([ $1.sb ]) ]), $a([ $a([ $1.ld, $1.lu ]), $a([]), $a([ $1.lm ]), $a([ $1.lm, $1.lp ]), $a([ $1.ld ]), $a([ $1.sb ]) ]), $a([ $a([ $1.lu ]), $a([ $1.ll ]), $a([]), $a([ $1.lp ]), $a([ $1.lu, $1.ld ]), $a([ $1.sb ]) ]), $a([ $a([ $1.lu ]), $a([ $1.lu, $1.ll ]), $a([ $1.lu, $1.lm ]), $a([]), $a([ $1.lu, $1.ld ]), $a([ $1.lu, $1.sb ]) ]), $a([ $a([ $1.lu ]), $a([ $1.lu, $1.ll ]), $a([ $1.lu, $1.lm ]), $a([ $1.lu, $1.lm, $1.lp ]), $a([]), $a([ $1.lu, $1.sb ]) ]), $a([ $a([ $1.lu ]), $a([ $1.ll ]), $a([ $1.lm ]), $a([]), $a([]), $a([]) ]) ]); - $1.shftlen = $a([ $a([ $1.e, $1.e, $1.e, 5, $1.e ]), $a([ 5, $1.e, $1.e, 5, $1.e ]), $a([ $1.e, $1.e, $1.e, 5, $1.e ]), $a([ $1.e, $1.e, $1.e, $1.e, $1.e ]), $a([ 4, $1.e, $1.e, 4, $1.e ]) ]); - $1.charsize = function() { - var _3X = $k[--$j]; - $k[$j++] = _3X; - if (_3X >= 0) { - $j--; - var _3a = $get($a([ 5, 5, 5, 5, 4, 8 ]), $k[--$j]); - $k[$j++] = _3a; - } else { - var _3b = $k[--$j]; - var _3c = $k[--$j]; - $k[$j++] = _3b; - $k[$j++] = _3c; - $j--; - var _3d = $k[--$j]; - $k[$j++] = _3d; - if (_3d == $1.fn1) { - $j--; - $k[$j++] = 8; - } else { - var _3g = $f(-$k[--$j] - 1e6); - $k[$j++] = _3g; - if (_3g == 0) { - $j--; - $k[$j++] = 1; - } - var _3h = $k[--$j]; - $k[$j++] = (~~(Math.log(_3h) / Math.log(10)) + 1) * 4 + 8; - } - } - }; - $1.curlen = $a([ 0, $1.e, $1.e, $1.e, $1.e, $1.e ]); - $1.curseq = $a([ $a([]), $a([]), $a([]), $a([]), $a([]), $a([]) ]); - $1.backto = $1.U; - $1.lastchar = ""; - $forall($1.msg, function() { - $1.char = $k[--$j]; - for (;;) { - $1.imp = false; - var _44 = $a([ $1.U, $1.L, $1.M, $1.P, $1.D, $1.B ]); - for (var _45 = 0, _46 = _44.length; _45 < _46; _45++) { - $1.x = $get(_44, _45); - var _4E = $a([ $1.U, $1.L, $1.M, $1.P, $1.D, $1.B ]); - for (var _4F = 0, _4G = _4E.length; _4F < _4G; _4F++) { - $1.y = $get(_4E, _4F); - if ($1.x != $1.B || $1.y == $1.backto) { - $1.cost = $f($get($1.curlen, $1.x) + $get($get($1.latlen, $1.x), $1.y)); - if ($1.cost < $get($1.curlen, $1.y)) { - $put($1.curlen, $1.y, $1.cost); - $k[$j++] = $1.curseq; - $k[$j++] = $1.y; - $k[$j++] = Infinity; - $aload($get($1.curseq, $1.x)); - $aload($get($get($1.latseq, $1.x), $1.y)); - var _4l = $a(); - var _4m = $k[--$j]; - $put($k[--$j], _4m, _4l); - if ($1.y == $1.B) { - $k[$j++] = "backto"; - if ($1.x == $1.P || $1.x == $1.D) { - $k[$j++] = $1.U; - } else { - $k[$j++] = $1.x; - } - var _4w = $k[--$j]; - $1[$k[--$j]] = _4w; - } - $1.imp = true; - } - } - } - } - if (!$1.imp) { - break; - } - } - $1.nxtlen = $a([ $1.e, $1.e, $1.e, $1.e, $1.e, $1.e ]); - $1.nxtseq = $a(6); - var _5D = $a([ $1.U, $1.L, $1.M, $1.P, $1.D, $1.B ]); - for (var _5E = 0, _5F = _5D.length; _5E < _5F; _5E++) { - $1.x = $get(_5D, _5E); - for (;;) { - if ($1.char >= 0) { - if ($1.x != $1.B) { - var _5O = $get($get($1.charvals, $1.x), $1.char) !== undefined; - if (!_5O) { - break; - } - } - } else { - if ($1.x != $1.P) { - break; - } - } - $k[$j++] = "cost"; - $k[$j++] = $get($1.curlen, $1.x); - $k[$j++] = $1.x; - $k[$j++] = $1.char; - $1.charsize(); - var _5W = $k[--$j]; - var _5X = $k[--$j]; - $1[$k[--$j]] = $f(_5X + _5W); - if ($1.cost < $get($1.nxtlen, $1.x)) { - $put($1.nxtlen, $1.x, $1.cost); - $k[$j++] = $1.nxtseq; - $k[$j++] = $1.x; - $k[$j++] = Infinity; - $aload($get($1.curseq, $1.x)); - $k[$j++] = $1.char; - var _5m = $a(); - var _5n = $k[--$j]; - $put($k[--$j], _5n, _5m); - } - if ($1.x == $1.B) { - break; - } - var _5w = $a([ $1.U, $1.L, $1.M, $1.P, $1.D ]); - for (var _5x = 0, _5y = _5w.length; _5x < _5y; _5x++) { - $1.y = $get(_5w, _5x); - if ($ne($1.x, $1.y)) { - $k[$j++] = "cost"; - $k[$j++] = $f($get($1.curlen, $1.y) + $get($get($1.shftlen, $1.y), $1.x)); - $k[$j++] = $1.x; - $k[$j++] = $1.char; - $1.charsize(); - var _6C = $k[--$j]; - var _6D = $k[--$j]; - $1[$k[--$j]] = $f(_6D + _6C); - if ($1.cost < $get($1.nxtlen, $1.y)) { - $put($1.nxtlen, $1.y, $1.cost); - $k[$j++] = $1.nxtseq; - $k[$j++] = $1.y; - $k[$j++] = Infinity; - $aload($get($1.curseq, $1.y)); - var _6T = $1.x == $1.U ? $1.su : $1.sp; - $k[$j++] = _6T; - $k[$j++] = $1.char; - var _6V = $a(); - var _6W = $k[--$j]; - $put($k[--$j], _6W, _6V); - } - } - } - break; - } - } - if ($ne($1.lastchar, "") && $1.char >= 0) { - var _6a = $s(2); - $put(_6a, 0, $1.lastchar); - $put(_6a, 1, $1.char); - $1.pchars = _6a; - var _6f = $get($1.pcomp, $1.pchars) !== undefined; - if (_6f) { - if ($lt($get($1.curlen, $1.P), $get($1.nxtlen, $1.P))) { - $put($1.nxtlen, $1.P, $get($1.curlen, $1.P)); - $k[$j++] = $1.nxtseq; - $k[$j++] = $1.P; - $k[$j++] = Infinity; - $aload($get($1.curseq, $1.P)); - $j--; - $k[$j++] = $get($1.pcomp, $1.pchars); - var _6z = $a(); - var _70 = $k[--$j]; - $put($k[--$j], _70, _6z); - } - } - } - if ($ne($get($1.nxtseq, $1.B), null)) { - $1.numbytes = 0; - $forall($get($1.nxtseq, $1.B), function() { - if ($k[--$j] == $1.sb) { - $k[$j++] = 0; - } else { - $k[$j++] = $1.numbytes + 1; - } - $1.numbytes = $k[--$j]; - }); - if ($1.numbytes == 32) { - $put($1.nxtlen, $1.B, $f($get($1.nxtlen, $1.B) + 11)); - } - } - $1.curlen = $1.nxtlen; - $1.curseq = $1.nxtseq; - $k[$j++] = "lastchar"; - if ($1.char >= 0) { - $k[$j++] = $1.char; - } else { - $k[$j++] = ""; - } - var _7M = $k[--$j]; - $1[$k[--$j]] = _7M; - }); - $1.minseq = $1.e; - var _7V = $a([ $1.U, $1.L, $1.M, $1.P, $1.D, $1.B ]); - for (var _7W = 0, _7X = _7V.length; _7W < _7X; _7W++) { - $1.i = $get(_7V, _7W); - if ($get($1.curlen, $1.i) < $1.minseq) { - $1.minseq = $get($1.curlen, $1.i); - $1.seq = $get($1.curseq, $1.i); - } - } - $1.tobin = function() { - var _7k = $s($k[--$j]); - $k[$j++] = _7k; - for (var _7m = 0, _7l = _7k.length - 1; _7m <= _7l; _7m += 1) { - var _7n = $k[--$j]; - $put(_7n, _7m, 48); - $k[$j++] = _7n; - } - var _7o = $k[--$j]; - var _7r = $cvrs($s(_7o.length), $k[--$j], 2); - $puti(_7o, _7o.length - _7r.length, _7r); - $k[$j++] = _7o; - }; - $1.encu = function() { - var _7w = $get($get($1.charvals, $1.U), $k[--$j]); - $k[$j++] = _7w; - $k[$j++] = 5; - $1.tobin(); - }; - $1.encl = function() { - var _81 = $get($get($1.charvals, $1.L), $k[--$j]); - $k[$j++] = _81; - $k[$j++] = 5; - $1.tobin(); - }; - $1.encm = function() { - var _86 = $get($get($1.charvals, $1.M), $k[--$j]); - $k[$j++] = _86; - $k[$j++] = 5; - $1.tobin(); - }; - $1.encd = function() { - var _8B = $get($get($1.charvals, $1.D), $k[--$j]); - $k[$j++] = _8B; - $k[$j++] = 4; - $1.tobin(); - }; - $1.encp = function() { - var _8C = $k[--$j]; - $k[$j++] = _8C; - if (_8C == $1.fn1) { - $j--; - $k[$j++] = "00000000"; - } else { - var _8E = $k[--$j]; - $k[$j++] = _8E; - if (_8E <= -1e6) { - var _8G = $f(-$k[--$j] - 1e6); - $k[$j++] = _8G; - $k[$j++] = _8G; - if (_8G == 0) { - $j--; - $k[$j++] = 1; - } - var _8I = ~~(Math.log($k[--$j]) / Math.log(10)); - var _8J = $s((_8I + 1) * 4 + 8); - $puti(_8J, 0, "00000"); - $k[$j++] = _8I; - $k[$j++] = _8J; - $k[$j++] = _8J; - $k[$j++] = _8I + 1; - $k[$j++] = 3; - $1.tobin(); - var _8K = $k[--$j]; - $puti($k[--$j], 5, _8K); - var _8M = $k[--$j]; - var _8N = $k[--$j]; - var _8O = $k[--$j]; - $k[$j++] = _8M; - $k[$j++] = _8O; - for (var _8P = _8N; _8P >= 0; _8P -= 1) { - var _8Q = $k[--$j]; - var _8R = $k[--$j]; - $k[$j++] = _8R; - $k[$j++] = ~~(_8Q / 10); - $k[$j++] = _8R; - $k[$j++] = _8P * 4 + 8; - $k[$j++] = $f(_8Q % 10 + 2); - $k[$j++] = 4; - $1.tobin(); - var _8S = $k[--$j]; - var _8T = $k[--$j]; - $puti($k[--$j], _8T, _8S); - } - $j--; - } else { - var _8Z = $get($get($1.charvals, $1.P), $k[--$j]); - $k[$j++] = _8Z; - $k[$j++] = 5; - $1.tobin(); - } - } - }; - $1.encfuncs = $a([ "encu", "encl", "encm", "encp", "encd" ]); - $1.addtomsgbits = function() { - $1.v = $k[--$j]; - $puti($1.msgbits, $1.j, $1.v); - $1.j = $1.j + $1.v.length; - }; - $1.state = $1.U; - $1.msgbits = $s($1.minseq); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i >= $1.seq.length) { - break; - } - if ($1.state != $1.B) { - $1.char = $get($1.seq, $1.i); - $k[$j++] = $1.char; - if ($1[$get($1.encfuncs, $1.state)]() === true) { - break; - } - $1.addtomsgbits(); - $1.i = $1.i + 1; - if ($1.char == $1.su || $1.char == $1.sp) { - $k[$j++] = $get($1.seq, $1.i); - if ($1.char == $1.su) { - $1.encu(); - } else { - $1.encp(); - } - $1.addtomsgbits(); - $1.i = $1.i + 1; - } - if ($1.char == $1.lu) { - $1.state = $1.U; - } - if ($1.char == $1.ll) { - $1.state = $1.L; - } - if ($1.char == $1.lm) { - $1.state = $1.M; - } - if ($1.char == $1.lp) { - $1.state = $1.P; - } - if ($1.char == $1.ld) { - $1.state = $1.D; - } - if ($1.char == $1.sb) { - $1.state = $1.B; - } - } else { - $1.numbytes = 0; - for (;;) { - if ($1.i + $1.numbytes >= $1.seq.length) { - break; - } - if ($get($1.seq, $1.i + $1.numbytes) < 0) { - break; - } - $1.numbytes = $1.numbytes + 1; - } - if ($1.numbytes <= 31) { - $k[$j++] = $1.numbytes; - $k[$j++] = 5; - $1.tobin(); - $1.addtomsgbits(); - } else { - $k[$j++] = 0; - $k[$j++] = 5; - $1.tobin(); - $1.addtomsgbits(); - $k[$j++] = $1.numbytes - 31; - $k[$j++] = 11; - $1.tobin(); - $1.addtomsgbits(); - } - for (var _9b = 0, _9c = $1.numbytes; _9b < _9c; _9b++) { - $k[$j++] = $get($1.seq, $1.i); - $k[$j++] = 8; - $1.tobin(); - $1.addtomsgbits(); - $1.i = $1.i + 1; - } - if ($1.i < $1.seq.length) { - $1.char = $get($1.seq, $1.i); - $1.i = $1.i + 1; - if ($1.char == $1.lu) { - $1.state = $1.U; - } - if ($1.char == $1.ll) { - $1.state = $1.L; - } - if ($1.char == $1.lm) { - $1.state = $1.M; - } - } - } - } - } - $1.metrics = $a([ $a([ "rune", 0, 0, 0, 6 ]), $a([ "compact", 1, 1, 17, 6 ]), $a([ "full", 1, 1, 21, 6 ]), $a([ "compact", 2, 0, 40, 6 ]), $a([ "full", 2, 1, 48, 6 ]), $a([ "compact", 3, 0, 51, 8 ]), $a([ "full", 3, 1, 60, 8 ]), $a([ "compact", 4, 0, 76, 8 ]), $a([ "full", 4, 1, 88, 8 ]), $a([ "full", 5, 1, 120, 8 ]), $a([ "full", 6, 1, 156, 8 ]), $a([ "full", 7, 1, 196, 8 ]), $a([ "full", 8, 1, 240, 8 ]), $a([ "full", 9, 1, 230, 10 ]), $a([ "full", 10, 1, 272, 10 ]), $a([ "full", 11, 1, 316, 10 ]), $a([ "full", 12, 1, 364, 10 ]), $a([ "full", 13, 1, 416, 10 ]), $a([ "full", 14, 1, 470, 10 ]), $a([ "full", 15, 1, 528, 10 ]), $a([ "full", 16, 1, 588, 10 ]), $a([ "full", 17, 1, 652, 10 ]), $a([ "full", 18, 1, 720, 10 ]), $a([ "full", 19, 1, 790, 10 ]), $a([ "full", 20, 1, 864, 10 ]), $a([ "full", 21, 1, 940, 10 ]), $a([ "full", 22, 1, 1020, 10 ]), $a([ "full", 23, 0, 920, 12 ]), $a([ "full", 24, 0, 992, 12 ]), $a([ "full", 25, 0, 1066, 12 ]), $a([ "full", 26, 0, 1144, 12 ]), $a([ "full", 27, 0, 1224, 12 ]), $a([ "full", 28, 0, 1306, 12 ]), $a([ "full", 29, 0, 1392, 12 ]), $a([ "full", 30, 0, 1480, 12 ]), $a([ "full", 31, 0, 1570, 12 ]), $a([ "full", 32, 0, 1664, 12 ]) ]); - $1.i = 0; - for (;;) { - $1.m = $get($1.metrics, $1.i); - $1.frmt = $get($1.m, 0); - $1.mlyr = $get($1.m, 1); - $1.icap = $get($1.m, 2); - $1.ncws = $get($1.m, 3); - $1.bpcw = $get($1.m, 4); - $1.numecw = ~~Math.ceil($f($1.ncws * $1.eclevel / 100 + $1.ecaddchars)); - if ($1.msgbits.length == 0) { - $1.numecw = 0; - } - $1.numdcw = $f($1.ncws - $1.numecw); - $1.okay = true; - if ($ne($1.format, "unset") && $ne($1.format, $1.frmt)) { - $1.okay = false; - } - if ($1.readerinit && $1.icap != 1) { - $1.okay = false; - } - if ($1.layers != -1 && $1.layers != $1.mlyr) { - $1.okay = false; - } - if (~~Math.ceil($1.msgbits.length / $1.bpcw) > $1.numdcw) { - $1.okay = false; - } - if ($1.okay) { - break; - } - $1.i = $1.i + 1; - } - $1.layers = $1.mlyr; - $1.format = $1.frmt; - $1.allzero = function() { - var _B6 = $k[--$j]; - $k[$j++] = $eq(_B6, $geti("000000000000", 0, _B6.length)); - }; - $1.allones = function() { - var _B8 = $k[--$j]; - $k[$j++] = $eq(_B8, $geti("111111111111", 0, _B8.length)); - }; - $1.cws = $a($1.ncws); - $1.m = 0; - $1.c = 0; - for (;;) { - if ($1.msgbits.length <= $1.m) { - break; - } - if ($1.msgbits.length - $1.m >= $1.bpcw) { - $1.cwb = $geti($1.msgbits, $1.m, $f($1.bpcw - 1)); - $1.cwf = $geti($1.msgbits, $f($f($1.m + $1.bpcw) - 1), 1); - $k[$j++] = $1.cwb; - $1.allzero(); - if ($k[--$j]) { - $1.cwf = "1"; - $1.m = $1.m - 1; - } - $k[$j++] = $1.cwb; - $1.allones(); - if ($k[--$j]) { - $1.cwf = "0"; - $1.m = $1.m - 1; - } - var _BV = $s(12); - $puti(_BV, 0, $1.cwb); - $puti(_BV, $f($1.bpcw - 1), $1.cwf); - $1.cwb = $geti(_BV, 0, $1.bpcw); - } else { - $1.cwb = $geti($1.msgbits, $1.m, $1.msgbits.length - $1.m); - var _Bh = $strcpy($s(12), "111111111111"); - $puti(_Bh, 0, $1.cwb); - $1.cwb = $geti(_Bh, 0, $1.bpcw); - $k[$j++] = $1.cwb; - $1.allones(); - if ($k[--$j]) { - $puti($1.cwb, $1.cwb.length - 1, "0"); - } - } - $1.cw = 0; - for (var _Br = 0, _Bq = $f($1.bpcw - 1); _Br <= _Bq; _Br += 1) { - $1.i = _Br; - $1.cw = $f($1.cw + ~~Math.pow(2, $f($f($1.bpcw - $1.i) - 1)) * $f($get($1.cwb, $1.i) - 48)); - } - $put($1.cws, $1.c, $1.cw); - $1.m = $f($1.m + $1.bpcw); - $1.c = $1.c + 1; - } - $1.cws = $geti($1.cws, 0, $1.c); - $1.rscodes = function() { - $1.rspm = $k[--$j]; - $1.rsgf = $k[--$j]; - $1.rsnc = $k[--$j]; - $1.rscws = $k[--$j]; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _CC = 0, _CD = $f($1.rsgf - 1); _CC < _CD; _CC++) { - var _CE = $k[--$j]; - var _CF = _CE * 2; - $k[$j++] = _CE; - $k[$j++] = _CF; - if (_CF >= $1.rsgf) { - var _CI = $k[--$j]; - $k[$j++] = $xo(_CI, $1.rspm); - } - } - $1.rsalog = $a(); - $1.rslog = $a($1.rsgf); - for (var _CO = 1, _CN = $f($1.rsgf - 1); _CO <= _CN; _CO += 1) { - $put($1.rslog, $get($1.rsalog, _CO), _CO); - } - $1.rsprod = function() { - var _CS = $k[--$j]; - var _CT = $k[--$j]; - $k[$j++] = _CT; - $k[$j++] = _CS; - if (_CS != 0 && _CT != 0) { - var _CW = $get($1.rslog, $k[--$j]); - var _Cc = $get($1.rsalog, $f(_CW + $get($1.rslog, $k[--$j])) % $f($1.rsgf - 1)); - $k[$j++] = _Cc; - } else { - $j -= 2; - $k[$j++] = 0; - } - }; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _Ce = 0, _Cf = $1.rsnc; _Ce < _Cf; _Ce++) { - $k[$j++] = 0; - } - $1.coeffs = $a(); - for (var _Cj = 1, _Ci = $1.rsnc; _Cj <= _Ci; _Cj += 1) { - $1.i = _Cj; - $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); - for (var _Cq = $1.i - 1; _Cq >= 1; _Cq -= 1) { - $1.j = _Cq; - $k[$j++] = $1.coeffs; - $k[$j++] = $1.j; - $k[$j++] = $get($1.coeffs, $1.j - 1); - $k[$j++] = $get($1.coeffs, $1.j); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _D2 = $k[--$j]; - var _D3 = $k[--$j]; - var _D4 = $k[--$j]; - $put($k[--$j], _D4, $xo(_D3, _D2)); - } - $k[$j++] = $1.coeffs; - $k[$j++] = 0; - $k[$j++] = $get($1.coeffs, 0); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _DC = $k[--$j]; - var _DD = $k[--$j]; - $put($k[--$j], _DD, _DC); - } - $1.nd = $1.rscws.length; - $k[$j++] = Infinity; - $forall($1.rscws); - for (var _DI = 0, _DJ = $1.rsnc; _DI < _DJ; _DI++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.rscws = $a(); - for (var _DN = 0, _DM = $1.nd - 1; _DN <= _DM; _DN += 1) { - $1.k = $xo($get($1.rscws, _DN), $get($1.rscws, $1.nd)); - for (var _DV = 0, _DU = $f($1.rsnc - 1); _DV <= _DU; _DV += 1) { - $1.j = _DV; - $k[$j++] = $1.rscws; - $k[$j++] = $1.nd + $1.j; - $k[$j++] = $get($1.rscws, $1.nd + $1.j + 1); - $k[$j++] = $1.k; - $k[$j++] = $get($1.coeffs, $f($f($1.rsnc - $1.j) - 1)); - $1.rsprod(); - var _Di = $k[--$j]; - var _Dj = $k[--$j]; - var _Dk = $k[--$j]; - $put($k[--$j], _Dk, $xo(_Dj, _Di)); - } - } - $k[$j++] = $geti($1.rscws, 0, $1.rscws.length - 1); - }; - if ($eq($1.format, "full")) { - $1.mode = ($f($1.layers - 1) << 11) + ($1.cws.length - 1); - if ($1.readerinit) { - $1.mode = $1.mode | 1024; - } - $1.mode = $a([ ($1.mode & 61440) >>> 12, ($1.mode & 3840) >>> 8, ($1.mode & 240) >>> 4, $1.mode & 15 ]); - $k[$j++] = "mode"; - $k[$j++] = $1.mode; - $k[$j++] = 6; - $k[$j++] = 16; - $k[$j++] = 19; - $1.rscodes(); - var _E0 = $k[--$j]; - $1[$k[--$j]] = _E0; - } - if ($eq($1.format, "compact")) { - $1.mode = ($f($1.layers - 1) << 6) + ($1.cws.length - 1); - if ($1.readerinit) { - $1.mode = $1.mode | 32; - } - $1.mode = $a([ ($1.mode & 240) >>> 4, $1.mode & 15 ]); - $k[$j++] = "mode"; - $k[$j++] = $1.mode; - $k[$j++] = 5; - $k[$j++] = 16; - $k[$j++] = 19; - $1.rscodes(); - var _EB = $k[--$j]; - $1[$k[--$j]] = _EB; - } - if ($eq($1.format, "rune")) { - $1.mode = ~~$z($1.barcode); - $1.mode = $a([ ($1.mode & 240) >>> 4, $1.mode & 15 ]); - $k[$j++] = "mode"; - $k[$j++] = $1.mode; - $k[$j++] = 5; - $k[$j++] = 16; - $k[$j++] = 19; - $1.rscodes(); - var _EJ = $k[--$j]; - $1[$k[--$j]] = _EJ; - $k[$j++] = Infinity; - var _EL = $1.mode; - for (var _EM = 0, _EN = _EL.length; _EM < _EN; _EM++) { - $k[$j++] = $get(_EL, _EM) ^ 10; - } - $1.mode = $a(); - } - $1.modebits = $s($1.mode.length * 4); - for (var _EU = 0, _ET = $1.modebits.length - 1; _EU <= _ET; _EU += 1) { - $puti($1.modebits, _EU, "0"); - } - for (var _EY = 0, _EX = $1.mode.length - 1; _EY <= _EX; _EY += 1) { - $1.i = _EY; - var _Ee = $cvrs($s(4), $get($1.mode, $1.i), 2); - $puti($1.modebits, 4 - _Ee.length + 4 * $1.i, _Ee); - } - $1.rsparams = $a([ $a([]), $a([]), $a([]), $a([]), $a([]), $a([]), $a([ 64, 67 ]), $a([]), $a([ 256, 301 ]), $a([]), $a([ 1024, 1033 ]), $a([]), $a([ 4096, 4201 ]) ]); - $k[$j++] = "cws"; - $k[$j++] = $1.cws; - $k[$j++] = $f($1.ncws - $1.cws.length); - $forall($get($1.rsparams, $1.bpcw)); - $1.rscodes(); - var _F0 = $k[--$j]; - $1[$k[--$j]] = _F0; - if ($eq($1.format, "full")) { - $1.databits = $s($f($1.layers * $1.layers * 16 + $1.layers * 112)); - } else { - $1.databits = $s($f($1.layers * $1.layers * 16 + $1.layers * 88)); - } - for (var _FD = 0, _FC = $1.databits.length - 1; _FD <= _FC; _FD += 1) { - $puti($1.databits, _FD, "0"); - } - for (var _FH = 0, _FG = $f($1.ncws - 1); _FH <= _FG; _FH += 1) { - $1.i = _FH; - var _FO = $cvrs($s($1.bpcw), $get($1.cws, $1.i), 2); - $puti($1.databits, $f($f($f($1.bpcw - _FO.length) + $1.bpcw * $1.i) + $f($1.databits.length - $1.ncws * $1.bpcw)), _FO); - } - $1.cmv = function() { - var _FW = $k[--$j]; - var _FX = $k[--$j]; - $k[$j++] = $f($f(_FX - _FW * $1.size) + $1.mid); - }; - $1.lmv = function() { - $1.lbit = $k[--$j]; - $1.llyr = $k[--$j]; - $1.lwid = $f($1.fw + $1.llyr * 4); - $1.ldir = ~~(~~($1.lbit / 2) / $1.lwid); - if ($1.ldir == 0) { - $k[$j++] = $f(-~~($f($1.lwid - 1) / 2) + 1 + ~~($1.lbit / 2) % $1.lwid); - $k[$j++] = $f($f(~~(($1.fw - 1) / 2) + $1.llyr * 2) + $1.lbit % 2); - $1.cmv(); - } - if ($1.ldir == 1) { - $k[$j++] = $f($f(~~($1.fw / 2) + $1.llyr * 2) + $1.lbit % 2); - $k[$j++] = $f(~~($f($1.lwid - 1) / 2) - 1 - ~~($1.lbit / 2) % $1.lwid); - $1.cmv(); - } - if ($1.ldir == 2) { - $k[$j++] = -$f(-~~($1.lwid / 2) + 1 + ~~($1.lbit / 2) % $1.lwid); - $k[$j++] = -$f($f(~~($1.fw / 2) + $1.llyr * 2) + $1.lbit % 2); - $1.cmv(); - } - if ($1.ldir == 3) { - $k[$j++] = -$f($f(~~(($1.fw - 1) / 2) + $1.llyr * 2) + $1.lbit % 2); - $k[$j++] = -$f(~~($1.lwid / 2) - 1 - ~~($1.lbit / 2) % $1.lwid); - $1.cmv(); - } - }; - if ($eq($1.format, "full")) { - $1.fw = 12; - } else { - $1.fw = 9; - } - $1.size = $f($f($1.fw + $1.layers * 4) + 2); - $k[$j++] = Infinity; - for (var _GC = 0, _GD = $1.size * $1.size; _GC < _GD; _GC++) { - $k[$j++] = -1; - } - $1.pixs = $a(); - $1.mid = $f(~~($f($1.size - 1) / 2) * $1.size + ~~($f($1.size - 1) / 2)); - $1.i = 0; - for (var _GK = 1, _GJ = $1.layers; _GK <= _GJ; _GK += 1) { - $1.layer = _GK; - for (var _GO = 0, _GN = ($1.fw + $1.layer * 4) * 8 - 1; _GO <= _GN; _GO += 1) { - $1.pos = _GO; - $k[$j++] = $1.pixs; - $k[$j++] = $1.layer; - $k[$j++] = $1.pos; - $1.lmv(); - var _GW = $k[--$j]; - $put($k[--$j], _GW, $get($1.databits, $1.databits.length - $1.i - 1) - 48); - $1.i = $1.i + 1; - } - } - if ($eq($1.format, "full")) { - $1.fw = 13; - $1.size = $f($f($f($1.fw + $1.layers * 4) + 2) + ~~$f($f($1.layers + 10.5) / 7.5 - 1) * 2); - $1.mid = ~~($1.size * $1.size / 2); - $k[$j++] = Infinity; - for (var _Gh = 0, _Gi = $1.size * $1.size; _Gh < _Gi; _Gh++) { - $k[$j++] = -2; - } - $1.npixs = $a(); - for (var _Gm = 0, _Gl = ~~($1.size / 2); _Gm <= _Gl; _Gm += 16) { - $1.i = _Gm; - for (var _Gp = 0, _Go = $f($1.size - 1); _Gp <= _Go; _Gp += 1) { - $1.j = _Gp; - $k[$j++] = $1.npixs; - $k[$j++] = -~~($1.size / 2) + $1.j; - $k[$j++] = $1.i; - $1.cmv(); - var _Gy = $k[--$j]; - $puti($k[--$j], _Gy, $a([ (~~($1.size / 2) + $1.j + $1.i + 1) % 2 ])); - $k[$j++] = $1.npixs; - $k[$j++] = -~~($1.size / 2) + $1.j; - $k[$j++] = -$1.i; - $1.cmv(); - var _H8 = $k[--$j]; - $puti($k[--$j], _H8, $a([ (~~($1.size / 2) + $1.j + $1.i + 1) % 2 ])); - $k[$j++] = $1.npixs; - $k[$j++] = $1.i; - $k[$j++] = -~~($1.size / 2) + $1.j; - $1.cmv(); - var _HI = $k[--$j]; - $puti($k[--$j], _HI, $a([ (~~($1.size / 2) + $1.j + $1.i + 1) % 2 ])); - $k[$j++] = $1.npixs; - $k[$j++] = -$1.i; - $k[$j++] = -~~($1.size / 2) + $1.j; - $1.cmv(); - var _HS = $k[--$j]; - $puti($k[--$j], _HS, $a([ (~~($1.size / 2) + $1.j + $1.i + 1) % 2 ])); - } - } - $1.j = 0; - for (var _HW = 0, _HV = $1.npixs.length - 1; _HW <= _HV; _HW += 1) { - $1.i = _HW; - if ($get($1.npixs, $1.i) == -2) { - $put($1.npixs, $1.i, $get($1.pixs, $1.j)); - $1.j = $1.j + 1; - } - } - $1.pixs = $1.npixs; - } - $1.fw = ~~($1.fw / 2); - for (var _Hl = -$1.fw, _Hk = $1.fw; _Hl <= _Hk; _Hl += 1) { - $1.i = _Hl; - for (var _Hp = -$1.fw, _Ho = $1.fw; _Hp <= _Ho; _Hp += 1) { - $1.j = _Hp; - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.cmv(); - if (Math.abs($1.i) > Math.abs($1.j)) { - $k[$j++] = Math.abs($1.i); - } else { - $k[$j++] = Math.abs($1.j); - } - var _Hx = $k[--$j]; - var _Hy = $k[--$j]; - $put($k[--$j], _Hy, $f(_Hx + 1) % 2); - } - } - var _Ia = $a([ $a([ -($1.fw + 1), $1.fw, 1 ]), $a([ -($1.fw + 1), $1.fw + 1, 1 ]), $a([ -$1.fw, $1.fw + 1, 1 ]), $a([ $1.fw + 1, $1.fw + 1, 1 ]), $a([ $1.fw + 1, $1.fw, 1 ]), $a([ $1.fw + 1, -$1.fw, 1 ]), $a([ $1.fw, $1.fw + 1, 0 ]), $a([ $1.fw + 1, -($1.fw + 1), 0 ]), $a([ $1.fw, -($1.fw + 1), 0 ]), $a([ -$1.fw, -($1.fw + 1), 0 ]), $a([ -($1.fw + 1), -($1.fw + 1), 0 ]), $a([ -($1.fw + 1), -$1.fw, 0 ]) ]); - for (var _Ib = 0, _Ic = _Ia.length; _Ib < _Ic; _Ib++) { - $k[$j++] = $1.pixs; - $forall($get(_Ia, _Ib)); - var _If = $k[--$j]; - var _Ig = $k[--$j]; - var _Ih = $k[--$j]; - $k[$j++] = _If; - $k[$j++] = _Ih; - $k[$j++] = _Ig; - $1.cmv(); - var _Ii = $k[--$j]; - var _Ij = $k[--$j]; - $put($k[--$j], _Ii, _Ij); - } - if ($eq($1.format, "full")) { - $1.modemap = $a([ $a([ -5, 7 ]), $a([ -4, 7 ]), $a([ -3, 7 ]), $a([ -2, 7 ]), $a([ -1, 7 ]), $a([ 1, 7 ]), $a([ 2, 7 ]), $a([ 3, 7 ]), $a([ 4, 7 ]), $a([ 5, 7 ]), $a([ 7, 5 ]), $a([ 7, 4 ]), $a([ 7, 3 ]), $a([ 7, 2 ]), $a([ 7, 1 ]), $a([ 7, -1 ]), $a([ 7, -2 ]), $a([ 7, -3 ]), $a([ 7, -4 ]), $a([ 7, -5 ]), $a([ 5, -7 ]), $a([ 4, -7 ]), $a([ 3, -7 ]), $a([ 2, -7 ]), $a([ 1, -7 ]), $a([ -1, -7 ]), $a([ -2, -7 ]), $a([ -3, -7 ]), $a([ -4, -7 ]), $a([ -5, -7 ]), $a([ -7, -5 ]), $a([ -7, -4 ]), $a([ -7, -3 ]), $a([ -7, -2 ]), $a([ -7, -1 ]), $a([ -7, 1 ]), $a([ -7, 2 ]), $a([ -7, 3 ]), $a([ -7, 4 ]), $a([ -7, 5 ]) ]); - } else { - $1.modemap = $a([ $a([ -3, 5 ]), $a([ -2, 5 ]), $a([ -1, 5 ]), $a([ 0, 5 ]), $a([ 1, 5 ]), $a([ 2, 5 ]), $a([ 3, 5 ]), $a([ 5, 3 ]), $a([ 5, 2 ]), $a([ 5, 1 ]), $a([ 5, 0 ]), $a([ 5, -1 ]), $a([ 5, -2 ]), $a([ 5, -3 ]), $a([ 3, -5 ]), $a([ 2, -5 ]), $a([ 1, -5 ]), $a([ 0, -5 ]), $a([ -1, -5 ]), $a([ -2, -5 ]), $a([ -3, -5 ]), $a([ -5, -3 ]), $a([ -5, -2 ]), $a([ -5, -1 ]), $a([ -5, 0 ]), $a([ -5, 1 ]), $a([ -5, 2 ]), $a([ -5, 3 ]) ]); - } - for (var _Jw = 0, _Jv = $1.modemap.length - 1; _Jw <= _Jv; _Jw += 1) { - $1.i = _Jw; - $k[$j++] = $1.pixs; - $forall($get($1.modemap, $1.i)); - $1.cmv(); - var _K4 = $k[--$j]; - $put($k[--$j], _K4, $get($1.modebits, $1.i) - 48); - } - var _KC = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", $1.size ], [ "pixy", $1.size ], [ "height", $1.size * 2 / 72 ], [ "width", $1.size * 2 / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _KC; - if (!$1.dontdraw) { - $0.renmatrix(); - } - }; - $0.azteccodecompact = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $put($1.options, "dontdraw", true); - $put($1.options, "format", "compact"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.azteccode(); - var _9 = $k[--$j]; - $1[$k[--$j]] = _9; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } - }; - $0.aztecrune = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $put($1.options, "dontdraw", true); - $put($1.options, "format", "rune"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.azteccode(); - var _9 = $k[--$j]; - $1[$k[--$j]] = _9; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } - }; - $0.codeone = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.version = "unset"; - $1.parse = false; - $1.parsefnc = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.stype = $eq($geti($1.version, 0, 1), "S"); - if ($1.stype) { - $1.vals = $a([ "1", "1010", "1100100", "1111101000", "10011100010000", "11000011010100000", "11110100001001000000", "100110001001011010000000", "101111101011110000100000000", "111011100110101100101000000000", "1001010100000010111110010000000000", "1011101001000011101101110100000000000", "1110100011010100101001010001000000000000", "10010001100001001110011100101010000000000000", "10110101111001100010000011110100100000000000000", "11100011010111111010100100110001101000000000000000", "100011100001101111001001101111110000010000000000000000", "101100011010001010111100001011101100010100000000000000000" ]); - $1.normalize = function() { - $1.base = $k[--$j]; - $1.num = $k[--$j]; - for (var _C = $1.num.length - 1; _C >= 1; _C -= 1) { - $1.i = _C; - var _D = $1.num; - var _E = $1.i; - $put(_D, _E - 1, $f($get(_D, _E - 1) + ~~($get($1.num, $1.i) / $1.base))); - $put($1.num, $1.i, $get($1.num, $1.i) % $1.base); - } - for (;;) { - if ($lt($get($1.num, 0), $1.base)) { - break; - } - $k[$j++] = Infinity; - $k[$j++] = 0; - $forall($1.num); - $1.num = $a(); - $put($1.num, 0, $f($get($1.num, 0) + ~~($get($1.num, 1) / $1.base))); - $put($1.num, 1, $get($1.num, 1) % $1.base); - } - $k[$j++] = Infinity; - $1.i = true; - var _f = $1.num; - for (var _g = 0, _h = _f.length; _g < _h; _g++) { - var _i = $get(_f, _g); - $k[$j++] = _i; - if (_i == 0 && $1.i) { - $j--; - } else { - $1.i = false; - } - } - $1.num = $a(); - if ($1.num.length == 0) { - $1.num = $a([ 0 ]); - } - $k[$j++] = $1.num; - }; - $1.bigadd = function() { - var _o = $k[--$j]; - var _p = $k[--$j]; - $1.offset = Math.abs(_o.length - _p.length); - if (_o.length < _p.length) { - var _ = _o; - _o = _p; - _p = _; - } - $1.a = _o; - $1.b = _p; - for (var _s = 0, _r = $1.b.length - 1; _s <= _r; _s += 1) { - var _t = $1.a; - var _u = $1.offset; - $put(_t, _s + _u, $f($get(_t, _s + _u) + $get($1.b, _s))); - } - $k[$j++] = $1.a; - }; - $1.barlen = $1.barcode.length; - $1.v = $a([ 1 ]); - for (var _13 = 0, _12 = $1.barlen - 1; _13 <= _12; _13 += 1) { - $1.i = _13; - $k[$j++] = Infinity; - $forall($get($1.vals, $1.i), function() { - var _17 = $k[--$j]; - $k[$j++] = $f(_17 - 48) * $f($get($1.barcode, $1.barlen - $1.i - 1) - 48); - }); - var _1C = $a(); - $k[$j++] = _1C; - $k[$j++] = $1.v; - $1.bigadd(); - $1.v = $k[--$j]; - } - $k[$j++] = "v"; - $k[$j++] = $1.v; - $k[$j++] = 2; - $1.normalize(); - var _1G = $k[--$j]; - $1[$k[--$j]] = _1G; - $k[$j++] = Infinity; - for (var _1J = 0, _1K = (5 - $1.v.length % 5) % 5; _1J < _1K; _1J++) { - $k[$j++] = 0; - } - $aload($1.v); - $1.v = $a(); - $1.cws = $a(~~($1.v.length / 5)); - for (var _1R = 0, _1Q = $1.cws.length - 1; _1R <= _1Q; _1R += 1) { - $1.i = _1R; - var _1U = $geti($1.v, $1.i * 5, 5); - $k[$j++] = 0; - for (var _1V = 0, _1W = _1U.length; _1V < _1W; _1V++) { - var _1Y = $k[--$j]; - $k[$j++] = $f(_1Y + $get(_1U, _1V)) * 2; - } - $put($1.cws, $1.i, ~~($k[--$j] / 2)); - } - $1.metrics = $a([ $a([ "S-10", 8, 11, 10, 4, 4, 1, 99, 99, 99 ]), $a([ "S-20", 8, 21, 20, 8, 8, 1, 99, 99, 99 ]), $a([ "S-30", 8, 31, 30, 12, 12, 1, 99, 99, 99 ]) ]); - } else { - $1.fnc1 = -1; - $1.fnc3 = -2; - var _1k = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "eci", true ], [ "FNC1", $1.fnc1 ], [ "FNC3", $1.fnc3 ] ]); - $1.fncvals = _1k; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _1n = $k[--$j]; - $1[$k[--$j]] = _1n; - $1.msglen = $1.msg.length; - $1.lC = -5; - $1.lB = -6; - $1.lX = -7; - $1.lT = -8; - $1.lD = -9; - $1.unl = -10; - $1.fnc2 = -11; - $1.fnc4 = -12; - $1.sft1 = -13; - $1.sft2 = -14; - $1.sft3 = -15; - $1.eci = -16; - $1.pad = -17; - $1.fnc1lD = -18; - $1.unlcw = 255; - $1.eciesc = 92; - var _1q = $1.msg; - $k[$j++] = "numecis"; - $k[$j++] = 0; - for (var _1r = 0, _1s = _1q.length; _1r < _1s; _1r++) { - if ($get(_1q, _1r) <= -1e6) { - var _1u = $k[--$j]; - $k[$j++] = $f(_1u + 1); - } - } - var _1v = $k[--$j]; - $1[$k[--$j]] = _1v; - if ($1.numecis > 0) { - $1.msgtmp = $a($f($f($1.msg.length * 2 + $1.numecis * 6) + 2)); - $put($1.msgtmp, 0, $1.pad); - $put($1.msgtmp, 1, $1.eciesc); - $1.j = 2; - for (var _27 = 0, _26 = $1.msg.length - 1; _27 <= _26; _27 += 1) { - var _29 = $get($1.msg, _27); - $k[$j++] = _29; - if (_29 <= -1e6) { - var _2D = $geti($cvrs($s(7), -$k[--$j], 10), 1, 6); - for (var _2E = 0, _2F = _2D.length; _2E < _2F; _2E++) { - $k[$j++] = $get(_2D, _2E); - } - $astore($a(6)); - $puti($1.msgtmp, $1.j + 1, $k[--$j]); - $put($1.msgtmp, $1.j, $1.eciesc); - $1.j = $1.j + 7; - } else { - var _2P = $k[--$j]; - $k[$j++] = _2P; - if (_2P != $1.eciesc) { - $put($1.msgtmp, $1.j, $k[--$j]); - $1.j = $1.j + 1; - } else { - $j--; - $put($1.msgtmp, $1.j, $1.eciesc); - $put($1.msgtmp, $1.j + 1, $1.eciesc); - $1.j = $1.j + 2; - } - } - } - $1.msg = $geti($1.msgtmp, 0, $1.j); - $1.msglen = $1.msg.length; - } - $1.metrics = $a([ $a([ "A", 16, 18, 16, 10, 10, 1, 4, 99, 6 ]), $a([ "B", 22, 22, 20, 19, 16, 1, 4, 99, 8 ]), $a([ "C", 28, 32, 28, 44, 26, 1, 4, 22, 11 ]), $a([ "D", 40, 42, 36, 91, 44, 1, 4, 16, 16 ]), $a([ "E", 52, 54, 48, 182, 70, 1, 4, 22, 22 ]), $a([ "F", 70, 76, 68, 370, 140, 2, 4, 22, 31 ]), $a([ "G", 104, 98, 88, 732, 280, 4, 6, 21, 47 ]), $a([ "H", 148, 134, 120, 1480, 560, 8, 6, 20, 69 ]), $a([ "T-16", 16, 17, 16, 10, 10, 1, 99, 99, 99 ]), $a([ "T-32", 16, 33, 32, 24, 16, 1, 99, 99, 99 ]), $a([ "T-48", 16, 49, 48, 38, 22, 1, 99, 99, 99 ]) ]); - $1.fullcws = $a([]); - var _2t = $1.metrics; - for (var _2u = 0, _2v = _2t.length; _2u < _2v; _2u++) { - $1.m = $get(_2t, _2u); - $1.vers = $get($1.m, 0); - $1.dcws = $get($1.m, 4); - $1.okay = true; - if ($eq($1.version, "unset")) { - if ($1.vers.length != 1) { - $1.okay = false; - } - } else { - if ($ne($1.version, $1.vers)) { - $1.okay = false; - } - } - if ($1.okay) { - $k[$j++] = Infinity; - $aload($1.fullcws); - $k[$j++] = $1.dcws; - $1.fullcws = $a(); - } - } - $k[$j++] = Infinity; - for (var _39 = 0, _3A = 1480; _39 < _3A; _39++) { - $k[$j++] = 1e4; - } - $1.numremcws = $a(); - var _3C = $1.fullcws; - for (var _3D = 0, _3E = _3C.length; _3D < _3E; _3D++) { - $put($1.numremcws, $f($get(_3C, _3D) - 1), 1); - } - for (var _3H = 1478; _3H >= 0; _3H -= 1) { - $1.i = _3H; - if ($get($1.numremcws, $1.i) != 1) { - $put($1.numremcws, $1.i, $f($get($1.numremcws, $1.i + 1) + 1)); - } - } - $k[$j++] = Infinity; - for (var _3Q = 0; _3Q <= 128; _3Q += 1) { - $k[$j++] = _3Q; - $k[$j++] = _3Q + 1; - } - $k[$j++] = $1.pad; - $k[$j++] = 129; - for (var _3S = 0; _3S <= 99; _3S += 1) { - var _3U = $cvrs($s(2), _3S, 10); - var _3W = $strcpy($s(2), "00"); - $puti(_3W, 2 - _3U.length, _3U); - $k[$j++] = _3W; - $k[$j++] = _3S + 130; - } - var _3e = $a([ $1.lC, $1.lB, $1.fnc1, $1.fnc2, $1.fnc3, $1.fnc4, $1.fnc1lD ]); - $k[$j++] = 229; - for (var _3f = 0, _3g = _3e.length; _3f < _3g; _3f++) { - var _3j = $f($k[--$j] + 1); - $k[$j++] = $get(_3e, _3f); - $k[$j++] = _3j; - $k[$j++] = _3j; - } - $j--; - $k[$j++] = $1.lX; - $k[$j++] = 238; - $k[$j++] = $1.lT; - $k[$j++] = 239; - $1.Avals = $d(); - $k[$j++] = Infinity; - var _3n = $1.Avals; - for (var _3s = _3n.size, _3r = _3n.keys(), _3q = 0; _3q < _3s; _3q++) { - var _3o = _3r.next().value; - $k[$j++] = _3o; - $k[$j++] = Infinity; - $k[$j++] = _3n.get(_3o); - var _3v = $a(); - $k[$j++] = _3v; - } - $1.Avals = $d(); - $k[$j++] = Infinity; - $k[$j++] = $1.sft1; - $k[$j++] = 0; - $k[$j++] = $1.sft2; - $k[$j++] = 1; - $k[$j++] = $1.sft3; - $k[$j++] = 2; - $k[$j++] = 32; - $k[$j++] = 3; - for (var _40 = 48; _40 <= 57; _40 += 1) { - $k[$j++] = _40; - $k[$j++] = _40 - 44; - } - for (var _41 = 65; _41 <= 90; _41 += 1) { - $k[$j++] = _41; - $k[$j++] = _41 - 51; - } - $1.CNvals = $d(); - $k[$j++] = Infinity; - for (var _43 = 0; _43 <= 31; _43 += 1) { - $k[$j++] = _43; - $k[$j++] = _43; - } - $1.C1vals = $d(); - $k[$j++] = Infinity; - for (var _45 = 33; _45 <= 47; _45 += 1) { - $k[$j++] = _45; - $k[$j++] = _45 - 33; - } - for (var _46 = 58; _46 <= 64; _46 += 1) { - $k[$j++] = _46; - $k[$j++] = _46 - 43; - } - for (var _47 = 91; _47 <= 95; _47 += 1) { - $k[$j++] = _47; - $k[$j++] = _47 - 69; - } - $k[$j++] = $1.fnc1; - $k[$j++] = 27; - $k[$j++] = $1.fnc2; - $k[$j++] = 28; - $k[$j++] = $1.fnc3; - $k[$j++] = 29; - $k[$j++] = $1.fnc4; - $k[$j++] = 30; - $k[$j++] = $1.pad; - $k[$j++] = 31; - $1.C2vals = $d(); - $k[$j++] = Infinity; - for (var _4E = 96; _4E <= 127; _4E += 1) { - $k[$j++] = _4E; - $k[$j++] = _4E - 96; - } - $1.C3vals = $d(); - $k[$j++] = Infinity; - var _4G = $1.CNvals; - for (var _4L = _4G.size, _4K = _4G.keys(), _4J = 0; _4J < _4L; _4J++) { - var _4H = _4K.next().value; - $k[$j++] = _4H; - $k[$j++] = Infinity; - $k[$j++] = _4G.get(_4H); - var _4O = $a(); - $k[$j++] = _4O; - } - var _4P = $1.C1vals; - for (var _4U = _4P.size, _4T = _4P.keys(), _4S = 0; _4S < _4U; _4S++) { - var _4Q = _4T.next().value; - $k[$j++] = _4Q; - $k[$j++] = Infinity; - $k[$j++] = $get($1.CNvals, $1.sft1); - $k[$j++] = _4P.get(_4Q); - var _4a = $a(); - $k[$j++] = _4a; - } - var _4b = $1.C2vals; - for (var _4g = _4b.size, _4f = _4b.keys(), _4e = 0; _4e < _4g; _4e++) { - var _4c = _4f.next().value; - $k[$j++] = _4c; - $k[$j++] = Infinity; - $k[$j++] = $get($1.CNvals, $1.sft2); - $k[$j++] = _4b.get(_4c); - var _4m = $a(); - $k[$j++] = _4m; - } - var _4n = $1.C3vals; - for (var _4s = _4n.size, _4r = _4n.keys(), _4q = 0; _4q < _4s; _4q++) { - var _4o = _4r.next().value; - $k[$j++] = _4o; - $k[$j++] = Infinity; - $k[$j++] = $get($1.CNvals, $1.sft3); - $k[$j++] = _4n.get(_4o); - var _4y = $a(); - $k[$j++] = _4y; - } - $1.Cvals = $d(); - $k[$j++] = Infinity; - $k[$j++] = $1.sft1; - $k[$j++] = 0; - $k[$j++] = $1.sft2; - $k[$j++] = 1; - $k[$j++] = $1.sft3; - $k[$j++] = 2; - $k[$j++] = 32; - $k[$j++] = 3; - for (var _53 = 48; _53 <= 57; _53 += 1) { - $k[$j++] = _53; - $k[$j++] = _53 - 44; - } - for (var _54 = 97; _54 <= 122; _54 += 1) { - $k[$j++] = _54; - $k[$j++] = _54 - 83; - } - $1.TNvals = $d(); - $k[$j++] = Infinity; - for (var _56 = 0; _56 <= 31; _56 += 1) { - $k[$j++] = _56; - $k[$j++] = _56; - } - $1.T1vals = $d(); - $k[$j++] = Infinity; - for (var _58 = 33; _58 <= 47; _58 += 1) { - $k[$j++] = _58; - $k[$j++] = _58 - 33; - } - for (var _59 = 58; _59 <= 64; _59 += 1) { - $k[$j++] = _59; - $k[$j++] = _59 - 43; - } - for (var _5A = 91; _5A <= 95; _5A += 1) { - $k[$j++] = _5A; - $k[$j++] = _5A - 69; - } - $k[$j++] = $1.fnc1; - $k[$j++] = 27; - $k[$j++] = $1.fnc2; - $k[$j++] = 28; - $k[$j++] = $1.fnc3; - $k[$j++] = 29; - $k[$j++] = $1.fnc4; - $k[$j++] = 30; - $k[$j++] = $1.pad; - $k[$j++] = 31; - $1.T2vals = $d(); - $k[$j++] = Infinity; - $k[$j++] = 96; - $k[$j++] = 0; - for (var _5H = 65; _5H <= 90; _5H += 1) { - $k[$j++] = _5H; - $k[$j++] = _5H - 64; - } - for (var _5I = 123; _5I <= 127; _5I += 1) { - $k[$j++] = _5I; - $k[$j++] = _5I - 96; - } - $1.T3vals = $d(); - $k[$j++] = Infinity; - var _5K = $1.TNvals; - for (var _5P = _5K.size, _5O = _5K.keys(), _5N = 0; _5N < _5P; _5N++) { - var _5L = _5O.next().value; - $k[$j++] = _5L; - $k[$j++] = Infinity; - $k[$j++] = _5K.get(_5L); - var _5S = $a(); - $k[$j++] = _5S; - } - var _5T = $1.T1vals; - for (var _5Y = _5T.size, _5X = _5T.keys(), _5W = 0; _5W < _5Y; _5W++) { - var _5U = _5X.next().value; - $k[$j++] = _5U; - $k[$j++] = Infinity; - $k[$j++] = $get($1.TNvals, $1.sft1); - $k[$j++] = _5T.get(_5U); - var _5e = $a(); - $k[$j++] = _5e; - } - var _5f = $1.T2vals; - for (var _5k = _5f.size, _5j = _5f.keys(), _5i = 0; _5i < _5k; _5i++) { - var _5g = _5j.next().value; - $k[$j++] = _5g; - $k[$j++] = Infinity; - $k[$j++] = $get($1.TNvals, $1.sft2); - $k[$j++] = _5f.get(_5g); - var _5q = $a(); - $k[$j++] = _5q; - } - var _5r = $1.T3vals; - for (var _5w = _5r.size, _5v = _5r.keys(), _5u = 0; _5u < _5w; _5u++) { - var _5s = _5v.next().value; - $k[$j++] = _5s; - $k[$j++] = Infinity; - $k[$j++] = $get($1.TNvals, $1.sft3); - $k[$j++] = _5r.get(_5s); - var _62 = $a(); - $k[$j++] = _62; - } - $1.Tvals = $d(); - for (var _64 = 128; _64 <= 255; _64 += 1) { - $1.i = _64; - $k[$j++] = $1.Avals; - $k[$j++] = $1.i; - $k[$j++] = Infinity; - $aload($get($1.Avals, $1.fnc4)); - $aload($get($1.Avals, $1.i - 128)); - var _6D = $a(); - var _6E = $k[--$j]; - $put($k[--$j], _6E, _6D); - $k[$j++] = $1.Cvals; - $k[$j++] = $1.i; - $k[$j++] = Infinity; - $aload($get($1.Cvals, $1.fnc4)); - $aload($get($1.Cvals, $1.i - 128)); - var _6O = $a(); - var _6P = $k[--$j]; - $put($k[--$j], _6P, _6O); - $k[$j++] = $1.Tvals; - $k[$j++] = $1.i; - $k[$j++] = Infinity; - $aload($get($1.Tvals, $1.fnc4)); - $aload($get($1.Tvals, $1.i - 128)); - var _6Z = $a(); - var _6a = $k[--$j]; - $put($k[--$j], _6a, _6Z); - } - $k[$j++] = Infinity; - $k[$j++] = 13; - $k[$j++] = 0; - $k[$j++] = 42; - $k[$j++] = 1; - $k[$j++] = 62; - $k[$j++] = 2; - $k[$j++] = 32; - $k[$j++] = 3; - for (var _6c = 48; _6c <= 57; _6c += 1) { - $k[$j++] = _6c; - $k[$j++] = _6c - 44; - } - for (var _6d = 65; _6d <= 90; _6d += 1) { - $k[$j++] = _6d; - $k[$j++] = _6d - 51; - } - $1.Xvals = $d(); - $k[$j++] = Infinity; - var _6f = $1.Xvals; - for (var _6k = _6f.size, _6j = _6f.keys(), _6i = 0; _6i < _6k; _6i++) { - var _6g = _6j.next().value; - $k[$j++] = _6g; - $k[$j++] = Infinity; - $k[$j++] = _6f.get(_6g); - var _6n = $a(); - $k[$j++] = _6n; - } - $1.Xvals = $d(); - $k[$j++] = Infinity; - for (var _6p = 0; _6p <= 255; _6p += 1) { - $k[$j++] = _6p; - $k[$j++] = _6p; - } - $1.Bvals = $d(); - $k[$j++] = Infinity; - var _6r = $1.Bvals; - for (var _6w = _6r.size, _6v = _6r.keys(), _6u = 0; _6u < _6w; _6u++) { - var _6s = _6v.next().value; - $k[$j++] = _6s; - $k[$j++] = Infinity; - $k[$j++] = _6r.get(_6s); - var _6z = $a(); - $k[$j++] = _6z; - } - $1.Bvals = $d(); - $1.encvals = $a([ $1.Avals, $1.Cvals, $1.Tvals, $1.Xvals, -1, $1.Bvals ]); - $k[$j++] = Infinity; - for (var _78 = 0, _79 = $1.msglen; _78 < _79; _78++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.numD = $a(); - $k[$j++] = Infinity; - for (var _7C = 0, _7D = $1.msglen; _7C < _7D; _7C++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextXterm = $a(); - $k[$j++] = Infinity; - for (var _7G = 0, _7H = $1.msglen; _7G < _7H; _7G++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextNonX = $a(); - for (var _7K = $1.msglen - 1; _7K >= 0; _7K -= 1) { - $1.i = _7K; - $1.barchar = $get($1.msg, $1.i); - if ($1.barchar >= 48 && $1.barchar <= 57) { - $put($1.numD, $1.i, $f($get($1.numD, $1.i + 1) + 1)); - } - if ($1.barchar == 13 || $1.barchar == 42 || $1.barchar == 62) { - $put($1.nextXterm, $1.i, 0); - } else { - $put($1.nextXterm, $1.i, $f($get($1.nextXterm, $1.i + 1) + 1)); - } - var _7h = $get($1.Xvals, $1.barchar) !== undefined; - if (!_7h) { - $put($1.nextNonX, $1.i, 0); - } else { - $put($1.nextNonX, $1.i, $f($get($1.nextNonX, $1.i + 1) + 1)); - } - } - $k[$j++] = Infinity; - var _7p = $1.nextXterm; - for (var _7q = 0, _7r = _7p.length; _7q < _7r; _7q++) { - var _7s = $get(_7p, _7q); - $k[$j++] = _7s; - if (_7s > 1e4) { - $j--; - $k[$j++] = 1e4; - } - } - $1.nextXterm = $a(); - $k[$j++] = Infinity; - var _7u = $1.nextNonX; - for (var _7v = 0, _7w = _7u.length; _7v < _7w; _7v++) { - var _7x = $get(_7u, _7v); - $k[$j++] = _7x; - if (_7x > 1e4) { - $j--; - $k[$j++] = 1e4; - } - } - $1.nextNonX = $a(); - $1.isD = function() { - $k[$j++] = $1.char >= 48 && $1.char <= 57; - }; - $1.isC = function() { - var _83 = $get($1.CNvals, $1.char) !== undefined; - $k[$j++] = _83; - }; - $1.isT = function() { - var _86 = $get($1.TNvals, $1.char) !== undefined; - $k[$j++] = _86; - }; - $1.isX = function() { - var _89 = $get($1.Xvals, $1.char) !== undefined; - $k[$j++] = _89; - }; - $1.isEA = function() { - $k[$j++] = $1.char > 127; - }; - $1.isFN = function() { - $k[$j++] = $1.char < 0; - }; - $1.XtermFirst = function() { - var _8C = $k[--$j]; - $k[$j++] = $lt($get($1.nextXterm, _8C), $get($1.nextNonX, _8C)); - }; - $1.A = 0; - $1.C = 1; - $1.T = 2; - $1.X = 3; - $1.D = 4; - $1.B = 5; - $1.lookup = function() { - $1.ac = 1; - $1.cc = 2; - $1.tc = 2; - $1.xc = 2; - $1.bc = 3; - if ($1.mode == $1.A) { - $1.ac = 0; - $1.cc = 1; - $1.tc = 1; - $1.xc = 1; - $1.bc = 2; - } - if ($1.mode == $1.C) { - $1.cc = 0; - } - if ($1.mode == $1.T) { - $1.tc = 0; - } - if ($1.mode == $1.X) { - $1.xc = 0; - } - if ($1.mode == $1.B) { - $1.bc = 0; - } - for (var _8R = 0, _8S = 1; _8R < _8S; _8R++) { - $1.k = 0; - for (;;) { - if ($1.i + $1.k == $1.msglen) { - var _8a = $a([ $1.ac, $1.cc, $1.tc, $1.xc ]); - $k[$j++] = true; - for (var _8b = 0, _8c = _8a.length; _8b < _8c; _8b++) { - var _8f = $k[--$j]; - $k[$j++] = _8f && $1.bc <= Math.ceil($get(_8a, _8b)); - } - if ($k[--$j]) { - $k[$j++] = $1.B; - break; - } - var _8m = $a([ $1.cc, $1.tc, $1.xc, $1.bc ]); - $k[$j++] = true; - for (var _8n = 0, _8o = _8m.length; _8n < _8o; _8n++) { - var _8r = $k[--$j]; - $k[$j++] = _8r && $1.ac <= Math.ceil($get(_8m, _8n)); - } - if ($k[--$j]) { - $k[$j++] = $1.A; - break; - } - var _8w = $a([ $1.tc, $1.xc ]); - $k[$j++] = true; - for (var _8x = 0, _8y = _8w.length; _8x < _8y; _8x++) { - var _91 = $k[--$j]; - $k[$j++] = _91 && Math.ceil($1.cc) <= Math.ceil($get(_8w, _8x)); - } - if ($k[--$j]) { - $k[$j++] = $1.C; - break; - } - var _95 = $a([ $1.xc ]); - $k[$j++] = true; - for (var _96 = 0, _97 = _95.length; _96 < _97; _96++) { - var _9A = $k[--$j]; - $k[$j++] = _9A && Math.ceil($1.tc) <= Math.ceil($get(_95, _96)); - } - if ($k[--$j]) { - $k[$j++] = $1.T; - break; - } - $k[$j++] = $1.X; - break; - } - $1.char = $get($1.msg, $1.i + $1.k); - $k[$j++] = "ac"; - $k[$j++] = $1.ac; - $1.isD(); - if ($k[--$j]) { - var _9K = $k[--$j]; - $k[$j++] = $f(_9K + 1 / 2); - } else { - $1.isEA(); - if ($k[--$j]) { - var _9M = $k[--$j]; - $k[$j++] = Math.ceil(_9M) + 2; - } else { - var _9N = $k[--$j]; - $k[$j++] = Math.ceil(_9N) + 1; - } - } - var _9O = $k[--$j]; - $1[$k[--$j]] = _9O; - $k[$j++] = "cc"; - $k[$j++] = $1.cc; - $1.isC(); - if ($k[--$j]) { - var _9S = $k[--$j]; - $k[$j++] = $f(_9S + .66666667); - } else { - $1.isEA(); - if ($k[--$j]) { - var _9U = $k[--$j]; - $k[$j++] = $f(_9U + 2.66666667); - } else { - var _9V = $k[--$j]; - $k[$j++] = $f(_9V + 1.33333334); - } - } - var _9W = $k[--$j]; - $1[$k[--$j]] = _9W; - $k[$j++] = "tc"; - $k[$j++] = $1.tc; - $1.isT(); - if ($k[--$j]) { - var _9a = $k[--$j]; - $k[$j++] = $f(_9a + .66666667); - } else { - $1.isEA(); - if ($k[--$j]) { - var _9c = $k[--$j]; - $k[$j++] = $f(_9c + 2.66666667); - } else { - var _9d = $k[--$j]; - $k[$j++] = $f(_9d + 1.33333334); - } - } - var _9e = $k[--$j]; - $1[$k[--$j]] = _9e; - $k[$j++] = "xc"; - $k[$j++] = $1.xc; - $1.isX(); - if ($k[--$j]) { - var _9i = $k[--$j]; - $k[$j++] = $f(_9i + .66666667); - } else { - $1.isEA(); - if ($k[--$j]) { - var _9k = $k[--$j]; - $k[$j++] = $f(_9k + 4.33333334); - } else { - var _9l = $k[--$j]; - $k[$j++] = $f(_9l + 3.33333334); - } - } - var _9m = $k[--$j]; - $1[$k[--$j]] = _9m; - $k[$j++] = "bc"; - $k[$j++] = $1.bc; - $1.isFN(); - if ($k[--$j]) { - var _9q = $k[--$j]; - $k[$j++] = $f(_9q + 3); - } else { - var _9r = $k[--$j]; - $k[$j++] = $f(_9r + 1); - } - var _9s = $k[--$j]; - $1[$k[--$j]] = _9s; - if ($1.k >= 3) { - var _9z = $a([ $1.ac, $1.cc, $1.tc, $1.xc ]); - $k[$j++] = true; - for (var _A0 = 0, _A1 = _9z.length; _A0 < _A1; _A0++) { - var _A4 = $k[--$j]; - $k[$j++] = _A4 && $1.bc + 1 <= Math.ceil($get(_9z, _A0)); - } - if ($k[--$j]) { - $k[$j++] = $1.B; - break; - } - var _AB = $a([ $1.cc, $1.tc, $1.xc, $1.bc ]); - $k[$j++] = true; - for (var _AC = 0, _AD = _AB.length; _AC < _AD; _AC++) { - var _AG = $k[--$j]; - $k[$j++] = _AG && $1.ac + 1 <= Math.ceil($get(_AB, _AC)); - } - if ($k[--$j]) { - $k[$j++] = $1.A; - break; - } - var _AN = $a([ $1.ac, $1.cc, $1.xc, $1.bc ]); - $k[$j++] = true; - for (var _AO = 0, _AP = _AN.length; _AO < _AP; _AO++) { - var _AS = $k[--$j]; - $k[$j++] = _AS && Math.ceil($1.tc) + 1 <= Math.ceil($get(_AN, _AO)); - } - if ($k[--$j]) { - $k[$j++] = $1.T; - break; - } - var _AX = $a([ $1.ac, $1.tc ]); - $k[$j++] = true; - for (var _AY = 0, _AZ = _AX.length; _AY < _AZ; _AY++) { - var _Ac = $k[--$j]; - $k[$j++] = _Ac && Math.ceil($1.cc) + 1 <= Math.ceil($get(_AX, _AY)); - } - if ($k[--$j]) { - if (Math.ceil($1.cc) < Math.ceil($1.xc)) { - $k[$j++] = $1.C; - break; - } - if ($1.cc == $1.xc) { - $k[$j++] = $1.i + $1.k + 1; - $1.XtermFirst(); - if ($k[--$j]) { - $k[$j++] = $1.X; - break; - } else { - $k[$j++] = $1.C; - break; - } - } - } - var _As = $a([ $1.ac, $1.cc, $1.tc, $1.bc ]); - $k[$j++] = true; - for (var _At = 0, _Au = _As.length; _At < _Au; _At++) { - var _Ax = $k[--$j]; - $k[$j++] = _Ax && Math.ceil($1.xc) + 1 <= Math.ceil($get(_As, _At)); - } - if ($k[--$j]) { - $k[$j++] = $1.X; - break; - } - } - $1.k = $1.k + 1; - } - } - }; - $1.addtocws = function() { - var _B1 = $k[--$j]; - $puti($1.cws, $1.j, _B1); - $1.j = _B1.length + $1.j; - }; - $1.tobin = function() { - var _B6 = $s($k[--$j]); - $k[$j++] = _B6; - for (var _B8 = 0, _B7 = _B6.length - 1; _B8 <= _B7; _B8 += 1) { - var _B9 = $k[--$j]; - $put(_B9, _B8, 48); - $k[$j++] = _B9; - } - var _BA = $k[--$j]; - var _BD = $cvrs($s(_BA.length), $k[--$j], 2); - $puti(_BA, _BA.length - _BD.length, _BD); - $k[$j++] = Infinity; - var _BF = _BA; - $forall(_BF, function() { - var _BG = $k[--$j]; - $k[$j++] = $f(_BG - 48); - }); - var _BH = $a(); - $k[$j++] = _BH; - }; - $1.encA = function() { - for (var _BI = 0, _BJ = 1; _BI < _BJ; _BI++) { - if ($get($1.numD, $1.i) >= 21) { - $1.Dbits = $a([ 1, 1, 1, 1 ]); - $1.mode = $1.D; - break; - } - var _BR = $get($1.numD, $1.i); - if (_BR >= 13 && $f(_BR + $1.i) == $1.msglen) { - $1.Dbits = $a([ 1, 1, 1, 1 ]); - $1.mode = $1.D; - break; - } - if ($get($1.numD, $1.i) >= 2) { - var _BZ = $s(2); - $put(_BZ, 0, $get($1.msg, $1.i)); - $put(_BZ, 1, $get($1.msg, $1.i + 1)); - $k[$j++] = $get($1.Avals, _BZ); - $1.addtocws(); - $1.i = $1.i + 2; - break; - } - if ($get($1.msg, $1.i) == $1.fnc1) { - if ($get($1.numD, $1.i + 1) >= 15) { - $k[$j++] = $get($1.Avals, $1.fnc1lD); - $1.addtocws(); - $1.i = $1.i + 1; - $1.Dbits = $a([]); - $1.mode = $1.D; - break; - } - var _By = $get($1.numD, $1.i + 1); - if (_By >= 7 && $f($f(_By + $1.i) + 1) == $1.msglen) { - $k[$j++] = $get($1.Avals, $1.fnc1lD); - $1.addtocws(); - $1.i = $1.i + 1; - $1.Dbits = $a([]); - $1.mode = $1.D; - break; - } - } - $k[$j++] = "newmode"; - $1.lookup(); - var _C7 = $k[--$j]; - $1[$k[--$j]] = _C7; - if ($1.newmode != $1.mode) { - $k[$j++] = $get($1.Avals, $get($a([ -1, $1.lC, $1.lT, $1.lX, $1.lD, $1.lB ]), $1.newmode)); - $1.addtocws(); - $1.mode = $1.newmode; - break; - } - $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); - $1.addtocws(); - $1.i = $1.i + 1; - break; - } - }; - $1.CTXvalstocws = function() { - $1.in = $k[--$j]; - $k[$j++] = Infinity; - for (var _CV = 0, _CU = $1.in.length - 1; _CV <= _CU; _CV += 3) { - var _CX = $geti($1.in, _CV, 3); - $k[$j++] = 0; - for (var _CY = 0, _CZ = _CX.length; _CY < _CZ; _CY++) { - var _Cb = $k[--$j]; - $k[$j++] = $f(_Cb + $get(_CX, _CY)) * 40; - } - var _Cd = ~~($k[--$j] / 40) + 1; - $k[$j++] = ~~(_Cd / 256); - $k[$j++] = _Cd % 256; - } - $astore($a($counttomark())); - var _Cg = $k[--$j]; - var _Ch = $k[--$j]; - $k[$j++] = _Cg; - $k[$j++] = _Ch; - $j--; - }; - $1.encCTX = function() { - $1.p = 0; - $1.ctxvals = $a(2220); - for (;;) { - if ($1.i == $1.msglen) { - break; - } - if ($1.p % 3 == 0) { - if ($get($1.numD, $1.i) >= 12) { - $k[$j++] = $geti($1.ctxvals, 0, $1.p); - $1.CTXvalstocws(); - $1.addtocws(); - $k[$j++] = $a([ $1.unlcw ]); - $1.addtocws(); - $1.mode = $1.A; - break; - } - var _Cx = $get($1.numD, $1.i); - if (_Cx >= 8 && $f(_Cx + $1.i) == $1.msglen) { - $k[$j++] = $geti($1.ctxvals, 0, $1.p); - $1.CTXvalstocws(); - $1.addtocws(); - $k[$j++] = $a([ $1.unlcw ]); - $1.addtocws(); - $1.mode = $1.A; - break; - } - if ($1.mode == $1.X) { - var _DC = $get($1.Xvals, $get($1.msg, $1.i)) !== undefined; - if (!_DC) { - $k[$j++] = $geti($1.ctxvals, 0, $1.p); - $1.CTXvalstocws(); - $1.addtocws(); - if ($get($1.numremcws, $1.j) != 1 || $get($1.msg, $1.i) > 127) { - $k[$j++] = $a([ $1.unlcw ]); - $1.addtocws(); - } - $1.mode = $1.A; - break; - } - if ($1.i + 1 < $1.msglen) { - var _DV = $get($1.Xvals, $get($1.msg, $1.i + 1)) !== undefined; - if (!_DV) { - break; - } - if ($1.i + 2 < $1.msglen) { - var _Dc = $get($1.Xvals, $get($1.msg, $1.i + 2)) !== undefined; - if (!_Dc) { - break; - } - } - } - } else { - $1.lookup(); - if ($k[--$j] != $1.mode) { - $k[$j++] = $geti($1.ctxvals, 0, $1.p); - $1.CTXvalstocws(); - $1.addtocws(); - $k[$j++] = $a([ $1.unlcw ]); - $1.addtocws(); - $1.mode = $1.A; - break; - } - } - if ($1.msglen - $1.i <= 3) { - $1.remcws = $get($1.numremcws, $1.j + ~~($1.p / 3) * 2); - $k[$j++] = Infinity; - var _Dv = $geti($1.msg, $1.i, $1.msglen - $1.i); - for (var _Dw = 0, _Dx = _Dv.length; _Dw < _Dx; _Dw++) { - var _Dy = $get(_Dv, _Dw); - var _E2 = $get($get($1.encvals, $1.mode), _Dy) !== undefined; - $k[$j++] = _Dy; - if (_E2) { - $aload($get($get($1.encvals, $1.mode), $k[--$j])); - } else { - $j--; - $k[$j++] = -1; - $k[$j++] = -1; - $k[$j++] = -1; - $k[$j++] = -1; - } - } - $1.remvals = $a(); - if ($1.remcws == 2 && $1.remvals.length == 3) { - $k[$j++] = Infinity; - $aload($geti($1.ctxvals, 0, $1.p)); - $aload($1.remvals); - var _EF = $a(); - $k[$j++] = _EF; - $1.CTXvalstocws(); - $1.addtocws(); - $1.mode = $1.A; - $1.i = $1.msglen; - break; - } - if ($1.remcws == 2 && $1.remvals.length == 2 && $1.mode != $1.X) { - $k[$j++] = Infinity; - $aload($geti($1.ctxvals, 0, $1.p)); - $aload($1.remvals); - $aload($get($get($1.encvals, $1.mode), $1.sft1)); - var _EV = $a(); - $k[$j++] = _EV; - $1.CTXvalstocws(); - $1.addtocws(); - $1.mode = $1.A; - $1.i = $1.msglen; - break; - } - if ($1.remcws == 2 && $1.remvals.length == 1) { - $k[$j++] = $geti($1.ctxvals, 0, $1.p); - $1.CTXvalstocws(); - $1.addtocws(); - $k[$j++] = $a([ $1.unlcw ]); - $1.addtocws(); - $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); - $1.addtocws(); - $1.mode = $1.A; - $1.i = $1.msglen; - break; - } - if ($1.remcws == 1 && $1.remvals.length == 1) { - $k[$j++] = $geti($1.ctxvals, 0, $1.p); - $1.CTXvalstocws(); - $1.addtocws(); - $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); - $1.addtocws(); - $1.mode = $1.A; - $1.i = $1.msglen; - break; - } - } - } - var _F4 = $get($get($1.encvals, $1.mode), $get($1.msg, $1.i)); - $puti($1.ctxvals, $1.p, _F4); - $1.p = _F4.length + $1.p; - $1.i = $1.i + 1; - } - if ($1.mode != $1.A) { - for (;;) { - if ($1.p % 3 == 0) { - break; - } - $1.i = $1.i - 1; - $1.p = $1.p - $get($get($1.encvals, $1.mode), $get($1.msg, $1.i)).length; - } - $k[$j++] = Infinity; - $aload($geti($1.ctxvals, 0, $1.p)); - var _FO = $a(); - $k[$j++] = _FO; - $1.CTXvalstocws(); - $1.addtocws(); - $k[$j++] = $a([ $1.unlcw ]); - $1.addtocws(); - $1.mode = $1.A; - if ($1.i != $1.msglen) { - if ($get($1.numD, $1.i) >= 2) { - var _FX = $s(2); - $put(_FX, 0, $get($1.msg, $1.i)); - $put(_FX, 1, $get($1.msg, $1.i + 1)); - $k[$j++] = $get($1.Avals, _FX); - $1.addtocws(); - $1.i = $1.i + 2; - } else { - $k[$j++] = $get($1.Avals, $get($1.msg, $1.i)); - $1.addtocws(); - $1.i = $1.i + 1; - } - } - } - }; - $1.encD = function() { - for (;;) { - if ($get($1.numD, $1.i) < 3) { - $1.Drem = (8 - $1.Dbits.length % 8) % 8; - $1.remcws = $get($1.numremcws, $1.j + ~~($1.Dbits.length / 8)); - if (($f($get($1.numremcws, $1.j + ~~($1.Dbits.length / 8) - 1) - 1) == 0 && $1.Drem == 0 || $1.remcws == 1 && $1.Drem != 0) && $1.i == $1.msglen) { - if ($1.Drem == 4 || $1.Drem == 6) { - $k[$j++] = Infinity; - $aload($1.Dbits); - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $1.Dbits = $a(); - } - if ($1.Drem == 2 || $1.Drem == 6) { - $k[$j++] = Infinity; - $aload($1.Dbits); - $k[$j++] = 0; - $k[$j++] = 1; - $1.Dbits = $a(); - } - break; - } - if (($1.i == $1.msglen - 1 && $get($1.numD, $1.i) == 1 || $1.i == $1.msglen - 2 && $get($1.numD, $1.i) == 2) && $1.remcws == 1 && $1.Drem == 0) { - break; - } - if (!($1.i == $1.msglen - 1 && $get($1.numD, $1.i) == 1 && $1.remcws == 1 && ($1.Drem == 4 || $1.Drem == 6))) { - $k[$j++] = Infinity; - $aload($1.Dbits); - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $1.Dbits = $a(); - $1.Drem = (8 - $1.Dbits.length % 8) % 8; - } - if ($1.Drem == 4 || $1.Drem == 6) { - if ($get($1.numD, $1.i) >= 1) { - $k[$j++] = Infinity; - $aload($1.Dbits); - $k[$j++] = $f($f($get($1.msg, $1.i) - 48) + 1); - $k[$j++] = 4; - $1.tobin(); - $aload($k[--$j]); - $1.Dbits = $a(); - $1.i = $1.i + 1; - } else { - $k[$j++] = Infinity; - $aload($1.Dbits); - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $1.Dbits = $a(); - } - $1.Drem = $1.Drem - 4; - } - if ($1.Drem == 2) { - $k[$j++] = Infinity; - $aload($1.Dbits); - $k[$j++] = 0; - $k[$j++] = 1; - $1.Dbits = $a(); - $1.Drem = 0; - } - break; - } - $k[$j++] = Infinity; - $aload($1.Dbits); - var _Gu = $geti($1.msg, $1.i, 3); - $k[$j++] = 0; - for (var _Gv = 0, _Gw = _Gu.length; _Gv < _Gw; _Gv++) { - var _Gy = $k[--$j]; - $k[$j++] = $f(_Gy + $f($get(_Gu, _Gv) - 48)) * 10; - } - var _Gz = $k[--$j]; - $k[$j++] = ~~(_Gz / 10) + 1; - $k[$j++] = 10; - $1.tobin(); - $aload($k[--$j]); - $1.Dbits = $a(); - $1.i = $1.i + 3; - } - $k[$j++] = Infinity; - for (var _H5 = 0, _H4 = $1.Dbits.length - 1; _H5 <= _H4; _H5 += 8) { - var _H7 = $geti($1.Dbits, _H5, 8); - $k[$j++] = 0; - for (var _H8 = 0, _H9 = _H7.length; _H8 < _H9; _H8++) { - var _HB = $k[--$j]; - $k[$j++] = $f(_HB + $get(_H7, _H8)) * 2; - } - var _HC = $k[--$j]; - $k[$j++] = ~~(_HC / 2); - } - $astore($a($counttomark())); - var _HF = $k[--$j]; - var _HG = $k[--$j]; - $k[$j++] = _HF; - $k[$j++] = _HG; - $j--; - $1.addtocws(); - $1.mode = $1.A; - }; - $1.encB = function() { - $1.p = 0; - $1.bvals = $a(1480); - for (;;) { - if ($1.i == $1.msglen) { - break; - } - if ($get($1.msg, $1.i) < 0) { - break; - } - $1.lookup(); - if ($k[--$j] != $1.mode) { - break; - } - $put($1.bvals, $1.p, $get($1.msg, $1.i)); - $1.p = $1.p + 1; - $1.i = $1.i + 1; - } - $1.remcws = $f($get($1.numremcws, $1.j + $1.p) - 1); - $k[$j++] = Infinity; - if ($1.remcws == 0 && $1.i == $1.msglen) { - $k[$j++] = 0; - } else { - if ($1.p < 250) { - $k[$j++] = $1.p; - } else { - $k[$j++] = ~~($1.p / 250) + 249; - $k[$j++] = $1.p % 250; - } - } - $aload($geti($1.bvals, 0, $1.p)); - $1.bvals = $a(); - $k[$j++] = $1.bvals; - $1.addtocws(); - $1.mode = $1.A; - }; - $1.cws = $a(1480); - $1.mode = $1.A; - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i >= $1.msglen) { - break; - } - if ($1[$get($a([ "encA", "encCTX", "encCTX", "encCTX", "encD", "encB" ]), $1.mode)]() === true) { - break; - } - } - $1.cws = $geti($1.cws, 0, $1.j); - } - $1.i = 0; - for (;;) { - $1.m = $get($1.metrics, $1.i); - $1.vers = $get($1.m, 0); - $1.rows = $get($1.m, 1); - $1.cols = $get($1.m, 2); - $1.dcol = $get($1.m, 3); - $1.dcws = $get($1.m, 4); - $1.rscw = $get($1.m, 5); - $1.rsbl = $get($1.m, 6); - $1.riso = $get($1.m, 7); - $1.risi = $get($1.m, 8); - $1.risl = $get($1.m, 9); - $1.dcpb = ~~($1.dcws / $1.rsbl); - $1.ecpb = ~~($1.rscw / $1.rsbl); - $1.okay = true; - if ($ne($1.version, "unset") && $ne($1.version, $1.vers)) { - $1.okay = false; - } - if ($1.cws.length > $1.dcws) { - $1.okay = false; - } - if ($1.okay) { - break; - } - $1.i = $1.i + 1; - } - if (!$1.stype) { - $k[$j++] = Infinity; - $aload($1.cws); - for (var _Ib = 0, _Ic = $f($1.dcws - $1.cws.length); _Ib < _Ic; _Ib++) { - $k[$j++] = 129; - } - $1.cws = $a(); - } else { - $k[$j++] = Infinity; - for (var _Ig = 0, _Ih = $f($1.dcws - $1.cws.length); _Ig < _Ih; _Ig++) { - $k[$j++] = 0; - } - $aload($1.cws); - $1.cws = $a(); - } - var _Il = $get($1.options, "debugcws") !== undefined; - if (_Il) { - $k[$j++] = "bwipp.debugcws"; - $k[$j++] = $1.cws; - $0.raiseerror(); - } - $1.cwbs = $a($1.rsbl); - $1.ecbs = $a($1.rsbl); - for (var _It = 0, _Is = $f($1.rsbl - 1); _It <= _Is; _It += 1) { - $1.i = _It; - $1.cwb = $a($1.dcpb); - for (var _Iy = 0, _Ix = $1.dcpb - 1; _Iy <= _Ix; _Iy += 1) { - $1.j = _Iy; - $put($1.cwb, $1.j, $get($1.cws, $f($1.j * $1.rsbl + $1.i))); - } - $put($1.cwbs, $1.i, $1.cwb); - } - var _JA = $1.stype ? 32 : 256; - $1.gf = _JA; - $1["gf-1"] = $1.gf - 1; - var _JD = $1.stype ? 37 : 301; - $1.pm = _JD; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _JF = 0, _JG = $1["gf-1"]; _JF < _JG; _JF++) { - var _JH = $k[--$j]; - var _JI = _JH * 2; - $k[$j++] = _JH; - $k[$j++] = _JI; - if (_JI >= $1.gf) { - var _JL = $k[--$j]; - $k[$j++] = _JL ^ $1.pm; - } - } - $1.rsalog = $a(); - $1.rslog = $a($1.gf); - for (var _JR = 1, _JQ = $1["gf-1"]; _JR <= _JQ; _JR += 1) { - $put($1.rslog, $get($1.rsalog, _JR), _JR); - } - $1.rsprod = function() { - var _JV = $k[--$j]; - var _JW = $k[--$j]; - $k[$j++] = _JW; - $k[$j++] = _JV; - if (_JV != 0 && _JW != 0) { - var _JZ = $get($1.rslog, $k[--$j]); - var _Jf = $get($1.rsalog, $f(_JZ + $get($1.rslog, $k[--$j])) % $1["gf-1"]); - $k[$j++] = _Jf; - } else { - $j -= 2; - $k[$j++] = 0; - } - }; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _Jh = 0, _Ji = $1.ecpb; _Jh < _Ji; _Jh++) { - $k[$j++] = 0; - } - $1.coeffs = $a(); - for (var _Jm = 0, _Jl = $1.ecpb - 1; _Jm <= _Jl; _Jm += 1) { - $1.i = _Jm; - $put($1.coeffs, $1.i + 1, $get($1.coeffs, $1.i)); - for (var _Jt = $1.i; _Jt >= 1; _Jt -= 1) { - $1.j = _Jt; - $k[$j++] = $1.coeffs; - $k[$j++] = $1.j; - $k[$j++] = $get($1.coeffs, $1.j - 1); - $k[$j++] = $get($1.coeffs, $1.j); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _K5 = $k[--$j]; - var _K6 = $k[--$j]; - var _K7 = $k[--$j]; - $put($k[--$j], _K7, $xo(_K6, _K5)); - } - $k[$j++] = $1.coeffs; - $k[$j++] = 0; - $k[$j++] = $get($1.coeffs, 0); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _KF = $k[--$j]; - var _KG = $k[--$j]; - $put($k[--$j], _KG, _KF); - } - $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); - for (var _KN = 0, _KM = $1.cwbs.length - 1; _KN <= _KM; _KN += 1) { - $1.i = _KN; - $k[$j++] = Infinity; - $aload($get($1.cwbs, $1.i)); - for (var _KS = 0, _KT = $1.ecpb; _KS < _KT; _KS++) { - $k[$j++] = 0; - } - $1.rscws = $a(); - for (var _KX = 0, _KW = $1.dcpb - 1; _KX <= _KW; _KX += 1) { - $1.m = _KX; - $1.k = $get($1.rscws, $1.m); - for (var _Kd = 0, _Kc = $1.ecpb - 1; _Kd <= _Kc; _Kd += 1) { - $1.j = _Kd; - $k[$j++] = $1.rscws; - $k[$j++] = $1.m + $1.j + 1; - $k[$j++] = $get($1.coeffs, $1.ecpb - $1.j - 1); - $k[$j++] = $1.k; - $1.rsprod(); - var _Kq = $k[--$j]; - var _Kr = $k[--$j]; - $put($k[--$j], _Kr, $xo(_Kq, $get($1.rscws, $1.m + $1.j + 1))); - } - } - $put($1.ecbs, $1.i, $geti($1.rscws, $1.dcpb, $1.ecpb)); - } - $k[$j++] = Infinity; - $aload($1.cws); - for (var _L1 = 0, _L2 = $1.rscw; _L1 < _L2; _L1++) { - $k[$j++] = 0; - } - $1.cws = $a(); - for (var _L6 = 0, _L5 = $f($1.rscw - 1); _L6 <= _L5; _L6 += 1) { - $1.i = _L6; - $put($1.cws, $f($1.dcws + $1.i), $get($get($1.ecbs, $1.i % $1.rsbl), ~~($1.i / $1.rsbl))); - } - var _LK = $1.stype ? 5 : 8; - $1.mmat = $a($f($1.dcws + $1.rscw) * _LK); - $1.r = 0; - $1.c = 0; - var _LN = $1.stype ? 2 : 1; - for (var _LQ = 0, _LR = _LN, _LP = $1.cws.length - 1; _LR < 0 ? _LQ >= _LP : _LQ <= _LP; _LQ += _LR) { - $1.i = _LQ; - if (!$1.stype) { - var _LU = $strcpy($s(8), "00000000"); - var _LZ = $cvrs($s(8), $get($1.cws, $1.i), 2); - $puti(_LU, 8 - _LZ.length, _LZ); - $k[$j++] = Infinity; - var _Lb = _LU; - $forall(_Lb, function() { - var _Lc = $k[--$j]; - $k[$j++] = $f(_Lc - 48); - }); - var _Ld = $a(); - $1.top = $geti(_Ld, 0, 4); - $1.bot = $geti(_Ld, 4, 4); - } else { - var _Lh = $strcpy($s(5), "00000"); - var _Lm = $cvrs($s(5), $get($1.cws, $1.i), 2); - $puti(_Lh, 5 - _Lm.length, _Lm); - $k[$j++] = Infinity; - var _Lo = _Lh; - $forall(_Lo, function() { - var _Lp = $k[--$j]; - $k[$j++] = $f(_Lp - 48); - }); - $1.c1 = $a(); - var _Ls = $strcpy($s(5), "00000"); - var _Lx = $cvrs($s(5), $get($1.cws, $1.i + 1), 2); - $puti(_Ls, 5 - _Lx.length, _Lx); - $k[$j++] = Infinity; - var _Lz = _Ls; - $forall(_Lz, function() { - var _M0 = $k[--$j]; - $k[$j++] = $f(_M0 - 48); - }); - $1.c2 = $a(); - $k[$j++] = Infinity; - $aload($geti($1.c1, 0, 3)); - $aload($geti($1.c2, 0, 2)); - $1.top = $a(); - $k[$j++] = Infinity; - $aload($geti($1.c1, 3, 2)); - $aload($geti($1.c2, 2, 3)); - $1.bot = $a(); - } - $puti($1.mmat, $f($1.r * $1.dcol + $1.c), $1.top); - $puti($1.mmat, $f(($1.r + 1) * $1.dcol + $1.c), $1.bot); - $1.c = $1.c + $1.top.length; - if ($1.c == $1.dcol) { - $1.c = 0; - $1.r = $1.r + 2; - } - } - $1.mmv = function() { - var _MS = $k[--$j]; - var _MT = $k[--$j]; - $k[$j++] = $f(_MT + _MS * $1.cols); - }; - $k[$j++] = Infinity; - for (var _MW = 0, _MX = $1.rows * $1.cols; _MW < _MX; _MW++) { - $k[$j++] = -1; - } - $1.pixs = $a(); - var _N3 = $a([ function() { - for (var _Ma = 0, _Mb = $1.cols; _Ma < _Mb; _Ma++) { - $k[$j++] = 0; - } - }, function() { - for (var _Md = 0, _Me = $1.cols; _Md < _Me; _Md++) { - $k[$j++] = 1; - } - }, function() { - $k[$j++] = 0; - for (var _Mg = 0, _Mh = $f($1.cols - 2); _Mg < _Mh; _Mg++) { - $k[$j++] = 1; - } - $k[$j++] = 0; - }, function() { - $k[$j++] = 0; - $k[$j++] = 1; - for (var _Mj = 0, _Mk = $f($1.cols - 4); _Mj < _Mk; _Mj++) { - $k[$j++] = 0; - } - $k[$j++] = 1; - $k[$j++] = 0; - }, function() { - for (var _Mm = 0, _Mn = ~~($f($1.cols - 1) / 2); _Mm < _Mn; _Mm++) { - $k[$j++] = -1; - } - $k[$j++] = 1; - for (var _Mp = 0, _Mq = ~~($f($1.cols - 1) / 2); _Mp < _Mq; _Mp++) { - $k[$j++] = -1; - } - }, function() { - for (var _Ms = 0, _Mt = ~~($f($1.cols - 1) / 2); _Ms < _Mt; _Ms++) { - $k[$j++] = -1; - } - $k[$j++] = 0; - for (var _Mv = 0, _Mw = ~~($f($1.cols - 1) / 2); _Mv < _Mw; _Mv++) { - $k[$j++] = -1; - } - }, function() { - $k[$j++] = 1; - for (var _My = 0, _Mz = $f($1.cols - 2); _My < _Mz; _My++) { - $k[$j++] = 0; - } - $k[$j++] = 1; - }, function() { - $k[$j++] = 1; - $k[$j++] = 0; - for (var _N1 = 0, _N2 = $f($1.cols - 4); _N1 < _N2; _N1++) { - $k[$j++] = 1; - } - $k[$j++] = 0; - $k[$j++] = 1; - } ]); - $1.artifact = _N3; - var _N4 = new Map([ [ "A", "121343" ], [ "B", "12134343" ], [ "C", "12121343" ], [ "D", "1213434343" ], [ "E", "1212134343" ], [ "F", "1212121343" ], [ "G", "121213434343" ], [ "H", "121212134343" ], [ "S", "56661278" ], [ "T", "5666666666127878" ] ]); - $1.cpat = $get(_N4, $geti($1.vers, 0, 1)); - $k[$j++] = $1.pixs; - $k[$j++] = 0; - $k[$j++] = ~~($f($1.rows - $1.cpat.length) / 2); - $1.mmv(); - $k[$j++] = Infinity; - $forall($1.cpat, function() { - if ($get($1.artifact, $f($k[--$j] - 49))() === true) { - return true; - } - }); - var _NF = $a(); - var _NG = $k[--$j]; - $puti($k[--$j], _NG, _NF); - for (var _NK = 0, _NJ = $f($1.risl - 1); _NK <= _NJ; _NK += 1) { - $1.i = _NK; - for (var _NP = $1.riso, _NQ = $1.risi, _NO = $f($1.cols - 1); _NQ < 0 ? _NP >= _NO : _NP <= _NO; _NP += _NQ) { - $1.j = _NP; - var _NS = $1.i % 12 == 0 ? 1 : 0; - var _NT = $a([ 1, _NS ]); - $k[$j++] = _NT; - $k[$j++] = _NT; - $k[$j++] = $1.pixs; - $k[$j++] = $1.j; - $k[$j++] = $1.i; - $1.mmv(); - var _NX = $k[--$j]; - var _NY = $k[--$j]; - $puti(_NY, _NX, $k[--$j]); - if ($1.i != $f($1.risl - 1)) { - $k[$j++] = $1.pixs; - $k[$j++] = $f($f($1.cols - $1.j) - 2); - $k[$j++] = $f($f($1.rows - $1.i) - 1); - $1.mmv(); - var _Nh = $k[--$j]; - var _Ni = $k[--$j]; - $puti(_Ni, _Nh, $k[--$j]); - } else { - $j--; - } - } - } - var _ON = new Map([ [ "A", $a([ $a([ 12, 5 ]) ]) ], [ "B", $a([ $a([ 16, 7 ]) ]) ], [ "C", $a([ $a([ 26, 12 ]) ]) ], [ "D", $a([]) ], [ "E", $a([ $a([ 26, 23 ]) ]) ], [ "F", $a([ $a([ 26, 32 ]), $a([ 70, 32 ]), $a([ 26, 34 ]), $a([ 70, 34 ]) ]) ], [ "G", $a([ $a([ 27, 48 ]), $a([ 69, 48 ]) ]) ], [ "H", $a([ $a([ 26, 70 ]), $a([ 66, 70 ]), $a([ 106, 70 ]), $a([ 26, 72 ]), $a([ 66, 72 ]), $a([ 106, 72 ]) ]) ], [ "S-10", $a([]) ], [ "S-20", $a([ $a([ 10, 4 ]) ]) ], [ "S-30", $a([ $a([ 15, 4 ]), $a([ 15, 6 ]) ]) ], [ "T-16", $a([ $a([ 8, 10 ]) ]) ], [ "T-32", $a([ $a([ 16, 10 ]), $a([ 16, 12 ]) ]) ], [ "T-48", $a([ $a([ 24, 10 ]), $a([ 24, 12 ]), $a([ 24, 14 ]) ]) ] ]); - $forall($get(_ON, $1.vers), function() { - var _OR = $k[--$j]; - $k[$j++] = $1.pixs; - $aload(_OR); - $1.mmv(); - var _OS = $k[--$j]; - $put($k[--$j], _OS, 1); - }); - $1.j = 0; - for (var _OW = 0, _OV = $1.pixs.length - 1; _OW <= _OV; _OW += 1) { - $1.i = _OW; - if ($get($1.pixs, $1.i) == -1) { - $put($1.pixs, $1.i, $get($1.mmat, $1.j)); - $1.j = $1.j + 1; - } - } - var _Om = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", $1.cols ], [ "pixy", $1.rows ], [ "height", $1.rows / 72 * 2 ], [ "width", $1.cols / 72 * 2 ], [ "opt", $1.options ] ]); - $k[$j++] = _Om; - if (!$1.dontdraw) { - $0.renmatrix(); - } - }; - $0.hanxin = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.version = "unset"; - $1.eclevel = "unset"; - $1.parse = false; - $1.parsefnc = false; - $1.mask = -1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.mask = ~~$1.mask; - var _8 = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ] ]); - $1.fncvals = _8; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _B = $k[--$j]; - $1[$k[--$j]] = _B; - $1.msglen = $1.msg.length; - if ($eq($1.eclevel, "unset")) { - $1.eclevel = "L2"; - } - $1.tobin = function() { - var _G = $s($k[--$j]); - $k[$j++] = _G; - for (var _I = 0, _H = _G.length - 1; _I <= _H; _I += 1) { - var _J = $k[--$j]; - $put(_J, _I, 48); - $k[$j++] = _J; - } - var _K = $k[--$j]; - var _N = $cvrs($s(_K.length), $k[--$j], 2); - $puti(_K, _K.length - _N.length, _N); - $k[$j++] = _K; - }; - $1.bits = $s(4 + 13 + $1.msglen * 8); - $puti($1.bits, 0, "0011"); - $k[$j++] = $1.bits; - $k[$j++] = 4; - $k[$j++] = $1.msglen; - $k[$j++] = 13; - $1.tobin(); - var _T = $k[--$j]; - var _U = $k[--$j]; - $puti($k[--$j], _U, _T); - for (var _Y = 0, _X = $1.msglen - 1; _Y <= _X; _Y += 1) { - $1.i = _Y; - $k[$j++] = $1.bits; - $k[$j++] = 17 + $1.i * 8; - $k[$j++] = $get($1.msg, $1.i); - $k[$j++] = 8; - $1.tobin(); - var _e = $k[--$j]; - var _f = $k[--$j]; - $puti($k[--$j], _f, _e); - } - $1.metrics = $a([ $a([ "1", 23, -1, 0, 205, $a([ 1, 21, 4 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 17, 8 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 13, 12 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 9, 16 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]) ]), $a([ "2", 25, -1, 0, 301, $a([ 1, 31, 6 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 25, 12 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 19, 18 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 15, 22 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]) ]), $a([ "3", 27, -1, 0, 405, $a([ 1, 42, 8 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 34, 16 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 26, 24 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 20, 30 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]) ]), $a([ "4", 29, 14, 1, 439, $a([ 1, 46, 8 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 38, 16 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 30, 24 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 22, 32 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]) ]), $a([ "5", 31, 16, 1, 555, $a([ 1, 57, 12 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 49, 20 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 37, 32 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 14, 20 ]), $a([ 1, 13, 22 ]), $a([ 0, -1, -1 ]) ]), $a([ "6", 33, 16, 1, 675, $a([ 1, 70, 14 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 58, 26 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 24, 20 ]), $a([ 1, 22, 18 ]), $a([ 0, -1, -1 ]), $a([ 1, 16, 24 ]), $a([ 1, 18, 26 ]), $a([ 0, -1, -1 ]) ]), $a([ "7", 35, 17, 1, 805, $a([ 1, 84, 16 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 70, 30 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 26, 22 ]), $a([ 1, 28, 24 ]), $a([ 0, -1, -1 ]), $a([ 2, 14, 20 ]), $a([ 1, 12, 20 ]), $a([ 0, -1, -1 ]) ]), $a([ "8", 37, 18, 1, 943, $a([ 1, 99, 18 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 40, 18 ]), $a([ 1, 41, 18 ]), $a([ 0, -1, -1 ]), $a([ 1, 31, 26 ]), $a([ 1, 32, 28 ]), $a([ 0, -1, -1 ]), $a([ 2, 16, 24 ]), $a([ 1, 15, 22 ]), $a([ 0, -1, -1 ]) ]), $a([ "9", 39, 19, 1, 1089, $a([ 1, 114, 22 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 2, 48, 20 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 2, 24, 20 ]), $a([ 1, 26, 22 ]), $a([ 0, -1, -1 ]), $a([ 2, 18, 28 ]), $a([ 1, 18, 26 ]), $a([ 0, -1, -1 ]) ]), $a([ "10", 41, 20, 1, 1243, $a([ 1, 131, 24 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 52, 22 ]), $a([ 1, 57, 24 ]), $a([ 0, -1, -1 ]), $a([ 2, 27, 24 ]), $a([ 1, 29, 24 ]), $a([ 0, -1, -1 ]), $a([ 2, 21, 32 ]), $a([ 1, 19, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "11", 43, 14, 2, 1289, $a([ 1, 135, 26 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 56, 24 ]), $a([ 1, 57, 24 ]), $a([ 0, -1, -1 ]), $a([ 2, 28, 24 ]), $a([ 1, 31, 26 ]), $a([ 0, -1, -1 ]), $a([ 2, 22, 32 ]), $a([ 1, 21, 32 ]), $a([ 0, -1, -1 ]) ]), $a([ "12", 45, 15, 2, 1455, $a([ 1, 153, 28 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 1, 62, 26 ]), $a([ 1, 65, 28 ]), $a([ 0, -1, -1 ]), $a([ 2, 32, 28 ]), $a([ 1, 33, 28 ]), $a([ 0, -1, -1 ]), $a([ 3, 17, 26 ]), $a([ 1, 22, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "13", 47, 16, 2, 1629, $a([ 1, 86, 16 ]), $a([ 1, 85, 16 ]), $a([ 0, -1, -1 ]), $a([ 1, 71, 30 ]), $a([ 1, 72, 30 ]), $a([ 0, -1, -1 ]), $a([ 2, 37, 32 ]), $a([ 1, 35, 30 ]), $a([ 0, -1, -1 ]), $a([ 3, 20, 30 ]), $a([ 1, 21, 32 ]), $a([ 0, -1, -1 ]) ]), $a([ "14", 49, 16, 2, 1805, $a([ 1, 94, 18 ]), $a([ 1, 95, 18 ]), $a([ 0, -1, -1 ]), $a([ 2, 51, 22 ]), $a([ 1, 55, 24 ]), $a([ 0, -1, -1 ]), $a([ 3, 30, 26 ]), $a([ 1, 31, 26 ]), $a([ 0, -1, -1 ]), $a([ 4, 18, 28 ]), $a([ 1, 17, 24 ]), $a([ 0, -1, -1 ]) ]), $a([ "15", 51, 17, 2, 1995, $a([ 1, 104, 20 ]), $a([ 1, 105, 20 ]), $a([ 0, -1, -1 ]), $a([ 2, 57, 24 ]), $a([ 1, 61, 26 ]), $a([ 0, -1, -1 ]), $a([ 3, 33, 28 ]), $a([ 1, 36, 30 ]), $a([ 0, -1, -1 ]), $a([ 4, 20, 30 ]), $a([ 1, 19, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "16", 53, 17, 2, 2187, $a([ 1, 115, 22 ]), $a([ 1, 114, 22 ]), $a([ 0, -1, -1 ]), $a([ 2, 65, 28 ]), $a([ 1, 61, 26 ]), $a([ 0, -1, -1 ]), $a([ 3, 38, 32 ]), $a([ 1, 33, 30 ]), $a([ 0, -1, -1 ]), $a([ 5, 19, 28 ]), $a([ 1, 14, 24 ]), $a([ 0, -1, -1 ]) ]), $a([ "17", 55, 18, 2, 2393, $a([ 1, 126, 24 ]), $a([ 1, 125, 24 ]), $a([ 0, -1, -1 ]), $a([ 2, 70, 30 ]), $a([ 1, 69, 30 ]), $a([ 0, -1, -1 ]), $a([ 4, 33, 28 ]), $a([ 1, 29, 26 ]), $a([ 0, -1, -1 ]), $a([ 5, 20, 30 ]), $a([ 1, 19, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "18", 57, 19, 2, 2607, $a([ 1, 136, 26 ]), $a([ 1, 137, 26 ]), $a([ 0, -1, -1 ]), $a([ 3, 56, 24 ]), $a([ 1, 59, 26 ]), $a([ 0, -1, -1 ]), $a([ 5, 35, 30 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 6, 18, 28 ]), $a([ 1, 21, 28 ]), $a([ 0, -1, -1 ]) ]), $a([ "19", 59, 20, 2, 2829, $a([ 1, 148, 28 ]), $a([ 1, 149, 28 ]), $a([ 0, -1, -1 ]), $a([ 3, 61, 26 ]), $a([ 1, 64, 28 ]), $a([ 0, -1, -1 ]), $a([ 7, 24, 20 ]), $a([ 1, 23, 22 ]), $a([ 0, -1, -1 ]), $a([ 6, 20, 30 ]), $a([ 1, 21, 32 ]), $a([ 0, -1, -1 ]) ]), $a([ "20", 61, 20, 2, 3053, $a([ 3, 107, 20 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 3, 65, 28 ]), $a([ 1, 72, 30 ]), $a([ 0, -1, -1 ]), $a([ 7, 26, 22 ]), $a([ 1, 23, 22 ]), $a([ 0, -1, -1 ]), $a([ 7, 19, 28 ]), $a([ 1, 20, 32 ]), $a([ 0, -1, -1 ]) ]), $a([ "21", 63, 21, 2, 3291, $a([ 3, 115, 22 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 4, 56, 24 ]), $a([ 1, 63, 28 ]), $a([ 0, -1, -1 ]), $a([ 7, 28, 24 ]), $a([ 1, 25, 22 ]), $a([ 0, -1, -1 ]), $a([ 8, 18, 28 ]), $a([ 1, 21, 22 ]), $a([ 0, -1, -1 ]) ]), $a([ "22", 65, 16, 3, 3383, $a([ 2, 116, 22 ]), $a([ 1, 122, 24 ]), $a([ 0, -1, -1 ]), $a([ 4, 56, 24 ]), $a([ 1, 72, 30 ]), $a([ 0, -1, -1 ]), $a([ 7, 28, 24 ]), $a([ 1, 32, 26 ]), $a([ 0, -1, -1 ]), $a([ 8, 18, 28 ]), $a([ 1, 24, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "23", 67, 17, 3, 3631, $a([ 3, 127, 24 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 5, 51, 22 ]), $a([ 1, 62, 26 ]), $a([ 0, -1, -1 ]), $a([ 7, 30, 26 ]), $a([ 1, 35, 26 ]), $a([ 0, -1, -1 ]), $a([ 8, 20, 30 ]), $a([ 1, 21, 32 ]), $a([ 0, -1, -1 ]) ]), $a([ "24", 69, 17, 3, 3887, $a([ 2, 135, 26 ]), $a([ 1, 137, 26 ]), $a([ 0, -1, -1 ]), $a([ 5, 56, 24 ]), $a([ 1, 59, 26 ]), $a([ 0, -1, -1 ]), $a([ 7, 33, 28 ]), $a([ 1, 30, 28 ]), $a([ 0, -1, -1 ]), $a([ 11, 16, 24 ]), $a([ 1, 19, 26 ]), $a([ 0, -1, -1 ]) ]), $a([ "25", 71, 18, 3, 4151, $a([ 3, 105, 20 ]), $a([ 1, 121, 22 ]), $a([ 0, -1, -1 ]), $a([ 5, 61, 26 ]), $a([ 1, 57, 26 ]), $a([ 0, -1, -1 ]), $a([ 9, 28, 24 ]), $a([ 1, 28, 22 ]), $a([ 0, -1, -1 ]), $a([ 10, 19, 28 ]), $a([ 1, 18, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "26", 73, 18, 3, 4423, $a([ 2, 157, 30 ]), $a([ 1, 150, 28 ]), $a([ 0, -1, -1 ]), $a([ 5, 65, 28 ]), $a([ 1, 61, 26 ]), $a([ 0, -1, -1 ]), $a([ 8, 33, 28 ]), $a([ 1, 34, 30 ]), $a([ 0, -1, -1 ]), $a([ 10, 19, 28 ]), $a([ 2, 15, 26 ]), $a([ 0, -1, -1 ]) ]), $a([ "27", 75, 19, 3, 4703, $a([ 3, 126, 24 ]), $a([ 1, 115, 22 ]), $a([ 0, -1, -1 ]), $a([ 7, 51, 22 ]), $a([ 1, 54, 22 ]), $a([ 0, -1, -1 ]), $a([ 8, 35, 30 ]), $a([ 1, 37, 30 ]), $a([ 0, -1, -1 ]), $a([ 15, 15, 22 ]), $a([ 1, 10, 22 ]), $a([ 0, -1, -1 ]) ]), $a([ "28", 77, 19, 3, 4991, $a([ 4, 105, 20 ]), $a([ 1, 103, 20 ]), $a([ 0, -1, -1 ]), $a([ 7, 56, 24 ]), $a([ 1, 45, 18 ]), $a([ 0, -1, -1 ]), $a([ 10, 31, 26 ]), $a([ 1, 27, 26 ]), $a([ 0, -1, -1 ]), $a([ 10, 17, 26 ]), $a([ 3, 20, 28 ]), $a([ 1, 21, 28 ]) ]), $a([ "29", 79, 20, 3, 5287, $a([ 3, 139, 26 ]), $a([ 1, 137, 28 ]), $a([ 0, -1, -1 ]), $a([ 6, 66, 28 ]), $a([ 1, 66, 30 ]), $a([ 0, -1, -1 ]), $a([ 9, 36, 30 ]), $a([ 1, 34, 32 ]), $a([ 0, -1, -1 ]), $a([ 13, 19, 28 ]), $a([ 1, 17, 32 ]), $a([ 0, -1, -1 ]) ]), $a([ "30", 81, 20, 3, 5591, $a([ 6, 84, 16 ]), $a([ 1, 82, 16 ]), $a([ 0, -1, -1 ]), $a([ 6, 70, 30 ]), $a([ 1, 68, 30 ]), $a([ 0, -1, -1 ]), $a([ 7, 35, 30 ]), $a([ 3, 33, 28 ]), $a([ 1, 32, 28 ]), $a([ 13, 20, 30 ]), $a([ 1, 20, 28 ]), $a([ 0, -1, -1 ]) ]), $a([ "31", 83, 21, 3, 5903, $a([ 5, 105, 20 ]), $a([ 1, 94, 18 ]), $a([ 0, -1, -1 ]), $a([ 6, 74, 32 ]), $a([ 1, 71, 30 ]), $a([ 0, -1, -1 ]), $a([ 11, 33, 28 ]), $a([ 1, 34, 32 ]), $a([ 0, -1, -1 ]), $a([ 13, 19, 28 ]), $a([ 3, 16, 26 ]), $a([ 0, -1, -1 ]) ]), $a([ "32", 85, 17, 4, 6033, $a([ 4, 127, 24 ]), $a([ 1, 126, 24 ]), $a([ 0, -1, -1 ]), $a([ 7, 66, 28 ]), $a([ 1, 66, 30 ]), $a([ 0, -1, -1 ]), $a([ 12, 30, 24 ]), $a([ 1, 24, 28 ]), $a([ 1, 24, 30 ]), $a([ 15, 19, 28 ]), $a([ 1, 17, 32 ]), $a([ 0, -1, -1 ]) ]), $a([ "33", 87, 17, 4, 6353, $a([ 7, 84, 16 ]), $a([ 1, 78, 16 ]), $a([ 0, -1, -1 ]), $a([ 7, 70, 30 ]), $a([ 1, 66, 28 ]), $a([ 0, -1, -1 ]), $a([ 12, 33, 28 ]), $a([ 1, 32, 30 ]), $a([ 0, -1, -1 ]), $a([ 14, 21, 32 ]), $a([ 1, 24, 28 ]), $a([ 0, -1, -1 ]) ]), $a([ "34", 89, 18, 4, 6689, $a([ 5, 117, 22 ]), $a([ 1, 117, 24 ]), $a([ 0, -1, -1 ]), $a([ 8, 66, 28 ]), $a([ 1, 58, 26 ]), $a([ 0, -1, -1 ]), $a([ 11, 38, 32 ]), $a([ 1, 34, 32 ]), $a([ 0, -1, -1 ]), $a([ 15, 20, 30 ]), $a([ 2, 17, 26 ]), $a([ 0, -1, -1 ]) ]), $a([ "35", 91, 18, 4, 7025, $a([ 4, 148, 28 ]), $a([ 1, 146, 28 ]), $a([ 0, -1, -1 ]), $a([ 8, 68, 30 ]), $a([ 1, 70, 24 ]), $a([ 0, -1, -1 ]), $a([ 10, 36, 32 ]), $a([ 3, 38, 28 ]), $a([ 0, -1, -1 ]), $a([ 16, 19, 28 ]), $a([ 3, 16, 26 ]), $a([ 0, -1, -1 ]) ]), $a([ "36", 93, 19, 4, 7377, $a([ 4, 126, 24 ]), $a([ 2, 135, 26 ]), $a([ 0, -1, -1 ]), $a([ 8, 70, 28 ]), $a([ 2, 43, 26 ]), $a([ 0, -1, -1 ]), $a([ 13, 32, 28 ]), $a([ 2, 41, 30 ]), $a([ 0, -1, -1 ]), $a([ 17, 19, 28 ]), $a([ 3, 15, 26 ]), $a([ 0, -1, -1 ]) ]), $a([ "37", 95, 19, 4, 7729, $a([ 5, 136, 26 ]), $a([ 1, 132, 24 ]), $a([ 0, -1, -1 ]), $a([ 5, 67, 30 ]), $a([ 4, 68, 28 ]), $a([ 1, 69, 28 ]), $a([ 14, 35, 30 ]), $a([ 1, 32, 24 ]), $a([ 0, -1, -1 ]), $a([ 18, 18, 26 ]), $a([ 3, 16, 28 ]), $a([ 1, 14, 28 ]) ]), $a([ "38", 97, 19, 4, 8089, $a([ 3, 142, 26 ]), $a([ 3, 141, 28 ]), $a([ 0, -1, -1 ]), $a([ 8, 70, 30 ]), $a([ 1, 73, 32 ]), $a([ 1, 74, 32 ]), $a([ 12, 34, 30 ]), $a([ 3, 34, 26 ]), $a([ 1, 35, 28 ]), $a([ 18, 21, 32 ]), $a([ 1, 27, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "39", 99, 20, 4, 8465, $a([ 5, 116, 22 ]), $a([ 2, 103, 20 ]), $a([ 1, 102, 20 ]), $a([ 9, 74, 32 ]), $a([ 1, 74, 30 ]), $a([ 0, -1, -1 ]), $a([ 14, 34, 28 ]), $a([ 2, 32, 32 ]), $a([ 1, 32, 30 ]), $a([ 19, 21, 32 ]), $a([ 1, 25, 26 ]), $a([ 0, -1, -1 ]) ]), $a([ "40", 101, 20, 4, 8841, $a([ 7, 116, 22 ]), $a([ 1, 117, 22 ]), $a([ 0, -1, -1 ]), $a([ 11, 65, 28 ]), $a([ 1, 58, 24 ]), $a([ 0, -1, -1 ]), $a([ 15, 38, 32 ]), $a([ 1, 27, 28 ]), $a([ 0, -1, -1 ]), $a([ 20, 20, 30 ]), $a([ 1, 20, 32 ]), $a([ 1, 21, 32 ]) ]), $a([ "41", 103, 17, 5, 9009, $a([ 6, 136, 26 ]), $a([ 1, 130, 24 ]), $a([ 0, -1, -1 ]), $a([ 11, 66, 28 ]), $a([ 1, 62, 30 ]), $a([ 0, -1, -1 ]), $a([ 14, 34, 28 ]), $a([ 3, 34, 32 ]), $a([ 1, 30, 30 ]), $a([ 18, 20, 30 ]), $a([ 3, 20, 28 ]), $a([ 2, 15, 26 ]) ]), $a([ "42", 105, 17, 5, 9401, $a([ 5, 105, 20 ]), $a([ 2, 115, 22 ]), $a([ 2, 116, 22 ]), $a([ 10, 75, 32 ]), $a([ 1, 73, 32 ]), $a([ 0, -1, -1 ]), $a([ 16, 38, 32 ]), $a([ 1, 27, 28 ]), $a([ 0, -1, -1 ]), $a([ 22, 19, 28 ]), $a([ 2, 16, 30 ]), $a([ 1, 19, 30 ]) ]), $a([ "43", 107, 18, 5, 9799, $a([ 6, 147, 28 ]), $a([ 1, 146, 28 ]), $a([ 0, -1, -1 ]), $a([ 11, 66, 28 ]), $a([ 2, 65, 30 ]), $a([ 0, -1, -1 ]), $a([ 18, 33, 28 ]), $a([ 2, 33, 30 ]), $a([ 0, -1, -1 ]), $a([ 22, 21, 32 ]), $a([ 1, 28, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "44", 109, 18, 5, 10207, $a([ 6, 116, 22 ]), $a([ 3, 125, 24 ]), $a([ 0, -1, -1 ]), $a([ 11, 75, 32 ]), $a([ 1, 68, 30 ]), $a([ 0, -1, -1 ]), $a([ 13, 35, 28 ]), $a([ 6, 34, 32 ]), $a([ 1, 30, 30 ]), $a([ 23, 21, 32 ]), $a([ 1, 26, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "45", 111, 18, 5, 10623, $a([ 7, 105, 20 ]), $a([ 4, 95, 18 ]), $a([ 0, -1, -1 ]), $a([ 12, 67, 28 ]), $a([ 1, 63, 30 ]), $a([ 1, 62, 32 ]), $a([ 21, 31, 26 ]), $a([ 2, 33, 32 ]), $a([ 0, -1, -1 ]), $a([ 23, 21, 32 ]), $a([ 2, 24, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "46", 113, 19, 5, 11045, $a([ 10, 116, 22 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 12, 74, 32 ]), $a([ 1, 78, 30 ]), $a([ 0, -1, -1 ]), $a([ 18, 37, 32 ]), $a([ 1, 39, 30 ]), $a([ 1, 41, 28 ]), $a([ 25, 21, 32 ]), $a([ 1, 27, 28 ]), $a([ 0, -1, -1 ]) ]), $a([ "47", 115, 19, 5, 11477, $a([ 5, 126, 24 ]), $a([ 4, 115, 22 ]), $a([ 1, 114, 22 ]), $a([ 12, 67, 28 ]), $a([ 2, 66, 32 ]), $a([ 1, 68, 30 ]), $a([ 21, 35, 30 ]), $a([ 1, 39, 30 ]), $a([ 0, -1, -1 ]), $a([ 26, 21, 32 ]), $a([ 1, 28, 28 ]), $a([ 0, -1, -1 ]) ]), $a([ "48", 117, 19, 5, 11917, $a([ 9, 126, 24 ]), $a([ 1, 117, 22 ]), $a([ 0, -1, -1 ]), $a([ 13, 75, 32 ]), $a([ 1, 68, 30 ]), $a([ 0, -1, -1 ]), $a([ 20, 35, 30 ]), $a([ 3, 35, 28 ]), $a([ 0, -1, -1 ]), $a([ 27, 21, 32 ]), $a([ 1, 28, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "49", 119, 17, 6, 12111, $a([ 9, 126, 24 ]), $a([ 1, 137, 26 ]), $a([ 0, -1, -1 ]), $a([ 13, 71, 30 ]), $a([ 2, 68, 32 ]), $a([ 0, -1, -1 ]), $a([ 20, 37, 32 ]), $a([ 1, 39, 28 ]), $a([ 1, 38, 28 ]), $a([ 24, 20, 32 ]), $a([ 5, 25, 28 ]), $a([ 0, -1, -1 ]) ]), $a([ "50", 121, 17, 6, 12559, $a([ 8, 147, 28 ]), $a([ 1, 141, 28 ]), $a([ 0, -1, -1 ]), $a([ 10, 73, 32 ]), $a([ 4, 74, 30 ]), $a([ 1, 73, 30 ]), $a([ 16, 36, 32 ]), $a([ 6, 39, 30 ]), $a([ 1, 37, 30 ]), $a([ 27, 21, 32 ]), $a([ 3, 20, 26 ]), $a([ 0, -1, -1 ]) ]), $a([ "51", 123, 18, 6, 13025, $a([ 9, 137, 26 ]), $a([ 1, 135, 26 ]), $a([ 0, -1, -1 ]), $a([ 12, 70, 30 ]), $a([ 4, 75, 32 ]), $a([ 0, -1, -1 ]), $a([ 24, 35, 30 ]), $a([ 1, 40, 28 ]), $a([ 0, -1, -1 ]), $a([ 23, 20, 32 ]), $a([ 8, 24, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "52", 125, 18, 6, 13489, $a([ 14, 95, 18 ]), $a([ 1, 86, 18 ]), $a([ 0, -1, -1 ]), $a([ 13, 73, 32 ]), $a([ 3, 77, 30 ]), $a([ 0, -1, -1 ]), $a([ 24, 35, 30 ]), $a([ 2, 35, 28 ]), $a([ 0, -1, -1 ]), $a([ 26, 21, 32 ]), $a([ 5, 21, 30 ]), $a([ 1, 23, 30 ]) ]), $a([ "53", 127, 18, 6, 13961, $a([ 9, 147, 28 ]), $a([ 1, 142, 28 ]), $a([ 0, -1, -1 ]), $a([ 10, 73, 30 ]), $a([ 6, 70, 32 ]), $a([ 1, 71, 32 ]), $a([ 25, 35, 30 ]), $a([ 2, 34, 26 ]), $a([ 0, -1, -1 ]), $a([ 29, 21, 32 ]), $a([ 4, 22, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "54", 129, 18, 6, 14441, $a([ 11, 126, 24 ]), $a([ 1, 131, 24 ]), $a([ 0, -1, -1 ]), $a([ 16, 74, 32 ]), $a([ 1, 79, 30 ]), $a([ 0, -1, -1 ]), $a([ 25, 38, 32 ]), $a([ 1, 25, 30 ]), $a([ 0, -1, -1 ]), $a([ 33, 21, 32 ]), $a([ 1, 28, 28 ]), $a([ 0, -1, -1 ]) ]), $a([ "55", 131, 19, 6, 14939, $a([ 14, 105, 20 ]), $a([ 1, 99, 18 ]), $a([ 0, -1, -1 ]), $a([ 19, 65, 28 ]), $a([ 1, 72, 28 ]), $a([ 0, -1, -1 ]), $a([ 24, 37, 32 ]), $a([ 2, 40, 30 ]), $a([ 1, 41, 30 ]), $a([ 31, 21, 32 ]), $a([ 4, 24, 32 ]), $a([ 0, -1, -1 ]) ]), $a([ "56", 133, 19, 6, 15435, $a([ 10, 147, 28 ]), $a([ 1, 151, 28 ]), $a([ 0, -1, -1 ]), $a([ 15, 71, 30 ]), $a([ 3, 71, 32 ]), $a([ 1, 73, 32 ]), $a([ 24, 37, 32 ]), $a([ 3, 38, 30 ]), $a([ 1, 39, 30 ]), $a([ 36, 19, 30 ]), $a([ 3, 29, 26 ]), $a([ 0, -1, -1 ]) ]), $a([ "57", 135, 19, 6, 15939, $a([ 15, 105, 20 ]), $a([ 1, 99, 18 ]), $a([ 0, -1, -1 ]), $a([ 19, 70, 30 ]), $a([ 1, 64, 28 ]), $a([ 0, -1, -1 ]), $a([ 27, 38, 32 ]), $a([ 2, 25, 26 ]), $a([ 0, -1, -1 ]), $a([ 38, 20, 30 ]), $a([ 2, 18, 28 ]), $a([ 0, -1, -1 ]) ]), $a([ "58", 137, 17, 7, 16171, $a([ 14, 105, 20 ]), $a([ 1, 113, 22 ]), $a([ 1, 114, 22 ]), $a([ 17, 67, 30 ]), $a([ 3, 92, 32 ]), $a([ 0, -1, -1 ]), $a([ 30, 35, 30 ]), $a([ 1, 41, 30 ]), $a([ 0, -1, -1 ]), $a([ 36, 21, 32 ]), $a([ 1, 26, 30 ]), $a([ 1, 27, 30 ]) ]), $a([ "59", 139, 17, 7, 16691, $a([ 11, 146, 28 ]), $a([ 1, 146, 26 ]), $a([ 0, -1, -1 ]), $a([ 20, 70, 30 ]), $a([ 1, 60, 26 ]), $a([ 0, -1, -1 ]), $a([ 29, 38, 32 ]), $a([ 1, 24, 32 ]), $a([ 0, -1, -1 ]), $a([ 40, 20, 30 ]), $a([ 2, 17, 26 ]), $a([ 0, -1, -1 ]) ]), $a([ "60", 141, 18, 7, 17215, $a([ 3, 137, 26 ]), $a([ 1, 136, 26 ]), $a([ 10, 126, 24 ]), $a([ 22, 65, 28 ]), $a([ 1, 75, 30 ]), $a([ 0, -1, -1 ]), $a([ 30, 37, 32 ]), $a([ 1, 51, 30 ]), $a([ 0, -1, -1 ]), $a([ 42, 20, 30 ]), $a([ 1, 21, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "61", 143, 18, 7, 17751, $a([ 12, 126, 24 ]), $a([ 2, 118, 22 ]), $a([ 1, 116, 22 ]), $a([ 19, 74, 32 ]), $a([ 1, 74, 30 ]), $a([ 1, 72, 28 ]), $a([ 30, 38, 32 ]), $a([ 2, 29, 30 ]), $a([ 0, -1, -1 ]), $a([ 39, 20, 32 ]), $a([ 2, 37, 26 ]), $a([ 1, 38, 26 ]) ]), $a([ "62", 145, 18, 7, 18295, $a([ 12, 126, 24 ]), $a([ 3, 136, 26 ]), $a([ 0, -1, -1 ]), $a([ 21, 70, 30 ]), $a([ 2, 65, 28 ]), $a([ 0, -1, -1 ]), $a([ 34, 35, 30 ]), $a([ 1, 44, 32 ]), $a([ 0, -1, -1 ]), $a([ 42, 20, 30 ]), $a([ 2, 19, 28 ]), $a([ 2, 18, 28 ]) ]), $a([ "63", 147, 18, 7, 18847, $a([ 12, 126, 24 ]), $a([ 3, 117, 22 ]), $a([ 1, 116, 22 ]), $a([ 25, 61, 26 ]), $a([ 2, 62, 28 ]), $a([ 0, -1, -1 ]), $a([ 34, 35, 30 ]), $a([ 1, 40, 32 ]), $a([ 1, 41, 32 ]), $a([ 45, 20, 30 ]), $a([ 1, 20, 32 ]), $a([ 1, 21, 32 ]) ]), $a([ "64", 149, 19, 7, 19403, $a([ 15, 105, 20 ]), $a([ 2, 115, 22 ]), $a([ 2, 116, 22 ]), $a([ 25, 65, 28 ]), $a([ 1, 72, 28 ]), $a([ 0, -1, -1 ]), $a([ 18, 35, 30 ]), $a([ 17, 37, 32 ]), $a([ 1, 50, 32 ]), $a([ 42, 20, 30 ]), $a([ 6, 19, 28 ]), $a([ 1, 15, 28 ]) ]), $a([ "65", 151, 19, 7, 19971, $a([ 19, 105, 20 ]), $a([ 1, 101, 20 ]), $a([ 0, -1, -1 ]), $a([ 33, 51, 22 ]), $a([ 1, 65, 22 ]), $a([ 0, -1, -1 ]), $a([ 40, 33, 28 ]), $a([ 1, 28, 28 ]), $a([ 0, -1, -1 ]), $a([ 49, 20, 30 ]), $a([ 1, 18, 28 ]), $a([ 0, -1, -1 ]) ]), $a([ "66", 153, 17, 8, 20229, $a([ 18, 105, 20 ]), $a([ 2, 117, 22 ]), $a([ 0, -1, -1 ]), $a([ 26, 65, 28 ]), $a([ 1, 80, 30 ]), $a([ 0, -1, -1 ]), $a([ 35, 35, 30 ]), $a([ 3, 35, 28 ]), $a([ 1, 36, 28 ]), $a([ 52, 18, 28 ]), $a([ 2, 38, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "67", 155, 17, 8, 20805, $a([ 26, 84, 16 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 26, 70, 30 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 45, 31, 26 ]), $a([ 1, 9, 26 ]), $a([ 0, -1, -1 ]), $a([ 52, 20, 30 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]) ]), $a([ "68", 157, 17, 8, 21389, $a([ 16, 126, 24 ]), $a([ 1, 114, 22 ]), $a([ 1, 115, 22 ]), $a([ 23, 70, 30 ]), $a([ 3, 65, 28 ]), $a([ 1, 66, 28 ]), $a([ 40, 35, 30 ]), $a([ 1, 43, 30 ]), $a([ 0, -1, -1 ]), $a([ 46, 20, 30 ]), $a([ 7, 19, 28 ]), $a([ 1, 16, 28 ]) ]), $a([ "69", 159, 18, 8, 21993, $a([ 19, 116, 22 ]), $a([ 1, 105, 22 ]), $a([ 0, -1, -1 ]), $a([ 20, 70, 30 ]), $a([ 7, 66, 28 ]), $a([ 1, 63, 28 ]), $a([ 40, 35, 30 ]), $a([ 1, 42, 32 ]), $a([ 1, 43, 32 ]), $a([ 54, 20, 30 ]), $a([ 1, 19, 30 ]), $a([ 0, -1, -1 ]) ]), $a([ "70", 161, 18, 8, 22593, $a([ 17, 126, 24 ]), $a([ 2, 115, 22 ]), $a([ 0, -1, -1 ]), $a([ 24, 70, 30 ]), $a([ 4, 74, 32 ]), $a([ 0, -1, -1 ]), $a([ 48, 31, 26 ]), $a([ 2, 18, 26 ]), $a([ 0, -1, -1 ]), $a([ 54, 19, 28 ]), $a([ 6, 15, 26 ]), $a([ 1, 14, 26 ]) ]), $a([ "71", 163, 18, 8, 23201, $a([ 29, 84, 16 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 29, 70, 30 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 6, 34, 30 ]), $a([ 3, 36, 30 ]), $a([ 38, 33, 28 ]), $a([ 58, 20, 30 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]) ]), $a([ "72", 165, 18, 8, 23817, $a([ 16, 147, 28 ]), $a([ 1, 149, 28 ]), $a([ 0, -1, -1 ]), $a([ 31, 66, 28 ]), $a([ 1, 37, 26 ]), $a([ 0, -1, -1 ]), $a([ 48, 33, 28 ]), $a([ 1, 23, 26 ]), $a([ 0, -1, -1 ]), $a([ 53, 20, 30 ]), $a([ 6, 19, 28 ]), $a([ 1, 17, 28 ]) ]), $a([ "73", 167, 19, 8, 24453, $a([ 20, 115, 22 ]), $a([ 2, 134, 24 ]), $a([ 0, -1, -1 ]), $a([ 29, 66, 28 ]), $a([ 2, 56, 26 ]), $a([ 2, 57, 26 ]), $a([ 45, 36, 30 ]), $a([ 2, 15, 28 ]), $a([ 0, -1, -1 ]), $a([ 59, 20, 30 ]), $a([ 2, 21, 32 ]), $a([ 0, -1, -1 ]) ]), $a([ "74", 169, 19, 8, 25085, $a([ 17, 147, 28 ]), $a([ 1, 134, 26 ]), $a([ 0, -1, -1 ]), $a([ 26, 70, 30 ]), $a([ 5, 75, 32 ]), $a([ 0, -1, -1 ]), $a([ 47, 35, 30 ]), $a([ 1, 48, 32 ]), $a([ 0, -1, -1 ]), $a([ 64, 18, 28 ]), $a([ 2, 33, 30 ]), $a([ 1, 35, 30 ]) ]), $a([ "75", 171, 17, 9, 25373, $a([ 22, 115, 22 ]), $a([ 1, 133, 24 ]), $a([ 0, -1, -1 ]), $a([ 33, 65, 28 ]), $a([ 1, 74, 28 ]), $a([ 0, -1, -1 ]), $a([ 43, 36, 30 ]), $a([ 5, 27, 28 ]), $a([ 1, 30, 28 ]), $a([ 57, 20, 30 ]), $a([ 5, 21, 32 ]), $a([ 1, 24, 32 ]) ]), $a([ "76", 173, 17, 9, 26021, $a([ 18, 136, 26 ]), $a([ 2, 142, 26 ]), $a([ 0, -1, -1 ]), $a([ 33, 66, 28 ]), $a([ 2, 49, 26 ]), $a([ 0, -1, -1 ]), $a([ 48, 35, 30 ]), $a([ 2, 38, 28 ]), $a([ 0, -1, -1 ]), $a([ 64, 20, 30 ]), $a([ 1, 20, 32 ]), $a([ 0, -1, -1 ]) ]), $a([ "77", 175, 17, 9, 26677, $a([ 19, 126, 24 ]), $a([ 2, 135, 26 ]), $a([ 1, 136, 26 ]), $a([ 32, 66, 28 ]), $a([ 2, 55, 26 ]), $a([ 2, 56, 26 ]), $a([ 49, 36, 30 ]), $a([ 2, 18, 32 ]), $a([ 0, -1, -1 ]), $a([ 65, 18, 28 ]), $a([ 5, 27, 30 ]), $a([ 1, 29, 30 ]) ]), $a([ "78", 177, 18, 9, 27335, $a([ 20, 137, 26 ]), $a([ 1, 130, 26 ]), $a([ 0, -1, -1 ]), $a([ 30, 75, 32 ]), $a([ 2, 71, 32 ]), $a([ 0, -1, -1 ]), $a([ 46, 35, 30 ]), $a([ 6, 39, 32 ]), $a([ 0, -1, -1 ]), $a([ 3, 12, 30 ]), $a([ 70, 19, 28 ]), $a([ 0, -1, -1 ]) ]), $a([ "79", 179, 18, 9, 28007, $a([ 20, 147, 28 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 35, 70, 30 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]), $a([ 49, 35, 30 ]), $a([ 5, 35, 28 ]), $a([ 0, -1, -1 ]), $a([ 70, 20, 30 ]), $a([ 0, -1, -1 ]), $a([ 0, -1, -1 ]) ]), $a([ "80", 181, 18, 9, 28687, $a([ 21, 136, 26 ]), $a([ 1, 155, 28 ]), $a([ 0, -1, -1 ]), $a([ 34, 70, 30 ]), $a([ 1, 64, 28 ]), $a([ 1, 65, 28 ]), $a([ 54, 35, 30 ]), $a([ 1, 45, 30 ]), $a([ 0, -1, -1 ]), $a([ 68, 20, 30 ]), $a([ 3, 18, 28 ]), $a([ 1, 19, 28 ]) ]), $a([ "81", 183, 18, 9, 29375, $a([ 19, 126, 24 ]), $a([ 5, 115, 22 ]), $a([ 1, 114, 22 ]), $a([ 33, 70, 30 ]), $a([ 3, 65, 28 ]), $a([ 1, 64, 28 ]), $a([ 52, 35, 30 ]), $a([ 3, 41, 32 ]), $a([ 1, 40, 32 ]), $a([ 67, 20, 30 ]), $a([ 5, 21, 32 ]), $a([ 1, 24, 32 ]) ]), $a([ "82", 185, 18, 9, 30071, $a([ 2, 150, 28 ]), $a([ 21, 136, 26 ]), $a([ 0, -1, -1 ]), $a([ 32, 70, 30 ]), $a([ 6, 65, 28 ]), $a([ 0, -1, -1 ]), $a([ 52, 38, 32 ]), $a([ 2, 27, 32 ]), $a([ 0, -1, -1 ]), $a([ 73, 20, 30 ]), $a([ 2, 22, 32 ]), $a([ 0, -1, -1 ]) ]), $a([ "83", 187, 17, 10, 30387, $a([ 21, 126, 24 ]), $a([ 4, 136, 26 ]), $a([ 0, -1, -1 ]), $a([ 30, 74, 32 ]), $a([ 6, 73, 30 ]), $a([ 0, -1, -1 ]), $a([ 54, 35, 30 ]), $a([ 4, 40, 32 ]), $a([ 0, -1, -1 ]), $a([ 75, 20, 30 ]), $a([ 1, 20, 28 ]), $a([ 0, -1, -1 ]) ]), $a([ "84", 189, 17, 10, 31091, $a([ 30, 105, 20 ]), $a([ 1, 114, 22 ]), $a([ 0, -1, -1 ]), $a([ 3, 45, 22 ]), $a([ 55, 47, 20 ]), $a([ 0, -1, -1 ]), $a([ 2, 26, 26 ]), $a([ 62, 33, 28 ]), $a([ 0, -1, -1 ]), $a([ 79, 18, 28 ]), $a([ 4, 33, 30 ]), $a([ 0, -1, -1 ]) ]) ]); - $1.eclval = $get($1.eclevel, 1) - 49; - for (var _IM = 0; _IM <= 83; _IM += 1) { - $1.i = _IM; - $1.m = $get($1.metrics, $1.i); - $1.vers = $get($1.m, 0); - $1.size = $get($1.m, 1); - $1.alnk = $get($1.m, 2); - $1.alnn = $get($1.m, 3); - $1.alnr = $f($1.size - $1.alnk * $1.alnn); - $1.nmod = $get($1.m, 4); - $1.ncws = ~~($1.nmod / 8); - $1.rbit = $1.nmod % 8; - $1.ecbs = $geti($1.m, 5 + $1.eclval * 3, 3); - var _Ii = $1.ecbs; - $k[$j++] = "ecws"; - $k[$j++] = 0; - for (var _Ij = 0, _Ik = _Ii.length; _Ij < _Ik; _Ij++) { - var _Il = $get(_Ii, _Ij); - var _Io = $k[--$j]; - $k[$j++] = $f(_Io + $get(_Il, 0) * $get(_Il, 2)); - } - var _Ip = $k[--$j]; - $1[$k[--$j]] = _Ip; - $1.dcws = $f($1.ncws - $1.ecws); - $1.dmod = $1.dcws * 8; - $1.okay = true; - if ($ne($1.version, "unset") && $ne($1.version, $1.vers)) { - $1.okay = false; - } - if ($1.bits.length > $1.dmod) { - $1.okay = false; - } - if ($1.okay) { - break; - } - } - if (!$1.okay) { - $k[$j++] = "bwipp.hanxinNoValidSymbol"; - $k[$j++] = "No valid symbol available"; - $0.raiseerror(); - } - $1.version = $1.vers; - $1.msgbits = $1.bits; - $1.e1nb = $get($get($1.ecbs, 0), 0); - $1.e2nb = $get($get($1.ecbs, 1), 0); - $1.e3nb = $get($get($1.ecbs, 2), 0); - $1.e1dcws = $get($get($1.ecbs, 0), 1); - $1.e2dcws = $get($get($1.ecbs, 1), 1); - $1.e3dcws = $get($get($1.ecbs, 2), 1); - $1.e1ecws = $get($get($1.ecbs, 0), 2); - $1.e2ecws = $get($get($1.ecbs, 1), 2); - $1.e3ecws = $get($get($1.ecbs, 2), 2); - $1.pad = $s($1.dmod); - for (var _JY = 0, _JX = $1.pad.length - 1; _JY <= _JX; _JY += 1) { - $put($1.pad, _JY, 48); - } - $puti($1.pad, 0, $1.msgbits); - $1.cws = $a($1.dcws); - for (var _Jg = 0, _Jf = $1.cws.length - 1; _Jg <= _Jf; _Jg += 1) { - $1.c = _Jg; - $1.cwb = $geti($1.pad, $1.c * 8, 8); - $1.cw = 0; - for (var _Jk = 0; _Jk <= 7; _Jk += 1) { - $1.i = _Jk; - $1.cw = $f($1.cw + ~~Math.pow(2, 8 - $1.i - 1) * $f($get($1.cwb, $1.i) - 48)); - } - $put($1.cws, $1.c, $1.cw); - } - $1.rscodes = function() { - $1.rspm = $k[--$j]; - $1.rsgf = $k[--$j]; - $1.rsnc = $k[--$j]; - $1.rscws = $k[--$j]; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _Jy = 0, _Jz = $f($1.rsgf - 1); _Jy < _Jz; _Jy++) { - var _K0 = $k[--$j]; - var _K1 = _K0 * 2; - $k[$j++] = _K0; - $k[$j++] = _K1; - if (_K1 >= $1.rsgf) { - var _K4 = $k[--$j]; - $k[$j++] = $xo(_K4, $1.rspm); - } - } - $1.rsalog = $a(); - $1.rslog = $a($1.rsgf); - for (var _KA = 1, _K9 = $f($1.rsgf - 1); _KA <= _K9; _KA += 1) { - $put($1.rslog, $get($1.rsalog, _KA), _KA); - } - $1.rsprod = function() { - var _KE = $k[--$j]; - var _KF = $k[--$j]; - $k[$j++] = _KF; - $k[$j++] = _KE; - if (_KE != 0 && _KF != 0) { - var _KI = $get($1.rslog, $k[--$j]); - var _KO = $get($1.rsalog, $f(_KI + $get($1.rslog, $k[--$j])) % $f($1.rsgf - 1)); - $k[$j++] = _KO; - } else { - $j -= 2; - $k[$j++] = 0; - } - }; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _KQ = 0, _KR = $1.rsnc; _KQ < _KR; _KQ++) { - $k[$j++] = 0; - } - $1.coeffs = $a(); - for (var _KV = 1, _KU = $1.rsnc; _KV <= _KU; _KV += 1) { - $1.i = _KV; - $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); - for (var _Kc = $1.i - 1; _Kc >= 1; _Kc -= 1) { - $1.j = _Kc; - $k[$j++] = $1.coeffs; - $k[$j++] = $1.j; - $k[$j++] = $get($1.coeffs, $1.j - 1); - $k[$j++] = $get($1.coeffs, $1.j); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _Ko = $k[--$j]; - var _Kp = $k[--$j]; - var _Kq = $k[--$j]; - $put($k[--$j], _Kq, $xo(_Kp, _Ko)); - } - $k[$j++] = $1.coeffs; - $k[$j++] = 0; - $k[$j++] = $get($1.coeffs, 0); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _Ky = $k[--$j]; - var _Kz = $k[--$j]; - $put($k[--$j], _Kz, _Ky); - } - $1.nd = $1.rscws.length; - $k[$j++] = Infinity; - $forall($1.rscws); - for (var _L4 = 0, _L5 = $1.rsnc; _L4 < _L5; _L4++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.rscws = $a(); - for (var _L9 = 0, _L8 = $1.nd - 1; _L9 <= _L8; _L9 += 1) { - $1.k = $xo($get($1.rscws, _L9), $get($1.rscws, $1.nd)); - for (var _LH = 0, _LG = $f($1.rsnc - 1); _LH <= _LG; _LH += 1) { - $1.j = _LH; - $k[$j++] = $1.rscws; - $k[$j++] = $1.nd + $1.j; - $k[$j++] = $get($1.rscws, $1.nd + $1.j + 1); - $k[$j++] = $1.k; - $k[$j++] = $get($1.coeffs, $f($f($1.rsnc - $1.j) - 1)); - $1.rsprod(); - var _LU = $k[--$j]; - var _LV = $k[--$j]; - var _LW = $k[--$j]; - $put($k[--$j], _LW, $xo(_LV, _LU)); - } - } - $k[$j++] = $geti($1.rscws, 0, $1.rscws.length - 1); - }; - $1.dcwsb = $a($f($f($1.e1nb + $1.e2nb) + $1.e3nb)); - $1.ecwsb = $a($1.dcwsb.length); - $1.in = 0; - $1.out = 0; - for (var _Li = 0, _Lj = $1.e1nb; _Li < _Lj; _Li++) { - $k[$j++] = $geti($1.cws, $1.in, $1.e1dcws); - $k[$j++] = $1.e1ecws; - $k[$j++] = 256; - $k[$j++] = 355; - $1.rscodes(); - var _Lp = $k[--$j]; - $put($1.dcwsb, $1.out, $geti(_Lp, 0, $1.e1dcws)); - $put($1.ecwsb, $1.out, $geti(_Lp, $1.e1dcws, $1.e1ecws)); - $1.in = $f($1.in + $1.e1dcws); - $1.out = $1.out + 1; - } - for (var _M3 = 0, _M4 = $1.e2nb; _M3 < _M4; _M3++) { - $k[$j++] = $geti($1.cws, $1.in, $1.e2dcws); - $k[$j++] = $1.e2ecws; - $k[$j++] = 256; - $k[$j++] = 355; - $1.rscodes(); - var _MA = $k[--$j]; - $put($1.dcwsb, $1.out, $geti(_MA, 0, $1.e2dcws)); - $put($1.ecwsb, $1.out, $geti(_MA, $1.e2dcws, $1.e2ecws)); - $1.in = $f($1.in + $1.e2dcws); - $1.out = $1.out + 1; - } - for (var _MO = 0, _MP = $1.e3nb; _MO < _MP; _MO++) { - $k[$j++] = $geti($1.cws, $1.in, $1.e3dcws); - $k[$j++] = $1.e3ecws; - $k[$j++] = 256; - $k[$j++] = 355; - $1.rscodes(); - var _MV = $k[--$j]; - $put($1.dcwsb, $1.out, $geti(_MV, 0, $1.e3dcws)); - $put($1.ecwsb, $1.out, $geti(_MV, $1.e3dcws, $1.e3ecws)); - $1.in = $f($1.in + $1.e3dcws); - $1.out = $1.out + 1; - } - $1.cws = $a($1.ncws); - $1.cw = 0; - for (var _Mm = 0, _Ml = $1.dcwsb.length - 1; _Mm <= _Ml; _Mm += 1) { - $1.i = _Mm; - var _Mp = $get($1.dcwsb, $1.i); - $puti($1.cws, $1.cw, _Mp); - $1.cw = _Mp.length + $1.cw; - var _Mv = $get($1.ecwsb, $1.i); - $puti($1.cws, $1.cw, _Mv); - $1.cw = _Mv.length + $1.cw; - } - $k[$j++] = Infinity; - var _Mz = $1.ncws; - var _N0 = 12; - var _N1 = _Mz - 1; - if (_Mz - 1 > 12) { - var _ = _N0; - _N0 = _N1; - _N1 = _; - } - for (var _N3 = 0, _N2 = _N1; _N3 <= _N2; _N3 += 1) { - for (var _N6 = _N3, _N5 = $1.ncws - 1; _N6 <= _N5; _N6 += 13) { - $k[$j++] = _N6; - if (_N6 < $1.ncws) { - var _NA = $get($1.cws, $k[--$j]); - $k[$j++] = _NA; - } else { - $j--; - } - } - } - $1.cws = $a(); - if ($1.rbit > 0) { - $1.pad = $a($1.cws.length + 1); - $puti($1.pad, 0, $1.cws); - $put($1.pad, $1.pad.length - 1, 0); - $1.cws = $1.pad; - } - $k[$j++] = Infinity; - for (var _NM = 0, _NN = $1.size * $1.size; _NM < _NN; _NM++) { - $k[$j++] = -1; - } - $1.pixs = $a(); - $1.qmv = function() { - var _NQ = $k[--$j]; - var _NR = $k[--$j]; - $k[$j++] = $f(_NR + _NQ * $1.size); - }; - if ($1.alnn != 0) { - $1.trmv = function() { - var _NU = $k[--$j]; - var _NW = $k[--$j]; - $k[$j++] = $f($f($f(_NU * $1.size + $1.size) - 1) - _NW); - }; - $1.aplot = function() { - var _NX = $k[--$j]; - var _NY = $k[--$j]; - var _NZ = $k[--$j]; - $k[$j++] = _NX; - $k[$j++] = _NZ; - $k[$j++] = _NY; - $k[$j++] = _NX; - $k[$j++] = _NY; - $k[$j++] = _NZ; - $1.trmv(); - var _Nb = $k[--$j]; - $put($1.pixs, _Nb, $k[--$j]); - $1.trmv(); - var _Ne = $k[--$j]; - $put($1.pixs, _Ne, $k[--$j]); - }; - $1.i = 0; - $1.stag = 0; - for (;;) { - if ($1.i >= $1.size) { - break; - } - for (var _Nk = 0, _Nj = $f($1.size - 1); _Nk <= _Nj; _Nk += 1) { - $1.j = _Nk; - if ($f($1.j + $1.alnr) < $1.size) { - $k[$j++] = (~~($1.j / $1.alnk) + $1.stag) % 2 == 0 && !($1.i == 0 && $1.j < $1.alnk) || $1.j % $1.alnk == 0; - } else { - $k[$j++] = $f($1.alnn + $1.stag) % 2 == 0; - } - if ($k[--$j]) { - $k[$j++] = $1.j; - $k[$j++] = $1.i; - $k[$j++] = 1; - $1.aplot(); - var _O1 = $1.j; - var _O2 = $1.i; - $k[$j++] = _O1 + 1; - $k[$j++] = _O2 + 1; - if (_O2 + 1 < $1.size && _O1 + 1 < $1.size) { - $k[$j++] = 0; - $1.aplot(); - } else { - $j -= 2; - } - } - } - if ($f($1.i + $1.alnr) == $1.size) { - $1.i = $f($f($1.i + $1.alnr) - 1); - } else { - $1.i = $f($1.i + $1.alnk); - } - $1.stag = 1 - $1.stag; - } - for (var _OH = $1.alnk, _OI = $1.alnk, _OG = $f($1.size - 2); _OI < 0 ? _OH >= _OG : _OH <= _OG; _OH += _OI) { - $1.i = _OH; - if (~~($1.i / $1.alnk) % 2 != 0) { - $k[$j++] = $1.pixs; - $k[$j++] = 0; - $k[$j++] = $1.i - 1; - $1.trmv(); - var _ON = $k[--$j]; - $put($k[--$j], _ON, 0); - $k[$j++] = $1.pixs; - $k[$j++] = 0; - $k[$j++] = $1.i + 1; - $1.trmv(); - var _OR = $k[--$j]; - $put($k[--$j], _OR, 0); - $k[$j++] = $1.pixs; - $k[$j++] = 1; - $k[$j++] = $1.i - 1; - $1.trmv(); - var _OV = $k[--$j]; - $put($k[--$j], _OV, 0); - $k[$j++] = $1.pixs; - $k[$j++] = 1; - $k[$j++] = $1.i; - $1.trmv(); - var _OZ = $k[--$j]; - $put($k[--$j], _OZ, 0); - $k[$j++] = $1.pixs; - $k[$j++] = 1; - $k[$j++] = $1.i + 1; - $1.trmv(); - var _Od = $k[--$j]; - $put($k[--$j], _Od, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $1.i - 1; - $k[$j++] = 0; - $1.trmv(); - var _Oh = $k[--$j]; - $put($k[--$j], _Oh, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $1.i + 1; - $k[$j++] = 0; - $1.trmv(); - var _Ol = $k[--$j]; - $put($k[--$j], _Ol, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $1.i - 1; - $k[$j++] = 1; - $1.trmv(); - var _Op = $k[--$j]; - $put($k[--$j], _Op, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = 1; - $1.trmv(); - var _Ot = $k[--$j]; - $put($k[--$j], _Ot, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $1.i + 1; - $k[$j++] = 1; - $1.trmv(); - var _Ox = $k[--$j]; - $put($k[--$j], _Ox, 0); - } - $k[$j++] = $1.pixs; - $k[$j++] = $f($1.size - 1); - $k[$j++] = $1.i - 1; - $1.trmv(); - var _P2 = $k[--$j]; - if ($get($k[--$j], _P2) != 1) { - $k[$j++] = $1.pixs; - $k[$j++] = $f($1.size - 1); - $k[$j++] = $1.i - 1; - $1.trmv(); - var _P8 = $k[--$j]; - $put($k[--$j], _P8, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $f($1.size - 2); - $k[$j++] = $1.i - 1; - $1.trmv(); - var _PD = $k[--$j]; - $put($k[--$j], _PD, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $f($1.size - 2); - $k[$j++] = $1.i; - $1.trmv(); - var _PI = $k[--$j]; - $put($k[--$j], _PI, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $f($1.size - 2); - $k[$j++] = $1.i + 1; - $1.trmv(); - var _PN = $k[--$j]; - $put($k[--$j], _PN, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $f($1.size - 1); - $k[$j++] = $1.i + 1; - $1.trmv(); - var _PS = $k[--$j]; - $put($k[--$j], _PS, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $1.i - 1; - $k[$j++] = $f($1.size - 1); - $1.trmv(); - var _PX = $k[--$j]; - $put($k[--$j], _PX, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $1.i - 1; - $k[$j++] = $f($1.size - 2); - $1.trmv(); - var _Pc = $k[--$j]; - $put($k[--$j], _Pc, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = $f($1.size - 2); - $1.trmv(); - var _Ph = $k[--$j]; - $put($k[--$j], _Ph, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $1.i + 1; - $k[$j++] = $f($1.size - 2); - $1.trmv(); - var _Pm = $k[--$j]; - $put($k[--$j], _Pm, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $1.i + 1; - $k[$j++] = $f($1.size - 1); - $1.trmv(); - var _Pr = $k[--$j]; - $put($k[--$j], _Pr, 0); - } - } - } - $1.fpat = $a([ $a([ 1, 1, 1, 1, 1, 1, 1, 0 ]), $a([ 1, 0, 0, 0, 0, 0, 0, 0 ]), $a([ 1, 0, 1, 1, 1, 1, 1, 0 ]), $a([ 1, 0, 1, 0, 0, 0, 0, 0 ]), $a([ 1, 0, 1, 0, 1, 1, 1, 0 ]), $a([ 1, 0, 1, 0, 1, 1, 1, 0 ]), $a([ 1, 0, 1, 0, 1, 1, 1, 0 ]), $a([ 0, 0, 0, 0, 0, 0, 0, 0 ]) ]); - $1.fpat2 = $a([ $a([ 1, 1, 1, 0, 1, 0, 1, 0 ]), $a([ 1, 1, 1, 0, 1, 0, 1, 0 ]), $a([ 1, 1, 1, 0, 1, 0, 1, 0 ]), $a([ 0, 0, 0, 0, 1, 0, 1, 0 ]), $a([ 1, 1, 1, 1, 1, 0, 1, 0 ]), $a([ 0, 0, 0, 0, 0, 0, 1, 0 ]), $a([ 1, 1, 1, 1, 1, 1, 1, 0 ]), $a([ 0, 0, 0, 0, 0, 0, 0, 0 ]) ]); - for (var _QD = 0, _QC = $1.fpat.length - 1; _QD <= _QC; _QD += 1) { - $1.y = _QD; - for (var _QH = 0, _QG = $get($1.fpat, 0).length - 1; _QH <= _QG; _QH += 1) { - $1.x = _QH; - $1.fpb = $get($get($1.fpat, $1.y), $1.x); - $1.fpb2 = $get($get($1.fpat2, $1.y), $1.x); - $k[$j++] = $1.pixs; - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $1.qmv(); - var _QW = $k[--$j]; - $put($k[--$j], _QW, $1.fpb); - $k[$j++] = $1.pixs; - $k[$j++] = $f($f($1.size - $1.x) - 1); - $k[$j++] = $1.y; - $1.qmv(); - var _Qd = $k[--$j]; - $put($k[--$j], _Qd, $1.fpb); - $k[$j++] = $1.pixs; - $k[$j++] = $f($f($1.size - $1.x) - 1); - $k[$j++] = $f($f($1.size - $1.y) - 1); - $1.qmv(); - var _Ql = $k[--$j]; - $put($k[--$j], _Ql, $1.fpb); - $k[$j++] = $1.pixs; - $k[$j++] = $1.x; - $k[$j++] = $f($f($1.size - $1.y) - 1); - $1.qmv(); - var _Qs = $k[--$j]; - $put($k[--$j], _Qs, $1.fpb2); - } - } - $1.functionmap = $a([ $a([ $a([ 0, 8 ]), $a([ $f($1.size - 1), $f($1.size - 9) ]) ]), $a([ $a([ 1, 8 ]), $a([ $f($1.size - 2), $f($1.size - 9) ]) ]), $a([ $a([ 2, 8 ]), $a([ $f($1.size - 3), $f($1.size - 9) ]) ]), $a([ $a([ 3, 8 ]), $a([ $f($1.size - 4), $f($1.size - 9) ]) ]), $a([ $a([ 4, 8 ]), $a([ $f($1.size - 5), $f($1.size - 9) ]) ]), $a([ $a([ 5, 8 ]), $a([ $f($1.size - 6), $f($1.size - 9) ]) ]), $a([ $a([ 6, 8 ]), $a([ $f($1.size - 7), $f($1.size - 9) ]) ]), $a([ $a([ 7, 8 ]), $a([ $f($1.size - 8), $f($1.size - 9) ]) ]), $a([ $a([ 8, 8 ]), $a([ $f($1.size - 9), $f($1.size - 9) ]) ]), $a([ $a([ 8, 7 ]), $a([ $f($1.size - 9), $f($1.size - 8) ]) ]), $a([ $a([ 8, 6 ]), $a([ $f($1.size - 9), $f($1.size - 7) ]) ]), $a([ $a([ 8, 5 ]), $a([ $f($1.size - 9), $f($1.size - 6) ]) ]), $a([ $a([ 8, 4 ]), $a([ $f($1.size - 9), $f($1.size - 5) ]) ]), $a([ $a([ 8, 3 ]), $a([ $f($1.size - 9), $f($1.size - 4) ]) ]), $a([ $a([ 8, 2 ]), $a([ $f($1.size - 9), $f($1.size - 3) ]) ]), $a([ $a([ 8, 1 ]), $a([ $f($1.size - 9), $f($1.size - 2) ]) ]), $a([ $a([ 8, 0 ]), $a([ $f($1.size - 9), $f($1.size - 1) ]) ]), $a([ $a([ $f($1.size - 9), 0 ]), $a([ 8, $f($1.size - 1) ]) ]), $a([ $a([ $f($1.size - 9), 1 ]), $a([ 8, $f($1.size - 2) ]) ]), $a([ $a([ $f($1.size - 9), 2 ]), $a([ 8, $f($1.size - 3) ]) ]), $a([ $a([ $f($1.size - 9), 3 ]), $a([ 8, $f($1.size - 4) ]) ]), $a([ $a([ $f($1.size - 9), 4 ]), $a([ 8, $f($1.size - 5) ]) ]), $a([ $a([ $f($1.size - 9), 5 ]), $a([ 8, $f($1.size - 6) ]) ]), $a([ $a([ $f($1.size - 9), 6 ]), $a([ 8, $f($1.size - 7) ]) ]), $a([ $a([ $f($1.size - 9), 7 ]), $a([ 8, $f($1.size - 8) ]) ]), $a([ $a([ $f($1.size - 9), 8 ]), $a([ 8, $f($1.size - 9) ]) ]), $a([ $a([ $f($1.size - 8), 8 ]), $a([ 7, $f($1.size - 9) ]) ]), $a([ $a([ $f($1.size - 7), 8 ]), $a([ 6, $f($1.size - 9) ]) ]), $a([ $a([ $f($1.size - 6), 8 ]), $a([ 5, $f($1.size - 9) ]) ]), $a([ $a([ $f($1.size - 5), 8 ]), $a([ 4, $f($1.size - 9) ]) ]), $a([ $a([ $f($1.size - 4), 8 ]), $a([ 3, $f($1.size - 9) ]) ]), $a([ $a([ $f($1.size - 3), 8 ]), $a([ 2, $f($1.size - 9) ]) ]), $a([ $a([ $f($1.size - 2), 8 ]), $a([ 1, $f($1.size - 9) ]) ]), $a([ $a([ $f($1.size - 1), 8 ]), $a([ 0, $f($1.size - 9) ]) ]) ]); - var _Tf = $1.functionmap; - for (var _Tg = 0, _Th = _Tf.length; _Tg < _Th; _Tg++) { - $forall($get(_Tf, _Tg), function() { - $forall($k[--$j]); - $1.qmv(); - $put($1.pixs, $k[--$j], 0); - }); - } - var _Ts = $a([ function() { - $j -= 2; - $k[$j++] = 1; - }, function() { - var _Tm = $k[--$j]; - var _Tn = $k[--$j]; - $k[$j++] = $f(_Tn + _Tm) % 2; - }, function() { - var _To = $k[--$j]; - var _Tp = $k[--$j]; - $k[$j++] = $f($f(_To + _Tp) % 3 + _Tp % 3) % 2; - }, function() { - var _Tq = $k[--$j]; - var _Tr = $k[--$j]; - $k[$j++] = $f(_Tr % _Tq + $f(_Tq % _Tr + $f(_Tq % 3 + _Tr % 3))) % 2; - } ]); - $1.maskfuncs = _Ts; - if ($1.mask != -1) { - $1.maskfuncs = $a([ $get($1.maskfuncs, $1.mask - 1) ]); - $1.bestmaskval = $1.mask - 1; - } - $1.masks = $a($1.maskfuncs.length); - for (var _U3 = 0, _U2 = $1.masks.length - 1; _U3 <= _U2; _U3 += 1) { - $1.m = _U3; - $1.mask = $a($1.size * $1.size); - for (var _U9 = 0, _U8 = $f($1.size - 1); _U9 <= _U8; _U9 += 1) { - $1.j = _U9; - for (var _UC = 0, _UB = $f($1.size - 1); _UC <= _UB; _UC += 1) { - $1.i = _UC; - $k[$j++] = $1.i + 1; - $k[$j++] = $1.j + 1; - if ($get($1.maskfuncs, $1.m)() === true) { - break; - } - var _UI = $k[--$j]; - $k[$j++] = _UI == 0; - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.qmv(); - var _UM = $k[--$j]; - var _UO = $get($k[--$j], _UM); - var _UP = $k[--$j]; - var _UQ = _UP && _UO == -1 ? 1 : 0; - $k[$j++] = _UQ; - $k[$j++] = $1.mask; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.qmv(); - var _UU = $k[--$j]; - var _UV = $k[--$j]; - $put(_UV, _UU, $k[--$j]); - } - } - $put($1.masks, $1.m, $1.mask); - } - $1.posx = 0; - $1.posy = 0; - $1.num = 0; - for (;;) { - if ($1.posy == $1.size) { - break; - } - $k[$j++] = $1.pixs; - $k[$j++] = $1.posx; - $k[$j++] = $1.posy; - $1.qmv(); - var _Uf = $k[--$j]; - if ($get($k[--$j], _Uf) == -1) { - var _Uk = $get($1.cws, ~~($1.num / 8)); - var _Um = -(7 - $1.num % 8); - $k[$j++] = (_Um < 0 ? _Uk >>> -_Um : _Uk << _Um) & 1; - $k[$j++] = $1.pixs; - $k[$j++] = $1.posx; - $k[$j++] = $1.posy; - $1.qmv(); - var _Uq = $k[--$j]; - var _Ur = $k[--$j]; - $put(_Ur, _Uq, $k[--$j]); - $1.num = $1.num + 1; - } - $1.posx = $1.posx + 1; - if ($1.posx == $1.size) { - $1.posx = 0; - $1.posy = $1.posy + 1; - } - } - $1.evalfulln1n3 = function() { - $1.scrle = $k[--$j]; - $k[$j++] = "scr1"; - $k[$j++] = 0; - $forall($1.scrle, function() { - var _V0 = $k[--$j]; - $k[$j++] = _V0; - if (_V0 >= 3) { - var _V1 = $k[--$j]; - var _V3 = $f($k[--$j] + _V1 * 4); - $k[$j++] = _V3; - $k[$j++] = _V3; - } - $j--; - }); - var _V4 = $k[--$j]; - $1[$k[--$j]] = _V4; - $1.scr3 = 0; - for (var _V8 = 5, _V7 = $1.scrle.length - 1; _V8 <= _V7; _V8 += 2) { - $1.j = _V8; - if ($get($1.scrle, $1.j) % 3 == 0) { - $1.fact = ~~($get($1.scrle, $1.j) / 3); - var _VH = $geti($1.scrle, $1.j - 4, 4); - for (var _VI = 0, _VJ = _VH.length; _VI < _VJ; _VI++) { - $k[$j++] = $get(_VH, _VI) == $1.fact; - } - var _VM = $k[--$j]; - var _VN = $k[--$j]; - var _VO = $k[--$j]; - var _VP = $k[--$j]; - if (_VP && (_VO && (_VN && _VM))) { - if ($1.j == 5 || $1.j + 2 >= $1.scrle.length) { - $1.scr3 = $1.scr3 + 50; - } else { - if ($get($1.scrle, $1.j - 5) >= 3 || $get($1.scrle, $1.j + 1) >= 3) { - $1.scr3 = $1.scr3 + 50; - } - } - } - } - } - for (var _Vd = 1, _Vc = $1.scrle.length - 5; _Vd <= _Vc; _Vd += 2) { - $1.j = _Vd; - if ($get($1.scrle, $1.j) % 3 == 0) { - $1.fact = ~~($get($1.scrle, $1.j) / 3); - var _Vm = $geti($1.scrle, $1.j + 1, 4); - for (var _Vn = 0, _Vo = _Vm.length; _Vn < _Vo; _Vn++) { - $k[$j++] = $get(_Vm, _Vn) == $1.fact; - } - var _Vr = $k[--$j]; - var _Vs = $k[--$j]; - var _Vt = $k[--$j]; - var _Vu = $k[--$j]; - if (_Vu && (_Vt && (_Vs && _Vr))) { - if ($1.j == 1 || $1.j + 6 >= $1.scrle.length) { - $1.scr3 = $1.scr3 + 50; - } else { - if ($get($1.scrle, $1.j - 1) >= 3 || $get($1.scrle, $1.j + 5) >= 3) { - $1.scr3 = $1.scr3 + 50; - } - } - } - } - } - $k[$j++] = $1.scr1; - $k[$j++] = $1.scr3; - }; - $1.evalfull = function() { - $1.sym = $k[--$j]; - $1.n1 = 0; - $1.n3 = 0; - $1.rle = $a($f($1.size + 1)); - $1.lastpairs = $a($1.size); - $1.thispairs = $a($1.size); - $1.sizeadd1 = $f($1.size + 1); - for (var _WI = 0, _WH = $f($1.size - 1); _WI <= _WH; _WI += 1) { - $1.i = _WI; - $k[$j++] = Infinity; - var _WK = $1.size; - $k[$j++] = 0; - $k[$j++] = 0; - for (var _WM = $1.i, _WN = _WK, _WL = $f(_WK * _WK - 1); _WN < 0 ? _WM >= _WL : _WM <= _WL; _WM += _WN) { - var _WP = $get($1.sym, _WM); - var _WQ = $k[--$j]; - $k[$j++] = _WP; - if ($eq(_WQ, _WP)) { - var _WR = $k[--$j]; - var _WS = $k[--$j]; - $k[$j++] = $f(_WS + 1); - $k[$j++] = _WR; - } else { - var _WT = $k[--$j]; - $k[$j++] = 1; - $k[$j++] = _WT; - } - } - $j--; - var _WV = $counttomark() + 2; - $astore($geti($1.rle, 0, _WV - 2)); - $1.evalfulln1n3(); - $1.n3 = $f($k[--$j] + $1.n3); - $1.n1 = $f($k[--$j] + $1.n1); - $j--; - $1.symrow = $geti($1.sym, $1.i * $1.size, $1.size); - $k[$j++] = Infinity; - var _Wg = $1.symrow; - $k[$j++] = 0; - $k[$j++] = 0; - for (var _Wh = 0, _Wi = _Wg.length; _Wh < _Wi; _Wh++) { - var _Wj = $get(_Wg, _Wh); - var _Wk = $k[--$j]; - $k[$j++] = _Wj; - if ($eq(_Wk, _Wj)) { - var _Wl = $k[--$j]; - var _Wm = $k[--$j]; - $k[$j++] = $f(_Wm + 1); - $k[$j++] = _Wl; - } else { - var _Wn = $k[--$j]; - $k[$j++] = 1; - $k[$j++] = _Wn; - } - } - $j--; - var _Wp = $counttomark() + 2; - $astore($geti($1.rle, 0, _Wp - 2)); - $1.evalfulln1n3(); - $1.n3 = $f($k[--$j] + $1.n3); - $1.n1 = $f($k[--$j] + $1.n1); - $j--; - } - $k[$j++] = $f($1.n1 + $1.n3); - }; - $1.bestscore = 999999999; - for (var _Wz = 0, _Wy = $1.masks.length - 1; _Wz <= _Wy; _Wz += 1) { - $1.m = _Wz; - $1.masksym = $a($1.size * $1.size); - for (var _X6 = 0, _X5 = $f($1.size * $1.size - 1); _X6 <= _X5; _X6 += 1) { - $1.i = _X6; - $put($1.masksym, $1.i, $xo($get($1.pixs, $1.i), $get($get($1.masks, $1.m), $1.i))); - } - if ($1.masks.length != 1) { - $k[$j++] = $1.masksym; - $1.evalfull(); - $1.score = $k[--$j]; - if ($1.score < $1.bestscore) { - $1.bestsym = $1.masksym; - $1.bestmaskval = $1.m; - $1.bestscore = $1.score; - } - } else { - $1.bestsym = $1.masksym; - } - } - $1.pixs = $1.bestsym; - $1.funval = ((~~($f($1.size - 21) / 2) + 20) * 4 + $1.eclval) * 4 + $1.bestmaskval; - $k[$j++] = $a([ ($1.funval & 3840) >>> 8, ($1.funval & 240) >>> 4, $1.funval & 15 ]); - $k[$j++] = 4; - $k[$j++] = 16; - $k[$j++] = 19; - $1.rscodes(); - $1.funvals = $k[--$j]; - $k[$j++] = Infinity; - $forall($1.funvals, function() { - $k[$j++] = 4; - $1.tobin(); - $forall($k[--$j], function() { - var _Xb = $k[--$j]; - $k[$j++] = $f(_Xb - 48); - }); - }); - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $1.funbits = $a(); - for (var _Xf = 0, _Xe = $1.functionmap.length - 1; _Xf <= _Xe; _Xf += 1) { - $1.i = _Xf; - $forall($get($1.functionmap, $1.i), function() { - var _Xk = $k[--$j]; - $k[$j++] = $1.pixs; - $aload(_Xk); - $1.qmv(); - var _Xo = $k[--$j]; - $put($k[--$j], _Xo, $get($1.funbits, $1.i)); - }); - } - var _Xw = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", $1.size ], [ "pixy", $1.size ], [ "height", $1.size * 2 / 72 ], [ "width", $1.size * 2 / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _Xw; - if (!$1.dontdraw) { - $0.renmatrix(); - } - }; - $0.dotcode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.rows = -1; - $1.columns = -1; - $1.ratio = -1; - $1.parse = false; - $1.parsefnc = false; - $1.raw = false; - $1.fast = false; - $1.mask = -1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.rows = ~~$1.rows; - $1.columns = ~~$1.columns; - $1.ratio = +$1.ratio; - $1.mask = ~~$1.mask; - if ($1.ratio == -1 && $1.rows == -1 && $1.columns == -1) { - $1.ratio = 3 / 2; - } - $1.laa = -1; - $1.lab = -2; - $1.lac = -3; - $1.bin = -4; - $1.sfa = -5; - $1.sfb = -6; - $1.sb2 = -7; - $1.sb3 = -8; - $1.sb4 = -9; - $1.sb5 = -10; - $1.sb6 = -11; - $1.sfc = -12; - $1.sc2 = -13; - $1.sc3 = -14; - $1.sc4 = -15; - $1.sc5 = -16; - $1.sc6 = -17; - $1.sc7 = -18; - $1.bsa = -19; - $1.bsb = -20; - $1.tma = -21; - $1.tmb = -22; - $1.tmc = -23; - $1.tms = -24; - $1.fn1 = -25; - $1.fn2 = -26; - $1.fn3 = -27; - $1.crl = -28; - $1.aim = -29; - $1.m05 = -30; - $1.m06 = -31; - $1.m12 = -32; - $1.mac = -33; - var _G = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "eci", true ], [ "FNC1", $1.fn1 ], [ "FNC3", $1.fn3 ] ]); - $1.fncvals = _G; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _J = $k[--$j]; - $1[$k[--$j]] = _J; - $1.msglen = $1.msg.length; - var _M = $1.msg; - $k[$j++] = "numecis"; - $k[$j++] = 0; - for (var _N = 0, _O = _M.length; _N < _O; _N++) { - if ($get(_M, _N) <= -1e6) { - var _Q = $k[--$j]; - $k[$j++] = $f(_Q + 1); - } - } - var _R = $k[--$j]; - $1[$k[--$j]] = _R; - $1.msgtmp = $a($f($1.msg.length + $1.numecis * 6)); - $1.j = 0; - for (var _Y = 0, _X = $1.msg.length - 1; _Y <= _X; _Y += 1) { - var _a = $get($1.msg, _Y); - $k[$j++] = _a; - if (_a <= -1e6) { - var _e = $geti($cvrs($s(7), -$k[--$j], 10), 1, 6); - for (var _f = 0, _g = _e.length; _f < _g; _f++) { - $k[$j++] = $get(_e, _f); - } - $astore($a(6)); - $puti($1.msgtmp, $1.j + 1, $k[--$j]); - $put($1.msgtmp, $1.j, $1.fn2); - $1.j = $1.j + 7; - } else { - $put($1.msgtmp, $1.j, $k[--$j]); - $1.j = $1.j + 1; - } - } - $1.msg = $1.msgtmp; - $1.msglen = $1.msg.length; - $1.charmaps = $a([ $a([ 32, 32, "00" ]), $a([ "!", "!", "01" ]), $a([ '"', '"', "02" ]), $a([ "#", "#", "03" ]), $a([ "$", "$", "04" ]), $a([ "%", "%", "05" ]), $a([ "&", "&", "06" ]), $a([ "'", "'", "07" ]), $a([ 40, 40, "08" ]), $a([ 41, 41, "09" ]), $a([ "*", "*", "10" ]), $a([ "+", "+", "11" ]), $a([ ",", ",", "12" ]), $a([ "-", "-", "13" ]), $a([ ".", ".", "14" ]), $a([ "/", "/", "15" ]), $a([ "0", "0", "16" ]), $a([ "1", "1", "17" ]), $a([ "2", "2", "18" ]), $a([ "3", "3", "19" ]), $a([ "4", "4", "20" ]), $a([ "5", "5", "21" ]), $a([ "6", "6", "22" ]), $a([ "7", "7", "23" ]), $a([ "8", "8", "24" ]), $a([ "9", "9", "25" ]), $a([ ":", ":", "26" ]), $a([ ";", ";", "27" ]), $a([ "<", "<", "28" ]), $a([ "=", "=", "29" ]), $a([ ">", ">", "30" ]), $a([ "?", "?", "31" ]), $a([ "@", "@", "32" ]), $a([ "A", "A", "33" ]), $a([ "B", "B", "34" ]), $a([ "C", "C", "35" ]), $a([ "D", "D", "36" ]), $a([ "E", "E", "37" ]), $a([ "F", "F", "38" ]), $a([ "G", "G", "39" ]), $a([ "H", "H", "40" ]), $a([ "I", "I", "41" ]), $a([ "J", "J", "42" ]), $a([ "K", "K", "43" ]), $a([ "L", "L", "44" ]), $a([ "M", "M", "45" ]), $a([ "N", "N", "46" ]), $a([ "O", "O", "47" ]), $a([ "P", "P", "48" ]), $a([ "Q", "Q", "49" ]), $a([ "R", "R", "50" ]), $a([ "S", "S", "51" ]), $a([ "T", "T", "52" ]), $a([ "U", "U", "53" ]), $a([ "V", "V", "54" ]), $a([ "W", "W", "55" ]), $a([ "X", "X", "56" ]), $a([ "Y", "Y", "57" ]), $a([ "Z", "Z", "58" ]), $a([ "[", "[", "59" ]), $a([ 92, 92, "60" ]), $a([ "]", "]", "61" ]), $a([ "^", "^", "62" ]), $a([ "_", "_", "63" ]), $a([ 0, "`", "64" ]), $a([ 1, "a", "65" ]), $a([ 2, "b", "66" ]), $a([ 3, "c", "67" ]), $a([ 4, "d", "68" ]), $a([ 5, "e", "69" ]), $a([ 6, "f", "70" ]), $a([ 7, "g", "71" ]), $a([ 8, "h", "72" ]), $a([ 9, "i", "73" ]), $a([ 10, "j", "74" ]), $a([ 11, "k", "75" ]), $a([ 12, "l", "76" ]), $a([ 13, "m", "77" ]), $a([ 14, "n", "78" ]), $a([ 15, "o", "79" ]), $a([ 16, "p", "80" ]), $a([ 17, "q", "81" ]), $a([ 18, "r", "82" ]), $a([ 19, "s", "83" ]), $a([ 20, "t", "84" ]), $a([ 21, "u", "85" ]), $a([ 22, "v", "86" ]), $a([ 23, "w", "87" ]), $a([ 24, "x", "88" ]), $a([ 25, "y", "89" ]), $a([ 26, "z", "90" ]), $a([ 27, "{", "91" ]), $a([ 28, "|", "92" ]), $a([ 29, "}", "93" ]), $a([ 30, "~", "94" ]), $a([ 31, 127, "95" ]), $a([ $1.sfb, $1.crl, "96" ]), $a([ $1.sb2, 9, "97" ]), $a([ $1.sb3, 28, "98" ]), $a([ $1.sb4, 29, "99" ]), $a([ $1.sb5, 30, $1.aim ]), $a([ $1.sb6, $1.sfa, $1.laa ]), $a([ $1.lab, $1.laa, $1.sfb ]), $a([ $1.sc2, $1.sc2, $1.sb2 ]), $a([ $1.sc3, $1.sc3, $1.sb3 ]), $a([ $1.sc4, $1.sc4, $1.sb4 ]), $a([ $1.lac, $1.lac, $1.lab ]), $a([ $1.fn1, $1.fn1, $1.fn1 ]), $a([ $1.fn2, $1.fn2, $1.fn2 ]), $a([ $1.fn3, $1.fn3, $1.fn3 ]), $a([ $1.bsa, $1.bsa, $1.bsa ]), $a([ $1.bsb, $1.bsb, $1.bsb ]), $a([ $1.bin, $1.bin, $1.bin ]) ]); - $1.charvals = $a([ new Map(), new Map(), new Map() ]); - for (var _3W = 0, _3V = $1.charmaps.length - 1; _3W <= _3V; _3W += 1) { - $1.i = _3W; - $1.encs = $get($1.charmaps, $1.i); - for (var _3a = 0; _3a <= 2; _3a += 1) { - $1.j = _3a; - var _3d = $get($1.encs, $1.j); - $k[$j++] = _3d; - if ($eq($type(_3d), "stringtype")) { - var _3g = $get($k[--$j], 0); - $k[$j++] = _3g; - } - $put($get($1.charvals, $1.j), $k[--$j], $1.i); - } - } - $1.Avals = $get($1.charvals, 0); - $1.Bvals = $get($1.charvals, 1); - $put($1.Bvals, $1.m05, 97); - $put($1.Bvals, $1.m06, 98); - $put($1.Bvals, $1.m12, 99); - $put($1.Bvals, $1.mac, 100); - $1.Cvals = $get($1.charvals, 2); - $k[$j++] = Infinity; - var _4A = $a([ $1.sc2, $1.sc3, $1.sc4, $1.sc5, $1.sc6, $1.sc7, $1.tma, $1.tmb, $1.tmc, $1.tms ]); - $k[$j++] = 102; - for (var _4B = 0, _4C = _4A.length; _4B < _4C; _4B++) { - var _4F = $f($k[--$j] + 1); - $k[$j++] = $get(_4A, _4B); - $k[$j++] = _4F; - $k[$j++] = _4F; - } - $j--; - $1.BINvals = $d(); - $k[$j++] = Infinity; - for (var _4I = 0, _4J = $1.msglen + 1; _4I < _4J; _4I++) { - $k[$j++] = 0; - } - $1.nDigits = $a(); - $k[$j++] = Infinity; - for (var _4M = 0, _4N = $1.msglen + 1; _4M < _4N; _4M++) { - $k[$j++] = false; - } - $1.SeventeenTen = $a(); - $k[$j++] = Infinity; - for (var _4Q = 0, _4R = $1.msglen + 1; _4Q < _4R; _4Q++) { - $k[$j++] = false; - } - $1.ECI = $a(); - $k[$j++] = Infinity; - for (var _4U = 0, _4V = $1.msglen + 1; _4U < _4V; _4U++) { - $k[$j++] = false; - } - $1.DatumA = $a(); - $k[$j++] = Infinity; - for (var _4Y = 0, _4Z = $1.msglen + 1; _4Y < _4Z; _4Y++) { - $k[$j++] = false; - } - $1.DatumB = $a(); - $k[$j++] = Infinity; - for (var _4c = 0, _4d = $1.msglen + 1; _4c < _4d; _4c++) { - $k[$j++] = false; - } - $1.DatumC = $a(); - $k[$j++] = Infinity; - for (var _4g = 0, _4h = $1.msglen + 8; _4g < _4h; _4g++) { - $k[$j++] = false; - } - $1.Binary = $a(); - $k[$j++] = Infinity; - for (var _4k = 0, _4l = $1.msglen + 1; _4k < _4l; _4k++) { - $k[$j++] = 0; - } - $1.AheadC = $a(); - $k[$j++] = Infinity; - for (var _4o = 0, _4p = $1.msglen + 1; _4o < _4p; _4o++) { - $k[$j++] = 0; - } - $1.TryC = $a(); - $k[$j++] = Infinity; - for (var _4s = 0, _4t = $1.msglen + 1; _4s < _4t; _4s++) { - $k[$j++] = 0; - } - $1.AheadA = $a(); - $k[$j++] = Infinity; - for (var _4w = 0, _4x = $1.msglen + 1; _4w < _4x; _4w++) { - $k[$j++] = 0; - } - $1.AheadB = $a(); - $k[$j++] = Infinity; - for (var _50 = 0, _51 = $1.msglen + 1; _50 < _51; _50++) { - $k[$j++] = 0; - } - $1.UntilEndSeg = $a(); - for (var _54 = $1.msglen - 1; _54 >= 0; _54 -= 1) { - $1.i = _54; - $1.barchar = $get($1.msg, $1.i); - if ($1.barchar >= 48 && $1.barchar <= 57) { - $put($1.nDigits, $1.i, $f($get($1.nDigits, $1.i + 1) + 1)); - } - var _5H = $get($1.Avals, $1.barchar) !== undefined; - if (_5H) { - $put($1.DatumA, $1.i, true); - } - var _5M = $get($1.Bvals, $1.barchar) !== undefined; - if (_5M) { - $put($1.DatumB, $1.i, true); - } - $1.CRLF = false; - if ($1.barchar == 13 && $1.i < $1.msglen - 1) { - if ($get($1.msg, $1.i + 1) == 10) { - $1.CRLF = true; - } - } - if ($1.CRLF) { - $put($1.DatumB, $1.i, true); - } - if ($get($1.nDigits, $1.i) >= 2) { - $put($1.DatumC, $1.i, true); - } - if ($1.barchar < 0) { - $put($1.DatumC, $1.i, true); - } - if ($1.barchar >= 128) { - $put($1.Binary, $1.i, true); - } - if ($get($1.nDigits, $1.i) >= 10) { - $k[$j++] = Infinity; - $aload($geti($1.msg, $1.i, 10)); - for (var _5p = 0, _5q = 1; _5p < _5q; _5p++) { - if ($k[--$j] != 48) { - $k[$j++] = false; - break; - } - if ($k[--$j] != 49) { - $k[$j++] = false; - break; - } - $j -= 6; - if ($k[--$j] != 55) { - $k[$j++] = false; - break; - } - if ($k[--$j] != 49) { - $k[$j++] = false; - break; - } - $k[$j++] = true; - } - $put($1.SeventeenTen, $1.i, $k[--$j]); - $cleartomark(); - } - if ($get($1.nDigits, $1.i + 1) >= 6 && $get($1.msg, $1.i) == $1.fn2) { - $put($1.ECI, $1.i, true); - } - if ($1.barchar < 0 && $1.barchar != $1.fn3) { - $put($1.AheadC, $1.i, $f($get($1.AheadC, $1.i + 1) + 1)); - } else { - if ($get($1.nDigits, $1.i) <= 1) { - $put($1.AheadC, $1.i, 0); - } else { - $put($1.AheadC, $1.i, $f($get($1.AheadC, $1.i + 2) + 1)); - } - } - if ($get($1.nDigits, $1.i) > 0 && $gt($get($1.AheadC, $1.i), $get($1.AheadC, $1.i + 1))) { - $put($1.TryC, $1.i, $get($1.AheadC, $1.i)); - } - if ($get($1.DatumA, $1.i) && $get($1.TryC, $1.i) < 2 && $1.barchar != $1.fn3) { - $put($1.AheadA, $1.i, $f($get($1.AheadA, $1.i + 1) + 1)); - } - if ($get($1.DatumB, $1.i) && $get($1.TryC, $1.i) < 2 && $1.barchar != $1.fn3) { - $k[$j++] = $1.AheadB; - $k[$j++] = $1.i; - $k[$j++] = $1.AheadB; - $k[$j++] = $1.i + 1; - if ($1.CRLF) { - var _73 = $k[--$j]; - $k[$j++] = $f(_73 + 1); - } - var _74 = $k[--$j]; - var _76 = $get($k[--$j], _74); - var _77 = $k[--$j]; - $put($k[--$j], _77, $f(_76 + 1)); - } - if ($1.barchar != $1.fn3) { - $put($1.UntilEndSeg, $1.i, $f($get($1.UntilEndSeg, $1.i + 1) + 1)); - } - } - $1.A = 0; - $1.B = 1; - $1.C = 2; - $1.BIN = 3; - $1.addtocws = function() { - var _7G = $k[--$j]; - $puti($1.cws, $1.j, _7G); - $1.j = _7G.length + $1.j; - }; - $1.base259to103 = function() { - $1.in = $k[--$j]; - $1.inlen = $1.in.length; - $k[$j++] = Infinity; - for (var _7N = 0, _7O = 5 - $1.inlen; _7N < _7O; _7N++) { - $k[$j++] = 0; - } - $aload($1.in); - $1.in = $a(); - $1.out = $a(6); - $k[$j++] = Infinity; - $aload($geti($1.in, 0, 2)); - $1.msbs = $a(); - $k[$j++] = Infinity; - $aload($1.msbs); - var _7W = $k[--$j]; - var _7X = $k[--$j]; - $k[$j++] = $f(_7W + _7X * 259); - for (var _7Y = 0, _7Z = 2; _7Y < _7Z; _7Y++) { - var _7a = $k[--$j]; - $k[$j++] = _7a % 103; - $k[$j++] = ~~(_7a / 103); - } - $1.mscs = $a(); - $k[$j++] = Infinity; - $aload($geti($1.in, 2, 3)); - $1.lsbs = $a(); - $k[$j++] = Infinity; - $aload($1.lsbs); - var _7g = $k[--$j]; - var _7h = $k[--$j]; - var _7i = $k[--$j]; - $k[$j++] = $f($f(_7g + _7h * 259) + _7i * 67081); - for (var _7j = 0, _7k = 3; _7j < _7k; _7j++) { - var _7l = $k[--$j]; - $k[$j++] = _7l % 103; - $k[$j++] = ~~(_7l / 103); - } - $1.lscs = $a(); - var _7o = $get($1.lscs, 0); - var _7q = $get($1.mscs, 0); - $put($1.out, 5, $f(_7o + _7q * 42) % 103); - var _7t = $get($1.lscs, 1); - var _7v = $get($1.mscs, 0); - var _7x = $get($1.mscs, 1); - $put($1.out, 4, $f($f($f(~~($f(_7o + _7q * 42) / 103) + _7t) + _7v * 68) + _7x * 42) % 103); - var _80 = $get($1.lscs, 2); - var _82 = $get($1.mscs, 0); - var _84 = $get($1.mscs, 1); - var _86 = $get($1.mscs, 2); - $put($1.out, 3, $f($f($f($f(~~($f($f($f(~~($f(_7o + _7q * 42) / 103) + _7t) + _7v * 68) + _7x * 42) / 103) + _80) + _82 * 92) + _84 * 68) + _86 * 42) % 103); - var _89 = $get($1.lscs, 3); - var _8B = $get($1.mscs, 0); - var _8D = $get($1.mscs, 1); - var _8F = $get($1.mscs, 2); - $put($1.out, 2, $f($f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_7o + _7q * 42) / 103) + _7t) + _7v * 68) + _7x * 42) / 103) + _80) + _82 * 92) + _84 * 68) + _86 * 42) / 103) + _89) + _8B * 15) + _8D * 92) + _8F * 68) % 103); - var _8I = $get($1.mscs, 1); - var _8K = $get($1.mscs, 2); - $put($1.out, 1, $f($f(~~($f($f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_7o + _7q * 42) / 103) + _7t) + _7v * 68) + _7x * 42) / 103) + _80) + _82 * 92) + _84 * 68) + _86 * 42) / 103) + _89) + _8B * 15) + _8D * 92) + _8F * 68) / 103) + _8I * 15) + _8K * 92) % 103); - $put($1.out, 0, $f(~~($f($f(~~($f($f($f($f(~~($f($f($f($f(~~($f($f($f(~~($f(_7o + _7q * 42) / 103) + _7t) + _7v * 68) + _7x * 42) / 103) + _80) + _82 * 92) + _84 * 68) + _86 * 42) / 103) + _89) + _8B * 15) + _8D * 92) + _8F * 68) / 103) + _8I * 15) + _8K * 92) / 103) + $get($1.mscs, 2) * 15) % 103); - $k[$j++] = $geti($1.out, 6 - $1.inlen - 1, $1.inlen + 1); - }; - $1.finaliseBIN = function() { - if ($1.bpos != 0) { - $k[$j++] = $geti($1.bvals, 0, $1.bpos); - $1.base259to103(); - $aload($k[--$j]); - $1.bpos = 0; - } - }; - $1.addtobin = function() { - $put($1.bvals, $1.bpos, $k[--$j]); - $1.bpos = $1.bpos + 1; - if ($1.bpos == 5) { - $1.finaliseBIN(); - } - }; - $1.ECIabc = function() { - var _8f = $geti($1.msg, $1.i + 1, 6); - $k[$j++] = 0; - for (var _8g = 0, _8h = _8f.length; _8g < _8h; _8g++) { - var _8j = $k[--$j]; - $k[$j++] = $f(_8j + $f($get(_8f, _8g) - 48)) * 10; - } - var _8l = ~~($k[--$j] / 10); - $k[$j++] = _8l; - if (_8l >= 40) { - var _8n = $f($k[--$j] - 40); - var _8o = _8n % 12769; - $k[$j++] = ~~(_8n / 12769) + 40; - $k[$j++] = ~~(_8o / 113); - $k[$j++] = _8o % 113; - } - }; - $1.ECIbin = function() { - $k[$j++] = Infinity; - var _8r = $geti($1.msg, $1.i + 1, 6); - $k[$j++] = 0; - for (var _8s = 0, _8t = _8r.length; _8s < _8t; _8s++) { - var _8v = $k[--$j]; - $k[$j++] = $f(_8v + $f($get(_8r, _8s) - 48)) * 10; - } - var _8x = ~~($k[--$j] / 10); - $k[$j++] = _8x; - if (_8x >= 65536) { - var _8y = $k[--$j]; - var _8z = _8y % 65536; - $k[$j++] = 258; - $k[$j++] = ~~(_8y / 65536); - $k[$j++] = ~~(_8z / 256); - $k[$j++] = _8z % 256; - } else { - var _90 = $k[--$j]; - $k[$j++] = _90; - if (_90 >= 256) { - var _91 = $k[--$j]; - $k[$j++] = 257; - $k[$j++] = ~~(_91 / 256); - $k[$j++] = _91 % 256; - } else { - var _92 = $k[--$j]; - $k[$j++] = 256; - $k[$j++] = _92; - } - } - var _93 = $a(); - for (var _94 = 0, _95 = _93.length; _94 < _95; _94++) { - $k[$j++] = $get(_93, _94); - $1.addtobin(); - } - }; - $1.encC = function() { - for (var _97 = 0, _98 = 1; _97 < _98; _97++) { - if ($1.i == $1.segstart) { - for (var _9B = 0, _9C = 1; _9B < _9C; _9B++) { - if ($1.i > $f($1.segend - 7)) { - $k[$j++] = 0; - break; - } - if ($get($1.msg, $1.segstart) != 91) { - $k[$j++] = 0; - break; - } - if ($get($1.msg, $1.segstart + 1) != 41) { - $k[$j++] = 0; - break; - } - if ($get($1.msg, $1.segstart + 2) != 62) { - $k[$j++] = 0; - break; - } - if ($get($1.msg, $1.segstart + 3) != 30) { - $k[$j++] = 0; - break; - } - var _9T = $get($1.msg, $1.segstart + 4); - if (_9T < 48 || _9T > 57) { - $k[$j++] = 0; - break; - } - var _9W = $get($1.msg, $1.segstart + 5); - if (_9W < 48 || _9W > 57) { - $k[$j++] = 0; - break; - } - if ($get($1.msg, $f($1.segend - 1)) != 4) { - $k[$j++] = 0; - break; - } - var _9g = $f($f($get($1.msg, $1.segstart + 4) - 48) * 10 + $f($get($1.msg, $1.segstart + 5) - 48)); - $k[$j++] = _9g; - if (_9g != 5 && (_9g != 6 && _9g != 12)) { - $j--; - $k[$j++] = $1.mac; - break; - } - if ($get($1.msg, $1.segstart + 6) != 29) { - $j--; - $k[$j++] = 0; - break; - } - if ($get($1.msg, $f($1.segend - 2)) != 30) { - $j--; - $k[$j++] = 0; - break; - } - var _9o = $k[--$j]; - $k[$j++] = _9o; - if (_9o == 5) { - $j--; - $k[$j++] = $1.m05; - break; - } - if ($k[--$j] == 6) { - $k[$j++] = $1.m06; - break; - } - $k[$j++] = $1.m12; - break; - } - $1.inmac = $k[--$j]; - if ($1.inmac != 0) { - $1.mode = $1.B; - $k[$j++] = $a([ $get($1.Bvals, $1.inmac) ]); - $1.addtocws(); - var _A3 = $1.inmac != $1.mac ? 7 : 6; - $1.i = $1.i + _A3; - break; - } - } - if ($1.i == $1.segstart) { - if ($get($1.nDigits, $1.i) >= 2) { - $k[$j++] = $a([ $get($1.Cvals, $1.fn1) ]); - $1.addtocws(); - } - if ($get($1.msg, $1.i) == $1.fn1 && $get($1.nDigits, $1.i + 1) >= 2) { - $1.i = $1.i + 1; - } - } - if ($get($1.SeventeenTen, $1.i)) { - $k[$j++] = $a([ $get($1.Cvals, $1.aim), $f($f($get($1.msg, $1.i + 2) - 48) * 10 + $f($get($1.msg, $1.i + 3) - 48)), $f($f($get($1.msg, $1.i + 4) - 48) * 10 + $f($get($1.msg, $1.i + 5) - 48)), $f($f($get($1.msg, $1.i + 6) - 48) * 10 + $f($get($1.msg, $1.i + 7) - 48)) ]); - $1.addtocws(); - $1.i = $1.i + 10; - break; - } - if ($get($1.DatumC, $1.i)) { - var _Aq = $get($1.msg, $1.i); - if (_Aq == $1.fn1 || (_Aq == $1.fn2 || _Aq == $1.fn3)) { - $k[$j++] = $a([ $get($1.Cvals, $get($1.msg, $1.i)) ]); - $1.addtocws(); - if ($get($1.ECI, $1.i)) { - $k[$j++] = Infinity; - $1.ECIabc(); - var _B3 = $a(); - $k[$j++] = _B3; - $1.addtocws(); - $1.i = $1.i + 7; - break; - } - if ($get($1.msg, $1.i) == $1.fn3 && $1.segstart != $1.i) { - $1.i = $1.i + 1; - $1.inmac = 0; - $1.segstart = $1.i; - $1.segend = $f($1.i + $get($1.UntilEndSeg, $1.i)); - break; - } - $1.i = $1.i + 1; - break; - } - $k[$j++] = $a([ $f($f($get($1.msg, $1.i) - 48) * 10 + $f($get($1.msg, $1.i + 1) - 48)) ]); - $1.addtocws(); - $1.i = $1.i + 2; - break; - } - if ($get($1.Binary, $1.i)) { - if ($get($1.nDigits, $1.i + 1) > 0) { - if ($get($1.msg, $1.i) < 160) { - $k[$j++] = $a([ $get($1.Cvals, $1.bsa), $get($1.Avals, $f($get($1.msg, $1.i) - 128)) ]); - $1.addtocws(); - } else { - $k[$j++] = $a([ $get($1.Cvals, $1.bsb), $get($1.Bvals, $f($get($1.msg, $1.i) - 128)) ]); - $1.addtocws(); - } - $1.i = $1.i + 1; - break; - } - $k[$j++] = $a([ $get($1.Cvals, $1.bin) ]); - $1.addtocws(); - $1.mode = $1.BIN; - break; - } - $1.m = $get($1.AheadA, $1.i); - $1.n = $get($1.AheadB, $1.i); - if ($gt($1.m, $1.n)) { - $k[$j++] = $a([ $get($1.Cvals, $1.laa) ]); - $1.addtocws(); - $1.mode = $1.A; - break; - } - if ($1.i == $1.segstart) { - var _CE = $get($1.msg, $1.i); - if (_CE == 9 || (_CE == 28 || (_CE == 29 || _CE == 30))) { - $k[$j++] = $a([ $get($1.Cvals, $1.laa) ]); - $1.addtocws(); - $1.mode = $1.A; - break; - } - } - if ($1.n > 4) { - $k[$j++] = $a([ $get($1.Cvals, $1.lab) ]); - $1.addtocws(); - $1.mode = $1.B; - break; - } - $k[$j++] = $a([ $get($1.Cvals, $get($a([ $1.sfb, $1.sb2, $1.sb3, $1.sb4 ]), $f($1.n - 1))) ]); - $1.addtocws(); - for (var _Cb = 0, _Cc = $1.n; _Cb < _Cc; _Cb++) { - $k[$j++] = $a([ $get($1.Bvals, $get($1.msg, $1.i)) ]); - $1.addtocws(); - $1.i = $1.i + 1; - } - break; - } - }; - $1.encB = function() { - for (var _Ck = 0, _Cl = 1; _Ck < _Cl; _Ck++) { - $1.n = $get($1.TryC, $1.i); - if ($1.n >= 2) { - if ($1.n > 4) { - $k[$j++] = $a([ $get($1.Bvals, $1.lac) ]); - $1.addtocws(); - $1.mode = $1.C; - break; - } - $k[$j++] = $a([ $get($1.Bvals, $get($a([ $1.sfc, $1.sc2, $1.sc3, $1.sc4 ]), $f($1.n - 1))) ]); - $1.addtocws(); - for (var _D7 = 0, _D8 = $1.n; _D7 < _D8; _D7++) { - if ($get($1.msg, $1.i) < 0) { - $k[$j++] = $a([ $get($1.Cvals, $get($1.msg, $1.i)) ]); - $1.addtocws(); - $1.i = $1.i + 1; - } else { - $k[$j++] = $a([ $f($f($get($1.msg, $1.i) - 48) * 10 + $f($get($1.msg, $1.i + 1) - 48)) ]); - $1.addtocws(); - $1.i = $1.i + 2; - } - } - break; - } - if ($get($1.DatumB, $1.i)) { - var _DW = $get($1.msg, $1.i); - if (_DW == $1.fn1 || (_DW == $1.fn2 || _DW == $1.fn3)) { - $k[$j++] = $a([ $get($1.Bvals, $get($1.msg, $1.i)) ]); - $1.addtocws(); - if ($get($1.ECI, $1.i)) { - $k[$j++] = Infinity; - $1.ECIabc(); - var _Dj = $a(); - $k[$j++] = _Dj; - $1.addtocws(); - $1.i = $1.i + 7; - break; - } - if ($get($1.msg, $1.i) == $1.fn3 && $1.i != $1.segstart) { - $1.i = $1.i + 1; - $1.mode = $1.C; - $1.inmac = 0; - $1.segstart = $1.i; - $1.segend = $f($1.i + $get($1.UntilEndSeg, $1.i)); - break; - } - $1.i = $1.i + 1; - break; - } - if ($get($1.msg, $1.i) == 13 && $1.i < $1.msglen - 1) { - if ($get($1.msg, $1.i + 1) == 10) { - $k[$j++] = $a([ $get($1.Bvals, $1.crl) ]); - $1.addtocws(); - $1.i = $1.i + 2; - break; - } - } - $k[$j++] = $a([ $get($1.Bvals, $get($1.msg, $1.i)) ]); - $1.addtocws(); - $1.i = $1.i + 1; - break; - } - if ($get($1.Binary, $1.i)) { - if ($get($1.DatumB, $1.i + 1)) { - if ($get($1.msg, $1.i) < 160) { - $k[$j++] = $a([ $get($1.Bvals, $1.bsa), $get($1.Avals, $f($get($1.msg, $1.i) - 128)) ]); - $1.addtocws(); - } else { - $k[$j++] = $a([ $get($1.Bvals, $1.bsb), $get($1.Bvals, $f($get($1.msg, $1.i) - 128)) ]); - $1.addtocws(); - } - $1.i = $1.i + 1; - break; - } - $k[$j++] = $a([ $get($1.Bvals, $1.bin) ]); - $1.addtocws(); - $1.mode = $1.BIN; - break; - } - if ($get($1.AheadA, $1.i) == 1) { - $k[$j++] = $a([ $get($1.Bvals, $1.sfa), $get($1.Avals, $get($1.msg, $1.i)) ]); - $1.addtocws(); - $1.i = $1.i + 1; - break; - } - $k[$j++] = $a([ $get($1.Bvals, $1.laa) ]); - $1.addtocws(); - $1.mode = $1.A; - break; - } - }; - $1.encA = function() { - for (var _F8 = 0, _F9 = 1; _F8 < _F9; _F8++) { - $1.n = $get($1.TryC, $1.i); - if ($1.n >= 2) { - if ($1.n > 4) { - $k[$j++] = $a([ $get($1.Avals, $1.lac) ]); - $1.addtocws(); - $1.mode = $1.C; - break; - } - $k[$j++] = $a([ $get($1.Avals, $get($a([ $1.sfc, $1.sc2, $1.sc3, $1.sc4 ]), $f($1.n - 1))) ]); - $1.addtocws(); - for (var _FV = 0, _FW = $1.n; _FV < _FW; _FV++) { - if ($get($1.msg, $1.i) < 0) { - $k[$j++] = $a([ $get($1.Cvals, $get($1.msg, $1.i)) ]); - $1.addtocws(); - $1.i = $1.i + 1; - } else { - $k[$j++] = $a([ $f($f($get($1.msg, $1.i) - 48) * 10 + $f($get($1.msg, $1.i + 1) - 48)) ]); - $1.addtocws(); - $1.i = $1.i + 2; - } - } - break; - } - if ($get($1.DatumA, $1.i)) { - var _Fu = $get($1.msg, $1.i); - if (_Fu == $1.fn1 || (_Fu == $1.fn2 || _Fu == $1.fn3)) { - $k[$j++] = $a([ $get($1.Avals, $get($1.msg, $1.i)) ]); - $1.addtocws(); - if ($get($1.ECI, $1.i)) { - $k[$j++] = Infinity; - $1.ECIabc(); - var _G7 = $a(); - $k[$j++] = _G7; - $1.addtocws(); - $1.i = $1.i + 7; - break; - } - if ($get($1.msg, $1.i) == $1.fn3 && $1.i != $1.segstart) { - $1.i = $1.i + 1; - $1.mode = $1.C; - $1.inmac = 0; - $1.segstart = $1.i; - $1.segend = $f($1.i + $get($1.UntilEndSeg, $1.i)); - break; - } - $1.i = $1.i + 1; - break; - } - $k[$j++] = $a([ $get($1.Avals, $get($1.msg, $1.i)) ]); - $1.addtocws(); - $1.i = $1.i + 1; - break; - } - if ($get($1.Binary, $1.i)) { - if ($get($1.DatumA, $1.i + 1)) { - if ($get($1.msg, $1.i) < 160) { - $k[$j++] = $a([ $get($1.Avals, $1.bsa), $get($1.Avals, $f($get($1.msg, $1.i) - 128)) ]); - $1.addtocws(); - } else { - $k[$j++] = $a([ $get($1.Avals, $1.bsb), $get($1.Bvals, $f($get($1.msg, $1.i) - 128)) ]); - $1.addtocws(); - } - $1.i = $1.i + 1; - break; - } - $k[$j++] = $a([ $get($1.Avals, $1.bin) ]); - $1.addtocws(); - $1.mode = $1.BIN; - break; - } - $1.n = $get($1.AheadB, $1.i); - if ($1.n > 6) { - $k[$j++] = $a([ $get($1.Avals, $1.lab) ]); - $1.addtocws(); - $1.mode = $1.B; - break; - } - $k[$j++] = $a([ $get($1.Avals, $get($a([ $1.sfb, $1.sb2, $1.sb3, $1.sb4, $1.sb5, $1.sb6 ]), $f($1.n - 1))) ]); - $1.addtocws(); - for (var _HN = 0, _HO = $1.n; _HN < _HO; _HN++) { - $k[$j++] = $a([ $get($1.Bvals, $get($1.msg, $1.i)) ]); - $1.addtocws(); - $1.i = $1.i + 1; - } - break; - } - }; - $1.encBIN = function() { - for (var _HW = 0, _HX = 1; _HW < _HX; _HW++) { - $1.n = $get($1.TryC, $1.i); - if ($1.n >= 2) { - $k[$j++] = Infinity; - $1.finaliseBIN(); - var _Hc = $a(); - $k[$j++] = _Hc; - $1.addtocws(); - if ($1.n > 7) { - var _Hi = $k[--$j]; - $1.mode = $1.C; - $k[$j++] = $f(_Hi + $a([ $get($1.BINvals, $1.tmc) ])); - break; - } - $k[$j++] = $a([ $get($1.BINvals, $get($a([ $1.sc2, $1.sc3, $1.sc4, $1.sc5, $1.sc6, $1.sc7 ]), $f($1.n - 2))) ]); - $1.addtocws(); - for (var _Hx = 0, _Hy = $1.n; _Hx < _Hy; _Hx++) { - if ($get($1.msg, $1.i) < 0) { - $k[$j++] = $a([ $get($1.Cvals, $get($1.msg, $1.i)) ]); - $1.addtocws(); - $1.i = $1.i + 1; - } else { - $k[$j++] = $a([ $f($f($get($1.msg, $1.i) - 48) * 10 + $f($get($1.msg, $1.i + 1) - 48)) ]); - $1.addtocws(); - $1.i = $1.i + 2; - } - } - break; - } - if ($get($1.ECI, $1.i) && $get($1.Binary, $1.i + 7)) { - $k[$j++] = Infinity; - $1.ECIbin(); - var _IN = $a(); - $k[$j++] = _IN; - $1.addtocws(); - $1.i = $1.i + 7; - if ($1.i == $1.msglen) { - $k[$j++] = Infinity; - $1.finaliseBIN(); - var _IR = $a(); - $k[$j++] = _IR; - $1.addtocws(); - } - break; - } - if ($get($1.msg, $1.i) >= 0) { - if ($get($1.Binary, $1.i) || $get($1.Binary, $1.i + 1) || $get($1.Binary, $1.i + 2) || $get($1.Binary, $1.i + 3) || $get($1.ECI, $1.i + 1) && $get($1.Binary, $1.i + 8)) { - $k[$j++] = Infinity; - $k[$j++] = $get($1.msg, $1.i); - $1.addtobin(); - var _Iq = $a(); - $k[$j++] = _Iq; - $1.addtocws(); - $1.i = $1.i + 1; - if ($1.i == $1.msglen) { - $k[$j++] = Infinity; - $1.finaliseBIN(); - var _Iu = $a(); - $k[$j++] = _Iu; - $1.addtocws(); - } - break; - } - } - $k[$j++] = Infinity; - $1.finaliseBIN(); - var _Iv = $a(); - $k[$j++] = _Iv; - $1.addtocws(); - if ($1.i != $1.msglen - 1) { - if ($get($1.msg, $1.i) == $1.fn3 && $1.i != $1.segstart) { - $k[$j++] = $a([ $get($1.BINvals, $1.tms) ]); - $1.addtocws(); - $1.i = $1.i + 1; - $1.mode = $1.C; - $1.inmac = 0; - $1.segstart = $1.i; - $1.segend = $f($1.i + $get($1.UntilEndSeg, $1.i)); - break; - } - if ($gt($get($1.AheadA, $1.i), $get($1.AheadB, $1.i))) { - $k[$j++] = $a([ $get($1.BINvals, $1.tma) ]); - $1.addtocws(); - $1.mode = $1.A; - } else { - $k[$j++] = $a([ $get($1.BINvals, $1.tmb) ]); - $1.addtocws(); - $1.mode = $1.B; - } - break; - } - break; - } - }; - $1.cws = $a($1.msglen * 2 + 1); - $1.mode = $1.C; - $1.bvals = $a(5); - $1.bpos = 0; - $1.inmac = 0; - $1.segstart = 0; - $1.segend = $get($1.UntilEndSeg, 0); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i >= $1.msglen) { - break; - } - if ($1.inmac != 0) { - if ($1.inmac != $1.mac && $1.i == $f($1.segend - 2)) { - $1.i = $1.i + 2; - if ($1.i >= $1.msglen) { - break; - } - } - if ($1.inmac == $1.mac && $1.i == $f($1.segend - 1)) { - $1.i = $1.i + 1; - if ($1.i >= $1.msglen) { - break; - } - } - } - if ($1[$get($a([ "encA", "encB", "encC", "encBIN" ]), $1.mode)]() === true) { - break; - } - } - $1.cws = $geti($1.cws, 0, $1.j); - $1.nd = $1.cws.length; - $1.minarea = (($1.nd + 3 + ~~($1.nd / 2)) * 9 + 2) * 2; - if ($1.ratio != -1) { - $1.hgt = Math.sqrt($1.minarea / $1.ratio); - $1.wid = Math.sqrt($1.minarea * $1.ratio); - $1.h = ~~$1.hgt; - $1.w = ~~$1.wid; - if (($1.h + $1.w) % 2 == 1) { - if ($1.h * $1.w < $1.minarea) { - $1.h = $1.h + 1; - $1.w = $1.w + 1; - } - } else { - if ($1.hgt * $1.w < $1.wid * $1.h) { - $1.w = $1.w + 1; - if ($1.h * $1.w < $1.minarea) { - $1.w = $1.w - 1; - $1.h = $1.h + 1; - if ($1.h * $1.w < $1.minarea) { - $1.w = $1.w + 2; - } - } - } else { - $1.h = $1.h + 1; - if ($1.h * $1.w < $1.minarea) { - $1.h = $1.h - 1; - $1.w = $1.w + 1; - if ($1.h * $1.w < $1.minarea) { - $1.h = $1.h + 2; - } - } - } - } - $1.rows = $1.h; - $1.columns = $1.w; - } else { - if ($1.columns == -1) { - var _Kk = ~~(($1.minarea + $1.rows - 1) / $1.rows); - $k[$j++] = "columns"; - $k[$j++] = _Kk; - if ((_Kk + $1.rows) % 2 == 0) { - var _Km = $k[--$j]; - $k[$j++] = $f(_Km + 1); - } - var _Kn = $k[--$j]; - $1[$k[--$j]] = _Kn; - } - if ($1.rows == -1) { - var _Kt = ~~(($1.minarea + $1.columns - 1) / $1.columns); - $k[$j++] = "rows"; - $k[$j++] = _Kt; - if ((_Kt + $1.columns) % 2 == 0) { - var _Kv = $k[--$j]; - $k[$j++] = $f(_Kv + 1); - } - var _Kw = $k[--$j]; - $1[$k[--$j]] = _Kw; - } - } - $1.ndots = ~~($1.rows * $1.columns / 2); - for (;;) { - var _L1 = $1.nd + 1; - if ((_L1 + (~~(_L1 / 2) + 3)) * 9 + 2 > $1.ndots) { - break; - } - $1.nd = $1.nd + 1; - } - $1.nc = ~~($1.nd / 2) + 3; - $1.nw = $1.nd + $1.nc; - $1.rembits = $1.ndots - ($1.nw * 9 + 2); - if ($1.nd > $1.cws.length) { - $k[$j++] = Infinity; - $aload($1.cws); - var _LE = $1.mode == $1.BIN ? 109 : 106; - $k[$j++] = _LE; - for (var _LH = 0, _LI = $1.nd - $1.cws.length - 1; _LH < _LI; _LH++) { - $k[$j++] = 106; - } - $1.cws = $a(); - } - $1.encs = $a([ "101010101", "010101011", "010101101", "010110101", "011010101", "101010110", "101011010", "101101010", "110101010", "010101110", "010110110", "010111010", "011010110", "011011010", "011101010", "100101011", "100101101", "100110101", "101001011", "101001101", "101010011", "101011001", "101100101", "101101001", "110010101", "110100101", "110101001", "001010111", "001011011", "001011101", "001101011", "001101101", "001110101", "010010111", "010011011", "010011101", "010100111", "010110011", "010111001", "011001011", "011001101", "011010011", "011011001", "011100101", "011101001", "100101110", "100110110", "100111010", "101001110", "101011100", "101100110", "101101100", "101110010", "101110100", "110010110", "110011010", "110100110", "110101100", "110110010", "110110100", "111001010", "111010010", "111010100", "001011110", "001101110", "001110110", "001111010", "010011110", "010111100", "011001110", "011011100", "011100110", "011101100", "011110010", "011110100", "100010111", "100011011", "100011101", "100100111", "100110011", "100111001", "101000111", "101100011", "101110001", "110001011", "110001101", "110010011", "110011001", "110100011", "110110001", "111000101", "111001001", "111010001", "000101111", "000110111", "000111011", "000111101", "001001111", "001100111", "001110011", "001111001", "010001111", "011000111", "011100011", "011110001", "100011110", "100111100", "101111000", "110001110", "110011100", "110111000", "111000110", "111001100" ]); - if ($1.rows % 2 == 0) { - $1.sixedges = $a([ $a([ $1.columns - 1, $1.rows - 2 ]), $a([ 0, $1.rows - 2 ]), $a([ $1.columns - 2, $1.rows - 1 ]), $a([ 1, $1.rows - 1 ]), $a([ $1.columns - 1, 0 ]), $a([ 0, 0 ]) ]); - } else { - $1.sixedges = $a([ $a([ $1.columns - 2, 0 ]), $a([ $1.columns - 2, $1.rows - 1 ]), $a([ $1.columns - 1, 1 ]), $a([ $1.columns - 1, $1.rows - 2 ]), $a([ 0, 0 ]), $a([ 0, $1.rows - 1 ]) ]); - } - $1.dmv = function() { - var _Lp = $k[--$j]; - var _Lq = $k[--$j]; - $k[$j++] = $f(_Lq + _Lp * $1.columns); - }; - $1.outline = $a($1.rows * $1.columns); - for (var _Lw = 0, _Lv = $1.rows - 1; _Lw <= _Lv; _Lw += 1) { - $1.y = _Lw; - for (var _Lz = 0, _Ly = $1.columns - 1; _Lz <= _Ly; _Lz += 1) { - $1.x = _Lz; - $k[$j++] = $1.outline; - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $1.dmv(); - var _M5 = $k[--$j]; - $put($k[--$j], _M5, ($1.x + $1.y) % 2 - 1); - } - } - var _M7 = $1.sixedges; - for (var _M8 = 0, _M9 = _M7.length; _M8 < _M9; _M8++) { - $k[$j++] = $1.outline; - $aload($get(_M7, _M8)); - $1.dmv(); - var _MC = $k[--$j]; - $put($k[--$j], _MC, 1); - } - $1.clearcol = function() { - $1.x = $k[--$j]; - $k[$j++] = true; - for (var _MI = $1.x & 1, _MH = $1.rows - 1; _MI <= _MH; _MI += 2) { - $k[$j++] = $1.x; - $k[$j++] = _MI; - $1.dmv(); - if ($get($1.sym, $k[--$j]) == 1) { - $j--; - $k[$j++] = false; - break; - } - } - }; - $1.clearrow = function() { - $1.y = $k[--$j]; - $k[$j++] = true; - for (var _MR = $1.y & 1, _MQ = $1.columns - 1; _MR <= _MQ; _MR += 2) { - $k[$j++] = _MR; - $k[$j++] = $1.y; - $1.dmv(); - if ($get($1.sym, $k[--$j]) == 1) { - $j--; - $k[$j++] = false; - break; - } - } - }; - $1.evalsymbol = function() { - $1.sym = $k[--$j]; - $1.worst = 9999999; - var _Mb = $a([ $a([ "x", 0 ]), $a([ "x", 1 ]), $a([ "y", 0 ]), $a([ "y", 1 ]) ]); - for (var _Mc = 0, _Md = _Mb.length; _Mc < _Md; _Mc++) { - $aload($get(_Mb, _Mc)); - $1.fl = $k[--$j]; - $1.dir = $k[--$j]; - $1.sum = 0; - $1.first = -1; - $1.last = -1; - var _Mi = $eq($1.dir, "x") ? $1.columns : $1.rows; - for (var _Mk = 0, _Mj = _Mi - 1; _Mk <= _Mj; _Mk += 1) { - $1[$1.dir] = _Mk; - var _Mm = $1.sym; - var _Mo = $1[$1.dir]; - var _Mq = $eq($1.dir, "x") ? $1.rows : $1.columns; - var _Mt = (_Mq - 1) * $1.fl; - if ($eq($1.dir, "y")) { - var _ = _Mt; - _Mt = _Mo; - _Mo = _; - } - $k[$j++] = _Mm; - $k[$j++] = _Mo; - $k[$j++] = _Mt; - $1.dmv(); - var _Mu = $k[--$j]; - if ($get($k[--$j], _Mu) == 1) { - if ($1.first == -1) { - $1.first = $1[$1.dir]; - } - $1.last = $1[$1.dir]; - $1.sum = $1.sum + 1; - } - } - var _N7 = $eq($1.dir, "x") ? $1.rows : $1.columns; - var _N8 = $f($f($1.sum + $1.last) - $1.first) * _N7; - $k[$j++] = _N8; - if (_N8 < $1.worst) { - $1.worst = $k[--$j]; - } else { - $j--; - } - } - $1.pen = 0; - if ($1.rows % 2 == 1 || $1.rows <= 12) { - $1.sum = 0; - $1.p = 0; - for (var _NF = 1, _NE = $1.columns - 2; _NF <= _NE; _NF += 1) { - $k[$j++] = _NF; - $1.clearcol(); - if ($k[--$j]) { - $1.sum = $1.sum + 1; - $k[$j++] = "p"; - if ($1.sum == 1) { - $k[$j++] = $1.rows; - } else { - $k[$j++] = $1.p * $1.rows; - } - var _NM = $k[--$j]; - $1[$k[--$j]] = _NM; - } else { - $1.sum = 0; - $1.pen = $1.pen + $1.p; - $1.p = 0; - } - } - $1.pen = $1.pen + $1.p; - } - if ($1.rows % 2 == 0 || $1.columns <= 12) { - $1.sum = 0; - $1.p = 0; - for (var _NW = 1, _NV = $1.rows - 2; _NW <= _NV; _NW += 1) { - $k[$j++] = _NW; - $1.clearrow(); - if ($k[--$j]) { - $1.sum = $1.sum + 1; - $k[$j++] = "p"; - if ($1.sum == 1) { - $k[$j++] = $1.columns; - } else { - $k[$j++] = $1.p * $1.columns; - } - var _Nd = $k[--$j]; - $1[$k[--$j]] = _Nd; - } else { - $1.sum = 0; - $1.pen = $1.pen + $1.p; - $1.p = 0; - } - } - $1.pen = $1.pen + $1.p; - } - $k[$j++] = Infinity; - for (var _Nk = 0, _Nl = ($1.columns + 4) * 2; _Nk < _Nl; _Nk++) { - $k[$j++] = 0; - } - for (var _Np = 0, _Nq = $1.columns, _No = $1.sym.length - 1; _Nq < 0 ? _Np >= _No : _Np <= _No; _Np += _Nq) { - $k[$j++] = 0; - $k[$j++] = 0; - $aload($geti($1.sym, _Np, $1.columns)); - $k[$j++] = 0; - $k[$j++] = 0; - } - for (var _Nv = 0, _Nw = ($1.columns + 4) * 2; _Nv < _Nw; _Nv++) { - $k[$j++] = 0; - } - $1.symp = $a(); - $1.columns = $1.columns + 4; - $1.rows = $1.rows + 4; - $1.sum = 0; - for (var _O2 = 2, _O1 = $1.rows - 3; _O2 <= _O1; _O2 += 1) { - $1.y = _O2; - for (var _O6 = ($1.y & 1) + 2, _O5 = $1.columns - 3; _O6 <= _O5; _O6 += 2) { - $1.x = _O6; - for (var _O7 = 0, _O8 = 1; _O7 < _O8; _O7++) { - $k[$j++] = $1.symp; - $k[$j++] = $1.x - 1; - $k[$j++] = $1.y - 1; - $1.dmv(); - var _OC = $k[--$j]; - if ($get($k[--$j], _OC) == 1) { - break; - } - $k[$j++] = $1.symp; - $k[$j++] = $1.x + 1; - $k[$j++] = $1.y - 1; - $1.dmv(); - var _OI = $k[--$j]; - if ($get($k[--$j], _OI) == 1) { - break; - } - $k[$j++] = $1.symp; - $k[$j++] = $1.x - 1; - $k[$j++] = $1.y + 1; - $1.dmv(); - var _OO = $k[--$j]; - if ($get($k[--$j], _OO) == 1) { - break; - } - $k[$j++] = $1.symp; - $k[$j++] = $1.x + 1; - $k[$j++] = $1.y + 1; - $1.dmv(); - var _OU = $k[--$j]; - if ($get($k[--$j], _OU) == 1) { - break; - } - $k[$j++] = $1.symp; - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $1.dmv(); - var _Oa = $k[--$j]; - if ($get($k[--$j], _Oa) == 0) { - $1.sum = $1.sum + 1; - break; - } - $k[$j++] = $1.symp; - $k[$j++] = $1.x - 2; - $k[$j++] = $1.y; - $1.dmv(); - var _Oh = $k[--$j]; - if ($get($k[--$j], _Oh) == 1) { - break; - } - $k[$j++] = $1.symp; - $k[$j++] = $1.x; - $k[$j++] = $1.y - 2; - $1.dmv(); - var _On = $k[--$j]; - if ($get($k[--$j], _On) == 1) { - break; - } - $k[$j++] = $1.symp; - $k[$j++] = $1.x + 2; - $k[$j++] = $1.y; - $1.dmv(); - var _Ot = $k[--$j]; - if ($get($k[--$j], _Ot) == 1) { - break; - } - $k[$j++] = $1.symp; - $k[$j++] = $1.x; - $k[$j++] = $1.y + 2; - $1.dmv(); - var _Oz = $k[--$j]; - if ($get($k[--$j], _Oz) == 1) { - break; - } - $1.sum = $1.sum + 1; - } - } - } - $1.columns = $1.columns - 4; - $1.rows = $1.rows - 4; - if ($1.worst == 0) { - $k[$j++] = -99999; - } else { - $k[$j++] = $f($f($1.worst - $1.sum * $1.sum) - $1.pen); - } - }; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _PA = 0, _PB = 112; _PA < _PB; _PA++) { - var _PC = $k[--$j]; - $k[$j++] = _PC; - $k[$j++] = _PC * 3 % 113; - } - $1.rsalog = $a(); - $1.step = ~~($1.nw / 112) + 1; - $1.offset = function() { - var _PG = $k[--$j]; - $k[$j++] = $f(_PG * $1.step + $1.start); - }; - $1.bestscore = -99999999; - $k[$j++] = "masks"; - if ($1.mask != -1) { - $k[$j++] = $a([ $1.mask ]); - } else { - if ($1.fast) { - $k[$j++] = $a([ 3, 2, 1, 0 ]); - } else { - $k[$j++] = $a([ 0, 1, 2, 3 ]); - } - } - var _PO = $k[--$j]; - $1[$k[--$j]] = _PO; - $1.litmasks = $a(4); - $forall($1.masks, function() { - $1.mask = $k[--$j]; - $k[$j++] = Infinity; - var _PX = $1.cws; - $k[$j++] = $1.mask; - $k[$j++] = $get($a([ 0, 3, 7, 17 ]), $1.mask); - $k[$j++] = 0; - for (var _PY = 0, _PZ = _PX.length; _PY < _PZ; _PY++) { - var _Pb = $k[--$j]; - var _Pc = $k[--$j]; - $k[$j++] = $f($get(_PX, _PY) + _Pb) % 113; - $k[$j++] = _Pc; - $k[$j++] = $f(_Pb + _Pc); - } - $j -= 2; - for (var _Pe = 0, _Pf = $1.nc; _Pe < _Pf; _Pe++) { - $k[$j++] = 0; - } - $1.rscws = $a(); - for (var _Pj = 0, _Pi = $1.step - 1; _Pj <= _Pi; _Pj += 1) { - $1.start = _Pj; - $1.ND = ~~(($1.nd + 1 - $1.start + $1.step - 1) / $1.step); - $1.NW = ~~(($1.nw + 1 - $1.start + $1.step - 1) / $1.step); - $1.NC = $1.NW - $1.ND; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _Pv = 0, _Pw = $1.NC; _Pv < _Pw; _Pv++) { - $k[$j++] = 0; - } - $1.coeffs = $a(); - for (var _Q0 = 1, _Pz = $1.NC; _Q0 <= _Pz; _Q0 += 1) { - $1.i = _Q0; - for (var _Q2 = $1.NC; _Q2 >= 1; _Q2 -= 1) { - $1.j = _Q2; - $put($1.coeffs, $1.j, $f($f($get($1.coeffs, $1.j) + 113) - $get($1.rsalog, $1.i) * $get($1.coeffs, $1.j - 1) % 113) % 113); - } - } - for (var _QG = 0, _QF = $1.ND - 1; _QG <= _QF; _QG += 1) { - $k[$j++] = "t"; - $k[$j++] = $1.rscws; - $k[$j++] = _QG; - $1.offset(); - var _QI = $k[--$j]; - var _QK = $get($k[--$j], _QI); - $k[$j++] = _QK; - $k[$j++] = $1.rscws; - $k[$j++] = $1.ND; - $1.offset(); - var _QN = $k[--$j]; - var _QP = $get($k[--$j], _QN); - var _QQ = $k[--$j]; - $1[$k[--$j]] = $f(_QQ + _QP) % 113; - for (var _QU = 0, _QT = $1.NC - 2; _QU <= _QT; _QU += 1) { - $1.j = _QU; - $k[$j++] = $1.rscws; - $k[$j++] = $1.ND + $1.j; - $1.offset(); - $k[$j++] = $1.rscws; - $k[$j++] = $1.ND + $1.j + 1; - $1.offset(); - var _Qb = $k[--$j]; - var _Qd = $get($k[--$j], _Qb); - var _Qi = $k[--$j]; - $put($k[--$j], _Qi, $f($f(_Qd + 113) - $1.t * $get($1.coeffs, $1.j + 1) % 113) % 113); - } - $k[$j++] = $1.rscws; - $k[$j++] = $1.ND + $1.NC - 1; - $1.offset(); - var _Qr = $k[--$j]; - $put($k[--$j], _Qr, $f(113 - $1.t * $get($1.coeffs, $1.NC) % 113) % 113); - } - for (var _Qw = $1.ND, _Qv = $1.NW - 1; _Qw <= _Qv; _Qw += 1) { - $k[$j++] = _Qw; - $k[$j++] = $1.rscws; - $k[$j++] = _Qw; - $1.offset(); - var _Qz = $k[--$j]; - var _R0 = $k[--$j]; - var _R1 = $k[--$j]; - $k[$j++] = _R0; - $k[$j++] = _Qz; - $k[$j++] = 113; - $k[$j++] = $1.rscws; - $k[$j++] = _R1; - $1.offset(); - var _R2 = $k[--$j]; - var _R4 = $get($k[--$j], _R2); - var _R5 = $k[--$j]; - var _R6 = $k[--$j]; - $put($k[--$j], _R6, $f(_R5 - _R4) % 113); - } - } - $1.bits = $s($1.ndots); - $puti($1.bits, 0, $get($a([ "00", "01", "10", "11" ]), $1.mask)); - for (var _RG = 1, _RF = $1.nw; _RG <= _RF; _RG += 1) { - $1.i = _RG; - $puti($1.bits, ($1.i - 1) * 9 + 2, $get($1.encs, $get($1.rscws, $1.i))); - } - if ($1.rembits > 0) { - $puti($1.bits, $1.nw * 9 + 2, $geti("11111111111111111", 0, $1.rembits)); - } - var _RT = $1.outline; - $1.pixs = $arrcpy($a(_RT.length), _RT); - $1.posx = 0; - $k[$j++] = "posy"; - if ($1.rows % 2 == 0) { - $k[$j++] = 0; - } else { - $k[$j++] = $1.rows - 1; - } - var _RY = $k[--$j]; - $1[$k[--$j]] = _RY; - var _Rc = $geti($1.bits, 0, $1.bits.length - 6); - for (var _Rd = 0, _Re = _Rc.length; _Rd < _Re; _Rd++) { - $k[$j++] = $get(_Rc, _Rd); - for (;;) { - $k[$j++] = $1.pixs; - $k[$j++] = $1.posx; - $k[$j++] = $1.posy; - $1.dmv(); - var _Rj = $k[--$j]; - if ($get($k[--$j], _Rj) == -1) { - break; - } - if ($1.rows % 2 == 0) { - $1.posy = $1.posy + 1; - if ($1.posy == $1.rows) { - $1.posy = 0; - $1.posx = $1.posx + 1; - } - } else { - $1.posx = $1.posx + 1; - if ($1.posx == $1.columns) { - $1.posx = 0; - $1.posy = $1.posy - 1; - } - } - } - $k[$j++] = $1.pixs; - $k[$j++] = $1.posx; - $k[$j++] = $1.posy; - $1.dmv(); - var _Ry = $k[--$j]; - var _Rz = $k[--$j]; - $put(_Rz, _Ry, $f($k[--$j] - 48)); - } - for (var _S1 = 0; _S1 <= 5; _S1 += 1) { - $1.i = _S1; - $k[$j++] = $1.pixs; - $aload($get($1.sixedges, $1.i)); - $1.dmv(); - var _SA = $k[--$j]; - $put($k[--$j], _SA, $get($1.bits, $1.bits.length - 6 + $1.i) - 48); - } - $k[$j++] = "score"; - $k[$j++] = $1.pixs; - $1.evalsymbol(); - var _SD = $k[--$j]; - $1[$k[--$j]] = _SD; - if ($1.score > $1.bestscore) { - $1.bestsym = $1.pixs; - $1.bestscore = $1.score; - if ($1.fast && $1.bestscore > ~~($1.rows * $1.columns / 2)) { - return true; - } - } - var _SN = $1.pixs; - $1.litmask = $arrcpy($a(_SN.length), _SN); - for (var _SQ = 0; _SQ <= 5; _SQ += 1) { - $1.i = _SQ; - $k[$j++] = $1.litmask; - $aload($get($1.sixedges, $1.i)); - $1.dmv(); - var _SV = $k[--$j]; - $put($k[--$j], _SV, 1); - } - $put($1.litmasks, $1.mask, $1.litmask); - if ($1.fast) { - $k[$j++] = "score"; - $k[$j++] = $1.litmask; - $1.evalsymbol(); - var _Sc = $k[--$j]; - $1[$k[--$j]] = _Sc; - if ($gt($1.score, $1.bestscore)) { - $1.bestsym = $1.litmask; - $1.bestscore = $1.score; - if ($1.bestscore > ~~($1.rows * $1.columns / 2)) { - return true; - } - } - } - }); - $1.pixs = $1.bestsym; - if (!$1.fast && $1.bestscore <= ~~($1.rows * $1.columns / 2)) { - $1.bestscore = -99999999; - $forall($1.masks, function() { - $1.litmask = $get($1.litmasks, $k[--$j]); - $k[$j++] = "score"; - $k[$j++] = $1.litmask; - $1.evalsymbol(); - var _Sv = $k[--$j]; - $1[$k[--$j]] = _Sv; - if ($1.score > $1.bestscore) { - $1.bestsym = $1.litmask; - $1.bestscore = $1.score; - } - }); - $1.pixs = $1.bestsym; - } - var _T8 = new Map([ [ "ren", $0.renmatrix ], [ "dotty", true ], [ "pixs", $1.pixs ], [ "pixx", $1.columns ], [ "pixy", $1.rows ], [ "height", $1.rows * 2 / 72 ], [ "width", $1.columns * 2 / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _T8; - if (!$1.dontdraw) { - $0.renmatrix(); - } + } //#22814 + var _UI = $k[--$j]; //#22814 + $k[$j++] = _UI == 0; //#22815 + $k[$j++] = $1.pixs; //#22815 + $k[$j++] = $1.i; //#22815 + $k[$j++] = $1.j; //#22815 + $1.qmv(); //#22815 + var _UM = $k[--$j]; //#22815 + var _UO = $get($k[--$j], _UM); //#22815 + var _UP = $k[--$j]; //#22815 + var _UQ = (_UP && (_UO == -1)) ? 1 : 0; //#22815 + $k[$j++] = _UQ; //#22816 + $k[$j++] = $1.mask; //#22816 + $k[$j++] = $1.i; //#22816 + $k[$j++] = $1.j; //#22816 + $1.qmv(); //#22816 + var _UU = $k[--$j]; //#22816 + var _UV = $k[--$j]; //#22816 + $put(_UV, _UU, $k[--$j]); //#22816 + } //#22816 + } //#22816 + $put($1.masks, $1.m, $1.mask); //#22819 + } //#22819 + $1.posx = 0; //#22823 + $1.posy = 0; //#22824 + $1.num = 0; //#22825 + for (;;) { //#22835 + if ($1.posy == $1.size) { //#22827 + break; //#22827 + } //#22827 + $k[$j++] = $1.pixs; //#22828 + $k[$j++] = $1.posx; //#22828 + $k[$j++] = $1.posy; //#22828 + $1.qmv(); //#22828 + var _Uf = $k[--$j]; //#22828 + if ($get($k[--$j], _Uf) == -1) { //#22832 + var _Uk = $get($1.cws, ~~($1.num / 8)); //#22829 + var _Um = -(7 - ($1.num % 8)); //#22829 + $k[$j++] = ((_Um < 0 ? _Uk >>> -_Um : _Uk << _Um)) & 1; //#22830 + $k[$j++] = $1.pixs; //#22830 + $k[$j++] = $1.posx; //#22830 + $k[$j++] = $1.posy; //#22830 + $1.qmv(); //#22830 + var _Uq = $k[--$j]; //#22830 + var _Ur = $k[--$j]; //#22830 + $put(_Ur, _Uq, $k[--$j]); //#22830 + $1.num = $1.num + 1; //#22831 + } //#22831 + $1.posx = $1.posx + 1; //#22833 + if ($1.posx == $1.size) { //#22834 + $1.posx = 0; //#22834 + $1.posy = $1.posy + 1; //#22834 + } //#22834 + } //#22834 + $1.evalfulln1n3 = function() { + $1.scrle = $k[--$j]; //#22839 + $k[$j++] = 'scr1'; //#22841 + $k[$j++] = 0; //#22841 + $forall($1.scrle, function() { //#22841 + var _V0 = $k[--$j]; //#22841 + $k[$j++] = _V0; //#22841 + if (_V0 >= 3) { //#22841 + var _V1 = $k[--$j]; //#22841 + var _V3 = $f($k[--$j] + (_V1 * 4)); //#22841 + $k[$j++] = _V3; //#22841 + $k[$j++] = _V3; //#22841 + } //#22841 + $j--; //#22841 + }); //#22841 + var _V4 = $k[--$j]; //#22841 + $1[$k[--$j]] = _V4; //#22841 + $1.scr3 = 0; //#22842 + for (var _V8 = 5, _V7 = $1.scrle.length - 1; _V8 <= _V7; _V8 += 2) { //#22858 + $1.j = _V8; //#22845 + if (($get($1.scrle, $1.j) % 3) == 0) { //#22857 + $1.fact = ~~($get($1.scrle, $1.j) / 3); //#22847 + var _VH = $geti($1.scrle, $1.j - 4, 4); //#22848 + for (var _VI = 0, _VJ = _VH.length; _VI < _VJ; _VI++) { //#22848 + $k[$j++] = $get(_VH, _VI) == $1.fact; //#22848 + } //#22848 + var _VM = $k[--$j]; //#22848 + var _VN = $k[--$j]; //#22848 + var _VO = $k[--$j]; //#22848 + var _VP = $k[--$j]; //#22848 + if (_VP && (_VO && (_VN && _VM))) { //#22856 + if (($1.j == 5) || (($1.j + 2) >= $1.scrle.length)) { //#22853 + $1.scr3 = $1.scr3 + 50; //#22850 + } else { //#22853 + if (($get($1.scrle, $1.j - 5) >= 3) || ($get($1.scrle, $1.j + 1) >= 3)) { //#22854 + $1.scr3 = $1.scr3 + 50; //#22853 + } //#22853 + } //#22853 + } //#22853 + } //#22853 + } //#22853 + for (var _Vd = 1, _Vc = $1.scrle.length - 5; _Vd <= _Vc; _Vd += 2) { //#22874 + $1.j = _Vd; //#22861 + if (($get($1.scrle, $1.j) % 3) == 0) { //#22873 + $1.fact = ~~($get($1.scrle, $1.j) / 3); //#22863 + var _Vm = $geti($1.scrle, $1.j + 1, 4); //#22864 + for (var _Vn = 0, _Vo = _Vm.length; _Vn < _Vo; _Vn++) { //#22864 + $k[$j++] = $get(_Vm, _Vn) == $1.fact; //#22864 + } //#22864 + var _Vr = $k[--$j]; //#22864 + var _Vs = $k[--$j]; //#22864 + var _Vt = $k[--$j]; //#22864 + var _Vu = $k[--$j]; //#22864 + if (_Vu && (_Vt && (_Vs && _Vr))) { //#22872 + if (($1.j == 1) || (($1.j + 6) >= $1.scrle.length)) { //#22869 + $1.scr3 = $1.scr3 + 50; //#22866 + } else { //#22869 + if (($get($1.scrle, $1.j - 1) >= 3) || ($get($1.scrle, $1.j + 5) >= 3)) { //#22870 + $1.scr3 = $1.scr3 + 50; //#22869 + } //#22869 + } //#22869 + } //#22869 + } //#22869 + } //#22869 + $k[$j++] = $1.scr1; //#22875 + $k[$j++] = $1.scr3; //#22875 + }; //#22876 + $1.evalfull = function() { + $1.sym = $k[--$j]; //#22880 + $1.n1 = 0; //#22882 + $1.n3 = 0; //#22882 + $1.rle = $a($f($1.size + 1)); //#22883 + $1.lastpairs = $a($1.size); //#22884 + $1.thispairs = $a($1.size); //#22885 + $1.sizeadd1 = $f($1.size + 1); //#22886 + for (var _WI = 0, _WH = $f($1.size - 1); _WI <= _WH; _WI += 1) { //#22911 + $1.i = _WI; //#22888 + $k[$j++] = Infinity; //#22891 + var _WK = $1.size; //#22892 + $k[$j++] = 0; //#22894 + $k[$j++] = 0; //#22894 + for (var _WM = $1.i, _WN = _WK, _WL = $f((_WK * _WK) - 1); _WN < 0 ? _WM >= _WL : _WM <= _WL; _WM += _WN) { //#22894 + var _WP = $get($1.sym, _WM); //#22893 + var _WQ = $k[--$j]; //#22893 + $k[$j++] = _WP; //#22893 + if ($eq(_WQ, _WP)) { //#22893 + var _WR = $k[--$j]; //#22893 + var _WS = $k[--$j]; //#22893 + $k[$j++] = $f(_WS + 1); //#22893 + $k[$j++] = _WR; //#22893 + } else { //#22893 + var _WT = $k[--$j]; //#22893 + $k[$j++] = 1; //#22893 + $k[$j++] = _WT; //#22893 + } //#22893 + } //#22893 + $j--; //#22895 + var _WV = $counttomark() + 2; //#22896 + $astore($geti($1.rle, 0, _WV - 2)); //#22896 + $1.evalfulln1n3(); //#22897 + $1.n3 = $f($k[--$j] + $1.n3); //#22897 + $1.n1 = $f($k[--$j] + $1.n1); //#22897 + $j--; //#22898 + $1.symrow = $geti($1.sym, $1.i * $1.size, $1.size); //#22901 + $k[$j++] = Infinity; //#22902 + var _Wg = $1.symrow; //#22903 + $k[$j++] = 0; //#22905 + $k[$j++] = 0; //#22905 + for (var _Wh = 0, _Wi = _Wg.length; _Wh < _Wi; _Wh++) { //#22905 + var _Wj = $get(_Wg, _Wh); //#22905 + var _Wk = $k[--$j]; //#22904 + $k[$j++] = _Wj; //#22904 + if ($eq(_Wk, _Wj)) { //#22904 + var _Wl = $k[--$j]; //#22904 + var _Wm = $k[--$j]; //#22904 + $k[$j++] = $f(_Wm + 1); //#22904 + $k[$j++] = _Wl; //#22904 + } else { //#22904 + var _Wn = $k[--$j]; //#22904 + $k[$j++] = 1; //#22904 + $k[$j++] = _Wn; //#22904 + } //#22904 + } //#22904 + $j--; //#22906 + var _Wp = $counttomark() + 2; //#22907 + $astore($geti($1.rle, 0, _Wp - 2)); //#22907 + $1.evalfulln1n3(); //#22908 + $1.n3 = $f($k[--$j] + $1.n3); //#22908 + $1.n1 = $f($k[--$j] + $1.n1); //#22908 + $j--; //#22909 + } //#22909 + $k[$j++] = $f($1.n1 + $1.n3); //#22913 + }; //#22914 + $1.bestscore = 999999999; //#22917 + for (var _Wz = 0, _Wy = $1.masks.length - 1; _Wz <= _Wy; _Wz += 1) { //#22935 + $1.m = _Wz; //#22919 + $1.masksym = $a($1.size * $1.size); //#22920 + for (var _X6 = 0, _X5 = $f(($1.size * $1.size) - 1); _X6 <= _X5; _X6 += 1) { //#22924 + $1.i = _X6; //#22922 + $put($1.masksym, $1.i, $xo($get($1.pixs, $1.i), $get($get($1.masks, $1.m), $1.i))); //#22923 + } //#22923 + if ($1.masks.length != 1) { //#22933 + $k[$j++] = $1.masksym; //#22926 + $1.evalfull(); //#22926 + $1.score = $k[--$j]; //#22926 + if ($1.score < $1.bestscore) { //#22931 + $1.bestsym = $1.masksym; //#22928 + $1.bestmaskval = $1.m; //#22929 + $1.bestscore = $1.score; //#22930 + } //#22930 + } else { //#22933 + $1.bestsym = $1.masksym; //#22933 + } //#22933 + } //#22933 + $1.pixs = $1.bestsym; //#22936 + $1.funval = (((((~~($f($1.size - 21) / 2)) + 20) * 4) + $1.eclval) * 4) + $1.bestmaskval; //#22939 + $k[$j++] = $a([($1.funval & 3840) >>> 8, ($1.funval & 240) >>> 4, $1.funval & 15]); //#22943 + $k[$j++] = 4; //#22943 + $k[$j++] = 16; //#22943 + $k[$j++] = 19; //#22943 + $1.rscodes(); //#22943 + $1.funvals = $k[--$j]; //#22943 + $k[$j++] = Infinity; //#22948 + $forall($1.funvals, function() { //#22947 + $k[$j++] = 4; //#22946 + $1.tobin(); //#22946 + $forall($k[--$j], function() { //#22946 + var _Xb = $k[--$j]; //#22946 + $k[$j++] = $f(_Xb - 48); //#22946 + }); //#22946 + }); //#22946 + $k[$j++] = 0; //#22948 + $k[$j++] = 1; //#22948 + $k[$j++] = 0; //#22948 + $k[$j++] = 1; //#22948 + $k[$j++] = 0; //#22948 + $k[$j++] = 1; //#22948 + $1.funbits = $a(); //#22948 + for (var _Xf = 0, _Xe = $1.functionmap.length - 1; _Xf <= _Xe; _Xf += 1) { //#22955 + $1.i = _Xf; //#22951 + $forall($get($1.functionmap, $1.i), function() { //#22954 + var _Xk = $k[--$j]; //#22953 + $k[$j++] = $1.pixs; //#22953 + $aload(_Xk); //#22953 + $1.qmv(); //#22953 + var _Xo = $k[--$j]; //#22953 + $put($k[--$j], _Xo, $get($1.funbits, $1.i)); //#22953 + }); //#22953 + } //#22953 + var _Xw = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", $1.size], + ["pixy", $1.size], + ["height", ($1.size * 2) / 72], + ["width", ($1.size * 2) / 72], + ["opt", $1.options] + ]); //#22965 + $k[$j++] = _Xw; //#22968 + if (!$1.dontdraw) { //#22968 + $0.renmatrix(); //#22968 + } //#22968 }; - $0.ultracode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.eclevel = "EC2"; - $1.parse = false; - $1.parsefnc = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.fn1 = -1; - $1.fn3 = -2; - var _9 = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "FNC1", $1.fn1 ], [ "FNC3", $1.fn3 ] ]); - $1.fncvals = _9; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _C = $k[--$j]; - $1[$k[--$j]] = _C; - $1.msglen = $1.msg.length; - $1.start = 257; - $1.scr = $a([]); - $1.link1 = 0; - $1.scp = $a([]); - $k[$j++] = Infinity; - $aload($1.scr); - $aload($1.scp); - $forall($1.msg, function() { - var _K = $k[--$j]; - $k[$j++] = _K; - if (_K == $1.fn1) { - $j--; - $k[$j++] = 268; - } - var _M = $k[--$j]; - $k[$j++] = _M; - if (_M == $1.fn3) { - $j--; - $k[$j++] = 269; - } - }); - $1.dcws = $a(); - $1.mcc = $1.dcws.length + 3; - $1.eclval = $get($1.eclevel, 2) - 48; - if ($1.eclval != 0) { - $k[$j++] = "qcc"; - $k[$j++] = $get($a([ 0, 1, 2, 4, 6, 8 ]), $1.eclval); - $k[$j++] = ~~($1.mcc / 25); - if ($1.mcc % 25 != 0) { - var _Y = $k[--$j]; - $k[$j++] = $f(_Y + 1); - } - var _Z = $k[--$j]; - var _a = $k[--$j]; - $1[$k[--$j]] = $f(_a * _Z + 5); - } else { - $1.qcc = 3; - } - $1.acc = $1.qcc - 3 + 78 * $1.link1; - $1.tcc = $1.mcc + $1.qcc; - $1.metrics = $a([ $a([ 2, 4, 34, 5 ]), $a([ 3, 33, 82, 13 ]), $a([ 4, 82, 158, 23 ]), $a([ 5, 134, 282, 30 ]) ]); - for (var _l = 0; _l <= 3; _l += 1) { - $1.i = _l; - $1.m = $get($1.metrics, $1.i); - $1.rows = $get($1.m, 0); - $1.minc = $get($1.m, 1); - $1.maxc = $get($1.m, 2); - $1.mcol = $get($1.m, 3); - $1.okay = true; - if ($1.tcc < $1.minc || $1.tcc > $1.maxc) { - $1.okay = false; - } - if ($1.okay) { - break; - } - } - if (!$1.okay) { - $k[$j++] = "bwipp.ultracodeNoValidSymbol"; - $k[$j++] = "No valid symbol available"; - $0.raiseerror(); - } - for (var _14 = $1.mcol; _14 <= 61; _14 += 1) { - $1.columns = _14; - $k[$j++] = $1.columns; - if ($1.columns >= 15) { - var _17 = $k[--$j]; - $k[$j++] = $f(_17 - 1); - } - if ($1.columns >= 31) { - var _19 = $k[--$j]; - $k[$j++] = $f(_19 - 1); - } - if ($1.columns >= 47) { - var _1B = $k[--$j]; - $k[$j++] = $f(_1B - 1); - } - var _1F = $f($f($k[--$j] * $1.rows - 3) - $1.tcc); - $k[$j++] = _1F; - if (_1F >= 0) { - $1.pads = $k[--$j]; + $0.dotcode = function() { + var $1 = {}; //#22998 + $1.options = $k[--$j]; //#23000 + $1.barcode = $k[--$j]; //#23001 + $1.dontdraw = false; //#23003 + $1.rows = -1; //#23004 + $1.columns = -1; //#23005 + $1.ratio = -1; //#23006 + $1.parse = false; //#23007 + $1.parsefnc = false; //#23008 + $1.raw = false; //#23009 + $1.fast = false; //#23010 + $1.mask = -1; //#23011 + $forall($1.options, function() { //#23022 + var _3 = $k[--$j]; //#23022 + $1[$k[--$j]] = _3; //#23022 + }); //#23022 + $1.rows = ~~$1.rows; //#23024 + $1.columns = ~~$1.columns; //#23025 + $1.ratio = +$1.ratio; //#23026 + $1.mask = ~~$1.mask; //#23027 + if ((($1.ratio == -1) && ($1.rows == -1)) && ($1.columns == -1)) { //#23032 + $1.ratio = 3 / 2; //#23031 + } //#23031 + $1.laa = -1; //#23035 + $1.lab = -2; //#23035 + $1.lac = -3; //#23035 + $1.bin = -4; //#23035 + $1.sfa = -5; //#23036 + $1.sfb = -6; //#23036 + $1.sb2 = -7; //#23036 + $1.sb3 = -8; //#23036 + $1.sb4 = -9; //#23037 + $1.sb5 = -10; //#23037 + $1.sb6 = -11; //#23037 + $1.sfc = -12; //#23037 + $1.sc2 = -13; //#23038 + $1.sc3 = -14; //#23038 + $1.sc4 = -15; //#23038 + $1.sc5 = -16; //#23038 + $1.sc6 = -17; //#23039 + $1.sc7 = -18; //#23039 + $1.bsa = -19; //#23039 + $1.bsb = -20; //#23039 + $1.tma = -21; //#23040 + $1.tmb = -22; //#23040 + $1.tmc = -23; //#23040 + $1.tms = -24; //#23040 + $1.fn1 = -25; //#23041 + $1.fn2 = -26; //#23041 + $1.fn3 = -27; //#23041 + $1.crl = -28; //#23041 + $1.aim = -29; //#23042 + $1.m05 = -30; //#23042 + $1.m06 = -31; //#23042 + $1.m12 = -32; //#23042 + $1.mac = -33; //#23043 + var _G = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["eci", true], + ["FNC1", $1.fn1], + ["FNC3", $1.fn3] + ]); //#23052 + $1.fncvals = _G; //#23053 + $k[$j++] = 'msg'; //#23054 + $k[$j++] = $1.barcode; //#23054 + $k[$j++] = $1.fncvals; //#23054 + $0.parseinput(); //#23054 + var _J = $k[--$j]; //#23054 + $1[$k[--$j]] = _J; //#23054 + $1.msglen = $1.msg.length; //#23055 + var _M = $1.msg; //#23058 + $k[$j++] = 'numecis'; //#23058 + $k[$j++] = 0; //#23058 + for (var _N = 0, _O = _M.length; _N < _O; _N++) { //#23058 + if ($get(_M, _N) <= -1000000) { //#23058 + var _Q = $k[--$j]; //#23058 + $k[$j++] = $f(_Q + 1); //#23058 + } //#23058 + } //#23058 + var _R = $k[--$j]; //#23058 + $1[$k[--$j]] = _R; //#23058 + $1.msgtmp = $a($f($1.msg.length + ($1.numecis * 6))); //#23059 + $1.j = 0; //#23060 + for (var _Y = 0, _X = $1.msg.length - 1; _Y <= _X; _Y += 1) { //#23071 + var _a = $get($1.msg, _Y); //#23062 + $k[$j++] = _a; //#23070 + if (_a <= -1000000) { //#23069 + var _e = $geti($cvrs($s(7), -$k[--$j], 10), 1, 6); //#23063 + for (var _f = 0, _g = _e.length; _f < _g; _f++) { //#23063 + $k[$j++] = $get(_e, _f); //#23063 + } //#23063 + $astore($a(6)); //#23063 + $puti($1.msgtmp, $1.j + 1, $k[--$j]); //#23064 + $put($1.msgtmp, $1.j, $1.fn2); //#23065 + $1.j = $1.j + 7; //#23066 + } else { //#23069 + $put($1.msgtmp, $1.j, $k[--$j]); //#23068 + $1.j = $1.j + 1; //#23069 + } //#23069 + } //#23069 + $1.msg = $1.msgtmp; //#23072 + $1.msglen = $1.msg.length; //#23073 + $1.charmaps = $a([$a([32, 32, "00"]), $a(["!", "!", "01"]), $a(["\"", "\"", "02"]), $a(["#", "#", "03"]), $a(["$", "$", "04"]), $a(["%", "%", "05"]), $a(["&", "&", "06"]), $a(["'", "'", "07"]), $a([40, 40, "08"]), $a([41, 41, "09"]), $a(["*", "*", "10"]), $a(["+", "+", "11"]), $a([",", ",", "12"]), $a(["-", "-", "13"]), $a([".", ".", "14"]), $a(["/", "/", "15"]), $a(["0", "0", "16"]), $a(["1", "1", "17"]), $a(["2", "2", "18"]), $a(["3", "3", "19"]), $a(["4", "4", "20"]), $a(["5", "5", "21"]), $a(["6", "6", "22"]), $a(["7", "7", "23"]), $a(["8", "8", "24"]), $a(["9", "9", "25"]), $a([":", ":", "26"]), $a([";", ";", "27"]), $a(["<", "<", "28"]), $a(["=", "=", "29"]), $a([">", ">", "30"]), $a(["?", "?", "31"]), $a(["@", "@", "32"]), $a(["A", "A", "33"]), $a(["B", "B", "34"]), $a(["C", "C", "35"]), $a(["D", "D", "36"]), $a(["E", "E", "37"]), $a(["F", "F", "38"]), $a(["G", "G", "39"]), $a(["H", "H", "40"]), $a(["I", "I", "41"]), $a(["J", "J", "42"]), $a(["K", "K", "43"]), $a(["L", "L", "44"]), $a(["M", "M", "45"]), $a(["N", "N", "46"]), $a(["O", "O", "47"]), $a(["P", "P", "48"]), $a(["Q", "Q", "49"]), $a(["R", "R", "50"]), $a(["S", "S", "51"]), $a(["T", "T", "52"]), $a(["U", "U", "53"]), $a(["V", "V", "54"]), $a(["W", "W", "55"]), $a(["X", "X", "56"]), $a(["Y", "Y", "57"]), $a(["Z", "Z", "58"]), $a(["[", "[", "59"]), $a([92, 92, "60"]), $a(["]", "]", "61"]), $a(["^", "^", "62"]), $a(["_", "_", "63"]), $a([0, "`", "64"]), $a([1, "a", "65"]), $a([2, "b", "66"]), $a([3, "c", "67"]), $a([4, "d", "68"]), $a([5, "e", "69"]), $a([6, "f", "70"]), $a([7, "g", "71"]), $a([8, "h", "72"]), $a([9, "i", "73"]), $a([10, "j", "74"]), $a([11, "k", "75"]), $a([12, "l", "76"]), $a([13, "m", "77"]), $a([14, "n", "78"]), $a([15, "o", "79"]), $a([16, "p", "80"]), $a([17, "q", "81"]), $a([18, "r", "82"]), $a([19, "s", "83"]), $a([20, "t", "84"]), $a([21, "u", "85"]), $a([22, "v", "86"]), $a([23, "w", "87"]), $a([24, "x", "88"]), $a([25, "y", "89"]), $a([26, "z", "90"]), $a([27, "{", "91"]), $a([28, "|", "92"]), $a([29, "}", "93"]), $a([30, "~", "94"]), $a([31, 127, "95"]), $a([$1.sfb, $1.crl, "96"]), $a([$1.sb2, 9, "97"]), $a([$1.sb3, 28, "98"]), $a([$1.sb4, 29, "99"]), $a([$1.sb5, 30, $1.aim]), $a([$1.sb6, $1.sfa, $1.laa]), $a([$1.lab, $1.laa, $1.sfb]), $a([$1.sc2, $1.sc2, $1.sb2]), $a([$1.sc3, $1.sc3, $1.sb3]), $a([$1.sc4, $1.sc4, $1.sb4]), $a([$1.lac, $1.lac, $1.lab]), $a([$1.fn1, $1.fn1, $1.fn1]), $a([$1.fn2, $1.fn2, $1.fn2]), $a([$1.fn3, $1.fn3, $1.fn3]), $a([$1.bsa, $1.bsa, $1.bsa]), $a([$1.bsb, $1.bsb, $1.bsb]), $a([$1.bin, $1.bin, $1.bin])]); //#23116 + $1.charvals = $a([new Map, new Map, new Map]); //#23119 + for (var _3W = 0, _3V = $1.charmaps.length - 1; _3W <= _3V; _3W += 1) { //#23128 + $1.i = _3W; //#23121 + $1.encs = $get($1.charmaps, $1.i); //#23122 + for (var _3a = 0; _3a <= 2; _3a += 1) { //#23127 + $1.j = _3a; //#23124 + var _3d = $get($1.encs, $1.j); //#23125 + $k[$j++] = _3d; //#23125 + if ($eq($type(_3d), 'stringtype')) { //#23125 + var _3g = $get($k[--$j], 0); //#23125 + $k[$j++] = _3g; //#23125 + } //#23125 + $put($get($1.charvals, $1.j), $k[--$j], $1.i); //#23126 + } //#23126 + } //#23126 + $1.Avals = $get($1.charvals, 0); //#23129 + $1.Bvals = $get($1.charvals, 1); //#23130 + $put($1.Bvals, $1.m05, 97); //#23131 + $put($1.Bvals, $1.m06, 98); //#23132 + $put($1.Bvals, $1.m12, 99); //#23133 + $put($1.Bvals, $1.mac, 100); //#23134 + $1.Cvals = $get($1.charvals, 2); //#23135 + $k[$j++] = Infinity; //#23137 + var _4A = $a([$1.sc2, $1.sc3, $1.sc4, $1.sc5, $1.sc6, $1.sc7, $1.tma, $1.tmb, $1.tmc, $1.tms]); //#23137 + $k[$j++] = 102; //#23137 + for (var _4B = 0, _4C = _4A.length; _4B < _4C; _4B++) { //#23137 + var _4F = $f($k[--$j] + 1); //#23137 + $k[$j++] = $get(_4A, _4B); //#23137 + $k[$j++] = _4F; //#23137 + $k[$j++] = _4F; //#23137 + } //#23137 + $j--; //#23137 + $1.BINvals = $d(); //#23138 + $k[$j++] = Infinity; //#23141 + for (var _4I = 0, _4J = $1.msglen + 1; _4I < _4J; _4I++) { //#23141 + $k[$j++] = 0; //#23141 + } //#23141 + $1.nDigits = $a(); //#23141 + $k[$j++] = Infinity; //#23142 + for (var _4M = 0, _4N = $1.msglen + 1; _4M < _4N; _4M++) { //#23142 + $k[$j++] = false; //#23142 + } //#23142 + $1.SeventeenTen = $a(); //#23142 + $k[$j++] = Infinity; //#23143 + for (var _4Q = 0, _4R = $1.msglen + 1; _4Q < _4R; _4Q++) { //#23143 + $k[$j++] = false; //#23143 + } //#23143 + $1.ECI = $a(); //#23143 + $k[$j++] = Infinity; //#23144 + for (var _4U = 0, _4V = $1.msglen + 1; _4U < _4V; _4U++) { //#23144 + $k[$j++] = false; //#23144 + } //#23144 + $1.DatumA = $a(); //#23144 + $k[$j++] = Infinity; //#23145 + for (var _4Y = 0, _4Z = $1.msglen + 1; _4Y < _4Z; _4Y++) { //#23145 + $k[$j++] = false; //#23145 + } //#23145 + $1.DatumB = $a(); //#23145 + $k[$j++] = Infinity; //#23146 + for (var _4c = 0, _4d = $1.msglen + 1; _4c < _4d; _4c++) { //#23146 + $k[$j++] = false; //#23146 + } //#23146 + $1.DatumC = $a(); //#23146 + $k[$j++] = Infinity; //#23147 + for (var _4g = 0, _4h = $1.msglen + 8; _4g < _4h; _4g++) { //#23147 + $k[$j++] = false; //#23147 + } //#23147 + $1.Binary = $a(); //#23147 + $k[$j++] = Infinity; //#23148 + for (var _4k = 0, _4l = $1.msglen + 1; _4k < _4l; _4k++) { //#23148 + $k[$j++] = 0; //#23148 + } //#23148 + $1.AheadC = $a(); //#23148 + $k[$j++] = Infinity; //#23149 + for (var _4o = 0, _4p = $1.msglen + 1; _4o < _4p; _4o++) { //#23149 + $k[$j++] = 0; //#23149 + } //#23149 + $1.TryC = $a(); //#23149 + $k[$j++] = Infinity; //#23150 + for (var _4s = 0, _4t = $1.msglen + 1; _4s < _4t; _4s++) { //#23150 + $k[$j++] = 0; //#23150 + } //#23150 + $1.AheadA = $a(); //#23150 + $k[$j++] = Infinity; //#23151 + for (var _4w = 0, _4x = $1.msglen + 1; _4w < _4x; _4w++) { //#23151 + $k[$j++] = 0; //#23151 + } //#23151 + $1.AheadB = $a(); //#23151 + $k[$j++] = Infinity; //#23152 + for (var _50 = 0, _51 = $1.msglen + 1; _50 < _51; _50++) { //#23152 + $k[$j++] = 0; //#23152 + } //#23152 + $1.UntilEndSeg = $a(); //#23152 + for (var _54 = $1.msglen - 1; _54 >= 0; _54 -= 1) { //#23207 + $1.i = _54; //#23154 + $1.barchar = $get($1.msg, $1.i); //#23155 + if (($1.barchar >= 48) && ($1.barchar <= 57)) { //#23158 + $put($1.nDigits, $1.i, $f($get($1.nDigits, $1.i + 1) + 1)); //#23157 + } //#23157 + var _5H = $get($1.Avals, $1.barchar) !== undefined; //#23159 + if (_5H) { //#23159 + $put($1.DatumA, $1.i, true); //#23159 + } //#23159 + var _5M = $get($1.Bvals, $1.barchar) !== undefined; //#23160 + if (_5M) { //#23160 + $put($1.DatumB, $1.i, true); //#23160 + } //#23160 + $1.CRLF = false; //#23161 + if (($1.barchar == 13) && ($1.i < ($1.msglen - 1))) { //#23164 + if ($get($1.msg, $1.i + 1) == 10) { //#23163 + $1.CRLF = true; //#23163 + } //#23163 + } //#23163 + if ($1.CRLF) { //#23165 + $put($1.DatumB, $1.i, true); //#23165 + } //#23165 + if ($get($1.nDigits, $1.i) >= 2) { //#23166 + $put($1.DatumC, $1.i, true); //#23166 + } //#23166 + if ($1.barchar < 0) { //#23167 + $put($1.DatumC, $1.i, true); //#23167 + } //#23167 + if ($1.barchar >= 128) { //#23168 + $put($1.Binary, $1.i, true); //#23168 + } //#23168 + if ($get($1.nDigits, $1.i) >= 10) { //#23182 + $k[$j++] = Infinity; //#23170 + $aload($geti($1.msg, $1.i, 10)); //#23171 + for (var _5p = 0, _5q = 1; _5p < _5q; _5p++) { //#23179 + if ($k[--$j] != 48) { //#23173 + $k[$j++] = false; //#23173 + break; //#23173 + } //#23173 + if ($k[--$j] != 49) { //#23174 + $k[$j++] = false; //#23174 + break; //#23174 + } //#23174 + $j -= 6; //#23175 + if ($k[--$j] != 55) { //#23176 + $k[$j++] = false; //#23176 + break; //#23176 + } //#23176 + if ($k[--$j] != 49) { //#23177 + $k[$j++] = false; //#23177 + break; //#23177 + } //#23177 + $k[$j++] = true; //#23178 + } //#23178 + $put($1.SeventeenTen, $1.i, $k[--$j]); //#23180 + $cleartomark(); //#23181 + } //#23181 + if (($get($1.nDigits, $1.i + 1) >= 6) && ($get($1.msg, $1.i) == $1.fn2)) { //#23185 + $put($1.ECI, $1.i, true); //#23184 + } //#23184 + if (($1.barchar < 0) && ($1.barchar != $1.fn3)) { //#23192 + $put($1.AheadC, $1.i, $f($get($1.AheadC, $1.i + 1) + 1)); //#23187 + } else { //#23192 + if ($get($1.nDigits, $1.i) <= 1) { //#23192 + $put($1.AheadC, $1.i, 0); //#23190 + } else { //#23192 + $put($1.AheadC, $1.i, $f($get($1.AheadC, $1.i + 2) + 1)); //#23192 + } //#23192 + } //#23192 + if (($get($1.nDigits, $1.i) > 0) && $gt($get($1.AheadC, $1.i), $get($1.AheadC, $1.i + 1))) { //#23197 + $put($1.TryC, $1.i, $get($1.AheadC, $1.i)); //#23196 + } //#23196 + if (($get($1.DatumA, $1.i) && ($get($1.TryC, $1.i) < 2)) && ($1.barchar != $1.fn3)) { //#23200 + $put($1.AheadA, $1.i, $f($get($1.AheadA, $1.i + 1) + 1)); //#23199 + } //#23199 + if (($get($1.DatumB, $1.i) && ($get($1.TryC, $1.i) < 2)) && ($1.barchar != $1.fn3)) { //#23203 + $k[$j++] = $1.AheadB; //#23202 + $k[$j++] = $1.i; //#23202 + $k[$j++] = $1.AheadB; //#23202 + $k[$j++] = $1.i + 1; //#23202 + if ($1.CRLF) { //#23202 + var _73 = $k[--$j]; //#23202 + $k[$j++] = $f(_73 + 1); //#23202 + } //#23202 + var _74 = $k[--$j]; //#23202 + var _76 = $get($k[--$j], _74); //#23202 + var _77 = $k[--$j]; //#23202 + $put($k[--$j], _77, $f(_76 + 1)); //#23202 + } //#23202 + if ($1.barchar != $1.fn3) { //#23206 + $put($1.UntilEndSeg, $1.i, $f($get($1.UntilEndSeg, $1.i + 1) + 1)); //#23205 + } //#23205 + } //#23205 + $1.A = 0; //#23209 + $1.B = 1; //#23209 + $1.C = 2; //#23209 + $1.BIN = 3; //#23209 + $1.addtocws = function() { + var _7G = $k[--$j]; //#23212 + $puti($1.cws, $1.j, _7G); //#23212 + $1.j = _7G.length + $1.j; //#23213 + }; //#23214 + $1.base259to103 = function() { + $1.in = $k[--$j]; //#23218 + $1.inlen = $1.in.length; //#23219 + $k[$j++] = Infinity; //#23220 + for (var _7N = 0, _7O = 5 - $1.inlen; _7N < _7O; _7N++) { //#23220 + $k[$j++] = 0; //#23220 + } //#23220 + $aload($1.in); //#23220 + $1.in = $a(); //#23220 + $1.out = $a(6); //#23221 + $k[$j++] = Infinity; //#23222 + $aload($geti($1.in, 0, 2)); //#23222 + $1.msbs = $a(); //#23222 + $k[$j++] = Infinity; //#23225 + $aload($1.msbs); //#23224 + var _7W = $k[--$j]; //#23224 + var _7X = $k[--$j]; //#23224 + $k[$j++] = $f(_7W + (_7X * 259)); //#23225 + for (var _7Y = 0, _7Z = 2; _7Y < _7Z; _7Y++) { //#23225 + var _7a = $k[--$j]; //#23225 + $k[$j++] = _7a % 103; //#23225 + $k[$j++] = ~~(_7a / 103); //#23225 + } //#23225 + $1.mscs = $a(); //#23225 + $k[$j++] = Infinity; //#23227 + $aload($geti($1.in, 2, 3)); //#23227 + $1.lsbs = $a(); //#23227 + $k[$j++] = Infinity; //#23230 + $aload($1.lsbs); //#23229 + var _7g = $k[--$j]; //#23229 + var _7h = $k[--$j]; //#23229 + var _7i = $k[--$j]; //#23229 + $k[$j++] = $f(($f(_7g + (_7h * 259))) + (_7i * 67081)); //#23230 + for (var _7j = 0, _7k = 3; _7j < _7k; _7j++) { //#23230 + var _7l = $k[--$j]; //#23230 + $k[$j++] = _7l % 103; //#23230 + $k[$j++] = ~~(_7l / 103); //#23230 + } //#23230 + $1.lscs = $a(); //#23230 + var _7o = $get($1.lscs, 0); //#23232 + var _7q = $get($1.mscs, 0); //#23232 + $put($1.out, 5, ($f(_7o + (_7q * 42))) % 103); //#23233 + var _7t = $get($1.lscs, 1); //#23234 + var _7v = $get($1.mscs, 0); //#23234 + var _7x = $get($1.mscs, 1); //#23234 + $put($1.out, 4, ($f(($f(($f((~~(($f(_7o + (_7q * 42))) / 103)) + _7t)) + (_7v * 68))) + (_7x * 42))) % 103); //#23235 + var _80 = $get($1.lscs, 2); //#23236 + var _82 = $get($1.mscs, 0); //#23236 + var _84 = $get($1.mscs, 1); //#23236 + var _86 = $get($1.mscs, 2); //#23236 + $put($1.out, 3, ($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7o + (_7q * 42))) / 103)) + _7t)) + (_7v * 68))) + (_7x * 42))) / 103)) + _80)) + (_82 * 92))) + (_84 * 68))) + (_86 * 42))) % 103); //#23237 + var _89 = $get($1.lscs, 3); //#23238 + var _8B = $get($1.mscs, 0); //#23238 + var _8D = $get($1.mscs, 1); //#23238 + var _8F = $get($1.mscs, 2); //#23238 + $put($1.out, 2, ($f(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7o + (_7q * 42))) / 103)) + _7t)) + (_7v * 68))) + (_7x * 42))) / 103)) + _80)) + (_82 * 92))) + (_84 * 68))) + (_86 * 42))) / 103)) + _89)) + (_8B * 15))) + (_8D * 92))) + (_8F * 68))) % 103); //#23239 + var _8I = $get($1.mscs, 1); //#23240 + var _8K = $get($1.mscs, 2); //#23240 + $put($1.out, 1, ($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7o + (_7q * 42))) / 103)) + _7t)) + (_7v * 68))) + (_7x * 42))) / 103)) + _80)) + (_82 * 92))) + (_84 * 68))) + (_86 * 42))) / 103)) + _89)) + (_8B * 15))) + (_8D * 92))) + (_8F * 68))) / 103)) + (_8I * 15))) + (_8K * 92))) % 103); //#23241 + $put($1.out, 0, ($f((~~(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f(($f((~~(($f(($f(($f((~~(($f(_7o + (_7q * 42))) / 103)) + _7t)) + (_7v * 68))) + (_7x * 42))) / 103)) + _80)) + (_82 * 92))) + (_84 * 68))) + (_86 * 42))) / 103)) + _89)) + (_8B * 15))) + (_8D * 92))) + (_8F * 68))) / 103)) + (_8I * 15))) + (_8K * 92))) / 103)) + ($get($1.mscs, 2) * 15))) % 103); //#23243 + $k[$j++] = $geti($1.out, (6 - $1.inlen) - 1, $1.inlen + 1); //#23244 + }; //#23245 + $1.finaliseBIN = function() { + if ($1.bpos != 0) { //#23251 + $k[$j++] = $geti($1.bvals, 0, $1.bpos); //#23249 + $1.base259to103(); //#23249 + $aload($k[--$j]); //#23249 + $1.bpos = 0; //#23250 + } //#23250 + }; //#23252 + $1.addtobin = function() { + $put($1.bvals, $1.bpos, $k[--$j]); //#23255 + $1.bpos = $1.bpos + 1; //#23256 + if ($1.bpos == 5) { //#23257 + $1.finaliseBIN(); //#23257 + } //#23257 + }; //#23258 + $1.ECIabc = function() { + var _8f = $geti($1.msg, $1.i + 1, 6); //#23261 + $k[$j++] = 0; //#23261 + for (var _8g = 0, _8h = _8f.length; _8g < _8h; _8g++) { //#23261 + var _8j = $k[--$j]; //#23261 + $k[$j++] = ($f(_8j + $f($get(_8f, _8g) - 48))) * 10; //#23261 + } //#23261 + var _8l = ~~($k[--$j] / 10); //#23262 + $k[$j++] = _8l; //#23266 + if (_8l >= 40) { //#23266 + var _8n = $f($k[--$j] - 40); //#23264 + var _8o = _8n % 12769; //#23265 + $k[$j++] = (~~(_8n / 12769)) + 40; //#23265 + $k[$j++] = ~~(_8o / 113); //#23265 + $k[$j++] = _8o % 113; //#23265 + } //#23265 + }; //#23267 + $1.ECIbin = function() { + $k[$j++] = Infinity; //#23278 + var _8r = $geti($1.msg, $1.i + 1, 6); //#23271 + $k[$j++] = 0; //#23271 + for (var _8s = 0, _8t = _8r.length; _8s < _8t; _8s++) { //#23271 + var _8v = $k[--$j]; //#23271 + $k[$j++] = ($f(_8v + $f($get(_8r, _8s) - 48))) * 10; //#23271 + } //#23271 + var _8x = ~~($k[--$j] / 10); //#23272 + $k[$j++] = _8x; //#23280 + if (_8x >= 65536) { //#23278 + var _8y = $k[--$j]; //#23273 + var _8z = _8y % 65536; //#23273 + $k[$j++] = 258; //#23273 + $k[$j++] = ~~(_8y / 65536); //#23273 + $k[$j++] = ~~(_8z / 256); //#23273 + $k[$j++] = _8z % 256; //#23273 + } else { //#23278 + var _90 = $k[--$j]; //#23275 + $k[$j++] = _90; //#23279 + if (_90 >= 256) { //#23278 + var _91 = $k[--$j]; //#23276 + $k[$j++] = 257; //#23276 + $k[$j++] = ~~(_91 / 256); //#23276 + $k[$j++] = _91 % 256; //#23276 + } else { //#23278 + var _92 = $k[--$j]; //#23278 + $k[$j++] = 256; //#23278 + $k[$j++] = _92; //#23278 + } //#23278 + } //#23278 + var _93 = $a(); //#23278 + for (var _94 = 0, _95 = _93.length; _94 < _95; _94++) { //#23283 + $k[$j++] = $get(_93, _94); //#23282 + $1.addtobin(); //#23282 + } //#23282 + }; //#23284 + $1.encC = function() { + for (var _97 = 0, _98 = 1; _97 < _98; _97++) { //#23395 + if ($1.i == $1.segstart) { //#23313 + for (var _9B = 0, _9C = 1; _9B < _9C; _9B++) { //#23305 + if ($1.i > $f($1.segend - 7)) { //#23290 + $k[$j++] = 0; //#23290 + break; //#23290 + } //#23290 + if ($get($1.msg, $1.segstart) != 91) { //#23291 + $k[$j++] = 0; //#23291 + break; //#23291 + } //#23291 + if ($get($1.msg, $1.segstart + 1) != 41) { //#23292 + $k[$j++] = 0; //#23292 + break; //#23292 + } //#23292 + if ($get($1.msg, $1.segstart + 2) != 62) { //#23293 + $k[$j++] = 0; //#23293 + break; //#23293 + } //#23293 + if ($get($1.msg, $1.segstart + 3) != 30) { //#23294 + $k[$j++] = 0; //#23294 + break; //#23294 + } //#23294 + var _9T = $get($1.msg, $1.segstart + 4); //#23295 + if ((_9T < 48) || (_9T > 57)) { //#23295 + $k[$j++] = 0; //#23295 + break; //#23295 + } //#23295 + var _9W = $get($1.msg, $1.segstart + 5); //#23296 + if ((_9W < 48) || (_9W > 57)) { //#23296 + $k[$j++] = 0; //#23296 + break; //#23296 + } //#23296 + if ($get($1.msg, $f($1.segend - 1)) != 4) { //#23297 + $k[$j++] = 0; //#23297 + break; //#23297 + } //#23297 + var _9g = $f(($f($get($1.msg, $1.segstart + 4) - 48) * 10) + $f($get($1.msg, $1.segstart + 5) - 48)); //#23299 + $k[$j++] = _9g; //#23299 + if ((_9g != 5) && ((_9g != 6) && (_9g != 12))) { //#23299 + $j--; //#23299 + $k[$j++] = $1.mac; //#23299 + break; //#23299 + } //#23299 + if ($get($1.msg, $1.segstart + 6) != 29) { //#23300 + $j--; //#23300 + $k[$j++] = 0; //#23300 + break; //#23300 + } //#23300 + if ($get($1.msg, $f($1.segend - 2)) != 30) { //#23301 + $j--; //#23301 + $k[$j++] = 0; //#23301 + break; //#23301 + } //#23301 + var _9o = $k[--$j]; //#23302 + $k[$j++] = _9o; //#23302 + if (_9o == 5) { //#23302 + $j--; //#23302 + $k[$j++] = $1.m05; //#23302 + break; //#23302 + } //#23302 + if ($k[--$j] == 6) { //#23303 + $k[$j++] = $1.m06; //#23303 + break; //#23303 + } //#23303 + $k[$j++] = $1.m12; //#23304 + break; //#23304 + } //#23304 + $1.inmac = $k[--$j]; //#23306 + if ($1.inmac != 0) { //#23312 + $1.mode = $1.B; //#23308 + $k[$j++] = $a([$get($1.Bvals, $1.inmac)]); //#23309 + $1.addtocws(); //#23309 + var _A3 = ($1.inmac != $1.mac) ? 7 : 6; //#23310 + $1.i = $1.i + _A3; //#23310 + break; //#23311 + } //#23311 + } //#23311 + if ($1.i == $1.segstart) { //#23324 + if ($get($1.nDigits, $1.i) >= 2) { //#23319 + $k[$j++] = $a([$get($1.Cvals, $1.fn1)]); //#23318 + $1.addtocws(); //#23318 + } //#23318 + if (($get($1.msg, $1.i) == $1.fn1) && ($get($1.nDigits, $1.i + 1) >= 2)) { //#23323 + $1.i = $1.i + 1; //#23322 + } //#23322 + } //#23322 + if ($get($1.SeventeenTen, $1.i)) { //#23334 + $k[$j++] = $a([$get($1.Cvals, $1.aim), $f(($f($get($1.msg, $1.i + 2) - 48) * 10) + $f($get($1.msg, $1.i + 3) - 48)), $f(($f($get($1.msg, $1.i + 4) - 48) * 10) + $f($get($1.msg, $1.i + 5) - 48)), $f(($f($get($1.msg, $1.i + 6) - 48) * 10) + $f($get($1.msg, $1.i + 7) - 48))]); //#23331 + $1.addtocws(); //#23331 + $1.i = $1.i + 10; //#23332 + break; //#23333 + } //#23333 + if ($get($1.DatumC, $1.i)) { //#23356 + var _Aq = $get($1.msg, $1.i); //#23336 + if ((_Aq == $1.fn1) || ((_Aq == $1.fn2) || (_Aq == $1.fn3))) { //#23352 + $k[$j++] = $a([$get($1.Cvals, $get($1.msg, $1.i))]); //#23337 + $1.addtocws(); //#23337 + if ($get($1.ECI, $1.i)) { //#23342 + $k[$j++] = Infinity; //#23339 + $1.ECIabc(); //#23339 + var _B3 = $a(); //#23339 + $k[$j++] = _B3; //#23339 + $1.addtocws(); //#23339 + $1.i = $1.i + 7; //#23340 + break; //#23341 + } //#23341 + if (($get($1.msg, $1.i) == $1.fn3) && ($1.segstart != $1.i)) { //#23349 + $1.i = $1.i + 1; //#23344 + $1.inmac = 0; //#23345 + $1.segstart = $1.i; //#23346 + $1.segend = $f($1.i + $get($1.UntilEndSeg, $1.i)); //#23347 + break; //#23348 + } //#23348 + $1.i = $1.i + 1; //#23350 + break; //#23351 + } //#23351 + $k[$j++] = $a([$f(($f($get($1.msg, $1.i) - 48) * 10) + $f($get($1.msg, $1.i + 1) - 48))]); //#23353 + $1.addtocws(); //#23353 + $1.i = $1.i + 2; //#23354 + break; //#23355 + } //#23355 + if ($get($1.Binary, $1.i)) { //#23370 + if ($get($1.nDigits, $1.i + 1) > 0) { //#23366 + if ($get($1.msg, $1.i) < 160) { //#23362 + $k[$j++] = $a([$get($1.Cvals, $1.bsa), $get($1.Avals, $f($get($1.msg, $1.i) - 128))]); //#23360 + $1.addtocws(); //#23360 + } else { //#23362 + $k[$j++] = $a([$get($1.Cvals, $1.bsb), $get($1.Bvals, $f($get($1.msg, $1.i) - 128))]); //#23362 + $1.addtocws(); //#23362 + } //#23362 + $1.i = $1.i + 1; //#23364 + break; //#23365 + } //#23365 + $k[$j++] = $a([$get($1.Cvals, $1.bin)]); //#23367 + $1.addtocws(); //#23367 + $1.mode = $1.BIN; //#23368 + break; //#23369 + } //#23369 + $1.m = $get($1.AheadA, $1.i); //#23371 + $1.n = $get($1.AheadB, $1.i); //#23371 + if ($gt($1.m, $1.n)) { //#23376 + $k[$j++] = $a([$get($1.Cvals, $1.laa)]); //#23373 + $1.addtocws(); //#23373 + $1.mode = $1.A; //#23374 + break; //#23375 + } //#23375 + if ($1.i == $1.segstart) { //#23383 + var _CE = $get($1.msg, $1.i); //#23378 + if ((_CE == 9) || ((_CE == 28) || ((_CE == 29) || (_CE == 30)))) { //#23382 + $k[$j++] = $a([$get($1.Cvals, $1.laa)]); //#23379 + $1.addtocws(); //#23379 + $1.mode = $1.A; //#23380 + break; //#23381 + } //#23381 + } //#23381 + if ($1.n > 4) { //#23388 + $k[$j++] = $a([$get($1.Cvals, $1.lab)]); //#23385 + $1.addtocws(); //#23385 + $1.mode = $1.B; //#23386 + break; //#23387 + } //#23387 + $k[$j++] = $a([$get($1.Cvals, $get($a([$1.sfb, $1.sb2, $1.sb3, $1.sb4]), $f($1.n - 1)))]); //#23389 + $1.addtocws(); //#23389 + for (var _Cb = 0, _Cc = $1.n; _Cb < _Cc; _Cb++) { //#23393 + $k[$j++] = $a([$get($1.Bvals, $get($1.msg, $1.i))]); //#23391 + $1.addtocws(); //#23391 + $1.i = $1.i + 1; //#23392 + } //#23392 + break; //#23394 + } //#23394 + }; //#23396 + $1.encB = function() { + for (var _Ck = 0, _Cl = 1; _Ck < _Cl; _Ck++) { //#23471 + $1.n = $get($1.TryC, $1.i); //#23400 + if ($1.n >= 2) { //#23418 + if ($1.n > 4) { //#23406 + $k[$j++] = $a([$get($1.Bvals, $1.lac)]); //#23403 + $1.addtocws(); //#23403 + $1.mode = $1.C; //#23404 + break; //#23405 + } //#23405 + $k[$j++] = $a([$get($1.Bvals, $get($a([$1.sfc, $1.sc2, $1.sc3, $1.sc4]), $f($1.n - 1)))]); //#23407 + $1.addtocws(); //#23407 + for (var _D7 = 0, _D8 = $1.n; _D7 < _D8; _D7++) { //#23416 + if ($get($1.msg, $1.i) < 0) { //#23414 + $k[$j++] = $a([$get($1.Cvals, $get($1.msg, $1.i))]); //#23410 + $1.addtocws(); //#23410 + $1.i = $1.i + 1; //#23411 + } else { //#23414 + $k[$j++] = $a([$f(($f($get($1.msg, $1.i) - 48) * 10) + $f($get($1.msg, $1.i + 1) - 48))]); //#23413 + $1.addtocws(); //#23413 + $1.i = $1.i + 2; //#23414 + } //#23414 + } //#23414 + break; //#23417 + } //#23417 + if ($get($1.DatumB, $1.i)) { //#23448 + var _DW = $get($1.msg, $1.i); //#23420 + if ((_DW == $1.fn1) || ((_DW == $1.fn2) || (_DW == $1.fn3))) { //#23437 + $k[$j++] = $a([$get($1.Bvals, $get($1.msg, $1.i))]); //#23421 + $1.addtocws(); //#23421 + if ($get($1.ECI, $1.i)) { //#23426 + $k[$j++] = Infinity; //#23423 + $1.ECIabc(); //#23423 + var _Dj = $a(); //#23423 + $k[$j++] = _Dj; //#23423 + $1.addtocws(); //#23423 + $1.i = $1.i + 7; //#23424 + break; //#23425 + } //#23425 + if (($get($1.msg, $1.i) == $1.fn3) && ($1.i != $1.segstart)) { //#23434 + $1.i = $1.i + 1; //#23428 + $1.mode = $1.C; //#23429 + $1.inmac = 0; //#23430 + $1.segstart = $1.i; //#23431 + $1.segend = $f($1.i + $get($1.UntilEndSeg, $1.i)); //#23432 + break; //#23433 + } //#23433 + $1.i = $1.i + 1; //#23435 + break; //#23436 + } //#23436 + if (($get($1.msg, $1.i) == 13) && ($1.i < ($1.msglen - 1))) { //#23444 + if ($get($1.msg, $1.i + 1) == 10) { //#23443 + $k[$j++] = $a([$get($1.Bvals, $1.crl)]); //#23440 + $1.addtocws(); //#23440 + $1.i = $1.i + 2; //#23441 + break; //#23442 + } //#23442 + } //#23442 + $k[$j++] = $a([$get($1.Bvals, $get($1.msg, $1.i))]); //#23445 + $1.addtocws(); //#23445 + $1.i = $1.i + 1; //#23446 + break; //#23447 + } //#23447 + if ($get($1.Binary, $1.i)) { //#23462 + if ($get($1.DatumB, $1.i + 1)) { //#23458 + if ($get($1.msg, $1.i) < 160) { //#23454 + $k[$j++] = $a([$get($1.Bvals, $1.bsa), $get($1.Avals, $f($get($1.msg, $1.i) - 128))]); //#23452 + $1.addtocws(); //#23452 + } else { //#23454 + $k[$j++] = $a([$get($1.Bvals, $1.bsb), $get($1.Bvals, $f($get($1.msg, $1.i) - 128))]); //#23454 + $1.addtocws(); //#23454 + } //#23454 + $1.i = $1.i + 1; //#23456 + break; //#23457 + } //#23457 + $k[$j++] = $a([$get($1.Bvals, $1.bin)]); //#23459 + $1.addtocws(); //#23459 + $1.mode = $1.BIN; //#23460 + break; //#23461 + } //#23461 + if ($get($1.AheadA, $1.i) == 1) { //#23467 + $k[$j++] = $a([$get($1.Bvals, $1.sfa), $get($1.Avals, $get($1.msg, $1.i))]); //#23464 + $1.addtocws(); //#23464 + $1.i = $1.i + 1; //#23465 + break; //#23466 + } //#23466 + $k[$j++] = $a([$get($1.Bvals, $1.laa)]); //#23468 + $1.addtocws(); //#23468 + $1.mode = $1.A; //#23469 + break; //#23470 + } //#23470 + }; //#23472 + $1.encA = function() { + for (var _F8 = 0, _F9 = 1; _F8 < _F9; _F8++) { //#23544 + $1.n = $get($1.TryC, $1.i); //#23476 + if ($1.n >= 2) { //#23494 + if ($1.n > 4) { //#23482 + $k[$j++] = $a([$get($1.Avals, $1.lac)]); //#23479 + $1.addtocws(); //#23479 + $1.mode = $1.C; //#23480 + break; //#23481 + } //#23481 + $k[$j++] = $a([$get($1.Avals, $get($a([$1.sfc, $1.sc2, $1.sc3, $1.sc4]), $f($1.n - 1)))]); //#23483 + $1.addtocws(); //#23483 + for (var _FV = 0, _FW = $1.n; _FV < _FW; _FV++) { //#23492 + if ($get($1.msg, $1.i) < 0) { //#23490 + $k[$j++] = $a([$get($1.Cvals, $get($1.msg, $1.i))]); //#23486 + $1.addtocws(); //#23486 + $1.i = $1.i + 1; //#23487 + } else { //#23490 + $k[$j++] = $a([$f(($f($get($1.msg, $1.i) - 48) * 10) + $f($get($1.msg, $1.i + 1) - 48))]); //#23489 + $1.addtocws(); //#23489 + $1.i = $1.i + 2; //#23490 + } //#23490 + } //#23490 + break; //#23493 + } //#23493 + if ($get($1.DatumA, $1.i)) { //#23517 + var _Fu = $get($1.msg, $1.i); //#23496 + if ((_Fu == $1.fn1) || ((_Fu == $1.fn2) || (_Fu == $1.fn3))) { //#23513 + $k[$j++] = $a([$get($1.Avals, $get($1.msg, $1.i))]); //#23497 + $1.addtocws(); //#23497 + if ($get($1.ECI, $1.i)) { //#23502 + $k[$j++] = Infinity; //#23499 + $1.ECIabc(); //#23499 + var _G7 = $a(); //#23499 + $k[$j++] = _G7; //#23499 + $1.addtocws(); //#23499 + $1.i = $1.i + 7; //#23500 + break; //#23501 + } //#23501 + if (($get($1.msg, $1.i) == $1.fn3) && ($1.i != $1.segstart)) { //#23510 + $1.i = $1.i + 1; //#23504 + $1.mode = $1.C; //#23505 + $1.inmac = 0; //#23506 + $1.segstart = $1.i; //#23507 + $1.segend = $f($1.i + $get($1.UntilEndSeg, $1.i)); //#23508 + break; //#23509 + } //#23509 + $1.i = $1.i + 1; //#23511 + break; //#23512 + } //#23512 + $k[$j++] = $a([$get($1.Avals, $get($1.msg, $1.i))]); //#23514 + $1.addtocws(); //#23514 + $1.i = $1.i + 1; //#23515 + break; //#23516 + } //#23516 + if ($get($1.Binary, $1.i)) { //#23531 + if ($get($1.DatumA, $1.i + 1)) { //#23527 + if ($get($1.msg, $1.i) < 160) { //#23523 + $k[$j++] = $a([$get($1.Avals, $1.bsa), $get($1.Avals, $f($get($1.msg, $1.i) - 128))]); //#23521 + $1.addtocws(); //#23521 + } else { //#23523 + $k[$j++] = $a([$get($1.Avals, $1.bsb), $get($1.Bvals, $f($get($1.msg, $1.i) - 128))]); //#23523 + $1.addtocws(); //#23523 + } //#23523 + $1.i = $1.i + 1; //#23525 + break; //#23526 + } //#23526 + $k[$j++] = $a([$get($1.Avals, $1.bin)]); //#23528 + $1.addtocws(); //#23528 + $1.mode = $1.BIN; //#23529 + break; //#23530 + } //#23530 + $1.n = $get($1.AheadB, $1.i); //#23532 + if ($1.n > 6) { //#23537 + $k[$j++] = $a([$get($1.Avals, $1.lab)]); //#23534 + $1.addtocws(); //#23534 + $1.mode = $1.B; //#23535 + break; //#23536 + } //#23536 + $k[$j++] = $a([$get($1.Avals, $get($a([$1.sfb, $1.sb2, $1.sb3, $1.sb4, $1.sb5, $1.sb6]), $f($1.n - 1)))]); //#23538 + $1.addtocws(); //#23538 + for (var _HN = 0, _HO = $1.n; _HN < _HO; _HN++) { //#23542 + $k[$j++] = $a([$get($1.Bvals, $get($1.msg, $1.i))]); //#23540 + $1.addtocws(); //#23540 + $1.i = $1.i + 1; //#23541 + } //#23541 + break; //#23543 + } //#23543 + }; //#23545 + $1.encBIN = function() { + for (var _HW = 0, _HX = 1; _HW < _HX; _HW++) { //#23606 + $1.n = $get($1.TryC, $1.i); //#23549 + if ($1.n >= 2) { //#23568 + $k[$j++] = Infinity; //#23551 + $1.finaliseBIN(); //#23551 + var _Hc = $a(); //#23551 + $k[$j++] = _Hc; //#23551 + $1.addtocws(); //#23551 + if ($1.n > 7) { //#23556 + var _Hi = $k[--$j]; //#23553 + $1.mode = $1.C; //#23554 + $k[$j++] = $f(_Hi + $a([$get($1.BINvals, $1.tmc)])); //#23555 + break; //#23555 + } //#23555 + $k[$j++] = $a([$get($1.BINvals, $get($a([$1.sc2, $1.sc3, $1.sc4, $1.sc5, $1.sc6, $1.sc7]), $f($1.n - 2)))]); //#23557 + $1.addtocws(); //#23557 + for (var _Hx = 0, _Hy = $1.n; _Hx < _Hy; _Hx++) { //#23566 + if ($get($1.msg, $1.i) < 0) { //#23564 + $k[$j++] = $a([$get($1.Cvals, $get($1.msg, $1.i))]); //#23560 + $1.addtocws(); //#23560 + $1.i = $1.i + 1; //#23561 + } else { //#23564 + $k[$j++] = $a([$f(($f($get($1.msg, $1.i) - 48) * 10) + $f($get($1.msg, $1.i + 1) - 48))]); //#23563 + $1.addtocws(); //#23563 + $1.i = $1.i + 2; //#23564 + } //#23564 + } //#23564 + break; //#23567 + } //#23567 + if (($get($1.ECI, $1.i) && $get($1.Binary, $1.i + 7))) { //#23574 + $k[$j++] = Infinity; //#23570 + $1.ECIbin(); //#23570 + var _IN = $a(); //#23570 + $k[$j++] = _IN; //#23570 + $1.addtocws(); //#23570 + $1.i = $1.i + 7; //#23571 + if ($1.i == $1.msglen) { //#23572 + $k[$j++] = Infinity; //#23572 + $1.finaliseBIN(); //#23572 + var _IR = $a(); //#23572 + $k[$j++] = _IR; //#23572 + $1.addtocws(); //#23572 + } //#23572 + break; //#23573 + } //#23573 + if ($get($1.msg, $1.i) >= 0) { //#23584 + if (((($get($1.Binary, $1.i) || $get($1.Binary, $1.i + 1)) || $get($1.Binary, $1.i + 2)) || $get($1.Binary, $1.i + 3)) || ($get($1.ECI, $1.i + 1) && $get($1.Binary, $1.i + 8))) { //#23583 + $k[$j++] = Infinity; //#23579 + $k[$j++] = $get($1.msg, $1.i); //#23579 + $1.addtobin(); //#23579 + var _Iq = $a(); //#23579 + $k[$j++] = _Iq; //#23579 + $1.addtocws(); //#23579 + $1.i = $1.i + 1; //#23580 + if ($1.i == $1.msglen) { //#23581 + $k[$j++] = Infinity; //#23581 + $1.finaliseBIN(); //#23581 + var _Iu = $a(); //#23581 + $k[$j++] = _Iu; //#23581 + $1.addtocws(); //#23581 + } //#23581 + break; //#23582 + } //#23582 + } //#23582 + $k[$j++] = Infinity; //#23585 + $1.finaliseBIN(); //#23585 + var _Iv = $a(); //#23585 + $k[$j++] = _Iv; //#23585 + $1.addtocws(); //#23585 + if ($1.i != ($1.msglen - 1)) { //#23604 + if (($get($1.msg, $1.i) == $1.fn3) && ($1.i != $1.segstart)) { //#23595 + $k[$j++] = $a([$get($1.BINvals, $1.tms)]); //#23588 + $1.addtocws(); //#23588 + $1.i = $1.i + 1; //#23589 + $1.mode = $1.C; //#23590 + $1.inmac = 0; //#23591 + $1.segstart = $1.i; //#23592 + $1.segend = $f($1.i + $get($1.UntilEndSeg, $1.i)); //#23593 + break; //#23594 + } //#23594 + if ($gt($get($1.AheadA, $1.i), $get($1.AheadB, $1.i))) { //#23601 + $k[$j++] = $a([$get($1.BINvals, $1.tma)]); //#23597 + $1.addtocws(); //#23597 + $1.mode = $1.A; //#23598 + } else { //#23601 + $k[$j++] = $a([$get($1.BINvals, $1.tmb)]); //#23600 + $1.addtocws(); //#23600 + $1.mode = $1.B; //#23601 + } //#23601 + break; //#23603 + } //#23603 + break; //#23605 + } //#23605 + }; //#23607 + $1.cws = $a(($1.msglen * 2) + 1); //#23609 + $1.mode = $1.C; //#23610 + $1.bvals = $a(5); //#23611 + $1.bpos = 0; //#23611 + $1.inmac = 0; //#23612 + $1.segstart = 0; //#23612 + $1.segend = $get($1.UntilEndSeg, 0); //#23612 + $1.i = 0; //#23613 + $1.j = 0; //#23613 + for (;;) { //#23626 + if ($1.i >= $1.msglen) { //#23614 + break; //#23614 + } //#23614 + if ($1.inmac != 0) { //#23624 + if (($1.inmac != $1.mac) && ($1.i == $f($1.segend - 2))) { //#23619 + $1.i = $1.i + 2; //#23617 + if ($1.i >= $1.msglen) { //#23618 + break; //#23618 + } //#23618 + } //#23618 + if (($1.inmac == $1.mac) && ($1.i == $f($1.segend - 1))) { //#23623 + $1.i = $1.i + 1; //#23621 + if ($1.i >= $1.msglen) { //#23622 + break; //#23622 + } //#23622 + } //#23622 + } //#23622 + if ($1[$get($a(['encA', 'encB', 'encC', 'encBIN']), $1.mode)]() === true) { break; - } - $j--; - } - $1.dcc = $f($1.columns - $1.mcol); - $k[$j++] = Infinity; - $k[$j++] = $1.start; - $k[$j++] = $1.mcc; - $k[$j++] = $1.acc; - $aload($1.scr); - $aload($1.dcws); - for (var _1P = 0, _1Q = $1.qcc; _1P < _1Q; _1P++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.rsseq = $a(); - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _1S = 0, _1T = 282; _1S < _1T; _1S++) { - var _1U = $k[--$j]; - $k[$j++] = _1U; - $k[$j++] = _1U * 3 % 283; - } - $1.rsalog = $a(); - $1.rslog = $a(283); - for (var _1X = 1; _1X <= 282; _1X += 1) { - $put($1.rslog, $get($1.rsalog, _1X), _1X); - } + } //#23625 + } //#23625 + $1.cws = $geti($1.cws, 0, $1.j); //#23627 + $1.nd = $1.cws.length; //#23630 + $1.minarea = (((($1.nd + 3) + (~~($1.nd / 2))) * 9) + 2) * 2; //#23631 + if ($1.ratio != -1) { //#23659 + $1.hgt = Math.sqrt($1.minarea / $1.ratio); //#23633 + $1.wid = Math.sqrt($1.minarea * $1.ratio); //#23634 + $1.h = ~~$1.hgt; //#23635 + $1.w = ~~$1.wid; //#23635 + if ((($1.h + $1.w) % 2) == 1) { //#23649 + if (($1.h * $1.w) < $1.minarea) { //#23637 + $1.h = $1.h + 1; //#23637 + $1.w = $1.w + 1; //#23637 + } //#23637 + } else { //#23649 + if (($1.hgt * $1.w) < ($1.wid * $1.h)) { //#23649 + $1.w = $1.w + 1; //#23640 + if (($1.h * $1.w) < $1.minarea) { //#23644 + $1.w = $1.w - 1; //#23642 + $1.h = $1.h + 1; //#23642 + if (($1.h * $1.w) < $1.minarea) { //#23643 + $1.w = $1.w + 2; //#23643 + } //#23643 + } //#23643 + } else { //#23649 + $1.h = $1.h + 1; //#23646 + if (($1.h * $1.w) < $1.minarea) { //#23650 + $1.h = $1.h - 1; //#23648 + $1.w = $1.w + 1; //#23648 + if (($1.h * $1.w) < $1.minarea) { //#23649 + $1.h = $1.h + 2; //#23649 + } //#23649 + } //#23649 + } //#23649 + } //#23649 + $1.rows = $1.h; //#23653 + $1.columns = $1.w; //#23653 + } else { //#23659 + if ($1.columns == -1) { //#23657 + var _Kk = ~~((($1.minarea + $1.rows) - 1) / $1.rows); //#23656 + $k[$j++] = 'columns'; //#23656 + $k[$j++] = _Kk; //#23656 + if (((_Kk + $1.rows) % 2) == 0) { //#23656 + var _Km = $k[--$j]; //#23656 + $k[$j++] = $f(_Km + 1); //#23656 + } //#23656 + var _Kn = $k[--$j]; //#23656 + $1[$k[--$j]] = _Kn; //#23656 + } //#23656 + if ($1.rows == -1) { //#23660 + var _Kt = ~~((($1.minarea + $1.columns) - 1) / $1.columns); //#23659 + $k[$j++] = 'rows'; //#23659 + $k[$j++] = _Kt; //#23659 + if (((_Kt + $1.columns) % 2) == 0) { //#23659 + var _Kv = $k[--$j]; //#23659 + $k[$j++] = $f(_Kv + 1); //#23659 + } //#23659 + var _Kw = $k[--$j]; //#23659 + $1[$k[--$j]] = _Kw; //#23659 + } //#23659 + } //#23659 + $1.ndots = ~~(($1.rows * $1.columns) / 2); //#23664 + for (;;) { //#23668 + var _L1 = $1.nd + 1; //#23666 + if ((((_L1 + ((~~(_L1 / 2)) + 3)) * 9) + 2) > $1.ndots) { //#23666 + break; //#23666 + } //#23666 + $1.nd = $1.nd + 1; //#23667 + } //#23667 + $1.nc = (~~($1.nd / 2)) + 3; //#23669 + $1.nw = $1.nd + $1.nc; //#23670 + $1.rembits = $1.ndots - (($1.nw * 9) + 2); //#23671 + if ($1.nd > $1.cws.length) { //#23678 + $k[$j++] = Infinity; //#23676 + $aload($1.cws); //#23674 + var _LE = ($1.mode == $1.BIN) ? 109 : 106; //#23675 + $k[$j++] = _LE; //#23676 + for (var _LH = 0, _LI = ($1.nd - $1.cws.length) - 1; _LH < _LI; _LH++) { //#23676 + $k[$j++] = 106; //#23676 + } //#23676 + $1.cws = $a(); //#23676 + } //#23677 + $1.encs = $a(["101010101", "010101011", "010101101", "010110101", "011010101", "101010110", "101011010", "101101010", "110101010", "010101110", "010110110", "010111010", "011010110", "011011010", "011101010", "100101011", "100101101", "100110101", "101001011", "101001101", "101010011", "101011001", "101100101", "101101001", "110010101", "110100101", "110101001", "001010111", "001011011", "001011101", "001101011", "001101101", "001110101", "010010111", "010011011", "010011101", "010100111", "010110011", "010111001", "011001011", "011001101", "011010011", "011011001", "011100101", "011101001", "100101110", "100110110", "100111010", "101001110", "101011100", "101100110", "101101100", "101110010", "101110100", "110010110", "110011010", "110100110", "110101100", "110110010", "110110100", "111001010", "111010010", "111010100", "001011110", "001101110", "001110110", "001111010", "010011110", "010111100", "011001110", "011011100", "011100110", "011101100", "011110010", "011110100", "100010111", "100011011", "100011101", "100100111", "100110011", "100111001", "101000111", "101100011", "101110001", "110001011", "110001101", "110010011", "110011001", "110100011", "110110001", "111000101", "111001001", "111010001", "000101111", "000110111", "000111011", "000111101", "001001111", "001100111", "001110011", "001111001", "010001111", "011000111", "011100011", "011110001", "100011110", "100111100", "101111000", "110001110", "110011100", "110111000", "111000110", "111001100"]); //#23705 + if (($1.rows % 2) == 0) { //#23725 + $1.sixedges = $a([$a([$1.columns - 1, $1.rows - 2]), $a([0, $1.rows - 2]), $a([$1.columns - 2, $1.rows - 1]), $a([1, $1.rows - 1]), $a([$1.columns - 1, 0]), $a([0, 0])]); //#23716 + } else { //#23725 + $1.sixedges = $a([$a([$1.columns - 2, 0]), $a([$1.columns - 2, $1.rows - 1]), $a([$1.columns - 1, 1]), $a([$1.columns - 1, $1.rows - 2]), $a([0, 0]), $a([0, $1.rows - 1])]); //#23725 + } //#23725 + $1.dmv = function() { + var _Lp = $k[--$j]; //#23728 + var _Lq = $k[--$j]; //#23728 + $k[$j++] = $f(_Lq + (_Lp * $1.columns)); //#23728 + }; //#23728 + $1.outline = $a($1.rows * $1.columns); //#23731 + for (var _Lw = 0, _Lv = $1.rows - 1; _Lw <= _Lv; _Lw += 1) { //#23738 + $1.y = _Lw; //#23733 + for (var _Lz = 0, _Ly = $1.columns - 1; _Lz <= _Ly; _Lz += 1) { //#23737 + $1.x = _Lz; //#23735 + $k[$j++] = $1.outline; //#23736 + $k[$j++] = $1.x; //#23736 + $k[$j++] = $1.y; //#23736 + $1.dmv(); //#23736 + var _M5 = $k[--$j]; //#23736 + $put($k[--$j], _M5, (($1.x + $1.y) % 2) - 1); //#23736 + } //#23736 + } //#23736 + var _M7 = $1.sixedges; //#23739 + for (var _M8 = 0, _M9 = _M7.length; _M8 < _M9; _M8++) { //#23741 + $k[$j++] = $1.outline; //#23740 + $aload($get(_M7, _M8)); //#23740 + $1.dmv(); //#23740 + var _MC = $k[--$j]; //#23740 + $put($k[--$j], _MC, 1); //#23740 + } //#23740 + $1.clearcol = function() { + $1.x = $k[--$j]; //#23744 + $k[$j++] = true; //#23748 + for (var _MI = $1.x & 1, _MH = $1.rows - 1; _MI <= _MH; _MI += 2) { //#23748 + $k[$j++] = $1.x; //#23747 + $k[$j++] = _MI; //#23747 + $1.dmv(); //#23747 + if ($get($1.sym, $k[--$j]) == 1) { //#23747 + $j--; //#23747 + $k[$j++] = false; //#23747 + break; //#23747 + } //#23747 + } //#23747 + }; //#23749 + $1.clearrow = function() { + $1.y = $k[--$j]; //#23752 + $k[$j++] = true; //#23756 + for (var _MR = $1.y & 1, _MQ = $1.columns - 1; _MR <= _MQ; _MR += 2) { //#23756 + $k[$j++] = _MR; //#23755 + $k[$j++] = $1.y; //#23755 + $1.dmv(); //#23755 + if ($get($1.sym, $k[--$j]) == 1) { //#23755 + $j--; //#23755 + $k[$j++] = false; //#23755 + break; //#23755 + } //#23755 + } //#23755 + }; //#23757 + $1.evalsymbol = function() { + $1.sym = $k[--$j]; //#23761 + $1.worst = 9999999; //#23764 + var _Mb = $a([$a(['x', 0]), $a(['x', 1]), $a(['y', 0]), $a(['y', 1])]); //#23765 + for (var _Mc = 0, _Md = _Mb.length; _Mc < _Md; _Mc++) { //#23783 + $aload($get(_Mb, _Mc)); //#23766 + $1.fl = $k[--$j]; //#23766 + $1.dir = $k[--$j]; //#23766 + $1.sum = 0; //#23767 + $1.first = -1; //#23767 + $1.last = -1; //#23767 + var _Mi = $eq($1.dir, 'x') ? $1.columns : $1.rows; //#23768 + for (var _Mk = 0, _Mj = _Mi - 1; _Mk <= _Mj; _Mk += 1) { //#23779 + $1[$1.dir] = _Mk; //#23769 + var _Mm = $1.sym; //#23770 + var _Mo = $1[$1.dir]; //#23771 + var _Mq = $eq($1.dir, 'x') ? $1.rows : $1.columns; //#23772 + var _Mt = (_Mq - 1) * $1.fl; //#23773 + if ($eq($1.dir, 'y')) { //#23773 + var _ = _Mt; //#23773 + _Mt = _Mo; //#23773 + _Mo = _; //#23773 + } //#23773 + $k[$j++] = _Mm; //#23774 + $k[$j++] = _Mo; //#23774 + $k[$j++] = _Mt; //#23774 + $1.dmv(); //#23774 + var _Mu = $k[--$j]; //#23774 + if ($get($k[--$j], _Mu) == 1) { //#23778 + if ($1.first == -1) { //#23775 + $1.first = $1[$1.dir]; //#23775 + } //#23775 + $1.last = $1[$1.dir]; //#23776 + $1.sum = $1.sum + 1; //#23777 + } //#23777 + } //#23777 + var _N7 = $eq($1.dir, 'x') ? $1.rows : $1.columns; //#23781 + var _N8 = ($f($f($1.sum + $1.last) - $1.first)) * _N7; //#23782 + $k[$j++] = _N8; //#23782 + if (_N8 < $1.worst) { //#23782 + $1.worst = $k[--$j]; //#23782 + } else { //#23782 + $j--; //#23782 + } //#23782 + } //#23782 + $1.pen = 0; //#23785 + if ((($1.rows % 2) == 1) || ($1.rows <= 12)) { //#23803 + $1.sum = 0; //#23791 + $1.p = 0; //#23791 + for (var _NF = 1, _NE = $1.columns - 2; _NF <= _NE; _NF += 1) { //#23801 + $k[$j++] = _NF; //#23793 + $1.clearcol(); //#23793 + if ($k[--$j]) { //#23799 + $1.sum = $1.sum + 1; //#23794 + $k[$j++] = 'p'; //#23795 + if ($1.sum == 1) { //#23795 + $k[$j++] = $1.rows; //#23795 + } else { //#23795 + $k[$j++] = $1.p * $1.rows; //#23795 + } //#23795 + var _NM = $k[--$j]; //#23795 + $1[$k[--$j]] = _NM; //#23795 + } else { //#23799 + $1.sum = 0; //#23797 + $1.pen = $1.pen + $1.p; //#23798 + $1.p = 0; //#23799 + } //#23799 + } //#23799 + $1.pen = $1.pen + $1.p; //#23802 + } //#23802 + if ((($1.rows % 2) == 0) || ($1.columns <= 12)) { //#23821 + $1.sum = 0; //#23809 + $1.p = 0; //#23809 + for (var _NW = 1, _NV = $1.rows - 2; _NW <= _NV; _NW += 1) { //#23819 + $k[$j++] = _NW; //#23811 + $1.clearrow(); //#23811 + if ($k[--$j]) { //#23817 + $1.sum = $1.sum + 1; //#23812 + $k[$j++] = 'p'; //#23813 + if ($1.sum == 1) { //#23813 + $k[$j++] = $1.columns; //#23813 + } else { //#23813 + $k[$j++] = $1.p * $1.columns; //#23813 + } //#23813 + var _Nd = $k[--$j]; //#23813 + $1[$k[--$j]] = _Nd; //#23813 + } else { //#23817 + $1.sum = 0; //#23815 + $1.pen = $1.pen + $1.p; //#23816 + $1.p = 0; //#23817 + } //#23817 + } //#23817 + $1.pen = $1.pen + $1.p; //#23820 + } //#23820 + $k[$j++] = Infinity; //#23831 + for (var _Nk = 0, _Nl = ($1.columns + 4) * 2; _Nk < _Nl; _Nk++) { //#23825 + $k[$j++] = 0; //#23825 + } //#23825 + for (var _Np = 0, _Nq = $1.columns, _No = $1.sym.length - 1; _Nq < 0 ? _Np >= _No : _Np <= _No; _Np += _Nq) { //#23830 + $k[$j++] = 0; //#23828 + $k[$j++] = 0; //#23828 + $aload($geti($1.sym, _Np, $1.columns)); //#23828 + $k[$j++] = 0; //#23829 + $k[$j++] = 0; //#23829 + } //#23829 + for (var _Nv = 0, _Nw = ($1.columns + 4) * 2; _Nv < _Nw; _Nv++) { //#23831 + $k[$j++] = 0; //#23831 + } //#23831 + $1.symp = $a(); //#23831 + $1.columns = $1.columns + 4; //#23835 + $1.rows = $1.rows + 4; //#23836 + $1.sum = 0; //#23837 + for (var _O2 = 2, _O1 = $1.rows - 3; _O2 <= _O1; _O2 += 1) { //#23855 + $1.y = _O2; //#23839 + for (var _O6 = ($1.y & 1) + 2, _O5 = $1.columns - 3; _O6 <= _O5; _O6 += 2) { //#23854 + $1.x = _O6; //#23841 + for (var _O7 = 0, _O8 = 1; _O7 < _O8; _O7++) { //#23853 + $k[$j++] = $1.symp; //#23843 + $k[$j++] = $1.x - 1; //#23843 + $k[$j++] = $1.y - 1; //#23843 + $1.dmv(); //#23843 + var _OC = $k[--$j]; //#23843 + if ($get($k[--$j], _OC) == 1) { //#23843 + break; //#23843 + } //#23843 + $k[$j++] = $1.symp; //#23844 + $k[$j++] = $1.x + 1; //#23844 + $k[$j++] = $1.y - 1; //#23844 + $1.dmv(); //#23844 + var _OI = $k[--$j]; //#23844 + if ($get($k[--$j], _OI) == 1) { //#23844 + break; //#23844 + } //#23844 + $k[$j++] = $1.symp; //#23845 + $k[$j++] = $1.x - 1; //#23845 + $k[$j++] = $1.y + 1; //#23845 + $1.dmv(); //#23845 + var _OO = $k[--$j]; //#23845 + if ($get($k[--$j], _OO) == 1) { //#23845 + break; //#23845 + } //#23845 + $k[$j++] = $1.symp; //#23846 + $k[$j++] = $1.x + 1; //#23846 + $k[$j++] = $1.y + 1; //#23846 + $1.dmv(); //#23846 + var _OU = $k[--$j]; //#23846 + if ($get($k[--$j], _OU) == 1) { //#23846 + break; //#23846 + } //#23846 + $k[$j++] = $1.symp; //#23847 + $k[$j++] = $1.x; //#23847 + $k[$j++] = $1.y; //#23847 + $1.dmv(); //#23847 + var _Oa = $k[--$j]; //#23847 + if ($get($k[--$j], _Oa) == 0) { //#23847 + $1.sum = $1.sum + 1; //#23847 + break; //#23847 + } //#23847 + $k[$j++] = $1.symp; //#23848 + $k[$j++] = $1.x - 2; //#23848 + $k[$j++] = $1.y; //#23848 + $1.dmv(); //#23848 + var _Oh = $k[--$j]; //#23848 + if ($get($k[--$j], _Oh) == 1) { //#23848 + break; //#23848 + } //#23848 + $k[$j++] = $1.symp; //#23849 + $k[$j++] = $1.x; //#23849 + $k[$j++] = $1.y - 2; //#23849 + $1.dmv(); //#23849 + var _On = $k[--$j]; //#23849 + if ($get($k[--$j], _On) == 1) { //#23849 + break; //#23849 + } //#23849 + $k[$j++] = $1.symp; //#23850 + $k[$j++] = $1.x + 2; //#23850 + $k[$j++] = $1.y; //#23850 + $1.dmv(); //#23850 + var _Ot = $k[--$j]; //#23850 + if ($get($k[--$j], _Ot) == 1) { //#23850 + break; //#23850 + } //#23850 + $k[$j++] = $1.symp; //#23851 + $k[$j++] = $1.x; //#23851 + $k[$j++] = $1.y + 2; //#23851 + $1.dmv(); //#23851 + var _Oz = $k[--$j]; //#23851 + if ($get($k[--$j], _Oz) == 1) { //#23851 + break; //#23851 + } //#23851 + $1.sum = $1.sum + 1; //#23852 + } //#23852 + } //#23852 + } //#23852 + $1.columns = $1.columns - 4; //#23856 + $1.rows = $1.rows - 4; //#23857 + if ($1.worst == 0) { //#23862 + $k[$j++] = -99999; //#23860 + } else { //#23862 + $k[$j++] = $f(($f($1.worst - ($1.sum * $1.sum))) - $1.pen); //#23862 + } //#23862 + }; //#23865 + $k[$j++] = Infinity; //#23868 + $k[$j++] = 1; //#23868 + for (var _PA = 0, _PB = 112; _PA < _PB; _PA++) { //#23868 + var _PC = $k[--$j]; //#23868 + $k[$j++] = _PC; //#23868 + $k[$j++] = (_PC * 3) % 113; //#23868 + } //#23868 + $1.rsalog = $a(); //#23868 + $1.step = (~~($1.nw / 112)) + 1; //#23869 + $1.offset = function() { + var _PG = $k[--$j]; //#23870 + $k[$j++] = $f((_PG * $1.step) + $1.start); //#23870 + }; //#23870 + $1.bestscore = -99999999; //#23878 + $k[$j++] = 'masks'; //#23883 + if ($1.mask != -1) { //#23882 + $k[$j++] = $a([$1.mask]); //#23880 + } else { //#23882 + if ($1.fast) { //#23882 + $k[$j++] = $a([3, 2, 1, 0]); //#23882 + } else { //#23882 + $k[$j++] = $a([0, 1, 2, 3]); //#23882 + } //#23882 + } //#23882 + var _PO = $k[--$j]; //#23883 + $1[$k[--$j]] = _PO; //#23883 + $1.litmasks = $a(4); //#23884 + $forall($1.masks, function() { //#23986 + $1.mask = $k[--$j]; //#23887 + $k[$j++] = Infinity; //#23893 + var _PX = $1.cws; //#23892 + $k[$j++] = $1.mask; //#23892 + $k[$j++] = $get($a([0, 3, 7, 17]), $1.mask); //#23892 + $k[$j++] = 0; //#23892 + for (var _PY = 0, _PZ = _PX.length; _PY < _PZ; _PY++) { //#23892 + var _Pb = $k[--$j]; //#23892 + var _Pc = $k[--$j]; //#23892 + $k[$j++] = $f($get(_PX, _PY) + _Pb) % 113; //#23892 + $k[$j++] = _Pc; //#23892 + $k[$j++] = $f(_Pb + _Pc); //#23892 + } //#23892 + $j -= 2; //#23892 + for (var _Pe = 0, _Pf = $1.nc; _Pe < _Pf; _Pe++) { //#23893 + $k[$j++] = 0; //#23893 + } //#23893 + $1.rscws = $a(); //#23893 + for (var _Pj = 0, _Pi = $1.step - 1; _Pj <= _Pi; _Pj += 1) { //#23917 + $1.start = _Pj; //#23896 + $1.ND = ~~((((($1.nd + 1) - $1.start) + $1.step) - 1) / $1.step); //#23897 + $1.NW = ~~((((($1.nw + 1) - $1.start) + $1.step) - 1) / $1.step); //#23898 + $1.NC = $1.NW - $1.ND; //#23899 + $k[$j++] = Infinity; //#23900 + $k[$j++] = 1; //#23900 + for (var _Pv = 0, _Pw = $1.NC; _Pv < _Pw; _Pv++) { //#23900 + $k[$j++] = 0; //#23900 + } //#23900 + $1.coeffs = $a(); //#23900 + for (var _Q0 = 1, _Pz = $1.NC; _Q0 <= _Pz; _Q0 += 1) { //#23907 + $1.i = _Q0; //#23902 + for (var _Q2 = $1.NC; _Q2 >= 1; _Q2 -= 1) { //#23906 + $1.j = _Q2; //#23904 + $put($1.coeffs, $1.j, ($f($f($get($1.coeffs, $1.j) + 113) - (($get($1.rsalog, $1.i) * $get($1.coeffs, $1.j - 1)) % 113))) % 113); //#23905 + } //#23905 + } //#23905 + for (var _QG = 0, _QF = $1.ND - 1; _QG <= _QF; _QG += 1) { //#23915 + $k[$j++] = 't'; //#23909 + $k[$j++] = $1.rscws; //#23909 + $k[$j++] = _QG; //#23909 + $1.offset(); //#23909 + var _QI = $k[--$j]; //#23909 + var _QK = $get($k[--$j], _QI); //#23909 + $k[$j++] = _QK; //#23909 + $k[$j++] = $1.rscws; //#23909 + $k[$j++] = $1.ND; //#23909 + $1.offset(); //#23909 + var _QN = $k[--$j]; //#23909 + var _QP = $get($k[--$j], _QN); //#23909 + var _QQ = $k[--$j]; //#23909 + $1[$k[--$j]] = $f(_QQ + _QP) % 113; //#23909 + for (var _QU = 0, _QT = $1.NC - 2; _QU <= _QT; _QU += 1) { //#23913 + $1.j = _QU; //#23911 + $k[$j++] = $1.rscws; //#23912 + $k[$j++] = $1.ND + $1.j; //#23912 + $1.offset(); //#23912 + $k[$j++] = $1.rscws; //#23912 + $k[$j++] = ($1.ND + $1.j) + 1; //#23912 + $1.offset(); //#23912 + var _Qb = $k[--$j]; //#23912 + var _Qd = $get($k[--$j], _Qb); //#23912 + var _Qi = $k[--$j]; //#23912 + $put($k[--$j], _Qi, ($f($f(_Qd + 113) - (($1.t * $get($1.coeffs, $1.j + 1)) % 113))) % 113); //#23912 + } //#23912 + $k[$j++] = $1.rscws; //#23914 + $k[$j++] = ($1.ND + $1.NC) - 1; //#23914 + $1.offset(); //#23914 + var _Qr = $k[--$j]; //#23914 + $put($k[--$j], _Qr, ($f(113 - (($1.t * $get($1.coeffs, $1.NC)) % 113))) % 113); //#23914 + } //#23914 + for (var _Qw = $1.ND, _Qv = $1.NW - 1; _Qw <= _Qv; _Qw += 1) { //#23916 + $k[$j++] = _Qw; //#23916 + $k[$j++] = $1.rscws; //#23916 + $k[$j++] = _Qw; //#23916 + $1.offset(); //#23916 + var _Qz = $k[--$j]; //#23916 + var _R0 = $k[--$j]; //#23916 + var _R1 = $k[--$j]; //#23916 + $k[$j++] = _R0; //#23916 + $k[$j++] = _Qz; //#23916 + $k[$j++] = 113; //#23916 + $k[$j++] = $1.rscws; //#23916 + $k[$j++] = _R1; //#23916 + $1.offset(); //#23916 + var _R2 = $k[--$j]; //#23916 + var _R4 = $get($k[--$j], _R2); //#23916 + var _R5 = $k[--$j]; //#23916 + var _R6 = $k[--$j]; //#23916 + $put($k[--$j], _R6, $f(_R5 - _R4) % 113); //#23916 + } //#23916 + } //#23916 + $1.bits = $s($1.ndots); //#23920 + $puti($1.bits, 0, $get($a(["00", "01", "10", "11"]), $1.mask)); //#23921 + for (var _RG = 1, _RF = $1.nw; _RG <= _RF; _RG += 1) { //#23925 + $1.i = _RG; //#23923 + $puti($1.bits, (($1.i - 1) * 9) + 2, $get($1.encs, $get($1.rscws, $1.i))); //#23924 + } //#23924 + if ($1.rembits > 0) { //#23928 + $puti($1.bits, ($1.nw * 9) + 2, $geti("11111111111111111", 0, $1.rembits)); //#23927 + } //#23927 + var _RT = $1.outline; //#23931 + $1.pixs = $arrcpy($a(_RT.length), _RT); //#23931 + $1.posx = 0; //#23932 + $k[$j++] = 'posy'; //#23933 + if (($1.rows % 2) == 0) { //#23933 + $k[$j++] = 0; //#23933 + } else { //#23933 + $k[$j++] = $1.rows - 1; //#23933 + } //#23933 + var _RY = $k[--$j]; //#23933 + $1[$k[--$j]] = _RY; //#23933 + var _Rc = $geti($1.bits, 0, $1.bits.length - 6); //#23934 + for (var _Rd = 0, _Re = _Rc.length; _Rd < _Re; _Rd++) { //#23952 + $k[$j++] = $get(_Rc, _Rd); //#23950 + for (;;) { //#23950 + $k[$j++] = $1.pixs; //#23936 + $k[$j++] = $1.posx; //#23936 + $k[$j++] = $1.posy; //#23936 + $1.dmv(); //#23936 + var _Rj = $k[--$j]; //#23936 + if ($get($k[--$j], _Rj) == -1) { //#23936 + break; //#23936 + } //#23936 + if (($1.rows % 2) == 0) { //#23947 + $1.posy = $1.posy + 1; //#23938 + if ($1.posy == $1.rows) { //#23942 + $1.posy = 0; //#23940 + $1.posx = $1.posx + 1; //#23941 + } //#23941 + } else { //#23947 + $1.posx = $1.posx + 1; //#23944 + if ($1.posx == $1.columns) { //#23948 + $1.posx = 0; //#23946 + $1.posy = $1.posy - 1; //#23947 + } //#23947 + } //#23947 + } //#23947 + $k[$j++] = $1.pixs; //#23951 + $k[$j++] = $1.posx; //#23951 + $k[$j++] = $1.posy; //#23951 + $1.dmv(); //#23951 + var _Ry = $k[--$j]; //#23951 + var _Rz = $k[--$j]; //#23951 + $put(_Rz, _Ry, $f($k[--$j] - 48)); //#23951 + } //#23951 + for (var _S1 = 0; _S1 <= 5; _S1 += 1) { //#23957 + $1.i = _S1; //#23954 + $k[$j++] = $1.pixs; //#23955 + $aload($get($1.sixedges, $1.i)); //#23955 + $1.dmv(); //#23955 + var _SA = $k[--$j]; //#23956 + $put($k[--$j], _SA, $get($1.bits, ($1.bits.length - 6) + $1.i) - 48); //#23956 + } //#23956 + $k[$j++] = 'score'; //#23960 + $k[$j++] = $1.pixs; //#23960 + $1.evalsymbol(); //#23960 + var _SD = $k[--$j]; //#23960 + $1[$k[--$j]] = _SD; //#23960 + if ($1.score > $1.bestscore) { //#23965 + $1.bestsym = $1.pixs; //#23962 + $1.bestscore = $1.score; //#23963 + if ($1.fast && ($1.bestscore > (~~(($1.rows * $1.columns) / 2)))) { //#23964 + return true; //#23964 + } //#23964 + } //#23964 + var _SN = $1.pixs; //#23968 + $1.litmask = $arrcpy($a(_SN.length), _SN); //#23968 + for (var _SQ = 0; _SQ <= 5; _SQ += 1) { //#23973 + $1.i = _SQ; //#23970 + $k[$j++] = $1.litmask; //#23971 + $aload($get($1.sixedges, $1.i)); //#23971 + $1.dmv(); //#23971 + var _SV = $k[--$j]; //#23972 + $put($k[--$j], _SV, 1); //#23972 + } //#23972 + $put($1.litmasks, $1.mask, $1.litmask); //#23974 + if ($1.fast) { //#23984 + $k[$j++] = 'score'; //#23978 + $k[$j++] = $1.litmask; //#23978 + $1.evalsymbol(); //#23978 + var _Sc = $k[--$j]; //#23978 + $1[$k[--$j]] = _Sc; //#23978 + if ($gt($1.score, $1.bestscore)) { //#23983 + $1.bestsym = $1.litmask; //#23980 + $1.bestscore = $1.score; //#23981 + if ($1.bestscore > (~~(($1.rows * $1.columns) / 2))) { //#23982 + return true; //#23982 + } //#23982 + } //#23982 + } //#23982 + }); //#23982 + $1.pixs = $1.bestsym; //#23987 + if ((!$1.fast) && ($1.bestscore <= (~~(($1.rows * $1.columns) / 2)))) { //#24001 + $1.bestscore = -99999999; //#23991 + $forall($1.masks, function() { //#23999 + $1.litmask = $get($1.litmasks, $k[--$j]); //#23993 + $k[$j++] = 'score'; //#23994 + $k[$j++] = $1.litmask; //#23994 + $1.evalsymbol(); //#23994 + var _Sv = $k[--$j]; //#23994 + $1[$k[--$j]] = _Sv; //#23994 + if ($1.score > $1.bestscore) { //#23998 + $1.bestsym = $1.litmask; //#23996 + $1.bestscore = $1.score; //#23997 + } //#23997 + }); //#23997 + $1.pixs = $1.bestsym; //#24000 + } //#24000 + var _T8 = new Map([ + ["ren", $0.renmatrix], + ["dotty", true], + ["pixs", $1.pixs], + ["pixx", $1.columns], + ["pixy", $1.rows], + ["height", ($1.rows * 2) / 72], + ["width", ($1.columns * 2) / 72], + ["opt", $1.options] + ]); //#24012 + $k[$j++] = _T8; //#24015 + if (!$1.dontdraw) { //#24015 + $0.renmatrix(); //#24015 + } //#24015 + }; + $0.ultracode = function() { + var $1 = {}; //#24045 + $1.options = $k[--$j]; //#24047 + $1.barcode = $k[--$j]; //#24048 + $1.dontdraw = false; //#24050 + $1.eclevel = "EC2"; //#24051 + $1.parse = false; //#24052 + $1.parsefnc = false; //#24053 + $forall($1.options, function() { //#24064 + var _3 = $k[--$j]; //#24064 + $1[$k[--$j]] = _3; //#24064 + }); //#24064 + $1.fn1 = -1; //#24067 + $1.fn3 = -2; //#24067 + var _9 = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["FNC1", $1.fn1], + ["FNC3", $1.fn3] + ]); //#24072 + $1.fncvals = _9; //#24073 + $k[$j++] = 'msg'; //#24074 + $k[$j++] = $1.barcode; //#24074 + $k[$j++] = $1.fncvals; //#24074 + $0.parseinput(); //#24074 + var _C = $k[--$j]; //#24074 + $1[$k[--$j]] = _C; //#24074 + $1.msglen = $1.msg.length; //#24075 + $1.start = 257; //#24078 + $1.scr = $a([]); //#24079 + $1.link1 = 0; //#24080 + $1.scp = $a([]); //#24081 + $k[$j++] = Infinity; //#24087 + $aload($1.scr); //#24083 + $aload($1.scp); //#24084 + $forall($1.msg, function() { //#24088 + var _K = $k[--$j]; //#24086 + $k[$j++] = _K; //#24086 + if (_K == $1.fn1) { //#24086 + $j--; //#24086 + $k[$j++] = 268; //#24086 + } //#24086 + var _M = $k[--$j]; //#24087 + $k[$j++] = _M; //#24087 + if (_M == $1.fn3) { //#24087 + $j--; //#24087 + $k[$j++] = 269; //#24087 + } //#24087 + }); //#24087 + $1.dcws = $a(); //#24087 + $1.mcc = $1.dcws.length + 3; //#24090 + $1.eclval = $get($1.eclevel, 2) - 48; //#24092 + if ($1.eclval != 0) { //#24096 + $k[$j++] = 'qcc'; //#24094 + $k[$j++] = $get($a([0, 1, 2, 4, 6, 8]), $1.eclval); //#24094 + $k[$j++] = ~~($1.mcc / 25); //#24094 + if (($1.mcc % 25) != 0) { //#24094 + var _Y = $k[--$j]; //#24094 + $k[$j++] = $f(_Y + 1); //#24094 + } //#24094 + var _Z = $k[--$j]; //#24094 + var _a = $k[--$j]; //#24094 + $1[$k[--$j]] = $f((_a * _Z) + 5); //#24094 + } else { //#24096 + $1.qcc = 3; //#24096 + } //#24096 + $1.acc = ($1.qcc - 3) + (78 * $1.link1); //#24098 + $1.tcc = $1.mcc + $1.qcc; //#24099 + $1.metrics = $a([$a([2, 4, 34, 5]), $a([3, 33, 82, 13]), $a([4, 82, 158, 23]), $a([5, 134, 282, 30])]); //#24109 + for (var _l = 0; _l <= 3; _l += 1) { //#24120 + $1.i = _l; //#24111 + $1.m = $get($1.metrics, $1.i); //#24112 + $1.rows = $get($1.m, 0); //#24113 + $1.minc = $get($1.m, 1); //#24114 + $1.maxc = $get($1.m, 2); //#24115 + $1.mcol = $get($1.m, 3); //#24116 + $1.okay = true; //#24117 + if (($1.tcc < $1.minc) || ($1.tcc > $1.maxc)) { //#24118 + $1.okay = false; //#24118 + } //#24118 + if ($1.okay) { //#24119 + break; //#24119 + } //#24119 + } //#24119 + if (!$1.okay) { //#24124 + $k[$j++] = 'bwipp.ultracodeNoValidSymbol'; //#24123 + $k[$j++] = "No valid symbol available"; //#24123 + $0.raiseerror(); //#24123 + } //#24123 + for (var _14 = $1.mcol; _14 <= 61; _14 += 1) { //#24138 + $1.columns = _14; //#24128 + $k[$j++] = $1.columns; //#24130 + if ($1.columns >= 15) { //#24130 + var _17 = $k[--$j]; //#24130 + $k[$j++] = $f(_17 - 1); //#24130 + } //#24130 + if ($1.columns >= 31) { //#24131 + var _19 = $k[--$j]; //#24131 + $k[$j++] = $f(_19 - 1); //#24131 + } //#24131 + if ($1.columns >= 47) { //#24132 + var _1B = $k[--$j]; //#24132 + $k[$j++] = $f(_1B - 1); //#24132 + } //#24132 + var _1F = $f(($f(($k[--$j] * $1.rows) - 3)) - $1.tcc); //#24133 + $k[$j++] = _1F; //#24136 + if (_1F >= 0) { //#24136 + $1.pads = $k[--$j]; //#24134 + break; //#24135 + } //#24135 + $j--; //#24137 + } //#24137 + $1.dcc = $f($1.columns - $1.mcol); //#24139 + $k[$j++] = Infinity; //#24149 + $k[$j++] = $1.start; //#24146 + $k[$j++] = $1.mcc; //#24146 + $k[$j++] = $1.acc; //#24146 + $aload($1.scr); //#24146 + $aload($1.dcws); //#24147 + for (var _1P = 0, _1Q = $1.qcc; _1P < _1Q; _1P++) { //#24148 + $k[$j++] = 0; //#24148 + } //#24148 + $k[$j++] = 0; //#24149 + $1.rsseq = $a(); //#24149 + $k[$j++] = Infinity; //#24153 + $k[$j++] = 1; //#24153 + for (var _1S = 0, _1T = 282; _1S < _1T; _1S++) { //#24153 + var _1U = $k[--$j]; //#24153 + $k[$j++] = _1U; //#24153 + $k[$j++] = (_1U * 3) % 283; //#24153 + } //#24153 + $1.rsalog = $a(); //#24153 + $1.rslog = $a(283); //#24154 + for (var _1X = 1; _1X <= 282; _1X += 1) { //#24155 + $put($1.rslog, $get($1.rsalog, _1X), _1X); //#24155 + } //#24155 $1.rsprod = function() { - var _1b = $k[--$j]; - var _1c = $k[--$j]; - $k[$j++] = _1c; - $k[$j++] = _1b; - if (_1b != 0 && _1c != 0) { - var _1f = $get($1.rslog, $k[--$j]); - var _1k = $get($1.rsalog, $f(_1f + $get($1.rslog, $k[--$j])) % 282); - $k[$j++] = _1k; - } else { - $j -= 2; - $k[$j++] = 0; - } - }; - $1.n = $1.mcc; - $1.k = $1.qcc; - $k[$j++] = Infinity; - $k[$j++] = 1; - for (var _1o = 0, _1p = $1.k; _1o < _1p; _1o++) { - $k[$j++] = 0; - } - $1.coeffs = $a(); - for (var _1t = 1, _1s = $1.k; _1t <= _1s; _1t += 1) { - $1.i = _1t; - $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); - for (var _20 = $1.i - 1; _20 >= 1; _20 -= 1) { - $1.j = _20; - $k[$j++] = $1.coeffs; - $k[$j++] = $1.j; - $k[$j++] = $get($1.coeffs, $1.j - 1); - $k[$j++] = $get($1.coeffs, $1.j); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _2C = $k[--$j]; - var _2D = $k[--$j]; - var _2E = $k[--$j]; - $put($k[--$j], _2E, $f(_2D + _2C) % 283); - } - $k[$j++] = $1.coeffs; - $k[$j++] = 0; - $k[$j++] = $get($1.coeffs, 0); - $k[$j++] = $get($1.rsalog, $1.i); - $1.rsprod(); - var _2M = $k[--$j]; - var _2N = $k[--$j]; - $put($k[--$j], _2N, _2M); - } - $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); - for (var _2T = $1.coeffs.length - 1; _2T >= 0; _2T -= 2) { - var _2U = $1.coeffs; - $put(_2U, _2T, $f(283 - $get(_2U, _2T))); - } - for (var _2Y = 0, _2X = $1.n - 1; _2Y <= _2X; _2Y += 1) { - $1.t = $f($get($1.rsseq, _2Y) + $get($1.rsseq, $1.n)) % 283; - for (var _2g = 0, _2f = $1.k - 1; _2g <= _2f; _2g += 1) { - $1.j = _2g; - $put($1.rsseq, $1.n + $1.j, $f($get($1.rsseq, $1.n + $1.j + 1) + $f(283 - $1.t * $get($1.coeffs, $1.k - $1.j - 1) % 283)) % 283); - } - } - for (var _2x = $1.n, _2w = $1.n + $1.k; _2x <= _2w; _2x += 1) { - $put($1.rsseq, _2x, $f(283 - $get($1.rsseq, _2x)) % 283); - } - $1.ecws = $geti($1.rsseq, $1.n, $1.k); - $1.dccu = $a([ 51363, 51563, 51653, 53153, 53163, 53513, 53563, 53613, 53653, 56153, 56163, 56313, 56353, 56363, 56513, 56563, 51316, 51356, 51536, 51616, 53156, 53516, 53536, 53616, 53636, 53656, 56136, 56156, 56316, 56356, 56516, 56536 ]); - $1.dccl = $a([ 61351, 61361, 61531, 61561, 61631, 61651, 63131, 63151, 63161, 63531, 63561, 63631, 65131, 65161, 65351, 65631, 31351, 31361, 31531, 31561, 31631, 31651, 35131, 35151, 35161, 35361, 35631, 35651, 36131, 36151, 36351, 36531 ]); - $1.tiles = $a([ 13135, 13136, 13153, 13156, 13163, 13165, 13513, 13515, 13516, 13531, 13535, 13536, 13561, 13563, 13565, 13613, 13615, 13616, 13631, 13635, 13636, 13651, 13653, 13656, 15135, 15136, 15153, 15163, 15165, 15313, 15315, 15316, 15351, 15353, 15356, 15361, 15363, 15365, 15613, 15615, 15616, 15631, 15635, 15636, 15651, 15653, 15656, 16135, 16136, 16153, 16156, 16165, 16313, 16315, 16316, 16351, 16353, 16356, 16361, 16363, 16365, 16513, 16515, 16516, 16531, 16535, 16536, 16561, 16563, 16565, 31315, 31316, 31351, 31356, 31361, 31365, 31513, 31515, 31516, 31531, 31535, 31536, 31561, 31563, 31565, 31613, 31615, 31631, 31635, 31636, 31651, 31653, 31656, 35131, 35135, 35136, 35151, 35153, 35156, 35161, 35163, 35165, 35315, 35316, 35351, 35356, 35361, 35365, 35613, 35615, 35616, 35631, 35635, 35636, 35651, 35653, 35656, 36131, 36135, 36136, 36151, 36153, 36156, 36163, 36165, 36315, 36316, 36351, 36356, 36361, 36365, 36513, 36515, 36516, 36531, 36535, 36536, 36561, 36563, 36565, 51313, 51315, 51316, 51351, 51353, 51356, 51361, 51363, 51365, 51513, 51516, 51531, 51536, 51561, 51563, 51613, 51615, 51616, 51631, 51635, 51636, 51651, 51653, 51656, 53131, 53135, 53136, 53151, 53153, 53156, 53161, 53163, 53165, 53513, 53516, 53531, 53536, 53561, 53563, 53613, 53615, 53616, 53631, 53635, 53636, 53651, 53653, 53656, 56131, 56135, 56136, 56151, 56153, 56156, 56161, 56163, 56165, 56313, 56315, 56316, 56351, 56353, 56356, 56361, 56363, 56365, 56513, 56516, 56531, 56536, 56561, 56563, 61313, 61315, 61316, 61351, 61353, 61356, 61361, 61363, 61365, 61513, 61515, 61516, 61531, 61535, 61536, 61561, 61563, 61565, 61615, 61631, 61635, 61651, 61653, 63131, 63135, 63136, 63151, 63153, 63156, 63161, 63163, 63165, 63513, 63515, 63516, 63531, 63535, 63536, 63561, 63563, 63565, 63613, 63615, 63631, 63635, 63651, 63653, 65131, 65135, 65136, 65151, 65153, 65156, 65161, 65163, 65165, 65313, 65315, 65316, 65351, 65353, 65356, 65361, 65363, 65365, 65613, 65615, 65631, 65635, 65651, 65653, 56565, 51515 ]); - $1.rows = $f($1.rows * 6 + 1); - $1.columns = $1.columns + 6; - $k[$j++] = Infinity; - for (var _3C = 0, _3D = $1.rows * $1.columns; _3C < _3D; _3C++) { - $k[$j++] = -1; - } - $1.pixs = $a(); + var _1b = $k[--$j]; //#24159 + var _1c = $k[--$j]; //#24159 + $k[$j++] = _1c; //#24163 + $k[$j++] = _1b; //#24163 + if ((_1b != 0) && (_1c != 0)) { //#24162 + var _1f = $get($1.rslog, $k[--$j]); //#24160 + var _1k = $get($1.rsalog, $f(_1f + $get($1.rslog, $k[--$j])) % 282); //#24160 + $k[$j++] = _1k; //#24160 + } else { //#24162 + $j -= 2; //#24162 + $k[$j++] = 0; //#24162 + } //#24162 + }; //#24164 + $1.n = $1.mcc; //#24167 + $1.k = $1.qcc; //#24167 + $k[$j++] = Infinity; //#24168 + $k[$j++] = 1; //#24168 + for (var _1o = 0, _1p = $1.k; _1o < _1p; _1o++) { //#24168 + $k[$j++] = 0; //#24168 + } //#24168 + $1.coeffs = $a(); //#24168 + for (var _1t = 1, _1s = $1.k; _1t <= _1s; _1t += 1) { //#24177 + $1.i = _1t; //#24170 + $put($1.coeffs, $1.i, $get($1.coeffs, $1.i - 1)); //#24171 + for (var _20 = $1.i - 1; _20 >= 1; _20 -= 1) { //#24175 + $1.j = _20; //#24173 + $k[$j++] = $1.coeffs; //#24174 + $k[$j++] = $1.j; //#24174 + $k[$j++] = $get($1.coeffs, $1.j - 1); //#24174 + $k[$j++] = $get($1.coeffs, $1.j); //#24174 + $k[$j++] = $get($1.rsalog, $1.i); //#24174 + $1.rsprod(); //#24174 + var _2C = $k[--$j]; //#24174 + var _2D = $k[--$j]; //#24174 + var _2E = $k[--$j]; //#24174 + $put($k[--$j], _2E, $f(_2D + _2C) % 283); //#24174 + } //#24174 + $k[$j++] = $1.coeffs; //#24176 + $k[$j++] = 0; //#24176 + $k[$j++] = $get($1.coeffs, 0); //#24176 + $k[$j++] = $get($1.rsalog, $1.i); //#24176 + $1.rsprod(); //#24176 + var _2M = $k[--$j]; //#24176 + var _2N = $k[--$j]; //#24176 + $put($k[--$j], _2N, _2M); //#24176 + } //#24176 + $1.coeffs = $geti($1.coeffs, 0, $1.coeffs.length - 1); //#24178 + for (var _2T = $1.coeffs.length - 1; _2T >= 0; _2T -= 2) { //#24179 + var _2U = $1.coeffs; //#24179 + $put(_2U, _2T, $f(283 - $get(_2U, _2T))); //#24179 + } //#24179 + for (var _2Y = 0, _2X = $1.n - 1; _2Y <= _2X; _2Y += 1) { //#24188 + $1.t = $f($get($1.rsseq, _2Y) + $get($1.rsseq, $1.n)) % 283; //#24183 + for (var _2g = 0, _2f = $1.k - 1; _2g <= _2f; _2g += 1) { //#24187 + $1.j = _2g; //#24185 + $put($1.rsseq, $1.n + $1.j, ($f($get($1.rsseq, ($1.n + $1.j) + 1) + ($f(283 - (($1.t * $get($1.coeffs, ($1.k - $1.j) - 1)) % 283))))) % 283); //#24186 + } //#24186 + } //#24186 + for (var _2x = $1.n, _2w = $1.n + $1.k; _2x <= _2w; _2x += 1) { //#24189 + $put($1.rsseq, _2x, $f(283 - $get($1.rsseq, _2x)) % 283); //#24189 + } //#24189 + $1.ecws = $geti($1.rsseq, $1.n, $1.k); //#24190 + $1.dccu = $a([51363, 51563, 51653, 53153, 53163, 53513, 53563, 53613, 53653, 56153, 56163, 56313, 56353, 56363, 56513, 56563, 51316, 51356, 51536, 51616, 53156, 53516, 53536, 53616, 53636, 53656, 56136, 56156, 56316, 56356, 56516, 56536]); //#24197 + $1.dccl = $a([61351, 61361, 61531, 61561, 61631, 61651, 63131, 63151, 63161, 63531, 63561, 63631, 65131, 65161, 65351, 65631, 31351, 31361, 31531, 31561, 31631, 31651, 35131, 35151, 35161, 35361, 35631, 35651, 36131, 36151, 36351, 36531]); //#24204 + $1.tiles = $a([13135, 13136, 13153, 13156, 13163, 13165, 13513, 13515, 13516, 13531, 13535, 13536, 13561, 13563, 13565, 13613, 13615, 13616, 13631, 13635, 13636, 13651, 13653, 13656, 15135, 15136, 15153, 15163, 15165, 15313, 15315, 15316, 15351, 15353, 15356, 15361, 15363, 15365, 15613, 15615, 15616, 15631, 15635, 15636, 15651, 15653, 15656, 16135, 16136, 16153, 16156, 16165, 16313, 16315, 16316, 16351, 16353, 16356, 16361, 16363, 16365, 16513, 16515, 16516, 16531, 16535, 16536, 16561, 16563, 16565, 31315, 31316, 31351, 31356, 31361, 31365, 31513, 31515, 31516, 31531, 31535, 31536, 31561, 31563, 31565, 31613, 31615, 31631, 31635, 31636, 31651, 31653, 31656, 35131, 35135, 35136, 35151, 35153, 35156, 35161, 35163, 35165, 35315, 35316, 35351, 35356, 35361, 35365, 35613, 35615, 35616, 35631, 35635, 35636, 35651, 35653, 35656, 36131, 36135, 36136, 36151, 36153, 36156, 36163, 36165, 36315, 36316, 36351, 36356, 36361, 36365, 36513, 36515, 36516, 36531, 36535, 36536, 36561, 36563, 36565, 51313, 51315, 51316, 51351, 51353, 51356, 51361, 51363, 51365, 51513, 51516, 51531, 51536, 51561, 51563, 51613, 51615, 51616, 51631, 51635, 51636, 51651, 51653, 51656, 53131, 53135, 53136, 53151, 53153, 53156, 53161, 53163, 53165, 53513, 53516, 53531, 53536, 53561, 53563, 53613, 53615, 53616, 53631, 53635, 53636, 53651, 53653, 53656, 56131, 56135, 56136, 56151, 56153, 56156, 56161, 56163, 56165, 56313, 56315, 56316, 56351, 56353, 56356, 56361, 56363, 56365, 56513, 56516, 56531, 56536, 56561, 56563, 61313, 61315, 61316, 61351, 61353, 61356, 61361, 61363, 61365, 61513, 61515, 61516, 61531, 61535, 61536, 61561, 61563, 61565, 61615, 61631, 61635, 61651, 61653, 63131, 63135, 63136, 63151, 63153, 63156, 63161, 63163, 63165, 63513, 63515, 63516, 63531, 63535, 63536, 63561, 63563, 63565, 63613, 63615, 63631, 63635, 63651, 63653, 65131, 65135, 65136, 65151, 65153, 65156, 65161, 65163, 65165, 65313, 65315, 65316, 65351, 65353, 65356, 65361, 65363, 65365, 65613, 65615, 65631, 65635, 65651, 65653, 56565, 51515]); //#24236 + $1.rows = $f(($1.rows * 6) + 1); //#24239 + $1.columns = $1.columns + 6; //#24240 + $k[$j++] = Infinity; //#24241 + for (var _3C = 0, _3D = $1.rows * $1.columns; _3C < _3D; _3C++) { //#24241 + $k[$j++] = -1; //#24241 + } //#24241 + $1.pixs = $a(); //#24241 $1.qmv = function() { - var _3G = $k[--$j]; - var _3H = $k[--$j]; - $k[$j++] = $f(_3H + _3G * $1.columns); - }; - for (var _3K = 0, _3J = $1.columns - 1; _3K <= _3J; _3K += 1) { - $1.i = _3K; - for (var _3N = 0, _3M = $f($1.rows - 1); _3N <= _3M; _3N += 6) { - $1.j = _3N; - if ($1.i >= 5) { - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.qmv(); - var _3T = $k[--$j]; - $put($k[--$j], _3T, $1.i % 2 * 9); - } - } - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = 0; - $1.qmv(); - var _3X = $k[--$j]; - $put($k[--$j], _3X, 9); - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = $f($1.rows - 1); - $1.qmv(); - var _3c = $k[--$j]; - $put($k[--$j], _3c, 9); - } - for (var _3g = 1, _3f = $f($1.rows - 2); _3g <= _3f; _3g += 1) { - $1.i = _3g; - for (var _3j = 3, _3i = $1.columns - 1; _3j <= _3i; _3j += 16) { - $1.j = _3j; - $k[$j++] = $1.pixs; - $k[$j++] = $1.j; - $k[$j++] = $1.i; - $1.qmv(); - var _3o = $k[--$j]; - $put($k[--$j], _3o, (1 - $1.i % 2) * 9); - } - $k[$j++] = $1.pixs; - $k[$j++] = 0; - $k[$j++] = $1.i; - $1.qmv(); - var _3s = $k[--$j]; - $put($k[--$j], _3s, 9); - $k[$j++] = $1.pixs; - $k[$j++] = 1; - $k[$j++] = $1.i; - $1.qmv(); - var _3x = $k[--$j]; - $put($k[--$j], _3x, (1 - $1.i % 2) * 9); - $k[$j++] = $1.pixs; - $k[$j++] = 2; - $k[$j++] = $1.i; - $1.qmv(); - var _41 = $k[--$j]; - $put($k[--$j], _41, 0); - $k[$j++] = $1.pixs; - $k[$j++] = 3; - $k[$j++] = $1.i; - $1.qmv(); - var _45 = $k[--$j]; - $put($k[--$j], _45, 9); - $k[$j++] = $1.pixs; - $k[$j++] = 4; - $k[$j++] = $1.i; - $1.qmv(); - var _49 = $k[--$j]; - $put($k[--$j], _49, 0); - $k[$j++] = $1.pixs; - $k[$j++] = $1.columns - 1; - $k[$j++] = $1.i; - $1.qmv(); - var _4E = $k[--$j]; - $put($k[--$j], _4E, 9); - } - $1.i = ~~($1.rows / 2) - 5; - $k[$j++] = Infinity; - var _4L = $cvrs($s(5), $get($1.dccu, $1.dcc), 10); - for (var _4M = 0, _4N = _4L.length; _4M < _4N; _4M++) { - $k[$j++] = $get(_4L, _4M) - 48; - } - var _4T = $cvrs($s(5), $get($1.dccl, $1.dcc), 10); - $k[$j++] = 0; - for (var _4U = 0, _4V = _4T.length; _4U < _4V; _4U++) { - $k[$j++] = $get(_4T, _4U) - 48; - } - var _4X = $a(); - for (var _4Y = 0, _4Z = _4X.length; _4Y < _4Z; _4Y++) { - $k[$j++] = $get(_4X, _4Y); - $k[$j++] = $1.pixs; - $k[$j++] = 2; - $k[$j++] = $1.i; - $1.qmv(); - var _4d = $k[--$j]; - var _4e = $k[--$j]; - $put(_4e, _4d, $k[--$j]); - $1.i = $1.i + 1; - } - $k[$j++] = Infinity; - $k[$j++] = $1.start; - $k[$j++] = $1.mcc; - $aload($1.ecws); - $k[$j++] = $1.tcc; - $k[$j++] = 283; - $k[$j++] = $1.acc; - $aload($1.scr); - $aload($1.dcws); - for (var _4p = 0, _4q = $1.pads; _4p < _4q; _4p++) { - $k[$j++] = 284; - } - $k[$j++] = $1.qcc; - $1.tileseq = $a(); - $1.x = 5; - $1.y = 1; - var _4t = $1.tileseq; - for (var _4u = 0, _4v = _4t.length; _4u < _4v; _4u++) { - var _50 = $cvrs($s(5), $get($1.tiles, $get(_4t, _4u)), 10); - for (var _51 = 0, _52 = _50.length; _51 < _52; _51++) { - $k[$j++] = $get(_50, _51); - $k[$j++] = $1.pixs; - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $1.qmv(); - var _57 = $k[--$j]; - var _58 = $k[--$j]; - $put(_58, _57, $f($k[--$j] - 48)); - $1.y = $1.y + 1; - } - if ($1.y != $f($1.rows - 1)) { - $1.y = $1.y + 1; - } else { - $1.x = $1.x + 1; - $1.y = 1; - $k[$j++] = $1.pixs; - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $1.qmv(); - var _5I = $k[--$j]; - if ($get($k[--$j], _5I) != -1) { - $1.x = $1.x + 1; - } - } - } - var _5R = new Map([ [ 0, "00000000" ], [ 9, "000000FF" ], [ 1, "FF000000" ], [ 3, "00FF0000" ], [ 5, "0000FF00" ], [ 6, "7F00FF00" ] ]); - var _5T = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", $1.columns ], [ "pixy", $1.rows ], [ "height", $1.rows / 72 * 2 ], [ "width", $1.columns / 72 * 2 ], [ "colormap", _5R ], [ "opt", $1.options ] ]); - $k[$j++] = _5T; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var _3G = $k[--$j]; //#24242 + var _3H = $k[--$j]; //#24242 + $k[$j++] = $f(_3H + (_3G * $1.columns)); //#24242 + }; //#24242 + for (var _3K = 0, _3J = $1.columns - 1; _3K <= _3J; _3K += 1) { //#24251 + $1.i = _3K; //#24244 + for (var _3N = 0, _3M = $f($1.rows - 1); _3N <= _3M; _3N += 6) { //#24248 + $1.j = _3N; //#24246 + if ($1.i >= 5) { //#24247 + $k[$j++] = $1.pixs; //#24247 + $k[$j++] = $1.i; //#24247 + $k[$j++] = $1.j; //#24247 + $1.qmv(); //#24247 + var _3T = $k[--$j]; //#24247 + $put($k[--$j], _3T, ($1.i % 2) * 9); //#24247 + } //#24247 + } //#24247 + $k[$j++] = $1.pixs; //#24249 + $k[$j++] = $1.i; //#24249 + $k[$j++] = 0; //#24249 + $1.qmv(); //#24249 + var _3X = $k[--$j]; //#24249 + $put($k[--$j], _3X, 9); //#24249 + $k[$j++] = $1.pixs; //#24250 + $k[$j++] = $1.i; //#24250 + $k[$j++] = $f($1.rows - 1); //#24250 + $1.qmv(); //#24250 + var _3c = $k[--$j]; //#24250 + $put($k[--$j], _3c, 9); //#24250 + } //#24250 + for (var _3g = 1, _3f = $f($1.rows - 2); _3g <= _3f; _3g += 1) { //#24264 + $1.i = _3g; //#24253 + for (var _3j = 3, _3i = $1.columns - 1; _3j <= _3i; _3j += 16) { //#24257 + $1.j = _3j; //#24255 + $k[$j++] = $1.pixs; //#24256 + $k[$j++] = $1.j; //#24256 + $k[$j++] = $1.i; //#24256 + $1.qmv(); //#24256 + var _3o = $k[--$j]; //#24256 + $put($k[--$j], _3o, (1 - ($1.i % 2)) * 9); //#24256 + } //#24256 + $k[$j++] = $1.pixs; //#24258 + $k[$j++] = 0; //#24258 + $k[$j++] = $1.i; //#24258 + $1.qmv(); //#24258 + var _3s = $k[--$j]; //#24258 + $put($k[--$j], _3s, 9); //#24258 + $k[$j++] = $1.pixs; //#24259 + $k[$j++] = 1; //#24259 + $k[$j++] = $1.i; //#24259 + $1.qmv(); //#24259 + var _3x = $k[--$j]; //#24259 + $put($k[--$j], _3x, (1 - ($1.i % 2)) * 9); //#24259 + $k[$j++] = $1.pixs; //#24260 + $k[$j++] = 2; //#24260 + $k[$j++] = $1.i; //#24260 + $1.qmv(); //#24260 + var _41 = $k[--$j]; //#24260 + $put($k[--$j], _41, 0); //#24260 + $k[$j++] = $1.pixs; //#24261 + $k[$j++] = 3; //#24261 + $k[$j++] = $1.i; //#24261 + $1.qmv(); //#24261 + var _45 = $k[--$j]; //#24261 + $put($k[--$j], _45, 9); //#24261 + $k[$j++] = $1.pixs; //#24262 + $k[$j++] = 4; //#24262 + $k[$j++] = $1.i; //#24262 + $1.qmv(); //#24262 + var _49 = $k[--$j]; //#24262 + $put($k[--$j], _49, 0); //#24262 + $k[$j++] = $1.pixs; //#24263 + $k[$j++] = $1.columns - 1; //#24263 + $k[$j++] = $1.i; //#24263 + $1.qmv(); //#24263 + var _4E = $k[--$j]; //#24263 + $put($k[--$j], _4E, 9); //#24263 + } //#24263 + $1.i = (~~($1.rows / 2)) - 5; //#24267 + $k[$j++] = Infinity; //#24271 + var _4L = $cvrs($s(5), $get($1.dccu, $1.dcc), 10); //#24269 + for (var _4M = 0, _4N = _4L.length; _4M < _4N; _4M++) { //#24269 + $k[$j++] = $get(_4L, _4M) - 48; //#24269 + } //#24269 + var _4T = $cvrs($s(5), $get($1.dccl, $1.dcc), 10); //#24271 + $k[$j++] = 0; //#24271 + for (var _4U = 0, _4V = _4T.length; _4U < _4V; _4U++) { //#24271 + $k[$j++] = $get(_4T, _4U) - 48; //#24271 + } //#24271 + var _4X = $a(); //#24271 + for (var _4Y = 0, _4Z = _4X.length; _4Y < _4Z; _4Y++) { //#24275 + $k[$j++] = $get(_4X, _4Y); //#24273 + $k[$j++] = $1.pixs; //#24273 + $k[$j++] = 2; //#24273 + $k[$j++] = $1.i; //#24273 + $1.qmv(); //#24273 + var _4d = $k[--$j]; //#24273 + var _4e = $k[--$j]; //#24273 + $put(_4e, _4d, $k[--$j]); //#24273 + $1.i = $1.i + 1; //#24274 + } //#24274 + $k[$j++] = Infinity; //#24288 + $k[$j++] = $1.start; //#24281 + $k[$j++] = $1.mcc; //#24281 + $aload($1.ecws); //#24281 + $k[$j++] = $1.tcc; //#24285 + $k[$j++] = 283; //#24285 + $k[$j++] = $1.acc; //#24285 + $aload($1.scr); //#24285 + $aload($1.dcws); //#24286 + for (var _4p = 0, _4q = $1.pads; _4p < _4q; _4p++) { //#24287 + $k[$j++] = 284; //#24287 + } //#24287 + $k[$j++] = $1.qcc; //#24288 + $1.tileseq = $a(); //#24288 + $1.x = 5; //#24291 + $1.y = 1; //#24291 + var _4t = $1.tileseq; //#24292 + for (var _4u = 0, _4v = _4t.length; _4u < _4v; _4u++) { //#24305 + var _50 = $cvrs($s(5), $get($1.tiles, $get(_4t, _4u)), 10); //#24293 + for (var _51 = 0, _52 = _50.length; _51 < _52; _51++) { //#24296 + $k[$j++] = $get(_50, _51); //#24294 + $k[$j++] = $1.pixs; //#24294 + $k[$j++] = $1.x; //#24294 + $k[$j++] = $1.y; //#24294 + $1.qmv(); //#24294 + var _57 = $k[--$j]; //#24294 + var _58 = $k[--$j]; //#24294 + $put(_58, _57, $f($k[--$j] - 48)); //#24294 + $1.y = $1.y + 1; //#24295 + } //#24295 + if ($1.y != $f($1.rows - 1)) { //#24302 + $1.y = $1.y + 1; //#24298 + } else { //#24302 + $1.x = $1.x + 1; //#24300 + $1.y = 1; //#24300 + $k[$j++] = $1.pixs; //#24301 + $k[$j++] = $1.x; //#24301 + $k[$j++] = $1.y; //#24301 + $1.qmv(); //#24301 + var _5I = $k[--$j]; //#24301 + if ($get($k[--$j], _5I) != -1) { //#24303 + $1.x = $1.x + 1; //#24302 + } //#24302 + } //#24302 + } //#24302 + var _5R = new Map([ + [0, "00000000"], + [9, "000000FF"], + [1, "FF000000"], + [3, "00FF0000"], + [5, "0000FF00"], + [6, "7F00FF00"] + ]); //#24321 + var _5T = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", $1.columns], + ["pixy", $1.rows], + ["height", ($1.rows / 72) * 2], + ["width", ($1.columns / 72) * 2], + ["colormap", _5R], + ["opt", $1.options] + ]); //#24323 + $k[$j++] = _5T; //#24326 + if (!$1.dontdraw) { //#24326 + $0.renmatrix(); //#24326 + } //#24326 }; $0.jabcode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.rows = -1; - $1.columns = -1; - $1.slave = false; - $1.colors = 16; - $1.eclevel = 6; - $1.raw = false; - $1.parse = false; - $1.parsefnc = false; - $1.mask = -1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.rows = ~~$1.rows; - $1.columns = ~~$1.columns; - $1.colors = ~~$1.colors; - $1.eclevel = ~~$1.eclevel; - $1.mask = ~~$1.mask; - $1.databpm = ~~Math.round(Math.log($1.colors) / Math.log(2)); - var _B = $1.colors; - $k[$j++] = "metabpm"; - $k[$j++] = _B; - if (_B > 8) { - $j--; - $k[$j++] = 8; - } - var _C = $k[--$j]; - $1[$k[--$j]] = ~~Math.round(Math.log(_C) / Math.log(2)); - $1.fn1 = -1; - var _H = new Map([ [ "parse", $1.parse ], [ "parsefnc", $1.parsefnc ], [ "FNC1", $1.fn1 ] ]); - $1.fncvals = _H; - $k[$j++] = "msg"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.fncvals; - $0.parseinput(); - var _K = $k[--$j]; - $1[$k[--$j]] = _K; - $1.msglen = $1.msg.length; + var $1 = {}; //#24356 + $1.options = $k[--$j]; //#24358 + $1.barcode = $k[--$j]; //#24359 + $1.dontdraw = false; //#24361 + $1.rows = -1; //#24362 + $1.columns = -1; //#24363 + $1.slave = false; //#24364 + $1.colors = 16; //#24365 + $1.eclevel = 6; //#24366 + $1.raw = false; //#24367 + $1.parse = false; //#24368 + $1.parsefnc = false; //#24369 + $1.mask = -1; //#24370 + $forall($1.options, function() { //#24381 + var _3 = $k[--$j]; //#24381 + $1[$k[--$j]] = _3; //#24381 + }); //#24381 + $1.rows = ~~$1.rows; //#24383 + $1.columns = ~~$1.columns; //#24384 + $1.colors = ~~$1.colors; //#24385 + $1.eclevel = ~~$1.eclevel; //#24386 + $1.mask = ~~$1.mask; //#24387 + $1.databpm = ~~(Math.round(Math.log($1.colors) / Math.log(2))); //#24389 + var _B = $1.colors; //#24390 + $k[$j++] = 'metabpm'; //#24390 + $k[$j++] = _B; //#24390 + if (_B > 8) { //#24390 + $j--; //#24390 + $k[$j++] = 8; //#24390 + } //#24390 + var _C = $k[--$j]; //#24390 + $1[$k[--$j]] = ~~(Math.round(Math.log(_C) / Math.log(2))); //#24390 + $1.fn1 = -1; //#24393 + var _H = new Map([ + ["parse", $1.parse], + ["parsefnc", $1.parsefnc], + ["FNC1", $1.fn1] + ]); //#24397 + $1.fncvals = _H; //#24398 + $k[$j++] = 'msg'; //#24399 + $k[$j++] = $1.barcode; //#24399 + $k[$j++] = $1.fncvals; //#24399 + $0.parseinput(); //#24399 + var _K = $k[--$j]; //#24399 + $1[$k[--$j]] = _K; //#24399 + $1.msglen = $1.msg.length; //#24400 $1.addtobits = function() { - var _N = $k[--$j]; - $puti($1.bits, $1.j, _N); - $1.j = _N.length + $1.j; - }; + var _N = $k[--$j]; //#24421 + $puti($1.bits, $1.j, _N); //#24421 + $1.j = _N.length + $1.j; //#24422 + }; //#24423 $1.tofixedbits = function() { - var _S = $strcpy($s(13), "0000000000000"); - var _T = $k[--$j]; - var _W = $cvrs($s(13), $k[--$j], 2); - $puti(_S, $f(_T - _W.length), _W); - $k[$j++] = $geti(_S, 0, _T); - }; - var _Z = $1.msglen <= 15 ? 4 : 17; - $1.bits = $s(7 + _Z + $1.msglen * 8 + 12); - $1.j = 0; - $k[$j++] = 31; - $k[$j++] = 5; - $1.tofixedbits(); - $1.addtobits(); - $k[$j++] = "00"; - $1.addtobits(); - if ($1.msglen <= 15) { - $k[$j++] = $1.msglen; - $k[$j++] = 4; - $1.tofixedbits(); - $1.addtobits(); - } else { - $k[$j++] = "0000"; - $1.addtobits(); - $k[$j++] = $1.msglen - 16; - $k[$j++] = 13; - $1.tofixedbits(); - $1.addtobits(); - } - for (var _h = 0, _g = $1.msglen - 1; _h <= _g; _h += 1) { - $k[$j++] = $get($1.msg, _h); - $k[$j++] = 8; - $1.tofixedbits(); - $1.addtobits(); - } - $k[$j++] = 28; - $k[$j++] = 5; - $1.tofixedbits(); - $1.addtobits(); - $k[$j++] = 31; - $k[$j++] = 5; - $1.tofixedbits(); - $1.addtobits(); - $k[$j++] = "11"; - $1.addtobits(); - $1.diffside = 21; - $1.sameshape = false; - $1.sameecc = false; - $1.hasslaves = false; + var _S = $strcpy($s(13), "0000000000000"); //#24426 + var _T = $k[--$j]; //#24426 + var _W = $cvrs($s(13), $k[--$j], 2); //#24426 + $puti(_S, $f(_T - _W.length), _W); //#24427 + $k[$j++] = $geti(_S, 0, _T); //#24428 + }; //#24429 + var _Z = ($1.msglen <= 15) ? 4 : 17; //#24432 + $1.bits = $s(((7 + _Z) + ($1.msglen * 8)) + 12); //#24432 + $1.j = 0; //#24433 + $k[$j++] = 31; //#24434 + $k[$j++] = 5; //#24434 + $1.tofixedbits(); //#24434 + $1.addtobits(); //#24434 + $k[$j++] = "00"; //#24435 + $1.addtobits(); //#24435 + if ($1.msglen <= 15) { //#24440 + $k[$j++] = $1.msglen; //#24437 + $k[$j++] = 4; //#24437 + $1.tofixedbits(); //#24437 + $1.addtobits(); //#24437 + } else { //#24440 + $k[$j++] = "0000"; //#24439 + $1.addtobits(); //#24439 + $k[$j++] = $1.msglen - 16; //#24440 + $k[$j++] = 13; //#24440 + $1.tofixedbits(); //#24440 + $1.addtobits(); //#24440 + } //#24440 + for (var _h = 0, _g = $1.msglen - 1; _h <= _g; _h += 1) { //#24444 + $k[$j++] = $get($1.msg, _h); //#24443 + $k[$j++] = 8; //#24443 + $1.tofixedbits(); //#24443 + $1.addtobits(); //#24443 + } //#24443 + $k[$j++] = 28; //#24445 + $k[$j++] = 5; //#24445 + $1.tofixedbits(); //#24445 + $1.addtobits(); //#24445 + $k[$j++] = 31; //#24446 + $k[$j++] = 5; //#24446 + $1.tofixedbits(); //#24446 + $1.addtobits(); //#24446 + $k[$j++] = "11"; //#24447 + $1.addtobits(); //#24447 + $1.diffside = 21; //#24450 + $1.sameshape = false; //#24451 + $1.sameecc = false; //#24452 + $1.hasslaves = false; //#24453 $1.metrics = function() { - $1.mc = $k[--$j]; - $1.mr = $k[--$j]; - var _m = $1.mc; - var _n = $1.mr; - var _o = $1.mc; - var _p = $1.mr; - var _q = $1.colors; - var _r = 64; - if (64 > _q) { - var _ = _q; - _q = _r; - _r = _; - } - var _t = $1.slave ? 7 : 17; - $k[$j++] = _m * _n; - $k[$j++] = ((~~($f(_o - 25) / 16) + 2) * (~~($f(_p - 25) / 16) + 2) - 4) * 7; - $k[$j++] = _r * 2; - $k[$j++] = _t * 4; - if (!$1.slave) { - var _x = $eq($1.mr, $1.mc) ? 0 : 1; - $1.metass = _x; - var _y = $1.mr; - var _z = $1.mc; - if ($lt(_y, _z)) { - var _ = _z; - _z = _y; - _y = _; - } - $1.metavf = $get($a([ 0, 1, 2, 2, 3, 3, 3, 3 ]), ~~($f(_y - 21) / 16)); - $k[$j++] = "metavlen"; - if ($1.metass == 0) { - $k[$j++] = $a([ 2, 2, 3, 4 ]); - } else { - $k[$j++] = $a([ 4, 6, 8, 10 ]); - } - var _17 = $get($k[--$j], $1.metavf); - $1[$k[--$j]] = _17; - $1.metaelen = $f($1.metavf * 2 + 10); - $k[$j++] = $f($f(7 + $1.metavlen) + $1.metaelen); - if ($1.hasslaves) { - var _1D = $k[--$j]; - $k[$j++] = $f(_1D + 4); - } - var _1G = ~~Math.ceil($k[--$j] * 2 / $1.metabpm); - $1.nummetabits = $f(_1G * $1.metabpm + 6); - $k[$j++] = _1G + 6; - } else { - $k[$j++] = 3; - if (!$1.sameshape) { - var _1J = $k[--$j]; - $k[$j++] = $f(_1J + 5); - } - if ($1.hasslaves) { - var _1L = $k[--$j]; - $k[$j++] = $f(_1L + 3); - } - if (!$1.sameecc) { - var _1N = $1.mr; - var _1O = $1.mc; - if ($lt(_1N, _1O)) { - var _ = _1O; - _1O = _1N; - _1N = _; - } - var _1R = $k[--$j]; - $k[$j++] = $f(_1R + $get($a([ 10, 12, 14, 14, 16, 16, 16, 16 ]), ~~($f(_1N - 21) / 16))); - } - var _1U = ~~Math.ceil($k[--$j] * 2 / $1.metabpm); - $1.nummetabits = _1U * $1.metabpm; - $k[$j++] = _1U; - } - var _1W = $k[--$j]; - $1.nummetamodules = _1W; - var _1X = $k[--$j]; - var _1Y = $k[--$j]; - var _1Z = $k[--$j]; - $1.numdatamodules = $f($k[--$j] - $f(_1Z + $f(_1Y + $f(_1X + _1W)))); - $1.numdatabits = $1.numdatamodules * $1.databpm; - }; - $1.coderate = $get($a([ .67, .63, .57, .55, .5, .43, .34, .25, .2, .17, .14 ]), $1.eclevel); - $1.grosslen = ~~Math.ceil($1.bits.length / $1.coderate); + $1.mc = $k[--$j]; //#24457 + $1.mr = $k[--$j]; //#24457 + var _m = $1.mc; //#24458 + var _n = $1.mr; //#24458 + var _o = $1.mc; //#24459 + var _p = $1.mr; //#24459 + var _q = $1.colors; //#24461 + var _r = 64; //#24461 + if (64 > _q) { //#24461 + var _ = _q; //#24461 + _q = _r; //#24461 + _r = _; //#24461 + } //#24461 + var _t = $1.slave ? 7 : 17; //#24462 + $k[$j++] = _m * _n; //#24490 + $k[$j++] = ((((~~($f(_o - 25) / 16)) + 2) * ((~~($f(_p - 25) / 16)) + 2)) - 4) * 7; //#24490 + $k[$j++] = _r * 2; //#24490 + $k[$j++] = _t * 4; //#24490 + if (!$1.slave) { //#24489 + var _x = $eq($1.mr, $1.mc) ? 0 : 1; //#24466 + $1.metass = _x; //#24466 + var _y = $1.mr; //#24467 + var _z = $1.mc; //#24467 + if ($lt(_y, _z)) { //#24467 + var _ = _z; //#24467 + _z = _y; //#24467 + _y = _; //#24467 + } //#24467 + $1.metavf = $get($a([0, 1, 2, 2, 3, 3, 3, 3]), ~~($f(_y - 21) / 16)); //#24468 + $k[$j++] = 'metavlen'; //#24469 + if ($1.metass == 0) { //#24469 + $k[$j++] = $a([2, 2, 3, 4]); //#24469 + } else { //#24469 + $k[$j++] = $a([4, 6, 8, 10]); //#24469 + } //#24469 + var _17 = $get($k[--$j], $1.metavf); //#24469 + $1[$k[--$j]] = _17; //#24469 + $1.metaelen = $f(($1.metavf * 2) + 10); //#24470 + $k[$j++] = $f($f(7 + $1.metavlen) + $1.metaelen); //#24473 + if ($1.hasslaves) { //#24473 + var _1D = $k[--$j]; //#24473 + $k[$j++] = $f(_1D + 4); //#24473 + } //#24473 + var _1G = ~~(Math.ceil(($k[--$j] * 2) / $1.metabpm)); //#24476 + $1.nummetabits = $f((_1G * $1.metabpm) + 6); //#24476 + $k[$j++] = _1G + 6; //#24477 + } else { //#24489 + $k[$j++] = 3; //#24480 + if (!$1.sameshape) { //#24480 + var _1J = $k[--$j]; //#24480 + $k[$j++] = $f(_1J + 5); //#24480 + } //#24480 + if ($1.hasslaves) { //#24481 + var _1L = $k[--$j]; //#24481 + $k[$j++] = $f(_1L + 3); //#24481 + } //#24481 + if (!$1.sameecc) { //#24486 + var _1N = $1.mr; //#24483 + var _1O = $1.mc; //#24483 + if ($lt(_1N, _1O)) { //#24483 + var _ = _1O; //#24483 + _1O = _1N; //#24483 + _1N = _; //#24483 + } //#24483 + var _1R = $k[--$j]; //#24485 + $k[$j++] = $f(_1R + $get($a([10, 12, 14, 14, 16, 16, 16, 16]), ~~($f(_1N - 21) / 16))); //#24485 + } //#24485 + var _1U = ~~(Math.ceil(($k[--$j] * 2) / $1.metabpm)); //#24489 + $1.nummetabits = _1U * $1.metabpm; //#24489 + $k[$j++] = _1U; //#24489 + } //#24489 + var _1W = $k[--$j]; //#24492 + $1.nummetamodules = _1W; //#24492 + var _1X = $k[--$j]; //#24493 + var _1Y = $k[--$j]; //#24493 + var _1Z = $k[--$j]; //#24493 + $1.numdatamodules = $f($k[--$j] - ($f(_1Z + ($f(_1Y + $f(_1X + _1W)))))); //#24493 + $1.numdatabits = $1.numdatamodules * $1.databpm; //#24494 + }; //#24495 + $1.coderate = $get($a([0.67, 0.63, 0.57, 0.55, 0.5, 0.43, 0.34, 0.25, 0.2, 0.17, 0.14]), $1.eclevel); //#24498 + $1.grosslen = ~~Math.ceil($1.bits.length / $1.coderate); //#24499 $1.snapsize = function() { - var _1j = ~~Math.ceil($k[--$j]) - 18; - $k[$j++] = _1j; - if (_1j < 0) { - $j--; - $k[$j++] = 0; - } - var _1k = $k[--$j]; - $k[$j++] = ~~(_1k / 4) * 4 + 21; - }; - if ($1.rows == -1 && $1.columns == -1) { - $k[$j++] = "size"; - $k[$j++] = Math.sqrt($1.grosslen); - $1.snapsize(); - var _1o = $k[--$j]; - $1[$k[--$j]] = _1o; - for (;;) { - $k[$j++] = $1.size; - $k[$j++] = $1.size; - $1.metrics(); - if ($1.grosslen <= $1.numdatabits) { - break; - } - $1.size = $f($1.size + 4); - } - $1.rows = $1.size; - $1.columns = $1.size; - } else { - if ($1.columns == -1 && $1.rows != -1) { - $k[$j++] = "columns"; - $k[$j++] = $1.grosslen / $1.rows; - $1.snapsize(); - var _21 = $k[--$j]; - $1[$k[--$j]] = _21; - for (;;) { - $k[$j++] = $1.rows; - $k[$j++] = $1.columns; - $1.metrics(); - if ($1.grosslen <= $1.numdatabits) { - break; - } - $1.columns = $f($1.columns + 4); - } - } - if ($1.rows == -1 && $1.columns != -1) { - $k[$j++] = "rows"; - $k[$j++] = $1.grosslen / $1.columns; - $1.snapsize(); - var _2C = $k[--$j]; - $1[$k[--$j]] = _2C; - for (;;) { - $k[$j++] = $1.rows; - $k[$j++] = $1.columns; - $1.metrics(); - if ($1.grosslen <= $1.numdatabits) { - break; - } - $1.rows = $f($1.rows + 4); - } - } - if ($1.rows != -1 && $1.columns != -1) { - $k[$j++] = $1.rows; - $k[$j++] = $1.columns; - $1.metrics(); - } - } - $1.C = $1.numdatabits; - $1.cols = $1.columns; - if ($1.rows > 145 || $1.cols > 145) { - $k[$j++] = "bwipp.jabcodeNoValidSymbol"; - $k[$j++] = "No valid symbol available"; - $0.raiseerror(); - } - $1.min = $1.C; - for (var _2S = 3; _2S <= 8; _2S += 1) { - $1.i = _2S; - for (var _2U = $1.i + 1; _2U <= 9; _2U += 1) { - $1.j = _2U; - $1.dist = ~~($1.C / $1.j) * $1.j - ~~($1.C / $1.j) * $1.i - $1.bits.length; - if ($1.dist < $1.min && $1.dist >= 0) { - $1.datawc = $1.i; - $1.datawr = $1.j; - $1.min = $1.dist; - } - } - } - $1.tmpbits = $s(~~($1.C / $1.datawr) * $1.datawr - ~~($1.C / $1.datawr) * $1.datawc); - $puti($1.tmpbits, 0, $1.bits); - for (var _2u = $1.bits.length, _2t = $1.tmpbits.length - 1; _2u <= _2t; _2u += 1) { - var _2w = $get($1.tmpbits, _2u - 1); - $k[$j++] = _2u; - $k[$j++] = _2w; - if (_2w % 2 == 0) { - var _2x = $k[--$j]; - $k[$j++] = $f(_2x + 1); - } else { - var _2y = $k[--$j]; - $k[$j++] = $f(_2y - 1); - } - var _30 = $k[--$j]; - $put($1.tmpbits, $k[--$j], _30); - } - $1.bits = $1.tmpbits; - $1.m0 = 22609 + 1; - $1.m1 = 62509 - 65536; - $1.m2 = 19605; - $1.m3 = 32557; + var _1j = (~~Math.ceil($k[--$j])) - 18; //#24500 + $k[$j++] = _1j; //#24500 + if (_1j < 0) { //#24500 + $j--; //#24500 + $k[$j++] = 0; //#24500 + } //#24500 + var _1k = $k[--$j]; //#24500 + $k[$j++] = ((~~(_1k / 4)) * 4) + 21; //#24500 + }; //#24500 + if (($1.rows == -1) && ($1.columns == -1)) { //#24529 + $k[$j++] = 'size'; //#24503 + $k[$j++] = Math.sqrt($1.grosslen); //#24503 + $1.snapsize(); //#24503 + var _1o = $k[--$j]; //#24503 + $1[$k[--$j]] = _1o; //#24503 + for (;;) { //#24508 + $k[$j++] = $1.size; //#24505 + $k[$j++] = $1.size; //#24505 + $1.metrics(); //#24505 + if ($1.grosslen <= $1.numdatabits) { //#24506 + break; //#24506 + } //#24506 + $1.size = $f($1.size + 4); //#24507 + } //#24507 + $1.rows = $1.size; //#24509 + $1.columns = $1.size; //#24510 + } else { //#24529 + if (($1.columns == -1) && ($1.rows != -1)) { //#24519 + $k[$j++] = 'columns'; //#24513 + $k[$j++] = $1.grosslen / $1.rows; //#24513 + $1.snapsize(); //#24513 + var _21 = $k[--$j]; //#24513 + $1[$k[--$j]] = _21; //#24513 + for (;;) { //#24518 + $k[$j++] = $1.rows; //#24515 + $k[$j++] = $1.columns; //#24515 + $1.metrics(); //#24515 + if ($1.grosslen <= $1.numdatabits) { //#24516 + break; //#24516 + } //#24516 + $1.columns = $f($1.columns + 4); //#24517 + } //#24517 + } //#24517 + if (($1.rows == -1) && ($1.columns != -1)) { //#24527 + $k[$j++] = 'rows'; //#24521 + $k[$j++] = $1.grosslen / $1.columns; //#24521 + $1.snapsize(); //#24521 + var _2C = $k[--$j]; //#24521 + $1[$k[--$j]] = _2C; //#24521 + for (;;) { //#24526 + $k[$j++] = $1.rows; //#24523 + $k[$j++] = $1.columns; //#24523 + $1.metrics(); //#24523 + if ($1.grosslen <= $1.numdatabits) { //#24524 + break; //#24524 + } //#24524 + $1.rows = $f($1.rows + 4); //#24525 + } //#24525 + } //#24525 + if (($1.rows != -1) && ($1.columns != -1)) { //#24530 + $k[$j++] = $1.rows; //#24529 + $k[$j++] = $1.columns; //#24529 + $1.metrics(); //#24529 + } //#24529 + } //#24529 + $1.C = $1.numdatabits; //#24532 + $1.cols = $1.columns; //#24533 + if (($1.rows > 145) || ($1.cols > 145)) { //#24538 + $k[$j++] = 'bwipp.jabcodeNoValidSymbol'; //#24537 + $k[$j++] = "No valid symbol available"; //#24537 + $0.raiseerror(); //#24537 + } //#24537 + $1.min = $1.C; //#24541 + for (var _2S = 3; _2S <= 8; _2S += 1) { //#24553 + $1.i = _2S; //#24543 + for (var _2U = $1.i + 1; _2U <= 9; _2U += 1) { //#24552 + $1.j = _2U; //#24545 + $1.dist = (((~~($1.C / $1.j)) * $1.j) - ((~~($1.C / $1.j)) * $1.i)) - $1.bits.length; //#24546 + if (($1.dist < $1.min) && ($1.dist >= 0)) { //#24551 + $1.datawc = $1.i; //#24548 + $1.datawr = $1.j; //#24549 + $1.min = $1.dist; //#24550 + } //#24550 + } //#24550 + } //#24550 + $1.tmpbits = $s(((~~($1.C / $1.datawr)) * $1.datawr) - ((~~($1.C / $1.datawr)) * $1.datawc)); //#24556 + $puti($1.tmpbits, 0, $1.bits); //#24557 + for (var _2u = $1.bits.length, _2t = $1.tmpbits.length - 1; _2u <= _2t; _2u += 1) { //#24561 + var _2w = $get($1.tmpbits, _2u - 1); //#24559 + $k[$j++] = _2u; //#24559 + $k[$j++] = _2w; //#24559 + if ((_2w % 2) == 0) { //#24559 + var _2x = $k[--$j]; //#24559 + $k[$j++] = $f(_2x + 1); //#24559 + } else { //#24559 + var _2y = $k[--$j]; //#24559 + $k[$j++] = $f(_2y - 1); //#24559 + } //#24559 + var _30 = $k[--$j]; //#24560 + $put($1.tmpbits, $k[--$j], _30); //#24560 + } //#24560 + $1.bits = $1.tmpbits; //#24562 + $1.m0 = 22609 + 1; //#24566 + $1.m1 = 62509 - 65536; //#24566 + $1.m2 = 19605; //#24566 + $1.m3 = 32557; //#24566 $1.lcg64_temper = function() { - $1.p00 = $1.m0 * $1.s0; - $1.p01 = $1.m0 * $1.s1; - $1.p02 = $1.m0 * $1.s2; - $1.p03 = $1.m0 * $1.s3; - $1.p10 = $1.m1 * $1.s0; - $1.p11 = $1.m1 * $1.s1; - $1.p12 = $1.m1 * $1.s2; - $1.p13 = $1.m1 * $1.s3; - $1.p20 = $1.m2 * $1.s0; - $1.p21 = $1.m2 * $1.s1; - $1.p22 = $1.m2 * $1.s2; - $1.p23 = $1.m2 * $1.s3; - $1.p30 = $1.m3 * $1.s0; - $1.p31 = $1.m3 * $1.s1; - $1.p32 = $1.m3 * $1.s2; - $1.p33 = $1.m3 * $1.s3; - $1.s3 = $1.p33 % 65536 + 1; - $1.s2 = $1.p32 % 65536 + ~~($1.p33 / 65536) + $1.p23 % 65536; - $1.s1 = $1.p31 % 65536 + ~~($1.p32 / 65536) + ($1.p22 % 65536 + ~~($1.p23 / 65536)) + $1.p13 % 65536; - $1.s0 = $1.p30 % 65536 + ~~($1.p31 / 65536) + ($1.p21 % 65536 + ~~($1.p22 / 65536)) + ($1.p12 % 65536 + ~~($1.p13 / 65536)) + $1.p03 % 65536; - $1.s3 = $1.s3 + 65536; - $1.s2 = $1.s2 + 65535; - $1.s1 = $1.s1 + 65535; - $1.s0 = $1.s0 + 65535; - $1.s2 = ~~($1.s3 / 65536) + $1.s2; - $1.s3 = $1.s3 % 65536; - $1.s1 = ~~($1.s2 / 65536) + $1.s1; - $1.s2 = $1.s2 % 65536; - $1.s0 = ~~($1.s1 / 65536) + $1.s0; - $1.s1 = $1.s1 % 65536; - $1.s0 = $1.s0 % 65536; - var _45 = (($1.s0 - 32768) * 65536 + $1.s1 ^ 2147483648) & 4294967295; - var _46 = _45 ^ _45 >>> 11; - var _47 = _46 ^ _46 << 7 & -1658038656; - var _48 = (_47 ^ _47 << 15 & -272236544) & 4294967295; - $k[$j++] = _48 ^ _48 >>> 18; - }; + $1.p00 = $1.m0 * $1.s0; //#24572 + $1.p01 = $1.m0 * $1.s1; //#24572 + $1.p02 = $1.m0 * $1.s2; //#24572 + $1.p03 = $1.m0 * $1.s3; //#24572 + $1.p10 = $1.m1 * $1.s0; //#24573 + $1.p11 = $1.m1 * $1.s1; //#24573 + $1.p12 = $1.m1 * $1.s2; //#24573 + $1.p13 = $1.m1 * $1.s3; //#24573 + $1.p20 = $1.m2 * $1.s0; //#24574 + $1.p21 = $1.m2 * $1.s1; //#24574 + $1.p22 = $1.m2 * $1.s2; //#24574 + $1.p23 = $1.m2 * $1.s3; //#24574 + $1.p30 = $1.m3 * $1.s0; //#24575 + $1.p31 = $1.m3 * $1.s1; //#24575 + $1.p32 = $1.m3 * $1.s2; //#24575 + $1.p33 = $1.m3 * $1.s3; //#24575 + $1.s3 = ($1.p33 % 65536) + 1; //#24577 + $1.s2 = (($1.p32 % 65536) + (~~($1.p33 / 65536))) + ($1.p23 % 65536); //#24579 + $1.s1 = ((($1.p31 % 65536) + (~~($1.p32 / 65536))) + (($1.p22 % 65536) + (~~($1.p23 / 65536)))) + ($1.p13 % 65536); //#24582 + $1.s0 = (((($1.p30 % 65536) + (~~($1.p31 / 65536))) + (($1.p21 % 65536) + (~~($1.p22 / 65536)))) + (($1.p12 % 65536) + (~~($1.p13 / 65536)))) + ($1.p03 % 65536); //#24586 + $1.s3 = $1.s3 + 65536; //#24589 + $1.s2 = $1.s2 + 65535; //#24590 + $1.s1 = $1.s1 + 65535; //#24591 + $1.s0 = $1.s0 + 65535; //#24592 + $1.s2 = (~~($1.s3 / 65536)) + $1.s2; //#24595 + $1.s3 = $1.s3 % 65536; //#24595 + $1.s1 = (~~($1.s2 / 65536)) + $1.s1; //#24596 + $1.s2 = $1.s2 % 65536; //#24596 + $1.s0 = (~~($1.s1 / 65536)) + $1.s0; //#24597 + $1.s1 = $1.s1 % 65536; //#24597 + $1.s0 = $1.s0 % 65536; //#24598 + var _45 = (((($1.s0 - 32768) * 65536) + $1.s1) ^ 2147483648) & 4294967295; //#24603 + var _46 = _45 ^ (_45 >>> 11); //#24604 + var _47 = _46 ^ ((_46 << 7) & -1658038656); //#24605 + var _48 = (_47 ^ ((_47 << 15) & -272236544)) & 4294967295; //#24607 + $k[$j++] = _48 ^ (_48 >>> 18); //#24607 + }; //#24609 $1.createMatrixA = function() { - $k[$j++] = "nb_pcb"; - if ($1.wr < 4) { - $k[$j++] = ~~($1.Pg_sub_block / 2); - } else { - $k[$j++] = ~~($1.Pg_sub_block / $1.wr) * $1.wc; - } - var _4E = $k[--$j]; - $1[$k[--$j]] = _4E; - $1.offset = ~~Math.ceil($1.Pg_sub_block / 32); - $1.effwidth = $1.offset * 32; - $1.matrixA = $a($1.offset * $1.nb_pcb); - for (var _4O = 0, _4N = $1.offset * $1.nb_pcb - 1; _4O <= _4N; _4O += 1) { - $put($1.matrixA, _4O, 0); - } - $1.permutation = $a($1.Pg_sub_block); - for (var _4U = 0, _4T = $1.Pg_sub_block - 1; _4U <= _4T; _4U += 1) { - $put($1.permutation, _4U, _4U); - } - for (var _4Z = 0, _4Y = ~~($1.Pg_sub_block / $1.wr) - 1; _4Z <= _4Y; _4Z += 1) { - $1.i = _4Z; - for (var _4c = 0, _4b = $f($1.wr - 1); _4c <= _4b; _4c += 1) { - $1.j = _4c; - var _4d = $1.matrixA; - var _4e = $1.i; - var _4f = $1.effwidth; - var _4g = $1.wr; - var _4h = $1.j; - var _4n = $f(31 - $f($1.i * $f($1.effwidth + $1.wr) + $1.j) % 32); - $put(_4d, ~~($f(_4e * $f(_4f + _4g) + _4h) / 32), $get(_4d, ~~($f(_4e * $f(_4f + _4g) + _4h) / 32)) | (_4n < 0 ? 1 >>> -_4n : 1 << _4n)); - } - } - $1.s0 = 0; - $1.s1 = 0; - $1.s2 = 11; - $1.s3 = 64569; - for (var _4q = 1, _4p = $f($1.wc - 1); _4q <= _4p; _4q += 1) { - $1.i = _4q; - $1.off_index = ~~($1.Pg_sub_block / $1.wr) * $1.i; - for (var _4w = 0, _4v = $1.Pg_sub_block - 1; _4w <= _4v; _4w += 1) { - $1.j = _4w; - $1.lcg64_temper(); - var _4x = $k[--$j]; - $k[$j++] = _4x; - if (_4x < 0) { - var _4y = $k[--$j]; - $k[$j++] = $f((_4y ^ 2147483648) + 2147483648); - } - $1.pos = ~~($k[--$j] / 4294967296 * ($1.Pg_sub_block - $1.j)); - for (var _55 = 0, _54 = ~~($1.Pg_sub_block / $1.wr) - 1; _55 <= _54; _55 += 1) { - $1.k = _55; - var _56 = $1.matrixA; - var _57 = $1.off_index; - var _58 = $1.k; - var _59 = $1.offset; - var _5A = $1.j; - var _5I = $get($1.matrixA, ~~($get($1.permutation, $1.pos) / 32) + $1.k * $1.offset); - var _5M = -$f(31 - $get($1.permutation, $1.pos) % 32); - var _5O = 31 - $1.j % 32; - $put(_56, (_57 + _58) * _59 + ~~(_5A / 32), $get(_56, (_57 + _58) * _59 + ~~(_5A / 32)) | (_5O < 0 ? ((_5M < 0 ? _5I >>> -_5M : _5I << _5M) & 1) >>> -_5O : ((_5M < 0 ? _5I >>> -_5M : _5I << _5M) & 1) << _5O)); - } - var _5R = $1.permutation; - var _5S = $1.Pg_sub_block; - var _5T = $1.j; - $put(_5R, _5S - 1 - _5T, $get($1.permutation, $1.pos)); - $put($1.permutation, $1.pos, $get(_5R, _5S - 1 - _5T)); - } - } - }; + $k[$j++] = 'nb_pcb'; //#24613 + if ($1.wr < 4) { //#24613 + $k[$j++] = ~~($1.Pg_sub_block / 2); //#24613 + } else { //#24613 + $k[$j++] = (~~($1.Pg_sub_block / $1.wr)) * $1.wc; //#24613 + } //#24613 + var _4E = $k[--$j]; //#24613 + $1[$k[--$j]] = _4E; //#24613 + $1.offset = ~~Math.ceil($1.Pg_sub_block / 32); //#24614 + $1.effwidth = $1.offset * 32; //#24615 + $1.matrixA = $a($1.offset * $1.nb_pcb); //#24616 + for (var _4O = 0, _4N = ($1.offset * $1.nb_pcb) - 1; _4O <= _4N; _4O += 1) { //#24617 + $put($1.matrixA, _4O, 0); //#24617 + } //#24617 + $1.permutation = $a($1.Pg_sub_block); //#24618 + for (var _4U = 0, _4T = $1.Pg_sub_block - 1; _4U <= _4T; _4U += 1) { //#24619 + $put($1.permutation, _4U, _4U); //#24619 + } //#24619 + for (var _4Z = 0, _4Y = (~~($1.Pg_sub_block / $1.wr)) - 1; _4Z <= _4Y; _4Z += 1) { //#24628 + $1.i = _4Z; //#24622 + for (var _4c = 0, _4b = $f($1.wr - 1); _4c <= _4b; _4c += 1) { //#24627 + $1.j = _4c; //#24624 + var _4d = $1.matrixA; //#24625 + var _4e = $1.i; //#24625 + var _4f = $1.effwidth; //#24625 + var _4g = $1.wr; //#24625 + var _4h = $1.j; //#24625 + var _4n = $f(31 - (($f(($1.i * $f($1.effwidth + $1.wr)) + $1.j)) % 32)); //#24626 + $put(_4d, ~~(($f((_4e * $f(_4f + _4g)) + _4h)) / 32), $get(_4d, ~~(($f((_4e * $f(_4f + _4g)) + _4h)) / 32)) | ((_4n < 0 ? 1 >>> -_4n : 1 << _4n))); //#24626 + } //#24626 + } //#24626 + $1.s0 = 0; //#24631 + $1.s1 = 0; //#24631 + $1.s2 = 11; //#24631 + $1.s3 = 64569; //#24631 + for (var _4q = 1, _4p = $f($1.wc - 1); _4q <= _4p; _4q += 1) { //#24654 + $1.i = _4q; //#24633 + $1.off_index = (~~($1.Pg_sub_block / $1.wr)) * $1.i; //#24634 + for (var _4w = 0, _4v = $1.Pg_sub_block - 1; _4w <= _4v; _4w += 1) { //#24653 + $1.j = _4w; //#24636 + $1.lcg64_temper(); //#24637 + var _4x = $k[--$j]; //#24638 + $k[$j++] = _4x; //#24638 + if (_4x < 0) { //#24638 + var _4y = $k[--$j]; //#24638 + $k[$j++] = $f((_4y ^ 2147483648) + 2147483648); //#24638 + } //#24638 + $1.pos = ~~(($k[--$j] / 4294967296) * ($1.Pg_sub_block - $1.j)); //#24640 + for (var _55 = 0, _54 = (~~($1.Pg_sub_block / $1.wr)) - 1; _55 <= _54; _55 += 1) { //#24649 + $1.k = _55; //#24642 + var _56 = $1.matrixA; //#24643 + var _57 = $1.off_index; //#24643 + var _58 = $1.k; //#24643 + var _59 = $1.offset; //#24643 + var _5A = $1.j; //#24643 + var _5I = $get($1.matrixA, (~~($get($1.permutation, $1.pos) / 32)) + ($1.k * $1.offset)); //#24645 + var _5M = -($f(31 - ($get($1.permutation, $1.pos) % 32))); //#24646 + var _5O = 31 - ($1.j % 32); //#24647 + $put(_56, ((_57 + _58) * _59) + (~~(_5A / 32)), $get(_56, ((_57 + _58) * _59) + (~~(_5A / 32))) | ((_5O < 0 ? (((_5M < 0 ? _5I >>> -_5M : _5I << _5M)) & 1) >>> -_5O : (((_5M < 0 ? _5I >>> -_5M : _5I << _5M)) & 1) << _5O))); //#24648 + } //#24648 + var _5R = $1.permutation; //#24650 + var _5S = $1.Pg_sub_block; //#24650 + var _5T = $1.j; //#24650 + $put(_5R, (_5S - 1) - _5T, $get($1.permutation, $1.pos)); //#24652 + $put($1.permutation, $1.pos, $get(_5R, (_5S - 1) - _5T)); //#24652 + } //#24652 + } //#24652 + }; //#24656 $1.createMetadataMatrixA = function() { - $1.nb_pcb = ~~($1.Pg_sub_block / 2); - $1.offset = ~~Math.ceil($1.Pg_sub_block / 32); - $1.matrixA = $a($1.offset * $1.nb_pcb); - for (var _5g = 0, _5f = $1.offset * $1.nb_pcb - 1; _5g <= _5f; _5g += 1) { - $put($1.matrixA, _5g, 0); - } - $1.permutation = $a($1.Pg_sub_block); - for (var _5m = 0, _5l = $1.Pg_sub_block - 1; _5m <= _5l; _5m += 1) { - $put($1.permutation, _5m, _5m); - } - $1.s0 = 0; - $1.s1 = 0; - $1.s2 = 0; - $1.s3 = 38545; - $1.nb_once = ~~(~~$f($1.nb_pcb / $1.wc * $1.Pg_sub_block + 3) / $1.nb_pcb); - for (var _5u = 0, _5t = $1.nb_pcb - 1; _5u <= _5t; _5u += 1) { - $1.i = _5u; - for (var _5x = 0, _5w = $1.nb_once - 1; _5x <= _5w; _5x += 1) { - $1.j = _5x; - $1.lcg64_temper(); - var _5y = $k[--$j]; - $k[$j++] = _5y; - if (_5y < 0) { - var _5z = $k[--$j]; - $k[$j++] = $f((_5z ^ 2147483648) + 2147483648); - } - $1.pos = ~~($k[--$j] / 4294967296 * ($1.Pg_sub_block - $1.j)); - var _63 = $1.matrixA; - var _64 = $1.i; - var _65 = $1.offset; - var _68 = $get($1.permutation, $1.pos); - var _6D = $f(31 - $get($1.permutation, $1.pos) % 32); - $put(_63, _64 * _65 + ~~(_68 / 32), $get(_63, _64 * _65 + ~~(_68 / 32)) | (_6D < 0 ? 1 >>> -_6D : 1 << _6D)); - var _6G = $1.permutation; - var _6H = $1.Pg_sub_block; - var _6I = $1.j; - $put(_6G, _6H - 1 - _6I, $get($1.permutation, $1.pos)); - $put($1.permutation, $1.pos, $get(_6G, _6H - 1 - _6I)); - } - } - }; + $1.nb_pcb = ~~($1.Pg_sub_block / 2); //#24660 + $1.offset = ~~Math.ceil($1.Pg_sub_block / 32); //#24661 + $1.matrixA = $a($1.offset * $1.nb_pcb); //#24662 + for (var _5g = 0, _5f = ($1.offset * $1.nb_pcb) - 1; _5g <= _5f; _5g += 1) { //#24663 + $put($1.matrixA, _5g, 0); //#24663 + } //#24663 + $1.permutation = $a($1.Pg_sub_block); //#24664 + for (var _5m = 0, _5l = $1.Pg_sub_block - 1; _5m <= _5l; _5m += 1) { //#24665 + $put($1.permutation, _5m, _5m); //#24665 + } //#24665 + $1.s0 = 0; //#24668 + $1.s1 = 0; //#24668 + $1.s2 = 0; //#24668 + $1.s3 = 38545; //#24668 + $1.nb_once = ~~((~~($f((($1.nb_pcb / $1.wc) * $1.Pg_sub_block) + 3))) / $1.nb_pcb); //#24669 + for (var _5u = 0, _5t = $1.nb_pcb - 1; _5u <= _5t; _5u += 1) { //#24684 + $1.i = _5u; //#24671 + for (var _5x = 0, _5w = $1.nb_once - 1; _5x <= _5w; _5x += 1) { //#24683 + $1.j = _5x; //#24673 + $1.lcg64_temper(); //#24674 + var _5y = $k[--$j]; //#24675 + $k[$j++] = _5y; //#24675 + if (_5y < 0) { //#24675 + var _5z = $k[--$j]; //#24675 + $k[$j++] = $f((_5z ^ 2147483648) + 2147483648); //#24675 + } //#24675 + $1.pos = ~~(($k[--$j] / 4294967296) * ($1.Pg_sub_block - $1.j)); //#24677 + var _63 = $1.matrixA; //#24678 + var _64 = $1.i; //#24678 + var _65 = $1.offset; //#24678 + var _68 = $get($1.permutation, $1.pos); //#24678 + var _6D = $f(31 - ($get($1.permutation, $1.pos) % 32)); //#24679 + $put(_63, (_64 * _65) + (~~(_68 / 32)), $get(_63, (_64 * _65) + (~~(_68 / 32))) | ((_6D < 0 ? 1 >>> -_6D : 1 << _6D))); //#24679 + var _6G = $1.permutation; //#24680 + var _6H = $1.Pg_sub_block; //#24680 + var _6I = $1.j; //#24680 + $put(_6G, (_6H - 1) - _6I, $get($1.permutation, $1.pos)); //#24682 + $put($1.permutation, $1.pos, $get(_6G, (_6H - 1) - _6I)); //#24682 + } //#24682 + } //#24682 + }; //#24686 $1.GaussJordan = function() { - $k[$j++] = "nb_pcb"; - if ($1.wr < 4) { - $k[$j++] = ~~($1.Pg_sub_block / 2); - } else { - $k[$j++] = ~~($1.Pg_sub_block / $1.wr) * $1.wc; - } - var _6S = $k[--$j]; - $1[$k[--$j]] = _6S; - $1.offset = ~~Math.ceil($1.Pg_sub_block / 32); - var _6V = $1.matrixA; - $1.matrixH = $arrcpy($a(_6V.length), _6V); - $k[$j++] = Infinity; - for (var _6Z = 0, _6a = $1.Pg_sub_block; _6Z < _6a; _6Z++) { - $k[$j++] = 0; - } - $1.column_arrangement = $a(); - $k[$j++] = Infinity; - for (var _6d = 0, _6e = $1.Pg_sub_block; _6d < _6e; _6d++) { - $k[$j++] = false; - } - $1.processed_column = $a(); - $k[$j++] = Infinity; - for (var _6h = 0, _6i = $1.nb_pcb; _6h < _6i; _6h++) { - $k[$j++] = 0; - } - $1.zero_lines_nb = $a(); - $k[$j++] = Infinity; - for (var _6l = 0, _6m = $1.Pg_sub_block * 2; _6l < _6m; _6l++) { - $k[$j++] = 0; - } - $1.swap_col = $a(); - $1.zero_lines = 0; - $1.loop0 = 0; - for (var _6q = 0, _6p = $1.nb_pcb - 1; _6q <= _6p; _6q += 1) { - $1.i = _6q; - $1.pivot_column = $1.Pg_sub_block + 1; - for (var _6u = 0, _6t = $1.Pg_sub_block - 1; _6u <= _6t; _6u += 1) { - $1.j = _6u; - var _6z = $get($1.matrixH, ~~(($1.offset * 32 * $1.i + $1.j) / 32)); - var _73 = -(31 - ($1.offset * 32 * $1.i + $1.j) % 32); - if (((_73 < 0 ? _6z >>> -_73 : _6z << _73) & 1) == 1) { - $1.pivot_column = $1.j; - break; - } - } - if ($1.pivot_column < $1.Pg_sub_block) { - $put($1.processed_column, $1.pivot_column, true); - $put($1.column_arrangement, $1.pivot_column, $1.i); - if ($1.pivot_column >= $1.nb_pcb) { - $put($1.swap_col, $1.loop0 * 2, $1.pivot_column); - $1.loop0 = $1.loop0 + 1; - } - $1.off_index = ~~($1.pivot_column / 32); - $1.off_index1 = $1.pivot_column % 32; - for (var _7M = 0, _7L = $1.nb_pcb - 1; _7M <= _7L; _7M += 1) { - $1.j = _7M; - if ($1.i != $1.j) { - var _7T = $get($1.matrixH, $1.off_index + $1.j * $1.offset); - var _7V = -(31 - $1.off_index1); - if (((_7V < 0 ? _7T >>> -_7V : _7T << _7V) & 1) == 1) { - for (var _7Y = 0, _7X = $1.offset - 1; _7Y <= _7X; _7Y += 1) { - $1.k = _7Y; - var _7Z = $1.matrixH; - var _7a = $1.offset; - var _7b = $1.j; - var _7c = $1.k; - $put(_7Z, _7a * _7b + _7c, $xo($get(_7Z, _7a * _7b + _7c), $get($1.matrixH, $1.offset * $1.i + $1.k))); - } - } - } - } - } else { - $put($1.zero_lines_nb, $1.zero_lines, $1.i); - $1.zero_lines = $1.zero_lines + 1; - } - } - $1.matrix_rank = $1.nb_pcb - $1.zero_lines; - $1.loop2 = 0; - for (var _7s = $1.matrix_rank, _7r = $1.nb_pcb - 1; _7s <= _7r; _7s += 1) { - $1.i = _7s; - if ($get($1.column_arrangement, $1.i) > 0) { - for (var _7y = 0, _7x = $1.nb_pcb - 1; _7y <= _7x; _7y += 1) { - $1.j = _7y; - if ($nt($get($1.processed_column, $1.j))) { - $put($1.column_arrangement, $1.j, $get($1.column_arrangement, $1.i)); - $put($1.column_arrangement, $1.i, 0); - $put($1.processed_column, $1.j, true); - $put($1.processed_column, $1.i, false); - $put($1.swap_col, $1.loop0 * 2, $1.i); - $put($1.swap_col, $1.loop0 * 2 + 1, $1.j); - $put($1.column_arrangement, $1.i, $1.j); - $1.loop0 = $1.loop0 + 1; - $1.loop2 = $1.loop2 + 1; - break; - } - } - } - } - $1.loop1 = 0; - for (var _8Q = 0, _8P = $1.nb_pcb - 1; _8Q <= _8P; _8Q += 1) { - $1.kl = _8Q; - if ($nt($get($1.processed_column, $1.kl)) && $1.loop1 < $1.loop0 - $1.loop2) { - $put($1.column_arrangement, $1.kl, $get($1.column_arrangement, $get($1.swap_col, $1.loop1 * 2))); - $put($1.processed_column, $1.kl, true); - $put($1.swap_col, $1.loop1 * 2 + 1, $1.kl); - $1.loop1 = $1.loop1 + 1; - } - } - $1.loop1 = 0; - for (var _8m = 0, _8l = $1.nb_pcb - 1; _8m <= _8l; _8m += 1) { - $1.kl = _8m; - if ($nt($get($1.processed_column, $1.kl))) { - $put($1.column_arrangement, $1.kl, $get($1.zero_lines_nb, $1.loop1)); - $1.loop1 = $1.loop1 + 1; - } - } - for (var _8y = 0, _8x = $1.nb_pcb - 1; _8y <= _8x; _8y += 1) { - $1.i = _8y; - for (var _91 = 0, _90 = $1.offset - 1; _91 <= _90; _91 += 1) { - $1.j = _91; - $put($1.matrixA, $1.i * $1.offset + $1.j, $get($1.matrixH, $f($get($1.column_arrangement, $1.i) * $1.offset + $1.j))); - } - } - $1.tmp = 0; - for (var _9F = 0, _9E = $1.loop0 - 1; _9F <= _9E; _9F += 1) { - $1.i = _9F; - for (var _9I = 0, _9H = $1.nb_pcb - 1; _9I <= _9H; _9I += 1) { - $1.j = _9I; - var _9P = $get($1.matrixA, ~~($get($1.swap_col, $1.i * 2) / 32) + $1.j * $1.offset); - var _9T = -$f(31 - $get($1.swap_col, $1.i * 2) % 32); - $1.tmp = (-((_9T < 0 ? _9P >>> -_9T : _9P << _9T) & 1) ^ $1.tmp) & 1 ^ $1.tmp; - var _9W = $1.matrixA; - var _9Z = $get($1.swap_col, $1.i * 2); - var _9a = $1.j; - var _9b = $1.offset; - var _9j = $get($1.matrixA, ~~($get($1.swap_col, $1.i * 2 + 1) / 32) + $1.j * $1.offset); - var _9n = -$f(31 - $get($1.swap_col, $1.i * 2 + 1) % 32); - var _9y = $f(31 - $get($1.swap_col, $1.i * 2) % 32); - $put(_9W, ~~(_9Z / 32) + _9a * _9b, $get(_9W, ~~(_9Z / 32) + _9a * _9b) ^ (-((_9n < 0 ? _9j >>> -_9n : _9j << _9n) & 1) ^ $get($1.matrixA, ~~($get($1.swap_col, $1.i * 2) / 32) + $1.j * $1.offset)) & (_9y < 0 ? 1 >>> -_9y : 1 << _9y)); - var _9z = $1.matrixA; - var _A2 = $get($1.swap_col, $1.i * 2 + 1); - var _A3 = $1.j; - var _A4 = $1.offset; - var _AH = $f(31 - $get($1.swap_col, $1.i * 2 + 1) % 32); - $put(_9z, ~~(_A2 / 32) + _A3 * _A4, $get(_9z, ~~(_A2 / 32) + _A3 * _A4) ^ (-($1.tmp & 1) ^ $get($1.matrixA, ~~($get($1.swap_col, $1.i * 2 + 1) / 32) + $1.j * $1.offset)) & (_AH < 0 ? 1 >>> -_AH : 1 << _AH)); - } - } - }; + $k[$j++] = 'nb_pcb'; //#24690 + if ($1.wr < 4) { //#24690 + $k[$j++] = ~~($1.Pg_sub_block / 2); //#24690 + } else { //#24690 + $k[$j++] = (~~($1.Pg_sub_block / $1.wr)) * $1.wc; //#24690 + } //#24690 + var _6S = $k[--$j]; //#24690 + $1[$k[--$j]] = _6S; //#24690 + $1.offset = ~~Math.ceil($1.Pg_sub_block / 32); //#24691 + var _6V = $1.matrixA; //#24692 + $1.matrixH = $arrcpy($a(_6V.length), _6V); //#24692 + $k[$j++] = Infinity; //#24693 + for (var _6Z = 0, _6a = $1.Pg_sub_block; _6Z < _6a; _6Z++) { //#24693 + $k[$j++] = 0; //#24693 + } //#24693 + $1.column_arrangement = $a(); //#24693 + $k[$j++] = Infinity; //#24694 + for (var _6d = 0, _6e = $1.Pg_sub_block; _6d < _6e; _6d++) { //#24694 + $k[$j++] = false; //#24694 + } //#24694 + $1.processed_column = $a(); //#24694 + $k[$j++] = Infinity; //#24695 + for (var _6h = 0, _6i = $1.nb_pcb; _6h < _6i; _6h++) { //#24695 + $k[$j++] = 0; //#24695 + } //#24695 + $1.zero_lines_nb = $a(); //#24695 + $k[$j++] = Infinity; //#24696 + for (var _6l = 0, _6m = $1.Pg_sub_block * 2; _6l < _6m; _6l++) { //#24696 + $k[$j++] = 0; //#24696 + } //#24696 + $1.swap_col = $a(); //#24696 + $1.zero_lines = 0; //#24697 + $1.loop0 = 0; //#24699 + for (var _6q = 0, _6p = $1.nb_pcb - 1; _6q <= _6p; _6q += 1) { //#24737 + $1.i = _6q; //#24701 + $1.pivot_column = $1.Pg_sub_block + 1; //#24702 + for (var _6u = 0, _6t = $1.Pg_sub_block - 1; _6u <= _6t; _6u += 1) { //#24710 + $1.j = _6u; //#24704 + var _6z = $get($1.matrixH, ~~(((($1.offset * 32) * $1.i) + $1.j) / 32)); //#24705 + var _73 = -(31 - (((($1.offset * 32) * $1.i) + $1.j) % 32)); //#24706 + if ((((_73 < 0 ? _6z >>> -_73 : _6z << _73)) & 1) == 1) { //#24709 + $1.pivot_column = $1.j; //#24707 + break; //#24708 + } //#24708 + } //#24708 + if ($1.pivot_column < $1.Pg_sub_block) { //#24735 + $put($1.processed_column, $1.pivot_column, true); //#24712 + $put($1.column_arrangement, $1.pivot_column, $1.i); //#24713 + if ($1.pivot_column >= $1.nb_pcb) { //#24717 + $put($1.swap_col, $1.loop0 * 2, $1.pivot_column); //#24715 + $1.loop0 = $1.loop0 + 1; //#24716 + } //#24716 + $1.off_index = ~~($1.pivot_column / 32); //#24718 + $1.off_index1 = $1.pivot_column % 32; //#24719 + for (var _7M = 0, _7L = $1.nb_pcb - 1; _7M <= _7L; _7M += 1) { //#24732 + $1.j = _7M; //#24721 + if ($1.i != $1.j) { //#24731 + var _7T = $get($1.matrixH, $1.off_index + ($1.j * $1.offset)); //#24723 + var _7V = -(31 - $1.off_index1); //#24724 + if ((((_7V < 0 ? _7T >>> -_7V : _7T << _7V)) & 1) == 1) { //#24730 + for (var _7Y = 0, _7X = $1.offset - 1; _7Y <= _7X; _7Y += 1) { //#24729 + $1.k = _7Y; //#24726 + var _7Z = $1.matrixH; //#24727 + var _7a = $1.offset; //#24727 + var _7b = $1.j; //#24727 + var _7c = $1.k; //#24727 + $put(_7Z, (_7a * _7b) + _7c, $xo($get(_7Z, (_7a * _7b) + _7c), $get($1.matrixH, ($1.offset * $1.i) + $1.k))); //#24728 + } //#24728 + } //#24728 + } //#24728 + } //#24728 + } else { //#24735 + $put($1.zero_lines_nb, $1.zero_lines, $1.i); //#24734 + $1.zero_lines = $1.zero_lines + 1; //#24735 + } //#24735 + } //#24735 + $1.matrix_rank = $1.nb_pcb - $1.zero_lines; //#24739 + $1.loop2 = 0; //#24740 + for (var _7s = $1.matrix_rank, _7r = $1.nb_pcb - 1; _7s <= _7r; _7s += 1) { //#24760 + $1.i = _7s; //#24742 + if ($get($1.column_arrangement, $1.i) > 0) { //#24759 + for (var _7y = 0, _7x = $1.nb_pcb - 1; _7y <= _7x; _7y += 1) { //#24758 + $1.j = _7y; //#24745 + if ($nt($get($1.processed_column, $1.j))) { //#24757 + $put($1.column_arrangement, $1.j, $get($1.column_arrangement, $1.i)); //#24747 + $put($1.column_arrangement, $1.i, 0); //#24748 + $put($1.processed_column, $1.j, true); //#24749 + $put($1.processed_column, $1.i, false); //#24750 + $put($1.swap_col, $1.loop0 * 2, $1.i); //#24751 + $put($1.swap_col, ($1.loop0 * 2) + 1, $1.j); //#24752 + $put($1.column_arrangement, $1.i, $1.j); //#24753 + $1.loop0 = $1.loop0 + 1; //#24754 + $1.loop2 = $1.loop2 + 1; //#24755 + break; //#24756 + } //#24756 + } //#24756 + } //#24756 + } //#24756 + $1.loop1 = 0; //#24762 + for (var _8Q = 0, _8P = $1.nb_pcb - 1; _8Q <= _8P; _8Q += 1) { //#24771 + $1.kl = _8Q; //#24764 + if ($nt($get($1.processed_column, $1.kl)) && ($1.loop1 < ($1.loop0 - $1.loop2))) { //#24770 + $put($1.column_arrangement, $1.kl, $get($1.column_arrangement, $get($1.swap_col, $1.loop1 * 2))); //#24766 + $put($1.processed_column, $1.kl, true); //#24767 + $put($1.swap_col, ($1.loop1 * 2) + 1, $1.kl); //#24768 + $1.loop1 = $1.loop1 + 1; //#24769 + } //#24769 + } //#24769 + $1.loop1 = 0; //#24773 + for (var _8m = 0, _8l = $1.nb_pcb - 1; _8m <= _8l; _8m += 1) { //#24780 + $1.kl = _8m; //#24775 + if ($nt($get($1.processed_column, $1.kl))) { //#24779 + $put($1.column_arrangement, $1.kl, $get($1.zero_lines_nb, $1.loop1)); //#24777 + $1.loop1 = $1.loop1 + 1; //#24778 + } //#24778 + } //#24778 + for (var _8y = 0, _8x = $1.nb_pcb - 1; _8y <= _8x; _8y += 1) { //#24789 + $1.i = _8y; //#24783 + for (var _91 = 0, _90 = $1.offset - 1; _91 <= _90; _91 += 1) { //#24788 + $1.j = _91; //#24785 + $put($1.matrixA, ($1.i * $1.offset) + $1.j, $get($1.matrixH, $f(($get($1.column_arrangement, $1.i) * $1.offset) + $1.j))); //#24787 + } //#24787 + } //#24787 + $1.tmp = 0; //#24791 + for (var _9F = 0, _9E = $1.loop0 - 1; _9F <= _9E; _9F += 1) { //#24813 + $1.i = _9F; //#24793 + for (var _9I = 0, _9H = $1.nb_pcb - 1; _9I <= _9H; _9I += 1) { //#24812 + $1.j = _9I; //#24795 + var _9P = $get($1.matrixA, (~~($get($1.swap_col, $1.i * 2) / 32)) + ($1.j * $1.offset)); //#24796 + var _9T = -($f(31 - ($get($1.swap_col, $1.i * 2) % 32))); //#24797 + $1.tmp = (((-(((_9T < 0 ? _9P >>> -_9T : _9P << _9T)) & 1)) ^ $1.tmp) & 1) ^ $1.tmp; //#24798 + var _9W = $1.matrixA; //#24799 + var _9Z = $get($1.swap_col, $1.i * 2); //#24799 + var _9a = $1.j; //#24799 + var _9b = $1.offset; //#24799 + var _9j = $get($1.matrixA, (~~($get($1.swap_col, ($1.i * 2) + 1) / 32)) + ($1.j * $1.offset)); //#24801 + var _9n = -($f(31 - ($get($1.swap_col, ($1.i * 2) + 1) % 32))); //#24802 + var _9y = $f(31 - ($get($1.swap_col, $1.i * 2) % 32)); //#24804 + $put(_9W, (~~(_9Z / 32)) + (_9a * _9b), $get(_9W, (~~(_9Z / 32)) + (_9a * _9b)) ^ (((-(((_9n < 0 ? _9j >>> -_9n : _9j << _9n)) & 1)) ^ $get($1.matrixA, (~~($get($1.swap_col, $1.i * 2) / 32)) + ($1.j * $1.offset))) & ((_9y < 0 ? 1 >>> -_9y : 1 << _9y)))); //#24805 + var _9z = $1.matrixA; //#24806 + var _A2 = $get($1.swap_col, ($1.i * 2) + 1); //#24806 + var _A3 = $1.j; //#24806 + var _A4 = $1.offset; //#24806 + var _AH = $f(31 - ($get($1.swap_col, ($1.i * 2) + 1) % 32)); //#24810 + $put(_9z, (~~(_A2 / 32)) + (_A3 * _A4), $get(_9z, (~~(_A2 / 32)) + (_A3 * _A4)) ^ (((-($1.tmp & 1)) ^ $get($1.matrixA, (~~($get($1.swap_col, ($1.i * 2) + 1) / 32)) + ($1.j * $1.offset))) & ((_AH < 0 ? 1 >>> -_AH : 1 << _AH)))); //#24811 + } //#24811 + } //#24811 + }; //#24815 $1.createGeneratorMatrix = function() { - $1.pn = $1.Pg_sub_block - $1.matrix_rank; - $1.offset = ~~Math.ceil($1.pn / 32); - $1.effwidth = $1.offset * 32; - $1.offset_cap = ~~Math.ceil($1.Pg_sub_block / 32); - $1.G = $a($1.offset * $1.Pg_sub_block); - for (var _AT = 0, _AS = $1.offset * $1.Pg_sub_block - 1; _AT <= _AS; _AT += 1) { - $put($1.G, _AT, 0); - } - for (var _AX = 0, _AW = $1.pn - 1; _AX <= _AW; _AX += 1) { - $1.i = _AX; - var _AY = $1.G; - var _AZ = $1.Pg_sub_block; - var _Aa = $1.pn; - var _Ab = $1.i; - var _Ac = $1.offset; - var _Ad = $1.i; - var _Ag = 31 - $1.i % 32; - $put(_AY, (_AZ - _Aa + _Ab) * _Ac + ~~(_Ad / 32), $get(_AY, (_AZ - _Aa + _Ab) * _Ac + ~~(_Ad / 32)) | (_Ag < 0 ? 1 >>> -_Ag : 1 << _Ag)); - } - $1.matrix_index = $1.Pg_sub_block - $1.pn; - $1.loop0 = 0; - for (var _An = 0, _Am = ($1.Pg_sub_block - $1.pn) * $1.effwidth - 1; _An <= _Am; _An += 1) { - $1.i = _An; - if ($1.matrix_index >= $1.Pg_sub_block) { - $1.loop0 = $1.loop0 + 1; - $1.matrix_index = $1.Pg_sub_block - $1.pn; - } - if ($1.i % $1.effwidth < $1.pn) { - var _Aw = $1.G; - var _Ax = $1.i; - var _B3 = $get($1.matrixA, ~~($1.matrix_index / 32) + $1.offset_cap * $1.loop0); - var _B5 = -(31 - $1.matrix_index % 32); - var _BA = 31 - $1.i % 32; - $put(_Aw, ~~(_Ax / 32), $get(_Aw, ~~(_Ax / 32)) ^ (-((_B5 < 0 ? _B3 >>> -_B5 : _B3 << _B5) & 1) ^ $get($1.G, ~~($1.i / 32))) & (_BA < 0 ? 1 >>> -_BA : 1 << _BA)); - $1.matrix_index = $1.matrix_index + 1; - } - } - }; + $1.pn = $1.Pg_sub_block - $1.matrix_rank; //#24819 + $1.offset = ~~Math.ceil($1.pn / 32); //#24820 + $1.effwidth = $1.offset * 32; //#24821 + $1.offset_cap = ~~Math.ceil($1.Pg_sub_block / 32); //#24822 + $1.G = $a($1.offset * $1.Pg_sub_block); //#24823 + for (var _AT = 0, _AS = ($1.offset * $1.Pg_sub_block) - 1; _AT <= _AS; _AT += 1) { //#24826 + $put($1.G, _AT, 0); //#24825 + } //#24825 + for (var _AX = 0, _AW = $1.pn - 1; _AX <= _AW; _AX += 1) { //#24831 + $1.i = _AX; //#24828 + var _AY = $1.G; //#24829 + var _AZ = $1.Pg_sub_block; //#24829 + var _Aa = $1.pn; //#24829 + var _Ab = $1.i; //#24829 + var _Ac = $1.offset; //#24829 + var _Ad = $1.i; //#24829 + var _Ag = 31 - ($1.i % 32); //#24830 + $put(_AY, (((_AZ - _Aa) + _Ab) * _Ac) + (~~(_Ad / 32)), $get(_AY, (((_AZ - _Aa) + _Ab) * _Ac) + (~~(_Ad / 32))) | ((_Ag < 0 ? 1 >>> -_Ag : 1 << _Ag))); //#24830 + } //#24830 + $1.matrix_index = $1.Pg_sub_block - $1.pn; //#24832 + $1.loop0 = 0; //#24833 + for (var _An = 0, _Am = (($1.Pg_sub_block - $1.pn) * $1.effwidth) - 1; _An <= _Am; _An += 1) { //#24850 + $1.i = _An; //#24835 + if ($1.matrix_index >= $1.Pg_sub_block) { //#24839 + $1.loop0 = $1.loop0 + 1; //#24837 + $1.matrix_index = $1.Pg_sub_block - $1.pn; //#24838 + } //#24838 + if (($1.i % $1.effwidth) < $1.pn) { //#24849 + var _Aw = $1.G; //#24841 + var _Ax = $1.i; //#24841 + var _B3 = $get($1.matrixA, (~~($1.matrix_index / 32)) + ($1.offset_cap * $1.loop0)); //#24843 + var _B5 = -(31 - ($1.matrix_index % 32)); //#24844 + var _BA = 31 - ($1.i % 32); //#24846 + $put(_Aw, ~~(_Ax / 32), $get(_Aw, ~~(_Ax / 32)) ^ (((-(((_B5 < 0 ? _B3 >>> -_B5 : _B3 << _B5)) & 1)) ^ $get($1.G, ~~($1.i / 32))) & ((_BA < 0 ? 1 >>> -_BA : 1 << _BA)))); //#24847 + $1.matrix_index = $1.matrix_index + 1; //#24848 + } //#24848 + } //#24848 + }; //#24852 $1.ldpc = function() { - $1.wr = $k[--$j]; - $1.wc = $k[--$j]; - $k[$j++] = Infinity; - var _BE = $k[--$j]; - var _BF = $k[--$j]; - $k[$j++] = _BE; - $forall(_BF, function() { - var _BG = $k[--$j]; - $k[$j++] = $f(_BG - 48); - }); - $1.data = $a(); - $1.Pn = $1.data.length; - if ($1.wr != -1) { - $1.Pg = ~~(Math.ceil(Math.ceil($1.Pn * $1.wr / $f($1.wr - $1.wc)) / $1.wr) * $1.wr); - $1.nb_sub_blocks = ~~($1.Pg / 2700) + 1; - $1.Pg_sub_block = ~~(~~($1.Pg / $1.nb_sub_blocks) / $1.wr) * $1.wr; - $1.Pn_sub_block = ~~($1.Pg_sub_block * $f($1.wr - $1.wc) / $1.wr); - $1.nb_sub_blocks = ~~($1.Pg / $1.Pg_sub_block); - $k[$j++] = "encoding_iterations"; - $k[$j++] = ~~($1.Pg / $1.Pg_sub_block); - if ($1.Pn_sub_block * $1.nb_sub_blocks < $1.Pn) { - var _Bg = $k[--$j]; - $k[$j++] = $f(_Bg - 1); - } - var _Bh = $k[--$j]; - $1[$k[--$j]] = _Bh; - $1.createMatrixA(); - } else { - $1.Pg = $1.Pn * 2; - $1.nb_sub_blocks = 1; - $1.Pg_sub_block = $1.Pg; - $1.Pn_sub_block = $1.Pn; - $1.encoding_iterations = 1; - $1.createMetadataMatrixA(); - } - $1.GaussJordan(); - $1.createGeneratorMatrix(); - $1.ecc_encoded_data = $a($1.Pg); - $1.offset = ~~Math.ceil(($1.Pg_sub_block - $1.matrix_rank) / 32); - for (var _Bs = 0, _Br = $1.encoding_iterations - 1; _Bs <= _Br; _Bs += 1) { - $1.iter = _Bs; - for (var _Bv = 0, _Bu = $1.Pg_sub_block - 1; _Bv <= _Bu; _Bv += 1) { - $1.i = _Bv; - $1.temp = 0; - $1.loop0 = 0; - $1.offset_index = $1.offset * $1.i; - for (var _C3 = $1.iter * $1.Pn_sub_block, _C2 = ($1.iter + 1) * $1.Pn_sub_block - 1; _C3 <= _C2; _C3 += 1) { - var _C9 = $get($1.G, $1.offset_index + ~~($1.loop0 / 32)); - var _CB = -(31 - $1.loop0 % 32); - $1.temp = $get($1.data, _C3) & ((_CB < 0 ? _C9 >>> -_CB : _C9 << _CB) & 1) ^ $1.temp; - $1.loop0 = $1.loop0 + 1; - } - $put($1.ecc_encoded_data, $1.i + $1.iter * $1.Pg_sub_block, $1.temp); - } - } - if ($1.encoding_iterations != $1.nb_sub_blocks) { - $1.start = $1.encoding_iterations * $1.Pn_sub_block; - $1.last_index = $1.encoding_iterations * $1.Pg_sub_block; - $1.Pg_sub_block = $1.Pg - $1.encoding_iterations * $1.Pg_sub_block; - $1.Pn_sub_block = ~~($1.Pg_sub_block * $f($1.wr - $1.wc) / $1.wr); - $1.createMatrixA(); - $1.GaussJordan(); - $1.createGeneratorMatrix(); - $1.offset = ~~Math.ceil(($1.Pg_sub_block - $1.matrix_rank) / 32); - for (var _Ca = 0, _CZ = $1.Pg_sub_block - 1; _Ca <= _CZ; _Ca += 1) { - $1.i = _Ca; - $1.temp = 0; - $1.loop0 = 0; - $1.offset_index = $1.offset * $1.i; - for (var _Cg = $1.start, _Cf = $1.Pn - 1; _Cg <= _Cf; _Cg += 1) { - var _Cm = $get($1.G, $1.offset_index + ~~($1.loop0 / 32)); - var _Co = -(31 - $1.loop0 % 32); - $1.temp = $get($1.data, _Cg) & ((_Co < 0 ? _Cm >>> -_Co : _Cm << _Co) & 1) ^ $1.temp; - $1.loop0 = $1.loop0 + 1; - } - $put($1.ecc_encoded_data, $1.i + $1.last_index, $1.temp); - } - } - $1.out = $s($1.Pg); - for (var _Cz = 0, _Cy = $1.Pg - 1; _Cz <= _Cy; _Cz += 1) { - $put($1.out, _Cz, $f($get($1.ecc_encoded_data, _Cz) + 48)); - } - $k[$j++] = $1.out; - }; - $k[$j++] = "bits"; - $k[$j++] = $1.bits; - $k[$j++] = $1.datawc; - $k[$j++] = $1.datawr; - $1.ldpc(); - var _D7 = $k[--$j]; - $1[$k[--$j]] = _D7; - $1.s0 = 0; - $1.s1 = 0; - $1.s2 = 3; - $1.s3 = 30151; - for (var _DA = $1.bits.length - 1; _DA >= 1; _DA -= 1) { - $1.l = _DA; - $1.lcg64_temper(); - var _DB = $k[--$j]; - $k[$j++] = _DB; - if (_DB < 0) { - var _DC = $k[--$j]; - $k[$j++] = $f((_DC ^ 2147483648) + 2147483648); - } - $1.r = ~~($k[--$j] / 4294967296 * ($1.l + 1)); - $put($1.bits, $1.l, $get($1.bits, $1.r)); - $put($1.bits, $1.r, $get($1.bits, $1.l)); - } - $1.tmpbits = $s($1.C); - $puti($1.tmpbits, 0, $1.bits); - $1.j = $1.bits.length; - for (var _DW = 0, _DX = ~~($f($f($1.C - $1.j) + 1) / 2); _DW < _DX; _DW++) { - $put($1.tmpbits, $1.j, 48); - if ($1.j + 1 < $1.C) { - $put($1.tmpbits, $1.j + 1, 49); - } - $1.j = $1.j + 2; - } - $1.bits = $1.tmpbits; - if ($1.colors == 4) { - $1.bi = 0; - $1.gi = 1; - $1.mi = 2; - $1.yi = 3; - $1.ki = 4; - $1.wi = 5; - $k[$j++] = Infinity; - $k[$j++] = $1.bi; - $k[$j++] = "0000FF"; - $k[$j++] = $1.gi; - $k[$j++] = "00FF00"; - $k[$j++] = $1.mi; - $k[$j++] = "FF00FF"; - $k[$j++] = $1.yi; - $k[$j++] = "FFFF00"; - $k[$j++] = $1.ki; - $k[$j++] = "000000"; - $k[$j++] = $1.wi; - $k[$j++] = "FFFFFF"; - $1.palette = $d(); - $1.metacolorindex = $a([ $1.bi, $1.gi, $1.mi, $1.yi ]); - $1.palettelayout = $a([ $1.bi, $1.gi, $1.mi, $1.yi ]); - } else { - var _E4 = new Map([ [ 8, $a([ 2, 2, 2 ]) ], [ 16, $a([ 4, 2, 2 ]) ], [ 32, $a([ 4, 4, 2 ]) ], [ 64, $a([ 4, 4, 4 ]) ], [ 128, $a([ 8, 4, 4 ]) ], [ 256, $a([ 8, 8, 4 ]) ] ]); - $1.rgbres = $get(_E4, $1.colors); - $k[$j++] = "rvals"; - $k[$j++] = $get($1.rgbres, 0); - $k[$j++] = Infinity; - var _E9 = $k[--$j]; - var _EB = $f($k[--$j] - 1); - $k[$j++] = _E9; - $k[$j++] = _EB; - for (var _ED = 0, _EC = _EB; _ED <= _EC; _ED += 1) { - var _EE = $k[--$j]; - $k[$j++] = ~~Math.round(_ED * (255 / _EE)); - $k[$j++] = _EE; - } - $j--; - var _EF = $a(); - $1[$k[--$j]] = _EF; - $k[$j++] = "gvals"; - $k[$j++] = $get($1.rgbres, 1); - $k[$j++] = Infinity; - var _EJ = $k[--$j]; - var _EL = $f($k[--$j] - 1); - $k[$j++] = _EJ; - $k[$j++] = _EL; - for (var _EN = 0, _EM = _EL; _EN <= _EM; _EN += 1) { - var _EO = $k[--$j]; - $k[$j++] = ~~Math.round(_EN * (255 / _EO)); - $k[$j++] = _EO; - } - $j--; - var _EP = $a(); - $1[$k[--$j]] = _EP; - $k[$j++] = "bvals"; - $k[$j++] = $get($1.rgbres, 2); - $k[$j++] = Infinity; - var _ET = $k[--$j]; - var _EV = $f($k[--$j] - 1); - $k[$j++] = _ET; - $k[$j++] = _EV; - for (var _EX = 0, _EW = _EV; _EX <= _EW; _EX += 1) { - var _EY = $k[--$j]; - $k[$j++] = ~~Math.round(_EX * (255 / _EY)); - $k[$j++] = _EY; - } - $j--; - var _EZ = $a(); - $1[$k[--$j]] = _EZ; - var _Eb = $1.colors; - $1.palette = new Map(); - var _Ec = $1.colors; - var _Ed = 64; - if (64 > _Ec) { - var _ = _Ec; - _Ec = _Ed; - _Ed = _; - } - $1.palettelayout = $a(_Ed); - $1.i = 0; - $1.j = 8; - $forall($1.rvals, function() { - $1.r = $k[--$j]; - $forall($1.gvals, function() { - $1.g = $k[--$j]; - $forall($1.bvals, function() { - $1.b = $k[--$j]; - var _Ep = $strcpy($s(6), "000000"); - var _Er = $cvrs($s(6), $1.r << 16 | $1.g << 8 | $1.b, 16); - $puti(_Ep, 6 - _Er.length, _Er); - $k[$j++] = _Ep; - $k[$j++] = false; - if ($eq(_Ep, "000000")) { - $1.ki = $1.i; - $j--; - $k[$j++] = true; - } - var _Et = $k[--$j]; - var _Eu = $k[--$j]; - $k[$j++] = _Eu; - $k[$j++] = _Et; - if ($eq(_Eu, "0000FF")) { - $1.bi = $1.i; - $j--; - $k[$j++] = true; - } - var _Ew = $k[--$j]; - var _Ex = $k[--$j]; - $k[$j++] = _Ex; - $k[$j++] = _Ew; - if ($eq(_Ex, "00FF00")) { - $1.gi = $1.i; - $j--; - $k[$j++] = true; - } - var _Ez = $k[--$j]; - var _F0 = $k[--$j]; - $k[$j++] = _F0; - $k[$j++] = _Ez; - if ($eq(_F0, "00FFFF")) { - $1.ci = $1.i; - $j--; - $k[$j++] = true; - } - var _F2 = $k[--$j]; - var _F3 = $k[--$j]; - $k[$j++] = _F3; - $k[$j++] = _F2; - if ($eq(_F3, "FF0000")) { - $1.ri = $1.i; - $j--; - $k[$j++] = true; - } - var _F5 = $k[--$j]; - var _F6 = $k[--$j]; - $k[$j++] = _F6; - $k[$j++] = _F5; - if ($eq(_F6, "FF00FF")) { - $1.mi = $1.i; - $j--; - $k[$j++] = true; - } - var _F8 = $k[--$j]; - var _F9 = $k[--$j]; - $k[$j++] = _F9; - $k[$j++] = _F8; - if ($eq(_F9, "FFFF00")) { - $1.yi = $1.i; - $j--; - $k[$j++] = true; - } - var _FB = $k[--$j]; - var _FC = $k[--$j]; - $k[$j++] = _FC; - $k[$j++] = _FB; - if ($eq(_FC, "FFFFFF")) { - $1.wi = $1.i; - $j--; - $k[$j++] = true; - } - if ($nt($k[--$j])) { - if ($1.colors <= 64 || ($1.colors == 128 && ($1.r == 0 || $1.r == 73 || $1.r == 182 || $1.r == 255) || $1.colors == 256 && ($1.r == 0 || $1.r == 73 || $1.r == 182 || $1.r == 255) && ($1.g == 0 || $1.g == 73 || $1.g == 182 || $1.g == 255))) { - $put($1.palettelayout, $1.j, $1.i); - $1.j = $1.j + 1; - } - } - $put($1.palette, $1.i, $k[--$j]); - $1.i = $1.i + 1; - }); - }); - }); - $puti($1.palettelayout, 0, $a([ $1.ki, $1.bi, $1.gi, $1.ci, $1.ri, $1.mi, $1.yi, $1.wi ])); - $1.metacolorindex = $a([ $1.ki, $1.bi, $1.gi, $1.ci, $1.ri, $1.mi, $1.yi, $1.wi ]); - } - $k[$j++] = Infinity; - for (var _Fx = 0, _Fy = $1.rows * $1.cols; _Fx < _Fy; _Fx++) { - $k[$j++] = -1; - } - $1.pixs = $a(); + $1.wr = $k[--$j]; //#24856 + $1.wc = $k[--$j]; //#24857 + $k[$j++] = Infinity; //#24858 + var _BE = $k[--$j]; //#24858 + var _BF = $k[--$j]; //#24858 + $k[$j++] = _BE; //#24858 + $forall(_BF, function() { //#24858 + var _BG = $k[--$j]; //#24858 + $k[$j++] = $f(_BG - 48); //#24858 + }); //#24858 + $1.data = $a(); //#24858 + $1.Pn = $1.data.length; //#24860 + if ($1.wr != -1) { //#24875 + $1.Pg = ~~((Math.ceil((Math.ceil(($1.Pn * $1.wr) / $f($1.wr - $1.wc))) / $1.wr)) * $1.wr); //#24862 + $1.nb_sub_blocks = (~~($1.Pg / 2700)) + 1; //#24863 + $1.Pg_sub_block = (~~((~~($1.Pg / $1.nb_sub_blocks)) / $1.wr)) * $1.wr; //#24864 + $1.Pn_sub_block = ~~(($1.Pg_sub_block * $f($1.wr - $1.wc)) / $1.wr); //#24865 + $1.nb_sub_blocks = ~~($1.Pg / $1.Pg_sub_block); //#24866 + $k[$j++] = 'encoding_iterations'; //#24867 + $k[$j++] = ~~($1.Pg / $1.Pg_sub_block); //#24867 + if (($1.Pn_sub_block * $1.nb_sub_blocks) < $1.Pn) { //#24867 + var _Bg = $k[--$j]; //#24867 + $k[$j++] = $f(_Bg - 1); //#24867 + } //#24867 + var _Bh = $k[--$j]; //#24867 + $1[$k[--$j]] = _Bh; //#24867 + $1.createMatrixA(); //#24868 + } else { //#24875 + $1.Pg = $1.Pn * 2; //#24870 + $1.nb_sub_blocks = 1; //#24871 + $1.Pg_sub_block = $1.Pg; //#24872 + $1.Pn_sub_block = $1.Pn; //#24873 + $1.encoding_iterations = 1; //#24874 + $1.createMetadataMatrixA(); //#24875 + } //#24875 + $1.GaussJordan(); //#24877 + $1.createGeneratorMatrix(); //#24878 + $1.ecc_encoded_data = $a($1.Pg); //#24880 + $1.offset = ~~(Math.ceil(($1.Pg_sub_block - $1.matrix_rank) / 32)); //#24882 + for (var _Bs = 0, _Br = $1.encoding_iterations - 1; _Bs <= _Br; _Bs += 1) { //#24898 + $1.iter = _Bs; //#24884 + for (var _Bv = 0, _Bu = $1.Pg_sub_block - 1; _Bv <= _Bu; _Bv += 1) { //#24897 + $1.i = _Bv; //#24886 + $1.temp = 0; //#24887 + $1.loop0 = 0; //#24888 + $1.offset_index = $1.offset * $1.i; //#24889 + for (var _C3 = $1.iter * $1.Pn_sub_block, _C2 = (($1.iter + 1) * $1.Pn_sub_block) - 1; _C3 <= _C2; _C3 += 1) { //#24895 + var _C9 = $get($1.G, $1.offset_index + (~~($1.loop0 / 32))); //#24892 + var _CB = -(31 - ($1.loop0 % 32)); //#24892 + $1.temp = ($get($1.data, _C3) & (((_CB < 0 ? _C9 >>> -_CB : _C9 << _CB)) & 1)) ^ $1.temp; //#24893 + $1.loop0 = $1.loop0 + 1; //#24894 + } //#24894 + $put($1.ecc_encoded_data, $1.i + ($1.iter * $1.Pg_sub_block), $1.temp); //#24896 + } //#24896 + } //#24896 + if ($1.encoding_iterations != $1.nb_sub_blocks) { //#24922 + $1.start = $1.encoding_iterations * $1.Pn_sub_block; //#24901 + $1.last_index = $1.encoding_iterations * $1.Pg_sub_block; //#24902 + $1.Pg_sub_block = $1.Pg - ($1.encoding_iterations * $1.Pg_sub_block); //#24903 + $1.Pn_sub_block = ~~(($1.Pg_sub_block * $f($1.wr - $1.wc)) / $1.wr); //#24904 + $1.createMatrixA(); //#24905 + $1.GaussJordan(); //#24906 + $1.createGeneratorMatrix(); //#24907 + $1.offset = ~~(Math.ceil(($1.Pg_sub_block - $1.matrix_rank) / 32)); //#24908 + for (var _Ca = 0, _CZ = $1.Pg_sub_block - 1; _Ca <= _CZ; _Ca += 1) { //#24921 + $1.i = _Ca; //#24910 + $1.temp = 0; //#24911 + $1.loop0 = 0; //#24912 + $1.offset_index = $1.offset * $1.i; //#24913 + for (var _Cg = $1.start, _Cf = $1.Pn - 1; _Cg <= _Cf; _Cg += 1) { //#24919 + var _Cm = $get($1.G, $1.offset_index + (~~($1.loop0 / 32))); //#24916 + var _Co = -(31 - ($1.loop0 % 32)); //#24916 + $1.temp = ($get($1.data, _Cg) & (((_Co < 0 ? _Cm >>> -_Co : _Cm << _Co)) & 1)) ^ $1.temp; //#24917 + $1.loop0 = $1.loop0 + 1; //#24918 + } //#24918 + $put($1.ecc_encoded_data, $1.i + $1.last_index, $1.temp); //#24920 + } //#24920 + } //#24920 + $1.out = $s($1.Pg); //#24924 + for (var _Cz = 0, _Cy = $1.Pg - 1; _Cz <= _Cy; _Cz += 1) { //#24928 + $put($1.out, _Cz, $f($get($1.ecc_encoded_data, _Cz) + 48)); //#24927 + } //#24927 + $k[$j++] = $1.out; //#24929 + }; //#24931 + $k[$j++] = 'bits'; //#24934 + $k[$j++] = $1.bits; //#24934 + $k[$j++] = $1.datawc; //#24934 + $k[$j++] = $1.datawr; //#24934 + $1.ldpc(); //#24934 + var _D7 = $k[--$j]; //#24934 + $1[$k[--$j]] = _D7; //#24934 + $1.s0 = 0; //#24937 + $1.s1 = 0; //#24937 + $1.s2 = 3; //#24937 + $1.s3 = 30151; //#24937 + for (var _DA = $1.bits.length - 1; _DA >= 1; _DA -= 1) { //#24947 + $1.l = _DA; //#24939 + $1.lcg64_temper(); //#24940 + var _DB = $k[--$j]; //#24941 + $k[$j++] = _DB; //#24941 + if (_DB < 0) { //#24941 + var _DC = $k[--$j]; //#24941 + $k[$j++] = $f((_DC ^ 2147483648) + 2147483648); //#24941 + } //#24941 + $1.r = ~~(($k[--$j] / 4294967296) * ($1.l + 1)); //#24943 + $put($1.bits, $1.l, $get($1.bits, $1.r)); //#24945 + $put($1.bits, $1.r, $get($1.bits, $1.l)); //#24946 + } //#24946 + $1.tmpbits = $s($1.C); //#24950 + $puti($1.tmpbits, 0, $1.bits); //#24951 + $1.j = $1.bits.length; //#24952 + for (var _DW = 0, _DX = ~~(($f($f($1.C - $1.j) + 1)) / 2); _DW < _DX; _DW++) { //#24957 + $put($1.tmpbits, $1.j, 48); //#24954 + if (($1.j + 1) < $1.C) { //#24955 + $put($1.tmpbits, $1.j + 1, 49); //#24955 + } //#24955 + $1.j = $1.j + 2; //#24956 + } //#24956 + $1.bits = $1.tmpbits; //#24958 + if ($1.colors == 4) { //#25023 + $1.bi = 0; //#24962 + $1.gi = 1; //#24962 + $1.mi = 2; //#24962 + $1.yi = 3; //#24962 + $1.ki = 4; //#24963 + $1.wi = 5; //#24963 + $k[$j++] = Infinity; //#24966 + $k[$j++] = $1.bi; //#24966 + $k[$j++] = "0000FF"; //#24966 + $k[$j++] = $1.gi; //#24966 + $k[$j++] = "00FF00"; //#24966 + $k[$j++] = $1.mi; //#24966 + $k[$j++] = "FF00FF"; //#24966 + $k[$j++] = $1.yi; //#24966 + $k[$j++] = "FFFF00"; //#24966 + $k[$j++] = $1.ki; //#24966 + $k[$j++] = "000000"; //#24966 + $k[$j++] = $1.wi; //#24966 + $k[$j++] = "FFFFFF"; //#24966 + $1.palette = $d(); //#24967 + $1.metacolorindex = $a([$1.bi, $1.gi, $1.mi, $1.yi]); //#24968 + $1.palettelayout = $a([$1.bi, $1.gi, $1.mi, $1.yi]); //#24969 + } else { //#25023 + var _E4 = new Map([ + [8, $a([2, 2, 2])], + [16, $a([4, 2, 2])], + [32, $a([4, 4, 2])], + [64, $a([4, 4, 4])], + [128, $a([8, 4, 4])], + [256, $a([8, 8, 4])] + ]); //#24978 + $1.rgbres = $get(_E4, $1.colors); //#24979 + $k[$j++] = 'rvals'; //#24981 + $k[$j++] = $get($1.rgbres, 0); //#24981 + $k[$j++] = Infinity; //#24981 + var _E9 = $k[--$j]; //#24981 + var _EB = $f($k[--$j] - 1); //#24981 + $k[$j++] = _E9; //#24981 + $k[$j++] = _EB; //#24981 + for (var _ED = 0, _EC = _EB; _ED <= _EC; _ED += 1) { //#24981 + var _EE = $k[--$j]; //#24981 + $k[$j++] = ~~(Math.round(_ED * (255 / _EE))); //#24981 + $k[$j++] = _EE; //#24981 + } //#24981 + $j--; //#24981 + var _EF = $a(); //#24981 + $1[$k[--$j]] = _EF; //#24981 + $k[$j++] = 'gvals'; //#24982 + $k[$j++] = $get($1.rgbres, 1); //#24982 + $k[$j++] = Infinity; //#24982 + var _EJ = $k[--$j]; //#24982 + var _EL = $f($k[--$j] - 1); //#24982 + $k[$j++] = _EJ; //#24982 + $k[$j++] = _EL; //#24982 + for (var _EN = 0, _EM = _EL; _EN <= _EM; _EN += 1) { //#24982 + var _EO = $k[--$j]; //#24982 + $k[$j++] = ~~(Math.round(_EN * (255 / _EO))); //#24982 + $k[$j++] = _EO; //#24982 + } //#24982 + $j--; //#24982 + var _EP = $a(); //#24982 + $1[$k[--$j]] = _EP; //#24982 + $k[$j++] = 'bvals'; //#24983 + $k[$j++] = $get($1.rgbres, 2); //#24983 + $k[$j++] = Infinity; //#24983 + var _ET = $k[--$j]; //#24983 + var _EV = $f($k[--$j] - 1); //#24983 + $k[$j++] = _ET; //#24983 + $k[$j++] = _EV; //#24983 + for (var _EX = 0, _EW = _EV; _EX <= _EW; _EX += 1) { //#24983 + var _EY = $k[--$j]; //#24983 + $k[$j++] = ~~(Math.round(_EX * (255 / _EY))); //#24983 + $k[$j++] = _EY; //#24983 + } //#24983 + $j--; //#24983 + var _EZ = $a(); //#24983 + $1[$k[--$j]] = _EZ; //#24983 + var _Eb = $1.colors; //#24985 + $1.palette = new Map; //#24985 + var _Ec = $1.colors; //#24986 + var _Ed = 64; //#24986 + if (64 > _Ec) { //#24986 + var _ = _Ec; //#24986 + _Ec = _Ed; //#24986 + _Ed = _; //#24986 + } //#24986 + $1.palettelayout = $a(_Ed); //#24986 + $1.i = 0; //#24987 + $1.j = 8; //#24987 + $forall($1.rvals, function() { //#25021 + $1.r = $k[--$j]; //#24989 + $forall($1.gvals, function() { //#25020 + $1.g = $k[--$j]; //#24991 + $forall($1.bvals, function() { //#25019 + $1.b = $k[--$j]; //#24993 + var _Ep = $strcpy($s(6), "000000"); //#24995 + var _Er = $cvrs($s(6), (($1.r << 16) | ($1.g << 8)) | $1.b, 16); //#24995 + $puti(_Ep, 6 - _Er.length, _Er); //#24995 + $k[$j++] = _Ep; //#24997 + $k[$j++] = false; //#24997 + if ($eq(_Ep, "000000")) { //#24997 + $1.ki = $1.i; //#24997 + $j--; //#24997 + $k[$j++] = true; //#24997 + } //#24997 + var _Et = $k[--$j]; //#24998 + var _Eu = $k[--$j]; //#24998 + $k[$j++] = _Eu; //#24998 + $k[$j++] = _Et; //#24998 + if ($eq(_Eu, "0000FF")) { //#24998 + $1.bi = $1.i; //#24998 + $j--; //#24998 + $k[$j++] = true; //#24998 + } //#24998 + var _Ew = $k[--$j]; //#24999 + var _Ex = $k[--$j]; //#24999 + $k[$j++] = _Ex; //#24999 + $k[$j++] = _Ew; //#24999 + if ($eq(_Ex, "00FF00")) { //#24999 + $1.gi = $1.i; //#24999 + $j--; //#24999 + $k[$j++] = true; //#24999 + } //#24999 + var _Ez = $k[--$j]; //#25000 + var _F0 = $k[--$j]; //#25000 + $k[$j++] = _F0; //#25000 + $k[$j++] = _Ez; //#25000 + if ($eq(_F0, "00FFFF")) { //#25000 + $1.ci = $1.i; //#25000 + $j--; //#25000 + $k[$j++] = true; //#25000 + } //#25000 + var _F2 = $k[--$j]; //#25001 + var _F3 = $k[--$j]; //#25001 + $k[$j++] = _F3; //#25001 + $k[$j++] = _F2; //#25001 + if ($eq(_F3, "FF0000")) { //#25001 + $1.ri = $1.i; //#25001 + $j--; //#25001 + $k[$j++] = true; //#25001 + } //#25001 + var _F5 = $k[--$j]; //#25002 + var _F6 = $k[--$j]; //#25002 + $k[$j++] = _F6; //#25002 + $k[$j++] = _F5; //#25002 + if ($eq(_F6, "FF00FF")) { //#25002 + $1.mi = $1.i; //#25002 + $j--; //#25002 + $k[$j++] = true; //#25002 + } //#25002 + var _F8 = $k[--$j]; //#25003 + var _F9 = $k[--$j]; //#25003 + $k[$j++] = _F9; //#25003 + $k[$j++] = _F8; //#25003 + if ($eq(_F9, "FFFF00")) { //#25003 + $1.yi = $1.i; //#25003 + $j--; //#25003 + $k[$j++] = true; //#25003 + } //#25003 + var _FB = $k[--$j]; //#25004 + var _FC = $k[--$j]; //#25004 + $k[$j++] = _FC; //#25004 + $k[$j++] = _FB; //#25004 + if ($eq(_FC, "FFFFFF")) { //#25004 + $1.wi = $1.i; //#25004 + $j--; //#25004 + $k[$j++] = true; //#25004 + } //#25004 + if ($nt($k[--$j])) { //#25016 + if (($1.colors <= 64) || ((($1.colors == 128) && (((($1.r == 0) || ($1.r == 73)) || ($1.r == 182)) || ($1.r == 255))) || ((($1.colors == 256) && (((($1.r == 0) || ($1.r == 73)) || ($1.r == 182)) || ($1.r == 255))) && (((($1.g == 0) || ($1.g == 73)) || ($1.g == 182)) || ($1.g == 255))))) { //#25015 + $put($1.palettelayout, $1.j, $1.i); //#25013 + $1.j = $1.j + 1; //#25014 + } //#25014 + } //#25014 + $put($1.palette, $1.i, $k[--$j]); //#25017 + $1.i = $1.i + 1; //#25018 + }); //#25018 + }); //#25018 + }); //#25018 + $puti($1.palettelayout, 0, $a([$1.ki, $1.bi, $1.gi, $1.ci, $1.ri, $1.mi, $1.yi, $1.wi])); //#25022 + $1.metacolorindex = $a([$1.ki, $1.bi, $1.gi, $1.ci, $1.ri, $1.mi, $1.yi, $1.wi]); //#25023 + } //#25023 + $k[$j++] = Infinity; //#25027 + for (var _Fx = 0, _Fy = $1.rows * $1.cols; _Fx < _Fy; _Fx++) { //#25027 + $k[$j++] = -1; //#25027 + } //#25027 + $1.pixs = $a(); //#25027 $1.jmv = function() { - var _G1 = $k[--$j]; - var _G2 = $k[--$j]; - $k[$j++] = $f(_G2 + _G1 * $1.cols); - }; - if (!$1.slave) { - $1.fpat = $a([ $a([ 1, 1, 1, 0, 0 ]), $a([ 1, 2, 2, 0, 0 ]), $a([ 1, 2, 1, 2, 1 ]), $a([ 0, 0, 2, 2, 1 ]), $a([ 0, 0, 1, 1, 1 ]) ]); - $1.fmap = $a([ $a([ -1, $1.bi, $1.yi ]), $a([ -1, $1.yi, $1.bi ]), $a([ -1, $1.gi, $1.mi ]), $a([ -1, $1.mi, $1.gi ]) ]); - } else { - $1.fpat = $a([ $a([ 0, 0, 0, 0, 0 ]), $a([ 0, 2, 2, 0, 0 ]), $a([ 0, 2, 1, 2, 0 ]), $a([ 0, 0, 2, 2, 0 ]), $a([ 0, 0, 0, 0, 0 ]) ]); - $1.fmap = $a([ $a([ -1, $1.ki, $1.wi ]), $a([ -1, $1.ki, $1.wi ]), $a([ -1, $1.ki, $1.wi ]), $a([ -1, $1.ki, $1.wi ]) ]); - } - for (var _Gg = 0; _Gg <= 4; _Gg += 1) { - $1.y = _Gg; - for (var _Gh = 0; _Gh <= 4; _Gh += 1) { - $1.x = _Gh; - $1.fpb = $get($get($1.fpat, $1.y), $1.x); - $k[$j++] = $1.pixs; - $k[$j++] = $1.x + 1; - $k[$j++] = $1.y + 1; - $1.jmv(); - var _Gu = $k[--$j]; - $put($k[--$j], _Gu, $get($get($1.fmap, 0), $1.fpb)); - $k[$j++] = $1.pixs; - $k[$j++] = $1.x + 1; - $k[$j++] = $f($f($1.rows - $1.y) - 2); - $1.jmv(); - var _H4 = $k[--$j]; - $put($k[--$j], _H4, $get($get($1.fmap, 1), $1.fpb)); - $k[$j++] = $1.pixs; - $k[$j++] = $f($f($1.x + $1.cols) - 6); - $k[$j++] = $1.y + 1; - $1.jmv(); - var _HE = $k[--$j]; - $put($k[--$j], _HE, $get($get($1.fmap, 2), $1.fpb)); - $k[$j++] = $1.pixs; - $k[$j++] = $f($f($1.x + $1.cols) - 6); - $k[$j++] = $f($f($1.rows - $1.y) - 2); - $1.jmv(); - var _HP = $k[--$j]; - $put($k[--$j], _HP, $get($get($1.fmap, 3), $1.fpb)); - } - } - $1.algnpat0 = $a([ $a([ $1.ki, $1.ki, -1 ]), $a([ $1.ki, $1.wi, $1.ki ]), $a([ -1, $1.ki, $1.ki ]) ]); - $1.algnpat1 = $a([ $a([ -1, $1.ki, $1.ki ]), $a([ $1.ki, $1.wi, $1.ki ]), $a([ $1.ki, $1.ki, -1 ]) ]); - $1.num = ~~Math.round($1.cols / 16) - 1; - $1.algnrpos = $a([ 3, 17 ]); - if ($1.num > 0) { - $k[$j++] = Infinity; - for (var _Hs = 0, _Hr = $1.num; _Hs <= _Hr; _Hs += 1) { - $k[$j++] = ~~(_Hs * ($f($1.cols - 7) / $1.num)) + 3; - } - $1.algnrpos = $a(); - } - $1.num = ~~Math.round($1.rows / 16) - 1; - $1.algncpos = $a([ 3, 17 ]); - if ($1.num > 0) { - $k[$j++] = Infinity; - for (var _I1 = 0, _I0 = $1.num; _I1 <= _I0; _I1 += 1) { - $k[$j++] = ~~(_I1 * ($f($1.rows - 7) / $1.num)) + 3; - } - $1.algncpos = $a(); - } + var _G1 = $k[--$j]; //#25028 + var _G2 = $k[--$j]; //#25028 + $k[$j++] = $f(_G2 + (_G1 * $1.cols)); //#25028 + }; //#25028 + if (!$1.slave) { //#25058 + $1.fpat = $a([$a([1, 1, 1, 0, 0]), $a([1, 2, 2, 0, 0]), $a([1, 2, 1, 2, 1]), $a([0, 0, 2, 2, 1]), $a([0, 0, 1, 1, 1])]); //#25038 + $1.fmap = $a([$a([-1, $1.bi, $1.yi]), $a([-1, $1.yi, $1.bi]), $a([-1, $1.gi, $1.mi]), $a([-1, $1.mi, $1.gi])]); //#25044 + } else { //#25058 + $1.fpat = $a([$a([0, 0, 0, 0, 0]), $a([0, 2, 2, 0, 0]), $a([0, 2, 1, 2, 0]), $a([0, 0, 2, 2, 0]), $a([0, 0, 0, 0, 0])]); //#25052 + $1.fmap = $a([$a([-1, $1.ki, $1.wi]), $a([-1, $1.ki, $1.wi]), $a([-1, $1.ki, $1.wi]), $a([-1, $1.ki, $1.wi])]); //#25058 + } //#25058 + for (var _Gg = 0; _Gg <= 4; _Gg += 1) { //#25070 + $1.y = _Gg; //#25061 + for (var _Gh = 0; _Gh <= 4; _Gh += 1) { //#25069 + $1.x = _Gh; //#25063 + $1.fpb = $get($get($1.fpat, $1.y), $1.x); //#25064 + $k[$j++] = $1.pixs; //#25065 + $k[$j++] = $1.x + 1; //#25065 + $k[$j++] = $1.y + 1; //#25065 + $1.jmv(); //#25065 + var _Gu = $k[--$j]; //#25065 + $put($k[--$j], _Gu, $get($get($1.fmap, 0), $1.fpb)); //#25065 + $k[$j++] = $1.pixs; //#25066 + $k[$j++] = $1.x + 1; //#25066 + $k[$j++] = $f($f($1.rows - $1.y) - 2); //#25066 + $1.jmv(); //#25066 + var _H4 = $k[--$j]; //#25066 + $put($k[--$j], _H4, $get($get($1.fmap, 1), $1.fpb)); //#25066 + $k[$j++] = $1.pixs; //#25067 + $k[$j++] = $f($f($1.x + $1.cols) - 6); //#25067 + $k[$j++] = $1.y + 1; //#25067 + $1.jmv(); //#25067 + var _HE = $k[--$j]; //#25067 + $put($k[--$j], _HE, $get($get($1.fmap, 2), $1.fpb)); //#25067 + $k[$j++] = $1.pixs; //#25068 + $k[$j++] = $f($f($1.x + $1.cols) - 6); //#25068 + $k[$j++] = $f($f($1.rows - $1.y) - 2); //#25068 + $1.jmv(); //#25068 + var _HP = $k[--$j]; //#25068 + $put($k[--$j], _HP, $get($get($1.fmap, 3), $1.fpb)); //#25068 + } //#25068 + } //#25068 + $1.algnpat0 = $a([$a([$1.ki, $1.ki, -1]), $a([$1.ki, $1.wi, $1.ki]), $a([-1, $1.ki, $1.ki])]); //#25077 + $1.algnpat1 = $a([$a([-1, $1.ki, $1.ki]), $a([$1.ki, $1.wi, $1.ki]), $a([$1.ki, $1.ki, -1])]); //#25082 + $1.num = (~~Math.round($1.cols / 16)) - 1; //#25083 + $1.algnrpos = $a([3, 17]); //#25084 + if ($1.num > 0) { //#25087 + $k[$j++] = Infinity; //#25086 + for (var _Hs = 0, _Hr = $1.num; _Hs <= _Hr; _Hs += 1) { //#25086 + $k[$j++] = (~~(_Hs * ($f($1.cols - 7) / $1.num))) + 3; //#25086 + } //#25086 + $1.algnrpos = $a(); //#25086 + } //#25086 + $1.num = (~~Math.round($1.rows / 16)) - 1; //#25088 + $1.algncpos = $a([3, 17]); //#25089 + if ($1.num > 0) { //#25092 + $k[$j++] = Infinity; //#25091 + for (var _I1 = 0, _I0 = $1.num; _I1 <= _I0; _I1 += 1) { //#25091 + $k[$j++] = (~~(_I1 * ($f($1.rows - 7) / $1.num))) + 3; //#25091 + } //#25091 + $1.algncpos = $a(); //#25091 + } //#25091 $1.putalgnpat = function() { - $1.pp = $k[--$j]; - $1.py = $k[--$j]; - $1.px = $k[--$j]; - for (var _I8 = 0; _I8 <= 2; _I8 += 1) { - $1.pb = _I8; - for (var _I9 = 0; _I9 <= 2; _I9 += 1) { - $1.pa = _I9; - $k[$j++] = $1.pixs; - $k[$j++] = $f($1.px + $1.pa); - $k[$j++] = $f($1.py + $1.pb); - $1.jmv(); - var _IK = $k[--$j]; - $put($k[--$j], _IK, $get($get($1.pp, $1.pb), $1.pa)); - } - } - }; - for (var _IO = 0, _IN = $1.algncpos.length - 1; _IO <= _IN; _IO += 1) { - $1.j = _IO; - $1.y = $get($1.algncpos, $1.j); - for (var _IU = 0, _IT = $1.algnrpos.length - 1; _IU <= _IT; _IU += 1) { - $1.i = _IU; - $1.x = $get($1.algnrpos, $1.i); - $k[$j++] = $1.pixs; - $k[$j++] = $1.x; - $k[$j++] = $1.y; - $1.jmv(); - var _Ib = $k[--$j]; - if ($get($k[--$j], _Ib) == -1) { - $k[$j++] = $f($1.x - 1); - $k[$j++] = $f($1.y - 1); - if (($1.i + $1.j) % 2 == 0) { - $k[$j++] = $1.algnpat0; - } else { - $k[$j++] = $1.algnpat1; - } - $1.putalgnpat(); - } - } - } - if (!$1.slave) { - var _JT = $a([ $a([ 6, 1 ]), $a([ 6, 2 ]), $a([ 6, 3 ]), $a([ 6, 4 ]), $a([ 6, 5 ]), $a([ 6, 6 ]), $a([ 5, 6 ]), $a([ 4, 6 ]), $a([ 3, 6 ]), $a([ 2, 6 ]), $a([ 1, 6 ]), $a([ 7, 1 ]), $a([ 7, 2 ]), $a([ 7, 3 ]), $a([ 7, 4 ]), $a([ 7, 5 ]), $a([ 7, 6 ]), $a([ 7, 7 ]), $a([ 6, 7 ]), $a([ 5, 7 ]), $a([ 4, 7 ]), $a([ 3, 7 ]), $a([ 2, 7 ]), $a([ 1, 7 ]), $a([ 8, 1 ]), $a([ 8, 2 ]), $a([ 8, 3 ]), $a([ 8, 4 ]), $a([ 8, 5 ]), $a([ 8, 6 ]), $a([ 8, 7 ]), $a([ 8, 8 ]), $a([ 7, 8 ]), $a([ 6, 8 ]), $a([ 5, 8 ]), $a([ 4, 8 ]), $a([ 3, 8 ]), $a([ 2, 8 ]), $a([ 1, 8 ]), $a([ 9, 1 ]), $a([ 9, 2 ]), $a([ 9, 3 ]), $a([ 9, 4 ]), $a([ 9, 5 ]) ]); - for (var _JU = 0, _JV = _JT.length; _JU < _JV; _JU++) { - $aload($get(_JT, _JU)); - $1.y = $k[--$j]; - $1.x = $k[--$j]; - $k[$j++] = $a([ $1.x, $1.y ]); - $k[$j++] = $a([ -$1.x, $1.y ]); - $k[$j++] = $a([ -$1.x, -$1.y ]); - $k[$j++] = $a([ $1.x, -$1.y ]); - } - $astore($a(176)); - $1.metadatamap = $k[--$j]; - $1.palettemap1 = $a([ $a([ 4, 1 ]), $a([ 4, 2 ]), $a([ 5, 1 ]), $a([ 5, 2 ]), $a([ 2, 4 ]), $a([ 2, 5 ]), $a([ 1, 4 ]), $a([ 1, 5 ]), $a([ -2, 1 ]), $a([ -2, 2 ]), $a([ -1, 1 ]), $a([ -1, 2 ]), $a([ -4, 4 ]), $a([ -4, 5 ]), $a([ -5, 4 ]), $a([ -5, 5 ]) ]); - $1.palettemap2 = $a([ $a([ -4, -5 ]), $a([ -4, -4 ]), $a([ -5, -5 ]), $a([ -5, -4 ]), $a([ -2, -2 ]), $a([ -2, -1 ]), $a([ -1, -2 ]), $a([ -1, -1 ]), $a([ 2, -5 ]), $a([ 2, -4 ]), $a([ 1, -5 ]), $a([ 1, -4 ]), $a([ 4, -2 ]), $a([ 4, -1 ]), $a([ 5, -2 ]), $a([ 5, -1 ]) ]); - } else { - $k[$j++] = Infinity; - for (var _KL = 1; _KL <= 19; _KL += 1) { - $1.i = _KL; - $k[$j++] = $a([ 0, $1.i ]); - $k[$j++] = $a([ 1, $1.i ]); - } - for (var _KQ = 5; _KQ <= 12; _KQ += 1) { - $1.i = _KQ; - $k[$j++] = $a([ 2, $1.i ]); - $k[$j++] = $a([ 3, $1.i ]); - } - $1.metadatamap = $a(); - $k[$j++] = Infinity; - for (var _KW = 5; _KW <= 12; _KW += 1) { - $k[$j++] = Infinity; - $k[$j++] = 4; - $k[$j++] = _KW; - var _KZ = $a(); - $k[$j++] = _KZ; - } - for (var _Ka = 12; _Ka >= 5; _Ka -= 1) { - $k[$j++] = Infinity; - $k[$j++] = 5; - $k[$j++] = _Ka; - var _Kd = $a(); - $k[$j++] = _Kd; - } - for (var _Ke = 5; _Ke <= 12; _Ke += 1) { - $k[$j++] = Infinity; - $k[$j++] = 6; - $k[$j++] = _Ke; - var _Kh = $a(); - $k[$j++] = _Kh; - } - for (var _Ki = 12; _Ki >= 5; _Ki -= 1) { - $k[$j++] = Infinity; - $k[$j++] = 7; - $k[$j++] = _Ki; - var _Kl = $a(); - $k[$j++] = _Kl; - } - $1.palettemap1 = $a(); - $k[$j++] = Infinity; - var _Kn = $1.palettemap1; - for (var _Ko = 0, _Kp = _Kn.length; _Ko < _Kp; _Ko++) { - $k[$j++] = Infinity; - var _Ks = $get(_Kn, _Ko); - $aload(_Ks); - var _Kt = $k[--$j]; - var _Ku = $k[--$j]; - $k[$j++] = -_Ku; - $k[$j++] = -_Kt; - var _Kv = $a(); - $k[$j++] = _Kv; - } - $1.palettemap2 = $a(); - } - var _Kx = $1.metadatamap; - for (var _Ky = 0, _Kz = _Kx.length; _Ky < _Kz; _Ky++) { - var _L0 = $get(_Kx, _Ky); - var _L1 = $get(_L0, 0); - $k[$j++] = _L0; - $k[$j++] = _L1; - if (_L1 < 0) { - var _L3 = $k[--$j]; - var _L4 = $k[--$j]; - $put(_L4, 0, $f($f(_L3 + $1.cols) - 1)); - $k[$j++] = _L4; - } else { - $j--; - } - var _L5 = $k[--$j]; - var _L6 = $get(_L5, 1); - $k[$j++] = _L5; - $k[$j++] = _L6; - if (_L6 < 0) { - var _L8 = $k[--$j]; - var _L9 = $k[--$j]; - $put(_L9, 1, $f($f(_L8 + $1.rows) - 1)); - $k[$j++] = _L9; - } else { - $j--; - } - $j--; - } - var _LA = $1.palettemap1; - for (var _LB = 0, _LC = _LA.length; _LB < _LC; _LB++) { - var _LD = $get(_LA, _LB); - var _LE = $get(_LD, 0); - $k[$j++] = _LD; - $k[$j++] = _LE; - if (_LE < 0) { - var _LG = $k[--$j]; - var _LH = $k[--$j]; - $put(_LH, 0, $f($f(_LG + $1.cols) - 1)); - $k[$j++] = _LH; - } else { - $j--; - } - var _LI = $k[--$j]; - var _LJ = $get(_LI, 1); - $k[$j++] = _LI; - $k[$j++] = _LJ; - if (_LJ < 0) { - var _LL = $k[--$j]; - var _LM = $k[--$j]; - $put(_LM, 1, $f($f(_LL + $1.rows) - 1)); - $k[$j++] = _LM; - } else { - $j--; - } - $j--; - } - var _LN = $1.palettemap2; - for (var _LO = 0, _LP = _LN.length; _LO < _LP; _LO++) { - var _LQ = $get(_LN, _LO); - var _LR = $get(_LQ, 0); - $k[$j++] = _LQ; - $k[$j++] = _LR; - if (_LR < 0) { - var _LT = $k[--$j]; - var _LU = $k[--$j]; - $put(_LU, 0, $f($f(_LT + $1.cols) - 1)); - $k[$j++] = _LU; - } else { - $j--; - } - var _LV = $k[--$j]; - var _LW = $get(_LV, 1); - $k[$j++] = _LV; - $k[$j++] = _LW; - if (_LW < 0) { - var _LY = $k[--$j]; - var _LZ = $k[--$j]; - $put(_LZ, 1, $f($f(_LY + $1.rows) - 1)); - $k[$j++] = _LZ; - } else { - $j--; - } - $j--; - } - for (var _Lc = 0, _Lb = $f($1.nummetamodules - 1); _Lc <= _Lb; _Lc += 1) { - $k[$j++] = $1.pixs; - $aload($get($1.metadatamap, _Lc)); - $1.jmv(); - var _Lg = $k[--$j]; - $put($k[--$j], _Lg, 0); - } - if (!$1.slave) { - var _Lj = $1.colors; - var _Lk = 16; - if (16 > _Lj) { - var _ = _Lj; - _Lj = _Lk; - _Lk = _; - } - for (var _Lm = 0, _Ll = _Lk - 1; _Lm <= _Ll; _Lm += 1) { - $1.i = _Lm; - var _Lp = $get($1.palettelayout, $1.i); - $k[$j++] = _Lp; - $k[$j++] = $1.pixs; - $k[$j++] = _Lp; - $aload($get($1.palettemap1, $1.i)); - $1.jmv(); - var _Lu = $k[--$j]; - var _Lv = $k[--$j]; - $put($k[--$j], _Lu, _Lv); - var _Ly = $k[--$j]; - $k[$j++] = $1.pixs; - $k[$j++] = _Ly; - $aload($get($1.palettemap2, $1.i)); - $1.jmv(); - var _M2 = $k[--$j]; - var _M3 = $k[--$j]; - $put($k[--$j], _M2, _M3); - } - $1.i = 16; - } else { - $1.i = 0; - } - $1.j = $1.nummetamodules; - for (var _M9 = $1.i, _M8 = $1.palettelayout.length - 1; _M9 <= _M8; _M9 += 2) { - $1.i = _M9; - var _MC = $get($1.palettelayout, $1.i); - $k[$j++] = _MC; - $k[$j++] = $1.pixs; - $k[$j++] = _MC; - $aload($get($1.metadatamap, $1.j)); - $1.jmv(); - var _MH = $k[--$j]; - var _MI = $k[--$j]; - $put($k[--$j], _MH, _MI); - var _ML = $k[--$j]; - $k[$j++] = $1.pixs; - $k[$j++] = _ML; - $aload($get($1.metadatamap, $f($1.j + 2))); - $1.jmv(); - var _MP = $k[--$j]; - var _MQ = $k[--$j]; - $put($k[--$j], _MP, _MQ); - var _MU = $get($1.palettelayout, $1.i + 1); - $k[$j++] = _MU; - $k[$j++] = $1.pixs; - $k[$j++] = _MU; - $aload($get($1.metadatamap, $f($1.j + 1))); - $1.jmv(); - var _MZ = $k[--$j]; - var _Ma = $k[--$j]; - $put($k[--$j], _MZ, _Ma); - var _Md = $k[--$j]; - $k[$j++] = $1.pixs; - $k[$j++] = _Md; - $aload($get($1.metadatamap, $f($1.j + 3))); - $1.jmv(); - var _Mh = $k[--$j]; - var _Mi = $k[--$j]; - $put($k[--$j], _Mh, _Mi); - $1.j = $f($1.j + 4); - } - var _NA = $a([ function() { - var _Ml = $k[--$j]; - var _Mm = $k[--$j]; - $k[$j++] = $f(_Mm + _Ml) % $1.colors; + $1.pp = $k[--$j]; //#25094 + $1.py = $k[--$j]; //#25095 + $1.px = $k[--$j]; //#25096 + for (var _I8 = 0; _I8 <= 2; _I8 += 1) { //#25103 + $1.pb = _I8; //#25098 + for (var _I9 = 0; _I9 <= 2; _I9 += 1) { //#25102 + $1.pa = _I9; //#25100 + $k[$j++] = $1.pixs; //#25101 + $k[$j++] = $f($1.px + $1.pa); //#25101 + $k[$j++] = $f($1.py + $1.pb); //#25101 + $1.jmv(); //#25101 + var _IK = $k[--$j]; //#25101 + $put($k[--$j], _IK, $get($get($1.pp, $1.pb), $1.pa)); //#25101 + } //#25101 + } //#25101 + }; //#25104 + for (var _IO = 0, _IN = $1.algncpos.length - 1; _IO <= _IN; _IO += 1) { //#25115 + $1.j = _IO; //#25106 + $1.y = $get($1.algncpos, $1.j); //#25107 + for (var _IU = 0, _IT = $1.algnrpos.length - 1; _IU <= _IT; _IU += 1) { //#25114 + $1.i = _IU; //#25109 + $1.x = $get($1.algnrpos, $1.i); //#25110 + $k[$j++] = $1.pixs; //#25111 + $k[$j++] = $1.x; //#25111 + $k[$j++] = $1.y; //#25111 + $1.jmv(); //#25111 + var _Ib = $k[--$j]; //#25111 + if ($get($k[--$j], _Ib) == -1) { //#25113 + $k[$j++] = $f($1.x - 1); //#25112 + $k[$j++] = $f($1.y - 1); //#25112 + if ((($1.i + $1.j) % 2) == 0) { //#25112 + $k[$j++] = $1.algnpat0; //#25112 + } else { //#25112 + $k[$j++] = $1.algnpat1; //#25112 + } //#25112 + $1.putalgnpat(); //#25112 + } //#25112 + } //#25112 + } //#25112 + if (!$1.slave) { //#25167 + var _JT = $a([$a([6, 1]), $a([6, 2]), $a([6, 3]), $a([6, 4]), $a([6, 5]), $a([6, 6]), $a([5, 6]), $a([4, 6]), $a([3, 6]), $a([2, 6]), $a([1, 6]), $a([7, 1]), $a([7, 2]), $a([7, 3]), $a([7, 4]), $a([7, 5]), $a([7, 6]), $a([7, 7]), $a([6, 7]), $a([5, 7]), $a([4, 7]), $a([3, 7]), $a([2, 7]), $a([1, 7]), $a([8, 1]), $a([8, 2]), $a([8, 3]), $a([8, 4]), $a([8, 5]), $a([8, 6]), $a([8, 7]), $a([8, 8]), $a([7, 8]), $a([6, 8]), $a([5, 8]), $a([4, 8]), $a([3, 8]), $a([2, 8]), $a([1, 8]), $a([9, 1]), $a([9, 2]), $a([9, 3]), $a([9, 4]), $a([9, 5])]); //#25126 + for (var _JU = 0, _JV = _JT.length; _JU < _JV; _JU++) { //#25130 + $aload($get(_JT, _JU)); //#25128 + $1.y = $k[--$j]; //#25128 + $1.x = $k[--$j]; //#25128 + $k[$j++] = $a([$1.x, $1.y]); //#25129 + $k[$j++] = $a([-$1.x, $1.y]); //#25129 + $k[$j++] = $a([-$1.x, -$1.y]); //#25129 + $k[$j++] = $a([$1.x, -$1.y]); //#25129 + } //#25129 + $astore($a(176)); //#25131 + $1.metadatamap = $k[--$j]; //#25131 + $1.palettemap1 = $a([$a([4, 1]), $a([4, 2]), $a([5, 1]), $a([5, 2]), $a([2, 4]), $a([2, 5]), $a([1, 4]), $a([1, 5]), $a([-2, 1]), $a([-2, 2]), $a([-1, 1]), $a([-1, 2]), $a([-4, 4]), $a([-4, 5]), $a([-5, 4]), $a([-5, 5])]); //#25136 + $1.palettemap2 = $a([$a([-4, -5]), $a([-4, -4]), $a([-5, -5]), $a([-5, -4]), $a([-2, -2]), $a([-2, -1]), $a([-1, -2]), $a([-1, -1]), $a([2, -5]), $a([2, -4]), $a([1, -5]), $a([1, -4]), $a([4, -2]), $a([4, -1]), $a([5, -2]), $a([5, -1])]); //#25141 + } else { //#25167 + $k[$j++] = Infinity; //#25154 + for (var _KL = 1; _KL <= 19; _KL += 1) { //#25151 + $1.i = _KL; //#25149 + $k[$j++] = $a([0, $1.i]); //#25150 + $k[$j++] = $a([1, $1.i]); //#25150 + } //#25150 + for (var _KQ = 5; _KQ <= 12; _KQ += 1) { //#25155 + $1.i = _KQ; //#25153 + $k[$j++] = $a([2, $1.i]); //#25154 + $k[$j++] = $a([3, $1.i]); //#25154 + } //#25154 + $1.metadatamap = $a(); //#25154 + $k[$j++] = Infinity; //#25162 + for (var _KW = 5; _KW <= 12; _KW += 1) { //#25159 + $k[$j++] = _KW; //#25159 + $k[$j++] = Infinity; //#25159 + var _KX = $k[--$j]; //#25159 + var _KY = $k[--$j]; //#25159 + $k[$j++] = _KX; //#25159 + $k[$j++] = 4; //#25159 + $k[$j++] = _KY; //#25159 + var _KZ = $a(); //#25159 + $k[$j++] = _KZ; //#25159 + } //#25159 + for (var _Ka = 12; _Ka >= 5; _Ka -= 1) { //#25160 + $k[$j++] = _Ka; //#25160 + $k[$j++] = Infinity; //#25160 + var _Kb = $k[--$j]; //#25160 + var _Kc = $k[--$j]; //#25160 + $k[$j++] = _Kb; //#25160 + $k[$j++] = 5; //#25160 + $k[$j++] = _Kc; //#25160 + var _Kd = $a(); //#25160 + $k[$j++] = _Kd; //#25160 + } //#25160 + for (var _Ke = 5; _Ke <= 12; _Ke += 1) { //#25161 + $k[$j++] = _Ke; //#25161 + $k[$j++] = Infinity; //#25161 + var _Kf = $k[--$j]; //#25161 + var _Kg = $k[--$j]; //#25161 + $k[$j++] = _Kf; //#25161 + $k[$j++] = 6; //#25161 + $k[$j++] = _Kg; //#25161 + var _Kh = $a(); //#25161 + $k[$j++] = _Kh; //#25161 + } //#25161 + for (var _Ki = 12; _Ki >= 5; _Ki -= 1) { //#25162 + $k[$j++] = _Ki; //#25162 + $k[$j++] = Infinity; //#25162 + var _Kj = $k[--$j]; //#25162 + var _Kk = $k[--$j]; //#25162 + $k[$j++] = _Kj; //#25162 + $k[$j++] = 7; //#25162 + $k[$j++] = _Kk; //#25162 + var _Kl = $a(); //#25162 + $k[$j++] = _Kl; //#25162 + } //#25162 + $1.palettemap1 = $a(); //#25162 + $k[$j++] = Infinity; //#25166 + var _Kn = $1.palettemap1; //#25166 + for (var _Ko = 0, _Kp = _Kn.length; _Ko < _Kp; _Ko++) { //#25166 + $k[$j++] = $get(_Kn, _Ko); //#25166 + $k[$j++] = Infinity; //#25166 + var _Kr = $k[--$j]; //#25166 + var _Ks = $k[--$j]; //#25166 + $k[$j++] = _Kr; //#25166 + $aload(_Ks); //#25166 + var _Kt = $k[--$j]; //#25166 + var _Ku = $k[--$j]; //#25166 + $k[$j++] = -_Ku; //#25166 + $k[$j++] = -_Kt; //#25166 + var _Kv = $a(); //#25166 + $k[$j++] = _Kv; //#25166 + } //#25166 + $1.palettemap2 = $a(); //#25166 + } //#25167 + var _Kx = $1.metadatamap; //#25172 + for (var _Ky = 0, _Kz = _Kx.length; _Ky < _Kz; _Ky++) { //#25176 + var _L0 = $get(_Kx, _Ky); //#25176 + var _L1 = $get(_L0, 0); //#25173 + $k[$j++] = _L0; //#25173 + $k[$j++] = _L1; //#25173 + if (_L1 < 0) { //#25173 + var _L3 = $k[--$j]; //#25173 + var _L4 = $k[--$j]; //#25173 + $put(_L4, 0, $f($f(_L3 + $1.cols) - 1)); //#25173 + $k[$j++] = _L4; //#25173 + } else { //#25173 + $j--; //#25173 + } //#25173 + var _L5 = $k[--$j]; //#25174 + var _L6 = $get(_L5, 1); //#25174 + $k[$j++] = _L5; //#25174 + $k[$j++] = _L6; //#25174 + if (_L6 < 0) { //#25174 + var _L8 = $k[--$j]; //#25174 + var _L9 = $k[--$j]; //#25174 + $put(_L9, 1, $f($f(_L8 + $1.rows) - 1)); //#25174 + $k[$j++] = _L9; //#25174 + } else { //#25174 + $j--; //#25174 + } //#25174 + $j--; //#25175 + } //#25175 + var _LA = $1.palettemap1; //#25177 + for (var _LB = 0, _LC = _LA.length; _LB < _LC; _LB++) { //#25181 + var _LD = $get(_LA, _LB); //#25181 + var _LE = $get(_LD, 0); //#25178 + $k[$j++] = _LD; //#25178 + $k[$j++] = _LE; //#25178 + if (_LE < 0) { //#25178 + var _LG = $k[--$j]; //#25178 + var _LH = $k[--$j]; //#25178 + $put(_LH, 0, $f($f(_LG + $1.cols) - 1)); //#25178 + $k[$j++] = _LH; //#25178 + } else { //#25178 + $j--; //#25178 + } //#25178 + var _LI = $k[--$j]; //#25179 + var _LJ = $get(_LI, 1); //#25179 + $k[$j++] = _LI; //#25179 + $k[$j++] = _LJ; //#25179 + if (_LJ < 0) { //#25179 + var _LL = $k[--$j]; //#25179 + var _LM = $k[--$j]; //#25179 + $put(_LM, 1, $f($f(_LL + $1.rows) - 1)); //#25179 + $k[$j++] = _LM; //#25179 + } else { //#25179 + $j--; //#25179 + } //#25179 + $j--; //#25180 + } //#25180 + var _LN = $1.palettemap2; //#25182 + for (var _LO = 0, _LP = _LN.length; _LO < _LP; _LO++) { //#25186 + var _LQ = $get(_LN, _LO); //#25186 + var _LR = $get(_LQ, 0); //#25183 + $k[$j++] = _LQ; //#25183 + $k[$j++] = _LR; //#25183 + if (_LR < 0) { //#25183 + var _LT = $k[--$j]; //#25183 + var _LU = $k[--$j]; //#25183 + $put(_LU, 0, $f($f(_LT + $1.cols) - 1)); //#25183 + $k[$j++] = _LU; //#25183 + } else { //#25183 + $j--; //#25183 + } //#25183 + var _LV = $k[--$j]; //#25184 + var _LW = $get(_LV, 1); //#25184 + $k[$j++] = _LV; //#25184 + $k[$j++] = _LW; //#25184 + if (_LW < 0) { //#25184 + var _LY = $k[--$j]; //#25184 + var _LZ = $k[--$j]; //#25184 + $put(_LZ, 1, $f($f(_LY + $1.rows) - 1)); //#25184 + $k[$j++] = _LZ; //#25184 + } else { //#25184 + $j--; //#25184 + } //#25184 + $j--; //#25185 + } //#25185 + for (var _Lc = 0, _Lb = $f($1.nummetamodules - 1); _Lc <= _Lb; _Lc += 1) { //#25191 + $k[$j++] = $1.pixs; //#25190 + $aload($get($1.metadatamap, _Lc)); //#25190 + $1.jmv(); //#25190 + var _Lg = $k[--$j]; //#25190 + $put($k[--$j], _Lg, 0); //#25190 + } //#25190 + if (!$1.slave) { //#25204 + var _Lj = $1.colors; //#25196 + var _Lk = 16; //#25196 + if (16 > _Lj) { //#25196 + var _ = _Lj; //#25196 + _Lj = _Lk; //#25196 + _Lk = _; //#25196 + } //#25196 + for (var _Lm = 0, _Ll = _Lk - 1; _Lm <= _Ll; _Lm += 1) { //#25201 + $1.i = _Lm; //#25197 + var _Lp = $get($1.palettelayout, $1.i); //#25198 + $k[$j++] = _Lp; //#25199 + $k[$j++] = $1.pixs; //#25199 + $k[$j++] = _Lp; //#25199 + $aload($get($1.palettemap1, $1.i)); //#25199 + $1.jmv(); //#25199 + var _Lu = $k[--$j]; //#25199 + var _Lv = $k[--$j]; //#25199 + $put($k[--$j], _Lu, _Lv); //#25199 + var _Ly = $k[--$j]; //#25200 + $k[$j++] = $1.pixs; //#25200 + $k[$j++] = _Ly; //#25200 + $aload($get($1.palettemap2, $1.i)); //#25200 + $1.jmv(); //#25200 + var _M2 = $k[--$j]; //#25200 + var _M3 = $k[--$j]; //#25200 + $put($k[--$j], _M2, _M3); //#25200 + } //#25200 + $1.i = 16; //#25202 + } else { //#25204 + $1.i = 0; //#25204 + } //#25204 + $1.j = $1.nummetamodules; //#25208 + for (var _M9 = $1.i, _M8 = $1.palettelayout.length - 1; _M9 <= _M8; _M9 += 2) { //#25218 + $1.i = _M9; //#25210 + var _MC = $get($1.palettelayout, $1.i); //#25211 + $k[$j++] = _MC; //#25212 + $k[$j++] = $1.pixs; //#25212 + $k[$j++] = _MC; //#25212 + $aload($get($1.metadatamap, $1.j)); //#25212 + $1.jmv(); //#25212 + var _MH = $k[--$j]; //#25212 + var _MI = $k[--$j]; //#25212 + $put($k[--$j], _MH, _MI); //#25212 + var _ML = $k[--$j]; //#25213 + $k[$j++] = $1.pixs; //#25213 + $k[$j++] = _ML; //#25213 + $aload($get($1.metadatamap, $f($1.j + 2))); //#25213 + $1.jmv(); //#25213 + var _MP = $k[--$j]; //#25213 + var _MQ = $k[--$j]; //#25213 + $put($k[--$j], _MP, _MQ); //#25213 + var _MU = $get($1.palettelayout, $1.i + 1); //#25214 + $k[$j++] = _MU; //#25215 + $k[$j++] = $1.pixs; //#25215 + $k[$j++] = _MU; //#25215 + $aload($get($1.metadatamap, $f($1.j + 1))); //#25215 + $1.jmv(); //#25215 + var _MZ = $k[--$j]; //#25215 + var _Ma = $k[--$j]; //#25215 + $put($k[--$j], _MZ, _Ma); //#25215 + var _Md = $k[--$j]; //#25216 + $k[$j++] = $1.pixs; //#25216 + $k[$j++] = _Md; //#25216 + $aload($get($1.metadatamap, $f($1.j + 3))); //#25216 + $1.jmv(); //#25216 + var _Mh = $k[--$j]; //#25216 + var _Mi = $k[--$j]; //#25216 + $put($k[--$j], _Mh, _Mi); //#25216 + $1.j = $f($1.j + 4); //#25217 + } //#25217 + var _NA = $a([function() { + var _Ml = $k[--$j]; //#25222 + var _Mm = $k[--$j]; //#25222 + $k[$j++] = $f(_Mm + _Ml) % $1.colors; //#25222 }, function() { - $j--; - var _Mp = $k[--$j]; - $k[$j++] = _Mp % $1.colors; + $j--; //#25223 + var _Mp = $k[--$j]; //#25223 + $k[$j++] = _Mp % $1.colors; //#25223 }, function() { - var _Mq = $k[--$j]; - var _Mr = $k[--$j]; - $k[$j++] = _Mq; - $k[$j++] = _Mr; - $j--; - var _Mt = $k[--$j]; - $k[$j++] = _Mt % $1.colors; + var _Mq = $k[--$j]; //#25224 + var _Mr = $k[--$j]; //#25224 + $k[$j++] = _Mq; //#25224 + $k[$j++] = _Mr; //#25224 + $j--; //#25224 + var _Mt = $k[--$j]; //#25224 + $k[$j++] = _Mt % $1.colors; //#25224 }, function() { - var _Mu = $k[--$j]; - var _Mv = $k[--$j]; - $k[$j++] = (~~(_Mu / 3) + ~~(_Mv / 2)) % $1.colors; + var _Mu = $k[--$j]; //#25225 + var _Mv = $k[--$j]; //#25225 + $k[$j++] = ((~~(_Mu / 3)) + (~~(_Mv / 2))) % $1.colors; //#25225 }, function() { - var _Mx = $k[--$j]; - var _My = $k[--$j]; - $k[$j++] = (~~(_Mx / 2) + ~~(_My / 3)) % $1.colors; + var _Mx = $k[--$j]; //#25226 + var _My = $k[--$j]; //#25226 + $k[$j++] = ((~~(_Mx / 2)) + (~~(_My / 3))) % $1.colors; //#25226 }, function() { - var _N0 = $k[--$j]; - var _N2 = $f($k[--$j] + _N0); - $k[$j++] = (~~(_N2 / 2) + ~~(_N2 / 3)) % $1.colors; + var _N0 = $k[--$j]; //#25227 + var _N2 = $f($k[--$j] + _N0); //#25227 + $k[$j++] = ((~~(_N2 / 2)) + (~~(_N2 / 3))) % $1.colors; //#25227 }, function() { - var _N4 = $k[--$j]; - var _N5 = $k[--$j]; - $k[$j++] = $f(_N4 * (_N5 * _N5) % 7 + $f(_N4 + _N5 * _N5) * 2 % 19) % $1.colors; + var _N4 = $k[--$j]; //#25228 + var _N5 = $k[--$j]; //#25228 + $k[$j++] = ($f(((_N4 * (_N5 * _N5)) % 7) + ((($f(_N4 + (_N5 * _N5))) * 2) % 19))) % $1.colors; //#25228 }, function() { - var _N7 = $k[--$j]; - var _N8 = $k[--$j]; - $k[$j++] = $f(_N8 * (_N7 * _N7) % 5 + $f(_N7 * _N7 + _N8 * 2) % 13) % $1.colors; - } ]); - $1.maskfuncs = _NA; - if ($1.mask != -1) { - $1.maskfuncs = $a([ $get($1.maskfuncs, $1.mask) ]); - $1.bestmaskval = $1.mask; - } - $1.masks = $a($1.maskfuncs.length); - for (var _NL = 0, _NK = $1.masks.length - 1; _NL <= _NK; _NL += 1) { - $1.m = _NL; - $1.mask = $a($1.rows * $1.cols); - for (var _NR = 0, _NQ = $f($1.rows - 1); _NR <= _NQ; _NR += 1) { - $1.j = _NR; - for (var _NU = 0, _NT = $f($1.cols - 1); _NU <= _NT; _NU += 1) { - $1.i = _NU; - $k[$j++] = $1.pixs; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.jmv(); - var _NY = $k[--$j]; - if ($get($k[--$j], _NY) == -1) { - $k[$j++] = $1.i; - $k[$j++] = $1.j; + var _N7 = $k[--$j]; //#25229 + var _N8 = $k[--$j]; //#25229 + $k[$j++] = ($f(((_N8 * (_N7 * _N7)) % 5) + (($f((_N7 * _N7) + (_N8 * 2))) % 13))) % $1.colors; //#25229 + }]); //#25229 + $1.maskfuncs = _NA; //#25230 + if ($1.mask != -1) { //#25234 + $1.maskfuncs = $a([$get($1.maskfuncs, $1.mask)]); //#25232 + $1.bestmaskval = $1.mask; //#25233 + } //#25233 + $1.masks = $a($1.maskfuncs.length); //#25235 + for (var _NL = 0, _NK = $1.masks.length - 1; _NL <= _NK; _NL += 1) { //#25248 + $1.m = _NL; //#25237 + $1.mask = $a($1.rows * $1.cols); //#25238 + for (var _NR = 0, _NQ = $f($1.rows - 1); _NR <= _NQ; _NR += 1) { //#25246 + $1.j = _NR; //#25240 + for (var _NU = 0, _NT = $f($1.cols - 1); _NU <= _NT; _NU += 1) { //#25245 + $1.i = _NU; //#25242 + $k[$j++] = $1.pixs; //#25243 + $k[$j++] = $1.i; //#25243 + $k[$j++] = $1.j; //#25243 + $1.jmv(); //#25243 + var _NY = $k[--$j]; //#25243 + if ($get($k[--$j], _NY) == -1) { //#25243 + $k[$j++] = $1.i; //#25243 + $k[$j++] = $1.j; //#25243 if ($get($1.maskfuncs, $1.m)() === true) { break; - } - } else { - $k[$j++] = 0; - } - $k[$j++] = $1.mask; - $k[$j++] = $1.i; - $k[$j++] = $1.j; - $1.jmv(); - var _Nj = $k[--$j]; - var _Nk = $k[--$j]; - $put(_Nk, _Nj, $k[--$j]); - } - } - $put($1.masks, $1.m, $1.mask); - } - $1.posx = 0; - $1.posy = 0; - $1.i = 0; - for (;;) { - if ($1.posx == $1.cols) { - break; - } - $k[$j++] = $1.pixs; - $k[$j++] = $1.posx; - $k[$j++] = $1.posy; - $1.jmv(); - var _Nu = $k[--$j]; - if ($get($k[--$j], _Nu) == -1) { - var _O0 = $geti($1.bits, $1.i, $1.databpm); - $k[$j++] = 0; - for (var _O1 = 0, _O2 = _O0.length; _O1 < _O2; _O1++) { - var _O4 = $k[--$j]; - $k[$j++] = $f(_O4 + $f($get(_O0, _O1) - 48)) * 2; - } - var _O5 = $k[--$j]; - $k[$j++] = ~~(_O5 / 2); - $k[$j++] = $1.pixs; - $k[$j++] = $1.posx; - $k[$j++] = $1.posy; - $1.jmv(); - var _O9 = $k[--$j]; - var _OA = $k[--$j]; - $put(_OA, _O9, $k[--$j]); - $1.i = $1.i + $1.databpm; - } - $1.posy = $1.posy + 1; - if ($1.posy == $1.rows) { - $1.posy = 0; - $1.posx = $1.posx + 1; - } - } + } //#25243 + } else { //#25243 + $k[$j++] = 0; //#25243 + } //#25243 + $k[$j++] = $1.mask; //#25244 + $k[$j++] = $1.i; //#25244 + $k[$j++] = $1.j; //#25244 + $1.jmv(); //#25244 + var _Nj = $k[--$j]; //#25244 + var _Nk = $k[--$j]; //#25244 + $put(_Nk, _Nj, $k[--$j]); //#25244 + } //#25244 + } //#25244 + $put($1.masks, $1.m, $1.mask); //#25247 + } //#25247 + $1.posx = 0; //#25251 + $1.posy = 0; //#25251 + $1.i = 0; //#25252 + for (;;) { //#25262 + if ($1.posx == $1.cols) { //#25254 + break; //#25254 + } //#25254 + $k[$j++] = $1.pixs; //#25255 + $k[$j++] = $1.posx; //#25255 + $k[$j++] = $1.posy; //#25255 + $1.jmv(); //#25255 + var _Nu = $k[--$j]; //#25255 + if ($get($k[--$j], _Nu) == -1) { //#25259 + var _O0 = $geti($1.bits, $1.i, $1.databpm); //#25256 + $k[$j++] = 0; //#25256 + for (var _O1 = 0, _O2 = _O0.length; _O1 < _O2; _O1++) { //#25256 + var _O4 = $k[--$j]; //#25256 + $k[$j++] = ($f(_O4 + $f($get(_O0, _O1) - 48))) * 2; //#25256 + } //#25256 + var _O5 = $k[--$j]; //#25256 + $k[$j++] = ~~(_O5 / 2); //#25257 + $k[$j++] = $1.pixs; //#25257 + $k[$j++] = $1.posx; //#25257 + $k[$j++] = $1.posy; //#25257 + $1.jmv(); //#25257 + var _O9 = $k[--$j]; //#25257 + var _OA = $k[--$j]; //#25257 + $put(_OA, _O9, $k[--$j]); //#25257 + $1.i = $1.i + $1.databpm; //#25258 + } //#25258 + $1.posy = $1.posy + 1; //#25260 + if ($1.posy == $1.rows) { //#25261 + $1.posy = 0; //#25261 + $1.posx = $1.posx + 1; //#25261 + } //#25261 + } //#25261 $1.evalrle = function() { - $1.scrle = $k[--$j]; - $1.scr1 = 0; - $1.scr3 = 0; - for (var _OL = 0, _OK = $1.scrle.length - 2; _OL <= _OK; _OL += 2) { - $1.j = _OL; - if ($get($1.scrle, $1.j + 1) != -1) { - var _OR = $get($1.scrle, $1.j); - $k[$j++] = _OR; - if (_OR >= 5) { - $1.scr1 = $f($f($k[--$j] - 2) + $1.scr1); - } else { - $j--; - } - if ($1.j >= 4 && $1.j <= $1.scrle.length - 5) { - var _OZ = $geti($1.scrle, $1.j - 4, 10); - $k[$j++] = _OZ; - for (var _Oa = 0, _Ob = _OZ.length; _Oa < _Ob; _Oa++) { - $k[$j++] = $get(_OZ, _Oa) == 1; - } - $j--; - for (var _Od = 0, _Oe = 4; _Od < _Oe; _Od++) { - var _Of = $k[--$j]; - var _Og = $k[--$j]; - $k[$j++] = _Of; - $k[$j++] = _Og; - $j--; - var _Oh = $k[--$j]; - var _Oi = $k[--$j]; - $k[$j++] = $an(_Oi, _Oh); - } - if ($k[--$j]) { - $k[$j++] = Infinity; - var _Ok = $k[--$j]; - var _Ol = $k[--$j]; - $k[$j++] = _Ok; - $aload(_Ol); - var _Om = $k[--$j]; - var _On = $k[--$j]; - var _Oo = $k[--$j]; - var _Op = $k[--$j]; - var _Oq = $k[--$j]; - var _Or = $k[--$j]; - var _Os = $k[--$j]; - var _Ot = $k[--$j]; - var _Ou = $k[--$j]; - $k[$j++] = _Ou; - $k[$j++] = _Ot; - $k[$j++] = _Os; - $k[$j++] = _Or; - $k[$j++] = _Oq; - $k[$j++] = _Op; - $k[$j++] = _Oo; - $k[$j++] = _On; - $k[$j++] = _Om; - if ($eq(_Ou, _Oq) && $eq(_Ou, _Om) && $eq(_Os, _Oo)) { - var _Ov = $k[--$j]; - var _Ow = $k[--$j]; - var _Ox = $k[--$j]; - $1.c4 = _Ox; - $1.c5 = _Ov; - $k[$j++] = _Ox; - $k[$j++] = _Ow; - if ($1.c4 == $1.bi && $1.c5 == $1.yi || ($1.c4 == $1.yi && $1.c5 == $1.bi || ($1.c4 == $1.gi && $1.c5 == $1.mi || $1.c4 == $1.mi && $1.c5 == $1.gi))) { - $1.scr3 = $1.scr3 + 100; - } - } - $cleartomark(); - } else { - $j--; - } - } - } - } - $k[$j++] = $1.scr1; - $k[$j++] = $1.scr3; - }; + $1.scrle = $k[--$j]; //#25266 + $1.scr1 = 0; //#25267 + $1.scr3 = 0; //#25267 + for (var _OL = 0, _OK = $1.scrle.length - 2; _OL <= _OK; _OL += 2) { //#25289 + $1.j = _OL; //#25269 + if ($get($1.scrle, $1.j + 1) != -1) { //#25288 + var _OR = $get($1.scrle, $1.j); //#25272 + $k[$j++] = _OR; //#25272 + if (_OR >= 5) { //#25272 + $1.scr1 = $f($f($k[--$j] - 2) + $1.scr1); //#25272 + } else { //#25272 + $j--; //#25272 + } //#25272 + if (($1.j >= 4) && ($1.j <= ($1.scrle.length - 5))) { //#25287 + var _OZ = $geti($1.scrle, $1.j - 4, 10); //#25275 + $k[$j++] = _OZ; //#25276 + for (var _Oa = 0, _Ob = _OZ.length; _Oa < _Ob; _Oa++) { //#25276 + $k[$j++] = $get(_OZ, _Oa) == 1; //#25276 + } //#25276 + $j--; //#25276 + for (var _Od = 0, _Oe = 4; _Od < _Oe; _Od++) { //#25276 + var _Of = $k[--$j]; //#25276 + var _Og = $k[--$j]; //#25276 + $k[$j++] = _Of; //#25276 + $k[$j++] = _Og; //#25276 + $j--; //#25276 + var _Oh = $k[--$j]; //#25276 + var _Oi = $k[--$j]; //#25276 + $k[$j++] = $an(_Oi, _Oh); //#25276 + } //#25276 + if ($k[--$j]) { //#25286 + $k[$j++] = Infinity; //#25277 + var _Ok = $k[--$j]; //#25277 + var _Ol = $k[--$j]; //#25277 + $k[$j++] = _Ok; //#25277 + $aload(_Ol); //#25277 + var _Om = $k[--$j]; //#25278 + var _On = $k[--$j]; //#25278 + var _Oo = $k[--$j]; //#25278 + var _Op = $k[--$j]; //#25278 + var _Oq = $k[--$j]; //#25278 + var _Or = $k[--$j]; //#25278 + var _Os = $k[--$j]; //#25278 + var _Ot = $k[--$j]; //#25278 + var _Ou = $k[--$j]; //#25278 + $k[$j++] = _Ou; //#25284 + $k[$j++] = _Ot; //#25284 + $k[$j++] = _Os; //#25284 + $k[$j++] = _Or; //#25284 + $k[$j++] = _Oq; //#25284 + $k[$j++] = _Op; //#25284 + $k[$j++] = _Oo; //#25284 + $k[$j++] = _On; //#25284 + $k[$j++] = _Om; //#25284 + if (($eq(_Ou, _Oq) && $eq(_Ou, _Om)) && $eq(_Os, _Oo)) { //#25284 + var _Ov = $k[--$j]; //#25280 + var _Ow = $k[--$j]; //#25280 + var _Ox = $k[--$j]; //#25280 + $1.c4 = _Ox; //#25280 + $1.c5 = _Ov; //#25280 + $k[$j++] = _Ox; //#25283 + $k[$j++] = _Ow; //#25283 + if ((($1.c4 == $1.bi) && ($1.c5 == $1.yi)) || ((($1.c4 == $1.yi) && ($1.c5 == $1.bi)) || ((($1.c4 == $1.gi) && ($1.c5 == $1.mi)) || (($1.c4 == $1.mi) && ($1.c5 == $1.gi))))) { //#25283 + $1.scr3 = $1.scr3 + 100; //#25283 + } //#25283 + } //#25283 + $cleartomark(); //#25285 + } else { //#25286 + $j--; //#25286 + } //#25286 + } //#25286 + } //#25286 + } //#25286 + $k[$j++] = $1.scr1; //#25290 + $k[$j++] = $1.scr3; //#25290 + }; //#25291 $1.evalmask = function() { - $1.sym = $k[--$j]; - $1.n1 = 0; - $1.n2 = 0; - $1.n3 = 0; - var _PI = $1.rows; - var _PJ = $1.cols; - if (_PI < _PJ) { - var _ = _PJ; - _PJ = _PI; - _PI = _; - } - $1.rle = $a($f(_PI * 2 + 2)); - $1.lastpairs = $a($1.cols); - $1.thispairs = $a($1.cols); - for (var _PR = 0, _PQ = $f($1.cols - 1); _PR <= _PQ; _PR += 1) { - $1.i = _PR; - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = -1; - for (var _PX = $1.i, _PY = $1.cols, _PW = $f($1.rows * $1.cols - 1); _PY < 0 ? _PX >= _PW : _PX <= _PW; _PX += _PY) { - var _Pa = $get($1.sym, _PX); - var _Pb = $k[--$j]; - $k[$j++] = _Pb; - $k[$j++] = _Pa; - if ($eq(_Pb, _Pa)) { - $j--; - var _Pc = $k[--$j]; - var _Pd = $k[--$j]; - $k[$j++] = $f(_Pd + 1); - $k[$j++] = _Pc; - } else { - var _Pe = $k[--$j]; - $k[$j++] = 1; - $k[$j++] = _Pe; - } - } - var _Pg = $counttomark() + 2; - $astore($geti($1.rle, 0, _Pg - 2)); - $1.evalrle(); - $1.n3 = $f($k[--$j] + $1.n3); - $1.n1 = $f($k[--$j] + $1.n1); - $j--; - } - for (var _Po = 0, _Pn = $f($1.rows - 1); _Po <= _Pn; _Po += 1) { - $1.i = _Po; - $1.symrow = $geti($1.sym, $1.i * $1.cols, $1.cols); - $k[$j++] = Infinity; - var _Pu = $1.symrow; - $k[$j++] = 0; - $k[$j++] = -1; - for (var _Pv = 0, _Pw = _Pu.length; _Pv < _Pw; _Pv++) { - var _Px = $get(_Pu, _Pv); - var _Py = $k[--$j]; - $k[$j++] = _Py; - $k[$j++] = _Px; - if ($eq(_Py, _Px)) { - $j--; - var _Pz = $k[--$j]; - var _Q0 = $k[--$j]; - $k[$j++] = $f(_Q0 + 1); - $k[$j++] = _Pz; - } else { - var _Q1 = $k[--$j]; - $k[$j++] = 1; - $k[$j++] = _Q1; - } - } - var _Q3 = $counttomark() + 2; - $astore($geti($1.rle, 0, _Q3 - 2)); - $1.evalrle(); - $1.n3 = $f($k[--$j] + $1.n3); - $1.n1 = $f($k[--$j] + $1.n1); - $j--; - var _Q9 = $1.thispairs; - $1.thispairs = $1.lastpairs; - $1.lastpairs = _Q9; - var _QB = $1.symrow; - $k[$j++] = -1; - for (var _QC = 0, _QD = _QB.length; _QC < _QD; _QC++) { - var _QE = $get(_QB, _QC); - var _QF = $k[--$j]; - $k[$j++] = _QE; - $k[$j++] = _QF; - if ($ne(_QE, _QF)) { - $j--; - var _QG = $k[--$j]; - $k[$j++] = -1; - $k[$j++] = _QG; - } - } - $j--; - $astore($1.thispairs); - $j--; - if ($1.i > 0) { - $k[$j++] = Infinity; - $aload($1.lastpairs); - $aload($1.thispairs); - $k[$j++] = $1.n2; - for (var _QN = 0, _QO = $1.cols; _QN < _QO; _QN++) { - var _QP = $k[--$j]; - var _QQ = $k[--$j]; - $k[$j++] = _QP; - $k[$j++] = _QQ; - if (_QQ != -1) { - var _QS = $k[$j - 1 - $f($1.cols + 1)]; - if ($eq($k[--$j], _QS)) { - var _QU = $k[--$j]; - $k[$j++] = $f(_QU + 3); - } - } else { - $j--; - } - } - $1.n2 = $k[--$j]; - $cleartomark(); - } - } - $k[$j++] = $f($f($1.n1 + $1.n2) + $1.n3); - }; - $1.bestscore = 999999999; - for (var _Qb = 0, _Qa = $1.masks.length - 1; _Qb <= _Qa; _Qb += 1) { - $1.m = _Qb; - $1.masksym = $a($1.rows * $1.cols); - for (var _Qi = 0, _Qh = $f($1.rows * $1.cols - 1); _Qi <= _Qh; _Qi += 1) { - $1.i = _Qi; - $put($1.masksym, $1.i, $xo($get($1.pixs, $1.i), $get($get($1.masks, $1.m), $1.i))); - } - if ($1.masks.length != 1) { - $k[$j++] = $1.masksym; - $1.evalmask(); - $1.score = $k[--$j]; - if ($1.score < $1.bestscore) { - $1.bestsym = $1.masksym; - $1.bestmaskval = $1.m; - $1.bestscore = $1.score; - } - } else { - $1.bestsym = $1.masksym; - } - } - $1.pixs = $1.bestsym; - $1.metamask = $1.bestmaskval; + $1.sym = $k[--$j]; //#25294 + $1.n1 = 0; //#25296 + $1.n2 = 0; //#25296 + $1.n3 = 0; //#25296 + var _PI = $1.rows; //#25297 + var _PJ = $1.cols; //#25297 + if (_PI < _PJ) { //#25297 + var _ = _PJ; //#25297 + _PJ = _PI; //#25297 + _PI = _; //#25297 + } //#25297 + $1.rle = $a($f((_PI * 2) + 2)); //#25297 + $1.lastpairs = $a($1.cols); //#25298 + $1.thispairs = $a($1.cols); //#25299 + for (var _PR = 0, _PQ = $f($1.cols - 1); _PR <= _PQ; _PR += 1) { //#25311 + $1.i = _PR; //#25303 + $k[$j++] = Infinity; //#25304 + $k[$j++] = 0; //#25307 + $k[$j++] = -1; //#25307 + for (var _PX = $1.i, _PY = $1.cols, _PW = $f(($1.rows * $1.cols) - 1); _PY < 0 ? _PX >= _PW : _PX <= _PW; _PX += _PY) { //#25307 + var _Pa = $get($1.sym, _PX); //#25306 + var _Pb = $k[--$j]; //#25306 + $k[$j++] = _Pb; //#25306 + $k[$j++] = _Pa; //#25306 + if ($eq(_Pb, _Pa)) { //#25306 + $j--; //#25306 + var _Pc = $k[--$j]; //#25306 + var _Pd = $k[--$j]; //#25306 + $k[$j++] = $f(_Pd + 1); //#25306 + $k[$j++] = _Pc; //#25306 + } else { //#25306 + var _Pe = $k[--$j]; //#25306 + $k[$j++] = 1; //#25306 + $k[$j++] = _Pe; //#25306 + } //#25306 + } //#25306 + var _Pg = $counttomark() + 2; //#25308 + $astore($geti($1.rle, 0, _Pg - 2)); //#25308 + $1.evalrle(); //#25309 + $1.n3 = $f($k[--$j] + $1.n3); //#25309 + $1.n1 = $f($k[--$j] + $1.n1); //#25309 + $j--; //#25310 + } //#25310 + for (var _Po = 0, _Pn = $f($1.rows - 1); _Po <= _Pn; _Po += 1) { //#25338 + $1.i = _Po; //#25314 + $1.symrow = $geti($1.sym, $1.i * $1.cols, $1.cols); //#25317 + $k[$j++] = Infinity; //#25318 + var _Pu = $1.symrow; //#25319 + $k[$j++] = 0; //#25321 + $k[$j++] = -1; //#25321 + for (var _Pv = 0, _Pw = _Pu.length; _Pv < _Pw; _Pv++) { //#25321 + var _Px = $get(_Pu, _Pv); //#25321 + var _Py = $k[--$j]; //#25320 + $k[$j++] = _Py; //#25320 + $k[$j++] = _Px; //#25320 + if ($eq(_Py, _Px)) { //#25320 + $j--; //#25320 + var _Pz = $k[--$j]; //#25320 + var _Q0 = $k[--$j]; //#25320 + $k[$j++] = $f(_Q0 + 1); //#25320 + $k[$j++] = _Pz; //#25320 + } else { //#25320 + var _Q1 = $k[--$j]; //#25320 + $k[$j++] = 1; //#25320 + $k[$j++] = _Q1; //#25320 + } //#25320 + } //#25320 + var _Q3 = $counttomark() + 2; //#25322 + $astore($geti($1.rle, 0, _Q3 - 2)); //#25322 + $1.evalrle(); //#25323 + $1.n3 = $f($k[--$j] + $1.n3); //#25323 + $1.n1 = $f($k[--$j] + $1.n1); //#25323 + $j--; //#25324 + var _Q9 = $1.thispairs; //#25327 + $1.thispairs = $1.lastpairs; //#25327 + $1.lastpairs = _Q9; //#25327 + var _QB = $1.symrow; //#25328 + $k[$j++] = -1; //#25328 + for (var _QC = 0, _QD = _QB.length; _QC < _QD; _QC++) { //#25328 + var _QE = $get(_QB, _QC); //#25328 + var _QF = $k[--$j]; //#25328 + $k[$j++] = _QE; //#25328 + $k[$j++] = _QF; //#25328 + if ($ne(_QE, _QF)) { //#25328 + $j--; //#25328 + var _QG = $k[--$j]; //#25328 + $k[$j++] = -1; //#25328 + $k[$j++] = _QG; //#25328 + } //#25328 + } //#25328 + $j--; //#25329 + $astore($1.thispairs); //#25330 + $j--; //#25330 + if ($1.i > 0) { //#25337 + $k[$j++] = Infinity; //#25332 + $aload($1.lastpairs); //#25333 + $aload($1.thispairs); //#25333 + $k[$j++] = $1.n2; //#25334 + for (var _QN = 0, _QO = $1.cols; _QN < _QO; _QN++) { //#25334 + var _QP = $k[--$j]; //#25334 + var _QQ = $k[--$j]; //#25334 + $k[$j++] = _QP; //#25334 + $k[$j++] = _QQ; //#25334 + if (_QQ != -1) { //#25334 + var _QS = $k[$j - 1 - $f($1.cols + 1)]; //#25334 + if ($eq($k[--$j], _QS)) { //#25334 + var _QU = $k[--$j]; //#25334 + $k[$j++] = $f(_QU + 3); //#25334 + } //#25334 + } else { //#25334 + $j--; //#25334 + } //#25334 + } //#25334 + $1.n2 = $k[--$j]; //#25335 + $cleartomark(); //#25336 + } //#25336 + } //#25336 + $k[$j++] = $f($f($1.n1 + $1.n2) + $1.n3); //#25340 + }; //#25341 + $1.bestscore = 999999999; //#25344 + for (var _Qb = 0, _Qa = $1.masks.length - 1; _Qb <= _Qa; _Qb += 1) { //#25362 + $1.m = _Qb; //#25346 + $1.masksym = $a($1.rows * $1.cols); //#25347 + for (var _Qi = 0, _Qh = $f(($1.rows * $1.cols) - 1); _Qi <= _Qh; _Qi += 1) { //#25351 + $1.i = _Qi; //#25349 + $put($1.masksym, $1.i, $xo($get($1.pixs, $1.i), $get($get($1.masks, $1.m), $1.i))); //#25350 + } //#25350 + if ($1.masks.length != 1) { //#25360 + $k[$j++] = $1.masksym; //#25353 + $1.evalmask(); //#25353 + $1.score = $k[--$j]; //#25353 + if ($1.score < $1.bestscore) { //#25358 + $1.bestsym = $1.masksym; //#25355 + $1.bestmaskval = $1.m; //#25356 + $1.bestscore = $1.score; //#25357 + } //#25357 + } else { //#25360 + $1.bestsym = $1.masksym; //#25360 + } //#25360 + } //#25360 + $1.pixs = $1.bestsym; //#25363 + $1.metamask = $1.bestmaskval; //#25364 $1.addtometapart = function() { - var _R4 = $k[--$j]; - $puti($1.metapart, $1.p, _R4); - $1.p = _R4.length + $1.p; - }; + var _R4 = $k[--$j]; //#25368 + $puti($1.metapart, $1.p, _R4); //#25368 + $1.p = _R4.length + $1.p; //#25369 + }; //#25370 $1.addtometabits = function() { - var _R8 = $k[--$j]; - $puti($1.metabits, $1.q, _R8); - $1.q = _R8.length + $1.q; - }; - $1.metapart = $s(40); - $1.metabits = $s($1.nummetabits); - $1.p = 0; - $1.q = 0; - if (!$1.slave) { - $k[$j++] = ~~Math.round(Math.log($1.colors) / Math.log(2)) - 1; - $k[$j++] = 3; - $1.tofixedbits(); - $1.addtometapart(); - $k[$j++] = $geti($1.metapart, 0, $1.p); - $k[$j++] = 2; - $k[$j++] = -1; - $1.ldpc(); - $1.addtometabits(); - $1.p = 0; - $k[$j++] = $1.metass; - $k[$j++] = 1; - $1.tofixedbits(); - $1.addtometapart(); - $k[$j++] = $1.metavf; - $k[$j++] = 2; - $1.tofixedbits(); - $1.addtometapart(); - $k[$j++] = $1.metamask; - $k[$j++] = 3; - $1.tofixedbits(); - $1.addtometapart(); - if ($1.hasslaves) { - $k[$j++] = "1"; - } else { - $k[$j++] = "0"; - } - $1.addtometapart(); - $k[$j++] = $geti($1.metapart, 0, $1.p); - $k[$j++] = 2; - $k[$j++] = -1; - $1.ldpc(); - $1.addtometabits(); - $1.p = 0; - if ($1.metass == 0) { - $k[$j++] = $f($f(~~($f($1.cols - 17) / 4) - $get($a([ 0, 4, 8, 16 ]), $1.metavf)) - 1); - $k[$j++] = $1.metavlen; - $1.tofixedbits(); - $1.addtometapart(); - } else { - $k[$j++] = ~~($f($1.cols - 17) / 4) - 1; - $k[$j++] = ~~($1.metavlen / 2); - $1.tofixedbits(); - $1.addtometapart(); - $k[$j++] = ~~($f($1.rows - 17) / 4) - 1; - $k[$j++] = ~~($1.metavlen / 2); - $1.tofixedbits(); - $1.addtometapart(); - } - $k[$j++] = $1.datawc - 3; - $k[$j++] = ~~($1.metaelen / 2); - $1.tofixedbits(); - $1.addtometapart(); - $k[$j++] = $1.datawr - 4; - $k[$j++] = ~~($1.metaelen / 2); - $1.tofixedbits(); - $1.addtometapart(); - if ($1.hasslaves) { - $k[$j++] = 0; - $k[$j++] = 4; - $1.tofixedbits(); - $1.addtometapart(); - } - $k[$j++] = $geti($1.metapart, 0, $1.p); - $k[$j++] = 2; - $k[$j++] = -1; - $1.ldpc(); - $1.addtometabits(); - $1.p = 0; - } else { - var _Rk = $1.sameshape ? 0 : 1; - $k[$j++] = _Rk; - $k[$j++] = 1; - $1.tofixedbits(); - $1.addtometapart(); - var _Rm = $1.sameecc ? 0 : 1; - $k[$j++] = _Rm; - $k[$j++] = 1; - $1.tofixedbits(); - $1.addtometapart(); - var _Ro = $1.hasslaves ? 1 : 0; - $k[$j++] = _Ro; - $k[$j++] = 1; - $1.tofixedbits(); - $1.addtometapart(); - $k[$j++] = $geti($1.metapart, 0, $1.p); - $k[$j++] = 2; - $k[$j++] = -1; - $1.ldpc(); - $1.addtometabits(); - $1.p = 0; - if (!$1.sameshape) { - $k[$j++] = ~~(($1.diffside - 17) / 4) - 1; - $k[$j++] = 5; - $1.tofixedbits(); - $1.addtometapart(); - } - if ($1.hasslaves) { - $k[$j++] = 0; - $k[$j++] = 3; - $1.tofixedbits(); - $1.addtometapart(); - } - $k[$j++] = $geti($1.metapart, 0, $1.p); - $k[$j++] = 2; - $k[$j++] = -1; - $1.ldpc(); - $1.addtometabits(); - $1.p = 0; - if (!$1.sameecc) { - $k[$j++] = $1.datawc - 3; - $k[$j++] = ~~($1.metaelen / 2); - $1.tofixedbits(); - $1.addtometapart(); - $k[$j++] = $1.datawr - 4; - $k[$j++] = ~~($1.metaelen / 2); - $1.tofixedbits(); - $1.addtometapart(); - } - $k[$j++] = $geti($1.metapart, 0, $1.p); - $k[$j++] = 2; - $k[$j++] = -1; - $1.ldpc(); - $1.addtometabits(); - $1.p = 0; - } - for (var _S9 = $1.q, _S8 = $f($1.nummetabits - 1); _S9 <= _S8; _S9 += 1) { - $put($1.metabits, _S9, 48); - } - $1.i = 0; - $1.j = 0; - if (!$1.slave) { - var _SE = $geti($1.metabits, $1.i, 6); - for (var _SF = 0, _SG = _SE.length; _SF < _SG; _SF++) { - $k[$j++] = $get(_SE, _SF); - if ($1.colors == 4) { - $k[$j++] = $a([ $1.bi, $1.yi ]); - } else { - $k[$j++] = $a([ $1.ki, $1.wi ]); - } - var _SP = $k[--$j]; - var _SR = $get(_SP, $f($k[--$j] - 48)); - $k[$j++] = _SR; - $k[$j++] = $1.pixs; - $aload($get($1.metadatamap, $1.j)); - $1.jmv(); - var _SW = $k[--$j]; - var _SX = $k[--$j]; - $put(_SX, _SW, $k[--$j]); - $1.j = $1.j + 1; - } - $1.i = $1.i + 6; - } - for (var _Se = 0, _Sf = ~~($f($1.nummetabits - $1.i) / $1.metabpm); _Se < _Sf; _Se++) { - var _Sj = $geti($1.metabits, $1.i, $1.metabpm); - $k[$j++] = 0; - for (var _Sk = 0, _Sl = _Sj.length; _Sk < _Sl; _Sk++) { - var _Sn = $k[--$j]; - $k[$j++] = $f(_Sn + $f($get(_Sj, _Sk) - 48)) * 2; - } - var _Sq = $get($1.metacolorindex, ~~($k[--$j] / 2)); - $k[$j++] = _Sq; - $k[$j++] = $1.pixs; - $aload($get($1.metadatamap, $1.j)); - $1.jmv(); - var _Sv = $k[--$j]; - var _Sw = $k[--$j]; - $put(_Sw, _Sv, $k[--$j]); - $1.i = $f($1.i + $1.metabpm); - $1.j = $1.j + 1; - } - var _T8 = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.pixs ], [ "pixx", $1.cols ], [ "pixy", $1.rows ], [ "colormap", $1.palette ], [ "height", $1.rows * 2 / 72 ], [ "width", $1.cols * 2 / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _T8; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var _R8 = $k[--$j]; //#25373 + $puti($1.metabits, $1.q, _R8); //#25373 + $1.q = _R8.length + $1.q; //#25374 + }; //#25375 + $1.metapart = $s(40); //#25377 + $1.metabits = $s($1.nummetabits); //#25378 + $1.p = 0; //#25379 + $1.q = 0; //#25379 + if (!$1.slave) { //#25434 + $k[$j++] = (~~(Math.round(Math.log($1.colors) / Math.log(2)))) - 1; //#25384 + $k[$j++] = 3; //#25384 + $1.tofixedbits(); //#25384 + $1.addtometapart(); //#25384 + $k[$j++] = $geti($1.metapart, 0, $1.p); //#25385 + $k[$j++] = 2; //#25385 + $k[$j++] = -1; //#25385 + $1.ldpc(); //#25385 + $1.addtometabits(); //#25385 + $1.p = 0; //#25385 + $k[$j++] = $1.metass; //#25388 + $k[$j++] = 1; //#25388 + $1.tofixedbits(); //#25388 + $1.addtometapart(); //#25388 + $k[$j++] = $1.metavf; //#25389 + $k[$j++] = 2; //#25389 + $1.tofixedbits(); //#25389 + $1.addtometapart(); //#25389 + $k[$j++] = $1.metamask; //#25390 + $k[$j++] = 3; //#25390 + $1.tofixedbits(); //#25390 + $1.addtometapart(); //#25390 + if ($1.hasslaves) { //#25391 + $k[$j++] = "1"; //#25391 + } else { //#25391 + $k[$j++] = "0"; //#25391 + } //#25391 + $1.addtometapart(); //#25391 + $k[$j++] = $geti($1.metapart, 0, $1.p); //#25392 + $k[$j++] = 2; //#25392 + $k[$j++] = -1; //#25392 + $1.ldpc(); //#25392 + $1.addtometabits(); //#25392 + $1.p = 0; //#25392 + if ($1.metass == 0) { //#25402 + $k[$j++] = $f(($f((~~($f($1.cols - 17) / 4)) - $get($a([0, 4, 8, 16]), $1.metavf))) - 1); //#25397 + $k[$j++] = $1.metavlen; //#25397 + $1.tofixedbits(); //#25397 + $1.addtometapart(); //#25397 + } else { //#25402 + $k[$j++] = (~~($f($1.cols - 17) / 4)) - 1; //#25400 + $k[$j++] = ~~($1.metavlen / 2); //#25400 + $1.tofixedbits(); //#25400 + $1.addtometapart(); //#25400 + $k[$j++] = (~~($f($1.rows - 17) / 4)) - 1; //#25402 + $k[$j++] = ~~($1.metavlen / 2); //#25402 + $1.tofixedbits(); //#25402 + $1.addtometapart(); //#25402 + } //#25402 + $k[$j++] = $1.datawc - 3; //#25404 + $k[$j++] = ~~($1.metaelen / 2); //#25404 + $1.tofixedbits(); //#25404 + $1.addtometapart(); //#25404 + $k[$j++] = $1.datawr - 4; //#25405 + $k[$j++] = ~~($1.metaelen / 2); //#25405 + $1.tofixedbits(); //#25405 + $1.addtometapart(); //#25405 + if ($1.hasslaves) { //#25408 + $k[$j++] = 0; //#25407 + $k[$j++] = 4; //#25407 + $1.tofixedbits(); //#25407 + $1.addtometapart(); //#25407 + } //#25407 + $k[$j++] = $geti($1.metapart, 0, $1.p); //#25409 + $k[$j++] = 2; //#25409 + $k[$j++] = -1; //#25409 + $1.ldpc(); //#25409 + $1.addtometabits(); //#25409 + $1.p = 0; //#25409 + } else { //#25434 + var _Rk = $1.sameshape ? 0 : 1; //#25414 + $k[$j++] = _Rk; //#25414 + $k[$j++] = 1; //#25414 + $1.tofixedbits(); //#25414 + $1.addtometapart(); //#25414 + var _Rm = $1.sameecc ? 0 : 1; //#25415 + $k[$j++] = _Rm; //#25415 + $k[$j++] = 1; //#25415 + $1.tofixedbits(); //#25415 + $1.addtometapart(); //#25415 + var _Ro = $1.hasslaves ? 1 : 0; //#25416 + $k[$j++] = _Ro; //#25416 + $k[$j++] = 1; //#25416 + $1.tofixedbits(); //#25416 + $1.addtometapart(); //#25416 + $k[$j++] = $geti($1.metapart, 0, $1.p); //#25417 + $k[$j++] = 2; //#25417 + $k[$j++] = -1; //#25417 + $1.ldpc(); //#25417 + $1.addtometabits(); //#25417 + $1.p = 0; //#25417 + if (!$1.sameshape) { //#25423 + $k[$j++] = (~~(($1.diffside - 17) / 4)) - 1; //#25422 + $k[$j++] = 5; //#25422 + $1.tofixedbits(); //#25422 + $1.addtometapart(); //#25422 + } //#25422 + if ($1.hasslaves) { //#25426 + $k[$j++] = 0; //#25425 + $k[$j++] = 3; //#25425 + $1.tofixedbits(); //#25425 + $1.addtometapart(); //#25425 + } //#25425 + $k[$j++] = $geti($1.metapart, 0, $1.p); //#25427 + $k[$j++] = 2; //#25427 + $k[$j++] = -1; //#25427 + $1.ldpc(); //#25427 + $1.addtometabits(); //#25427 + $1.p = 0; //#25427 + if (!$1.sameecc) { //#25433 + $k[$j++] = $1.datawc - 3; //#25431 + $k[$j++] = ~~($1.metaelen / 2); //#25431 + $1.tofixedbits(); //#25431 + $1.addtometapart(); //#25431 + $k[$j++] = $1.datawr - 4; //#25432 + $k[$j++] = ~~($1.metaelen / 2); //#25432 + $1.tofixedbits(); //#25432 + $1.addtometapart(); //#25432 + } //#25432 + $k[$j++] = $geti($1.metapart, 0, $1.p); //#25434 + $k[$j++] = 2; //#25434 + $k[$j++] = -1; //#25434 + $1.ldpc(); //#25434 + $1.addtometabits(); //#25434 + $1.p = 0; //#25434 + } //#25434 + for (var _S9 = $1.q, _S8 = $f($1.nummetabits - 1); _S9 <= _S8; _S9 += 1) { //#25439 + $put($1.metabits, _S9, 48); //#25438 + } //#25438 + $1.i = 0; //#25442 + $1.j = 0; //#25442 + if (!$1.slave) { //#25450 + var _SE = $geti($1.metabits, $1.i, 6); //#25444 + for (var _SF = 0, _SG = _SE.length; _SF < _SG; _SF++) { //#25448 + $k[$j++] = $get(_SE, _SF); //#25445 + if ($1.colors == 4) { //#25445 + $k[$j++] = $a([$1.bi, $1.yi]); //#25445 + } else { //#25445 + $k[$j++] = $a([$1.ki, $1.wi]); //#25445 + } //#25445 + var _SP = $k[--$j]; //#25445 + var _SR = $get(_SP, $f($k[--$j] - 48)); //#25445 + $k[$j++] = _SR; //#25446 + $k[$j++] = $1.pixs; //#25446 + $aload($get($1.metadatamap, $1.j)); //#25446 + $1.jmv(); //#25446 + var _SW = $k[--$j]; //#25446 + var _SX = $k[--$j]; //#25446 + $put(_SX, _SW, $k[--$j]); //#25446 + $1.j = $1.j + 1; //#25447 + } //#25447 + $1.i = $1.i + 6; //#25449 + } //#25449 + for (var _Se = 0, _Sf = ~~($f($1.nummetabits - $1.i) / $1.metabpm); _Se < _Sf; _Se++) { //#25457 + var _Sj = $geti($1.metabits, $1.i, $1.metabpm); //#25452 + $k[$j++] = 0; //#25452 + for (var _Sk = 0, _Sl = _Sj.length; _Sk < _Sl; _Sk++) { //#25452 + var _Sn = $k[--$j]; //#25452 + $k[$j++] = ($f(_Sn + $f($get(_Sj, _Sk) - 48))) * 2; //#25452 + } //#25452 + var _Sq = $get($1.metacolorindex, ~~($k[--$j] / 2)); //#25453 + $k[$j++] = _Sq; //#25454 + $k[$j++] = $1.pixs; //#25454 + $aload($get($1.metadatamap, $1.j)); //#25454 + $1.jmv(); //#25454 + var _Sv = $k[--$j]; //#25454 + var _Sw = $k[--$j]; //#25454 + $put(_Sw, _Sv, $k[--$j]); //#25454 + $1.i = $f($1.i + $1.metabpm); //#25455 + $1.j = $1.j + 1; //#25456 + } //#25456 + var _T8 = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.pixs], + ["pixx", $1.cols], + ["pixy", $1.rows], + ["colormap", $1.palette], + ["height", ($1.rows * 2) / 72], + ["width", ($1.cols * 2) / 72], + ["opt", $1.options] + ]); //#25467 + $k[$j++] = _T8; //#25470 + if (!$1.dontdraw) { //#25470 + $0.renmatrix(); //#25470 + } //#25470 }; - $0["gs1-cc"] = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.parse = false; - $1.dontlint = false; - $1.dontdraw = false; - $1.ccversion = "a"; - $1.cccolumns = -1; - $1.lintype = ""; - $1.linwidth = -1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.cccolumns = ~~$1.cccolumns; - $1.linwidth = ~~$1.linwidth; - if ($1.cccolumns == -1) { - $k[$j++] = Infinity; - $k[$j++] = "ean13"; - $k[$j++] = 4; - $k[$j++] = "upca"; - $k[$j++] = 4; - $k[$j++] = "ean8"; - $k[$j++] = 3; - $k[$j++] = "upce"; - $k[$j++] = 2; - $k[$j++] = "gs1-128"; - if ($ne($1.ccversion, "c")) { - $k[$j++] = 4; - } else { - $k[$j++] = ~~(($1.linwidth - 52) / 17); - } - $k[$j++] = "databaromni"; - $k[$j++] = 4; - $k[$j++] = "databarstacked"; - $k[$j++] = 2; - $k[$j++] = "databarstackedomni"; - $k[$j++] = 2; - $k[$j++] = "databartruncated"; - $k[$j++] = 4; - $k[$j++] = "databarlimited"; - $k[$j++] = 3; - $k[$j++] = "databarexpanded"; - $k[$j++] = 4; - $k[$j++] = "databarexpandedstacked"; - $k[$j++] = 4; - $1.cccolumns = $get($d(), $1.lintype); - } + $0['gs1-cc'] = function() { + var $1 = {}; //#25503 + $1.options = $k[--$j]; //#25505 + $1.barcode = $k[--$j]; //#25506 + $1.parse = false; //#25508 + $1.dontlint = false; //#25509 + $1.dontdraw = false; //#25510 + $1.ccversion = "a"; //#25511 + $1.cccolumns = -1; //#25512 + $1.lintype = ""; //#25513 + $1.linwidth = -1; //#25514 + $forall($1.options, function() { //#25525 + var _3 = $k[--$j]; //#25525 + $1[$k[--$j]] = _3; //#25525 + }); //#25525 + $1.cccolumns = ~~$1.cccolumns; //#25527 + $1.linwidth = ~~$1.linwidth; //#25528 + if ($1.cccolumns == -1) { //#25547 + $k[$j++] = Infinity; //#25545 + $k[$j++] = 'ean13'; //#25538 + $k[$j++] = 4; //#25538 + $k[$j++] = 'upca'; //#25538 + $k[$j++] = 4; //#25538 + $k[$j++] = 'ean8'; //#25538 + $k[$j++] = 3; //#25538 + $k[$j++] = 'upce'; //#25538 + $k[$j++] = 2; //#25538 + $k[$j++] = 'gs1-128'; //#25538 + if ($ne($1.ccversion, "c")) { //#25538 + $k[$j++] = 4; //#25538 + } else { //#25538 + $k[$j++] = ~~(($1.linwidth - 52) / 17); //#25538 + } //#25538 + $k[$j++] = 'databaromni'; //#25545 + $k[$j++] = 4; //#25545 + $k[$j++] = 'databarstacked'; //#25545 + $k[$j++] = 2; //#25545 + $k[$j++] = 'databarstackedomni'; //#25545 + $k[$j++] = 2; //#25545 + $k[$j++] = 'databartruncated'; //#25545 + $k[$j++] = 4; //#25545 + $k[$j++] = 'databarlimited'; //#25545 + $k[$j++] = 3; //#25545 + $k[$j++] = 'databarexpanded'; //#25545 + $k[$j++] = 4; //#25545 + $k[$j++] = 'databarexpandedstacked'; //#25545 + $k[$j++] = 4; //#25545 + $1.cccolumns = $get($d(), $1.lintype); //#25546 + } //#25546 $1.expand = function() { - var _E = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _E; - $k[$j++] = $1.fncvals; - $0.parseinput(); - }; - $1.ais = $a([]); - $1.vals = $a([]); - var _I = $1.barcode; - $k[$j++] = $geti(_I, 1, _I.length - 1); - for (;;) { - var _K = $k[--$j]; - $k[$j++] = _K; - if ($eq(_K, "")) { - break; - } - $search($k[--$j], ")"); - $j--; - var _M = $k[--$j]; - var _N = $k[--$j]; - $k[$j++] = _M; - $k[$j++] = _N; - $j--; - var _O = $k[--$j]; - var _P = $k[--$j]; - $k[$j++] = _O; - $search(_P, "("); - if ($k[--$j]) { - var _R = $k[--$j]; - var _S = $k[--$j]; - $k[$j++] = _R; - $k[$j++] = _S; - $j--; - var _T = $k[--$j]; - var _U = $k[--$j]; - var _V = $k[--$j]; - $k[$j++] = _U; - $k[$j++] = _V; - $k[$j++] = _T; - } else { - var _W = $k[--$j]; - var _X = $k[--$j]; - $k[$j++] = ""; - $k[$j++] = _X; - $k[$j++] = _W; - } - $k[$j++] = Infinity; - $aload($1.ais); - var _a = $k[$j - 1 - ($counttomark() + 2)]; - $k[$j++] = _a; - $1.ais = $a(); - $k[$j++] = Infinity; - $aload($1.vals); - var _e = $k[$j - 1 - ($counttomark() + 1)]; - $k[$j++] = _e; - $1.expand(); - $1.vals = $a(); - $j -= 2; - } - $j--; - if (!$1.dontlint) { - $k[$j++] = $1.ais; - $k[$j++] = $1.vals; - $0.gs1lint(); - $j--; - } + var _E = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#25554 + $1.fncvals = _E; //#25555 + $k[$j++] = $1.fncvals; //#25556 + $0.parseinput(); //#25556 + }; //#25557 + $1.ais = $a([]); //#25560 + $1.vals = $a([]); //#25561 + var _I = $1.barcode; //#25562 + $k[$j++] = $geti(_I, 1, _I.length - 1); //#25575 + for (;;) { //#25575 + var _K = $k[--$j]; //#25564 + $k[$j++] = _K; //#25564 + if ($eq(_K, "")) { //#25564 + break; //#25564 + } //#25564 + $search($k[--$j], ")"); //#25565 + $j--; //#25565 + var _M = $k[--$j]; //#25566 + var _N = $k[--$j]; //#25566 + $k[$j++] = _M; //#25566 + $k[$j++] = _N; //#25566 + $j--; //#25566 + var _O = $k[--$j]; //#25567 + var _P = $k[--$j]; //#25567 + $k[$j++] = _O; //#25567 + $search(_P, "("); //#25567 + if ($k[--$j]) { //#25570 + var _R = $k[--$j]; //#25568 + var _S = $k[--$j]; //#25568 + $k[$j++] = _R; //#25568 + $k[$j++] = _S; //#25568 + $j--; //#25568 + var _T = $k[--$j]; //#25568 + var _U = $k[--$j]; //#25568 + var _V = $k[--$j]; //#25568 + $k[$j++] = _U; //#25568 + $k[$j++] = _V; //#25568 + $k[$j++] = _T; //#25568 + } else { //#25570 + var _W = $k[--$j]; //#25570 + var _X = $k[--$j]; //#25570 + $k[$j++] = ""; //#25570 + $k[$j++] = _X; //#25570 + $k[$j++] = _W; //#25570 + } //#25570 + $k[$j++] = Infinity; //#25572 + $aload($1.ais); //#25572 + var _a = $k[$j - 1 - ($counttomark() + 2)]; //#25572 + $k[$j++] = _a; //#25572 + $1.ais = $a(); //#25572 + $k[$j++] = Infinity; //#25573 + $aload($1.vals); //#25573 + var _e = $k[$j - 1 - ($counttomark() + 1)]; //#25573 + $k[$j++] = _e; //#25573 + $1.expand(); //#25573 + $1.vals = $a(); //#25573 + $j -= 2; //#25574 + } //#25574 + $j--; //#25576 + if (!$1.dontlint) { //#25578 + $k[$j++] = $1.ais; //#25578 + $k[$j++] = $1.vals; //#25578 + $0.gs1lint(); //#25578 + $j--; //#25578 + } //#25578 $1.isupper = function() { - var _j = $k[--$j]; - $k[$j++] = _j >= 65 && _j <= 90; - }; + var _j = $k[--$j]; //#25581 + $k[$j++] = (_j >= 65) && (_j <= 90); //#25581 + }; //#25581 $1.isnum0 = function() { - var _k = $k[--$j]; - $k[$j++] = _k >= 48 && _k <= 57; - }; + var _k = $k[--$j]; //#25582 + $k[$j++] = (_k >= 48) && (_k <= 57); //#25582 + }; //#25582 $1.isnum1 = function() { - var _l = $k[--$j]; - $k[$j++] = _l >= 49 && _l <= 57; - }; - for (;;) { - if ($1.ais.length >= 1) { - if ($eq($get($1.ais, 0), "10") || $eq($get($1.ais, 0), "11") || $eq($get($1.ais, 0), "17")) { - $k[$j++] = -1; - $k[$j++] = "10"; - break; - } - } - if ($1.ais.length >= 1) { - if ($eq($get($1.ais, 0), "90")) { - $1.v = $get($1.vals, 0); - if ($1.v.length >= 1) { - $k[$j++] = $get($1.v, 0); - $1.isupper(); - if ($k[--$j]) { - $k[$j++] = 0; - $k[$j++] = "11"; - break; - } - } - if ($1.v.length >= 2) { - $k[$j++] = $get($1.v, 0); - $1.isnum1(); - $k[$j++] = $get($1.v, 1); - $1.isupper(); - var _17 = $k[--$j]; - var _18 = $k[--$j]; - if (_18 && _17) { - $k[$j++] = 1; - $k[$j++] = "11"; - break; - } - } - if ($1.v.length >= 3) { - $k[$j++] = $get($1.v, 0); - $1.isnum1(); - $k[$j++] = $get($1.v, 1); - $1.isnum0(); - var _1E = $k[--$j]; - var _1F = $k[--$j]; - $k[$j++] = $an(_1F, _1E); - $k[$j++] = $get($1.v, 2); - $1.isupper(); - var _1I = $k[--$j]; - var _1J = $k[--$j]; - if (_1J && _1I) { - $k[$j++] = 2; - $k[$j++] = "11"; - break; - } - } - if ($1.v.length >= 4) { - $k[$j++] = $get($1.v, 0); - $1.isnum1(); - $k[$j++] = $get($1.v, 1); - $1.isnum0(); - var _1P = $k[--$j]; - var _1Q = $k[--$j]; - $k[$j++] = $an(_1Q, _1P); - $k[$j++] = $get($1.v, 2); - $1.isnum0(); - var _1T = $k[--$j]; - var _1U = $k[--$j]; - $k[$j++] = $an(_1U, _1T); - $k[$j++] = $get($1.v, 3); - $1.isupper(); - var _1X = $k[--$j]; - var _1Y = $k[--$j]; - if (_1Y && _1X) { - $k[$j++] = 3; - $k[$j++] = "11"; - break; - } - } - } - } - $k[$j++] = -1; - $k[$j++] = "0"; - break; - } - $1.method = $k[--$j]; - $1.npre = $k[--$j]; - $1.fnc1 = -1; - $1.lnumeric = -2; - $1.lalphanumeric = -3; - $1.liso646 = -4; + var _l = $k[--$j]; //#25583 + $k[$j++] = (_l >= 49) && (_l <= 57); //#25583 + }; //#25583 + for (;;) { //#25629 + if ($1.ais.length >= 1) { //#25591 + if (($eq($get($1.ais, 0), "10") || $eq($get($1.ais, 0), "11")) || $eq($get($1.ais, 0), "17")) { //#25590 + $k[$j++] = -1; //#25589 + $k[$j++] = "10"; //#25589 + break; //#25589 + } //#25589 + } //#25589 + if ($1.ais.length >= 1) { //#25624 + if ($eq($get($1.ais, 0), "90")) { //#25623 + $1.v = $get($1.vals, 0); //#25596 + if ($1.v.length >= 1) { //#25601 + $k[$j++] = $get($1.v, 0); //#25598 + $1.isupper(); //#25598 + if ($k[--$j]) { //#25600 + $k[$j++] = 0; //#25599 + $k[$j++] = "11"; //#25599 + break; //#25599 + } //#25599 + } //#25599 + if ($1.v.length >= 2) { //#25607 + $k[$j++] = $get($1.v, 0); //#25603 + $1.isnum1(); //#25603 + $k[$j++] = $get($1.v, 1); //#25604 + $1.isupper(); //#25604 + var _17 = $k[--$j]; //#25604 + var _18 = $k[--$j]; //#25604 + if ((_18 && _17)) { //#25606 + $k[$j++] = 1; //#25605 + $k[$j++] = "11"; //#25605 + break; //#25605 + } //#25605 + } //#25605 + if ($1.v.length >= 3) { //#25614 + $k[$j++] = $get($1.v, 0); //#25609 + $1.isnum1(); //#25609 + $k[$j++] = $get($1.v, 1); //#25610 + $1.isnum0(); //#25610 + var _1E = $k[--$j]; //#25610 + var _1F = $k[--$j]; //#25610 + $k[$j++] = $an(_1F, _1E); //#25611 + $k[$j++] = $get($1.v, 2); //#25611 + $1.isupper(); //#25611 + var _1I = $k[--$j]; //#25611 + var _1J = $k[--$j]; //#25611 + if ((_1J && _1I)) { //#25613 + $k[$j++] = 2; //#25612 + $k[$j++] = "11"; //#25612 + break; //#25612 + } //#25612 + } //#25612 + if ($1.v.length >= 4) { //#25622 + $k[$j++] = $get($1.v, 0); //#25616 + $1.isnum1(); //#25616 + $k[$j++] = $get($1.v, 1); //#25617 + $1.isnum0(); //#25617 + var _1P = $k[--$j]; //#25617 + var _1Q = $k[--$j]; //#25617 + $k[$j++] = $an(_1Q, _1P); //#25618 + $k[$j++] = $get($1.v, 2); //#25618 + $1.isnum0(); //#25618 + var _1T = $k[--$j]; //#25618 + var _1U = $k[--$j]; //#25618 + $k[$j++] = $an(_1U, _1T); //#25619 + $k[$j++] = $get($1.v, 3); //#25619 + $1.isupper(); //#25619 + var _1X = $k[--$j]; //#25619 + var _1Y = $k[--$j]; //#25619 + if ((_1Y && _1X)) { //#25621 + $k[$j++] = 3; //#25620 + $k[$j++] = "11"; //#25620 + break; //#25620 + } //#25620 + } //#25620 + } //#25620 + } //#25620 + $k[$j++] = -1; //#25627 + $k[$j++] = "0"; //#25627 + break; //#25627 + } //#25627 + $1.method = $k[--$j]; //#25630 + $1.npre = $k[--$j]; //#25631 + $1.fnc1 = -1; //#25633 + $1.lnumeric = -2; //#25633 + $1.lalphanumeric = -3; //#25633 + $1.liso646 = -4; //#25633 $1.tobin = function() { - var _1c = $s($k[--$j]); - $k[$j++] = _1c; - for (var _1e = 0, _1d = _1c.length - 1; _1e <= _1d; _1e += 1) { - var _1f = $k[--$j]; - $put(_1f, _1e, 48); - $k[$j++] = _1f; - } - var _1g = $k[--$j]; - var _1j = $cvrs($s(_1g.length), $k[--$j], 2); - $puti(_1g, _1g.length - _1j.length, _1j); - $k[$j++] = _1g; - }; - $k[$j++] = Infinity; - for (var _1k = 65; _1k <= 90; _1k += 1) { - $k[$j++] = _1k; - $k[$j++] = _1k - 65; - $k[$j++] = 5; - $1.tobin(); - } - for (var _1l = 48; _1l <= 57; _1l += 1) { - $k[$j++] = _1l; - $k[$j++] = _1l + 4; - $k[$j++] = 6; - $1.tobin(); - } - $k[$j++] = $1.fnc1; - $k[$j++] = "11111"; - $1.alpha = $d(); - $k[$j++] = Infinity; - for (var _1o = 0; _1o <= 119; _1o += 1) { - var _1q = $strcpy($s(2), "00"); - var _1s = $cvrs($s(2), _1o, 11); - $puti(_1q, 2 - _1s.length, _1s); - $k[$j++] = _1o; - $k[$j++] = _1q; - if ($get(_1q, 0) == 65) { - var _1u = $k[--$j]; - $put(_1u, 0, 94); - $k[$j++] = _1u; - } - var _1v = $k[--$j]; - $k[$j++] = _1v; - if ($get(_1v, 1) == 65) { - var _1x = $k[--$j]; - $put(_1x, 1, 94); - $k[$j++] = _1x; - } - var _1y = $k[--$j]; - var _21 = $strcpy($s(7), "0000000"); - var _23 = $cvrs($s(7), $f($k[--$j] + 8), 2); - $puti(_21, 7 - _23.length, _23); - $k[$j++] = _1y; - $k[$j++] = _21; - } - $k[$j++] = $1.lalphanumeric; - $k[$j++] = "0000"; - $1.numeric = $d(); - $k[$j++] = Infinity; - for (var _26 = 48; _26 <= 57; _26 += 1) { - $k[$j++] = _26; - $k[$j++] = _26 - 43; - $k[$j++] = 5; - $1.tobin(); - } - $k[$j++] = $1.fnc1; - $k[$j++] = "01111"; - for (var _28 = 65; _28 <= 90; _28 += 1) { - $k[$j++] = _28; - $k[$j++] = _28 - 33; - $k[$j++] = 6; - $1.tobin(); - } - $k[$j++] = 42; - $k[$j++] = "111010"; - for (var _29 = 44; _29 <= 47; _29 += 1) { - $k[$j++] = _29; - $k[$j++] = _29 + 15; - $k[$j++] = 6; - $1.tobin(); - } - $k[$j++] = $1.lnumeric; - $k[$j++] = "000"; - $k[$j++] = $1.liso646; - $k[$j++] = "00100"; - $1.alphanumeric = $d(); - $k[$j++] = Infinity; - for (var _2D = 48; _2D <= 57; _2D += 1) { - $k[$j++] = _2D; - $k[$j++] = _2D - 43; - $k[$j++] = 5; - $1.tobin(); - } - $k[$j++] = $1.fnc1; - $k[$j++] = "01111"; - for (var _2F = 65; _2F <= 90; _2F += 1) { - $k[$j++] = _2F; - $k[$j++] = _2F - 1; - $k[$j++] = 7; - $1.tobin(); - } - for (var _2G = 97; _2G <= 122; _2G += 1) { - $k[$j++] = _2G; - $k[$j++] = _2G - 7; - $k[$j++] = 7; - $1.tobin(); - } - $k[$j++] = 33; - $k[$j++] = "11101000"; - $k[$j++] = 34; - $k[$j++] = "11101001"; - for (var _2H = 37; _2H <= 47; _2H += 1) { - $k[$j++] = _2H; - $k[$j++] = _2H + 197; - $k[$j++] = 8; - $1.tobin(); - } - for (var _2I = 58; _2I <= 63; _2I += 1) { - $k[$j++] = _2I; - $k[$j++] = _2I + 187; - $k[$j++] = 8; - $1.tobin(); - } - $k[$j++] = 95; - $k[$j++] = "11111011"; - $k[$j++] = 32; - $k[$j++] = "11111100"; - $k[$j++] = $1.lnumeric; - $k[$j++] = "000"; - $k[$j++] = $1.lalphanumeric; - $k[$j++] = "00100"; - $1.iso646 = $d(); - if ($eq($1.method, "10")) { - if ($eq($get($1.ais, 0), "11") || $eq($get($1.ais, 0), "17")) { - var _2S = $get($1.vals, 0); - var _2X = $strcpy($s(16), "0000000000000000"); - var _2Z = $cvrs($s(16), ~~$z($geti(_2S, 0, 2)) * 384 + ((~~$z($geti(_2S, 2, 2)) - 1) * 32 + ~~$z($geti(_2S, 4, 2))), 2); - $puti(_2X, 16 - _2Z.length, _2Z); - $k[$j++] = _2X; - $k[$j++] = Infinity; - var _2a = $k[--$j]; - var _2b = $k[--$j]; - $k[$j++] = _2a; - $k[$j++] = 1; - $k[$j++] = 0; - $forall(_2b, function() { - var _2c = $k[--$j]; - $k[$j++] = $f(_2c - 48); - }); - var _2f = $eq($get($1.ais, 0), "11") ? 0 : 1; - $k[$j++] = _2f; - $1.cdf = $a(); - $1.ais = $geti($1.ais, 1, $1.ais.length - 1); - $1.vals = $geti($1.vals, 1, $1.vals.length - 1); - } else { - $1.cdf = $a([ 1, 0, 1, 1 ]); - } - if ($1.ais.length != 0) { - if ($eq($get($1.ais, 0), "10")) { - $k[$j++] = Infinity; - $forall($get($1.vals, 0)); - $1.gpf = $a(); - if ($1.ais.length > 1) { - $k[$j++] = Infinity; - $aload($1.gpf); - $k[$j++] = $1.fnc1; - $1.gpf = $a(); - } - $1.ais = $geti($1.ais, 1, $1.ais.length - 1); - $1.vals = $geti($1.vals, 1, $1.vals.length - 1); - } else { - $1.gpf = $a([ $1.fnc1 ]); - } - } else { - $k[$j++] = Infinity; - $aload($1.cdf); - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $1.cdf = $a(); - $1.gpf = $a([]); - } - $1.mode = "numeric"; - } - if ($eq($1.method, "11")) { - $1.cdf = $a([ 1, 1 ]); - $1.ai90 = $get($1.vals, 0); - if ($f($1.npre + 1) != $1.ai90.length) { - $k[$j++] = $geti($1.ai90, $f($1.npre + 1), $f($f($1.ai90.length - $1.npre) - 1)); - } else { - $k[$j++] = ""; - } - $1.ai90rem = $k[--$j]; - $k[$j++] = "nalpha"; - $k[$j++] = 0; - $forall($1.ai90rem, function() { - var _3M = $k[--$j]; - if (_3M >= 65 && _3M <= 90) { - var _3N = $k[--$j]; - $k[$j++] = $f(_3N + 1); - } - }); - var _3O = $k[--$j]; - $1[$k[--$j]] = _3O; - $k[$j++] = "nnums"; - $k[$j++] = 0; - $forall($1.ai90rem, function() { - var _3R = $k[--$j]; - if (_3R >= 48 && _3R <= 57) { - var _3S = $k[--$j]; - $k[$j++] = $f(_3S + 1); - } - }); - var _3T = $k[--$j]; - $1[$k[--$j]] = _3T; - $k[$j++] = "mode"; - if ($gt($1.nalpha, $1.nnums)) { - $k[$j++] = "alpha"; - } else { - if ($1.nalpha == 0) { - $k[$j++] = "numeric"; - } else { - $k[$j++] = "alphanumeric"; - } - } - var _3Y = $k[--$j]; - $1[$k[--$j]] = _3Y; - if ($f($1.nalpha + $1.nnums) != $1.ai90rem.length) { - $1.mode = "alphanumeric"; - } - $k[$j++] = Infinity; - $aload($1.cdf); - if ($eq($1.mode, "alphanumeric")) { - $k[$j++] = 0; - } - if ($eq($1.mode, "numeric")) { - $k[$j++] = 1; - $k[$j++] = 0; - } - if ($eq($1.mode, "alpha")) { - $k[$j++] = 1; - $k[$j++] = 1; - } - $1.cdf = $a(); - $k[$j++] = "ais1"; - if ($1.ais.length > 1) { - $k[$j++] = $get($1.ais, 1); - } else { - $k[$j++] = -1; - } - var _3l = $k[--$j]; - $1[$k[--$j]] = _3l; - $k[$j++] = "vals1"; - if ($1.vals.length > 1) { - $k[$j++] = $get($1.vals, 1); - } else { - $k[$j++] = -1; - } - var _3q = $k[--$j]; - $1[$k[--$j]] = _3q; - if ($eq($1.ais1, "21") || $eq($1.ais1, "8004")) { - $k[$j++] = Infinity; - $aload($1.cdf); - if ($eq($1.ais1, "21")) { - $k[$j++] = 1; - $k[$j++] = 0; - } else { - $k[$j++] = 1; - $k[$j++] = 1; - } - $1.cdf = $a(); - } else { - $k[$j++] = Infinity; - $aload($1.cdf); - $k[$j++] = 0; - $1.cdf = $a(); - } - $k[$j++] = "nval"; - if ($1.npre != 0) { - $k[$j++] = ~~$z($geti($1.ai90, 0, $1.npre)); - } else { - $k[$j++] = 0; - } - var _43 = $k[--$j]; - $1[$k[--$j]] = _43; - $search("BDHIJKLNPQRSTVXZ", $geti($1.ai90, $1.npre, 1)); - if ($k[--$j]) { - var _49 = $k[--$j]; - var _4A = $k[--$j]; - $k[$j++] = _49.length; - $k[$j++] = _4A; - $j--; - var _4B = $k[--$j]; - var _4C = $k[--$j]; - $k[$j++] = _4B; - $k[$j++] = _4C; - $j--; - $1.aval = $k[--$j]; - } else { - $j--; - $1.aval = -1; - } - if ($1.nval < 31 && $1.aval != -1) { - var _4H = $strcpy($s(5), "00000"); - var _4K = $cvrs($s(5), $1.nval, 2); - $puti(_4H, 5 - _4K.length, _4K); - $k[$j++] = Infinity; - var _4M = _4H; - $forall(_4M, function() { - var _4N = $k[--$j]; - $k[$j++] = $f(_4N - 48); - }); - $1.nbits = $a(); - var _4Q = $strcpy($s(4), "0000"); - var _4T = $cvrs($s(4), $1.aval, 2); - $puti(_4Q, 4 - _4T.length, _4T); - $k[$j++] = Infinity; - var _4V = _4Q; - $forall(_4V, function() { - var _4W = $k[--$j]; - $k[$j++] = $f(_4W - 48); - }); - $1.abits = $a(); - $k[$j++] = Infinity; - $aload($1.cdf); - $aload($1.nbits); - $aload($1.abits); - $1.cdf = $a(); - } else { - var _4d = $strcpy($s(10), "0000000000"); - var _4g = $cvrs($s(10), $1.nval, 2); - $puti(_4d, 10 - _4g.length, _4g); - $k[$j++] = Infinity; - var _4i = _4d; - $forall(_4i, function() { - var _4j = $k[--$j]; - $k[$j++] = $f(_4j - 48); - }); - $1.nbits = $a(); - var _4m = $strcpy($s(5), "00000"); - var _4r = $cvrs($s(5), $f($get($1.ai90, $1.npre) - 65), 2); - $puti(_4m, 5 - _4r.length, _4r); - $k[$j++] = Infinity; - var _4t = _4m; - $forall(_4t, function() { - var _4u = $k[--$j]; - $k[$j++] = $f(_4u - 48); - }); - $1.abits = $a(); - $k[$j++] = Infinity; - $aload($1.cdf); - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $aload($1.nbits); - $aload($1.abits); - $1.cdf = $a(); - } - if ($ne($1.mode, "alpha")) { - $k[$j++] = Infinity; - $forall($1.ai90rem); - if ($1.ais.length > 1) { - $k[$j++] = $1.fnc1; - } - $1.gpf = $a(); - } else { - $k[$j++] = Infinity; - $forall($1.ai90rem); - if ($1.ais.length > 1) { - $k[$j++] = $1.fnc1; - } - $1.in = $a(); - $1.out = $a($1.in.length * 6); - $1.j = 0; - for (var _5D = 0, _5C = $1.in.length - 1; _5D <= _5C; _5D += 1) { - var _5H = $get($1.alpha, $get($1.in, _5D)); - $k[$j++] = _5H; - $k[$j++] = Infinity; - var _5J = _5H; - $forall(_5J, function() { - var _5K = $k[--$j]; - $k[$j++] = $f(_5K - 48); - }); - $puti($1.out, $1.j, $a()); - $1.j = $k[--$j].length + $1.j; - } - $k[$j++] = Infinity; - $aload($1.cdf); - $aload($geti($1.out, 0, $1.j)); - $1.cdf = $a(); - $1.gpf = $a([]); - if ($1.ais.length > 1) { - $1.mode = "numeric"; - } - } - $1.ais = $geti($1.ais, 1, $1.ais.length - 1); - $1.vals = $geti($1.vals, 1, $1.vals.length - 1); - if ($1.ais.length != 0) { - if ($eq($1.ais1, "21") || $eq($1.ais1, "8004")) { - $k[$j++] = Infinity; - $aload($1.gpf); - $forall($1.vals1); - $1.gpf = $a(); - $1.ais = $geti($1.ais, 1, $1.ais.length - 1); - $1.vals = $geti($1.vals, 1, $1.vals.length - 1); - if ($1.ais.length != 0) { - $k[$j++] = Infinity; - $aload($1.gpf); - $k[$j++] = $1.fnc1; - $1.gpf = $a(); - } - } - } - } - if ($eq($1.method, "0")) { - $1.cdf = $a([ 0 ]); - $1.gpf = $a([]); - $1.mode = "numeric"; - } - $1.aifixed = new Map(); - $k[$j++] = Infinity; - for (var _5w = 0; _5w <= 4; _5w += 1) { - $k[$j++] = _5w; - } - var _5x = $a(); - for (var _5y = 0, _5z = _5x.length; _5y < _5z; _5y++) { - var _62 = $strcpy($s(2), "00"); - $put(_62, 1, $f($get(_5x, _5y) + 48)); - $put($1.aifixed, _62, _62); - } - $k[$j++] = Infinity; - for (var _64 = 11; _64 <= 20; _64 += 1) { - $k[$j++] = _64; - } - $k[$j++] = 23; - for (var _65 = 31; _65 <= 36; _65 += 1) { - $k[$j++] = _65; - } - $k[$j++] = 41; - var _66 = $a(); - for (var _67 = 0, _68 = _66.length; _67 < _68; _67++) { - var _6B = $cvrs($s(2), $get(_66, _67), 10); - $put($1.aifixed, _6B, _6B); - } - for (var _6F = 0, _6E = $1.ais.length - 1; _6F <= _6E; _6F += 1) { - $1.i = _6F; - $1.ai = $get($1.ais, $1.i); - $1.val = $get($1.vals, $1.i); - var _6P = $a($1.gpf.length + $1.ai.length + $1.val.length); - $puti(_6P, 0, $1.gpf); - $k[$j++] = _6P; - $k[$j++] = _6P; - $k[$j++] = $1.gpf.length; - $k[$j++] = Infinity; - var _6U = $1.ai; - $forall(_6U); - var _6V = $a(); - var _6W = $k[--$j]; - $puti($k[--$j], _6W, _6V); - var _6Y = $k[--$j]; - $k[$j++] = _6Y; - $k[$j++] = _6Y; - $k[$j++] = $1.gpf.length + $1.ai.length; - $k[$j++] = Infinity; - var _6d = $1.val; - $forall(_6d); - var _6e = $a(); - var _6f = $k[--$j]; - $puti($k[--$j], _6f, _6e); - $1.gpf = $k[--$j]; - var _6n = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; - if ($1.i != $1.ais.length - 1 && !_6n) { - var _6p = $a($1.gpf.length + 1); - $puti(_6p, 0, $1.gpf); - $put(_6p, $1.gpf.length, $1.fnc1); - $1.gpf = _6p; - } - } + var _1c = $s($k[--$j]); //#25636 + $k[$j++] = _1c; //#25636 + for (var _1e = 0, _1d = _1c.length - 1; _1e <= _1d; _1e += 1) { //#25636 + var _1f = $k[--$j]; //#25636 + $put(_1f, _1e, 48); //#25636 + $k[$j++] = _1f; //#25636 + } //#25636 + var _1g = $k[--$j]; //#25637 + var _1j = $cvrs($s(_1g.length), $k[--$j], 2); //#25637 + $puti(_1g, _1g.length - _1j.length, _1j); //#25637 + $k[$j++] = _1g; //#25637 + }; //#25638 + $k[$j++] = Infinity; //#25643 + for (var _1k = 65; _1k <= 90; _1k += 1) { //#25641 + $k[$j++] = _1k; //#25641 + $k[$j++] = _1k - 65; //#25641 + $k[$j++] = 5; //#25641 + $1.tobin(); //#25641 + } //#25641 + for (var _1l = 48; _1l <= 57; _1l += 1) { //#25642 + $k[$j++] = _1l; //#25642 + $k[$j++] = _1l + 4; //#25642 + $k[$j++] = 6; //#25642 + $1.tobin(); //#25642 + } //#25642 + $k[$j++] = $1.fnc1; //#25643 + $k[$j++] = "11111"; //#25643 + $1.alpha = $d(); //#25644 + $k[$j++] = Infinity; //#25656 + for (var _1o = 0; _1o <= 119; _1o += 1) { //#25655 + var _1q = $strcpy($s(2), "00"); //#25648 + var _1s = $cvrs($s(2), _1o, 11); //#25648 + $puti(_1q, 2 - _1s.length, _1s); //#25649 + $k[$j++] = _1o; //#25650 + $k[$j++] = _1q; //#25650 + if ($get(_1q, 0) == 65) { //#25650 + var _1u = $k[--$j]; //#25650 + $put(_1u, 0, 94); //#25650 + $k[$j++] = _1u; //#25650 + } //#25650 + var _1v = $k[--$j]; //#25651 + $k[$j++] = _1v; //#25651 + if ($get(_1v, 1) == 65) { //#25651 + var _1x = $k[--$j]; //#25651 + $put(_1x, 1, 94); //#25651 + $k[$j++] = _1x; //#25651 + } //#25651 + var _1y = $k[--$j]; //#25652 + var _21 = $strcpy($s(7), "0000000"); //#25653 + var _23 = $cvrs($s(7), $f($k[--$j] + 8), 2); //#25653 + $puti(_21, 7 - _23.length, _23); //#25654 + $k[$j++] = _1y; //#25654 + $k[$j++] = _21; //#25654 + } //#25654 + $k[$j++] = $1.lalphanumeric; //#25656 + $k[$j++] = "0000"; //#25656 + $1.numeric = $d(); //#25657 + $k[$j++] = Infinity; //#25666 + for (var _26 = 48; _26 <= 57; _26 += 1) { //#25660 + $k[$j++] = _26; //#25660 + $k[$j++] = _26 - 43; //#25660 + $k[$j++] = 5; //#25660 + $1.tobin(); //#25660 + } //#25660 + $k[$j++] = $1.fnc1; //#25662 + $k[$j++] = "01111"; //#25662 + for (var _28 = 65; _28 <= 90; _28 += 1) { //#25662 + $k[$j++] = _28; //#25662 + $k[$j++] = _28 - 33; //#25662 + $k[$j++] = 6; //#25662 + $1.tobin(); //#25662 + } //#25662 + $k[$j++] = 42; //#25664 + $k[$j++] = "111010"; //#25664 + for (var _29 = 44; _29 <= 47; _29 += 1) { //#25664 + $k[$j++] = _29; //#25664 + $k[$j++] = _29 + 15; //#25664 + $k[$j++] = 6; //#25664 + $1.tobin(); //#25664 + } //#25664 + $k[$j++] = $1.lnumeric; //#25666 + $k[$j++] = "000"; //#25666 + $k[$j++] = $1.liso646; //#25666 + $k[$j++] = "00100"; //#25666 + $1.alphanumeric = $d(); //#25667 + $k[$j++] = Infinity; //#25681 + for (var _2D = 48; _2D <= 57; _2D += 1) { //#25670 + $k[$j++] = _2D; //#25670 + $k[$j++] = _2D - 43; //#25670 + $k[$j++] = 5; //#25670 + $1.tobin(); //#25670 + } //#25670 + $k[$j++] = $1.fnc1; //#25672 + $k[$j++] = "01111"; //#25672 + for (var _2F = 65; _2F <= 90; _2F += 1) { //#25672 + $k[$j++] = _2F; //#25672 + $k[$j++] = _2F - 1; //#25672 + $k[$j++] = 7; //#25672 + $1.tobin(); //#25672 + } //#25672 + for (var _2G = 97; _2G <= 122; _2G += 1) { //#25673 + $k[$j++] = _2G; //#25673 + $k[$j++] = _2G - 7; //#25673 + $k[$j++] = 7; //#25673 + $1.tobin(); //#25673 + } //#25673 + $k[$j++] = 33; //#25676 + $k[$j++] = "11101000"; //#25676 + $k[$j++] = 34; //#25676 + $k[$j++] = "11101001"; //#25676 + for (var _2H = 37; _2H <= 47; _2H += 1) { //#25676 + $k[$j++] = _2H; //#25676 + $k[$j++] = _2H + 197; //#25676 + $k[$j++] = 8; //#25676 + $1.tobin(); //#25676 + } //#25676 + for (var _2I = 58; _2I <= 63; _2I += 1) { //#25677 + $k[$j++] = _2I; //#25677 + $k[$j++] = _2I + 187; //#25677 + $k[$j++] = 8; //#25677 + $1.tobin(); //#25677 + } //#25677 + $k[$j++] = 95; //#25681 + $k[$j++] = "11111011"; //#25681 + $k[$j++] = 32; //#25681 + $k[$j++] = "11111100"; //#25681 + $k[$j++] = $1.lnumeric; //#25681 + $k[$j++] = "000"; //#25681 + $k[$j++] = $1.lalphanumeric; //#25681 + $k[$j++] = "00100"; //#25681 + $1.iso646 = $d(); //#25682 + if ($eq($1.method, "10")) { //#25715 + if ($eq($get($1.ais, 0), "11") || $eq($get($1.ais, 0), "17")) { //#25699 + var _2S = $get($1.vals, 0); //#25686 + var _2X = $strcpy($s(16), "0000000000000000"); //#25690 + var _2Z = $cvrs($s(16), ((~~$z($geti(_2S, 0, 2))) * 384) + ((((~~$z($geti(_2S, 2, 2))) - 1) * 32) + (~~$z($geti(_2S, 4, 2)))), 2); //#25690 + $puti(_2X, 16 - _2Z.length, _2Z); //#25691 + $k[$j++] = _2X; //#25694 + $k[$j++] = Infinity; //#25694 + var _2a = $k[--$j]; //#25693 + var _2b = $k[--$j]; //#25693 + $k[$j++] = _2a; //#25693 + $k[$j++] = 1; //#25693 + $k[$j++] = 0; //#25693 + $forall(_2b, function() { //#25693 + var _2c = $k[--$j]; //#25693 + $k[$j++] = $f(_2c - 48); //#25693 + }); //#25693 + var _2f = $eq($get($1.ais, 0), "11") ? 0 : 1; //#25694 + $k[$j++] = _2f; //#25694 + $1.cdf = $a(); //#25695 + $1.ais = $geti($1.ais, 1, $1.ais.length - 1); //#25696 + $1.vals = $geti($1.vals, 1, $1.vals.length - 1); //#25697 + } else { //#25699 + $1.cdf = $a([1, 0, 1, 1]); //#25699 + } //#25699 + if ($1.ais.length != 0) { //#25712 + if ($eq($get($1.ais, 0), "10")) { //#25708 + $k[$j++] = Infinity; //#25703 + $forall($get($1.vals, 0)); //#25703 + $1.gpf = $a(); //#25703 + if ($1.ais.length > 1) { //#25704 + $k[$j++] = Infinity; //#25704 + $aload($1.gpf); //#25704 + $k[$j++] = $1.fnc1; //#25704 + $1.gpf = $a(); //#25704 + } //#25704 + $1.ais = $geti($1.ais, 1, $1.ais.length - 1); //#25705 + $1.vals = $geti($1.vals, 1, $1.vals.length - 1); //#25706 + } else { //#25708 + $1.gpf = $a([$1.fnc1]); //#25708 + } //#25708 + } else { //#25712 + $k[$j++] = Infinity; //#25711 + $aload($1.cdf); //#25711 + $k[$j++] = 0; //#25711 + $k[$j++] = 0; //#25711 + $k[$j++] = 0; //#25711 + $k[$j++] = 0; //#25711 + $k[$j++] = 0; //#25711 + $k[$j++] = 1; //#25711 + $k[$j++] = 1; //#25711 + $k[$j++] = 1; //#25711 + $k[$j++] = 1; //#25711 + $1.cdf = $a(); //#25711 + $1.gpf = $a([]); //#25712 + } //#25712 + $1.mode = "numeric"; //#25714 + } //#25714 + if ($eq($1.method, "11")) { //#25807 + $1.cdf = $a([1, 1]); //#25718 + $1.ai90 = $get($1.vals, 0); //#25719 + if ($f($1.npre + 1) != $1.ai90.length) { //#25723 + $k[$j++] = $geti($1.ai90, $f($1.npre + 1), $f($f($1.ai90.length - $1.npre) - 1)); //#25721 + } else { //#25723 + $k[$j++] = ""; //#25723 + } //#25723 + $1.ai90rem = $k[--$j]; //#25725 + $k[$j++] = 'nalpha'; //#25726 + $k[$j++] = 0; //#25726 + $forall($1.ai90rem, function() { //#25726 + var _3M = $k[--$j]; //#25726 + if ((_3M >= 65) && (_3M <= 90)) { //#25726 + var _3N = $k[--$j]; //#25726 + $k[$j++] = $f(_3N + 1); //#25726 + } //#25726 + }); //#25726 + var _3O = $k[--$j]; //#25726 + $1[$k[--$j]] = _3O; //#25726 + $k[$j++] = 'nnums'; //#25727 + $k[$j++] = 0; //#25727 + $forall($1.ai90rem, function() { //#25727 + var _3R = $k[--$j]; //#25727 + if ((_3R >= 48) && (_3R <= 57)) { //#25727 + var _3S = $k[--$j]; //#25727 + $k[$j++] = $f(_3S + 1); //#25727 + } //#25727 + }); //#25727 + var _3T = $k[--$j]; //#25727 + $1[$k[--$j]] = _3T; //#25727 + $k[$j++] = 'mode'; //#25728 + if ($gt($1.nalpha, $1.nnums)) { //#25728 + $k[$j++] = "alpha"; //#25728 + } else { //#25728 + if ($1.nalpha == 0) { //#25728 + $k[$j++] = "numeric"; //#25728 + } else { //#25728 + $k[$j++] = "alphanumeric"; //#25728 + } //#25728 + } //#25728 + var _3Y = $k[--$j]; //#25728 + $1[$k[--$j]] = _3Y; //#25728 + if ($f($1.nalpha + $1.nnums) != $1.ai90rem.length) { //#25729 + $1.mode = "alphanumeric"; //#25729 + } //#25729 + $k[$j++] = Infinity; //#25734 + $aload($1.cdf); //#25731 + if ($eq($1.mode, "alphanumeric")) { //#25732 + $k[$j++] = 0; //#25732 + } //#25732 + if ($eq($1.mode, "numeric")) { //#25733 + $k[$j++] = 1; //#25733 + $k[$j++] = 0; //#25733 + } //#25733 + if ($eq($1.mode, "alpha")) { //#25734 + $k[$j++] = 1; //#25734 + $k[$j++] = 1; //#25734 + } //#25734 + $1.cdf = $a(); //#25734 + $k[$j++] = 'ais1'; //#25736 + if ($1.ais.length > 1) { //#25736 + $k[$j++] = $get($1.ais, 1); //#25736 + } else { //#25736 + $k[$j++] = -1; //#25736 + } //#25736 + var _3l = $k[--$j]; //#25736 + $1[$k[--$j]] = _3l; //#25736 + $k[$j++] = 'vals1'; //#25737 + if ($1.vals.length > 1) { //#25737 + $k[$j++] = $get($1.vals, 1); //#25737 + } else { //#25737 + $k[$j++] = -1; //#25737 + } //#25737 + var _3q = $k[--$j]; //#25737 + $1[$k[--$j]] = _3q; //#25737 + if ($eq($1.ais1, "21") || $eq($1.ais1, "8004")) { //#25741 + $k[$j++] = Infinity; //#25739 + $aload($1.cdf); //#25739 + if ($eq($1.ais1, "21")) { //#25739 + $k[$j++] = 1; //#25739 + $k[$j++] = 0; //#25739 + } else { //#25739 + $k[$j++] = 1; //#25739 + $k[$j++] = 1; //#25739 + } //#25739 + $1.cdf = $a(); //#25739 + } else { //#25741 + $k[$j++] = Infinity; //#25741 + $aload($1.cdf); //#25741 + $k[$j++] = 0; //#25741 + $1.cdf = $a(); //#25741 + } //#25741 + $k[$j++] = 'nval'; //#25743 + if ($1.npre != 0) { //#25743 + $k[$j++] = ~~$z($geti($1.ai90, 0, $1.npre)); //#25743 + } else { //#25743 + $k[$j++] = 0; //#25743 + } //#25743 + var _43 = $k[--$j]; //#25743 + $1[$k[--$j]] = _43; //#25743 + $search("BDHIJKLNPQRSTVXZ", $geti($1.ai90, $1.npre, 1)); //#25744 + if ($k[--$j]) { //#25748 + var _49 = $k[--$j]; //#25745 + var _4A = $k[--$j]; //#25745 + $k[$j++] = _49.length; //#25745 + $k[$j++] = _4A; //#25745 + $j--; //#25745 + var _4B = $k[--$j]; //#25745 + var _4C = $k[--$j]; //#25745 + $k[$j++] = _4B; //#25745 + $k[$j++] = _4C; //#25745 + $j--; //#25745 + $1.aval = $k[--$j]; //#25746 + } else { //#25748 + $j--; //#25748 + $1.aval = -1; //#25748 + } //#25748 + if (($1.nval < 31) && ($1.aval != -1)) { //#25774 + var _4H = $strcpy($s(5), "00000"); //#25751 + var _4K = $cvrs($s(5), $1.nval, 2); //#25751 + $puti(_4H, 5 - _4K.length, _4K); //#25752 + $k[$j++] = _4H; //#25753 + $k[$j++] = Infinity; //#25753 + var _4L = $k[--$j]; //#25753 + var _4M = $k[--$j]; //#25753 + $k[$j++] = _4L; //#25753 + $forall(_4M, function() { //#25753 + var _4N = $k[--$j]; //#25753 + $k[$j++] = $f(_4N - 48); //#25753 + }); //#25753 + $1.nbits = $a(); //#25753 + var _4Q = $strcpy($s(4), "0000"); //#25754 + var _4T = $cvrs($s(4), $1.aval, 2); //#25754 + $puti(_4Q, 4 - _4T.length, _4T); //#25755 + $k[$j++] = _4Q; //#25756 + $k[$j++] = Infinity; //#25756 + var _4U = $k[--$j]; //#25756 + var _4V = $k[--$j]; //#25756 + $k[$j++] = _4U; //#25756 + $forall(_4V, function() { //#25756 + var _4W = $k[--$j]; //#25756 + $k[$j++] = $f(_4W - 48); //#25756 + }); //#25756 + $1.abits = $a(); //#25756 + $k[$j++] = Infinity; //#25760 + $aload($1.cdf); //#25758 + $aload($1.nbits); //#25759 + $aload($1.abits); //#25760 + $1.cdf = $a(); //#25760 + } else { //#25774 + var _4d = $strcpy($s(10), "0000000000"); //#25763 + var _4g = $cvrs($s(10), $1.nval, 2); //#25763 + $puti(_4d, 10 - _4g.length, _4g); //#25764 + $k[$j++] = _4d; //#25765 + $k[$j++] = Infinity; //#25765 + var _4h = $k[--$j]; //#25765 + var _4i = $k[--$j]; //#25765 + $k[$j++] = _4h; //#25765 + $forall(_4i, function() { //#25765 + var _4j = $k[--$j]; //#25765 + $k[$j++] = $f(_4j - 48); //#25765 + }); //#25765 + $1.nbits = $a(); //#25765 + var _4m = $strcpy($s(5), "00000"); //#25766 + var _4r = $cvrs($s(5), $f($get($1.ai90, $1.npre) - 65), 2); //#25766 + $puti(_4m, 5 - _4r.length, _4r); //#25767 + $k[$j++] = _4m; //#25768 + $k[$j++] = Infinity; //#25768 + var _4s = $k[--$j]; //#25768 + var _4t = $k[--$j]; //#25768 + $k[$j++] = _4s; //#25768 + $forall(_4t, function() { //#25768 + var _4u = $k[--$j]; //#25768 + $k[$j++] = $f(_4u - 48); //#25768 + }); //#25768 + $1.abits = $a(); //#25768 + $k[$j++] = Infinity; //#25773 + $aload($1.cdf); //#25770 + $k[$j++] = 1; //#25772 + $k[$j++] = 1; //#25772 + $k[$j++] = 1; //#25772 + $k[$j++] = 1; //#25772 + $k[$j++] = 1; //#25772 + $aload($1.nbits); //#25772 + $aload($1.abits); //#25773 + $1.cdf = $a(); //#25773 + } //#25774 + if ($ne($1.mode, "alpha")) { //#25792 + $k[$j++] = Infinity; //#25777 + $forall($1.ai90rem); //#25777 + if ($1.ais.length > 1) { //#25777 + $k[$j++] = $1.fnc1; //#25777 + } //#25777 + $1.gpf = $a(); //#25777 + } else { //#25792 + $k[$j++] = Infinity; //#25779 + $forall($1.ai90rem); //#25779 + if ($1.ais.length > 1) { //#25779 + $k[$j++] = $1.fnc1; //#25779 + } //#25779 + $1.in = $a(); //#25779 + $1.out = $a($1.in.length * 6); //#25780 + $1.j = 0; //#25781 + for (var _5D = 0, _5C = $1.in.length - 1; _5D <= _5C; _5D += 1) { //#25786 + var _5H = $get($1.alpha, $get($1.in, _5D)); //#25783 + $k[$j++] = _5H; //#25784 + $k[$j++] = _5H; //#25784 + $k[$j++] = Infinity; //#25784 + var _5I = $k[--$j]; //#25784 + var _5J = $k[--$j]; //#25784 + $k[$j++] = _5I; //#25784 + $forall(_5J, function() { //#25784 + var _5K = $k[--$j]; //#25784 + $k[$j++] = $f(_5K - 48); //#25784 + }); //#25784 + $puti($1.out, $1.j, $a()); //#25784 + $1.j = $k[--$j].length + $1.j; //#25785 + } //#25785 + $k[$j++] = Infinity; //#25789 + $aload($1.cdf); //#25788 + $aload($geti($1.out, 0, $1.j)); //#25789 + $1.cdf = $a(); //#25789 + $1.gpf = $a([]); //#25791 + if ($1.ais.length > 1) { //#25792 + $1.mode = "numeric"; //#25792 + } //#25792 + } //#25792 + $1.ais = $geti($1.ais, 1, $1.ais.length - 1); //#25794 + $1.vals = $geti($1.vals, 1, $1.vals.length - 1); //#25795 + if ($1.ais.length != 0) { //#25806 + if ($eq($1.ais1, "21") || $eq($1.ais1, "8004")) { //#25805 + $k[$j++] = Infinity; //#25800 + $aload($1.gpf); //#25799 + $forall($1.vals1); //#25800 + $1.gpf = $a(); //#25800 + $1.ais = $geti($1.ais, 1, $1.ais.length - 1); //#25802 + $1.vals = $geti($1.vals, 1, $1.vals.length - 1); //#25803 + if ($1.ais.length != 0) { //#25804 + $k[$j++] = Infinity; //#25804 + $aload($1.gpf); //#25804 + $k[$j++] = $1.fnc1; //#25804 + $1.gpf = $a(); //#25804 + } //#25804 + } //#25804 + } //#25804 + } //#25804 + if ($eq($1.method, "0")) { //#25813 + $1.cdf = $a([0]); //#25810 + $1.gpf = $a([]); //#25811 + $1.mode = "numeric"; //#25812 + } //#25812 + $1.aifixed = new Map; //#25818 + $k[$j++] = Infinity; //#25820 + for (var _5w = 0; _5w <= 4; _5w += 1) { //#25820 + $k[$j++] = _5w; //#25820 + } //#25820 + var _5x = $a(); //#25820 + for (var _5y = 0, _5z = _5x.length; _5y < _5z; _5y++) { //#25823 + var _62 = $strcpy($s(2), "00"); //#25822 + $put(_62, 1, $f($get(_5x, _5y) + 48)); //#25822 + $put($1.aifixed, _62, _62); //#25822 + } //#25822 + $k[$j++] = Infinity; //#25828 + for (var _64 = 11; _64 <= 20; _64 += 1) { //#25825 + $k[$j++] = _64; //#25825 + } //#25825 + $k[$j++] = 23; //#25827 + for (var _65 = 31; _65 <= 36; _65 += 1) { //#25827 + $k[$j++] = _65; //#25827 + } //#25827 + $k[$j++] = 41; //#25828 + var _66 = $a(); //#25828 + for (var _67 = 0, _68 = _66.length; _67 < _68; _67++) { //#25831 + var _6B = $cvrs($s(2), $get(_66, _67), 10); //#25830 + $put($1.aifixed, _6B, _6B); //#25830 + } //#25830 + for (var _6F = 0, _6E = $1.ais.length - 1; _6F <= _6E; _6F += 1) { //#25849 + $1.i = _6F; //#25835 + $1.ai = $get($1.ais, $1.i); //#25836 + $1.val = $get($1.vals, $1.i); //#25837 + var _6P = $a(($1.gpf.length + $1.ai.length) + $1.val.length); //#25838 + $puti(_6P, 0, $1.gpf); //#25839 + $k[$j++] = _6P; //#25840 + $k[$j++] = _6P; //#25840 + $k[$j++] = $1.gpf.length; //#25840 + $k[$j++] = $1.ai; //#25840 + $k[$j++] = Infinity; //#25840 + var _6T = $k[--$j]; //#25840 + var _6U = $k[--$j]; //#25840 + $k[$j++] = _6T; //#25840 + $forall(_6U); //#25840 + var _6V = $a(); //#25840 + var _6W = $k[--$j]; //#25840 + $puti($k[--$j], _6W, _6V); //#25840 + var _6Y = $k[--$j]; //#25841 + $k[$j++] = _6Y; //#25841 + $k[$j++] = _6Y; //#25841 + $k[$j++] = $1.gpf.length + $1.ai.length; //#25841 + $k[$j++] = $1.val; //#25841 + $k[$j++] = Infinity; //#25841 + var _6c = $k[--$j]; //#25841 + var _6d = $k[--$j]; //#25841 + $k[$j++] = _6c; //#25841 + $forall(_6d); //#25841 + var _6e = $a(); //#25841 + var _6f = $k[--$j]; //#25841 + $puti($k[--$j], _6f, _6e); //#25841 + $1.gpf = $k[--$j]; //#25842 + var _6n = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; //#25843 + if (($1.i != ($1.ais.length - 1)) && (!_6n)) { //#25848 + var _6p = $a($1.gpf.length + 1); //#25844 + $puti(_6p, 0, $1.gpf); //#25845 + $put(_6p, $1.gpf.length, $1.fnc1); //#25846 + $1.gpf = _6p; //#25847 + } //#25847 + } //#25847 $1.rembits = function() { - $1.used = $k[--$j]; - if ($ne($1.ccversion, "c")) { - var _73 = new Map([ [ "a", $a([ $a([ 167, 138, 118, 108, 88, 78, 59 ]), $a([ 167, 138, 118, 98, 78 ]), $a([ 197, 167, 138, 108, 78 ]) ]) ], [ "b", $a([ $a([ 336, 296, 256, 208, 160, 104, 56 ]), $a([ 768, 648, 536, 416, 304, 208, 152, 112, 72, 32 ]), $a([ 1184, 1016, 840, 672, 496, 352, 264, 208, 152, 96, 56 ]) ]) ] ]); - $1.bitcaps = $get($get(_73, $1.ccversion), $f($1.cccolumns - 2)); - $k[$j++] = -1; - $forall($1.bitcaps, function() { - var _79 = $k[--$j]; - $k[$j++] = _79; - if ($ge(_79, $1.used)) { - var _7B = $k[--$j]; - var _7C = $k[--$j]; - $k[$j++] = _7B; - $k[$j++] = _7C; - } - $j--; - }); - var _7D = $k[--$j]; - $k[$j++] = _7D; - if (_7D != -1) { - var _7F = $k[--$j]; - $k[$j++] = $f(_7F - $1.used); - } - } else { - var _7G = new Map([ [ "c", -1 ] ]); - var _7I = $get(_7G, $1.ccversion); - var _7K = ~~Math.ceil($1.used / 8); - $1.m = ~~(_7K / 6) * 5 + _7K % 6; - if ($1.m <= 40) { - $k[$j++] = 8; - } - if ($1.m >= 41 && $1.m <= 160) { - $k[$j++] = 16; - } - if ($1.m >= 161 && $1.m <= 320) { - $k[$j++] = 32; - } - if ($1.m >= 321 && $1.m <= 833) { - $k[$j++] = 64; - } - if ($1.m >= 834) { - $k[$j++] = 32; - } - $1.eccws = $k[--$j]; - $1.m = $f($f($1.m + $1.eccws) + 3); - for (;;) { - if (~~Math.ceil($1.m / $1.cccolumns) <= 30 || $1.cccolumns >= 30) { - break; - } - $1.cccolumns = $f($1.cccolumns + 1); - } - $1.r = ~~Math.ceil($1.m / $1.cccolumns); - var _7f = $f($f($1.cccolumns * $1.r - $1.eccws) - 3); - $1.tgt = $f(~~(_7f / 5) * 6 + _7f % 5) * 8; - if ($1.used <= 8304) { - $k[$j++] = $f($1.tgt - $1.used); - } else { - $k[$j++] = -1; - } - } - var _7j = $k[--$j]; - $k[$j++] = _7j; - if (_7j == -1) { - $j--; - if ($eq($1.ccversion, "a")) { - $1.ccversion = "b"; - } else { - if ($eq($1.ccversion, "b") && $eq($1.lintype, "gs1-128")) { - $1.ccversion = "c"; - $1.cccolumns = ~~(($1.linwidth - 52) / 17); - } else { - $1.ccversion = -1; - } - } - $k[$j++] = $1.used; - $1.rembits(); - } - }; + $1.used = $k[--$j]; //#25853 + if ($ne($1.ccversion, "c")) { //#25885 + var _73 = new Map([ + ["a", $a([$a([167, 138, 118, 108, 88, 78, 59]), $a([167, 138, 118, 98, 78]), $a([197, 167, 138, 108, 78])])], + ["b", $a([$a([336, 296, 256, 208, 160, 104, 56]), $a([768, 648, 536, 416, 304, 208, 152, 112, 72, 32]), $a([1184, 1016, 840, 672, 496, 352, 264, 208, 152, 96, 56])])] + ]); //#25864 + $1.bitcaps = $get($get(_73, $1.ccversion), $f($1.cccolumns - 2)); //#25866 + $k[$j++] = -1; //#25867 + $forall($1.bitcaps, function() { //#25867 + var _79 = $k[--$j]; //#25867 + $k[$j++] = _79; //#25867 + if ($ge(_79, $1.used)) { //#25867 + var _7B = $k[--$j]; //#25867 + var _7C = $k[--$j]; //#25867 + $k[$j++] = _7B; //#25867 + $k[$j++] = _7C; //#25867 + } //#25867 + $j--; //#25867 + }); //#25867 + var _7D = $k[--$j]; //#25868 + $k[$j++] = _7D; //#25868 + if (_7D != -1) { //#25868 + var _7F = $k[--$j]; //#25868 + $k[$j++] = $f(_7F - $1.used); //#25868 + } //#25868 + } else { //#25885 + var _7G = new Map([ + ["c", -1] + ]); //#25870 + var _7I = $get(_7G, $1.ccversion); //#25870 + var _7K = ~~Math.ceil($1.used / 8); //#25871 + $1.m = ((~~(_7K / 6)) * 5) + (_7K % 6); //#25871 + if ($1.m <= 40) { //#25872 + $k[$j++] = 8; //#25872 + } //#25872 + if (($1.m >= 41) && ($1.m <= 160)) { //#25873 + $k[$j++] = 16; //#25873 + } //#25873 + if (($1.m >= 161) && ($1.m <= 320)) { //#25874 + $k[$j++] = 32; //#25874 + } //#25874 + if (($1.m >= 321) && ($1.m <= 833)) { //#25875 + $k[$j++] = 64; //#25875 + } //#25875 + if ($1.m >= 834) { //#25876 + $k[$j++] = 32; //#25876 + } //#25876 + $1.eccws = $k[--$j]; //#25877 + $1.m = $f($f($1.m + $1.eccws) + 3); //#25878 + for (;;) { //#25882 + if (((~~Math.ceil($1.m / $1.cccolumns)) <= 30) || ($1.cccolumns >= 30)) { //#25880 + break; //#25880 + } //#25880 + $1.cccolumns = $f($1.cccolumns + 1); //#25881 + } //#25881 + $1.r = ~~Math.ceil($1.m / $1.cccolumns); //#25883 + var _7f = $f(($f(($1.cccolumns * $1.r) - $1.eccws)) - 3); //#25884 + $1.tgt = ($f(((~~(_7f / 5)) * 6) + (_7f % 5))) * 8; //#25884 + if ($1.used <= 8304) { //#25885 + $k[$j++] = $f($1.tgt - $1.used); //#25885 + } else { //#25885 + $k[$j++] = -1; //#25885 + } //#25885 + } //#25885 + var _7j = $k[--$j]; //#25887 + $k[$j++] = _7j; //#25900 + if (_7j == -1) { //#25900 + $j--; //#25888 + if ($eq($1.ccversion, "a")) { //#25896 + $1.ccversion = "b"; //#25890 + } else { //#25896 + if ($eq($1.ccversion, "b") && $eq($1.lintype, "gs1-128")) { //#25896 + $1.ccversion = "c"; //#25893 + $1.cccolumns = ~~(($1.linwidth - 52) / 17); //#25894 + } else { //#25896 + $1.ccversion = -1; //#25896 + } //#25896 + } //#25896 + $k[$j++] = $1.used; //#25899 + $1.rembits(); //#25899 + } //#25899 + }; //#25901 $1.encode = function() { - var _7p = $k[--$j]; - $k[$j++] = _7p; - if ($ne(_7p, "raw")) { - var _7q = $k[--$j]; - var _7s = $get(_7q, $k[--$j]); - $k[$j++] = _7s; - } else { - $j--; - } - $k[$j++] = Infinity; - var _7t = $k[--$j]; - var _7u = $k[--$j]; - $k[$j++] = _7t; - $forall(_7u, function() { - var _7v = $k[--$j]; - $k[$j++] = $f(_7v - 48); - }); - var _7w = $a(); - $puti($1.gpfenc, $1.j, _7w); - $1.j = _7w.length + $1.j; - }; - $k[$j++] = Infinity; - for (var _81 = 0, _82 = $1.gpf.length; _81 < _82; _81++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $k[$j++] = -1; - $1.numericruns = $a(); - $k[$j++] = Infinity; - for (var _85 = 0, _86 = $1.gpf.length; _85 < _86; _85++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $1.alphanumericruns = $a(); - $k[$j++] = Infinity; - for (var _89 = 0, _8A = $1.gpf.length; _89 < _8A; _89++) { - $k[$j++] = 0; - } - $k[$j++] = 9999; - $1.nextiso646only = $a(); - for (var _8D = $1.gpf.length - 1; _8D >= 0; _8D -= 1) { - $1.i = _8D; - var _8I = $strcpy($s(2), "00"); - var _8L = $get($1.gpf, $1.i); - $k[$j++] = $get($1.gpf, $1.i); - $k[$j++] = _8I; - $k[$j++] = _8I; - $k[$j++] = 0; - $k[$j++] = _8L; - if (_8L == $1.fnc1) { - $j--; - $k[$j++] = 94; - } - var _8N = $k[--$j]; - var _8O = $k[--$j]; - $put($k[--$j], _8O, _8N); - if ($1.i < $1.gpf.length - 1) { - var _8S = $k[--$j]; - var _8V = $get($1.gpf, $1.i + 1); - $k[$j++] = _8S; - $k[$j++] = _8S; - $k[$j++] = 1; - $k[$j++] = _8V; - if (_8V == $1.fnc1) { - $j--; - $k[$j++] = 94; - } - var _8X = $k[--$j]; - var _8Y = $k[--$j]; - $put($k[--$j], _8Y, _8X); - } - var _8c = $get($1.numeric, $k[--$j]) !== undefined; - if (_8c) { - $put($1.numericruns, $1.i, $f($get($1.numericruns, $1.i + 2) + 2)); - } else { - $put($1.numericruns, $1.i, 0); - } - var _8k = $k[--$j]; - var _8m = $get($1.alphanumeric, _8k) !== undefined; - $k[$j++] = _8k; - if (_8m) { - $put($1.alphanumericruns, $1.i, $f($get($1.alphanumericruns, $1.i + 1) + 1)); - } else { - $put($1.alphanumericruns, $1.i, 0); - } - var _8u = $k[--$j]; - var _8w = $get($1.iso646, _8u) !== undefined; - var _8y = $get($1.alphanumeric, _8u) !== undefined; - if (_8w && !_8y) { - $put($1.nextiso646only, $1.i, 0); - } else { - $put($1.nextiso646only, $1.i, $f($get($1.nextiso646only, $1.i + 1) + 1)); - } - } - $1.gpfenc = $a(8304); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.gpf.length) { - break; - } - for (;;) { - if ($eq($1.mode, "numeric")) { - if ($1.i <= $1.gpf.length - 2) { - var _9C = $s(2); - var _9F = $get($1.gpf, $1.i); - $k[$j++] = _9C; - $k[$j++] = _9C; - $k[$j++] = 0; - $k[$j++] = _9F; - if (_9F == $1.fnc1) { - $j--; - $k[$j++] = 94; - } - var _9H = $k[--$j]; - var _9I = $k[--$j]; - $put($k[--$j], _9I, _9H); - var _9K = $k[--$j]; - var _9N = $get($1.gpf, $1.i + 1); - $k[$j++] = _9K; - $k[$j++] = _9K; - $k[$j++] = 1; - $k[$j++] = _9N; - if (_9N == $1.fnc1) { - $j--; - $k[$j++] = 94; - } - var _9P = $k[--$j]; - var _9Q = $k[--$j]; - $put($k[--$j], _9Q, _9P); - var _9S = $k[--$j]; - var _9U = $get($1.numeric, _9S) !== undefined; - $k[$j++] = _9S; - if (_9U) { - $k[$j++] = $1.numeric; - $1.encode(); - $1.i = $1.i + 2; - break; - } - $j--; - $k[$j++] = $1.lalphanumeric; - $k[$j++] = $1.numeric; - $1.encode(); - $1.mode = "alphanumeric"; - break; - } else { - var _9b = $get($1.gpf, $1.i); - if (_9b < 48 || _9b > 57) { - $k[$j++] = $1.lalphanumeric; - $k[$j++] = $1.numeric; - $1.encode(); - $1.mode = "alphanumeric"; - break; - } - $k[$j++] = "rem"; - $k[$j++] = $1.cdf.length + $1.j; - $1.rembits(); - var _9g = $k[--$j]; - $1[$k[--$j]] = _9g; - if ($1.rem >= 4 && $1.rem <= 6) { - var _9n = $geti($strcpy($s(6), "000000"), 0, $1.rem); - var _9s = $cvrs($s(4), $f($get($1.gpf, $1.i) - 47), 2); - $puti(_9n, 4 - _9s.length, _9s); - $k[$j++] = _9n; - $k[$j++] = "raw"; - $1.encode(); - $1.i = $1.i + 1; - break; - } else { - var _9u = $s(2); - $put(_9u, 0, $get($1.gpf, $1.i)); - $put(_9u, 1, 94); - $k[$j++] = _9u; - $k[$j++] = $1.numeric; - $1.encode(); - $1.i = $1.i + 1; - break; - } - } - } - if ($eq($1.mode, "alphanumeric")) { - if ($get($1.gpf, $1.i) == $1.fnc1) { - $k[$j++] = $1.fnc1; - $k[$j++] = $1.alphanumeric; - $1.encode(); - $1.mode = "numeric"; - $1.i = $1.i + 1; - break; - } - var _AA = $get($1.gpf, $1.i); - var _AC = $get($1.iso646, _AA) !== undefined; - var _AE = $get($1.alphanumeric, _AA) !== undefined; - if (_AC && !_AE) { - $k[$j++] = $1.liso646; - $k[$j++] = $1.alphanumeric; - $1.encode(); - $1.mode = "iso646"; - break; - } - if ($get($1.numericruns, $1.i) >= 6) { - $k[$j++] = $1.lnumeric; - $k[$j++] = $1.alphanumeric; - $1.encode(); - $1.mode = "numeric"; - break; - } - var _AO = $get($1.numericruns, $1.i); - if (_AO >= 4 && $f(_AO + $1.i) == $1.gpf.length) { - $k[$j++] = $1.lnumeric; - $k[$j++] = $1.alphanumeric; - $1.encode(); - $1.mode = "numeric"; - break; - } - $k[$j++] = $get($1.gpf, $1.i); - $k[$j++] = $1.alphanumeric; - $1.encode(); - $1.i = $1.i + 1; - break; - } - if ($eq($1.mode, "iso646")) { - if ($get($1.gpf, $1.i) == $1.fnc1) { - $k[$j++] = $1.fnc1; - $k[$j++] = $1.iso646; - $1.encode(); - $1.mode = "numeric"; - $1.i = $1.i + 1; - break; - } - if ($get($1.numericruns, $1.i) >= 4 && $get($1.nextiso646only, $1.i) >= 10) { - $k[$j++] = $1.lnumeric; - $k[$j++] = $1.iso646; - $1.encode(); - $1.mode = "numeric"; - break; - } - if ($get($1.alphanumericruns, $1.i) >= 5 && $get($1.nextiso646only, $1.i) >= 10) { - $k[$j++] = $1.lalphanumeric; - $k[$j++] = $1.iso646; - $1.encode(); - $1.mode = "alphanumeric"; - break; - } - $k[$j++] = $get($1.gpf, $1.i); - $k[$j++] = $1.iso646; - $1.encode(); - $1.i = $1.i + 1; - break; - } - } - } - $1.gpf = $geti($1.gpfenc, 0, $1.j); - $k[$j++] = "pad"; - $k[$j++] = $1.cdf.length + $1.gpf.length; - $1.rembits(); - var _B7 = $a($k[--$j]); - $1[$k[--$j]] = _B7; - if ($1.pad.length > 0) { - for (var _BC = 0, _BB = $1.pad.length - 1; _BC <= _BB; _BC += 5) { - $1.i = _BC; - var _BD = $1.pad; - var _BE = $1.i; - var _BF = $a([ 0, 0, 1, 0, 0 ]); - var _BG = $1.pad; - var _BH = $1.i; - var _BI = 5; - var _BJ = _BG.length - _BH; - if (_BG.length - _BH > 5) { - var _ = _BI; - _BI = _BJ; - _BJ = _; - } - $puti(_BD, _BE, $geti(_BF, 0, _BJ)); - } - if ($eq($1.mode, "numeric")) { - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $aload($1.pad); - $1.pad = $geti($a(), 0, $1.pad.length); - } - if ($eq($1.mode, "alpha")) { - $k[$j++] = Infinity; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $k[$j++] = 0; - $aload($1.pad); - $1.pad = $geti($a(), 0, $1.pad.length); - } - } - $k[$j++] = Infinity; - $aload($1.cdf); - $aload($1.gpf); - $aload($1.pad); - $1.bits = $a(); - if ($1.ccversion == "a") { - $k[$j++] = Infinity; - $k[$j++] = $a([ 0, 0, 0, 0, 0, 0, 1 ]); - for (var _Bb = 0, _Bc = 68; _Bb < _Bc; _Bb++) { - $k[$j++] = $a(7); - } - $1.pwr928 = $a(); - for (var _Bf = 1; _Bf <= 68; _Bf += 1) { - $1.j = _Bf; - $1.v = 0; - for (var _Bg = 6; _Bg >= 1; _Bg -= 1) { - $1.i = _Bg; - $1.v = $f($get($get($1.pwr928, $1.j - 1), $1.i) * 2 + ~~($1.v / 928)); - $put($get($1.pwr928, $1.j), $1.i, $1.v % 928); - } - $put($get($1.pwr928, $1.j), 0, $f($get($get($1.pwr928, $1.j - 1), 0) * 2 + ~~($1.v / 928))); - } - $k[$j++] = Infinity; - for (var _C0 = 0, _C1 = 28; _C0 < _C1; _C0++) { - $k[$j++] = 0; - } - $1.cws = $a(); - $1.b = 0; - $1.c = 0; - for (;;) { - if ($1.b == $1.bits.length) { - break; - } - var _C5 = $1.bits; - var _C6 = $1.b; - var _C7 = $1.bits; - var _C8 = $1.b; - var _C9 = _C7.length - _C8; - var _CA = 69; - if (69 > _C7.length - _C8) { - var _ = _C9; - _C9 = _CA; - _CA = _; - } - $1.bs = $geti(_C5, _C6, _CA); - $1.bsl = $1.bs.length; - $1.cs = $geti($1.cws, $1.c, ~~($1.bsl / 10) + 1); - $1.csl = $1.cs.length; - for (var _CK = 0, _CJ = $1.bsl - 1; _CK <= _CJ; _CK += 1) { - $1.i = _CK; - for (var _CN = 0, _CM = $1.csl - 1; _CN <= _CM; _CN += 1) { - $1.j = _CN; - var _CO = $1.cs; - var _CP = $1.j; - $put(_CO, _CP, $f($get(_CO, _CP) + $get($get($1.pwr928, $1.i), $1.j + 7 - $1.csl) * $get($1.bs, $1.bsl - $1.i - 1))); - } - } - for (var _Cc = $1.csl - 1; _Cc >= 1; _Cc -= 1) { - $1.i = _Cc; - var _Cd = $1.cs; - var _Ce = $1.i; - $put(_Cd, _Ce - 1, $f($get(_Cd, _Ce - 1) + ~~($get($1.cs, $1.i) / 928))); - var _Cj = $1.cs; - var _Ck = $1.i; - $put(_Cj, _Ck, $get(_Cj, _Ck) % 928); - } - $1.b = $1.b + $1.bsl; - $1.c = $1.c + $1.csl; - } - $1.cws = $geti($1.cws, 0, $1.c); - $1.barcode = $s($1.cws.length * 4); - for (var _Cx = 0, _Cw = $1.cws.length - 1; _Cx <= _Cw; _Cx += 1) { - $1.i = _Cx; - var _Cz = $strcpy($s(4), "^ "); - var _D4 = $cvrs($s(4), $get($1.cws, $1.i), 10); - $puti(_Cz, 4 - _D4.length, _D4); - $puti($1.barcode, $1.i * 4, _Cz); - } - delete $1.options["parse"]; - $put($1.options, "dontdraw", true); - $put($1.options, "cca", true); - $put($1.options, "columns", $1.cccolumns); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.micropdf417(); - var _DE = $k[--$j]; - $1[$k[--$j]] = _DE; - } - if ($1.ccversion == "b") { - $1.barcode = $s(~~($1.bits.length / 8)); - for (var _DL = 0, _DK = $1.barcode.length - 1; _DL <= _DK; _DL += 1) { - $1.i = _DL; - var _DO = $geti($1.bits, $1.i * 8, 8); - $k[$j++] = 0; - for (var _DP = 0, _DQ = _DO.length; _DP < _DQ; _DP++) { - var _DS = $k[--$j]; - $k[$j++] = $f(_DS + $get(_DO, _DP)) * 2; - } - $put($1.barcode, $1.i, ~~($k[--$j] / 2)); - } - delete $1.options["parse"]; - $put($1.options, "dontdraw", true); - $put($1.options, "ccb", true); - $put($1.options, "columns", $1.cccolumns); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.micropdf417(); - var _Dd = $k[--$j]; - $1[$k[--$j]] = _Dd; - } - if ($1.ccversion == "c") { - $1.barcode = $s(~~($1.bits.length / 8)); - for (var _Dk = 0, _Dj = $1.barcode.length - 1; _Dk <= _Dj; _Dk += 1) { - $1.i = _Dk; - var _Dn = $geti($1.bits, $1.i * 8, 8); - $k[$j++] = 0; - for (var _Do = 0, _Dp = _Dn.length; _Do < _Dp; _Do++) { - var _Dr = $k[--$j]; - $k[$j++] = $f(_Dr + $get(_Dn, _Do)) * 2; - } - $put($1.barcode, $1.i, ~~($k[--$j] / 2)); - } - delete $1.options["parse"]; - $put($1.options, "dontdraw", true); - $put($1.options, "ccc", true); - $put($1.options, "columns", $1.cccolumns); - $put($1.options, "eclevel", ~~(Math.log($1.eccws) / Math.log(2)) - 1); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.pdf417(); - var _E4 = $k[--$j]; - $1[$k[--$j]] = _E4; - } - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var _7p = $k[--$j]; //#25904 + $k[$j++] = _7p; //#25904 + if ($ne(_7p, 'raw')) { //#25904 + var _7q = $k[--$j]; //#25904 + var _7s = $get(_7q, $k[--$j]); //#25904 + $k[$j++] = _7s; //#25904 + } else { //#25904 + $j--; //#25904 + } //#25904 + $k[$j++] = Infinity; //#25905 + var _7t = $k[--$j]; //#25905 + var _7u = $k[--$j]; //#25905 + $k[$j++] = _7t; //#25905 + $forall(_7u, function() { //#25905 + var _7v = $k[--$j]; //#25905 + $k[$j++] = $f(_7v - 48); //#25905 + }); //#25905 + var _7w = $a(); //#25905 + $puti($1.gpfenc, $1.j, _7w); //#25907 + $1.j = _7w.length + $1.j; //#25908 + }; //#25909 + $k[$j++] = Infinity; //#25912 + for (var _81 = 0, _82 = $1.gpf.length; _81 < _82; _81++) { //#25912 + $k[$j++] = 0; //#25912 + } //#25912 + $k[$j++] = 0; //#25912 + $k[$j++] = -1; //#25912 + $1.numericruns = $a(); //#25912 + $k[$j++] = Infinity; //#25913 + for (var _85 = 0, _86 = $1.gpf.length; _85 < _86; _85++) { //#25913 + $k[$j++] = 0; //#25913 + } //#25913 + $k[$j++] = 0; //#25913 + $1.alphanumericruns = $a(); //#25913 + $k[$j++] = Infinity; //#25914 + for (var _89 = 0, _8A = $1.gpf.length; _89 < _8A; _89++) { //#25914 + $k[$j++] = 0; //#25914 + } //#25914 + $k[$j++] = 9999; //#25914 + $1.nextiso646only = $a(); //#25914 + for (var _8D = $1.gpf.length - 1; _8D >= 0; _8D -= 1) { //#25936 + $1.i = _8D; //#25916 + var _8I = $strcpy($s(2), "00"); //#25918 + var _8L = $get($1.gpf, $1.i); //#25919 + $k[$j++] = $get($1.gpf, $1.i); //#25919 + $k[$j++] = _8I; //#25919 + $k[$j++] = _8I; //#25919 + $k[$j++] = 0; //#25919 + $k[$j++] = _8L; //#25919 + if (_8L == $1.fnc1) { //#25919 + $j--; //#25919 + $k[$j++] = 94; //#25919 + } //#25919 + var _8N = $k[--$j]; //#25919 + var _8O = $k[--$j]; //#25919 + $put($k[--$j], _8O, _8N); //#25919 + if ($1.i < ($1.gpf.length - 1)) { //#25920 + var _8S = $k[--$j]; //#25920 + var _8V = $get($1.gpf, $1.i + 1); //#25920 + $k[$j++] = _8S; //#25920 + $k[$j++] = _8S; //#25920 + $k[$j++] = 1; //#25920 + $k[$j++] = _8V; //#25920 + if (_8V == $1.fnc1) { //#25920 + $j--; //#25920 + $k[$j++] = 94; //#25920 + } //#25920 + var _8X = $k[--$j]; //#25920 + var _8Y = $k[--$j]; //#25920 + $put($k[--$j], _8Y, _8X); //#25920 + } //#25920 + var _8c = $get($1.numeric, $k[--$j]) !== undefined; //#25921 + if (_8c) { //#25924 + $put($1.numericruns, $1.i, $f($get($1.numericruns, $1.i + 2) + 2)); //#25922 + } else { //#25924 + $put($1.numericruns, $1.i, 0); //#25924 + } //#25924 + var _8k = $k[--$j]; //#25926 + var _8m = $get($1.alphanumeric, _8k) !== undefined; //#25926 + $k[$j++] = _8k; //#25930 + if (_8m) { //#25929 + $put($1.alphanumericruns, $1.i, $f($get($1.alphanumericruns, $1.i + 1) + 1)); //#25927 + } else { //#25929 + $put($1.alphanumericruns, $1.i, 0); //#25929 + } //#25929 + var _8u = $k[--$j]; //#25931 + var _8w = $get($1.iso646, _8u) !== undefined; //#25931 + var _8y = $get($1.alphanumeric, _8u) !== undefined; //#25931 + if (_8w && (!_8y)) { //#25934 + $put($1.nextiso646only, $1.i, 0); //#25932 + } else { //#25934 + $put($1.nextiso646only, $1.i, $f($get($1.nextiso646only, $1.i + 1) + 1)); //#25934 + } //#25934 + } //#25934 + $1.gpfenc = $a(8304); //#25939 + $1.i = 0; //#25940 + $1.j = 0; //#25940 + for (;;) { //#26030 + if ($1.i == $1.gpf.length) { //#25942 + break; //#25942 + } //#25942 + for (;;) { //#26029 + if ($eq($1.mode, "numeric")) { //#25978 + if ($1.i <= ($1.gpf.length - 2)) { //#25975 + var _9C = $s(2); //#25947 + var _9F = $get($1.gpf, $1.i); //#25948 + $k[$j++] = _9C; //#25948 + $k[$j++] = _9C; //#25948 + $k[$j++] = 0; //#25948 + $k[$j++] = _9F; //#25948 + if (_9F == $1.fnc1) { //#25948 + $j--; //#25948 + $k[$j++] = 94; //#25948 + } //#25948 + var _9H = $k[--$j]; //#25948 + var _9I = $k[--$j]; //#25948 + $put($k[--$j], _9I, _9H); //#25948 + var _9K = $k[--$j]; //#25949 + var _9N = $get($1.gpf, $1.i + 1); //#25949 + $k[$j++] = _9K; //#25949 + $k[$j++] = _9K; //#25949 + $k[$j++] = 1; //#25949 + $k[$j++] = _9N; //#25949 + if (_9N == $1.fnc1) { //#25949 + $j--; //#25949 + $k[$j++] = 94; //#25949 + } //#25949 + var _9P = $k[--$j]; //#25949 + var _9Q = $k[--$j]; //#25949 + $put($k[--$j], _9Q, _9P); //#25949 + var _9S = $k[--$j]; //#25950 + var _9U = $get($1.numeric, _9S) !== undefined; //#25950 + $k[$j++] = _9S; //#25954 + if (_9U) { //#25954 + $k[$j++] = $1.numeric; //#25951 + $1.encode(); //#25951 + $1.i = $1.i + 2; //#25952 + break; //#25953 + } //#25953 + $j--; //#25955 + $k[$j++] = $1.lalphanumeric; //#25956 + $k[$j++] = $1.numeric; //#25956 + $1.encode(); //#25956 + $1.mode = "alphanumeric"; //#25957 + break; //#25958 + } else { //#25975 + var _9b = $get($1.gpf, $1.i); //#25960 + if ((_9b < 48) || (_9b > 57)) { //#25964 + $k[$j++] = $1.lalphanumeric; //#25961 + $k[$j++] = $1.numeric; //#25961 + $1.encode(); //#25961 + $1.mode = "alphanumeric"; //#25962 + break; //#25963 + } //#25963 + $k[$j++] = 'rem'; //#25965 + $k[$j++] = $1.cdf.length + $1.j; //#25965 + $1.rembits(); //#25965 + var _9g = $k[--$j]; //#25965 + $1[$k[--$j]] = _9g; //#25965 + if (($1.rem >= 4) && ($1.rem <= 6)) { //#25975 + var _9n = $geti($strcpy($s(6), "000000"), 0, $1.rem); //#25967 + var _9s = $cvrs($s(4), $f($get($1.gpf, $1.i) - 47), 2); //#25968 + $puti(_9n, 4 - _9s.length, _9s); //#25969 + $k[$j++] = _9n; //#25969 + $k[$j++] = 'raw'; //#25969 + $1.encode(); //#25969 + $1.i = $1.i + 1; //#25970 + break; //#25971 + } else { //#25975 + var _9u = $s(2); //#25973 + $put(_9u, 0, $get($1.gpf, $1.i)); //#25973 + $put(_9u, 1, 94); //#25973 + $k[$j++] = _9u; //#25973 + $k[$j++] = $1.numeric; //#25973 + $1.encode(); //#25973 + $1.i = $1.i + 1; //#25974 + break; //#25975 + } //#25975 + } //#25975 + } //#25975 + if ($eq($1.mode, "alphanumeric")) { //#26005 + if ($get($1.gpf, $1.i) == $1.fnc1) { //#25986 + $k[$j++] = $1.fnc1; //#25982 + $k[$j++] = $1.alphanumeric; //#25982 + $1.encode(); //#25982 + $1.mode = "numeric"; //#25983 + $1.i = $1.i + 1; //#25984 + break; //#25985 + } //#25985 + var _AA = $get($1.gpf, $1.i); //#25987 + var _AC = $get($1.iso646, _AA) !== undefined; //#25987 + var _AE = $get($1.alphanumeric, _AA) !== undefined; //#25987 + if (_AC && (!_AE)) { //#25991 + $k[$j++] = $1.liso646; //#25988 + $k[$j++] = $1.alphanumeric; //#25988 + $1.encode(); //#25988 + $1.mode = "iso646"; //#25989 + break; //#25990 + } //#25990 + if ($get($1.numericruns, $1.i) >= 6) { //#25996 + $k[$j++] = $1.lnumeric; //#25993 + $k[$j++] = $1.alphanumeric; //#25993 + $1.encode(); //#25993 + $1.mode = "numeric"; //#25994 + break; //#25995 + } //#25995 + var _AO = $get($1.numericruns, $1.i); //#25997 + if ((_AO >= 4) && ($f(_AO + $1.i) == $1.gpf.length)) { //#26001 + $k[$j++] = $1.lnumeric; //#25998 + $k[$j++] = $1.alphanumeric; //#25998 + $1.encode(); //#25998 + $1.mode = "numeric"; //#25999 + break; //#26000 + } //#26000 + $k[$j++] = $get($1.gpf, $1.i); //#26002 + $k[$j++] = $1.alphanumeric; //#26002 + $1.encode(); //#26002 + $1.i = $1.i + 1; //#26003 + break; //#26004 + } //#26004 + if ($eq($1.mode, "iso646")) { //#26027 + if ($get($1.gpf, $1.i) == $1.fnc1) { //#26013 + $k[$j++] = $1.fnc1; //#26009 + $k[$j++] = $1.iso646; //#26009 + $1.encode(); //#26009 + $1.mode = "numeric"; //#26010 + $1.i = $1.i + 1; //#26011 + break; //#26012 + } //#26012 + if (($get($1.numericruns, $1.i) >= 4) && ($get($1.nextiso646only, $1.i) >= 10)) { //#26018 + $k[$j++] = $1.lnumeric; //#26015 + $k[$j++] = $1.iso646; //#26015 + $1.encode(); //#26015 + $1.mode = "numeric"; //#26016 + break; //#26017 + } //#26017 + if (($get($1.alphanumericruns, $1.i) >= 5) && ($get($1.nextiso646only, $1.i) >= 10)) { //#26023 + $k[$j++] = $1.lalphanumeric; //#26020 + $k[$j++] = $1.iso646; //#26020 + $1.encode(); //#26020 + $1.mode = "alphanumeric"; //#26021 + break; //#26022 + } //#26022 + $k[$j++] = $get($1.gpf, $1.i); //#26024 + $k[$j++] = $1.iso646; //#26024 + $1.encode(); //#26024 + $1.i = $1.i + 1; //#26025 + break; //#26026 + } //#26026 + } //#26026 + } //#26026 + $1.gpf = $geti($1.gpfenc, 0, $1.j); //#26031 + $k[$j++] = 'pad'; //#26034 + $k[$j++] = $1.cdf.length + $1.gpf.length; //#26034 + $1.rembits(); //#26034 + var _B7 = $a($k[--$j]); //#26034 + $1[$k[--$j]] = _B7; //#26034 + if ($1.pad.length > 0) { //#26046 + for (var _BC = 0, _BB = $1.pad.length - 1; _BC <= _BB; _BC += 5) { //#26039 + $1.i = _BC; //#26037 + var _BD = $1.pad; //#26038 + var _BE = $1.i; //#26038 + var _BF = $a([0, 0, 1, 0, 0]); //#26038 + var _BG = $1.pad; //#26038 + var _BH = $1.i; //#26038 + var _BI = 5; //#26038 + var _BJ = _BG.length - _BH; //#26038 + if ((_BG.length - _BH) > 5) { //#26038 + var _ = _BI; //#26038 + _BI = _BJ; //#26038 + _BJ = _; //#26038 + } //#26038 + $puti(_BD, _BE, $geti(_BF, 0, _BJ)); //#26038 + } //#26038 + if ($eq($1.mode, "numeric")) { //#26042 + $k[$j++] = Infinity; //#26041 + $k[$j++] = 0; //#26041 + $k[$j++] = 0; //#26041 + $k[$j++] = 0; //#26041 + $k[$j++] = 0; //#26041 + $aload($1.pad); //#26041 + $1.pad = $geti($a(), 0, $1.pad.length); //#26041 + } //#26041 + if ($eq($1.mode, "alpha")) { //#26045 + $k[$j++] = Infinity; //#26044 + $k[$j++] = 1; //#26044 + $k[$j++] = 1; //#26044 + $k[$j++] = 1; //#26044 + $k[$j++] = 1; //#26044 + $k[$j++] = 1; //#26044 + $k[$j++] = 0; //#26044 + $k[$j++] = 0; //#26044 + $k[$j++] = 0; //#26044 + $k[$j++] = 0; //#26044 + $aload($1.pad); //#26044 + $1.pad = $geti($a(), 0, $1.pad.length); //#26044 + } //#26044 + } //#26044 + $k[$j++] = Infinity; //#26052 + $aload($1.cdf); //#26050 + $aload($1.gpf); //#26051 + $aload($1.pad); //#26052 + $1.bits = $a(); //#26052 + if ($1.ccversion == "a") { //#26109 + $k[$j++] = Infinity; //#26058 + $k[$j++] = $a([0, 0, 0, 0, 0, 0, 1]); //#26058 + for (var _Bb = 0, _Bc = 68; _Bb < _Bc; _Bb++) { //#26058 + $k[$j++] = $a(7); //#26058 + } //#26058 + $1.pwr928 = $a(); //#26058 + for (var _Bf = 1; _Bf <= 68; _Bf += 1) { //#26069 + $1.j = _Bf; //#26061 + $1.v = 0; //#26062 + for (var _Bg = 6; _Bg >= 1; _Bg -= 1) { //#26067 + $1.i = _Bg; //#26064 + $1.v = $f(($get($get($1.pwr928, $1.j - 1), $1.i) * 2) + (~~($1.v / 928))); //#26065 + $put($get($1.pwr928, $1.j), $1.i, $1.v % 928); //#26066 + } //#26066 + $put($get($1.pwr928, $1.j), 0, $f(($get($get($1.pwr928, $1.j - 1), 0) * 2) + (~~($1.v / 928)))); //#26068 + } //#26068 + $k[$j++] = Infinity; //#26070 + for (var _C0 = 0, _C1 = 28; _C0 < _C1; _C0++) { //#26070 + $k[$j++] = 0; //#26070 + } //#26070 + $1.cws = $a(); //#26070 + $1.b = 0; //#26071 + $1.c = 0; //#26071 + for (;;) { //#26095 + if ($1.b == $1.bits.length) { //#26073 + break; //#26073 + } //#26073 + var _C5 = $1.bits; //#26074 + var _C6 = $1.b; //#26074 + var _C7 = $1.bits; //#26074 + var _C8 = $1.b; //#26074 + var _C9 = _C7.length - _C8; //#26074 + var _CA = 69; //#26074 + if (69 > (_C7.length - _C8)) { //#26074 + var _ = _C9; //#26074 + _C9 = _CA; //#26074 + _CA = _; //#26074 + } //#26074 + $1.bs = $geti(_C5, _C6, _CA); //#26074 + $1.bsl = $1.bs.length; //#26075 + $1.cs = $geti($1.cws, $1.c, (~~($1.bsl / 10)) + 1); //#26076 + $1.csl = $1.cs.length; //#26077 + for (var _CK = 0, _CJ = $1.bsl - 1; _CK <= _CJ; _CK += 1) { //#26087 + $1.i = _CK; //#26079 + for (var _CN = 0, _CM = $1.csl - 1; _CN <= _CM; _CN += 1) { //#26086 + $1.j = _CN; //#26081 + var _CO = $1.cs; //#26082 + var _CP = $1.j; //#26082 + $put(_CO, _CP, $f($get(_CO, _CP) + ($get($get($1.pwr928, $1.i), ($1.j + 7) - $1.csl) * $get($1.bs, ($1.bsl - $1.i) - 1)))); //#26085 + } //#26085 + } //#26085 + for (var _Cc = $1.csl - 1; _Cc >= 1; _Cc -= 1) { //#26092 + $1.i = _Cc; //#26089 + var _Cd = $1.cs; //#26090 + var _Ce = $1.i; //#26090 + $put(_Cd, _Ce - 1, $f($get(_Cd, _Ce - 1) + (~~($get($1.cs, $1.i) / 928)))); //#26090 + var _Cj = $1.cs; //#26091 + var _Ck = $1.i; //#26091 + $put(_Cj, _Ck, $get(_Cj, _Ck) % 928); //#26091 + } //#26091 + $1.b = $1.b + $1.bsl; //#26093 + $1.c = $1.c + $1.csl; //#26094 + } //#26094 + $1.cws = $geti($1.cws, 0, $1.c); //#26096 + $1.barcode = $s($1.cws.length * 4); //#26097 + for (var _Cx = 0, _Cw = $1.cws.length - 1; _Cx <= _Cw; _Cx += 1) { //#26103 + $1.i = _Cx; //#26099 + var _Cz = $strcpy($s(4), "^ "); //#26100 + var _D4 = $cvrs($s(4), $get($1.cws, $1.i), 10); //#26100 + $puti(_Cz, 4 - _D4.length, _D4); //#26101 + $puti($1.barcode, $1.i * 4, _Cz); //#26102 + } //#26102 + delete $1.options["parse"]; //#26104 + $put($1.options, "dontdraw", true); //#26105 + $put($1.options, "cca", true); //#26106 + $put($1.options, "columns", $1.cccolumns); //#26107 + $k[$j++] = 'args'; //#26108 + $k[$j++] = $1.barcode; //#26108 + $k[$j++] = $1.options; //#26108 + $0.micropdf417(); //#26108 + var _DE = $k[--$j]; //#26108 + $1[$k[--$j]] = _DE; //#26108 + } //#26108 + if ($1.ccversion == "b") { //#26123 + $1.barcode = $s(~~($1.bits.length / 8)); //#26112 + for (var _DL = 0, _DK = $1.barcode.length - 1; _DL <= _DK; _DL += 1) { //#26117 + $1.i = _DL; //#26114 + var _DO = $geti($1.bits, $1.i * 8, 8); //#26115 + $k[$j++] = 0; //#26115 + for (var _DP = 0, _DQ = _DO.length; _DP < _DQ; _DP++) { //#26115 + var _DS = $k[--$j]; //#26115 + $k[$j++] = $f(_DS + $get(_DO, _DP)) * 2; //#26115 + } //#26115 + $put($1.barcode, $1.i, ~~($k[--$j] / 2)); //#26116 + } //#26116 + delete $1.options["parse"]; //#26118 + $put($1.options, "dontdraw", true); //#26119 + $put($1.options, "ccb", true); //#26120 + $put($1.options, "columns", $1.cccolumns); //#26121 + $k[$j++] = 'args'; //#26122 + $k[$j++] = $1.barcode; //#26122 + $k[$j++] = $1.options; //#26122 + $0.micropdf417(); //#26122 + var _Dd = $k[--$j]; //#26122 + $1[$k[--$j]] = _Dd; //#26122 + } //#26122 + if ($1.ccversion == "c") { //#26138 + $1.barcode = $s(~~($1.bits.length / 8)); //#26126 + for (var _Dk = 0, _Dj = $1.barcode.length - 1; _Dk <= _Dj; _Dk += 1) { //#26131 + $1.i = _Dk; //#26128 + var _Dn = $geti($1.bits, $1.i * 8, 8); //#26129 + $k[$j++] = 0; //#26129 + for (var _Do = 0, _Dp = _Dn.length; _Do < _Dp; _Do++) { //#26129 + var _Dr = $k[--$j]; //#26129 + $k[$j++] = $f(_Dr + $get(_Dn, _Do)) * 2; //#26129 + } //#26129 + $put($1.barcode, $1.i, ~~($k[--$j] / 2)); //#26130 + } //#26130 + delete $1.options["parse"]; //#26132 + $put($1.options, "dontdraw", true); //#26133 + $put($1.options, "ccc", true); //#26134 + $put($1.options, "columns", $1.cccolumns); //#26135 + $put($1.options, "eclevel", (~~(Math.log($1.eccws) / Math.log(2))) - 1); //#26136 + $k[$j++] = 'args'; //#26137 + $k[$j++] = $1.barcode; //#26137 + $k[$j++] = $1.options; //#26137 + $0.pdf417(); //#26137 + var _E4 = $k[--$j]; //#26137 + $1[$k[--$j]] = _E4; //#26137 + } //#26137 + $k[$j++] = $1.args; //#26141 + if (!$1.dontdraw) { //#26141 + $0.renmatrix(); //#26141 + } //#26141 }; $0.ean13composite = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $search($1.barcode, "|"); - if ($k[--$j]) { - $1.linear = $k[--$j]; - $j--; - $1.comp = $k[--$j]; - } else { - $j--; - } - $$.save(); - $put($1.options, "lintype", "ean13"); - $put($1.options, "inkspread", "0"); - $put($1.options, "dontdraw", true); - $k[$j++] = $1.linear; - $k[$j++] = $1.options; - $0.ean13(); - $0.renlinear(); - $$.rmoveto(-1, 72); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = 1; - for (var _E = 0, _F = 93; _E < _F; _E++) { - $k[$j++] = 0; - } - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - for (var _G = 0, _H = 93; _G < _H; _G++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - for (var _I = 0, _J = 93; _I < _J; _I++) { - $k[$j++] = 0; - } - $k[$j++] = 1; - $k[$j++] = 0; - var _K = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renmatrix; - $k[$j++] = "pixs"; - $k[$j++] = _K; - $k[$j++] = "pixx"; - $k[$j++] = 97; - $k[$j++] = "pixy"; - $k[$j++] = 3; - $k[$j++] = "height"; - $k[$j++] = 6 / 72; - $k[$j++] = "width"; - $k[$j++] = 97 / 72; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _M = $d(); - $k[$j++] = _M; - $0.renmatrix(); - $$.rmoveto(-2, 6); - $k[$j++] = $1.comp; - $k[$j++] = $1.options; - $0["gs1-cc"](); - $0.renmatrix(); - $$.restore(); + var $1 = {}; //#26173 + $1.options = $k[--$j]; //#26175 + $1.barcode = $k[--$j]; //#26176 + $1.dontdraw = false; //#26178 + $forall($1.options, function() { //#26189 + var _3 = $k[--$j]; //#26189 + $1[$k[--$j]] = _3; //#26189 + }); //#26189 + $search($1.barcode, "|"); //#26192 + if ($k[--$j]) { //#26197 + $1.linear = $k[--$j]; //#26193 + $j--; //#26194 + $1.comp = $k[--$j]; //#26195 + } else { //#26197 + $j--; //#26197 + } //#26197 + $$.save(); //#26200 + $put($1.options, "lintype", "ean13"); //#26202 + $put($1.options, "inkspread", "0"); //#26203 + $put($1.options, "dontdraw", true); //#26204 + $k[$j++] = $1.linear; //#26207 + $k[$j++] = $1.options; //#26207 + $0.ean13(); //#26207 + $0.renlinear(); //#26207 + $$.rmoveto(-1, 72); //#26210 + $k[$j++] = Infinity; //#26221 + $k[$j++] = Infinity; //#26215 + $k[$j++] = 0; //#26213 + $k[$j++] = 1; //#26213 + for (var _E = 0, _F = 93; _E < _F; _E++) { //#26213 + $k[$j++] = 0; //#26213 + } //#26213 + $k[$j++] = 1; //#26214 + $k[$j++] = 0; //#26214 + $k[$j++] = 1; //#26214 + $k[$j++] = 0; //#26214 + for (var _G = 0, _H = 93; _G < _H; _G++) { //#26214 + $k[$j++] = 0; //#26214 + } //#26214 + $k[$j++] = 0; //#26215 + $k[$j++] = 1; //#26215 + $k[$j++] = 0; //#26215 + $k[$j++] = 1; //#26215 + for (var _I = 0, _J = 93; _I < _J; _I++) { //#26215 + $k[$j++] = 0; //#26215 + } //#26215 + $k[$j++] = 1; //#26215 + $k[$j++] = 0; //#26215 + var _K = $a(); //#26215 + $k[$j++] = 'ren'; //#26221 + $k[$j++] = $0.renmatrix; //#26221 + $k[$j++] = 'pixs'; //#26221 + $k[$j++] = _K; //#26221 + $k[$j++] = 'pixx'; //#26221 + $k[$j++] = 97; //#26221 + $k[$j++] = 'pixy'; //#26221 + $k[$j++] = 3; //#26221 + $k[$j++] = 'height'; //#26221 + $k[$j++] = 6 / 72; //#26221 + $k[$j++] = 'width'; //#26221 + $k[$j++] = 97 / 72; //#26221 + $k[$j++] = 'opt'; //#26221 + $k[$j++] = $1.options; //#26221 + var _M = $d(); //#26221 + $k[$j++] = _M; //#26222 + $0.renmatrix(); //#26222 + $$.rmoveto(-2, 6); //#26225 + $k[$j++] = $1.comp; //#26225 + $k[$j++] = $1.options; //#26225 + $0["gs1-cc"](); //#26225 + $0.renmatrix(); //#26225 + $$.restore(); //#26227 }; $0.ean8composite = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $search($1.barcode, "|"); - if ($k[--$j]) { - $1.linear = $k[--$j]; - $j--; - $1.comp = $k[--$j]; - } else { - $j--; - } - $$.save(); - $put($1.options, "lintype", "ean8"); - $put($1.options, "inkspread", "0"); - $put($1.options, "dontdraw", true); - $k[$j++] = $1.linear; - $k[$j++] = $1.options; - $0.ean8(); - $0.renlinear(); - $$.rmoveto(-1, 72); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = 1; - for (var _E = 0, _F = 65; _E < _F; _E++) { - $k[$j++] = 0; - } - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - for (var _G = 0, _H = 65; _G < _H; _G++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - for (var _I = 0, _J = 65; _I < _J; _I++) { - $k[$j++] = 0; - } - $k[$j++] = 1; - $k[$j++] = 0; - var _K = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renmatrix; - $k[$j++] = "pixs"; - $k[$j++] = _K; - $k[$j++] = "pixx"; - $k[$j++] = 69; - $k[$j++] = "pixy"; - $k[$j++] = 3; - $k[$j++] = "height"; - $k[$j++] = 6 / 72; - $k[$j++] = "width"; - $k[$j++] = 69 / 72; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _M = $d(); - $k[$j++] = _M; - $0.renmatrix(); - $k[$j++] = $1.comp; - $k[$j++] = $1.options; - $0["gs1-cc"](); - var _P = $k[--$j]; - $$.rmoveto($f(69 - $get(_P, "pixx")), 6); - $k[$j++] = _P; - $0.renmatrix(); - $$.restore(); + var $1 = {}; //#26259 + $1.options = $k[--$j]; //#26261 + $1.barcode = $k[--$j]; //#26262 + $1.dontdraw = false; //#26264 + $forall($1.options, function() { //#26275 + var _3 = $k[--$j]; //#26275 + $1[$k[--$j]] = _3; //#26275 + }); //#26275 + $search($1.barcode, "|"); //#26278 + if ($k[--$j]) { //#26283 + $1.linear = $k[--$j]; //#26279 + $j--; //#26280 + $1.comp = $k[--$j]; //#26281 + } else { //#26283 + $j--; //#26283 + } //#26283 + $$.save(); //#26286 + $put($1.options, "lintype", "ean8"); //#26289 + $put($1.options, "inkspread", "0"); //#26290 + $put($1.options, "dontdraw", true); //#26291 + $k[$j++] = $1.linear; //#26294 + $k[$j++] = $1.options; //#26294 + $0.ean8(); //#26294 + $0.renlinear(); //#26294 + $$.rmoveto(-1, 72); //#26297 + $k[$j++] = Infinity; //#26308 + $k[$j++] = Infinity; //#26302 + $k[$j++] = 0; //#26300 + $k[$j++] = 1; //#26300 + for (var _E = 0, _F = 65; _E < _F; _E++) { //#26300 + $k[$j++] = 0; //#26300 + } //#26300 + $k[$j++] = 1; //#26301 + $k[$j++] = 0; //#26301 + $k[$j++] = 1; //#26301 + $k[$j++] = 0; //#26301 + for (var _G = 0, _H = 65; _G < _H; _G++) { //#26301 + $k[$j++] = 0; //#26301 + } //#26301 + $k[$j++] = 0; //#26302 + $k[$j++] = 1; //#26302 + $k[$j++] = 0; //#26302 + $k[$j++] = 1; //#26302 + for (var _I = 0, _J = 65; _I < _J; _I++) { //#26302 + $k[$j++] = 0; //#26302 + } //#26302 + $k[$j++] = 1; //#26302 + $k[$j++] = 0; //#26302 + var _K = $a(); //#26302 + $k[$j++] = 'ren'; //#26308 + $k[$j++] = $0.renmatrix; //#26308 + $k[$j++] = 'pixs'; //#26308 + $k[$j++] = _K; //#26308 + $k[$j++] = 'pixx'; //#26308 + $k[$j++] = 69; //#26308 + $k[$j++] = 'pixy'; //#26308 + $k[$j++] = 3; //#26308 + $k[$j++] = 'height'; //#26308 + $k[$j++] = 6 / 72; //#26308 + $k[$j++] = 'width'; //#26308 + $k[$j++] = 69 / 72; //#26308 + $k[$j++] = 'opt'; //#26308 + $k[$j++] = $1.options; //#26308 + var _M = $d(); //#26308 + $k[$j++] = _M; //#26309 + $0.renmatrix(); //#26309 + $k[$j++] = $1.comp; //#26312 + $k[$j++] = $1.options; //#26312 + $0["gs1-cc"](); //#26312 + var _P = $k[--$j]; //#26313 + $$.rmoveto($f(69 - $get(_P, "pixx")), 6); //#26313 + $k[$j++] = _P; //#26314 + $0.renmatrix(); //#26314 + $$.restore(); //#26316 }; $0.upcacomposite = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $search($1.barcode, "|"); - if ($k[--$j]) { - $1.linear = $k[--$j]; - $j--; - $1.comp = $k[--$j]; - } else { - $j--; - } - $$.save(); - $put($1.options, "lintype", "ean13"); - $put($1.options, "inkspread", "0"); - $put($1.options, "dontdraw", true); - $k[$j++] = $1.linear; - $k[$j++] = $1.options; - $0.upca(); - $0.renlinear(); - $$.rmoveto(-1, 72); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = 1; - for (var _E = 0, _F = 93; _E < _F; _E++) { - $k[$j++] = 0; - } - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - for (var _G = 0, _H = 93; _G < _H; _G++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - for (var _I = 0, _J = 93; _I < _J; _I++) { - $k[$j++] = 0; - } - $k[$j++] = 1; - $k[$j++] = 0; - var _K = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renmatrix; - $k[$j++] = "pixs"; - $k[$j++] = _K; - $k[$j++] = "pixx"; - $k[$j++] = 97; - $k[$j++] = "pixy"; - $k[$j++] = 3; - $k[$j++] = "height"; - $k[$j++] = 6 / 72; - $k[$j++] = "width"; - $k[$j++] = 97 / 72; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _M = $d(); - $k[$j++] = _M; - $0.renmatrix(); - $$.rmoveto(-2, 6); - $k[$j++] = $1.comp; - $k[$j++] = $1.options; - $0["gs1-cc"](); - $0.renmatrix(); - $$.restore(); + var $1 = {}; //#26348 + $1.options = $k[--$j]; //#26350 + $1.barcode = $k[--$j]; //#26351 + $1.dontdraw = false; //#26353 + $forall($1.options, function() { //#26364 + var _3 = $k[--$j]; //#26364 + $1[$k[--$j]] = _3; //#26364 + }); //#26364 + $search($1.barcode, "|"); //#26367 + if ($k[--$j]) { //#26372 + $1.linear = $k[--$j]; //#26368 + $j--; //#26369 + $1.comp = $k[--$j]; //#26370 + } else { //#26372 + $j--; //#26372 + } //#26372 + $$.save(); //#26375 + $put($1.options, "lintype", "ean13"); //#26377 + $put($1.options, "inkspread", "0"); //#26378 + $put($1.options, "dontdraw", true); //#26379 + $k[$j++] = $1.linear; //#26382 + $k[$j++] = $1.options; //#26382 + $0.upca(); //#26382 + $0.renlinear(); //#26382 + $$.rmoveto(-1, 72); //#26385 + $k[$j++] = Infinity; //#26396 + $k[$j++] = Infinity; //#26390 + $k[$j++] = 0; //#26388 + $k[$j++] = 1; //#26388 + for (var _E = 0, _F = 93; _E < _F; _E++) { //#26388 + $k[$j++] = 0; //#26388 + } //#26388 + $k[$j++] = 1; //#26389 + $k[$j++] = 0; //#26389 + $k[$j++] = 1; //#26389 + $k[$j++] = 0; //#26389 + for (var _G = 0, _H = 93; _G < _H; _G++) { //#26389 + $k[$j++] = 0; //#26389 + } //#26389 + $k[$j++] = 0; //#26390 + $k[$j++] = 1; //#26390 + $k[$j++] = 0; //#26390 + $k[$j++] = 1; //#26390 + for (var _I = 0, _J = 93; _I < _J; _I++) { //#26390 + $k[$j++] = 0; //#26390 + } //#26390 + $k[$j++] = 1; //#26390 + $k[$j++] = 0; //#26390 + var _K = $a(); //#26390 + $k[$j++] = 'ren'; //#26396 + $k[$j++] = $0.renmatrix; //#26396 + $k[$j++] = 'pixs'; //#26396 + $k[$j++] = _K; //#26396 + $k[$j++] = 'pixx'; //#26396 + $k[$j++] = 97; //#26396 + $k[$j++] = 'pixy'; //#26396 + $k[$j++] = 3; //#26396 + $k[$j++] = 'height'; //#26396 + $k[$j++] = 6 / 72; //#26396 + $k[$j++] = 'width'; //#26396 + $k[$j++] = 97 / 72; //#26396 + $k[$j++] = 'opt'; //#26396 + $k[$j++] = $1.options; //#26396 + var _M = $d(); //#26396 + $k[$j++] = _M; //#26397 + $0.renmatrix(); //#26397 + $$.rmoveto(-2, 6); //#26400 + $k[$j++] = $1.comp; //#26400 + $k[$j++] = $1.options; //#26400 + $0["gs1-cc"](); //#26400 + $0.renmatrix(); //#26400 + $$.restore(); //#26402 }; $0.upcecomposite = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $search($1.barcode, "|"); - if ($k[--$j]) { - $1.linear = $k[--$j]; - $j--; - $1.comp = $k[--$j]; - } else { - $j--; - } - $k[$j++] = Infinity; - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = 1; - for (var _9 = 0, _A = 49; _9 < _A; _9++) { - $k[$j++] = 0; - } - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - for (var _B = 0, _C = 49; _B < _C; _B++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - for (var _D = 0, _E = 49; _D < _E; _D++) { - $k[$j++] = 0; - } - $k[$j++] = 1; - $k[$j++] = 0; - var _F = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renmatrix; - $k[$j++] = "pixs"; - $k[$j++] = _F; - $k[$j++] = "pixx"; - $k[$j++] = 53; - $k[$j++] = "pixy"; - $k[$j++] = 3; - $k[$j++] = "height"; - $k[$j++] = 6 / 72; - $k[$j++] = "width"; - $k[$j++] = 53 / 72; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - $1.sep = $d(); - $$.save(); - $put($1.options, "lintype", "upce"); - $put($1.options, "inkspread", "0"); - $put($1.options, "dontdraw", true); - $k[$j++] = $1.linear; - $k[$j++] = $1.options; - $0.upce(); - $0.renlinear(); - $$.rmoveto(-1, 72); - $k[$j++] = Infinity; - $k[$j++] = Infinity; - $k[$j++] = 0; - $k[$j++] = 1; - for (var _N = 0, _O = 49; _N < _O; _N++) { - $k[$j++] = 0; - } - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - for (var _P = 0, _Q = 49; _P < _Q; _P++) { - $k[$j++] = 0; - } - $k[$j++] = 0; - $k[$j++] = 1; - $k[$j++] = 0; - $k[$j++] = 1; - for (var _R = 0, _S = 49; _R < _S; _R++) { - $k[$j++] = 0; - } - $k[$j++] = 1; - $k[$j++] = 0; - var _T = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renmatrix; - $k[$j++] = "pixs"; - $k[$j++] = _T; - $k[$j++] = "pixx"; - $k[$j++] = 53; - $k[$j++] = "pixy"; - $k[$j++] = 3; - $k[$j++] = "height"; - $k[$j++] = 6 / 72; - $k[$j++] = "width"; - $k[$j++] = 53 / 72; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _V = $d(); - $k[$j++] = _V; - $0.renmatrix(); - $$.rmoveto(-2, 6); - $k[$j++] = $1.comp; - $k[$j++] = $1.options; - $0["gs1-cc"](); - $0.renmatrix(); - $$.restore(); + var $1 = {}; //#26434 + $1.options = $k[--$j]; //#26436 + $1.barcode = $k[--$j]; //#26437 + $1.dontdraw = false; //#26439 + $forall($1.options, function() { //#26450 + var _3 = $k[--$j]; //#26450 + $1[$k[--$j]] = _3; //#26450 + }); //#26450 + $search($1.barcode, "|"); //#26453 + if ($k[--$j]) { //#26458 + $1.linear = $k[--$j]; //#26454 + $j--; //#26455 + $1.comp = $k[--$j]; //#26456 + } else { //#26458 + $j--; //#26458 + } //#26458 + $k[$j++] = Infinity; //#26473 + $k[$j++] = Infinity; //#26467 + $k[$j++] = 0; //#26465 + $k[$j++] = 1; //#26465 + for (var _9 = 0, _A = 49; _9 < _A; _9++) { //#26465 + $k[$j++] = 0; //#26465 + } //#26465 + $k[$j++] = 1; //#26466 + $k[$j++] = 0; //#26466 + $k[$j++] = 1; //#26466 + $k[$j++] = 0; //#26466 + for (var _B = 0, _C = 49; _B < _C; _B++) { //#26466 + $k[$j++] = 0; //#26466 + } //#26466 + $k[$j++] = 0; //#26467 + $k[$j++] = 1; //#26467 + $k[$j++] = 0; //#26467 + $k[$j++] = 1; //#26467 + for (var _D = 0, _E = 49; _D < _E; _D++) { //#26467 + $k[$j++] = 0; //#26467 + } //#26467 + $k[$j++] = 1; //#26467 + $k[$j++] = 0; //#26467 + var _F = $a(); //#26467 + $k[$j++] = 'ren'; //#26473 + $k[$j++] = $0.renmatrix; //#26473 + $k[$j++] = 'pixs'; //#26473 + $k[$j++] = _F; //#26473 + $k[$j++] = 'pixx'; //#26473 + $k[$j++] = 53; //#26473 + $k[$j++] = 'pixy'; //#26473 + $k[$j++] = 3; //#26473 + $k[$j++] = 'height'; //#26473 + $k[$j++] = 6 / 72; //#26473 + $k[$j++] = 'width'; //#26473 + $k[$j++] = 53 / 72; //#26473 + $k[$j++] = 'opt'; //#26473 + $k[$j++] = $1.options; //#26473 + $1.sep = $d(); //#26474 + $$.save(); //#26476 + $put($1.options, "lintype", "upce"); //#26478 + $put($1.options, "inkspread", "0"); //#26479 + $put($1.options, "dontdraw", true); //#26480 + $k[$j++] = $1.linear; //#26483 + $k[$j++] = $1.options; //#26483 + $0.upce(); //#26483 + $0.renlinear(); //#26483 + $$.rmoveto(-1, 72); //#26486 + $k[$j++] = Infinity; //#26497 + $k[$j++] = Infinity; //#26491 + $k[$j++] = 0; //#26489 + $k[$j++] = 1; //#26489 + for (var _N = 0, _O = 49; _N < _O; _N++) { //#26489 + $k[$j++] = 0; //#26489 + } //#26489 + $k[$j++] = 1; //#26490 + $k[$j++] = 0; //#26490 + $k[$j++] = 1; //#26490 + $k[$j++] = 0; //#26490 + for (var _P = 0, _Q = 49; _P < _Q; _P++) { //#26490 + $k[$j++] = 0; //#26490 + } //#26490 + $k[$j++] = 0; //#26491 + $k[$j++] = 1; //#26491 + $k[$j++] = 0; //#26491 + $k[$j++] = 1; //#26491 + for (var _R = 0, _S = 49; _R < _S; _R++) { //#26491 + $k[$j++] = 0; //#26491 + } //#26491 + $k[$j++] = 1; //#26491 + $k[$j++] = 0; //#26491 + var _T = $a(); //#26491 + $k[$j++] = 'ren'; //#26497 + $k[$j++] = $0.renmatrix; //#26497 + $k[$j++] = 'pixs'; //#26497 + $k[$j++] = _T; //#26497 + $k[$j++] = 'pixx'; //#26497 + $k[$j++] = 53; //#26497 + $k[$j++] = 'pixy'; //#26497 + $k[$j++] = 3; //#26497 + $k[$j++] = 'height'; //#26497 + $k[$j++] = 6 / 72; //#26497 + $k[$j++] = 'width'; //#26497 + $k[$j++] = 53 / 72; //#26497 + $k[$j++] = 'opt'; //#26497 + $k[$j++] = $1.options; //#26497 + var _V = $d(); //#26497 + $k[$j++] = _V; //#26498 + $0.renmatrix(); //#26498 + $$.rmoveto(-2, 6); //#26501 + $k[$j++] = $1.comp; //#26501 + $k[$j++] = $1.options; //#26501 + $0["gs1-cc"](); //#26501 + $0.renmatrix(); //#26501 + $$.restore(); //#26503 }; $0.databaromnicomposite = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $search($1.barcode, "|"); - if ($k[--$j]) { - $1.linear = $k[--$j]; - $j--; - $1.comp = $k[--$j]; - } else { - $j--; - } - $$.save(); - $put($1.options, "lintype", "databaromni"); - $put($1.options, "linkage", true); - $put($1.options, "inkspread", "0"); - $put($1.options, "dontdraw", true); - $k[$j++] = $1.linear; - $k[$j++] = $1.options; - $0.databaromni(); - var _F = $k[--$j]; - $1.linsbs = $get(_F, "sbs"); - $1.linheight = $get($get(_F, "bhs"), 0) * 72; - $k[$j++] = _F; - $0.renlinear(); + var $1 = {}; //#26535 + $1.options = $k[--$j]; //#26537 + $1.barcode = $k[--$j]; //#26538 + $1.dontdraw = false; //#26540 + $forall($1.options, function() { //#26551 + var _3 = $k[--$j]; //#26551 + $1[$k[--$j]] = _3; //#26551 + }); //#26551 + $search($1.barcode, "|"); //#26554 + if ($k[--$j]) { //#26559 + $1.linear = $k[--$j]; //#26555 + $j--; //#26556 + $1.comp = $k[--$j]; //#26557 + } else { //#26559 + $j--; //#26559 + } //#26559 + $$.save(); //#26562 + $put($1.options, "lintype", "databaromni"); //#26564 + $put($1.options, "linkage", true); //#26565 + $put($1.options, "inkspread", "0"); //#26566 + $put($1.options, "dontdraw", true); //#26567 + $k[$j++] = $1.linear; //#26570 + $k[$j++] = $1.options; //#26570 + $0.databaromni(); //#26570 + var _F = $k[--$j]; //#26571 + $1.linsbs = $get(_F, "sbs"); //#26571 + $1.linheight = $get($get(_F, "bhs"), 0) * 72; //#26572 + $k[$j++] = _F; //#26573 + $0.renlinear(); //#26573 $1.sepfinder = function() { - $1.fp = $k[--$j]; - for (var _N = $1.fp, _M = $f($1.fp + 12); _N <= _M; _N += 1) { - $1.i = _N; - if ($get($1.bot, $1.i) == 0) { - if ($get($1.bot, $1.i - 1) == 1) { - $k[$j++] = 1; - } else { - var _X = $get($1.sep, $1.i - 1) == 0 ? 1 : 0; - $k[$j++] = _X; - } - } else { - $k[$j++] = 0; - } - $put($1.sep, $1.i, $k[--$j]); - } - $1.f3 = $a([ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1 ]); - $k[$j++] = true; - for (var _c = 0; _c <= 12; _c += 1) { - var _i = $k[--$j]; - $k[$j++] = _i && $eq($get($1.bot, $f(_c + $1.fp)), $get($1.f3, _c)); - } - if ($k[--$j]) { - $puti($1.sep, $1.fp, $a([ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ])); - } - }; - $k[$j++] = Infinity; - $k[$j++] = 0; - $forall($1.linsbs, function() { - var _o = $k[--$j]; - var _p = $k[--$j]; - var _q = _p == 1 ? 0 : 1; - $k[$j++] = _p; - for (var _r = 0, _s = _o; _r < _s; _r++) { - $k[$j++] = _q; - } - }); - $astore($a($counttomark() - 1)); - $1.bot = $k[--$j]; - $j -= 2; - $k[$j++] = Infinity; - $forall($1.bot, function() { - var _x = $k[--$j]; - $k[$j++] = $f(1 - _x); - }); - $1.sep = $a(); - $puti($1.sep, 0, $a([ 0, 0, 0 ])); - $puti($1.sep, $1.sep.length - 4, $a([ 0, 0, 0, 0 ])); - $k[$j++] = 18; - $1.sepfinder(); - $k[$j++] = 64; - $1.sepfinder(); - $$.rmoveto(0, $1.linheight); - var _19 = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.sep ], [ "pixx", $1.sep.length ], [ "pixy", 1 ], [ "height", 1 / 72 ], [ "width", $1.sep.length / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _19; - $0.renmatrix(); - $$.rmoveto(-5, 1); - $k[$j++] = $1.comp; - $k[$j++] = $1.options; - $0["gs1-cc"](); - $0.renmatrix(); - $$.restore(); + $1.fp = $k[--$j]; //#26577 + for (var _N = $1.fp, _M = $f($1.fp + 12); _N <= _M; _N += 1) { //#26590 + $1.i = _N; //#26579 + if ($get($1.bot, $1.i) == 0) { //#26587 + if ($get($1.bot, $1.i - 1) == 1) { //#26584 + $k[$j++] = 1; //#26582 + } else { //#26584 + var _X = ($get($1.sep, $1.i - 1) == 0) ? 1 : 0; //#26584 + $k[$j++] = _X; //#26584 + } //#26584 + } else { //#26587 + $k[$j++] = 0; //#26587 + } //#26587 + $put($1.sep, $1.i, $k[--$j]); //#26589 + } //#26589 + $1.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#26591 + $k[$j++] = true; //#26592 + for (var _c = 0; _c <= 12; _c += 1) { //#26592 + var _i = $k[--$j]; //#26592 + $k[$j++] = _i && $eq($get($1.bot, $f(_c + $1.fp)), $get($1.f3, _c)); //#26592 + } //#26592 + if ($k[--$j]) { //#26595 + $puti($1.sep, $1.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#26594 + } //#26594 + }; //#26596 + $k[$j++] = Infinity; //#26597 + $k[$j++] = 0; //#26598 + $forall($1.linsbs, function() { //#26598 + var _o = $k[--$j]; //#26598 + var _p = $k[--$j]; //#26598 + var _q = (_p == 1) ? 0 : 1; //#26598 + $k[$j++] = _p; //#26598 + for (var _r = 0, _s = _o; _r < _s; _r++) { //#26598 + $k[$j++] = _q //#26598 + } //#26598 + }); //#26598 + $astore($a($counttomark() - 1)); //#26599 + $1.bot = $k[--$j]; //#26599 + $j -= 2; //#26599 + $k[$j++] = Infinity; //#26600 + $forall($1.bot, function() { //#26600 + var _x = $k[--$j]; //#26600 + $k[$j++] = $f(1 - _x); //#26600 + }); //#26600 + $1.sep = $a(); //#26600 + $puti($1.sep, 0, $a([0, 0, 0])); //#26601 + $puti($1.sep, $1.sep.length - 4, $a([0, 0, 0, 0])); //#26602 + $k[$j++] = 18; //#26603 + $1.sepfinder(); //#26603 + $k[$j++] = 64; //#26603 + $1.sepfinder(); //#26603 + $$.rmoveto(0, $1.linheight); //#26604 + var _19 = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.sep], + ["pixx", $1.sep.length], + ["pixy", 1], + ["height", 1 / 72], + ["width", $1.sep.length / 72], + ["opt", $1.options] + ]); //#26611 + $k[$j++] = _19; //#26612 + $0.renmatrix(); //#26612 + $$.rmoveto(-5, 1); //#26615 + $k[$j++] = $1.comp; //#26615 + $k[$j++] = $1.options; //#26615 + $0["gs1-cc"](); //#26615 + $0.renmatrix(); //#26615 + $$.restore(); //#26617 }; $0.databarstackedcomposite = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $search($1.barcode, "|"); - if ($k[--$j]) { - $1.linear = $k[--$j]; - $j--; - $1.comp = $k[--$j]; - } else { - $j--; - } - $$.save(); - $put($1.options, "lintype", "databarstacked"); - $put($1.options, "linkage", true); - $put($1.options, "inkspread", "0"); - $put($1.options, "dontdraw", true); - $k[$j++] = $1.linear; - $k[$j++] = $1.options; - $0.databarstacked(); - var _F = $k[--$j]; - $1.bot = $geti($get(_F, "pixs"), 0, $get(_F, "pixx")); - $1.linheight = $get(_F, "pixy"); - $k[$j++] = _F; - $0.renmatrix(); + var $1 = {}; //#26648 + $1.options = $k[--$j]; //#26650 + $1.barcode = $k[--$j]; //#26651 + $1.dontdraw = false; //#26653 + $forall($1.options, function() { //#26664 + var _3 = $k[--$j]; //#26664 + $1[$k[--$j]] = _3; //#26664 + }); //#26664 + $search($1.barcode, "|"); //#26667 + if ($k[--$j]) { //#26672 + $1.linear = $k[--$j]; //#26668 + $j--; //#26669 + $1.comp = $k[--$j]; //#26670 + } else { //#26672 + $j--; //#26672 + } //#26672 + $$.save(); //#26675 + $put($1.options, "lintype", "databarstacked"); //#26677 + $put($1.options, "linkage", true); //#26678 + $put($1.options, "inkspread", "0"); //#26679 + $put($1.options, "dontdraw", true); //#26680 + $k[$j++] = $1.linear; //#26683 + $k[$j++] = $1.options; //#26683 + $0.databarstacked(); //#26683 + var _F = $k[--$j]; //#26684 + $1.bot = $geti($get(_F, "pixs"), 0, $get(_F, "pixx")); //#26684 + $1.linheight = $get(_F, "pixy"); //#26685 + $k[$j++] = _F; //#26686 + $0.renmatrix(); //#26686 $1.sepfinder = function() { - $1.fp = $k[--$j]; - for (var _O = $1.fp, _N = $f($1.fp + 12); _O <= _N; _O += 1) { - $1.i = _O; - if ($get($1.bot, $1.i) == 0) { - if ($get($1.bot, $1.i - 1) == 1) { - $k[$j++] = 1; - } else { - var _Y = $get($1.sep, $1.i - 1) == 0 ? 1 : 0; - $k[$j++] = _Y; - } - } else { - $k[$j++] = 0; - } - $put($1.sep, $1.i, $k[--$j]); - } - $1.f3 = $a([ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1 ]); - $k[$j++] = true; - for (var _d = 0; _d <= 12; _d += 1) { - var _j = $k[--$j]; - $k[$j++] = _j && $eq($get($1.bot, $f(_d + $1.fp)), $get($1.f3, _d)); - } - if ($k[--$j]) { - $puti($1.sep, $1.fp, $a([ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ])); - } - }; - $k[$j++] = Infinity; - var _o = $1.bot; - for (var _p = 0, _q = _o.length; _p < _q; _p++) { - $k[$j++] = $f(1 - $get(_o, _p)); - } - $1.sep = $a(); - $puti($1.sep, 0, $a([ 0, 0, 0, 0 ])); - $puti($1.sep, $1.sep.length - 4, $a([ 0, 0, 0, 0 ])); - $k[$j++] = 18; - $1.sepfinder(); - $$.rmoveto(0, $1.linheight); - var _13 = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.sep ], [ "pixx", $1.sep.length ], [ "pixy", 1 ], [ "height", 1 / 72 ], [ "width", $1.sep.length / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _13; - $0.renmatrix(); - $$.rmoveto(1, 1); - $k[$j++] = $1.comp; - $k[$j++] = $1.options; - $0["gs1-cc"](); - $0.renmatrix(); - $$.restore(); + $1.fp = $k[--$j]; //#26690 + for (var _O = $1.fp, _N = $f($1.fp + 12); _O <= _N; _O += 1) { //#26703 + $1.i = _O; //#26692 + if ($get($1.bot, $1.i) == 0) { //#26700 + if ($get($1.bot, $1.i - 1) == 1) { //#26697 + $k[$j++] = 1; //#26695 + } else { //#26697 + var _Y = ($get($1.sep, $1.i - 1) == 0) ? 1 : 0; //#26697 + $k[$j++] = _Y; //#26697 + } //#26697 + } else { //#26700 + $k[$j++] = 0; //#26700 + } //#26700 + $put($1.sep, $1.i, $k[--$j]); //#26702 + } //#26702 + $1.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#26704 + $k[$j++] = true; //#26705 + for (var _d = 0; _d <= 12; _d += 1) { //#26705 + var _j = $k[--$j]; //#26705 + $k[$j++] = _j && $eq($get($1.bot, $f(_d + $1.fp)), $get($1.f3, _d)); //#26705 + } //#26705 + if ($k[--$j]) { //#26708 + $puti($1.sep, $1.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#26707 + } //#26707 + }; //#26709 + $k[$j++] = Infinity; //#26710 + var _o = $1.bot; //#26710 + for (var _p = 0, _q = _o.length; _p < _q; _p++) { //#26710 + $k[$j++] = $f(1 - $get(_o, _p)); //#26710 + } //#26710 + $1.sep = $a(); //#26710 + $puti($1.sep, 0, $a([0, 0, 0, 0])); //#26711 + $puti($1.sep, $1.sep.length - 4, $a([0, 0, 0, 0])); //#26712 + $k[$j++] = 18; //#26713 + $1.sepfinder(); //#26713 + $$.rmoveto(0, $1.linheight); //#26714 + var _13 = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.sep], + ["pixx", $1.sep.length], + ["pixy", 1], + ["height", 1 / 72], + ["width", $1.sep.length / 72], + ["opt", $1.options] + ]); //#26721 + $k[$j++] = _13; //#26722 + $0.renmatrix(); //#26722 + $$.rmoveto(1, 1); //#26725 + $k[$j++] = $1.comp; //#26725 + $k[$j++] = $1.options; //#26725 + $0["gs1-cc"](); //#26725 + $0.renmatrix(); //#26725 + $$.restore(); //#26727 }; $0.databarstackedomnicomposite = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $search($1.barcode, "|"); - if ($k[--$j]) { - $1.linear = $k[--$j]; - $j--; - $1.comp = $k[--$j]; - } else { - $j--; - } - $$.save(); - $put($1.options, "lintype", "databarstackedomni"); - $put($1.options, "linkage", true); - $put($1.options, "inkspread", "0"); - $put($1.options, "dontdraw", true); - $k[$j++] = $1.linear; - $k[$j++] = $1.options; - $0.databarstackedomni(); - var _F = $k[--$j]; - $1.bot = $geti($get(_F, "pixs"), 0, $get(_F, "pixx")); - $1.linheight = $get(_F, "pixy"); - $k[$j++] = _F; - $0.renmatrix(); + var $1 = {}; //#26758 + $1.options = $k[--$j]; //#26760 + $1.barcode = $k[--$j]; //#26761 + $1.dontdraw = false; //#26763 + $forall($1.options, function() { //#26774 + var _3 = $k[--$j]; //#26774 + $1[$k[--$j]] = _3; //#26774 + }); //#26774 + $search($1.barcode, "|"); //#26777 + if ($k[--$j]) { //#26782 + $1.linear = $k[--$j]; //#26778 + $j--; //#26779 + $1.comp = $k[--$j]; //#26780 + } else { //#26782 + $j--; //#26782 + } //#26782 + $$.save(); //#26785 + $put($1.options, "lintype", "databarstackedomni"); //#26787 + $put($1.options, "linkage", true); //#26788 + $put($1.options, "inkspread", "0"); //#26789 + $put($1.options, "dontdraw", true); //#26790 + $k[$j++] = $1.linear; //#26793 + $k[$j++] = $1.options; //#26793 + $0.databarstackedomni(); //#26793 + var _F = $k[--$j]; //#26794 + $1.bot = $geti($get(_F, "pixs"), 0, $get(_F, "pixx")); //#26794 + $1.linheight = $get(_F, "pixy"); //#26795 + $k[$j++] = _F; //#26796 + $0.renmatrix(); //#26796 $1.sepfinder = function() { - $1.fp = $k[--$j]; - for (var _O = $1.fp, _N = $f($1.fp + 12); _O <= _N; _O += 1) { - $1.i = _O; - if ($get($1.bot, $1.i) == 0) { - if ($get($1.bot, $1.i - 1) == 1) { - $k[$j++] = 1; - } else { - var _Y = $get($1.sep, $1.i - 1) == 0 ? 1 : 0; - $k[$j++] = _Y; - } - } else { - $k[$j++] = 0; - } - $put($1.sep, $1.i, $k[--$j]); - } - $1.f3 = $a([ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1 ]); - $k[$j++] = true; - for (var _d = 0; _d <= 12; _d += 1) { - var _j = $k[--$j]; - $k[$j++] = _j && $eq($get($1.bot, $f(_d + $1.fp)), $get($1.f3, _d)); - } - if ($k[--$j]) { - $puti($1.sep, $1.fp, $a([ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ])); - } - }; - $k[$j++] = Infinity; - var _o = $1.bot; - for (var _p = 0, _q = _o.length; _p < _q; _p++) { - $k[$j++] = $f(1 - $get(_o, _p)); - } - $1.sep = $a(); - $puti($1.sep, 0, $a([ 0, 0, 0, 0 ])); - $puti($1.sep, $1.sep.length - 4, $a([ 0, 0, 0, 0 ])); - $k[$j++] = 18; - $1.sepfinder(); - $$.rmoveto(0, $1.linheight); - var _13 = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.sep ], [ "pixx", $1.sep.length ], [ "pixy", 1 ], [ "height", 1 / 72 ], [ "width", $1.sep.length / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _13; - $0.renmatrix(); - $$.rmoveto(1, 1); - $k[$j++] = $1.comp; - $k[$j++] = $1.options; - $0["gs1-cc"](); - $0.renmatrix(); - $$.restore(); + $1.fp = $k[--$j]; //#26800 + for (var _O = $1.fp, _N = $f($1.fp + 12); _O <= _N; _O += 1) { //#26813 + $1.i = _O; //#26802 + if ($get($1.bot, $1.i) == 0) { //#26810 + if ($get($1.bot, $1.i - 1) == 1) { //#26807 + $k[$j++] = 1; //#26805 + } else { //#26807 + var _Y = ($get($1.sep, $1.i - 1) == 0) ? 1 : 0; //#26807 + $k[$j++] = _Y; //#26807 + } //#26807 + } else { //#26810 + $k[$j++] = 0; //#26810 + } //#26810 + $put($1.sep, $1.i, $k[--$j]); //#26812 + } //#26812 + $1.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#26814 + $k[$j++] = true; //#26815 + for (var _d = 0; _d <= 12; _d += 1) { //#26815 + var _j = $k[--$j]; //#26815 + $k[$j++] = _j && $eq($get($1.bot, $f(_d + $1.fp)), $get($1.f3, _d)); //#26815 + } //#26815 + if ($k[--$j]) { //#26818 + $puti($1.sep, $1.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#26817 + } //#26817 + }; //#26819 + $k[$j++] = Infinity; //#26820 + var _o = $1.bot; //#26820 + for (var _p = 0, _q = _o.length; _p < _q; _p++) { //#26820 + $k[$j++] = $f(1 - $get(_o, _p)); //#26820 + } //#26820 + $1.sep = $a(); //#26820 + $puti($1.sep, 0, $a([0, 0, 0, 0])); //#26821 + $puti($1.sep, $1.sep.length - 4, $a([0, 0, 0, 0])); //#26822 + $k[$j++] = 18; //#26823 + $1.sepfinder(); //#26823 + $$.rmoveto(0, $1.linheight); //#26824 + var _13 = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.sep], + ["pixx", $1.sep.length], + ["pixy", 1], + ["height", 1 / 72], + ["width", $1.sep.length / 72], + ["opt", $1.options] + ]); //#26831 + $k[$j++] = _13; //#26832 + $0.renmatrix(); //#26832 + $$.rmoveto(1, 1); //#26835 + $k[$j++] = $1.comp; //#26835 + $k[$j++] = $1.options; //#26835 + $0["gs1-cc"](); //#26835 + $0.renmatrix(); //#26835 + $$.restore(); //#26837 }; $0.databartruncatedcomposite = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $search($1.barcode, "|"); - if ($k[--$j]) { - $1.linear = $k[--$j]; - $j--; - $1.comp = $k[--$j]; - } else { - $j--; - } - $$.save(); - $put($1.options, "lintype", "databartruncated"); - $put($1.options, "linkage", true); - $put($1.options, "inkspread", "0"); - $put($1.options, "dontdraw", true); - $k[$j++] = $1.linear; - $k[$j++] = $1.options; - $0.databartruncated(); - var _F = $k[--$j]; - $1.linsbs = $get(_F, "sbs"); - $1.linheight = $get($get(_F, "bhs"), 0) * 72; - $k[$j++] = _F; - $0.renlinear(); + var $1 = {}; //#26869 + $1.options = $k[--$j]; //#26871 + $1.barcode = $k[--$j]; //#26872 + $1.dontdraw = false; //#26874 + $forall($1.options, function() { //#26885 + var _3 = $k[--$j]; //#26885 + $1[$k[--$j]] = _3; //#26885 + }); //#26885 + $search($1.barcode, "|"); //#26888 + if ($k[--$j]) { //#26893 + $1.linear = $k[--$j]; //#26889 + $j--; //#26890 + $1.comp = $k[--$j]; //#26891 + } else { //#26893 + $j--; //#26893 + } //#26893 + $$.save(); //#26896 + $put($1.options, "lintype", "databartruncated"); //#26898 + $put($1.options, "linkage", true); //#26899 + $put($1.options, "inkspread", "0"); //#26900 + $put($1.options, "dontdraw", true); //#26901 + $k[$j++] = $1.linear; //#26904 + $k[$j++] = $1.options; //#26904 + $0.databartruncated(); //#26904 + var _F = $k[--$j]; //#26905 + $1.linsbs = $get(_F, "sbs"); //#26905 + $1.linheight = $get($get(_F, "bhs"), 0) * 72; //#26906 + $k[$j++] = _F; //#26907 + $0.renlinear(); //#26907 $1.sepfinder = function() { - $1.fp = $k[--$j]; - for (var _N = $1.fp, _M = $f($1.fp + 12); _N <= _M; _N += 1) { - $1.i = _N; - if ($get($1.bot, $1.i) == 0) { - if ($get($1.bot, $1.i - 1) == 1) { - $k[$j++] = 1; - } else { - var _X = $get($1.sep, $1.i - 1) == 0 ? 1 : 0; - $k[$j++] = _X; - } - } else { - $k[$j++] = 0; - } - $put($1.sep, $1.i, $k[--$j]); - } - $1.f3 = $a([ 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1 ]); - $k[$j++] = true; - for (var _c = 0; _c <= 12; _c += 1) { - var _i = $k[--$j]; - $k[$j++] = _i && $eq($get($1.bot, $f(_c + $1.fp)), $get($1.f3, _c)); - } - if ($k[--$j]) { - $puti($1.sep, $1.fp, $a([ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0 ])); - } - }; - $k[$j++] = Infinity; - $k[$j++] = 0; - $forall($1.linsbs, function() { - var _o = $k[--$j]; - var _p = $k[--$j]; - var _q = _p == 1 ? 0 : 1; - $k[$j++] = _p; - for (var _r = 0, _s = _o; _r < _s; _r++) { - $k[$j++] = _q; - } - }); - $astore($a($counttomark() - 1)); - $1.bot = $k[--$j]; - $j -= 2; - $k[$j++] = Infinity; - $forall($1.bot, function() { - var _x = $k[--$j]; - $k[$j++] = $f(1 - _x); - }); - $1.sep = $a(); - $puti($1.sep, 0, $a([ 0, 0, 0 ])); - $puti($1.sep, $1.sep.length - 4, $a([ 0, 0, 0, 0 ])); - $k[$j++] = 18; - $1.sepfinder(); - $k[$j++] = 64; - $1.sepfinder(); - $$.rmoveto(0, $1.linheight); - var _19 = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.sep ], [ "pixx", $1.sep.length ], [ "pixy", 1 ], [ "height", 1 / 72 ], [ "width", $1.sep.length / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _19; - $0.renmatrix(); - $$.rmoveto(-5, 1); - $k[$j++] = $1.comp; - $k[$j++] = $1.options; - $0["gs1-cc"](); - $0.renmatrix(); - $$.restore(); - }; - $0.databarlimitedcomposite = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $search($1.barcode, "|"); - if ($k[--$j]) { - $1.linear = $k[--$j]; - $j--; - $1.comp = $k[--$j]; - } else { - $j--; - } - $$.save(); - $put($1.options, "lintype", "databarlimited"); - $put($1.options, "linkage", true); - $put($1.options, "inkspread", "0"); - $put($1.options, "dontdraw", true); - $k[$j++] = $1.linear; - $k[$j++] = $1.options; - $0.databarlimited(); - var _F = $k[--$j]; - $1.linsbs = $get(_F, "sbs"); - $1.linheight = $get($get(_F, "bhs"), 0) * 72; - $k[$j++] = _F; - $0.renlinear(); - $k[$j++] = Infinity; - $k[$j++] = 1; - $forall($1.linsbs, function() { - var _K = $k[--$j]; - var _L = $k[--$j]; - var _M = _L == 0 ? 1 : 0; - $k[$j++] = _L; - for (var _N = 0, _O = _K; _N < _O; _N++) { - $k[$j++] = _M; - } - }); - $astore($a($counttomark() - 1)); - $1.sep = $k[--$j]; - $j -= 2; - $puti($1.sep, 0, $a([ 0, 0, 0 ])); - $puti($1.sep, $1.sep.length - 9, $a([ 0, 0, 0, 0, 0, 0, 0, 0, 0 ])); - $$.rmoveto(0, $1.linheight); - var _c = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.sep ], [ "pixx", $1.sep.length ], [ "pixy", 1 ], [ "height", 1 / 72 ], [ "width", $1.sep.length / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _c; - $0.renmatrix(); - $k[$j++] = $1.comp; - $k[$j++] = $1.options; - $0["gs1-cc"](); - var _f = $k[--$j]; - $$.rmoveto($f(72 - $get(_f, "pixx")), 1); - $k[$j++] = _f; - $0.renmatrix(); - $$.restore(); + $1.fp = $k[--$j]; //#26911 + for (var _N = $1.fp, _M = $f($1.fp + 12); _N <= _M; _N += 1) { //#26924 + $1.i = _N; //#26913 + if ($get($1.bot, $1.i) == 0) { //#26921 + if ($get($1.bot, $1.i - 1) == 1) { //#26918 + $k[$j++] = 1; //#26916 + } else { //#26918 + var _X = ($get($1.sep, $1.i - 1) == 0) ? 1 : 0; //#26918 + $k[$j++] = _X; //#26918 + } //#26918 + } else { //#26921 + $k[$j++] = 0; //#26921 + } //#26921 + $put($1.sep, $1.i, $k[--$j]); //#26923 + } //#26923 + $1.f3 = $a([1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1]); //#26925 + $k[$j++] = true; //#26926 + for (var _c = 0; _c <= 12; _c += 1) { //#26926 + var _i = $k[--$j]; //#26926 + $k[$j++] = _i && $eq($get($1.bot, $f(_c + $1.fp)), $get($1.f3, _c)); //#26926 + } //#26926 + if ($k[--$j]) { //#26929 + $puti($1.sep, $1.fp, $a([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0])); //#26928 + } //#26928 + }; //#26930 + $k[$j++] = Infinity; //#26931 + $k[$j++] = 0; //#26932 + $forall($1.linsbs, function() { //#26932 + var _o = $k[--$j]; //#26932 + var _p = $k[--$j]; //#26932 + var _q = (_p == 1) ? 0 : 1; //#26932 + $k[$j++] = _p; //#26932 + for (var _r = 0, _s = _o; _r < _s; _r++) { //#26932 + $k[$j++] = _q //#26932 + } //#26932 + }); //#26932 + $astore($a($counttomark() - 1)); //#26933 + $1.bot = $k[--$j]; //#26933 + $j -= 2; //#26933 + $k[$j++] = Infinity; //#26934 + $forall($1.bot, function() { //#26934 + var _x = $k[--$j]; //#26934 + $k[$j++] = $f(1 - _x); //#26934 + }); //#26934 + $1.sep = $a(); //#26934 + $puti($1.sep, 0, $a([0, 0, 0])); //#26935 + $puti($1.sep, $1.sep.length - 4, $a([0, 0, 0, 0])); //#26936 + $k[$j++] = 18; //#26937 + $1.sepfinder(); //#26937 + $k[$j++] = 64; //#26937 + $1.sepfinder(); //#26937 + $$.rmoveto(0, $1.linheight); //#26938 + var _19 = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.sep], + ["pixx", $1.sep.length], + ["pixy", 1], + ["height", 1 / 72], + ["width", $1.sep.length / 72], + ["opt", $1.options] + ]); //#26945 + $k[$j++] = _19; //#26946 + $0.renmatrix(); //#26946 + $$.rmoveto(-5, 1); //#26949 + $k[$j++] = $1.comp; //#26949 + $k[$j++] = $1.options; //#26949 + $0["gs1-cc"](); //#26949 + $0.renmatrix(); //#26949 + $$.restore(); //#26951 + }; + $0.databarlimitedcomposite = function() { + var $1 = {}; //#26983 + $1.options = $k[--$j]; //#26985 + $1.barcode = $k[--$j]; //#26986 + $1.dontdraw = false; //#26988 + $forall($1.options, function() { //#26999 + var _3 = $k[--$j]; //#26999 + $1[$k[--$j]] = _3; //#26999 + }); //#26999 + $search($1.barcode, "|"); //#27002 + if ($k[--$j]) { //#27007 + $1.linear = $k[--$j]; //#27003 + $j--; //#27004 + $1.comp = $k[--$j]; //#27005 + } else { //#27007 + $j--; //#27007 + } //#27007 + $$.save(); //#27010 + $put($1.options, "lintype", "databarlimited"); //#27012 + $put($1.options, "linkage", true); //#27013 + $put($1.options, "inkspread", "0"); //#27014 + $put($1.options, "dontdraw", true); //#27015 + $k[$j++] = $1.linear; //#27018 + $k[$j++] = $1.options; //#27018 + $0.databarlimited(); //#27018 + var _F = $k[--$j]; //#27019 + $1.linsbs = $get(_F, "sbs"); //#27019 + $1.linheight = $get($get(_F, "bhs"), 0) * 72; //#27020 + $k[$j++] = _F; //#27021 + $0.renlinear(); //#27021 + $k[$j++] = Infinity; //#27024 + $k[$j++] = 1; //#27025 + $forall($1.linsbs, function() { //#27025 + var _K = $k[--$j]; //#27025 + var _L = $k[--$j]; //#27025 + var _M = (_L == 0) ? 1 : 0; //#27025 + $k[$j++] = _L; //#27025 + for (var _N = 0, _O = _K; _N < _O; _N++) { //#27025 + $k[$j++] = _M //#27025 + } //#27025 + }); //#27025 + $astore($a($counttomark() - 1)); //#27026 + $1.sep = $k[--$j]; //#27026 + $j -= 2; //#27026 + $puti($1.sep, 0, $a([0, 0, 0])); //#27027 + $puti($1.sep, $1.sep.length - 9, $a([0, 0, 0, 0, 0, 0, 0, 0, 0])); //#27028 + $$.rmoveto(0, $1.linheight); //#27029 + var _c = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.sep], + ["pixx", $1.sep.length], + ["pixy", 1], + ["height", 1 / 72], + ["width", $1.sep.length / 72], + ["opt", $1.options] + ]); //#27036 + $k[$j++] = _c; //#27037 + $0.renmatrix(); //#27037 + $k[$j++] = $1.comp; //#27040 + $k[$j++] = $1.options; //#27040 + $0["gs1-cc"](); //#27040 + var _f = $k[--$j]; //#27041 + $$.rmoveto($f(72 - $get(_f, "pixx")), 1); //#27041 + $k[$j++] = _f; //#27042 + $0.renmatrix(); //#27042 + $$.restore(); //#27044 }; $0.databarexpandedcomposite = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $search($1.barcode, "|"); - if ($k[--$j]) { - $1.linear = $k[--$j]; - $j--; - $1.comp = $k[--$j]; - } else { - $j--; - } - $$.save(); - $put($1.options, "lintype", "databarexpanded"); - $put($1.options, "linkage", true); - $put($1.options, "inkspread", "0"); - $put($1.options, "dontdraw", true); - $k[$j++] = $1.linear; - $k[$j++] = $1.options; - $0.databarexpanded(); - var _F = $k[--$j]; - $1.linsbs = $get(_F, "sbs"); - $1.linheight = $get($get(_F, "bhs"), 0) * 72; - $k[$j++] = _F; - $0.renlinear(); + var $1 = {}; //#27076 + $1.options = $k[--$j]; //#27078 + $1.barcode = $k[--$j]; //#27079 + $1.dontdraw = false; //#27081 + $forall($1.options, function() { //#27092 + var _3 = $k[--$j]; //#27092 + $1[$k[--$j]] = _3; //#27092 + }); //#27092 + $search($1.barcode, "|"); //#27095 + if ($k[--$j]) { //#27100 + $1.linear = $k[--$j]; //#27096 + $j--; //#27097 + $1.comp = $k[--$j]; //#27098 + } else { //#27100 + $j--; //#27100 + } //#27100 + $$.save(); //#27103 + $put($1.options, "lintype", "databarexpanded"); //#27105 + $put($1.options, "linkage", true); //#27106 + $put($1.options, "inkspread", "0"); //#27107 + $put($1.options, "dontdraw", true); //#27108 + $k[$j++] = $1.linear; //#27111 + $k[$j++] = $1.options; //#27111 + $0.databarexpanded(); //#27111 + var _F = $k[--$j]; //#27112 + $1.linsbs = $get(_F, "sbs"); //#27112 + $1.linheight = $get($get(_F, "bhs"), 0) * 72; //#27113 + $k[$j++] = _F; //#27114 + $0.renlinear(); //#27114 $1.sepfinder = function() { - $1.fp = $k[--$j]; - for (var _N = $1.fp, _M = $f($1.fp + 12); _N <= _M; _N += 1) { - $1.i = _N; - if ($get($1.bot, $1.i) == 0) { - if ($get($1.bot, $1.i - 1) == 1) { - $k[$j++] = 1; - } else { - var _X = $get($1.sep, $1.i - 1) == 0 ? 1 : 0; - $k[$j++] = _X; - } - } else { - $k[$j++] = 0; - } - $put($1.sep, $1.i, $k[--$j]); - } - }; - $k[$j++] = Infinity; - $k[$j++] = 0; - $forall($1.linsbs, function() { - var _c = $k[--$j]; - var _d = $k[--$j]; - var _e = _d == 1 ? 0 : 1; - $k[$j++] = _d; - for (var _f = 0, _g = _c; _f < _g; _f++) { - $k[$j++] = _e; - } - }); - $astore($a($counttomark() - 1)); - $1.bot = $k[--$j]; - $j -= 2; - $k[$j++] = Infinity; - $forall($1.bot, function() { - var _l = $k[--$j]; - $k[$j++] = $f(1 - _l); - }); - $1.sep = $a(); - $puti($1.sep, 0, $a([ 0, 0, 0 ])); - $puti($1.sep, $1.sep.length - 4, $a([ 0, 0, 0, 0 ])); - $k[$j++] = Infinity; - for (var _u = 18, _t = $1.bot.length - 13; _u <= _t; _u += 98) { - $k[$j++] = _u; - } - for (var _x = 69, _w = $1.bot.length - 13; _x <= _w; _x += 98) { - $k[$j++] = _x; - } - var _y = $a(); - for (var _z = 0, _10 = _y.length; _z < _10; _z++) { - $k[$j++] = $get(_y, _z); - $1.sepfinder(); - } - $$.rmoveto(0, $1.linheight); - var _17 = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.sep ], [ "pixx", $1.sep.length ], [ "pixy", 1 ], [ "height", 1 / 72 ], [ "width", $1.sep.length / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _17; - $0.renmatrix(); - $$.rmoveto(1, 1); - $k[$j++] = $1.comp; - $k[$j++] = $1.options; - $0["gs1-cc"](); - $0.renmatrix(); - $$.restore(); + $1.fp = $k[--$j]; //#27118 + for (var _N = $1.fp, _M = $f($1.fp + 12); _N <= _M; _N += 1) { //#27131 + $1.i = _N; //#27120 + if ($get($1.bot, $1.i) == 0) { //#27128 + if ($get($1.bot, $1.i - 1) == 1) { //#27125 + $k[$j++] = 1; //#27123 + } else { //#27125 + var _X = ($get($1.sep, $1.i - 1) == 0) ? 1 : 0; //#27125 + $k[$j++] = _X; //#27125 + } //#27125 + } else { //#27128 + $k[$j++] = 0; //#27128 + } //#27128 + $put($1.sep, $1.i, $k[--$j]); //#27130 + } //#27130 + }; //#27132 + $k[$j++] = Infinity; //#27133 + $k[$j++] = 0; //#27134 + $forall($1.linsbs, function() { //#27134 + var _c = $k[--$j]; //#27134 + var _d = $k[--$j]; //#27134 + var _e = (_d == 1) ? 0 : 1; //#27134 + $k[$j++] = _d; //#27134 + for (var _f = 0, _g = _c; _f < _g; _f++) { //#27134 + $k[$j++] = _e //#27134 + } //#27134 + }); //#27134 + $astore($a($counttomark() - 1)); //#27135 + $1.bot = $k[--$j]; //#27135 + $j -= 2; //#27135 + $k[$j++] = Infinity; //#27136 + $forall($1.bot, function() { //#27136 + var _l = $k[--$j]; //#27136 + $k[$j++] = $f(1 - _l); //#27136 + }); //#27136 + $1.sep = $a(); //#27136 + $puti($1.sep, 0, $a([0, 0, 0])); //#27137 + $puti($1.sep, $1.sep.length - 4, $a([0, 0, 0, 0])); //#27138 + $k[$j++] = Infinity; //#27141 + for (var _u = 18, _t = $1.bot.length - 13; _u <= _t; _u += 98) { //#27140 + $k[$j++] = _u; //#27140 + } //#27140 + for (var _x = 69, _w = $1.bot.length - 13; _x <= _w; _x += 98) { //#27141 + $k[$j++] = _x; //#27141 + } //#27141 + var _y = $a(); //#27141 + for (var _z = 0, _10 = _y.length; _z < _10; _z++) { //#27142 + $k[$j++] = $get(_y, _z); //#27142 + $1.sepfinder(); //#27142 + } //#27142 + $$.rmoveto(0, $1.linheight); //#27143 + var _17 = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.sep], + ["pixx", $1.sep.length], + ["pixy", 1], + ["height", 1 / 72], + ["width", $1.sep.length / 72], + ["opt", $1.options] + ]); //#27150 + $k[$j++] = _17; //#27151 + $0.renmatrix(); //#27151 + $$.rmoveto(1, 1); //#27154 + $k[$j++] = $1.comp; //#27154 + $k[$j++] = $1.options; //#27154 + $0["gs1-cc"](); //#27154 + $0.renmatrix(); //#27154 + $$.restore(); //#27156 }; $0.databarexpandedstackedcomposite = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $search($1.barcode, "|"); - if ($k[--$j]) { - $1.linear = $k[--$j]; - $j--; - $1.comp = $k[--$j]; - } else { - $j--; - } - $$.save(); - $put($1.options, "lintype", "databarexpandedstacked"); - $put($1.options, "linkage", true); - $put($1.options, "inkspread", "0"); - $put($1.options, "dontdraw", true); - $k[$j++] = $1.linear; - $k[$j++] = $1.options; - $0.databarexpandedstacked(); - var _F = $k[--$j]; - $1.bot = $geti($get(_F, "pixs"), 0, $get(_F, "pixx")); - $1.linheight = $get(_F, "pixy"); - $k[$j++] = _F; - $0.renmatrix(); + var $1 = {}; //#27187 + $1.options = $k[--$j]; //#27189 + $1.barcode = $k[--$j]; //#27190 + $1.dontdraw = false; //#27192 + $forall($1.options, function() { //#27203 + var _3 = $k[--$j]; //#27203 + $1[$k[--$j]] = _3; //#27203 + }); //#27203 + $search($1.barcode, "|"); //#27206 + if ($k[--$j]) { //#27211 + $1.linear = $k[--$j]; //#27207 + $j--; //#27208 + $1.comp = $k[--$j]; //#27209 + } else { //#27211 + $j--; //#27211 + } //#27211 + $$.save(); //#27214 + $put($1.options, "lintype", "databarexpandedstacked"); //#27216 + $put($1.options, "linkage", true); //#27217 + $put($1.options, "inkspread", "0"); //#27218 + $put($1.options, "dontdraw", true); //#27219 + $k[$j++] = $1.linear; //#27222 + $k[$j++] = $1.options; //#27222 + $0.databarexpandedstacked(); //#27222 + var _F = $k[--$j]; //#27223 + $1.bot = $geti($get(_F, "pixs"), 0, $get(_F, "pixx")); //#27223 + $1.linheight = $get(_F, "pixy"); //#27224 + $k[$j++] = _F; //#27225 + $0.renmatrix(); //#27225 $1.sepfinder = function() { - $1.fp = $k[--$j]; - for (var _O = $1.fp, _N = $f($1.fp + 12); _O <= _N; _O += 1) { - $1.i = _O; - if ($get($1.bot, $1.i) == 0) { - if ($get($1.bot, $1.i - 1) == 1) { - $k[$j++] = 1; - } else { - var _Y = $get($1.sep, $1.i - 1) == 0 ? 1 : 0; - $k[$j++] = _Y; - } - } else { - $k[$j++] = 0; - } - $put($1.sep, $1.i, $k[--$j]); - } - }; - $k[$j++] = Infinity; - var _c = $1.bot; - for (var _d = 0, _e = _c.length; _d < _e; _d++) { - $k[$j++] = $f(1 - $get(_c, _d)); - } - $1.sep = $a(); - $puti($1.sep, 0, $a([ 0, 0, 0, 0 ])); - $puti($1.sep, $1.sep.length - 4, $a([ 0, 0, 0, 0 ])); - $k[$j++] = Infinity; - for (var _o = 19, _n = $1.bot.length - 13; _o <= _n; _o += 98) { - $k[$j++] = _o; - } - for (var _r = 70, _q = $1.bot.length - 13; _r <= _q; _r += 98) { - $k[$j++] = _r; - } - var _s = $a(); - for (var _t = 0, _u = _s.length; _t < _u; _t++) { - $k[$j++] = $get(_s, _t); - $1.sepfinder(); - } - $$.rmoveto(0, $1.linheight); - var _11 = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.sep ], [ "pixx", $1.sep.length ], [ "pixy", 1 ], [ "height", 1 / 72 ], [ "width", $1.sep.length / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _11; - $0.renmatrix(); - var _14 = $get($1.bot, 0) == 0 ? 2 : 0; - $$.rmoveto(_14, 1); - $k[$j++] = $1.comp; - $k[$j++] = $1.options; - $0["gs1-cc"](); - $0.renmatrix(); - $$.restore(); + $1.fp = $k[--$j]; //#27229 + for (var _O = $1.fp, _N = $f($1.fp + 12); _O <= _N; _O += 1) { //#27242 + $1.i = _O; //#27231 + if ($get($1.bot, $1.i) == 0) { //#27239 + if ($get($1.bot, $1.i - 1) == 1) { //#27236 + $k[$j++] = 1; //#27234 + } else { //#27236 + var _Y = ($get($1.sep, $1.i - 1) == 0) ? 1 : 0; //#27236 + $k[$j++] = _Y; //#27236 + } //#27236 + } else { //#27239 + $k[$j++] = 0; //#27239 + } //#27239 + $put($1.sep, $1.i, $k[--$j]); //#27241 + } //#27241 + }; //#27243 + $k[$j++] = Infinity; //#27244 + var _c = $1.bot; //#27244 + for (var _d = 0, _e = _c.length; _d < _e; _d++) { //#27244 + $k[$j++] = $f(1 - $get(_c, _d)); //#27244 + } //#27244 + $1.sep = $a(); //#27244 + $puti($1.sep, 0, $a([0, 0, 0, 0])); //#27245 + $puti($1.sep, $1.sep.length - 4, $a([0, 0, 0, 0])); //#27246 + $k[$j++] = Infinity; //#27249 + for (var _o = 19, _n = $1.bot.length - 13; _o <= _n; _o += 98) { //#27248 + $k[$j++] = _o; //#27248 + } //#27248 + for (var _r = 70, _q = $1.bot.length - 13; _r <= _q; _r += 98) { //#27249 + $k[$j++] = _r; //#27249 + } //#27249 + var _s = $a(); //#27249 + for (var _t = 0, _u = _s.length; _t < _u; _t++) { //#27250 + $k[$j++] = $get(_s, _t); //#27250 + $1.sepfinder(); //#27250 + } //#27250 + $$.rmoveto(0, $1.linheight); //#27251 + var _11 = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.sep], + ["pixx", $1.sep.length], + ["pixy", 1], + ["height", 1 / 72], + ["width", $1.sep.length / 72], + ["opt", $1.options] + ]); //#27258 + $k[$j++] = _11; //#27259 + $0.renmatrix(); //#27259 + var _14 = ($get($1.bot, 0) == 0) ? 2 : 0; //#27262 + $$.rmoveto(_14, 1); //#27262 + $k[$j++] = $1.comp; //#27263 + $k[$j++] = $1.options; //#27263 + $0["gs1-cc"](); //#27263 + $0.renmatrix(); //#27263 + $$.restore(); //#27265 }; - $0["gs1-128composite"] = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $search($1.barcode, "|"); - if ($k[--$j]) { - $1.linear = $k[--$j]; - $j--; - $1.comp = $k[--$j]; - } else { - $j--; - } - $$.save(); - $put($1.options, "inkspread", "0"); - $put($1.options, "dontdraw", true); - $put($1.options, "linkagea", true); - $k[$j++] = $1.linear; - $k[$j++] = Infinity; - $forall($1.options); - var _E = $d(); - $k[$j++] = _E; - $0["gs1-128"](); - var _G = $get($k[--$j], "sbs"); - $k[$j++] = 0; - $forall(_G, function() { - var _H = $k[--$j]; - var _I = $k[--$j]; - $k[$j++] = $f(_I + _H); - }); - $1.linwidth = $k[--$j]; - $put($1.options, "lintype", "gs1-128"); - $put($1.options, "linwidth", $1.linwidth); - $k[$j++] = $1.comp; - $k[$j++] = $1.options; - $0["gs1-cc"](); - $1.compsym = $k[--$j]; - if ($get($1.compsym, "pixx") == 99) { - $k[$j++] = "a"; - } else { - $k[$j++] = "c"; - } - $1.linktype = $k[--$j]; - if ($eq($1.linktype, "a")) { - $put($1.options, "linkagea", true); - $put($1.options, "linkagec", false); - } else { - $put($1.options, "linkagea", false); - $put($1.options, "linkagec", true); - } - $k[$j++] = $1.linear; - $k[$j++] = Infinity; - $forall($1.options); - var _a = $d(); - $k[$j++] = _a; - $0["gs1-128"](); - var _b = $k[--$j]; - $1.linsbs = $get(_b, "sbs"); - $1.linheight = $get($get(_b, "bhs"), 0) * 72; - $k[$j++] = _b; - $0.renlinear(); - $k[$j++] = Infinity; - $k[$j++] = 1; - $forall($1.linsbs, function() { - var _g = $k[--$j]; - var _h = $k[--$j]; - var _i = _h == 0 ? 1 : 0; - $k[$j++] = _h; - for (var _j = 0, _k = _g; _j < _k; _j++) { - $k[$j++] = _i; - } - }); - $astore($a($counttomark() - 1)); - $1.sep = $k[--$j]; - $j -= 2; - $$.rmoveto(0, $1.linheight); - var _t = new Map([ [ "ren", $0.renmatrix ], [ "pixs", $1.sep ], [ "pixx", $1.sep.length ], [ "pixy", 1 ], [ "height", 1 / 72 ], [ "width", $1.sep.length / 72 ], [ "opt", $1.options ] ]); - $k[$j++] = _t; - $0.renmatrix(); - if ($eq($1.linktype, "a")) { - $1.s = ~~($f($1.linwidth - 2) / 11); - $1.p = ~~(($1.s - 9) / 2); - $k[$j++] = "x"; - $k[$j++] = ($1.s - $1.p - 1) * 11 + 10; - if ($1.p == 0) { - var _10 = $k[--$j]; - $k[$j++] = $f(_10 + 2); - } - var _11 = $k[--$j]; - $1[$k[--$j]] = $f(_11 - 99); - $$.rmoveto($1.x, 1); - } else { - $$.rmoveto(-7, 1); - } - $k[$j++] = $1.compsym; - $0.renmatrix(); - $$.restore(); + $0['gs1-128composite'] = function() { + var $1 = {}; //#27297 + $1.options = $k[--$j]; //#27299 + $1.barcode = $k[--$j]; //#27300 + $1.dontdraw = false; //#27302 + $forall($1.options, function() { //#27313 + var _3 = $k[--$j]; //#27313 + $1[$k[--$j]] = _3; //#27313 + }); //#27313 + $search($1.barcode, "|"); //#27316 + if ($k[--$j]) { //#27321 + $1.linear = $k[--$j]; //#27317 + $j--; //#27318 + $1.comp = $k[--$j]; //#27319 + } else { //#27321 + $j--; //#27321 + } //#27321 + $$.save(); //#27324 + $put($1.options, "inkspread", "0"); //#27326 + $put($1.options, "dontdraw", true); //#27327 + $put($1.options, "linkagea", true); //#27330 + $k[$j++] = $1.linear; //#27331 + $k[$j++] = Infinity; //#27331 + $forall($1.options); //#27331 + var _E = $d(); //#27331 + $k[$j++] = _E; //#27331 + $0["gs1-128"](); //#27331 + var _G = $get($k[--$j], "sbs"); //#27332 + $k[$j++] = 0; //#27332 + $forall(_G, function() { //#27332 + var _H = $k[--$j]; //#27332 + var _I = $k[--$j]; //#27332 + $k[$j++] = $f(_I + _H); //#27332 + }); //#27332 + $1.linwidth = $k[--$j]; //#27332 + $put($1.options, "lintype", "gs1-128"); //#27335 + $put($1.options, "linwidth", $1.linwidth); //#27336 + $k[$j++] = $1.comp; //#27337 + $k[$j++] = $1.options; //#27337 + $0["gs1-cc"](); //#27337 + $1.compsym = $k[--$j]; //#27337 + if ($get($1.compsym, "pixx") == 99) { //#27338 + $k[$j++] = "a"; //#27338 + } else { //#27338 + $k[$j++] = "c"; //#27338 + } //#27338 + $1.linktype = $k[--$j]; //#27338 + if ($eq($1.linktype, "a")) { //#27346 + $put($1.options, "linkagea", true); //#27342 + $put($1.options, "linkagec", false); //#27343 + } else { //#27346 + $put($1.options, "linkagea", false); //#27345 + $put($1.options, "linkagec", true); //#27346 + } //#27346 + $k[$j++] = $1.linear; //#27348 + $k[$j++] = Infinity; //#27348 + $forall($1.options); //#27348 + var _a = $d(); //#27348 + $k[$j++] = _a; //#27348 + $0["gs1-128"](); //#27348 + var _b = $k[--$j]; //#27349 + $1.linsbs = $get(_b, "sbs"); //#27349 + $1.linheight = $get($get(_b, "bhs"), 0) * 72; //#27350 + $k[$j++] = _b; //#27351 + $0.renlinear(); //#27351 + $k[$j++] = Infinity; //#27354 + $k[$j++] = 1; //#27355 + $forall($1.linsbs, function() { //#27355 + var _g = $k[--$j]; //#27355 + var _h = $k[--$j]; //#27355 + var _i = (_h == 0) ? 1 : 0; //#27355 + $k[$j++] = _h; //#27355 + for (var _j = 0, _k = _g; _j < _k; _j++) { //#27355 + $k[$j++] = _i //#27355 + } //#27355 + }); //#27355 + $astore($a($counttomark() - 1)); //#27356 + $1.sep = $k[--$j]; //#27356 + $j -= 2; //#27356 + $$.rmoveto(0, $1.linheight); //#27357 + var _t = new Map([ + ["ren", $0.renmatrix], + ["pixs", $1.sep], + ["pixx", $1.sep.length], + ["pixy", 1], + ["height", 1 / 72], + ["width", $1.sep.length / 72], + ["opt", $1.options] + ]); //#27364 + $k[$j++] = _t; //#27365 + $0.renmatrix(); //#27365 + if ($eq($1.linktype, "a")) { //#27374 + $1.s = ~~($f($1.linwidth - 2) / 11); //#27369 + $1.p = ~~(($1.s - 9) / 2); //#27370 + $k[$j++] = 'x'; //#27371 + $k[$j++] = ((($1.s - $1.p) - 1) * 11) + 10; //#27371 + if ($1.p == 0) { //#27371 + var _10 = $k[--$j]; //#27371 + $k[$j++] = $f(_10 + 2); //#27371 + } //#27371 + var _11 = $k[--$j]; //#27371 + $1[$k[--$j]] = $f(_11 - 99); //#27371 + $$.rmoveto($1.x, 1); //#27372 + } else { //#27374 + $$.rmoveto(-7, 1); //#27374 + } //#27374 + $k[$j++] = $1.compsym; //#27377 + $0.renmatrix(); //#27377 + $$.restore(); //#27379 }; $0.gs1datamatrix = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.parse = false; - $1.dontlint = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); + var $1 = {}; //#27411 + $1.options = $k[--$j]; //#27413 + $1.barcode = $k[--$j]; //#27414 + $1.dontdraw = false; //#27416 + $1.parse = false; //#27417 + $1.dontlint = false; //#27418 + $forall($1.options, function() { //#27429 + var _3 = $k[--$j]; //#27429 + $1[$k[--$j]] = _3; //#27429 + }); //#27429 $1.expand = function() { - var _6 = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _6; - $k[$j++] = $1.fncvals; - $0.parseinput(); - }; - $1.ais = $a([]); - $1.vals = $a([]); - var _A = $1.barcode; - $k[$j++] = $geti(_A, 1, _A.length - 1); - for (;;) { - var _C = $k[--$j]; - $k[$j++] = _C; - if ($eq(_C, "")) { - break; - } - $search($k[--$j], ")"); - $j--; - var _E = $k[--$j]; - var _F = $k[--$j]; - $k[$j++] = _E; - $k[$j++] = _F; - $j--; - var _G = $k[--$j]; - var _H = $k[--$j]; - $k[$j++] = _G; - $search(_H, "("); - if ($k[--$j]) { - var _J = $k[--$j]; - var _K = $k[--$j]; - $k[$j++] = _J; - $k[$j++] = _K; - $j--; - var _L = $k[--$j]; - var _M = $k[--$j]; - var _N = $k[--$j]; - $k[$j++] = _M; - $k[$j++] = _N; - $k[$j++] = _L; - } else { - var _O = $k[--$j]; - var _P = $k[--$j]; - $k[$j++] = ""; - $k[$j++] = _P; - $k[$j++] = _O; - } - $k[$j++] = Infinity; - $aload($1.ais); - var _S = $k[$j - 1 - ($counttomark() + 2)]; - $k[$j++] = _S; - $1.ais = $a(); - $k[$j++] = Infinity; - $aload($1.vals); - var _W = $k[$j - 1 - ($counttomark() + 1)]; - $k[$j++] = _W; - $1.expand(); - $1.vals = $a(); - $j -= 2; - } - $j--; - if (!$1.dontlint) { - $k[$j++] = $1.ais; - $k[$j++] = $1.vals; - $0.gs1lint(); - $j--; - } - $1.aifixed = new Map(); - $k[$j++] = Infinity; - for (var _b = 0; _b <= 4; _b += 1) { - $k[$j++] = _b; - } - var _c = $a(); - for (var _d = 0, _e = _c.length; _d < _e; _d++) { - var _h = $strcpy($s(2), "00"); - $put(_h, 1, $f($get(_c, _d) + 48)); - $put($1.aifixed, _h, _h); - } - $k[$j++] = Infinity; - for (var _j = 11; _j <= 20; _j += 1) { - $k[$j++] = _j; - } - $k[$j++] = 23; - for (var _k = 31; _k <= 36; _k += 1) { - $k[$j++] = _k; - } - $k[$j++] = 41; - var _l = $a(); - for (var _m = 0, _n = _l.length; _m < _n; _m++) { - var _q = $cvrs($s(2), $get(_l, _m), 10); - $put($1.aifixed, _q, _q); - } - $1.fnc1 = -1; - $1.dmtx = $a([ $1.fnc1 ]); - for (var _w = 0, _v = $1.ais.length - 1; _w <= _v; _w += 1) { - $1.i = _w; - $1.ai = $get($1.ais, $1.i); - $1.val = $get($1.vals, $1.i); - var _16 = $a($1.dmtx.length + $1.ai.length + $1.val.length); - $puti(_16, 0, $1.dmtx); - $k[$j++] = _16; - $k[$j++] = _16; - $k[$j++] = $1.dmtx.length; - $k[$j++] = Infinity; - var _1B = $1.ai; - $forall(_1B); - var _1C = $a(); - var _1D = $k[--$j]; - $puti($k[--$j], _1D, _1C); - var _1F = $k[--$j]; - $k[$j++] = _1F; - $k[$j++] = _1F; - $k[$j++] = $1.dmtx.length + $1.ai.length; - $k[$j++] = Infinity; - var _1K = $1.val; - $forall(_1K); - var _1L = $a(); - var _1M = $k[--$j]; - $puti($k[--$j], _1M, _1L); - $1.dmtx = $k[--$j]; - var _1U = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; - if ($1.i != $1.ais.length - 1 && !_1U) { - var _1W = $a($1.dmtx.length + 1); - $puti(_1W, 0, $1.dmtx); - $put(_1W, $1.dmtx.length, $1.fnc1); - $1.dmtx = _1W; - } - } - $1.barcode = $s(($1.dmtx.length + 1) * 5); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.dmtx.length) { - break; - } - var _1g = $get($1.dmtx, $1.i); - $k[$j++] = _1g; - if (_1g == $1.fnc1) { - $j--; - $puti($1.barcode, $1.j, "^FNC1"); - $1.j = $1.j + 4; - } else { - $put($1.barcode, $1.j, $k[--$j]); - } - $1.i = $1.i + 1; - $1.j = $1.j + 1; - } - $1.barcode = $geti($1.barcode, 0, $1.j); - delete $1.options["parse"]; - $put($1.options, "dontdraw", true); - $put($1.options, "parsefnc", true); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.datamatrix(); - var _1y = $k[--$j]; - $1[$k[--$j]] = _1y; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var _6 = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#27436 + $1.fncvals = _6; //#27437 + $k[$j++] = $1.fncvals; //#27438 + $0.parseinput(); //#27438 + }; //#27439 + $1.ais = $a([]); //#27442 + $1.vals = $a([]); //#27443 + var _A = $1.barcode; //#27444 + $k[$j++] = $geti(_A, 1, _A.length - 1); //#27457 + for (;;) { //#27457 + var _C = $k[--$j]; //#27446 + $k[$j++] = _C; //#27446 + if ($eq(_C, "")) { //#27446 + break; //#27446 + } //#27446 + $search($k[--$j], ")"); //#27447 + $j--; //#27447 + var _E = $k[--$j]; //#27448 + var _F = $k[--$j]; //#27448 + $k[$j++] = _E; //#27448 + $k[$j++] = _F; //#27448 + $j--; //#27448 + var _G = $k[--$j]; //#27449 + var _H = $k[--$j]; //#27449 + $k[$j++] = _G; //#27449 + $search(_H, "("); //#27449 + if ($k[--$j]) { //#27452 + var _J = $k[--$j]; //#27450 + var _K = $k[--$j]; //#27450 + $k[$j++] = _J; //#27450 + $k[$j++] = _K; //#27450 + $j--; //#27450 + var _L = $k[--$j]; //#27450 + var _M = $k[--$j]; //#27450 + var _N = $k[--$j]; //#27450 + $k[$j++] = _M; //#27450 + $k[$j++] = _N; //#27450 + $k[$j++] = _L; //#27450 + } else { //#27452 + var _O = $k[--$j]; //#27452 + var _P = $k[--$j]; //#27452 + $k[$j++] = ""; //#27452 + $k[$j++] = _P; //#27452 + $k[$j++] = _O; //#27452 + } //#27452 + $k[$j++] = Infinity; //#27454 + $aload($1.ais); //#27454 + var _S = $k[$j - 1 - ($counttomark() + 2)]; //#27454 + $k[$j++] = _S; //#27454 + $1.ais = $a(); //#27454 + $k[$j++] = Infinity; //#27455 + $aload($1.vals); //#27455 + var _W = $k[$j - 1 - ($counttomark() + 1)]; //#27455 + $k[$j++] = _W; //#27455 + $1.expand(); //#27455 + $1.vals = $a(); //#27455 + $j -= 2; //#27456 + } //#27456 + $j--; //#27458 + if (!$1.dontlint) { //#27460 + $k[$j++] = $1.ais; //#27460 + $k[$j++] = $1.vals; //#27460 + $0.gs1lint(); //#27460 + $j--; //#27460 + } //#27460 + $1.aifixed = new Map; //#27465 + $k[$j++] = Infinity; //#27467 + for (var _b = 0; _b <= 4; _b += 1) { //#27467 + $k[$j++] = _b; //#27467 + } //#27467 + var _c = $a(); //#27467 + for (var _d = 0, _e = _c.length; _d < _e; _d++) { //#27470 + var _h = $strcpy($s(2), "00"); //#27469 + $put(_h, 1, $f($get(_c, _d) + 48)); //#27469 + $put($1.aifixed, _h, _h); //#27469 + } //#27469 + $k[$j++] = Infinity; //#27475 + for (var _j = 11; _j <= 20; _j += 1) { //#27472 + $k[$j++] = _j; //#27472 + } //#27472 + $k[$j++] = 23; //#27474 + for (var _k = 31; _k <= 36; _k += 1) { //#27474 + $k[$j++] = _k; //#27474 + } //#27474 + $k[$j++] = 41; //#27475 + var _l = $a(); //#27475 + for (var _m = 0, _n = _l.length; _m < _n; _m++) { //#27478 + var _q = $cvrs($s(2), $get(_l, _m), 10); //#27477 + $put($1.aifixed, _q, _q); //#27477 + } //#27477 + $1.fnc1 = -1; //#27481 + $1.dmtx = $a([$1.fnc1]); //#27482 + for (var _w = 0, _v = $1.ais.length - 1; _w <= _v; _w += 1) { //#27498 + $1.i = _w; //#27484 + $1.ai = $get($1.ais, $1.i); //#27485 + $1.val = $get($1.vals, $1.i); //#27486 + var _16 = $a(($1.dmtx.length + $1.ai.length) + $1.val.length); //#27487 + $puti(_16, 0, $1.dmtx); //#27488 + $k[$j++] = _16; //#27489 + $k[$j++] = _16; //#27489 + $k[$j++] = $1.dmtx.length; //#27489 + $k[$j++] = $1.ai; //#27489 + $k[$j++] = Infinity; //#27489 + var _1A = $k[--$j]; //#27489 + var _1B = $k[--$j]; //#27489 + $k[$j++] = _1A; //#27489 + $forall(_1B); //#27489 + var _1C = $a(); //#27489 + var _1D = $k[--$j]; //#27489 + $puti($k[--$j], _1D, _1C); //#27489 + var _1F = $k[--$j]; //#27490 + $k[$j++] = _1F; //#27490 + $k[$j++] = _1F; //#27490 + $k[$j++] = $1.dmtx.length + $1.ai.length; //#27490 + $k[$j++] = $1.val; //#27490 + $k[$j++] = Infinity; //#27490 + var _1J = $k[--$j]; //#27490 + var _1K = $k[--$j]; //#27490 + $k[$j++] = _1J; //#27490 + $forall(_1K); //#27490 + var _1L = $a(); //#27490 + var _1M = $k[--$j]; //#27490 + $puti($k[--$j], _1M, _1L); //#27490 + $1.dmtx = $k[--$j]; //#27491 + var _1U = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; //#27492 + if (($1.i != ($1.ais.length - 1)) && (!_1U)) { //#27497 + var _1W = $a($1.dmtx.length + 1); //#27493 + $puti(_1W, 0, $1.dmtx); //#27494 + $put(_1W, $1.dmtx.length, $1.fnc1); //#27495 + $1.dmtx = _1W; //#27496 + } //#27496 + } //#27496 + $1.barcode = $s(($1.dmtx.length + 1) * 5); //#27501 + $1.i = 0; //#27502 + $1.j = 0; //#27502 + for (;;) { //#27512 + if ($1.i == $1.dmtx.length) { //#27503 + break; //#27503 + } //#27503 + var _1g = $get($1.dmtx, $1.i); //#27504 + $k[$j++] = _1g; //#27509 + if (_1g == $1.fnc1) { //#27508 + $j--; //#27505 + $puti($1.barcode, $1.j, "^FNC1"); //#27505 + $1.j = $1.j + 4; //#27506 + } else { //#27508 + $put($1.barcode, $1.j, $k[--$j]); //#27508 + } //#27508 + $1.i = $1.i + 1; //#27510 + $1.j = $1.j + 1; //#27511 + } //#27511 + $1.barcode = $geti($1.barcode, 0, $1.j); //#27513 + delete $1.options["parse"]; //#27516 + $put($1.options, "dontdraw", true); //#27517 + $put($1.options, "parsefnc", true); //#27518 + $k[$j++] = 'args'; //#27519 + $k[$j++] = $1.barcode; //#27519 + $k[$j++] = $1.options; //#27519 + $0.datamatrix(); //#27519 + var _1y = $k[--$j]; //#27519 + $1[$k[--$j]] = _1y; //#27519 + $put($1.args, "opt", $1.options); //#27521 + $k[$j++] = $1.args; //#27524 + if (!$1.dontdraw) { //#27524 + $0.renmatrix(); //#27524 + } //#27524 }; $0.gs1datamatrixrectangular = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.parse = false; - $1.dontlint = false; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); + var $1 = {}; //#27556 + $1.options = $k[--$j]; //#27558 + $1.barcode = $k[--$j]; //#27559 + $1.parse = false; //#27561 + $1.dontlint = false; //#27562 + $1.dontdraw = false; //#27563 + $forall($1.options, function() { //#27574 + var _3 = $k[--$j]; //#27574 + $1[$k[--$j]] = _3; //#27574 + }); //#27574 $1.expand = function() { - var _6 = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _6; - $k[$j++] = $1.fncvals; - $0.parseinput(); - }; - $1.ais = $a([]); - $1.vals = $a([]); - var _A = $1.barcode; - $k[$j++] = $geti(_A, 1, _A.length - 1); - for (;;) { - var _C = $k[--$j]; - $k[$j++] = _C; - if ($eq(_C, "")) { - break; - } - $search($k[--$j], ")"); - $j--; - var _E = $k[--$j]; - var _F = $k[--$j]; - $k[$j++] = _E; - $k[$j++] = _F; - $j--; - var _G = $k[--$j]; - var _H = $k[--$j]; - $k[$j++] = _G; - $search(_H, "("); - if ($k[--$j]) { - var _J = $k[--$j]; - var _K = $k[--$j]; - $k[$j++] = _J; - $k[$j++] = _K; - $j--; - var _L = $k[--$j]; - var _M = $k[--$j]; - var _N = $k[--$j]; - $k[$j++] = _M; - $k[$j++] = _N; - $k[$j++] = _L; - } else { - var _O = $k[--$j]; - var _P = $k[--$j]; - $k[$j++] = ""; - $k[$j++] = _P; - $k[$j++] = _O; - } - $k[$j++] = Infinity; - $aload($1.ais); - var _S = $k[$j - 1 - ($counttomark() + 2)]; - $k[$j++] = _S; - $1.ais = $a(); - $k[$j++] = Infinity; - $aload($1.vals); - var _W = $k[$j - 1 - ($counttomark() + 1)]; - $k[$j++] = _W; - $1.expand(); - $1.vals = $a(); - $j -= 2; - } - $j--; - if (!$1.dontlint) { - $k[$j++] = $1.ais; - $k[$j++] = $1.vals; - $0.gs1lint(); - $j--; - } - $1.aifixed = new Map(); - $k[$j++] = Infinity; - for (var _b = 0; _b <= 4; _b += 1) { - $k[$j++] = _b; - } - var _c = $a(); - for (var _d = 0, _e = _c.length; _d < _e; _d++) { - var _h = $strcpy($s(2), "00"); - $put(_h, 1, $f($get(_c, _d) + 48)); - $put($1.aifixed, _h, _h); - } - $k[$j++] = Infinity; - for (var _j = 11; _j <= 20; _j += 1) { - $k[$j++] = _j; - } - $k[$j++] = 23; - for (var _k = 31; _k <= 36; _k += 1) { - $k[$j++] = _k; - } - $k[$j++] = 41; - var _l = $a(); - for (var _m = 0, _n = _l.length; _m < _n; _m++) { - var _q = $cvrs($s(2), $get(_l, _m), 10); - $put($1.aifixed, _q, _q); - } - $1.fnc1 = -1; - $1.dmtx = $a([ $1.fnc1 ]); - for (var _w = 0, _v = $1.ais.length - 1; _w <= _v; _w += 1) { - $1.i = _w; - $1.ai = $get($1.ais, $1.i); - $1.val = $get($1.vals, $1.i); - var _16 = $a($1.dmtx.length + $1.ai.length + $1.val.length); - $puti(_16, 0, $1.dmtx); - $k[$j++] = _16; - $k[$j++] = _16; - $k[$j++] = $1.dmtx.length; - $k[$j++] = Infinity; - var _1B = $1.ai; - $forall(_1B); - var _1C = $a(); - var _1D = $k[--$j]; - $puti($k[--$j], _1D, _1C); - var _1F = $k[--$j]; - $k[$j++] = _1F; - $k[$j++] = _1F; - $k[$j++] = $1.dmtx.length + $1.ai.length; - $k[$j++] = Infinity; - var _1K = $1.val; - $forall(_1K); - var _1L = $a(); - var _1M = $k[--$j]; - $puti($k[--$j], _1M, _1L); - $1.dmtx = $k[--$j]; - var _1U = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; - if ($1.i != $1.ais.length - 1 && !_1U) { - var _1W = $a($1.dmtx.length + 1); - $puti(_1W, 0, $1.dmtx); - $put(_1W, $1.dmtx.length, $1.fnc1); - $1.dmtx = _1W; - } - } - $1.barcode = $s(($1.dmtx.length + 1) * 5); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.dmtx.length) { - break; - } - var _1g = $get($1.dmtx, $1.i); - $k[$j++] = _1g; - if (_1g == $1.fnc1) { - $j--; - $puti($1.barcode, $1.j, "^FNC1"); - $1.j = $1.j + 4; - } else { - $put($1.barcode, $1.j, $k[--$j]); - } - $1.i = $1.i + 1; - $1.j = $1.j + 1; - } - $1.barcode = $geti($1.barcode, 0, $1.j); - delete $1.options["parse"]; - $put($1.options, "dontdraw", true); - $put($1.options, "parsefnc", true); - $put($1.options, "format", "rectangle"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.datamatrix(); - var _1z = $k[--$j]; - $1[$k[--$j]] = _1z; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var _6 = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#27581 + $1.fncvals = _6; //#27582 + $k[$j++] = $1.fncvals; //#27583 + $0.parseinput(); //#27583 + }; //#27584 + $1.ais = $a([]); //#27587 + $1.vals = $a([]); //#27588 + var _A = $1.barcode; //#27589 + $k[$j++] = $geti(_A, 1, _A.length - 1); //#27602 + for (;;) { //#27602 + var _C = $k[--$j]; //#27591 + $k[$j++] = _C; //#27591 + if ($eq(_C, "")) { //#27591 + break; //#27591 + } //#27591 + $search($k[--$j], ")"); //#27592 + $j--; //#27592 + var _E = $k[--$j]; //#27593 + var _F = $k[--$j]; //#27593 + $k[$j++] = _E; //#27593 + $k[$j++] = _F; //#27593 + $j--; //#27593 + var _G = $k[--$j]; //#27594 + var _H = $k[--$j]; //#27594 + $k[$j++] = _G; //#27594 + $search(_H, "("); //#27594 + if ($k[--$j]) { //#27597 + var _J = $k[--$j]; //#27595 + var _K = $k[--$j]; //#27595 + $k[$j++] = _J; //#27595 + $k[$j++] = _K; //#27595 + $j--; //#27595 + var _L = $k[--$j]; //#27595 + var _M = $k[--$j]; //#27595 + var _N = $k[--$j]; //#27595 + $k[$j++] = _M; //#27595 + $k[$j++] = _N; //#27595 + $k[$j++] = _L; //#27595 + } else { //#27597 + var _O = $k[--$j]; //#27597 + var _P = $k[--$j]; //#27597 + $k[$j++] = ""; //#27597 + $k[$j++] = _P; //#27597 + $k[$j++] = _O; //#27597 + } //#27597 + $k[$j++] = Infinity; //#27599 + $aload($1.ais); //#27599 + var _S = $k[$j - 1 - ($counttomark() + 2)]; //#27599 + $k[$j++] = _S; //#27599 + $1.ais = $a(); //#27599 + $k[$j++] = Infinity; //#27600 + $aload($1.vals); //#27600 + var _W = $k[$j - 1 - ($counttomark() + 1)]; //#27600 + $k[$j++] = _W; //#27600 + $1.expand(); //#27600 + $1.vals = $a(); //#27600 + $j -= 2; //#27601 + } //#27601 + $j--; //#27603 + if (!$1.dontlint) { //#27605 + $k[$j++] = $1.ais; //#27605 + $k[$j++] = $1.vals; //#27605 + $0.gs1lint(); //#27605 + $j--; //#27605 + } //#27605 + $1.aifixed = new Map; //#27610 + $k[$j++] = Infinity; //#27612 + for (var _b = 0; _b <= 4; _b += 1) { //#27612 + $k[$j++] = _b; //#27612 + } //#27612 + var _c = $a(); //#27612 + for (var _d = 0, _e = _c.length; _d < _e; _d++) { //#27615 + var _h = $strcpy($s(2), "00"); //#27614 + $put(_h, 1, $f($get(_c, _d) + 48)); //#27614 + $put($1.aifixed, _h, _h); //#27614 + } //#27614 + $k[$j++] = Infinity; //#27620 + for (var _j = 11; _j <= 20; _j += 1) { //#27617 + $k[$j++] = _j; //#27617 + } //#27617 + $k[$j++] = 23; //#27619 + for (var _k = 31; _k <= 36; _k += 1) { //#27619 + $k[$j++] = _k; //#27619 + } //#27619 + $k[$j++] = 41; //#27620 + var _l = $a(); //#27620 + for (var _m = 0, _n = _l.length; _m < _n; _m++) { //#27623 + var _q = $cvrs($s(2), $get(_l, _m), 10); //#27622 + $put($1.aifixed, _q, _q); //#27622 + } //#27622 + $1.fnc1 = -1; //#27626 + $1.dmtx = $a([$1.fnc1]); //#27627 + for (var _w = 0, _v = $1.ais.length - 1; _w <= _v; _w += 1) { //#27643 + $1.i = _w; //#27629 + $1.ai = $get($1.ais, $1.i); //#27630 + $1.val = $get($1.vals, $1.i); //#27631 + var _16 = $a(($1.dmtx.length + $1.ai.length) + $1.val.length); //#27632 + $puti(_16, 0, $1.dmtx); //#27633 + $k[$j++] = _16; //#27634 + $k[$j++] = _16; //#27634 + $k[$j++] = $1.dmtx.length; //#27634 + $k[$j++] = $1.ai; //#27634 + $k[$j++] = Infinity; //#27634 + var _1A = $k[--$j]; //#27634 + var _1B = $k[--$j]; //#27634 + $k[$j++] = _1A; //#27634 + $forall(_1B); //#27634 + var _1C = $a(); //#27634 + var _1D = $k[--$j]; //#27634 + $puti($k[--$j], _1D, _1C); //#27634 + var _1F = $k[--$j]; //#27635 + $k[$j++] = _1F; //#27635 + $k[$j++] = _1F; //#27635 + $k[$j++] = $1.dmtx.length + $1.ai.length; //#27635 + $k[$j++] = $1.val; //#27635 + $k[$j++] = Infinity; //#27635 + var _1J = $k[--$j]; //#27635 + var _1K = $k[--$j]; //#27635 + $k[$j++] = _1J; //#27635 + $forall(_1K); //#27635 + var _1L = $a(); //#27635 + var _1M = $k[--$j]; //#27635 + $puti($k[--$j], _1M, _1L); //#27635 + $1.dmtx = $k[--$j]; //#27636 + var _1U = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; //#27637 + if (($1.i != ($1.ais.length - 1)) && (!_1U)) { //#27642 + var _1W = $a($1.dmtx.length + 1); //#27638 + $puti(_1W, 0, $1.dmtx); //#27639 + $put(_1W, $1.dmtx.length, $1.fnc1); //#27640 + $1.dmtx = _1W; //#27641 + } //#27641 + } //#27641 + $1.barcode = $s(($1.dmtx.length + 1) * 5); //#27646 + $1.i = 0; //#27647 + $1.j = 0; //#27647 + for (;;) { //#27657 + if ($1.i == $1.dmtx.length) { //#27648 + break; //#27648 + } //#27648 + var _1g = $get($1.dmtx, $1.i); //#27649 + $k[$j++] = _1g; //#27654 + if (_1g == $1.fnc1) { //#27653 + $j--; //#27650 + $puti($1.barcode, $1.j, "^FNC1"); //#27650 + $1.j = $1.j + 4; //#27651 + } else { //#27653 + $put($1.barcode, $1.j, $k[--$j]); //#27653 + } //#27653 + $1.i = $1.i + 1; //#27655 + $1.j = $1.j + 1; //#27656 + } //#27656 + $1.barcode = $geti($1.barcode, 0, $1.j); //#27658 + delete $1.options["parse"]; //#27661 + $put($1.options, "dontdraw", true); //#27662 + $put($1.options, "parsefnc", true); //#27663 + $put($1.options, "format", "rectangle"); //#27664 + $k[$j++] = 'args'; //#27665 + $k[$j++] = $1.barcode; //#27665 + $k[$j++] = $1.options; //#27665 + $0.datamatrix(); //#27665 + var _1z = $k[--$j]; //#27665 + $1[$k[--$j]] = _1z; //#27665 + $put($1.args, "opt", $1.options); //#27667 + $k[$j++] = $1.args; //#27670 + if (!$1.dontdraw) { //#27670 + $0.renmatrix(); //#27670 + } //#27670 }; $0.gs1qrcode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.parse = false; - $1.dontlint = false; - $1.dontdraw = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); + var $1 = {}; //#27701 + $1.options = $k[--$j]; //#27703 + $1.barcode = $k[--$j]; //#27704 + $1.parse = false; //#27706 + $1.dontlint = false; //#27707 + $1.dontdraw = false; //#27708 + $forall($1.options, function() { //#27719 + var _3 = $k[--$j]; //#27719 + $1[$k[--$j]] = _3; //#27719 + }); //#27719 $1.expand = function() { - var _6 = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _6; - $k[$j++] = $1.fncvals; - $0.parseinput(); - }; - $1.ais = $a([]); - $1.vals = $a([]); - var _A = $1.barcode; - $k[$j++] = $geti(_A, 1, _A.length - 1); - for (;;) { - var _C = $k[--$j]; - $k[$j++] = _C; - if ($eq(_C, "")) { - break; - } - $search($k[--$j], ")"); - $j--; - var _E = $k[--$j]; - var _F = $k[--$j]; - $k[$j++] = _E; - $k[$j++] = _F; - $j--; - var _G = $k[--$j]; - var _H = $k[--$j]; - $k[$j++] = _G; - $search(_H, "("); - if ($k[--$j]) { - var _J = $k[--$j]; - var _K = $k[--$j]; - $k[$j++] = _J; - $k[$j++] = _K; - $j--; - var _L = $k[--$j]; - var _M = $k[--$j]; - var _N = $k[--$j]; - $k[$j++] = _M; - $k[$j++] = _N; - $k[$j++] = _L; - } else { - var _O = $k[--$j]; - var _P = $k[--$j]; - $k[$j++] = ""; - $k[$j++] = _P; - $k[$j++] = _O; - } - $k[$j++] = Infinity; - $aload($1.ais); - var _S = $k[$j - 1 - ($counttomark() + 2)]; - $k[$j++] = _S; - $1.ais = $a(); - $k[$j++] = Infinity; - $aload($1.vals); - var _W = $k[$j - 1 - ($counttomark() + 1)]; - $k[$j++] = _W; - $1.expand(); - $1.vals = $a(); - $j -= 2; - } - $j--; - if (!$1.dontlint) { - $k[$j++] = $1.ais; - $k[$j++] = $1.vals; - $0.gs1lint(); - $j--; - } - $1.aifixed = new Map(); - $k[$j++] = Infinity; - for (var _b = 0; _b <= 4; _b += 1) { - $k[$j++] = _b; - } - var _c = $a(); - for (var _d = 0, _e = _c.length; _d < _e; _d++) { - var _h = $strcpy($s(2), "00"); - $put(_h, 1, $f($get(_c, _d) + 48)); - $put($1.aifixed, _h, _h); - } - $k[$j++] = Infinity; - for (var _j = 11; _j <= 20; _j += 1) { - $k[$j++] = _j; - } - $k[$j++] = 23; - for (var _k = 31; _k <= 36; _k += 1) { - $k[$j++] = _k; - } - $k[$j++] = 41; - var _l = $a(); - for (var _m = 0, _n = _l.length; _m < _n; _m++) { - var _q = $cvrs($s(2), $get(_l, _m), 10); - $put($1.aifixed, _q, _q); - } - $1.fnc1 = -1; - $1.qrc = $a([ $1.fnc1 ]); - for (var _w = 0, _v = $1.ais.length - 1; _w <= _v; _w += 1) { - $1.i = _w; - $1.ai = $get($1.ais, $1.i); - $1.val = $get($1.vals, $1.i); - var _16 = $a($1.qrc.length + $1.ai.length + $1.val.length); - $puti(_16, 0, $1.qrc); - $k[$j++] = _16; - $k[$j++] = _16; - $k[$j++] = $1.qrc.length; - $k[$j++] = Infinity; - var _1B = $1.ai; - $forall(_1B); - var _1C = $a(); - var _1D = $k[--$j]; - $puti($k[--$j], _1D, _1C); - var _1F = $k[--$j]; - $k[$j++] = _1F; - $k[$j++] = _1F; - $k[$j++] = $1.qrc.length + $1.ai.length; - $k[$j++] = Infinity; - var _1K = $1.val; - $forall(_1K); - var _1L = $a(); - var _1M = $k[--$j]; - $puti($k[--$j], _1M, _1L); - $1.qrc = $k[--$j]; - var _1U = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; - if ($1.i != $1.ais.length - 1 && !_1U) { - var _1W = $a($1.qrc.length + 1); - $puti(_1W, 0, $1.qrc); - $put(_1W, $1.qrc.length, $1.fnc1); - $1.qrc = _1W; - } - } - $1.barcode = $s(($1.qrc.length + 1) * 5); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.qrc.length) { - break; - } - var _1g = $get($1.qrc, $1.i); - $k[$j++] = _1g; - if (_1g == $1.fnc1) { - $j--; - $puti($1.barcode, $1.j, "^FNC1"); - $1.j = $1.j + 4; - } else { - $put($1.barcode, $1.j, $k[--$j]); - } - $1.i = $1.i + 1; - $1.j = $1.j + 1; - } - $1.barcode = $geti($1.barcode, 0, $1.j); - delete $1.options["parse"]; - $put($1.options, "dontdraw", true); - $put($1.options, "parsefnc", true); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.qrcode(); - var _1y = $k[--$j]; - $1[$k[--$j]] = _1y; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var _6 = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#27726 + $1.fncvals = _6; //#27727 + $k[$j++] = $1.fncvals; //#27728 + $0.parseinput(); //#27728 + }; //#27729 + $1.ais = $a([]); //#27732 + $1.vals = $a([]); //#27733 + var _A = $1.barcode; //#27734 + $k[$j++] = $geti(_A, 1, _A.length - 1); //#27747 + for (;;) { //#27747 + var _C = $k[--$j]; //#27736 + $k[$j++] = _C; //#27736 + if ($eq(_C, "")) { //#27736 + break; //#27736 + } //#27736 + $search($k[--$j], ")"); //#27737 + $j--; //#27737 + var _E = $k[--$j]; //#27738 + var _F = $k[--$j]; //#27738 + $k[$j++] = _E; //#27738 + $k[$j++] = _F; //#27738 + $j--; //#27738 + var _G = $k[--$j]; //#27739 + var _H = $k[--$j]; //#27739 + $k[$j++] = _G; //#27739 + $search(_H, "("); //#27739 + if ($k[--$j]) { //#27742 + var _J = $k[--$j]; //#27740 + var _K = $k[--$j]; //#27740 + $k[$j++] = _J; //#27740 + $k[$j++] = _K; //#27740 + $j--; //#27740 + var _L = $k[--$j]; //#27740 + var _M = $k[--$j]; //#27740 + var _N = $k[--$j]; //#27740 + $k[$j++] = _M; //#27740 + $k[$j++] = _N; //#27740 + $k[$j++] = _L; //#27740 + } else { //#27742 + var _O = $k[--$j]; //#27742 + var _P = $k[--$j]; //#27742 + $k[$j++] = ""; //#27742 + $k[$j++] = _P; //#27742 + $k[$j++] = _O; //#27742 + } //#27742 + $k[$j++] = Infinity; //#27744 + $aload($1.ais); //#27744 + var _S = $k[$j - 1 - ($counttomark() + 2)]; //#27744 + $k[$j++] = _S; //#27744 + $1.ais = $a(); //#27744 + $k[$j++] = Infinity; //#27745 + $aload($1.vals); //#27745 + var _W = $k[$j - 1 - ($counttomark() + 1)]; //#27745 + $k[$j++] = _W; //#27745 + $1.expand(); //#27745 + $1.vals = $a(); //#27745 + $j -= 2; //#27746 + } //#27746 + $j--; //#27748 + if (!$1.dontlint) { //#27750 + $k[$j++] = $1.ais; //#27750 + $k[$j++] = $1.vals; //#27750 + $0.gs1lint(); //#27750 + $j--; //#27750 + } //#27750 + $1.aifixed = new Map; //#27755 + $k[$j++] = Infinity; //#27757 + for (var _b = 0; _b <= 4; _b += 1) { //#27757 + $k[$j++] = _b; //#27757 + } //#27757 + var _c = $a(); //#27757 + for (var _d = 0, _e = _c.length; _d < _e; _d++) { //#27760 + var _h = $strcpy($s(2), "00"); //#27759 + $put(_h, 1, $f($get(_c, _d) + 48)); //#27759 + $put($1.aifixed, _h, _h); //#27759 + } //#27759 + $k[$j++] = Infinity; //#27765 + for (var _j = 11; _j <= 20; _j += 1) { //#27762 + $k[$j++] = _j; //#27762 + } //#27762 + $k[$j++] = 23; //#27764 + for (var _k = 31; _k <= 36; _k += 1) { //#27764 + $k[$j++] = _k; //#27764 + } //#27764 + $k[$j++] = 41; //#27765 + var _l = $a(); //#27765 + for (var _m = 0, _n = _l.length; _m < _n; _m++) { //#27768 + var _q = $cvrs($s(2), $get(_l, _m), 10); //#27767 + $put($1.aifixed, _q, _q); //#27767 + } //#27767 + $1.fnc1 = -1; //#27771 + $1.qrc = $a([$1.fnc1]); //#27772 + for (var _w = 0, _v = $1.ais.length - 1; _w <= _v; _w += 1) { //#27788 + $1.i = _w; //#27774 + $1.ai = $get($1.ais, $1.i); //#27775 + $1.val = $get($1.vals, $1.i); //#27776 + var _16 = $a(($1.qrc.length + $1.ai.length) + $1.val.length); //#27777 + $puti(_16, 0, $1.qrc); //#27778 + $k[$j++] = _16; //#27779 + $k[$j++] = _16; //#27779 + $k[$j++] = $1.qrc.length; //#27779 + $k[$j++] = $1.ai; //#27779 + $k[$j++] = Infinity; //#27779 + var _1A = $k[--$j]; //#27779 + var _1B = $k[--$j]; //#27779 + $k[$j++] = _1A; //#27779 + $forall(_1B); //#27779 + var _1C = $a(); //#27779 + var _1D = $k[--$j]; //#27779 + $puti($k[--$j], _1D, _1C); //#27779 + var _1F = $k[--$j]; //#27780 + $k[$j++] = _1F; //#27780 + $k[$j++] = _1F; //#27780 + $k[$j++] = $1.qrc.length + $1.ai.length; //#27780 + $k[$j++] = $1.val; //#27780 + $k[$j++] = Infinity; //#27780 + var _1J = $k[--$j]; //#27780 + var _1K = $k[--$j]; //#27780 + $k[$j++] = _1J; //#27780 + $forall(_1K); //#27780 + var _1L = $a(); //#27780 + var _1M = $k[--$j]; //#27780 + $puti($k[--$j], _1M, _1L); //#27780 + $1.qrc = $k[--$j]; //#27781 + var _1U = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; //#27782 + if (($1.i != ($1.ais.length - 1)) && (!_1U)) { //#27787 + var _1W = $a($1.qrc.length + 1); //#27783 + $puti(_1W, 0, $1.qrc); //#27784 + $put(_1W, $1.qrc.length, $1.fnc1); //#27785 + $1.qrc = _1W; //#27786 + } //#27786 + } //#27786 + $1.barcode = $s(($1.qrc.length + 1) * 5); //#27791 + $1.i = 0; //#27792 + $1.j = 0; //#27792 + for (;;) { //#27802 + if ($1.i == $1.qrc.length) { //#27793 + break; //#27793 + } //#27793 + var _1g = $get($1.qrc, $1.i); //#27794 + $k[$j++] = _1g; //#27799 + if (_1g == $1.fnc1) { //#27798 + $j--; //#27795 + $puti($1.barcode, $1.j, "^FNC1"); //#27795 + $1.j = $1.j + 4; //#27796 + } else { //#27798 + $put($1.barcode, $1.j, $k[--$j]); //#27798 + } //#27798 + $1.i = $1.i + 1; //#27800 + $1.j = $1.j + 1; //#27801 + } //#27801 + $1.barcode = $geti($1.barcode, 0, $1.j); //#27803 + delete $1.options["parse"]; //#27806 + $put($1.options, "dontdraw", true); //#27807 + $put($1.options, "parsefnc", true); //#27808 + $k[$j++] = 'args'; //#27809 + $k[$j++] = $1.barcode; //#27809 + $k[$j++] = $1.options; //#27809 + $0.qrcode(); //#27809 + var _1y = $k[--$j]; //#27809 + $1[$k[--$j]] = _1y; //#27809 + $put($1.args, "opt", $1.options); //#27811 + $k[$j++] = $1.args; //#27814 + if (!$1.dontdraw) { //#27814 + $0.renmatrix(); //#27814 + } //#27814 }; $0.gs1dotcode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.parse = false; - $1.dontlint = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); + var $1 = {}; //#27846 + $1.options = $k[--$j]; //#27848 + $1.barcode = $k[--$j]; //#27849 + $1.dontdraw = false; //#27851 + $1.parse = false; //#27852 + $1.dontlint = false; //#27853 + $forall($1.options, function() { //#27864 + var _3 = $k[--$j]; //#27864 + $1[$k[--$j]] = _3; //#27864 + }); //#27864 $1.expand = function() { - var _6 = new Map([ [ "parse", $1.parse ], [ "parseonly", true ], [ "parsefnc", false ] ]); - $1.fncvals = _6; - $k[$j++] = $1.fncvals; - $0.parseinput(); - }; - $1.ais = $a([]); - $1.vals = $a([]); - var _A = $1.barcode; - $k[$j++] = $geti(_A, 1, _A.length - 1); - for (;;) { - var _C = $k[--$j]; - $k[$j++] = _C; - if ($eq(_C, "")) { - break; - } - $search($k[--$j], ")"); - $j--; - var _E = $k[--$j]; - var _F = $k[--$j]; - $k[$j++] = _E; - $k[$j++] = _F; - $j--; - var _G = $k[--$j]; - var _H = $k[--$j]; - $k[$j++] = _G; - $search(_H, "("); - if ($k[--$j]) { - var _J = $k[--$j]; - var _K = $k[--$j]; - $k[$j++] = _J; - $k[$j++] = _K; - $j--; - var _L = $k[--$j]; - var _M = $k[--$j]; - var _N = $k[--$j]; - $k[$j++] = _M; - $k[$j++] = _N; - $k[$j++] = _L; - } else { - var _O = $k[--$j]; - var _P = $k[--$j]; - $k[$j++] = ""; - $k[$j++] = _P; - $k[$j++] = _O; - } - $k[$j++] = Infinity; - $aload($1.ais); - var _S = $k[$j - 1 - ($counttomark() + 2)]; - $k[$j++] = _S; - $1.ais = $a(); - $k[$j++] = Infinity; - $aload($1.vals); - var _W = $k[$j - 1 - ($counttomark() + 1)]; - $k[$j++] = _W; - $1.expand(); - $1.vals = $a(); - $j -= 2; - } - $j--; - if (!$1.dontlint) { - $k[$j++] = $1.ais; - $k[$j++] = $1.vals; - $0.gs1lint(); - $j--; - } - $1.aifixed = new Map(); - $k[$j++] = Infinity; - for (var _b = 0; _b <= 4; _b += 1) { - $k[$j++] = _b; - } - var _c = $a(); - for (var _d = 0, _e = _c.length; _d < _e; _d++) { - var _h = $strcpy($s(2), "00"); - $put(_h, 1, $f($get(_c, _d) + 48)); - $put($1.aifixed, _h, _h); - } - $k[$j++] = Infinity; - for (var _j = 11; _j <= 20; _j += 1) { - $k[$j++] = _j; - } - $k[$j++] = 23; - for (var _k = 31; _k <= 36; _k += 1) { - $k[$j++] = _k; - } - $k[$j++] = 41; - var _l = $a(); - for (var _m = 0, _n = _l.length; _m < _n; _m++) { - var _q = $cvrs($s(2), $get(_l, _m), 10); - $put($1.aifixed, _q, _q); - } - $1.fnc1 = -1; - $1.dmtx = $a([ $1.fnc1 ]); - for (var _w = 0, _v = $1.ais.length - 1; _w <= _v; _w += 1) { - $1.i = _w; - $1.ai = $get($1.ais, $1.i); - $1.val = $get($1.vals, $1.i); - var _16 = $a($1.dmtx.length + $1.ai.length + $1.val.length); - $puti(_16, 0, $1.dmtx); - $k[$j++] = _16; - $k[$j++] = _16; - $k[$j++] = $1.dmtx.length; - $k[$j++] = Infinity; - var _1B = $1.ai; - $forall(_1B); - var _1C = $a(); - var _1D = $k[--$j]; - $puti($k[--$j], _1D, _1C); - var _1F = $k[--$j]; - $k[$j++] = _1F; - $k[$j++] = _1F; - $k[$j++] = $1.dmtx.length + $1.ai.length; - $k[$j++] = Infinity; - var _1K = $1.val; - $forall(_1K); - var _1L = $a(); - var _1M = $k[--$j]; - $puti($k[--$j], _1M, _1L); - $1.dmtx = $k[--$j]; - var _1U = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; - if ($1.i != $1.ais.length - 1 && !_1U) { - var _1W = $a($1.dmtx.length + 1); - $puti(_1W, 0, $1.dmtx); - $put(_1W, $1.dmtx.length, $1.fnc1); - $1.dmtx = _1W; - } - } - $1.barcode = $s(($1.dmtx.length + 1) * 5); - $1.i = 0; - $1.j = 0; - for (;;) { - if ($1.i == $1.dmtx.length) { - break; - } - var _1g = $get($1.dmtx, $1.i); - $k[$j++] = _1g; - if (_1g == $1.fnc1) { - $j--; - $puti($1.barcode, $1.j, "^FNC1"); - $1.j = $1.j + 4; - } else { - $put($1.barcode, $1.j, $k[--$j]); - } - $1.i = $1.i + 1; - $1.j = $1.j + 1; - } - $1.barcode = $geti($1.barcode, 0, $1.j); - delete $1.options["parse"]; - $put($1.options, "dontdraw", true); - $put($1.options, "parsefnc", true); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.dotcode(); - var _1y = $k[--$j]; - $1[$k[--$j]] = _1y; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var _6 = new Map([ + ["parse", $1.parse], + ["parseonly", true], + ["parsefnc", false] + ]); //#27871 + $1.fncvals = _6; //#27872 + $k[$j++] = $1.fncvals; //#27873 + $0.parseinput(); //#27873 + }; //#27874 + $1.ais = $a([]); //#27877 + $1.vals = $a([]); //#27878 + var _A = $1.barcode; //#27879 + $k[$j++] = $geti(_A, 1, _A.length - 1); //#27892 + for (;;) { //#27892 + var _C = $k[--$j]; //#27881 + $k[$j++] = _C; //#27881 + if ($eq(_C, "")) { //#27881 + break; //#27881 + } //#27881 + $search($k[--$j], ")"); //#27882 + $j--; //#27882 + var _E = $k[--$j]; //#27883 + var _F = $k[--$j]; //#27883 + $k[$j++] = _E; //#27883 + $k[$j++] = _F; //#27883 + $j--; //#27883 + var _G = $k[--$j]; //#27884 + var _H = $k[--$j]; //#27884 + $k[$j++] = _G; //#27884 + $search(_H, "("); //#27884 + if ($k[--$j]) { //#27887 + var _J = $k[--$j]; //#27885 + var _K = $k[--$j]; //#27885 + $k[$j++] = _J; //#27885 + $k[$j++] = _K; //#27885 + $j--; //#27885 + var _L = $k[--$j]; //#27885 + var _M = $k[--$j]; //#27885 + var _N = $k[--$j]; //#27885 + $k[$j++] = _M; //#27885 + $k[$j++] = _N; //#27885 + $k[$j++] = _L; //#27885 + } else { //#27887 + var _O = $k[--$j]; //#27887 + var _P = $k[--$j]; //#27887 + $k[$j++] = ""; //#27887 + $k[$j++] = _P; //#27887 + $k[$j++] = _O; //#27887 + } //#27887 + $k[$j++] = Infinity; //#27889 + $aload($1.ais); //#27889 + var _S = $k[$j - 1 - ($counttomark() + 2)]; //#27889 + $k[$j++] = _S; //#27889 + $1.ais = $a(); //#27889 + $k[$j++] = Infinity; //#27890 + $aload($1.vals); //#27890 + var _W = $k[$j - 1 - ($counttomark() + 1)]; //#27890 + $k[$j++] = _W; //#27890 + $1.expand(); //#27890 + $1.vals = $a(); //#27890 + $j -= 2; //#27891 + } //#27891 + $j--; //#27893 + if (!$1.dontlint) { //#27895 + $k[$j++] = $1.ais; //#27895 + $k[$j++] = $1.vals; //#27895 + $0.gs1lint(); //#27895 + $j--; //#27895 + } //#27895 + $1.aifixed = new Map; //#27900 + $k[$j++] = Infinity; //#27902 + for (var _b = 0; _b <= 4; _b += 1) { //#27902 + $k[$j++] = _b; //#27902 + } //#27902 + var _c = $a(); //#27902 + for (var _d = 0, _e = _c.length; _d < _e; _d++) { //#27905 + var _h = $strcpy($s(2), "00"); //#27904 + $put(_h, 1, $f($get(_c, _d) + 48)); //#27904 + $put($1.aifixed, _h, _h); //#27904 + } //#27904 + $k[$j++] = Infinity; //#27910 + for (var _j = 11; _j <= 20; _j += 1) { //#27907 + $k[$j++] = _j; //#27907 + } //#27907 + $k[$j++] = 23; //#27909 + for (var _k = 31; _k <= 36; _k += 1) { //#27909 + $k[$j++] = _k; //#27909 + } //#27909 + $k[$j++] = 41; //#27910 + var _l = $a(); //#27910 + for (var _m = 0, _n = _l.length; _m < _n; _m++) { //#27913 + var _q = $cvrs($s(2), $get(_l, _m), 10); //#27912 + $put($1.aifixed, _q, _q); //#27912 + } //#27912 + $1.fnc1 = -1; //#27916 + $1.dmtx = $a([$1.fnc1]); //#27917 + for (var _w = 0, _v = $1.ais.length - 1; _w <= _v; _w += 1) { //#27933 + $1.i = _w; //#27919 + $1.ai = $get($1.ais, $1.i); //#27920 + $1.val = $get($1.vals, $1.i); //#27921 + var _16 = $a(($1.dmtx.length + $1.ai.length) + $1.val.length); //#27922 + $puti(_16, 0, $1.dmtx); //#27923 + $k[$j++] = _16; //#27924 + $k[$j++] = _16; //#27924 + $k[$j++] = $1.dmtx.length; //#27924 + $k[$j++] = $1.ai; //#27924 + $k[$j++] = Infinity; //#27924 + var _1A = $k[--$j]; //#27924 + var _1B = $k[--$j]; //#27924 + $k[$j++] = _1A; //#27924 + $forall(_1B); //#27924 + var _1C = $a(); //#27924 + var _1D = $k[--$j]; //#27924 + $puti($k[--$j], _1D, _1C); //#27924 + var _1F = $k[--$j]; //#27925 + $k[$j++] = _1F; //#27925 + $k[$j++] = _1F; //#27925 + $k[$j++] = $1.dmtx.length + $1.ai.length; //#27925 + $k[$j++] = $1.val; //#27925 + $k[$j++] = Infinity; //#27925 + var _1J = $k[--$j]; //#27925 + var _1K = $k[--$j]; //#27925 + $k[$j++] = _1J; //#27925 + $forall(_1K); //#27925 + var _1L = $a(); //#27925 + var _1M = $k[--$j]; //#27925 + $puti($k[--$j], _1M, _1L); //#27925 + $1.dmtx = $k[--$j]; //#27926 + var _1U = $get($1.aifixed, $geti($1.ai, 0, 2)) !== undefined; //#27927 + if (($1.i != ($1.ais.length - 1)) && (!_1U)) { //#27932 + var _1W = $a($1.dmtx.length + 1); //#27928 + $puti(_1W, 0, $1.dmtx); //#27929 + $put(_1W, $1.dmtx.length, $1.fnc1); //#27930 + $1.dmtx = _1W; //#27931 + } //#27931 + } //#27931 + $1.barcode = $s(($1.dmtx.length + 1) * 5); //#27936 + $1.i = 0; //#27937 + $1.j = 0; //#27937 + for (;;) { //#27947 + if ($1.i == $1.dmtx.length) { //#27938 + break; //#27938 + } //#27938 + var _1g = $get($1.dmtx, $1.i); //#27939 + $k[$j++] = _1g; //#27944 + if (_1g == $1.fnc1) { //#27943 + $j--; //#27940 + $puti($1.barcode, $1.j, "^FNC1"); //#27940 + $1.j = $1.j + 4; //#27941 + } else { //#27943 + $put($1.barcode, $1.j, $k[--$j]); //#27943 + } //#27943 + $1.i = $1.i + 1; //#27945 + $1.j = $1.j + 1; //#27946 + } //#27946 + $1.barcode = $geti($1.barcode, 0, $1.j); //#27948 + delete $1.options["parse"]; //#27951 + $put($1.options, "dontdraw", true); //#27952 + $put($1.options, "parsefnc", true); //#27953 + $k[$j++] = 'args'; //#27954 + $k[$j++] = $1.barcode; //#27954 + $k[$j++] = $1.options; //#27954 + $0.dotcode(); //#27954 + var _1y = $k[--$j]; //#27954 + $1[$k[--$j]] = _1y; //#27954 + $put($1.args, "opt", $1.options); //#27956 + $k[$j++] = $1.args; //#27959 + if (!$1.dontdraw) { //#27959 + $0.renmatrix(); //#27959 + } //#27959 }; $0.hibccode39 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.textxoffset = 0; - $1.validatecheck = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.textxoffset = +$1.textxoffset; - $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; - $1.charvals = new Map(); - for (var _9 = 0; _9 <= 42; _9 += 1) { - $put($1.charvals, $geti($1.barchars, _9, 1), _9); - } - for (var _F = 0, _E = $1.barcode.length - 1; _F <= _E; _F += 1) { - var _J = $get($1.charvals, $geti($1.barcode, _F, 1)) !== undefined; - if (!_J) { - $k[$j++] = "bwipp.hibccode39badCharacter"; - $k[$j++] = "HIBC Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _M = $k[--$j]; - $k[$j++] = $f(_M - 1); - } - var _N = $k[--$j]; - $1[$k[--$j]] = _N; - $1.checksum = 41; - for (var _R = 0, _Q = $f($1.barlen - 1); _R <= _Q; _R += 1) { - $1.checksum = $f($get($1.charvals, $geti($1.barcode, _R, 1)) + $1.checksum); - } - $1.checksum = $1.checksum % 43; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.hibccode39badCheckDigit"; - $k[$j++] = "Incorrect HIBC Code 39 check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - var _j = $s($f($1.barlen + 2)); - $puti(_j, 1, $1.barcode); - $1.barcode = _j; - $put($1.barcode, 0, 43); - $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); - $1.text = $s($f($1.barlen + 4)); - $put($1.text, 0, 42); - $puti($1.text, 1, $1.barcode); - var _10 = $get($1.barcode, $f($1.barlen + 1)); - $k[$j++] = $1.text; - $k[$j++] = $f($1.barlen + 2); - $k[$j++] = _10; - if (_10 == 32) { - $j--; - $k[$j++] = 95; - } - var _11 = $k[--$j]; - var _12 = $k[--$j]; - $put($k[--$j], _12, _11); - $put($1.text, $f($1.barlen + 3), 42); - $put($1.options, "dontdraw", true); - $put($1.options, "includecheck", false); - $put($1.options, "validatecheck", false); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.code39(); - var _1B = $k[--$j]; - $1[$k[--$j]] = _1B; - $put($1.args, "txt", $a([ $a([ $1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ]) ])); - $put($1.args, "textxalign", "center"); - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#27989 + $1.options = $k[--$j]; //#27991 + $1.barcode = $k[--$j]; //#27992 + $1.dontdraw = false; //#27994 + $1.textfont = "OCR-B"; //#27995 + $1.textsize = 10; //#27996 + $1.textyoffset = -8; //#27997 + $1.textxoffset = 0; //#27998 + $1.validatecheck = false; //#27999 + $forall($1.options, function() { //#28010 + var _3 = $k[--$j]; //#28010 + $1[$k[--$j]] = _3; //#28010 + }); //#28010 + $1.textfont = "" + $1.textfont; //#28012 + $1.textsize = +$1.textsize; //#28013 + $1.textyoffset = +$1.textyoffset; //#28014 + $1.textxoffset = +$1.textxoffset; //#28015 + $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#28018 + $1.charvals = new Map; //#28019 + for (var _9 = 0; _9 <= 42; _9 += 1) { //#28020 + $put($1.charvals, $geti($1.barchars, _9, 1), _9); //#28020 + } //#28020 + for (var _F = 0, _E = $1.barcode.length - 1; _F <= _E; _F += 1) { //#28027 + var _J = $get($1.charvals, $geti($1.barcode, _F, 1)) !== undefined; //#28024 + if (!_J) { //#28026 + $k[$j++] = 'bwipp.hibccode39badCharacter'; //#28025 + $k[$j++] = "HIBC Code 39 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#28025 + $0.raiseerror(); //#28025 + } //#28025 + } //#28025 + $k[$j++] = 'barlen'; //#28029 + $k[$j++] = $1.barcode.length; //#28029 + if ($1.validatecheck) { //#28029 + var _M = $k[--$j]; //#28029 + $k[$j++] = $f(_M - 1); //#28029 + } //#28029 + var _N = $k[--$j]; //#28029 + $1[$k[--$j]] = _N; //#28029 + $1.checksum = 41; //#28031 + for (var _R = 0, _Q = $f($1.barlen - 1); _R <= _Q; _R += 1) { //#28035 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, _R, 1)) + $1.checksum); //#28034 + } //#28034 + $1.checksum = $1.checksum % 43; //#28036 + if ($1.validatecheck) { //#28042 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#28040 + $k[$j++] = 'bwipp.hibccode39badCheckDigit'; //#28039 + $k[$j++] = "Incorrect HIBC Code 39 check digit provided"; //#28039 + $0.raiseerror(); //#28039 + } //#28039 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#28041 + } //#28041 + var _j = $s($f($1.barlen + 2)); //#28044 + $puti(_j, 1, $1.barcode); //#28044 + $1.barcode = _j; //#28044 + $put($1.barcode, 0, 43); //#28045 + $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); //#28046 + $1.text = $s($f($1.barlen + 4)); //#28048 + $put($1.text, 0, 42); //#28049 + $puti($1.text, 1, $1.barcode); //#28050 + var _10 = $get($1.barcode, $f($1.barlen + 1)); //#28051 + $k[$j++] = $1.text; //#28051 + $k[$j++] = $f($1.barlen + 2); //#28051 + $k[$j++] = _10; //#28051 + if (_10 == 32) { //#28051 + $j--; //#28051 + $k[$j++] = 95; //#28051 + } //#28051 + var _11 = $k[--$j]; //#28051 + var _12 = $k[--$j]; //#28051 + $put($k[--$j], _12, _11); //#28051 + $put($1.text, $f($1.barlen + 3), 42); //#28052 + $put($1.options, "dontdraw", true); //#28055 + $put($1.options, "includecheck", false); //#28056 + $put($1.options, "validatecheck", false); //#28057 + $k[$j++] = 'args'; //#28058 + $k[$j++] = $1.barcode; //#28058 + $k[$j++] = $1.options; //#28058 + $0.code39(); //#28058 + var _1B = $k[--$j]; //#28058 + $1[$k[--$j]] = _1B; //#28058 + $put($1.args, "txt", $a([$a([$1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])])); //#28060 + $put($1.args, "textxalign", "center"); //#28061 + $put($1.args, "opt", $1.options); //#28062 + $k[$j++] = $1.args; //#28065 + if (!$1.dontdraw) { //#28065 + $0.renlinear(); //#28065 + } //#28065 }; $0.hibccode128 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textyoffset = -8; - $1.textxoffset = 0; - $1.validatecheck = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textyoffset = +$1.textyoffset; - $1.textxoffset = +$1.textxoffset; - $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; - $1.charvals = new Map(); - for (var _9 = 0; _9 <= 42; _9 += 1) { - $put($1.charvals, $geti($1.barchars, _9, 1), _9); - } - for (var _F = 0, _E = $1.barcode.length - 1; _F <= _E; _F += 1) { - var _J = $get($1.charvals, $geti($1.barcode, _F, 1)) !== undefined; - if (!_J) { - $k[$j++] = "bwipp.hibccode128badCharacter"; - $k[$j++] = "HIBC Code 128 must contain only digits, capital letters, spaces and the symbols -.$/+%"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _M = $k[--$j]; - $k[$j++] = $f(_M - 1); - } - var _N = $k[--$j]; - $1[$k[--$j]] = _N; - $1.checksum = 41; - for (var _R = 0, _Q = $f($1.barlen - 1); _R <= _Q; _R += 1) { - $1.checksum = $f($get($1.charvals, $geti($1.barcode, _R, 1)) + $1.checksum); - } - $1.checksum = $1.checksum % 43; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.hibccode128badCheckDigit"; - $k[$j++] = "Incorrect HIBC Code 128 check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - var _j = $s($f($1.barlen + 2)); - $puti(_j, 1, $1.barcode); - $1.barcode = _j; - $put($1.barcode, 0, 43); - $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); - $1.text = $s($f($1.barlen + 4)); - $put($1.text, 0, 42); - $puti($1.text, 1, $1.barcode); - var _10 = $get($1.barcode, $f($1.barlen + 1)); - $k[$j++] = $1.text; - $k[$j++] = $f($1.barlen + 2); - $k[$j++] = _10; - if (_10 == 32) { - $j--; - $k[$j++] = 95; - } - var _11 = $k[--$j]; - var _12 = $k[--$j]; - $put($k[--$j], _12, _11); - $put($1.text, $f($1.barlen + 3), 42); - $put($1.options, "dontdraw", true); - $put($1.options, "validatecheck", false); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.code128(); - var _1A = $k[--$j]; - $1[$k[--$j]] = _1A; - $put($1.args, "txt", $a([ $a([ $1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize ]) ])); - $put($1.args, "textxalign", "center"); - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renlinear(); - } + var $1 = {}; //#28095 + $1.options = $k[--$j]; //#28097 + $1.barcode = $k[--$j]; //#28098 + $1.dontdraw = false; //#28100 + $1.textfont = "OCR-B"; //#28101 + $1.textsize = 10; //#28102 + $1.textyoffset = -8; //#28103 + $1.textxoffset = 0; //#28104 + $1.validatecheck = false; //#28105 + $forall($1.options, function() { //#28116 + var _3 = $k[--$j]; //#28116 + $1[$k[--$j]] = _3; //#28116 + }); //#28116 + $1.textfont = "" + $1.textfont; //#28118 + $1.textsize = +$1.textsize; //#28119 + $1.textyoffset = +$1.textyoffset; //#28120 + $1.textxoffset = +$1.textxoffset; //#28121 + $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#28124 + $1.charvals = new Map; //#28125 + for (var _9 = 0; _9 <= 42; _9 += 1) { //#28126 + $put($1.charvals, $geti($1.barchars, _9, 1), _9); //#28126 + } //#28126 + for (var _F = 0, _E = $1.barcode.length - 1; _F <= _E; _F += 1) { //#28133 + var _J = $get($1.charvals, $geti($1.barcode, _F, 1)) !== undefined; //#28130 + if (!_J) { //#28132 + $k[$j++] = 'bwipp.hibccode128badCharacter'; //#28131 + $k[$j++] = "HIBC Code 128 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#28131 + $0.raiseerror(); //#28131 + } //#28131 + } //#28131 + $k[$j++] = 'barlen'; //#28135 + $k[$j++] = $1.barcode.length; //#28135 + if ($1.validatecheck) { //#28135 + var _M = $k[--$j]; //#28135 + $k[$j++] = $f(_M - 1); //#28135 + } //#28135 + var _N = $k[--$j]; //#28135 + $1[$k[--$j]] = _N; //#28135 + $1.checksum = 41; //#28137 + for (var _R = 0, _Q = $f($1.barlen - 1); _R <= _Q; _R += 1) { //#28141 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, _R, 1)) + $1.checksum); //#28140 + } //#28140 + $1.checksum = $1.checksum % 43; //#28142 + if ($1.validatecheck) { //#28148 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#28146 + $k[$j++] = 'bwipp.hibccode128badCheckDigit'; //#28145 + $k[$j++] = "Incorrect HIBC Code 128 check digit provided"; //#28145 + $0.raiseerror(); //#28145 + } //#28145 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#28147 + } //#28147 + var _j = $s($f($1.barlen + 2)); //#28150 + $puti(_j, 1, $1.barcode); //#28150 + $1.barcode = _j; //#28150 + $put($1.barcode, 0, 43); //#28151 + $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); //#28152 + $1.text = $s($f($1.barlen + 4)); //#28154 + $put($1.text, 0, 42); //#28155 + $puti($1.text, 1, $1.barcode); //#28156 + var _10 = $get($1.barcode, $f($1.barlen + 1)); //#28157 + $k[$j++] = $1.text; //#28157 + $k[$j++] = $f($1.barlen + 2); //#28157 + $k[$j++] = _10; //#28157 + if (_10 == 32) { //#28157 + $j--; //#28157 + $k[$j++] = 95; //#28157 + } //#28157 + var _11 = $k[--$j]; //#28157 + var _12 = $k[--$j]; //#28157 + $put($k[--$j], _12, _11); //#28157 + $put($1.text, $f($1.barlen + 3), 42); //#28158 + $put($1.options, "dontdraw", true); //#28161 + $put($1.options, "validatecheck", false); //#28162 + $k[$j++] = 'args'; //#28163 + $k[$j++] = $1.barcode; //#28163 + $k[$j++] = $1.options; //#28163 + $0.code128(); //#28163 + var _1A = $k[--$j]; //#28163 + $1[$k[--$j]] = _1A; //#28163 + $put($1.args, "txt", $a([$a([$1.text, $1.textxoffset, $1.textyoffset, $1.textfont, $1.textsize])])); //#28165 + $put($1.args, "textxalign", "center"); //#28166 + $put($1.args, "opt", $1.options); //#28167 + $k[$j++] = $1.args; //#28170 + if (!$1.dontdraw) { //#28170 + $0.renlinear(); //#28170 + } //#28170 }; $0.hibcdatamatrix = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.validatecheck = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; - $1.charvals = new Map(); - for (var _5 = 0; _5 <= 42; _5 += 1) { - $put($1.charvals, $geti($1.barchars, _5, 1), _5); - } - for (var _B = 0, _A = $1.barcode.length - 1; _B <= _A; _B += 1) { - var _F = $get($1.charvals, $geti($1.barcode, _B, 1)) !== undefined; - if (!_F) { - $k[$j++] = "bwipp.hibcdatamatrixBadCharacter"; - $k[$j++] = "HIBC Data Matrix must contain only digits, capital letters, spaces and the symbols -.$/+%"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _I = $k[--$j]; - $k[$j++] = $f(_I - 1); - } - var _J = $k[--$j]; - $1[$k[--$j]] = _J; - $1.checksum = 41; - for (var _N = 0, _M = $f($1.barlen - 1); _N <= _M; _N += 1) { - $1.checksum = $f($get($1.charvals, $geti($1.barcode, _N, 1)) + $1.checksum); - } - $1.checksum = $1.checksum % 43; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.hibcdatamatrixBadCheckDigit"; - $k[$j++] = "Incorrect HIBC Data Matrix check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - var _f = $s($f($1.barlen + 2)); - $puti(_f, 1, $1.barcode); - $1.barcode = _f; - $put($1.barcode, 0, 43); - $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); - $put($1.options, "dontdraw", true); - $put($1.options, "validatecheck", false); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.datamatrix(); - var _r = $k[--$j]; - $1[$k[--$j]] = _r; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#28200 + $1.options = $k[--$j]; //#28202 + $1.barcode = $k[--$j]; //#28203 + $1.dontdraw = false; //#28205 + $1.validatecheck = false; //#28206 + $forall($1.options, function() { //#28217 + var _3 = $k[--$j]; //#28217 + $1[$k[--$j]] = _3; //#28217 + }); //#28217 + $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#28220 + $1.charvals = new Map; //#28221 + for (var _5 = 0; _5 <= 42; _5 += 1) { //#28222 + $put($1.charvals, $geti($1.barchars, _5, 1), _5); //#28222 + } //#28222 + for (var _B = 0, _A = $1.barcode.length - 1; _B <= _A; _B += 1) { //#28229 + var _F = $get($1.charvals, $geti($1.barcode, _B, 1)) !== undefined; //#28226 + if (!_F) { //#28228 + $k[$j++] = 'bwipp.hibcdatamatrixBadCharacter'; //#28227 + $k[$j++] = "HIBC Data Matrix must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#28227 + $0.raiseerror(); //#28227 + } //#28227 + } //#28227 + $k[$j++] = 'barlen'; //#28231 + $k[$j++] = $1.barcode.length; //#28231 + if ($1.validatecheck) { //#28231 + var _I = $k[--$j]; //#28231 + $k[$j++] = $f(_I - 1); //#28231 + } //#28231 + var _J = $k[--$j]; //#28231 + $1[$k[--$j]] = _J; //#28231 + $1.checksum = 41; //#28233 + for (var _N = 0, _M = $f($1.barlen - 1); _N <= _M; _N += 1) { //#28237 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, _N, 1)) + $1.checksum); //#28236 + } //#28236 + $1.checksum = $1.checksum % 43; //#28238 + if ($1.validatecheck) { //#28244 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#28242 + $k[$j++] = 'bwipp.hibcdatamatrixBadCheckDigit'; //#28241 + $k[$j++] = "Incorrect HIBC Data Matrix check digit provided"; //#28241 + $0.raiseerror(); //#28241 + } //#28241 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#28243 + } //#28243 + var _f = $s($f($1.barlen + 2)); //#28246 + $puti(_f, 1, $1.barcode); //#28246 + $1.barcode = _f; //#28246 + $put($1.barcode, 0, 43); //#28247 + $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); //#28248 + $put($1.options, "dontdraw", true); //#28251 + $put($1.options, "validatecheck", false); //#28252 + $k[$j++] = 'args'; //#28253 + $k[$j++] = $1.barcode; //#28253 + $k[$j++] = $1.options; //#28253 + $0.datamatrix(); //#28253 + var _r = $k[--$j]; //#28253 + $1[$k[--$j]] = _r; //#28253 + $put($1.args, "opt", $1.options); //#28255 + $k[$j++] = $1.args; //#28258 + if (!$1.dontdraw) { //#28258 + $0.renmatrix(); //#28258 + } //#28258 }; $0.hibcdatamatrixrectangular = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.validatecheck = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; - $1.charvals = new Map(); - for (var _5 = 0; _5 <= 42; _5 += 1) { - $put($1.charvals, $geti($1.barchars, _5, 1), _5); - } - for (var _B = 0, _A = $1.barcode.length - 1; _B <= _A; _B += 1) { - var _F = $get($1.charvals, $geti($1.barcode, _B, 1)) !== undefined; - if (!_F) { - $k[$j++] = "bwipp.hibcdatamatrixrectangularBadCharacter"; - $k[$j++] = "HIBC Data Matrix Rectangular must contain only digits, capital letters, spaces and the symbols -.$/+%"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _I = $k[--$j]; - $k[$j++] = $f(_I - 1); - } - var _J = $k[--$j]; - $1[$k[--$j]] = _J; - $1.checksum = 41; - for (var _N = 0, _M = $f($1.barlen - 1); _N <= _M; _N += 1) { - $1.checksum = $f($get($1.charvals, $geti($1.barcode, _N, 1)) + $1.checksum); - } - $1.checksum = $1.checksum % 43; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.hibcdatamatrixrectangularBadCheckDigit"; - $k[$j++] = "Incorrect HIBC Data Matrix Rectangular check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - var _f = $s($f($1.barlen + 2)); - $puti(_f, 1, $1.barcode); - $1.barcode = _f; - $put($1.barcode, 0, 43); - $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); - $put($1.options, "dontdraw", true); - $put($1.options, "validatecheck", false); - $put($1.options, "format", "rectangle"); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.datamatrix(); - var _s = $k[--$j]; - $1[$k[--$j]] = _s; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#28288 + $1.options = $k[--$j]; //#28290 + $1.barcode = $k[--$j]; //#28291 + $1.dontdraw = false; //#28293 + $1.validatecheck = false; //#28294 + $forall($1.options, function() { //#28305 + var _3 = $k[--$j]; //#28305 + $1[$k[--$j]] = _3; //#28305 + }); //#28305 + $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#28308 + $1.charvals = new Map; //#28309 + for (var _5 = 0; _5 <= 42; _5 += 1) { //#28310 + $put($1.charvals, $geti($1.barchars, _5, 1), _5); //#28310 + } //#28310 + for (var _B = 0, _A = $1.barcode.length - 1; _B <= _A; _B += 1) { //#28317 + var _F = $get($1.charvals, $geti($1.barcode, _B, 1)) !== undefined; //#28314 + if (!_F) { //#28316 + $k[$j++] = 'bwipp.hibcdatamatrixrectangularBadCharacter'; //#28315 + $k[$j++] = "HIBC Data Matrix Rectangular must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#28315 + $0.raiseerror(); //#28315 + } //#28315 + } //#28315 + $k[$j++] = 'barlen'; //#28319 + $k[$j++] = $1.barcode.length; //#28319 + if ($1.validatecheck) { //#28319 + var _I = $k[--$j]; //#28319 + $k[$j++] = $f(_I - 1); //#28319 + } //#28319 + var _J = $k[--$j]; //#28319 + $1[$k[--$j]] = _J; //#28319 + $1.checksum = 41; //#28321 + for (var _N = 0, _M = $f($1.barlen - 1); _N <= _M; _N += 1) { //#28325 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, _N, 1)) + $1.checksum); //#28324 + } //#28324 + $1.checksum = $1.checksum % 43; //#28326 + if ($1.validatecheck) { //#28332 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#28330 + $k[$j++] = 'bwipp.hibcdatamatrixrectangularBadCheckDigit'; //#28329 + $k[$j++] = "Incorrect HIBC Data Matrix Rectangular check digit provided"; //#28329 + $0.raiseerror(); //#28329 + } //#28329 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#28331 + } //#28331 + var _f = $s($f($1.barlen + 2)); //#28334 + $puti(_f, 1, $1.barcode); //#28334 + $1.barcode = _f; //#28334 + $put($1.barcode, 0, 43); //#28335 + $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); //#28336 + $put($1.options, "dontdraw", true); //#28339 + $put($1.options, "validatecheck", false); //#28340 + $put($1.options, "format", "rectangle"); //#28341 + $k[$j++] = 'args'; //#28342 + $k[$j++] = $1.barcode; //#28342 + $k[$j++] = $1.options; //#28342 + $0.datamatrix(); //#28342 + var _s = $k[--$j]; //#28342 + $1[$k[--$j]] = _s; //#28342 + $put($1.args, "opt", $1.options); //#28344 + $k[$j++] = $1.args; //#28347 + if (!$1.dontdraw) { //#28347 + $0.renmatrix(); //#28347 + } //#28347 }; $0.hibcpdf417 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.columns = 2; - $1.validatecheck = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.columns = ~~$1.columns; - $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; - $1.charvals = new Map(); - for (var _6 = 0; _6 <= 42; _6 += 1) { - $put($1.charvals, $geti($1.barchars, _6, 1), _6); - } - for (var _C = 0, _B = $1.barcode.length - 1; _C <= _B; _C += 1) { - var _G = $get($1.charvals, $geti($1.barcode, _C, 1)) !== undefined; - if (!_G) { - $k[$j++] = "bwipp.hibcpdf417BadCharacter"; - $k[$j++] = "HIBC PDF417 must contain only digits, capital letters, spaces and the symbols -.$/+%"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _J = $k[--$j]; - $k[$j++] = $f(_J - 1); - } - var _K = $k[--$j]; - $1[$k[--$j]] = _K; - $1.checksum = 41; - for (var _O = 0, _N = $f($1.barlen - 1); _O <= _N; _O += 1) { - $1.checksum = $f($get($1.charvals, $geti($1.barcode, _O, 1)) + $1.checksum); - } - $1.checksum = $1.checksum % 43; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.hibcpdf417BadCheckDigit"; - $k[$j++] = "Incorrect HIBC PDF417 check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - var _g = $s($f($1.barlen + 2)); - $puti(_g, 1, $1.barcode); - $1.barcode = _g; - $put($1.barcode, 0, 43); - $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); - $put($1.options, "dontdraw", true); - $put($1.options, "columns", $1.columns); - $put($1.options, "validatecheck", false); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.pdf417(); - var _u = $k[--$j]; - $1[$k[--$j]] = _u; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#28377 + $1.options = $k[--$j]; //#28379 + $1.barcode = $k[--$j]; //#28380 + $1.dontdraw = false; //#28382 + $1.columns = 2; //#28383 + $1.validatecheck = false; //#28384 + $forall($1.options, function() { //#28395 + var _3 = $k[--$j]; //#28395 + $1[$k[--$j]] = _3; //#28395 + }); //#28395 + $1.columns = ~~$1.columns; //#28397 + $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#28400 + $1.charvals = new Map; //#28401 + for (var _6 = 0; _6 <= 42; _6 += 1) { //#28402 + $put($1.charvals, $geti($1.barchars, _6, 1), _6); //#28402 + } //#28402 + for (var _C = 0, _B = $1.barcode.length - 1; _C <= _B; _C += 1) { //#28409 + var _G = $get($1.charvals, $geti($1.barcode, _C, 1)) !== undefined; //#28406 + if (!_G) { //#28408 + $k[$j++] = 'bwipp.hibcpdf417BadCharacter'; //#28407 + $k[$j++] = "HIBC PDF417 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#28407 + $0.raiseerror(); //#28407 + } //#28407 + } //#28407 + $k[$j++] = 'barlen'; //#28411 + $k[$j++] = $1.barcode.length; //#28411 + if ($1.validatecheck) { //#28411 + var _J = $k[--$j]; //#28411 + $k[$j++] = $f(_J - 1); //#28411 + } //#28411 + var _K = $k[--$j]; //#28411 + $1[$k[--$j]] = _K; //#28411 + $1.checksum = 41; //#28413 + for (var _O = 0, _N = $f($1.barlen - 1); _O <= _N; _O += 1) { //#28417 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, _O, 1)) + $1.checksum); //#28416 + } //#28416 + $1.checksum = $1.checksum % 43; //#28418 + if ($1.validatecheck) { //#28424 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#28422 + $k[$j++] = 'bwipp.hibcpdf417BadCheckDigit'; //#28421 + $k[$j++] = "Incorrect HIBC PDF417 check digit provided"; //#28421 + $0.raiseerror(); //#28421 + } //#28421 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#28423 + } //#28423 + var _g = $s($f($1.barlen + 2)); //#28426 + $puti(_g, 1, $1.barcode); //#28426 + $1.barcode = _g; //#28426 + $put($1.barcode, 0, 43); //#28427 + $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); //#28428 + $put($1.options, "dontdraw", true); //#28431 + $put($1.options, "columns", $1.columns); //#28432 + $put($1.options, "validatecheck", false); //#28433 + $k[$j++] = 'args'; //#28434 + $k[$j++] = $1.barcode; //#28434 + $k[$j++] = $1.options; //#28434 + $0.pdf417(); //#28434 + var _u = $k[--$j]; //#28434 + $1[$k[--$j]] = _u; //#28434 + $put($1.args, "opt", $1.options); //#28436 + $k[$j++] = $1.args; //#28439 + if (!$1.dontdraw) { //#28439 + $0.renmatrix(); //#28439 + } //#28439 }; $0.hibcmicropdf417 = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.columns = 2; - $1.validatecheck = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.columns = ~~$1.columns; - $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; - $1.charvals = new Map(); - for (var _6 = 0; _6 <= 42; _6 += 1) { - $put($1.charvals, $geti($1.barchars, _6, 1), _6); - } - for (var _C = 0, _B = $1.barcode.length - 1; _C <= _B; _C += 1) { - var _G = $get($1.charvals, $geti($1.barcode, _C, 1)) !== undefined; - if (!_G) { - $k[$j++] = "bwipp.hibcmicropdf417BadCharacter"; - $k[$j++] = "HIBC MicroPDF417 must contain only digits, capital letters, spaces and the symbols -.$/+%"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _J = $k[--$j]; - $k[$j++] = $f(_J - 1); - } - var _K = $k[--$j]; - $1[$k[--$j]] = _K; - $1.checksum = 41; - for (var _O = 0, _N = $f($1.barlen - 1); _O <= _N; _O += 1) { - $1.checksum = $f($get($1.charvals, $geti($1.barcode, _O, 1)) + $1.checksum); - } - $1.checksum = $1.checksum % 43; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.hibcmicropdf417BadCheckDigit"; - $k[$j++] = "Incorrect HIBC MicroPDF417 check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - var _g = $s($f($1.barlen + 2)); - $puti(_g, 1, $1.barcode); - $1.barcode = _g; - $put($1.barcode, 0, 43); - $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); - $put($1.options, "dontdraw", true); - $put($1.options, "columns", $1.columns); - $put($1.options, "validatecheck", false); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.micropdf417(); - var _u = $k[--$j]; - $1[$k[--$j]] = _u; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#28469 + $1.options = $k[--$j]; //#28471 + $1.barcode = $k[--$j]; //#28472 + $1.dontdraw = false; //#28474 + $1.columns = 2; //#28475 + $1.validatecheck = false; //#28476 + $forall($1.options, function() { //#28487 + var _3 = $k[--$j]; //#28487 + $1[$k[--$j]] = _3; //#28487 + }); //#28487 + $1.columns = ~~$1.columns; //#28489 + $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#28492 + $1.charvals = new Map; //#28493 + for (var _6 = 0; _6 <= 42; _6 += 1) { //#28494 + $put($1.charvals, $geti($1.barchars, _6, 1), _6); //#28494 + } //#28494 + for (var _C = 0, _B = $1.barcode.length - 1; _C <= _B; _C += 1) { //#28501 + var _G = $get($1.charvals, $geti($1.barcode, _C, 1)) !== undefined; //#28498 + if (!_G) { //#28500 + $k[$j++] = 'bwipp.hibcmicropdf417BadCharacter'; //#28499 + $k[$j++] = "HIBC MicroPDF417 must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#28499 + $0.raiseerror(); //#28499 + } //#28499 + } //#28499 + $k[$j++] = 'barlen'; //#28503 + $k[$j++] = $1.barcode.length; //#28503 + if ($1.validatecheck) { //#28503 + var _J = $k[--$j]; //#28503 + $k[$j++] = $f(_J - 1); //#28503 + } //#28503 + var _K = $k[--$j]; //#28503 + $1[$k[--$j]] = _K; //#28503 + $1.checksum = 41; //#28505 + for (var _O = 0, _N = $f($1.barlen - 1); _O <= _N; _O += 1) { //#28509 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, _O, 1)) + $1.checksum); //#28508 + } //#28508 + $1.checksum = $1.checksum % 43; //#28510 + if ($1.validatecheck) { //#28516 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#28514 + $k[$j++] = 'bwipp.hibcmicropdf417BadCheckDigit'; //#28513 + $k[$j++] = "Incorrect HIBC MicroPDF417 check digit provided"; //#28513 + $0.raiseerror(); //#28513 + } //#28513 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#28515 + } //#28515 + var _g = $s($f($1.barlen + 2)); //#28518 + $puti(_g, 1, $1.barcode); //#28518 + $1.barcode = _g; //#28518 + $put($1.barcode, 0, 43); //#28519 + $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); //#28520 + $put($1.options, "dontdraw", true); //#28523 + $put($1.options, "columns", $1.columns); //#28524 + $put($1.options, "validatecheck", false); //#28525 + $k[$j++] = 'args'; //#28526 + $k[$j++] = $1.barcode; //#28526 + $k[$j++] = $1.options; //#28526 + $0.micropdf417(); //#28526 + var _u = $k[--$j]; //#28526 + $1[$k[--$j]] = _u; //#28526 + $put($1.args, "opt", $1.options); //#28528 + $k[$j++] = $1.args; //#28531 + if (!$1.dontdraw) { //#28531 + $0.renmatrix(); //#28531 + } //#28531 }; $0.hibcqrcode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.validatecheck = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; - $1.charvals = new Map(); - for (var _5 = 0; _5 <= 42; _5 += 1) { - $put($1.charvals, $geti($1.barchars, _5, 1), _5); - } - for (var _B = 0, _A = $1.barcode.length - 1; _B <= _A; _B += 1) { - var _F = $get($1.charvals, $geti($1.barcode, _B, 1)) !== undefined; - if (!_F) { - $k[$j++] = "bwipp.hibcqrcodeBadCharacter"; - $k[$j++] = "HIBC QR Code must contain only digits, capital letters, spaces and the symbols -.$/+%"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _I = $k[--$j]; - $k[$j++] = $f(_I - 1); - } - var _J = $k[--$j]; - $1[$k[--$j]] = _J; - $1.checksum = 41; - for (var _N = 0, _M = $f($1.barlen - 1); _N <= _M; _N += 1) { - $1.checksum = $f($get($1.charvals, $geti($1.barcode, _N, 1)) + $1.checksum); - } - $1.checksum = $1.checksum % 43; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.hibcqrcodeBadCheckDigit"; - $k[$j++] = "Incorrect HIBC QR Code check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - var _f = $s($f($1.barlen + 2)); - $puti(_f, 1, $1.barcode); - $1.barcode = _f; - $put($1.barcode, 0, 43); - $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); - $put($1.options, "dontdraw", true); - $put($1.options, "validatecheck", false); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.qrcode(); - var _r = $k[--$j]; - $1[$k[--$j]] = _r; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#28561 + $1.options = $k[--$j]; //#28563 + $1.barcode = $k[--$j]; //#28564 + $1.dontdraw = false; //#28566 + $1.validatecheck = false; //#28567 + $forall($1.options, function() { //#28578 + var _3 = $k[--$j]; //#28578 + $1[$k[--$j]] = _3; //#28578 + }); //#28578 + $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#28581 + $1.charvals = new Map; //#28582 + for (var _5 = 0; _5 <= 42; _5 += 1) { //#28583 + $put($1.charvals, $geti($1.barchars, _5, 1), _5); //#28583 + } //#28583 + for (var _B = 0, _A = $1.barcode.length - 1; _B <= _A; _B += 1) { //#28590 + var _F = $get($1.charvals, $geti($1.barcode, _B, 1)) !== undefined; //#28587 + if (!_F) { //#28589 + $k[$j++] = 'bwipp.hibcqrcodeBadCharacter'; //#28588 + $k[$j++] = "HIBC QR Code must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#28588 + $0.raiseerror(); //#28588 + } //#28588 + } //#28588 + $k[$j++] = 'barlen'; //#28592 + $k[$j++] = $1.barcode.length; //#28592 + if ($1.validatecheck) { //#28592 + var _I = $k[--$j]; //#28592 + $k[$j++] = $f(_I - 1); //#28592 + } //#28592 + var _J = $k[--$j]; //#28592 + $1[$k[--$j]] = _J; //#28592 + $1.checksum = 41; //#28594 + for (var _N = 0, _M = $f($1.barlen - 1); _N <= _M; _N += 1) { //#28598 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, _N, 1)) + $1.checksum); //#28597 + } //#28597 + $1.checksum = $1.checksum % 43; //#28599 + if ($1.validatecheck) { //#28605 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#28603 + $k[$j++] = 'bwipp.hibcqrcodeBadCheckDigit'; //#28602 + $k[$j++] = "Incorrect HIBC QR Code check digit provided"; //#28602 + $0.raiseerror(); //#28602 + } //#28602 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#28604 + } //#28604 + var _f = $s($f($1.barlen + 2)); //#28607 + $puti(_f, 1, $1.barcode); //#28607 + $1.barcode = _f; //#28607 + $put($1.barcode, 0, 43); //#28608 + $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); //#28609 + $put($1.options, "dontdraw", true); //#28612 + $put($1.options, "validatecheck", false); //#28613 + $k[$j++] = 'args'; //#28614 + $k[$j++] = $1.barcode; //#28614 + $k[$j++] = $1.options; //#28614 + $0.qrcode(); //#28614 + var _r = $k[--$j]; //#28614 + $1[$k[--$j]] = _r; //#28614 + $put($1.args, "opt", $1.options); //#28616 + $k[$j++] = $1.args; //#28619 + if (!$1.dontdraw) { //#28619 + $0.renmatrix(); //#28619 + } //#28619 }; $0.hibccodablockf = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.validatecheck = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; - $1.charvals = new Map(); - for (var _5 = 0; _5 <= 42; _5 += 1) { - $put($1.charvals, $geti($1.barchars, _5, 1), _5); - } - for (var _B = 0, _A = $1.barcode.length - 1; _B <= _A; _B += 1) { - var _F = $get($1.charvals, $geti($1.barcode, _B, 1)) !== undefined; - if (!_F) { - $k[$j++] = "bwipp.codablockfBadCharacter"; - $k[$j++] = "HIBC Codablock F must contain only digits, capital letters, spaces and the symbols -.$/+%"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _I = $k[--$j]; - $k[$j++] = $f(_I - 1); - } - var _J = $k[--$j]; - $1[$k[--$j]] = _J; - $1.checksum = 41; - for (var _N = 0, _M = $f($1.barlen - 1); _N <= _M; _N += 1) { - $1.checksum = $f($get($1.charvals, $geti($1.barcode, _N, 1)) + $1.checksum); - } - $1.checksum = $1.checksum % 43; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.hibccodablockfBadCheckDigit"; - $k[$j++] = "Incorrect HIBC Codablock F check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - var _f = $s($f($1.barlen + 2)); - $puti(_f, 1, $1.barcode); - $1.barcode = _f; - $put($1.barcode, 0, 43); - $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); - $put($1.options, "dontdraw", true); - $put($1.options, "validatecheck", false); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.codablockf(); - var _r = $k[--$j]; - $1[$k[--$j]] = _r; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#28649 + $1.options = $k[--$j]; //#28651 + $1.barcode = $k[--$j]; //#28652 + $1.dontdraw = false; //#28654 + $1.validatecheck = false; //#28655 + $forall($1.options, function() { //#28666 + var _3 = $k[--$j]; //#28666 + $1[$k[--$j]] = _3; //#28666 + }); //#28666 + $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#28669 + $1.charvals = new Map; //#28670 + for (var _5 = 0; _5 <= 42; _5 += 1) { //#28671 + $put($1.charvals, $geti($1.barchars, _5, 1), _5); //#28671 + } //#28671 + for (var _B = 0, _A = $1.barcode.length - 1; _B <= _A; _B += 1) { //#28678 + var _F = $get($1.charvals, $geti($1.barcode, _B, 1)) !== undefined; //#28675 + if (!_F) { //#28677 + $k[$j++] = 'bwipp.codablockfBadCharacter'; //#28676 + $k[$j++] = "HIBC Codablock F must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#28676 + $0.raiseerror(); //#28676 + } //#28676 + } //#28676 + $k[$j++] = 'barlen'; //#28680 + $k[$j++] = $1.barcode.length; //#28680 + if ($1.validatecheck) { //#28680 + var _I = $k[--$j]; //#28680 + $k[$j++] = $f(_I - 1); //#28680 + } //#28680 + var _J = $k[--$j]; //#28680 + $1[$k[--$j]] = _J; //#28680 + $1.checksum = 41; //#28682 + for (var _N = 0, _M = $f($1.barlen - 1); _N <= _M; _N += 1) { //#28686 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, _N, 1)) + $1.checksum); //#28685 + } //#28685 + $1.checksum = $1.checksum % 43; //#28687 + if ($1.validatecheck) { //#28693 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#28691 + $k[$j++] = 'bwipp.hibccodablockfBadCheckDigit'; //#28690 + $k[$j++] = "Incorrect HIBC Codablock F check digit provided"; //#28690 + $0.raiseerror(); //#28690 + } //#28690 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#28692 + } //#28692 + var _f = $s($f($1.barlen + 2)); //#28695 + $puti(_f, 1, $1.barcode); //#28695 + $1.barcode = _f; //#28695 + $put($1.barcode, 0, 43); //#28696 + $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); //#28697 + $put($1.options, "dontdraw", true); //#28700 + $put($1.options, "validatecheck", false); //#28701 + $k[$j++] = 'args'; //#28702 + $k[$j++] = $1.barcode; //#28702 + $k[$j++] = $1.options; //#28702 + $0.codablockf(); //#28702 + var _r = $k[--$j]; //#28702 + $1[$k[--$j]] = _r; //#28702 + $put($1.args, "opt", $1.options); //#28704 + $k[$j++] = $1.args; //#28707 + if (!$1.dontdraw) { //#28707 + $0.renmatrix(); //#28707 + } //#28707 }; $0.hibcazteccode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.validatecheck = false; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; - $1.charvals = new Map(); - for (var _5 = 0; _5 <= 42; _5 += 1) { - $put($1.charvals, $geti($1.barchars, _5, 1), _5); - } - for (var _B = 0, _A = $1.barcode.length - 1; _B <= _A; _B += 1) { - var _F = $get($1.charvals, $geti($1.barcode, _B, 1)) !== undefined; - if (!_F) { - $k[$j++] = "bwipp.hibcazteccodeBadCharacter"; - $k[$j++] = "HIBC Aztec Code must contain only digits, capital letters, spaces and the symbols -.$/+%"; - $0.raiseerror(); - } - } - $k[$j++] = "barlen"; - $k[$j++] = $1.barcode.length; - if ($1.validatecheck) { - var _I = $k[--$j]; - $k[$j++] = $f(_I - 1); - } - var _J = $k[--$j]; - $1[$k[--$j]] = _J; - $1.checksum = 41; - for (var _N = 0, _M = $f($1.barlen - 1); _N <= _M; _N += 1) { - $1.checksum = $f($get($1.charvals, $geti($1.barcode, _N, 1)) + $1.checksum); - } - $1.checksum = $1.checksum % 43; - if ($1.validatecheck) { - if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { - $k[$j++] = "bwipp.hibcazteccodeBadCheckDigit"; - $k[$j++] = "Incorrect HIBC Aztec Code check digit provided"; - $0.raiseerror(); - } - $1.barcode = $geti($1.barcode, 0, $1.barlen); - } - var _f = $s($f($1.barlen + 2)); - $puti(_f, 1, $1.barcode); - $1.barcode = _f; - $put($1.barcode, 0, 43); - $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); - $put($1.options, "dontdraw", true); - $put($1.options, "validatecheck", false); - $k[$j++] = "args"; - $k[$j++] = $1.barcode; - $k[$j++] = $1.options; - $0.azteccode(); - var _r = $k[--$j]; - $1[$k[--$j]] = _r; - $put($1.args, "opt", $1.options); - $k[$j++] = $1.args; - if (!$1.dontdraw) { - $0.renmatrix(); - } + var $1 = {}; //#28737 + $1.options = $k[--$j]; //#28739 + $1.barcode = $k[--$j]; //#28740 + $1.dontdraw = false; //#28742 + $1.validatecheck = false; //#28743 + $forall($1.options, function() { //#28754 + var _3 = $k[--$j]; //#28754 + $1[$k[--$j]] = _3; //#28754 + }); //#28754 + $1.barchars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"; //#28757 + $1.charvals = new Map; //#28758 + for (var _5 = 0; _5 <= 42; _5 += 1) { //#28759 + $put($1.charvals, $geti($1.barchars, _5, 1), _5); //#28759 + } //#28759 + for (var _B = 0, _A = $1.barcode.length - 1; _B <= _A; _B += 1) { //#28766 + var _F = $get($1.charvals, $geti($1.barcode, _B, 1)) !== undefined; //#28763 + if (!_F) { //#28765 + $k[$j++] = 'bwipp.hibcazteccodeBadCharacter'; //#28764 + $k[$j++] = "HIBC Aztec Code must contain only digits, capital letters, spaces and the symbols -.$/+%"; //#28764 + $0.raiseerror(); //#28764 + } //#28764 + } //#28764 + $k[$j++] = 'barlen'; //#28768 + $k[$j++] = $1.barcode.length; //#28768 + if ($1.validatecheck) { //#28768 + var _I = $k[--$j]; //#28768 + $k[$j++] = $f(_I - 1); //#28768 + } //#28768 + var _J = $k[--$j]; //#28768 + $1[$k[--$j]] = _J; //#28768 + $1.checksum = 41; //#28770 + for (var _N = 0, _M = $f($1.barlen - 1); _N <= _M; _N += 1) { //#28774 + $1.checksum = $f($get($1.charvals, $geti($1.barcode, _N, 1)) + $1.checksum); //#28773 + } //#28773 + $1.checksum = $1.checksum % 43; //#28775 + if ($1.validatecheck) { //#28781 + if ($get($1.barcode, $1.barlen) != $get($1.barchars, $1.checksum)) { //#28779 + $k[$j++] = 'bwipp.hibcazteccodeBadCheckDigit'; //#28778 + $k[$j++] = "Incorrect HIBC Aztec Code check digit provided"; //#28778 + $0.raiseerror(); //#28778 + } //#28778 + $1.barcode = $geti($1.barcode, 0, $1.barlen); //#28780 + } //#28780 + var _f = $s($f($1.barlen + 2)); //#28783 + $puti(_f, 1, $1.barcode); //#28783 + $1.barcode = _f; //#28783 + $put($1.barcode, 0, 43); //#28784 + $put($1.barcode, $f($1.barlen + 1), $get($1.barchars, $1.checksum)); //#28785 + $put($1.options, "dontdraw", true); //#28788 + $put($1.options, "validatecheck", false); //#28789 + $k[$j++] = 'args'; //#28790 + $k[$j++] = $1.barcode; //#28790 + $k[$j++] = $1.options; //#28790 + $0.azteccode(); //#28790 + var _r = $k[--$j]; //#28790 + $1[$k[--$j]] = _r; //#28790 + $put($1.args, "opt", $1.options); //#28792 + $k[$j++] = $1.args; //#28795 + if (!$1.dontdraw) { //#28795 + $0.renmatrix(); //#28795 + } //#28795 }; $0.channelcode = function() { - var $1 = {}; - $1.options = $k[--$j]; - $1.barcode = $k[--$j]; - $1.dontdraw = false; - $1.shortfinder = false; - $1.includetext = false; - $1.includecheck = false; - $1.height = 1; - $forall($1.options, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - $1.height = +$1.height; - if ($1.barcode.length < 2 || $1.barcode.length > 7) { - $k[$j++] = "bwipp.channelcodeBadLength"; - $k[$j++] = "Channel Code must be 2 to 7 digits"; - $0.raiseerror(); - } - $forall($1.barcode, function() { - var _9 = $k[--$j]; - if (_9 < 48 || _9 > 57) { - $k[$j++] = "bwipp.channelcodeBadCharacter"; - $k[$j++] = "Channel Code must contain only digits"; - $0.raiseerror(); - } - }); - if (~~$z($1.barcode) > $get($a([ 26, 292, 3493, 44072, 576688, 7742862 ]), $1.barcode.length - 2)) { - $k[$j++] = "bwipp.channelcodeTooBig"; - $k[$j++] = "The Channel Code value is too big for the number of channels"; - $0.raiseerror(); - } + var $1 = {}; //#28825 + $1.options = $k[--$j]; //#28827 + $1.barcode = $k[--$j]; //#28828 + $1.dontdraw = false; //#28830 + $1.shortfinder = false; //#28831 + $1.includetext = false; //#28832 + $1.includecheck = false; //#28833 + $1.height = 1; //#28834 + $forall($1.options, function() { //#28845 + var _3 = $k[--$j]; //#28845 + $1[$k[--$j]] = _3; //#28845 + }); //#28845 + $1.height = +$1.height; //#28847 + if (($1.barcode.length < 2) || ($1.barcode.length > 7)) { //#28852 + $k[$j++] = 'bwipp.channelcodeBadLength'; //#28851 + $k[$j++] = "Channel Code must be 2 to 7 digits"; //#28851 + $0.raiseerror(); //#28851 + } //#28851 + $forall($1.barcode, function() { //#28857 + var _9 = $k[--$j]; //#28854 + if ((_9 < 48) || (_9 > 57)) { //#28856 + $k[$j++] = 'bwipp.channelcodeBadCharacter'; //#28855 + $k[$j++] = "Channel Code must contain only digits"; //#28855 + $0.raiseerror(); //#28855 + } //#28855 + }); //#28855 + if ((~~$z($1.barcode)) > $get($a([26, 292, 3493, 44072, 576688, 7742862]), $1.barcode.length - 2)) { //#28860 + $k[$j++] = 'bwipp.channelcodeTooBig'; //#28859 + $k[$j++] = "The Channel Code value is too big for the number of channels"; //#28859 + $0.raiseerror(); //#28859 + } //#28859 $1.nextb = function() { - var _E = $k[--$j]; - var _N = $f($get($1.s, _E) + $f($get($1.b, $f(_E - 1)) + $f($get($1.b, $f(_E - 2)) + $get($1.s, $f(_E - 1))))) > 4 ? 1 : 2; - $k[$j++] = _E; - $k[$j++] = _N; - if (_E < $f($1.chan + 2)) { - var _P = $k[--$j]; - var _Q = $k[--$j]; - var _R = $k[--$j]; - $k[$j++] = _R; - $k[$j++] = _Q; - $k[$j++] = _P; - for (var _T = _P, _S = _R; _T <= _S; _T += 1) { - var _V = $k[--$j]; - var _W = $k[--$j]; - $put($1.b, _W, _T); - var _X = $k[--$j]; - var _Y = $k[--$j]; - $k[$j++] = _Y; - $k[$j++] = _X; - $k[$j++] = _W; - $k[$j++] = _V; - $k[$j++] = $f($f(_X - _T) + 1); - $k[$j++] = _Y; - $k[$j++] = $f(_W + 1); - $1.nexts(); - } - } else { - var _Z = $k[--$j]; - var _a = $k[--$j]; - var _b = $k[--$j]; - $k[$j++] = _b; - $k[$j++] = _a; - $k[$j++] = _Z; - if ($le(_Z, _b)) { - var _d = $k[--$j]; - var _e = $k[--$j]; - var _f = $k[--$j]; - $put($1.b, _e, _f); - $k[$j++] = _f; - $k[$j++] = _e; - $k[$j++] = _d; - if ($1.value == $1.target) { - $k[$j++] = Infinity; - for (var _i = 3; _i <= 10; _i += 1) { - $k[$j++] = $get($1.s, _i); - $k[$j++] = $get($1.b, _i); - } - $1.out = $geti($a(), 0, $1.chan * 2); - } - $1.value = $1.value + 1; - } - } - $j -= 4; - }; + var _E = $k[--$j]; //#28863 + var _N = (($f($get($1.s, _E) + ($f($get($1.b, $f(_E - 1)) + $f($get($1.b, $f(_E - 2)) + $get($1.s, $f(_E - 1))))))) > 4) ? 1 : 2; //#28868 + $k[$j++] = _E; //#28884 + $k[$j++] = _N; //#28884 + if (_E < $f($1.chan + 2)) { //#28882 + var _P = $k[--$j]; //#28870 + var _Q = $k[--$j]; //#28870 + var _R = $k[--$j]; //#28870 + $k[$j++] = _R; //#28873 + $k[$j++] = _Q; //#28873 + $k[$j++] = _P; //#28873 + for (var _T = _P, _S = _R; _T <= _S; _T += 1) { //#28873 + var _V = $k[--$j]; //#28871 + var _W = $k[--$j]; //#28871 + $put($1.b, _W, _T); //#28871 + var _X = $k[--$j]; //#28872 + var _Y = $k[--$j]; //#28872 + $k[$j++] = _Y; //#28872 + $k[$j++] = _X; //#28872 + $k[$j++] = _W; //#28872 + $k[$j++] = _V; //#28872 + $k[$j++] = $f($f(_X - _T) + 1); //#28872 + $k[$j++] = _Y; //#28872 + $k[$j++] = $f(_W + 1); //#28872 + $1.nexts(); //#28872 + } //#28872 + } else { //#28882 + var _Z = $k[--$j]; //#28875 + var _a = $k[--$j]; //#28875 + var _b = $k[--$j]; //#28875 + $k[$j++] = _b; //#28883 + $k[$j++] = _a; //#28883 + $k[$j++] = _Z; //#28883 + if ($le(_Z, _b)) { //#28883 + var _d = $k[--$j]; //#28876 + var _e = $k[--$j]; //#28876 + var _f = $k[--$j]; //#28876 + $put($1.b, _e, _f); //#28876 + $k[$j++] = _f; //#28881 + $k[$j++] = _e; //#28881 + $k[$j++] = _d; //#28881 + if ($1.value == $1.target) { //#28881 + $k[$j++] = Infinity; //#28879 + for (var _i = 3; _i <= 10; _i += 1) { //#28879 + $k[$j++] = $get($1.s, _i); //#28879 + $k[$j++] = $get($1.b, _i); //#28879 + } //#28879 + $1.out = $geti($a(), 0, $1.chan * 2); //#28880 + } //#28880 + $1.value = $1.value + 1; //#28882 + } //#28882 + } //#28882 + $j -= 4; //#28885 + }; //#28886 $1.nexts = function() { - var _r = $k[--$j]; - $k[$j++] = _r; - if (_r < $f($1.chan + 2)) { - $k[$j++] = 1; - } else { - var _t = $k[--$j]; - var _u = $k[--$j]; - $k[$j++] = _u; - $k[$j++] = _t; - $k[$j++] = _u; - } - var _v = $k[--$j]; - var _w = $k[--$j]; - var _x = $k[--$j]; - $k[$j++] = _x; - $k[$j++] = _w; - for (var _z = _v, _y = _x; _z <= _y; _z += 1) { - var _11 = $k[--$j]; - $put($1.s, _11, _z); - var _12 = $k[--$j]; - var _13 = $k[--$j]; - $k[$j++] = _13; - $k[$j++] = _12; - $k[$j++] = _11; - $k[$j++] = $f($f(_12 - _z) + 1); - $k[$j++] = _13; - $k[$j++] = _11; - $1.nextb(); - } - $j -= 3; - }; + var _r = $k[--$j]; //#28889 + $k[$j++] = _r; //#28889 + if (_r < $f($1.chan + 2)) { //#28889 + $k[$j++] = 1; //#28889 + } else { //#28889 + var _t = $k[--$j]; //#28889 + var _u = $k[--$j]; //#28889 + $k[$j++] = _u; //#28889 + $k[$j++] = _t; //#28889 + $k[$j++] = _u; //#28889 + } //#28889 + var _v = $k[--$j]; //#28889 + var _w = $k[--$j]; //#28889 + var _x = $k[--$j]; //#28889 + $k[$j++] = _x; //#28892 + $k[$j++] = _w; //#28892 + for (var _z = _v, _y = _x; _z <= _y; _z += 1) { //#28892 + var _11 = $k[--$j]; //#28890 + $put($1.s, _11, _z); //#28890 + var _12 = $k[--$j]; //#28891 + var _13 = $k[--$j]; //#28891 + $k[$j++] = _13; //#28891 + $k[$j++] = _12; //#28891 + $k[$j++] = _11; //#28891 + $k[$j++] = $f($f(_12 - _z) + 1); //#28891 + $k[$j++] = _13; //#28891 + $k[$j++] = _11; //#28891 + $1.nextb(); //#28891 + } //#28891 + $j -= 3; //#28893 + }; //#28894 $1.encode = function() { - $1.chan = $k[--$j]; - $1.target = $k[--$j]; - $1.value = 0; - $1.out = -1; - $1.b = $a([ 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]); - $1.s = $a([ 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 ]); - var _18 = $1.chan; - $k[$j++] = _18; - $k[$j++] = _18; - $k[$j++] = 3; - $1.nexts(); - $k[$j++] = $1.out; - }; - $1.barlen = $1.barcode.length; - $k[$j++] = "finder"; - if ($1.shortfinder) { - $k[$j++] = $a([ 1, 1, 1, 1, 1 ]); - } else { - $k[$j++] = $a([ 1, 1, 1, 1, 1, 1, 1, 1, 1 ]); - } - var _1E = $k[--$j]; - $1[$k[--$j]] = _1E; - $k[$j++] = "data"; - $k[$j++] = ~~$z($1.barcode); - $k[$j++] = $1.barlen + 1; - $1.encode(); - var _1I = $k[--$j]; - $1[$k[--$j]] = _1I; - $1.check = $a([]); - if ($1.includecheck) { - $1.mod23 = $get($a([ $a([]), $a([]), $a([ 13, 12, 4, 9, 3, 1 ]), $a([ 13, 2, 12, 3, 18, 16, 4, 1 ]), $a([ 11, 16, 17, 8, 20, 4, 10, 2, 5, 1 ]), $a([ 1, 4, 16, 18, 3, 12, 2, 8, 9, 13, 6, 1 ]), $a([ 20, 16, 22, 13, 15, 12, 5, 4, 8, 9, 21, 3, 7, 1 ]), $a([ 2, 6, 18, 8, 1, 3, 9, 4, 12, 13, 16, 2, 6, 18, 8, 1 ]) ]), $1.barlen); - $k[$j++] = 0; - for (var _1Z = 0, _1Y = $1.data.length - 1; _1Z <= _1Y; _1Z += 1) { - var _1e = $k[--$j]; - $k[$j++] = $f(_1e + $f($get($1.data, _1Z) - 1) * $get($1.mod23, _1Z)); - } - var _1f = $k[--$j]; - $k[$j++] = _1f % 23; - $k[$j++] = 3; - $1.encode(); - $1.check = $k[--$j]; - } - $k[$j++] = Infinity; - $aload($1.finder); - $aload($1.data); - $aload($1.check); - $1.sbs = $a(); - $1.txt = $a($1.barlen); - for (var _1p = 0, _1o = $1.barlen - 1; _1p <= _1o; _1p += 1) { - $1.i = _1p; - $put($1.txt, $1.i, $a([ $geti($1.barcode, $1.i, 1), 0, 0, "", 0 ])); - } - $k[$j++] = Infinity; - var _1w = $1.sbs; - $k[$j++] = Infinity; - for (var _1y = 0, _1z = ~~(($1.sbs.length + 1) / 2); _1y < _1z; _1y++) { - $k[$j++] = $1.height; - } - var _21 = $a(); - $k[$j++] = Infinity; - for (var _23 = 0, _24 = ~~(($1.sbs.length + 1) / 2); _23 < _24; _23++) { - $k[$j++] = 0; - } - var _25 = $a(); - $k[$j++] = "ren"; - $k[$j++] = $0.renlinear; - $k[$j++] = "sbs"; - $k[$j++] = _1w; - $k[$j++] = "bhs"; - $k[$j++] = _21; - $k[$j++] = "bbs"; - $k[$j++] = _25; - $k[$j++] = "txt"; - $k[$j++] = $1.txt; - $k[$j++] = "textxalign"; - $k[$j++] = "center"; - $k[$j++] = "opt"; - $k[$j++] = $1.options; - var _28 = $d(); - $k[$j++] = _28; - if (!$1.dontdraw) { - $0.renlinear(); - } + $1.chan = $k[--$j]; //#28897 + $1.target = $k[--$j]; //#28898 + $1.value = 0; //#28899 + $1.out = -1; //#28900 + $1.b = $a([1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0]); //#28901 + $1.s = $a([0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0]); //#28902 + var _18 = $1.chan; //#28903 + $k[$j++] = _18; //#28903 + $k[$j++] = _18; //#28903 + $k[$j++] = 3; //#28903 + $1.nexts(); //#28903 + $k[$j++] = $1.out; //#28904 + }; //#28905 + $1.barlen = $1.barcode.length; //#28907 + $k[$j++] = 'finder'; //#28910 + if ($1.shortfinder) { //#28910 + $k[$j++] = $a([1, 1, 1, 1, 1]); //#28910 + } else { //#28910 + $k[$j++] = $a([1, 1, 1, 1, 1, 1, 1, 1, 1]); //#28910 + } //#28910 + var _1E = $k[--$j]; //#28910 + $1[$k[--$j]] = _1E; //#28910 + $k[$j++] = 'data'; //#28913 + $k[$j++] = ~~$z($1.barcode); //#28913 + $k[$j++] = $1.barlen + 1; //#28913 + $1.encode(); //#28913 + var _1I = $k[--$j]; //#28913 + $1[$k[--$j]] = _1I; //#28913 + $1.check = $a([]); //#28916 + if ($1.includecheck) { //#28932 + $1.mod23 = $get($a([$a([]), $a([]), $a([13, 12, 4, 9, 3, 1]), $a([13, 2, 12, 3, 18, 16, 4, 1]), $a([11, 16, 17, 8, 20, 4, 10, 2, 5, 1]), $a([1, 4, 16, 18, 3, 12, 2, 8, 9, 13, 6, 1]), $a([20, 16, 22, 13, 15, 12, 5, 4, 8, 9, 21, 3, 7, 1]), $a([2, 6, 18, 8, 1, 3, 9, 4, 12, 13, 16, 2, 6, 18, 8, 1])]), $1.barlen); //#28926 + $k[$j++] = 0; //#28930 + for (var _1Z = 0, _1Y = $1.data.length - 1; _1Z <= _1Y; _1Z += 1) { //#28930 + var _1e = $k[--$j]; //#28929 + $k[$j++] = $f(_1e + ($f($get($1.data, _1Z) - 1) * $get($1.mod23, _1Z))); //#28929 + } //#28929 + var _1f = $k[--$j]; //#28931 + $k[$j++] = _1f % 23; //#28931 + $k[$j++] = 3; //#28931 + $1.encode(); //#28931 + $1.check = $k[--$j]; //#28931 + } //#28931 + $k[$j++] = Infinity; //#28938 + $aload($1.finder); //#28936 + $aload($1.data); //#28937 + $aload($1.check); //#28938 + $1.sbs = $a(); //#28938 + $1.txt = $a($1.barlen); //#28942 + for (var _1p = 0, _1o = $1.barlen - 1; _1p <= _1o; _1p += 1) { //#28946 + $1.i = _1p; //#28944 + $put($1.txt, $1.i, $a([$geti($1.barcode, $1.i, 1), 0, 0, "", 0])); //#28945 + } //#28945 + $k[$j++] = Infinity; //#28956 + var _1w = $1.sbs; //#28951 + $k[$j++] = Infinity; //#28952 + for (var _1y = 0, _1z = ~~(($1.sbs.length + 1) / 2); _1y < _1z; _1y++) { //#28952 + $k[$j++] = $1.height; //#28952 + } //#28952 + var _21 = $a(); //#28952 + $k[$j++] = Infinity; //#28953 + for (var _23 = 0, _24 = ~~(($1.sbs.length + 1) / 2); _23 < _24; _23++) { //#28953 + $k[$j++] = 0; //#28953 + } //#28953 + var _25 = $a(); //#28953 + $k[$j++] = 'ren'; //#28956 + $k[$j++] = $0.renlinear; //#28956 + $k[$j++] = 'sbs'; //#28956 + $k[$j++] = _1w; //#28956 + $k[$j++] = 'bhs'; //#28956 + $k[$j++] = _21; //#28956 + $k[$j++] = 'bbs'; //#28956 + $k[$j++] = _25; //#28956 + $k[$j++] = 'txt'; //#28956 + $k[$j++] = $1.txt; //#28956 + $k[$j++] = 'textxalign'; //#28956 + $k[$j++] = "center"; //#28956 + $k[$j++] = 'opt'; //#28956 + $k[$j++] = $1.options; //#28956 + var _28 = $d(); //#28956 + $k[$j++] = _28; //#28959 + if (!$1.dontdraw) { //#28959 + $0.renlinear(); //#28959 + } //#28959 }; $0.renlinear = function() { - if ($0.bwipjs_dontdraw) { - return; - } - var $1 = {}; - $1.args = $k[--$j]; - $1.sbs = $a([]); - $1.bhs = $a([]); - $1.bbs = $a([]); - $1.txt = $a([]); - $1.barcolor = "unset"; - $1.includetext = false; - $1.textcolor = "unset"; - $1.textxalign = "unset"; - $1.textyalign = "unset"; - $1.textfont = "OCR-B"; - $1.textsize = 10; - $1.textxoffset = 0; - $1.textyoffset = 0; - $1.textgaps = 0; - $1.alttext = ""; - $1.bordercolor = "unset"; - $1.backgroundcolor = "unset"; - $1.inkspread = 0; - $1.width = 0; - $1.barratio = 1; - $1.spaceratio = 1; - $1.showborder = false; - $1.borderleft = 10; - $1.borderright = 10; - $1.bordertop = 1; - $1.borderbottom = 1; - $1.borderwidth = .5; - $1.guardwhitespace = false; - $1.guardleftpos = 0; - $1.guardleftypos = 0; - $1.guardrightpos = 0; - $1.guardrightypos = 0; - $1.guardwidth = 7; - $1.guardheight = 7; - $forall($1.args, function() { - var _7 = $k[--$j]; - $1[$k[--$j]] = _7; - }); - var _9 = $1.opt; - for (var _E = _9.size, _D = _9.keys(), _C = 0; _C < _E; _C++) { - var _A = _D.next().value; - $1[_A] = _9.get(_A); - } - $1.barcolor = "" + $1.barcolor; - $1.textcolor = "" + $1.textcolor; - $1.textxalign = "" + $1.textxalign; - $1.textyalign = "" + $1.textyalign; - $1.textfont = "" + $1.textfont; - $1.textsize = +$1.textsize; - $1.textxoffset = +$1.textxoffset; - $1.textyoffset = +$1.textyoffset; - $1.textgaps = +$1.textgaps; - $1.alttext = "" + $1.alttext; - $1.bordercolor = "" + $1.bordercolor; - $1.backgroundcolor = "" + $1.backgroundcolor; - $1.inkspread = +$1.inkspread; - $1.width = +$1.width; - $1.barratio = +$1.barratio; - $1.spaceratio = +$1.spaceratio; - $1.borderleft = +$1.borderleft; - $1.borderright = +$1.borderright; - $1.bordertop = +$1.bordertop; - $1.borderbottom = +$1.borderbottom; - $1.borderwidth = +$1.borderwidth; - $1.guardleftpos = +$1.guardleftpos; - $1.guardleftypos = +$1.guardleftypos; - $1.guardrightpos = +$1.guardrightpos; - $1.guardrightypos = +$1.guardrightypos; - $1.guardwidth = +$1.guardwidth; - $1.guardheight = +$1.guardheight; - $1.bars = $a(~~(($1.sbs.length + 1) / 2)); - $1.x = 0; - $1.maxh = 0; - for (var _k = 0, _j = ~~(($1.sbs.length + 1) / 2) * 2 - 2; _k <= _j; _k += 1) { - $1.i = _k; - if ($1.i % 2 == 0) { - $1.d = $f($f($get($1.sbs, $1.i) * $1.barratio - $1.barratio) + 1); - if ($get($1.sbs, $1.i) != 0) { - $1.h = $get($1.bhs, ~~($1.i / 2)) * 72; - $1.c = $f($1.d / 2 + $1.x); - $1.y = $get($1.bbs, ~~($1.i / 2)) * 72; - $1.w = $f($1.d - $1.inkspread); - $put($1.bars, ~~($1.i / 2), $a([ $1.h, $1.c, $1.y, $1.w ])); - if ($f($1.h + $1.y) > $1.maxh) { - $1.maxh = $f($1.h + $1.y); - } - } else { - $put($1.bars, ~~($1.i / 2), -1); - } - } else { - $1.d = $f($f($get($1.sbs, $1.i) * $1.spaceratio - $1.spaceratio) + 1); - } - $1.x = $f($1.x + $1.d); - } - $$.save(); - var _1P = $$.currpos(); - $$.translate(_1P.x, _1P.y); - if ($1.width != 0) { - $$.scale($1.width * 72 / $1.x, 1); - } - $$.newpath(); - $$.moveto(-$1.borderleft, -$1.borderbottom); - $$.rlineto($f($f($1.x + $1.borderleft) + $1.borderright), 0); - $$.rlineto(0, $f($f($1.maxh + $1.borderbottom) + $1.bordertop)); - $$.rlineto(-$f($f($1.x + $1.borderleft) + $1.borderright), 0); - $$.rlineto(0, -$f($f($1.maxh + $1.borderbottom) + $1.bordertop)); - $$.closepath(); - if ($1.showborder) { - $$.save(); - if ($ne($1.bordercolor, "unset")) { - $$.setcolor($1.bordercolor); - } - $$.setlinewidth($1.borderwidth); - $$.stroke(); - $$.restore(); - } - $$.save(); - if ($ne($1.barcolor, "unset")) { - $$.setcolor($1.barcolor); - } - var _1n = $1.bars; - for (var _1o = 0, _1p = _1n.length; _1o < _1p; _1o++) { - var _1q = $get(_1n, _1o); - $k[$j++] = _1q; - if (_1q != -1) { - $aload($k[--$j]); - $$.newpath(); - $$.setlinewidth($k[--$j]); - var _1t = $k[--$j]; - $$.moveto($k[--$j], _1t); - $$.rlineto(0, $k[--$j]); - $$.stroke(); - } else { - $j--; - } - } - $$.restore(); - if ($ne($1.textcolor, "unset")) { - $$.setcolor($1.textcolor); - } - if ($1.includetext) { - if ($eq($1.textxalign, "unset") && $eq($1.textyalign, "unset") && $eq($1.alttext, "")) { - $1.s = 0; - $1.fn = ""; - var _22 = $1.txt; - for (var _23 = 0, _24 = _22.length; _23 < _24; _23++) { - $forall($get(_22, _23)); - var _26 = $k[--$j]; - var _27 = $k[--$j]; - $k[$j++] = _27; - $k[$j++] = _26; - if (_26 != $1.s || $ne(_27, $1.fn)) { - var _2A = $k[--$j]; - var _2B = $k[--$j]; - $1.s = _2A; - $1.fn = _2B; - $$.selectfont(_2B, _2A); - } else { - $j -= 2; - } - var _2C = $k[--$j]; - $$.moveto($k[--$j], _2C); - $$.show($k[--$j], 0, 0); - } - } else { - $$.selectfont($1.textfont, $1.textsize); - if ($eq($1.alttext, "")) { - $k[$j++] = Infinity; - var _2I = $1.txt; - for (var _2J = 0, _2K = _2I.length; _2J < _2K; _2J++) { - $forall($get($get(_2I, _2J), 0)); - } - $1.txt = $a(); - $1.tstr = $s($1.txt.length); - for (var _2S = 0, _2R = $1.txt.length - 1; _2S <= _2R; _2S += 1) { - $put($1.tstr, _2S, $get($1.txt, _2S)); - } - } else { - $1.tstr = $1.alttext; - } - if ($1.tstr.length == 0) { - $k[$j++] = 0; - } else { - $$.save(); - $$.newpath(); - $$.moveto(0, 0); - $$.charpath("0", false); - var _2Y = $$.pathbbox(); - $$.restore(); - $k[$j++] = _2Y.ury; - } - $1.textascent = $k[--$j]; - var _2b = $$.stringwidth($1.tstr); - $1.textwidth = $f(_2b.w + ($1.tstr.length - 1) * $1.textgaps); - $1.textxpos = $f($1.textxoffset + $f($1.x - $1.textwidth) / 2); - if ($eq($1.textxalign, "left")) { - $1.textxpos = $1.textxoffset; - } - if ($eq($1.textxalign, "right")) { - $1.textxpos = $f($f($1.x - $1.textxoffset) - $1.textwidth); - } - if ($eq($1.textxalign, "offleft")) { - $1.textxpos = -$f($1.textwidth + $1.textxoffset); - } - if ($eq($1.textxalign, "offright")) { - $1.textxpos = $f($1.x + $1.textxoffset); - } - if ($eq($1.textxalign, "justify") && $1.textwidth < $1.x) { - $1.textxpos = 0; - $1.textgaps = $f($1.x - $1.textwidth) / ($1.tstr.length - 1); - } - $1.textypos = -$f($f($1.textyoffset + $1.textascent) + 1); - if ($eq($1.textyalign, "above")) { - $1.textypos = $f($f($1.textyoffset + $1.maxh) + 1); - } - if ($eq($1.textyalign, "center")) { - $1.textypos = $f($1.textyoffset + $f($1.maxh - $1.textascent) / 2); - } - $$.moveto($1.textxpos, $1.textypos); - $$.show($1.tstr, $1.textgaps, 0); - } - } - if ($1.guardwhitespace) { - $$.selectfont("OCR-B", $1.guardheight * 2); - if ($1.guardleftpos != 0) { - $$.moveto($f(-$1.guardleftpos - 1), $f($f($1.guardleftypos - $1.guardheight / 2) - 1.5)); - $$.show("<", 0, 0); - } - if ($1.guardrightpos != 0) { - $$.moveto($f($f($f($1.guardrightpos + $1.x) - $1.guardwidth) + 1), $f($f($1.guardrightypos - $1.guardheight / 2) - 1.5)); - $$.show(">", 0, 0); - } - } - $$.restore(); + if ($0.bwipjs_dontdraw) { //#28980 + return; //#28980 + } //#28980 + var $1 = {}; //#28981 + $1.args = $k[--$j]; //#28983 + $1.sbs = $a([]); //#28986 + $1.bhs = $a([]); //#28987 + $1.bbs = $a([]); //#28988 + $1.txt = $a([]); //#28989 + $1.barcolor = "unset"; //#28990 + $1.includetext = false; //#28991 + $1.textcolor = "unset"; //#28992 + $1.textxalign = "unset"; //#28993 + $1.textyalign = "unset"; //#28994 + $1.textfont = "OCR-B"; //#28995 + $1.textsize = 10; //#28996 + $1.textxoffset = 0; //#28997 + $1.textyoffset = 0; //#28998 + $1.textgaps = 0; //#28999 + $1.alttext = ""; //#29000 + $1.bordercolor = "unset"; //#29001 + $1.backgroundcolor = "unset"; //#29002 + $1.inkspread = 0; //#29003 + $1.width = 0; //#29004 + $1.barratio = 1; //#29005 + $1.spaceratio = 1; //#29006 + $1.showborder = false; //#29007 + $1.borderleft = 10; //#29008 + $1.borderright = 10; //#29009 + $1.bordertop = 1; //#29010 + $1.borderbottom = 1; //#29011 + $1.borderwidth = 0.5; //#29012 + $1.guardwhitespace = false; //#29013 + $1.guardleftpos = 0; //#29014 + $1.guardleftypos = 0; //#29015 + $1.guardrightpos = 0; //#29016 + $1.guardrightypos = 0; //#29017 + $1.guardwidth = 7; //#29018 + $1.guardheight = 7; //#29019 + $forall($1.args, function() { //#29022 + var _7 = $k[--$j]; //#29022 + $1[$k[--$j]] = _7; //#29022 + }); //#29022 + var _9 = $1.opt; //#29023 + for (var _E = _9.size, _D = _9.keys(), _C = 0; _C < _E; _C++) { //#29023 + var _A = _D.next().value; //#29023 + $1[_A] = _9.get(_A); //#29023 + } //#29023 + $1.barcolor = "" + $1.barcolor; //#29025 + $1.textcolor = "" + $1.textcolor; //#29026 + $1.textxalign = "" + $1.textxalign; //#29027 + $1.textyalign = "" + $1.textyalign; //#29028 + $1.textfont = "" + $1.textfont; //#29029 + $1.textsize = +$1.textsize; //#29030 + $1.textxoffset = +$1.textxoffset; //#29031 + $1.textyoffset = +$1.textyoffset; //#29032 + $1.textgaps = +$1.textgaps; //#29033 + $1.alttext = "" + $1.alttext; //#29034 + $1.bordercolor = "" + $1.bordercolor; //#29035 + $1.backgroundcolor = "" + $1.backgroundcolor; //#29036 + $1.inkspread = +$1.inkspread; //#29037 + $1.width = +$1.width; //#29038 + $1.barratio = +$1.barratio; //#29039 + $1.spaceratio = +$1.spaceratio; //#29040 + $1.borderleft = +$1.borderleft; //#29041 + $1.borderright = +$1.borderright; //#29042 + $1.bordertop = +$1.bordertop; //#29043 + $1.borderbottom = +$1.borderbottom; //#29044 + $1.borderwidth = +$1.borderwidth; //#29045 + $1.guardleftpos = +$1.guardleftpos; //#29046 + $1.guardleftypos = +$1.guardleftypos; //#29047 + $1.guardrightpos = +$1.guardrightpos; //#29048 + $1.guardrightypos = +$1.guardrightypos; //#29049 + $1.guardwidth = +$1.guardwidth; //#29050 + $1.guardheight = +$1.guardheight; //#29051 + $1.bars = $a(~~(($1.sbs.length + 1) / 2)); //#29054 + $1.x = 0; //#29055 + $1.maxh = 0; //#29055 + for (var _k = 0, _j = ((~~(($1.sbs.length + 1) / 2)) * 2) - 2; _k <= _j; _k += 1) { //#29074 + $1.i = _k; //#29057 + if (($1.i % 2) == 0) { //#29071 + $1.d = $f(($f(($get($1.sbs, $1.i) * $1.barratio) - $1.barratio)) + 1); //#29059 + if ($get($1.sbs, $1.i) != 0) { //#29068 + $1.h = $get($1.bhs, ~~($1.i / 2)) * 72; //#29061 + $1.c = $f(($1.d / 2) + $1.x); //#29062 + $1.y = $get($1.bbs, ~~($1.i / 2)) * 72; //#29063 + $1.w = $f($1.d - $1.inkspread); //#29064 + $put($1.bars, ~~($1.i / 2), $a([$1.h, $1.c, $1.y, $1.w])); //#29065 + if ($f($1.h + $1.y) > $1.maxh) { //#29066 + $1.maxh = $f($1.h + $1.y); //#29066 + } //#29066 + } else { //#29068 + $put($1.bars, ~~($1.i / 2), -1); //#29068 + } //#29068 + } else { //#29071 + $1.d = $f(($f(($get($1.sbs, $1.i) * $1.spaceratio) - $1.spaceratio)) + 1); //#29071 + } //#29071 + $1.x = $f($1.x + $1.d); //#29073 + } //#29073 + $$.save(); //#29076 + var _1P = $$.currpos(); //#29078 + $$.translate(_1P.x, _1P.y); //#29078 + if ($1.width != 0) { //#29083 + $$.scale(($1.width * 72) / $1.x, 1); //#29082 + } //#29082 + $$.newpath(); //#29086 + $$.moveto(-$1.borderleft, -$1.borderbottom); //#29087 + $$.rlineto($f($f($1.x + $1.borderleft) + $1.borderright), 0); //#29088 + $$.rlineto(0, $f($f($1.maxh + $1.borderbottom) + $1.bordertop)); //#29089 + $$.rlineto(-($f($f($1.x + $1.borderleft) + $1.borderright)), 0); //#29090 + $$.rlineto(0, -($f($f($1.maxh + $1.borderbottom) + $1.bordertop))); //#29091 + $$.closepath(); //#29092 + if ($1.showborder) { //#29100 + $$.save(); //#29096 + if ($ne($1.bordercolor, "unset")) { //#29097 + $$.setcolor($1.bordercolor); //#29097 + } //#29097 + $$.setlinewidth($1.borderwidth); //#29098 + $$.stroke(); //#29098 + $$.restore(); //#29099 + } //#29099 + $$.save(); //#29103 + if ($ne($1.barcolor, "unset")) { //#29105 + $$.setcolor($1.barcolor); //#29105 + } //#29105 + var _1n = $1.bars; //#29106 + for (var _1o = 0, _1p = _1n.length; _1o < _1p; _1o++) { //#29112 + var _1q = $get(_1n, _1o); //#29112 + $k[$j++] = _1q; //#29111 + if (_1q != -1) { //#29110 + $aload($k[--$j]); //#29108 + $$.newpath(); //#29108 + $$.setlinewidth($k[--$j]); //#29108 + var _1t = $k[--$j]; //#29108 + $$.moveto($k[--$j], _1t); //#29108 + $$.rlineto(0, $k[--$j]); //#29108 + $$.stroke(); //#29108 + } else { //#29110 + $j--; //#29110 + } //#29110 + } //#29110 + $$.restore(); //#29113 + if ($ne($1.textcolor, "unset")) { //#29116 + $$.setcolor($1.textcolor); //#29116 + } //#29116 + if ($1.includetext) { //#29173 + if (($eq($1.textxalign, "unset") && $eq($1.textyalign, "unset")) && $eq($1.alttext, "")) { //#29171 + $1.s = 0; //#29119 + $1.fn = ""; //#29119 + var _22 = $1.txt; //#29120 + for (var _23 = 0, _24 = _22.length; _23 < _24; _23++) { //#29129 + $forall($get(_22, _23)); //#29121 + var _26 = $k[--$j]; //#29122 + var _27 = $k[--$j]; //#29122 + $k[$j++] = _27; //#29127 + $k[$j++] = _26; //#29127 + if ((_26 != $1.s) || $ne(_27, $1.fn)) { //#29126 + var _2A = $k[--$j]; //#29123 + var _2B = $k[--$j]; //#29123 + $1.s = _2A; //#29123 + $1.fn = _2B; //#29123 + $$.selectfont(_2B, _2A); //#29124 + } else { //#29126 + $j -= 2; //#29126 + } //#29126 + var _2C = $k[--$j]; //#29128 + $$.moveto($k[--$j], _2C); //#29128 + $$.show($k[--$j], 0, 0); //#29128 + } //#29128 + } else { //#29171 + $$.selectfont($1.textfont, $1.textsize); //#29131 + if ($eq($1.alttext, "")) { //#29137 + $k[$j++] = Infinity; //#29133 + var _2I = $1.txt; //#29133 + for (var _2J = 0, _2K = _2I.length; _2J < _2K; _2J++) { //#29133 + $forall($get($get(_2I, _2J), 0)); //#29133 + } //#29133 + $1.txt = $a(); //#29133 + $1.tstr = $s($1.txt.length); //#29134 + for (var _2S = 0, _2R = $1.txt.length - 1; _2S <= _2R; _2S += 1) { //#29135 + $put($1.tstr, _2S, $get($1.txt, _2S)); //#29135 + } //#29135 + } else { //#29137 + $1.tstr = $1.alttext; //#29137 + } //#29137 + if ($1.tstr.length == 0) { //#29147 + $k[$j++] = 0; //#29142 + } else { //#29147 + $$.save(); //#29144 + $$.newpath(); //#29145 + $$.moveto(0, 0); //#29145 + $$.charpath("0", false); //#29145 + var _2Y = $$.pathbbox(); //#29145 + $$.restore(); //#29147 + $k[$j++] = _2Y.ury; //#29147 + } //#29147 + $1.textascent = $k[--$j]; //#29156 + var _2b = $$.stringwidth($1.tstr); //#29157 + $1.textwidth = $f(_2b.w + (($1.tstr.length - 1) * $1.textgaps)); //#29157 + $1.textxpos = $f($1.textxoffset + ($f($1.x - $1.textwidth) / 2)); //#29159 + if ($eq($1.textxalign, "left")) { //#29160 + $1.textxpos = $1.textxoffset; //#29160 + } //#29160 + if ($eq($1.textxalign, "right")) { //#29161 + $1.textxpos = $f($f($1.x - $1.textxoffset) - $1.textwidth); //#29161 + } //#29161 + if ($eq($1.textxalign, "offleft")) { //#29162 + $1.textxpos = -$f($1.textwidth + $1.textxoffset); //#29162 + } //#29162 + if ($eq($1.textxalign, "offright")) { //#29163 + $1.textxpos = $f($1.x + $1.textxoffset); //#29163 + } //#29163 + if ($eq($1.textxalign, "justify") && ($1.textwidth < $1.x)) { //#29167 + $1.textxpos = 0; //#29165 + $1.textgaps = $f($1.x - $1.textwidth) / ($1.tstr.length - 1); //#29166 + } //#29166 + $1.textypos = -($f($f($1.textyoffset + $1.textascent) + 1)); //#29168 + if ($eq($1.textyalign, "above")) { //#29169 + $1.textypos = $f($f($1.textyoffset + $1.maxh) + 1); //#29169 + } //#29169 + if ($eq($1.textyalign, "center")) { //#29170 + $1.textypos = $f($1.textyoffset + ($f($1.maxh - $1.textascent) / 2)); //#29170 + } //#29170 + $$.moveto($1.textxpos, $1.textypos); //#29171 + $$.show($1.tstr, $1.textgaps, 0); //#29171 + } //#29171 + } //#29171 + if ($1.guardwhitespace) { //#29186 + $$.selectfont("OCR-B", $1.guardheight * 2); //#29177 + if ($1.guardleftpos != 0) { //#29181 + $$.moveto($f((-$1.guardleftpos) - 1), $f(($f($1.guardleftypos - ($1.guardheight / 2))) - 1.5)); //#29179 + $$.show("<", 0, 0); //#29180 + } //#29180 + if ($1.guardrightpos != 0) { //#29185 + $$.moveto($f(($f($f($1.guardrightpos + $1.x) - $1.guardwidth)) + 1), $f(($f($1.guardrightypos - ($1.guardheight / 2))) - 1.5)); //#29183 + $$.show(">", 0, 0); //#29184 + } //#29184 + } //#29184 + $$.restore(); //#29188 }; $0.renmaximatrix = function() { - if ($0.bwipjs_dontdraw) { - return; - } - var $1 = {}; - $1.args = $k[--$j]; - $1.barcolor = "unset"; - $1.backgroundcolor = "unset"; - $forall($1.args, function() { - var _3 = $k[--$j]; - $1[$k[--$j]] = _3; - }); - var _5 = $1.opt; - for (var _A = _5.size, _9 = _5.keys(), _8 = 0; _8 < _A; _8++) { - var _6 = _9.next().value; - $1[_6] = _5.get(_6); - } - $1.barcolor = "" + $1.barcolor; - $1.backgroundcolor = "" + $1.backgroundcolor; - $$.save(); - if ($ne($1.barcolor, "unset")) { - $$.setcolor($1.barcolor); - } - $$.maxicode($1.pixs); - $$.restore(); + if ($0.bwipjs_dontdraw) { //#29208 + return; //#29208 + } //#29208 + var $1 = {}; //#29210 + $1.args = $k[--$j]; //#29212 + $1.barcolor = "unset"; //#29215 + $1.backgroundcolor = "unset"; //#29216 + $forall($1.args, function() { //#29219 + var _3 = $k[--$j]; //#29219 + $1[$k[--$j]] = _3; //#29219 + }); //#29219 + var _5 = $1.opt; //#29220 + for (var _A = _5.size, _9 = _5.keys(), _8 = 0; _8 < _A; _8++) { //#29220 + var _6 = _9.next().value; //#29220 + $1[_6] = _5.get(_6); //#29220 + } //#29220 + $1.barcolor = "" + $1.barcolor; //#29222 + $1.backgroundcolor = "" + $1.backgroundcolor; //#29223 + $$.save(); //#29225 + if ($ne($1.barcolor, "unset")) { //#29227 + $$.setcolor($1.barcolor); //#29227 + } //#29227 + $$.maxicode($1.pixs); //#29228 + $$.restore(); //#29230 }; + // bwip-js/barcode-ftr.js + // + // This code is injected below the cross-compiled barcode.ps. + + // The BWIPP symbol is a factory object. When called, it returns this + // function, which is a re-usable postscript emulation for BWIPP. return function(bwipjs, encoder, text, opts, dontdraw) { if (!$0[encoder]) { - throw new Error("bwipp.unknownEncoder: " + encoder); + throw new Error('bwipp.unknownEncoder: ' + encoder); } - if (typeof text !== "string") { - throw new Error("bwipp.typeError: barcode text not a string (" + text + ")"); + if (typeof text !== 'string') { + throw new Error('bwipp.typeError: barcode text not a string (' + + text + ')'); } opts = opts || {}; - if (typeof opts === "string") { - var tmp = opts.split(" "); + if (typeof opts === 'string') { + var tmp = opts.split(' '); opts = {}; for (var i = 0; i < tmp.length; i++) { if (!tmp[i]) { continue; } - var eq = tmp[i].indexOf("="); + var eq = tmp[i].indexOf('='); if (eq == -1) { opts[tmp[i]] = true; } else { opts[tmp[i].substr(0, eq)] = tmp[i].substr(eq + 1); } } - } else if (typeof opts !== "object" || opts.constructor !== Object) { - throw new Error("bwipp.typeError: options not an object"); + } else if (typeof opts !== 'object' || opts.constructor !== Object) { + throw new Error('bwipp.typeError: options not an object'); } + + // Convert utf-16 to utf-8 but leave binary (8-bit) strings untouched. if (/[\u0100-\uffff]/.test(text)) { text = unescape(encodeURIComponent(text)); } + + // Handle the `parse` option here rather than in BWIPP - eliminates + // conflict with the parsefnc option and allows removing the parsing + // code from BWIPP. if (opts.parse) { text = text.replace(/\^(\d\d\d)/g, function($0, $1) { var v = +$1; if (v > 255) { - throw new Error("bwipp.rangeError:" + " ^NNN out-of-range (" + $0 + ")"); + throw new Error('bwipp.rangeError:' + + ' ^NNN out-of-range (' + $0 + ')'); } return String.fromCharCode(v); }); delete opts.parse; } + + // Don't draw? (See file runtest) $0.bwipjs_dontdraw = opts.dontdraw || dontdraw || false; - var map = new Map(); + + // Convert opts to a Map + var map = new Map; for (var id in opts) { if (opts.hasOwnProperty(id)) { map.set(id, opts[id]); } } + + // Invoke the encoder $$ = bwipjs; - $k = [ text, map ]; + $k = [text, map]; $j = 2; $0[encoder](); + + // Return what is left on the stack. This branch should only be taken + // when running with the dontdraw option. if ($j) { return $k.splice(0, $j); } + return true; - }; + } } - -BWIPP.VERSION = "2021-02-06"; +BWIPP.VERSION = '2021-02-06'; diff --git a/src/drawing-builtin.js b/src/drawing-builtin.js index 78f821ac..e5ee3366 100644 --- a/src/drawing-builtin.js +++ b/src/drawing-builtin.js @@ -127,10 +127,10 @@ function DrawingBuiltin(opts) { var w2 = (lw/2)|0; if (x0 == x1) { // Vertical line - x0 = x0 - w2; - x1 = x1 + lw - w2 - 1; + x0 = x0 - lw + w2; // big half + x1 = x1 + w2 - 1; // small half } else { - // Horizontal line + // Horizontal line (inverted halves) y0 = y0 - w2; y1 = y1 + lw - w2 - 1; }